From 0a627d8ba2de6a0bc8da5d61a6b452692b451140 Mon Sep 17 00:00:00 2001 From: Andrea Bianco <andrea.bianco@xcally.com> Date: Wed, 30 May 2018 10:44:19 +0200 Subject: [PATCH] Built motion from commit 68fda6555.|1.0.34 --- public/app/0872310c.app.js | 94 ++++++++++++++++++++ public/app/76e92834.app.js | 94 -------------------- public/assets/plugins/jscripty/js/Actions.js | 2 +- public/assets/plugins/jscripty/js/Dialogs.js | 2 +- public/assets/plugins/jscripty/js/Editor.js | 2 +- public/assets/plugins/jscripty/js/EditorUi.js | 2 +- public/assets/plugins/jscripty/js/Graph.js | 2 +- public/assets/plugins/jscripty/js/Menus.js | 2 +- public/assets/plugins/jscripty/js/Shapes.js | 2 +- public/assets/plugins/jscripty/js/Sidebar.js | 2 +- public/assets/plugins/jscripty/js/Toolbar.js | 2 +- public/assets/plugins/jscripty/js/custom.js | 2 +- public/assets/plugins/mxgraph/js/mxClient.js | 2 +- public/assets/plugins/square/js/Actions.js | 2 +- public/assets/plugins/square/js/Dialogs.js | 2 +- public/assets/plugins/square/js/Editor.js | 2 +- public/assets/plugins/square/js/EditorUi.js | 2 +- public/assets/plugins/square/js/Graph.js | 2 +- public/assets/plugins/square/js/Menus.js | 2 +- public/assets/plugins/square/js/Shapes.js | 2 +- public/assets/plugins/square/js/Sidebar.js | 2 +- public/assets/plugins/square/js/Toolbar.js | 2 +- public/assets/plugins/square/js/custom.js | 2 +- public/index.html | 2 +- server/api/_apidoc.js | 2 +- server/api/action/action.controller.js | 2 +- server/api/action/action.events.js | 2 +- server/api/action/action.socket.js | 2 +- server/api/action/index.js | 2 +- server/api/agent/agent.controller.js | 2 +- server/api/agent/agent.events.js | 2 +- server/api/agent/agent.socket.js | 2 +- server/api/agent/index.js | 2 +- server/api/automation/automation.controller.js | 2 +- server/api/automation/automation.events.js | 2 +- server/api/automation/automation.socket.js | 2 +- server/api/automation/index.js | 2 +- .../api/canned_answer/canned_answer.controller.js | 2 +- server/api/canned_answer/canned_answer.events.js | 2 +- server/api/canned_answer/canned_answer.socket.js | 2 +- server/api/canned_answer/index.js | 2 +- server/api/chanspy/chanspy.controller.js | 2 +- server/api/chanspy/chanspy.events.js | 2 +- server/api/chanspy/chanspy.socket.js | 2 +- server/api/chanspy/index.js | 2 +- .../chat_application.controller.js | 2 +- .../chat_application/chat_application.events.js | 2 +- .../chat_application/chat_application.socket.js | 2 +- server/api/chat_application/index.js | 2 +- .../chat_disposition.controller.js | 2 +- .../chat_disposition/chat_disposition.events.js | 2 +- .../chat_disposition/chat_disposition.socket.js | 2 +- server/api/chat_disposition/index.js | 2 +- server/api/chat_enquiry/enquiry.controller.js | 2 +- server/api/chat_enquiry/enquiry.events.js | 2 +- server/api/chat_enquiry/enquiry.socket.js | 2 +- server/api/chat_enquiry/index.js | 2 +- server/api/chat_message/chat_message.controller.js | 2 +- server/api/chat_message/chat_message.events.js | 2 +- server/api/chat_message/chat_message.socket.js | 2 +- server/api/chat_message/index.js | 2 +- .../chat_proactive_action.controller.js | 2 +- .../chat_proactive_action.events.js | 2 +- .../chat_proactive_action.socket.js | 2 +- server/api/chat_proactive_action/index.js | 2 +- server/api/chat_queue/chat_queue.controller.js | 2 +- server/api/chat_queue/chat_queue.events.js | 2 +- server/api/chat_queue/chat_queue.socket.js | 2 +- server/api/chat_queue/index.js | 2 +- server/api/chat_room/chat_room.controller.js | 2 +- server/api/chat_room/chat_room.events.js | 2 +- server/api/chat_room/chat_room.socket.js | 2 +- server/api/chat_room/index.js | 2 +- server/api/chat_visitor/chat_visitor.controller.js | 2 +- server/api/chat_visitor/chat_visitor.events.js | 2 +- server/api/chat_visitor/chat_visitor.socket.js | 2 +- server/api/chat_visitor/index.js | 2 +- server/api/chat_website/chat_website.controller.js | 2 +- server/api/chat_website/chat_website.events.js | 2 +- server/api/chat_website/chat_website.socket.js | 2 +- server/api/chat_website/index.js | 2 +- .../chat_websites_field.controller.js | 2 +- .../chat_websites_field.events.js | 2 +- .../chat_websites_field.socket.js | 2 +- server/api/chat_websites_field/index.js | 2 +- server/api/company/company.controller.js | 2 +- server/api/company/company.events.js | 2 +- server/api/company/company.socket.js | 2 +- server/api/company/index.js | 2 +- .../contact_manager/contact_manager.controller.js | 2 +- .../api/contact_manager/contact_manager.events.js | 2 +- .../api/contact_manager/contact_manager.socket.js | 2 +- server/api/contact_manager/index.js | 2 +- server/api/custom_field/custom_field.controller.js | 2 +- server/api/custom_field/custom_field.events.js | 2 +- server/api/custom_field/custom_field.socket.js | 2 +- server/api/custom_field/index.js | 2 +- .../api/custom_report/custom_report.controller.js | 2 +- server/api/custom_report/custom_report.events.js | 2 +- server/api/custom_report/custom_report.socket.js | 2 +- server/api/custom_report/index.js | 2 +- server/api/dashboard/dashboard.controller.js | 2 +- server/api/dashboard/dashboard.events.js | 2 +- server/api/dashboard/dashboard.socket.js | 2 +- server/api/dashboard/index.js | 2 +- .../default_metric/default_metric.controller.js | 2 +- server/api/default_metric/index.js | 2 +- .../default_report/default_report.controller.js | 2 +- server/api/default_report/default_report.events.js | 2 +- server/api/default_report/default_report.socket.js | 2 +- server/api/default_report/index.js | 2 +- server/api/desk_account/desk_account.controller.js | 2 +- server/api/desk_account/desk_account.events.js | 2 +- server/api/desk_account/desk_account.socket.js | 2 +- server/api/desk_account/index.js | 2 +- .../desk_configuration.controller.js | 2 +- .../desk_configuration.events.js | 2 +- .../desk_configuration.socket.js | 2 +- server/api/desk_configuration/index.js | 2 +- server/api/desk_field/desk_field.controller.js | 2 +- server/api/desk_field/desk_field.events.js | 2 +- server/api/desk_field/desk_field.socket.js | 2 +- server/api/desk_field/index.js | 2 +- .../extracted_report.controller.js | 2 +- .../extracted_report/extracted_report.events.js | 2 +- .../extracted_report/extracted_report.socket.js | 2 +- server/api/extracted_report/index.js | 2 +- server/api/fax_account/fax_account.controller.js | 2 +- server/api/fax_account/fax_account.events.js | 2 +- server/api/fax_account/fax_account.socket.js | 2 +- server/api/fax_account/index.js | 2 +- .../fax_application/fax_application.controller.js | 2 +- .../api/fax_application/fax_application.events.js | 2 +- .../api/fax_application/fax_application.socket.js | 2 +- server/api/fax_application/index.js | 2 +- .../fax_attachment/fax_attachment.controller.js | 2 +- server/api/fax_attachment/fax_attachment.events.js | 2 +- server/api/fax_attachment/fax_attachment.socket.js | 2 +- server/api/fax_attachment/index.js | 2 +- .../fax_disposition/fax_disposition.controller.js | 2 +- .../api/fax_disposition/fax_disposition.events.js | 2 +- .../api/fax_disposition/fax_disposition.socket.js | 2 +- server/api/fax_disposition/index.js | 2 +- server/api/fax_message/fax_message.ami.js | 2 +- server/api/fax_message/fax_message.controller.js | 2 +- server/api/fax_message/fax_message.events.js | 2 +- server/api/fax_message/fax_message.socket.js | 2 +- server/api/fax_message/index.js | 2 +- server/api/fax_queue/fax_queue.controller.js | 2 +- server/api/fax_queue/fax_queue.events.js | 2 +- server/api/fax_queue/fax_queue.socket.js | 2 +- server/api/fax_queue/index.js | 2 +- server/api/fax_room/fax_room.controller.js | 2 +- server/api/fax_room/fax_room.events.js | 2 +- server/api/fax_room/fax_room.socket.js | 2 +- server/api/fax_room/index.js | 2 +- .../freshdesk_account.controller.js | 2 +- .../freshdesk_account/freshdesk_account.events.js | 2 +- .../freshdesk_account/freshdesk_account.socket.js | 2 +- server/api/freshdesk_account/index.js | 2 +- .../freshdesk_configuration.controller.js | 2 +- .../freshdesk_configuration.events.js | 2 +- .../freshdesk_configuration.socket.js | 2 +- server/api/freshdesk_configuration/index.js | 2 +- .../freshdesk_field/freshdesk_field.controller.js | 2 +- .../api/freshdesk_field/freshdesk_field.events.js | 2 +- .../api/freshdesk_field/freshdesk_field.socket.js | 2 +- server/api/freshdesk_field/index.js | 2 +- server/api/integration/index.js | 2 +- server/api/integration/integration.controller.js | 2 +- server/api/integration/integration.events.js | 2 +- server/api/integration/integration.socket.js | 2 +- server/api/interval/index.js | 2 +- server/api/interval/interval.controller.js | 2 +- server/api/interval/interval.events.js | 2 +- server/api/interval/interval.socket.js | 2 +- server/api/jscripty_project/index.js | 2 +- .../jscripty_project.controller.js | 2 +- .../jscripty_project/jscripty_project.events.js | 2 +- .../jscripty_project/jscripty_project.socket.js | 2 +- server/api/license/index.js | 2 +- server/api/license/license.controller.js | 2 +- server/api/list/index.js | 2 +- server/api/list/list.controller.js | 2 +- server/api/list/list.events.js | 2 +- server/api/list/list.socket.js | 2 +- server/api/mail_account/index.js | 2 +- server/api/mail_account/mail_account.controller.js | 2 +- server/api/mail_account/mail_account.events.js | 2 +- server/api/mail_account/mail_account.socket.js | 2 +- server/api/mail_application/index.js | 2 +- .../mail_application.controller.js | 2 +- .../mail_application/mail_application.events.js | 2 +- .../mail_application/mail_application.socket.js | 2 +- server/api/mail_attachment/index.js | 2 +- .../mail_attachment/mail_attachment.controller.js | 2 +- .../api/mail_attachment/mail_attachment.events.js | 2 +- .../api/mail_attachment/mail_attachment.socket.js | 2 +- server/api/mail_disposition/index.js | 2 +- .../mail_disposition.controller.js | 2 +- .../mail_disposition/mail_disposition.events.js | 2 +- .../mail_disposition/mail_disposition.socket.js | 2 +- server/api/mail_message/index.js | 2 +- server/api/mail_message/mail_message.controller.js | 2 +- server/api/mail_message/mail_message.events.js | 2 +- server/api/mail_message/mail_message.socket.js | 2 +- server/api/mail_queue/index.js | 2 +- server/api/mail_queue/mail_queue.controller.js | 2 +- server/api/mail_queue/mail_queue.events.js | 2 +- server/api/mail_queue/mail_queue.socket.js | 2 +- server/api/mail_room/index.js | 2 +- server/api/mail_room/mail_room.controller.js | 2 +- server/api/mail_room/mail_room.events.js | 2 +- server/api/mail_room/mail_room.socket.js | 2 +- server/api/mail_server_in/index.js | 2 +- .../mail_server_in/mail_server_in.controller.js | 2 +- server/api/mail_server_in/mail_server_in.events.js | 2 +- server/api/mail_server_in/mail_server_in.socket.js | 2 +- server/api/mail_server_out/index.js | 2 +- .../mail_server_out/mail_server_out.controller.js | 2 +- .../api/mail_server_out/mail_server_out.events.js | 2 +- .../api/mail_server_out/mail_server_out.socket.js | 2 +- server/api/metric/index.js | 2 +- server/api/metric/metric.controller.js | 2 +- server/api/metric/metric.events.js | 2 +- server/api/metric/metric.socket.js | 2 +- server/api/module/index.js | 2 +- server/api/module/module.controller.js | 2 +- server/api/module/module.events.js | 2 +- server/api/module/module.socket.js | 2 +- server/api/motionbar/index.js | 2 +- server/api/motionbar/motionbar.controller.js | 2 +- server/api/motionbar/motionbar.events.js | 2 +- server/api/motionbar/motionbar.socket.js | 2 +- server/api/network_externip/index.js | 2 +- .../network_externip.controller.js | 2 +- .../network_externip/network_externip.events.js | 2 +- .../network_externip/network_externip.socket.js | 2 +- server/api/network_localnet/index.js | 2 +- .../network_localnet.controller.js | 2 +- .../network_localnet/network_localnet.events.js | 2 +- .../network_localnet/network_localnet.socket.js | 2 +- server/api/openchannel_account/index.js | 2 +- .../openchannel_account.controller.js | 2 +- .../openchannel_account.events.js | 2 +- .../openchannel_account.socket.js | 2 +- server/api/openchannel_application/index.js | 2 +- .../openchannel_application.controller.js | 2 +- .../openchannel_application.events.js | 2 +- .../openchannel_application.socket.js | 2 +- server/api/openchannel_disposition/index.js | 2 +- .../openchannel_disposition.controller.js | 2 +- .../openchannel_disposition.events.js | 2 +- .../openchannel_disposition.socket.js | 2 +- server/api/openchannel_message/index.js | 2 +- .../openchannel_message.controller.js | 2 +- .../openchannel_message.events.js | 2 +- .../openchannel_message.socket.js | 2 +- server/api/openchannel_queue/index.js | 2 +- .../openchannel_queue.controller.js | 2 +- .../openchannel_queue/openchannel_queue.events.js | 2 +- .../openchannel_queue/openchannel_queue.socket.js | 2 +- server/api/openchannel_room/index.js | 2 +- .../openchannel_room.controller.js | 2 +- .../openchannel_room/openchannel_room.events.js | 2 +- .../openchannel_room/openchannel_room.socket.js | 2 +- server/api/pause/index.js | 2 +- server/api/pause/pause.controller.js | 2 +- server/api/pause/pause.events.js | 2 +- server/api/pause/pause.socket.js | 2 +- server/api/report_agent/index.js | 2 +- server/api/report_agent/report_agent.controller.js | 2 +- server/api/report_agent/report_agent.events.js | 2 +- server/api/report_agent/report_agent.socket.js | 2 +- server/api/report_call/index.js | 2 +- server/api/report_call/report_call.controller.js | 2 +- server/api/report_call/report_call.events.js | 2 +- server/api/report_call/report_call.socket.js | 2 +- server/api/report_chat/index.js | 2 +- server/api/report_chat/report_chat.controller.js | 2 +- server/api/report_chat/report_chat.events.js | 2 +- server/api/report_chat/report_chat.socket.js | 2 +- server/api/report_chat_session/index.js | 2 +- .../report_chat_session.controller.js | 2 +- .../report_chat_session.events.js | 2 +- .../report_chat_session.socket.js | 2 +- server/api/report_dial/index.js | 2 +- server/api/report_dial/report_dial.controller.js | 2 +- server/api/report_dial/report_dial.events.js | 2 +- server/api/report_dial/report_dial.socket.js | 2 +- server/api/report_fax/index.js | 2 +- server/api/report_fax/report_fax.controller.js | 2 +- server/api/report_fax/report_fax.events.js | 2 +- server/api/report_fax/report_fax.socket.js | 2 +- server/api/report_fax_session/index.js | 2 +- .../report_fax_session.controller.js | 2 +- .../report_fax_session.events.js | 2 +- .../report_fax_session.socket.js | 2 +- server/api/report_integration/index.js | 2 +- .../report_integration.controller.js | 2 +- .../report_integration.events.js | 2 +- .../report_integration.socket.js | 2 +- server/api/report_mail/index.js | 2 +- server/api/report_mail/report_mail.controller.js | 2 +- server/api/report_mail/report_mail.events.js | 2 +- server/api/report_mail/report_mail.socket.js | 2 +- server/api/report_mail_session/index.js | 2 +- .../report_mail_session.controller.js | 2 +- .../report_mail_session.events.js | 2 +- .../report_mail_session.socket.js | 2 +- server/api/report_member/index.js | 2 +- .../api/report_member/report_member.controller.js | 2 +- server/api/report_member/report_member.events.js | 2 +- server/api/report_member/report_member.socket.js | 2 +- server/api/report_openchannel/index.js | 2 +- .../report_openchannel.controller.js | 2 +- .../report_openchannel.events.js | 2 +- .../report_openchannel.socket.js | 2 +- server/api/report_openchannel_session/index.js | 2 +- .../report_openchannel_session.controller.js | 2 +- .../report_openchannel_session.events.js | 2 +- .../report_openchannel_session.socket.js | 2 +- server/api/report_queue/index.js | 2 +- server/api/report_queue/report_queue.controller.js | 2 +- server/api/report_queue/report_queue.events.js | 2 +- server/api/report_queue/report_queue.socket.js | 2 +- server/api/report_sms/index.js | 2 +- server/api/report_sms/report_sms.controller.js | 2 +- server/api/report_sms/report_sms.events.js | 2 +- server/api/report_sms/report_sms.socket.js | 2 +- server/api/report_sms_session/index.js | 2 +- .../report_sms_session.controller.js | 2 +- .../report_sms_session.events.js | 2 +- .../report_sms_session.socket.js | 2 +- server/api/report_square/index.js | 2 +- .../api/report_square/report_square.controller.js | 2 +- server/api/report_square/report_square.events.js | 2 +- server/api/report_square/report_square.socket.js | 2 +- server/api/report_square_detail/index.js | 2 +- .../report_square_detail.controller.js | 2 +- .../report_square_detail.events.js | 2 +- .../report_square_detail.socket.js | 2 +- server/api/report_tiger_dial/index.js | 2 +- .../report_tiger_dial.controller.js | 2 +- .../report_tiger_dial/report_tiger_dial.events.js | 2 +- .../report_tiger_dial/report_tiger_dial.socket.js | 2 +- server/api/report_tree/index.js | 2 +- server/api/report_tree/report_tree.controller.js | 2 +- server/api/report_tree/report_tree.events.js | 2 +- server/api/report_tree/report_tree.socket.js | 2 +- server/api/salesforce_account/index.js | 2 +- .../salesforce_account.controller.js | 2 +- .../salesforce_account.events.js | 2 +- .../salesforce_account.socket.js | 2 +- server/api/salesforce_configuration/index.js | 2 +- .../salesforce_configuration.controller.js | 2 +- .../salesforce_configuration.events.js | 2 +- .../salesforce_configuration.socket.js | 2 +- server/api/salesforce_field/index.js | 2 +- .../salesforce_field.controller.js | 2 +- .../salesforce_field/salesforce_field.events.js | 2 +- .../salesforce_field/salesforce_field.socket.js | 2 +- server/api/scheduler/index.js | 2 +- server/api/scheduler/scheduler.controller.js | 2 +- server/api/scheduler/scheduler.events.js | 2 +- server/api/scheduler/scheduler.socket.js | 2 +- server/api/setting/index.js | 2 +- server/api/setting/setting.controller.js | 2 +- server/api/setting/setting.events.js | 2 +- server/api/setting/setting.socket.js | 2 +- server/api/sms_account/index.js | 2 +- server/api/sms_account/sms_account.controller.js | 2 +- server/api/sms_account/sms_account.events.js | 2 +- server/api/sms_account/sms_account.socket.js | 2 +- server/api/sms_application/index.js | 2 +- .../sms_application/sms_application.controller.js | 2 +- .../api/sms_application/sms_application.events.js | 2 +- .../api/sms_application/sms_application.socket.js | 2 +- server/api/sms_disposition/index.js | 2 +- .../sms_disposition/sms_disposition.controller.js | 2 +- .../api/sms_disposition/sms_disposition.events.js | 2 +- .../api/sms_disposition/sms_disposition.socket.js | 2 +- server/api/sms_message/index.js | 2 +- server/api/sms_message/sms_message.controller.js | 2 +- server/api/sms_message/sms_message.events.js | 2 +- server/api/sms_message/sms_message.socket.js | 2 +- server/api/sms_queue/index.js | 2 +- server/api/sms_queue/sms_queue.controller.js | 2 +- server/api/sms_queue/sms_queue.events.js | 2 +- server/api/sms_queue/sms_queue.socket.js | 2 +- server/api/sms_room/index.js | 2 +- server/api/sms_room/sms_room.controller.js | 2 +- server/api/sms_room/sms_room.events.js | 2 +- server/api/sms_room/sms_room.socket.js | 2 +- server/api/sound/index.js | 2 +- server/api/sound/sound.controller.js | 2 +- server/api/sound/sound.events.js | 2 +- server/api/sound/sound.socket.js | 2 +- server/api/square_odbc/index.js | 2 +- server/api/square_odbc/square_odbc.controller.js | 2 +- server/api/square_odbc/square_odbc.events.js | 2 +- server/api/square_odbc/square_odbc.socket.js | 2 +- server/api/square_project/index.js | 2 +- .../square_project/square_project.controller.js | 2 +- server/api/square_project/square_project.events.js | 2 +- server/api/square_project/square_project.socket.js | 2 +- server/api/square_recording/index.js | 2 +- .../square_recording.controller.js | 2 +- .../square_recording/square_recording.events.js | 2 +- .../square_recording/square_recording.socket.js | 2 +- server/api/sugarcrm_account/index.js | 2 +- .../sugarcrm_account.controller.js | 2 +- .../sugarcrm_account/sugarcrm_account.events.js | 2 +- .../sugarcrm_account/sugarcrm_account.socket.js | 2 +- server/api/sugarcrm_configuration/index.js | 2 +- .../sugarcrm_configuration.controller.js | 2 +- .../sugarcrm_configuration.events.js | 2 +- .../sugarcrm_configuration.socket.js | 2 +- server/api/sugarcrm_field/index.js | 2 +- .../sugarcrm_field/sugarcrm_field.controller.js | 2 +- server/api/sugarcrm_field/sugarcrm_field.events.js | 2 +- server/api/sugarcrm_field/sugarcrm_field.socket.js | 2 +- server/api/tag/index.js | 2 +- server/api/tag/tag.controller.js | 2 +- server/api/tag/tag.events.js | 2 +- server/api/tag/tag.socket.js | 2 +- server/api/team/index.js | 2 +- server/api/team/team.controller.js | 2 +- server/api/team/team.events.js | 2 +- server/api/team/team.socket.js | 2 +- server/api/telephone/index.js | 2 +- server/api/telephone/telephone.controller.js | 2 +- server/api/telephone/telephone.events.js | 2 +- server/api/telephone/telephone.socket.js | 2 +- server/api/template/index.js | 2 +- server/api/template/template.controller.js | 2 +- server/api/template/template.events.js | 2 +- server/api/template/template.socket.js | 2 +- server/api/trigger/index.js | 2 +- server/api/trigger/trigger.controller.js | 2 +- server/api/trigger/trigger.events.js | 2 +- server/api/trigger/trigger.socket.js | 2 +- server/api/trunk/index.js | 2 +- server/api/trunk/trunk.controller.js | 2 +- server/api/trunk/trunk.events.js | 2 +- server/api/trunk/trunk.socket.js | 2 +- server/api/update/index.js | 2 +- server/api/update/update.controller.js | 2 +- server/api/user/index.js | 2 +- server/api/user/user.controller.js | 2 +- server/api/user/user.events.js | 2 +- server/api/user/user.socket.js | 2 +- server/api/user_has_chat_queue/index.js | 2 +- .../user_has_chat_queue.controller.js | 2 +- .../user_has_chat_queue.events.js | 2 +- .../user_has_chat_queue.socket.js | 2 +- .../user_has_chat_queue_permit.events.js | 2 +- .../user_has_chat_queue_permit.socket.js | 2 +- server/api/user_has_chat_room/index.js | 2 +- .../user_has_chat_room.controller.js | 2 +- .../user_has_chat_room.events.js | 2 +- .../user_has_chat_room.socket.js | 2 +- server/api/user_has_fax_queue/index.js | 2 +- .../user_has_fax_queue.controller.js | 2 +- .../user_has_fax_queue.events.js | 2 +- .../user_has_fax_queue.socket.js | 2 +- .../user_has_fax_queue_permit.events.js | 2 +- .../user_has_fax_queue_permit.socket.js | 2 +- server/api/user_has_list/index.js | 2 +- .../api/user_has_list/user_has_list.controller.js | 2 +- server/api/user_has_list/user_has_list.events.js | 2 +- server/api/user_has_list/user_has_list.socket.js | 2 +- server/api/user_has_mail_queue/index.js | 2 +- .../user_has_mail_queue.controller.js | 2 +- .../user_has_mail_queue.events.js | 2 +- .../user_has_mail_queue.socket.js | 2 +- .../user_has_mail_queue_permit.events.js | 2 +- .../user_has_mail_queue_permit.socket.js | 2 +- server/api/user_has_openchannel_queue/index.js | 2 +- .../user_has_openchannel_queue.controller.js | 2 +- .../user_has_openchannel_queue.events.js | 2 +- .../user_has_openchannel_queue.socket.js | 2 +- .../user_has_openchannel_queue_permit.events.js | 2 +- .../user_has_openchannel_queue_permit.socket.js | 2 +- server/api/user_has_sms_queue/index.js | 2 +- .../user_has_sms_queue.controller.js | 2 +- .../user_has_sms_queue.events.js | 2 +- .../user_has_sms_queue.socket.js | 2 +- .../user_has_sms_queue_permit.events.js | 2 +- .../user_has_sms_queue_permit.socket.js | 2 +- server/api/user_has_team/index.js | 2 +- .../api/user_has_team/user_has_team.controller.js | 2 +- server/api/user_has_team/user_has_team.events.js | 2 +- server/api/user_has_team/user_has_team.socket.js | 2 +- server/api/user_has_voice_queue/index.js | 2 +- .../user_has_voice_queue.controller.js | 2 +- .../user_has_voice_queue.events.js | 2 +- .../user_has_voice_queue.socket.js | 2 +- .../user_has_voice_queue_permit.events.js | 2 +- .../user_has_voice_queue_permit.socket.js | 2 +- server/api/variable/index.js | 2 +- server/api/variable/variable.controller.js | 2 +- server/api/variable/variable.events.js | 2 +- server/api/variable/variable.socket.js | 2 +- server/api/version/index.js | 2 +- server/api/version/version.controller.js | 2 +- server/api/voice_context/index.js | 2 +- .../api/voice_context/voice_context.controller.js | 2 +- server/api/voice_context/voice_context.events.js | 2 +- server/api/voice_context/voice_context.socket.js | 2 +- server/api/voice_disposition/index.js | 2 +- .../voice_disposition.controller.js | 2 +- .../voice_disposition/voice_disposition.events.js | 2 +- .../voice_disposition/voice_disposition.socket.js | 2 +- server/api/voice_extension/index.js | 2 +- .../voice_extension/voice_extension.controller.js | 2 +- .../api/voice_extension/voice_extension.events.js | 2 +- .../api/voice_extension/voice_extension.socket.js | 2 +- server/api/voice_musiconhold/index.js | 2 +- .../voice_musiconhold.controller.js | 2 +- .../voice_musiconhold/voice_musiconhold.events.js | 2 +- .../voice_musiconhold/voice_musiconhold.socket.js | 2 +- server/api/voice_queue/index.js | 2 +- server/api/voice_queue/voice_queue.controller.js | 2 +- server/api/voice_queue/voice_queue.events.js | 2 +- server/api/voice_queue/voice_queue.socket.js | 2 +- server/api/voice_recording/index.js | 2 +- .../voice_recording/voice_recording.controller.js | 2 +- .../api/voice_recording/voice_recording.events.js | 2 +- .../api/voice_recording/voice_recording.socket.js | 2 +- server/api/voice_voicemail/index.js | 2 +- .../voice_voicemail/voice_voicemail.controller.js | 2 +- .../api/voice_voicemail/voice_voicemail.events.js | 2 +- .../api/voice_voicemail/voice_voicemail.socket.js | 2 +- server/api/voice_voicemail_messages/index.js | 2 +- .../voice_voicemail_messages.controller.js | 2 +- .../voice_voicemail_messages.events.js | 2 +- .../voice_voicemail_messages.socket.js | 2 +- server/api/widget/index.js | 2 +- server/api/widget/widget.controller.js | 2 +- server/api/xchatty/index.js | 2 +- server/api/xchatty/xchatty.controller.js | 2 +- server/api/zendesk_account/index.js | 2 +- .../zendesk_account/zendesk_account.controller.js | 2 +- .../api/zendesk_account/zendesk_account.events.js | 2 +- .../api/zendesk_account/zendesk_account.socket.js | 2 +- server/api/zendesk_configuration/index.js | 2 +- .../zendesk_configuration.controller.js | 2 +- .../zendesk_configuration.events.js | 2 +- .../zendesk_configuration.socket.js | 2 +- server/api/zendesk_field/index.js | 2 +- .../api/zendesk_field/zendesk_field.controller.js | 2 +- server/api/zendesk_field/zendesk_field.events.js | 2 +- server/api/zendesk_field/zendesk_field.socket.js | 2 +- server/app.js | 2 +- server/auth/auth.service.js | 2 +- server/auth/facebook/index.js | 2 +- server/auth/facebook/passport.js | 2 +- server/auth/google/index.js | 2 +- server/auth/google/passport.js | 2 +- server/auth/index.js | 2 +- server/auth/local/index.js | 2 +- server/auth/local/local.ami.js | 2 +- server/auth/local/passport.js | 2 +- server/auth/twitter/index.js | 2 +- server/auth/twitter/passport.js | 2 +- server/config/agi/agi.js | 2 +- server/config/agi/events.js | 2 +- server/config/agi/index.js | 2 +- server/config/agi/lib/channel.js | 2 +- server/config/agi/lib/connection.js | 2 +- server/config/agi/lib/reply.js | 2 +- server/config/agi/lib/rpc/index.js | 2 +- server/config/agi/lib/scripts/index.js | 2 +- server/config/agi/lib/server.js | 2 +- server/config/agi/lib/square.js | 2 +- server/config/agi/lib/vertices.js | 2 +- server/config/ami/acw.js | 2 +- server/config/ami/ami.js | 2 +- server/config/ami/db/fax.js | 2 +- server/config/ami/db/memberReport.js | 2 +- server/config/ami/db/trunk.js | 2 +- server/config/ami/db/user.js | 2 +- server/config/ami/db/userHasQueue.js | 2 +- server/config/ami/db/voiceAgentReport.js | 2 +- server/config/ami/db/voiceCallReport.js | 2 +- server/config/ami/db/voiceDialReport.js | 2 +- server/config/ami/db/voiceQueueReport.js | 2 +- server/config/ami/db/voiceRecording.js | 2 +- server/config/ami/db/voiceTransferReport.js | 2 +- server/config/ami/events.js | 2 +- server/config/ami/index.js | 2 +- server/config/ami/properties.js | 2 +- server/config/ami/socket.js | 2 +- server/config/ami/utils.js | 2 +- server/config/autodialer/index.js | 2 +- server/config/autodialer/process.js | 2 +- server/config/automations/chat.js | 2 +- server/config/automations/fax.js | 2 +- server/config/automations/mail.js | 2 +- server/config/chat.js | 2 +- server/config/dashboard/dashboard.js | 2 +- server/config/dashboard/index.js | 2 +- server/config/express.js | 2 +- server/config/forked_routing/chat/agent.js | 2 +- server/config/forked_routing/chat/index.js | 2 +- server/config/forked_routing/chat/queue.js | 2 +- server/config/forked_routing/chat/sendmail.js | 2 +- server/config/forked_routing/chat/sendsms.js | 2 +- server/config/forked_routing/fax/agent.js | 2 +- server/config/forked_routing/fax/index.js | 2 +- server/config/forked_routing/fax/queue.js | 2 +- server/config/forked_routing/fax/sendmail.js | 2 +- server/config/forked_routing/fax/sendsms.js | 2 +- server/config/forked_routing/mail/agent.js | 2 +- server/config/forked_routing/mail/index.js | 2 +- server/config/forked_routing/mail/queue.js | 2 +- server/config/forked_routing/mail/replymail.js | 2 +- server/config/forked_routing/mail/sendmail.js | 2 +- server/config/forked_routing/mail/sendsms.js | 2 +- server/config/forked_routing/openchannel/agent.js | 2 +- server/config/forked_routing/openchannel/index.js | 2 +- server/config/forked_routing/openchannel/queue.js | 2 +- .../config/forked_routing/openchannel/sendmail.js | 2 +- .../config/forked_routing/openchannel/sendsms.js | 2 +- server/config/forked_routing/sms/agent.js | 2 +- server/config/forked_routing/sms/index.js | 2 +- server/config/forked_routing/sms/queue.js | 2 +- server/config/forked_routing/sms/sendmail.js | 2 +- server/config/forked_routing/sms/sendsms.js | 2 +- server/config/history/history.js | 2 +- server/config/history/reportMove.js | 2 +- server/config/imap/imap.js | 2 +- server/config/imap/index.js | 2 +- server/config/integrations/freshdesk.js | 2 +- server/config/integrations/index.js | 2 +- server/config/integrations/motionbar.js | 2 +- server/config/integrations/salesforce.js | 2 +- server/config/integrations/sugarcrm.js | 2 +- server/config/integrations/zendesk.js | 2 +- server/config/interval/index.js | 2 +- server/config/license/hardware.js | 2 +- server/config/license/index.js | 2 +- server/config/license/license.service.js | 2 +- server/config/local.env.sample.js | 2 +- server/config/logger.js | 2 +- server/config/logger/index.js | 2 +- server/config/openchannel/custom.js | 2 +- server/config/openchannel/index.js | 2 +- server/config/routing/agent.js | 2 +- server/config/routing/fidelity.js | 2 +- server/config/routing/queue.js | 2 +- server/config/routing/replyMail.js | 2 +- server/config/routing/scheduler.js | 2 +- server/config/routing/sendMail.js | 2 +- server/config/routing/sendSms.js | 2 +- server/config/routing/structure.js | 2 +- server/config/rpc/client.js | 2 +- server/config/rpc/index.js | 2 +- server/config/rpc/rpc.js | 2 +- server/config/scheduler/index.js | 2 +- server/config/scheduler/reports.js | 2 +- server/config/seed.js | 2 +- server/config/seedp.js | 2 +- server/config/sms/index.js | 2 +- server/config/sms/skebby.js | 2 +- server/config/sms/sms.js | 2 +- server/config/sms/twilio.js | 2 +- server/config/smtp/index.js | 2 +- server/config/smtp/smtp.js | 2 +- server/config/socketio.js | 2 +- server/config/tools/channelSpy.js | 2 +- server/config/tools/chatRoom.js | 2 +- server/config/tools/dashboard.js | 2 +- server/config/tools/faxAccount.js | 2 +- server/config/tools/faxRoom.js | 2 +- server/config/tools/index.js | 2 +- server/config/tools/interval.js | 2 +- server/config/tools/mailAccount.js | 2 +- server/config/tools/mailRoom.js | 2 +- server/config/tools/openchannelRoom.js | 2 +- server/config/tools/smsRoom.js | 2 +- server/config/tools/system.js | 2 +- server/config/tools/user.js | 2 +- server/config/triggers/chat.js | 2 +- server/config/triggers/cm.js | 2 +- server/config/triggers/fax.js | 2 +- server/config/triggers/index.js | 2 +- server/config/triggers/jscripty.js | 2 +- server/config/triggers/mail.js | 2 +- server/config/triggers/openchannel.js | 2 +- server/config/triggers/sms.js | 2 +- server/config/triggers/urlForward.js | 2 +- server/config/triggers/util.js | 2 +- server/config/triggers/voice.js | 2 +- server/config/util/error.js | 2 +- server/config/util/index.js | 2 +- .../20160801125118-placeholder.js | 2 +- .../20160916135658-report-session.js | 2 +- .../20160920170835-report_tdial.js | 2 +- .../20161005162141-report_tdial_history.js | 2 +- .../20161102092931-report_member.js | 2 +- .../20161103154020-report_square_history.js | 2 +- .../20161104110653-report_square_history.js | 2 +- .../20161130151446-report_integration_history.js | 2 +- .../20161206170443-report_agent_history.js | 2 +- .../20161209084712-report_sourceid.js | 2 +- .../20161209140411-report_history.js | 2 +- .../20161209171025-report_sourceid_index.js | 2 +- ...20170126094809-report_square_details_history.js | 2 +- .../20170206131527-report_call.js | 2 +- .../20170207170653-report_call.js | 2 +- .../20170217111336-report_call_history.js | 2 +- .../20170217153419-report_square_detail_history.js | 2 +- .../20170315164841-report_queue.js | 2 +- .../migrations-history/20170404155959-indexes.js | 2 +- .../20170601132818-history_latin_to_utf8.js | 2 +- server/routes.js | 2 +- server/utils/report_build.js | 2 +- server/utils/report_extraction.js | 2 +- server/utils/voice_extension.js | 2 +- 721 files changed, 813 insertions(+), 813 deletions(-) create mode 100644 public/app/0872310c.app.js delete mode 100644 public/app/76e92834.app.js diff --git a/public/app/0872310c.app.js b/public/app/0872310c.app.js new file mode 100644 index 0000000..457f601 --- /dev/null +++ b/public/app/0872310c.app.js @@ -0,0 +1,94 @@ +"use strict";angular.module("xCallyShuttleApp",["adf","adf.structures.base","adf.widget.clock","adf.widget.iframe","adf.widget.counter","adf.widget.pie-chart","angular-md5","angular.filter","angularFileUpload","ngLetterAvatar","vAccordion","btford.socket-io","chart.js","checklist-model","colorpicker.module","frapontillo.bootstrap-switch","LocalStorageModule","mgo-angular-wizard","ng-slide-down","ngAnimate","ngBootstrap","ngCookies","ngCsv","ngFileSaver","ngJsTree","ngMap","ngPapaParse","ngResource","ngSanitize","notification","oc.lazyLoad","pascalprecht.translate","remoteValidation","smart-table","sprintf","timer","toastr","permission","ui-notification","ui.bootstrap.modal","ui.bootstrap.dropdown","ui.bootstrap.popover","ui.bootstrap.timepicker","ui.bootstrap.tooltip","ui.bootstrap.tpls","ui.bootstrap.accordion","ui.bootstrap.progressbar","ui.bootstrap.buttons","ui.bootstrap.typeahead","ui.grid","ui.grid.autoResize","ui.grid.draggable-rows","ui.grid.exporter","ui.grid.grouping","ui.grid.moveColumns","ui.grid.pagination","ui.grid.treeView","ui.grid.selection","ui.grid.exporter","ui.grid.resizeColumns","ui.router","ui.navbar","ui.select","ui.sortable","xeditable","ngAudio","truncate","ngScrollbars","ngEmoticons","angularSpinner","builder","builder.components","validator","angular-clipboard","ng-code-mirror","angularMoment","jsonFormatter","ui.bootstrap-slider","ui.bootstrap.datepicker","prettyBytes","bootstrapLightbox","rzModule","ckeditor","ngTagsInput","ngJoyRide","adf.widget.linklist"]).constant("CKEDITOR_BASEPATH","assets/plugins/ckeditor/").config(["$stateProvider","$urlRouterProvider","$locationProvider","$httpProvider","$translateProvider","localStorageServiceProvider","dashboardProvider","ScrollBarsProvider","tagsInputConfigProvider",function(a,b,c,d,e,f,g,h,i){i.setActiveInterpolation("tagsInput",{placeholder:!0}),b.otherwise(function(a){var b=a.get("$state");b.go("landing")}),e.useStaticFilesLoader({prefix:"assets/languages/locale-",suffix:".json"}),e.preferredLanguage("en_EN"),e.fallbackLanguage("en_EN"),e.useLocalStorage(),e.useSanitizeValueStrategy(null),c.html5Mode(!0),d.interceptors.push("authInterceptor"),g.structure("4-4-4",{rows:[{columns:[{styleClass:"col-md-4"},{styleClass:"col-md-4"},{styleClass:"col-md-4"}]}]}).structure("3-3-3-3",{rows:[{columns:[{styleClass:"col-md-3"},{styleClass:"col-md-3"},{styleClass:"col-md-3"},{styleClass:"col-md-3"}]}]}),f.setPrefix("motion"),h.defaults={scrollButtons:{scrollAmount:"auto",enable:!0},axis:"y"}}]).factory("authInterceptor",["$rootScope","$q","$cookieStore","$location",function(a,b,c,d){return{request:function(a){return a.headers=a.headers||{},c.get("token")?a.headers.Authorization="Bearer "+c.get("token"):d.path().match(/\/reset\/.[0-9]*/)||d.path("/login"),a}}}]).run(["$rootScope","$location","$state","$stateParams","$window","$q","Auth","RoleStore","editableThemes","editableOptions","License","User","PermissionStore","localStorageService","xAlert","$http",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){a.$state=c,a.$stateParams=d,i.bs3.inputClass="input-sm",i.bs3.buttonsClass="btn-xs",j.theme="bs3",a.$on("$stateChangeStart",function(a,c){g.isLoggedInAsync(function(a){!c.authenticate||a||b.path().match(/\/reset\/.[0-9]*/)||b.path("/login")})}),a.updateTableConfig=function(a,b){var c=_.find(a,{name:"All"});c&&(c.value=b)},a.settings={patternName:"[A-Za-z0-9._\\+*!\\-\\[\\]]+",simplePatternName:"[A-Za-z0-9._]+",patternPassword:"^(?=.*\\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[~!@#$%^&\\-_=+\\[\\{\\]\\}.])[0-9a-zA-Z~!@#$%^&\\-_=+\\[\\{\\]\\}.]{8,}$",patternPasswordLight:"^.{6,}$",patternGateway:"^(?:yes|no|[0-9]+)$",patternFaxdetect:"^(?:yes|no|t38|cng|[0-9]+)$",layout:{pageSidebarClosed:n.get("sidebarClosed")||!1,pageQuickSidebarOpened:!1,pageBodySolid:!1,pageAutoScrollOnLoad:1e3}},k.get().$promise.then(function(b){a.license=b.license,a.settings.soundPath=b.soundPath||"/var/opt/motion/server/files/sounds/converted",a.settings.footerWhiteLabel=b.footerWhiteLabel,a.settings.defaultFooterWhiteLabel=b.defaultFooterWhiteLabel,a.settings.logoutOnWindowClose=b.logoutOnWindowClose,m.definePermission("hasCm",function(){return a.license.cm}),m.definePermission("hasChat",function(){return a.license.chat}),m.definePermission("hasMail",function(){return a.license.mail}),m.definePermission("hasFax",function(){return a.license.fax}),m.definePermission("hasSms",function(){return a.license.messaging}),m.definePermission("hasDialer",function(){return a.license.dialer}),m.definePermission("hasJscripty",function(){return a.license.jscripty}),m.definePermission("hasUpdate",function(){return a.license.update}),m.definePermission("hasCustom",function(){return a.license.custom}),m.definePermission("hasOpenChannel",function(){return a.license.openchannel}),m.definePermission("hasPreferred",function(){return a.license.preferred})})["catch"](function(a){o.error(a)}),m.definePermission("agent",function(){return g.isAgent()}),m.definePermission("admin",function(){return g.isAdmin()}),m.definePermission("user",function(a,b){var c=f.defer(),d=g.getCurrentUser().$promise;return d?d.then(function(a){_.includes(_.map(a.Modules,"id"),b.toState.data.permissions.id)&&"user"===a.role?c.resolve():c.reject()})["catch"](function(){c.reject()}):c.resolve(),c.promise})}]),angular.module("xCallyShuttleApp").controller("AdminResetCtrl",["$scope","Auth","User","xAlert","$translate","$location","Setting","$rootScope",function(a,b,c,d,e,f,g,h){a.getInfo=function(){return g.get({controller:"info"}).$promise.then(function(b){return a.info=b,g.get({id:1}).$promise}).then(function(b){a.setting=b,!b.firstLogin&&f.path("/landing")})["catch"](function(a){console.error(a)})},h.bodyLayout="login",a.updatePassword=function(){var h={newPassword:a.user.password,id:b.getCurrentUser().id};return c.changePassword(h).$promise.then(function(){return g.update({id:1,firstLogin:!1}).$promise}).then(function(){d.show(e.instant("MESSAGE_WELL_DONE"),"success"),f.path("/landing")})["catch"](function(a){d.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("adminreset",{url:"/adminreset",templateUrl:"app/adminreset/adminreset.html",controller:"AdminResetCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/login.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.analytics",{url:"/analytics",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:17}}})}]),angular.module("xCallyShuttleApp").factory("Extracted",["$resource",function(a){return a("/api/analytics/extracted/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.analytics.extracted",{url:"/extracted",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("AnalyticExtractedListCtrl",["$scope","$translate","gridOptions","Extracted","uiGridConstants",function(a,b,c,d,e){a.moment=moment,a.Extracted=d,a.initView=function(){var b={exporterCsvFilename:"ExtractedReports.csv",columnDefs:[{name:"name"},{name:"createdAt",displayName:"APPLICATION_RUN_DATE",filterHeaderTemplate:'<div class="ui-grid-filter-container row"><div ng-repeat="colFilter in col.filters" class="col-md-6 col-md-offset-0 col-sm-5 col-sm-offset-0 col-xs-5 col-xs-offset-0"><div custom-grid-date-filter-header></div></div></div>',filters:[{name:"From",condition:e.filter.GREATER_THAN_OR_EQUAL,hasTime:!0},{name:"To",condition:e.filter.LESS_THAN_OR_EQUAL,hasTime:!0}]},{name:"startDate",displayName:"APPLICATION_START_DATE",filterHeaderTemplate:'<div class="ui-grid-filter-container row"><div ng-repeat="colFilter in col.filters" class="col-md-6 col-md-offset-0 col-sm-5 col-sm-offset-0 col-xs-5 col-xs-offset-0"><div custom-grid-date-filter-header></div></div></div>',filters:[{name:"From",condition:e.filter.GREATER_THAN_OR_EQUAL,hasTime:!0},{name:"To",condition:e.filter.LESS_THAN_OR_EQUAL,hasTime:!0}],sort:{direction:e.DESC,priority:0}},{name:"endDate",displayName:"APPLICATION_END_DATE",filterHeaderTemplate:'<div class="ui-grid-filter-container row"><div ng-repeat="colFilter in col.filters" class="col-md-6 col-md-offset-0 col-sm-5 col-sm-offset-0 col-xs-5 col-xs-offset-0"><div custom-grid-date-filter-header></div></div></div>',filters:[{name:"From",condition:e.filter.GREATER_THAN_OR_EQUAL,hasTime:!0},{name:"To",condition:e.filter.LESS_THAN_OR_EQUAL,hasTime:!0}]},{name:"output"},{name:"type"},{name:"status"},{name:"action",width:140,buttons:[{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"},{directive:"<motion-file-download data-ng-show=\"row.entity.status == 'completed'\" resource=\"grid.appScope.Extracted\" params=\"{id:row.entity.id,controller:'download'}\" mimetype=\"'application/'+row.entity.output.toLowerCase()\" filename=\"row.entity.name+'_'+row.entity.startDate.toString()+'_'+row.entity.endDate.toString()+'.'+row.entity.output.toLowerCase()\"></motion-file-download>"}]}]};a.gridOptions=c.gridOptions(d,b,a)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.analytics.extracted.list",{url:"/list",templateUrl:"app/analytic/extracted/list/list.html",controller:"AnalyticExtractedListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").factory("DefaultMetric",["$resource",function(a){return a("/api/analytics/metrics/default/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("AnalyticMetricListCreateModalCtrl",["$scope","$uibModalInstance","Metric","xAlert","$translate","report",function(a,b,c,d,e,f){a.forms={dashboard:void 0},a.item={},a.tables=f.tables,a.ok=function(){return c.save(a.item).$promise.then(function(){b.close()})["catch"](function(a){d.error(a)})},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("AnalyticMetricListCtrl",["$scope","xAlert","Modal","$uibModal","$log","gridOptions","Metric","DefaultMetric","$translate",function(a,b,c,d,e,f,g,h,i){a.$translate=i,a.initView=function(){var b={exporterCsvFilename:"Metrics.csv",columnDefs:[{name:"name"},{name:"table",cellTemplate:"<div style=\"padding:5px\">{{'APPLICATION_'+row.entity.table.toUpperCase() | translate}}</div>"},{name:"description"},{name:"action",width:125,buttons:[{"class":"blue-hoki",href:"/analytics/metrics/view/{{row.entity.id}}/settings",name:"settings"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=f.gridOptions(g,b,a)},a.showMetric=function(a){d.open({animation:!0,templateUrl:"app/analytic/metric/list/view.modal.html",controller:"AnalyticMetricListViewModalCtrl",resolve:{metric:a}})},a.cloneMetric=function(c){return h.get({id:c,controller:"clone"}).$promise.then(function(){b.show(i.instant("MESSAGE_WELL_DONE"),"success"),a.gridOptions.getPage()})["catch"](function(a){b.error(a)})},a.create=function(){var c=d.open({animation:!0,templateUrl:"app/analytic/metric/list/create.modal.html",controller:"AnalyticMetricListCreateModalCtrl"});c.result.then(function(){b.show(i.instant("MESSAGE_WELL_DONE")+"!","success"),a.gridOptions.getPage()},function(){e.info("Modal dismissed at: "+new Date)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.analytics.metrics.list",{url:"/list",templateUrl:"app/analytic/metric/list/list.html",controller:"AnalyticMetricListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("AnalyticMetricListViewModalCtrl",["$scope","$uibModalInstance","metric","xAlert","$translate","report",function(a,b,c,d,e,f){a.item=c,a.tables=f.tables,a.close=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").factory("Metric",["$resource",function(a){return a("/api/analytics/metrics/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.analytics.metrics",{url:"/metrics",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("AnalyticMetricViewCtrl",["$scope","xAlert","$translate","$stateParams","$location","Metric","report",function(a,b,c,d,e,f,g){a.tables=g.tables,a.getMetric=function(){return f.get({id:d.id}).$promise.then(function(b){a.metric=b})["catch"](function(a){e.path("/analytics/metrics/list")})},a.updateMetric=function(){return f.update({id:d.id},a.metric).$promise.then(function(){b.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){b.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.analytics.metrics.view",{url:"/view/:id",templateUrl:"app/analytic/metric/view/view.html",controller:"AnalyticMetricViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.analytics.metrics.view.settings",{url:"/settings",templateUrl:"app/analytic/metric/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").factory("CustomReport",["$resource",function(a){return a("/api/analytics/reports/custom/:precontroller/:id/:controller/:action",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("DefaultReport",["$resource",function(a){return a("/api/analytics/reports/default/:id/:controller/:action",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("ReportListCopyModalCtrl",["$scope","$uibModalInstance","$log","customTreeData",function(a,b,c,d){a.customTreeData=d,a.forms={dashboard:void 0},a.customTreeConfig={multiple:!1,animation:!0,core:{error:function(a){c.error("treeCtrl: error from js tree - "+angular.toJson(a))},check_callback:!0}},a.ac=function(){return!0},a.initCustomScopeTree=function(){a.customTree=a.customTreeInstance.jstree(!0),a.customTree.deselect_all(),a.customTree.open_all()},a.ok=function(){a.customTree.get_selected(!0).length?b.close({parent:a.customTree.get_selected(!0).pop().id}):a.showAlert=!0},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("ReportListCreateModalCtrl",["$scope","$uibModalInstance","path",function(a,b,c){a.path=c,a.forms={dashboard:void 0},a.item={},a.ok=function(){a.item.model=JSON.stringify({title:a.item.name}),b.close(a.item)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("ReportListExtractModalCtrl",["$scope","$uibModalInstance","$translate",function(a,b,c){a.daily=!1,a.dailySwitch={onText:c.instant("APPLICATION_TODAY"),offText:c.instant("APPLICATION_RANGE"),isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"primary"},a.dates={startDate:moment().subtract(1,"days").startOf("day"),endDate:moment().subtract(1,"days").endOf("day")},a.ranges={},a.ranges[c.instant("APPLICATION_YESTERDAY")]=[moment().subtract(1,"days").startOf("day"),moment().subtract(1,"days").endOf("day")],a.ranges[c.instant("APPLICATION_LAST_SEVEN_DAYS")]=[moment().subtract("days",7).startOf("day"),moment().subtract(1,"days").endOf("day")],a.ranges[c.instant("APPLICATION_LAST_THIRTY_DAYS")]=[moment().subtract("days",30),moment()],a.ranges[c.instant("APPLICATION_LAST_MONTH")]=[moment().subtract(1,"months").startOf("month"),moment().subtract(1,"months").endOf("month")],a.timepicker={timePickerIncrement:1,timePicker12Hour:!1},a.dailyTime={start:moment("00:00","HH:mm"),end:moment("23:59","HH:mm")},a.maxdate=moment().subtract(1,"days").endOf("day").format("YYYY-MM-DD HH:mm"),a.extract=function(c){var d={startDate:moment(a.dates.startDate).format("YYYY-MM-DD"),endDate:moment(a.dates.endDate).format("YYYY-MM-DD"),startTime:a.daily?moment(a.dailyTime.start).format("HH:mm"):moment(a.dates.startDate).format("HH:mm"),endTime:a.daily?moment(a.dailyTime.end).format("HH:mm"):moment(a.dates.endDate).format("HH:mm"),daily:a.daily,action:c};b.close(d)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("AnalyticReportListCtrl",["$scope","xAlert","$translate","$location","$log","Modal","$uibModal","FileSaver","Blob","gridOptions","CustomReport","DefaultReport","ReportTree","localStorageService",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n){function o(){var b=n.get("lastMotionReportNode")||!1,c=n.get("lastMotionReportTree")||!1;return b&&c?(a[c+"Tree"].open_node({id:b}),a[c+"Tree"].select_node({id:b}),!0):!1}function p(b,c){var d={parent:c.id};a.selectedNode=b?a.defaultTree.get_path(c," / "):a.customTree.get_path(c," / "),a.gridOptions?a.gridOptions.getPage({parent:c.id},b?l:k):a.gridOptions=j.gridOptions(b?l:k,q,a,d)}var q={exporterCsvFilename:"reports.csv",columnDefs:[{name:"name"},{name:"description"},{name:"manage",width:120,buttons:[{"class":"{{grid.appScope.defaultTreeActive ? 'display-none' : 'blue-hoki'}}",href:"/analytics/reports/view/{{row.entity.id}}/settings",title:c.instant("APPLICATION_SETTINGS"),name:"settings"},{"class":"{{grid.appScope.defaultTreeActive ? 'display-none' : 'red-sunglo'}}",title:c.instant("APPLICATION_DELETE"),name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"},{"class":"green",title:c.instant("APPLICATION_COPY"),name:"copy",onClick:"grid.appScope.copy(row.entity.id)"},{"class":"purple",title:c.instant("APPLICATION_EXPORT"),name:"export",onClick:"grid.appScope.export(row.entity.id)"}]},{name:"actions",width:60,buttons:[{"class":"yellow",name:"preview",title:c.instant("APPLICATION_PREVIEW"),onClick:"grid.appScope.preview(row.entity.id)"},{"class":"green-turquoise",name:"run",title:c.instant("APPLICATION_RUN"),onClick:"grid.appScope.extract(row.entity.id)"}]}]};a.searchField="",a.ac=function(){return!0},a.initDefaultScopeTree=function(){a.defaultTree=a.defaultTreeInstance.jstree(!0),a.defaultTree.deselect_all(),a.defaultTree.close_all(),a.defaultTreeReady=!0,a.defaultTreeActive=!0,a.previousDefaultNode=""},a.initCustomScopeTree=function(){a.customTree=a.customTreeInstance.jstree(!0),a.customTree.deselect_all(),a.customTree.close_all(),a.customTreeReady=!0,a.previousCustomNode=""},a.$watchGroup(["defaultTreeReady","customTreeReady"],function(b,c,d){b[0]&&b[1]&&(o()||(a.defaultTree.open_node({id:1}),a.customTree.open_node({id:1}),a.defaultTree.select_node({id:"1"})))}),a.updateCustomTree=function(){var c={tree:angular.toJson(a.customTree.get_json("#",{flat:!0}))};return m.update({id:2},c).$promise.then(function(a){console.log("Custom Tree Updated")})["catch"](function(a){b.error(a)})},a.configTrees=function(){a.defaultTreeConfig={multiple:!1,animation:!0,core:{error:function(a){e.error("treeCtrl: error from js tree - "+angular.toJson(a))},check_callback:!0,themes:{name:"default",url:"../../../assets/css/jstree-metronic/style.css"}},plugins:["search"]},a.customTreeConfig={multiple:!1,animation:!0,core:{error:function(a){e.error("treeCtrl: error from js tree - "+angular.toJson(a))},check_callback:function(a,b,c,d,e){return console.log(a),!0},themes:{name:"default",url:"../../../assets/css/jstree-metronic/style.css"}},plugins:["contextmenu","dnd","search"],contextmenu:{items:function(b,d){var e={create:{label:c.instant("APPLICATION_CREATE"),action:function(c){a.customTree.create_node(b),a.customTree.open_node(b)}},rename:{label:c.instant("APPLICATION_RENAME"),action:function(c){a.customTree.edit(b)}},remove:{label:c.instant("APPLICATION_REMOVE"),action:function(c){a.deleteNode(b)}}};return"#"===b.parent&&(delete e.rename,delete e.remove),d(e),e}}}},a.deleteNode=function(d){var f=g.open({animation:!0,templateUrl:"app/analytic/report/list/deleteNode.modal.html",controller:["$scope","$uibModalInstance","node",function(a,b,c){a.node=c,a.ok=function(){b.close()},a.cancel=function(){b.dismiss("cancel")}}],resolve:{node:function(){return d.text}}});f.result.then(function(){return k["delete"]({precontroller:"node",id:d.id}).$promise.then(function(){b.show(c.instant("MESSAGE_WELL_DONE"),"success"),a.customTree.delete_node(d),a.previousCustomNode==d.id&&a.customTree.select_node({id:d.parent})})["catch"](function(a){b.error(a)})},function(){e.info("Modal dismissed at: "+new Date)})},a.searchTrees=function(){a.defaultTree.search(a.searchField),a.customTree.search(a.searchField)},a.selectDefaultNode=function(){if(a.customTreeReady){a.previousCustomNode="";var b=a.defaultTree.get_selected(!0),c=b.pop();if(a.defaultTree.deselect_node(b[0],!0),a.customTree.deselect_all(),a.defaultTree.select_node(c,!0),c.id===a.previousDefaultNode)return void console.log("def");a.previousDefaultNode=c.id,n.set("lastMotionReportNode",c.id),n.set("lastMotionReportTree","default"),a.defaultTreeActive=!0,p(!0,c)}},a.selectCustomNode=function(){if(a.defaultTreeReady){a.previousDefaultNode="";var b=a.customTree.get_selected(!0),c=b.pop();if(a.customTree.deselect_node(b[0],!0),a.defaultTree.deselect_all(),a.customTree.select_node(c,!0),c.id===a.previousCustomNode)return void console.log("cus");a.previousCustomNode=c.id,n.set("lastMotionReportNode",c.id),n.set("lastMotionReportTree","custom"),a.defaultTreeActive=!1,p(!1,c)}},a.getTrees=function(){return m.query().$promise.then(function(b){a.defaultTreeData=JSON.parse(b[0].tree),a.customTreeData=JSON.parse(b[1].tree),a.configTrees()})["catch"](function(a){b.error(a)})},a.create=function(){var c=g.open({animation:!0,templateUrl:"app/analytic/report/list/create.modal.html",controller:"ReportListCreateModalCtrl",resolve:{path:function(){return a.selectedNode}}});c.result.then(function(c){return c.parent=a.previousCustomNode,k.save(c).$promise.then(function(a){d.path("/analytics/reports/view/"+a.id+"/settings")})["catch"](function(a){b.error(a)})},function(){e.info("Modal dismissed at: "+new Date)})},a.copy=function(d){var f=a.defaultTreeActive?l:k,h=g.open({animation:!0,templateUrl:"app/analytic/report/list/copy.modal.html",controller:"ReportListCopyModalCtrl",resolve:{customTreeData:function(){return a.customTree.get_json("#",{flat:!0})}}});h.result.then(function(e){return f.save({id:d,controller:"copy"},e).$promise.then(function(){a.gridOptions.getPage(),b.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){b.error(a)})},function(){e.info("Modal dismissed at: "+new Date)})},a["export"]=function(c){var d=a.defaultTreeActive?l:k;return d.get({id:c,controller:"export"}).$promise.then(function(a){var b=new i([angular.toJson(a)],{type:"application/json;charset=utf-8"});h.saveAs(b,a.name+".json")})["catch"](function(a){b.error(a)})},a["import"]=function(d){var e=JSON.parse(d);e.parent=a.previousCustomNode;var f=!(!e.name||!e.parent),g=!0;return _.forEach(e.Fields,function(a){a.field&&a.alias||(g=!1)}),f&&g?k.save({controller:"import"},e).$promise.then(function(){a.gridOptions.getPage(),b.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){b.error(a)}):void b.show(c.instant("MESSAGE_INVALID_JSON"),"danger")},a.preview=function(b){g.open({animation:!0,templateUrl:"app/analytic/report/list/preview.modal.html",controller:"ReportListPreviewModalCtrl",size:"full",resolve:{report:function(){return{id:b,tree:a.defaultTreeActive?"default":"custom"}}}})},a.extract=function(d){var f=g.open({animation:!0,templateUrl:"app/analytic/report/list/extract.modal.html",controller:"ReportListExtractModalCtrl",size:"md",resolve:{report:function(){return{id:d,tree:a.defaultTreeActive?"default":"custom"}}}});f.result.then(function(e){e.daily||delete e.daily;var f=a.defaultTreeActive?l:k;return f.get(_.merge({id:d,controller:"extract"},e)).$promise.then(function(){b.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){b.error(a)})},function(){e.info("Modal dismissed at: "+new Date)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.analytics.reports.list",{url:"/list",templateUrl:"app/analytic/report/list/list.html",controller:"AnalyticReportListCtrl"})}]),angular.module("xCallyShuttleApp").controller("ReportListPreviewModalCtrl",["$scope","$uibModalInstance","report","xAlert","$translate","$timeout","CustomReport","DefaultReport",function(a,b,c,d,e,f,g,h){a.daily=!1,a.dailySwitch={onText:e.instant("APPLICATION_TODAY"),offText:e.instant("APPLICATION_RANGE"),isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"primary"},a.dates={startDate:moment().subtract(1,"days").startOf("day"),endDate:moment().subtract(1,"days").endOf("day")},a.ranges={},a.ranges[e.instant("APPLICATION_YESTERDAY")]=[moment().subtract(1,"days").startOf("day"),moment().subtract(1,"days").endOf("day")],a.ranges[e.instant("APPLICATION_LAST_SEVEN_DAYS")]=[moment().subtract("days",7).startOf("day"),moment().subtract(1,"days").endOf("day")],a.ranges[e.instant("APPLICATION_LAST_THIRTY_DAYS")]=[moment().subtract("days",30),moment()],a.ranges[e.instant("APPLICATION_LAST_MONTH")]=[moment().subtract(1,"months").startOf("month"),moment().subtract(1,"months").endOf("month")],a.timepicker={timePickerIncrement:1,timePicker12Hour:!1},a.dailyTime={start:moment("00:00","HH:mm"),end:moment("23:59","HH:mm")},a.maxdate=moment().subtract(1,"days").endOf("day").format("YYYY-MM-DD HH:mm");var i={offset:0,limit:25,sort:null,where:{},order:{}};a.gridOptions={paginationPageSizes:[10,25,50],paginationPageSize:25,useExternalPagination:!0,enableSorting:!1,enableFiltering:!0,useExternalFiltering:!0,enableGrouping:!1,enableColumnMenus:!1,treeRowHeaderAlwaysVisible:!1,gridMenuShowHideColumns:!1,enableGridMenu:!1,onRegisterApi:function(b){a.gridApi=b,b.pagination.on.paginationChanged(a,function(b,c){i.offset=(b-1)*c,i.limit=c,a.getPage()}),b.core.on.filterChanged(a,function(){var b=this.grid,c={};b.columns.forEach(function(a){a.filters[0].term&&(c[a.field]=a.filters[0].term)}),i.where=c,a.getPage()})}},a.getPage=function(){var b={offset:i.offset,limit:i.limit,startDate:moment(a.dates.startDate).format("YYYY-MM-DD"),endDate:moment(a.dates.endDate).format("YYYY-MM-DD"),startTime:a.daily?moment(a.dailyTime.start).format("HH:mm"):moment(a.dates.startDate).format("HH:mm"),endTime:a.daily?moment(a.dailyTime.end).format("HH:mm"):moment(a.dates.endDate).format("HH:mm"),daily:a.daily};_.forOwn(i.where,function(a,c){b[c]=a});var e="custom"===c.tree?g:h;return e.get(_.merge({id:c.id,controller:"preview"},b)).$promise.then(function(b){a.gridOptions.totalItems=b.count,a.gridOptions.paginationPageSizes[3]=b.count,a.gridOptions.data=b.rows,a.showResult=!0})["catch"](function(a){d.error(a)})},a.cancel=function(){b.dismiss("cancel")},f(function(){a.getPage()})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.analytics.reports",{url:"/reports",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").factory("ReportAgent",["$resource",function(a){return a("/api/report/agents/:id/:controller",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("ReportIntegration",["$resource",function(a){return a("/api/report/integrations/:id/:controller",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("ReportMember",["$resource",function(a){return a("/api/report/members/:id/:controller",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("ReportTree",["$resource",function(a){return a("/api/analytics/reports/trees/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("AnalyticReportViewCtrl",["$scope","xAlert","$translate","$stateParams","$location","ReportAgent","ReportCall","ReportMailSession","ReportSmsSession","ReportMember","ReportQueue","ReportIntegration","ReportChatSession","DefaultReport","CustomReport","Metric","report",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){function r(c){var d=_.find(a.tables,{value:c}).resource;d.get({controller:"describe"}).$promise.then(function(b){a.tableFields=_.map(b,function(a,b){return"$promise"!==b&&"$resolved"!==b?{name:b,value:b}:void 0})})["catch"](function(a){b.error(a)})["finally"](function(){s(c)})}function s(c){return p.get({controller:"table",table:c}).$promise.then(function(b){_.forEach(b.rows,function(b){a.tableFields.push({name:"<strong>Metric.</strong>"+b.name,alias:b.name,value:b.metric,MetricId:b.id})})})["catch"](function(a){b.error(a)})}function t(a){return String(a).replace(/</g,"<").replace(/>/g,">")}function u(a){if(!a)return"";for(var b="(",c=0;c<a.rules.length;c++)if(c>0&&(b+=" <strong>"+a.operator+"</strong> "),a.rules[c].group)b+=u(a.rules[c].group);else switch(b+=a.rules[c].field,a.rules[c].condition){case"IS NULL":case"IS NOT NULL":b+=" "+t(a.rules[c].condition);break;case"IS EMPTY":b+=" = ''";break;case"IS NOT EMPTY":b+=" != ''";break;default:b+=" "+t(a.rules[c].condition)+" "+a.rules[c].value}return b+")"}a.$translate=c,a.tempReport={},a.tables=q.tables;var v={group:{operator:"AND",rules:[]}};a.getReport=function(){return a.firstLoad=!0,o.get({id:d.id}).$promise.then(function(b){a.report=b,_.forEach(a.report.Fields,function(a){delete a.id}),a.report.conditions=a.report.conditions?JSON.parse(a.report.conditions):_.clone(v,!0),a.report.Fields.length&&a.getPreview()})["catch"](function(a){console.error(a),e.path("/analytics/reports/list")})},a.randomName=function(a,b){var c=[];for(a=a||5,b=b||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--a;)c.push(b.charAt(Math.floor(Math.random()*b.length)));return c.join("")},a.$watch("report.table",function(b,c){b&&(r(b),c&&(a.tempReport[c]={conditions:a.report.conditions,fields:a.report.Fields}),a.firstLoad?a.firstLoad=!1:a.tempReport[b]?(a.report.Fields=a.tempReport[b].fields,a.report.conditions=a.tempReport[b].conditions):(a.report.Fields=[],a.report.conditions=_.clone(v,!0)))},!0),a.setMetricId=function(b,c){a.report.Fields[c].MetricId=b.MetricId?b.MetricId:null,a.report.Fields[c].alias=b.MetricId?b.alias:b.name},a.groupByField=[{name:"APPLICATION_YES",value:!0},{name:"APPLICATION_NO",value:!1}],a.functions=[{name:"Sum",value:"SUM"},{name:"Count",value:"COUNT"},{name:"Count Distinct",value:"COUNT DISTINCT"},{name:"Maximum",value:"MAX"},{name:"Minimum",value:"MIN"},{name:"Average",value:"AVG"},{name:"Group Concat",value:"GROUP_CONCAT"},{name:"Group Concat(asc)",value:"GROUP_CONCAT ASC"},{name:"Group Concat(desc)",value:"GROUP_CONCAT DESC"}],a.formatFunctions=[{name:"Sec To Time",value:"SEC_TO_TIME"},{name:"Date",value:"DATE"},{name:"Hour",value:"HOUR"},{name:"Round",value:"ROUND"},{name:"Unix TimeStamp",value:"UNIX_TIMESTAMP"}],a.addField=function(){a.report.Fields.push({groupBy:!1,custom:!1})},a.removeField=function(b){a.report.Fields.splice(b,1)},a.sortableOptions={"ui-floating":!0,cancel:".unsortable",handle:".report-field-handle",axis:"y"},a.toggleCustom=function(b){b.custom=!b.custom,b.custom||_.find(a.tableFields,{value:b.field})||(b.field=null)},a.updateReport=function(){if(a.report.Fields.length){var e=angular.copy(a.report);return console.log(e.conditions),e.conditions=angular.toJson(e.conditions),_.forEach(e.Fields,function(a){a.custom&&delete a.MetricId}),o.update({id:d.id},e).$promise.then(function(){b.show(c.instant("MESSAGE_WELL_DONE")+"!","success"),a.getPreview()})["catch"](function(a){b.error(a)})}b.show(c.instant("MESSAGE_SELECT_A_FIELD"),"danger")},a.$watch("report.conditions",function(b){a.output=b?u(b.group):"()"},!0),a.getPreview=function(){return a.gridOptions=null,o.get({id:d.id,controller:"preview",limit:20}).$promise.then(function(b){a.gridOptions={enableFiltering:!0,treeRowHeaderAlwaysVisible:!1,enableGridMenu:!0, +data:b.rows}})["catch"](function(a){console.log(a),b.show(c.instant(a.message||"MESSAGE_QUERY_NOT_VALID"),"warning")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.analytics.reports.view",{url:"/view/:id",templateUrl:"app/analytic/report/view/view.html",controller:"AnalyticReportViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.analytics.reports.view.settings",{url:"/settings",templateUrl:"app/analytic/report/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels",{url:"/channels",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:6}}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat",{url:"/chat",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:8}}})}]),angular.module("xCallyShuttleApp").factory("ChatEnquiry",["$resource",function(a){return a("/api/chat/enquiries/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("ChatReport",["$resource",function(a){return a("/api/report/chats/:id/:controller1/:controller2",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("ChatVisitor",["$resource",function(a){return a("/api/chat/visitors/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("ChatMessage",["$resource",function(a){return a("/api/chat/messages/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("ChatRoom",["$resource",function(a){return a("/api/chat/rooms/:id/:controller",{id:"@id"},{me:{method:"GET",isArray:!0,params:{id:"me"}},users:{method:"GET",params:{id:"users"}},externals:{method:"GET",isArray:!0,params:{id:"type",controller:"external"}},groups:{method:"GET",isArray:!0,params:{id:"groups"}},update:{method:"PUT"},patch:{method:"PATCH"}})}]),angular.module("xCallyShuttleApp").controller("ChatOfflineListCtrl",["$scope","ChatEnquiry","gridOptions","uiGridConstants",function(a,b,c,d){a.initView=function(){var e={exporterCsvFilename:"chat_offline_messages.csv",columnDefs:[{name:"username",cellClass:"text-center"},{name:"email",cellClass:"text-center"},{name:"ChatWebsite.name",displayName:"Website",cellClass:"text-center"},{name:"createdAt",displayName:"createdAt",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span am-time-ago="row.entity.createdAt"></span></div>',field:"createdAt",sort:{direction:d.DESC,priority:0}},{name:"action",width:75,buttons:[{"class":"blue-hoki",href:"/channels/chat/offline/view/{{row.entity.id}}",name:"detail"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.fullname, row.entity.id)"}]}]};a.gridOptions=c.gridOptions(b,e,a)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.offline.list",{url:"/list",templateUrl:"app/channels/chat/offline/list/list.html",controller:"ChatOfflineListCtrl"})}]),angular.module("xCallyShuttleApp").directive("enquiryMessage",["$rootScope","$translate","MailMessage","List","xAlert",function(a,b,c,d,e){return{restrict:"E",scope:{message:"=",listId:"="},templateUrl:"app/channels/chat/offline/message/message.directive.html",link:function(c){c.openContact=function(f){return c.listId?d.save({listId:c.listId,controller:"contacts"},{email:f}).$promise.then(function(b){var c=_.find(a.$root.workspaces,{contactID:b.id});c?c.active=!0:a.$root.workspaces.push({active:!0,"class":"icon-user",contactID:b.id,name:b.email,type:"contact"})})["catch"](function(a){e.error(a)}):void e.show(b.instant("MESSAGE_NO_LIST_CONFIGURED"),"info")}}}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.offline",{url:"/offline",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:32}}})}]),angular.module("xCallyShuttleApp").controller("ChatOfflineViewCtrl",["$scope","$stateParams","$translate","$rootScope","ChatEnquiry","List","xAlert",function(a,b,c,d,e,f,g){a.initView=function(){return e.get({id:b.id}).$promise.then(function(b){a.enquiry=b})["catch"](function(a){g.error(a)})},a.openContact=function(b){return a.enquiry.ChatWebsite.ListId?f.save({listId:a.enquiry.ChatWebsite.ListId,controller:"contacts"},{email:b}).$promise.then(function(a){var b=_.find(d.$root.workspaces,{contactID:a.id});b?b.active=!0:d.$root.workspaces.push({active:!0,"class":"icon-user",contactID:a.id,name:a.email,type:"contact"})})["catch"](function(a){g.error(a)}):void g.show(c.instant("MESSAGE_NO_LIST_CONFIGURED"),"info")}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.offline.view",{url:"/view/:id",templateUrl:"app/channels/chat/offline/view/view.html",controller:"ChatOfflineViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("ChatOnlineListCtrl",["$scope","ChatRoom","gridOptions",function(a,b,c){a.initView=function(){var d={exporterCsvFilename:"chat_online_messages.csv",columnDefs:[{name:"ChatVisitor.fullname",displayName:"APPLICATION_FULLNAME",cellClass:"text-center"},{name:"ChatVisitor.email",displayName:"APPLICATION_EMAIL",cellClass:"text-center"},{name:"action",width:100,buttons:[{"class":"blue-hoki",href:"/channels/chat/online/view/{{row.entity.id}}/detail",name:"detail"}]}]};a.gridOptions=c.gridOptions(b,d,a,{id:"online"})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.online.list",{url:"/list",templateUrl:"app/channels/chat/online/list/list.html",controller:"ChatOnlineListCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.online",{url:"/online",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:8}}})}]),angular.module("xCallyShuttleApp").controller("ChatOnlineViewCtrl",["$scope","$stateParams","ChatRoom",function(a,b,c){a.initView=function(){return a.config={autoHideScrollbar:!1,theme:"light",advanced:{updateOnContentResize:!0},setHeight:400,scrollInertia:0},c.get({id:b.id}).$promise.then(function(b){a.chatRoom=b})["catch"](function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.online.view",{url:"/view/:id",templateUrl:"app/channels/chat/online/view/view.html",controller:"ChatOnlineViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.channels.chat.online.view.detail",{url:"/detail",templateUrl:"app/channels/chat/online/view/view.detail.html",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/news.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("PreviewCtrl",["$scope",function(a){a.message="Hello"}]),angular.module("xCallyShuttleApp").directive("preview",["$rootScope",function(a){return{templateUrl:"app/channels/chat/preview/preview.html",restrict:"EA",link:function(a,b,c){}}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("preview",{url:"/preview",templateUrl:"app/channels/chat/preview/preview.html",controller:"PreviewCtrl",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:8}}})}]),angular.module("xCallyShuttleApp").factory("ChatQueue",["$resource",function(a){return a("/api/chat/queues/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("ChatQueueListCtrl",["$scope","ChatQueue","gridOptions","Auth","$uibModal",function(a,b,c,d,e){a.initView=function(){a.Auth=d;var e={exporterCsvFilename:"chat_queues.csv",columnDefs:[{name:"name"},{name:"description"},{name:"strategy"},{name:"timeout"},{name:"action",width:100,buttons:[{"class":"blue-hoki",href:"/channels/chat/queues/view/{{row.entity.id}}/settings",name:"settings"},{"class":"green-meadow",href:"/channels/chat/queues/view/{{row.entity.id}}/agents",name:"agents",hide:"user"===d.getCurrentUser().role},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=c.gridOptions(b,e,a)},a.createItem=function(){var b=e.open({animation:!0,templateUrl:"app/channels/chat/queue/list/list.create.modal.html",controller:"ChatQueueListCreateCtrl",size:"lg"});b.result.then(function(){a.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("ChatQueueListCreateCtrl",["$scope","$uibModalInstance","$translate","xAlert","ChatQueue","Team","strategies",function(a,b,c,d,e,f,g){a.form={},a.strategies=g,a.item={penalty:0,agents:[]},a.getTeams=function(){return f.get({controller:"associations"}).$promise.then(function(b){a.teams=b.rows}).then(function(){ComponentsDropdowns.bindQueue(a.teams,[],function(){return{select:function(b){a.item.agents=_.union(a.item.agents,b)},deselect:function(b){a.item.agents=_.difference(a.item.agents,b)}}})})["catch"](function(a){console.error(a)})},a.save=function(){return e.save(a.item).$promise.then(function(a){d.show(c.instant("MESSAGE_WELL_DONE"),"success"),b.close(a)})["catch"](function(a){d.error(a)})},a.cancel=function(){b.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.queues.list",{url:"/list",templateUrl:"app/channels/chat/queue/list/list.html",controller:"ChatQueueListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.queues",{url:"/queues",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:30}}})}]),angular.module("xCallyShuttleApp").controller("ChatQueueViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","ChatQueue","Team","Auth","strategies",function(a,b,c,d,e,f,g,h,i){a.Auth=h,a.strategies=i;var j=function(){return{select:function(b){return f.save({id:a.queue.id,controller:"agents"},{agents:b,penalty:a.queue.penalty}).$promise.then(function(){a.getTeams()})["catch"](function(a){console.log(a)})},deselect:function(b){return f["delete"]({id:a.queue.id,controller:"agents",agents:b}).$promise.then(function(){a.getTeams()})["catch"](function(a){console.log(a)})}}};a.getQueue=function(){b.get("/api/chat/queues/"+e.id).success(function(b){b.penalty=0,a.queue=b}).error(function(a){console.error(a)})},a.updateChatQueue=function(){var f=angular.copy(a.queue);b.put("/api/chat/queues/"+e.id,f).success(function(){c.show(d.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(b){a.queue=f,b.errors.forEach(function(a){c.error(err)})})},a.getTeams=function(){return g.get({controller:"associations"}).$promise.then(function(b){return a.teams=b.rows,f.get({id:e.id,controller:"agents"}).$promise}).then(function(b){ComponentsDropdowns.bindChatQueue(a.teams,_.map(b.rows,function(a){return{id:a.id,penalty:a.UserHasChatQueue.penalty}}),j)})["catch"](function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.queues.view",{url:"/view/:id",templateUrl:"app/channels/chat/queue/view/view.html",controller:"ChatQueueViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.channels.chat.queues.view.settings",{url:"/settings",templateUrl:"app/channels/chat/queue/view/view.settings.html"}).state("main.channels.chat.queues.view.agents",{url:"/agents",templateUrl:"app/channels/chat/queue/view/view.agents.html",cache:!1,serie:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.realtime",{url:"/realtime",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:33}}})}]),angular.module("xCallyShuttleApp").controller("ChatRealtimeViewAgentCtrl",["$scope","$log","$uibModal","$translate","socket","xAlert","Agent","Pause","Action","ChatQueue","usSpinnerService","$q","uiGridConstants","Auth","$timeout","User",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){function q(){return k.spin("grid-spinner"),g.get(w).$promise.then(function(b){a.gridOptions.totalItems=b.count,a.gridOptions.data=[],b.rows.forEach(function(a){s(a)})})["catch"](function(a){f.error(a)})["finally"](function(){k.stop("grid-spinner")})}function r(){e.socket.on("agent:save",function(b){b=b.newValues||b;var c=_.find(a.gridOptions.data,{agentId:b.id,isAgent:!0});c&&(c.online=_.has(b,"online")?b.online:c.online,c.lastLoginAt=_.has(b,"lastLoginAt")?b.lastLoginAt:c.lastLoginAt,c.pause=_.has(b,"chatPause")?b.chatPause:c.chatPause,c.pauseType=_.has(b,"pauseType")?b.pauseType:c.pauseType,c.lastPauseAt=_.has(b,"lastPauseAt")?b.lastPauseAt:c.lastPauseAt,c.ipaddr=_.has(b,"ipaddr")?b.ipaddr:c.ipaddr,c.port=_.has(b,"port")?b.port:c.port,c.fullcontact=_.has(b,"fullcontact")?b.fullcontact:c.fullcontact,c.useragent=_.has(b,"useragent")?b.useragent:c.useragent,c.lastms=_.has(b,"lastms")?b.lastms:c.lastms,c.internal=_.has(b,"internal")?b.internal:c.internal,c.fullname=b.hasOwnProperty("fullname")?b.fullname:c.fullname,_.map(a.gridOptions.data,function(a){a.isAgent||a.agentId!==b.id||(a.online=_.has(b,"online")?b.online:a.online)}))}),e.socket.on("agent:remove",function(b){_.remove(a.gridOptions.data,{agentId:b.id})}),e.socket.on("user_has_chat_queue:save",function(b){var c=_.includes(_.map(a.pChatQueues,"id"),b.ChatQueueId)||n.isAdmin();if(c){var d=_.find(a.gridOptions.data,{agentId:Number(b.UserId),isAgent:!0});if(d){var e=a.gridOptions.data.indexOf(d);a.gridOptions.data.splice(e+1,0,{isAgent:!1,agentId:Number(b.UserId),queue:b.queue,queueId:b.ChatQueueId,agent:b.membername,online:d.online})}}}),e.socket.on("user_has_chat_queue:remove",function(b){_.remove(a.gridOptions.data,{agentId:b.UserId,queueId:b.ChatQueueId});var c=_.filter(a.gridOptions.data,{agentId:b.UserId});c&&c.length<=1&&!n.isAdmin()&&_.remove(a.gridOptions.data,{agentId:b.UserId})})}function s(b){a.gridOptions.data.push({isAgent:!0,agentId:b.id,agent:b.name,online:b.online,lastLoginAt:b.lastLoginAt,lastPauseAt:b.lastPauseAt,pause:b.chatPause,pauseType:b.pauseType,ipaddr:b.ipaddr,port:b.port,fullcontact:b.fullcontact,useragent:b.useragent,lastms:b.lastms,internal:b.internal,$$treeLevel:0,fullname:b.fullname}),b.ChatQueues&&b.ChatQueues.forEach(function(c){a.gridOptions.data.push({isAgent:!1,agentId:b.id,queue:c.name,queueId:c.id,agent:b.name,online:b.online})})}function t(){return h.get().$promise.then(function(b){a.pauses=b.rows,e.syncUpdates("pause",a.pauses)})["catch"](function(a){f.error(a)})}function u(){return j.get().$promise.then(function(b){a.chatQueues=b.rows,e.syncUpdates("chat_queue",a.chatQueues)})["catch"](function(a){f.error(a)})}function v(){return p.query({id:a.user.id,controller:"allowed",controller2:"chat",controller3:"queues"}).$promise.then(function(b){a.pChatQueues=b})["catch"](function(a){f.error(a)})}a.chatQueues=[];var w={controller:"realtime",controller1:"chat",offset:0,limit:10};a.moment=moment,a.initAgents=function(){a.user=n.getCurrentUser(),a.gridOptions={enableGridMenu:!0,headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,showGridFooter:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,useExternalPagination:!0,useExternalSorting:!0,useExternalFiltering:!0,multiSelect:!0,showTreeExpandNoChildren:!0,columnDefs:[{name:"name",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.isAgent">{{row.entity.agent}} <{{row.entity.internal}}></div>'},{name:"fullname",displayName:"APPLICATION_FULLNAME",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.isAgent">{{row.entity.fullname}}</div>'},{name:"online",displayName:"APPLICATION_ONLINE",width:150,headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.online != null && row.entity.isAgent"><i class="fa" data-ng-class="{\'font-green\':row.entity.online, \'font-red\':!row.entity.online,\'fa-user\':row.entity.online,\'fa-user-times\':!row.entity.online}"></i> <i data-ng-if="row.entity.online" class="fa fa-sign-out font-red pointer-cursor" title="logout" data-ng-click="grid.appScope.agentLogout(row.entity.agent,row.entity.agentId)"></i> <span data-ng-if="row.entity.online && grid.appScope.showTimers" class="left-margin"><css-timer start-time="row.entity.lastLoginAt"></css-timer></span></div>',filter:{type:m.filter.SELECT,selectOptions:[{value:"true",label:"ONLINE"},{value:"false",label:"OFFLINE"}]}},{name:"chatPause",displayName:"APPLICATION_PAUSE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'</div><div data-ng-if="row.entity.pause != null && row.entity.online" class="ui-grid-vcenter"><i data-ng-if="row.entity.pause" data-ng-click="grid.appScope.pause(row.entity,\'unpause\')" class="fa fa-play font-green pointer-cursor left-margin" title="{{\'APPLICATION_RESUME\' | translate}}"></i><i class="fa fa-pause font-yellow pointer-cursor" data-ng-click="grid.appScope.pause(row.entity,\'pause\',\'DEFAULT PAUSE\')" title="{{\'APPLICATION_DEFAULT_PAUSE\' | translate}}"></i><select data-ng-if="grid.appScope.pauses.length" class="pause-select pointer-cursor" data-ng-model="grid.appScope.pauseType" data-ng-change="grid.appScope.pause(row.entity,\'pause\',grid.appScope.pauseType)"><option class="pointer-cursor" data-ng-repeat="pause in grid.appScope.pauses">{{pause.name}}</option></select> <span data-ng-if="row.entity.pause">({{row.entity.pauseType}})</span><span data-ng-if="row.entity.pause && grid.appScope.showTimers" class="left-margin"><css-timer start-time="row.entity.lastPauseAt"></css-timer></span></div>',filter:{type:m.filter.SELECT,selectOptions:[{value:"true",label:"PAUSED"},{value:"false",label:"NOT PAUSED"}]},enableSorting:!1,enableColumnMenu:!1},{name:"queue",displayName:"APPLICATION_QUEUE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"action",displayName:"",width:170,cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><button data-ng-if="row.entity.queueId" class="btn btn-xs red-sunglo" data-ng-click="grid.appScope.leaveQueue(row.entity.agentId,row.entity.queueId)"><i class="icon-ban"></i> {{\'APPLICATION_LEAVE\' | translate}}</button><button data-ng-if="row.entity.isAgent && row.treeNode.children.length < grid.appScope.chatQueues.length" class="btn btn-xs blue-hoki" data-ng-click="grid.appScope.joinQueue(row.entity.agentId)"><i class="icon-plus"></i> {{\'APPLICATION_JOIN_QUEUE\' | translate}}</button><div>',enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1}],data:[],gridMenuTitleFilter:function(a){var b=l.defer();return b.resolve(d.instant(a)),b.promise},onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){x(a.gridApi.core.getVisibleRows(a.gridApi.grid).length)}),a.gridApi.treeBase.on.rowExpanded(a,function(b){x(a.gridApi.core.getVisibleRows(a.gridApi.grid).length+b.treeNode.children.length)}),a.gridApi.treeBase.on.rowCollapsed(a,function(b){x(a.gridApi.core.getVisibleRows(a.gridApi.grid).length-b.treeNode.children.length)}),a.gridApi.core.on.sortChanged(a,function(a,b){0===b.length?w.order=null:w.order=b[0].name+" "+b[0].sort.direction.toUpperCase(),q()}),a.gridApi.pagination.on.paginationChanged(a,function(a,b){w.offset=(a-1)*b,w.limit=b,q()}),a.gridApi.core.on.filterChanged(a,function(){var a=this.grid;a.columns.forEach(function(a){a.filters[0].term?w[a.name]=a.filters[0].term:delete w[a.name]}),q()})}},q(),t(),u(),v(),o(function(){r()})};var x=function(a){var b=a?30*a+130:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",b+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*a+"px")};a.$on("$destroy",function(){e.unsyncUpdates("agent"),e.unsyncUpdates("user_has_chat_queue")}),a.pause=function(b,c,e){return e&&(a.pauseType=null),i.save({name:c,agent:b.agentId,data2:b.agent,type:e||"DEFAULT PAUSE",data4:e||"DEFAULT PAUSE",channel:"chat"}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})},a.joinQueue=function(e){var g=c.open({animation:!0,templateUrl:"app/channels/chat/realtime/view/agent/queue.modal.add.html",controller:"ChatRealtimeViewAgentQueueModalCtrl",resolve:{queues:function(){return _.reject(a.chatQueues,function(b){return!!_.find(a.gridOptions.data,{queue:b.name,isAgent:!1,agentId:e})})}}});g.result.then(function(b){return i.save({name:"QueueAdd",agent:e,queues:_.filter(a.chatQueues,function(a){return _.includes(b.queues,a.id)}),channel:"chat",data1:e,data3:b.queues.join(","),data4:"chat"}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})},function(){b.info("Modal dismissed at: "+new Date)})},a.leaveQueue=function(a,b){return i.save({name:"QueueRemove",agent:a,queueId:b,channel:"chat",data1:a,data3:b,data4:"chat"}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})},a.showInfo=function(a){c.open({animation:!0,templateUrl:"app/channels/chat/realtime/view/agent/agent.modal.info.html",controller:"ChatRealtimeViewAgentInfoModalCtrl",resolve:{agent:a}})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.realtime.view.agents",{url:"/agents",templateUrl:"app/channels/chat/realtime/view/agent/agent.html",controller:"ChatRealtimeViewAgentCtrl"})}]),angular.module("xCallyShuttleApp").controller("ChatRealtimeViewAgentInfoModalCtrl",["$scope","$uibModalInstance","$http","agent",function(a,b,c,d){a.agent=d,a.close=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("ChatRealtimeViewAgentQueueModalCtrl",["$scope","$uibModalInstance","$http","queues",function(a,b,c,d){a.queues=d,a.item={},a.save=function(){b.close(a.item)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("ChatRealtimeViewApplicationCtrl",["$scope","$log","$uibModal","$translate","socket","xAlert","ReportChatSession","usSpinnerService","$q","uiGridConstants","$timeout",function(a,b,c,d,e,f,g,h,i,j,k){function l(){return h.spin("spinner-grid"),g.get({controller:"waiting",controller2:"applications"}).$promise.then(function(b){a.gridOptions.data=b.rows})["catch"](function(a){f.error(a)})["finally"](function(){m(),h.stop("spinner-grid")})}function m(){e.socket.on("report_chat_session:save",function(b){var c=_.find(a.gridOptions.data,{id:b.id});c?(_.merge(c,b),b.leaveAt&&k(function(){_.remove(a.gridOptions.data,{id:b.id})},1e4)):b.leaveAt||a.gridOptions.data.push(b)}),e.socket.on("report_chat_session:remove",function(b){_.remove(a.gridOptions.data,{id:b.id})})}a.moment=moment,a.initApplications=function(){a.gridOptions={headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,columnDefs:[{name:"uniqueid",displayName:"APPLICATION_UNIQUEID",headerCellFilter:"translate"},{name:"websitename",displayName:"APPLICATION_WEBSITE",headerCellFilter:"translate"},{name:"application",displayName:"APPLICATION_APPLICATION",headerCellFilter:"translate"},{name:"status",displayName:"APPLICATION_STATUS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span data-ng-if="!row.entity.leaveAt">{{\'APPLICATION_QUEUESTATUS_WAITING\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.abandon">{{\'APPLICATION_QUEUESTATUS_ABANDON\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.complete">{{\'APPLICATION_QUEUESTATUS_COMPLETE\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.timeout">{{\'APPLICATION_TIMEOUT\' | translate}}</span> <span data-ng-if="!row.entity.leaveAt && grid.appScope.showTimers"><css-timer start-time="row.entity.updatedAt"></css-timer></span></div>',enableSorting:!1,enableColumnMenu:!1,enableFiltering:!1},{name:"membername",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.membername || ''}}</span></div>"},{name:"queuename",displayName:"APPLICATION_QUEUE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.queuename || ''}}</span></div>"}],data:[],gridMenuTitleFilter:function(a){var b=i.defer();return b.resolve(d.instant(a)),b.promise},onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){n(a.gridOptions.data.length)})}},l()};var n=function(a){var b=a?30*a+60:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",b+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*a+"px")};a.$on("$destroy",function(){e.unsyncUpdates("report_chat_session")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.realtime.view.applications",{url:"/applications",templateUrl:"app/channels/chat/realtime/view/application/application.html",controller:"ChatRealtimeViewApplicationCtrl"})}]),angular.module("xCallyShuttleApp").controller("ChatRealtimeViewCtrl",["$scope",function(a){a.agents=[{name:"Queues",link:"main.chat.realtime.view.agent.queues"},{name:"Timeline",link:"main.chat.realtime.view.agent.timeline"}],a.sessions=[{name:"Sessions",link:"main.chat.realtime.view.sessions"}],a.timerSwitch={isActive:!0,size:"mini",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"primary"},a.showTimers=!1}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.realtime.view",{url:"/view",templateUrl:"app/channels/chat/realtime/view/view.html",controller:"ChatRealtimeViewCtrl"})}]),angular.module("xCallyShuttleApp").factory("ReportChatSession",["$resource",function(a){return a("/api/report/chat/sessions/:id/:controller/:controller2",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.room.external",{url:"/external",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("ChatRoomExternalListCtrl",["$scope","$timeout","socket","Auth","ChatRoom","usSpinnerService","Tag","$uibModal","uibButtonConfig","uiGridConstants",function(a,b,c,d,e,f,g,h,i,j){function k(){return g.get().$promise.then(function(b){a.tags=_.map(b.rows,"name")})["catch"](function(a){console.error(a)})}a.openChat=function(b){return e.get({id:b.id}).$promise.then(function(b){var c=_.find(a.workspaces,{id:b.id,type:"chatRoom"});c?c.active=!0:a.workspaces.push({id:b.id,name:b.ChatVisitor.fullname,type:"chatRoom","class":"icon-bubble",active:!0})})["catch"](function(a){console.error(a)})},a.initView=function(){i.activeClass="green-haze",a.id=[],a.query={status:"OPEN",tags:[]},a.gridOptions={enableGridMenu:!1,enableFiltering:!0,enableHorizontalScrollbar:0,enableVerticalScrollbar:0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,flatEntityAccess:!0,showGridFooter:!0,fastWatch:!0,columnDefs:[{name:"tags",displayName:"",headerCellTemplate:'<i class="icon-tag" style="margin-top: 8px; margin-left: 8px;"></i>',cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div><i data-ng-class=\"row.entity.tags.length ? 'icon-tag' : ''\" title=\"{{row.entity.tags}}\"></i></div>",width:30,enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"id",displayName:"ID",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div><span>#{{row.entity.id}}</span></div>",width:75,enableSorting:!0,enableFiltering:!0,enableColumnMenu:!1},{name:"userpic",displayName:"",width:35,cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div> <ng-letter-avatar height="20" width="20" fontsize="12" data="{{row.entity.ChatVisitor.fullname}}" avatarcustombgcolor="#B0B0B0" charCount="2" avatarcustomborder="border:2px solid #EA4C61" shape="round"></ng-letter-avatar> </div>',enableColumnMenu:!1,enableSorting:!1,enableFiltering:!1},{name:"agent",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span style="padding-left: 5px;" class="pull-left">{{row.entity.Users[0].fullname}}</span></div>',enableSorting:!0,enableFiltering:!0,enableColumnMenu:!0},{name:"fullname",displayName:"APPLICATION_CUSTOMER_NAME",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span style="padding-left: 5px;" class="pull-left">{{row.entity.ChatVisitor.fullname}}</span></div>',enableSorting:!0,enableFiltering:!0,enableColumnMenu:!0},{name:"contact",displayName:"APPLICATION_CUSTOMER_EMAIL",headerCellFilter:"translate"},{name:"website",displayName:"APPLICATION_WEBSITE",headerCellFilter:"translate",cellClass:"text-center"},{name:"disposition",displayName:"APPLICATION_DISPOSITION",headerCellFilter:"translate"},{name:"createdAt",displayName:"APPLICATION_CREATED_AT",headerCellFilter:"translate",cellFilter:"date:'dd/MM/yyyy HH:mm'",width:120,enableFiltering:!1,sort:{direction:j.DESC}},{name:"action",displayName:"APPLICATION_ACTION",headerCellFilter:"translate",cellTemplate:'<div><a class="btn btn-xs green-meadow" href="#" data-ng-click="grid.appScope.openChat(row.entity)"><i class="icon-bubble"></i></a></div>',cellClass:"ui-grid-vcenter",width:75,enableFiltering:!1,enableSorting:!1,enableColumnMenu:!1}],data:[],onRegisterApi:function(b){a.gridApi=b,a.gridApi.selection&&(a.gridApi.selection.on.rowSelectionChanged(a,function(b){b.isSelected?a.id.push(a.gridApi.grid.options.primaryKey?b.entity[a.gridApi.grid.options.primaryKey]:b.entity.id):_.pull(a.id,a.gridApi.grid.options.primaryKey?b.entity[a.gridApi.grid.options.primaryKey]:b.entity.id)}),a.gridApi.selection.on.rowSelectionChangedBatch(a,function(b){b[0].isSelected?a.id=_.union(a.id,_.map(b,a.gridApi.grid.options.primaryKey?"entity."+a.gridApi.grid.options.primaryKey:"entity.id")):_.map(b,a.gridApi.grid.options.primaryKey?"entity."+a.gridApi.grid.options.primaryKey:"entity.id").forEach(function(b){_.pull(a.id,b)})}))}},a.getPage(),k()},a.tagItems=function(){h.open({animation:!0,templateUrl:"app/channels/chat/room/view.tags.modal.html",controller:"ChatRoomViewModalTagCtrl",resolve:{id:function(){return a.id}}}).result.then(function(){a.gridApi.selection.clearSelectedRows(),a.id=[]})},a.onChanged=function(){a.getPage()},a.$watch("query.status",function(){ +a.getPage()},!0),a.getPage=function(){return f.spin("spinner-grid"),e.get(_.merge({id:"externals"},a.query)).$promise.then(function(b){a.gridOptions.data=b.rows})["catch"](function(a){console.error(a)})["finally"](function(){f.stop("spinner-grid")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.room.external.list",{url:"/list",templateUrl:"app/channels/chat/room/external/list/list.html",controller:"ChatRoomExternalListCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.room.group",{url:"/group",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("ChatRoomGroupListCtrl",["$scope","$timeout","Auth","ChatRoom","usSpinnerService","Tag","uibButtonConfig","uiGridConstants","$uibModal",function(a,b,c,d,e,f,g,h,i){function j(){return f.get().$promise.then(function(b){a.tags=_.map(b.rows,"name")})["catch"](function(a){console.error(a)})}a.getFullnames=function(a){var b=_.without(_.map(a.Users,"fullname"),c.getCurrentUser().fullname);return a.ChatVisitor&&b.unshift(a.ChatVisitor.fullname),b.join(", ")},a.openChat=function(b){return d.get({id:b.id}).$promise.then(function(c){var d=_.find(a.workspaces,{id:c.id,type:"chatRoom"});d?d.active=!0:a.workspaces.push({id:c.id,data:b,name:a.getFullnames(c),type:"chatRoom","class":"icon-bubble",active:!0})})["catch"](function(a){console.error(a)})},a.initView=function(){g.activeClass="green-haze",a.id=[],a.query={status:"OPEN",tags:[]},a.currentUser=c.getCurrentUser(),a.gridOptions={enableGridMenu:!1,enableColumnResizing:!0,enableHorizontalScrollbar:0,enableVerticalScrollbar:0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,flatEntityAccess:!0,showGridFooter:!0,fastWatch:!0,columnDefs:[{name:"tags",displayName:"",headerCellTemplate:'<i class="icon-tag" style="margin-top: 8px; margin-left: 8px;"></i>',cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div><i data-ng-class=\"row.entity.tags.length ? 'icon-tag' : ''\" title=\"{{row.entity.tags}}\"></i></div>",width:30,enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"id",displayName:"ID",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div><span>#{{row.entity.id}}</span></div>",width:75,enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"userpic",displayName:"",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div> <ng-letter-avatar data-ng-if="row.entity.ChatVisitor" height="20" width="20" fontsize="12" data="{{row.entity.ChatVisitor.fullname}}" avatarcustombgcolor="#B0B0B0" charCount="2" avatarcustomborder="border:2px solid #EA4C61" shape="round"></ng-letter-avatar> <ng-letter-avatar data-ng-repeat="user in row.entity.Users | filter:{ id: \'!\' + grid.appScope.currentUser.id} track by user.id" style="margin-right: 3px;" height="20" width="20" fontsize="12" data="{{user.fullname}}" avatarcustombgcolor="#B0B0B0" charCount="2" avatarcustomborder="border:2px solid #3399CC" shape="round"></ng-letter-avatar> </div>',enableColumnMenu:!1,enableSorting:!1,enableFiltering:!1},{name:"Users",displayName:"APPLICATION_MEMBERS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{grid.appScope.getFullnames(row.entity)}}</div>",enableSorting:!0,enableFiltering:!0,enableColumnMenu:!0},{name:"contact",displayName:"APPLICATION_CUSTOMER_EMAIL",headerCellFilter:"translate"},{name:"website",displayName:"APPLICATION_WEBSITE",headerCellFilter:"translate",cellClass:"text-center"},{name:"disposition",displayName:"APPLICATION_DISPOSITION",headerCellFilter:"translate"},{name:"createdAt",displayName:"APPLICATION_CREATED_AT",headerCellFilter:"translate",cellFilter:"date:'dd/MM/yyyy HH:mm'",width:120,enableFiltering:!1,sort:{direction:h.DESC}},{name:"action",displayName:"APPLICATION_ACTION",headerCellFilter:"translate",cellTemplate:'<div><a class="btn btn-xs green-meadow" href="#" data-ng-click="grid.appScope.openChat(row.entity)"><i class="icon-bubble"></i></a></div>',cellClass:"ui-grid-vcenter",width:75,enableFiltering:!1,enableSorting:!1,enableColumnMenu:!1}],data:[]},a.getPage(),j()},a.tagItems=function(){i.open({animation:!0,templateUrl:"app/channels/chat/room/view.tags.modal.html",controller:"ChatRoomViewModalTagCtrl",resolve:{id:function(){return a.id}}}).result.then(function(){a.gridApi.selection.clearSelectedRows(),a.id=[]})},a.onChanged=function(){a.getPage()},a.$watch("query.status",function(){a.getPage()},!0),a.getPage=function(){return e.spin("spinner-grid"),d.get(_.merge({id:"groups"},a.query)).$promise.then(function(b){a.gridOptions.data=b.rows})["catch"](function(a){console.error(a)})["finally"](function(){e.stop("spinner-grid")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.room.group.list",{url:"/list",templateUrl:"app/channels/chat/room/group/list/list.html",controller:"ChatRoomGroupListCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.room.internal",{url:"/internal",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("ChatRoomInternalListCtrl",["$scope","$timeout","socket","Auth","ChatRoom","usSpinnerService",function(a,b,c,d,e,f){a.openChat=function(b){return e.users({users:[d.getCurrentUser().id,b.id]}).$promise.then(function(c){var d=_.find(a.workspaces,{id:c.id,type:"chatRoom"});d?d.active=!0:a.workspaces.push({id:c.id,name:b.fullname,type:"chatRoom","class":"icon-bubble",active:!0})})["catch"](function(a){console.error(a)})},a.initView=function(){a.gridOptions={enableGridMenu:!1,enableFiltering:!0,enableHorizontalScrollbar:0,enableVerticalScrollbar:0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,flatEntityAccess:!0,showGridFooter:!0,fastWatch:!0,columnDefs:[{name:"userpic",displayName:"",width:35,cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div> <ng-letter-avatar height="20" width="20" fontsize="12" data="{{row.entity.fullname}}" avatarcustombgcolor="#B0B0B0" charCount="2" avatarcustomborder="border:2px solid #3399CC" shape="round"></ng-letter-avatar> </div>',enableColumnMenu:!1,enableSorting:!1,enableFiltering:!1},{name:"fullname",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",enableSorting:!0,enableFiltering:!0,enableColumnMenu:!0},{name:"action",cellTemplate:'<div><a class="btn btn-xs green-meadow" href="#" data-ng-click="grid.appScope.openChat(row.entity)"><i class="icon-bubble"></i></a></div>',cellClass:"ui-grid-vcenter",width:75,enableFiltering:!1,enableSorting:!1,enableColumnMenu:!1}],data:[]},c.socket.on("user:save",function(b){if(b.online&&d.getCurrentUser().id!==b.id){var c=_.find(a.gridOptions.data,{id:b.id});c?_.merge(c,b):a.gridOptions.data.push(b)}else _.remove(a.gridOptions.data,{id:b.id})}),b(function(){c.socket.on("agent:save",function(b){if(b.online&&d.getCurrentUser().id!==b.id){var c=_.find(a.gridOptions.data,{id:b.id});c?_.merge(c,b):a.gridOptions.data.push(b)}else _.remove(a.gridOptions.data,{id:b.id})})}),e.get({id:"agents"}).$promise.then(function(b){a.gridOptions.data=b.rows})["catch"](function(a){console.error(a)})["finally"](function(){f.stop("spinner-grid")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.room.internal.list",{url:"/list",templateUrl:"app/channels/chat/room/internal/list/list.html",controller:"ChatRoomInternalListCtrl"})}]),angular.module("xCallyShuttleApp").controller("ChatRoomAddCtrl",["$scope","$uibModalInstance","Agent","items",function(a,b,c,d){a.items=d,a.agents=c.get(function(b){a.agents=b,a.items.forEach(function(b){_.remove(a.agents.rows,{id:b.id})})}),a.selected={items:[]},a.ok=function(){b.close(_.union(_.map(a.selected.items,"id"),_.map(a.items,"id")))},a.cancel=function(){b.dismiss()}}]),angular.module("xCallyShuttleApp").controller("ChatRoomCloseCtrl",["$scope","$uibModalInstance","closed","ChatWebsite","websiteId",function(a,b,c,d,e){a.modal={title:"APPLICATION_CONFIRM_CLOSE",text:"MESSAGE_ARE_YOU_SURE_YOU_WANT_TO_CLOSE_THE_CHAT"},a.initDisposition=function(){return d.get({websiteId:e,controller:"dispositions"}).$promise.then(function(b){a.dispositions=b.rows})["catch"](function(a){console.error(a)})},a.item={},a.closed=c,a.ok=function(){b.close(a.item)},a.cancel=function(){b.dismiss()}}]),angular.module("xCallyShuttleApp").directive("chatRoom",["$interval","$rootScope","$uibModal","$notification","$window","socket","Auth","ChatRoom","ngAudio","xAlert","Tag","CannedAnswer","List","$translate",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n){return{restrict:"E",scope:{workspace:"="},templateUrl:"app/channels/chat/room/room.directive.html",link:function(a){a.user=g.getCurrentUser(),a.ChatRoom=h,a.message={body:""},a.openContact=function(c){return a.chatRoom.ChatWebsite.List?m.save({listId:a.chatRoom.ChatWebsite.List.id,controller:"contacts"},{email:c}).$promise.then(function(a){var c=_.find(b.$root.workspaces,{contactID:a.id});c?c.active=!0:b.$root.workspaces.push({active:!0,"class":"icon-user",contactID:a.id,name:a.email,type:"contact"})})["catch"](function(a){console.error(a)}):void j.show(n.instant("MESSAGE_NO_LIST_CONFIGURED"),"info")},a.modelOptions={debounce:{"default":500,blur:250},getterSetter:!0},a.form={},a.panelLeft="col-md-4",a.panelRight="col-md-8",a.onSelect=function(){a.message.body=a.modelOptions.selectedAnswer,delete a.modelOptions.selectedAnswer},a.togglePanelLeft=function(){a.panelLeft?(a.panelLeft=null,a.panelRight="col-md-12"):(a.panelLeft="col-md-4",a.panelRight="col-md-8")},a.options={link:!0,linkTarget:"_blank",pdf:{embed:!0},image:{embed:!0},audio:{embed:!0},code:{highlight:!0,lineNumbers:!1},basicVideo:!0},a.getAnswers=function(a){return l.get({key:a}).$promise.then(function(a){return console.log(a),_.map(a.rows,"value")})},a.isMyRoom=function(b){return!!_.find(b,{id:a.user.id})},h.get({id:a.workspace.id}).$promise.then(function(c){a.chatRoom=c,a.form.tags=c.tags,a.chatRoom.ChatVisitor&&(a.chatRoom.ChatVisitors=[],a.chatRoom.ChatVisitors.push(a.chatRoom.ChatVisitor)),f.socket.on("chat_room:save",function(b){a.chatRoom.id===b.id&&_.merge(a.chatRoom,b)}),f.socket.on("user_has_chat_room:save",function(b){return b.UserId!=a.user.id&&b.ChatRoomId==a.chatRoom.id?h.get({id:"agents",controller:b.UserId}).$promise.then(function(b){var c=_.map(a.chatRoom.Users,"fullname");a.chatRoom.ChatVisitor&&c.unshift(a.chatRoom.ChatVisitor.fullname),a.chatRoom.Users.push(b),a.workspace.name=_.without(c,g.getCurrentUser().fullname).join(", ")})["catch"](function(a){console.error(a)}):void 0}),f.socket.on("chat_message:save",function(c){a.chatRoom.id==c.ChatRoomId&&(a.user.id!=c.UserId&&a.chatRoom.ChatMessages.push(c),c.UserId?c.UserId!==g.getCurrentUser().id&&!b.settings.layout.onFocus&&e.Notification&&_.includes(c.userids,g.getCurrentUser().id)&&d("CHAT CHANNEL",{icon:"assets/images/media/channels/chat64.png",body:"NEW Chat Message!",delay:5e3}):!b.settings.layout.onFocus&&e.Notification&&_.includes(c.userids,g.getCurrentUser().id)&&d("CHAT CHANNEL",{icon:"assets/images/media/channels/chat64.png",body:"NEW Chat Message!",delay:5e3}),a.workspace.active||(i.load("api/xchatty/assets?resource=notification/xc_blubb.mp3").play(),a.workspace.unread++))})})["catch"](function(a){console.error(a)}),k.get().$promise.then(function(b){a.tags=_.map(b.rows,"name")})["catch"](function(a){console.error(a)}),a.closeRoom=function(b){return c.open({animation:!0,templateUrl:"app/channels/chat/room/room.close.html",controller:"ChatRoomCloseCtrl",resolve:{closed:function(){return"CLOSED"===a.chatRoom.status},websiteId:function(){return a.chatRoom.ChatWebsiteId}}}).result.then(function(a){var c={id:b,status:"CLOSED",completeReason:"agent"};return a.disposition&&(c.disposition=a.disposition),h.update(c).$promise["catch"](function(a){j.error(a)})})},a.onChanged=function(b){return h.update({id:b},{tags:a.form.tags}).$promise["catch"](function(a){console.error(a)})},a.addAgent=function(b){c.open({animation:!0,templateUrl:"app/channels/chat/room/room.add.html",controller:"ChatRoomAddCtrl",resolve:{items:function(){return _.map(a.chatRoom.Users||[],function(a){return{id:a.id,fullname:a.fullname}})}}}).result.then(function(a){return h.update({id:b,controller:"users"},{users:a}).$promise["catch"](function(a){j.error(a)})})},a.sendMessage=function(){var b={body:angular.copy(a.message.body),createdAt:moment().format(),UserId:a.user.id,User:{fullname:a.user.fullname}};return a.message.body.trim().length?(a.chatRoom.ChatMessages.push(b),a.message.body="",h.save({id:a.chatRoom.id,controller:"messages"},{body:b.body}).$promise["catch"](function(a){console.error(a)})):void 0}}}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.room",{url:"/room",templateUrl:"app/channels/chat/room/room.html",data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:31}},resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/inbox.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("ChatRoomViewModalTagCtrl",["$scope","$uibModalInstance","$translate","$stateParams","Tag","ChatRoom","xAlert","id",function(a,b,c,d,e,f,g,h){a.initModal=function(){return a.tags=[],a.item={tags:[]},a.modal={dismissable:!0,title:"APPLICATION_MESSAGE_SEND_RETRY",text:"MESSAGE_MESSAGE_SEND_RETRY",buttons:[{"class":"btn-success",text:"APPLICATION_TAG",click:function(){var d={status:!0};return f.patch({id:h},{tags:a.item.tags}).$promise["catch"](function(){d.status=!1,g.show(c.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})["finally"](function(){b.close(d)})}},{"class":"default",text:"APPLICATION_CANCEL",click:function(a){b.dismiss(a)}}]},e.get().$promise.then(function(b){a.tags=_.map(b.rows,"name")})["catch"](function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").controller("ChatVisitorListCtrl",["$scope","ChatVisitor","gridOptions","$uibModal",function(a,b,c,d){a.initView=function(){var d={exporterCsvFilename:"chat_visitors.csv",columnDefs:[{name:"fullname",cellClass:"text-center"},{name:"email",cellClass:"text-center"},{name:"origin",cellClass:"text-center"},{name:"createdAt",displayName:"createdAt",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span am-time-ago="row.entity.createdAt"></span></div>'},{name:"action",width:100,buttons:[{"class":"blue-hoki",href:"/channels/chat/visitors/view/{{row.entity.id}}/profile",name:"profile"}]}]};a.gridOptions=c.gridOptions(b,d,a)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.visitors.list",{url:"/list",templateUrl:"app/channels/chat/visitor/list/list.html",controller:"ChatVisitorListCtrl"})}]),angular.module("xCallyShuttleApp").controller("ChatVisitorViewCtrl",["$scope","$stateParams","ChatVisitor",function(a,b,c){a.initView=function(){return c.get({id:b.id}).$promise.then(function(b){a.chatVisitor=b})["catch"](function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.visitors.view",{url:"/view/:id",templateUrl:"app/channels/chat/visitor/view/view.html",controller:"ChatVisitorViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.channels.chat.visitors.view.profile",{url:"/profile",templateUrl:"app/channels/chat/visitor/view/view.profile.html"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.visitors",{url:"/visitors",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:8}}})}]),angular.module("xCallyShuttleApp").factory("ChatApplication",["$resource",function(a){return a("/api/chat/applications/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("ChatWebsite",["$resource",function(a){return a("/api/chat/websites/:websiteId/:controller/:id",{id:"@websiteId"},{update:{method:"PUT"},updateFields:{method:"PUT",isArray:!0}})}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteListCtrl",["$scope","gridOptions","ChatWebsite",function(a,b,c){a.initView=function(){var d={exporterCsvFilename:"chat_websites.csv",columnDefs:[{name:"name"},{name:"description"},{name:"address"},{name:"action",width:75,buttons:[{"class":"blue-hoki",href:"/channels/chat/websites/view/{{row.entity.id}}/embedding/view",name:"embedding"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=b.gridOptions(c,d,a)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.websites.list",{url:"/list",templateUrl:"app/channels/chat/website/list/list.html",controller:"ChatWebsiteListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.websites.view.actions",{url:"/actions",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteViewActionListCtrl",["$scope","gridOptions","ChatWebsite","$http","$translate","$stateParams","socket","xAlert","Modal",function(a,b,c,d,e,f,g,h,i){a.initActons=function(){var d={draggable:!0,exporterCsvFilename:"chat_applications.csv",enableSorting:!1,enableFiltering:!1,columnDefs:[{name:"app",cellClass:"text-center"},{name:"name",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div><span>{{row.entity.ChatQueue ? row.entity.ChatQueue.name : row.entity.User.name}}</span></div>"},{name:"timeout",cellClass:"text-center"},{name:"interval",displayName:"APPLICATION_TIME_INTERVAL",cellClass:"text-center",cellTemplate:"<div><span>{{row.entity.Interval ? row.entity.Interval.name : row.entity.interval}}</span></div>"},{name:"action",width:125,buttons:[{"class":"blue-hoki",href:"/channels/chat/websites/view/{{row.entity.ChatWebsiteId}}/actions/view/{{row.entity.id}}",name:"profile"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.app, row.entity.id)"}]}]};a.gridOptions=b.gridOptions(c,d,a,{websiteId:f.websiteId,controller:"applications"})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.websites.view.actions.list",{url:"/list",templateUrl:"app/channels/chat/website/view/action/list/list.html",controller:"ChatWebsiteViewActionListCtrl"})}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteViewActionViewCtrl",["$scope","$http","$stateParams","$translate","$location","xAlert","WizardHandler","socket","application","interval","ChatWebsite","ChatQueue","Agent","Interval","Template","MailAccount","SmsAccount",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.initAction=function(){return a.$application=i.application,a.$stateParams=c,a.$interval=j.interval,a.forms={},a.apps=[{name:"Queue",value:"queue"},{name:"Agent",value:"agent"},{name:"SendMail",value:"sendMail"},{name:"SendSMS",value:"sendSms"}],k.get({websiteId:c.websiteId,controller:"applications",id:c.actionId}).$promise.then(function(b){if(a.application=b,a.application.alwaysTime=!1,a.application.IntervalId)a.application.intType="list";else switch(a.application.interval){case"*,*,*,*":a.application.intType="always";break;default:a.application.intType="custom"}if("always"===a.application.intType||"custom"===a.application.intType){var c=a.application.interval.split(",");"*"===c[0]?a.application.alwaysTime=!0:(a.application.t_from=moment(new Date),a.application.t_to=moment(new Date),a.application.t_from.hour(c[0].split("-")[0].split(":")[0]),a.application.t_from.minute(c[0].split("-")[0].split(":")[1]),a.application.t_to.hour(c[0].split("-")[1].split(":")[0]),a.application.t_to.minute(c[0].split("-")[1].split(":")[1])),"*"===c[1]?(a.application.wd_from="always",a.application.wd_to="always"):(a.application.wd_from=c[1].split("-")[0],a.application.wd_to=c[1].split("-")[1]),"*"===c[2]?(a.application.md_from="always",a.application.md_to="always"):(a.application.md_from=c[2].split("-")[0],a.application.md_to=c[2].split("-")[1]),"*"===c[3]?(a.application.m_from="always",a.application.m_to="always"):(a.application.m_from=c[3].split("-")[0],a.application.m_to=c[3].split("-")[1])}a.$watch("application.t_from",function(b){a.application.t_from_hm=moment(b).format("HH:mm")}),a.$watch("application.t_to",function(b){a.application.t_to_hm=moment(b).format("HH:mm")})})["catch"](function(a){f.error(a)})},a.getQueues=function(){return l.get().$promise.then(function(b){a.queues=b.rows})["catch"](function(a){f.error(a)})},a.getAgents=function(){return m.get().$promise.then(function(b){a.agents=b.rows})["catch"](function(a){f.error(a)})},a.getIntervals=function(){return n.get().$promise.then(function(b){a.intervals=b.rows})["catch"](function(a){f.error(a)})},a.getSmsAccounts=function(){return q.get().$promise.then(function(b){a.smsAccounts=b.rows})["catch"](function(a){console.error(a)})},a.getTemplates=function(){return o.get().$promise.then(function(b){a.templates=b.rows})["catch"](function(a){console.error(a)})},a.getMailAccounts=function(){return p.get({custom:!0}).$promise.then(function(b){a.mailAccounts=b.rows})["catch"](function(a){console.error(a)})},a.updateItem=function(){switch(a.application.intType){case"always":a.application.interval="*,*,*,*",a.application.IntervalId=null;break;case"list":var b=_.find(a.intervals,{id:a.application.IntervalId});a.application.interval=b?"":"*,*,*,*",a.application.IntervalId=b?a.application.IntervalId:null;break;case"custom":var g,h,i,j,l;g=a.application.t_from&&a.application.t_to&&!a.application.alwaysTime?moment(a.application.t_from).format("HH:mm")+"-"+moment(a.application.t_to).format("HH:mm"):"*",a.application.wd_from&&"always"!==a.application.wd_from?(h=a.application.wd_from,a.application.wd_to&&"always"!==a.application.wd_to&&(h+="-"+a.application.wd_to)):h="*",a.application.md_from&&"always"!==a.application.md_from?(i=a.application.md_from,a.application.md_to&&"always"!==a.application.md_to&&(i+="-"+a.application.md_to)):i="*",a.application.m_from&&"always"!==a.application.m_from?(j=a.application.m_from,a.application.m_to&&"always"!==a.application.m_to&&(j+="-"+a.application.m_to)):j="*",l=g+","+h+","+i+","+j,a.application.interval=l,a.application.IntervalId=null}return k.update({websiteId:c.websiteId,controller:"applications",id:c.actionId},a.application).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success"),e.path("/channels/chat/websites/view/"+c.websiteId+"/actions/list")})["catch"](function(a){f.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.websites.view.actions.view",{url:"/view/:actionId",templateUrl:"app/channels/chat/website/view/action/view/view.html",controller:"ChatWebsiteViewActionViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteViewActionWizardCtrl",["$scope","$http","Agent","Interval","ChatQueue","$stateParams","$translate","$location","xAlert","WizardHandler","socket","application","interval","ChatWebsite","Template","MailAccount","SmsAccount",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.initWizard=function(){a.apps=[{name:"Queue",value:"queue"},{name:"Agent",value:"agent"},{name:"SendMail",value:"sendMail"},{name:"SendSMS",value:"sendSms"}],a.$application=l.application,a.$stateParams=f,a.$interval=m.interval,a.forms={},a.application={app:"queue",intType:"always",alwaysTime:!0},a.$watch("application.t_from",function(b){a.application.t_from_hm=moment(b).format("HH:mm")}),a.$watch("application.t_to",function(b){a.application.t_to_hm=moment(b).format("HH:mm")})},a.getQueues=function(){return e.get().$promise.then(function(b){a.queues=b.rows})["catch"](function(a){console.error(a)})},a.getAgents=function(){return c.get().$promise.then(function(b){a.agents=b.rows})["catch"](function(a){i.error(a)})},a.getIntervals=function(){return d.get().$promise.then(function(b){a.intervals=b.rows})["catch"](function(a){i.error(a)})},a.getSmsAccounts=function(){return q.get().$promise.then(function(b){a.smsAccounts=b.rows})["catch"](function(a){console.error(a)})},a.getTemplates=function(){return o.get().$promise.then(function(b){a.templates=b.rows})["catch"](function(a){console.error(a)})},a.getMailAccounts=function(){return p.get().$promise.then(function(b){a.mailAccounts=b.rows})["catch"](function(a){console.error(a)})},a.createItem=function(){switch(a.application.intType){case"always":a.application.interval="*,*,*,*",a.application.IntervalId=null;break;case"list":var b=_.find(a.intervals,{id:a.application.IntervalId});a.application.interval=b?"":"*,*,*,*",a.application.IntervalId=b?a.application.IntervalId:null;break;case"custom":var c,d,e,j,k;c=a.application.t_from&&a.application.t_to&&!a.application.alwaysTime?moment(a.application.t_from).format("HH:mm")+"-"+moment(a.application.t_to).format("HH:mm"):"*",a.application.wd_from&&"always"!==a.application.wd_from?(d=a.application.wd_from,a.application.wd_to&&"always"!==a.application.wd_to&&(d+="-"+a.application.wd_to)):d="*",a.application.md_from&&"always"!==a.application.md_from?(e=a.application.md_from,a.application.md_to&&"always"!==a.application.md_to&&(e+="-"+a.application.md_to)):e="*",a.application.m_from&&"always"!==a.application.m_from?(j=a.application.m_from,a.application.m_to&&"always"!==a.application.m_to&&(j+="-"+a.application.m_to)):j="*",k=c+","+d+","+e+","+j,a.application.interval=k,a.application.IntervalId=null}return n.save({websiteId:f.websiteId,controller:"applications"},a.application).$promise.then(function(){i.show(g.instant("MESSAGE_WELL_DONE"),"success"),h.path("/channels/chat/websites/view/"+f.websiteId+"/actions/list")})["catch"](function(a){i.error(a)})},a.formValidation=function(a){return a},a.next=function(){j.wizard().next()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.websites.view.actions.wizard",{url:"/wizard",templateUrl:"app/channels/chat/website/view/action/wizard/wizard.html",controller:"ChatWebsiteViewActionWizardCtrl"})}]),angular.module("xCallyShuttleApp").factory("ChatDisposition",["$resource",function(a){return a("/api/chat/dispositions/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteViewModalDispositionAddCtrl",["$scope","$uibModalInstance","ChatWebsite","id","xAlert","$translate",function(a,b,c,d,e,f){a.ok=function(){return c.save({websiteId:d,controller:"dispositions"},{name:a.name}).$promise.then(function(a){b.close(a)})["catch"](function(a){e.show(f.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteDispositionViewCtrl",["$scope","$stateParams","$uibModal","$translate","ChatWebsite","xAlert",function(a,b,c,d,e,f){a.initView=function(){return e.get({websiteId:b.websiteId,controller:"dispositions"}).$promise.then(function(b){a.dispositions=b.rows})["catch"](function(a){console.error(a),f.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.updateDisposition=function(a,c){return e.update({websiteId:b.websiteId,controller:"dispositions",id:a},{name:c}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE")+"!","success")})["catch"](function(a){console.error(a),f.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.deleteDisposition=function(c){return console.log("delete"),e.remove({websiteId:b.websiteId,controller:"dispositions",id:c}).$promise.then(function(){_.remove(a.dispositions,{id:c})})["catch"](function(a){console.error(a),f.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.addDisposition=function(){return c.open({animation:!0,templateUrl:"app/channels/chat/website/view/disposition/modal/add.modal.html",controller:"ChatWebsiteViewModalDispositionAddCtrl",resolve:{id:function(){return b.websiteId}}}).result.then(function(b){b&&a.dispositions.push(b)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.websites.view.dispositions",{url:"/dispositions",controller:"ChatWebsiteDispositionViewCtrl",templateUrl:"app/channels/chat/website/view/disposition/view/view.html"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.websites.view.embedding",{url:"/embedding",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteViewEmbeddingViewCtrl",["$scope","$stateParams","$translate","clipboard","xAlert","ChatWebsite",function(a,b,c,d,e,f){a.initView=function(){return f.get({websiteId:b.websiteId,controller:"snippet"}).$promise.then(function(b){a.snippetCode=b.html})["catch"](function(a){e.error(a)})},a.copyToClipboard=function(){d.copyText(a.snippetCode),e.show(c.instant("MESSAGE_TEXT_COPIED_CLIPBOARD")+"!","success")}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.websites.view.embedding.view",{url:"/view",templateUrl:"app/channels/chat/website/view/embedding/view/view.html",controller:"ChatWebsiteViewEmbeddingViewCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.websites.view.form",{url:"/forms",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteViewFormViewCtrl",["$scope","$builder","$validator","$stateParams","$translate","ChatWebsite","xAlert",function(a,b,c,d,e,f,g){a.saveForm=function(a){var c=angular.copy(b.forms[a]);return c.length>3?g.show("You can insert at least 3 input elements","danger"):(_.forEach(c,function(a){delete a.id}),f.updateFields({websiteId:d.websiteId,controller:"fields",id:a},c).$promise.then(function(){g.show(e.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){g.error(a)}))},a.getChatWebsiteFields=function(a){return f.query({websiteId:d.websiteId,controller:"fields",id:a}).$promise.then(function(c){_.forEach(c,function(c){b.addFormObject(a,c)})})["catch"](function(a){g.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.websites.view.form.view",{url:"/view",templateUrl:"app/channels/chat/website/view/form/view/view.html",controller:"ChatWebsiteViewFormViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteHooksViewCtrl",["$scope","ChatWebsite","Pause","$http","$stateParams","$translate","$location","xAlert",function(a,b,c,d,e,f,g,h){a.account={},a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.CONST_TIMEOUT=3e4,a.initView=function(){a.types=[{value:"",name:"-- None --"},{name:"HTTP GET",value:"GET"},{name:"HTTP POST",value:"POST"}],c.get().$promise.then(function(b){a.pauses=b.rows})["catch"](function(a){h.error(a)}),b.get({id:e.websiteId}).$promise.then(function(b){console.log(b),a.account=b,a.account.actions.length<1&&a.account.actions.push({ +action:"pause",enabled:!1,type:null})})["catch"](function(a){h.error(a)})},a.resetActionData=function(a){a.type=null},a.updateItem=function(){return console.log(a.account),b.update({id:e.websiteId},a.account).$promise.then(function(){h.show(f.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){h.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.websites.view.hooks",{url:"/hooks",controller:"ChatWebsiteHooksViewCtrl",templateUrl:"app/channels/chat/website/view/hooks/view/view.html"})}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteViewProactiveListCtrl",["$scope","gridOptions","ChatWebsite","$http","$translate","$stateParams","$uibModal",function(a,b,c,d,e,f,g){a.initProactiveActions=function(){var d={exporterCsvFilename:"telephones.csv",columnDefs:[{name:"name"},{name:"type"},{name:"action",width:125,buttons:[{"class":"blue-hoki",onClick:"grid.appScope.createItem(row.entity)",name:"profile"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=b.gridOptions(c,d,a,{websiteId:f.websiteId,controller:"proactive"})},a.createItem=function(b){var c=g.open({animation:!0,templateUrl:"app/channels/chat/website/view/proactive/list/list.create.modal.html",controller:"ChatWebsiteProactiveListCreateCtrl",resolve:{item:b}});c.result.then(function(){a.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteProactiveListCreateCtrl",["$scope","$translate","$uibModalInstance","$stateParams","ChatWebsite","xAlert","item",function(a,b,c,d,e,f,g){a.form={},a.item=g||{},a.title=g?b.instant("APPLICATION_EDIT_PROACTIVE_ACTION"):b.instant("APPLICATION_NEW_PROACTIVE_ACTION"),a.possibleType=[{type:"mouseOver",title:"Mouse Over"},{type:"timeout",title:"Timeout"}],a.save=function(){return g?e.update({websiteId:d.websiteId,controller:"proactive",id:a.item.id},a.item).$promise.then(function(a){f.show(b.instant("MESSAGE_WELL_DONE"),"success"),c.close(a)})["catch"](function(a){f.error(a)}):e.save({websiteId:d.websiteId,controller:"proactive"},a.item).$promise.then(function(a){f.show(b.instant("MESSAGE_WELL_DONE"),"success"),c.close(a)})["catch"](function(a){f.error(a)})},a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.websites.view.proactive.list",{url:"/list",templateUrl:"app/channels/chat/website/view/proactive/list/list.html",controller:"ChatWebsiteViewProactiveListCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.websites.view.proactive",{url:"/proactive",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteSettingViewCtrl",["$scope","$stateParams","$translate","$location","$timeout","socket","xAlert","ChatWebsite","List",function(a,b,c,d,e,f,g,h,i){a.initView=function(){return i.get().$promise.then(function(b){a.lists=b.rows})["catch"](function(a){console.error(a)})},a.updateItemChatWebsite=function(){return h.update({id:b.websiteId},{ListId:a.chatWebsite.ListId}).$promise.then(function(){g.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){g.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.websites.view.settings",{url:"/settings",controller:"ChatWebsiteSettingViewCtrl",templateUrl:"app/channels/chat/website/view/setting/view/view.html"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.websites.view.snippet",{url:"/snippet",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteViewSnippetViewCtrl",["$scope","$http","$stateParams","$translate","Template","$rootScope","FileUploader","$cookieStore","xAlert","ChatWebsite","MailAccount",function(a,b,c,d,e,f,g,h,i,j,k){a.$translate=d,a.isServiceMailAccount=!1,a.statePreview={state:"online"},a.radioSwitch={isActive:!!f.license.custom,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.switchElement={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"};var l=a.uploader=new g({url:"api/chat/websites/"+c.websiteId+"/logo",queueLimit:1,withCredentials:!0,headers:{Authorization:"Bearer "+h.get("token")}});l.filters.push({name:"imageFilter",fn:function(a){var b="|"+a.type.slice(a.type.lastIndexOf("/")+1)+"|";return-1!=="|jpg|png|jpeg|".indexOf(b)}}),l.onSuccessItem=function(b,c){a.chatWebsite.logo=c.logo,i.show(d.instant("MESSAGE_WELL_DONE"),"success")},l.onErrorItem=function(){i.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")},l.onCompleteAll=function(){l.clearQueue()},a.enquirySwitch={onText:"On",offText:"Off",isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.fidelitySwitch={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.lang={HeaderCurrentlyChatting:"Live Chat",HeaderOffline:"Contact us",OperatorOfflineMessage:"It appears as if all operators are currently offline.",OfflineMessage:"<strong>We're not online.</strong><br/>It doesn't mean we're not there to help - leave your message below and we'll be in touch as soon as possible.",EnquiryMessagePlaceholder:"Your message...",EnquiryButtonText:"Leave message",EnquirySubmitSuccess:"Your message was sucessfully submitted - we will contact you as soon as possible.",OperatorComposing:"{fullname} is typing...",FirstMessageText:"",ExitChatButtonText:"Exit Chat",ExitChatQuestionText:"Are you sure?",ExitChatButtonConfirmText:"Yes",ExitChatButtonCancelText:"No",MessagePlaceholderText:"Your message...",MessageSendButtonText:"Send",ValidationEmailRequired:"Please enter your email address",ValidationEmailInvalid:"Please enter a valid email address",ValidationEmailMaxLength:"The email address may not exceed 85 characters",ValidationUsernameRequired:"Please enter your name",ValidationUsernameMaxLength:"The name may not exceed 45 characters",ValidationEnquiryRequired:"Please enter your enquiry",ValidationEnquiryMaxLength:"The enquiry may not exceed 1500 characters",ValidationMessageRequired:"Please enter your message",ValidationMessageMaxLength:"The message may not exceed 750 characters"},a.initView=function(){return j.get({id:c.websiteId}).$promise.then(function(b){return a.chatWebsite=b,e.get().$promise}).then(function(b){a.templates=b.rows})["catch"](function(a){i.error(a)})},a.getServiceMailAccount=function(){return k.get({accountId:"service"}).$promise.then(function(){a.isServiceMailAccount=!0})["catch"](function(){a.isServiceMailAccount=!1})},a.updateItem=function(){return j.update({id:a.chatWebsite.id},a.chatWebsite).$promise.then(function(){i.show(d.instant("MESSAGE_CHAT_WEBSITE_UPDATE_SUCCESS")+"!","success")})["catch"](function(a){i.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.websites.view.snippet.view",{url:"/view",templateUrl:"app/channels/chat/website/view/snippet/view/view.html",controller:"ChatWebsiteViewSnippetViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteViewCtrl",["$scope","xAlert","$http","$location","$stateParams","$translate","WizardHandler","ChatApplication","ChatWebsite",function(a,b,c,d,e,f,g,h,i){a.initView=function(){return i.get({id:e.websiteId}).$promise.then(function(b){a.chatWebsite=b})["catch"](function(a){b.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.websites.view",{url:"/view/:websiteId",templateUrl:"app/channels/chat/website/view/view.html",controller:"ChatWebsiteViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.websites",{url:"/websites",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:29}}})}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteWizardCtrl",["$scope","$http","$location","$translate","WizardHandler","xAlert","ChatWebsite",function(a,b,c,d,e,f,g){a.$translate=d,a.next=function(){e.wizard().next()},a.exitValidation=function(a){return a},a.initWizard=function(){a.forms={formSetting:void 0,formAppearance:void 0,formLabel:void 0,formFunctionality:void 0},a.item={},a.item.remote=c.protocol()+"://"+location.host,a.item.color="#000080",a.item.color_focus="#000080",a.item.color_button="#000080",a.item.header_shape="rounded",a.item.animation=!0,a.item.rating_enable=!0,a.item.header_online="We are here!",a.item.online_message="<strong>Questions?</strong><br />Insert your name and email address to start a live-chat with our support team.",a.item.name_title="Name",a.item.username_placeholder="Your name",a.item.email_title="Email Address",a.item.email_placeholder="Your e-mail address",a.item.start_chat_button="Chat",a.item.rating_message="Would you like rate this chat?",a.item.rating_send="Send",a.item.rating_skip="Skip",a.item.header_offline="Contact us",a.item.offline_message="<strong>We're not online.</strong><br />It doesn't mean we're not there to help - leave your message below and we'll be in touch as soon as possible.",a.item.message_title="Message",a.item.enquiry_message_placeholder="Your message...",a.item.enquiry_button="Leave message",a.item.agents_busy="In this moment all agents are busy. Try again!",a.item.download_transcript=!0},a.createItem=function(){return g.save(a.item).$promise.then(function(){f.show(d.instant("MESSAGE_CHAT_WEBSITE_CREATE_SUCCESS"),"success"),c.path("/channels/chat/websites/list")})["catch"](function(a){f.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.websites.wizard",{url:"/wizard",templateUrl:"app/channels/chat/website/wizard/wizard.html",controller:"ChatWebsiteWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.fax.accounts",{url:"/accounts",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:38}}})}]),angular.module("xCallyShuttleApp").controller("FaxAccountListCtrl",["$scope","$uibModal","gridOptions","FaxAccount",function(a,b,c,d){a.initView=function(){var b={exporterCsvFilename:"chat_websites.csv",columnDefs:[{name:"name"},{name:"description"},{name:"localstationid"},{name:"TrunkName",displayName:"APPLICATION_TRUNK"},{name:"action",width:75,buttons:[{"class":"blue-hoki",href:"/channels/fax/accounts/view/{{row.entity.id}}/settings",name:"settings"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=c.gridOptions(d,b,a)},a.createItem=function(){var c=b.open({animation:!0,templateUrl:"app/channels/fax/account/list/list.create.modal.html",controller:"FaxAccountListCreateCtrl"});c.result.then(function(){a.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("FaxAccountListCreateCtrl",["$scope","$uibModalInstance","$translate","xAlert","FaxAccount","Trunk",function(a,b,c,d,e,f){a.initWizard=function(){return a.form={},a.item={},a.trunks=[],f.get().$promise.then(function(b){a.trunks=b.rows})["catch"](function(a){d.error(a)})},a.save=function(){return e.save(a.item).$promise.then(function(a){d.show(c.instant("MESSAGE_WELL_DONE"),"success"),b.close(a)})["catch"](function(a){d.error(a)})},a.cancel=function(){b.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.fax.accounts.list",{url:"/list",templateUrl:"app/channels/fax/account/list/list.html",controller:"FaxAccountListCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.fax.accounts.view.actions",{url:"/actions",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("FaxAccountViewActionListCtrl",["$scope","gridOptions","FaxAccount","$http","$translate","$stateParams",function(a,b,c,d,e,f){a.initActons=function(){var d={draggable:!0,exporterCsvFilename:"fax_applications.csv",enableSorting:!1,enableFiltering:!1,columnDefs:[{name:"app",cellClass:"text-center"},{name:"name",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span>{{row.entity.app == "queue" ? row.entity.FaxQueue.name : row.entity.User.name}}</span></div>'},{name:"timeout",cellClass:"text-center"},{name:"interval",displayName:"APPLICATION_TIME_INTERVAL",cellClass:"text-center",cellTemplate:"<div><span>{{row.entity.Interval ? row.entity.Interval.name : row.entity.interval}}</span></div>"},{name:"action",width:125,buttons:[{"class":"blue-hoki",href:"/channels/fax/accounts/view/{{row.entity.FaxAccountId}}/actions/view/{{row.entity.id}}",name:"profile"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.app, row.entity.id)"}]}]};a.gridOptions=b.gridOptions(c,d,a,{accountId:f.accountId,controller:"applications"})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.fax.accounts.view.actions.list",{url:"/list",templateUrl:"app/channels/fax/account/view/action/list/list.html",controller:"FaxAccountViewActionListCtrl"})}]),angular.module("xCallyShuttleApp").controller("FaxAccountViewActionViewCtrl",["$scope","$http","$stateParams","$translate","$location","xAlert","WizardHandler","socket","application","interval","Agent","Interval","FaxQueue","FaxAccount","Template","MailAccount","SmsAccount",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.initAction=function(){return a.$application=i.application,a.$stateParams=c,a.$interval=j.interval,a.forms={},a.apps=[{name:"Queue",value:"queue"},{name:"Agent",value:"agent"},{name:"SendMail",value:"sendMail"},{name:"SendSMS",value:"sendSms"}],n.get({accountId:c.accountId,controller:"applications",id:c.actionId}).$promise.then(function(b){if(a.application=b,a.application.alwaysTime=!1,a.application.IntervalId)a.application.intType="list";else switch(a.application.interval){case"*,*,*,*":a.application.intType="always";break;default:a.application.intType="custom"}if("always"===a.application.intType||"custom"===a.application.intType){var c=a.application.interval.split(",");"*"===c[0]?a.application.alwaysTime=!0:(a.application.t_from=moment(new Date),a.application.t_to=moment(new Date),a.application.t_from.hour(c[0].split("-")[0].split(":")[0]),a.application.t_from.minute(c[0].split("-")[0].split(":")[1]),a.application.t_to.hour(c[0].split("-")[1].split(":")[0]),a.application.t_to.minute(c[0].split("-")[1].split(":")[1])),"*"===c[1]?(a.application.wd_from="always",a.application.wd_to="always"):(a.application.wd_from=c[1].split("-")[0],a.application.wd_to=c[1].split("-")[1]),"*"===c[2]?(a.application.md_from="always",a.application.md_to="always"):(a.application.md_from=c[2].split("-")[0],a.application.md_to=c[2].split("-")[1]),"*"===c[3]?(a.application.m_from="always",a.application.m_to="always"):(a.application.m_from=c[3].split("-")[0],a.application.m_to=c[3].split("-")[1])}a.$watch("application.t_from",function(b){a.application.t_from_hm=moment(b).format("HH:mm")}),a.$watch("application.t_to",function(b){a.application.t_to_hm=moment(b).format("HH:mm")})})["catch"](function(a){f.error(a)})},a.getQueues=function(){return m.get().$promise.then(function(b){a.queues=b.rows})["catch"](function(a){console.error(a)})},a.getAgents=function(){return k.get().$promise.then(function(b){a.agents=b.rows})["catch"](function(a){console.error(a)})},a.getIntervals=function(){return l.get().$promise.then(function(b){a.intervals=b.rows})["catch"](function(a){console.error(a)})},a.getSmsAccounts=function(){return q.get().$promise.then(function(b){a.smsAccounts=b.rows})["catch"](function(a){console.error(a)})},a.getTemplates=function(){return o.get().$promise.then(function(b){a.templates=b.rows})["catch"](function(a){console.error(a)})},a.getMailAccounts=function(){return p.get().$promise.then(function(b){a.mailAccounts=b.rows})["catch"](function(a){console.error(a)})},a.updateItem=function(){switch(a.application.intType){case"always":a.application.interval="*,*,*,*",a.application.IntervalId=null;break;case"list":var b=_.find(a.intervals,{id:a.application.IntervalId});a.application.interval=b?"":"*,*,*,*",a.application.IntervalId=b?a.application.IntervalId:null;break;case"custom":var g,h,i,j,k;g=a.application.t_from&&a.application.t_to&&!a.application.alwaysTime?moment(a.application.t_from).format("HH:mm")+"-"+moment(a.application.t_to).format("HH:mm"):"*",a.application.wd_from&&"always"!==a.application.wd_from?(h=a.application.wd_from,a.application.wd_to&&"always"!==a.application.wd_to&&(h+="-"+a.application.wd_to)):h="*",a.application.md_from&&"always"!==a.application.md_from?(i=a.application.md_from,a.application.md_to&&"always"!==a.application.md_to&&(i+="-"+a.application.md_to)):i="*",a.application.m_from&&"always"!==a.application.m_from?(j=a.application.m_from,a.application.m_to&&"always"!==a.application.m_to&&(j+="-"+a.application.m_to)):j="*",k=g+","+h+","+i+","+j,a.application.interval=k,a.application.IntervalId=null}return n.update({accountId:c.accountId,controller:"applications",id:c.actionId},a.application).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success"),e.path("/channels/fax/accounts/view/"+c.accountId+"/actions/list")})["catch"](function(a){f.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.fax.accounts.view.actions.view",{url:"/view/:actionId",templateUrl:"app/channels/fax/account/view/action/view/view.html",controller:"FaxAccountViewActionViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("FaxAccountViewActionWizardCtrl",["$scope","$http","Agent","FaxQueue","Interval","$stateParams","$translate","$location","xAlert","WizardHandler","socket","application","interval","FaxAccount","Template","MailAccount","SmsAccount",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.initWizard=function(){a.apps=[{name:"Queue",value:"queue"},{name:"Agent",value:"agent"},{name:"SendMail",value:"sendMail"},{name:"SendSMS",value:"sendSms"}],a.$application=l.application,a.$stateParams=f,a.$interval=m.interval,a.forms={},a.application={alwaysTime:!0},a.$watch("application.t_from",function(b){a.application.t_from_hm=moment(b).format("HH:mm")}),a.$watch("application.t_to",function(b){a.application.t_to_hm=moment(b).format("HH:mm")})},a.getQueues=function(){return d.get().$promise.then(function(b){a.queues=b.rows})["catch"](function(a){console.error(a)})},a.getAgents=function(){return c.get().$promise.then(function(b){a.agents=b.rows})["catch"](function(a){console.error(a)})},a.getIntervals=function(){return e.get().$promise.then(function(b){a.intervals=b.rows})["catch"](function(a){console.error(a)})},a.getSmsAccounts=function(){return q.get().$promise.then(function(b){a.smsAccounts=b.rows})["catch"](function(a){console.error(a)})},a.getTemplates=function(){return o.get().$promise.then(function(b){a.templates=b.rows})["catch"](function(a){console.error(a)})},a.getMailAccounts=function(){return p.get().$promise.then(function(b){a.mailAccounts=b.rows})["catch"](function(a){console.error(a)})},a.createItem=function(){switch(a.application.intType){case"always":a.application.interval="*,*,*,*",a.application.IntervalId=null;break;case"list":var b=_.find(a.intervals,{id:a.application.IntervalId});a.application.interval=b?"":"*,*,*,*",a.application.IntervalId=b?a.application.IntervalId:null;break;case"custom":var c,d,e,j,k;c=a.application.t_from&&a.application.t_to&&!a.application.alwaysTime?moment(a.application.t_from).format("HH:mm")+"-"+moment(a.application.t_to).format("HH:mm"):"*",a.application.wd_from&&"always"!==a.application.wd_from?(d=a.application.wd_from,a.application.wd_to&&"always"!==a.application.wd_to&&(d+="-"+a.application.wd_to)):d="*",a.application.md_from&&"always"!==a.application.md_from?(e=a.application.md_from,a.application.md_to&&"always"!==a.application.md_to&&(e+="-"+a.application.md_to)):e="*",a.application.m_from&&"always"!==a.application.m_from?(j=a.application.m_from,a.application.m_to&&"always"!==a.application.m_to&&(j+="-"+a.application.m_to)):j="*",k=c+","+d+","+e+","+j,a.application.interval=k,a.application.IntervalId=null}return n.save({accountId:f.accountId,controller:"applications"},a.application).$promise.then(function(){i.show(g.instant("MESSAGE_WELL_DONE"),"success"),h.path("/channels/fax/accounts/view/"+f.accountId+"/actions/list")})["catch"](function(a){i.error(a)})},a.formValidation=function(a){return a},a.next=function(){j.wizard().next()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.fax.accounts.view.actions.wizard",{url:"/wizard",templateUrl:"app/channels/fax/account/view/action/wizard/wizard.html",controller:"FaxAccountViewActionWizardCtrl"})}]),angular.module("xCallyShuttleApp").factory("FaxDisposition",["$resource",function(a){return a("/api/fax/dispositions/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("FaxInboxViewModaDispositionAddCtrl",["$scope","$uibModalInstance","FaxAccount","id","xAlert",function(a,b,c,d,e){a.ok=function(){return c.save({accountId:d,controller:"dispositions"},{name:a.name}).$promise.then(function(a){b.close(a)})["catch"](function(a){e.error(a)})},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("FaxAccountDispositionViewCtrl",["$scope","$stateParams","$uibModal","$translate","FaxAccount","xAlert",function(a,b,c,d,e,f){a.initView=function(){return e.get({accountId:b.accountId,controller:"dispositions"}).$promise.then(function(b){a.dispositions=b.rows})["catch"](function(a){f.error(a)})},a.updateDisposition=function(a,c){return e.update({accountId:b.accountId,controller:"dispositions",id:a},{name:c}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE")+"!","success")})["catch"](function(a){f.error(a)})},a.deleteDisposition=function(c){return e.remove({accountId:b.accountId,controller:"dispositions",id:c}).$promise.then(function(){_.remove(a.dispositions,{id:c})})["catch"](function(a){f.error(a)})},a.addDisposition=function(){return c.open({animation:!0,templateUrl:"app/channels/fax/account/view/disposition/modal/add.modal.html",controller:"FaxInboxViewModaDispositionAddCtrl",resolve:{id:function(){return b.accountId}}}).result.then(function(b){b&&a.dispositions.push(b)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.fax.accounts.view.dispositions",{url:"/dispositions",controller:"FaxAccountDispositionViewCtrl",templateUrl:"app/channels/fax/account/view/disposition/view/view.html"})}]),angular.module("xCallyShuttleApp").controller("FaxAccountHooksViewCtrl",["$scope","FaxAccount","Pause","$http","$stateParams","clipboard","$translate","$location","xAlert","List",function(a,b,c,d,e,f,g,h,i,j){a.account={},a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.CONST_TIMEOUT=3e4,a.initView=function(){a.types=[{value:"",name:"-- None --"},{name:"HTTP GET",value:"GET"},{name:"HTTP POST",value:"POST"}],c.get().$promise.then(function(b){a.pauses=b.rows})["catch"](function(a){i.error(a)}),b.get({id:e.accountId}).$promise.then(function(b){a.account=b,a.account.actions.length<1&&a.account.actions.push({action:"pause",enabled:!1,type:null})})["catch"](function(a){i.error(a)})},a.resetActionData=function(a){a.type=null},a.updateItemFaxAccount=function(){return console.log(a.account),b.update({id:e.accountId},a.account).$promise.then(function(){i.show(g.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){i.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.fax.accounts.view.hooks",{url:"/hooks",controller:"FaxAccountHooksViewCtrl",templateUrl:"app/channels/fax/account/view/hooks/view/view.html"})}]),angular.module("xCallyShuttleApp").controller("FaxAccountSettingViewCtrl",["$scope","$stateParams","$translate","FaxAccount","List","Trunk","xAlert",function(a,b,c,d,e,f,g){a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.initView=function(){return a.rate=["2400","4800","7200","9600","12000","14400"],a.techs=["SIP","IAX","DADHI","KHOMP"],f.get().$promise.then(function(b){a.trunks=b.rows})["catch"](function(a){g.error(a)}),e.get().$promise.then(function(b){a.lists=b.rows})["catch"](function(a){g.error(a)}),d.get({id:b.accountId}).$promise.then(function(b){a.account=b})["catch"](function(a){g.error(a)})},a.updateItemFaxAccount=function(){return d.update({id:b.accountId},a.account).$promise.then(function(){g.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){g.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.fax.accounts.view.settings",{url:"/settings",controller:"FaxAccountSettingViewCtrl",templateUrl:"app/channels/fax/account/view/setting/view/view.html"})}]),angular.module("xCallyShuttleApp").controller("FaxAccountViewCtrl",["$scope","$http","$stateParams","$translate","$location","WizardHandler","socket","xAlert","Modal","FaxAccount",function(a,b,c,d,e,f,g,h,i,j){a.initView=function(){return j.get({id:c.accountId}).$promise.then(function(b){a.account=b})["catch"](function(a){h.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.fax.accounts.view",{url:"/view/:accountId",templateUrl:"app/channels/fax/account/view/view.html",controller:"FaxAccountViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]})}]}})}]),angular.module("xCallyShuttleApp").controller("FaxAccountWizardCtrl",["$scope","$http","$location","$translate","xAlert","WizardHandler","Trunk","FaxAccount",function(a,b,c,d,e,f,g,h){a.translate=d,a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.initWizard=function(){return a.$translate=d,a.forms={},a.item={},a.rate=["2400","4800","7200","9600","12000","14400"],a.techs=["SIP","IAX","DADHI","KHOMP"],a.item.headerinfo="xCALLY Motion Fax",a.item.ecm="yes",a.item.minrate="4800",a.item.maxrate="14400",a.item.modem="v17,v27,v29",a.item.gateway="no",a.item.faxdetect="no",a.item.t38timeout=5e3,a.item.tech="SIP",g.get().$promise.then(function(b){a.trunks=b.rows})["catch"](function(a){e.error(a)})},a.next=function(){f.wizard().next()},a.previous=function(){f.wizard().previous()},a.exitValidation=function(a){return a},a.createItem=function(){return h.save(a.item).$promise.then(function(a){e.show(d.instant("MESSAGE_WELL_DONE"),"success"),c.path("/channels/fax/accounts/list")})["catch"](function(a){e.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.fax.accounts.wizard",{url:"/wizard",templateUrl:"app/channels/fax/account/wizard/wizard.html",controller:"FaxAccountWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.fax",{url:"/fax",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:10}}})}]),angular.module("xCallyShuttleApp").factory("FaxAccount",["$resource",function(a){return a("/api/fax/accounts/:accountId/:controller/:id",{id:"@accountId"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("FaxAttachment",["$resource",function(a){return a("/api/fax/attachments/:id/:controller",{id:"@id"})}]),angular.module("xCallyShuttleApp").factory("FaxMessage",["$resource",function(a){return a("/api/fax/messages/:id/:controller",{id:"@id",controller:"@controller"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("FaxReport",["$resource",function(a){return a("/api/report/faxs/:id/:controller1/:controller2",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("FaxRoom",["$resource",function(a){return a("/api/fax/rooms/:id/:controller",{id:"@id",controller:"@controller"},{update:{method:"PUT"},patch:{method:"PATCH"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.fax.inbox",{url:"/inbox",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:40}}})}]),angular.module("xCallyShuttleApp").controller("FaxInboxInfoModalCtrl",["$scope","$translate","$uibModalInstance","$stateParams","xAlert","messageId","FaxMessage",function(a,b,c,d,e,f,g){a.data=null,a.initInfo=function(){g.get({id:f}).$promise.then(function(b){a.data={channel:b.channel,channelstate:b.channelstate,channelstatedesc:b.channelstatedesc,uniqueid:b.uniqueid,localstationid:b.localstationid,remotestationid:b.remotestationid,pagestransferred:b.pagestransferred,resolution:b.resolution,transferrate:b.transferrate,lastStatus:b.lastStatus,error:b.error,retry:b.retry}})["catch"](function(b){switch(b.status){case 404:a.data=null;break;default:e.error(b)}})},a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").directive("faxMessage",["$rootScope","$translate","$uibModal","FaxMessage","List","xAlert",function(a,b,c,d,e,f){return{restrict:"E",scope:{message:"=",listId:"="},templateUrl:"app/channels/fax/inbox/message/message.directive.html",link:function(g){g.openContact=function(c){return g.listId?e.save({listId:g.listId,controller:"contacts"},{fax:c}).$promise.then(function(b){var c=_.find(a.$root.workspaces,{contactID:b.id});c?c.active=!0:a.$root.workspaces.push({active:!0,"class":"icon-user",contactID:b.id,name:b.fax,type:"contact"})})["catch"](function(a){f.error(a)}):void f.show(b.instant("MESSAGE_NO_LIST_CONFIGURED"),"info")},g.info=function(a){c.open({animation:!0,templateUrl:"app/channels/fax/inbox/message/info.modal.html",controller:"FaxInboxInfoModalCtrl",resolve:{messageId:function(){return a.id}}})},g.retry=function(a){return d.update({id:a,status:"SENDING"}).$promise["catch"](function(a){console.error(a)})}}}}]),angular.module("xCallyShuttleApp").directive("faxNote",["$translate","Modal","Auth","FaxMessage","xAlert",function(a,b,c,d,e){return{restrict:"E",scope:{message:"="},templateUrl:"app/channels/fax/inbox/note/note.directive.html",link:function(f){f.Auth=c,f.deleteNote=b.confirm["delete"](function(){return d.remove({id:f.message.id}).$promise.then(function(){e.show(a.instant("MESSAGE_WELL_DONE")+"!","success")})["catch"](function(a){e.error(a)})})}}}]),angular.module("xCallyShuttleApp").controller("FaxInboxViewModalNoteCtrl",["$scope","$uibModalInstance","$translate","id","FaxRoom","xAlert",function(a,b,c,d,e,f){a.initModal=function(){a.item={}},a.ok=function(){return e.save({id:d,controller:"messages"},{text:a.item.text,status:"NOTE"}).$promise.then(function(){f.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})["finally"](function(){b.close()})},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").directive("faxRoom",["$cookieStore","$translate","$uibModal","$timeout","FaxAccount","FaxRoom","FaxMessage","FileUploader","xAlert","usSpinnerService","socket","Tag","Auth","FaxAttachment","List",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){ +return{restrict:"E",scope:{workspace:"="},templateUrl:"app/channels/fax/inbox/room/room.directive.html",link:function(m){function p(a){if(a){var b=_.words(a),c=_.map(b,function(a){return a?a[0]:""});return c.join("").toUpperCase()}return!1}m.$on("$destroy",function(){}),m.initForm=function(){m.forms={compose:{}}},m.getContacts=function(a){return m.listId?o.get({listId:m.listId,controller:"contacts",fax:a}).$promise.then(function(a){return a.rows})["catch"](function(a){console.error(a)}):[]},m.setList=function(a){m.listId=a};var q=[];m.expanded=!0,m.modelOptions={debounce:{"default":500,blur:250},getterSetter:!0},m.panelLeft=null,m.panelRight="col-md-12",m.form={from:"",to:m.workspace.data&&m.workspace.data.to?[m.workspace.data.to]:[],disabled:!1},k.socket.on("fax_message:remove",function(a){_.remove(m.faxRoom.FaxMessages,{id:a.id})}),k.socket.on("fax_message:save",function(a){return m.workspace.id&&a.FaxRoomId==m.workspace.id?(m.workspace.active||m.workspace.unread++,g.get({id:a.id}).$promise.then(function(a){m.faxRoom||(m.faxRoom={FaxMessages:[]});var b=_.findIndex(m.faxRoom.FaxMessages,{id:a.id});b>-1?_.merge(m.faxRoom.FaxMessages[b],a):m.faxRoom.FaxMessages.unshift(a),m.panelLeft="col-md-6",m.panelRight="col-md-6"})["catch"](function(a){console.error(a)})):void 0});var r=m.uploader=new h({url:"api/fax/attachments",autoUpload:!0,withCredentials:!0,queueLimit:1,headers:{Authorization:"Bearer "+a.get("token")}});return r.filters.push({name:"uploadFilter",fn:function(a){var b="|"+a.type.slice(a.type.lastIndexOf("/")+1)+"|";return-1!=="|pdf|tiff|tif".indexOf(b)}}),r.onWhenAddingFileFailed=function(a,c){switch(c.name){case"queueLimit":i.show(b.instant("MESSAGE_QUEUE_LIMIT_EXCEEDED"),"danger");break;case"uploadFilter":i.show(b.instant("MESSAGE_WRONG_FILE_FORMAT"),"danger");break;default:i.show(b.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")}},r.removeFromQueue=function(a){var c=this;return n["delete"]({id:a.basename}).$promise.then(function(){var b=c.getIndexOfItem(a),d=c.queue[b];d.isUploading&&d.cancel(),c.queue.splice(b,1),d._destroy(),c.progress=c._getTotalProgress(),q=_.reject(q,{basename:a.basename})})["catch"](function(){i.show(b.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},r.onErrorItem=function(){i.show(b.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")},r.onSuccessItem=function(a,b){var c={path:b.path,name:b.name,basename:b.basename,type:b.type};a=_.merge(a,c),q.push(c)},m.getMessageMailId=function(a){var b=a.UserId?"imgFaxUserId"+a.UserId:"imgFaxVisitorId";return b+=m.faxRoom.id.toString()+a.id.toString()},m.togglePanelLeft=function(){m.panelLeft?(m.panelLeft=null,m.panelRight="col-md-12"):(m.panelLeft="col-md-6",m.panelRight="col-md-6")},m.closeRoom=function(){return c.open({animation:!0,templateUrl:"app/channels/fax/inbox/status/status.modal.html",controller:"FaxInboxStatusModalCtrl",resolve:{status:function(){return m.faxRoom.status},accountId:function(){return m.faxRoom.FaxAccount.id}}}).result.then(function(a){return f.update({id:m.workspace.id},a).$promise["catch"](function(a){i.error(a)})})},m.loadAgents=function(){c.open({animation:!0,templateUrl:"app/channels/fax/inbox/view/view.agents.modal.html",controller:"FaxInboxViewModalAgentCtrl",resolve:{roomId:function(){return m.workspace.id}}})},m.cancel=function(){m.form.disabled=!1,m.form.from="",m.form.to=""},m.loadNote=function(){c.open({animation:!0,templateUrl:"app/channels/fax/inbox/note/note.modal.html",controller:"FaxInboxViewModalNoteCtrl",resolve:{id:function(){return m.workspace.id}}})},m.getMessageFaxId=function(a){var b=a.UserId?"imgFaxUserId"+a.UserId:"imgFaxVisitorId";return b+=m.faxRoom.id.toString()+a.id.toString()},m.getMessageRoomAvatar=function(a,b,c,e){d(function(){var d=b?"#imgFaxUserId"+b:"#imgFaxVisitorId";d+=m.faxRoom.id.toString()+a.toString(),angular.element(d).avatar({useGravatar:!1,initials:e?[]:p(c),fallbackImage:e?"api/users/avatar/"+e:"api/users/avatar/unknown_avatar"})})},m.onChanged=function(){return f.update({id:m.workspace.id},{tags:m.form.tags}).$promise["catch"](function(a){i.error(a)})},m.sendFax=function(){j.spin("spinner-grid");var a={from:m.form.from,to:m.form.to[0].fax||"",status:"SENDING",FaxAttachments:q,FaxRoomId:m.faxRoom?m.faxRoom.id:null},c=_.find(m.faxAccounts,{localstationid:m.form.from});return c?e.save({accountId:c.id,controller:"send"},a).$promise.then(function(a){return r.queue=[],q=[],i.show(b.instant("MESSAGE_WELL_DONE"),"success"),m.SmsRoom?m.SmsRoom:f.get({id:"messages",controller:a.id}).$promise}).then(function(a){a&&(m.workspace.id=a.id,m.workspace.name=a.contact,m.faxRoom=a,m.panelLeft="col-md-6",m.panelRight="col-md-6",m.expanded=!1)})["catch"](function(a){i.error(a)})["finally"](function(){j.stop("spinner-grid")}):(console.log("Can not find account"),void j.stop("spinner-grid"))},l.get().$promise.then(function(a){m.tags=_.map(a.rows,"name")})["catch"](function(a){console.error(a)}),e.get().$promise.then(function(a){m.faxAccounts=a.rows})["catch"](function(a){console.error(a)}),m.workspace.id?(m.panelLeft="col-md-6",m.panelRight="col-md-6",f.get({id:m.workspace.id}).$promise.then(function(a){m.faxRoom=a,m.form.from=a.FaxAccount.localstationid,m.form.tags=a.tags,m.workspace.name=a.contact||"No number",m.expanded=!1;var b=_.findLast(a.FaxMessages,{status:"RECEIVED"});return b&&(m.form.to=[{fax:b.from}]),k.socket.on("fax_room:save",function(a){a.id===m.workspace.id&&_.merge(m.faxRoom,a)}),a})["catch"](function(a){i.error(a)})["finally"](function(){j.stop("spinner-grid"),m.form.disabled=!1})):(m.panelLeft=null,m.panelRight="col-md-12",j.stop("spinner-grid"),void 0)}}}]),angular.module("xCallyShuttleApp").controller("FaxInboxStatusModalCtrl",["$scope","$uibModalInstance","FaxAccount","status","accountId",function(a,b,c,d,e){a.modal={title:"APPLICATION_CONFIRM_CLOSE",text:"MESSAGE_ARE_YOU_SURE_YOU_WANT_TO_CLOSE_THE_FAX"},a.initDisposition=function(){return a.item={disposition:null,status:"CLOSED"},c.get({accountId:e,controller:"dispositions"}).$promise.then(function(b){a.dispositions=b.rows})["catch"](function(a){console.error(a)})},a.ok=function(){b.close(a.item)},a.cancel=function(){b.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.fax.inbox.view.account",{url:"/account/:id",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:10}}})}]),angular.module("xCallyShuttleApp").controller("FaxInboxViewAccountListCtrl",["$scope","$rootScope","$uibModal","$translate","$stateParams","$state","Tag","usSpinnerService","socket","FaxAccount","FaxRoom","gridOptions","uiGridConstants","Auth","Modal","xAlert","localStorageService","uibButtonConfig",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){a.openRoom=function(b){var c=_.find(a.workspaces,{id:b,type:"faxRoom"});return c?c.active=!0:a.workspaces.push({id:b,type:"faxRoom","class":"fa fa-fax",active:!0}),b&&"agent"===n.getCurrentUser().role&&"PENDING"!==a.query.status&&"CLOSED"!==a.query.status?k.patch({id:b},{status:"OPEN",openReason:"agent"}).$promise["catch"](function(a){console.error(a)}):void 0},a.getPage=function(){h.spin("spinner-grid");var b={accountId:e.id,controller:"rooms"};return a.query&&_.merge(b,a.query),j.query(b).$promise.then(function(b){q.set("faxAccountId",e.id),a.gridOptions.data=b,i.socket.on("fax_room:save",function(b){if(b.FaxAccountId==e.id){var c=_.find(a.gridOptions.data,{id:b.id});c?c.status!==b.status?_.remove(a.gridOptions.data,{id:b.id}):_.merge(c,b):a.query.status===b.status&&a.gridOptions.data.push(b)}}),i.socket.on("fax_room:remove",function(b){_.remove(a.gridOptions.data,{id:b.id})})})["catch"](function(a){p.error(a)})["finally"](function(){h.stop("spinner-grid")})},a.initView=function(){r.activeClass="green-haze",a.id=[],a.isAdmin=n.isAdmin(),a.isAgent=n.isAgent(),a.uncheckable=!1,a.query={status:q.get("faxStatus")?q.get("faxStatus"):"NEW",tags:q.get("faxTags")?q.get("faxTags"):[]},a.$watch("query.status",function(b,c){b!==c&&(q.set("faxStatus",a.query.status),a.getPage())},!0),j.get().$promise.then(function(b){a.faxAccounts=b.rows})["catch"](function(a){console.error(a)}),g.get().$promise.then(function(b){a.tags=_.map(b.rows,"name")})["catch"](function(a){console.error(a)}),a.gridOptions={exporterCsvFilename:"fax_rooms.csv",enableRowHeaderSelection:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,enableFiltering:!0,enableSorting:!0,enableGridMenu:!1,flatEntityAccess:!0,showGridFooter:!0,fastWatch:!0,enableSelectAll:!0,enableHorizontalScrollbar:0,enableVerticalScrollbar:0,columnDefs:[{name:"lastEvent",displayName:"",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div> <span data-ng-class=\"{'icon-arrow-up font-green': row.entity.lastEvent === 'SENT', 'icon-arrow-up font-yellow': row.entity.lastEvent === 'SENDING', 'icon-arrow-down font-green': row.entity.lastEvent === 'RECEIVED', 'icon-close font-red': row.entity.lastEvent === 'FAILED', 'icon-question': !row.entity.lastEvent}\"> </span> </div>",width:30,enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"tags",displayName:"",headerCellTemplate:'<i class="icon-tag" style="margin-top: 8px; margin-left: 8px;"></i>',cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div><i data-ng-class=\"row.entity.tags.length ? 'icon-tag' : ''\" title=\"{{row.entity.tags}}\"></i></div>",width:30,enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"id",displayName:"Id",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div><span>#{{row.entity.id}}</span></div>",width:75,enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"contact",cellClass:"text-center"},{name:"disposition",displayName:"APPLICATION_DISPOSITION",headerCellFilter:"translate"},{name:"createdAt",cellFilter:"date:'dd/MM/yyyy HH:mm'",width:120,enableFiltering:!1},{name:"updatedAt",cellFilter:"date:'dd/MM/yyyy HH:mm'",width:120,enableFiltering:!1,sort:{direction:m.DESC}},{name:"action",cellTemplate:'<div> <a class="btn btn-icon-only font-green" data-ng-hide="row.entity.waiting" data-ng-click="grid.appScope.openRoom(row.entity.id, row.entity.contact)"><i class="fa fa-fax" aria-hidden="true"></i></a> <a class="btn btn-icon-only font-red" data-ng-show="grid.appScope.isAdmin" data-ng-click="grid.appScope.deleteItem(row.entity.id, row.entity.id)"><i class="fa fa-trash" aria-hidden="true"></i> </div>',enableSorting:!1,cellClass:"ui-grid-vcenter",width:70,enableFiltering:!1,enableColumnMenu:!1}],data:[],onRegisterApi:function(b){a.gridApi=b,a.gridApi.selection&&(a.gridApi.selection.on.rowSelectionChanged(a,function(b){b.isSelected?a.id.push(a.gridApi.grid.options.primaryKey?b.entity[a.gridApi.grid.options.primaryKey]:b.entity.id):_.pull(a.id,a.gridApi.grid.options.primaryKey?b.entity[a.gridApi.grid.options.primaryKey]:b.entity.id)}),a.gridApi.selection.on.rowSelectionChangedBatch(a,function(b){b[0].isSelected?a.id=_.union(a.id,_.map(b,a.gridApi.grid.options.primaryKey?"entity."+a.gridApi.grid.options.primaryKey:"entity.id")):_.map(b,a.gridApi.grid.options.primaryKey?"entity."+a.gridApi.grid.options.primaryKey:"entity.id").forEach(function(b){_.pull(a.id,b)})}))}},a.getPage(a.query)},a.onChanged=function(){q.set("faxTags",a.query.tags),a.getPage(a.query)},a.loadAgents=function(a){c.open({animation:!0,templateUrl:"app/channels/fax/inbox/view/view.agents.modal.html",controller:"FaxInboxViewModalAgentCtrl",resolve:{roomId:a}})},a.tagItems=function(){c.open({animation:!0,templateUrl:"app/channels/fax/inbox/view/view.tags.modal.html",controller:"FaxInboxViewModalTagCtrl",resolve:{id:function(){return a.id}}}).result.then(function(){a.gridApi.selection.clearSelectedRows(),a.id=[]})},a.deleteItem=o.confirm["delete"](function(b){var c={id:b};return k.remove(c).$promise.then(function(){a.getPage(),p.show(d.instant("MESSAGE_WELL_DONE")+"!","success"),a.gridApi.selection.clearSelectedRows(),a.id=[]})["catch"](function(a){p.error(a)})}),a.deleteItems=o.confirm["delete"](function(){var b={ids:a.id};return k["delete"](b).$promise.then(function(){a.getPage(),p.show(d.instant("MESSAGE_WELL_DONE")+"!","success"),a.gridApi.selection.clearSelectedRows(),a.id=[]})["catch"](function(a){p.error(a)})}),a.disposeItems=function(){return c.open({animation:!0,templateUrl:"app/channels/fax/inbox/status/status.modal.html",controller:"FaxInboxStatusModalCtrl",resolve:{status:function(){return null},accountId:function(){return e.id}}}).result.then(function(b){return k.patch({id:a.id},b).$promise.then(function(){a.gridApi.selection.clearSelectedRows(),a.id=[]})["catch"](function(a){p.error(a)})})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.fax.inbox.view.account.list",{url:"/list",templateUrl:"app/channels/fax/inbox/view/account/list/list.html",controller:"FaxInboxViewAccountListCtrl",data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:10}}})}]),angular.module("xCallyShuttleApp").controller("FaxInboxViewModalAgentCtrl",["$scope","$uibModalInstance","$translate","$stateParams","Agent","FaxRoom","xAlert","roomId",function(a,b,c,d,e,f,g,h){a.initModal=function(){a.agents=[],a.item={agents:[]},e.get().$promise.then(function(b){b.rows.forEach(function(b){a.agents.push(b)})})["catch"](function(a){console.error(a)}),f.query({id:h,controller:"agents"}).$promise.then(function(b){b.forEach(function(b){a.agents.push(b),a.item.agents.push(b.id)})})["catch"](function(a){console.error(a)}),a.modal={dismissable:!0,title:"APPLICATION_MESSAGE_SEND_RETRY",text:"MESSAGE_MESSAGE_SEND_RETRY",buttons:[{classes:"btn btn-success",text:"APPLICATION_RETRY",click:function(a){b.close(a)}},{classes:"btn default",text:"APPLICATION_CANCEL",click:function(a){b.dismiss(a)}}]}},a.ok=function(){return f.update({id:h,controller:"agents",agents:a.item.agents}).$promise.then(function(){g.show(c.instant("MESSAGE_WELL_DONE"),"success"),b.close()})["catch"](function(a){console.error(a)})},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("FaxInboxViewCtrl",["$scope","$timeout","$location","localStorageService","FaxAccount","xAlert",function(a,b,c,d,e,f){a.initView=function(){return e.get().$promise.then(function(b){var e=null;if(a.faxAccounts=b.rows,a.faxAccounts.length){var f,g=d.get("faxAccountId");f=g&&_.find(a.faxAccounts,{id:Number(g)})?g:a.faxAccounts[0].id,e="/channels/fax/inbox/view/account/"+f+"/list"}e&&c.path(e)})["catch"](function(a){f.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.fax.inbox.view",{url:"/view",templateUrl:"app/channels/fax/inbox/view/view.html",controller:"FaxInboxViewCtrl",reload:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/inbox.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("FaxInboxViewModalStatusCtrl",["$scope","$uibModalInstance","$translate","$stateParams","$location","FaxRoom","xAlert","id","status",function(a,b,c,d,e,f,g,h,i){a.initModal=function(){a.modal={dismissable:!0,title:"APPLICATION_STATUS",html:"<p>"+c.instant("MESSAGE_CHANGE_STATUS")+"<strong> "+i+"</strong>?</p>",status:i,buttons:[{classes:"btn btn-success",text:"APPLICATION_CONFIRM",click:function(a){return f.update({id:h},{status:i}).$promise.then(function(){g.show(c.instant("MESSAGE_STATUS_UPDATE_SUCCESS"),"success"),b.close(a)})["catch"](function(a){g.error(a)})}},{classes:"btn default",text:"APPLICATION_CANCEL",click:function(a){b.dismiss(a)}}]}}}]),angular.module("xCallyShuttleApp").controller("FaxInboxViewModalTagCtrl",["$scope","$uibModalInstance","$translate","$stateParams","Tag","FaxRoom","xAlert","id",function(a,b,c,d,e,f,g,h){console.log(h),a.initModal=function(){return a.tags=[],a.item={tags:[]},a.modal={dismissable:!0,title:"APPLICATION_MESSAGE_SEND_RETRY",text:"MESSAGE_MESSAGE_SEND_RETRY",buttons:[{"class":"btn-success",text:"APPLICATION_TAG",click:function(){var d={status:!0};return f.patch({id:h},{tags:a.item.tags}).$promise["catch"](function(){d.status=!1,g.show(c.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})["finally"](function(){b.close(d)})}},{"class":"default",text:"APPLICATION_CANCEL",click:function(a){b.dismiss(a)}}]},e.get().$promise.then(function(b){a.tags=_.map(b.rows,"name")})["catch"](function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").factory("FaxQueue",["$resource",function(a){return a("/api/fax/queues/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("FaxQueueListCtrl",["$scope","FaxQueue","gridOptions","Auth","$uibModal",function(a,b,c,d,e){a.initView=function(){a.Auth=d;var e={exporterCsvFilename:"fax_queues.csv",columnDefs:[{name:"name"},{name:"description"},{name:"strategy"},{name:"timeout"},{name:"action",width:100,buttons:[{"class":"blue-hoki",href:"/channels/fax/queues/view/{{row.entity.id}}/settings",name:"settings"},{"class":"green-meadow",href:"/channels/fax/queues/view/{{row.entity.id}}/agents",name:"agents",hide:"user"===d.getCurrentUser().role},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=c.gridOptions(b,e,a)},a.createItem=function(){var b=e.open({animation:!0,templateUrl:"app/channels/fax/queue/list/list.create.modal.html",controller:"FaxQueueListCreateCtrl",size:"lg"});b.result.then(function(b){console.log(b),a.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("FaxQueueListCreateCtrl",["$scope","$uibModalInstance","$translate","xAlert","FaxQueue","Team","strategies",function(a,b,c,d,e,f,g){a.form={},a.strategies=g,a.item={penalty:0,agents:[]},a.getTeams=function(){return f.get({controller:"associations"}).$promise.then(function(b){a.teams=b.rows}).then(function(){ComponentsDropdowns.bindQueue(a.teams,[],function(){return{select:function(b){a.item.agents=_.union(a.item.agents,b)},deselect:function(b){a.item.agents=_.difference(a.item.agents,b)}}})})["catch"](function(a){console.error(a)})},a.save=function(){return e.save(a.item).$promise.then(function(a){d.show(c.instant("MESSAGE_WELL_DONE"),"success"),b.close(a)})["catch"](function(a){d.error(a)})},a.cancel=function(){b.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.fax.queues.list",{url:"/list",templateUrl:"app/channels/fax/queue/list/list.html",controller:"FaxQueueListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.fax.queues",{url:"/queues",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:39}}})}]),angular.module("xCallyShuttleApp").controller("FaxQueueViewCtrl",["$scope","$http","$translate","$stateParams","xAlert","FaxQueue","Team","Auth","strategies",function(a,b,c,d,e,f,g,h,i){a.Auth=h,a.strategies=i;var j=function(){return{select:function(b){return f.save({id:a.queue.id,controller:"agents"},{agents:b,penalty:a.queue.penalty}).$promise.then(function(){a.getTeams()})["catch"](function(a){console.error(a)})},deselect:function(b){return f["delete"]({id:a.queue.id,controller:"agents",agents:b}).$promise.then(function(){a.getTeams()})["catch"](function(a){console.error(a)})}}};a.getQueue=function(){return f.get({id:d.id}).$promise.then(function(b){b.penalty=0,a.queue=b})["catch"](function(a){e.error(a)})},a.updateFaxQueue=function(){return f.update({id:d.id},{name:a.queue.name,description:a.queue.description,timeout:a.queue.timeout,strategy:a.queue.strategy}).$promise.then(function(){e.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){e.error(a)})},a.getTeams=function(){return g.get({controller:"associations"}).$promise.then(function(b){return a.teams=b.rows,f.get({id:d.id,controller:"agents"}).$promise}).then(function(b){ComponentsDropdowns.bindMailQueue(a.teams,_.map(b.rows,function(a){return{id:a.id,penalty:a.UserHasFaxQueue.penalty}}),j)})["catch"](function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.fax.queues.view",{url:"/view/:id",templateUrl:"app/channels/fax/queue/view/view.html",controller:"FaxQueueViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.channels.fax.queues.view.settings",{url:"/settings",templateUrl:"app/channels/fax/queue/view/view.settings.html"}).state("main.channels.fax.queues.view.agents",{url:"/agents",templateUrl:"app/channels/fax/queue/view/view.agents.html",cache:!1,serie:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.fax.realtime",{url:"/realtime",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:41}}})}]),angular.module("xCallyShuttleApp").controller("FaxRealtimeViewAgentCtrl",["$scope","$log","$uibModal","$translate","socket","xAlert","Agent","Pause","Action","FaxQueue","usSpinnerService","$q","uiGridConstants","Auth","$timeout","User",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){function q(){return k.spin("grid-spinner"),g.get(w).$promise.then(function(b){a.gridOptions.totalItems=b.count,a.gridOptions.data=[],b.rows.forEach(function(a){s(a)})})["catch"](function(a){f.error(a)})["finally"](function(){k.stop("grid-spinner")})}function r(){e.socket.on("agent:save",function(b){b=b.newValues||b;var c=_.find(a.gridOptions.data,{agentId:b.id,isAgent:!0});c&&(c.online=_.has(b,"online")?b.online:c.online,c.lastLoginAt=_.has(b,"lastLoginAt")?b.lastLoginAt:c.lastLoginAt,c.pause=_.has(b,"faxPause")?b.faxPause:c.faxPause,c.pauseType=_.has(b,"pauseType")?b.pauseType:c.pauseType,c.lastPauseAt=_.has(b,"lastPauseAt")?b.lastPauseAt:c.lastPauseAt,c.ipaddr=_.has(b,"ipaddr")?b.ipaddr:c.ipaddr,c.port=_.has(b,"port")?b.port:c.port,c.fullcontact=_.has(b,"fullcontact")?b.fullcontact:c.fullcontact,c.useragent=_.has(b,"useragent")?b.useragent:c.useragent,c.lastms=_.has(b,"lastms")?b.lastms:c.lastms,c.internal=_.has(b,"internal")?b.internal:c.internal,c.fullname=b.hasOwnProperty("fullname")?b.fullname:c.fullname,_.map(a.gridOptions.data,function(a){a.isAgent||a.agentId!==b.id||(a.online=_.has(b,"online")?b.online:a.online)}))}),e.socket.on("agent:remove",function(b){_.remove(a.gridOptions.data,{agentId:b.id})}),e.socket.on("user_has_fax_queue:save",function(b){var c=_.includes(_.map(a.pFaxQueues,"id"),b.FaxQueueId)||n.isAdmin();if(c){var d=_.find(a.gridOptions.data,{agentId:Number(b.UserId),isAgent:!0});if(d){var e=a.gridOptions.data.indexOf(d);a.gridOptions.data.splice(e+1,0,{isAgent:!1,agentId:Number(b.UserId),queue:b.queue,queueId:b.FaxQueueId,agent:b.membername,online:d.online})}}}),e.socket.on("user_has_fax_queue:remove",function(b){_.remove(a.gridOptions.data,{agentId:b.UserId,queueId:b.FaxQueueId});var c=_.filter(a.gridOptions.data,{agentId:b.UserId});c&&c.length<=1&&!n.isAdmin()&&_.remove(a.gridOptions.data,{agentId:b.UserId})})}function s(b){a.gridOptions.data.push({isAgent:!0,agentId:b.id,agent:b.name,online:b.online,lastLoginAt:b.lastLoginAt,lastPauseAt:b.lastPauseAt,pause:b.faxPause,pauseType:b.pauseType,ipaddr:b.ipaddr,port:b.port,fullcontact:b.fullcontact,useragent:b.useragent,lastms:b.lastms,internal:b.internal,$$treeLevel:0,fullname:b.fullname}),b.FaxQueues&&b.FaxQueues.forEach(function(c){a.gridOptions.data.push({isAgent:!1,agentId:b.id,queue:c.name,queueId:c.id,agent:b.name,online:b.online})})}function t(){return h.get().$promise.then(function(b){a.pauses=b.rows,e.syncUpdates("pause",a.pauses)})["catch"](function(a){f.error(a)})}function u(){return j.get().$promise.then(function(b){a.faxQueues=b.rows,e.syncUpdates("fax_queue",a.faxQueues)})["catch"](function(a){f.error(a)})}function v(){return p.query({id:a.user.id,controller:"allowed",controller2:"fax",controller3:"queues"}).$promise.then(function(b){a.pFaxQueues=b})["catch"](function(a){f.error(a)})}a.faxQueues=[];var w={controller:"realtime",controller1:"fax",offset:0,limit:10};a.moment=moment,a.initAgents=function(){a.user=n.getCurrentUser(),a.gridOptions={enableGridMenu:!0,headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,showGridFooter:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,useExternalPagination:!0,useExternalSorting:!0,useExternalFiltering:!0,multiSelect:!0,showTreeExpandNoChildren:!0,columnDefs:[{name:"name",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.isAgent">{{row.entity.agent}} <{{row.entity.internal}}></div>'},{name:"fullname",displayName:"APPLICATION_FULLNAME",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.isAgent">{{row.entity.fullname}}</div>'},{name:"online",displayName:"APPLICATION_ONLINE",width:150,headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.online != null && row.entity.isAgent"><i class="fa" data-ng-class="{\'font-green\':row.entity.online, \'font-red\':!row.entity.online,\'fa-user\':row.entity.online,\'fa-user-times\':!row.entity.online}"></i> <i data-ng-if="row.entity.online" class="fa fa-sign-out font-red pointer-cursor" title="logout" data-ng-click="grid.appScope.agentLogout(row.entity.agent,row.entity.agentId)"></i> <span data-ng-if="row.entity.online && grid.appScope.showTimers" class="left-margin"><css-timer start-time="row.entity.lastLoginAt"></css-timer></span></div>',filter:{type:m.filter.SELECT,selectOptions:[{value:"true",label:"ONLINE"},{value:"false",label:"OFFLINE"}]}},{name:"faxPause",displayName:"APPLICATION_PAUSE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.pause != null && row.entity.online" class="ui-grid-vcenter"><i data-ng-if="row.entity.pause" data-ng-click="grid.appScope.pause(row.entity,\'unpause\')" class="fa fa-play font-green pointer-cursor left-margin" title="{{\'APPLICATION_RESUME\' | translate}}"></i><i class="fa fa-pause font-yellow pointer-cursor" data-ng-click="grid.appScope.pause(row.entity,\'pause\',\'DEFAULT PAUSE\')" title="{{\'APPLICATION_DEFAULT_PAUSE\' | translate}}"></i><select data-ng-if="grid.appScope.pauses.length" class="pause-select pointer-cursor" data-ng-model="grid.appScope.pauseType" data-ng-change="grid.appScope.pause(row.entity,\'pause\',grid.appScope.pauseType)"><option class="pointer-cursor" data-ng-repeat="pause in grid.appScope.pauses">{{pause.name}}</option></select> <span data-ng-if="row.entity.pause">({{row.entity.pauseType}})</span><span data-ng-if="row.entity.pause && grid.appScope.showTimers" class="left-margin"><css-timer start-time="row.entity.lastPauseAt"></css-timer></span></div>',filter:{type:m.filter.SELECT,selectOptions:[{value:"true",label:"PAUSED"},{value:"false",label:"NOT PAUSED"}]},enableSorting:!1,enableColumnMenu:!1},{name:"queue",displayName:"APPLICATION_QUEUE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"action",displayName:"",width:170,cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><button data-ng-if="row.entity.queueId" class="btn btn-xs red-sunglo" data-ng-click="grid.appScope.leaveQueue(row.entity.agentId,row.entity.queueId)"><i class="icon-ban"></i> {{\'APPLICATION_LEAVE\' | translate}}</button><button data-ng-if="row.entity.isAgent && row.treeNode.children.length < grid.appScope.faxQueues.length" class="btn btn-xs blue-hoki" data-ng-click="grid.appScope.joinQueue(row.entity.agentId)"><i class="icon-plus"></i> {{\'APPLICATION_JOIN_QUEUE\' | translate}}</button><div>',enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1}],data:[],gridMenuTitleFilter:function(a){var b=l.defer();return b.resolve(d.instant(a)),b.promise},onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){x(a.gridApi.core.getVisibleRows(a.gridApi.grid).length)}),a.gridApi.treeBase.on.rowExpanded(a,function(b){x(a.gridApi.core.getVisibleRows(a.gridApi.grid).length+b.treeNode.children.length)}),a.gridApi.treeBase.on.rowCollapsed(a,function(b){x(a.gridApi.core.getVisibleRows(a.gridApi.grid).length-b.treeNode.children.length)}),a.gridApi.core.on.sortChanged(a,function(a,b){0===b.length?w.order=null:w.order=b[0].name+" "+b[0].sort.direction.toUpperCase(),q()}),a.gridApi.pagination.on.paginationChanged(a,function(a,b){w.offset=(a-1)*b,w.limit=b,q()}),a.gridApi.core.on.filterChanged(a,function(){var a=this.grid;a.columns.forEach(function(a){a.filters[0].term?w[a.name]=a.filters[0].term:delete w[a.name]}),q()})}},q(),t(),u(),v(),o(function(){r()})};var x=function(a){var b=a?30*a+130:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",b+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*a+"px")};a.$on("$destroy",function(){e.unsyncUpdates("agent"),e.unsyncUpdates("user_has_fax_queue")}),a.pause=function(b,c,e){return e&&(a.pauseType=null),i.save({name:c,agent:b.agentId,data2:b.agent,type:e||"DEFAULT PAUSE",data4:e||"DEFAULT PAUSE",channel:"fax"}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})},a.joinQueue=function(e){var g=c.open({animation:!0,templateUrl:"app/channels/fax/realtime/view/agent/queue.modal.add.html",controller:"FaxRealtimeViewAgentQueueModalCtrl",resolve:{queues:function(){return _.reject(a.faxQueues,function(b){return!!_.find(a.gridOptions.data,{queue:b.name,isAgent:!1,agentId:e})})}}});g.result.then(function(b){return i.save({name:"QueueAdd",agent:e,queues:_.filter(a.faxQueues,function(a){return _.includes(b.queues,a.id)}),channel:"fax",data1:e,data3:b.queues.join(","),data4:"fax"}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})},function(){b.info("Modal dismissed at: "+new Date)})},a.leaveQueue=function(a,b){return i.save({name:"QueueRemove",agent:a,queueId:b,channel:"fax",data1:a,data3:b,data4:"fax"}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})},a.showInfo=function(a){c.open({animation:!0,templateUrl:"app/channels/fax/realtime/view/agent/agent.modal.info.html",controller:"FaxRealtimeViewAgentInfoModalCtrl",resolve:{agent:a}})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.fax.realtime.view.agents",{url:"/agents",templateUrl:"app/channels/fax/realtime/view/agent/agent.html",controller:"FaxRealtimeViewAgentCtrl"})}]),angular.module("xCallyShuttleApp").controller("FaxRealtimeViewAgentInfoModalCtrl",["$scope","$uibModalInstance","$http","agent",function(a,b,c,d){a.agent=d,a.close=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("FaxRealtimeViewAgentQueueModalCtrl",["$scope","$uibModalInstance","$http","queues",function(a,b,c,d){a.queues=d,a.item={},a.save=function(){b.close(a.item)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("FaxRealtimeViewApplicationCtrl",["$scope","$log","$uibModal","$translate","socket","xAlert","ReportFaxSession","usSpinnerService","$q","uiGridConstants","$timeout",function(a,b,c,d,e,f,g,h,i,j,k){ +function l(){return h.spin("spinner-grid"),g.get({controller:"waiting",controller2:"applications"}).$promise.then(function(b){a.gridOptions.data=b.rows})["catch"](function(a){f.error(a)})["finally"](function(){m(),h.stop("spinner-grid")})}function m(){e.socket.on("report_fax_session:save",function(b){var c=_.find(a.gridOptions.data,{id:b.id});c?(_.merge(c,b),b.leaveAt&&k(function(){_.remove(a.gridOptions.data,{id:b.id})},1e4)):b.leaveAt||a.gridOptions.data.push(b)}),e.socket.on("report_fax_session:remove",function(b){_.remove(a.gridOptions.data,{id:b.id})})}a.moment=moment,a.initApplications=function(){a.gridOptions={headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,columnDefs:[{name:"uniqueid",displayName:"APPLICATION_UNIQUEID",headerCellFilter:"translate"},{name:"accountname",displayName:"APPLICATION_ACCOUNT",headerCellFilter:"translate"},{name:"application",displayName:"APPLICATION_APPLICATION",headerCellFilter:"translate"},{name:"status",displayName:"APPLICATION_STATUS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span data-ng-if="!row.entity.leaveAt">{{\'APPLICATION_QUEUESTATUS_WAITING\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.complete">{{\'APPLICATION_QUEUESTATUS_COMPLETE\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.timeout">{{\'APPLICATION_TIMEOUT\' | translate}}</span> <span data-ng-if="!row.entity.leaveAt && grid.appScope.showTimers"><css-timer start-time="row.entity.updatedAt"></css-timer></span></div>',enableSorting:!1,enableColumnMenu:!1,enableFiltering:!1},{name:"membername",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.membername || ''}}</span></div>"},{name:"queuename",displayName:"APPLICATION_QUEUE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.queuename || ''}}</span></div>"}],data:[],gridMenuTitleFilter:function(a){var b=i.defer();return b.resolve(d.instant(a)),b.promise},onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){n(a.gridOptions.data.length)})}},l()};var n=function(a){var b=a?30*a+60:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",b+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*a+"px")};a.$on("$destroy",function(){e.unsyncUpdates("report_fax_session")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.fax.realtime.view.applications",{url:"/applications",templateUrl:"app/channels/fax/realtime/view/application/application.html",controller:"FaxRealtimeViewApplicationCtrl"})}]),angular.module("xCallyShuttleApp").controller("FaxRealtimeViewCtrl",["$scope",function(a){a.agents=[{name:"Queues",link:"main.channels.fax.realtime.view.agents.queues"},{name:"Timeline",link:"main.channels.fax.realtime.view.agents.timeline"}],a.sessions=[{name:"Sessions",link:"main.channels.fax.realtime.view.sessions"}],a.tree={queues:[{name:"Queues",link:"main.channels.fax.realtime.view.agents.queues"},{name:"Timeline",link:"main.channels.fax.realtime.view.agents.timeline"}],sessions:[{name:"Sessions",link:"main.channels.fax.realtime.view.sessions"}]},a.timerSwitch={isActive:!0,size:"mini",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"primary"},a.showTimers=!1}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.fax.realtime.view",{url:"/view",templateUrl:"app/channels/fax/realtime/view/view.html",controller:"FaxRealtimeViewCtrl"})}]),angular.module("xCallyShuttleApp").factory("ReportFaxSession",["$resource",function(a){return a("/api/report/fax/sessions/:id/:controller/:controller2",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("MailAccount",["$resource",function(a){return a("/api/mail/accounts/:accountId/:controller/:id",{id:"@accountId"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.mail.accounts",{url:"/accounts",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:34}}})}]),angular.module("xCallyShuttleApp").controller("MailAccountListCtrl",["$scope","$stateParams","gridOptions","MailAccount","socket",function(a,b,c,d,e){a.$on("$destroy",function(){e.unsyncUpdates("mail_server_in")}),a.initView=function(){e.socket.on("mail_server_in:save",function(b){var c=_.find(a.gridOptions.data,{id:b.MailAccountId});c&&(c.MailServerIn.state=b.state,c.MailServerIn.source=JSON.parse(b.source))});var f={exporterCsvFilename:"mail_accounts.csv",columnDefs:[{name:"name"},{name:"description"},{name:"address"},{name:"MailServerIn.state",width:100,cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div> <span data-ng-if="row.entity.MailServerIn" class="label label-sm" data-ng-class="row.entity.MailServerIn.state === \'CONNECTED\' ? \'label-success\' : \'label-danger\'">{{row.entity.MailServerIn.state}}</span> <span data-ng-if="!row.entity.MailServerIn" class="label label-sm label-info" >{{\'APPLICATION_DISABLED\' | translate | uppercase}}</span> </div>',displayName:"IMAP",enableSorting:!1,enableFiltering:!1},{name:"MailServerOut.state",width:110,cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div><span class=\"label label-sm\" data-ng-class=\"row.entity.MailServerOut.state === 'CONNECTED' ? 'label-success' : 'label-danger'\">{{row.entity.MailServerOut.state}}</span></div>",displayName:"SMTP",enableSorting:!1,enableFiltering:!1},{name:"action",width:75,buttons:[{"class":"blue-hoki",href:"/channels/mail/accounts/view/{{row.entity.id}}/settings",name:"profile"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=c.gridOptions(d,f,a,{accountId:b.accountId})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.mail.accounts.list",{url:"/list",templateUrl:"app/channels/mail/account/list/list.html",controller:"MailAccountListCtrl"})}]),angular.module("xCallyShuttleApp").factory("MailServerIn",["$resource",function(a){return a("/api/mail/servers/in/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("MailServerOut",["$resource",function(a){return a("/api/mail/servers/out/:id/:controller",{id:"@id"},{update:{method:"PUT"},test:{method:"GET"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.mail.accounts.view.actions",{url:"/actions",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("MailAccountViewActionListCtrl",["$scope","gridOptions","MailAccount","$http","$translate","$stateParams",function(a,b,c,d,e,f){a.initActons=function(){var d={draggable:!0,exporterCsvFilename:"mail_applications.csv",enableSorting:!1,enableFiltering:!1,columnDefs:[{name:"app",cellClass:"text-center"},{name:"name",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span>{{row.entity.app == "queue" ? row.entity.MailQueue.name : row.entity.User.name}}</span></div>'},{name:"timeout",cellClass:"text-center"},{name:"interval",displayName:"APPLICATION_TIME_INTERVAL",cellClass:"text-center",cellTemplate:"<div><span>{{row.entity.Interval ? row.entity.Interval.name : row.entity.interval}}</span></div>"},{name:"action",width:125,buttons:[{"class":"blue-hoki",href:"/channels/mail/accounts/view/{{row.entity.MailAccountId}}/actions/view/{{row.entity.id}}",name:"profile"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.app, row.entity.id)"}]}]};a.gridOptions=b.gridOptions(c,d,a,{accountId:f.accountId,controller:"applications"})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.mail.accounts.view.actions.list",{url:"/list",templateUrl:"app/channels/mail/account/view/action/list/list.html",controller:"MailAccountViewActionListCtrl"})}]),angular.module("xCallyShuttleApp").controller("MailAccountViewActionViewCtrl",["$scope","$http","$stateParams","$translate","$location","xAlert","WizardHandler","socket","application","interval","Agent","Interval","MailQueue","MailAccount","Template","SmsAccount",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.initAction=function(){return a.$application=i.application,a.$stateParams=c,a.$interval=j.interval,a.forms={},a.apps=[{name:"Queue",value:"queue"},{name:"Agent",value:"agent"},{name:"SendMail",value:"sendMail"},{name:"ReplyMail",value:"replyMail"},{name:"SendSMS",value:"sendSms"}],a.types=[{key:"APPLICATION_REPLY",value:"reply"},{key:"APPLICATION_REPLY_TO_ALL",value:"replyAll"}],n.get({accountId:c.accountId,controller:"applications",id:c.actionId}).$promise.then(function(b){if(a.application=b,a.application.alwaysTime=!1,a.application.IntervalId)a.application.intType="list";else switch(a.application.interval){case"*,*,*,*":a.application.intType="always";break;default:a.application.intType="custom"}if("always"===a.application.intType||"custom"===a.application.intType){var c=a.application.interval.split(",");"*"===c[0]?a.application.alwaysTime=!0:(a.application.t_from=moment(new Date),a.application.t_to=moment(new Date),a.application.t_from.hour(c[0].split("-")[0].split(":")[0]),a.application.t_from.minute(c[0].split("-")[0].split(":")[1]),a.application.t_to.hour(c[0].split("-")[1].split(":")[0]),a.application.t_to.minute(c[0].split("-")[1].split(":")[1])),"*"===c[1]?(a.application.wd_from="always",a.application.wd_to="always"):(a.application.wd_from=c[1].split("-")[0],a.application.wd_to=c[1].split("-")[1]),"*"===c[2]?(a.application.md_from="always",a.application.md_to="always"):(a.application.md_from=c[2].split("-")[0],a.application.md_to=c[2].split("-")[1]),"*"===c[3]?(a.application.m_from="always",a.application.m_to="always"):(a.application.m_from=c[3].split("-")[0],a.application.m_to=c[3].split("-")[1])}a.$watch("application.t_from",function(b){a.application.t_from_hm=moment(b).format("HH:mm")}),a.$watch("application.t_to",function(b){a.application.t_to_hm=moment(b).format("HH:mm")})})["catch"](function(a){console.error(a),f.error(a)})},a.getQueues=function(){return m.get().$promise.then(function(b){a.queues=b.rows})["catch"](function(a){console.error(a)})},a.getAgents=function(){return k.get().$promise.then(function(b){a.agents=b.rows})["catch"](function(a){console.error(a)})},a.getIntervals=function(){return l.get().$promise.then(function(b){a.intervals=b.rows})["catch"](function(a){console.error(a)})},a.getTemplates=function(){return o.get().$promise.then(function(b){a.templates=b.rows})["catch"](function(a){console.error(a)})},a.getMailAccounts=function(){return n.get().$promise.then(function(b){a.mailAccounts=b.rows})["catch"](function(a){console.error(a)})},a.getSmsAccounts=function(){return p.get().$promise.then(function(b){a.smsAccounts=b.rows})["catch"](function(a){console.error(a)})},a.updateItem=function(){switch(a.application.intType){case"always":a.application.interval="*,*,*,*",a.application.IntervalId=null;break;case"list":var b=_.find(a.intervals,{id:a.application.IntervalId});a.application.interval=b?"":"*,*,*,*",a.application.IntervalId=b?a.application.IntervalId:null;break;case"custom":var g,h,i,j,k;g=a.application.t_from&&a.application.t_to&&!a.application.alwaysTime?moment(a.application.t_from).format("HH:mm")+"-"+moment(a.application.t_to).format("HH:mm"):"*",a.application.wd_from&&"always"!==a.application.wd_from?(h=a.application.wd_from,a.application.wd_to&&"always"!==a.application.wd_to&&(h+="-"+a.application.wd_to)):h="*",a.application.md_from&&"always"!==a.application.md_from?(i=a.application.md_from,a.application.md_to&&"always"!==a.application.md_to&&(i+="-"+a.application.md_to)):i="*",a.application.m_from&&"always"!==a.application.m_from?(j=a.application.m_from,a.application.m_to&&"always"!==a.application.m_to&&(j+="-"+a.application.m_to)):j="*",k=g+","+h+","+i+","+j,a.application.interval=k,a.application.IntervalId=null}return n.update({accountId:c.accountId,controller:"applications",id:c.actionId},a.application).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success"),e.path("/channels/mail/accounts/view/"+c.accountId+"/actions/list")})["catch"](function(a){f.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.mail.accounts.view.actions.view",{url:"/view/:actionId",templateUrl:"app/channels/mail/account/view/action/view/view.html",controller:"MailAccountViewActionViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("MailAccountViewActionWizardCtrl",["$scope","$http","Agent","Template","MailQueue","MailAccount","Interval","$stateParams","$translate","$location","xAlert","WizardHandler","socket","application","interval","SmsAccount",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.initWizard=function(){a.apps=[{name:"Queue",value:"queue"},{name:"Agent",value:"agent"},{name:"SendMail",value:"sendMail"},{name:"ReplyMail",value:"replyMail"},{name:"SendSMS",value:"sendSms"}],a.types=[{key:"APPLICATION_REPLY",value:"reply"},{key:"APPLICATION_REPLY_TO_ALL",value:"replyAll"}],a.$application=n.application,a.$stateParams=h,a.$interval=o.interval,a.forms={},a.application={alwaysTime:!0},a.$watch("application.t_from",function(b){a.application.t_from_hm=moment(b).format("HH:mm")}),a.$watch("application.t_to",function(b){a.application.t_to_hm=moment(b).format("HH:mm")})},a.getQueues=function(){return e.get().$promise.then(function(b){a.queues=b.rows})["catch"](function(a){console.error(a)})},a.getAgents=function(){return c.get().$promise.then(function(b){a.agents=b.rows})["catch"](function(a){console.error(a)})},a.getTemplates=function(){return d.get().$promise.then(function(b){a.templates=b.rows})["catch"](function(a){console.error(a)})},a.getSmsAccounts=function(){return p.get().$promise.then(function(b){a.smsAccounts=b.rows})["catch"](function(a){console.error(a)})},a.getMailAccounts=function(){return f.get().$promise.then(function(b){a.mailAccounts=b.rows})["catch"](function(a){console.error(a)})},a.getIntervals=function(){return g.get().$promise.then(function(b){a.intervals=b.rows})["catch"](function(a){console.error(a)})},a.createItem=function(){switch(a.application.intType){case"always":a.application.interval="*,*,*,*",a.application.IntervalId=null;break;case"list":var b=_.find(a.intervals,{id:a.application.IntervalId});a.application.interval=b?"":"*,*,*,*",a.application.IntervalId=b?a.application.IntervalId:null;break;case"custom":var c,d,e,g,i;c=a.application.t_from&&a.application.t_to&&!a.application.alwaysTime?moment(a.application.t_from).format("HH:mm")+"-"+moment(a.application.t_to).format("HH:mm"):"*",a.application.wd_from&&"always"!==a.application.wd_from?(d=a.application.wd_from,a.application.wd_to&&"always"!==a.application.wd_to&&(d+="-"+a.application.wd_to)):d="*",a.application.md_from&&"always"!==a.application.md_from?(e=a.application.md_from,a.application.md_to&&"always"!==a.application.md_to&&(e+="-"+a.application.md_to)):e="*",a.application.m_from&&"always"!==a.application.m_from?(g=a.application.m_from,a.application.m_to&&"always"!==a.application.m_to&&(g+="-"+a.application.m_to)):g="*",i=c+","+d+","+e+","+g,a.application.interval=i,a.application.IntervalId=null}return f.save({accountId:h.accountId,controller:"applications"},a.application).$promise.then(function(){j.path("/channels/mail/accounts/view/"+h.accountId+"/actions/list")})["catch"](function(a){console.error(a)})},a.formValidation=function(a){return a},a.next=function(){l.wizard().next()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.mail.accounts.view.actions.wizard",{url:"/wizard",templateUrl:"app/channels/mail/account/view/action/wizard/wizard.html",controller:"MailAccountViewActionWizardCtrl"})}]),angular.module("xCallyShuttleApp").factory("MailDisposition",["$resource",function(a){return a("/api/mail/dispositions/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("MailInboxViewModaDispositionAddCtrl",["$scope","$uibModalInstance","MailAccount","id","xAlert","$translate",function(a,b,c,d,e,f){a.ok=function(){return c.save({accountId:d,controller:"dispositions"},{name:a.name}).$promise.then(function(a){b.close(a)})["catch"](function(a){e.show(f.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("MailAccountDispositionViewCtrl",["$scope","$stateParams","$uibModal","$translate","MailAccount","xAlert",function(a,b,c,d,e,f){a.initView=function(){return e.get({accountId:b.accountId,controller:"dispositions"}).$promise.then(function(b){a.dispositions=b.rows})["catch"](function(a){console.error(a),f.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.updateDisposition=function(a,c){return e.update({accountId:b.accountId,controller:"dispositions",id:a},{name:c}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE")+"!","success")})["catch"](function(a){console.error(a),f.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.deleteDisposition=function(c){return console.log("delete"),e.remove({accountId:b.accountId,controller:"dispositions",id:c}).$promise.then(function(){_.remove(a.dispositions,{id:c})})["catch"](function(a){console.error(a),f.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.addDisposition=function(){return c.open({animation:!0,templateUrl:"app/channels/mail/account/view/disposition/modal/add.modal.html",controller:"MailInboxViewModaDispositionAddCtrl",resolve:{id:function(){return b.accountId}}}).result.then(function(b){b&&a.dispositions.push(b)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.mail.accounts.view.dispositions",{url:"/dispositions",controller:"MailAccountDispositionViewCtrl",templateUrl:"app/channels/mail/account/view/disposition/view/view.html"})}]),angular.module("xCallyShuttleApp").controller("MailAccountHooksViewCtrl",["$scope","MailAccount","Pause","$http","$stateParams","clipboard","$translate","$location","xAlert","List",function(a,b,c,d,e,f,g,h,i,j){a.account={},a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.CONST_TIMEOUT=3e4,a.initView=function(){a.types=[{value:"",name:"-- None --"},{name:"HTTP GET",value:"GET"},{name:"HTTP POST",value:"POST"}],c.get().$promise.then(function(b){a.pauses=b.rows})["catch"](function(a){i.error(a)}),b.get({id:e.accountId}).$promise.then(function(b){a.account=b,a.account.actions.length<1&&a.account.actions.push({action:"pause",enabled:!1,type:null})})["catch"](function(a){i.error(a)})},a.resetActionData=function(a){a.type=null},a.updateItemMailAccount=function(){return console.log(a.account),b.update({id:e.accountId},a.account).$promise.then(function(){i.show(g.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){i.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.mail.accounts.view.hooks",{url:"/hooks",controller:"MailAccountHooksViewCtrl",templateUrl:"app/channels/mail/account/view/hooks/view/view.html"})}]),angular.module("xCallyShuttleApp").controller("MailAccountOtherViewCtrl",["$scope","$rootScope","$stateParams","$translate","xAlert","MailAccount",function(a,b,c,d,e,f){a.initView=function(){return a.options={language:b.language,allowedContent:!0,entities:!1,skin:"office2013",contentsCss:"/assets/css/global/richparams.css",extraPlugins:"autogrow",autoGrow_minHeight:450,disableNativeSpellChecker:!1,toolbar:[{name:"clipboard",items:["Cut","Copy","Paste","PasteText","PasteFromWord","-","Undo","Redo"]},{name:"links",items:["Link","Unlink","Anchor"]},{name:"insert",items:["Image","Table","HorizontalRule","SpecialChar"]},{name:"tools",items:["Maximize"]},{name:"document",items:["Source"]},"/",{name:"basicstyles",items:["Bold","Italic","Underline","Strike","Subscript","Superscript","-","RemoveFormat"]},{name:"paragraph",items:["NumberedList","BulletedList","-","Outdent","Indent","-","Blockquote"]},{name:"styles",items:["Styles","Format"]},"/",{name:"motion",items:["voice","chat","mail"]}]},f.get({id:c.accountId}).$promise.then(function(b){console.log(b),a.account=b})["catch"](function(a){e.error(a)})},a.updateItemMailAccount=function(){return f.update({id:c.accountId},{whiteLabel:a.account.whiteLabel,signature:a.account.signature}).$promise.then(function(){e.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){e.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.mail.accounts.view.other",{url:"/other",controller:"MailAccountOtherViewCtrl",templateUrl:"app/channels/mail/account/view/other/view/view.html"})}]),angular.module("xCallyShuttleApp").controller("MailAccountSettingViewCtrl",["$scope","$http","$stateParams","$translate","$location","$timeout","socket","xAlert","MailAccount","MailMessage","MailServerIn","MailServerOut","usSpinnerService","List","Template",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){a.imapDisabled=!1,a.smtpDisabled=!1,a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.CONST_TIMEOUT=3e4,a.$on("$destroy",function(){g.socket.removeAllListeners("mail_message:sent"),g.socket.removeAllListeners("mail_message:failed"),g.socket.removeAllListeners("mail_server_in:state"),g.socket.removeAllListeners("mail_server_out:state")}),a.initView=function(){return g.socket.on("mail_message:sent",function(){h.show(d.instant("MESSAGE_WELL_DONE"),"success"),m.stop("spinner-grid")}),g.socket.on("mail_message:failed",function(){h.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger"),m.stop("spinner-grid")}),n.get().$promise.then(function(b){a.lists=b.rows})["catch"](function(a){console.error(a)}),o.get().$promise.then(function(b){a.templates=b.rows})["catch"](function(a){console.error(a)}),i.get({id:c.accountId}).$promise.then(function(b){a.account=b,a.account.MailServerIn&&(a.account.MailServerIn.source=JSON.parse(a.account.MailServerIn.source),a.account.MailServerOut.source=JSON.parse(a.account.MailServerOut.source),g.socket.on("mail_server_in:state",function(b){if(b.id===a.account.MailServerIn.id)switch(a.account.MailServerIn.state=b.state,a.account.MailServerIn.source=JSON.parse(b.source),b.state){case"CONNECTING":break;default:m.stop("spinner-grid"),a.imapDisabled=!1}})),g.socket.on("mail_server_out:state",function(b){if(b.id===a.account.MailServerOut.id)switch(a.account.MailServerOut.state=b.state,a.account.MailServerOut.source=JSON.parse(b.source),b.state){case"CONNECTING":break;default:m.stop("spinner-grid"),a.smtpDisabled=!1}})})["catch"](function(a){h.error(a)})},a.updateItemMailAccount=function(){return i.update({id:c.accountId},{name:a.account.name,description:a.account.description,address:a.account.address,fidelity:a.account.fidelity,timeout:a.account.timeout,service:a.account.service,ListId:a.account.ListId,TemplateId:a.account.TemplateId}).$promise.then(function(){h.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){h.error(a)})},a.updateItemMailServerIn=function(){var b=angular.copy(a.account.MailServerIn);return delete b.source,m.spin("spinner-grid"),a.imapDisabled=!0,k.update({id:b.id},b).$promise.then(function(){h.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){h.error(a)})},a.updateItemMailServerOut=function(){var b=angular.copy(a.account.MailServerOut);return delete b.source,m.spin("spinner-grid"),a.smtpDisabled=!0,l.update({id:b.id},b).$promise.then(function(){h.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){h.error(a)})},a.test=function(){return m.spin("spinner-grid"),a.smtpDisabled=!0,l.update({id:a.account.MailServerOut.id},{state:"CONNECTING"}).$promise["catch"](function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.mail.accounts.view.settings",{url:"/settings",controller:"MailAccountSettingViewCtrl",templateUrl:"app/channels/mail/account/view/setting/view/view.html"})}]),angular.module("xCallyShuttleApp").controller("MailAccountViewCtrl",["$scope","$stateParams","MailAccount",function(a,b,c){a.initView=function(){return c.get({id:b.accountId}).$promise.then(function(b){a.account=b})["catch"](function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.mail.accounts.view",{url:"/view/:accountId",controller:"MailAccountViewCtrl",templateUrl:"app/channels/mail/account/view/view.html",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]})}]}})}]),angular.module("xCallyShuttleApp").controller("MailAccountWizardCtrl",["$scope","$http","$location","$translate","WizardHandler","xAlert","MailAccount",function(a,b,c,d,e,f,g){a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.initWizard=function(){a.forms={},a.item={MailServerIn:{port:993,ssl:!0,"delete":!1,protocol:"IMAP",filter:"UNSEEN",mailbox:"INBOX",keepalive:!0,authTimeout:5,connTimeout:10},MailServerOut:{port:465,ssl:!0}}},a.goNext=function(){e.wizard().next()},a.formValidation=function(a){return a},a.createItem=function(){return g.save(a.item).$promise.then(function(){c.path("/channels/mail/accounts/list")})["catch"](function(a){f.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.mail.accounts.wizard",{url:"/wizard",templateUrl:"app/channels/mail/account/wizard/wizard.html",controller:"MailAccountWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.mail.inbox",{url:"/inbox",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:36}}})}]),angular.module("xCallyShuttleApp").controller("MailInboxInfoModalCtrl",["$scope","$translate","$uibModalInstance","$stateParams","xAlert","uniqueId","ReportSquare",function(a,b,c,d,e,f,g){a.data=null,a.initInfo=function(){g.get({controller:"show",uniqueid:f}).$promise.then(function(b){a.data={id:b.id,channel:b.channel,uniqueid:b.uniqueid,callerid:b.callerid,calleridname:b.calleridname,project_name:b.project_name,extension:b.extension}})["catch"](function(b){switch(b.status){case 404:a.data=null;break;default:e.error(b)}})},a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").directive("mailMessage",["$rootScope","$translate","MailMessage","List","xAlert","Lightbox","$uibModal",function(a,b,c,d,e,f,g){return{restrict:"E",scope:{message:"=",listId:"="},templateUrl:"app/channels/mail/inbox/message/message.directive.html",link:function(h){h.openPreview=function(a){f.openModal(["api/mail/attachments/"+a],0)},h.openContact=function(c){return h.listId?d.save({listId:h.listId,controller:"contacts"},{email:c}).$promise.then(function(b){var c=_.find(a.$root.workspaces,{contactID:b.id});c?c.active=!0:a.$root.workspaces.push({active:!0,"class":"icon-user",contactID:b.id,name:b.email,type:"contact"})})["catch"](function(a){console.error(a)}):void e.show(b.instant("MESSAGE_NO_LIST_CONFIGURED"),"info")},h.info=function(a){g.open({animation:!0,templateUrl:"app/channels/mail/inbox/message/info.modal.html",controller:"MailInboxInfoModalCtrl",resolve:{uniqueId:function(){return a}}})},h.retry=function(a){return c.update({id:a,status:"SENDING"}).$promise["catch"](function(a){console.error(a)})}}}}]),angular.module("xCallyShuttleApp").directive("mailNote",["$translate","Modal","Auth","MailMessage","xAlert",function(a,b,c,d,e){return{restrict:"E",scope:{message:"="},templateUrl:"app/channels/mail/inbox/note/note.directive.html",link:function(f){f.Auth=c,f.deleteNote=b.confirm["delete"](function(){return d.remove({id:f.message.id}).$promise.then(function(){e.show(a.instant("MESSAGE_WELL_DONE")+"!","success")})["catch"](function(a){e.error(a)})})}}}]),angular.module("xCallyShuttleApp").controller("MailInboxViewModalNoteCtrl",["$scope","$uibModalInstance","$translate","id","MailRoom","xAlert",function(a,b,c,d,e,f){a.initModal=function(){a.item={}},a.ok=function(){return e.save({id:d,controller:"messages",controller2:"send"},{text:a.item.text,status:"NOTE"}).$promise.then(function(){f.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(){f.show(c.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})["finally"](function(){b.close()})},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").directive("mailRoom",["$rootScope","$cookieStore","$translate","$uibModal","$timeout","Tag","CannedAnswer","MailAttachment","List","MailAccount","MailRoom","MailMessage","FileUploader","xAlert","usSpinnerService","socket","Auth",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){return{restrict:"E",scope:{workspace:"="},templateUrl:"app/channels/mail/inbox/room/room.directive.html",link:function(e){function r(a,b){var c="";return b&&b.signature&&(c+="<br>"+b.signature),a&&(c+="<br><blockquote>"+a.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\n/g,"<br>")+"</blockquote>"),c}e.onCKReady=function(a){e.ckEditorInstance=a},e.$on("$destroy",function(){});var s=[];e.user=q.getCurrentUser(),e.getContacts=function(a){return e.listId?i.get({listId:e.listId,controller:"contacts",email:a}).$promise.then(function(a){return a.rows})["catch"](function(a){console.error(a)}):[]},e.setList=function(a){e.listId=a},e.options={language:a.language,allowedContent:!0,entities:!1,skin:"office2013",extraPlugins:"autogrow",autoGrow_minHeight:600,autoGrow_maxHeight:600,disableNativeSpellChecker:!1,toolbar:[{name:"clipboard",items:["Cut","Copy","Paste","-","Undo","Redo"]},{name:"links",items:["Link","Unlink","Anchor"]},{name:"insert",items:["Image","Table","HorizontalRule","SpecialChar"]},{name:"tools",items:["Maximize"]},"/",{name:"basicstyles",items:["Bold","Italic","Underline","Strike","Subscript","Superscript","-","RemoveFormat"]},{name:"paragraph",items:["NumberedList","BulletedList","-","Outdent","Indent","-","Blockquote"]},{name:"styles",items:["Styles","Format"]}]},e.expanded=!0,e.modelOptions={debounce:{"default":500,blur:250},getterSetter:!0},e.panelLeft=null,e.panelRight="col-md-12",e.forms={},e.form={from:[],to:e.workspace.data&&e.workspace.data.to?[e.workspace.data.to]:[],cc:[],bcc:[],tags:[],html:"",disabled:!1},p.socket.on("mail_message:remove",function(a){_.remove(e.mailRoom.MailMessages,{id:a.id})}),p.socket.on("mail_message:save",function(a){return e.workspace.id&&a.MailRoomId==e.workspace.id?(e.workspace.active||e.workspace.unread++,l.get({id:a.id}).$promise.then(function(a){e.mailRoom||(e.mailRoom={MailMessages:[]});var b=_.findIndex(e.mailRoom.MailMessages,{id:a.id});b>-1?_.merge(e.mailRoom.MailMessages[b],a):e.mailRoom.MailMessages.unshift(a),e.panelLeft="col-md-6",e.panelRight="col-md-6"})["catch"](function(a){console.error(a)})):void 0});var t=e.uploader=new m({url:"api/mail/attachments",autoUpload:!0,withCredentials:!0,headers:{Authorization:"Bearer "+b.get("token")}});return t.onErrorItem=function(){n.show(c.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger"); +},t.removeFromQueue=function(a){var b=this;return h["delete"]({id:a.basename}).$promise.then(function(){var c=b.getIndexOfItem(a),d=b.queue[c];d.isUploading&&d.cancel(),b.queue.splice(c,1),d._destroy(),b.progress=b._getTotalProgress(),s=_.reject(s,{basename:a.basename})})["catch"](function(){n.show(c.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},t.onSuccessItem=function(a,b){var c={size:b.size,path:b.path,name:b.name,basename:b.basename,type:b.type};a=_.merge(a,c),s.push(c)},e.openRoom=function(b){var c=_.find(a.workspaces,{id:b,type:"mailRoom"});c?c.active=!0:a.workspaces.push({id:b,type:"mailRoom","class":"icon-envelope",active:!0})},e.togglePanelLeft=function(){e.panelLeft?(e.panelLeft=null,e.panelRight="col-md-12"):(e.panelLeft="col-md-6",e.panelRight="col-md-6")},e.onSelectAnswer=function(){e.ckEditorInstance.insertHtml(e.modelOptions.selectedAnswer),delete e.modelOptions.selectedAnswer},e.getAnswers=function(a){return g.get({key:a}).$promise.then(function(a){return _.map(a.rows,"value")})},e.closeRoom=function(){return d.open({animation:!0,templateUrl:"app/channels/mail/inbox/status/status.modal.html",controller:"MailInboxStatusModalCtrl",resolve:{accountId:function(){return e.mailRoom.MailAccountId}}}).result.then(function(a){return k.patch({id:e.workspace.id},a).$promise["catch"](function(a){n.error(a)})})},e.loadNote=function(){return d.open({animation:!0,templateUrl:"app/channels/mail/inbox/note/note.modal.html",controller:"MailInboxViewModalNoteCtrl",resolve:{id:function(){return e.workspace.id}}})},e.onChanged=function(){return k.update({id:e.workspace.id},{tags:e.form.tags}).$promise["catch"](function(a){console.error(a)})},e.sendMail=function(){o.spin("spinner-grid"),e.form.disabled=!0;var a={},b={subject:e.form.subject||(e.mailRoom?e.mailRoom.subject:null),from:e.form.from,to:_.map(e.form.to,"email"),cc:_.map(e.form.cc,"email"),bcc:_.map(e.form.bcc,"email"),html:e.form.html||null,text:e.form.text||null,inReplyTo:a.messageId||null,status:"SENDING",MailAttachments:s};return e.mailRoom?(a=_.last(e.mailRoom.MailMessages,{status:"RECEIVED"}),b.inReplyTo=a.messageId||null,k.save({id:e.workspace.id,controller:"messages",controller2:"send"},b).$promise.then(function(){e.form.html="",t.queue=[],s=[],n.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(){n.show(c.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})["finally"](function(){o.stop("spinner-grid"),e.form.disabled=!1})):l.save(b).$promise.then(function(a){n.show(c.instant("MESSAGE_MAIL_MESSAGE_SEND_SUCCESS"),"success"),e.form.html="",t.queue=[],s=[],e.workspace.id=a.id,e.workspace.name=a.subject,e.mailRoom=a,e.expanded=!1,p.socket.on("mail_room:save",function(a){e.workspace.id&&a.id===e.workspace.id&&_.merge(e.mailRoom,a)})})["catch"](function(){n.show(c.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})["finally"](function(){o.stop("spinner-grid"),e.form.disabled=!1})},f.get().$promise.then(function(a){e.tags=_.map(a.rows,"name")})["catch"](function(a){console.error(a)}),j.get().$promise.then(function(a){e.mailAccounts=a.rows})["catch"](function(a){console.error(a)}),e.workspace.id?(e.panelLeft="col-md-6",e.panelRight="col-md-6",k.get({id:e.workspace.id}).$promise.then(function(a){e.mailRoom=a,e.expanded=!1,e.listId=a.MailAccount.ListId,e.workspace.name=a.subject||"No subject",e.form.from.push(a.MailAccount.address),e.form.tags=a.tags;var b=_.findLast(e.mailRoom.MailMessages,{status:"RECEIVED"});if(b)e.form.to=_.map(_.union(b.from,b.to),function(a){return{email:a}}),e.form.to=_.remove(e.form.to,function(b){return b.email!==a.MailAccount.address}),e.form.cc=_.map(b.cc,function(a){return{email:a}}),e.form.bcc=_.map(b.bcc,function(a){return{email:a}}),e.form.subject="Re: "+(b.subject||"No subject"),e.form.html=r(b.text,a.MailAccount);else{e.form.html=r("",a.MailAccount);var c=_.findLast(e.mailRoom.MailMessages,{status:"SENT"});c&&(e.form.to=_.map(c.to,function(a){return{email:a}}))}return p.socket.on("mail_room:save",function(a){a.id===e.workspace.id&&_.merge(e.mailRoom,a)}),a})["catch"](function(a){console.error(a)})["finally"](function(){o.stop("spinner-grid"),e.form.disabled=!1})):(e.panelLeft=null,e.panelRight="col-md-12",e.workspace.mailAccountId?j.get({id:e.workspace.mailAccountId}).$promise.then(function(a){e.form.from.push(a.address),e.form.html=r("",a),e.listId=a.ListId,o.stop("spinner-grid")})["catch"](function(a){o.stop("spinner-grid"),console.error(a)}):void o.stop("spinner-grid"))}}}]),angular.module("xCallyShuttleApp").controller("MailInboxStatusModalCtrl",["$scope","$uibModalInstance","MailAccount","accountId",function(a,b,c,d){a.modal={title:"APPLICATION_CONFIRM_CLOSE",text:"MESSAGE_ARE_YOU_SURE_YOU_WANT_TO_CLOSE_THE_MAIL"},a.initDisposition=function(){return a.item={disposition:null,status:"CLOSED"},c.get({accountId:d,controller:"dispositions"}).$promise.then(function(b){a.dispositions=b.rows})["catch"](function(a){console.error(a)})},a.ok=function(){b.close(a.item)},a.cancel=function(){b.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.mail.inbox.view.account",{url:"/account/:id",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:9}}})}]),angular.module("xCallyShuttleApp").controller("MailInboxViewAccountListCtrl",["$scope","$rootScope","$uibModal","$translate","$stateParams","$state","Tag","uibButtonConfig","usSpinnerService","socket","MailAccount","MailRoom","uiGridConstants","Auth","Modal","xAlert","localStorageService",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){a.openRoom=function(b,c,d){if(!d){var f=_.find(a.workspaces,{id:b,type:"mailRoom"});if(f&&b?f.active=!0:a.workspaces.push({id:b,subject:c,type:"mailRoom","class":"icon-envelope",active:!0,mailAccountId:e.id}),b&&"agent"===n.getCurrentUser().role&&"PENDING"!==a.query.status&&"CLOSED"!==a.query.status)return l.patch({id:b},{status:"OPEN",openReason:"agent"}).$promise["catch"](function(a){console.error(a)})}},a.getPage=function(){i.spin("spinner-grid");var b={accountId:e.id,controller:"rooms"};return a.query&&_.merge(b,a.query),k.query(b).$promise.then(function(b){q.set("mailAccountId",e.id),a.gridOptions.data=b,j.socket.on("mail_room:save",function(b){if(b.MailAccountId==e.id){var c=_.find(a.gridOptions.data,{id:b.id});c?c.status!==b.status?_.remove(a.gridOptions.data,{id:b.id}):_.merge(c,b):a.query.status!==b.status||a.query.tags.length&&!_.isEqual(a.query.tags,b.tags)||a.gridOptions.data.push(b)}}),j.socket.on("mail_room:remove",function(b){_.remove(a.gridOptions.data,{id:b.id})})})["catch"](function(a){p.error(a)})["finally"](function(){i.stop("spinner-grid")})},a.initView=function(){h.activeClass="green-haze",a.id=[],a.isAdmin=n.isAdmin(),a.isAgent=n.isAgent(),a.uncheckable=!1,a.query={status:q.get("mailStatus")?q.get("mailStatus"):"NEW",tags:q.get("mailTags")?q.get("mailTags"):[]},a.$watch("query.status",function(b,c){b!==c&&(q.set("mailStatus",a.query.status),a.getPage())},!0),k.get().$promise.then(function(b){a.mailAccounts=b.rows})["catch"](function(a){console.error(a)}),g.get().$promise.then(function(b){a.tags=_.map(b.rows,"name")})["catch"](function(a){console.error(a)}),a.gridOptions={exporterCsvFilename:"mail_rooms.csv",enableRowHeaderSelection:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,enableFiltering:!0,enableSorting:!0,enableGridMenu:!1,flatEntityAccess:!0,showGridFooter:!0,fastWatch:!0,enableSelectAll:!0,enableHorizontalScrollbar:0,enableVerticalScrollbar:0,columnDefs:[{name:"lastEvent",displayName:"",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div> <span data-ng-class=\"{'icon-arrow-up font-green': row.entity.lastEvent === 'SENT', 'icon-arrow-up font-yellow': row.entity.lastEvent === 'SENDING', 'icon-arrow-down font-green': row.entity.lastEvent === 'RECEIVED', 'icon-close font-red': row.entity.lastEvent === 'FAILED', 'icon-question': !row.entity.lastEvent}\"> </span> </div>",width:30,enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"attachment",displayName:"",headerCellTemplate:'<i class="icon-paper-clip" style="margin-top: 8px; margin-left: 8px;"></i>',cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div><i data-ng-class=\"row.entity.attachment ? 'icon-paper-clip' : ''\"></i></div>",width:30,enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"tags",displayName:"",headerCellTemplate:'<i class="icon-tag" style="margin-top: 8px; margin-left: 8px;"></i>',cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div><i data-ng-class=\"row.entity.tags.length ? 'icon-tag' : ''\" title=\"{{row.entity.tags}}\"></i></div>",width:30,enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"id",displayName:"Id",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div><span>#{{row.entity.id}}</span></div>",width:75,enableSorting:!0,enableFiltering:!0,enableColumnMenu:!1},{name:"subject"},{name:"from",cellClass:"text-center"},{name:"disposition",displayName:"APPLICATION_DISPOSITION",headerCellFilter:"translate"},{name:"createdAt",cellFilter:"date:'dd/MM/yyyy HH:mm'",width:120,enableFiltering:!1},{name:"updatedAt",cellFilter:"date:'dd/MM/yyyy HH:mm'",width:120,enableFiltering:!1,sort:{direction:m.DESC}},{name:"action",cellTemplate:'<div> <a class="btn btn-icon-only" data-ng-disabled="row.entity.waiting" data-ng-class="row.entity.waiting ? \'font-blue\' : \'font-green\'" data-ng-click="grid.appScope.openRoom(row.entity.id, row.entity.subject, row.entity.waiting)"><i class="fa" data-ng-class="row.entity.waiting ? \'fa-repeat\' : \'fa-envelope\' " aria-hidden="true"></i></a> <a class="btn btn-icon-only font-red" data-ng-show="grid.appScope.isAdmin && !row.entity.waiting" data-ng-click="grid.appScope.deleteItem(row.entity.id, row.entity.id)"><i class="fa fa-trash" aria-hidden="true"></i></a> </div>',enableSorting:!1,cellClass:"ui-grid-vcenter",width:70,enableFiltering:!1,enableColumnMenu:!1}],data:[],onRegisterApi:function(b){a.gridApi=b,a.gridApi.selection&&(a.gridApi.selection.on.rowSelectionChanged(a,function(b){b.isSelected?a.id.push(a.gridApi.grid.options.primaryKey?b.entity[a.gridApi.grid.options.primaryKey]:b.entity.id):_.pull(a.id,a.gridApi.grid.options.primaryKey?b.entity[a.gridApi.grid.options.primaryKey]:b.entity.id)}),a.gridApi.selection.on.rowSelectionChangedBatch(a,function(b){b[0].isSelected?a.id=_.union(a.id,_.map(b,a.gridApi.grid.options.primaryKey?"entity."+a.gridApi.grid.options.primaryKey:"entity.id")):_.map(b,a.gridApi.grid.options.primaryKey?"entity."+a.gridApi.grid.options.primaryKey:"entity.id").forEach(function(b){_.pull(a.id,b)})}))}},a.getPage()},a.onChanged=function(){q.set("mailTags",a.query.tags),a.getPage()},a.tagItems=function(){return c.open({animation:!0,templateUrl:"app/channels/mail/inbox/view/view.tags.modal.html",controller:"MailInboxViewModalTagCtrl",resolve:{id:function(){return a.id}}}).result.then(function(){a.gridApi.selection.clearSelectedRows(),a.id=[]})},a.disposeItems=function(){return c.open({animation:!0,templateUrl:"app/channels/mail/inbox/status/status.modal.html",controller:"MailInboxStatusModalCtrl",resolve:{status:function(){return null},accountId:function(){return e.id}}}).result.then(function(b){return l.patch({id:a.id},b).$promise.then(function(){a.gridApi.selection.clearSelectedRows(),a.id=[]})["catch"](function(a){p.error(a)})})},a.deleteItem=o.confirm["delete"](function(b){var c={id:b};return l.remove(c).$promise.then(function(){a.getPage(),p.show(d.instant("MESSAGE_WELL_DONE")+"!","success"),a.gridApi.selection.clearSelectedRows(),a.id=[]})["catch"](function(a){p.error(a)})}),a.deleteItems=o.confirm["delete"](function(){var b={ids:a.id};return l["delete"](b).$promise.then(function(){a.getPage(),p.show(d.instant("MESSAGE_WELL_DONE")+"!","success"),a.gridApi.selection.clearSelectedRows(),a.id=[]})["catch"](function(a){p.error(a)})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.mail.inbox.view.account.list",{url:"/list",templateUrl:"app/channels/mail/inbox/view/account/list/list.html",controller:"MailInboxViewAccountListCtrl",data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:9}}})}]),angular.module("xCallyShuttleApp").controller("MailInboxViewModalAgentCtrl",["$scope","$uibModalInstance","$translate","$stateParams","Agent","Auth","MailRoom","xAlert","roomId",function(a,b,c,d,e,f,g,h,i){var j=[];a.initModal=function(){return a.agents=[],a.item={agents:[]},e.get().$promise.then(function(b){for(var c=0;c<b.rows.length;c++)a.agents.push(b.rows[c]);return g.query({id:i,controller:"agents"}).$promise}).then(function(b){for(var c=0;c<b.length;c++)f.isAgent()||a.item.agents.push(b[c]),j.push(b[c].id)})["catch"](function(a){console.error(a)})},a.ok=function(){return j=f.isAgent()?_.union(j,a.item.agents):angular.copy(a.item.agents),g.update({id:i,controller:"agents",agents:j}).$promise.then(function(){h.show(c.instant("MESSAGE_WELL_DONE"),"success"),b.close()})["catch"](function(a){console.error(a)})},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("MailInboxViewCtrl",["$scope","$timeout","$location","localStorageService","MailAccount",function(a,b,c,d,e){a.hideAccounts=!1,a.initView=function(){return e.get().$promise.then(function(b){var e=null;if(a.mailAccounts=b.rows,a.mailAccounts.length){var f,g=d.get("mailAccountId");f=g&&_.find(a.mailAccounts,{id:Number(g)})?g:a.mailAccounts[0].id,e="/channels/mail/inbox/view/account/"+f+"/list"}e&&c.path(e)})["catch"](function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.mail.inbox.view",{url:"/view",templateUrl:"app/channels/mail/inbox/view/view.html",controller:"MailInboxViewCtrl",reload:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/inbox.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("MailInboxViewModalTagCtrl",["$scope","$uibModalInstance","$translate","$stateParams","Tag","MailRoom","xAlert","id",function(a,b,c,d,e,f,g,h){a.initModal=function(){return a.tags=[],a.item={tags:[]},a.modal={dismissable:!0,title:"APPLICATION_MESSAGE_SEND_RETRY",text:"MESSAGE_MESSAGE_SEND_RETRY",buttons:[{"class":"btn-success",text:"APPLICATION_TAG",click:function(){var d={status:!0};return f.patch({id:h},{tags:a.item.tags}).$promise["catch"](function(){d.status=!1,g.show(c.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})["finally"](function(){b.close(d)})}},{"class":"default",text:"APPLICATION_CANCEL",click:function(a){b.dismiss(a)}}]},e.get().$promise.then(function(b){a.tags=_.map(b.rows,"name")})["catch"](function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").controller("MailInboxViewModalTemplateCtrl",["$scope","$uibModalInstance","Template",function(a,b,c){a.initModal=function(){return a.item={},c.get().$promise.then(function(b){a.templates=b.rows})["catch"](function(a){console.error(a)})},a.ok=function(){b.close(a.item)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.mail",{url:"/mail",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:9}}})}]),angular.module("xCallyShuttleApp").factory("MailReport",["$resource",function(a){return a("/api/report/mails/:id/:controller1/:controller2",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("MailRoom",["$resource",function(a){return a("/api/mail/rooms/:id/:controller/:controller2",{id:"@id",controller:"@controller"},{update:{method:"PUT"},patch:{method:"PATCH"}})}]),angular.module("xCallyShuttleApp").factory("MailAttachment",["$resource",function(a){return a("/api/mail/attachments/:id/:controller",{id:"@id"})}]),angular.module("xCallyShuttleApp").factory("MailMessage",["$resource",function(a){return a("/api/mail/messages/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("MailQueueListCtrl",["$scope","MailQueue","gridOptions","$uibModal","Auth",function(a,b,c,d,e){a.initView=function(){a.Auth=e;var d={exporterCsvFilename:"voice_queues.csv",columnDefs:[{name:"name"},{name:"description"},{name:"timeout"},{name:"strategy"},{name:"action",width:100,buttons:[{"class":"blue-hoki",href:"/channels/mail/queues/view/{{row.entity.id}}/settings",name:"settings"},{"class":"green-meadow",href:"/channels/mail/queues/view/{{row.entity.id}}/agents",name:"agents",hide:"user"===e.getCurrentUser().role},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=c.gridOptions(b,d,a)},a.createItem=function(){var b=d.open({animation:!0,templateUrl:"app/channels/mail/queue/list/list.create.modal.html",controller:"MailQueueListCreateCtrl",size:"lg"});b.result.then(function(){a.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("MailQueueListCreateCtrl",["$scope","$uibModalInstance","$translate","xAlert","MailQueue","Team","strategies",function(a,b,c,d,e,f,g){a.form={},a.strategies=g,a.item={penalty:0,agents:[]},a.getTeams=function(){return f.get({controller:"associations"}).$promise.then(function(b){a.teams=b.rows}).then(function(){ComponentsDropdowns.bindQueue(a.teams,[],function(){return{select:function(b){a.item.agents=_.union(a.item.agents,b)},deselect:function(b){a.item.agents=_.difference(a.item.agents,b)}}})})["catch"](function(a){console.error(a)})},a.save=function(){return e.save(a.item).$promise.then(function(a){b.close(a)})["catch"](function(a){d.error(a)})},a.cancel=function(){b.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.mail.queues.list",{url:"/list",templateUrl:"app/channels/mail/queue/list/list.html",controller:"MailQueueListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").factory("MailQueue",["$resource",function(a){return a("/api/mail/queues/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.mail.queues",{url:"/queues",template:"<div ui-view></div>","abstract":!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/scripts/components-dropdowns.js"]})}]},data:{permissions:{only:["admin","user"],redirectTo:"landing",id:35}}})}]),angular.module("xCallyShuttleApp").controller("MailQueueViewCtrl",["$scope","$http","$translate","$stateParams","xAlert","Team","MailQueue","Auth","strategies",function(a,b,c,d,e,f,g,h,i){a.Auth=h,a.strategies=i;var j=function(){return{select:function(b){return g.save({id:a.queue.id,controller:"agents"},{agents:b,penalty:a.queue.penalty}).$promise.then(function(){a.getTeams()})["catch"](function(a){console.error(a)})},deselect:function(b){return g["delete"]({id:a.queue.id,controller:"agents",agents:b}).$promise.then(function(){a.getTeams()})["catch"](function(a){console.error(a)})}}};a.getQueue=function(){return g.get({id:d.id}).$promise.then(function(b){b.penalty=0,a.queue=b})["catch"](function(a){console.error(a)})},a.updateMailQueue=function(){return g.update({id:d.id},{name:a.queue.name,description:a.queue.description,timeout:a.queue.timeout,strategy:a.queue.strategy}).$promise.then(function(){e.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){e.error(a)})},a.getTeams=function(){return f.get({controller:"associations"}).$promise.then(function(b){return a.teams=b.rows,g.get({id:d.id,controller:"agents"}).$promise}).then(function(b){ComponentsDropdowns.bindMailQueue(a.teams,_.map(b.rows,function(a){return{id:a.id,penalty:a.UserHasMailQueue.penalty}}),j)})["catch"](function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.mail.queues.view",{url:"/view/:id",templateUrl:"app/channels/mail/queue/view/view.html",controller:"MailQueueViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.channels.mail.queues.view.settings",{url:"/settings",templateUrl:"app/channels/mail/queue/view/view.settings.html"}).state("main.channels.mail.queues.view.agents",{url:"/agents",templateUrl:"app/channels/mail/queue/view/view.agents.html",cache:!1,serie:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.mail.realtime",{url:"/realtime",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:37}}})}]),angular.module("xCallyShuttleApp").controller("MailRealtimeViewAgentCtrl",["$scope","$log","$uibModal","$translate","socket","xAlert","Agent","Pause","Action","MailQueue","usSpinnerService","$q","uiGridConstants","Auth","$timeout","User",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){function q(){return k.spin("grid-spinner"),g.get(w).$promise.then(function(b){a.gridOptions.totalItems=b.count,a.gridOptions.data=[],b.rows.forEach(function(a){s(a)})})["catch"](function(a){f.error(a)})["finally"](function(){k.stop("grid-spinner")})}function r(){e.socket.on("agent:save",function(b){b=b.newValues||b;var c=_.find(a.gridOptions.data,{agentId:b.id,isAgent:!0});c&&(c.online=_.has(b,"online")?b.online:c.online,c.lastLoginAt=_.has(b,"lastLoginAt")?b.lastLoginAt:c.lastLoginAt,c.pause=_.has(b,"mailPause")?b.mailPause:c.mailPause,c.pauseType=_.has(b,"pauseType")?b.pauseType:c.pauseType,c.lastPauseAt=_.has(b,"lastPauseAt")?b.lastPauseAt:c.lastPauseAt,c.ipaddr=_.has(b,"ipaddr")?b.ipaddr:c.ipaddr,c.port=_.has(b,"port")?b.port:c.port,c.fullcontact=_.has(b,"fullcontact")?b.fullcontact:c.fullcontact,c.useragent=_.has(b,"useragent")?b.useragent:c.useragent,c.lastms=_.has(b,"lastms")?b.lastms:c.lastms,c.internal=_.has(b,"internal")?b.internal:c.internal,c.fullname=b.hasOwnProperty("fullname")?b.fullname:c.fullname,_.map(a.gridOptions.data,function(a){a.isAgent||a.agentId!==b.id||(a.online=_.has(b,"online")?b.online:a.online)}))}),e.socket.on("agent:remove",function(b){_.remove(a.gridOptions.data,{agentId:b.id})}),e.socket.on("user_has_mail_queue:save",function(b){var c=_.includes(_.map(a.pMailQueues,"id"),b.MailQueueId)||n.isAdmin();if(c){var d=_.find(a.gridOptions.data,{agentId:Number(b.UserId),isAgent:!0});if(d){var e=a.gridOptions.data.indexOf(d);a.gridOptions.data.splice(e+1,0,{isAgent:!1,agentId:Number(b.UserId),queue:b.queue,queueId:b.MailQueueId,agent:b.membername,online:d.online})}}}),e.socket.on("user_has_mail_queue:remove",function(b){_.remove(a.gridOptions.data,{agentId:b.UserId,queueId:b.MailQueueId});var c=_.filter(a.gridOptions.data,{agentId:b.UserId});c&&c.length<=1&&!n.isAdmin()&&_.remove(a.gridOptions.data,{agentId:b.UserId})})}function s(b){a.gridOptions.data.push({isAgent:!0,agentId:b.id,agent:b.name,online:b.online,lastLoginAt:b.lastLoginAt,lastPauseAt:b.lastPauseAt,pause:b.mailPause,pauseType:b.pauseType,ipaddr:b.ipaddr,port:b.port,fullcontact:b.fullcontact,useragent:b.useragent,lastms:b.lastms,internal:b.internal,$$treeLevel:0,fullname:b.fullname}),b.MailQueues&&b.MailQueues.forEach(function(c){a.gridOptions.data.push({isAgent:!1,agentId:b.id,queue:c.name,queueId:c.id,agent:b.name,online:b.online})})}function t(){return h.get().$promise.then(function(b){a.pauses=b.rows,e.syncUpdates("pause",a.pauses)})["catch"](function(a){f.error(a)})}function u(){return j.get().$promise.then(function(b){a.mailQueues=b.rows,e.syncUpdates("mail_queue",a.mailQueues)})["catch"](function(a){f.error(a)})}function v(){return p.query({id:a.user.id,controller:"allowed",controller2:"mail",controller3:"queues"}).$promise.then(function(b){a.pMailQueues=b})["catch"](function(a){f.error(a)})}a.mailQueues=[];var w={controller:"realtime",controller1:"mail",offset:0,limit:10};a.moment=moment,a.initAgents=function(){a.user=n.getCurrentUser(),a.gridOptions={enableGridMenu:!0,headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,showGridFooter:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,useExternalPagination:!0,useExternalSorting:!0,useExternalFiltering:!0,multiSelect:!0,showTreeExpandNoChildren:!0,columnDefs:[{name:"name",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.isAgent">{{row.entity.agent}} <{{row.entity.internal}}></div>'},{name:"fullname",displayName:"APPLICATION_FULLNAME",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.isAgent">{{row.entity.fullname}}</div>'},{name:"online",displayName:"APPLICATION_ONLINE",width:150,headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.online != null && row.entity.isAgent"><i class="fa" data-ng-class="{\'font-green\':row.entity.online, \'font-red\':!row.entity.online,\'fa-user\':row.entity.online,\'fa-user-times\':!row.entity.online}"></i> <i data-ng-if="row.entity.online" class="fa fa-sign-out font-red pointer-cursor" title="logout" data-ng-click="grid.appScope.agentLogout(row.entity.agent,row.entity.agentId)"></i> <span data-ng-if="row.entity.online && grid.appScope.showTimers" class="left-margin"><css-timer start-time="row.entity.lastLoginAt"></css-timer></span></div>',filter:{type:m.filter.SELECT,selectOptions:[{value:"true",label:"ONLINE"},{value:"false",label:"OFFLINE"}]}},{name:"mailPause",displayName:"APPLICATION_PAUSE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.pause != null && row.entity.online" class="ui-grid-vcenter"><i data-ng-if="row.entity.pause" data-ng-click="grid.appScope.pause(row.entity,\'unpause\')" class="fa fa-play font-green pointer-cursor left-margin" title="{{\'APPLICATION_RESUME\' | translate}}"></i><i class="fa fa-pause font-yellow pointer-cursor" data-ng-click="grid.appScope.pause(row.entity,\'pause\',\'DEFAULT PAUSE\')" title="{{\'APPLICATION_DEFAULT_PAUSE\' | translate}}"></i><select data-ng-if="grid.appScope.pauses.length" class="pause-select pointer-cursor" data-ng-model="grid.appScope.pauseType" data-ng-change="grid.appScope.pause(row.entity,\'pause\',grid.appScope.pauseType)"><option class="pointer-cursor" data-ng-repeat="pause in grid.appScope.pauses">{{pause.name}}</option></select> <span data-ng-if="row.entity.pause">({{row.entity.pauseType}})</span><span data-ng-if="row.entity.pause && grid.appScope.showTimers" class="left-margin"><css-timer start-time="row.entity.lastPauseAt"></css-timer></span></div>',filter:{type:m.filter.SELECT,selectOptions:[{value:"true",label:"PAUSED"},{value:"false",label:"NOT PAUSED"}]},enableSorting:!1,enableColumnMenu:!1},{name:"queue",displayName:"APPLICATION_QUEUE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"action",displayName:"",width:170,cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><button data-ng-if="row.entity.queueId" class="btn btn-xs red-sunglo" data-ng-click="grid.appScope.leaveQueue(row.entity.agentId,row.entity.queueId)"><i class="icon-ban"></i> {{\'APPLICATION_LEAVE\' | translate}}</button><button data-ng-if="row.entity.isAgent && row.treeNode.children.length < grid.appScope.mailQueues.length" class="btn btn-xs blue-hoki" data-ng-click="grid.appScope.joinQueue(row.entity.agentId)"><i class="icon-plus"></i> {{\'APPLICATION_JOIN_QUEUE\' | translate}}</button><div>',enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1}],data:[],gridMenuTitleFilter:function(a){var b=l.defer();return b.resolve(d.instant(a)),b.promise},onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){x(a.gridApi.core.getVisibleRows(a.gridApi.grid).length)}),a.gridApi.treeBase.on.rowExpanded(a,function(b){x(a.gridApi.core.getVisibleRows(a.gridApi.grid).length+b.treeNode.children.length)}),a.gridApi.treeBase.on.rowCollapsed(a,function(b){x(a.gridApi.core.getVisibleRows(a.gridApi.grid).length-b.treeNode.children.length)}),a.gridApi.core.on.sortChanged(a,function(a,b){0===b.length?w.order=null:w.order=b[0].name+" "+b[0].sort.direction.toUpperCase(),q()}),a.gridApi.pagination.on.paginationChanged(a,function(a,b){w.offset=(a-1)*b,w.limit=b,q()}),a.gridApi.core.on.filterChanged(a,function(){var a=this.grid;a.columns.forEach(function(a){a.filters[0].term?w[a.name]=a.filters[0].term:delete w[a.name]}),q()})}},q(),t(),u(),v(),o(function(){r()})};var x=function(a){var b=a?30*a+130:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",b+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*a+"px")};a.$on("$destroy",function(){e.unsyncUpdates("agent"),e.unsyncUpdates("user_has_mail_queue")}),a.pause=function(b,c,e){return e&&(a.pauseType=null),i.save({name:c,agent:b.agentId,data2:b.agent,type:e||"DEFAULT PAUSE",data4:e||"DEFAULT PAUSE",channel:"mail"}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})},a.joinQueue=function(e){var g=c.open({animation:!0,templateUrl:"app/channels/mail/realtime/view/agent/queue.modal.add.html",controller:"MailRealtimeViewAgentQueueModalCtrl",resolve:{queues:function(){return _.reject(a.mailQueues,function(b){return!!_.find(a.gridOptions.data,{queue:b.name,isAgent:!1,agentId:e})})}}});g.result.then(function(b){return i.save({name:"QueueAdd",agent:e,queues:_.filter(a.mailQueues,function(a){return _.includes(b.queues,a.id)}),channel:"mail",data1:e,data3:b.queues.join(","),data4:"mail"}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})},function(){b.info("Modal dismissed at: "+new Date)})},a.leaveQueue=function(a,b){return i.save({name:"QueueRemove",agent:a,queueId:b,channel:"mail",data1:a,data3:b,data4:"mail"}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})},a.showInfo=function(a){c.open({animation:!0,templateUrl:"app/channels/mail/realtime/view/agent/agent.modal.info.html",controller:"MailRealtimeViewAgentInfoModalCtrl",resolve:{agent:a}})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.mail.realtime.view.agents",{url:"/agents",templateUrl:"app/channels/mail/realtime/view/agent/agent.html",controller:"MailRealtimeViewAgentCtrl"})}]),angular.module("xCallyShuttleApp").controller("MailRealtimeViewAgentInfoModalCtrl",["$scope","$uibModalInstance","$http","agent",function(a,b,c,d){a.agent=d,a.close=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("MailRealtimeViewAgentQueueModalCtrl",["$scope","$uibModalInstance","$http","queues",function(a,b,c,d){a.queues=d,a.item={},a.save=function(){b.close(a.item)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("MailRealtimeViewApplicationCtrl",["$scope","$log","$uibModal","$translate","socket","xAlert","ReportMailSession","usSpinnerService","$q","uiGridConstants","$timeout",function(a,b,c,d,e,f,g,h,i,j,k){ +function l(){return h.spin("spinner-grid"),g.get({controller:"waiting",controller2:"applications"}).$promise.then(function(b){a.gridOptions.data=b.rows})["catch"](function(a){f.error(a)})["finally"](function(){m(),h.stop("spinner-grid")})}function m(){e.socket.on("report_mail_session:save",function(b){var c=_.find(a.gridOptions.data,{id:b.id});c?(_.merge(c,b),b.leaveAt&&k(function(){_.remove(a.gridOptions.data,{id:b.id})},1e4)):b.leaveAt||a.gridOptions.data.push(b)}),e.socket.on("report_mail_session:remove",function(b){_.remove(a.gridOptions.data,{id:b.id})})}a.moment=moment,a.initApplications=function(){a.gridOptions={headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,columnDefs:[{name:"uniqueid",displayName:"APPLICATION_UNIQUEID",headerCellFilter:"translate"},{name:"application",displayName:"APPLICATION_APPLICATION",headerCellFilter:"translate"},{name:"status",displayName:"APPLICATION_STATUS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span data-ng-if="!row.entity.leaveAt">{{\'APPLICATION_QUEUESTATUS_WAITING\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.complete">{{\'APPLICATION_QUEUESTATUS_COMPLETE\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.timeout">{{\'APPLICATION_TIMEOUT\' | translate}}</span> <span data-ng-if="!row.entity.leaveAt && grid.appScope.showTimers"><css-timer start-time="row.entity.updatedAt"></css-timer></span></div>',enableSorting:!1,enableColumnMenu:!1,enableFiltering:!1},{name:"membername",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.membername || ''}}</span></div>"},{name:"queuename",displayName:"APPLICATION_QUEUE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.queuename || ''}}</span></div>"}],data:[],gridMenuTitleFilter:function(a){var b=i.defer();return b.resolve(d.instant(a)),b.promise},onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){n(a.gridOptions.data.length)})}},l()};var n=function(a){var b=a?30*a+60:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",b+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*a+"px")};a.$on("$destroy",function(){e.unsyncUpdates("report_mail_session")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.mail.realtime.view.applications",{url:"/applications",templateUrl:"app/channels/mail/realtime/view/application/application.html",controller:"MailRealtimeViewApplicationCtrl"})}]),angular.module("xCallyShuttleApp").controller("MailRealtimeViewCtrl",["$scope","$state",function(a,b){a.agents=[{name:"Queues",link:"main.channels.mail.realtime.view.agents.queues"},{name:"Timeline",link:"main.channels.mail.realtime.view.agents.timeline"}],a.sessions=[{name:"Sessions",link:"main.channels.mail.realtime.view.sessions"}],a.tree={queues:[{name:"Queues",link:"main.channels.mail.realtime.view.agents.queues"},{name:"Timeline",link:"main.channels.mail.realtime.view.agents.timeline"}],sessions:[{name:"Sessions",link:"main.channels.mail.realtime.view.sessions"}]},a.timerSwitch={isActive:!0,size:"mini",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"primary"},a.showTimers=!1}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.mail.realtime.view",{url:"/view",templateUrl:"app/channels/mail/realtime/view/view.html",controller:"MailRealtimeViewCtrl"})}]),angular.module("xCallyShuttleApp").factory("ReportMailSession",["$resource",function(a){return a("/api/report/mail/sessions/:id/:controller/:controller2",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("OpenChannelAccount",["$resource",function(a){return a("/api/openchannel/accounts/:accountId/:controller/:id",{id:"@accountId"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.openchannel.accounts",{url:"/accounts",template:"<div ui-view></div>",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:46}}})}]),angular.module("xCallyShuttleApp").controller("OpenChannelAccountListCtrl",["$scope","OpenChannelAccount","gridOptions","$stateParams","xAlert","$translate",function(a,b,c,d,e,f){a.initView=function(){var e={exporterCsvFilename:"openchannel_accounts.csv",columnDefs:[{name:"id",displayName:"ID",cellClass:"text-center",width:75,enableSorting:!1,enableFiltering:!1},{name:"name"},{name:"description"},{name:"action",width:75,buttons:[{"class":"blue-hoki",href:"/channels/openchannel/accounts/view/{{row.entity.id}}/settings",name:"profile"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=c.gridOptions(b,e,a,{accountId:d.accountId})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.openchannel.accounts.list",{url:"/list",templateUrl:"app/channels/openchannel/account/list/list.html",controller:"OpenChannelAccountListCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.openchannel.accounts.view.actions",{url:"/actions",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").factory("OpenChannelApplication",["$resource",function(a){return a("/api/openchannel/applications/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("OpenChannelAccountViewActionListCtrl",["$scope","gridOptions","OpenChannelAccount","$http","$translate","$stateParams","xAlert",function(a,b,c,d,e,f,g){a.initActions=function(){var d={draggable:!0,exporterCsvFilename:"openchannel_applications.csv",enableSorting:!1,enableFiltering:!1,columnDefs:[{name:"app",cellClass:"text-center"},{name:"name",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span>{{row.entity.app == "queue" ? row.entity.OpenchannelQueue.name : row.entity.User.name}}</span></div>'},{name:"timeout",cellClass:"text-center"},{name:"interval",displayName:"APPLICATION_TIME_INTERVAL",cellClass:"text-center",cellTemplate:"<div><span>{{row.entity.Interval ? row.entity.Interval.name : row.entity.interval}}</span></div>"},{name:"action",width:125,buttons:[{"class":"blue-hoki",href:"/channels/openchannel/accounts/view/{{row.entity.OpenchannelAccountId}}/actions/view/{{row.entity.id}}",name:"profile"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.app, row.entity.id)"}]}]};a.gridOptions=b.gridOptions(c,d,a,{accountId:f.accountId,controller:"applications"})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.openchannel.accounts.view.actions.list",{url:"/list",templateUrl:"app/channels/openchannel/account/view/action/list/list.html",controller:"OpenChannelAccountViewActionListCtrl"})}]),angular.module("xCallyShuttleApp").controller("OpenChannelAccountViewActionViewCtrl",["$scope","$http","$stateParams","$translate","$location","xAlert","WizardHandler","socket","application","interval","Agent","Interval","OpenChannelQueue","OpenChannelAccount","OpenChannelApplication","Template","MailAccount","SmsAccount",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.initAction=function(){return a.$application=i.application,a.$stateParams=c,a.$interval=j.interval,a.forms={},a.apps=[{name:"Queue",value:"queue"},{name:"Agent",value:"agent"},{name:"SendMail",value:"sendMail"},{name:"SendSMS",value:"sendSms"}],o.get({id:c.actionId}).$promise.then(function(b){if(a.application=b,a.application.alwaysTime=!1,a.application.IntervalId)a.application.intType="list";else switch(a.application.interval){case"*,*,*,*":a.application.intType="always";break;default:a.application.intType="custom"}if("always"===a.application.intType||"custom"===a.application.intType){var c=a.application.interval.split(",");"*"===c[0]?a.application.alwaysTime=!0:(a.application.t_from=moment(new Date),a.application.t_to=moment(new Date),a.application.t_from.hour(c[0].split("-")[0].split(":")[0]),a.application.t_from.minute(c[0].split("-")[0].split(":")[1]),a.application.t_to.hour(c[0].split("-")[1].split(":")[0]),a.application.t_to.minute(c[0].split("-")[1].split(":")[1])),"*"===c[1]?(a.application.wd_from="always",a.application.wd_to="always"):(a.application.wd_from=c[1].split("-")[0],a.application.wd_to=c[1].split("-")[1]),"*"===c[2]?(a.application.md_from="always",a.application.md_to="always"):(a.application.md_from=c[2].split("-")[0],a.application.md_to=c[2].split("-")[1]),"*"===c[3]?(a.application.m_from="always",a.application.m_to="always"):(a.application.m_from=c[3].split("-")[0],a.application.m_to=c[3].split("-")[1])}a.$watch("application.t_from",function(b){a.application.t_from_hm=moment(b).format("HH:mm")}),a.$watch("application.t_to",function(b){a.application.t_to_hm=moment(b).format("HH:mm")})})["catch"](function(a){f.error(a)})},a.getQueues=function(){return m.get().$promise.then(function(b){a.queues=b.rows})["catch"](function(a){console.error(a)})},a.getSmsAccounts=function(){return r.get().$promise.then(function(b){a.smsAccounts=b.rows})["catch"](function(a){console.error(a)})},a.getAgents=function(){return k.get().$promise.then(function(b){a.agents=b.rows})["catch"](function(a){console.error(a)})},a.getIntervals=function(){return l.get().$promise.then(function(b){a.intervals=b.rows})["catch"](function(a){console.error(a)})},a.updateItem=function(){switch(a.application.intType){case"always":a.application.interval="*,*,*,*",a.application.IntervalId=null;break;case"list":var b=_.find(a.intervals,{id:a.application.IntervalId});a.application.interval=b?"":"*,*,*,*",a.application.IntervalId=b?a.application.IntervalId:null;break;case"custom":var g,h,i,j,k;g=a.application.t_from&&a.application.t_to&&!a.application.alwaysTime?moment(a.application.t_from).format("HH:mm")+"-"+moment(a.application.t_to).format("HH:mm"):"*",a.application.wd_from&&"always"!==a.application.wd_from?(h=a.application.wd_from,a.application.wd_to&&"always"!==a.application.wd_to&&(h+="-"+a.application.wd_to)):h="*",a.application.md_from&&"always"!==a.application.md_from?(i=a.application.md_from,a.application.md_to&&"always"!==a.application.md_to&&(i+="-"+a.application.md_to)):i="*",a.application.m_from&&"always"!==a.application.m_from?(j=a.application.m_from,a.application.m_to&&"always"!==a.application.m_to&&(j+="-"+a.application.m_to)):j="*",k=g+","+h+","+i+","+j,a.application.interval=k,a.application.IntervalId=null}return n.update({accountId:c.accountId,controller:"applications",id:c.actionId},a.application).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success"),e.path("/channels/openchannel/accounts/view/"+c.accountId+"/actions/list")})["catch"](function(a){f.error(a)})},a.getTemplates=function(){return p.get().$promise.then(function(b){a.templates=b.rows})["catch"](function(a){console.error(a)})},a.getMailAccounts=function(){return q.get().$promise.then(function(b){a.mailAccounts=b.rows})["catch"](function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.openchannel.accounts.view.actions.view",{url:"/view/:actionId",templateUrl:"app/channels/openchannel/account/view/action/view/view.html",controller:"OpenChannelAccountViewActionViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("OpenChannelAccountViewActionWizardCtrl",["$scope","$http","Agent","OpenChannelQueue","Interval","$stateParams","$translate","$location","xAlert","WizardHandler","socket","application","interval","OpenChannelApplication","OpenChannelAccount","Template","MailAccount","SmsAccount",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.initWizard=function(){a.apps=[{name:"Queue",value:"queue"},{name:"Agent",value:"agent"},{name:"SendMail",value:"sendMail"},{name:"SendSMS",value:"sendSms"}],a.$application=l.application,a.$stateParams=f,a.$interval=m.interval,a.forms={},a.application={alwaysTime:!0},a.$watch("application.t_from",function(b){a.application.t_from_hm=moment(b).format("HH:mm")}),a.$watch("application.t_to",function(b){a.application.t_to_hm=moment(b).format("HH:mm")})},a.getQueues=function(){return d.get().$promise.then(function(b){a.queues=b.rows})["catch"](function(a){console.error(a)})},a.getAgents=function(){return c.get().$promise.then(function(b){a.agents=b.rows})["catch"](function(a){console.error(a)})},a.getSmsAccounts=function(){return r.get().$promise.then(function(b){a.smsAccounts=b.rows})["catch"](function(a){console.error(a)})},a.getIntervals=function(){return e.get().$promise.then(function(b){a.intervals=b.rows})["catch"](function(a){console.error(a)})},a.createItem=function(){switch(a.application.intType){case"always":a.application.interval="*,*,*,*",a.application.IntervalId=null;break;case"list":var b=_.find(a.intervals,{id:a.application.IntervalId});a.application.interval=b?"":"*,*,*,*",a.application.IntervalId=b?a.application.IntervalId:null;break;case"custom":var c,d,e,j,k;c=a.application.t_from&&a.application.t_to&&!a.application.alwaysTime?moment(a.application.t_from).format("HH:mm")+"-"+moment(a.application.t_to).format("HH:mm"):"*",a.application.wd_from&&"always"!==a.application.wd_from?(d=a.application.wd_from,a.application.wd_to&&"always"!==a.application.wd_to&&(d+="-"+a.application.wd_to)):d="*",a.application.md_from&&"always"!==a.application.md_from?(e=a.application.md_from,a.application.md_to&&"always"!==a.application.md_to&&(e+="-"+a.application.md_to)):e="*",a.application.m_from&&"always"!==a.application.m_from?(j=a.application.m_from,a.application.m_to&&"always"!==a.application.m_to&&(j+="-"+a.application.m_to)):j="*",k=c+","+d+","+e+","+j,a.application.interval=k,a.application.IntervalId=null}return o.save({accountId:f.accountId,controller:"applications"},a.application).$promise.then(function(){i.show(g.instant("MESSAGE_WELL_DONE"),"success"),h.path("/channels/openchannel/accounts/view/"+f.accountId+"/actions/list")})["catch"](function(a){i.error(a)})},a.formValidation=function(a){return a},a.next=function(){j.wizard().next()},a.getMailAccounts=function(){return q.get().$promise.then(function(b){a.mailAccounts=b.rows})["catch"](function(a){console.error(a)})},a.getTemplates=function(){return p.get().$promise.then(function(b){a.templates=b.rows})["catch"](function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.openchannel.accounts.view.actions.wizard",{url:"/wizard",templateUrl:"app/channels/openchannel/account/view/action/wizard/wizard.html",controller:"OpenChannelAccountViewActionWizardCtrl"})}]),angular.module("xCallyShuttleApp").controller("OpenChannelAccountApiViewCtrl",["$scope","OpenChannelAccount","$http","$stateParams","clipboard","$translate","$location","xAlert",function(a,b,c,d,e,f,g,h){a.copyToClipboard=function(a){e.copyText(a),h.show(f.instant("MESSAGE_TEXT_COPIED_CLIPBOARD")+"!","success")},a.initView=function(){b.get({id:d.accountId}).$promise.then(function(b){a.account=b,a.receiveurl=a.account.remote+"/api/openchannel/accounts/"+a.account.id+"/receive"})["catch"](function(a){h.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.openchannel.accounts.view.api",{url:"/api",controller:"OpenChannelAccountApiViewCtrl",templateUrl:"app/channels/openchannel/account/view/api/view/view.html"})}]),angular.module("xCallyShuttleApp").factory("OpenChannelDisposition",["$resource",function(a){return a("/api/openchannel/dispositions/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("OpenChannelInboxViewModaDispositionAddCtrl",["$scope","$uibModalInstance","OpenChannelAccount","id",function(a,b,c,d){a.ok=function(){return c.save({accountId:d,controller:"dispositions"},{name:a.name}).$promise.then(function(a){b.close(a)})},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("OpenChannelAccountDispositionViewCtrl",["$scope","$stateParams","$uibModal","$translate","OpenChannelAccount","xAlert",function(a,b,c,d,e,f){a.initView=function(){return e.get({accountId:b.accountId,controller:"dispositions"}).$promise.then(function(b){a.dispositions=b.rows})["catch"](function(a){console.error(a),f.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.updateDisposition=function(a,c){return e.update({accountId:b.accountId,controller:"dispositions",id:a},{name:c}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE")+"!","success")})["catch"](function(a){console.error(a),f.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.deleteDisposition=function(c){return console.log("delete"),e.remove({accountId:b.accountId,controller:"dispositions",id:c}).$promise.then(function(){_.remove(a.dispositions,{id:c})})["catch"](function(a){console.error(a),f.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.addDisposition=function(){return c.open({animation:!0,templateUrl:"app/channels/openchannel/account/view/disposition/modal/add.modal.html",controller:"OpenChannelInboxViewModaDispositionAddCtrl",resolve:{id:function(){return b.accountId}}}).result.then(function(b){b&&a.dispositions.push(b)})["catch"](function(a){console.error(a),f.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.openchannel.accounts.view.dispositions",{url:"/dispositions",controller:"OpenChannelAccountDispositionViewCtrl",templateUrl:"app/channels/openchannel/account/view/disposition/view/view.html"})}]),angular.module("xCallyShuttleApp").controller("OpenChannelAccountHooksViewCtrl",["$scope","OpenChannelAccount","Pause","$http","$stateParams","$translate","$location","xAlert",function(a,b,c,d,e,f,g,h){a.account={},a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.CONST_TIMEOUT=3e4,a.initView=function(){a.types=[{value:"",name:"-- None --"},{name:"HTTP GET",value:"GET"},{name:"HTTP POST",value:"POST"}],c.get().$promise.then(function(b){a.pauses=b.rows})["catch"](function(a){h.error(a)}),b.get({id:e.accountId}).$promise.then(function(b){a.account=b,a.account.actions.length<1&&a.account.actions.push({action:"pause",enabled:!1,type:null})})["catch"](function(a){h.error(a)})},a.resetActionData=function(a){a.type=null},a.updateItem=function(){return console.log(a.account),b.update({id:e.accountId},a.account).$promise.then(function(){h.show(f.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){h.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.openchannel.accounts.view.hooks",{url:"/hooks",controller:"OpenChannelAccountHooksViewCtrl",templateUrl:"app/channels/openchannel/account/view/hooks/view/view.html"})}]),angular.module("xCallyShuttleApp").controller("OpenChannelAccountSettingViewCtrl",["$scope","OpenChannelAccount","$http","$stateParams","clipboard","$translate","$location","xAlert","List",function(a,b,c,d,e,f,g,h,i){a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.CONST_TIMEOUT=3e4,a.types=[{name:"HTTP GET",value:"GET"},{name:"HTTP POST",value:"POST"}],a.account={},a.initView=function(){i.get().$promise.then(function(b){a.lists=b.rows})["catch"](function(a){console.error(a)}),b.get({id:d.accountId}).$promise.then(function(b){a.account=b})["catch"](function(a){h.error(a)})},a.updateItem=function(){return b.update({id:d.accountId},a.account).$promise.then(function(){h.show(f.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){h.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.openchannel.accounts.view.settings",{url:"/settings",controller:"OpenChannelAccountSettingViewCtrl",templateUrl:"app/channels/openchannel/account/view/setting/view/view.html"})}]),angular.module("xCallyShuttleApp").controller("OpenChannelAccountViewCtrl",["$scope","OpenChannelAccount","$http","$stateParams","clipboard","$translate","$location","xAlert","List",function(a,b,c,d,e,f,g,h,i){a.initView=function(){return a.account={},b.get({id:d.accountId}).$promise.then(function(b){a.account=b})["catch"](function(a){h.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.openchannel.accounts.view",{url:"/view/:accountId",templateUrl:"app/channels/openchannel/account/view/view.html",controller:"OpenChannelAccountViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]})}]}})}]),angular.module("xCallyShuttleApp").controller("OpenChannelAccountWizardCtrl",["$scope","$http","$location","$translate","WizardHandler","xAlert","OpenChannelAccount",function(a,b,c,d,e,f,g){a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.initWizard=function(){a.forms={},a.item={},a.item.remote=c.protocol()+"://"+location.host},a.goNext=function(){e.wizard().next()},a.formValidation=function(a){return a},a.createItem=function(){return g.save(a.item).$promise.then(function(){c.path("/channels/openchannel/accounts/list")})["catch"](function(a){f.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.openchannel.accounts.wizard",{url:"/wizard",templateUrl:"app/channels/openchannel/account/wizard/wizard.html",controller:"OpenChannelAccountWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.openchannel.inbox",{url:"/inbox",template:"<div ui-view></div>",data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:48}}})}]),angular.module("xCallyShuttleApp").controller("OpenChannelInboxInfoModalCtrl",["$scope","$translate","$uibModalInstance","$stateParams","xAlert","data",function(a,b,c,d,e,f){a.data=null,a.initInfo=function(){f&&(a.data=_.isEmpty(JSON.parse(f))?null:JSON.parse(f))},a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").directive("message",["$rootScope","OpenChannelMessage","List","xAlert","$translate","$uibModal",function(a,b,c,d,e,f){return{restrict:"E",scope:{Message:"=message",accounttype:"=accounttype",listId:"="},templateUrl:"app/channels/openchannel/inbox/message/message.html",link:function(b){b.openContact=function(f,g){if(b.listId){if(!g)return;var h;switch(f){case"phone":h={phone:g};break;case"email":h={email:g};break;default:return}return c.save({listId:b.listId,controller:"contacts"},h).$promise.then(function(b){var c=_.find(a.$root.workspaces,{contactID:b.id});c?c.active=!0:a.$root.workspaces.push({active:!0,"class":"icon-user",contactID:b.id,name:b.phone,type:"contact"})})["catch"](function(a){console.error(a)})}d.show(e.instant("MESSAGE_NO_LIST_CONFIGURED"),"info")},b.info=function(a){f.open({animation:!0,templateUrl:"app/channels/openchannel/inbox/message/info.modal.html",controller:"OpenChannelInboxInfoModalCtrl",resolve:{data:function(){return a}}})}}}}]),angular.module("xCallyShuttleApp").directive("openchannelRoom",["OpenChannelReport","$cookieStore","$translate","$uibModal","$timeout","Tag","CannedAnswer","Auth","OpenChannelAccount","OpenChannelRoom","OpenChannelMessage","xAlert","usSpinnerService","socket","$stateParams","$rootScope",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){return{restrict:"E",scope:{workspace:"=",index:"=",submit:"&onSubmit"},templateUrl:"app/channels/openchannel/inbox/room/room.directive.html",link:function(a){a.modelOptions={debounce:{"default":500,blur:250},getterSetter:!0},a.panelLeft=null,a.panelRight="col-md-12",a.togglePanelLeft=function(){a.panelLeft?(a.panelLeft=null,a.panelRight="col-md-12"):(a.panelLeft="col-md-6",a.panelRight="col-md-6")},a.form={disabled:!1,from:"",to:a.workspace.data&&a.workspace.data.to?a.workspace.data.to:"",body:""},n.socket.on("openchannel_message:save",function(b){return a.workspace.id&&b.OpenchannelRoomId==a.workspace.id?k.get({id:b.id}).$promise.then(function(b){a.Room||(a.Room={OpenchannelMessages:[]});var c=_.findIndex(a.Room.OpenchannelMessages,{id:b.id});c>-1?_.merge(a.Room.OpenchannelMessages[c],b):a.Room.OpenchannelMessages.unshift(b),a.panelLeft="col-md-6",a.panelRight="col-md-6"})["catch"](function(a){console.error(a)}):void 0}),n.socket.on("openchannel_message:update",function(b){if(a.Room&&b.OpenchannelRoomId==a.workspace.id){var c=_.find(a.Room.OpenchannelMessages,{id:b.id});c&&_.merge(c,b)}}),n.socket.on("openchannel_room:save",function(b){a.Room&&b.id==a.workspace.id&&(a.Room.status=b.status,a.Room.disposition=b.disposition)}),a.closeRoom=function(b){return d.open({animation:!0,templateUrl:"app/channels/openchannel/inbox/view/view.status.modal.html",controller:"OpenChannelInboxViewModalStatusCtrl",resolve:{closed:function(){return"CLOSED"===a.Room.status},accountId:function(){return a.Room.OpenchannelAccountId}}}).result.then(function(a){var c={id:b,status:"CLOSED"};return a.disposition&&(c.disposition=a.disposition),j.update(c).$promise["catch"](function(a){l.error(a)})})},a.openRoom=function(a,b){var c=_.find(p.workspaces,{id:a,type:"openchannelRoom"});c?c.active=!0:p.workspaces.push({id:a,name:b,type:"openchannelRoom","class":"icon-globe",active:!0})},f.get().$promise.then(function(b){a.tags=_.map(b.rows,"name")})["catch"](function(a){console.error(a)}),i.get().$promise.then(function(b){a.Accounts=b.rows})["catch"](function(a){console.error(a)}),a.workspace.id?(a.panelLeft="col-md-6",a.panelRight="col-md-6",j.get({id:a.workspace.id}).$promise.then(function(b){a.Room=b,a.form.from=a.Room.OpenchannelAccount.name,a.form.to=a.Room.contact,a.form.tags=a.Room.tags})["catch"](function(a){console.error(a)})["finally"](function(){m.stop("spinner-grid"),a.form.disabled=!1})):m.stop("spinner-grid"),a.onSelect=function(){a.form.body+=a.modelOptions.selectedAnswer,delete a.modelOptions.selectedAnswer},a.onSelectAnswer=function(b){a.form.body+=b,a.selectedAnswer=""},a.getAnswers=function(a){return g.get({key:a}).$promise.then(function(a){return _.map(a.rows,"value")})},a.loadAgents=function(){d.open({animation:!0,templateUrl:"app/channels/openchannel/inbox/view/view.agents.modal.html",controller:"OpenChannelInboxViewModalAgentCtrl",resolve:{roomId:function(){return a.workspace.id}}})},a.onChanged=function(){return j.patch({id:a.workspace.id},{tags:a.form.tags}).$promise["catch"](function(a){console.error(a)})},a.sendMessage=function(){m.spin("spinner-grid");var b=_.find(a.Accounts,{name:a.form.from}).id;if(b){var d={from:a.form.from,to:a.form.to,body:a.form.body,OpenchannelRoomId:a.Room?a.Room.id:null};return i.save({accountId:b,controller:"send"},d).$promise.then(function(b){return l.show(c.instant("MESSAGE_WELL_DONE"),"success"),a.Room?a.Room:j.get({id:"messages",controller:b.id}).$promise}).then(function(b){b&&(a.form.body="",a.workspace.id=b.id,a.workspace.name=b.contact,a.Room=b,a.panelLeft="col-md-6",a.panelRight="col-md-6")})["catch"](function(a){l.error(a)})["finally"](function(){m.stop("spinner-grid")})}}}}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.openchannel.inbox.view.account",{url:"/account/:id",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("OpenChannelInboxViewAccountListCtrl",["$scope","$rootScope","$uibModal","$translate","$stateParams","$state","Tag","usSpinnerService","socket","OpenChannelAccount","OpenChannelRoom","gridOptions","uiGridConstants","Auth","Modal","xAlert","uibButtonConfig","localStorageService",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){a.loadAgents=function(a){c.open({animation:!0,templateUrl:"app/channels/openchannel/inbox/view/view.agents.modal.html",controller:"OpenChannelInboxViewModalAgentCtrl",resolve:{roomId:a}})},a.initView=function(){q.activeClass="green-haze",a.id=[],a.isAdmin=n.isAdmin(),a.isAgent=n.isAgent(),a.uncheckable=!1,a.query={status:r.get("openchannelStatus")?r.get("openchannelStatus"):"NEW",tags:r.get("openchannelTags")?r.get("openchannelTags"):[]},a.$watch("query.status",function(b,c){b!==c&&(r.set("openchannelStatus",a.query.status),a.getPage())},!0),g.get().$promise.then(function(b){a.tags=_.map(b.rows,"name")})["catch"](function(a){console.error(a)}),a.gridOptions={exporterCsvFilename:"openchannel_rooms.csv",enableRowHeaderSelection:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,enableFiltering:!0,enableSorting:!0,enableGridMenu:!1,flatEntityAccess:!0,showGridFooter:!0,fastWatch:!0,enableSelectAll:!0,enableHorizontalScrollbar:0,enableVerticalScrollbar:0,columnDefs:[{name:"lastEvent",displayName:"",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div> <span data-ng-class=\"{'icon-arrow-up font-green': row.entity.lastEvent === 'SENT', 'icon-arrow-up font-yellow': row.entity.lastEvent === 'SENDING', 'icon-arrow-down font-green': row.entity.lastEvent === 'RECEIVED', 'icon-close font-red': row.entity.lastEvent === 'FAILED', 'icon-question': !row.entity.lastEvent}\"> </span> </div>",width:30,enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"tags",displayName:"",headerCellTemplate:'<i class="icon-tag" style="margin-top: 8px; margin-left: 8px;"></i>',cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div><i data-ng-class=\"row.entity.tags.length ? 'icon-tag' : ''\" title=\"{{row.entity.tags}}\"></i></div>",width:30,enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"id",displayName:"Id",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div><span>#{{row.entity.id}}</span></div>",width:75,enableSorting:!1,enableFiltering:!0,enableColumnMenu:!1},{name:"contact",cellClass:"text-center"},{name:"disposition",cellClass:"text-center"},{name:"createdAt",cellFilter:"date:'dd/MM/yyyy HH:mm'",width:120,enableFiltering:!1},{name:"updatedAt",cellFilter:"date:'dd/MM/yyyy HH:mm'",width:120,enableFiltering:!1,sort:{direction:m.DESC}},{name:"action",cellTemplate:'<div> <a class="btn btn-icon-only font-green" data-ng-click="grid.appScope.openRoom(row.entity.id, row.entity.contact)"><i class="glyphicon glyphicon-comment" aria-hidden="true"></i></a> <a class="btn btn-icon-only font-red" data-ng-show="grid.appScope.isAdmin" data-ng-click="grid.appScope.deleteItem(row.entity.id,row.entity.id)"><i class="fa fa-trash" aria-hidden="true"></i> </div>',enableSorting:!1,cellClass:"ui-grid-vcenter",width:90,enableFiltering:!1,enableColumnMenu:!1}],data:[],onRegisterApi:function(b){a.gridApi=b,a.gridApi.selection&&(a.gridApi.selection.on.rowSelectionChanged(a,function(b){b.isSelected?a.id.push(a.gridApi.grid.options.primaryKey?b.entity[a.gridApi.grid.options.primaryKey]:b.entity.id):_.pull(a.id,a.gridApi.grid.options.primaryKey?b.entity[a.gridApi.grid.options.primaryKey]:b.entity.id)}),a.gridApi.selection.on.rowSelectionChangedBatch(a,function(b){b[0].isSelected?a.id=_.union(a.id,_.map(b,a.gridApi.grid.options.primaryKey?"entity."+a.gridApi.grid.options.primaryKey:"entity.id")):_.map(b,a.gridApi.grid.options.primaryKey?"entity."+a.gridApi.grid.options.primaryKey:"entity.id").forEach(function(b){ +_.pull(a.id,b)})}))}},i.socket.on("openchannel_room:remove",function(b){_.remove(a.workspaces,{id:b.id,type:"openchannelRoom"}),_.remove(a.gridOptions.data,{id:b.id})}),a.getPage(a.query)},a.onChanged=function(){a.getPage(a.query)},a.tagItems=function(){return c.open({animation:!0,templateUrl:"app/channels/openchannel/inbox/view/view.tags.modal.html",controller:"OpenChannelInboxViewModalTagCtrl",resolve:{id:function(){return a.id}}}).result.then(function(){a.gridApi.selection.clearSelectedRows(),a.id=[],a.getPage()})},a.openRoom=function(b,c){var d=_.find(a.workspaces,{id:b,type:"openchannelRoom"});return d?d.active=!0:a.workspaces.push({id:b,name:c,type:"openchannelRoom","class":"icon-globe",active:!0}),b&&"agent"===n.getCurrentUser().role&&"PENDING"!==a.query.status&&"CLOSED"!==a.query.status?k.patch({id:b},{status:"OPEN",openReason:"agent"}).$promise["catch"](function(a){console.error(a)}):void 0},a.getPage=function(b){h.spin("spinner-grid");var c={accountId:e.id,controller:"rooms"};return b&&_.merge(c,b),a.query&&_.merge(c,a.query),j.query(c).$promise.then(function(b){r.set("openchannelAccountId",e.id),a.gridOptions.data=b,i.socket.on("openchannel_room:save",function(b){if(b.OpenchannelAccountId==e.id){var c=_.find(a.gridOptions.data,{id:b.id});c?c.status!==b.status?_.remove(a.gridOptions.data,{id:b.id}):_.merge(c,b):a.query.status===b.status&&a.gridOptions.data.push(b)}}),i.socket.on("openchannel_room:remove",function(b){_.remove(a.gridOptions.data,{id:b.id})})})["catch"](function(a){p.error(a)})["finally"](function(){h.stop("spinner-grid")})},a.deleteItem=o.confirm["delete"](function(b){var c={id:b};return console.log(c),k["delete"](c).$promise.then(function(){a.getPage(),p.show(d.instant("MESSAGE_WELL_DONE")+"!","success"),a.gridApi.selection.clearSelectedRows(),a.id=[]})["catch"](function(a){p.error(a)})}),a.deleteItems=o.confirm["delete"](function(){var b={ids:a.id};return k["delete"](b).$promise.then(function(){a.getPage(),p.show(d.instant("MESSAGE_WELL_DONE")+"!","success"),a.gridApi.selection.clearSelectedRows(),a.id=[]})["catch"](function(a){p.error(a)})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.openchannel.inbox.view.account.list",{url:"/list",templateUrl:"app/channels/openchannel/inbox/view/account/list/list.html",controller:"OpenChannelInboxViewAccountListCtrl"})}]),angular.module("xCallyShuttleApp").controller("OpenChannelInboxViewModalAgentCtrl",["$scope","$uibModalInstance","$translate","$stateParams","Agent","OpenChannelRoom","xAlert","roomId",function(a,b,c,d,e,f,g,h){a.initModal=function(){a.agents=[],a.item={agents:[]},e.get().$promise.then(function(b){b.rows.forEach(function(b){a.agents.push(b)})})["catch"](function(a){console.error(a)}),f.query({id:h,controller:"agents"}).$promise.then(function(b){b.forEach(function(b){a.agents.push(b),a.item.agents.push(b.id)})})["catch"](function(a){console.error(a)}),a.modal={dismissable:!0,title:"APPLICATION_MESSAGE_SEND_RETRY",text:"MESSAGE_MESSAGE_SEND_RETRY",buttons:[{classes:"btn btn-success",text:"APPLICATION_RETRY",click:function(a){b.close(a)}},{classes:"btn default",text:"APPLICATION_CANCEL",click:function(a){b.dismiss(a)}}]}},a.ok=function(){return f.update({id:h,controller:"agents",agents:a.item.agents}).$promise.then(function(){g.show(c.instant("MESSAGE_WELL_DONE"),"success"),b.close()})["catch"](function(a){console.error(a)})},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("OpenChannelInboxViewCtrl",["$scope","$location","$stateParams","$translate","$uibModal","socket","Auth","xAlert","OpenChannelRoom","OpenChannelAccount","localStorageService",function(a,b,c,d,e,f,g,h,i,j,k){a.initView=function(){j.get().$promise.then(function(c){var d=null;if(a.openchannelAccounts=c.rows,a.openchannelAccounts.length){var e,f=k.get("openchannelAccountId");e=f&&_.find(a.openchannelAccounts,{id:Number(f)})?f:a.openchannelAccounts[0].id,d="/channels/openchannel/inbox/view/account/"+e+"/list"}d&&b.path(d)})["catch"](function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.openchannel.inbox.view",{url:"/view",templateUrl:"app/channels/openchannel/inbox/view/view.html",controller:"OpenChannelInboxViewCtrl",reload:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/inbox.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("OpenChannelInboxViewModalStatusCtrl",["$scope","$uibModalInstance","closed","OpenChannelAccount","accountId",function(a,b,c,d,e){a.modal={title:"APPLICATION_CONFIRM_CLOSE",text:"MESSAGE_ARE_YOU_SURE_YOU_WANT_TO_CLOSE"},a.initDisposition=function(){return d.get({accountId:e,controller:"dispositions"}).$promise.then(function(b){a.dispositions=b.rows})["catch"](function(a){console.error(a)})},a.item={},a.closed=c,a.ok=function(){b.close(a.item)},a.cancel=function(){b.dismiss()}}]),angular.module("xCallyShuttleApp").controller("OpenChannelInboxViewModalTagCtrl",["$scope","$uibModalInstance","$translate","$stateParams","Tag","OpenChannelRoom","xAlert","id",function(a,b,c,d,e,f,g,h){a.initModal=function(){return a.tags=[],a.item={tags:[]},a.modal={dismissable:!0,title:"APPLICATION_MESSAGE_SEND_RETRY",text:"MESSAGE_MESSAGE_SEND_RETRY",buttons:[{"class":"btn-success",text:"APPLICATION_TAG",click:function(){var d={status:!0};return f.patch({id:h},{tags:a.item.tags}).$promise.then(function(){g.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(){d.status=!1,g.show(c.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})["finally"](function(){b.close(d)})}},{"class":"default",text:"APPLICATION_CANCEL",click:function(a){b.dismiss(a)}}]},e.get().$promise.then(function(b){a.tags=_.map(b.rows,"name")})["catch"](function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.openchannel",{url:"/openchannel",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:20}}})}]),angular.module("xCallyShuttleApp").factory("OpenChannelReport",["$resource",function(a){return a("/api/report/openchannel/:id/:controller1/:controller2",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("OpenChannelRoom",["$resource",function(a){return a("/api/openchannel/rooms/:id/:controller",{id:"@id",controller:"@controller"},{update:{method:"PUT"},patch:{method:"PATCH"}})}]),angular.module("xCallyShuttleApp").factory("OpenChannelMessage",["$resource",function(a){return a("/api/openchannel/messages/:id/:controller",{id:"@id",controller:"@controller"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("OpenChannelQueueListCtrl",["$scope","OpenChannelQueue","gridOptions","$uibModal","xAlert","Auth",function(a,b,c,d,e,f){a.initView=function(){a.Auth=f;var d={exporterCsvFilename:"openchanel_queues.csv",columnDefs:[{name:"name"},{name:"description"},{name:"timeout"},{name:"strategy"},{name:"action",width:100,buttons:[{"class":"blue-hoki",href:"/channels/openchannel/queues/view/{{row.entity.id}}/settings",name:"settings"},{"class":"green-meadow",href:"/channels/openchannel/queues/view/{{row.entity.id}}/agents",name:"agents",hide:"user"===f.getCurrentUser().role},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=c.gridOptions(b,d,a)},a.createItem=function(){var b=d.open({animation:!0,templateUrl:"app/channels/openchannel/queue/list/list.create.modal.html",controller:"OpenChannelQueueListCreateCtrl",size:"lg"});b.result.then(function(b){console.log(b),a.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("OpenChannelQueueListCreateCtrl",["$scope","$uibModalInstance","$translate","xAlert","OpenChannelQueue","Team","strategies",function(a,b,c,d,e,f,g){a.form={},a.strategies=g,a.item={penalty:0,agents:[]},a.getTeams=function(){return f.get({controller:"associations"}).$promise.then(function(b){a.teams=b.rows}).then(function(){ComponentsDropdowns.bindQueue(a.teams,[],function(){return{select:function(b){a.item.agents=_.union(a.item.agents,b)},deselect:function(b){a.item.agents=_.difference(a.item.agents,b)}}})})["catch"](function(a){console.error(a)})},a.save=function(){return console.log(a.item),e.save(a.item).$promise.then(function(a){b.close(a)})["catch"](function(a){d.error(a)})},a.cancel=function(){b.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.openchannel.queues.list",{url:"/list",templateUrl:"app/channels/openchannel/queue/list/list.html",controller:"OpenChannelQueueListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").factory("OpenChannelQueue",["$resource",function(a){return a("/api/openchannel/queues/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.openchannel.queues",{url:"/queues",template:"<div ui-view></div>",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:47}}})}]),angular.module("xCallyShuttleApp").controller("OpenChannelQueueViewCtrl",["$scope","$http","Auth","$translate","$stateParams","xAlert","Team","OpenChannelQueue","strategies",function(a,b,c,d,e,f,g,h,i){a.strategies=i,a.Auth=c;var j=function(){return{select:function(b){return h.save({id:a.queue.id,controller:"agents"},{agents:b,penalty:a.queue.penalty}).$promise.then(function(b){console.log("sel",b),a.getTeams()})["catch"](function(a){console.error(a)})},deselect:function(b){return h["delete"]({id:a.queue.id,controller:"agents",agents:b}).$promise.then(function(b){console.log("desel",b),a.getTeams()})["catch"](function(a){console.error(a)})}}};a.getQueue=function(){return h.get({id:e.id}).$promise.then(function(b){b.penalty=0,a.queue=b})["catch"](function(a){console.error(a)})},a.updateQueue=function(){return h.update({id:e.id},{name:a.queue.name,description:a.queue.description,timeout:a.queue.timeout,strategy:a.queue.strategy}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})},a.getTeams=function(){return g.get({controller:"associations"}).$promise.then(function(b){return a.teams=b.rows,console.log(b.rows),h.get({id:e.id,controller:"agents"}).$promise}).then(function(b){console.log(b),ComponentsDropdowns.bindQueue(a.teams,_.map(b.rows,function(a){return{id:a.id,penalty:a.UserHasOpenchannelQueue.penalty}}),j)})["catch"](function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.openchannel.queues.view",{url:"/view/:id",templateUrl:"app/channels/openchannel/queue/view/view.html",controller:"OpenChannelQueueViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.channels.openchannel.queues.view.settings",{url:"/settings",templateUrl:"app/channels/openchannel/queue/view/view.settings.html"}).state("main.channels.openchannel.queues.view.agents",{url:"/agents",templateUrl:"app/channels/openchannel/queue/view/view.agents.html",cache:!1,serie:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.openchannel.realtime",{url:"/realtime",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:49}}})}]),angular.module("xCallyShuttleApp").controller("OpenChannelRealtimeViewAgentCtrl",["$scope","$log","$uibModal","$translate","socket","xAlert","Agent","Pause","Action","OpenChannelQueue","usSpinnerService","$q","uiGridConstants","$timeout","Auth","User",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){function q(){return k.spin("grid-spinner"),g.get(w).$promise.then(function(b){a.gridOptions.totalItems=b.count,a.gridOptions.data=[],b.rows.forEach(function(a){s(a)})})["catch"](function(a){f.error(a)})["finally"](function(){k.stop("grid-spinner")})}function r(){e.socket.on("agent:save",function(b){b=b.newValues||b;var c=_.find(a.gridOptions.data,{agentId:b.id,isAgent:!0});c&&(c.online=_.has(b,"online")?b.online:c.online,c.lastLoginAt=_.has(b,"lastLoginAt")?b.lastLoginAt:c.lastLoginAt,c.pause=_.has(b,"openchannelPause")?b.openchannelPause:c.openchannelPause,c.pauseType=_.has(b,"pauseType")?b.pauseType:c.pauseType,c.lastPauseAt=_.has(b,"lastPauseAt")?b.lastPauseAt:c.lastPauseAt,c.ipaddr=_.has(b,"ipaddr")?b.ipaddr:c.ipaddr,c.port=_.has(b,"port")?b.port:c.port,c.fullcontact=_.has(b,"fullcontact")?b.fullcontact:c.fullcontact,c.useragent=_.has(b,"useragent")?b.useragent:c.useragent,c.lastms=_.has(b,"lastms")?b.lastms:c.lastms,c.internal=_.has(b,"internal")?b.internal:c.internal,c.fullname=b.hasOwnProperty("fullname")?b.fullname:c.fullname,_.map(a.gridOptions.data,function(a){a.isAgent||a.agentId!==b.id||(a.online=_.has(b,"online")?b.online:a.online)}))}),e.socket.on("agent:remove",function(b){_.remove(a.gridOptions.data,{agentId:b.id})}),e.socket.on("user_has_openchannel_queue:save",function(b){var c=_.includes(_.map(a.pOpenchannelQueues,"id"),b.OpenchannelQueueId)||o.isAdmin();if(c){var d=_.find(a.gridOptions.data,{agentId:Number(b.UserId),isAgent:!0});if(d){var e=a.gridOptions.data.indexOf(d);a.gridOptions.data.splice(e+1,0,{isAgent:!1,agentId:Number(b.UserId),queue:b.queue,queueId:b.OpenchannelQueueId,agent:b.membername,online:d.online})}}}),e.socket.on("user_has_openchannel_queue:remove",function(b){_.remove(a.gridOptions.data,{agentId:b.UserId,queueId:b.OpenchannelQueueId});var c=_.filter(a.gridOptions.data,{agentId:b.UserId});c&&c.length<=1&&!o.isAdmin()&&_.remove(a.gridOptions.data,{agentId:b.UserId})})}function s(b){a.gridOptions.data.push({isAgent:!0,agentId:b.id,agent:b.name,online:b.online,lastLoginAt:b.lastLoginAt,lastPauseAt:b.lastPauseAt,pause:b.openchannelPause,pauseType:b.pauseType,ipaddr:b.ipaddr,port:b.port,fullcontact:b.fullcontact,useragent:b.useragent,lastms:b.lastms,internal:b.internal,$$treeLevel:0,fullname:b.fullname}),b.OpenchannelQueues&&b.OpenchannelQueues.forEach(function(c){a.gridOptions.data.push({isAgent:!1,agentId:b.id,queue:c.name,queueId:c.id,agent:b.name,online:b.online})})}function t(){return h.get().$promise.then(function(b){a.pauses=b.rows,e.syncUpdates("pause",a.pauses)})["catch"](function(a){f.error(a)})}function u(){return j.get().$promise.then(function(b){a.openchannelQueues=b.rows,e.syncUpdates("openchannel_queue",a.openchannelQueues)})["catch"](function(a){f.error(a)})}function v(){return p.query({id:a.user.id,controller:"allowed",controller2:"openchannel",controller3:"queues"}).$promise.then(function(b){a.pOpenchannelQueues=b})["catch"](function(a){f.error(a)})}a.openchannelQueues=[];var w={controller:"realtime",controller1:"openchannel",offset:0,limit:10};a.moment=moment,a.initAgents=function(){a.user=o.getCurrentUser(),a.gridOptions={enableGridMenu:!0,headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,showGridFooter:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,useExternalPagination:!0,useExternalSorting:!0,useExternalFiltering:!0,multiSelect:!0,showTreeExpandNoChildren:!0,columnDefs:[{name:"name",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.isAgent">{{row.entity.agent}} <{{row.entity.internal}}></div>'},{name:"fullname",displayName:"APPLICATION_FULLNAME",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.isAgent">{{row.entity.fullname}}</div>'},{name:"online",displayName:"APPLICATION_ONLINE",width:150,headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.online != null && row.entity.isAgent"><i class="fa" data-ng-class="{\'font-green\':row.entity.online, \'font-red\':!row.entity.online,\'fa-user\':row.entity.online,\'fa-user-times\':!row.entity.online}"></i> <i data-ng-if="row.entity.online" class="fa fa-sign-out font-red pointer-cursor" title="logout" data-ng-click="grid.appScope.agentLogout(row.entity.agent,row.entity.agentId)"></i> <span data-ng-if="row.entity.online && grid.appScope.showTimers" class="left-margin"><css-timer start-time="row.entity.lastLoginAt"></css-timer></span></div>',filter:{type:m.filter.SELECT,selectOptions:[{value:"true",label:"ONLINE"},{value:"false",label:"OFFLINE"}]}},{name:"openchannelPause",displayName:"APPLICATION_PAUSE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.pause != null && row.entity.online" class="ui-grid-vcenter"><i data-ng-if="row.entity.pause" data-ng-click="grid.appScope.pause(row.entity,\'unpause\')" class="fa fa-play font-green pointer-cursor left-margin" title="{{\'APPLICATION_RESUME\' | translate}}"></i><i class="fa fa-pause font-yellow pointer-cursor" data-ng-click="grid.appScope.pause(row.entity,\'pause\',\'DEFAULT PAUSE\')" title="{{\'APPLICATION_DEFAULT_PAUSE\' | translate}}"></i><select data-ng-if="grid.appScope.pauses.length" class="pause-select pointer-cursor" data-ng-model="grid.appScope.pauseType" data-ng-change="grid.appScope.pause(row.entity,\'pause\',grid.appScope.pauseType)"><option class="pointer-cursor" data-ng-repeat="pause in grid.appScope.pauses">{{pause.name}}</option></select> <span data-ng-if="row.entity.pause" class="left-margin">({{row.entity.pauseType}})</span><span data-ng-if="row.entity.pause && grid.appScope.showTimers" class="left-margin"><css-timer start-time="row.entity.lastPauseAt"></css-timer></span></div>',filter:{type:m.filter.SELECT,selectOptions:[{value:"true",label:"PAUSED"},{value:"false",label:"NOT PAUSED"}]},enableSorting:!1,enableColumnMenu:!1},{name:"queue",displayName:"APPLICATION_QUEUE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"action",displayName:"",width:170,cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><button data-ng-if="row.entity.queueId" class="btn btn-xs red-sunglo" data-ng-click="grid.appScope.leaveQueue(row.entity.agentId,row.entity.queueId)"><i class="icon-ban"></i> {{\'APPLICATION_LEAVE\' | translate}}</button><button data-ng-if="row.entity.isAgent && row.treeNode.children.length < grid.appScope.openchannelQueues.length" class="btn btn-xs blue-hoki" data-ng-click="grid.appScope.joinQueue(row.entity.agentId)"><i class="icon-plus"></i> {{\'APPLICATION_JOIN_QUEUE\' | translate}}</button><div>',enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1}],data:[],gridMenuTitleFilter:function(a){var b=l.defer();return b.resolve(d.instant(a)),b.promise},onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){x(a.gridApi.core.getVisibleRows(a.gridApi.grid).length)}),a.gridApi.treeBase.on.rowExpanded(a,function(b){x(a.gridApi.core.getVisibleRows(a.gridApi.grid).length+b.treeNode.children.length)}),a.gridApi.treeBase.on.rowCollapsed(a,function(b){x(a.gridApi.core.getVisibleRows(a.gridApi.grid).length-b.treeNode.children.length)}),a.gridApi.core.on.sortChanged(a,function(a,b){0===b.length?w.order=null:w.order=b[0].name+" "+b[0].sort.direction.toUpperCase(),q()}),a.gridApi.pagination.on.paginationChanged(a,function(a,b){w.offset=(a-1)*b,w.limit=b,q()}),a.gridApi.core.on.filterChanged(a,function(){var a=this.grid;a.columns.forEach(function(a){a.filters[0].term?w[a.name]=a.filters[0].term:delete w[a.name]}),q()})}},q(),t(),u(),v(),n(function(){r()})};var x=function(a){var b=a?30*a+130:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",b+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*a+"px")};a.$on("$destroy",function(){e.unsyncUpdates("agent"),e.unsyncUpdates("user_has_openchannel_queue")}),a.pause=function(b,c,e){return e&&(a.pauseType=null),i.save({name:c,agent:b.agentId,data2:b.agent,type:e||"DEFAULT PAUSE",data4:e||"DEFAULT PAUSE",channel:"openchannel"}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})},a.joinQueue=function(e){var g=c.open({animation:!0,templateUrl:"app/channels/openchannel/realtime/view/agent/queue.modal.add.html",controller:"OpenChannelRealtimeViewAgentQueueModalCtrl",resolve:{queues:function(){return _.reject(a.openchannelQueues,function(b){return!!_.find(a.gridOptions.data,{queue:b.name,isAgent:!1,agentId:e})})}}});g.result.then(function(b){return i.save({name:"QueueAdd",agent:e,queues:_.filter(a.openchannelQueues,function(a){return _.includes(b.queues,a.id)}),channel:"openchannel",data1:e,data3:b.queues.join(","),data4:"openchannel"}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})},function(){b.info("Modal dismissed at: "+new Date)})},a.leaveQueue=function(a,b){return i.save({name:"QueueRemove",agent:a,queueId:b,channel:"openchannel",data1:a,data3:b,data4:"openchannel"}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})},a.showInfo=function(a){c.open({animation:!0,templateUrl:"app/channels/openchannel/realtime/view/agent/agent.modal.info.html",controller:"OpenChannelRealtimeViewAgentInfoModalCtrl",resolve:{agent:a}})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.openchannel.realtime.view.agents",{url:"/agents",templateUrl:"app/channels/openchannel/realtime/view/agent/agent.html",controller:"OpenChannelRealtimeViewAgentCtrl"})}]),angular.module("xCallyShuttleApp").controller("OpenChannelRealtimeViewAgentInfoModalCtrl",["$scope","$uibModalInstance","$http","agent",function(a,b,c,d){a.agent=d,a.close=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("OpenChannelRealtimeViewAgentQueueModalCtrl",["$scope","$uibModalInstance","$http","queues",function(a,b,c,d){a.queues=d,a.item={},a.save=function(){b.close(a.item)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("OpenChannelRealtimeViewApplicationCtrl",["$scope","$log","$uibModal","$translate","socket","xAlert","ReportOpenChannelSession","usSpinnerService","$q","uiGridConstants","$timeout",function(a,b,c,d,e,f,g,h,i,j,k){function l(){return h.spin("spinner-grid"),g.get({controller:"waiting",controller2:"applications"}).$promise.then(function(b){a.gridOptions.data=b.rows})["catch"](function(a){f.error(a)})["finally"](function(){m(),h.stop("spinner-grid")})}function m(){e.socket.on("report_openchannel_session:save",function(b){var c=_.find(a.gridOptions.data,{id:b.id});c?(_.merge(c,b),b.leaveAt&&k(function(){_.remove(a.gridOptions.data,{id:b.id})},1e4)):b.leaveAt||a.gridOptions.data.push(b)}),e.socket.on("report_openchannel_session:remove",function(b){_.remove(a.gridOptions.data,{id:b.id})})}a.moment=moment,a.initApplications=function(){a.gridOptions={headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,columnDefs:[{name:"uniqueid",displayName:"APPLICATION_UNIQUEID",headerCellFilter:"translate"},{name:"accountname",displayName:"APPLICATION_ACCOUNT",headerCellFilter:"translate"},{name:"application",displayName:"APPLICATION_APPLICATION",headerCellFilter:"translate"},{name:"status",displayName:"APPLICATION_STATUS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span data-ng-if="!row.entity.leaveAt">{{\'APPLICATION_QUEUESTATUS_WAITING\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.complete">{{\'APPLICATION_QUEUESTATUS_COMPLETE\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.timeout">{{\'APPLICATION_TIMEOUT\' | translate}}</span> <span data-ng-if="!row.entity.leaveAt && grid.appScope.showTimers"><css-timer start-time="row.entity.updatedAt"></css-timer></span></div>',enableSorting:!1,enableColumnMenu:!1,enableFiltering:!1},{name:"membername",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.membername || ''}}</span></div>"},{name:"queuename",displayName:"APPLICATION_QUEUE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.queuename || ''}}</span></div>"}],data:[],gridMenuTitleFilter:function(a){var b=i.defer();return b.resolve(d.instant(a)),b.promise},onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){n(a.gridOptions.data.length)})}},l()};var n=function(a){var b=a?30*a+60:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",b+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*a+"px")};a.$on("$destroy",function(){e.unsyncUpdates("report_openchannel_session")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.openchannel.realtime.view.applications",{url:"/applications",templateUrl:"app/channels/openchannel/realtime/view/application/application.html",controller:"OpenChannelRealtimeViewApplicationCtrl"})}]),angular.module("xCallyShuttleApp").controller("OpenChannelRealtimeViewCtrl",["$scope","$state",function(a,b){a.agents=[{name:"Queues",link:"main.channels.openchannel.realtime.view.agents.queues"},{name:"Timeline",link:"main.channels.openchannel.realtime.view.agents.timeline"}],a.sessions=[{name:"Sessions",link:"main.channels.openchannel.realtime.view.sessions"}],a.tree={queues:[{name:"Queues",link:"main.channels.openchannel.realtime.view.agents.queues"},{name:"Timeline",link:"main.channels.openchannel.realtime.view.agents.timeline"}],sessions:[{name:"Sessions",link:"main.channels.openchannel.realtime.view.sessions"}]},a.timerSwitch={isActive:!0,size:"mini",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"primary"},a.showTimers=!1}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.openchannel.realtime.view",{url:"/view",templateUrl:"app/channels/openchannel/realtime/view/view.html",controller:"OpenChannelRealtimeViewCtrl"})}]),angular.module("xCallyShuttleApp").factory("ReportOpenChannelSession",["$resource",function(a){return a("/api/report/openchannel/sessions/:id/:controller/:controller2",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.realtime",{url:"/realtime",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:12}}})}]),angular.module("xCallyShuttleApp").controller("RealtimeViewAgentCtrl",["$scope","$log","$uibModal","$translate","socket","xAlert","Agent","Pause","Action","usSpinnerService","$q","uiGridConstants","$timeout",function(a,b,c,d,e,f,g,h,i,j,k,l,m){function n(b){return j.spin("grid-spinner"),g.get(q).$promise.then(function(b){a.gridOptions.totalItems=b.count,a.gridOptions.data=b.rows})["catch"](function(a){f.error(a)})["finally"](function(){b&&m(function(){o()}),j.stop("grid-spinner")})}function o(){e.socket.on("agent:save",function(b){b=b.newValues||b;var c=_.find(a.gridOptions.data,{id:b.id});c&&_.merge(c,b)}),e.socket.on("agent:remove",function(b){_.remove(a.gridOptions.data,{id:b.id})})}function p(){return h.get().$promise.then(function(b){a.pauses=b.rows,e.syncUpdates("pause",a.pauses)})["catch"](function(a){f.error(a)})}var q={controller:"realtime",offset:0,limit:10};a.moment=moment,a._=_,a.initAgents=function(){a.gridOptions={enableGridMenu:!0,headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,showGridFooter:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,useExternalPagination:!0,useExternalSorting:!0,useExternalFiltering:!0,showTreeExpandNoChildren:!0,columnDefs:[{name:"name",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.name}} <{{row.entity.internal}}></div>",minWidth:250},{name:"fullname",displayName:"APPLICATION_FULLNAME",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.fullname}}</div>"},{name:"online",displayName:"APPLICATION_ONLINE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.online != null"><i class="fa" data-ng-class="{\'font-green\':row.entity.online, \'font-red\':!row.entity.online,\'fa-user\':row.entity.online,\'fa-user-times\':!row.entity.online}"></i> <i data-ng-if="row.entity.online" class="fa fa-sign-out font-red pointer-cursor" title="logout" data-ng-click="grid.appScope.agentLogout(row.entity.name,row.entity.id)"></i> <span data-ng-if="row.entity.online && grid.appScope.showTimers" class="left-margin"><css-timer start-time="row.entity.lastLoginAt"></css-timer></span></div>',filter:{type:l.filter.SELECT,selectOptions:[{value:"true",label:"ONLINE"},{value:"false",label:"OFFLINE"}]}},{name:"pauseStatus",displayName:"APPLICATION_PAUSE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span class="left-margin"><i data-ng-if="row.entity.voicePause || row.entity.mailPause || row.entity.chatPause || row.entity.faxPause || row.entity.smsPause" data-ng-click="grid.appScope.pause(row.entity,\'unpause\',null,null)" class="fa fa-play font-green pointer-cursor" title="{{\'APPLICATION_RESUME\' | translate}}"></i> <i class="fa fa-pause font-yellow pointer-cursor" data-ng-click="grid.appScope.pause(row.entity,\'pause\',\'DEFAULT PAUSE\')" title="{{\'APPLICATION_DEFAULT_PAUSE\' | translate}}"></i></span><select data-ng-if="grid.appScope.pauses.length" class="pause-select pointer-cursor" data-ng-model="grid.appScope.pauseType" data-ng-change="grid.appScope.pause(row.entity,\'pause\',grid.appScope.pauseType)"><option class="pointer-cursor" data-ng-repeat="pause in grid.appScope.pauses">{{pause.name}}</option></select><span data-ng-if="row.entity.voicePause || row.entity.mailPause || row.entity.chatPause || row.entity.faxPause || row.entity.smsPause || row.entity.openchannelPause"> [{{row.entity.pauseType}}]<span data-ng-if="grid.appScope.showTimers"><css-timer start-time="row.entity.lastPauseAt"></css-timer></span></span></div>',enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"voicePause",displayName:"APPLICATION_VOICE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.online"><span class="left-margin"><i data-ng-if="row.entity.voicePause" data-ng-click="grid.appScope.pause(row.entity,\'unpause\',null,\'voice\')" class="fa fa-play font-green pointer-cursor" title="{{\'APPLICATION_RESUME\' | translate}}"></i><span data-ng-if="row.entity.voicePause && grid.appScope._.startsWith(row.entity.pauseType,\'#\')"> * </span></span></div>',filter:{type:l.filter.SELECT,selectOptions:[{value:"true",label:d.instant("APPLICATION_PAUSED")},{value:"connect",label:d.instant("APPLICATION_NOT_PAUSED")}]},enableSorting:!1,enableColumnMenu:!1},{name:"mailPause",displayName:"APPLICATION_MAIL", +headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.online"><span class="left-margin"><i data-ng-if="row.entity.mailPause" data-ng-click="grid.appScope.pause(row.entity,\'unpause\',null,\'mail\')" class="fa fa-play font-green pointer-cursor" title="{{\'APPLICATION_RESUME\' | translate}}"></i></span></div>',filter:{type:l.filter.SELECT,selectOptions:[{value:"true",label:d.instant("APPLICATION_PAUSED")},{value:"connect",label:d.instant("APPLICATION_NOT_PAUSED")}]},enableSorting:!1,enableColumnMenu:!1},{name:"chatPause",displayName:"APPLICATION_CHAT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.online"><span class="left-margin"><i data-ng-if="row.entity.chatPause" data-ng-click="grid.appScope.pause(row.entity,\'unpause\',null,\'chat\')" class="fa fa-play font-green pointer-cursor" title="{{\'APPLICATION_RESUME\' | translate}}"></i></span></div>',filter:{type:l.filter.SELECT,selectOptions:[{value:"true",label:d.instant("APPLICATION_PAUSED")},{value:"connect",label:d.instant("APPLICATION_NOT_PAUSED")}]},enableSorting:!1,enableColumnMenu:!1},{name:"faxPause",displayName:"APPLICATION_FAX",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.online"><span class="left-margin"><i data-ng-if="row.entity.faxPause" data-ng-click="grid.appScope.pause(row.entity,\'unpause\',null,\'fax\')" class="fa fa-play font-green pointer-cursor" title="{{\'APPLICATION_RESUME\' | translate}}"></i></span></div>',filter:{type:l.filter.SELECT,selectOptions:[{value:"true",label:d.instant("APPLICATION_PAUSED")},{value:"connect",label:d.instant("APPLICATION_NOT_PAUSED")}]},enableSorting:!1,enableColumnMenu:!1},{name:"smsPause",displayName:"APPLICATION_SMS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.online"><span class="left-margin"><i data-ng-if="row.entity.smsPause" data-ng-click="grid.appScope.pause(row.entity,\'unpause\',null,\'sms\')" class="fa fa-play font-green pointer-cursor" title="{{\'APPLICATION_RESUME\' | translate}}"></i></span></div>',filter:{type:l.filter.SELECT,selectOptions:[{value:"true",label:d.instant("APPLICATION_PAUSED")},{value:"connect",label:d.instant("APPLICATION_NOT_PAUSED")}]},enableSorting:!1,enableColumnMenu:!1},{name:"openchannelPause",displayName:"APPLICATION_OPENCHANNEL",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.online"><span class="left-margin"><i data-ng-if="row.entity.openchannelPause" data-ng-click="grid.appScope.pause(row.entity,\'unpause\',null,\'openchannel\')" class="fa fa-play font-green pointer-cursor" title="{{\'APPLICATION_RESUME\' | translate}}"></i></span></div>',filter:{type:l.filter.SELECT,selectOptions:[{value:"true",label:d.instant("APPLICATION_PAUSED")},{value:"connect",label:d.instant("APPLICATION_NOT_PAUSED")}]},enableSorting:!1,enableColumnMenu:!1}],data:[],gridMenuTitleFilter:function(a){var b=k.defer();return b.resolve(d.instant(a)),b.promise},onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){r(a.gridApi.core.getVisibleRows(a.gridApi.grid).length)}),a.gridApi.core.on.sortChanged(a,function(a,b){0===b.length?q.order=null:q.order=b[0].name+" "+b[0].sort.direction.toUpperCase(),n()}),a.gridApi.pagination.on.paginationChanged(a,function(a,b){q.offset=(a-1)*b,q.limit=b,n()}),a.gridApi.core.on.filterChanged(a,function(){var a=this.grid;a.columns.forEach(function(a){a.filters[0].term?q[a.name]=a.filters[0].term:delete q[a.name]}),n()})}},n(!0),p()};var r=function(a){var b=a?30*a+130:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",b+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*a+"px")};a.$on("$destroy",function(){e.unsyncUpdates("agent")}),a.pause=function(b,c,e,g){return e&&(a.pauseType=null),i.save({name:c,agent:b.id,data2:b.name,type:e||"DEFAULT PAUSE",data4:e||"DEFAULT PAUSE",channel:g||"all"}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.realtime.view.agents",{url:"/agents",templateUrl:"app/channels/realtime/view/agent/agent.html",controller:"RealtimeViewAgentCtrl"})}]),angular.module("xCallyShuttleApp").controller("RealtimeViewAgentLogoutModalCtrl",["$scope","$uibModalInstance","name",function(a,b,c){a.agent=c,a.logout=function(){b.close()}}]),angular.module("xCallyShuttleApp").controller("RealtimeViewAgentQueueModalCtrl",["$scope","$uibModalInstance","$http","queues",function(a,b,c,d){a.queues=d,a.item={},a.save=function(){b.close(a.item)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("RealtimeViewCtrl",["$scope",function(a){a.timerSwitch={isActive:!0,size:"mini",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"primary"},a.showTimers=!1}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.realtime.view",{url:"/view",templateUrl:"app/channels/realtime/view/view.html",controller:"RealtimeViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]}])}]}})}]),angular.module("xCallyShuttleApp").factory("ReportCall",["$resource",function(a){return a("/api/report/calls/:id/:controller",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("ReportDial",["$resource",function(a){return a("/api/report/dials/:id/:controller/:controller2",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("SmsAccount",["$resource",function(a){return a("/api/sms/accounts/:accountId/:controller/:id",{id:"@accountId"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.sms.accounts",{url:"/accounts",template:"<div ui-view></div>",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:42}}})}]),angular.module("xCallyShuttleApp").controller("SmsAccountListCtrl",["$scope","SmsAccount","gridOptions","$stateParams","xAlert","$translate",function(a,b,c,d,e,f){a.message="Hello",a.initView=function(){var e={exporterCsvFilename:"sms_accounts.csv",columnDefs:[{name:"id",displayName:"ID",cellClass:"text-center",width:75,enableSorting:!1,enableFiltering:!1},{name:"name"},{name:"description"},{name:"type",displayName:"APPLICATION_ACCOUNT_TYPE"},{name:"action",width:100,buttons:[{"class":"blue-hoki",href:"/channels/sms/accounts/view/{{row.entity.id}}/settings",name:"profile"},{"class":"green-jungle",name:"check",onClick:"grid.appScope.checkAccount(row.entity.id)"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=c.gridOptions(b,e,a,{accountId:d.accountId})},a.checkAccount=function(a){return b.get({accountId:a,controller:"check"}).$promise.then(function(){e.show(f.instant("MESSAGE_ACCOUNT_VERIFIED"),"success")})["catch"](function(a){e.show(f.instant("MESSAGE_ACCOUNT_INVALID"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.sms.accounts.list",{url:"/list",templateUrl:"app/channels/sms/account/list/list.html",controller:"SmsAccountListCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.sms.accounts.view.actions",{url:"/actions",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").factory("SmsApplication",["$resource",function(a){return a("/api/sms/applications/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("SmsAccountViewActionListCtrl",["$scope","gridOptions","SmsAccount","$http","$translate","$stateParams","xAlert",function(a,b,c,d,e,f,g){a.initActions=function(){var d={draggable:!0,exporterCsvFilename:"sms_applications.csv",enableSorting:!1,enableFiltering:!1,columnDefs:[{name:"app",cellClass:"text-center"},{name:"name",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span>{{row.entity.app == "queue" ? row.entity.SmsQueue.name : row.entity.User.name}}</span></div>'},{name:"timeout",cellClass:"text-center"},{name:"interval",displayName:"APPLICATION_TIME_INTERVAL",cellClass:"text-center",cellTemplate:"<div><span>{{row.entity.Interval ? row.entity.Interval.name : row.entity.interval}}</span></div>"},{name:"action",width:125,buttons:[{"class":"blue-hoki",href:"/channels/sms/accounts/view/{{row.entity.SmsAccountId}}/actions/view/{{row.entity.id}}",name:"profile"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.app, row.entity.id)"}]}]};a.gridOptions=b.gridOptions(c,d,a,{accountId:f.accountId,controller:"applications"})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.sms.accounts.view.actions.list",{url:"/list",templateUrl:"app/channels/sms/account/view/action/list/list.html",controller:"SmsAccountViewActionListCtrl"})}]),angular.module("xCallyShuttleApp").controller("SmsAccountViewActionViewCtrl",["$scope","$http","$stateParams","$translate","$location","xAlert","WizardHandler","socket","application","interval","Agent","Interval","SmsQueue","SmsAccount","Template","MailAccount","SmsApplication",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.initAction=function(){return a.$application=i.application,a.$stateParams=c,a.$interval=j.interval,a.forms={},a.apps=[{name:"Queue",value:"queue"},{name:"Agent",value:"agent"},{name:"SendMail",value:"sendMail"},{name:"SendSMS",value:"sendSms"}],q.get({id:c.actionId}).$promise.then(function(b){if(a.application=b,a.application.alwaysTime=!1,a.application.IntervalId)a.application.intType="list";else switch(a.application.interval){case"*,*,*,*":a.application.intType="always";break;default:a.application.intType="custom"}if("always"===a.application.intType||"custom"===a.application.intType){var c=a.application.interval.split(",");"*"===c[0]?a.application.alwaysTime=!0:(a.application.t_from=moment(new Date),a.application.t_to=moment(new Date),a.application.t_from.hour(c[0].split("-")[0].split(":")[0]),a.application.t_from.minute(c[0].split("-")[0].split(":")[1]),a.application.t_to.hour(c[0].split("-")[1].split(":")[0]),a.application.t_to.minute(c[0].split("-")[1].split(":")[1])),"*"===c[1]?(a.application.wd_from="always",a.application.wd_to="always"):(a.application.wd_from=c[1].split("-")[0],a.application.wd_to=c[1].split("-")[1]),"*"===c[2]?(a.application.md_from="always",a.application.md_to="always"):(a.application.md_from=c[2].split("-")[0],a.application.md_to=c[2].split("-")[1]),"*"===c[3]?(a.application.m_from="always",a.application.m_to="always"):(a.application.m_from=c[3].split("-")[0],a.application.m_to=c[3].split("-")[1])}a.$watch("application.t_from",function(b){a.application.t_from_hm=moment(b).format("HH:mm")}),a.$watch("application.t_to",function(b){a.application.t_to_hm=moment(b).format("HH:mm")})})["catch"](function(a){f.error(a)})},a.getQueues=function(){return m.get().$promise.then(function(b){a.queues=b.rows})["catch"](function(a){console.error(a)})},a.getAgents=function(){return k.get().$promise.then(function(b){a.agents=b.rows})["catch"](function(a){console.error(a)})},a.getIntervals=function(){return l.get().$promise.then(function(b){a.intervals=b.rows})["catch"](function(a){console.error(a)})},a.getTemplates=function(){return o.get().$promise.then(function(b){a.templates=b.rows})["catch"](function(a){console.error(a)})},a.getMailAccounts=function(){return p.get().$promise.then(function(b){a.mailAccounts=b.rows})["catch"](function(a){console.error(a)})},a.getSmsAccounts=function(){return n.get().$promise.then(function(b){a.smsAccounts=b.rows})["catch"](function(a){console.error(a)})},a.updateItem=function(){switch(a.application.intType){case"always":a.application.interval="*,*,*,*",a.application.IntervalId=null;break;case"list":var b=_.find(a.intervals,{id:a.application.IntervalId});a.application.interval=b?"":"*,*,*,*",a.application.IntervalId=b?a.application.IntervalId:null;break;case"custom":var g,h,i,j,k;g=a.application.t_from&&a.application.t_to&&!a.application.alwaysTime?moment(a.application.t_from).format("HH:mm")+"-"+moment(a.application.t_to).format("HH:mm"):"*",a.application.wd_from&&"always"!==a.application.wd_from?(h=a.application.wd_from,a.application.wd_to&&"always"!==a.application.wd_to&&(h+="-"+a.application.wd_to)):h="*",a.application.md_from&&"always"!==a.application.md_from?(i=a.application.md_from,a.application.md_to&&"always"!==a.application.md_to&&(i+="-"+a.application.md_to)):i="*",a.application.m_from&&"always"!==a.application.m_from?(j=a.application.m_from,a.application.m_to&&"always"!==a.application.m_to&&(j+="-"+a.application.m_to)):j="*",k=g+","+h+","+i+","+j,a.application.interval=k,a.application.IntervalId=null}return n.update({accountId:c.accountId,controller:"applications",id:c.actionId},a.application).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success"),e.path("/channels/sms/accounts/view/"+c.accountId+"/actions/list")})["catch"](function(a){f.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.sms.accounts.view.actions.view",{url:"/view/:actionId",templateUrl:"app/channels/sms/account/view/action/view/view.html",controller:"SmsAccountViewActionViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("SmsAccountViewActionWizardCtrl",["$scope","$http","Agent","SmsQueue","Interval","$stateParams","$translate","$location","xAlert","WizardHandler","socket","application","interval","SmsAccount","Template","MailAccount",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.initWizard=function(){a.apps=[{name:"Queue",value:"queue"},{name:"Agent",value:"agent"},{name:"SendMail",value:"sendMail"},{name:"SendSMS",value:"sendSms"}],a.$application=l.application,a.$stateParams=f,a.$interval=m.interval,a.forms={},a.application={alwaysTime:!0},a.$watch("application.t_from",function(b){a.application.t_from_hm=moment(b).format("HH:mm")}),a.$watch("application.t_to",function(b){a.application.t_to_hm=moment(b).format("HH:mm")})},a.getQueues=function(){return d.get().$promise.then(function(b){console.log(b),a.queues=b.rows})["catch"](function(a){console.error(a)})},a.getAgents=function(){return c.get().$promise.then(function(b){a.agents=b.rows})["catch"](function(a){console.error(a)})},a.getIntervals=function(){return e.get().$promise.then(function(b){a.intervals=b.rows})["catch"](function(a){console.error(a)})},a.getTemplates=function(){return o.get().$promise.then(function(b){a.templates=b.rows})["catch"](function(a){console.error(a)})},a.getMailAccounts=function(){return p.get().$promise.then(function(b){a.mailAccounts=b.rows})["catch"](function(a){console.error(a)})},a.getSmsAccounts=function(){return n.get().$promise.then(function(b){a.smsAccounts=b.rows})["catch"](function(a){console.error(a)})},a.createItem=function(){switch(a.application.intType){case"always":a.application.interval="*,*,*,*",a.application.IntervalId=null;break;case"list":var b=_.find(a.intervals,{id:a.application.IntervalId});a.application.interval=b?"":"*,*,*,*",a.application.IntervalId=b?a.application.IntervalId:null;break;case"custom":var c,d,e,j,k;c=a.application.t_from&&a.application.t_to&&!a.application.alwaysTime?moment(a.application.t_from).format("HH:mm")+"-"+moment(a.application.t_to).format("HH:mm"):"*",a.application.wd_from&&"always"!==a.application.wd_from?(d=a.application.wd_from,a.application.wd_to&&"always"!==a.application.wd_to&&(d+="-"+a.application.wd_to)):d="*",a.application.md_from&&"always"!==a.application.md_from?(e=a.application.md_from,a.application.md_to&&"always"!==a.application.md_to&&(e+="-"+a.application.md_to)):e="*",a.application.m_from&&"always"!==a.application.m_from?(j=a.application.m_from,a.application.m_to&&"always"!==a.application.m_to&&(j+="-"+a.application.m_to)):j="*",k=c+","+d+","+e+","+j,a.application.interval=k,a.application.IntervalId=null}return n.save({accountId:f.accountId,controller:"applications"},a.application).$promise.then(function(){i.show(g.instant("MESSAGE_WELL_DONE"),"success"),h.path("/channels/sms/accounts/view/"+f.accountId+"/actions/list")})["catch"](function(a){i.error(a)})},a.formValidation=function(a){return a},a.next=function(){j.wizard().next()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.sms.accounts.view.actions.wizard",{url:"/wizard",templateUrl:"app/channels/sms/account/view/action/wizard/wizard.html",controller:"SmsAccountViewActionWizardCtrl"})}]),angular.module("xCallyShuttleApp").controller("SmsAccountApiViewCtrl",["$scope","SmsAccount","$http","$stateParams","clipboard","$translate","$location","xAlert",function(a,b,c,d,e,f,g,h){a.copyToClipboard=function(a){e.copyText(a),h.show(f.instant("MESSAGE_TEXT_COPIED_CLIPBOARD")+"!","success")},a.initView=function(){b.get({id:d.accountId}).$promise.then(function(b){a.account=b,a.deliveryurl=a.account.remote+"/api/sms/accounts/"+a.account.id+"/messageStatus",a.receiveurl=a.account.remote+"/api/sms/accounts/"+a.account.id+"/receive"})["catch"](function(a){h.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.sms.accounts.view.api",{url:"/api",controller:"SmsAccountApiViewCtrl",templateUrl:"app/channels/sms/account/view/api/view/view.html"})}]),angular.module("xCallyShuttleApp").factory("SmsDisposition",["$resource",function(a){return a("/api/sms/dispositions/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("SmsInboxViewModaDispositionAddCtrl",["$scope","$uibModalInstance","SmsAccount","id",function(a,b,c,d){a.ok=function(){return c.save({accountId:d,controller:"dispositions"},{name:a.name}).$promise.then(function(a){b.close(a)})},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("SmsAccountDispositionViewCtrl",["$scope","$stateParams","$uibModal","$translate","SmsAccount","xAlert",function(a,b,c,d,e,f){a.initView=function(){return e.get({accountId:b.accountId,controller:"dispositions"}).$promise.then(function(b){a.dispositions=b.rows})["catch"](function(a){console.error(a),f.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.updateDisposition=function(a,c){return e.update({accountId:b.accountId,controller:"dispositions",id:a},{name:c}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE")+"!","success")})["catch"](function(a){console.error(a),f.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.deleteDisposition=function(c){return console.log("delete"),e.remove({accountId:b.accountId,controller:"dispositions",id:c}).$promise.then(function(){_.remove(a.dispositions,{id:c})})["catch"](function(a){console.error(a),f.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.addDisposition=function(){return c.open({animation:!0,templateUrl:"app/channels/sms/account/view/disposition/modal/add.modal.html",controller:"SmsInboxViewModaDispositionAddCtrl",resolve:{id:function(){return b.accountId}}}).result.then(function(b){b&&a.dispositions.push(b)})["catch"](function(a){console.error(a),f.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.sms.accounts.view.dispositions",{url:"/dispositions",controller:"SmsAccountDispositionViewCtrl",templateUrl:"app/channels/sms/account/view/disposition/view/view.html"})}]),angular.module("xCallyShuttleApp").controller("SmsAccountHooksViewCtrl",["$scope","SmsAccount","Pause","$http","$stateParams","clipboard","$translate","$location","xAlert",function(a,b,c,d,e,f,g,h,i){a.account={},a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.CONST_TIMEOUT=3e4,a.initView=function(){a.types=[{value:"",name:"-- None --"},{name:"HTTP GET",value:"GET"},{name:"HTTP POST",value:"POST"}],c.get().$promise.then(function(b){a.pauses=b.rows})["catch"](function(a){i.error(a)}),b.get({id:e.accountId}).$promise.then(function(b){a.account=b,a.account.actions.length<1&&a.account.actions.push({action:"pause",enabled:!1,type:null})})["catch"](function(a){i.error(a)})},a.resetActionData=function(a){a.type=null},a.updateItemSmsAccount=function(){return console.log(a.account),b.update({id:e.accountId},a.account).$promise.then(function(){i.show(g.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){i.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.sms.accounts.view.hooks",{url:"/hooks",controller:"SmsAccountHooksViewCtrl",templateUrl:"app/channels/sms/account/view/hooks/view/view.html"})}]),angular.module("xCallyShuttleApp").controller("SmsAccountSettingViewCtrl",["$scope","SmsAccount","Pause","$http","$stateParams","clipboard","$translate","$location","xAlert","List",function(a,b,c,d,e,f,g,h,i,j){a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.CONST_TIMEOUT=3e4,a.types=[{name:"HTTP GET",value:"GET"},{name:"HTTP POST",value:"POST"}],a.account={},a.initView=function(){j.get().$promise.then(function(b){a.lists=b.rows})["catch"](function(a){console.error(a)}),b.get({id:e.accountId}).$promise.then(function(b){a.account=b})["catch"](function(a){i.error(a)})},a.updateItemSmsAccount=function(){return b.update({id:e.accountId},a.account).$promise.then(function(){i.show(g.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){i.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.sms.accounts.view.settings",{url:"/settings",controller:"SmsAccountSettingViewCtrl",templateUrl:"app/channels/sms/account/view/setting/view/view.html"})}]),angular.module("xCallyShuttleApp").controller("SmsAccountViewCtrl",["$scope","SmsAccount","$http","$stateParams","clipboard","$translate","$location","xAlert","List",function(a,b,c,d,e,f,g,h,i){a.initView=function(){return a.account={},b.get({id:d.accountId}).$promise.then(function(b){a.account=b,console.log(b)})["catch"](function(a){h.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.sms.accounts.view",{url:"/view/:accountId",templateUrl:"app/channels/sms/account/view/view.html",controller:"SmsAccountViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]})}]}})}]),angular.module("xCallyShuttleApp").controller("SmsAccountWizardCtrl",["$scope","$http","$location","$translate","WizardHandler","xAlert","SmsAccount",function(a,b,c,d,e,f,g){a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.initWizard=function(){a.forms={},a.item={},a.item.remote=c.protocol()+"://"+location.host},a.goNext=function(){e.wizard().next()},a.formValidation=function(a){return a},a.createItem=function(){return console.log(a.item),g.save(a.item).$promise.then(function(){c.path("/channels/sms/accounts/list")})["catch"](function(a){f.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.sms.accounts.wizard",{url:"/wizard",templateUrl:"app/channels/sms/account/wizard/wizard.html",controller:"SmsAccountWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.sms.inbox",{url:"/inbox",template:"<div ui-view></div>",data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:44}}})}]),angular.module("xCallyShuttleApp").directive("smsRoom",["$cookieStore","$translate","$uibModal","$timeout","Tag","CannedAnswer","Auth","SmsAccount","SmsRoom","SmsMessage","xAlert","usSpinnerService","socket","$stateParams","$rootScope",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){return{restrict:"E",scope:{workspace:"=",index:"=",submit:"&onSubmit"},templateUrl:"app/channels/sms/inbox/room/room.directive.html",link:function(a){a.modelOptions={debounce:{"default":500,blur:250},getterSetter:!0},a.panelLeft=null,a.panelRight="col-md-12",a.togglePanelLeft=function(){a.panelLeft?(a.panelLeft=null,a.panelRight="col-md-12"):(a.panelLeft="col-md-6",a.panelRight="col-md-6")},a.form={disabled:!1,from:"",to:a.workspace.data&&a.workspace.data.to?a.workspace.data.to:"",body:""},m.socket.on("sms_message:save",function(b){return a.workspace.id&&b.SmsRoomId==a.workspace.id?j.get({id:b.id}).$promise.then(function(b){a.SmsRoom||(a.SmsRoom={SmsMessages:[]});var c=_.findIndex(a.SmsRoom.SmsMessages,{id:b.id});c>-1?_.merge(a.SmsRoom.SmsMessages[c],b):a.SmsRoom.SmsMessages.unshift(b),a.panelLeft="col-md-6",a.panelRight="col-md-6"})["catch"](function(a){console.error(a)}):void 0}),m.socket.on("sms_message:update",function(b){if(a.SmsRoom&&b.SmsRoomId==a.workspace.id){var c=_.find(a.SmsRoom.SmsMessages,{id:b.id});c&&_.merge(c,b)}}),m.socket.on("sms_room:save",function(b){a.SmsRoom&&b.id==a.workspace.id&&(a.SmsRoom.status=b.status,a.SmsRoom.disposition=b.disposition)}),a.closeRoom=function(b){return c.open({animation:!0,templateUrl:"app/channels/sms/inbox/view/view.status.modal.html",controller:"SmsInboxViewModalStatusCtrl",resolve:{closed:function(){return"CLOSED"===a.SmsRoom.status},accountId:function(){return a.SmsRoom.SmsAccountId}}}).result.then(function(a){var c={id:b,status:"CLOSED"};return a.disposition&&(c.disposition=a.disposition),i.update(c).$promise["catch"](function(a){k.error(a)})})},a.openRoom=function(a,b){var c=_.find(o.workspaces,{id:a,type:"smsRoom"});c?c.active=!0:o.workspaces.push({id:a,name:b,type:"smsRoom","class":"glyphicon glyphicon-comment",active:!0})},e.get().$promise.then(function(b){a.tags=_.map(b.rows,"name")})["catch"](function(a){console.error(a)}),h.get().$promise.then(function(b){a.smsAccounts=b.rows})["catch"](function(a){console.error(a)}),a.workspace.id?(a.panelLeft="col-md-6",a.panelRight="col-md-6",i.get({id:a.workspace.id}).$promise.then(function(b){a.SmsRoom=b,a.form.from=a.SmsRoom.SmsAccount.phone,a.form.to=a.SmsRoom.contact,a.form.tags=a.SmsRoom.tags})["catch"](function(a){console.error(a)})["finally"](function(){l.stop("spinner-grid"),a.form.disabled=!1})):l.stop("spinner-grid"),a.onSelect=function(){a.form.body+=a.modelOptions.selectedAnswer,delete a.modelOptions.selectedAnswer},a.onSelectAnswer=function(b){a.form.body+=b,a.selectedAnswer=""},a.getAnswers=function(a){return f.get({key:a}).$promise.then(function(a){return _.map(a.rows,"value")})},a.onChanged=function(){return i.patch({id:a.workspace.id},{tags:a.form.tags}).$promise["catch"](function(a){console.error(a)})},a.sendSMS=function(){l.spin("spinner-grid");var c=_.find(a.smsAccounts,{phone:a.form.from}),d={body:a.form.body,SmsRoomId:a.SmsRoom?a.SmsRoom.id:null};return"twilio"===c.type?(d.from=/^[\+][0-9]+$/.test(a.form.from)?a.form.from:"+"+a.form.from,d.to=/^[\+][0-9]+$/.test(a.form.to)?a.form.to:"+"+a.form.to):(d.from=/^[\+][0-9]+$/.test(a.form.from)?a.form.from.replace("+",""):a.form.from,d.to=/^[\+][0-9]+$/.test(a.form.to)?a.form.to.replace("+",""):a.form.to),c?h.save({accountId:c.id,controller:"send"},d).$promise.then(function(c){return k.show(b.instant("MESSAGE_WELL_DONE"),"success"),a.SmsRoom?a.SmsRoom:i.get({id:"messages",controller:c.id}).$promise}).then(function(b){b&&(a.form.body="",a.workspace.id=b.id,a.workspace.name=b.contact,a.SmsRoom=b,a.panelLeft="col-md-6",a.panelRight="col-md-6")})["catch"](function(a){k.error(a)})["finally"](function(){l.stop("spinner-grid")}):void console.log("Can not find account")}}}}]),angular.module("xCallyShuttleApp").controller("SmsInboxInfoModalCtrl",["$scope","$translate","$uibModalInstance","$stateParams","xAlert","data","uniqueId","ReportSquare",function(a,b,c,d,e,f,g,h){a.data=null,a.initInfo=function(){f&&(a.data=_.isEmpty(JSON.parse(f))?null:JSON.parse(f)),g&&h.get({controller:"show",uniqueid:g}).$promise.then(function(b){a.data={id:b.id,channel:b.channel,uniqueid:b.uniqueid,callerid:b.callerid,calleridname:b.calleridname,project_name:b.project_name,extension:b.extension}})["catch"](function(b){switch(b.status){case 404:a.data=null;break;default:e.error(b)}})},a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").directive("sms",["$rootScope","SmsMessage","List","xAlert","$translate","$uibModal",function(a,b,c,d,e,f){return{restrict:"E",scope:{smsMessage:"=message",accounttype:"=accounttype",listId:"="},templateUrl:"app/channels/sms/inbox/sms/sms.html",link:function(b){b.openContact=function(f){return b.listId?c.save({listId:b.listId,controller:"contacts"},{mobile:f}).$promise.then(function(b){var c=_.find(a.$root.workspaces,{contactID:b.id});c?c.active=!0:a.$root.workspaces.push({active:!0,"class":"icon-user",contactID:b.id,name:b.phone,type:"contact"})})["catch"](function(a){console.error(a)}):void d.show(e.instant("MESSAGE_NO_LIST_CONFIGURED"),"info")},b.info=function(a,b){f.open({animation:!0,templateUrl:"app/channels/sms/inbox/sms/info.modal.html",controller:"SmsInboxInfoModalCtrl",resolve:{data:function(){return b},uniqueId:function(){return a}}})}}}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.sms.inbox.view.account",{url:"/account/:id",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:11}}})}]),angular.module("xCallyShuttleApp").controller("SmsInboxViewAccountListCtrl",["$scope","$rootScope","$uibModal","$translate","$stateParams","$state","Tag","usSpinnerService","socket","SmsAccount","SmsRoom","gridOptions","uiGridConstants","Auth","Modal","xAlert","uibButtonConfig","localStorageService",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){a.initView=function(){q.activeClass="green-haze",a.id=[],a.isAdmin=n.isAdmin(),a.isAgent=n.isAgent(),a.uncheckable=!1,a.query={status:r.get("smsStatus")?r.get("smsStatus"):"NEW",tags:r.get("smsTags")?r.get("smsTags"):[]},a.$watch("query.status",function(b,c){b!==c&&(r.set("smsStatus",a.query.status),a.getPage())},!0),g.get().$promise.then(function(b){a.tags=_.map(b.rows,"name")})["catch"](function(a){console.error(a)}),a.gridOptions={exporterCsvFilename:"sms_rooms.csv",enableRowHeaderSelection:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,enableFiltering:!0,enableSorting:!0,enableGridMenu:!1,flatEntityAccess:!0,showGridFooter:!0,fastWatch:!0,enableSelectAll:!0,enableHorizontalScrollbar:0,enableVerticalScrollbar:0,columnDefs:[{name:"lastEvent",displayName:"",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div> <span data-ng-class=\"{'icon-arrow-up font-green': row.entity.lastEvent === 'SENT', 'icon-arrow-up font-yellow': row.entity.lastEvent === 'SENDING', 'icon-arrow-down font-green': row.entity.lastEvent === 'RECEIVED', 'icon-close font-red': row.entity.lastEvent === 'FAILED', 'icon-question': !row.entity.lastEvent}\"> </span> </div>",width:30,enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"tags",displayName:"",headerCellTemplate:'<i class="icon-tag" style="margin-top: 8px; margin-left: 8px;"></i>',cellClass:"text-center ui-grid-vcenter", +cellTemplate:"<div><i data-ng-class=\"row.entity.tags.length ? 'icon-tag' : ''\" title=\"{{row.entity.tags}}\"></i></div>",width:30,enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"id",displayName:"Id",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div><span>#{{row.entity.id}}</span></div>",width:75,enableSorting:!1,enableFiltering:!0,enableColumnMenu:!1},{name:"contact",cellClass:"text-center"},{name:"disposition",cellClass:"text-center"},{name:"createdAt",cellFilter:"date:'dd/MM/yyyy HH:mm'",width:120,enableFiltering:!1},{name:"updatedAt",cellFilter:"date:'dd/MM/yyyy HH:mm'",width:120,enableFiltering:!1,sort:{direction:m.DESC}},{name:"action",cellTemplate:'<div> <a class="btn btn-icon-only font-green" data-ng-click="grid.appScope.openRoom(row.entity.id, row.entity.contact)"><i class="glyphicon glyphicon-comment" aria-hidden="true"></i></a> <a class="btn btn-icon-only font-red" data-ng-show="grid.appScope.isAdmin" data-ng-click="grid.appScope.deleteItem(row.entity.id,row.entity.id)"><i class="fa fa-trash" aria-hidden="true"></i> </div>',enableSorting:!1,cellClass:"ui-grid-vcenter",width:90,enableFiltering:!1,enableColumnMenu:!1}],data:[],onRegisterApi:function(b){a.gridApi=b,a.gridApi.selection&&(a.gridApi.selection.on.rowSelectionChanged(a,function(b){b.isSelected?a.id.push(a.gridApi.grid.options.primaryKey?b.entity[a.gridApi.grid.options.primaryKey]:b.entity.id):_.pull(a.id,a.gridApi.grid.options.primaryKey?b.entity[a.gridApi.grid.options.primaryKey]:b.entity.id)}),a.gridApi.selection.on.rowSelectionChangedBatch(a,function(b){b[0].isSelected?a.id=_.union(a.id,_.map(b,a.gridApi.grid.options.primaryKey?"entity."+a.gridApi.grid.options.primaryKey:"entity.id")):_.map(b,a.gridApi.grid.options.primaryKey?"entity."+a.gridApi.grid.options.primaryKey:"entity.id").forEach(function(b){_.pull(a.id,b)})}))}},i.socket.on("sms_room:remove",function(b){_.remove(a.workspaces,{id:b.id,type:"smsRoom"}),_.remove(a.gridOptions.data,{id:b.id})}),a.getPage(a.query)},a.onChanged=function(){a.getPage(a.query)},a.tagItems=function(){return c.open({animation:!0,templateUrl:"app/channels/sms/inbox/view/view.tags.modal.html",controller:"SmsInboxViewModalTagCtrl",resolve:{id:function(){return a.id}}}).result.then(function(){a.gridApi.selection.clearSelectedRows(),a.id=[],a.getPage()})},a.disposeItems=function(){return c.open({animation:!0,templateUrl:"app/channels/sms/inbox/view/view.status.modal.html",controller:"SmsInboxViewModalStatusCtrl",resolve:{accountId:function(){return e.id}}}).result.then(function(b){return console.log(b,a.id),k.patch({id:a.id},b).$promise.then(function(){a.gridApi.selection.clearSelectedRows(),a.id=[]})["catch"](function(a){p.error(a)})})},a.openRoom=function(b,c){var d=_.find(a.workspaces,{id:b,type:"smsRoom"});return d?d.active=!0:a.workspaces.push({id:b,name:c,type:"smsRoom","class":"glyphicon glyphicon-comment",active:!0}),b&&"agent"===n.getCurrentUser().role&&"PENDING"!==a.query.status&&"CLOSED"!==a.query.status?k.patch({id:b},{status:"OPEN",openReason:"agent"}).$promise["catch"](function(a){console.error(a)}):void 0},a.getPage=function(b){h.spin("spinner-grid");var c={accountId:e.id,controller:"rooms"};return b&&_.merge(c,b),a.query&&_.merge(c,a.query),j.query(c).$promise.then(function(b){r.set("smsAccountId",e.id),a.gridOptions.data=b,i.socket.on("sms_room:save",function(b){if(console.log("data",b),console.log(b.SmsAccountId,e.id),b.SmsAccountId==e.id){var c=_.find(a.gridOptions.data,{id:b.id});c?c.status!==b.status?_.remove(a.gridOptions.data,{id:b.id}):_.merge(c,b):a.query.status===b.status&&a.gridOptions.data.push(b)}}),i.socket.on("sms_room:remove",function(b){_.remove(a.gridOptions.data,{id:b.id})})})["catch"](function(a){p.error(a)})["finally"](function(){h.stop("spinner-grid")})},a.deleteItem=o.confirm["delete"](function(b){var c={id:b};return console.log(c),k["delete"](c).$promise.then(function(){a.getPage(),p.show(d.instant("MESSAGE_WELL_DONE")+"!","success"),a.gridApi.selection.clearSelectedRows(),a.id=[]})["catch"](function(a){p.error(a)})}),a.deleteItems=o.confirm["delete"](function(){var b={ids:a.id};return k["delete"](b).$promise.then(function(){a.getPage(),p.show(d.instant("MESSAGE_WELL_DONE")+"!","success"),a.gridApi.selection.clearSelectedRows(),a.id=[]})["catch"](function(a){p.error(a)})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.sms.inbox.view.account.list",{url:"/list",templateUrl:"app/channels/sms/inbox/view/account/list/list.html",controller:"SmsInboxViewAccountListCtrl",data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:11}}})}]),angular.module("xCallyShuttleApp").controller("SmsInboxViewModalAgentCtrl",["$scope","$uibModalInstance","$translate","$stateParams","Agent","SmsRoom","xAlert","roomId",function(a,b,c,d,e,f,g,h){a.initModal=function(){a.agents=[],a.item={agents:[]},e.get().$promise.then(function(b){b.rows.forEach(function(b){a.agents.push(b)})})["catch"](function(a){console.error(a)}),f.query({id:h,controller:"agents"}).$promise.then(function(b){b.forEach(function(b){a.agents.push(b),a.item.agents.push(b.id)})})["catch"](function(a){console.error(a)}),a.modal={dismissable:!0,title:"APPLICATION_MESSAGE_SEND_RETRY",text:"MESSAGE_MESSAGE_SEND_RETRY",buttons:[{classes:"btn btn-success",text:"APPLICATION_RETRY",click:function(a){b.close(a)}},{classes:"btn default",text:"APPLICATION_CANCEL",click:function(a){b.dismiss(a)}}]}},a.ok=function(){return f.update({id:h,controller:"agents",agents:a.item.agents}).$promise.then(function(){g.show(c.instant("MESSAGE_WELL_DONE"),"success"),b.close()})["catch"](function(a){console.error(a)})},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("SmsInboxViewCtrl",["$scope","$location","$stateParams","$translate","$uibModal","socket","Auth","xAlert","SmsRoom","SmsAccount","localStorageService",function(a,b,c,d,e,f,g,h,i,j,k){a.initView=function(){return j.get().$promise.then(function(c){var d=null;if(a.smsAccounts=c.rows,a.smsAccounts.length){var e,f=k.get("smsAccountId");e=f&&_.find(a.smsAccounts,{id:Number(f)})?f:a.smsAccounts[0].id,d="/channels/sms/inbox/view/account/"+e+"/list"}d&&b.path(d)})["catch"](function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.sms.inbox.view",{url:"/view",templateUrl:"app/channels/sms/inbox/view/view.html",controller:"SmsInboxViewCtrl",reload:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/inbox.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("SmsInboxViewModalStatusCtrl",["$scope","$uibModalInstance","SmsAccount","accountId",function(a,b,c,d){a.modal={title:"APPLICATION_CONFIRM_CLOSE",text:"MESSAGE_ARE_YOU_SURE_YOU_WANT_TO_CLOSE_THE_SMS"},a.initDisposition=function(){return a.item={status:"CLOSED"},c.get({accountId:d,controller:"dispositions"}).$promise.then(function(b){a.dispositions=b.rows})["catch"](function(a){console.error(a)})},a.ok=function(){b.close(a.item)},a.cancel=function(){b.dismiss()}}]),angular.module("xCallyShuttleApp").controller("SmsInboxViewModalTagCtrl",["$scope","$uibModalInstance","$translate","$stateParams","Tag","SmsRoom","xAlert","id",function(a,b,c,d,e,f,g,h){console.log(h),a.initModal=function(){return a.tags=[],a.item={tags:[]},a.modal={dismissable:!0,title:"APPLICATION_MESSAGE_SEND_RETRY",text:"MESSAGE_MESSAGE_SEND_RETRY",buttons:[{"class":"btn-success",text:"APPLICATION_TAG",click:function(){var d={status:!0};return f.patch({id:h},{tags:a.item.tags}).$promise.then(function(){g.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(){d.status=!1,g.show(c.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})["finally"](function(){b.close(d)})}},{"class":"default",text:"APPLICATION_CANCEL",click:function(a){b.dismiss(a)}}]},e.get().$promise.then(function(b){a.tags=_.map(b.rows,"name")})["catch"](function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").controller("SmsInboxViewModalTemplateCtrl",["$scope","$uibModalInstance","Template",function(a,b,c){a.initModal=function(){return a.item={},c.get().$promise.then(function(b){a.templates=b.rows})["catch"](function(a){console.error(a)})},a.ok=function(){b.close(a.item)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("SmsQueueListCtrl",["$scope","SmsQueue","gridOptions","$uibModal","xAlert","Auth",function(a,b,c,d,e,f){a.initView=function(){a.Auth=f;var d={exporterCsvFilename:"voice_queues.csv",columnDefs:[{name:"name"},{name:"description"},{name:"timeout"},{name:"strategy"},{name:"action",width:100,buttons:[{"class":"blue-hoki",href:"/channels/sms/queues/view/{{row.entity.id}}/settings",name:"settings"},{"class":"green-meadow",href:"/channels/sms/queues/view/{{row.entity.id}}/agents",name:"agents",hide:"user"===f.getCurrentUser().role},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=c.gridOptions(b,d,a)},a.createItem=function(){var b=d.open({animation:!0,templateUrl:"app/channels/sms/queue/list/list.create.modal.html",controller:"SmsQueueListCreateCtrl",size:"lg"});b.result.then(function(b){console.log(b),a.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("SmsQueueListCreateCtrl",["$scope","$uibModalInstance","$translate","xAlert","SmsQueue","Team","strategies",function(a,b,c,d,e,f,g){a.form={},a.strategies=g,a.item={penalty:0,agents:[]},a.getTeams=function(){return f.get({controller:"associations"}).$promise.then(function(b){a.teams=b.rows}).then(function(){ComponentsDropdowns.bindQueue(a.teams,[],function(){return{select:function(b){a.item.agents=_.union(a.item.agents,b)},deselect:function(b){a.item.agents=_.difference(a.item.agents,b)}}})})["catch"](function(a){console.error(a)})},a.save=function(){return console.log(a.item),e.save(a.item).$promise.then(function(a){b.close(a)})["catch"](function(a){d.error(a)})},a.cancel=function(){b.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.sms.queues.list",{url:"/list",templateUrl:"app/channels/sms/queue/list/list.html",controller:"SmsQueueListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").factory("SmsQueue",["$resource",function(a){return a("/api/sms/queues/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.sms.queues",{url:"/queues",template:"<div ui-view></div>",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:43}}})}]),angular.module("xCallyShuttleApp").controller("SmsQueueViewCtrl",["$scope","$http","Auth","$translate","$stateParams","xAlert","Team","SmsQueue","strategies",function(a,b,c,d,e,f,g,h,i){a.strategies=i,a.Auth=c;var j=function(){return{select:function(b){return h.save({id:a.queue.id,controller:"agents"},{agents:b,penalty:a.queue.penalty}).$promise.then(function(b){console.log("sel",b),a.getTeams()})["catch"](function(a){console.error(a)})},deselect:function(b){return h["delete"]({id:a.queue.id,controller:"agents",agents:b}).$promise.then(function(b){console.log("desel",b),a.getTeams()})["catch"](function(a){console.error(a)})}}};a.getQueue=function(){return h.get({id:e.id}).$promise.then(function(b){b.penalty=0,a.queue=b})["catch"](function(a){console.error(a)})},a.updateSmsQueue=function(){return h.update({id:e.id},{name:a.queue.name,description:a.queue.description,timeout:a.queue.timeout,strategy:a.queue.strategy}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})},a.getTeams=function(){return g.get({controller:"associations"}).$promise.then(function(b){return a.teams=b.rows,console.log(b.rows),h.get({id:e.id,controller:"agents"}).$promise}).then(function(b){console.log(b),ComponentsDropdowns.bindSmsQueue(a.teams,_.map(b.rows,function(a){return{id:a.id,penalty:a.UserHasSmsQueue.penalty}}),j)})["catch"](function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.sms.queues.view",{url:"/view/:id",templateUrl:"app/channels/sms/queue/view/view.html",controller:"SmsQueueViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.channels.sms.queues.view.settings",{url:"/settings",templateUrl:"app/channels/sms/queue/view/view.settings.html"}).state("main.channels.sms.queues.view.agents",{url:"/agents",templateUrl:"app/channels/sms/queue/view/view.agents.html",cache:!1,serie:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.sms.realtime",{url:"/realtime",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:45}}})}]),angular.module("xCallyShuttleApp").controller("SmsRealtimeViewAgentCtrl",["$scope","$log","$uibModal","$translate","socket","xAlert","Agent","Pause","Action","SmsQueue","usSpinnerService","$q","uiGridConstants","$timeout","Auth","User",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){function q(){return k.spin("grid-spinner"),g.get(w).$promise.then(function(b){a.gridOptions.totalItems=b.count,a.gridOptions.data=[],b.rows.forEach(function(a){s(a)})})["catch"](function(a){f.error(a)})["finally"](function(){k.stop("grid-spinner")})}function r(){e.socket.on("agent:save",function(b){b=b.newValues||b;var c=_.find(a.gridOptions.data,{agentId:b.id,isAgent:!0});c&&(c.online=_.has(b,"online")?b.online:c.online,c.lastLoginAt=_.has(b,"lastLoginAt")?b.lastLoginAt:c.lastLoginAt,c.pause=_.has(b,"smsPause")?b.smsPause:c.smsPause,c.pauseType=_.has(b,"pauseType")?b.pauseType:c.pauseType,c.lastPauseAt=_.has(b,"lastPauseAt")?b.lastPauseAt:c.lastPauseAt,c.ipaddr=_.has(b,"ipaddr")?b.ipaddr:c.ipaddr,c.port=_.has(b,"port")?b.port:c.port,c.fullcontact=_.has(b,"fullcontact")?b.fullcontact:c.fullcontact,c.useragent=_.has(b,"useragent")?b.useragent:c.useragent,c.lastms=_.has(b,"lastms")?b.lastms:c.lastms,c.internal=_.has(b,"internal")?b.internal:c.internal,c.fullname=b.hasOwnProperty("fullname")?b.fullname:c.fullname,_.map(a.gridOptions.data,function(a){a.isAgent||a.agentId!==b.id||(a.online=_.has(b,"online")?b.online:a.online)}))}),e.socket.on("agent:remove",function(b){_.remove(a.gridOptions.data,{agentId:b.id})}),e.socket.on("user_has_sms_queue:save",function(b){var c=_.includes(_.map(a.pSmsQueues,"id"),b.SmsQueueId)||o.isAdmin();if(c){var d=_.find(a.gridOptions.data,{agentId:Number(b.UserId),isAgent:!0});if(d){var e=a.gridOptions.data.indexOf(d);a.gridOptions.data.splice(e+1,0,{isAgent:!1,agentId:Number(b.UserId),queue:b.queue,queueId:b.SmsQueueId,agent:b.membername,online:d.online})}}}),e.socket.on("user_has_sms_queue:remove",function(b){_.remove(a.gridOptions.data,{agentId:b.UserId,queueId:b.SmsQueueId});var c=_.filter(a.gridOptions.data,{agentId:b.UserId});c&&c.length<=1&&!o.isAdmin()&&_.remove(a.gridOptions.data,{agentId:b.UserId})})}function s(b){a.gridOptions.data.push({isAgent:!0,agentId:b.id,agent:b.name,online:b.online,lastLoginAt:b.lastLoginAt,lastPauseAt:b.lastPauseAt,pause:b.smsPause,pauseType:b.pauseType,ipaddr:b.ipaddr,port:b.port,fullcontact:b.fullcontact,useragent:b.useragent,lastms:b.lastms,internal:b.internal,$$treeLevel:0,fullname:b.fullname}),b.SmsQueues&&b.SmsQueues.forEach(function(c){a.gridOptions.data.push({isAgent:!1,agentId:b.id,queue:c.name,queueId:c.id,agent:b.name,online:b.online})})}function t(){return h.get().$promise.then(function(b){a.pauses=b.rows,e.syncUpdates("pause",a.pauses)})["catch"](function(a){f.error(a)})}function u(){return j.get().$promise.then(function(b){a.smsQueues=b.rows,e.syncUpdates("sms_queue",a.smsQueues)})["catch"](function(a){f.error(a)})}function v(){return p.query({id:a.user.id,controller:"allowed",controller2:"sms",controller3:"queues"}).$promise.then(function(b){a.pSmsQueues=b})["catch"](function(a){f.error(a)})}a.smsQueues=[];var w={controller:"realtime",controller1:"sms",offset:0,limit:10};a.moment=moment,a.initAgents=function(){a.user=o.getCurrentUser(),a.gridOptions={enableGridMenu:!0,headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,showGridFooter:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,useExternalPagination:!0,useExternalSorting:!0,useExternalFiltering:!0,multiSelect:!0,showTreeExpandNoChildren:!0,columnDefs:[{name:"name",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.isAgent">{{row.entity.agent}} <{{row.entity.internal}}></div>'},{name:"fullname",displayName:"APPLICATION_FULLNAME",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.isAgent">{{row.entity.fullname}}</div>'},{name:"online",displayName:"APPLICATION_ONLINE",width:150,headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.online != null && row.entity.isAgent"><i class="fa" data-ng-class="{\'font-green\':row.entity.online, \'font-red\':!row.entity.online,\'fa-user\':row.entity.online,\'fa-user-times\':!row.entity.online}"></i> <i data-ng-if="row.entity.online" class="fa fa-sign-out font-red pointer-cursor" title="logout" data-ng-click="grid.appScope.agentLogout(row.entity.agent,row.entity.agentId)"></i> <span data-ng-if="row.entity.online && grid.appScope.showTimers" class="left-margin"><css-timer start-time="row.entity.lastLoginAt"></css-timer></span></div>',filter:{type:m.filter.SELECT,selectOptions:[{value:"true",label:"ONLINE"},{value:"false",label:"OFFLINE"}]}},{name:"smsPause",displayName:"APPLICATION_PAUSE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.pause != null && row.entity.online" class="ui-grid-vcenter"><i data-ng-if="row.entity.pause" data-ng-click="grid.appScope.pause(row.entity,\'unpause\')" class="fa fa-play font-green pointer-cursor left-margin" title="{{\'APPLICATION_RESUME\' | translate}}"></i><i class="fa fa-pause font-yellow pointer-cursor" data-ng-click="grid.appScope.pause(row.entity,\'pause\',\'DEFAULT PAUSE\')" title="{{\'APPLICATION_DEFAULT_PAUSE\' | translate}}"></i><select data-ng-if="grid.appScope.pauses.length" class="pause-select pointer-cursor" data-ng-model="grid.appScope.pauseType" data-ng-change="grid.appScope.pause(row.entity,\'pause\',grid.appScope.pauseType)"><option class="pointer-cursor" data-ng-repeat="pause in grid.appScope.pauses">{{pause.name}}</option></select> <span data-ng-if="row.entity.pause" class="left-margin">({{row.entity.pauseType}})</span><span data-ng-if="row.entity.pause && grid.appScope.showTimers" class="left-margin"><css-timer start-time="row.entity.lastPauseAt"></css-timer></span></div>',filter:{type:m.filter.SELECT,selectOptions:[{value:"true",label:"PAUSED"},{value:"false",label:"NOT PAUSED"}]},enableSorting:!1,enableColumnMenu:!1},{name:"queue",displayName:"APPLICATION_QUEUE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"action",displayName:"",width:170,cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><button data-ng-if="row.entity.queueId" class="btn btn-xs red-sunglo" data-ng-click="grid.appScope.leaveQueue(row.entity.agentId,row.entity.queueId)"><i class="icon-ban"></i> {{\'APPLICATION_LEAVE\' | translate}}</button><button data-ng-if="row.entity.isAgent && row.treeNode.children.length < grid.appScope.smsQueues.length" class="btn btn-xs blue-hoki" data-ng-click="grid.appScope.joinQueue(row.entity.agentId)"><i class="icon-plus"></i> {{\'APPLICATION_JOIN_QUEUE\' | translate}}</button><div>',enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1}],data:[],gridMenuTitleFilter:function(a){var b=l.defer();return b.resolve(d.instant(a)),b.promise},onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){x(a.gridApi.core.getVisibleRows(a.gridApi.grid).length)}),a.gridApi.treeBase.on.rowExpanded(a,function(b){x(a.gridApi.core.getVisibleRows(a.gridApi.grid).length+b.treeNode.children.length)}),a.gridApi.treeBase.on.rowCollapsed(a,function(b){x(a.gridApi.core.getVisibleRows(a.gridApi.grid).length-b.treeNode.children.length)}),a.gridApi.core.on.sortChanged(a,function(a,b){0===b.length?w.order=null:w.order=b[0].name+" "+b[0].sort.direction.toUpperCase(),q()}),a.gridApi.pagination.on.paginationChanged(a,function(a,b){w.offset=(a-1)*b,w.limit=b,q()}),a.gridApi.core.on.filterChanged(a,function(){var a=this.grid;a.columns.forEach(function(a){a.filters[0].term?w[a.name]=a.filters[0].term:delete w[a.name]}),q()})}},q(),t(),u(),v(),n(function(){r()})};var x=function(a){var b=a?30*a+130:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",b+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*a+"px")};a.$on("$destroy",function(){e.unsyncUpdates("agent"),e.unsyncUpdates("user_has_sms_queue")}),a.pause=function(b,c,e){return e&&(a.pauseType=null),i.save({name:c,agent:b.agentId,data2:b.agent,type:e||"DEFAULT PAUSE",data4:e||"DEFAULT PAUSE",channel:"sms"}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})},a.joinQueue=function(e){var g=c.open({animation:!0,templateUrl:"app/channels/sms/realtime/view/agent/queue.modal.add.html",controller:"SmsRealtimeViewAgentQueueModalCtrl",resolve:{queues:function(){return _.reject(a.smsQueues,function(b){return!!_.find(a.gridOptions.data,{queue:b.name,isAgent:!1,agentId:e})})}}});g.result.then(function(b){return i.save({name:"QueueAdd",agent:e,queues:_.filter(a.smsQueues,function(a){return _.includes(b.queues,a.id)}),channel:"sms",data1:e,data3:b.queues.join(","),data4:"sms"}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})},function(){b.info("Modal dismissed at: "+new Date)})},a.leaveQueue=function(a,b){return i.save({name:"QueueRemove",agent:a,queueId:b,channel:"sms",data1:a,data3:b,data4:"sms"}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})},a.showInfo=function(a){c.open({animation:!0,templateUrl:"app/channels/sms/realtime/view/agent/agent.modal.info.html",controller:"SmsRealtimeViewAgentInfoModalCtrl",resolve:{agent:a}})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.sms.realtime.view.agents",{url:"/agents",templateUrl:"app/channels/sms/realtime/view/agent/agent.html",controller:"SmsRealtimeViewAgentCtrl"})}]),angular.module("xCallyShuttleApp").controller("SmsRealtimeViewAgentInfoModalCtrl",["$scope","$uibModalInstance","$http","agent",function(a,b,c,d){a.agent=d,a.close=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("SmsRealtimeViewAgentQueueModalCtrl",["$scope","$uibModalInstance","$http","queues",function(a,b,c,d){a.queues=d,a.item={},a.save=function(){b.close(a.item)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("SmsRealtimeViewApplicationCtrl",["$scope","$log","$uibModal","$translate","socket","xAlert","ReportSmsSession","usSpinnerService","$q","uiGridConstants","$timeout",function(a,b,c,d,e,f,g,h,i,j,k){function l(){return h.spin("spinner-grid"),g.get({controller:"waiting",controller2:"applications"}).$promise.then(function(b){a.gridOptions.data=b.rows})["catch"](function(a){f.error(a)})["finally"](function(){m(),h.stop("spinner-grid")})}function m(){e.socket.on("report_sms_session:save",function(b){var c=_.find(a.gridOptions.data,{id:b.id});c?(_.merge(c,b),b.leaveAt&&k(function(){_.remove(a.gridOptions.data,{id:b.id})},1e4)):b.leaveAt||a.gridOptions.data.push(b)}),e.socket.on("report_sms_session:remove",function(b){_.remove(a.gridOptions.data,{id:b.id})})}a.moment=moment,a.initApplications=function(){a.gridOptions={headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,columnDefs:[{name:"uniqueid",displayName:"APPLICATION_UNIQUEID",headerCellFilter:"translate"},{name:"accountname",displayName:"APPLICATION_ACCOUNT",headerCellFilter:"translate"},{name:"application",displayName:"APPLICATION_APPLICATION",headerCellFilter:"translate"},{name:"status",displayName:"APPLICATION_STATUS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span data-ng-if="!row.entity.leaveAt">{{\'APPLICATION_QUEUESTATUS_WAITING\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.complete">{{\'APPLICATION_QUEUESTATUS_COMPLETE\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.timeout">{{\'APPLICATION_TIMEOUT\' | translate}}</span> <span data-ng-if="!row.entity.leaveAt && grid.appScope.showTimers"><css-timer start-time="row.entity.updatedAt"></css-timer></span></div>',enableSorting:!1,enableColumnMenu:!1,enableFiltering:!1},{name:"membername",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.membername || ''}}</span></div>"},{name:"queuename",displayName:"APPLICATION_QUEUE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.queuename || ''}}</span></div>"}],data:[],gridMenuTitleFilter:function(a){var b=i.defer();return b.resolve(d.instant(a)),b.promise},onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){n(a.gridOptions.data.length)})}},l()};var n=function(a){var b=a?30*a+60:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",b+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*a+"px")};a.$on("$destroy",function(){e.unsyncUpdates("report_sms_session")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.sms.realtime.view.applications",{url:"/applications",templateUrl:"app/channels/sms/realtime/view/application/application.html",controller:"SmsRealtimeViewApplicationCtrl"})}]),angular.module("xCallyShuttleApp").controller("SmsRealtimeViewCtrl",["$scope","$state",function(a,b){a.agents=[{name:"Queues",link:"main.channels.sms.realtime.view.agents.queues"},{name:"Timeline",link:"main.channels.sms.realtime.view.agents.timeline"}],a.sessions=[{name:"Sessions",link:"main.channels.sms.realtime.view.sessions"}],a.tree={queues:[{name:"Queues",link:"main.channels.sms.realtime.view.agents.queues"},{name:"Timeline",link:"main.channels.sms.realtime.view.agents.timeline"}],sessions:[{name:"Sessions",link:"main.channels.sms.realtime.view.sessions"}]},a.timerSwitch={isActive:!0,size:"mini",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"primary"},a.showTimers=!1}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.sms.realtime.view",{url:"/view",templateUrl:"app/channels/sms/realtime/view/view.html",controller:"SmsRealtimeViewCtrl"})}]),angular.module("xCallyShuttleApp").factory("ReportSmsSession",["$resource",function(a){return a("/api/report/sms/sessions/:id/:controller/:controller2",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.sms",{url:"/sms",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:11}}})}]),angular.module("xCallyShuttleApp").factory("SmsQueue",["$resource",function(a){return a("/api/sms/queues/:id/:controller",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("SmsReport",["$resource",function(a){return a("/api/report/sms/:id/:controller1/:controller2",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("SmsMessage",["$resource",function(a){return a("/api/sms/messages/:id/:controller",{id:"@id",controller:"@controller"},{update:{method:"PUT"},patch:{method:"PATCH"}})}]),angular.module("xCallyShuttleApp").factory("SmsRoom",["$resource",function(a){return a("/api/sms/rooms/:id/:controller",{id:"@id",controller:"@controller"},{update:{method:"PUT"},patch:{method:"PATCH"}})}]),angular.module("xCallyShuttleApp").factory("ChanSpy",["$resource",function(a){return a("/api/chanspy/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.chanspy",{url:"/chanspy",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:27}}})}]),angular.module("xCallyShuttleApp").controller("ChanSpyListCtrl",["$scope","$uibModal","ChanSpy","gridOptions",function(a,b,c,d){a.initView=function(){var b={exporterCsvFilename:"chanspy.csv",columnDefs:[{name:"name"},{name:"prefix"},{name:"description"},{name:"action",width:75,buttons:[{"class":"blue-hoki",href:"/channels/voice/chanspy/view/{{row.entity.id}}/settings",name:"settings"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=d.gridOptions(c,b,a)},a.createItem=function(){var c=b.open({animation:!0,templateUrl:"app/channels/voice/chanspy/list/list.create.modal.html",controller:"ChanSpyListCreateCtrl"});c.result.then(function(b){a.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("ChanSpyListCreateCtrl",["$scope","$translate","$uibModalInstance","ChanSpy","xAlert",function(a,b,c,d,e){a.form={},a.item={auth:!1,record:!1},a.recordSwitch={onText:"On",offText:"Off",isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.authSwitch={onText:"On",offText:"Off",isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.options=[{name:"APPLICATION_CHANSPY_OPTION_b",value:"b"},{name:"APPLICATION_CHANSPY_OPTION_B",value:"B"},{name:"APPLICATION_CHANSPY_OPTION_E",value:"E"},{name:"APPLICATION_CHANSPY_OPTION_o",value:"o"},{name:"APPLICATION_CHANSPY_OPTION_q",value:"q"},{name:"APPLICATION_CHANSPY_OPTION_s",value:"s"},{name:"APPLICATION_CHANSPY_OPTION_S",value:"S"},{name:"APPLICATION_CHANSPY_OPTION_w",value:"w"},{name:"APPLICATION_CHANSPY_OPTION_W",value:"W"}],a.save=function(){return a.item.options=a.item.options.join(""),d.save(a.item).$promise.then(function(a){e.show(b.instant("MESSAGE_WELL_DONE"),"success"),c.close(a)})["catch"](function(a){e.error(a)})},a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.chanspy.list",{url:"/list",templateUrl:"app/channels/voice/chanspy/list/list.html",controller:"ChanSpyListCtrl"})}]),angular.module("xCallyShuttleApp").controller("ChanSpyViewCtrl",["$scope","$translate","$stateParams","xAlert","ChanSpy",function(a,b,c,d,e){a.recordSwitch={onText:"On",offText:"Off",isActive:!0, +size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.authSwitch={onText:"On",offText:"Off",isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.options=[{name:"APPLICATION_CHANSPY_OPTION_b",value:"b"},{name:"APPLICATION_CHANSPY_OPTION_B",value:"B"},{name:"APPLICATION_CHANSPY_OPTION_E",value:"E"},{name:"APPLICATION_CHANSPY_OPTION_o",value:"o"},{name:"APPLICATION_CHANSPY_OPTION_q",value:"q"},{name:"APPLICATION_CHANSPY_OPTION_s",value:"s"},{name:"APPLICATION_CHANSPY_OPTION_S",value:"S"},{name:"APPLICATION_CHANSPY_OPTION_w",value:"w"},{name:"APPLICATION_CHANSPY_OPTION_W",value:"W"}],a.getChanSpy=function(){return e.get({id:c.id}).$promise.then(function(b){b.options=b.options.split(""),a.chanspy=b})["catch"](function(a){d.error(a)})},a.updateChanSpy=function(){var f=angular.copy(a.chanspy);return f.options=f.options.join(""),e.update({id:c.id},f).$promise.then(function(){d.show(b.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){d.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.chanspy.view",{url:"/view/:id",templateUrl:"app/channels/voice/chanspy/view/view.html",controller:"ChanSpyViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.channels.voice.chanspy.view.settings",{url:"/settings",templateUrl:"app/channels/voice/chanspy/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").factory("VoiceContext",["$resource",function(a){return a("/api/voice/contexts/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.contexts",{url:"/contexts",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:22}}})}]),angular.module("xCallyShuttleApp").controller("VoiceContextListCtrl",["$scope","VoiceContext","gridOptions","$uibModal","xAlert","$translate",function(a,b,c,d,e,f){a.initView=function(){var d={exporterCsvFilename:"voice_contexts.csv",columnDefs:[{name:"name"},{name:"description"},{name:"action",width:75,buttons:[{"class":"{{row.entity.defaultEntry ? 'blue-hoki disabled' : 'blue-hoki'}}",href:"/channels/voice/contexts/view/{{row.entity.id}}/settings",name:"settings"},{"class":"{{row.entity.defaultEntry ? 'red-sunglo disabled' : 'red-sunglo'}}",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=c.gridOptions(b,d,a)},a.createItem=function(){var c=d.open({animation:!0,templateUrl:"app/channels/voice/context/list/create.modal.html",controller:["$scope","$uibModalInstance",function(a,b){a.form={},a.item={},a.ok=function(){b.close(a.item)},a.cancel=function(){b.dismiss("cancel")}}]});c.result.then(function(c){return b.save(c).$promise.then(function(){a.gridOptions.getPage(),e.show(f.instant("MESSAGE_WELL_DONE")+"!","success")})["catch"](function(a){e.error(a)})})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.contexts.list",{url:"/list",templateUrl:"app/channels/voice/context/list/list.html",controller:"VoiceContextListCtrl"})}]),angular.module("xCallyShuttleApp").controller("VoiceContextViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","$location",function(a,b,c,d,e,f){a.getContext=function(){b.get("/api/voice/contexts/"+e.id).success(function(b){a.context=b}).error(function(a){console.error(a),f.path("/voice/contexts/list")})},a.updateVoiceContext=function(){var f=angular.copy(a.context);b.put("/api/voice/contexts/"+e.id,f).success(function(){c.show(d.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(b){c.error(b),a.context=f})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.contexts.view",{url:"/view/:id",templateUrl:"app/channels/voice/context/view/view.html",controller:"VoiceContextViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.channels.voice.contexts.view.settings",{url:"/settings",templateUrl:"app/channels/voice/context/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.dispositions",{url:"/dispositions",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:28}}})}]),angular.module("xCallyShuttleApp").controller("VoiceDispositionListCtrl",["$scope","$stateParams","$uibModal","$translate","VoiceDisposition","xAlert",function(a,b,c,d,e,f){a.initView=function(){return e.get().$promise.then(function(b){a.dispositions=b.rows})["catch"](function(a){console.error(a),f.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.updateDisposition=function(a,b){return e.update({id:a},{name:b}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE")+"!","success")})["catch"](function(a){console.error(a),f.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.deleteDisposition=function(b){return e.remove({id:b}).$promise.then(function(){_.remove(a.dispositions,{id:b}),f.show(d.instant("MESSAGE_WELL_DONE")+"!","success")})["catch"](function(a){console.error(a),f.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.addDisposition=function(){return c.open({animation:!0,templateUrl:"app/channels/voice/disposition/list/modal/add.modal.html",controller:"VoiceDispositionListModalDispositionAddCtrl"}).result.then(function(b){b&&(a.dispositions.push(b),f.show(d.instant("MESSAGE_WELL_DONE")+"!","success"))})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.dispositions.list",{url:"/list",templateUrl:"app/channels/voice/disposition/list/list.html",controller:"VoiceDispositionListCtrl"})}]),angular.module("xCallyShuttleApp").controller("VoiceDispositionListModalDispositionAddCtrl",["$scope","$uibModalInstance","VoiceDisposition","xAlert","$translate",function(a,b,c,d,e){a.ok=function(){return c.save({name:a.name}).$promise.then(function(a){b.close(a)})["catch"](function(a){d.show(e.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").factory("VoiceDisposition",["$resource",function(a){return a("/api/voice/dispositions/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("VoiceMohListCtrl",["$scope","gridOptions","VoiceMoh","$uibModal","xAlert","$translate",function(a,b,c,d,e,f){a.initView=function(){var d={exporterCsvFilename:"voice_mohs.csv",columnDefs:[{name:"name"},{name:"mode"},{name:"directory"},{name:"sort"},{name:"description"},{name:"action",width:75,buttons:[{"class":"blue-hoki",href:"/channels/voice/mohs/view/{{row.entity.id}}/settings",name:"settings"},{"class":"{{row.entity.defaultEntry ? 'red-sunglo disabled' : 'red-sunglo'}}",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=b.gridOptions(c,d,a)},a.createItem=function(){var b=d.open({animation:!0,templateUrl:"app/channels/voice/moh/list/create.modal.html",controller:["$scope","$uibModalInstance",function(a,b){a.form={},a.item={},a.ok=function(){b.close(a.item)},a.cancel=function(){b.dismiss("cancel")}}]});b.result.then(function(b){return c.save(b).$promise.then(function(){a.gridOptions.getPage(),e.show(f.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){e.error(a)})})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.mohs.list",{url:"/list",templateUrl:"app/channels/voice/moh/list/list.html",controller:"VoiceMohListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").factory("VoiceMoh",["$resource",function(a){return a("/api/voice/musiconholds/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.mohs",{url:"/mohs",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:24}}})}]),angular.module("xCallyShuttleApp").controller("VoiceMohViewCtrl",["$scope","$http","xAlert","$translate","VoiceMoh","$stateParams","socket","Modal","$sce","$location","Sound",function(a,b,c,d,e,f,g,h,i,j,k){a.$translate=d,a.audioSources={},a.sortOptions=[{value:"random",name:"APPLICATION_RANDOM"},{value:"alpha",name:"APPLICATION_ALPHABETICAL"}],a.getMoh=function(){return e.get({id:f.id}).$promise.then(function(b){delete b.stamp,a.moh=b})["catch"](function(a){c.error(a)})},a.updateVoiceMoh=function(){return e.update({id:f.id},a.moh).$promise.then(function(){c.show(d.instant("MESSAGE_WELL_DONE")+"!","success")})["catch"](function(a){c.error(a)})},a.addMohs=function(){return e.save({id:f.id,controller:"files"},a.item).$promise.then(function(){j.path("/channels/voice/mohs/view/"+f.id+"/audios")})["catch"](function(a){c.error(a)})},a.getAudioFiles=function(){return e.get({id:f.id,controller:"files"}).$promise.then(function(b){a.audioFiles=b.files,a.mohPath=b.path,a.audioFiles.forEach(function(a){l(a)})})["catch"](function(a){c.error(a)})},a.getSecureSrc=function(a){return i.trustAsResourceUrl(a)},a.getSounds=function(){return a.item={sounds:[]},k.get().$promise.then(function(b){a.soundList=b.rows})["catch"](function(a){c.error(a)})};var l=function(c){b.get("/api/voice/musiconholds/stream",{params:{path:encodeURI(a.mohPath+"/"+c)}}).success(function(b){a.audioSources[c]="data:audio/ogg;base64,"+b}).error(function(a){console.error(a)})};a.deleteItem=h.confirm["delete"](function(e){b["delete"]("/api/voice/musiconholds/"+f.id+"/files",{params:{filename:e}}).success(function(){_.remove(a.audioFiles,function(a){return a===e}),c.show(d.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(a){c.error(a)})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.mohs.view",{url:"/view/:id",templateUrl:"app/channels/voice/moh/view/view.html",controller:"VoiceMohViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.channels.voice.mohs.view.settings",{url:"/settings",templateUrl:"app/channels/voice/moh/view/view.settings.html"}).state("main.channels.voice.mohs.view.audios",{url:"/audios",templateUrl:"app/channels/voice/moh/view/view.audios.html",cache:!1}).state("main.channels.voice.mohs.view.add",{url:"/add",templateUrl:"app/channels/voice/moh/view/view.addFiles.html",cache:!1})}]),angular.module("xCallyShuttleApp").controller("VoiceQueueListCtrl",["$scope","$rootScope","$uibModal","VoiceQueue","gridOptions","Auth",function(a,b,c,d,e,f){a.initView=function(){a.Auth=f;var b={exporterCsvFilename:"voice_queues.csv",primaryKey:"name",columnDefs:[{name:"name"},{name:"strategy"},{name:"description"},{name:"action",width:100,buttons:[{"class":"blue-hoki",href:"/channels/voice/queues/view/{{row.entity.name}}/settings",name:"settings"},{"class":"green-meadow",href:"/channels/voice/queues/view/{{row.entity.name}}/agents",name:"agents",hide:"user"===f.getCurrentUser().role},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.name)"}]}]};a.gridOptions=e.gridOptions(d,b,a)},a.createItem=function(){var b=c.open({animation:!0,templateUrl:"app/channels/voice/queue/list/list.create.modal.html",controller:"VoiceQueueListCreateCtrl",size:"lg"});b.result.then(function(){a.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("VoiceQueueListCreateCtrl",["$scope","$uibModalInstance","$translate","xAlert","VoiceQueue","Team",function(a,b,c,d,e,f){a.form={},a.item={penalty:0,agents:[]},a.getTeams=function(){return f.get({controller:"associations"}).$promise.then(function(b){a.teams=b.rows}).then(function(){ComponentsDropdowns.bindQueue(a.teams,[],function(){return{select:function(b){a.item.agents=_.union(a.item.agents,b),console.log(a.item.agents)},deselect:function(b){a.item.agents=_.difference(a.item.agents,b),console.log(a.item.agents)}}})})["catch"](function(a){console.error(a)})},a.save=function(){return e.save(a.item).$promise.then(function(a){d.show(c.instant("MESSAGE_WELL_DONE"),"success"),b.close(a)})["catch"](function(a){d.error(a)})},a.cancel=function(){b.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.queues.list",{url:"/list",templateUrl:"app/channels/voice/queue/list/list.html",controller:"VoiceQueueListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.queues",{url:"/queues",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin"],redirectTo:"landing"}}})}]),angular.module("xCallyShuttleApp").factory("ReportQueue",["$resource",function(a){return a("/api/report/queues/:id/:controller/:controller2",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("UserHasVoiceQueue",["$resource",function(a){return a("/api/voice/user_has_queues/:controller",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("VoiceQueueViewCtrl",["$scope","xAlert","$translate","$stateParams","socket","$location","VoiceQueue","Team","Auth","VoiceMoh","Sound","Setting",function(a,b,c,d,e,f,g,h,i,j,k,l){a.Auth=i,a.binaryChoices=[{name:"Yes",value:1},{name:"No",value:0}],a.recordSwitch={onText:"On",offText:"Off",isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.autoPauseValues=[{name:"No",value:"no"},{name:"Yes",value:"all"}],a.monitorFormats=[{name:"wav",value:"wav"},{name:"gsm",value:"gsm"},{name:"Inactive",value:""}],a.queueAnnounces=[{display_name:"Default",path:null},{display_name:"Disabled",path:""}];var m=function(){return{select:function(b){return g.save({id:a.queue.name,controller:"agents"},{agents:b,penalty:a.queue.penalty}).$promise.then(function(){a.getTeams()})["catch"](function(a){console.log(a)})},deselect:function(b){return g["delete"]({id:a.queue.name,controller:"agents",agents:b}).$promise.then(function(){a.getTeams()})["catch"](function(a){console.log(a)})}}};a.getQueue=function(){return g.get({id:d.id}).$promise.then(function(b){b.joinempty=""===b.joinempty?[]:b.joinempty.split(","),b.leavewhenempty=""===b.leavewhenempty?[]:b.leavewhenempty.split(","),b.periodic_announce=""===b.periodic_announce?[]:b.periodic_announce.split(","),b.setinterfacevar="yes"===b.setinterfacevar,b.setqueuevar="yes"===b.setqueuevar,b.setqueueentryvar="yes"===b.setqueueentryvar,b.penalty=0,a.queue=b})["catch"](function(a){f.path("/channels/voice/queues/list")})},a.updateVoiceQueue=function(){var e=angular.copy(a.queue);return e.joinempty=e.joinempty.join(","),e.leavewhenempty=e.leavewhenempty.join(","),e.periodic_announce=e.periodic_announce.join(","),e.setinterfacevar=e.setinterfacevar?"yes":"no",e.setqueuevar=e.setqueuevar?"yes":"no",e.setqueueentryvar=e.setqueueentryvar?"yes":"no",e.context||(e.context=null),g.update({id:d.id},e).$promise.then(function(){b.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){b.error(a)})},a.getTeams=function(){return h.get({controller:"associations"}).$promise.then(function(b){return a.teams=b.rows,g.get({id:d.id,controller:"agents"}).$promise}).then(function(b){ComponentsDropdowns.bindQueue(a.teams,_.map(b.rows,function(a){return{id:a.id,penalty:a.UserHasVoiceQueue.penalty}}),m)})["catch"](function(a){console.error(a)})},a.getMohs=function(){return j.get().$promise.then(function(b){a.voiceMohs=b.rows,e.syncUpdates("voice_musiconhold",a.voiceMohs)})["catch"](function(a){b.error(a)})},a.getSounds=function(){var b;return l.get({id:1}).$promise.then(function(a){return b=a,k.get().$promise}).then(function(c){var d=b.soundPath||"/var/opt/motion/server/files/sounds/converted";_.forEach(c.rows,function(a){a.path=(d+"/"+a.save_name).replace(/\/+/g,"/").replace(/\\+/g,"\\")}),a.queueAnnounces=a.queueAnnounces.concat(c.rows),a.periodicAnnounces=angular.copy(c.rows),c.rows.unshift({display_name:"None",path:""}),a.sounds=c.rows,e.syncUpdates("sound",a.sounds)})["catch"](function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.queues.view",{url:"/view/:id",templateUrl:"app/channels/voice/queue/view/view.html",controller:"VoiceQueueViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.channels.voice.queues.view.settings",{url:"/settings",templateUrl:"app/channels/voice/queue/view/view.settings.html"}).state("main.channels.voice.queues.view.agents",{url:"/agents",templateUrl:"app/channels/voice/queue/view/view.agents.html",cache:!1,serie:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").factory("VoiceQueue",["$resource",function(a){return a("/api/voice/queues/:id/:controller",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.realtime",{url:"/realtime",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:26}}})}]),angular.module("xCallyShuttleApp").controller("VoiceRealtimeViewAbandonedCtrl",["$scope","$translate","socket","xAlert","ReportQueue","usSpinnerService","$q","Auth","uiGridConstants",function(a,b,c,d,e,f,g,h,i){function j(){return f.spin("spinner-grid"),e.get({controller:"abandoned",controller2:"all"}).$promise.then(function(b){a.gridOptions.data=b.rows})["catch"](function(a){d.error(a)})["finally"](function(){k(),f.stop("spinner-grid")})}function k(){c.socket.on("report_queue:update",function(b){if(b.queuecallerabandon){var c=_.find(a.gridOptions.data,{id:b.id});c?_.merge(c,b):a.gridOptions.data.unshift(b)}})}a.radioSwitch={size:"mini",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"success",onColor:"danger"};a.initAbandoned=function(){a.agent=h.getCurrentUser(),a.gridOptions={exporterCsvFilename:"abandoned_calls.csv",enableRowHeaderSelection:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,enableFiltering:!0,enableSorting:!0,enableGridMenu:!1,flatEntityAccess:!0,showGridFooter:!0,fastWatch:!0,enableSelectAll:!1,enableHorizontalScrollbar:0,enableVerticalScrollbar:1,columnDefs:[{name:"queue",displayName:"APPLICATION_QUEUE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter"},{name:"calleridnum",displayName:"APPLICATION_CALLERIDNUM",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter"},{name:"updatedAt",displayName:"APPLICATION_DATE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.updatedAt | date:'yyyy-MM-dd HH:mm:ss'}}</div>"},{name:"lastAssignedTo",cellClass:"text-center ui-grid-vcenter",displayName:"APPLICATION_LAST_ASSIGNED_TO",headerCellFilter:"translate"},{name:"assigned",displayName:"APPLICATION_STATUS",headerCellFilter:"translate",cellTemplate:'<div class="centered-uigrid-td"><input data-ng-change="grid.appScope.updateItem(row.entity)", bs-switch ng-model="row.entity.assigned" type="checkbox" switch-active="{{ !row.entity.assigned || grid.appScope.agent.name === row.entity.lastAssignedTo }}" switch-on-text="{{ \'APPLICATION_ASSIGNED\' | translate }}" switch-off-text="{{ \'APPLICATION_FREE\' | translate }}" switch-on-color="{{ grid.appScope.radioSwitch.onColor }}" switch-off-color="{{ grid.appScope.radioSwitch.offColor }}" switch-animate="{{ grid.appScope.radioSwitch.animate }}" switch-size="{{ grid.appScope.radioSwitch.size }}" switch-label="{{ grid.appScope.radioSwitch.label }}" switch-icon="{{ grid.appScope.radioSwitch.icon }}" switch-radio-off="{{ grid.appScope.radioSwitch.radioOff }}" switch-label-width="{{ grid.appScope.radioSwitch.labelWidth }}" switch-handle-width="{{ grid.appScope.radioSwitch.handleWidth }}"></div>',enableFiltering:!1}],data:[],gridMenuTitleFilter:function(a){var c=g.defer();return c.resolve(b.instant(a)),c.promise},onRegisterApi:function(b){a.gridApi=b}},j()},a.updateItem=function(c){return e.update({id:c.id},{assigned:c.assigned,lastAssignedTo:c.assigned?a.agent.name:void 0}).$promise.then(function(){d.show(b.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){d.error(a)})};a.$on("$destroy",function(){c.unsyncUpdates("report_queue")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.realtime.view.abandoned",{url:"/abandoned",templateUrl:"app/channels/voice/realtime/view/abandoned/abandoned.html",controller:"VoiceRealtimeViewAbandonedCtrl"})}]),angular.module("xCallyShuttleApp").controller("VoiceRealtimeViewAgentCtrl",["$scope","$log","$uibModal","$translate","socket","xAlert","Agent","Pause","Action","VoiceQueue","usSpinnerService","$q","uiGridConstants","Auth","$timeout",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){function p(){return k.spin("grid-spinner"),g.get(u).$promise.then(function(b){a.gridOptions.totalItems=b.count,a.gridOptions.data=[],b.rows.forEach(function(a){r(a)})})["catch"](function(a){f.error(a)})["finally"](function(){k.stop("grid-spinner")})}function q(){e.socket.on("agent:save",function(b){b=b.newValues||b;var c=_.find(a.gridOptions.data,{agentId:b.id,isAgent:!0});c&&(c.online=b.hasOwnProperty("online")?b.online:c.online,c.lastLoginAt=b.hasOwnProperty("lastLoginAt")?b.lastLoginAt:c.lastLoginAt,c.pause=b.hasOwnProperty("voicePause")?b.voicePause:c.pause,c.pauseType=b.hasOwnProperty("pauseType")?b.pauseType:c.pauseType,c.lastPauseAt=b.hasOwnProperty("lastPauseAt")?b.lastPauseAt:c.lastPauseAt,c.status=b.hasOwnProperty("status")?b.status:c.status,c.statusAt=b.hasOwnProperty("statusAt")?b.statusAt:c.statusAt,c.queueStatus=b.hasOwnProperty("queueStatus")?b.queueStatus:c.queueStatus,c.queueStatusAt=b.hasOwnProperty("queueStatusAt")?b.queueStatusAt:c.queueStatusAt,c.lastQueue=b.hasOwnProperty("lastQueue")?b.lastQueue:c.lastQueue,c.ipaddr=b.hasOwnProperty("ipaddr")?b.ipaddr:c.ipaddr,c.port=b.hasOwnProperty("port")?b.port:c.port,c.fullcontact=b.hasOwnProperty("fullcontact")?b.fullcontact:c.fullcontact,c.useragent=b.hasOwnProperty("useragent")?b.useragent:c.useragent,c.lastms=b.hasOwnProperty("lastms")?b.lastms:c.lastms,c.internal=b.hasOwnProperty("internal")?b.internal:c.internal,c.fullname=b.hasOwnProperty("fullname")?b.fullname:c.fullname,_.map(a.gridOptions.data,function(a){a.isAgent||a.agentId!==b.id||(a.online=b.hasOwnProperty("online")?b.online:a.online)}))}),e.socket.on("agent:remove",function(b){_.remove(a.gridOptions.data,{agentId:b.id})})}function r(b){a.gridOptions.data.push({isAgent:!0,agentId:b.id,agent:b.name,online:b.online,lastLoginAt:b.lastLoginAt,lastPauseAt:b.lastPauseAt,pause:b.voicePause,pauseType:b.pauseType,status:b.status||"UNKNOWN",statusAt:b.statusAt,queueStatus:b.queueStatus||"READY",queueStatusAt:b.queueStatusAt,lastQueue:b.lastQueue,ipaddr:b.ipaddr,port:b.port,fullcontact:b.fullcontact,useragent:b.useragent,lastms:b.lastms,internal:b.internal,fullname:b.fullname})}function s(){return h.get().$promise.then(function(b){a.pauses=b.rows,e.syncUpdates("pause",a.pauses)})["catch"](function(a){f.error(a)})}function t(){return j.get().$promise.then(function(b){a.voiceQueues=b.rows,e.syncUpdates("voice_queue",a.voiceQueues)})["catch"](function(a){f.error(a)})}a.voiceQueues=[];var u={controller:"realtime",controller1:"voice",offset:0,limit:10};a.moment=moment,a._=_,a.initAgents=function(){a.gridOptions={enableGridMenu:!0,headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,showGridFooter:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,useExternalPagination:!0,useExternalSorting:!0,useExternalFiltering:!0,multiSelect:!0,columnDefs:[{name:"name",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.isAgent">{{row.entity.agent}} <{{row.entity.internal}}></div>'},{name:"fullname",displayName:"APPLICATION_FULLNAME",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.isAgent">{{row.entity.fullname}}</div>'},{name:"online",displayName:"APPLICATION_ONLINE",width:150,headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.online != null && row.entity.isAgent"><i class="fa" data-ng-class="{\'font-green\':row.entity.online, \'font-red\':!row.entity.online,\'fa-user\':row.entity.online,\'fa-user-times\':!row.entity.online}"></i> <i data-ng-if="row.entity.online" class="fa fa-sign-out font-red pointer-cursor" title="logout" data-ng-click="grid.appScope.agentLogout(row.entity.agent,row.entity.agentId)"></i> <span data-ng-if="row.entity.online && grid.appScope.showTimers" class="left-margin"><css-timer start-time="row.entity.lastLoginAt"></css-timer></span></div>',filter:{type:m.filter.SELECT,selectOptions:[{value:"true",label:"ONLINE"},{value:"false",label:"OFFLINE"}]}},{name:"status",displayName:"APPLICATION_PHONE_STATUS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div data-ng-if=\"row.entity.isAgent\">{{'APPLICATION_'+row.entity.status | translate}} <span data-ng-if=\"row.entity.statusAt && (row.entity.status === 'BUSY' || row.entity.status === 'ONHOLD' || row.entity.status === 'INUSE')\"><span data-ng-if=\"grid.appScope.showTimers\"><css-timer start-time=\"row.entity.statusAt\"></css-timer></span></span></div>",filter:{type:m.filter.SELECT,selectOptions:[{value:"UNKNOWN",label:d.instant("APPLICATION_UNKNOWN")},{value:"NOT_INUSE",label:d.instant("APPLICATION_NOT_INUSE")},{value:"INUSE",label:d.instant("APPLICATION_INUSE")},{value:"BUSY",label:d.instant("APPLICATION_BUSY")},{value:"INVALID",label:d.instant("APPLICATION_INVALID")},{value:"UNAVAILABLE",label:d.instant("APPLICATION_UNAVAILABLE")},{value:"RINGING",label:d.instant("APPLICATION_RINGING")},{value:"RINGINUSE",label:d.instant("APPLICATION_RINGINUSE")},{value:"ONHOLD",label:d.instant("APPLICATION_ONHOLD")}]}},{name:"queueStatus",displayName:"APPLICATION_QUEUE_STATUS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.isAgent && row.entity.online" class="ui-grid-vcenter"><span class="left-margin"><i data-ng-if="row.entity.pause" data-ng-click="grid.appScope.pause(row.entity,\'unpause\')" class="fa fa-play font-green pointer-cursor" title="{{\'APPLICATION_RESUME\' | translate}}"></i><i class="fa fa-pause font-yellow pointer-cursor" data-ng-click="grid.appScope.pause(row.entity,\'pause\',\'DEFAULT PAUSE\')" title="{{\'APPLICATION_DEFAULT_PAUSE\' | translate}}"></i></span><select data-ng-if="grid.appScope.pauses.length" class="pause-select pointer-cursor" data-ng-model="grid.appScope.pauseType" data-ng-change="grid.appScope.pause(row.entity,\'pause\',grid.appScope.pauseType)"><option class="pointer-cursor" data-ng-repeat="pause in grid.appScope.pauses">{{pause.name}}</option></select><span data-ng-if="!row.entity.pause || grid.appScope._.startsWith(row.entity.pauseType,\'#\')"> {{\'APPLICATION_\'+row.entity.queueStatus.toUpperCase() | translate}}</span><span data-ng-if="row.entity.pause && grid.appScope._.startsWith(row.entity.pauseType,\'#\')"> * </span><span data-ng-if="row.entity.pause && !grid.appScope._.startsWith(row.entity.pauseType,\'#\')"> {{\'APPLICATION_PAUSED\' | translate}}</span><span data-ng-if="(row.entity.queueStatus!==\'complete\' && (!row.entity.pause || row.entity.pauseType === \'ACW\'))"> [{{row.entity.lastQueue}}]</span><span data-ng-if="row.entity.pause && !grid.appScope._.startsWith(row.entity.pauseType,\'#\')"> [{{row.entity.pauseType}}]</span><span data-ng-if="row.entity.queueStatusAt && (row.entity.queueStatus!==\'complete\' || (row.entity.pause)) && grid.appScope.showTimers"><css-timer start-time="(row.entity.pause && !grid.appScope._.startsWith(row.entity.pauseType,\'#\')) ? row.entity.lastPauseAt : row.entity.queueStatusAt"></css-timer></span></div>',filter:{type:m.filter.SELECT,selectOptions:[{value:"connect",label:d.instant("APPLICATION_CONNECT")},{value:"complete",label:d.instant("APPLICATION_COMPLETE")},{value:"called",label:d.instant("APPLICATION_CALLED")},{value:"paused",label:d.instant("APPLICATION_PAUSED")}]},enableSorting:!1,enableColumnMenu:!1},{name:"action",displayName:"",width:170,cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><button data-ng-if="row.entity.queue" class="btn btn-xs red-sunglo" data-ng-click="grid.appScope.leaveQueue(row.entity.agentId,row.entity.queue)"><i class="icon-ban"></i> {{\'APPLICATION_LEAVE\' | translate}}</button><button data-ng-if="row.entity.isAgent" class="btn btn-xs blue-hoki" data-ng-click="grid.appScope.joinQueue(row.entity.agentId)"><i class="icon-plus"></i> {{\'APPLICATION_QUEUES\' | translate}}</button> <button data-ng-if="row.entity.isAgent" class="btn btn-xs blue-madison" data-ng-click="grid.appScope.showInfo(row.entity)"><i class="icon-info"></i></button><div>',enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1}],data:[],gridMenuTitleFilter:function(a){var b=l.defer();return b.resolve(d.instant(a)),b.promise},onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){v(a.gridApi.core.getVisibleRows(a.gridApi.grid).length)}),a.gridApi.core.on.sortChanged(a,function(a,b){0===b.length?u.order=null:u.order=b[0].name+" "+b[0].sort.direction.toUpperCase(),p()}),a.gridApi.pagination.on.paginationChanged(a,function(a,b){u.offset=(a-1)*b,u.limit=b,p()}),a.gridApi.core.on.filterChanged(a,function(){var a=this.grid;a.columns.forEach(function(a){a.filters[0].term?u[a.name]=a.filters[0].term:delete u[a.name]}),p()})}},p(),s(),t(),o(function(){q()})};var v=function(a){var b=a?30*a+130:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",b+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*a+"px")};a.$on("$destroy",function(){e.unsyncUpdates("agent"),e.unsyncUpdates("user_has_voice_queue")}),a.pause=function(b,c,e){return e&&(a.pauseType=null),i.save({name:c,agent:b.agentId,data2:b.agent,type:e||"DEFAULT PAUSE",data4:e||"DEFAULT PAUSE",channel:"voice"}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})},a.joinQueue=function(a){c.open({animation:!0,templateUrl:"app/channels/voice/realtime/view/agent/queue.modal.add.html",controller:"VoiceRealtimeViewAgentQueueModalCtrl", +resolve:{id:a}})},a.showInfo=function(a){c.open({animation:!0,templateUrl:"app/channels/voice/realtime/view/agent/agent.modal.info.html",controller:"VoiceRealtimeViewAgentInfoModalCtrl",resolve:{agent:a}})},a.$on("$destroy",function(){e.unsyncUpdates("agent"),e.unsyncUpdates("user_has_voice_queue")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.realtime.view.agents",{url:"/agents",templateUrl:"app/channels/voice/realtime/view/agent/agent.html",controller:"VoiceRealtimeViewAgentCtrl"})}]),angular.module("xCallyShuttleApp").controller("VoiceRealtimeViewAgentInfoModalCtrl",["$scope","$uibModalInstance","agent",function(a,b,c){a.agent=c,a.close=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("VoiceRealtimeViewAgentQueueModalCtrl",["$scope","$uibModalInstance","$http","id","Agent","xAlert","usSpinnerService","$translate","Action","socket","VoiceQueue",function(a,b,c,d,e,f,g,h,i,j,k){a.item={},a.params={penalty:0};var l=function(a,b){var c=a?30*a+130:177;angular.element(document.getElementsByName(b)[0]).css("height",c+"px")};a.enableLeave=!0,a.init=function(){a.queueTable={enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,enableSorting:!0,showGridFooter:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,columnDefs:[{name:"name",headerCellFilter:"translate",displayName:"APPLICATION_QUEUE",cellClass:"text-center ui-grid-vcenter"},{name:"penalty",headerCellFilter:"translate",displayName:"APPLICATION_PENALTY",cellClass:"text-center ui-grid-vcenter"},{name:"loggedAt",displayName:"logged At",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span am-time-ago="row.entity.loggedAt"></span></div>'},{name:"action",displayName:"",width:170,cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><button class="btn btn-xs red-sunglo" data-ng-click="grid.appScope.leaveQueue(row.entity.name)" data-ng-disabled="!grid.appScope.enableLeave"><i class="icon-ban"></i> {{\'APPLICATION_LEAVE\' | translate}}</button>',enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1}],data:[],onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){l(a.queueTable.paginationPageSize>a.queueTable.data.length?a.queueTable.data.length:a.queueTable.paginationPageSize,"queueTable")}),a.gridApi.pagination.on.paginationChanged(a,function(b,c){l(c>a.queueTable.data.length?a.queueTable.data.length:c,"queueTable")})}},a.queues=[];var b={};return e.get({id:d,controller:"voice",controller1:"queues"}).$promise.then(function(a){return _.forEach(_.filter(a.rows,function(a){return a.UserHasVoiceQueue.logged===!0}),function(a){b[a.name]=a}),k.get().$promise}).then(function(c){_.forEach(c.rows,function(c){b[c.name]?a.queueTable.data.push({name:c.name,loggedAt:b[c.name].UserHasVoiceQueue.loggedAt,penalty:b[c.name].UserHasVoiceQueue.penalty}):a.queues.push({name:c.name})}),g.stop("agentqueue-spinner")})["catch"](function(a){f.error(a)})},a.joinQueue=function(){return g.spin("agentqueue-spinner"),a.enableLeave=!1,i.save({name:"QueueAdd",agent:d,queues:a.item.queues,channel:"voice",data1:d,data2:a.params.penalty,data3:a.item.queues.join(","),data4:"voice"}).$promise.then(function(){a.item.queues=[],f.show(h.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})},a.leaveQueue=function(b){return g.spin("agentqueue-spinner"),a.enableLeave=!1,i.save({name:"QueueRemove",agent:d,queue:b,channel:"voice",data1:d,data3:b,data4:"voice"}).$promise.then(function(){f.show(h.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})},j.socket.on("user_has_voice_queue:save",function(b){if(b.UserId==d){var c=_.find(a.queueTable.data,function(a){return a.name===b.queue});if(!c&&b.logged)a.queueTable.data.push({name:b.queue,loggedAt:b.loggedAt,penalty:b.penalty}),_.remove(a.queues,{name:b.queue}),g.stop("agentqueue-spinner"),a.enableLeave=!0;else if(c&&!b.logged){var e=_.remove(a.queueTable.data,{name:b.queue});a.queues.push(e[0])}}}),j.socket.on("user_has_voice_queue:remove",function(b){if(b.UserId==d){var c=_.remove(a.queueTable.data,{name:b.queue});a.queues.push(c[0]),g.stop("agentqueue-spinner"),a.enableLeave=!0}}),a.close=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("VoiceRealtimeViewOutboundCtrl",["$scope","$log","$uibModal","$translate","socket","xAlert","ReportDial","Pause","Action","usSpinnerService","$q","uiGridConstants","$timeout","Auth",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n){function o(){return j.spin("spinner-grid"),g.get({controller:"active",controller2:"calls"}).$promise.then(function(b){a.gridOptions.data=b.rows})["catch"](function(a){f.error(a)})["finally"](function(){p(),j.stop("spinner-grid")})}function p(){e.socket.on("report_dial:save",function(b){a.gridOptions.data.unshift(b)}),e.socket.on("report_dial:update",function(b){var c=_.find(a.gridOptions.data,{uniqueid:b.uniqueid});c&&(_.merge(c,b),!c.endtime||c.answertime&&c.answertime==c.endtime||m(function(){_.remove(a.gridOptions.data,{uniqueid:c.uniqueid})},3e3))})}a.moment=moment,a.initDials=function(){a.gridOptions={paginationPageSizes:[10,25,50,75],paginationPageSize:10,headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,columnDefs:[{name:"uniqueid",displayName:"APPLICATION_UNIQUEID",headerCellFilter:"translate",cellClass:"text-center"},{name:"agent",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.channel.split('/')[1].split('-')[0]}}</div>"},{name:"calleridnum",displayName:"APPLICATION_CALLERID",headerCellFilter:"translate",cellClass:"text-center"},{name:"dialstring",cellClass:"text-center"},{name:"status",displayName:"APPLICATION_STATUS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span data-ng-if="!row.entity.endtime && !row.entity.answertime">{{\'APPLICATION_RINGING\' | translate}}</span><span data-ng-if="row.entity.answertime && !row.entity.endtime">{{\'APPLICATION_TALKING\' | translate}}</span><span data-ng-if="row.entity.answertime && row.entity.endtime">{{\'APPLICATION_COMPLETE\' | translate}}</span><span data-ng-if="row.entity.endtime && !row.entity.answertime">{{\'APPLICATION_\'+row.entity.dialstatus | translate}}</span><span data-ng-if="!row.entity.endtime && grid.appScope.showTimers"> <css-timer start-time="row.entity.updatedAt"></css-timer></span></div>',enableSorting:!1,enableColumnMenu:!1,enableFiltering:!1}],data:[],gridMenuTitleFilter:function(a){var b=k.defer();return b.resolve(d.instant(a)),b.promise},onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){q(a.gridOptions.data.length)})}},o()};var q=function(a){var b=a?30*a+100:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",b+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*a+"px")};a.$on("$destroy",function(){e.unsyncUpdates("report_dial")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.realtime.view.outbound",{url:"/outbound",templateUrl:"app/channels/voice/realtime/view/outbound/outbound.html",controller:"VoiceRealtimeViewOutboundCtrl"})}]),angular.module("xCallyShuttleApp").controller("VoiceRealtimeViewParameterCtrl",["$scope","$translate","Dashboard","VoiceQueue","Auth","socket","uiGridConstants","User",function(a,b,c,d,e,f,g,h){function i(a){var b=a?30*a+150:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",b+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*a+"px")}function j(b){var c=_.find(a.gridOptions.data,{name:b.queue});c&&(c[b.type]+=b.amount)}var k={offset:0,limit:10};a.initParameters=function(){switch(a.user=e.getCurrentUser(),a.$on("$destroy",function(){f.socket.removeAllListeners("voice:inbound")}),a.user.role){case"admin":c.get({id:"voice",controller:"init"}).$promise.then(function(b){for(var c in b.queues)b.queues[c].waiting=b.queues[c].waiting||0,b.queues[c].active=b.queues[c].active||0,b.queues[c].complete=b.queues[c].complete||0,b.queues[c].abandon=b.queues[c].abandon||0,b.queues[c].unmanaged=b.queues[c].unmanaged||0,b.queues[c].holdtime=b.queues[c].holdtime||0,b.queues[c].talktime=b.queues[c].talktime||0,a.gridOptions.data.push(b.queues[c])})["catch"](function(a){console.error(a)});break;case"user":h.query({id:a.user.id,controller:"allowed",controller2:"voice",controller3:"queues"}).$promise.then(function(b){return a.user.PVoiceQueues=b,c.get({id:"voice",controller:"init"}).$promise}).then(function(b){for(var c in b.queues){var d=_.find(a.user.PVoiceQueues,{name:c});d&&(b.queues[c].waiting=b.queues[c].waiting||0,b.queues[c].active=b.queues[c].active||0,b.queues[c].complete=b.queues[c].complete||0,b.queues[c].abandon=b.queues[c].abandon||0,b.queues[c].unmanaged=b.queues[c].unmanaged||0,b.queues[c].holdtime=b.queues[c].holdtime||0,b.queues[c].talktime=b.queues[c].talktime||0,a.gridOptions.data.push(b.queues[c]))}})["catch"](function(a){console.error(a)})}f.socket.on("voice:inbound",function(a){j(a)})},a.gridOptions={headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,enableSorting:!0,showGridFooter:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,columnDefs:[{name:"name",displayName:"APPLICATION_QUEUE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter"},{name:"waiting",displayName:"APPLICATION_WAITING",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"active",displayName:"APPLICATION_ACTIVE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"complete",displayName:"APPLICATION_ANSWERED",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",enableSorting:!1,enableColumnMenu:!1,filters:[{condition:g.filter.GREATER_THAN_OR_EQUAL,placeholder:"from"},{condition:g.filter.LESS_THAN_OR_EQUAL,placeholder:"to"}]},{name:"abandon",displayName:"APPLICATION_ABANDONED",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",enableSorting:!1,enableColumnMenu:!1,filters:[{condition:g.filter.GREATER_THAN_OR_EQUAL,placeholder:"from"},{condition:g.filter.LESS_THAN_OR_EQUAL,placeholder:"to"}]},{name:"unmanaged",displayName:"APPLICATION_UNMANAGED",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",enableSorting:!1,enableColumnMenu:!1,filters:[{condition:g.filter.GREATER_THAN_OR_EQUAL,placeholder:"from"},{condition:g.filter.LESS_THAN_OR_EQUAL,placeholder:"to"}]},{name:"holdtime",displayName:"APPLICATION_HOLDTIME",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.holdtime | secToTime | date:'HH:mm:ss'}}</div>",enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"talktime",displayName:"APPLICATION_TALKTIME",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.talktime | secToTime | date:'HH:mm:ss'}}</div>",enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"totalCalls",displayName:"APPLICATION_TOTAL_CALLS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.complete + row.entity.abandon + row.entity.unmanaged}}</div>",enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1}],data:[],onRegisterApi:function(b){a.gridApi=b,a.gridApi.core.on.sortChanged(a,function(a,b){0===b.length?k.order=null:k.order=b[0].name+" "+b[0].sort.direction.toUpperCase()}),a.gridApi.pagination.on.paginationChanged(a,function(a,b){i(b),k.offset=(a-1)*b,k.limit=b}),a.gridApi.core.on.filterChanged(a,function(){var a=this.grid;a.columns.forEach(function(a){a.filters.length>1?a.filters.forEach(function(b){b.term?64===b.condition?k[a.name+"_uiFrom"]=b.term:256===b.condition&&(k[a.name+"_uiTo"]=b.term):64===b.condition?delete k[a.name+"_uiFrom"]:256===b.condition&&delete k[a.name+"_uiTo"]}):a.filters.length&&a.filters[0].term?k[a.name]=a.filters[0].term:delete k[a.name]})})}}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.realtime.view.parameters",{url:"/parameters",templateUrl:"app/channels/voice/realtime/view/parameter/parameter.html",controller:"VoiceRealtimeViewParameterCtrl"})}]),angular.module("xCallyShuttleApp").controller("VoiceRealtimeViewQueueCtrl",["$scope","$log","$uibModal","$translate","socket","xAlert","VoiceQueue","usSpinnerService","$q",function(a,b,c,d,e,f,g,h,i){function j(){return h.spin("spinner-grid"),g.get().$promise.then(function(b){a.queues=b.rows})["catch"](function(a){f.error(a)})["finally"](function(){k(),h.stop("spinner-grid")})}function k(){e.socket.on("voice_queue:save",function(b){_.find(a.queues,{name:b.name})||a.queues.push(b)}),e.socket.on("voice_queue:remove",function(b){_.remove(a.queues,{name:b.name})}),e.socket.on("user_has_voice_queue:save",function(b){if(b.queue===a.item.queue){var c=_.find(a.gridOptions.data,{id:b.UserId});c?(c.voicePause=b.paused,c.pauseType=b.reason):a.gridOptions.data.push({id:b.UserId,name:b.membername,voicePause:b.paused,pauseType:b.reason})}}),e.socket.on("user_has_voice_queue:remove",function(b){b.queue===a.item.queue&&_.remove(a.gridOptions.data,{id:b.UserId})})}a.moment=moment,a.item={},a.initQueues=function(){a.gridOptions={enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,enableSorting:!0,showGridFooter:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,columnDefs:[{name:"name",displayName:"APPLICATION_AGENT_NAME",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter"},{name:"paused",displayName:"APPLICATION_PAUSED",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div\">{{(row.entity.voicePause ? 'APPLICATION_YES' : 'APPLICATION_NO') | translate}}</div>"},{name:"pauseType",displayName:"APPLICATION_REASON",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.voicePause">{{row.entity.pauseType}}</div>'}],data:[],gridMenuTitleFilter:function(a){var b=i.defer();return b.resolve(d.instant(a)),b.promise},onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){l(a.gridOptions.paginationPageSize>a.gridOptions.data.length?a.gridOptions.data.length:a.gridOptions.paginationPageSize)}),a.gridApi.pagination.on.paginationChanged(a,function(b,c){l(c>a.gridOptions.data.length?a.gridOptions.data.length:c)})}},j(!0)},a.getAgents=function(b){return b?g.get({id:b,controller:"agents"}).$promise.then(function(b){a.gridOptions.data=_.filter(b.rows,function(a){return a.UserHasVoiceQueue.logged===!0})})["catch"](function(a){f.error(a)}):void(a.gridOptions.data=[])};var l=function(a){var b=a?30*a+130:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",b+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*a+"px")};a.$on("$destroy",function(){e.unsyncUpdates("voice_queue"),e.unsyncUpdates("user_has_voice_queue")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.realtime.view.queues",{url:"/queues",templateUrl:"app/channels/voice/realtime/view/queue/queue.html",controller:"VoiceRealtimeViewQueueCtrl"})}]),angular.module("xCallyShuttleApp").controller("VoiceRealtimeViewQueueCallsCtrl",["$scope","$log","$uibModal","$translate","socket","xAlert","ReportQueue","Pause","Action","usSpinnerService","$q","uiGridConstants","$timeout",function(a,b,c,d,e,f,g,h,i,j,k,l,m){function n(){return j.spin("spinner-grid"),g.get({controller:"waiting",controller2:"calls"}).$promise.then(function(b){a.gridOptions.data=b.rows,p(10)})["catch"](function(a){f.error(a)})["finally"](function(){o(),j.stop("spinner-grid")})}function o(){e.socket.on("report_queue:save",function(b){a.gridOptions.data.unshift(b)}),e.socket.on("report_queue:update",function(b){var c=_.find(a.gridOptions.data,{id:b.id});if(c){var d={queuecallerabandon:b.queuecallerabandon,queuecallerleave:b.queuecallerleave};delete b.queuecallerabandon,delete b.queuecallerleave,_.merge(c,b),d.queuecallerabandon&&(c.queuecallerabandon=d.queuecallerabandon),d.queuecallerleave&&(c.queuecallerleave=d.queuecallerleave),(c.queuecallerabandon||c.queuecallercomplete||c.queuecallerexitreason)&&m(function(){_.remove(a.gridOptions.data,{id:b.id})},3e3)}})}a.moment=moment,a.initQueues=function(){a.gridOptions={headerCellFilter:"translate",paginationPageSizes:[10,25,50,75],paginationPageSize:10,enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,columnDefs:[{name:"queue",displayName:"APPLICATION_QUEUE",headerCellFilter:"translate"},{name:"status",displayName:"APPLICATION_STATUS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span data-ng-if="!row.entity.queuecallerleaveAt && !row.entity.queuecallerexit">{{\'APPLICATION_QUEUESTATUS_WAITING\' | translate}}</span><span data-ng-if="row.entity.queuecallerleaveAt && !row.entity.queuecallerabandon && !row.entity.queuecallercomplete && !row.entity.queuecallerexit">{{\'APPLICATION_ACTIVE\' | translate}}</span><span data-ng-if="row.entity.queuecallerleaveAt && row.entity.queuecallerabandon">{{\'APPLICATION_QUEUESTATUS_ABANDON\' | translate}}</span><span data-ng-if="row.entity.queuecallerleaveAt && row.entity.queuecallercomplete">{{\'APPLICATION_QUEUESTATUS_COMPLETE\' | translate}}</span><span data-ng-if="row.entity.queuecallerexitreason">{{row.entity.queuecallerexitreason}}</span><span data-ng-if="!row.entity.queuecallercomplete && !row.entity.queuecallerabandon && !row.entity.queuecallerexit && grid.appScope.showTimers"> <css-timer start-time="row.entity.updatedAt"></css-timer></span></div>',enableSorting:!1,enableColumnMenu:!1,enableFiltering:!1},{name:"caller",displayName:"APPLICATION_CALLER",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.calleridnum || ''}} {{row.entity.calleridname || ''}}</div>",enableSorting:!1,enableColumnMenu:!1,enableFiltering:!1},{name:"position",displayName:"APPLICATION_POSITION",headerCellFilter:"translate"},{name:"lastAssignedTo",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",enableSorting:!1,enableColumnMenu:!1,enableFiltering:!1}],data:[],gridMenuTitleFilter:function(a){var b=k.defer();return b.resolve(d.instant(a)),b.promise},onRegisterApi:function(b){a.gridApi=b,a.gridApi.pagination.on.paginationChanged(a,function(a,b){p(b)})}},n()};var p=function(a){var b=a?30*a+100:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",b+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*a+"px")};a.$on("$destroy",function(){e.unsyncUpdates("report_queue")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.realtime.view.queuecalls",{url:"/queuecalls",templateUrl:"app/channels/voice/realtime/view/queuecalls/queuecalls.html",controller:"VoiceRealtimeViewQueueCallsCtrl"})}]),angular.module("xCallyShuttleApp").controller("VoiceRealtimeViewTelephoneCtrl",["$scope","$log","$uibModal","$translate","socket","xAlert","Telephone","Pause","Action","usSpinnerService","$q","uiGridConstants","$timeout",function(a,b,c,d,e,f,g,h,i,j,k,l,m){function n(){return j.spin("spinner-grid"),g.get(p).$promise.then(function(b){a.gridOptions.totalItems=b.count,a.gridOptions.data=b.rows})["catch"](function(a){f.error(a)})["finally"](function(){j.stop("spinner-grid")})}function o(){e.socket.on("agent:save",function(b){var c=_.find(a.gridOptions.data,{id:b.id});c&&(c.status=b.status,c.statusAt=b.statusAt,c.ipaddr=b.ipaddr,c.port=b.port,c.fullcontact=b.fullcontact,c.useragent=b.useragent,c.lastms=b.lastms,c.internal=b.internal)}),e.socket.on("agent:remove",function(b){_.remove(a.gridOptions.data,{id:b.id})})}var p={offset:0,limit:10};a.moment=moment,a.initTelephones=function(){a.gridOptions={enableGridMenu:!0,headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,showGridFooter:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,useExternalPagination:!0,useExternalSorting:!0,useExternalFiltering:!0,multiSelect:!0,showTreeExpandNoChildren:!0,columnDefs:[{name:"name",displayName:"APPLICATION_TELEPHONE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.name}} <{{row.entity.internal}}></div>"},{name:"status",displayName:"APPLICATION_PHONE_STATUS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{'APPLICATION_'+row.entity.status | translate}} <span data-ng-if=\"row.entity.statusAt && (row.entity.status === 'BUSY' || row.entity.status === 'ONHOLD' || row.entity.status === 'INUSE')\"><span data-ng-if=\"grid.appScope.showTimers\"><css-timer start-time=\"row.entity.statusAt\"></css-timer></span></span></div>",filter:{type:l.filter.SELECT,selectOptions:[{value:"UNKNOWN",label:d.instant("APPLICATION_UNKNOWN")},{value:"NOT_INUSE",label:d.instant("APPLICATION_NOT_INUSE")},{value:"INUSE",label:d.instant("APPLICATION_INUSE")},{value:"BUSY",label:d.instant("APPLICATION_BUSY")},{value:"INVALID",label:d.instant("APPLICATION_INVALID")},{value:"UNAVAILABLE",label:d.instant("APPLICATION_UNAVAILABLE")},{value:"RINGING",label:d.instant("APPLICATION_RINGING")},{value:"RINGINUSE",label:d.instant("APPLICATION_RINGINUSE")},{value:"ONHOLD",label:d.instant("APPLICATION_ONHOLD")}]}},{name:"action",displayName:"",width:170,cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><button class="btn btn-xs blue-madison" data-ng-click="grid.appScope.showInfo(row.entity)"><i class="icon-info"></i></button><div>',enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1}],data:[],gridMenuTitleFilter:function(a){var b=k.defer();return b.resolve(d.instant(a)),b.promise},onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){q(a.gridOptions.data.length)}),a.gridApi.core.on.sortChanged(a,function(a,b){0===b.length?p.order=null:p.order=b[0].name+" "+b[0].sort.direction.toUpperCase(),n()}),a.gridApi.pagination.on.paginationChanged(a,function(a,b){p.offset=(a-1)*b,p.limit=b,n()}),a.gridApi.core.on.filterChanged(a,function(){var a=this.grid;a.columns.forEach(function(a){a.filters[0].term?p[a.name]=a.filters[0].term:delete p[a.name]}),n()})}},n(),m(function(){o()})};var q=function(a){var b=a?30*a+130:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",b+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*a+"px")};a.$on("$destroy",function(){e.unsyncUpdates("agent")}),a.showInfo=function(a){c.open({animation:!0,templateUrl:"app/channels/voice/realtime/view/telephone/telephone.modal.info.html",controller:"VoiceRealtimeViewTelephoneInfoModalCtrl",resolve:{telephone:a}})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.realtime.view.telephones",{url:"/telephones",templateUrl:"app/channels/voice/realtime/view/telephone/telephone.html",controller:"VoiceRealtimeViewTelephoneCtrl",data:{permissions:{only:["admin","user"],redirectTo:"main.dashboard.voice"}}})}]),angular.module("xCallyShuttleApp").controller("VoiceRealtimeViewTelephoneInfoModalCtrl",["$scope","$uibModalInstance","$http","telephone",function(a,b,c,d){a.telephone=d,a.close=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("VoiceRealtimeViewCtrl",["$scope","Auth",function(a,b){a.Auth=b,a.timerSwitch={isActive:!0,size:"mini",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"primary"},a.showTimers=!1}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.realtime.view",{url:"/view",templateUrl:"app/channels/voice/realtime/view/view.html",controller:"VoiceRealtimeViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("VoiceRecordingListCtrl",["$scope","$translate","$sce","Recording","gridOptions","xAlert","uiGridConstants","Auth",function(a,b,c,d,e,f,g,h){a.Recording=d,a.updateRating=function(a,c){return d.update({id:a,rating:c}).$promise.then(function(){f.show(b.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})},a.initView=function(){var b={exporterCsvFilename:"recordings.csv",rowHeight:30,primaryKey:"id",columnDefs:[{name:"uniqueid"},{name:"customerPhone",displayName:"APPLICATION_CUSTOMER_PHONE",cellClass:"text-center ui-grid-vcenter"},{name:"membername"},{name:"type",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div title=\"{{row.entity.type}}\"><span data-ng-if=\"row.entity.type.indexOf('phonebar-') >= 0\"><i class=\"icon-screen-desktop font yellow\"></i> <i data-ng-class=\"{'icon-call-in font-green':row.entity.type === 'phonebar-inbound','icon-call-out font-red':row.entity.type === 'phonebar-outbound','icon-earphones font-purple':row.entity.type === 'phonebar-internal'}\"></i></span><i data-ng-class=\"{'icon-call-in font-green':row.entity.type === 'inbound','icon-call-out font-red':row.entity.type === 'outbound','icon-control-forward font-red':row.entity.type === 'tigerdial','icon-question':row.entity.type === 'unknown','icon-earphones font-purple':row.entity.type === 'internal','fa fa-user-secret font-blue':row.entity.type === 'chanspy'}\"></i></div>",filter:{type:g.filter.SELECT,selectOptions:[{value:"inbound",label:"Inbound"},{value:"internal",label:"Internal"},{value:"outbound",label:"Outbound"},{value:"tigerdial",label:"Motion Dialer"},{value:"chanspy",label:"ChanSpy"},{value:"phonebar-internal",label:"Phonebar Internal"},{value:"phonebar-inbound",label:"Phonebar Inbound"},{value:"phonebar-outbound",label:"Phonebar Outbound"},{value:"unknown",label:"Unknown"}]}},{name:"queue"},{name:"createdAt",displayName:"APPLICATION_DATE",headerCellFilter:"translate",filterHeaderTemplate:'<div class="ui-grid-filter-container row"><div ng-repeat="colFilter in col.filters" class="col-md-6 col-md-offset-0 col-sm-5 col-sm-offset-0 col-xs-5 col-xs-offset-0"><div custom-grid-date-filter-header></div></div></div>',filters:[{name:"From",condition:g.filter.GREATER_THAN_OR_EQUAL},{name:"To",condition:g.filter.LESS_THAN_OR_EQUAL}],sort:{direction:g.DESC,priority:0}},{name:"rating",filter:{type:g.filter.SELECT,selectOptions:[{value:1,label:"1"},{value:2,label:"2"},{value:3,label:"3"},{value:4,label:"4"},{value:5,label:"5"}]},cellClass:"ui-grid-vcenter",width:"100",cellTemplate:'<div><uib-rating data-ng-model="row.entity.rating" data-ng-click="grid.appScope.updateRating(row.entity.id, row.entity.rating)" aria-labelledby="default-rating"></uib-rating></div>'},{name:"audio",displayName:"",width:100,enableSorting:!1,enableFiltering:!1,cellClass:"ui-grid-vcenter",cellTemplate:"<div><audio-file-download data-ng-if=\"row.entity.value.split('.').pop() == 'wav'\" params=\"{id:row.entity.id,controller:'stream'}\" resource=\"grid.appScope.Recording\"></audio-file-download><span data-ng-if=\"row.entity.value.split('.').pop() == 'gsm'\" title=\"{{'MESSAGE_GSM_PREVIEW_NOT_SUPPORTED' | translate}}\">{{'MESSAGE_GSM_PREVIEW_NOT_SUPPORTED' | translate}}</span></div>"},{name:"action",width:80,buttons:[{directive:"<motion-file-download params=\"{id:row.entity.id,controller:'stream'}\" resource=\"grid.appScope.Recording\" mimetype=\"'audio/'+row.entity.value.split('.').pop()\" btnclass=\"btn btn-xs blue-hoki\" filename=\"row.entity.uniqueid+'.'+row.entity.value.split('.').pop()\"></motion-file-download>"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.uniqueid, row.entity.id)",hide:!h.isAdmin()}]}]};a.gridOptions=e.gridOptions(d,b,a)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.recordings.list",{url:"/list",templateUrl:"app/channels/voice/recording/list/list.html",controller:"VoiceRecordingListCtrl"})}]),angular.module("xCallyShuttleApp").factory("Recording",["$resource",function(a){return a("/api/voice/recordings/:id/:controller",{id:"@id"},{update:{method:"PUT"},patch:{method:"PATCH"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.recordings",{url:"/recordings",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:25}}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.routes.inbound",{url:"/inbound",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("VoiceRouteInboundListCreateCtrl",["$scope","$uibModalInstance","Route","application","xAlert","$location","$translate","VoiceContext","socket",function(a,b,c,d,e,f,g,h,i){a.$application=d.application,a.forms={route:void 0},a.getContexts=function(){return h.get().$promise.then(function(b){a.voiceContexts=b.rows,i.syncUpdates("voice_context",a.voiceContexts)})["catch"](function(a){e.error(a)})},a.item={type:"inbound",appdata:"Inbound Call from ${CALLERID(num)}",context:"from-voip-provider"},a.ok=function(){return a.item.exten=a.$application.checkUnderscore(a.item.exten),c.save(a.item).$promise.then(function(a){b.close(a),f.path("/channels/voice/routes/inbound/view/"+a.id+"/applications")})["catch"](function(a){console.log(a),e.error(a)})},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("VoiceRouteInboundListCtrl",["$scope","$http","socket","$translate","$rootScope","xAlert","Modal","stResource","gridOptions","Route","$uibModal","$location","$log",function(a,b,c,d,e,f,g,h,i,j,k,l,m){a.initView=function(){var b={exporterCsvFilename:"InboundRoutes.csv",columnDefs:[{name:"exten",displayName:"APPLICATION_PHONE_NUMBER"},{name:"description"},{name:"applications",cellClass:"ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.Applications.length"><span data-ng-repeat="app in row.entity.Applications | limitTo:2">{{app.app}}({{app.appdata[0]}}), </span>...</div><div data-ng-if="!row.entity.Applications.length">{{\'MESSAGE_NO_AVAILABLE_APPLICATIONS\' | translate}}</div>',enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"action",width:75,buttons:[{"class":"blue-hoki",href:"/channels/voice/routes/inbound/view/{{row.entity.id}}/settings",name:"settings"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.exten, row.entity.id)"}]}]};a.gridOptions=i.gridOptions(j,b,a,{type:"inbound"})},a.create=function(){k.open({animation:!0,templateUrl:"app/channels/voice/route/inbound/list/create.modal.html",controller:"VoiceRouteInboundListCreateCtrl"})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.routes.inbound.list",{url:"/list",templateUrl:"app/channels/voice/route/inbound/list/list.html",controller:"VoiceRouteInboundListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("VoiceRouteInboundViewCtrl",["$scope","$translate","$stateParams","socket","$location","WizardHandler","Modal","xAlert","application","interval","Route","VoiceQueue","Sound","SquareProject","VoiceContext","Interval","VoiceMail","User","Agent","Telephone","Trunk","Team",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v){function w(b){var c,d;if("always"===b.intType)c=null,d="*,*,*,*";else if("list"===b.intType)d=b.IntervalId?_.find(a.Intervals,{ +id:b.IntervalId}).name:"*,*,*,*",c=b.IntervalId||null;else if("custom"===b.intType){c=null;var e,f,g,h;e=b.t_from&&b.t_to&&!b.alwaysTime?moment(b.t_from).format("HH:mm")+"-"+moment(b.t_to).format("HH:mm"):"*",b.wd_from&&"always"!==b.wd_from?(f=b.wd_from,b.wd_to&&"always"!==b.wd_to&&(f+="-"+b.wd_to)):f="*",b.md_from&&"always"!==b.md_from?(g=b.md_from,b.md_to&&"always"!==b.md_to&&(g+="-"+b.md_to)):g="*",b.m_from&&"always"!==b.m_from?(h=b.m_from,b.m_to&&"always"!==b.m_to&&(h+="-"+b.m_to)):h="*",d=e+","+f+","+g+","+h}void 0===a.selectedApp?(a.application.interval=d,a.application.IntervalId=c):(a.route.Applications[a.selectedApp].interval=d,a.route.Applications[a.selectedApp].IntervalId=c)}function x(){if(a.interval.intType=a.route.Applications[a.selectedApp].IntervalId?"list":"*,*,*,*"===a.route.Applications[a.selectedApp].interval?"always":"custom",a.interval.IntervalId=a.route.Applications[a.selectedApp].IntervalId,!a.route.Applications[a.selectedApp].IntervalId){var b,c=a.route.Applications[a.selectedApp].interval?a.route.Applications[a.selectedApp].interval.split(","):["*","*","*","*"];c.forEach(function(c,d){switch(d){case 0:"*"!==c?(b=c.split("-"),a.interval.t_from=moment(b[0],"HH:mm"),a.interval.t_to=moment(b[1],"HH:mm"),a.interval.alwaysTime=!1):(a.interval.t_from=moment(new Date),a.interval.t_to=moment(new Date),a.interval.alwaysTime=!0);break;case 1:"*"!==c?(b=c.split("-"),a.interval.wd_from=b[0],a.interval.wd_to=b[1]?b[1]:"always"):(a.interval.wd_from="always",a.interval.wd_to="always");break;case 2:"*"!==c?(b=c.split("-"),a.interval.md_from=b[0],a.interval.md_to=b[1]?b[1]:"always"):(a.interval.md_from="always",a.interval.md_to="always");break;case 3:"*"!==c?(b=c.split("-"),a.interval.m_from=b[0],a.interval.m_to=b[1]?b[1]:"always"):(a.interval.m_from="always",a.interval.m_to="always")}})}}a.alwaysSwitch={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.$translate=b,a.selectedApp=void 0,a.showGrid=!0,a.$application=i.application,a.$interval=j.interval,a.selectedRows=[],a._=_,a.gridOptions={enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableSorting:!1,rowTemplate:'<div grid="grid" class="ui-grid-draggable-row" draggable="true"><div ng-repeat="(colRenderIndex, col) in colContainer.renderedColumns track by col.colDef.name" class="ui-grid-cell" ng-class="{ \'ui-grid-row-header-cell\': col.isRowHeader, \'custom\': true }" ui-grid-cell></div></div>',columnDefs:[{name:"app",headerCellFilter:"translate",displayName:"APPLICATION_APPLICATION",enableColumnMenu:!1},{name:"appType",headerCellFilter:"translate",displayName:"APPLICATION_INFO",cellClass:"ui-grid-vcenter",cellTemplate:"<div>{{'APPLICATION_APPS_'+(row.entity.appType || (grid.appScope._.find(grid.appScope.$application.applications,{value:row.entity.app}) ? row.entity.app : 'custom')).toUpperCase() | translate}}</div>",enableColumnMenu:!1},{name:"appdata",headerCellFilter:"translate",displayName:"APPLICATION_ARGUMENTS",cellClass:"ui-grid-vcenter",cellTemplate:"<div>{{row.entity.appdata.join(',')}}</div>",enableColumnMenu:!1},{name:"interval",headerCellFilter:"translate",displayName:"APPLICATION_TIME_INTERVAL",enableColumnMenu:!1},{name:"action",enableColumnMenu:!1,headerCellFilter:"translate",displayName:"APPLICATION_ACTION",width:125,cellClass:"ui-grid-vcenter",cellTemplate:'<div><a class="btn btn-xs blue-hoki" data-ng-click="grid.appScope.openApplication(grid.appScope.gridOptions.data.indexOf(row.entity))"><i class="icon-settings"></i></a><a class="btn btn-xs red-sunglo" data-ng-click="grid.appScope.deleteApp(row.entity.app+\' application\', grid.appScope.gridOptions.data.indexOf(row.entity))"><i class="fa fa-trash"></i></a></div>'}],onRegisterApi:function(b){b.selection.on.rowSelectionChanged(a,function(b){b.isSelected?a.selectedRows.push(b.entity):_.pull(a.selectedRows,b.entity)}),b.selection.on.rowSelectionChangedBatch(a,function(b){b[0].isSelected?a.selectedRows=_.map(b,"entity"):a.selectedRows=[]}),b.draggableRows.on.rowDropped(a,function(b,c){a.updateRoute()}),b.grid.registerDataChangeCallback(function(){y(a.gridOptions.data.length)})}};var y=function(a){var b=a?30*a+120:177;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",b+"px")};a.initApplication=function(b){b&&(a.selectedApp=void 0),a.forms={settings:void 0,interval:void 0},a.application={},a.interval={intType:"always",t_from:moment(new Date),t_to:moment(new Date),wd_from:"always",wd_to:"always",md_from:"always",md_to:"always",m_from:"always",m_to:"always",alwaysTime:!0},a.main={app:""}},a.$watch("interval",function(a){a&&w(a)},!0),a.updateSetAppdata=function(){a.application.variable&&a.application.value&&"Set"===a.main.app.value?a.application.appdata[0]=a.application.variable+"="+a.application.value:a.application.appdata[0]=null},a.updateSetAppdataSettings=function(){a.application.variable&&a.application.value&&"Set"===a.main.app.value?a.route.Applications[a.selectedApp].appdata[0]=a.application.variable+"="+a.application.value:a.route.Applications[a.selectedApp].appdata[0]=null},a.updateVideoOnAppdata=function(){a.application.domain&&a.application.theme&&"Set"===a.main.app.value&&"videoOn"===a.main.app.type?a.application.appdata[0]="_xcally_motion_video_room_id=https://"+a.application.domain+"/split_agent_popup.php?theme="+a.application.theme+"&room=${SIP_HEADER(X-Split-Id)}":a.application.appdata[0]=null},a.updateVideoOnAppdataSettings=function(){a.application.domain&&a.application.theme&&"Set"===a.main.app.value&&"videoOn"===a.main.app.type?a.route.Applications[a.selectedApp].appdata[0]="_xcally_motion_video_room_id=https://"+a.application.domain+"/split_agent_popup.php?theme="+a.application.theme+"&room=${SIP_HEADER(X-Split-Id)}":a.route.Applications[a.selectedApp].appdata[0]=null},a.$watch("main.app",function(b){if(b){var c,d,e={},f={};switch(void 0===a.selectedApp&&(a.application={appType:b.type,app:b.value,interval:a.application.interval||"*,*,*,*",appdata:[]}),b.value){case"Queue":c=l,d=m;break;case"Playback":c=m;break;case"AGI":c=n;break;case"Goto":c=o;break;case"Voicemail":c=q;break;case"Dial":switch(b.type){case"internalDial":c=r,e={controller:"all"};break;case"externalDial":c=u}}if(c)return c.get(e).$promise.then(function(b){a.items=b.rows}).then(function(){return d?d.get(f).$promise:void 0}).then(function(b){b&&(a.items2=b.rows)})["catch"](function(a){h.error(a)})}},!0),a.deselectAndRedirect=function(b){a.selectedApp=void 0,e.path(b)},a.initRingGroup=function(){var b,c,d;return void 0===a.selectedApp?a.usersArray=[]:a.usersArray=_.map(a.route.Applications[a.selectedApp].appdata[0].split("&"),function(a){return a.split("/")[1]}),r.get().$promise.then(function(a){return b=a,s.get().$promise}).then(function(a){return c=a,t.get().$promise}).then(function(e){d=e,ComponentsDropdowns.bindUserByRole(b,c,d,function(b){a.usersArray=_.union(b,a.usersArray),void 0===a.selectedApp?(a.application.appdata[0]=null,a.application.appdata[0]=_.map(a.usersArray,function(a){return"SIP/"+a}).join("&")):(a.route.Applications[a.selectedApp].appdata[0]=null,a.route.Applications[a.selectedApp].appdata[0]=_.map(a.usersArray,function(a){return"SIP/"+a}).join("&"))},function(b){a.usersArray=_.difference(a.usersArray,b),void 0===a.selectedApp?(a.application.appdata[0]=null,a.application.appdata[0]=_.map(a.usersArray,function(a){return"SIP/"+a}).join("&")):(a.route.Applications[a.selectedApp].appdata[0]=null,a.route.Applications[a.selectedApp].appdata[0]=_.map(a.usersArray,function(a){return"SIP/"+a}).join("&"))},a.route.Applications[a.selectedApp]?a.route.Applications[a.selectedApp].appdata:null)})["catch"](function(a){console.error(a)})},a.getIntervals=function(){return p.get().$promise.then(function(b){a.Intervals=b.rows,d.syncUpdates("interval",a.Intervals)})["catch"](function(a){h.error(a)})},a.getRoute=function(){return k.get({id:c.id}).$promise.then(function(b){a.route=b,a.gridOptions.data=b.Applications,y(a.gridOptions.data.length)})["catch"](function(a){e.path("/channels/voice/routes/inbound/list")})},a.getApplication=function(){if(void 0===a.selectedApp)e.path("/channels/voice/routes/inbound/list");else{if(a.showGrid=!0,a.route.Applications[a.selectedApp].appType)a.main.app=_.find(a.$application.applications,{type:a.route.Applications[a.selectedApp].appType});else{var b=_.find(a.$application.applications,{value:a.route.Applications[a.selectedApp].app});if(b)a.main.app=b;else{a.main.app=_.find(a.$application.applications,{type:"custom"});var c=a.route.Applications[a.selectedApp].appdata.join(",");a.route.Applications[a.selectedApp].appdata=[c],a.route.Applications[a.selectedApp].appType="custom"}}if("Set"===a.main.app.value&&!a.main.app.type){var d=a.route.Applications[a.selectedApp].appdata[0].split("=");a.application.variable=d[0],a.application.value=d[1]}if("Set"===a.main.app.value&&"videoOn"===a.main.app.type){var f=new Url(a.route.Applications[a.selectedApp].appdata[0].split("=").slice(1).join("="));a.application.domain=f.host+(f.port?":"+f.port:""),a.application.theme=f.query.theme}x()}},a.openApplication=function(b){a.selectedApp=b,a.showGrid=!1,e.path("/channels/voice/routes/inbound/view/"+c.id+"/applications/settings")},a.updateRoute=function(d){return a.route.exten=a.$application.checkUnderscore(a.route.exten),_.forEach(a.route.Applications,function(a){if("custom"!==a.appType)switch(a.app){case"Dial":var b;switch(a.appType){case"externalDial":b=3;break;case"internalDial":b=2;break;default:b=2}a.appdata[b]=a.appdata[b]||"",a.appdata[b]+=(_.includes(a.appdata[b],"x")?"":"x")+(_.includes(a.appdata[b],"X")?"":"X");break;case"Queue":a.appdata[1]=a.appdata[1]||"",a.appdata[1]+=(_.includes(a.appdata[1],"x")?"":"x")+(_.includes(a.appdata[1],"X")?"":"X")}}),k.update({id:a.route.id},a.route).$promise.then(function(f){a.selectedApp=void 0,h.show(b.instant("MESSAGE_WELL_DONE")+"!","success"),d&&e.path("/channels/voice/routes/inbound/view/"+c.id+"/"+d)})["catch"](function(a){console.log(a),h.error(a)})},a.getContexts=function(){return o.get().$promise.then(function(b){a.voiceContexts=b.rows,d.syncUpdates("voice_context",a.voiceContexts)})["catch"](function(a){h.error(a)})},a.deleteApp=g.confirm["delete"](function(b){a.route.Applications.splice(b,1),a.updateRoute()}),a.deleteItems=g.confirm["delete"](function(){_.remove(a.route.Applications,function(b){return _.includes(a.selectedRows,b)}),a.selectedRows=[],a.updateRoute()}),a.addApplication=function(){a.route.Applications.push(a.application),a.updateRoute("applications")},a.goNext=function(){f.wizard().next()},a.previous=function(){f.wizard().previous()},a.formValidation=function(a){return a},a.$on("destroy",function(){d.unsyncUpdates("voice_extension")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.routes.inbound.view",{url:"/view/:id",templateUrl:"app/channels/voice/route/inbound/view/view.html",controller:"VoiceRouteInboundViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.channels.voice.routes.inbound.view.settings",{url:"/settings",templateUrl:"app/channels/voice/route/inbound/view/view.settings.html"}).state("main.channels.voice.routes.inbound.view.applications",{url:"/applications",templateUrl:"app/channels/voice/route/inbound/view/view.applications.html"}).state("main.channels.voice.routes.inbound.view.application",{url:"/application",templateUrl:"app/channels/voice/route/view.application.html",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}}).state("main.channels.voice.routes.inbound.view.applications.settings",{url:"/settings",templateUrl:"app/channels/voice/route/view.applicationSettings.html",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.routes.internal",{url:"/internal",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("VoiceRouteInternalListCreateCtrl",["$scope","$uibModalInstance","Route","application","$location","$translate","xAlert","VoiceContext","socket",function(a,b,c,d,e,f,g,h,i){a.$application=d.application,a.forms={route:void 0},a.getContexts=function(){return h.get().$promise.then(function(b){a.voiceContexts=b.rows,i.syncUpdates("voice_context",a.voiceContexts)})["catch"](function(a){g.error(a)})},a.item={type:"internal",appdata:"Internal Call from ${CALLERID(num)}",context:"from-sip"},a.ok=function(){return a.item.exten=a.$application.checkUnderscore(a.item.exten),c.save(a.item).$promise.then(function(a){b.close(a),e.path("/channels/voice/routes/internal/view/"+a.id+"/applications")})["catch"](function(a){g.error(a)})},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("VoiceRouteInternalListCtrl",["$scope","$http","socket","$translate","$rootScope","xAlert","Modal","stResource","gridOptions","Route","$uibModal","$location","$log",function(a,b,c,d,e,f,g,h,i,j,k,l,m){a.initView=function(){var b={exporterCsvFilename:"InternalRoutes.csv",columnDefs:[{name:"exten",displayName:"APPLICATION_PHONE_NUMBER"},{name:"description"},{name:"applications",cellClass:"ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.Applications.length"><span data-ng-repeat="app in row.entity.Applications | limitTo:2">{{app.app}}({{app.appdata[0]}}),</span>...</div><div data-ng-if="!row.entity.Applications.length">{{\'MESSAGE_NO_AVAILABLE_APPLICATIONS\' | translate}}</div>',enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"action",width:75,buttons:[{"class":"blue-hoki",href:"/channels/voice/routes/internal/view/{{row.entity.id}}/settings",name:"settings"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.exten, row.entity.id)"}]}]};a.gridOptions=i.gridOptions(j,b,a,{type:"internal"})},a.create=function(){k.open({animation:!0,templateUrl:"app/channels/voice/route/internal/list/create.modal.html",controller:"VoiceRouteInternalListCreateCtrl"})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.routes.internal.list",{url:"/list",templateUrl:"app/channels/voice/route/internal/list/list.html",controller:"VoiceRouteInternalListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("VoiceRouteInternalViewCtrl",["$scope","$translate","$stateParams","socket","$location","WizardHandler","Modal","xAlert","application","interval","Route","VoiceQueue","Sound","SquareProject","VoiceContext","Interval","VoiceMail","User","Agent","Telephone","Trunk",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u){function v(b){var c,d;if("always"===b.intType)c=null,d="*,*,*,*";else if("list"===b.intType)d=b.IntervalId?_.find(a.Intervals,{id:b.IntervalId}).name:"*,*,*,*",c=b.IntervalId||null;else if("custom"===b.intType){c=null;var e,f,g,h;e=b.t_from&&b.t_to&&!b.alwaysTime?moment(b.t_from).format("HH:mm")+"-"+moment(b.t_to).format("HH:mm"):"*",b.wd_from&&"always"!==b.wd_from?(f=b.wd_from,b.wd_to&&"always"!==b.wd_to&&(f+="-"+b.wd_to)):f="*",b.md_from&&"always"!==b.md_from?(g=b.md_from,b.md_to&&"always"!==b.md_to&&(g+="-"+b.md_to)):g="*",b.m_from&&"always"!==b.m_from?(h=b.m_from,b.m_to&&"always"!==b.m_to&&(h+="-"+b.m_to)):h="*",d=e+","+f+","+g+","+h}void 0===a.selectedApp?(a.application.interval=d,a.application.IntervalId=c):(a.route.Applications[a.selectedApp].interval=d,a.route.Applications[a.selectedApp].IntervalId=c)}function w(){if(a.interval.intType=a.route.Applications[a.selectedApp].IntervalId?"list":"*,*,*,*"===a.route.Applications[a.selectedApp].interval?"always":"custom",a.interval.IntervalId=a.route.Applications[a.selectedApp].IntervalId,!a.route.Applications[a.selectedApp].IntervalId){var b,c=a.route.Applications[a.selectedApp].interval?a.route.Applications[a.selectedApp].interval.split(","):["*","*","*","*"];c.forEach(function(c,d){switch(d){case 0:"*"!==c?(b=c.split("-"),a.interval.t_from=moment(b[0],"HH:mm"),a.interval.t_to=moment(b[1],"HH:mm"),a.interval.alwaysTime=!1):(a.interval.t_from=moment(new Date),a.interval.t_to=moment(new Date),a.interval.alwaysTime=!0);break;case 1:"*"!==c?(b=c.split("-"),a.interval.wd_from=b[0],a.interval.wd_to=b[1]?b[1]:"always"):(a.interval.wd_from="always",a.interval.wd_to="always");break;case 2:"*"!==c?(b=c.split("-"),a.interval.md_from=b[0],a.interval.md_to=b[1]?b[1]:"always"):(a.interval.md_from="always",a.interval.md_to="always");break;case 3:"*"!==c?(b=c.split("-"),a.interval.m_from=b[0],a.interval.m_to=b[1]?b[1]:"always"):(a.interval.m_from="always",a.interval.m_to="always")}})}}a.alwaysSwitch={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.$translate=b,a.selectedApp=void 0,a.showGrid=!0,a.$application=angular.copy(i.application),_.remove(a.$application.applications,{value:"videoOn"}),a.$interval=j.interval,a._=_,a.selectedRows=[],a.gridOptions={enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableSorting:!1,rowTemplate:'<div grid="grid" class="ui-grid-draggable-row" draggable="true"><div ng-repeat="(colRenderIndex, col) in colContainer.renderedColumns track by col.colDef.name" class="ui-grid-cell" ng-class="{ \'ui-grid-row-header-cell\': col.isRowHeader, \'custom\': true }" ui-grid-cell></div></div>',columnDefs:[{name:"app",headerCellFilter:"translate",displayName:"APPLICATION_APPLICATION",enableColumnMenu:!1},{name:"appType",headerCellFilter:"translate",displayName:"APPLICATION_INFO",cellClass:"ui-grid-vcenter",cellTemplate:"<div>{{'APPLICATION_APPS_'+(row.entity.appType || (grid.appScope._.find(grid.appScope.$application.applications,{value:row.entity.app}) ? row.entity.app : 'custom')).toUpperCase() | translate}}</div>",enableColumnMenu:!1},{name:"appdata",headerCellFilter:"translate",displayName:"APPLICATION_ARGUMENTS",cellClass:"ui-grid-vcenter",cellTemplate:"<div>{{row.entity.appdata.join(',')}}</div>",enableColumnMenu:!1},{name:"interval",headerCellFilter:"translate",displayName:"APPLICATION_TIME_INTERVAL",enableColumnMenu:!1},{name:"action",enableColumnMenu:!1,headerCellFilter:"translate",displayName:"APPLICATION_ACTION",width:125,cellClass:"ui-grid-vcenter",cellTemplate:'<div><a class="btn btn-xs blue-hoki" data-ng-click="grid.appScope.openApplication(grid.appScope.gridOptions.data.indexOf(row.entity))"><i class="icon-settings"></i></a><a class="btn btn-xs red-sunglo" data-ng-click="grid.appScope.deleteApp(row.entity.app+\' application\', grid.appScope.gridOptions.data.indexOf(row.entity))"><i class="fa fa-trash"></i></a></div>'}],onRegisterApi:function(b){b.selection.on.rowSelectionChanged(a,function(b){b.isSelected?a.selectedRows.push(b.entity):_.pull(a.selectedRows,b.entity)}),b.selection.on.rowSelectionChangedBatch(a,function(b){b[0].isSelected?a.selectedRows=_.map(b,"entity"):a.selectedRows=[]}),b.draggableRows.on.rowDropped(a,function(b,c){a.updateRoute()}),b.grid.registerDataChangeCallback(function(){x(a.gridOptions.data.length)})}},a.deleteItems=g.confirm["delete"](function(){_.remove(a.route.Applications,function(b){return _.includes(a.selectedRows,b)}),a.selectedRows=[],a.updateRoute()}),a.initRingGroup=function(){var b,c,d;return void 0===a.selectedApp?a.usersArray=[]:a.usersArray=_.map(a.route.Applications[a.selectedApp].appdata[0].split("&"),function(a){return a.split("/")[1]}),r.get().$promise.then(function(a){return b=a,s.get().$promise}).then(function(a){return c=a,t.get().$promise}).then(function(e){d=e,ComponentsDropdowns.bindUserByRole(b,c,d,function(b){a.usersArray=_.union(b,a.usersArray),void 0===a.selectedApp?(a.application.appdata[0]=null,a.application.appdata[0]=_.map(a.usersArray,function(a){return"SIP/"+a}).join("&")):(a.route.Applications[a.selectedApp].appdata[0]=null,a.route.Applications[a.selectedApp].appdata[0]=_.map(a.usersArray,function(a){return"SIP/"+a}).join("&"))},function(b){a.usersArray=_.difference(a.usersArray,b),void 0===a.selectedApp?(a.application.appdata[0]=null,a.application.appdata[0]=_.map(a.usersArray,function(a){return"SIP/"+a}).join("&")):(a.route.Applications[a.selectedApp].appdata[0]=null,a.route.Applications[a.selectedApp].appdata[0]=_.map(a.usersArray,function(a){return"SIP/"+a}).join("&"))},a.route.Applications[a.selectedApp]?a.route.Applications[a.selectedApp].appdata:null)})["catch"](function(a){console.error(a)})};var x=function(a){var b=a?30*a+120:177;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",b+"px")};a.initApplication=function(b){b&&(a.selectedApp=void 0),a.forms={settings:void 0,interval:void 0},a.application={},a.interval={intType:"always",t_from:moment(new Date),t_to:moment(new Date),wd_from:"always",wd_to:"always",md_from:"always",md_to:"always",m_from:"always",m_to:"always",alwaysTime:!0},a.main={app:""}},a.$watch("interval",function(a){a&&v(a)},!0),a.updateSetAppdata=function(){a.application.variable&&a.application.value&&"Set"===a.main.app.value?a.application.appdata[0]=a.application.variable+"="+a.application.value:a.application.appdata[0]=null},a.updateSetAppdataSettings=function(){a.application.variable&&a.application.value&&"Set"===a.main.app.value?a.route.Applications[a.selectedApp].appdata[0]=a.application.variable+"="+a.application.value:a.application.appdata[0]=null},a.$watch("main.app",function(b){if(b){var c,d,e={},f={};switch(void 0===a.selectedApp&&(a.application={appType:b.type,app:b.value,interval:a.application.interval||"*,*,*,*",appdata:[]}),b.value){case"Queue":c=l,d=m;break;case"Playback":c=m;break;case"AGI":c=n;break;case"Goto":c=o;break;case"Voicemail":c=q;break;case"Dial":switch(b.type){case"internalDial":c=r,e={controller:"all"};break;case"externalDial":c=u}}if(c)return c.get(e).$promise.then(function(b){a.items=b.rows}).then(function(){return d?d.get(f).$promise:void 0}).then(function(b){b&&(a.items2=b.rows)})["catch"](function(a){h.error(a)})}},!0),a.deselectAndRedirect=function(b){a.selectedApp=void 0,e.path(b)},a.getIntervals=function(){return p.get().$promise.then(function(b){a.Intervals=b.rows,d.syncUpdates("interval",a.Intervals)})["catch"](function(a){h.error(a)})},a.getRoute=function(){return k.get({id:c.id}).$promise.then(function(b){a.route=b,a.gridOptions.data=b.Applications,x(a.gridOptions.data.length)})["catch"](function(a){e.path("/channels/voice/routes/internal/list")})},a.getApplication=function(){if(void 0===a.selectedApp)e.path("/channels/voice/routes/internal/list");else{if(a.showGrid=!0,a.route.Applications[a.selectedApp].appType)a.main.app=_.find(a.$application.applications,{type:a.route.Applications[a.selectedApp].appType});else{var b=_.find(a.$application.applications,{value:a.route.Applications[a.selectedApp].app});if(b)a.main.app=b;else{a.main.app=_.find(a.$application.applications,{type:"custom"});var c=a.route.Applications[a.selectedApp].appdata.join(",");a.route.Applications[a.selectedApp].appdata=[c],a.route.Applications[a.selectedApp].appType="custom"}}if("Set"===a.main.app.value){var d=a.route.Applications[a.selectedApp].appdata[0].split("=");a.application.variable=d[0],a.application.value=d[1]}w()}},a.openApplication=function(b){a.selectedApp=b,a.showGrid=!1,e.path("/channels/voice/routes/internal/view/"+c.id+"/applications/settings")},a.updateRoute=function(d){return a.route.exten=a.$application.checkUnderscore(a.route.exten),_.forEach(a.route.Applications,function(a){if("custom"!==a.appType)switch(a.app){case"Dial":var b;switch(a.appType){case"externalDial":b=3;break;case"internalDial":b=2;break;default:b=2}a.appdata[b]=a.appdata[b]||"",a.appdata[b]+=(_.includes(a.appdata[b],"x")?"":"x")+(_.includes(a.appdata[b],"X")?"":"X");break;case"Queue":a.appdata[1]=a.appdata[1]||"",a.appdata[1]+=(_.includes(a.appdata[1],"x")?"":"x")+(_.includes(a.appdata[1],"X")?"":"X")}}),k.update({id:a.route.id},a.route).$promise.then(function(f){a.selectedApp=void 0,h.show(b.instant("MESSAGE_WELL_DONE")+"!","success"),d&&e.path("/channels/voice/routes/internal/view/"+c.id+"/"+d)})["catch"](function(a){h.error(a)})},a.getContexts=function(){return o.get().$promise.then(function(b){a.voiceContexts=b.rows,d.syncUpdates("voice_context",a.voiceContexts)})["catch"](function(a){h.error(a)})},a.deleteApp=g.confirm["delete"](function(b){a.route.Applications.splice(b,1),a.updateRoute()}),a.addApplication=function(){a.route.Applications.push(a.application),a.updateRoute("applications")},a.goNext=function(){f.wizard().next()},a.previous=function(){f.wizard().previous()},a.formValidation=function(a){return a},a.$on("destroy",function(){d.unsyncUpdates("voice_extension")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.routes.internal.view",{url:"/view/:id",templateUrl:"app/channels/voice/route/internal/view/view.html",controller:"VoiceRouteInternalViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.channels.voice.routes.internal.view.settings",{url:"/settings",templateUrl:"app/channels/voice/route/internal/view/view.settings.html"}).state("main.channels.voice.routes.internal.view.applications",{url:"/applications",templateUrl:"app/channels/voice/route/internal/view/view.applications.html"}).state("main.channels.voice.routes.internal.view.application",{url:"/application",templateUrl:"app/channels/voice/route/view.application.html",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}}).state("main.channels.voice.routes.internal.view.applications.settings",{url:"/settings",templateUrl:"app/channels/voice/route/view.applicationSettings.html",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").controller("VoiceRouteOutboundListCreateCtrl",["$scope","$uibModalInstance","Route","application","xAlert","$translate","$location","Tag","VoiceContext","socket",function(a,b,c,d,e,f,g,h,i,j){a.$application=d.application,a.forms={route:void 0},a.getContexts=function(){return i.get().$promise.then(function(b){a.voiceContexts=b.rows,j.syncUpdates("voice_context",a.voiceContexts)})["catch"](function(a){e.error(a)})},a.item={type:"outbound",appdata:"Outbound Call to ${CALLERID(dnid)}",context:"from-sip"},a.getTags=function(){return h.get().$promise.then(function(b){b.rows.unshift({name:"--"}),a.tags=b.rows})["catch"](function(a){e.error(a)})},a.ok=function(){return a.item.exten=a.$application.checkUnderscore(a.item.exten),c.save(a.item).$promise.then(function(a){b.close(a),g.path("/channels/voice/routes/outbound/view/"+a.id+"/routes")})["catch"](function(a){e.error(a)})},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("VoiceRouteOutboundListCtrl",["$scope","$http","socket","$translate","$rootScope","xAlert","Modal","stResource","gridOptions","Route","$uibModal","$location","$log",function(a,b,c,d,e,f,g,h,i,j,k,l,m){a.initView=function(){var b={exporterCsvFilename:"OutboundRoutes.csv",columnDefs:[{name:"exten",displayName:"APPLICATION_DESTINATION_PATTERN"},{name:"description"},{name:"applications",cellClass:"ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.Applications.length"><span data-ng-repeat="app in row.entity.Applications | limitTo:2">{{app.app}}({{app.appdata[0]}}),</span>...</div><div data-ng-if="!row.entity.Applications.length">{{\'MESSAGE_NO_AVAILABLE_APPLICATIONS\' | translate}}</div>',enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"action",width:75,buttons:[{"class":"blue-hoki",href:"/channels/voice/routes/outbound/view/{{row.entity.id}}/settings",name:"settings"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.exten, row.entity.id)"}]}]};a.gridOptions=i.gridOptions(j,b,a,{type:"outbound"})},a.create=function(){k.open({animation:!0,templateUrl:"app/channels/voice/route/outbound/list/create.modal.html",controller:"VoiceRouteOutboundListCreateCtrl"})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.routes.outbound.list",{url:"/list",templateUrl:"app/channels/voice/route/outbound/list/list.html",controller:"VoiceRouteOutboundListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.routes.outbound",{url:"/outbound",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("VoiceRouteOutboundViewCtrl",["$scope","xAlert","$translate","$stateParams","socket","$location","WizardHandler","Modal","application","interval","Route","Trunk","VoiceContext","Interval","Tag",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){function p(b){var c,d;if("always"===b.intType)c=null,d="*,*,*,*";else if("list"===b.intType)d=b.IntervalId?_.find(a.Intervals,{id:b.IntervalId}).name:"*,*,*,*",c=b.IntervalId||null;else if("custom"===b.intType){c=null;var e,f,g,h;e=b.t_from&&b.t_to&&!b.alwaysTime?moment(b.t_from).format("HH:mm")+"-"+moment(b.t_to).format("HH:mm"):"*",b.wd_from&&"always"!==b.wd_from?(f=b.wd_from,b.wd_to&&"always"!==b.wd_to&&(f+="-"+b.wd_to)):f="*",b.md_from&&"always"!==b.md_from?(g=b.md_from,b.md_to&&"always"!==b.md_to&&(g+="-"+b.md_to)):g="*",b.m_from&&"always"!==b.m_from?(h=b.m_from,b.m_to&&"always"!==b.m_to&&(h+="-"+b.m_to)):h="*",d=e+","+f+","+g+","+h}void 0===a.selectedApp?(a.application.interval=d,a.application.IntervalId=c):(a.route.Applications[a.selectedApp].interval=d,a.route.Applications[a.selectedApp].IntervalId=c)}function q(){if(a.interval.intType=a.route.Applications[a.selectedApp].IntervalId?"list":"*,*,*,*"===a.route.Applications[a.selectedApp].interval?"always":"custom",a.interval.IntervalId=a.route.Applications[a.selectedApp].IntervalId,!a.route.Applications[a.selectedApp].IntervalId){var b,c=a.route.Applications[a.selectedApp].interval?a.route.Applications[a.selectedApp].interval.split(","):["*","*","*","*"];c.forEach(function(c,d){switch(d){case 0:"*"!==c?(b=c.split("-"),a.interval.t_from=moment(b[0],"HH:mm"),a.interval.t_to=moment(b[1],"HH:mm"),a.interval.alwaysTime=!1):(a.interval.t_from=moment(new Date),a.interval.t_to=moment(new Date),a.interval.alwaysTime=!0);break;case 1:"*"!==c?(b=c.split("-"),a.interval.wd_from=b[0],a.interval.wd_to=b[1]?b[1]:"always"):(a.interval.wd_from="always",a.interval.wd_to="always");break;case 2:"*"!==c?(b=c.split("-"),a.interval.md_from=b[0],a.interval.md_to=b[1]?b[1]:"always"):(a.interval.md_from="always", +a.interval.md_to="always");break;case 3:"*"!==c?(b=c.split("-"),a.interval.m_from=b[0],a.interval.m_to=b[1]?b[1]:"always"):(a.interval.m_from="always",a.interval.m_to="always")}})}}a.$translate=c,a.selectedApp=void 0,a.showGrid=!0,a.$application=i.application,a.$interval=j.interval,a._=_,a.recordSwitch={onText:"On",offText:"Off",isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.alwaysSwitch={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.selectedRows=[],a.gridOptions={enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableSorting:!1,rowTemplate:'<div grid="grid" class="ui-grid-draggable-row" draggable="true"><div ng-repeat="(colRenderIndex, col) in colContainer.renderedColumns track by col.colDef.name" class="ui-grid-cell" ng-class="{ \'ui-grid-row-header-cell\': col.isRowHeader, \'custom\': true }" ui-grid-cell></div></div>',columnDefs:[{name:"app",displayName:"APPLICATION_APPLICATION",cellClass:"ui-grid-vcenter",cellTemplate:"<div><span data-ng-if=\"row.entity.appType === 'externalDial'\">Default</span><span data-ng-if=\"row.entity.appType !== 'externalDial'\">{{row.entity.app}}</span></div>",headerCellFilter:"translate",enableColumnMenu:!1},{name:"appType",headerCellFilter:"translate",displayName:"APPLICATION_INFO",cellClass:"ui-grid-vcenter",cellTemplate:"<div>{{'APPLICATION_APPS_'+(row.entity.appType || (grid.appScope._.find(grid.appScope.$application.applications,{value:row.entity.app}) ? row.entity.app : 'custom')).toUpperCase() | translate}}</div>",enableColumnMenu:!1},{name:"appdata",displayName:"APPLICATION_ARGUMENTS",headerCellFilter:"translate",cellClass:"ui-grid-vcenter",cellTemplate:"<div>{{row.entity.appdata.join(',')}}</div>",enableColumnMenu:!1},{name:"interval",displayName:"APPLICATION_TIME_INTERVAL",headerCellFilter:"translate",enableColumnMenu:!1},{name:"action",displayName:"APPLICATION_ACTION",headerCellFilter:"translate",width:125,enableColumnMenu:!1,cellClass:"ui-grid-vcenter",cellTemplate:'<div><a class="btn btn-xs blue-hoki" data-ng-click="grid.appScope.openApplication(grid.appScope.gridOptions.data.indexOf(row.entity))"><i class="icon-settings"></i></a><a class="btn btn-xs red-sunglo" data-ng-click="grid.appScope.deleteApp(row.entity.app+\' application\', grid.appScope.gridOptions.data.indexOf(row.entity))"><i class="fa fa-trash"></i></a></div>'}],onRegisterApi:function(b){b.selection.on.rowSelectionChanged(a,function(b){b.isSelected?a.selectedRows.push(b.entity):_.pull(a.selectedRows,b.entity)}),b.selection.on.rowSelectionChangedBatch(a,function(b){b[0].isSelected?a.selectedRows=_.map(b,"entity"):a.selectedRows=[]}),b.draggableRows.on.rowDropped(a,function(b,c){a.updateRoute()}),b.grid.registerDataChangeCallback(function(){r(a.gridOptions.data.length)})}},a.deleteItems=h.confirm["delete"](function(){_.remove(a.route.Applications,function(b){return _.includes(a.selectedRows,b)}),a.selectedRows=[],a.updateRoute()});var r=function(a){var b=a?30*a+120:177;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",b+"px")};a.initApplication=function(b){b&&(a.selectedApp=void 0),a.forms={info:void 0,interval:void 0},a.application={},a.interval={intType:"always",t_from:moment(new Date),t_to:moment(new Date),wd_from:"always",wd_to:"always",md_from:"always",md_to:"always",m_from:"always",m_to:"always",alwaysTime:!0},a.main={app:""},a.applications=[{name:"Default",value:"Dial",type:"outboundDial"},{name:"Custom",value:"custom",type:"custom"}]},a.$watch("interval",function(a){a&&p(a)},!0),a.$watch("main.app",function(c){if(c){var d,e;switch(void 0===a.selectedApp&&(a.application={appType:c.type,app:c.value,interval:a.application.interval||"*,*,*,*",appdata:[]}),c.value){case"Dial":d=l;break;default:d=null,e=null}if(d)return d.get().$promise.then(function(b){a.items=b.rows}).then(function(){return e?e.get().$promise:void 0}).then(function(b){b&&(a.items2=b.rows)})["catch"](function(a){b.error(a)})}},!0),a.deselectAndRedirect=function(b){a.selectedApp=void 0,f.path(b)},a.getIntervals=function(){return n.get().$promise.then(function(b){a.Intervals=b.rows,e.syncUpdates("interval",a.Intervals)})["catch"](function(a){b.error(a)})},a.getRoute=function(){return k.get({id:d.id}).$promise.then(function(b){a.route=b,a.gridOptions.data=b.Applications,r(a.gridOptions.data.length)})["catch"](function(a){f.path("/channels/voice/routes/outbound/list")})},a.getApplication=function(){if(void 0===a.selectedApp)f.path("/channels/voice/routes/outbound/list");else{if(a.showGrid=!0,a.route.Applications[a.selectedApp].appType)a.main.app=_.find(a.applications,{type:a.route.Applications[a.selectedApp].appType});else{a.main.app=_.find(a.applications,{type:"custom"});var b=a.route.Applications[a.selectedApp].appdata.join(",");a.route.Applications[a.selectedApp].appdata=[b],a.route.Applications[a.selectedApp].appType="custom"}q()}},a.openApplication=function(b){a.selectedApp=b,a.showGrid=!1,f.path("/channels/voice/routes/outbound/view/"+d.id+"/routes/settings")},a.updateRoute=function(e){return a.route.exten=a.$application.checkUnderscore(a.route.exten),_.forEach(a.route.Applications,function(a){"outboundDial"===a.appType&&(a.appdata[4]=a.appdata[4]||"",a.appdata[4]+=(_.includes(a.appdata[4],"x")?"":"x")+(_.includes(a.appdata[4],"X")?"":"X"))}),k.update({id:a.route.id},a.route).$promise.then(function(g){a.selectedApp=void 0,b.show(c.instant("MESSAGE_WELL_DONE")+"!","success"),e&&f.path("/channels/voice/routes/outbound/view/"+d.id+"/"+e)})["catch"](function(a){b.error(a)})},a.getContexts=function(){return m.get().$promise.then(function(b){a.voiceContexts=b.rows,e.syncUpdates("voice_context",a.voiceContexts)})["catch"](function(a){b.error(a)})},a.getTags=function(){return o.get().$promise.then(function(b){b.rows.unshift({name:"--"}),a.tags=b.rows})["catch"](function(a){b.error(a)})},a.deleteApp=h.confirm["delete"](function(b){a.route.Applications.splice(b,1),a.updateRoute()}),a.addApplication=function(){a.route.Applications.push(a.application),a.updateRoute("routes")},a.goNext=function(){g.wizard().next()},a.previous=function(){g.wizard().previous()},a.formValidation=function(a){return a},a.$on("destroy",function(){e.unsyncUpdates("voice_extension")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.routes.outbound.view",{url:"/view/:id",templateUrl:"app/channels/voice/route/outbound/view/view.html",controller:"VoiceRouteOutboundViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.channels.voice.routes.outbound.view.settings",{url:"/settings",templateUrl:"app/channels/voice/route/outbound/view/view.settings.html"}).state("main.channels.voice.routes.outbound.view.routes",{url:"/routes",templateUrl:"app/channels/voice/route/outbound/view/view.routes.html"}).state("main.channels.voice.routes.outbound.view.route",{url:"/route",templateUrl:"app/channels/voice/route/outbound/view/view.route.html"}).state("main.channels.voice.routes.outbound.view.routes.settings",{url:"/settings",templateUrl:"app/channels/voice/route/outbound/view/view.routeSettings.html"})}]),angular.module("xCallyShuttleApp").factory("Route",["$resource",function(a){return a("/api/voice/extensions/:id",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.routes",{url:"/routes",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:21}}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice",{url:"/voice",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:7}}})}]),angular.module("xCallyShuttleApp").controller("VoiceVoicemailListCtrl",["$scope","VoiceMail","gridOptions",function(a,b,c){a.initView=function(){var d={exporterCsvFilename:"voice_mails.csv",primaryKey:"uniqueid",columnDefs:[{name:"mailbox"},{name:"fullname"},{name:"email"},{name:"action",width:75,buttons:[{"class":"blue-hoki",href:"/channels/voice/voicemails/view/{{row.entity.uniqueid}}/settings",name:"profile"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.mailbox, row.entity.uniqueid)"}]}]};a.gridOptions=c.gridOptions(b,d,a)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.voicemails.list",{url:"/list",templateUrl:"app/channels/voice/voicemail/list/list.html",controller:"VoiceVoicemailListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("VoiceVoicemailViewCtrl",["$scope","VoiceMail","VoiceMailMessage","VoiceContext","$http","xAlert","$translate","$stateParams","socket","$sce","Modal","$location","gridOptions","uiGridConstants",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n){function o(){var b={exporterCsvFilename:"voice_mail_messages.csv",primaryKey:"id",columnDefs:[{name:"callerid"},{name:"stamp",displayName:"APPLICATION_DATE",cellClass:"ui-grid-vcenter",cellTemplate:"<div>{{grid.appScope.moment(row.entity.stamp).format('YYYY-MM-DD HH:mm:ss')}}</div>",sort:{direction:n.DESC,priority:0}},{name:"duration",cellClass:"ui-grid-vcenter",cellTemplate:"<div>{{row.entity.duration*1000 | date:'mm:ss'}}</div>"},{name:"audio",displayName:"",width:225,enableSorting:!1,enableFiltering:!1,buttons:[{directive:'<audio-file-download params="{id:row.entity.id,controller:\'download\'}" resource="grid.appScope.VoiceMailMessage"></audio-file-download>'}]},{name:"action",width:150,buttons:[{directive:'<motion-file-download params="{id:row.entity.id,controller:\'download\'}" resource="grid.appScope.VoiceMailMessage" mimetype="audio/wav" btnclass="btn btn-xs blue-hoki" filename="row.entity.msg_id+\'.wav\'"></motion-file-download>'},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.id, row.entity.id)"}]}]};a.gridOptions=m.gridOptions(c,b,a,{mailbox:a.voicemail.mailbox,context:a.voicemail.context})}a.moment=moment,a["switch"]={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.VoiceMailMessage=c,a.getVoicemail=function(){return b.get({id:h.uniqueid}).$promise.then(function(b){delete b.password,delete b.stamp,a.voicemail=b})["catch"](function(a){l.path("/voice/voicemails/list")})},a.updateVoiceVoicemail=function(){return b.update({id:h.uniqueid},a.voicemail).$promise.then(function(){f.show(g.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})},a.getContexts=function(){return d.get().$promise.then(function(b){a.voiceContexts=b.rows})["catch"](function(a){f.error(a)})},a.getMessages=function(){return a.voicemail?void o():b.get({id:h.uniqueid}).$promise.then(function(b){delete b.password,delete b.stamp,a.voicemail=b,o()})["catch"](function(a){l.path("/voice/voicemails/view/"+h.uniqueid+"/settings")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.voicemails.view",{url:"/view/:uniqueid",templateUrl:"app/channels/voice/voicemail/view/view.html",controller:"VoiceVoicemailViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.channels.voice.voicemails.view.settings",{url:"/settings",templateUrl:"app/channels/voice/voicemail/view/view.settings.html"}).state("main.channels.voice.voicemails.view.messages",{url:"/messages",templateUrl:"app/channels/voice/voicemail/view/view.messages.html"})}]),angular.module("xCallyShuttleApp").factory("VoiceMail",["$resource",function(a){return a("/api/voice/voicemails/:id/:controller",{uniqueid:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.voicemails",{url:"/voicemails",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:23}}})}]),angular.module("xCallyShuttleApp").factory("VoiceMailMessage",["$resource",function(a){return a("/api/voice/voicemails/messages/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("VoiceVoicemailWizardCtrl",["$scope","VoiceMail","xAlert","WizardHandler","$location","Setting",function(a,b,c,d,e,f){a.initWizard=function(){a.form={},a.item={context:"from-voicemail",attach:"no"}},a["switch"]={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.next=function(){d.wizard().next()},a.previous=function(){d.wizard().previous()},a.exitValidation=function(a){return a},a.getFirstFreeMailbox=function(){f.get({controller:"mailbox"}).$promise.then(function(b){a.item.mailbox=b.value})["catch"](function(a){c.error(a)})},a.createItem=function(){return a.item.customer_id=a.item.mailbox,b.save(a.item).$promise.then(function(){e.path("/channels/voice/voicemails/list")})["catch"](function(a){c.error(data)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.voicemails.wizard",{url:"/wizard",templateUrl:"app/channels/voice/voicemail/wizard/wizard.html",controller:"VoiceVoicemailWizardCtrl"})}]),angular.module("xCallyShuttleApp").factory("VoiceQueue",["$resource",function(a){return a("/api/voice/queues/:id/:controller/:controller2",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("Company",["$resource",function(a){return a("/api/contactmanager/companies/:id/:controller",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.contactmanager.companies",{url:"/companies",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:5}}})}]),angular.module("xCallyShuttleApp").controller("CompanyListCreateModalCtrl",["$scope","$uibModalInstance",function(a,b){a.forms={dashboard:void 0},a.item={},a.ok=function(){a.item.model=JSON.stringify({title:a.item.name}),b.close(a.item)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("ContactManagerCompanyListCtrl",["$scope","$translate","xAlert","Modal","$uibModal","$log","Company","gridOptions","$location","$state",function(a,b,c,d,e,f,g,h,i,j){a.initView=function(){var b={exporterCsvFilename:"Companies.csv",columnDefs:[{name:"name"},{name:"description"},{name:"action",width:100,buttons:[{"class":"blue-hoki",name:"profile",href:"/contactmanager/companies/view/{{row.entity.id}}/settings"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"},{"class":"green-turquoise",name:"contacts",onClick:"grid.appScope.goToContacts(row.entity.id)"}]}]};a.gridOptions=h.gridOptions(g,b,a)},a.goToContacts=function(a){j.go("main.contactmanager.contacts.list",{companyId:a})},a.create=function(){var a=e.open({animation:!0,size:"lg",templateUrl:"app/contactmanager/company/list/create.modal.html",controller:"CompanyListCreateModalCtrl"});a.result.then(function(a){return g.save(a).$promise.then(function(a){i.path("/contactmanager/companies/view/"+a.id+"/settings")})["catch"](function(a){c.error(a)})},function(){f.info("Modal dismissed at: "+new Date)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.contactmanager.companies.list",{url:"/list",templateUrl:"app/contactmanager/company/list/list.html",controller:"ContactManagerCompanyListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("ContactManagerCompanyViewCtrl",["$scope","xAlert","$translate","$stateParams","$location","Company",function(a,b,c,d,e,f){a.getCompany=function(){return f.get({id:d.id}).$promise.then(function(b){a.company=b})["catch"](function(a){e.path("/contactmanager/companies/list")})},a.updateCompany=function(){return f.update({id:d.id},a.company).$promise.then(function(){b.show(c.instant("MESSAGE_WELL_DONE")+"!","success")})["catch"](function(a){b.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.contactmanager.companies.view",{url:"/view/:id",templateUrl:"app/contactmanager/company/view/view.html",controller:"ContactManagerCompanyViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.contactmanager.companies.view.settings",{url:"/settings",templateUrl:"app/contactmanager/company/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").factory("Contact",["$resource",function(a){return a("/api/contactmanager/contacts/:id/:controller/:controller2",{id:"@id"},{update:{method:"PUT"},search:{method:"POST"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.contactmanager.contacts",{url:"/contacts",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("ContactManagerListCopyModalCtrl",["$scope","$uibModalInstance","xAlert","List","Contact","$translate",function(a,b,c,d,e,f){a.item={},a.getLists=function(){return d.get().$promise.then(function(b){a.lists=b.rows})["catch"](function(a){c.error(a)})},a.ok=function(){b.close(a.item)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("ContactManagerListImportModalCtrl",["$scope","$uibModalInstance","indexes","csv","xAlert","socket","List","Contact","$translate","Company","companyId","listId",function(a,b,c,d,e,f,g,h,i,j,k,l){function m(a){var b,c;if(!a)return 0;for(a=a.toString(),b=c=a.length;b--;){var d=a[b].charCodeAt();d>=56320&&57343>=d&&b--,d>127&&2047>=d?c++:d>2047&&65535>=d&&(c+=2)}return c}function n(b){if(b>=a.csvLength||a.stopped)return void(a.importing=!1);for(var c,f=[],g="",j=b;b+200>j&&j<a.csvLength;j++)c={},_.forOwn(a.item,function(b,e){switch(e){case"tags":c.tags=[],a.item.tags.forEach(function(a){d[j][a]&&c.tags.push(d[j][a])});break;default:c[e]=d[j][b]}}),c.ListId=a.item.ListId,c.CompanyId=a.item.CompanyId||null,c.firstName?f.push(c):(a["import"].fail+=1*a.addingQuote,a["import"].failed++,g+=(g?",(":"(")+(j+2)+")");return m(JSON.stringify(f))<=5e7?h.save({controller:"bulk"},{contacts:f}).$promise.then(function(c){a["import"].success+=c.ok*a.addingQuote,a["import"].succeeded+=c.ok,a["import"].fail+=c.ko*a.addingQuote,a["import"].failed+=c.ko,c.failed.length&&(_.forEach(c.failed,function(a,d){c.failed[d]+=b+2}),a.failedRows+=(a.failedRows?",":"")+_.sortBy(c.failed).join(",")),g&&(a.failedRows+=(a.failedRows?",":"")+g),n(j)})["catch"](function(b){a.stopped=!0,e.error(b),n(j)}):(a.stopped=!0,e.show(i.instant("MESSAGE_REQUEST_TOO_BIG"),"warning"),n(j),void 0)}a.indexes=c,a.importing=!1,a.submitted=!1,a.stopped=!1,a["import"]={success:0,fail:0,succeeded:0,failed:0},a.csvLength=d.length,a.addingQuote=100/a.csvLength,a.forms={csv:void 0},a.item={CompanyId:k||null,ListId:l||null},a.start=function(){a.importing=!0,a.submitted=!0,a.failedRows="",n(0)},a.getLists=function(){return g.get().$promise.then(function(b){a.lists=b.rows,a.item.ListId||(a.item.ListId=a.lists[0]?a.lists[0].id:null),a.getCustomFields()})["catch"](function(a){e.error(a)})},a.getCompanies=function(){return j.get().$promise.then(function(b){a.companies=b.rows})["catch"](function(a){e.error(a)})},a.getCustomFields=function(){return g.get({listId:a.item.ListId,controller:"customfields",id:"all"}).$promise.then(function(b){b.rows.forEach(function(a){a.values=JSON.parse(a.values)}),a.customFields=b.rows,f.socket.on("custom_field:remove",function(b){_.remove(a.customFields,function(a){return b.id==a.id})}),f.socket.on("custom_field:save",function(b){if(b.ListId===a.item.ListId){var c=_.find(a.customFields,{id:b.id});c||("string"==typeof b.values&&(b.values=JSON.parse(b.values)),a.customFields.push(b))}})})["catch"](function(a){console.error(a),e.error(a)})},a.close=function(){b.close()},a.stop=function(){a.stopped=!0}}]),angular.module("xCallyShuttleApp").controller("ContactManagerContactListCtrl",["$scope","$translate","Modal","FileUploader","Papa","$uibModal","$log","Contact","gridOptions","List","uiGridConstants","xAlert","socket","$stateParams","Auth","Company","usSpinnerService","$http","$rootScope","CustomField",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t){function u(){m.socket.on("contact_manager:save",function(){a.gridOptions.getPage()})}a.Auth=o,a.isAgent=o.isAgent(),a.agent=o.getCurrentUser(),a.initView=function(){var c;return j.get().$promise.then(function(b){return a.lists=[],b.rows.forEach(function(b){a.lists.push({value:b.id,label:b.name})}),t.get({controller:"all"}).$promise}).then(function(b){return a.customFields=b.rows,p.get().$promise}).then(function(b){a.companies=[],b.rows.forEach(function(b){a.companies.push({value:b.id,label:b.name})})}).then(function(){var d=[{"class":"blue-hoki",name:"profile",onClick:"grid.appScope.openContactTab(row.entity)"}];o.isAgent()||(d.push({"class":"green",title:b.instant("APPLICATION_COPY"),name:"copy",onClick:"grid.appScope.copy(row.entity.id)"}),d.push({"class":"red-sunglo",name:"delete",title:b.instant("APPLICATION_DELETE"),onClick:"grid.appScope.deleteItem(row.entity.fullname, row.entity.id)"})),c={exporterMenuAllData:!1,exporterMenuVisibleData:!1,exporterMenuSelectedData:!1,exporterCsvFilename:"Contacts.csv",columnDefs:[{name:"id",width:56},{name:"firstName"},{name:"lastName"},{name:"phone",displayName:"APPLICATION_PHONE",cellTemplate:'<div class="ui-grid-cell-contents">{{row.entity.phone}} <a href="#" data-ng-if="grid.appScope.isAgent && row.entity.phone && grid.appScope.agent.phoneBarRemoteControl" data-ng-click="grid.appScope.callPhoneBar(row.entity.phone,\'call\')" title="Call {{row.entity.phone}}"><i class="icon-phone"></i></a> <a href="#" data-ng-if="grid.appScope.isAgent && row.entity.phone && grid.appScope.agent.phoneBarRemoteControl" data-ng-click="grid.appScope.callPhoneBar(row.entity.phone,\'transfer\')" title="Call {{row.entity.phone}}"><i class="glyphicon glyphicon-random"></i></a></div>'},{name:"mobile",displayName:"APPLICATION_MOBILE",cellTemplate:'<div class="ui-grid-cell-contents">{{row.entity.mobile}} <a href="#" data-ng-if="grid.appScope.isAgent && row.entity.mobile && grid.appScope.agent.phoneBarRemoteControl" data-ng-click="grid.appScope.callPhoneBar(row.entity.mobile,\'call\')" title="Call {{row.entity.mobile}}"><i class="icon-phone"></i></a> <a href="#" data-ng-if="grid.appScope.isAgent && row.entity.mobile && grid.appScope.agent.phoneBarRemoteControl" data-ng-click="grid.appScope.callPhoneBar(row.entity.mobile,\'transfer\')" title="Transfer call to {{row.entity.mobile}}"><i class="glyphicon glyphicon-random"></i></a></div>'},{name:"email",displayName:"APPLICATION_EMAIL",cellTemplate:'<div class="ui-grid-cell-contents"><a href="#" data-ng-if="grid.appScope.license.mail && row.entity.email && grid.appScope.isAgent" data-ng-click="grid.appScope.openRoom(null,\'mailRoom\',{to:row.entity.email})">{{row.entity.email}}</a><span data-ng-if="!grid.appScope.license.mail || !grid.appScope.isAgent">{{row.entity.email}}</span></div>'},{name:"ListId",displayName:"APPLICATION_LIST",field:"List",filter:{type:k.filter.SELECT,term:n.listId||null,selectOptions:a.lists},cellTemplate:'<div class="centered-uigrid-td"><a data-ng-if="!grid.appScope.isAgent" href="/contactmanager/lists/view/{{row.entity.ListId}}/settings">{{row.entity.List}}</a><span data-ng-if="grid.appScope.isAgent">{{row.entity.List}}</span></div>'},{name:"CompanyId",displayName:"APPLICATION_COMPANY",field:"Company",filter:{type:k.filter.SELECT,term:n.companyId||null,selectOptions:a.companies},cellTemplate:'<div class="centered-uigrid-td"><a data-ng-if="!grid.appScope.isAgent" href="/contactmanager/companies/view/{{row.entity.CompanyId}}/settings">{{row.entity.Company}}</a><span data-ng-if="grid.appScope.isAgent">{{row.entity.Company}}</span></div>'},{name:"tags",filterHeaderTemplate:'<div class="ui-grid-filter-container"><div ng-repeat="colFilter in col.filters" class="col-md-12 col-md-offset-0 col-sm-12 col-sm-offset-0 col-xs-12 col-xs-offset-0"><div custom-grid-tags-filter-header></div></div></div>',filters:[{name:"tags"}],cellTemplate:"<div class=\"centered-uigrid-td\">{{row.entity.tags.join(',')}}</div>"}]},_.forEach(a.customFields,function(a){c.columnDefs.push({name:a.name,displayName:a.alias,visible:!1})}),c.columnDefs.push({name:"action",width:100,buttons:d}),a.gridOptions=i.gridOptions(h,c,a),u()})["catch"](function(a){l.error(a)})},a.callPhoneBar=function(c,d){var e;switch(d){case"call":e="http://127.0.0.1:"+a.agent.phoneBarRemoteControlPort+"/api/originate/"+c;break;case"transfer":e="http://127.0.0.1:"+a.agent.phoneBarRemoteControlPort+"/api/transfer?number="+c;break;default:e="http://127.0.0.1:"+a.agent.phoneBarRemoteControlPort+"/api/originate/"+c}return r.get(e).success(function(){l.show(b.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){console.error(a),l.error({message:b.instant("MESSAGE_UNABLE_TO_CONTACT_PHONEBAR")})})},a.openRoom=function(a,b,c){var d=_.find(s.workspaces,{id:a,type:b});if(d)d.active=!0;else{var e;switch(b){case"mailRoom":e="icon-envelope";break;case"chatRoom":e="fa fa-users";break;case"faxRoom":e="fa fa-fax";break;case"smsRoom":e="glyphicon glyphicon-comment"}s.workspaces.push({id:a,type:b,"class":e,active:!0,data:c})}},d.FileSelect.prototype.isEmptyAfterSelection=function(){return!0};var v=a.uploader=new d({queueLimit:1,clearInputAfterAddedToQueue:!0});v.onAfterAddingFile=function(b){e.parse(b._file,{header:!0,complete:function(b){a.uploader.clearQueue(),a["import"](b.data)},error:function(a){console.log(a)}})},a.extractAll=function(){q.spin("grid-spinner");var b=_.clone(a.gridOptions.pagOpt);return delete b.limit,delete b.offset,h.get(_.merge({controller:"extract",controller2:"all"},b)).$promise.then(function(a){return q.stop("grid-spinner"),a.rows})["catch"](function(a){l.error(a)})},a["import"]=function(b){m.unsyncUpdates("contact_manager");var c=f.open({animation:!0,size:"lg",backdrop:"static",keyboard:!1,templateUrl:"app/contactmanager/contact/list/import.modal.html",controller:"ContactManagerListImportModalCtrl",resolve:{indexes:function(){return _.keys(b[0])},csv:function(){return b},companyId:function(){return a.gridOptions.columnDefs[7].filter.term||null},listId:function(){return a.gridOptions.columnDefs[6].filter.term||null}}});c.result.then(function(){console.log("result"),u(),a.gridOptions.getPage()},function(){g.info("Modal dismissed at: "+new Date)})},a.copy=function(b){var c=f.open({animation:!0,size:"small",templateUrl:"app/contactmanager/contact/list/copy.modal.html",controller:"ContactManagerListCopyModalCtrl"});c.result.then(function(c){return h.save({id:b,controller:"copy"},c).$promise.then(function(b){a.openContactTab({firstName:b.firstName,lastName:b.lastName,id:b.id})})["catch"](function(a){l.error(a)})},function(){g.info("Modal dismissed at: "+new Date)})},a.$on("$destroy",function(){m.unsyncUpdates("contact_manager")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.contactmanager.contacts.list",{url:"/list",templateUrl:"app/contactmanager/contact/list/list.html",params:{listId:null,companyId:null},controller:"ContactManagerContactListCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.contactmanager",{url:"/contactmanager",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:5}}})}]),angular.module("xCallyShuttleApp").factory("CustomField",["$resource",function(a){return a("/api/contactmanager/customfields/:id/:controller",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.contactmanager.customfields",{url:"/customfields",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:5}}})}]),angular.module("xCallyShuttleApp").controller("CustomFieldListCreateModalCtrl",["$scope","$uibModalInstance","$translate",function(a,b,c){a.$translate=c,a.forms={dashboard:void 0},a.item={},a.choices=[{value:""}],a.bsSwitch={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.addField=function(){a.choices.push({})},a.removeField=function(b){a.choices.splice(b,1)},a.types=[{name:"APPLICATION_TEXT",value:"text"},{name:"APPLICATION_SELECT",value:"select"}],a.ok=function(){"select"===a.item.type&&(a.item.values=angular.toJson(a.choices)),b.close(a.item)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("ContactManagerCustomFieldListCtrl",["$scope","$translate","xAlert","Modal","$uibModal","$log","CustomField","gridOptions",function(a,b,c,d,e,f,g,h){a.initView=function(){var b={exporterCsvFilename:"customfields.csv",primaryKey:"id",columnDefs:[{name:"alias",displayName:"APPLICATION_NAME"},{name:"name",displayName:"APPLICATION_FIELD"},{name:"type"},{name:"action",width:200,buttons:[{"class":"blue-hoki",href:"/contactmanager/customfields/view/{{row.entity.id}}/settings",name:"settings"},{"class":"red-sunglo",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)",name:"delete"}]}]};a.gridOptions=h.gridOptions(g,b,a)},a.create=function(){var d=e.open({animation:!0,size:"lg",templateUrl:"app/contactmanager/customfield/list/create.modal.html",controller:"CustomFieldListCreateModalCtrl"});d.result.then(function(d){return g.save(d).$promise.then(function(){a.gridOptions.getPage(),c.show(b.instant("MESSAGE_WELL_DONE")+"!","success")})["catch"](function(a){c.error(a)})},function(){f.info("Modal dismissed at: "+new Date)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.contactmanager.customfields.list",{url:"/list",templateUrl:"app/contactmanager/customfield/list/list.html",controller:"ContactManagerCustomFieldListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("ContactManagerCustomFieldViewCtrl",["$scope","xAlert","$translate","$stateParams","$location","CustomField",function(a,b,c,d,e,f){function g(a){var b=a.split(""),c=0,d=0;return b.shift(),b.forEach(function(a,b){"{"===a?c++:"}"===a&&(c--,c||(d=b+1))}),d?JSON.parse("["+a.substr(1,d)+"]"):[]}a.bsSwitch={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.getCustomField=function(){return f.get({id:d.id}).$promise.then(function(b){if(a.customField=b,"select"===a.customField.type)try{a.choices=JSON.parse(a.customField.values)}catch(c){a.choices=g(a.customField.values)}})["catch"](function(){e.path("/contactmanager/customfields/list")})},a.addField=function(){a.choices.push({})},a.removeField=function(b){a.choices.splice(b,1)},a.updateCustomField=function(){var e=angular.copy(a.customField);return"select"===e.type&&(e.values=angular.toJson(a.choices)),f.update({id:d.id},a.customField).$promise.then(function(){b.show(c.instant("MESSAGE_WELL_DONE")+"!","success"); +})["catch"](function(a){b.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.contactmanager.customfields.view",{url:"/view/:id",templateUrl:"app/contactmanager/customfield/view/view.html",controller:"ContactManagerCustomFieldViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.contactmanager.customfields.view.settings",{url:"/settings",templateUrl:"app/contactmanager/customfield/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").factory("List",["$resource",function(a){return a("/api/contactmanager/lists/:listId/:controller/:id",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.contactmanager.lists",{url:"/lists",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:5}}})}]),angular.module("xCallyShuttleApp").controller("ContactManagerListListCreateModalCtrl",["$scope","$uibModalInstance",function(a,b){a.forms={dashboard:void 0},a.item={},a.ok=function(){b.close(a.item)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("ContactManagerListListCtrl",["$scope","$http","$translate","Modal","xAlert","$uibModal","$log","List","gridOptions","$state","MotionDialerList","$rootScope",function(a,b,c,d,e,f,g,h,i,j,k,l){a.initView=function(){var b={exporterCsvFilename:"Lists.csv",columnDefs:[{name:"id"},{name:"name"},{name:"description"},{name:"action",width:120,buttons:[{"class":"blue-hoki",name:"settings",href:"/contactmanager/lists/view/{{row.entity.id}}/settings"},{"class":"green-turquoise",name:"contacts",onClick:"grid.appScope.goToContacts(row.entity.id)"},{"class":"red-thunderbird",name:"deleteContacts",onClick:"grid.appScope.deleteAllContacts('"+c.instant("APPLICATION_ALL_CONTACTS_FROM_THE_LIST")+" '+row.entity.name, row.entity.id)"},{"class":"{{row.entity.defaultEntry ? 'red-sunglo disabled' : 'red-sunglo'}}",name:"delete",onClick:"grid.appScope.deleteList(row.entity.name, row.entity.id)"}]}]};a.gridOptions=i.gridOptions(h,b,a)},a.goToContacts=function(a){j.go("main.contactmanager.contacts.list",{listId:a})},a.deleteAllContacts=d.confirm["delete"](function(a){return h.remove({listId:a,controller:"contacts"}).$promise.then(function(){e.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){e.error(a)})}),a.deleteList=d.confirm["delete"](function(b){return l.license.dialer?k.find({id_source:b}).$promise.then(function(a){return a&&a.status>0?a.response.RMI.rows[0]?k["delete"]({id:a.response.RMI.rows[0].id}).$promise:{status:1}:void e.show(a?a.message||"Please, check your connection!":"Please, check your connection!","danger")}).then(function(d){if(d&&d.status>0)return h.remove({id:b}).$promise.then(function(){a.gridOptions.getPage(),e.show(c.instant("MESSAGE_WELL_DONE"),"success")});var f="Please, check your connection!";d&&(f=d.response&&d.response.RMI?d.response.RMI.errors||d.message||"Please, check your connection!":d.message||"Please, check your connection!"),e.show(f,"danger")})["catch"](function(a){e.error(a)}):h.remove({id:b}).$promise.then(function(){a.gridOptions.getPage(),e.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){e.error(a)})}),a.create=function(){var d=f.open({animation:!0,templateUrl:"app/contactmanager/list/list/create.modal.html",controller:"ContactManagerListListCreateModalCtrl"});d.result.then(function(d){b.post("/api/contactmanager/lists/",d).then(function(){a.gridOptions.getPage(),e.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){e.error(a)})},function(){g.info("Modal dismissed at: "+new Date)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.contactmanager.lists.list",{url:"/list",templateUrl:"app/contactmanager/list/list/list.html",controller:"ContactManagerListListCtrl"})}]),angular.module("xCallyShuttleApp").controller("ContactManagerListCustomFieldViewCreateModalCtrl",["$scope","$uibModalInstance","$translate",function(a,b,c){a.$translate=c,a.forms={dashboard:void 0},a.item={},a.choices=[{value:""}],a.bsSwitch={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.addField=function(){a.choices.push({})},a.removeField=function(b){a.choices.splice(b,1)},a.types=[{name:"APPLICATION_TEXT",value:"text"},{name:"APPLICATION_SELECT",value:"select"}],a.ok=function(){"select"===a.item.type&&(a.item.values=angular.toJson(a.choices)),b.close(a.item)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("ContactManagerListViewCtrl",["$scope","xAlert","$translate","$stateParams","socket","$location","$uibModal","$log","Modal","List","Team","gridOptions",function(a,b,c,d,e,f,g,h,i,j,k,l){function m(a){var b=a.split(""),c=0,d=0;return b.shift(),b.forEach(function(a,b){"{"===a?c++:"}"===a&&(c--,c||(d=b+1))}),d?JSON.parse("["+a.substr(1,d)+"]"):[]}var n=[{name:"firstName",value:"firstName"},{name:"lastName",value:"lastName"},{name:"CompanyId",value:"CompanyId"},{name:"phone",value:"phone"},{name:"mobile",value:"mobile"},{name:"email",value:"email"},{name:"fax",value:"fax"},{name:"tags",value:"tags"},{name:"ListId",value:"ListId"},{name:"street",value:"street"},{name:"postalCode",value:"postalCode"},{name:"city",value:"city"},{name:"country",value:"country"},{name:"dateOfBirth",value:"dateOfBirth"},{name:"description",value:"description"},{name:"url",value:"url"}];a.bsSwitch={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"};var o=function(){return{select:function(b){return j.save({listId:a.list.id,controller:"agents"},{agents:b}).$promise.then(function(){a.getTeams()})["catch"](function(a){console.log(a)})},deselect:function(b){return j["delete"]({listId:a.list.id,controller:"agents",agents:b}).$promise.then(function(){a.getTeams()})["catch"](function(a){console.log(a)})}}};a.initVariables=function(){return j.get({listId:d.id,controller:"customfields",id:"all"}).$promise.then(function(b){if(a.variables=_.clone(n),b.rows.forEach(function(b){try{"select"===b.type&&(b.values=JSON.parse(b.values)),a.variables.push({name:b.alias,value:b.name})}catch(c){console.log("Cf not valid:",b.alias)}}),a.list&&a.list.variables&&a.list.variables.length)for(var c=a.list.variables.length;c--;)_.find(a.variables,{value:a.list.variables[c].value})||a.list.variables.splice(c,1)})["catch"](function(a){console.error(a),b.error(a)})},a.getList=function(){return j.get({listId:d.id}).$promise.then(function(b){if(b.variables)try{b.variables=JSON.parse(b.variables)}catch(c){console.log("invalid or outdated variables format"),b.variables=[]}else b.variables=[];a.list=b})["catch"](function(){f.path("/contactmanager/lists/list")})},a.updateList=function(){var e=_.clone(a.list);return e.variables=e.variables.length?angular.toJson(e.variables):"",j.update({id:d.id},e).$promise.then(function(){b.show(c.instant("MESSAGE_WELL_DONE")+"!","success")})["catch"](function(a){b.error(a)})},a.convertList=function(){a.list.isTdList=!0,a.updateList()},a.getTeams=function(){return k.get({controller:"associations"}).$promise.then(function(b){return a.teams=b.rows,a.list?void 0:a.getList()}).then(function(){return a.list.defaultEntry&&f.path("/contactmanager/lists/list"),j.get({listId:d.id,controller:"agents"}).$promise}).then(function(b){ComponentsDropdowns.bindQueue(a.teams,_.map(b.rows,function(a){return{id:a.id}}),o)})["catch"](function(a){console.error(a)})},a.initCustomFields=function(){var b={exporterCsvFilename:"customfields.csv",primaryKey:"id",columnDefs:[{name:"alias",displayName:"APPLICATION_NAME"},{name:"name",displayName:"APPLICATION_FIELD"},{name:"type"},{name:"action",width:200,buttons:[{"class":"blue-hoki",href:"/contactmanager/lists/view/{{grid.appScope.$stateParams.id}}/customfields/settings/{{row.entity.id}}",name:"settings"},{"class":"red-sunglo",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)",name:"delete"}]}]};a.gridOptions=l.gridOptions(j,b,a,{listId:d.id,controller:"customfields"})},a.create=function(){var e=g.open({animation:!0,templateUrl:"app/contactmanager/list/view/create.modal.html",controller:"ContactManagerListCustomFieldViewCreateModalCtrl"});e.result.then(function(e){return j.save({listId:d.id,controller:"customfields"},e).$promise.then(function(){a.gridOptions.getPage(),b.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){b.error(a)})},function(){h.info("Modal dismissed at: "+new Date)})},a.getCustomField=function(){return j.get({listId:d.id,controller:"customfields",id:d.cfId}).$promise.then(function(b){if(a.customField=b,"select"===a.customField.type)try{a.choices=JSON.parse(a.customField.values)}catch(c){a.choices=m(a.customField.values)}})["catch"](function(a){console.error(a)})},a.updateCustomField=function(){var e=angular.copy(a.customField);return"select"===e.type&&(e.values=angular.toJson(a.choices)),j.update({listId:d.id,controller:"customfields",id:d.cfId},e).$promise.then(function(){b.show(c.instant("MESSAGE_WELL_DONE")+"!","success")})["catch"](function(a){b.error(a)})},a.addField=function(){a.choices.push({})},a.removeField=function(b){a.choices.splice(b,1)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.contactmanager.lists.view",{url:"/view/:id",templateUrl:"app/contactmanager/list/view/view.html",controller:"ContactManagerListViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.contactmanager.lists.view.settings",{url:"/settings",templateUrl:"app/contactmanager/list/view/view.settings.html"}).state("main.contactmanager.lists.view.agents",{url:"/agents",templateUrl:"app/contactmanager/list/view/view.agents.html",cache:!1,serie:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}}).state("main.contactmanager.lists.view.customfields",{url:"/customfields",templateUrl:"app/contactmanager/list/view/view.customFields.html"}).state("main.contactmanager.lists.view.customfields.settings",{url:"/settings/:cfId",templateUrl:"app/contactmanager/list/view/view.customFieldSettings.html",controller:"ContactManagerListViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("DashboardChatCtrl",["$scope","Auth","ChatRoom","socket","Agent","$translate","$q","ReportChatSession","$timeout",function(a,b,c,d,e,f,g,h,i){a.Auth=b,a.moment=moment,a.$on("$destroy",function(){d.socket.removeAllListeners("dashboard:chat")}),a.roomStatus={"new":0,open:0,closed:0,abandon:0,unmanaged:0},a.routingStats={waiting:0,timeout:0},a.charts={interactions:{labels:[f.instant("APPLICATION_DASHBOARD_NEW"),f.instant("APPLICATION_DASHBOARD_OPEN"),f.instant("APPLICATION_DASHBOARD_PENDING"),f.instant("APPLICATION_DASHBOARD_CLOSED")],values:[a.roomStatus["new"],a.roomStatus.open,a.roomStatus.pending,a.roomStatus.closed],colours:["#44B6AE","#578EBE","#35AA47","#8775A7"]}};var j=function(a){var b=a?30*a+130:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",b+"px")};a.initAgent=function(){a.table1={enableGridMenu:!1,enableHorizontalScrollbar:0,enableVerticalScrollbar:0,paginationPageSizes:[10,25,50],paginationPageSize:10,columnDefs:[{name:"UserHasChatQueue.queue",headerCellFilter:"translate",displayName:"APPLICATION_QUEUE",cellClass:"text-center ui-grid-vcenter"}],data:[],onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){j(a.table1.paginationPageSize>a.table1.data.length?a.table1.data.length:a.table1.paginationPageSize,"table1")}),a.gridApi.pagination.on.paginationChanged(a,function(b,c){j(c>a.table1.data.length?a.table1.data.length:c,"table1")})}},a.table2={headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,columnDefs:[{name:"roomid",displayName:"APPLICATION_INTERACTION_ID",headerCellFilter:"translate"},{name:"accountname",displayName:"APPLICATION_ACCOUNT_NAME",headerCellFilter:"translate"},{name:"application",displayName:"APPLICATION_APPLICATION",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.application}} <span data-ng-if=\"row.entity.application == 'queue' && row.entity.queuename\">({{row.entity.queuename}})</span></div>"},{name:"status",displayName:"APPLICATION_STATUS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span data-ng-if="!row.entity.leaveAt">{{\'APPLICATION_QUEUESTATUS_WAITING\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.complete">{{\'APPLICATION_QUEUESTATUS_COMPLETE\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.timeout">{{\'APPLICATION_TIMEOUT\' | translate}}</span><span data-ng-if="!row.entity.leaveAt"> [<css-timer start-time="row.entity.updatedAt"></css-timer>]</span></div>',enableSorting:!1,enableColumnMenu:!1,enableFiltering:!1},{name:"membername",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.membername || ''}}</span></div>"}],data:[],gridMenuTitleFilter:function(a){var b=g.defer();return b.resolve(f.instant(a)),b.promise},onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){})}},e.get({id:b.getCurrentUser().id,controller:"chat",controller1:"queues"}).$promise.then(function(b){a.table1.data=b.rows})["finally"](function(){j(a.table1.paginationPageSize>a.table1.data.length?a.table1.data.length:a.table1.paginationPageSize,"table1"),d.socket.on("user_has_chat_queue:save",function(c){c.UserId!=b.getCurrentUser().id||_.find(a.table1.data,{id:c.ChatQueueId})||a.table1.data.push({id:c.ChatQueueId,UserHasChatQueue:c})}),d.socket.on("user_has_chat_queue:remove",function(c){c.UserId===b.getCurrentUser().id&&_.remove(a.table1.data,{id:c.ChatQueueId})})})["catch"](function(a){console.error(a)}),h.get({controller:"waiting",controller2:"applications"}).$promise.then(function(b){a.table2.data=b.rows})["finally"](function(){d.socket.on("report_chat_session:save",function(b){var c=_.find(a.table2.data,{id:b.id});c?(_.merge(c,b),b.leaveAt&&i(function(){_.remove(a.table2.data,{id:b.id})},1e4)):b.leaveAt||a.table2.data.push(b)}),d.socket.on("report_chat_session:remove",function(b){_.remove(a.table2.data,{id:b.id})})})["catch"](function(a){console.log(a)})},a.initRoomStats=function(){return c.get({id:"dashboard"}).$promise.then(function(b){a.roomStatus=b,a.charts={interactions:{labels:[f.instant("APPLICATION_DASHBOARD_NEW"),f.instant("APPLICATION_DASHBOARD_OPEN"),f.instant("APPLICATION_UNMANAGED"),f.instant("APPLICATION_DASHBOARD_CLOSED"),f.instant("APPLICATION_DASHBOARD_ABANDONED")],values:[a.roomStatus["new"],a.roomStatus.open,a.roomStatus.unmanaged,a.roomStatus.closed,a.roomStatus.abandon],colours:["#44B6AE","#578EBE","#35AA47","#8775A7","#F3C200"]}},d.socket.on("dashboard:chat",function(b){a.roomStatus=b.roomStatus,a.charts.interactions.values=[a.roomStatus["new"],a.roomStatus.open,a.roomStatus.unmanaged,a.roomStatus.closed,a.roomStatus.abandon]})})["catch"](function(a){console.error(a)})},a.initRoutingStats=function(){return h.get({id:"dashboard"}).$promise.then(function(b){a.routingStats=b})["catch"](function(a){console.error(a)})},a.initSocketListening=function(){d.socket.on("dashboard:chat",function(b){a.roomStatus=b.roomStatus,a.routingStats=b.routingStats,a.charts.interactions.values=[a.roomStatus["new"],a.roomStatus.open,a.roomStatus.unmanaged,a.roomStatus.closed,a.roomStatus.abandon]})}}]),angular.module("xCallyShuttleApp").controller("DashboardCtrl",["$scope","$translate","Auth",function(a,b,c){}]),angular.module("xCallyShuttleApp").factory("Dashboard",["$resource",function(a){return a("/api/dashboards/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.dashboard",{"abstract":!0,url:"/dashboard",templateUrl:"app/dashboard/dashboard.html",controller:"DashboardCtrl",data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:1}}}).state("main.dashboard.voice",{url:"/voice",controller:"DashboardVoiceCtrl",templateUrl:"app/dashboard/voice/voice.html"}).state("main.dashboard.chat",{url:"/chat",controller:"DashboardChatCtrl",templateUrl:"app/dashboard/chat/chat.html",data:{permissions:{redirectTo:"landing",id:8}}}).state("main.dashboard.mail",{url:"/mail",controller:"DashboardMailCtrl",templateUrl:"app/dashboard/mail/mail.html",data:{permissions:{redirectTo:"landing",id:9}}}).state("main.dashboard.fax",{url:"/fax",controller:"DashboardFaxCtrl",templateUrl:"app/dashboard/fax/fax.html",data:{permissions:{redirectTo:"landing",id:10}}}).state("main.dashboard.sms",{url:"/sms",controller:"DashboardSmsCtrl",templateUrl:"app/dashboard/sms/sms.html",data:{permissions:{redirectTo:"landing",id:11}}}).state("main.dashboard.openchannel",{url:"/openchannel",controller:"DashboardOpenChannelCtrl",templateUrl:"app/dashboard/openchannel/openchannel.html",data:{permissions:{redirectTo:"landing",id:20}}})}]),angular.module("xCallyShuttleApp").controller("DashboardFaxCtrl",["$scope","Auth","FaxRoom","socket","Agent","$translate","$q","ReportFaxSession","$timeout",function(a,b,c,d,e,f,g,h,i){a.Auth=b,a.moment=moment,a.$on("$destroy",function(){d.socket.removeAllListeners("dashboard:fax")}),a.roomStatus={"new":0,open:0,pending:0,closed:0},a.routingStats={waiting:0,timeout:0},a.charts={interactions:{labels:[f.instant("APPLICATION_DASHBOARD_NEW"),f.instant("APPLICATION_DASHBOARD_OPEN"),f.instant("APPLICATION_DASHBOARD_PENDING"),f.instant("APPLICATION_DASHBOARD_CLOSED")],values:[a.roomStatus["new"],a.roomStatus.open,a.roomStatus.pending,a.roomStatus.closed],colours:["#44B6AE","#578EBE","#35AA47","#8775A7"]}};var j=function(a){var b=a?30*a+130:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",b+"px")};a.initAgent=function(){a.table1={enableGridMenu:!1,enableHorizontalScrollbar:0,enableVerticalScrollbar:0,paginationPageSizes:[10,25,50],paginationPageSize:10,columnDefs:[{name:"UserHasFaxQueue.queue",headerCellFilter:"translate",displayName:"APPLICATION_QUEUE",cellClass:"text-center ui-grid-vcenter"}],data:[],onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){j(a.table1.paginationPageSize>a.table1.data.length?a.table1.data.length:a.table1.paginationPageSize,"table1")}),a.gridApi.pagination.on.paginationChanged(a,function(b,c){j(c>a.table1.data.length?a.table1.data.length:c,"table1")})}},a.table2={headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,columnDefs:[{name:"roomid",displayName:"APPLICATION_INTERACTION_ID",headerCellFilter:"translate"},{name:"accountname",displayName:"APPLICATION_ACCOUNT_NAME",headerCellFilter:"translate"},{name:"application",displayName:"APPLICATION_APPLICATION",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.application}} <span data-ng-if=\"row.entity.application == 'queue' && row.entity.queuename\">({{row.entity.queuename}})</span></div>"},{name:"status",displayName:"APPLICATION_STATUS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span data-ng-if="!row.entity.leaveAt">{{\'APPLICATION_QUEUESTATUS_WAITING\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.complete">{{\'APPLICATION_QUEUESTATUS_COMPLETE\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.timeout">{{\'APPLICATION_TIMEOUT\' | translate}}</span><span data-ng-if="!row.entity.leaveAt"> [<css-timer start-time="row.entity.updatedAt"></css-timer>]</span></div>',enableSorting:!1,enableColumnMenu:!1,enableFiltering:!1},{name:"membername",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.membername || ''}}</span></div>"}],data:[],gridMenuTitleFilter:function(a){var b=g.defer();return b.resolve(f.instant(a)),b.promise},onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){})}},e.get({id:b.getCurrentUser().id,controller:"fax",controller1:"queues"}).$promise.then(function(b){a.table1.data=b.rows})["finally"](function(){j(a.table1.paginationPageSize>a.table1.data.length?a.table1.data.length:a.table1.paginationPageSize,"table1"),d.socket.on("user_has_fax_queue:save",function(c){c.UserId!=b.getCurrentUser().id||_.find(a.table1.data,{id:c.FaxQueueId})||a.table1.data.push({id:c.FaxQueueId,UserHasFaxQueue:c})}),d.socket.on("user_has_fax_queue:remove",function(c){c.UserId===b.getCurrentUser().id&&_.remove(a.table1.data,{id:c.FaxQueueId})})})["catch"](function(a){console.error(a)}),h.get({controller:"waiting",controller2:"applications"}).$promise.then(function(b){a.table2.data=b.rows})["finally"](function(){d.socket.on("report_fax_session:save",function(b){var c=_.find(a.table2.data,{id:b.id});c?(_.merge(c,b),b.leaveAt&&i(function(){_.remove(a.table2.data,{id:b.id})},1e4)):b.leaveAt||a.table2.data.push(b)}),d.socket.on("report_fax_session:remove",function(b){_.remove(a.table2.data,{id:b.id})})})["catch"](function(a){console.log(a)})},a.initRoomStats=function(){return c.get({id:"dashboard"}).$promise.then(function(b){a.roomStatus=b,a.charts={interactions:{labels:[f.instant("APPLICATION_DASHBOARD_NEW"),f.instant("APPLICATION_DASHBOARD_OPEN"),f.instant("APPLICATION_DASHBOARD_PENDING"),f.instant("APPLICATION_DASHBOARD_CLOSED")],values:[a.roomStatus["new"],a.roomStatus.open,a.roomStatus.pending,a.roomStatus.closed],colours:["#44B6AE","#578EBE","#35AA47","#8775A7"]}},d.socket.on("dashboard:fax",function(b){a.roomStatus=b.roomStatus,a.charts.interactions.values=[a.roomStatus["new"],a.roomStatus.open,a.roomStatus.pending,a.roomStatus.closed]})})["catch"](function(a){console.error(a)})},a.initRoutingStats=function(){return h.get({id:"dashboard"}).$promise.then(function(b){a.routingStats=b})["catch"](function(a){console.error(a)})},a.initSocketListening=function(){d.socket.on("dashboard:fax",function(b){a.roomStatus=b.roomStatus,a.routingStats=b.routingStats,a.charts.interactions.values=[a.roomStatus["new"],a.roomStatus.open,a.roomStatus.pending,a.roomStatus.closed]})}}]),angular.module("xCallyShuttleApp").controller("DashboardMailCtrl",["$scope","Auth","MailRoom","socket","Agent","$translate","$q","ReportMailSession","$timeout",function(a,b,c,d,e,f,g,h,i){a.Auth=b,a.moment=moment,a.$on("$destroy",function(){d.socket.removeAllListeners("dashboard:mail")}),a.roomStatus={"new":0,open:0,pending:0,closed:0},a.routingStats={waiting:0,timeout:0},a.charts={interactions:{labels:[f.instant("APPLICATION_DASHBOARD_NEW"),f.instant("APPLICATION_DASHBOARD_OPEN"),f.instant("APPLICATION_DASHBOARD_PENDING"),f.instant("APPLICATION_DASHBOARD_CLOSED")],values:[a.roomStatus["new"],a.roomStatus.open,a.roomStatus.pending,a.roomStatus.closed],colours:["#44B6AE","#578EBE","#35AA47","#8775A7"]}};var j=function(a){var b=a?30*a+130:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",b+"px")};a.initAgent=function(){a.table1={enableGridMenu:!1,enableHorizontalScrollbar:0,enableVerticalScrollbar:0,paginationPageSizes:[10,25,50],paginationPageSize:10,columnDefs:[{name:"UserHasMailQueue.queue",headerCellFilter:"translate",displayName:"APPLICATION_QUEUE",cellClass:"text-center ui-grid-vcenter"}],data:[],onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){j(a.table1.paginationPageSize>a.table1.data.length?a.table1.data.length:a.table1.paginationPageSize,"table1")}),a.gridApi.pagination.on.paginationChanged(a,function(b,c){j(c>a.table1.data.length?a.table1.data.length:c,"table1")})}},a.table2={headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,columnDefs:[{name:"roomid",displayName:"APPLICATION_INTERACTION_ID",headerCellFilter:"translate"},{name:"accountname",displayName:"APPLICATION_ACCOUNT_NAME",headerCellFilter:"translate"},{name:"application",displayName:"APPLICATION_APPLICATION",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.application}} <span data-ng-if=\"row.entity.application == 'queue' && row.entity.queuename\">({{row.entity.queuename}})</span></div>"},{name:"status",displayName:"APPLICATION_STATUS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span data-ng-if="!row.entity.leaveAt">{{\'APPLICATION_QUEUESTATUS_WAITING\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.complete">{{\'APPLICATION_QUEUESTATUS_COMPLETE\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.timeout">{{\'APPLICATION_TIMEOUT\' | translate}}</span><span data-ng-if="!row.entity.leaveAt"> [<css-timer start-time="row.entity.updatedAt"></css-timer>]</span></div>',enableSorting:!1,enableColumnMenu:!1,enableFiltering:!1},{name:"membername",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.membername || ''}}</span></div>"}],data:[],gridMenuTitleFilter:function(a){var b=g.defer();return b.resolve(f.instant(a)),b.promise},onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){})}},e.get({id:b.getCurrentUser().id,controller:"mail",controller1:"queues"}).$promise.then(function(b){a.table1.data=b.rows})["finally"](function(){j(a.table1.paginationPageSize>a.table1.data.length?a.table1.data.length:a.table1.paginationPageSize,"table1"),d.socket.on("user_has_mail_queue:save",function(c){c.UserId!=b.getCurrentUser().id||_.find(a.table1.data,{id:c.MailQueueId})||a.table1.data.push({id:c.MailQueueId,UserHasMailQueue:c})}),d.socket.on("user_has_mail_queue:remove",function(c){c.UserId===b.getCurrentUser().id&&_.remove(a.table1.data,{id:c.MailQueueId})})})["catch"](function(a){console.error(a)}),h.get({controller:"waiting",controller2:"applications"}).$promise.then(function(b){a.table2.data=b.rows})["finally"](function(){d.socket.on("report_mail_session:save",function(b){var c=_.find(a.table2.data,{id:b.id});c?(_.merge(c,b),b.leaveAt&&i(function(){_.remove(a.table2.data,{id:b.id})},1e4)):b.leaveAt||a.table2.data.push(b)}),d.socket.on("report_mail_session:remove",function(b){_.remove(a.table2.data,{id:b.id})})})["catch"](function(a){console.log(a)})},a.initRoomStats=function(){return c.get({id:"dashboard"}).$promise.then(function(b){a.roomStatus=b,a.charts={interactions:{labels:[f.instant("APPLICATION_DASHBOARD_NEW"),f.instant("APPLICATION_DASHBOARD_OPEN"),f.instant("APPLICATION_DASHBOARD_PENDING"),f.instant("APPLICATION_DASHBOARD_CLOSED")],values:[a.roomStatus["new"],a.roomStatus.open,a.roomStatus.pending,a.roomStatus.closed],colours:["#44B6AE","#578EBE","#35AA47","#8775A7"]}},d.socket.on("dashboard:mail",function(b){a.roomStatus=b.roomStatus,a.charts.interactions.values=[a.roomStatus["new"],a.roomStatus.open,a.roomStatus.pending,a.roomStatus.closed]})})["catch"](function(a){console.error(a)})},a.initRoutingStats=function(){return h.get({id:"dashboard"}).$promise.then(function(b){a.routingStats=b})["catch"](function(a){console.error(a)})},a.initSocketListening=function(){d.socket.on("dashboard:mail",function(b){a.roomStatus=b.roomStatus,a.routingStats=b.routingStats,a.charts.interactions.values=[a.roomStatus["new"],a.roomStatus.open,a.roomStatus.pending,a.roomStatus.closed]})}}]),angular.module("xCallyShuttleApp").controller("DashboardOpenChannelCtrl",["$scope","Auth","OpenChannelRoom","socket","Agent","$translate","$q","ReportOpenChannelSession","$timeout",function(a,b,c,d,e,f,g,h,i){a.Auth=b,a.moment=moment,a.$on("$destroy",function(){d.socket.removeAllListeners("dashboard:openchannel")}),a.roomStatus={"new":0,open:0,pending:0,closed:0},a.routingStats={waiting:0,timeout:0},a.charts={interactions:{labels:[f.instant("APPLICATION_DASHBOARD_NEW"),f.instant("APPLICATION_DASHBOARD_OPEN"),f.instant("APPLICATION_DASHBOARD_PENDING"),f.instant("APPLICATION_DASHBOARD_CLOSED")],values:[a.roomStatus["new"],a.roomStatus.open,a.roomStatus.pending,a.roomStatus.closed],colours:["#44B6AE","#578EBE","#35AA47","#8775A7"]}};var j=function(a){var b=a?30*a+130:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",b+"px")};a.initAgent=function(){a.table1={enableGridMenu:!1,enableHorizontalScrollbar:0,enableVerticalScrollbar:0,paginationPageSizes:[10,25,50],paginationPageSize:10,columnDefs:[{name:"UserHasOpenchannelQueue.queue",headerCellFilter:"translate",displayName:"APPLICATION_QUEUE",cellClass:"text-center ui-grid-vcenter"}],data:[],onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){j(a.table1.paginationPageSize>a.table1.data.length?a.table1.data.length:a.table1.paginationPageSize,"table1")}),a.gridApi.pagination.on.paginationChanged(a,function(b,c){j(c>a.table1.data.length?a.table1.data.length:c,"table1")})}},a.table2={headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,columnDefs:[{name:"roomid",displayName:"APPLICATION_INTERACTION_ID",headerCellFilter:"translate"},{name:"accountname",displayName:"APPLICATION_ACCOUNT_NAME",headerCellFilter:"translate"},{name:"application",displayName:"APPLICATION_APPLICATION",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.application}} <span data-ng-if=\"row.entity.application == 'queue' && row.entity.queuename\">({{row.entity.queuename}})</span></div>"},{name:"status",displayName:"APPLICATION_STATUS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span data-ng-if="!row.entity.leaveAt">{{\'APPLICATION_QUEUESTATUS_WAITING\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.complete">{{\'APPLICATION_QUEUESTATUS_COMPLETE\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.timeout">{{\'APPLICATION_TIMEOUT\' | translate}}</span><span data-ng-if="!row.entity.leaveAt"> [<css-timer start-time="row.entity.updatedAt"></css-timer>]</span></div>',enableSorting:!1,enableColumnMenu:!1,enableFiltering:!1},{name:"membername",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.membername || ''}}</span></div>"}],data:[],gridMenuTitleFilter:function(a){var b=g.defer();return b.resolve(f.instant(a)),b.promise},onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){})}},e.get({id:b.getCurrentUser().id,controller:"openchannel",controller1:"queues"}).$promise.then(function(b){a.table1.data=b.rows})["finally"](function(){j(a.table1.paginationPageSize>a.table1.data.length?a.table1.data.length:a.table1.paginationPageSize,"table1"),d.socket.on("user_has_openchannel_queue:save",function(c){c.UserId!=b.getCurrentUser().id||_.find(a.table1.data,{id:c.OpenchannelQueueId})||a.table1.data.push({id:c.OpenchannelQueueId,UserHasOpenchannelQueue:c})}),d.socket.on("user_has_openchannel_queue:remove",function(c){c.UserId===b.getCurrentUser().id&&_.remove(a.table1.data,{id:c.OpenchannelQueueId})})})["catch"](function(a){console.error(a)}),h.get({controller:"waiting",controller2:"applications"}).$promise.then(function(b){a.table2.data=b.rows; +})["finally"](function(){d.socket.on("report_openchannel_session:save",function(b){var c=_.find(a.table2.data,{id:b.id});c?(_.merge(c,b),b.leaveAt&&i(function(){_.remove(a.table2.data,{id:b.id})},1e4)):b.leaveAt||a.table2.data.push(b)}),d.socket.on("report_openchannel_session:remove",function(b){_.remove(a.table2.data,{id:b.id})})})["catch"](function(a){console.log(a)})},a.initRoomStats=function(){return c.get({id:"dashboard"}).$promise.then(function(b){a.roomStatus=b,a.charts={interactions:{labels:[f.instant("APPLICATION_DASHBOARD_NEW"),f.instant("APPLICATION_DASHBOARD_OPEN"),f.instant("APPLICATION_DASHBOARD_PENDING"),f.instant("APPLICATION_DASHBOARD_CLOSED")],values:[a.roomStatus["new"],a.roomStatus.open,a.roomStatus.pending,a.roomStatus.closed],colours:["#44B6AE","#578EBE","#35AA47","#8775A7"]}},d.socket.on("dashboard:openchannel",function(b){a.roomStatus=b.roomStatus,a.charts.interactions.values=[a.roomStatus["new"],a.roomStatus.open,a.roomStatus.pending,a.roomStatus.closed]})})["catch"](function(a){console.error(a)})},a.initRoutingStats=function(){return h.get({id:"dashboard"}).$promise.then(function(b){a.routingStats=b})["catch"](function(a){console.error(a)})},a.initSocketListening=function(){d.socket.on("dashboard:openchannel",function(b){a.roomStatus=b.roomStatus,a.routingStats=b.routingStats,a.charts.interactions.values=[a.roomStatus["new"],a.roomStatus.open,a.roomStatus.pending,a.roomStatus.closed]})}}]),angular.module("xCallyShuttleApp").controller("DashboardSmsCtrl",["$scope","Auth","SmsRoom","socket","Agent","$translate","$q","ReportSmsSession","$timeout",function(a,b,c,d,e,f,g,h,i){a.Auth=b,a.moment=moment,a.$on("$destroy",function(){d.socket.removeAllListeners("dashboard:sms")}),a.roomStatus={"new":0,open:0,pending:0,closed:0},a.routingStats={waiting:0,timeout:0},a.charts={interactions:{labels:[f.instant("APPLICATION_DASHBOARD_NEW"),f.instant("APPLICATION_DASHBOARD_OPEN"),f.instant("APPLICATION_DASHBOARD_PENDING"),f.instant("APPLICATION_DASHBOARD_CLOSED")],values:[a.roomStatus["new"],a.roomStatus.open,a.roomStatus.pending,a.roomStatus.closed],colours:["#44B6AE","#578EBE","#35AA47","#8775A7"]}};var j=function(a){var b=a?30*a+130:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",b+"px")};a.initAgent=function(){a.table1={enableGridMenu:!1,enableHorizontalScrollbar:0,enableVerticalScrollbar:0,paginationPageSizes:[10,25,50],paginationPageSize:10,columnDefs:[{name:"UserHasSmsQueue.queue",headerCellFilter:"translate",displayName:"APPLICATION_QUEUE",cellClass:"text-center ui-grid-vcenter"}],data:[],onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){j(a.table1.paginationPageSize>a.table1.data.length?a.table1.data.length:a.table1.paginationPageSize,"table1")}),a.gridApi.pagination.on.paginationChanged(a,function(b,c){j(c>a.table1.data.length?a.table1.data.length:c,"table1")})}},a.table2={headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,columnDefs:[{name:"roomid",displayName:"APPLICATION_INTERACTION_ID",headerCellFilter:"translate"},{name:"accountname",displayName:"APPLICATION_ACCOUNT_NAME",headerCellFilter:"translate"},{name:"application",displayName:"APPLICATION_APPLICATION",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.application}} <span data-ng-if=\"row.entity.application == 'queue' && row.entity.queuename\">({{row.entity.queuename}})</span></div>"},{name:"status",displayName:"APPLICATION_STATUS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span data-ng-if="!row.entity.leaveAt">{{\'APPLICATION_QUEUESTATUS_WAITING\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.complete">{{\'APPLICATION_QUEUESTATUS_COMPLETE\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.timeout">{{\'APPLICATION_TIMEOUT\' | translate}}</span><span data-ng-if="!row.entity.leaveAt"> [<css-timer start-time="row.entity.updatedAt"></css-timer>]</span></div>',enableSorting:!1,enableColumnMenu:!1,enableFiltering:!1},{name:"membername",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.membername || ''}}</span></div>"}],data:[],gridMenuTitleFilter:function(a){var b=g.defer();return b.resolve(f.instant(a)),b.promise},onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){})}},e.get({id:b.getCurrentUser().id,controller:"sms",controller1:"queues"}).$promise.then(function(b){a.table1.data=b.rows})["finally"](function(){j(a.table1.paginationPageSize>a.table1.data.length?a.table1.data.length:a.table1.paginationPageSize,"table1"),d.socket.on("user_has_sms_queue:save",function(c){c.UserId!=b.getCurrentUser().id||_.find(a.table1.data,{id:c.SmsQueueId})||a.table1.data.push({id:c.SmsQueueId,UserHasSmsQueue:c})}),d.socket.on("user_has_sms_queue:remove",function(c){c.UserId===b.getCurrentUser().id&&_.remove(a.table1.data,{id:c.SmsQueueId})})})["catch"](function(a){console.error(a)}),h.get({controller:"waiting",controller2:"applications"}).$promise.then(function(b){a.table2.data=b.rows})["finally"](function(){d.socket.on("report_sms_session:save",function(b){var c=_.find(a.table2.data,{id:b.id});c?(_.merge(c,b),b.leaveAt&&i(function(){_.remove(a.table2.data,{id:b.id})},1e4)):b.leaveAt||a.table2.data.push(b)}),d.socket.on("report_sms_session:remove",function(b){_.remove(a.table2.data,{id:b.id})})})["catch"](function(a){console.log(a)})},a.initRoomStats=function(){return c.get({id:"dashboard"}).$promise.then(function(b){a.roomStatus=b,a.charts={interactions:{labels:[f.instant("APPLICATION_DASHBOARD_NEW"),f.instant("APPLICATION_DASHBOARD_OPEN"),f.instant("APPLICATION_DASHBOARD_PENDING"),f.instant("APPLICATION_DASHBOARD_CLOSED")],values:[a.roomStatus["new"],a.roomStatus.open,a.roomStatus.pending,a.roomStatus.closed],colours:["#44B6AE","#578EBE","#35AA47","#8775A7"]}},d.socket.on("dashboard:sms",function(b){a.roomStatus=b.roomStatus,a.charts.interactions.values=[a.roomStatus["new"],a.roomStatus.open,a.roomStatus.pending,a.roomStatus.closed]})})["catch"](function(a){console.error(a)})},a.initRoutingStats=function(){return h.get({id:"dashboard"}).$promise.then(function(b){a.routingStats=b})["catch"](function(a){console.error(a)})},a.initSocketListening=function(){d.socket.on("dashboard:sms",function(b){a.roomStatus=b.roomStatus,a.routingStats=b.routingStats,a.charts.interactions.values=[a.roomStatus["new"],a.roomStatus.open,a.roomStatus.pending,a.roomStatus.closed]})}}]),angular.module("xCallyShuttleApp").controller("DashboardVoiceCtrl",["$scope","$rootScope","$timeout","Auth","ReportQueue","ReportCall","Agent","Dashboard","socket",function(a,b,c,d,e,f,g,h,i){a.moment=moment,a.radioSwitch={size:"mini",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"success",onColor:"danger"};var j=function(a,b){var c=a?30*a+130:177;angular.element(document.getElementsByName(b)[0]).css("height",c+"px")};a.initUser=function(){var b;return a.user=d.getCurrentUser(),a.voice={},a.$on("$destroy",function(){b&&(b.terminate(),i.socket.removeAllListeners("voice:inbound"),i.socket.removeAllListeners("voice:outbound:global"))}),e.get({controller:"dashboard"}).$promise.then(function(b){return a.voice.queues=b,f.get({controller:"dashboard"}).$promise}).then(function(b){a.voice.outbound=b})["catch"](function(a){console.error(a)})["finally"](function(){i.socket.on("voice:inbound",function(b){(a.voice.queues[b.type]>0||b.amount>0)&&(a.voice.queues[b.type]+=b.amount)}),i.socket.on("voice:outbound:global",function(b){_.merge(a.voice.outbound,b)})})},a.initAgent=function(){return d.getCurrentUser().$promise.then(function(b){return a.agent=b,a.timerSwitch={isActive:!0,size:"mini",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"primary"},a.showTimers=!1,a.table1={enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,enableSorting:!0,showGridFooter:!0,paginationPageSizes:[10,25,50],paginationPageSize:10,columnDefs:[{name:"queue",headerCellFilter:"translate",displayName:"APPLICATION_QUEUE",cellClass:"text-center ui-grid-vcenter"},{name:"loggedAt",displayName:"logged At",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span am-time-ago="row.entity.loggedAt"></span></div>'}],data:[],onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){j(a.table1.paginationPageSize>a.table1.data.length?a.table1.data.length:a.table1.paginationPageSize,"table1")}),a.gridApi.pagination.on.paginationChanged(a,function(b,c){j(c>a.table1.data.length?a.table1.data.length:c,"table1")})}},a.table2={enableGridMenu:!1,enableHorizontalScrollbar:0,enableVerticalScrollbar:0,multiSelect:!1,paginationPageSizes:[10,25,50],paginationPageSize:10,columnDefs:[{name:"queue",displayName:"APPLICATION_QUEUE",headerCellFilter:"translate"},{name:"status",displayName:"APPLICATION_STATUS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span data-ng-if="!row.entity.queuecallerleaveAt && !row.entity.queuecallerexit">{{\'APPLICATION_QUEUESTATUS_WAITING\' | translate}}</span><span data-ng-if="row.entity.queuecallerleaveAt && !row.entity.queuecallerabandon && !row.entity.queuecallercomplete && !row.entity.queuecallerexit">{{\'APPLICATION_ACTIVE\' | translate}}</span><span data-ng-if="row.entity.queuecallerleaveAt && row.entity.queuecallerabandon">{{\'APPLICATION_QUEUESTATUS_ABANDON\' | translate}}</span><span data-ng-if="row.entity.queuecallerleaveAt && row.entity.queuecallercomplete">{{\'APPLICATION_QUEUESTATUS_COMPLETE\' | translate}}</span><span data-ng-if="row.entity.queuecallerexitreason"> {{row.entity.queuecallerexitreason}}</span><span data-ng-if="!row.entity.queuecallercomplete && !row.entity.queuecallerabandon && !row.entity.queuecallerexit && grid.appScope.showTimers"> <css-timer start-time="row.entity.updatedAt"></css-timer></div>',enableSorting:!1,enableColumnMenu:!1,enableFiltering:!1},{name:"caller",displayName:"APPLICATION_CALLER",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.calleridnum || ''}} {{row.entity.calleridname || ''}}</span></div>",enableSorting:!1,enableColumnMenu:!1,enableFiltering:!1},{name:"position",displayName:"APPLICATION_POSITION",headerCellFilter:"translate"},{name:"lastAssignedTo",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter"}],data:[],onRegisterApi:function(b){a.gridApi1=b,a.gridApi1.grid.registerDataChangeCallback(function(){j(a.gridApi1.core.getVisibleRows(a.gridApi1.grid).length,"table2")})}},a.table3={exporterCsvFilename:"abandoned_calls.csv",enableRowHeaderSelection:!0,paginationPageSizes:[10,25,50],paginationPageSize:10,enableFiltering:!0,enableSorting:!0,enableGridMenu:!1,flatEntityAccess:!0,showGridFooter:!0,fastWatch:!0,enableSelectAll:!1,enableHorizontalScrollbar:0,enableVerticalScrollbar:0,columnDefs:[{name:"queue",displayName:"APPLICATION_QUEUE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter"},{name:"caller",displayName:"APPLICATION_CALLER",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.calleridnum || ''}} {{row.entity.calleridname || ''}}</div>"},{name:"createdAt",displayName:"APPLICATION_DATE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.updatedAt | date:'yyyy-MM-dd HH:mm:ss'}}</div>"},{name:"lastAssignedTo",cellClass:"text-center ui-grid-vcenter",displayName:"APPLICATION_LAST_ASSIGNED_TO",headerCellFilter:"translate"},{name:"assigned",displayName:"APPLICATION_STATUS",headerCellFilter:"translate",cellTemplate:'<div class="centered-uigrid-td"><input data-ng-change="grid.appScope.updateItem(row.entity)", bs-switch ng-model="row.entity.assigned" type="checkbox" switch-active="{{ !row.entity.assigned || grid.appScope.agent.name === row.entity.lastAssignedTo }}" switch-on-text="{{ \'APPLICATION_ASSIGNED\' | translate }}" switch-off-text="{{ \'APPLICATION_FREE\' | translate }}" switch-on-color="{{ grid.appScope.radioSwitch.onColor }}" switch-off-color="{{ grid.appScope.radioSwitch.offColor }}" switch-animate="{{ grid.appScope.radioSwitch.animate }}" switch-size="{{ grid.appScope.radioSwitch.size }}" switch-label="{{ grid.appScope.radioSwitch.label }}" switch-icon="{{ grid.appScope.radioSwitch.icon }}" switch-radio-off="{{ grid.appScope.radioSwitch.radioOff }}" switch-label-width="{{ grid.appScope.radioSwitch.labelWidth }}" switch-handle-width="{{ grid.appScope.radioSwitch.handleWidth }}"></div>',enableFiltering:!1}],data:[],onRegisterApi:function(b){a.gridApi2=b,a.gridApi2.grid.registerDataChangeCallback(function(){j(a.gridApi2.core.getVisibleRows(a.gridApi2.grid).length,"table3")})}},g.get({id:a.agent.id,controller:"voice",controller1:"queues"}).$promise}).then(function(b){a.table1.data=_.map(b.rows,function(a){return{queue:a.UserHasVoiceQueue.queue,loggedAt:a.UserHasVoiceQueue.loggedAt,callstaken:a.UserHasVoiceQueue.callstaken,lastcall:a.UserHasVoiceQueue.lastcall}})}).then(function(){return j(a.table1.paginationPageSize>a.table1.data.length?a.table1.data.length:a.table1.paginationPageSize,"table1"),i.socket.on("user_has_voice_queue:remove",function(b){b.UserId===a.agent.id&&_.remove(a.table1.data,{queue:b.queue})}),i.socket.on("user_has_voice_queue:save",function(b){if(b.UserId===a.agent.id||b.membername===a.agent.name){var c=_.find(a.table1.data,{queue:b.queue});c?_.merge(c,b):!c&&b.logged&&a.table1.data.unshift({queue:b.queue,loggedAt:moment(),lastcall:null,callstaken:0})}}),e.get({id:"waiting",controller:"calls"}).$promise}).then(function(b){return a.table2.data=b.rows,e.get({controller:"abandoned",controller2:"all"}).$promise}).then(function(b){a.table3.data=b.rows,i.socket.on("report_queue:save",function(b){a.table2.data.push(b)}),i.socket.on("report_queue:update",function(b){var d=_.find(a.table2.data,{id:b.id});if(d&&(_.merge(d,b),(d.queuecallerabandon||d.queuecallercomplete||d.queuecallerexitreason||b.queuecallerleaveAt)&&c(function(){_.remove(a.table2.data,{id:b.id})},3e3)),b.queuecallerabandon){var e=_.find(a.table3.data,{id:b.id});e?_.merge(e,b):a.table3.data.unshift(b)}})})["catch"](function(a){console.error(a)})},a.updateItem=function(b){return e.update({id:b.id},{assigned:b.assigned,lastAssignedTo:b.assigned?a.agent.name:void 0}).$promise["catch"](function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.desk",{url:"/desk",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin"],redirectTo:"main.dashboard.voice"}}})}]),angular.module("xCallyShuttleApp").factory("DeskAccount",["$resource",function(a){return a("/api/desk/accounts/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("DeskListCtrl",["$scope","$http","$rootScope","xAlert","$translate","socket","Modal","stResource",function(a,b,c,d,e,f,g,h){a.conf={accountsByPage:{name:"10",value:10}},a.accountsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.accounts={checked:[]},a.check=function(b,c){c?a.accounts.checked=angular.copy(_.map(a.displayedDeskAccounts,"id")):a.accounts.checked=[]},a.getAccounts=function(b){return _.map(a.displayedDeskAccounts,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){f.unsyncUpdates("desk_account"),b.url="/api/desk/accounts",h.getPage(b).then(function(d){a.displayedDeskAccounts=d.rows,b.pagination.numberOfPages=d.total_pages,c.updateTableConfig(a.accountsByPage,a.displayedDeskAccounts.length),c.updateTableConfig(a.conf.accountsByPage,a.displayedDeskAccounts.length)}),f.socket.on("desk_account:save",function(){a.initList(b)}),f.socket.on("desk_account:remove",function(c){a.accounts.checked=_.without(a.accounts.checked,c.id),a.initList(b)})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("/api/desk/accounts/"+a).success(function(){d.show(e.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(a){d.error(a)})}),a.deleteItems=g.confirm["delete"](function(){b["delete"]("/api/desk/accounts",{params:{id:a.accounts.checked}}).success(function(){d.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){d.error(a)})}),a.checkAccount=function(a){b.get("/api/desk/accounts/"+a+"/check").then(function(){d.show(e.instant("MESSAGE_ACCOUNT_VERIFIED"),"success")})["catch"](function(){d.show(e.instant("MESSAGE_ACCOUNT_INVALID"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.desk.list",{url:"/list",templateUrl:"app/desk/list/list.html",controller:"DeskListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("DeskViewCtrl",["$scope","$http","$stateParams","$translate","$location","WizardHandler","socket","xAlert","Modal","desk_com",function(a,b,c,d,e,f,g,h,i,j){a.$stateParams=c,a.config={autoHideScrollbar:!1,theme:"dark",advanced:{updateOnContentResize:!0},setHeight:500,scrollInertia:0},a.initConfiguration=function(){a.formsConfiguration={},a.configuration={}},a.goNext=function(){f.wizard().next()},a.formValidation=function(a){return a},a.$on("$destroy",function(){g.unsyncUpdates("desk_configuration"),g.unsyncUpdates("desk_field")}),a.initView=function(){b.get("/api/desk/accounts/"+c.id).success(function(b){a.account=b}).error(function(a){h.error(a)})},a.updateItem=function(){b.put("/api/desk/accounts/"+c.id,a.account).success(function(){h.show(d.instant("MESSAGE_WELL_DONE")+".","success")}).error(function(){h.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG")+".","danger")})},a.getConfigurations=function(){b.get("/api/desk/configurations",{params:{AccountId:c.id}}).success(function(b){a.configurations=b,g.socket.on("desk_configuration:remove",function(b){_.remove(a.configurations,{id:b.id})})}).error(function(a){h.error(a)})},a.deleteConfiguration=i.confirm["delete"](function(a){b["delete"]("api/desk/configurations/"+a).success(function(){h.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(){h.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})}),a.createConfiguration=function(){a.configuration.AccountId=c.id,b.post("api/desk/configurations",a.configuration).success(function(a){e.path("desk/view/"+c.id+"/configurations/settings/"+a.id)}).error(function(){h.show("Something went wrong!","danger")})},a.fieldType=["string","variable"],a.descFieldType=["string","key_value"],a.getFields=function(){b.get("/api/desk/accounts/"+c.id+"/fields").success(function(b){a.accountFields=j.fields.concat(b)}).error(function(a){h.error(a)})},a.getConfiguration=function(){b.get("/api/desk/configurations/"+c.configurationId).success(function(b){a.configurationName=b.name,a.subjectConfig=b.Subject,a.descriptionConfig=b.Description,a.fieldConfig=b.Field,g.socket.on("desk_field:remove",function(b){_.remove(a.subjectConfig,{id:b.id}),_.remove(a.descriptionConfig,{id:b.id}),_.remove(a.fieldConfig,{id:b.id})})}).error(function(a){h.error(a)})},a.getVariables=function(){b.get("/api/variables").success(function(b){a.variables=b.rows}).error(function(a){h.error(a)})},a.removeItem=function(a){b["delete"]("api/desk/fields/"+a.id).success(function(){h.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(){h.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.addItemSubject=function(){var d={type:"string",content:""};b.post("/api/desk/configurations/"+c.configurationId+"/subject",d).success(function(b){a.subjectConfig.push(b)}).error(function(){h.show("Something went wrong!","danger")})},a.addItemDescription=function(){var d={type:"string",content:""};b.post("/api/desk/configurations/"+c.configurationId+"/description",d).success(function(b){a.descriptionConfig.push(b)}).error(function(){h.show("Something went wrong!","danger")})},a.addItemField=function(){var d={content:""};b.post("/api/desk/configurations/"+c.configurationId+"/field",d).success(function(b){a.fieldConfig.push(b)}).error(function(){h.show("Something went wrong!","danger")})},a.updateField=function(a){b.put("/api/desk/fields/"+a.id,a).success(function(){}).error(function(){h.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG")+".","danger")})},a.changeType=function(b){"variable"===b.type?b.content="":"string"===b.type&&(b.VariableId=null),a.updateField(b)},a.changeDescType=function(b){"key_value"===b.type?(b.content="","string"===b.keyType?b.VariableId=null:"variable"===b.keyType&&(b.keyContent="")):"string"===b.type&&(b.VariableId=null,b.key="",b.keyContent=""),a.updateField(b)},a.changeFieldType=function(b){if(b.content="",b.idField){var c=_.find(a.accountFields,"id",b.idField);c&&(b.customField=_.result(c,"custom",!0))}a.updateField(b)},a.getSystemFieldOptions=function(b){if(b){var c=_.find(a.accountFields,"id",b);return c?c.data.choices?c.data.choices:null:void 0}}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.desk.view",{url:"/view/:id",templateUrl:"app/desk/view/view.html",controller:"DeskViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.desk.view.account",{url:"/account",templateUrl:"app/desk/view/view.account.html"}).state("main.desk.view.configurations",{url:"/configurations",templateUrl:"app/desk/view/view.configurations.html"}).state("main.desk.view.configurations.settings",{url:"/settings/:configurationId",templateUrl:"app/desk/view/view.configurationSettings.html",controller:"DeskViewCtrl"}).state("main.desk.view.configuration",{url:"/configuration",templateUrl:"app/desk/view/view.configuration.html"})}]),angular.module("xCallyShuttleApp").controller("DeskWizardCtrl",["$scope","$http","$location","$translate","xAlert","WizardHandler",function(a,b,c,d,e,f){a.translate=d,a.initWizard=function(){a.$translate=d,a.forms={},a.item={}},a.next=function(){f.wizard().next()},a.exitValidation=function(a){return a},a.createItem=function(){console.log(a.item),b.post("api/desk/accounts",a.item).success(function(){e.show(d.instant("MESSAGE_WELL_DONE")+".","success"),c.path("/desk/list")}).error(function(){e.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG")+".","danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.desk.wizard",{url:"/wizard",templateUrl:"app/desk/wizard/wizard.html",controller:"DeskWizardCtrl"})}]),angular.module("xCallyShuttleApp").factory("FreshdeskAccount",["$resource",function(a){return a("/api/freshdesk/accounts/:id/:controller",{id:"@id"},{update:{method:"PUT"},fields:{params:{controller:"fields"},isArray:!0},check:{params:{controller:"check"}}})}]).factory("FreshdeskConfiguration",["$resource",function(a){return a("/api/freshdesk/accounts/:accountId/configurations/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]).factory("FreshdeskField",["$resource",function(a){return a("/api/freshdesk/accounts/:accountId/configurations/:configurationId/fields/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.freshdesk",{url:"/freshdesk",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin"],redirectTo:"main.dashboard.voice"}}})}]),angular.module("xCallyShuttleApp").controller("FreshdeskListCtrl",["$scope","FreshdeskAccount","gridOptions","xAlert","$translate",function(a,b,c,d,e){a.initView=function(){var d={exporterCsvFilename:"freshdesk_account.csv",columnDefs:[{name:"name",displayName:"APPLICATION_NAME"},{name:"username"},{name:"remoteUri",displayName:"APPLICATION_URI"},{name:"action",width:250,buttons:[{"class":"blue-hoki",href:"/freshdesk/view/{{row.entity.id}}/account",name:"profile"},{"class":"green-jungle",name:"check",onClick:"grid.appScope.checkAccount(row.entity.id)"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=c.gridOptions(b,d,a)},a.checkAccount=function(a){return b.get({id:a,controller:"check"}).$promise.then(function(){d.show(e.instant("MESSAGE_ACCOUNT_VERIFIED"),"success")})["catch"](function(){d.show(e.instant("MESSAGE_ACCOUNT_INVALID"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.freshdesk.list",{url:"/list",templateUrl:"app/freshdesk/list/list.html",controller:"FreshdeskListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.freshdesk.view.configurations",{url:"/configurations",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("FreshdeskViewConfigurationListCtrl",["$scope","$stateParams","$translate","gridOptions","FreshdeskConfiguration","$uibModal",function(a,b,c,d,e,f){a.initView=function(){var c={exporterCsvFilename:"freshdesk_configurations.csv",columnDefs:[{name:"name"},{name:"description"},{name:"action",width:125,buttons:[{"class":"blue-hoki",href:"/freshdesk/view/{{row.entity.AccountId}}/configurations/view/{{row.entity.id}}",name:"profile"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=d.gridOptions(e,c,a,{accountId:b.id})},a.createItem=function(){var b=f.open({animation:!0,templateUrl:"app/freshdesk/view/configuration/list/create.modal.html",controller:"FreshdeskCreateConfigurationCtrl"});b.result.then(function(){a.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("FreshdeskCreateConfigurationCtrl",["$scope","$translate","$uibModalInstance","FreshdeskConfiguration","xAlert","$stateParams","channel",function(a,b,c,d,e,f,g){a.form={},a.item={},a.channels=g,a.item.channel="voice",a.item.type="Queue",a.save=function(){return d.save({accountId:f.id},a.item).$promise.then(function(a){e.show(b.instant("MESSAGE_WELL_DONE"),"success"),c.close(a)})["catch"](function(a){e.error(a)})},a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.freshdesk.view.configurations.list",{url:"/list",templateUrl:"app/freshdesk/view/configuration/list/list.html",controller:"FreshdeskViewConfigurationListCtrl"})}]),angular.module("xCallyShuttleApp").controller("FreshdeskViewConfigurationViewCtrl",["$scope","$filter","$stateParams","$translate","socket","variable","xAlert","FreshdeskAccount","FreshdeskConfiguration","FreshdeskField","Variable","Tag",function(a,b,c,d,e,f,g,h,i,j,k,l){a.$on("$destroy",function(){e.unsyncUpdates("freshdesk_field")}),a.config={autoHideScrollbar:!1,theme:"dark",advanced:{updateOnContentResize:!0},setHeight:300,scrollInertia:0},a.fieldType=[{type:"string",title:"String"},{type:"variable",title:"Variable"},{type:"customVariable",title:"Custom Variable"}],a.descFieldType=[{type:"string",title:"String"},{type:"keyValue",title:"Key Value"}],a.groupVariableByGroup=function(a){switch(a.group){case"voice_queue":return"Voice: Queue";default:return"Other"}},a.initView=function(){a.configurationName="",a.subjectConfig=[],a.descriptionConfig=[],a.fieldConfig=[],a.selectedTags={tags:[]},a.variables=f},a.getConfiguration=function(){return i.get({accountId:c.id,id:c.configurationId}).$promise.then(function(b){a.configurationName=b.name,a.subjectConfig=b.Subject,a.descriptionConfig=b.Description,a.fieldConfig=b.Field,a.selectedTags={tags:_.map(b.Tags,function(a){return a.id})},e.socket.on("freshdesk_field:remove",function(b){_.remove(a.subjectConfig,{id:b.id}),_.remove(a.descriptionConfig,{id:b.id}),_.remove(a.fieldConfig,{id:b.id})})})["catch"](function(a){g.error(a)})},a.getCustomVariables=function(){return k.get().$promise.then(function(b){a.customVariables=b.rows})["catch"](function(a){g.error(a)})},a.getFields=function(){return h.fields({id:c.id}).$promise.then(function(c){a.accountFields=b("freshdesk")(c)})["catch"](function(a){g.error(a)})},a.addItem=function(b){var d={};switch(b){case"subject":case"description":d={type:"string",content:""};break;case"field":d={content:""}}return i.save({accountId:c.id,id:c.configurationId,controller:b},d).$promise.then(function(c){switch(b){case"subject":a.subjectConfig.push(c);break;case"description":a.descriptionConfig.push(c);break;case"field":a.fieldConfig.push(c)}})["catch"](function(a){g.error(a)})},a.changeFieldType=function(b){if(b.content="",b.variableName="",b.nameField="",b.VariableId=null,b.idField){var c=_.find(a.accountFields,"name",b.idField);c&&(b.customField=!c["default"])}a.updateField(b)},a.changeType=function(b){"variable"===b.type?(b.content="",b.variableName=""):"string"===b.type?(b.VariableId=null,b.variableName=""):"customVariable"===b.type&&(b.VariableId=null,b.content=""),a.updateField(b)},a.updateField=function(a){return j.update({accountId:c.id,configurationId:c.configurationId,id:a.id},a).$promise.then(function(){})["catch"](function(a){g.error(a)})},a.removeItem=function(a){return j["delete"]({accountId:c.id,configurationId:c.configurationId,id:a.id}).$promise.then(function(){g.show(d.instant("MESSAGE_WELL_DONE")+"!","success")})["catch"](function(a){g.error(a)})},a.changeDescType=function(b){"keyValue"===b.type?(b.content="","string"===b.keyType?(b.VariableId=null,b.variableName=""):"variable"===b.keyType?(b.keyContent="",b.VariableId=null):"customVariable"===b.keyType&&(b.keyContent="",b.variableName="")):"string"===b.type&&(b.VariableId=null,b.variableName="",b.key="",b.keyContent=""),a.updateField(b)},a.getSystemFieldOptions=function(b){if(b){var c=_.find(a.accountFields,"name",b);return c&&c.hasOwnProperty("choices")?_.isArray(c.choices)?c.choices.length?c.choices:[]:_.keys(c.choices).length?_.keys(c.choices):[]:!1}},a.getTags=function(){return l.get().$promise.then(function(b){a.tags=b.rows})["catch"](function(a){g.error(a)})},a.updateTags=function(){return i.update({accountId:c.id,id:c.configurationId,controller:"tags"},a.selectedTags.tags).$promise.then(function(){g.show(d.instant("MESSAGE_WELL_DONE")+".","success")})["catch"](function(a){g.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.freshdesk.view.configurations.view",{url:"/view/:configurationId",templateUrl:"app/freshdesk/view/configuration/view/view.html",controller:"FreshdeskViewConfigurationViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("FreshdeskViewCtrl",["$scope","$http","$stateParams","$translate","$location","$filter","WizardHandler","socket","xAlert","Modal","FreshdeskAccount",function(a,b,c,d,e,f,g,h,i,j,k){a.initView=function(){return k.get({id:c.id}).$promise.then(function(b){a.account=b})["catch"](function(a){i.error(a)})},a.updateItem=function(){return k.update({id:c.id},a.account).$promise.then(function(){i.show(d.instant("MESSAGE_WELL_DONE")+".","success")})["catch"](function(a){i.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.freshdesk.view",{url:"/view/:id",templateUrl:"app/freshdesk/view/view.html",controller:"FreshdeskViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.freshdesk.view.account",{url:"/account",templateUrl:"app/freshdesk/view/view.account.html"})}]),angular.module("xCallyShuttleApp").controller("FreshdeskWizardCtrl",["$scope","$http","$location","$translate","xAlert","WizardHandler","FreshdeskAccount",function(a,b,c,d,e,f,g){a.translate=d,a.initWizard=function(){a.$translate=d, +a.forms={},a.item={},a.item.serverUrl=c.protocol()+"://"+location.host},a.next=function(){f.wizard().next()},a.exitValidation=function(a){return a},a.createItem=function(){return g.save(a.item).$promise.then(function(){e.show(d.instant("MESSAGE_WELL_DONE")+".","success"),c.path("/freshdesk/list")})["catch"](function(a){e.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.freshdesk.wizard",{url:"/wizard",templateUrl:"app/freshdesk/wizard/wizard.html",controller:"FreshdeskWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.iframe",{url:"/iframe",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("IframeViewCtrl",["$scope","Auth","Integration","xAlert","$translate","$sce",function(a,b,c,d,e,f){a.Auth=b,a.initView=function(){return c.get({state:"iframe"}).$promise.then(function(c){a.iframe=_.first(c.rows),a.iframe.remoteUri?a.url=f.trustAsResourceUrl(a.iframe.remoteUri):b.isAgent()&&d.show(e.instant("MESSAGE_NO_IFRAME_CONFIGURED")+".","danger")})["catch"](function(a){d.error(a)})},a.updateItem=function(){return b.isAgent()?void 0:c.update({id:a.iframe.id},a.iframe).$promise.then(function(){d.show(e.instant("MESSAGE_WELL_DONE")+".","success")})["catch"](function(a){d.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.iframe.view",{url:"/view",templateUrl:"app/iframe/view/view.html",controller:"IframeViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]}])}]}})}]),angular.module("xCallyShuttleApp").factory("Integration",["$resource",function(a){return a("/api/integrations/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.integrations",{url:"/integrations",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:19}}})}]),angular.module("xCallyShuttleApp").controller("IntegrationListCtrl",["$scope","Modal","socket","FileUploader","Integration","xAlert",function(a,b,c,d,e,f){a.integrationsByPage=10;var g=a.uploader=new d({url:"api/integrations",autoUpload:!0,removeAfterUpload:!0});g.filters.push({name:"zipFilter",fn:function(a){var b="|"+a.type.slice(a.type.lastIndexOf("/")+1)+"|";return-1!=="|zip|".indexOf(b)}}),g.onSuccessItem=function(a,b,c,d){console.info("onSuccessItem",a,b,c,d),f.show(b.name,"success")},g.onErrorItem=function(a,b,c,d){console.info("onErrorItem",a,b,c,d),b.errors.forEach(function(a){f.error(err)})},a.deleteItem=b.confirm["delete"](function(a){e["delete"]({id:a},function(){f.show("Integration Removed","success")},function(a){f.error(a)})}),a.initList=function(){a.integrations=e.query({},function(a){c.syncUpdates("integration",a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.integrations.list",{url:"/list",templateUrl:"app/integration/list/list.html",controller:"IntegrationListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/plugins/bootstrap-fileinput/bootstrap-fileinput.js"]})}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.jscripty",{url:"/jscripty",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").factory("JscriptyProject",["$resource",function(a){return a("/api/jscripty/projects/:id/:controller/:action/:action2",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("JscriptyProjectListCtrl",["$scope","$uibModal","JscriptyProject","gridOptions","Auth",function(a,b,c,d,e){a.Auth=e,a.initView=function(){var b={exporterCsvFilename:"jscriptyProjects.csv",columnDefs:[{name:"name"},{name:"description"},{name:"action",width:300,buttons:[{"class":"blue-hoki",icon:"icon-settings",href:"/jscripty/projects/view/{{row.entity.id}}",hide:e.isAgent()},{"class":" green-turquoise",icon:"fa fa-play",onClick:"grid.appScope.openJscriptyTab(row.entity)"},{"class":"purple",icon:"icon-book-open",href:"/jscripty/projects/report/{{row.entity.id}}/sessions",hide:e.isAgent()},{"class":"red-sunglo",icon:"fa fa-trash",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)",hide:e.isAgent()}]}]};a.gridOptions=d.gridOptions(c,b,a)},a.createItem=function(){var c=b.open({animation:!0,templateUrl:"app/jscripty/project/list/list.create.modal.html",controller:"JscriptyProjectListCreateCtrl"});c.result.then(function(b){console.log(b),a.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("JscriptyProjectListCreateCtrl",["$scope","$translate","$uibModalInstance","JscriptyProject","xAlert",function(a,b,c,d,e){a.form={},a.item={},a.save=function(){return d.save(a.item).$promise.then(function(a){e.show(b.instant("MESSAGE_WELL_DONE"),"success"),c.close(a)})["catch"](function(a){console.log(a),e.error(a)})},a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.jscripty.projects.list",{url:"/list",templateUrl:"app/jscripty/project/list/list.html",controller:"JscriptyProjectListCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.jscripty.projects",{url:"/projects",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("JscriptyProjectReportCtrl",["$scope","uiGridConstants","$http","$state","$stateParams","socket","Auth","Modal","xAlert","$translate","$rootScope","gridOptions","JscriptyProject","$location",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n){a.projectStats={started:0,incomplete:0,completed:0},a.projectId=e.id,a.initView=function(){m.get({id:e.id}).$promise.then(function(b){a.project=b})["catch"](function(a){i.error(a)}),m.get({id:e.id,controller:"sessions"}).$promise.then(function(b){var c=_.groupBy(b.rows,"status");a.projectStats.started=c.started?c.started.length:0,a.projectStats.completed=c.completed?c.completed.length:0,a.projectStats.incomplete=c.incomplete?c.incomplete.length:0})["catch"](function(a){i.error(a)})},a.pdf=function(a,b){var c=[];if(a){var d=html2canvas(document.getElementById(a)),e=d.parse(),f=d.render(e),g=f.toDataURL("image/png");c.push({image:g,width:500,style:"img"})}b.length&&_.forEach(b,function(a){var b=html2canvas(document.getElementById(a.question_id)),d=b.parse(),e=b.render(d),f=e.toDataURL("image/png");c.push({image:f,width:500,style:"img"})});var h={content:c};pdfMake.createPdf(h).download("Project_summary.pdf")},a.getProjectSessions=function(){var c={exporterCsvFilename:"jscriptyProjects.csv",columnDefs:[{name:"session_id",displayName:"APPLICATION_SESSIONID"},{name:"queue",displayName:"APPLICATION_QUEUE"},{name:"membername",displayName:"APPLICATION_AGENT"},{name:"calleridnum",displayName:"APPLICATION_CALLERIDNUM"},{name:"createdAt",displayName:"APPLICATION_STARTEDAT",filterHeaderTemplate:'<div class="ui-grid-filter-container row"><div ng-repeat="colFilter in col.filters" class="col-md-6 col-md-offset-0 col-sm-5 col-sm-offset-0 col-xs-5 col-xs-offset-0"><div custom-grid-date-filter-header></div></div></div>',filters:[{name:"From",condition:b.filter.GREATER_THAN_OR_EQUAL},{name:"To",condition:b.filter.LESS_THAN_OR_EQUAL}]},{name:"completedAt",displayName:"APPLICATION_COMPLETEDAT",filterHeaderTemplate:'<div class="ui-grid-filter-container row"><div ng-repeat="colFilter in col.filters" class="col-md-6 col-md-offset-0 col-sm-5 col-sm-offset-0 col-xs-5 col-xs-offset-0"><div custom-grid-date-filter-header></div></div></div>',filters:[{name:"From",condition:b.filter.GREATER_THAN_OR_EQUAL},{name:"To",condition:b.filter.LESS_THAN_OR_EQUAL}]},{name:"status",displayName:"APPLICATION_STATUS"},{name:"last_question_id",displayName:"APPLICATION_LASTQUESTIONID"},{name:"action",width:100,buttons:[{"class":"blue-hoki",href:"/jscripty/projects/report/{{row.entity.projectId}}/session/{{row.entity.session_id}}",name:"Detail"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteSession(row.entity.session_id)"}]}]};a.gridOptions=l.gridOptions(m,c,a,{id:e.id,controller:"sessions"})},a.deleteSession=function(b){m["delete"]({id:e.id,controller:"sessions",action:b}).$promise.then(function(b){a.gridOptions.getPage(),a.initView(),i.show(j.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){i.error(a)})},a.getSessionDetails=function(){m.get({id:e.id,controller:"sessions",action:e.sessionId}).$promise.then(function(b){a.session=b,a.sessionQuestions=b.ReportJscriptyQuestions})["catch"](function(a){i.error(a)})},a.getQuestionSummary=function(){var b={exporterCsvFilename:"jscriptyProjects.csv",columnDefs:[{name:"question_id",displayName:"APPLICATION_QUESTIONID"},{name:"question_type",displayName:"APPLICATION_QUESTIONTYPE"},{name:"question_label",displayName:"APPLICATION_QUESTIONLABEL"},{name:"question_text",displayName:"APPLICATION_QUESTION"},{name:"count",displayName:"APPLICATION_COUNT",enableFiltering:!1},{name:"action",width:100,buttons:[{"class":"blue-hoki",href:"/jscripty/projects/report/"+e.id+"/detail/{{row.entity.question_id}}",name:"Detail"}]}]};a.gridOptions=l.gridOptions(m,b,a,{id:e.id,controller:"questions",action:"summary"})},a.getQuestionInputs=function(){var b={exporterCsvFilename:"jscriptyProjects.csv",columnDefs:[{name:"session_id",displayName:"APPLICATION_SESSIONID"},{name:"question_id",displayName:"APPLICATION_QUESTIONID",enableFiltering:!1},{name:"question_label",displayName:"APPLICATION_QUESTIONLABEL",enableFiltering:!1},{name:"question_text",displayName:"APPLICATION_QUESTION",enableFiltering:!1},{name:"input_label",displayName:"APPLICATION_INPUTLABEL",enableFiltering:!1},{name:"input_value",cellTemplate:'<div uib-tooltip="{{row.entity.input_value}}">{{row.entity.input_value}}</div>',displayName:"APPLICATION_INPUTVALUE",enableFiltering:!1}]};a.gridOptions=l.gridOptions(m,b,a,{id:e.id,controller:"inputs"})},a.getProjectDetail=function(){a.projectDetail=[],m.query({id:e.id,controller:"questions",action:"detail"}).$promise.then(function(b){console.log(e.questionId),e.questionId?a.projectDetail.push(_.find(b,function(a){return a.question_id==parseInt(e.questionId)})):a.projectDetail=b,console.log(a.projectDetail)})["catch"](function(a){i.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.jscripty.projects.report",{url:"/report/:id",templateUrl:"app/jscripty/project/report/report.html",controller:"JscriptyProjectReportCtrl"}).state("main.jscripty.projects.report.sessions",{url:"/sessions",templateUrl:"app/jscripty/project/report/report.sessions.html"}).state("main.jscripty.projects.report.summary",{url:"/summary",templateUrl:"app/jscripty/project/report/report.summary.html"}).state("main.jscripty.projects.report.inputs",{url:"/inputs",templateUrl:"app/jscripty/project/report/report.inputs.html"}).state("main.jscripty.projects.report.detail",{url:"/detail",templateUrl:"app/jscripty/project/report/report.detail.html"}).state("main.jscripty.projects.report.questionDetail",{url:"/detail/:questionId",controller:"JscriptyProjectReportCtrl",templateUrl:"app/jscripty/project/report/report.detail.html"}).state("main.jscripty.projects.report.sessionDetail",{url:"/session/:sessionId",controller:"JscriptyProjectReportCtrl",templateUrl:"app/jscripty/project/report/report.session.detail.html"})}]),angular.module("xCallyShuttleApp").controller("JscriptyProjectViewCtrl",["$scope","$http","$state","$stateParams","socket","Auth","Modal","xAlert","$translate","$rootScope",function(a,b,c,d,e,f,g,h,i,j){a.jscriptyProject={},a.getProject=function(){b.get("/api/jscripty/projects/"+d.id).success(function(b){a.jscriptyProject=b,angular.element(document).ready(function(){window.onerror=function(a,b,c){try{if(null!=a&&-1!=a.indexOf("Script error."));else{var d=new Image;d.src="assets/plugins/mxgraph/images/1x1.png?msg="+encodeURIComponent(a)+"&url="+encodeURIComponent(b)+"&lnum="+encodeURIComponent(c)}}catch(e){}},b.token=f.getToken();var a=new EditorUi(new Editor);a.openString(b.draft,b.name,b),a.editor.graphChangeListener=function(a,b){var c=b.properties.rtChange||!1;c||(this.modified=!0)}}),e.syncUpdates("jscripty_project",[b],function(a,c,d){c.id===b.id})})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.jscripty.projects.view",{url:"/view/:id",templateUrl:"app/jscripty/project/view/view.html",controller:"JscriptyProjectViewCtrl",authenticate:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",serie:!0,cache:!1,files:["assets/plugins/mxgraph/css/common.css","assets/plugins/mxgraph/css/explorer.css","assets/plugins/mxgraph/styles/grapheditor.css","assets/plugins/mxgraph/styles/custom.css","assets/plugins/jscripty/js/custom.js","assets/plugins/mxgraph/js/mxClient.js","assets/plugins/jscripty/js/Editor.js","assets/plugins/jscripty/js/Graph.js","assets/plugins/jscripty/js/EditorUi.js","assets/plugins/jscripty/js/Actions.js","assets/plugins/jscripty/js/Menus.js","assets/plugins/jscripty/js/Sidebar.js","assets/plugins/jscripty/js/Toolbar.js","assets/plugins/jscripty/js/Dialogs.js"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("LandingCtrl",["$scope","$location","$window","$timeout","Auth","Setting","YourDashboard",function(a,b,c,d,e,f,g){function h(b,c){var d,f,g=b.length;for(d=0;g>d;d++)if(_.includes(c,b[d].id))if(b[d].SubModules&&b[d].SubModules.length){if(f=h(b[d].SubModules,c))return f}else switch(b[d].id){case 2:var i={};i[e.getRole()]=!0;var j=_.find(a.tempDashboards,i);if(j)return f="/tools/yourdashboards/show/"+j.id,delete a.tempDashboards,f;break;default:return b[d].path}}function i(c){c||(a.message="MESSAGE_NO_AVAILABLE_MODULES"),d(function(){b.path(c)},500)}a.initLanding=function(){a.year=moment().year();var c;return f.get({controller:"info"}).$promise.then(function(b){return a.info=b,f.get({id:1}).$promise.then(function(a){return a})["catch"](function(){return null})}).then(function(d){var f,j=e.getCurrentUser().$promise;return j?j.then(function(e){if(f=e,c&&"admin"===e.role&&d.firstLogin)return void b.path("/adminreset");switch(f.role){case"user":if(_.includes(_.map(e.Modules,"id"),2))return g.get().$promise.then(function(b){a.tempDashboards=b.rows,i(h(f.Modules,_.map(e.Modules,"id")))})["catch"](function(){_.remove(f.Modules,{id:2}),i(h(f.Modules,_.map(e.Modules,"id")))});i(h(f.Modules,_.map(e.Modules,"id")));break;case"admin":case"agent":i("/dashboard/voice")}})["catch"](function(a){console.error(a),b.path("/login")}):void b.path("/login")})["catch"](function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("landing",{url:"/landing",templateUrl:"app/landing/landing.html",controller:"LandingCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/error.css","assets/css/login.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("LoginCtrl",["$scope","Auth","$location","$window","$rootScope","Setting","xAlert","$stateParams",function(a,b,c,d,e,f,g,h){a.year=moment().year(),a.recovered=h.reset,a.userLogin={},a.userSignUp={},a.loginSubmitted=!1,a.signupSubmitted=!1,a.errorLogin=!1,a.errorSignup=!1,a.errorLog="",a.forgotPassword=!1,a.showRecoverMessage=!1,a.flagLogin1=!1,a.getInfo=function(){return f.get({controller:"info"}).$promise.then(function(b){a.info=b})["catch"](function(a){g.error(a)})},a.toggleLogin=function(){a.flagLogin1=!a.flagLogin1},a.toggleForgotPassword=function(b){a.showRecoverMessage=!1,a.userLogin.email="",a.forgotPassword=b},e.bodyLayout="login",a.$on("$viewContentLoaded",function(){Metronic.init(),Layout.init()}),a.recover=function(){b.recover({email:a.userLogin.email}).then(function(){a.showRecoverMessage=!0})["catch"](function(b){a.showRecoverMessage=!1,g.error(b)})},a.login=function(d){a.loginSubmitted=!0,d.$valid?b.login({name:a.userLogin.name,password:a.userLogin.password,remember:a.userLogin.remember}).then(function(){c.path("/landing")})["catch"](function(b){a.errorLog=b.message||"error",a.errorLogin=!0}):a.errorLogin=!0},a.signup=function(c){a.signupSubmitted=!0,c.$valid?b.createUser({email:a.userSignUp.email,fullname:a.userSignUp.fullname,name:a.userSignUp.name,password:a.userSignUp.password,role:a.userSignUp.role,online:!0})["catch"](function(b){a.errorLog=b.message||"error",a.errorSignup=!0}):a.errorSignup=!0},a.loginOauth=function(a){d.location.href="/auth/"+a}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("login",{url:"/login",templateUrl:"app/login/login.html",params:{reset:null},controller:"LoginCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/login.css"]}])}]}})}]),angular.module("xCallyShuttleApp").factory("Action",["$resource",function(a){return a("/api/actions/:name/:controller",{name:"@name"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("Ami",["$resource",function(a){return a("/api/ami/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("ChooseContactModalCtrl",["$scope","$uibModalInstance","data","xAlert","$translate","Contact",function(a,b,c,d,e,f){a.open=function(a){b.close(a)},a.getContacts=function(){return f.search({controller:"listcontact"},c).$promise.then(function(b){a.contacts=b.rows})["catch"](function(a){d.error(a)})},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("CloseEditedTabModalCtrl",["$scope","$uibModalInstance",function(a,b){a.close=function(){b.close()},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("CloseEditedTabModalJscriptyCtrl",["$scope","$uibModalInstance","project","JscriptyProject","xAlert",function(a,b,c,d,e){a.init=function(){a.project=c},a.close=function(){d.update({id:a.project.projectId,controller:"sessions",action:a.project.sessionId},{status:"incomplete",completedAt:Date(),last_question_id:a.project.lastQuestionId}).$promise.then(function(a){e.show("Project Ended","success")}),b.close()},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("ContactManagerSetDisposition",["$scope","$uibModalInstance","VoiceDisposition",function(a,b,c){a.initDisposition=function(){return c.get().$promise.then(function(b){a.dispositions=b.rows})["catch"](function(a){console.error(a)})},a.item={},a.ok=function(){b.close(a.item)},a.cancel=function(){b.dismiss()}}]),angular.module("xCallyShuttleApp").controller("customGridDateFilterModalCtrl",["$scope","$rootScope","$log","$uibModalInstance","term","hasTime",function(a,b,c,d,e,f){if(a.hasTime=f,a.dateTime={},e)if(f){var g=e.split(" ");a.dateTime.filterDate=moment(g[0]),a.dateTime.time=e[1]?moment(g[1],"HH:mm"):moment()}else a.dateTime.filterDate=moment(e);else f&&(a.dateTime.time=moment());a.setFilterDate=function(b){d.close({date:moment(b).format("YYYY-MM-DD").toString(),time:f?a.dateTime.time?moment(a.dateTime.time).format("HH:mm").toString():moment().format("HH:mm").toString():null})},a.cancelDateFilter=function(){d.dismiss()}}]),angular.module("xCallyShuttleApp").controller("customGridTagsModalCtrl",["$scope","$rootScope","$log","$uibModalInstance","term","Tag","xAlert",function(a,b,c,d,e,f,g){a.initModal=function(){return a.item={},f.get().$promise.then(function(b){a.tags=_.map(b.rows,"name"),a.item.myTags=e})["catch"](function(a){console.log("error retrieving tags"),g.error(a),d.dismiss()})},a.setFilterTags=function(){d.close(a.item.myTags)},a.cancelTagsFilter=function(){d.dismiss()}}]),angular.module("xCallyShuttleApp").factory("templateVariable",["$translate",function(a){return[{id:"voice",label:a.instant("APPLICATION_VOICE"),title:a.instant("APPLICATION_VOICE"),groups:[{label:a.instant("APPLICATION_QUEUE"),values:[{value:"{{uniqueid}}",label:a.instant("APPLICATION_UNIQUEID"),description:a.instant("APPLICATION_UNIQUEID")},{value:"{{calleridnum}}",label:a.instant("APPLICATION_CALLERIDNUM"),description:a.instant("APPLICATION_CALLERIDNUM")},{value:"{{calleridname}}",label:a.instant("APPLICATION_CALLERIDNAME"),description:a.instant("APPLICATION_CALLERIDNAME")},{value:"{{queue}}",label:a.instant("APPLICATION_QUEUE"),description:a.instant("APPLICATION_QUEUE")},{value:"{{interface}}",label:a.instant("APPLICATION_INTERFACE"),description:a.instant("APPLICATION_INTERFACE")},{value:"{{membername}}",label:a.instant("APPLICATION_MEMBERNAME"),description:a.instant("APPLICATION_MEMBERNAME")},{value:"{{holdtime}}",label:a.instant("APPLICATION_HOLDTIME"),description:a.instant("APPLICATION_HOLDTIME")},{value:"{{talktime}}",label:a.instant("APPLICATION_TALKTIME"),description:a.instant("APPLICATION_TALKTIME")},{value:"{{connectedlinenum}}",label:a.instant("APPLICATION_CONNECTEDLINENUM"),description:a.instant("APPLICATION_CONNECTEDLINENUM")},{value:"{{connectedlinename}}",label:a.instant("APPLICATION_CONNECTEDLINENAME"),description:a.instant("APPLICATION_CONNECTEDLINENAME")},{value:"{{agentconnectAt}}",label:a.instant("APPLICATION_CONNECTED_AT"),description:a.instant("APPLICATION_CONNECTED_AT")},{value:"{{agentcalledAt}}",label:a.instant("APPLICATION_CALLED_AT"),description:a.instant("APPLICATION_CALLED_AT")},{value:"{{agentcompleteAt}}",label:a.instant("APPLICATION_COMPLETED_AT"),description:a.instant("APPLICATION_AGENT_CALLED_AT")},{value:"{{reason}}",label:a.instant("APPLICATION_REASON"),description:a.instant("APPLICATION_REASON")},{value:"{{lastevent}}",label:a.instant("APPLICATION_LAST_EVENT"),description:a.instant("APPLICATION_LAST_EVENT")},{value:"{{channel}}",label:a.instant("APPLICATION_CHANNEL"),description:a.instant("APPLICATION_CHANNEL")}]}]},{id:"chat",label:a.instant("APPLICATION_CHAT"),title:a.instant("APPLICATION_CHAT"),groups:[{label:a.instant("APPLICATION_VARIABLES"),values:[{value:"{{username}}",label:a.instant("APPLICATION_USERNAME"),description:a.instant("APPLICATION_USERNAME")},{value:"{{email}}",label:a.instant("APPLICATION_MAIL"),description:a.instant("APPLICATION_MAIL")},{value:"{{text}}",label:a.instant("APPLICATION_TEXT"),description:a.instant("APPLICATION_TEXT")},{value:"{{chatWebsite}}",label:a.instant("APPLICATION_WEBSITE"),description:a.instant("APPLICATION_WEBSITE")}]}]},{id:"mail",label:a.instant("APPLICATION_MAIL"),title:a.instant("APPLICATION_MAIL"),groups:[{label:a.instant("APPLICATION_INTERACTION"),values:[{value:"{{interactionId}}",label:a.instant("APPLICATION_INTERACTION_ID"),description:a.instant("APPLICATION_INTERACTION_ID")},{value:"{{subject}}",label:a.instant("APPLICATION_SUBJECT"),description:a.instant("APPLICATION_SUBJECT")},{value:"{{{body}}}",label:a.instant("APPLICATION_MESSAGE"),description:a.instant("APPLICATION_MESSAGE")},{value:"{{accountName}}",label:a.instant("APPLICATION_ACCOUNT"),description:a.instant("APPLICATION_ACCOUNT")},{value:"{{from}}",label:"From",description:"From"},{value:"{{to}}",label:"To",description:"To"},{value:"{{cc}}",label:"Cc",description:"Cc"},{value:"{{agentName}}",label:a.instant("APPLICATION_AGENT_NAME"),description:a.instant("APPLICATION_AGENT_NAME")},{value:"{{agentEmail}}",label:a.instant("APPLICATION_AGENT_EMAIL"),description:a.instant("APPLICATION_AGENT_EMAIL")},{value:"{{createdAt}}",label:a.instant("APPLICATION_CREATED_AT"),description:a.instant("APPLICATION_CREATED_AT")}]}]},{id:"sms",label:a.instant("APPLICATION_SMS"),title:a.instant("APPLICATION_SMS"),groups:[{label:a.instant("APPLICATION_INTERACTION"),values:[{value:"{{SmsRoomId}}",label:a.instant("APPLICATION_INTERACTION_ID"),description:a.instant("APPLICATION_INTERACTION_ID")},{value:"{{{body}}}",label:a.instant("APPLICATION_MESSAGE"),description:a.instant("APPLICATION_MESSAGE")},{value:"{{from}}",label:"From",description:"From"},{value:"{{to}}",label:"To",description:"To"},{value:"{{createdAt}}",label:a.instant("APPLICATION_CREATED_AT"),description:a.instant("APPLICATION_CREATED_AT")}]}]},{id:"openchannel",label:a.instant("APPLICATION_OPENCHANNEL"),title:a.instant("APPLICATION_OPENCHANNEL"),groups:[{label:a.instant("APPLICATION_INTERACTION"),values:[{value:"{{OpenchannelRoomId}}",label:a.instant("APPLICATION_INTERACTION_ID"),description:a.instant("APPLICATION_INTERACTION_ID")},{value:"{{{body}}}",label:a.instant("APPLICATION_MESSAGE"),description:a.instant("APPLICATION_MESSAGE")},{value:"{{from}}",label:"From",description:"From"},{value:"{{to}}",label:"To",description:"To"},{value:"{{createdAt}}",label:a.instant("APPLICATION_CREATED_AT"),description:a.instant("APPLICATION_CREATED_AT")}]}]},{id:"fax",label:a.instant("APPLICATION_FAX"),title:a.instant("APPLICATION_FAX"),groups:[{label:a.instant("APPLICATION_INTERACTION"),values:[{value:"{{FaxRoomId}}",label:a.instant("APPLICATION_INTERACTION_ID"),description:a.instant("APPLICATION_INTERACTION_ID")},{value:"{{uniqueid}}",label:a.instant("APPLICATION_UNIQUEID"),description:a.instant("APPLICATION_UNIQUEID")},{value:"{{calleridnum}}",label:a.instant("APPLICATION_CALLERIDNUM"),description:a.instant("APPLICATION_CALLERIDNUM")},{value:"{{calleridname}}",label:a.instant("APPLICATION_CALLERIDNAME"),description:a.instant("APPLICATION_CALLERIDNAME")},{value:"{{channel}}",label:a.instant("APPLICATION_CHANNEL"),description:a.instant("APPLICATION_CHANNEL")},{value:"{{from}}",label:"From",description:"From"},{value:"{{to}}",label:"To",description:"To"},{value:"{{accountName}}",label:a.instant("APPLICATION_ACCOUNT"),description:a.instant("APPLICATION_ACCOUNT")}]}]}]}]),angular.module("xCallyShuttleApp").controller("gridDatePickerFilterCtrl",["$scope","$timeout","$uibModal","uiGridConstants",function(a,b,c,d){b(function(){a.col.colDef.name;a.openDatePicker=function(b){var d=c.open({templateUrl:"app/main/customDateFilter.modal.html",controller:"customGridDateFilterModalCtrl",size:"md",windowClass:"custom-date-filter-modal",resolve:{term:[function(){return b.term||null}],hasTime:b.hasTime||!1}});d.result.then(function(c){a.colFilter.listTerm=[],a.colFilter.term=c.date,b.hasTime&&(a.colFilter.term+=" "+c.time)})}})}]),angular.module("xCallyShuttleApp").factory("gridOptions",["Modal","xAlert","$translate","$interval","$q","usSpinnerService",function(a,b,c,d,e,f){return{gridOptions:function(d,g,h,i,j,k,l){function m(a,b){a.filter&&a.filter.term&&b&&(o[a.name]=a.filter.term),a.filters&&(a.filters.length>1?a.filters.forEach(function(b){b.term?64===b.condition?o[a.name+"_uiFrom"]=b.term:256===b.condition&&(o[a.name+"_uiTo"]=b.term):64===b.condition?delete o[a.name+"_uiFrom"]:256===b.condition&&delete o[a.name+"_uiTo"]}):a.filters.length&&a.filters[0].term?o[a.name]=a.filters[0].term:delete o[a.name])}h.id=[];var n=k?"gridOptions"+k:"gridOptions",o={offset:0,limit:10},p={offset:0,limit:10};g.draggable&&(g.rowTemplate='<div grid="grid" class="ui-grid-draggable-row" draggable="true"><div ng-repeat="(colRenderIndex, col) in colContainer.renderedColumns track by col.colDef.name" class="ui-grid-cell" ng-class="{ \'ui-grid-row-header-cell\': col.isRowHeader, \'custom\': true }" ui-grid-cell></div></div>',g.useExternalPagination=!1,g.enablePaginationControls=!1,g.showGridFooter=!1);var q=function(a){var b=a&&a>h[n].paginationPageSize?h[n].paginationPageSize:a,c=b?30*b+120:177,d=angular.element(document.getElementsByName(n)).length?angular.element(document.getElementsByName(n)[0]):angular.element(document.getElementsByClassName("ui-grid")[0]);d.css("height",c+"px")},r=function(a,b){return h[n].enablePaginationControls||(delete o.offset,delete o.limit),f.spin("spinner-grid"),i=a||i,d=b||d,d.get(i?_.merge(o,i):o).$promise.then(function(a){h[n].totalItems=a.count,h[n].data=a.rows,q(a.rows.length),l&&l()})["catch"](function(a){console.error(a)})["finally"](function(){f.stop("spinner-grid")})};return h.deleteItem=a.confirm["delete"](function(a){var e=i?angular.copy(i):{};return _.merge(e,{id:a}),d.remove(e).$promise.then(function(){r(),b.show(c.instant("MESSAGE_WELL_DONE")+"!","success"),h.gridApi.selection.clearSelectedRows(),h.id=[]})["catch"](function(a){b.error(a)})}),h.deleteItems=a.confirm["delete"](function(){var a=i?angular.copy(i):{};return _.merge(a,{ids:h.id}),d["delete"](a).$promise.then(function(){r(),b.show(c.instant("MESSAGE_WELL_DONE")+"!","success"),h.gridApi.selection.clearSelectedRows(),h.id=[]})["catch"](function(a){b.error(a)})}),g.columnDefs.forEach(function(a){m(a,!0),a.hasOwnProperty("displayName")||(a.displayName="APPLICATION_"+a.name.toUpperCase()),a.headerCellFilter="translate",a.hasOwnProperty("buttons")&&(a.displayName="",a.cellClass="ui-grid-vcenter",a.enableSorting=!1,a.enableFiltering=!1,a.enableColumnMenu=!1,a.cellTemplate="<div>",a.buttons.forEach(function(b){if(b.directive)a.cellTemplate+=b.directive;else{if(a.cellTemplate+="<a",a.cellTemplate+=b.hide?' data-ng-hide="'+b.hide+'" ':" ",a.cellTemplate+=b["class"]?' class="btn btn-xs '+b["class"]+'" ':" ",a.cellTemplate+=b.href?' data-ng-href="'+b.href+'" ':" ",a.cellTemplate+=b.uisref?' ui-sref="'+b.uisref+'" ':" ",a.cellTemplate+=b.onClick?' data-ng-click="'+b.onClick+'" ':" ",a.cellTemplate+=b.title?' title="'+b.title+'"':"",a.cellTemplate+=">",a.cellTemplate+=b.icon?'<i class="'+b.icon+'"></i>':"",b.name)switch(b.name){case"delete":a.cellTemplate+='<i class="icon-trash" title="'+b.name+'"></i>';break;case"profile":case"settings":case"detail":case"embedding":a.cellTemplate+='<i class="icon-settings" title="'+b.name+'"></i>';break;case"view":a.cellTemplate+='<i class="icon-doc" title="'+b.name+'"></i>';break;case"clone":a.cellTemplate+='<i class="icon-docs" title="'+b.name+'"></i>';break;case"permits":a.cellTemplate+='<i class="icon-key"></i>';break;case"copy":a.cellTemplate+='<i class="fa fa-files-o" title="'+b.name+'"></i>';break;case"select":a.cellTemplate+='<i class="icon-check" title="'+b.name+'"></i>';break;case"preview":a.cellTemplate+='<i class="icon-magnifier" title="'+b.name+'"></i>';break;case"contacts":a.cellTemplate+='<i class="fa fa-users" title="'+b.name+'"></i>';break;case"download":case"export":a.cellTemplate+='<i class="fa fa-download" title="'+b.name+'"></i>';break;case"agents":a.cellTemplate+='<i class="icon-people" title="'+b.name+'"></i>';break;case"run":a.cellTemplate+='<i class="fa fa-cogs" title="'+b.name+'"></i>';break;case"mailRoom":a.cellTemplate+='<i class="fa fa-envelope"></i>';break;case"chatRoom":a.cellTemplate+='<i class="fa fa-users"></i>';break;case"faxRoom":a.cellTemplate+='<i class="fa fa-fax"></i>';break;case"smsRoom":a.cellTemplate+='<i class="glyphicon glyphicon-comment"></i>';break;case"check":a.cellTemplate+='<i class="fa fa-check" title="'+b.name+'"></i>';break;case"queues":a.cellTemplate+='<i class="icon-docs" title="'+b.name+'"></i>';break;case"deleteContacts":a.cellTemplate+='<i class="fa fa-user-times" title="'+b.name+'"></i>';break;default:a.cellTemplate+="{{'APPLICATION_"+b.name.toUpperCase()+"' | translate}}"}else a.cellTemplate+=b.displayName?"{{'"+b.displayName+"' | translate}}":"";a.cellTemplate+="</a> "}}),a.cellTemplate+="<div>",delete a.buttons)}),_.merge({enableGridMenu:!0,headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableRowSelection:!0,enableSelectAll:!0,enableFiltering:!0,showGridFooter:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,useExternalPagination:!0,useExternalSorting:!0,useExternalFiltering:!0,multiSelect:!0,getPage:r,pagOpt:o,gridMenuTitleFilter:function(a){var b=e.defer();return b.resolve(c.instant(a)),b.promise},exporterAllDataFn:function(){return p.offset=o.offset,p.limit=o.limit,o={offset:0,limit:null},r().then(function(){o.offset=p.offset,o.limit=p.limit,r()})},exporterFieldCallback:function(a,b,c,d){if("applications"===c.field&&b.entity.Applications){var e="";return _.forEach(b.entity.Applications,function(a){e+=a.app+"("+a.appdata.join(",")+")"}),e}return d; +},exporterHeaderFilter:c.instant,onRegisterApi:function(a){h.gridApi=a,h.gridApi.selection&&(h.gridApi.selection.on.rowSelectionChanged(h,function(a){a.isSelected?h.id.push(h.gridApi.grid.options.primaryKey?a.entity[h.gridApi.grid.options.primaryKey]:a.entity.id):_.pull(h.id,h.gridApi.grid.options.primaryKey?a.entity[h.gridApi.grid.options.primaryKey]:a.entity.id)}),h.gridApi.selection.on.rowSelectionChangedBatch(h,function(a){a[0].isSelected?h.id=_.union(h.id,_.map(a,h.gridApi.grid.options.primaryKey?"entity."+h.gridApi.grid.options.primaryKey:"entity.id")):_.map(a,h.gridApi.grid.options.primaryKey?"entity."+h.gridApi.grid.options.primaryKey:"entity.id").forEach(function(a){_.pull(h.id,a)})})),h.gridApi.core.on.sortChanged(h,function(a,b){0===b.length?o.order=null:o.order=b[0].name+" "+b[0].sort.direction.toUpperCase(),r()});for(var e=0;e<h.gridOptions.columnDefs.length;e++)if(h.gridOptions.columnDefs[e].hasOwnProperty("sort")){o.order=h.gridOptions.columnDefs[e].name+" "+h.gridOptions.columnDefs[e].sort.direction.toUpperCase();break}h.gridApi.pagination.on.paginationChanged(h,function(a,b){o.offset=(a-1)*b,o.limit=b,r()}),h.gridApi.core.on.filterChanged(h,function(){var a=this.grid;a.columns.forEach(function(a){m(a)}),r()}),h.gridApi.draggableRows&&h.gridApi.draggableRows.on.rowDropped(h,function(a){a.fromIndex!==a.toIndex&&d.update(i,h[n].data).$promise.then(function(){b.show(c.instant("MESSAGE_WELL_DONE")+"!","success")})["catch"](function(a){b.error(a)})["finally"](function(){r()})}),j||r()}},g)}}}]),angular.module("xCallyShuttleApp").controller("gridTagsFilterCtrl",["$scope","$timeout","$uibModal","uiGridConstants",function(a,b,c,d){b(function(){a.col.colDef.name;a.openTags=function(b){var d=c.open({templateUrl:"app/main/customTagsFilter.modal.html",controller:"customGridTagsModalCtrl",size:"md",resolve:{term:[function(){if(b.term){var a=b.term.split(";");return a.pop(),a}return[]}]}});d.result.then(function(b){a.colFilter.listTerm=[],b.length&&(a.colFilter.term=b.join(";")+";")})}})}]),angular.module("xCallyShuttleApp").controller("MainCtrl",["$scope","$rootScope","$translate","$timeout","socket","Auth","xAlert","$uibModal","$log","$state","Contact","$window","$location","localStorageService","YourDashboard","Setting","AuthResource","$cookieStore",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){function s(d){b.activeTour={main:!1},b.tourConfig={main:[{type:"function",fn:function(){b.tempTourPath=m.path()}},{type:"title",heading:c.instant("TOUR_MAIN_WELCOME"),text:'<div class="row"><div id="title-text" class="col-md-12"><span class="main-text">'+c.instant("TOUR_MAIN_DISCOVER_MOTION")+"</span><br/></div></div>",curtainClass:"myCurtainClass"}]},(f.isAdmin()||b.userModules[1])&&(b.tourConfig.main=b.tourConfig.main.concat([{type:"location_change",path:"/dashboard/voice"},{type:"title",heading:c.instant("TOUR_MAIN_DASHBOARD"),text:c.instant("TOUR_MAIN_DASHBOARD_MESSAGE"),curtainClass:"myCurtainClass"}])),(f.isAdmin()||b.userModules[2])&&d&&(b.tourConfig.main=b.tourConfig.main.concat([{type:"location_change",path:"/tools/yourdashboards/show/"+d.id},{type:"title",heading:c.instant("TOUR_MAIN_YOURDASHBOARD"),text:c.instant("TOUR_MAIN_YOURDASHBOARD_MESSAGE"),curtainClass:"myCurtainClass"}]),delete a.tempDashboards),(f.isAdmin()||b.userModules[4])&&(b.tourConfig.main=b.tourConfig.main.concat([{type:"location_change",path:"/staff/agents/list"},{type:"title",heading:c.instant("TOUR_MAIN_AGENTS"),text:c.instant("TOUR_MAIN_AGENTS_MESSAGE"),curtainClass:"myCurtainClass"}])),f.isAdmin()&&(b.tourConfig.main=b.tourConfig.main.concat([{type:"location_change",path:"/channels/voice/queues/list"},{type:"title",heading:c.instant("TOUR_MAIN_VOICE_QUEUE"),text:c.instant("TOUR_MAIN_VOICE_QUEUE_ADD_MESSAGE"),curtainClass:"myCurtainClass"}])),b.license.chat&&(f.isAdmin()||b.userModules[30])&&(b.tourConfig.main=b.tourConfig.main.concat([{type:"location_change",path:"/channels/chat/queues/list"},{type:"title",heading:c.instant("TOUR_MAIN_CHAT_QUEUE"),text:c.instant("TOUR_MAIN_CHAT_QUEUE_MESSAGE"),curtainClass:"myCurtainClass"}])),b.license.openchannel&&(f.isAdmin()||b.userModules[46])&&(b.tourConfig.main=b.tourConfig.main.concat([{type:"location_change",path:"/channels/openchannel/accounts/list"},{type:"title",heading:c.instant("TOUR_MAIN_OPENCHANNEL"),text:c.instant("TOUR_MAIN_OPENCHANNEL_MESSAGE"),curtainClass:"myCurtainClass"}])),(f.isAdmin()||b.userModules[14])&&(b.tourConfig.main=b.tourConfig.main.concat([{type:"location_change",path:"/square/projects/list"},{type:"title",heading:c.instant("TOUR_MAIN_SQUARE_PROJECT"),text:c.instant("TOUR_MAIN_SQUARE_PROJECT_MESSAGE"),curtainClass:"myCurtainClass"}])),(f.isAdmin()||b.userModules[52])&&(b.tourConfig.main=b.tourConfig.main.concat([{type:"location_change",path:"/tools/trunks/list"},{type:"title",heading:c.instant("TOUR_MAIN_TRUNKS"),text:c.instant("TOUR_MAIN_TRUNKS_MESSAGE"),curtainClass:"myCurtainClass"}])),(f.isAdmin()||b.userModules[52])&&(b.tourConfig.main=b.tourConfig.main.concat([{type:"location_change",path:"/tools/triggers/list"},{type:"title",heading:c.instant("TOUR_MAIN_TRIGGERS"),text:c.instant("TOUR_MAIN__MESSAGE"),curtainClass:"myCurtainClass"}])),b.license.jscripty&&(f.isAdmin()||b.userModules[50])&&(b.tourConfig.main=b.tourConfig.main.concat([{type:"location_change",path:"/jscripty/projects/list"},{type:"title",heading:c.instant("TOUR_MAIN_JSCRIPTY"),text:c.instant("TOUR_MAIN_JSCRIPTY_MESSAGE"),curtainClass:"myCurtainClass"}])),(f.isAdmin()||b.userModules[17])&&(b.tourConfig.main=b.tourConfig.main.concat([{type:"location_change",path:"/analytics/reports/list"},{type:"title",heading:c.instant("TOUR_MAIN_REPORTS"),text:c.instant("TOUR_MAIN_REPORTS_MESSAGE"),curtainClass:"myCurtainClass"}])),b.tourConfig.main=b.tourConfig.main.concat([{type:"title",heading:c.instant("TOUR_MAIN_END"),text:c.instant("TOUR_MAIN_END_MESSAGE"),curtainClass:"myCurtainClass"}]),n.get("skipTour")||(b.activeTour.main=!0)}a.awesomeThings=[],b.workspaces=[],a.Auth=f,b.userModules={},a.keepMeLoggedModalInstance=void 0,a.agentLogout=function(a,b){var d=h.open({animation:!0,templateUrl:"app/channels/realtime/view/agent/agent.modal.logout.html",controller:"RealtimeViewAgentLogoutModalCtrl",resolve:{name:function(){return a}}});d.result.then(function(){return q.get({controller:"logout",controller2:"agent",param:b}).$promise.then(function(){g.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){console.error(a)})},function(){i.info("Modal dismissed at: "+new Date)})},b.initTours=function(){return f.isAdmin()||b.userModules[2]?o.get().$promise.then(function(a){var b={};b[f.getRole()]=!0,s(_.find(a.rows,b))})["catch"](function(a){console.log(a)}):void s()},b.onTourFinish=function(){n.set("skipTour",!0),b.tempTourPath&&m.path(b.tempTourPath)},b.onTourSkip=function(){n.set("skipTour",!0)},a.select=function(a){switch(a.type){case"chatRoom":case"mailRoom":case"faxRoom":a.unread=0}},e.socket.on("agent:save",function(c){!c.online&&f.isAgent()&&(a.keepMeLoggedModalInstance||(a.keepMeLoggedModalInstance=h.open({animation:!0,backdrop:"static",keyboard:!1,templateUrl:"app/main/keepMeLogged.modal.html",controller:["$scope","$uibModalInstance",function(a,b){a.close=function(){b.close(!0)},a.cancel=function(){b.close(!1)}}]}),a.keepMeLoggedModalInstance.result.then(function(a){a?(b.settings.logoutOnWindowClose=!1,l.location.reload()):(f.logout(),m.path("/login"))})))}),a.openTdTab=function(a){b.workspaces.push({type:"tdDisposal",name:"Motion Dialer Disposition","class":"icon-control-forward",active:!0,spooler:a})},a.deselect=function(){},l.onbeforeunload=function(){if(f.isAgent()&&b.settings.logoutOnWindowClose){var a=new XMLHttpRequest;a.open("GET","/auth/local/logout",!1),a.setRequestHeader("Content-type","application/json"),a.setRequestHeader("Authorization","Bearer "+r.get("token")),a.send(),f.logout()}return null},a.isAdmin=f.isAdmin,a.isLoggedIn=f.isLoggedIn,a.getCurrentUser=f.getCurrentUser,a.CurrentUser=f.getCurrentUser(),e.socket.on("user_has_voice_queue_permit:change",function(){a.CurrentUser=f.getCurrentUser()}),e.socket.on("user_has_chat_queue_permit:change",function(){a.CurrentUser=f.getCurrentUser()}),e.socket.on("user_has_mail_queue_permit:change",function(){a.CurrentUser=f.getCurrentUser()}),e.socket.on("user_has_fax_queue_permit:change",function(){a.CurrentUser=f.getCurrentUser()}),e.socket.on("user_has_sms_queue_permit:change",function(){a.CurrentUser=f.getCurrentUser()}),a.mainTab={active:!0},a.closeJscriptyTab=function(a){if(b.workspaces[a].edited){var c=h.open({animation:!0,templateUrl:"app/main/closeEditedTab.modal.jscripty.html",controller:"CloseEditedTabModalJscriptyCtrl",resolve:{project:b.workspaces[a]}});c.result.then(function(){b.workspaces.splice(a,1)})}else b.workspaces.splice(a,1)},b.closeTab=function(a){var c;b.workspaces[a].edited?"jscripty"===b.workspaces[a].type?b.workspaces[a].end():(c=h.open({animation:!0,templateUrl:"app/main/closeEditedTab.modal.html",controller:"CloseEditedTabModalCtrl"}),c.result.then(function(){b.workspaces.splice(a,1)},function(){i.info("Modal dismissed at: "+new Date)})):b.workspaces.splice(a,1)},a.createContact=function(d,e,f){var h=_.clone(e);return h.CompanyId||delete h.CompanyId,h.dateOfBirth&&(h.dateOfBirth=moment(h.dateOfBirth).format("DD/MM/YYYY")),k.save(h).$promise.then(function(e){b.workspaces.splice(d,1);var h=e.firstName;e.lastName&&(h+=" "+e.lastName),a.openContactTab({firstName:e.firstName,lastName:e.lastName,id:e.id},f),g.show(c.instant("MESSAGE_WELL_DONE")+"!","success")})["catch"](function(a){g.error(a)})};var t=function(b){var c=h.open({animation:!0,templateUrl:"app/main/chooseContact.modal.html",controller:"ChooseContactModalCtrl",resolve:{data:function(){return b}}});c.result.then(function(c){c?a.openContactTab(c,b):a.newContact(b)},function(){i.info("Modal dismissed at: "+new Date)})};a.updateContact=function(a,d){var e=angular.copy(d);return e.CompanyId||(e.CompanyId=null),e.dateOfBirth&&(e.dateOfBirth=moment(e.dateOfBirth).format("DD/MM/YYYY")),k.update({id:e.id},e).$promise.then(function(){b.workspaces[a].edited=!1,g.show(c.instant("MESSAGE_WELL_DONE")+"!","success")})["catch"](function(a){g.error(a)})},e.socket.on("report_integration:contactmanager",function(a){t(a)}),e.socket.on("report_integration:webPopup",function(a){"motion"===a.type?b.workspaces.push({type:"webPopup",name:"Web Popup","class":"icon-info",active:!0,data:a}):l.open(a.url||"","_blank")}),e.socket.on("report_integration:jscripty",function(b){a.openJscriptyTab({name:"Jscripty",id:b.projectId,calleridnum:b.calleridnum,calleridname:b.calleridname,queue:b.queue,membername:b.membername})}),e.socket.on("report_integration:sugarcrm",function(a){l.open(a.url,"_blank")}),e.socket.on("report_integration:freshdesk",function(a){l.open(a.url,"_blank")}),e.socket.on("report_integration:zendesk",function(a){l.open(a.url,"_blank")}),e.socket.on("report_integration:salesforce",function(a){console.log("data",a,f.getCurrentUser()),"classic"===a.integrationType&&a.membername===f.getCurrentUser().name&&l.open(a.url,"_blank")}),e.socket.on("report_integration:tdDisposal",function(b){a.openTdTab(b)}),b.openContactTab=function(a,c){var d=_.find(b.workspaces,{contactID:a.id});if(d)d.active=!0,d.data=c,d.synchCall();else{var e=a.firstName;a.lastName&&(e+=" "+a.lastName),b.workspaces.push({name:e,type:"contact",contactID:a.id,"class":"icon-user",active:!0,data:c||null})}},a.openJscriptyTab=function(a){b.workspaces.push({name:a.name,type:"jscripty",active:!0,data:a})},a.newContact=function(a){b.workspaces.push({name:"New Contact",type:"newContact","class":"icon-user",active:!0,data:a||null})},a.$on("$viewContentLoaded",function(){Metronic.init()}),b.language=c.use(),a.changeLanguage=function(a){return c.use(a).then(function(a){b.language=a,-1!==["main.jscripty.projects.view","main.square.projects.view"].indexOf(j.current.name)&&l.location.reload()})["catch"](function(a){console.error(a)})},d(function(){p.get({id:1}).$promise.then(function(c){"admin"===a.CurrentUser.role&&c.firstLogin?m.path("/adminreset"):f.getCurrentUser().$promise.then(function(a){a.Modules.forEach(function(a){b.userModules[a.id]=!0}),b.initTours()})["catch"](function(a){g.error(a)})})["catch"](function(a){g.error(a)})}),a.$on("$destroy",function(){e.unsyncUpdates("user_has_voice_queue_permit"),e.unsyncUpdates("user_has_chat_queue_permit"),e.unsyncUpdates("user_has_mail_queue_permit"),e.unsyncUpdates("user_has_fax_queue_permit"),e.unsyncUpdates("user_has_sms_queue_permit")})}]),angular.module("xCallyShuttleApp").directive("ngSpinnerBar",["$rootScope",function(a){return{link:function(b,c){c.addClass("hide"),a.$on("$stateChangeStart",function(){"spinner-page"===c[0].id&&c.removeClass("hide")}),a.$on("$stateChangeSuccess",function(){"spinner-page"===c[0].id&&(c.addClass("hide"),$("body").removeClass("page-on-load"),Layout.setSidebarMenuActiveLink("match"),setTimeout(function(){Metronic.scrollTop()},1e3))}),a.$on("$spinnerStart",function(){"spinner-request"===c[0].id&&c.removeClass("hide")}),a.$on("$spinnerStop",function(){"spinner-request"===c[0].id&&c.addClass("hide")}),a.$on("$stateNotFound",function(){"spinner-page"===c[0].id&&c.addClass("hide")}),a.$on("$stateChangeError",function(){"spinner-page"===c[0].id&&c.addClass("hide")})}}}]).directive("a",function(){return{restrict:"E",link:function(a,b,c){(c.ngClick||""===c.href||"#"===c.href)&&b.on("click",function(a){a.preventDefault()})}}}).directive("nxEqual",function(){return{require:"ngModel",link:function(a,b,c,d){return c.nxEqual?(a.$watch(c.nxEqual,function(a){d.$setValidity("nxEqual",a===d.$viewValue)}),void d.$parsers.push(function(b){var e=b===a.$eval(c.nxEqual);return d.$setValidity("nxEqual",e),e?b:void 0})):void console.error("nxEqual expects a model as an argument!")}}}).directive("ngEnter",function(){return function(a,b,c){b.bind("keydown keypress",function(b){13===b.which&&(a.$apply(function(){a.$eval(c.ngEnter)}),b.preventDefault())})}}).directive("dropdownMenuHover",function(){return{link:function(a,b){b.dropdownHover()}}}).directive("uiSelectRequired",function(){return{require:"ngModel",link:function(a,b,c,d){d.$validators.uiSelectRequired=function(a){return a&&a.length}}}}).directive("rpattern",function(){return{restrict:"A",require:"ngModel",link:function(a,b,c,d){function e(a,b){return null==b||""===b||!h||a.test(b)?(d.$setValidity("pattern",!0),b):void d.$setValidity("pattern",!1)}var f,g=c.rpattern,h=!0;g&&(g.match(/^\/(.*)\/$/)?(g=new RegExp(g.substr(1,g.length-2)),f=function(a){return e(g,a)}):f=function(b){var c=a.$eval(g);if(!c||!c.test)throw new Error("Expected "+g+" to be a RegExp but was "+c);return e(c,b)}),d.$formatters.push(f),d.$parsers.push(f),c.$observe("required",function(a){h=a,f(d.$viewValue)})}}}).directive("newContact",["$compile","xAlert","socket","$translate","$timeout","List","Tag","Company","ReportCall","$uibModal","$rootScope","Auth",function(a,b,c,d,e,f,g,h,i,j,k,l){return{restrict:"E",scope:{workspace:"=",index:"=",submit:"&onSubmit"},templateUrl:"app/main/template/template.contactTab.html",compile:function(a,m){return function(a,m,n){function o(){a.$watch("contact",function(b,c){angular.equals(b,c)||(a.workspace.edited=!0)},!0)}a.license=k.license,a.Auth=l,a.firstLoad=!0,a.detail={tab:"main"},a.contact={CompanyId:"",disposed:!1},a.submitButtonLabel=d.instant("APPLICATION_CONFIRM"),a.getAgent=function(){return l.getCurrentUser().$promise.then(function(b){a.agent=b})["catch"](function(a){b.error(a)})},a.companyInfo=function(b){j.open({animation:!0,size:"lg",templateUrl:"app/main/company.info.modal.html",controller:["$scope","$uibModalInstance","company",function(a,b,c){a.company=c,a.close=function(){b.dismiss("cancel")}}],resolve:{company:_.find(a.companies,{id:b})}})},a.callPhoneBar=function(c,e){var f;switch(e){case"call":f="http://127.0.0.1:"+a.agent.phoneBarRemoteControlPort+"/api/originate/"+c;break;case"transfer":f="http://127.0.0.1:"+a.agent.phoneBarRemoteControlPort+"/api/transfer?number="+c;break;default:f="http://127.0.0.1:"+a.agent.phoneBarRemoteControlPort+"/api/originate/"+c}return $http.get(f).success(function(){b.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){console.error(a),b.error({message:d.instant("MESSAGE_UNABLE_TO_CONTACT_PHONEBAR")})})},a.dispose=function(){return j.open({animation:!0,templateUrl:"app/main/cm.disposition.modal.html",controller:"ContactManagerSetDisposition"}).result.then(function(c){return i.update({id:a.workspace.data.uniqueid},c).$promise.then(function(){a.contact.disposed=!0,a.workspace.data.agentDisposition=c.agentDisposition,b.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){b.error(a)})})},a.init=function(){if(a.getTags(),a.getCompanies(),a.getLists(),a.getAgent(),a.workspace.data){if(a.enableDisposal=!1,"queue"===a.workspace.data.subtypeChannel?(a.contact.firstName=a.workspace.data.calleridname?a.workspace.data.calleridname:a.workspace.data.messageId?a.workspace.data.messageId:a.workspace.data.uniqueid?a.workspace.data.uniqueid:"",a.workspace.data.calleridnum&&(a.contact.phone=a.workspace.data.calleridnum)):(a.contact.firstName=a.workspace.data.destcalleridname?a.workspace.data.destcalleridname:a.workspace.data.messageId?a.workspace.data.messageId:a.workspace.data.uniqueid?a.workspace.data.uniqueid:"",a.workspace.data.destcalleridnum&&(a.contact.phone=a.workspace.data.destcalleridnum)),a.workspace.data.from&&(a.contact.email=a.workspace.data.from),a.workspace.data.uniqueid)return i.get({id:a.workspace.data.uniqueid}).$promise.then(function(){a.enableDisposal=!0})["catch"](function(){c.socket.on("report_call:save",function(b){b.uniqueid===a.workspace.data.uniqueid&&(a.enableDisposal=!0)})});a.workspace.data.CompanyId&&(a.contact.CompanyId=a.workspace.data.CompanyId)}},a.openRoom=function(a,b,c){var d=_.find(k.workspaces,{id:a,type:b});if(d)d.active=!0;else{var e;switch(b){case"mailRoom":e="icon-envelope";break;case"chatRoom":e="fa fa-users";break;case"faxRoom":e="fa fa-fax";break;case"smsRoom":e="glyphicon glyphicon-comment"}k.workspaces.push({id:a,type:b,"class":e,active:!0,data:c})}},a.getLists=function(){return f.get().$promise.then(function(b){if(a.lists=b.rows,c.syncUpdates("list",a.lists),a.workspace.data&&a.workspace.data.ListId&&_.find(a.lists,{id:a.workspace.data.ListId}))a.contact.ListId=a.workspace.data.ListId;else{var d=_.find(a.lists,{defaultEntry:!0});a.contact.ListId=d?d.id:a.lists[0]?a.lists[0].id:null}a.getCustomFields()})["catch"](function(a){b.error(a)})},a.getCustomFields=function(){return f.get({listId:a.contact.ListId,controller:"customfields",id:"all"}).$promise.then(function(b){a.customFields=[],b.rows.forEach(function(b){try{"select"===b.type&&(b.values=JSON.parse(b.values)),a.customFields.push(b)}catch(c){console.log("Cf not valid:",b.alias)}}),!a.firstLoad||a.workspace.data?(a.workspace.edited=!0,a.firstLoad=!1):(a.firstLoad=!1,o())})["catch"](function(a){console.error(a),b.error(a)})},a.getTags=function(){return g.get().$promise.then(function(b){a.tags=_.map(b.rows,"name")})["catch"](function(a){console.error(a),b.error(a)})},a.getCompanies=function(){return h.get().$promise.then(function(b){a.companies=b.rows,a.companies.unshift({id:"",name:"-- None --"}),c.syncUpdates("company",a.companies)})["catch"](function(a){console.error(a),b.error(a)})},e(function(){a.init()})}}}}]).directive("contact",["$compile","xAlert","socket","$timeout","List","Tag","Company","Contact","$translate","gridOptions","$uibModal","ReportCall","$rootScope","usSpinnerService","uiGridConstants","$log","Auth","$http",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){return{restrict:"E",scope:{workspace:"=",index:"=",submit:"&onSubmit"},templateUrl:"app/main/template/template.contactTab.html",compile:function(a,j){return function(a,j,s){function t(b){var c=[],d={};_.forEach(a.columns[a.log[b].show][a.log[b].detail].indexes,function(e,f){d={name:e,displayName:a.columns[a.log[b].show][a.log[b].detail].header[f],headerCellFilter:"translate",enableSorting:!1,enableColumnMenu:!1},"createdAt"===e&&(d.cellTemplate="<div class=\"centered-uigrid-td\">{{row.entity.createdAt | date:'dd/MM/yyyy HH:mm:ss'}}</div>",d.filterHeaderTemplate='<div class="ui-grid-filter-container row"><div ng-repeat="colFilter in col.filters" class="col-md-6 col-md-offset-0 col-sm-5 col-sm-offset-0 col-xs-5 col-xs-offset-0"><div custom-grid-date-filter-header></div></div></div>',d.filters=[{name:"From",condition:o.filter.GREATER_THAN_OR_EQUAL},{name:"To",condition:o.filter.LESS_THAN_OR_EQUAL}]),c.push(d)}),a.columns[a.log[b].show][a.log[b].detail].actions&&c.push(a.columns[a.log[b].show][a.log[b].detail].actions),c.forEach(function(a){u(a,b,!0),a.hasOwnProperty("displayName")||(a.displayName="APPLICATION_"+a.name.toUpperCase()),a.headerCellFilter="translate",a.hasOwnProperty("buttons")&&(a.displayName="",a.cellClass="ui-grid-vcenter",a.enableSorting=!1,a.enableFiltering=!1,a.enableColumnMenu=!1,a.cellTemplate="<div>",a.buttons.forEach(function(b){if(b.directive)a.cellTemplate+=b.directive;else{if(a.cellTemplate+="<a",a.cellTemplate+=b.hide?' data-ng-hide="'+b.hide+'" ':" ",a.cellTemplate+=b["class"]?' class="btn btn-xs '+b["class"]+'" ':" ",a.cellTemplate+=b.href?' data-ng-href="'+b.href+'" ':" ",a.cellTemplate+=b.uisref?' ui-sref="'+b.uisref+'" ':" ",a.cellTemplate+=b.onClick?' data-ng-click="'+b.onClick+'" ':" ",a.cellTemplate+=b.title?' title="'+b.title+'"':"",a.cellTemplate+=">",a.cellTemplate+=b.icon?'<i class="'+b.icon+'"></i>':"",b.name)switch(b.name){case"delete":a.cellTemplate+='<i class="fa fa-trash"></i>';break;case"profile":case"settings":case"detail":case"embedding":a.cellTemplate+='<i class="icon-settings"></i>';break;case"agents":a.cellTemplate+='<i class="icon-people"></i>';break;case"run":a.cellTemplate+='<i class="fa fa-cogs"></i>';break;case"mailRoom":a.cellTemplate+='<i class="fa fa-envelope"></i>';break;case"chatRoom":a.cellTemplate+='<i class="fa fa-users"></i>';break;case"faxRoom":a.cellTemplate+='<i class="fa fa-fax"></i>';break;case"smsRoom":a.cellTemplate+='<i class="glyphicon glyphicon-comment"></i>';break;default:a.cellTemplate+="{{'APPLICATION_"+b.name.toUpperCase()+"' | translate}}"}else a.cellTemplate+=b.displayName?"{{'"+b.displayName+"' | translate}}":"";a.cellTemplate+="</a> "}}),a.cellTemplate+="<div>",delete a.buttons)});var e={enablePaginationControls:!0,exporterCsvFilename:b+".csv",columnDefs:c,enableGridMenu:!0,headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,showGridFooter:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,useExternalPagination:!0,useExternalSorting:!0,useExternalFiltering:!0,showTreeExpandNoChildren:!0,data:[],gridMenuTitleFilter:function(a){var b=$q.defer();return b.resolve(i.instant(a)),b.promise},onRegisterApi:function(c){a.gridApi=c,a.gridApi.grid.registerDataChangeCallback(function(){}),a.gridApi.core.on.sortChanged(a,function(a,c){0===c.length?w.order=null:w.order=c[0].name+" "+c[0].sort.direction.toUpperCase(),x(b)}),a.gridApi.pagination.on.paginationChanged(a,function(a,c){w.offset=(a-1)*c,w.limit=c,x(b)}),a.gridApi.core.on.filterChanged(a,function(){var a=this.grid;a.columns.forEach(function(a){u(a,b)}),x(b)})}};x(b,e)}function u(a,b,c){a.filter&&a.filter.term&&c&&(w[b][a.name]=a.filter.term),a.filters&&(a.filters.length>1?a.filters.forEach(function(c){c.term?64===c.condition?w[b][a.name+"_uiFrom"]=c.term:256===c.condition&&(w[b][a.name+"_uiTo"]=c.term):64===c.condition?delete w[b][a.name+"_uiFrom"]:256===c.condition&&delete w[b][a.name+"_uiTo"]}):a.filters.length&&a.filters[0].term?w[b][a.name]=a.filters[0].term:delete w[b][a.name])}function v(){a.$watch("contact",function(b,c){b.disposed!==c.disposed||angular.equals(b,c)||(a.workspace.edited=!0)},!0)}a.moment=moment,a.license=m.license,a.detail={tab:"main"},a.log={daily:{show:"phone",type:"inbound",detail:"general"},history:{show:"phone",type:"inbound",detail:"general"}},a.columns={phone:{general:{header:["APPLICATION_SOURCE","APPLICATION_DESTINATION","APPLICATION_CALL_STATUS","APPLICATION_DISPOSITION","APPLICATION_DATE"],indexes:["source","destination","disposition","agentDisposition","createdAt"]},queue:{header:["APPLICATION_CALLERID","APPLICATION_QUEUE","APPLICATION_DATE"],indexes:["calleridnum","queue","createdAt"]}},email:{general:{header:["APPLICATION_FROM","APPLICATION_TO","APPLICATION_SUBJECT","APPLICATION_DISPOSITION","APPLICATION_DATE"],indexes:["from","account","subject","disposition","createdAt"],actions:{name:"action",displayName:"",width:40,buttons:[{"class":"green",name:"mailRoom",onClick:"grid.appScope.openRoom(row.entity.id, 'mailRoom')"}]}}},chat:{general:{header:["APPLICATION_WEBSITE","APPLICATION_VISITOR","APPLICATION_DISPOSITION","APPLICATION_DATE"],indexes:["website","contact","disposition","createdAt"],actions:{name:"action",displayName:"",width:40,buttons:[{"class":"green",name:"chatRoom",onClick:"grid.appScope.openRoom(row.entity.id, 'chatRoom')"}]}}},fax:{general:{header:["APPLICATION_FROM","APPLICATION_TO","APPLICATION_DISPOSITION","APPLICATION_DATE"],indexes:["contact","account","disposition","createdAt"],actions:{name:"action",displayName:"",width:40,buttons:[{"class":"green",name:"faxRoom",onClick:"grid.appScope.openRoom(row.entity.id, 'faxRoom')"}]}}},sms:{general:{header:["APPLICATION_ACCOUNT","APPLICATION_FROM","APPLICATION_DISPOSITION","APPLICATION_DATE"],indexes:["account","contact","disposition","createdAt"],actions:{name:"action",displayName:"",width:40,buttons:[{"class":"green",name:"smsRoom",onClick:"grid.appScope.openRoom(row.entity.id, 'smsRoom')"}]}}}},a.Auth=q,a.getAgent=function(){return q.getCurrentUser().$promise.then(function(b){a.agent=b})["catch"](function(a){b.error(a)})},a.getLists=function(){return e.get().$promise.then(function(b){a.lists=b.rows,c.syncUpdates("list",a.lists)})["catch"](function(a){b.error(a)})},a.callPhoneBar=function(c,d){var e;switch(d){case"call":e="http://127.0.0.1:"+a.agent.phoneBarRemoteControlPort+"/api/originate/"+c;break;case"transfer":e="http://127.0.0.1:"+a.agent.phoneBarRemoteControlPort+"/api/transfer?number="+c;break;default:e="http://127.0.0.1:"+a.agent.phoneBarRemoteControlPort+"/api/originate/"+c}return r.get(e).success(function(){b.show(i.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){console.error(a),b.error({message:i.instant("MESSAGE_UNABLE_TO_CONTACT_PHONEBAR")})})},a.copy=function(a){var c=k.open({animation:!0,size:"small",templateUrl:"app/contactmanager/contact/list/copy.modal.html",controller:"ContactManagerListCopyModalCtrl"});c.result.then(function(c){return h.save({id:a,controller:"copy"},c).$promise.then(function(a){m.openContactTab({firstName:a.firstName,lastName:a.lastName,id:a.id})})["catch"](function(a){b.error(a)})},function(){p.info("Modal dismissed at: "+new Date)})},a.merge=function(c){var d=k.open({animation:!0,size:"lg",templateUrl:"app/main/mergeContact.choose.modal.html",controller:"ContactManagerMergeContactChoose",resolve:{listId:c.ListId,mergecontact:c.id}});d.result.then(function(d){var e=k.open({animation:!0,size:"lg",templateUrl:"app/main/mergeContact.merge.modal.html",controller:"ContactManagerMergeContactMerge",resolve:{contactId:d,mergeContact:c}});e.result.then(function(e){return e.oldContact=c.id,h.save({id:d,controller:"merge"},e).$promise.then(function(b){m.workspaces.splice(a.index,1),_.remove(m.workspaces,{contactID:b.id}),m.openContactTab({firstName:b.firstName,lastName:b.lastName,id:b.id})})["catch"](function(a){b.error(a)})},function(){p.info("Modal dismissed at: "+new Date)})},function(){p.info("Modal dismissed at: "+new Date)})},a.dispose=function(){return k.open({animation:!0,templateUrl:"app/main/cm.disposition.modal.html",controller:"ContactManagerSetDisposition"}).result.then(function(c){return c.contactId=a.contact.id,l.update({id:a.workspace.data.uniqueid},c).$promise.then(function(){a.contact.disposed=!0,b.show(i.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){b.error(a)})})},a.companyInfo=function(b){k.open({animation:!0,size:"lg",templateUrl:"app/main/company.info.modal.html",controller:["$scope","$uibModalInstance","company",function(a,b,c){a.company=c,a.close=function(){b.dismiss("cancel")}}],resolve:{company:_.find(a.companies,{id:b})}})},a.updateLog=function(b,c,d,e){c&&(a.log[b].show=c),d&&(a.log[b].detail=d),e&&(a.log[b].type=e),t(b)},a.openRoom=function(a,b,c){var d=_.find(m.workspaces,{id:a,type:b});if(d)d.active=!0;else{var e;switch(b){case"mailRoom":e="icon-envelope";break;case"chatRoom":e="fa fa-users";break;case"faxRoom":e="fa fa-fax";break;case"smsRoom":e="glyphicon glyphicon-comment"}m.workspaces.push({id:a,type:b,"class":e,active:!0,data:c})}};var w={daily:{offset:0,limit:10},history:{offset:0,limit:10}},x=function(b,c){return n.spin("spinner-grid"),h.get(_.merge(_.merge({id:a.workspace.contactID,controller:"log",logType:b,order:"createdAt DESC"},a.log[b]),w[b])).$promise.then(function(d){c&&(a["gridOptions"+b]=c),a["gridOptions"+b].totalItems=d.count,a["gridOptions"+b].data=d.rows,y("gridOptions"+b,d.rows.length)})["catch"](function(a){console.error(a)})["finally"](function(){n.stop("spinner-grid")})},y=function(a,b){var c=b?30*b+120:177;angular.element(document.getElementsByName(a)[0]).css("height",c+"px")};a.getContact=function(){return h.get({id:a.workspace.contactID}).$promise.then(function(b){b.dateOfBirth&&(b.dateOfBirth=moment(b.dateOfBirth,"DD/MM/YYYY").toDate()),b.CompanyId||(b.CompanyId=""),a.contact=b,a.getCustomFields(b.ListId),v(),a.updateLog("daily"),a.updateLog("history")}).then(function(){a.workspace.data&&a.workspace.synchCall()})["catch"](function(a){console.error(a),b.error(a)})},a.getTags=function(){return f.get().$promise.then(function(b){a.tags=_.map(b.rows,"name")})["catch"](function(a){console.error(a),b.error(a)})},a.getCompanies=function(){return g.get().$promise.then(function(b){a.companies=b.rows,a.companies.unshift({id:"",name:"-- None --"}),c.syncUpdates("company",a.companies)})["catch"](function(a){console.error(a),b.error(a)})},a.getCustomFields=function(c){return a.customFields=[],e.get({listId:c,controller:"customfields",id:"all"}).$promise.then(function(b){b.rows.forEach(function(b){try{"select"===b.type&&(b.values=JSON.parse(b.values)),a.customFields.push(b)}catch(c){console.log("Cf not valid:",b.alias)}})})["catch"](function(a){console.error(a),b.error(a)})},a.workspace.synchCall=function(){return a.contact.disposed=!1,a.enableDisposal=!1,a.workspace.data&&a.workspace.data.uniqueid?a.workspace.data.agentDisposition?(a.contact.disposed=!0,l.update({id:a.workspace.data.uniqueid},{contactId:a.contact.id}).$promise.then(function(){console.log("contactId updated")})["catch"](function(a){b.error(a)})):l.get({id:a.workspace.data.uniqueid}).$promise.then(function(){a.enableDisposal=!0})["catch"](function(){c.socket.on("report_call:save",function(b){b.uniqueid===a.workspace.data.uniqueid&&(a.enableDisposal=!0)})}):void(a.contact.disposed=!0)},d(function(){a.getTags(),a.getCompanies(),a.getLists(),a.getContact(),a.getAgent()})}}}}]).directive("jscripty",["$compile","xAlert","$http","socket","JscriptyProject",function(a,b,c,d,e){return{restrict:"E",scope:{workspace:"=",index:"=",submit:"&onSubmit"},templateUrl:"app/main/template/template.jscriptyTab.html",compile:function(a,d){return function(a,d,f){a.count=0,a.questions=[];var g,h=a.workspace.data.id;c.get("/api/jscripty/projects/"+h+"/download").success(function(b){b?c.post("/api/jscripty/projects/"+h+"/sessions",{projectId:h,status:"started",queue:a.workspace.data.queue,calleridnum:a.workspace.data.calleridnum,callername:a.workspace.data.callername,membername:a.workspace.data.membername}).success(function(c){g=c.session_id,a.workspace.edited=!0,a.workspace.sessionId=g,a.workspace.projectId=h;var d=mxUtils.parseXml(b),e=new mxCodec(d);a.decObj=e.decode(d.documentElement);var f=_.find(a.decObj.cells,function(a){return a.vertex&&"start"==a.value.nodeName});if("OFF"==f.getAttribute("state")){var j=_.find(f.edges,function(a){ +return a.source.id==f.id}).target;a.questions[a.count]=a.currentQuestion=i(j)}else a.questions[a.count]=a.currentQuestion=f;a.saveQuestions()}):(console.log("No project published!"),alert("No project published!"),a.submit({index:a.index}))}),a.next=function(b,c){switch(a.currentQuestion.answer&&a.currentQuestion.answer!=c&&(a.questions=_.take(a.questions,a.count+1)),a.currentQuestion.answer=c,b.value.nodeName){case"question":b=i(b)}a.questions[a.count]=a.currentQuestion,a.currentQuestion=b,a.count++,a.questions[a.count]=b,a.saveQuestions()};var i=function(a){var b=[];return a.options=[],_.forEach(a.edges,function(c,d){if(c.source.id==a.id&&c.value){var e=String(c.value).split(",");e.length>1?(_.forEach(e,function(b,d){var e=Object.create(c);e.setValue(b),a.edges.push(e),a.options.push(b)}),b.push(c)):a.options.push(e[0])}}),_.forEach(b,function(b){_.remove(a.edges,function(a){return a.value==b.value&&a.id==b.id})}),a};a.end=function(){a.saveQuestions(),a.workspace.lastQuestionId=a.questions[a.questions.length-1].id,"end"==a.questions[a.questions.length-1].value.nodeName&&(a.workspace.edited=!1,e.update({id:h,controller:"sessions",action:g},{status:"completed",completedAt:Date(),last_question_id:a.questions[a.questions.length-1].id}).$promise.then(function(a){b.show("Project Ended","success")})),a.submit({index:a.index})},a.workspace.end=a.end,a.back=function(){a.count--,a.currentQuestion=a.questions[a.count]},a.setCurrentQuestion=function(b){a.count=b,a.currentQuestion=a.questions[a.count]},a.saveQuestions=function(){for(var c=[],d=[],f=0;f<a.questions.length;f++){if(a.questions[f].children)for(var i=a.questions[f].children,j=0;j<i.length;j++)d[j]={input_id:i[j].id,input_type:i[j].getAttribute("type"),input_label:i[j].getAttribute("label"),input_value:"checkbox"!=i[j].getAttribute("type")||i[j].answer?i[j].answer:!1};c[f]={sessionId:g,projectId:h,question_id:a.questions[f].id,question_type:a.questions[f].value.nodeName,question_label:a.questions[f].getAttribute("label"),question_text:a.questions[f].getAttribute("question")||a.questions[f].getAttribute("text"),question_other_label:a.questions[f].getAttribute("other"),question_other_answer:a.questions[f].otheranswer,question_answer:a.questions[f].answer,question_options:a.questions[f].options?JSON.stringify({options:a.questions[f].options}):null,index:f,ReportJscriptyInputs:d},d=[]}e.save({id:h,controller:"sessions",action:g,action2:"questions"},c).$promise.then(function(a){})["catch"](function(a){b.error(a)})}}}}}]).directive("reportBuilder",["$compile",function(a){return{restrict:"E",scope:{group:"=",fields:"=",forms:"=",firstCall:"="},templateUrl:"app/main/template/template.reportBuilderView.html",compile:function(b,c){var d,e;return d=b.contents().remove(),function(b,c,f){b.operators=[{name:"AND"},{name:"OR"}],b.conditions=[{name:"="},{name:"!="},{name:"<"},{name:"<="},{name:">"},{name:">="},{name:"LIKE"},{name:"NOT LIKE"},{name:"IS NULL"},{name:"IS NOT NULL"},{name:"IS EMPTY"},{name:"IS NOT EMPTY"}],b.inputIsRequired=function(a){if(a.condition)switch(a.condition){case"IS NULL":case"IS NOT NULL":case"IS EMPTY":case"IS NOT EMPTY":a.required=!1;break;default:a.required=!0}},b.addCondition=function(){b.group.rules.push({condition:"=",field:"",value:""})},b.removeCondition=function(a){b.group.rules.splice(a,1)},b.addGroup=function(){b.group.rules.push({group:{operator:"AND",rules:[{condition:"=",field:"",value:""}]}})},b.randomName=function(a,b){var c=[];for(a=a||5,b=b||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--a;)c.push(b.charAt(Math.floor(Math.random()*b.length)));return c.join("")},b.removeGroup=function(){b.$parent.group&&b.$parent.group.rules.splice(b.$parent.$index,1)},e||(e=a(d)),c.append(e(b,function(a){return a}))}}}}]).directive("dynamicName",["$compile",function(a){return{restrict:"A",terminal:!0,priority:1e3,link:function(b,c,d){c.attr("name",b.$eval(d.dynamicName)),c.removeAttr("dynamic-name"),a(c)(b)}}}]).directive("onReadFile",["$parse",function(a){return{restrict:"A",scope:!1,link:function(b,c,d){var e=a(d.onReadFile);c.on("change",function(a){var c=new FileReader;c.onload=function(a){b.$apply(function(){e(b,{$fileContent:a.target.result})})},c.readAsText((a.srcElement||a.target).files[0])})}}}]).directive("motionFileDownload",["xAlert","$translate","$timeout","$location","FileSaver","$compile",function(a,b,c,d,e,f){return{restrict:"E",template:'<a uib-tooltip=\'{{tooltiptext}}\' class="{{btnclass || \'btn default btn-xs blue-hoki\'}}" href="" data-ng-click="download()" ><i class="icon-cloud-download"></i>{{btncontent || \'\'}}</a>',scope:{mimetype:"=",filename:"=",resource:"=",params:"=",btnclass:"@",btncontent:"@",tooltiptext:"@"},link:function(b,c,d){var f=c.children()[0];b.$on("download-start",function(){$(f).attr("disabled","disabled")}),b.$on("downloaded",function(a,c){var d=base64ToBlob(c,b.mimetype);e.saveAs(d,b.filename),$(f).attr("disabled",!1)}),b.download=function(){return b.$emit("download-start"),b.resource.get(b.params).$promise.then(function(a){b.$emit("downloaded",a.downloadString)})["catch"](function(b){a.error(b),$(f).attr("disabled",!1)})}}}}]).directive("audioFileDownload",["xAlert","$translate","$uibModal",function(a,b,c){return{restrict:"E",template:'<button type="button" class="btn default btn-xs blue-hoki" data-ng-click="download()"><i class="fa fa-play"></i> {{ \'APPLICATION_PREVIEW\' | translate}}</button>',scope:{resource:"=",params:"="},link:function(b,d,e){var f=d.children()[0];b.$on("download-start",function(a,c){b.tempHtml=$(f).html(),$(f).attr("disabled","disabled").html('<i class="icon-refresh"></i> Loading...')}),b.$on("downloaded",function(a,d){c.open({animation:!0,size:"small",templateUrl:"app/main/audioFileDownload.play.modal.html",controller:["$scope","$uibModalInstance","$sce","audio",function(a,b,c,d){a.audio=c.trustAsResourceUrl("data:audio/wav;base64,"+d.data),a.close=function(){b.dismiss("cancel")}}],resolve:{audio:function(){return{data:d}}}});$(f).html(b.tempHtml).attr("disabled",!1)}),b.$on("error",function(a,c){$(f).html(b.tempHtml).attr("disabled",!1)}),b.download=function(){return b.$emit("download-start"),b.resource.get(b.params).$promise.then(function(a){b.$emit("downloaded",a.downloadString)})["catch"](function(c){a.error(c),b.$emit("error")})}}}}]).directive("uiRequired",function(){return{require:"ngModel",link:function(a,b,c,d){d.$validators.required=function(a,b){return!(b&&0===b.length&&"true"===c.uiRequired)},c.$observe("uiRequired",function(){d.$setValidity("required",!("true"===c.uiRequired&&d.$viewValue&&0===d.$viewValue.length))})}}}).directive("schrollBottom",function(){return{scope:{schrollBottom:"="},link:function(a,b){a.$watchCollection("schrollBottom",function(a){a&&$(b).scrollTop($(b)[0].scrollHeight)})}}}).directive("customGridDateFilterHeader",function(){return{templateUrl:"app/main/customDateFilterHeader.html",controller:"gridDatePickerFilterCtrl"}}).directive("customGridTagsFilterHeader",function(){return{templateUrl:"app/main/customTagsFilterHeader.html",controller:"gridTagsFilterCtrl"}}).directive("infiniteScroll",["$window",function(a){return{link:function(a,b,c){var d=parseInt(c.threshold)||0,e=b[0];b.bind("scroll",function(){a.$eval(c.canLoad)&&e.scrollTop+e.offsetHeight>=e.scrollHeight-d&&a.$apply(c.infiniteScroll)})}}}]).directive("tigerDialDisposal",["$compile","xAlert","socket","$translate","$timeout","$rootScope","MotionDialerSpooler","Auth",function(a,b,c,d,e,f,g,h){return{restrict:"E",scope:{workspace:"=",index:"="},templateUrl:"app/main/template/template.tigerDialDisposal.html",compile:function(a,c){return function(a,c,i){a.moment=moment,a.entitySpooler={},a.forms={td:{}},a.init=function(){return h.getCurrentUser().$promise.then(function(b){a.entitySpooler.planningpeer="SIP/"+b.name})["catch"](function(a){b.error(a)})},a.save=function(){var c;switch(a.entitySpooler.retrieve){case"CLOSED":c=g.close({id:parseInt(a.workspace.spooler.ticketId)});break;case"OPEN":c=g.open({id:parseInt(a.workspace.spooler.ticketId)});break;case"BLACK_LIST":c=g.blacklist({id:parseInt(a.workspace.spooler.ticketId)});break;case"PLANNED":c=g.planning({id:parseInt(a.workspace.spooler.ticketId),date:moment(a.entitySpooler.planningtime).format("YYYY-MM-DD HH:mm")});break;case"PLANNED_PEER":c=g.planningpeer({id:parseInt(a.workspace.spooler.ticketId),date:moment(a.entitySpooler.planningtime).format("YYYY-MM-DD HH:mm"),peer:a.entitySpooler.planningpeer})}c?c.$promise.then(function(c){c.status>0?b.show(d.instant("MESSAGE_WELL_DONE"),"success"):c.response?c.response.RMI.errors.forEach(function(c){c?(b.show(c.field+": "+c.error,"danger"),f.workspaces.splice(a.index,1)):b.show("Please, check your connection!","danger")}):b.show("Please, check your connection!","danger")})["catch"](function(a){b.error(a)}):b.show("RETRIEVE NOT FOUND","danger")},e(function(){a.init()})}}}}]).directive("cssTimer",["$window","$interval",function(a,b){return{restrict:"EA",template:"<span>{{ millis | formatMilliseconds | date:format }}</span>",scope:{interval:"@",format:"@",startTime:"="},link:function(a,c,d){function e(){a.millis=Math.abs((new Date).getTime()-new Date(a.startTime).getTime())+1e3,a.activeInterval=b(function(){a.millis+=a.interval},a.interval)}a.interval||(a.interval=1e3),a.format||(a.format="HH:mm:ss"),e(),a.$watch("startTime",function(c,d){b.cancel(a.activeInterval),e()},!0)}}}]).directive("webPopup",["$compile","xAlert","socket","$translate","$timeout","List","Tag","Company","ReportCall","$uibModal","$rootScope","Auth","$sce",function(a,b,c,d,e,f,g,h,i,j,k,l,m){return{restrict:"E",scope:{workspace:"=",index:"="},templateUrl:"app/main/template/template.webPopup.html",compile:function(a,b){return function(a,b,c){a.html=m.trustAsHtml(a.workspace.data.html)}}}}]),angular.module("xCallyShuttleApp").filter("propsFilter",function(){return function(a,b){var c=[];return angular.isArray(a)?a.forEach(function(a){for(var d=!1,e=Object.keys(b),f=0;f<e.length;f++){var g=e[f],h=b[g].toLowerCase();if(-1!==a[g].toString().toLowerCase().indexOf(h)){d=!0;break}}d&&c.push(a)}):c=a,c}}).filter("capitalize",function(){return function(a){return a?a.replace(/([^\W_]+[^\s-]*) */g,function(a){return a.charAt(0).toUpperCase()+a.substr(1).toLowerCase()}):""}}).filter("salesforce",function(){var a=["CallDisposition","CallDurationInSeconds","CallObject","CallType","IsArchived","Priority","Status","Type"];return function(b){return _.remove(b,function(b){return b.custom===!1&&a.indexOf(b.name)<0}),b}}).filter("sugarcrm",function(){var a=["id","name","date_entered","date_modified","modified_user_id","modified_by_name","created_by","created_by_name","description","deleted","assigned_user_id","assigned_user_name","duration_hours","duration_minutes","date_start","date_end","parent_type","parent_name","parent_id","accept_status","contact_name","contact_id"];return function(b){return _.remove(b,function(b){return a.indexOf(b.name)>=0}),b}}).filter("freshdesk",function(){var a=["requester","subject","agent","description","status","priority","group","source","ticket_type","group","company"];return function(b){return _.remove(b,function(b){return a.indexOf(b.name)>=0}),b}}).filter("zendesk",function(){var a=["subject","assignee","description"];return function(b){return _.remove(b,function(b){return a.indexOf(b.type)>=0}),b}}).filter("slice",function(){return function(a,b,c){return a?a.slice(b,c):void 0}}).filter("trusted",["$sce",function(a){var b=document.createElement("div");return function(c){return b.innerHTML=c,a.trustAsHtml(b.textContent)}}]).filter("formatMilliseconds",[function(){return function(a){return new Date(1970,0,1).setMilliseconds(a)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main",{"abstract":!0,templateUrl:"app/main/main.html",controller:"MainCtrl",resolve:{authorization:["$q","Auth","$state","$timeout","$location","localStorageService",function(a,b,c,d,e,f){return b.getToken()?a.when():(f.remove("loggedIn"),d(function(){e.path("/login")}),a.reject())}],deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css","assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/plugins/mxgraph/js/mxClient.js","assets/plugins/ckeditor/ckeditor.js","assets/css/login.css"]}])}]}})}]),angular.module("xCallyShuttleApp").factory("xAlert",["$translate","Notification","$state",function(a,b,c){return{show:function(c,d){switch(d){case"success":b.success({message:c,title:'<i class="glyphicon glyphicon-ok"></i> <strong>'+a.instant("MESSAGE_SUCCESS")+"!</strong>",delay:5e3});break;case"info":b.info({message:c,title:'<i class="glyphicon glyphicon-info-sign"></i> <strong>'+a.instant("MESSAGE_INFO")+"!</strong>",delay:5e3});break;case"danger":b.error({message:c,title:'<i class="glyphicon glyphicon-exclamation-sign"></i> <strong>'+a.instant("MESSAGE_ERROR")+"!</strong>",delay:1e4});break;case"warning":b.warning({message:c,title:'<i class="glyphicon glyphicon-warning-sign"></i> <strong>'+a.instant("MESSAGE_WARNING")+"!</strong>",delay:1e4});break;default:b.info(c)}},error:function(d){var e,f;d?d.status&&401===d.status?(e="Unauthorized!",f=!0):d.data?(e=a.instant(d.data.translatedMessage||d.data.message||d.data||"Generic Error"),d.data.errors&&d.data.errors.length&&_.forEach(d.data.errors,function(b){b.message&&(e+=", "+a.instant(b.message))})):e=a.instant(d.translatedMessage||d.message||"Generic Error"):e="Generic Error",b.error({message:e,title:'<i class="glyphicon glyphicon-exclamation-sign"></i> <strong>'+a.instant("MESSAGE_ERROR")+"!</strong>",delay:1e4}),f&&c.go("login")}}}]).factory("stResource",["$q","$filter","$timeout","$rootScope","$http","$translate","xAlert",function(a,b,c,d,e,f,g){return{getPage:function(b){var c={page:Math.ceil(b.pagination.start/b.pagination.number),per_page:b.pagination.number};b.sort.predicate&&(c.sort_by=b.sort.predicate,c.sort_order=b.sort.reverse?"DESC":"ASC"),_.forIn(b.search.predicateObject,function(a,b){c[b]=a}),b.search.params&&(c.clientQuery={},_.forIn(b.search.params,function(a,b){c.clientQuery[b]=a})),d.$broadcast("$spinnerStart"),e.get(b.url,{params:c}).success(function(a){f.resolve(a),d.$broadcast("$spinnerStop")}).error(function(a){g.error(a),d.$broadcast("$spinnerStop")});var f=a.defer();return f.promise}}}]).factory("xNotification",["$translate","Notification","$rootScope",function(a,b,c){return{show:function(d,e,f,g,h,i){var j=c.$new(),k={message:e,title:d,templateUrl:"app/main/template/template.notification.html",delay:g,scope:j};switch(j.acceptBtn=a.instant("APPLICATION_ACCEPT"),j.rejectBtn=a.instant("APPLICATION_REJECT"),j.nAccept=h,j.nReject=i,f){case"chat":j["class"]="alert-info",j.icon="icon-bubble";break;case"mail":j["class"]="alert-success",j.icon="icon-envelope";break;case"fax":j["class"]="alert-warning",j.icon="fa fa-fax";break;case"sms":j["class"]="alert-danger",j.icon="glyphicon glyphicon-comment";break;case"openchannel":j["class"]="alert-danger",j.icon="icon-globe";break;default:j["class"]="alert-info"}return new b(k)}}}]),angular.module("xCallyShuttleApp").controller("ContactManagerMergeContactChoose",["$scope","$translate","Contact","gridOptions","List","uiGridConstants","xAlert","$stateParams","Company","$uibModalInstance","listId","mergecontact",function(a,b,c,d,e,f,g,h,i,j,k,l){a.initView=function(){var b;return e.get().$promise.then(function(b){return a.lists=[],a.customFields=[],b.rows.forEach(function(b,c){_.forEach(b.CustomFields,function(b){a.customFields.push({name:b.name,alias:b.alias})}),a.lists.push({value:b.id,label:b.name})}),i.get().$promise}).then(function(b){a.companies=[],b.rows.forEach(function(b,c){a.companies.push({value:b.id,label:b.name})})}).then(function(){var e=[{"class":"blue-hoki",name:"select",onClick:"grid.appScope.choose(row.entity.id)"}];b={exporterCsvFilename:"Contacts.csv",columnDefs:[{name:"firstName"},{name:"lastName"},{name:"phone"},{name:"email"},{name:"ListId",displayName:"APPLICATION_LIST",field:"List.name",enableFiltering:!1},{name:"CompanyId",displayName:"APPLICATION_COMPANY",field:"Company.name",filter:{type:f.filter.SELECT,term:h.companyId||null,selectOptions:a.companies}}]},_.forEach(a.customFields,function(a){b.columnDefs.push({name:a.name,displayName:a.alias,visible:!1})}),b.columnDefs.push({name:"action",width:30,buttons:e}),a.gridOptions=d.gridOptions(c,b,a,{ListId:k,mergecontact:l})})["catch"](function(a){g.error(a)})},a.choose=function(a){j.close(a)},a.cancel=function(){j.dismiss()}}]),angular.module("xCallyShuttleApp").controller("ContactManagerMergeContactMerge",["$scope","$translate","Contact","xAlert","Company","$uibModalInstance","contactId","List","mergeContact","Tag",function(a,b,c,d,e,f,g,h,i,j){a.initView=function(){return e.get().$promise.then(function(b){return a.companies=b.rows,a.companies.unshift({id:"",name:"-- None --"}),j.get().$promise}).then(function(b){return a.tags=_.map(b.rows,"name"),c.get({id:g}).$promise}).then(function(b){a.fields={},a.contact={};var c=_.merge(_.keys(b),_.keys(i));return _.forEach(c,function(c){switch(c){case"tags":a.contact.tags=_.union(b.tags||[],i.tags||[]);break;case"$promise":case"$resolved":break;default:a.fields[c]=[],b[c]&&a.fields[c].push(b[c]),i[c]&&b[c]!==i[c]&&a.fields[c].push(i[c]),a.contact[c]=a.fields[c][0]||null}}),h.get({listId:b.ListId,controller:"customfields"}).$promise}).then(function(b){a.customFields=b.rows,a.customFields.forEach(function(a){a.values=JSON.parse(a.values)})})["catch"](function(a){d.error(a)})},a.merge=function(){a.contact.CompanyId||(a.contact.CompanyId=null),f.close(a.contact)},a.cancel=function(){f.dismiss()}}]),angular.module("xCallyShuttleApp").factory("Widget",["$resource",function(a){return a("/api/widgets/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("MarketCtrl",["$scope","$http","$translate","socket","xAlert","Modal","$timeout","Integration",function(a,b,c,d,e,f,g,h){function i(a,b){return Math.floor(Math.random()*(b-a+1))+a}a.initView=function(){return h.get().$promise.then(function(b){a.integrations=b.rows,a.groupedIntegration=_.chunk(a.integrations,4),d.syncUpdates("integration",a.integrations,function(){a.groupedIntegration=_.chunk(a.integrations,4)})})["catch"](function(a){e.error(a,"danger")})},a.isProgressing=!1,a.$on("$destroy",function(){d.unsyncUpdates("integration")}),a.installIntegration=function(b){return navigator.onLine?(a.status="Downloading",a.percentage=i(1,50),a.isProgressing=!0,b.downloading=!0,h.update({id:b.id},{active:!0}).$promise.then(function(){g(function(){a.percentage=i(51,99),a.status="Installing"},2500),g(function(){a.percentage=100,a.isProgressing=!1,a.status="Completed!",b.downloading=!1,e.show(c.instant("MESSAGE_WELL_DONE")+".","success")},5e3)})["catch"](function(){b.downloading=!1,a.percentage=0,a.isProgressing=!1,e.show(c.instant("MESSAGE_SOMETHING_WENT_WRONG")+".","danger")})):void e.show(c.instant("MESSAGE_NO_INTERNET_CONNECTION")+".","danger")},a.uninstallIntegration=function(b){return navigator.onLine?(a.status="Uninstalling",a.percentage=i(1,99),a.isProgressing=!0,b.downloading=!0,h.update({id:b.id},{active:!1}).$promise.then(function(){g(function(){a.percentage=100,a.isProgressing=!1,a.status="Completed!",b.downloading=!1,e.show(c.instant("MESSAGE_WELL_DONE")+".","success")},5e3)})["catch"](function(){b.downloading=!1,a.percentage=0,a.isProgressing=!1,e.show(c.instant("MESSAGE_SOMETHING_WENT_WRONG")+".","danger")})):void e.show(c.instant("MESSAGE_NO_INTERNET_CONNECTION")+".","danger")}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.market",{url:"/market",templateUrl:"app/market/market.html",controller:"MarketCtrl",data:{permissions:{only:["admin"],redirectTo:"main.dashboard.voice"}}})}]),angular.module("xCallyShuttleApp").controller("MotionbarCtrl",["$scope","$stateParams","$cookieStore","$window","$location","Auth",function(a,b,c,d,e,f){console.log(b),b.token&&b.userId&&b.role&&b.redirectTo?(f.loginWithToken(b.token,b.userId,b.role),d.location.href=decodeURIComponent(b.redirectTo)):e.path("/login")}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("motionbar",{url:"/motionbar?redirectTo&token&userId&role",template:"<div ui-view></div>",controller:"MotionbarCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.motiondialer.blacklist",{url:"/blacklist",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("MotionDialerBlackListListCtrl",["$scope","$uibModal","$translate","xAlert","Modal","MotionDialerBlackList","uiGridConstants","FileUploader","Papa",function(a,b,c,d,e,f,g,h,i){function j(c){var d=b.open({animation:!0,backdrop:"static",keyboard:!1,templateUrl:"app/motiondialer/blacklist/list/list.import.modal.html",controller:"MotionDialerBlackListImportCtrl",resolve:{indexes:function(){return _.keys(c[0])},csv:function(){return c}}});d.result.then(function(b){a.gridOptions.data=a.gridOptions.data.concat(b)})}a.initView=function(){a.gridOptions={paginationPageSizes:[10,25,50,75],paginationPageSize:10,enableFiltering:!0,enableSorting:!0,enableGridMenu:!0,flatEntityAccess:!0,showGridFooter:!0,fastWatch:!0,columnDefs:[{name:"id",width:60},{name:"phone"},{name:"description",enableSorting:!1},{name:"updatedtime",sort:{direction:g.DESC},enableFiltering:!1},{name:"action",cellTemplate:'<div><a class="btn btn-xs red-sunglo" data-ng-click="grid.appScope.deleteItem(row.entity.phone, row.entity.id)"><i class="icon-trash"></i></a></div>',enableSorting:!1,cellClass:"ui-grid-vcenter",enableFiltering:!1}]},f.list({page:1,size:6e5}).$promise.then(function(b){b.status>0?a.gridOptions.data=b.response.RMI.rows:d.show("Please, check your connection!","danger")})["catch"](function(a){d.error(a)})},a.createItem=function(){var c=b.open({animation:!0,templateUrl:"app/motiondialer/blacklist/list/list.create.modal.html",controller:"MotionDialerBlackListListCreateCtrl"});c.result.then(function(b){a.gridOptions.data.push(b.response.RMI)})},a.deleteItem=e.confirm["delete"](function(b){return f["delete"]({id:b}).$promise.then(function(e){e.status>0?(_.remove(a.gridOptions.data,{id:b}),d.show(c.instant("MESSAGE_WELL_DONE"),"success")):d.show(e.message||"Please, check your connection!","danger")})["catch"](function(a){d.error(a)})});var k=a.uploader=new h({queueLimit:1,clearInputAfterAddedToQueue:!0});k.onAfterAddingFile=function(b){i.parse(b._file,{header:!0,complete:function(b){a.uploader.clearQueue(),j(b.data)},error:function(a){d.error(a)}})}}]),angular.module("xCallyShuttleApp").controller("MotionDialerBlackListListCreateCtrl",["$scope","$translate","$uibModalInstance","MotionDialerBlackList","xAlert",function(a,b,c,d,e){a.form={},a.item={},a.save=function(){return d.insert(a.item).$promise.then(function(a){a.status>0?(e.show(b.instant("MESSAGE_WELL_DONE"),"success"),c.close(a)):e.show(a.message||"Please, check your connection!","danger")})["catch"](function(a){e.error(a)})},a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").controller("MotionDialerBlackListImportCtrl",["$scope","$uibModalInstance","$stateParams","indexes","csv","MotionDialerBlackList",function(a,b,c,d,e,f){function g(b){if(b>=a.csvLength||a.stopped)return void(a.importing=!1);var c={phone:"",description:""};return _.forOwn(a.item,function(a,d){c[d]=e[b][a]}),c.phone?f.insert(c).$promise.then(function(c){c.status>0?c.response.RMI.Key&&c.response.RMI.Key.indexOf("Found duplicate")>-1?(a["import"].fail+=h,a["import"].failed++,a.duplicates.push(b+2)):(a["import"].success+=h,a["import"].succeeded++,i.push(c.response.RMI)):(console.log(c),a["import"].fail+=h,a["import"].failed++)})["catch"](function(b){console.log(b),a["import"].fail+=h,a["import"].failed++})["finally"](function(){g(b+1)}):(a.noPhone.push(b+2),a["import"].fail+=h,a["import"].failed++,g(b+1),void 0)}a.form={},a.item={},a.indexes=d,a.importing=!1,a.submitted=!1,a.stopped=!1,a["import"]={success:0,fail:0,succeeded:0,failed:0},a.csvLength=e.length;var h=100/a.csvLength,i=[];a.start=function(){a.noPhone=[],a.duplicates=[],a.importing=!0,a.submitted=!0,g(0)},a.close=function(){b.close(i)},a.stop=function(){a.stopped=!0}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.motiondialer.blacklist.list",{url:"/list",templateUrl:"app/motiondialer/blacklist/list/list.html",controller:"MotionDialerBlackListListCtrl",authenticate:!0})}]),angular.module("xCallyShuttleApp").factory("MotionDialerBlackList",["$resource",function(a){return a("/api/rest/blacklist/:controller",null,{list:{method:"POST",params:{controller:"list"}},insert:{method:"POST",params:{controller:"insert"}},"delete":{method:"POST",params:{controller:"delete"}},find:{method:"POST",params:{controller:"find"}},update:{method:"POST",params:{controller:"update"}}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.motiondialer.info",{url:"/info",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").factory("MotionDialerSystem",["$resource",function(a){return a("/api/rest/system/:controller",null,{properties:{method:"POST",params:{controller:"properties"}}})}]),angular.module("xCallyShuttleApp").controller("MotionDialerInfoViewCtrl",["$scope","xAlert","MotionDialerSystem","MotionDialerProcess","$translate","$q","usSpinnerService",function(a,b,c,d,e,f,g){a.getProperties=function(){return c.properties().$promise.then(function(c){c.status>0?a.properties=c.response.RMI:b.show(c.message||"Please, check your connection!","danger")})["catch"](function(a){b.error(a)})};var h=function(a,b){var c=a?30*a+130:177;angular.element(document.getElementsByName(b)[0]).css("height",c+"px")};a.getLogs=function(){return a.loading=!0,g.spin("logs-spinner"),d.logs().$promise.then(function(c){a.loading=!1,g.stop("logs-spinner"),c.status>0?a.table1.data=c.response.RMI.rows:b.show(c.message||"Please, check your connection!","danger")})["catch"](function(c){a.loading=!1,g.stop("logs-spinner"),b.error(c)})},a.initLogs=function(){a.table1={enableGridMenu:!0,exporterMenuVisibleData:!1,exporterCsvFilename:"Motion Dialer Logs.csv",enableHorizontalScrollbar:0,headerCellFilter:"translate",exporterHeaderFilter:e.instant,enableVerticalScrollbar:0,enableFiltering:!0,enableSorting:!0,showGridFooter:!0,paginationPageSizes:[10,25,50],paginationPageSize:10,gridMenuTitleFilter:function(a){var b=f.defer();return b.resolve(e.instant(a)),b.promise},columnDefs:[{name:"timeStamp",headerCellFilter:"translate",displayName:"APPLICATION_DATE",cellFilter:'date:"yyyy-MM-dd HH:mm:ss"',width:145},{name:"renderedMessage",headerCellFilter:"translate",displayName:"APPLICATION_MESSAGE",cellTooltip:!0}],data:[],onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){h(a.table1.paginationPageSize>a.table1.data.length?a.table1.data.length:a.table1.paginationPageSize,"table1")}),a.gridApi.pagination.on.paginationChanged(a,function(b,c){h(c>a.table1.data.length?a.table1.data.length:c,"table1")})}},a.getLogs()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.motiondialer.info.view",{url:"/view",templateUrl:"app/motiondialer/info/view/view.html",controller:"MotionDialerInfoViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.motiondialer.info.view.about",{url:"/about",templateUrl:"app/motiondialer/info/view/view.about.html"}).state("main.motiondialer.info.view.details",{url:"/details",templateUrl:"app/motiondialer/info/view/view.details.html"}).state("main.motiondialer.info.view.logs",{url:"/logs",templateUrl:"app/motiondialer/info/view/view.logs.html"})}]),angular.module("xCallyShuttleApp").factory("MotionDialerContact",["$resource",function(a){return a("/api/rest/contact/:controller",null,{list:{method:"POST",params:{controller:"list"}},insert:{method:"POST",params:{controller:"insert"}},"delete":{method:"POST",params:{controller:"delete"}},find:{method:"POST",params:{controller:"find"}},update:{method:"POST",params:{controller:"update"}}})}]),angular.module("xCallyShuttleApp").factory("MotionDialerList",["$resource",function(a){return a("/api/rest/list/:controller",null,{list:{method:"POST",params:{controller:"list"}},insert:{method:"POST",params:{controller:"insert"}},"delete":{method:"POST",params:{controller:"delete"}},find:{method:"POST",params:{controller:"find"}},update:{method:"POST",params:{controller:"update"}}})}]),angular.module("xCallyShuttleApp").factory("MotionDialerTimezone",function(){return{list:function(){return[{group:"US (Common)",zones:[{value:"America/Puerto_Rico",name:"Puerto Rico (Atlantic)"},{value:"America/New_York",name:"New York (Eastern)"},{value:"America/Chicago",name:"Chicago (Central)"},{value:"America/Denver",name:"Denver (Mountain)"},{value:"America/Phoenix",name:"Phoenix (MST)"},{value:"America/Los_Angeles",name:"Los Angeles (Pacific)"},{value:"America/Anchorage",name:"Anchorage (Alaska)"},{value:"Pacific/Honolulu",name:"Honolulu (Hawaii)"}]},{group:"America",zones:[{value:"America/Adak",name:"Adak"},{value:"America/Anchorage",name:"Anchorage"},{value:"America/Anguilla",name:"Anguilla"},{value:"America/Antigua",name:"Antigua"},{value:"America/Araguaina",name:"Araguaina"},{value:"America/Argentina/Buenos_Aires",name:"Argentina - Buenos Aires"},{value:"America/Argentina/Catamarca",name:"Argentina - Catamarca"},{value:"America/Argentina/ComodRivadavia",name:"Argentina - ComodRivadavia"},{value:"America/Argentina/Cordoba",name:"Argentina - Cordoba"},{value:"America/Argentina/Jujuy",name:"Argentina - Jujuy"},{value:"America/Argentina/La_Rioja",name:"Argentina - La Rioja"},{value:"America/Argentina/Mendoza",name:"Argentina - Mendoza"},{value:"America/Argentina/Rio_Gallegos",name:"Argentina - Rio Gallegos"},{value:"America/Argentina/Salta",name:"Argentina - Salta"},{value:"America/Argentina/San_Juan",name:"Argentina - San Juan"},{value:"America/Argentina/San_Luis",name:"Argentina - San Luis"},{value:"America/Argentina/Tucuman",name:"Argentina - Tucuman"},{value:"America/Argentina/Ushuaia",name:"Argentina - Ushuaia"},{value:"America/Aruba",name:"Aruba"},{value:"America/Asuncion",name:"Asuncion"},{value:"America/Atikokan",name:"Atikokan"},{value:"America/Atka",name:"Atka"},{value:"America/Bahia",name:"Bahia"},{value:"America/Barbados",name:"Barbados"},{value:"America/Belem",name:"Belem"},{value:"America/Belize",name:"Belize"},{value:"America/Blanc-Sablon",name:"Blanc-Sablon"},{value:"America/Boa_Vista",name:"Boa Vista"},{value:"America/Bogota",name:"Bogota"},{value:"America/Boise",name:"Boise"},{value:"America/Buenos_Aires",name:"Buenos Aires"},{value:"America/Cambridge_Bay",name:"Cambridge Bay"},{value:"America/Campo_Grande",name:"Campo Grande"},{value:"America/Cancun",name:"Cancun"},{value:"America/Caracas",name:"Caracas"},{value:"America/Catamarca",name:"Catamarca"},{value:"America/Cayenne",name:"Cayenne"},{value:"America/Cayman",name:"Cayman"},{value:"America/Chicago",name:"Chicago"},{value:"America/Chihuahua",name:"Chihuahua"},{value:"America/Coral_Harbour",name:"Coral Harbour"},{value:"America/Cordoba",name:"Cordoba"},{value:"America/Costa_Rica",name:"Costa Rica"},{value:"America/Cuiaba",name:"Cuiaba"},{value:"America/Curacao",name:"Curacao"},{value:"America/Danmarkshavn",name:"Danmarkshavn"},{value:"America/Dawson",name:"Dawson"},{value:"America/Dawson_Creek",name:"Dawson Creek"},{value:"America/Denver",name:"Denver"},{value:"America/Detroit",name:"Detroit"},{value:"America/Dominica",name:"Dominica"},{value:"America/Edmonton",name:"Edmonton"},{value:"America/Eirunepe",name:"Eirunepe"},{value:"America/El_Salvador",name:"El Salvador"},{value:"America/Ensenada",name:"Ensenada"},{value:"America/Fortaleza",name:"Fortaleza"},{value:"America/Fort_Wayne",name:"Fort Wayne"},{ +value:"America/Glace_Bay",name:"Glace Bay"},{value:"America/Godthab",name:"Godthab"},{value:"America/Goose_Bay",name:"Goose Bay"},{value:"America/Grand_Turk",name:"Grand Turk"},{value:"America/Grenada",name:"Grenada"},{value:"America/Guadeloupe",name:"Guadeloupe"},{value:"America/Guatemala",name:"Guatemala"},{value:"America/Guayaquil",name:"Guayaquil"},{value:"America/Guyana",name:"Guyana"},{value:"America/Halifax",name:"Halifax"},{value:"America/Havana",name:"Havana"},{value:"America/Hermosillo",name:"Hermosillo"},{value:"America/Indiana/Indianapolis",name:"Indiana - Indianapolis"},{value:"America/Indiana/Knox",name:"Indiana - Knox"},{value:"America/Indiana/Marengo",name:"Indiana - Marengo"},{value:"America/Indiana/Petersburg",name:"Indiana - Petersburg"},{value:"America/Indiana/Tell_City",name:"Indiana - Tell City"},{value:"America/Indiana/Vevay",name:"Indiana - Vevay"},{value:"America/Indiana/Vincennes",name:"Indiana - Vincennes"},{value:"America/Indiana/Winamac",name:"Indiana - Winamac"},{value:"America/Indianapolis",name:"Indianapolis"},{value:"America/Inuvik",name:"Inuvik"},{value:"America/Iqaluit",name:"Iqaluit"},{value:"America/Jamaica",name:"Jamaica"},{value:"America/Jujuy",name:"Jujuy"},{value:"America/Juneau",name:"Juneau"},{value:"America/Kentucky/Louisville",name:"Kentucky - Louisville"},{value:"America/Kentucky/Monticello",name:"Kentucky - Monticello"},{value:"America/Knox_IN",name:"Knox IN"},{value:"America/La_Paz",name:"La Paz"},{value:"America/Lima",name:"Lima"},{value:"America/Los_Angeles",name:"Los Angeles"},{value:"America/Louisville",name:"Louisville"},{value:"America/Maceio",name:"Maceio"},{value:"America/Managua",name:"Managua"},{value:"America/Manaus",name:"Manaus"},{value:"America/Marigot",name:"Marigot"},{value:"America/Martinique",name:"Martinique"},{value:"America/Matamoros",name:"Matamoros"},{value:"America/Mazatlan",name:"Mazatlan"},{value:"America/Mendoza",name:"Mendoza"},{value:"America/Menominee",name:"Menominee"},{value:"America/Merida",name:"Merida"},{value:"America/Mexico_City",name:"Mexico City"},{value:"America/Miquelon",name:"Miquelon"},{value:"America/Moncton",name:"Moncton"},{value:"America/Monterrey",name:"Monterrey"},{value:"America/Montevideo",name:"Montevideo"},{value:"America/Montreal",name:"Montreal"},{value:"America/Montserrat",name:"Montserrat"},{value:"America/Nassau",name:"Nassau"},{value:"America/New_York",name:"New York"},{value:"America/Nipigon",name:"Nipigon"},{value:"America/Nome",name:"Nome"},{value:"America/Noronha",name:"Noronha"},{value:"America/North_Dakota/Center",name:"North Dakota - Center"},{value:"America/North_Dakota/New_Salem",name:"North Dakota - New Salem"},{value:"America/Ojinaga",name:"Ojinaga"},{value:"America/Panama",name:"Panama"},{value:"America/Pangnirtung",name:"Pangnirtung"},{value:"America/Paramaribo",name:"Paramaribo"},{value:"America/Phoenix",name:"Phoenix"},{value:"America/Port-au-Prince",name:"Port-au-Prince"},{value:"America/Porto_Acre",name:"Porto Acre"},{value:"America/Port_of_Spain",name:"Port of Spain"},{value:"America/Porto_Velho",name:"Porto Velho"},{value:"America/Puerto_Rico",name:"Puerto Rico"},{value:"America/Rainy_River",name:"Rainy River"},{value:"America/Rankin_Inlet",name:"Rankin Inlet"},{value:"America/Recife",name:"Recife"},{value:"America/Regina",name:"Regina"},{value:"America/Resolute",name:"Resolute"},{value:"America/Rio_Branco",name:"Rio Branco"},{value:"America/Rosario",name:"Rosario"},{value:"America/Santa_Isabel",name:"Santa Isabel"},{value:"America/Santarem",name:"Santarem"},{value:"America/Santiago",name:"Santiago"},{value:"America/Santo_Domingo",name:"Santo Domingo"},{value:"America/Sao_Paulo",name:"Sao Paulo"},{value:"America/Scoresbysund",name:"Scoresbysund"},{value:"America/Shiprock",name:"Shiprock"},{value:"America/St_Barthelemy",name:"St Barthelemy"},{value:"America/St_Johns",name:"St Johns"},{value:"America/St_Kitts",name:"St Kitts"},{value:"America/St_Lucia",name:"St Lucia"},{value:"America/St_Thomas",name:"St Thomas"},{value:"America/St_Vincent",name:"St Vincent"},{value:"America/Swift_Current",name:"Swift Current"},{value:"America/Tegucigalpa",name:"Tegucigalpa"},{value:"America/Thule",name:"Thule"},{value:"America/Thunder_Bay",name:"Thunder Bay"},{value:"America/Tijuana",name:"Tijuana"},{value:"America/Toronto",name:"Toronto"},{value:"America/Tortola",name:"Tortola"},{value:"America/Vancouver",name:"Vancouver"},{value:"America/Virgin",name:"Virgin"},{value:"America/Whitehorse",name:"Whitehorse"},{value:"America/Winnipeg",name:"Winnipeg"},{value:"America/Yakutat",name:"Yakutat"},{value:"America/Yellowknife",name:"Yellowknife"}]},{group:"Europe",zones:[{value:"Europe/Amsterdam",name:"Amsterdam"},{value:"Europe/Andorra",name:"Andorra"},{value:"Europe/Athens",name:"Athens"},{value:"Europe/Belfast",name:"Belfast"},{value:"Europe/Belgrade",name:"Belgrade"},{value:"Europe/Berlin",name:"Berlin"},{value:"Europe/Bratislava",name:"Bratislava"},{value:"Europe/Brussels",name:"Brussels"},{value:"Europe/Bucharest",name:"Bucharest"},{value:"Europe/Budapest",name:"Budapest"},{value:"Europe/Chisinau",name:"Chisinau"},{value:"Europe/Copenhagen",name:"Copenhagen"},{value:"Europe/Dublin",name:"Dublin"},{value:"Europe/Gibraltar",name:"Gibraltar"},{value:"Europe/Guernsey",name:"Guernsey"},{value:"Europe/Helsinki",name:"Helsinki"},{value:"Europe/Isle_of_Man",name:"Isle of Man"},{value:"Europe/Istanbul",name:"Istanbul"},{value:"Europe/Jersey",name:"Jersey"},{value:"Europe/Kaliningrad",name:"Kaliningrad"},{value:"Europe/Kiev",name:"Kiev"},{value:"Europe/Lisbon",name:"Lisbon"},{value:"Europe/Ljubljana",name:"Ljubljana"},{value:"Europe/London",name:"London"},{value:"Europe/Luxembourg",name:"Luxembourg"},{value:"Europe/Madrid",name:"Madrid"},{value:"Europe/Malta",name:"Malta"},{value:"Europe/Mariehamn",name:"Mariehamn"},{value:"Europe/Minsk",name:"Minsk"},{value:"Europe/Monaco",name:"Monaco"},{value:"Europe/Moscow",name:"Moscow"},{value:"Europe/Nicosia",name:"Nicosia"},{value:"Europe/Oslo",name:"Oslo"},{value:"Europe/Paris",name:"Paris"},{value:"Europe/Podgorica",name:"Podgorica"},{value:"Europe/Prague",name:"Prague"},{value:"Europe/Riga",name:"Riga"},{value:"Europe/Rome",name:"Rome"},{value:"Europe/Samara",name:"Samara"},{value:"Europe/San_Marino",name:"San Marino"},{value:"Europe/Sarajevo",name:"Sarajevo"},{value:"Europe/Simferopol",name:"Simferopol"},{value:"Europe/Skopje",name:"Skopje"},{value:"Europe/Sofia",name:"Sofia"},{value:"Europe/Stockholm",name:"Stockholm"},{value:"Europe/Tallinn",name:"Tallinn"},{value:"Europe/Tirane",name:"Tirane"},{value:"Europe/Tiraspol",name:"Tiraspol"},{value:"Europe/Uzhgorod",name:"Uzhgorod"},{value:"Europe/Vaduz",name:"Vaduz"},{value:"Europe/Vatican",name:"Vatican"},{value:"Europe/Vienna",name:"Vienna"},{value:"Europe/Vilnius",name:"Vilnius"},{value:"Europe/Volgograd",name:"Volgograd"},{value:"Europe/Warsaw",name:"Warsaw"},{value:"Europe/Zagreb",name:"Zagreb"},{value:"Europe/Zaporozhye",name:"Zaporozhye"},{value:"Europe/Zurich",name:"Zurich"}]},{group:"Asia",zones:[{value:"Asia/Aden",name:"Aden"},{value:"Asia/Almaty",name:"Almaty"},{value:"Asia/Amman",name:"Amman"},{value:"Asia/Anadyr",name:"Anadyr"},{value:"Asia/Aqtau",name:"Aqtau"},{value:"Asia/Aqtobe",name:"Aqtobe"},{value:"Asia/Ashgabat",name:"Ashgabat"},{value:"Asia/Ashkhabad",name:"Ashkhabad"},{value:"Asia/Baghdad",name:"Baghdad"},{value:"Asia/Bahrain",name:"Bahrain"},{value:"Asia/Baku",name:"Baku"},{value:"Asia/Bangkok",name:"Bangkok"},{value:"Asia/Beirut",name:"Beirut"},{value:"Asia/Bishkek",name:"Bishkek"},{value:"Asia/Brunei",name:"Brunei"},{value:"Asia/Calcutta",name:"Calcutta"},{value:"Asia/Choibalsan",name:"Choibalsan"},{value:"Asia/Chongqing",name:"Chongqing"},{value:"Asia/Chungking",name:"Chungking"},{value:"Asia/Colombo",name:"Colombo"},{value:"Asia/Dacca",name:"Dacca"},{value:"Asia/Damascus",name:"Damascus"},{value:"Asia/Dhaka",name:"Dhaka"},{value:"Asia/Dili",name:"Dili"},{value:"Asia/Dubai",name:"Dubai"},{value:"Asia/Dushanbe",name:"Dushanbe"},{value:"Asia/Gaza",name:"Gaza"},{value:"Asia/Harbin",name:"Harbin"},{value:"Asia/Ho_Chi_Minh",name:"Ho Chi Minh"},{value:"Asia/Hong_Kong",name:"Hong Kong"},{value:"Asia/Hovd",name:"Hovd"},{value:"Asia/Irkutsk",name:"Irkutsk"},{value:"Asia/Istanbul",name:"Istanbul"},{value:"Asia/Jakarta",name:"Jakarta"},{value:"Asia/Jayapura",name:"Jayapura"},{value:"Asia/Jerusalem",name:"Jerusalem"},{value:"Asia/Kabul",name:"Kabul"},{value:"Asia/Kamchatka",name:"Kamchatka"},{value:"Asia/Karachi",name:"Karachi"},{value:"Asia/Kashgar",name:"Kashgar"},{value:"Asia/Kathmandu",name:"Kathmandu"},{value:"Asia/Katmandu",name:"Katmandu"},{value:"Asia/Kolkata",name:"Kolkata"},{value:"Asia/Krasnoyarsk",name:"Krasnoyarsk"},{value:"Asia/Kuala_Lumpur",name:"Kuala Lumpur"},{value:"Asia/Kuching",name:"Kuching"},{value:"Asia/Kuwait",name:"Kuwait"},{value:"Asia/Macao",name:"Macao"},{value:"Asia/Macau",name:"Macau"},{value:"Asia/Magadan",name:"Magadan"},{value:"Asia/Makassar",name:"Makassar"},{value:"Asia/Manila",name:"Manila"},{value:"Asia/Muscat",name:"Muscat"},{value:"Asia/Nicosia",name:"Nicosia"},{value:"Asia/Novokuznetsk",name:"Novokuznetsk"},{value:"Asia/Novosibirsk",name:"Novosibirsk"},{value:"Asia/Omsk",name:"Omsk"},{value:"Asia/Oral",name:"Oral"},{value:"Asia/Phnom_Penh",name:"Phnom Penh"},{value:"Asia/Pontianak",name:"Pontianak"},{value:"Asia/Pyongyang",name:"Pyongyang"},{value:"Asia/Qatar",name:"Qatar"},{value:"Asia/Qyzylorda",name:"Qyzylorda"},{value:"Asia/Rangoon",name:"Rangoon"},{value:"Asia/Riyadh",name:"Riyadh"},{value:"Asia/Saigon",name:"Saigon"},{value:"Asia/Sakhalin",name:"Sakhalin"},{value:"Asia/Samarkand",name:"Samarkand"},{value:"Asia/Seoul",name:"Seoul"},{value:"Asia/Shanghai",name:"Shanghai"},{value:"Asia/Singapore",name:"Singapore"},{value:"Asia/Taipei",name:"Taipei"},{value:"Asia/Tashkent",name:"Tashkent"},{value:"Asia/Tbilisi",name:"Tbilisi"},{value:"Asia/Tehran",name:"Tehran"},{value:"Asia/Tel_Aviv",name:"Tel Aviv"},{value:"Asia/Thimbu",name:"Thimbu"},{value:"Asia/Thimphu",name:"Thimphu"},{value:"Asia/Tokyo",name:"Tokyo"},{value:"Asia/Ujung_Pandang",name:"Ujung Pandang"},{value:"Asia/Ulaanbaatar",name:"Ulaanbaatar"},{value:"Asia/Ulan_Bator",name:"Ulan Bator"},{value:"Asia/Urumqi",name:"Urumqi"},{value:"Asia/Vientiane",name:"Vientiane"},{value:"Asia/Vladivostok",name:"Vladivostok"},{value:"Asia/Yakutsk",name:"Yakutsk"},{value:"Asia/Yekaterinburg",name:"Yekaterinburg"},{value:"Asia/Yerevan",name:"Yerevan"}]},{group:"Africa",zones:[{value:"Africa/Abidjan",name:"Abidjan"},{value:"Africa/Accra",name:"Accra"},{value:"Africa/Addis_Ababa",name:"Addis Ababa"},{value:"Africa/Algiers",name:"Algiers"},{value:"Africa/Asmara",name:"Asmara"},{value:"Africa/Asmera",name:"Asmera"},{value:"Africa/Bamako",name:"Bamako"},{value:"Africa/Bangui",name:"Bangui"},{value:"Africa/Banjul",name:"Banjul"},{value:"Africa/Bissau",name:"Bissau"},{value:"Africa/Blantyre",name:"Blantyre"},{value:"Africa/Brazzaville",name:"Brazzaville"},{value:"Africa/Bujumbura",name:"Bujumbura"},{value:"Africa/Cairo",name:"Cairo"},{value:"Africa/Casablanca",name:"Casablanca"},{value:"Africa/Ceuta",name:"Ceuta"},{value:"Africa/Conakry",name:"Conakry"},{value:"Africa/Dakar",name:"Dakar"},{value:"Africa/Dar_es_Salaam",name:"Dar es Salaam"},{value:"Africa/Djibouti",name:"Djibouti"},{value:"Africa/Douala",name:"Douala"},{value:"Africa/El_Aaiun",name:"El Aaiun"},{value:"Africa/Freetown",name:"Freetown"},{value:"Africa/Gaborone",name:"Gaborone"},{value:"Africa/Harare",name:"Harare"},{value:"Africa/Johannesburg",name:"Johannesburg"},{value:"Africa/Kampala",name:"Kampala"},{value:"Africa/Khartoum",name:"Khartoum"},{value:"Africa/Kigali",name:"Kigali"},{value:"Africa/Kinshasa",name:"Kinshasa"},{value:"Africa/Lagos",name:"Lagos"},{value:"Africa/Libreville",name:"Libreville"},{value:"Africa/Lome",name:"Lome"},{value:"Africa/Luanda",name:"Luanda"},{value:"Africa/Lubumbashi",name:"Lubumbashi"},{value:"Africa/Lusaka",name:"Lusaka"},{value:"Africa/Malabo",name:"Malabo"},{value:"Africa/Maputo",name:"Maputo"},{value:"Africa/Maseru",name:"Maseru"},{value:"Africa/Mbabane",name:"Mbabane"},{value:"Africa/Mogadishu",name:"Mogadishu"},{value:"Africa/Monrovia",name:"Monrovia"},{value:"Africa/Nairobi",name:"Nairobi"},{value:"Africa/Ndjamena",name:"Ndjamena"},{value:"Africa/Niamey",name:"Niamey"},{value:"Africa/Nouakchott",name:"Nouakchott"},{value:"Africa/Ouagadougou",name:"Ouagadougou"},{value:"Africa/Porto-Novo",name:"Porto-Novo"},{value:"Africa/Sao_Tome",name:"Sao Tome"},{value:"Africa/Timbuktu",name:"Timbuktu"},{value:"Africa/Tripoli",name:"Tripoli"},{value:"Africa/Tunis",name:"Tunis"},{value:"Africa/Windhoek",name:"Windhoek"}]},{group:"Australia",zones:[{value:"Australia/ACT",name:"ACT"},{value:"Australia/Adelaide",name:"Adelaide"},{value:"Australia/Brisbane",name:"Brisbane"},{value:"Australia/Broken_Hill",name:"Broken Hill"},{value:"Australia/Canberra",name:"Canberra"},{value:"Australia/Currie",name:"Currie"},{value:"Australia/Darwin",name:"Darwin"},{value:"Australia/Eucla",name:"Eucla"},{value:"Australia/Hobart",name:"Hobart"},{value:"Australia/LHI",name:"LHI"},{value:"Australia/Lindeman",name:"Lindeman"},{value:"Australia/Lord_Howe",name:"Lord Howe"},{value:"Australia/Melbourne",name:"Melbourne"},{value:"Australia/North",name:"North"},{value:"Australia/NSW",name:"NSW"},{value:"Australia/Perth",name:"Perth"},{value:"Australia/Queensland",name:"Queensland"},{value:"Australia/South",name:"South"},{value:"Australia/Sydney",name:"Sydney"},{value:"Australia/Tasmania",name:"Tasmania"},{value:"Australia/Victoria",name:"Victoria"},{value:"Australia/West",name:"West"},{value:"Australia/Yancowinna",name:"Yancowinna"}]},{group:"Indian",zones:[{value:"Indian/Antananarivo",name:"Antananarivo"},{value:"Indian/Chagos",name:"Chagos"},{value:"Indian/Christmas",name:"Christmas"},{value:"Indian/Cocos",name:"Cocos"},{value:"Indian/Comoro",name:"Comoro"},{value:"Indian/Kerguelen",name:"Kerguelen"},{value:"Indian/Mahe",name:"Mahe"},{value:"Indian/Maldives",name:"Maldives"},{value:"Indian/Mauritius",name:"Mauritius"},{value:"Indian/Mayotte",name:"Mayotte"},{value:"Indian/Reunion",name:"Reunion"}]},{group:"Atlantic",zones:[{value:"Atlantic/Azores",name:"Azores"},{value:"Atlantic/Bermuda",name:"Bermuda"},{value:"Atlantic/Canary",name:"Canary"},{value:"Atlantic/Cape_Verde",name:"Cape Verde"},{value:"Atlantic/Faeroe",name:"Faeroe"},{value:"Atlantic/Faroe",name:"Faroe"},{value:"Atlantic/Jan_Mayen",name:"Jan Mayen"},{value:"Atlantic/Madeira",name:"Madeira"},{value:"Atlantic/Reykjavik",name:"Reykjavik"},{value:"Atlantic/South_Georgia",name:"South Georgia"},{value:"Atlantic/Stanley",name:"Stanley"},{value:"Atlantic/St_Helena",name:"St Helena"}]},{group:"Pacific",zones:[{value:"Pacific/Apia",name:"Apia"},{value:"Pacific/Auckland",name:"Auckland"},{value:"Pacific/Chatham",name:"Chatham"},{value:"Pacific/Easter",name:"Easter"},{value:"Pacific/Efate",name:"Efate"},{value:"Pacific/Enderbury",name:"Enderbury"},{value:"Pacific/Fakaofo",name:"Fakaofo"},{value:"Pacific/Fiji",name:"Fiji"},{value:"Pacific/Funafuti",name:"Funafuti"},{value:"Pacific/Galapagos",name:"Galapagos"},{value:"Pacific/Gambier",name:"Gambier"},{value:"Pacific/Guadalcanal",name:"Guadalcanal"},{value:"Pacific/Guam",name:"Guam"},{value:"Pacific/Honolulu",name:"Honolulu"},{value:"Pacific/Johnston",name:"Johnston"},{value:"Pacific/Kiritimati",name:"Kiritimati"},{value:"Pacific/Kosrae",name:"Kosrae"},{value:"Pacific/Kwajalein",name:"Kwajalein"},{value:"Pacific/Majuro",name:"Majuro"},{value:"Pacific/Marquesas",name:"Marquesas"},{value:"Pacific/Midway",name:"Midway"},{value:"Pacific/Nauru",name:"Nauru"},{value:"Pacific/Niue",name:"Niue"},{value:"Pacific/Norfolk",name:"Norfolk"},{value:"Pacific/Noumea",name:"Noumea"},{value:"Pacific/Pago_Pago",name:"Pago Pago"},{value:"Pacific/Palau",name:"Palau"},{value:"Pacific/Pitcairn",name:"Pitcairn"},{value:"Pacific/Ponape",name:"Ponape"},{value:"Pacific/Port_Moresby",name:"Port Moresby"},{value:"Pacific/Rarotonga",name:"Rarotonga"},{value:"Pacific/Saipan",name:"Saipan"},{value:"Pacific/Samoa",name:"Samoa"},{value:"Pacific/Tahiti",name:"Tahiti"},{value:"Pacific/Tarawa",name:"Tarawa"},{value:"Pacific/Tongatapu",name:"Tongatapu"},{value:"Pacific/Truk",name:"Truk"},{value:"Pacific/Wake",name:"Wake"},{value:"Pacific/Wallis",name:"Wallis"},{value:"Pacific/Yap",name:"Yap"}]},{group:"Antarctica",zones:[{value:"Antarctica/Casey",name:"Casey"},{value:"Antarctica/Davis",name:"Davis"},{value:"Antarctica/DumontDUrville",name:"DumontDUrville"},{value:"Antarctica/Macquarie",name:"Macquarie"},{value:"Antarctica/Mawson",name:"Mawson"},{value:"Antarctica/McMurdo",name:"McMurdo"},{value:"Antarctica/Palmer",name:"Palmer"},{value:"Antarctica/Rothera",name:"Rothera"},{value:"Antarctica/South_Pole",name:"South Pole"},{value:"Antarctica/Syowa",name:"Syowa"},{value:"Antarctica/Vostok",name:"Vostok"}]},{group:"Arctic",zones:[{value:"Arctic/Longyearbyen",name:"Longyearbyen"}]},{group:"UTC",zones:[{value:"UTC",name:"UTC"}]},{group:"Manual Offsets",zones:[{value:"UTC-12",name:"UTC-12"},{value:"UTC-11",name:"UTC-11"},{value:"UTC-10",name:"UTC-10"},{value:"UTC-9",name:"UTC-9"},{value:"UTC-8",name:"UTC-8"},{value:"UTC-7",name:"UTC-7"},{value:"UTC-6",name:"UTC-6"},{value:"UTC-5",name:"UTC-5"},{value:"UTC-4",name:"UTC-4"},{value:"UTC-3",name:"UTC-3"},{value:"UTC-2",name:"UTC-2"},{value:"UTC-1",name:"UTC-1"},{value:"UTC+0",name:"UTC+0"},{value:"UTC+1",name:"UTC+1"},{value:"UTC+2",name:"UTC+2"},{value:"UTC+3",name:"UTC+3"},{value:"UTC+4",name:"UTC+4"},{value:"UTC+5",name:"UTC+5"},{value:"UTC+6",name:"UTC+6"},{value:"UTC+7",name:"UTC+7"},{value:"UTC+8",name:"UTC+8"},{value:"UTC+9",name:"UTC+9"},{value:"UTC+10",name:"UTC+10"},{value:"UTC+11",name:"UTC+11"},{value:"UTC+12",name:"UTC+12"},{value:"UTC+13",name:"UTC+13"},{value:"UTC+14",name:"UTC+14"}]}]}}}),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.motiondialer",{url:"/motiondialer",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:16}}})}]),angular.module("xCallyShuttleApp").controller("MotionDialerProcessListCtrl",["$scope","$uibModal","$translate","xAlert","Modal","MotionDialerProcess","uiGridConstants","usSpinnerService",function(a,b,c,d,e,f,g,h){a.initView=function(){return a.gridOptions={paginationPageSizes:[10,25,50,75],paginationPageSize:10,enableFiltering:!0,enableSorting:!0,enableGridMenu:!0,flatEntityAccess:!0,showGridFooter:!0,fastWatch:!0,columnDefs:[{name:"id",width:60},{name:"name"},{name:"queue",enableSorting:!1},{name:"extension",enableSorting:!1},{name:"list_name",cellClass:"ui-grid-vcenter",cellTemplate:"<div>{{row.entity.list ? row.entity.list.name : row.entity.list_name}}</div>",headerCellFilter:"translate",enableSorting:!1},{name:"status",cellTemplate:"<div><a class=\"btn btn-xs\" data-ng-class=\"row.entity.status == 'STOP' ? 'red-sunglo' : 'green-meadow'\" data-ng-href=\"#\">{{ (row.entity.status === 'RUN') ? 'RUNNING' : 'STOPPED'}}</a></div>",cellClass:"ui-grid-vcenter",filter:{type:g.filter.SELECT,selectOptions:[{value:"RUN",label:"RUNNING"},{value:"STOP",label:"STOPPED"}]}},{name:"updatedtime",sort:{direction:g.DESC},enableFiltering:!1},{name:"action",cellTemplate:'<div><a class="btn btn-xs blue-hoki" href="/motiondialer/processes/view/{{row.entity.id}}/overview"><i class="icon-settings"></i></a><a class="btn btn-xs red-sunglo" data-ng-click="grid.appScope.deleteItem(row.entity.name, row.entity.id)"><i class="icon-trash"></i></a></div>',enableSorting:!1,cellClass:"ui-grid-vcenter",enableFiltering:!1}]},f.list({page:1,size:6e5}).$promise.then(function(b){b.status>0?a.gridOptions.data=b.response.RMI.rows:d.show("Please, check your connection!","danger")})["catch"](function(a){d.error(a)})["finally"](function(){h.stop("spinner-grid")})},a.createProcessQueue=function(){var c=b.open({animation:!0,templateUrl:"app/motiondialer/process/list/list.create.queue.modal.html",controller:"MotionDialerProcessListCreateQueueCtrl"});c.result.then(function(b){a.gridOptions.data.push(b.response.RMI)})},a.createProcessSquare=function(){var c=b.open({animation:!0,templateUrl:"app/motiondialer/process/list/list.create.square.modal.html",controller:"MotionDialerProcessListCreateSquareCtrl"});c.result.then(function(b){a.gridOptions.data.push(b.response.RMI)})},a.deleteItem=e.confirm["delete"](function(b){return f["delete"]({id:b}).$promise.then(function(e){e.status>0?(_.remove(a.gridOptions.data,{id:b}),d.show(c.instant("MESSAGE_WELL_DONE"),"success")):d.show(e.message||"Please, check your connection!","danger")})["catch"](function(a){d.error(a)})})}]),angular.module("xCallyShuttleApp").controller("MotionDialerProcessListCreateQueueCtrl",["$scope","$translate","$uibModalInstance","MotionDialerProcess","MotionDialerList","Trunk","VoiceQueue","Route","xAlert","List",function(a,b,c,d,e,f,g,h,i,j){a.form={},a.item={fetch_sort:"ASC",timeout:3},a.initModal=function(){var b;return g.get().$promise.then(function(b){return a.queues={},b&&(a.queues=b.rows),f.get().$promise}).then(function(b){return a.trunks={},b&&(a.trunks=b.rows),a.trunks.push({name:"fake"}),j.get().$promise}).then(function(a){return a&&a.rows.length?(b=a.rows,console.log(b),e.list({page:1,size:6e5}).$promise):void 0}).then(function(c){if(a.lists=[],c&&c.status>0){console.log(c.response.RMI.rows);var d;_.forEach(b,function(b){d=_.find(c.response.RMI.rows,{name:b.name}),d&&a.lists.push(d)})}else i.show("Please, check your connection!","danger")})["catch"](function(a){i.error(a)})},a.save=function(){var e="_process_"+a.item.name+Math.round(1e5*Math.random()),f="Generated by Motion Dialer, Process Queue"+(a.item.description?", "+a.item.description:"");return h.save({appdata:"Internal Call (MotionDialer)",context:"from-sip",exten:e.replace(/\s/g,"_"),type:"internal",description:f,Applications:[{appdata:["CDR(type)=tigerdial"],app:"Set",interval:"*,*,*,*",type:"internal"},{appdata:["QUEUE_PRIO=99"],app:"Set",interval:"*,*,*,*",type:"internal"},{appdata:["CALLERID(name)=${AUTODIAL_NAME}"],app:"Set",interval:"*,*,*,*",type:"internal"},{appdata:["CALLERID(num)=${AUTODIAL_PHONE}"],app:"Set",interval:"*,*,*,*",type:"internal"},{appdata:[a.item.queue.name,"","","",a.item.timeout],app:"Queue",interval:"*,*,*,*",type:"internal"}]}).$promise.then(function(b){return d.insert({name:a.item.name,id_list:a.item.list.id,queue:a.item.queue.name,device:a.item.device.name,context:"from-sip",extension:e.replace(/\s/g,"_"),description:a.item.description,auto_closed:!0,fetch_sort:a.item.fetch_sort,context_for_other_calls:"from-sip",extension_for_other_calls:"_TIGER-DIAL-PEER-DO-NOT-DELETE",hooks:[{target:"http://localhost:9000/api/report/integrations/tdDisposal",type:"http",http_method:"POST",json:"true",event:"hangup"}]}).$promise}).then(function(d){d.status>0?(i.show(b.instant("MESSAGE_WELL_DONE"),"success"),d.response.RMI.list=a.item.list,c.close(d)):i.show(d.message||"Please, check your connection!","danger")})["catch"](function(a){i.error(a)})},a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").controller("MotionDialerProcessListCreateSquareCtrl",["$scope","$translate","$uibModalInstance","MotionDialerProcess","MotionDialerList","SquareProject","Trunk","Route","xAlert","List",function(a,b,c,d,e,f,g,h,i,j){a.form={},a.item={fetch_sort:"ASC"},a.initModal=function(){var b;return f.get().$promise.then(function(b){return a.projects={},b&&(a.projects=b.rows),g.get().$promise}).then(function(b){return a.trunks={},b&&(a.trunks=b.rows),a.trunks.push({name:"fake"}),j.get().$promise}).then(function(a){return a&&a.rows.length?(b=a.rows,e.list({page:1,size:6e5}).$promise):void 0}).then(function(c){if(a.lists=[],c&&c.status>0){var d;_.forEach(b,function(b){d=_.find(c.response.RMI.rows,{name:b.name}),d&&a.lists.push(d)})}else i.show("Please, check your connection!","danger")})["catch"](function(a){i.error(a)})},a.save=function(){var e="_process_"+a.item.name+Math.round(1e5*Math.random()),f="Generated by Motion Dialer, Process Square"+(a.item.description?", "+a.item.description:"");return h.save({appdata:"Internal Call (MotionDialer)",context:"from-sip",exten:e.replace(/\s/g,"_"),type:"internal",description:f,Applications:[{appdata:["CDR(type)=tigerdial"],app:"Set",interval:"*,*,*,*",type:"internal"},{appdata:["agi://127.0.0.1/square",a.item.project.name],app:"AGI",interval:"*,*,*,*",type:"internal"}]}).$promise.then(function(b){return d.insert({name:a.item.name,id_list:a.item.list.id,queue:"none",device:a.item.device.name,context:"from-sip",extension:e.replace(/\s/g,"_"),description:a.item.description,auto_closed:!0,channel_limit:15,fetch_sort:a.item.fetch_sort}).$promise}).then(function(d){d.status>0?(i.show(b.instant("MESSAGE_WELL_DONE"),"success"),d.response.RMI.list=a.item.list,c.close(d)):i.show(d.message||"Please, check your connection!","danger")})["catch"](function(a){i.error(a)})},a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.motiondialer.processes.list",{url:"/list",templateUrl:"app/motiondialer/process/list/list.html",controller:"MotionDialerProcessListCtrl",authenticate:!0})}]),angular.module("xCallyShuttleApp").factory("MotionDialerProcess",["$resource",function(a){return a("/api/rest/process/:controller",null,{list:{method:"POST",params:{controller:"list"}},insert:{method:"POST",params:{controller:"insert"}},"delete":{method:"POST",params:{controller:"delete"}},find:{method:"POST",params:{controller:"find"}},update:{method:"POST",params:{controller:"update"}},logs:{method:"GET",params:{controller:"logs"}}})}]),angular.module("xCallyShuttleApp").factory("MotionDialerSpooler",["$resource",function(a){return a("/api/rest/spooler/:controller/:retrieve/:peer",null,{list:{method:"POST",params:{controller:"list"}},"delete":{method:"POST",params:{controller:"delete"}},find:{method:"POST",params:{controller:"find"}},summary:{method:"POST",params:{controller:"summary"}},close:{method:"POST",params:{controller:"retrieve",retrieve:"close"}},open:{method:"POST",params:{controller:"retrieve",retrieve:"open"}},blacklist:{method:"POST",params:{controller:"retrieve",retrieve:"blacklist"}},planning:{method:"POST",params:{controller:"retrieve",retrieve:"planning"}},planningpeer:{method:"POST",params:{controller:"retrieve",retrieve:"planning",peer:"peer"}},fresh:{method:"POST",params:{controller:"fresh"}}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.motiondialer.processes",{url:"/processes",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("MotionDialerProcessViewCtrl",["$scope","$translate","$stateParams","$uibModal","$state","xAlert","uiGridConstants","usSpinnerService","MotionDialerProcess","MotionDialerSpooler","Modal","VoiceQueue",function(a,b,c,d,e,f,g,h,i,j,k,l){function m(){return j.fresh({id_process:parseInt(c.id)}).$promise.then(function(b){b.status>0?(a.process.runtime||(a.process.runtime={}),a.process.runtime.fresh=b.response.RMI.value):f.show(b.message||"Please, check your connection!","danger")})["catch"](function(a){f.error(a)})}a.process={},a.techs=["SIP","IAX","LOCAL","KHOMP"],a.dialFormats=["tech/device/number","tech/number@device"],a.checkDuplicates=["ALWAYS","IFOPEN","NO"],a.codecs=["g729","ilbc","gsm","ulaw","alaw"],a._=_,a.getProcess=function(){return i.find({id:parseInt(c.id)}).$promise.then(function(b){b.status>0?(b.response.RMI.codecs=b.response.RMI.codecs.split(","),a.process=b.response.RMI,a.process.hooks&&a.process.hooks.length?a.process.disposal=!0:a.process.disposal=!1,m()):f.show(b.message||"Please, check your connection!","danger")})["catch"](function(a){f.error(a)})},a.getSummary=function(){return j.summary({id_process:parseInt(c.id)}).$promise.then(function(b){if(b.status>0){a.summary=b.response.RMI.totals,a.total=0;for(var c=0;c<a.summary.length;c++)a.total+=a.summary[c][1]}else f.show(b.message||"Please, check your connection!","danger")})["catch"](function(a){f.error(a)})["finally"](function(){h.stop("spinner-grid")})},a.updateProcess=function(){var c=_.clone(a.process);return delete c.updatedtime,delete c.id_list,delete c.createdtime,delete c.runtime,delete c.fetch_sort,delete c.list,c.codecs=c.codecs.join(","),""===c.timezone&&delete c.timezone,c.disposal?c.hooks=[{target:"http://localhost:9000/api/report/integrations/tdDisposal",type:"http",http_method:"POST",json:"true",event:"hangup"}]:c.hooks=[],delete c.disposal,i.update(c).$promise.then(function(c){c.status>0?(c.response.RMI.codecs=c.response.RMI.codecs.split(","),a.process=c.response.RMI,a.process.hooks&&a.process.hooks.length?a.process.disposal=!0:a.process.disposal=!1,f.show(b.instant("MESSAGE_WELL_DONE"),"success")):c.response.RMI.errors.forEach(function(a){a?f.show(a.field+": "+a.error,"danger"):f.show("Please, check your connection!","danger")})})["catch"](function(a){f.error(a)})},a.getSpooler=function(){return h.spin("spinner-grid"),a.gridOptions||(a.gridOptions={paginationPageSizes:[10,25,50,75],paginationPageSize:10,enableFiltering:!0,enableSorting:!0,enableGridMenu:!0,flatEntityAccess:!0,showGridFooter:!0,fastWatch:!0,headerCellFilter:"translate",columnDefs:[{name:"name"},{name:"phones",cellTemplate:"<div>{{row.entity.phones.join(',')}}</div>",cellClass:"ui-grid-vcenter"},{name:"retrieve",displayName:"APPLICATION_STATUS",headerCellFilter:"translate",filter:{type:g.filter.SELECT,selectOptions:[{value:"PLANNED_PEER",label:"PLANNED PEER"},{value:"PLANNED",label:"PLANNED"},{value:"BLACK_LIST",label:"BLACKLIST"},{value:"OPEN",label:"OPEN"},{value:"CLOSED",label:"CLOSED"},{value:"MAX_ATTEMPTS",label:"MAX ATTEMPTS"},{value:"COUNTER_BLOCK",label:"COUNTER BLOCK"},{value:"PLANNED_REQUEST",label:"PLANNED REQUEST"},{value:"DELETE",label:"DELETE"}]}},{name:"counter",cellTemplate:"<div>{{grid.appScope.getCounter(row.entity)}}</div>",cellClass:"ui-grid-vcenter",enableFiltering:!1},{name:"planningtime",cellTemplate:"<div><span data-ng-if=\"row.entity.retrieve === 'PLANNED_PEER' || row.entity.retrieve === 'PLANNED'\">{{row.entity.planningtime | date:'yyyy-MM-dd HH:mm'}}</span></div>",cellClass:"ui-grid-vcenter",enableFiltering:!1},{name:"planningpeer",cellTemplate:"<div><span data-ng-if=\"row.entity.retrieve === 'PLANNED_PEER'\">{{row.entity.planningpeer}}</span></div>",cellClass:"ui-grid-vcenter",enableFiltering:!1},{name:"action",cellTemplate:'<div><a class="btn btn-xs green" data-ng-click="grid.appScope.historySpooler(row.entity.history)"><i class="icon-info"></i></a> <a class="btn btn-xs blue-hoki" data-ng-click="grid.appScope.editSpooler(row.entity)"><i class="icon-settings"></i></a></div>',enableSorting:!1,cellClass:"ui-grid-vcenter",enableFiltering:!1}]}),j.list({id_process:parseInt(c.id),page:1,size:6e5}).$promise.then(function(b){b.status>0?a.gridOptions.data=b.response.RMI.rows:f.show(b.message||"Please, check your connection!","danger")})["catch"](function(a){f.error(a)})["finally"](function(){h.stop("spinner-grid")})},a.deleteSpooler=k.confirm["delete"](function(c){return j["delete"]({id:c}).$promise.then(function(d){d.status>0?(_.remove(a.gridOptions.data,{id:c}),f.show(b.instant("MESSAGE_WELL_DONE"),"success")):f.show(d.message||"Please, check your connection!","danger")})["catch"](function(a){f.error(a)})}),a.historySpooler=function(b){var c=d.open({animation:!0,templateUrl:"app/motiondialer/process/view/view.spooler.history.modal.html",controller:"MotionDialerViewSpoolerHistoryCtrl",resolve:{historySpooler:function(){return b}}});c.result.then(function(b){a.gridOptions.data.push(b.response.RMI)})},a.editSpooler=function(a){var b=d.open({animation:!0,templateUrl:"app/motiondialer/process/view/view.spooler.edit.modal.html",controller:"MotionDialerViewSpoolerEditCtrl",resolve:{entitySpooler:function(){return _.clone(a)}}});b.result.then(function(b){_.merge(a,b)})},a.initSettings=function(){return a.queues=null,l.get().$promise.then(function(b){b&&(a.queues=b.rows)})["catch"](function(a){f.error(a)})},a.createInterval=function(b){var c=d.open({ +animation:!0,templateUrl:"app/motiondialer/process/view/view.create.interval.modal.html",controller:"MotionDialerViewCreateIntervalCtrl",resolve:{objectProcess:function(){return a.process},intervalType:function(){return b},intervalValue:function(){return null},intervalIndex:function(){return null}}});c.result.then(function(b){a.process=b})},a.editInterval=function(b,c,e){var f=d.open({animation:!0,templateUrl:"app/motiondialer/process/view/view.create.interval.modal.html",controller:"MotionDialerViewCreateIntervalCtrl",resolve:{objectProcess:function(){return a.process},intervalType:function(){return b},intervalValue:function(){return c},intervalIndex:function(){return e}}});f.result.then(function(b){a.process=b})},a.deleteInterval=k.confirm["delete"](function(c,d){var e={id:a.process.id};return d?(e.intervals=[],e.intervals=e.intervals.concat(a.process.intervals),e.intervals.splice(c,1)):(e.not_intervals=[],e.not_intervals=e.not_intervals.concat(a.process.not_intervals),e.not_intervals.splice(c,1)),i.update(e).$promise.then(function(c){c.status>0?(c.response.RMI.codecs=c.response.RMI.codecs.split(","),a.process=c.response.RMI,f.show(b.instant("MESSAGE_WELL_DONE"),"success")):c.response.RMI.errors.forEach(function(a){a?f.show(a.field+": "+a.error,"danger"):f.show("Please, check your connection!","danger")})})["catch"](function(a){f.error(a)})}),a.runOrStop=function(){var b=d.open({animation:!0,templateUrl:"app/motiondialer/process/view/view.run.process.modal.html",controller:"MotionDialerViewRunProcessCtrl",resolve:{statusProcess:function(){return a.process.status}}});b.result.then(function(b){a.process.status=b.status})},a.goToContacts=function(a){a&&e.go("main.contactmanager.contacts.list",{listId:a})},a.getCounter=function(a){return a.counter+a.counter_amd+a.counter_busy+a.counter_congestion+a.counter_drop+a.counter_failed+a.counter_noanswer+a.counter_nosuchextension+a.counter_ringtimeout}}]),angular.module("xCallyShuttleApp").controller("MotionDialerViewCreateIntervalCtrl",["$scope","$translate","$uibModalInstance","$stateParams","MotionDialerProcess","xAlert","objectProcess","intervalType","intervalValue","intervalIndex","interval",function(a,b,c,d,e,f,g,h,i,j,k){function l(a){var b,c=a.split("|"),d={};return c.forEach(function(a,c){switch(c){case 0:"*"!==a?(b=a.split("-"),d.t_from=moment(b[0],"HH:mm"),d.t_to=moment(b[1],"HH:mm"),d.alwaysTime=!1):(d.t_from=moment(new Date),d.t_to=moment(new Date),d.alwaysTime=!0);break;case 1:"*"!==a?(b=a.split("-"),d.wd_from=b[0].toLowerCase(),d.wd_to=b[1]?b[1].toLowerCase():"always"):(d.wd_from="always",d.wd_to="always");break;case 2:"*"!==a?(b=a.split("-"),d.md_from=b[0],d.md_to=b[1]?b[1]:"always"):(d.md_from="always",d.md_to="always");break;case 3:"*"!==a?(b=a.split("-"),d.m_from=b[0],d.m_to=b[1]?b[1]:"always"):(d.m_from="always",d.m_to="always")}}),d}function m(a){var b,c,d,e;return b=a.t_from&&a.t_to&&!a.alwaysTime?moment(a.t_from).format("HH:mm")+"-"+moment(a.t_to).format("HH:mm"):"*",a.wd_from&&"always"!==a.wd_from?(c=a.wd_from.toUpperCase(),a.wd_to&&"always"!==a.wd_to&&(c+="-"+a.wd_to.toUpperCase())):c="*",a.md_from&&"always"!==a.md_from?(d=a.md_from,a.md_to&&"always"!==a.md_to&&(d+="-"+a.md_to)):d="*",a.m_from&&"always"!==a.m_from?(e=a.m_from,a.m_to&&"always"!==a.m_to&&(e+="-"+a.m_to)):e="*",b+"|"+c+"|"+d+"|"+e}a.isNew=!1,a.form={},a.$interval=k.interval,i||(i=h?"8:00-20:00|MON-FRI|*|*":"00:01-07:59|SAT-SUN|*|*",a.isNew=!0),a.splittedInterval=l(i),a.save=function(){var d=m(a.splittedInterval);console.log(d);var i={id:g.id};return h?(i.intervals=[],i.intervals=i.intervals.concat(g.intervals),a.isNew?i.intervals.push(d):i.intervals[j]=d):(i.not_intervals=[],i.not_intervals=i.not_intervals.concat(g.not_intervals),a.isNew?i.not_intervals.push(d):i.not_intervals[j]=d),console.log(i),e.update(i).$promise.then(function(a){a.status>0?(a.response.RMI.codecs=a.response.RMI.codecs.split(","),f.show(b.instant("MESSAGE_WELL_DONE"),"success"),c.close(a.response.RMI)):a.response.RMI.errors.forEach(function(a){a?f.show(a.field+": "+a.error,"danger"):f.show("Please, check your connection!","danger")})})["catch"](function(a){f.error(a)})},a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.motiondialer.processes.view",{url:"/view/:id",templateUrl:"app/motiondialer/process/view/view.html",controller:"MotionDialerProcessViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.motiondialer.processes.view.overview",{url:"/overview",templateUrl:"app/motiondialer/process/view/view.overview.html"}).state("main.motiondialer.processes.view.settings",{url:"/settings",templateUrl:"app/motiondialer/process/view/view.settings.html"}).state("main.motiondialer.processes.view.intervals",{url:"/intervals",templateUrl:"app/motiondialer/process/view/view.intervals.html"}).state("main.motiondialer.processes.view.spooler",{url:"/spooler",templateUrl:"app/motiondialer/process/view/view.spooler.html"})}]),angular.module("xCallyShuttleApp").controller("MotionDialerViewRunProcessCtrl",["$scope","$stateParams","$uibModalInstance","$translate","statusProcess","MotionDialerProcess","xAlert",function(a,b,c,d,e,f,g){a.status="RUN"===e?"STOP":"RUN",a.yes=function(){f.update({id:parseInt(b.id),status:a.status}).$promise.then(function(a){a.status>0?(g.show(d.instant("MESSAGE_WELL_DONE"),"success"),c.close(a.response.RMI)):g.show(a.message||"Please, check your connection!","danger")})["catch"](function(a){g.error(a)})},a.no=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").controller("MotionDialerViewSpoolerEditCtrl",["$scope","$translate","$uibModalInstance","$stateParams","MotionDialerSpooler","xAlert","entitySpooler","Agent",function(a,b,c,d,e,f,g,h){a.moment=moment,a.entitySpooler=g,_.includes(["PLANNED","PLANNED_PEER"],a.entitySpooler.retrieve)||(a.entitySpooler.planningtime=moment()),a.initModal=function(){return h.get().$promise.then(function(b){a.agents=[],b&&b.rows.forEach(function(b){a.agents.push("SIP/"+b.name)})})["catch"](function(a){f.error(a)})},a.save=function(){var d;switch(a.entitySpooler.retrieve){case"CLOSED":d=e.close({id:parseInt(a.entitySpooler.id)});break;case"OPEN":d=e.open({id:parseInt(a.entitySpooler.id)});break;case"BLACK_LIST":d=e.blacklist({id:parseInt(a.entitySpooler.id)});break;case"PLANNED":d=e.planning({id:parseInt(a.entitySpooler.id),date:moment(a.entitySpooler.planningtime).format("YYYY-MM-DD HH:mm")});break;case"PLANNED_PEER":d=e.planningpeer({id:parseInt(a.entitySpooler.id),date:moment(a.entitySpooler.planningtime).format("YYYY-MM-DD HH:mm"),peer:a.entitySpooler.planningpeer})}d?d.$promise.then(function(d){console.log(d),d.status>0?(f.show(b.instant("MESSAGE_WELL_DONE"),"success"),c.close(a.entitySpooler)):d.response.RMI.errors.forEach(function(a){a?f.show(a.field+": "+a.error,"danger"):f.show("Please, check your connection!","danger")})})["catch"](function(a){f.error(a)}):f.show("RETRIEVE NOT FOUND","danger")},a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").controller("MotionDialerViewSpoolerHistoryCtrl",["$scope","$translate","$uibModalInstance","$stateParams","MotionDialerSpooler","xAlert","historySpooler",function(a,b,c,d,e,f,g){a.historySpooler=g,a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").factory("ReportMotionDialer",["$resource",function(a){return a("/api/report/motiondialer/:id/:controller",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("ResetCtrl",["$scope","Auth","$location","$window","$rootScope","Setting","xAlert","$stateParams","$state",function(a,b,c,d,e,f,g,h,i){a.userReset={},a.getInfo=function(){return f.get({controller:"info"}).$promise.then(function(b){return a.info=b,f.get({id:1}).$promise}).then(function(b){a.setting=b})["catch"](function(a){console.error(a)})},e.bodyLayout="login",a.$on("$viewContentLoaded",function(){Metronic.init(),Layout.init()}),a.reset=function(){b.reset({token:h.token,password:a.userReset.password}).then(function(){i.go("login",{reset:!0})})["catch"](function(a){g.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("reset",{url:"/reset/:token",templateUrl:"app/reset/reset.html",controller:"ResetCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/login.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("SalesforceListCtrl",["$scope","SalesforceAccount","gridOptions","xAlert","$translate",function(a,b,c,d,e){a.initView=function(){var d={exporterCsvFilename:"salesforce_account.csv",columnDefs:[{name:"name",displayName:"APPLICATION_NAME"},{name:"username"},{name:"remoteUri",displayName:"APPLICATION_URI"},{name:"action",buttons:[{"class":"blue-hoki",href:"/salesforce/view/{{row.entity.id}}/account",name:"profile"},{"class":"green-jungle",name:"check",onClick:"grid.appScope.checkAccount(row.entity.id)"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=c.gridOptions(b,d,a)},a.checkAccount=function(a){return b.check({id:a}).$promise.then(function(){d.show(e.instant("MESSAGE_ACCOUNT_VERIFIED"),"success")})["catch"](function(){d.show(e.instant("MESSAGE_ACCOUNT_INVALID"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.salesforce.list",{url:"/list",templateUrl:"app/salesforce/list/list.html",controller:"SalesforceListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").factory("SalesforceAccount",["$resource",function(a){return a("/api/salesforce/accounts/:id/:controller",{id:"@id"},{update:{method:"PUT"},fields:{params:{controller:"fields"},isArray:!0},check:{params:{controller:"check"}}})}]).factory("SalesforceConfiguration",["$resource",function(a){return a("/api/salesforce/accounts/:accountId/configurations/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]).factory("SalesforceField",["$resource",function(a){return a("/api/salesforce/accounts/:accountId/configurations/:configurationId/fields/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.salesforce",{url:"/salesforce",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin"],redirectTo:"main.dashboard.voice"}}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.salesforce.view.configurations",{url:"/configurations",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("SalesforceViewConfigurationListCtrl",["$scope","$stateParams","$translate","gridOptions","SalesforceConfiguration","$uibModal",function(a,b,c,d,e,f){a.initView=function(){var c={exporterCsvFilename:"salesforce_configurations.csv",columnDefs:[{name:"name"},{name:"description"},{name:"action",width:125,buttons:[{"class":"blue-hoki",href:"/salesforce/view/{{row.entity.AccountId}}/configurations/view/{{row.entity.id}}",name:"profile"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=d.gridOptions(e,c,a,{accountId:b.id})},a.createItem=function(){var b=f.open({animation:!0,templateUrl:"app/salesforce/view/configuration/list/create.modal.html",controller:"SalesforceCreateConfigurationCtrl"});b.result.then(function(){a.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("SalesforceCreateConfigurationCtrl",["$scope","$translate","$uibModalInstance","SalesforceConfiguration","xAlert","$stateParams","channel",function(a,b,c,d,e,f,g){a.form={},a.item={},a.channels=g,a.item.channel="voice",a.item.type="Queue",a.save=function(){return d.save({accountId:f.id},a.item).$promise.then(function(a){e.show(b.instant("MESSAGE_WELL_DONE"),"success"),c.close(a)})["catch"](function(a){e.error(a)})},a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.salesforce.view.configurations.list",{url:"/list",templateUrl:"app/salesforce/view/configuration/list/list.html",controller:"SalesforceViewConfigurationListCtrl"})}]),angular.module("xCallyShuttleApp").controller("SalesforceViewConfigurationViewCtrl",["$scope","$filter","$stateParams","$translate","socket","variable","xAlert","SalesforceAccount","SalesforceConfiguration","SalesforceField","Variable",function(a,b,c,d,e,f,g,h,i,j,k){a.$on("$destroy",function(){e.unsyncUpdates("salesforce_field")}),a.config={autoHideScrollbar:!1,theme:"dark",advanced:{updateOnContentResize:!0},setHeight:300,scrollInertia:0},a.fieldType=[{type:"string",title:"String"},{type:"variable",title:"Variable"},{type:"customVariable",title:"Custom Variable"}],a.descFieldType=[{type:"string",title:"String"},{type:"keyValue",title:"Key Value"}],a.groupVariableByGroup=function(a){switch(a.group){case"voice_queue":return"Voice: Queue";default:return"Other"}},a.initView=function(){a.configurationName="",a.subjectConfig=[],a.descriptionConfig=[],a.fieldConfig=[],a.variables=f},a.getConfiguration=function(){return i.get({accountId:c.id,id:c.configurationId}).$promise.then(function(b){a.configurationName=b.name,a.subjectConfig=b.Subject,a.descriptionConfig=b.Description,a.fieldConfig=b.Field,e.socket.on("salesforce_field:remove",function(b){_.remove(a.subjectConfig,{id:b.id}),_.remove(a.descriptionConfig,{id:b.id}),_.remove(a.fieldConfig,{id:b.id})})})["catch"](function(a){g.error(a)})},a.getCustomVariables=function(){return k.get().$promise.then(function(b){a.customVariables=b.rows})["catch"](function(a){g.error(a)})},a.getFields=function(){return h.fields({id:c.id}).$promise.then(function(c){a.accountFields=_.sortBy(b("salesforce")(c),["name"])})["catch"](function(a){g.error(a)})},a.addItem=function(b){var d={};switch(b){case"subject":case"description":d={type:"string",content:""};break;case"field":d={content:""}}return i.save({accountId:c.id,id:c.configurationId,controller:b},d).$promise.then(function(c){switch(b){case"subject":a.subjectConfig.push(c);break;case"description":a.descriptionConfig.push(c);break;case"field":a.fieldConfig.push(c)}})["catch"](function(a){g.error(a)})},a.changeType=function(b){"variable"===b.type?(b.content="",b.variableName=""):"string"===b.type?(b.VariableId=null,b.variableName=""):"customVariable"===b.type&&(b.VariableId=null,b.content=""),a.updateField(b)},a.updateField=function(a){return j.update({accountId:c.id,configurationId:c.configurationId,id:a.id},a).$promise.then(function(){})["catch"](function(a){g.error(a)})},a.removeItem=function(a){return j["delete"]({accountId:c.id,configurationId:c.configurationId,id:a.id}).$promise.then(function(){g.show(d.instant("MESSAGE_WELL_DONE")+"!","success")})["catch"](function(a){g.error(a)})},a.changeDescType=function(b){"keyValue"===b.type?(b.content="","string"===b.keyType?(b.VariableId=null,b.variableName=""):"variable"===b.keyType?(b.keyContent="",b.VariableId=null):"customVariable"===b.keyType&&(b.keyContent="",b.variableName="")):"string"===b.type&&(b.VariableId=null,b.variableName="",b.key="",b.keyContent=""),a.updateField(b)},a.getSystemFieldOptions=function(b){if(b){var c=_.find(a.accountFields,"name",b);if(c)switch(c.type){case"picklist":return c.picklistValues;default:return}}},a.changeFieldType=function(b){b.content="",b.variableName="",b.nameField="",b.VariableId=null,a.updateField(b)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.salesforce.view.configurations.view",{url:"/view/:configurationId",templateUrl:"app/salesforce/view/configuration/view/view.html",controller:"SalesforceViewConfigurationViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("SalesforceViewCtrl",["$scope","$http","$stateParams","$translate","$location","WizardHandler","socket","xAlert","Modal","$filter","SalesforceAccount",function(a,b,c,d,e,f,g,h,i,j,k){a.initView=function(){return k.get({id:c.id}).$promise.then(function(b){a.account=b})["catch"](function(a){h.error(a)})},a.updateItem=function(){return k.update({id:c.id},a.account).$promise.then(function(){h.show(d.instant("MESSAGE_WELL_DONE")+".","success")})["catch"](function(a){h.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.salesforce.view",{url:"/view/:id",templateUrl:"app/salesforce/view/view.html",controller:"SalesforceViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.salesforce.view.account",{url:"/account",templateUrl:"app/salesforce/view/view.account.html"})}]),angular.module("xCallyShuttleApp").controller("SalesforceWizardCtrl",["$scope","$http","$location","$translate","xAlert","WizardHandler","SalesforceAccount",function(a,b,c,d,e,f,g){a.translate=d,a.initWizard=function(){a.$translate=d,a.forms={},a.item={},a.item.serverUrl=c.protocol()+"://"+location.host},a.next=function(){f.wizard().next()},a.exitValidation=function(a){return a},a.createItem=function(){return g.save(a.item).$promise.then(function(){e.show(d.instant("MESSAGE_WELL_DONE")+".","success"),c.path("/salesforce/list")})["catch"](function(a){e.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.salesforce.wizard",{url:"/wizard",templateUrl:"app/salesforce/wizard/wizard.html",controller:"SalesforceWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.customization",{url:"/customization",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("CustomizationGeneralViewCtrl",["$scope","gridOptions","$uibModal","FileUploader","$cookieStore","xAlert","$translate","Setting","$rootScope",function(a,b,c,d,e,f,g,h,i){a.radioSwitch={isActive:!!i.license.custom,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"};var j=a.uploader=new d({url:"api/settings/logo/main",queueLimit:1,withCredentials:!0,headers:{Authorization:"Bearer "+e.get("token")}});j.filters.push({name:"imageFilter",fn:function(a){var b="|"+a.type.slice(a.type.lastIndexOf("/")+1)+"|";return-1!=="|jpg|png|jpeg|".indexOf(b)}}),j.onSuccessItem=function(a,b){i.settings.logo=b.logo,f.show(g.instant("MESSAGE_WELL_DONE"),"success")},j.onErrorItem=function(){f.show(g.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")},j.onCompleteAll=function(){j.clearQueue()};var k=a.uploader2=new d({url:"api/settings/logo/login",queueLimit:1,withCredentials:!0,headers:{Authorization:"Bearer "+e.get("token")}});k.filters.push({name:"imageFilter",fn:function(a){var b="|"+a.type.slice(a.type.lastIndexOf("/")+1)+"|";return-1!=="|jpg|png|jpeg|".indexOf(b)}}),k.onSuccessItem=function(a,b){f.show(g.instant("MESSAGE_WELL_DONE"),"success")},k.onErrorItem=function(){f.show(g.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")},k.onCompleteAll=function(){k.clearQueue()},a.initView=function(){return h.get({id:1}).$promise.then(function(b){a.settings={defaultLogo:b.defaultLogo,defaultLoginLogo:b.defaultLoginLogo,footerWhiteLabel:b.footerWhiteLabel,defaultFooterWhiteLabel:b.defaultFooterWhiteLabel}})["catch"](function(a){f.error(a)})},a.update=function(){return h.update({id:1},a.settings).$promise.then(function(b){_.merge(i.settings,a.settings),f.show(g.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.customization.view.general",{url:"/general",templateUrl:"app/setting/customization/view/general/general.html",controller:"CustomizationGeneralViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/scripts/jquery.sparkline.min.js","assets/plugins/bootstrap-fileinput/bootstrap-fileinput.js","assets/scripts/profile.js"]})}]}})}]),angular.module("xCallyShuttleApp").controller("CustomizationMotionBarViewCtrl",["$scope","gridOptions","$uibModal","FileUploader","$cookieStore","xAlert","$translate","Setting","$rootScope","$location",function(a,b,c,d,e,f,g,h,i,j){!i.license.preferred&&j.path("/landing"),a.radioSwitch={isActive:!!i.license.preferred,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"};var k=a.uploader=new d({url:"api/settings/logo/motionbar",queueLimit:1,withCredentials:!0,headers:{Authorization:"Bearer "+e.get("token")}});k.filters.push({name:"imageFilter",fn:function(a){var b="|"+a.type.slice(a.type.lastIndexOf("/")+1)+"|";return-1!=="|jpg|png|jpeg|".indexOf(b)}}),k.onSuccessItem=function(a,b){f.show(g.instant("MESSAGE_WELL_DONE"),"success")},k.onErrorItem=function(){f.show(g.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")},k.onCompleteAll=function(){k.clearQueue()},a.initView=function(){return h.get({id:1}).$promise.then(function(b){a.settings={defaultMotionBarLogo:b.defaultMotionBarLogo}})["catch"](function(a){f.error(a)})},a.update=function(){return h.update({id:1},a.settings).$promise.then(function(a){f.show(g.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.customization.view.motionbar",{url:"/motionbar",templateUrl:"app/setting/customization/view/motionbar/motionbar.html",controller:"CustomizationMotionBarViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/scripts/jquery.sparkline.min.js","assets/plugins/bootstrap-fileinput/bootstrap-fileinput.js","assets/scripts/profile.js"]})}]}})}]),angular.module("xCallyShuttleApp").controller("CustomizationViewCtrl",["$scope",function(a){}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.customization.view",{url:"/view",templateUrl:"app/setting/customization/view/view.html",controller:"CustomizationViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.general",{url:"/general",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("GeneralMainViewCtrl",["$scope","xAlert","$translate","Setting",function(a,b,c,d){a.initView=function(){return d.get({id:1}).$promise.then(function(b){a.settings={agi_port:b.agi_port,min_internal:b.min_internal,min_mailbox:b.min_mailbox,securePassword:b.securePassword,mailRoutingCapacity:b.mailRoutingCapacity,chatRoutingCapacity:b.chatRoutingCapacity,logoutOnWindowClose:b.logoutOnWindowClose}})["catch"](function(a){b.error(a)})},a.update=function(){return d.update({id:1},a.settings).$promise.then(function(){b.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){b.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.general.view.main",{url:"/main",templateUrl:"app/setting/general/view/main/main.html",controller:"GeneralMainViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("GeneralViewCtrl",["$scope",function(a){}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.general.view",{url:"/view",templateUrl:"app/setting/general/view/view.html",controller:"GeneralViewCtrl"})}]),angular.module("xCallyShuttleApp").factory("License",["$resource",function(a){return a("/api/licenses/:id/:controller",{id:"@id"},{request:{method:"POST",params:{id:"request"}},update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.license",{url:"/license",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("LicenseUpdateCtrl",["$scope","$translate","$uibModalInstance","xAlert","licenseString","License",function(a,b,c,d,e,f){a.form={},a.item={license:e.value},a.update=function(){return f.update(a.item).$promise.then(function(a){d.show(b.instant("MESSAGE_WELL_DONE"),"success"),c.close(a)})["catch"](function(a){d.error(a)})},a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").controller("LicenseViewCtrl",["$scope","$rootScope","$translate","License","xAlert","$window","$uibModal",function(a,b,c,d,e,f,g){a.radioSwitch={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.initView=function(){return d.get(function(b){a.item=b.license,b.months||(a.item.months=1),a.updateRequestExpiration(),a.licenseString=b.licenseString})},a.updateRequestExpiration=function(){a.requestExpiration=moment().add(a.item.months||1,"month").format()},a.plans=[{name:"APPLICATION_MONTH_TO_MONTH",value:1},{name:"APPLICATION_YEARLY",value:12},{name:"APPLICATION_PERPETUAL",value:36}],a.submitRequest=function(){return d.request(_.assign({},a.item,{expiration:a.requestExpiration}),function(){e.show(c.instant("MESSAGE_WELL_DONE"),"success")},function(a){switch(a.status){case 304:e.show(a.statusText,"info");break;default:e.error(a)}})},a.updateLicense=function(){var b=g.open({animation:!0,templateUrl:"app/setting/license/view/update.modal.html",controller:"LicenseUpdateCtrl",resolve:{licenseString:{value:a.licenseString}}});b.result.then(function(){f.location.reload()})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.license.view",{url:"/view",templateUrl:"app/setting/license/view/view.html",controller:"LicenseViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/pricing-tables.css"]}])}]}})}]),angular.module("xCallyShuttleApp").factory("Externip",["$resource",function(a){return a("/api/network/externips/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("Localnet",["$resource",function(a){return a("/api/network/localnets/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.network",{url:"/network",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("ExternipCtrl",["$scope","$uibModal","gridOptions","Externip",function(a,b,c,d){a.initView=function(){var b={exporterCsvFilename:"network_externip.csv",columnDefs:[{name:"value"},{name:"action",buttons:[{"class":"blue-hoki",onClick:"grid.appScope.createItem(row.entity)",name:"profile"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=c.gridOptions(d,b,a)},a.createItem=function(c){var d=b.open({animation:!0,templateUrl:"app/setting/network/view/externip/externip.create.modal.html",controller:"ExternipCreateCtrl",resolve:{item:c}});d.result.then(function(){a.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("ExternipCreateCtrl",["$scope","$translate","$uibModalInstance","$stateParams","Externip","xAlert","item",function(a,b,c,d,e,f,g){a.initModal=function(){a.form={},a.item=g||{},a.title=g?b.instant("APPLICATION_EDIT_EXTERNIP"):b.instant("APPLICATION_NEW_EXTERNIP")},a.save=function(){return g?e.update({id:a.item.id},a.item).$promise.then(function(a){f.show(b.instant("MESSAGE_WELL_DONE"),"success"),c.close(a)})["catch"](function(a){f.error(a)}):e.save({},a.item).$promise.then(function(a){f.show(b.instant("MESSAGE_WELL_DONE"),"success"),c.close(a)})["catch"](function(a){f.error(a)})},a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.network.view.externip",{url:"/externip",templateUrl:"app/setting/network/view/externip/externip.html",controller:"ExternipCtrl"})}]),angular.module("xCallyShuttleApp").controller("LocalnetCtrl",["$scope","gridOptions","Localnet","$uibModal",function(a,b,c,d){a.initView=function(){var d={exporterCsvFilename:"network_localnet.csv",columnDefs:[{name:"value"},{name:"action",buttons:[{"class":"blue-hoki",onClick:"grid.appScope.createItem(row.entity)",name:"profile"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=b.gridOptions(c,d,a)},a.createItem=function(b){var c=d.open({animation:!0,templateUrl:"app/setting/network/view/localnet/localnet.create.modal.html",controller:"LocalnetCreateCtrl",resolve:{item:b}});c.result.then(function(){a.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("LocalnetCreateCtrl",["$scope","$translate","$uibModalInstance","$stateParams","Localnet","xAlert","item",function(a,b,c,d,e,f,g){a.initModal=function(){if(a.form={},a.item=g||{},a.title=g?b.instant("APPLICATION_EDIT_LOCALNET"):b.instant("APPLICATION_NEW_LOCALNET"),g&&g.value){var c=a.item.value.split("/");c.length>1&&(a.item.address=c[0],a.item.mask=c[1])}},a.save=function(){var d=a.item.address+"/"+a.item.mask;return g?e.update({id:a.item.id},{value:d}).$promise.then(function(a){f.show(b.instant("MESSAGE_WELL_DONE"),"success"),c.close(a)})["catch"](function(a){f.error(a)}):e.save({},{value:d}).$promise.then(function(a){f.show(b.instant("MESSAGE_WELL_DONE"),"success"),c.close(a)})["catch"](function(a){f.error(a)})},a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.network.view.localnet",{url:"/localnet",templateUrl:"app/setting/network/view/localnet/localnet.html",controller:"LocalnetCtrl"})}]),angular.module("xCallyShuttleApp").controller("StunaddrCtrl",["$scope","Setting","xAlert","$translate",function(a,b,c,d){a.initView=function(){return b.get({id:1}).$promise.then(function(b){a.item={stunaddr:b.stunaddr}})["catch"](function(a){c.error(a)})},a.update=function(){return b.update({id:1},a.item).$promise.then(function(){c.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){c.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.network.view.stunaddr",{url:"/stunaddr",templateUrl:"app/setting/network/view/stunaddr/stunaddr.html",controller:"StunaddrCtrl"})}]),angular.module("xCallyShuttleApp").controller("NetworkViewCtrl",function(){}),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.network.view",{url:"/view",templateUrl:"app/setting/network/view/view.html",controller:"NetworkViewCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting",{url:"/setting",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:18}}})}]),angular.module("xCallyShuttleApp").factory("Setting",["$resource",function(a){return a("/api/settings/:id/:controller/:param",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("Smtp",["$resource",function(a){return a("/api/mail/servers/out/:id/:controller/:controller2",{id:"@id"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.smtp",{url:"/smtp",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("SmtpViewCtrl",["$scope","$stateParams","$translate","socket","MailServerOut","Setting","MailAccount","xAlert","Modal",function(a,b,c,d,e,f,g,h,i){a.initView=function(){return a.smtpDisabled=!1,a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0, +a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.CONST_TIMEOUT=3e4,a.item={account:{service:!0,MailServerOut:{ssl:!1}}},a.$on("$destroy",function(){d.socket.removeAllListeners("mail_server_out:state")}),d.socket.on("mail_server_out:state",function(b){a.item&&Number(b.id)===a.item.account.MailServerOut.id&&(a.item.account.MailServerOut.state=b.state,a.item.account.MailServerOut.source=JSON.parse(b.source))}),f.get({id:"smtp"}).$promise.then(function(b){a.item.account=b})["catch"](function(b){switch(b.status){case 404:a.item.account.name=null,a.item.account.address=null,a.item.account.description="Custom account",a.item.account.MailServerOut={port:465,ssl:!0},h.show("Service SMTP server not configured.","info");break;default:h.error(b)}})},a.updateItem=function(){return a.item.account.id?(delete a.item.account.MailServerOut.state,delete a.item.account.MailServerOut.source,f.update({id:"smtp",controller:a.item.account.id},a.item.account).$promise.then(function(){h.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){h.error(a)})):f.save({id:"smtp"},{description:a.item.account.description,name:a.item.account.name,address:a.item.account.address,service:a.item.account.service,custom:!0,MailServerOut:a.item.account.MailServerOut}).$promise.then(function(b){a.item.account=b,h.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){h.error(a)})},a.test=function(){return e.get({id:a.item.account.MailServerOut.id,controller:"test"}).$promise["catch"](function(a){console.error(a)})},a["delete"]=i.confirm["delete"](function(){return f["delete"]({id:"smtp"}).$promise.then(function(){h.show(c.instant("MESSAGE_WELL_DONE")+"!","success"),a.item={account:{service:!0,name:null,address:null,description:"Custom account",MailServerOut:{port:465,ssl:!0}}}})["catch"](function(a){h.error(a)})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.smtp.view",{url:"/view",templateUrl:"app/setting/smtp/view/view.html",controller:"SmtpViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.system",{url:"/system",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("SystemViewConsoleCtrl",["$scope","Setting","xAlert","usSpinnerService","$timeout","$translate","socket",function(a,b,c,d,e,f,g){function h(b){var c=_.findIndex(a.commandHistory.commands,function(a){return a===b});-1!==c&&a.commandHistory.commands.splice(c,1),a.commandHistory.commands.unshift(b)}a.output="<b>"+f.instant("APPLICATION_CONSOLE_WELCOME")+"</b><br/>",a.item={command:""},a.commandHistory={commands:[],index:-1},a.busy=!1,a.cmdFocus=function(){e(function(){angular.element("#command").trigger("focus")})},a.sendCmd=function(){return a.commandHistory.index=-1,a.tmp=a.item.command,a.item.command="",a.output+="<b>motion*CLI> "+a.tmp+"</b><br>",a.tmp?(h(a.tmp.trim()),a.busy=!0,d.spin("console-spinner"),b.save({controller:"asterisk"},{command:a.tmp}).$promise["catch"](function(a){c.error(a)})):void 0},g.socket.on("console:result",function(b){a.output+=b.content.replace(/(?:\r\n|\r|\n)/g,"<br />").replace("Response: Follows<br />Privilege: Command<br />","").replace(/ActionID: .[0-9]*<br \/>/,"").replace(/ActionID: .[0-9]*/,"")+"<br>",d.stop("console-spinner"),a.busy=!1,a.cmdFocus()}),g.socket.on("console:error",function(b){d.stop("console-spinner"),a.output+="command error:"+b.data.message+"<br>",a.busy=!1,a.cmdFocus()}),a.keyUp=function(b){switch(b.keyCode){case 40:a.commandHistory.commands[a.commandHistory.index-1]?a.item.command=a.commandHistory.commands[--a.commandHistory.index]:(a.item.command="",a.commandHistory.index=-1);break;case 38:a.commandHistory.commands[a.commandHistory.index+1]&&(a.item.command=a.commandHistory.commands[++a.commandHistory.index]);break;case 37:break;case 39:break;default:a.commandHistory.index=-1}},e(function(){angular.element("#command").trigger("focus"),d.stop("console-spinner")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.system.view.console",{url:"/console",templateUrl:"app/setting/system/view/console/console.html",controller:"SystemViewConsoleCtrl"})}]),angular.module("xCallyShuttleApp").controller("SystemViewGeneralCtrl",["$scope","$stateParams","$translate","socket","Setting","xAlert","usSpinnerService",function(a,b,c,d,e,f,g){function h(b){a.system.memory={labels:_.keys(b.memory.details),values:_.values(_.map(b.memory.details,function(a){return Math.round(a/1024)})),Total:Math.round(b.memory.Total/1024)},g.stop("memory-spinner"),a.system.disks=[],_.forEach(b.disks,function(b){a.system.disks.push({mount:b.mount,size:Number((b.size/1048576).toFixed(2)),values:_.values(_.map(b.details,function(a){return Number((a/1048576).toFixed(2))})),labels:_.keys(b.details)})}),a.system.mount=a.system.disks[0],g.stop("disk-spinner"),a.system.cpu={motion:Math.round(b.cpu.motion),cores:[]},_.forEach(b.cpu.cores,function(b){delete b.nice,delete b.irq,a.system.cpu.cores.push({labels:_.keys(b),values:_.values(b),colours:["#803690","#DCDCDC","#00ADF9"]})}),g.stop("cpu-spinner"),a.loading=!1}a.system={mount:void 0},a.initView=function(){return g.spin("memory-spinner"),g.spin("disk-spinner"),g.spin("cpu-spinner"),a.loading=!0,e.get({controller:"system"}).$promise.then(function(a){h(a)})["catch"](function(b){g.stop("memory-spinner"),g.stop("disk-spinner"),g.stop("cpu-spinner"),a.loading=!1,f.error(b)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.system.view.general",{url:"/general",templateUrl:"app/setting/system/view/general/general.html",controller:"SystemViewGeneralCtrl"})}]),angular.module("xCallyShuttleApp").controller("SystemViewLogsCtrl",["$scope","$stateParams","$translate","socket","Setting","xAlert","usSpinnerService",function(a,b,c,d,e,f,g){a.logfiles=_.sortBy(["access","motion-info","motion-error","dashboard-info","dashboard-error","agi-info","agi-error","ami-info","ami-error","api-info","api-error","chat-info","chat-error","mail-info","mail-error","fax-info","fax-error","sms-info","sms-error","openchannel-info","openchannel-error","auth-info","auth-error"]),a.item={filename:"access"},a.getLog=function(){return a.log="",a.loading=!0,g.spin("logs-spinner"),e.get({controller:"logs",filename:a.item.filename}).$promise.then(function(b){a.log=b.log,a.loading=!1,g.stop("logs-spinner")})["catch"](function(b){g.stop("logs-spinner"),a.loading=!1,f.error(b)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.system.view.logs",{url:"/logs",templateUrl:"app/setting/system/view/logs/logs.html",controller:"SystemViewLogsCtrl"})}]),angular.module("xCallyShuttleApp").controller("SystemViewCtrl",["$scope",function(a){}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.system.view",{url:"/view",templateUrl:"app/setting/system/view/view.html",controller:"SystemViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("UpdateListCtrl",["$scope","gridOptions","$uibModal","$location","Update","xAlert","$log","$translate","$state",function(a,b,c,d,e,f,g,h,i){a.initCounter=function(){a.$on("timer-stopped",function(a,b){f.show(h.instant("MESSAGE_UPDATE_COMPLETED"),"success"),i.go("main.setting.updates.list")})},a.initView=function(){return e.get({controller:"current"}).$promise.then(function(b){a.currentVersion=b.currentVersion,a.latestVersion=b.latestVersion})["catch"](function(a){f.error(a)})},a.pull=function(){var b=c.open({animation:!0,templateUrl:"app/setting/update/list/list.pull.html",controller:"UpdateListPullCtrl"});b.result.then(function(){return d.path("/setting/updates/landing"),e.pull().$promise.then(function(b){var c=!1;b&&(b.summary&&_.forOwn(b.summary,function(a){a&&(c=!0)}),(b.insertions&&!_.isEmpty(b.insertions)||b.deletions&&!_.isEmpty(b.deletions))&&(c=!0)),c?(a.$broadcast("timer-stop"),document.getElementsByTagName("timer")[0].stop()):(f.show(h.instant("MESSAGE_NO_UPDATES"),"success"),d.path("/setting/updates/list"))})["catch"](function(a){console.log(a),f.error(a),d.path("/setting/updates/list")})},function(){g.info("Modal dismissed at: "+new Date)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.updates.list",{url:"/list",templateUrl:"app/setting/update/list/list.html",controller:"UpdateListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"css",insertBefore:"#ng_load_plugins_before",files:["assets/css/pricing-table.css"]}])}]}}).state("main.setting.updates.landing",{url:"/landing",templateUrl:"app/setting/update/list/landing.html",controller:"UpdateListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"css",insertBefore:"#ng_load_plugins_before",files:["assets/css/error.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("UpdateListPullCtrl",["$scope","$uibModalInstance",function(a,b){a.modal={dismissable:!0,title:"Confirm Update",html:"Are you sure you want to update?",buttons:[{classes:"btn btn-success",text:"Update",click:function(){b.close()}},{classes:"btn default",text:"Cancel",click:function(){b.dismiss("cancel")}}]}}]),angular.module("xCallyShuttleApp").factory("Update",["$resource",function(a){return a("/api/updates/:id/:controller",{id:"@id"},{pull:{method:"GET",params:{id:"pull"}}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.updates",{url:"/updates",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("SquareOdbcListCtrl",["$scope","$uibModal","$translate","SquareOdbc","gridOptions","xAlert",function(a,b,c,d,e,f){a.initView=function(){var b={exporterCsvFilename:"odbc.csv",columnDefs:[{name:"name"},{name:"dsn",displayName:"APPLICATION_ODBC"},{name:"description"},{name:"action",width:250,buttons:[{"class":"blue-hoki",href:"/square/odbc/view/{{row.entity.id}}/settings",name:"settings"},{"class":"green-jungle",name:"check",onClick:"grid.appScope.checkConnection(row.entity.id)"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=e.gridOptions(d,b,a)},a.createItem=function(){var c=b.open({animation:!0,templateUrl:"app/square/odbc/list/list.create.modal.html",controller:"SquareOdbcListCreateCtrl"});c.result.then(function(){a.gridOptions.getPage()})},a.checkConnection=function(a){return d.get({id:a,controller:"check"}).$promise.then(function(){f.show(c.instant("MESSAGE_CONNECTION_VERIFIED"),"success")})["catch"](function(){f.show(c.instant("MESSAGE_CONNECTION_INVALID"),"danger")})}}]),angular.module("xCallyShuttleApp").controller("SquareOdbcListCreateCtrl",["$scope","$translate","$uibModalInstance","SquareOdbc","xAlert",function(a,b,c,d,e){a.form={},a.item={},a.item.dsn||(a.item.dsn="DRIVER=MySQL;SERVER=127.0.0.1;UID=xcall;PWD=password;DATABASE=motion"),a.save=function(){return d.save(a.item).$promise.then(function(a){e.show(b.instant("MESSAGE_WELL_DONE"),"success"),c.close(a)})["catch"](function(a){e.error(a)})},a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.square.odbc.list",{url:"/list",templateUrl:"app/square/odbc/list/list.html",controller:"SquareOdbcListCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.square.odbc",{url:"/odbc",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").factory("SquareOdbc",["$resource",function(a){return a("/api/square/odbc/:id/:controller",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("SquareOdbcViewCtrl",["$scope","$translate","$stateParams","SquareOdbc","xAlert",function(a,b,c,d,e){a.odbc={},a.getOdbc=function(){return d.get({id:c.id}).$promise.then(function(b){a.odbc=b})["catch"](function(a){e.error(a)})},a.updateOdbc=function(){var f=angular.copy(a.odbc);return d.update({id:c.id},f).$promise.then(function(){e.show(b.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){e.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.square.odbc.view",{url:"/view/:id",templateUrl:"app/square/odbc/view/view.html",controller:"SquareOdbcViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.square.odbc.view.settings",{url:"/settings",templateUrl:"app/square/odbc/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").controller("SquareProjectListCtrl",["$scope","$uibModal","SquareProject","gridOptions","uiGridConstants",function(a,b,c,d,e){a.initView=function(){var b={exporterCsvFilename:"projects.csv",columnDefs:[{name:"name"},{name:"description"},{name:"createdAt",displayName:"APPLICATION_CREATED_AT",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.createdAt | date:'yyyy-MM-dd HH:mm:ss'}}</div>",filterHeaderTemplate:'<div class="ui-grid-filter-container row"><div ng-repeat="colFilter in col.filters" class="col-md-6 col-md-offset-0 col-sm-5 col-sm-offset-0 col-xs-5 col-xs-offset-0"><div custom-grid-date-filter-header></div></div></div>',filters:[{name:"From",condition:e.filter.GREATER_THAN_OR_EQUAL,hasTime:!0},{name:"To",condition:e.filter.LESS_THAN_OR_EQUAL,hasTime:!0}]},{name:"updatedAt",displayName:"APPLICATION_UPDATED_AT",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.updatedAt | date:'yyyy-MM-dd HH:mm:ss'}}</div>",filterHeaderTemplate:'<div class="ui-grid-filter-container row"><div ng-repeat="colFilter in col.filters" class="col-md-6 col-md-offset-0 col-sm-5 col-sm-offset-0 col-xs-5 col-xs-offset-0"><div custom-grid-date-filter-header></div></div></div>',filters:[{name:"From",condition:e.filter.GREATER_THAN_OR_EQUAL,hasTime:!0},{name:"To",condition:e.filter.LESS_THAN_OR_EQUAL,hasTime:!0}]},{name:"action",width:160,buttons:[{"class":"blue-hoki",href:"/square/projects/view/{{row.entity.id}}",name:"settings"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=d.gridOptions(c,b,a)},a.createItem=function(){var c=b.open({animation:!0,templateUrl:"app/square/project/list/list.create.modal.html",controller:"SquareProjectListCreateCtrl"});c.result.then(function(b){console.log(b),a.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("SquareProjectListCreateCtrl",["$scope","$translate","$uibModalInstance","$location","SquareProject","xAlert",function(a,b,c,d,e,f){a.form={},a.item={},a.save=function(){return e.save(a.item).$promise.then(function(a){c.close(a),d.path("/square/projects/view/"+a.id)})["catch"](function(a){f.error(a)})},a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.square.projects.list",{url:"/list",templateUrl:"app/square/project/list/list.html",controller:"SquareProjectListCtrl",authenticate:!0})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.square.projects",{url:"/projects",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").factory("SquareProject",["$resource",function(a){return a("/api/square/projects/:id/:controller",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("SquareProjectViewCtrl",["$scope","$stateParams","Auth","xAlert","SquareProject","socket","$translate","$log","$uibModal",function(a,b,c,d,e,f,g,h,i){a.squareProject={},a.$on("$destroy",function(){f.unsyncUpdates("square_project")}),a.getProject=function(){return e.get({id:b.id}).$promise.then(function(b){a.squareProject=b,angular.element(document).ready(function(){window.onerror=function(a,b,c){try{if(null!==a&&-1!==a.indexOf("Script error."));else{var e=new Image;e.src="assets/plugins/mxgraph/images/1x1.png?msg="+encodeURIComponent(a)+"&url="+encodeURIComponent(b)+"&lnum="+encodeURIComponent(c)}}catch(f){d.error(f)}},b.token=c.getToken();var a=new EditorUi(new Editor);a.openString(b.preproduction,b.name,b),a.editor.graphChangeListener=function(a,b){var c=b.properties.rtChange||!1;c||(this.modified=!0)}}),f.socket.on("square_project:save",function(c){c.id===b.id&&(a.squareProject=_.merge(a.squareProject,c))})})["catch"](function(a){d.error(a)})},a.editNotes=function(){var c=i.open({animation:!0,templateUrl:"app/square/project/view/projectNotes.modal.html",controller:["$scope","$uibModalInstance","notes",function(a,b,c){a.notes=c,a.close=function(){b.close(a.notes)},a.cancel=function(){b.dismiss("cancel")}}],resolve:{notes:{value:a.squareProject.notes}}});c.result.then(function(a){return e.update({id:b.id},{notes:a.value}).$promise.then(function(){d.show(g.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){d.error(a)})},function(){h.info("Modal dismissed at: "+new Date)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.square.projects.view",{url:"/view/:id",templateUrl:"app/square/project/view/view.html",controller:"SquareProjectViewCtrl",authenticate:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",serie:!0,cache:!1,files:["assets/plugins/mxgraph/css/common.css","assets/plugins/mxgraph/css/explorer.css","assets/plugins/mxgraph/styles/grapheditor.css","assets/plugins/mxgraph/styles/custom.css","assets/plugins/square/js/custom.js","assets/plugins/mxgraph/js/mxClient.js","assets/plugins/square/js/Editor.js","assets/plugins/square/js/Graph.js","assets/plugins/square/js/EditorUi.js","assets/plugins/square/js/Actions.js","assets/plugins/square/js/Menus.js","assets/plugins/square/js/Sidebar.js","assets/plugins/square/js/Toolbar.js","assets/plugins/square/js/Dialogs.js"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.square.realtime",{url:"/realtime",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:14}}})}]),angular.module("xCallyShuttleApp").factory("ReportSquare",["$resource",function(a){return a("/api/report/square/:id/:controller",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("ReportSquareDetail",["$resource",function(a){return a("/api/report/square/details/:id/:controller",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("SquareRealtimeViewGeneralCtrl",["$scope","$log","$uibModal","$translate","socket","xAlert","ReportSquare","usSpinnerService","$q","uiGridConstants",function(a,b,c,d,e,f,g,h,i,j){function k(b){return h.spin("spinner-grid"),g.get(m).$promise.then(function(b){a.gridOptions.totalItems=b.count,a.gridOptions.data=b.rows})["catch"](function(a){f.error(a)})["finally"](function(){b&&l(),h.stop("spinner-grid")})}function l(){e.socket.on("report_square:save",function(b){if(b.leaveAt){var c=_.remove(a.gridOptions.data,{id:b.id});c&&k()}else{var d=_.find(a.gridOptions.data,{id:b.id});if(!d&&a.gridOptions.data.length<m.limit){var e=_.clone(m);if(_.forEach(["offset","limit","controller","order"],function(a){delete e[a]}),_.isEmpty(e))a.gridOptions.data.push(b);else{var f=!0;_.forOwn(e,function(a,c){_.includes(b[c],a)||(f=!1)}),f&&a.gridOptions.data.push(b)}}}})}var m={controller:"realtime",offset:0,limit:25};a.moment=moment,a.init=function(){a.gridOptions={enableGridMenu:!0,headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,showGridFooter:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:25,useExternalPagination:!0,useExternalSorting:!0,useExternalFiltering:!0,showTreeExpandNoChildren:!0,columnDefs:[{name:"uniqueid"},{name:"callerid"},{name:"extension"},{name:"project_name",displayName:"APPLICATION_PROJECT",headerCellFilter:"translate"},{name:"joinAt",displayName:"APPLICATION_ELAPSED_TIME",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><css-timer start-time="row.entity.joinAt"></css-timer></div>',enableSorting:!1,enableColumnMenu:!1,enableFiltering:!1}],data:[],gridMenuTitleFilter:function(a){var b=i.defer();return b.resolve(d.instant(a)),b.promise},onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){n(a.gridApi.core.getVisibleRows(a.gridApi.grid).length)}),a.gridApi.core.on.sortChanged(a,function(a,b){0===b.length?m.order=null:m.order=b[0].name+" "+b[0].sort.direction.toUpperCase(),k()}),a.gridApi.pagination.on.paginationChanged(a,function(a,b){m.offset=(a-1)*b,m.limit=b,k()}),a.gridApi.core.on.filterChanged(a,function(){var a=this.grid;a.columns.forEach(function(a){a.filters[0].term?m[a.name]=a.filters[0].term:delete m[a.name]}),k()})}},k(!0)};var n=function(a){var b=a?30*a+130:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",b+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*a+"px")};a.$on("$destroy",function(){e.unsyncUpdates("report_square")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.square.realtime.view.general",{url:"/general",templateUrl:"app/square/realtime/view/general/general.html",controller:"SquareRealtimeViewGeneralCtrl"})}]),angular.module("xCallyShuttleApp").controller("SquareRealtimeViewCtrl",["$scope",function(a){}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.square.realtime.view",{url:"/view",templateUrl:"app/square/realtime/view/view.html",controller:"SquareRealtimeViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("SquareRecordingListCtrl",["$scope","SquareRecording","gridOptions","uiGridConstants",function(a,b,c,d){a.SquareRecording=b;a.initView=function(){var e={exporterCsvFilename:"recordings.csv",rowHeight:30,columnDefs:[{name:"uniqueid"},{name:"callerid",displayName:"APPLICATION_CALLERIDNUM"},{name:"filename"},{name:"extension"},{name:"projectName",displayName:"APPLICATION_PROJECT"},{name:"createdAt",displayName:"APPLICATION_DATE",cellFilter:"date:'yyyy-MM-dd HH:mm'",filterHeaderTemplate:'<div class="ui-grid-filter-container row"><div ng-repeat="colFilter in col.filters" class="col-md-6 col-md-offset-0 col-sm-5 col-sm-offset-0 col-xs-5 col-xs-offset-0"><div custom-grid-date-filter-header></div></div></div>',filters:[{name:"From",condition:d.filter.GREATER_THAN_OR_EQUAL,hasTime:!0},{name:"To",condition:d.filter.LESS_THAN_OR_EQUAL,hasTime:!0}],sort:{direction:d.DESC,priority:0}},{name:"audio",displayName:"",width:100,enableSorting:!1,enableFiltering:!1,cellClass:"ui-grid-vcenter",cellTemplate:"<div><audio-file-download data-ng-if=\"row.entity.savePath.split('.').pop() == 'wav'\" params=\"{id:row.entity.id,controller:'stream'}\" resource=\"grid.appScope.SquareRecording\"></audio-file-download><span data-ng-if=\"row.entity.value.split('.').pop() == 'gsm'\" title=\"{{'MESSAGE_GSM_PREVIEW_NOT_SUPPORTED' | translate}}\">{{'MESSAGE_GSM_PREVIEW_NOT_SUPPORTED' | translate}}</span></div>"},{name:"action",width:80,buttons:[{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.filename || row.entity.uniqueid, row.entity.id)"},{directive:"<motion-file-download params=\"{id:row.entity.id,controller:'stream'}\" resource=\"grid.appScope.SquareRecording\" mimetype=\"'audio/'+row.entity.value.split('.').pop()\" btnclass=\"btn btn-xs blue-hoki\" filename=\"(row.entity.filename || row.entity.uniqueid)+'.'+row.entity.savePath.split('.').pop()\"></motion-file-download>"}]}]};a.gridOptions=c.gridOptions(b,e,a)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.square.recordings.list",{url:"/list",templateUrl:"app/square/recording/list/list.html",controller:"SquareRecordingListCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.square.recordings",{url:"/recordings",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").factory("SquareRecording",["$resource",function(a){return a("/api/square/recordings/:id/:controller",{id:"@id"},{update:{method:"PUT"},patch:{method:"PATCH"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.square",{url:"/square",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:14}}})}]),angular.module("xCallyShuttleApp").factory("Agent",["$resource",function(a){return a("/api/agents/:id/:controller/:controller1/:controller2/:controller3",{id:"@id"},{changePassword:{method:"PUT",params:{controller:"password"}},update:{method:"PUT"},patch:{method:"PATCH"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.staff.agents",{url:"/agents",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:4}}})}]),angular.module("xCallyShuttleApp").controller("AgentListCtrl",["$scope","$timeout","Agent","Auth","gridOptions",function(a,b,c,d,e){a.initView=function(){a.Auth=d;var b={exporterCsvFilename:"agents.csv",columnDefs:[{name:"fullname"},{name:"name",displayName:"APPLICATION_USERNAME"},{name:"internal"},{name:"email"},{name:"description"},{name:"action",width:100,buttons:[{"class":"blue-hoki",href:"/staff/agents/view/{{row.entity.id}}/account",name:"profile"},{"class":"green-meadow",href:"/staff/agents/view/{{row.entity.id}}/queues/voice",name:"queues"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.fullname, row.entity.id)"}]}]};a.gridOptions=e.gridOptions(c,b,a)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.staff.agents.list",{url:"/list",templateUrl:"app/staff/agent/list/list.html",controller:"AgentListCtrl",data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:4}}})}]),angular.module("xCallyShuttleApp").controller("AgentViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","$cookieStore","Agent","FileUploader","Auth","MailQueue","User","VoiceQueue","ChatQueue","FaxQueue","SmsQueue","OpenChannelQueue","Setting",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){a.Auth=i,a.forms={},a.params={penalty:0},a.radioSwitch={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.recordSwitch={onText:"On",offText:"Off",isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"};var r=function(b){return{select:function(c,d){return g.save(c,{values:d,penalty:a.params.penalty}).$promise.then(function(){b()})["catch"](function(a){console.log(a)})},deselect:function(a){return g["delete"](a).$promise.then(function(){b()})["catch"](function(a){console.log(a)})}}};a.initVoiceQueues=function(){var b={},c={};return a.penalty=0,l.get().$promise.then(function(a){return b.queues=_.map(a.rows,function(a){return{name:a.name}}),g.get({id:e.id,controller:"voice",controller2:"queues"}).$promise}).then(function(a){c.queues=_.map(a.rows,function(a){return{name:a.name,penalty:a.UserHasVoiceQueue.penalty}})}).then(function(){ComponentsDropdowns.bindAgent(b,c,"voice",e.id,r,a.initVoiceQueues)})["catch"](function(a){console.error(a)})},a.initChatQueues=function(){var b={},c={};return a.penalty=0,m.get().$promise.then(function(a){return b.queues=_.map(a.rows,function(a){return{id:a.id,name:a.name}}),g.get({id:e.id,controller:"chat",controller2:"queues"}).$promise}).then(function(a){c.queues=_.map(a.rows,function(a){return{id:a.id,name:a.name,penalty:a.UserHasChatQueue.penalty}})}).then(function(){ComponentsDropdowns.bindAgent(b,c,"chat",e.id,r,a.initChatQueues)})["catch"](function(a){console.error(a)})},a.initMailQueues=function(){var b={},c={};return a.penalty=0,j.get().$promise.then(function(a){return b.queues=_.map(a.rows,function(a){return{id:a.id,name:a.name}}),g.get({id:e.id,controller:"mail",controller2:"queues"}).$promise}).then(function(a){c.queues=_.map(a.rows,function(a){return{id:a.id,name:a.name,penalty:a.UserHasMailQueue.penalty}})}).then(function(){ComponentsDropdowns.bindAgent(b,c,"mail",e.id,r,a.initMailQueues)})["catch"](function(a){console.error(a)})},a.initSmsQueues=function(){var b={},c={};return a.penalty=0,o.get().$promise.then(function(a){return b.queues=_.map(a.rows,function(a){return{id:a.id,name:a.name}}),g.get({id:e.id,controller:"sms",controller2:"queues"}).$promise}).then(function(a){c.queues=_.map(a.rows,function(a){return{id:a.id,name:a.name,penalty:a.UserHasSmsQueue.penalty}})}).then(function(){ComponentsDropdowns.bindAgent(b,c,"sms",e.id,r,a.initSmsQueues)})["catch"](function(a){console.error(a)})},a.initFaxQueues=function(){var b={},c={};return a.penalty=0,n.get().$promise.then(function(a){return b.queues=_.map(a.rows,function(a){return{id:a.id,name:a.name}}),g.get({id:e.id,controller:"fax",controller2:"queues"}).$promise}).then(function(a){c.queues=_.map(a.rows,function(a){return{id:a.id,name:a.name,penalty:a.UserHasFaxQueue.penalty}})}).then(function(){ComponentsDropdowns.bindAgent(b,c,"fax",e.id,r,a.initFaxQueues)})["catch"](function(a){console.error(a)})},a.initOpenchannelQueues=function(){var b={},c={};return a.penalty=0,p.get().$promise.then(function(a){return b.queues=_.map(a.rows,function(a){return{id:a.id,name:a.name}}),g.get({id:e.id,controller:"openchannel",controller2:"queues"}).$promise}).then(function(a){c.queues=_.map(a.rows,function(a){return{id:a.id,name:a.name,penalty:a.UserHasOpenchannelQueue.penalty}})}).then(function(){ComponentsDropdowns.bindAgent(b,c,"openchannel",e.id,r,a.initOpenchannelQueues)})["catch"](function(a){console.error(a)})},a.updatePassword=function(){var b={newPassword:a.agent.newPwd};return i.isAgent()?b.oldPassword=a.agent.currentPwd:b.id=e.id,k.changePassword(b).$promise.then(function(){c.show(d.instant("MESSAGE_WELL_DONE"),"success"),a.agent.newPwd="",a.agent.reNewPwd="",a.agent.currentPwd="",a.forms.changePwd.$setPristine(),a.forms.changePwd.$setUntouched()})["catch"](function(a){c.error(a)})};var s=a.uploader=new h({url:"api/users/"+e.id+"/avatar",queueLimit:1,withCredentials:!0,headers:{Authorization:"Bearer "+f.get("token")}});s.filters.push({name:"imageFilter",fn:function(a){var b="|"+a.type.slice(a.type.lastIndexOf("/")+1)+"|";return-1!=="|jpg|png|jpeg|".indexOf(b)}}),s.onSuccessItem=function(b,e){a.agent.userpic=e.userpic,a.agent.id===i.getCurrentUser().id&&(i.getCurrentUser().userpic=e.userpic),c.show(d.instant("MESSAGE_WELL_DONE"),"success")},s.onErrorItem=function(){c.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")},s.onCompleteAll=function(){s.clearQueue()},a.initView=function(){return g.get({id:e.id}).$promise.then(function(b){return a.agent=b,a.agent.transport=a.agent.transport?a.agent.transport.split(","):[],a.agent.allow=a.agent.allow?a.agent.allow.split(";"):[],a.agent.nat=a.agent.nat?a.agent.nat.split(","):[],q.get({id:1}).$promise}).then(function(b){a.setting=b})["catch"](function(a){c.error(a)})},a.patchItem=function(){return g.update({id:e.id},{chatCapacity:a.agent.chatCapacity,mailCapacity:a.agent.mailCapacity,faxCapacity:a.agent.faxCapacity,smsCapacity:a.agent.smsCapacity,openchannelCapacity:a.agent.openchannelCapacity}).$promise.then(function(){c.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){c.error(a)})},a.updateItem=function(){ +var b=angular.copy(a.agent);return delete b.password,delete b.md5secret,b.transport=b.transport.join(","),b.allow=b.allow.join(";"),b.nat=b.nat.join(","),g.update({id:e.id},b).$promise.then(function(){c.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){c.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.staff.agents.view",{url:"/view/:id",templateUrl:"app/staff/agent/view/view.html",controller:"AgentViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]},data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:4}}}).state("main.staff.agents.view.account",{url:"/account",templateUrl:"app/staff/agent/view/view.account.html",data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:4}},resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/scripts/jquery.sparkline.min.js","assets/plugins/bootstrap-fileinput/bootstrap-fileinput.js","assets/scripts/profile.js"]})}]}}).state("main.staff.agents.view.voice",{url:"/voice",templateUrl:"app/staff/agent/view/view.voice.html",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:4}}}).state("main.staff.agents.view.chat",{url:"/chat",templateUrl:"app/staff/agent/view/view.chat.html",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:4}}}).state("main.staff.agents.view.mail",{url:"/mail",templateUrl:"app/staff/agent/view/view.mail.html",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:4}}}).state("main.staff.agents.view.fax",{url:"/fax",templateUrl:"app/staff/agent/view/view.fax.html",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:4}}}).state("main.staff.agents.view.sms",{url:"/sms",templateUrl:"app/staff/agent/view/view.sms.html",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:4}}}).state("main.staff.agents.view.openchannel",{url:"/openchannel",templateUrl:"app/staff/agent/view/view.openchannel.html",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:4}}}).state("main.staff.agents.view.motionbar",{url:"/motionbar",templateUrl:"app/staff/agent/view/view.motionbar.html",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:4}}}).state("main.staff.agents.view.queues",{url:"/queues",templateUrl:"app/staff/agent/view/view.queues.html",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:4}},cache:!1,serie:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}}).state("main.staff.agents.view.queues.voice",{url:"/voice",templateUrl:"app/staff/agent/view/view.queues.voice.html",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:7}}}).state("main.staff.agents.view.queues.chat",{url:"/chat",templateUrl:"app/staff/agent/view/view.queues.chat.html",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:8}}}).state("main.staff.agents.view.queues.mail",{url:"/mail",templateUrl:"app/staff/agent/view/view.queues.mail.html",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:9}}}).state("main.staff.agents.view.queues.fax",{url:"/fax",templateUrl:"app/staff/agent/view/view.queues.fax.html",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:10}}}).state("main.staff.agents.view.queues.sms",{url:"/sms",templateUrl:"app/staff/agent/view/view.queues.sms.html",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:11}}}).state("main.staff.agents.view.queues.openchannel",{url:"/openchannel",templateUrl:"app/staff/agent/view/view.queues.openchannel.html",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:20}}})}]),angular.module("xCallyShuttleApp").controller("AgentWizardCtrl",["$scope","$rootScope","$location","$translate","$http","Agent","VoiceQueue","ChatQueue","MailQueue","SmsQueue","FaxQueue","OpenChannelQueue","Setting","xAlert","WizardHandler",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){a.maxAmount=1e3,a._data={voice:{queues:[]},chat:{queues:[]},mail:{queues:[]},sms:{queues:[]},fax:{queues:[]},openchannel:{queues:[]}},a._agent=angular.copy(a._data),a.forms={info:void 0,voice:void 0},a.item={role:"agent",allow:["alaw","ulaw","gsm"],transport:["udp"],context:"from-sip"},a.next=function(){o.wizard().next()},a.getAmount=function(){return m.get({controller:"internal",internal:a.item.minInternal}).$promise.then(function(b){a.item.minInternal=Number(b.value),a.maxAmount=b.range||1e3})["catch"](function(a){n.error(a)})},a.exitValidation=function(a){return a},a.getFirstFreeInternal=function(){return m.get({controller:"internal"}).$promise.then(function(b){return a.internal=b,a.item.internal=b.value,a.item.minInternal=b.value,a.maxAmount=b.range||1e3,m.get({id:1}).$promise}).then(function(b){a.setting=b})["catch"](function(a){n.error(a)})},a.createItem=function(){var b=angular.copy(a.item);return delete b.minInternal,b.transport&&(b.transport=b.transport.join(",")),a.item.allow&&(b.allow=b.allow.join(";")),b.channels=a._agent,f.save(b).$promise.then(function(a){c.path("/staff/agents/view/"+a.id+"/queues/voice")})["catch"](function(a){console.log(a),n.error(a)})},a.createItems=function(){var b=angular.copy(a.item);return delete b.internal,b.transport&&(b.transport=b.transport.join(",")),b.allow&&(b.allow=b.allow.join(";")),f.save({id:"bulk"},b).$promise.then(function(){c.path("/staff/agents/list")})["catch"](function(a){console.log(a),n.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.staff.agents.wizard",{url:"/wizard",templateUrl:"app/staff/agent/wizard/wizard.html",controller:"AgentWizardCtrl",data:{permissions:{only:["admin"],redirectTo:"main.dashboard.voice"}},resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}}).state("main.staff.agents.bulk",{url:"/bulk",templateUrl:"app/staff/agent/wizard/wizard-bulk.html",controller:"AgentWizardCtrl",data:{permissions:{only:["admin"],redirectTo:"main.dashboard.voice"}}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.staff",{url:"/staff",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("TeamCreateCtrl",["$scope","$uibModalInstance","Team","xAlert",function(a,b,c,d){a.form={},a.item={},a.ok=function(){return c.save(a.item).$promise.then(function(){b.close(a.item)})["catch"](function(a){d.error(a)})},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("TeamListCtrl",["$scope","Team","gridOptions","$uibModal",function(a,b,c,d){a.initView=function(){var d={exporterCsvFilename:"teams.csv",columnDefs:[{name:"name"},{name:"description"},{name:"action",width:100,buttons:[{"class":"{{row.entity.defaultEntry ? 'blue-hoki disabled' : 'blue-hoki'}}",href:"/staff/teams/view/{{row.entity.id}}/settings",name:"profile"},{"class":"{{row.entity.defaultEntry ? 'green-turquoise disabled' : 'green-turquoise'}}",name:"agents",href:"/staff/teams/view/{{row.entity.id}}/agents"},{"class":"{{row.entity.defaultEntry ? 'red-sunglo disabled' : 'red-sunglo'}}",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=c.gridOptions(b,d,a)},a.createItem=function(){d.open({animation:!0,templateUrl:"app/staff/team/list/create.modal.html",controller:"TeamCreateCtrl"}).result.then(function(){a.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.staff.teams.list",{url:"/list",templateUrl:"app/staff/team/list/list.html",controller:"TeamListCtrl"})}]),angular.module("xCallyShuttleApp").factory("Team",["$resource",function(a){return a("/api/teams/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.staff.teams",{url:"/teams",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin"],redirectTo:"landing"}}})}]),angular.module("xCallyShuttleApp").controller("TeamViewCtrl",["$scope","$http","$stateParams","$translate","Team","Agent","xAlert",function(a,b,c,d,e,f,g){var h=function(){return{select:function(b){return console.log("agents",b),e.save({id:a.team.id,controller:"agents"},{agents:b})},deselect:function(b){return e["delete"]({id:a.team.id,controller:"agents",agents:b})}}};a.initView=function(){return e.get({id:c.id}).$promise.then(function(b){a.team=b})["catch"](function(a){g.error(a)})},a.initAgents=function(){return f.get().$promise.then(function(b){return a.agents=b.rows,e.get({id:c.id,controller:"agents"}).$promise}).then(function(b){ComponentsDropdowns.bindTeam(_.map(b.rows,"id"),_.map(a.agents,function(a){return{id:a.id,name:a.name,fullname:a.fullname,internal:a.internal}}),h)})["catch"](function(a){g.error(a)})},a.updateItem=function(){var b=angular.copy(a.team);return e.update({id:c.id},b).$promise.then(function(){g.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){g.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.staff.teams.view",{url:"/view/:id",templateUrl:"app/staff/team/view/view.html",controller:"TeamViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.staff.teams.view.agents",{url:"/agents",templateUrl:"app/staff/team/view/view.agents.html",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]}])}]}}).state("main.staff.teams.view.settings",{url:"/settings",templateUrl:"app/staff/team/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").controller("TelephoneListCtrl",["$scope","Telephone","gridOptions",function(a,b,c){a.initView=function(){var d={exporterCsvFilename:"telephones.csv",columnDefs:[{name:"fullname"},{name:"name"},{name:"internal"},{name:"description"},{name:"action",width:75,buttons:[{"class":"blue-hoki",href:"/staff/telephones/view/{{row.entity.id}}/account",name:"profile"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.fullname, row.entity.id)"}]}]};a.gridOptions=c.gridOptions(b,d,a)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.staff.telephones.list",{url:"/list",templateUrl:"app/staff/telephone/list/list.html",controller:"TelephoneListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").factory("Telephone",["$resource",function(a){return a("/api/telephones/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.staff.telephones",{url:"/telephones",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin"],redirectTo:"landing"}}})}]),angular.module("xCallyShuttleApp").controller("TelephoneViewCtrl",["$scope","$http","$stateParams","$translate","$cookieStore","Auth","xAlert","Telephone","Setting","User",function(a,b,c,d,e,f,g,h,i,j){a.initView=function(){return a.Auth=f,a.forms={},h.get({id:c.id}).$promise.then(function(b){return delete b.password,a.item=b,a.item.transport=a.item.transport?a.item.transport.split(","):[],a.item.allow=a.item.allow?a.item.allow.split(";"):[],i.get({id:1}).$promise}).then(function(b){a.setting=b})["catch"](function(a){g.error(a)})},a.updateItem=function(){var b=angular.copy(a.item);return b.transport=b.transport.join(","),b.allow=b.allow.join(";"),h.update(b).$promise.then(function(){g.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){g.error(a)})},a.updatePassword=function(){var b={newPassword:a.item.newPwd,id:c.id};return j.changePassword(b).$promise.then(function(){g.show(d.instant("MESSAGE_WELL_DONE"),"success"),a.item.newPwd="",a.item.reNewPwd="",a.forms.changePwd.$setPristine(),a.forms.changePwd.$setUntouched()})["catch"](function(a){g.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.staff.telephones.view",{url:"/view/:id",templateUrl:"app/staff/telephone/view/view.html",controller:"TelephoneViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.staff.telephones.view.account",{url:"/account",templateUrl:"app/staff/telephone/view/view.account.html",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css","assets/scripts/jquery.sparkline.min.js","assets/plugins/bootstrap-fileinput/bootstrap-fileinput.js","assets/scripts/profile.js"]})}]}}).state("main.staff.telephones.view.voice",{url:"/voice",templateUrl:"app/staff/telephone/view/view.voice.html",data:{permissions:{only:["admin"],redirectTo:"main.dashboard.voice"}}})}]),angular.module("xCallyShuttleApp").controller("TelephoneWizardCtrl",["$scope","$http","$location","WizardHandler","xAlert","$translate","Telephone","Setting",function(a,b,c,d,e,f,g,h){a.forms={},a.item={allow:["alaw","ulaw","gsm"],transport:["udp"],context:"from-sip"},a.next=function(){d.wizard().next()},a.exitValidation=function(a){return a},a.getFirstFreeInternal=function(){return h.get({controller:"internal"}).$promise.then(function(b){return a.item.internal=b.value,h.get({id:1}).$promise}).then(function(b){a.setting=b})["catch"](function(a){e.error(a)})},a.createItem=function(){var b=angular.copy(a.item);return b.transport&&(b.transport=b.transport.join(",")),a.item.allow&&(b.allow=b.allow.join(";")),g.save(b).$promise.then(function(){c.path("/staff/telephones/list")})["catch"](function(a){e.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.staff.telephones.wizard",{url:"/wizard",templateUrl:"app/staff/telephone/wizard/wizard.html",controller:"TelephoneWizardCtrl"})}]),angular.module("xCallyShuttleApp").controller("UserListCtrl",["$scope","$timeout","User","Auth","gridOptions",function(a,b,c,d,e){function f(a){if(a){var b=_.words(a),c=_.map(b,function(a){return a?a[0]:""});return c.join("").toUpperCase()}return!1}a.getUserAvatar=function(a,c,d){b(function(){angular.element("#userImg"+a).avatar({useGravatar:!1,initials:d?[]:f(c),fallbackImage:"api/users/avatar/"+d,size:80})})},a.isAdmin=function(a){return"admin"===a},a.initView=function(){var b={exporterCsvFilename:"users.csv",columnDefs:[{name:"fullname"},{name:"name",displayName:"APPLICATION_USERNAME"},{name:"internal"},{name:"email"},{name:"description"},{name:"action",width:100,buttons:[{"class":"blue-hoki",href:"/staff/users/view/{{row.entity.id}}/account",name:"profile"},{"class":"green-meadow",href:"/staff/users/view/{{row.entity.id}}/permit/voice",name:"permits",hide:"grid.appScope.isAdmin(row.entity.role)"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.fullname, row.entity.id)"}]}]};a.gridOptions=e.gridOptions(c,b,a)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.staff.users.list",{url:"/list",templateUrl:"app/staff/user/list/list.html",controller:"UserListCtrl"})}]),angular.module("xCallyShuttleApp").factory("Module",["$resource",function(a){return a("/api/modules/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("User",["$resource",function(a){return a("/api/users/:id/:controller/:controller2/:controller3",{id:"@id"},{changePassword:{method:"PUT",params:{controller:"password"}},update:{method:"PUT"},me:{method:"GET",params:{id:"me"}}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.staff.users",{url:"/users",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("UserViewCtrl",["$scope","$stateParams","$cookieStore","$translate","FileUploader","User","Auth","xAlert","MailQueue","VoiceQueue","ChatQueue","FaxQueue","SmsQueue","OpenChannelQueue","Team","Module","Setting","$location",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){function s(a,b){var c,d,e=b.length;for(c=0;e>c;c++){if(b[c].id===a)return b[c];if(b[c].SubModules&&b[c].SubModules.length&&(d=s(a,b[c].SubModules)))return d}}function t(b){var c=s(b.ModuleId,a.modules);if(b.status===!0)c.status=!0;else{var d=_.filter(c.SubModules,{status:!0});d.length||(c.status=!1)}c.ModuleId&&t(c)}function u(a,b){a.forEach(function(a){a.status=b,a.SubModules&&a.SubModules.length&&u(a.SubModules,b)})}function v(a,b){b.forEach(function(b){_.find(a,{id:b.id})?b.status=!0:b.status=!1,b.SubModules&&b.SubModules.length&&v(a,b.SubModules)})}function w(a,b){return a=_.union(a,_.map(_.filter(b,{status:!0}),"id")),b.forEach(function(b){b.SubModules&&b.SubModules.length&&(a=_.union(a,w(a,b.SubModules)))}),a}a.Auth=g,a._=_,a.forms={},a.moduleSwitch={onText:"On",offText:"Off",isActive:!0,size:"mini",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.checkUser=function(){var a=g.getCurrentUser();g.isAdmin()||Number(b.id)===a.id||r.path("main.dashboard.voice")},a.initVoiceQueues=function(){var a={},c={};return j.get().$promise.then(function(c){return a.queues=_.map(c.rows,function(a){return{name:a.name}}),f.query({id:b.id,controller:"allowed",controller2:"voice",controller3:"queues"}).$promise}).then(function(a){c.queues=_.map(a,function(a){return{name:a.name}})}).then(function(){ComponentsDropdowns.bindPermit(a,c,"voice",b.id,f)})["catch"](function(a){console.error(a)})},a.initChatQueues=function(){var a={},c={};return k.get().$promise.then(function(c){return a.queues=_.map(c.rows,function(a){return{id:a.id,name:a.name}}),f.query({id:b.id,controller:"allowed",controller2:"chat",controller3:"queues"}).$promise}).then(function(a){c.queues=_.map(a,function(a){return{id:a.id,name:a.name}})}).then(function(){ComponentsDropdowns.bindPermit(a,c,"chat",b.id,f)})["catch"](function(a){console.error(a)})},a.initMailQueues=function(){var a={},c={};return i.get().$promise.then(function(c){return a.queues=_.map(c.rows,function(a){return{id:a.id,name:a.name}}),f.query({id:b.id,controller:"allowed",controller2:"mail",controller3:"queues"}).$promise}).then(function(a){c.queues=_.map(a,function(a){return{id:a.id,name:a.name}})}).then(function(){ComponentsDropdowns.bindPermit(a,c,"mail",b.id,f)})["catch"](function(a){console.error(a)})},a.initSmsQueues=function(){var a={},c={};return m.get().$promise.then(function(c){return a.queues=_.map(c.rows,function(a){return{id:a.id,name:a.name}}),f.query({id:b.id,controller:"allowed",controller2:"sms",controller3:"queues"}).$promise}).then(function(a){c.queues=_.map(a,function(a){return{id:a.id,name:a.name}})}).then(function(){ComponentsDropdowns.bindPermit(a,c,"sms",b.id,f)})["catch"](function(a){console.error(a)})},a.initFaxQueues=function(){var a={},c={};return l.get().$promise.then(function(c){return a.queues=_.map(c.rows,function(a){return{id:a.id,name:a.name}}),f.query({id:b.id,controller:"allowed",controller2:"fax",controller3:"queues"}).$promise}).then(function(a){c.queues=_.map(a,function(a){return{id:a.id,name:a.name}})}).then(function(){ComponentsDropdowns.bindPermit(a,c,"fax",b.id,f)})["catch"](function(a){console.error(a)})},a.initOpenchannelQueues=function(){var a={},c={};return n.get().$promise.then(function(c){return a.queues=_.map(c.rows,function(a){return{id:a.id,name:a.name}}),f.query({id:b.id,controller:"allowed",controller2:"openchannel",controller3:"queues"}).$promise}).then(function(a){c.queues=_.map(a,function(a){return{id:a.id,name:a.name}})}).then(function(){ComponentsDropdowns.bindPermit(a,c,"openchannel",b.id,f)})["catch"](function(a){console.error(a)})},a.initView=function(){return f.get({id:b.id}).$promise.then(function(b){return a.user=b,a.user.transport=a.user.transport?a.user.transport.split(","):[],a.user.allow=a.user.allow?a.user.allow.split(";"):[],q.get({id:1}).$promise}).then(function(b){a.setting=b})["catch"](function(a){h.error(a)})},a.updateItem=function(){var c=angular.copy(a.user);return delete c.password,delete c.md5secret,c.transport=c.transport.join(","),c.allow=c.allow.join(";"),f.update({id:b.id},c).$promise.then(function(){h.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){h.error(a)})},a.updatePassword=function(){var c={newPassword:a.user.newPwd};return g.isAdmin()?c.id=b.id:c.oldPassword=a.user.currentPwd,f.changePassword(c).$promise.then(function(){h.show(d.instant("MESSAGE_WELL_DONE"),"success"),a.user.newPwd="",a.user.reNewPwd="",a.user.currentPwd="",a.forms.changePwd.$setPristine(),a.forms.changePwd.$setUntouched()})["catch"](function(a){h.error(a)})};var x=a.uploader=new e({url:"api/users/"+b.id+"/avatar",queueLimit:1,withCredentials:!0,headers:{Authorization:"Bearer "+c.get("token")}});x.filters.push({name:"imageFilter",fn:function(a){var b="|"+a.type.slice(a.type.lastIndexOf("/")+1)+"|";return-1!=="|jpg|png|jpeg|".indexOf(b)}}),a.getModules=function(){return a.associatedModules=[],p.get().$promise.then(function(c){return a.modules=_.filter(c.rows,function(a){return!a.ModuleId}),f.query({id:b.id,controller:"allowed",controller2:"modules"}).$promise}).then(function(b){v(b,a.modules)})["catch"](function(a){h.error(a)})},a.updatePermissions=function(c){c.ModuleId&&t(c),c.SubModules&&c.SubModules.length&&u(c.SubModules,c.status);var e=w([],a.modules);return f.save({id:b.id,controller:"allowed",controller2:"modules"},{modules:e}).$promise.then(function(){h.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){h.error(a)})},x.onSuccessItem=function(b,c){a.user.userpic=c.userpic,a.user.id===g.getCurrentUser().id&&(g.getCurrentUser().userpic=c.userpic),h.show(d.instant("MESSAGE_WELL_DONE"),"success")},x.onErrorItem=function(){h.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")},x.onCompleteAll=function(){x.clearQueue()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.staff.users.view",{url:"/view/:id",templateUrl:"app/staff/user/view/view.html",controller:"UserViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.staff.users.view.account",{url:"/account",templateUrl:"app/staff/user/view/view.account.html",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css","assets/scripts/jquery.sparkline.min.js","assets/plugins/bootstrap-fileinput/bootstrap-fileinput.js","assets/scripts/profile.js"]})}]}}).state("main.staff.users.view.voice",{url:"/voice",templateUrl:"app/staff/user/view/view.voice.html",data:{permissions:{only:["admin"],redirectTo:"main.dashboard.voice"}}}).state("main.staff.users.view.permit",{url:"/permit",templateUrl:"app/staff/user/view/view.permit.html",data:{permissions:{only:["admin"],redirectTo:"main.dashboard.voice"}},cache:!1,serie:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}}).state("main.staff.users.view.permit.voice",{url:"/voice",templateUrl:"app/staff/user/view/view.permit.voice.html",data:{permissions:{only:["admin"],redirectTo:"main.dashboard.voice"}}}).state("main.staff.users.view.permit.chat",{url:"/chat",templateUrl:"app/staff/user/view/view.permit.chat.html",data:{permissions:{only:["admin"],redirectTo:"main.dashboard.chat"}}}).state("main.staff.users.view.permit.mail",{url:"/mail",templateUrl:"app/staff/user/view/view.permit.mail.html",data:{permissions:{only:["admin"],redirectTo:"main.dashboard.mail"}}}).state("main.staff.users.view.permit.fax",{url:"/fax",templateUrl:"app/staff/user/view/view.permit.fax.html",data:{permissions:{only:["admin"],redirectTo:"main.dashboard.fax"}}}).state("main.staff.users.view.permit.sms",{url:"/sms",templateUrl:"app/staff/user/view/view.permit.sms.html",data:{permissions:{only:["admin"],redirectTo:"main.dashboard.sms"}}}).state("main.staff.users.view.permit.openchannel",{url:"/openchannel",templateUrl:"app/staff/user/view/view.permit.openchannel.html",data:{permissions:{only:["admin"],redirectTo:"main.dashboard.openchannel"}}}).state("main.staff.users.view.permit.modules",{url:"/modules",templateUrl:"app/staff/user/view/view.permit.modules.html",data:{permissions:{only:["admin"],redirectTo:"main.dashboard.voice"}}})}]),angular.module("xCallyShuttleApp").controller("UserWizardCtrl",["$scope","$location","WizardHandler","xAlert","$translate","User","Setting","Auth",function(a,b,c,d,e,f,g,h){a.initWizard=function(){return a.Auht=h,a.forms={info:void 0,voice:void 0},a.item={role:"user",host:"dynamic",context:"from-sip"},g.get({controller:"internal"}).$promise.then(function(b){return a.item.internal=b.value,g.get({id:1}).$promise}).then(function(b){a.setting=b})["catch"](function(a){d.error(a)})},a.next=function(){c.wizard().next()},a.exitValidation=function(a){return a},a.createItem=function(){return f.save(a.item).$promise.then(function(a){b.path("user"===a.role?"/staff/users/view/"+a.id+"/permit/voice":"/staff/users/view/"+a.id+"/account")})["catch"](function(a){d.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.staff.users.wizard",{url:"/wizard",templateUrl:"app/staff/user/wizard/wizard.html",controller:"UserWizardCtrl"})}]),angular.module("xCallyShuttleApp").controller("SugarcrmListCtrl",["$scope","SugarcrmAccount","gridOptions","xAlert","$translate",function(a,b,c,d,e){a.initView=function(){var d={exporterCsvFilename:"sugarcrm_account.csv",columnDefs:[{name:"name",displayName:"APPLICATION_NAME"},{name:"username"},{name:"remoteUri",displayName:"APPLICATION_URI"},{name:"action",width:250,buttons:[{"class":"blue-hoki",href:"/sugarcrm/view/{{row.entity.id}}/account",name:"profile"},{"class":"green-jungle",name:"check",onClick:"grid.appScope.checkAccount(row.entity.id)"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=c.gridOptions(b,d,a)},a.checkAccount=function(a){return b.get({id:a,controller:"check"}).$promise.then(function(){d.show(e.instant("MESSAGE_ACCOUNT_VERIFIED"),"success")})["catch"](function(){d.show(e.instant("MESSAGE_ACCOUNT_INVALID"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.sugarcrm.list",{url:"/list",templateUrl:"app/sugarcrm/list/list.html",controller:"SugarcrmListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").factory("SugarcrmAccount",["$resource",function(a){return a("/api/sugarcrm/accounts/:id/:controller",{id:"@id"},{update:{method:"PUT"},fields:{params:{controller:"fields"},isArray:!0},moduleFields:{params:{controller:"fields"},isArray:!0},check:{params:{controller:"check"}},modules:{params:{controller:"modules"},isArray:!0}})}]).factory("SugarcrmConfiguration",["$resource",function(a){return a("/api/sugarcrm/accounts/:accountId/configurations/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]).factory("SugarcrmField",["$resource",function(a){return a("/api/sugarcrm/accounts/:accountId/configurations/:configurationId/fields/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.sugarcrm",{url:"/sugarcrm",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin"],redirectTo:"main.dashboard.voice"}}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.sugarcrm.view.configurations",{url:"/configurations",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("SugarcrmViewConfigurationListCtrl",["$scope","$stateParams","$translate","gridOptions","SugarcrmConfiguration","$uibModal",function(a,b,c,d,e,f){a.initView=function(){var c={exporterCsvFilename:"sugarcrm_configurations.csv",columnDefs:[{name:"name"},{name:"description"},{name:"action",width:125,buttons:[{"class":"blue-hoki",href:"/sugarcrm/view/{{row.entity.AccountId}}/configurations/view/{{row.entity.id}}",name:"profile"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=d.gridOptions(e,c,a,{accountId:b.id})},a.createItem=function(){var b=f.open({animation:!0,templateUrl:"app/sugarcrm/view/configuration/list/create.modal.html",controller:"SugarcrmCreateConfigurationCtrl"});b.result.then(function(){a.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("SugarcrmCreateConfigurationCtrl",["$scope","$translate","$uibModalInstance","SugarcrmConfiguration","xAlert","$stateParams","channel",function(a,b,c,d,e,f,g){a.form={},a.item={},a.channels=g,a.item.channel="voice",a.item.type="Queue",a.save=function(){return d.save({accountId:f.id},a.item).$promise.then(function(a){e.show(b.instant("MESSAGE_WELL_DONE"),"success"),c.close(a)})["catch"](function(a){e.error(a)})},a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.sugarcrm.view.configurations.list",{url:"/list",templateUrl:"app/sugarcrm/view/configuration/list/list.html",controller:"SugarcrmViewConfigurationListCtrl"})}]),angular.module("xCallyShuttleApp").controller("SugarcrmViewConfigurationViewCtrl",["$scope","$filter","$stateParams","$translate","socket","variable","xAlert","SugarcrmAccount","SugarcrmConfiguration","SugarcrmField","Variable","usSpinnerService",function(a,b,c,d,e,f,g,h,i,j,k,l){a.$on("$destroy",function(){e.unsyncUpdates("sugarcrm_field")}),a.config={autoHideScrollbar:!1,theme:"dark",advanced:{updateOnContentResize:!0},setHeight:300,scrollInertia:0},a.fieldType=[{type:"string",title:"String"},{type:"variable",title:"Variable"},{type:"customVariable",title:"Custom Variable"}],a.descFieldType=[{type:"string",title:"String"},{type:"keyValue",title:"Key Value"}],a.defaultMappingSwitch={onText:"On",offText:"Off",isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.groupVariableByGroup=function(a){switch(a.group){case"voice_queue":return"Voice: Queue";default:return"Other"}},a.initView=function(){a.configurationName="",a.subjectConfig=[],a.descriptionConfig=[], +a.fieldConfig=[],a.variables=f,a.mapping={}},a.getConfiguration=function(){return i.get({accountId:c.id,id:c.configurationId}).$promise.then(function(b){a.configurationName=b.name,a.subjectConfig=b.Subject,a.descriptionConfig=b.Description,a.fieldConfig=b.Field,a.mapping.defaultMapping=b.defaultMapping,a.mapping.mappingModule=b.mappingModule,a.mapping.mappingFields=b.mappingFields,a.getModuleFields(),e.socket.on("sugarcrm_field:remove",function(b){_.remove(a.subjectConfig,{id:b.id}),_.remove(a.descriptionConfig,{id:b.id}),_.remove(a.fieldConfig,{id:b.id})})})["catch"](function(a){g.error(a)})},a.getCustomVariables=function(){return k.get().$promise.then(function(b){a.customVariables=b.rows})["catch"](function(a){g.error(a)})},a.getFields=function(){return h.fields({id:c.id}).$promise.then(function(c){a.accountFields=_.sortBy(b("sugarcrm")(c),["name"]),_.forEach(c,function(a){a.options=_.toArray(a.options)})})["catch"](function(a){g.error(a)})},a.getModules=function(){return h.modules({id:c.id}).$promise.then(function(b){a.accountModules=b})["catch"](function(a){g.error(a)})},a.getModuleFields=function(){return!a.mapping.defaultMapping&&a.mapping.mappingModule?h.moduleFields({id:c.id,module:a.mapping.mappingModule}).$promise.then(function(b){a.moduleFields=b})["catch"](function(a){g.error(a)})["finally"](function(){l.stop("spinner-grid")}):void 0},a.addItem=function(b){var d={};switch(b){case"subject":case"description":d={type:"string",content:""};break;case"field":d={content:""}}return i.save({accountId:c.id,id:c.configurationId,controller:b},d).$promise.then(function(c){switch(b){case"subject":a.subjectConfig.push(c);break;case"description":a.descriptionConfig.push(c);break;case"field":a.fieldConfig.push(c)}})["catch"](function(a){g.error(a)})},a.changeType=function(b){"variable"===b.type?(b.content="",b.variableName=""):"string"===b.type?(b.VariableId=null,b.variableName=""):"customVariable"===b.type&&(b.VariableId=null,b.content=""),a.updateField(b)},a.updateField=function(a){return j.update({accountId:c.id,configurationId:c.configurationId,id:a.id},a).$promise.then(function(){})["catch"](function(a){g.error(a)})},a.removeItem=function(a){return j["delete"]({accountId:c.id,configurationId:c.configurationId,id:a.id}).$promise.then(function(){g.show(d.instant("MESSAGE_WELL_DONE")+"!","success")})["catch"](function(a){g.error(a)})},a.changeFieldType=function(b){b.content="",b.variableName="",b.nameField="",b.VariableId=null,a.updateField(b)},a.changeDescType=function(b){"keyValue"===b.type?(b.content="","string"===b.keyType?(b.VariableId=null,b.variableName=""):"variable"===b.keyType?(b.keyContent="",b.VariableId=null):"customVariable"===b.keyType&&(b.keyContent="",b.variableName="")):"string"===b.type&&(b.VariableId=null,b.variableName="",b.key="",b.keyContent=""),a.updateField(b)},a.getSystemFieldOptions=function(b){if(b){var c=_.find(a.accountFields,"name",b);return c?c.options.length>0?c.options:null:void 0}},a.updateMapping=function(){return a.mapping.defaultMapping&&(a.mapping.mappingModule=null,a.mapping.mappingFields=[]),i.update({accountId:c.id,id:c.configurationId},a.mapping).$promise.then(function(){g.show(d.instant("MESSAGE_WELL_DONE")+".","success")})["catch"](function(a){g.error(a)})},a.updateMappingModule=function(){l.spin("spinner-grid"),a.mapping.mappingFields=[],a.getModuleFields()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.sugarcrm.view.configurations.view",{url:"/view/:configurationId",templateUrl:"app/sugarcrm/view/configuration/view/view.html",controller:"SugarcrmViewConfigurationViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("SugarcrmViewCtrl",["$scope","$http","$stateParams","$translate","$location","$filter","WizardHandler","socket","xAlert","Modal","SugarcrmAccount",function(a,b,c,d,e,f,g,h,i,j,k){a.initView=function(){return k.get({id:c.id}).$promise.then(function(b){a.account=b})["catch"](function(a){i.error(a)})},a.updateItem=function(){return k.update({id:c.id},a.account).$promise.then(function(){i.show(d.instant("MESSAGE_WELL_DONE")+".","success")})["catch"](function(a){i.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.sugarcrm.view",{url:"/view/:id",templateUrl:"app/sugarcrm/view/view.html",controller:"SugarcrmViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.sugarcrm.view.account",{url:"/account",templateUrl:"app/sugarcrm/view/view.account.html"})}]),angular.module("xCallyShuttleApp").controller("SugarcrmkWizardCtrl",["$scope","$http","$location","$translate","xAlert","WizardHandler","SugarcrmAccount",function(a,b,c,d,e,f,g){a.translate=d,a.initWizard=function(){a.$translate=d,a.forms={},a.item={},a.item.serverUrl=c.protocol()+"://"+location.host},a.next=function(){f.wizard().next()},a.exitValidation=function(a){return a},a.createItem=function(){return g.save(a.item).$promise.then(function(){e.show(d.instant("MESSAGE_WELL_DONE")+".","success"),c.path("/sugarcrm/list")})["catch"](function(a){e.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.sugarcrm.wizard",{url:"/wizard",templateUrl:"app/sugarcrm/wizard/wizard.html",controller:"SugarcrmkWizardCtrl"})}]),angular.module("xCallyShuttleApp").factory("CannedAnswer",["$resource",function(a){return a("/api/answers/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.answers",{url:"/answers",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:58}}})}]),angular.module("xCallyShuttleApp").controller("AnswerListCtrl",["$scope","$uibModal","CannedAnswer","gridOptions",function(a,b,c,d){a.initView=function(){var b={exporterCsvFilename:"answers.csv",columnDefs:[{name:"key",displayName:"APPLICATION_KEY"},{name:"value"},{name:"description"},{name:"action",width:75,buttons:[{"class":"blue-hoki",href:"/tools/answers/view/{{row.entity.id}}/settings",name:"settings"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.key, row.entity.id)"}]}]};a.gridOptions=d.gridOptions(c,b,a)},a.createItem=function(){b.open({animation:!0,templateUrl:"app/tools/answer/list/list.create.modal.html",controller:"AnswerListCreateCtrl"}).result.then(function(b){a.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("AnswerListCreateCtrl",["$scope","$translate","$uibModalInstance","CannedAnswer","xAlert",function(a,b,c,d,e){a.form={},a.item={},a.save=function(){return d.save(a.item).$promise.then(function(a){e.show(b.instant("MESSAGE_WELL_DONE"),"success"),c.close(a)})["catch"](function(a){e.error(a)})},a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.answers.list",{url:"/list",templateUrl:"app/tools/answer/list/list.html",controller:"AnswerListCtrl"})}]),angular.module("xCallyShuttleApp").controller("AnswerViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","$location","CannedAnswer",function(a,b,c,d,e,f,g){a.getAnswer=function(){return g.get({id:e.id}).$promise.then(function(b){a.answer=b})["catch"](function(a){c.error(a)})},a.updateAnswer=function(){var b=angular.copy(a.answer);return g.update({id:e.id},b).$promise.then(function(){c.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){c.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.answers.view",{url:"/view/:id",templateUrl:"app/tools/answer/view/view.html",controller:"AnswerViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.tools.answers.view.settings",{url:"/settings",templateUrl:"app/tools/answer/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").factory("Automation",["$resource",function(a){return a("/api/automations/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.automations",{url:"/automations",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:51}}})}]),angular.module("xCallyShuttleApp").controller("AutomationListCtrl",["$scope","$http","$translate","xAlert","Automation","gridOptions",function(a,b,c,d,e,f){a.onText="On",a.offText="Off",a.isActive=!0,a.size="mini",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.initView=function(){var b={exporterCsvFilename:"Automations.csv",columnDefs:[{name:"name"},{name:"description"},{name:"channel"},{name:"status",cellTemplate:'<div class="centered-uigrid-td"><input data-ng-change="grid.appScope.updateItem(row.entity)", bs-switch ng-model="row.entity.status" type="checkbox" switch-active="{{ grid.appScope.isActive }}" switch-on-text="{{ grid.appScope.onText }}" switch-off-text="{{ grid.appScope.offText }}" switch-on-color="{{ grid.appScope.onColor }}" switch-off-color="{{ grid.appScope.offColor }}" switch-animate="{{ grid.appScope.animate }}" switch-size="{{ grid.appScope.size }}" switch-label="{{ grid.appScope.label }}" switch-icon="{{ grid.appScope.icon }}" switch-radio-off="{{ grid.appScope.radioOff }}" switch-label-width="{{ grid.appScope.labelWidth }}" switch-handle-width="{{ grid.appScope.handleWidth }}"></div>',width:100,enableFiltering:!1},{name:"action",width:75,buttons:[{"class":"blue-hoki",href:"/tools/automations/view/{{row.entity.id}}/settings",name:"settings"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=f.gridOptions(e,b,a)},a.updateItem=function(a){return e.update({id:a.id},a).$promise.then(function(){d.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){console.error(a),d.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.automations.list",{url:"/list",templateUrl:"app/tools/automation/list/list.html",controller:"AutomationListCtrl"})}]),angular.module("xCallyShuttleApp").controller("AutomationViewCtrl",["$scope","$stateParams","$http","$translate","xAlert","automations","Automation","$location",function(a,b,c,d,e,f,g,h){a.$automations=f,a.recordSwitch={onText:"On",offText:"Off",isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.forms={general:{}},a.addCondition=function(b){a.automation[b].push({field:"",operator:"",value:""})},a.removeCondition=function(b,c){a.automation[b].splice(c,1)},a.addAction=function(){a.automation.Actions.push({action:"",data1:"",data2:"",data3:"",data4:"",data5:""})},a.resetActionData=function(a){a.data1="",a.data2="",a.data3="",a.data4="",a.data5=""},a.removeAction=function(b){a.automation.Actions.splice(b,1)},a.initView=function(){return g.get({id:b.id}).$promise.then(function(b){a.automation=b})["catch"](function(a){e.error(a),h.path("/tools/automations/list")})},a.updateAutomation=function(){return g.update({id:b.id},a.automation).$promise.then(function(){e.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){console.error(a),e.error(a)})},a.exitValidation=function(b){return console.log(b&&(a.automation.All.length||a.automation.Any.length)&&a.automation.Actions.length),!(!b||!a.automation.All.length&&!a.automation.Any.length||!a.automation.Actions.length)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.automations.view",{url:"/view/:id",templateUrl:"app/tools/automation/view/view.html",controller:"AutomationViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]})}]}}).state("main.tools.automations.view.settings",{url:"/settings",templateUrl:"app/tools/automation/view/view.settings.html"}).state("main.tools.automations.view.routes",{url:"/routes",templateUrl:"app/tools/automation/view/view.routes.html"}).state("main.tools.automations.view.application",{url:"/application",templateUrl:"app/tools/automation/view/view.application.html"})}]),angular.module("xCallyShuttleApp").controller("AutomationWizardCtrl",["$scope","$http","$location","xAlert","automations","WizardHandler","Automation",function(a,b,c,d,e,f,g){a.$automations=e,a.statusSwitch={onText:"On",offText:"Off",isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.tempData={voice:{},mail:{},chat:{},fax:{}},a.item={All:[],Any:[],Actions:[]},a.forms={general:void 0,settings:void 0},a.addCondition=function(b){a.item[b].push({field:"",operator:"",value:""})},a.removeCondition=function(b,c){a.item[b].splice(c,1)},a.addAction=function(){a.item.Actions.push({action:"",data1:"",data2:"",data3:"",data4:"",data5:""})},a.resetActionData=function(a){a.data1="",a.data2="",a.data3="",a.data4="",a.data5=""},a.removeAction=function(b){a.item.Actions.splice(b,1)},a.$watch("item.channel",function(b,c){c&&(a.tempData[c].All=_.clone(a.item.All,!0),a.tempData[c].Any=_.clone(a.item.Any,!0),a.tempData[c].Actions=_.clone(a.item.Actions,!0)),a.item.All=a.tempData[b].All?a.tempData[b].All:[],a.item.Any=a.tempData[b].Any?a.tempData[b].Any:[],a.item.Actions=a.tempData[b].Actions?a.tempData[b].Actions:[]},!0),a.item.channel="mail",a.createItem=function(){return g.save(a.item).$promise.then(function(){c.path("/tools/automations/list")})["catch"](function(a){console.error(a),d.error(a)})},a.next=function(){f.wizard().next()},a.previous=function(){f.wizard().previous()},a.exitValidation=function(a){return a},a.exitSettingsValidation=function(b){return!(!b||!a.item.All.length&&!a.item.Any.length||!a.item.Actions.length)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.automations.wizard",{url:"/wizard",templateUrl:"app/tools/automation/wizard/wizard.html",controller:"AutomationWizardCtrl"})}]),angular.module("xCallyShuttleApp").factory("Interval",["$resource",function(a){return a("/api/intervals/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]).factory("SubInterval",["$resource",function(a){return a("/api/intervals/:intervalId/subintervals/:id",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.intervals",{url:"/intervals",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:53}}})}]),angular.module("xCallyShuttleApp").controller("IntervalListCtrl",["$scope","$uibModal","Interval","gridOptions",function(a,b,c,d){a.initView=function(){var b={exporterCsvFilename:"intervals.csv",columnDefs:[{name:"name"},{name:"description"},{name:"action",width:75,buttons:[{"class":"blue-hoki",href:"/tools/intervals/view/{{row.entity.id}}/settings",name:"settings"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=d.gridOptions(c,b,a)},a.createItem=function(){var c=b.open({animation:!0,templateUrl:"app/tools/interval/list/list.create.modal.html",controller:"IntervalListCreateCtrl"});c.result.then(function(b){console.log(b),a.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("IntervalListCreateCtrl",["$scope","$translate","$uibModalInstance","Interval","xAlert",function(a,b,c,d,e){a.form={},a.item={},a.save=function(){return d.save(a.item).$promise.then(function(a){e.show(b.instant("MESSAGE_WELL_DONE"),"success"),c.close(a)})["catch"](function(a){e.error(a)})},a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.intervals.list",{url:"/list",templateUrl:"app/tools/interval/list/list.html",controller:"IntervalListCtrl"})}]),angular.module("xCallyShuttleApp").controller("IntervalViewSubintervalsListCtrl",["$scope","$stateParams","gridOptions","SubInterval","$translate","$uibModal",function(a,b,c,d,e,f){a.stateParams=b,a.initView=function(){var e={exporterCsvFilename:"tools_interval.csv",enableSelectAll:!1,enableRowSelection:!1,multiSelect:!1,columnDefs:[{name:"name"},{name:"interval"},{name:"action",width:125,buttons:[{"class":"blue-hoki",href:"/tools/intervals/view/{{row.entity.IntervalId}}/subintervals/view/{{row.entity.id}}",name:"profile"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=c.gridOptions(d,e,a,{intervalId:b.id})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.intervals.view.subintervals.list",{url:"/list",templateUrl:"app/tools/interval/view/subinterval/list/list.html",controller:"IntervalViewSubintervalsListCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.intervals.view.subintervals",{url:"/subintervals",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("IntervalViewSubintervalsViewCtrl",["$scope","$stateParams","WizardHandler","SubInterval","xAlert","$location","$translate","Interval",function(a,b,c,d,e,f,g,h){function i(b){var c,d,e,f;c=b.t_from&&b.t_to&&!b.alwaysTime?moment(b.t_from).format("HH:mm")+"-"+moment(b.t_to).format("HH:mm"):"*",b.wd_from&&"always"!==b.wd_from?(d=b.wd_from,b.wd_to&&"always"!==b.wd_to&&(d+="-"+b.wd_to)):d="*",b.md_from&&"always"!==b.md_from?(e=b.md_from,b.md_to&&"always"!==b.md_to&&(e+="-"+b.md_to)):e="*",b.m_from&&"always"!==b.m_from?(f=b.m_from,b.m_to&&"always"!==b.m_to&&(f+="-"+b.m_to)):f="*",a.subinterval&&(a.subinterval.interval=c+","+d+","+e+","+f)}a.isNewSubinterval=!1,a["switch"]={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.initSubInterval=function(){return b.subintervalId?(a.isNewSubinterval=!1,a.splittedInterval={t_from:moment(new Date),t_to:moment(new Date)},d.get({id:b.subintervalId,intervalId:b.id}).$promise.then(function(b){a.subinterval=b;var c,d=a.subinterval?a.subinterval.interval.split(","):["*","*","*","*"];d.forEach(function(b,d){switch(d){case 0:"*"!==b?(c=b.split("-"),a.splittedInterval.t_from=moment(c[0],"HH:mm"),a.splittedInterval.t_to=moment(c[1],"HH:mm"),a.splittedInterval.alwaysTime=!1):(a.splittedInterval.t_from=moment(new Date),a.splittedInterval.t_to=moment(new Date),a.splittedInterval.alwaysTime=!0);break;case 1:"*"!==b?(c=b.split("-"),a.splittedInterval.wd_from=c[0],a.splittedInterval.wd_to=c[1]?c[1]:"always"):(a.splittedInterval.wd_from="always",a.splittedInterval.wd_to="always");break;case 2:"*"!==b?(c=b.split("-"),a.splittedInterval.md_from=c[0],a.splittedInterval.md_to=c[1]?c[1]:"always"):(a.splittedInterval.md_from="always",a.splittedInterval.md_to="always");break;case 3:"*"!==b?(c=b.split("-"),a.splittedInterval.m_from=c[0],a.splittedInterval.m_to=c[1]?c[1]:"always"):(a.splittedInterval.m_from="always",a.splittedInterval.m_to="always")}})})["catch"](function(a){e.error(a),f.path("/tools/intervals/list")})):(a.isNewSubinterval=!0,a.subinterval={},a.splittedInterval={t_from:moment(new Date),t_to:moment(new Date),wd_from:"always",wd_to:"always",md_from:"always",md_to:"always",m_from:"always",m_to:"always",alwaysTime:!0},void 0)},a.next=function(){c.wizard().next()},a.previous=function(){c.wizard().previous()},a.exitValidation=function(a){return a},a.$watch("splittedInterval",function(a){a&&i(a)},!0),a.addOrUpdateSubInterval=function(){return a.isNewSubinterval?d.save({intervalId:b.id},a.subinterval).$promise.then(function(){e.show(g.instant("MESSAGE_WELL_DONE")+".","success"),f.path("/tools/intervals/view/"+b.id+"/subintervals/list")})["catch"](function(a){e.error(a)}):h.update({id:b.subintervalId},a.subinterval).$promise.then(function(){e.show(g.instant("MESSAGE_WELL_DONE")+".","success"),f.path("/tools/intervals/view/"+b.id+"/subintervals/list")})["catch"](function(a){e.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.intervals.view.subintervals.view",{url:"/view/:subintervalId",templateUrl:"app/tools/interval/view/subinterval/view/view.html",controller:"IntervalViewSubintervalsViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("IntervalViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","socket","$location","WizardHandler","Modal","interval","Interval",function(a,b,c,d,e,f,g,h,i,j,k){function l(b){var c,d,e,f;c=b.t_from&&b.t_to&&!b.alwaysTime?moment(b.t_from).format("HH:mm")+"-"+moment(b.t_to).format("HH:mm"):"*",b.wd_from&&"always"!==b.wd_from?(d=b.wd_from,b.wd_to&&"always"!==b.wd_to&&(d+="-"+b.wd_to)):d="*",b.md_from&&"always"!==b.md_from?(e=b.md_from,b.md_to&&"always"!==b.md_to&&(e+="-"+b.md_to)):e="*",b.m_from&&"always"!==b.m_from?(f=b.m_from,b.m_to&&"always"!==b.m_to&&(f+="-"+b.m_to)):f="*",void 0!==a.selectedSubInterval?a.interval.SubIntervals[a.selectedSubInterval].interval=c+","+d+","+e+","+f:a.subinterval.interval=c+","+d+","+e+","+f}a.$translate=d,a.$interval=j.interval,a.selectedSubInterval=void 0,a["switch"]={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.gridOptions={columnDefs:[{name:"name",displayName:"APPLICATION_NAME",headerCellFilter:"translate"},{name:"interval",displayName:"APPLICATION_INTERVAL",headerCellFilter:"translate"},{name:"action",displayName:"APPLICATION_ACTION",headerCellFilter:"translate",width:125,cellTemplate:'<a class="btn btn-xs blue-hoki" data-ng-click="grid.appScope.openSubInterval(grid.appScope.gridOptions.data.indexOf(row.entity))">{{\'APPLICATION_SETTINGS\' | translate}}</a><a class="btn btn-xs red-sunglo" data-ng-click="grid.appScope.deleteSubInterval(row.entity.name+\' interval\', grid.appScope.gridOptions.data.indexOf(row.entity))">{{\'APPLICATION_DELETE\' | translate}}</a>'}]},a.forms={subinterval:void 0,general:void 0},a.initSubInterval=function(b){b&&(a.selectedSubInterval=void 0),a.subinterval={},a.splittedInterval={t_from:moment(new Date),t_to:moment(new Date),wd_from:"always",wd_to:"always",md_from:"always",md_to:"always",m_from:"always",m_to:"always",alwaysTime:!0}},a.next=function(){h.wizard().next()},a.previous=function(){h.wizard().previous()},a.exitValidation=function(a){return a},a.deselectAndRedirect=function(b){a.selectedSubInterval=void 0,g.path(b)},a.getInterval=function(){return k.get({id:e.id}).$promise.then(function(b){a.interval=b})["catch"](function(a){c.error(a),g.path("/tools/intervals/list")})},a.openSubInterval=function(b){a.selectedSubInterval=b,g.path("/tools/intervals/view/"+e.id+"/subintervals/settings")},a.updateInterval=function(){var b={name:a.interval.name,description:a.interval.description};return k.update({id:e.id},b).$promise.then(function(){c.show(d.instant("MESSAGE_WELL_DONE")+".","success")})["catch"](function(a){c.error(a)})},a.getSubInterval=function(){void 0===a.selectedSubInterval&&g.path("/tools/intervals/list"),a.splittedInterval={t_from:moment(new Date),t_to:moment(new Date)};var b,c=a.interval.SubIntervals[a.selectedSubInterval]?a.interval.SubIntervals[a.selectedSubInterval].interval.split(","):["*","*","*","*"];c.forEach(function(c,d){switch(d){case 0:"*"!==c?(b=c.split("-"),a.splittedInterval.t_from=moment(b[0],"HH:mm"),a.splittedInterval.t_to=moment(b[1],"HH:mm"),a.splittedInterval.alwaysTime=!1):(a.splittedInterval.t_from=moment(new Date),a.splittedInterval.t_to=moment(new Date),a.splittedInterval.alwaysTime=!0);break;case 1:"*"!==c?(b=c.split("-"),a.splittedInterval.wd_from=b[0],a.splittedInterval.wd_to=b[1]?b[1]:"always"):(a.splittedInterval.wd_from="always",a.splittedInterval.wd_to="always");break;case 2:"*"!==c?(b=c.split("-"),a.splittedInterval.md_from=b[0],a.splittedInterval.md_to=b[1]?b[1]:"always"):(a.splittedInterval.md_from="always",a.splittedInterval.md_to="always");break;case 3:"*"!==c?(b=c.split("-"),a.splittedInterval.m_from=b[0],a.splittedInterval.m_to=b[1]?b[1]:"always"):(a.splittedInterval.m_from="always",a.splittedInterval.m_to="always")}})},a.$watch("splittedInterval",function(a){a&&l(a)},!0),a.addSubInterval=function(){a.interval.SubIntervals.push(a.subinterval),a.updateInterval("subintervals")},a.deleteSubInterval=i.confirm["delete"](function(b){a.interval.SubIntervals.splice(b,1),a.updateInterval()})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.intervals.view",{url:"/view/:id",templateUrl:"app/tools/interval/view/view.html",controller:"IntervalViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.tools.intervals.view.settings",{url:"/settings",templateUrl:"app/tools/interval/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").controller("PauseListCtrl",["$scope","$log","$uibModal","$translate","Pause","gridOptions",function(a,b,c,d,e,f){a.initView=function(){var b={exporterCsvFilename:"pauses.csv",columnDefs:[{name:"name"},{name:"description"},{name:"action",width:75,buttons:[{"class":"blue-hoki",href:"/tools/pauses/view/{{row.entity.id}}/settings",name:"settings"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=f.gridOptions(e,b,a)},a.createItem=function(){var b=c.open({animation:!0,templateUrl:"app/tools/pause/list/list.create.modal.html",controller:"PauseListCreateCtrl"});b.result.then(function(b){console.log(b),a.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("PauseListCreateCtrl",["$scope","$translate","$uibModalInstance","Pause","xAlert",function(a,b,c,d,e){a.form={},a.item={},a.save=function(){return d.save(a.item).$promise.then(function(a){e.show(b.instant("MESSAGE_WELL_DONE"),"success"),c.close(a)})["catch"](function(a){e.error(a)})},a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.pauses.list",{url:"/list",templateUrl:"app/tools/pause/list/list.html",controller:"PauseListCtrl"})}]),angular.module("xCallyShuttleApp").factory("Pause",["$resource",function(a){return a("/api/pauses/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.pauses",{url:"/pauses",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:57}}})}]),angular.module("xCallyShuttleApp").controller("PauseViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","$location","Pause",function(a,b,c,d,e,f,g){a.getPause=function(){return g.get({id:e.id}).$promise.then(function(b){a.pause=b})["catch"](function(a){c.error(a)})},a.updatePause=function(){var b=angular.copy(a.pause);return g.update({id:e.id},b).$promise.then(function(){c.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){c.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.pauses.view",{url:"/view/:id",templateUrl:"app/tools/pause/view/view.html",controller:"PauseViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.tools.pauses.view.settings",{url:"/settings",templateUrl:"app/tools/pause/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").controller("SchedulerListCtrl",["$scope","Scheduler","gridOptions","xAlert","$translate","socket",function(a,b,c,d,e,f){a._=_,a.switches={isActive:!0,size:"mini",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.scheduleTypes=[{name:"APPLICATION_REPORT_EXTRACTION",value:"report"},{name:"APPLICATION_HISTORY_MOVE",value:"history"},{name:"APPLICATION_DB_BACKUP",value:"backup"}],a.initView=function(){var d={exporterCsvFilename:"Schedules.csv",columnDefs:[{name:"name"},{name:"type",cellTemplate:'<div class="centered-uigrid-td">{{grid.appScope._.find(grid.appScope.scheduleTypes,{value:row.entity.type}).name | translate}}</div>'},{name:"description"},{name:"active",cellTemplate:'<div class="centered-uigrid-td"><input data-ng-change="grid.appScope.updateItem(row.entity)", bs-switch ng-model="row.entity.active" type="checkbox" switch-active="{{ grid.appScope.switches.isActive }}" switch-on-text="{{ \'APPLICATION_YES\' | translate }}" switch-off-text="{{ \'APPLICATION_NO\' | translate }}" switch-on-color="{{ grid.appScope.switches.onColor }}" switch-off-color="{{ grid.appScope.switches.offColor }}" switch-animate="{{ grid.appScope.switches.animate }}" switch-size="{{ grid.appScope.switches.size }}" switch-label="{{ grid.appScope.switches.label }}" switch-icon="{{ grid.appScope.switches.icon }}" switch-radio-off="{{ grid.appScope.switches.radioOff }}" switch-label-width="{{ grid.appScope.switches.labelWidth }}" switch-handle-width="{{ grid.appScope.switches.handleWidth }}"></div>',enableFiltering:!1,enableSorting:!1},{name:"sendMail",displayName:"APPLICATION_SEND_MAIL",cellTemplate:'<div data-ng-if="row.entity.type == \'report\'" class="centered-uigrid-td"><input data-ng-change="grid.appScope.updateItem(row.entity)", bs-switch ng-model="row.entity.sendMail" type="checkbox" switch-active="{{ grid.appScope.switches.isActive }}" switch-on-text="{{ \'APPLICATION_YES\' | translate }}" switch-off-text="{{ \'APPLICATION_NO\' | translate }}" switch-on-color="{{ grid.appScope.switches.onColor }}" switch-off-color="{{ grid.appScope.switches.offColor }}" switch-animate="{{ grid.appScope.switches.animate }}" switch-size="{{ grid.appScope.switches.size }}" switch-label="{{ grid.appScope.switches.label }}" switch-icon="{{ grid.appScope.switches.icon }}" switch-radio-off="{{ grid.appScope.switches.radioOff }}" switch-label-width="{{ grid.appScope.switches.labelWidth }}" switch-handle-width="{{ grid.appScope.switches.handleWidth }}"></div>',enableFiltering:!1,enableSorting:!1},{name:"action",width:100,buttons:[{"class":"blue-hoki",href:"/tools/scheduler/view/{{row.entity.id}}/settings",name:"settings"},{"class":"green-turquoise",name:"run",onClick:"grid.appScope.runSchedule(row.entity.id)"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=c.gridOptions(b,d,a)},a.updateItem=function(a){return b.update({id:a.id},a).$promise.then(function(){d.show(e.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){console.error(a),d.error(a)})},a.runSchedule=function(a){return b.get({id:a,controller:"run"}).$promise.then(function(){d.show(e.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){console.error(a),d.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.scheduler.list",{url:"/list",templateUrl:"app/tools/scheduler/list/list.html",controller:"SchedulerListCtrl"})}]),angular.module("xCallyShuttleApp").factory("Scheduler",["$resource",function(a){return a("/api/scheduler/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.scheduler",{url:"/scheduler",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:61}}})}]),angular.module("xCallyShuttleApp").controller("SchedulerViewCtrl",["$scope","xAlert","$translate","$stateParams","socket","$location","ReportTree","Scheduler","DefaultReport","CustomReport","$timeout","MailServerOut",function(a,b,c,d,e,f,g,h,i,j,k,l){ +function m(){switch(a.schedule.cronType=a.rangeExec.type,a.rangeExec.type){case"daily":a.schedule.cron="00 "+a.rangeExec.hour+" * * *";break;case"weekly":a.schedule.cron="00 "+a.rangeExec.hour+" * * "+a.rangeExec.weekDays.join(",");break;case"monthly":a.schedule.cron="00 "+a.rangeExec.hour+" "+a.rangeExec.monthDay+" * *"}}function n(b){var c;switch(b.cronType){case"daily":a.rangeExec.hour=Number(b.cron.split(" ")[1]),a.rangeExec.type=b.cronType;break;case"weekly":c=b.cron.split(" "),a.rangeExec.hour=Number(c[1]),c[4].split(",").forEach(function(b){a.rangeExec.weekDays.push(Number(b))}),a.rangeExec.type=b.cronType;break;case"monthly":c=b.cron.split(" "),a.rangeExec.hour=Number(c[1]),a.rangeExec.monthDay=Number(c[2]),a.rangeExec.type=b.cronType;break;case"currentDay":a.switchValues.today=!0}a.$watch("rangeExec",function(b){a.switchValues.today||m()},!0)}a.forms={},a.rangeExec={weekDays:[],monthDay:null,hour:0,type:null},a.initReports=function(){var c;return a.reports=[],a.tempTodayCron=null,g.query().$promise.then(function(b){return a.defaultTreeData=JSON.parse(b[0].tree),a.customTreeData=JSON.parse(b[1].tree),i.get().$promise}).then(function(b){return a.defRep=b.rows,a.defRep.length&&_.forEach(a.defRep,function(b){c=_.find(a.defaultTreeData,{id:b.parent}),c&&(b.parent="Motion Reports - "+c.text,b.type="default")}),j.get().$promise}).then(function(b){return a.cusRep=b.rows,a.cusRep.length&&_.forEach(a.cusRep,function(b){c=_.find(a.customTreeData,{id:b.parent}),c&&(b.parent="Custom Reports - "+c.text,b.type="custom")}),l.get().$promise}).then(function(b){a.mailServers=b.rows})["catch"](function(a){b.error(a)})},a.initView=function(){return h.get({id:d.id}).$promise.then(function(b){a.schedule=b,n(b)}).then(function(){e.socket.on("schedule:update",function(b){a.schedule.id===b.id&&(a.schedule.active=b.active,a.schedule.sendMail=b.sendMail)})})["catch"](function(a){console.error(a),f.path("/tools/scheduler/list")})},a.refreshSlider=function(){k(function(){a.$broadcast("rzSliderForceRender"),a.refreshSlider=null})},a.monthDays=function(){for(var a=[],b=1;31>=b;b++)a.push(b);return a}(),a.hours=function(){for(var a=[],b=0;23>=b;b++)a.push(b);return a}(),a.setReportTree=function(b){a.schedule.reportType=b.type},a.validitySlider={ceil:24,floor:0,showTicks:!0},a.switchValues={today:!1},a.switches={isActive:!0,size:"mini",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.scheduleTypes=[{name:"APPLICATION_REPORT_EXTRACTION",value:"report"}],a.todayCron=[{name:"15 min",value:"*/15 * * * *"},{name:"30 min",value:"*/30 * * * *"},{name:"1 h",value:"0 * * * *"}],a.reportRanges=[{name:"APPLICATION_PREVIOUS_DAY",value:"yesterday"},{name:"APPLICATION_LAST_SEVEN_DAYS",value:"last7"},{name:"APPLICATION_LAST_THIRTY_DAYS",value:"last30"},{name:"APPLICATION_LAST_MONTH",value:"lastMonth"}],a.cronTypes=[{name:"APPLICATION_DAY",value:"daily"},{name:"APPLICATION_WEEK",value:"weekly"},{name:"APPLICATION_MONTH",value:"monthly"}],a.weekDays=[{name:"APPLICATION_MONDAY",value:1},{name:"APPLICATION_TUESDAY",value:2},{name:"APPLICATION_WEDNESDAY",value:3},{name:"APPLICATION_THURSDAY",value:4},{name:"APPLICATION_FRIDAY",value:5},{name:"APPLICATION_SATURDAY",value:6},{name:"APPLICATION_SUNDAY",value:0}],a.checkToday=function(){a.switchValues.today?(a.schedule.cron=angular.copy(a.tempTodayCron),a.schedule.cronType="currentDay"):(a.tempTodayCron=angular.copy(a.schedule.cron),a.schedule.cron=void 0,m())},a.updateSchedule=function(){return h.update({id:a.schedule.id},a.schedule).$promise.then(function(){b.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){console.error(a),b.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.scheduler.view",{url:"/view/:id",templateUrl:"app/tools/scheduler/view/view.html",controller:"SchedulerViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.tools.scheduler.view.settings",{url:"/settings",templateUrl:"app/tools/scheduler/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").controller("SchedulerWizardCtrl",["$scope","WizardHandler","$location","xAlert","Scheduler","ReportTree","$translate","DefaultReport","CustomReport","MailServerOut",function(a,b,c,d,e,f,g,h,i,j){function k(){switch(a.item.cronType=a.rangeExec.type,a.rangeExec.type){case"daily":a.item.cron="00 "+a.rangeExec.hour+" * * *";break;case"weekly":a.item.cron="00 "+a.rangeExec.hour+" * * "+a.rangeExec.weekDays.join(",");break;case"monthly":a.item.cron="00 "+a.rangeExec.hour+" "+a.rangeExec.monthDay+" * *"}}a.forms={},a.item={validityStart:8,validityEnd:16,type:"report",reportType:"default"},a.initReports=function(){a.reports=[];var b;return f.query().$promise.then(function(b){return a.defaultTreeData=JSON.parse(b[0].tree),a.customTreeData=JSON.parse(b[1].tree),h.get().$promise}).then(function(c){return a.defRep=c.rows,a.defRep.length&&_.forEach(a.defRep,function(c){b=_.find(a.defaultTreeData,{id:c.parent}),b&&(c.parent="Motion Reports - "+b.text,c.type="default")}),i.get().$promise}).then(function(c){return a.cusRep=c.rows,a.cusRep.length&&_.forEach(a.cusRep,function(c){b=_.find(a.customTreeData,{id:c.parent}),b&&(c.parent="Custom Reports - "+b.text,c.type="custom")}),j.get().$promise}).then(function(b){a.mailServers=b.rows})["catch"](function(a){d.error(a)})},a.setReportTree=function(b){a.item.reportType=b.type},a.validitySlider={ceil:24,floor:0,showTicks:!0},a.switchValues={today:!1},a.switches={isActive:!0,size:"mini",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.scheduleTypes=[{name:"APPLICATION_REPORT_EXTRACTION",value:"report"}],a.todayCron=[{name:"15 min",value:"*/15 * * * *"},{name:"30 min",value:"*/30 * * * *"},{name:"1 h",value:"0 * * * *"}],a.reportRanges=[{name:"APPLICATION_PREVIOUS_DAY",value:"yesterday"},{name:"APPLICATION_LAST_SEVEN_DAYS",value:"last7"},{name:"APPLICATION_LAST_THIRTY_DAYS",value:"last30"},{name:"APPLICATION_LAST_MONTH",value:"lastMonth"}],a.cronTypes=[{name:"APPLICATION_DAY",value:"daily"},{name:"APPLICATION_WEEK",value:"weekly"},{name:"APPLICATION_MONTH",value:"monthly"}],a.weekDays=[{name:"APPLICATION_MONDAY",value:1},{name:"APPLICATION_TUESDAY",value:2},{name:"APPLICATION_WEDNESDAY",value:3},{name:"APPLICATION_THURSDAY",value:4},{name:"APPLICATION_FRIDAY",value:5},{name:"APPLICATION_SATURDAY",value:6},{name:"APPLICATION_SUNDAY",value:0}],a.tempTodayCron=null,a.checkToday=function(){a.switchValues.today?(a.item.cron=angular.copy(a.tempTodayCron),a.item.cronType="currentDay"):(a.tempTodayCron=angular.copy(a.item.cron),a.item.cron=void 0,k())},a.monthDays=function(){for(var a=[],b=1;31>=b;b++)a.push(b);return a}(),a.hours=function(){for(var a=[],b=0;23>=b;b++)a.push(b);return a}(),a.rangeExec={weekDays:[],monthDay:null,hour:0,type:null},a.$watch("rangeExec",function(b){a.switchValues.today||k()},!0),a.next=function(){b.wizard().next()},a.previous=function(){b.wizard().previous()},a.exitValidation=function(a){return a},a.createItem=function(){return e.save(a.item).$promise.then(function(){c.path("/tools/scheduler/list")})["catch"](function(a){d.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.scheduler.wizard",{url:"/wizard",templateUrl:"app/tools/scheduler/wizard/wizard.html",controller:"SchedulerWizardCtrl"})}]),angular.module("xCallyShuttleApp").controller("SoundListCtrl",["$scope","$http","socket","Modal","$q","FileUploader","$translate","xAlert","$cookieStore","$sce","Sound",function(a,b,c,d,e,f,g,h,i,j,k){a.Sound=k,a.isCollapsed=!0,a.downloadButtonClass="btn btn-xs blue-hoki",a["delete"]=d.confirm["delete"](function(a){b["delete"]("/api/sounds/"+a).success(function(a){}).error(function(a){console.log(a)})}),a.updateAudio=function(a,c){var d=e.defer();return b.put("/api/sounds/"+a,c).success(function(a){d.resolve()}).error(function(a){console.log(a.message),d.reject(a.message)}),d.promise},a.$on("$destroy",function(){c.unsyncUpdates("sound")}),a.initList=function(){b.get("/api/sounds").success(function(b){a.sounds=b.rows,b.rows.length||(a.isCollapsed=!1),c.syncUpdates("sound",a.sounds,function(){a.sounds.length||(a.isCollapsed=!1)})})};var l=a.uploader=new f({url:"/api/sounds",withCredentials:!0,headers:{Authorization:"Bearer "+i.get("token")}});l.filters.push({name:"customFilter",fn:function(a,b){return this.queue.length<10}}),l.onWhenAddingFileFailed=function(a,b,c){console.info("onWhenAddingFileFailed",a,b,c)},l.onAfterAddingFile=function(a){console.info("onAfterAddingFile",a)},l.onAfterAddingAll=function(a){console.info("onAfterAddingAll",a)},l.onBeforeUploadItem=function(a){console.info("onBeforeUploadItem",a)},l.onProgressItem=function(a,b){console.info("onProgressItem",a,b),a.isUploading=!0},l.onProgressAll=function(a){console.info("onProgressAll",a)},l.onSuccessItem=function(a,b,c,d){console.info("onSuccessItem",a,b,c,d),a.isUploading=!1},l.onErrorItem=function(a,b,c,d){console.info("onErrorItem",a,b,c,d),a.responseMessage=b,a.isUploading=!1},l.onCancelItem=function(a,b,c,d){console.info("onCancelItem",a,b,c,d),a.isUploading=!1},l.onCompleteItem=function(a,b,c,d){console.info("onCompleteItem",a,b,c,d),a.isUploading=!1},l.onCompleteAll=function(){console.info("onCompleteAll")}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.sounds.list",{url:"/list",templateUrl:"app/tools/sound/list/list.html",controller:"SoundListCtrl",authenticate:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/plugins/bootstrap-fileinput/bootstrap-fileinput.js"]})}]}})}]),angular.module("xCallyShuttleApp").factory("Sound",["$resource",function(a){return a("/api/sounds/:id/:controller",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.sounds",{url:"/sounds",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:60}}})}]),angular.module("xCallyShuttleApp").controller("TagListCtrl",["$scope","$uibModal","Tag","gridOptions","$rootScope",function(a,b,c,d,e){a.initView=function(){var b={exporterCsvFilename:"tag.csv",columnDefs:[{name:"name"},{name:"description"},{name:"action",width:75,buttons:[{"class":"blue-hoki",href:"/tools/tags/view/{{row.entity.id}}/settings",name:"settings"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=d.gridOptions(c,b,a)},a.createItem=function(){var c=b.open({animation:!0,templateUrl:"app/tools/tag/list/list.create.modal.html",controller:"TagListCreateCtrl"});c.result.then(function(){a.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("TagListCreateCtrl",["$scope","$translate","$uibModalInstance","Tag","xAlert",function(a,b,c,d,e){a.form={},a.item={},a.save=function(){return d.save(a.item).$promise.then(function(a){e.show(b.instant("MESSAGE_WELL_DONE"),"success"),c.close(a)})["catch"](function(a){e.error(a)})},a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.tags.list",{url:"/list",templateUrl:"app/tools/tag/list/list.html",controller:"TagListCtrl"})}]),angular.module("xCallyShuttleApp").factory("Tag",["$resource",function(a){return a("/api/tags/:id/:controller/:tag",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.tags",{url:"/tags",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:55}}})}]),angular.module("xCallyShuttleApp").controller("TagViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","$location","Tag","gridOptions","List","Company","Contact","uiGridConstants","usSpinnerService",function(a,b,c,d,e,f,g,h,i,j,k,l,m){function n(){m.stop("spinner-grid"),a.readyGrid=!0}a.getTag=function(){return g.get({id:e.id}).$promise.then(function(b){a.tag=b})["catch"](function(a){c.error(a)})},a.updateTag=function(){var b=angular.copy(a.tag);return g.update({id:e.id},b).$promise.then(function(){c.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){c.error(a)})},a.initChat=function(){m.spin("spinner-grid");var b={enableRowSelection:!1,exporterCsvFilename:"tagChat.csv",columnDefs:[{name:"type"},{name:"status"},{name:"ChatWebsite.name",displayName:"APPLICATION_WEBSITE"},{name:"ChatVisitor.email",displayName:"APPLICATION_VISITOR"},{name:"action",width:40,buttons:[{"class":"green",name:"chatRoom",onClick:"grid.appScope.openRoom(row.entity.id, 'chatRoom')"}]}]};a.gridOptions=h.gridOptions(g,b,a,{controller:"chat",tag:a.tag.name},null,null,n())},a.initMail=function(){m.spin("spinner-grid");var b={enableRowSelection:!1,exporterCsvFilename:"tagMail.csv",columnDefs:[{name:"subject"},{name:"from"},{name:"account"},{name:"status"},{name:"action",width:40,buttons:[{"class":"green",name:"mailRoom",onClick:"grid.appScope.openRoom(row.entity.id, 'mailRoom')"}]}]};a.gridOptions=h.gridOptions(g,b,a,{controller:"mail",tag:a.tag.name},null,null,n())},a.initFax=function(){m.spin("spinner-grid");var b={enableRowSelection:!1,exporterCsvFilename:"tagFax.csv",columnDefs:[{name:"from"},{name:"account"},{name:"status"},{name:"action",width:40,buttons:[{"class":"green",name:"faxRoom",onClick:"grid.appScope.openRoom(row.entity.id, 'faxRoom')"}]}]};a.gridOptions=h.gridOptions(g,b,a,{controller:"fax",tag:a.tag.name},null,null,n())},a.initSms=function(){m.spin("spinner-grid");var b={enableRowSelection:!1,exporterCsvFilename:"tagSms.csv",columnDefs:[{name:"from"},{name:"status"},{name:"action",width:40,buttons:[{"class":"green",name:"smsRoom",onClick:"grid.appScope.openRoom(row.entity.id, 'smsRoom')"}]}]};a.gridOptions=h.gridOptions(g,b,a,{controller:"sms",tag:a.tag.name},null,null,n())},a.initContacts=function(){a.readyGrid=!1,m.spin("spinner-grid");var b;return i.get().$promise.then(function(b){return a.lists=[],b.rows.forEach(function(b,c){a.lists.push({value:b.id,label:b.name})}),j.get().$promise}).then(function(b){a.companies=[],b.rows.forEach(function(b,c){a.companies.push({value:b.id,label:b.name})})}).then(function(){b={enableRowSelection:!1,exporterCsvFilename:"tagContacts.csv",columnDefs:[{name:"firstName"},{name:"lastName"},{name:"phone"},{name:"email"},{name:"ListId",displayName:"APPLICATION_LIST",field:"List.name",filter:{type:l.filter.SELECT,selectOptions:a.lists}},{name:"CompanyId",displayName:"APPLICATION_COMPANY",field:"Company.name",filter:{type:l.filter.SELECT,term:e.companyId||null,selectOptions:a.companies}},{name:"action",width:40,buttons:[{"class":"blue-hoki",name:"profile",onClick:"grid.appScope.openContactTab(row.entity)"}]}]},a.gridOptions=h.gridOptions(g,b,a,{controller:"contacts",tag:a.tag.name},null,null,n())})["catch"](function(a){c.error(a)})},a.openRoom=function(b,c){var d=_.find(a.workspaces,{id:b,type:c});if(d)d.active=!0;else{var e;switch(c){case"mailRoom":e="icon-envelope";break;case"chatRoom":e="fa fa-users";break;case"faxRoom":e="fa fa-fax";break;case"smsRoom":e="glyphicon glyphicon-comment"}a.workspaces.push({id:b,type:c,"class":e,active:!0})}}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.tags.view",{url:"/view/:id",templateUrl:"app/tools/tag/view/view.html",controller:"TagViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.tools.tags.view.settings",{url:"/settings",templateUrl:"app/tools/tag/view/view.settings.html"}).state("main.tools.tags.view.chat",{url:"/chat",templateUrl:"app/tools/tag/view/view.chat.html"}).state("main.tools.tags.view.mail",{url:"/mail",templateUrl:"app/tools/tag/view/view.mail.html"}).state("main.tools.tags.view.fax",{url:"/fax",templateUrl:"app/tools/tag/view/view.fax.html"}).state("main.tools.tags.view.sms",{url:"/sms",templateUrl:"app/tools/tag/view/view.sms.html"}).state("main.tools.tags.view.contacts",{url:"/contacts",templateUrl:"app/tools/tag/view/view.contacts.html"})}]),angular.module("xCallyShuttleApp").controller("TemplateListCtrl",["$scope","Template","gridOptions",function(a,b,c){a.initView=function(){var d={exporterCsvFilename:"templates.csv",columnDefs:[{name:"name"},{name:"description"},{name:"action",width:75,buttons:[{"class":"blue-hoki",href:"/tools/templates/view/{{row.entity.id}}/settings",name:"settings"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=c.gridOptions(b,d,a)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.templates.list",{url:"/list",templateUrl:"app/tools/template/list/list.html",controller:"TemplateListCtrl"})}]),angular.module("xCallyShuttleApp").factory("Template",["$resource",function(a){return a("/api/templates/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.templates",{url:"/templates",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:56}}})}]),angular.module("xCallyShuttleApp").controller("TemplateViewCtrl",["$scope","$rootScope","$http","$translate","$stateParams","xAlert","Template","templateVariable",function(a,b,c,d,e,f,g,h){a.initItem=function(){CKEDITOR.plugins.addExternal("richparams","/assets/plugins/ckeditor-richparams/"),a.options={language:b.language,allowedContent:!0,entities:!1,skin:"office2013",contentsCss:"/assets/css/global/richparams.css",extraPlugins:"richparams,autogrow",autoGrow_minHeight:450,richparams:h,disableNativeSpellChecker:!1,toolbar:[{name:"clipboard",items:["Cut","Copy","Paste","PasteText","PasteFromWord","-","Undo","Redo"]},{name:"links",items:["Link","Unlink","Anchor"]},{name:"insert",items:["Image","Table","HorizontalRule","SpecialChar"]},{name:"tools",items:["Maximize"]},{name:"document",items:["Source"]},"/",{name:"basicstyles",items:["Bold","Italic","Underline","Strike","Subscript","Superscript","-","RemoveFormat"]},{name:"paragraph",items:["NumberedList","BulletedList","-","Outdent","Indent","-","Blockquote"]},{name:"styles",items:["Styles","Format"]},"/",{name:"motion",items:["voice","chat","mail","sms","openchannel","fax"]}]},a.form={},a.item={},a.item=g.get({id:e.id})},a.updateItem=function(){return g.update(a.item).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.templates.view",{url:"/view/:id",templateUrl:"app/tools/template/view/view.html",controller:"TemplateViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.tools.templates.view.settings",{url:"/settings",templateUrl:"app/tools/template/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").controller("TemplateWizardCtrl",["$scope","$rootScope","$location","$http","WizardHandler","xAlert","Template","templateVariable",function(a,b,c,d,e,f,g,h){a.initWizard=function(){CKEDITOR.plugins.addExternal("richparams","/assets/plugins/ckeditor-richparams/"),a.options={language:b.language,allowedContent:!0,entities:!1,skin:"office2013",contentsCss:"/assets/css/global/richparams.css",extraPlugins:"richparams,autogrow",autoGrow_minHeight:450,disableNativeSpellChecker:!1,richparams:h,toolbar:[{name:"clipboard",items:["Cut","Copy","Paste","PasteText","PasteFromWord","-","Undo","Redo"]},{name:"links",items:["Link","Unlink","Anchor"]},{name:"insert",items:["Image","Table","HorizontalRule","SpecialChar"]},{name:"tools",items:["Maximize"]},{name:"document",items:["Source"]},"/",{name:"basicstyles",items:["Bold","Italic","Underline","Strike","Subscript","Superscript","-","RemoveFormat"]},{name:"paragraph",items:["NumberedList","BulletedList","-","Outdent","Indent","-","Blockquote"]},{name:"styles",items:["Styles","Format"]},"/",{name:"motion",items:["voice","chat","mail","sms","openchannel","fax"]}]},a.item={},a.form={}},a.exitValidation=function(a){return a},a.createItem=function(){return g.save({name:a.item.name,description:a.item.description,subject:a.item.subject||null,html:a.item.html||null,text:a.item.text||null}).$promise.then(function(){c.path("/tools/templates/list")})["catch"](function(a){f.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.templates.wizard",{url:"/wizard",templateUrl:"app/tools/template/wizard/wizard.html",controller:"TemplateWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools",{url:"/tools",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:13}}})}]),angular.module("xCallyShuttleApp").controller("TriggerListCtrl",["$scope","$http","$translate","Modal","xAlert","Trigger","gridOptions",function(a,b,c,d,e,f,g){a.onText="On",a.offText="Off",a.isActive=!0,a.size="mini",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.initView=function(){var b={exporterCsvFilename:"Triggers.csv",columnDefs:[{name:"name"},{name:"description"},{name:"channel"},{name:"status",cellTemplate:'<div class="centered-uigrid-td"><input data-ng-change="grid.appScope.updateItem(row.entity)", bs-switch ng-model="row.entity.status" type="checkbox" switch-active="{{ grid.appScope.isActive }}" switch-on-text="{{ grid.appScope.onText }}" switch-off-text="{{ grid.appScope.offText }}" switch-on-color="{{ grid.appScope.onColor }}" switch-off-color="{{ grid.appScope.offColor }}" switch-animate="{{ grid.appScope.animate }}" switch-size="{{ grid.appScope.size }}" switch-label="{{ grid.appScope.label }}" switch-icon="{{ grid.appScope.icon }}" switch-radio-off="{{ grid.appScope.radioOff }}" switch-label-width="{{ grid.appScope.labelWidth }}" switch-handle-width="{{ grid.appScope.handleWidth }}"></div>',width:100,enableFiltering:!1},{name:"action",width:75,buttons:[{"class":"blue-hoki",href:"/tools/triggers/view/{{row.entity.id}}/settings",name:"settings"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=g.gridOptions(f,b,a)},a.updateItem=function(a){return f.update({id:a.id},a).$promise.then(function(){e.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){e.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.triggers.list",{url:"/list",templateUrl:"app/tools/trigger/list/list.html",controller:"TriggerListCtrl"})}]),angular.module("xCallyShuttleApp").factory("Trigger",["$resource",function(a){return a("/api/triggers/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.triggers",{url:"/triggers",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:50}}})}]),angular.module("xCallyShuttleApp").controller("TriggerViewCtrl",["$scope","$stateParams","$http","$translate","xAlert","triggers","Trigger","$location",function(a,b,c,d,e,f,g,h){a.$triggers=f,a.recordSwitch={onText:"On",offText:"Off",isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.forms={general:{}},a.addCondition=function(b){a.trigger[b].push({field:"",operator:"",value:""})},a.removeCondition=function(b,c){a.trigger[b].splice(c,1)},a.addAction=function(){a.trigger.Actions.push({action:"",data1:"",data2:"",data3:"",data4:"",data5:""})},a.resetActionData=function(a){a.data1="",a.data2="",a.data3="",a.data4="",a.data5=""},a.removeAction=function(b){a.trigger.Actions.splice(b,1)},a.initView=function(){return g.get({id:b.id}).$promise.then(function(b){a.trigger=b})["catch"](function(a){e.error(a),h.path("/tools/triggers/list")})},a.updateTrigger=function(){return g.update({id:b.id},a.trigger).$promise.then(function(){e.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){console.error(a),e.error(a)})},a.exitValidation=function(b){return!(!b||!a.trigger.Actions.length)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.triggers.view",{url:"/view/:id",templateUrl:"app/tools/trigger/view/view.html",controller:"TriggerViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]})}]}}).state("main.tools.triggers.view.settings",{url:"/settings",templateUrl:"app/tools/trigger/view/view.settings.html"}).state("main.tools.triggers.view.routes",{url:"/routes",templateUrl:"app/tools/trigger/view/view.routes.html"}).state("main.tools.triggers.view.application",{url:"/application",templateUrl:"app/tools/trigger/view/view.application.html"})}]),angular.module("xCallyShuttleApp").controller("TriggerWizardCtrl",["$scope","$http","$location","xAlert","triggers","WizardHandler","Trigger",function(a,b,c,d,e,f,g){a.$triggers=e,a.statusSwitch={onText:"On",offText:"Off",isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.tempData={voice:{},mail:{},chat:{},fax:{}},a.item={All:[],Any:[],Actions:[]},a.forms={general:void 0,settings:void 0},a.addCondition=function(b){a.item[b].push({field:"",operator:"",value:""})},a.removeCondition=function(b,c){a.item[b].splice(c,1)},a.addAction=function(){a.item.Actions.push({action:"",data1:"",data2:"",data3:"",data4:"",data5:""})},a.resetActionData=function(a){a.data1="",a.data2="",a.data3="",a.data4="",a.data5=""},a.removeAction=function(b){a.item.Actions.splice(b,1)},a.$watch("item.channel",function(b,c){c&&(a.tempData[c].All=_.clone(a.item.All,!0),a.tempData[c].Any=_.clone(a.item.Any,!0),a.tempData[c].Actions=_.clone(a.item.Actions,!0)),a.item.All=a.tempData[b].All?a.tempData[b].All:[],a.item.Any=a.tempData[b].Any?a.tempData[b].Any:[],a.item.Actions=a.tempData[b].Actions?a.tempData[b].Actions:[]},!0),a.item.channel="voice",a.createItem=function(){return g.save(a.item).$promise.then(function(){c.path("/tools/triggers/list")})["catch"](function(a){console.error(a),d.error(a)})},a.next=function(){f.wizard().next()},a.previous=function(){f.wizard().previous()},a.exitValidation=function(a){return a},a.exitSettingsValidation=function(b){return!(!b||!a.item.Actions.length)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.triggers.wizard",{url:"/wizard",templateUrl:"app/tools/trigger/wizard/wizard.html",controller:"TriggerWizardCtrl"})}]),angular.module("xCallyShuttleApp").controller("TrunkListCtrl",["$scope","Trunk","gridOptions","xAlert","$translate","socket",function(a,b,c,d,e,f){function g(){f.socket.on("voice:trunks",function(b){var c=_.find(a.gridOptions.data,{name:b.name});c&&(c.status=b.status,c.peerstatus=b.peerstatus)})}a.isActive=!0,a.size="mini",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.initView=function(){var d={exporterCsvFilename:"Trunks.csv",columnDefs:[{name:"name"},{name:"active",cellTemplate:'<div class="centered-uigrid-td"><input data-ng-change="grid.appScope.updateItem(row.entity)", bs-switch ng-model="row.entity.active" type="checkbox" switch-active="{{ grid.appScope.isActive }}" switch-on-text="{{ \'APPLICATION_YES\' | translate }}" switch-off-text="{{ \'APPLICATION_NO\' | translate }}" switch-on-color="{{ grid.appScope.onColor }}" switch-off-color="{{ grid.appScope.offColor }}" switch-animate="{{ grid.appScope.animate }}" switch-size="{{ grid.appScope.size }}" switch-label="{{ grid.appScope.label }}" switch-icon="{{ grid.appScope.icon }}" switch-radio-off="{{ grid.appScope.radioOff }}" switch-label-width="{{ grid.appScope.labelWidth }}" switch-handle-width="{{ grid.appScope.handleWidth }}"></div>'},{name:"host"},{name:"description"},{name:"status",cellTemplate:'<div class="centered-uigrid-td" data-ng-if="row.entity.active && row.entity.registry && row.entity.status">{{row.entity.status}}</div>'},{name:"peerstatus",cellTemplate:'<div class="centered-uigrid-td" data-ng-if="row.entity.active && row.entity.peerstatus">{{row.entity.peerstatus}}</div>'},{name:"action",width:75,buttons:[{"class":"blue-hoki",href:"/tools/trunks/view/{{row.entity.name}}/settings",name:"settings"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.name)"}]}]};a.gridOptions=c.gridOptions(b,d,a,null,null,null,g)},a.updateItem=function(a){return b.update({id:a.name},a).$promise.then(function(){d.show(e.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){console.error(a),d.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.trunks.list",{url:"/list",templateUrl:"app/tools/trunk/list/list.html",controller:"TrunkListCtrl"})}]),angular.module("xCallyShuttleApp").factory("Trunk",["$resource",function(a){return a("/api/trunks/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.trunks",{url:"/trunks",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:52}}})}]),angular.module("xCallyShuttleApp").controller("TrunkViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","socket","$location","Trunk","VoiceContext",function(a,b,c,d,e,f,g,h,i){a.activeSwitch={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.initView=function(){return h.get({id:e.id}).$promise.then(function(b){b.nat=b.nat?b.nat.split(","):[],b.allow=b.allow?b.allow.split(";"):[],b.insecure=b.insecure?b.insecure.split(","):[],b.transport=b.transport?b.transport.split(","):[],a.trunk=b}).then(function(){f.socket.on("voice:trunk",function(b){a.trunk.name===b.username&&(a.trunk.status=b.status,a.trunk.peerstatus=b.peerstatus)})})["catch"](function(a){console.error(a),g.path("/tools/trunks/list")})},a.updateTrunk=function(){""===a.trunk.password&&delete a.trunk.password;var b=angular.copy(a.trunk);return b.nat=b.nat.join(","),b.allow=b.allow.join(";"),b.insecure=b.insecure.join(","),b.transport=b.transport.join(","),h.update({id:e.id},b).$promise.then(function(){c.show(d.instant("MESSAGE_WELL_DONE")+"!","success")})["catch"](function(a){c.error(a)})},a.getContexts=function(){return i.get().$promise.then(function(b){a.voiceContexts=b.rows})["catch"](function(a){c.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.trunks.view",{url:"/view/:id",templateUrl:"app/tools/trunk/view/view.html",controller:"TrunkViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.tools.trunks.view.settings",{url:"/settings",templateUrl:"app/tools/trunk/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").controller("TrunkWizardCtrl",["$scope","WizardHandler","$location","xAlert","Trunk",function(a,b,c,d,e){ +a.initWizard=function(){a.forms={},a.item={context:"from-voip-provider"}},a.next=function(){b.wizard().next()},a.previous=function(){b.wizard().previous()},a.exitValidation=function(a){return a},a.createItem=function(){return a.item.fromuser=a.item.defaultuser,a.item.fromdomain=a.item.host,e.save(a.item).$promise.then(function(){c.path("/tools/trunks/list")})["catch"](function(a){d.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.trunks.wizard",{url:"/wizard",templateUrl:"app/tools/trunk/wizard/wizard.html",controller:"TrunkWizardCtrl"})}]),angular.module("xCallyShuttleApp").controller("VariableListCtrl",["$scope","$uibModal","Variable","gridOptions",function(a,b,c,d){a.initView=function(){var b={exporterCsvFilename:"variables.csv",columnDefs:[{name:"name"},{name:"description"},{name:"action",width:75,buttons:[{"class":"blue-hoki",href:"/tools/variables/view/{{row.entity.id}}/settings",name:"settings"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=d.gridOptions(c,b,a)},a.createItem=function(){var c=b.open({animation:!0,templateUrl:"app/tools/variable/list/list.create.modal.html",controller:"VariableListCreateCtrl"});c.result.then(function(b){console.log(b),a.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("VariableListCreateCtrl",["$scope","$translate","$uibModalInstance","Variable","xAlert",function(a,b,c,d,e){a.form={},a.item={},a.save=function(){return d.save(a.item).$promise.then(function(a){e.show(b.instant("MESSAGE_WELL_DONE"),"success"),c.close(a)})["catch"](function(a){e.error(a)})},a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.variables.list",{url:"/list",templateUrl:"app/tools/variable/list/list.html",controller:"VariableListCtrl"})}]),angular.module("xCallyShuttleApp").factory("Variable",["$resource",function(a){return a("/api/variables/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.variables",{url:"/variables",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:54}}})}]),angular.module("xCallyShuttleApp").controller("VariableViewCtrl",["$scope","$translate","$stateParams","xAlert","Variable",function(a,b,c,d,e){a.getVariable=function(){return e.get({id:c.id}).$promise.then(function(b){a.variable=b})["catch"](function(a){d.error(a)})},a.updateVariable=function(){return e.update({id:c.id},a.variable).$promise.then(function(){d.show(b.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){d.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.variables.view",{url:"/view/:id",templateUrl:"app/tools/variable/view/view.html",controller:"VariableViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.tools.variables.view.settings",{url:"/settings",templateUrl:"app/tools/variable/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").controller("YourdashboardListCloneModalCtrl",["$scope","$uibModalInstance","name",function(a,b,c){a.forms={dashboard:{}},a.item={name:c},a.ok=function(){b.close(a.item)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("YourdashboardListCreateModalCtrl",["$scope","$uibModalInstance",function(a,b){a.forms={dashboard:void 0},a.item={},a.ok=function(){a.item.model=JSON.stringify({title:a.item.name}),b.close(a.item)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("YourdashboardListCtrl",["$scope","$http","$translate","xAlert","Modal","$uibModal","$log","YourDashboard","gridOptions",function(a,b,c,d,e,f,g,h,i){a.initView=function(){var b={exporterCsvFilename:"voice_contexts.csv",columnDefs:[{name:"name"},{name:"description"},{name:"action",width:125,buttons:[{"class":"green",href:"/tools/yourdashboards/show/{{row.entity.id}}",name:"view"},{"class":"blue-hoki",href:"/tools/yourdashboards/view/{{row.entity.id}}/settings",name:"settings"},{"class":"{{row.entity.defaultEntry ? 'red-sunglo disabled' : 'red-sunglo'}}",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"},{"class":"purple",name:"clone",onClick:"grid.appScope.clone(row.entity.id,row.entity.name)"}]}]};a.gridOptions=i.gridOptions(h,b,a)},a.create=function(){var b=f.open({animation:!0,templateUrl:"app/tools/yourdashboard/list/create.modal.html",controller:"YourdashboardListCreateModalCtrl"});b.result.then(function(b){return h.save(b).$promise.then(function(){d.show(c.instant("MESSAGE_WELL_DONE"),"success"),a.gridOptions.getPage()})["catch"](function(a){console.error(a),d.error(a)})},function(){g.info("Modal dismissed at: "+new Date)})},a.clone=function(b,e){var i=f.open({animation:!0,templateUrl:"app/tools/yourdashboard/list/clone.modal.html",controller:"YourdashboardListCloneModalCtrl",resolve:{name:function(){return e+"_copy"}}});i.result.then(function(e){return h.save({id:b,controller:"clone"},e).$promise.then(function(){d.show(c.instant("MESSAGE_WELL_DONE"),"success"),a.gridOptions.getPage()})["catch"](function(a){console.error(a),d.error(a)})},function(){g.info("Modal dismissed at: "+new Date)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.yourdashboards.list",{url:"/list",templateUrl:"app/tools/yourdashboard/list/list.html",controller:"YourdashboardListCtrl",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:59}}})}]),angular.module("xCallyShuttleApp").controller("LeaveEditedDashboardModalCtrl",["$scope","$uibModalInstance",function(a,b){a.close=function(){b.close()},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("YourdashboardShowCtrl",["$scope","$rootScope","localStorageService","xAlert","$translate","Auth","$stateParams","$location","$uibModal","$log","YourDashboard","$interval",function(a,b,c,d,e,f,g,h,i,j,k,l){function m(){return k.get({id:g.id,controller:"values"}).$promise.then(function(){})["catch"](function(a){console.error("Error retrieving widgets values",a)})}function n(a){var b,c;if(!a)return 0;for(a=a.toString(),b=c=a.length;b--;){var d=a[b].charCodeAt();d>=56320&&57343>=d&&b--,d>127&&2047>=d?c++:d>2047&&65535>=d&&(c+=2)}return c}a.Auth=f,a.editMode=!1;var o;a.getDashboard=function(){return k.get({id:g.id}).$promise.then(function(b){!b[f.getRole()]&&h.path("/landing");var c={name:"dashboard",structure:"4-8",enableconfirmdelete:!0,maximizable:!0,collapsible:!0};b.model=JSON.parse(b.model||'{"title":"Dashboard"}'),b.editable=!(!f.isAdmin()||!b.editable),a.dashboard=_.merge(c,b),m(),o=l(function(){m()},1e3*parseInt(a.dashboard.timeout||5))})["catch"](function(a){h.path("/tools/yourdashboards/list")})},a.$on("$locationChangeStart",function(b,c,d){if(a.editMode){b.preventDefault();var e=i.open({animation:!0,templateUrl:"app/tools/yourdashboard/show/leaveEditedDashboard.modal.html",controller:"LeaveEditedDashboardModalCtrl"});e.result.then(function(b){a.editMode=!1;var d=location.protocol+"//"+location.host;h.path(c.replace(d,""))},function(){j.info("Modal dismissed at: "+new Date)})}});var p=function(c,f,h){var i=angular.copy(a.dashboard);return i.name=a.dashboard.model.title,i.model=JSON.stringify(i.model),n(i.model)<=64e3?k.update({id:g.id},i).$promise.then(function(){d.show(e.instant("MESSAGE_DASHBOARD_SAVED")+"!","success"),a.editMode=!1})["catch"](function(b){d.error(b),i.model=JSON.parse(i.model),i.name="dashboard",a.dashboard=i}):(d.show(e.instant("MESSAGE_DASHBOARD_TOO_BIG")+"!","warning"),void b.$broadcast("adfToggleEditMode"))};a.$on("adfDashboardChanged",p),a.$on("adfIsEditMode",function(){a.editMode=!0}),a.$on("$destroy",function(){l.cancel(o)})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.yourdashboards.show",{url:"/show/:id",templateUrl:"app/tools/yourdashboard/show/show.html",controller:"YourdashboardShowCtrl",data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:2}}})}]),angular.module("xCallyShuttleApp").controller("YourdashboardViewCtrl",["$scope","$rootScope","xAlert","$translate","$stateParams","$location","YourDashboard",function(a,b,c,d,e,f,g){a.radioSwitch={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.getDashboard=function(){return g.get({id:e.id}).$promise.then(function(b){delete b.model,a.dashboard=b})["catch"](function(){f.path("/tools/yourdashboards/list")})},a.updateDashboard=function(){var b=angular.copy(a.dashboard);return g.update({id:e.id},b).$promise.then(function(){c.show(d.instant("MESSAGE_WELL_DONE")+"!","success")})["catch"](function(d){c.error(d),a.dashboard=b})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.yourdashboards.view",{url:"/view/:id",templateUrl:"app/tools/yourdashboard/view/view.html",controller:"YourdashboardViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]},data:{permissions:{only:["admin","user"],redirectTo:"landing",id:59}}}).state("main.tools.yourdashboards.view.settings",{url:"/settings",templateUrl:"app/tools/yourdashboard/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").factory("YourDashboard",["$resource",function(a){return a("/api/dashboards/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.yourdashboards",{url:"/yourdashboards",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("ZendeskListCtrl",["$scope","ZendeskAccount","gridOptions","xAlert","$translate",function(a,b,c,d,e){a.initView=function(){var d={exporterCsvFilename:"zendesk_account.csv",columnDefs:[{name:"name",displayName:"APPLICATION_NAME"},{name:"username"},{name:"remoteUri",displayName:"APPLICATION_URI"},{name:"action",buttons:[{"class":"blue-hoki",href:"/zendesk/view/{{row.entity.id}}/account",name:"profile"},{"class":"green-jungle",name:"check",onClick:"grid.appScope.checkAccount(row.entity.id)"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=c.gridOptions(b,d,a)},a.checkAccount=function(a){return b.check({id:a}).$promise.then(function(){d.show(e.instant("MESSAGE_ACCOUNT_VERIFIED"),"success")})["catch"](function(){d.show(e.instant("MESSAGE_ACCOUNT_INVALID"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.zendesk.list",{url:"/list",templateUrl:"app/zendesk/list/list.html",controller:"ZendeskListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.zendesk.view.configurations",{url:"/configurations",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("ZendeskViewConfigurationListCtrl",["$scope","$stateParams","$translate","gridOptions","ZendeskConfiguration","$uibModal",function(a,b,c,d,e,f){a.initView=function(){var c={exporterCsvFilename:"zendesk_configurations.csv",columnDefs:[{name:"name"},{name:"description"},{name:"action",width:125,buttons:[{"class":"blue-hoki",href:"/zendesk/view/{{row.entity.AccountId}}/configurations/view/{{row.entity.id}}",name:"profile"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=d.gridOptions(e,c,a,{accountId:b.id})},a.createItem=function(){var b=f.open({animation:!0,templateUrl:"app/zendesk/view/configuration/list/create.modal.html",controller:"ZendeskCreateConfigurationCtrl"});b.result.then(function(){a.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("ZendeskCreateConfigurationCtrl",["$scope","$translate","$uibModalInstance","ZendeskConfiguration","xAlert","$stateParams","channel",function(a,b,c,d,e,f,g){a.form={},a.item={},a.channels=g,a.item.channel="voice",a.item.type="Queue",a.save=function(){return d.save({accountId:f.id},a.item).$promise.then(function(a){e.show(b.instant("MESSAGE_WELL_DONE"),"success"),c.close(a)})["catch"](function(a){e.error(a)})},a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.zendesk.view.configurations.list",{url:"/list",templateUrl:"app/zendesk/view/configuration/list/list.html",controller:"ZendeskViewConfigurationListCtrl"})}]),angular.module("xCallyShuttleApp").controller("ZendeskViewConfigurationViewCtrl",["$scope","$stateParams","$filter","$translate","socket","ZendeskConfiguration","xAlert","variable","Variable","ZendeskAccount","Tag","ZendeskField",function(a,b,c,d,e,f,g,h,i,j,k,l){a.$on("$destroy",function(){e.unsyncUpdates("zendesk_field")}),a.config={autoHideScrollbar:!1,theme:"dark",advanced:{updateOnContentResize:!0},setHeight:300,scrollInertia:0},a.fieldType=[{type:"string",title:"String"},{type:"variable",title:"Variable"},{type:"customVariable",title:"Custom Variable"}],a.descFieldType=[{type:"string",title:"String"},{type:"keyValue",title:"Key Value"}],a.groupVariableByGroup=function(a){switch(a.group){case"voice_queue":return"Voice: Queue";case"voice_outbound":return"Voice: Outbound";default:return"Other"}},a.initView=function(){a.configurationName="",a.subjectConfig=[],a.descriptionConfig=[],a.fieldConfig=[],a.selectedTags={tags:[]},a.variables=h},a.getConfiguration=function(){return f.get({accountId:b.id,id:b.configurationId}).$promise.then(function(b){a.configurationName=b.name,a.subjectConfig=b.Subject,a.descriptionConfig=b.Description,a.fieldConfig=b.Field,a.selectedTags={tags:_.map(b.Tags,function(a){return a.id})},e.socket.on("zendesk_field:remove",function(b){_.remove(a.subjectConfig,{id:b.id}),_.remove(a.descriptionConfig,{id:b.id}),_.remove(a.fieldConfig,{id:b.id})})})["catch"](function(a){g.error(a)})},a.getCustomVariables=function(){return i.get().$promise.then(function(b){a.customVariables=b.rows})["catch"](function(a){g.error(a)})},a.getFields=function(){return j.fields({id:b.id}).$promise.then(function(b){a.accountFields=c("zendesk")(b)})["catch"](function(a){g.error(a)})},a.getTags=function(){return k.get().$promise.then(function(b){a.tags=b.rows})["catch"](function(a){g.error(a)})},a.addItem=function(c){var d={};switch(c){case"subject":case"description":d={type:"string",content:""};break;case"field":d={content:""}}return f.save({accountId:b.id,id:b.configurationId,controller:c},d).$promise.then(function(b){switch(c){case"subject":a.subjectConfig.push(b);break;case"description":a.descriptionConfig.push(b);break;case"field":a.fieldConfig.push(b)}})["catch"](function(a){g.error(a)})},a.changeType=function(b){"variable"===b.type?(b.content="",b.variableName=""):"string"===b.type?(b.VariableId=null,b.variableName=""):"customVariable"===b.type&&(b.VariableId=null,b.content=""),a.updateField(b)},a.updateField=function(a){return l.update({accountId:b.id,configurationId:b.configurationId,id:a.id},a).$promise.then(function(){})["catch"](function(a){g.error(a)})},a.removeItem=function(a){return l["delete"]({accountId:b.id,configurationId:b.configurationId,id:a.id}).$promise.then(function(){g.show(d.instant("MESSAGE_WELL_DONE")+"!","success")})["catch"](function(a){g.error(a)})},a.changeDescType=function(b){"keyValue"===b.type?(b.content="","string"===b.keyType?(b.VariableId=null,b.variableName=""):"variable"===b.keyType?(b.keyContent="",b.VariableId=null):"customVariable"===b.keyType&&(b.keyContent="",b.variableName="")):"string"===b.type&&(b.VariableId=null,b.variableName="",b.key="",b.keyContent=""),a.updateField(b)},a.changeFieldType=function(b){if(b.content="",b.variableName="",b.nameField="",b.VariableId=null,b.idField){var c=_.find(a.accountFields,"id",b.idField);c&&(c.system_field_options?(b.customField=!1,b.nameField=c.title.toLowerCase()):b.customField=!0)}a.updateField(b)},a.updateTags=function(){return f.update({accountId:b.id,id:b.configurationId,controller:"tags"},a.selectedTags.tags).$promise.then(function(){g.show(d.instant("MESSAGE_WELL_DONE")+".","success")})["catch"](function(a){g.error(a)})},a.getSystemFieldOptions=function(b){if(b){var c=_.find(a.accountFields,"id",b);return c?c.system_field_options?c.system_field_options:null:void 0}}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.zendesk.view.configurations.view",{url:"/view/:configurationId",templateUrl:"app/zendesk/view/configuration/view/view.html",controller:"ZendeskViewConfigurationViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("ZendeskViewCtrl",["$scope","$stateParams","$translate","xAlert","Modal","ZendeskAccount",function(a,b,c,d,e,f){a.initView=function(){return f.get({id:b.id}).$promise.then(function(b){a.account=b})["catch"](function(a){d.error(a)})},a.updateItem=function(){return f.update({id:b.id},a.account).$promise.then(function(){d.show(c.instant("MESSAGE_WELL_DONE")+".","success")})["catch"](function(a){d.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.zendesk.view",{url:"/view/:id",templateUrl:"app/zendesk/view/view.html",controller:"ZendeskViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.zendesk.view.account",{url:"/account",templateUrl:"app/zendesk/view/view.account.html"})}]),angular.module("xCallyShuttleApp").controller("ZendeskWizardCtrl",["$scope","$http","$location","$translate","xAlert","WizardHandler","ZendeskAccount",function(a,b,c,d,e,f,g){a.translate=d,a.initWizard=function(){a.$translate=d,a.forms={},a.item={},a.item.authType="password",a.item.serverUrl=c.protocol()+"://"+location.host},a.next=function(){f.wizard().next()},a.exitValidation=function(a){return a},a.createItem=function(){return g.save(a.item).$promise.then(function(){e.show(d.instant("MESSAGE_WELL_DONE")+".","success"),c.path("/zendesk/list")})["catch"](function(a){e.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.zendesk.wizard",{url:"/wizard",templateUrl:"app/zendesk/wizard/wizard.html",controller:"ZendeskWizardCtrl"})}]),angular.module("xCallyShuttleApp").factory("ZendeskAccount",["$resource",function(a){return a("/api/zendesk/accounts/:id/:controller",{id:"@id"},{update:{method:"PUT"},fields:{params:{controller:"fields"},isArray:!0},check:{params:{controller:"check"}}})}]).factory("ZendeskConfiguration",["$resource",function(a){return a("/api/zendesk/accounts/:accountId/configurations/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]).factory("ZendeskField",["$resource",function(a){return a("/api/zendesk/accounts/:accountId/configurations/:configurationId/fields/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.zendesk",{url:"/zendesk",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").factory("AuthResource",["$resource",function(a){return a("/auth/local/:controller/:controller2/:param",{param:"@param"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("Auth",["$location","$rootScope","$http","User","$cookieStore","$q","localStorageService",function(a,b,c,d,e,f,g){var h={};return e.get("token")&&(h=d.me()),{login:function(a,i){var j=i||angular.noop,k=f.defer();return c.post("/auth/local",{name:a.name,password:a.password,remember:a.remember}).success(function(a){return e.put("role",a.role),e.put("token",a.token),e.put("userId",a.userId),g.set("loggedIn",!0),h=d.me({},function(){b.$broadcast("login")}),k.resolve(a),j()}).error(function(a){return this.logout(),k.reject(a),j(a)}.bind(this)),k.promise},recover:function(a,b){var d=b||angular.noop,e=f.defer();return c.post("/auth/local/recover",{email:a.email}).success(function(a){return e.resolve(a),d()}).error(function(a){return e.reject(a),d(a)}.bind(this)),e.promise},reset:function(a,b){var d=b||angular.noop,e=f.defer();return c.post("/auth/local/reset/"+a.token,{password:a.password}).success(function(a){return e.resolve(a),d()}).error(function(a){return e.reject(a),d(a)}.bind(this)),e.promise},loginWithToken:function(a,c,f){e.put("role",f),e.put("token",a),e.put("userId",c),h=d.me({},function(){b.$broadcast("login")})},logout:function(){e.remove("role"),e.remove("token"),e.remove("userId"),g.set("loggedIn"),h={},b.$broadcast("logout")},createUser:function(a,b){var c=b||angular.noop;return d.save(a,function(b){return e.put("token",b.token),h=d.me(),c(a)},function(a){return this.logout(),c(a)}.bind(this)).$promise},changePassword:function(a,b,c){var e=c||angular.noop;return d.changePassword({id:h.id},{oldPassword:a,newPassword:b},function(a){return e(null,a)},function(a){return e(a)}).$promise},getCurrentUser:function(){return h},isLoggedIn:function(){return h.hasOwnProperty("role")},isLoggedInAsync:function(a){h.hasOwnProperty("$promise")?h.$promise.then(function(){a(!0)})["catch"](function(){a(!1)}):a(h.hasOwnProperty("role")?!0:!1)},isAdmin:function(){return"admin"===(e.get("role")||h.role)},isUser:function(){return"user"===(e.get("role")||h.role)},isAgent:function(){return"agent"===(e.get("role")||h.role)},getRole:function(){return h.role},getToken:function(){return e.get("token")}}}]),angular.module("xCallyShuttleApp").directive("actionBuilderAccountEmail",["$compile","$timeout","MailAccount","xAlert","Template",function(a,b,c,d,e){return{restrict:"E",scope:{element:"=",form:"="},templateUrl:"components/directives/action/accountEmail/actionBuilder.html",compile:function(f){function g(a,b){var c=[];for(a=a||5,b=b||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--a;)c.push(b.charAt(Math.floor(Math.random()*b.length)));return c.join("")}var h,i;return h=f.contents().remove(),function(f,j){f.randomName=g(),b(function(){return c.get().$promise.then(function(a){return _.forEach(a.rows,function(a){a.id=String(a.id)}),f.accounts=a,e.get().$promise}).then(function(a){_.forEach(a.rows,function(a){a.id=String(a.id)}),f.templates=a.rows})["catch"](function(a){d.error(a)})}),i||(i=a(h)),j.append(i(f,function(a){return a}))}}}}]),angular.module("xCallyShuttleApp").directive("actionBuilderAccountSms",["$compile","$timeout","SmsAccount","xAlert",function(a,b,c,d){return{restrict:"E",scope:{element:"=",form:"="},templateUrl:"components/directives/action/accountSms/actionBuilder.html",compile:function(e){function f(a,b){var c=[];for(a=a||5,b=b||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--a;)c.push(b.charAt(Math.floor(Math.random()*b.length)));return c.join("")}var g,h;return g=e.contents().remove(),function(e,i){e.randomName=f(),b(function(){return c.get().$promise.then(function(a){_.forEach(a.rows,function(a){a.id=String(a.id)}),e.accounts=a})["catch"](function(a){d.error(a)})}),h||(h=a(g)),i.append(h(e,function(a){return a}))}}}}]),angular.module("xCallyShuttleApp").directive("actionBuilderAccountTemplate",["$compile","xAlert","$http","$timeout","Template","MailAccount",function(a,b,c,d,e,f){return{restrict:"E",scope:{element:"=",form:"="},templateUrl:"components/directives/action/accountTemplate/actionBuilder.html",compile:function(c){function g(a,b){var c=[];for(a=a||5,b=b||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--a;)c.push(b.charAt(Math.floor(Math.random()*b.length)));return c.join("")}var h,i;return h=c.contents().remove(),function(c,j){c.randomName=g(),d(function(){return e.get().$promise.then(function(a){_.forEach(a.rows,function(a){a.id=String(a.id)}),c.templates=a}).then(function(){return f.get().$promise}).then(function(a){_.forEach(a.rows,function(a){a.id=String(a.id)}),c.accounts=a})["catch"](function(a){b.error(a)})}),i||(i=a(h)),j.append(i(c,function(a){return a}))}}}}]),angular.module("xCallyShuttleApp").directive("actionBuilderClose",["$compile",function(a){return{restrict:"E",scope:{element:"=",form:"="},templateUrl:"components/directives/action/close/actionBuilder.html",compile:function(b){function c(a,b){var c=[];for(a=a||5,b=b||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--a;)c.push(b.charAt(Math.floor(Math.random()*b.length)));return c.join("")}var d,e;return d=b.contents().remove(),function(b,f){b.randomName=c(),e||(e=a(d)),f.append(e(b,function(a){return a}))}}}}]),angular.module("xCallyShuttleApp").directive("actionBuilderCm",["$compile","xAlert","$http","$timeout","$translate","List",function(a,b,c,d,e,f){return{restrict:"E",scope:{element:"=",form:"="},templateUrl:"components/directives/action/cm/actionBuilder.html",compile:function(c){var e,g;return e=c.contents().remove(),function(c,h){function i(a,b){var c=[];for(a=a||5,b=b||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--a;)c.push(b.charAt(Math.floor(Math.random()*b.length)));return c.join("")}c.randomName=i(),c["switch"]={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},d(function(){return f.get().$promise.then(function(a){_.forEach(a.rows,function(a){a.id=String(a.id)}),c.lists=a.rows})["catch"](function(a){b.error(a)})}),g||(g=a(e)),h.append(g(c,function(a){return a}))}}}}]),angular.module("xCallyShuttleApp").directive("actionBuilderEmail",["$compile","xAlert","$timeout","Template",function(a,b,c,d){return{restrict:"E",scope:{element:"=",form:"="},templateUrl:"components/directives/action/email/actionBuilder.html",compile:function(e){function f(a,b){var c=[];for(a=a||5,b=b||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--a;)c.push(b.charAt(Math.floor(Math.random()*b.length)));return c.join("")}var g,h;return g=e.contents().remove(),function(e,i){e.randomName=f(),c(function(){return d.get().$promise.then(function(a){_.forEach(a.rows,function(a){a.id=String(a.id)}),e.templates=a.rows})["catch"](function(a){b.error(a)})}),h||(h=a(g)),i.append(h(e,function(a){return a}))}}}}]),angular.module("xCallyShuttleApp").directive("actionBuilderForward",["$compile",function(a){return{restrict:"E",scope:{element:"=",form:"="},templateUrl:"components/directives/action/forward/actionBuilder.html",compile:function(b){function c(a,b){var c=[];for(a=a||5,b=b||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--a;)c.push(b.charAt(Math.floor(Math.random()*b.length)));return c.join("")}var d,e;return d=b.contents().remove(),function(b,f){b.randomName=c(),e||(e=a(d)),f.append(e(b,function(a){return a}))}}}}]),angular.module("xCallyShuttleApp").directive("actionBuilderHttp",["$compile",function(a){return{restrict:"E",scope:{element:"=",form:"="},templateUrl:"components/directives/action/http/actionBuilder.html",compile:function(b){function c(a,b){var c=[];for(a=a||5,b=b||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--a;)c.push(b.charAt(Math.floor(Math.random()*b.length)));return c.join("")}var d,e;return d=b.contents().remove(),function(b,f){b.randomName=c(),b.methods=["GET","POST"],e||(e=a(d)),f.append(e(b,function(a){return a}))}}}}]),angular.module("xCallyShuttleApp").directive("actionBuilderIntegration",["$compile","xAlert","$http","$timeout","Integration","$translate","ZendeskAccount","DeskAccount","SalesforceAccount","FreshdeskAccount","SugarcrmAccount",function(a,b,c,d,e,f,g,h,i,j,k){return{restrict:"E",scope:{element:"=",form:"="},templateUrl:"components/directives/action/integration/actionBuilder.html",compile:function(c){function f(a,b){var c=[];for(a=a||5,b=b||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--a;)c.push(b.charAt(Math.floor(Math.random()*b.length)));return c.join("")}var l,m;return l=c.contents().remove(),function(c,n){c.randomName=f(),d(function(){return e.get({active:1}).$promise.then(function(a){_.remove(a.rows,function(a){return"iframe"===a.state}),c.integrations=a.rows,c.element.data1&&o()})["catch"](function(a){b.error(a)})});var o=function(){var a;switch(c.element.data1){case"zendesk":a=g;break;case"desk":a=h;break;case"salesforce":a=i;break;case"freshdesk":a=j;break;case"sugarcrm":a=k}return a?a.get().$promise.then(function(a){_.forEach(a.rows,function(a){a.id=String(a.id)}),c.accounts=a.rows,c.element.data2&&p()})["catch"](function(a){b.error(a)}):void 0},p=function(){var a=_.find(c.accounts,{id:c.element.data2}).Configurations;_.forEach(a,function(a){a.id=String(a.id)}),c.configurations=a};c.changeIntegration=function(){c.element.data2="",o()},c.changeAccount=function(){c.element.data3="",p()},m||(m=a(l)),n.append(m(c,function(a){return a}))}}}}]),angular.module("xCallyShuttleApp").directive("actionBuilderJscripty",["$compile","xAlert","$http","$timeout","Template","$translate","JscriptyProject",function(a,b,c,d,e,f,g){return{restrict:"E",scope:{element:"=",form:"="},templateUrl:"components/directives/action/jscripty/actionBuilder.html",compile:function(c){var e,f;return e=c.contents().remove(),function(c,h){function i(a,b){var c=[];for(a=a||5,b=b||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--a;)c.push(b.charAt(Math.floor(Math.random()*b.length)));return c.join("")}c.randomName=i(),d(function(){return g.get().$promise.then(function(a){_.forEach(a.rows,function(a){a.id=String(a.id)}),c.projects=a.rows})["catch"](function(a){b.error(a)})}),f||(f=a(e)),h.append(f(c,function(a){return a}))}}}}]),angular.module("xCallyShuttleApp").directive("actionBuilderMotionBar",["$compile","xAlert","$http","$timeout","Template",function(a,b,c,d,e){return{restrict:"E",scope:{element:"=",form:"="},templateUrl:"components/directives/action/motionbar/actionBuilder.html",compile:function(c){var f,g;return f=c.contents().remove(),function(c,h){function i(){return e.get().$promise.then(function(a){_.forEach(a.rows,function(a){a.id=String(a.id)}),c.templates=a.rows})["catch"](function(a){b.error(a)})}function j(a,b){var c=[];for(a=a||5,b=b||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--a;)c.push(b.charAt(Math.floor(Math.random()*b.length)));return c.join("")}c.randomName=j(),c.motionActions=[{name:"Popup",value:"0"},{name:"URL",value:"1"},{name:"Windows App",value:"2"}],c.changeMode=function(){c.element.data2="",c.element.data3="",i()},d(function(){return i()}),g||(g=a(f)),h.append(g(c,function(a){return a}))}}}}]),angular.module("xCallyShuttleApp").directive("actionBuilderStatus",["$compile",function(a){return{restrict:"E",scope:{element:"=",form:"="},templateUrl:"components/directives/action/status/actionBuilder.html",compile:function(b){var c,d;return c=b.contents().remove(),function(b,e){function f(a,b){var c=[];for(a=a||5,b=b||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--a;)c.push(b.charAt(Math.floor(Math.random()*b.length)));return c.join("")}b.randomName=f(),b.states=[{name:"APPLICATION_STATUS_NEW",value:"NEW"},{name:"APPLICATION_STATUS_OPEN",value:"OPEN"},{name:"APPLICATION_STATUS_PENDING",value:"PENDING"},{name:"APPLICATION_STATUS_CLOSED",value:"CLOSED"}],d||(d=a(c)),e.append(d(b,function(a){return a}))}}}}]),angular.module("xCallyShuttleApp").directive("actionBuilderTag",["$compile","xAlert","$http","$timeout","Tag",function(a,b,c,d,e){return{restrict:"E",scope:{myElement:"=element",form:"="},templateUrl:"components/directives/action/tag/actionBuilder.html",compile:function(c){function f(a,b){ +var c=[];for(a=a||5,b=b||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--a;)c.push(b.charAt(Math.floor(Math.random()*b.length)));return c.join("")}var g,h;return g=c.contents().remove(),function(c,i){console.log("myElement",c.myElement),c.randomName=f(),c.data={tags:c.myElement.data1?c.myElement.data1.split(";"):[]},c.$watch("data.tags",function(a){c.myElement.data1=a.join(";")}),d(function(){return e.get().$promise.then(function(a){c.tags=a.rows})["catch"](function(a){b.error(a)})}),h||(h=a(g)),i.append(h(c,function(a){return a}))}}}}]),angular.module("xCallyShuttleApp").directive("actionBuilderTemplate",["$compile","xAlert","$timeout","Template",function(a,b,c,d){return{restrict:"E",scope:{element:"=",form:"="},templateUrl:"components/directives/action/template/actionBuilder.html",compile:function(e){function f(a,b){var c=[];for(a=a||5,b=b||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--a;)c.push(b.charAt(Math.floor(Math.random()*b.length)));return c.join("")}var g,h;return g=e.contents().remove(),function(e,i){e.randomName=f(),c(function(){return d.get().$promise.then(function(a){_.forEach(a.rows,function(a){a.id=String(a.id)}),e.templates=a.rows})["catch"](function(a){b.error(a)})}),h||(h=a(g)),i.append(h(e,function(a){return a}))}}}}]),angular.module("xCallyShuttleApp").directive("actionBuilderUrlForward",["$compile",function(a){return{restrict:"E",scope:{element:"=",form:"="},templateUrl:"components/directives/action/urlforward/actionBuilder.html",compile:function(b){function c(a,b){var c=[];for(a=a||5,b=b||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--a;)c.push(b.charAt(Math.floor(Math.random()*b.length)));return c.join("")}var d,e;return d=b.contents().remove(),function(b,f){b.randomName=c(),b.types=[{name:"HTTP GET",value:"GET"},{name:"HTTP POST",value:"POST"}],e||(e=a(d)),f.append(e(b,function(a){return a}))}}}}]),angular.module("xCallyShuttleApp").directive("actionBuilderWebPopup",["$compile","xAlert","$http","$timeout","Template",function(a,b,c,d,e){return{restrict:"E",scope:{element:"=",form:"="},templateUrl:"components/directives/action/webPopup/actionBuilder.html",compile:function(c){var f,g;return f=c.contents().remove(),function(c,h){function i(){return e.get().$promise.then(function(a){_.forEach(a.rows,function(a){a.id=String(a.id)}),c.templates=a.rows})["catch"](function(a){b.error(a)})}function j(a,b){var c=[];for(a=a||5,b=b||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--a;)c.push(b.charAt(Math.floor(Math.random()*b.length)));return c.join("")}c.typeChange=function(){c.element.data1=null},c.randomName=j(),d(function(){i(),c.element.data2=c.element.data2||"motion"}),g||(g=a(f)),h.append(g(c,function(a){return a}))}}}}]),angular.module("xCallyShuttleApp").directive("conditionBuilder",["$compile","$timeout","$translate","xAlert",function(a,b,c,d){return{restrict:"E",scope:{element:"=",serviceindex:"=",service:"=",form:"="},templateUrl:"components/directives/condition/conditionBuilder.html",compile:function(e){var f,g;return f=e.contents().remove(),function(e,h){function i(a){var b=_.find(e.service.services[e.serviceindex].conditions,{value:a});if(b)if(e.elementType=b.type,e.translateName=b.translate,b.arr)e.values=b.arr;else if(b.resource)return b.resource.get(b.params||{}).$promise.then(function(a){e.values=_.map(a.rows,function(a){return{name:a[b.resName||b.resValue],value:String(a[b.resValue])}})})["catch"](function(a){d.show(c.instant(a.message),"danger")})}function j(a,b){var c=[];for(a=a||5,b=b||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--a;)c.push(b.charAt(Math.floor(Math.random()*b.length)));return c.join("")}e._=_,e.randomName=j(),b(function(){e.element.field&&i(e.element.field)}),e.checkCondition=function(a){e.element.value="",e.element.operator="",i(a)},g||(g=a(f)),h.append(g(e,function(a){return a}))}}}}]),angular.module("xCallyShuttleApp").factory("xNotificationLicense",["Notification","$rootScope","$location",function(a,b,c){return{show:function(d){var e=b.$new();return e["class"]="alert-warning",e.icon="fa fa-exclamation-triangle",e.more=function(){c.path("/setting/license/view")},new a({delay:d,templateUrl:"components/factories/xNotificationLicense/xNotificationLicense.html",scope:e})}}}]),angular.module("xCallyShuttleApp").filter("secToTime",[function(){return function(a){return new Date(1970,0,1).setSeconds(a)}}]),angular.module("xCallyShuttleApp").controller("FooterController",["$scope","Setting",function(a,b){a.year=moment().year(),a.$on("$includeContentLoaded",function(){Layout.initFooter()}),a.initFooter=function(){return b.get({controller:"info"}).$promise.then(function(b){a.info=b})["catch"](function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").controller("HeaderController",["$scope","$rootScope","$location","$state","$http","$interval","$notification","Auth","xAlert","socket","xNotificationLicense","toastr","localStorageService","Agent","SmsReport","MailReport","OpenChannelReport","ChatReport","ChatRoom","xNotification","$timeout","$translate","$window","User","Pause","Action","FaxReport","List","MailAccount","ChatWebsite","FaxAccount","SmsAccount","OpenChannelAccount","ReportAgent","$uibModal","$log","ReportDial",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K){function L(a,b,c){return null===b&&(b=50),null===c&&(c="..."),a&&a.length>b?a.substring(0,b-c.length)+c:a}function M(b){var c,d="reason";switch(b){case"mail":c=p;break;case"chat":c=r;break;case"fax":c=A;break;case"sms":c=o;break;case"agent":c=H,d="lastevent";break;case"dial":c=K,d="dialstatus";break;case"openchannel":c=q;break;default:return}return c.get({limit:10,order:"updatedAt DESC"}).$promise.then(function(c){_.forEach(c.rows,function(a){if(a[d])switch(a[d].toLowerCase()){case"answer":case"connect":case"complete":a.status="taken";break;case"answered_elsewhere":a.status="taken_elsewhere";break;case"called":a.status="lost";break;case"busy":a.status="busy";break;case"rejected":a.status="rejected";break;case"cancel":case"abandoned":a.status="abandoned"}}),a.agentNotifications[b].rows=c.rows,j.socket.on("report_"+b+":save",function(c){c.status="none",a.agentNotifications[b].rows.unshift(c),"agent"!==b&&"dial"!==b&&(a.agentNotifications[b].timeout[c.id]=setTimeout(function(){clearTimeout(a.agentNotifications[b].timeout[c.id]),_.find(a.agentNotifications[b].rows,{id:c.id}).status="lost",angular.element(document.getElementById("header_"+b+"_notification_bar")).hasClass("open")||a.agentNotifications[b]["new"]++,delete a.agentNotifications[b].timeout[c.id]},1e3*c.timeslot))}),j.socket.on("report_"+b+":update",function(c){if("agent"===b){var e=_.find(a.activeCalls,{id:c.id});e&&(c.agentcomplete||c.agentringnoanswer||c.agentdump)?_.remove(a.activeCalls,{id:c.id}):!c.agentconnectAt||c.agentcomplete||c.agentringnoanswer||c.agentdump||a.activeCalls.push(c)}var f=_.find(a.agentNotifications[b].rows,{id:c.id});if(f&&("agent"!==b&&"dial"!==b&&a.agentNotifications[b].timeout[c.id]&&(clearTimeout(a.agentNotifications[b].timeout[c.id]),delete a.agentNotifications[b].timeout[c.id]),c[d])){switch(c[d].toLowerCase()){case"answer":case"connect":case"complete":c.status="taken";break;case"answered_elsewhere":c.status="taken_elsewhere",angular.element(document.getElementById("header_"+b+"_notification_bar")).hasClass("open")||a.agentNotifications.chat["new"]++;break;case"busy":c.status="busy",angular.element(document.getElementById("header_"+b+"_notification_bar")).hasClass("open")||a.agentNotifications[b]["new"]++;break;case"rejected":c.status="rejected";break;case"cancel":case"abandoned":c.status="abandoned",angular.element(document.getElementById("header_"+b+"_notification_bar")).hasClass("open")||a.agentNotifications[b]["new"]++}_.merge(f,c)}})})["catch"](function(a){i.error(a)})}function N(){return a.headerAgent=h.getCurrentUser(),a.readyTimer=1e3*moment().unix(),y.get().$promise.then(function(b){a.headerPauses=b.rows,j.syncUpdates("pause",a.headerPauses)}).then(function(){j.socket.on("agent:save",function(b){b=b.newValues||b,a.headerAgent.id===b.id&&(_.merge(a.headerAgent,b),b.voicePause&&b.mailPause&&b.chatPause&&b.faxPause&&b.smsPause&&b.openchannelPause||(a.readyTimer=1e3*moment().unix()))})})["finally"](function(){h.getCurrentUser().loginInPause&&!m.get("loggedIn")&&a.headerPause("pause")})["catch"](function(a){console.log("Error synchronizing agent status:",a)})}function O(){return H.get({id:"active",controller:"calls"}).$promise.then(function(b){a.activeCalls=b.rows})["catch"](function(a){i.error(a)})}a.moment=moment,$(document).on("click",".tabbed-dropdown",function(a){a.stopPropagation()}),a.license.hasOwnProperty("expirationTime")&&(h.isAdmin()||h.isUser())&&!a.license.demo&&f(function(){"main.setting.license.view"!==d.current.name&&k.show(3e4)},3e4),a.openRoom=function(b,c){var d=_.find(a.workspaces,{id:b,type:c});if(d)d.active=!0;else{var e;switch(c){case"mailRoom":e="icon-envelope";break;case"chatRoom":e="fa fa-users";break;case"faxRoom":e="fa fa-fax";break;case"smsRoom":e="glyphicon glyphicon-comment";break;case"openchannelRoom":e="icon-globe"}a.workspaces.push({id:b,type:c,"class":e,active:!0})}},a.toggleSidebar=function(){b.settings.layout.pageSidebarClosed=!b.settings.layout.pageSidebarClosed,m.set("sidebarClosed",b.settings.layout.pageSidebarClosed)},a.chooseContact=function(b){var c=I.open({animation:!0,templateUrl:"app/main/chooseContact.modal.html",controller:"ChooseContactModalCtrl",resolve:{data:function(){return{eventChannel:"voice",calleridnum:b}}}});c.result.then(function(c){c?a.openContactTab(c):a.newContact({calleridnum:b})},function(){J.info("Modal dismissed at: "+new Date)})},a.loadNotifications=function(b){if(!a.busyLoad[b].end){a.busyLoad[b].busy=!0;var c,d="reason";switch(b){case"mail":c=p;break;case"chat":c=r;break;case"fax":c=A;break;case"sms":c=o;break;case"agent":c=H,d="lastevent";break;case"dial":c=K,d="dialstatus";break;case"openchannel":c=q;break;default:return}return c.get({limit:10,offset:a.agentNotifications[b].rows.length,order:"updatedAt DESC"}).$promise.then(function(c){c.rows.length?(_.forEach(c.rows,function(a){if(a[d])switch(a[d].toLowerCase()){case"answer":case"connect":case"complete":a.status="taken";break;case"answered_elsewhere":a.status="taken_elsewhere";break;case"called":a.status="lost";break;case"busy":a.status="busy";break;case"rejected":a.status="rejected";break;case"abandoned":a.status="abandoned"}}),a.agentNotifications[b].rows=a.agentNotifications[b].rows.concat(c.rows)):a.busyLoad[b].end=!0,a.busyLoad[b].busy=!1})["catch"](function(a){i.error(a)})}},a.headerPause=function(b,c,d){return z.save({name:b,agent:a.headerAgent.id,type:c||"DEFAULT PAUSE",data4:c||"DEFAULT PAUSE",channel:d||"all"}).$promise.then(function(){i.show(v.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){i.error(a)})},h.isAgent()&&(N(),a.agentNotifications={mail:{rows:[],"new":0,timeout:{}},chat:{rows:[],"new":0,timeout:{}},fax:{rows:[],"new":0,timeout:{}},sms:{rows:[],"new":0,timeout:{}},agent:{rows:[],"new":0},dial:{rows:[],"new":0},openchannel:{rows:[],"new":0}},a.busyLoad={mail:{busy:!1,end:!1},chat:{busy:!1,end:!1},fax:{busy:!1,end:!1},sms:{busy:!1,end:!1},agent:{busy:!1,end:!1},dial:{busy:!1,end:!1},openchannel:{busy:!1,end:!1}},O(),M("agent"),M("dial"),a.license.mail&&M("mail"),a.license.chat&&M("chat"),a.license.fax&&M("fax"),a.license.messaging&&M("sms"),a.license.openchannel&&M("openchannel")),j.socket.on("user_has_chat_room:save",function(b){var c;return s.get({id:Number(b.ChatRoomId)}).$promise.then(function(b){c=b;var d=_.find(a.workspaces,{id:Number(c.id),type:"chatRoom"});d?d.name=a.getFullnames(c):a.workspaces.push({id:c.id,name:a.getFullnames(c),type:"chatRoom","class":"icon-bubble",unread:1})})["catch"](function(a){console.error(a)})}),j.socket.on("chat_message:save",function(b){var c;if(b.UserId!==h.getCurrentUser().id&&_.includes(b.userids,h.getCurrentUser().id)){var d=_.find(a.workspaces,{id:Number(b.ChatRoomId),type:"chatRoom"});if(!d)return s.get({id:Number(b.ChatRoomId)}).$promise.then(function(b){c=b,a.workspaces.push({id:c.id,name:a.getFullnames(b),type:"chatRoom","class":"icon-bubble",unread:1})})["catch"](function(a){console.error(a)})}});var P=function(){return w.Notification},Q=function(){b.settings.layout.onFocus=!0},R=function(){b.settings.layout.onFocus=!1};w.onfocus=Q,w.onblur=R,a.getFullnames=function(a){var b=_.without(_.map(a.Users,"fullname"),h.getCurrentUser().fullname);return a.ChatVisitor&&b.unshift(a.ChatVisitor.fullname),b.join(", ")},a.openContact=function(b,c,d){if(d&&"<unknown>"!==d){var e,f;switch(b){case"mail":e=C,f={email:d};break;case"chat":e=D,f={email:d};break;case"fax":e=E,f={fax:d};break;case"sms":e=F,f={mobile:d};break;default:return}return e.get({id:c}).$promise.then(function(a){return a.ListId?B.save({listId:a.ListId,controller:"contacts"},f).$promise:null}).then(function(b){if(b){var c=_.find(a.workspaces,{contactID:b.id});c?c.active=!0:a.workspaces.push({active:!0,"class":"icon-user",contactID:b.id,name:b.email,type:"contact"})}else i.show(v.instant("MESSAGE_NO_LIST_CONFIGURED"),"info")})["catch"](function(a){console.error(a)})}},a.initHeader=function(){return"agent"===h.getCurrentUser().role&&(j.socket.on("report_chat:save",function(a){P&&!b.settings.layout.onFocus&&g("CHAT CHANNEL",{icon:"assets/images/media/channels/chat64.png",body:"NEW Incoming Chat Visitor!",delay:1e3*a.timeslot});var c="<b>"+v.instant("APPLICATION_FROM")+"</b>: "+a.visitorname+"<br><b>"+v.instant("APPLICATION_EMAIL")+"</b>: "+a.visitoremail;"queue"===a.application&&(c+="<br><b>"+v.instant("APPLICATION_QUEUE")+"</b>: "+a.queuename),t.show(v.instant("APPLICATION_NEW_CHAT_REQUEST"),c,"chat",1e3*a.timeslot,function(){return r.get({id:a.id,controller1:"accept",controller2:a.uniqueid}).$promise.then(function(){i.show("Chat properly assigned","success")})["catch"](function(a){switch(a.status){case 504:i.show(v.instant("MESSAGE_CHAT_ALREADY_MANAGED"),"info");break;default:i.error(a)}})},function(){return r.get({id:a.id,controller1:"reject"}).$promise.then(function(){i.show("Chat properly rejected","success")})["catch"](function(a){i.error(a)})})}),j.socket.on("report_mail:save",function(c){var d=_.find(a.workspaces,{id:c.roomid,type:"mailRoom"});if(!d){var e="<b>"+v.instant("APPLICATION_ACCOUNT")+"</b>: "+c.accountname+"<br> <b>"+v.instant("APPLICATION_FROM")+"</b>: "+c.from+"<br> <b>"+v.instant("APPLICATION_SUBJECT")+"</b>: "+(L(c.subject,30,"...")||"No subject");"queue"===c.application&&(e+="<br><b>"+v.instant("APPLICATION_QUEUE")+"</b>: "+c.queuename),t.show(v.instant("APPLICATION_NEW_MAIL_REQUEST"),e,"mail",1e3*c.timeslot,function(){return p.get({id:c.id,controller1:"accept",controller2:c.uniqueid}).$promise.then(function(){var b=_.find(a.workspaces,{id:c.roomid,type:"mailRoom"});b?b.active=!0:a.workspaces.push({id:c.roomid,name:c.subject||"No subject",type:"mailRoom","class":"icon-envelope",active:!0,unread:0})})["catch"](function(a){switch(a.status){case 504:i.show(v.instant("MESSAGE_MAIL_ALREADY_MANAGED"),"info");break;default:i.error(a)}})},function(){return p.get({id:c.id,controller1:"reject"}).$promise["catch"](function(a){i.error(a)})}),P&&!b.settings.layout.onFocus?g("MAIL CHANNEL",{icon:"assets/images/media/channels/mail64.png",body:"NEW Incoming Mail Message!",delay:1e3*c.timeslot}):console.log("Notification API not supported in your browser")}}),j.socket.on("report_sms:save",function(b){var c="<b>"+v.instant("APPLICATION_ACCOUNT")+"</b>: "+b.accountname+"<br> <b>"+v.instant("APPLICATION_FROM")+"</b>: "+b.from;"queue"===b.application&&(c+="<br><b>"+v.instant("APPLICATION_QUEUE")+"</b>: "+b.queuename),t.show(v.instant("APPLICATION_NEW_SMS_REQUEST"),c,"sms",1e3*b.timeslot,function(){return o.get({id:b.id,controller1:"accept",controller2:b.uniqueid}).$promise.then(function(){var c=_.find(a.workspaces,{id:b.roomid,type:"smsRoom"});c?c.active=!0:a.workspaces.push({id:b.roomid,name:b.from,type:"smsRoom","class":"glyphicon glyphicon-comment",active:!0})})["catch"](function(a){switch(a.status){case 504:i.show(v.instant("MESSAGE_SMS_ALREADY_MANAGED"),"info");break;default:i.error(a)}})},function(){return o.get({id:b.id,controller1:"reject"}).$promise.then(function(){i.show("SMS properly rejected","success")})["catch"](function(a){i.error(a)})}),P?g("SMS CHANNEL",{icon:"assets/images/media/channels/chat64.png",body:"NEW Incoming SMS Message!",delay:1e3*b.timeslot}):console.log("Notification API not supported in your browser")}),j.socket.on("report_openchannel:save",function(b){var c="<b>"+v.instant("APPLICATION_ACCOUNT")+"</b>: "+b.accountname+"<br> <b>"+v.instant("APPLICATION_FROM")+"</b>: "+b.from;"queue"===b.application&&(c+="<br><b>"+v.instant("APPLICATION_QUEUE")+"</b>: "+b.queuename),t.show(v.instant("APPLICATION_NEW_MESSAGE"),c,"openchannel",1e3*b.timeslot,function(){return q.get({id:b.id,controller1:"accept",controller2:b.uniqueid}).$promise.then(function(){var c=_.find(a.workspaces,{id:b.roomid,type:"openchannelRoom"});c?c.active=!0:a.workspaces.push({id:b.roomid,name:b.from,type:"openchannelRoom","class":"icon-globe",active:!0})})["catch"](function(a){switch(a.status){case 504:i.show(v.instant("MESSAGE_ALREADY_MANAGED"),"info");break;default:i.error(a)}})},function(){return q.get({id:b.id,controller1:"reject"}).$promise.then(function(){i.show("Message properly rejected","success")})["catch"](function(a){i.error(a)})}),P?g("OPEN CHANNEL",{icon:"assets/images/media/channels/chat64.png",body:"NEW Incoming Message!",delay:1e3*b.timeslot}):console.log("Notification API not supported in your browser")}),j.socket.on("report_fax:save",function(c){var d=_.find(a.workspaces,{id:c.roomid,type:"faxRoom"});if(!d){var e="<b>"+v.instant("APPLICATION_ACCOUNT")+"</b>: "+c.accountname+"<br> <b>"+v.instant("APPLICATION_PHONE")+"</b>: "+c.from;"queue"===c.application&&(e+="<br><b>"+v.instant("APPLICATION_QUEUE")+"</b>: "+c.queuename),t.show(v.instant("APPLICATION_NEW_FAX_REQUEST"),e,"fax",1e3*c.timeslot,function(){return A.get({id:c.id,controller1:"accept",controller2:c.uniqueid}).$promise.then(function(){var b=_.find(a.workspaces,{id:c.roomid,type:"faxRoom"});b?b.active=!0:a.workspaces.push({id:c.roomid,name:c.from,type:"faxRoom","class":"fa fa-fax",active:!0,unread:0})})["catch"](function(a){switch(a.status){case 504:i.show(v.instant("MESSAGE_FAX_ALREADY_MANAGED"),"info");break;default:i.error(a)}})},function(){return A.get({id:c.id,controller1:"reject"}).$promise["catch"](function(a){i.err(a)})}),P&&!b.settings.layout.onFocus?g("FAX CHANNEL",{icon:"assets/images/media/channels/telephone124.png",body:"NEW Incoming Fax Message!",delay:1e3*c.timeslot}):console.log("Notification API not supported in your browser")}}),h.getCurrentUser().loginInPause)?z.save({name:"pause",agent:h.getCurrentUser().id,type:"LOGININPAUSE",data4:"LOGININPAUSE",channel:"all"}).$promise["catch"](function(a){i.error(a)}):void 0},a.logout=function(){return e.get("/auth/local/logout").success(function(){h.logout(),c.path("/login")}).error(function(a){i.error(a)})},a.isActive=function(a){return a===c.path()},a.$on("$destroy",function(){console.log("header $destroy"),j.unsyncUpdates("pause"),j.unsyncUpdates("agent"),j.unsyncUpdates("report_chat"),j.unsyncUpdates("report_mail"),j.unsyncUpdates("report_fax"),j.unsyncUpdates("report_sms"),j.unsyncUpdates("report_openchannel"),j.unsyncUpdates("user_has_chat_room"),j.unsyncUpdates("chat_message"),j.unsyncUpdates("report_integration:sugarcrm"),j.unsyncUpdates("report_integration:freshdesk")})}]),angular.module("xCallyShuttleApp").factory("Modal",["$rootScope","$uibModal",function(a,b){function c(c,d){var e=a.$new();return c=c||{},d=d||"modal-default",angular.extend(e,c),b.open({templateUrl:"components/modal/delete.html",windowClass:d,scope:e})}return{confirm:{"delete":function(a){return a=a||angular.noop,function(){var b,d=Array.prototype.slice.call(arguments),e=d.shift();b=c({modal:{dismissable:!0,title:"Confirm Delete",html:"<p>Are you sure you want to delete"+(e?"<strong> "+e+"</strong>":" selected items")+"?</p>",buttons:[{classes:"btn red",text:"Delete",click:function(a){b.close(a)}},{classes:"btn default",text:"Cancel",click:function(a){b.dismiss(a)}}]}},"over-topbar center"),b.result.then(function(b){a.apply(b,d)})}}}}}]),angular.module("xCallyShuttleApp").service("application",function(){var a={applications:[{type:null,name:"APPLICATION_QUEUE",value:"Queue"},{type:null,name:"APPLICATION_PLAYBACK",value:"Playback"},{type:null,name:"Dial",value:"Dial"},{type:"internalDial",name:"APPLICATION_INTERNAL_DIAL",value:"Dial"},{type:"externalDial",name:"APPLICATION_EXTERNAL_DIAL",value:"Dial"},{type:"RingGroup",name:"Ring Group",value:"Dial"},{type:null,name:"Cally-Square Project",value:"AGI"},{type:null,name:"GoTo",value:"Goto"},{type:null,name:"Hangup",value:"Hangup"},{type:null,name:"Set",value:"Set"},{type:null,name:"APPLICATION_VOICEMAIL",value:"Voicemail"},{type:"videoOn",name:"APPLICATION_VIDEO_ON",value:"Set"},{type:"custom",name:"Custom",value:"custom"}],queueOptions:[{value:"C",name:"APPLICATION_QUEUE_OPTION_C"},{value:"c",name:"APPLICATION_QUEUE_OPTION_c"},{value:"d",name:"APPLICATION_QUEUE_OPTION_d"},{value:"F",name:"APPLICATION_QUEUE_OPTION_F"},{value:"h",name:"APPLICATION_QUEUE_OPTION_h"},{value:"H",name:"APPLICATION_QUEUE_OPTION_H"},{value:"n",name:"APPLICATION_QUEUE_OPTION_n"},{value:"i",name:"APPLICATION_QUEUE_OPTION_i"},{value:"I",name:"APPLICATION_QUEUE_OPTION_I"},{value:"r",name:"APPLICATION_QUEUE_OPTION_r"},{value:"R",name:"APPLICATION_QUEUE_OPTION_R"},{value:"t",name:"APPLICATION_QUEUE_OPTION_t"},{value:"T",name:"APPLICATION_QUEUE_OPTION_T"},{value:"w",name:"APPLICATION_QUEUE_OPTION_w"},{value:"W",name:"APPLICATION_QUEUE_OPTION_W"},{value:"k",name:"APPLICATION_QUEUE_OPTION_k"},{value:"K",name:"APPLICATION_QUEUE_OPTION_K"},{value:"x",name:"APPLICATION_QUEUE_OPTION_x"},{value:"X",name:"APPLICATION_QUEUE_OPTION_X"}],audioOptions:[{value:"skip",name:"APPLICATION_PLAYBACK_OPTION_SKIP"},{value:"noanswer",name:"APPLICATION_PLAYBACK_OPTION_NOANSWER"},{value:"j",name:"APPLICATION_PLAYBACK_OPTION_J"},{value:"say",name:"APPLICATION_PLAYBACK_OPTION_SAY"}],hangupCauses:[{value:"",name:"--"},{value:"1",name:"APPLICATION_HANGUP_CAUSE_1"},{value:"16",name:"APPLICATION_HANGUP_CAUSE_16"},{value:"17",name:"APPLICATION_HANGUP_CAUSE_17"},{value:"18",name:"APPLICATION_HANGUP_CAUSE_18"},{value:"21",name:"APPLICATION_HANGUP_CAUSE_21"},{value:"22",name:"APPLICATION_HANGUP_CAUSE_22"},{value:"27",name:"APPLICATION_HANGUP_CAUSE_27"},{value:"38",name:"APPLICATION_HANGUP_CAUSE_38"},{value:"41",name:"APPLICATION_HANGUP_CAUSE_41"}],intTypes:[{value:"always",name:"APPLICATION_ALWAYS"},{value:"custom",name:"APPLICATION_CUSTOM"},{value:"list",name:"APPLICATION_FROM_LIST"}],checkUnderscore:function(a){return 0===a.indexOf("_")?a:"_"+a}};return{application:a}}),angular.module("xCallyShuttleApp").service("automations",function(){var a={mail:{conditions:[{name:"APPLICATION_STATUS",value:"status",type:"select",arr:[{name:"APPLICATION_STATUS_NEW",value:"NEW"},{name:"APPLICATION_STATUS_OPEN",value:"OPEN"},{name:"APPLICATION_STATUS_CLOSED",value:"CLOSED"},{name:"APPLICATION_STATUS_PENDING",value:"PENDING"}],operators:[{value:"equals",name:"APPLICATION_EQUALS_TO"},{value:"not_equals",name:"APPLICATION_NOT_EQUALS_TO"}]},{name:"APPLICATION_HOURS_SINCE_CREATED",value:"createdAt",type:"input",operators:[{value:"greater_or_equal",name:"APPLICATION_GTE_TO"},{value:"less_or_equal",name:"APPLICATION_LTE_TO"},{value:"greater",name:"APPLICATION_GREATER_THAN"},{value:"less",name:"APPLICATION_LESS_THAN"}]}],actions:[{name:"APPLICATION_STATUS",value:"status"}]},chat:{conditions:[{name:"APPLICATION_STATUS",value:"status",type:"select",arr:[{name:"APPLICATION_STATUS_NEW",value:"NEW"},{name:"APPLICATION_STATUS_OPEN",value:"OPEN"},{name:"APPLICATION_STATUS_CLOSED",value:"CLOSED"},{name:"APPLICATION_STATUS_PENDING",value:"PENDING"}],operators:[{value:"equals",name:"APPLICATION_EQUALS_TO"},{value:"not_equals",name:"APPLICATION_NOT_EQUALS_TO"}]},{name:"APPLICATION_HOURS_SINCE_CREATED",value:"createdAt",type:"input",operators:[{value:"greater_or_equal",name:"APPLICATION_GTE_TO"},{value:"less_or_equal",name:"APPLICATION_LTE_TO"},{value:"greater",name:"APPLICATION_GREATER_THAN"},{value:"less",name:"APPLICATION_LESS_THAN"}]}],actions:[{name:"APPLICATION_STATUS",value:"status"}]},fax:{conditions:[{name:"APPLICATION_STATUS",value:"status",type:"select",arr:[{name:"APPLICATION_STATUS_NEW",value:"NEW"},{name:"APPLICATION_STATUS_OPEN",value:"OPEN"},{name:"APPLICATION_STATUS_CLOSED",value:"CLOSED"}],operators:[{value:"equals",name:"APPLICATION_EQUALS_TO"},{value:"not_equals",name:"APPLICATION_NOT_EQUALS_TO"}]},{name:"APPLICATION_HOURS_SINCE_CREATED",value:"createdAt",type:"input",operators:[{value:"greater_or_equal",name:"APPLICATION_GTE_TO"},{value:"less_or_equal",name:"APPLICATION_LTE_TO"},{value:"greater",name:"APPLICATION_GREATER_THAN"},{value:"less",name:"APPLICATION_LESS_THAN"}]}],actions:[{name:"APPLICATION_STATUS",value:"status"}]}},b=["mail","fax","chat"];return{services:a,channels:b}}),angular.module("xCallyShuttleApp").service("channel",function(){var a=[{name:"Voice",value:"voice"}];return a}),angular.module("xCallyShuttleApp").service("desk_com",function(){var a=[{id:"priority",label:"Priority",custom:!1,data:{choices:[1,2,3,4,5,6,7,8,9,10]}},{id:"status",label:"Status",custom:!1,data:{choices:["new","open","pending","resolved","closed"]}},{id:"type",label:"Type",custom:!1,data:{choices:["chat","twitter","email","qna","facebook","phone"]}}];return{fields:a}}),angular.module("xCallyShuttleApp").service("interval",function(){var a={months:[{value:"always",name:"APPLICATION_ALWAYS"},{value:"jan",name:"APPLICATION_JANUARY"},{value:"feb",name:"APPLICATION_FEBRUARY"},{value:"mar",name:"APPLICATION_MARCH"},{value:"apr",name:"APPLICATION_APRIL"},{value:"may",name:"APPLICATION_MAY"},{value:"jun",name:"APPLICATION_JUNE"},{value:"jul",name:"APPLICATION_JULY"},{value:"aug",name:"APPLICATION_AUGUST"},{value:"sep",name:"APPLICATION_SEPTEMBER"},{value:"oct",name:"APPLICATION_OCTOBER"},{value:"nov",name:"APPLICATION_NOVEMBER"},{value:"dec",name:"APPLICATION_DECEMBER"}],monthsNumber:[{value:"always",name:"APPLICATION_ALWAYS"},{value:"1",name:"APPLICATION_JANUARY"},{value:"2",name:"APPLICATION_FEBRUARY"},{value:"3",name:"APPLICATION_MARCH"},{value:"4",name:"APPLICATION_APRIL"},{value:"5",name:"APPLICATION_MAY"},{value:"6",name:"APPLICATION_JUNE"},{value:"7",name:"APPLICATION_JULY"},{value:"8",name:"APPLICATION_AUGUST"},{value:"9",name:"APPLICATION_SEPTEMBER"},{value:"10",name:"APPLICATION_OCTOBER"},{value:"11",name:"APPLICATION_NOVEMBER"},{value:"12",name:"APPLICATION_DECEMBER"}],daysOfWeek:[{value:"always",name:"APPLICATION_ALWAYS"},{value:"mon",name:"APPLICATION_MONDAY"},{value:"tue",name:"APPLICATION_TUESDAY"},{value:"wed",name:"APPLICATION_WEDNESDAY"},{value:"thu",name:"APPLICATION_THURSDAY"},{value:"fri",name:"APPLICATION_FRIDAY"},{value:"sat",name:"APPLICATION_SATURDAY"},{value:"sun",name:"APPLICATION_SUNDAY"}],daysOfMonth:["always",1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]};return{interval:a}}),angular.module("xCallyShuttleApp").service("report",["ReportAgent","ReportCall","ReportMailSession","ReportMember","ReportQueue","ReportIntegration","ReportChatSession","ReportSmsSession","Contact","Recording","ReportSquare","ReportSquareDetail","User","ReportFaxSession","MailRoom","MailMessage","FaxRoom","FaxMessage","ChatRoom","ChatMessage","SmsRoom","SmsMessage","OpenChannelRoom","OpenChannelMessage","ReportOpenChannelSession","ReportMotionDialer","UserHasVoiceQueue","VoiceMailMessage","ReportDial",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C){var D=[{value:"users",resource:m,channel:"General"},{value:"cm_contacts",resource:i,channel:"General"},{value:"report_integration_history",resource:f,channel:"General"},{value:"report_agent_history",resource:a,channel:"Voice"},{value:"report_call_history",resource:b,channel:"Voice"},{value:"report_dial",resource:C,channel:"Voice"},{value:"report_member_history",resource:d,channel:"Voice"},{value:"report_queue_history",resource:e,channel:"Voice"},{value:"voice_recordings",resource:j,channel:"Voice"},{value:"voice_voicemail_messages",resource:B,channel:"Voice"},{value:"report_square_history",resource:k,channel:"Voice"},{value:"report_square_details_history",resource:l,channel:"Voice"},{value:"report_tdial",resource:z,channel:"Voice"},{value:"report_chat_session_history",resource:g,channel:"Chat"},{value:"chat_rooms",resource:s,channel:"Chat"},{value:"chat_messages",resource:t,channel:"Chat"},{value:"report_mail_session_history",resource:c,channel:"Mail"},{value:"mail_rooms",resource:o,channel:"Mail"},{value:"mail_messages",resource:p,channel:"Mail"},{value:"report_fax_session_history",resource:n,channel:"Fax"},{value:"fax_rooms",resource:q,channel:"Fax"},{value:"fax_messages",resource:r,channel:"Fax"},{value:"report_sms_session_history",resource:h,channel:"Sms"},{value:"sms_rooms",resource:u,channel:"Sms"},{value:"sms_messages",resource:v,channel:"Sms"},{value:"report_openchannel_session_history",resource:y,channel:"Open Channel"},{value:"openchannel_rooms",resource:w,channel:"Open Channel"},{value:"openchannel_messages",resource:x,channel:"Open Channel"},{value:"user_has_voice_queues",resource:A,channel:"Voice"}];return{tables:D}}]),angular.module("xCallyShuttleApp").service("strategies",function(){return["beepall","roundrobin"]}),angular.module("xCallyShuttleApp").service("triggers",["VoiceQueue","ChatQueue","MailQueue","FaxQueue","SmsQueue","OpenChannelQueue","Route","MailAccount","SmsAccount","ChatWebsite","OpenChannelAccount",function(a,b,c,d,e,f,g,h,i,j,k){var l={voice:{conditions:[{name:"APPLICATION_QUEUE",value:"queue",type:"select",resource:a,resValue:"name",operators:[{value:"equals",name:"APPLICATION_EQUALS_TO"},{value:"not_equals",name:"APPLICATION_NOT_EQUALS_TO"}]},{name:"APPLICATION_CALL_STATUS",value:"lastevent",type:"select",translate:!0,arr:[{name:"ringing",value:"called"},{name:"up",value:"connect"},{name:"hangup",value:"complete"},{name:"rejected",value:"rejected"},{name:"ringnoanswer",value:"agentringnoanswer"},{name:"abandoned",value:"abandoned"}],operators:[{value:"equals",name:"APPLICATION_EQUALS_TO"},{value:"not_equals",name:"APPLICATION_NOT_EQUALS_TO"}]},{name:"APPLICATION_OUTBOUND_ROUTE",value:"routeId",type:"select",resource:g,resValue:"id",resName:"exten",params:{type:"outbound"},operators:[{value:"equals",name:"APPLICATION_EQUALS_TO"},{value:"not_equals",name:"APPLICATION_NOT_EQUALS_TO"}]}],actions:[{name:"APPLICATION_CONTACT_MANAGER",value:"contactManager"},{name:"APPLICATION_INTEGRATIONS",value:"integration",propertyField:"select"},{name:"APPLICATION_MOTION_BAR",value:"motionbar",propertyField:"select"},{name:"APPLICATION_JSCRIPTY",value:"jscripty",propertyField:"select"},{name:"APPLICATION_URL_FORWARD",value:"urlForward"},{name:"APPLICATION_WEB_POPUP",value:"webPopup"}]},mail:{conditions:[{name:"APPLICATION_ACCOUNT",value:"accountId",type:"select",resource:h,resValue:"id",resName:"name",operators:[{value:"equals",name:"APPLICATION_EQUALS_TO"},{value:"not_equals",name:"APPLICATION_NOT_EQUALS_TO"}]},{name:"APPLICATION_FROM",value:"from",type:"input",operators:[{value:"contains",name:"APPLICATION_CONTAINS"},{value:"not_contains",name:"APPLICATION_NOT_CONTAINS"}]},{name:"APPLICATION_TO",value:"to",type:"input",operators:[{value:"contains",name:"APPLICATION_CONTAINS"},{value:"not_contains",name:"APPLICATION_NOT_CONTAINS"}]},{name:"APPLICATION_CC",value:"cc",type:"input",operators:[{value:"contains",name:"APPLICATION_CONTAINS"},{value:"not_contains",name:"APPLICATION_NOT_CONTAINS"}]},{name:"APPLICATION_SUBJECT",value:"subject",type:"input",operators:[{value:"equals",name:"APPLICATION_EQUALS_TO"},{value:"not_equals",name:"APPLICATION_NOT_EQUALS_TO"},{value:"contains",name:"APPLICATION_CONTAINS" +},{value:"not_contains",name:"APPLICATION_NOT_CONTAINS"}]},{name:"APPLICATION_BODY",value:"text",type:"input",operators:[{value:"equals",name:"APPLICATION_EQUALS_TO"},{value:"not_equals",name:"APPLICATION_NOT_EQUALS_TO"},{value:"contains",name:"APPLICATION_CONTAINS"},{value:"not_contains",name:"APPLICATION_NOT_CONTAINS"}]}],actions:[{name:"APPLICATION_TEMPLATE",value:"template"},{name:"APPLICATION_EMAIL",value:"email"},{name:"APPLICATION_EMAIL_FROM_ACCOUNT",value:"accountEmail"},{name:"APPLICATION_SMS",value:"accountSms"},{name:"APPLICATION_FORWARD",value:"forward"},{name:"APPLICATION_TAG",value:"tag"},{name:"APPLICATION_URL_FORWARD",value:"http"},{name:"APPLICATION_CLOSE",value:"close"}]},chat:{conditions:[{name:"APPLICATION_WEBSITE",value:"ChatWebsiteId",type:"select",resource:j,resValue:"id",resName:"name",operators:[{value:"equals",name:"APPLICATION_EQUALS_TO"},{value:"not_equals",name:"APPLICATION_NOT_EQUALS_TO"}]},{name:"APPLICATION_NAME",value:"fullname",type:"input",operators:[{value:"equals",name:"APPLICATION_EQUALS_TO"},{value:"not_equals",name:"APPLICATION_NOT_EQUALS_TO"}]},{name:"APPLICATION_EMAIL",value:"email",type:"input",operators:[{value:"contains",name:"APPLICATION_CONTAINS"},{value:"not_contains",name:"APPLICATION_NOT_CONTAINS"}]}],actions:[{name:"APPLICATION_EMAIL_FROM_ACCOUNT",value:"accountEmail"},{name:"APPLICATION_SMS",value:"accountSms"},{name:"APPLICATION_TEMPLATE",value:"accountTemplate"},{name:"APPLICATION_TAG",value:"tag"},{name:"APPLICATION_URL_FORWARD",value:"http"},{name:"APPLICATION_CLOSE",value:"close"}]},sms:{conditions:[{name:"APPLICATION_ACCOUNT",value:"SmsAccountId",type:"select",resource:i,resValue:"id",resName:"name",operators:[{value:"equals",name:"APPLICATION_EQUALS_TO"},{value:"not_equals",name:"APPLICATION_NOT_EQUALS_TO"}]},{name:"APPLICATION_FROM",value:"from",type:"input",operators:[{value:"contains",name:"APPLICATION_CONTAINS"},{value:"not_contains",name:"APPLICATION_NOT_CONTAINS"}]},{name:"APPLICATION_TO",value:"to",type:"input",operators:[{value:"contains",name:"APPLICATION_CONTAINS"},{value:"not_contains",name:"APPLICATION_NOT_CONTAINS"}]},{name:"APPLICATION_BODY",value:"body",type:"input",operators:[{value:"equals",name:"APPLICATION_EQUALS_TO"},{value:"not_equals",name:"APPLICATION_NOT_EQUALS_TO"},{value:"contains",name:"APPLICATION_CONTAINS"},{value:"not_contains",name:"APPLICATION_NOT_CONTAINS"}]}],actions:[{name:"APPLICATION_EMAIL_FROM_ACCOUNT",value:"accountEmail"},{name:"APPLICATION_SMS",value:"accountSms"},{name:"APPLICATION_TEMPLATE",value:"accountTemplate"},{name:"APPLICATION_TAG",value:"tag"},{name:"APPLICATION_URL_FORWARD",value:"http"},{name:"APPLICATION_CLOSE",value:"close"}]},fax:{conditions:[{name:"APPLICATION_FROM",value:"from",type:"input",operators:[{value:"contains",name:"APPLICATION_CONTAINS"},{value:"not_contains",name:"APPLICATION_NOT_CONTAINS"}]},{name:"APPLICATION_TO",value:"to",type:"input",operators:[{value:"contains",name:"APPLICATION_CONTAINS"},{value:"not_contains",name:"APPLICATION_NOT_CONTAINS"}]}],actions:[{name:"APPLICATION_EMAIL_FROM_ACCOUNT",value:"accountEmail"},{name:"APPLICATION_SMS",value:"accountSms"},{name:"APPLICATION_TEMPLATE",value:"accountTemplate"},{name:"APPLICATION_TAG",value:"tag"},{name:"APPLICATION_URL_FORWARD",value:"http"},{name:"APPLICATION_CLOSE",value:"close"}]},openchannel:{conditions:[{name:"APPLICATION_ACCOUNT",value:"OpenchannelAccountId",type:"select",resource:k,resValue:"id",resName:"name",operators:[{value:"equals",name:"APPLICATION_EQUALS_TO"},{value:"not_equals",name:"APPLICATION_NOT_EQUALS_TO"}]},{name:"APPLICATION_FROM",value:"from",type:"input",operators:[{value:"contains",name:"APPLICATION_CONTAINS"},{value:"not_contains",name:"APPLICATION_NOT_CONTAINS"}]},{name:"APPLICATION_TO",value:"to",type:"input",operators:[{value:"contains",name:"APPLICATION_CONTAINS"},{value:"not_contains",name:"APPLICATION_NOT_CONTAINS"}]},{name:"APPLICATION_BODY",value:"body",type:"input",operators:[{value:"equals",name:"APPLICATION_EQUALS_TO"},{value:"not_equals",name:"APPLICATION_NOT_EQUALS_TO"},{value:"contains",name:"APPLICATION_CONTAINS"},{value:"not_contains",name:"APPLICATION_NOT_CONTAINS"}]}],actions:[{name:"APPLICATION_EMAIL_FROM_ACCOUNT",value:"accountEmail"},{name:"APPLICATION_SMS",value:"accountSms"},{name:"APPLICATION_TEMPLATE",value:"accountTemplate"},{name:"APPLICATION_TAG",value:"tag"},{name:"APPLICATION_URL_FORWARD",value:"http"},{name:"APPLICATION_CLOSE",value:"close"}]}},m=["voice","mail","chat","sms","fax","openchannel"];return{services:l,channels:m}}]),angular.module("xCallyShuttleApp").service("variable",function(){var a=[{title:"Unique ID",name:"uniqueid",group:"voice_queue"},{title:"Caller Number",name:"calleridnum",group:"voice_queue"},{title:"Caller Name",name:"calleridname",group:"voice_queue"},{title:"Queue",name:"queue",group:"voice_queue"},{title:"Called Number",name:"destcalleridnum",group:"voice_queue"},{title:"Called Name",name:"destcalleridname",group:"voice_queue"},{title:"Hold Time",name:"holdtime",group:"voice_queue"},{title:"Talk Time",name:"talktime",group:"voice_queue"},{title:"Connected Time",name:"agentconnectAt",group:"voice_queue"},{title:"Called Time",name:"agentcalledAt",group:"voice_queue"},{title:"DNID",name:"destexten",group:"voice_queue"},{title:"Complete Time",name:"agentcompleteAt",group:"voice_queue"},{title:"No Answer Time",name:"agentringnoanswerAt",group:"voice_queue"},{title:"Recording URL",name:"recordingURL",group:"voice_queue"},{title:"Unique ID",name:"uniqueid",group:"voice_outbound"},{title:"Caller Number",name:"calleridnum",group:"voice_outbound"},{title:"Caller Name",name:"calleridname",group:"voice_outbound"},{title:"Called Number",name:"destcalleridnum",group:"voice_outbound"},{title:"Called Name",name:"destcalleridname",group:"voice_outbound"},{title:"Start Time",name:"starttime",group:"voice_outbound"},{title:"Answer Time",name:"answertime",group:"voice_outbound"},{title:"Complete Time",name:"endtime",group:"voice_outbound"},{title:"Recording URL",name:"recordingURL",group:"voice_outbound"},{title:"Member Name",name:"membername",group:"voice_outbound"}];return a}),angular.module("xCallyShuttleApp").controller("SidebarController",["$scope","$rootScope","$resource","$location","Auth","Dashboard","Integration","xAlert","$stateParams","socket","$uibModal","Setting",function(a,b,c,d,e,f,g,h,i,j,k,l){a.Auth=e,a.$on("$includeContentLoaded",function(){Metronic.init(),Layout.initSidebar()}),a.getSidebarDashboards=function(){return f.get().$promise.then(function(c){b.dashboards=c.rows,j.syncUpdates("dashboard",b.dashboards),a.$watch("dashboards",function(a){a&&b.initTours()},!0)})["catch"](function(){h.show("Error loading your dashboards","danger")})},a.about=function(){k.open({animation:!0,size:"sm",templateUrl:"app/main/about.modal.html",controller:["$scope","$uibModalInstance",function(a,b){a.year=moment().year(),a.getInfo=function(){return l.get({controller:"info"}).$promise.then(function(b){a.info=b})["catch"](function(a){console.error(a)})},a.close=function(){b.dismiss("cancel")}}]})},a.getSidebarIntegrations=function(){return e.isAdmin()||e.isAgent()||b.userModules[19]?g.get().$promise.then(function(b){a.integrations=b.rows,j.syncUpdates("integration",a.integrations)})["catch"](function(a){h.error(a)}):void 0},a.$on("sidebar $destroy",function(){console.log("destroy"),j.unsyncUpdates("dashboard"),j.unsyncUpdates("integration")})}]),angular.module("xCallyShuttleApp").factory("socket",["$rootScope","$window","socketFactory","Auth",function(a,b,c,d){var e=d.getCurrentUser(),f=io("",{query:"token="+d.getToken()+"&userId="+e.id+"&name="+e.name+"&role="+(e.role||"agent")+"&source=browser",path:"/socket.io-client",multiplex:!1}),g=c({ioSocket:f});return a.$on("logout",function(){g&&(g.disconnect(!0),b.location.reload())}),{socket:g,syncUpdates:function(a,b,c){c=c||angular.noop,g.on(a+":save",function(a){var d=_.find(b,{id:a.id}),e=b.indexOf(d),f="created";d?(_.merge(b[e],a),f="updated"):b.unshift(a),c(f,a,b)}),g.on(a+":remove",function(a){var d="deleted";_.remove(b,{id:a.id}),c(d,a,b)})},unsyncUpdates:function(a){g.removeAllListeners(a+":save"),g.removeAllListeners(a+":update"),g.removeAllListeners(a+":remove")},syncUpdatesByAttributes:function(a,b,c,d){d=d||angular.noop,g.on(a+":save",function(a){var e=!0;if(_.forIn(b,function(b,c){return a[c]&&a[c]===b?!0:e=!1}),e){var f=_.find(c,{id:a.id}),g=c.indexOf(f),h="created";f?(_.merge(c[g],a),h="updated"):c.unshift(a),d(h,a,c)}}),g.on(a+":remove",function(a){var b="deleted";_.remove(c,{id:a.id}),d(b,a,c)})},syncMailMessageUpdates:function(a,b,c,d){d=d||angular.noop,g.on(a+":"+b+":save",function(a){var b=_.find(c,{id:a.id}),e=c.indexOf(b),f="created";b?(_.merge(c[e],a),f="updated"):c.unshift(a),d(f,a)}),g.on(a+":"+b+":remove",function(a){var b="deleted";_.remove(c,{id:a.id}),d(b,a,c)})},unsyncMailMessageUpdates:function(a,b){g.removeAllListeners(a+":"+b+":save"),g.removeAllListeners(a+":"+b+":remove")},syncFaxMessageUpdates:function(a,b,c,d){d=d||angular.noop,g.on(a+":"+b+":save",function(a){var b=_.find(c,{id:a.id}),e=c.indexOf(b),f="created";b?(_.merge(c[e],a),f="updated"):c.unshift(a),d(f,a)}),g.on(a+":"+b+":remove",function(a){var b="deleted";_.remove(c,{id:a.id}),d(b,a,c)})},unsyncFaxMessageUpdates:function(a,b){g.removeAllListeners(a+":"+b+":save"),g.removeAllListeners(a+":"+b+":remove")}}}]),function(a,b){angular.module("adf.widget.counter",["adf.provider"]).config(["dashboardProvider",function(a){a.widget("counter",{title:"Single Value",description:"Single Value for db results",templateUrl:"{widgetsPath}/counter/src/view.html",controller:"apiwidgetCounterViewCtrl",edit:{templateUrl:"{widgetsPath}/counter/src/edit.html",controller:"apiwidgetCounterEditCtrl"}})}]).service("apiServiceCounter",["Widget",function(a){return{get:function(b){return a.get({select:b.select,condition:encodeURIComponent(b.condition),table:b.report.replace("_history",""),controller:"counter"}).$promise.then(function(a){return a})["catch"](function(a){console.log(a)})}}}]).controller("apiwidgetCounterEditCtrl",["$scope","report",function(a,b){a.config.reportTables=b.tables,a.config.colors=[{name:"Grey",value:"grey"},{name:"Grey 2",value:"grey-cascade"},{name:"Grey 3",value:"grey-silver"},{name:"Grey 4",value:"grey-steel"},{name:"Grey 5",value:"grey-carrara"},{name:"Grey 6",value:"grey-gallery"},{name:"Blue",value:"blue"},{name:"Blue 2",value:"blue-hoki"},{name:"Blue 3",value:"blue-steel"},{name:"Blue 4",value:"blue-madison"},{name:"Blue 5",value:"blue-chambray"},{name:"Blue 6",value:"blue-ebonyclay"},{name:"Red",value:"red"},{name:"Red 2",value:"red-pink"},{name:"Red 3",value:"red-sunglo"},{name:"Red 4",value:"red-intense"},{name:"Red 5",value:"red-thunderbird"},{name:"Red 6",value:"red-flamingo"},{name:"Green",value:"green"},{name:"Green 2",value:"green-meadow"},{name:"Green 3",value:"green-seagreen"},{name:"Green 4",value:"green-turquoise"},{name:"Green 5",value:"green-haze"},{name:"Green 6",value:"green-jungle"},{name:"Purple",value:"purple"},{name:"Purple 2",value:"purple-plum"},{name:"Purple 3",value:"purple-medium"},{name:"Purple 4",value:"purple-studio"},{name:"Purple 5",value:"purple-wisteria"},{name:"Purple 6",value:"purple-seance"},{name:"Yellow",value:"yellow"},{name:"Yellow 2",value:"yellow-gold"},{name:"Yellow 3",value:"yellow-casablanca"},{name:"Yellow 4",value:"yellow-crusta"},{name:"Yellow 5",value:"yellow-lemon"},{name:"Yellow 6",value:"yellow-saffron"}],a.config.icons=[{name:"Talk bubbles",value:"fa-comments"},{name:"Bar Chart",value:"fa-bar-chart"},{name:"Shopping Cart",value:"fa-shopping-cart"},{name:"Globe",value:"fa-globe"},{name:"Volume Control Phone",value:"fa-volume-control-phone"},{name:"Comments",value:"fa-comments-o"},{name:"Commenting",value:"fa-commenting-o"},{name:"Coffee",value:"fa-coffee"},{name:"Clock",value:"fa-clock-o"},{name:"Envelope",value:"fa-envelope-o"},{name:"Hourglass",value:"fa-hourglass-half"},{name:"Percent",value:"fa-percent"}],a.config.select=a.config.select?a.config.select:"COUNT(*)",a.config.color=a.config.color?a.config.color:"blue-madison",a.config.icon=a.config.icon?a.config.icon:"fa-comments",a.config.link=a.config.link?a.config.link:"#",a.config.linkText=a.config.linkText?a.config.linkText:"VIEW MORE"}]).controller("apiwidgetCounterViewCtrl",["$scope","$interval","apiServiceCounter","socket","$location",function(a,b,c,d,e){var f=a.$parent.model.wid;try{d.socket.on("widget_update:"+f+"_"+e.path().split("/").pop(),function(b){b&&b.length>1||_.keys(b[0]).length>1?(a.tooManyResults=!0,a.result=null):(a.tooManyResults=!1,null!==_.values(b[0])[0]?a.result=_.values(b[0])[0].toString():a.result="--")})}catch(g){console.log("Widget socket listen error:",g)}a.$on("$destroy",function(){d.socket.removeAllListeners("widget_update:"+f)})}]),angular.module("adf.widget.counter").run(["$templateCache",function(a){a.put("{widgetsPath}/counter/src/edit.html","<form role=form><div class=form-group><label for=select>Select</label> <input type=text class=form-control id=condition ng-model=config.select placeholder=Select></div><div class=form-group><label class=control-label>From</label><ui-select data-ng-model=config.report name=report theme=bootstrap><ui-select-match placeholder=From>{{'APPLICATION_'+$select.selected.value.toUpperCase() | translate}}</ui-select-match><ui-select-choices group-by=\"'channel'\" repeat=\"table.value as table in config.reportTables | filter: $select.search\"><div ng-bind-html=\"'APPLICATION_'+table.value.toUpperCase() | translate | highlight: $select.search\"></div></ui-select-choices></ui-select></div><div class=form-group><label for=condition>Where</label> <input type=text class=form-control id=condition ng-model=config.condition placeholder=Where></div><div class=form-group><label class=control-label>{{'APPLICATION_WIDGET_COLOR' | translate}}</label><ui-select data-ng-model=config.color name=color theme=bootstrap><ui-select-match placeholder=\"{{ 'APPLICATION_WIDGET_COLOR' | translate }}\"><div data-ng-class=\"'bg-'+$select.selected.value\"> </div></ui-select-match><ui-select-choices repeat=\"color.value as color in config.colors | filter: $select.search\"><div data-ng-class=\"'bg-'+color.value\"> </div></ui-select-choices></ui-select></div><div class=form-group><label class=control-label>{{'APPLICATION_WIDGET_ICON' | translate}}</label><ui-select data-ng-model=config.icon name=icon theme=bootstrap><ui-select-match placeholder=\"{{ 'APPLICATION_WIDGET_ICON' | translate }}\"><i class=fa ng-class=$select.selected.value></i></ui-select-match><ui-select-choices repeat=\"icon.value as icon in config.icons | filter: $select.search\"><i class=fa ng-class=icon.value></i></ui-select-choices></ui-select></div><div class=form-group><label for=condition>{{'APPLICATION_WIDGET_DETAILS' | translate}}</label> <input type=text class=form-control id=details ng-model=config.details maxlength=30 placeholder=\"{{'APPLICATION_WIDGET_DETAILS' | translate}}\"></div><div class=form-group><label for=condition>{{'APPLICATION_WIDGET_LINK' | translate}}</label> <input type=text class=form-control id=link ng-model=config.link placeholder=http://yourlink></div><div class=form-group><label for=condition>{{'APPLICATION_WIDGET_LINK_TEXT' | translate}}</label> <input type=text class=form-control id=linkText ng-model=config.linkText maxlength=30 placeholder=\"{{'APPLICATION_WIDGET_LINK_TEXT' | translate}}\"></div></form>"),a.put("{widgetsPath}/counter/src/view.html",'<div class=dashboard-stat ng-class=config.color ng-if=result><div class=visual><i class=fa ng-class=config.icon></i></div><div class=details><div class=number>{{result}}</div><div class=desc>{{config.details}}</div></div><a class=more href={{config.link}}>{{config.linkText}} <i class="m-icon-swapright m-icon-white"></i></a></div><div class="alert alert-danger" role=alert ng-if=!config.report><span class="glyphicon glyphicon-exclamation-sign" aria-hidden=true></span> <span class=sr-only>{{\'APPLICATION_ERROR\' | translate}}:</span> {{\'MESSAGE_WIDGET_SELECT_REPORT\' | translate}}</div><div class="alert alert-danger" role=alert ng-if=tooManyResults><span class="glyphicon glyphicon-exclamation-sign" aria-hidden=true></span> <span class=sr-only>{{\'APPLICATION_ERROR\' | translate}}:</span> {{\'MESSAGE_TOO_MANY_RESULTS\' | translate}}</div><div class="alert alert-danger" role=alert ng-if="!result && !tooManyResults"><span class="glyphicon glyphicon-exclamation-sign" aria-hidden=true></span> <span class=sr-only>{{\'APPLICATION_ERROR\' | translate}}:</span> {{\'MESSAGE_QUERY_NOT_VALID\' | translate}}</div>')}])}(window),function(a,b){angular.module("adf.widget.pie-chart",["adf.provider"]).config(["dashboardProvider",function(a){a.widget("pie-chart",{title:"Pie-Chart",description:"Display a pie-chart starting from DB values",templateUrl:"{widgetsPath}/pie-chart/src/view.html",controller:"apiWidgetPieChartViewCtrl",edit:{templateUrl:"{widgetsPath}/pie-chart/src/edit.html",controller:"apiWidgetPieChartEditCtrl"}})}]).service("apiServicePieChart",["Widget",function(a){return{get:function(b){return a.get({condition:encodeURIComponent(b.condition),table:b.report.replace("_history",""),fields:b.fields,controller:"piechart"}).$promise.then(function(a){return a})["catch"](function(a){console.log(a)})}}}]).controller("apiWidgetPieChartEditCtrl",["$scope","report",function(a,b){function c(){return a.config.fields||(a.config.fields=[{column:"",alias:""}]),a.config.fields}a.config.reportTables=b.tables,a.config.fields=a.config.fields?a.config.fields:[{column:"",alias:""}],a.addField=function(){c().push({})},a.removeField=function(a){c().splice(a,1)}}]).controller("apiWidgetPieChartViewCtrl",["$scope","$interval","apiServicePieChart","socket","$location",function(a,b,c,d,e){var f=a.$parent.model.wid;try{d.socket.on("widget_update:"+f+"_"+e.path().split("/").pop(),function(b){if(b&&1===b.length){a.labels=[],a.data=[];for(var c in b[0])a.labels.push(c),a.data.push(b[0][c])}else a.labels=[],a.data=[]})}catch(g){console.log("Widget socket listen error:",g)}a.$on("$destroy",function(){d.socket.removeAllListeners("widget_update:"+f)})}]),angular.module("adf.widget.pie-chart").run(["$templateCache",function(a){a.put("{widgetsPath}/pie-chart/src/edit.html",'<form role=form><div class=form-group><label class=control-label>{{\'APPLICATION_REPORT\' | translate}}</label><ui-select data-ng-model=config.report name=report theme=bootstrap><ui-select-match placeholder="{{ \'APPLICATION_REPORT\' | translate }}">{{\'APPLICATION_\'+$select.selected.value.toUpperCase() | translate}}</ui-select-match><ui-select-choices group-by="\'channel\'" repeat="table.value as table in config.reportTables | filter: $select.search"><div ng-bind-html="\'APPLICATION_\'+table.value.toUpperCase() | translate | highlight: $select.search"></div></ui-select-choices></ui-select></div><div><label class=control-label>{{\'APPLICATION_FIELDS\' | translate}}</label></div><div class=padding-bottom ng-repeat="field in config.fields"><div class=form-group><div class=input-group><input type=text class=form-control ng-model=field.column> <span class=input-group-addon>as</span> <input type=text class=form-control ng-model=field.alias> <span class=input-group-btn ng-if="config.fields.length>1"><button class="btn btn-danger" type=button data-ng-click=removeField($index)><i class="fa fa-times"></i> {{\'APPLICATION_REMOVE\' | translate}}</button></span></div></div></div><button type=button class="btn btn-sm green mbottom20" ng-click=addField()><i class="fa fa-plus"></i> {{\'APPLICATION_ADD_FIELD\' | translate}}</button><div class=form-group><label for=condition>{{\'APPLICATION_CONDITION\' | translate}}</label> <input type=text class=form-control id=condition ng-model=config.condition placeholder="{{\'APPLICATION_CONDITION\' | translate}}"></div></form>'),a.put("{widgetsPath}/pie-chart/src/view.html",'<div ng-if=labels.length ng-style=config.style><canvas id=doughnut class="chart chart-doughnut" chart-data=data chart-labels=labels legend=true></canvas></div><div class="alert alert-danger" role=alert ng-if=!config.report><span class="glyphicon glyphicon-exclamation-sign" aria-hidden=true></span> <span class=sr-only>{{\'APPLICATION_ERROR\' | translate}}:</span> {{\'MESSAGE_WIDGET_SELECT_REPORT\' | translate}}</div><div class="alert alert-danger" role=alert ng-if=!labels.length><span class="glyphicon glyphicon-exclamation-sign" aria-hidden=true></span> <span class=sr-only>{{\'APPLICATION_ERROR\' | translate}}:</span> {{\'MESSAGE_ENTER_VALID_CONDITION\' | translate}}</div><div class="alert alert-danger" role=alert ng-if=!labels.length><span class="glyphicon glyphicon-exclamation-sign" aria-hidden=true></span> <span class=sr-only>{{\'APPLICATION_ERROR\' | translate}}:</span> {{\'MESSAGE_ENTER_ONE_VALID_METRIC_AND_CHECK_OTHER\' | translate}}</div>')}])}(window),function(a,b){angular.module("adf.widget.table",["adf.provider"]).value("apiServiceUrlTable","/api/widgets/table").config(["dashboardProvider",function(a){a.widget("table",{title:"Table",description:"Show tabbed results from db",templateUrl:"{widgetsPath}/table/src/view.html",controller:"apiWidgetTableViewCtrl",edit:{templateUrl:"{widgetsPath}/table/src/edit.html",controller:"apiWidgetTableEditCtrl"}})}]).service("apiServiceTable",["$q","$http","apiServiceUrlTable",function(a,b,c){return{get:function(d){var e=a.defer();return b.get(c,{params:{condition:encodeURIComponent(d.condition),table:d.report,fields:d.fields}}).success(function(a){a?e.resolve(a):e.reject()}).error(function(a){console.log(a),e.reject()}),e.promise}}}]).controller("apiWidgetTableEditCtrl",["$scope",function(a){function b(){return a.config.fields||(a.config.fields=[{column:"",alias:""}]),a.config.fields}a.config.reportTables=[{name:"Agents",value:"agent"},{name:"Calls",value:"call"},{name:"Dials",value:"dial"},{name:"Members",value:"member"},{name:"Queues",value:"queue"}],a.config.timeout=a.config.timeout?a.config.timeout:1,a.config.height=a.config.height?a.config.height:350,a.config.fields=a.config.fields?a.config.fields:[{column:"",alias:""}],a.addField=function(){b().push({})},a.removeField=function(a){b().splice(a,1)}}]).controller("apiWidgetTableViewCtrl",["$scope","$interval","apiServiceTable",function(a,b,c){a.config.timeout=a.config.timeout?a.config.timeout:1,a.config.height=a.config.height?a.config.height:350,a.config.style={"max-height":a.config.height+"px",overflow:"scroll"},a.tableApiCall=function(){a.config.condition&&a.config.report&&a.config.fields.length&&""!==a.config.fields[0].column&&""!==a.config.fields[0].alias&&c.get(a.config).then(function(b){a.results=b})},a.tableApiCall();var d=b(function(){a.tableApiCall()},1e3*parseInt(a.config.timeout));a.$on("$destroy",function(){b.cancel(d)})}]),angular.module("adf.widget.table").run(["$templateCache",function(a){a.put("{widgetsPath}/table/src/edit.html",'<form role=form><div class=form-group><label class=control-label>{{\'APPLICATION_REPORT\' | translate}}</label><ui-select data-ng-model=config.report name=report theme=bootstrap><ui-select-match placeholder="{{ \'APPLICATION_REPORT\' | translate }}">{{$select.selected.name}}</ui-select-match><ui-select-choices repeat="report.value as report in config.reportTables | filter: $select.search"><div ng-bind-html="report.name | highlight: $select.search"></div></ui-select-choices></ui-select></div><div><label class=control-label>{{\'APPLICATION_METRICS\' | translate}}</label></div><div class=padding-bottom ng-repeat="field in config.fields"><div class=form-group><div class=input-group><input type=text class=form-control ng-model=field.column> <span class=input-group-addon>as</span> <input type=text class=form-control ng-model=field.alias> <span class=input-group-btn ng-if="config.fields.length>1"><button class="btn btn-danger" type=button data-ng-click=removeField($index)><i class="fa fa-times"></i> {{\'APPLICATION_REMOVE\' | translate}}</button></span></div></div></div><button type=button class="btn btn-sm green mbottom20" ng-click=addField()><i class="fa fa-plus"></i> {{\'APPLICATION_ADD_FIELD\' | translate}}</button><div class=form-group><label for=condition>{{\'APPLICATION_CONDITION\' | translate}}</label> <input type=text class=form-control id=condition ng-model=config.condition placeholder="{{\'APPLICATION_CONDITION\' | translate}}"></div><div class=form-group><label for=condition>{{\'APPLICATION_REFRESH_TIMEOUT\' | translate}}</label> <input type=number class=form-control id=timeout ng-model=config.timeout placeholder="{{\'APPLICATION_REFRESH_TIMEOUT\' | translate}}" min=1></div><div class=form-group><label for=condition>{{\'APPLICATION_WIDGET_MAX_HEIGHT\' | translate}}</label> <input type=number class=form-control id=height ng-model=config.height placeholder="{{\'APPLICATION_WIDGET_MAX_HEIGHT\' | translate}}" min=350></div></form>'),a.put("{widgetsPath}/table/src/view.html",'<div ng-if=results ng-style=config.style><table st-table=results class="table table-striped table-bordered table-hover"><div class=table-responsive><thead><tr><th colspan={{config.fields.length}}><div class=row><div class=col-md-6></div><div class=col-md-6><div class="input-group input-medium pull-right"><input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class=form-control type=search> <span class=input-group-addon><i class="fa fa-search"></i></span></div></div></div></th></tr><tr><th ng-repeat="field in config.fields">{{field.alias}}</th></tr></thead><tbody><tr data-ng-repeat="result in results" class=animate-repeat><td ng-repeat="field in config.fields">{{result[field.alias]}}</td></tr><tr data-ng-hide=results.length><td colspan={{config.fields.length}} style=text-align:center;><i>{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</i></td></tr></tbody><tfoot><tr><td colspan={{config.fields.length}} class=text-center><div st-pagination class=pagination st-items-by-page=10 st-displayed-pages=3></div></td></tr></tfoot></div></table></div><div class="alert alert-danger" role=alert ng-if=!config.report><span class="glyphicon glyphicon-exclamation-sign" aria-hidden=true></span> <span class=sr-only>{{\'APPLICATION_ERROR\' | translate}}:</span> {{\'MESSAGE_WIDGET_SELECT_REPORT\' | translate}}</div><div class="alert alert-danger" role=alert ng-if=!results><span class="glyphicon glyphicon-exclamation-sign" aria-hidden=true></span> <span class=sr-only>{{\'APPLICATION_ERROR\' | translate}}:</span> {{\'MESSAGE_ENTER_VALID_CONDITION\' | translate}}</div><div class="alert alert-danger" role=alert ng-if=!results><span class="glyphicon glyphicon-exclamation-sign" aria-hidden=true></span> <span class=sr-only>{{\'APPLICATION_ERROR\' | translate}}:</span> {{\'MESSAGE_ENTER_ONE_VALID_FIELD_AND_CHECK_OTHER\' | translate}}</div>')}])}(window);var Metronic=function(){var a,b=!1,c=!1,d=!1,e=!1,f=[],g="assets/",h="img/",i="plugins/",j="css/",k={blue:"#89C4F4",red:"#F3565D",green:"#1bbc9b",purple:"#9b59b6",grey:"#95a5a6",yellow:"#F8CB00"},l=function(){"rtl"===$("body").css("direction")&&(b=!0),c=!!navigator.userAgent.match(/MSIE 8.0/),d=!!navigator.userAgent.match(/MSIE 9.0/),e=!!navigator.userAgent.match(/MSIE 10.0/),e&&$("html").addClass("ie10"),(e||d||c)&&$("html").addClass("ie")},m=function(){for(var a=0;a<f.length;a++){var b=f[a];b.call()}},n=function(){var a;if(c){var b;$(window).resize(function(){b!=document.documentElement.clientHeight&&(a&&clearTimeout(a),a=setTimeout(function(){m()},50),b=document.documentElement.clientHeight)})}else $(window).resize(function(){a&&clearTimeout(a),a=setTimeout(function(){m()},50)})},o=function(){$("body").on("click",".portlet > .portlet-title > .tools > a.remove",function(a){a.preventDefault();var b=$(this).closest(".portlet");$("body").hasClass("page-portlet-fullscreen")&&$("body").removeClass("page-portlet-fullscreen"),b.find(".portlet-title .fullscreen").tooltip("destroy"),b.find(".portlet-title > .tools > .reload").tooltip("destroy"),b.find(".portlet-title > .tools > .remove").tooltip("destroy"),b.find(".portlet-title > .tools > .config").tooltip("destroy"),b.find(".portlet-title > .tools > .collapse, .portlet > .portlet-title > .tools > .expand").tooltip("destroy"),b.remove()}),$("body").on("click",".portlet > .portlet-title .fullscreen",function(a){a.preventDefault();var b=$(this).closest(".portlet");if(b.hasClass("portlet-fullscreen"))$(this).removeClass("on"),b.removeClass("portlet-fullscreen"),$("body").removeClass("page-portlet-fullscreen"),b.children(".portlet-body").css("height","auto");else{var c=Metronic.getViewPort().height-b.children(".portlet-title").outerHeight()-parseInt(b.children(".portlet-body").css("padding-top"))-parseInt(b.children(".portlet-body").css("padding-bottom"));$(this).addClass("on"),b.addClass("portlet-fullscreen"),$("body").addClass("page-portlet-fullscreen"),b.children(".portlet-body").css("height",c)}}),$("body").on("click",".portlet > .portlet-title > .tools > a.reload",function(a){a.preventDefault();var b=$(this).closest(".portlet").children(".portlet-body"),c=$(this).attr("data-url"),d=$(this).attr("data-error-display");c?(Metronic.blockUI({target:b,animate:!0,overlayColor:"none"}),$.ajax({type:"GET",cache:!1,url:c,dataType:"html",success:function(a){Metronic.unblockUI(b),b.html(a)},error:function(a,c,e){Metronic.unblockUI(b);var f="Error on reloading the content. Please check your connection and try again.";"toastr"==d&&toastr?toastr.error(f):"notific8"==d&&$.notific8?($.notific8("zindex",11500),$.notific8(f,{theme:"ruby",life:3e3})):alert(f)}})):(Metronic.blockUI({target:b,animate:!0,overlayColor:"none"}),window.setTimeout(function(){Metronic.unblockUI(b)},1e3))}),$('.portlet .portlet-title a.reload[data-load="true"]').click(),$("body").on("click",".portlet > .portlet-title > .tools > .collapse, .portlet .portlet-title > .tools > .expand",function(a){a.preventDefault()})},p=function(){if($().uniform){var a=$("input[type=checkbox]:not(.toggle, .make-switch, .icheck), input[type=radio]:not(.toggle, .star, .make-switch, .icheck)");a.size()>0&&a.each(function(){0===$(this).parents(".checker").size()&&$(this).show()})}},q=function(){$().iCheck&&$(".icheck").each(function(){var a=$(this).attr("data-checkbox")?$(this).attr("data-checkbox"):"icheckbox_minimal-grey",b=$(this).attr("data-radio")?$(this).attr("data-radio"):"iradio_minimal-grey";a.indexOf("_line")>-1||b.indexOf("_line")>-1?$(this).iCheck({checkboxClass:a,radioClass:b,insert:'<div class="icheck_line-icon"></div>'+$(this).attr("data-label")}):$(this).iCheck({checkboxClass:a,radioClass:b})})},r=function(){$().bootstrapSwitch&&$(".make-switch").bootstrapSwitch()},s=function(){$().confirmation&&$("[data-toggle=confirmation]").confirmation({container:"body",btnOkClass:"btn-xs btn-success",btnCancelClass:"btn-xs btn-danger"})},t=function(){$("body").on("shown.bs.collapse",".accordion.scrollable",function(a){Metronic.scrollTo($(a.target))})},u=function(){if(location.hash){var a=location.hash.substr(1);$('a[href="#'+a+'"]').parents(".tab-pane:hidden").each(function(){var a=$(this).attr("id");$('a[href="#'+a+'"]').click()}),$('a[href="#'+a+'"]').click()}},v=function(){$("body").on("hide.bs.modal",function(){$(".modal:visible").size()>1&&$("html").hasClass("modal-open")===!1?$("html").addClass("modal-open"):$(".modal:visible").size()<=1&&$("html").removeClass("modal-open")}),$("body").on("show.bs.modal",".modal",function(){$(this).hasClass("modal-scroll")&&$("body").addClass("modal-open-noscroll")}),$("body").on("hide.bs.modal",".modal",function(){$("body").removeClass("modal-open-noscroll")}),$("body").on("hidden.bs.modal",".modal:not(.modal-cached)",function(){$(this).removeData("bs.modal")})},w=function(){$(".tooltips").tooltip(),$(".portlet > .portlet-title .fullscreen").tooltip({container:"body",title:"Fullscreen"}),$(".portlet > .portlet-title > .tools > .reload").tooltip({container:"body",title:"Reload"}),$(".portlet > .portlet-title > .tools > .remove").tooltip({container:"body",title:"Remove"}),$(".portlet > .portlet-title > .tools > .config").tooltip({ +container:"body",title:"Settings"}),$(".portlet > .portlet-title > .tools > .collapse, .portlet > .portlet-title > .tools > .expand").tooltip({container:"body",title:"Collapse/Expand"})},x=function(){$("body").on("click",".dropdown-menu.hold-on-click",function(a){a.stopPropagation()})},y=function(){$("body").on("click",'[data-close="alert"]',function(a){$(this).parent(".alert").hide(),$(this).closest(".note").hide(),a.preventDefault()}),$("body").on("click",'[data-close="note"]',function(a){$(this).closest(".note").hide(),a.preventDefault()}),$("body").on("click",'[data-remove="note"]',function(a){$(this).closest(".note").remove(),a.preventDefault()})},z=function(){$('[data-hover="dropdown"]').not(".hover-initialized").each(function(){$(this).dropdownHover(),$(this).addClass("hover-initialized")})},A=function(){$(".popovers").popover(),$(document).on("click.bs.popover.data-api",function(b){a&&a.popover("hide")})},B=function(){Metronic.initSlimScroll(".scroller")},C=function(){jQuery.fancybox&&$(".fancybox-button").size()>0&&$(".fancybox-button").fancybox({groupAttr:"data-rel",prevEffect:"none",nextEffect:"none",closeBtn:!0,helpers:{title:{type:"inside"}}})},D=function(){(c||d)&&$("input[placeholder]:not(.placeholder-no-fix), textarea[placeholder]:not(.placeholder-no-fix)").each(function(){var a=$(this);""===a.val()&&""!==a.attr("placeholder")&&a.addClass("placeholder").val(a.attr("placeholder")),a.focus(function(){a.val()==a.attr("placeholder")&&a.val("")}),a.blur(function(){""!==a.val()&&a.val()!=a.attr("placeholder")||a.val(a.attr("placeholder"))})})},E=function(){$().select2&&$(".select2me").select2({placeholder:"Select"})};return{init:function(){l(),n(),p(),q(),r(),B(),C(),E(),o(),y(),x(),u(),w(),A(),t(),v(),s(),D()},initAjax:function(){p(),q(),r(),z(),B(),E(),C(),x(),w(),A(),t(),s()},initComponents:function(){this.initAjax()},setLastPopedPopover:function(b){a=b},addResizeHandler:function(a){f.push(a)},runResizeHandlers:function(){m()},scrollTo:function(a,b){var c=a&&a.size()>0?a.offset().top:0;a&&($("body").hasClass("page-header-fixed")&&(c-=$(".page-header").height()),c+=b?b:-1*a.height()),$("html,body").animate({scrollTop:c},"slow")},initSlimScroll:function(a){$(a).each(function(){if(!$(this).attr("data-initialized")){var a;a=$(this).attr("data-height")?$(this).attr("data-height"):$(this).css("height"),$(this).slimScroll({allowPageScroll:!0,size:"7px",color:$(this).attr("data-handle-color")?$(this).attr("data-handle-color"):"#bbb",wrapperClass:$(this).attr("data-wrapper-class")?$(this).attr("data-wrapper-class"):"slimScrollDiv",railColor:$(this).attr("data-rail-color")?$(this).attr("data-rail-color"):"#eaeaea",position:b?"left":"right",height:a,alwaysVisible:"1"==$(this).attr("data-always-visible"),railVisible:"1"==$(this).attr("data-rail-visible"),disableFadeOut:!0}),$(this).attr("data-initialized","1")}})},destroySlimScroll:function(a){$(a).each(function(){if("1"===$(this).attr("data-initialized")){$(this).removeAttr("data-initialized"),$(this).removeAttr("style");var a={};$(this).attr("data-handle-color")&&(a["data-handle-color"]=$(this).attr("data-handle-color")),$(this).attr("data-wrapper-class")&&(a["data-wrapper-class"]=$(this).attr("data-wrapper-class")),$(this).attr("data-rail-color")&&(a["data-rail-color"]=$(this).attr("data-rail-color")),$(this).attr("data-always-visible")&&(a["data-always-visible"]=$(this).attr("data-always-visible")),$(this).attr("data-rail-visible")&&(a["data-rail-visible"]=$(this).attr("data-rail-visible")),$(this).slimScroll({wrapperClass:$(this).attr("data-wrapper-class")?$(this).attr("data-wrapper-class"):"slimScrollDiv",destroy:!0});var b=$(this);$.each(a,function(a,c){b.attr(a,c)})}})},scrollTop:function(){Metronic.scrollTo()},blockUI:function(a){a=$.extend(!0,{},a);var b="";if(b=a.animate?'<div class="loading-message '+(a.boxed?"loading-message-boxed":"")+'"><div class="block-spinner-bar"><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div></div></div>':a.iconOnly?'<div class="loading-message '+(a.boxed?"loading-message-boxed":"")+'"><img src="'+this.getGlobalImgPath()+'loading-spinner-blue.gif" align=""></div>':a.textOnly?'<div class="loading-message '+(a.boxed?"loading-message-boxed":"")+'"><span> '+(a.message?a.message:"LOADING...")+"</span></div>":'<div class="loading-message '+(a.boxed?"loading-message-boxed":"")+'"><img src="'+this.getGlobalImgPath()+'loading-spinner-blue.gif" align=""><span> '+(a.message?a.message:"LOADING...")+"</span></div>",a.target){var c=$(a.target);c.height()<=$(window).height()&&(a.cenrerY=!0),c.block({message:b,baseZ:a.zIndex?a.zIndex:1e3,centerY:void 0!==a.cenrerY?a.cenrerY:!1,css:{top:"10%",border:"0",padding:"0",backgroundColor:"none"},overlayCSS:{backgroundColor:a.overlayColor?a.overlayColor:"#555",opacity:a.boxed?.05:.1,cursor:"wait"}})}else $.blockUI({message:b,baseZ:a.zIndex?a.zIndex:1e3,css:{border:"0",padding:"0",backgroundColor:"none"},overlayCSS:{backgroundColor:a.overlayColor?a.overlayColor:"#555",opacity:a.boxed?.05:.1,cursor:"wait"}})},unblockUI:function(a){a?$(a).unblock({onUnblock:function(){$(a).css("position",""),$(a).css("zoom","")}}):$.unblockUI()},startPageLoading:function(a){a&&a.animate?($(".page-spinner-bar").remove(),$("body").append('<div class="page-spinner-bar"><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div></div>')):($(".page-loading").remove(),$("body").append('<div class="page-loading"><img src="'+this.getGlobalImgPath()+'loading-spinner-blue.gif"/> <span>'+(a&&a.message?a.message:"Loading...")+"</span></div>"))},stopPageLoading:function(){$(".page-loading, .page-spinner-bar").remove()},alert:function(a){a=$.extend(!0,{container:"",place:"append",type:"success",message:"",close:!0,reset:!0,focus:!0,closeInSeconds:0,icon:""},a);var b=Metronic.getUniqueID("Metronic_alert"),c='<div id="'+b+'" class="Metronic-alerts alert alert-'+a.type+' fade in">'+(a.close?'<button type="button" class="close" data-dismiss="alert" aria-hidden="true"></button>':"")+(""!==a.icon?'<i class="fa-lg fa fa-'+a.icon+'"></i> ':"")+a.message+"</div>";return a.reset&&$(".Metronic-alerts").remove(),a.container?"append"==a.place?$(a.container).append(c):$(a.container).prepend(c):$("body").hasClass("page-container-bg-solid")?$(".page-title").after(c):$(".page-bar").size()>0?$(".page-bar").after(c):$(".page-breadcrumb").after(c),a.focus&&Metronic.scrollTo($("#"+b)),a.closeInSeconds>0&&setTimeout(function(){$("#"+b).remove()},1e3*a.closeInSeconds),b},initUniform:function(a){a?$(a).each(function(){0===$(this).parents(".checker").size()&&($(this).show(),$(this).uniform())}):p()},updateUniform:function(a){$.uniform.update(a)},initFancybox:function(){C()},getActualVal:function(a){return a=$(a),a.val()===a.attr("placeholder")?"":a.val()},getURLParameter:function(a){var b,c,d=window.location.search.substring(1),e=d.split("&");for(b=0;b<e.length;b++)if(c=e[b].split("="),c[0]==a)return unescape(c[1]);return null},isTouchDevice:function(){try{return document.createEvent("TouchEvent"),!0}catch(a){return!1}},getViewPort:function(){var a=window,b="inner";return"innerWidth"in window||(b="client",a=document.documentElement||document.body),{width:a[b+"Width"],height:a[b+"Height"]}},getUniqueID:function(a){return"prefix_"+Math.floor(Math.random()*(new Date).getTime())},isIE8:function(){return c},isIE9:function(){return d},isRTL:function(){return b},isAngularJsApp:function(){return"undefined"!=typeof angular},getAssetsPath:function(){return g},setAssetsPath:function(a){g=a},setGlobalImgPath:function(a){h=a},getGlobalImgPath:function(){return g+h},setGlobalPluginsPath:function(a){i=a},getGlobalPluginsPath:function(){return g+i},getGlobalCssPath:function(){return g+j},getBrandColor:function(a){return k[a]?k[a]:""},getResponsiveBreakpoint:function(a){var b={xs:480,sm:768,md:900,lg:1200};return b[a]?b[a]:0}}}(),Layout=function(){var a="img/",b="css/",c=Metronic.getResponsiveBreakpoint("md"),d=function(){var a,b=$(".page-content"),d=$(".page-sidebar"),e=$("body");if(e.hasClass("page-footer-fixed")===!0&&e.hasClass("page-sidebar-fixed")===!1){var f=Metronic.getViewPort().height-$(".page-footer").outerHeight()-$(".page-header").outerHeight();b.height()<f&&b.attr("style","min-height:"+f+"px")}else{if(e.hasClass("page-sidebar-fixed"))a=g(),e.hasClass("page-footer-fixed")===!1&&(a-=$(".page-footer").outerHeight());else{var h=$(".page-header").outerHeight(),i=$(".page-footer").outerHeight();a=Metronic.getViewPort().width<c?Metronic.getViewPort().height-h-i:d.height()+20,a+h+i<=Metronic.getViewPort().height&&(a=Metronic.getViewPort().height-h-i)}b.attr("style","min-height:"+a+"px")}},e=function(a,b){var d=location.hash.toLowerCase(),e=$(".page-sidebar-menu");if("click"===a||"set"===a?b=$(b):"match"===a&&e.find("li > a").each(function(){var a=$(this).attr("href").toLowerCase();return a.length>1&&d.substr(1,a.length-1)==a.substr(1)?void(b=$(this)):void 0}),b&&0!=b.size()&&"javascript:;"!==b.attr("href").toLowerCase()&&"#"!==b.attr("href").toLowerCase()){parseInt(e.data("slide-speed")),e.data("keep-expanded");e.find("li.active").removeClass("active"),e.find("li > a > .selected").remove(),e.hasClass("page-sidebar-menu-hover-submenu")===!1?e.find("li.open").each(function(){0===$(this).children(".sub-menu").size()&&($(this).removeClass("open"),$(this).find("> a > .arrow.open").removeClass("open"))}):e.find("li.open").removeClass("open"),b.parents("li").each(function(){$(this).addClass("active"),$(this).find("> a > span.arrow").addClass("open"),1===$(this).parent("ul.page-sidebar-menu").size()&&$(this).find("> a").append('<span class="selected"></span>'),1===$(this).children("ul.sub-menu").size()&&$(this).addClass("open")}),"click"===a&&Metronic.getViewPort().width<c&&$(".page-sidebar").hasClass("in")&&$(".page-header .responsive-toggler").click()}},f=function(){jQuery(".page-sidebar").on("click","li > a",function(a){var b=$(this).next().hasClass("sub-menu");if(!(Metronic.getViewPort().width>=c&&1===$(this).parents(".page-sidebar-menu-hover-submenu").size())){if(b===!1)return void(Metronic.getViewPort().width<c&&$(".page-sidebar").hasClass("in")&&$(".page-header .responsive-toggler").click());if(!$(this).next().hasClass("sub-menu always-open")){var e=$(this).parent().parent(),f=$(this),g=$(".page-sidebar-menu"),h=jQuery(this).next(),i=g.data("auto-scroll"),j=parseInt(g.data("slide-speed")),k=g.data("keep-expanded");k!==!0&&(e.children("li.open").children("a").children(".arrow").removeClass("open"),e.children("li.open").children(".sub-menu:not(.always-open)").slideUp(j),e.children("li.open").removeClass("open"));var l=-200;h.is(":visible")?(jQuery(".arrow",jQuery(this)).removeClass("open"),jQuery(this).parent().removeClass("open"),h.slideUp(j,function(){i===!0&&$("body").hasClass("page-sidebar-closed")===!1&&($("body").hasClass("page-sidebar-fixed")?g.slimScroll({scrollTo:f.position().top}):Metronic.scrollTo(f,l)),d()})):b&&(jQuery(".arrow",jQuery(this)).addClass("open"),jQuery(this).parent().addClass("open"),h.slideDown(j,function(){i===!0&&$("body").hasClass("page-sidebar-closed")===!1&&($("body").hasClass("page-sidebar-fixed")?g.slimScroll({scrollTo:f.position().top}):Metronic.scrollTo(f,l)),d()})),a.preventDefault()}}}),jQuery(".page-sidebar").on("click"," li > a.ajaxify",function(a){a.preventDefault(),Metronic.scrollTop();var b=$(this).attr("href"),d=jQuery(".page-sidebar ul"),e=($(".page-content"),$(".page-content .page-content-body"));d.children("li.active").removeClass("active"),d.children("arrow.open").removeClass("open"),$(this).parents("li").each(function(){$(this).addClass("active"),$(this).children("a > span.arrow").addClass("open")}),$(this).parents("li").addClass("active"),Metronic.getViewPort().width<c&&$(".page-sidebar").hasClass("in")&&$(".page-header .responsive-toggler").click(),Metronic.startPageLoading();var f=$(this);$.ajax({type:"GET",cache:!1,url:b,dataType:"html",success:function(a){0===f.parents("li.open").size()&&$(".page-sidebar-menu > li.open > a").click(),Metronic.stopPageLoading(),e.html(a),Layout.fixContentHeight(),Metronic.initAjax()},error:function(a,b,c){Metronic.stopPageLoading(),e.html("<h4>Could not load the requested content.</h4>")}})}),jQuery(".page-content").on("click",".ajaxify",function(a){a.preventDefault(),Metronic.scrollTop();var b=$(this).attr("href"),d=($(".page-content"),$(".page-content .page-content-body"));Metronic.startPageLoading(),Metronic.getViewPort().width<c&&$(".page-sidebar").hasClass("in")&&$(".page-header .responsive-toggler").click(),$.ajax({type:"GET",cache:!1,url:b,dataType:"html",success:function(a){Metronic.stopPageLoading(),d.html(a),Layout.fixContentHeight(),Metronic.initAjax()},error:function(a,b,c){d.html("<h4>Could not load the requested content.</h4>"),Metronic.stopPageLoading()}})}),i(),$(".page-sidebar").on("click",".sidebar-search .remove",function(a){a.preventDefault(),$(".sidebar-search").removeClass("open")}),$(".page-sidebar .sidebar-search").on("keypress","input.form-control",function(a){return 13==a.which?($(".sidebar-search").submit(),!1):void 0}),0!==$(".sidebar-search").size()&&($(".sidebar-search .input-group").on("click",function(a){a.stopPropagation()}),$("body").on("click",function(){$(".sidebar-search").hasClass("open")&&$(".sidebar-search").removeClass("open")}))},g=function(){var a=Metronic.getViewPort().height-$(".page-header").outerHeight();return $("body").hasClass("page-footer-fixed")&&(a-=$(".page-footer").outerHeight()),a},h=function(){var a=$(".page-sidebar-menu");return Metronic.destroySlimScroll(a),0===$(".page-sidebar-fixed").size()?void d():void(Metronic.getViewPort().width>=c&&(a.attr("data-height",g()),Metronic.initSlimScroll(a),d()))},i=function(){var a=$("body");a.hasClass("page-sidebar-fixed")&&$(".page-sidebar").on("mouseenter",function(){a.hasClass("page-sidebar-closed")&&$(this).find(".page-sidebar-menu").removeClass("page-sidebar-menu-closed")}).on("mouseleave",function(){a.hasClass("page-sidebar-closed")&&$(this).find(".page-sidebar-menu").addClass("page-sidebar-menu-closed")})},j=function(){$("body");$.cookie&&"1"===$.cookie("sidebar_closed")&&Metronic.getViewPort().width>=c?($("body").addClass("page-sidebar-closed"),$(".page-sidebar-menu").addClass("page-sidebar-menu-closed")):$.cookie&&$.cookie("sidebar_closed","0")},k=function(){$(".page-header").on("click",'.hor-menu a[data-toggle="tab"]',function(a){a.preventDefault();var b=$(".hor-menu .nav"),c=b.find("li.current");$("li.active",c).removeClass("active"),$(".selected",c).remove();var d=$(this).parents("li").last();d.addClass("current"),d.find("a:first").append('<span class="selected"></span>')}),$(".page-header").on("click",".search-form",function(a){$(this).addClass("open"),$(this).find(".form-control").focus(),$(".page-header .search-form .form-control").on("blur",function(a){$(this).closest(".search-form").removeClass("open"),$(this).unbind("blur")})}),$(".page-header").on("keypress",".hor-menu .search-form .form-control",function(a){return 13==a.which?($(this).closest(".search-form").submit(),!1):void 0}),$(".page-header").on("mousedown",".search-form.open .submit",function(a){a.preventDefault(),a.stopPropagation(),$(this).closest(".search-form").submit()}),$('[data-hover="megamenu-dropdown"]').not(".hover-initialized").each(function(){$(this).dropdownHover(),$(this).addClass("hover-initialized")}),$(document).on("click",".mega-menu-dropdown .dropdown-menu",function(a){a.stopPropagation()})},l=function(){$("body").on("shown.bs.tab",'a[data-toggle="tab"]',function(){d()})},m=function(){var a=300,b=500;navigator.userAgent.match(/iPhone|iPad|iPod/i)?$(window).bind("touchend touchcancel touchleave",function(c){$(this).scrollTop()>a?$(".scroll-to-top").fadeIn(b):$(".scroll-to-top").fadeOut(b)}):$(window).scroll(function(){$(this).scrollTop()>a?$(".scroll-to-top").fadeIn(b):$(".scroll-to-top").fadeOut(b)}),$(".scroll-to-top").click(function(a){return a.preventDefault(),$("html, body").animate({scrollTop:0},b),!1})},n=function(){var a,b=$(".full-height-content");if(a=Metronic.getViewPort().height-$(".page-header").outerHeight(!0)-$(".page-footer").outerHeight(!0)-$(".page-title").outerHeight(!0)-$(".page-bar").outerHeight(!0),b.hasClass("portlet")){var d=b.find(".portlet-body");if(Metronic.getViewPort().width<c)return void Metronic.destroySlimScroll(d.find(".full-height-content-body"));a=a-b.find(".portlet-title").outerHeight(!0)-parseInt(b.find(".portlet-body").css("padding-top"))-parseInt(b.find(".portlet-body").css("padding-bottom"))-2,b.hasClass("full-height-content-scrollable")?(a-=35,d.find(".full-height-content-body").css("height",a),Metronic.initSlimScroll(d.find(".full-height-content-body"))):d.css("min-height",a)}else{if(Metronic.getViewPort().width<c)return void Metronic.destroySlimScroll(b.find(".full-height-content-body"));b.hasClass("full-height-content-scrollable")?(a-=35,b.find(".full-height-content-body").css("height",a),Metronic.initSlimScroll(b.find(".full-height-content-body"))):b.css("min-height",a)}};return{initHeader:function(){k()},setSidebarMenuActiveLink:function(a,b){e(a,b)},initSidebar:function(){h(),f(),j(),Metronic.isAngularJsApp()&&e("match"),Metronic.addResizeHandler(h)},initContent:function(){n(),l(),Metronic.addResizeHandler(d),Metronic.addResizeHandler(n)},initFooter:function(){m()},init:function(){this.initHeader(),this.initSidebar(),this.initContent(),this.initFooter()},fixContentHeight:function(){d()},initFixedSidebarHoverEffect:function(){i()},initFixedSidebar:function(){h()},getLayoutImgPath:function(){return Metronic.getAssetsPath()+a},getLayoutCssPath:function(){return Metronic.getAssetsPath()+b}}}();angular.module("xCallyShuttleApp").run(["$templateCache",function(a){a.put("app/adminreset/adminreset.html",'<!-- BEGIN LOGO -->\n<div class="logo" data-ng-init="getInfo()">\n <a href="index.html">\n <img ng-src="api/settings/logo/login" alt="logo" class="custom-login-logo" onError="this.onerror=null"/>\n </a>\n</div>\n<!-- END LOGO -->\n<!-- BEGIN RESET -->\n<div class="content">\n <!-- BEGIN RESET FORM -->\n <form name="resetForm" data-ng-submit="resetForm.$valid && updatePassword()" novalidate>\n <h3>{{\'APPLICATION_RESET_PASSWORD\' | translate}}</h3>\n <p>\n {{\'MESSAGE_FIRST_LOGIN_PASSWORD_RESET\' | translate}}\n </p>\n <div class="form-group" data-ng-class="{\'has-error\': resetForm.$submitted && resetForm.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_NEW_PASSWORD\' | translate}}</label>\n <div class="input-icon">\n <i class="icon-key"></i>\n <input class="form-control form-control-solid placeholder-no-fix" type="password" placeholder="{{\'APPLICATION_NEW_PASSWORD\' | translate}}" name="password" ng-model="user.password" data-ng-pattern="setting.securePassword ? settings.patternPassword : settings.patternPasswordLight" required/>\n </div>\n <span class="help-block">\n {{setting.securePassword ? \'MESSAGE_PASSWORD_FORMAT\' : \'MESSAGE_PASSWORD_LIGHT_FORMAT\' | translate}}\n </span>\n <span data-ng-show="resetForm.$submitted && resetForm.password.$invalid" class="help-block">{{\'MESSAGE_REQUIRED_FIELD\' | translate}}</span>\n <span data-ng-show="(resetForm.password.$touched || resetForm.$submitted) && resetForm.password.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <div class="form-group" data-ng-class="{\'has-error\': resetForm.$submitted && resetForm.rePassword.$invalid}">\n <label class="control-label">{{\'APPLICATION_RE_TYPE_NEW_PASSWORD\' | translate}}</label>\n <div class="input-icon">\n <i class="icon-key"></i>\n <input class="form-control form-control-solid placeholder-no-fix" type="password" placeholder="{{\'APPLICATION_RE_TYPE_NEW_PASSWORD\' | translate}}" name="rePassword" ng-model="user.rePassword" nx-equal="user.password" required/>\n </div>\n <span data-ng-show="resetForm.$submitted && resetForm.rePassword.$invalid" class="help-block">{{\'MESSAGE_REQUIRED_FIELD\' | translate}}</span>\n <span data-ng-show="(resetForm.password.$touched || resetForm.$submitted) && resetForm.$error.nxEqual" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_PASSWORD\' | translate}}.\n </span>\n </div>\n <div class="form-actions">\n <button type="submit" class="btn btn-success uppercase">{{\'APPLICATION_SUBMIT\' | translate}}</button>\n </div>\n </form>\n <!-- END RESET FORM-->\n <div class="login-options">\n <h4>{{\'APPLICATION_FOLLOW_US\' | translate}}</h4>\n <ul class="social-icons">\n <li>\n <a class="social-icon-color facebook" data-original-title="facebook" href="https://www.facebook.com/xenialab"></a>\n </li>\n <li>\n <a class="social-icon-color twitter" data-original-title="Twitter" href="https://twitter.com/xenialab"></a>\n </li>\n <li>\n <a class="social-icon-color googleplus" data-original-title="Goole Plus" href="#"></a>\n </li>\n <li>\n <a class="social-icon-color linkedin" data-original-title="Linkedin" href="#"></a>\n </li>\n </ul>\n </div>\n</div>\n<div class="copyright">\n xCALLY Motion v. {{info.version}} | 2016 - {{year + 1}} © Powered by Xenialab <ng-bind-html data-ng-if="license.custom && !settings.defaultFooterWhiteLabel && settings.footerWhiteLabel" ng-bind-html="\'| \'+settings.footerWhiteLabel"></ng-bind-html>\n</div>\n<!-- END RESET -->\n'),a.put("app/analytic/extracted/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-file-pdf-o"></i>\n <a href="/analytics/extracted/list">{{ \'APPLICATION_EXTRACTED_REPORTS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="fa fa-file-pdf-o font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_EXTRACTED_REPORTS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n\n<!-- END PAGE CONTENT-->\n'),a.put("app/analytic/metric/list/create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_METRIC\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="forms.metric" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.metric.name.$touched || forms.metric.$submitted) && forms.metric.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(forms.metric.name.$touched || forms.metric.$submitted) && forms.metric.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START TABLE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.metric.table.$touched || forms.metric.$submitted) && forms.metric.table.$invalid}">\n <label class="control-label">{{\'APPLICATION_TABLE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.table" name="table" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{\'APPLICATION_\'+$select.selected.value.toUpperCase() | translate}}</ui-select-match>\n <ui-select-choices repeat="table.value as table in tables | filter: $select.search">\n <div ng-bind-html="\'APPLICATION_\'+table.value.toUpperCase() | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.metric.table.$touched || forms.metric.$submitted) && forms.metric.table.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TABLE-->\n\n <!-- START METRIC -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.metric.metric.$touched || forms.metric.$submitted) && forms.metric.metric.$invalid}">\n <label class="control-label">{{\'APPLICATION_METRIC\' | translate}}<span class="required" aria-required="true">*</span></label>\n <textarea type="text" name="metric" placeholder="{{\'APPLICATION_METRIC\' | translate}}" class="form-control" data-ng-model="item.metric" required/></textarea>\n <span data-ng-show="(forms.metric.metric.$touched || forms.metric.$submitted) && forms.metric.metric.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END METRIC -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="ok()" ng-disabled="forms.metric.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/analytic/metric/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-calculator"></i>\n <a href="/analytics/metrics/list">{{ \'APPLICATION_METRICS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <!-- <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-calculator font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_DEFAULT_METRICS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n </div>\n </div> -->\n <!-- <div class="portlet-body"> -->\n <!-- START TABLE -->\n <!-- <div ui-grid="gridOptionsDefault" data-ng-if="gridOptionsDefault" name="gridOptionsDefault" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptionsDefault.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div> -->\n <!-- END TABLE -->\n <!-- </div> -->\n <div class="portlet-title"><!-- removed margin-top20 class from title when commented the default metrics section-->\n <div class="caption font-green-sharp">\n <i class="icon-calculator font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_METRICS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <button class="btn green-jungle " ng-click="create()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_METRIC\' | translate }}\n </button>\n </div>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" data-ng-if="gridOptions" name="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/analytic/metric/list/view.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_METRIC\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="forms.metric" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.metric.name.$touched || forms.metric.$submitted) && forms.metric.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}</label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required readonly/>\n <span data-ng-show="(forms.metric.name.$touched || forms.metric.$submitted) && forms.metric.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START TABLE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.metric.table.$touched || forms.metric.$submitted) && forms.metric.table.$invalid}">\n <label class="control-label">{{\'APPLICATION_TABLE\' | translate}}</label>\n <ui-select data-ng-model="item.table" name="table" theme="bootstrap" required data-ng-disabled="true">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{\'APPLICATION_\'+$select.selected.value.toUpperCase() | translate}}</ui-select-match>\n <ui-select-choices repeat="table.value as table in tables | filter: $select.search">\n <div ng-bind-html="\'APPLICATION_\'+table.value.toUpperCase() | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.metric.table.$touched || forms.metric.$submitted) && forms.metric.table.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TABLE-->\n\n <!-- START METRIC -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.metric.metric.$touched || forms.metric.$submitted) && forms.metric.metric.$invalid}">\n <label class="control-label">{{\'APPLICATION_METRIC\' | translate}}</label>\n <textarea type="text" name="metric" placeholder="{{\'APPLICATION_METRIC\' | translate}}" class="form-control" data-ng-model="item.metric" required readonly/></textarea>\n <span data-ng-show="(forms.metric.metric.$touched || forms.metric.$submitted) && forms.metric.metric.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END METRIC -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description" readonly></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn default" type="button" ng-click="close()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'), +a.put("app/analytic/metric/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getMetric()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-eye"></i>\n <a href="/analytics/metrics/list">{{ \'APPLICATION_METRICS\' | translate }}</a>\n <i data-ng-show="metric" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="metric">\n <a href="#">{{metric.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/metric.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{metric.name}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.analytics.metrics.view.settings\')}">\n <a data-ng-href="/analytics/metrics/view/{{metric.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/analytic/metric/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_METRIC\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateMetric()" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="metric.name" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START TABLE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.table.$touched || forms.general.$submitted) && forms.general.table.$invalid}">\n <label class="control-label">{{\'APPLICATION_TABLE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="metric.table" name="table" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{\'APPLICATION_\'+$select.selected.value.toUpperCase() | translate}}</ui-select-match>\n <ui-select-choices repeat="table.value as table in tables | filter: $select.search">\n <div ng-bind-html="\'APPLICATION_\'+table.value.toUpperCase() | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.general.table.$touched || forms.general.$submitted) && forms.general.table.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TABLE-->\n\n <!-- START METRIC -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.metric.$touched || forms.general.$submitted) && forms.general.metric.$invalid}">\n <label class="control-label">{{\'APPLICATION_METRIC\' | translate}}<span class="required" aria-required="true">*</span></label>\n <textarea type="text" name="metric" placeholder="{{\'APPLICATION_METRIC\' | translate}}" class="form-control" data-ng-model="metric.metric" required/></textarea>\n <span data-ng-show="(forms.general.metric.$touched || forms.general.$submitted) && forms.general.metric.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END METRIC -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="metric.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ADVANCED TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/analytic/report/list/copy.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_COPY_REPORT\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp" style="padding-left:10px;">\n <i class="icon-folder font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_COPY_TO\' | translate }} </span>\n </div>\n </div>\n <div class="portlet-body">\n <div js-tree="customTreeConfig" ng-model="customTreeData" should-apply="ac()" tree="customTreeInstance" tree-events="ready:initCustomScopeTree;"></div>\n </div>\n </div>\n <div class="has-error">\n <span data-ng-show="showAlert" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_SELECT_FOLDER\' | translate}}.\n </span>\n </div>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" data-ng-click="ok()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/analytic/report/list/create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_REPORT\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="forms.report" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.report.name.$touched || forms.report.$submitted) && forms.report.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(forms.report.name.$touched || forms.report.$submitted) && forms.report.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.report.name.$touched || forms.report.$submitted) && forms.report.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_PATH\' | translate}}<span class="required" aria-required="true"></span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_PATH\' | translate}}" class="form-control" data-ng-model="path" disabled/>\n <span data-ng-show="(forms.report.name.$touched || forms.report.$submitted) && forms.report.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="ok()" ng-disabled="forms.report.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/analytic/report/list/deleteNode.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_DELETE_FOLDER\' | translate }}</h3>\n</div>\n<div class="modal-body">\n<p>\n {{\'MESSAGE_DELETE_NODE\' | translate}} : <b>{{node}}</b>?\n</p>\n<p>\n {{\'MESSAGE_ALL_REPORTS_WILL_BE_DELETED\' | translate}}\n</p>\n</div>\n<div class="modal-footer">\n <button class="btn btn-danger" type="button" ng-click="ok()" ng-disabled="forms.report.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/analytic/report/list/extract.modal.html",'<div class="modal-header">\n <button type="button" ng-click="cancel()" class="close">×</button>\n <h4 class="modal-title">{{ \'APPLICATION_EXTRACT_REPORT\' | translate }}</h4>\n</div>\n<div class="modal-body" style="text-align:center;">\n <form name="forms.report" class="form-inline mbottom20" novalidate>\n <div class="form-group" data-ng-class="{\'hidden\':daily}">\n <label class="control-label">{{\'APPLICATION_DATE_RANGE\' | translate}}</label>\n <input type="daterange" name="dates" ranges="ranges" style="min-width:190px;" enabletimepicker="timepicker" placeholder="{{\'APPLICATION_DATE_RANGE\' | translate}}" class="form-control" data-ng-model="dates" max-date="{{maxdate}}" data-ng-required="!daily" data-ng-disabled="daily" data-ng-class="{\'disabled-invisible\':daily}" style="cursor:pointer;" readonly/>\n </div>\n <div class="form-group" data-ng-if="daily">\n <label class="control-label">{{\'APPLICATION_FROM\' | translate}}</label>\n </div>\n <div class="form-group" data-ng-if="daily">\n <uib-timepicker ng-model="dailyTime.start" ng-change="changed()" hour-step="1" minute-step="1" show-meridian="false"></uib-timepicker>\n </div>\n <div class="form-group" data-ng-if="daily">\n <label class="control-label">{{\'APPLICATION_TO\' | translate}}</label>\n </div>\n <div class="form-group" data-ng-if="daily">\n <uib-timepicker ng-model="dailyTime.end" ng-change="changed()" hour-step="1" minute-step="1" show-meridian="false"></uib-timepicker>\n </div>\n <!-- START STATUS -->\n <div class="form-group">\n <input\n bs-switch\n class="form-control"\n ng-model="daily"\n type="checkbox"\n name="auth"\n switch-active="{{ dailySwitch.isActive }}"\n switch-on-text="{{ dailySwitch.onText }}"\n switch-off-text="{{ dailySwitch.offText }}"\n switch-on-color="{{ dailySwitch.onColor }}"\n switch-off-color="{{ dailySwitch.offColor }}"\n switch-animate="{{ dailySwitch.animate }}"\n switch-size="{{ dailySwitch.size }}"\n switch-label="{{ dailySwitch.label }}"\n switch-icon="{{ dailySwitch.icon }}"\n switch-radio-off="{{ dailySwitch.radioOff }}"\n switch-label-width="{{ dailySwitch.labelWidth }}"\n switch-handle-width="{{ dailySwitch.handleWidth }}">\n </div>\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn default green-jungle" type="button" data-ng-click="extract(\'csv\')"><i class="fa fa-file-excel-o"></i> {{ \'APPLICATION_SAVE_AS_CSV\' | translate }}</button>\n <button class="btn default red-intense" type="button" data-ng-click="extract(\'pdf\')"><i class="fa fa-file-pdf-o"></i> {{ \'APPLICATION_SAVE_AS_PDF\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/analytic/report/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getTrees()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-book-open"></i>\n <a href="/analytics/reports/list">{{ \'APPLICATION_REPORTS\' | translate }}</a>\n </li>\n </ul>\n </div>\n <div class="col-fixed">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp" style="padding-left:10px;">\n <i class="icon-folder font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_FOLDERS\' | translate }} </span>\n </div>\n <div class="inputs">\n <div class="portlet-input input-inline input-small">\n <div class="input-icon right">\n <i class="icon-magnifier"></i>\n <input type="text" data-ng-model="searchField" data-ng-change="searchTrees()" class="form-control input-circle" placeholder="search...">\n </div>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <div js-tree="defaultTreeConfig" ng-model="defaultTreeData" should-apply="ac()" tree="defaultTreeInstance" tree-events="ready:initDefaultScopeTree;select_node:selectDefaultNode;"></div>\n <div js-tree="customTreeConfig" ng-model="customTreeData" should-apply="ac()" tree="customTreeInstance" tree-events="ready:initCustomScopeTree;select_node:selectCustomNode;rename_node:updateCustomTree;delete_node:updateCustomTree;move_node:updateCustomTree;create_node:updateCustomTree;"></div>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n <div class="row tree-row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-book-open font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_REPORTS\' | translate }}<span data-ng-if="selectedNode"> - {{selectedNode}}</span></span>\n </div>\n <div data-ng-if="!defaultTreeActive" class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <span class="btn default btn-file">\n <span class="fileinput-new">\n <i class="icon-cloud-upload"></i> {{\'APPLICATION_IMPORT_FROM_JSON\' | translate}}</span>\n <input type="file" on-read-file="import($fileContent)"/>\n </span>\n </div>\n <div class="btn-group">\n <button class="btn green-jungle " ng-click="create()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_REPORT\' | translate }}\n </button>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <div ng-slide-down="gridOptions" lazy-render duration="1">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n </div>\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/analytic/report/list/preview.modal.html",'<div class="modal-header">\n <button type="button" ng-click="cancel()" class="close">×</button>\n <h4 class="modal-title">{{ \'APPLICATION_REPORT_PREVIEW\' | translate }}</h4>\n</div>\n<div class="modal-body" style="text-align:center;">\n <form name="forms.report" class="form-inline mbottom20" novalidate>\n <div class="form-group" data-ng-class="{\'hidden\':daily}">\n <label class="control-label">{{\'APPLICATION_DATE_RANGE\' | translate}}<span class="required" aria-required="true"></span></label>\n <input type="daterange" name="dates" ranges="ranges" style="min-width:190px;" enabletimepicker="timepicker" placeholder="{{\'APPLICATION_DATE_RANGE\' | translate}}" class="form-control" data-ng-model="dates" data-ng-change="getPage()" max-date="{{maxdate}}" data-ng-required="!daily" data-ng-disabled="daily" data-ng-class="{\'disabled-invisible\':daily}" style="cursor:pointer;" readonly/>\n </div>\n <div class="form-group" data-ng-if="daily">\n <label class="control-label">{{\'APPLICATION_FROM\' | translate}}</label>\n </div>\n <div class="form-group" data-ng-if="daily">\n <uib-timepicker ng-model="dailyTime.start" ng-change="changed()" hour-step="1" minute-step="1" show-meridian="false"></uib-timepicker>\n </div>\n <div class="form-group" data-ng-if="daily">\n <label class="control-label">{{\'APPLICATION_TO\' | translate}}</label>\n </div>\n <div class="form-group" data-ng-if="daily">\n <uib-timepicker ng-model="dailyTime.end" ng-change="changed()" hour-step="1" minute-step="1" show-meridian="false"></uib-timepicker>\n </div>\n <div class="form-group" data-ng-if="daily">\n <button class="btn btn-small btn-sm btn-success" data-ng-click="getPage()">Apply</button>\n </div>\n <div class="form-group">\n <input\n bs-switch\n class="form-control"\n ng-model="daily"\n type="checkbox"\n name="auth"\n data-ng-change="getPage()"\n switch-active="{{ dailySwitch.isActive }}"\n switch-on-text="{{ dailySwitch.onText }}"\n switch-off-text="{{ dailySwitch.offText }}"\n switch-on-color="{{ dailySwitch.onColor }}"\n switch-off-color="{{ dailySwitch.offColor }}"\n switch-animate="{{ dailySwitch.animate }}"\n switch-size="{{ dailySwitch.size }}"\n switch-label="{{ dailySwitch.label }}"\n switch-icon="{{ dailySwitch.icon }}"\n switch-radio-off="{{ dailySwitch.radioOff }}"\n switch-label-width="{{ dailySwitch.labelWidth }}"\n switch-handle-width="{{ dailySwitch.handleWidth }}">\n </div>\n </form>\n <div ng-slide-down="showResult" lazy-render duration="1">\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-exporter class="grid extract-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n </div>\n</div>\n<div class="modal-footer">\n<button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'),a.put("app/analytic/report/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getReport()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-book-open"></i>\n <a href="/analytics/reports/list">{{ \'APPLICATION_REPORTS\' | translate }}</a>\n <i data-ng-show="report" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="report">\n <a href="#">{{report.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/analytic/report/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <div class="caption-subject font-blue-madison bold uppercase dot">{{ \'APPLICATION_REPORT\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} - {{report.name}} </div>\n </div>\n <ul class="nav nav-tabs">\n <li>\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n <li class="active">\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{ \'APPLICATION_BUILD\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_3" data-toggle="tab" data-ng-click="showResult = true">{{ \'APPLICATION_TEST_PREVIEW\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n\n <div class="tab-content">\n\n <!-- GENERAL TAB -->\n <div class="tab-pane" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.report.$valid && forms.general.$valid && updateReport()" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="report.name" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="report.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}" />\n </form>\n </div>\n <!-- END GENERAL TAB -->\n\n <!-- BUILD TAB -->\n <div class="tab-pane active" id="tab_1_2">\n <form name="forms.report" data-ng-submit="forms.report.$valid && forms.general.$valid && updateReport()" novalidate>\n <!-- START TABLE INPUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.report.table.$touched || forms.report.$submitted) && forms.report.table.$invalid}">\n <label class="control-label">{{\'APPLICATION_TABLE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="report.table" name="table" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{\'APPLICATION_\'+$select.selected.value.toUpperCase() | translate}}</ui-select-match>\n <ui-select-choices group-by="\'channel\'" repeat="table.value as table in tables | filter: $select.search">\n <div ng-bind-html="\'APPLICATION_\'+table.value.toUpperCase() | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.report.table.$touched || forms.report.$submitted) && forms.report.table.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TABLE INPUT-->\n <div data-ng-if="report.table" class="mbottom20 pbottom20 table-responsive">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_FIELDS\' | translate}} </span>\n </div>\n </div>\n <!-- START TABLE -->\n <table class="table table-striped table-bordered table-hover">\n <thead>\n <tr>\n <th>{{ \'APPLICATION_FIELD\' | translate }} / {{ \'APPLICATION_METRIC\' | translate }}</th>\n <th style="min-width:167px;">{{ \'APPLICATION_ALIAS\' | translate }}</th>\n <th>{{ \'APPLICATION_FUNCTION\' | translate }}</th>\n <th>{{ \'APPLICATION_FORMAT\' | translate }}</th>\n <th>{{ \'APPLICATION_GROUP_BY\' | translate }}</th>\n <th>{{ \'APPLICATION_ORDER_BY\' | translate }}</th>\n <th></th>\n <th style="min-width:66px;"></th>\n </tr>\n </thead>\n <tbody ui-sortable="sortableOptions" data-ng-model="report.Fields">\n <tr data-ng-repeat="field in report.Fields">\n <td>\n <!-- START FIELD -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.report.$submitted && !field.field}">\n <!-- <label class="control-label">{{\'APPLICATION_FIELD\' | translate}}<span class="required" aria-required="true">*</span></label> -->\n <div class="input-group">\n <ui-select data-ng-if="!field.custom" data-ng-model="field.field" dynamic-name="randomName()" theme="bootstrap" on-select="setMetricId($item,$index)" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}"><span ng-bind-html="$select.selected.name"></span></ui-select-match>\n <ui-select-choices repeat="tableField.value as tableField in tableFields | filter: $select.search">\n <div ng-bind-html="tableField.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <input data-ng-if="field.custom" type="text" dynamic-name="randomName()" placeholder="{{\'APPLICATION_CUSTOM\' | translate}}" class="form-control" data-ng-model="field.field" required/>\n <span class="input-group-btn">\n <button type="button" data-ng-click="toggleCustom(field)" class="btn btn-default">\n <span class="icon-pencil" data-ng-class="{\'font-blue\':field.custom}"></span>\n </button>\n </span>\n </div>\n <span data-ng-show="forms.report.$submitted && !field.field" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END FIELD-->\n </td>\n <td>\n <!-- START ALIAS -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.report.$submitted && !field.alias}">\n <!-- <label class="control-label">{{\'APPLICATION_ALIAS\' | translate}}<span class="required" aria-required="true">*</span></label> -->\n <input type="text" dynamic-name="randomName()" placeholder="{{\'APPLICATION_ALIAS\' | translate}}" class="form-control" data-ng-model="field.alias" data-ng-pattern="\'[A-Za-z0-9 <>=,%_\\\\+*!\\\\-\\\\[\\\\]]+\'" required/>\n <span data-ng-show="forms.report.$submitted && !field.alias" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="forms.report.$submitted && !field.alias" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END ALIAS -->\n </td>\n <td>\n <!-- START FUNCTION -->\n <div class="form-group">\n <!-- <label class="control-label">{{\'APPLICATION_FIELD\' | translate}}<span class="required" aria-required="true">*</span></label> -->\n <ui-select data-ng-model="field.function" name="function" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_FUNCTION\' | translate}}" allow-clear>{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="function.value as function in functions | filter: $select.search">\n <div ng-bind-html="function.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END FUNCTION-->\n </td>\n <td>\n <!-- START FORMAT -->\n <div class="form-group">\n <!-- <label class="control-label">{{\'APPLICATION_FIELD\' | translate}}<span class="required" aria-required="true">*</span></label> -->\n <ui-select data-ng-model="field.format" name="format" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_FORMAT\' | translate}}" allow-clear>{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="format.value as format in formatFunctions | filter: $select.search">\n <div ng-bind-html="format.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END FORMAT-->\n </td>\n <td>\n <!-- START GROUP_BY -->\n <div class="form-group">\n <!-- <label class="control-label">{{\'APPLICATION_FIELD\' | translate}}<span class="required" aria-required="true">*</span></label> -->\n <ui-select data-ng-model="field.groupBy" name="groupBy" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_GROUP_BY\' | translate}}">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="groupBy.value as groupBy in groupByField | filter: $select.search">\n {{$translate.instant(groupBy.name)}}\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END GROUP_BY-->\n </td>\n <td>\n <!-- START ORDER_BY -->\n <div class="form-group">\n <!-- <label class="control-label">{{\'APPLICATION_FIELD\' | translate}}<span class="required" aria-required="true">*</span></label> -->\n <ui-select data-ng-model="field.orderBy" name="orderBy" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_ORDER_BY\' | translate}}" allow-clear>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="orderBy in [\'ASC\',\'DESC\'] | filter: $select.search">\n <div ng-bind-html="orderBy | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END TABLE INPUT-->\n </td>\n <td class="report-field-remove">\n <button class="btn red" type="button" data-ng-click="removeField($index)"><i class="fa fa-times"></i></button>\n </td>\n <td class="report-field-handle">\n <!-- <img data-ng-src="assets/images/move.png" class="img-responsive"> -->\n </td>\n </tr>\n <tr data-ng-hide="report.Fields.length" class="unsortable">\n <td colspan="8" style="text-align:center;">\n <i>{{ \'MESSAGE_ADD_A_FIELD\' | translate }}</i>\n </td>\n </tr>\n </tbody>\n </table>\n <button type="button" class="btn btn-sm green padding-bottom" ng-click="addField()">\n <i class="fa fa-plus"></i> {{\'APPLICATION_ADD_FIELD\' | translate}}\n </button>\n <!-- END TABLE -->\n </div>\n <div data-ng-if="report.Fields.length" class="mbottom20 pbottom20">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_CONDITIONS\' | translate}} </span>\n </div>\n </div>\n <div class="alert alert-info">\n <strong>Output</strong>\n <br>\n <span ng-bind-html="output"></span>\n </div>\n\n <report-builder group="report.conditions.group" fields="tableFields" forms="forms" firstCall=\'true\'></report-builder>\n </div>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}" />\n </form>\n </div>\n <!-- END BUILD TAB -->\n\n <!-- PREVIEW TAB -->\n <div class="tab-pane" id="tab_1_3">\n <div ng-slide-down="showResult" lazy-render duration="0.5">\n <div ui-grid="gridOptions" data-ng-if="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-move-columns class="grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n </div>\n </div>\n <!-- END PREVIEW TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'), +a.put("app/channels/chat/offline/list/list.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-bubble"></i>\n <a href="#">{{ \'APPLICATION_CHAT\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-login"></i>\n <a href="/channels/chat/offline/list">{{ \'APPLICATION_OFFLINE\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-question font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_OFFLINE_MESSAGES\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/chat/offline/message/message.directive.html",'<div class="message">\n <div class="row">\n <div class="col-md-12">\n <span class="bold">From: </span>\n [<a href="" data-ng-click="openContact(message.email)">{{message.email}}</a>]\n </div>\n </div>\n <br>\n <span class="todo-tasklist-date">\n <i class="icon-calendar"></i> {{message.createdAt | date:\'medium\'}} (<span am-time-ago="message.createdAt"></span>)\n </span>\n <hr>\n <div class="body text-left message-body" data-ng-bind="message.text"></div>\n <h5 data-ng-hide="message.text" class="media-heading"><i>{{\'MESSAGE_NO_AVAILABLE_TEXT\' | translate | lowercase}}</i></h5>\n</div>\n'),a.put("app/channels/chat/offline/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initView();">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-bubble"></i>\n <a href="#">{{ \'APPLICATION_CHAT\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-login"></i>\n <a href="/channels/chat/offline/list">Offline</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-user"></i>\n <a href="#">{{enquiry.username}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE CONTENT -->\n <div class="portlet light">\n <div class="portlet-title">\n <div class="caption">\n <span data-ng-if="enquiry.ChatWebsite" class="caption-subject font-green-sharp bold uppercase">{{enquiry.ChatWebsite.name}}</span>\n </div>\n </div>\n <div class="portlet-body">\n <div class="row">\n <div class="col-md-4">\n <!-- Visitor Information -->\n <div class="portlet">\n <div class="portlet-body">\n <v-accordion class="vAccordion--default">\n <v-pane expanded="true">\n <v-pane-header>\n <ng-letter-avatar data-ng-if="enquiry.ChatVisitor" height="40" width="40" data="{{enquiry.ChatVisitor.fullname}}" fontsize="25" avatarcustombgcolor="#B0B0B0" charCount="2" avatarcustomborder="border:2px solid #EA4C61" shape="round"></ng-letter-avatar>\n </v-pane-header>\n <v-pane-content>\n {{\'APPLICATION_NAME\' | translate}}:<p>{{enquiry.ChatVisitor.fullname}}</p>\n {{\'APPLICATION_EMAIL\' | translate}}:<p><a data-ng-click="openContact(enquiry.ChatVisitor.email)" href="">{{enquiry.ChatVisitor.email}}</a></p>\n <span data-ng-if="enquiry.ChatVisitor.labelOfflineData1">{{enquiry.ChatVisitor.labelOfflineData1}}: <p>{{enquiry.ChatVisitor.offlineData1}}</p></span>\n <span data-ng-if="enquiry.ChatVisitor.labelOfflineData2">{{enquiry.ChatVisitor.labelOfflineData2}}: <p>{{enquiry.ChatVisitor.offlineData2}}</p></span>\n <span data-ng-if="enquiry.ChatVisitor.labelOfflineData3">{{enquiry.ChatVisitor.labelOfflineData3}}: <p>{{enquiry.ChatVisitor.offlineData3}}</p></span>\n {{\'APPLICATION_REMOTE_ADDRESS\' | translate}}:<p>{{enquiry.ChatVisitor.remote_address}}</p>\n {{\'APPLICATION_BROWSER\' | translate}}:<p>{{enquiry.ChatVisitor.browser}}</p>\n {{\'APPLICATION_REFERER\' | translate}}:<p>{{enquiry.ChatVisitor.referer}} - {{enquiry.ChatWebsite.name}}</p>\n {{\'APPLICATION_OS\' | translate}}:<p>{{enquiry.ChatVisitor.os}}</p>\n </v-pane-content>\n </v-pane>\n </v-accordion>\n </div>\n </div>\n </div>\n <div class="col-md-8">\n <!-- Offline message -->\n <div id="mail-box">\n <ul class="chats">\n <li class="in">\n <enquiry-message message="enquiry" list-id="enquiry.ChatWebsite.ListId"></enquiry-message>\n </li>\n </ul>\n </div>\n </div>\n </div>\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/chat/online/list/list.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-bubble"></i>\n <a href="#">{{ \'APPLICATION_CHAT\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-login"></i>\n <a href="/channels/chat/online/list">{{ \'APPLICATION_ONLINE\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-question font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_VISITORS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/chat/online/view/view.detail.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_DETAIL\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body row" data-ng-init="initView()">\n <div class="col-md-6">\n <div class="news-blocks">\n <h3>\n <a href="#" class="inactive-link">{{\'APPLICATION_MESSAGES\' | translate}}</a>\n <!-- <a href="#" data-ng-click="export()" data-ng-show="chatRoom.ChatMessages.length" class="btn btn-sm blue pull-right"><i class="icon-cloud-download"></i> {{\'APPLICATION_EXPORT\' | translate}} CSV </a> -->\n <a href="api/chat/rooms/{{chatRoom.id}}/export" target="_blank" data-ng-show="chatRoom.ChatMessages.length" class="btn btn-sm blue pull-right"><i class="icon-cloud-download"></i> {{\'APPLICATION_EXPORT\' | translate}} CSV </a>\n <hr>\n </h3>\n <div class="news-block-tags">\n <em am-time-ago="chatRoom.ChatVisitor.ChatEnquiry.createdAt"></em>\n </div>\n <p>\n <div ng-scrollbars ng-scrollbars-config="config">\n <ul class="chats">\n <li data-ng-class="{\'out\': message.User, \'in\':message.ChatVisitor}" data-ng-repeat="message in chatRoom.ChatMessages | orderBy:\'createdAt\'">\n <img class="avatar" data-ng-src="api/users/avatar/{{message.User.userpic || \'unknown_avatar\'}}">\n <div class="message">\n <span class="arrow">\n </span>\n <a href="#" class="name">\n {{message.User ? message.User.fullname : message.ChatVisitor.fullname}}\n </a>\n <span class="datetime">\n at {{message.createdAt | date: \'medium\'}}\n </span>\n <span class="body">\n {{message.body}}\n </span>\n </div>\n </li>\n </ul>\n </div>\n </div>\n </div>\n <div class="col-md-6">\n <div class="news-blocks">\n <h3>\n <a href="#" class="inactive-link">{{\'APPLICATION_VISITOR\' | translate}}</a>\n <hr>\n </h3>\n <div class="margin-top-20 profile-desc-link">\n <i class="icon-user"></i>\n <a href="#" class="inactive-link">{{chatRoom.ChatVisitor.fullname}}</a>\n </div>\n <div class="margin-top-20 profile-desc-link">\n <i class="icon-envelope"></i>\n <a href="#" class="inactive-link">{{chatRoom.ChatVisitor.email}}</a>\n </div>\n <div class="margin-top-20 profile-desc-link">\n <i class="icon-globe"></i>\n <a href="#" class="inactive-link">{{chatRoom.ChatVisitor.remote_address}}</a>\n </div>\n <div class="margin-top-20 profile-desc-link">\n <i class="icon-home"></i>\n <a href="#" class="inactive-link">{{chatRoom.ChatVisitor.referer}} - {{chatRoom.ChatVisitor.ChatWebsite.name}}</a>\n </div>\n <div class="margin-top-20 profile-desc-link">\n <i class="icon-cursor"></i>\n <a href="#" class="inactive-link">{{chatRoom.ChatVisitor.browser}}</a>\n </div>\n <div class="margin-top-20 profile-desc-link">\n <i class="icon-screen-desktop"></i>\n <a href="#" class="inactive-link">{{chatRoom.ChatVisitor.os}}</a>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n'),a.put("app/channels/chat/online/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-bubble"></i>\n <a href="#">{{ \'APPLICATION_CHAT\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-login"></i>\n <a href="/channels/chat/online/list">Online</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/enquiry.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- START USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{chatRoom.ChatVisitor.email}}\n </div>\n <div class="profile-usertitle-job">\n {{chatRoom.ChatVisitor.fullname}}\n </div>\n </div>\n <!-- END USER TITLE -->\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.channels.chat.online.view.detail\')}">\n <a data-ng-href="/channels/chat/online/view/{{chatRoom.id}}/detail">\n <i class="icon-tag"></i>\n {{ \'APPLICATION_DETAIL\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/chat/preview/preview.html",'<style>\n.xc_header_logo\n{\n display:block;\n background-image:url({{chatWebsite.remote}}/api/xchatty/assets?resource=images/motion_logo.png);\n width:40px;\n height:40px;\n float:left;;\n margin-left: 10px !important;\n margin-top: 6px !important;\n}\n.xc_rating {\n text-align: center;\n}\n.xc_rating_label > input{ /* HIDE RADIO */\n display:none;\n}\n.xc_rating_label > input + img{ /* IMAGE STYLES */\n cursor:pointer;\n border:2px solid transparent;\n}\n.xc_rating_label > input:checked + img{ /* (CHECKED) IMAGE STYLES */\n /*border:2px solid #f00;*/\n background-color: #efefef;\n}\n\n.xc_label {\n display: inline-block;\n max-width: 100%;\n margin-bottom: 5px;\n font-weight: bold;\n}\n\n.xc_online_message,\n.xc_offline_message,\n.xc_rating_message\n{\n text-align: center;\n}\n\n.xc_div_group {\n margin: 10px 0 10px 0;\n}\n.xc_footer\n{\n text-align: center;\n padding-bottom: 5px;\n}\n\n.xc_powered\n{\n color: grey;\n font: 10px/16px "Lucida Grande","Lucida Sans Unicode",Arial,Verdana,sans-serif;\n padding-bottom: 5px;\n}\n\n.xc_chat_container\n{\n //width:379px;\n //position:fixed;\n //bottom:0;\n //right:50px;\n z-index:9999;\n background-color:transparent;\n}\n\n.xc_chat_container *\n{\n font-family:Arial,Helvetica,sans-serif;\n font-size:13px;\n margin:0;\n padding:0;\n}\n\n.xc_chat_container p\n{\n margin:5px 0;\n}\n\n.xc_signup_wrapper\n{\n max-height:375px;\n}\n\n.xc_conversation_container\n{\n max-height:375px;\n list-style:none;\n overflow:auto;\n margin:0;\n padding:20px 10px;\n}\n\n.xc_conversation_container a\n{\n color:#036;\n}\n\n.xc_conversation_container a.xc_btn_style\n{\n color:#fff;\n}\n\ndiv.xc_chat_head\n{\n color:#fff;\n background:{{chatWebsite.color}};\n //border-radius: 20px 20px 0px 0px !important;\n height:52px;\n line-height:55px;\n cursor:pointer;\n}\n\ndiv.xc_chat_head.rounded\n{\n border-radius: 20px 20px 0px 0px !important;\n}\n\ndiv.xc_chat_head.squared\n{\n //border-radius: 20px 20px 0px 0px !important;\n}\n\n.xc_chat_head-title\n{\n margin:5px 0 0 15px;\n color: #fff;\n}\n\n.xc_header_icon\n{\n display:block;\n background-image:url({{chatWebsite.remote}}/api/xchatty/assets?resource=images/iconVisitorchat.png);\n width:21px;\n height:16px;\n float:right;\n margin:20px 20px 0 0;\n}\n\n.xc_header_icon span.xc_notification_badge span\n{\n display:block;\n height:16px;\n width:15px;\n text-align:center;\n font-size:9px;\n color:#555;\n position:relative;\n top:-20px;\n left:4px;\n margin:0;\n padding:0;\n}\n\n.xc_sub-head-spacer\n{\n padding:1px;\n}\n\n.xc_conversation\n{\n display:none;\n margin:0 12px 0 11px;\n}\n\n.xc_chat_toggle_container\n{\n /*background:mediumslateblue center 52px;*/\n background: white;\n border-style: solid;\n border-width: 1px;\n border-color: {{chatWebsite.color}};\n //display:none;\n}\n\n.xc_signup_wrapper,.xc_notifications_wrapper,.xc_enquiry_wrapper,.xc_rating_wrapper\n{\n //display:none;\n display:block;\n overflow:auto;\n line-height:1;\n padding:25px;\n}\n\n.xc_exit_chat_container\n{\n text-align:right;\n width:95%;\n margin:0 auto;\n padding:5px 1px 0 0;\n}\n\n.xc_exit_chat_container span,.xc_exit_chat_container a\n{\n font-size:80%;\n color:#666;\n text-decoration:none;\n}\n\n.xc_exit_chat_container a:hover\n{\n color:#333;\n}\n\na.xc_btn_exit_chat_confirm:hover\n{\n color:red;\n}\n\na.xc_btn_exit_chat_cancel:hover\n{\n color:#0c0;\n}\n\nform.xc_form_reply\n{\n position:relative;\n}\n\n.xc_form_reply\n{\n /*background-color:#e3e3e3;*/\n text-align:center;\n /*border-top:1px solid #d3d3d3;*/\n}\n\n.xc_input_message\n{\n height:100px;\n margin:10px auto 5px;\n}\n\n.xc_input_enquiry_message,\n.xc_input_rating_message\n{\n height:100px;\n}\n\n.xc_form_signup,.xc_form_enquiry,.xc_form_rating\n{\n /*text-align:center;*/\n}\n\n.xc_chat_container textarea,.xc_chat_container input[type=text]\n{\n width:95%;\n min-width:95%;\n max-width:95%;\n -webkit-box-sizing:border-box;\n -moz-box-sizing:border-box;\n box-sizing:border-box;\n background-color:#fff;\n border:1px solid #ccc;\n -webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);\n -moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);\n box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);\n -webkit-transition:border linear .2s, box-shadow linear .2s;\n -moz-transition:border linear .2s, box-shadow linear .2s;\n -o-transition:border linear .2s, box-shadow linear .2s;\n transition:border linear .2s, box-shadow linear .2s;\n display:inline-block;\n font-size:14px;\n line-height:20px;\n color:#555;\n -webkit-border-radius:4px;\n -moz-border-radius:4px;\n border-radius:4px;\n vertical-align:middle;\n margin:3px 0;\n padding:4px 6px;\n resize: none;\n}\n\n.xc_chat_container textarea:focus,.xc_chat_container input[type=text]:focus\n{\n outline: {{chatWebsite.color_focus}} auto 5px;\n}\n\n.xc_chat_container input[type=text]\n{\n height: 30px;\n}\n\n.xc_message_sending textarea, .xc_enquiry_sending textarea\n{\n background: #fff url({{chatWebsite.remote}}/api/xchatty/assets?resource=images/loading.gif) 98% 5px no-repeat;\n}\n\n.xc_chatrow\n{\n display:block;\n border-top:1px dashed #e3e3e3;\n margin:5px 0;\n clear: both;\n}\n\n.xc_chatrow p\n{\n color:#444;\n word-wrap:break-word;\n}\n\n.xc_time\n{\n float:right;\n font-size:80%;\n color:#ccc;\n padding-left:12px;\n margin:3px;\n}\n\n.xc_submission_pending\n{\n background:transparent url({{chatWebsite.remote}}/api/xchatty/assets?resource=images/bullet_clock.png) left center norepeat;\n}\n\n.xc_submission_confirmed\n{\n background:transparent url({{chatWebsite.remote}}/api/xchatty/assets?resource=images/bullet_tick.png) left center norepeat;\n}\n\n.xc_fullname\n{\n font-weight:700;\n}\n\n.xc_fullname:after\n{\n content:":";\n}\n\n.xc_avatar\n{\n float: left;\n margin: 0 5px 5px 0;\n display: inline-block;\n width: 40px;\n height: 40px;\n border-radius: 5px;\n -moz-border-radius: 5px;\n -webkit-border-radius: 5px;\n}\n\n.xc_smilie\n{\n background-repeat:no-repeat;\n display:inline-block;\n width:18px;\n height:18px;\n text-indent:-9999px;\n white-space:nowrap;\n}\n\n.xc_btn_load_more\n{\n width:100%!important;\n}\n\n.xc_notifications_wrapper\n{\n text-shadow:0 1px 0 rgba(255,255,255,0.5);\n}\n\n.xc_notification_success\n{\n color:#468847;\n}\n\n.xc_notification_error\n{\n color:#b94a48;\n}\n\n.xc_errorlist\n{\n margin:0 0 0 25px;\n padding:0;\n}\n\ni.xc_btn_notifications_close\n{\n float:right;\n font-weight:700;\n font-size:20px;\n color:#ccc;\n cursor:pointer;\n margin:-15px 0 0;\n padding:0;\n}\n\n.xc_btn_style\n{\n width:95%;\n text-align:center;\n line-height:1.2;\n font-size:90%;\n -moz-box-shadow:inset 0 1px 0 0 {{chatWebsite.color_button}};\n -webkit-box-shadow:inset 0 1px 0 0 {{chatWebsite.color_button}};\n box-shadow:inset 0 1px 0 0 {{chatWebsite.color_button}};\n background:0;\n background-color:{{chatWebsite.color_button}};\n -moz-border-radius:4px;\n -webkit-border-radius:4px;\n border-radius:4px;\n border:1px solid {{chatWebsite.color_button}};\n display:inline-block;\n color:#fff;\n font-weight:700;\n text-decoration:none;\n text-shadow:1px 1px 0 #000c17;\n margin:0 auto 5px;\n padding:2px 0;\n}\n\n.xc_btn_style:hover\n{\n background:0;\n background-color:{{chatWebsite.color_button}};\n color: #fff;\n text-decoration: none;\n}\n\n.xc_btn_style:active\n{\n position:relative;\n top:1px;\n}\n\n.xc_composing_container\n{\n display: none;\n width: 95%;\n margin: 0 auto;\n background: transparent url({{chatWebsite.remote}}/api/xchatty/assets?resource=images/bullet_pencil.png) 6px center no-repeat;\n padding-left: 19px;\n font-style: italic;\n}\n\n@media only screen and (max-height: 620px) {\n .xc_conversation_container\n {\n max-height:300px!important;\n }\n}\n\n@media only screen and (max-height: 545px) {\n .xc_conversation_container\n {\n max-height:200px!important;\n }\n}\n\n@media only screen and (max-height: 445px) {\n .xc_conversation_container\n {\n max-height:150px!important;\n }\n}\n\n@media only screen and (max-width: 480px) {\n .xc_chat_container\n {\n width:95%!important;\n right:auto!important;\n -webkit-border-top-left-radius:15px;\n -webkit-border-top-right-radius:15px;\n -moz-border-radius-topleft:15px;\n -moz-border-radius-topright:15px;\n border-top-left-radius:15px;\n border-top-right-radius:15px;\n box-shadow:0 0 5px rgba(0,0,0,.5);\n -webkit-box-shadow:0 0 5px rgba(0,0,0,.5);\n -moz-box-shadow:0 0 5px rgba(0,0,0,.5);\n }\n\n div.xc_chat_head\n {\n background-color:#036;\n background-image:none;\n line-height:25px;\n height:auto;\n -webkit-border-top-left-radius:15px;\n -webkit-border-top-right-radius:15px;\n -moz-border-radius-topleft:15px;\n -moz-border-radius-topright:15px;\n border-top-left-radius:15px;\n border-top-right-radius:15px;\n padding:10px;\n }\n\n .xc_chat_toggle_container\n {\n background-color:#fff;\n background-image:none;\n border-color:#036;\n border-style:solid;\n border-width:0 1px;\n }\n\n .xc_header_icon\n {\n background-image:url({{chatWebsite.remote}}/api/xchatty/assets?resource=images/icon_visitorchat.png);\n margin:0;\n }\n\n .xc_header_icon span.xc_notification_badge span\n {\n top:-5px;\n left:5px;\n }\n\n .xc_notification_success\n {\n background-color:#dff0d8;\n border:1px solid #d6e9c6;\n }\n\n .xc_conversation_container\n {\n max-height:375px;\n border-color:#036;\n }\n\n .xc_notification_error\n {\n background-color:#f2dede;\n border:1px solid #eed3d7;\n }\n\n .xc_sub-head-spacer\n {\n display:none;\n padding:0;\n }\n\n .xc_chat_head-title,.xc_conversation\n {\n margin:0;\n }\n}\n</style>\n<div class="xc_chat_container">\n <div class="xc_chat_head {{chatWebsite.header_shape}}">\n <i class="xc_header_icon">\n <span class="xc_notification_badge">\n <span class="xc_notification_badge_number"></span>\n </span>\n </i>\n <i class="xc_header_logo" style="background-image:url(/api/xchatty/assets?resource=images/{{(chatWebsite.defaultLogo || !license.custom) ? \'motionLogo.png\' : (!chatWebsite.defaultLogo && chatWebsite.logo && license.custom) ? chatWebsite.logo+\'&uploaded\' : \'motionLogo.png\'}});background-size:contain;"></i>\n </a>\n <span class="xc_chat_head-title">{{statePreview.state == \'online\' ? chatWebsite.header_online : chatWebsite.header_offline}}</span>\n </div>\n <div class="xc_chat_toggle_container">\n <div class="xc_sub-head-spacer"></div>\n <!-- <div class="xc_notifications_wrapper">\n <ul class="xc_errorlist"></ul>\n </div> -->\n <div class="xc_enquiry_wrapper" data-ng-show=\'statePreview.state == "offline"\'>\n <form class="xc_form_enquiry" accept-charset="UTF-8">\n <p class="xc_offline_message" ng-bind-html=\'chatWebsite.offline_message\'></p>\n <br>\n <div ng-if="chatWebsite.enquiry_enable">\n <div class="xc_div_group">\n <label for="enquiryFullname" class="xc_label">{{chatWebsite.name_title}} *</label>\n <input id="enquiryFullname" maxlength="45" data-label="Name" type="text" name="data[Enquiry][fullname]" placeholder="{{chatWebsite.username_placeholder}}" class="xc_input_enquiry_fullname" required/>\n </div>\n <br>\n <div class="xc_div_group">\n <label for="enquiryEmail" class="xc_label">{{chatWebsite.email_title}} *</label>\n <input id="enquiryEmail" maxlength="85" type="text" data-label="Email Address" name="data[Enquiry][email]" placeholder="{{chatWebsite.email_placeholder}}" class="xc_input_enquiry_email" required/>\n </div>\n <br>\n <div class="xc_div_group">\n <label for="enquiryMessage" class="xc_label">{{chatWebsite.message_title}} *</label>\n <textarea id="enquiryMessage" data-label="Message" maxlength="1500" placeholder="{{chatWebsite.enquiry_message_placeholder}}" name="data[Enquiry][message]" class="xc_input_enquiry_message" required></textarea>\n </div>\n <br>\n <button type="submit" class="xc_btn_enquiry xc_btn_style">{{chatWebsite.enquiry_button}}</button>\n </div>\n </form>\n </div>\n <div class="xc_signup_wrapper" data-ng-show=\'statePreview.state == "online"\'>\n <form class="xc_form_signup" accept-charset="UTF-8">\n <p class="xc_online_message" ng-bind-html=\'chatWebsite.online_message\'></p>\n <br>\n <div class="xc_div_group">\n <label for="dataFullname" class="xc_label">{{chatWebsite.name_title}} *</label>\n <input maxlength="45" id="dataFullname" data-label="Fullname" type="text" name="data[Discussion][fullname]" placeholder="{{chatWebsite.username_placeholder}}" class="xc_input_fullname" required/>\n </div>\n <br>\n <div class="xc_div_group">\n <label for="dataEmail" class="xc_label">{{chatWebsite.email_title}} *</label>\n <input maxlength="85" id="dataEmail" data-label="Email Address" type="text" name="data[Discussion][email]" placeholder="{{chatWebsite.email_placeholder}}" class="xc_input_email" required/>\n </div>\n <br>\n <input type="hidden" class="xc_input_visitor_time" name="data[Discussion][visitor_time]" />\n <button type="submit" class="xc_btn_signup xc_btn_style">{{chatWebsite.start_chat_button}}</button>\n </form>\n </div>\n <div class="xc_rating_wrapper" data-ng-show=\'statePreview.state == "rating"\'>\n <form class="xc_form_rating" accept-charset="UTF-8">\n <p class="xc_rating_message">{{chatWebsite.rating_message}}</p>\n <br>\n <div class="xc_rating" ng-if="chatWebsite.rating_enable">\n <label class="xc_rating_label" style="padding:30px;">\n <input type="radio" name="data[Rating][rating]" value="good" />\n <img src="{{chatWebsite.remote}}/api/xchatty/assets?resource=images/like.png" alt="Good" height="50"/>\n </label>\n <label class="xc_rating_label" style="padding:30px;">\n <input type="radio" name="data[Rating][rating]" value="bad"/>\n <img src="{{chatWebsite.remote}}/api/xchatty/assets?resource=images/dislike.png" alt="Good" height="50"/>\n </label>\n </div>\n <div class="xc_div_group" ng-if="chatWebsite.rating_enable">\n <label for="ratingMessage" class="xc_label">Message</label>\n <textarea id="ratingMessage" data-label="Message" maxlength="1500" name="data[Rating][message]" class="xc_input_rating_message"></textarea>\n </div>\n <button type="submit" class="xc_button_rating xc_btn_style" ng-if="chatWebsite.rating_enable">{{chatWebsite.rating_send}}</button>\n <button type="button" class="xc_button_skip_rating xc_btn_style">{{chatWebsite.rating_skip}}</button>\n </form>\n </div>\n <div class="xc_footer">\n <div data-ng-if="chatWebsite.defaultWhiteLabel || !license.custom" class="xc_powered"><a>Powered by xCALLY</a></div>\n <div data-ng-if="!chatWebsite.defaultWhiteLabel && license.custom" data-ng-bind-html="chatWebsite.whiteLabel"></div>\n </div>\n</div>\n</div>\n'),a.put("app/channels/chat/queue/list/list.create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_QUEUE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" data-ng-pattern="settings.patternName" required />\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$invalid && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$invalid && form.name.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START STRATEGY -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.strategy.$touched || form.$submitted) && form.strategy.$invalid}">\n <label class="control-label">{{\'APPLICATION_STRATEGY\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.strategy" name="strategy" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | uppercase}}</ui-select-match>\n <ui-select-choices repeat="strategy in strategies | filter: $select.search">\n <div ng-bind-html="strategy.toUpperCase() | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form.strategy.$touched || form.$submitted) && form.strategy.$invalid && form.strategy.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END STRATEGY -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.timeout.$touched || form.$submitted) && form.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_AGENT_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="Timeout" class="form-control" data-ng-model="item.timeout" required min="1"/>\n <span data-ng-show="(form.timeout.$touched || form.$submitted) && form.timeout.$invalid && form.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START AGENTS-->\n <div class="form-body" data-ng-init="getTeams()">\n <label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n <div class="input-group input-small mbottom20">\n <input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="item.penalty" readonly>\n <div class="spinner-buttons input-group-btn btn-group-vertical">\n <button type="button" class="btn spinner-up btn-xs blue" data-ng-click="item.penalty=item.penalty+1">\n <i class="fa fa-angle-up"></i>\n </button>\n <button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!item.penalty" data-ng-click="item.penalty=item.penalty-1">\n <i class="fa fa-angle-down"></i>\n </button>\n </div>\n </div>\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-team">\n </div>\n </div>\n </div>\n <!-- END AGENTS-->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'), +a.put("app/channels/chat/queue/list/list.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-bubble"></i>\n <a href="#">{{ \'APPLICATION_CHAT\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="#">{{ \'APPLICATION_QUEUES\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_QUEUES\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <a class="btn green-jungle" href="#" data-ng-click="createItem()" data-ng-if="Auth.isAdmin()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_QUEUE\' | translate }}\n </a>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/chat/queue/view/view.agents.html",'<div class="row" data-ng-init="getTeams()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_AGENTS\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body">\n <!-- BEGIN FORM-->\n <form action="index.html" class="form-horizontal form-row-seperated">\n <div class="form-body">\n <label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n <div class="input-group input-small mbottom20">\n <input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="queue.penalty" readonly>\n <div class="spinner-buttons input-group-btn btn-group-vertical">\n <button type="button" class="btn spinner-up btn-xs blue" data-ng-click="queue.penalty=queue.penalty+1">\n <i class="fa fa-angle-up"></i>\n </button>\n <button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!queue.penalty" data-ng-click="queue.penalty=queue.penalty-1">\n <i class="fa fa-angle-down"></i>\n </button>\n </div>\n </div>\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-team">\n </div>\n </div>\n </div>\n </form>\n <!-- END FORM-->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/chat/queue/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getQueue()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-bubble"></i>\n <a href="#">{{ \'APPLICATION_CHAT\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="/channels/chat/queues/list">{{ \'APPLICATION_QUEUES\' | translate }}</a>\n <i data-ng-show="queue" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="queue">\n <a href="#">{{queue.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/queue.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{queue.name}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.channels.chat.queues.view.settings\')}">\n <a data-ng-href="/channels/chat/queues/view/{{queue.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.channels.chat.queues.view.agents\')}" data-ng-show="Auth.getCurrentUser().role === \'admin\'">\n <a data-ng-href="/channels/chat/queues/view/{{queue.id}}/agents">\n <i class="icon-people"></i>\n {{ \'APPLICATION_AGENTS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/chat/queue/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateChatQueue()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="queue.name" data-ng-pattern="settings.patternName" required />\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid && forms.general.name.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START STRATEGY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.strategy.$touched || forms.general.$submitted) && forms.general.strategy.$invalid}">\n <label class="control-label">{{\'APPLICATION_STRATEGY\' | translate}}</label>\n <ui-select data-ng-model="queue.strategy" name="strategy" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | uppercase}}</ui-select-match>\n <ui-select-choices repeat="strategy in strategies | filter: $select.search">\n <div ng-bind-html="strategy.toUpperCase() | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END STRATEGY -->\n\n <!-- START TIMEOUT -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_AGENT\' | translate}} {{\'APPLICATION_TIMEOUT\' | translate}}</label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" min="1" data-ng-model="queue.timeout"/>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="queue.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <input data-ng-if="Auth.isAdmin()" class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/chat/realtime/view/agent/agent.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initAgents()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns class="ui-grid" ui-grid-tree-view ui-grid-expandable-row ui-grid-pagination ui-grid-auto-resize>\n <span us-spinner spinner-key="grid-spinner" spinner-start-active="true"></span>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/chat/realtime/view/agent/agent.modal.info.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_INTERFACE_INFO\' | translate }}</h3>\n</div>\n<div class="modal-body">\n<div data-ng-if="agent.ipaddr" class="well">\n <div>{{agent.ipaddr}}:{{agent.port}}</div>\n <div>{{agent.fullcontact}}</div>\n <div>{{agent.useragent}}</div>\n <div>{{agent.lastms}}</div>\n</div>\n<div data-ng-if="!agent.ipaddr" class="alert alert-danger" role="alert">\n {{\'MESSAGE_NO_AVAILABLE_INFO\' | translate}}\n</div>\n</div>\n<div class="modal-footer">\n <button class="btn default" type="button" ng-click="close()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'),a.put("app/channels/chat/realtime/view/agent/queue.modal.add.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_JOIN_QUEUE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <div class="form-group row">\n <label class="col-md-2 control-label" style="margin-top: 7px;">{{\'APPLICATION_QUEUE\' | translate}}:</label>\n <div class="col-md-10">\n <ui-select multiple ng-model="item.queues" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_QUEUE\' | translate}}">{{$item.name}}</ui-select-match>\n <ui-select-choices repeat="queue.id as queue in queues | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n</div>\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/chat/realtime/view/application/application.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initApplications()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns class="ui-grid" ui-grid-auto-resize>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/chat/realtime/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-bubble"></i>\n <a href="#">{{ \'APPLICATION_CHAT\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-energy"></i>\n <a href="#">{{ \'APPLICATION_REALTIME\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <div>\n <nav class="navbar navbar-default" role="navigation">\n <div class="collapse navbar-collapse">\n <ul class="nav navbar-nav">\n <li data-ng-class="{\'active\': $state.is(\'main.channels.chat.realtime.view.agents\')}">\n <a href="/channels/chat/realtime/view/agents">\n {{\'APPLICATION_AGENTS\' | translate}}\n </a>\n </li>\n <li data-ng-class="{\'active\': $state.is(\'main.channels.chat.realtime.view.applications\')}">\n <a href="/channels/chat/realtime/view/applications">\n {{\'APPLICATION_APPLICATIONS\' | translate}}\n </a>\n </li>\n <li>\n <a href="#">\n <b>|{{\'APPLICATION_SHOW_TIMERS\' | translate}} </b><input\n bs-switch\n class="form-control"\n ng-model="showTimers"\n type="checkbox"\n name="showTimers"\n switch-active="{{ timerSwitch.isActive }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ timerSwitch.onColor }}"\n switch-off-color="{{ timerSwitch.offColor }}"\n switch-animate="{{ timerSwitch.animate }}"\n switch-size="{{ timerSwitch.size }}"\n switch-label="{{ timerSwitch.label }}"\n switch-icon="{{ timerSwitch.icon }}"\n switch-radio-off="{{ timerSwitch.radioOff }}"\n switch-label-width="{{ timerSwitch.labelWidth }}"\n switch-handle-width="{{ timerSwitch.handleWidth }}"><b>|</b>\n </a>\n </li>\n </ul>\n </div>\n </nav>\n </div>\n\n <div ui-view></div>\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/chat/room/external/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n <div class="portlet light" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption">\n <div class="btn-group btn-group-solid">\n <button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'OPEN\'" uib-uncheckable>OPEN</button>\n </div>\n <div class="btn-group btn-group-solid">\n <button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'CLOSED\'" uib-uncheckable>CLOSED</button>\n </div>\n </div>\n <div class="actions">\n <a href="#" class="btn btn-icon-only blue" data-ng-click="tagItems();" data-ng-show="id.length">\n <i class="fa fa-tags"></i>\n </a>\n <a href="#" class="btn btn-icon-only default" data-ng-click="getPage();">\n <i class="fa fa-refresh"></i>\n </a>\n </div>\n</div>\n<div class="portlet-title" data-ng-show="tags.length">\n <!-- START TAGS -->\n <div class="form-group">\n <div class="row">\n <div class="col-md-1">\n <a href="#" class="btn btn-icon-only">\n <i class="fa fa-tags" style="color: gray;"></i>\n </a>\n </div>\n <div class="col-md-11">\n <ui-select multiple data-ng-model="query.tags" theme="bootstrap" on-select="onChanged($item, $model)" on-remove="onChanged($item, $model)">\n <ui-select-match placeholder="Search by tag...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="tag in tags | filter:$select.search">\n {{tag}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n </div>\n <!-- END TAGS -->\n</div>\n<div class="portlet-body">\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="spinner-grid" spinner-start-active="true"></span>\n <!-- END UI-GRID SPINNER -->\n\n <!-- START TABLE -->\n\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-selection ui-grid-pagination class="ui-grid">\n <div class="watermark" data-ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/chat/room/group/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n <div class="portlet light" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption">\n <div class="btn-group btn-group-solid">\n <button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'OPEN\'" uib-uncheckable>OPEN</button>\n </div>\n <div class="btn-group btn-group-solid">\n <button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'CLOSED\'" uib-uncheckable>CLOSED</button>\n </div>\n </div>\n <div class="actions">\n <a href="#" class="btn btn-icon-only blue" data-ng-click="tagItems();" data-ng-show="id.length">\n <i class="fa fa-tags"></i>\n </a>\n <a href="#" class="btn btn-icon-only default" data-ng-click="getPage();">\n <i class="fa fa-refresh"></i>\n </a>\n </div>\n</div>\n<div class="portlet-title" data-ng-show="tags.length">\n <!-- START TAGS -->\n <div class="form-group">\n <div class="row">\n <div class="col-md-1">\n <a href="#" class="btn btn-icon-only">\n <i class="fa fa-tags" style="color: gray;"></i>\n </a>\n </div>\n <div class="col-md-11">\n <ui-select multiple data-ng-model="query.tags" theme="bootstrap" on-select="onChanged($item, $model)" on-remove="onChanged($item, $model)">\n <ui-select-match placeholder="Search by tag...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="tag in tags | filter:$select.search">\n {{tag}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n </div>\n <!-- END TAGS -->\n</div>\n<div class="portlet-body">\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="spinner-grid" spinner-start-active="true"></span>\n <!-- END UI-GRID SPINNER -->\n\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-selection ui-grid-pagination class="ui-grid">\n <div class="watermark" data-ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/chat/room/internal/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12" data-ng-init="initView()">\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="spinner-grid" spinner-start-active="true"></span>\n <!-- END UI-GRID SPINNER -->\n\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination class="ui-grid">\n <div class="watermark" data-ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/chat/room/room.add.html",'<div class="modal-header">\n <button ng-if="modal.dismissable" type="button" data-ng-click="$dismiss()" class="close">×</button>\n <h4 class="modal-title">{{\'APPLICATION_NEW_GROUP\' | translate}}</h4>\n</div>\n\n<div class="modal-body">\n <div class="portlet box blue">\n <div class="portlet-title">\n <div class="caption">\n <i class="icon-people"></i>{{\'APPLICATION_AGENTS\' | translate}}\n </div>\n </div>\n <div class="portlet-body">\n <ul>\n <li data-ng-repeat="item in items">\n {{item.fullname}}\n </li>\n <li data-ng-repeat="item in selected.items">\n {{item.fullname}}\n </li>\n </ul>\n </div>\n </div>\n\n <ui-select multiple name="items" ng-model="selected.items" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SELECTED_AGENTS\' | translate}}">{{$item.fullname}}</ui-select-match>\n <ui-select-choices repeat="{id: agent.id, fullname: agent.fullname} as agent in agents.rows | filter: $select.search">\n {{agent.fullname}}\n </ui-select-choices>\n </ui-select>\n</div>\n\n<div class="modal-footer">\n <button class="btn btn-success" type="button" data-ng-click="ok()" data-ng-show="selected.items.length">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/chat/room/room.close.html",'<div class="modal-header">\n <button ng-if="modal.dismissable" type="button" ng-click="$dismiss()" class="close">×</button>\n <h4 ng-if="modal.title" ng-bind="modal.title | translate" class="modal-title"></h4>\n</div>\n<div class="modal-body">\n <p ng-if="modal.text && !closed" ng-bind="modal.text | translate"></p>\n <form name="form" novalidate data-ng-init="initDisposition()">\n <div class="form-group">\n <ui-select data-ng-model="item.disposition" name="list" theme="bootstrap" data-ng-disabled="!dispositions.length" required>\n <ui-select-match placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="disposition.name as disposition in dispositions | filter: $select.search">\n <div ng-bind-html="disposition.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="note note-warning" data-ng-hide="dispositions.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_DISPOSITIONS_AVAILABLE\' | translate }}\n </p>\n </div>\n</form>\n <!-- <div ng-if="modal.html" ng-bind-html="modal.html"></div> -->\n</div>\n<div class="modal-footer">\n <button class="btn btn-danger" type="button" ng-click="ok()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n <!-- <button ng-repeat="button in modal.buttons" ng-class="button.classes" ng-click="button.click($event)" ng-bind="button.text" class="btn"></button> -->\n</div>\n'),a.put("app/channels/chat/room/room.directive.html",'<div class="portlet light">\n <div class="portlet-title">\n <div class="caption">\n <span data-ng-if="chatRoom" class="label label-sm label-default">{{chatRoom.status}}</span>\n <span data-ng-if="chatRoom.ChatWebsite"> | </span>\n <span data-ng-if="chatRoom.ChatWebsite" class="caption-subject font-green-sharp bold uppercase">{{chatRoom.ChatWebsite.name | truncate: 25: \'...\': true}}</span>\n </div>\n <div class="actions">\n <button class="btn btn-icon-only btn-primary" data-ng-click="addAgent(chatRoom.id)" data-ng-disabled="chatRoom.status === \'CLOSED\'">\n <i class="fa fa-user-plus"></i>\n </button>\n <button class="btn btn-icon-only" data-ng-class="{\'btn-success\':chatRoom.status !== \'CLOSED\',\'grey-cascade\':chatRoom.status === \'CLOSED\'}" data-ng-click="closeRoom(chatRoom.id)" data-ng-if="chatRoom.ChatVisitors.length" data-ng-disabled="chatRoom.status === \'CLOSED\' && chatRoom.disposition">\n <i data-ng-class="{\'fa fa-upload\':chatRoom.status !== \'CLOSED\',\'icon-target\':chatRoom.status === \'CLOSED\'}"></i>\n </button>\n <motion-file-download resource="ChatRoom" params="{id:chatRoom.id,controller:\'export\'}" mimetype="\'text/csv\'" filename="\'chat_\'+chatRoom.id+\'_transcript\'" btnclass="btn btn-primary btn-icon-only"></motion-file-download>\n <button class="btn default btn-icon-only" data-ng-if="chatRoom && chatRoom.status !== \'CLOSED\'" data-ng-click="togglePanelLeft()" title="{{\'APPLICATION_RESIZE\' | translate}}">\n <i ng-class="panelRight == \'col-md-12\' ? \'icon-size-actual\' : \'icon-size-fullscreen\'"></i>\n </button>\n </div>\n </div>\n <div class="portlet-body">\n<div class="row">\n <div data-ng-class="panelLeft" data-ng-show="panelLeft">\n <div class="portlet">\n <div class="portlet-body">\n <div class="portlet-title line">\n <div class="form">\n <!-- START TAGS -->\n <div class="form-group">\n <div class="row">\n <div class="col-md-1">\n <a href="#" class="btn btn-icon-only">\n <i class="fa fa-tags" style="color: gray;"></i>\n </a>\n </div>\n <div class="col-md-11">\n <ui-select multiple data-ng-model="form.tags" theme="bootstrap" on-select="onChanged(chatRoom.id)" on-remove="onChanged(chatRoom.id)">\n <ui-select-match placeholder="Tags...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="tag in tags | filter:$select.search" class="">\n {{tag}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n </div>\n <!-- END TAGS -->\n </div>\n </div>\n <v-accordion class="vAccordion--default">\n <v-pane data-ng-if="chatRoom.ChatVisitors.length" data-ng-repeat="chatVisitor in chatRoom.ChatVisitors" expanded="true">\n <v-pane-header>\n <ng-letter-avatar\n height="40"\n width="40"\n data="{{chatRoom.ChatVisitor.fullname}}"\n fontsize="25"\n avatarcustombgcolor="#B0B0B0"\n charCount="2"\n avatarcustomborder="border:2px solid #EA4C61"\n shape="round"></ng-letter-avatar>\n </v-pane-header>\n <v-pane-content>\n {{\'APPLICATION_ROOM_ID\' | translate}}: <p>{{chatRoom.id}}</p>\n {{\'APPLICATION_NAME\' | translate}}: <p>{{chatRoom.ChatVisitor.fullname}}</p>\n {{\'APPLICATION_EMAIL\' | translate}}: <p><a data-ng-click="openContact(chatRoom.ChatVisitor.email)" href="">{{chatRoom.ChatVisitor.email}}</a></p>\n <span data-ng-if="chatRoom.ChatVisitor.labelData1">{{chatRoom.ChatVisitor.labelData1}}: <p>{{chatRoom.ChatVisitor.data1}}</p></span>\n <span data-ng-if="chatRoom.ChatVisitor.labelData2">{{chatRoom.ChatVisitor.labelData2}}: <p>{{chatRoom.ChatVisitor.data2}}</p></span>\n <span data-ng-if="chatRoom.ChatVisitor.labelData3">{{chatRoom.ChatVisitor.labelData3}}: <p>{{chatRoom.ChatVisitor.data3}}</p></span>\n {{\'APPLICATION_REMOTE_ADDRESS\' | translate}}: <p>{{chatRoom.ChatVisitor.remote_address}}</p>\n {{\'APPLICATION_BROWSER\' | translate}}: <p>{{chatRoom.ChatVisitor.browser}}</p>\n {{\'APPLICATION_REFERER\' | translate}}:<p>{{chatRoom.ChatVisitor.referer}} - {{enquiry.ChatWebsite.name}}</p>\n {{\'APPLICATION_OS\' | translate}}: <p>{{chatRoom.ChatVisitor.os}}</p>\n </v-pane-content>\n </v-pane>\n\n <v-pane data-ng-repeat="user in chatRoom.Users | filter:{ id: \'!\' + user.id}">\n <v-pane-header>\n <ng-letter-avatar\n height="40"\n width="40"\n data="{{user.fullname}}"\n fontsize="25"\n avatarcustombgcolor="#B0B0B0"\n avatarcustomborder="border:2px solid #3399CC"\n charCount="2"\n shape="round"></ng-letter-avatar>\n </v-pane-header>\n <v-pane-content>\n {{\'APPLICATION_NAME\' | translate}}: <p>{{user.fullname}}</p>\n {{\'APPLICATION_ROLE\' | translate}}: <p>{{user.role}}</p>\n {{\'APPLICATION_INTERNAL\' | translate}}: <p>{{user.internal}}</p>\n {{\'APPLICATION_EMAIL\' | translate}}: <p><a data-ng-href="mailto:{{user.email}}">{{user.email}}</a></p>\n </v-pane-content>\n </v-pane>\n </v-accordion>\n </div>\n </div>\n </div>\n <div data-ng-class="panelRight">\n <div class="note note-info" data-ng-if="chatRoom && chatRoom.status == \'CLOSED\'">\n <h4 class="block"><i class="icon-info"></i> {{\'MESSAGE_CHAT_ROOM_CLOSED\' | translate}}!</h4>\n <p>\n <strong>{{\'MESSAGE_CHAT_ROOM_CLOSED_DETAILS\' | translate}}.</strong>\n </p>\n <hr>\n <p>\n <i class="icon-target"></i> {{\'APPLICATION_DISPOSITION\' | translate}}: <strong>{{chatRoom.disposition}}</strong>\n </p>\n <p>\n <i class="icon-star"></i> {{\'APPLICATION_RATING\' | translate}}: <strong>{{chatRoom.rating | ucfirst}}</strong>\n </p>\n <p>\n <i class="icon-note"></i> {{\'APPLICATION_RATING_MESSAGE\' | translate}}: <strong>{{chatRoom.ratingMessage}}</strong>\n </p>\n <p>\n <i class="icon-calendar"></i> {{\'APPLICATION_UPDATED_AT\' | translate}}: <strong>{{chatRoom.updatedAt | date:\'medium\'}}</strong> (<span am-time-ago="chatRoom.updatedAt"></span>)\n </p>\n </div>\n <div class="portlet light bordered">\n <div class="portlet-body">\n <div id="chat-box" schroll-bottom="chatRoom.ChatMessages">\n <ul class="chats">\n <li data-ng-repeat="message in chatRoom.ChatMessages" data-ng-class="message.UserId == user.id ? \'out\' : \'in\'">\n <div class="avatar" data-ng-class="message.ChatVisitor ? \'pretty-avatar-v\' : \'pretty-avatar\'">\n <ng-letter-avatar\n data-ng-if="!message.ChatVisitor"\n height="40"\n width="40"\n fontsize="25"\n data="{{message.User.fullname}}"\n avatarcustombgcolor="#B0B0B0"\n avatarcustomborder="border:2px solid #3399CC"\n charCount="2"\n shape="round"></ng-letter-avatar>\n <ng-letter-avatar\n data-ng-if="message.ChatVisitor"\n height="40"\n width="40"\n fontsize="25"\n data="{{message.ChatVisitor.fullname}}"\n avatarcustombgcolor="#B0B0B0"\n avatarcustomborder="border:2px solid #EA4C61"\n charCount="2"\n shape="round"></ng-letter-avatar>\n </div>\n <div class="message">\n <span class="arrow"></span>\n <a data-ng-click="message.ChatVisitor && openContact(chatRoom.ChatVisitor.email)" class="name">{{message.User.fullname || message.ChatVisitor.fullname}} </a>\n <i class="icon-calendar" title="{{message.createdAt | date:\'MMM d, y HH:mm:ss\'}}"></i> <span am-time-ago="message.createdAt"></span>\n <ng-emoticons emoticons-data="message.body"></ng-emoticons>\n </div>\n </li>\n <li data-ng-if="chatRoom.status === \'CLOSED\'">\n <div class="media-body" style="text-align: center;">\n <h5 class="media-heading"><i>{{\'MESSAGE_CHAT_CLOSED\' | translate | lowercase}}</i></h5>\n </div>\n </li>\n </ul>\n </div>\n <div class="chat-form" data-ng-if="chatRoom && isMyRoom(chatRoom.Users)">\n <div class="input-cont">\n <input class="form-control" type="text" placeholder="Type a message here..." ng-enter="sendMessage()" data-ng-model="message.body" data-ng-disabled="chatRoom.status === \'CLOSED\'"/>\n </div>\n <div class="btn-cont">\n <span class="arrow"></span>\n <a href="#" class="btn blue icn-only" data-ng-disabled="chatRoom.status === \'CLOSED\'" data-ng-click="sendMessage()">\n <i class="fa fa-check icon-white"></i>\n </a>\n </div>\n </div>\n <div class="form-group chat-canned-answer-div" data-ng-if="chatRoom.status !== \'CLOSED\'" data-ng-class="{\'has-error\': forms.compose.subject.$invalid && forms.compose.$submitted}">\n <div class="row">\n <div class="col-md-1">\n <a href="#" class="btn btn-icon-only">\n <i class="fa fa-magic" style="color: gray;"></i>\n </a>\n </div>\n <div class="col-md-11">\n <input type="text"\n data-ng-model="modelOptions.selectedAnswer"\n uib-typeahead="key for key in getAnswers($viewValue)"\n placeholder="Canned answers.."\n typeahead-loading="loadingLocations"\n typeahead-no-results="noResults"\n typeahead-on-select="onSelect($item)"\n class="form-control">\n <i ng-show="loadingLocations" class="glyphicon glyphicon-refresh"></i>\n <div ng-show="noResults">\n <i class="glyphicon glyphicon-remove"></i> No Results Found\n </div>\n <span data-ng-show="forms.compose.subject.$invalid && forms.compose.$submitted" class="help-block help-block-error">\n'+" <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n </span>\n </div>\n </div>\n\n </div>\n </div>\n </div>\n</div>\n</div>\n</div>\n"), +a.put("app/channels/chat/room/room.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-bubble"></i>\n <a href="#">{{ \'APPLICATION_CHAT\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-users"></i>\n <a href="#">{{ \'APPLICATION_INTERACTIONS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <div class="row inbox">\n <div class="col-md-2">\n <ul class="inbox-nav margin-bottom-10">\n <li data-ng-class="{active: $state.includes(\'main.channels.chat.room.internal\')}">\n <a href="/channels/chat/room/internal/list" class="btn">\n {{\'APPLICATION_INTERNAL\' | translate}}\n </a>\n <b></b>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.channels.chat.room.external\')}">\n <a href="/channels/chat/room/external/list" class="btn">\n {{\'APPLICATION_EXTERNAL\' | translate}}\n </a>\n <b></b>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.channels.chat.room.group\')}">\n <a href="/channels/chat/room/group/list" class="btn">\n {{\'APPLICATION_GROUPS\' | translate}}\n </a>\n <b></b>\n </li>\n </ul>\n </div>\n\n <div class="col-md-10">\n <div class="room-content">\n <div ui-view></div>\n </div>\n </div>\n </div>\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/chat/room/template.html",'<div ng-bind-html="neText" ne-hljs></div>\n<div class="ne-video" ng-if="video.host" class="fade">\n <div class="ne-video-preview" ng-hide="nePlayVideo || !options.video.details">\n <div class="ne-video-thumb" ng-click="nePlayVideo=!nePlayVideo">\n <img ng-src="{{video.thumbnail}}" alt=""/>\n <i class="fa fa-play-circle-o"></i>\n </div>\n <div class="ne-video-detail">\n <div class="ne-video-title">\n <a ng-href="{{video.url}}">{{video.title}}</a>\n </div>\n <div class="ne-video-desc">\n {{video.description}}\n </div>\n <div class="ne-video-stats">\n <span><i class="fa fa-eye"></i> {{video.views}}</span>\n <span><i class="fa fa-heart"></i> {{video.likes}}</span>\n </div>\n </div>\n </div>\n <div class="ne-video-player" ng-if="nePlayVideo || !(options.video.details)">\n <iframe ng-src="{{video.embedSrc}}" frameBorder="0" width="{{video.width}}" height="{{video.height}}" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>\n </div>\n</div>\n<div class="ne-video" ng-if="video.basic">\n <div class="ne-video-player">\n <div class="player">\n <video ng-src="{{video.basic}}" controls></video>\n </div>\n </div>\n</div>\n<div ng-init="neImageLong=false" ng-class="{false:\'ne-image\', true:\'ne-image ne-image-long\'}[neImageLong]"\nng-if="image.url">\n<div class="ne-image-wrapper">\n <img ng-src="{{image.url}}" ng-click="neImageLong=!neImageLong" alt=""/>\n</div>\n</div>\n<!-- <div class="ne-pdf" ng-if="pdf.url">\n <div class="ne-pdf-preview" ng-hide="neShowPdf">\n <div class="ne-pdf-icon">\n <i class="fa fa-file-pdf-o"></i>\n </div>\n <div class="ne-pdf-detail" >\n <div class="ne-pdf-title">\n <a href="">{{pdf.url}}</a>\n </div>\n <div class="ne-pdf-view">\n\n <button><i class="fa fa-download"></i> <a ng-href="{{pdf.url}}" target="_blank">Download</a></button>\n <button ng-click="neShowPdf=!neShowPdf"><i class="fa fa-eye"></i> View PDF</button>\n\n </div>\n </div>\n </div>\n <div class="ne-pdf-viewer" ng-if="neShowPdf" ng-show="neShowPdf">\n <iframe ng-src="{{pdf.url}}" frameBorder="0"></iframe>\n </div>\n\n</div>\n<div class="ne-audio" ng-if="audio.url">\n <audio ng-src="{{audio.url}}" controls></audio>\n</div> -->\n'),a.put("app/channels/chat/room/view.tags.modal.html",'<div class="modal-header" data-ng-init="initModal()">\n <h3 class="modal-title">{{ \'APPLICATION_TAGS\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <!-- START TRANSPORT -->\n <div class="form-group">\n <form name="form" novalidate>\n <!-- START TAGS -->\n <div class="form-group">\n <ui-select multiple data-ng-model="item.tags" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_TAGS\' | translate}}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="tag in tags | filter: $select.search">\n {{tag}}\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END TAGS -->\n </form>\n </div>\n <!-- END TRANSPORT -->\n</div>\n<div class="modal-footer">\n <button type="button" class="btn" data-ng-class="button.class" data-ng-click="button.click()"data-ng-repeat="button in modal.buttons">{{button.text | translate}}</button>\n <!-- <button class="btn btn-success" type="button" data-ng-click="ok()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button> -->\n</div>\n'),a.put("app/channels/chat/visitor/list/list.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-bubble"></i>\n <a href="#">{{ \'APPLICATION_CHAT\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-question"></i>\n <a href="/channels/chat/visitors/list">{{ \'APPLICATION_VISITORS\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-question font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_VISITORS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/chat/visitor/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-bubble"></i>\n <a href="#">{{ \'APPLICATION_CHAT\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-question"></i>\n <a href="/channels/chat/visitors/list">{{ \'APPLICATION_VISITORS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="chatVisitor">\n <a href="#">{{chatVisitor.fullname}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/visitor.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{chatVisitor.fullname}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.channels.chat.visitors.view.profile\')}">\n <a data-ng-href="/channels/chat/visitors/view/{{chatVisitor.id}}/profile">\n <i class="icon-tag"></i>\n {{ \'APPLICATION_PROFILE\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/chat/visitor/view/view.profile.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_PROFILE\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body" data-ng-init="initView()">\n <div>\n <h4 class="profile-desc-title">{{chatVisitor.email}}</h4>\n <div class="margin-top-20 profile-desc-link">\n <i class="icon-magnifier"></i>\n <a href="#" class="inactive-link">{{chatVisitor.origin}}</a>\n </div>\n <div class="margin-top-20 profile-desc-link">\n <i class="icon-globe"></i>\n <a href="#" class="inactive-link">{{chatVisitor.remote_address}}</a>\n </div>\n <div class="margin-top-20 profile-desc-link">\n <i class="icon-user"></i>\n <a href="#" class="inactive-link">{{chatVisitor.user_agent | truncate: 50: \'...\'}}</a>\n </div>\n <div class="margin-top-20 profile-desc-link">\n <i class="icon-flag"></i>\n <a href="#" class="inactive-link">{{chatVisitor.visitor_language}}</a>\n </div>\n <div class="margin-top-20 profile-desc-link">\n <i class="icon-home"></i>\n <a href="#" class="inactive-link">{{chatVisitor.referer}}</a>\n </div>\n <div class="margin-top-20 profile-desc-link">\n <i class="icon-cursor"></i>\n <a href="#" class="inactive-link">{{chatVisitor.browser}}</a>\n </div>\n <div class="margin-top-20 profile-desc-link">\n <i class="icon-screen-desktop"></i>\n <a href="#" class="inactive-link">{{chatVisitor.os}}</a>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/chat/website/list/list.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-bubble"></i>\n <a href="#">{{ \'APPLICATION_CHAT\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-globe"></i>\n <a href="#">{{ \'APPLICATION_WEB_SITES\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_WEB_SITES\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="/channels/chat/websites/wizard">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_WEB_SITE\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/chat/website/view/action/list/list.html",'<div class="row" data-ng-init="initActons()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_ACTIONS\' | translate}}</span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="/channels/chat/websites/view/{{chatWebsite.id}}/actions/wizard" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_ACTION\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/chat/website/view/action/view/view.html",'\n<div class="row" data-ng-init="initAction()">\n <div class="col-md-12">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-directions font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACTION\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <form name="forms.settings" ng-submit="updateItem()" novalidate>\n <!-- START APP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app.$touched || forms.settings.$submitted) && forms.settings.app.$invalid}">\n <label class="control-label">{{ \'APPLICATION_APPLICATION\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.app" name="app" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_APPLICATION\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="app.value as app in apps | filter: $select.search">\n <div ng-bind-html="app.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.app.$touched || forms.settings.$submitted) && forms.settings.app.$invalid && forms.settings.app.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END APP -->\n\n <div class="app-settings" ng-slide-down="application.app === \'queue\'" lazy-render duration="1" data-ng-init="getQueues()">\n <!-- START QUEUE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.queue.$touched || forms.settings.$submitted) && forms.settings.queue.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.ChatQueueId" name="queue" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="queue.id as queue in queues | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="queues.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_QUEUES_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/channels/chat/queues/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.settings.queue.$touched || forms.settings.$submitted) && forms.settings.queue.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n <span data-ng-show="(forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'agent\'" lazy-render duration="1" data-ng-init="getAgents()">\n <!-- START AGENT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.agent.$touched || forms.settings.$submitted) && forms.settings.agent.$invalid}">\n <label class="control-label">{{\'APPLICATION_AGENT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.UserId" name="agent" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.fullname}}</ui-select-match>\n <ui-select-choices repeat="agent.id as agent in agents | filter: $select.search">\n <div ng-bind-html="agent.fullname | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="agents.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_AGENTS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/staff/agents/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.settings.agent.$touched || forms.settings.$submitted) && forms.settings.agent.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END AGENT -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n <span data-ng-show="(forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'sendMail\'" lazy-render duration="1" data-ng-init="getMailAccounts();getTemplates()">\n <!-- START SENDMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="email" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2" min="1" required/>\n <span data-ng-show="(forms.settings.from.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.mail.$touched || forms.settings.$submitted) && forms.settings.account.$invalid}">\n <label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in mailAccounts | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.account.$touched || forms.settings.$submitted) && forms.settings.account.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.template.$touched || forms.settings.$submitted) && forms.settings.template.$invalid}">\n <label class="control-label">{{\'APPLICATION_TEMPLATE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data9" name="template" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n <div ng-bind-html="template.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.template.$touched || forms.settings.$submitted) && forms.settings.template.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SENDMAIL -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1" data-ng-init="getSmsAccounts()">\n <!-- START SENDSms -->\n <div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1">\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.to.$touched || forms.settings.$submitted) && forms.settings.to.$invalid}">\n <label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" ng-pattern="/^[\\+]?[0-9]+$/" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2" required/>\n <span data-ng-show="(forms.settings.to.$touched || forms.settings.$submitted) && forms.settings.to.$invalid && forms.settings.to.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.account.$touched || forms.settings.$submitted) && forms.settings.account.$invalid}">\n <label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in smsAccounts | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.account.$touched || forms.settings.$submitted) && forms.settings.account.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.text.$touched || forms.text.$submitted) && forms.settings.text.$invalid}">\n <label class="control-label">{{\'APPLICATION_TEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <textarea id="text" class="form-control maxlength-handler" maxlength="160" name="text" data-ng-model="application.data6" required></textarea>\n <span data-ng-show="(forms.settings.text.$touched || forms.settings.$submitted) && forms.settings.text.$invalid && forms.settings.text.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <!-- END SENDSms -->\n </div>\n\n <!-- START INTERVAL_TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.intType.$touched || forms.settings.$submitted) && forms.settings.intType.$invalid}">\n <label class="control-label">{{ \'APPLICATION_INTERVAL_TYPE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.intType" theme="bootstrap" name="intType" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="intType.value as intType in $application.intTypes | filter: $select.search">\n {{ intType.name | translate }}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.intType.$touched || forms.settings.$submitted) && forms.settings.intType.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVAL_TYPE -->\n\n <div class="app-settings" ng-slide-down="application.intType === \'custom\'" lazy-render duration="1">\n <!-- START TIME -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n <div class="input-group input-large">\n <fieldset class="pull-left" ng-disabled="application.alwaysTime">\n <uib-timepicker name="t_from" data-ng-model="application.t_from" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker>\n </fieldset>\n <div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n <fieldset ng-disabled="application.alwaysTime"><uib-timepicker name="t_to" data-ng-model="application.t_to" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker></fieldset>\n <!-- <label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="application.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label> -->\n </div>\n </div>\n <!-- END TIME -->\n\n <!-- START ALWAYS -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ALWAYS\' | translate }}</label>\n <div class="input-group input-large">\n <label class="control-label pointer-cursor">\n <input\n bs-switch\n data-ng-model="application.alwaysTime"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n <!-- <input type="checkbox" data-ng-model="application.alwaysTime"> -->\n </label>\n </div>\n </div>\n <!-- END ALWAYS -->\n\n <!-- START WEEKDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.wd_from" theme="bootstrap" name="wd_from">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{ weekDay.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.wd_to" theme="bootstrap" name="wd_to">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{ weekDay.name | translate }}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END WEEKDAY -->\n\n <!-- START MONTHDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.md_from" theme="bootstrap" name="md_from">\n <ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_to && application.md_to!==\'always\' && monthDay>application.md_to && monthDay!==\'always\'">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.md_to" theme="bootstrap" name="md_to">\n <ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_from && application.md_from!==\'always\' && monthDay<application.md_from && monthDay!==\'always\'">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTHDAY -->\n\n <!-- START MONTH -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.m_from" theme="bootstrap" name="m_from">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{ month.name | translate }}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.m_to" theme="bootstrap" name="m_to">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{ month.name | translate }}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTH -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.intType === \'list\'" lazy-render duration="1" data-ng-init="getIntervals()">\n\n <!-- START INTERVALS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.IntervalId.$touched || forms.settings.$submitted) && forms.settings.IntervalId.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERVALS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.IntervalId" theme="bootstrap" name="IntervalId" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="interval.id as interval in intervals | filter: $select.search">\n {{ interval.name}}\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="intervals.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_INTERVAL_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/intervals/list">{{\'APPLICATION_INTERVALS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.settings.IntervalId.$touched || forms.settings.$submitted) && forms.settings.IntervalId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVALS -->\n\n </div>\n <button class="btn green-haze" type="submit">{{\'APPLICATION_UPDATE\' | translate}}</button>\n </form>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'), +a.put("app/channels/chat/website/view/action/wizard/wizard.html",'\n<div class="row" data-ng-init="initWizard()">\n <div class="col-md-12">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-directions font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACTION\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_APPLICATION\' | translate}}" canexit="formValidation(forms.action.$valid)">\n <form name="forms.action" novalidate>\n <!-- START APP -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.action.$submitted && forms.action.app.$invalid}">\n <label class="control-label">{{ \'APPLICATION_APPLICATION\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.app" name="app" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_APPLICATION\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="app.value as app in apps | filter: $select.search">\n <div ng-bind-html="app.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.action.$submitted && forms.action.app.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END APP -->\n\n <div class="app-settings" ng-slide-down="application.app === \'agent\'" lazy-render duration="1" data-ng-init="getAgents()">\n <!-- START AGENT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.agent.$touched || forms.action.$submitted) && forms.action.agent.$invalid}">\n <label class="control-label">{{\'APPLICATION_AGENT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.UserId" name="agent" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.fullname}}</ui-select-match>\n <ui-select-choices repeat="agent.id as agent in agents | filter: $select.search">\n <div ng-bind-html="agent.fullname | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="agents.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_AGENTS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/staff/agents/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.action.agent.$touched || forms.action.$submitted) && forms.action.agent.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END AGENT -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n <span data-ng-show="(forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid && forms.action.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'queue\'" lazy-render duration="1" data-ng-init="getQueues()">\n <!-- START QUEUE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.queue.$touched || forms.action.$submitted) && forms.action.queue.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.ChatQueueId" name="queue" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="queue.id as queue in queues | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="queues.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_QUEUES_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/channels/chat/queues/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.action.queue.$touched || forms.action.$submitted) && forms.action.queue.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n <span data-ng-show="(forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid && forms.action.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'sendMail\'" lazy-render duration="1" data-ng-init="getMailAccounts();getTemplates()">\n <!-- START SENDMAIL -->\n <div class="app-settings" ng-slide-down="application.app === \'sendMail\'" lazy-render duration="1">\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="email" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2" min="1" required/>\n <span data-ng-show="(forms.action.from.$touched || forms.action.$submitted) && forms.action.timeout.$invalid && forms.action.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.mail.$touched || forms.action.$submitted) && forms.action.account.$invalid}">\n <label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in mailAccounts | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.template.$touched || forms.action.$submitted) && forms.action.template.$invalid}">\n <label class="control-label">{{\'APPLICATION_TEMPLATE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data9" name="template" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n <div ng-bind-html="template.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.template.$touched || forms.action.$submitted) && forms.action.template.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SENDMAIL -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1" data-ng-init="getSmsAccounts()">\n <!-- START SENDSms -->\n <div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1">\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.to.$touched || forms.action.$submitted) && forms.action.to.$invalid}">\n <label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" ng-pattern="/^[\\+]?[0-9]+$/" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2" required/>\n <span data-ng-show="(forms.action.to.$touched || forms.action.$submitted) && forms.action.to.$invalid && forms.action.to.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$invalid}">\n <label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in smsAccounts | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.text.$touched || forms.action.$submitted) && forms.action.text.$invalid}">\n <label class="control-label">{{\'APPLICATION_TEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <textarea id="text" class="form-control maxlength-handler" maxlength="160" name="text" data-ng-model="application.data6" required></textarea>\n <span data-ng-show="(forms.action.text.$touched || forms.action.$submitted) && forms.action.text.$invalid && forms.action.text.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <!-- END SENDSms -->\n </div>\n\n <!-- START INTERVAL_TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.intType.$touched || forms.action.$submitted) && forms.action.intType.$invalid}">\n <label class="control-label">{{ \'APPLICATION_INTERVAL_TYPE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.intType" theme="bootstrap" name="intType" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="intType.value as intType in $application.intTypes | filter: $select.search">\n {{ intType.name | translate }}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.intType.$touched || forms.action.$submitted) && forms.action.intType.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVAL_TYPE -->\n\n <div class="app-settings" ng-slide-down="application.intType === \'custom\'" lazy-render duration="1">\n <!-- START TIME -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n <div class="input-group input-large">\n <fieldset class="pull-left" ng-disabled="application.alwaysTime">\n <uib-timepicker name="t_from" data-ng-model="application.t_from" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker>\n </fieldset>\n <div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n <fieldset ng-disabled="application.alwaysTime"><uib-timepicker name="t_to" data-ng-model="application.t_to" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker></fieldset>\n <!-- <label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="application.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label> -->\n </div>\n </div>\n <!-- END TIME -->\n\n <!-- START ALWAYS -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ALWAYS\' | translate }}</label>\n <div class="input-group input-large">\n <label class="control-label pointer-cursor">\n <input\n bs-switch\n data-ng-model="application.alwaysTime"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n <!-- <input type="checkbox" data-ng-model="application.alwaysTime"> -->\n </label>\n </div>\n </div>\n <!-- END ALWAYS -->\n\n <!-- START WEEKDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.wd_from" theme="bootstrap" name="wd_from">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{ weekDay.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.wd_to" theme="bootstrap" name="wd_to">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{ weekDay.name | translate }}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END WEEKDAY -->\n\n <!-- START MONTHDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.md_from" theme="bootstrap" name="md_from">\n <ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_to && application.md_to!==\'always\' && monthDay>application.md_to && monthDay!==\'always\'">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.md_to" theme="bootstrap" name="md_to">\n <ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_from && application.md_from!==\'always\' && monthDay<application.md_from && monthDay!==\'always\'">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTHDAY -->\n\n <!-- START MONTH -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.m_from" theme="bootstrap" name="m_from">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{ month.name | translate }}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.m_to" theme="bootstrap" name="m_to">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{ month.name | translate }}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTH -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.intType === \'list\'" lazy-render duration="1" data-ng-init="getIntervals()">\n\n <!-- START INTERVALS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.IntervalId.$touched || forms.action.$submitted) && forms.action.IntervalId.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERVALS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.IntervalId" theme="bootstrap" name="IntervalId" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="interval.id as interval in intervals | filter: $select.search">\n {{ interval.name}}\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="intervals.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_INTERVAL_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/intervals/list">{{\'APPLICATION_INTERVALS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.action.IntervalId.$touched || forms.action.$submitted) && forms.action.IntervalId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVALS -->\n\n </div>\n\n <input class="btn green-haze" type="submit" data-ng-click="next()" value="{{\'APPLICATION_CONTINUE\' | translate}}"/>\n </form>\n </wz-step>\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n <input class="btn green-haze" type="submit" data-ng-click="next()" value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/chat/website/view/disposition/modal/add.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_DISPOSITIONS\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.form.$touched || form.$submitted) && form.form.$invalid}">\n <div class="">\n <input type="text" name="form" placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}" class="form-control" data-ng-model="name" required/>\n <span data-ng-show="form.form.$touched && form.form.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <!-- END NAME -->\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" data-ng-click="ok()" data-ng-show="form.$valid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/chat/website/view/disposition/view/view.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_DISPOSITIONS\' | translate}}</span>\n </div>\n <div class="actions actions-md">\n <a href="#" class="btn btn-icon-only green" data-ng-click="addDisposition();">\n <i class="fa fa-plus"></i>\n </a>\n </div>\n </div>\n <div class="portlet-body" data-ng-init="initView()">\n <div class="tab-content">\n <div class="row" data-ng-hide="dispositions.length">\n <div class="col-md-12">\n <div class="note note-info">\n <h4 class="block">Info! {{\'MESSAGE_NO_DISPOSITIONS_AVAILABLE\' | translate}}</h4>\n </div>\n </div>\n </div>\n\n <!-- GENERAL TAB -->\n <div class="row" data-ng-repeat="disposition in dispositions">\n <div class="col-md-12 form-group">\n <div class="input-group">\n <div>\n <input class="form-control" type="text" placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}" data-ng-model="disposition.name">\n </div>\n <span class="input-group-btn">\n <button class="btn btn-success" type="button" data-ng-click="updateDisposition(disposition.id, disposition.name);"><i class="fa fa-cloud-upload fa-fw"></i> {{\'APPLICATION_UPDATE\' | translate}}</button>\n <button class="btn btn-danger" type="button" data-ng-click="deleteDisposition(disposition.id);"><i class="fa fa-times fa-fw"></i> {{\'APPLICATION_DELETE\' | translate}}</button>\n </span>\n </div>\n </div>\n </div>\n <!-- END GENERAL TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/chat/website/view/embedding/view/view.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_EMBEDDING\' | translate}}</span>\n </div>\n <div class="actions">\n <div class="btn-group">\n <a class="btn green-jungle" href="#" data-ng-click="copyToClipboard();">\n <i class="fa fa-clipboard"></i> {{\'APPLICATION_COPY_TO_CLIPBOARD\' | translate}}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <div class="row">\n <div class="col-md-12">\n <h3>{{\'APPLICATION_EMBED_SNIPPET\' | translate}}</h3>\n <p>\n {{\'MESSAGE_EMBED_SNIPPET\' | translate}}\n </p>\n <div class="form-body">\n <div class="form-group">\n <div class="col-md-12">\n <code-mirror lang="html" model="snippetCode"></code-mirror>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/chat/website/view/form/view/view.html",'<div class="row" data-ng-init="getChatWebsiteFields(\'online\');getChatWebsiteFields(\'offline\');">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_ONLINE\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_OFFLINE\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="row">\n <div class="col-md-12">\n <div class="tab-content">\n <div class="tab-pane active" id="tab_1_1">\n <div class="row">\n <div class="col-md-6">\n <div class="portlet">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-book-open font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_FIELDS_SELECTED\' | translate }}</span>\n </div>\n <div class="actions">\n <div class="btn-group">\n <a class="btn green-jungle" href="#" data-ng-click="saveForm(\'online\');">\n <i class="fa fa-check"></i> {{ \'APPLICATION_SAVE\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <div fb-builder="online"></div>\n </div>\n </div>\n </div>\n <div class="col-md-6">\n <div class="portlet">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-book-open font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_FIELDS_AVAILABLE\' | translate }}</span>\n </div>\n </div>\n <div class="portlet-body">\n <div fb-components></div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class="tab-pane" id="tab_1_2">\n <div class="row">\n <div class="col-md-6">\n <div class="portlet">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-book-open font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_FIELDS_SELECTED\' | translate }}</span>\n </div>\n <div class="actions">\n <div class="btn-group">\n <a class="btn green-jungle" href="#" data-ng-click="saveForm(\'offline\');">\n <i class="fa fa-check"></i> {{ \'APPLICATION_SAVE\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <div fb-builder="offline"></div>\n </div>\n </div>\n </div>\n <div class="col-md-6">\n <div class="portlet">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-book-open font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_FIELDS_AVAILABLE\' | translate }}</span>\n </div>\n </div>\n <div class="portlet-body">\n <div fb-components></div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n</div>\n'),a.put("app/channels/chat/website/view/hooks/view/view.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_HOOKS\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_ACCEPT\' | translate}}</a>\n </li>\n <li >\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_REJECT\' | translate}}</a>\n </li>\n <li >\n <a href="#" data-target="#tab_1_3" data-toggle="tab">{{\'APPLICATION_CLOSE\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- ACCEPT TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.accept" data-ng-submit="forms.accept.$valid && updateItem()" novalidate>\n <!-- START ACCEPT URL -->\n <div class="row">\n <div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.accept.method.$touched || forms.accept.$submitted) && forms.accept.method.$invalid}">\n <label class="control-label">{{\'APPLICATION_METHOD\' | translate}}</label>\n <ui-select data-ng-model="account.acceptMethod" name="method" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected.name | uppercase}}</ui-select-match>\n <ui-select-choices repeat="type.value as type in types | filter: $select.search">\n <div ng-bind-html="type.name | highlight: $select.search | uppercase" ></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.accept.method.$touched || forms.accept.$submitted) && forms.accept.method.$invalid && forms.accept.method.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.accept.url.$touched || forms.accept.$submitted) && forms.accept.url.$invalid}">\n <label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n <input type="url" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="account.acceptUrl" ng-required="account.acceptMethod"/>\n <span data-ng-show="(forms.accept.url.$touched || forms.accept.$submitted) && forms.accept.url.$invalid && forms.accept.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <!-- END ACCEPT URL-->\n <!-- START ACTIONS-->\n <!-- START PAUSE -->\n <div class="row" ng-repeat = "action in account.actions">\n <div ng-switch="action.action">\n <div ng-switch-when="pause">\n <div class="form-group col-md-4">\n <label class="control-label">{{\'APPLICATION_PAUSE\' | translate}}</label></br>\n <input\n bs-switch\n data-ng-change="resetActionData(action)"\n data-ng-model="action.enabled"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </div>\n <div ng-if="action.enabled" class="form-group col-md-8">\n <label class="control-label">{{\'APPLICATION_TYPE\' | translate}}</label>\n <ui-select name="action" data-ng-model="action.type" theme="bootstrap" >\n <ui-select-match placeholder="{{\'APPLICATION_TYPE\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat=" pause.name as pause in pauses | filter: $select.search">\n <div ng-bind-html="pause.name | highlight: $select.search | uppercase" ></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n </div>\n </div>\n <!-- END ACTION -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ACCEPT TAB -->\n <!-- START REJECT TAB -->\n <div class="tab-pane" id="tab_1_2">\n <form name="forms.reject" data-ng-submit="forms.reject.$valid && updateItem()" novalidate>\n <!-- START REJECT URL -->\n <div class="row">\n <div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.reject.method.$touched || forms.reject.$submitted) && forms.reject.method.$invalid}">\n <label class="control-label">{{\'APPLICATION_METHOD\' | translate}}</label>\n <ui-select data-ng-model="account.rejectMethod" name="method" theme="bootstrap" >\n <ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected.name | uppercase}}</ui-select-match>\n <ui-select-choices repeat="type.value as type in types | filter: $select.search">\n <div ng-bind-html="type.name | highlight: $select.search | uppercase" ></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.reject.method.$touched || forms.reject.$submitted) && forms.reject.method.$invalid && forms.reject.method.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.reject.url.$touched || forms.reject.$submitted) && forms.reject.url.$invalid}">\n <label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n <input type="url" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="account.rejectUrl" ng-required="account.rejectMethod"/>\n <span data-ng-show="(forms.reject.url.$touched || forms.reject.$submitted) && forms.reject.url.$invalid && forms.reject.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n\n <!-- END REJECT URL -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END REJECT TAB -->\n <!-- START CLOSE TAB -->\n <div class="tab-pane" id="tab_1_3">\n <form name="forms.close" data-ng-submit="forms.close.$valid && updateItem()" novalidate>\n <div class="row">\n <div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.close.method.$touched || forms.close.$submitted) && forms.close.method.$invalid}">\n <label class="control-label">{{\'APPLICATION_METHOD\' | translate}}</label>\n <ui-select data-ng-model="account.closeMethod" name="method" theme="bootstrap" >\n <ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected.name | uppercase}}</ui-select-match>\n <ui-select-choices repeat="type.value as type in types | filter: $select.search">\n <div ng-bind-html="type.name | highlight: $select.search | uppercase" ></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.close.method.$touched || forms.close.$submitted) && forms.close.method.$invalid && forms.close.method.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.close.url.$touched || forms.close.$submitted) && forms.close.url.$invalid}">\n <label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n <input type="url" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="account.closeUrl" ng-required="account.closeMethod"/>\n <span data-ng-show="(forms.close.url.$touched || forms.close.$submitted) && forms.close.url.$invalid && forms.close.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END CLOSE TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'), +a.put("app/channels/chat/website/view/proactive/list/list.create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{title}}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.type.$touched || form.$submitted) && form.type.$invalid}">\n <label class="control-label">{{\'APPLICATION_TYPE\' | translate}}</label>\n <ui-select name="type" ng-model="item.type" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices repeat="item.type as item in possibleType | filter: $select.search">\n <div ng-bind-html="item.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END TYPE -->\n\n <!-- START SELECTOR -->\n <div class="form-group" data-ng-if="item.type === \'mouseOver\'" data-ng-class="{\'has-error\': (form.selector.$touched || form.$submitted) && form.selector.$invalid}">\n <label class="control-label">{{\'APPLICATION_SELECTOR\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="selector" placeholder="{{\'APPLICATION_SELECTOR\' | translate}}" class="form-control" data-ng-model="item.selector" required/>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SELECTOR -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-if="item.type === \'timeout\'" data-ng-class="{\'has-error\': (form.timeout.$touched || form.$submitted) && form.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="item.timeout" min="0" required/>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/chat/website/view/proactive/list/list.html",'<div class="row" data-ng-init="initProactiveActions()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_PROACTIVE_ACTIONS\' | translate}}</span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="#" data-toggle="dropdown" data-ng-click="createItem()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_PROACTIVE_ACTION\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/chat/website/view/setting/view/view.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body" data-ng-init="initView()">\n <form name="forms.info" data-ng-submit="forms.info.$valid && updateItemChatWebsite()" novalidate>\n <!-- START LIST -->\n <div class="form-group" data-ng-if="license.cm">\n <label class="control-label">{{\'APPLICATION_LIST\' | translate}}</label>\n <div class="input-group">\n\n <ui-select data-ng-model="chatWebsite.ListId" name="list" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_LIST\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="list.id as list in lists | filter: $select.search">\n <div ng-bind-html="list.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n\n <span class="input-group-btn">\n <button type="button" data-ng-click="chatWebsite.ListId = null" class="btn btn-default">\n <span class="glyphicon glyphicon-trash"></span>\n </button>\n </span>\n\n </div>\n </div>\n <!-- END LIST -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/chat/website/view/snippet/view/view.html",'<div class="row" data-ng-init="initView();getServiceMailAccount();">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SNIPPET\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_APPEARANCE\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_FORMS\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_3" data-toggle="tab">{{\'APPLICATION_LABELS\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_4" data-toggle="tab">{{\'APPLICATION_SETTINGS\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_5" data-toggle="tab">{{\'APPLICATION_OFFLINE\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="row">\n <div class="col-md-8">\n <div class="tab-content">\n\n <!-- APPEARANCE TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.formAppearance" data-ng-submit="forms.formAppearance.$valid && updateItem()" novalidate>\n\n <!-- START MAIN COLOR -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAppearance.mainColor.$touched || forms.formAppearance.$submitted) && forms.formAppearance.host.$invalid}">\n <label class="control-label">{{\'APPLICATION_MAIN_COLOR\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input colorpicker type="text" name="mainColor" placeholder="{{\'APPLICATION_MAIN_COLOR\' | translate}}" style="color:{{chatWebsite.color}}" class="form-control" data-ng-model="chatWebsite.color" required/>\n <span data-ng-show="(forms.formAppearance.mainColor.$touched || forms.formAppearance.$submitted) && forms.formAppearance.mainColor.$invalid && forms.formAppearance.mainColor.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MAIN COLOR -->\n\n <!-- START FOCUS COLOR -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAppearance.focusColor.$touched || forms.formAppearance.$submitted) && forms.formAppearance.focusColor.$invalid}">\n <label class="control-label">{{\'APPLICATION_FOCUS_COLOR\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input colorpicker type="text" name="focusColor" placeholder="{{\'APPLICATION_FOCUS_COLOR\' | translate}}" style="color:{{chatWebsite.color_focus}}" class="form-control" data-ng-model="chatWebsite.color_focus" required/>\n <span data-ng-show="(forms.formAppearance.focusColor.$touched || forms.formAppearance.$submitted) && forms.formAppearance.focusColor.$invalid && forms.formAppearance.focusColor.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END FOCUS COLOR -->\n\n <!-- START BUTTON COLOR -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAppearance.buttonColor.$touched || forms.formAppearance.$submitted) && forms.formAppearance.buttonColor.$invalid}">\n <label class="control-label">{{\'APPLICATION_BUTTON_COLOR\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input colorpicker type="text" name="buttonColor" placeholder="{{\'APPLICATION_BUTTON_COLOR\' | translate}}" style="color:{{chatWebsite.color_button}}" class="form-control" data-ng-model="chatWebsite.color_button" required/>\n <span data-ng-show="(forms.formAppearance.buttonColor.$touched || forms.formAppearance.$submitted) && forms.formAppearance.buttonColor.$invalid && forms.formAppearance.buttonColor.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END BUTTON COLOR -->\n\n <!-- START HEADER SHAPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAppearance.headerShape.$touched || forms.formAppearance.$submitted) && forms.formAppearance.headerShape.$invalid}">\n <label class="control-label">{{\'APPLICATION_HEADER_SHAPE\' | translate}}</label>\n <!-- <input colorpicker type="text" name="animationToggle" placeholder="{{\'APPLICATION_BUTTON_COLOR\' | translate}}" class="form-control" data-ng-model="chatWebsite.animation" required/> -->\n <ui-select data-ng-model="chatWebsite.header_shape" name="headerShape" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$translate.instant(\'APPLICATION_\' + $select.selected.toUpperCase())}}</ui-select-match>\n <ui-select-choices repeat="headerShape in [\'rounded\',\'squared\'] | filter: $select.search">\n <div ng-bind-html="$translate.instant(\'APPLICATION_\' + headerShape.toUpperCase()) | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END HEADER SHAPE -->\n\n <!-- START ANIMATION TOGGLE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAppearance.animationToggle.$touched || forms.formAppearance.$submitted) && forms.formAppearance.animationToggle.$invalid}">\n <label class="control-label">{{\'APPLICATION_ANIMATION\' | translate}}</label></br>\n <!-- <input colorpicker type="text" name="animationToggle" placeholder="{{\'APPLICATION_BUTTON_COLOR\' | translate}}" class="form-control" data-ng-model="chatWebsite.animation" required/> -->\n <input\n bs-switch\n class="form-control"\n ng-model="chatWebsite.animation"\n type="checkbox"\n name="animationToggle"\n switch-active="{{ true }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ switchElement.onColor }}"\n switch-off-color="{{ switchElement.offColor }}"\n switch-animate="{{ switchElement.animate }}"\n switch-size="{{ switchElement.size }}"\n switch-label="{{ switchElement.label }}"\n switch-icon="{{ switchElement.icon }}"\n switch-radio-off="{{ switchElement.radioOff }}"\n switch-label-width="{{ switchElement.labelWidth }}"\n switch-handle-width="{{ switchElement.handleWidth }}">\n </div>\n <!-- END ANIMATION TOGGLE -->\n\n <!-- START RATING TOGGLE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAppearance.ratingEname.$touched || forms.formAppearance.$submitted) && forms.formAppearance.ratingEname.$invalid}">\n <label class="control-label">{{\'APPLICATION_ENABLE_RATING\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="chatWebsite.rating_enable"\n type="checkbox"\n name="ratingEname"\n switch-active="{{ true }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ switchElement.onColor }}"\n switch-off-color="{{ switchElement.offColor }}"\n switch-animate="{{ switchElement.animate }}"\n switch-size="{{ switchElement.size }}"\n switch-label="{{ switchElement.label }}"\n switch-icon="{{ switchElement.icon }}"\n switch-radio-off="{{ switchElement.radioOff }}"\n switch-label-width="{{ switchElement.labelWidth }}"\n switch-handle-width="{{ switchElement.handleWidth }}">\n </div>\n <!-- END RATING TOGGLE -->\n\n <div class="portlet-title tabbable-line margin-top20">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_WHITE_LABEL\' | translate}}</span>\n </div>\n </div>\n\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DEFAULT\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="chatWebsite.defaultWhiteLabel"\n data-ng-init="chatWebsite.defaultWhiteLabel = license.custom ? chatWebsite.defaultWhiteLabel : true"\n type="checkbox"\n name="defaultWhitelabel"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <!-- END DEFAULT -->\n <!-- START LABEL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAppearance.whiteLabel.$touched || forms.formAppearance.$submitted) && forms.formAppearance.whiteLabel.$invalid}">\n <label class="control-label">{{\'APPLICATION_WHITE_LABEL\' | translate}}<span data-ng-if="!chatWebsite.defaultWhiteLabel" class="required" aria-required="true">*</span></label>\n <textarea type="password" name="whiteLabel" placeholder="{{\'APPLICATION_WHITE_LABEL\' | translate}}" class="form-control" data-ng-model="chatWebsite.whiteLabel" data-ng-disabled="chatWebsite.defaultWhiteLabel || !license.custom" data-ng-required="!chatWebsite.defaultWhiteLabel && license.custom"/></textarea>\n <span data-ng-show="(forms.formAppearance.whiteLabel.$touched || forms.formAppearance.$submitted) && forms.formAppearance.whiteLabel.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END LABEL -->\n\n <div class="portlet-title tabbable-line margin-top20">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_LOGO\' | translate}}</span>\n </div>\n </div>\n <div class="row">\n\n <div class="form-group col-md-6 col-sm-6">\n <label class="control-label">{{\'APPLICATION_DEFAULT\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="chatWebsite.defaultLogo"\n data-ng-init="chatWebsite.defaultLogo = license.custom ? chatWebsite.defaultLogo : true"\n type="checkbox"\n name="defaultLogo"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <!-- END STATUS -->\n <div class="form-group col-md-6 col-sm-6" data-ng-if="!chatWebsite.defaultLogo && license.custom">\n <div class="fileinput fileinput-new" data-provides="fileinput">\n <div class="fileinput-new thumbnail" style="width: 200px; height: 150px;">\n <img ng-src="assets/images/media/noProfileImage.png" alt=""/>\n </div>\n <div class="fileinput-preview fileinput-exists thumbnail" style="max-width: 200px; max-height: 150px;">\n </div>\n <div>\n <span class="btn default btn-file" data-ng-show="!uploader.queue[0]">\n <span> {{ \'APPLICATION_SELECT_IMAGE\' | translate }} </span>\n <input type="file" nv-file-select="" uploader="uploader"/><br/>\n </span>\n <button type="button" class="btn default" data-ng-show="uploader.queue[0]" data-dismiss="fileinput" ng-click="uploader.queue[0].remove()">\n {{ \'APPLICATION_REMOVE\' | translate }}\n <!-- </button>\n <button type="button" class="btn green-haze" data-ng-show="uploader.queue[0]" data-ng-click="uploader.queue[0].upload()" ng-disabled="uploader.queue[0].isReady || uploader.queue[0].isUploading || uploader.queue[0].isSuccess">\n {{ \'APPLICATION_CONFIRM\' | translate }}\n </button> -->\n </div>\n <p>\n </br> {{ \'MESSAGE_SUPPORTED_FORMATS\' | translate }} <b>jpg, png, jpeg</b>.\n </p>\n </div>\n </div>\n </div>\n <div class="row">\n <div class="col-md-2">\n <table class="table" border="0">\n <tbody>\n <tr data-ng-repeat="item in uploader.queue">\n <td style="border-top-style:none">\n <strong>\n {{ item.file.name }}\n </strong>\n </td>\n <td data-ng-show="uploader.isHTML5" nowrap style="border-top-style:none">\n {{ item.file.size/1024/1024|number:2 }} MB\n </td>\n <td nowrap style="border-top-style:none">\n <button type="button" class="btn btn-danger btn-xs" data-ng-click="item.remove()">\n <span class="glyphicon glyphicon-trash"></span> Remove\n </button>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n\n <input class="btn green-haze" type="submit" data-ng-click="uploader.queue[0] && uploader.queue[0].upload()" data-ng-disabled="uploader.queue[0].isReady || uploader.queue[0].isUploading || uploader.queue[0].isSuccess" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END APPEARANCE TAB -->\n\n <!-- FORMS TAB -->\n <div class="tab-pane" id="tab_1_2">\n <form name="forms.formFunctionality" data-ng-submit="forms.formFunctionality.$valid && updateItem()" novalidate>\n\n <!-- START DOWNLOAD TRANSCRIPT -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DOWNLOAD_TRANSCRIPT\' | translate}}</label>\n </br>\n <input\n bs-switch\n class="form-control"\n ng-model="chatWebsite.download_transcript"\n type="checkbox"\n switch-active="true"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ switchElement.onColor }}"\n switch-off-color="{{ switchElement.offColor }}"\n switch-animate="{{ switchElement.animate }}"\n switch-size="{{ switchElement.size }}"\n switch-label="{{ switchElement.label }}"\n switch-icon="{{ switchElement.icon }}"\n switch-radio-off="{{ switchElement.radioOff }}"\n switch-label-width="{{ switchElement.labelWidth }}"\n switch-handle-width="{{ switchElement.handleWidth }}">\n </div>\n <!-- END DOWNLOAD TRANSCRIPT -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END FORMS TAB -->\n\n <!-- STRINGS TAB -->\n <div class="tab-pane" id="tab_1_3">\n <form name="forms.formLabel" data-ng-submit="forms.formLabel.$valid && updateItem()" novalidate>\n\n <h4 class="block" data-ng-show="statePreview.state == \'online\'">{{\'APPLICATION_ONLINE_STATE\' | translate}}</h4>\n\n <!-- START HEADER ONLINE -->\n <div class="form-group" data-ng-show="statePreview.state == \'online\'" data-ng-class="{\'has-error\': (forms.formLabel.headerOnline.$touched || forms.formLabel.$submitted) && forms.formLabel.headerOnline.$invalid}">\n <label class="control-label">{{\'APPLICATION_HEADER_ONLINE\' | translate}}</label>\n <input type="text" name="headerOnline" placeholder="{{\'APPLICATION_HEADER_ONLINE\' | translate}}" class="form-control" data-ng-model="chatWebsite.header_online"/>\n </div>\n <!-- END HEADER ONLINE -->\n\n <!-- START ONLINE MESSAGE-->\n <div class="form-group" data-ng-show="statePreview.state == \'online\'" data-ng-class="{\'has-error\': (forms.formLabel.onlineMessage.$touched || forms.formLabel.$submitted) && forms.formLabel.onlineMessage.$invalid}">\n <label class="control-label">{{\'APPLICATION_ONLINE_MESSAGE\' | translate}}</label>\n <input type="text" name="onlineMessage" placeholder="{{\'APPLICATION_ONLINE_MESSAGE\' | translate}}" class="form-control" data-ng-model="chatWebsite.online_message"/>\n </div>\n <!-- END HEADER ONLINE -->\n\n <!-- START USERNAME TITLE -->\n <div class="form-group" data-ng-show="statePreview.state == \'online\' || statePreview.state == \'offline\'" data-ng-class="{\'has-error\': (forms.formLabel.nameTitle.$touched || forms.formLabel.$submitted) && forms.formLabel.nameTitle.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME_TITLE\' | translate}}</label>\n <input type="text" name="nameTitle" placeholder="{{\'APPLICATION_NAME_TITLE\' | translate}}" class="form-control" data-ng-model="chatWebsite.name_title"/>\n </div>\n <!-- END USERNAME TITLE -->\n\n <!-- START USERNAME PLACEHOLDER -->\n <div class="form-group" data-ng-show="statePreview.state == \'online\' || statePreview.state == \'offline\'" data-ng-class="{\'has-error\': (forms.formLabel.usernamePlaceholder.$touched || forms.formLabel.$submitted) && forms.formLabel.usernamePlaceholder.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME_PLACEHOLDER\' | translate}}</label>\n <input type="text" name="usernamePlaceholder" placeholder="{{\'APPLICATION_NAME_PLACEHOLDER\' | translate}}" class="form-control" data-ng-model="chatWebsite.username_placeholder"/>\n </div>\n <!-- END USERNAME PLACEHOLDER -->\n\n <!-- START EMAIL TITLE -->\n <div class="form-group" data-ng-show="statePreview.state == \'online\' || statePreview.state == \'offline\'" data-ng-class="{\'has-error\': (forms.formLabel.emailTitle.$touched || forms.formLabel.$submitted) && forms.formLabel.emailTitle.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL_TITLE\' | translate}}</label>\n <input type="text" name="emailTitle" placeholder="{{\'APPLICATION_EMAIL_TITLE\' | translate}}" class="form-control" data-ng-model="chatWebsite.email_title"/>\n </div>\n <!-- END EMAIL TITLE -->\n\n <!-- START EMAIL PLACEHOLDER -->\n <div class="form-group" data-ng-show="statePreview.state == \'online\' || statePreview.state == \'offline\'" data-ng-class="{\'has-error\': (forms.formLabel.emailPlaceholder.$touched || forms.formLabel.$submitted) && forms.formLabel.emailPlaceholder.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL_PLACEHOLDER\' | translate}}</label>\n <input type="text" name="emailPlaceholder" placeholder="{{\'APPLICATION_EMAIL_PLACEHOLDER\' | translate}}" class="form-control" data-ng-model="chatWebsite.email_placeholder"/>\n </div>\n <!-- END EMAIL PLACEHOLDER -->\n\n <!-- START START CHAT BUTTON -->\n <div class="form-group" data-ng-show="statePreview.state == \'online\'" data-ng-class="{\'has-error\': (forms.formLabel.startChatButton.$touched || forms.formLabel.$submitted) && forms.formLabel.startChatButton.$invalid}">\n <label class="control-label">{{\'APPLICATION_START_CHAT_BUTTON\' | translate}}</label>\n <input type="text" name="startChatButton" placeholder="{{\'APPLICATION_START_CHAT_BUTTON\' | translate}}" class="form-control" data-ng-model="chatWebsite.start_chat_button"/>\n </div>\n <!-- END START CHAT BUTTON -->\n\n <h4 class="block" data-ng-show="statePreview.state == \'rating\'">{{\'APPLICATION_RATING_STATE\' | translate}}</h4>\n\n <!-- START RATING MESSAGE -->\n <div class="form-group" data-ng-show="statePreview.state == \'rating\'" data-ng-class="{\'has-error\': (forms.formLabel.ratingMessage.$touched || forms.formLabel.$submitted) && forms.formLabel.ratingMessage.$invalid}">\n <label class="control-label">{{\'APPLICATION_RATING_MESSAGE\' | translate}}</label>\n <input type="text" name="ratingMessage" placeholder="{{\'APPLICATION_RATING_MESSAGE\' | translate}}" class="form-control" data-ng-model="chatWebsite.rating_message"/>\n </div>\n <!-- END RATING MESSAGE -->\n\n <!-- START RATING SEND BUTTON -->\n <div class="form-group" data-ng-show="statePreview.state == \'rating\'" data-ng-class="{\'has-error\': (forms.formLabel.ratingSend.$touched || forms.formLabel.$submitted) && forms.formLabel.ratingSend.$invalid}">\n <label class="control-label">{{\'APPLICATION_RATING_SEND_BUTTON\' | translate}}</label>\n <input type="text" name="ratingSend" placeholder="{{\'APPLICATION_RATING_SEND_BUTTON\' | translate}}" class="form-control" data-ng-model="chatWebsite.rating_send"/>\n </div>\n <!-- END RATING SEND BUTTON -->\n\n <!-- START RATING SKIP BUTTON -->\n <div class="form-group" data-ng-show="statePreview.state == \'rating\'" data-ng-class="{\'has-error\': (forms.formLabel.ratingSkip.$touched || forms.formLabel.$submitted) && forms.formLabel.ratingSkip.$invalid}">\n <label class="control-label">{{\'APPLICATION_RATING_SKIP_BUTTON\' | translate}}</label>\n <input type="text" name="ratingSkip" placeholder="{{\'APPLICATION_RATING_SKIP_BUTTON\' | translate}}" class="form-control" data-ng-model="chatWebsite.rating_skip"/>\n </div>\n <!-- END RATING SKIP BUTTON -->\n\n <h4 class="block" data-ng-show="statePreview.state == \'offline\'">{{\'APPLICATION_OFFLINE_STATE\' | translate}}</h4>\n\n <!-- START HEADER OFFLINE -->\n <div class="form-group" data-ng-show="statePreview.state == \'offline\'" data-ng-class="{\'has-error\': (forms.formLabel.headerOffline.$touched || forms.formLabel.$submitted) && forms.formLabel.headerOnline.$invalid}">\n <label class="control-label">{{\'APPLICATION_HEADER_OFFLINE\' | translate}}</label>\n <input type="text" name="headerOffline" placeholder="{{\'APPLICATION_HEADER_OFFLINE\' | translate}}" class="form-control" data-ng-model="chatWebsite.header_offline"/>\n </div>\n <!-- END HEADER OFFLINE -->\n\n <!-- START OFFLINE MESSAGE-->\n <div class="form-group" data-ng-show="statePreview.state == \'offline\'" data-ng-class="{\'has-error\': (forms.formLabel.offlineMessage.$touched || forms.formLabel.$submitted) && forms.formLabel.offlineMessage.$invalid}">\n <label class="control-label">{{\'APPLICATION_OFFLINE_MESSAGE\' | translate}}</label>\n <input type="text" name="offlineMessage" placeholder="{{\'APPLICATION_OFFLINE_MESSAGE\' | translate}}" class="form-control" data-ng-model="chatWebsite.offline_message"/>\n </div>\n <!-- END OFFLINE MESSAGE -->\n\n <!-- START ENQUIRY MESSAGE TITLE-->\n <div class="form-group" data-ng-show="statePreview.state == \'offline\'" data-ng-class="{\'has-error\': (forms.formLabel.enquiryMessageTitle.$touched || forms.formLabel.$submitted) && forms.formLabel.enquiryMessageTitle.$invalid}">\n <label class="control-label">{{\'APPLICATION_ENQUIRY_MESSAGE_TITLE\' | translate}}</label>\n <input type="text" name="enquiryMessageTitle" placeholder="{{\'APPLICATION_ENQUIRY_MESSAGE_TITLE\' | translate}}" class="form-control" data-ng-model="chatWebsite.message_title"/>\n </div>\n <!-- END ENQUIRY MESSAGE TITLE -->\n\n <!-- START ENQUIRY MESSAGE PLACEHOLDER-->\n <div class="form-group" data-ng-show="statePreview.state == \'offline\'" data-ng-class="{\'has-error\': (forms.formLabel.enquiryMessagePlaceholder.$touched || forms.formLabel.$submitted) && forms.formLabel.enquiryMessagePlaceholder.$invalid}">\n <label class="control-label">{{\'APPLICATION_ENQUIRY_MESSAGE_PLACEHOLDER\' | translate}}</label>\n <input type="text" name="enquiryMessagePlaceholder" placeholder="{{\'APPLICATION_ENQUIRY_MESSAGE_PLACEHOLDER\' | translate}}" class="form-control" data-ng-model="chatWebsite.enquiry_message_placeholder"/>\n </div>\n <!-- END ENQUIRY MESSAGE PLACEHOLDER -->\n\n <!-- START ENQUIRY BUTTON -->\n <div class="form-group" data-ng-show="statePreview.state == \'offline\'" data-ng-class="{\'has-error\': (forms.formLabel.enquiryButton.$touched || forms.formLabel.$submitted) && forms.formLabel.enquiryButton.$invalid}">\n <label class="control-label">{{\'APPLICATION_ENQUIRY_BUTTON\' | translate}}</label>\n <input type="text" name="enquiryButton" placeholder="{{\'APPLICATION_ENQUIRY_BUTTON\' | translate}}" class="form-control" data-ng-model="chatWebsite.enquiry_button"/>\n </div>\n <!-- END ENQUIRY BUTTON -->\n\n <!-- START AGENTS BUSY BUTTON -->\n <div class="form-group" data-ng-show="statePreview.state == \'online\'" data-ng-class="{\'has-error\': (forms.formLabel.agentsBusy.$touched || forms.formLabel.$submitted) && forms.formLabel.agentsBusy.$invalid}">\n <label class="control-label">{{\'APPLICATION_AGENTS_BUSY\' | translate}}</label>\n <input type="text" name="agentsBusy" placeholder="{{\'APPLICATION_AGENTS_BUSY\' | translate}}" class="form-control" data-ng-model="chatWebsite.agents_busy"/>\n </div>\n <!-- END AGENTS BUSY BUTTON -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END STRINGS TAB -->\n\n <!-- SETTINGS TAB -->\n <div class="tab-pane" id="tab_1_4">\n <form name="forms.formSetting" data-ng-submit="forms.formSetting.$valid && updateItem()" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formSetting.name.$touched || forms.formSetting.$submitted) && forms.formSetting.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="chatWebsite.name" required/>\n <span data-ng-show="(forms.formSetting.name.$touched || forms.formSetting.$submitted) && forms.formSettings.name.$invalid && forms.formSetting.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START ADDRESS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formSetting.address.$touched || forms.formSetting.$submitted) && forms.formSetting.address.$invalid}">\n <label class="control-label">{{\'APPLICATION_WEB_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="address" placeholder="{{\'APPLICATION_WEB_ADDRESS\' | translate}}" class="form-control" data-ng-model="chatWebsite.address" required/>\n <span data-ng-show="(forms.formSetting.address.$touched || forms.formSetting.$submitted) && forms.formSetting.address.$invalid && forms.formSetting.address.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END ADDRESS -->\n\n <!-- START REMOTE IP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formSetting.remote.$touched || forms.formSetting.$submitted) && forms.formSetting.remote.$invalid}">\n <label class="control-label">{{\'APPLICATION_MOTION_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="remote" placeholder="{{\'APPLICATION_MOTION_ADDRESS\' | translate}}" class="form-control" data-ng-model="chatWebsite.remote" required/>\n <span data-ng-show="(forms.formSetting.remote.$touched || forms.formSetting.$submitted) && forms.formSetting.remote.$invalid && forms.formSetting.remote.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span class="help-block help-block-info">\n {{\'MESSAGE_MOTION_ADDRESS_FORMAT\' | translate}}\n </span>\n </div>\n <!-- END REMOTE IP -->\n\n <!-- START FIDELITY -->\n <!-- <div class="form-group">\n <label class="control-label">{{\'APPLICATION_FIDELITY\' | translate}}</label></br>\n <input\n bs-switch\n data-ng-model="chatWebsite.fidelity"\n type="checkbox"\n switch-active="{{ fidelitySwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ fidelitySwitch.onColor }}"\n switch-off-color="{{ fidelitySwitch.offColor }}"\n switch-animate="{{ fidelitySwitch.animate }}"\n switch-size="{{ fidelitySwitch.size }}"\n switch-label="{{ fidelitySwitch.label }}"\n switch-icon="{{ fidelitySwitch.icon }}"\n switch-radio-off="{{ fidelitySwitch.radioOff }}"\n switch-label-width="{{ fidelitySwitch.labelWidth }}"\n switch-handle-width="{{ fidelitySwitch.handleWidth }}">\n </div> -->\n <!-- END FIDELITY -->\n\n <!-- START TIMEOUT -->\n <!-- <div class="form-group" data-ng-if="chatWebsite.fidelity" data-ng-class="{\'has-error\': (forms.formSetting.timeout.$touched || forms.formSetting.$submitted) && forms.formSetting.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="0" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="chatWebsite.timeout" required/>\n <span data-ng-show="(forms.formSetting.timeout.$touched || forms.formSetting.$submitted) && forms.formSetting.timeout.$invalid && forms.formSetting.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.formSetting.timeout.$touched || forms.formSetting.$submitted) && forms.formSetting.timeout.$invalid && forms.formSetting.timeout.$error.number" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n </span>\n </div> -->\n <!-- END TIMEOUT -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formSetting.description.$touched || forms.formSetting.$submitted) && forms.formSetting.description.$invalid}">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="chatWebsite.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END SETTINGS TAB -->\n\n <!-- OFFLINE TAB -->\n <div class="tab-pane" id="tab_1_5">\n <form name="forms.formOffline" data-ng-submit="forms.formOffline.$valid && updateItem()" novalidate>\n\n <!-- START ENQUIRY ENABLE -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_ENQUIRY_ENABLED\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="chatWebsite.enquiry_enable"\n type="checkbox"\n switch-active="{{ enquirySwitch.isActive }}"\n switch-on-text="{{ enquirySwitch.onText }}"\n switch-off-text="{{ enquirySwitch.offText }}"\n switch-on-color="{{ enquirySwitch.onColor }}"\n switch-off-color="{{ enquirySwitch.offColor }}"\n switch-animate="{{ enquirySwitch.animate }}"\n switch-size="{{ enquirySwitch.size }}"\n switch-label="{{ enquirySwitch.label }}"\n switch-icon="{{ enquirySwitch.icon }}"\n switch-radio-off="{{ enquirySwitch.radioOff }}"\n switch-label-width="{{ enquirySwitch.labelWidth }}"\n switch-handle-width="{{ enquirySwitch.handleWidth }}">\n </div>\n <!-- END ENQUIRY ENABLE -->\n\n <!-- START ENQUIRY FORWARDING -->\n <div class="form-group" data-ng-if="chatWebsite.enquiry_enable">\n <label class="control-label">{{\'APPLICATION_ENQUIRY_FORWARDING\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="chatWebsite.enquiry_forwarding"\n type="checkbox"\n switch-active="{{ enquirySwitch.isActive }}"\n switch-on-text="{{ enquirySwitch.onText }}"\n switch-off-text="{{ enquirySwitch.offText }}"\n switch-on-color="{{ enquirySwitch.onColor }}"\n switch-off-color="{{ enquirySwitch.offColor }}"\n switch-animate="{{ enquirySwitch.animate }}"\n switch-size="{{ enquirySwitch.size }}"\n switch-label="{{ enquirySwitch.label }}"\n switch-icon="{{ enquirySwitch.icon }}"\n switch-radio-off="{{ enquirySwitch.radioOff }}"\n switch-label-width="{{ enquirySwitch.labelWidth }}"\n switch-handle-width="{{ enquirySwitch.handleWidth }}">\n </div>\n <!-- END ENQUIRY FORWARDING -->\n\n <div class="note note-warning" data-ng-if="!isServiceMailAccount">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_SERVICE_MAIL_ACCOUNT\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/setting/smtp/view">SMTP</a> {{\'APPLICATION_OR\' | translate}} <a href="/channels/mail/accounts/list">{{\'APPLICATION_MAIL_ACCOUNTS\' | translate}}</a>\n </p>\n </div>\n\n <!-- START REMOTE IP -->\n <div class="form-group" data-ng-if="chatWebsite.enquiry_enable && chatWebsite.enquiry_forwarding" data-ng-class="{\'has-error\': (forms.formOffline.forwardingAddress.$touched || forms.formOffline.$submitted) && forms.formSetting.forwardingAddress.$invalid}">\n <label class="control-label">{{\'APPLICATION_ENQUIRY_FORWARDING_ADDRESS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="forwardingAddress" placeholder="{{\'APPLICATION_ADDRESS\' | translate}}" class="form-control" data-ng-model="chatWebsite.enquiry_forwarding_address" required/>\n <span data-ng-show="(forms.formOffline.forwardingAddress.$touched || forms.formOffline.$submitted) && forms.formOffline.forwardingAddress.$invalid && forms.formOffline.forwardingAddress.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END REMOTE IP -->\n\n <!-- START HEADER SHAPE -->\n <div class="form-group" data-ng-if="chatWebsite.enquiry_enable && chatWebsite.enquiry_forwarding" data-ng-class="{\'has-error\': (forms.formOffline.OfflineTemplateId.$touched || forms.formOffline.$submitted) && forms.formOffline.OfflineTemplateId.$invalid}">\n <label class="control-label">{{\'APPLICATION_TEMPLATE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="chatWebsite.OfflineTemplateId" name="OfflineTemplateId" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n <div ng-bind-html="template.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.formOffline.OfflineTemplateId.$touched || forms.formOffline.$submitted) && forms.formOffline.OfflineTemplateId.$invalid && forms.formOffline.OfflineTemplateId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END HEADER SHAPE -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END OFFLINE TAB -->\n </div>\n </div>\n <div class="col-md-4">\n <!-- START STATE -->\n <div class="form-group">\n <!-- <label class="control-label">{{\'APPLICATION_ANIMATION\' | translate}}</label> -->\n <!-- <input colorpicker type="text" name="animationToggle" placeholder="{{\'APPLICATION_BUTTON_COLOR\' | translate}}" class="form-control" data-ng-model="chatWebsite.animation" required/> -->\n <ui-select data-ng-model="statePreview.state" name="statePreview" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="statePreview in [\'online\',\'rating\',\'offline\'] | filter: $select.search">\n <div ng-bind-html="statePreview | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END STATE -->\n <preview></preview>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n'), +a.put("app/channels/chat/website/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-bubble"></i>\n <a href="#">{{ \'APPLICATION_CHAT\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-globe"></i>\n <a href="/channels/chat/websites/list">{{ \'APPLICATION_WEB_SITES\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <a href="#">{{chatWebsite.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img src="assets/images/media/website.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{chatWebsite.name}}\n </div>\n <div class="profile-usertitle-job">\n {{chatWebsite.address}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.includes(\'main.channels.chat.websites.view.embedding\')}">\n <a ng-href="/channels/chat/websites/view/{{chatWebsite.id}}/embedding/view">\n <i class="fa fa-code"></i>\n {{ \'APPLICATION_EMBEDDING\' | translate }} </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.channels.chat.websites.view.snippet\')}">\n <a ng-href="/channels/chat/websites/view/{{chatWebsite.id}}/snippet/view">\n <i class="icon-note"></i>\n {{ \'APPLICATION_SNIPPET\' | translate }} </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.channels.chat.websites.view.form\')}">\n <a ng-href="/channels/chat/websites/view/{{chatWebsite.id}}/forms/view">\n <i class="icon-list"></i>\n {{ \'APPLICATION_FORMS\' | translate }} </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.channels.chat.websites.view.proactive\')}">\n <a ng-href="/channels/chat/websites/view/{{chatWebsite.id}}/proactive/list">\n <i class="icon-target"></i>\n {{ \'APPLICATION_PROACTIVE_ACTIONS\' | translate }} </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.channels.chat.websites.view.actions\')}">\n <a ng-href="/channels/chat/websites/view/{{chatWebsite.id}}/actions/list">\n <i class="icon-directions"></i>\n {{ \'APPLICATION_ACTIONS\' | translate }} </a>\n </li>\n <li ng-class="{active: $state.is(\'main.channels.chat.websites.view.hooks\')}">\n <a href="/channels/chat/websites/view/{{chatWebsite.id}}/hooks">\n <i class="fa fa-code"></i>\n {{\'APPLICATION_HOOKS\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.channels.chat.websites.view.dispositions\')}">\n <a ng-href="/channels/chat/websites/view/{{chatWebsite.id}}/dispositions">\n <i class="icon-target"></i>\n {{ \'APPLICATION_DISPOSITIONS\' | translate }} </a>\n </li>\n <li ng-class="{active: $state.is(\'main.channels.chat.websites.view.settings\')}">\n <a href="/channels/chat/websites/view/{{chatWebsite.id}}/settings">\n <i class="icon-settings"></i>\n {{\'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/chat/website/wizard/wizard.html",'<!-- BEGIN PAGE HEADER-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-bubble"></i>\n <a href="#">{{ \'APPLICATION_CHAT\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-globe"></i>\n <a href="/channels/chat/websites/list">{{ \'APPLICATION_WEB_SITES\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n<!-- END PAGE HEADER-->\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initWizard();">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_WEB_SITE\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_WEB_SITE_INFO\' | translate}}" canexit="exitValidation(forms.formSetting.$valid)">\n <form name="forms.formSetting" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formSetting.name.$touched || forms.formSetting.$submitted) && forms.formSetting.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="forms.formSetting.name.$touched && !forms.formSettings.name.$valid && forms.formSetting.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START ADDRESS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formSetting.address.$touched || forms.formSetting.$submitted) && forms.formSetting.address.$invalid}">\n <label class="control-label">{{\'APPLICATION_WEB_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="address" placeholder="{{\'APPLICATION_WEB_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.address" required/>\n <span data-ng-show="(forms.formSetting.address.$touched || forms.formSetting.$submitted) && forms.formSetting.address.$invalid && forms.formSetting.address.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END ADDRESS -->\n\n <!-- START REMOTE IP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formSetting.remote.$touched || forms.formSetting.$submitted) && forms.formSetting.remote.$invalid}">\n <label class="control-label">{{\'APPLICATION_MOTION_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="remote" placeholder="{{\'APPLICATION_MOTION_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.remote" required/>\n <span class="help-block help-block-info">\n {{\'MESSAGE_MOTION_ADDRESS_FORMAT\' | translate}}\n </span>\n <span data-ng-show="(forms.formSetting.remote.$touched || forms.formSetting.$submitted) && forms.formSetting.remote.$invalid && forms.formSetting.remote.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END REMOTE IP -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n </div>\n <!-- END DESCRIPTION -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_WEB_SITE_APPEARANCE\' | translate}}" canexit="exitValidation(forms.formAppearance.$valid)">\n <form name="forms.formAppearance" novalidate>\n\n <!-- START MAIN COLOR -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAppearance.mainColor.$touched || forms.formAppearance.$submitted) && forms.formAppearance.host.$invalid}">\n <label class="control-label">{{\'APPLICATION_MAIN_COLOR\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input colorpicker type="text" name="mainColor" placeholder="{{\'APPLICATION_MAIN_COLOR\' | translate}}" style="color:{{item.color}}" class="form-control" data-ng-model="item.color" required/>\n <span data-ng-show="(forms.formAppearance.mainColor.$touched || forms.formAppearance.$submitted) && forms.formAppearance.mainColor.$invalid && forms.formAppearance.mainColor.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MAIN COLOR -->\n\n <!-- START FOCUS COLOR -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAppearance.focusColor.$touched || forms.formAppearance.$submitted) && forms.formAppearance.focusColor.$invalid}">\n <label class="control-label">{{\'APPLICATION_FOCUS_COLOR\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input colorpicker type="text" name="focusColor" placeholder="{{\'APPLICATION_FOCUS_COLOR\' | translate}}" style="color:{{item.color_focus}}" class="form-control" data-ng-model="item.color_focus" required/>\n <span data-ng-show="(forms.formAppearance.focusColor.$touched || forms.formAppearance.$submitted) && forms.formAppearance.focusColor.$invalid && forms.formAppearance.focusColor.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END FOCUS COLOR -->\n\n <!-- START BUTTON COLOR -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAppearance.buttonColor.$touched || forms.formAppearance.$submitted) && forms.formAppearance.buttonColor.$invalid}">\n <label class="control-label">{{\'APPLICATION_BUTTON_COLOR\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input colorpicker type="text" name="buttonColor" placeholder="{{\'APPLICATION_BUTTON_COLOR\' | translate}}" style="color:{{item.color_button}}" class="form-control" data-ng-model="item.color_button" required/>\n <span data-ng-show="(forms.formAppearance.buttonColor.$touched || forms.formAppearance.$submitted) && forms.formAppearance.buttonColor.$invalid && forms.formAppearance.buttonColor.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END BUTTON COLOR -->\n\n <!-- START HEADER SHAPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAppearance.headerShape.$touched || forms.formAppearance.$submitted) && forms.formAppearance.headerShape.$invalid}">\n <label class="control-label">{{\'APPLICATION_HEADER_SHAPE\' | translate}}</label>\n <!-- <input colorpicker type="text" name="animationToggle" placeholder="{{\'APPLICATION_BUTTON_COLOR\' | translate}}" class="form-control" data-ng-model="item.animation" required/> -->\n <ui-select data-ng-model="item.header_shape" name="headerShape" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$translate.instant(\'APPLICATION_\' + $select.selected.toUpperCase())}}</ui-select-match>\n <ui-select-choices repeat="headerShape in [\'rounded\',\'squared\'] | filter: $select.search">\n <div ng-bind-html="$translate.instant(\'APPLICATION_\' + headerShape.toUpperCase()) | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END HEADER SHAPE -->\n\n <!-- START ANIMATION TOGGLE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAppearance.animationToggle.$touched || forms.formAppearance.$submitted) && forms.formAppearance.animationToggle.$invalid}">\n <label class="control-label">{{\'APPLICATION_ANIMATION\' | translate}}</label>\n <ui-select data-ng-model="item.animation" name="animationToggle" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected ? \'On\' : \'Off\'}}</ui-select-match>\n <ui-select-choices repeat="filter in [true,false] | filter: $select.search">\n <div ng-bind-html="filter ? \'On\' : \'Off\' | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END ANIMATION TOGGLE -->\n\n <!-- START ANIMATION TOGGLE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAppearance.enableRating.$touched || forms.formAppearance.$submitted) && forms.formAppearance.enableRating.$invalid}">\n <label class="control-label">{{\'APPLICATION_ENABLE_RATING\' | translate}}</label>\n <ui-select data-ng-model="item.rating_enable" name="enableRating" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected ? \'On\' : \'Off\'}}</ui-select-match>\n <ui-select-choices repeat="filter in [true,false] | filter: $select.search">\n <div ng-bind-html="filter ? \'On\' : \'Off\' | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END ANIMATION TOGGLE -->\n\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_LABELS\' | translate}}" canexit="exitValidation(forms.formLabel.$valid)">\n <form name="forms.formLabel" novalidate>\n\n <!-- START HEADER ONLINE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.headerOnline.$touched || forms.formLabel.$submitted) && forms.formLabel.headerOnline.$invalid}">\n <label class="control-label">{{\'APPLICATION_HEADER_ONLINE\' | translate}}</label>\n <input type="text" name="headerOnline" placeholder="{{\'APPLICATION_HEADER_ONLINE\' | translate}}" class="form-control" data-ng-model="item.header_online"/>\n </div>\n <!-- END HEADER ONLINE -->\n\n <!-- START ONLINE MESSAGE-->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.onlineMessage.$touched || forms.formLabel.$submitted) && forms.formLabel.onlineMessage.$invalid}">\n <label class="control-label">{{\'APPLICATION_ONLINE_MESSAGE\' | translate}}</label>\n <input type="text" name="onlineMessage" placeholder="{{\'APPLICATION_ONLINE_MESSAGE\' | translate}}" class="form-control" data-ng-model="item.online_message"/>\n </div>\n <!-- END HEADER ONLINE -->\n\n <!-- START USERNAME TITLE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.nameTitle.$touched || forms.formLabel.$submitted) && forms.formLabel.nameTitle.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME_TITLE\' | translate}}</label>\n <input type="text" name="nameTitle" placeholder="{{\'APPLICATION_NAME_TITLE\' | translate}}" class="form-control" data-ng-model="item.name_title"/>\n </div>\n <!-- END USERNAME TITLE -->\n\n <!-- START USERNAME PLACEHOLDER -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.usernamePlaceholder.$touched || forms.formLabel.$submitted) && forms.formLabel.usernamePlaceholder.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME_PLACEHOLDER\' | translate}}</label>\n <input type="text" name="usernamePlaceholder" placeholder="{{\'APPLICATION_NAME_PLACEHOLDER\' | translate}}" class="form-control" data-ng-model="item.username_placeholder"/>\n </div>\n <!-- END USERNAME PLACEHOLDER -->\n\n <!-- START EMAIL TITLE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.emailTitle.$touched || forms.formLabel.$submitted) && forms.formLabel.emailTitle.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL_TITLE\' | translate}}</label>\n <input type="text" name="emailTitle" placeholder="{{\'APPLICATION_EMAIL_TITLE\' | translate}}" class="form-control" data-ng-model="item.email_title"/>\n </div>\n <!-- END EMAIL TITLE -->\n\n <!-- START EMAIL PLACEHOLDER -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.emailPlaceholder.$touched || forms.formLabel.$submitted) && forms.formLabel.emailPlaceholder.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL_PLACEHOLDER\' | translate}}</label>\n <input type="text" name="emailPlaceholder" placeholder="{{\'APPLICATION_EMAIL_PLACEHOLDER\' | translate}}" class="form-control" data-ng-model="item.email_placeholder"/>\n </div>\n <!-- END EMAIL PLACEHOLDER -->\n\n <!-- START START CHAT BUTTON -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.startChatButton.$touched || forms.formLabel.$submitted) && forms.formLabel.startChatButton.$invalid}">\n <label class="control-label">{{\'APPLICATION_START_CHAT_BUTTON\' | translate}}</label>\n <input type="text" name="startChatButton" placeholder="{{\'APPLICATION_START_CHAT_BUTTON\' | translate}}" class="form-control" data-ng-model="item.start_chat_button"/>\n </div>\n <!-- END START CHAT BUTTON -->\n\n <!-- START RATING MESSAGE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.ratingMessage.$touched || forms.formLabel.$submitted) && forms.formLabel.ratingMessage.$invalid}">\n <label class="control-label">{{\'APPLICATION_RATING_MESSAGE\' | translate}}</label>\n <input type="text" name="ratingMessage" placeholder="{{\'APPLICATION_RATING_MESSAGE\' | translate}}" class="form-control" data-ng-model="item.rating_message"/>\n </div>\n <!-- END RATING MESSAGE -->\n\n <!-- START RATING START TEXT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.ratingSend.$touched || forms.formLabel.$submitted) && forms.formLabel.ratingSend.$invalid}">\n <label class="control-label">{{\'APPLICATION_RATING_SEND_BUTTON\' | translate}}</label>\n <input type="text" name="ratingSend" placeholder="{{\'APPLICATION_RATING_SEND_BUTTON\' | translate}}" class="form-control" data-ng-model="item.rating_send"/>\n </div>\n <!-- END RATING START TEXT -->\n\n <!-- START RATING MESSAGE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.ratingSkip.$touched || forms.formLabel.$submitted) && forms.formLabel.ratingSkip.$invalid}">\n <label class="control-label">{{\'APPLICATION_RATING_SKIP_BUTTON\' | translate}}</label>\n <input type="text" name="ratingSkip" placeholder="{{\'APPLICATION_RATING_SKIP_BUTTON\' | translate}}" class="form-control" data-ng-model="item.rating_skip"/>\n </div>\n <!-- END RATING MESSAGE -->\n\n <!-- START HEADER OFFLINE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.headerOffline.$touched || forms.formLabel.$submitted) && forms.formLabel.headerOnline.$invalid}">\n <label class="control-label">{{\'APPLICATION_HEADER_OFFLINE\' | translate}}</label>\n <input type="text" name="headerOffline" placeholder="{{\'APPLICATION_HEADER_OFFLINE\' | translate}}" class="form-control" data-ng-model="item.header_offline"/>\n </div>\n <!-- END HEADER OFFLINE -->\n\n <!-- START OFFLINE MESSAGE-->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.offlineMessage.$touched || forms.formLabel.$submitted) && forms.formLabel.onlineMessage.$invalid}">\n <label class="control-label">{{\'APPLICATION_OFFLINE_MESSAGE\' | translate}}</label>\n <input type="text" name="offlineMessage" placeholder="{{\'APPLICATION_OFFLINE_MESSAGE\' | translate}}" class="form-control" data-ng-model="item.offline_message"/>\n </div>\n <!-- END OFFLINE MESSAGE -->\n\n <!-- START ENQUIRY MESSAGE TITLE-->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.enquiryMessageTitle.$touched || forms.formLabel.$submitted) && forms.formLabel.enquiryMessageTitle.$invalid}">\n <label class="control-label">{{\'APPLICATION_ENQUIRY_MESSAGE_TITLE\' | translate}}</label>\n <input type="text" name="enquiryMessageTitle" placeholder="{{\'APPLICATION_ENQUIRY_MESSAGE_TITLE\' | translate}}" class="form-control" data-ng-model="item.message_title"/>\n </div>\n <!-- END ENQUIRY MESSAGE TITLE -->\n\n <!-- START ENQUIRY MESSAGE PLACEHOLDER-->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.enquiryMessagePlaceholder.$touched || forms.formLabel.$submitted) && forms.formLabel.onlineMessage.$invalid}">\n <label class="control-label">{{\'APPLICATION_ENQUIRY_MESSAGE_PLACEHOLDER\' | translate}}</label>\n <input type="text" name="enquiryMessagePlaceholder" placeholder="{{\'APPLICATION_ENQUIRY_MESSAGE_PLACEHOLDER\' | translate}}" class="form-control" data-ng-model="item.enquiry_message_placeholder"/>\n </div>\n <!-- END ENQUIRY MESSAGE PLACEHOLDER -->\n\n <!-- START ENQUIRY BUTTON -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.enquiryButton.$touched || forms.formLabel.$submitted) && forms.formLabel.enquiryButton.$invalid}">\n <label class="control-label">{{\'APPLICATION_ENQUIRY_BUTTON\' | translate}}</label>\n <input type="text" name="enquiryButton" placeholder="{{\'APPLICATION_ENQUIRY_BUTTON\' | translate}}" class="form-control" data-ng-model="item.enquiry_button"/>\n </div>\n <!-- END ENQUIRY BUTTON -->\n\n <!-- START AGENTS BUSY BUTTON -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.agentsBusy.$touched || forms.formLabel.$submitted) && forms.formLabel.agentsBusy.$invalid}">\n <label class="control-label">{{\'APPLICATION_AGENTS_BUSY\' | translate}}</label>\n <input type="text" name="agentsBusy" placeholder="{{\'APPLICATION_AGENTS_BUSY\' | translate}}" class="form-control" data-ng-model="item.agents_busy"/>\n </div>\n <!-- END AGENTS BUSY BUTTON -->\n\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_FORMS\' | translate}}" canexit="exitValidation(forms.formAppearance.$valid)">\n <form name="forms.formFunctionality" novalidate>\n\n <!-- START DOWNLOAD TRANSCRIPT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formFunctionality.animationToggle.$touched || forms.formFunctionality.$submitted) && forms.formFunctionality.animationToggle.$invalid}">\n <label class="control-label">{{\'APPLICATION_DOWNLOAD_TRANSCRIPT\' | translate}}</label>\n <ui-select data-ng-model="item.download_transcript" name="downloadTranscript" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected ? \'On\' : \'Off\'}}</ui-select-match>\n <ui-select-choices repeat="downloadTranscript in [true, false] | filter: $select.search">\n <div ng-bind-html="downloadTranscript ? \'On\' : \'Off\' | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END DOWNLOAD TRANSCRIPT -->\n\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/fax/account/list/list.create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_FAX_ACCOUNT\' | translate }}</h3>\n</div>\n<div class="modal-body" data-ng-init="initWizard();">\n <form name="form" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.$submitted || form.name.$touched) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="form.name.$error.required && (form.$submitted || form.name.$touched)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START TRUNKS -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.$submitted || form.trunk.$touched) && form.trunk.$invalid}">\n <label class="control-label">{{\'APPLICATION_TRUNK\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.TrunkName" name="trunk" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_TRUNK\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="trunk.name as trunk in trunks | filter: $select.search">\n <div data-ng-bind="trunk.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="trunks.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_TRUNKS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/trunks/list">{{\'APPLICATION_INTERVALS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="form.trunk.$error.required && (form.$submitted || form.trunk.$touched)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- START TRUNKS -->\n\n <!-- START LOCALSTATIONID -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.$submitted || form.localstationid.$touched) && form.localstationid.$invalid}">\n <label class="control-label">{{\'APPLICATION_LOCALSTATIONID\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="localstationid" placeholder="{{\'APPLICATION_LOCALSTATIONID\' | translate}}" class="form-control" data-ng-model="item.localstationid" required/>\n <span data-ng-show="form.localstationid.$error.required && (form.$submitted || form.localstationid.$touched)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span class="help-block">\n {{\'DESCRIPTION_LOCALSTATIONID\' | translate}}.\n </span>\n </div>\n <!-- END LOCALSTATIONID -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/fax/account/list/list.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-fax"></i>\n <a href="#">{{ \'APPLICATION_FAX\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-notebook"></i>\n <a href="/channels/fax/accounts/list">{{ \'APPLICATION_ACCOUNTS\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACCOUNTS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <button type="button" class="btn green-jungle" data-toggle="dropdown" data-hover="dropdown" data-delay="1000" data-close-others="true" aria-expanded="true">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_ACCOUNT\' | translate }} <i class="fa fa-angle-down"></i>\n </button>\n <ul class="dropdown-menu" role="menu">\n <li>\n <a href="/channels/fax/accounts/wizard">\n {{ \'APPLICATION_STANDARD\' | translate }}\n </a>\n </li>\n <li>\n <a href="#" data-ng-click="createItem()">\n {{ \'APPLICATION_QUICK\' | translate }}\n </a>\n </li>\n </ul>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'), +a.put("app/channels/fax/account/view/action/list/list.html",'<div class="row" data-ng-init="initActons()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_ACTIONS\' | translate}}</span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="/channels/fax/accounts/view/{{account.id}}/actions/wizard" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_ACTION\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/fax/account/view/action/view/view.html",'\n<div class="row" data-ng-init="initAction()">\n <div class="col-md-12">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-directions font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACTION\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <form name="forms.settings" data-ng-submit="forms.settings.$valid && updateItem()" novalidate>\n <!-- START APP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app.$touched || forms.settings.$submitted) && forms.settings.app.$invalid}">\n <label class="control-label">{{ \'APPLICATION_APPLICATION\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.app" name="app" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_APPLICATION\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="app.value as app in apps | filter: $select.search">\n <div ng-bind-html="app.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.app.$touched || forms.settings.$submitted) && forms.settings.app.$invalid && forms.settings.app.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END APP -->\n\n <div class="app-settings" ng-slide-down="application.app === \'queue\'" lazy-render duration="1" data-ng-init="getQueues()">\n <!-- START QUEUE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.queue.$touched || forms.settings.$submitted) && forms.settings.queue.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.FaxQueueId" name="queue" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="queue.id as queue in queues | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="queues.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_QUEUES_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/channels/fax/queues/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.settings.queue.$touched || forms.settings.$submitted) && forms.settings.queue.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n <span data-ng-show="(forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'agent\'" lazy-render duration="1" data-ng-init="getAgents()">\n <!-- START AGENT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.agent.$touched || forms.settings.$submitted) && forms.settings.agent.$invalid}">\n <label class="control-label">{{\'APPLICATION_AGENT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.UserId" name="agent" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.fullname}}</ui-select-match>\n <ui-select-choices repeat="agent.id as agent in agents | filter: $select.search">\n <div ng-bind-html="agent.fullname | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="agents.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_AGENTS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/staff/agents/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.settings.agent.$touched || forms.settings.$submitted) && forms.settings.agent.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END AGENT -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n <span data-ng-show="(forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'sendMail\'" lazy-render duration="1" data-ng-init="getMailAccounts();getTemplates()">\n <!-- START SENDMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="email" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2" min="1" required/>\n <span data-ng-show="(forms.settings.from.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.mail.$touched || forms.settings.$submitted) && forms.settings.account.$invalid}">\n <label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in mailAccounts | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.account.$touched || forms.settings.$submitted) && forms.settings.account.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.template.$touched || forms.settings.$submitted) && forms.settings.template.$invalid}">\n <label class="control-label">{{\'APPLICATION_TEMPLATE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data9" name="template" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n <div ng-bind-html="template.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.template.$touched || forms.settings.$submitted) && forms.settings.template.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.attachment.$touched || forms.settings.$submitted) && forms.settings.attachment.$invalid}">\n <label class="control-label">{{\'APPLICATION_ATTACHMENT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data6" name="attachment" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="attachment in [\'yes\',\'no\'] | filter: $select.search">\n {{attachment}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.attachment.$touched || forms.settings.$submitted) && forms.settings.attachment.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SENDMAIL -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1" data-ng-init="getSmsAccounts()">\n <!-- START SENDSms -->\n <div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1">\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.to.$touched || forms.settings.$submitted) && forms.settings.to.$invalid}">\n <label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" ng-pattern="/^[\\+]?[0-9]+$/" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2" required/>\n <span data-ng-show="(forms.settings.to.$touched || forms.settings.$submitted) && forms.settings.to.$invalid && forms.settings.to.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.account.$touched || forms.settings.$submitted) && forms.settings.account.$invalid}">\n <label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in smsAccounts | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.account.$touched || forms.settings.$submitted) && forms.settings.account.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.text.$touched || forms.text.$submitted) && forms.settings.text.$invalid}">\n <label class="control-label">{{\'APPLICATION_TEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <textarea id="text" class="form-control maxlength-handler" maxlength="160" name="text" data-ng-model="application.data6" required></textarea>\n <span data-ng-show="(forms.settings.text.$touched || forms.settings.$submitted) && forms.settings.text.$invalid && forms.settings.text.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <!-- END SENDSms -->\n </div>\n\n <!-- START INTERVAL_TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.intType.$touched || forms.settings.$submitted) && forms.settings.intType.$invalid}">\n <label class="control-label">{{ \'APPLICATION_INTERVAL_TYPE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.intType" theme="bootstrap" name="intType" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="intType.value as intType in $application.intTypes | filter: $select.search">\n {{ intType.name | translate }}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.intType.$touched || forms.settings.$submitted) && forms.settings.intType.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVAL_TYPE -->\n\n <div class="app-settings" ng-slide-down="application.intType === \'custom\'" lazy-render duration="1">\n <!-- START TIME -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n <div class="input-group input-large">\n <fieldset class="pull-left" ng-disabled="application.alwaysTime">\n <uib-timepicker name="t_from" data-ng-model="application.t_from" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker>\n </fieldset>\n <div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n <fieldset ng-disabled="application.alwaysTime"><uib-timepicker name="t_to" data-ng-model="application.t_to" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker></fieldset>\n <!-- <label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="application.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label> -->\n </div>\n </div>\n <!-- END TIME -->\n\n <!-- START ALWAYS -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ALWAYS\' | translate }}</label>\n <div class="input-group input-large">\n <label class="control-label pointer-cursor">\n <input\n bs-switch\n data-ng-model="application.alwaysTime"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n <!-- <input type="checkbox" data-ng-model="application.alwaysTime"> -->\n </label>\n </div>\n </div>\n <!-- END ALWAYS -->\n\n <!-- START WEEKDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.wd_from" theme="bootstrap" name="wd_from">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{ weekDay.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.wd_to" theme="bootstrap" name="wd_to">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{ weekDay.name | translate }}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END WEEKDAY -->\n\n <!-- START MONTHDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.md_from" theme="bootstrap" name="md_from">\n <ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_to && application.md_to!==\'always\' && monthDay>application.md_to && monthDay!==\'always\'">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.md_to" theme="bootstrap" name="md_to">\n <ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_from && application.md_from!==\'always\' && monthDay<application.md_from && monthDay!==\'always\'">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTHDAY -->\n\n <!-- START MONTH -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.m_from" theme="bootstrap" name="m_from">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{ month.name | translate }}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.m_to" theme="bootstrap" name="m_to">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{ month.name | translate }}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTH -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.intType === \'list\'" lazy-render duration="1" data-ng-init="getIntervals()">\n\n <!-- START INTERVALS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.IntervalId.$touched || forms.settings.$submitted) && forms.settings.IntervalId.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERVALS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.IntervalId" theme="bootstrap" name="IntervalId" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="interval.id as interval in intervals | filter: $select.search">\n {{ interval.name}}\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="intervals.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_INTERVALS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/intervals/list">{{\'APPLICATION_INTERVALS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.settings.IntervalId.$touched || forms.settings.$submitted) && forms.settings.IntervalId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVALS -->\n\n </div>\n <button class="btn green-haze" type="submit">{{\'APPLICATION_UPDATE\' | translate}}</button>\n </form>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/fax/account/view/action/wizard/wizard.html",'\n<div class="row" data-ng-init="initWizard()">\n <div class="col-md-12">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-directions font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACTION\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_APPLICATION\' | translate}}" canexit="formValidation(forms.action.$valid)">\n <form name="forms.action" novalidate>\n <!-- START APP -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.action.$submitted && forms.action.app.$invalid}">\n <label class="control-label">{{ \'APPLICATION_APPLICATION\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.app" name="app" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_APPLICATION\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="app.value as app in apps | filter: $select.search">\n <div ng-bind-html="app.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.action.$submitted && forms.action.app.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END APP -->\n\n <div class="app-settings" ng-slide-down="application.app === \'agent\'" lazy-render duration="1" data-ng-init="getAgents()">\n <!-- START AGENT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.agent.$touched || forms.action.$submitted) && forms.action.agent.$invalid}">\n <label class="control-label">{{\'APPLICATION_AGENT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.UserId" name="agent" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.fullname}}</ui-select-match>\n <ui-select-choices repeat="agent.id as agent in agents | filter: $select.search">\n <div ng-bind-html="agent.fullname | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="agents.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_AGENTS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/staff/agents/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.action.agent.$touched || forms.action.$submitted) && forms.action.agent.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END AGENT -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n <span data-ng-show="(forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid && forms.action.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'queue\'" lazy-render duration="1" data-ng-init="getQueues()">\n <!-- START QUEUE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.queue.$touched || forms.action.$submitted) && forms.action.queue.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.FaxQueueId" name="queue" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="queue.id as queue in queues | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="queues.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_QUEUES_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/channels/fax/queues/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.action.queue.$touched || forms.action.$submitted) && forms.action.queue.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n <span data-ng-show="(forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid && forms.action.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'sendMail\'" lazy-render duration="1" data-ng-init="getMailAccounts();getTemplates()">\n <!-- START SENDMAIL -->\n <div class="app-settings" ng-slide-down="application.app === \'sendMail\'" lazy-render duration="1">\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="email" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2" min="1" required/>\n <span data-ng-show="(forms.action.from.$touched || forms.action.$submitted) && forms.action.timeout.$invalid && forms.action.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.mail.$touched || forms.action.$submitted) && forms.action.account.$invalid}">\n <label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in mailAccounts | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.template.$touched || forms.action.$submitted) && forms.action.template.$invalid}">\n <label class="control-label">{{\'APPLICATION_TEMPLATE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data9" name="template" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n <div ng-bind-html="template.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.template.$touched || forms.action.$submitted) && forms.action.template.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.attachment.$touched || forms.settings.$submitted) && forms.settings.attachment.$invalid}">\n <label class="control-label">{{\'APPLICATION_ATTACHMENT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data6" name="attachment" theme="bootstrap" data-ng-init="application.data6 = \'no\'" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="attachment in [\'yes\',\'no\'] | filter: $select.search">\n {{attachment}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.attachment.$touched || forms.settings.$submitted) && forms.settings.attachment.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SENDMAIL -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1" data-ng-init="getSmsAccounts()">\n <!-- START SENDSms -->\n <div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1">\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.to.$touched || forms.action.$submitted) && forms.action.to.$invalid}">\n <label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" ng-pattern="/^[\\+]?[0-9]+$/" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2" required/>\n <span data-ng-show="(forms.action.to.$touched || forms.action.$submitted) && forms.action.to.$invalid && forms.action.to.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$invalid}">\n <label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in smsAccounts | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.text.$touched || forms.action.$submitted) && forms.action.text.$invalid}">\n <label class="control-label">{{\'APPLICATION_TEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <textarea id="text" class="form-control maxlength-handler" maxlength="160" name="text" data-ng-model="application.data6" required></textarea>\n <span data-ng-show="(forms.action.text.$touched || forms.action.$submitted) && forms.action.text.$invalid && forms.action.text.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <!-- END SENDSms -->\n </div>\n\n <!-- START INTERVAL_TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.intType.$touched || forms.action.$submitted) && forms.action.intType.$invalid}">\n <label class="control-label">{{ \'APPLICATION_INTERVAL_TYPE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.intType" theme="bootstrap" name="intType" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="intType.value as intType in $application.intTypes | filter: $select.search">\n {{ intType.name | translate }}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.intType.$touched || forms.action.$submitted) && forms.action.intType.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVAL_TYPE -->\n\n <div class="app-settings" ng-slide-down="application.intType === \'custom\'" lazy-render duration="1">\n <!-- START TIME -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n <div class="input-group input-large">\n <fieldset class="pull-left" ng-disabled="application.alwaysTime">\n <uib-timepicker name="t_from" data-ng-model="application.t_from" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker>\n </fieldset>\n <div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n <fieldset ng-disabled="application.alwaysTime"><uib-timepicker name="t_to" data-ng-model="application.t_to" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker></fieldset>\n <!-- <label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="application.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label> -->\n </div>\n </div>\n <!-- END TIME -->\n\n <!-- START ALWAYS -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ALWAYS\' | translate }}</label>\n <div class="input-group input-large">\n <label class="control-label pointer-cursor">\n <input\n bs-switch\n data-ng-model="application.alwaysTime"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n <!-- <input type="checkbox" data-ng-model="application.alwaysTime"> -->\n </label>\n </div>\n </div>\n <!-- END ALWAYS -->\n\n <!-- START WEEKDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.wd_from" theme="bootstrap" name="wd_from">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{ weekDay.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.wd_to" theme="bootstrap" name="wd_to">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{ weekDay.name | translate }}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END WEEKDAY -->\n\n <!-- START MONTHDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.md_from" theme="bootstrap" name="md_from">\n <ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_to && application.md_to!==\'always\' && monthDay>application.md_to && monthDay!==\'always\'">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.md_to" theme="bootstrap" name="md_to">\n <ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_from && application.md_from!==\'always\' && monthDay<application.md_from && monthDay!==\'always\'">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTHDAY -->\n\n <!-- START MONTH -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.m_from" theme="bootstrap" name="m_from">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{ month.name | translate }}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.m_to" theme="bootstrap" name="m_to">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{ month.name | translate }}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTH -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.intType === \'list\'" lazy-render duration="1" data-ng-init="getIntervals()">\n\n <!-- START INTERVALS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.IntervalId.$touched || forms.action.$submitted) && forms.action.IntervalId.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERVALS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.IntervalId" theme="bootstrap" name="IntervalId" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="interval.id as interval in intervals | filter: $select.search">\n {{ interval.name}}\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="intervals.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_INTERVALS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/intervals/list">{{\'APPLICATION_INTERVALS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.action.IntervalId.$touched || forms.action.$submitted) && forms.action.IntervalId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVALS -->\n\n </div>\n\n <input class="btn green-haze" type="submit" data-ng-click="next()" value="{{\'APPLICATION_CONTINUE\' | translate}}"/>\n </form>\n </wz-step>\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n <input class="btn green-haze" type="submit" data-ng-click="next()" value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'), +a.put("app/channels/fax/account/view/disposition/modal/add.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_DISPOSITIONS\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.form.$touched || form.$submitted) && form.form.$invalid}">\n <div class="">\n <!-- <input type="text" name="form" placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}" class="form-control" data-ng-model="name" data-ng-pattern="/^[a-zA-Z0-9]*$/" required/> -->\n <input type="text" name="form" placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}" class="form-control" data-ng-model="name" required/>\n <span data-ng-show="form.form.$touched && form.form.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <!-- <span data-ng-show="form.form.$touched && form.form.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_PATTERN\' | translate}}.\n </span> -->\n </div>\n <!-- <div class="help-block">\n {{\'MESSAGE_ALLOWED_NUMBERS_AND_LETTERS\' | translate}}\n </div> -->\n </div>\n <!-- END NAME -->\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" data-ng-click="ok()" data-ng-show="form.$valid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/fax/account/view/disposition/view/view.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_DISPOSITIONS\' | translate}}</span>\n </div>\n <div class="actions actions-md">\n <a href="#" class="btn btn-icon-only green" data-ng-click="addDisposition();">\n <i class="fa fa-plus"></i>\n </a>\n </div>\n </div>\n <div class="portlet-body" data-ng-init="initView()">\n <div class="tab-content">\n <div class="row" data-ng-hide="dispositions.length">\n <div class="col-md-12">\n <div class="note note-info">\n <h4 class="block">Info! {{\'MESSAGE_NO_DISPOSITIONS_AVAILABLE\' | translate}}</h4>\n </div>\n </div>\n </div>\n\n <!-- GENERAL TAB -->\n <div class="row" data-ng-repeat="disposition in dispositions">\n <div class="col-md-12 form-group">\n <div class="input-group">\n <div>\n <input class="form-control" type="text" placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}" data-ng-model="disposition.name">\n </div>\n <span class="input-group-btn">\n <button class="btn btn-success" type="button" data-ng-click="updateDisposition(disposition.id, disposition.name);"><i class="fa fa-cloud-upload fa-fw"></i> {{\'APPLICATION_UPDATE\' | translate}}</button>\n <button class="btn btn-danger" type="button" data-ng-click="deleteDisposition(disposition.id);"><i class="fa fa-times fa-fw"></i> {{\'APPLICATION_DELETE\' | translate}}</button>\n </span>\n </div>\n </div>\n </div>\n <!-- END GENERAL TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/fax/account/view/hooks/view/view.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_HOOKS\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_ACCEPT\' | translate}}</a>\n </li>\n <li >\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_REJECT\' | translate}}</a>\n </li>\n <li >\n <a href="#" data-target="#tab_1_3" data-toggle="tab">{{\'APPLICATION_CLOSE\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- ACCEPT TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.accept" data-ng-submit="forms.accept.$valid && updateItemFaxAccount()" novalidate>\n <div class="row">\n <div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.accept.method.$touched || forms.accept.$submitted) && forms.accept.method.$invalid}">\n <label class="control-label">{{\'APPLICATION_METHOD\' | translate}}</label>\n <ui-select data-ng-model="account.acceptMethod" name="method" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected.name | uppercase}}</ui-select-match>\n <ui-select-choices repeat="type.value as type in types | filter: $select.search">\n <div ng-bind-html="type.name | highlight: $select.search | uppercase" ></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.accept.method.$touched || forms.accept.$submitted) && forms.accept.method.$invalid && forms.accept.method.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.accept.url.$touched || forms.accept.$submitted) && forms.accept.url.$invalid}">\n <label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n <input type="url" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="account.acceptUrl" ng-required="account.acceptMethod"/>\n <span data-ng-show="(forms.accept.url.$touched || forms.accept.$submitted) && forms.accept.url.$invalid && forms.accept.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <!-- START ACTIONS-->\n <div class="row" ng-repeat = "action in account.actions">\n <div ng-switch="action.action">\n <div ng-switch-when="pause">\n <div class="form-group col-md-4">\n <label class="control-label">{{\'APPLICATION_PAUSE\' | translate}}</label></br>\n <input\n bs-switch\n data-ng-change="resetActionData(action)"\n data-ng-model="action.enabled"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </div>\n <div ng-if="action.enabled" class="form-group col-md-8">\n <label class="control-label">{{\'APPLICATION_TYPE\' | translate}}</label>\n <ui-select name="action" data-ng-model="action.type" theme="bootstrap" >\n <ui-select-match placeholder="{{\'APPLICATION_TYPE\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat=" pause.name as pause in pauses | filter: $select.search">\n <div ng-bind-html="pause.name | highlight: $select.search | uppercase" ></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n </div>\n </div>\n <!-- END ACTION -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ACCEPT TAB -->\n <!-- START REJECT TAB -->\n <div class="tab-pane" id="tab_1_2">\n <form name="forms.reject" data-ng-submit="forms.reject.$valid && updateItemFaxAccount()" novalidate>\n <div class="row">\n <div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.reject.method.$touched || forms.reject.$submitted) && forms.reject.method.$invalid}">\n <label class="control-label">{{\'APPLICATION_METHOD\' | translate}}</label>\n <ui-select data-ng-model="account.rejectMethod" name="method" theme="bootstrap" >\n <ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected.name | uppercase}}</ui-select-match>\n <ui-select-choices repeat="type.value as type in types | filter: $select.search">\n <div ng-bind-html="type.name | highlight: $select.search | uppercase" ></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.reject.method.$touched || forms.reject.$submitted) && forms.reject.method.$invalid && forms.reject.method.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.reject.url.$touched || forms.reject.$submitted) && forms.reject.url.$invalid}">\n <label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n <input type="url" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="account.rejectUrl" ng-required="account.rejectMethod"/>\n <span data-ng-show="(forms.reject.url.$touched || forms.reject.$submitted) && forms.reject.url.$invalid && forms.reject.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ACCEPT TAB -->\n <!-- START CLOSE TAB -->\n <div class="tab-pane" id="tab_1_3">\n <form name="forms.close" data-ng-submit="forms.close.$valid && updateItemFaxAccount()" novalidate>\n <div class="row">\n <div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.close.method.$touched || forms.close.$submitted) && forms.close.method.$invalid}">\n <label class="control-label">{{\'APPLICATION_METHOD\' | translate}}</label>\n <ui-select data-ng-model="account.closeMethod" name="method" theme="bootstrap" >\n <ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected.name | uppercase}}</ui-select-match>\n <ui-select-choices repeat="type.value as type in types | filter: $select.search">\n <div ng-bind-html="type.name | highlight: $select.search | uppercase" ></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.close.method.$touched || forms.close.$submitted) && forms.close.method.$invalid && forms.close.method.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.close.url.$touched || forms.close.$submitted) && forms.close.url.$invalid}">\n <label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n <input type="url" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="account.closeUrl" ng-required="account.closeMethod"/>\n <span data-ng-show="(forms.close.url.$touched || forms.close.$submitted) && forms.close.url.$invalid && forms.close.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END CLOSE TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/fax/account/view/setting/view/view.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_ADVANCED\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body" data-ng-init="initView()">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateItemFaxAccount()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.$submitted || forms.general.name.$touched) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.name" required/>\n <span data-ng-show="forms.general.name.$error.required && (forms.general.$submitted || forms.general.name.$touched)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START HEADERINFO -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.$submitted || forms.general.headerinfo.$touched) && forms.general.headerinfo.$invalid}">\n <label class="control-label">{{\'APPLICATION_HEADERINFO\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="headerinfo" placeholder="{{\'APPLICATION_HEADERINFO\' | translate}}" class="form-control" data-ng-model="account.headerinfo" required/>\n <span data-ng-show="forms.general.headerinfo.$error.required && (forms.general.$submitted || forms.general.headerinfo.$touched)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span class="help-block">\n {{\'DESCRIPTION_HEADERINFO\' | translate}}.\n </span>\n </div>\n <!-- END HEADERINFO -->\n\n <!-- START TRUNKS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.$submitted || forms.general.trunk.$touched) && forms.general.trunk.$invalid}">\n <label class="control-label">{{\'APPLICATION_TRUNK\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="account.TrunkName" name="trunk" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_TRUNK\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="trunk.name as trunk in trunks | filter: $select.search">\n <div data-ng-bind="trunk.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="trunks.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_TRUNKS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/trunks/list">{{\'APPLICATION_INTERVALS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="forms.general.trunk.$error.required && (forms.general.$submitted || forms.general.trunk.$touched)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- START TRUNKS -->\n\n <!-- START LOCALSTATIONID -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.$submitted || forms.general.localstationid.$touched) && forms.general.localstationid.$invalid}">\n <label class="control-label">{{\'APPLICATION_LOCALSTATIONID\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="localstationid" placeholder="{{\'APPLICATION_LOCALSTATIONID\' | translate}}" class="form-control" data-ng-model="account.localstationid" required/>\n <span data-ng-show="forms.general.localstationid.$error.required && (forms.general.$submitted || forms.general.localstationid.$touched)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span class="help-block">\n {{\'DESCRIPTION_LOCALSTATIONID\' | translate}}.\n </span>\n </div>\n <!-- END LOCALSTATIONID -->\n\n <!-- START LIST -->\n <div class="form-group" data-ng-if="license.cm">\n <label class="control-label">{{\'APPLICATION_LIST\' | translate}}</label>\n <div class="input-group">\n\n <ui-select data-ng-model="account.ListId" name="list" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_LIST\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="list.id as list in lists | filter: $select.search">\n <div ng-bind-html="list.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n\n <span class="input-group-btn">\n <button type="button" data-ng-click="account.ListId = null" class="btn btn-default">\n <span class="glyphicon glyphicon-trash"></span>\n </button>\n </span>\n\n </div>\n </div>\n <!-- END LIST -->\n\n <!-- START FIDELITY -->\n <!-- <div class="form-group">\n <label class="control-label">{{\'APPLICATION_FIDELITY\' | translate}}</label></br>\n <input\n bs-switch\n data-ng-model="account.fidelity"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </div> -->\n <!-- END FIDELITY -->\n\n <!-- START TIMEOUT -->\n <!-- <div class="form-group" data-ng-if="account.fidelity" data-ng-class="{\'has-error\': (forms.general.$submitted || forms.general.timeout.$touched) && forms.general.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="0" name="timeout" placeholder="{{\'APPLICATION_PORT\' | translate}}" class="form-control" data-ng-model="account.timeout" required/>\n <span data-ng-show="(forms.general.timeout.$touched || forms.general.$submitted) && forms.general.timeout.$invalid && forms.general.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.general.timeout.$touched || forms.general.$submitted) && forms.general.timeout.$invalid && forms.general.timeout.$error.number" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n </span>\n </div> -->\n <!-- END TIMEOUT -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="account.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n\n <!-- ADVANCED TAB -->\n <div class="tab-pane" id="tab_1_2">\n <form name="forms.advanced" data-ng-submit="forms.advanced.$valid && updateItemFaxAccount()" novalidate>\n <div class="row">\n <div class="col-md-6">\n <!-- START ECM -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_ECM\' | translate}}<span class="required" aria-required="true">*</span></label><br>\n <input\n bs-switch\n ng-model="account.ecm"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}"\n ng-true-value="\'yes\'"\n ng-false-value="\'no\'">\n <span class="help-block">\n {{\'DESCRIPTION_ECM\' | translate}}.\n </span>\n </div>\n <!-- END ECM -->\n\n <!-- START MINRATE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.$submitted || forms.advanced.minrate.$touched) && forms.advanced.minrate.$invalid}">\n <label class="control-label">{{\'APPLICATION_MINRATE\' | translate}} <span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="account.minrate" name="minrate" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_MINRATE\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="minrate in rate | filter: $select.search">\n <div data-ng-bind="minrate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{\'DESCRIPTION_MINRATE\' | translate}}.\n </span>\n <span data-ng-show="forms.advanced.minrate.$error.required && (forms.advanced.$submitted || forms.advanced.minrate.$touched)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- START MINRATE -->\n\n <!-- START MAXRATE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.$submitted || forms.advanced.maxrate.$touched) && forms.advanced.maxrate.$invalid}">\n <label class="control-label">{{\'APPLICATION_MAXRATE\' | translate}} <span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="account.maxrate" name="maxrate" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_MAXRATE\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="maxrate in rate | filter: $select.search">\n <div data-ng-bind="maxrate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{\'DESCRIPTION_MAXRATE\' | translate}}.\n </span>\n <span data-ng-show="forms.advanced.maxrate.$error.required && (forms.advanced.$submitted || forms.advanced.maxrate.$touched)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- START MAXRATE -->\n\n <!-- START MODEM -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.$submitted || forms.advanced.modem.$touched) && forms.advanced.modem.$invalid}">\n <label class="control-label">{{\'APPLICATION_MODEM\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="modem" placeholder="{{\'APPLICATION_MODEM\' | translate}}" class="form-control" data-ng-model="account.modem" required/>\n <span class="help-block">\n {{\'DESCRIPTION_MODEM\' | translate}}.\n </span>\n <span data-ng-show="forms.advanced.modem.$error.required && (forms.advanced.$submitted || forms.advanced.modem.$touched)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MODEM -->\n </div>\n <div class="col-md-6">\n <!-- START GATEWAY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.$submitted || forms.advanced.gateway.$touched) && forms.advanced.gateway.$invalid}">\n <label class="control-label">{{\'APPLICATION_GATEWAY\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="gateway" placeholder="{{\'APPLICATION_GATEWAY\' | translate}}" class="form-control" data-ng-model="account.gateway" required data-ng-pattern="settings.patternGateway"/>\n <span class="help-block">\n {{\'DESCRIPTION_GATEWAY\' | translate}}.\n </span>\n <span data-ng-show="(forms.advanced.gateway.$touched || forms.advanced.$submitted) && forms.advanced.gateway.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.advanced.gateway.$touched || forms.advanced.$submitted) && forms.advanced.gateway.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_GATEWAY\' | translate}}.\n </span>\n </div>\n <!-- END GATEWAY -->\n\n <!-- START FAXDETECT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.$submitted || forms.advanced.faxdetect.$touched) && forms.advanced.faxdetect.$invalid}">\n <label class="control-label">{{\'APPLICATION_FAXDETECT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="faxdetect" placeholder="{{\'APPLICATION_FAXDETECT\' | translate}}" class="form-control" data-ng-model="account.faxdetect" required data-ng-pattern="settings.patternFaxdetect"/>\n <span class="help-block">\n {{\'DESCRIPTION_FAXDETECT\' | translate}}.\n </span>\n <span data-ng-show="(forms.advanced.faxdetect.$touched || forms.advanced.$submitted) && forms.advanced.faxdetect.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.advanced.faxdetect.$touched || forms.advanced.$submitted) && forms.advanced.faxdetect.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_FAXDETECT\' | translate}}.\n </span>\n </div>\n <!-- END FAXDETECT -->\n\n <!-- START T38TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.$submitted || forms.advanced.t38timeout.$touched) && forms.advanced.t38timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_T38TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="number" name="t38timeout" placeholder="{{\'APPLICATION_T38TIMEOUT\' | translate}}" class="form-control" data-ng-model="account.t38timeout" required min="1000"/>\n <span class="help-block">\n {{\'DESCRIPTION_T38TIMEOUT\' | translate}}.\n </span>\n <span data-ng-show="(forms.advanced.t38timeout.$touched || forms.advanced.$submitted) && forms.advanced.t38timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.advanced.t38timeout.$touched || forms.advanced.$submitted) && forms.advanced.t38timeout.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_T38TIMEOUT\' | translate}}.\n </span>\n </div>\n <!-- END T38TIMEOUT -->\n\n <!-- START TECH -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.$submitted || forms.advanced.tech.$touched) && forms.advanced.tech.$invalid}">\n <label class="control-label">{{\'APPLICATION_TECHNOLOGY\' | translate}} <span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="account.tech" name="tech" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_TECHNOLOGY\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="tech in techs | filter: $select.search">\n <div data-ng-bind="tech | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.advanced.tech.$touched || forms.advanced.$submitted) && forms.advanced.tech.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- START TECH -->\n </div>\n </div>\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ADVANCED TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'), +a.put("app/channels/fax/account/view/view.html",'<!-- BEGIN PAGE HEADER-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-fax"></i>\n <a href="#">{{ \'APPLICATION_FAX\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-notebook"></i>\n <a href="/channels/fax/accounts/list">{{ \'APPLICATION_ACCOUNTS\' | translate }}</a>\n <i class="fa fa-angle-right" data-ng-show="account"></i>\n </li>\n <li data-ng-show="account">\n <a href="#">{{ account.name || account.description }}</a>\n </li>\n </ul>\n </div>\n\n<!-- END PAGE HEADER-->\n\n<!-- BEGIN PAGE CONTENT-->\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/account.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{ account.name || account.description }}\n </div>\n <div class="profile-usertitle-job">\n {{ account.phone }}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.channels.fax.accounts.view.settings\')}">\n <a href="/channels/fax/accounts/view/{{account.id}}/settings">\n <i class="icon-settings"></i>\n {{\'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n <li ng-class="{active: $state.is(\'main.channels.fax.accounts.view.hooks\')}">\n <a href="/channels/fax/accounts/view/{{account.id}}/hooks">\n <i class="fa fa-code"></i>\n {{\'APPLICATION_HOOKS\' | translate}} </a>\n </li>\n <li ng-class="{active: $state.is(\'main.channels.fax.accounts.view.dispositions\')}">\n <a href="/channels/fax/accounts/view/{{account.id}}/dispositions">\n <i class="icon-target"></i>\n {{\'APPLICATION_DISPOSITIONS\' | translate}} </a>\n </li>\n <li ng-class="{active: $state.includes(\'main.channels.fax.accounts.view.actions\')}">\n <a href="/channels/fax/accounts/view/{{account.id}}/actions/list">\n <i class="icon-directions"></i>\n {{\'APPLICATION_ACTIONS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/fax/account/wizard/wizard.html",'<!-- BEGIN PAGE HEADER-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-fax"></i>\n <a href="#">{{ \'APPLICATION_FAX\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-notebook"></i>\n <a href="/channels/fax/accounts/list">{{ \'APPLICATION_ACCOUNTS\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n<!-- END PAGE HEADER-->\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initWizard()">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACCOUNT\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_GENERAL\' | translate}}" canexit="exitValidation(forms.formGeneral.$valid)">\n <form name="forms.formGeneral" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formGeneral.$submitted || forms.formGeneral.name.$touched) && forms.formGeneral.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="forms.formGeneral.name.$error.required && (forms.formGeneral.$submitted || forms.formGeneral.name.$touched)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START HEADERINFO -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formGeneral.$submitted || forms.formGeneral.headerinfo.$touched) && forms.formGeneral.headerinfo.$invalid}">\n <label class="control-label">{{\'APPLICATION_HEADERINFO\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="headerinfo" placeholder="{{\'APPLICATION_HEADERINFO\' | translate}}" class="form-control" data-ng-model="item.headerinfo" required/>\n <span data-ng-show="forms.formGeneral.headerinfo.$error.required && (forms.formGeneral.$submitted || forms.formGeneral.headerinfo.$touched)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span class="help-block">\n {{\'DESCRIPTION_HEADERINFO\' | translate}}.\n </span>\n </div>\n <!-- END HEADERINFO -->\n\n <!-- START TRUNKS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formGeneral.$submitted || forms.formGeneral.trunk.$touched) && forms.formGeneral.trunk.$invalid}">\n <label class="control-label">{{\'APPLICATION_TRUNK\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.TrunkName" name="trunk" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_TRUNK\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="trunk.name as trunk in trunks | filter: $select.search">\n <div data-ng-bind="trunk.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="trunks.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_TRUNKS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/trunks/list">{{\'APPLICATION_INTERVALS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="forms.formGeneral.trunk.$error.required && (forms.formGeneral.$submitted || forms.formGeneral.trunk.$touched)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- START TRUNKS -->\n\n <!-- START LOCALSTATIONID -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formGeneral.$submitted || forms.formGeneral.localstationid.$touched) && forms.formGeneral.localstationid.$invalid}">\n <label class="control-label">{{\'APPLICATION_LOCALSTATIONID\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="localstationid" placeholder="{{\'APPLICATION_LOCALSTATIONID\' | translate}}" class="form-control" data-ng-model="item.localstationid" required/>\n <span data-ng-show="forms.formGeneral.localstationid.$error.required && (forms.formGeneral.$submitted || forms.formGeneral.localstationid.$touched)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span class="help-block">\n {{\'DESCRIPTION_LOCALSTATIONID\' | translate}}.\n </span>\n </div>\n <!-- END LOCALSTATIONID -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" data-ng-click="next()"/>\n\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_ADVANCED\' | translate}}" canexit="exitValidation(forms.formAdvanced.$valid)">\n <form name="forms.formAdvanced" novalidate>\n\n <!-- START ECM -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_ECM\' | translate}}<span class="required" aria-required="true">*</span></label><br>\n <input\n bs-switch\n ng-model="item.ecm"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}"\n ng-true-value="\'yes\'"\n ng-false-value="\'no\'">\n <span class="help-block">\n {{\'DESCRIPTION_ECM\' | translate}}.\n </span>\n </div>\n <!-- END ECM -->\n\n <!-- START MINRATE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAdvanced.$submitted || forms.formAdvanced.minrate.$touched) && forms.formAdvanced.minrate.$invalid}">\n <label class="control-label">{{\'APPLICATION_MINRATE\' | translate}} <span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.minrate" name="minrate" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_MINRATE\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="minrate in rate | filter: $select.search">\n <div data-ng-bind="minrate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{\'DESCRIPTION_MINRATE\' | translate}}.\n </span>\n <span data-ng-show="forms.formAdvanced.minrate.$error.required && (forms.formAdvanced.$submitted || forms.formAdvanced.minrate.$touched)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- START MINRATE -->\n\n <!-- START MAXRATE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAdvanced.$submitted || forms.formAdvanced.maxrate.$touched) && forms.formAdvanced.maxrate.$invalid}">\n <label class="control-label">{{\'APPLICATION_MAXRATE\' | translate}} <span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.maxrate" name="maxrate" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_MAXRATE\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="maxrate in rate | filter: $select.search">\n <div data-ng-bind="maxrate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{\'DESCRIPTION_MAXRATE\' | translate}}.\n </span>\n <span data-ng-show="forms.formAdvanced.maxrate.$error.required && (forms.formAdvanced.$submitted || forms.formAdvanced.maxrate.$touched)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- START MAXRATE -->\n\n <!-- START MODEM -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAdvanced.$submitted || forms.formAdvanced.modem.$touched) && forms.formAdvanced.modem.$invalid}">\n <label class="control-label">{{\'APPLICATION_MODEM\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="modem" placeholder="{{\'APPLICATION_MODEM\' | translate}}" class="form-control" data-ng-model="item.modem" required/>\n <span class="help-block">\n {{\'DESCRIPTION_MODEM\' | translate}}.\n </span>\n <span data-ng-show="forms.formAdvanced.modem.$error.required && (forms.formAdvanced.$submitted || forms.formAdvanced.modem.$touched)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MODEM -->\n\n <!-- START GATEWAY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAdvanced.$submitted || forms.formAdvanced.gateway.$touched) && forms.formAdvanced.gateway.$invalid}">\n <label class="control-label">{{\'APPLICATION_GATEWAY\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="gateway" placeholder="{{\'APPLICATION_GATEWAY\' | translate}}" class="form-control" data-ng-model="item.gateway" required data-ng-pattern="settings.patternGateway"/>\n <span class="help-block">\n {{\'DESCRIPTION_GATEWAY\' | translate}}.\n </span>\n <span data-ng-show="(forms.formAdvanced.gateway.$touched || forms.formAdvanced.$submitted) && forms.formAdvanced.gateway.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.formAdvanced.gateway.$touched || forms.formAdvanced.$submitted) && forms.formAdvanced.gateway.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_GATEWAY\' | translate}}.\n </span>\n </div>\n <!-- END GATEWAY -->\n\n <!-- START FAXDETECT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAdvanced.$submitted || forms.formAdvanced.faxdetect.$touched) && forms.formAdvanced.faxdetect.$invalid}">\n <label class="control-label">{{\'APPLICATION_FAXDETECT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="faxdetect" placeholder="{{\'APPLICATION_FAXDETECT\' | translate}}" class="form-control" data-ng-model="item.faxdetect" required data-ng-pattern="settings.patternFaxdetect"/>\n <span class="help-block">\n {{\'DESCRIPTION_FAXDETECT\' | translate}}.\n </span>\n <span data-ng-show="(forms.formAdvanced.faxdetect.$touched || forms.formAdvanced.$submitted) && forms.formAdvanced.faxdetect.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.formAdvanced.faxdetect.$touched || forms.formAdvanced.$submitted) && forms.formAdvanced.faxdetect.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_FAXDETECT\' | translate}}.\n </span>\n </div>\n <!-- END FAXDETECT -->\n\n <!-- START T38TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAdvanced.$submitted || forms.formAdvanced.t38timeout.$touched) && forms.formAdvanced.t38timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_T38TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="number" name="t38timeout" placeholder="{{\'APPLICATION_T38TIMEOUT\' | translate}}" class="form-control" data-ng-model="item.t38timeout" required min="1000"/>\n <span class="help-block">\n {{\'DESCRIPTION_T38TIMEOUT\' | translate}}.\n </span>\n <span data-ng-show="(forms.formAdvanced.t38timeout.$touched || forms.formAdvanced.$submitted) && forms.formAdvanced.t38timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.formAdvanced.t38timeout.$touched || forms.formAdvanced.$submitted) && forms.formAdvanced.t38timeout.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_T38TIMEOUT\' | translate}}.\n </span>\n </div>\n <!-- END T38TIMEOUT -->\n\n <!-- START TECH -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAdvanced.$submitted || forms.formAdvanced.tech.$touched) && forms.formAdvanced.tech.$invalid}">\n <label class="control-label">{{\'APPLICATION_TECHNOLOGY\' | translate}} <span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.tech" name="tech" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_TECHNOLOGY\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="tech in techs | filter: $select.search">\n <div data-ng-bind="tech | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.formAdvanced.tech.$touched || forms.formAdvanced.$submitted) && forms.formAdvanced.tech.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- START TECH -->\n\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" data-ng-click="next()"/>\n\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n\n </wizard>\n\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/fax/inbox/message/info.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_INFO\' | translate }}</h3>\n</div>\n<div class="modal-body" data-ng-init="initInfo()">\n <div class="form-group" ng-if="data">\n <json-formatter json="data" open="1"></json-formatter>\n </div>\n <div class="note note-warning" data-ng-hide="data">\n <h4 class="block"></h4>\n <p>\n {{ \'MESSAGE_NO_INFO_AVAILABLE\' | translate }}\n </p>\n </div>\n\n</div>\n<div class="modal-footer">\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'),a.put("app/channels/fax/inbox/message/message.directive.html",'<div class="message">\n <div class="row">\n <div class="col-md-6">\n <span class="bold">From: </span>\n [<a href="" data-ng-click="openContact(message.from)">{{message.from}}</a>]\n <br>\n <span class="bold">To: </span>\n [<a href="" data-ng-click="openContact(message.to)">{{message.to}}</a>]\n </div>\n <div class="col-md-6">\n <span class="pull-right">\n <a ng-click="info(message)"><i class="icon-info font-blue"></i></a>\n </span>\n <span class="pull-right" data-ng-show="message.User">{{\'APPLICATION_SENT_BY\' | translate}}: <strong>{{message.User.fullname}}</strong></span>\n </div>\n </div>\n <br>\n <span class="todo-tasklist-date">\n <span class="pull-right" data-ng-if="message.status!==\'RECEIVED\'" data-ng-switch="message.status" uib-tooltip="{{\'APPLICATION_PAGE_TRANSFERRED\' | translate}}: {{message.pagestransferred}} - {{\'APPLICATION_RETRY\' | translate}}: {{message.retry}}">\n <a ng-switch-when="SENDING" href="#" class="btn default btn-xs inactive-link blue-stripe"> {{message.status | uppercase}}\n <i class="fa fa-warning"></i>\n </a>\n <a ng-switch-when="FAILED" href="#" class="btn default btn-xs red-stripe" data-ng-click="retry(message.id)"> {{message.status | uppercase}}\n <i class="fa fa-times"></i>\n </a>\n <a ng-switch-when="SENT" href="#" class="btn default btn-xs inactive-link green-stripe"> {{message.status | uppercase}}\n <i class="fa fa-check"></i>\n </a>\n </span>\n <span class="pull-right" data-ng-if="message.status===\'RECEIVED\'" uib-tooltip="{{\'APPLICATION_PAGE_TRANSFERRED\' | translate}}: {{message.pagestransferred}}">\n <a href="#" class="btn default btn-xs inactive-link green-stripe"> {{message.status | uppercase}}\n <i class="fa fa-check"></i>\n </a>\n </span>\n <i class="icon-calendar" title="{{message.updatedAt | date:\'MMM d, y HH:mm:ss\'}}"></i> <span am-time-ago="message.updatedAt"></span>\n </span>\n <hr data-ng-if="message.FaxAttachments.length">\n <div data-ng-repeat="faxAttachment in message.FaxAttachments">\n <strong>{{faxAttachment.name}}</strong>\n <a target="_self" download="{{faxAttachment.name}}" href="api/fax/attachments/{{faxAttachment.id}}">\n <i class="icon-cloud-download"></i>\n </a>\n </div>\n</div>\n'),a.put("app/channels/fax/inbox/note/note.directive.html",'<div class="note">\n <div class="row">\n <div class="col-md-6">\n <a type="button" name="button" data-ng-if="::(Auth.getCurrentUser().id == message.UserId)" data-ng-click="deleteNote()">\n <i class="fa fa-trash-o" style="color: red;"></i>\n </a>\n\n <i class="icon-calendar" title="{{message.updatedAt | date:\'MMM d, y HH:mm:ss\'}}"></i> <span am-time-ago="message.updatedAt"></span>\n </div>\n <div class="col-md-6">\n <span class="pull-right" data-ng-show="message.User">{{\'APPLICATION_ADD_BY\' | translate}}: <strong>{{message.User.fullname}}</strong></span>\n </div>\n </div>\n <hr>\n <span class="body text-left" data-ng-bind-html="message.text" style="white-space: pre-wrap;"></span>\n</div>\n'),a.put("app/channels/fax/inbox/note/note.modal.html",'<div class="modal-header" data-ng-init="initModal()">\n <h3 class="modal-title">{{ \'APPLICATION_NOTES\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n <div class="form-group">\n <textarea data-ng-model="item.text" name="text" rows="10" style="resize: none; width: 100%;"></textarea>\n </div>\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" data-ng-click="ok()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/fax/inbox/room/room.directive.html",'<!-- BEGIN TODO CONTENT -->\n<div class="todo-content" data-ng-init="initForm();">\n <div class="portlet light">\n <div class="portlet-title">\n <div class="caption">\n <button data-ng-if="(!forms.compose.from.$invalid && !forms.compose.to.$invalid && uploader.queue.length) && faxRoom.status !== \'CLOSED\'" class="btn btn-sm btn-default green-meadow" data-ng-click="sendFax()">\n <i class="icon-paper-plane" style="color: white;"></i> {{\'APPLICATION_SEND\' | translate}}\n </button>\n <span data-ng-if="(!forms.compose.from.$invalid && !forms.compose.to.$invalid && uploader.queue.length) && faxRoom && faxRoom.status !== \'CLOSED\'"> | </span>\n <span data-ng-if="faxRoom" class="label label-default"> #{{faxRoom.id}} {{faxRoom.status}}</span>\n <span data-ng-if="faxRoom"> | </span>\n <span data-ng-if="faxRoom" class="caption-subject font-green-sharp bold">{{faxRoom.contact}}</span>\n </div>\n <div class="actions" data-ng-switch="faxRoom.status">\n <button class="btn btn-icon-only yellow" data-ng-if="faxRoom" data-ng-click="loadNote()" data-ng-hide="faxRoom.status == \'CLOSED\'" title="{{\'APPLICATION_NOTES\' | translate}}">\n <i class="fa fa-sticky-note"></i>\n </button>\n <span class="btn file-upload" data-ng-hide="faxRoom.status == \'CLOSED\'">\n <i class="fa fa-paperclip"></i> <input type="file" data-ng-if="uploader" data-ng-hide="faxRoom.status == \'CLOSED\'" nv-file-select uploader="uploader" multiple class="file-input" title="{{\'APPLICATION_ATTACHMENTS\' | translate}}">\n </span>\n <!-- UPDATE SECTION START -->\n <button data-ng-class="faxRoom.status == \'CLOSED\' ? \'grey-cascade\' : \'btn-success\'" class="btn btn-icon-only" data-ng-hide="faxRoom.status == \'CLOSED\' && faxRoom.disposition" data-ng-if="faxRoom" data-ng-click="closeRoom()" title="{{\'APPLICATION_STATUS\' | translate}}">\n <i data-ng-class="faxRoom.status == \'CLOSED\' ? \'icon-target\' : \'fa fa-upload\'"></i>\n </button>\n <!-- UPDATE SECTION END -->\n <button class="btn default btn-icon-only" data-ng-if="faxRoom && faxRoom.status !== \'CLOSED\'" data-ng-click="togglePanelLeft()" title="{{\'APPLICATION_RESIZE\' | translate}}">\n <i ng-class="panelRight == \'col-md-12\' ? \'icon-size-actual\' : \'icon-size-fullscreen\'"></i>\n </button>\n </div>\n </div>\n <div class="portlet-body">\n <div class="row">\n <div data-ng-show="panelLeft" data-ng-class="panelLeft">\n <div class="form">\n <!-- START TAGS -->\n <div class="form-group" data-ng-if="faxRoom.status !== \'CLOSED\'">\n <div class="row">\n <div class="col-md-1">\n <a href="#" class="btn btn-icon-only">\n <i class="fa fa-tags" style="color: gray;"></i>\n </a>\n </div>\n <div class="col-md-11">\n <ui-select multiple data-ng-model="form.tags" theme="bootstrap" on-select="onChanged($item, $model)" on-remove="onChanged($item, $model)" data-ng-disabled="faxRoom.status == \'CLOSED\'">\n <ui-select-match placeholder="Tags...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="tag in tags | filter:$select.search" class="">\n {{tag}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n </div>\n <!-- END TAGS -->\n </div>\n\n <hr data-ng-if="faxRoom && faxRoom.status !== \'CLOSED\'">\n\n <!-- END TAGS -->\n\n <div id="mail-box">\n <ul class="chats">\n <li\n data-ng-switch="faxMessage.status"\n data-ng-class="{\'in\': faxMessage.status == \'RECEIVED\', \'out\': faxMessage.status == \'SENT\' || faxMessage.status == \'SENDING\' || faxMessage.status == \'FAILED\' || faxMessage.status == \'NOTE\'}"\n data-ng-repeat="faxMessage in faxRoom.FaxMessages | orderBy:\'-createdAt\'">\n <div class="avatar" data-ng-class="faxMessage.UserId ? \'pretty-avatar\' : \'pretty-avatar-v\'">\n <ng-letter-avatar\n data-ng-if="faxMessage.UserId"\n height="40"\n width="40"\n fontsize="25"\n data="{{faxMessage.User.fullname}}"\n avatarcustombgcolor="#B0B0B0"\n avatarcustomborder="border:2px solid #3399CC"\n charCount="2"\n shape="round"></ng-letter-avatar>\n <ng-letter-avatar\n data-ng-if="!faxMessage.UserId"\n height="40"\n width="40"\n fontsize="25"\n data="{{faxMessage.from}}"\n avatarcustombgcolor="#B0B0B0"\n avatarcustomborder="border:2px solid #EA4C61"\n charCount="1"\n shape="round"></ng-letter-avatar>\n </div>\n <fax-note message="faxMessage" ng-switch-when="NOTE"></fax-note>\n <fax-message message="faxMessage" list-id="faxRoom.FaxAccount.ListId" ng-switch-default></fax-message>\n </li>\n </ul>\n </div>\n </div>\n <div data-ng-class="panelRight">\n <div class="note note-info" data-ng-if="faxRoom && faxRoom.status == \'CLOSED\'">\n <h4 class="block"><i class="icon-info"></i> {{\'MESSAGE_FAX_ROOM_CLOSED\' | translate}}!</h4>\n <p>\n <strong>{{\'MESSAGE_FAX_ROOM_CLOSED_DETAILS\' | translate}}.</strong>\n </p>\n <hr>\n <p>\n <i class="icon-target"></i> {{\'APPLICATION_DISPOSITION\' | translate}}: <strong>{{faxRoom.disposition}}</strong>\n </p>\n <p>\n <i class="icon-calendar"></i> {{\'APPLICATION_UPDATED_AT\' | translate}}: <strong>{{faxRoom.updatedAt | date:\'medium\'}}</strong> (<span am-time-ago="faxRoom.updatedAt"></span>)\n </p>\n </div>\n <form name="forms.compose" data-ng-submit="sendFax()" class="form-horizontal" novalidate>\n\n <!-- START HEAD -->\n <div class="form">\n\n <v-accordion class="vAccordion--default" ng-if="faxRoom.status !== \'CLOSED\'">\n <v-pane expanded="expanded">\n <v-pane-header>\n <i class="icon-people"></i> From: {{form.from}}, To: {{form.to[0].fax}}\n </v-pane-header>\n <v-pane-content>\n <!-- START FROM -->\n <div class="form-group" data-ng-if="faxRoom.status !== \'CLOSED\'" data-ng-class="{\'has-error\': forms.compose.from.$invalid}">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-1">\n <label class="control-label">From:</label>\n </div>\n <div class="col-md-11">\n <ui-select data-ng-model="form.from" data-ng-change="setList($select.selected.ListId)" theme="bootstrap" name="from" required>\n <ui-select-match placeholder="From...">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="faxAccount.localstationid as faxAccount in faxAccounts | filter: $select.search">\n <div data-ng-bind-html="faxAccount.name | highlight: $select.search"></div>\n <small data-ng-bind-html="faxAccount.localstationid | highlight: $select.search"></small>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.compose.from.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n </div>\n <!-- END FROM -->\n\n <!-- START TO -->\n <div class="form-group" data-ng-if="faxRoom.status !== \'CLOSED\'" data-ng-class="{\'has-error\': forms.compose.to.$invalid}">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-1">\n <label class="control-label">To:</label>\n </div>\n <div class="col-md-11">\n <tags-input name="to" ng-model="form.to" type="text" display-property="fax" max-tags="1" min-tags="1">\n <auto-complete source="getContacts($query)"></auto-complete>\n </tags-input>\n <span data-ng-show="forms.compose.to.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_TO_LIMIT\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n </div>\n <!-- END TO -->\n\n </v-pane-content>\n </v-pane>\n </v-accordion>\n\n <!-- START ATTACH -->\n <div class="form-group" data-ng-if="uploader && (faxRoom.status !== \'CLOSED\')">\n <div class="col-md-12">\n <hr ng-if="uploader.queue.length">\n <table class="table">\n <tbody>\n <tr ng-repeat="item in uploader.queue">\n <td style="border-top:none"><strong>{{ item.file.name | truncate: 5: \'...\': true}}</strong></td>\n <td style="border-top:none" ng-show="uploader.isHTML5" nowrap>{{ item.file.size/1024/1024|number:2 }} MB</td>\n <td style="border-top:none" ng-show="uploader.isHTML5">\n <div class="progress" style="margin-bottom: 0;">\n <div class="progress-bar" role="progressbar" ng-style="{ \'width\': item.progress + \'%\' }"></div>\n </div>\n </td>\n <td style="border-top-style:none" class="text-center">\n <span ng-show="item.isSuccess"><i class="glyphicon glyphicon-ok"></i></span>\n <span ng-show="item.isCancel"><i class="glyphicon glyphicon-ban-circle"></i></span>\n <span ng-show="item.isError"><i class="glyphicon glyphicon-remove"></i></span>\n </td>\n <td style="border-top-style:none" nowrap>\n <button type="button" class="btn btn-danger btn-xs" data-ng-click="item.remove()">\n <span class="glyphicon glyphicon-trash"></span> {{\'APPLICATION_REMOVE\' | translate}}\n </button>\n </td>\n </tr>\n </tbody>\n </table>\n <div>\n </div>\n </div>\n </div>\n <!-- END ATTACH -->\n\n </div>\n </form>\n </div>\n </div>\n </div>\n </div>\n</div>\n<!-- END TODO CONTENT -->\n'), +a.put("app/channels/fax/inbox/status/status.modal.html",'<div class="modal-header">\n <button data-ng-if="modal.dismissable" type="button" data-ng-click="$dismiss()" class="close">×</button>\n <h4 data-ng-if="modal.title" data-ng-bind="modal.title | translate" class="modal-title"></h4>\n</div>\n<div class="modal-body">\n <p data-ng-if="modal.text && !closed" ng-bind="modal.text | translate"></p>\n <form name="form" novalidate data-ng-init="initDisposition()">\n <div class="form-group">\n <ui-select data-ng-model="item.disposition" name="disposition" theme="bootstrap" data-ng-disabled="!dispositions.length" required>\n <ui-select-match placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="disposition.name as disposition in dispositions | filter: $select.search">\n <div ng-bind-html="disposition.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="note note-warning" data-ng-if="dispositions.length < 1">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_DISPOSITIONS_AVAILABLE\' | translate }}\n </p>\n </div>\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" data-ng-click="ok()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/fax/inbox/view/account/list/list.html",'<!-- BEGIN Portlet PORTLET-->\n<div class="portlet light" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption">\n <div class="btn-group btn-group-solid">\n <button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'NEW\'" uib-uncheckable>NEW</button>\n </div>\n <div class="btn-group btn-group-solid">\n <button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'OPEN\'" uib-uncheckable>OPEN</button>\n </div>\n <div class="btn-group btn-group-solid">\n <button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'PENDING\'" uib-uncheckable>PENDING</button>\n </div>\n <div class="btn-group btn-group-solid">\n <button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'CLOSED\'" uib-uncheckable>CLOSED</button>\n </div>\n </div>\n <div class="actions">\n <a href="#" class="btn btn-icon-only default" data-ng-click="getPage();">\n <i class="fa fa-refresh"></i>\n </a>\n <a href="#" class="btn btn-icon-only red" data-ng-click="deleteItems();" data-ng-show="id.length && isAdmin">\n <i class="fa fa-trash"></i>\n </a>\n <a href="#" class="btn btn-icon-only btn-success" data-ng-click="disposeItems();" data-ng-show="id.length">\n <i class="fa fa-upload"></i>\n </a>\n <a href="#" class="btn btn-icon-only blue" data-ng-click="tagItems();" data-ng-show="id.length">\n <i class="fa fa-tags"></i>\n </a>\n <a href="#" class="btn btn-icon-only green" data-ng-click="openRoom(null, \'New Message\')">\n <i class="fa fa-plus"></i>\n </a>\n </div>\n </div>\n <div class="portlet-title" data-ng-show="tags.length">\n <!-- START TAGS -->\n <div class="form-group">\n <div class="row">\n <div class="col-md-1">\n <a href="#" class="btn btn-icon-only">\n <i class="fa fa-tags" style="color: gray;"></i>\n </a>\n </div>\n <div class="col-md-11">\n <ui-select multiple data-ng-model="query.tags" theme="bootstrap" on-select="onChanged($item, $model)" on-remove="onChanged($item, $model)">\n <ui-select-match placeholder="Search by tag...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="tag in tags | filter:$select.search">\n {{tag}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n </div>\n <!-- END TAGS -->\n </div>\n <div class="portlet-body">\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="spinner-grid" spinner-start-active="false"></span>\n <!-- END UI-GRID SPINNER -->\n\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-pagination ui-grid-selection ui-grid-exporter class="ui-grid-inbox">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END Portlet PORTLET-->\n'),a.put("app/channels/fax/inbox/view/view.agents.modal.html",'<div class="modal-header" data-ng-init="initModal()">\n <h3 class="modal-title">{{ \'APPLICATION_AGENTS\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <!-- START TRANSPORT -->\n <div class="form-group">\n <form name="form" novalidate>\n <!-- START TRANSPORT -->\n <div class="form-group">\n <ui-select multiple name="agents" data-ng-model="item.agents" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_AGENTS\' | translate}}">{{$item.fullname}}</ui-select-match>\n <ui-select-choices repeat="agent.id as agent in agents | filter: $select.search">\n {{agent.fullname}}\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="agents">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_AGENTS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/staff/agents/list">{{\'APPLICATION_AGENTS\' | translate}}</a>\n </p>\n </div>\n </div>\n <!-- END TRANSPORT -->\n </form>\n </div>\n <!-- END TRANSPORT -->\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" data-ng-click="ok()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/fax/inbox/view/view.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-fax"></i>\n <a href="#">{{ \'APPLICATION_FAX\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-note"></i>\n <a href="#">{{ \'APPLICATION_INBOX\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row inbox">\n <div class="col-md-3">\n <ul class="inbox-nav margin-bottom-10">\n <li data-ng-class="{active: $stateParams.id == faxAccount.id}" data-ng-repeat="faxAccount in faxAccounts">\n <a href="/channels/fax/inbox/view/account/{{faxAccount.id}}/list" class="btn">\n <i class="icon-notebook"></i> {{faxAccount.name}}\n </a>\n <b></b>\n </li>\n </ul>\n <div class="note note-warning" data-ng-hide="faxAccounts.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_AVAILABLE_ACCOUNTS\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/channels/fax/accounts/list">{{\'APPLICATION_ACCOUNTS\' | translate}}</a>\n </p>\n </div>\n </div>\n\n <div class="col-md-9" data-ng-init="initView()">\n <!-- BEGIN PROFILE CONTENT -->\n <div class="room-content">\n <div ui-view>\n <div class="note note-info">\n <h4 class="block">Info! {{\'APPLICATION_NO_ACCOUNT_SELECTED\' | translate}}</h4>\n </div>\n </div>\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n'),a.put("app/channels/fax/inbox/view/view.status.modal.html",'<div class="modal-header" data-ng-init="initModal()">\n <h3 class="modal-title">{{ modal.title | translate }}</h3>\n</div>\n<div class="modal-body">\n <p data-ng-if="modal.text" data-ng-bind="modal.text"></p>\n <div data-ng-if="modal.html" data-ng-bind-html="modal.html"></div>\n</div>\n<div class="modal-footer">\n <button data-ng-repeat="button in modal.buttons"\n data-ng-class="button.classes"\n data-ng-click="button.click($event)"\n data-ng-bind="button.text | translate" class="btn"></button>\n</div>\n'),a.put("app/channels/fax/inbox/view/view.tags.modal.html",'<div class="modal-header" data-ng-init="initModal()">\n <h3 class="modal-title">{{ \'APPLICATION_TAGS\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <!-- START TRANSPORT -->\n <div class="form-group">\n <form name="form" novalidate>\n <!-- START TAGS -->\n <div class="form-group">\n <ui-select multiple data-ng-model="item.tags" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_TAGS\' | translate}}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="tag in tags | filter: $select.search">\n {{tag}}\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END TAGS -->\n </form>\n </div>\n <!-- END TRANSPORT -->\n</div>\n<div class="modal-footer">\n <button type="button" class="btn" data-ng-class="button.class" data-ng-click="button.click()"data-ng-repeat="button in modal.buttons">{{button.text | translate}}</button>\n <!-- <button class="btn btn-success" type="button" data-ng-click="ok()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button> -->\n</div>\n'),a.put("app/channels/fax/queue/list/list.create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_QUEUE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" data-ng-pattern="settings.patternName" required />\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$invalid && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$invalid && form.name.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START STRATEGY -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.strategy.$touched || form.$submitted) && form.strategy.$invalid}">\n <label class="control-label">{{\'APPLICATION_STRATEGY\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.strategy" name="strategy" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | uppercase}}</ui-select-match>\n <ui-select-choices repeat="strategy in strategies | filter: $select.search">\n <div ng-bind-html="strategy | uppercase | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form.strategy.$touched || form.$submitted) && form.strategy.$invalid && form.strategy.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END STRATEGY -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.timeout.$touched || form.$submitted) && form.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_AGENT_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="Timeout" class="form-control" data-ng-model="item.timeout" required min="1"/>\n <span data-ng-show="(form.timeout.$touched || form.$submitted) && form.timeout.$invalid && form.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START AGENTS-->\n <div class="form-body" data-ng-init="getTeams()">\n <label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n <div class="input-group input-small mbottom20">\n <input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="item.penalty" readonly>\n <div class="spinner-buttons input-group-btn btn-group-vertical">\n <button type="button" class="btn spinner-up btn-xs blue" data-ng-click="item.penalty=item.penalty+1">\n <i class="fa fa-angle-up"></i>\n </button>\n <button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!item.penalty" data-ng-click="item.penalty=item.penalty-1">\n <i class="fa fa-angle-down"></i>\n </button>\n </div>\n </div>\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-team">\n </div>\n </div>\n </div>\n <!-- END AGENTS-->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/fax/queue/list/list.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-fax"></i>\n <a href="#">{{ \'APPLICATION_FAX\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="/channels/fax/queues/lis">{{ \'APPLICATION_QUEUES\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_QUEUES\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <a class="btn green-jungle" href="#" data-ng-click="createItem()" data-ng-if="Auth.isAdmin()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_QUEUE\' | translate }}\n </a>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/fax/queue/view/view.agents.html",'<div class="row" data-ng-init="getTeams()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_AGENTS\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body">\n <!-- BEGIN FORM-->\n <form action="index.html" class="form-horizontal form-row-seperated">\n <div class="form-body">\n <label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n <div class="input-group input-small mbottom20">\n <input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="queue.penalty" readonly>\n <div class="spinner-buttons input-group-btn btn-group-vertical">\n <button type="button" class="btn spinner-up btn-xs blue" data-ng-click="queue.penalty=queue.penalty+1">\n <i class="fa fa-angle-up"></i>\n </button>\n <button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!queue.penalty" data-ng-click="queue.penalty=queue.penalty-1">\n <i class="fa fa-angle-down"></i>\n </button>\n </div>\n </div>\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-team">\n </div>\n </div>\n </div>\n </form>\n <!-- END FORM-->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/fax/queue/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getQueue()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-fax"></i>\n <a href="#">{{ \'APPLICATION_FAX\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="/channels/fax/queues/list">{{ \'APPLICATION_QUEUES\' | translate }}</a>\n <i data-ng-show="queue" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="queue">\n <a href="#">{{queue.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/queue.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{queue.name}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.channels.fax.queues.view.settings\')}">\n <a data-ng-href="/channels/fax/queues/view/{{queue.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.channels.fax.queues.view.agents\')}" data-ng-show="Auth.getCurrentUser().role === \'admin\'">\n <a data-ng-href="/channels/fax/queues/view/{{queue.id}}/agents">\n <i class="icon-people"></i>\n {{ \'APPLICATION_AGENTS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/fax/queue/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateFaxQueue()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="queue.name" data-ng-pattern="settings.patternName" required />\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid && forms.general.name.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START STRATEGY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.strategy.$touched || forms.general.$submitted) && forms.general.strategy.$invalid}">\n <label class="control-label">{{\'APPLICATION_STRATEGY\' | translate}}</label>\n <ui-select data-ng-model="queue.strategy" name="strategy" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | uppercase}}</ui-select-match>\n <ui-select-choices repeat="strategy in strategies | filter: $select.search">\n <div ng-bind-html="strategy | uppercase | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END STRATEGY -->\n\n <!-- START TIMEOUT -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}}</label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" min="1" data-ng-model="queue.timeout"/>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="queue.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <input data-ng-if="Auth.isAdmin()" class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/fax/realtime/view/agent/agent.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initAgents()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns class="ui-grid" ui-grid-tree-view ui-grid-expandable-row ui-grid-pagination ui-grid-auto-resize>\n <span us-spinner spinner-key="grid-spinner" spinner-start-active="true"></span>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/fax/realtime/view/agent/agent.modal.info.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_INTERFACE_INFO\' | translate }}</h3>\n</div>\n<div class="modal-body">\n<div data-ng-if="agent.ipaddr" class="well">\n <div>{{agent.ipaddr}}:{{agent.port}}</div>\n <div>{{agent.fullcontact}}</div>\n <div>{{agent.useragent}}</div>\n <div>{{agent.lastms}}</div>\n</div>\n<div data-ng-if="!agent.ipaddr" class="alert alert-danger" role="alert">\n {{\'MESSAGE_NO_AVAILABLE_INFO\' | translate}}\n</div>\n</div>\n<div class="modal-footer">\n <button class="btn default" type="button" ng-click="close()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'),a.put("app/channels/fax/realtime/view/agent/queue.modal.add.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_JOIN_QUEUE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <div class="form-group row">\n <label class="col-md-2 control-label" style="margin-top: 7px;">{{\'APPLICATION_QUEUE\' | translate}}:</label>\n <div class="col-md-10">\n <ui-select multiple ng-model="item.queues" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_QUEUE\' | translate}}">{{$item.name}}</ui-select-match>\n <ui-select-choices repeat="queue.id as queue in queues | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n</div>\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/fax/realtime/view/application/application.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initApplications()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns class="ui-grid" ui-grid-auto-resize>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/fax/realtime/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-fax"></i>\n <a href="#">{{ \'APPLICATION_FAX\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-energy"></i>\n <a href="#">{{ \'APPLICATION_REALTIME\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <div>\n <nav class="navbar navbar-default" role="navigation">\n <div class="collapse navbar-collapse">\n <ul class="nav navbar-nav">\n <li data-ng-class="{\'active\': $state.is(\'main.channels.fax.realtime.view.agents\')}">\n <a href="/channels/fax/realtime/view/agents">\n {{\'APPLICATION_AGENTS\' | translate}}\n </a>\n </li>\n <li data-ng-class="{\'active\': $state.is(\'main.channels.fax.realtime.view.applications\')}">\n <a href="/channels/fax/realtime/view/applications">\n {{\'APPLICATION_APPLICATIONS\' | translate}}\n </a>\n </li>\n <li>\n <a href="#">\n <b>|{{\'APPLICATION_SHOW_TIMERS\' | translate}} </b><input\n bs-switch\n class="form-control"\n ng-model="showTimers"\n type="checkbox"\n name="showTimers"\n switch-active="{{ timerSwitch.isActive }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ timerSwitch.onColor }}"\n switch-off-color="{{ timerSwitch.offColor }}"\n switch-animate="{{ timerSwitch.animate }}"\n switch-size="{{ timerSwitch.size }}"\n switch-label="{{ timerSwitch.label }}"\n switch-icon="{{ timerSwitch.icon }}"\n switch-radio-off="{{ timerSwitch.radioOff }}"\n switch-label-width="{{ timerSwitch.labelWidth }}"\n switch-handle-width="{{ timerSwitch.handleWidth }}"><b>|</b>\n </a>\n </li>\n </ul>\n </div>\n </nav>\n </div>\n\n <div ui-view></div>\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/mail/account/list/list.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-envelope"></i>\n <a href="#">{{ \'APPLICATION_MAIL\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-notebook"></i>\n <a href="#">{{ \'APPLICATION_ACCOUNTS\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACCOUNTS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group">\n <a class="btn btn-default" href="#" data-ng-click="gridOptions.getPage();">\n <i class="icon-reload"></i>\n </a>\n </div>\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="/channels/mail/accounts/wizard">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_ACCOUNT\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'), +a.put("app/channels/mail/account/view/action/list/list.html",'<div class="row" data-ng-init="initActons()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_ACTIONS\' | translate}}</span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="/channels/mail/accounts/view/{{account.id}}/actions/wizard" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_ACTION\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/mail/account/view/action/view/view.html",'\n<div class="row" data-ng-init="initAction()">\n <div class="col-md-12">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-directions font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACTION\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <form name="forms.settings" ng-submit="updateItem()" novalidate>\n <!-- START APP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app.$touched || forms.settings.$submitted) && forms.settings.app.$invalid}">\n <label class="control-label">{{ \'APPLICATION_APPLICATION\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.app" name="app" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_APPLICATION\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="app.value as app in apps | filter: $select.search">\n <div ng-bind-html="app.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.app.$touched || forms.settings.$submitted) && forms.settings.app.$invalid && forms.settings.app.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END APP -->\n\n <div class="app-settings" ng-slide-down="application.app === \'queue\'" lazy-render duration="1" data-ng-init="getQueues()">\n <!-- START QUEUE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.queue.$touched || forms.settings.$submitted) && forms.settings.queue.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.MailQueueId" name="queue" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="queue.id as queue in queues | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="queues.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_QUEUES_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/channels/mail/queues/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.settings.queue.$touched || forms.settings.$submitted) && forms.settings.queue.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n <span data-ng-show="(forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'agent\'" lazy-render duration="1" data-ng-init="getAgents()">\n <!-- START AGENT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.agent.$touched || forms.settings.$submitted) && forms.settings.agent.$invalid}">\n <label class="control-label">{{\'APPLICATION_AGENT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.UserId" name="agent" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.fullname}}</ui-select-match>\n <ui-select-choices repeat="agent.id as agent in agents | filter: $select.search">\n <div ng-bind-html="agent.fullname | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="agents.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_AGENTS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/staff/agents/list">{{\'APPLICATION_AGENTS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.settings.agent.$touched || forms.settings.$submitted) && forms.settings.agent.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END AGENT -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n <span data-ng-show="(forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'sendMail\'" lazy-render duration="1" data-ng-init="getMailAccounts();getTemplates()">\n <!-- START SENDMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="email" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2" min="1" required/>\n <span data-ng-show="(forms.action.from.$touched || forms.action.$submitted) && forms.action.timeout.$invalid && forms.action.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.mail.$touched || forms.action.$submitted) && forms.action.account.$invalid}">\n <label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in mailAccounts | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.template.$touched || forms.action.$submitted) && forms.action.template.$invalid}">\n <label class="control-label">{{\'APPLICATION_TEMPLATE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data9" name="template" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n <div ng-bind-html="template.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.template.$touched || forms.action.$submitted) && forms.action.template.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SENDMAIL -->\n </div>\n\n\n <div class="app-settings" ng-slide-down="application.app === \'replyMail\'" lazy-render duration="1" data-ng-init="getMailAccounts();getTemplates()">\n <!-- START REPLYMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.type.$touched || forms.action.$submitted) && forms.action.type.$invalid}">\n <label class="control-label">{{\'APPLICATION_TYPE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data1" name="type" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.key | translate }}</ui-select-match>\n <ui-select-choices repeat="type.value as type in types | filter: $select.search">\n <div ng-bind-html="type.key | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.type.$touched || forms.action.$submitted) && forms.action.type.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.mail.$touched || forms.action.$submitted) && forms.action.account.$invalid}">\n <label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in mailAccounts | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.template.$touched || forms.action.$submitted) && forms.action.template.$invalid}">\n <label class="control-label">{{\'APPLICATION_TEMPLATE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data9" name="template" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n <div ng-bind-html="template.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.template.$touched || forms.action.$submitted) && forms.action.template.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END REPLYMAIL -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1" data-ng-init="getSmsAccounts()">\n <!-- START SENDSms -->\n <div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1">\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.to.$touched || forms.settings.$submitted) && forms.settings.to.$invalid}">\n <label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" ng-pattern="/^[\\+]?[0-9]+$/" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2" required/>\n <span data-ng-show="(forms.settings.to.$touched || forms.settings.$submitted) && forms.settings.to.$invalid && forms.settings.to.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.account.$touched || forms.settings.$submitted) && forms.settings.account.$invalid}">\n <label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in smsAccounts | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.account.$touched || forms.settings.$submitted) && forms.settings.account.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.text.$touched || forms.text.$submitted) && forms.settings.text.$invalid}">\n <label class="control-label">{{\'APPLICATION_TEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <textarea id="text" class="form-control maxlength-handler" maxlength="160" name="text" data-ng-model="application.data6" required></textarea>\n <span data-ng-show="(forms.settings.text.$touched || forms.settings.$submitted) && forms.settings.text.$invalid && forms.settings.text.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <!-- END SENDSms -->\n </div>\n\n <!-- START INTERVAL_TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.intType.$touched || forms.settings.$submitted) && forms.settings.intType.$invalid}">\n <label class="control-label">{{ \'APPLICATION_INTERVAL_TYPE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.intType" theme="bootstrap" name="intType" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="intType.value as intType in $application.intTypes | filter: $select.search">\n {{ intType.name | translate }}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.intType.$touched || forms.settings.$submitted) && forms.settings.intType.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVAL_TYPE -->\n\n <div class="app-settings" ng-slide-down="application.intType === \'custom\'" lazy-render duration="1">\n <!-- START TIME -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n <div class="input-group input-large">\n <fieldset class="pull-left" ng-disabled="application.alwaysTime">\n <uib-timepicker name="t_from" data-ng-model="application.t_from" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker>\n </fieldset>\n <div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n <fieldset ng-disabled="application.alwaysTime"><uib-timepicker name="t_to" data-ng-model="application.t_to" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker></fieldset>\n <!-- <label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="application.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label> -->\n </div>\n </div>\n <!-- END TIME -->\n\n <!-- START ALWAYS -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ALWAYS\' | translate }}</label>\n <div class="input-group input-large">\n <label class="control-label pointer-cursor">\n <input\n bs-switch\n data-ng-model="application.alwaysTime"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </label>\n </div>\n </div>\n <!-- END ALWAYS -->\n\n <!-- START WEEKDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.wd_from" theme="bootstrap" name="wd_from">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{ weekDay.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.wd_to" theme="bootstrap" name="wd_to">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{ weekDay.name | translate }}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END WEEKDAY -->\n\n <!-- START MONTHDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.md_from" theme="bootstrap" name="md_from">\n <ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_to && application.md_to!==\'always\' && monthDay>application.md_to && monthDay!==\'always\'">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.md_to" theme="bootstrap" name="md_to">\n <ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_from && application.md_from!==\'always\' && monthDay<application.md_from && monthDay!==\'always\'">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTHDAY -->\n\n <!-- START MONTH -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.m_from" theme="bootstrap" name="m_from">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{ month.name | translate }}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.m_to" theme="bootstrap" name="m_to">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{ month.name | translate }}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTH -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.intType === \'list\'" lazy-render duration="1" data-ng-init="getIntervals()">\n\n <!-- START INTERVALS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.IntervalId.$touched || forms.settings.$submitted) && forms.settings.IntervalId.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERVALS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.IntervalId" theme="bootstrap" name="IntervalId" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="interval.id as interval in intervals | filter: $select.search">\n {{ interval.name}}\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="intervals.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_INTERVAL_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/intervals/list">{{\'APPLICATION_INTERVALS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.settings.IntervalId.$touched || forms.settings.$submitted) && forms.settings.IntervalId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVALS -->\n\n </div>\n <button class="btn green-haze" type="submit">{{\'APPLICATION_UPDATE\' | translate}}</button>\n </form>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/mail/account/view/action/wizard/wizard.html",'\n<div class="row" data-ng-init="initWizard()">\n <div class="col-md-12">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-directions font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACTION\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_APPLICATION\' | translate}}" canexit="formValidation(forms.action.$valid)">\n\n <form name="forms.action" novalidate>\n <!-- START APP -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.action.$submitted && forms.action.app.$invalid}">\n <label class="control-label">{{ \'APPLICATION_APPLICATION\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.app" name="app" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_APPLICATION\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="app.value as app in apps | filter: $select.search">\n <div ng-bind-html="app.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.action.$submitted && forms.action.app.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END APP -->\n\n <div class="app-settings" ng-slide-down="application.app === \'agent\'" lazy-render duration="1" data-ng-init="getAgents()">\n <!-- START AGENT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.agent.$touched || forms.action.$submitted) && forms.action.agent.$invalid}">\n <label class="control-label">{{\'APPLICATION_AGENT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.UserId" name="agent" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.fullname}}</ui-select-match>\n <ui-select-choices repeat="agent.id as agent in agents | filter: $select.search">\n <div ng-bind-html="agent.fullname | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="agents.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_AGENTS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/staff/agents/list">{{\'APPLICATION_AGENTS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.action.agent.$touched || forms.action.$submitted) && forms.action.agent.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END AGENT -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n <span data-ng-show="(forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid && forms.action.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'queue\'" lazy-render duration="1" data-ng-init="getQueues()">\n <!-- START QUEUE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.queue.$touched || forms.action.$submitted) && forms.action.queue.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.MailQueueId" name="queue" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="queue.id as queue in queues | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="queues.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_QUEUES_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/channels/mail/queues/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.action.queue.$touched || forms.action.$submitted) && forms.action.queue.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n <span data-ng-show="(forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid && forms.action.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'sendMail\'" lazy-render duration="1" data-ng-init="getMailAccounts();getTemplates()">\n <!-- START SENDMAIL -->\n <div class="app-settings" ng-slide-down="application.app === \'sendMail\'" lazy-render duration="1">\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="email" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2" min="1" required/>\n <span data-ng-show="(forms.action.from.$touched || forms.action.$submitted) && forms.action.timeout.$invalid && forms.action.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.mail.$touched || forms.action.$submitted) && forms.action.account.$invalid}">\n <label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in mailAccounts | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.template.$touched || forms.action.$submitted) && forms.action.template.$invalid}">\n <label class="control-label">{{\'APPLICATION_TEMPLATE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data9" name="template" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n <div ng-bind-html="template.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.template.$touched || forms.action.$submitted) && forms.action.template.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SENDMAIL -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'replyMail\'" lazy-render duration="1" data-ng-init="getMailAccounts();getTemplates()">\n <!-- START REPLYMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.type.$touched || forms.action.$submitted) && forms.action.type.$invalid}">\n <label class="control-label">{{\'APPLICATION_TYPE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data1" name="type" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.key | translate }}</ui-select-match>\n <ui-select-choices repeat="type.value as type in types | filter: $select.search">\n <div ng-bind-html="type.key | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.type.$touched || forms.action.$submitted) && forms.action.type.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.mail.$touched || forms.action.$submitted) && forms.action.account.$invalid}">\n <label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in mailAccounts | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.template.$touched || forms.action.$submitted) && forms.action.template.$invalid}">\n <label class="control-label">{{\'APPLICATION_TEMPLATE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data9" name="template" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n <div ng-bind-html="template.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.template.$touched || forms.action.$submitted) && forms.action.template.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END REPLYMAIL -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1" data-ng-init="getSmsAccounts()">\n <!-- START SENDSms -->\n <div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1">\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.to.$touched || forms.action.$submitted) && forms.action.to.$invalid}">\n <label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" ng-pattern="/^[\\+]?[0-9]+$/" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2" required/>\n <span data-ng-show="(forms.action.to.$touched || forms.action.$submitted) && forms.action.to.$invalid && forms.action.to.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$invalid}">\n <label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in smsAccounts | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.text.$touched || forms.action.$submitted) && forms.action.text.$invalid}">\n <label class="control-label">{{\'APPLICATION_TEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <textarea id="text" class="form-control maxlength-handler" maxlength="160" name="text" data-ng-model="application.data6" required></textarea>\n <span data-ng-show="(forms.action.text.$touched || forms.action.$submitted) && forms.action.text.$invalid && forms.action.text.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <!-- END SENDSms -->\n </div>\n\n <!-- START INTERVAL_TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.intType.$touched || forms.action.$submitted) && forms.action.intType.$invalid}">\n <label class="control-label">{{ \'APPLICATION_INTERVAL_TYPE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.intType" theme="bootstrap" name="intType" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="intType.value as intType in $application.intTypes | filter: $select.search">\n {{ intType.name | translate }}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.intType.$touched || forms.action.$submitted) && forms.action.intType.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVAL_TYPE -->\n\n <div class="app-settings" ng-slide-down="application.intType === \'custom\'" lazy-render duration="1">\n <!-- START TIME -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n <div class="input-group input-large">\n <fieldset class="pull-left" ng-disabled="application.alwaysTime">\n <uib-timepicker name="t_from" data-ng-model="application.t_from" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker>\n </fieldset>\n <div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n <fieldset ng-disabled="application.alwaysTime"><uib-timepicker name="t_to" data-ng-model="application.t_to" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker></fieldset>\n <!-- <label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="application.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label> -->\n </div>\n </div>\n <!-- END TIME -->\n\n <!-- START ALWAYS -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ALWAYS\' | translate }}</label>\n <div class="input-group input-large">\n <label class="control-label pointer-cursor">\n <input\n bs-switch\n data-ng-model="application.alwaysTime"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n <!-- <input type="checkbox" data-ng-model="application.alwaysTime"> -->\n </label>\n </div>\n </div>\n <!-- END ALWAYS -->\n\n <!-- START WEEKDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.wd_from" theme="bootstrap" name="wd_from">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{ weekDay.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.wd_to" theme="bootstrap" name="wd_to">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{ weekDay.name | translate }}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END WEEKDAY -->\n\n <!-- START MONTHDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.md_from" theme="bootstrap" name="md_from">\n <ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_to && application.md_to!==\'always\' && monthDay>application.md_to && monthDay!==\'always\'">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.md_to" theme="bootstrap" name="md_to">\n <ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_from && application.md_from!==\'always\' && monthDay<application.md_from && monthDay!==\'always\'">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTHDAY -->\n\n <!-- START MONTH -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.m_from" theme="bootstrap" name="m_from">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{ month.name | translate }}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.m_to" theme="bootstrap" name="m_to">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{ month.name | translate }}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTH -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.intType === \'list\'" lazy-render duration="1" data-ng-init="getIntervals()">\n\n <!-- START INTERVALS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.IntervalId.$touched || forms.action.$submitted) && forms.action.IntervalId.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERVALS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.IntervalId" theme="bootstrap" name="IntervalId" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="interval.id as interval in intervals | filter: $select.search">\n {{ interval.name}}\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="intervals.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_INTERVAL_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/intervals/list">{{\'APPLICATION_INTERVALS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.action.IntervalId.$touched || forms.action.$submitted) && forms.action.IntervalId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVALS -->\n\n </div>\n\n <input class="btn green-haze" type="submit" data-ng-click="next()" value="{{\'APPLICATION_CONTINUE\' | translate}}"/>\n\n </form>\n </wz-step>\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n <input class="btn green-haze" type="submit" data-ng-click="next()" value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'), +a.put("app/channels/mail/account/view/disposition/modal/add.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_DISPOSITIONS\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.form.$touched || form.$submitted) && form.form.$invalid}">\n <div class="">\n <!-- <input type="text" name="form" placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}" class="form-control" data-ng-model="name" data-ng-pattern="/^[a-zA-Z0-9]*$/" required/> -->\n <input type="text" name="form" placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}" class="form-control" data-ng-model="name" required/>\n <span data-ng-show="form.form.$touched && form.form.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <!-- <span data-ng-show="form.form.$touched && form.form.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_PATTERN\' | translate}}.\n </span> -->\n </div>\n <!-- <div class="help-block">\n {{\'MESSAGE_ALLOWED_NUMBERS_AND_LETTERS\' | translate}}\n </div> -->\n </div>\n <!-- END NAME -->\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" data-ng-click="ok()" data-ng-show="form.$valid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/mail/account/view/disposition/view/view.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_DISPOSITIONS\' | translate}}</span>\n </div>\n <div class="actions actions-md">\n <a href="#" class="btn btn-icon-only green" data-ng-click="addDisposition();">\n <i class="fa fa-plus"></i>\n </a>\n </div>\n </div>\n <div class="portlet-body" data-ng-init="initView()">\n <div class="tab-content">\n <div class="row" data-ng-hide="dispositions.length">\n <div class="col-md-12">\n <div class="note note-info">\n <h4 class="block">Info! {{\'MESSAGE_NO_DISPOSITIONS_AVAILABLE\' | translate}}</h4>\n </div>\n </div>\n </div>\n\n <!-- GENERAL TAB -->\n <div class="row" data-ng-repeat="disposition in dispositions">\n <div class="col-md-12 form-group">\n <div class="input-group">\n <div>\n <input class="form-control" type="text" placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}" data-ng-model="disposition.name">\n </div>\n <span class="input-group-btn">\n <button class="btn btn-success" type="button" data-ng-click="updateDisposition(disposition.id, disposition.name);"><i class="fa fa-cloud-upload fa-fw"></i> {{\'APPLICATION_UPDATE\' | translate}}</button>\n <button class="btn btn-danger" type="button" data-ng-click="deleteDisposition(disposition.id);"><i class="fa fa-times fa-fw"></i> {{\'APPLICATION_DELETE\' | translate}}</button>\n </span>\n </div>\n </div>\n </div>\n <!-- END GENERAL TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/mail/account/view/hooks/view/view.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_HOOKS\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_ACCEPT\' | translate}}</a>\n </li>\n <li >\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_REJECT\' | translate}}</a>\n </li>\n <li >\n <a href="#" data-target="#tab_1_3" data-toggle="tab">{{\'APPLICATION_CLOSE\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- ACCEPT TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.accept" data-ng-submit="forms.accept.$valid && updateItemMailAccount()" novalidate>\n <div class="row">\n <div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.accept.method.$touched || forms.accept.$submitted) && forms.accept.method.$invalid}">\n <label class="control-label">{{\'APPLICATION_METHOD\' | translate}}</label>\n <ui-select data-ng-model="account.acceptMethod" name="method" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected.name | uppercase}}</ui-select-match>\n <ui-select-choices repeat="type.value as type in types | filter: $select.search">\n <div ng-bind-html="type.name | highlight: $select.search | uppercase" ></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.accept.method.$touched || forms.accept.$submitted) && forms.accept.method.$invalid && forms.accept.method.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.accept.url.$touched || forms.accept.$submitted) && forms.accept.url.$invalid}">\n <label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n <input type="url" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="account.acceptUrl" ng-required="account.acceptMethod"/>\n <span data-ng-show="(forms.accept.url.$touched || forms.accept.$submitted) && forms.accept.url.$invalid && forms.accept.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <div class="row" ng-repeat = "action in account.actions">\n <div ng-switch="action.action">\n <div ng-switch-when="pause">\n <div class="form-group col-md-4">\n <label class="control-label">{{\'APPLICATION_PAUSE\' | translate}}</label></br>\n <input\n bs-switch\n data-ng-change="resetActionData(action)"\n data-ng-model="action.enabled"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </div>\n <div ng-if="action.enabled" class="form-group col-md-8">\n <label class="control-label">{{\'APPLICATION_TYPE\' | translate}}</label>\n <ui-select name="action" data-ng-model="action.type" theme="bootstrap" >\n <ui-select-match placeholder="{{\'APPLICATION_TYPE\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat=" pause.name as pause in pauses | filter: $select.search">\n <div ng-bind-html="pause.name | highlight: $select.search | uppercase" ></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n </div>\n </div>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ACCEPT TAB -->\n <!-- START REJECT TAB -->\n <div class="tab-pane" id="tab_1_2">\n <form name="forms.reject" data-ng-submit="forms.reject.$valid && updateItemMailAccount()" novalidate>\n <div class="row">\n <div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.reject.method.$touched || forms.reject.$submitted) && forms.reject.method.$invalid}">\n <label class="control-label">{{\'APPLICATION_METHOD\' | translate}}</label>\n <ui-select data-ng-model="account.rejectMethod" name="method" theme="bootstrap" >\n <ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected.name | uppercase}}</ui-select-match>\n <ui-select-choices repeat="type.value as type in types | filter: $select.search">\n <div ng-bind-html="type.name | highlight: $select.search | uppercase" ></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.reject.method.$touched || forms.reject.$submitted) && forms.reject.method.$invalid && forms.reject.method.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.reject.url.$touched || forms.reject.$submitted) && forms.reject.url.$invalid}">\n <label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n <input type="url" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="account.rejectUrl" ng-required="account.rejectMethod"/>\n <span data-ng-show="(forms.reject.url.$touched || forms.reject.$submitted) && forms.reject.url.$invalid && forms.reject.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END REJECT TAB -->\n <!-- START CLOSE TAB -->\n <div class="tab-pane" id="tab_1_3">\n <form name="forms.close" data-ng-submit="forms.close.$valid && updateItemMailAccount()" novalidate>\n <div class="row">\n <div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.close.method.$touched || forms.close.$submitted) && forms.close.method.$invalid}">\n <label class="control-label">{{\'APPLICATION_METHOD\' | translate}}</label>\n <ui-select data-ng-model="account.closeMethod" name="method" theme="bootstrap" >\n <ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected.name | uppercase}}</ui-select-match>\n <ui-select-choices repeat="type.value as type in types | filter: $select.search">\n <div ng-bind-html="type.name | highlight: $select.search | uppercase" ></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.close.method.$touched || forms.close.$submitted) && forms.close.method.$invalid && forms.close.method.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.close.url.$touched || forms.close.$submitted) && forms.close.url.$invalid}">\n <label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n <input type="url" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="account.closeUrl" ng-required="account.closeMethod"/>\n <span data-ng-show="(forms.close.url.$touched || forms.close.$submitted) && forms.close.url.$invalid && forms.close.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END CLOSE TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/mail/account/view/other/view/view.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_OTHER\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERALS\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_SIGNATURE\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body" data-ng-init="initView()">\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="mail-spinner-grid" spinner-start-active="false"></span>\n <!-- END UI-GRID SPINNER -->\n\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.info" data-ng-submit="forms.info.$valid && updateItemMailAccount()" novalidate>\n <!-- START WHITE LABEL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.whiteLabel.$touched || forms.info.$submitted) && forms.info.whiteLabel.$invalid}">\n <label class="control-label">{{\'APPLICATION_WHITE_LABEL\' | translate}}</label>\n <textarea type="text" name="whiteLabel" placeholder="{{\'APPLICATION_WHITE_LABEL\' | translate}}" class="form-control" data-ng-model="account.whiteLabel" data-ng-disabled="!license.custom"/></textarea>\n <span data-ng-show="(forms.info.whiteLabel.$touched || forms.info.$submitted) && forms.info.whiteLabel.$invalid && forms.info.whiteLabel.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END WHITE LABEL -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}" data-ng-disabled="!license.custom"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n\n <!-- GENERAL TAB -->\n <div class="tab-pane" id="tab_1_2">\n <form name="forms.signature" data-ng-submit="updateItemMailAccount()" novalidate>\n <!-- START SIGNATURE -->\n <div class="form-group">\n <div ckeditor="options" ng-model="account.signature"></div>\n </div>\n <!-- END WHITE LABEL -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/mail/account/view/setting/view/view.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERALS\' | translate}}</a>\n </li>\n <li data-ng-if="account.MailServerIn">\n <a href="#" data-target="#tab_1_2" data-toggle="tab">IMAP</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_3" data-toggle="tab">SMTP</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body" data-ng-init="initView()">\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="mail-spinner-grid" spinner-start-active="false"></span>\n <!-- END UI-GRID SPINNER -->\n\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.info" data-ng-submit="forms.info.$valid && updateItemMailAccount()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.name" required/>\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid && forms.info.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START ADDRESS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.address.$touched || forms.info.$submitted) && forms.info.address.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL_ADDRESS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="address" placeholder="{{\'APPLICATION_ADDRESS\' | translate}}" class="form-control" data-ng-model="account.address" required/>\n <span data-ng-show="(forms.info.address.$touched || forms.info.$submitted) && forms.info.address.$invalid && forms.info.address.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END ADDRESS -->\n\n <!-- START LIST -->\n <div class="form-group" data-ng-if="license.cm">\n <label class="control-label">{{\'APPLICATION_LIST\' | translate}}</label>\n <div class="input-group">\n\n <ui-select data-ng-model="account.ListId" name="list" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_LIST\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="list.id as list in lists | filter: $select.search">\n <div ng-bind-html="list.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n\n <span class="input-group-btn">\n <button type="button" data-ng-click="account.ListId = null" class="btn btn-default">\n <span class="glyphicon glyphicon-trash"></span>\n </button>\n </span>\n\n </div>\n </div>\n <!-- END LIST -->\n\n <!-- START TEMPLATE -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_TEMPLATE\' | translate}}</label>\n <div class="input-group">\n\n <ui-select data-ng-model="account.TemplateId" name="template" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_TEMPLATE\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n <div ng-bind-html="template.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n\n <span class="input-group-btn">\n <button type="button" data-ng-click="account.TemplateId = null" class="btn btn-default">\n <span class="glyphicon glyphicon-trash"></span>\n </button>\n </span>\n\n </div>\n </div>\n <!-- END TEMPLATE -->\n\n <!-- START FIDELITY -->\n <!-- <div class="form-group" data-ng-if="account.MailServerIn">\n <label class="control-label">{{\'APPLICATION_FIDELITY\' | translate}}</label></br>\n <input\n bs-switch\n data-ng-model="account.fidelity"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </div> -->\n <!-- END FIDELITY -->\n\n <!-- START TIMEOUT -->\n <!-- <div class="form-group" data-ng-if="account.fidelity" data-ng-class="{\'has-error\': (forms.info.timeout.$touched || forms.info.$submitted) && forms.info.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="0" name="timeout" placeholder="{{\'APPLICATION_PORT\' | translate}}" class="form-control" data-ng-model="account.timeout" required/>\n <span data-ng-show="(forms.info.timeout.$touched || forms.info.$submitted) && forms.info.timeout.$invalid && forms.info.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.timeout.$touched || forms.info.$submitted) && forms.info.timeout.$invalid && forms.info.timeout.$error.number" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n </span>\n </div> -->\n <!-- END TIMEOUT -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="account.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START SERVICE -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_SERVICE\' | translate}}</label><br>\n <input\n bs-switch\n data-ng-model="account.service"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </div>\n <!-- END SERVICE -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n\n <!-- IMAP TAB -->\n <div class="tab-pane" id="tab_1_2" data-ng-if="account.MailServerIn">\n <div class="note note-danger" data-ng-show="account.MailServerIn.state === \'DISCONNECTED\' || account.MailServerIn.state === \'ERROR\'">\n <p> ERROR </p>\n <json-formatter open="1" json="account.MailServerIn.source"></json-formatter>\n </div>\n\n <div class="note note-success" data-ng-show="account.MailServerIn.state === \'CONNECTED\'">\n <p> CONNECTED </p>\n </div>\n\n <div class="note note-info" data-ng-show="account.MailServerIn.state === \'CONNECTING\'">\n <p> TRYING... </p>\n </div>\n\n <form name="forms.formIn" data-ng-submit="forms.formIn.$valid && updateItemMailServerIn()" novalidate>\n <!-- START HOST -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formIn.host.$touched || forms.formIn.$submitted) && forms.formIn.host.$invalid}">\n <label class="control-label">{{\'APPLICATION_HOST\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="host" placeholder="{{\'APPLICATION_HOST\' | translate}}" class="form-control" data-ng-model="account.MailServerIn.host" required/>\n <span data-ng-show="(forms.formIn.host.$touched || forms.formIn.$submitted) && forms.formIn.host.$invalid && forms.formIn.host.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END HOST -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formIn.username.$touched || forms.formIn.$submitted) && forms.formIn.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="account.MailServerIn.username" required/>\n <span data-ng-show="(forms.formIn.username.$touched || forms.formIn.$submitted) && forms.formIn.username.$invalid && forms.formIn.username.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formIn.password.$touched || forms.formIn.$submitted) && forms.formIn.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="account.MailServerIn.password" required/>\n <span data-ng-show="(forms.formIn.password.$touched || forms.formIn.$submitted) && forms.formIn.password.$invalid && forms.formIn.password.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START PORT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formIn.port.$touched || forms.formIn.$submitted) && forms.formIn.port.$invalid}">\n <label class="control-label">{{\'APPLICATION_PORT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" name="port" placeholder="{{\'APPLICATION_PORT\' | translate}}" class="form-control" data-ng-model="account.MailServerIn.port" required/>\n <span data-ng-show="(forms.formIn.port.$touched || forms.formIn.$submitted) && forms.formIn.port.$invalid && forms.formIn.port.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.formIn.port.$touched || forms.formIn.$submitted) && forms.formIn.port.$invalid && forms.formIn.port.$error.number" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PORT -->\n\n <!-- START MAILBOX -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_MAILBOX\' | translate}}</label>\n <input type="text" name="mailbox" placeholder="{{\'APPLICATION_MAILBOX\' | translate}}" class="form-control" data-ng-model="account.MailServerIn.mailbox"/>\n </div>\n <!-- END MAILBOX -->\n\n <!-- START SEARCH FILTER -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_SEARCH_FILTER\' | translate}}</label>\n <ui-select data-ng-model="account.MailServerIn.filter" name="filter" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="filter in [\'UNSEEN\'] | filter: $select.search">\n <div ng-bind-html="filter | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- START SEARCH FILTER -->\n\n <!-- START connTimeout -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.in.connTimeout.$touched || forms.in.$submitted) && forms.in.connTimeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONNECTION_TIMEOUT\' | translate}} [sec]<span class="required" aria-required="true">*</span></label>\n <input type="number" name="connTimeout" placeholder="{{\'APPLICATION_CONNECTION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="account.MailServerIn.connTimeout" required/>\n <span data-ng-show="(forms.in.connTimeout.$touched || forms.in.$submitted) && forms.in.connTimeout.$invalid && forms.in.connTimeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.in.connTimeout.$touched || forms.in.$submitted) && forms.in.connTimeout.$invalid && forms.in.connTimeout.$error.number" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END connTimeout -->\n\n <!-- START authTimeout -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.in.authTimeout.$touched || forms.in.$submitted) && forms.in.authTimeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_AUTH_TIMEOUT\' | translate}} [sec]<span class="required" aria-required="true">*</span></label>\n <input type="number" name="authTimeout" placeholder="{{\'APPLICATION_AUTH_TIMEOUT\' | translate}}" class="form-control" data-ng-model="account.MailServerIn.authTimeout" required/>\n <span data-ng-show="(forms.in.authTimeout.$touched || forms.in.$submitted) && forms.in.authTimeout.$invalid && forms.in.authTimeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.in.authTimeout.$touched || forms.in.$submitted) && forms.in.authTimeout.$invalid && forms.in.authTimeout.$error.number" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END authTimeout -->\n\n <!-- START DELETE -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DELETE_MAIL_FROM_SERVER\' | translate}}</label><br>\n <input\n bs-switch\n data-ng-model="account.MailServerIn.delete"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </div>\n <!-- END DELETE -->\n\n <!-- START SSL -->\n <div class="form-group">\n <label class="control-label">SSL</label><br>\n <input\n bs-switch\n data-ng-model="account.MailServerIn.ssl"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </div>\n <!-- END SSL -->\n\n <!-- START Keepalive -->\n <div class="form-group">\n <label class="control-label">Keepalive</label><br>\n <input\n bs-switch\n data-ng-model="account.MailServerIn.keepalive"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </div>\n <!-- END Keepalive -->\n\n <!-- START POLLING -->\n <!-- <div class="form-group">\n <label class="control-label">{{\'APPLICATION_POLLING\' | translate}}</label><br>\n <input\n bs-switch\n data-ng-model="account.MailServerIn.polling"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </div> -->\n <!-- END POLLING -->\n\n <!-- START POLLING_TIMEOUT -->\n <!-- <div data-ng-if="account.MailServerIn.polling" class="form-group" data-ng-class="{\'has-error\': (forms.formOut.pollingTimeout.$touched || forms.formOut.$submitted) && forms.formOut.pollingTimeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_POLLING_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="60" name="pollingTimeout" placeholder="{{\'APPLICATION_POLLING_TIMEOUT\' | translate}}" class="form-control" data-ng-model="account.MailServerIn.pollingTimeout" required/>\n <span data-ng-show="(forms.formOut.form.$touched || forms.formOut.$submitted) && forms.formOut.pollingTimeout.$invalid && forms.formOut.pollingTimeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.formOut.form.$touched || forms.formOut.$submitted) && forms.formOut.pollingTimeout.$invalid && forms.formOut.pollingTimeout.$error.number" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n </span>\n </div> -->\n <!-- END POLLING_TIMEOUT -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END IMAP TAB -->\n\n <!-- SMTP TAB -->\n <div class="tab-pane" id="tab_1_3">\n\n <div class="note note-danger" data-ng-show="account.MailServerOut.state === \'DISCONNECTED\' || account.MailServerOut.state === \'ERROR\'">\n <p> ERROR </p>\n <json-formatter open="1" json="account.MailServerOut.source"></json-formatter>\n </div>\n\n <div class="note note-success" data-ng-show="account.MailServerOut.state === \'CONNECTED\'">\n <p> CONNECTED </p>\n </div>\n\n <div class="note note-info" data-ng-show="account.MailServerOut.state === \'CONNECTING\'">\n <p> TRYING... </p>\n </div>\n\n <form name="forms.formOut" data-ng-submit="forms.formOut.$valid && updateItemMailServerOut()" novalidate>\n\n <!-- START HOST -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formOut.host.$touched || forms.formOut.$submitted) && forms.formOut.host.$invalid}">\n <label class="control-label">{{\'APPLICATION_HOST\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="host" placeholder="{{\'APPLICATION_HOST\' | translate}}" class="form-control" data-ng-model="account.MailServerOut.host" required/>\n <span data-ng-show="(forms.formOut.host.$touched || forms.formOut.$submitted) && forms.formOut.host.$invalid && forms.formOut.host.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END HOST -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formOut.username.$touched || forms.formOut.$submitted) && forms.formOut.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="account.MailServerOut.username" required/>\n <span data-ng-show="(forms.formOut.username.$touched || forms.formOut.$submitted) && forms.formOut.username.$invalid && forms.formOut.username.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formOut.password.$touched || forms.formOut.$submitted) && forms.formOut.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="account.MailServerOut.password" required/>\n <span data-ng-show="(forms.formOut.password.$touched || forms.formOut.$submitted) && forms.formOut.password.$invalid && forms.formOut.password.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START PORT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formOut.port.$touched || forms.formOut.$submitted) && forms.formOut.port.$invalid}">\n <label class="control-label">{{\'APPLICATION_PORT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" name="port" placeholder="{{\'APPLICATION_PORT\' | translate}}" class="form-control" data-ng-model="account.MailServerOut.port" required/>\n <span data-ng-show="(forms.formOut.form.$touched || forms.formOut.$submitted) && forms.formOut.port.$invalid && forms.formOut.port.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.formOut.form.$touched || forms.formOut.$submitted) && forms.formOut.port.$invalid && forms.formOut.port.$error.number" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PORT -->\n\n <!-- START SSL -->\n <div class="form-group">\n <label class="control-label">SSL</label><br>\n <input\n bs-switch\n data-ng-model="account.MailServerOut.ssl"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </div>\n <!-- END SSL -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n <input class="btn blue-madison" type="button" value="Test" data-ng-click="test()"/>\n </form>\n </div>\n <!-- END SMTP TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'), +a.put("app/channels/mail/account/view/view.html",'<!-- BEGIN PAGE HEADER-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-envelope"></i>\n <a href="#">{{ \'APPLICATION_MAIL\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-notebook"></i>\n <a href="/channels/mail/accounts/list">{{ \'APPLICATION_ACCOUNTS\' | translate }}</a>\n <i class="fa fa-angle-right" data-ng-show="account"></i>\n </li>\n <li data-ng-show="account">\n <a href="#">{{ account.description || account.name }}</a>\n </li>\n </ul>\n </div>\n\n<!-- END PAGE HEADER-->\n\n<!-- BEGIN PAGE CONTENT-->\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar" data-ng-init="initView()">\n <!-- PORTLET main.channels -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img ng-src="assets/images/media/account.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{ account.description || account.name }}\n </div>\n <div class="profile-usertitle-job">\n {{account.email}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li ng-class="{active: $state.is(\'main.channels.mail.accounts.view.settings\')}">\n <a href="/channels/mail/accounts/view/{{account.id}}/settings">\n <i class="icon-settings"></i>\n {{\'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n <li ng-class="{active: $state.is(\'main.channels.mail.accounts.view.hooks\')}" data-ng-if="account.MailServerIn">\n <a href="/channels/mail/accounts/view/{{account.id}}/hooks">\n <i class="fa fa-code"></i>\n {{\'APPLICATION_HOOKS\' | translate}} </a>\n </li>\n <li ng-class="{active: $state.is(\'main.channels.mail.accounts.view.dispositions\')}" data-ng-if="account.MailServerIn">\n <a href="/channels/mail/accounts/view/{{account.id}}/dispositions">\n <i class="icon-target"></i>\n {{\'APPLICATION_DISPOSITIONS\' | translate}} </a>\n </li>\n <li ng-class="{active: $state.includes(\'main.channels.mail.accounts.view.actions\')}" data-ng-if="account.MailServerIn">\n <a href="/channels/mail/accounts/view/{{account.id}}/actions/list">\n <i class="icon-directions"></i>\n {{\'APPLICATION_ACTIONS\' | translate}} </a>\n </li>\n <li ng-class="{active: $state.includes(\'main.channels.mail.accounts.view.other\')}" data-ng-if="account.MailServerIn">\n <a href="/channels/mail/accounts/view/{{account.id}}/other">\n <i class="icon-equalizer"></i>\n {{\'APPLICATION_OTHER\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <div ui-view class="profile-content"></div>\n <!-- END PROFILE CONTENT -->\n </div>\n<!-- END PAGE CONTENT-->\n</div>\n'),a.put("app/channels/mail/account/wizard/wizard.html",'\n<div class="row" data-ng-init="initWizard()">\n <div class="col-md-12">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-envelope"></i>\n <a href="#">{{ \'APPLICATION_MAIL\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-notebook"></i>\n <a href="/channels/mail/accounts/list">{{ \'APPLICATION_ACCOUNTS\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACCOUNT\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_ACCOUNT_INFO\' | translate}}" canexit="formValidation(forms.info.$valid)">\n <form name="forms.info" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid && forms.info.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START ADDRESS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.address.$touched || forms.info.$submitted) && forms.info.address.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL_ADDRESS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="address" placeholder="{{\'APPLICATION_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.address" required/>\n <span data-ng-show="(forms.info.address.$touched || forms.info.$submitted) && forms.info.address.$invalid && forms.info.address.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END ADDRESS -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n </div>\n <!-- END DESCRIPTION -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" data-ng-click="goNext()"/>\n </form>\n </wz-step>\n\n <wz-step title="IMAP" canexit="formValidation(forms.in.$valid)">\n <form name="forms.in" novalidate>\n <!-- START HOST -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.in.host.$touched || forms.in.$submitted) && forms.in.host.$invalid}">\n <label class="control-label">{{\'APPLICATION_INCOMING_MAIL_SERVER\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="host" placeholder="{{\'APPLICATION_HOST\' | translate}}" class="form-control" data-ng-model="item.MailServerIn.host" required/>\n <span data-ng-show="(forms.in.host.$touched || forms.in.$submitted) && forms.in.host.$invalid && forms.in.host.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END HOST -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.in.username.$touched || forms.in.$submitted) && forms.in.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="item.MailServerIn.username" name="username" required/>\n <span data-ng-show="(forms.in.username.$touched || forms.in.$submitted) && forms.in.username.$invalid && forms.in.username.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.in.password.$touched || forms.in.$submitted) && forms.in.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.MailServerIn.password" required/>\n <span data-ng-show="(forms.in.password.$touched || forms.in.$submitted) && forms.in.password.$invalid && forms.in.password.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START PORT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.in.port.$touched || forms.in.$submitted) && forms.in.port.$invalid}">\n <label class="control-label">{{\'APPLICATION_PORT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" name="port" placeholder="{{\'APPLICATION_PORT\' | translate}}" class="form-control" data-ng-model="item.MailServerIn.port" required/>\n <span data-ng-show="(forms.in.port.$touched || forms.in.$submitted) && forms.in.port.$invalid && forms.in.port.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.in.port.$touched || forms.in.$submitted) && forms.in.port.$invalid && forms.in.port.$error.number" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PORT -->\n\n <!-- START MAILBOX -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_MAILBOX\' | translate}}</label>\n <input type="text" name="mailbox" placeholder="{{\'APPLICATION_MAILBOX\' | translate}}" class="form-control" data-ng-model="item.MailServerIn.mailbox"/>\n </div>\n <!-- END MAILBOX -->\n\n <!-- START SEARCH FILTER -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_SEARCH_FILTER\' | translate}}</label>\n <ui-select data-ng-model="item.MailServerIn.filter" name="filter" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="filter in [\'UNSEEN\'] | filter: $select.search">\n <div data-ng-bind="filter | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- START SEARCH FILTER -->\n\n <!-- START connTimeout -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.in.connTimeout.$touched || forms.in.$submitted) && forms.in.connTimeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONNECTION_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" name="connTimeout" placeholder="{{\'APPLICATION_CONNECTION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="item.MailServerIn.connTimeout" required/>\n <span data-ng-show="(forms.in.connTimeout.$touched || forms.in.$submitted) && forms.in.connTimeout.$invalid && forms.in.connTimeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.in.connTimeout.$touched || forms.in.$submitted) && forms.in.connTimeout.$invalid && forms.in.connTimeout.$error.number" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END connTimeout -->\n\n <!-- START authTimeout -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.in.authTimeout.$touched || forms.in.$submitted) && forms.in.authTimeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_AUTH_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" name="authTimeout" placeholder="{{\'APPLICATION_AUTH_TIMEOUT\' | translate}}" class="form-control" data-ng-model="item.MailServerIn.authTimeout" required/>\n <span data-ng-show="(forms.in.authTimeout.$touched || forms.in.$submitted) && forms.in.authTimeout.$invalid && forms.in.authTimeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.in.authTimeout.$touched || forms.in.$submitted) && forms.in.authTimeout.$invalid && forms.in.authTimeout.$error.number" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END authTimeout -->\n\n <!-- START DELETE -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DELETE_MAIL_FROM_SERVER\' | translate}}</label><br>\n <input\n bs-switch\n data-ng-model="item.MailServerIn.delete"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </div>\n <!-- END DELETE -->\n\n <!-- START SSL -->\n <div class="form-group">\n <label class="control-label">SSL</label><br>\n <input\n bs-switch\n data-ng-model="item.MailServerIn.ssl"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </div>\n <!-- END SSL -->\n\n <!-- START Keepalive -->\n <div class="form-group">\n <label class="control-label">Keepalive</label><br>\n <input\n bs-switch\n data-ng-model="item.MailServerIn.keepalive"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </div>\n <!-- END Keepalive -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="goNext()"/>\n </form>\n </wz-step>\n\n <wz-step title="SMTP" canexit="formValidation(forms.out.$valid)">\n <form name="forms.out" novalidate>\n <!-- START HOST -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.out.host.$touched || forms.out.$submitted) && forms.out.host.$invalid}">\n <label class="control-label">{{\'APPLICATION_OUTGOING_MAIL_SERVER\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="host" placeholder="{{\'APPLICATION_HOST\' | translate}}" class="form-control" data-ng-model="item.MailServerOut.host" required/>\n <span data-ng-show="(forms.out.host.$touched || forms.out.$submitted) && forms.out.host.$invalid && forms.out.host.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END HOST -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.out.username.$touched || forms.out.$submitted) && forms.out.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="item.MailServerOut.username" required/>\n <span data-ng-show="(forms.out.username.$touched || forms.out.$submitted) && forms.out.username.$invalid && forms.out.username.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.out.password.$touched || forms.out.$submitted) && forms.out.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.MailServerOut.password" required/>\n <span data-ng-show="(forms.out.password.$touched || forms.out.$submitted) && forms.out.password.$invalid && forms.out.password.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START PORT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.out.port.$touched || forms.out.$submitted) && forms.out.port.$invalid}">\n <label class="control-label">{{\'APPLICATION_PORT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" name="port" placeholder="{{\'APPLICATION_PORT\' | translate}}" class="form-control" data-ng-model="item.MailServerOut.port" required/>\n <span data-ng-show="(out.$touched || forms.out.$submitted) && forms.out.port.$invalid && forms.out.port.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(out.$touched || forms.out.$submitted) && forms.out.port.$invalid && forms.out.port.$error.number" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PORT -->\n\n <!-- START SSL -->\n <div class="form-group">\n <label class="control-label">SSL</label><br>\n <input\n bs-switch\n data-ng-model="item.MailServerOut.ssl"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </div>\n <!-- END SSL -->\n\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="goNext()"/>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/mail/inbox/message/info.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_INFO\' | translate }}</h3>\n</div>\n<div class="modal-body" data-ng-init="initInfo()">\n <div class="form-group" ng-if="data">\n <json-formatter json="data" open="1"></json-formatter>\n </div>\n <div class="note note-warning" data-ng-hide="data">\n <h4 class="block"></h4>\n <p>\n {{ \'MESSAGE_NO_INFO_AVAILABLE\' | translate }}\n </p>\n </div>\n\n</div>\n<div class="modal-footer">\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'),a.put("app/channels/mail/inbox/message/message.directive.html",'<div class="message">\n <div class="row">\n <div class="col-md-12">\n <span class="bold">From: </span>\n <a href="" data-ng-click="openContact(message.from[0])">{{message.from[0]}} </a>\n <br>\n <span class="bold">To: </span>\n <a href="" data-ng-click="openContact(to)" data-ng-repeat="to in message.to">{{to}}<span data-ng-if="!$last">, </span></a>\n <br>\n <span data-ng-if="message.cc.length" class="bold">Cc: </span>\n <a href="" data-ng-click="openContact(cc)" data-ng-repeat="cc in message.cc">{{cc}}<span data-ng-if="!$last">, </span></a>\n <br>\n <span data-ng-if="message.bcc.length" class="bold">Bcc: </span>\n <a href="" data-ng-click="openContact(bcc)" data-ng-repeat="cc in message.bcc">{{bcc}}<span data-ng-if="!$last">, </span></a>\n </div>\n <div class="row">\n <div class="col-md-12">\n <span class="pull-right" data-ng-if="message.User">{{\'APPLICATION_SENT_BY\' | translate}}: <strong>{{message.User.fullname}}</strong></span>\n <span class="pull-right" data-ng-if="message.auto && !message.voiceSource">{{\'APPLICATION_SENT_BY\' | translate}}: <strong>System</strong></span>\n <span class="pull-right" data-ng-if="message.auto && message.voiceSource">{{\'APPLICATION_SENT_BY\' | translate}}: <strong>Cally ²</strong>\n <a ng-click="info(message.voiceSource)"><i class="icon-info font-blue"></i>\n </a>\n </span>\n </div>\n </div>\n <br>\n <span class="todo-tasklist-date">\n <span class="pull-right" data-ng-switch="message.status" data-ng-if="message.status!==\'RECEIVED\'" uib-tooltip="{{\'APPLICATION_RETRY\' | translate}}: {{message.retry}}">\n <a ng-switch-when="SENDING" href="#" class="btn default btn-xs inactive-link blue-stripe"> {{message.status | uppercase}}\n <i class="fa fa-warning"></i>\n </a>\n <a ng-switch-when="SENT" href="#" class="btn default btn-xs inactive-link green-stripe"> {{message.status | uppercase}}\n <i class="fa fa-check"></i>\n </a>\n <a ng-switch-when="FAILED" href="#" class="btn default btn-xs red-stripe" data-ng-click="retry(message.id)"> {{message.status | uppercase}}\n <i class="fa fa-times"></i>\n </a>\n </span>\n <span class="pull-right" data-ng-if="message.status===\'RECEIVED\'">\n <a href="#" class="btn default btn-xs inactive-link green-stripe"> {{message.status | uppercase}}\n <i class="fa fa-check"></i>\n </a>\n </span>\n <i class="icon-calendar" title="{{message.updatedAt | date:\'MMM d, y HH:mm:ss\'}}"></i> <span am-time-ago="message.updatedAt"></span>\n </span>\n <hr>\n <div class="body text-left message-body" data-ng-bind="message.text"></div>\n <h5 data-ng-hide="message.text" class="media-heading"><i>{{\'MESSAGE_NO_AVAILABLE_TEXT\' | translate | lowercase}}</i></h5>\n <hr data-ng-if="message.MailAttachments.length">\n <div data-ng-repeat="mailAttachment in message.MailAttachments">\n <strong>{{mailAttachment.name}}</strong>\n <span>\n ({{mailAttachment.size | prettyBytes}})\n </span>\n <a target="_self" download="{{mailAttachment.name}}" href="api/mail/attachments/{{mailAttachment.id}}">\n <i class="icon-cloud-download"></i>\n </a>\n <a ng-if="::(mailAttachment.type.indexOf(\'image\') > -1)" ng-click="openPreview(mailAttachment.id)">\n <i class="icon-picture"></i>\n </a>\n </div>\n</div>\n'),a.put("app/channels/mail/inbox/note/note.directive.html",'<div class="note">\n <div class="row">\n <div class="col-md-6">\n <a type="button" name="button" data-ng-if="::(Auth.getCurrentUser().id == message.UserId)" data-ng-click="deleteNote()">\n <i class="fa fa-trash-o" style="color: red;"></i>\n </a>\n\n <i class="icon-calendar" title="{{message.updatedAt | date:\'MMM d, y HH:mm:ss\'}}"></i> <span am-time-ago="message.updatedAt"></span>\n </div>\n <div class="col-md-6">\n <span class="pull-right" data-ng-show="message.User">{{\'APPLICATION_ADD_BY\' | translate}}: <strong>{{message.User.fullname}}</strong></span>\n </div>\n </div>\n <hr>\n <span class="body text-left" data-ng-bind-html="message.text" style="white-space: pre-wrap;"></span>\n</div>\n'),a.put("app/channels/mail/inbox/note/note.modal.html",'<div class="modal-header" data-ng-init="initModal()">\n <h3 class="modal-title">{{ \'APPLICATION_NOTES\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n <div class="form-group">\n <textarea data-ng-model="item.text" name="text" rows="10" style="resize: none; width: 100%;"></textarea>\n </div>\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" data-ng-click="ok()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/mail/inbox/room/room.directive.html",'<!-- BEGIN TODO CONTENT -->\n<div class="todo-content">\n <div class="portlet light">\n <div class="portlet-title">\n <div class="caption">\n <button data-ng-if="form.from.length && form.to.length && mailRoom.status !== \'CLOSED\' && form.html" class="btn btn-sm btn-default green-meadow" data-ng-click="sendMail()">\n <i class="icon-paper-plane" style="color: white;"></i> {{\'APPLICATION_SEND\' | translate}}\n </button>\n <span data-ng-if="mailRoom && form.from.length && form.to.length && mailRoom.status !== \'CLOSED\' && form.html"> | </span>\n <span data-ng-if="mailRoom" class="label label-default"> #{{mailRoom.id}} {{mailRoom.status}}</span>\n <span data-ng-if="mailRoom"> | </span>\n <span data-ng-if="mailRoom && mailRoom.ParentId" class="label label-warning"> Ref: <a data-ng-click="openRoom(mailRoom.ParentId)">#{{mailRoom.ParentId}}</a></span>\n <span data-ng-if="mailRoom && mailRoom.ParentId"> | </span>\n <span data-ng-if="mailRoom" class="caption-subject font-green-sharp bold uppercase dot">{{mailRoom.subject || \'No subject\'}}</span>\n </div>\n <div class="actions">\n <button class="btn btn-icon-only yellow" data-ng-if="mailRoom" data-ng-click="loadNote()" data-ng-hide="mailRoom.status == \'CLOSED\'" title="{{\'APPLICATION_NOTES\' | translate}}">\n <i class="fa fa-sticky-note"></i>\n </button>\n <span class="btn file-upload" data-ng-hide="mailRoom.status == \'CLOSED\'"><!--THIS IS A SPAN AND NOT A BUTTON BECAUSE THE LIBRARY HAS A BUG AND WILL NOT TRIGGER IN FIREFOX BROWSER -->\n <i class="fa fa-paperclip"></i> <input type="file" data-ng-if="uploader" data-ng-disabled="mailRoom.status == \'CLOSED\'" nv-file-select uploader="uploader" multiple class="file-input" title="{{\'APPLICATION_ATTACHMENTS\' | translate}}">\n </span>\n <!-- UPDATE SECTION START -->\n <button data-ng-class="mailRoom.status == \'CLOSED\' ? \'grey-cascade\' : \'btn-success\'" class="btn btn-icon-only" data-ng-disabled="mailRoom.status == \'CLOSED\' && mailRoom.disposition" data-ng-if="mailRoom" data-ng-click="closeRoom()" title="{{\'APPLICATION_STATUS\' | translate}}">\n <i data-ng-class="mailRoom.status == \'CLOSED\' ? \'icon-target\' : \'fa fa-upload\'"></i>\n </button>\n <!-- UPDATE SECTION END -->\n <button class="btn default btn-icon-only" data-ng-if="mailRoom && mailRoom.status !== \'CLOSED\'" data-ng-click="togglePanelLeft()" title="{{\'APPLICATION_RESIZE\' | translate}}">\n <i ng-class="panelRight == \'col-md-12\' ? \'icon-size-actual\' : \'icon-size-fullscreen\'"></i>\n </button>\n </div>\n </div>\n <div class="portlet-body">\n <div class="row">\n <div data-ng-if="panelLeft" data-ng-class="panelLeft">\n <div class="form">\n <!-- START TAGS -->\n <div class="form-group" data-ng-if="mailRoom.status !== \'CLOSED\'">\n <div class="row">\n <div class="col-md-1">\n <a href="#" class="btn btn-icon-only">\n <i class="fa fa-tags" style="color: gray;"></i>\n </a>\n </div>\n <div class="col-md-11">\n <ui-select multiple data-ng-model="form.tags" theme="bootstrap" on-select="onChanged($item, $model)" on-remove="onChanged($item, $model)" data-ng-disabled="mailRoom.status == \'CLOSED\'">\n <ui-select-match placeholder="Tags...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="tag in tags | filter:$select.search" class="">\n {{tag}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n </div>\n <!-- END TAGS -->\n </div>\n\n <hr data-ng-if="mailRoom && mailRoom.status !== \'CLOSED\'">\n\n <!-- END TAGS -->\n <div id="mail-box">\n <ul class="chats">\n <li\n data-ng-switch="mailMessage.status"\n data-ng-class="{\'in\': mailMessage.status == \'RECEIVED\', \'out\': mailMessage.status == \'SENT\' || mailMessage.status == \'SENDING\' || mailMessage.status == \'FAILED\' || mailMessage.status == \'NOTE\'}"\n data-ng-repeat="mailMessage in mailRoom.MailMessages | orderBy:\'-createdAt\'">\n <div class="avatar" data-ng-class="message.UserId ? \'pretty-avatar\' : \'pretty-avatar-v\'">\n <ng-letter-avatar\n data-ng-if="mailMessage.UserId"\n height="40"\n width="40"\n fontsize="25"\n data="{{mailMessage.User.fullname}}"\n avatarcustombgcolor="#B0B0B0"\n avatarcustomborder="border:2px solid #3399CC"\n charCount="2"\n shape="round"></ng-letter-avatar>\n <ng-letter-avatar\n data-ng-if="!mailMessage.UserId"\n height="40"\n width="40"\n fontsize="25"\n data="{{mailMessage.from[0]}}"\n avatarcustombgcolor="#B0B0B0"\n avatarcustomborder="border:2px solid #EA4C61"\n charCount="1"\n shape="round"></ng-letter-avatar>\n </div>\n <mail-note message="mailMessage" ng-switch-when="NOTE"></mail-note>\n <mail-message message="mailMessage" list-id="mailRoom.MailAccount.ListId" ng-switch-default></mail-message>\n </li>\n </ul>\n </div>\n </div>\n <div data-ng-class="panelRight">\n <div class="note note-info" data-ng-if="mailRoom && mailRoom.status == \'CLOSED\'">\n <h4 class="block"><i class="icon-info"></i> {{\'MESSAGE_MAIL_ROOM_CLOSED\' | translate}}!</h4>\n <p>\n <strong>{{\'MESSAGE_MAIL_ROOM_CLOSED_DETAILS\' | translate}}.</strong>\n </p>\n <hr>\n <p>\n <i class="icon-target"></i> {{\'APPLICATION_DISPOSITION\' | translate}}: <strong>{{mailRoom.disposition}}</strong>\n </p>\n <p>\n <i class="icon-calendar"></i> {{\'APPLICATION_UPDATED_AT\' | translate}}: <strong>{{mailRoom.updatedAt | date:\'medium\'}}</strong> (<span am-time-ago="mailRoom.updatedAt"></span>)\n </p>\n </div>\n <form name="forms.compose" data-ng-submit="sendMail()" class="form-horizontal" novalidate>\n <!-- START HEAD -->\n <div class="form">\n <v-accordion class="vAccordion--default" ng-if="mailRoom.status !== \'CLOSED\'">\n <v-pane expanded="expanded">\n <v-pane-header>\n <i class="icon-people"></i> From: {{form.from[0]}}, To: {{form.to[0].email}} <span ng-if="form.to.length > 1">(+{{form.to.length - 1}})</span>\n </v-pane-header>\n <v-pane-content>\n <!-- START FROM -->\n <div class="form-group" data-ng-if="mailRoom.status !== \'CLOSED\'">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-1">\n <label class="control-label">From:</label>\n </div>\n <div class="col-md-11">\n <ui-select data-ng-model="form.from[0]" data-ng-change="setList($select.selected.ListId)" theme="bootstrap" name="from" required>\n <ui-select-match placeholder="From...">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="mailAccount.address as mailAccount in mailAccounts | filter: $select.search">\n <div data-ng-bind-html="mailAccount.name | highlight: $select.search"></div>\n <small data-ng-bind-html="mailAccount.address | highlight: $select.search"></small>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n </div>\n </div>\n <!-- END FROM -->\n\n <!-- MAIL TO -->\n <div class="form-group" data-ng-if="mailRoom.status !== \'CLOSED\'">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-1">\n <label class="control-label">To:</label>\n </div>\n <div class="col-md-11">\n <tags-input ng-model="form.to" type="email" display-property="email">\n <auto-complete source="getContacts($query)"></auto-complete>\n </tags-input>\n </div>\n </div>\n </div>\n </div>\n <!-- END TO -->\n\n <!-- START CC -->\n <div class="form-group" data-ng-if="mailRoom.status !== \'CLOSED\'">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-1">\n <label class="control-label">Cc:</label>\n </div>\n <div class="col-md-11">\n <tags-input ng-model="form.cc" type="email" display-property="email">\n <auto-complete source="getContacts($query)"></auto-complete>\n </tags-input>\n </div>\n </div>\n </div>\n </div>\n <!-- END CC -->\n\n <!-- START BCC -->\n <div class="form-group" data-ng-if="mailRoom.status !== \'CLOSED\'">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-1">\n <label class="control-label">Bcc:</label>\n </div>\n <div class="col-md-11">\n <tags-input ng-model="form.bcc" type="email" display-property="email">\n <auto-complete source="getContacts($query)"></auto-complete>\n </tags-input>\n </div>\n </div>\n </div>\n </div>\n <!-- END BCC -->\n\n <!-- START SUBJECT -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.compose.subject.$invalid && forms.compose.$submitted}" data-ng-if="mailRoom.status !== \'CLOSED\'">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-1">\n <label class="control-label">Subj:</label>\n </div>\n <div class="col-md-11">\n <input type="text" name="subject" class="form-control todo-taskbody-taskdesc" placeholder="Subject..." rows="8" data-ng-model="form.subject">\n <span data-ng-if="forms.compose.subject.$invalid && forms.compose.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n </div>\n <!-- END SUJBECT -->\n </v-pane-content>\n </v-pane>\n </v-accordion>\n\n <!-- START ATTACH -->\n <div class="form-group" data-ng-if="uploader && (mailRoom.status !== \'CLOSED\')">\n <div class="col-md-12">\n <hr ng-if="uploader.queue.length">\n <table class="table">\n <tbody>\n <tr ng-repeat="item in uploader.queue">\n <td style="border-top:none" rowspan="{{uploader.queue.length}}" ng-if="(!$index)">\n {{\'APPLICATION_ATTACHMENTS\' | translate}}:\n </td>\n <td style="border-top:none"><strong>{{ item.file.name }}</strong></td>\n <td style="border-top:none" ng-show="uploader.isHTML5" nowrap>{{ item.file.size/1024/1024|number:2 }} MB</td>\n <td style="border-top:none" ng-show="uploader.isHTML5">\n <div class="progress" style="margin-bottom: 0;">\n <div class="progress-bar" role="progressbar" ng-style="{ \'width\': item.progress + \'%\' }"></div>\n </div>\n </td>\n <td style="border-top-style:none" class="text-center">\n <span ng-show="item.isSuccess"><i class="glyphicon glyphicon-ok"></i></span>\n <span ng-show="item.isCancel"><i class="glyphicon glyphicon-ban-circle"></i></span>\n <span ng-show="item.isError"><i class="glyphicon glyphicon-remove"></i></span>\n </td>\n <td style="border-top-style:none" nowrap>\n <button type="button" class="btn btn-danger btn-xs" data-ng-click="item.remove()">\n <span class="glyphicon glyphicon-trash"></span> {{\'APPLICATION_REMOVE\' | translate}}\n </button>\n </td>\n </tr>\n </tbody>\n </table>\n <div>\n </div>\n </div>\n </div>\n <!-- END ATTACH -->\n\n <!-- START CANNED -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.compose.subject.$invalid && forms.compose.$submitted}" data-ng-if="mailRoom.status !== \'CLOSED\'">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-1">\n <a href="#" class="btn btn-icon-only">\n <i class="fa fa-magic" style="color: gray;"></i>\n </a>\n </div>\n <div class="col-md-11">\n <input type="text"\n data-ng-model="modelOptions.selectedAnswer"\n uib-typeahead="key for key in getAnswers($viewValue)"\n placeholder="Canned answers.."\n typeahead-loading="loadingLocations"\n typeahead-no-results="noResults"\n typeahead-on-select="onSelectAnswer($item)"\n class="form-control">\n <i ng-show="loadingLocations" class="glyphicon glyphicon-refresh"></i>\n <div ng-show="noResults">\n <i class="glyphicon glyphicon-remove"></i> No Results Found\n </div>\n <span data-ng-if="forms.compose.subject.$invalid && forms.compose.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n </div>\n <!-- END CANNED -->\n\n <!-- START HTML -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.compose.text.$invalid && forms.compose.$submitted}" data-ng-if="mailRoom.status !== \'CLOSED\'">\n <div class="col-md-12">\n <div ckeditor="options" ng-model="form.html" ready="onCKReady($instance)"></div>\n <span data-ng-if="forms.compose.text.$invalid && forms.compose.$submitted" class="help-block help-block-error">\n'+" <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n </span>\n </div>\n </div>\n <!-- END HTML -->\n\n </div>\n </form>\n </div>\n </div>\n </div>\n</div>\n</div>\n<!-- END TODO CONTENT -->\n"), +a.put("app/channels/mail/inbox/status/status.modal.html",'<div class="modal-header">\n <button data-ng-if="modal.dismissable" type="button" data-ng-click="$dismiss()" class="close">×</button>\n <h4 data-ng-if="modal.title" data-ng-bind="modal.title | translate" class="modal-title"></h4>\n</div>\n<div class="modal-body">\n <p data-ng-if="modal.text && !closed" ng-bind="modal.text | translate"></p>\n <form name="form" novalidate data-ng-init="initDisposition()">\n <div class="form-group">\n <ui-select data-ng-model="item.disposition" name="disposition" theme="bootstrap" data-ng-disabled="!dispositions.length" required>\n <ui-select-match placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="disposition.name as disposition in dispositions | filter: $select.search">\n <div ng-bind-html="disposition.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="note note-warning" data-ng-if="dispositions.length < 1">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_DISPOSITIONS_AVAILABLE\' | translate }}\n </p>\n </div>\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" data-ng-click="ok()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/mail/inbox/view/account/list/list.html",'<!-- BEGIN Portlet PORTLET-->\n<div class="portlet light" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption">\n <div class="btn-group btn-group-solid">\n <button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'NEW\'" uib-uncheckable>NEW</button>\n </div>\n <div class="btn-group btn-group-solid">\n <button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'OPEN\'" uib-uncheckable>OPEN</button>\n </div>\n <div class="btn-group btn-group-solid">\n <button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'PENDING\'" uib-uncheckable>PENDING</button>\n </div>\n <div class="btn-group btn-group-solid">\n <button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'CLOSED\'" uib-uncheckable>CLOSED</button>\n </div>\n </div>\n <div class="actions">\n <a href="#" class="btn btn-icon-only default" data-ng-click="getPage();">\n <i class="fa fa-refresh"></i>\n </a>\n <a href="#" class="btn btn-icon-only red" data-ng-click="deleteItems();" data-ng-show="id.length && isAdmin">\n <i class="fa fa-trash"></i>\n </a>\n <a href="#" class="btn btn-icon-only btn-success" data-ng-click="disposeItems();" data-ng-show="id.length">\n <i class="fa fa-upload"></i>\n </a>\n <a href="#" class="btn btn-icon-only blue" data-ng-click="tagItems();" data-ng-show="id.length">\n <i class="fa fa-tags"></i>\n </a>\n <a href="#" class="btn btn-icon-only green" data-ng-click="openRoom(null, \'New Message\')">\n <i class="fa fa-plus"></i>\n </a>\n </div>\n </div>\n <div class="portlet-title" data-ng-show="tags.length">\n <!-- START TAGS -->\n <div class="form-group">\n <div class="row">\n <div class="col-md-1">\n <a href="#" class="btn btn-icon-only">\n <i class="fa fa-tags" style="color: gray;"></i>\n </a>\n </div>\n <div class="col-md-11">\n <ui-select multiple data-ng-model="query.tags" theme="bootstrap" on-select="onChanged($item, $model)" on-remove="onChanged($item, $model)">\n <ui-select-match placeholder="Search by tag...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="tag in tags | filter:$select.search">\n {{tag}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n </div>\n <!-- END TAGS -->\n </div>\n <div class="portlet-body">\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="spinner-grid" spinner-start-active="false"></span>\n <!-- END UI-GRID SPINNER -->\n\n <!-- START TABLE -->\n <div ui-grid="gridOptions" class="ui-grid" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END Portlet PORTLET-->\n'),a.put("app/channels/mail/inbox/view/view.agents.modal.html",'<div class="modal-header" data-ng-init="initModal()">\n <h3 class="modal-title">{{ \'APPLICATION_AGENTS\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <!-- START TRANSPORT -->\n <div class="form-group">\n <form name="form" novalidate>\n <!-- START TRANSPORT -->\n <div class="form-group">\n <ui-select multiple name="agents" data-ng-model="item.agents" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_AGENTS\' | translate}}">{{$item.fullname}}</ui-select-match>\n <ui-select-choices repeat="agent.id as agent in agents | filter: $select.search">\n {{agent.fullname}}\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END TRANSPORT -->\n </form>\n </div>\n <!-- END TRANSPORT -->\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" data-ng-click="ok()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/mail/inbox/view/view.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-envelope"></i>\n <a href="#">{{ \'APPLICATION_MAIL\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-note"></i>\n <a href="#">{{ \'APPLICATION_INBOX\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row inbox">\n <div class="">\n\n </div>\n <div class="col-md-3">\n <ul class="inbox-nav margin-bottom-10">\n <li class="compose-btn">\n <a href="javascript:;" data-ng-click="hideAccounts=!hideAccounts" data-title="Compose" class="btn green">\n <i class="icon-list"></i> {{hideAccounts ? \'APPLICATION_SHOW_ACCOUNTS\' : \'APPLICATION_HIDE_ACCOUNTS\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $stateParams.id == mailAccount.id}" data-ng-if="!hideAccounts" data-ng-repeat="mailAccount in mailAccounts">\n <a href="/channels/mail/inbox/view/account/{{mailAccount.id}}/list" class="btn">\n <i class="icon-notebook"></i> {{mailAccount.name}}\n </a>\n <b></b>\n </li>\n </ul>\n </div>\n <div data-ng-class="{\'col-md-9\':!hideAccounts,\'col-md-12\':hideAccounts}" data-ng-init="initView()">\n <!-- BEGIN PROFILE CONTENT -->\n <div class="room-content">\n <div ui-view>\n <div class="note note-info">\n <h4 class="block">Info! {{\'APPLICATION_NO_ACCOUNT_SELECTED\' | translate}}</h4>\n </div>\n </div>\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n\n</div>\n'),a.put("app/channels/mail/inbox/view/view.tags.modal.html",'<div class="modal-header" data-ng-init="initModal()">\n <h3 class="modal-title">{{ \'APPLICATION_TAGS\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <!-- START TRANSPORT -->\n <div class="form-group">\n <form name="form" novalidate>\n <!-- START TAGS -->\n <div class="form-group">\n <ui-select multiple data-ng-model="item.tags" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_TAGS\' | translate}}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="tag in tags | filter: $select.search">\n {{tag}}\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END TAGS -->\n </form>\n </div>\n <!-- END TRANSPORT -->\n</div>\n<div class="modal-footer">\n <button type="button" class="btn" data-ng-class="button.class" data-ng-click="button.click()"data-ng-repeat="button in modal.buttons">{{button.text | translate}}</button>\n <!-- <button class="btn btn-success" type="button" data-ng-click="ok()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button> -->\n</div>\n'),a.put("app/channels/mail/inbox/view/view.templates.modal.html",'<div class="modal-header" data-ng-init="initModal()">\n <h3 class="modal-title">{{ \'APPLICATION_TEMPLATES\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <div class="note note-info" data-ng-show="!templates.length">\n <h4 class="block">Info!</h4>\n <p>\n {{\'MESSAGE_NO_TEMPLATES_AVAILABLE\' | translate}}\n </p>\n </div>\n <form name="form" data-ng-show="templates.length" novalidate>\n <div class="form-group">\n <ui-select data-ng-model="item.template" theme="bootstrap">\n <ui-select-match placeholder="Select a template in the list or search his name...">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="template in templates | propsFilter: {name: $select.search}">\n <div ng-bind-html="template.name | highlight: $select.search"></div>\n <small data-ng-show="template.description">\n {{\'APPLICATION_DESCRIPTION\' | translate}}: {{template.description}}\n </small>\n </ui-select-choices>\n </ui-select>\n </div>\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" data-ng-click="ok()" data-ng-show="templates.length">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/mail/queue/list/list.create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_QUEUE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" data-ng-pattern="settings.patternName" required />\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$invalid && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$invalid && form.name.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START STRATEGY -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.strategy.$touched || form.$submitted) && form.strategy.$invalid}">\n <label class="control-label">{{\'APPLICATION_STRATEGY\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.strategy" name="strategy" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | uppercase}}</ui-select-match>\n <ui-select-choices repeat="strategy in strategies | filter: $select.search">\n <div ng-bind-html="strategy.toUpperCase() | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form.strategy.$touched || form.$submitted) && form.strategy.$invalid && form.strategy.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END STRATEGY -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.timeout.$touched || form.$submitted) && form.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_AGENT_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="0" name="timeout" placeholder="Timeout" class="form-control" data-ng-model="item.timeout" required min="1"/>\n <span data-ng-show="(form.timeout.$touched || form.$submitted) && form.timeout.$invalid && form.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START AGENTS-->\n <div class="form-body" data-ng-init="getTeams()">\n <label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n <div class="input-group input-small mbottom20">\n <input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="item.penalty" readonly>\n <div class="spinner-buttons input-group-btn btn-group-vertical">\n <button type="button" class="btn spinner-up btn-xs blue" data-ng-click="item.penalty=item.penalty+1">\n <i class="fa fa-angle-up"></i>\n </button>\n <button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!item.penalty" data-ng-click="item.penalty=item.penalty-1">\n <i class="fa fa-angle-down"></i>\n </button>\n </div>\n </div>\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-team">\n </div>\n </div>\n </div>\n <!-- END AGENTS-->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/mail/queue/list/list.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-envelope"></i>\n <a href="#">{{ \'APPLICATION_MAIL\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="#">{{ \'APPLICATION_QUEUES\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_QUEUES\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group" data-ng-if="Auth.isAdmin()">\n <a class="btn green-jungle" href="#" data-ng-click="createItem()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_QUEUE\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/mail/queue/view/view.agents.html",'<div class="row" data-ng-init="getTeams()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_AGENTS\' | translate}}</span>\n </div>\n </div>\n <div class="note note-warning" data-ng-hide="teams.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_AVAILABLE_TEAMS\' | translate }}\n </p>\n </div>\n <div class="portlet-body">\n <!-- BEGIN FORM-->\n <form action="index.html" class="form-horizontal form-row-seperated">\n <div class="form-body">\n <label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n <div class="input-group input-small mbottom20">\n <input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="queue.penalty" readonly>\n <div class="spinner-buttons input-group-btn btn-group-vertical">\n <button type="button" class="btn spinner-up btn-xs blue" data-ng-click="queue.penalty=queue.penalty+1">\n <i class="fa fa-angle-up"></i>\n </button>\n <button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!queue.penalty" data-ng-click="queue.penalty=queue.penalty-1">\n <i class="fa fa-angle-down"></i>\n </button>\n </div>\n </div>\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-team">\n </div>\n </div>\n </div>\n </form>\n <!-- END FORM-->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/mail/queue/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getQueue()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-envelope"></i>\n <a href="#">{{ \'APPLICATION_MAIL\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="/channels/mail/queues/list">{{ \'APPLICATION_QUEUES\' | translate }}</a>\n <i data-ng-show="queue" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="queue">\n <a href="#">{{queue.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET main.channels -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/queue.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{queue.name}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.channels.mail.queues.view.settings\')}">\n <a data-ng-href="/channels/mail/queues/view/{{queue.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.channels.mail.queues.view.agents\')}" data-ng-show="Auth.getCurrentUser().role === \'admin\'">\n <a data-ng-href="/channels/mail/queues/view/{{queue.id}}/agents">\n <i class="icon-people"></i>\n {{ \'APPLICATION_AGENTS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET main.channels -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n </div>\n <!-- END PAGE CONTENT-->\n'),a.put("app/channels/mail/queue/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateMailQueue()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="queue.name" data-ng-pattern="settings.patternName" required />\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid && forms.general.name.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="queue.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START TIMEOUT -->\n <div class="form-group">\n <label class="control-label">Agent Timeout</label>\n <input type="number" name="timeout" placeholder="Timeout" class="form-control" min="1" data-ng-model="queue.timeout"/>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START STRATEGY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.strategy.$touched || forms.general.$submitted) && forms.general.strategy.$invalid}">\n <label class="control-label">{{\'APPLICATION_STRATEGY\' | translate}}</label>\n <ui-select data-ng-model="queue.strategy" name="strategy" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | uppercase}}</ui-select-match>\n <ui-select-choices repeat="strategy in strategies | filter: $select.search">\n <div ng-bind-html="strategy.toUpperCase() | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END STRATEGY -->\n\n <input data-ng-if="Auth.isAdmin()" class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/mail/realtime/view/agent/agent.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initAgents()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns class="ui-grid" ui-grid-tree-view ui-grid-expandable-row ui-grid-pagination ui-grid-auto-resize>\n <span us-spinner spinner-key="grid-spinner" spinner-start-active="true"></span>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/mail/realtime/view/agent/agent.modal.info.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_INTERFACE_INFO\' | translate }}</h3>\n</div>\n<div class="modal-body">\n<div data-ng-if="agent.ipaddr" class="well">\n <div>{{agent.ipaddr}}:{{agent.port}}</div>\n <div>{{agent.fullcontact}}</div>\n <div>{{agent.useragent}}</div>\n <div>{{agent.lastms}}</div>\n</div>\n<div data-ng-if="!agent.ipaddr" class="alert alert-danger" role="alert">\n {{\'MESSAGE_NO_AVAILABLE_INFO\' | translate}}\n</div>\n</div>\n<div class="modal-footer">\n <button class="btn default" type="button" ng-click="close()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'),a.put("app/channels/mail/realtime/view/agent/queue.modal.add.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_JOIN_QUEUE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <div class="form-group row">\n <label class="col-md-2 control-label" style="margin-top: 7px;">{{\'APPLICATION_QUEUE\' | translate}}:</label>\n <div class="col-md-10">\n <ui-select multiple ng-model="item.queues" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_QUEUE\' | translate}}">{{$item.name}}</ui-select-match>\n <ui-select-choices repeat="queue.id as queue in queues | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n</div>\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/mail/realtime/view/application/application.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initApplications()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns class="ui-grid" ui-grid-auto-resize>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/mail/realtime/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-envelope"></i>\n <a href="#">{{ \'APPLICATION_MAIL\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-energy"></i>\n <a href="#">{{ \'APPLICATION_REALTIME\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <div>\n <nav class="navbar navbar-default" role="navigation">\n <div class="collapse navbar-collapse">\n <ul class="nav navbar-nav">\n <li data-ng-class="{\'active\': $state.is(\'main.channels.mail.realtime.view.agents\')}">\n <a href="/channels/mail/realtime/view/agents">\n {{\'APPLICATION_AGENTS\' | translate}}\n </a>\n </li>\n <li data-ng-class="{\'active\': $state.is(\'main.channels.mail.realtime.view.applications\')}">\n <a href="/channels/mail/realtime/view/applications">\n {{\'APPLICATION_APPLICATIONS\' | translate}}\n </a>\n </li>\n <li>\n <a href="#">\n <b>|{{\'APPLICATION_SHOW_TIMERS\' | translate}} </b><input\n bs-switch\n class="form-control"\n ng-model="showTimers"\n type="checkbox"\n name="showTimers"\n switch-active="{{ timerSwitch.isActive }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ timerSwitch.onColor }}"\n switch-off-color="{{ timerSwitch.offColor }}"\n switch-animate="{{ timerSwitch.animate }}"\n switch-size="{{ timerSwitch.size }}"\n switch-label="{{ timerSwitch.label }}"\n switch-icon="{{ timerSwitch.icon }}"\n switch-radio-off="{{ timerSwitch.radioOff }}"\n switch-label-width="{{ timerSwitch.labelWidth }}"\n switch-handle-width="{{ timerSwitch.handleWidth }}"><b>|</b>\n </a>\n </li>\n </ul>\n </div>\n </nav>\n </div>\n\n <div ui-view></div>\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/mail/realtime/view/view.queue.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initAgents()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div id="grid1" ui-grid="gridOptions" ui-grid-resize-columns ui-grid-tree-view class="grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/openchannel/account/list/list.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-globe"></i>\n <a href="#">{{ \'APPLICATION_OPEN_CHANNEL\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-notebook"></i>\n <a href="/channels/openchannel/accounts/list">{{ \'APPLICATION_ACCOUNTS\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACCOUNTS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group">\n <a class="btn btn-default" href="#" data-ng-click="gridOptions.getPage();">\n <i class="icon-reload"></i>\n </a>\n </div>\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="/channels/openchannel/accounts/wizard">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_ACCOUNT\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'), +a.put("app/channels/openchannel/account/view/action/list/list.html",'<div class="row" data-ng-init="initActions()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_ACTIONS\' | translate}}</span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="/channels/openchannel/accounts/view/{{account.id}}/actions/wizard" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_ACTION\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/openchannel/account/view/action/view/view.html",'\n<div class="row" data-ng-init="initAction()">\n <div class="col-md-12">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-directions font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACTION\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <form name="forms.settings" ng-submit="updateItem()" novalidate>\n <!-- START APP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app.$touched || forms.settings.$submitted) && forms.settings.app.$invalid}">\n <label class="control-label">{{ \'APPLICATION_APPLICATION\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.app" name="app" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_APPLICATION\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="app.value as app in apps | filter: $select.search">\n <div ng-bind-html="app.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.app.$touched || forms.settings.$submitted) && forms.settings.app.$invalid && forms.settings.app.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END APP -->\n\n <div class="app-settings" ng-slide-down="application.app === \'queue\'" lazy-render duration="1" data-ng-init="getQueues()">\n <!-- START QUEUE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.queue.$touched || forms.settings.$submitted) && forms.settings.queue.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.OpenchannelQueueId" name="queue" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="queue.id as queue in queues | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="queues.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_QUEUES_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/channels/openchannel/queues/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.settings.queue.$touched || forms.settings.$submitted) && forms.settings.queue.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n <span data-ng-show="(forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'agent\'" lazy-render duration="1" data-ng-init="getAgents()">\n <!-- START AGENT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.agent.$touched || forms.settings.$submitted) && forms.settings.agent.$invalid}">\n <label class="control-label">{{\'APPLICATION_AGENT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.UserId" name="agent" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.fullname}}</ui-select-match>\n <ui-select-choices repeat="agent.id as agent in agents | filter: $select.search">\n <div ng-bind-html="agent.fullname | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="agents.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_AGENTS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/staff/agents/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.settings.agent.$touched || forms.settings.$submitted) && forms.settings.agent.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END AGENT -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n <span data-ng-show="(forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'sendMail\'" lazy-render duration="1" data-ng-init="getMailAccounts();getTemplates()">\n <!-- START SENDMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="email" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2" min="1" required/>\n <span data-ng-show="(forms.settings.from.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.mail.$touched || forms.settings.$submitted) && forms.settings.account.$invalid}">\n <label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in mailAccounts | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.account.$touched || forms.settings.$submitted) && forms.settings.account.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.template.$touched || forms.settings.$submitted) && forms.settings.template.$invalid}">\n <label class="control-label">{{\'APPLICATION_TEMPLATE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data9" name="template" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n <div ng-bind-html="template.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.template.$touched || forms.settings.$submitted) && forms.settings.template.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SENDMAIL -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1" data-ng-init="getSmsAccounts()">\n <!-- START SENDSms -->\n <div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1">\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.to.$touched || forms.settings.$submitted) && forms.settings.to.$invalid}">\n <label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" ng-pattern="/^[\\+]?[0-9]+$/" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2" required/>\n <span data-ng-show="(forms.settings.to.$touched || forms.settings.$submitted) && forms.settings.to.$invalid && forms.settings.to.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.account.$touched || forms.settings.$submitted) && forms.settings.account.$invalid}">\n <label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in smsAccounts | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.account.$touched || forms.settings.$submitted) && forms.settings.account.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.text.$touched || forms.text.$submitted) && forms.settings.text.$invalid}">\n <label class="control-label">{{\'APPLICATION_TEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <textarea id="text" class="form-control maxlength-handler" maxlength="160" name="text" data-ng-model="application.data6" required></textarea>\n <span data-ng-show="(forms.settings.text.$touched || forms.settings.$submitted) && forms.settings.text.$invalid && forms.settings.text.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <!-- END SENDSms -->\n </div>\n\n <!-- START INTERVAL_TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.intType.$touched || forms.settings.$submitted) && forms.settings.intType.$invalid}">\n <label class="control-label">{{ \'APPLICATION_INTERVAL_TYPE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.intType" theme="bootstrap" name="intType" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="intType.value as intType in $application.intTypes | filter: $select.search">\n {{ intType.name | translate }}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.intType.$touched || forms.settings.$submitted) && forms.settings.intType.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVAL_TYPE -->\n\n <div class="app-settings" ng-slide-down="application.intType === \'custom\'" lazy-render duration="1">\n <!-- START TIME -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n <div class="input-group input-large">\n <fieldset class="pull-left" ng-disabled="application.alwaysTime">\n <uib-timepicker name="t_from" data-ng-model="application.t_from" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker>\n </fieldset>\n <div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n <fieldset ng-disabled="application.alwaysTime"><uib-timepicker name="t_to" data-ng-model="application.t_to" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker></fieldset>\n <!-- <label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="application.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label> -->\n </div>\n </div>\n <!-- END TIME -->\n\n <!-- START ALWAYS -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ALWAYS\' | translate }}</label>\n <div class="input-group input-large">\n <label class="control-label pointer-cursor">\n <input\n bs-switch\n data-ng-model="application.alwaysTime"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n <!-- <input type="checkbox" data-ng-model="application.alwaysTime"> -->\n </label>\n </div>\n </div>\n <!-- END ALWAYS -->\n\n <!-- START WEEKDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.wd_from" theme="bootstrap" name="wd_from">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{ weekDay.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.wd_to" theme="bootstrap" name="wd_to">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{ weekDay.name | translate }}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END WEEKDAY -->\n\n <!-- START MONTHDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.md_from" theme="bootstrap" name="md_from">\n <ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_to && application.md_to!==\'always\' && monthDay>application.md_to && monthDay!==\'always\'">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.md_to" theme="bootstrap" name="md_to">\n <ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_from && application.md_from!==\'always\' && monthDay<application.md_from && monthDay!==\'always\'">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTHDAY -->\n\n <!-- START MONTH -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.m_from" theme="bootstrap" name="m_from">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{ month.name | translate }}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.m_to" theme="bootstrap" name="m_to">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{ month.name | translate }}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTH -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.intType === \'list\'" lazy-render duration="1" data-ng-init="getIntervals()">\n\n <!-- START INTERVALS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.IntervalId.$touched || forms.settings.$submitted) && forms.settings.IntervalId.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERVALS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.IntervalId" theme="bootstrap" name="IntervalId" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="interval.id as interval in intervals | filter: $select.search">\n {{ interval.name}}\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="intervals.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_INTERVAL_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/intervals/list">{{\'APPLICATION_INTERVALS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.settings.IntervalId.$touched || forms.settings.$submitted) && forms.settings.IntervalId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVALS -->\n\n </div>\n <button class="btn green-haze" type="submit">{{\'APPLICATION_UPDATE\' | translate}}</button>\n </form>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/openchannel/account/view/action/wizard/wizard.html",'<div class="row" data-ng-init="initWizard()">\n <div class="col-md-12">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-directions font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACTION\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_APPLICATION\' | translate}}" canexit="formValidation(forms.action.$valid)">\n <form name="forms.action" novalidate>\n <!-- START APP -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.action.$submitted && forms.action.app.$invalid}">\n <label class="control-label">{{ \'APPLICATION_APPLICATION\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.app" name="app" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_APPLICATION\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="app.value as app in apps | filter: $select.search">\n <div ng-bind-html="app.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.action.$submitted && forms.action.app.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END APP -->\n\n <div class="app-settings" ng-slide-down="application.app === \'agent\'" lazy-render duration="1" data-ng-init="getAgents()">\n <!-- START AGENT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.agent.$touched || forms.action.$submitted) && forms.action.agent.$invalid}">\n <label class="control-label">{{\'APPLICATION_AGENT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.UserId" name="agent" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.fullname}}</ui-select-match>\n <ui-select-choices repeat="agent.id as agent in agents | filter: $select.search">\n <div ng-bind-html="agent.fullname | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="agents.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_AGENTS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/staff/agents/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.action.agent.$touched || forms.action.$submitted) && forms.action.agent.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END AGENT -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n <span data-ng-show="(forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid && forms.action.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'queue\'" lazy-render duration="1" data-ng-init="getQueues()">\n <!-- START QUEUE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.queue.$touched || forms.action.$submitted) && forms.action.queue.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.OpenchannelQueueId" name="queue" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="queue.id as queue in queues | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="queues.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_QUEUES_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/channels/openchannel/queues/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.action.queue.$touched || forms.action.$submitted) && forms.action.queue.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n <span data-ng-show="(forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid && forms.action.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'sendMail\'" lazy-render duration="1" data-ng-init="getMailAccounts();getTemplates()">\n <!-- START SENDMAIL -->\n <div class="app-settings" ng-slide-down="application.app === \'sendMail\'" lazy-render duration="1">\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="email" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2" min="1" required/>\n <span data-ng-show="(forms.action.from.$touched || forms.action.$submitted) && forms.action.timeout.$invalid && forms.action.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.mail.$touched || forms.action.$submitted) && forms.action.account.$invalid}">\n <label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in mailAccounts | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.template.$touched || forms.action.$submitted) && forms.action.template.$invalid}">\n <label class="control-label">{{\'APPLICATION_TEMPLATE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data9" name="template" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n <div ng-bind-html="template.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.template.$touched || forms.action.$submitted) && forms.action.template.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SENDMAIL -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1" data-ng-init="getSmsAccounts()">\n <!-- START SENDSms -->\n <div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1">\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.to.$touched || forms.action.$submitted) && forms.action.to.$invalid}">\n <label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" ng-pattern="/^[\\+]?[0-9]+$/" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2" required/>\n <span data-ng-show="(forms.action.to.$touched || forms.action.$submitted) && forms.action.to.$invalid && forms.action.to.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$invalid}">\n <label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in smsAccounts | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.text.$touched || forms.action.$submitted) && forms.action.text.$invalid}">\n <label class="control-label">{{\'APPLICATION_TEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <textarea id="text" class="form-control maxlength-handler" maxlength="160" name="text" data-ng-model="application.data6" required></textarea>\n <span data-ng-show="(forms.action.text.$touched || forms.action.$submitted) && forms.action.text.$invalid && forms.action.text.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <!-- END SENDSms -->\n </div>\n\n <!-- START INTERVAL_TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.intType.$touched || forms.action.$submitted) && forms.action.intType.$invalid}">\n <label class="control-label">{{ \'APPLICATION_INTERVAL_TYPE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.intType" theme="bootstrap" name="intType" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="intType.value as intType in $application.intTypes | filter: $select.search">\n {{ intType.name | translate }}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.intType.$touched || forms.action.$submitted) && forms.action.intType.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVAL_TYPE -->\n\n <div class="app-settings" ng-slide-down="application.intType === \'custom\'" lazy-render duration="1">\n <!-- START TIME -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n <div class="input-group input-large">\n <fieldset class="pull-left" ng-disabled="application.alwaysTime">\n <uib-timepicker name="t_from" data-ng-model="application.t_from" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker>\n </fieldset>\n <div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n <fieldset ng-disabled="application.alwaysTime">\n <uib-timepicker name="t_to" data-ng-model="application.t_to" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker>\n </fieldset>\n <!-- <label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="application.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label> -->\n </div>\n </div>\n <!-- END TIME -->\n\n <!-- START ALWAYS -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ALWAYS\' | translate }}</label>\n <div class="input-group input-large">\n <label class="control-label pointer-cursor">\n <input\n bs-switch\n data-ng-model="application.alwaysTime"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n <!-- <input type="checkbox" data-ng-model="application.alwaysTime"> -->\n </label>\n </div>\n </div>\n <!-- END ALWAYS -->\n\n <!-- START WEEKDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.wd_from" theme="bootstrap" name="wd_from">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{ weekDay.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.wd_to" theme="bootstrap" name="wd_to">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{ weekDay.name | translate }}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END WEEKDAY -->\n\n <!-- START MONTHDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.md_from" theme="bootstrap" name="md_from">\n <ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_to && application.md_to!==\'always\' && monthDay>application.md_to && monthDay!==\'always\'">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.md_to" theme="bootstrap" name="md_to">\n <ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_from && application.md_from!==\'always\' && monthDay<application.md_from && monthDay!==\'always\'">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTHDAY -->\n\n <!-- START MONTH -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.m_from" theme="bootstrap" name="m_from">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{ month.name | translate }}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.m_to" theme="bootstrap" name="m_to">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{ month.name | translate }}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTH -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.intType === \'list\'" lazy-render duration="1" data-ng-init="getIntervals()">\n\n <!-- START INTERVALS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.IntervalId.$touched || forms.action.$submitted) && forms.action.IntervalId.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERVALS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.IntervalId" theme="bootstrap" name="IntervalId" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="interval.id as interval in intervals | filter: $select.search">\n {{ interval.name}}\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="intervals.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_INTERVAL_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/intervals/list">{{\'APPLICATION_INTERVALS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.action.IntervalId.$touched || forms.action.$submitted) && forms.action.IntervalId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVALS -->\n\n </div>\n\n <input class="btn green-haze" type="submit" data-ng-click="next()" value="{{\'APPLICATION_CONTINUE\' | translate}}" />\n </form>\n </wz-step>\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n <input class="btn green-haze" type="submit" data-ng-click="next()" value="{{\'APPLICATION_CONFIRM\' | translate}}" />\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'), +a.put("app/channels/openchannel/account/view/api/view/view.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_API\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <div class="tab-pane active" id="tab_1_1">\n <!-- START API -->\n <div class="row" >\n <div class="col-md-12">\n <label class="control-label">Receive URL</label>\n </div>\n </div>\n <div class="row" >\n <div class="col-md-11">\n <code-mirror model="receiveurl"></code-mirror>\n </div>\n <div class="col-md-1">\n <a class="btn btn-sm green-jungle" data-ng-click="copyToClipboard(receiveurl);"><i class="fa fa-clipboard"></i>\n </a>\n </div>\n </div>\n <!-- END API -->\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/openchannel/account/view/disposition/modal/add.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_DISPOSITIONS\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.form.$touched || form.$submitted) && form.form.$invalid}">\n <div class="">\n <input type="text" name="form" placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}" class="form-control" data-ng-model="name" required/>\n <span data-ng-show="form.form.$touched && form.form.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <!-- END NAME -->\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" data-ng-click="ok()" data-ng-show="form.$valid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/openchannel/account/view/disposition/view/view.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_DISPOSITIONS\' | translate}}</span>\n </div>\n <div class="actions actions-md">\n <a href="#" class="btn btn-icon-only green" data-ng-click="addDisposition();">\n <i class="fa fa-plus"></i>\n </a>\n </div>\n </div>\n <div class="portlet-body" data-ng-init="initView()">\n <div class="tab-content">\n <div class="row" data-ng-hide="dispositions.length">\n <div class="col-md-12">\n <div class="note note-info">\n <h4 class="block">Info! {{\'MESSAGE_NO_DISPOSITIONS_AVAILABLE\' | translate}}</h4>\n </div>\n </div>\n </div>\n\n <!-- GENERAL TAB -->\n <div class="row" data-ng-repeat="disposition in dispositions">\n <div class="col-md-12 form-group">\n <div class="input-group">\n <div>\n <input class="form-control" type="text" placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}" data-ng-model="disposition.name">\n </div>\n <span class="input-group-btn">\n <button class="btn btn-success" type="button" data-ng-click="updateDisposition(disposition.id, disposition.name);"><i class="fa fa-cloud-upload fa-fw"></i> {{\'APPLICATION_UPDATE\' | translate}}</button>\n <button class="btn btn-danger" type="button" data-ng-click="deleteDisposition(disposition.id);"><i class="fa fa-times fa-fw"></i> {{\'APPLICATION_DELETE\' | translate}}</button>\n </span>\n </div>\n </div>\n </div>\n <!-- END GENERAL TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/openchannel/account/view/hooks/view/view.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_HOOKS\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_SEND\' | translate}}</a>\n </li>\n <li >\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_ACCEPT\' | translate}}</a>\n </li>\n <li >\n <a href="#" data-target="#tab_1_3" data-toggle="tab">{{\'APPLICATION_REJECT\' | translate}}</a>\n </li>\n <li >\n <a href="#" data-target="#tab_1_4" data-toggle="tab">{{\'APPLICATION_CLOSE\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- START REPLY TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.info" data-ng-submit="forms.info.$valid && updateItem()" novalidate>\n <div class="row">\n <div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.info.method.$touched || forms.info.$submitted) && forms.info.method.$invalid}">\n <label class="control-label">{{\'APPLICATION_METHOD\' | translate}}</label>\n <ui-select data-ng-model="account.replyMethod" name="method" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected.name | uppercase}}</ui-select-match>\n <ui-select-choices repeat="type.value as type in types | filter: $select.search" >\n <div ng-bind-html="type.name | highlight: $select.search | uppercase" ></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.info.method.$touched || forms.info.$submitted) && forms.info.method.$invalid && forms.info.method.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.info.url.$touched || forms.info.$submitted) && forms.info.url.$invalid}">\n <label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n <input type="url" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="account.replyUrl" ng-required="account.replyMethod"/>\n <span data-ng-show="(forms.info.url.$touched || forms.info.$submitted) && forms.info.url.$invalid && forms.info.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END REPLY TAB -->\n\n <!-- START ACCEPT TAB -->\n <div class="tab-pane" id="tab_1_2">\n <form name="forms.accept" data-ng-submit="forms.accept.$valid && updateItem()" novalidate>\n <div class="row">\n <div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.accept.method.$touched || forms.accept.$submitted) && forms.accept.method.$invalid}">\n <label class="control-label">{{\'APPLICATION_METHOD\' | translate}}</label>\n <ui-select data-ng-model="account.acceptMethod" name="method" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected.name | uppercase}}</ui-select-match>\n <ui-select-choices repeat="type.value as type in types | filter: $select.search">\n <div ng-bind-html="type.name | highlight: $select.search | uppercase" ></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.accept.method.$touched || forms.accept.$submitted) && forms.accept.method.$invalid && forms.accept.method.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.accept.url.$touched || forms.accept.$submitted) && forms.accept.url.$invalid}">\n <label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n <input type="url" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="account.acceptUrl" ng-required="account.acceptMethod"/>\n <span data-ng-show="(forms.accept.url.$touched || forms.accept.$submitted) && forms.accept.url.$invalid && forms.accept.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <!-- START ACTIONS-->\n <div class="row" ng-repeat = "action in account.actions">\n <div ng-switch="action.action">\n <div ng-switch-when="pause">\n <div class="form-group col-md-4">\n <label class="control-label">{{\'APPLICATION_PAUSE\' | translate}}</label></br>\n <input\n bs-switch\n data-ng-change="resetActionData(action)"\n data-ng-model="action.enabled"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </div>\n <div ng-if="action.enabled" class="form-group col-md-8">\n <label class="control-label">{{\'APPLICATION_TYPE\' | translate}}</label>\n <ui-select name="action" data-ng-model="action.type" theme="bootstrap" >\n <ui-select-match placeholder="{{\'APPLICATION_TYPE\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat=" pause.name as pause in pauses | filter: $select.search">\n <div ng-bind-html="pause.name | highlight: $select.search | uppercase" ></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n </div>\n </div>\n <!-- END ACTION -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ACCEPT TAB -->\n <!-- START REJECT TAB -->\n <div class="tab-pane" id="tab_1_3">\n <form name="forms.reject" data-ng-submit="forms.reject.$valid && updateItem()" novalidate>\n <div class="row">\n <div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.reject.method.$touched || forms.reject.$submitted) && forms.reject.method.$invalid}">\n <label class="control-label">{{\'APPLICATION_METHOD\' | translate}}</label>\n <ui-select data-ng-model="account.rejectMethod" name="method" theme="bootstrap" >\n <ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected.name | uppercase}}</ui-select-match>\n <ui-select-choices repeat="type.value as type in types | filter: $select.search">\n <div ng-bind-html="type.name | highlight: $select.search | uppercase" ></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.reject.method.$touched || forms.reject.$submitted) && forms.reject.method.$invalid && forms.reject.method.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.reject.url.$touched || forms.reject.$submitted) && forms.reject.url.$invalid}">\n <label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n <input type="url" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="account.rejectUrl" ng-required="account.rejectMethod"/>\n <span data-ng-show="(forms.reject.url.$touched || forms.reject.$submitted) && forms.reject.url.$invalid && forms.reject.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END REJECT TAB -->\n <!-- START CLOSE TAB -->\n <div class="tab-pane" id="tab_1_4">\n <form name="forms.close" data-ng-submit="forms.close.$valid && updateItem()" novalidate>\n <div class="row">\n <div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.close.method.$touched || forms.close.$submitted) && forms.close.method.$invalid}">\n <label class="control-label">{{\'APPLICATION_METHOD\' | translate}}</label>\n <ui-select data-ng-model="account.closeMethod" name="method" theme="bootstrap" >\n <ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected.name | uppercase}}</ui-select-match>\n <ui-select-choices repeat="type.value as type in types | filter: $select.search">\n <div ng-bind-html="type.name | highlight: $select.search | uppercase" ></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.close.method.$touched || forms.close.$submitted) && forms.close.method.$invalid && forms.close.method.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.close.url.$touched || forms.close.$submitted) && forms.close.url.$invalid}">\n <label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n <input type="url" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="account.closeUrl" ng-required="account.closeMethod"/>\n <span data-ng-show="(forms.close.url.$touched || forms.close.$submitted) && forms.close.url.$invalid && forms.close.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END CLOSE TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/openchannel/account/view/setting/view/view.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERALS\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.info" data-ng-submit="forms.info.$valid && updateItem()" novalidate>\n <!-- START ID -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_ID\' | translate}}<span class="required" aria-required="true">*</span>\n </label>\n <input type="text" name="id" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.id" ng-disabled="true" required/>\n </div>\n <!-- END ID-->\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.name" required/>\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid && forms.info.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n <!-- START LIST -->\n <div class="form-group" data-ng-if="license.cm">\n <label class="control-label">{{\'APPLICATION_LIST\' | translate}}</label>\n <div class="input-group">\n\n <ui-select data-ng-model="account.ListId" name="list" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_LIST\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="list.id as list in lists | filter: $select.search">\n <div ng-bind-html="list.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n\n <span class="input-group-btn">\n <button type="button" data-ng-click="account.ListId = null" class="btn btn-default">\n <span class="glyphicon glyphicon-trash"></span>\n </button>\n </span>\n\n </div>\n </div>\n <!-- END LIST -->\n <!-- START FIDELITY -->\n <!-- <div class="form-group">\n <label class="control-label">{{\'APPLICATION_FIDELITY\' | translate}}</label></br>\n <input\n bs-switch\n data-ng-model="account.fidelity"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </div> -->\n <!-- END FIDELITY -->\n\n <!-- START TIMEOUT -->\n <!-- <div class="form-group" data-ng-if="account.fidelity" data-ng-class="{\'has-error\': (forms.info.timeout.$touched || forms.info.$submitted) && forms.info.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="0" name="timeout" placeholder="{{\'APPLICATION_PORT\' | translate}}" class="form-control" data-ng-model="account.timeout" required/>\n <span data-ng-show="(forms.info.timeout.$touched || forms.info.$submitted) && forms.info.timeout.$invalid && forms.info.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.timeout.$touched || forms.info.$submitted) && forms.info.timeout.$invalid && forms.info.timeout.$error.number" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n </span>\n </div> -->\n <!-- END TIMEOUT -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="account.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START CUSTOM -->\n <!-- <div class="form-group">\n <label class="control-label">{{\'APPLICATION_REPLY\' | translate}}</label></br>\n <input\n bs-switch\n data-ng-model="account.reply"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </div> -->\n <!-- START REPLY HOOK -->\n <!-- <div ng-if= "account.reply" class="row">\n <div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.info.method.$touched || forms.info.$submitted) && forms.info.method.$invalid}">\n <label class="control-label">{{\'APPLICATION_METHOD\' | translate}}</label>\n <ui-select data-ng-model="account.replyMethod" name="method" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected.name | uppercase}}</ui-select-match>\n <ui-select-choices repeat="type.value as type in types | filter: $select.search" >\n <div ng-bind-html="type.name | highlight: $select.search | uppercase" ></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.info.method.$touched || forms.info.$submitted) && forms.info.method.$invalid && forms.info.method.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.info.url.$touched || forms.info.$submitted) && forms.info.url.$invalid}">\n <label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n <input type="url" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="account.replyUrl" required/>\n <span data-ng-show="(forms.info.url.$touched || forms.info.$submitted) && forms.info.url.$invalid && forms.info.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div> -->\n <!-- START REPLY HOOK -->\n <!-- END CUSTOM -->\n\n <!-- START REMOTE IP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.remote.$touched || forms.info.$submitted) && forms.info.remote.$invalid}">\n <label class="control-label">{{\'APPLICATION_MOTION_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="remote" placeholder="{{\'APPLICATION_MOTION_ADDRESS\' | translate}}" class="form-control" data-ng-model="account.remote" required/>\n <span class="help-block help-block-info">\n {{\'MESSAGE_MOTION_ADDRESS_FORMAT\' | translate}}\n </span>\n <span data-ng-show="(forms.info.remote.$touched || forms.info.$submitted) && forms.info.remote.$invalid && forms.info.remote.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END REMOTE IP -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/openchannel/account/view/view.html",'<!-- BEGIN PAGE HEADER-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-globe"></i>\n <a href="#">{{ \'APPLICATION_OPEN_CHANNEL\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-notebook"></i>\n <a href="/channels/openchannel/accounts/list">{{ \'APPLICATION_ACCOUNTS\' | translate }}</a>\n <i class="fa fa-angle-right" data-ng-show="account"></i>\n </li>\n <li data-ng-show="account">\n <a href="#">{{ account.name }}</a>\n </li>\n </ul>\n </div>\n\n<!-- END PAGE HEADER-->\n\n<!-- BEGIN PAGE CONTENT-->\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET main.channels -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img ng-src="assets/images/media/account.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{ account.name }}\n </div>\n <div class="profile-usertitle-job">\n {{account.description}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li ng-class="{active: $state.is(\'main.channels.openchannel.accounts.view.settings\')}">\n <a href="/channels/openchannel/accounts/view/{{account.id}}/settings">\n <i class="icon-settings"></i>\n {{\'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n <li ng-class="{active: $state.is(\'main.channels.openchannel.accounts.view.api\')}">\n <a href="/channels/openchannel/accounts/view/{{account.id}}/api">\n <i class="fa fa-external-link"></i>\n {{\'APPLICATION_API\' | translate}} </a>\n </li>\n <li ng-class="{active: $state.is(\'main.channels.openchannel.accounts.view.hooks\')}">\n <a href="/channels/openchannel/accounts/view/{{account.id}}/hooks">\n <i class="fa fa-code"></i>\n {{\'APPLICATION_HOOKS\' | translate}} </a>\n </li>\n <li ng-class="{active: $state.is(\'main.channels.openchannel.accounts.view.dispositions\')}">\n <a href="/channels/openchannel/accounts/view/{{account.id}}/dispositions">\n <i class="icon-target"></i>\n {{\'APPLICATION_DISPOSITIONS\' | translate}} </a>\n </li>\n <li ng-class="{active: $state.includes(\'main.channels.openchannel.accounts.view.actions\')}">\n <a href="/channels/openchannel/accounts/view/{{account.id}}/actions/list">\n <i class="icon-directions"></i>\n {{\'APPLICATION_ACTIONS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <div ui-view class="profile-content"></div>\n <!-- END PROFILE CONTENT -->\n </div>\n<!-- END PAGE CONTENT-->\n</div>\n'),a.put("app/channels/openchannel/account/wizard/wizard.html",'\n<div class="row" data-ng-init="initWizard()">\n <div class="col-md-12">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-globe"></i>\n <a href="#">{{ \'APPLICATION_OPEN_CHANNEL\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-notebook"></i>\n <a href="/channels/openchannel/accounts/list">{{ \'APPLICATION_ACCOUNTS\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACCOUNT\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_ACCOUNT_INFO\' | translate}}" canexit="formValidation(forms.info.$valid)">\n <form name="forms.info" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid && forms.info.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n </div>\n <!-- END DESCRIPTION -->\n <!-- START REMOTE IP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.remote.$touched || forms.info.$submitted) && forms.info.remote.$invalid}">\n <label class="control-label">{{\'APPLICATION_MOTION_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="remote" placeholder="{{\'APPLICATION_MOTION_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.remote" required/>\n <span class="help-block help-block-info">\n {{\'MESSAGE_MOTION_ADDRESS_FORMAT\' | translate}}\n </span>\n <span data-ng-show="(forms.info.remote.$touched || forms.info.$submitted) && forms.info.remote.$invalid && forms.info.remote.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END REMOTE IP -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" data-ng-click="goNext()"/>\n </form>\n </wz-step>\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'), +a.put("app/channels/openchannel/inbox/message/info.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_INFO\' | translate }}</h3>\n</div>\n<div class="modal-body" data-ng-init="initInfo()" style=" overflow-x: auto;" >\n <div data-ng-if="data" >\n <json-formatter json="data" open="1"></json-formatter>\n </div>\n <div class="note note-warning" data-ng-hide="data">\n <p>\n {{ \'MESSAGE_NO_INFO_AVAILABLE\' | translate }}\n </p>\n </div>\n\n</div>\n<div class="modal-footer">\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'),a.put("app/channels/openchannel/inbox/message/message.html",'<div class="message">\n <div class="row">\n <div class="col-md-6">\n <!-- <span data-ng-if="Message.from" class="bold">From: {{Message.from}} </span>\n <br>\n <span data-ng-if="Message.to" class="bold">To: {{Message.to}} </span>\n <br> -->\n <div class="row" ng-if="Message.from">\n <div class="col-md-12">\n <span data-ng-if="Message.from" class="bold">From: {{Message.from}} </span>\n </div>\n </div>\n <div class="row" ng-if="Message.to">\n <div class="col-md-12">\n <span data-ng-if="Message.to" class="bold">To: {{Message.to}} </span>\n </div>\n </div>\n <div class="row" ng-if="Message.name">\n <div class="col-md-12">\n <span class="bold">Name: {{Message.name}}</span>\n </div>\n </div>\n <div class="row" ng-if="Message.phone">\n <div class="col-md-12">\n <span class="bold">Phone: <a href="" data-ng-click="openContact(\'phone\',Message.phone)">{{Message.phone}}</a></span>\n </div>\n </div>\n <div class="row" ng-if="Message.email">\n <div class="col-md-12">\n <span class="bold">Email: <a href="" data-ng-click="openContact(\'email\',Message.email)">{{Message.email}}</a></span>\n </div>\n </div>\n </div>\n <div class="col-md-6">\n <span class="pull-right" data-ng-if="Message.User">{{\'APPLICATION_SENT_BY\' | translate}}: <strong>{{Message.User.fullname}}</strong></span>\n </div>\n </div>\n <br>\n <span class="todo-tasklist-date">\n <span class="pull-right" data-ng-switch="Message.status">\n <a ng-switch-when="RECEIVED" href="#" class="btn default btn-xs inactive-link green-stripe"> {{Message.status | uppercase}}\n <i class="fa fa-check"></i>\n </a>\n <a ng-switch-when="SENT" href="#" class="btn default btn-xs inactive-link green-stripe"> {{Message.status | uppercase}}\n <i class="fa fa-check"></i>\n </a>\n <a ng-switch-when="DELIVERED" href="#" class="btn default btn-xs inactive-link green-stripe"> {{Message.status | uppercase}}\n <i class="fa fa-check"></i>\n </a>\n <a ng-switch-when="SENDING" href="#" class="btn default btn-xs inactive-link blue-stripe" > {{Message.status | uppercase}}\n <i class="fa fa-warning"></i>\n </a>\n <a ng-switch-when="FAILED" href="#" class="btn default btn-xs red-stripe" data-ng-click="info(Message.res_data)"> {{Message.status | uppercase}}\n <i class="fa fa-times"></i>\n </a>\n <a ng-switch-default href="#" class="btn default btn-xs"> {{Message.status | uppercase}}\n </a>\n <br>\n </span>\n\n <i class="icon-calendar" title="{{Message.updatedAt | date:\'MMM d, y HH:mm:ss\'}}"></i> <span am-time-ago="Message.updatedAt"></span>\n </span>\n <hr>\n <ng-emoticons emoticons-data="Message.body"></ng-emoticons>\n <!-- <span class="body text-left" data-ng-bind-html="Message.body" style="white-space: pre-wrap;"></span> -->\n </div>\n'),a.put("app/channels/openchannel/inbox/room/room.directive.html",'<!-- BEGIN TODO CONTENT -->\n\n<div class="todo-content">\n <div class="portlet light">\n <div class="portlet-title">\n <div class="caption">\n <button class="btn btn-sm btn-default green-meadow" data-ng-if="Room.status !== \'CLOSED\'" data-ng-disabled="!form.body || forms.compose.from.$invalid || forms.compose.to.$invalid" data-ng-click="sendMessage()">\n <i class="icon-paper-plane" style="color: white;"></i> {{\'APPLICATION_SEND\' | translate}}\n </button>\n <span data-ng-show="Room && Room.status !== \'CLOSED\'"> | </span>\n <span data-ng-show="Room" class="label label-default">#{{Room.id}} {{Room.status}}</span>\n <span data-ng-if="Room && Room.ParentId"> | </span>\n <span data-ng-if="Room && Room.ParentId" class="label label-warning"> Ref: <a data-ng-click="openRoom(Room.ParentId,Room.contact)">#{{Room.ParentId}}</a></span>\n </div>\n <div class="actions" data-ng-switch="Room.status">\n <button class="btn btn-icon-only" data-ng-show="Room" data-ng-class="{\'btn-success\':Room.status !== \'CLOSED\',\'grey-cascade\':Room.status === \'CLOSED\'}" data-ng-click="closeRoom(Room.id)" data-ng-disabled="Room.status === \'CLOSED\' && Room.disposition">\n <i data-ng-class="{\'fa fa-upload\':Room.status !== \'CLOSED\',\'icon-target\':Room.status === \'CLOSED\'}"></i>\n </button>\n <button class="btn default btn-icon-only" data-ng-if="Room && Room.status !== \'CLOSED\'" type="button" data-ng-click="togglePanelLeft()" title="{{\'APPLICATION_RESIZE\' | translate}}">\n <i ng-class="panelRight == \'col-md-12\' ? \'icon-size-actual\' : \'icon-size-fullscreen\'"></i>\n </button>\n </div>\n </div>\n <div class="portlet-body">\n <div class="row">\n <div data-ng-show="panelLeft" data-ng-class="panelLeft">\n <div class="form">\n <!-- START TAGS -->\n <div class="form-group" data-ng-if="Room.status !== \'CLOSED\' || (Room.status == \'CLOSED\' && form.tags.length)">\n <div class="row">\n <div class="col-md-1">\n <a href="#" class="btn btn-icon-only">\n <i class="fa fa-tags" style="color: gray;"></i>\n </a>\n </div>\n <div class="col-md-11">\n <ui-select data-ng-disabled="Room.status == \'CLOSED\'" multiple data-ng-model="form.tags" theme="bootstrap" on-select="onChanged($item, $model)" on-remove="onChanged($item, $model)">\n <ui-select-match placeholder="Tags...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="tag in tags | filter:$select.search" class="">\n {{tag}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n </div>\n <!-- END TAGS -->\n </div>\n <hr data-ng-if="Room && Room.status !== \'CLOSED\'">\n\n <div ng-scrollbars ng-scrollbars-config="{\n autoHideScrollbar: false,\n theme: \'light\',\n advanced: {\n updateOnContentResize: true\n },\n setHeight: 781,\n scrollInertia: 0\n }">\n <ul class="chats">\n <li data-ng-switch="Room.status" data-ng-class="{\'in\': Message.status == \'RECEIVED\', \'out\': Message.status == \'SENT\' || Message.status == \'SENDING\' || Message.status == \'FAILED\' || Message.status == \'NOTE\' || Message.status == \'DELIVERED\' || Message.status == \'QUEUED\' || Message.status != \'RECEIVED\' }" data-ng-repeat="Message in Room.OpenchannelMessages | orderBy:\'-createdAt\'">\n <!-- <img class="avatar" alt="" data-ng-src="api/users/avatar/{{getCurrentUser().userpic && smsMessage.status === \'SENT\' ? getCurrentUser().userpic : \'unknown_avatar\'}}"> -->\n <!-- <note message="smsMessage" ng-switch-when="NOTE"></note> -->\n <div class="avatar" data-ng-class="Message.UserId ? \'pretty-avatar\' : \'pretty-avatar-v\'">\n <ng-letter-avatar\n data-ng-if="Message.UserId"\n height="40"\n width="40"\n fontsize="25"\n data="{{Message.User.fullname}}"\n avatarcustombgcolor="#B0B0B0"\n avatarcustomborder="border:2px solid #3399CC"\n charCount="2"\n shape="round"></ng-letter-avatar>\n <ng-letter-avatar\n data-ng-if="!Message.UserId"\n height="40"\n width="40"\n fontsize="25"\n data="{{Message.from}}"\n avatarcustombgcolor="#B0B0B0"\n avatarcustomborder="border:2px solid #EA4C61"\n charCount="1"\n shape="round"></ng-letter-avatar>\n </div>\n <message message="Message" list-id="Room.OpenchannelAccount.ListId" ng-switch-default></message>\n </li>\n </ul>\n </div>\n </div>\n <div data-ng-class="panelRight">\n\n <div class="note note-info" data-ng-if="Room && Room.status == \'CLOSED\'">\n <h4 class="block">Info! {{\'MESSAGE_ROOM_CLOSED\' | translate}}</h4>\n <p>\n {{\'MESSAGE_ROOM_CLOSED_DETAILS\' | translate}}.\n </p>\n <hr>\n <p>\n <i class="icon-target"></i> {{\'APPLICATION_DISPOSITION\' | translate}}: <strong>{{Room.disposition}}</strong>\n </p>\n <p>\n <i class="icon-calendar"></i> {{\'APPLICATION_UPDATED_AT\' | translate}}: <strong>{{Room.updatedAt | date:\'medium\'}}</strong> (<span am-time-ago="Room.updatedAt"></span>)\n </p>\n </div>\n <form name="forms.compose" data-ng-submit="forms.compose.$valid" class="form-horizontal" novalidate>\n <!-- START HEAD -->\n <div class="form">\n\n <!-- START FROM -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.compose.from.$invalid && forms.compose.$submitted}" data-ng-if="Room.status !== \'CLOSED\'">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-1">\n <label class="control-label">From:</label>\n </div>\n <div class="col-md-11">\n <ui-select data-ng-disabled="Room" theme="bootstrap" name="from" data-ng-model="form.from" required>\n <ui-select-match placeholder="From...">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="Account.name as Account in Accounts | filter: $select.search">\n <div data-ng-bind-html="Account.name | highlight: $select.search"></div>\n <small data-ng-bind-html="Account.name | highlight: $select.search"></small>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.compose.from.$invalid && forms.compose.$submitted " class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n </div>\n <!-- END FROM -->\n <!-- START TO -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.compose.to.$invalid && forms.compose.$submitted}" data-ng-if="Room.status !== \'CLOSED\'">\n\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-1">\n <label class="control-label">To:</label>\n </div>\n <div class="col-md-11">\n <input type="text" name="to" class="form-control todo-taskbody-taskdesc" placeholder="To..." rows="8" data-ng-disabled="Room" data-ng-model="form.to" required>\n <span data-ng-show="forms.compose.to.$invalid && forms.compose.$submitted " class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n </div>\n <!-- END TO -->\n <!-- START CANNED -->\n <div class="form-group" data-ng-if="Room.status !== \'CLOSED\'">\n <div class="row">\n <div class="col-md-1">\n <a href="#" class="btn btn-icon-only">\n <i class="fa fa-magic" style="color: gray;"></i>\n </a>\n </div>\n <div class="col-md-11">\n <input type="text"\n data-ng-model="modelOptions.selectedAnswer"\n uib-typeahead="key for key in getAnswers($viewValue)"\n placeholder="Canned answers.."\n typeahead-loading="loadingLocations"\n typeahead-no-results="noResults"\n typeahead-on-select="onSelect($item)"\n class="form-control">\n <i ng-show="loadingLocations" class="glyphicon glyphicon-refresh"></i>\n <div ng-show="noResults">\n <i class="glyphicon glyphicon-remove"></i> No Results Found\n </div>\n </div>\n </div>\n\n </div>\n <!-- END CANNED -->\n <!-- START message -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.compose.body.$invalid && forms.compose.$submitted}" data-ng-if=" Room.status !== \'CLOSED\'">\n <div class="col-md-12">\n <textarea id="text" class="form-control maxlength-handler" rows="8" name="body" data-ng-model="form.body"></textarea>\n <span data-ng-show="forms.compose.body.$invalid && forms.compose.$submitted " class="help-block help-block-error">\n'+" <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n </span>\n </div>\n </div>\n\n <!-- END message -->\n </div>\n </form>\n </div>\n </div>\n </div>\n </div>\n</div>\n<!-- END TODO CONTENT -->\n"),a.put("app/channels/openchannel/inbox/view/account/list/list.html",'<!-- BEGIN Portlet PORTLET-->\n<div class="portlet light" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption">\n <div class="btn-group btn-group-solid">\n <button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'NEW\'" uib-uncheckable>NEW</button>\n </div>\n <div class="btn-group btn-group-solid">\n <button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'OPEN\'" uib-uncheckable>OPEN</button>\n </div>\n <div class="btn-group btn-group-solid">\n <button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'PENDING\'" uib-uncheckable>PENDING</button>\n </div>\n <div class="btn-group btn-group-solid">\n <button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'CLOSED\'" uib-uncheckable>CLOSED</button>\n </div>\n </div>\n <div class="actions">\n <a href="#" class="btn btn-icon-only default" data-ng-click="getPage();">\n <i class="fa fa-refresh"></i>\n </a>\n <a href="#" class="btn btn-icon-only red" data-ng-click="deleteItems();" data-ng-show="id.length && isAdmin">\n <i class="fa fa-trash"></i>\n </a>\n <a href="#" class="btn btn-icon-only blue" data-ng-click="tagItems();" data-ng-show="id.length">\n <i class="fa fa-tags"></i>\n </a>\n <a href="#" class="btn btn-icon-only green" data-ng-click="openRoom(null, \'New Message\')">\n <i class="fa fa-plus"></i>\n </a>\n </div>\n </div>\n <div class="portlet-title" data-ng-show="tags.length">\n <!-- START TAGS -->\n <div class="form-group">\n <div class="row">\n <div class="col-md-1">\n <a href="#" class="btn btn-icon-only">\n <i class="fa fa-tags" style="color: gray;"></i>\n </a>\n </div>\n <div class="col-md-11">\n <ui-select multiple data-ng-model="query.tags" theme="bootstrap" on-select="onChanged($item, $model)" on-remove="onChanged($item, $model)">\n <ui-select-match placeholder="Search by tag...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="tag in tags | filter:$select.search">\n {{tag}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n </div>\n <!-- END TAGS -->\n </div>\n <div class="portlet-body">\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="spinner-grid" spinner-start-active="false"></span>\n <!-- END UI-GRID SPINNER -->\n\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid-inbox">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END Portlet PORTLET-->\n'),a.put("app/channels/openchannel/inbox/view/view.agents.modal.html",'<div class="modal-header" data-ng-init="initModal()">\n <h3 class="modal-title">{{ \'APPLICATION_AGENTS\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <!-- START TRANSPORT -->\n <div class="form-group">\n <form name="form" novalidate>\n <!-- START TRANSPORT -->\n <div class="form-group">\n <ui-select multiple name="agents" data-ng-model="item.agents" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_AGENTS\' | translate}}">{{$item.fullname}}</ui-select-match>\n <ui-select-choices repeat="agent.id as agent in agents | filter: $select.search">\n {{agent.fullname}}\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END TRANSPORT -->\n </form>\n </div>\n <!-- END TRANSPORT -->\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" data-ng-click="ok()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/openchannel/inbox/view/view.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-globe"></i>\n <a href="#">{{ \'APPLICATION_OPEN_CHANNEL\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-note"></i>\n <a href="/channels/openchannel/inbox/list">{{ \'APPLICATION_INBOX\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row inbox" data-ng-init="initView()">\n <div class="col-md-3">\n <ul class="inbox-nav margin-bottom-10">\n <li data-ng-class="{active: $stateParams.id == Account.id}" data-ng-repeat="Account in openchannelAccounts">\n <a href="/channels/openchannel/inbox/view/account/{{Account.id}}/list" class="btn">\n <i class="icon-notebook"></i> {{Account.name}}\n </a>\n <b></b>\n </li>\n </ul>\n </div>\n\n <div class="col-md-9" >\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view>\n <div class="note note-info">\n <h4 class="block">Info! {{\'APPLICATION_NO_ACCOUNT_SELECTED\' | translate}}</h4>\n </div>\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/openchannel/inbox/view/view.status.modal.html",'<div class="modal-header">\n <button ng-if="modal.dismissable" type="button" ng-click="$dismiss()" class="close">×</button>\n <h4 ng-if="modal.title" ng-bind="modal.title | translate" class="modal-title"></h4>\n</div>\n<div class="modal-body">\n <p ng-if="modal.text && !closed" ng-bind="modal.text | translate"></p>\n <form name="form" novalidate data-ng-init="initDisposition()">\n <div class="form-group">\n <ui-select data-ng-model="item.disposition" name="list" theme="bootstrap" data-ng-disabled="!dispositions.length" required>\n <ui-select-match placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="disposition.name as disposition in dispositions | filter: $select.search">\n <div ng-bind-html="disposition.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="note note-warning" data-ng-hide="dispositions.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_DISPOSITIONS_AVAILABLE\' | translate }}\n </p>\n </div>\n</form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-danger" type="button" ng-click="ok()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/openchannel/inbox/view/view.tags.modal.html",'<div class="modal-header" data-ng-init="initModal()">\n <h3 class="modal-title">{{ \'APPLICATION_TAGS\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <!-- START TRANSPORT -->\n <div class="form-group">\n <form name="form" novalidate>\n <!-- START TAGS -->\n <div class="form-group">\n <ui-select multiple data-ng-model="item.tags" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_TAGS\' | translate}}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="tag in tags | filter: $select.search">\n {{tag}}\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END TAGS -->\n </form>\n </div>\n <!-- END TRANSPORT -->\n</div>\n<div class="modal-footer">\n <button type="button" class="btn" data-ng-class="button.class" data-ng-click="button.click()"data-ng-repeat="button in modal.buttons">{{button.text | translate}}</button>\n <!-- <button class="btn btn-success" type="button" data-ng-click="ok()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button> -->\n</div>\n'),a.put("app/channels/openchannel/queue/list/list.create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_QUEUE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" data-ng-pattern="settings.patternName" required />\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$invalid && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$invalid && form.name.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.timeout.$touched || form.$submitted) && form.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_AGENT_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="0" name="timeout" placeholder="Timeout" class="form-control" data-ng-model="item.timeout" required min="1"/>\n <span data-ng-show="(form.timeout.$touched || form.$submitted) && form.timeout.$invalid && form.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START STRATEGY -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.strategy.$touched || form.$submitted) && form.strategy.$invalid}">\n <label class="control-label">{{\'APPLICATION_STRATEGY\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.strategy" name="strategy" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.toUpperCase()}}</ui-select-match>\n <ui-select-choices repeat="strategy in strategies | filter: $select.search">\n <div ng-bind-html="strategy.toUpperCase() | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form.strategy.$touched || form.$submitted) && form.strategy.$invalid && form.strategy.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END STRATEGY -->\n\n <!-- START AGENTS-->\n <div class="form-body" data-ng-init="getTeams()">\n <label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n <div class="input-group input-small mbottom20">\n <input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="item.penalty" readonly>\n <div class="spinner-buttons input-group-btn btn-group-vertical">\n <button type="button" class="btn spinner-up btn-xs blue" data-ng-click="item.penalty=item.penalty+1">\n <i class="fa fa-angle-up"></i>\n </button>\n <button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!item.penalty" data-ng-click="item.penalty=item.penalty-1">\n <i class="fa fa-angle-down"></i>\n </button>\n </div>\n </div>\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-team">\n </div>\n </div>\n </div>\n <!-- END AGENTS-->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/openchannel/queue/list/list.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-globe"></i>\n <a href="#">{{ \'APPLICATION_OPEN_CHANNEL\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="#">{{ \'APPLICATION_QUEUES\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_QUEUES\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="#" data-ng-click="createItem()" data-ng-if="Auth.isAdmin()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_QUEUE\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/openchannel/queue/view/view.agents.html",'<div class="row" data-ng-init="getTeams()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_AGENTS\' | translate}}</span>\n </div>\n </div>\n <div class="note note-warning" data-ng-hide="teams.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_AVAILABLE_TEAMS\' | translate }}\n </p>\n </div>\n <div class="portlet-body">\n <!-- BEGIN FORM-->\n <form action="index.html" class="form-horizontal form-row-seperated">\n <div class="form-body">\n <label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n <div class="input-group input-small mbottom20">\n <input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="queue.penalty" readonly>\n <div class="spinner-buttons input-group-btn btn-group-vertical">\n <button type="button" class="btn spinner-up btn-xs blue" data-ng-click="queue.penalty=queue.penalty+1">\n <i class="fa fa-angle-up"></i>\n </button>\n <button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!queue.penalty" data-ng-click="queue.penalty=queue.penalty-1">\n <i class="fa fa-angle-down"></i>\n </button>\n </div>\n </div>\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-team">\n </div>\n </div>\n </div>\n </form>\n <!-- END FORM-->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/openchannel/queue/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getQueue()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-globe"></i>\n <a href="#">{{ \'APPLICATION_OPEN_CHANNEL\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="/channels/openchannel/queues/list">{{ \'APPLICATION_QUEUES\' | translate }}</a>\n <i data-ng-show="queue" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="queue">\n <a href="#">{{queue.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET main.channels -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/queue.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{queue.name}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.channels.openchannel.queues.view.settings\')}">\n <a data-ng-href="/channels/openchannel/queues/view/{{queue.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.channels.openchannel.queues.view.agents\')}" data-ng-show="Auth.getCurrentUser().role === \'admin\'">\n <a data-ng-href="/channels/openchannel/queues/view/{{queue.id}}/agents">\n <i class="icon-people"></i>\n {{ \'APPLICATION_AGENTS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET main.channels -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n </div>\n <!-- END PAGE CONTENT-->\n'), +a.put("app/channels/openchannel/queue/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateQueue()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="queue.name" data-ng-pattern="settings.patternName" required />\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid && forms.general.name.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="queue.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START TIMEOUT -->\n <div class="form-group">\n <label class="control-label">Timeout</label>\n <input type="number" name="timeout" placeholder="Timeout" class="form-control" min="1" data-ng-model="queue.timeout"/>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START HEADER SHAPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.strategy.$touched || forms.general.$submitted) && forms.general.strategy.$invalid}">\n <label class="control-label">{{\'APPLICATION_STRATEGY\' | translate}}</label>\n <ui-select data-ng-model="queue.strategy" name="strategy" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.toUpperCase()}}</ui-select-match>\n <ui-select-choices repeat="strategy in strategies | filter: $select.search">\n <div ng-bind-html="strategy | uppercase | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END HEADER SHAPE -->\n <input data-ng-if="Auth.isAdmin()" class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/openchannel/realtime/view/agent/agent.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initAgents()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns class="ui-grid" ui-grid-tree-view ui-grid-expandable-row ui-grid-pagination ui-grid-auto-resize>\n <span us-spinner spinner-key="grid-spinner" spinner-start-active="true"></span>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/openchannel/realtime/view/agent/agent.modal.info.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_INTERFACE_INFO\' | translate }}</h3>\n</div>\n<div class="modal-body">\n<div data-ng-if="agent.ipaddr" class="well">\n <div>{{agent.ipaddr}}:{{agent.port}}</div>\n <div>{{agent.fullcontact}}</div>\n <div>{{agent.useragent}}</div>\n <div>{{agent.lastms}}</div>\n</div>\n<div data-ng-if="!agent.ipaddr" class="alert alert-danger" role="alert">\n {{\'MESSAGE_NO_AVAILABLE_INFO\' | translate}}\n</div>\n</div>\n<div class="modal-footer">\n <button class="btn default" type="button" ng-click="close()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'),a.put("app/channels/openchannel/realtime/view/agent/queue.modal.add.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_JOIN_QUEUE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <div class="form-group row">\n <label class="col-md-2 control-label" style="margin-top: 7px;">{{\'APPLICATION_QUEUE\' | translate}}:</label>\n <div class="col-md-10">\n <ui-select multiple ng-model="item.queues" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_QUEUE\' | translate}}">{{$item.name}}</ui-select-match>\n <ui-select-choices repeat="queue.id as queue in queues | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n</div>\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/openchannel/realtime/view/application/application.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initApplications()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns class="ui-grid" ui-grid-auto-resize>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/openchannel/realtime/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-globe"></i>\n <a href="#">{{ \'APPLICATION_OPEN_CHANNEL\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-energy"></i>\n <a href="#">{{ \'APPLICATION_REALTIME\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <div>\n <nav class="navbar navbar-default" role="navigation">\n <div class="collapse navbar-collapse">\n <ul class="nav navbar-nav">\n <li data-ng-class="{\'active\': $state.is(\'main.channels.openchannel.realtime.view.agents\')}">\n <a href="/channels/openchannel/realtime/view/agents">\n {{\'APPLICATION_AGENTS\' | translate}}\n </a>\n </li>\n <li data-ng-class="{\'active\': $state.is(\'main.channels.openchannel.realtime.view.applications\')}">\n <a href="/channels/openchannel/realtime/view/applications">\n {{\'APPLICATION_APPLICATIONS\' | translate}}\n </a>\n </li>\n <li>\n <a href="#">\n <b>|{{\'APPLICATION_SHOW_TIMERS\' | translate}} </b><input\n bs-switch\n class="form-control"\n ng-model="showTimers"\n type="checkbox"\n name="showTimers"\n switch-active="{{ timerSwitch.isActive }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ timerSwitch.onColor }}"\n switch-off-color="{{ timerSwitch.offColor }}"\n switch-animate="{{ timerSwitch.animate }}"\n switch-size="{{ timerSwitch.size }}"\n switch-label="{{ timerSwitch.label }}"\n switch-icon="{{ timerSwitch.icon }}"\n switch-radio-off="{{ timerSwitch.radioOff }}"\n switch-label-width="{{ timerSwitch.labelWidth }}"\n switch-handle-width="{{ timerSwitch.handleWidth }}"><b>|</b>\n </a>\n </li>\n </ul>\n </div>\n </nav>\n </div>\n\n <div ui-view></div>\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/openchannel/realtime/view/view.queue.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initAgents()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div id="grid1" ui-grid="gridOptions" ui-grid-resize-columns ui-grid-tree-view class="grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/realtime/view/agent/agent.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initAgents()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns class="ui-grid" ui-grid-pagination ui-grid-auto-resize>\n <span us-spinner spinner-key="grid-spinner" spinner-start-active="true"></span>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/realtime/view/agent/agent.modal.logout.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_AGENT_LOGOUT\' | translate }}</h3>\n</div>\n<div class="modal-body">\n {{\'MESSAGE_AGENT_LOGOUT\' | translate}} <b>{{agent}}</b> ?\n</div>\n<div class="modal-footer">\n <button class="btn red-intense" type="button" ng-click="logout()">{{ \'APPLICATION_LOGOUT\' | translate }}</button>\n <button class="btn default" type="button" data-ng-click="$dismiss()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/realtime/view/agent/queue.modal.add.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_JOIN_QUEUE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <div class="form-group row">\n <label class="col-md-2 control-label" style="margin-top: 7px;">{{\'APPLICATION_QUEUE\' | translate}}:</label>\n <div class="col-md-10">\n <ui-select multiple ng-model="item.queues" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_QUEUE\' | translate}}">{{$item.name}}</ui-select-match>\n <ui-select-choices repeat="queue.name as queue in queues | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n</div>\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/realtime/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-energy"></i>\n <a href="/channels/realtime/view/agents">{{ \'APPLICATION_OMNI_REALTIME\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <div>\n <nav class="navbar navbar-default" role="navigation">\n <div class="collapse navbar-collapse">\n <ul class="nav navbar-nav">\n <li data-ng-class="{\'active\': $state.is(\'main.channels.realtime.view.agents\')}">\n <a href="/channels/realtime/view/agents">\n {{\'APPLICATION_AGENTS\' | translate}}\n </a>\n </li>\n <li>\n <a href="#">\n <b>|{{\'APPLICATION_SHOW_TIMERS\' | translate}} </b><input\n bs-switch\n class="form-control"\n ng-model="showTimers"\n type="checkbox"\n name="showTimers"\n switch-active="{{ timerSwitch.isActive }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ timerSwitch.onColor }}"\n switch-off-color="{{ timerSwitch.offColor }}"\n switch-animate="{{ timerSwitch.animate }}"\n switch-size="{{ timerSwitch.size }}"\n switch-label="{{ timerSwitch.label }}"\n switch-icon="{{ timerSwitch.icon }}"\n switch-radio-off="{{ timerSwitch.radioOff }}"\n switch-label-width="{{ timerSwitch.labelWidth }}"\n switch-handle-width="{{ timerSwitch.handleWidth }}"><b>|</b>\n </a>\n </li>\n </ul>\n </div>\n </nav>\n </div>\n <div ui-view></div>\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/sms/account/list/list.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="glyphicon glyphicon-comment"></i>\n <a href="#">{{ \'APPLICATION_SMS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-notebook"></i>\n <a href="/channels/sms/accounts/list">{{ \'APPLICATION_ACCOUNTS\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACCOUNTS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group">\n <a class="btn btn-default" href="#" data-ng-click="gridOptions.getPage();">\n <i class="icon-reload"></i>\n </a>\n </div>\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="/channels/sms/accounts/wizard">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_ACCOUNT\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/sms/account/view/action/list/list.html",'<div class="row" data-ng-init="initActions()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_ACTIONS\' | translate}}</span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="/channels/sms/accounts/view/{{account.id}}/actions/wizard" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_ACTION\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/sms/account/view/action/view/view.html",'\n<div class="row" data-ng-init="initAction()">\n <div class="col-md-12">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-directions font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACTION\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <form name="forms.settings" ng-submit="updateItem()" novalidate>\n <!-- START APP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app.$touched || forms.settings.$submitted) && forms.settings.app.$invalid}">\n <label class="control-label">{{ \'APPLICATION_APPLICATION\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.app" name="app" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_APPLICATION\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="app.value as app in apps | filter: $select.search">\n <div ng-bind-html="app.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.app.$touched || forms.settings.$submitted) && forms.settings.app.$invalid && forms.settings.app.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END APP -->\n\n <div class="app-settings" ng-slide-down="application.app === \'queue\'" lazy-render duration="1" data-ng-init="getQueues()">\n <!-- START QUEUE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.queue.$touched || forms.settings.$submitted) && forms.settings.queue.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.SmsQueueId" name="queue" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="queue.id as queue in queues | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="queues.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_QUEUES_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/channels/sms/queues/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.settings.queue.$touched || forms.settings.$submitted) && forms.settings.queue.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n <span data-ng-show="(forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'agent\'" lazy-render duration="1" data-ng-init="getAgents()">\n <!-- START AGENT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.agent.$touched || forms.settings.$submitted) && forms.settings.agent.$invalid}">\n <label class="control-label">{{\'APPLICATION_AGENT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.UserId" name="agent" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.fullname}}</ui-select-match>\n <ui-select-choices repeat="agent.id as agent in agents | filter: $select.search">\n <div ng-bind-html="agent.fullname | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="agents.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_AGENTS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/staff/agents/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.settings.agent.$touched || forms.settings.$submitted) && forms.settings.agent.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END AGENT -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n <span data-ng-show="(forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'sendMail\'" lazy-render duration="1" data-ng-init="getMailAccounts();getTemplates()">\n <!-- START SENDMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.to.$touched || forms.settings.$submitted) && forms.settings.to.$invalid}">\n <label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="email" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2" min="1" required/>\n <span data-ng-show="(forms.settings.to.$touched || forms.settings.$submitted) && forms.settings.to.$invalid && forms.settings.to.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.account.$touched || forms.settings.$submitted) && forms.settings.account.$invalid}">\n <label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in mailAccounts | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.account.$touched || forms.settings.$submitted) && forms.settings.account.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.template.$touched || forms.settings.$submitted) && forms.settings.template.$invalid}">\n <label class="control-label">{{\'APPLICATION_TEMPLATE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data9" name="template" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n <div ng-bind-html="template.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.template.$touched || forms.settings.$submitted) && forms.settings.template.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SENDMAIL -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1" data-ng-init="getSmsAccounts()">\n <!-- START SENDSms -->\n <div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1">\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.to.$touched || forms.settings.$submitted) && forms.settings.to.$invalid}">\n <label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" ng-pattern="/^[\\+]?[0-9]+$/" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2" required/>\n <span data-ng-show="(forms.settings.to.$touched || forms.settings.$submitted) && forms.settings.to.$invalid && forms.settings.to.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.account.$touched || forms.settings.$submitted) && forms.settings.account.$invalid}">\n <label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in smsAccounts | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.account.$touched || forms.settings.$submitted) && forms.settings.account.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.text.$touched || forms.text.$submitted) && forms.settings.text.$invalid}">\n <label class="control-label">{{\'APPLICATION_TEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <textarea id="text" class="form-control maxlength-handler" maxlength="160" name="text" data-ng-model="application.data6" required></textarea>\n <span data-ng-show="(forms.settings.text.$touched || forms.settings.$submitted) && forms.settings.text.$invalid && forms.settings.text.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <!-- END SENDSms -->\n </div>\n <!-- START INTERVAL_TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.intType.$touched || forms.settings.$submitted) && forms.settings.intType.$invalid}">\n <label class="control-label">{{ \'APPLICATION_INTERVAL_TYPE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.intType" theme="bootstrap" name="intType" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="intType.value as intType in $application.intTypes | filter: $select.search">\n {{ intType.name | translate }}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.intType.$touched || forms.settings.$submitted) && forms.settings.intType.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVAL_TYPE -->\n\n <div class="app-settings" ng-slide-down="application.intType === \'custom\'" lazy-render duration="1">\n <!-- START TIME -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n <div class="input-group input-large">\n <fieldset class="pull-left" ng-disabled="application.alwaysTime">\n <uib-timepicker name="t_from" data-ng-model="application.t_from" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker>\n </fieldset>\n <div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n <fieldset ng-disabled="application.alwaysTime"><uib-timepicker name="t_to" data-ng-model="application.t_to" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker></fieldset>\n <!-- <label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="application.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label> -->\n </div>\n </div>\n <!-- END TIME -->\n\n <!-- START ALWAYS -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ALWAYS\' | translate }}</label>\n <div class="input-group input-large">\n <label class="control-label pointer-cursor">\n <input\n bs-switch\n data-ng-model="application.alwaysTime"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n <!-- <input type="checkbox" data-ng-model="application.alwaysTime"> -->\n </label>\n </div>\n </div>\n <!-- END ALWAYS -->\n\n <!-- START WEEKDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.wd_from" theme="bootstrap" name="wd_from">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{ weekDay.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.wd_to" theme="bootstrap" name="wd_to">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{ weekDay.name | translate }}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END WEEKDAY -->\n\n <!-- START MONTHDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.md_from" theme="bootstrap" name="md_from">\n <ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_to && application.md_to!==\'always\' && monthDay>application.md_to && monthDay!==\'always\'">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.md_to" theme="bootstrap" name="md_to">\n <ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_from && application.md_from!==\'always\' && monthDay<application.md_from && monthDay!==\'always\'">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTHDAY -->\n\n <!-- START MONTH -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.m_from" theme="bootstrap" name="m_from">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{ month.name | translate }}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.m_to" theme="bootstrap" name="m_to">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{ month.name | translate }}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTH -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.intType === \'list\'" lazy-render duration="1" data-ng-init="getIntervals()">\n\n <!-- START INTERVALS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.IntervalId.$touched || forms.settings.$submitted) && forms.settings.IntervalId.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERVALS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.IntervalId" theme="bootstrap" name="IntervalId" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="interval.id as interval in intervals | filter: $select.search">\n {{ interval.name}}\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="intervals.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_INTERVAL_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/intervals/list">{{\'APPLICATION_INTERVALS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.settings.IntervalId.$touched || forms.settings.$submitted) && forms.settings.IntervalId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVALS -->\n\n </div>\n <button class="btn green-haze" type="submit">{{\'APPLICATION_UPDATE\' | translate}}</button>\n </form>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'), +a.put("app/channels/sms/account/view/action/wizard/wizard.html",'\n<div class="row" data-ng-init="initWizard()">\n <div class="col-md-12">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-directions font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACTION\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_APPLICATION\' | translate}}" canexit="formValidation(forms.action.$valid)">\n <form name="forms.action" novalidate>\n <!-- START APP -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.action.$submitted && forms.action.app.$invalid}">\n <label class="control-label">{{ \'APPLICATION_APPLICATION\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.app" name="app" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_APPLICATION\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="app.value as app in apps | filter: $select.search">\n <div ng-bind-html="app.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.action.$submitted && forms.action.app.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END APP -->\n\n <div class="app-settings" ng-slide-down="application.app === \'agent\'" lazy-render duration="1" data-ng-init="getAgents()">\n <!-- START AGENT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.agent.$touched || forms.action.$submitted) && forms.action.agent.$invalid}">\n <label class="control-label">{{\'APPLICATION_AGENT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.UserId" name="agent" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.fullname}}</ui-select-match>\n <ui-select-choices repeat="agent.id as agent in agents | filter: $select.search">\n <div ng-bind-html="agent.fullname | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="agents.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_AGENTS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/staff/agents/list">{{\'APPLICATION_AGENTS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.action.agent.$touched || forms.action.$submitted) && forms.action.agent.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END AGENT -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n <span data-ng-show="(forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid && forms.action.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'queue\'" lazy-render duration="1" data-ng-init="getQueues()">\n <!-- START QUEUE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.queue.$touched || forms.action.$submitted) && forms.action.queue.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.SmsQueueId" name="queue" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="queue.id as queue in queues | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="queues.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_QUEUES_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/channels/sms/queues/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.action.queue.$touched || forms.action.$submitted) && forms.action.queue.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n <span data-ng-show="(forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid && forms.action.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'sendMail\'" lazy-render duration="1" data-ng-init="getMailAccounts();getTemplates()">\n <!-- START SENDMAIL -->\n <div class="app-settings" ng-slide-down="application.app === \'sendMail\'" lazy-render duration="1">\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.to.$touched || forms.action.$submitted) && forms.action.to.$invalid}">\n <label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="email" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2" required/>\n <span data-ng-show="(forms.action.to.$touched || forms.action.$submitted) && forms.action.to.$invalid && forms.action.to.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.mail.$touched || forms.action.$submitted) && forms.action.account.$invalid}">\n <label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in mailAccounts | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.template.$touched || forms.action.$submitted) && forms.action.template.$invalid}">\n <label class="control-label">{{\'APPLICATION_TEMPLATE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data9" name="template" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n <div ng-bind-html="template.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.template.$touched || forms.action.$submitted) && forms.action.template.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SENDMAIL -->\n </div>\n <div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1" data-ng-init="getSmsAccounts()">\n <!-- START SENDSms -->\n <div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1">\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.to.$touched || forms.action.$submitted) && forms.action.to.$invalid}">\n <label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" ng-pattern="/^[\\+]?[0-9]+$/" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2" required/>\n <span data-ng-show="(forms.action.to.$touched || forms.action.$submitted) && forms.action.to.$invalid && forms.action.to.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$invalid}">\n <label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in smsAccounts | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.text.$touched || forms.action.$submitted) && forms.action.text.$invalid}">\n <label class="control-label">{{\'APPLICATION_TEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <textarea id="text" class="form-control maxlength-handler" maxlength="160" name="text" data-ng-model="application.data6" required></textarea>\n <span data-ng-show="(forms.action.text.$touched || forms.action.$submitted) && forms.action.text.$invalid && forms.action.text.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <!-- END SENDSms -->\n </div>\n <!-- START INTERVAL_TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.intType.$touched || forms.action.$submitted) && forms.action.intType.$invalid}">\n <label class="control-label">{{ \'APPLICATION_INTERVAL_TYPE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.intType" theme="bootstrap" name="intType" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="intType.value as intType in $application.intTypes | filter: $select.search">\n {{ intType.name | translate }}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.intType.$touched || forms.action.$submitted) && forms.action.intType.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVAL_TYPE -->\n\n <div class="app-settings" ng-slide-down="application.intType === \'custom\'" lazy-render duration="1">\n <!-- START TIME -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n <div class="input-group input-large">\n <fieldset class="pull-left" ng-disabled="application.alwaysTime">\n <uib-timepicker name="t_from" data-ng-model="application.t_from" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker>\n </fieldset>\n <div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n <fieldset ng-disabled="application.alwaysTime"><uib-timepicker name="t_to" data-ng-model="application.t_to" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker></fieldset>\n <!-- <label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="application.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label> -->\n </div>\n </div>\n <!-- END TIME -->\n\n <!-- START ALWAYS -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ALWAYS\' | translate }}</label>\n <div class="input-group input-large">\n <label class="control-label pointer-cursor">\n <input\n bs-switch\n data-ng-model="application.alwaysTime"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n <!-- <input type="checkbox" data-ng-model="application.alwaysTime"> -->\n </label>\n </div>\n </div>\n <!-- END ALWAYS -->\n\n <!-- START WEEKDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.wd_from" theme="bootstrap" name="wd_from">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{ weekDay.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.wd_to" theme="bootstrap" name="wd_to">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{ weekDay.name | translate }}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END WEEKDAY -->\n\n <!-- START MONTHDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.md_from" theme="bootstrap" name="md_from">\n <ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_to && application.md_to!==\'always\' && monthDay>application.md_to && monthDay!==\'always\'">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.md_to" theme="bootstrap" name="md_to">\n <ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_from && application.md_from!==\'always\' && monthDay<application.md_from && monthDay!==\'always\'">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTHDAY -->\n\n <!-- START MONTH -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.m_from" theme="bootstrap" name="m_from">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{ month.name | translate }}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.m_to" theme="bootstrap" name="m_to">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{ month.name | translate }}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTH -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.intType === \'list\'" lazy-render duration="1" data-ng-init="getIntervals()">\n\n <!-- START INTERVALS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.IntervalId.$touched || forms.action.$submitted) && forms.action.IntervalId.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERVALS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.IntervalId" theme="bootstrap" name="IntervalId" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="interval.id as interval in intervals | filter: $select.search">\n {{ interval.name}}\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="intervals.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_INTERVAL_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/intervals/list">{{\'APPLICATION_INTERVALS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.action.IntervalId.$touched || forms.action.$submitted) && forms.action.IntervalId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVALS -->\n\n </div>\n\n <input class="btn green-haze" type="submit" data-ng-click="next()" value="{{\'APPLICATION_CONTINUE\' | translate}}"/>\n </form>\n </wz-step>\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n <input class="btn green-haze" type="submit" data-ng-click="next()" value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/sms/account/view/api/view/view.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_API\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- CALLBACK TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <!-- START CALLBACK URL -->\n <div class="row" >\n <div class="col-md-12">\n <label class="control-label">Receive URL</label>\n <p>\n Copy the following url and insert it into your {{account.type}} account settings to receive SMS.\n <a href="https://wiki.xcallymotion.com/display/XMD/SMS" target="_blank">Detail</a>\n </p>\n </div>\n </div>\n <div class="row" >\n <div class="col-md-11">\n <code-mirror model="receiveurl"></code-mirror>\n </div>\n <div class="col-md-1">\n <a class="btn btn-sm green-jungle" data-ng-click="copyToClipboard(receiveurl);"><i class="fa fa-clipboard"></i>\n </a>\n </div>\n </div><br>\n <!-- END CALLACK URL -->\n <!-- START DELIVERY CALLBACK URL -->\n <div ng-if= "account.smstype == \'classic+\'" class="row" ng-show="!forms.info.remote.$invalid">\n <div class="col-md-12">\n <label class="control-label">Delivery URL </label>\n <p>\n Copy the following url and insert it into your {{account.type}} account settings to receive delivery report.\n <a href="https://wiki.xcallymotion.com/display/XMD/SMS" target="_blank">Detail</a>\n </p>\n </div>\n </div>\n <div ng-if= "account.smstype == \'classic+\'" class="row" ng-show="!forms.info.remote.$invalid">\n <div class="col-md-11">\n <code-mirror class="control-label" model="deliveryurl"></code-mirror>\n </div>\n <div class="col-md-1">\n <a class="btn btn-sm green-jungle" data-ng-click="copyToClipboard(deliveryurl);"><i class="fa fa-clipboard"></i>\n </a>\n </div>\n </div>\n <!-- END DELIVERY CALLACK URL -->\n </div>\n <!-- END CALLBACK TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/sms/account/view/disposition/modal/add.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_DISPOSITIONS\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.form.$touched || form.$submitted) && form.form.$invalid}">\n <div class="">\n <input type="text" name="form" placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}" class="form-control" data-ng-model="name" required/>\n <span data-ng-show="form.form.$touched && form.form.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <!-- END NAME -->\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" data-ng-click="ok()" data-ng-show="form.$valid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/sms/account/view/disposition/view/view.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_DISPOSITIONS\' | translate}}</span>\n </div>\n <div class="actions actions-md">\n <a href="#" class="btn btn-icon-only green" data-ng-click="addDisposition();">\n <i class="fa fa-plus"></i>\n </a>\n </div>\n </div>\n <div class="portlet-body" data-ng-init="initView()">\n <div class="tab-content">\n <div class="row" data-ng-hide="dispositions.length">\n <div class="col-md-12">\n <div class="note note-info">\n <h4 class="block">Info! {{\'MESSAGE_NO_DISPOSITIONS_AVAILABLE\' | translate}}</h4>\n </div>\n </div>\n </div>\n\n <!-- GENERAL TAB -->\n <div class="row" data-ng-repeat="disposition in dispositions">\n <div class="col-md-12 form-group">\n <div class="input-group">\n <div>\n <input class="form-control" type="text" placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}" data-ng-model="disposition.name">\n </div>\n <span class="input-group-btn">\n <button class="btn btn-success" type="button" data-ng-click="updateDisposition(disposition.id, disposition.name);"><i class="fa fa-cloud-upload fa-fw"></i> {{\'APPLICATION_UPDATE\' | translate}}</button>\n <button class="btn btn-danger" type="button" data-ng-click="deleteDisposition(disposition.id);"><i class="fa fa-times fa-fw"></i> {{\'APPLICATION_DELETE\' | translate}}</button>\n </span>\n </div>\n </div>\n </div>\n <!-- END GENERAL TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/sms/account/view/hooks/view/view.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_HOOKS\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_ACCEPT\' | translate}}</a>\n </li>\n <li >\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_REJECT\' | translate}}</a>\n </li>\n <li >\n <a href="#" data-target="#tab_1_3" data-toggle="tab">{{\'APPLICATION_CLOSE\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- ACCEPT TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.accept" data-ng-submit="forms.accept.$valid && updateItemSmsAccount()" novalidate>\n <!-- START ACCEPT URL -->\n <div class="row">\n <div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.accept.method.$touched || forms.accept.$submitted) && forms.accept.method.$invalid}">\n <label class="control-label">{{\'APPLICATION_METHOD\' | translate}}</label>\n <ui-select data-ng-model="account.acceptMethod" name="method" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected.name | uppercase}}</ui-select-match>\n <ui-select-choices repeat="type.value as type in types | filter: $select.search">\n <div ng-bind-html="type.name | highlight: $select.search | uppercase" ></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.accept.method.$touched || forms.accept.$submitted) && forms.accept.method.$invalid && forms.accept.method.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.accept.url.$touched || forms.accept.$submitted) && forms.accept.url.$invalid}">\n <label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n <input type="url" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="account.acceptUrl" ng-required="account.acceptMethod"/>\n <span data-ng-show="(forms.accept.url.$touched || forms.accept.$submitted) && forms.accept.url.$invalid && forms.accept.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <!-- END ACCEPT URL-->\n <!-- START ACTIONS-->\n <!-- START PAUSE -->\n <div class="row" ng-repeat = "action in account.actions">\n <div ng-switch="action.action">\n <div ng-switch-when="pause">\n <div class="form-group col-md-4">\n <label class="control-label">{{\'APPLICATION_PAUSE\' | translate}}</label></br>\n <input\n bs-switch\n data-ng-change="resetActionData(action)"\n data-ng-model="action.enabled"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </div>\n <div ng-if="action.enabled" class="form-group col-md-8">\n <label class="control-label">{{\'APPLICATION_TYPE\' | translate}}</label>\n <ui-select name="action" data-ng-model="action.type" theme="bootstrap" >\n <ui-select-match placeholder="{{\'APPLICATION_TYPE\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat=" pause.name as pause in pauses | filter: $select.search">\n <div ng-bind-html="pause.name | highlight: $select.search | uppercase" ></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n </div>\n </div>\n <!-- END ACTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ACCEPT TAB -->\n <!-- START REJECT TAB -->\n <div class="tab-pane" id="tab_1_2">\n <form name="forms.reject" data-ng-submit="forms.reject.$valid && updateItemSmsAccount()" novalidate>\n <!-- START REJECT URL -->\n <div class="row">\n <div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.reject.method.$touched || forms.reject.$submitted) && forms.reject.method.$invalid}">\n <label class="control-label">{{\'APPLICATION_METHOD\' | translate}}</label>\n <ui-select data-ng-model="account.rejectMethod" name="method" theme="bootstrap" >\n <ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected.name | uppercase}}</ui-select-match>\n <ui-select-choices repeat="type.value as type in types | filter: $select.search">\n <div ng-bind-html="type.name | highlight: $select.search | uppercase" ></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.reject.method.$touched || forms.reject.$submitted) && forms.reject.method.$invalid && forms.reject.method.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.reject.url.$touched || forms.reject.$submitted) && forms.reject.url.$invalid}">\n <label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n <input type="url" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="account.rejectUrl" ng-required="account.rejectMethod"/>\n <span data-ng-show="(forms.reject.url.$touched || forms.reject.$submitted) && forms.reject.url.$invalid && forms.reject.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n\n <!-- END REJECT URL -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END REJECT TAB -->\n <!-- START CLOSE TAB -->\n <div class="tab-pane" id="tab_1_3">\n <form name="forms.close" data-ng-submit="forms.close.$valid && updateItemSmsAccount()" novalidate>\n <div class="row">\n <div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.close.method.$touched || forms.close.$submitted) && forms.close.method.$invalid}">\n <label class="control-label">{{\'APPLICATION_METHOD\' | translate}}</label>\n <ui-select data-ng-model="account.closeMethod" name="method" theme="bootstrap" >\n <ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected.name | uppercase}}</ui-select-match>\n <ui-select-choices repeat="type.value as type in types | filter: $select.search">\n <div ng-bind-html="type.name | highlight: $select.search | uppercase" ></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.close.method.$touched || forms.close.$submitted) && forms.close.method.$invalid && forms.close.method.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.close.url.$touched || forms.close.$submitted) && forms.close.url.$invalid}">\n <label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n <input type="url" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="account.closeUrl" ng-required="account.closeMethod"/>\n <span data-ng-show="(forms.close.url.$touched || forms.close.$submitted) && forms.close.url.$invalid && forms.close.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END CLOSE TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'), +a.put("app/channels/sms/account/view/setting/view/view.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERALS\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.info" data-ng-submit="forms.info.$valid && updateItemSmsAccount()" novalidate>\n <!-- START ID -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_ID\' | translate}}<span class="required" aria-required="true">*</span>\n </label>\n <input type="text" name="id" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.id" ng-disabled="true" required/>\n </div>\n <!-- END ID-->\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.name" required/>\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid && forms.info.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n <!-- START LIST -->\n <div class="form-group" data-ng-if="license.cm">\n <label class="control-label">{{\'APPLICATION_LIST\' | translate}}</label>\n <div class="input-group">\n\n <ui-select data-ng-model="account.ListId" name="list" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_LIST\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="list.id as list in lists | filter: $select.search">\n <div ng-bind-html="list.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n\n <span class="input-group-btn">\n <button type="button" data-ng-click="account.ListId = null" class="btn btn-default">\n <span class="glyphicon glyphicon-trash"></span>\n </button>\n </span>\n\n </div>\n </div>\n <!-- END LIST -->\n <!-- START FIDELITY -->\n <!-- <div class="form-group">\n <label class="control-label">{{\'APPLICATION_FIDELITY\' | translate}}</label></br>\n <input\n bs-switch\n data-ng-model="account.fidelity"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </div> -->\n <!-- END FIDELITY -->\n\n <!-- START TIMEOUT -->\n <!-- <div class="form-group" data-ng-if="account.fidelity" data-ng-class="{\'has-error\': (forms.info.timeout.$touched || forms.info.$submitted) && forms.info.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="0" name="timeout" placeholder="{{\'APPLICATION_PORT\' | translate}}" class="form-control" data-ng-model="account.timeout" required/>\n <span data-ng-show="(forms.info.timeout.$touched || forms.info.$submitted) && forms.info.timeout.$invalid && forms.info.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.timeout.$touched || forms.info.$submitted) && forms.info.timeout.$invalid && forms.info.timeout.$error.number" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n </span>\n </div> -->\n <!-- END TIMEOUT -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="account.description"/>\n </div>\n <!-- END DESCRIPTION -->\n <!-- START TWILIO -->\n <!-- START PHONE -->\n <div ng-if= "account.type == \'twilio\'" class="form-group" data-ng-class="{\'has-error\': ( forms.info.phone.$touched ||forms.info.$submitted) && forms.info.phone.$invalid}">\n <label class="control-label">{{\'APPLICATION_PHONE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" ng-pattern="/^[\\+]?[0-9]+$/" placeholder="{{\'APPLICATION_PHONE\' | translate}}" class="form-control" data-ng-model="account.phone" name="phone" required/>\n <span data-ng-show="(forms.info.phone.$touched || forms.in.$submitted) && forms.info.phone.$invalid && forms.info.phone.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PHONE -->\n\n <!-- START SID -->\n <div ng-if= "account.type == \'twilio\'" class="form-group" data-ng-class="{\'has-error\': (forms.info.sid.$touched || forms.info.$submitted) && forms.info.sid.$invalid}">\n <label class="control-label">{{\'APPLICATION_SID\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="sid" placeholder="{{\'APPLICATION_SID\' | translate}}" class="form-control" data-ng-model="account.sid" name="sid" required/>\n <span data-ng-show="(forms.info.sid.$touched || forms.info.$submitted) && forms.info.sid.$invalid && forms.info.sid.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SID -->\n <!-- START TOKEN -->\n <div ng-if= "account.type == \'twilio\'" class="form-group" data-ng-class="{\'has-error\': (forms.info.token.$touched || forms.info.$submitted) && forms.info.token.$invalid}">\n <label class="control-label">{{\'APPLICATION_TOKEN\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="token" placeholder="{{\'APPLICATION_TOKEN\' | translate}}" class="form-control" data-ng-model="account.token" name="token" required/>\n <span data-ng-show="(forms.info.token.$touched || forms.info.$submitted) && forms.info.token.$invalid && forms.info.token.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SID -->\n <!-- END TWILIO -->\n <!-- START SKEBBY -->\n <!-- START SKEBBY SMS TYPE -->\n <div ng-if= " account.type == \'skebby\'" class="form-group" data-ng-class="{\'has-error\': (forms.info.smstype.$touched || forms.info.$submitted) && forms.info.smstype.$invalid}">\n <label class="control-label">{{\'APPLICATION_SMS_TYPE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="account.smstype" name="smstype" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'SMS_TYPE\' | translate}}">{{$select.selected | uppercase}}</ui-select-match>\n <ui-select-choices repeat="smstype in [\'basic\',\'classic\',\'classic+\'] | filter: $select.search">\n <div data-ng-bind="smstype | highlight: $select.search | uppercase" ></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.info.smstype.$touched || forms.info.$submitted) && forms.info.smstype.$invalid && forms.info.smstype.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SKEBBY SMS TYPE -->\n <!-- START PHONE -->\n <div ng-if= "account.type == \'skebby\' " class="form-group" data-ng-class="{\'has-error\': ( forms.info.phone.$touched ||forms.info.$submitted) && forms.info.phone.$invalid}">\n <label class="control-label">{{\'APPLICATION_PHONE\' | translate}}<span class="required" aria-required="true"></span></label>\n <input type="text" ng-pattern="/^[0-9]+$/" placeholder="{{\'APPLICATION_PHONE\' | translate}}" class="form-control" data-ng-model="account.phone" name="phone" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_PHONE_NUMBER\' | translate }}\n </span>\n <span data-ng-show="(forms.info.phone.$touched || forms.in.$submitted) && forms.info.phone.$invalid && forms.info.phone.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PHONE -->\n <!-- START USERNAME -->\n <div ng-if= "account.type == \'skebby\'" class="form-group" data-ng-class="{\'has-error\': (forms.info.username.$touched || forms.info.$submitted) && forms.info.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="account.username" name="username" required/>\n <span data-ng-show="(forms.info.username.$touched || forms.info.$submitted) && forms.info.username.$invalid && forms.info.username.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START PASSWORD -->\n <div ng-if= "account.type == \'skebby\'" class="form-group" data-ng-class="{\'has-error\': (forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="account.password" required/>\n <span data-ng-show="(forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$invalid && forms.info.password.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n <!-- END SKEBBY -->\n <!-- START REMOTE IP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.remote.$touched || forms.info.$submitted) && forms.info.remote.$invalid}">\n <label class="control-label">{{\'APPLICATION_MOTION_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="remote" placeholder="{{\'APPLICATION_MOTION_ADDRESS\' | translate}}" class="form-control" data-ng-model="account.remote" required/>\n <span class="help-block help-block-info">\n {{\'MESSAGE_MOTION_ADDRESS_FORMAT\' | translate}}\n </span>\n <span data-ng-show="(forms.info.remote.$touched || forms.info.$submitted) && forms.info.remote.$invalid && forms.info.remote.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END REMOTE IP -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/sms/account/view/view.html",'<!-- BEGIN PAGE HEADER-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="glyphicon glyphicon-comment"></i>\n <a href="#">{{ \'APPLICATION_SMS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-notebook"></i>\n <a href="/channels/sms/accounts/list">{{ \'APPLICATION_ACCOUNTS\' | translate }}</a>\n <i class="fa fa-angle-right" data-ng-show="account"></i>\n </li>\n <li data-ng-show="account">\n <a href="#">{{ account.description || account.name }}</a>\n </li>\n </ul>\n </div>\n\n<!-- END PAGE HEADER-->\n\n<!-- BEGIN PAGE CONTENT-->\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET main.channels -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img ng-src="assets/images/media/account.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{ account.description || account.name }}\n </div>\n <div class="profile-usertitle-job">\n {{account.email}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li ng-class="{active: $state.is(\'main.channels.sms.accounts.view.settings\')}">\n <a href="/channels/sms/accounts/view/{{account.id}}/settings">\n <i class="icon-settings"></i>\n {{\'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n <li ng-class="{active: $state.is(\'main.channels.sms.accounts.view.api\')}">\n <a href="/channels/sms/accounts/view/{{account.id}}/api">\n <i class="fa fa-external-link"></i>\n {{\'APPLICATION_API\' | translate}} </a>\n </li>\n <li ng-class="{active: $state.is(\'main.channels.sms.accounts.view.hooks\')}">\n <a href="/channels/sms/accounts/view/{{account.id}}/hooks">\n <i class="fa fa-code"></i>\n {{\'APPLICATION_HOOKS\' | translate}} </a>\n </li>\n <li ng-class="{active: $state.is(\'main.channels.sms.accounts.view.dispositions\')}">\n <a href="/channels/sms/accounts/view/{{account.id}}/dispositions">\n <i class="icon-target"></i>\n {{\'APPLICATION_DISPOSITIONS\' | translate}} </a>\n </li>\n <li ng-class="{active: $state.includes(\'main.channels.sms.accounts.view.actions\')}">\n <a href="/channels/sms/accounts/view/{{account.id}}/actions/list">\n <i class="icon-directions"></i>\n {{\'APPLICATION_ACTIONS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <div ui-view class="profile-content"></div>\n <!-- END PROFILE CONTENT -->\n </div>\n<!-- END PAGE CONTENT-->\n</div>\n'),a.put("app/channels/sms/account/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERALS\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.info" data-ng-submit="forms.info.$valid && updateItemSmsAccount()" novalidate>\n <!-- START ID -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_ID\' | translate}}<span class="required" aria-required="true">*</span>\n </label>\n <input type="text" name="id" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.id" ng-disabled="true" required/>\n </div>\n <!-- END ID-->\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.name" required/>\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid && forms.info.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n <!-- START LIST -->\n <div class="form-group" data-ng-if="license.cm">\n <label class="control-label">{{\'APPLICATION_LIST\' | translate}}</label>\n <div class="input-group">\n\n <ui-select data-ng-model="account.ListId" name="list" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_LIST\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="list.id as list in lists | filter: $select.search">\n <div ng-bind-html="list.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n\n <span class="input-group-btn">\n <button type="button" data-ng-click="account.ListId = null" class="btn btn-default">\n <span class="glyphicon glyphicon-trash"></span>\n </button>\n </span>\n\n </div>\n </div>\n <!-- END LIST -->\n\n\n <!-- START FIDELITY -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_FIDELITY\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n data-ng-model="account.fidelity"\n type="checkbox"\n name="auth"\n switch-active="{{ recordSwitch.isActive }}"\n switch-on-text="{{ recordSwitch.onText }}"\n switch-off-text="{{ recordSwitch.offText }}"\n switch-on-color="{{ recordSwitch.onColor }}"\n switch-off-color="{{ recordSwitch.offColor }}"\n switch-animate="{{ recordSwitch.animate }}"\n switch-size="{{ recordSwitch.size }}"\n switch-label="{{ recordSwitch.label }}"\n switch-icon="{{ recordSwitch.icon }}"\n switch-radio-off="{{ recordSwitch.radioOff }}"\n switch-label-width="{{ recordSwitch.labelWidth }}"\n switch-handle-width="{{ recordSwitch.handleWidth }}">\n </div>\n <!-- END FIDELITY -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-if="account.fidelity" data-ng-class="{\'has-error\': (forms.info.timeout.$touched || forms.info.$submitted) && forms.info.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="0" name="timeout" placeholder="{{\'APPLICATION_PORT\' | translate}}" class="form-control" data-ng-model="account.timeout" required/>\n <span data-ng-show="(forms.info.timeout.$touched || forms.info.$submitted) && forms.info.timeout.$invalid && forms.info.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.timeout.$touched || forms.info.$submitted) && forms.info.timeout.$invalid && forms.info.timeout.$error.number" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="account.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START PHONE FOR TWILLIO ACCOUNT -->\n\n <div ng-if= "account.type == \'twilio\'" class="form-group" data-ng-class="{\'has-error\': ( forms.info.phone.$touched ||forms.info.$submitted) && forms.info.phone.$invalid}">\n <label class="control-label">{{\'APPLICATION_PHONE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" ng-pattern="/^[\\+]?[0-9]+$/" placeholder="{{\'APPLICATION_PHONE\' | translate}}" class="form-control" data-ng-model="account.phone" name="phone" required/>\n<!-- Format with a \'+\' and country code -->\n <!-- <span class="help-block">\n {{ \'DESCRIPTION_PHONE_NUMBER\' | translate }}\n </span> -->\n <span data-ng-show="(forms.info.phone.$touched || forms.in.$submitted) && forms.info.phone.$invalid && forms.info.phone.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PHONE FOR TWILLIO ACCOUNT -->\n\n <!-- START SID -->\n <div ng-if= "account.type == \'twilio\'" class="form-group" data-ng-class="{\'has-error\': (forms.info.sid.$touched || forms.info.$submitted) && forms.info.sid.$invalid}">\n <label class="control-label">{{\'APPLICATION_SID\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="sid" placeholder="{{\'APPLICATION_SID\' | translate}}" class="form-control" data-ng-model="account.sid" name="sid" required/>\n <span data-ng-show="(forms.info.sid.$touched || forms.info.$submitted) && forms.info.sid.$invalid && forms.info.sid.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SID -->\n <!-- START TOKEN -->\n <div ng-if= "account.type == \'twilio\'" class="form-group" data-ng-class="{\'has-error\': (forms.info.token.$touched || forms.info.$submitted) && forms.info.token.$invalid}">\n <label class="control-label">{{\'APPLICATION_TOKEN\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="token" placeholder="{{\'APPLICATION_TOKEN\' | translate}}" class="form-control" data-ng-model="account.token" name="token" required/>\n <span data-ng-show="(forms.info.token.$touched || forms.info.$submitted) && forms.info.token.$invalid && forms.info.token.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SID -->\n\n <!-- START SMS TYPE -->\n\n <div ng-if= " account.type == \'skebby\'" class="form-group" data-ng-class="{\'has-error\': (forms.info.smstype.$touched || forms.info.$submitted) && forms.info.smstype.$invalid}">\n <label class="control-label">{{\'APPLICATION_SMS_TYPE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="account.smstype" name="smstype" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'SMS_TYPE\' | translate}}">{{$select.selected | uppercase}}</ui-select-match>\n <ui-select-choices repeat="smstype in [\'basic\',\'classic\',\'classic+\'] | filter: $select.search">\n <div data-ng-bind="smstype | highlight: $select.search | uppercase" ></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.info.smstype.$touched || forms.info.$submitted) && forms.info.smstype.$invalid && forms.info.smstype.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TYPE -->\n <!-- START PHONE FOR SKEBBY ACCOUNT -->\n <div ng-if= "account.type == \'skebby\' " class="form-group" data-ng-class="{\'has-error\': ( forms.info.phone.$touched ||forms.info.$submitted) && forms.info.phone.$invalid}">\n <label class="control-label">{{\'APPLICATION_PHONE\' | translate}}<span class="required" aria-required="true"></span></label>\n <input type="text" ng-pattern="/^[0-9]+$/" placeholder="{{\'APPLICATION_PHONE\' | translate}}" class="form-control" data-ng-model="account.phone" name="phone" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_PHONE_NUMBER\' | translate }}\n </span>\n <span data-ng-show="(forms.info.phone.$touched || forms.in.$submitted) && forms.info.phone.$invalid && forms.info.phone.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PHONE -->\n <!-- START USERNAME -->\n <div ng-if= "account.type == \'skebby\'" class="form-group" data-ng-class="{\'has-error\': (forms.info.username.$touched || forms.info.$submitted) && forms.info.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="account.username" name="username" required/>\n <span data-ng-show="(forms.info.username.$touched || forms.info.$submitted) && forms.info.username.$invalid && forms.info.username.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START PASSWORD -->\n <div ng-if= "account.type == \'skebby\'" class="form-group" data-ng-class="{\'has-error\': (forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="account.password" required/>\n <span data-ng-show="(forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$invalid && forms.info.password.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n <!-- START REMOTE IP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.remote.$touched || forms.info.$submitted) && forms.info.remote.$invalid}">\n <label class="control-label">{{\'APPLICATION_MOTION_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="remote" placeholder="{{\'APPLICATION_MOTION_ADDRESS\' | translate}}" class="form-control" data-ng-model="account.remote" required/>\n <span data-ng-show="(forms.info.remote.$touched || forms.info.$submitted) && forms.info.remote.$invalid && forms.info.remote.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END REMOTE IP -->\n <!-- START CALLBACK URL -->\n <div ng-show="!forms.info.remote.$invalid" class="row" >\n <!-- <div class="row"> -->\n <div class="col-md-12">\n <label class="control-label">URL </label><br>\n <span ng-if= "account.type == \'twilio\' || account.type == \'skebby\'">\n Copy the following url and insert it into your {{account.type}} account settings to receive sms.\n <a href="https://wiki.xcallymotion.com/display/XMD/SMS" target="_blank">Detail</a>\n </span>\n </div>\n </div>\n <br>\n <div ng-show="!forms.info.remote.$invalid" class="row" >\n <div class="col-md-11">\n <code-mirror model="receiveurl"></code-mirror>\n </div>\n <div class="col-md-1">\n <a class="btn btn-sm green-jungle" data-ng-click="copyToClipboard(receiveurl);"><i class="fa fa-clipboard"></i>\n </a>\n </div>\n </div>\n <!-- END CALLACK URL -->\n <!-- START DELIVERY CALLBACK URL -->\n <div ng-if= "account.smstype == \'classic+\'" class="row" ng-show="!forms.info.remote.$invalid">\n <div class="col-md-12">\n <label class="control-label">Delivery URL </label><br>\n Copy the following url and insert it into your {{account.type}} account settings to receive delivery status.\n <a href="https://wiki.xcallymotion.com/display/XMD/SMS" target="_blank">Detail</a>\n </div>\n </div>\n <br>\n <div ng-if= "account.smstype == \'classic+\'" class="row" ng-show="!forms.info.remote.$invalid">\n <div class="col-md-11">\n <code-mirror class="control-label" model="deliveryurl"></code-mirror>\n </div>\n <div class="col-md-1">\n <a class="btn btn-sm green-jungle" data-ng-click="copyToClipboard(deliveryurl);"><i class="fa fa-clipboard"></i>\n </a>\n </div>\n </div>\n <!-- END DELIVERY CALLACK URL -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'), +a.put("app/channels/sms/account/wizard/wizard.html",'\n<div class="row" data-ng-init="initWizard()">\n <div class="col-md-12">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="glyphicon glyphicon-comment"></i>\n <a href="#">{{ \'APPLICATION_SMS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-notebook"></i>\n <a href="/channels/sms/accounts/list">{{ \'APPLICATION_ACCOUNTS\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACCOUNT\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_ACCOUNT_INFO\' | translate}}" canexit="formValidation(forms.info.$valid)">\n <form name="forms.info" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid && forms.info.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n </div>\n <!-- END DESCRIPTION -->\n <!-- START APPLICATION TYPE -->\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.type.$touched || forms.info.$submitted) && forms.info.type.$invalid}">\n <label class="control-label">{{\'APPLICATION_TYPE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.type" name="type" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_TYPE\' | translate}}">{{$select.selected | uppercase}}</ui-select-match>\n <ui-select-choices repeat="type in [\'twilio\',\'skebby\'] | filter: $select.search">\n <div data-ng-bind="type | highlight: $select.search | uppercase" ></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.info.type.$touched || forms.info.$submitted) && forms.info.type.$invalid && forms.info.type.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TYPE -->\n <!-- START PHONE FOR TWILLIO ACCOUNT -->\n <div ng-if= "item.type == \'twilio\'" class="form-group" data-ng-class="{\'has-error\': ( forms.info.phone.$touched ||forms.info.$submitted) && forms.info.phone.$invalid}">\n <label class="control-label">{{\'APPLICATION_PHONE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" ng-pattern="/^[\\+]?[0-9]+$/" placeholder="{{\'APPLICATION_PHONE\' | translate}}" class="form-control" data-ng-model="item.phone" name="phone" required/>\n <span data-ng-show="(forms.info.phone.$touched || forms.info.$submitted) && forms.info.phone.$invalid && forms.info.phone.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PHONE FOR TWILLIO ACCOUNT -->\n <!-- START SID -->\n <div ng-if= "item.type == \'twilio\'" class="form-group" data-ng-class="{\'has-error\': ( forms.info.sid.$touched ||forms.info.$submitted) && forms.info.sid.$invalid}">\n <label class="control-label">{{\'APPLICATION_SID\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" placeholder="{{\'APPLICATION_SID\' | translate}}" class="form-control" data-ng-model="item.sid" name="sid" required/>\n <span data-ng-show="(forms.info.sid.$touched || forms.info.$submitted) && forms.info.sid.$invalid && forms.info.sid.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SID -->\n <!-- START TOKEN -->\n <div ng-if= "item.type == \'twilio\'" class="form-group" data-ng-class="{\'has-error\': (forms.info.token.$touched || forms.info.$submitted) && forms.info.token.$invalid}">\n <label class="control-label">{{\'APPLICATION_TOKEN\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" placeholder="{{\'APPLICATION_TOKEN\' | translate}}" class="form-control" data-ng-model="item.token" name="token" required/>\n <span data-ng-show="(forms.info.token.$touched || forms.info.$submitted) && forms.info.token.$invalid && forms.info.token.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SID -->\n\n <!-- START SMS TYPE -->\n <div ng-if= " item.type == \'skebby\'" class="form-group" data-ng-class="{\'has-error\': (forms.info.smstype.$touched || forms.info.$submitted) && forms.info.smstype.$invalid}">\n <label class="control-label">{{\'APPLICATION_SMS_TYPE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.smstype" name="smstype" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'SMS_TYPE\' | translate}}">{{$select.selected | uppercase}}</ui-select-match>\n <ui-select-choices repeat="smstype in [\'basic\',\'classic\',\'classic+\'] | filter: $select.search">\n <div data-ng-bind="smstype | highlight: $select.search | uppercase" ></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.info.smstype.$touched || forms.info.$submitted) && forms.info.smstype.$invalid && forms.info.smstype.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TYPE -->\n <!-- START PHONE FOR SKEBBY ACCOUNT -->\n <div ng-if= "item.type == \'skebby\' " class="form-group" data-ng-class="{\'has-error\': ( forms.info.phone.$touched ||forms.info.$submitted) && forms.info.phone.$invalid}">\n <label class="control-label">{{\'APPLICATION_PHONE\' | translate}}<span class="required" aria-required="true"></span></label>\n <input type="text" ng-pattern="/^[0-9]+$/" placeholder="{{\'APPLICATION_PHONE\' | translate}}" class="form-control" data-ng-model="item.phone" name="phone" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_PHONE_NUMBER\' | translate }}\n </span>\n <span data-ng-show="(forms.info.phone.$touched || forms.info.$submitted) && forms.info.phone.$invalid && forms.info.phone.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PHONE -->\n <!-- START USERNAME -->\n <div ng-if= "item.type == \'skebby\'" class="form-group" data-ng-class="{\'has-error\': (forms.info.username.$touched || forms.info.$submitted) && forms.info.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="item.username" name="username" required/>\n <span data-ng-show="(forms.info.username.$touched || forms.info.$submitted) && forms.info.username.$invalid && forms.info.username.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n <!-- START PASSWORD -->\n <div ng-if= "item.type == \'skebby\'" class="form-group" data-ng-class="{\'has-error\': (forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.password" required/>\n <span data-ng-show="(forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$invalid && forms.info.password.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n <!-- START REMOTE IP -->\n <div ng-if= "item.type" class="form-group" data-ng-class="{\'has-error\': (forms.info.remote.$touched || forms.info.$submitted) && forms.info.remote.$invalid}">\n <label class="control-label">{{\'APPLICATION_MOTION_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="remote" placeholder="{{\'APPLICATION_MOTION_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.remote" required/>\n <span class="help-block help-block-info">\n {{\'MESSAGE_MOTION_ADDRESS_FORMAT\' | translate}}\n </span>\n <span data-ng-show="(forms.info.remote.$touched || forms.info.$submitted) && forms.info.remote.$invalid && forms.info.remote.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END REMOTE IP -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" data-ng-click="goNext()"/>\n </form>\n </wz-step>\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/sms/inbox/room/room.directive.html",'<!-- BEGIN TODO CONTENT -->\n\n<div class="todo-content">\n <div class="portlet light">\n <div class="portlet-title">\n <div class="caption">\n <button class="btn btn-sm btn-default green-meadow" data-ng-if="SmsRoom.status !== \'CLOSED\'" data-ng-disabled="!form.body || forms.compose.from.$invalid || forms.compose.to.$invalid" data-ng-click="sendSMS()">\n <i class="icon-paper-plane" style="color: white;"></i> {{\'APPLICATION_SEND\' | translate}}\n </button>\n <span data-ng-show="SmsRoom && SmsRoom.status !== \'CLOSED\'"> | </span>\n <span data-ng-show="SmsRoom" class="label label-default">#{{SmsRoom.id}} {{SmsRoom.status}}</span>\n <span data-ng-if="SmsRoom && SmsRoom.ParentId"> | </span>\n <span data-ng-if="SmsRoom && SmsRoom.ParentId" class="label label-warning"> Ref: <a data-ng-click="openRoom(SmsRoom.ParentId,SmsRoom.contact)">#{{SmsRoom.ParentId}}</a></span>\n </div>\n <div class="actions" data-ng-switch="SmsRoom.status">\n <button class="btn btn-icon-only" data-ng-show="SmsRoom" data-ng-class="{\'btn-success\':SmsRoom.status !== \'CLOSED\',\'grey-cascade\':SmsRoom.status === \'CLOSED\'}" data-ng-click="closeRoom(SmsRoom.id)" data-ng-disabled="SmsRoom.status === \'CLOSED\' && SmsRoom.disposition">\n <i data-ng-class="{\'fa fa-upload\':SmsRoom.status !== \'CLOSED\',\'icon-target\':SmsRoom.status === \'CLOSED\'}"></i>\n </button>\n <button class="btn default btn-icon-only" data-ng-if="SmsRoom && SmsRoom.status !== \'CLOSED\'" type="button" data-ng-click="togglePanelLeft()" title="{{\'APPLICATION_RESIZE\' | translate}}">\n <i ng-class="panelRight == \'col-md-12\' ? \'icon-size-actual\' : \'icon-size-fullscreen\'"></i>\n </button>\n </div>\n </div>\n <div class="portlet-body">\n <div class="row">\n <div data-ng-show="panelLeft" data-ng-class="panelLeft">\n <div class="form">\n <!-- START TAGS -->\n <div class="form-group" data-ng-if="SmsRoom.status !== \'CLOSED\' || (SmsRoom.status == \'CLOSED\' && form.tags.length)">\n <div class="row">\n <div class="col-md-1">\n <a href="#" class="btn btn-icon-only">\n <i class="fa fa-tags" style="color: gray;"></i>\n </a>\n </div>\n <div class="col-md-11">\n <ui-select data-ng-disabled="SmsRoom.status == \'CLOSED\'" multiple data-ng-model="form.tags" theme="bootstrap" on-select="onChanged($item, $model)" on-remove="onChanged($item, $model)">\n <ui-select-match placeholder="Tags...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="tag in tags | filter:$select.search" class="">\n {{tag}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n </div>\n <!-- END TAGS -->\n </div>\n <hr data-ng-if="SmsRoom && SmsRoom.status !== \'CLOSED\'">\n\n <div ng-scrollbars ng-scrollbars-config="{\n autoHideScrollbar: false,\n theme: \'light\',\n advanced: {\n updateOnContentResize: true\n },\n setHeight: 781,\n scrollInertia: 0\n }">\n <ul class="chats">\n <li data-ng-switch="SmsRoom.status" data-ng-class="{\'in\': smsMessage.status == \'RECEIVED\', \'out\': smsMessage.status == \'SENT\' || smsMessage.status == \'SENDING\' || smsMessage.status == \'FAILED\' || smsMessage.status == \'NOTE\' || smsMessage.status == \'DELIVERED\' || smsMessage.status == \'QUEUED\' || smsMessage.status != \'RECEIVED\' }" data-ng-repeat="smsMessage in SmsRoom.SmsMessages | orderBy:\'-createdAt\'">\n <div class="avatar" data-ng-class="smsMessage.UserId ? \'pretty-avatar\' : \'pretty-avatar-v\'">\n <ng-letter-avatar\n data-ng-if="smsMessage.UserId"\n height="40"\n width="40"\n fontsize="25"\n data="{{smsMessage.User.fullname}}"\n avatarcustombgcolor="#B0B0B0"\n avatarcustomborder="border:2px solid #3399CC"\n charCount="2"\n shape="round"></ng-letter-avatar>\n <ng-letter-avatar\n data-ng-if="!smsMessage.UserId"\n height="40"\n width="40"\n fontsize="25"\n data="{{smsMessage.from}}"\n avatarcustombgcolor="#B0B0B0"\n avatarcustomborder="border:2px solid #EA4C61"\n charCount="1"\n shape="round"></ng-letter-avatar>\n </div>\n <sms message="smsMessage" list-id="SmsRoom.SmsAccount.ListId" accounttype=\'SmsRoom.SmsAccount.type\' ng-switch-default></sms>\n </li>\n </ul>\n </div>\n </div>\n <div data-ng-class="panelRight">\n <div class="note note-info" data-ng-if="SmsRoom && SmsRoom.status == \'CLOSED\'">\n <h4 class="block">Info! {{\'MESSAGE_SMS_ROOM_CLOSED\' | translate}}</h4>\n <p>\n {{\'MESSAGE_SMS_ROOM_CLOSED_DETAILS\' | translate}}.\n </p>\n <hr>\n <p>\n <i class="icon-target"></i> {{\'APPLICATION_DISPOSITION\' | translate}}: <strong>{{SmsRoom.disposition}}</strong>\n </p>\n <p>\n <i class="icon-calendar"></i> {{\'APPLICATION_UPDATED_AT\' | translate}}: <strong>{{SmsRoom.updatedAt | date:\'medium\'}}</strong> (<span am-time-ago="SmsRoom.updatedAt"></span>)\n </p>\n </div>\n <form name="forms.compose" data-ng-submit="forms.compose.$valid && sendSMS()" class="form-horizontal" novalidate>\n <!-- START HEAD -->\n <div class="form">\n\n <!-- START FROM -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.compose.from.$invalid && forms.compose.$submitted}" data-ng-if="SmsRoom.status !== \'CLOSED\'">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-1">\n <label class="control-label">From:</label>\n </div>\n <div class="col-md-11">\n <ui-select data-ng-disabled="SmsRoom" theme="bootstrap" name="from" data-ng-model="form.from" required>\n <ui-select-match placeholder="From...">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="smsAccount.phone as smsAccount in smsAccounts | filter: $select.search">\n <div data-ng-bind-html="smsAccount.name | highlight: $select.search"></div>\n <small data-ng-bind-html="smsAccount.phone | highlight: $select.search"></small>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.compose.from.$invalid && forms.compose.$submitted " class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n </div>\n <!-- END FROM -->\n <!-- START TO -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.compose.to.$invalid && forms.compose.$submitted}" data-ng-if="SmsRoom.status !== \'CLOSED\'">\n\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-1">\n <label class="control-label">To:</label>\n </div>\n <div class="col-md-11">\n <input type="text" ng-pattern="/^[\\+]?[0-9]+$/" name="to" class="form-control todo-taskbody-taskdesc" placeholder="To..." rows="8" data-ng-disabled="SmsRoom" data-ng-model="form.to" required>\n <span data-ng-show="forms.compose.to.$invalid && forms.compose.$submitted " class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n </div>\n <!-- END TO -->\n <!-- START CANNED -->\n <div class="form-group" data-ng-if="SmsRoom.status !== \'CLOSED\'">\n <div class="row">\n <div class="col-md-1">\n <a href="#" class="btn btn-icon-only">\n <i class="fa fa-magic" style="color: gray;"></i>\n </a>\n </div>\n <div class="col-md-11">\n <input type="text"\n data-ng-model="modelOptions.selectedAnswer"\n uib-typeahead="key for key in getAnswers($viewValue)"\n placeholder="Canned answers.."\n typeahead-loading="loadingLocations"\n typeahead-no-results="noResults"\n typeahead-on-select="onSelect($item)"\n class="form-control">\n <i ng-show="loadingLocations" class="glyphicon glyphicon-refresh"></i>\n <div ng-show="noResults">\n <i class="glyphicon glyphicon-remove"></i> No Results Found\n </div>\n </div>\n </div>\n\n </div>\n <!-- END CANNED -->\n <!-- START message -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.compose.body.$invalid && forms.compose.$submitted}" data-ng-if="SmsRoom.status !== \'CLOSED\'">\n <div class="col-md-12">\n <textarea id="text" class="form-control maxlength-handler" rows="8" maxlength="160" name="body" data-ng-model="form.body" ></textarea>\n <button id="btnPost" type="button" class="btn btn-success pull-right" ng-class="{\'btn-warning\': form.body.length >= 120, \'btn-danger\': form.body.length >= 141 }">{{ 160 - form.body.length }}</button>\n <span class="help-block"> Max 160 chars</span>\n <span data-ng-show="forms.compose.body.$invalid && forms.compose.$submitted " class="help-block help-block-error">\n'+" <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n </span>\n </div>\n </div>\n\n <!-- END message -->\n </div>\n </form>\n </div>\n </div>\n </div>\n </div>\n</div>\n<!-- END TODO CONTENT -->\n"),a.put("app/channels/sms/inbox/sms/info.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_INFO\' | translate }}</h3>\n</div>\n<div class="modal-body" data-ng-init="initInfo()" style=" overflow-x: auto;">\n <div class="form-group" ng-if="data">\n <json-formatter json="data" open="1"></json-formatter>\n </div>\n <div class="note note-warning" data-ng-hide="data">\n <p>\n {{ \'MESSAGE_NO_INFO_AVAILABLE\' | translate }}\n </p>\n </div>\n\n</div>\n<div class="modal-footer">\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'),a.put("app/channels/sms/inbox/sms/sms.html",'<div class="message">\n <div class="row">\n <div class="col-md-6">\n <span class="bold">From: </span>\n [<a href="" data-ng-click="openContact(smsMessage.from)">{{smsMessage.from}}</a>]\n <br>\n <span class="bold">To: </span>\n [<a href="" data-ng-click="openContact(smsMessage.to)">{{smsMessage.to}}</a>]\n <br>\n </div>\n <div class="col-md-6">\n <span class="pull-right" data-ng-if="smsMessage.User">{{\'APPLICATION_SENT_BY\' | translate}}: <strong>{{smsMessage.User.fullname}}</strong></span>\n <span class="pull-right" data-ng-if="smsMessage.source">{{\'APPLICATION_SENT_BY\' | translate}}: <strong>Cally ²</strong>\n <a ng-click="info(smsMessage.source)"><i class="icon-info font-blue"></i>\n </a>\n </div>\n </div>\n\n <br>\n <span class="todo-tasklist-date">\n <span class="pull-right" data-ng-switch="smsMessage.status">\n <a ng-switch-when="RECEIVED" href="#" class="btn default btn-xs inactive-link green-stripe"> {{smsMessage.status | uppercase}}\n <i class="fa fa-check"></i>\n </a>\n <a ng-switch-when="SENT" href="#" class="btn default btn-xs inactive-link green-stripe"> {{smsMessage.status | uppercase}}\n <i class="fa fa-check"></i>\n </a>\n <a ng-switch-when="DELIVERED" href="#" class="btn default btn-xs inactive-link green-stripe"> {{smsMessage.status | uppercase}}\n <i class="fa fa-check"></i>\n </a>\n <a ng-switch-when="SENDING" href="#" class="btn default btn-xs inactive-link blue-stripe" > {{smsMessage.status | uppercase}}\n <i class="fa fa-warning"></i>\n </a>\n <a ng-switch-when="FAILED" href="#" class="btn default btn-xs red-stripe" data-ng-click="info(null,smsMessage.res_data)"> {{smsMessage.status | uppercase}}\n <i class="fa fa-times"></i>\n </a>\n <a ng-switch-default href="#" class="btn default btn-xs"> {{smsMessage.status | uppercase}}\n </a>\n <br>\n <!-- <a ng-href="https://www.twilio.com/docs/errors/{{smsMessage.errorcode}}" target="_blank" ng-if="(smsMessage.errorcode) && (accounttype==\'twilio\')">Error Code:{{smsMessage.errorcode}}</a>\n <a ng-href="{{smsMessage.errorcode.length > 2 ? \'http://www.skebby.com/sms-api/sms-gateway/developers-docs/#receiveNotifySection\' : \'http://www.skebby.com/sms-api/sms-gateway/developers-docs/#errorCodesSection\'}}" target="_blank" ng-if="(smsMessage.errorcode != 1) && (smsMessage.errorcode) && (accounttype==\'skebby\')">Error Code:{{smsMessage.errorcode}}</a> -->\n </span>\n\n <i class="icon-calendar" title="{{smsMessage.updatedAt | date:\'MMM d, y HH:mm:ss\'}}"></i> <span am-time-ago="smsMessage.updatedAt"></span>\n </span>\n <hr>\n <span class="body text-left" data-ng-bind-html="smsMessage.body" style="white-space: pre-wrap;"></span>\n\n </div>\n'),a.put("app/channels/sms/inbox/view/account/list/list.html",'<!-- BEGIN Portlet PORTLET-->\n<div class="portlet light" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption">\n <div class="btn-group btn-group-solid">\n <button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'NEW\'" uib-uncheckable>NEW</button>\n </div>\n <div class="btn-group btn-group-solid">\n <button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'OPEN\'" uib-uncheckable>OPEN</button>\n </div>\n <div class="btn-group btn-group-solid">\n <button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'PENDING\'" uib-uncheckable>PENDING</button>\n </div>\n <div class="btn-group btn-group-solid">\n <button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'CLOSED\'" uib-uncheckable>CLOSED</button>\n </div>\n </div>\n <div class="actions">\n <a href="#" class="btn btn-icon-only default" data-ng-click="getPage();">\n <i class="fa fa-refresh"></i>\n </a>\n <a href="#" class="btn btn-icon-only red" data-ng-click="deleteItems();" data-ng-show="id.length && isAdmin">\n <i class="fa fa-trash"></i>\n </a>\n <a href="#" class="btn btn-icon-only btn-success" data-ng-click="disposeItems();" data-ng-show="id.length">\n <i class="fa fa-upload"></i>\n </a>\n <a href="#" class="btn btn-icon-only blue" data-ng-click="tagItems();" data-ng-show="id.length">\n <i class="fa fa-tags"></i>\n </a>\n <a href="#" class="btn btn-icon-only green" data-ng-click="openRoom(null, \'New Message\')">\n <i class="fa fa-plus"></i>\n </a>\n </div>\n </div>\n <div class="portlet-title" data-ng-show="tags.length">\n <!-- START TAGS -->\n <div class="form-group">\n <div class="row">\n <div class="col-md-1">\n <a href="#" class="btn btn-icon-only">\n <i class="fa fa-tags" style="color: gray;"></i>\n </a>\n </div>\n <div class="col-md-11">\n <ui-select multiple data-ng-model="query.tags" theme="bootstrap" on-select="onChanged($item, $model)" on-remove="onChanged($item, $model)">\n <ui-select-match placeholder="Search by tag...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="tag in tags | filter:$select.search">\n {{tag}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n </div>\n <!-- END TAGS -->\n </div>\n <div class="portlet-body">\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="spinner-grid" spinner-start-active="false"></span>\n <!-- END UI-GRID SPINNER -->\n\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-pagination ui-grid-selection ui-grid-exporter class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END Portlet PORTLET-->\n'),a.put("app/channels/sms/inbox/view/view.agents.modal.html",'<div class="modal-header" data-ng-init="initModal()">\n <h3 class="modal-title">{{ \'APPLICATION_AGENTS\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <!-- START TRANSPORT -->\n <div class="form-group">\n <form name="form" novalidate>\n <!-- START TRANSPORT -->\n <div class="form-group">\n <ui-select multiple name="agents" data-ng-model="item.agents" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_AGENTS\' | translate}}">{{$item.fullname}}</ui-select-match>\n <ui-select-choices repeat="agent.id as agent in agents | filter: $select.search">\n {{agent.fullname}}\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END TRANSPORT -->\n </form>\n </div>\n <!-- END TRANSPORT -->\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" data-ng-click="ok()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/sms/inbox/view/view.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="glyphicon glyphicon-comment"></i>\n <a href="#">{{ \'APPLICATION_SMS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-note"></i>\n <a href="/channels/sms/inbox/list">{{ \'APPLICATION_INBOX\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row inbox" data-ng-init="initView()">\n <div class="col-md-3">\n <ul class="inbox-nav margin-bottom-10">\n <li data-ng-class="{active: $stateParams.id == smsAccount.id}" data-ng-repeat="smsAccount in smsAccounts">\n <a href="/channels/sms/inbox/view/account/{{smsAccount.id}}/list" class="btn">\n <i class="icon-notebook"></i> {{smsAccount.name}}\n </a>\n <b></b>\n </li>\n </ul>\n </div>\n\n <div class="col-md-9" >\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view>\n <div class="note note-info">\n <h4 class="block">Info! {{\'APPLICATION_NO_ACCOUNT_SELECTED\' | translate}}</h4>\n </div>\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/sms/inbox/view/view.status.modal.html",'<div class="modal-header">\n <button ng-if="modal.dismissable" type="button" ng-click="$dismiss()" class="close">×</button>\n <h4 ng-if="modal.title" ng-bind="modal.title | translate" class="modal-title"></h4>\n</div>\n<div class="modal-body">\n <p ng-if="modal.text && !closed" ng-bind="modal.text | translate"></p>\n <form name="form" novalidate data-ng-init="initDisposition()">\n <div class="form-group">\n <ui-select data-ng-model="item.disposition" name="list" theme="bootstrap" data-ng-disabled="!dispositions.length" required>\n <ui-select-match placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="disposition.name as disposition in dispositions | filter: $select.search">\n <div ng-bind-html="disposition.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="note note-warning" data-ng-hide="dispositions.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_DISPOSITIONS_AVAILABLE\' | translate }}\n </p>\n </div>\n</form>\n <!-- <div ng-if="modal.html" ng-bind-html="modal.html"></div> -->\n</div>\n<div class="modal-footer">\n <button class="btn btn-danger" type="button" ng-click="ok()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n <!-- <button ng-repeat="button in modal.buttons" ng-class="button.classes" ng-click="button.click($event)" ng-bind="button.text" class="btn"></button> -->\n</div>\n'), +a.put("app/channels/sms/inbox/view/view.tags.modal.html",'<div class="modal-header" data-ng-init="initModal()">\n <h3 class="modal-title">{{ \'APPLICATION_TAGS\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <!-- START TRANSPORT -->\n <div class="form-group">\n <form name="form" novalidate>\n <!-- START TAGS -->\n <div class="form-group">\n <ui-select multiple data-ng-model="item.tags" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_TAGS\' | translate}}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="tag in tags | filter: $select.search">\n {{tag}}\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END TAGS -->\n </form>\n </div>\n <!-- END TRANSPORT -->\n</div>\n<div class="modal-footer">\n <button type="button" class="btn" data-ng-class="button.class" data-ng-click="button.click()"data-ng-repeat="button in modal.buttons">{{button.text | translate}}</button>\n <!-- <button class="btn btn-success" type="button" data-ng-click="ok()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button> -->\n</div>\n'),a.put("app/channels/sms/inbox/view/view.templates.modal.html",'<div class="modal-header" data-ng-init="initModal()">\n <h3 class="modal-title">{{ \'APPLICATION_TEMPLATES\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <div class="note note-info" data-ng-show="!templates.length">\n <h4 class="block">Info!</h4>\n <p>\n {{\'MESSAGE_NO_TEMPLATES_AVAILABLE\' | translate}}\n </p>\n </div>\n <form name="form" data-ng-show="templates.length" novalidate>\n <div class="form-group">\n <ui-select data-ng-model="item.template" theme="bootstrap">\n <ui-select-match placeholder="Select a template in the list or search his name...">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="template in templates | propsFilter: {name: $select.search}">\n <div ng-bind-html="template.name | highlight: $select.search"></div>\n <small data-ng-show="template.description">\n {{\'APPLICATION_DESCRIPTION\' | translate}}: {{template.description}}\n </small>\n </ui-select-choices>\n </ui-select>\n </div>\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" data-ng-click="ok()" data-ng-show="templates.length">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/sms/queue/list/list.create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_QUEUE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" data-ng-pattern="settings.patternName" required />\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$invalid && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$invalid && form.name.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START STRATEGY -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.strategy.$touched || form.$submitted) && form.strategy.$invalid}">\n <label class="control-label">{{\'APPLICATION_STRATEGY\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.strategy" name="strategy" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.toUpperCase()}}</ui-select-match>\n <ui-select-choices repeat="strategy in strategies | filter: $select.search">\n <div ng-bind-html="strategy.toUpperCase() | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form.strategy.$touched || form.$submitted) && form.strategy.$invalid && form.strategy.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END STRATEGY -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.timeout.$touched || form.$submitted) && form.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_AGENT_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="0" name="timeout" placeholder="Timeout" class="form-control" data-ng-model="item.timeout" required min="1"/>\n <span data-ng-show="(form.timeout.$touched || form.$submitted) && form.timeout.$invalid && form.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START AGENTS-->\n <div class="form-body" data-ng-init="getTeams()">\n <label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n <div class="input-group input-small mbottom20">\n <input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="item.penalty" readonly>\n <div class="spinner-buttons input-group-btn btn-group-vertical">\n <button type="button" class="btn spinner-up btn-xs blue" data-ng-click="item.penalty=item.penalty+1">\n <i class="fa fa-angle-up"></i>\n </button>\n <button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!item.penalty" data-ng-click="item.penalty=item.penalty-1">\n <i class="fa fa-angle-down"></i>\n </button>\n </div>\n </div>\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-team">\n </div>\n </div>\n </div>\n <!-- END AGENTS-->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/sms/queue/list/list.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="glyphicon glyphicon-comment"></i>\n <a href="#">{{ \'APPLICATION_SMS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="#">{{ \'APPLICATION_QUEUES\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_QUEUES\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="#" data-ng-click="createItem()" data-ng-if="Auth.isAdmin()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_QUEUE\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/sms/queue/view/view.agents.html",'<div class="row" data-ng-init="getTeams()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_AGENTS\' | translate}}</span>\n </div>\n </div>\n <div class="note note-warning" data-ng-hide="teams.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_AVAILABLE_TEAMS\' | translate }}\n </p>\n </div>\n <div class="portlet-body">\n <!-- BEGIN FORM-->\n <form action="index.html" class="form-horizontal form-row-seperated">\n <div class="form-body">\n <label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n <div class="input-group input-small mbottom20">\n <input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="queue.penalty" readonly>\n <div class="spinner-buttons input-group-btn btn-group-vertical">\n <button type="button" class="btn spinner-up btn-xs blue" data-ng-click="queue.penalty=queue.penalty+1">\n <i class="fa fa-angle-up"></i>\n </button>\n <button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!queue.penalty" data-ng-click="queue.penalty=queue.penalty-1">\n <i class="fa fa-angle-down"></i>\n </button>\n </div>\n </div>\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-team">\n </div>\n </div>\n </div>\n </form>\n <!-- END FORM-->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/sms/queue/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getQueue()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="glyphicon glyphicon-comment"></i>\n <a href="#">{{ \'APPLICATION_SMS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="/channels/sms/queues/list">{{ \'APPLICATION_QUEUES\' | translate }}</a>\n <i data-ng-show="queue" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="queue">\n <a href="#">{{queue.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET main.channels -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/queue.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{queue.name}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.channels.sms.queues.view.settings\')}">\n <a data-ng-href="/channels/sms/queues/view/{{queue.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.channels.sms.queues.view.agents\')}" data-ng-show="Auth.getCurrentUser().role === \'admin\'">\n <a data-ng-href="/channels/sms/queues/view/{{queue.id}}/agents">\n <i class="icon-people"></i>\n {{ \'APPLICATION_AGENTS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET main.channels -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n </div>\n <!-- END PAGE CONTENT-->\n'),a.put("app/channels/sms/queue/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateSmsQueue()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="queue.name" data-ng-pattern="settings.patternName" required />\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid && forms.general.name.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START STRATEGY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.strategy.$touched || forms.general.$submitted) && forms.general.strategy.$invalid}">\n <label class="control-label">{{\'APPLICATION_STRATEGY\' | translate}}</label>\n <ui-select data-ng-model="queue.strategy" name="strategy" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | uppercase}}</ui-select-match>\n <ui-select-choices repeat="strategy in strategies | filter: $select.search">\n <div ng-bind-html="strategy | uppercase | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END STRATEGY -->\n\n <!-- START TIMEOUT -->\n <div class="form-group">\n <label class="control-label">Timeout</label>\n <input type="number" name="timeout" placeholder="Timeout" class="form-control" min="1" data-ng-model="queue.timeout"/>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="queue.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <input data-ng-if="Auth.isAdmin()" class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/sms/realtime/view/agent/agent.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initAgents()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns class="ui-grid" ui-grid-tree-view ui-grid-expandable-row ui-grid-pagination ui-grid-auto-resize>\n <span us-spinner spinner-key="grid-spinner" spinner-start-active="true"></span>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/sms/realtime/view/agent/agent.modal.info.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_INTERFACE_INFO\' | translate }}</h3>\n</div>\n<div class="modal-body">\n<div data-ng-if="agent.ipaddr" class="well">\n <div>{{agent.ipaddr}}:{{agent.port}}</div>\n <div>{{agent.fullcontact}}</div>\n <div>{{agent.useragent}}</div>\n <div>{{agent.lastms}}</div>\n</div>\n<div data-ng-if="!agent.ipaddr" class="alert alert-danger" role="alert">\n {{\'MESSAGE_NO_AVAILABLE_INFO\' | translate}}\n</div>\n</div>\n<div class="modal-footer">\n <button class="btn default" type="button" ng-click="close()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'),a.put("app/channels/sms/realtime/view/agent/queue.modal.add.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_JOIN_QUEUE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <div class="form-group row">\n <label class="col-md-2 control-label" style="margin-top: 7px;">{{\'APPLICATION_QUEUE\' | translate}}:</label>\n <div class="col-md-10">\n <ui-select multiple ng-model="item.queues" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_QUEUE\' | translate}}">{{$item.name}}</ui-select-match>\n <ui-select-choices repeat="queue.id as queue in queues | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n</div>\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/sms/realtime/view/application/application.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initApplications()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns class="ui-grid" ui-grid-auto-resize>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/sms/realtime/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-directions"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="glyphicon glyphicon-comment"></i>\n <a href="#">{{ \'APPLICATION_SMS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-energy"></i>\n <a href="#">{{ \'APPLICATION_REALTIME\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <div>\n <nav class="navbar navbar-default" role="navigation">\n <div class="collapse navbar-collapse">\n <ul class="nav navbar-nav">\n <li data-ng-class="{\'active\': $state.is(\'main.channels.sms.realtime.view.agents\')}">\n <a href="/channels/sms/realtime/view/agents">\n {{\'APPLICATION_AGENTS\' | translate}}\n </a>\n </li>\n <li data-ng-class="{\'active\': $state.is(\'main.channels.sms.realtime.view.applications\')}">\n <a href="/channels/sms/realtime/view/applications">\n {{\'APPLICATION_APPLICATIONS\' | translate}}\n </a>\n </li>\n <li>\n <a href="#">\n <b>|{{\'APPLICATION_SHOW_TIMERS\' | translate}} </b><input\n bs-switch\n class="form-control"\n ng-model="showTimers"\n type="checkbox"\n name="showTimers"\n switch-active="{{ timerSwitch.isActive }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ timerSwitch.onColor }}"\n switch-off-color="{{ timerSwitch.offColor }}"\n switch-animate="{{ timerSwitch.animate }}"\n switch-size="{{ timerSwitch.size }}"\n switch-label="{{ timerSwitch.label }}"\n switch-icon="{{ timerSwitch.icon }}"\n switch-radio-off="{{ timerSwitch.radioOff }}"\n switch-label-width="{{ timerSwitch.labelWidth }}"\n switch-handle-width="{{ timerSwitch.handleWidth }}"><b>|</b>\n </a>\n </li>\n </ul>\n </div>\n </nav>\n </div>\n\n <div ui-view></div>\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/sms/realtime/view/view.queue.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initAgents()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div id="grid1" ui-grid="gridOptions" ui-grid-resize-columns ui-grid-tree-view class="grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/voice/chanspy/list/list.create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_CHANSPY\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START PREFIX -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.prefix.$touched || form.$submitted) && form.prefix.$invalid}">\n <label class="control-label">{{\'APPLICATION_PREFIX\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="prefix" placeholder="{{\'APPLICATION_PREFIX\' | translate}}" class="form-control" data-ng-model="item.prefix" required/>\n <span data-ng-show="(form.prefix.$touched || form.$submitted) && form.prefix.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PREFIX -->\n\n <!-- START OPTIONS -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.options.$touched || form.$submitted) && form.options.$invalid}">\n <label class="control-label">{{\'APPLICATION_OPTIONS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select multiple data-ng-model="item.options" name="options" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$item.value}}: {{$item.name | translate}}</ui-select-match>\n <ui-select-choices repeat="option.value as option in options | filter: $select.search">\n <div ng-bind-html="option.value + \': \' + (option.name | translate) | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form.options.$touched || form.$submitted) && form.options.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END OPTIONS -->\n\n <!-- START AUTH -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_AUTH\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="item.auth"\n type="checkbox"\n name="auth"\n data-ng-init="item.auth = 0"\n switch-active="{{ authSwitch.isActive }}"\n switch-on-text="{{ authSwitch.onText }}"\n switch-off-text="{{ authSwitch.offText }}"\n switch-on-color="{{ authSwitch.onColor }}"\n switch-off-color="{{ authSwitch.offColor }}"\n switch-animate="{{ authSwitch.animate }}"\n switch-size="{{ authSwitch.size }}"\n switch-label="{{ authSwitch.label }}"\n switch-icon="{{ authSwitch.icon }}"\n switch-radio-off="{{ authSwitch.radioOff }}"\n switch-label-width="{{ authSwitch.labelWidth }}"\n switch-handle-width="{{ authSwitch.handleWidth }}">\n </div>\n <!-- END AUTH -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.password.$touched || form.$submitted) && form.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span data-ng-show="item.auth" class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.password" data-ng-disabled="!item.auth" data-ng-required="item.auth"/>\n <span data-ng-show="(form.password.$touched || form.$submitted) && form.password.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START RECORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.record.$touched || form.$submitted) && form.record.$invalid}">\n <label class="control-label">{{\'APPLICATION_RECORDING\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="item.record"\n type="checkbox"\n switch-active="{{ recordSwitch.isActive }}"\n switch-on-text="{{ recordSwitch.onText }}"\n switch-off-text="{{ recordSwitch.offText }}"\n switch-on-color="{{ recordSwitch.onColor }}"\n switch-off-color="{{ recordSwitch.offColor }}"\n switch-animate="{{ recordSwitch.animate }}"\n switch-size="{{ recordSwitch.size }}"\n switch-label="{{ recordSwitch.label }}"\n switch-icon="{{ recordSwitch.icon }}"\n switch-radio-off="{{ recordSwitch.radioOff }}"\n switch-label-width="{{ recordSwitch.labelWidth }}"\n switch-handle-width="{{ recordSwitch.handleWidth }}">\n </div>\n <!-- END RECORD -->\n\n <!-- START RECORDINGFORMAT -->\n <div data-ng-if="item.record" class="form-group" data-ng-class="{\'has-error\': (form.recordingFormat.$touched || form.$submitted) && form.recordingFormat.$invalid}">\n <label class="control-label">{{\'APPLICATION_FORMAT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.recordingFormat" name="recordingFormat" theme="bootstrap" data-ng-required="item.record">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="format in [\'wav\',\'gsm\'] | filter: $select.search">\n <div ng-bind-html="format | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form.recordingFormat.$touched || form.$submitted) && form.recordingFormat.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END RECORDINGFORMAT -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/voice/chanspy/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-earphones-alt"></i>\n <a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-user-secret"></i>\n <a href="/channels/voice/chanspys/list">{{ \'APPLICATION_CHANSPY\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="fa fa-user-secret font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_CHANSPY\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <button class="btn green-jungle " ng-click="createItem()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_CHANSPY\' | translate }}\n </button>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'), +a.put("app/channels/voice/chanspy/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getChanSpy()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-earphones-alt"></i>\n <a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-user-secret"></i>\n <a href="/channels/voice/chanspy/list">{{ \'APPLICATION_CHANSPY\' | translate }}</a>\n <i data-ng-show="chanspy" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="chanspy">\n <a href="#">{{chanspy.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/chanspy.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{chanspy.name}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.channels.voice.chanspy.view.settings\')}">\n <a data-ng-href="/channels/voice/chanspy/view/{{chanspy.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/voice/chanspy/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_CHANSPY\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateChanSpy()" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="chanspy.name" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START PREFIX -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.general.prefix.$touched || form.general.$submitted) && form.general.prefix.$invalid}">\n <label class="control-label">{{\'APPLICATION_PREFIX\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="prefix" placeholder="{{\'APPLICATION_PREFIX\' | translate}}" class="form-control" data-ng-model="chanspy.prefix" required/>\n <span data-ng-show="(form.general.prefix.$touched || form.general.$submitted) && form.general.prefix.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PREFIX -->\n\n <!-- START OPTIONS -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.general.options.$touched || form.general.$submitted) && form.general.options.$invalid}">\n <label class="control-label">{{\'APPLICATION_OPTIONS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select multiple data-ng-model="chanspy.options" name="options" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$item.value}}: {{$item.name | translate}}</ui-select-match>\n <ui-select-choices repeat="option.value as option in options | filter: $select.search">\n <div ng-bind-html="option.value + \': \' + (option.name | translate) | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form.general.options.$touched || form.general.$submitted) && form.general.options.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END OPTIONS -->\n\n <!-- START AUTH -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_AUTH\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="chanspy.auth"\n type="checkbox"\n name="auth"\n switch-active="{{ authSwitch.isActive }}"\n switch-on-text="{{ authSwitch.onText }}"\n switch-off-text="{{ authSwitch.offText }}"\n switch-on-color="{{ authSwitch.onColor }}"\n switch-off-color="{{ authSwitch.offColor }}"\n switch-animate="{{ authSwitch.animate }}"\n switch-size="{{ authSwitch.size }}"\n switch-label="{{ authSwitch.label }}"\n switch-icon="{{ authSwitch.icon }}"\n switch-radio-off="{{ authSwitch.radioOff }}"\n switch-label-width="{{ authSwitch.labelWidth }}"\n switch-handle-width="{{ authSwitch.handleWidth }}">\n </div>\n <!-- END AUTH -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.general.password.$touched || form.general.$submitted) && form.general.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" data-ng-show="chanspy.auth" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="chanspy.password" data-ng-disabled="!chanspy.auth" data-ng-required="chanspy.auth"/>\n <span data-ng-show="(form.general.password.$touched || form.general.$submitted) && form.general.password.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START RECORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.record.$touched || forms.general.$submitted) && forms.general.record.$invalid}">\n <label class="control-label">{{\'APPLICATION_RECORDING\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="chanspy.record"\n type="checkbox"\n switch-active="{{ recordSwitch.isActive }}"\n switch-on-text="{{ recordSwitch.onText }}"\n switch-off-text="{{ recordSwitch.offText }}"\n switch-on-color="{{ recordSwitch.onColor }}"\n switch-off-color="{{ recordSwitch.offColor }}"\n switch-animate="{{ recordSwitch.animate }}"\n switch-size="{{ recordSwitch.size }}"\n switch-label="{{ recordSwitch.label }}"\n switch-icon="{{ recordSwitch.icon }}"\n switch-radio-off="{{ recordSwitch.radioOff }}"\n switch-label-width="{{ recordSwitch.labelWidth }}"\n switch-handle-width="{{ recordSwitch.handleWidth }}">\n </div>\n <!-- END RECORD -->\n\n <!-- START RECORDINGFORMAT -->\n <div data-ng-if="chanspy.record" class="form-group" data-ng-class="{\'has-error\': (forms.general.recordingFormat.$touched || forms.general.$submitted) && forms.general.recordingFormat.$invalid}">\n <label class="control-label">{{\'APPLICATION_FORMAT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="chanspy.recordingFormat" name="recordingFormat" theme="bootstrap" data-ng-required="chanspy.record">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="format in [\'wav\',\'gsm\'] | filter: $select.search">\n <div ng-bind-html="format | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.general.recordingFormat.$touched || forms.general.$submitted) && forms.general.recordingFormat.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END RECORDINGFORMAT -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="chanspy.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ADVANCED TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/voice/context/list/create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_CONTEXT\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" data-ng-click="ok()" data-ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/voice/context/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-earphones-alt"></i>\n <a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="#">{{ \'APPLICATION_CONTEXTS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_CONTEXTS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <a class="btn green-jungle" href="#" data-ng-click="createItem()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_CONTEXT\' | translate }}\n </a>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/voice/context/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getContext()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-earphones-alt"></i>\n <a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="/channels/voice/contexts/list">{{ \'APPLICATION_CONTEXTS\' | translate }}</a>\n <i data-ng-show="context" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="context">\n <a href="#">{{context.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET main.channels -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/context.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{context.name}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.channels.voice.contexts.view.settings\')}">\n <a data-ng-href="/channels/voice/contexts/view/{{context.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET main.channels -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n </div>\n <!-- END PAGE CONTENT-->\n'),a.put("app/channels/voice/context/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_CONTEXT\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateVoiceContext()" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="context.name" required readonly/>\n <span class="help-block">\n {{ \'DESCRIPTION_CANT_EDIT_NAME\' | translate }}\n </span>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="context.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ADVANCED TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/voice/disposition/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-earphones-alt"></i>\n <a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-target"></i>\n <a href="/channels/voice/dispositions/list">{{ \'APPLICATION_DISPOSITIONS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_DISPOSITIONS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <a href="#" class="btn btn-icon-only green" data-ng-click="addDisposition();">\n <i class="fa fa-plus"></i>\n </a>\n </div>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <div class="row" data-ng-hide="dispositions.length">\n <div class="col-md-12">\n <div class="note note-info">\n <h4 class="block">Info! {{\'MESSAGE_NO_DISPOSITIONS_AVAILABLE\' | translate}}</h4>\n </div>\n </div>\n </div>\n\n <!-- GENERAL TAB -->\n <div class="row" data-ng-repeat="disposition in dispositions">\n <div class="col-md-12 form-group">\n <div class="input-group">\n <div>\n <input class="form-control" type="text" placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}" data-ng-model="disposition.name">\n </div>\n <span class="input-group-btn">\n <button class="btn btn-success" type="button" data-ng-click="updateDisposition(disposition.id, disposition.name);"><i class="fa fa-cloud-upload fa-fw"></i> {{\'APPLICATION_UPDATE\' | translate}}</button>\n <button class="btn btn-danger" type="button" data-ng-click="deleteDisposition(disposition.id);"><i class="fa fa-times fa-fw"></i> {{\'APPLICATION_DELETE\' | translate}}</button>\n </span>\n </div>\n </div>\n </div>\n <!-- END GENERAL TAB -->\n </div>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/voice/disposition/list/modal/add.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_DISPOSITIONS\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.form.$touched || form.$submitted) && form.form.$invalid}">\n <div class="">\n <input type="text" name="form" placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}" class="form-control" data-ng-model="name" required/>\n <span data-ng-show="form.form.$touched && form.form.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <!-- END NAME -->\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" data-ng-click="ok()" data-ng-show="form.$valid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/voice/moh/list/create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_MOH_CLASS\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START MODE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.mode.$touched || forms.$submitted) && forms.mode.$invalid}">\n <label class="control-label">{{\'APPLICATION_MODE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.mode" theme="bootstrap" name="mode" data-ng-init="item.mode = \'files\'" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="mode in [\'files\',\'custom\'] | filter: $select.search">\n {{mode}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.mode.$touched || forms.$submitted) && forms.mode.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MODE -->\n\n <!-- START DIRECTORY -->\n <div data-ng-if="item.mode === \'custom\'" class="form-group" data-ng-class="{\'has-error\': (form.directory.$touched || form.$submitted) && form.directory.$invalid}">\n <label class="control-label">{{\'APPLICATION_DIRECTORY\' | translate}}</label>\n <input type="text" name="directory" placeholder="{{\'APPLICATION_DIRECTORY\' | translate}}" class="form-control" data-ng-model="item.directory"/>\n </div>\n <!-- END DIRECTORY -->\n\n <!-- START APPLICATION -->\n <div data-ng-if="item.mode === \'custom\'" class="form-group" data-ng-class="{\'has-error\': (form.application.$touched || form.$submitted) && form.application.$invalid}">\n <label class="control-label">{{\'APPLICATION_APPLICATION\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="application" placeholder="{{\'APPLICATION_APPLICATION\' | translate}}" class="form-control" data-ng-model="item.application"/>\n <span data-ng-show="(form.application.$touched || form.$submitted) && form.application.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END APPLICATION -->\n\n <!-- START FORMAT -->\n <div data-ng-if="item.mode === \'custom\'" class="form-group" data-ng-class="{\'has-error\': (form.format.$touched || form.$submitted) && form.format.$invalid}">\n <label class="control-label">{{\'APPLICATION_FORMAT\' | translate}}</label>\n <input type="text" name="format" placeholder="{{\'APPLICATION_FORMAT\' | translate}}" class="form-control" data-ng-model="item.format"/>\n </div>\n <!-- END FORMAT -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="ok()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/voice/moh/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-earphones-alt"></i>\n <a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-music-tone"></i>\n <a href="#">{{ \'APPLICATION_MOHS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-music-tone font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_MOHS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="#" data-ng-click="createItem()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_MOH_CLASS\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/voice/moh/view/view.addFiles.html",'\n<div class="row" data-ng-init="getSounds()">\n <div class="col-md-12">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_MOH\' | translate }} {{ \'APPLICATION_ADD_FILES\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <div class="note note-warning" data-ng-hide="soundList.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_SOUNDS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/sounds/list">{{\'APPLICATION_SOUNDS\' | translate}}</a>\n </p>\n </div>\n <form name="forms.general" data-ng-submit="(item.sounds.length > 0) && addMohs()" data-ng-show="soundList.length" novalidate>\n\n <!-- START SOUNDS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.sounds.$touched || forms.general.$submitted) && item.sounds.length == 0}">\n <label class="control-label">{{\'APPLICATION_SOUNDS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select multiple data-ng-model="item.sounds" theme="bootstrap" name="sounds" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$item.display_name}}</ui-select-match>\n <ui-select-choices repeat="sound.id as sound in soundList | filter: $select.search">\n {{sound.display_name}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.general.sounds.$touched || forms.general.$submitted) && item.sounds.length == 0" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END OPTIONS -->\n\n <input type="submit" class="btn green-haze" value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </form>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/voice/moh/view/view.audios.html",'<div ui-view class="profile-content">\n<div class="row" data-ng-init="getAudioFiles()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_AUDIOS\' | translate}}</span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="audioFiles">\n <a class="btn green-jungle " href="/channels/voice/mohs/view/{{moh.id}}/add" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_ADD_FILES\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <div class="note note-warning" data-ng-hide="audioFiles">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_FOLDER_DOES_NOT_EXIST\' | translate }}\n </p>\n </div>\n <!-- START TABLE -->\n <table class="table table-striped table-bordered table-hover" data-ng-show="audioFiles">\n <thead>\n <tr>\n <th>{{ \'APPLICATION_NAME\' | translate }}</th>\n <th width="30%">{{ \'APPLICATION_PREVIEW\' | translate }}</th>\n <th width="10%">{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody data-ng-model="audioFiles">\n <tr data-ng-repeat="audiofile in audioFiles">\n <td>{{audiofile}}</td>\n <td>\n <audio controls ng-src="{{getSecureSrc(audioSources[audiofile])}}" preload="none">\n Your browser does not support the audio tag.\n </audio></td>\n <td>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(audiofile,audiofile)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="audioFiles.length">\n <td colspan="3" style="text-align:center;">\n <i>{{ \'MESSAGE_NO_AUDIOFILES_AVAILABLE\' | translate }}</i>\n </td>\n </tr>\n </tbody>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n</div>\n</div>\n'), +a.put("app/channels/voice/moh/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getMoh()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-earphones-alt"></i>\n <a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-music-tone"></i>\n <a href="/channels/voice/mohs/list">{{ \'APPLICATION_MOH_CLASS\' | translate }}</a>\n <i data-ng-show="moh" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="moh">\n <a href="#">{{moh.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET main.channels -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/moh.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{moh.name}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.channels.voice.mohs.view.settings\')}">\n <a data-ng-href="/channels/voice/mohs/view/{{moh.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n <li data-ng-if="moh.mode === \'files\'" data-ng-class="{active: $state.is(\'main.channels.voice.mohs.view.audios\') || $state.is(\'main.channels.voice.mohs.view.add\')}">\n <a data-ng-href="/channels/voice/mohs/view/{{moh.id}}/audios">\n <i class="icon-list"></i>\n {{ \'APPLICATION_AUDIOS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET main.channels -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/voice/moh/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_MOH_CLASS\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body" data-ng-init="getContexts();">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateVoiceMoh()" novalidate>\n\n <!-- START MODE -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_MODE\' | translate}}</label>\n <input type="text" name="path" class="form-control" data-ng-model="moh.mode" disabled/>\n </div>\n <!-- END MODE -->\n\n <!-- START PATH -->\n <div class="form-group" data-ng-if="moh.mode === \'files\'">\n <label class="control-label">{{\'APPLICATION_PATH\' | translate}}</label>\n <input type="text" name="path" class="form-control" data-ng-model="moh.directory" disabled/>\n </div>\n <!-- END PATH -->\n\n <!-- START SORT -->\n <div data-ng-if="moh.mode === \'files\'" class="form-group" data-ng-class="{\'has-error\': (forms.general.sort.$touched || forms.general.$submitted) && forms.general.sort.$invalid}">\n <label class="control-label">{{\'APPLICATION_SORT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="moh.sort" theme="bootstrap" name="sort" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$translate.instant($select.selected.name)}}</ui-select-match>\n <ui-select-choices repeat="sort.value as sort in sortOptions | filter: $select.search">\n {{$translate.instant(sort.name)}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.general.sort.$touched || forms.general.$submitted) && forms.general.sort.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SORT -->\n\n <!-- START DIRECTORY -->\n <div data-ng-if="moh.mode === \'custom\'" class="form-group" data-ng-class="{\'has-error\': (forms.general.directory.$touched || forms.general.$submitted) && forms.general.directory.$invalid}">\n <label class="control-label">{{\'APPLICATION_DIRECTORY\' | translate}}</label>\n <input type="text" name="directory" placeholder="{{\'APPLICATION_DIRECTORY\' | translate}}" class="form-control" data-ng-model="moh.directory"/>\n </div>\n <!-- END DIRECTORY -->\n\n <!-- START APPLICATION -->\n <div data-ng-if="moh.mode === \'custom\'" class="form-group" data-ng-class="{\'has-error\': (forms.general.application.$touched || forms.general.$submitted) && forms.general.application.$invalid}">\n <label class="control-label">{{\'APPLICATION_APPLICATION\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="application" placeholder="{{\'APPLICATION_APPLICATION\' | translate}}" class="form-control" data-ng-model="moh.application" required/>\n <span data-ng-show="(forms.general.application.$touched || forms.general.$submitted) && forms.general.application.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END APPLICATION -->\n\n <!-- START FORMAT -->\n <div data-ng-if="moh.mode === \'custom\'" class="form-group" data-ng-class="{\'has-error\': (forms.general.format.$touched || forms.general.$submitted) && forms.general.format.$invalid}">\n <label class="control-label">{{\'APPLICATION_FORMAT\' | translate}}</label>\n <input type="text" name="format" placeholder="{{\'APPLICATION_FORMAT\' | translate}}" class="form-control" data-ng-model="moh.format"/>\n </div>\n <!-- END FORMAT -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/voice/queue/list/list.create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_QUEUE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" data-ng-pattern="settings.patternName" required />\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START STRATEGY -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.strategy.$touched || form.$submitted) && form.strategy.$invalid}">\n <label class="control-label">{{\'APPLICATION_STRATEGY\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.strategy" name="strategy" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.toUpperCase()}}</ui-select-match>\n <ui-select-choices repeat="strategy in [\'ringall\', \'leastrecent\', \'fewestcalls\', \'random\', \'rrmemory\', \'linear\', \'wrandom\', \'rrordered\'] | filter: $select.search">\n <div ng-bind-html="strategy.toUpperCase() | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_STRATEGY\' | translate }}\n </span>\n <span data-ng-show="(form.strategy.$touched || form.$submitted) && form.strategy.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END STRATEGY -->\n\n <!-- START AGENTS-->\n <div class="form-body" data-ng-init="getTeams()">\n <label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n <div class="input-group input-small mbottom20">\n <input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="item.penalty" readonly>\n <div class="spinner-buttons input-group-btn btn-group-vertical">\n <button type="button" class="btn spinner-up btn-xs blue" data-ng-click="item.penalty=item.penalty+1">\n <i class="fa fa-angle-up"></i>\n </button>\n <button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!item.penalty" data-ng-click="item.penalty=item.penalty-1">\n <i class="fa fa-angle-down"></i>\n </button>\n </div>\n </div>\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-team">\n </div>\n </div>\n </div>\n <!-- END AGENTS-->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/voice/queue/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-earphones-alt"></i>\n <a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="#">{{ \'APPLICATION_QUEUES\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_QUEUES\' | translate }}</span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <a class="btn green-jungle" href="#" data-ng-click="createItem()" data-ng-if="Auth.isAdmin()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_QUEUE\' | translate }}\n </a>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/voice/queue/view/view.agents.html",'<div class="row" data-ng-init="getTeams()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_AGENTS\' | translate}}</span>\n </div>\n </div>\n <div class="note note-warning" data-ng-hide="teams.length">\n <h4 class="block">Warning!</h4><p>{{ \'MESSAGE_NO_AVAILABLE_TEAMS\' | translate }}</p>\n </div>\n <div class="portlet-body">\n <!-- BEGIN FORM-->\n <form action="index.html" class="form-horizontal form-row-seperated">\n <div class="form-body">\n <label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n <div class="input-group input-small mbottom20">\n <input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="queue.penalty" readonly>\n <div class="spinner-buttons input-group-btn btn-group-vertical">\n <button type="button" class="btn spinner-up btn-xs blue" data-ng-click="queue.penalty=queue.penalty+1">\n <i class="fa fa-angle-up"></i>\n </button>\n <button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!queue.penalty" data-ng-click="queue.penalty=queue.penalty-1">\n <i class="fa fa-angle-down"></i>\n </button>\n </div>\n </div>\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-team">\n </div>\n </div>\n </div>\n </form>\n <!-- END FORM-->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/voice/queue/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getQueue()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-earphones-alt"></i>\n <a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="/channels/voice/queues/list">{{ \'APPLICATION_QUEUES\' | translate }}</a>\n <i data-ng-show="queue" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="queue">\n <a href="#">{{queue.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET main.channels -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/queue.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{queue.name}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.channels.voice.queues.view.settings\')}">\n <a data-ng-href="/channels/voice/queues/view/{{queue.name}}/settings"> <i class="icon-settings"></i> {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.channels.voice.queues.view.agents\')}" data-ng-show="Auth.getCurrentUser().role === \'admin\'">\n <a data-ng-href="/channels/voice/queues/view/{{queue.name}}/agents"><i class="icon-people"></i>{{ \'APPLICATION_AGENTS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET main.channels -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/voice/queue/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_QUEUE_SETTINGS\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{ \'APPLICATION_PERIODIC_ANNOUNCE\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_3" data-toggle="tab">{{ \'APPLICATION_ADVANCED\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body" data-ng-init="getMohs();getSounds();">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && forms.announce.$valid && updateVoiceQueue()" novalidate>\n <div class="row">\n <div class="col-md-6">\n <!-- START STRATEGY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.strategy.$touched || forms.general.$submitted) && forms.general.strategy.$invalid}">\n <label class="control-label">{{\'APPLICATION_STRATEGY\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="queue.strategy" name="strategy" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.toUpperCase()}}</ui-select-match>\n <ui-select-choices repeat="strategy in [\'ringall\', \'leastrecent\', \'fewestcalls\', \'random\', \'rrmemory\', \'linear\', \'wrandom\', \'rrordered\'] | filter: $select.search">\n <div ng-bind-html="strategy.toUpperCase() | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_STRATEGY\' | translate }}\n </span>\n <span data-ng-show="(forms.general.strategy.$touched || forms.general.$submitted) && forms.general.strategy.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END STRATEGY -->\n\n <!-- START MOH -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.musiconhold.$touched || forms.general.$submitted) && forms.general.musiconhold.$invalid}">\n <label class="control-label">{{\'APPLICATION_MOH\' | translate}}</label>\n <ui-select data-ng-model="queue.musiconhold" name="musiconhold" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="musiconhold.name as musiconhold in voiceMohs | filter: $select.search">\n <div ng-bind-html="musiconhold.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_VOICE_MOH\' | translate }}\n </span>\n <span data-ng-show="(forms.general.musiconhold.$touched || forms.general.$submitted) && forms.general.musiconhold.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MOH -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.timeout.$touched || forms.general.$submitted) && forms.general.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="0" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="queue.timeout" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_TIMEOUT\' | translate }}\n </span>\n <span data-ng-show="(forms.general.timeout.$touched || forms.general.$submitted) && forms.general.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START MAXLEN -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.maxlen.$touched || forms.general.$submitted) && forms.general.maxlen.$invalid}">\n <label class="control-label">{{\'APPLICATION_MAXLEN\' | translate}}</label>\n <input type="number" min="0" name="maxlen" placeholder="{{\'APPLICATION_MAXLEN\' | translate}}" class="form-control" data-ng-model="queue.maxlen" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_MAXLEN\' | translate }}\n </span>\n <span data-ng-show="(forms.general.maxlen.$touched || forms.general.$submitted) && forms.general.maxlen.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MAXLEN -->\n\n <!-- START RETRY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.retry.$touched || forms.general.$submitted) && forms.general.retry.$invalid}">\n <label class="control-label">{{\'APPLICATION_RETRY\' | translate}}</label>\n <input type="number" min="0" name="retry" placeholder="{{\'APPLICATION_RETRY\' | translate}}" class="form-control" data-ng-model="queue.retry" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_RETRY\' | translate }}\n </span>\n <span data-ng-show="(forms.general.retry.$touched || forms.general.$submitted) && forms.general.retry.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END RETRY -->\n\n </div>\n <div class="col-md-6">\n <!-- START WRAPUPTIME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.wrapuptime.$touched || forms.general.$submitted) && forms.general.wrapuptime.$invalid}">\n <label class="control-label">{{\'APPLICATION_WRAPUPTIME\' | translate}}</label>\n <input type="number" min="0" name="wrapuptime" placeholder="{{\'APPLICATION_WRAPUPTIME\' | translate}}" class="form-control" data-ng-model="queue.wrapuptime" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_WRAPUPTIME\' | translate }}\n </span>\n <span data-ng-show="(forms.general.wrapuptime.$touched || forms.general.$submitted) && forms.general.wrapuptime.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END WRAPUPTIME -->\n\n <!-- START WEIGHT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.weight.$touched || forms.general.$submitted) && forms.general.weight.$invalid}">\n <label class="control-label">{{\'APPLICATION_WEIGHT\' | translate}}</label>\n <input type="number" min="0" name="weight" placeholder="{{\'APPLICATION_WEIGHT\' | translate}}" class="form-control" data-ng-model="queue.weight" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_WEIGHT\' | translate }}\n </span>\n <span data-ng-show="(forms.general.weight.$touched || forms.general.$submitted) && forms.general.weight.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END WEIGHT -->\n\n <!-- START JOINEMPTY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.joinempty.$touched || forms.general.$submitted) && forms.general.joinempty.$invalid}">\n <label class="control-label">{{\'APPLICATION_JOINEMPTY\' | translate}}</label>\n <ui-select multiple data-ng-model="queue.joinempty" name="joinempty" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\',\'strict\',\'loose\',\'paused\',\'penalty\',\'inuse\',\'ringing\',\'unavailable\',\'invalid\',\'unknown\',\'wrapup\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_JOINEMPTY\' | translate }}\n </span>\n <span data-ng-show="(forms.general.joinempty.$touched || forms.general.$submitted) && forms.general.joinempty.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END JOINEMPTY -->\n\n <!-- START LEAVEWHENEMPTY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.leavewhenempty.$touched || forms.general.$submitted) && forms.general.leavewhenempty.$invalid}">\n <label class="control-label">{{\'APPLICATION_LEAVEWHENEMPTY\' | translate}}</label>\n <ui-select multiple data-ng-model="queue.leavewhenempty" name="leavewhenempty" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\',\'strict\',\'loose\',\'paused\',\'penalty\',\'inuse\',\'ringing\',\'unavailable\',\'invalid\',\'unknown\',\'wrapup\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_LEAVEWHENEMPTY\' | translate }}\n </span>\n <span data-ng-show="(forms.general.leavewhenempty.$touched || forms.general.$submitted) && forms.general.leavewhenempty.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END LEAVEWHENEMPTY -->\n\n <!-- START ANNOUNCE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.announce.$touched || forms.general.$submitted) && forms.general.announce.$invalid}">\n <label class="control-label">{{\'APPLICATION_ANNOUNCE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="queue.announce" name="announce" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n <ui-select-choices repeat="announce.path as announce in sounds | filter: $select.search">\n <div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_ANNOUNCE\' | translate }}\n </span>\n <span data-ng-show="(forms.general.announce.$touched || forms.general.$submitted) && forms.general.announce.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END ANNOUNCE -->\n </div>\n </div>\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="queue.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n\n <div class="tab-pane" id="tab_1_2">\n <form name="forms.announce" data-ng-submit="forms.announce.$valid && forms.general.$valid && updateVoiceQueue()" novalidate>\n <div class="row">\n <div class="col-md-12">\n <!-- START PERIODIC_ANNOUNCE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.periodic_announce.$touched || forms.announce.$submitted) && forms.announce.periodic_announce.$invalid}">\n <label class="control-label">{{\'APPLICATION_PERIODIC_ANNOUNCE\' | translate}}</label>\n <ui-select multiple data-ng-model="queue.periodic_announce" name="periodic_announce" theme="bootstrap" data-ng-disabled="!periodicAnnounces.length">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$item.display_name}}</ui-select-match>\n <ui-select-choices repeat="announce.path as announce in periodicAnnounces | filter: $select.search track by $index">\n <div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="periodicAnnounces.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_SOUNDS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/sounds/list">{{\'APPLICATION_SOUNDS\' | translate}}</a>\n </p>\n </div>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_PERIODIC_ANNOUNCE\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.periodic_announce.$touched || forms.announce.$submitted) && forms.announce.periodic_announce.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PERIODIC_ANNOUNCE -->\n </div>\n </div>\n <div class="row">\n <div class="col-md-6">\n <p><h3>{{\'APPLICATION_SETTINGS\' | translate}}</h3></p>\n <!-- START ANNOUNCE_FREQUENCY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.announce_frequency.$touched || forms.announce.$submitted) && forms.announce.announce_frequency.$invalid}">\n <label class="control-label">{{\'APPLICATION_ANNOUNCE_FREQUENCY\' | translate}}</label>\n <input type="number" min="0" name="announce_frequency" placeholder="{{\'APPLICATION_ANNOUNCE_FREQUENCY\' | translate}}" class="form-control" data-ng-model="queue.announce_frequency" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_ANNOUNCE_FREQUENCY\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.announce_frequency.$touched || forms.announce.$submitted) && forms.announce.announce_frequency.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END ANNOUNCE_FREQUENCY -->\n\n <!-- START MIN_ANNOUNCE_FREQUENCY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.min_announce_frequency.$touched || forms.announce.$submitted) && forms.announce.min_announce_frequency.$invalid}">\n <label class="control-label">{{\'APPLICATION_MIN_ANNOUNCE_FREQUENCY\' | translate}}</label>\n <input type="number" min="0" name="min_announce_frequency" placeholder="{{\'APPLICATION_MIN_ANNOUNCE_FREQUENCY\' | translate}}" class="form-control" data-ng-model="queue.min_announce_frequency" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_MIN_ANNOUNCE_FREQUENCY\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.min_announce_frequency.$touched || forms.announce.$submitted) && forms.announce.min_announce_frequency.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MIN_ANNOUNCE_FREQUENCY -->\n\n <!-- START PERIODIC_ANNOUNCE_FREQUENCY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.periodic_announce_frequency.$touched || forms.announce.$submitted) && forms.announce.periodic_announce_frequency.$invalid}">\n <label class="control-label">{{\'APPLICATION_PERIODIC_ANNOUNCE_FREQUENCY\' | translate}}</label>\n <input type="number" min="0" name="periodic_announce_frequency" placeholder="{{\'APPLICATION_PERIODIC_ANNOUNCE_FREQUENCY\' | translate}}" class="form-control" data-ng-model="queue.periodic_announce_frequency"/>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_PERIODIC_ANNOUNCE_FREQUENCY\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.periodic_announce_frequency.$touched || forms.announce.$submitted) && forms.announce.periodic_announce_frequency.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PERIODIC_ANNOUNCE_FREQUENCY -->\n\n <!-- START RANDOM_PERIODIC_ANNOUNCE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.random_periodic_announce.$touched || forms.announce.$submitted) && forms.announce.random_periodic_announce.$invalid}">\n <label class="control-label">{{\'APPLICATION_RANDOM_PERIODIC_ANNOUNCE\' | translate}}</label>\n <ui-select data-ng-model="queue.random_periodic_announce" name="random_periodic_announce" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_RANDOM_PERIODIC_ANNOUNCE\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.random_periodic_announce.$touched || forms.announce.$submitted) && forms.announce.random_periodic_announce.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END RANDOM_PERIODIC_ANNOUNCE -->\n\n <!-- START ANNOUNCE_HOLDTIME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.announce_holdtime.$touched || forms.announce.$submitted) && forms.announce.announce_holdtime.$invalid}">\n <label class="control-label">{{\'APPLICATION_ANNOUNCE_HOLDTIME\' | translate}}</label>\n <ui-select data-ng-model="queue.announce_holdtime" name="announce_holdtime" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\',\'once\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_ANNOUNCE_HOLDTIME\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.announce_holdtime.$touched || forms.announce.$submitted) && forms.announce.announce_holdtime.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END ANNOUNCE_HOLDTIME -->\n\n <!-- START ANNOUNCE_POSITION -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.announce_position.$touched || forms.announce.$submitted) && forms.announce.announce_position.$invalid}">\n <label class="control-label">{{\'APPLICATION_ANNOUNCE_POSITION\' | translate}}</label>\n <ui-select data-ng-model="queue.announce_position" name="announce_position" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\',\'limit\',\'more\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_ANNOUNCE_POSITION\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.announce_position.$touched || forms.announce.$submitted) && forms.announce.announce_position.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END ANNOUNCE_POSITION -->\n\n <!-- START ANNOUNCE_POSITION_LIMIT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.announce_position_limit.$touched || forms.announce.$submitted) && forms.announce.announce_position_limit.$invalid}">\n <label class="control-label">{{\'APPLICATION_ANNOUNCE_POSITION_LIMIT\' | translate}}</label>\n <input type="number" min="0" name="announce_position_limit" placeholder="{{\'APPLICATION_ANNOUNCE_POSITION_LIMIT\' | translate}}" class="form-control" data-ng-model="queue.announce_position_limit"/>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_ANNOUNCE_POSITION_LIMIT\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.announce_position_limit.$touched || forms.announce.$submitted) && forms.announce.announce_position_limit.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END ANNOUNCE_POSITION_LIMIT -->\n\n <!-- START REPORTHOLDTIME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.reportholdtime.$touched || forms.announce.$submitted) && forms.announce.reportholdtime.$invalid}">\n <label class="control-label">{{\'APPLICATION_REPORTHOLDTIME\' | translate}}</label>\n <ui-select data-ng-model="queue.reportholdtime" name="reportholdtime" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_REPORTHOLDTIME\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.reportholdtime.$touched || forms.announce.$submitted) && forms.announce.reportholdtime.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END REPORTHOLDTIME -->\n\n </div>\n <div class="col-md-6">\n <p><h3>{{\'APPLICATION_SOUNDS\' | translate}}</h3></p>\n <!-- START QUEUE_REPORTHOLD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.queue_reporthold.$touched || forms.announce.$submitted) && forms.announce.queue_reporthold.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE_REPORTHOLD\' | translate}}</label>\n <ui-select data-ng-model="queue.queue_reporthold" name="queue_reporthold" theme="bootstrap" >\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n <ui-select-choices repeat="announce.path as announce in queueAnnounces | filter: $select.search">\n <div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_REPORTHOLD\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.queue_reporthold.$touched || forms.announce.$submitted) && forms.announce.queue_reporthold.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE_REPORTHOLD -->\n\n <!-- START QUEUE_YOUARENEXT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.queue_youarenext.$touched || forms.announce.$submitted) && forms.announce.queue_youarenext.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE_YOUARENEXT\' | translate}}</label>\n <ui-select data-ng-model="queue.queue_youarenext" name="queue_youarenext" theme="bootstrap" >\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n <ui-select-choices repeat="announce.path as announce in queueAnnounces | filter: $select.search">\n <div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_YOUARENEXT\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.queue_youarenext.$touched || forms.announce.$submitted) && forms.announce.queue_youarenext.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE_YOUARENEXT -->\n\n <!-- START QUEUE_THEREARE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.queue_thereare.$touched || forms.announce.$submitted) && forms.announce.queue_thereare.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE_THEREARE\' | translate}}</label>\n <ui-select data-ng-model="queue.queue_thereare" name="queue_thereare" theme="bootstrap" >\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n <ui-select-choices repeat="announce.path as announce in queueAnnounces | filter: $select.search">\n <div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_THEREARE\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.queue_thereare.$touched || forms.announce.$submitted) && forms.announce.queue_thereare.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE_THEREARE -->\n\n <!-- START QUEUE_CALLSWAITING -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.queue_callswaiting.$touched || forms.announce.$submitted) && forms.announce.queue_callswaiting.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE_CALLSWAITING\' | translate}}</label>\n <ui-select data-ng-model="queue.queue_callswaiting" name="queue_callswaiting" theme="bootstrap" >\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n <ui-select-choices repeat="announce.path as announce in queueAnnounces | filter: $select.search">\n <div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_CALLSWAITING\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.queue_callswaiting.$touched || forms.announce.$submitted) && forms.announce.queue_callswaiting.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE_CALLSWAITING -->\n\n <!-- START QUEUE_HOLDTIME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.queue_holdtime.$touched || forms.announce.$submitted) && forms.announce.queue_holdtime.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE_HOLDTIME\' | translate}}</label>\n <ui-select data-ng-model="queue.queue_holdtime" name="queue_holdtime" theme="bootstrap" >\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n <ui-select-choices repeat="announce.path as announce in queueAnnounces | filter: $select.search">\n <div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_HOLDTIME\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.queue_holdtime.$touched || forms.announce.$submitted) && forms.announce.queue_holdtime.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE_HOLDTIME -->\n\n <!-- START QUEUE_MINUTES -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.queue_minutes.$touched || forms.announce.$submitted) && forms.announce.queue_minutes.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE_MINUTES\' | translate}}</label>\n <ui-select data-ng-model="queue.queue_minutes" name="queue_minutes" theme="bootstrap" >\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n <ui-select-choices repeat="announce.path as announce in queueAnnounces | filter: $select.search">\n <div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_MINUTES\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.queue_minutes.$touched || forms.announce.$submitted) && forms.announce.queue_minutes.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE_MINUTES -->\n\n <!-- START QUEUE_MINUTE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.queue_minute.$touched || forms.announce.$submitted) && forms.announce.queue_minute.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE_MINUTE\' | translate}}</label>\n <ui-select data-ng-model="queue.queue_minute" name="queue_minute" theme="bootstrap" >\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n <ui-select-choices repeat="announce.path as announce in queueAnnounces | filter: $select.search">\n <div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_MINUTE\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.queue_minute.$touched || forms.announce.$submitted) && forms.announce.queue_minute.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE_MINUTE -->\n\n <!-- START QUEUE_SECONDS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.queue_seconds.$touched || forms.announce.$submitted) && forms.announce.queue_seconds.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE_SECONDS\' | translate}}</label>\n <ui-select data-ng-model="queue.queue_seconds" name="queue_seconds" theme="bootstrap" >\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n <ui-select-choices repeat="announce.path as announce in queueAnnounces | filter: $select.search">\n <div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_SECONDS\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.queue_seconds.$touched || forms.announce.$submitted) && forms.announce.queue_seconds.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE_SECONDS -->\n\n <!-- START QUEUE_THANKYOU -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.queue_thankyou.$touched || forms.announce.$submitted) && forms.announce.queue_thankyou.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE_THANKYOU\' | translate}}</label>\n <ui-select data-ng-model="queue.queue_thankyou" name="QUEUE_THANKYOU" theme="bootstrap" >\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n <ui-select-choices repeat="announce.path as announce in queueAnnounces | filter: $select.search">\n <div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_THANKYOU\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.queue_thankyou.$touched || forms.announce.$submitted) && forms.announce.queue_thankyou.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE_THANKYOU -->\n\n </div>\n </div>\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n <!-- ADVANCED TAB -->\n <div class="tab-pane" id="tab_1_3">\n <form name="forms.advanced" data-ng-submit="forms.announce.$valid && forms.general.$valid && forms.advanced.$valid && updateVoiceQueue()" novalidate>\n\n <div class="row">\n <div class="col-md-6">\n\n <!-- START AUTOPAUSE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.autopause.$touched || forms.advanced.$submitted) && forms.advanced.autopause.$invalid}">\n <label class="control-label">{{\'APPLICATION_AUTOPAUSE\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="queue.autopause"\n type="checkbox"\n switch-active="{{ recordSwitch.isActive }}"\n switch-on-text="{{ recordSwitch.onText }}"\n switch-off-text="{{ recordSwitch.offText }}"\n switch-on-color="{{ recordSwitch.onColor }}"\n switch-off-color="{{ recordSwitch.offColor }}"\n switch-animate="{{ recordSwitch.animate }}"\n switch-size="{{ recordSwitch.size }}"\n switch-label="{{ recordSwitch.label }}"\n switch-icon="{{ recordSwitch.icon }}"\n switch-radio-off="{{ recordSwitch.radioOff }}"\n switch-label-width="{{ recordSwitch.labelWidth }}"\n switch-handle-width="{{ recordSwitch.handleWidth }}"\n ng-true-value="\'all\'"\n ng-false-value="\'no\'">\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_AUTOPAUSE\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.autopause.$touched || forms.advanced.$submitted) && forms.advanced.autopause.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END AUTOPAUSE -->\n\n <!-- START RINGINUSE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.ringinuse.$touched || forms.advanced.$submitted) && forms.advanced.ringinuse.$invalid}">\n <label class="control-label">{{\'APPLICATION_RINGINUSE\' | translate}}</label>\n <ui-select data-ng-model="queue.ringinuse" name="ringinuse" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_RINGINUSE\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.ringinuse.$touched || forms.advanced.$submitted) && forms.advanced.ringinuse.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END RINGINUSE -->\n\n <!-- START MEMBER_DELAY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.memberdelay.$touched || forms.advanced.$submitted) && forms.advanced.memberdelay.$invalid}">\n <label class="control-label">{{\'APPLICATION_MEMBER_DELAY\' | translate}}</label>\n <input type="number" min="0" name="memberdelay" placeholder="{{\'APPLICATION_MEMBER_DELAY\' | translate}}" class="form-control" data-ng-model="queue.memberdelay" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_MEMBER_DELAY\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.memberdelay.$touched || forms.advanced.$submitted) && forms.advanced.memberdelay.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MEMBER_DELAY -->\n\n <!-- START ACW -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.acw.$touched || forms.advanced.$submitted) && forms.advanced.acw.$invalid}">\n <label class="control-label">{{\'APPLICATION_ACW\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="queue.acw"\n type="checkbox"\n switch-active="{{ recordSwitch.isActive }}"\n switch-on-text="{{ recordSwitch.onText }}"\n switch-off-text="{{ recordSwitch.offText }}"\n switch-on-color="{{ recordSwitch.onColor }}"\n switch-off-color="{{ recordSwitch.offColor }}"\n switch-animate="{{ recordSwitch.animate }}"\n switch-size="{{ recordSwitch.size }}"\n switch-label="{{ recordSwitch.label }}"\n switch-icon="{{ recordSwitch.icon }}"\n switch-radio-off="{{ recordSwitch.radioOff }}"\n switch-label-width="{{ recordSwitch.labelWidth }}"\n switch-handle-width="{{ recordSwitch.handleWidth }}">\n <span class="help-block">\n {{ \'DESCRIPTION_ACW\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.acw.$touched || forms.advanced.$submitted) && forms.advanced.acw.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_ACW\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END ACW -->\n\n <!-- START SETINTERFACEVAR -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.setinterfacevar.$touched || forms.advanced.$submitted) && forms.advanced.setinterfacevar.$invalid}">\n <label class="control-label">{{\'APPLICATION_SETINTERFACEVAR\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="queue.setinterfacevar"\n type="checkbox"\n switch-active="{{ recordSwitch.isActive }}"\n switch-on-text="{{ recordSwitch.onText }}"\n switch-off-text="{{ recordSwitch.offText }}"\n switch-on-color="{{ recordSwitch.onColor }}"\n switch-off-color="{{ recordSwitch.offColor }}"\n switch-animate="{{ recordSwitch.animate }}"\n switch-size="{{ recordSwitch.size }}"\n switch-label="{{ recordSwitch.label }}"\n switch-icon="{{ recordSwitch.icon }}"\n switch-radio-off="{{ recordSwitch.radioOff }}"\n switch-label-width="{{ recordSwitch.labelWidth }}"\n switch-handle-width="{{ recordSwitch.handleWidth }}">\n <span class="help-block">\n {{ \'DESCRIPTION_SETINTERFACEVAR\' | translate }} <a href="https://wiki.xcallymotion.com/display/XMD/Queues+-+Voice+Channel" target="_blank">wiki</a>)\n </span>\n <span data-ng-show="(forms.advanced.setinterfacevar.$touched || forms.advanced.$submitted) && forms.advanced.setinterfacevar.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_SETINTERFACEVAR\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SETINTERFACEVAR -->\n\n <!-- START SETQUEUEVAR -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.setqueuevar.$touched || forms.advanced.$submitted) && forms.advanced.setqueuevar.$invalid}">\n <label class="control-label">{{\'APPLICATION_SETQUEUEVAR\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="queue.setqueuevar"\n type="checkbox"\n switch-active="{{ recordSwitch.isActive }}"\n switch-on-text="{{ recordSwitch.onText }}"\n switch-off-text="{{ recordSwitch.offText }}"\n switch-on-color="{{ recordSwitch.onColor }}"\n switch-off-color="{{ recordSwitch.offColor }}"\n switch-animate="{{ recordSwitch.animate }}"\n switch-size="{{ recordSwitch.size }}"\n switch-label="{{ recordSwitch.label }}"\n switch-icon="{{ recordSwitch.icon }}"\n switch-radio-off="{{ recordSwitch.radioOff }}"\n switch-label-width="{{ recordSwitch.labelWidth }}"\n switch-handle-width="{{ recordSwitch.handleWidth }}">\n <span class="help-block">\n {{ \'DESCRIPTION_SETQUEUEVAR\' | translate }} <a href="https://wiki.xcallymotion.com/display/XMD/Queues+-+Voice+Channel" target="_blank">wiki</a>)\n </span>\n <span data-ng-show="(forms.advanced.setqueuevar.$touched || forms.advanced.$submitted) && forms.advanced.setqueuevar.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_SETQUEUEVAR\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SETQUEUEVAR -->\n\n </div>\n <div class="col-md-6">\n\n <!-- START TIMEOUTRESTART -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.timeoutrestart.$touched || forms.advanced.$submitted) && forms.advanced.timeoutrestart.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUTRESTART\' | translate}}</label>\n <ui-select data-ng-model="queue.timeoutrestart" name="timeoutrestart" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_TIMEOUTRESTART\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.timeoutrestart.$touched || forms.advanced.$submitted) && forms.advanced.timeoutrestart.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUTRESTART -->\n\n <!-- START MONITOR_FORMAT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.monitor_format.$touched || forms.advanced.$submitted) && forms.advanced.monitor_format.$invalid}">\n <label class="control-label">{{\'APPLICATION_MONITOR_FORMAT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="queue.monitor_format" name="monitor_format" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="monFormat.value as monFormat in monitorFormats | filter: $select.search">\n <div ng-bind-html="monFormat.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_MONITOR_FORMAT\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.monitor_format.$touched || forms.advanced.$submitted) && forms.advanced.monitor_format.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MONITOR_FORMAT -->\n\n <!-- START CONTEXT -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_CONTEXT\' | translate}}</label>\n <input type="text" name="context" placeholder="{{\'APPLICATION_CONTEXT\' | translate}}" class="form-control" data-ng-model="queue.context"/>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_VOICE_CONTEXT\' | translate }}\n </span>\n </div>\n <!-- END CONTEXT -->\n\n <!-- START ACW_TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.acwTimeout.$touched || forms.advanced.$submitted) && forms.advanced.acwTimeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_ACW_TIMEOUT\' | translate}}</label>\n <input type="number" min="0" name="acwTimeout" placeholder="{{\'APPLICATION_ACW_TIMEOUT\' | translate}}" class="form-control" data-ng-model="queue.acwTimeout" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_ACW_TIMEOUT\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.acwTimeout.$touched || forms.advanced.$submitted) && forms.advanced.acwTimeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END ACW_TIMEOUT -->\n\n <!-- START SETQUEUEENTRYVAR -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.setqueueentryvar.$touched || forms.advanced.$submitted) && forms.advanced.setqueueentryvar.$invalid}">\n <label class="control-label">{{\'APPLICATION_SETQUEUEENTRYVAR\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="queue.setqueueentryvar"\n type="checkbox"\n switch-active="{{ recordSwitch.isActive }}"\n switch-on-text="{{ recordSwitch.onText }}"\n switch-off-text="{{ recordSwitch.offText }}"\n switch-on-color="{{ recordSwitch.onColor }}"\n switch-off-color="{{ recordSwitch.offColor }}"\n switch-animate="{{ recordSwitch.animate }}"\n switch-size="{{ recordSwitch.size }}"\n switch-label="{{ recordSwitch.label }}"\n switch-icon="{{ recordSwitch.icon }}"\n switch-radio-off="{{ recordSwitch.radioOff }}"\n switch-label-width="{{ recordSwitch.labelWidth }}"\n switch-handle-width="{{ recordSwitch.handleWidth }}">\n <span class="help-block">\n {{ \'DESCRIPTION_SETQUEUEENTRYVAR\' | translate }} <a href="https://wiki.xcallymotion.com/display/XMD/Queues+-+Voice+Channel" target="_blank">wiki</a>)\n </span>\n <span data-ng-show="(forms.advanced.setqueueentryvar.$touched || forms.advanced.$submitted) && forms.advanced.setqueueentryvar.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_SETQUEUEENTRYVAR\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SETQUEUEENTRYVAR -->\n\n </div>\n </div>\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ADVANCED TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'), +a.put("app/channels/voice/realtime/view/abandoned/abandoned.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initAbandoned()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns class="ui-grid" ui-grid-pagination ui-grid-auto-resize>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/voice/realtime/view/agent/agent.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initAgents()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns class="ui-grid" ui-grid-pagination ui-grid-auto-resize>\n <span us-spinner spinner-key="grid-spinner" spinner-start-active="true"></span>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/voice/realtime/view/agent/agent.modal.info.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_SIP_CLIENT_INFO\' | translate }}</h3>\n</div>\n<div class="modal-body">\n<div data-ng-if="agent.ipaddr" class="well">\n <div>{{agent.ipaddr}}:{{agent.port}}</div>\n <div>{{agent.fullcontact}}</div>\n <div>{{agent.useragent}}</div>\n <div>{{agent.lastms}}</div>\n</div>\n<div data-ng-if="!agent.ipaddr" class="alert alert-danger" role="alert">\n {{\'MESSAGE_NO_AVAILABLE_INFO\' | translate}}\n</div>\n<!-- hidden random uiselect, needed to recompile the modal every time and show the content -->\n<ui-select multiple class="hide" ng-model="item.queues" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_QUEUE\' | translate}}">{{$item.name}}</ui-select-match>\n <ui-select-choices repeat="queue.name as queue in queues | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n</ui-select>\n<!-- -->\n</div>\n<div class="modal-footer">\n <button class="btn default" type="button" ng-click="close()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'),a.put("app/channels/voice/realtime/view/agent/queue.modal.add.html",'<div class="modal-header" data-ng-init="init()">\n <h3 class="modal-title">{{ \'APPLICATION_QUEUES\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <div class="form-group row">\n <label class="col-md-2 control-label" style="margin-top: 7px;">{{\'APPLICATION_QUEUE\' | translate}}:</label>\n <div class="col-md-6">\n <ui-select multiple ng-model="item.queues" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_QUEUE\' | translate}}">{{$item.name}}</ui-select-match>\n <ui-select-choices repeat="queue.name as queue in queues | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-2">\n <button class="btn btn-success bts-sm" type="button" ng-click="joinQueue()" ng-disabled="form.$invalid">{{ \'APPLICATION_JOIN_QUEUE\' | translate }}</button>\n </div>\n</div>\n<div class="form-group row">\n<label class="col-md-2 control-label" style="margin-top: 7px;">{{\'APPLICATION_PENALTY\' | translate}}</label>\n <div class="input-group input-small mbottom20 col-md-6">\n <input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="params.penalty" readonly>\n <div class="spinner-buttons input-group-btn btn-group-vertical">\n <button type="button" class="btn spinner-up btn-xs blue" data-ng-click="params.penalty=params.penalty+1">\n <i class="fa fa-angle-up"></i>\n </button>\n <button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!params.penalty" data-ng-click="params.penalty=params.penalty-1">\n <i class="fa fa-angle-down"></i>\n </button>\n </div>\n </div>\n</div>\n<div>\n <div data-ng-if="queueTable" ui-grid="queueTable" name="queueTable" ui-grid-resize-columns class="ui-grid" ui-grid-pagination ui-grid-auto-resize>\n <span us-spinner spinner-key="agentqueue-spinner" spinner-start-active="true"></span>\n <div class="watermark" ng-show="!queueTable.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n</div>\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn default" type="button" ng-click="close()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'),a.put("app/channels/voice/realtime/view/outbound/outbound.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initDials()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns class="ui-grid" ui-grid-auto-resize ui-grid-pagination>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/voice/realtime/view/parameter/parameter.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initParameters()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns class="ui-grid" ui-grid-tree-view ui-grid-expandable-row ui-grid-pagination ui-grid-auto-resize>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/voice/realtime/view/queue/queue.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row mbottom20" data-ng-init="initQueues()">\n <ui-select ng-model="item.queue" theme="bootstrap" class="col-md-6" data-ng-change="getAgents(item.queue)" required>\n <ui-select-match placeholder="{{\'APPLICATION_QUEUE\' | translate}}" allow-clear>{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="queue.name as queue in queues | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n</div>\n<div class="row">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns class="ui-grid" ui-grid-pagination ui-grid-auto-resize>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/voice/realtime/view/queuecalls/queuecalls.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initQueues()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns class="ui-grid" ui-grid-auto-resize ui-grid-pagination>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/voice/realtime/view/telephone/telephone.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initTelephones()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns class="ui-grid" ui-grid-pagination ui-grid-auto-resize>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/voice/realtime/view/telephone/telephone.modal.info.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_INTERFACE_INFO\' | translate }}</h3>\n</div>\n<div class="modal-body">\n<div data-ng-if="telephone.ipaddr" class="well">\n <div>{{telephone.ipaddr}}:{{telephone.port}}</div>\n <div>{{telephone.fullcontact}}</div>\n <div>{{telephone.useragent}}</div>\n <div>{{telephone.lastms}}</div>\n</div>\n<div data-ng-if="!telephone.ipaddr" class="alert alert-danger" role="alert">\n {{\'MESSAGE_NO_AVAILABLE_INFO\' | translate}}\n</div>\n</div>\n<div class="modal-footer">\n <button class="btn default" type="button" ng-click="close()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'),a.put("app/channels/voice/realtime/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-directions"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-earphones-alt"></i>\n <a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-energy"></i>\n <a href="/channels/voice/realtime/view/agents">{{ \'APPLICATION_REALTIME\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <div>\n <nav class="navbar navbar-default" role="navigation">\n <div class="collapse navbar-collapse">\n <ul class="nav navbar-nav">\n <li data-ng-class="{\'active\': $state.is(\'main.channels.voice.realtime.view.agents\')}">\n <a href="/channels/voice/realtime/view/agents">\n {{\'APPLICATION_AGENTS\' | translate}}\n </a>\n </li>\n <li data-ng-class="{\'active\': $state.is(\'main.channels.voice.realtime.view.telephones\')}" data-ng-show="Auth.isAdmin()">\n <a href="/channels/voice/realtime/view/telephones">\n {{\'APPLICATION_TELEPHONES\' | translate}}\n </a>\n </li>\n <li data-ng-class="{\'active\': $state.is(\'main.channels.voice.realtime.view.queues\')}">\n <a href="/channels/voice/realtime/view/queues">\n {{\'APPLICATION_QUEUES\' | translate}}\n </a>\n </li>\n <li data-ng-class="{\'active\': $state.is(\'main.channels.voice.realtime.view.queuecalls\')}">\n <a href="/channels/voice/realtime/view/queuecalls">\n {{\'APPLICATION_QUEUE_CALLS\' | translate}}\n </a>\n </li>\n <li data-ng-class="{\'active\': $state.is(\'main.channels.voice.realtime.view.parameters\')}">\n <a href="/channels/voice/realtime/view/parameters">\n {{\'APPLICATION_QUEUE_PARAMETERS\' | translate}}\n </a>\n </li>\n <li data-ng-class="{\'active\': $state.is(\'main.channels.voice.realtime.view.abandoned\')}">\n <a href="/channels/voice/realtime/view/abandoned">\n {{\'APPLICATION_QUEUE_ABANDONED\' | translate}}\n </a>\n </li>\n <li data-ng-class="{\'active\': $state.is(\'main.channels.voice.realtime.view.outbound\')}">\n <a href="/channels/voice/realtime/view/outbound">\n {{\'APPLICATION_OUTBOUND_CALLS\' | translate}}\n </a>\n </li>\n <li>\n <a href="#">\n <b>|{{\'APPLICATION_SHOW_TIMERS\' | translate}} </b><input\n bs-switch\n class="form-control"\n ng-model="showTimers"\n type="checkbox"\n name="showTimers"\n switch-active="{{ timerSwitch.isActive }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ timerSwitch.onColor }}"\n switch-off-color="{{ timerSwitch.offColor }}"\n switch-animate="{{ timerSwitch.animate }}"\n switch-size="{{ timerSwitch.size }}"\n switch-label="{{ timerSwitch.label }}"\n switch-icon="{{ timerSwitch.icon }}"\n switch-radio-off="{{ timerSwitch.radioOff }}"\n switch-label-width="{{ timerSwitch.labelWidth }}"\n switch-handle-width="{{ timerSwitch.handleWidth }}"><b>|</b>\n </a>\n </li>\n </ul>\n </div>\n </nav>\n </div>\n <div ui-view></div>\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/voice/recording/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-earphones-alt"></i>\n <a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-play"></i>\n <a href="#">{{ \'APPLICATION_RECORDINGS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="fa fa-play font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_RECORDINGS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length && Auth.isAdmin()">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/voice/route/inbound/list/create.modal.html",'<div class="modal-header" data-ng-init="getContexts()">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_ROUTE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="forms.extension" novalidate>\n\n <!-- START EXTEN -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.extension.exten.$touched || forms.extension.$submitted) && forms.extension.exten.$invalid || existRoute}">\n <label class="control-label">{{\'APPLICATION_PHONE_NUMBER\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="exten" placeholder="{{\'APPLICATION_PHONE_NUMBER\' | translate}}" class="form-control" data-ng-model="item.exten" data-ng-pattern="settings.patternName" required/>\n <span data-ng-show="(forms.extension.exten.$touched || forms.extension.$submitted) && forms.extension.exten.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END EXTEN -->\n\n <!-- START CONTEXT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.extension.context.$touched || forms.extension.$submitted) && forms.extension.context.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONTEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.context" name="context" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="context.name as context in voiceContexts | filter: $select.search">\n <div ng-bind-html="context.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_CONTEXT\' | translate }}\n </span>\n <span data-ng-show="(forms.extension.context.$touched || forms.extension.$submitted) && forms.extension.context.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CONTEXT -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="ok()" ng-disabled="forms.extension.$invalid || existRoute">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n<!-- <pre>\n {{item | json}}\n</pre> -->\n'),a.put("app/channels/voice/route/inbound/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-earphones-alt"></i>\n <a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-call-in"></i>\n <a href="/channels/voice/routes/inbound/list">{{ \'APPLICATION_INBOUND\' | translate }} {{ \'APPLICATION_ROUTES\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-users font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_INBOUND\' | translate }} {{ \'APPLICATION_ROUTES\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle " href="#" data-ng-click="create()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_ROUTE\' | translate }}\n </a>\n </div>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter class="ui-grid" ui-grid-draggable-rows>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/voice/route/inbound/view/view.applications.html",'<div ui-view class="profile-content">\n<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_ACTIONS\' | translate}}</span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="selectedRows.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle " href="/channels/voice/routes/inbound/view/{{route.id}}/application" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_APPLICATION\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div data-ng-if="showGrid" ui-grid="gridOptions" ui-grid-resize-columns class="grid" ui-grid-selection ui-grid-draggable-rows ui-grid-auto-resize>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n</div>\n</div>\n'),a.put("app/channels/voice/route/inbound/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getRoute()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-earphones-alt"></i>\n <a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-reload"></i>\n <a href="/channels/voice/routes/inbound/list">{{ \'APPLICATION_INBOUND\' | translate }} {{ \'APPLICATION_ROUTES\' | translate }}</a>\n <i data-ng-show="route" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="route">\n <a href="#">{{route.exten}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/inboundroute.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{route.exten}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.channels.voice.routes.inbound.view.settings\')}">\n <a data-ng-click="deselectAndRedirect(\'/channels/voice/routes/inbound/view/\'+route.id+\'/settings\')">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n'+" <li data-ng-class=\"{active: $state.is('main.channels.voice.routes.inbound.view.applications') || $state.is('main.channels.voice.routes.inbound.view.application') || $state.is('main.channels.voice.routes.inbound.view.applications.settings')}\">\n <a data-ng-click=\"deselectAndRedirect('/channels/voice/routes/inbound/view/'+route.id+'/applications')\">\n <i class=\"icon-list\"></i>\n {{ 'APPLICATION_ACTIONS' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class=\"profile-content\">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n"),a.put("app/channels/voice/route/inbound/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_INBOUND\' | translate}} {{ \'APPLICATION_ROUTE\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body" data-ng-init="getContexts()">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateRoute()" novalidate>\n\n <!-- START EXTEN -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.exten.$touched || forms.general.$submitted) && forms.general.exten.$invalid}">\n <label class="control-label">{{\'APPLICATION_PHONE_NUMBER\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="exten" placeholder="{{\'APPLICATION_PHONE_NUMBER\' | translate}}" class="form-control" data-ng-model="route.exten" required/>\n <span data-ng-show="(forms.general.exten.$touched || forms.general.$submitted) && forms.general.exten.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END EXTEN -->\n\n <!-- START CONTEXT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.context.$touched || forms.general.$submitted) && forms.general.context.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONTEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="route.context" name="context" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="context.name as context in voiceContexts | filter: $select.search">\n <div ng-bind-html="context.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_CONTEXT\' | translate }}\n </span>\n <span data-ng-show="(forms.general.context.$touched || forms.general.$submitted) && forms.general.context.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CONTEXT -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="route.description"/></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/voice/route/internal/list/create.modal.html",'<div class="modal-header" data-ng-init="getContexts()">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_ROUTE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="forms.extension" novalidate>\n\n <!-- START EXTEN -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.extension.exten.$touched || forms.extension.$submitted) && forms.extension.exten.$invalid || existRoute}">\n <label class="control-label">{{\'APPLICATION_PHONE_NUMBER\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="exten" placeholder="{{\'APPLICATION_PHONE_NUMBER\' | translate}}" class="form-control" data-ng-model="item.exten" data-ng-pattern="settings.patternName" required/>\n <span data-ng-show="(forms.extension.exten.$touched || forms.extension.$submitted) && forms.extension.exten.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END EXTEN -->\n\n <!-- START CONTEXT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.extension.context.$touched || forms.extension.$submitted) && forms.extension.context.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONTEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.context" name="context" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="context.name as context in voiceContexts | filter: $select.search">\n <div ng-bind-html="context.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_CONTEXT\' | translate }}\n </span>\n <span data-ng-show="(forms.extension.context.$touched || forms.extension.$submitted) && forms.extension.context.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CONTEXT -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="ok()" ng-disabled="forms.extension.$invalid || existRoute">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n<!-- <pre>\n {{item | json}}\n</pre> -->\n'),a.put("app/channels/voice/route/internal/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-earphones-alt"></i>\n <a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-reload"></i>\n <a href="/voice/routes/internal/list">{{ \'APPLICATION_INTERNAL\' | translate }} {{ \'APPLICATION_ROUTES\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-users font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_INTERNAL\' | translate }} {{ \'APPLICATION_ROUTES\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle " href="#" data-ng-click="create()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_ROUTE\' | translate }}\n </a>\n </div>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter class="ui-grid" ui-grid-draggable-rows>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'), +a.put("app/channels/voice/route/internal/view/view.applications.html",'<div ui-view class="profile-content">\n<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_ACTIONS\' | translate}}</span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="selectedRows.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle " href="/channels/voice/routes/internal/view/{{route.id}}/application" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_APPLICATION\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div data-ng-if="showGrid" ui-grid="gridOptions" ui-grid-resize-columns class="grid" ui-grid-selection ui-grid-draggable-rows ui-grid-auto-resize>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n</div>\n</div>\n'),a.put("app/channels/voice/route/internal/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getRoute()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-earphones-alt"></i>\n <a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-reload"></i>\n <a href="/channels/voice/routes/internal/list">{{ \'APPLICATION_INTERNAL\' | translate }} {{ \'APPLICATION_ROUTES\' | translate }}</a>\n <i data-ng-show="route" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="route">\n <a href="#">{{route.exten}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/internalroute.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{route.exten}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.channels.voice.routes.internal.view.settings\')}">\n <a data-ng-click="deselectAndRedirect(\'/channels/voice/routes/internal/view/\'+route.id+\'/settings\')">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n'+" <li data-ng-class=\"{active: $state.is('main.channels.voice.routes.internal.view.applications') || $state.is('main.channels.voice.routes.internal.view.application') || $state.is('main.channels.voice.routes.internal.view.applications.settings')}\">\n <a data-ng-click=\"deselectAndRedirect('/channels/voice/routes/internal/view/'+route.id+'/applications')\">\n <i class=\"icon-list\"></i>\n {{ 'APPLICATION_ACTIONS' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class=\"profile-content\">\n </div>\n <!-- <pre>\n {{route | json}}\n </pre> -->\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n"),a.put("app/channels/voice/route/internal/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_INTERNAL\' | translate}} {{ \'APPLICATION_ROUTE\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body" data-ng-init="getContexts()">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateRoute()" novalidate>\n\n <!-- START EXTEN -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.exten.$touched || forms.general.$submitted) && forms.general.exten.$invalid}">\n <label class="control-label">{{\'APPLICATION_PHONE_NUMBER\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="exten" placeholder="{{\'APPLICATION_PHONE_NUMBER\' | translate}}" class="form-control" data-ng-model="route.exten" required/>\n <span data-ng-show="(forms.general.exten.$touched || forms.general.$submitted) && forms.general.exten.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END EXTEN -->\n\n <!-- START CONTEXT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.context.$touched || forms.general.$submitted) && forms.general.context.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONTEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="route.context" name="context" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="context.name as context in voiceContexts | filter: $select.search">\n <div ng-bind-html="context.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_CONTEXT\' | translate }}\n </span>\n <span data-ng-show="(forms.general.context.$touched || forms.general.$submitted) && forms.general.context.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CONTEXT -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="route.description"/></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/voice/route/outbound/list/create.modal.html",'<div class="modal-header" data-ng-init="getContexts()">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_ROUTE\' | translate }}</h3>\n</div>\n<div class="modal-body" data-ng-init="getTags()">\n <form name="forms.extension" novalidate>\n\n <!-- START EXTEN -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.extension.exten.$touched || forms.extension.$submitted) && forms.extension.exten.$invalid || existRoute}">\n <label class="control-label">{{\'APPLICATION_DESTINATION_PATTERN\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="exten" placeholder="{{\'APPLICATION_DESTINATION_PATTERN\' | translate}}" class="form-control" data-ng-model="item.exten" data-ng-pattern="settings.patternName" required/>\n <span data-ng-show="(forms.extension.exten.$touched || forms.extension.$submitted) && forms.extension.exten.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END EXTEN -->\n\n <!-- START CONTEXT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.extension.context.$touched || forms.extension.$submitted) && forms.extension.context.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONTEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.context" name="context" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="context.name as context in voiceContexts | filter: $select.search">\n <div ng-bind-html="context.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_CONTEXT\' | translate }}\n </span>\n <span data-ng-show="(forms.extension.context.$touched || forms.extension.$submitted) && forms.extension.context.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CONTEXT -->\n\n <!-- START TAG -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.extension.tag.$touched || forms.extension.$submitted) && forms.extension.tag.$invalid}">\n <label class="control-label">{{ \'APPLICATION_TAG\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.tag" name="tag" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_TAG\' | translate }}" data-ng-init="item.tag = \'--\'">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="tag.name as tag in tags | filter: $select.search">\n <div ng-bind-html="tag.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.extension.tag.$touched || forms.extension.$submitted) && forms.extension.tag.$invalid && forms.extension.tag.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TAG -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="ok()" ng-disabled="forms.extension.$invalid || existRoute">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n<!-- <pre>\n {{item | json}}\n</pre> -->\n'),a.put("app/channels/voice/route/outbound/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-earphones-alt"></i>\n <a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-call-out"></i>\n <a href="/channels/voice/routes/outbound/list">{{ \'APPLICATION_OUTBOUND\' | translate }} {{ \'APPLICATION_ROUTES\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-users font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_OUTBOUND\' | translate }} {{ \'APPLICATION_ROUTES\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle " href="#" data-ng-click="create()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_ROUTE\' | translate }}\n </a>\n </div>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter class="ui-grid" ui-grid-draggable-rows>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/voice/route/outbound/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getRoute()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-earphones-alt"></i>\n <a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-call-out"></i>\n <a href="/channels/voice/routes/outbound/list">{{ \'APPLICATION_OUTBOUND\' | translate }} {{ \'APPLICATION_ROUTES\' | translate }}</a>\n <i data-ng-show="route" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="route">\n <a href="#">{{route.exten}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/outboundroute.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{route.exten}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.channels.voice.routes.outbound.view.settings\')}">\n <a data-ng-click="deselectAndRedirect(\'/channels/voice/routes/outbound/view/\'+route.id+\'/settings\')">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n'+" <li data-ng-class=\"{active: $state.is('main.channels.voice.routes.outbound.view.routes') || $state.is('main.channels.voice.routes.outbound.view.route') || $state.is('main.channels.voice.routes.outbound.view.routes.settings')}\">\n <a data-ng-click=\"deselectAndRedirect('/channels/voice/routes/outbound/view/'+route.id+'/routes')\">\n <i class=\"icon-list\"></i>\n {{ 'APPLICATION_ACTIONS' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class=\"profile-content\">\n </div>\n <!-- <pre>\n {{route | json}}\n </pre> -->\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n"),a.put("app/channels/voice/route/outbound/view/view.route.html",'<div class="row" data-ng-init="initApplication(true);getIntervals();">\n <div class="col-md-12">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_NEW_ROUTE\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <div class="profile-usertitle-name">\n {{(main.app.name | translate) || \'Application\'}}\n </div>\n <wizard on-finish="addApplication()">\n <wz-step title="{{\'APPLICATION_SETTINGS\' | translate}}" canexit="formValidation(forms.info.$valid)">\n <form name="forms.info" novalidate>\n <button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n <!-- START APP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.app.$touched || forms.info.$submitted) && forms.info.app.$invalid}">\n <label class="control-label">{{ \'APPLICATION_APPLICATION\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="main.app" name="app" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_APPLICATION\' | translate }}">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="app in applications | filter: $select.search">\n <div ng-bind-html="app.name | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.info.app.$touched || forms.info.$submitted) && forms.info.app.$invalid && forms.info.app.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END APP -->\n <div id="Dial" class="app-settings" ng-slide-down="main.app.value == \'Dial\' && main.app.type == \'outboundDial\'" lazy-render duration="1">\n <!-- START TRUNK -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.trunk.$touched || forms.info.$submitted) && forms.info.trunk.$invalid}">\n <label class="control-label">{{\'APPLICATION_TRUNK\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.appdata[0]" data-ng-init="application.appdata[0] = null" name="trunk" theme="bootstrap" required data-ng-disabled="!items.length">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="trunk.name as trunk in items | filter: $select.search">\n <div ng-bind-html="trunk.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="items.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_TRUNKS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/trunks/list">{{\'APPLICATION_TRUNKS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.info.trunk.$touched || forms.info.$submitted) && forms.info.trunk.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TRUNK -->\n\n <!-- START CALLERID -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.callerID.$touched || forms.info.$submitted) && forms.info.callerID.$invalid}">\n <label class="control-label">{{ \'APPLICATION_CALLERID\' | translate }}</label>\n <input type="text" name="callerID" pattern=\'^"[a-zA-Z0-9_.-]*" <[a-zA-Z0-9_.-]*>\' placeholder=\'"name" <number>\' class="form-control" data-ng-model="application.appdata[1]" data-ng-init="application.appdata[1] = null">\n <span class="help-block">\n {{ \'DESCRIPTION_OUTBOUND_CALLERID\' | translate }}\n </span>\n <span data-ng-show="(forms.info.callerID.$touched || forms.info.$submitted) && forms.info.callerID.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CALLERID -->\n\n <!-- START PREFIX -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.prefix.$touched || forms.info.$submitted) && forms.info.prefix.$invalid}">\n <label class="control-label">{{ \'APPLICATION_PREFIX\' | translate }}</label>\n <input type="text" name="prefix" placeholder="{{ \'APPLICATION_PREFIX\' | translate }}" class="form-control" data-ng-model="application.appdata[2]" data-ng-init="application.appdata[2] = null">\n <span class="help-block">\n {{ \'DESCRIPTION_OUTBOUND_PREFIX\' | translate }}\n </span>\n <span data-ng-show="(forms.info.prefix.$touched || forms.info.$submitted) && forms.info.prefix.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PREFIX -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{ \'APPLICATION_TIMEOUT\' | translate }}</label>\n <input type="text" pattern="[0-9]+" name="timeout" placeholder="" class="form-control" data-ng-model="application.appdata[3]" data-ng-init="application.appdata[3] = null">\n <span data-ng-show="(forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START OPTIONS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid}">\n <label class="control-label">{{ \'APPLICATION_OPTIONS\' | translate }}</label>\n <input type="text" name="app_options" placeholder="" class="form-control" data-ng-model="application.appdata[4]" data-ng-init="application.appdata[4] = null">\n <span data-ng-show="(forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid && forms.settings.app_options.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END OPTIONS -->\n\n <!-- START URL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid}">\n <label class="control-label">{{ \'APPLICATION_URL\' | translate }}</label>\n <input type="text" name="url" placeholder="{{ \'APPLICATION_URL\' | translate }}" class="form-control" data-ng-model="application.appdata[5]" data-ng-init="application.appdata[5] = null">\n <span data-ng-show="(forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid && forms.settings.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END URL -->\n\n </div>\n <div id="Custom" class="app-settings" ng-slide-down="main.app.type == \'custom\'" lazy-render duration="1">\n\n <!-- START CUSTOMAPP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.customApp.$touched || forms.info.$submitted) && forms.info.customApp.$invalid}">\n <label class="control-label">{{ \'APPLICATION_CUSTOM_APP\' | translate }}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="customApp" placeholder="{{ \'APPLICATION_CUSTOM_APP\' | translate }}" class="form-control" data-ng-model="application.app" data-ng-init="application.appdata[0] = null" required>\n <span data-ng-show="(forms.info.customApp.$touched || forms.info.$submitted) && forms.info.customApp.$invalid && forms.info.customApp.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CUSTOMAPP -->\n\n <!-- START APPDATA -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.appdata.$touched || forms.info.$submitted) && forms.info.appdata.$invalid}">\n <label class="control-label">{{ \'APPLICATION_ARGUMENTS\' | translate }}</label>\n <input type="text" name="appdata" placeholder="{{ \'APPLICATION_ARGUMENTS\' | translate }}" class="form-control" data-ng-model="application.appdata[0]" data-ng-init="application.appdata[1] = null">\n <span data-ng-show="(forms.info.appdata.$touched || forms.info.$submitted) && forms.info.appdata.$invalid && forms.info.appdata.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END APPDATA -->\n </div>\n <button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </form>\n </wz-step>\n <wz-step title="{{\'APPLICATION_INTERVAL\' | translate}}" canexit="formValidation(forms.interval.IntervalId.$valid || forms.interval.hasOwnProperty(\'t_from\') || forms.interval.intType.$modelValue === \'always\')">\n <form name="forms.interval" novalidate>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n <!-- START INTERVAL_TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.interval.intType.$touched || forms.interval.$submitted) && forms.interval.intType.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERVAL_TYPE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="interval.intType" theme="bootstrap" name="intType" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="intType.value as intType in $application.intTypes | filter: $select.search">\n {{$translate.instant(intType.name)}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.interval.intType.$touched || forms.interval.$submitted) && forms.interval.intType.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVAL_TYPE -->\n <div id="customInterval" class="app-settings" ng-slide-down="interval.intType == \'custom\'" lazy-render duration="1">\n <!-- START TIME -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n <div class="input-group input-large">\n <fieldset class="pull-left" ng-disabled="interval.alwaysTime"><uib-timepicker name="t_from" data-ng-model="interval.t_from" show-meridian="false" show-spinners="false"></uib-timepicker></fieldset>\n <div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n <fieldset ng-disabled="interval.alwaysTime"><uib-timepicker name="t_to" data-ng-model="interval.t_to" show-meridian="false" show-spinners="false"></uib-timepicker></fieldset>\n <label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="interval.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label>\n </div>\n </div>\n <!-- END TIME -->\n\n <!-- START WEEKDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="interval.wd_from" theme="bootstrap" name="wd_from">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{weekDay.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="interval.wd_to" theme="bootstrap" name="wd_to">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{weekDay.name | translate}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END WEEKDAY -->\n\n <!-- START MONTHDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="interval.md_from" theme="bootstrap" name="md_from">\n <ui-select-match>{{$select.selected === \'always\' ? \'APPLICATION_ALWAYS\' : $select.selected | translate}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search">\n {{monthDay === \'always\' ? \'APPLICATION_ALWAYS\' : monthDay | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="interval.md_to" theme="bootstrap" name="md_to">\n <ui-select-match>{{$select.selected === \'always\' ? \'APPLICATION_ALWAYS\' : $select.selected | translate}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search">\n {{monthDay === \'always\' ? \'APPLICATION_ALWAYS\' : monthDay | translate}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTHDAY -->\n\n <!-- START MONTH -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="interval.m_from" theme="bootstrap" name="m_from">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{month.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="interval.m_to" theme="bootstrap" name="m_to">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{month.name | translate}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTH -->\n </div>\n\n <div id="customInterval" class="app-settings" ng-slide-down="interval.intType == \'list\'" lazy-render duration="1">\n\n <!-- START INTERVALS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.interval.IntervalId.$touched || forms.interval.$submitted) && forms.interval.IntervalId.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERVALS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="interval.IntervalId" theme="bootstrap" name="IntervalId" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="interval.id as interval in Intervals | filter: $select.search">\n {{interval.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.interval.IntervalId.$touched || forms.interval.$submitted) && forms.interval.IntervalId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVALS -->\n\n </div>\n\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'), +a.put("app/channels/voice/route/outbound/view/view.routeSettings.html",'<div class="row" data-ng-init="initApplication();getApplication();getIntervals();">\n <div class="col-md-12">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_APPLICATION_SETTINGS\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="updateRoute(\'routes\')">\n <div class="profile-usertitle-name">\n {{(main.app.name | translate) || \'Application\'}}\n </div>\n <wz-step title="{{\'APPLICATION_APPLICATION\' | translate}}" canexit="formValidation(forms.info.$valid)">\n <form name="forms.info" novalidate>\n <button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n <div id="Dial" class="app-settings" ng-slide-down="main.app.value == \'Dial\' && main.app.type == \'outboundDial\'" lazy-render duration="1">\n\n <!-- START TRUNK -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.trunk.$touched || forms.info.$submitted) && forms.info.trunk.$invalid}">\n <label class="control-label">{{\'APPLICATION_TRUNK\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="route.Applications[selectedApp].appdata[0]" name="trunk" theme="bootstrap" required data-ng-disabled="!items.length">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="trunk.name as trunk in items | filter: $select.search">\n <div ng-bind-html="trunk.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="items.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_TRUNKS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/trunks/list">{{\'APPLICATION_TRUNKS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.info.trunk.$touched || forms.info.$submitted) && forms.info.trunk.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TRUNK -->\n\n <!-- START CALLERID -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.callerID.$touched || forms.info.$submitted) && forms.info.callerID.$invalid}">\n <label class="control-label">{{ \'APPLICATION_CALLERID\' | translate }}</label>\n <input type="text" name="callerID" pattern=\'^"[a-zA-Z0-9_.-]*" <[a-zA-Z0-9_.-]*>\' placeholder=\'"name" <number>\' class="form-control" data-ng-model="route.Applications[selectedApp].appdata[1]">\n <span class="help-block">\n {{ \'DESCRIPTION_OUTBOUND_CALLERID\' | translate }} "name" <number>\n </span>\n <span data-ng-show="(forms.info.callerID.$touched || forms.info.$submitted) && forms.info.callerID.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CALLERID -->\n\n <!-- START PREFIX -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.prefix.$touched || forms.info.$submitted) && forms.info.prefix.$invalid}">\n <label class="control-label">{{ \'APPLICATION_PREFIX\' | translate }}</label>\n <input type="text" name="prefix" placeholder="{{ \'APPLICATION_PREFIX\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[2]">\n <span class="help-block">\n {{ \'DESCRIPTION_OUTBOUND_PREFIX\' | translate }}\n </span>\n <span data-ng-show="(forms.info.prefix.$touched || forms.info.$submitted) && forms.info.prefix.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PREFIX -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{ \'APPLICATION_TIMEOUT\' | translate }}</label>\n <input type="text" pattern="[0-9]+" name="timeout" placeholder="" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[3]">\n <span data-ng-show="(forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START OPTIONS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid}">\n <label class="control-label">{{ \'APPLICATION_OPTIONS\' | translate }}</label>\n <input type="text" name="app_options" placeholder="" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[4]">\n <span data-ng-show="(forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid && forms.settings.app_options.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END OPTIONS -->\n\n <!-- START URL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid}">\n <label class="control-label">{{ \'APPLICATION_URL\' | translate }}</label>\n <input type="text" name="url" placeholder="{{ \'APPLICATION_URL\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[5]">\n <span data-ng-show="(forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid && forms.settings.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END URL -->\n </div>\n <div id="Custom" class="app-settings" ng-slide-down="main.app.type == \'custom\'" lazy-render duration="1">\n\n <!-- START CUSTOMAPP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.customApp.$touched || forms.info.$submitted) && forms.info.customApp.$invalid}">\n <label class="control-label">{{ \'APPLICATION_CUSTOM_APP\' | translate }}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="customApp" placeholder="{{ \'APPLICATION_CUSTOM_APP\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].app" required>\n <span data-ng-show="(forms.info.customApp.$touched || forms.info.$submitted) && forms.info.customApp.$invalid && forms.info.customApp.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CUSTOMAPP -->\n\n <!-- START APPDATA -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.appdata.$touched || forms.info.$submitted) && forms.info.appdata.$invalid}">\n <label class="control-label">{{ \'APPLICATION_ARGUMENTS\' | translate }}</label>\n <input type="text" name="appdata" placeholder="{{ \'APPLICATION_ARGUMENTS\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[0]">\n <span data-ng-show="(forms.info.appdata.$touched || forms.info.$submitted) && forms.info.appdata.$invalid && forms.info.appdata.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END APPDATA -->\n </div>\n <button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </form>\n </wz-step>\n <wz-step title="{{\'APPLICATION_INTERVAL\' | translate}}" canexit="formValidation(forms.interval.IntervalId.$valid || forms.interval.hasOwnProperty(\'t_from\') || forms.interval.intType.$modelValue === \'always\')">\n <form name="forms.interval" novalidate>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n <!-- START INTERVAL_TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.interval.intType.$touched || forms.interval.$submitted) && forms.interval.intType.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERVAL_TYPE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="interval.intType" theme="bootstrap" name="intType" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="intType.value as intType in $application.intTypes | filter: $select.search">\n {{intType.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.interval.intType.$touched || forms.interval.$submitted) && forms.interval.intType.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVAL_TYPE -->\n <div id="customInterval" class="app-settings" ng-slide-down="interval.intType == \'custom\'" lazy-render duration="1">\n <!-- START TIME -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n <div class="input-group input-large">\n <fieldset class="pull-left" ng-disabled="interval.alwaysTime"><uib-timepicker name="t_from" data-ng-model="interval.t_from" show-meridian="false" show-spinners="false"></uib-timepicker></fieldset>\n <div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n <fieldset ng-disabled="interval.alwaysTime"><uib-timepicker name="t_to" data-ng-model="interval.t_to" show-meridian="false" show-spinners="false"></uib-timepicker></fieldset>\n </div>\n </div>\n <!-- END TIME -->\n\n <!-- <label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="interval.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label> -->\n <!-- START ALWAYS -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ALWAYS\' | translate }}</label>\n <div class="input-group input-large">\n <label class="control-label pointer-cursor">\n <input\n bs-switch\n data-ng-model="interval.alwaysTime"\n type="checkbox"\n switch-active="{{ alwaysSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ alwaysSwitch.onColor }}"\n switch-off-color="{{ alwaysSwitch.offColor }}"\n switch-animate="{{ alwaysSwitch.animate }}"\n switch-size="{{ alwaysSwitch.size }}"\n switch-label="{{ alwaysSwitch.label }}"\n switch-icon="{{ alwaysSwitch.icon }}"\n switch-radio-off="{{ alwaysSwitch.radioOff }}"\n switch-label-width="{{ alwaysSwitch.labelWidth }}"\n switch-handle-width="{{ alwaysSwitch.handleWidth }}">\n </label>\n </div>\n </div>\n <!-- END ALWAYS -->\n\n <!-- START WEEKDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="interval.wd_from" theme="bootstrap" name="wd_from">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{weekDay.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="interval.wd_to" theme="bootstrap" name="wd_to">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{weekDay.name | translate}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END WEEKDAY -->\n\n <!-- START MONTHDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="interval.md_from" theme="bootstrap" name="md_from">\n <ui-select-match>{{$select.selected === \'always\' ? \'APPLICATION_ALWAYS\' : $select.selected | translate}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search">\n {{monthDay === \'always\' ? \'APPLICATION_ALWAYS\' : monthDay | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="interval.md_to" theme="bootstrap" name="md_to">\n <ui-select-match>{{$select.selected === \'always\' ? \'APPLICATION_ALWAYS\' : $select.selected | translate}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search">\n {{monthDay === \'always\' ? \'APPLICATION_ALWAYS\' : monthDay | translate}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTHDAY -->\n\n <!-- START MONTH -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="interval.m_from" theme="bootstrap" name="m_from">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{month.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="interval.m_to" theme="bootstrap" name="m_to">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{month.name | translate}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTH -->\n </div>\n\n <div id="customInterval" class="app-settings" ng-slide-down="interval.intType == \'list\'" lazy-render duration="1">\n\n <!-- START INTERVALS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.interval.IntervalId.$touched || forms.interval.$submitted) && forms.interval.IntervalId.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERVALS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="interval.IntervalId" theme="bootstrap" name="IntervalId" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="interval.id as interval in Intervals | filter: $select.search">\n {{interval.name | translate}}\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="intervals.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_INTERVAL_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/intervals/list">{{\'APPLICATION_INTERVALS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.interval.IntervalId.$touched || forms.interval.$submitted) && forms.interval.IntervalId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVALS -->\n\n </div>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/voice/route/outbound/view/view.routes.html",'<div ui-view class="profile-content">\n<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_ACTIONS\' | translate}}</span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="selectedRows.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle " href="/channels/voice/routes/outbound/view/{{route.id}}/route" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_ROUTE\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div data-ng-if="showGrid" ui-grid="gridOptions" ui-grid-resize-columns class="grid" ui-grid-selection ui-grid-draggable-rows ui-grid-auto-resize>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n</div>\n</div>\n'),a.put("app/channels/voice/route/outbound/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_OUTBOUND\' | translate}} {{ \'APPLICATION_ROUTE\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body" data-ng-init="getContexts();getTags();">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateRoute()" novalidate>\n\n <!-- START EXTEN -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.exten.$touched || forms.general.$submitted) && forms.general.exten.$invalid}">\n <label class="control-label">{{\'APPLICATION_DESTINATION_PATTERN\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="exten" placeholder="{{\'APPLICATION_DESTINATION_PATTERN\' | translate}}" class="form-control" data-ng-model="route.exten" required/>\n <span data-ng-show="(forms.general.exten.$touched || forms.general.$submitted) && forms.general.exten.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END EXTEN -->\n\n <!-- START CUTDIGITS -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_CUTDIGITS\' | translate}}</label>\n <input type="text" pattern="[0-9]+" class="form-control" name="cutdigits" data-ng-model="route.cutdigits">\n <span class="help-block">\n </span>\n </div>\n <!-- END CUTDIGITS -->\n\n <!-- START TAG -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.tag.$touched || forms.general.$submitted) && forms.general.tag.$invalid}">\n <label class="control-label">{{\'APPLICATION_TAG\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="route.tag" name="tag" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="tag.name as tag in tags | filter: $select.search">\n <div ng-bind-html="tag.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.general.tag.$touched || forms.general.$submitted) && forms.general.tag.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TAG -->\n\n <!-- START CONTEXT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.context.$touched || forms.general.$submitted) && forms.general.context.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONTEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="route.context" name="context" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="context.name as context in voiceContexts | filter: $select.search">\n <div ng-bind-html="context.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_CONTEXT\' | translate }}\n </span>\n <span data-ng-show="(forms.general.context.$touched || forms.general.$submitted) && forms.general.context.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CONTEXT -->\n\n <!-- START RECORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.record.$touched || forms.general.$submitted) && forms.general.record.$invalid}">\n <label class="control-label">{{\'APPLICATION_RECORDING\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="route.record"\n type="checkbox"\n switch-active="{{ recordSwitch.isActive }}"\n switch-on-text="{{ recordSwitch.onText }}"\n switch-off-text="{{ recordSwitch.offText }}"\n switch-on-color="{{ recordSwitch.onColor }}"\n switch-off-color="{{ recordSwitch.offColor }}"\n switch-animate="{{ recordSwitch.animate }}"\n switch-size="{{ recordSwitch.size }}"\n switch-label="{{ recordSwitch.label }}"\n switch-icon="{{ recordSwitch.icon }}"\n switch-radio-off="{{ recordSwitch.radioOff }}"\n switch-label-width="{{ recordSwitch.labelWidth }}"\n switch-handle-width="{{ recordSwitch.handleWidth }}">\n <span data-ng-show="(forms.general.record.$touched || forms.general.$submitted) && forms.general.record.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END RECORD -->\n\n <!-- START RECORDINGFORMAT -->\n <div data-ng-if="route.record" class="form-group" data-ng-class="{\'has-error\': (forms.general.recordingFormat.$touched || forms.general.$submitted) && forms.general.recordingFormat.$invalid}">\n <label class="control-label">{{\'APPLICATION_FORMAT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="route.recordingFormat" name="recordingFormat" theme="bootstrap" data-ng-required="route.record">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="format in [\'wav\',\'gsm\'] | filter: $select.search">\n <div ng-bind-html="format | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.general.recordingFormat.$touched || forms.general.$submitted) && forms.general.recordingFormat.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END RECORDINGFORMAT -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="route.description"/></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/voice/route/view.application.html",'\n<div class="row" data-ng-init="initApplication(true); getIntervals();">\n <div class="col-md-12">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_NEW_APPLICATION\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="addApplication()">\n <div class="profile-usertitle-name">\n {{(main.app.name | translate) || \'Application\'}}\n </div>\n <wz-step title="{{\'APPLICATION_APPLICATION\' | translate}}" canexit="formValidation(forms.settings.$valid)">\n <form name="forms.settings" novalidate>\n\n <button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n <!-- START APP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app.$touched || forms.settings.$submitted) && forms.settings.app.$invalid}">\n <label class="control-label">{{ \'APPLICATION_APPLICATION\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="main.app" name="app" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_APPLICATION\' | translate }}">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="app in $application.applications| filter: $select.search">\n <div ng-bind-html="app.name | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.app.$touched || forms.settings.$submitted) && forms.settings.app.$invalid && forms.settings.app.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END APP -->\n\n <div id="Queue" class="app-settings" ng-slide-down="main.app.value == \'Queue\'" lazy-render duration="1">\n <!-- START QUEUE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.queue.$touched || forms.settings.$submitted) && forms.settings.queue.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.appdata[0]" data-ng-init="application.appdata[0] = null" name="queue" theme="bootstrap" required data-ng-disabled="!items.length">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="queue.name as queue in items | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="items.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_QUEUES_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/channels/voice/queues/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.settings.queue.$touched || forms.settings.$submitted) && forms.settings.queue.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE -->\n\n <!-- START OPTIONS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid}">\n <label class="control-label">{{\'APPLICATION_OPTIONS\' | translate}}</label>\n <input type="text" pattern="[^,]*" name="app_options" placeholder="{{ \'APPLICATION_OPTIONS\' | translate }}" class="form-control" data-ng-model="application.appdata[1]" data-ng-init="application.appdata[1] = null">\n <span data-ng-show="(forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid && forms.settings.app_options.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END OPTIONS -->\n <!-- START URL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid}">\n <label class="control-label">{{ \'APPLICATION_URL\' | translate }}</label>\n <input type="text" pattern="[^,]*" name="url" placeholder="{{ \'APPLICATION_URL\' | translate }}" class="form-control" data-ng-model="application.appdata[2]" data-ng-init="application.appdata[2] = null">\n <span data-ng-show="(forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid && forms.settings.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid && forms.settings.url.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END URL -->\n\n <!-- START APPLICATION_ANNOUNCE_OVERRIDE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.audiofile.$touched || forms.settings.$submitted) && forms.settings.audiofile.$invalid}">\n <label class="control-label">{{\'APPLICATION_ANNOUNCE_OVERRIDE\' | translate}}</label>\n <ui-select data-ng-model="application.appdata[3]" data-ng-init="application.appdata[3] = null" name="audiofile" theme="bootstrap" data-ng-disabled="!items2.length">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n <ui-select-choices repeat="settings.soundPath+\'/\'+audio.save_name as audio in items2 | filter: $select.search">\n <div ng-bind-html="audio.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="items2.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_SOUNDS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/sounds/list">{{\'APPLICATION_SOUNDS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.settings.audiofile.$touched || forms.settings.$submitted) && forms.settings.audiofile.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END APPLICATION_ANNOUNCE_OVERRIDE -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{ \'APPLICATION_TIMEOUT\' | translate }}</label>\n <input type="text" pattern="[0-9]+" name="timeout" placeholder="" class="form-control" data-ng-model="application.appdata[4]" data-ng-init="application.appdata[4] = null">\n <span data-ng-show="(forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START AGI -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.agi.$touched || forms.settings.$submitted) && forms.settings.agi.$invalid}">\n <label class="control-label">{{ \'APPLICATION_AGI\' | translate }}</label>\n <input type="text" pattern="[^,]*" name="agi" placeholder="{{ \'APPLICATION_AGI\' | translate }}" class="form-control" data-ng-model="application.appdata[5]" data-ng-init="application.appdata[6] = null">\n <span data-ng-show="(forms.settings.agi.$touched || forms.settings.$submitted) && forms.settings.agi.$invalid && forms.settings.agi.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.settings.agi.$touched || forms.settings.$submitted) && forms.settings.agi.$invalid && forms.settings.agi.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END AGI -->\n\n <!-- START MACRO -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.macro.$touched || forms.settings.$submitted) && forms.settings.macro.$invalid}">\n <label class="control-label">{{ \'APPLICATION_MACRO\' | translate }}</label>\n <input type="text" pattern="[^,]*" name="macro" placeholder="{{ \'APPLICATION_MACRO\' | translate }}" class="form-control" data-ng-model="application.appdata[6]" data-ng-init="application.appdata[6] = null">\n <span data-ng-show="(forms.settings.macro.$touched || forms.settings.$submitted) && forms.settings.macro.$invalid && forms.settings.macro.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.settings.macro.$touched || forms.settings.$submitted) && forms.settings.macro.$invalid && forms.settings.macro.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END MACRO -->\n\n <!-- START GOSUB -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.gosub.$touched || forms.settings.$submitted) && forms.settings.gosub.$invalid}">\n <label class="control-label">{{ \'APPLICATION_GOSUB\' | translate }}</label>\n <input type="text" pattern="[^,]*" name="gosub" placeholder="{{ \'APPLICATION_GOSUB\' | translate }}" class="form-control" data-ng-model="application.appdata[7]" data-ng-init="application.appdata[7] = null">\n <span data-ng-show="(forms.settings.gosub.$touched || forms.settings.$submitted) && forms.settings.gosub.$invalid && forms.settings.gosub.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.settings.gosub.$touched || forms.settings.$submitted) && forms.settings.gosub.$invalid && forms.settings.gosub.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END GOSUB -->\n\n <!-- START RULE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.rule.$touched || forms.settings.$submitted) && forms.settings.rule.$invalid}">\n <label class="control-label">{{ \'APPLICATION_RULE\' | translate }}</label>\n <input type="text" pattern="[^,]*" name="rule" placeholder="{{ \'APPLICATION_RULE\' | translate }}" class="form-control" data-ng-model="application.appdata[8]" data-ng-init="application.appdata[8] = null">\n <span data-ng-show="(forms.settings.rule.$touched || forms.settings.$submitted) && forms.settings.rule.$invalid && forms.settings.rule.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.settings.rule.$touched || forms.settings.$submitted) && forms.settings.rule.$invalid && forms.settings.rule.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END RULE -->\n\n <!-- START POSITION -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.position.$touched || forms.settings.$submitted) && forms.settings.position.$invalid}">\n <label class="control-label">{{ \'APPLICATION_POSITION\' | translate }}</label>\n <input type="number" min="0" name="position" placeholder="{{ \'APPLICATION_POSITION\' | translate }}" class="form-control" data-ng-model="application.appdata[9]" data-ng-init="application.appdata[9] = null">\n <span data-ng-show="(forms.settings.position.$touched || forms.settings.$submitted) && forms.settings.position.$invalid && forms.settings.position.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END POSITION -->\n\n <!-- START ANSWER -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ANSWER\' | translate }}</label>\n <div class="input-group input-large">\n <label class="control-label pointer-cursor">\n <input\n bs-switch\n data-ng-init="application.answer=true"\n data-ng-model="application.answer"\n type="checkbox"\n switch-active="{{ alwaysSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ alwaysSwitch.onColor }}"\n switch-off-color="{{ alwaysSwitch.offColor }}"\n switch-animate="{{ alwaysSwitch.animate }}"\n switch-size="{{ alwaysSwitch.size }}"\n switch-label="{{ alwaysSwitch.label }}"\n switch-icon="{{ alwaysSwitch.icon }}"\n switch-radio-off="{{ alwaysSwitch.radioOff }}"\n switch-label-width="{{ alwaysSwitch.labelWidth }}"\n switch-handle-width="{{ alwaysSwitch.handleWidth }}">\n </label>\n </div>\n </div>\n <!-- END ANSWER -->\n\n </div>\n <div id="Playback" class="app-settings" ng-slide-down="main.app.value == \'Playback\'" lazy-render duration="1">\n <!-- START AUDIOFILE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.audiofile.$touched || forms.settings.$submitted) && forms.settings.audiofile.$invalid}">\n <label class="control-label">{{\'APPLICATION_AUDIO_FILE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.appdata[0]" data-ng-init="application.appdata[0] = null" name="audiofile" theme="bootstrap" required data-ng-disabled="!items.length">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n <ui-select-choices repeat="settings.soundPath+\'/\'+audio.save_name as audio in items | filter: $select.search">\n <div ng-bind-html="audio.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="items.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_SOUNDS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/sounds/list">{{\'APPLICATION_SOUNDS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.settings.audiofile.$touched || forms.settings.$submitted) && forms.settings.audiofile.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END AUDIOFILE -->\n\n <!-- START OPTIONS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid}">\n <label class="control-label">{{\'APPLICATION_OPTIONS\' | translate}}</label>\n <input type="text" name="app_options" placeholder="{{ \'APPLICATION_OPTIONS\' | translate }}" class="form-control" data-ng-model="application.appdata[1]" data-ng-init="application.appdata[1] = null">\n <span data-ng-show="(forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END OPTIONS -->\n\n <!-- START ANSWER -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ANSWER\' | translate }}</label>\n <div class="input-group input-large">\n <label class="control-label pointer-cursor">\n <input\n bs-switch\n data-ng-init="application.answer=true"\n data-ng-model="application.answer"\n type="checkbox"\n switch-active="{{ alwaysSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ alwaysSwitch.onColor }}"\n switch-off-color="{{ alwaysSwitch.offColor }}"\n switch-animate="{{ alwaysSwitch.animate }}"\n switch-size="{{ alwaysSwitch.size }}"\n switch-label="{{ alwaysSwitch.label }}"\n switch-icon="{{ alwaysSwitch.icon }}"\n switch-radio-off="{{ alwaysSwitch.radioOff }}"\n switch-label-width="{{ alwaysSwitch.labelWidth }}"\n switch-handle-width="{{ alwaysSwitch.handleWidth }}">\n </label>\n </div>\n </div>\n <!-- END ANSWER -->\n </div>\n <div id="Dial" class="app-settings" ng-slide-down="main.app.value == \'Dial\' && !main.app.type" lazy-render duration="1">\n <!-- START INTERFACE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.interface.$touched || forms.settings.$submitted) && forms.settings.interface.$invalid}">\n <label class="control-label">{{ \'APPLICATION_TYPE\' | translate }}/{{ \'APPLICATION_IDENTIFIER\' | translate }}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="interface" placeholder="SIP/0000" class="form-control" data-ng-model="application.appdata[0]" data-ng-init="application.appdata[0] = null" required>\n <span data-ng-show="(forms.settings.interface.$touched || forms.settings.$submitted) && forms.settings.interface.$invalid && forms.settings.interface.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERFACE -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{ \'APPLICATION_TIMEOUT\' | translate }}</label>\n <input type="text" pattern="[0-9]+" name="timeout" placeholder="" class="form-control" data-ng-model="application.appdata[1]" data-ng-init="application.appdata[1] = null">\n <span data-ng-show="(forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START OPTIONS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid}">\n <label class="control-label">{{ \'APPLICATION_OPTIONS\' | translate }}</label>\n <input type="text" name="app_options" placeholder="" class="form-control" data-ng-model="application.appdata[2]" data-ng-init="application.appdata[2] = null">\n <span data-ng-show="(forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid && forms.settings.app_options.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END OPTIONS -->\n\n <!-- START URL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid}">\n <label class="control-label">{{ \'APPLICATION_URL\' | translate }}</label>\n <input type="text" name="url" placeholder="{{ \'APPLICATION_URL\' | translate }}" class="form-control" data-ng-model="application.appdata[3]" data-ng-init="application.appdata[3] = null">\n <span data-ng-show="(forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid && forms.settings.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END URL -->\n </div>\n <div id="internalDial" class="app-settings" ng-slide-down="main.app.value == \'Dial\' && main.app.type == \'internalDial\'" lazy-render duration="1">\n <!-- START INTERNAL DIAL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.user.$touched || forms.settings.$submitted) && forms.settings.user.$invalid}">\n <label class="control-label">{{\'APPLICATION_USER\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.appdata[0]" data-ng-init="application.appdata[0] = null" name="user" theme="bootstrap" required data-ng-disabled="!items.length">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="user.name as user in items | filter: $select.search">\n <div ng-bind-html="user.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.user.$touched || forms.settings.$submitted) && forms.settings.user.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERNAL DIAL -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{ \'APPLICATION_TIMEOUT\' | translate }}</label>\n <input type="text" pattern="[0-9]+" name="timeout" placeholder="" class="form-control" data-ng-model="application.appdata[1]" data-ng-init="application.appdata[1] = null">\n <span data-ng-show="(forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START OPTIONS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid}">\n <label class="control-label">{{ \'APPLICATION_OPTIONS\' | translate }}</label>\n <input type="text" name="app_options" placeholder="" class="form-control" data-ng-model="application.appdata[2]" data-ng-init="application.appdata[2] = null">\n <span data-ng-show="(forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid && forms.settings.app_options.$error.required" class="help-block help-block-error">\n <strong>{{ \'APPLICATION_WARNING\' | translate }}!</strong> {{ \'MESSAGE_REQUIRED_FIELD\' | translate }}.\n </span>\n </div>\n <!-- END OPTIONS -->\n\n <!-- START URL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid}">\n <label class="control-label">{{ \'APPLICATION_URL\' | translate }}</label>\n <input type="text" name="url" placeholder="{{ \'APPLICATION_URL\' | translate }}" class="form-control" data-ng-model="application.appdata[3]" data-ng-init="application.appdata[3] = null">\n <span data-ng-show="(forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid && forms.settings.url.$error.required" class="help-block help-block-error">\n <strong>{{ \'APPLICATION_WARNING\' | translate }}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END URL -->\n\n </div>\n <div id="Dial" class="app-settings" ng-slide-down="main.app.value == \'Dial\' && main.app.type == \'externalDial\'" lazy-render duration="1">\n <!-- START TRUNK -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.trunk.$touched || forms.info.$submitted) && forms.info.trunk.$invalid}">\n <label class="control-label">{{ \'APPLICATION_TRUNK\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.appdata[0]" data-ng-init="application.appdata[0] = null" name="trunk" theme="bootstrap" required data-ng-disabled="!items.length">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="trunk.name as trunk in items | filter: $select.search">\n <div ng-bind-html="trunk.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="items.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_TRUNKS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{ \'APPLICATION_GO_TO\' | translate }} <a href="/tools/trunks/list">{{ \'APPLICATION_TRUNKS\' | translate }}</a>\n </p>\n </div>\n <span data-ng-show="(forms.info.trunk.$touched || forms.info.$submitted) && forms.info.trunk.$error.required" class="help-block help-block-error">\n <strong>{{ \'APPLICATION_WARNING\' | translate }}!</strong> {{ \'MESSAGE_REQUIRED_FIELD\' | translate }}.\n </span>\n </div>\n <!-- END TRUNK -->\n\n <!-- START PHONE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.phone.$touched || forms.settings.$submitted) && forms.settings.phone.$invalid}">\n <label class="control-label">{{ \'APPLICATION_PHONE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="phone" placeholder="{{\'APPLICATION_PHONE\' | translate}}" class="form-control" data-ng-model="application.appdata[1]" data-ng-init="application.appdata[1] = null" required>\n <span data-ng-show="(forms.settings.phone.$touched || forms.settings.$submitted) && forms.settings.phone.$invalid && forms.settings.phone.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PHONE -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{ \'APPLICATION_TIMEOUT\' | translate }}</label>\n <input type="text" pattern="[0-9]+" name="timeout" placeholder="" class="form-control" data-ng-model="application.appdata[2]" data-ng-init="application.appdata[2] = null">\n <span data-ng-show="(forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START OPTIONS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid}">\n <label class="control-label">{{ \'APPLICATION_OPTIONS\' | translate }}</label>\n <input type="text" name="app_options" placeholder="" class="form-control" data-ng-model="application.appdata[3]" data-ng-init="application.appdata[3] = null">\n <span data-ng-show="(forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid && forms.settings.app_options.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END OPTIONS -->\n\n <!-- START URL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid}">\n <label class="control-label">{{ \'APPLICATION_URL\' | translate }}</label>\n <input type="text" name="url" placeholder="{{ \'APPLICATION_URL\' | translate }}" class="form-control" data-ng-model="application.appdata[4]" data-ng-init="application.appdata[4] = null">\n <span data-ng-show="(forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid && forms.settings.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END URL -->\n </div>\n <div id="RingGroup" class="app-settings" ng-slide-down="main.app.value == \'Dial\' && main.app.type == \'RingGroup\'" lazy-render duration="1">\n <!-- START ITEMS -->\n <input type="hidden" name="items" placeholder="{{ \'APPLICATION_URL\' | translate }}" class="form-control" data-ng-model="application.appdata[0]" data-ng-init="initRingGroup()">\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.project.$touched || forms.settings.$submitted) && forms.settings.items.$invalid}">\n <label class="control-label">{{\'APPLICATION_ITEMS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <div class="col-md-12" id="multi-select-user-by-role"></div>\n <span data-ng-show="(forms.settings.items.$touched || forms.settings.$submitted) && forms.settings.items.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END ITEMS -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{ \'APPLICATION_TIMEOUT\' | translate }}</label>\n <input type="text" pattern="[0-9]+" name="timeout" placeholder="" class="form-control" data-ng-model="application.appdata[1]" data-ng-init="application.appdata[1] = null">\n <span data-ng-show="(forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START OPTIONS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid}">\n <label class="control-label">{{ \'APPLICATION_OPTIONS\' | translate }}</label>\n <input type="text" name="app_options" placeholder="" class="form-control" data-ng-model="application.appdata[2]" data-ng-init="application.appdata[2] = null">\n <span data-ng-show="(forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid && forms.settings.app_options.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END OPTIONS -->\n\n <!-- START URL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid}">\n <label class="control-label">{{ \'APPLICATION_URL\' | translate }}</label>\n <input type="text" name="url" placeholder="{{ \'APPLICATION_URL\' | translate }}" class="form-control" data-ng-model="application.appdata[3]" data-ng-init="application.appdata[3] = null">\n <span data-ng-show="(forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid && forms.settings.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END URL -->\n </div>\n <div id="AGI" class="app-settings" ng-slide-down="main.app.value == \'AGI\'" lazy-render duration="1">\n <!-- START PROJECT -->\n <input type="hidden" name="url" placeholder="{{ \'APPLICATION_URL\' | translate }}" class="form-control" data-ng-model="application.appdata[0]" data-ng-init="application.appdata[0] = \'agi://127.0.0.1/square\'">\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.project.$touched || forms.settings.$submitted) && forms.settings.project.$invalid}">\n <label class="control-label">{{\'APPLICATION_PROJECT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.appdata[1]" data-ng-init="application.appdata[1] = null" name="project" theme="bootstrap" required data-ng-disabled="!items.length">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="project.name as project in items | filter: $select.search">\n <div ng-bind-html="project.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="items.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_PROJECTS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/square/projects/list">{{\'APPLICATION_PROJECTS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.settings.project.$touched || forms.settings.$submitted) && forms.settings.project.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PROJECT -->\n </div>\n <div id="Goto" class="app-settings" ng-slide-down="main.app.value == \'Goto\'" lazy-render duration="1">\n <!-- START CONTEXT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.context.$touched || forms.settings.$submitted) && forms.settings.context.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONTEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.appdata[0]" data-ng-init="application.appdata[0] = null" name="context" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="context.name as context in items | filter: $select.search">\n <div ng-bind-html="context.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.context.$touched || forms.settings.$submitted) && forms.settings.context.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CONTEXT -->\n\n <!-- START EXTENSION -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.extension.$touched || forms.settings.$submitted) && forms.settings.extension.$invalid}">\n <label class="control-label">{{ \'APPLICATION_EXTENSION\' | translate }}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="extension" placeholder="" class="form-control" data-ng-model="application.appdata[1]" data-ng-init="application.appdata[1] = null" required>\n <span data-ng-show="(forms.settings.extension.$touched || forms.settings.$submitted) && forms.settings.extension.$invalid && forms.settings.extension.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END EXTENSION -->\n\n <!-- START PRIORITY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.priority.$touched || forms.settings.$submitted) && forms.settings.priority.$invalid}">\n <label class="control-label">{{ \'APPLICATION_PRIORITY\' | translate }}<span class="required" aria-required="true">*</span></label>\n <input type="text" pattern="[0-9]+" name="priority" placeholder="" class="form-control" data-ng-model="application.appdata[2]" data-ng-init="application.appdata[2] = null" required>\n <span data-ng-show="(forms.settings.priority.$touched || forms.settings.$submitted) && forms.settings.priority.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PRIORITY -->\n </div>\n <div id="Hangup" class="app-settings" ng-slide-down="main.app.value == \'Hangup\'" lazy-render duration="1">\n <!-- START HANGUPCAUSE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.hangupCause.$touched || forms.settings.$submitted) && forms.settings.hangupCause.$invalid}">\n <label class="control-label">{{\'APPLICATION_HANGUP_CAUSE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.appdata[0]" data-ng-init="application.appdata[0] = null" theme="bootstrap" name="hangupCause" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="hangupCause.value as hangupCause in $application.hangupCauses | filter: $select.search">\n <div ng-bind-html="hangupCause.name | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.hangupCause.$touched || forms.settings.$submitted) && forms.settings.hangupCause.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END HANGUPCAUSE -->\n </div>\n <div id="Set" class="app-settings" ng-slide-down="main.app.value == \'Set\' && !main.app.type" lazy-render duration="1">\n <!-- START VARIABLE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.variable.$touched || forms.settings.$submitted) && forms.settings.variable.$invalid}">\n <label class="control-label">{{ \'APPLICATION_VARIABLE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="variable" placeholder="" class="form-control" data-ng-model="application.variable" data-ng-init="application.appdata[0] = null" data-ng-change="updateSetAppdata()" required>\n <span data-ng-show="(forms.settings.variable.$touched || forms.settings.$submitted) && forms.settings.variable.$invalid && forms.settings.variable.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END VARIABLE -->\n\n <!-- START VARVALUE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.varvalue.$touched || forms.settings.$submitted) && forms.settings.varvalue.$invalid}">\n <label class="control-label">{{ \'APPLICATION_VALUE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="varvalue" placeholder="" class="form-control" data-ng-model="application.value" data-ng-change="updateSetAppdata()" required>\n <span data-ng-show="(forms.settings.varvalue.$touched || forms.settings.$submitted) && forms.settings.varvalue.$invalid && forms.settings.varvalue.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END VARVALUE -->\n </div>\n <div id="Custom" class="app-settings" ng-slide-down="main.app.type == \'custom\'" lazy-render duration="1">\n\n <!-- START CUSTOMAPP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.customApp.$touched || forms.settings.$submitted) && forms.settings.customApp.$invalid}">\n <label class="control-label">{{ \'APPLICATION_CUSTOM_APP\' | translate }}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="customApp" placeholder="{{ \'APPLICATION_CUSTOM_APP\' | translate }}" class="form-control" data-ng-model="application.app" required>\n <span data-ng-show="(forms.settings.customApp.$touched || forms.settings.$submitted) && forms.settings.customApp.$invalid && forms.settings.customApp.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CUSTOMAPP -->\n\n <!-- START APPDATA -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.appdata.$touched || forms.settings.$submitted) && forms.settings.appdata.$invalid}">\n <label class="control-label">{{ \'APPLICATION_ARGUMENTS\' | translate }}</label>\n <input type="text" name="appdata" placeholder="{{ \'APPLICATION_ARGUMENTS\' | translate }}" class="form-control" data-ng-model="application.appdata[0]" data-ng-init="application.appdata[0] = null">\n <span data-ng-show="(forms.settings.appdata.$touched || forms.settings.$submitted) && forms.settings.appdata.$invalid && forms.settings.appdata.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END APPDATA -->\n </div>\n <div id="Voicemail" class="app-settings" ng-slide-down="main.app.value == \'Voicemail\'" lazy-render duration="1">\n <!-- START VOICEMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.voicemail.$touched || forms.settings.$submitted) && forms.settings.voicemail.$invalid}">\n <label class="control-label">{{ \'APPLICATION_MAILBOX\' | translate }}@{{ \'APPLICATION_CONTEXT\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.appdata[0]" data-ng-init="application.appdata[0] = null" theme="bootstrap" name="voicemail" required data-ng-disabled="!items.length">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.mailbox}}</ui-select-match>\n <ui-select-choices repeat="mailbox.mailbox+\'@\'+mailbox.context as mailbox in items | filter: $select.search">\n <div ng-bind-html="mailbox.mailbox | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="items.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_VOICEMAILS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/channels/voice/voicemails/list">{{\'APPLICATION_VOICEMAILS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.settings.voicemail.$touched || forms.settings.$submitted) && forms.settings.voicemail.$invalid && forms.settings.voicemail.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END VOICEMAIL -->\n\n <!-- START OPTIONS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid}">\n <label class="control-label">{{\'APPLICATION_OPTIONS\' | translate}}</label>\n <input type="text" name="app_options" placeholder="{{ \'APPLICATION_OPTIONS\' | translate }}" class="form-control" data-ng-model="application.appdata[1]" data-ng-init="application.appdata[1] = null">\n </div>\n <!-- END OPTIONS -->\n </div>\n\n <div id="videoOn" class="app-settings" ng-slide-down="main.app.value == \'Set\' && main.app.type == \'videoOn\'" lazy-render duration="1">\n <!-- START DOMAIN -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.domain.$touched || forms.settings.$submitted) && forms.settings.domain.$invalid}">\n <label class="control-label">{{ \'APPLICATION_DOMAIN\' | translate }}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="domain" placeholder="" class="form-control" data-ng-model="application.domain" data-ng-init="application.appdata[0] = null;application.domain = \'xrtceu1.xcally.com\';application.theme = \'YOUR-THEME\';updateVideoOnAppdata();" data-ng-change="updateVideoOnAppdata()" required>\n <span data-ng-show="(forms.settings.domain.$touched || forms.settings.$submitted) && forms.settings.domain.$invalid && forms.settings.domain.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END DOMAIN -->\n\n <!-- START THEME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.theme.$touched || forms.settings.$submitted) && forms.settings.theme.$invalid}">\n <label class="control-label">{{ \'APPLICATION_THEME\' | translate }}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="theme" placeholder="" class="form-control" data-ng-model="application.theme" data-ng-change="updateVideoOnAppdata()" required>\n <span data-ng-show="(forms.settings.theme.$touched || forms.settings.$submitted) && forms.settings.theme.$invalid && forms.settings.theme.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END THEME -->\n </div>\n <button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </form>\n </wz-step>\n <wz-step title="{{\'APPLICATION_INTERVAL\' | translate}}" canexit="formValidation(forms.interval.IntervalId.$valid || forms.interval.hasOwnProperty(\'t_from\') || forms.interval.intType.$modelValue === \'always\')">\n <form name="forms.interval" novalidate>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n <!-- START INTERVAL_TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.interval.intType.$touched || forms.interval.$submitted) && forms.interval.intType.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERVAL_TYPE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="interval.intType" theme="bootstrap" name="intType" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="intType.value as intType in $application.intTypes | filter: $select.search">\n <div ng-bind-html="intType.name | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.interval.intType.$touched || forms.interval.$submitted) && forms.interval.intType.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVAL_TYPE -->\n <div id="customInterval" class="app-settings" ng-slide-down="interval.intType == \'custom\'" lazy-render duration="1">\n <!-- START TIME -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n <div class="input-group input-large">\n <fieldset class="pull-left" ng-disabled="interval.alwaysTime"><uib-timepicker name="t_from" data-ng-model="interval.t_from" show-meridian="false" show-spinners="false"></uib-timepicker></fieldset>\n <div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n <fieldset ng-disabled="interval.alwaysTime"><uib-timepicker name="t_to" data-ng-model="interval.t_to" show-meridian="false" show-spinners="false"></uib-timepicker></fieldset>\n </div>\n </div>\n <!-- END TIME -->\n\n <!-- <label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="interval.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label> -->\n <!-- START ALWAYS -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ALWAYS\' | translate }}</label>\n <div class="input-group input-large">\n <label class="control-label pointer-cursor">\n <input\n bs-switch\n data-ng-model="interval.alwaysTime"\n type="checkbox"\n switch-active="{{ alwaysSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ alwaysSwitch.onColor }}"\n switch-off-color="{{ alwaysSwitch.offColor }}"\n switch-animate="{{ alwaysSwitch.animate }}"\n switch-size="{{ alwaysSwitch.size }}"\n switch-label="{{ alwaysSwitch.label }}"\n switch-icon="{{ alwaysSwitch.icon }}"\n switch-radio-off="{{ alwaysSwitch.radioOff }}"\n switch-label-width="{{ alwaysSwitch.labelWidth }}"\n switch-handle-width="{{ alwaysSwitch.handleWidth }}">\n </label>\n </div>\n </div>\n <!-- END ALWAYS -->\n\n <!-- START WEEKDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="interval.wd_from" theme="bootstrap" name="wd_from">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{weekDay.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="interval.wd_to" theme="bootstrap" name="wd_to">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{weekDay.name | translate}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END WEEKDAY -->\n\n <!-- START MONTHDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="interval.md_from" theme="bootstrap" name="md_from">\n <ui-select-match>{{$select.selected === \'always\' ? \'APPLICATION_ALWAYS\' : $select.selected | translate}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search">\n {{monthDay === \'always\' ? \'APPLICATION_ALWAYS\' : monthDay | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="interval.md_to" theme="bootstrap" name="md_to">\n <ui-select-match>{{$select.selected === \'always\' ? \'APPLICATION_ALWAYS\' : $select.selected | translate}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search">\n {{monthDay === \'always\' ? \'APPLICATION_ALWAYS\' : monthDay | translate}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTHDAY -->\n\n <!-- START MONTH -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="interval.m_from" theme="bootstrap" name="m_from">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{month.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="interval.m_to" theme="bootstrap" name="m_to">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{month.name | translate}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTH -->\n </div>\n\n <div id="customInterval" class="app-settings" ng-slide-down="interval.intType == \'list\'" lazy-render duration="1">\n\n <!-- START INTERVALS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.interval.IntervalId.$touched || forms.interval.$submitted) && forms.interval.IntervalId.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERVALS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="interval.IntervalId" theme="bootstrap" name="IntervalId" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="interval.id as interval in Intervals | filter: $select.search">\n {{interval.name | translate}}\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="Intervals.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_INTERVAL_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/intervals/list">{{\'APPLICATION_INTERVALS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.interval.IntervalId.$touched || forms.interval.$submitted) && forms.interval.IntervalId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVALS -->\n\n </div>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'), +a.put("app/channels/voice/route/view.applicationSettings.html",'\n<div class="row" data-ng-init="initApplication();getIntervals();getApplication();">\n <div class="col-md-12">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_APPLICATION_SETTINGS\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="updateRoute(\'applications\')">\n <div class="profile-usertitle-name">\n {{(main.app.name | translate) || \'Application\'}}\n </div>\n <wz-step title="{{\'APPLICATION_APPLICATION\' | translate}}" canexit="formValidation(forms.settings.$valid)">\n <form name="forms.settings" novalidate>\n <!-- <pre>\n {{application | json}}\n </pre> -->\n\n <button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n\n <div id="Queue" class="app-settings" ng-slide-down="main.app.value == \'Queue\'" lazy-render duration="1">\n <!-- START QUEUE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.queue.$touched || forms.settings.$submitted) && forms.settings.queue.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="route.Applications[selectedApp].appdata[0]" name="queue" theme="bootstrap" required data-ng-disabled="!items.length">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="queue.name as queue in items | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="items.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_QUEUES_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/channels/voice/queues/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.settings.queue.$touched || forms.settings.$submitted) && forms.settings.queue.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE -->\n\n <!-- START OPTIONS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid}">\n <label class="control-label">{{\'APPLICATION_OPTIONS\' | translate}}</label>\n <input type="text" pattern="[^,]*" name="app_options" placeholder="{{ \'APPLICATION_OPTIONS\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[1]">\n <span data-ng-show="(forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid && forms.settings.app_options.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END OPTIONS -->\n\n <!-- START URL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid}">\n <label class="control-label">{{ \'APPLICATION_URL\' | translate }}</label>\n <input type="text" pattern="[^,]*" name="url" placeholder="{{ \'APPLICATION_URL\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[2]">\n <span data-ng-show="(forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid && forms.settings.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid && forms.settings.url.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END URL -->\n\n <!-- START APPLICATION_ANNOUNCE_OVERRIDE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.audiofile.$touched || forms.settings.$submitted) && forms.settings.audiofile.$invalid}">\n <label class="control-label">{{\'APPLICATION_ANNOUNCE_OVERRIDE\' | translate}}</label>\n <ui-select data-ng-model="route.Applications[selectedApp].appdata[3]" name="audiofile" theme="bootstrap" data-ng-disabled="!items2.length">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n <ui-select-choices repeat="settings.soundPath+\'/\'+audio.save_name as audio in items2 | filter: $select.search">\n <div ng-bind-html="audio.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="items2.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_SOUNDS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/sounds/list">{{\'APPLICATION_SOUNDS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.settings.audiofile.$touched || forms.settings.$submitted) && forms.settings.audiofile.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END APPLICATION_ANNOUNCE_OVERRIDE -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{ \'APPLICATION_TIMEOUT\' | translate }}</label>\n <input type="text" pattern="[0-9]+" name="timeout" placeholder="{{ \'APPLICATION_TIMEOUT\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[4]">\n <span data-ng-show="(forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START AGI -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.agi.$touched || forms.settings.$submitted) && forms.settings.agi.$invalid}">\n <label class="control-label">{{ \'APPLICATION_AGI\' | translate }}</label>\n <input type="text" pattern="[^,]*" name="agi" placeholder="{{ \'APPLICATION_AGI\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[5]">\n <span data-ng-show="(forms.settings.agi.$touched || forms.settings.$submitted) && forms.settings.agi.$invalid && forms.settings.agi.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.settings.agi.$touched || forms.settings.$submitted) && forms.settings.agi.$invalid && forms.settings.agi.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END AGI -->\n\n <!-- START MACRO -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.macro.$touched || forms.settings.$submitted) && forms.settings.macro.$invalid}">\n <label class="control-label">{{ \'APPLICATION_MACRO\' | translate }}</label>\n <input type="text" pattern="[^,]*" name="macro" placeholder="{{ \'APPLICATION_MACRO\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[6]">\n <span data-ng-show="(forms.settings.macro.$touched || forms.settings.$submitted) && forms.settings.macro.$invalid && forms.settings.macro.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.settings.macro.$touched || forms.settings.$submitted) && forms.settings.macro.$invalid && forms.settings.macro.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END MACRO -->\n\n <!-- START GOSUB -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.gosub.$touched || forms.settings.$submitted) && forms.settings.gosub.$invalid}">\n <label class="control-label">{{ \'APPLICATION_GOSUB\' | translate }}</label>\n <input type="text" pattern="[^,]*" name="gosub" placeholder="{{ \'APPLICATION_GOSUB\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[7]">\n <span data-ng-show="(forms.settings.gosub.$touched || forms.settings.$submitted) && forms.settings.gosub.$invalid && forms.settings.gosub.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.settings.gosub.$touched || forms.settings.$submitted) && forms.settings.gosub.$invalid && forms.settings.gosub.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END GOSUB -->\n\n <!-- START RULE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.rule.$touched || forms.settings.$submitted) && forms.settings.rule.$invalid}">\n <label class="control-label">{{ \'APPLICATION_RULE\' | translate }}</label>\n <input type="text" pattern="[^,]*" name="rule" placeholder="{{ \'APPLICATION_RULE\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[8]">\n <span data-ng-show="(forms.settings.rule.$touched || forms.settings.$submitted) && forms.settings.rule.$invalid && forms.settings.rule.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.settings.rule.$touched || forms.settings.$submitted) && forms.settings.rule.$invalid && forms.settings.rule.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END RULE -->\n\n <!-- START POSITION -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.position.$touched || forms.settings.$submitted) && forms.settings.position.$invalid}">\n <label class="control-label">{{ \'APPLICATION_POSITION\' | translate }}</label>\n <input type="number" min="0" name="position" placeholder="{{ \'APPLICATION_POSITION\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[9]">\n <span data-ng-show="(forms.settings.position.$touched || forms.settings.$submitted) && forms.settings.position.$invalid && forms.settings.position.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END POSITION -->\n\n <!-- START ANSWER -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ANSWER\' | translate }}</label>\n <div class="input-group input-large">\n <label class="control-label pointer-cursor">\n <input\n bs-switch\n data-ng-model="route.Applications[selectedApp].answer"\n type="checkbox"\n switch-active="{{ alwaysSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ alwaysSwitch.onColor }}"\n switch-off-color="{{ alwaysSwitch.offColor }}"\n switch-animate="{{ alwaysSwitch.animate }}"\n switch-size="{{ alwaysSwitch.size }}"\n switch-label="{{ alwaysSwitch.label }}"\n switch-icon="{{ alwaysSwitch.icon }}"\n switch-radio-off="{{ alwaysSwitch.radioOff }}"\n switch-label-width="{{ alwaysSwitch.labelWidth }}"\n switch-handle-width="{{ alwaysSwitch.handleWidth }}">\n </label>\n </div>\n </div>\n <!-- END ANSWER -->\n\n </div>\n <div id="Playback" class="app-settings" ng-slide-down="main.app.value == \'Playback\'" lazy-render duration="1">\n <!-- START AUDIOFILE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.audiofile.$touched || forms.settings.$submitted) && forms.settings.audiofile.$invalid}">\n <label class="control-label">{{\'APPLICATION_AUDIO_FILE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="route.Applications[selectedApp].appdata[0]" name="audiofile" theme="bootstrap" required data-ng-disabled="!items.length">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n <ui-select-choices repeat="settings.soundPath+\'/\'+audio.save_name as audio in items | filter: $select.search">\n <div ng-bind-html="audio.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="items.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_SOUNDS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/sounds/list">{{\'APPLICATION_SOUNDS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.settings.audiofile.$touched || forms.settings.$submitted) && forms.settings.audiofile.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END AUDIOFILE -->\n\n <!-- START OPTIONS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid}">\n <label class="control-label">{{\'APPLICATION_OPTIONS\' | translate}}</label>\n <input type="text" name="app_options" placeholder="{{ \'APPLICATION_OPTIONS\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[1]">\n <span data-ng-show="(forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END OPTIONS -->\n\n <!-- START ANSWER -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ANSWER\' | translate }}</label>\n <div class="input-group input-large">\n <label class="control-label pointer-cursor">\n <input\n bs-switch\n data-ng-model="route.Applications[selectedApp].answer"\n type="checkbox"\n switch-active="{{ alwaysSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ alwaysSwitch.onColor }}"\n switch-off-color="{{ alwaysSwitch.offColor }}"\n switch-animate="{{ alwaysSwitch.animate }}"\n switch-size="{{ alwaysSwitch.size }}"\n switch-label="{{ alwaysSwitch.label }}"\n switch-icon="{{ alwaysSwitch.icon }}"\n switch-radio-off="{{ alwaysSwitch.radioOff }}"\n switch-label-width="{{ alwaysSwitch.labelWidth }}"\n switch-handle-width="{{ alwaysSwitch.handleWidth }}">\n </label>\n </div>\n </div>\n <!-- END ANSWER -->\n\n </div>\n <div id="Dial" class="app-settings" ng-slide-down="main.app.value == \'Dial\' && !main.app.type" lazy-render duration="1">\n <!-- START INTERFACE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.interface.$touched || forms.settings.$submitted) && forms.settings.interface.$invalid}">\n <label class="control-label">{{ \'APPLICATION_TYPE\' | translate }}/{{ \'APPLICATION_IDENTIFIER\' | translate }}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="interface" placeholder="SIP/0000" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[0]" required>\n <span data-ng-show="(forms.settings.interface.$touched || forms.settings.$submitted) && forms.settings.interface.$invalid && forms.settings.interface.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERFACE -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{ \'APPLICATION_TIMEOUT\' | translate }}</label>\n <input type="text" pattern="[0-9]+" name="timeout" placeholder="" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[1]">\n <span data-ng-show="(forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START OPTIONS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid}">\n <label class="control-label">{{ \'APPLICATION_OPTIONS\' | translate }}</label>\n <input type="text" name="app_options" placeholder="" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[2]">\n <span data-ng-show="(forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid && forms.settings.app_options.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END OPTIONS -->\n\n <!-- START URL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid}">\n <label class="control-label">{{ \'APPLICATION_URL\' | translate }}</label>\n <input type="text" name="url" placeholder="{{ \'APPLICATION_URL\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[3]">\n <span data-ng-show="(forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid && forms.settings.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END URL -->\n </div>\n <div id="internalDial" class="app-settings" ng-slide-down="main.app.value == \'Dial\' && main.app.type == \'internalDial\'" lazy-render duration="1">\n <!-- START INTERNAL DIAL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.user.$touched || forms.settings.$submitted) && forms.settings.user.$invalid}">\n <label class="control-label">{{\'APPLICATION_USER\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="route.Applications[selectedApp].appdata[0]" name="user" theme="bootstrap" required data-ng-disabled="!items.length">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="user.name as user in items | filter: $select.search">\n <div ng-bind-html="user.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.user.$touched || forms.settings.$submitted) && forms.settings.user.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERNAL DIAL -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{ \'APPLICATION_TIMEOUT\' | translate }}</label>\n <input type="text" pattern="[0-9]+" name="timeout" placeholder="" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[1]">\n <span data-ng-show="(forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START OPTIONS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid}">\n <label class="control-label">{{ \'APPLICATION_OPTIONS\' | translate }}</label>\n <input type="text" name="app_options" placeholder="" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[2]">\n <span data-ng-show="(forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid && forms.settings.app_options.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END OPTIONS -->\n\n <!-- START URL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid}">\n <label class="control-label">{{ \'APPLICATION_URL\' | translate }}</label>\n <input type="text" name="url" placeholder="{{ \'APPLICATION_URL\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[3]">\n <span data-ng-show="(forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid && forms.settings.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END URL -->\n\n </div>\n <div id="Dial" class="app-settings" ng-slide-down="main.app.value == \'Dial\' && main.app.type == \'externalDial\'" lazy-render duration="1">\n\n <!-- START TRUNK -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.trunk.$touched || forms.info.$submitted) && forms.info.trunk.$invalid}">\n <label class="control-label">{{\'APPLICATION_TRUNK\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="route.Applications[selectedApp].appdata[0]" name="trunk" theme="bootstrap" required data-ng-disabled="!items.length">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="trunk.name as trunk in items | filter: $select.search">\n <div ng-bind-html="trunk.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="items.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_TRUNKS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/trunks/list">{{\'APPLICATION_TRUNKS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.info.trunk.$touched || forms.info.$submitted) && forms.info.trunk.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TRUNK -->\n\n <!-- START PHONE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.phone.$touched || forms.settings.$submitted) && forms.settings.phone.$invalid}">\n <label class="control-label">{{ \'APPLICATION_PHONE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="phone" placeholder="{{\'APPLICATION_PHONE\' | translate}}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[1]">\n <span data-ng-show="(forms.settings.phone.$touched || forms.settings.$submitted) && forms.settings.phone.$invalid && forms.settings.phone.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PHONE -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{ \'APPLICATION_TIMEOUT\' | translate }}</label>\n <input type="text" pattern="[0-9]+" name="timeout" placeholder="" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[2]">\n <span data-ng-show="(forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START OPTIONS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid}">\n <label class="control-label">{{ \'APPLICATION_OPTIONS\' | translate }}</label>\n <input type="text" name="app_options" placeholder="" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[3]">\n <span data-ng-show="(forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid && forms.settings.app_options.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END OPTIONS -->\n\n <!-- START URL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid}">\n <label class="control-label">{{ \'APPLICATION_URL\' | translate }}</label>\n <input type="text" name="url" placeholder="{{ \'APPLICATION_URL\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[4]">\n <span data-ng-show="(forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid && forms.settings.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END URL -->\n </div>\n <div id="RingGroup" class="app-settings" ng-slide-down="main.app.value == \'Dial\' && main.app.type == \'RingGroup\'" lazy-render duration="1">\n <!-- START ITEMS -->\n <input type="hidden" name="items" placeholder="{{ \'APPLICATION_URL\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[0]" data-ng-init="initRingGroup()">\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.items.$touched || forms.settings.$submitted) && forms.settings.items.$invalid}">\n <label class="control-label">{{\'APPLICATION_ITEMS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <div class="col-md-12" id="multi-select-user-by-role"></div>\n <span data-ng-show="(forms.settings.items.$touched || forms.settings.$submitted) && forms.settings.items.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END ITEMS -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{ \'APPLICATION_TIMEOUT\' | translate }}</label>\n <input type="text" pattern="[0-9]+" name="timeout" placeholder="" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[1]" data-ng-init="application.appdata[1] = null">\n <span data-ng-show="(forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START OPTIONS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid}">\n <label class="control-label">{{ \'APPLICATION_OPTIONS\' | translate }}</label>\n <input type="text" name="app_options" placeholder="" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[2]" data-ng-init="application.appdata[2] = null">\n <span data-ng-show="(forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid && forms.settings.app_options.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END OPTIONS -->\n\n <!-- START URL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid}">\n <label class="control-label">{{ \'APPLICATION_URL\' | translate }}</label>\n <input type="text" name="url" placeholder="{{ \'APPLICATION_URL\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[3]" data-ng-init="application.appdata[3] = null">\n <span data-ng-show="(forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid && forms.settings.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END URL -->\n </div>\n <div id="AGI" class="app-settings" ng-slide-down="main.app.value == \'AGI\'" lazy-render duration="1">\n <!-- START PROJECT -->\n <input type="hidden" name="url" placeholder="{{ \'APPLICATION_URL\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[0]" data-ng-init="route.Applications[selectedApp].appdata[0] = \'agi://127.0.0.1/square\'">\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.project.$touched || forms.settings.$submitted) && forms.settings.project.$invalid}">\n <label class="control-label">{{\'APPLICATION_PROJECT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="route.Applications[selectedApp].appdata[1]" name="project" theme="bootstrap" required data-ng-disabled="!items.length">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="project.name as project in items | filter: $select.search">\n <div ng-bind-html="project.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="items.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_PROJECTS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/square/projects/list">{{\'APPLICATION_PROJECTS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.settings.project.$touched || forms.settings.$submitted) && forms.settings.project.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PROJECT -->\n\n <!-- START URL -->\n <!-- <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid}">\n <label class="control-label">{{ \'APPLICATION_URL\' | translate }}</label>\n <div class="input-group">\n <input type="text" name="url" placeholder="agi://127.0.0.1/square" class="form-control" data-ng-model="application.url" data-ng-disabled="!application.urlEnabled" data-ng-required="application.urlEnabled" rpattern="/^agi:\\/\\/(?:[0-9]{1,3}\\.){3}[0-9]{1,3}\\/square$/">\n <span class="input-group-addon">\n <input type="checkbox" data-ng-model="application.urlEnabled">\n </span>\n </div>\n <span data-ng-show="(forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid && forms.settings.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid && forms.settings.url.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div> -->\n <!-- END URL -->\n\n </div>\n <div id="Goto" class="app-settings" ng-slide-down="main.app.value == \'Goto\'" lazy-render duration="1">\n <!-- START CONTEXT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.context.$touched || forms.settings.$submitted) && forms.settings.context.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONTEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="route.Applications[selectedApp].appdata[0]" name="context" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="context.name as context in items | filter: $select.search">\n <div ng-bind-html="context.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.context.$touched || forms.settings.$submitted) && forms.settings.context.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CONTEXT -->\n\n <!-- START EXTENSION -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.extension.$touched || forms.settings.$submitted) && forms.settings.extension.$invalid}">\n <label class="control-label">{{ \'APPLICATION_EXTENSION\' | translate }}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="extension" placeholder="" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[1]" required>\n <span data-ng-show="(forms.settings.extension.$touched || forms.settings.$submitted) && forms.settings.extension.$invalid && forms.settings.extension.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END EXTENSION -->\n\n <!-- START PRIORITY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.priority.$touched || forms.settings.$submitted) && forms.settings.priority.$invalid}">\n <label class="control-label">{{ \'APPLICATION_PRIORITY\' | translate }}<span class="required" aria-required="true">*</span></label>\n <input type="text" pattern="[0-9]+" name="priority" placeholder="" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[2]" required>\n <span data-ng-show="(forms.settings.priority.$touched || forms.settings.$submitted) && forms.settings.priority.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PRIORITY -->\n </div>\n <div id="Hangup" class="app-settings" ng-slide-down="main.app.value == \'Hangup\'" lazy-render duration="1">\n <!-- START HANGUPCAUSE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.hangupCause.$touched || forms.settings.$submitted) && forms.settings.hangupCause.$invalid}">\n <label class="control-label">{{\'APPLICATION_HANGUP_CAUSE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="route.Applications[selectedApp].appdata[0]" theme="bootstrap" name="hangupCause" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="hangupCause.value as hangupCause in $application.hangupCauses | filter: $select.search">\n {{hangupCause.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.hangupCause.$touched || forms.settings.$submitted) && forms.settings.hangupCause.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END HANGUPCAUSE -->\n </div>\n <div id="Set" class="app-settings" ng-slide-down="main.app.value == \'Set\' && !main.app.type" lazy-render duration="1">\n <!-- START VARIABLE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.variable.$touched || forms.settings.$submitted) && forms.settings.variable.$invalid}">\n <label class="control-label">{{ \'APPLICATION_VARIABLE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="variable" placeholder="" class="form-control" data-ng-model="application.variable" data-ng-change="updateSetAppdataSettings()" required>\n <span data-ng-show="(forms.settings.variable.$touched || forms.settings.$submitted) && forms.settings.variable.$invalid && forms.settings.variable.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END VARIABLE -->\n\n <!-- START VARVALUE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.varvalue.$touched || forms.settings.$submitted) && forms.settings.varvalue.$invalid}">\n <label class="control-label">{{ \'APPLICATION_VALUE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="varvalue" placeholder="" class="form-control" data-ng-model="application.value" data-ng-change="updateSetAppdataSettings()" required>\n <span data-ng-show="(forms.settings.varvalue.$touched || forms.settings.$submitted) && forms.settings.varvalue.$invalid && forms.settings.varvalue.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END VARVALUE -->\n </div>\n <div id="Custom" class="app-settings" ng-slide-down="main.app.type == \'custom\'" lazy-render duration="1">\n\n <!-- START CUSTOMAPP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.customApp.$touched || forms.settings.$submitted) && forms.settings.customApp.$invalid}">\n <label class="control-label">{{ \'APPLICATION_CUSTOM_APP\' | translate }}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="customApp" placeholder="{{ \'APPLICATION_CUSTOM_APP\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].app" required>\n <span data-ng-show="(forms.settings.customApp.$touched || forms.settings.$submitted) && forms.settings.customApp.$invalid && forms.settings.customApp.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CUSTOMAPP -->\n\n <!-- START APPDATA -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.appdata.$touched || forms.settings.$submitted) && forms.settings.appdata.$invalid}">\n <label class="control-label">{{ \'APPLICATION_ARGUMENTS\' | translate }}</label>\n <input type="text" name="appdata" placeholder="{{ \'APPLICATION_ARGUMENTS\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[0]">\n <span data-ng-show="(forms.settings.appdata.$touched || forms.settings.$submitted) && forms.settings.appdata.$invalid && forms.settings.appdata.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END APPDATA -->\n </div>\n <div id="Voicemail" class="app-settings" ng-slide-down="main.app.value == \'Voicemail\'" lazy-render duration="1">\n <!-- START VOICEMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.voicemail.$touched || forms.settings.$submitted) && forms.settings.voicemail.$invalid}">\n <label class="control-label">{{ \'APPLICATION_MAILBOX\' | translate }}@{{ \'APPLICATION_CONTEXT\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="route.Applications[selectedApp].appdata[0]" theme="bootstrap" name="voicemail" required data-ng-disabled="!items.length">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.mailbox}}</ui-select-match>\n <ui-select-choices repeat="mailbox.mailbox+\'@\'+mailbox.context as mailbox in items | filter: $select.search">\n <div ng-bind-html="mailbox.mailbox | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="items.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_VOICEMAILS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/channels/voice/voicemails/list">{{\'APPLICATION_VOICEMAILS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.settings.voicemail.$touched || forms.settings.$submitted) && forms.settings.voicemail.$invalid && forms.settings.voicemail.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END VOICEMAIL -->\n\n <!-- START OPTIONS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid}">\n <label class="control-label">{{\'APPLICATION_OPTIONS\' | translate}}</label>\n <input type="text" name="app_options" placeholder="{{ \'APPLICATION_OPTIONS\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[1]">\n </div>\n <!-- END OPTIONS -->\n\n </div>\n\n <div id="videoOn" class="app-settings" ng-slide-down="main.app.value == \'Set\' && main.app.type == \'videoOn\'" lazy-render duration="1">\n <!-- START DOMAIN -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.domain.$touched || forms.settings.$submitted) && forms.settings.domain.$invalid}">\n <label class="control-label">{{ \'APPLICATION_DOMAIN\' | translate }}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="domain" placeholder="" class="form-control" data-ng-model="application.domain" data-ng-change="updateVideoOnAppdataSettings()" required>\n <span data-ng-show="(forms.settings.domain.$touched || forms.settings.$submitted) && forms.settings.domain.$invalid && forms.settings.domain.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END DOMAIN -->\n\n <!-- START THEME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.theme.$touched || forms.settings.$submitted) && forms.settings.theme.$invalid}">\n <label class="control-label">{{ \'APPLICATION_THEME\' | translate }}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="theme" placeholder="" class="form-control" data-ng-model="application.theme" data-ng-change="updateVideoOnAppdataSettings()" required>\n <span data-ng-show="(forms.settings.theme.$touched || forms.settings.$submitted) && forms.settings.theme.$invalid && forms.settings.theme.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END THEME -->\n </div>\n <button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </form>\n</wz-step>\n<wz-step title="{{\'APPLICATION_INTERVAL\' | translate}}" canexit="formValidation(forms.interval.IntervalId.$valid || forms.interval.hasOwnProperty(\'t_from\') || forms.interval.intType.$modelValue === \'always\')">\n <form name="forms.interval" novalidate>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n <!-- START INTERVAL_TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.interval.intType.$touched || forms.interval.$submitted) && forms.interval.intType.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERVAL_TYPE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="interval.intType" theme="bootstrap" name="intType" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="intType.value as intType in $application.intTypes | filter: $select.search">\n {{intType.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.interval.intType.$touched || forms.interval.$submitted) && forms.interval.intType.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVAL_TYPE -->\n <div id="customInterval" class="app-settings" ng-slide-down="interval.intType == \'custom\'" lazy-render duration="1">\n <!-- START TIME -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n <div class="input-group input-large">\n <fieldset class="pull-left" ng-disabled="interval.alwaysTime"><uib-timepicker name="t_from" data-ng-model="interval.t_from" show-meridian="false" show-spinners="false"></uib-timepicker></fieldset>\n <div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n <fieldset ng-disabled="interval.alwaysTime"><uib-timepicker name="t_to" data-ng-model="interval.t_to" show-meridian="false" show-spinners="false"></uib-timepicker></fieldset>\n </div>\n </div>\n <!-- END TIME -->\n\n <!-- <label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="interval.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label> -->\n <!-- START ALWAYS -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ALWAYS\' | translate }}</label>\n <div class="input-group input-large">\n <label class="control-label pointer-cursor">\n <input\n bs-switch\n data-ng-model="interval.alwaysTime"\n type="checkbox"\n switch-active="{{ alwaysSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ alwaysSwitch.onColor }}"\n switch-off-color="{{ alwaysSwitch.offColor }}"\n switch-animate="{{ alwaysSwitch.animate }}"\n switch-size="{{ alwaysSwitch.size }}"\n switch-label="{{ alwaysSwitch.label }}"\n switch-icon="{{ alwaysSwitch.icon }}"\n switch-radio-off="{{ alwaysSwitch.radioOff }}"\n switch-label-width="{{ alwaysSwitch.labelWidth }}"\n switch-handle-width="{{ alwaysSwitch.handleWidth }}">\n </label>\n </div>\n </div>\n <!-- END ALWAYS -->\n\n <!-- START WEEKDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="interval.wd_from" theme="bootstrap" name="wd_from">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{weekDay.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="interval.wd_to" theme="bootstrap" name="wd_to">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{weekDay.name | translate}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END WEEKDAY -->\n\n <!-- START MONTHDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="interval.md_from" theme="bootstrap" name="md_from">\n <ui-select-match>{{$select.selected === \'always\' ? \'APPLICATION_ALWAYS\' : $select.selected | translate}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search">\n {{monthDay === \'always\' ? \'APPLICATION_ALWAYS\' : monthDay | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="interval.md_to" theme="bootstrap" name="md_to">\n <ui-select-match>{{$select.selected === \'always\' ? \'APPLICATION_ALWAYS\' : $select.selected | translate}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search">\n {{monthDay === \'always\' ? \'APPLICATION_ALWAYS\' : monthDay | translate}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTHDAY -->\n\n <!-- START MONTH -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="interval.m_from" theme="bootstrap" name="m_from">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{month.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="interval.m_to" theme="bootstrap" name="m_to">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{month.name | translate}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTH -->\n </div>\n\n <div id="customInterval" class="app-settings" ng-slide-down="interval.intType == \'list\'" lazy-render duration="1">\n\n <!-- START INTERVALS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.interval.IntervalId.$touched || forms.interval.$submitted) && forms.interval.IntervalId.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERVALS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="interval.IntervalId" theme="bootstrap" name="IntervalId" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="interval.id as interval in Intervals | filter: $select.search">\n {{interval.name | translate}}\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="Intervals.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_INTERVAL_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/intervals/list">{{\'APPLICATION_INTERVALS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.interval.IntervalId.$touched || forms.interval.$submitted) && forms.interval.IntervalId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVALS -->\n\n </div>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </form>\n</wz-step>\n\n<wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n</wz-step>\n</wizard>\n</div>\n</div>\n<!-- END Portlet PORTLET-->\n</div>\n</div>\n<!-- END PAGE CONTENT-->\n'), +a.put("app/channels/voice/voicemail/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-earphones-alt"></i>\n <a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-envelope-letter"></i>\n <a href="#">{{ \'APPLICATION_VOICEMAILS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-envelope-letter font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_VOICEMAILS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <a class="btn green-jungle" href="/channels/voice/voicemails/wizard">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_VOICEMAIL\' | translate }}\n </a>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/voice/voicemail/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getVoicemail()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-earphones-alt"></i>\n <a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-envelope-letter"></i>\n <a href="/channels/voice/voicemails/list">{{ \'APPLICATION_VOICEMAILS\' | translate }}</a>\n <i data-ng-show="voicemail" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="voicemail">\n <a href="#">{{voicemail.mailbox}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET main.channels -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/voicemail.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{voicemail.mailbox}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.channels.voice.voicemails.view.settings\')}">\n <a data-ng-href="/channels/voice/voicemails/view/{{voicemail.uniqueid}}/settings"><i class="icon-settings"></i>{{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.channels.voice.voicemails.view.messages\')}">\n <a data-ng-href="/channels/voice/voicemails/view/{{voicemail.uniqueid}}/messages"><i class="icon-speech"></i>{{ \'APPLICATION_MESSAGES\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET main.channels -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/voice/voicemail/view/view.messages.html",'<div class="row" data-ng-init="getMessages()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_MESSAGES\' | translate}}</span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns data-ng-if="gridOptions" ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/voice/voicemail/view/view.settings.html",'<div class="row" data-ng-init="getContexts()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_VOICEMAIL\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{ \'APPLICATION_ADVANCED\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateVoiceVoicemail()" novalidate>\n\n <!-- START FULLNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.fullname.$invalid}">\n <label class="control-label">{{\'APPLICATION_FULLNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="fullname" placeholder="{{\'APPLICATION_FULLNAME\' | translate}}" class="form-control" data-ng-model="voicemail.fullname" required/>\n <span data-ng-show="forms.general.$submitted && forms.general.fullname.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END FULLNAME -->\n\n <!-- START EMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.email.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="email" name="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" class="form-control" data-ng-model="voicemail.email" required/>\n <span data-ng-show="forms.general.$submitted && forms.general.host.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END EMAIL -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_NEW_PASSWORD\' | translate}}</label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_NEW_PASSWORD\' | translate}}" class="form-control" data-ng-model="voicemail.password" />\n <span data-ng-show="forms.general.$submitted && forms.general.password.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START CONFIRM PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.rpassword.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}</label>\n <input type="password" name="rpassword" placeholder="{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}" class="form-control" data-ng-model="voicemail.rpassword" nx-equal="voicemail.password"/>\n <span data-ng-show="forms.general.$submitted && (forms.general.rpassword.$invalid || forms.general.rpassword.$invalid)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_PASSWORD\' | translate}}.\n </span>\n </div>\n <!-- END CONFIRM PASSWORD -->\n\n <!-- START MAILBOX -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.mailbox.$invalid}">\n <label class="control-label">{{\'APPLICATION_MAILBOX\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="mailbox" placeholder="{{\'APPLICATION_MAILBOX\' | translate}}" class="form-control" data-ng-model="voicemail.mailbox" required readonly/>\n <span data-ng-show="forms.general.$submitted && forms.general.mailbox.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MAILBOX -->\n\n <!-- START CONTEXT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.context.$touched || forms.general.$submitted) && forms.general.context.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONTEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="voicemail.context" name="context" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="context.name as context in voiceContexts | filter: $select.search">\n <div ng-bind-html="context.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_CONTEXT\' | translate }}\n </span>\n <span data-ng-show="(forms.general.context.$touched || forms.general.$submitted) && forms.general.context.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CONTEXT -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n <!-- ADVANCED TAB -->\n <div class="tab-pane" id="tab_1_2">\n <form name="forms.advanced" data-ng-submit="forms.general.$valid && forms.advanced.$valid && updateVoiceVoicemail()" novalidate>\n\n <!-- START TIMEZONE -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.advanced.$submitted && forms.advanced.tz.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEZONE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="mailbox" placeholder="{{\'APPLICATION_TIMEZONE\' | translate}}" class="form-control" data-ng-model="voicemail.tz" required/>\n <span data-ng-show="forms.advanced.$submitted && forms.advanced.tz.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEZONE -->\n\n <!-- START ATTACH -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.attach.$touched || forms.advanced.$submitted) && forms.advanced.attach.$invalid}">\n <label class="control-label">{{\'APPLICATION_ATTACH\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="voicemail.attach"\n type="checkbox"\n switch-active="{{ switch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ switch.onColor }}"\n switch-off-color="{{ switch.offColor }}"\n switch-animate="{{ switch.animate }}"\n switch-size="{{ switch.size }}"\n switch-label="{{ switch.label }}"\n switch-icon="{{ switch.icon }}"\n switch-radio-off="{{ switch.radioOff }}"\n switch-label-width="{{ switch.labelWidth }}"\n switch-handle-width="{{ switch.handleWidth }}"\n ng-true-value="\'yes\'"\n ng-false-value="\'no\'">\n </div>\n <!-- END ATTACH -->\n\n <!-- START ENVELOPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.envelope.$touched || forms.advanced.$submitted) && forms.advanced.envelope.$invalid}">\n <label class="control-label">{{\'APPLICATION_ENVELOPE\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="voicemail.envelope"\n type="checkbox"\n switch-active="{{ switch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ switch.onColor }}"\n switch-off-color="{{ switch.offColor }}"\n switch-animate="{{ switch.animate }}"\n switch-size="{{ switch.size }}"\n switch-label="{{ switch.label }}"\n switch-icon="{{ switch.icon }}"\n switch-radio-off="{{ switch.radioOff }}"\n switch-label-width="{{ switch.labelWidth }}"\n switch-handle-width="{{ switch.handleWidth }}"\n ng-true-value="\'yes\'"\n ng-false-value="\'no\'">\n </div>\n <!-- END ENVELOPE -->\n\n <!-- START DELETE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.delete.$touched || forms.advanced.$submitted) && forms.advanced.delete.$invalid}">\n <label class="control-label">{{\'APPLICATION_DELETE\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="voicemail.delete"\n type="checkbox"\n switch-active="{{ switch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ switch.onColor }}"\n switch-off-color="{{ switch.offColor }}"\n switch-animate="{{ switch.animate }}"\n switch-size="{{ switch.size }}"\n switch-label="{{ switch.label }}"\n switch-icon="{{ switch.icon }}"\n switch-radio-off="{{ switch.radioOff }}"\n switch-label-width="{{ switch.labelWidth }}"\n switch-handle-width="{{ switch.handleWidth }}"\n ng-true-value="\'yes\'"\n ng-false-value="\'no\'">\n </div>\n <!-- END DELETE -->\n\n <!-- START EMAIL_BODY -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_EMAIL_BODY\' | translate}}</label>\n <textarea type="text" name="emailbody" placeholder="{{\'APPLICATION_EMAIL_BODY\' | translate}}" class="form-control" data-ng-model="voicemail.emailbody"></textarea>\n </div>\n <!-- END EMAIL_BODY -->\n\n <!-- START EMAIL_SUBJECT -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_EMAIL_SUBJECT\' | translate}}</label>\n <textarea type="text" name="emailsubject" placeholder="{{\'APPLICATION_EMAIL_SUBJECT\' | translate}}" class="form-control" data-ng-model="voicemail.emailsubject"></textarea>\n </div>\n <!-- END EMAIL_SUBJECT -->\n\n <!-- START MAX_SECONDS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.maxsecs.$touched || forms.advanced.$submitted) && forms.advanced.maxsecs.$invalid}">\n <label class="control-label">{{\'APPLICATION_MAX_SECONDS\' | translate}}</label>\n <input type="number" min="0" name="maxsecs" placeholder="{{\'APPLICATION_MAX_SECONDS\' | translate}}" class="form-control" data-ng-model="voicemail.maxsecs" required/>\n <span data-ng-show="(forms.advanced.maxsecs.$touched || forms.advanced.$submitted) && forms.advanced.maxsecs.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MAX_SECONDS -->\n\n <!-- START MAX_MESSAGES -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.maxmsg.$touched || forms.advanced.$submitted) && forms.advanced.maxmsg.$invalid}">\n <label class="control-label">{{\'APPLICATION_MAX_MESSAGES\' | translate}}</label>\n <input type="number" min="0" name="maxmsg" placeholder="{{\'APPLICATION_MAX_MESSAGES\' | translate}}" class="form-control" data-ng-model="voicemail.maxmsg" required/>\n <span data-ng-show="(forms.advanced.maxmsg.$touched || forms.advanced.$submitted) && forms.advanced.maxmsg.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MAX_MESSAGES -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ADVANCED TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/voice/voicemail/wizard/wizard.html",'<div class="col-md-12" data-ng-init="initWizard()">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-earphones-alt"></i>\n <a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-envelope-letter"></i>\n <a href="/channels/voice/voicemails/list">{{ \'APPLICATION_VOICEMAILS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-options"></i>\n <a href="#">{{ \'APPLICATION_WIZARD\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered" data-ng-init="getFirstFreeMailbox()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-envelope-letter font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_VOICEMAIL\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_GENERAL\' | translate}}" canexit="exitValidation(form.general.$valid)">\n <form name="form.general" novalidate>\n\n <!-- START FULLNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': form.general.$submitted && form.general.fullname.$invalid}">\n <label class="control-label">{{\'APPLICATION_FULLNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="fullname" placeholder="{{\'APPLICATION_FULLNAME\' | translate}}" class="form-control" data-ng-model="item.fullname" required/>\n <span data-ng-show="form.general.$submitted && form.general.fullname.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END FULLNAME -->\n\n <!-- START EMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': form.general.$submitted && form.general.email.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="email" name="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" class="form-control" data-ng-model="item.email" required/>\n <span data-ng-show="form.general.$submitted && form.general.host.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END EMAIL -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': form.general.$submitted && form.general.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.password" required/>\n <span data-ng-show="form.general.$submitted && form.general.password.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START CONFIRM PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': form.general.$submitted && form.general.rpassword.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="rpassword" placeholder="{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.rpassword" nx-equal="item.password" required/>\n <span data-ng-show="form.general.$submitted && (form.general.rpassword.$invalid || form.general.rpassword.$invalid)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_PASSWORD\' | translate}}.\n </span>\n </div>\n <!-- END CONFIRM PASSWORD -->\n\n <!-- START MAILBOX -->\n <div class="form-group" data-ng-class="{\'has-error\': form.general.$submitted && form.general.mailbox.$invalid}">\n <label class="control-label">{{\'APPLICATION_MAILBOX\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="mailbox" placeholder="{{\'APPLICATION_MAILBOX\' | translate}}" class="form-control" data-ng-model="item.mailbox" required readonly/>\n <span data-ng-show="form.general.$submitted && form.general.mailbox.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MAILBOX -->\n\n <!-- START ATTACH -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.attach.$touched || forms.general.$submitted) && forms.general.attach.$invalid}">\n <label class="control-label">{{\'APPLICATION_ATTACH\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="item.attach"\n type="checkbox"\n switch-active="{{ switch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ switch.onColor }}"\n switch-off-color="{{ switch.offColor }}"\n switch-animate="{{ switch.animate }}"\n switch-size="{{ switch.size }}"\n switch-label="{{ switch.label }}"\n switch-icon="{{ switch.icon }}"\n switch-radio-off="{{ switch.radioOff }}"\n switch-label-width="{{ switch.labelWidth }}"\n switch-handle-width="{{ switch.handleWidth }}"\n ng-true-value="\'yes\'"\n ng-false-value="\'no\'">\n </div>\n <!-- END ATTACH -->\n\n <button class="btn green-haze" type="submit" ng-click="next()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END PORTLET-->\n</div>\n'),a.put("app/contactmanager/company/list/create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_COMPANY\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="forms.company" novalidate>\n <div class="row">\n <div class="col-md-6">\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.company.name.$touched || forms.company.$submitted) && forms.company.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(forms.cmopany.name.$touched || forms.company.$submitted) && forms.company.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START VAT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.company.vat.$touched || forms.company.$submitted) && forms.company.vat.$invalid}">\n <label class="control-label">{{\'APPLICATION_VAT\' | translate}}</label>\n <input type="text" name="vat" placeholder="{{\'APPLICATION_VAT\' | translate}}" class="form-control" data-ng-model="item.vat"/>\n <span data-ng-show="(forms.cmopany.vat.$touched || forms.company.$submitted) && forms.company.vat.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END VAT -->\n\n <!-- START COMPANYID -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.company.companyId.$touched || forms.company.$submitted) && forms.company.companyId.$invalid}">\n <label class="control-label">{{\'APPLICATION_COMPANY_ID\' | translate}}</label>\n <input type="text" name="companyId" placeholder="{{\'APPLICATION_COMPANY_ID\' | translate}}" class="form-control" data-ng-model="item.companyId"/>\n <span data-ng-show="(forms.cmopany.companyId.$touched || forms.company.$submitted) && forms.company.companyId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END COMPANYID -->\n\n <!-- START WEBSITE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.company.website.$touched || forms.company.$submitted) && forms.company.website.$invalid}">\n <label class="control-label">{{\'APPLICATION_WEBSITE\' | translate}}</label>\n <input type="text" name="website" placeholder="{{\'APPLICATION_WEBSITE\' | translate}}" class="form-control" data-ng-model="item.website"/>\n <span data-ng-show="(forms.cmopany.website.$touched || forms.company.$submitted) && forms.company.website.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END WEBSITE -->\n\n <!-- START EMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.company.email.$touched || forms.company.$submitted) && forms.company.email.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}</label>\n <input type="email" name="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" class="form-control" data-ng-model="item.email"/>\n <span data-ng-show="(forms.cmopany.email.$touched || forms.company.$submitted) && forms.company.email.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END EMAIL -->\n\n </div>\n <div class="col-md-6">\n <!-- START PHONE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.company.phone.$touched || forms.company.$submitted) && forms.company.phone.$invalid}">\n <label class="control-label">{{\'APPLICATION_PHONE\' | translate}}</label>\n <input type="text" name="phone" placeholder="{{\'APPLICATION_PHONE\' | translate}}" class="form-control" data-ng-model="item.phone"/>\n <span data-ng-show="(forms.cmopany.phone.$touched || forms.company.$submitted) && forms.company.phone.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PHONE -->\n\n <!-- START FAX -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.company.fax.$touched || forms.company.$submitted) && forms.company.fax.$invalid}">\n <label class="control-label">{{\'APPLICATION_FAX\' | translate}}</label>\n <input type="text" name="fax" placeholder="{{\'APPLICATION_FAX\' | translate}}" class="form-control" data-ng-model="item.fax"/>\n <span data-ng-show="(forms.cmopany.fax.$touched || forms.company.$submitted) && forms.company.fax.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END FAX -->\n\n <!-- START TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.company.type.$touched || forms.company.$submitted) && forms.company.type.$invalid}">\n <label class="control-label">{{\'APPLICATION_TYPE\' | translate}}</label>\n <input type="text" name="type" placeholder="{{\'APPLICATION_TYPE\' | translate}}" class="form-control" data-ng-model="item.type"/>\n <span data-ng-show="(forms.cmopany.type.$touched || forms.company.$submitted) && forms.company.type.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TYPE -->\n\n <!-- START DOMAIN -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.company.emailDomain.$touched || forms.company.$submitted) && forms.company.emailDomain.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL_DOMAIN\' | translate}}</label>\n <input type="text" name="domain" placeholder="{{\'APPLICATION_EMAIL_DOMAIN\' | translate}}" class="form-control" data-ng-model="item.emailDomain"/>\n <span data-ng-show="(forms.cmopany.emailDomain.$touched || forms.company.$submitted) && forms.company.emailDomain.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END DOMAIN -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n </div>\n</div>\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="ok()" ng-disabled="forms.company.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'), +a.put("app/contactmanager/company/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-users"></i>\n <a href="#">{{ \'APPLICATION_CONTACT_MANAGER\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-briefcase"></i>\n <a href="/contactmanager/companies/list">{{ \'APPLICATION_COMPANIES\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-briefcase font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_COMPANIES\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <button class="btn green-jungle " ng-click="create()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_COMPANY\' | translate }}\n </button>\n </div>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/contactmanager/company/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getCompany()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-users"></i>\n <a href="#">{{ \'APPLICATION_CONTACT_MANAGER\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-briefcase"></i>\n <a href="/contactmanager/companies/list">{{ \'APPLICATION_COMPANIES\' | translate }}</a>\n <i data-ng-show="company" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="company">\n <a href="#">{{company.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/company.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{company.name}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.contactmanager.companies.view.settings\')}">\n <a data-ng-href="/contactmanager/companies/view/{{company.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/contactmanager/company/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_COMPANY\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{ \'APPLICATION_ADDRESS\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_3" data-toggle="tab">{{ \'APPLICATION_SHIPMENT_ADDRESS\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateCompany()" novalidate>\n <div class="row">\n <div class="col-md-6">\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="company.name" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START VAT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.vat.$touched || forms.general.$submitted) && forms.general.vat.$invalid}">\n <label class="control-label">{{\'APPLICATION_VAT\' | translate}}</label>\n <input type="text" name="vat" placeholder="{{\'APPLICATION_VAT\' | translate}}" class="form-control" data-ng-model="company.vat"/>\n <span data-ng-show="(forms.cmopany.vat.$touched || forms.general.$submitted) && forms.general.vat.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END VAT -->\n\n <!-- START COMPANYID -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.companyId.$touched || forms.general.$submitted) && forms.general.companyId.$invalid}">\n <label class="control-label">{{\'APPLICATION_COMPANY_ID\' | translate}}</label>\n <input type="text" name="companyId" placeholder="{{\'APPLICATION_COMPANY_ID\' | translate}}" class="form-control" data-ng-model="company.companyId"/>\n <span data-ng-show="(forms.cmopany.companyId.$touched || forms.general.$submitted) && forms.general.companyId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END COMPANYID -->\n\n <!-- START WEBSITE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.website.$touched || forms.general.$submitted) && forms.general.website.$invalid}">\n <label class="control-label">{{\'APPLICATION_WEBSITE\' | translate}}</label>\n <input type="text" name="website" placeholder="{{\'APPLICATION_WEBSITE\' | translate}}" class="form-control" data-ng-model="company.website"/>\n <span data-ng-show="(forms.cmopany.website.$touched || forms.general.$submitted) && forms.general.website.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END WEBSITE -->\n\n <!-- START EMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.email.$touched || forms.general.$submitted) && forms.general.email.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}</label>\n <input type="email" name="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" class="form-control" data-ng-model="company.email"/>\n <span data-ng-show="(forms.cmopany.email.$touched || forms.general.$submitted) && forms.general.email.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END EMAIL -->\n </div>\n <div class="col-md-6">\n <!-- START PHONE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.phone.$touched || forms.general.$submitted) && forms.general.phone.$invalid}">\n <label class="control-label">{{\'APPLICATION_PHONE\' | translate}}</label>\n <input type="text" name="phone" placeholder="{{\'APPLICATION_PHONE\' | translate}}" class="form-control" data-ng-model="company.phone"/>\n <span data-ng-show="(forms.cmopany.phone.$touched || forms.general.$submitted) && forms.general.phone.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PHONE -->\n\n <!-- START FAX -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.fax.$touched || forms.general.$submitted) && forms.general.fax.$invalid}">\n <label class="control-label">{{\'APPLICATION_FAX\' | translate}}</label>\n <input type="text" name="fax" placeholder="{{\'APPLICATION_FAX\' | translate}}" class="form-control" data-ng-model="company.fax"/>\n <span data-ng-show="(forms.cmopany.fax.$touched || forms.general.$submitted) && forms.general.fax.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END FAX -->\n\n <!-- START TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.type.$touched || forms.general.$submitted) && forms.general.type.$invalid}">\n <label class="control-label">{{\'APPLICATION_TYPE\' | translate}}</label>\n <input type="text" name="type" placeholder="{{\'APPLICATION_TYPE\' | translate}}" class="form-control" data-ng-model="company.type"/>\n <span data-ng-show="(forms.cmopany.type.$touched || forms.general.$submitted) && forms.general.type.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TYPE -->\n\n <!-- START DOMAIN -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.emailDomain.$touched || forms.general.$submitted) && forms.general.emailDomain.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL_DOMAIN\' | translate}}</label>\n <input type="text" name="domain" placeholder="{{\'APPLICATION_EMAIL_DOMAIN\' | translate}}" class="form-control" data-ng-model="company.emailDomain"/>\n <span data-ng-show="(forms.cmopany.emailDomain.$touched || forms.general.$submitted) && forms.general.emailDomain.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END DOMAIN -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="company.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n </div>\n </div>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ADVANCED TAB -->\n <div class="tab-pane" id="tab_1_2">\n <form name="forms.address" data-ng-submit="forms.address.$valid && updateCompany()" novalidate>\n <!-- START STREET -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.address.street.$touched || forms.address.$submitted) && forms.address.street.$invalid}">\n <label class="control-label">{{\'APPLICATION_STREET\' | translate}}</label>\n <input type="text" name="street" placeholder="{{\'APPLICATION_STREET\' | translate}}" class="form-control" data-ng-model="company.street"/>\n <span data-ng-show="(forms.address.street.$touched || forms.address.$submitted) && forms.address.street.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END STREET -->\n\n <!-- START POSTALCODE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.address.postalCode.$touched || forms.address.$submitted) && forms.address.postalCode.$invalid}">\n <label class="control-label">{{\'APPLICATION_POSTALCODE\' | translate}}</label>\n <input type="text" name="postalCode" placeholder="{{\'APPLICATION_POSTALCODE\' | translate}}" class="form-control" data-ng-model="company.postalCode"/>\n <span data-ng-show="(forms.address.postalCode.$touched || forms.address.$submitted) && forms.address.postalCode.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END POSTALCODE -->\n\n <!-- START CITY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.address.city.$touched || forms.address.$submitted) && forms.address.city.$invalid}">\n <label class="control-label">{{\'APPLICATION_CITY\' | translate}}</label>\n <input type="text" name="city" placeholder="{{\'APPLICATION_CITY\' | translate}}" class="form-control" data-ng-model="company.city"/>\n <span data-ng-show="(forms.address.city.$touched || forms.address.$submitted) && forms.address.city.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CITY -->\n <!-- START COUNTRY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.address.country.$touched || forms.address.$submitted) && forms.address.country.$invalid}">\n <label class="control-label">{{\'APPLICATION_COUNTRY\' | translate}}</label>\n <input type="text" name="country" placeholder="{{\'APPLICATION_COUNTRY\' | translate}}" class="form-control" data-ng-model="company.country"/>\n <span data-ng-show="(forms.address.country.$touched || forms.address.$submitted) && forms.address.country.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END COUNTRY -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <div class="tab-pane" id="tab_1_3">\n <form name="forms.shipmentAddress" data-ng-submit="forms.shipmentAddress.$valid && updateCompany()" novalidate>\n <!-- START STREET -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.shipmentAddress.sStreet.$touched || forms.shipmentAddress.$submitted) && forms.shipmentAddress.sStreet.$invalid}">\n <label class="control-label">{{\'APPLICATION_STREET\' | translate}}</label>\n <input type="text" name="sStreet" placeholder="{{\'APPLICATION_STREET\' | translate}}" class="form-control" data-ng-model="company.sStreet"/>\n <span data-ng-show="(forms.shipmentAddress.sStreet.$touched || forms.shipmentAddress.$submitted) && forms.shipmentAddress.sStreet.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END STREET -->\n\n <!-- START POSTALCODE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.shipmentAddress.sPostalCode.$touched || forms.shipmentAddress.$submitted) && forms.shipmentAddress.sPostalCode.$invalid}">\n <label class="control-label">{{\'APPLICATION_POSTALCODE\' | translate}}</label>\n <input type="text" name="sPostalCode" placeholder="{{\'APPLICATION_POSTALCODE\' | translate}}" class="form-control" data-ng-model="company.sPostalCode"/>\n <span data-ng-show="(forms.shipmentAddress.sPostalCode.$touched || forms.shipmentAddress.$submitted) && forms.shipmentAddress.sPostalCode.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END POSTALCODE -->\n\n <!-- START CITY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.shipmentAddress.sCity.$touched || forms.shipmentAddress.$submitted) && forms.shipmentAddress.sCity.$invalid}">\n <label class="control-label">{{\'APPLICATION_CITY\' | translate}}</label>\n <input type="text" name="sCity" placeholder="{{\'APPLICATION_CITY\' | translate}}" class="form-control" data-ng-model="company.sCity"/>\n <span data-ng-show="(forms.shipmentAddress.sCity.$touched || forms.shipmentAddress.$submitted) && forms.shipmentAddress.sCity.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CITY -->\n <!-- START COUNTRY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.shipmentAddress.sCountry.$touched || forms.shipmentAddress.$submitted) && forms.shipmentAddress.sCountry.$invalid}">\n <label class="control-label">{{\'APPLICATION_COUNTRY\' | translate}}</label>\n <input type="text" name="sCountry" placeholder="{{\'APPLICATION_COUNTRY\' | translate}}" class="form-control" data-ng-model="company.sCountry"/>\n <span data-ng-show="(forms.shipmentAddress.sCountry.$touched || forms.shipmentAddress.$submitted) && forms.shipmentAddress.sCountry.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END COUNTRY -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/contactmanager/contact/list/copy.modal.html",'<div class="modal-header" data-ng-init="getLists()">\n <h3 class="modal-title">{{ \'APPLICATION_COPY_CONTACT\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="forms.copy" novalidate>\n <!-- START LIST -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.csv.ListId.$invalid && forms.csv.$submitted}">\n <label class="control-label">{{\'APPLICATION_LIST\' | translate}}</label>\n <ui-select data-ng-model="item.ListId" theme="bootstrap" name="ListId" data-ng-disabled="disabled" data-ng-change="getCustomFields()" required>\n <ui-select-match placeholder="{{ \'APPLICATION_LIST\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="list.id as list in lists | filter: $select.search">\n <div ng-bind-html="list.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.csv.ListId.$invalid && forms.csv.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END LIST -->\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="ok()" ng-disabled="forms.copy.$invalid || !forms.copy.ListId">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'),a.put("app/contactmanager/contact/list/import.modal.html",'<div class="modal-header" data-ng-init="getLists();getCompanies();">\n <h3 class="modal-title">{{ \'APPLICATION_IMPORT_FROM_CSV\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="forms.csv" novalidate>\n <div class="row">\n <div class="col-md-6">\n <!-- START LIST -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.csv.ListId.$invalid && forms.csv.$submitted}">\n <label class="control-label">{{\'APPLICATION_LIST\' | translate}}</label>\n <ui-select data-ng-model="item.ListId" theme="bootstrap" name="ListId" data-ng-disabled="disabled" data-ng-change="getCustomFields()">\n <ui-select-match placeholder="{{ \'APPLICATION_LIST\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="list.id as list in lists | filter: $select.search">\n <div ng-bind-html="list.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.csv.ListId.$invalid && forms.csv.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END LIST -->\n\n <!-- START FIRSTNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.csv.firstName.$touched || forms.general.$submitted) && forms.csv.firstName.$invalid}">\n <label class="control-label">{{\'APPLICATION_FIRSTNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.firstName" theme="bootstrap" name="firstName" data-ng-disabled="disabled" required>\n <ui-select-match allow-clear placeholder="{{ \'APPLICATION_FIRSTNAME\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="index in indexes | filter: $select.search">\n <div ng-bind-html="index | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.csv.firstName.$touched || forms.csv.$submitted) && forms.csv.firstName.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END FIRSTNAME -->\n\n <!-- START LASTNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.csv.lastName.$invalid && forms.csv.$submitted}">\n <label class="control-label">{{\'APPLICATION_LASTNAME\' | translate}}</label>\n <ui-select data-ng-model="item.lastName" theme="bootstrap" name="lastName" data-ng-disabled="disabled">\n <ui-select-match allow-clear placeholder="{{ \'APPLICATION_LASTNAME\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="index in indexes | filter: $select.search">\n <div ng-bind-html="index | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.csv.lastName.$invalid && forms.csv.$touched" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END LASTNAME -->\n\n <!-- START STREET -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.csv.street.$invalid && forms.csv.$submitted}">\n <label class="control-label">{{\'APPLICATION_STREET\' | translate}}</label>\n <ui-select data-ng-model="item.street" theme="bootstrap" name="street" data-ng-disabled="disabled">\n <ui-select-match allow-clear placeholder="{{ \'APPLICATION_STREET\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="index in indexes | filter: $select.search">\n <div ng-bind-html="index | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.csv.street.$invalid && forms.csv.$touched" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END STREET -->\n\n <!-- START POSTALCODE -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.csv.postalCode.$invalid && forms.csv.$submitted}">\n <label class="control-label">{{\'APPLICATION_POSTALCODE\' | translate}}</label>\n <ui-select data-ng-model="item.postalCode" theme="bootstrap" name="postalCode" data-ng-disabled="disabled">\n <ui-select-match allow-clear placeholder="{{ \'APPLICATION_POSTALCODE\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="index in indexes | filter: $select.search">\n <div ng-bind-html="index | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.csv.postalCode.$invalid && forms.csv.$touched" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END POSTALCODE -->\n\n <!-- START CITY -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.csv.city.$invalid && forms.csv.$submitted}">\n <label class="control-label">{{\'APPLICATION_CITY\' | translate}}</label>\n <ui-select data-ng-model="item.city" theme="bootstrap" name="city" data-ng-disabled="disabled">\n <ui-select-match allow-clear placeholder="{{ \'APPLICATION_CITY\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="index in indexes | filter: $select.search">\n <div ng-bind-html="index | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.csv.city.$invalid && forms.csv.$touched" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CITY -->\n\n <!-- START PHONE -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.csv.phone.$invalid && forms.csv.$submitted}">\n <label class="control-label">{{\'APPLICATION_PHONE\' | translate}}</label>\n <ui-select data-ng-model="item.phone" theme="bootstrap" name="phone" data-ng-disabled="disabled">\n <ui-select-match allow-clear placeholder="{{ \'APPLICATION_PHONE\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="index in indexes | filter: $select.search">\n <div ng-bind-html="index | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.csv.phone.$invalid && forms.phone.$touched" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PHONE -->\n\n <!-- START MOBILE -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.csv.mobile.$invalid && forms.csv.$submitted}">\n <label class="control-label">{{\'APPLICATION_MOBILE\' | translate}}</label>\n <ui-select data-ng-model="item.mobile" theme="bootstrap" name="mobile" data-ng-disabled="disabled">\n <ui-select-match allow-clear placeholder="{{ \'APPLICATION_MOBILE\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="index in indexes | filter: $select.search">\n <div ng-bind-html="index | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.csv.mobile.$invalid && forms.mobile.$touched" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MOBILE -->\n\n </div>\n <div class="col-md-6">\n\n <!-- START COUNTRY -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.csv.country.$invalid && forms.csv.$submitted}">\n <label class="control-label">{{\'APPLICATION_COUNTRY\' | translate}}</label>\n <ui-select data-ng-model="item.country" theme="bootstrap" name="country" data-ng-disabled="disabled">\n <ui-select-match allow-clear placeholder="{{ \'APPLICATION_COUNTRY\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="index in indexes | filter: $select.search">\n <div ng-bind-html="index | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.csv.country.$invalid && forms.csv.$touched" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END COUNTRY -->\n\n <!-- START DATEOFBIRTH -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.csv.dateOfBirth.$invalid && forms.csv.$submitted}">\n <label class="control-label">{{\'APPLICATION_DATEOFBIRTH\' | translate}}</label>\n <ui-select data-ng-model="item.dateOfBirth" theme="bootstrap" name="dateOfBirth" data-ng-disabled="disabled">\n <ui-select-match allow-clear placeholder="{{ \'APPLICATION_DATEOFBIRTH\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="index in indexes | filter: $select.search">\n <div ng-bind-html="index | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.csv.dateOfBirth.$invalid && forms.csv.$touched" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END DATEOFBIRTH -->\n\n <!-- START TAGS -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.csv.tags.$invalid && forms.csv.$submitted}">\n <label class="control-label">{{\'APPLICATION_TAGS\' | translate}}</label>\n <ui-select multiple data-ng-model="item.tags" theme="bootstrap" name="tags" data-ng-disabled="disabled">\n <ui-select-match allow-clear placeholder="{{ \'APPLICATION_TAGS\' | translate }}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="index in indexes | filter: $select.search">\n <div ng-bind-html="index | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.csv.tags.$invalid && forms.csv.$touched" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TAGS -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.csv.description.$invalid && forms.csv.$submitted}">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <ui-select data-ng-model="item.description" theme="bootstrap" name="description" data-ng-disabled="disabled">\n <ui-select-match allow-clear placeholder="{{ \'APPLICATION_DESCRIPTION\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="index in indexes | filter: $select.search">\n <div ng-bind-html="index | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.csv.description.$invalid && forms.csv.$touched" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START FAX -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.csv.fax.$invalid && forms.csv.$submitted}">\n <label class="control-label">{{\'APPLICATION_FAX\' | translate}}</label>\n <ui-select data-ng-model="item.fax" theme="bootstrap" name="fax" data-ng-disabled="disabled">\n <ui-select-match allow-clear placeholder="{{ \'APPLICATION_FAX\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="index in indexes | filter: $select.search">\n <div ng-bind-html="index | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.csv.fax.$invalid && forms.fax.$touched" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END FAX -->\n\n <!-- START EMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.csv.email.$invalid && forms.general.$submitted}">\n <label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}</label>\n <ui-select data-ng-model="item.email" theme="bootstrap" name="email" data-ng-disabled="disabled">\n <ui-select-match allow-clear placeholder="{{ \'APPLICATION_EMAIL\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="index in indexes | filter: $select.search">\n <div ng-bind-html="index | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.csv.email.$invalid && forms.csv.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END EMAIL -->\n\n <!-- START COMPANY -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.csv.CompanyId.$invalid && forms.csv.$submitted}">\n <label class="control-label">{{\'APPLICATION_COMPANY\' | translate}}</label>\n <ui-select data-ng-model="item.CompanyId" theme="bootstrap" name="CompanyId" data-ng-disabled="!companies.length">\n <ui-select-match allow-clear placeholder="{{ \'APPLICATION_COMPANY\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="company.id as company in companies | filter: $select.search">\n <div ng-bind-html="company.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="companies.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_COMPANIES_AVAILABLE\' | translate }}\n </p>\n </div>\n <span data-ng-show="forms.csv.CompanyId.$invalid && forms.csv.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END COMPANY -->\n\n </div>\n </div>\n\n <!-- START CUSTOMFIELDS -->\n <div data-ng-repeat="customField in customFields">\n <div class="form-group" data-ng-class="{\'has-error\': (forms.csv[customField.name].$touched || forms.general.$submitted) && forms.csv[customField.name].$invalid}">\n <label class="control-label">{{customField.alias}}<span data-ng-if="customField.required" class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item[customField.name]" theme="bootstrap" name="{{customField.name}}" data-ng-disabled="disabled" data-ng-required="customField.required">\n <ui-select-match allow-clear placeholder="{{customField.alias}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="index in indexes | filter: $select.search">\n <div ng-bind-html="index | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.csv[customField.name].$touched || forms.csv.$submitted) && forms.csv[customField.name].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <!-- END CUSTOMFIELDS -->\n\n <div>\n <p>{{\'APPLICATION_IMPORT_SUCCEEDED\' | translate}}: {{import.succeeded}}/{{csvLength}}</p>\n <div class="progress progress-sm" style="">\n <div class="progress-bar progress-bar-info" role="progressbar" ng-style="{ \'width\': import.success + \'%\' }"></div>\n </div>\n </div>\n <div>\n <p>{{\'APPLICATION_IMPORT_FAILED\' | translate}}: {{import.failed}}/{{csvLength}}</p>\n <div class="progress progress-sm" style="">\n <div class="progress-bar progress-bar-danger" role="progressbar" ng-style="{ \'width\': import.fail + \'%\' }"></div>\n </div>\n </div>\n <div data-ng-if="failedRows">\n <p>{{\'APPLICATION_FAILED_ROWS\' | translate}}:</p>\n <div class="failed-contacts">{{failedRows}}</div>\n</div>\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="start()" ng-disabled="forms.csv.$invalid || submitted">{{ \'APPLICATION_SUBMIT\' | translate }}</button>\n <button class="btn default" type="button" ng-click="close()" data-ng-if="!importing">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n <button class="btn default" type="button" ng-click="stop()" data-ng-if="importing">{{ \'APPLICATION_STOP\' | translate }}</button>\n</div>\n'), +a.put("app/contactmanager/contact/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-users"></i>\n <a href="#">{{ \'APPLICATION_CONTACT_MANAGER\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-users"></i>\n <a href="/contactmanager/contacts/list">{{ \'APPLICATION_CONTACTS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="fa fa-users font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_CONTACTS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length && !Auth.isAgent()">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <button data-ng-if="gridOptions.data.length" class="btn purple" ng-csv="extractAll()" lazy-load="true" filename="Contacts.csv" csv-label="true">\n <i class="fa fa-download"></i> {{ \'APPLICATION_EXPORT_TO_CSV\' | translate }}\n </button>\n <button class="btn green-jungle" data-ng-click="newContact({CompanyId:gridOptions.columnDefs[7].filter.term || null,ListId:gridOptions.columnDefs[6].filter.term || null});">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_CONTACT\' | translate }}\n </button>\n <span class="btn default btn-file" data-ng-if="!Auth.isAgent()">\n <span class="fileinput-new">\n <i class="icon-cloud-upload"></i> {{\'APPLICATION_IMPORT_FROM_CSV\' | translate}}</span>\n <input type="file" accept=".csv" nv-file-select="" uploader="uploader"/>\n </span>\n </div>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div data-ng-if="gridOptions" ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <span us-spinner spinner-key="grid-spinner"></span>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/contactmanager/customfield/list/create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_CUSTOM_FIELD\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="forms.customField" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.customField.name.$touched || forms.customField.$submitted) && forms.customField.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.alias" required/>\n <span data-ng-show="(forms.customField.name.$touched || forms.customField.$submitted) && forms.customField.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.customField.type.$touched || forms.customField.$submitted) && forms.customField.type.$invalid}">\n <label class="control-label">{{ \'APPLICATION_TYPE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.type" name="type" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_TYPE\' | translate }}">{{$translate.instant($select.selected.name)}}</ui-select-match>\n <ui-select-choices repeat="type.value as type in types| filter: $select.search">\n {{$translate.instant(type.name)}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.customField.type.$touched || forms.customField.$submitted) && forms.customField.type.$invalid && forms.customField.type.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TYPE -->\n\n <div ng-slide-down="item.type == \'select\'" lazy-render duration="1">\n <div>\n <label class="control-label">{{\'APPLICATION_CHOICES\' | translate}}</label>\n </div>\n <div class="padding-bottom" ng-repeat="choice in choices">\n <div class="form-group">\n <div class="input-group">\n <input type="text" class="form-control" ng-model="choice.value" required>\n <span class="input-group-btn">\n <button class="btn red" type="button"data-ng-click="removeField($index)" data-ng-disabled="choices.length<=1"><i class="fa fa-times"></i></button>\n </span>\n </div>\n </div>\n </div>\n <button type="button" class="btn btn-sm green padding-bottom" ng-click="addField()">\n <i class="fa fa-plus"></i> {{\'APPLICATION_ADD_CHOICE\' | translate}}\n </button>\n\n </div>\n\n <!-- START REQUIRED -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_REQUIRED\' | translate}}</label><br>\n <input\n bs-switch\n ng-model="item.required"\n type="checkbox"\n switch-active="{{ bsSwitch.isActive }}"\n data-ng-init="item.required = false"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ bsSwitch.onColor }}"\n switch-off-color="{{ bsSwitch.offColor }}"\n switch-animate="{{ bsSwitch.animate }}"\n switch-size="{{ bsSwitch.size }}"\n switch-label="{{ bsSwitch.label }}"\n switch-icon="{{ bsSwitch.icon }}"\n switch-radio-off="{{ bsSwitch.radioOff }}"\n switch-label-width="{{ bsSwitch.labelWidth }}"\n switch-handle-width="{{ bsSwitch.handleWidth }}">\n </div>\n <!-- END REQUIRED -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="ok()" ng-disabled="forms.customField.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/contactmanager/customfield/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-users"></i>\n <a href="#">{{ \'APPLICATION_CONTACT_MANAGER\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-pencil"></i>\n <a href="/contactmanager/customfields/list">{{ \'APPLICATION_CUSTOM_FIELDS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-pencil font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_CUSTOM_FIELDS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <button class="btn green-jungle " ng-click="create()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_CUSTOM_FIELD\' | translate }}\n </button>\n </div>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/contactmanager/customfield/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getCustomField()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-users"></i>\n <a href="#">{{ \'APPLICATION_CONTACT_MANAGER\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-pencil"></i>\n <a href="/contactmanager/customfields/list">{{ \'APPLICATION_CUSTOM_FIELDS\' | translate }}</a>\n <i data-ng-show="customField" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="customField">\n <a href="#">{{customField.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/customField.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{customField.name}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.contactmanager.customfields.view.settings\')}">\n <a data-ng-href="/contactmanager/customfields/view/{{customField.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/contactmanager/customfield/view/view.settings.html",'<div class="row" data-ng-init="getCustomField()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_CUSTOM_FIELD\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n </div>\n\n <div class="portlet-body">\n <!-- GENERAL TAB -->\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateCustomField()" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="customField.alias" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <div ng-slide-down="customField.type == \'select\'" lazy-render duration="1" class="mbottom20">\n <div>\n <label class="control-label">{{\'APPLICATION_CHOICES\' | translate}}</label>\n </div>\n <div class="padding-bottom" ng-repeat="choice in choices">\n <div class="form-group">\n <div class="input-group">\n <input type="text" class="form-control" ng-model="choice.value" required>\n <span class="input-group-btn">\n <button class="btn red" type="button"data-ng-click="removeField($index)" data-ng-disabled="choices.length<=1"><i class="fa fa-times"></i></button>\n </span>\n </div>\n </div>\n </div>\n <button type="button" class="btn btn-sm green padding-bottom" ng-click="addField()">\n <i class="fa fa-plus"></i> {{\'APPLICATION_ADD_CHOICE\' | translate}}\n </button>\n\n </div>\n\n <!-- START REQUIRED -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_REQUIRED\' | translate}}</label><br>\n <input\n bs-switch\n ng-model="customField.required"\n type="checkbox"\n switch-active="{{ bsSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ bsSwitch.onColor }}"\n switch-off-color="{{ bsSwitch.offColor }}"\n switch-animate="{{ bsSwitch.animate }}"\n switch-size="{{ bsSwitch.size }}"\n switch-label="{{ bsSwitch.label }}"\n switch-icon="{{ bsSwitch.icon }}"\n switch-radio-off="{{ bsSwitch.radioOff }}"\n switch-label-width="{{ bsSwitch.labelWidth }}"\n switch-handle-width="{{ bsSwitch.handleWidth }}">\n </div>\n <!-- END REQUIRED -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/contactmanager/list/list/create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_LIST\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="forms.list" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.list.name.$touched || forms.list.$submitted) && forms.list.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(forms.list.name.$touched || forms.list.$submitted) && forms.list.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="ok()" ng-disabled="forms.list.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/contactmanager/list/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-users"></i>\n <a href="#">{{ \'APPLICATION_CONTACT_MANAGER\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-list-ul"></i>\n <a href="/contactmanager/lists/list">{{ \'APPLICATION_LISTS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="fa fa-list-ul font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_LISTS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <!-- <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteLists()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div> -->\n <div class="btn-group">\n <button class="btn green-jungle " ng-click="create()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_LIST\' | translate }}\n </button>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/contactmanager/list/view/create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_CUSTOM_FIELD\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="forms.customField" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.customField.name.$touched || forms.customField.$submitted) && forms.customField.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.alias" required/>\n <span data-ng-show="(forms.customField.name.$touched || forms.customField.$submitted) && forms.customField.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.customField.type.$touched || forms.customField.$submitted) && forms.customField.type.$invalid}">\n <label class="control-label">{{ \'APPLICATION_TYPE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.type" name="type" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_TYPE\' | translate }}">{{$translate.instant($select.selected.name)}}</ui-select-match>\n <ui-select-choices repeat="type.value as type in types| filter: $select.search">\n {{$translate.instant(type.name)}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.customField.type.$touched || forms.customField.$submitted) && forms.customField.type.$invalid && forms.customField.type.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TYPE -->\n\n <div ng-slide-down="item.type == \'select\'" lazy-render duration="1">\n <div>\n <label class="control-label">{{\'APPLICATION_CHOICES\' | translate}}</label>\n </div>\n <div class="padding-bottom" ng-repeat="choice in choices">\n <div class="form-group">\n <div class="input-group">\n <input type="text" class="form-control" ng-model="choice.value" required>\n <span class="input-group-btn">\n <button class="btn red" type="button"data-ng-click="removeField($index)" data-ng-disabled="choices.length<=1"><i class="fa fa-times"></i></button>\n </span>\n </div>\n </div>\n </div>\n <button type="button" class="btn btn-sm green padding-bottom" ng-click="addField()">\n <i class="fa fa-plus"></i> {{\'APPLICATION_ADD_CHOICE\' | translate}}\n </button>\n\n </div>\n\n <!-- START REQUIRED -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_REQUIRED\' | translate}}</label><br>\n <input\n bs-switch\n ng-model="item.required"\n type="checkbox"\n switch-active="{{ bsSwitch.isActive }}"\n data-ng-init="item.required = false"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ bsSwitch.onColor }}"\n switch-off-color="{{ bsSwitch.offColor }}"\n switch-animate="{{ bsSwitch.animate }}"\n switch-size="{{ bsSwitch.size }}"\n switch-label="{{ bsSwitch.label }}"\n switch-icon="{{ bsSwitch.icon }}"\n switch-radio-off="{{ bsSwitch.radioOff }}"\n switch-label-width="{{ bsSwitch.labelWidth }}"\n switch-handle-width="{{ bsSwitch.handleWidth }}">\n </div>\n <!-- END REQUIRED -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="ok()" ng-disabled="forms.customField.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/contactmanager/list/view/view.agents.html",'<div class="row" data-ng-init="getTeams()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_AGENTS\' | translate}}</span>\n </div>\n </div>\n <div class="note note-warning" data-ng-hide="teams.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_AVAILABLE_TEAMS\' | translate }}\n </p>\n </div>\n <div class="portlet-body">\n <!-- BEGIN FORM-->\n <form action="index.html" class="form-horizontal form-row-seperated">\n <div class="form-body">\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-team">\n </div>\n </div>\n </div>\n </form>\n <!-- END FORM-->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/contactmanager/list/view/view.customFieldSettings.html",'<div class="row" data-ng-init="getCustomField()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_CUSTOM_FIELD\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n </div>\n\n <div class="portlet-body">\n <!-- GENERAL TAB -->\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateCustomField()" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="customField.alias" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <div ng-slide-down="customField.type == \'select\'" lazy-render duration="1" class="mbottom20">\n <div>\n <label class="control-label">{{\'APPLICATION_CHOICES\' | translate}}</label>\n </div>\n <div class="padding-bottom" ng-repeat="choice in choices">\n <div class="form-group">\n <div class="input-group">\n <input type="text" class="form-control" ng-model="choice.value" required>\n <span class="input-group-btn">\n <button class="btn red" type="button"data-ng-click="removeField($index)" data-ng-disabled="choices.length<=1"><i class="fa fa-times"></i></button>\n </span>\n </div>\n </div>\n </div>\n <button type="button" class="btn btn-sm green padding-bottom" ng-click="addField()">\n <i class="fa fa-plus"></i> {{\'APPLICATION_ADD_CHOICE\' | translate}}\n </button>\n\n </div>\n\n <!-- START REQUIRED -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_REQUIRED\' | translate}}</label><br>\n <input\n bs-switch\n ng-model="customField.required"\n type="checkbox"\n switch-active="{{ bsSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ bsSwitch.onColor }}"\n switch-off-color="{{ bsSwitch.offColor }}"\n switch-animate="{{ bsSwitch.animate }}"\n switch-size="{{ bsSwitch.size }}"\n switch-label="{{ bsSwitch.label }}"\n switch-icon="{{ bsSwitch.icon }}"\n switch-radio-off="{{ bsSwitch.radioOff }}"\n switch-label-width="{{ bsSwitch.labelWidth }}"\n switch-handle-width="{{ bsSwitch.handleWidth }}">\n </div>\n <!-- END REQUIRED -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/contactmanager/list/view/view.customFields.html",'<div ui-view class="profile-content">\n<div class="row" data-ng-init="initCustomFields()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_CUSTOM_FIELDS\' | translate}}</span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <button class="btn green-jungle " ng-click="create()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_CUSTOM_FIELD\' | translate }}\n </button>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n</div>\n</div>\n'),a.put("app/contactmanager/list/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getList()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-users"></i>\n <a href="#">{{ \'APPLICATION_CONTACT_MANAGER\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-list-ul"></i>\n <a href="/contactmanager/lists/list">{{ \'APPLICATION_LISTS\' | translate }}</a>\n <i data-ng-show="list" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="list">\n <a href="#">{{list.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/list.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{list.name}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.contactmanager.lists.view.settings\')}">\n <a data-ng-href="/contactmanager/lists/view/{{list.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n <li data-ng-if="!list.defaultEntry" data-ng-class="{active: $state.is(\'main.contactmanager.lists.view.agents\')}">\n <a data-ng-href="/contactmanager/lists/view/{{list.id}}/agents">\n <i class="icon-people"></i>\n {{ \'APPLICATION_AGENTS\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.contactmanager.lists.view.customfields\')}">\n <a data-ng-href="/contactmanager/lists/view/{{list.id}}/customfields">\n <i class="icon-pencil"></i>\n {{ \'APPLICATION_CUSTOM_FIELDS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/contactmanager/list/view/view.settings.html",'<div class="row" data-ng-init="initVariables()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_LIST\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateList()" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="list.name" data-ng-disabled="list.defaultEntry" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START VARIABLES -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.variables.$invalid && forms.general.$submitted}">\n <label class="control-label">{{\'APPLICATION_TD_VARIABLES\' | translate}}</label>\n <ui-select multiple=\'true\' data-ng-model="list.variables" theme="bootstrap" name="variables" limit="10" ng-disabled="disabled">\n <ui-select-match placeholder="{{ \'APPLICATION_TD_VARIABLES\' | translate }}">{{$item.name}}</ui-select-match>\n <ui-select-choices repeat="variable as variable in variables | filter: $select.search">\n {{variable.name}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.general.variables.$invalid && forms.general.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span class="help-block">{{\'MESSAGE_MAX_VARIABLES\' | translate}}</span>\n </div>\n <!-- END VARIABLES -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="list.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ADVANCED TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'), +a.put("app/dashboard/chat/chat.html",'<div data-ng-switch="Auth.getRole()">\n <div ng-switch-when="agent" data-ng-init="initAgent()">\n <div class="row" style="padding-bottom:10px;">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div ui-grid="table1" name="table1" ui-grid-resize-columns ui-grid-pagination ui-grid-auto-resize class="ui-grid">\n <div class="watermark" data-ng-show="!table1.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n <div ng-switch-default data-ng-init="initRoomStats();initRoutingStats();initSocketListening();">\n <fieldset>\n <legend>\n <span class="caption-subject"> </span><small class="pull-right font-grey-cascade">{{ \'APPLICATION_TODAY_STATS\' | translate }}</small>\n </legend>\n <div class="row">\n <div class="col-md-8">\n <div class="row">\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat green-haze">\n <div class="visual">\n <i class="fa fa-play"></i>\n </div>\n <div class="details">\n <div class="number">\n {{roomStatus.new || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_DASHBOARD_WAITING_NEW_CI\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_DASHBOARD_WAITING_NEW_CI_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat blue-madison">\n <div class="visual">\n <i class="icon-bell"></i>\n </div>\n <div class="details">\n <div class="number">\n {{roomStatus.open || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_DASHBOARD_OPEN_CI\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_DASHBOARD_OPEN_CI_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n </div>\n <div class ="row">\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat green">\n <div class="visual">\n <i class="icon-options"></i>\n </div>\n <div class="details">\n <div class="number">\n {{roomStatus.unmanaged || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_UNMANAGED_CI\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_UNMANAGED_CI_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat purple-plum">\n <div class="visual">\n <i class="icon-like"></i>\n </div>\n <div class="details">\n <div class="number">\n {{roomStatus.closed || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_DASHBOARD_CLOSED_CI\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_DASHBOARD_CLOSED_CI_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n </div>\n <div class ="row">\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat yellow-crusta">\n <div class="visual">\n <i class="icon-dislike"></i>\n </div>\n <div class="details">\n <div class="number">\n {{roomStatus.abandon || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_DASHBOARD_ABANDONED_CI\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_DASHBOARD_ABANDONED_CI_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12" >\n <div class="dashboard-stat yellow-casablanca">\n <div class="visual">\n <i class="icon-calculator"></i>\n </div>\n <div class="details">\n <div class="number">\n {{roomStatus.new+roomStatus.open+roomStatus.unmanaged+roomStatus.closed+roomStatus.abandon || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_TOTAL_CI\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_TOTAL_CI_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n </div>\n </div>\n <div class="col-md-4">\n <canvas class="chart chart-pie" chart-data="charts.interactions.values" chart-labels="charts.interactions.labels" chart-colours="charts.interactions.colours" chart-legend="true"></canvas>\n </div>\n </div>\n <legend>\n <span class="caption-subject"> </span><small class="pull-right font-grey-cascade">{{ \'APPLICATION_INTERACTION_STATS\' | translate }}</small>\n </legend>\n <div class="row">\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat red-intense">\n <div class="visual">\n <i class="icon-dislike"></i>\n </div>\n <div class="details">\n <div class="number">\n {{routingStats.timeout || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_TIMEOUT_CA\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_TIMEOUT_CA_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat purple">\n <div class="visual">\n <i class="icon-hourglass"></i>\n </div>\n <div class="details">\n <div class="number">\n {{routingStats.waiting || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_WAITING_CA\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_WAITING_CA_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n </div>\n </fieldset>\n\n</div>\n</div>\n'),a.put("app/dashboard/dashboard.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" id="dashboardView">\n <div class="col-md-12" >\n <div>\n <nav class="navbar navbar-default" role="navigation">\n <div class="navbar-header">\n <button type="button" class="navbar-toggle" data-ng-init="navCollapsed = true" data-ng-click="navCollapsed = !navCollapsed">\n <span class="sr-only">Toggle navigation</span>\n <span class="icon-bar"></span>\n <span class="icon-bar"></span>\n <span class="icon-bar"></span>\n </button>\n </div>\n\n <!-- Collect the nav links, forms, and other content for toggling -->\n <div class="collapse navbar-collapse" ng-class="!navCollapsed && \'in\'" >\n <ul class="nav navbar-nav">\n <li data-ng-class="{active: $state.is(\'main.dashboard.voice\')}">\n <a href="/dashboard/voice">\n <b class=\'icon-earphones-alt\'></b>\n {{ \'APPLICATION_VOICE\' | translate }}\n </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.dashboard.chat\'),\'disabled-link\':!license.chat}" data-ng-if="::((Auth.isAdmin() || Auth.isAgent() || userModules[8]))">\n <a href="{{license.chat ? \'/dashboard/chat\' : \'#\'}}" class="disable-target">\n <b class=\'icon-bubble\'></b>\n {{ \'APPLICATION_CHAT\' | translate }}\n </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.dashboard.mail\'),\'disabled-link\':!license.mail}" data-ng-if="::((Auth.isAdmin() || Auth.isAgent() || userModules[9]))">\n <a href="{{license.mail ? \'/dashboard/mail\' : \'#\'}}" class="disable-target">\n <b class=\'icon-envelope\'></b>\n {{ \'APPLICATION_EMAIL\' | translate }}\n </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.dashboard.fax\'),\'disabled-link\':!license.fax}" data-ng-if="::((Auth.isAdmin() || Auth.isAgent() || userModules[10]))">\n <a href="{{license.fax ? \'/dashboard/fax\' : \'#\'}}" class="disable-target">\n <b class=\'fa fa-fax\'></b>\n {{ \'APPLICATION_FAX\' | translate }}\n </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.dashboard.sms\'),\'disabled-link\':!license.messaging}" data-ng-if="::((Auth.isAdmin() || Auth.isAgent() || userModules[11]))">\n <a href="{{license.messaging ? \'/dashboard/sms\' : \'#\'}}" class="disable-target">\n <b class=\'glyphicon glyphicon-comment\'></b>\n {{ \'APPLICATION_SMS\' | translate }}\n </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.dashboard.openchannel\'),\'disabled-link\':!license.openchannel}" data-ng-if="::((Auth.isAdmin() || Auth.isAgent() || userModules[20]))">\n <a href="{{license.messaging ? \'/dashboard/openchannel\' : \'#\'}}" class="disable-target">\n <b class=\'icon-globe\'></b>\n {{ \'APPLICATION_OPEN_CHANNEL\' | translate }}\n </a>\n </li>\n </ul>\n </div>\n <!-- /.navbar-collapse -->\n </nav>\n </div>\n <div ui-view></div>\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/dashboard/fax/fax.html",'<div data-ng-switch="Auth.getRole()">\n <div ng-switch-when="agent" data-ng-init="initAgent()">\n <div class="row" style="padding-bottom:10px;">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div ui-grid="table1" name="table1" ui-grid-resize-columns ui-grid-pagination ui-grid-auto-resize class="ui-grid">\n <div class="watermark" data-ng-show="!table1.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n <div ng-switch-default data-ng-init="initRoomStats();initRoutingStats();initSocketListening();">\n <fieldset>\n <legend>\n <span class="caption-subject"> </span><small class="pull-right font-grey-cascade">{{ \'APPLICATION_INTERACTION_STATS\' | translate }}</small>\n </legend>\n <div class="row">\n <div class="col-md-8">\n <div class="row">\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat green-haze">\n <div class="visual">\n <i class="fa fa-play"></i>\n </div>\n <div class="details">\n <div class="number">\n {{roomStatus.new || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_DASHBOARD_NEW_FI\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_DASHBOARD_NEW_FI_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat blue-madison">\n <div class="visual">\n <i class="icon-bell"></i>\n </div>\n <div class="details">\n <div class="number">\n {{roomStatus.open || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_DASHBOARD_OPEN_FI\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_DASHBOARD_OPEN_FI_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n </div>\n <div class="row">\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat green">\n <div class="visual">\n <i class="icon-options"></i>\n </div>\n <div class="details">\n <div class="number">\n {{roomStatus.pending || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_DASHBOARD_PENDING_FI\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_DASHBOARD_PENDING_FI_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat purple-plum">\n <div class="visual">\n <i class="icon-like"></i>\n </div>\n <div class="details">\n <div class="number">\n {{roomStatus.closed || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_DASHBOARD_CLOSED_FI\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_DASHBOARD_CLOSED_FI_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n </div>\n <div class="row">\n <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">\n <div class="dashboard-stat yellow-casablanca">\n <div class="visual">\n <i class="icon-calculator"></i>\n </div>\n <div class="details">\n <div class="number">\n {{roomStatus.new+roomStatus.open+roomStatus.pending+roomStatus.closed || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_TOTAL_FI\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_TOTAL_FI_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n </div>\n </div>\n <div class="col-md-4">\n <!-- <div class="portlet light bordered">\n <div class="portlet-body"> -->\n <canvas class="chart chart-pie" chart-data="charts.interactions.values" chart-labels="charts.interactions.labels" chart-colours="charts.interactions.colours" chart-legend="true">\n </canvas>\n <!-- </div>\n </div> -->\n </div>\n </div>\n <legend>\n <span class="caption-subject"> </span><small class="pull-right font-grey-cascade">{{ \'APPLICATION_TODAY_STATS\' | translate }}</small>\n </legend>\n <div class="row">\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat red-intense">\n <div class="visual">\n <i class="icon-dislike"></i>\n </div>\n <div class="details">\n <div class="number">\n {{routingStats.timeout || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_TIMEOUT_FA\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_TIMEOUT_FA_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat purple">\n <div class="visual">\n <i class="icon-hourglass"></i>\n </div>\n <div class="details">\n <div class="number">\n {{routingStats.waiting || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_WAITING_FA\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_WAITING_FA_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n </div>\n </fieldset>\n </div>\n'),a.put("app/dashboard/mail/mail.html",'<div data-ng-switch="Auth.getRole()">\n <div ng-switch-when="agent" data-ng-init="initAgent()">\n <div class="row" style="padding-bottom:10px;">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div ui-grid="table1" name="table1" ui-grid-resize-columns ui-grid-pagination ui-grid-auto-resize class="ui-grid">\n <div class="watermark" data-ng-show="!table1.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n\n <!-- <div class="row" style="padding-bottom:10px;">\n <div class="col-md-12"> -->\n <!-- START TABLE -->\n <!-- <div ui-grid="table2" name="table2" ui-grid-resize-columns ui-grid-auto-resize class="ui-grid">\n <div class="watermark" data-ng-show="!table2.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div> -->\n <!-- END TABLE -->\n <!-- </div>\n </div> -->\n </div>\n <div ng-switch-default data-ng-init="initRoomStats();initRoutingStats();initSocketListening();">\n <fieldset>\n <legend>\n <span class="caption-subject"> </span><small class="pull-right font-grey-cascade">{{ \'APPLICATION_INTERACTION_STATS\' | translate }}</small>\n </legend>\n <div class="row">\n <div class="col-md-8">\n <div class="row">\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat green-haze">\n <div class="visual">\n <i class="fa fa-play"></i>\n </div>\n <div class="details">\n <div class="number">\n {{roomStatus.new || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_DASHBOARD_NEW_EI\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_DASHBOARD_NEW_EI_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat blue-madison">\n <div class="visual">\n <i class="icon-bell"></i>\n </div>\n <div class="details">\n <div class="number">\n {{roomStatus.open || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_DASHBOARD_OPEN_EI\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_DASHBOARD_OPEN_EI_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n </div>\n <div class="row">\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat green">\n <div class="visual">\n <i class="icon-options"></i>\n </div>\n <div class="details">\n <div class="number">\n {{roomStatus.pending || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_DASHBOARD_PENDING_EI\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_DASHBOARD_PENDING_EI_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat purple-plum">\n <div class="visual">\n <i class="icon-like"></i>\n </div>\n <div class="details">\n <div class="number">\n {{roomStatus.closed || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_DASHBOARD_CLOSED_EI\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_DASHBOARD_CLOSED_EI_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n </div>\n <div class="row">\n <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">\n <div class="dashboard-stat yellow-casablanca">\n <div class="visual">\n <i class="icon-calculator"></i>\n </div>\n <div class="details">\n <div class="number">\n {{roomStatus.new+roomStatus.open+roomStatus.pending+roomStatus.closed || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_TOTAL_EI\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_TOTAL_EI_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n </div>\n </div>\n <div class="col-md-4">\n <!-- <div class="portlet light bordered">\n <div class="portlet-body"> -->\n <canvas class="chart chart-pie" chart-data="charts.interactions.values" chart-labels="charts.interactions.labels" chart-colours="charts.interactions.colours" chart-legend="true">\n </canvas>\n <!-- </div>\n </div> -->\n </div>\n </div>\n <legend>\n <span class="caption-subject"> </span><small class="pull-right font-grey-cascade">{{ \'APPLICATION_TODAY_STATS\' | translate }}</small>\n </legend>\n <div class="row">\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat red-intense">\n <div class="visual">\n <i class="icon-dislike"></i>\n </div>\n <div class="details">\n <div class="number">\n {{routingStats.timeout || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_TIMEOUT_EA\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_TIMEOUT_EA_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat purple">\n <div class="visual">\n <i class="icon-hourglass"></i>\n </div>\n <div class="details">\n <div class="number">\n {{routingStats.waiting || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_WAITING_EA\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_WAITING_EA_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n </div>\n </fieldset>\n </div>\n'),a.put("app/dashboard/openchannel/openchannel.html",'<div data-ng-switch="Auth.getRole()">\n <div ng-switch-when="agent" data-ng-init="initAgent()">\n <div class="row" style="padding-bottom:10px;">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div ui-grid="table1" name="table1" ui-grid-resize-columns ui-grid-pagination ui-grid-auto-resize class="ui-grid">\n <div class="watermark" data-ng-show="!table1.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n\n <!-- <div class="row" style="padding-bottom:10px;">\n <div class="col-md-12"> -->\n <!-- START TABLE -->\n <!-- <div ui-grid="table2" name="table2" ui-grid-resize-columns ui-grid-auto-resize class="ui-grid">\n <div class="watermark" data-ng-show="!table2.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div> -->\n <!-- END TABLE -->\n <!-- </div>\n </div> -->\n </div>\n <div ng-switch-default data-ng-init="initRoomStats();initRoutingStats();initSocketListening();">\n <fieldset>\n <legend>\n <span class="caption-subject"> </span><small class="pull-right font-grey-cascade">{{ \'APPLICATION_INTERACTION_STATS\' | translate }}</small>\n </legend>\n <div class="row">\n <div class="col-md-8">\n <div class="row">\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat green-haze">\n <div class="visual">\n <i class="fa fa-play"></i>\n </div>\n <div class="details">\n <div class="number">\n {{roomStatus.new || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_DASHBOARD_NEW_OI\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_DASHBOARD_NEW_OI_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat blue-madison">\n <div class="visual">\n <i class="icon-bell"></i>\n </div>\n <div class="details">\n <div class="number">\n {{roomStatus.open || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_DASHBOARD_OPEN_OI\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_DASHBOARD_OPEN_OI_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n </div>\n <div class="row">\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat green">\n <div class="visual">\n <i class="icon-options"></i>\n </div>\n <div class="details">\n <div class="number">\n {{roomStatus.pending || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_DASHBOARD_PENDING_OI\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_DASHBOARD_PENDING_OI_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat purple-plum">\n <div class="visual">\n <i class="icon-like"></i>\n </div>\n <div class="details">\n <div class="number">\n {{roomStatus.closed || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_DASHBOARD_CLOSED_OI\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_DASHBOARD_CLOSED_OI_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n </div>\n <div class="row">\n <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">\n <div class="dashboard-stat yellow-casablanca">\n <div class="visual">\n <i class="icon-calculator"></i>\n </div>\n <div class="details">\n <div class="number">\n {{roomStatus.new+roomStatus.open+roomStatus.pending+roomStatus.closed || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_TOTAL_OI\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_TOTAL_OI_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n </div>\n </div>\n <div class="col-md-4">\n <!-- <div class="portlet light bordered">\n <div class="portlet-body"> -->\n <canvas class="chart chart-pie" chart-data="charts.interactions.values" chart-labels="charts.interactions.labels" chart-colours="charts.interactions.colours" chart-legend="true">\n </canvas>\n <!-- </div>\n </div> -->\n </div>\n </div>\n <legend>\n <span class="caption-subject"> </span><small class="pull-right font-grey-cascade">{{ \'APPLICATION_TODAY_STATS\' | translate }}</small>\n </legend>\n <div class="row">\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat red-intense">\n <div class="visual">\n <i class="icon-dislike"></i>\n </div>\n <div class="details">\n <div class="number">\n {{routingStats.timeout || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_TIMEOUT_OA\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_TIMEOUT_OA_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat purple">\n <div class="visual">\n <i class="icon-hourglass"></i>\n </div>\n <div class="details">\n <div class="number">\n {{routingStats.waiting || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_WAITING_OA\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_WAITING_OA_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n </div>\n </fieldset>\n </div>\n'),a.put("app/dashboard/sms/sms.html",'<div data-ng-switch="Auth.getRole()">\n <div ng-switch-when="agent" data-ng-init="initAgent()">\n <div class="row" style="padding-bottom:10px;">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div ui-grid="table1" name="table1" ui-grid-resize-columns ui-grid-pagination ui-grid-auto-resize class="ui-grid">\n <div class="watermark" data-ng-show="!table1.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n\n <!-- <div class="row" style="padding-bottom:10px;">\n <div class="col-md-12"> -->\n <!-- START TABLE -->\n <!-- <div ui-grid="table2" name="table2" ui-grid-resize-columns ui-grid-auto-resize class="ui-grid">\n <div class="watermark" data-ng-show="!table2.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div> -->\n <!-- END TABLE -->\n <!-- </div>\n </div> -->\n </div>\n <div ng-switch-default data-ng-init="initRoomStats();initRoutingStats();initSocketListening();">\n <fieldset>\n <legend>\n <span class="caption-subject"> </span><small class="pull-right font-grey-cascade">{{ \'APPLICATION_INTERACTION_STATS\' | translate }}</small>\n </legend>\n <div class="row">\n <div class="col-md-8">\n <div class="row">\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat green-haze">\n <div class="visual">\n <i class="fa fa-play"></i>\n </div>\n <div class="details">\n <div class="number">\n {{roomStatus.new || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_DASHBOARD_NEW_SI\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_DASHBOARD_NEW_SI_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat blue-madison">\n <div class="visual">\n <i class="icon-bell"></i>\n </div>\n <div class="details">\n <div class="number">\n {{roomStatus.open || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_DASHBOARD_OPEN_SI\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_DASHBOARD_OPEN_SI_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n </div>\n <div class="row">\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat green">\n <div class="visual">\n <i class="icon-options"></i>\n </div>\n <div class="details">\n <div class="number">\n {{roomStatus.pending || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_DASHBOARD_PENDING_SI\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_DASHBOARD_PENDING_SI_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat purple-plum">\n <div class="visual">\n <i class="icon-like"></i>\n </div>\n <div class="details">\n <div class="number">\n {{roomStatus.closed || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_DASHBOARD_CLOSED_SI\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_DASHBOARD_CLOSED_SI_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n </div>\n <div class="row">\n <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">\n <div class="dashboard-stat yellow-casablanca">\n <div class="visual">\n <i class="icon-calculator"></i>\n </div>\n <div class="details">\n <div class="number">\n {{roomStatus.new+roomStatus.open+roomStatus.pending+roomStatus.closed || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_TOTAL_SI\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_TOTAL_SI_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n </div>\n </div>\n <div class="col-md-4">\n <!-- <div class="portlet light bordered">\n <div class="portlet-body"> -->\n <canvas class="chart chart-pie" chart-data="charts.interactions.values" chart-labels="charts.interactions.labels" chart-colours="charts.interactions.colours" chart-legend="true">\n </canvas>\n <!-- </div>\n </div> -->\n </div>\n </div>\n <legend>\n <span class="caption-subject"> </span><small class="pull-right font-grey-cascade">{{ \'APPLICATION_TODAY_STATS\' | translate }}</small>\n </legend>\n <div class="row">\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat red-intense">\n <div class="visual">\n <i class="icon-dislike"></i>\n </div>\n <div class="details">\n <div class="number">\n {{routingStats.timeout || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_TIMEOUT_SA\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_TIMEOUT_SA_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat purple">\n <div class="visual">\n <i class="icon-hourglass"></i>\n </div>\n <div class="details">\n <div class="number">\n {{routingStats.waiting || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_WAITING_SA\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_WAITING_SA_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n </div>\n </fieldset>\n </div>\n'), +a.put("app/dashboard/voice/voice.html",'<div data-ng-switch="Auth.getRole()">\n <div ng-switch-when="agent" data-ng-init="initAgent()">\n <div class="portlet light">\n <div class="portlet-body">\n <!-- START TABLE -->\n <div data-ng-if="table1" ui-grid="table1" name="table1" ui-grid-resize-columns ui-grid-pagination ui-grid-auto-resize class="ui-grid">\n <div class="watermark" data-ng-show="!table1.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_a" data-toggle="tab">{{\'APPLICATION_WAITING\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_b" data-toggle="tab">{{\'APPLICATION_ABANDONED\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body" data-ng-init="initView()">\n <div class="tab-content">\n <div class="tab-pane active" id="tab_1_a">\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_SHOW_TIMERS\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="showTimers"\n type="checkbox"\n name="showTimers"\n switch-active="{{ timerSwitch.isActive }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ timerSwitch.onColor }}"\n switch-off-color="{{ timerSwitch.offColor }}"\n switch-animate="{{ timerSwitch.animate }}"\n switch-size="{{ timerSwitch.size }}"\n switch-label="{{ timerSwitch.label }}"\n switch-icon="{{ timerSwitch.icon }}"\n switch-radio-off="{{ timerSwitch.radioOff }}"\n switch-label-width="{{ timerSwitch.labelWidth }}"\n switch-handle-width="{{ timerSwitch.handleWidth }}">\n </div>\n <!-- START TABLE -->\n <div data-ng-if="table2" ui-grid="table2" name="table2" ui-grid-resize-columns ui-grid-pagination ui-grid-auto-resize class="ui-grid">\n <div class="watermark" data-ng-show="!table2.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n <div class="tab-pane" id="tab_1_b">\n <!-- START TABLE -->\n <div data-ng-if="table3" ui-grid="table3" name="table3" ui-grid-resize-columns ui-grid-pagination ui-grid-auto-resize class="ui-grid">\n <div class="watermark" data-ng-show="!table3.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n </div>\n </div>\n <div ng-switch-default data-ng-init="initUser()">\n <fieldset>\n <legend>\n <span class="caption-subject">{{ \'APPLICATION_INBOUND\' | translate }}</span><small class="font-grey-cascade pull-right">{{ \'APPLICATION_TODAY_STATS\' | translate }}</small>\n </legend>\n\n <div class="row">\n <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">\n <div class="dashboard-stat blue">\n <div class="visual">\n <i class="icon-bell"></i>\n </div>\n <div class="details">\n <div class="number">\n {{ voice.queues.waiting || 0 }}\n </div>\n <div class="desc">\n {{\'APPLICATION_WAITING_QC\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_WAITING_QC_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">\n <div class="dashboard-stat grey-gallery">\n <div class="visual">\n <i class="fa fa-play"></i>\n </div>\n <div class="details">\n <div class="number">\n {{ voice.queues.active || 0 }}\n </div>\n <div class="desc">\n {{\'APPLICATION_ACTIVE_QC\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_ACTIVE_QC_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">\n <div class="dashboard-stat green-jungle">\n <div class="visual">\n <i class="icon-like"></i>\n </div>\n <div class="details">\n <div class="number">\n {{ voice.queues.complete || 0 }}\n </div>\n <div class="desc">\n {{\'APPLICATION_ANSWERED_QC\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_ANSWERED_QC_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">\n <div class="dashboard-stat red-thunderbird">\n <div class="visual">\n <i class="icon-dislike"></i>\n </div>\n <div class="details">\n <div class="number">\n {{ voice.queues.abandon || 0 }}\n </div>\n <div class="desc">\n {{\'APPLICATION_ABANDONED_QC\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_ABANDONED_QC_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n </div>\n\n <div class="row">\n <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">\n <div class="dashboard-stat yellow-gold">\n <div class="visual">\n <i class="icon-clock"></i>\n </div>\n <div class="details">\n <div class="number">\n {{ voice.queues.complete ? (voice.queues.holdtime / voice.queues.complete) : 0 | secToTime | date:\'HH:mm:ss\' }}\n </div>\n <div class="desc">\n {{\'APPLICATION_AVG_ANSWER_TIME_QC\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_AVG_ANSWER_TIME_QC_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">\n <div class="dashboard-stat purple">\n <div class="visual">\n <i class="icon-clock"></i>\n </div>\n <div class="details">\n <div class="number">\n {{ voice.queues.complete ? (voice.queues.talktime / voice.queues.complete) : 0 | secToTime | date:\'HH:mm:ss\' }}\n </div>\n <div class="desc">\n {{\'APPLICATION_AVG_TALK_TIME_QC\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_AVG_TALK_TIME_QC_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">\n <div class="dashboard-stat green-jungle">\n <div class="visual">\n <i class="icon-pie-chart"></i>\n </div>\n <div class="details">\n <div class="number">\n {{ (voice.queues.complete / (voice.queues.complete + voice.queues.abandon) * 100) || 0 | number:2}}\n </div>\n <div class="desc">\n {{\'APPLICATION_ANSWER_RATE_QC\' | translate}} (%)\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_ANSWER_RATE_QC_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">\n <div class="dashboard-stat red-thunderbird">\n <div class="visual">\n <i class="icon-pie-chart"></i>\n </div>\n <div class="details">\n <div class="number">\n {{ (voice.queues.abandon / (voice.queues.complete + voice.queues.abandon) * 100) || 0 | number:2}}\n </div>\n <div class="desc">\n {{\'APPLICATION_ABANDON_RATE_QC\' | translate}} (%)\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_ABANDON_RATE_QC_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n </div>\n\n <div class="row">\n <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">\n <div class="dashboard-stat blue">\n <div class="visual">\n <i class="icon-info"></i>\n </div>\n <div class="details">\n <div class="number">\n {{ voice.queues.complete + voice.queues.abandon || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_TOTAL_OFFERED_QC\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_TOTAL_OFFERED_QC_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">\n <div class="dashboard-stat red-thunderbird">\n <div class="visual">\n <i class="icon-info"></i>\n </div>\n <div class="details">\n <div class="number">\n {{ voice.queues.unmanaged || 0 }}\n </div>\n <div class="desc">\n {{\'APPLICATION_UNMANAGED_QC\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_UNMANAGED_QC_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n </div>\n </fieldset>\n\n <fieldset>\n <legend>\n <span class="caption-subject">{{ \'APPLICATION_OUTBOUND\' | translate }}</span><small class="pull-right font-grey-cascade">{{ \'APPLICATION_TODAY_STATS\' | translate }}</small>\n </legend>\n\n <div class="row">\n <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">\n <div class="dashboard-stat green-haze">\n <div class="visual">\n <i class="icon-call-out"></i>\n </div>\n <div class="details">\n <div class="number">\n {{ voice.outbound.total || 0 }}\n </div>\n <div class="desc">\n {{\'APPLICATION_MANUAL_OUTBOUND_OB\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_MANUAL_OUTBOUND_OB_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">\n <div class="dashboard-stat grey-gallery">\n <div class="visual">\n <i class="icon-clock"></i>\n </div>\n <div class="details">\n <div class="number">\n {{ (voice.outbound.sumDuration || 0) | secToTime | date:\'HH:mm:ss\' }}\n </div>\n <div class="desc">\n {{\'APPLICATION_GLOBAL_DURATION_OB\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_GLOBAL_DURATION_OB_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">\n <div class="dashboard-stat green-jungle">\n <div class="visual">\n <i class="icon-like"></i>\n </div>\n <div class="details">\n <div class="number">\n {{ voice.outbound.answered || 0 }}\n </div>\n <div class="desc">\n {{\'APPLICATION_ANSWERED_OB\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_ANSWERED_OB_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">\n <div class="dashboard-stat yellow-gold">\n <div class="visual">\n <i class="icon-pie-chart"></i>\n </div>\n <div class="details">\n <div class="number">\n {{ (voice.outbound.avgDuration || 0) | secToTime | date:\'HH:mm:ss\' }}\n </div>\n <div class="desc">\n {{\'APPLICATION_AVG_DURATION_OB\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_AVG_DURATION_OB_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n </div>\n\n <div class="row">\n <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">\n <div class="dashboard-stat blue">\n <div class="visual">\n <i class="icon-pie-chart"></i>\n </div>\n <div class="details">\n <div class="number">\n {{ (voice.outbound.answerRate || 0) | number:2 }}\n </div>\n <div class="desc">\n {{\'APPLICATION_ANSWER_RATE_OB\' | translate}} (%)\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_ANSWER_RATE_OB_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">\n <div class="dashboard-stat purple">\n <div class="visual">\n <i class="icon-pie-chart"></i>\n </div>\n <div class="details">\n <div class="number">\n {{(voice.outbound.tigerdial || 0)}}\n </div>\n <div class="desc">\n {{\'APPLICATION_MOTION_DIALER_CALLS_OB\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_MOTION_DIALER_CALLS_OB_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n </div>\n\n </fieldset>\n </div>\n</div>\n'),a.put("app/desk/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-handbag"></i>\n <a href="/desk/list">{{ \'APPLICATION_DESK_COM\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-handbag font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_DESK_COM\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="accounts.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="/desk/wizard">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_ACCOUNT\' | translate }}\n </a>\n </div>\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="getAccounts([\'name\',\'username\',\'remoteUri\',\'authType\',\'consumerKey\',\'consumerSecret\',\'token\',\'tokenSecret\',\'password\'])" csv-header="[\'Name\', \'Username\', \'Remote Address\', \'Authentication Type\', \'Consumer Key\', \'Consumer Secret\', \'Token\', \'Token Secret\', \'Password\']" field-separator=";" filename="desk_accounts.csv">\n <i class="icon-cloud-download"></i></a>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedDeskAccounts" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="7">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.accountsByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="accountByPage in accountsByPage | filter: $select.search">\n <div ng-bind-html="accountByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input type="checkbox" ng-change="check(account, checked)" checklist-model checklist-value="id"></th>\n <th st-sort="name">{{ \'APPLICATION_NAME\' | translate }}</th>\n <th st-sort="username">{{ \'APPLICATION_EMAIL\' | translate }}</th>\n <th st-sort="remoteUri">{{ \'APPLICATION_REMOTE_ADDRESS\' | translate }}</th>\n <th>{{ \'APPLICATION_DESCRIPTION\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="account in displayedDeskAccounts" class="animate-repeat">\n <td style="text-align: center; vertical-align: middle"><input type="checkbox" checklist-model="accounts.checked" checklist-value="account.id"></td>\n <td>{{account.name}}</td>\n <td>{{account.username}}</td>\n <td>{{account.remoteUri}}</td>\n <td>{{account.description}}</td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/desk/view/{{account.id}}/account">\n {{ \'APPLICATION_EDIT\' | translate }}\n </a>\n <a class="btn default btn-xs green-stripe" data-ng-click="checkAccount(account.id)">\n {{ \'APPLICATION_CHECK\' | translate }}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(account.name,account.id)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="displayedDeskAccounts.length">\n <td colspan="7" style="text-align:center;">\n <i>No account available</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_NAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="email" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_EMAIL\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="remoteUri" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_REMOTE_ADDRESS\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td/>\n <td/>\n </tr>\n <tr>\n <td colspan="7" class="text-center">\n <div class="pagination" st-pagination st-items-by-page="conf.accountsByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/desk/view/view.account.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_ACCOUNT\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERALS\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.formSetting" data-ng-submit="forms.formSetting.$valid && updateItem()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.name" required/>\n <span data-ng-show="forms.formSetting.name.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="account.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="account.username" required/>\n <span data-ng-show="forms.formSetting.username.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START REMOTE ADDRESS -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.remoteUri.$invalid}">\n <label class="control-label">{{\'APPLICATION_REMOTE_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="remoteUri" placeholder="{{\'APPLICATION_REMOTE_ADDRESS\' | translate}}" class="form-control" data-ng-model="account.remoteUri" required />\n <span data-ng-show="forms.formSetting.remoteUri.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START AUTH TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.authType.$invalid}">\n <label class="control-label">{{\'APPLICATION_AUTHENTICATION_TYPE\' | translate}}</label>\n <ui-select data-ng-model="account.authType" name="authType" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_AUTHENTICATION_TYPE\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="type in [\'basic\', \'oauth\'] | filter: $select.search">\n <div data-ng-bind="type | capitalize | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.formSetting.authType.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- START AUTH TYPE -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.password.$invalid}" ng-slide-down="account.authType == \'basic\'" lazy-render duration="1">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="account.password" required/>\n <span data-ng-show="forms.formSetting.password.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START CONSUMER KEY -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.consumerKey.$invalid}" ng-slide-down="account.authType == \'oauth\'" lazy-render duration="1">\n <label class="control-label">{{\'APPLICATION_CONSUMER_KEY\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="consumerKey" placeholder="{{\'APPLICATION_CONSUMER_KEY\' | translate}}" class="form-control" data-ng-model="account.consumerKey" required/>\n <span data-ng-show="forms.formSetting.consumerKey.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CONSUMER KEY -->\n\n <!-- START CONSUMER SECRET -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.consumerSecret.$invalid}" ng-slide-down="account.authType == \'oauth\'" lazy-render duration="1">\n <label class="control-label">{{\'APPLICATION_CONSUMER_SECRET\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="consumerSecret" placeholder="{{\'APPLICATION_CONSUMER_SECRET\' | translate}}" class="form-control" data-ng-model="account.consumerSecret" required/>\n <span data-ng-show="forms.formSetting.consumerSecret.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CONSUMER SECRET -->\n\n <!-- START TOKEN -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.token.$invalid}" ng-slide-down="account.authType == \'oauth\'" lazy-render duration="1">\n <label class="control-label">{{\'APPLICATION_TOKEN\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="token" placeholder="{{\'APPLICATION_TOKEN\' | translate}}" class="form-control" data-ng-model="account.token" required/>\n <span data-ng-show="forms.formSetting.token.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TOKEN -->\n\n <!-- START TOKEN SECRET-->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.tokenSecret.$invalid}" ng-slide-down="account.authType == \'oauth\'" lazy-render duration="1">\n <label class="control-label">{{\'APPLICATION_TOKEN_SECRET\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="tokenSecret" placeholder="{{\'APPLICATION_TOKEN_SECRET\' | translate}}" class="form-control" data-ng-model="account.tokenSecret" required/>\n <span data-ng-show="forms.formSetting.tokenSecret.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TOKEN SECRET-->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/desk/view/view.configuration.html",'<div class="row" data-ng-init="initConfiguration()">\n <div class="col-md-12">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_CONFIGURATION\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createConfiguration()">\n <wz-step title="{{\'APPLICATION_SETTINGS\' | translate}}" canexit="formValidation(formsConfiguration.info.$valid)">\n <form name="formsConfiguration.info" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': formsConfiguration.info.$submitted && formsConfiguration.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="configuration.name" required/>\n <span data-ng-show="formsConfiguration.info.name.$invalid && formsConfiguration.info.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="configuration.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" data-ng-click="goNext()"/>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'), +a.put("app/desk/view/view.configurationSettings.html",'<div class="row" data-ng-init="getConfiguration();getVariables();getFields();">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_CONFIGURATION\' | translate}}: {{configurationName}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_SUBJECT\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_DESCRIPTION\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_3" data-toggle="tab">{{\'APPLICATION_FIELDS\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- SUBJECT TAB -->\n <div class="tab-pane ui-padding active" id="tab_1_1">\n <div class="row">\n <div class="col-md-11">\n <span class="caption-subject">All following fields will be join by blank space:</span>\n </div>\n <div class="col-md-1 pull-rigth">\n <button class="btn btn-icon-only green" data-ng-click="addItemSubject()"><i class="fa fa-plus"></i></button>\n </div>\n </div>\n <hr>\n <!-- <div ng-scrollbars ng-scrollbars-config="config"> -->\n <div class="row" data-ng-repeat="subjectItem in subjectConfig">\n <div class="col-md-3">\n <ui-select ng-model="subjectItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeType(subjectItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in fieldType | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-8" data-ng-if="subjectItem.type==\'string\'">\n <div class="form-group">\n <input type="text" class="form-control" data-ng-model="subjectItem.content" data-ng-change="updateField(subjectItem)">\n </div>\n </div>\n <div class="col-md-8" data-ng-if="subjectItem.type==\'variable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="subjectItem.VariableId" data-ng-change="updateField(subjectItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="variable.id as variable in variables | filter: $select.search">\n <div ng-bind-html="variable.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-1">\n <div class="form-group">\n <button class="btn btn-icon-only red" data-ng-click="removeItem(subjectItem)"><i class="fa fa-times"></i></button>\n </div>\n </div>\n </div>\n <!-- </div> -->\n </div>\n <!-- END SUBJECT TAB -->\n <!-- DESCRIPTION TAB -->\n <div class="tab-pane ui-padding" id="tab_1_2">\n <div class="row">\n <div class="col-md-11">\n <span class="caption-subject">All following fields will be join by new line:</span>\n </div>\n <div class="col-md-1 pull-rigth">\n <button class="btn btn-icon-only green" data-ng-click="addItemDescription()"><i class="fa fa-plus"></i></button>\n </div>\n </div>\n <hr>\n <!-- <div ng-scrollbars ng-scrollbars-config="config"> -->\n <div class="row" data-ng-repeat="descriptionItem in descriptionConfig">\n <!-- <pre>\n {{descriptionItem|json}}\n </pre> -->\n <div class="col-md-2">\n <ui-select ng-model="descriptionItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeDescType(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected | ucfirst}}</ui-select-match>\n <ui-select-choices repeat="item in descFieldType | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | ucfirst"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-9" data-ng-if="descriptionItem.type==\'string\'">\n <div class="form-group">\n <input type="text" class="form-control" data-ng-model="descriptionItem.content" data-ng-change="updateField(descriptionItem)">\n </div>\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'key_value\'">\n <input type="text" class="form-control" placeholder="Key" data-ng-model="descriptionItem.key" data-ng-change="updateField(descriptionItem)">\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'key_value\'">\n <ui-select ng-model="descriptionItem.keyType" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeDescType(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in fieldType | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'key_value\' && descriptionItem.keyType==\'string\'">\n <input type="text" class="form-control" placeholder="Value" data-ng-model="descriptionItem.keyContent" data-ng-change="updateField(descriptionItem)">\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'key_value\' && descriptionItem.keyType==\'variable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="descriptionItem.VariableId" data-ng-change="updateField(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="variable.id as variable in variables | filter: $select.search">\n <div ng-bind-html="variable.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-1">\n <div class="form-group">\n <button class="btn btn-icon-only red" data-ng-click="removeItem(descriptionItem)"><i class="fa fa-times"></i></button>\n </div>\n </div>\n </div>\n <!-- </div> -->\n </div>\n <!-- END DESCRIPTION TAB -->\n <!-- FIELDS TAB -->\n <div class="tab-pane ui-padding" id="tab_1_3">\n <div class="row">\n <div class="col-md-11">\n <span class="caption-subject">Add how to fill the fields present in your account:</span>\n </div>\n <div class="col-md-1 pull-rigth">\n <button class="btn btn-icon-only green" data-ng-click="addItemField()"><i class="fa fa-plus"></i></button>\n </div>\n </div>\n <hr>\n <!-- <div ng-scrollbars ng-scrollbars-config="config"> -->\n <div class="row" data-ng-repeat="fieldItem in fieldConfig">\n <div class="col-md-3">\n <ui-select ng-model="fieldItem.idField" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeFieldType(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.label}}</ui-select-match>\n <ui-select-choices repeat="item.id as item in accountFields | filter: $select.search">\n <div ng-bind-html="item.label | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-8" data-ng-if="getSystemFieldOptions(fieldItem.idField)">\n <div class="form-group">\n <ui-select ng-model="fieldItem.content" theme="bootstrap" ng-disabled="disabled" data-ng-change="updateField(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="item in getSystemFieldOptions(fieldItem.idField) | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField)">\n <div class="form-group">\n <ui-select ng-model="fieldItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeType(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected | ucfirst}}</ui-select-match>\n <ui-select-choices repeat="item in fieldType | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | ucfirst"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'string\'">\n <div class="form-group">\n <input type="text" class="form-control" data-ng-model="fieldItem.content" data-ng-change="updateField(fieldItem)">\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'variable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="fieldItem.VariableId" data-ng-change="updateField(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="variable.id as variable in variables | filter: $select.search">\n <div ng-bind-html="variable.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-1">\n <div class="form-group">\n <button class="btn btn-icon-only red" data-ng-click="removeItem(fieldItem)"><i class="fa fa-times"></i></button>\n </div>\n </div>\n </div>\n <!-- </div> -->\n </div>\n <!-- END FIELDS TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/desk/view/view.configurations.html",'<div ui-view class="profile-content">\n <div class="row" data-ng-init="getConfigurations()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_CONFIGURATIONS\' | translate}}</span>\n </div>\n <div class="actions">\n <div class="btn-group">\n <a class="btn green-jungle " href="/desk/view/{{account.id}}/configuration" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_CONFIGURATION\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table class="table table-striped table-bordered table-hover">\n <thead>\n <tr>\n <th>{{\'APPLICATION_NAME\' | translate}}</th>\n <th>{{\'APPLICATION_DESCRIPTION\' | translate}}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="configuration in configurations">\n <td>{{configuration.name}}</td>\n <td>{{configuration.description}}</td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/desk/view/{{account.id}}/configurations/settings/{{configuration.id}}">\n {{ \'APPLICATION_SETTINGS\' | translate}}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteConfiguration(configuration.name,configuration.id)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="configurations.length">\n <td colspan="5" style="text-align:center;">\n <i>No configuration available</i>\n </td>\n </tr>\n </tbody>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/desk/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-handbag"></i>\n <a href="/desk/list">{{ \'APPLICATION_DESK_COM\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <a href="#">{{account.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img src="assets/images/media/desk.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{account.name}}\n </div>\n <div class="profile-usertitle-job">\n {{account.remoteUri}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.desk.view.account\')}">\n <a ng-href="/desk/view/{{account.id}}/account">\n <i class="icon-user"></i>\n {{ \'APPLICATION_ACCOUNT\' | translate }} </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.desk.view.configurations\') || $state.is(\'main.desk.view.configuration\')}">\n <a ng-href="/desk/view/{{account.id}}/configurations">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_CONFIGURATIONS\' | translate }} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/desk/wizard/wizard.html",'<!-- BEGIN PAGE HEADER-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-handbag"></i>\n <a href="/desk/list">{{ \'APPLICATION_DESK_COM\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n<!-- END PAGE HEADER-->\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initWizard()">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACCOUNT\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_ACCOUNT_INFO\' | translate}}" canexit="exitValidation(forms.formSetting.$valid)">\n <form name="forms.formSetting" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="forms.formSetting.name.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.username" required ng-remote-validate="/api/desk/accounts/validate/username"/>\n <span data-ng-show="forms.formSetting.username.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.formSetting.username.$touched || forms.formSetting.$submitted) && forms.formSetting.username.$error.ngRemoteValidate" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_EXIST_USERNAME\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n\n <!-- START REMOTE ADDRESS -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.remoteUri.$invalid}">\n <label class="control-label">{{\'APPLICATION_REMOTE_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="remoteUri" placeholder="{{\'APPLICATION_REMOTE_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.remoteUri" required ng-remote-validate="/api/desk/accounts/validate/remoteUri"/>\n <span data-ng-show="forms.formSetting.remoteUri.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.formSetting.remoteUri.$touched || forms.formSetting.$submitted) && forms.formSetting.remoteUri.$error.ngRemoteValidate" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_EXIST_DOMAIN\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START AUTH TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.authType.$invalid}">\n <label class="control-label">{{\'APPLICATION_AUTHENTICATION_TYPE\' | translate}}</label>\n <ui-select data-ng-model="item.authType" name="authType" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_AUTHENTICATION_TYPE\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="type in [\'basic\', \'oauth\'] | filter: $select.search">\n <div data-ng-bind="type | capitalize | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.formSetting.authType.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- START AUTH TYPE -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.password.$invalid}" ng-slide-down="item.authType == \'basic\'" lazy-render duration="1">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.password" required/>\n <span data-ng-show="forms.formSetting.password.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START CONSUMER KEY -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.consumerKey.$invalid}" ng-slide-down="item.authType == \'oauth\'" lazy-render duration="1">\n <label class="control-label">{{\'APPLICATION_CONSUMER_KEY\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="consumerKey" placeholder="{{\'APPLICATION_CONSUMER_KEY\' | translate}}" class="form-control" data-ng-model="item.consumerKey" required/>\n <span data-ng-show="forms.formSetting.consumerKey.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CONSUMER KEY -->\n\n <!-- START CONSUMER SECRET -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.consumerSecret.$invalid}" ng-slide-down="item.authType == \'oauth\'" lazy-render duration="1">\n <label class="control-label">{{\'APPLICATION_CONSUMER_SECRET\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="consumerSecret" placeholder="{{\'APPLICATION_CONSUMER_SECRET\' | translate}}" class="form-control" data-ng-model="item.consumerSecret" required/>\n <span data-ng-show="forms.formSetting.consumerSecret.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CONSUMER SECRET -->\n\n <!-- START TOKEN -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.token.$invalid}" ng-slide-down="item.authType == \'oauth\'" lazy-render duration="1">\n <label class="control-label">{{\'APPLICATION_TOKEN\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="token" placeholder="{{\'APPLICATION_TOKEN\' | translate}}" class="form-control" data-ng-model="item.token" required/>\n <span data-ng-show="forms.formSetting.token.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TOKEN -->\n\n <!-- START TOKEN SECRET-->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.tokenSecret.$invalid}" ng-slide-down="item.authType == \'oauth\'" lazy-render duration="1">\n <label class="control-label">{{\'APPLICATION_TOKEN_SECRET\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="tokenSecret" placeholder="{{\'APPLICATION_TOKEN_SECRET\' | translate}}" class="form-control" data-ng-model="item.tokenSecret" required/>\n <span data-ng-show="forms.formSetting.tokenSecret.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TOKEN SECRET-->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" data-ng-click="next()"/>\n\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n\n </wizard>\n\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/freshdesk/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-handbag"></i>\n <a href="/freshdesk/list">{{ \'APPLICATION_FRESHDESK\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-handbag font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_FRESHDESK\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="/freshdesk/wizard">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_ACCOUNT\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/freshdesk/view/configuration/list/create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_CONFIGURATION\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.name.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(form.name.$touched || form.name.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START CHANNEL -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.channel.$touched || form.channel.$submitted) && form.channel.$invalid}">\n <label class="control-label">{{\'APPLICATION_CHANNEL\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.channel" name="channel" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_CHANNEL\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="channel.value as channel in channels | filter: $select.search">\n <div data-ng-bind="channel.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form.channel.$touched || form.channel.$submitted) && form.channel.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- START CHANNEL -->\n\n <!-- START VOICE SUBTYPE -->\n <div data-ng-if="item.channel===\'voice\'" class="form-group" data-ng-class="{\'has-error\': (form.channel.$touched || form.channel.$submitted) && form.channel.$invalid}">\n <label class="control-label">{{\'APPLICATION_TYPE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.type" name="type" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_TYPE\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="type in [\'Queue\',\'Outbound\'] | filter: $select.search">\n <div data-ng-bind="type | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form.type.$touched || form.type.$submitted) && form.type.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- START CHANNEL -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'), +a.put("app/freshdesk/view/configuration/list/list.html",'<div ui-view class="profile-content">\n <div class="row">\n <div class="col-md-12">\n <div class="portlet light" data-ng-init="initView()">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_CONFIGURATIONS\' | translate}}</span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="#" data-ng-click="createItem()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_CONFIGURATION\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/freshdesk/view/configuration/view/view.html",'<div class="row" data-ng-init="initView();getConfiguration();getCustomVariables();getFields();getTags();">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_CONFIGURATION\' | translate}}: {{configurationName}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_SUBJECT\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_DESCRIPTION\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_3" data-toggle="tab">{{\'APPLICATION_FIELDS\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_4" data-toggle="tab">{{\'APPLICATION_TAGS\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- SUBJECT TAB -->\n <div class="tab-pane ui-padding active" id="tab_1_1">\n <div class="row">\n <div class="col-md-11">\n <span class="caption-subject">All following fields will be join by blank space:</span>\n </div>\n <div class="col-md-1 pull-rigth">\n <button class="btn btn-icon-only green" data-ng-click="addItem(\'subject\')"><i class="fa fa-plus"></i></button>\n </div>\n </div>\n <hr>\n <!-- <div id="subject-item-list" ng-scrollbars ng-scrollbars-config="config"> -->\n <div class="row" data-ng-repeat="subjectItem in subjectConfig">\n <div class="col-md-3">\n <ui-select ng-model="subjectItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeType(subjectItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices repeat="item.type as item in fieldType | filter: $select.search">\n <div ng-bind-html="item.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-8" data-ng-if="subjectItem.type==\'string\'">\n <div class="form-group">\n <input type="text" class="form-control" data-ng-model="subjectItem.content" data-ng-change="updateField(subjectItem)">\n </div>\n </div>\n <div class="col-md-8" data-ng-if="subjectItem.type==\'variable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="subjectItem.variableName" data-ng-change="updateField(subjectItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices group-by="groupVariableByGroup" repeat="variable.name as variable in variables | filter: $select.search">\n <div ng-bind-html="variable.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-8" data-ng-if="subjectItem.type==\'customVariable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="subjectItem.VariableId" data-ng-change="updateField(subjectItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="variable.id as variable in customVariables | filter: $select.search">\n <div ng-bind-html="variable.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-1">\n <div class="form-group">\n <button class="btn btn-icon-only red" data-ng-click="removeItem(subjectItem)"><i class="fa fa-times"></i></button>\n </div>\n </div>\n </div>\n <!-- </div> -->\n </div>\n <!-- END SUBJECT TAB -->\n <!-- DESCRIPTION TAB -->\n <div class="tab-pane ui-padding" id="tab_1_2">\n <div class="row">\n <div class="col-md-11">\n <span class="caption-subject">All following fields will be join by new line:</span>\n </div>\n <div class="col-md-1 pull-rigth">\n <button class="btn btn-icon-only green" data-ng-click="addItem(\'description\')"><i class="fa fa-plus"></i></button>\n </div>\n </div>\n <hr>\n <!-- <div id="description-item-list" ng-scrollbars ng-scrollbars-config="config"> -->\n <div class="row" data-ng-repeat="descriptionItem in descriptionConfig">\n <div class="col-md-2">\n <ui-select ng-model="descriptionItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeDescType(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices repeat="item.type as item in descFieldType | filter: $select.search">\n <div ng-bind-html="item.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-9" data-ng-if="descriptionItem.type==\'string\'">\n <div class="form-group">\n <input type="text" class="form-control" data-ng-model="descriptionItem.content" data-ng-change="updateField(descriptionItem)">\n </div>\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\'">\n <input type="text" class="form-control" placeholder="Key" data-ng-model="descriptionItem.key" data-ng-change="updateField(descriptionItem)">\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\'">\n <ui-select ng-model="descriptionItem.keyType" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeDescType(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices repeat="item.type as item in fieldType | filter: $select.search">\n <div ng-bind-html="item.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\' && descriptionItem.keyType==\'string\'">\n <input type="text" class="form-control" placeholder="Value" data-ng-model="descriptionItem.keyContent" data-ng-change="updateField(descriptionItem)">\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\' && descriptionItem.keyType==\'variable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="descriptionItem.variableName" data-ng-change="updateField(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices group-by="groupVariableByGroup" repeat="variable.name as variable in variables | filter: $select.search">\n <div ng-bind-html="variable.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\' && descriptionItem.keyType==\'customVariable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="descriptionItem.VariableId" data-ng-change="updateField(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="variable.id as variable in customVariables | filter: $select.search">\n <div ng-bind-html="variable.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-1">\n <div class="form-group">\n <button class="btn btn-icon-only red" data-ng-click="removeItem(descriptionItem)"><i class="fa fa-times"></i></button>\n </div>\n </div>\n </div>\n <!-- </div> -->\n </div>\n <!-- END DESCRIPTION TAB -->\n <!-- FIELDS TAB -->\n <div class="tab-pane ui-padding" id="tab_1_3">\n <div class="row">\n <div class="col-md-11">\n <span class="caption-subject">Add how to fill the fields present in your account:</span>\n </div>\n <div class="col-md-1 pull-rigth">\n <button class="btn btn-icon-only green" data-ng-click="addItem(\'field\')"><i class="fa fa-plus"></i></button>\n </div>\n </div>\n <hr>\n <!-- <div id="field-item-list" ng-scrollbars ng-scrollbars-config="config"> -->\n <div class="row" data-ng-repeat="fieldItem in fieldConfig">\n <div class="col-md-3">\n <ui-select ng-model="fieldItem.idField" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeFieldType(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.label}}</ui-select-match>\n <ui-select-choices repeat="item.name as item in accountFields | filter: $select.search">\n <div ng-bind-html="item.label | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-8" data-ng-if="getSystemFieldOptions(fieldItem.idField)">\n <div class="form-group">\n <ui-select ng-model="fieldItem.content" theme="bootstrap" ng-disabled="disabled" data-ng-change="updateField(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="item in getSystemFieldOptions(fieldItem.idField) | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField)">\n <div class="form-group">\n <ui-select ng-model="fieldItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeType(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices repeat="item.type as item in fieldType | filter: $select.search">\n <div ng-bind-html="item.title | highlight: $select.search | ucfirst"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'string\'">\n <div class="form-group">\n <input type="text" class="form-control" data-ng-model="fieldItem.content" data-ng-change="updateField(fieldItem)">\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'variable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="fieldItem.variableName" data-ng-change="updateField(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices group-by="groupVariableByGroup" repeat="variable.name as variable in variables | filter: $select.search">\n <div ng-bind-html="variable.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'customVariable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="fieldItem.VariableId" data-ng-change="updateField(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="variable.id as variable in customVariables | filter: $select.search">\n <div ng-bind-html="variable.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-1">\n <div class="form-group">\n <button class="btn btn-icon-only red" data-ng-click="removeItem(fieldItem)"><i class="fa fa-times"></i></button>\n </div>\n </div>\n </div>\n <!-- </div> -->\n </div>\n <!-- END FIELDS TAB -->\n <!-- TAG TAB -->\n <div class="tab-pane ui-padding" id="tab_1_4">\n <div class="row">\n <div class="col-md-12">\n <span class="caption-subject">Select tags that you want add in the ticket:</span>\n </div>\n </div>\n <hr>\n <form name="forms.tags" data-ng-submit="updateTags()" novalidate>\n <!-- TAG -->\n <div class="form-group">\n <ui-select multiple data-ng-model="selectedTags.tags" theme="bootstrap" name="tags" ng-disabled="disabled">\n <ui-select-match placeholder="{{ \'APPLICATION_TAGS\' | translate }}">{{$item.name}}</ui-select-match>\n <ui-select-choices repeat="tag.id as tag in tags | filter: $select.search">\n {{tag.name}}\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END TAG -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END TAG TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/freshdesk/view/view.account.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_ACCOUNT\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERALS\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.formSetting" data-ng-submit="forms.formSetting.$valid && updateItem()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.name" required/>\n <span data-ng-show="forms.formSetting.name.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="account.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="account.username" required/>\n <span data-ng-show="forms.formSetting.username.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START REMOTE ADDRESS -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.remoteUri.$invalid}">\n <label class="control-label">{{\'APPLICATION_REMOTE_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="remoteUri" placeholder="{{\'APPLICATION_REMOTE_ADDRESS\' | translate}}" class="form-control" data-ng-model="account.remoteUri" required />\n <span data-ng-show="forms.formSetting.remoteUri.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START API KEY -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.apiKey.$invalid}">\n <label class="control-label">{{\'APPLICATION_API_KEY\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="apiKey" placeholder="{{\'APPLICATION_API_KEY\' | translate}}" class="form-control" data-ng-model="account.apiKey" required/>\n <span data-ng-show="forms.formSetting.apiKey.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END API KEY -->\n\n <!-- START SERVER URL -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.serverUrl.$invalid}">\n <label class="control-label">{{\'APPLICATION_MOTION_ADDRESS\' | translate}}</label>\n <input type="url" name="serverUrl" placeholder="{{\'APPLICATION_MOTION_ADDRESS\' | translate}}" class="form-control" data-ng-model="account.serverUrl"/>\n <span class="help-block">\n {{\'DESCRIPTION_SERVER_URL\' | translate}}.\n </span>\n <span class="help-block help-block-info">\n {{\'MESSAGE_MOTION_ADDRESS_FORMAT\' | translate}}\n </span>\n </div>\n <!-- END SERVER URL -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/freshdesk/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-handbag"></i>\n <a href="/freshdesk/list">{{ \'APPLICATION_FRESHDESK\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <a href="#">{{account.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img src="assets/images/media/freshdesk.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{account.name}}\n </div>\n <div class="profile-usertitle-job">\n {{account.remoteUri}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.freshdesk.view.account\')}">\n <a ng-href="/freshdesk/view/{{account.id}}/account">\n <i class="icon-user"></i>\n {{ \'APPLICATION_ACCOUNT\' | translate }} </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.freshdesk.view.configurations\') || $state.is(\'main.freshdesk.view.configuration\')}">\n <a ng-href="/freshdesk/view/{{account.id}}/configurations/list">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_CONFIGURATIONS\' | translate }} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/freshdesk/wizard/wizard.html",'<!-- BEGIN PAGE HEADER-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-handbag"></i>\n <a href="/freshdesk/list">{{ \'APPLICATION_FRESHDESK\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n<!-- END PAGE HEADER-->\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initWizard()">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACCOUNT\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_ACCOUNT_INFO\' | translate}}" canexit="exitValidation(forms.formSetting.$valid)">\n <form name="forms.formSetting" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="forms.formSetting.name.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="item.username" required ng-remote-validate="/api/freshdesk/accounts/validate/username"/>\n <span data-ng-show="forms.formSetting.username.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.formSetting.username.$touched || forms.formSetting.$submitted) && forms.formSetting.username.$error.ngRemoteValidate" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_EXIST_USERNAME\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n\n <!-- START REMOTE ADDRESS -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.remoteUri.$invalid}">\n <label class="control-label">{{\'APPLICATION_REMOTE_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="remoteUri" placeholder="{{\'APPLICATION_REMOTE_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.remoteUri" required ng-remote-validate="/api/freshdesk/accounts/validate/remoteUri"/>\n <span data-ng-show="forms.formSetting.remoteUri.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.formSetting.remoteUri.$touched || forms.formSetting.$submitted) && forms.formSetting.remoteUri.$error.ngRemoteValidate" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_EXIST_DOMAIN\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START API KEY -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.apiKey.$invalid}">\n <label class="control-label">{{\'APPLICATION_API_KEY\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="apiKey" placeholder="{{\'APPLICATION_API_KEY\' | translate}}" class="form-control" data-ng-model="item.apiKey" required/>\n <span data-ng-show="forms.formSetting.apiKey.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END API KEY -->\n\n <!-- START SERVER URL -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.serverUrl.$invalid}">\n <label class="control-label">{{\'APPLICATION_MOTION_ADDRESS\' | translate}}</label>\n <input type="url" name="serverUrl" placeholder="{{\'APPLICATION_MOTION_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.serverUrl"/>\n <span class="help-block">\n {{\'DESCRIPTION_SERVER_URL\' | translate}}.\n </span>\n <span class="help-block help-block-info">\n {{\'MESSAGE_MOTION_ADDRESS_FORMAT\' | translate}}\n </span>\n </div>\n <!-- END SERVER URL -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" data-ng-click="next()"/>\n\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n\n </wizard>\n\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/iframe/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-chrome"></i>\n <a href="#" data-ng-if="!Auth.isAgent()">{{ \'APPLICATION_IFRAME\' | translate }}</a>\n <a href="#" data-ng-if="Auth.isAgent()">{{ iframe.title || iframe.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar" data-ng-if="!Auth.isAgent()">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img src="assets/images/media/iframe.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{iframe.title}}\n </div>\n <div class="profile-usertitle-job">\n {{ \'APPLICATION_IFRAME\' | translate }}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div class="profile-content" data-ng-if="!Auth.isAgent()">\n <div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_IFRAME\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERALS\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.formSetting" data-ng-submit="forms.formSetting.$valid && updateItem()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="iframe.title" required/>\n <span data-ng-show="forms.formSetting.name.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START REMOTE ADDRESS -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.remoteUri.$invalid}">\n <label class="control-label">{{\'APPLICATION_URL\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="remoteUri" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="iframe.remoteUri" required />\n <span data-ng-show="forms.formSetting.remoteUri.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}" />\n </form>\n </div>\n <!-- END GENERAL TAB -->\n\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <!-- END PROFILE CONTENT -->\n\n <div class="row" data-ng-if="Auth.isAgent()">\n <div class="col-md-12">\n <iframe ng-if="url" style="height: 600px" src="{{url}}" />\n </div>\n </div>\n\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'), +a.put("app/integration/list/list.html",'\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-game-controller"></i>\n <a href="/integrations/list">{{ \'APPLICATION_INTEGRATIONS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initList()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-eye font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_INTEGRATIONS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <span class="btn green-jungle btn-file">\n <span> <i class="icon-plus"></i> New App </span>\n <input type="file" accept=".zip" nv-file-select="" uploader="uploader"/>\n </span>\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="displayedIntegrations" filename="integrations.csv">\n <i class="icon-cloud-download"></i></a>\n <a class="btn btn-icon-only btn-default fullscreen" href="#"></a>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedIntegrations" st-safe-src="integrations" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="6">\n <div class="row">\n <div class="col-md-6">\n <select class="form-control input-small select2me" data-ng-model="integrationsByPage">\n <option value="10">10</option>\n <option value="25">25</option>\n <option value="50">50</option>\n <option value="{{integrations.length}}">{{ \'APPLICATION_ALL\' | translate }}</option>\n </select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th st-sort="id" width="5%" st-sort-default="reverse">{{ \'APPLICATION_ID\' | translate }}</th>\n <th st-sort="fullname">{{ \'APPLICATION_NAME\' | translate }}</th>\n <th st-sort="name">{{ \'APPLICATION_FILENAME\' | translate }}</th>\n <th st-sort="name">{{ \'APPLICATION_VERSION\' | translate }}</th>\n <th st-sort="name">{{ \'APPLICATION_DESCRIPTION\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="integration in displayedIntegrations">\n <td>{{integration.id}}</td>\n <td>{{integration.name}}</td>\n <td>{{integration.filename}}</td>\n <td>{{integration.version}}</td>\n <td>{{integration.description}}</td>\n <td>\n <span class="btn default btn-xs blue-stripe btn-file">\n <span> {{ \'APPLICATION_UPDATE\' | translate }} </span>\n <input type="file" accept=".zip" nv-file-select="" uploader="uploader"/>\n </span>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(integration.name, integration.id)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="integrations.length">\n <td colspan="6" style="text-align:center;">\n <i>No integrations available</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="id" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_NAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="filename" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_FILENAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n </td>\n <td>\n </td>\n <td>\n </td>\n </tr>\n <tr>\n <td colspan="6" class="text-center">\n <div st-pagination class="pagination" st-items-by-page="integrationsByPage" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/jscripty/project/list/list.create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_PROJECT\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/jscripty/project/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-slack"></i>\n <a href="/jscripty/projects/list">{{ \'APPLICATION_PROJECTS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_PROJECTS\' | translate }}</a> </span>\n </div>\n <div class="actions" ng-show="!Auth.isAgent()">\n <div class="btn-group">\n <a class="btn btn-default" href="#" data-ng-click="gridOptions.getPage();">\n <i class="icon-reload"></i>\n </a>\n </div>\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" ng-click="createItem()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_PROJECT\' | translate }}\n </a>\n </div>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n\n <!-- <div class="table-responsive"> -->\n\n\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/jscripty/project/report/report.detail.html",'<div class="portlet light bordered" data-ng-init="getProjectDetail();initView()">\n<div class="portlet-title">\n<div class="caption font-green-sharp">\n<i class="fa fa-list font-green-sharp"></i>\n<span class="caption-subject">{{ \'APPLICATION_SUMMARY\' | translate }}</a> </span>\n</div>\n<div class="actions">\n <div class="btn-group">\n <button class="btn btn-icon-only btn-primary" data-ng-click="pdf(\'header\',projectDetail)">\n <i class="fa fa-download"></i>\n </button>\n <!-- <button class="btn btn-icon-only btn-default" data-ng-click="accordion.expandAll()">\n <i class="fa fa-folder-open-o"></i>\n </button>\n <button class="btn btn-icon-only btn-default" data-ng-click="accordion.collapseAll()">\n <i class="fa fa-folder"></i>\n </button> -->\n </div>\n</div>\n</div>\n<div id=\'detail\' class="portlet-body">\n <div class="alert alert-success text-center" ng-show="!projectDetail.length">\n <h4>{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</h4>\n </div>\n <div class="row" ng-show="projectDetail.length">\n <div class="col-md-10 col-md-offset-1">\n <div id="header" class="panel panel-info">\n <div class="panel-heading">\n <strong>Project Name: </strong>{{project.name}}<br>\n <strong>Project Id: </strong>{{project.id}}<br>\n <strong>Completed: </strong>{{projectStats.completed}}<br>\n <strong>Incomplete: </strong>{{projectStats.incomplete}}<br>\n <strong>% Completed: </strong>{{projectStats.completed * 100 /(projectStats.completed + projectStats.incomplete) | number:2}}<br>\n </div>\n </div><br>\n <v-accordion class="vAccordion--default" multiple control="accordion">\n <v-pane id="{{question.question_id }}" ng-repeat="question in projectDetail" expanded="true">\n <v-pane-header>\n Question Id: {{question.question_id}}\n </v-pane-header>\n <v-pane-content>\n <div ng-class=" {{question.graphData.length > 0}} ? \'col-md-8\' : \'col-md-12\'">\n <div class="row">\n <div class="col-md-10 col-md-offset-1 ">\n <h4><strong>{{question.question_label}}</strong> : {{question.question_text}}</h4>\n <br><br>\n <table ng-if="question.choices.length" class="table table-hover" style="table-layout: fixed; width: 100%">\n <thead>\n <tr>\n <th>Response</th>\n <th> #Response </th>\n <th> % </th>\n </tr>\n </thead>\n <tbody>\n <tr ng-if="!choice.other_option" ng-repeat="choice in question.choices ">\n <td style="word-wrap: break-word">{{choice.value}}</td>\n <td>{{choice.count}}</td>\n <td>{{choice.percentage | number:2}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div class="row" ng-if="question.question_other_label">\n <!-- <div class="row" ng-if="choice.other_option" ng-repeat="choice in question.choices "> -->\n <!-- <div class="col-md-10 col-md-offset-1 ">\n <strong>{{choice.value}}</strong> <span class="badge">{{choice.count}}</span><br>\n </div> -->\n <!-- accordions can be nested :) -->\n <v-accordion >\n <v-pane >\n <!-- ng-repeat="subpane in pane.subpanes" ng-disabled="subpane.isDisabled" -->\n <v-pane-header>\n <strong>{{question.question_other_label}}</strong><br>\n </v-pane-header>\n <v-pane-content>\n <table ng-if="question.choices.length" class="table table-hover" style="table-layout: fixed; width: 100%">\n <thead>\n <tr>\n <th>Response</th>\n <th> #Response </th>\n <!-- <th> % </th> -->\n </tr>\n </thead>\n <tbody>\n\n <tr ng-if="choice.other_option" ng-repeat="choice in question.choices ">\n <td style="word-wrap: break-word">{{choice.value}}</td>\n <td>{{choice.count}}</td>\n <!-- <td>{{choice.percentage | number:2}}</td> -->\n </tr>\n </tbody>\n </table>\n </v-pane-content>\n </v-pane>\n </v-accordion>\n </div>\n <div class="row">\n <div class="col-md-10 col-md-offset-1 ">\n <h4> <strong>Total Respondents: {{question.total}}</strong></h4><br>\n </div>\n </div>\n </div>\n <div class=" col-md-4 pull-right " ng-if="question.graphType == \'bar\' && question.graphData">\n <canvas class="chart chart-bar" chart-data="question.graphData" chart-labels="question.graphLabels" chart-legend="true">\n </canvas>\n </div>\n <div class="col-md-4 pull-right " ng-if="question.graphType == \'pie\' && question.graphData">\n <canvas class="chart chart-pie" chart-data="question.graphData" chart-labels="question.graphLabels" chart-legend="true">\n </canvas>\n </div>\n </v-pane-content>\n </v-pane>\n </v-accordion>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/jscripty/project/report/report.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-edit"></i>\n <a href="/jscripty/projects/list">{{ \'APPLICATION_JSCRIPTY\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-slack"></i>\n <a href="/jscripty/projects/list">{{ \'APPLICATION_PROJECTS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-book-open"></i>\n <a href="">{{ \'APPLICATION_REPORTS\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img src="assets/images/media/report.png" class="img-responsive" >\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{project.name}}[{{project.id}}]\n </div>\n <div class="profile-usertitle-job">\n\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.jscripty.projects.report.sessions\')|| $state.is(\'main.jscripty.projects.report.sessionDetail\')}">\n <a data-ng-href=\'/jscripty/projects/report/{{projectId}}/sessions\'>\n <i class="icon-settings"></i>\n Sessions</a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.jscripty.projects.report.summary\') || $state.is( \'main.jscripty.projects.report.questionDetail\')}">\n <a data-ng-href=\'/jscripty/projects/report/{{projectId}}/summary\'>\n <i class="fa fa-bar-chart"></i>\n Questions</a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.jscripty.projects.report.detail\')}">\n <a data-ng-href=\'/jscripty/projects/report/{{projectId}}/detail\'>\n <i class="fa fa-list"></i>\n Summary</a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.jscripty.projects.report.inputs\')}">\n <a data-ng-href=\'/jscripty/projects/report/{{projectId}}/inputs\'>\n <i class="fa fa-edit"></i>\n Inputs</a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n\n </div>\n\n </div>\n\n <div class="profile-content margin-top-20">\n <div class="row">\n <div class="col-md-12">\n <div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">\n <div class="dashboard-stat2">\n <div class="display">\n <div class="number">\n <h3 class="font-green-sharp">{{projectStats.started}}</h3>\n <small>Started</small>\n </div>\n <div class="icon">\n <i class="icon-pie-chart"></i>\n </div>\n </div>\n <div class="progress-info">\n <div class="progress">\n <span style="width: 100%;" class="progress-bar progress-bar-success green-sharp">\n </span>\n </div>\n <div class="status">\n </div>\n </div>\n </div>\n </div>\n <div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">\n <div class="dashboard-stat2">\n <div class="display">\n <div class="number">\n <h3 class="font-red-haze">{{projectStats.incomplete}}</h3>\n <small>Incomplete</small>\n </div>\n <div class="icon">\n <i class="icon-chart"></i>\n </div>\n </div>\n <div class="progress-info">\n <div class="progress">\n <span style="width: 100%;" class="progress-bar progress-bar-success red-haze">\n </span>\n </div>\n <div class="status">\n </div>\n </div>\n </div>\n </div>\n <div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">\n <div class="dashboard-stat2">\n <div class="display">\n <div class="number">\n <h3 class="font-blue-sharp">{{projectStats.completed}}</h3>\n <small>Completed</small>\n </div>\n <div class="icon">\n <i class="icon-like"></i>\n </div>\n </div>\n <div class="progress-info">\n <div class="progress">\n <span style="width: 100%;" class="progress-bar progress-bar-success blue-sharp">\n </span>\n </div>\n <div class="status">\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n <div class="row">\n <div ui-view class="col-md-12">\n </div>\n </div>\n </div>\n </div>\n </div>\n'),a.put("app/jscripty/project/report/report.inputs.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light bordered" data-ng-init="getQuestionInputs()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="fa fa-edit font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_INPUTS\' | translate }}</a> </span>\n </div>\n <div class="tools">\n <!-- <a href="" class="fullscreen" data-original-title="" title="">\n </a> -->\n </div>\n </div>\n <div class="portlet-body" >\n <div ui-grid="gridOptions" ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/jscripty/project/report/report.question.detail.html",'<div class="row" data-ng-init="getDetail()">\n <div class="col-md-12">\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="fa fa-list font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_DETAIL\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body" >\n <div class="alert alert-success text-center" ng-show="!questionDetail">\n <h4>{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</h4>\n </div>\n <div class="row margin-top-20" ng-show="questionDetail">\n <div class="col-md-10 col-md-offset-1">\n <div class="panel panel-info" >\n <div class="panel-heading">\n <h3 class="panel-title">\n\n <i class="fa-chart "></i>Question Id: {{questionDetail.question_id}}\n </div>\n <div class="panel-body">\n <div class="row">\n <div class="col-md-12">\n <h4><strong>{{questionDetail.question_label}}</strong></h4>\n </div>\n </div>\n <div class="row">\n <div class="col-md-10 col-md-offset-1 ">\n <strong><h4>{{questionDetail.question_text}}</h4></strong><br>\n </div>\n </div>\n <div class="row">\n <div class="col-md-6">\n <div class="row">\n <div class="col-md-10 col-md-offset-1 ">\n <!-- <div class="alert alert-success text-center" ng-show="!questionDetail.choices.length">\n <h4>{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</h4>\n </div> -->\n <table ng-if="questionDetail.choices.length" class="table table-hover" style="table-layout: fixed; width: 100%">\n <thead>\n <tr>\n <th style="width=5%"> Value </th>\n <th style="width=5%"> Count </th>\n <th ng-if="question.graphType != \'PolarArea\'" style="width=5%"> % </th>\n </tr>\n </thead>\n <tbody>\n <tr ng-if="!choice.other_option" ng-repeat="choice in questionDetail.choices ">\n <td style="word-wrap: break-word">{{choice.value}}</td>\n <td>{{choice.count}}</td>\n <td ng-if="question.graphType != \'PolarArea\'">{{choice.percentage | number:2}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div class="row" ng-if="choice.other_option" ng-repeat="choice in questionDetail.choices ">\n <div class="col-md-6 col-md-offset-3 ">\n <strong><a href="">{{choice.value}}</a> </strong> <span class="badge">{{choice.count}}</span><br>\n\n </div>\n </div>\n <div class="row">\n <div class="col-md-10 col-md-offset-1 ">\n <h4> <strong>Total: {{questionDetail.total}}</strong></h4><br>\n </div>\n </div>\n </div>\n <div class="col-md-6 pull-right ">\n <canvas id="base" class="chart-base" chart-type="questionDetail.graphType"\n chart-data="questionDetail.graphData" chart-labels="questionDetail.graphLabels" chart-legend="true">\n </canvas>\n <!-- <button class="btn btn-success btn-sm pull-right" ng-click="toggle(questionDetail)">{{questionDetail.graphType}}</button> -->\n </div>\n </div>\n\n </div>\n\n </div>\n\n </div>\n </div>\n\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/jscripty/project/report/report.session.detail.html",'\n\n<div class="row" data-ng-init="getSessionDetails()">\n <div class="col-md-12">\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="fa fa-list font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_DETAIL\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group">\n <button class="btn btn-icon-only btn-primary" data-ng-click="pdf(\'header\',sessionQuestions)">\n <i class="fa fa-download"></i>\n </button>\n <!-- <button class="btn btn-icon-only btn-default" data-ng-click="accordion.expandAll()">\n <i class="fa fa-plus-square-o"></i>\n </button>\n <button class="btn btn-icon-only btn-default" data-ng-click="accordion.collapseAll()">\n <i class="icon-collapse-alt"></i>\n </button> -->\n </div>\n </div>\n </div>\n <div class="portlet-body" style="height: auto;">\n <div class="row margin-top-20">\n <div class="col-md-10 col-md-offset-1">\n <div id = "header" class="panel panel-info">\n <div class="panel-heading">\n <strong>Project Name: </strong>{{project.name}}<br>\n <strong>Project Id: </strong>{{project.id}}<br>\n <strong>Session Id: </strong>{{session.session_id}}<br>\n <strong>Status: </strong>{{session.status}}<br>\n <strong>Started At: </strong>{{session.createdAt}}<br>\n <strong>Closed At: </strong>{{session.completedAt}}<br>\n </div>\n </div>\n <v-accordion class="vAccordion--default" multiple control="accordion">\n <v-pane id="{{question.question_id }}" ng-repeat=" question in sessionQuestions | orderBy:\'index\'"" expanded="true">\n <v-pane-header>\n Question Id: {{question.question_id}}\n </v-pane-header>\n <v-pane-content>\n <h4><strong>{{question.question_label}}</strong> : {{question.question_text}}</h4>\n <div ng-if="question.question_type == \'question\'">\n <h4><strong>Answer: </strong>{{question.question_answer}}</h4>\n </div>\n <div ng-if="question.question_other_label">\n <h4>\n <strong>{{question.question_other_label}}: </strong>\n {{question.question_other_answer || \'No Value\'}}\n </h4>\n </div>\n <table class="table table-hover" ng-if="question.ReportJscriptyInputs.length">\n <thead>\n <tr>\n <th > Label </th>\n <th >Answer </th>\n </tr>\n </thead>\n <tbody>\n <tr ng-repeat="input in question.ReportJscriptyInputs |orderBy:\'id\'">\n <td>{{input.input_label}}</td>\n <td>{{input.input_value || \'No Value\'}}</td>\n </tr>\n </tbody>\n </table>\n </v-pane-content>\n </v-pane>\n </v-accordion>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/jscripty/project/report/report.sessions.html",'\n <div class="row" >\n <div class="col-md-12">\n <div class="portlet light bordered" data-ng-init="getProjectSessions()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-settings font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_SESSIONS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group">\n <a class="btn btn-default" href="#" data-ng-click="gridOptions.getPage();initView()">\n <i class="icon-reload"></i>\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body" >\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n </div>\n </div>\n </div>\n </div>\n'),a.put("app/jscripty/project/report/report.summary.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light bordered" data-ng-init="getQuestionSummary()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="fa fa-bar-chart font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_QUESTIONS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group">\n <!-- <a class="btn btn-default" href="#" data-ng-click="gridOptions.getPage();initView()">\n <i class="icon-reload"></i>\n </a> -->\n </div>\n </div>\n </div>\n <div class="portlet-body" >\n <div ui-grid="gridOptions" ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/jscripty/project/view/view.html",'<div class="row" data-ng-init="getProject()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-edit"></i>\n <a href="/jscripty/projects/list">{{ \'APPLICATION_JSCRIPTY\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-slack"></i>\n <a href="/jscripty/projects/list">{{ \'APPLICATION_PROJECTS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <a ng-href="/jscripty/projects/view/{{jscriptyProject.id}}">{{jscriptyProject.name}}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div id="geEditor" class="geEditor"></div>\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n<script>\n\n\n</script>\n'),a.put("app/landing/landing.html",'<!-- BEGIN LOGO -->\n<div class="logo">\n <a href="index.html">\n <img ng-src="api/settings/logo/login" alt="logo" class="custom-login-logo" onError="this.onerror=null"/>\n </a>\n</div>\n<!-- END LOGO -->\n\n<!-- BEGIN LANDING -->\n<div data-ng-init="initLanding()">\n <div data-ng-show="message" class="col-md-12 page-500" style="padding-bottom: 50px;">\n <div class="number">\n Oops!\n </div>\n <div class=" details" style="color: white;">\n <h3>{{message | translate}}.</h3>\n <p>\n Please contact your administrator.<br><br>\n </p>\n </div>\n </div>\n</div>\n<!-- END LANDING -->\n\n<div class="copyright">\n xCALLY Motion v. {{info.version}} | 2016 - {{year + 1}} © Powered by Xenialab <ng-bind-html data-ng-if="license.custom && !settings.defaultFooterWhiteLabel && settings.footerWhiteLabel" ng-bind-html="\'| \'+settings.footerWhiteLabel"></ng-bind-html>\n</div>\n'), +a.put("app/login/login.html",'<!-- BEGIN LOGO -->\n<div class="logo" data-ng-init="getInfo()">\n <a>\n <img ng-src="api/settings/logo/login" alt="logo" class="custom-login-logo" onError="this.onerror=null"/>\n </a>\n</div>\n<!-- END LOGO -->\n<!-- BEGIN LOGIN -->\n<div class="content">\n <!-- BEGIN LOGIN FORM -->\n <form class="login-form" name="loginForm" data-ng-if="!forgotPassword" data-ng-submit="login(loginForm)" novalidate>\n <h3 class="form-title">Sign In</h3>\n <div class="alert alert-success" data-ng-show="recovered">\n <button class="close" data-close="alert"></button>\n <span>{{\'MESSAGE_ACCOUNT_RECOVERED\' | translate}}</span>\n </div>\n <div class="alert alert-danger" data-ng-class="{\'display-hide\': !loginForm.$submitted || !errorLogin}">\n <button class="close" data-close="alert"></button>\n <span>{{ errorLog ? errorLog : (\'MESSAGE_INSERT_USER_OR_PASS\' | translate)}}</span>\n </div>\n <div class="form-group" data-ng-class="{\'has-error\': loginForm.$submitted && loginForm.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}</label>\n <div class="input-icon">\n <i class="fa fa-user"></i>\n <input ng-enter="login(loginForm)" class="form-control form-control-solid placeholder-no-fix" type="text" autocomplete="off" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" name="name" ng-model="userLogin.name" required/>\n </div>\n <span data-ng-show="loginForm.$submitted && loginForm.name.$invalid" class="help-block">{{\'MESSAGE_REQUIRED_FIELD\' | translate}}</span>\n </div>\n <div class="form-group" data-ng-class="{\'has-error\': loginForm.$submitted && loginForm.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}</label>\n <div class="input-icon">\n <i class="fa fa-lock"></i>\n <input ng-enter="login(loginForm)" class="form-control form-control-solid placeholder-no-fix" type="password" autocomplete="off" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" name="password" ng-model="userLogin.password" required/>\n </div>\n <span data-ng-show="loginForm.$submitted && loginForm.password.$invalid" class="help-block">{{\'MESSAGE_REQUIRED_FIELD\' | translate}}</span>\n <span class="help-block"><a href="#" data-ng-click="toggleForgotPassword(true)" class="forget-password">{{\'APPLICATION_FORGOT_PASSWORD\' | translate}}?</a></span>\n </div>\n <div class="form-actions">\n <button type="submit" class="btn btn-success uppercase">{{\'APPLICATION_LOGIN\' | translate}}</button>\n <label class="rememberme check">\n <input type="checkbox" data-ng-model="userLogin.remember"> {{\'APPLICATION_REMEMBER_ME\' | translate}}\n </label>\n <!-- <label class="rememberme check">\n <input type="checkbox" name="remember" value="1"/>Remember </label> -->\n <!-- <a href="javascript:;" id="forget-password" class="forget-password">Forgot Password?</a> -->\n </div>\n </form>\n <form name="forgetForm" data-ng-if="forgotPassword" data-ng-submit="forgetForm.$valid && recover()" novalidate>\n <h3>{{\'APPLICATION_FORGOT_PASSWORD\' | translate}}?</h3>\n <p>\n {{\'APPLICATION_INSERT_EMAIL_TO_RESET\' | translate}}\n </p>\n <div class="alert alert-success" data-ng-show="showRecoverMessage">\n <button class="close" data-close="alert"></button>\n <span>{{\'MESSAGE_CHECK_YOUR_EMAIL_RECOVER\' | translate}}</span>\n </div>\n <div class="form-group" data-ng-class="{\'has-error\': forgetForm.$submitted && forgetForm.email.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}</label>\n <div class="input-icon">\n <i class="fa fa-envelope"></i>\n <input class="form-control form-control-solid placeholder-no-fix" type="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" name="email" ng-model="userLogin.email" required/>\n </div>\n <span data-ng-show="forgetForm.$submitted && forgetForm.email.$invalid" class="help-block">{{\'MESSAGE_REQUIRED_FIELD\' | translate}}</span>\n </div>\n <div class="form-actions">\n <button type="button" id="back-btn" data-ng-click="toggleForgotPassword(false)" class="btn btn-default">{{\'APPLICATION_BACK\' | translate}}</button>\n <button type="submit" class="btn btn-success uppercase pull-right">{{\'APPLICATION_SUBMIT\' | translate}}</button>\n </div>\n </form>\n <div class="login-options">\n <h4>{{\'APPLICATION_FOLLOW_US\' | translate}}</h4>\n <ul class="social-icons">\n <li>\n <a class="social-icon-color facebook" data-original-title="facebook" href="https://www.facebook.com/xcallymotion" target="_blank"></a>\n </li>\n <li>\n <a class="social-icon-color twitter" data-original-title="Twitter" href="https://twitter.com/xcallymotion" target="_blank"></a>\n </li>\n <li>\n <a class="social-icon-color googleplus" data-original-title="Google Plus" href="https://plus.google.com/+Xcally" target="_blank"></a>\n </li>\n <li>\n <a class="social-icon-color linkedin" data-original-title="Linkedin" href="https://www.linkedin.com/company/xcally" target="_blank"></a>\n </li>\n </ul>\n </div>\n</div>\n<div class="copyright">\n xCALLY Motion v. {{info.version}} | 2016 - {{year + 1}} © Powered by Xenialab <ng-bind-html data-ng-if="license.custom && !settings.defaultFooterWhiteLabel && settings.footerWhiteLabel" ng-bind-html="\'| \'+settings.footerWhiteLabel"></ng-bind-html>\n</div>\n<!-- END LOGIN -->\n'),a.put("app/main/about.modal.html",'<div class="center-text">\n<div class="modal-header no-border">\n<button type="button" ng-click="$dismiss()" class="close">×</button>\n <!-- <h3 class="modal-title center-text">{{ \'APPLICATION_ABOUT\' | translate }}</h3> -->\n</div>\n<div class="modal-body" style="padding-top:0px;">\n <div class="mbottom20" data-ng-init="getInfo()">\n <a>\n <img ng-src="api/settings/logo/about" alt="logo" class="custom-login-logo about-logo" onError="this.onerror=null"/>\n </a>\n</div>\n<div class="mbottom20">\n <b class="sounds-title-icon">xCALLY Motion</b><br>\n <small>v. {{info.version}}</small><br><br>\n <small>2016 - {{year + 1}} © Powered by Xenialab</small><br>\n <small><a href="https://www.xcallymotion.com">www.xcallymotion.com</a></small><br>\n <ng-bind-html data-ng-if="license.custom && !settings.defaultFooterWhiteLabel && settings.footerWhiteLabel" ng-bind-html="settings.footerWhiteLabel"></ng-bind-html>\n</div>\n<div class="mbottom20">\n <span><b>{{\'APPLICATION_USEFUL_LINKS\' | translate}}</b></span><br>\n <small><a href="https://wiki.xcallymotion.com/display/XMD/Welcome" target="_blank">Wiki</a></small><br>\n <small><a href="http://www.xcally.com/bar/phonebar/Setup.msi" target="_blank">Phonebar Download</a></small><br>\n <small><a href="http://www.xcally.com/support/eula-xcally-license-en.pdf" target="_blank">EULA</a></small><br>\n</div>\n <div class="login-options" style=\'margin-bottom:0px;\'>\n <h4>{{\'APPLICATION_FOLLOW_US\' | translate}}</h4>\n <ul class="social-icons">\n <li>\n <a class="social-icon-color facebook" data-original-title="facebook" href="https://www.facebook.com/xcallymotion" target="_blank"></a>\n </li>\n <li>\n <a class="social-icon-color twitter" data-original-title="Twitter" href="https://twitter.com/xcallymotion" target="_blank"></a>\n </li>\n <li>\n <a class="social-icon-color googleplus" data-original-title="Google Plus" href="https://plus.google.com/+Xcally" target="_blank"></a>\n </li>\n <li>\n <a class="social-icon-color linkedin" data-original-title="Linkedin" href="https://www.linkedin.com/company/xcally" target="_blank"></a>\n </li>\n </ul>\n</div>\n<div class="login-options" style=\'margin-bottom:0px;\'>\n<h4>{{\'APPLICATION_CONTACT_US\' | translate}}:</h4>\n<div class="float-right" style="margin-top:10px;margin-bottom:10px;">\n <a href="mailto:support@xcally.com">support@xcally.com</a></small>\n</div>\n</div>\n</div>\n</div>\n<!-- <div class="modal-footer">\n <button class="btn default" type="button" ng-click="close()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div> -->\n'),a.put("app/main/audioFileDownload.play.modal.html",'<!-- <div class="modal-header">\n <button ng-if="modal.dismissable" type="button" ng-click="$dismiss()" class="close">×</button>\n <h4 ng-if="modal.title" ng-bind="modal.title | translate" class="modal-title"></h4>\n</div> -->\n<div class="modal-body" style="text-align:center;">\n <audio controls autoplay ng-src="{{audio}}" preload="none" controlsList="nodownload">\n Your browser does not support the audio tag.</audio>\n</div>\n<!-- <div class="modal-footer">\n <button class="btn default" type="button" ng-click="close()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div> -->\n'),a.put("app/main/chooseContact.modal.html",'<div class="modal-header" data-ng-init="getContacts()">\n <h3 class="modal-title">{{ \'APPLICATION_CHOOSE_CONTACT\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <table st-table="rowCollection" class="table table-striped">\n <tbody>\n <tr>\n <th>{{\'APPLICATION_NAME\' | translate}}</th>\n <th>{{\'APPLICATION_LIST\' | translate}}</th>\n <th></th>\n </tr>\n <tr ng-repeat="contact in contacts">\n <td>{{contact.firstName}} {{contact.lastName || \'\'}}</td>\n <td>{{contact.List.name}}</td>\n <td>\n <button class="btn default btn-xs green-stripe" data-ng-click="open(contact)">\n {{ \'APPLICATION_OPEN\' | translate}}\n </button>\n </td>\n </tr>\n <tr data-ng-hide="contacts.length">\n <td colspan="3" style="text-align:center;">\n <i>{{ \'MESSAGE_NO_CONTACTS_AVAILABLE\' | translate }}</i>\n </td>\n </tr>\n </tbody>\n </table>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="open()"><i class="icon-plus"></i> {{ \'APPLICATION_NEW_CONTACT\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/main/closeEditedTab.modal.html",'<div class="modal-header" data-ng-init="getContacts()">\n <h3 class="modal-title">{{ \'APPLICATION_WARNING\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <p>{{\'MESSAGE_CLOSE_EDITED_TAB\' | translate}}</p>\n</div>\n<div class="modal-footer">\n <button class="btn btn-danger" type="button" ng-click="close()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/main/closeEditedTab.modal.jscripty.html",' <div class="modal-header" data-ng-init="init()">\n <h3 class="modal-title">{{ \'APPLICATION_WARNING\' | translate }}</h3>\n <!-- <h3 ng-if="projectStatus == \'incomplete\'" class="modal-title">{{ \'APPLICATION_WARNING\' | translate }}</h3> -->\n\n</div>\n<div class="modal-body">\n<!-- <div ng-if="projectStatus == \'incomplete\'" class="modal-body"> -->\n <p>{{\'MESSAGE_CLOSE_INCOMPLETE\' | translate}}</p>\n</div>\n\n\n<div class="modal-footer">\n <button class="btn btn-danger" type="button" ng-click="close()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/main/cm.disposition.modal.html",'<div class="modal-header">\n <button ng-if="modal.dismissable" type="button" ng-click="$dismiss()" class="close">×</button>\n <h4 ng-if="modal.title" ng-bind="modal.title | translate" class="modal-title"></h4>\n</div>\n<div class="modal-body">\n <form name="form" novalidate data-ng-init="initDisposition()">\n <div class="form-group">\n <ui-select data-ng-model="item.agentDisposition" name="agentDisposition" theme="bootstrap" data-ng-disabled="!dispositions.length" required>\n <ui-select-match placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="disposition.name as disposition in dispositions | filter: $select.search">\n <div ng-bind-html="disposition.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="note note-warning" data-ng-hide="dispositions.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_DISPOSITIONS_AVAILABLE\' | translate }}\n </p>\n </div>\n</form>\n <!-- <div ng-if="modal.html" ng-bind-html="modal.html"></div> -->\n</div>\n<div class="modal-footer">\n <button class="btn btn-danger" type="button" ng-click="ok()" data-ng-disabled="!item.agentDisposition">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n <!-- <button ng-repeat="button in modal.buttons" ng-class="button.classes" ng-click="button.click($event)" ng-bind="button.text" class="btn"></button> -->\n</div>\n'),a.put("app/main/company.info.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_COMPANY_INFO\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{ \'APPLICATION_ADDRESS\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_3" data-toggle="tab">{{ \'APPLICATION_SHIPMENT_ADDRESS\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateCompany()" novalidate>\n <div class="row">\n <div class="col-md-6">\n <!-- START NAME -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}</label>\n <input readonly type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="company.name" required/>\n </div>\n <!-- END NAME -->\n\n <!-- START VAT -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_VAT\' | translate}}</label>\n <input readonly type="text" name="vat" placeholder="{{\'APPLICATION_VAT\' | translate}}" class="form-control" data-ng-model="company.vat"/>\n </div>\n <!-- END VAT -->\n\n <!-- START COMPANYID -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_COMPANY_ID\' | translate}}</label>\n <input readonly type="text" name="companyId" placeholder="{{\'APPLICATION_COMPANY_ID\' | translate}}" class="form-control" data-ng-model="company.companyId"/>\n </div>\n <!-- END COMPANYID -->\n\n <!-- START WEBSITE -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_WEBSITE\' | translate}}</label>\n <input readonly type="text" name="website" placeholder="{{\'APPLICATION_WEBSITE\' | translate}}" class="form-control" data-ng-model="company.website"/>\n </div>\n <!-- END WEBSITE -->\n\n <!-- START EMAIL -->\n <div class="form-group" >\n <label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}</label>\n <input readonly type="email" name="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" class="form-control" data-ng-model="company.email"/>\n </div>\n <!-- END EMAIL -->\n </div>\n <div class="col-md-6">\n <!-- START PHONE -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_PHONE\' | translate}}</label>\n <input readonly type="text" name="phone" placeholder="{{\'APPLICATION_PHONE\' | translate}}" class="form-control" data-ng-model="company.phone"/>\n </div>\n <!-- END PHONE -->\n\n <!-- START FAX -->\n <div class="form-group" >\n <label class="control-label">{{\'APPLICATION_FAX\' | translate}}</label>\n <input readonly type="text" name="fax" placeholder="{{\'APPLICATION_FAX\' | translate}}" class="form-control" data-ng-model="company.fax"/>\n </div>\n <!-- END FAX -->\n\n <!-- START TYPE -->\n <div class="form-group" >\n <label class="control-label">{{\'APPLICATION_TYPE\' | translate}}</label>\n <input readonly type="text" name="type" placeholder="{{\'APPLICATION_TYPE\' | translate}}" class="form-control" data-ng-model="company.type"/>\n </div>\n <!-- END TYPE -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea readonly type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="company.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n </div>\n </div>\n </form>\n </div>\n <!-- END ADVANCED TAB -->\n <div class="tab-pane" id="tab_1_2">\n <form name="forms.address" novalidate>\n <!-- START STREET -->\n <div class="form-group" >\n <label class="control-label">{{\'APPLICATION_STREET\' | translate}}</label>\n <input readonly type="text" name="street" placeholder="{{\'APPLICATION_STREET\' | translate}}" class="form-control" data-ng-model="company.street"/>\n </div>\n <!-- END STREET -->\n\n <!-- START POSTALCODE -->\n <div class="form-group" >\n <label class="control-label">{{\'APPLICATION_POSTALCODE\' | translate}}</label>\n <input readonly type="text" name="postalCode" placeholder="{{\'APPLICATION_POSTALCODE\' | translate}}" class="form-control" data-ng-model="company.postalCode"/>\n </div>\n <!-- END POSTALCODE -->\n\n <!-- START CITY -->\n <div class="form-group" >\n <label class="control-label">{{\'APPLICATION_CITY\' | translate}}</label>\n <input readonly type="text" name="city" placeholder="{{\'APPLICATION_CITY\' | translate}}" class="form-control" data-ng-model="company.city"/>\n </div>\n <!-- END CITY -->\n <!-- START COUNTRY -->\n <div class="form-group" >\n <label class="control-label">{{\'APPLICATION_COUNTRY\' | translate}}</label>\n <input readonly type="text" name="country" placeholder="{{\'APPLICATION_COUNTRY\' | translate}}" class="form-control" data-ng-model="company.country"/>\n </div>\n <!-- END COUNTRY -->\n </form>\n </div>\n <div class="tab-pane" id="tab_1_3">\n <form name="forms.shipmentAddress" novalidate>\n <!-- START STREET -->\n <div class="form-group" >\n <label class="control-label">{{\'APPLICATION_STREET\' | translate}}</label>\n <input readonly type="text" name="sStreet" placeholder="{{\'APPLICATION_STREET\' | translate}}" class="form-control" data-ng-model="company.sStreet"/>\n </div>\n <!-- END STREET -->\n\n <!-- START POSTALCODE -->\n <div class="form-group" >\n <label class="control-label">{{\'APPLICATION_POSTALCODE\' | translate}}</label>\n <input readonly type="text" name="sPostalCode" placeholder="{{\'APPLICATION_POSTALCODE\' | translate}}" class="form-control" data-ng-model="company.sPostalCode"/>\n </div>\n <!-- END POSTALCODE -->\n\n <!-- START CITY -->\n <div class="form-group" >\n <label class="control-label">{{\'APPLICATION_CITY\' | translate}}</label>\n <input readonly type="text" name="sCity" placeholder="{{\'APPLICATION_CITY\' | translate}}" class="form-control" data-ng-model="company.sCity"/>\n </div>\n <!-- END CITY -->\n <!-- START COUNTRY -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_COUNTRY\' | translate}}</label>\n <input readonly type="text" name="sCountry" placeholder="{{\'APPLICATION_COUNTRY\' | translate}}" class="form-control" data-ng-model="company.sCountry"/>\n </div>\n <!-- END COUNTRY -->\n </form>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n<div class="modal-footer">\n <button class="btn default" type="button" ng-click="close()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'),a.put("app/main/customDateFilter.modal.html",'<div class="modal-body">\n <uib-datepicker ng-model="dateTime.filterDate"\n class="well well-sm">\n </uib-datepicker>\n <uib-timepicker data-ng-if="hasTime" ng-model="dateTime.time" show-meridian="false"></uib-timepicker>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="setFilterDate(dateTime.filterDate)">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancelDateFilter()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/main/customDateFilterHeader.html",'<input class="ui-grid-filter-input date-time-filter-buttons pointer-cursor" style="width:90%;padding:inherit;" data-ng-click="openDatePicker(colFilter)" placeholder="{{ colFilter.name }}" readonly value="{{colFilter.term | date:\'dd-MM-yyyy\'}}">\n<span role="button" class="ui-grid-filter-button-select cancel-custom-date-range-filter-button ng-scope" data-ng-click="removeFilter(colFilter, $index)" data-ng-if="!colFilter.disableCancelFilterButton" data-ng-disabled="colFilter.term === undefined || colFilter.term === null || colFilter.term === \'\'" data-ng-show="colFilter.term !== undefined && colFilter.term != null" tabindex="0" aria-hidden="false" aria-disabled="false" style="right:22px;">\n <i class="ui-grid-icon-cancel cancel-custom-date-range-filter" ui-grid-one-bind-aria-label="aria.removeFilter" aria-label="Remove Filter"> </i>\n</span>\n'),a.put("app/main/customTagsFilter.modal.html",'<div class="modal-body" data-ng-init="initModal()">\n <!-- START TAGS -->\n<div class="form-group">\n <label class="control-label">{{\'APPLICATION_TAGS\' | translate}}</label>\n <ui-select multiple=\'true\' data-ng-model="item.myTags" theme="bootstrap">\n <ui-select-match placeholder="{{ \'APPLICATION_TAGS\' | translate }}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="tag in tags | filter: $select.search">\n {{tag}}\n </ui-select-choices>\n </ui-select>\n</div>\n<!-- END TAGS -->\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="setFilterTags()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancelTagsFilter()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/main/customTagsFilterHeader.html",'<input class="ui-grid-filter-input pointer-cursor" style="width:90%;padding:inherit;" data-ng-click="openTags(colFilter)" placeholder="{{ colFilter.name }}" readonly value="{{colFilter.term}}">\n<span role="button" class="ui-grid-filter-button-select cancel-custom-date-range-filter-button ng-scope" data-ng-click="removeFilter(colFilter, $index)" data-ng-if="!colFilter.disableCancelFilterButton" data-ng-disabled="colFilter.term === undefined || colFilter.term === null || colFilter.term === \'\'" data-ng-show="colFilter.term !== undefined && colFilter.term != null" tabindex="0" aria-hidden="false" aria-disabled="false" style="right:5px;">\n <i class="ui-grid-icon-cancel cancel-custom-date-range-filter" ui-grid-one-bind-aria-label="aria.removeFilter" aria-label="Remove Filter"> </i>\n</span>\n'),a.put("app/main/keepMeLogged.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_WARNING\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <p>{{\'MESSAGE_SOMEONE_LOGGED_YOU_OUT\' | translate}}</p>\n</div>\n<div class="modal-footer">\n <button class="btn btn-danger" type="button" ng-click="close()">{{ \'APPLICATION_YES\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_NO\' | translate }}</button>\n</div>\n'),a.put("app/main/main.html",'<!-- BEGIN HEADER -->\n<div data-ng-include="\'components/header/header.html\'" data-ng-controller="HeaderController" class="page-header navbar navbar-fixed-top">\n</div>\n<!-- END HEADER -->\n\n<div class="clearfix">\n</div>\n<!-- BEGIN CONTAINER -->\n<div class="page-container">\n\n <!-- BEGIN SIDEBAR -->\n <div data-ng-include="\'components/sidebar/sidebar.html\'" data-ng-controller="SidebarController" class="page-sidebar-wrapper">\n </div>\n <!-- END SIDEBAR -->\n\n <!-- BEGIN CONTENT -->\n <div class="page-content-wrapper">\n <div class="page-content" data-ng-class="{\'demo\': !license.expiration}">\n\n <!-- BEGIN PAGE CONTENT -->\n <uib-tabset>\n <uib-tab select="addWorkspace()" active="mainTab.active">\n <uib-tab-heading>\n Motion <i class="icon-rocket"></i>\n </uib-tab-heading>\n <div class="hide" data-ng-if="!Auth.isAgent() && activeTour.main" ng-joy-ride="activeTour.main" config="tourConfig.main" on-finish="onTourFinish()" on-skip="onTourSkip()"></div>\n <div ui-view class=""></div>\n </uib-tab>\n <uib-tab class="motion-{{workspace.type}}-uib-tab" data-ng-repeat="workspace in workspaces" active="workspace.active" data-ng-switch="workspace.type" select="select(workspace)" deselect="deselect(workspace)">\n <uib-tab-heading data-ng-mouseup="$event.which === 2 && closeTab($index)">\n <i data-ng-if="workspace.class" class="prova" data-ng-class="workspace.class"></i> {{workspace.name | truncate: 25: \'...\': true}} <span class="badge badge-danger" data-ng-if="workspace.unread">{{workspace.unread}}</span> <i class="icon-close pointer-cursor" data-ng-click="closeTab($index)"></i>\n </uib-tab-heading>\n <div class="" data-ng-switch="workspace.type">\n <new-contact data-ng-switch-when="newContact" workspace="workspace" index="$index" on-submit="createContact(index,item,data)"></new-contact>\n <contact data-ng-switch-when="contact" workspace="workspace" index="$index" on-submit="updateContact(index,item)"></contact>\n <jscripty data-ng-switch-when="jscripty" workspace="workspace" index="$index" on-submit="closeJscriptyTab(index)"></jscripty>\n <!-- <jscripty data-ng-switch-when="jscripty" workspace="workspace" index="$index" on-submit="closeTab(index,item)"></jscripty> -->\n <chat-room data-ng-switch-when="chatRoom" workspace="workspace" index="$index" on-submit="closeTab(index)"></chat-room>\n <fax-room data-ng-switch-when="faxRoom" workspace="workspace" index="$index" on-submit="closeTab(index)"></fax-room>\n <mail-room data-ng-switch-when="mailRoom" workspace="workspace" index="$index" on-submit="closeTab(index)"></mail-room>\n <sms-room data-ng-switch-when="smsRoom" workspace="workspace" index="$index" on-submit="closeTab(index)"></sms-room>\n <openchannel-room data-ng-switch-when="openchannelRoom" workspace="workspace" index="$index" on-submit="closeTab(index)"></openchannel-room>\n <tiger-dial-disposal data-ng-switch-when="tdDisposal" workspace="workspace" index="$index"></tiger-dial-disposal>\n <web-popup data-ng-switch-when="webPopup" workspace="workspace" index="$index"></web-popup>\n </div>\n </uib-tab>\n </uib-tabset>\n <!-- END PAGE CONTENT -->\n\n </div>\n </div>\n <!-- END CONTENT -->\n\n</div>\n<!-- END CONTAINER -->\n\n<!-- BEGIN FOOTER -->\n<div data-ng-include="\'components/footer/footer.html\'" data-ng-controller="FooterController" class="page-footer">\n</div>\n<!-- END FOOTER -->\n\n<!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) -->\n<!-- BEGIN CORE PLUGINS -->\n<!--[if lt IE 9]>\n<script src="../../assets/global/plugins/respond.min.js"></script>\n<script src="../../assets/global/plugins/excanvas.min.js"></script>\n<![endif]-->\n\n<!-- END JAVASCRIPTS -->\n'),a.put("app/main/mergeContact.choose.modal.html",'<div class="modal-header" data-ng-init="initView()">\n <h3 class="modal-title">{{ \'APPLICATION_CHOOSE_CONTACT_TO_MERGE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <!-- START TABLE -->\n<div data-ng-if="gridOptions" ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n</div>\n<!-- END TABLE -->\n</div>\n<div class="modal-footer">\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/main/mergeContact.merge.modal.html",'<div class="modal-header" data-ng-init="initView()">\n <h3 class="modal-title">{{ \'APPLICATION_MERGE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="forms.general" data-ng-submit="submit({index:index,item:contact})" novalidate>\n <!-- BEGIN PORTLET -->\n <div class="portlet light ">\n <div class="portlet-body row">\n <div class="col-md-4">\n <!-- START FIRSTNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.firstName.$touched || forms.general.$submitted) && forms.general.firstName.$invalid}">\n <label class="control-label">{{\'APPLICATION_FIRSTNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input data-ng-if="fields.firstName.length <= 1" type="text" name="firstName" placeholder="{{\'APPLICATION_FIRSTNAME\' | translate}}" class="form-control" data-ng-model="contact.firstName" required/>\n <ui-select data-ng-if="fields.firstName.length > 1" data-ng-model="contact.firstName" theme="bootstrap" name="firstName" required>\n <ui-select-match placeholder="{{ \'APPLICATION_FIRSTNAME\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="field in fields.firstName | filter: $select.search track by $index">\n <div ng-bind-html="field | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.general.firstName.$touched || forms.general.$submitted) && forms.general.firstName.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END FIRSTNAME -->\n\n <!-- START LASTNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.lastName.$touched || forms.general.$submitted) && forms.general.lastName.$invalid}">\n <label class="control-label">{{\'APPLICATION_LASTNAME\' | translate}}</label>\n <input data-ng-if="fields.lastName.length <= 1" type="text" name="lastName" placeholder="{{\'APPLICATION_LASTNAME\' | translate}}" class="form-control" data-ng-model="contact.lastName"/>\n <ui-select data-ng-if="fields.lastName.length > 1" data-ng-model="contact.lastName" theme="bootstrap" name="lastName">\n <ui-select-match placeholder="{{ \'APPLICATION_LASTNAME\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="field in fields.lastName | filter: $select.search track by $index">\n <div ng-bind-html="field | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.general.lastName.$touched || forms.general.$submitted) && forms.general.lastName.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END LASTNAME -->\n\n <!-- START COMPANY -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.CompanyId.$invalid && forms.general.$submitted}">\n <label class="control-label">{{\'APPLICATION_COMPANY\' | translate}}</label>\n <ui-select data-ng-model="contact.CompanyId" theme="bootstrap" name="CompanyId" ng-disabled="!companies.length">\n <ui-select-match placeholder="{{ \'APPLICATION_COMPANY\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="company.id as company in companies | filter: $select.search" null-option="scope.noCompany">\n <div ng-bind-html="company.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="companies.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_COMPANIES_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/contactmanager/companies/list">{{\'APPLICATION_COMPANIES\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="forms.general.CompanyId.$invalid && forms.general.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END COMPANY -->\n </div>\n <div class="col-md-4">\n <!-- START PHONE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.phone.$touched || forms.general.$submitted) && forms.general.phone.$invalid}">\n <label class="control-label">{{\'APPLICATION_PHONE\' | translate}}</label>\n <input data-ng-if="fields.phone.length <= 1" type="text" name="phone" placeholder="{{\'APPLICATION_PHONE\' | translate}}" class="form-control" data-ng-model="contact.phone"/>\n <ui-select data-ng-if="fields.phone.length > 1" data-ng-model="contact.phone" theme="bootstrap" name="phone">\n <ui-select-match placeholder="{{ \'APPLICATION_PHONE\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="field in fields.phone | filter: $select.search track by $index">\n <div ng-bind-html="field | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.general.phone.$touched || forms.general.$submitted) && forms.general.phone.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PHONE -->\n <!-- START MOBILE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.mobile.$touched || forms.general.$submitted) && forms.general.mobile.$invalid}">\n <label class="control-label">{{\'APPLICATION_MOBILE\' | translate}}</label>\n <input data-ng-if="fields.mobile.length <= 1" type="text" name="mobile" placeholder="{{\'APPLICATION_MOBILE\' | translate}}" class="form-control" data-ng-model="contact.mobile"/>\n <ui-select data-ng-if="fields.mobile.length > 1" data-ng-model="contact.mobile" theme="bootstrap" name="mobile">\n <ui-select-match placeholder="{{ \'APPLICATION_MOBILE\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="field in fields.mobile | filter: $select.search track by $index">\n <div ng-bind-html="field | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.general.mobile.$touched || forms.general.$submitted) && forms.general.mobile.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MOBILE -->\n <!-- START EMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.email.$touched || forms.general.$submitted) && forms.general.email.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}</label>\n <input data-ng-if="fields.email.length <= 1" type="email" name="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" class="form-control" data-ng-model="contact.email"/>\n <ui-select data-ng-if="fields.email.length > 1" data-ng-model="contact.email" theme="bootstrap" name="email">\n <ui-select-match placeholder="{{ \'APPLICATION_EMAIL\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="field in fields.email | filter: $select.search track by $index">\n <div ng-bind-html="field | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.general.email.$touched || forms.general.$submitted) && forms.general.email.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END EMAIL -->\n </div>\n <div class="col-md-4">\n <!-- START FAX -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.fax.$touched || forms.general.$submitted) && forms.general.fax.$invalid}">\n <label class="control-label">{{\'APPLICATION_FAX\' | translate}}</label>\n <input data-ng-if="fields.fax.length <= 1" type="text" name="fax" placeholder="{{\'APPLICATION_FAX\' | translate}}" class="form-control" data-ng-model="contact.fax"/>\n <ui-select data-ng-if="fields.fax.length > 1" data-ng-model="contact.fax" theme="bootstrap" name="fax">\n <ui-select-match placeholder="{{ \'APPLICATION_FAX\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="field in fields.fax | filter: $select.search track by $index">\n <div ng-bind-html="field | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.general.fax.$touched || forms.general.$submitted) && forms.general.fax.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END FAX -->\n <!-- START TAGS -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.tags.$invalid && forms.general.$submitted}">\n <label class="control-label">{{\'APPLICATION_TAGS\' | translate}}</label>\n <ui-select multiple=\'true\' data-ng-model="contact.tags" theme="bootstrap" name="tags" ng-disabled="disabled">\n <ui-select-match placeholder="{{ \'APPLICATION_TAGS\' | translate }}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="tag in tags | filter: $select.search">\n <div ng-bind-html="tag | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.general.tags.$invalid && forms.general.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TAGS -->\n <!-- START LIST -->\n <div class="form-group" data-ng-if="contact.id">\n <label class="control-label">{{\'APPLICATION_LIST\' | translate}}</label>\n <input type="text" name="list" placeholder="{{\'APPLICATION_LIST\' | translate}}" class="form-control" data-ng data-ng-model="contact.List.name" disabled/>\n </div>\n <!-- END LIST -->\n </div>\n </div>\n </div>\n <div class="portlet light upborder">\n <div class="portlet-body row">\n <div class="col-md-4">\n <!-- START STREET -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.street.$touched || forms.general.$submitted) && forms.general.street.$invalid}">\n <label class="control-label">{{\'APPLICATION_STREET\' | translate}}</label>\n <input data-ng-if="fields.street.length <= 1" type="text" name="street" placeholder="{{\'APPLICATION_STREET\' | translate}}" class="form-control" data-ng-model="contact.street"/>\n <ui-select data-ng-if="fields.street.length > 1" data-ng-model="contact.street" theme="bootstrap" name="street">\n <ui-select-match placeholder="{{ \'APPLICATION_STREET\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="field in fields.street | filter: $select.search track by $index">\n <div ng-bind-html="field | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.general.street.$touched || forms.general.$submitted) && forms.general.street.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END STREET -->\n\n <!-- START POSTALCODE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.postalCode.$touched || forms.general.$submitted) && forms.general.postalCode.$invalid}">\n <label class="control-label">{{\'APPLICATION_POSTALCODE\' | translate}}</label>\n <input data-ng-if="fields.postalCode.length <= 1" type="text" name="postalCode" placeholder="{{\'APPLICATION_POSTALCODE\' | translate}}" class="form-control" data-ng-model="contact.postalCode"/>\n <ui-select data-ng-if="fields.postalCode.length > 1" data-ng-model="contact.postalCode" theme="bootstrap" name="postalCode">\n <ui-select-match placeholder="{{ \'APPLICATION_POSTALCODE\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="field in fields.postalCode | filter: $select.search track by $index">\n <div ng-bind-html="field | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.general.postalCode.$touched || forms.general.$submitted) && forms.general.postalCode.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END POSTALCODE -->\n\n <!-- START CITY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.city.$touched || forms.general.$submitted) && forms.general.city.$invalid}">\n <label class="control-label">{{\'APPLICATION_CITY\' | translate}}</label>\n <input data-ng-if="fields.city.length <= 1" type="text" name="city" placeholder="{{\'APPLICATION_CITY\' | translate}}" class="form-control" data-ng-model="contact.city"/>\n <ui-select data-ng-if="fields.city.length > 1" data-ng-model="contact.city" theme="bootstrap" name="city">\n <ui-select-match placeholder="{{ \'APPLICATION_CITY\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="field in fields.city | filter: $select.search track by $index">\n <div ng-bind-html="field | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.general.city.$touched || forms.general.$submitted) && forms.general.city.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CITY -->\n </div>\n <div class="col-md-4">\n <!-- START COUNTRY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.country.$touched || forms.general.$submitted) && forms.general.country.$invalid}">\n <label class="control-label">{{\'APPLICATION_COUNTRY\' | translate}}</label>\n <input data-ng-if="fields.country.length <= 1" type="text" name="country" placeholder="{{\'APPLICATION_COUNTRY\' | translate}}" class="form-control" data-ng-model="contact.country"/>\n <ui-select data-ng-if="fields.country.length > 1" data-ng-model="contact.country" theme="bootstrap" name="country">\n <ui-select-match placeholder="{{ \'APPLICATION_COUNTRY\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="field in fields.country | filter: $select.search track by $index">\n <div ng-bind-html="field | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.general.country.$touched || forms.general.$submitted) && forms.general.country.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END COUNTRY -->\n\n <!-- START DATEOFBIRTH -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.dateOfBirth.$touched || forms.general.$submitted) && forms.general.dateOfBirth.$invalid}">\n <label class="control-label">{{\'APPLICATION_DATEOFBIRTH\' | translate}}</label>\n <input data-ng-if="fields.dateOfBirth.length <= 1" type="date" name="dateOfBirth" placeholder="{{\'APPLICATION_DATEOFBIRTH\' | translate}}" class="form-control" data-ng-model="contact.dateOfBirth"/>\n <ui-select data-ng-if="fields.dateOfBirth.length > 1" data-ng-model="contact.dateOfBirth" theme="bootstrap" name="dateOfBirth">\n <ui-select-match placeholder="{{ \'APPLICATION_DATEOFBIRTH\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="field in fields.dateOfBirth | filter: $select.search track by $index">\n <div ng-bind-html="field | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.general.dateOfBirth.$touched || forms.general.$submitted) && forms.general.dateOfBirth.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END DATEOFBIRTH -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea style="resize: vertical;" data-ng-if="fields.description.length <= 1" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="contact.description"/></textarea>\n <ui-select data-ng-if="fields.description.length > 1" data-ng-model="contact.description" theme="bootstrap" name="description">\n <ui-select-match placeholder="{{ \'APPLICATION_DESCRIPTION\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="field in fields.description | filter: $select.search track by $index">\n <div ng-bind-html="field | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END DESCRIPTION -->\n </div>\n <div class="col-md-4">\n <!-- START URL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.url.$touched || forms.general.$submitted) && forms.general.url.$invalid}">\n <label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n <input data-ng-if="fields.url.length <= 1" type="text" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="contact.url"/>\n <ui-select data-ng-if="fields.url.length > 1" data-ng-model="contact.url" theme="bootstrap" name="url">\n <ui-select-match placeholder="{{ \'APPLICATION_URL\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="field in fields.url | filter: $select.search track by $index">\n <div ng-bind-html="field | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.general.url.$touched || forms.general.$submitted) && forms.general.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END URL -->\n </div>\n </div>\n </div>\n <div class="portlet light upborder" data-ng-if="customFields.length">\n <div class="portlet-body">\n <div class="row">\n <div class="col-md-4" data-ng-repeat="customField in customFields">\n <div data-ng-if="customField.type==\'text\'" class="form-group" data-ng-class="{\'has-error\': (forms.general[customField.name].$touched || forms.general.$submitted) && forms.general[customField.name].$invalid}">\n <label class="control-label">{{customField.alias}}</label>\n <input data-ng-if="fields[customField.name].length <= 1" type="text" name="{{customField.name}}" placeholder="{{customField.alias}}" class="form-control" data-ng-model="contact[customField.name]"/>\n <ui-select data-ng-if="fields[customField.name].length > 1" data-ng-model="contact[customField.name]" theme="bootstrap" name="{{customField.name}}">\n <ui-select-match placeholder="{{customField.name}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="field in fields[customField.name] | filter: $select.search track by $index">\n <div ng-bind-html="field | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.general[customField.name].$touched || forms.general.$submitted) && forms.general[customField.name].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div data-ng-if="customField.type==\'select\'" class="form-group" data-ng-class="{\'has-error\': forms.general[customField.name].$invalid && forms.general.$submitted}">\n <label class="control-label">{{customField.alias}}</label>\n <ui-select data-ng-model="contact[customField.name]" theme="bootstrap" name="{{customField.name}}" data-ng-disabled="disabled">\n <ui-select-match allow-clear placeholder="{{customField.alias}}">{{$select.selected.value}}</ui-select-match>\n <ui-select-choices repeat="choice.value as choice in customField.values | filter: $select.search">\n <div ng-bind-html="choice.value | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.general[customField.name].$invalid && forms.general.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n </div>\n </div>\n <!-- END PORTLET -->\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="merge()" ng-disabled="forms.general.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'), +a.put("app/main/template/actionBuilder/template.actionBuilderIntegration.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" data-ng-change="changeIntegration()" required>\n <ui-select-match placeholder="{{ \'APPLICATION_INTEGRATION\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="integration.state as integration in integrations | filter: $select.search">\n <div ng-bind-html="integration.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{\'APPLICATION_INTEGRATION\' | translate}}\n </span>\n <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n<div class="form-group col-md-6" data-ng-if="element.data1 && accounts && randomName" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data2" name="data2{{randomName}}" theme="bootstrap" data-ng-change="changeAccount();" required>\n <ui-select-match placeholder="{{\'APPLICATION_ACCOUNT\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in accounts | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{\'APPLICATION_ACCOUNT\' | translate}}\n </span>\n <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n<div class="form-group col-md-6" data-ng-if="element.data2 && configurations && randomName" data-ng-class="{\'has-error\': (form[\'data3\'+randomName].$touched || form.$submitted) && form[\'data3\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data3" name="data3{{randomName}}" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_CONFIGURATION\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="config.id as config in configurations | filter: $select.search">\n <div ng-bind-html="config.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{\'APPLICATION_CONFIGURATION\' | translate}}\n </span>\n <span data-ng-show="(form[\'data3\'+randomName].$touched || form.$submitted) && form[\'data3\'+randomName].$error.required" class="help-block help-block-error">\n'+" <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n </span>\n</div>\n"),a.put("app/main/template/actionBuilder/template.actionBuilderJscripty.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" required>\n <ui-select-match>{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="project.id as project in projects | filter: $select.search">\n <div ng-bind-html="project.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n'+" <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n </span>\n</div>\n"),a.put("app/main/template/actionBuilder/template.actionBuilderMotionBar.html",'<!-- data1: 0 POPUP, 1 URL, 2 WINAPP -->\n<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" required data-ng-change="changeMode();">\n <ui-select-match placeholder="{{ \'APPLICATION_TYPE\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="motionAction.value as motionAction in motionActions | filter: $select.search">\n <div ng-bind-html="motionAction.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'APPLICATION_TYPE\' | translate }}\n </span>\n <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n\n<!-- data1:0 data2:Template -->\n<div data-ng-if="randomName && element.data1==0" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data2" name="data2{{randomName}}" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_TEMPLATE\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n <div ng-bind-html="template.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'APPLICATION_TEMPLATE\' | translate }}\n </span>\n <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n\n<!-- data1:1 data2:URL -->\n<div data-ng-if="randomName && element.data1==1" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n <input type="text" ng-model="element.data2" name="data2{{randomName}}" class="form-control" required placeholder="{{ \'APPLICATION_URL\' | translate }}"/>\n <span class="help-block">\n {{ \'APPLICATION_URL\' | translate }}\n </span>\n <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n\n<!-- data1:2 data2:Application data3:Arguments -->\n<div data-ng-if="randomName && element.data1==2" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n <input type="text" ng-model="element.data2" name="data2{{randomName}}" class="form-control" required placeholder="{{ \'APPLICATION_APPLICATION\' | translate }}"/>\n <span class="help-block">\n {{ \'APPLICATION_APPLICATION\' | translate }}\n </span>\n <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n<div data-ng-if="randomName && element.data1==2" class="form-group col-md-6">\n <input type="text" ng-model="element.data3" name="data3{{randomName}}" class="form-control" placeholder="{{ \'APPLICATION_ARGUMENTS\' | translate }}"/>\n <span class="help-block">\n {{ \'APPLICATION_ARGUMENTS\' | translate }}\n </span>\n</div>\n'),a.put("app/main/template/actionBuilder/template.actionBuilderStatus.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" required>\n <ui-select-match>{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="status.value as status in states | filter: $select.search">\n <div ng-bind-html="status.name | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n'+" <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n </span>\n</div>\n"),a.put("app/main/template/actionBuilder/template.actionBuilderTemplate.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" required>\n <ui-select-match>{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n <div ng-bind-html="template.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n <input type="text" ng-model="element.data2" name="data2{{randomName}}" class="form-control" required/>\n <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n<div class="col-md-6">\n <input type="text" ng-model="element.data3" class="form-control"/>\n</div>\n'),a.put("app/main/template/actionBuilder/template.actionBuilderUrlForward.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_TYPE\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="type.value as type in types | filter: $select.search">\n <div ng-bind-html="type.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{\'APPLICATION_TYPE\' | translate}}\n </span>\n <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n<div class="form-group col-md-12" data-ng-if="element.data1 && randomName" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n <input type="url" ng-model="element.data2" placeholder="{{ \'APPLICATION_URL\' | translate }}" name="data2{{randomName}}" class="form-control" required/>\n <span class="help-block">\n {{\'APPLICATION_URL\' | translate}}\n </span>\n <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n'+" <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n </span>\n</div>\n"),a.put("app/main/template/template.conditionBuilder.html",'<div data-ng-if="randomName" class="form-group col-md-4" data-ng-class="{\'has-error\': (form[\'field\'+randomName].$touched || form.$submitted) && form[\'field\'+randomName].$invalid}">\n <ui-select data-ng-model="element.field" name="field{{randomName}}" theme="bootstrap" data-ng-change="checkCondition(element.field)" required>\n <ui-select-match>{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="condition.value as condition in service.services[serviceindex].conditions | filter: $select.search">\n <div ng-bind-html="condition.name | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form[\'field\'+randomName].$touched || form.$submitted) && form[\'field\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n<div data-ng-if="randomName && element.field" class="form-group col-md-4" data-ng-class="{\'has-error\': (form[\'operator\'+randomName].$touched || form.$submitted) && form[\'operator\'+randomName].$invalid}">\n <ui-select data-ng-model="element.operator" name="operator{{randomName}}" theme="bootstrap" required>\n <ui-select-match>{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="operator.value as operator in _.find(service.services[serviceindex].conditions,{value:element.field}).operators | filter: $select.search">\n <div ng-bind-html="operator.name | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form[\'operator\'+randomName].$touched || form.$submitted) && form[\'operator\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n<div class="col-md-4" data-ng-if="elementType === \'input\' && randomName && element.field" data-ng-class="{\'has-error\': (form[\'value\'+randomName].$touched || form.$submitted) && form[\'value\'+randomName].$invalid}">\n <input type="text" ng-model="element.value" class="form-control" name="value{{randomName}}" required/>\n <span data-ng-show="(form[\'value\'+randomName].$touched || form.$submitted) && form[\'value\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n<div class="form-group col-md-4" data-ng-if="elementType === \'select\' && randomName && element.field" data-ng-class="{\'has-error\': (form[\'value\'+randomName].$touched || form.$submitted) && form[\'value\'+randomName].$invalid}">\n <ui-select data-ng-model="element.value" name="value{{randomName}}" theme="bootstrap" required>\n <ui-select-match>{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="value.value as value in values| filter: $select.search">\n <div ng-bind-html="value.name | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form[\'value\'+randomName].$touched || form.$submitted) && form[\'value\'+randomName].$error.required" class="help-block help-block-error">\n'+" <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n </span>\n</div>\n"),a.put("app/main/template/template.contactTab.html",'<div class="row margin-top-20 contact-tab-container">\n <div class="col-md-12 contact-tab">\n <form name="forms.general" data-ng-submit="submit({index:index,item:contact,data:workspace.data})" novalidate>\n <!-- BEGIN PROFILE CONTENT -->\n <div class="profile-content">\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#tab_1_1{{contact.id || \'\'}}" data-toggle="tab">{{\'APPLICATION_DETAIL\' | translate}}</a>\n </li>\n <li data-ng-if="contact.id">\n <a href="#tab_1_2{{contact.id || \'\'}}" data-toggle="tab">{{\'APPLICATION_CUSTOMER_JOURNEY\' | translate}}</a>\n </li>\n</ul>\n<div class="tab-content">\n <div class="tab-pane fade active in" id="tab_1_1{{contact.id || \'\'}}">\n <!--end add-portfolio-->\n <div class="row portfolio-block" data-ng-if="workspace.data && workspace.data.uniqueid && workspace.data.agentcalledAt">\n <div class="col-md-3">\n <div class="portfolio-text">\n <img src="assets/images/media/CmCall.png" alt=""/>\n <div class="portfolio-text-info">\n <h4>{{\'MESSAGE_INBOUND_CALL_FROM\' | translate}} - {{workspace.data.calleridnum}}</h4>\n <p>\n {{\'MESSAGE_CALL_UNIQUEID\' | translate}} : {{workspace.data.uniqueid}}\n </p>\n </div>\n </div>\n </div>\n <div class="col-md-2 portfolio-stat">\n <div>{{\'APPLICATION_QUEUE\' | translate}} </div>\n <p> {{workspace.data.queue}} </p>\n </div>\n <div class="col-md-3 portfolio-stat">\n <div>{{\'APPLICATION_AGENT\' | translate}} </div>\n <p> {{workspace.data.membername}} </p>\n </div>\n <div class="col-md-2 portfolio-stat">\n <div>{{\'APPLICATION_DATE\' | translate}} </div>\n <p> {{workspace.data.agentcalledAt | date:\'dd/MM/yyyy HH:mm:ss\'}} </p>\n </div>\n <div class="col-md-2 portfolio-stat">\n <button class="btn" data-ng-class="{\'grey-cascade\':contact.disposed || !enableDisposal,\'green-haze\':enableDisposal && !contact.disposed}" type="button" data-ng-click="dispose()" data-ng-disabled="contact.disposed || !enableDisposal">\n <i class="icon-target"></i> {{\'APPLICATION_DISPOSITION\' | translate}}\n </button>\n </div>\n </div>\n <!--end row-->\n <!-- BEGIN PORTLET -->\n <div class="portlet light ">\n <div class="portlet-title">\n <div class="caption caption-md">\n <i class="icon-bar-chart theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_DETAIL\' | translate}}</span>\n </div>\n <div class="actions">\n <div class="btn-group btn-group-devided" data-toggle="buttons">\n <button type="submit" data-ng-if="contact.id" title="{{\'APPLICATION_COPY\' | translate}}" class="btn btn-circle green btn-sm" data-ng-click="copy(contact.id)"><i class="fa fa-files-o"></i></button>\n <button type="submit" data-ng-if="contact.ListId" class="btn btn-circle purple btn-sm" title="{{\'APPLICATION_MERGE\' | translate}}" data-ng-click="merge(contact)"><i class="icon-link"></i></button>\n <label class="btn btn-transparent grey-salsa btn-circle btn-sm active" data-ng-click="detail.tab=\'main\'">\n <input type="radio" class="toggle">{{\'APPLICATION_MAIN\' | translate}}</label>\n <label class="btn btn-transparent grey-salsa btn-circle btn-sm" data-ng-click="detail.tab=\'other\'">\n <input type="radio" class="toggle">{{\'APPLICATION_OTHER\' | translate}}</label>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <div data-ng-class="{\'hidden\':detail.tab != \'main\'}" class="portlet-body contact-portlet row">\n <div class="col-md-4">\n <!-- START FIRSTNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.firstName.$touched || forms.general.$submitted) && forms.general.firstName.$invalid}">\n <label class="control-label">{{\'APPLICATION_FIRSTNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="firstName" placeholder="{{\'APPLICATION_FIRSTNAME\' | translate}}" class="form-control" data-ng-model="contact.firstName" required/>\n <span data-ng-show="(forms.general.firstName.$touched || forms.general.$submitted) && forms.general.firstName.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END FIRSTNAME -->\n\n <!-- START LASTNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.lastName.$touched || forms.general.$submitted) && forms.general.lastName.$invalid}">\n <label class="control-label">{{\'APPLICATION_LASTNAME\' | translate}}</label>\n <input type="text" name="lastName" placeholder="{{\'APPLICATION_LASTNAME\' | translate}}" class="form-control" data-ng-model="contact.lastName"/>\n <span data-ng-show="(forms.general.lastName.$touched || forms.general.$submitted) && forms.general.lastName.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END LASTNAME -->\n\n <!-- START COMPANY -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.CompanyId.$invalid && forms.general.$submitted}">\n <label class="control-label">{{\'APPLICATION_COMPANY\' | translate}}</label>\n <div class="input-group">\n <ui-select data-ng-model="contact.CompanyId" theme="bootstrap" name="CompanyId" ng-disabled="!companies.length" required>\n <ui-select-match placeholder="{{ \'APPLICATION_COMPANY\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="company.id as company in companies | filter: $select.search" null-option="scope.noCompany">\n <div ng-bind-html="company.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="input-group-btn">\n <button type="button" data-ng-click="companyInfo(contact.CompanyId)" class="btn btn-default" data-ng-disabled="!contact.CompanyId">\n <span class="icon-info" data-ng-class="{\'font-blue\':contact.CompanyId}"></span>\n </button>\n </span>\n </div>\n <div class="note note-warning" data-ng-hide="companies.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_COMPANIES_AVAILABLE\' | translate }}\n </p>\n <p data-ng-if="!Auth.isAgent()">\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/contactmanager/companies/list">{{\'APPLICATION_COMPANIES\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="forms.general.CompanyId.$invalid && forms.general.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END COMPANY -->\n </div>\n <div class="col-md-4">\n <!-- START PHONE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.phone.$touched || forms.general.$submitted) && forms.general.phone.$invalid}">\n <label class="control-label">{{\'APPLICATION_PHONE\' | translate}}</label>\n <div class="input-group">\n <input type="text" name="phone" placeholder="{{\'APPLICATION_PHONE\' | translate}}" class="form-control" data-ng-model="contact.phone"/>\n <span class="input-group-btn" uib-dropdown>\n <button data-ng-if="Auth.isAgent()" type="button" uib-dropdown-toggle class="btn btn-default" data-ng-disabled="!contact.phone || !agent.phoneBarRemoteControl" >\n <span class="icon-earphones-alt" data-ng-class="{\'font-blue\':contact.phone && agent.phoneBarRemoteControl}" uib-tooltip="{{!agent.phoneBarRemoteControl ? (\'APPLICATION_ENABLE_REMOTE_PHONEBAR\' | translate) : (\'APPLICATION_MOTION_BAR_CONTROLS\' | translate)}}" ></span>\n </button>\n <ul class="dropdown-menu" uib-dropdown-menu role="menu" aria-labelledby="single-button">\n <li role="menuitem"><a href="#" data-ng-click="callPhoneBar(contact.phone,\'call\')"><i class="icon-phone"></i> {{\'APPLICATION_CALL\' | translate}}</a></li>\n <li role="menuitem"><a href="#" data-ng-click="callPhoneBar(contact.phone,\'transfer\')"><i class="glyphicon glyphicon-random"></i> {{\'APPLICATION_TRANSFER\' | translate}}</a></li>\n </ul>\n <button type="button" data-ng-click="openRoom(null,\'smsRoom\',{to:contact.phone})" class="btn btn-default" data-ng-disabled="!contact.phone || !license.messaging">\n <span class="glyphicon glyphicon-comment" data-ng-class="{\'font-blue\':contact.phone && license.messaging}"></span>\n </button>\n </span>\n </div>\n <span data-ng-show="(forms.general.phone.$touched || forms.general.$submitted) && forms.general.phone.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PHONE -->\n <!-- START MOBILE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.mobile.$touched || forms.general.$submitted) && forms.general.mobile.$invalid}">\n <label class="control-label">{{\'APPLICATION_MOBILE\' | translate}}</label>\n <div class="input-group">\n <input type="text" name="mobile" placeholder="{{\'APPLICATION_MOBILE\' | translate}}" class="form-control" data-ng-model="contact.mobile"/>\n <span class="input-group-btn" uib-dropdown>\n <button data-ng-if="Auth.isAgent()" type="button" uib-dropdown-toggle class="btn btn-default" data-ng-disabled="!contact.mobile || !agent.phoneBarRemoteControl" >\n <span class="icon-earphones-alt" data-ng-class="{\'font-blue\':contact.mobile && agent.phoneBarRemoteControl}" uib-tooltip="{{!agent.phoneBarRemoteControl ? (\'APPLICATION_ENABLE_REMOTE_PHONEBAR\' | translate) : (\'APPLICATION_MOTION_BAR_CONTROLS\' | translate)}}" ></span>\n </button>\n <ul class="dropdown-menu" uib-dropdown-menu role="menu" aria-labelledby="single-button">\n <li role="menuitem"><a href="#" data-ng-click="callPhoneBar(contact.mobile,\'call\')"><i class="icon-phone"></i> {{\'APPLICATION_CALL\' | translate}}</a></li>\n <li role="menuitem"><a href="#" data-ng-click="callPhoneBar(contact.mobile,\'transfer\')"><i class="glyphicon glyphicon-random"></i> {{\'APPLICATION_TRANSFER\' | translate}}</a></li>\n </ul>\n <button type="button" data-ng-click="openRoom(null,\'smsRoom\',{to:contact.mobile})" class="btn btn-default" data-ng-disabled="!contact.mobile || !license.messaging">\n <span class="glyphicon glyphicon-comment" data-ng-class="{\'font-blue\':contact.mobile && license.messaging}"></span>\n </button>\n </span>\n </div>\n <span data-ng-show="(forms.general.mobile.$touched || forms.general.$submitted) && forms.general.mobile.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MOBILE -->\n <!-- START EMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.email.$touched || forms.general.$submitted) && forms.general.email.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}</label>\n <div class="input-group">\n <input type="text" name="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" class="form-control" data-ng-model="contact.email"/>\n <span class="input-group-btn">\n <button type="button" data-ng-click="openRoom(null,\'mailRoom\',{to:contact.email})" class="btn btn-default" data-ng-disabled="!contact.email || !license.mail">\n <span class="icon-envelope" data-ng-class="{\'font-blue\':contact.email && license.mail}"></span>\n </button>\n </span>\n </div>\n <span data-ng-show="(forms.general.email.$touched || forms.general.$submitted) && forms.general.email.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END EMAIL -->\n </div>\n <div class="col-md-4">\n <!-- START FAX -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.fax.$touched || forms.general.$submitted) && forms.general.fax.$invalid}">\n <label class="control-label">{{\'APPLICATION_FAX\' | translate}}</label>\n <div class="input-group">\n <input type="text" name="fax" placeholder="{{\'APPLICATION_FAX\' | translate}}" class="form-control" data-ng-model="contact.fax"/>\n <span class="input-group-btn">\n <button type="button" data-ng-click="openRoom(null,\'faxRoom\',{to:contact.fax})" class="btn btn-default" data-ng-disabled="!contact.fax || !license.fax">\n <span class="fa fa-fax" data-ng-class="{\'font-blue\':contact.fax && license.fax}"></span>\n </button>\n </span>\n </div>\n <span data-ng-show="(forms.general.fax.$touched || forms.general.$submitted) && forms.general.fax.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END FAX -->\n <!-- START TAGS -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.tags.$invalid && forms.general.$submitted}">\n <label class="control-label">{{\'APPLICATION_TAGS\' | translate}}</label>\n <ui-select multiple=\'true\' data-ng-model="contact.tags" theme="bootstrap" name="tags" ng-disabled="disabled">\n <ui-select-match placeholder="{{ \'APPLICATION_TAGS\' | translate }}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="tag in tags | filter: $select.search">\n {{tag}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.general.tags.$invalid && forms.general.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TAGS -->\n <!-- START LIST -->\n <div class="form-group" data-ng-if="contact.id">\n <label class="control-label">{{\'APPLICATION_LIST\' | translate}}</label>\n <input type="text" name="list" placeholder="{{\'APPLICATION_LIST\' | translate}}" class="form-control" data-ng-model="contact.List.name" disabled/>\n </div>\n <!-- END LIST -->\n <!-- START LIST -->\n <div data-ng-if="!contact.id" class="form-group" data-ng-class="{\'has-error\': forms.general.ListId.$invalid && forms.general.$submitted}">\n <label class="control-label">{{\'APPLICATION_LIST\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="contact.ListId" theme="bootstrap" name="ListId" data-ng-change="getCustomFields()" required>\n <ui-select-match placeholder="{{ \'APPLICATION_LIST\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="list.id as list in lists | filter: $select.search">\n <div ng-bind-html="list.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="lists.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_LISTS_AVAILABLE\' | translate }}\n </p>\n <p data-ng-if="!Auth.isAgent()">\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/contactmanager/lists/list">{{\'APPLICATION_LISTS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="forms.general.ListId.$invalid && forms.general.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END LIST -->\n </div>\n </div>\n <div data-ng-class="{\'hidden\':detail.tab != \'other\'}" class="portlet-body contact-portlet row">\n <div class="col-md-4">\n <!-- START STREET -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.street.$touched || forms.general.$submitted) && forms.general.street.$invalid}">\n <label class="control-label">{{\'APPLICATION_STREET\' | translate}}</label>\n <input type="text" name="street" placeholder="{{\'APPLICATION_STREET\' | translate}}" class="form-control" data-ng-model="contact.street"/>\n <span data-ng-show="(forms.general.street.$touched || forms.general.$submitted) && forms.general.street.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END STREET -->\n\n <!-- START POSTALCODE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.postalCode.$touched || forms.general.$submitted) && forms.general.postalCode.$invalid}">\n <label class="control-label">{{\'APPLICATION_POSTALCODE\' | translate}}</label>\n <input type="text" name="postalCode" placeholder="{{\'APPLICATION_POSTALCODE\' | translate}}" class="form-control" data-ng-model="contact.postalCode"/>\n <span data-ng-show="(forms.general.postalCode.$touched || forms.general.$submitted) && forms.general.postalCode.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END POSTALCODE -->\n\n <!-- START CITY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.city.$touched || forms.general.$submitted) && forms.general.city.$invalid}">\n <label class="control-label">{{\'APPLICATION_CITY\' | translate}}</label>\n <input type="text" name="city" placeholder="{{\'APPLICATION_CITY\' | translate}}" class="form-control" data-ng-model="contact.city"/>\n <span data-ng-show="(forms.general.city.$touched || forms.general.$submitted) && forms.general.city.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CITY -->\n </div>\n <div class="col-md-4">\n <!-- START COUNTRY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.country.$touched || forms.general.$submitted) && forms.general.country.$invalid}">\n <label class="control-label">{{\'APPLICATION_COUNTRY\' | translate}}</label>\n <input type="text" name="country" placeholder="{{\'APPLICATION_COUNTRY\' | translate}}" class="form-control" data-ng-model="contact.country"/>\n <span data-ng-show="(forms.general.country.$touched || forms.general.$submitted) && forms.general.country.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END COUNTRY -->\n\n <!-- START DATEOFBIRTH -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.dateOfBirth.$touched || forms.general.$submitted) && forms.general.dateOfBirth.$invalid}">\n <label class="control-label">{{\'APPLICATION_DATEOFBIRTH\' | translate}}</label>\n <input name="dateOfBirth" type="date" placeholder="{{\'APPLICATION_DATEOFBIRTH\' | translate}}" class="form-control date-picker" data-ng-model="contact.dateOfBirth"/>\n <span data-ng-show="(forms.general.dateOfBirth.$touched || forms.general.$submitted) && forms.general.dateOfBirth.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END DATEOFBIRTH -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea style="resize: vertical;" type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="contact.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n </div>\n <div class="col-md-4">\n <!-- START URL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.url.$touched || forms.general.$submitted) && forms.general.url.$invalid}">\n <label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n <input type="text" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="contact.url"/>\n <span data-ng-show="(forms.general.url.$touched || forms.general.$submitted) && forms.general.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END URL -->\n\n <!-- START CREATED_BY -->\n <div class="form-group" data-ng-if="contact.id">\n <label class="control-label">{{\'APPLICATION_CREATED_BY\' | translate}}</label>\n <input type="text" name="createdBy" placeholder="{{\'APPLICATION_CREATED_BY\' | translate}}" class="form-control" data-ng-model="contact.User.name" disabled/>\n </div>\n <!-- END CREATED_BY -->\n </div>\n </div>\n </div>\n <button type="submit" class="btn btn-circle green-haze btn-sm" data-ng-disabled="forms.general.$invalid">{{contact.id ? \'APPLICATION_UPDATE\' : \'APPLICATION_SAVE\' | translate}}</button>\n </div>\n <!-- END PORTLET -->\n <!-- BEGIN PORTLET -->\n <div class="portlet light" data-ng-if="customFields.length">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_CUSTOM_FIELDS\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body">\n <div class="row">\n <div class="col-md-4" data-ng-repeat="customField in customFields track by $index">\n <div data-ng-if="customField.type==\'text\'" class="form-group" data-ng-class="{\'has-error\': (forms.general[customField.name].$touched || forms.general.$submitted) && forms.general[customField.name].$invalid}">\n <label class="control-label">{{customField.alias}}<span data-ng-if="customField.required" class="required" aria-required="true">*</span></label>\n <input type="text" name="{{customField.name}}" placeholder="{{customField.alias}}" class="form-control" data-ng-model="contact[customField.name]" data-ng-required="customField.required"/>\n <span data-ng-show="(forms.general[customField.name].$touched || forms.general.$submitted) && forms.general[customField.name].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div data-ng-if="customField.type==\'select\'" class="form-group" data-ng-class="{\'has-error\': forms.general[customField.name].$invalid && forms.general.$submitted}">\n <label class="control-label">{{customField.alias}}<span data-ng-if="customField.required" class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="contact[customField.name]" theme="bootstrap" name="{{customField.name}}" data-ng-disabled="disabled" data-ng-required="customField.required">\n <ui-select-match allow-clear placeholder="{{customField.alias}}">{{$select.selected.value}}</ui-select-match>\n <ui-select-choices repeat="choice.value as choice in customField.values | filter: $select.search">\n <div ng-bind-html="choice.value | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.general[customField.name].$invalid && forms.general.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n <button type="submit" class="btn btn-circle green-haze btn-sm" data-ng-disabled="forms.general.$invalid">{{contact.id ? \'APPLICATION_UPDATE\' : \'APPLICATION_SAVE\' | translate}}</button>\n </div>\n </div>\n <!-- END PORTLET -->\n </div>\n <div class="tab-pane fade" id="tab_1_2{{contact.id || \'\'}}">\n <!-- BEGIN PORTLET -->\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_CUSTOMER_JOURNEY\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_2_1{{contact.id || \'\'}}" data-toggle="tab">{{ \'APPLICATION_DAILY\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_2_2{{contact.id || \'\'}}" data-toggle="tab">{{ \'APPLICATION_HISTORY\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <!--BEGIN TABS-->\n <div class="tab-content">\n <div class="tab-pane active" id="tab_2_1{{contact.id || \'\'}}">\n <div class="contact-portlet">\n <div class="actions">\n <div class="btn-group btn-group-devided" data-toggle="buttons">\n <label class="btn btn-transparent grey-salsa btn-circle btn-sm" data-ng-class="{\'active\':log.daily.show === \'phone\'}" data-ng-click="updateLog(\'daily\',\'phone\',\'general\',\'inbound\')">\n <input type="radio" class="toggle">{{\'APPLICATION_PHONES\' | translate}}</label>\n <label class="btn btn-transparent grey-salsa btn-circle btn-sm" data-ng-class="{\'active\':log.daily.show === \'email\'}" data-ng-click="updateLog(\'daily\',\'email\',\'general\',\'room\')">\n <input type="radio" class="toggle">{{\'APPLICATION_EMAILS\' | translate}}</label>\n <label class="btn btn-transparent grey-salsa btn-circle btn-sm" data-ng-class="{\'active\':log.daily.show === \'chat\'}" data-ng-click="updateLog(\'daily\',\'chat\',\'general\',\'room\')">\n <input type="radio" class="toggle">{{\'APPLICATION_CHAT\' | translate}}</label>\n <label class="btn btn-transparent grey-salsa btn-circle btn-sm" data-ng-class="{\'active\':log.daily.show === \'fax\'}" data-ng-click="updateLog(\'daily\',\'fax\',\'general\',\'room\')">\n <input type="radio" class="toggle">{{\'APPLICATION_FAX\' | translate}}</label>\n <label class="btn btn-transparent grey-salsa btn-circle btn-sm" data-ng-class="{\'active\':log.daily.show === \'sms\'}" data-ng-click="updateLog(\'daily\',\'sms\',\'general\',\'room\')">\n <input type="radio" class="toggle">{{\'APPLICATION_SMS\' | translate}}</label>\n </div><span data-ng-if="log.daily.show==\'phone\'"> |</span>\n <div class="btn-group btn-group-devided" data-toggle="buttons" data-ng-if="log.daily.show==\'phone\'">\n <label class="btn btn-transparent grey-salsa btn-circle btn-sm" data-ng-class="{\'active\':log.daily.type === \'inbound\'}" data-ng-click="updateLog(\'daily\',false,false,\'inbound\')">\n <input type="radio" class="toggle">{{\'APPLICATION_INBOUND\' | translate}}</label>\n <label class="btn btn-transparent grey-salsa btn-circle btn-sm" data-ng-class="{\'active\':log.daily.type === \'outbound\'}" data-ng-click="updateLog(\'daily\',false,\'general\',\'outbound\')">\n <input type="radio" class="toggle">{{\'APPLICATION_OUTBOUND\' | translate}}</label>\n </div><span data-ng-if="log.daily.show==\'phone\'"> |</span>\n <div class="btn-group btn-group-devided" data-toggle="buttons" data-ng-if="log.daily.show==\'phone\'">\n <label class="btn btn-transparent grey-salsa btn-circle btn-sm" data-ng-class="{\'active\':log.daily.detail === \'general\'}" data-ng-click="updateLog(\'daily\',false,\'general\',false)">\n <input type="radio" class="toggle">{{\'APPLICATION_GENERAL\' | translate}}</label>\n <label data-ng-if="log.daily.type===\'inbound\'" class="btn btn-transparent grey-salsa btn-circle btn-sm" data-ng-class="{\'active\':log.daily.detail === \'queue\'}" data-ng-click="updateLog(\'daily\',false,\'queue\',\'inbound\')">\n <input type="radio" class="toggle">{{\'APPLICATION_QUEUES\' | translate}}</label>\n </div>\n </div>\n <div data-ng-if="gridOptionsdaily" name="gridOptionsdaily" ui-grid="gridOptionsdaily" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptionsdaily.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n </div>\n </div>\n <div class="tab-pane" id="tab_2_2{{contact.id || \'\'}}">\n <div class="contact-portlet">\n <div class="actions">\n <div class="btn-group btn-group-devided" data-toggle="buttons">\n'+" <label class=\"btn btn-transparent grey-salsa btn-circle btn-sm\" data-ng-class=\"{'active':log.history.show === 'phone'}\" data-ng-click=\"updateLog('history','phone','general','inbound')\">\n <input type=\"radio\" class=\"toggle\">{{'APPLICATION_PHONES' | translate}}</label>\n <label class=\"btn btn-transparent grey-salsa btn-circle btn-sm\" data-ng-class=\"{'active':log.history.show === 'email'}\" data-ng-click=\"updateLog('history','email','general','room')\">\n <input type=\"radio\" class=\"toggle\">{{'APPLICATION_EMAILS' | translate}}</label>\n <label class=\"btn btn-transparent grey-salsa btn-circle btn-sm\" data-ng-class=\"{'active':log.history.show === 'chat'}\" data-ng-click=\"updateLog('history','chat','general','room')\">\n <input type=\"radio\" class=\"toggle\">{{'APPLICATION_CHAT' | translate}}</label>\n <label class=\"btn btn-transparent grey-salsa btn-circle btn-sm\" data-ng-class=\"{'active':log.history.show === 'fax'}\" data-ng-click=\"updateLog('history','fax','general','room')\">\n <input type=\"radio\" class=\"toggle\">{{'APPLICATION_FAX' | translate}}</label>\n <label class=\"btn btn-transparent grey-salsa btn-circle btn-sm\" data-ng-class=\"{'active':log.history.show === 'sms'}\" data-ng-click=\"updateLog('history','sms','general','room')\">\n <input type=\"radio\" class=\"toggle\">{{'APPLICATION_SMS' | translate}}</label>\n </div><span data-ng-if=\"log.history.show=='phone'\"> |</span>\n <div class=\"btn-group btn-group-devided\" data-toggle=\"buttons\" data-ng-if=\"log.history.show=='phone'\">\n <label class=\"btn btn-transparent grey-salsa btn-circle btn-sm\" data-ng-class=\"{'active':log.history.type === 'inbound'}\" data-ng-click=\"updateLog('history',false,false,'inbound')\">\n <input type=\"radio\" class=\"toggle\">{{'APPLICATION_INBOUND' | translate}}</label>\n <label class=\"btn btn-transparent grey-salsa btn-circle btn-sm\" data-ng-class=\"{'active':log.history.type === 'outbound'}\" data-ng-click=\"updateLog('history',false,'general','outbound')\">\n <input type=\"radio\" class=\"toggle\">{{'APPLICATION_OUTBOUND' | translate}}</label>\n </div><span data-ng-if=\"log.history.show=='phone'\"> |</span>\n <div class=\"btn-group btn-group-devided\" data-toggle=\"buttons\" data-ng-if=\"log.history.show=='phone'\">\n <label class=\"btn btn-transparent grey-salsa btn-circle btn-sm\" data-ng-class=\"{'active':log.history.detail === 'general'}\" data-ng-click=\"updateLog('history',false,'general',false)\">\n <input type=\"radio\" class=\"toggle\">{{'APPLICATION_GENERAL' | translate}}</label>\n <label data-ng-if=\"log.history.type==='inbound'\" class=\"btn btn-transparent grey-salsa btn-circle btn-sm\" data-ng-class=\"{'active':log.history.detail === 'queue'}\" data-ng-click=\"updateLog('history',false,'queue','inbound')\">\n <input type=\"radio\" class=\"toggle\">{{'APPLICATION_QUEUES' | translate}}</label>\n </div>\n </div>\n <div data-ng-if=\"gridOptionshistory\" name=\"gridOptionshistory\" ui-grid=\"gridOptionshistory\" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-exporter ui-grid-draggable-rows class=\"ui-grid\">\n <div class=\"watermark\" ng-show=\"!gridOptionshistory.data.length\">{{'MESSAGE_NO_RESULTS_AVAILABLE' | translate}}</div>\n </div>\n </div>\n </div>\n </div>\n <!--END TABS-->\n </div>\n </div>\n <!-- END PORTLET -->\n </div>\n <!-- END PROFILE CONTENT -->\n </form>\n</div>\n </div>\n</div>\n"), +a.put("app/main/template/template.jscriptyTab.html",'<div class="portlet light bordered">\n <!-- BEGIN PORTLET BODY -->\n <div class="portlet-body">\n <div class="row">\n <!-- BEGIN SIDEBAR -->\n <div class="profile-sidebar" style="width: 250px;">\n <!-- PORTLET MAIN -->\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li ng-repeat= \'question in questions track by $index\' ng-class="{active: $index == count}">\n <a ng-click="setCurrentQuestion($index)" >\n <i class="fa fa-check"></i> <label ng-if="attribute.nodeName == \'label\'" ng-repeat=\'attribute in question.value.attributes track by $index\'>{{attribute.value}}</label>\n </a>\n </li>\n </ul>\n </div>\n <!-- END SIDEBAR MENU -->\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END SIDEBAR -->\n <div class="profile-content">\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="fa fa-edit font-green-sharp"></i>\n <span ng-if="attribute.nodeName ==\'label\'" ng-repeat=\'attribute in currentQuestion.value.attributes\' class="caption-subject">{{attribute.value}} </span>\n </div>\n\n </div>\n <div class="portlet-body form ">\n <div class="row">\n <div class="col-md-10 col-md-offset-1 ">\n <form >\n <div class="form-body" style="height: 400px; overflow-y: auto;overflow-x:hidden">\n\n <!-- Question -->\n <div class="form-group" style="word-wrap: break-word;" >\n <h3 ng-if="attribute.nodeName ==\'question\' || attribute.nodeName ==\'text\'" ng-repeat=\'attribute in currentQuestion.value.attributes\'>{{attribute.value}}</h3>\n </div>\n <!-- Buttons -->\n\n <div ng-if ="(edge.source.id == currentQuestion.id) && edge.value" ng-repeat=\'edge in currentQuestion.edges track by $index\' class="row">\n <div class="col-md-8 col-md-offset-2">\n <input checked="checked" type="radio" ng-model="currentQuestion.button" ng-value="edge" >\n <label ng-show="(edge.source.id == currentQuestion.id) && edge.value">{{edge.value}}</label><br><br>\n </div>\n </div>\n <!-- Question Other Option -->\n\n <div class="form-group" ng-if= "attribute.nodeName ==\'other\' && attribute.value " ng-repeat=\'attribute in currentQuestion.value.attributes track by $index\'>\n <br>\n <div class="col-md-2">\n <label class="control-label">{{attribute.value}}</label>\n </div>\n <div class="col-md-8">\n <textarea style="overflow:auto" ng-model="currentQuestion.otheranswer" placeholder="Enter text" rows="8" cols="40" ></textarea>\n </div>\n </div>\n <!-- Inputs -->\n <div class="row margin-top-10" ng-repeat=\'question in currentQuestion.children track by $index\'>\n <div class="col-md-10 col-md-offset-1">\n <div ng-repeat=\'attribute in question.value.attributes track by $index\'>\n <div ng-switch="attribute.nodeName">\n <div ng-class="col-md-2" ng-switch-when="label">\n <label class="control-label" style=" display:block;word-break:break-all;" >{{attribute.value}}</label>\n </div>\n <div ng-class="attribute.value != \'checkbox\' ? \'col-md-10 pull-right\': \'col-md-2\'" ng-switch-when="type" ng-switch="attribute.value">\n <input class="form-control" ng-switch-when="text" type="text" ng-model="question.answer" />\n <input class="form-control" ng-switch-when="number" type="number" ng-model="question.answer" />\n <input class=" pull-right" ng-switch-when="checkbox" type="checkbox" ng-model="question.answer" />\n <!-- ng-true-value="\'Selected\'" ng-false-value="\'Not Selected\'" -->\n <textarea class="form-control" ng-switch-when="textarea" ng-model="question.answer" rows="8" cols="40"></textarea>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <!-- actions -->\n <div class="form-actions">\n <div ng-switch="attribute.nodeName" class="btn-set pull-left">\n <button class="btn red-haze " ng-click="end()">\n <span class="fa fa-times" > Close</span>\n </button>\n <!-- <button class="btn red-haze " ng-click="end()">\n <span ng-if="attribute.nodeName ==\'end\'" ng-repeat=\'attribute in currentQuestion.value.attributes\' class="fa fa-times" > Finish</span>\n </button> -->\n <button class="btn blue-haze" ng-show="count" ng-click="back()"><span class="glyphicon glyphicon-chevron-left"></span>Back</button>\n </div>\n <div class="btn-set pull-right">\n <button ng-show=" currentQuestion.button" class="btn blue-hoki" ng-click="next(currentQuestion.button.target, currentQuestion.button.value)">Next<span class="glyphicon glyphicon-chevron-right" ></span></button>\n <button ng-repeat=\'edge in currentQuestion.edges track by $index\' ng-show="(edge.source.id == currentQuestion.id) && !edge.value" class="btn blue-hoki" ng-click="next(edge.target)">Next<span class="glyphicon glyphicon-chevron-right" ></span></button>\n </div>\n </div>\n </form>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <!-- END PORTLET BODY -->\n</div>\n'),a.put("app/main/template/template.notification.html",'<div class="ui-notification alert alert-block" ng-class="class" style="width: 350px; margin-top: 50px;">\n <h4 ng-show="title" class="alert-heading"><i class="{{icon}}"></i> {{title}}</h4>\n <hr>\n <p ng-bind-html="message"></p>\n <br>\n <p>\n <a class="btn btn-success close-notification" href="#" ng-click="nAccept()"><i class="glyphicon glyphicon-ok"></i> {{acceptBtn}} </a>\n <a class="btn btn-danger close-notification" href="#" ng-click="nReject()"><i class="glyphicon glyphicon-remove"></i> {{rejectBtn}} </a>\n </p>\n</div>\n'),a.put("app/main/template/template.reportBuilderView.html",'<div class="alert alert-warning alert-group">\n <div class="form-inline" data-ng-class="{\'has-error\': forms.report.$submitted && !group.rules.length}">\n <select ng-options="o.name as o.name for o in operators" ng-model="group.operator" class="form-control input-sm"></select>\n <button style="margin-left: 5px" type="button" ng-click="addCondition()" class="btn btn-sm btn-success"><span class="glyphicon glyphicon-plus-sign"></span> {{\'APPLICATION_ADD_CONDITION\' | translate}}</button>\n <button style="margin-left: 5px" type="button" ng-click="addGroup()" class="btn btn-sm btn-success"><span class="glyphicon glyphicon-plus-sign"></span> {{\'APPLICATION_ADD_GROUP\' | translate}}</button>\n <button style="margin-left: 5px" type="button" ng-click="removeGroup()" class="btn btn-sm btn-danger"><span class="glyphicon glyphicon-minus-sign"></span> {{\'APPLICATION_REMOVE_GROUP\' | translate}}</button>\n </div>\n <div class="group-conditions">\n <div ng-repeat="rule in group.rules | orderBy:\'index\'" class="condition">\n <div ng-switch="rule.hasOwnProperty(\'group\')">\n <div ng-switch-when="true">\n <report-builder group="rule.group" fields="fields" forms="forms"></report-builder>\n </div>\n <div ng-switch-default="ng-switch-default">\n <div class="row">\n <div class="col-md-2" data-ng-class="{\'has-error\': forms.report.$submitted && !rule.field}">\n <ui-select data-ng-model="rule.field" theme="bootstrap" dynamic-name="randomName()" required>\n <ui-select-match placeholder="" ><span ng-bind-html="$select.selected.name"></span></ui-select-match>\n <ui-select-choices repeat="field.value as field in fields | filter: $select.search">\n <div ng-bind-html="field.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.report.$submitted && !rule.field" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="col-md-1">\n <ui-select data-ng-model="rule.condition" theme="bootstrap" dynamic-name="randomName()" data-ng-change="inputIsRequired(rule)" data-ng-init="inputIsRequired(rule)">\n <ui-select-match placeholder="">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="condition.name as condition in conditions | filter: $select.search">\n <div ng-bind-html="condition.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-2" data-ng-class="{\'has-error\': forms.report.$submitted && !rule.value}" data-ng-if="rule.required">\n <input type="text" ng-model="rule.value" class="form-control" dynamic-name="randomName()" data-ng-required="requiredInput"/>\n <span data-ng-show="forms.report.$submitted && !rule.value" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <button style="margin-left: 5px" ng-click="removeCondition($index)" class="btn btn-sm btn-danger" type="button"><span class="glyphicon glyphicon-minus-sign"></span></button>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n'),a.put("app/main/template/template.tigerDialDisposal.html",'<div class="row margin-top-20 contact-tab-container">\n <div class="portlet light bordered">\n <div class="row portfolio-block" data-ng-if="workspace.spooler.destcalleridnum && workspace.spooler.queue && workspace.spooler.agentconnectAt">\n <div class="col-md-2">\n <div class="portfolio-text">\n <img src="assets/images/media/outboundroute.png" class="td-disposal-logo" alt=""/>\n </div>\n </div>\n <div class="col-md-3 portfolio-stat">\n <div>{{\'APPLICATION_CALLED_NUMBER\' | translate}} </div>\n <p> {{workspace.spooler.destcalleridnum}} </p>\n </div>\n <div class="col-md-3 portfolio-stat">\n <div>{{\'APPLICATION_QUEUE\' | translate}} </div>\n <p> {{workspace.spooler.queue}} </p>\n </div>\n <div class="col-md-3 portfolio-stat">\n <div>{{\'APPLICATION_DATE\' | translate}} </div>\n <p> {{workspace.spooler.agentconnectAt | date:\'dd/MM/yyyy HH:mm:ss\'}} </p>\n </div>\n</div>\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <span class="caption-subject">{{ workspace.spooler.calleridname }} {{ \'APPLICATION_MOTION_DIALER\' | translate }} {{ \'APPLICATION_DISPOSITION\' | translate }} </span>\n </div>\n </div>\n <div class="portlet-body">\n <div class="padding-bottom row">\n <div class="col-md-12" data-ng-form="tdForm">\n <!-- START RETRIEVE -->\n <div class="form-group" data-ng-class="{\'has-error\': (tdForm.retrieve.$touched || tdForm.$submitted) && tdForm.retrieve.$invalid}">\n <label class="control-label">{{ \'APPLICATION_STATUS\' | translate }}<span class="required" aria-required="true">*</span></label>\n <select name="retrieve" class="form-control" data-ng-model="entitySpooler.retrieve" required>\n <option value="CLOSED">CLOSE</option>\n <option value="OPEN">OPEN</option>\n <option value="BLACK_LIST">BLACKLIST</option>\n <option value="PLANNED">PLANNING</option>\n <option value="PLANNED_PEER">PLANNING AGENT</option>\n </select>\n <span data-ng-show="(tdForm.retrieve.$touched || tdForm.$submitted) && tdForm.retrieve.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END RETRIEVE -->\n <!-- START PLANNING DATE -->\n <div class="form-group" data-ng-if="entitySpooler.retrieve == \'PLANNED\' || entitySpooler.retrieve == \'PLANNED_PEER\'" data-ng-class="{\'has-error\': (tdForm.date.$touched || tdForm.$submitted) && tdForm.date.$invalid}">\n <label class="control-label">PLANNING DATE<span class="required" aria-required="true">*</span></label>\n <uib-datepicker name="date" ng-model="entitySpooler.planningtime" required data-ng-init="entitySpooler.planningtime = moment();"></uib-datepicker>\n <span data-ng-show="(tdForm.date.$touched || tdForm.$submitted) && tdForm.date.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PLANNING DATE -->\n <!-- START PLANNING TIME -->\n <div class="form-group" data-ng-if="entitySpooler.retrieve == \'PLANNED\' || entitySpooler.retrieve == \'PLANNED_PEER\'" data-ng-class="{\'has-error\': (tdForm.time.$touched || tdForm.$submitted) && tdForm.time.$invalid}">\n <label class="control-label">PLANNING TIME<span class="required" aria-required="true">*</span></label>\n <uib-timepicker name="time" ng-model="entitySpooler.planningtime" required show-meridian="false" show-seconds="false"></uib-timepicker>\n <span data-ng-show="(tdForm.time.$touched || tdForm.$submitted) && tdForm.time.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PLANNING TIME -->\n <!-- START PLANNING PEER -->\n <div class="form-group" data-ng-if="entitySpooler.retrieve == \'PLANNED_PEER\'" data-ng-class="{\'has-error\': (tdForm.agent.$touched || tdForm.$submitted) && tdForm.agent.$invalid}">\n <label class="control-label">{{\'APPLICATION_AGENT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input name="agent" class="form-control" data-ng-model="entitySpooler.planningpeer" readonly required>\n <span data-ng-show="(tdForm.agent.$touched || tdForm.$submitted) && tdForm.agent.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PLANNING PEER -->\n <button type="button" class="btn btn-circle green-haze btn-sm" data-ng-disabled="!tdForm.$valid" data-ng-click="save()">{{\'APPLICATION_SAVE\' | translate}}</button>\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/main/template/template.webPopup.html",'<div class="alert" ng-class="class">\n <h3 data-ng-show="workspace.data.subject" class="alert-heading"><i class="{{icon}}"></i>{{workspace.data.subject}}</h3>\n <hr data-ng-show="workspace.data.subject">\n <div ng-bind-html="html"></div>\n</div>\n'),a.put("app/market/market.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-handbag"></i>\n <a href="/market">Market Place</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <!-- Our Integration -->\n <div class="headline">\n <h3>Our Integrations</h3>\n </div>\n <div class="row thumbnails" data-ng-repeat="group in groupedIntegration">\n <div class="col-md-3" data-ng-repeat="integration in group">\n <div class="our-integrations">\n <h3> {{integration.name}} <small> {{integration.author}}</small></h3>\n <img data-ng-src="{{integration.logo}}" alt="{{integration.name}}" class="img-responsive"/>\n <div class="integration-info" data-ng-if="!integration.downloading">\n <p>\n {{integration.description}}\n </p>\n <div class="pull-right">\n <a data-ng-disabled="isProgressing" data-ng-if="!integration.active" data-ng-click="installIntegration(integration)" href="#" class="btn btn-xs green-meadow">Install <i class="fa fa-download"></i></a>\n <a data-ng-disabled="isProgressing" data-ng-if="integration.active" data-ng-click="uninstallIntegration(integration)" href="#" class="btn btn-xs red-sunglo">Uninstall <i class="fa fa-trash"></i></a>\n <a href="{{integration.link}}" class="btn btn-xs grey-cascade" target="_blank">More <i class="fa fa-link"></i></a>\n </div>\n </div>\n <div class="integration-info" data-ng-if="integration.downloading">\n <div>\n <uib-progressbar class="progress-striped active" value="percentage" type="success"><i style="color:black;">{{status}}</i></uib-progressbar>\n </div>\n </div>\n </div>\n </div>\n </div>\n <!--/thumbnails-->\n <!-- //End Meer Our Team -->\n </div>\n</div>\n'),a.put("app/motiondialer/blacklist/list/list.create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_CONTACT\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <!-- START PHONE -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.phone.$touched || form.$submitted) && form.phone.$invalid}">\n <label class="control-label">{{\'APPLICATION_PHONE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="phone" placeholder="{{\'APPLICATION_PHONE\' | translate}}" class="form-control" data-ng-model="item.phone" required/>\n <span data-ng-show="(form.phone.$touched || form.$submitted) && form.phone.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PHONE -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/motiondialer/blacklist/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-control-forward"></i>\n <a href="#">Motion Dialer</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-doc"></i>\n <a href="#">{{ \'APPLICATION_BLACKLIST\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-doc font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_BLACKLIST\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group">\n <button class="btn green-jungle " ng-click="createItem()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_CONTACT\' | translate }}\n </button>\n <span class="btn default btn-file">\n <span class="fileinput-new"><i class="icon-cloud-upload"></i> {{\'APPLICATION_IMPORT_FROM_CSV\' | translate}}</span>\n <input type="file" nv-file-select="" uploader="uploader"/>\n </span>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-exporter class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/motiondialer/blacklist/list/list.import.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_IMPORT_FROM_CSV\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <!-- START PHONE -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.phone.$touched || form.$submitted) && form.phone.$invalid}">\n <label class="control-label">{{\'APPLICATION_PHONE\' | translate}}</label>\n <ui-select data-ng-model="item.phone" theme="bootstrap" name="phone" data-ng-disabled="disabled" required>\n <ui-select-match allow-clear placeholder="{{ \'APPLICATION_PHONE\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="index in indexes | filter: $select.search">\n <div ng-bind-html="index | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END PHONE -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <ui-select data-ng-model="item.description" theme="bootstrap" name="description" data-ng-disabled="disabled">\n <ui-select-match allow-clear placeholder="{{ \'APPLICATION_DESCRIPTION\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="index in indexes | filter: $select.search">\n <div ng-bind-html="index | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n <!-- START PROGRESS -->\n <div>\n <p>{{\'APPLICATION_IMPORT_SUCCEEDED\' | translate}}: {{import.succeeded}}/{{csvLength}}</p>\n <div class="progress progress-sm" style="">\n <div class="progress-bar progress-bar-info" role="progressbar" ng-style="{ \'width\': import.success + \'%\' }"></div>\n </div>\n </div>\n <div>\n <p>{{\'APPLICATION_IMPORT_FAILED\' | translate}}: {{import.failed}}/{{csvLength}}</p>\n <div class="progress progress-sm" style="">\n <div class="progress-bar progress-bar-danger" role="progressbar" ng-style="{ \'width\': import.fail + \'%\' }"></div>\n </div>\n <div class="has-error" data-ng-if="noPhone.length">\n <span class="help-block help-block-error">\n {{\'APPLICATION_CONTACTS_WITHOUT_PHONE\' | translate}}: {{noPhone}}\n </span>\n </div>\n <div class="has-error" data-ng-if="duplicates.length">\n <span class="help-block help-block-error">\n {{\'APPLICATION_DUPLICATED_CONTACTS\' | translate}}: {{duplicates}}\n </span>\n </div>\n </div>\n <!-- END PROGRESS -->\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="start()" ng-disabled="form.$invalid || !form.phone || submitted">{{ \'APPLICATION_SUBMIT\' | translate }}</button>\n <button class="btn default" type="button" ng-click="close()" data-ng-if="!importing">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n <button class="btn default" type="button" ng-click="stop()" data-ng-if="importing">{{ \'APPLICATION_STOP\' | translate }}</button>\n</div>\n'),a.put("app/motiondialer/info/view/view.about.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_ABOUT\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body">\n <form class="form-horizontal form-row-seperated">\n <div class="form-body">\n <!-- START -->\n <div class="form-group">\n <label class="control-label col-md-3">Specification</label>\n <div class="col-md-9">\n <input type="text" class="form-control" value="{{properties.SpecificationTitle}} ({{properties.SpecificationVersion}}) - {{properties.SpecificationVendor}}" disabled/>\n <span class="help-block">\n </span>\n </div>\n </div>\n <!-- END -->\n <!-- START -->\n <div class="form-group">\n <label class="control-label col-md-3">Implementation</label>\n <div class="col-md-9">\n <input type="text" class="form-control" value="{{properties.ImplementationTitle}} ({{properties.ImplementationVersion}}) - {{properties.ImplementationVendor}}" disabled/>\n <span class="help-block">\n </span>\n </div>\n </div>\n <!-- END -->\n <!-- START -->\n <div class="form-group">\n <label class="control-label col-md-3">Start Time</label>\n <div class="col-md-9">\n <input type="text" class="form-control" data-ng-model="properties.StartTime" disabled/>\n <span class="help-block">\n </span>\n </div>\n </div>\n <!-- END -->\n <!-- START -->\n <div class="form-group">\n <label class="control-label col-md-3">Uptime</label>\n <div class="col-md-9">\n <input type="text" class="form-control" data-ng-model="properties.Uptime" disabled/>\n <span class="help-block">\n </span>\n </div>\n </div>\n <!-- END -->\n <!-- START -->\n <div class="form-group">\n <label class="control-label col-md-3">Operating System</label>\n <div class="col-md-9">\n <input type="text" class="form-control" value="{{properties.OsName}} {{properties.OsVersion}} {{properties.OsArch}}" disabled/>\n <span class="help-block">\n </span>\n </div>\n </div>\n <!-- END -->\n <!-- START -->\n <div class="form-group">\n <label class="control-label col-md-3">Processors</label>\n <div class="col-md-9">\n <input type="text" class="form-control" data-ng-model="properties.Processors" disabled/>\n <span class="help-block">\n </span>\n </div>\n </div>\n <!-- END -->\n <!-- START -->\n <div class="form-group">\n <label class="control-label col-md-3">System Start Time</label>\n <div class="col-md-9">\n <input type="text" class="form-control" data-ng-model="properties.SystemStartTime" disabled/>\n <span class="help-block">\n </span>\n </div>\n </div>\n <!-- END -->\n <!-- START -->\n <div class="form-group">\n <label class="control-label col-md-3">System Uptime</label>\n <div class="col-md-9">\n <input type="text" class="form-control" data-ng-model="properties.SystemUptime" disabled/>\n <span class="help-block">\n </span>\n </div>\n </div>\n <!-- END -->\n <!-- START -->\n <div class="form-group">\n <label class="control-label col-md-3">File System</label>\n <div class="col-md-9">\n <input type="text" class="form-control" value="Usable: {{properties.FileSystem.Usable | number:2}} Free: {{properties.FileSystem.Free | number:2}} Total: {{properties.FileSystem.Total | number:2}}" disabled/>\n <span class="help-block">\n </span>\n </div>\n </div>\n <!-- END -->\n </div>\n </form>\n </div>\n </div>\n </div>\n</div>\n'), +a.put("app/motiondialer/info/view/view.details.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_DETAILS\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body">\n <form class="form-horizontal form-row-seperated">\n <div class="form-body">\n <!-- START -->\n <div class="form-group">\n <label class="control-label col-md-3">Java Specification Name</label>\n <div class="col-md-9">\n <input type="text" class="form-control" data-ng-model="properties.JavaSpecificationName" disabled/>\n <span class="help-block">\n </span>\n </div>\n </div>\n <!-- END -->\n <!-- START -->\n <div class="form-group">\n <label class="control-label col-md-3">Java Home</label>\n <div class="col-md-9">\n <input type="text" class="form-control" data-ng-model="properties.JavaHome" disabled/>\n <span class="help-block">\n </span>\n </div>\n </div>\n <!-- END -->\n <!-- START -->\n <div class="form-group">\n <label class="control-label col-md-3">JavaVm</label>\n <div class="col-md-9">\n <input type="text" class="form-control" value="{{properties.JavaVmName}} ({{properties.JavaVmVersion}} {{properties.JavaVmInfo}}) - {{properties.JavaVmVendor}}" disabled/>\n <span class="help-block">\n </span>\n </div>\n </div>\n <!-- END -->\n\n <!-- START -->\n <div class="form-group">\n <label class="control-label col-md-3">Java</label>\n <div class="col-md-9">\n <input type="text" class="form-control" value="Java ({{properties.JavaVersion}} {{properties.JavaClassVersion}}) - {{properties.JavaVendor}}" disabled/>\n <span class="help-block">\n </span>\n </div>\n </div>\n <!-- END -->\n <!-- START -->\n <div class="form-group">\n <label class="control-label col-md-3">Java Runtime</label>\n <div class="col-md-9">\n <input type="text" class="form-control" value="{{properties.JavaRuntimeName}} ({{JavaRuntimeVersion}})" disabled/>\n <span class="help-block">\n </span>\n </div>\n </div>\n <!-- END -->\n <!-- START -->\n <div class="form-group">\n <label class="control-label col-md-3">Java Rmi Server Hostname</label>\n <div class="col-md-9">\n <input type="text" class="form-control" value="{{properties.JavaRmiServerHostname}}" disabled/>\n <span class="help-block">\n </span>\n </div>\n </div>\n <!-- END -->\n <!-- START -->\n <div class="form-group">\n <label class="control-label col-md-3">User</label>\n <div class="col-md-9">\n <input type="text" class="form-control" value="{{properties.UserName}} {{properties.UserLanguage}}-{{properties.UserCountry}} {{properties.UserTimezone}}" disabled/>\n <span class="help-block">\n </span>\n </div>\n </div>\n <!-- END -->\n <!-- START -->\n <div class="form-group">\n <label class="control-label col-md-3">User Home</label>\n <div class="col-md-9">\n <input type="text" class="form-control" value="{{properties.UserHome}}" disabled/>\n <span class="help-block">\n </span>\n </div>\n </div>\n <!-- END -->\n <!-- START -->\n <div class="form-group">\n <label class="control-label col-md-3">Hostname</label>\n <div class="col-md-9">\n <input type="text" class="form-control" value="{{properties.Hostname}}" disabled/>\n <span class="help-block">\n </span>\n </div>\n </div>\n <!-- END -->\n </div>\n </form>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/motiondialer/info/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getProperties()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-control-forward"></i>\n <a href="#">Motion Dialer</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-info"></i>\n <a href="/motiondialer/info/view/properties">{{ \'APPLICATION_INFO\' | translate }}</a>\n <i data-ng-show="variable" class="fa fa-angle-right"></i>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/template.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{ \'APPLICATION_INFO\' | translate }}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.motiondialer.info.view.about\')}">\n <a data-ng-href="/motiondialer/info/view/about">\n <i class="icon-globe"></i>\n {{ \'APPLICATION_ABOUT\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.motiondialer.info.view.details\')}">\n <a data-ng-href="/motiondialer/info/view/details">\n <i class="icon-support"></i>\n {{ \'APPLICATION_DETAILS\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.motiondialer.info.view.logs\')}">\n <a data-ng-href="/motiondialer/info/view/logs">\n <i class="icon-list"></i>\n {{ \'APPLICATION_LOGS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/motiondialer/info/view/view.logs.html",'<div class="row" data-ng-init="initLogs()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_LOGS\' | translate}}</span>\n </div>\n <button class="btn btn-default float-right" href="#" data-ng-click="initLogs()" data-ng-disabled="loading">\n <i class="icon-refresh"></i>\n </button>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="table1" name="table1" ui-grid-resize-columns ui-grid-pagination ui-grid-auto-resize ui-grid-exporter class="ui-grid">\n <div class="watermark" data-ng-show="!table1.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n <span us-spinner spinner-key="logs-spinner" spinner-start-active="true"></span>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/motiondialer/process/list/list.create.queue.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_PROCESS\' | translate }} {{\'APPLICATION_QUEUE\' | translate}}</h3>\n</div>\n<div class="modal-body">\n <form name="form" ng-init="initModal()" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n <!-- START LIST -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.list.$touched || form.$submitted) && form.list.$invalid}">\n <label class="control-label">{{\'APPLICATION_LIST\' | translate}}<span class="required" aria-required="true">*</span></label>\n <select name="list" class="form-control" data-ng-model="item.list" ng-options="list.name for list in lists" required>\n </select>\n <span data-ng-show="(form.list.$touched || form.$submitted) && form.list.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END LIST -->\n <!-- START QUEUE -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.queue.$touched || form.$submitted) && form.queue.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <select name="queue" class="form-control" data-ng-model="item.queue" ng-options="queue.name for queue in queues" required>\n </select>\n <span data-ng-show="(form.queue.$touched || form.$submitted) && form.queue.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE -->\n <!-- START TIMEOUT QUEUE -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.timeout.$touched || form.$submitted) && form.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="1" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="item.timeout" required/>\n <span data-ng-show="(form.timeout.$touched || form.$submitted) && form.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.timeout.$error.max || form.timeout.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </div>\n <!-- END MAX RETRIES -->\n <!-- START TRUNK -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.device.$touched || form.$submitted) && form.device.$invalid}">\n <label class="control-label">{{\'APPLICATION_TRUNK\' | translate}}<span class="required" aria-required="true">*</span></label>\n <select name="device" class="form-control" data-ng-model="item.device" ng-options="trunk.name for trunk in trunks" required>\n <option value="fake">{{\'APPLICATION_SELECT\' | translate}} {{\'APPLICATION_TRUNK\' | translate}}</option>\n </select>\n <span data-ng-show="(form.queue.$touched || form.$submitted) && form.queue.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TRUNK -->\n <!-- START FETCH SORT -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_FETCH_SORT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <select name="fetch_sort" class="form-control" data-ng-model="item.fetch_sort" ng-options="fetch_sort for fetch_sort in [\'ASC\', \'DESC\']" required>\n </select>\n <span class="help-block">{{\'DESCRIPTION_TD_FETCH_SORT\' | translate}}</span>\n </div>\n <!-- END FETCH SORT-->\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/motiondialer/process/list/list.create.square.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_PROCESS\' | translate }} {{ \'APPLICATION_CALLYSQUARE\' | translate | trusted}}</h3>\n</div>\n<div class="modal-body">\n <form name="form" ng-init="initModal()" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n <!-- START LIST -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.list.$touched || form.$submitted) && form.list.$invalid}">\n <label class="control-label">{{\'APPLICATION_LIST\' | translate}}<span class="required" aria-required="true">*</span></label>\n <select name="list" class="form-control" data-ng-model="item.list" ng-options="list.name for list in lists" required>\n </select>\n <span data-ng-show="(form.list.$touched || form.$submitted) && form.list.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END LIST -->\n <!-- START PROJECT -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.project.$touched || form.$submitted) && form.project.$invalid}">\n <label class="control-label">{{\'APPLICATION_PROJECT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <select name="project" class="form-control" data-ng-model="item.project" ng-options="project.name for project in projects" required>\n </select>\n <span data-ng-show="(form.project.$touched || form.$submitted) && form.project.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PROJECT -->\n <!-- START TRUNK -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.device.$touched || form.$submitted) && form.device.$invalid}">\n <label class="control-label">{{\'APPLICATION_TRUNK\' | translate}}<span class="required" aria-required="true">*</span></label>\n <select name="device" class="form-control" data-ng-model="item.device" ng-options="trunk.name for trunk in trunks" required>\n <option value="fake">{{\'APPLICATION_SELECT\' | translate}} {{\'APPLICATION_TRUNK\' | translate}}</option>\n </select>\n <span data-ng-show="(form.device.$touched || form.$submitted) && form.device.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TRUNK -->\n <!-- START FETCH SORT -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_FETCH_SORT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <select name="fetch_sort" class="form-control" data-ng-model="item.fetch_sort" ng-options="fetch_sort for fetch_sort in [\'ASC\', \'DESC\']" required>\n </select>\n <span class="help-block">{{\'DESCRIPTION_TD_FETCH_SORT\' | translate}}</span>\n </div>\n <!-- END FETCH SORT-->\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/motiondialer/process/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-control-forward"></i>\n <a href="#">Motion Dialer</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-settings"></i>\n <a href="#">{{ \'APPLICATION_PROCESSES\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_PROCESSES\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group">\n <button class="btn green-jungle dropdown-toggle" data-toggle="dropdown" data-close-others="true">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_PROCESS\' | translate }}\n </button>\n <ul class="dropdown-menu pull-right">\n <li>\n <a href="#" ng-click="createProcessQueue()">{{ \'APPLICATION_QUEUE\' | translate }}</a>\n </li>\n <li>\n <a href="#" ng-click="createProcessSquare()">{{ \'APPLICATION_CALLYSQUARE\' | translate | trusted}}</a>\n </li>\n </ul>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="spinner-grid" spinner-start-active="true"></span>\n <!-- END UI-GRID SPINNER -->\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-exporter class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/motiondialer/process/view/view.create.interval.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_INTERVAL\' | translate }} </h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n <!-- START TIME -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n <div class="input-group input-large">\n <fieldset class="pull-left" ng-disabled="splittedInterval.alwaysTime"><uib-timepicker name="t_from" data-ng-model="splittedInterval.t_from" show-meridian="false" show-spinners="false"></uib-timepicker></fieldset>\n <div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n <fieldset ng-disabled="splittedInterval.alwaysTime"><uib-timepicker name="t_to" data-ng-model="splittedInterval.t_to" show-meridian="false" show-spinners="false"></uib-timepicker></fieldset>\n <label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="splittedInterval.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label>\n </div>\n </div>\n <!-- END TIME -->\n\n <!-- START WEEKDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="splittedInterval.wd_from" theme="bootstrap" name="wd_from">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{weekDay.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="splittedInterval.wd_to" theme="bootstrap" name="wd_to">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{weekDay.name | translate}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END WEEKDAY -->\n\n <!-- START MONTHDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="splittedInterval.md_from" theme="bootstrap" name="md_from">\n <ui-select-match>{{$select.selected === \'always\' ? \'APPLICATION_ALWAYS\' : $select.selected | translate}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search">\n {{monthDay === \'always\' ? \'APPLICATION_ALWAYS\' : monthDay | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="splittedInterval.md_to" theme="bootstrap" name="md_to">\n <ui-select-match>{{$select.selected === \'always\' ? \'APPLICATION_ALWAYS\' : $select.selected | translate}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search">\n {{monthDay === \'always\' ? \'APPLICATION_ALWAYS\' : monthDay | translate}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTHDAY -->\n\n <!-- START MONTH -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="splittedInterval.m_from" theme="bootstrap" name="m_from">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.monthsNumber | filter: $select.search">\n {{month.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="splittedInterval.m_to" theme="bootstrap" name="m_to">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.monthsNumber | filter: $select.search">\n {{month.name | translate}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTH -->\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/motiondialer/process/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getProcess()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-control-forward"></i>\n <a href="#">Motion Dialer</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-settings"></i>\n <a href="/motiondialer/processes/list">{{ \'APPLICATION_PROCESSES\' | translate }}</a>\n <i data-ng-show="process.name" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="process.name">\n <a href="#">{{process.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/account.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{process.name}} ({{ (process.status === \'RUN\') ? \'RUNNING...\' : \'STOPPED\' }})\n </div>\n <div class="profile-usertitle-job">\n <a href="#" data-ng-click="goToContacts(process.list.id_source)">{{ \'APPLICATION_LIST\' | translate}} {{process.list ? process.list.name : \'#\'+process.id_list}} ({{process.fetch_sort}})</a>\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n <div class="profile-userbuttons">\n <button data-ng-show="process.status" type="button" class="btn btn-circle btn-sm" data-ng-class="{\'green-meadow\': process.status == \'STOP\', \'red-sunglo\': process.status == \'RUN\'}" data-ng-click="runOrStop()">{{ (process.status === \'RUN\') ? \'STOP\' : \'RUN\' }}</button>\n </div>\n <div class="profile-userbuttons">\n <button style="cursor:default" data-ng-show="process.runtime" type="button" class="btn btn-circle btn-sm" data-ng-class="{\'green-meadow\': process.runtime.completed, \'yellow-crusta\': !process.runtime.completed}">{{process.runtime.completed ? \'Complete\' : \'Incomplete\'}}</button>\n <button style="cursor:default" class="btn btn-circle btn-sm" data-ng-class="{\'green-meadow\': !process.runtime.outOfTime, \'red-sunglo\': process.runtime.outOfTime}"><i data-ng-class="{\'icon-clock\': !process.runtime.outOfTime, \'icon-close\': process.runtime.outOfTime}"></i> {{process.runtime.outOfTime ? \'Out of time\' : \'On time\'}}</button>\n </div>\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.motiondialer.processes.view.overview\')}">\n <a data-ng-href="/motiondialer/processes/view/{{process.id}}/overview">\n <i class="icon-home"></i>\n {{ \'APPLICATION_OVERVIEW\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.motiondialer.processes.view.settings\')}">\n <a data-ng-href="/motiondialer/processes/view/{{process.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.motiondialer.processes.view.intervals\')}">\n <a data-ng-href="/motiondialer/processes/view/{{process.id}}/intervals">\n <i class="icon-clock"></i>\n {{ \'APPLICATION_INTERVALS\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.motiondialer.processes.view.spooler\')}">\n <a data-ng-href="/motiondialer/processes/view/{{process.id}}/spooler">\n <i class="icon-options-vertical"></i>\n {{ \'APPLICATION_SPOOLER\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/motiondialer/process/view/view.intervals.html",'<div class="row" data-ng-init="initIntervals()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-clock theme-font"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_PROCESS\' | translate}} {{ \'APPLICATION_INTERVALS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_allow" data-toggle="tab">{{ \'APPLICATION_ALLOW\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_disallow" data-toggle="tab">{{ \'APPLICATION_DISALLOW\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- ALLOW TAB -->\n <div class="tab-pane active" id="tab_allow">\n <button class="btn green-jungle margin-bottom-10" ng-click="createInterval(true)">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_INTERVAL\' | translate }} ({{ \'APPLICATION_ALLOW\' | translate }})\n </button>\n <table class="table table-bordered table-hover">\n <thead>\n <tr role="row" class="heading">\n <th>\n {{ \'APPLICATION_VALUE\' | translate}}\n </th>\n <th>\n {{ \'APPLICATION_ACTIONS\' | translate}}\n </th>\n </tr>\n </thead>\n <tbody>\n <tr ng-repeat="interval in process.intervals track by $index">\n <td>\n {{interval}}\n </td>\n <td>\n <button href="javascript:;" data-ng-click="editInterval(true, interval, $index)" class="btn blue-hoki btn-sm"> {{ \'APPLICATION_EDIT\' | translate}} </button>\n <button data-ng-if="$index > 0" data-ng-click="deleteInterval(interval, $index, true)" class="btn red-sunglo btn-sm"> {{ \'APPLICATION_DELETE\' | translate}} </button>\n </td>\n </tr>\n <tr ng-show="!process.intervals.length"><td colspan=2>{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</td></tr>\n </tbody>\n </table>\n </div>\n <!-- END ALLOW TAB -->\n <!-- DISALLOW TAB -->\n <div class="tab-pane" id="tab_disallow">\n <button class="btn green-jungle margin-bottom-10" ng-click="createInterval(false)">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_INTERVAL\' | translate }} ({{ \'APPLICATION_DISALLOW\' | translate }})\n </button>\n <table class="table table-bordered table-hover">\n <thead>\n <tr role="row" class="heading">\n <th>\n {{ \'APPLICATION_VALUE\' | translate}}\n </th>\n <th>\n {{ \'APPLICATION_ACTIONS\' | translate}}\n </th>\n </tr>\n </thead>\n <tbody>\n <tr ng-repeat="interval in process.not_intervals track by $index">\n <td>\n {{interval}}\n </td>\n <td>\n <button href="javascript:;" data-ng-click="editInterval(false, interval)" class="btn blue-hoki btn-sm"> {{ \'APPLICATION_EDIT\' | translate}} </button>\n <button href="javascript:;" data-ng-click="deleteInterval($index, interval, false)" class="btn red-sunglo btn-sm"> {{ \'APPLICATION_DELETE\' | translate}} </button>\n </td>\n </tr>\n <tr ng-show="!process.not_intervals.length"><td colspan=2>{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</td></tr>\n </tbody>\n </table>\n\n </div>\n <!-- END DISALLOW TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'), +a.put("app/motiondialer/process/view/view.overview.html",'<div class="row" data-ng-init="getSummary()">\n <div class="col-md-12">\n <!-- BEGIN PORTLET -->\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-bar-chart theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_OVERVIEW\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_summary" data-toggle="tab">{{ \'APPLICATION_SUMMARY\' | translate}}</a>\n </li>\n <li ng-show="process.runtime">\n <a href="#" data-target="#tab_advanced" data-toggle="tab">{{ \'APPLICATION_ADVANCED\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- START SUMMARY TAB -->\n <div class="tab-pane active" id="tab_summary">\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="spinner-grid" spinner-start-active="true"></span>\n <!-- END UI-GRID SPINNER -->\n <div class="row number-stats margin-bottom-30">\n <div class="col-md-6 col-sm-6 col-xs-6">\n <div class="stat-left">\n <div class="stat-number">\n <div class="title">\n {{\'APPLICATION_TOTAL\' | translate}}\n </div>\n <div class="number">\n {{total}}\n </div>\n </div>\n </div>\n </div>\n <div class="col-md-6 col-sm-6 col-xs-6">\n <div class="stat-right">\n <div class="stat-number">\n <div class="title">\n {{\'APPLICATION_FRESH\' | translate}}\n </div>\n <div class="number">\n {{process.runtime.fresh || 0}}\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class="table-scrollable table-scrollable-borderless">\n <table class="table table-hover table-light">\n <thead>\n <tr class="uppercase">\n <th>\n {{\'APPLICATION_STATUS\' | translate}}\n </th>\n <th>\n {{\'APPLICATION_VALUE\' | translate}}\n </th>\n <th>\n {{\'APPLICATION_RATE\' | translate}}\n </th>\n <th>\n {{\'APPLICATION_DESCRIPTION\' | translate}}\n </th>\n </tr>\n </thead>\n <tr ng-repeat="sum in summary">\n <td>\n <a href="#" class="primary-link">{{\'APPLICATION_TD_\' + sum[0] | translate}}</a>\n </td>\n <td>\n {{sum[1]}}\n </td>\n <td>\n <span class="bold theme-font">{{ total ? ((sum[1]/total)*100).toFixed(2) : 0 }}%</span>\n </td>\n <td>\n {{\'DESCRIPTION_TD_\' + sum[0] | translate}}\n </td>\n </tr>\n </table>\n </div>\n </div>\n <!-- END SUMMARY TAB -->\n <!-- START SUMMARY TAB -->\n <div class="tab-pane" id="tab_advanced" ng-show="process.runtime">\n <div class="row number-stats margin-bottom-30">\n <div class="col-md-6 col-sm-6 col-xs-6">\n <div class="stat-left">\n <div class="stat-number">\n <div class="title">\n {{\'APPLICATION_SUCCESS\' | translate}}\n </div>\n <div class="number">\n {{process.runtime.success || 0}}\n </div>\n </div>\n </div>\n </div>\n <div class="col-md-6 col-sm-6 col-xs-6">\n <div class="stat-right">\n <div class="stat-number">\n <div class="title">\n {{\'APPLICATION_FAILED\' | translate}}\n </div>\n <div class="number">\n {{process.runtime.failed || 0}}\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class="table-scrollable table-scrollable-borderless">\n <table class="table table-hover table-light">\n <thead>\n <tr class="uppercase">\n <th>\n {{\'APPLICATION_STATUS\' | translate}}\n </th>\n <th>\n {{\'APPLICATION_VALUE\' | translate}}\n </th>\n <th>\n {{\'APPLICATION_DESCRIPTION\' | translate}}\n </th>\n </tr>\n </thead>\n <tr ng-repeat="(key, value) in process.runtime">\n <td>\n <a href="#" class="primary-link">{{\'APPLICATION_\' + key.toUpperCase() | translate}}</a>\n </td>\n <td ng-switch on="key">\n <span ng-switch-when="avgDial">{{value | number:2}}</span>\n <span ng-switch-when="avgDuration">{{value | number:2}}</span>\n <span ng-switch-when="avgProgress">{{value | number:2}}</span>\n <span ng-switch-when="completed">{{((value)? \'APPLICATION_YES\' : \'APPLICATION_NO\') | translate}}</span>\n <span ng-switch-when="outOfTime">{{((value)? \'APPLICATION_YES\' : \'APPLICATION_NO\') | translate}}</span>\n <span ng-switch-default>{{value}}</span>\n </td>\n <td>\n {{\'DESCRIPTION_TD_\' + key.toUpperCase() | translate}}\n </td>\n </tr>\n </table>\n </div>\n </div>\n <!-- END SUMMARY TAB -->\n </div>\n </div>\n </div>\n <!-- END PORTLET -->\n </div>\n</div>\n'),a.put("app/motiondialer/process/view/view.run.process.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_STATUS\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <p>\n Do you want to {{ status }} the process?\n </p>\n</div>\n<div class="modal-footer">\n <button class="btn default green-meadow" type="button" ng-click="yes()">{{ \'APPLICATION_YES\' | translate }}</button>\n <button class="btn default" type="button" ng-click="no()">{{ \'APPLICATION_NO\' | translate }}</button>\n</div>\n'),a.put("app/motiondialer/process/view/view.settings.html",'<div class="row" data-ng-init="initSettings()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_PROCESS\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_general" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_channel" data-toggle="tab">{{ \'APPLICATION_CHANNEL\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_advanced" data-toggle="tab">{{ \'APPLICATION_ADVANCED\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_status" data-toggle="tab">{{ \'APPLICATION_STATUS\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_general">\n <form name="form" data-ng-submit="form.$valid && updateProcess()" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="process.name" required/>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n <!-- START QUEUE -->\n <div data-ng-show="process.queue != \'none\'" class="form-group" data-ng-class="{\'has-error\': (form.queue.$touched || form.$submitted) && form.queue.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="process.queue" name="queue" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="queue.name as queue in queues | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form.queue.$touched || form.$submitted) && form.queue.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE -->\n <!-- START MAX RETRIES -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.max_retries.$touched || form.$submitted) && form.max_retries.$invalid}">\n <label class="control-label">{{\'APPLICATION_MAX_RETRIES\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="1" max="100" name="max_retries" placeholder="{{\'APPLICATION_MAX_RETRIES\' | translate}}" class="form-control" data-ng-model="process.max_retries" required/>\n <span class="help-block">{{\'DESCRIPTION_TD_MAX_RETRIES\' | translate}}</span>\n <span data-ng-show="(form.max_retries.$touched || form.$submitted) && form.max_retries.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.max_retries.$error.max || form.max_retries.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </div>\n <!-- END MAX RETRIES -->\n <!-- START RETRY TIME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.retry_time.$touched || form.$submitted) && form.retry_time.$invalid}">\n <label class="control-label">{{\'APPLICATION_RETRY_TIME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="1" name="retry_time" placeholder="{{\'APPLICATION_RETRY_TIME\' | translate}}" class="form-control" data-ng-model="process.retry_time" required/>\n <span class="help-block">{{\'DESCRIPTION_TD_RETRY_TIME\' | translate}}</span>\n <span data-ng-show="(form.retry_time.$touched || form.$submitted) && form.retry_time.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.retry_time.$error.max || form.retry_time.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </div>\n <!-- END RETRY TIME -->\n <!-- START RETRY TIME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.wait_time.$touched || form.$submitted) && form.wait_time.$invalid}">\n <label class="control-label">{{\'APPLICATION_WAIT_TIME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="1000" name="wait_time" placeholder="{{\'APPLICATION_WAIT_TIME\' | translate}}" class="form-control" data-ng-model="process.wait_time" required/>\n <span class="help-block">{{\'DESCRIPTION_TD_WAIT_TIME\' | translate}}</span>\n <span data-ng-show="(form.wait_time.$touched || form.$submitted) && form.wait_time.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.wait_time.$error.max || form.wait_time.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </div>\n <!-- END WAIT TIME -->\n <!-- START AUTO CLOSED -->\n <!-- <div class="form-group">\n <label class="control-label">{{\'APPLICATION_AUTO_CLOSED\' | translate}}</label></br>\n <input\n bs-switch\n data-ng-model="process.auto_closed"\n type="checkbox"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-animate="false">\n <span class="help-block">{{\'DESCRIPTION_TD_AUTO_CLOSED\' | translate}}</span>\n </div> -->\n <!-- END AUTO CLOSED -->\n <!-- START WEIGHT -->\n <!-- END WEIGHT -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_AUTODIAL_LEVEL\' | translate}}</label></br>\n <slider ng-model="process.weight" min="0" step="1" max="50"></slider>\n <label>{{\'APPLICATION_VALUE\' | translate}}: {{process.weight}}</label>\n <span class="help-block">{{\'DESCRIPTION_TD_WEIGHT\' | translate}}</span>\n </div>\n <!-- START DISPOSAL -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_TD_DISPOSAL\' | translate}}</label></br>\n <input\n bs-switch\n data-ng-model="process.disposal"\n type="checkbox"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-animate="false">\n <span class="help-block">{{\'DESCRIPTION_TD_DISPOSAL\' | translate}}</span>\n </div>\n <!-- END DISPOSAL -->\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="process.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n <!-- CHANNEL TAB -->\n <div class="tab-pane" id="tab_channel">\n <form name="form" data-ng-submit="form.$valid && updateProcess()" novalidate>\n <!-- START CONTEXT -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.context.$touched || form.$submitted) && form.context.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONTEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="context" placeholder="{{\'APPLICATION_CONTEXT\' | translate}}" class="form-control" data-ng-model="process.context" required/>\n <span class="help-block">{{\'DESCRIPTION_TD_CONTEXT\' | translate}}</span>\n <span data-ng-show="(form.context.$touched || form.$submitted) && form.context.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CONTEXT -->\n <!-- START EXTENSION -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.extension.$touched || form.$submitted) && form.extension.$invalid}">\n <label class="control-label">{{\'APPLICATION_EXTENSION\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="extension" placeholder="{{\'APPLICATION_EXTENSION\' | translate}}" class="form-control" data-ng-model="process.extension" required/>\n <span class="help-block">{{\'DESCRIPTION_TD_EXTENSION\' | translate}}</span><a href="/channels/voice/routes/internal/list">Link {{\'APPLICATION_INTERNAL\' | translate}}</a>\n <span data-ng-show="(form.extension.$touched || form.$submitted) && form.extension.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END EXTENSION -->\n <!-- START PRIORITY -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.priority.$touched || form.$submitted) && form.priority.$invalid}">\n <label class="control-label">{{\'APPLICATION_PRIORITY\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="1" name="priority" placeholder="{{\'APPLICATION_PRIORITY\' | translate}}" class="form-control" data-ng-model="process.priority" required/>\n <span class="help-block">{{\'DESCRIPTION_TD_PRIORITY\' | translate}}</span>\n <span data-ng-show="(form.priority.$touched || form.$submitted) && form.priority.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.priority.$error.max || form.priority.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </div>\n <!-- END PRIORITY -->\n <!-- START PREFIX -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_PREFIX\' | translate}}</label>\n <input type="text" name="prefix_code" placeholder="{{\'APPLICATION_PREFIX\' | translate}}" class="form-control" data-ng-model="process.prefix_code"/>\n <span class="help-block">{{\'DESCRIPTION_TD_PREFIX\' | translate}}</span>\n </div>\n <!-- END PREFIX -->\n <!-- START TECHNOLOGY -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_TECHNOLOGY\' | translate}}<span class="required" aria-required="true">*</span></label>\n <select name="tech" class="form-control" data-ng-model="process.tech" ng-options="tech for tech in techs" required>\n </select>\n <span class="help-block">{{\'DESCRIPTION_TD_TECHNOLOGY\' | translate}}</span>\n </div>\n <!-- END TECHNOLOGY -->\n <!-- START DEVICE -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.device.$touched || form.$submitted) && form.device.$invalid}">\n <label class="control-label">{{\'APPLICATION_TRUNK\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="device" placeholder="{{\'APPLICATION_TRUNK\' | translate}}" class="form-control" data-ng-model="process.device" required/>\n <span class="help-block">{{\'DESCRIPTION_TD_TRUNK\' | translate}}</span>\n <span data-ng-show="(form.device.$touched || form.$submitted) && form.device.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END DEVICE -->\n <!-- START CALLERID -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.callerid.$touched || form.$submitted) && form.callerid.$invalid}">\n <label class="control-label">{{\'APPLICATION_CALLERID\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="callerid" placeholder="{{\'APPLICATION_CALLERID\' | translate}}" class="form-control" data-ng-model="process.callerid" required/>\n <span class="help-block">{{\'DESCRIPTION_TD_CALLERID\' | translate}}</span>\n <span data-ng-show="(form.callerid.$touched || form.$submitted) && form.callerid.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CALLERID -->\n <!-- START CODEC -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ALLOWED_CODECS\' | translate}}</label>\n <ui-select multiple data-ng-model="process.codecs" name="codecs" theme="bootstrap" data-ng-disabled="disabled">\n <ui-select-match placeholder="Select codec...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="codec in codecs">\n {{codec}}\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END CODEC -->\n <!-- START DIAL FORMAT -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DIAL_FORMAT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <select name="dial_format" class="form-control" data-ng-model="process.dial_format" ng-options="dial_format for dial_format in dialFormats" required>\n </select>\n <span class="help-block">{{\'DESCRIPTION_TD_DIAL_FORMAT\' | translate}}</span>\n </div>\n <!-- END DIAL FORMAT -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END CHANNEL TAB -->\n <!-- ADVANCED TAB -->\n <div class="tab-pane" id="tab_advanced">\n <form name="form" data-ng-submit="form.$valid && updateProcess()" novalidate>\n <!-- START CHECK DUPLICATE -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_CHECK_DUPLICATE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <select name="check_duplicate" class="form-control" data-ng-model="process.check_duplicate" ng-options="check_duplicate for check_duplicate in checkDuplicates" required>\n </select>\n <span class="help-block">{{\'DESCRIPTION_TD_CHECK_DUPLICATE\' | translate}}</span>\n </div>\n <!-- END CHECK DUPLICATE -->\n <!-- START CHECK BLACKLIST -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_CHECK_BLACKLIST\' | translate}}</label></br>\n <input\n bs-switch\n data-ng-model="process.check_blacklist"\n type="checkbox"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-animate="false">\n <span class="help-block">{{\'DESCRIPTION_TD_CHECK_BLACKLIST\' | translate}}</span>\n </div>\n <!-- END CHECK BLACKLIST -->\n <!-- START CHECK PHONE LENGHT -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.check_phone_length.$touched || form.$submitted) && form.check_phone_length.$invalid}">\n <label class="control-label">{{\'APPLICATION_CHECK_PHONE_LENGHT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="1" name="check_phone_length" placeholder="{{\'APPLICATION_CHECK_PHONE_LENGHT\' | translate}}" class="form-control" data-ng-model="process.check_phone_length" required/>\n <span class="help-block">{{\'DESCRIPTION_TD_CHECK_PHONE_LENGHT\' | translate}}</span>\n <span data-ng-show="(form.check_phone_length.$touched || form.$submitted) && form.check_phone_length.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.check_phone_length.$error.max || form.check_phone_length.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </div>\n <!-- END CHECK PHONE LENGHT -->\n <!-- START TIME SLICE -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.time_slice.$touched || form.$submitted) && form.time_slice.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIME_SLICE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="1" name="time_slice" placeholder="{{\'APPLICATION_TIME_SLICE\' | translate}}" class="form-control" data-ng-model="process.time_slice" required/>\n <span class="help-block">{{\'DESCRIPTION_TD_TIME_SLICE\' | translate}}</span>\n <span data-ng-show="(form.time_slice.$touched || form.$submitted) && form.time_slice.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.time_slice.$error.max || form.time_slice.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </div>\n <!-- END TIME SLICE -->\n <!-- START MISSED -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_CHECK_MISSED\' | translate}}</label></br>\n <input\n bs-switch\n data-ng-model="process.missed"\n type="checkbox"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-animate="false">\n <span class="help-block">{{\'DESCRIPTION_TD_CHECK_MISSED\' | translate}}</span>\n </div>\n <!-- END MISSED -->\n <!-- START CHANNEL LIMIT -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.channel_limit.$touched || form.$submitted) && form.channel_limit.$invalid}">\n <label class="control-label">{{\'APPLICATION_CHANNEL_LIMIT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="0" name="channel_limit" placeholder="{{\'APPLICATION_CHANNEL_LIMIT\' | translate}}" class="form-control" data-ng-model="process.channel_limit" required/>\n <span class="help-block">{{\'DESCRIPTION_TD_CHANNEL_LIMIT\' | translate}}</span>\n <span data-ng-show="(form.channel_limit.$touched || form.$submitted) && form.channel_limit.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.channel_limit.$error.max || form.channel_limit.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </div>\n <!-- END CHANNEL LIMIT -->\n <!-- START CONTEXT FOR OTHER CALLS -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_CONTEXT_FOR_OTHER_CALLS\' | translate}}</label>\n <input type="text" name="context_for_other_calls" placeholder="{{\'APPLICATION_CONTEXT_FOR_OTHER_CALLS\' | translate}}" class="form-control" data-ng-model="process.context_for_other_calls"/>\n <span class="help-block">{{\'DESCRIPTION_TD_CONTEXT_FOR_OTHER_CALLS\' | translate}}</span>\n </div>\n <!-- END CONTEXT FOR OTHER CALLS -->\n <!-- START EXTENSION FOR OTHER CALLS-->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_EXTENSION_FOR_OTHER_CALLS\' | translate}}</label>\n <input type="text" name="extension_for_other_calls" placeholder="{{\'APPLICATION_EXTENSION_FOR_OTHER_CALLS\' | translate}}" class="form-control" data-ng-model="process.extension_for_other_calls"/>\n <span class="help-block">{{\'DESCRIPTION_TD_EXTENSION_FOR_OTHER_CALLS\' | translate}}</span>\n </div>\n <!-- END EXTENSION FOR OTHER CALLS-->\n <!-- START PRIORITY FOR OTHER CALLS-->\n <div class="form-group" data-ng-class="{\'has-error\': (form.priority_for_other_calls.$touched || form.$submitted) && form.priority_for_other_calls.$invalid}">\n <label class="control-label">{{\'APPLICATION_PRIORITY_FOR_OTHER_CALLS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="1" name="priority_for_other_calls" placeholder="{{\'APPLICATION_PRIORITY_FOR_OTHER_CALLS\' | translate}}" class="form-control" data-ng-model="process.priority_for_other_calls"/>\n <span class="help-block">{{\'DESCRIPTION_TD_PRIORITY_FOR_OTHER_CALLS\' | translate}}</span>\n <span data-ng-show="form.priority_for_other_calls.$error.max || form.priority_for_other_calls.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </div>\n <!-- END PRIORITY FOR OTHER CALLS -->\n <!-- START TIMEZONE -->\n <!-- <div class="form-group">\n <label class="control-label">{{\'APPLICATION_EXTENDED_TIME_INTERVAL\' | translate}}</label>\n <input type="text" name="timezone" placeholder="08:30-20:30" class="form-control" data-ng-model="process.timezone"/>\n <span class="help-block">{{\'DESCRIPTION_TD_EXTENDED_TIME_INTERVAL\' | translate}}</span>\n </div> -->\n <!-- END TIMEZONE -->\n\n <!-- START AUTO TIMEZONE MANAGEMENT -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_AUTO_TIMEZONE_MANAGEMENT\' | translate}}</label></br>\n <input\n bs-switch\n data-ng-model="process.auto_timezone_management"\n type="checkbox"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-animate="false">\n <span class="help-block">{{\'DESCRIPTION_TD_AUTO_TIMEZONE_MANAGEMENT\' | translate}}</span>\n </div>\n <!-- END AUTO TIMEZONE MANAGEMENT -->\n <!-- START IGNORE STRINGS-->\n <!-- COMMENTED: BECAUSE IGNORE_STRINGS IS AN ARRAY NOT A STRING-->\n <!-- <div class="form-group">\n <label class="control-label">{{\'APPLICATION_IGNORE_STRINGS\' | translate}}</label>\n <input type="text" name="ignore_strings" placeholder="{{\'APPLICATION_IGNORE_STRINGS\' | translate}}" class="form-control" data-ng-model="process.ignore_strings"/>\n <span class="help-block">{{\'DESCRIPTION_TD_IGNORE_STRINGS\' | translate}}</span>\n </div> -->\n <!-- END IGNORE STRINGS-->\n <!-- START MIN OPERATOR -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.min_operator.$touched || form.$submitted) && form.min_operator.$invalid}">\n <label class="control-label">{{\'APPLICATION_MIN_OPERATOR\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="1" name="min_operator" placeholder="{{\'APPLICATION_MIN_OPERATOR\' | translate}}" class="form-control" data-ng-model="process.min_operator" required/>\n <span class="help-block">{{\'DESCRIPTION_TD_MIN_OPERATOR\' | translate}}</span>\n <span data-ng-show="(form.min_operator.$touched || form.$submitted) && form.min_operator.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.min_operator.$error.max || form.min_operator.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </div>\n <!-- END MIN OPERATOR -->\n <!-- START ALERT MAX CALLS -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.alert_max_calls.$touched || form.$submitted) && form.alert_max_calls.$invalid}">\n <label class="control-label">{{\'APPLICATION_ALERT_MAX_CALLS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="0" name="alert_max_calls" placeholder="{{\'APPLICATION_ALERT_MAX_CALLS\' | translate}}" class="form-control" data-ng-model="process.alert_max_calls" required/>\n <span class="help-block">{{\'DESCRIPTION_TD_ALERT_MAX_CALLS\' | translate}}</span>\n <span data-ng-show="(form.alert_max_calls.$touched || form.$submitted) && form.alert_max_calls.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.alert_max_calls.$error.max || form.alert_max_calls.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </div>\n <!-- END ALERT MAX CALLS -->\n <!-- START ALERT TIME SLICE -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.alert_time_slice.$touched || form.$submitted) && form.alert_time_slice.$invalid}">\n <label class="control-label">{{\'APPLICATION_ALERT_TIME_SLICE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="1" name="alert_time_slice" placeholder="{{\'APPLICATION_ALERT_TIME_SLICE\' | translate}}" class="form-control" data-ng-model="process.alert_time_slice" required/>\n <span class="help-block">{{\'DESCRIPTION_TD_ALERT_TIME_SLICE\' | translate}}</span>\n <span data-ng-show="(form.alert_time_slice.$touched || form.$submitted) && form.alert_time_slice.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.alert_time_slice.$error.max || form.alert_time_slice.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </div>\n <!-- END ALERT TIME SLICE -->\n <!-- START DROP MAX COUNT -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.drop_max_count.$touched || form.$submitted) && form.drop_max_count.$invalid}">\n <label class="control-label">{{\'APPLICATION_DROP_MAX_COUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="0" name="drop_max_count" placeholder="{{\'APPLICATION_DROP_MAX_COUNT\' | translate}}" class="form-control" data-ng-model="process.drop_max_count" required/>\n <span class="help-block">{{\'DESCRIPTION_TD_DROP_MAX_COUNT\' | translate}}</span>\n <span data-ng-show="(form.drop_max_count.$touched || form.$submitted) && form.drop_max_count.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.drop_max_count.$error.max || form.drop_max_count.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </div>\n <!-- END DROP MAX COUNT -->\n <!-- START SUCCESS CALL SIZE -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.success_call_size.$touched || form.$submitted) && form.success_call_size.$invalid}">\n <label class="control-label">{{\'APPLICATION_SUCCESS_CALL_SIZE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="1" name="success_call_size" placeholder="{{\'APPLICATION_SUCCESS_CALL_SIZE\' | translate}}" class="form-control" data-ng-model="process.success_call_size" required/>\n <span class="help-block">{{\'DESCRIPTION_TD_SUCCESS_CALL_SIZE\' | translate}}</span>\n <span data-ng-show="(form.success_call_size.$touched || form.$submitted) && form.success_call_size.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.success_call_size.$error.max || form.success_call_size.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </div>\n <!-- END SUCCESS CALL SIZE -->\n <!-- START IGNORE STRINGS-->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_TIME_EXPIRED\' | translate}}</label>\n <input type="text" name="expiredtime" placeholder="yyyy-MM-dd HH:mm:ss" class="form-control" data-ng-model="process.expiredtime"/>\n <span class="help-block">{{\'DESCRIPTION_TD_TIME_EXPIRED\' | translate}}</span>\n </div>\n <!-- END IGNORE STRINGS-->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ANDVANCED TAB -->\n <!-- START STATUS TAB -->\n <div class="tab-pane" id="tab_status">\n <form name="form" data-ng-submit="form.$valid && updateProcess()" novalidate>\n <table class="table table-bordered table-hover">\n <thead>\n <tr role="row" class="heading">\n <th>\n {{ \'APPLICATION_VALUE\' | translate}}\n </th>\n <th>\n {{ \'APPLICATION_MAX_RETRIES\' | translate}}\n </th>\n <th>\n {{ \'APPLICATION_RETRY_TIME\' | translate}} [min]\n </th>\n <th>\n {{ \'APPLICATION_DESCRIPTION\' | translate}}\n </th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td>\n {{ \'APPLICATION_AMD\' | translate}}\n </td>\n <td>\n <input type="number" min="0" name="amd_max_retries"class="form-control" data-ng-model="process.amd_max_retries" required/>\n <span data-ng-show="(form.amd_max_retries.$touched || form.$submitted) && form.amd_max_retries.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.amd_max_retries.$error.max || form.amd_max_retries.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </td>\n <td>\n <input type="number" min="0" name="amd_retry_time" class="form-control" data-ng-model="process.amd_retry_time" required/>\n <span data-ng-show="(form.amd_retry_time.$touched || form.$submitted) && form.amd_retry_time.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.amd_retry_time.$error.max || form.amd_retry_time.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </td>\n <td>\n {{ \'DESCRIPTION_TD_STATUS_AMD\' | translate}}\n </td>\n </tr>\n <tr>\n <td>\n {{ \'APPLICATION_BUSY\' | translate}}\n </td>\n <td>\n <input type="number" min="0" name="busy_max_retries"class="form-control" data-ng-model="process.busy_max_retries" required/>\n <span data-ng-show="(form.busy_max_retries.$touched || form.$submitted) && form.busy_max_retries.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.busy_max_retries.$error.max || form.busy_max_retries.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </td>\n <td>\n <input type="number" min="0" name="busy_retry_time"class="form-control" data-ng-model="process.busy_retry_time" required/>\n <span data-ng-show="(form.busy_retry_time.$touched || form.$submitted) && form.busy_retry_time.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.busy_retry_time.$error.max || form.busy_retry_time.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </td>\n <td>\n {{ \'DESCRIPTION_TD_STATUS_BUSY\' | translate}}\n </td>\n </tr>\n <tr>\n <td>\n {{ \'APPLICATION_CONGESTION\' | translate}}\n </td>\n <td>\n <input type="number" min="0" name="congestion_max_retries"class="form-control" data-ng-model="process.congestion_max_retries" required/>\n <span data-ng-show="(form.congestion_max_retries.$touched || form.$submitted) && form.congestion_max_retries.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.congestion_max_retries.$error.max || form.congestion_max_retries.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </td>\n <td>\n <input type="number" min="0" name="congestion_retry_time"class="form-control" data-ng-model="process.congestion_retry_time" required/>\n <span data-ng-show="(form.congestion_retry_time.$touched || form.$submitted) && form.congestion_retry_time.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.congestion_retry_time.$error.max || form.congestion_retry_time.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </td>\n <td>\n {{ \'DESCRIPTION_TD_STATUS_CONGESTION\' | translate}}\n </td>\n </tr>\n <tr>\n <td>\n {{ \'APPLICATION_DROP\' | translate}}\n </td>\n <td>\n <input type="number" min="0" name="drop_max_retries"class="form-control" data-ng-model="process.drop_max_retries" required/>\n <span data-ng-show="(form.drop_max_retries.$touched || form.$submitted) && form.drop_max_retries.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.drop_max_retries.$error.max || form.drop_max_retries.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </td>\n <td>\n <input type="number" min="0" name="drop_retry_time"class="form-control" data-ng-model="process.drop_retry_time" required/>\n <span data-ng-show="(form.drop_retry_time.$touched || form.$submitted) && form.drop_retry_time.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.drop_retry_time.$error.max || form.drop_retry_time.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </td>\n <td>\n {{ \'DESCRIPTION_TD_STATUS_DROP\' | translate}}\n </td>\n </tr>\n <tr>\n <td>\n {{ \'APPLICATION_FAILED\' | translate}}\n </td>\n <td>\n <input type="number" min="0" name="failed_max_retries"class="form-control" data-ng-model="process.failed_max_retries" required/>\n <span data-ng-show="(form.failed_max_retries.$touched || form.$submitted) && form.failed_max_retries.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.failed_max_retries.$error.max || form.failed_max_retries.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </td>\n <td>\n <input type="number" min="0" name="failed_retry_time"class="form-control" data-ng-model="process.failed_retry_time" required/>\n <span data-ng-show="(form.failed_retry_time.$touched || form.$submitted) && form.failed_retry_time.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.failed_retry_time.$error.max || form.failed_retry_time.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </td>\n <td>\n {{ \'DESCRIPTION_TD_STATUS_FAILED\' | translate}}\n </td>\n </tr>\n <tr>\n <td>\n {{ \'APPLICATION_NOANSWER\' | translate}}\n </td>\n <td>\n <input type="number" min="0" name="noanswer_max_retries"class="form-control" data-ng-model="process.noanswer_max_retries" required/>\n <span data-ng-show="(form.noanswer_max_retries.$touched || form.$submitted) && form.noanswer_max_retries.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.noanswer_max_retries.$error.max || form.noanswer_max_retries.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </td>\n <td>\n <input type="number" min="0" name="noanswer_retry_time"class="form-control" data-ng-model="process.noanswer_retry_time" required/>\n <span data-ng-show="(form.noanswer_retry_time.$touched || form.$submitted) && form.noanswer_retry_time.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.noanswer_retry_time.$error.max || form.noanswer_retry_time.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </td>\n <td>\n {{ \'DESCRIPTION_TD_STATUS_NOANSWER\' | translate}}\n </td>\n </tr>\n <tr>\n <td>\n {{ \'APPLICATION_NOSUCHEXTENSION\' | translate}}\n </td>\n <td>\n <input type="number" min="0" name="nosuchextension_max_retries"class="form-control" data-ng-model="process.nosuchextension_max_retries" required/>\n <span data-ng-show="(form.nosuchextension_max_retries.$touched || form.$submitted) && form.nosuchextension_max_retries.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.nosuchextension_max_retries.$error.max || form.nosuchextension_max_retries.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </td>\n <td>\n <input type="number" min="0" name="nosuchextension_retry_time"class="form-control" data-ng-model="process.nosuchextension_retry_time" required/>\n <span data-ng-show="(form.nosuchextension_retry_time.$touched || form.$submitted) && form.nosuchextension_retry_time.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.nosuchextension_retry_time.$error.max || form.nosuchextension_retry_time.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </td>\n <td>\n {{ \'DESCRIPTION_TD_STATUS_NOSUCHEXTENSION\' | translate}}\n </td>\n </tr>\n <tr>\n <td>\n {{ \'APPLICATION_RINGTIMEOUT\' | translate}}\n </td>\n <td>\n <input type="number" min="0" name="ringtimeout_max_retries"class="form-control" data-ng-model="process.ringtimeout_max_retries" data-ng-init="!process.ringtimeout_max_retries && (process.ringtimeout_max_retries = 0)" required/>\n <span data-ng-show="(form.ringtimeout_max_retries.$touched || form.$submitted) && form.ringtimeout_max_retries.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.ringtimeout_max_retries.$error.max || form.ringtimeout_max_retries.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </td>\n <td>\n <input type="number" min="0" name="ringtimeout_retry_time" class="form-control" data-ng-model="process.ringtimeout_retry_time" data-ng-init="!process.ringtimeout_retry_time && (process.ringtimeout_retry_time = 0)" required/>\n <span data-ng-show="(form.ringtimeout_retry_time.$touched || form.$submitted) && form.ringtimeout_retry_time.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.ringtimeout_retry_time.$error.max || form.ringtimeout_retry_time.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </td>\n <td>\n {{ \'DESCRIPTION_TD_STATUS_RINGTIMEOUT\' | translate}}\n </td>\n </tr>\n </tbody>\n </table>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END STATUS TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'), +a.put("app/motiondialer/process/view/view.spooler.edit.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_EDIT\' | translate }} {{ \'APPLICATION_CONTACT\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <!-- START RETRIEVE -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.retrieve.$touched || form.$submitted) && form.retrieve.$invalid}" ng-init="initModal()">\n <label class="control-label">{{ \'APPLICATION_STATUS\' | translate }}<span class="required" aria-required="true">*</span></label>\n <select name="retrieve" class="form-control" data-ng-model="entitySpooler.retrieve" required>\n <option value="CLOSED">CLOSE</option>\n <option value="OPEN">OPEN</option>\n <option value="BLACK_LIST">BLACKLIST</option>\n <option value="PLANNED">PLANNING</option>\n <option value="PLANNED_PEER">PLANNING AGENT</option>\n </select>\n <span data-ng-show="(form.retrieve.$touched || form.$submitted) && form.retrieve.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END RETRIEVE -->\n <!-- START PLANNING DATE -->\n <div class="form-group" data-ng-if="entitySpooler.retrieve == \'PLANNED\' || entitySpooler.retrieve == \'PLANNED_PEER\'" data-ng-class="{\'has-error\': (form.date.$touched || form.$submitted) && form.date.$invalid}">\n <label class="control-label">PLANNING DATE<span class="required" aria-required="true">*</span></label>\n <uib-datepicker name="date" ng-model="entitySpooler.planningtime" required init-date="initDate"></uib-datepicker>\n <span data-ng-show="(form.date.$touched || form.$submitted) && form.date.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PLANNING DATE -->\n <!-- START PLANNING TIME -->\n <div class="form-group" data-ng-if="entitySpooler.retrieve == \'PLANNED\' || entitySpooler.retrieve == \'PLANNED_PEER\'" data-ng-class="{\'has-error\': (form.time.$touched || form.$submitted) && form.time.$invalid}">\n <label class="control-label">PLANNING TIME<span class="required" aria-required="true">*</span></label>\n <uib-timepicker name="time" ng-model="entitySpooler.planningtime" required show-meridian="false" show-seconds="false"></uib-timepicker>\n <span data-ng-show="(form.time.$touched || form.$submitted) && form.time.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PLANNING TIME -->\n <!-- START PLANNING PEER -->\n <div class="form-group" data-ng-if="entitySpooler.retrieve == \'PLANNED_PEER\'" data-ng-class="{\'has-error\': (form.agent.$touched || form.$submitted) && form.agent.$invalid}">\n <label class="control-label">{{\'APPLICATION_AGENT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <select name="agent" class="form-control" data-ng-model="entitySpooler.planningpeer" ng-options="agent for agent in agents" required>\n </select>\n <span data-ng-show="(form.agent.$touched || form.$submitted) && form.agent.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PLANNING PEER -->\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'),a.put("app/motiondialer/process/view/view.spooler.history.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_HISTORY\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <json-formatter json="historySpooler" open="2"></json-formatter>\n</div>\n<div class="modal-footer">\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'),a.put("app/motiondialer/process/view/view.spooler.html",'<div class="row" data-ng-init="getSpooler()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_SPOOLER\' | translate}} </span>\n </div>\n <div class="actions">\n <a class="btn btn-default" href="#" data-ng-click="getSpooler()">\n <i class="icon-refresh"></i>\n </a>\n </div>\n </div>\n\n <div class="portlet-body">\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="spinner-grid" spinner-start-active="true"></span>\n <!-- END UI-GRID SPINNER -->\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-exporter class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/reset/reset.html",'<!-- BEGIN LOGO -->\n<div class="logo" data-ng-init="getInfo()">\n <a href="index.html">\n <img ng-src="api/settings/logo/login" alt="logo" class="custom-login-logo" onError="this.onerror=null"/>\n </a>\n</div>\n<!-- END LOGO -->\n<!-- BEGIN RESET -->\n<div class="content">\n <!-- BEGIN RESET FORM -->\n <form name="resetForm" data-ng-submit="resetForm.$valid && reset()" novalidate>\n <h3>{{\'APPLICATION_RESET_PASSWORD\' | translate}}</h3>\n <p>\n {{\'APPLICATION_INSERT_NEW_PASSWORD_RESET\' | translate}}\n </p>\n <div class="form-group" data-ng-class="{\'has-error\': resetForm.$submitted && resetForm.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_NEW_PASSWORD\' | translate}}</label>\n <div class="input-icon">\n <i class="icon-key"></i>\n <input class="form-control form-control-solid placeholder-no-fix" type="password" placeholder="{{\'APPLICATION_NEW_PASSWORD\' | translate}}" name="password" ng-model="userReset.password" data-ng-pattern="setting.securePassword ? settings.patternPassword : settings.patternPasswordLight" required/>\n </div>\n <span class="help-block">\n {{setting.securePassword ? \'MESSAGE_PASSWORD_FORMAT\' : \'MESSAGE_PASSWORD_LIGHT_FORMAT\' | translate}}\n </span>\n <span data-ng-show="resetForm.$submitted && resetForm.password.$invalid" class="help-block">{{\'MESSAGE_REQUIRED_FIELD\' | translate}}</span>\n <span data-ng-show="(resetForm.password.$touched || resetForm.$submitted) && resetForm.password.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <div class="form-group" data-ng-class="{\'has-error\': resetForm.$submitted && resetForm.rePassword.$invalid}">\n <label class="control-label">{{\'APPLICATION_RE_TYPE_NEW_PASSWORD\' | translate}}</label>\n <div class="input-icon">\n <i class="icon-key"></i>\n <input class="form-control form-control-solid placeholder-no-fix" type="password" placeholder="{{\'APPLICATION_RE_TYPE_NEW_PASSWORD\' | translate}}" name="rePassword" ng-model="userReset.rePassword" nx-equal="userReset.password" required/>\n </div>\n <span data-ng-show="resetForm.$submitted && resetForm.rePassword.$invalid" class="help-block">{{\'MESSAGE_REQUIRED_FIELD\' | translate}}</span>\n <span data-ng-show="(resetForm.password.$touched || resetForm.$submitted) && resetForm.$error.nxEqual" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_PASSWORD\' | translate}}.\n </span>\n </div>\n <div class="form-actions">\n <button type="submit" class="btn btn-success uppercase">{{\'APPLICATION_SUBMIT\' | translate}}</button>\n </div>\n </form>\n <!-- END RESET FORM-->\n <div class="login-options">\n <h4>{{\'APPLICATION_FOLLOW_US\' | translate}}</h4>\n <ul class="social-icons">\n <li>\n <a class="social-icon-color facebook" data-original-title="facebook" href="https://www.facebook.com/xenialab"></a>\n </li>\n <li>\n <a class="social-icon-color twitter" data-original-title="Twitter" href="https://twitter.com/xenialab"></a>\n </li>\n <li>\n <a class="social-icon-color googleplus" data-original-title="Goole Plus" href="#"></a>\n </li>\n <li>\n <a class="social-icon-color linkedin" data-original-title="Linkedin" href="#"></a>\n </li>\n </ul>\n </div>\n</div>\n<div class="copyright">\n xCALLY Motion v. {{info.version}} | 2016 - {{year + 1}} © Powered by Xenialab <ng-bind-html data-ng-if="license.custom && !settings.defaultFooterWhiteLabel && settings.footerWhiteLabel" ng-bind-html="\'| \'+settings.footerWhiteLabel"></ng-bind-html>\n</div>\n<!-- END RESET -->\n'),a.put("app/salesforce/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-cloud"></i>\n <a href="/salesforce/list">{{ \'APPLICATION_SALESFORCE\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="fa fa-cloud font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_SALESFORCE\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="/salesforce/wizard" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_ACCOUNT\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/salesforce/view/configuration/list/create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_CONFIGURATION\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.name.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(form.name.$touched || form.name.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START CHANNEL -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.channel.$touched || form.channel.$submitted) && form.channel.$invalid}">\n <label class="control-label">{{\'APPLICATION_CHANNEL\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.channel" name="channel" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_CHANNEL\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="channel.value as channel in channels | filter: $select.search">\n <div data-ng-bind="channel.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form.channel.$touched || form.channel.$submitted) && form.channel.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- START CHANNEL -->\n\n <!-- START VOICE SUBTYPE -->\n <div data-ng-if="item.channel===\'voice\'" class="form-group" data-ng-class="{\'has-error\': (form.channel.$touched || form.channel.$submitted) && form.channel.$invalid}">\n <label class="control-label">{{\'APPLICATION_TYPE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.type" name="type" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_TYPE\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="type in [\'Queue\',\'Outbound\'] | filter: $select.search">\n <div data-ng-bind="type | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form.type.$touched || form.type.$submitted) && form.type.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- START CHANNEL -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/salesforce/view/configuration/list/list.html",'<div ui-view class="profile-content">\n <div class="row">\n <div class="col-md-12">\n <div class="portlet light" data-ng-init="initView()">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_CONFIGURATIONS\' | translate}}</span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="#" data-ng-click="createItem()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_CONFIGURATION\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/salesforce/view/configuration/view/view.html",'<div class="row" data-ng-init="initView();getConfiguration();getCustomVariables();getFields();">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_CONFIGURATION\' | translate}}: {{configurationName}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_SUBJECT\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_DESCRIPTION\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_3" data-toggle="tab">{{\'APPLICATION_FIELDS\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- SUBJECT TAB -->\n <div class="tab-pane ui-padding active" id="tab_1_1">\n <div class="row">\n <div class="col-md-11">\n <span class="caption-subject">All following fields will be join by blank space:</span>\n </div>\n <div class="col-md-1 pull-rigth">\n <button class="btn btn-icon-only green" data-ng-click="addItem(\'subject\')"><i class="fa fa-plus"></i></button>\n </div>\n </div>\n <hr>\n <!-- <div id="subject-item-list" ng-scrollbars ng-scrollbars-config="config"> -->\n <div class="row" data-ng-repeat="subjectItem in subjectConfig">\n <div class="col-md-3">\n <ui-select ng-model="subjectItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeType(subjectItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices repeat="item.type as item in fieldType | filter: $select.search">\n <div ng-bind-html="item.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-8" data-ng-if="subjectItem.type==\'string\'">\n <div class="form-group">\n <input type="text" class="form-control" data-ng-model="subjectItem.content" data-ng-change="updateField(subjectItem)">\n </div>\n </div>\n <div class="col-md-8" data-ng-if="subjectItem.type==\'variable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="subjectItem.variableName" data-ng-change="updateField(subjectItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices group-by="groupVariableByGroup" repeat="variable.name as variable in variables | filter: $select.search">\n <div ng-bind-html="variable.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-8" data-ng-if="subjectItem.type==\'customVariable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="subjectItem.VariableId" data-ng-change="updateField(subjectItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="variable.id as variable in customVariables | filter: $select.search">\n <div ng-bind-html="variable.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-1">\n <div class="form-group">\n <button class="btn btn-icon-only red" data-ng-click="removeItem(subjectItem)"><i class="fa fa-times"></i></button>\n </div>\n </div>\n </div>\n <!-- </div> -->\n </div>\n <!-- END SUBJECT TAB -->\n <!-- DESCRIPTION TAB -->\n <div class="tab-pane ui-padding" id="tab_1_2">\n <div class="row">\n <div class="col-md-11">\n <span class="caption-subject">All following fields will be join by new line:</span>\n </div>\n <div class="col-md-1 pull-rigth">\n <button class="btn btn-icon-only green" data-ng-click="addItem(\'description\')"><i class="fa fa-plus"></i></button>\n </div>\n </div>\n <hr>\n <!-- <div id="description-item-list" ng-scrollbars ng-scrollbars-config="config"> -->\n <div class="row" data-ng-repeat="descriptionItem in descriptionConfig">\n <div class="col-md-2">\n <ui-select ng-model="descriptionItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeDescType(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices repeat="item.type as item in descFieldType | filter: $select.search">\n <div ng-bind-html="item.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-9" data-ng-if="descriptionItem.type==\'string\'">\n <div class="form-group">\n <input type="text" class="form-control" data-ng-model="descriptionItem.content" data-ng-change="updateField(descriptionItem)">\n </div>\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\'">\n <input type="text" class="form-control" placeholder="Key" data-ng-model="descriptionItem.key" data-ng-change="updateField(descriptionItem)">\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\'">\n <ui-select ng-model="descriptionItem.keyType" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeDescType(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices repeat="item.type as item in fieldType | filter: $select.search">\n <div ng-bind-html="item.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\' && descriptionItem.keyType==\'string\'">\n <input type="text" class="form-control" placeholder="Value" data-ng-model="descriptionItem.keyContent" data-ng-change="updateField(descriptionItem)">\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\' && descriptionItem.keyType==\'variable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="descriptionItem.variableName" data-ng-change="updateField(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices group-by="groupVariableByGroup" repeat="variable.name as variable in variables | filter: $select.search">\n <div ng-bind-html="variable.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\' && descriptionItem.keyType==\'customVariable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="descriptionItem.VariableId" data-ng-change="updateField(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="variable.id as variable in customVariables | filter: $select.search">\n <div ng-bind-html="variable.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-1">\n <div class="form-group">\n <button class="btn btn-icon-only red" data-ng-click="removeItem(descriptionItem)"><i class="fa fa-times"></i></button>\n </div>\n </div>\n </div>\n <!-- </div> -->\n </div>\n <!-- END DESCRIPTION TAB -->\n <!-- FIELDS TAB -->\n <div class="tab-pane ui-padding" id="tab_1_3">\n <div class="row">\n <div class="col-md-11">\n <span class="caption-subject">Add how to fill the fields present in your account:</span>\n </div>\n <div class="col-md-1 pull-rigth">\n <button class="btn btn-icon-only green" data-ng-click="addItem(\'field\')"><i class="fa fa-plus"></i></button>\n </div>\n </div>\n <hr>\n <!-- <div id="field-item-list" ng-scrollbars ng-scrollbars-config="config"> -->\n <div class="row" data-ng-repeat="fieldItem in fieldConfig">\n <div class="col-md-3">\n <ui-select ng-model="fieldItem.idField" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeFieldType(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.label}}</ui-select-match>\n <ui-select-choices repeat="item.name as item in accountFields | filter: $select.search">\n <div ng-bind-html="item.label | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-8" data-ng-if="getSystemFieldOptions(fieldItem.idField)">\n <div class="form-group">\n <ui-select ng-model="fieldItem.content" theme="bootstrap" ng-disabled="disabled" data-ng-change="updateField(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.label}}</ui-select-match>\n <ui-select-choices repeat="item.value as item in getSystemFieldOptions(fieldItem.idField) | filter: $select.search">\n <div ng-bind-html="item.label | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField)">\n <div class="form-group">\n <ui-select ng-model="fieldItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeType(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices repeat="item.type as item in fieldType | filter: $select.search">\n <div ng-bind-html="item.title | highlight: $select.search | ucfirst"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'string\'">\n <div class="form-group">\n <input type="text" class="form-control" data-ng-model="fieldItem.content" data-ng-change="updateField(fieldItem)">\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'variable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="fieldItem.variableName" data-ng-change="updateField(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices group-by="groupVariableByGroup" repeat="variable.name as variable in variables | filter: $select.search">\n <div ng-bind-html="variable.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'customVariable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="fieldItem.VariableId" data-ng-change="updateField(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="variable.id as variable in customVariables | filter: $select.search">\n <div ng-bind-html="variable.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-1">\n <div class="form-group">\n <button class="btn btn-icon-only red" data-ng-click="removeItem(fieldItem)"><i class="fa fa-times"></i></button>\n </div>\n </div>\n </div>\n <!-- </div> -->\n </div>\n <!-- END FIELDS TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/salesforce/view/view.account.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_ACCOUNT\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERALS\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.formSetting" data-ng-submit="forms.formSetting.$valid && updateItem()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.name" required/>\n <span data-ng-show="forms.formSetting.name.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="account.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="account.username" required/>\n <span data-ng-show="forms.formSetting.username.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START REMOTE ADDRESS -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.remoteUri.$invalid}">\n <label class="control-label">{{\'APPLICATION_URI\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="remoteUri" placeholder="{{\'APPLICATION_URI\' | translate}}" class="form-control" data-ng-model="account.remoteUri" required />\n <span data-ng-show="forms.formSetting.remoteUri.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="account.password" required/>\n <span data-ng-show="forms.formSetting.password.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START CLIENT ID -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.clientId.$invalid}">\n <label class="control-label">{{\'APPLICATION_CLIENT_ID\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="clientId" placeholder="{{\'APPLICATION_CLIENT_ID\' | translate}}" class="form-control" data-ng-model="account.clientId" required/>\n <span data-ng-show="forms.formSetting.clientId.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CLIENT ID -->\n\n <!-- START CLIENT SECRET -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.clientSecret.$invalid}">\n <label class="control-label">{{\'APPLICATION_CLIENT_SECRET\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="clientSecret" placeholder="{{\'APPLICATION_CLIENT_SECRET\' | translate}}" class="form-control" data-ng-model="account.clientSecret" required/>\n <span data-ng-show="forms.formSetting.clientSecret.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CLIENT SECRET -->\n\n <!-- START SECURITY TOKEN -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.securityToken.$invalid}">\n <label class="control-label">{{\'APPLICATION_SECURITY_TOKEN\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="securityToken" placeholder="{{\'APPLICATION_SECURITY_TOKEN\' | translate}}" class="form-control" data-ng-model="account.securityToken" required/>\n <span data-ng-show="forms.formSetting.securityToken.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SECURITY TOKEN -->\n\n <!-- START SERVER URL -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.serverUrl.$invalid}">\n <label class="control-label">{{\'APPLICATION_MOTION_ADDRESS\' | translate}}</label>\n <input type="url" name="serverUrl" placeholder="{{\'APPLICATION_MOTION_ADDRESS\' | translate}}" class="form-control" data-ng-model="account.serverUrl"/>\n <span class="help-block">\n {{\'DESCRIPTION_SERVER_URL\' | translate}}.\n </span>\n <span class="help-block help-block-info">\n {{\'MESSAGE_MOTION_ADDRESS_FORMAT\' | translate}}\n </span>\n </div>\n <!-- END SERVER URL -->\n\n <!-- START AUTH TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.authType.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTEGRATION_TYPE\' | translate}}</label>\n <ui-select data-ng-model="account.integrationType" name="integrationType" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_INTEGRATION_TYPE\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="type in [\'classic\', \'embedded\'] | filter: $select.search">\n <div data-ng-bind="type | capitalize | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.formSetting.authType.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- START AUTH TYPE -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'), +a.put("app/salesforce/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-cloud"></i>\n <a href="/salesforce/list">{{ \'APPLICATION_SALESFORCE\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <a href="#">{{account.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img src="assets/images/media/salesforce.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{account.name}}\n </div>\n <div class="profile-usertitle-job">\n {{account.remoteUri}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.salesforce.view.account\')}">\n <a ng-href="/salesforce/view/{{account.id}}/account">\n <i class="icon-user"></i>\n {{ \'APPLICATION_ACCOUNT\' | translate }} </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.salesforce.view.configurations\') || $state.is(\'main.salesforce.view.configuration\')}">\n <a ng-href="/salesforce/view/{{account.id}}/configurations/list">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_CONFIGURATIONS\' | translate }} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/salesforce/wizard/wizard.html",'<!-- BEGIN PAGE HEADER-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-cloud"></i>\n <a href="/salesforce/list">{{ \'APPLICATION_SALESFORCE\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n<!-- END PAGE HEADER-->\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initWizard()">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACCOUNT\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_ACCOUNT_INFO\' | translate}}" canexit="exitValidation(forms.formSetting.$valid)">\n <form name="forms.formSetting" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="forms.formSetting.name.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="item.username" required ng-remote-validate="/api/salesforce/accounts/validate/username"/>\n <span data-ng-show="forms.formSetting.username.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.formSetting.username.$touched || forms.formSetting.$submitted) && forms.formSetting.username.$error.ngRemoteValidate" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_EXIST_USERNAME\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n\n <!-- START REMOTE ADDRESS -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.remoteUri.$invalid}">\n <label class="control-label">{{\'APPLICATION_URI\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="remoteUri" placeholder="{{\'APPLICATION_URI\' | translate}}" class="form-control" data-ng-model="item.remoteUri" required/>\n <span data-ng-show="forms.formSetting.remoteUri.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.password" required/>\n <span data-ng-show="forms.formSetting.password.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START CLIENT ID -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.clientId.$invalid}">\n <label class="control-label">{{\'APPLICATION_CLIENT_ID\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="clientId" placeholder="{{\'APPLICATION_CLIENT_ID\' | translate}}" class="form-control" data-ng-model="item.clientId" required/>\n <span data-ng-show="forms.formSetting.clientId.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CLIENT ID -->\n\n <!-- START CLIENT SECRET -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.clientSecret.$invalid}">\n <label class="control-label">{{\'APPLICATION_CLIENT_SECRET\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="clientSecret" placeholder="{{\'APPLICATION_CLIENT_SECRET\' | translate}}" class="form-control" data-ng-model="item.clientSecret" required/>\n <span data-ng-show="forms.formSetting.clientSecret.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CLIENT SECRET -->\n\n <!-- START SECURITY TOKEN -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.securityToken.$invalid}">\n <label class="control-label">{{\'APPLICATION_SECURITY_TOKEN\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="securityToken" placeholder="{{\'APPLICATION_SECURITY_TOKEN\' | translate}}" class="form-control" data-ng-model="item.securityToken" required/>\n <span data-ng-show="forms.formSetting.securityToken.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SECURITY TOKEN -->\n\n <!-- START SERVER URL -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.serverUrl.$invalid}">\n <label class="control-label">{{\'APPLICATION_MOTION_ADDRESS\' | translate}}</label>\n <input type="url" name="serverUrl" placeholder="{{\'APPLICATION_MOTION_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.serverUrl"/>\n <span class="help-block">\n {{\'DESCRIPTION_SERVER_URL\' | translate}}.\n </span>\n <span class="help-block help-block-info">\n {{\'MESSAGE_MOTION_ADDRESS_FORMAT\' | translate}}\n </span>\n </div>\n <!-- END SERVER URL -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" data-ng-click="next()"/>\n\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n\n </wizard>\n\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/setting/customization/view/general/general.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_GENERAL_CUSTOMIZATION\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_LOGO\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{ \'APPLICATION_FOOTER_WHITE_LABEL\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- CHANGE LOGO TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <div class="col-md-6 col-sm-6" >\n <div class="portlet light bordered" style="min-height:411px;">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-pie-chart font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_MAIN\' | translate }}</span>\n </div>\n <div class="actions">\n </div>\n </div>\n <div class="portlet-body">\n <form action="#" role="form" class="row">\n <!-- START STATUS -->\n <div class="form-group col-md-6 col-sm-6">\n <label class="control-label">{{\'APPLICATION_DEFAULT\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="settings.defaultLogo"\n data-ng-init="settings.defaultLogo = license.custom ? settings.defaultLogo : true"\n type="checkbox"\n name="defaultLogo"\n data-ng-change="update()"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <!-- END STATUS -->\n <div class="form-group col-md-6 col-sm-6" data-ng-if="!settings.defaultLogo && license.custom">\n <div class="fileinput fileinput-new" data-provides="fileinput">\n <div class="fileinput-new thumbnail">\n <img ng-src="assets/images/media/noProfileImage.png" alt=""/>\n </div>\n <div class="fileinput-preview fileinput-exists thumbnail">\n </div>\n <div>\n <span class="btn default btn-file" data-ng-show="!uploader.queue[0]">\n <span> {{ \'APPLICATION_SELECT_IMAGE\' | translate }} </span>\n <input type="file" nv-file-select="" uploader="uploader"/><br/>\n </span>\n <button type="button" class="btn default" data-ng-show="uploader.queue[0]" data-dismiss="fileinput" ng-click="uploader.queue[0].remove()">\n {{ \'APPLICATION_REMOVE\' | translate }}\n </button>\n <button type="button" class="btn green-haze" data-ng-show="uploader.queue[0]" data-ng-click="uploader.queue[0].upload()" ng-disabled="uploader.queue[0].isReady || uploader.queue[0].isUploading || uploader.queue[0].isSuccess">\n {{ \'APPLICATION_CONFIRM\' | translate }}\n </button>\n </div>\n <p>\n </br> {{ \'MESSAGE_SUPPORTED_FORMATS\' | translate }} <b>jpg, png, jpeg</b>.\n </p>\n </div>\n </div>\n </form>\n <div data-ng-show="uploader2.isHTML5" >\n <div data-ng-repeat="item in uploader.queue" nowrap style="border-top-style:none">\n <strong>{{ item.file.name }}</strong> {{ item.file.size/1024/1024|number:2 }} MB\n <button type="button" class="btn btn-danger btn-xs" data-ng-click="item.remove()">\n <span class="glyphicon glyphicon-trash"></span> Remove\n </button>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class="col-md-6 col-sm-6">\n <div class="portlet light bordered" style="min-height:411px;">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-pie-chart font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_LOGIN\' | translate }}</span>\n </div>\n <div class="actions">\n </div>\n </div>\n <div class="portlet-body">\n <form action="#" role="form" class="row">\n <!-- START STATUS -->\n <div class="form-group col-md-6 col-sm-6">\n <label class="control-label">{{\'APPLICATION_DEFAULT\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="settings.defaultLoginLogo"\n data-ng-init="settings.defaultLoginLogo = license.custom ? settings.defaultLoginLogo : true"\n type="checkbox"\n name="defaultLoginLogo"\n data-ng-change="update()"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <!-- END STATUS -->\n <div class="form-group col-md-6 col-sm-6" data-ng-if="!settings.defaultLoginLogo && license.custom">\n <div class="fileinput fileinput-new" data-provides="fileinput">\n <div class="fileinput-new thumbnail">\n <img ng-src="assets/images/media/noProfileImage.png" alt=""/>\n </div>\n <div class="fileinput-preview fileinput-exists thumbnail">\n </div>\n <div>\n <span class="btn default btn-file" data-ng-show="!uploader2.queue[0]">\n <span> {{ \'APPLICATION_SELECT_IMAGE\' | translate }} </span>\n <input type="file" nv-file-select="" uploader="uploader2"/><br/>\n </span>\n <button type="button" class="btn default" data-ng-show="uploader2.queue[0]" data-dismiss="fileinput" ng-click="uploader2.queue[0].remove()">\n {{ \'APPLICATION_REMOVE\' | translate }}\n </button>\n <button type="button" class="btn green-haze" data-ng-show="uploader2.queue[0]" data-ng-click="uploader2.queue[0].upload()" ng-disabled="uploader2.queue[0].isReady || uploader2.queue[0].isUploading || uploader2.queue[0].isSuccess">\n {{ \'APPLICATION_CONFIRM\' | translate }}\n </button>\n </div>\n <p>\n </br> {{ \'MESSAGE_SUPPORTED_FORMATS\' | translate }} <b>jpg, png, jpeg</b>.\n </p>\n </div>\n </div>\n </form>\n <div data-ng-show="uploader2.isHTML5" >\n <div data-ng-repeat="item in uploader.queue" nowrap style="border-top-style:none">\n <strong>{{ item.file.name }}</strong> {{ item.file.size/1024/1024|number:2 }} MB\n <button type="button" class="btn btn-danger btn-xs" data-ng-click="item.remove()">\n <span class="glyphicon glyphicon-trash"></span> Remove\n </button>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <!-- END CHANGE LOGO TAB -->\n <!-- CHANGE FOOTER WHITE LABEL TAB -->\n <div class="tab-pane" id="tab_1_2">\n <form name="forms.footerWhiteLabel" data-ng-submit="forms.footerWhiteLabel.$valid && update()" novalidate>\n <!-- START DEFAULT -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DEFAULT\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="settings.defaultFooterWhiteLabel"\n type="checkbox"\n name="defaultFooterWhiteLabel"\n data-ng-change="update()"\n data-ng-init="settings.defaultFooterWhiteLabel = license.custom ? settings.defaultFooterWhiteLabel : true"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <!-- END DEFAULT -->\n <!-- START LABEL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.footerWhiteLabel.footerWhiteLabel.$touched || forms.footerWhiteLabel.$submitted) && forms.footerWhiteLabel.footerWhiteLabel.$invalid}">\n <label class="control-label">{{\'APPLICATION_FOOTER_WHITE_LABEL\' | translate}}<span data-ng-if="!settings.defaultFooterWhiteLabel" class="required" aria-required="true">*</span></label>\n <textarea name="footer" placeholder="{{\'APPLICATION_FOOTER_WHITE_LABEL\' | translate}}" class="form-control" data-ng-model="settings.footerWhiteLabel" data-ng-disabled="settings.defaultFooterWhiteLabel || !license.custom" data-ng-required="!settings.defaultFooterWhiteLabel && license.custom"/></textarea>\n <span data-ng-show="(forms.footerWhiteLabel.footerWhiteLabel.$touched || forms.footerWhiteLabel.$submitted) && forms.footerWhiteLabel.footerWhiteLabel.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END LABEL -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}" data-ng-disabled="!license.custom"/>\n </form>\n </div>\n <!-- END CHANGE FOOTER WHITE LABEL TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/setting/customization/view/motionbar/motionbar.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_MOTION_BAR_CUSTOMIZATION\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_LOGO\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- CHANGE LOGO TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <div class="col-md-12 col-sm-12" >\n <div class="portlet light bordered" style="min-height:411px;">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-pie-chart font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_MAIN\' | translate }}</span>\n </div>\n <div class="actions">\n </div>\n </div>\n <div class="portlet-body">\n <form action="#" role="form" class="row">\n <!-- START STATUS -->\n <div class="form-group col-md-6 col-sm-6">\n <label class="control-label">{{\'APPLICATION_DEFAULT\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="settings.defaultMotionBarLogo"\n data-ng-init="settings.defaultMotionBarLogo = license.preferred ? settings.defaultMotionBarLogo : true"\n type="checkbox"\n name="defaultMotionBarLogo"\n data-ng-change="update()"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <!-- END STATUS -->\n <div class="form-group col-md-6 col-sm-6" data-ng-if="!settings.defaultMotionBarLogo && license.preferred">\n <div class="fileinput fileinput-new" data-provides="fileinput">\n <div class="fileinput-new thumbnail">\n <img ng-src="assets/images/media/noProfileImage.png" alt=""/>\n </div>\n <div class="fileinput-preview fileinput-exists thumbnail">\n </div>\n <div>\n <span class="btn default btn-file" data-ng-show="!uploader.queue[0]">\n <span> {{ \'APPLICATION_SELECT_IMAGE\' | translate }} </span>\n <input type="file" nv-file-select="" uploader="uploader"/><br/>\n </span>\n <button type="button" class="btn default" data-ng-show="uploader.queue[0]" data-dismiss="fileinput" ng-click="uploader.queue[0].remove()">\n {{ \'APPLICATION_REMOVE\' | translate }}\n </button>\n <button type="button" class="btn green-haze" data-ng-show="uploader.queue[0]" data-ng-click="uploader.queue[0].upload()" ng-disabled="uploader.queue[0].isReady || uploader.queue[0].isUploading || uploader.queue[0].isSuccess">\n {{ \'APPLICATION_CONFIRM\' | translate }}\n </button>\n </div>\n <p>\n </br> {{ \'MESSAGE_SUPPORTED_FORMATS\' | translate }} <b>jpg, png, jpeg</b>.\n </p>\n </div>\n </div>\n </form>\n <div data-ng-show="uploader.isHTML5" >\n <div data-ng-repeat="item in uploader.queue" nowrap style="border-top-style:none">\n <strong>{{ item.file.name }}</strong> {{ item.file.size/1024/1024|number:2 }} MB\n <button type="button" class="btn btn-danger btn-xs" data-ng-click="item.remove()">\n <span class="glyphicon glyphicon-trash"></span> Remove\n </button>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <!-- END CHANGE LOGO TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/setting/customization/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-settings"></i>\n <a href="#">{{ \'APPLICATION_SETTINGS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-globe"></i>\n <a href="#">{{ \'APPLICATION_CUSTOMIZATION\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img src="assets/images/media/customize.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{ \'APPLICATION_CUSTOMIZATION\' | translate }}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.setting.customization.view.general\')}">\n <a ng-href="/setting/customization/view/general">\n <i class="icon-picture"></i>\n {{ \'APPLICATION_GENERAL\' | translate }} </a>\n </li>\n <li data-ng-if="license.preferred" data-ng-class="{active: $state.is(\'main.setting.customization.view.motionbar\')}">\n <a ng-href="/setting/customization/view/motionbar">\n <i class="icon-screen-desktop"></i>\n {{ \'APPLICATION_MOTION_BAR\' | translate }} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/setting/general/view/main/main.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_GENERAL_SETTINGS\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body">\n <form name="forms.main" data-ng-submit="forms.main.$valid && update()" novalidate>\n <!-- START MIN INTERNAL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.main.min_internal.$touched || forms.main.$submitted) && forms.main.min_internal.$invalid}">\n <label class="control-label">{{\'APPLICATION_MIN_INTERNAL\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="1" name="min_internal" placeholder="{{\'APPLICATION_MIN_INTERNAL\' | translate}}" class="form-control" data-ng-model="settings.min_internal" required/>\n <span data-ng-show="(forms.main.min_internal.$touched || forms.main.$submitted) && forms.main.min_internal.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MIN INTERNAL -->\n\n <!-- START MIN MAILBOX -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.main.min_mailbox.$touched || forms.main.$submitted) && forms.main.min_mailbox.$invalid}">\n <label class="control-label">{{\'APPLICATION_MIN_MAILBOX\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="1" name="min_mailbox" placeholder="{{\'APPLICATION_MIN_MAILBOX\' | translate}}" class="form-control" data-ng-model="settings.min_mailbox" required/>\n <span data-ng-show="(forms.main.min_mailbox.$touched || forms.main.$submitted) && forms.main.min_mailbox.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MIN MAILBOX -->\n\n <!-- START MAIL ROUTING -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.main.mailRoutingCapacity.$touched || forms.main.$submitted) && forms.main.mailRoutingCapacity.$invalid}">\n <label class="control-label">{{\'APPLICATION_MAIL_ROUTING_BUFFER_CAPACITY\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="1" max="50" name="mailRoutingCapacity" placeholder="{{\'APPLICATION_MAIL_ROUTING_BUFFER_CAPACITY\' | translate}}" class="form-control" data-ng-model="settings.mailRoutingCapacity" required/>\n <span class="help-block">\n {{\'APPLICATION_MAIL_ROUTING_BUFFER_CAPACITY_DESC\' | translate}}\n </span>\n <span data-ng-show="(forms.main.mailRoutingCapacity.$touched || forms.main.$submitted) && forms.main.mailRoutingCapacity.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MAIL ROUTING -->\n\n <!-- START CHAT ROUTING -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.main.chatRoutingCapacity.$touched || forms.main.$submitted) && forms.main.chatRoutingCapacity.$invalid}">\n <label class="control-label">{{\'APPLICATION_CHAT_ROUTING_BUFFER_CAPACITY\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="1" max="50" name="chatRoutingCapacity" placeholder="{{\'APPLICATION_CHAT_ROUTING_BUFFER_CAPACITY\' | translate}}" class="form-control" data-ng-model="settings.chatRoutingCapacity" required/>\n <span class="help-block">\n {{\'APPLICATION_CHAT_ROUTING_BUFFER_CAPACITY_DESC\' | translate}}\n </span>\n <span data-ng-show="(forms.main.chatRoutingCapacity.$touched || forms.main.$submitted) && forms.main.chatRoutingCapacity.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CHAT ROUTING -->\n\n <!-- START AGI PORT -->\n <!-- NOTE: CUSTOM AGI PORT DEPRECATED -->\n <!-- <div class="form-group" data-ng-class="{\'has-error\': (forms.main.agi_port.$touched || forms.main.$submitted) && forms.main.agi_port.$invalid}">\n <label class="control-label">{{\'APPLICATION_AGI_PORT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="1" name="agi_port" placeholder="{{\'APPLICATION_AGI_PORT\' | translate}}" class="form-control" data-ng-model="settings.agi_port" required/>\n <span data-ng-show="(forms.main.agi_port.$touched || forms.main.$submitted) && forms.main.agi_port.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div> -->\n <!-- END AGI PORT -->\n\n <!-- START SECURE PASSWORD -->\n <div class="form-group">\n <label class="control-label">\n {{\'APPLICATION_SECURE_PASSWORD\' | translate}}\n </label><br>\n <input\n bs-switch\n data-ng-model="settings.securePassword"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </div>\n <!-- END SECURE PASSWORD -->\n\n <!-- START AUTO LOGOUT -->\n <div class="form-group">\n <label class="control-label">\n {{\'APPLICATION_AGENT_AUTO_LOGOUT\' | translate}}\n </label><br>\n <input\n bs-switch\n data-ng-model="settings.logoutOnWindowClose"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </div>\n <!-- END AUTO LOGOUT -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n </div>\n </div>\n</div>\n'), +a.put("app/setting/general/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-settings"></i>\n <a href="#">{{ \'APPLICATION_SETTINGS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-globe"></i>\n <a href="#">{{ \'APPLICATION_GENERAL\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img src="assets/images/media/customize.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{ \'APPLICATION_GENERAL\' | translate }}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.setting.general.view.main\')}">\n <a ng-href="/setting/general/view/main">\n <i class="icon-picture"></i>\n {{ \'APPLICATION_MAIN\' | translate }} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/setting/license/view/update.modal.html",'<div class="modal-header" data-ng-init="getLicense()">\n <h3 class="modal-title">{{ \'APPLICATION_UPDATE_LICENSE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <!-- START LICENSE -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_LICENSE\' | translate}}</label>\n <textarea type="text" style="min-height:95px;" name="description" placeholder="{{\'APPLICATION_LICENSE\' | translate}}" class="form-control" data-ng-model="item.license"></textarea>\n </div>\n <!-- END LICENSE -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="update()" ng-disabled="form.$invalid">{{ \'APPLICATION_UPDATE\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/setting/license/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-settings"></i>\n <a href="#">{{ \'APPLICATION_SETTINGS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-info"></i>\n <a href="#">{{ \'APPLICATION_LICENSE\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE CONTENT -->\n <div class="profile-content">\n <div class="row" data-ng-if="item.expirationTime > -1 && !item.demo">\n <div class="col-md-12">\n <div class="note note-warning">\n <h4 class="block"><strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_YOUR_LICENSE_WILL_EXPIRE\' | translate}} <strong>{{license.expirationTime}}</strong> {{\'MESSAGE_DAYS\' | translate}}.</h4>\n <p data-ng-if="item.token !== item.token2">\n {{\'MESSAGE_SEND_EMAIL_TO\' | translate}} <a href="mailto:license@xcally.com?subject=New%20token%20detected&body=Hi xCALLY, my new token is: {{license.token2}}. Old token: {{license.token}}">license@xcally.com</a>.\n </p>\n <p data-ng-if="item.token !== item.token2">\n {{\'APPLICATION_OLD\' | translate | uppercase}} Token: <strong>{{license.token}}</strong>\n </p>\n <p data-ng-if="item.token !== item.token2">\n {{\'APPLICATION_NEW\' | translate | uppercase}} Token: <strong>{{license.token2}}</strong>\n </p>\n </div>\n </div>\n </div>\n <div class="row">\n <div class="col-md-6">\n <div class="pricing hover-effect">\n <div class="pricing-head">\n <h3 data-ng-switch="license.months">\n <div ng-switch-when="1">{{\'APPLICATION_MONTH_TO_MONTH\' | translate}}</div>\n <div ng-switch-when="12">{{\'APPLICATION_YEARLY\' | translate}}</div>\n <div ng-switch-when="36">{{\'APPLICATION_PERPETUAL\' | translate}}</div>\n <div ng-switch-default>{{\'APPLICATION_UNKNOWN\' | translate}}</div>\n <div class="h5" data-ng-if="item.token === item.token2">{{license.token || \'unknown\'}} </div><div class="h5" data-ng-if="item.token !== item.token2"><div><b>{{\'APPLICATION_OLD_UID\' | translate}}:</b> {{license.token || \'unknown\'}}</div><div><b>{{\'APPLICATION_NEW_UID\' | translate}}:</b> {{license.token2 || \'unknown\'}}</div> </div>\n </h3>\n <h4><i>{{license.expiration ? (license.expiration | date:\'medium\') : \'DEMO\'}}</i>\n <span data-ng-show="license.expiration">Expiration Date </span>\n </h4>\n </div>\n <ul class="pricing-content list-unstyled">\n <li class="row">\n <div class="col-md-9">\n <i class="icon-eye"></i> {{\'APPLICATION_USERS\' | translate}}:\n </div>\n <div class="col-md-3 text-center">\n {{(license.users || license.users >= 0) ? license.users : \'unknown\'}}\n </div>\n </li>\n <li class="row">\n <div class="col-md-9">\n <i class="icon-people"></i> {{\'APPLICATION_AGENTS\' | translate}} ({{\'APPLICATION_CONCURRENTS\' | translate}}):\n </div>\n <div class="col-md-3 text-center">\n {{(license.agents || license.agents >= 0) ? license.agents : \'unknown\'}}\n </div>\n </li>\n <li class="row">\n <div class="col-md-9">\n <i class="icon-phone"></i> {{\'APPLICATION_TELEPHONES\' | translate}}:\n </div>\n <div class="col-md-3 text-center">\n {{(license.telephones || license.telephones >= 0) ? license.telephones : \'unknown\'}}\n </div>\n </li>\n <li class="row">\n <div class="col-md-9">\n <i class="icon-bubble"></i> {{\'APPLICATION_CHAT\' | translate}}:\n </div>\n <div class="col-md-3 text-center">\n <span class="label label-sm" data-ng-class="license.chat ? \'label-success\' : \'label-danger\'">{{license.chat ? \'APPLICATION_ENABLED\' : \'APPLICATION_DISABLED\' | translate}}</span>\n </div>\n </li>\n <li class="row">\n <div class="col-md-9">\n <i class="icon-envelope"></i> {{\'APPLICATION_MAIL\' | translate}}:\n </div>\n <div class="col-md-3 text-center">\n <span class="label label-sm" data-ng-class="license.mail ? \'label-success\' : \'label-danger\'">{{license.mail ? \'APPLICATION_ENABLED\' : \'APPLICATION_DISABLED\' | translate}}</span>\n </div>\n </li>\n <li class="row">\n <div class="col-md-9">\n <i class="fa fa-fax"></i> {{\'APPLICATION_FAX\' | translate}}:\n </div>\n <div class="col-md-3 text-center">\n <span class="label label-sm" data-ng-class="license.fax ? \'label-success\' : \'label-danger\'">{{license.fax ? \'APPLICATION_ENABLED\' : \'APPLICATION_DISABLED\' | translate}}</span>\n </div>\n </li>\n <li class="row">\n <div class="col-md-9">\n <i class="glyphicon glyphicon-comment"></i> {{\'APPLICATION_SMS\' | translate}}:\n </div>\n <div class="col-md-3 text-center">\n <span class="label label-sm" data-ng-class="license.messaging ? \'label-success\' : \'label-danger\'">{{license.messaging ? \'APPLICATION_ENABLED\' : \'APPLICATION_DISABLED\' | translate}}</span>\n </div>\n </li>\n <li class="row">\n <div class="col-md-9">\n <i class="icon-globe"></i> {{\'APPLICATION_OPEN_CHANNEL\' | translate}}:\n </div>\n <div class="col-md-3 text-center">\n <span class="label label-sm" data-ng-class="license.openchannel ? \'label-success\' : \'label-danger\'">{{license.openchannel ? \'APPLICATION_ENABLED\' : \'APPLICATION_DISABLED\' | translate}}</span>\n </div>\n </li>\n <li class="row">\n <div class="col-md-9">\n <i class="icon-notebook"></i> {{\'APPLICATION_CONTACT_MANAGER\' | translate}}:\n </div>\n <div class="col-md-3 text-center">\n <span class="label label-sm" data-ng-class="license.cm ? \'label-success\' : \'label-danger\'">{{license.cm ? \'APPLICATION_ENABLED\' : \'APPLICATION_DISABLED\' | translate}}</span>\n </div>\n </li>\n <li class="row">\n <div class="col-md-9">\n <i class="icon-control-forward"></i> {{\'APPLICATION_MOTION_DIALER\' | translate}}:\n </div>\n <div class="col-md-3 text-center">\n <span class="label label-sm" data-ng-class="license.dialer ? \'label-success\' : \'label-danger\'">{{license.dialer ? \'APPLICATION_ENABLED\' : \'APPLICATION_DISABLED\' | translate}}</span>\n </div>\n </li>\n <li class="row">\n <div class="col-md-9">\n <i class="fa fa-edit"></i> {{\'APPLICATION_JSCRIPTY\' | translate}}:\n </div>\n <div class="col-md-3 text-center">\n <span class="label label-sm" data-ng-class="license.jscripty ? \'label-success\' : \'label-danger\'">{{license.jscripty ? \'APPLICATION_ENABLED\' : \'APPLICATION_DISABLED\' | translate}}</span>\n </div>\n </li>\n <li class="row">\n <div class="col-md-9">\n <i class="icon-equalizer"></i> {{\'APPLICATION_CUSTOMIZATION\' | translate}}:\n </div>\n <div class="col-md-3 text-center">\n <span class="label label-sm" data-ng-class="license.custom ? \'label-success\' : \'label-danger\'">{{license.custom ? \'APPLICATION_ENABLED\' : \'APPLICATION_DISABLED\' | translate}}</span>\n </div>\n </li>\n <li class="row">\n <div class="col-md-9">\n <i class="icon-cloud-download"></i> {{\'APPLICATION_UPDATE\' | translate}}:\n </div>\n <div class="col-md-3 text-center">\n <span class="label label-sm" data-ng-class="license.update ? \'label-success\' : \'label-danger\'">{{license.update ? \'APPLICATION_ENABLED\' : \'APPLICATION_DISABLED\' | translate}}</span>\n </div>\n </li>\n </ul>\n <div class="pricing-footer">\n <p>\n {{license.description}}\n </p>\n <a href="https://www.xcallymotion.com/prices" target="_blank" class="btn yellow-crusta">\n {{\'APPLICATION_PRICES\' | translate}} <i class="m-icon-swapright m-icon-white"></i>\n </a>\n <a href="#" class="btn purple-plum" data-ng-click="updateLicense()">\n {{\'APPLICATION_UPDATE\' | translate}} <i class="icon-refresh m-icon-white"></i>\n </a>\n </div>\n </div>\n </div>\n <div class="col-md-6">\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-info font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_LICENSE_REQUEST\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <form name="form" novalidate data-ng-submit="form.$valid && submitRequest()">\n\n <!-- START USERS -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.users.$touched || form.$submitted) && form.users.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <div class="input-icon">\n <i class="icon-eye"></i>\n <input type="number" name="users" placeholder="{{\'APPLICATION_USERS\' | translate}}" class="form-control" data-ng-model="item.users" min="0" required>\n </div>\n <span data-ng-show="(form.users.$touched || form.$submitted) && form.users.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERS -->\n\n <!-- START AGENTS -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.agents.$touched || form.$submitted) && form.agents.$invalid}">\n <label class="control-label">{{\'APPLICATION_AGENTS\' | translate}} ({{\'APPLICATION_CONCURRENTS\' | translate}})<span class="required" aria-required="true">*</span></label>\n <div class="input-icon">\n <i class="icon-people"></i>\n <input type="number" name="agents" placeholder="{{\'APPLICATION_AGENTS\' | translate}} ({{\'APPLICATION_CONCURRENTS\' | translate}})" class="form-control" data-ng-model="item.agents" min="0" required>\n </div>\n <span data-ng-show="(form.users.$touched || form.$submitted) && form.users.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END AGENTS -->\n\n <!-- START TELEPHONES -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.telephones.$touched || form.$submitted) && form.telephones.$invalid}">\n <label class="control-label">{{\'APPLICATION_TELEPHONES\' | translate}}<span class="required" aria-required="true">*</span></label>\n <div class="input-icon">\n <i class="icon-phone"></i>\n <input type="number" name="telephones" placeholder="{{\'APPLICATION_TELEPHONES\' | translate}}" class="form-control" data-ng-model="item.telephones" min="0" required>\n </div>\n <span data-ng-show="(form.telephones.$touched || form.$submitted) && form.telephones.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TELEPHONES -->\n\n <!-- START PLAN -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.plan.$touched || form.$submitted) && form.plan.$invalid}">\n <label class="control-label">{{\'APPLICATION_PLAN\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.months" name="plan" theme="bootstrap" on-select="updateRequestExpiration()" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="plan.value as plan in plans | filter: $select.search">\n <div ng-bind-html="plan.name | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form.plan.$touched || form.$submitted) && form.plan.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PLAN -->\n\n <!-- START EMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.email.$touched || form.$submitted) && form.email.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}<span class="required" aria-required="true">*</span></label>\n <div class="input-icon">\n <i class="icon-envelope"></i>\n <input type="email" name="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" class="form-control" data-ng-model="item.email" min="0" required>\n </div>\n <span data-ng-show="(form.email.$touched || form.$submitted) && form.email.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END EMAIL -->\n\n <!-- START NOTES -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.notes.$touched || form.$submitted) && form.notes.$invalid}">\n <label class="control-label">{{\'APPLICATION_NOTES\' | translate}}</label>\n <div class="input-icon">\n <i class="icon-note"></i>\n <textarea name="notes" placeholder="{{\'APPLICATION_NOTES\' | translate}}" class="form-control" data-ng-model="item.notes" min="0"></textarea>\n </div>\n <span data-ng-show="(form.notes.$touched || form.$submitted) && form.notes.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NOTES -->\n\n <div class="row">\n <div class="form-group col-md-4 col-xs-6">\n <label class="control-label">{{\'APPLICATION_CHAT\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="item.chat"\n type="checkbox"\n name="chat"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <div class="form-group col-md-4 col-xs-6">\n <label class="control-label">{{\'APPLICATION_MAIL\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="item.mail"\n type="checkbox"\n name="mail"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <div class="form-group col-md-4 col-xs-6">\n <label class="control-label">{{\'APPLICATION_FAX\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="item.fax"\n type="checkbox"\n name="fax"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <div class="form-group col-md-4 col-xs-6">\n <label class="control-label">{{\'APPLICATION_SMS\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="item.messaging"\n type="checkbox"\n name="messaging"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <div class="form-group col-md-4 col-xs-6">\n <label class="control-label">{{\'APPLICATION_OPEN_CHANNEL\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="item.openchannel"\n type="checkbox"\n name="openchannel"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <div class="form-group col-md-4 col-xs-6">\n <label class="control-label">{{\'APPLICATION_CONTACT_MANAGER\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="item.cm"\n type="checkbox"\n name="cm"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <div class="form-group col-md-4 col-xs-6">\n <label class="control-label">{{\'APPLICATION_MOTION_DIALER\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="item.dialer"\n type="checkbox"\n name="dialer"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <div class="form-group col-md-4 col-xs-6">\n <label class="control-label">{{\'APPLICATION_JSCRIPTY\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="item.jscripty"\n type="checkbox"\n name="jscripty"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <div class="form-group col-md-4 col-xs-6">\n <label class="control-label">{{\'APPLICATION_CUSTOMIZATION\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="item.custom"\n type="checkbox"\n name="custom"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <div class="form-group col-md-4 col-xs-6">\n <label class="control-label">{{\'APPLICATION_UPDATE\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="item.update"\n type="checkbox"\n name="update"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n </div>\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_SUBMIT\' | translate}} {{\'APPLICATION_REQUEST\' | translate}}"/>\n </form>\n </div>\n </div>\n </div>\n </div>\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/setting/network/view/externip/externip.create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{title}}</h3>\n</div>\n<div class="modal-body" data-ng-init="initModal()">\n <form name="form" novalidate>\n\n <!-- START ADDRESS -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.address.$touched || form.$submitted) && form.address.$invalid}">\n <label class="control-label">{{\'APPLICATION_ADDRESS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="address" placeholder="{{\'APPLICATION_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.value" required data-ng-pattern="/^(25[0-5]|2[0-4][0-9]|1?[0-9]{1,2})(.(25[0-5]|2[0-4][0-9]|1?[0-9]{1,2})){3}$/"/>\n <span data-ng-show="(form.address.$touched || form.$submitted) && form.address.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(form.address.$touched || form.$submitted) && form.address.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END ADDRESS -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'), +a.put("app/setting/network/view/externip/externip.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-globe font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_EXTERNIP\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="#" data-toggle="dropdown" data-ng-click="createItem()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_EXTERNIP\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/setting/network/view/localnet/localnet.create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{title}}</h3>\n</div>\n<div class="modal-body" data-ng-init="initModal()">\n <form name="form" novalidate>\n\n <!-- START ADDRESS -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.address.$touched || form.$submitted) && form.address.$invalid}">\n <label class="control-label">{{\'APPLICATION_ADDRESS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="address" placeholder="{{\'APPLICATION_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.address" required data-ng-pattern="/^(25[0-5]|2[0-4][0-9]|1?[0-9]{1,2})(.(25[0-5]|2[0-4][0-9]|1?[0-9]{1,2})){3}$/"/>\n <span data-ng-show="(form.address.$touched || form.$submitted) && form.address.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(form.address.$touched || form.$submitted) && form.address.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END ADDRESS -->\n\n <!-- START MASK -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.mask.$touched || form.$submitted) && form.mask.$invalid}">\n <label class="control-label">{{\'APPLICATION_MASK\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="mask" placeholder="{{\'APPLICATION_MASK\' | translate}}" class="form-control" data-ng-model="item.mask" required data-ng-pattern="/^(25[0-5]|2[0-4][0-9]|1?[0-9]{1,2})(.(25[0-5]|2[0-4][0-9]|1?[0-9]{1,2})){3}$/"/>\n <span data-ng-show="(form.mask.$touched || form.$submitted) && form.mask.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(form.mask.$touched || form.$submitted) && form.mask.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END MASK -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/setting/network/view/localnet/localnet.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-desktop font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_LOCALNET\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="#" data-toggle="dropdown" data-ng-click="createItem()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_LOCALNET\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/setting/network/view/stunaddr/stunaddr.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-desktop font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_STUNADDR\' | translate }}</a> </span>\n </div>\n <div class="actions">\n </div>\n </div>\n <div class="portlet-body">\n <form name="form" data-ng-submit="form.$valid && update()" novalidate>\n\n <!-- START ADDRESS -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.address.$touched || form.$submitted) && form.address.$invalid}">\n <label class="control-label">{{\'APPLICATION_ADDRESS\' | translate}}</label>\n <input type="text" name="stunaddr" placeholder="{{\'APPLICATION_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.stunaddr"/>\n <span class="help-block">\n {{\'DESCRIPTION_STUNADDR\' | translate}}\n </span>\n </div>\n <!-- END ADDRESS -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/setting/network/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-settings"></i>\n <a href="#">{{ \'APPLICATION_SETTINGS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-globe"></i>\n <a href="#">{{ \'APPLICATION_NETWORK\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img src="assets/images/media/business.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{ \'APPLICATION_NETWORK\' | translate }}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.setting.network.view.localnet\')}">\n <a ng-href="/setting/network/view/localnet">\n <i class="icon-screen-desktop"></i>\n {{ \'APPLICATION_LOCALNET\' | translate }} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.setting.network.view.externip\')}">\n <a ng-href="/setting/network/view/externip">\n <i class="icon-globe"></i>\n {{ \'APPLICATION_EXTERNIP\' | translate }} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.setting.network.view.stunaddr\')}">\n <a ng-href="/setting/network/view/stunaddr">\n <i class="icon-fire"></i>\n {{ \'APPLICATION_STUNADDR\' | translate }} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/setting/smtp/view/view.html",'<div class="row" data-ng-init="initView();">\n <div class="col-md-12">\n\n <form name="forms.info" data-ng-submit="forms.info.$valid && updateItem()" novalidate>\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_ACCOUNT\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body">\n <!-- GENERAL TAB -->\n\n <div class="note note-danger" data-ng-show="item.account.MailServerOut.state === \'DISCONNECTED\' || item.account.MailServerOut.state === \'ERROR\'">\n <p> ERROR </p>\n <json-formatter open="1" json="item.account.MailServerOut.source"></json-formatter>\n </div>\n\n <div class="note note-success" data-ng-show="item.account.MailServerOut.state === \'CONNECTED\'">\n <p> CONNECTED </p>\n </div>\n\n <div class="note note-info" data-ng-show="item.account.MailServerOut.state === \'CONNECTING\'">\n <p> TRYING... </p>\n </div>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.account.name" required/>\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid && forms.info.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START ADDRESS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.address.$touched || forms.info.$submitted) && forms.info.address.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL_ADDRESS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="address" placeholder="{{\'APPLICATION_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.account.address" required/>\n <span data-ng-show="(forms.info.address.$touched || forms.info.$submitted) && forms.info.address.$invalid && forms.info.address.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END ADDRESS -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.account.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START SERVICE -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_SERVICE\' | translate}}</label><br>\n <input\n bs-switch\n data-ng-model="item.account.service"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </div>\n <!-- END SERVICE -->\n <!-- END GENERAL TAB -->\n </div>\n </div>\n\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">SMTP</span>\n </div>\n </div>\n <div class="portlet-body">\n <!-- SMTP TAB -->\n <!-- START HOST -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.host.$touched || forms.info.$submitted) && forms.info.host.$invalid}">\n <label class="control-label">{{\'APPLICATION_HOST\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="host" placeholder="{{\'APPLICATION_HOST\' | translate}}" class="form-control" data-ng-model="item.account.MailServerOut.host" required/>\n <span data-ng-show="(forms.info.host.$touched || forms.info.$submitted) && forms.info.host.$invalid && forms.info.host.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END HOST -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.username.$touched || forms.info.$submitted) && forms.info.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="item.account.MailServerOut.username" required/>\n <span data-ng-show="(forms.info.username.$touched || forms.info.$submitted) && forms.info.username.$invalid && forms.info.username.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.account.MailServerOut.password" required/>\n <span data-ng-show="(forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$invalid && forms.info.password.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START PORT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.port.$touched || forms.info.$submitted) && forms.info.port.$invalid}">\n <label class="control-label">{{\'APPLICATION_PORT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" name="port" placeholder="{{\'APPLICATION_PORT\' | translate}}" class="form-control" data-ng-model="item.account.MailServerOut.port" required/>\n <span data-ng-show="(forms.info.form.$touched || forms.info.$submitted) && forms.info.port.$invalid && forms.info.port.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.form.$touched || forms.info.$submitted) && forms.info.port.$invalid && forms.info.port.$error.number" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PORT -->\n\n <!-- START SSL -->\n <div class="form-group">\n <label class="control-label">SSL</label><br>\n <input\n bs-switch\n data-ng-model="item.account.MailServerOut.ssl"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </div>\n <!-- END SSL -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n <input class="btn blue-madison" type="button" value="Test" data-ng-click="test()" data-ng-if="item.account.id"/>\n <input class="btn red" type="button" value="{{\'APPLICATION_DELETE\' | translate}}" data-ng-if="item.account.id" data-ng-click="delete(\'Service SMTP\',item.account.id);"/>\n\n <!-- END SMTP TAB -->\n </div>\n </div>\n </form>\n\n </div>\n</div>\n'),a.put("app/setting/system/view/console/console.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initView()" data-ng-click="cmdFocus()">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_ASTERISK_CONSOLE\' | translate}}\n <button class="btn btn-default" href="#" data-ng-click="output = \'\';cmdFocus();">\n <i class="icon-ban"></i>\n </button></span>\n </div>\n </div>\n <div class="portlet-body">\n <span us-spinner spinner-key="console-spinner" spinner-start-active="true"></span>\n <div class="well" style="height:400px;overflow-y:scroll;" schroll-bottom="output" data-ng-bind-html="output"></div>\n <form name="forms.console" data-ng-submit="forms.console.$valid && sendCmd() && !busy" novalidate>\n <!-- START COMMAND -->\n <div class="form-group">\n <input type="text" name="command" id="command" placeholder="{{\'APPLICATION_INSERT_COMMAND\' | translate}}" class="form-control" data-ng-model="item.command" data-ng-disabled="busy" autocomplete="off" data-ng-keyup="keyUp($event)"/>\n </div>\n <span class="help-block">\n {{ \'DESCRIPTION_ENTER_TO_COMMAND\' | translate }}\n </span>\n <button type="submit" class="hide"></button>\n <!-- END COMMAND -->\n </form>\n </div>\n </div>\n</div>\n'),a.put("app/setting/system/view/general/general.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="row ">\n <div class="col-md-6 col-sm-6">\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-pie-chart font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_MEMORY\' | translate }} (<b>{{ \'APPLICATION_TOTAL\' | translate }}</b>: {{system.memory.Total}} MB)</a> </span>\n </div>\n <div class="actions">\n <a class="btn btn-default" href="#" data-ng-click="initView()" data-ng-disabled="loading">\n <i class="icon-refresh"></i>\n </a>\n </div>\n </div>\n <div class="portlet-body">\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="memory-spinner" spinner-start-active="true"></span>\n <!-- END UI-GRID SPINNER -->\n <canvas class="chart chart-pie" chart-data="system.memory.values" chart-labels="system.memory.labels" chart-legend="true">\n </canvas>\n </div>\n </div>\n </div>\n <div class="col-md-6 col-sm-6">\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-pie-chart font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_DISK\' | translate }} (<b>{{ \'APPLICATION_TOTAL\' | translate }}</b>: {{system.mount.size}} GB)</a> </span>\n </div>\n <div class="actions">\n <div class="portlet-input input-inline input-medium">\n <div class="input-group">\n <ui-select data-ng-model="system.mount" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_DISK\' | translate}}">{{$select.selected.mount}}</ui-select-match>\n <ui-select-choices repeat="disk in system.disks | filter: $select.search">\n <div ng-bind-html="disk.mount | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="input-group-btn">\n <button class="btn btn-default" href="#" data-ng-click="initView()" data-ng-disabled="loading">\n <i class="icon-refresh"></i>\n </button>\n </span>\n </div>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="disk-spinner" spinner-start-active="true"></span>\n <!-- END UI-GRID SPINNER -->\n <canvas class="chart chart-pie" chart-data="system.mount.values" chart-labels="system.mount.labels" chart-legend="true">\n </canvas>\n <!-- END Portlet PORTLET-->\n </div>\n </div>\n </div>\n </div>\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-pie-chart font-green-sharp"></i>\n <span class="caption-subject">CPU (<b>{{ \'APPLICATION_NUMBER_OF_CORES\' | translate }}</b>: {{system.cpu.cores.length}}, <b>MOTION</b>: {{system.cpu.motion}} % )</a> </span>\n </div>\n <div class="actions">\n <a class="btn btn-default" href="#" data-ng-click="initView()" data-ng-disabled="loading">\n <i class="icon-refresh"></i>\n </a>\n </div>\n </div>\n <div class="portlet-body">\n <div class="row">\n <div class="col-md-2 col-sm-4" data-ng-repeat="cpu in system.cpu.cores">\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="cpu-spinner" spinner-start-active="false"></span>\n <!-- END UI-GRID SPINNER -->\n <canvas class="chart chart-doughnut" chart-data="cpu.values" chart-labels="cpu.labels" chart-colours="cpu.colours" chart-legend="true">\n </canvas>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/setting/system/view/logs/logs.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getLog()">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_LOGS\' | translate}}\n </div>\n <div class="actions">\n <div class="portlet-input input-inline input-medium">\n <div class="input-group">\n <ui-select data-ng-model="item.filename" theme="bootstrap" on-select="getLog()" required>\n <ui-select-match placeholder="{{\'APPLICATION_FILENAME\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices position=\'down\' repeat="logfile in logfiles | filter: $select.search">\n <div ng-bind-html="logfile | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="input-group-btn">\n <button class="btn btn-default" href="#" data-ng-click="getLog()" data-ng-disabled="loading">\n <i class="icon-refresh"></i>\n </button>\n </span>\n </div>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <pre class="log-pre" schroll-bottom="log">\n <!-- BEGIN LOGS SPINNER -->\n <span us-spinner spinner-key="logs-spinner" spinner-start-active="true"></span>\n <!-- END LOGS SPINNER -->\n {{log}}\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/setting/system/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-settings"></i>\n <a href="#">{{ \'APPLICATION_SETTINGS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-pie-chart"></i>\n <a href="#">{{ \'APPLICATION_SYSTEM\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img src="assets/images/media/customize.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{ \'APPLICATION_SYSTEM\' | translate }}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.setting.system.view.general\')}">\n <a ng-href="/setting/system/view/general">\n <i class="icon-pie-chart"></i>\n {{ \'APPLICATION_GENERAL\' | translate }} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.setting.system.view.logs\')}">\n <a ng-href="/setting/system/view/logs">\n <i class="icon-list"></i>\n {{ \'APPLICATION_LOGS\' | translate }} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.setting.system.view.console\')}">\n <a ng-href="/setting/system/view/console">\n <i class="icon-chemistry"></i>\n {{ \'APPLICATION_ASTERISK_CONSOLE\' | translate }} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/setting/update/list/landing.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-settings"></i>\n <a href="#">{{ \'APPLICATION_SETTINGS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-cloud-download"></i>\n <a href="#">{{ \'APPLICATION_UPDATES\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- BEGIN PAGE CONTENT-->\n <div class="row" data-ng-init="initCounter()">\n <div class="col-md-12 page-500">\n <div class="number">\n <timer interval="1000" countdown="360">{{countdown}}</timer>\n </div>\n <div class="details">\n <h3>Wait! xCALLY Motion update in progess...</h3>\n <p>\n We are updating it!<br/>\n xCALLY Motion Team<br/><br/>\n </p>\n </div>\n </div>\n </div>\n <!-- END PAGE CONTENT-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/setting/update/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-settings"></i>\n <a href="#">{{ \'APPLICATION_SETTINGS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-cloud-download"></i>\n <a href="#">{{ \'APPLICATION_UPDATES\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <!-- <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-cloud-download font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_UPDATES\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <a class="btn btn-default" href="#" data-ng-click="pull()">\n <i class="icon-cloud-download"></i> {{ \'APPLICATION_UPDATE\' | translate }}\n </a>\n </div>\n </div>\n <div class="portlet-body" data-ng-init="initView()"> -->\n <!-- START TABLE -->\n <!-- <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div> -->\n <!-- END TABLE -->\n <!-- </div> -->\n <!-- END Portlet PORTLET-->\n <!-- </div> -->\n <div class="row">\n <div class="col-md-12">\n <!-- BEGIN INLINE NOTIFICATIONS PORTLET-->\n <div class="portlet">\n <div class="portlet-title">\n <div class="caption">\n <i class="icon-cloud-download font-green-sharp"></i>{{ \'APPLICATION_UPDATE\' | translate }}\n </div>\n <div class="actions">\n <button class="btn btn-default" href="#" data-ng-click="pull()">\n <i class="icon-cloud-download"></i> {{ \'APPLICATION_UPDATE\' | translate }}\n </button>\n </div>\n </div>\n <div class="portlet-body" data-ng-init="initView()">\n <div class="row margin-bottom-40">\n <!-- Pricing -->\n <div class="col-md-6">\n <div class="pricing hover-effect current-version">\n <div class="pricing-head">\n <h3>{{ \'APPLICATION_CURRENT_VERSION\' | translate }} <span>\n {{ \'APPLICATION_LAST_PERFORMED_UPDATE\' | translate }} </span>\n </h3>\n <h4>v. {{currentVersion.version}}</h4>\n </div>\n <ul class="pricing-content list-unstyled">\n <li>\n <i class="icon-clock"></i><b> {{\'APPLICATION_RELEASED_AT\' | translate}}:</b> {{currentVersion.createdAt}}\n </li>\n <li>\n <i class="icon-list"></i> <a target="_blank" href="https://wiki.xcallymotion.com/display/XMD/Motion+GUI#MotionGUI-Version{{currentVersion.version}}">{{\'APPLICATION_CHANGELOG\' | translate}}</a>\n </li>\n </ul>\n <div class="pricing-footer">\n </div>\n </div>\n </div>\n <div class="col-md-6">\n <div class="pricing hover-effect" data-ng-class="{\'disabled-update\':currentVersion.version==latestVersion.version}">\n <div class="pricing-head">\n <h3>{{ \'APPLICATION_LATEST_VERSION\' | translate }} <span>\n {{ \'APPLICATION_LAST_SOFTWARE_UPDATE_AVAILABLE\' | translate }} </span>\n </h3>\n <h4>v. {{latestVersion.version}}</h4>\n </div>\n <ul class="pricing-content list-unstyled">\n <li>\n <i class="icon-clock"></i><b> {{\'APPLICATION_RELEASED_AT\' | translate}}:</b> {{latestVersion.createdAt}}\n </li>\n <li>\n <i class="icon-list"></i> <a target="_blank" href="https://wiki.xcallymotion.com/display/XMD/Motion+GUI#MotionGUI-Version{{latestVersion.version}}">{{\'APPLICATION_CHANGELOG\' | translate}}</a>\n </li>\n </ul>\n <div class="pricing-footer">\n </div>\n </div>\n </div>\n <!--//End Pricing -->\n </div>\n </div>\n </div>\n <!-- END INLINE NOTIFICATIONS PORTLET-->\n </div>\n </div>\n\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'), +a.put("app/setting/update/list/list.pull.html",'<div class="modal-header">\n <button data-ng-if="modal.dismissable" type="button" data-ng-click="$dismiss()" class="close">×</button>\n <h4 ng-if="modal.title" ng-bind="modal.title" class="modal-title"></h4>\n</div>\n<div class="modal-body">\n <p data-ng-if="modal.text" data-ng-bind="modal.text"></p>\n <div data-ng-if="modal.html" data-ng-bind-html="modal.html"></div>\n</div>\n<div class="modal-footer">\n <button data-ng-repeat="button in modal.buttons" data-ng-class="button.classes" data-ng-click="button.click($event)" data-ng-bind="button.text" class="btn"></button>\n</div>\n'),a.put("app/square/odbc/list/list.create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_ODBC\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DSN -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.dsn.$touched || form.$submitted) && form.dsn.$invalid}">\n <label class="control-label">{{\'APPLICATION_ODBC\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="dsn" placeholder="DRIVER=MySQL;SERVER=127.0.0.1;UID=xcall;PWD=password;DATABASE=motion" class="form-control" data-ng-model="item.dsn" required/>\n <p class="help-block">Es. DRIVER=MySQL;SERVER=127.0.0.1;UID=xcall;PWD=password;DATABASE=motion</p>\n <span data-ng-show="(form.dsn.$touched || form.$submitted) && form.dsn.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END DSN -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/square/odbc/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-superscript"></i>\n <a>Cally ²</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="#">{{ \'APPLICATION_ODBCS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ODBCS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <button class="btn green-jungle " ng-click="createItem()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_ODBC\' | translate }}\n </button>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/square/odbc/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getOdbc()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-superscript"></i>\n <a>Cally ²</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="/square/odbc/list">{{ \'APPLICATION_ODBCS\' | translate }}</a>\n <i data-ng-show="odbc" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="odbc">\n <a href="#">{{odbc.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/odbc.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{odbc.name}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.square.odbc.view.settings\')}">\n <a data-ng-href="/square/odbc/view/{{odbc.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/square/odbc/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_ODBC\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateOdbc()" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="odbc.name" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DSN -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.odbc.dsn.$touched || forms.odbc.$submitted) && forms.odbc.dsn.$invalid}">\n <label class="control-label">{{\'APPLICATION_ODBC\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="dsn" placeholder="{{\'APPLICATION_DSN\' | translate}}" class="form-control" data-ng-model="odbc.dsn" required/>\n <p class="help-block">Es. DRIVER=MySQL;SERVER=127.0.0.1;UID=xcall;PWD=password;DATABASE=motion</p>\n <span data-ng-show="(forms.odbc.dsn.$touched || forms.odbc.$submitted) && forms.odbc.dsn.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END DSN -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="odbc.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ADVANCED TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/square/project/list/list.create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_PROJECT\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/square/project/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-superscript"></i>\n <a>Cally ²</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-slack"></i>\n <a href="#">{{ \'APPLICATION_PROJECTS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_PROJECTS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <button class="btn green-jungle " ng-click="createItem()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_PROJECT\' | translate }}\n </button>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/square/project/view/projectNotes.modal.html",'<div class="yellow-notes">\n<div class="modal-header">\n <button ng-if="modal.dismissable" type="button" ng-click="$dismiss()" class="close">×</button>\n <h4 class="modal-title">{{\'APPLICATION_NOTES\' | translate}}</h4>\n</div>\n<div class="modal-body" style="text-align:center;">\n<textarea name="name" class="notes-textarea" placeholder="{{\'MESSAGE_INSERT_YOUR_TEXT_HERE\' | translate}}" data-ng-model="notes.value"></textarea>\n</div>\n<div class="modal-footer" >\n <button class="btn green-haze" type="button" ng-click="close()">{{ \'APPLICATION_SAVE\' | translate }}</button>\n</div>\n</div>\n'),a.put("app/square/project/view/view.html",'<div class="row" data-ng-init="getProject()">\n <div class="col-md-12">\n <div class="page-bar" style="margin-bottom: 0px;">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-superscript"></i>\n <a>Cally ²</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-slack"></i>\n <a href="/square/projects/list">{{ \'APPLICATION_PROJECTS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <a ng-href="/square/projects/view/{{squareProject.id}}">{{squareProject.name}}</a>\n </li>\n </ul>\n </div>\n\n <h4 class="text-success bold"> {{squareProject.name}} <button class="btn btn-xs yellow-saffron" type="button" data-ng-click="editNotes()"><i class="icon-note"></i> {{\'APPLICATION_NOTES\' | translate}}</button></h4> <p class="text-muted"> {{squareProject.description}} </p>\n\n <div id="geEditor" class="geEditor"></div>\n </div>\n</div>\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n\n </div>\n</div>\n\n<!-- END PAGE CONTENT-->\n<script></script>\n'),a.put("app/square/realtime/view/general/general.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="init()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns class="ui-grid" ui-grid-pagination ui-grid-auto-resize>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/square/realtime/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-superscript"></i>\n <a href="#">Cally ²</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-energy"></i>\n <a href="/square/realtime/view/general">{{ \'APPLICATION_REALTIME\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <div>\n <nav class="navbar navbar-default" role="navigation">\n <div class="collapse navbar-collapse">\n <ul class="nav navbar-nav">\n <li data-ng-class="{\'active\': $state.is(\'main.square.realtime.view.general\')}">\n <a href="/square/realtime/view/general">\n {{\'APPLICATION_GENERAL\' | translate}}\n </a>\n </li>\n </ul>\n </div>\n </nav>\n </div>\n <div ui-view></div>\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/square/recording/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-superscript"></i>\n <a href="#">Cally ²</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-microphone"></i>\n <a href="#">{{ \'APPLICATION_RECORDINGS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="fa fa-play font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_RECORDINGS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/staff/agent/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-puzzle"></i>\n <a href="#">{{ \'APPLICATION_STAFF\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-people"></i>\n <a href="#">{{ \'APPLICATION_AGENTS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-people font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_AGENTS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group" data-ng-show="Auth.getCurrentUser().role === \'admin\'">\n <button type="button" class="btn green-jungle" data-toggle="dropdown" data-hover="dropdown" data-delay="1000" data-close-others="true" aria-expanded="true">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_AGENT\' | translate }} <i class="fa fa-angle-down"></i>\n </button>\n <ul class="dropdown-menu" role="menu">\n <li>\n <a href="/staff/agents/wizard">\n Standard\n </a>\n </li>\n <li>\n <a href="/staff/agents/bulk">\n {{ \'APPLICATION_BULK\' | translate }}\n </a>\n </li>\n </ul>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/staff/agent/view/view.account.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_PROFILE\' | translate}} {{ \'APPLICATION_ACCOUNT\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li data-ng-class="{\'active\': Auth.isAdmin() || userModules[4]}" data-ng-show="Auth.isAdmin() || userModules[4]">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_PERSONAL_INFO\' | translate}}</a>\n </li>\n <li data-ng-show="Auth.isAdmin() || userModules[4]">\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{ \'APPLICATION_CHANGE_AVATAR\' | translate}}</a>\n </li>\n <li data-ng-show="Auth.isAdmin() || userModules[4] || agent.id === Auth.getCurrentUser().id" data-ng-class="{\'active\': !Auth.isAdmin() && agent.id === Auth.getCurrentUser().id}">\n <a href="#" data-target="#tab_1_3" data-toggle="tab">{{ \'APPLICATION_CHANGE_PASSWORD\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- PERSONAL INFO TAB -->\n <div class="tab-pane" data-ng-class="{\'active\': Auth.isAdmin() || userModules[4]}" data-ng-show="Auth.isAdmin() || userModules[4]" id="tab_1_1">\n <form name="forms.info" data-ng-submit="forms.info.$valid && updateItem()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$invalid}">\n <label class="control-label">{{\'APPLICATION_FULLNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="fullname" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="agent.fullname" required/>\n <span data-ng-show="(forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}</label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="agent.name" disabled/>\n </div>\n <!-- END USERNAME -->\n\n <!-- START EMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="email" name="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" class="form-control" data-ng-model="agent.email" required/>\n <span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.email" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END EMAIL -->\n\n <!-- START PHONE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.phone.$touched || forms.info.$submitted) && forms.info.phone.$invalid}">\n <label class="control-label">{{\'APPLICATION_PHONE\' | translate}}</label>\n <input type="text" name="phone" placeholder="{{\'APPLICATION_PHONE\' | translate}}" class="form-control" data-ng-model="agent.phone"/>\n </div>\n <!-- END PHONE -->\n\n <!-- START MOBILE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.mobile.$touched || forms.info.$submitted) && forms.info.mobile.$invalid}">\n <label class="control-label">{{\'APPLICATION_MOBILE\' | translate}}</label>\n <input type="text" name="mobile" placeholder="{{\'APPLICATION_MOBILE\' | translate}}" class="form-control" data-ng-model="agent.mobile"/>\n </div>\n <!-- END MOBILE -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="agent.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START LOGIN IN PAUSE -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_LOGIN_IN_PAUSE\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="agent.loginInPause"\n type="checkbox"\n name="auth"\n switch-active="{{ recordSwitch.isActive }}"\n switch-on-text="{{ recordSwitch.onText }}"\n switch-off-text="{{ recordSwitch.offText }}"\n switch-on-color="{{ recordSwitch.onColor }}"\n switch-off-color="{{ recordSwitch.offColor }}"\n switch-animate="{{ recordSwitch.animate }}"\n switch-size="{{ recordSwitch.size }}"\n switch-label="{{ recordSwitch.label }}"\n switch-icon="{{ recordSwitch.icon }}"\n switch-radio-off="{{ recordSwitch.radioOff }}"\n switch-label-width="{{ recordSwitch.labelWidth }}"\n switch-handle-width="{{ recordSwitch.handleWidth }}">\n </div>\n <!-- END LOGIN IN PAUSE -->\n\n <!-- START WEB BAR -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_SHOW_WEB_BAR\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="agent.showWebBar"\n type="checkbox"\n name="auth"\n switch-active="{{ recordSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ recordSwitch.onColor }}"\n switch-off-color="{{ recordSwitch.offColor }}"\n switch-animate="{{ recordSwitch.animate }}"\n switch-size="{{ recordSwitch.size }}"\n switch-label="{{ recordSwitch.label }}"\n switch-icon="{{ recordSwitch.icon }}"\n switch-radio-off="{{ recordSwitch.radioOff }}"\n switch-label-width="{{ recordSwitch.labelWidth }}"\n switch-handle-width="{{ recordSwitch.handleWidth }}">\n </div>\n <!-- END WEB BAR -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END PERSONAL INFO TAB -->\n <!-- CHANGE AVATAR TAB -->\n <div class="tab-pane" data-ng-show="Auth.isAdmin() || userModules[4]" id="tab_1_2">\n <form action="#" role="form">\n <div class="form-group">\n <div class="fileinput fileinput-new" data-provides="fileinput">\n <div class="fileinput-new thumbnail" style="width: 200px; height: 150px;">\n <img ng-src="assets/images/media/noProfileImage.png" alt=""/>\n </div>\n <div class="fileinput-preview fileinput-exists thumbnail" style="max-width: 200px; max-height: 150px;">\n </div>\n <div>\n <span class="btn default btn-file" data-ng-show="!uploader.queue[0]">\n <span> {{ \'APPLICATION_SELECT_IMAGE\' | translate }} </span>\n <input type="file" nv-file-select="" uploader="uploader" /><br/>\n </span>\n <button type="button" class="btn default" data-ng-show="uploader.queue[0]" data-dismiss="fileinput" ng-click="uploader.queue[0].remove()">\n {{ \'APPLICATION_REMOVE\' | translate }}\n </button>\n <button type="button" class="btn green-haze" data-ng-show="uploader.queue[0]" data-ng-click="uploader.queue[0].upload()" ng-disabled="uploader.queue[0].isReady || uploader.queue[0].isUploading || uploader.queue[0].isSuccess">\n {{ \'APPLICATION_CONFIRM\' | translate }}\n </button>\n </div>\n <p>\n </br> {{ \'MESSAGE_SUPPORTED_FORMATS\' | translate }} <b>jpg, png, jpeg</b>.\n </p>\n </div>\n </div>\n </form>\n <div class="row">\n <div class="col-md-2">\n <table class="table" border="0">\n <tbody>\n <tr data-ng-repeat="item in uploader.queue">\n <td style="border-top-style:none">\n <strong>\n {{ item.file.name }}\n </strong>\n </td>\n <td data-ng-show="uploader.isHTML5" nowrap style="border-top-style:none">\n {{ item.file.size/1024/1024|number:2 }} MB\n </td>\n <td nowrap style="border-top-style:none">\n <button type="button" class="btn btn-danger btn-xs" data-ng-click="item.remove()">\n <span class="glyphicon glyphicon-trash"></span> Remove\n </button>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n <!-- END CHANGE AVATAR TAB -->\n <!-- CHANGE PASSWORD TAB -->\n <div class="tab-pane" data-ng-show="Auth.isAdmin() || userModules[4] || agent.id === Auth.getCurrentUser().id" data-ng-class="{\'active\': !Auth.isAdmin() && agent.id === Auth.getCurrentUser().id}" id="tab_1_3">\n <form name="forms.changePwd" data-ng-submit="forms.changePwd.$valid && updatePassword()" novalidate>\n <!-- START CURRENT PWD -->\n <div class="form-group" data-ng-if="!(Auth.isAdmin() || userModules[4])" data-ng-class="{\'has-error\': (forms.changePwd.current_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.current_pwd.$invalid}">\n <label class="control-label">{{\'APPLICATION_CURRENT_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="current_pwd" placeholder="{{\'APPLICATION_CURRENT_PASSWORD\' | translate}}" class="form-control" data-ng-model="agent.currentPwd" required/>\n <span data-ng-show="(forms.changePwd.current_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.current_pwd.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CURRENT PWD -->\n <!-- START NEW PWD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.changePwd.new_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.new_pwd.$invalid}">\n <label class="control-label">{{\'APPLICATION_NEW_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="new_pwd" placeholder="{{\'APPLICATION_NEW_PASSWORD\' | translate}}" class="form-control" data-ng-model="agent.newPwd" data-ng-pattern="setting.securePassword ? settings.patternPassword : settings.patternPasswordLight" required/>\n <span class="help-block">\n {{setting.securePassword ? \'MESSAGE_PASSWORD_FORMAT\' : \'MESSAGE_PASSWORD_LIGHT_FORMAT\' | translate}}\n </span>\n <span data-ng-show="(forms.changePwd.current_pwd.$touched || forms.info.$submitted) && forms.changePwd.current_pwd.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n <span data-ng-show="(forms.changePwd.new_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.new_pwd.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NEW PWD -->\n <!-- START RE-NEW PWD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.changePwd.re_new_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.re_new_pwd.$invalid}">\n <label class="control-label">{{\'APPLICATION_RE_TYPE_NEW_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="re_new_pwd" placeholder="{{\'APPLICATION_RE_TYPE_NEW_PASSWORD\' | translate}}" class="form-control" data-ng-model="agent.reNewPwd" nx-equal="agent.newPwd" required/>\n <span data-ng-show="(forms.changePwd.new_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.new_pwd.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END RE-NEW PWD -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END CHANGE PASSWORD TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'), +a.put("app/staff/agent/view/view.chat.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_PROFILE\' | translate}} {{ \'APPLICATION_CHAT\' | translate}}</span>\n </div>\n </div>\n\n <div class="portlet-body">\n <!-- START CHAT TAB -->\n <form name="form" data-ng-submit="patchItem()" novalidate>\n <!-- START CAPACITY -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.capacity.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_CAPACITY\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" name="chatCapacity" placeholder="{{\'APPLICATION_CAPACITY\' | translate}}" class="form-control" data-ng-model="agent.chatCapacity" min="0" required/>\n <span class="help-block">\n {{\'MESSAGE_ZERO_MEANS_UNLIMITED\' | translate}}\n </span>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CAPACITY -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n <!-- END CHAT TAB -->\n </div>\n </div>\n </div>\n</div>\n</div>\n'),a.put("app/staff/agent/view/view.fax.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_PROFILE\' | translate}} {{ \'APPLICATION_FAX\' | translate}}</span>\n </div>\n </div>\n\n <div class="portlet-body">\n <!-- START CHAT TAB -->\n <form name="form" data-ng-submit="patchItem()" novalidate>\n <!-- START CAPACITY -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.capacity.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_CAPACITY\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" name="faxCapacity" placeholder="{{\'APPLICATION_CAPACITY\' | translate}}" class="form-control" data-ng-model="agent.faxCapacity" min="0" required/>\n <span class="help-block">\n {{\'MESSAGE_ZERO_MEANS_UNLIMITED\' | translate}}\n </span>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CAPACITY -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n <!-- END CHAT TAB -->\n </div>\n </div>\n </div>\n</div>\n</div>\n'),a.put("app/staff/agent/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-puzzle"></i>\n <a href="#">{{ \'APPLICATION_STAFF\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-people"></i>\n <a href="/staff/agents/list">{{ \'APPLICATION_AGENTS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <a href="#">{{agent.fullname}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-userpic">\n <img ng-src="api/users/avatar/{{agent.userpic ? agent.userpic : \'unknown_avatar\'}}" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n\n <!-- START SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{agent.fullname}}\n </div>\n <div class="profile-usertitle-job">\n {{agent.role}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.staff.agents.view.account\')}">\n <a data-ng-href="/staff/agents/view/{{agent.id}}/account">\n <i class="icon-user"></i>\n {{ \'APPLICATION_ACCOUNT\' | translate}} </a>\n </li>\n\n <li data-ng-class="{active: $state.includes(\'main.staff.agents.view.queues\')}" data-ng-show="Auth.isAdmin() || userModules[7]">\n <a data-ng-href="/staff/agents/view/{{agent.id}}/queues/voice">\n <i class="icon-docs"></i>\n {{ \'APPLICATION_QUEUES\' | translate}} </a>\n </li>\n\n <li data-ng-class="{active: $state.is(\'main.staff.agents.view.voice\')}" data-ng-show="Auth.isAdmin() || userModules[7]">\n <a data-ng-href="/staff/agents/view/{{agent.id}}/voice">\n <i class="icon-earphones-alt"></i>\n {{ \'APPLICATION_VOICE\' | translate}} </a>\n </li>\n\n <li data-ng-class="{active: $state.is(\'main.staff.agents.view.chat\'),\'disabled-link\':!license.chat}" data-ng-show="Auth.isAdmin() || userModules[8]">\n <a data-ng-href="{{license.chat ? \'/staff/agents/view/\'+agent.id+\'/chat\' : \'javascript:;\'}}" class="disable-target">\n <i class="icon-bubble"></i>\n {{ \'APPLICATION_CHAT\' | translate}} </a>\n </li>\n\n <!-- <li data-ng-class="{active: $state.is(\'main.staff.agents.view.mail\'),\'disabled-link\':!license.mail}" data-ng-show="Auth.isAdmin() || userModules[9]">\n <a data-ng-href="{{license.mail ? \'/staff/agents/view/\'+agent.id+\'/mail\' : \'javascript:;\'}}" class="disable-target">\n <i class="icon-envelope"></i>\n {{ \'APPLICATION_MAIL\' | translate}} </a>\n </li> -->\n\n <!-- <li data-ng-class="{active: $state.is(\'main.staff.agents.view.fax\'),\'disabled-link\':!license.fax}" data-ng-show="Auth.isAdmin() || userModules[10]">\n <a data-ng-href="{{license.fax ? \'/staff/agents/view/\'+agent.id+\'/fax\' : \'javascript:;\'}}" class="disable-target">\n <i class="fa fa-fax"></i>\n {{ \'APPLICATION_FAX\' | translate}} </a>\n </li> -->\n\n <!-- <li data-ng-class="{active: $state.is(\'main.staff.agents.view.sms\'),\'disabled-link\':!license.messaging}" data-ng-show="Auth.isAdmin() || userModules[11]">\n <a data-ng-href="{{license.messaging ? \'/staff/agents/view/\'+agent.id+\'/sms\' : \'javascript:;\'}}" class="disable-target">\n <i class=" glyphicon glyphicon-comment "></i>\n {{ \'APPLICATION_SMS\' | translate}} </a>\n </li> -->\n <!-- <li data-ng-class="{active: $state.is(\'main.staff.agents.view.openchannel\'),\'disabled-link\':!license.openchannel}" data-ng-show="Auth.isAdmin() || userModules[20]">\n <a data-ng-href="{{license.openchannel ? \'/staff/agents/view/\'+agent.id+\'/openchannel\' : \'javascript:;\'}}" class="disable-target">\n <i class=" icon-globe "></i>\n {{ \'APPLICATION_OPEN_CHANNEL\' | translate}} </a>\n </li> -->\n\n <li data-ng-class="{active: $state.is(\'main.staff.agents.view.motionbar\')}" data-ng-show="Auth.isAdmin()">\n <a data-ng-href="/staff/agents/view/{{agent.id}}/motionbar">\n <i class="icon-screen-desktop"></i>\n {{ \'APPLICATION_MOTION_BAR\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/staff/agent/view/view.mail.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_PROFILE\' | translate}} {{ \'APPLICATION_MAIL\' | translate}}</span>\n </div>\n </div>\n\n <div class="portlet-body">\n <!-- START CHAT TAB -->\n <form name="form" data-ng-submit="patchItem()" novalidate>\n <!-- START CAPACITY -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.capacity.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_CAPACITY\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" name="mailCapacity" placeholder="{{\'APPLICATION_CAPACITY\' | translate}}" class="form-control" data-ng-model="agent.mailCapacity" min="0" required/>\n <span class="help-block">\n {{\'MESSAGE_ZERO_MEANS_UNLIMITED\' | translate}}\n </span>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CAPACITY -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n <!-- END CHAT TAB -->\n </div>\n </div>\n </div>\n</div>\n</div>\n'),a.put("app/staff/agent/view/view.motionbar.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_PROFILE\' | translate}} {{ \'APPLICATION_MOTION_BAR\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li data-ng-class="{\'active\': Auth.isAdmin()}" data-ng-show="Auth.isAdmin()">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n <li data-ng-show="Auth.isAdmin()">\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{ \'APPLICATION_CALL_FORWARDING\' | translate}}</a>\n </li>\n <li data-ng-show="Auth.isAdmin()">\n <a href="#" data-target="#tab_1_3" data-toggle="tab">{{ \'APPLICATION_ADVANCED\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- START GENERAL TAB -->\n <div class="tab-pane" data-ng-class="{\'active\': Auth.isAdmin()}" data-ng-show="Auth.isAdmin()" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateItem()" novalidate>\n\n <!-- START ENABLE_SETTINGS -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_ENABLE_SETTINGS\' | translate}}</label><br>\n <input\n bs-switch\n ng-model="agent.phoneBarEnableSettings"\n type="checkbox"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <!-- END ENABLE_SETTINGS -->\n\n <!-- START AUTO_ANSWER -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_AUTO_ANSWER\' | translate}}</label><br>\n <input\n bs-switch\n ng-model="agent.phoneBarAutoAnswer"\n type="checkbox"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <!-- END AUTO_ANSWER -->\n\n <!-- START AUTO ANSWER DELAY -->\n <div class="form-group" data-ng-if="agent.phoneBarAutoAnswer" data-ng-class="{\'has-error\': (forms.general.phonebarAutoAnswerDelay.$touched || forms.general.$submitted) && forms.general.phonebarAutoAnswerDelay.$invalid}">\n <label class="control-label">{{\'APPLICATION_AUTO_ANSWER_DELAY\' | translate}} [sec]<span class="required" aria-required="true">*</span></label>\n <input type="number" min="0" name="phonebarAutoAnswerDelay" placeholder="{{\'APPLICATION_AUTO_ANSWER_DELAY\' | translate}}" class="form-control" data-ng-model="agent.phonebarAutoAnswerDelay" required/>\n <span data-ng-show="(forms.general.phonebarAutoAnswerDelay.$touched || forms.general.$submitted) && forms.general.phonebarAutoAnswerDelay.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="forms.general.phonebarAutoAnswerDelay.$error.max || forms.general.phonebarAutoAnswerDelay.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}} (min 0).\n </span>\n </div>\n <!-- END AUTO ANSWER DELAY -->\n\n <!-- START ENABLE_RECORDING -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_ENABLE_RECORDING\' | translate}}</label><br>\n <input\n bs-switch\n ng-model="agent.phoneBarEnableRecording"\n type="checkbox"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <!-- END ENABLE_RECORDING -->\n\n <!-- START SHOW_OMNI_DESKTOP -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_SHOW_OMNI_DESKTOP_BUTTON\' | translate}}</label><br>\n <input\n bs-switch\n ng-model="agent.phoneBarShowOmniDesktop"\n type="checkbox"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <!-- END SHOW_OMNI_DESKTOP -->\n\n <!-- START RINGINUSE -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_RINGINUSE\' | translate}}</label><br>\n <input\n bs-switch\n ng-model="agent.phoneBarRingInUse"\n type="checkbox"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <!-- END RINGINUSE -->\n\n <!-- START DND -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DND\' | translate}}</label><br>\n <input\n bs-switch\n ng-model="agent.phoneBarDnd"\n type="checkbox"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <!-- END DND -->\n\n <!-- START UNANSWERED_CALL_BADGE -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_UNANSWERED_CALL_BADGE\' | translate}}</label><br>\n <input\n bs-switch\n ng-model="agent.phoneBarUnansweredCallBadge"\n type="checkbox"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <!-- END UNANSWERED_CALL_BADGE -->\n\n <!-- START ENABLE_DTMF_TONE -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_ENABLE_DTMF_TONE\' | translate}}</label><br>\n <input\n bs-switch\n ng-model="agent.phonebarEnableDtmfTone"\n type="checkbox"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <!-- END ENABLE_DTMF_TONE -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n <!-- START CALL FORWARDING TAB -->\n <div class="tab-pane" data-ng-show="Auth.isAdmin()" id="tab_1_2">\n <form name="forms.callForwarding" data-ng-submit="forms.callForwarding.$valid && updateItem()" novalidate>\n\n <!-- START UNCONDITIONAL -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_UNCONDITIONAL\' | translate}}</label><br>\n <input\n bs-switch\n ng-model="agent.phoneBarUnconditional"\n type="checkbox"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <!-- END UNCONDITIONAL -->\n\n\n <!-- START UNCONDITIONAL NUMBER -->\n <div class="form-group" data-ng-if="agent.phoneBarUnconditional" data-ng-class="{\'has-error\': (forms.callForwarding.phoneBarUnconditionalNumber.$touched || forms.callForwarding.$submitted) && forms.callForwarding.phoneBarUnconditionalNumber.$invalid}">\n <input type="text" name="phoneBarUnconditionalNumber" placeholder="{{\'APPLICATION_NUMBER\' | translate}}" class="form-control" data-ng-model="agent.phoneBarUnconditionalNumber" required/>\n <span class="help-block">\n <!-- {{ \'DESCRIPTION_VOICE_HOST\' | translate }} -->\n </span>\n <span data-ng-show="(forms.callForwarding.phoneBarUnconditionalNumber.$touched || forms.callForwarding.$submitted) && forms.callForwarding.phoneBarUnconditionalNumber.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END UNCONDITIONAL NUMBER -->\n\n <!-- START NO REPLY -->\n <!-- <div class="form-group">\n <label class="control-label">{{\'APPLICATION_NO_REPLY\' | translate}}</label><br>\n <input\n bs-switch\n ng-model="agent.phoneBarNoReply"\n type="checkbox"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div> -->\n <!-- END NO REPLY -->\n\n <!-- START NO REPLY -->\n <!-- <div class="form-group" data-ng-if="agent.phoneBarNoReply" data-ng-class="{\'has-error\': (forms.callForwarding.phoneBarNoReplyNumber.$touched || forms.callForwarding.$submitted) && forms.callForwarding.phoneBarNoReplyNumber.$invalid}">\n <input type="text" name="phoneBarNoReplyNumber" placeholder="{{\'APPLICATION_NUMBER\' | translate}}" class="form-control" data-ng-model="agent.phoneBarNoReplyNumber" required/>\n <span class="help-block">\n </span>\n <span data-ng-show="(forms.callForwarding.phoneBarNoReplyNumber.$touched || forms.callForwarding.$submitted) && forms.callForwarding.phoneBarNoReplyNumber.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div> -->\n <!-- END REPLY -->\n\n <!-- START BUSY -->\n <!-- <div class="form-group">\n <label class="control-label">{{\'APPLICATION_BUSY\' | translate}}</label><br>\n <input\n bs-switch\n ng-model="agent.phoneBarBusy"\n type="checkbox"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div> -->\n <!-- END BUSY -->\n\n <!-- START BUSY NUMBER -->\n <!-- <div class="form-group" data-ng-if="agent.phoneBarBusy" data-ng-class="{\'has-error\': (forms.callForwarding.phoneBarBusyNumber.$touched || forms.callForwarding.$submitted) && forms.callForwarding.phoneBarBusyNumber.$invalid}">\n <input type="text" name="phoneBarBusyNumber" placeholder="{{\'APPLICATION_NUMBER\' | translate}}" class="form-control" data-ng-model="agent.phoneBarBusyNumber" required/>\n <span class="help-block">\n </span>\n <span data-ng-show="(forms.callForwarding.phoneBarBusyNumber.$touched || forms.callForwarding.$submitted) && forms.callForwarding.phoneBarBusyNumber.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div> -->\n <!-- END BUSY NUMBER -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END CALL FORWARDING TAB -->\n <!-- START ADVANCED TAB -->\n <div class="tab-pane" data-ng-show="Auth.isAdmin()" id="tab_1_3">\n <form name="forms.advanced" data-ng-submit="forms.advanced.$valid && updateItem()" novalidate>\n\n <!-- START ENABLE REMOTE CONTROL -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_REMOTE_CONTROL\' | translate}}</label><br>\n <input\n bs-switch\n ng-model="agent.phoneBarRemoteControl"\n type="checkbox"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <!-- END ENABLE REMOTE CONTROL -->\n\n\n <!-- START REMOTE CONTROL PORT -->\n <div class="form-group" data-ng-if="agent.phoneBarRemoteControl" data-ng-class="{\'has-error\': (forms.advanced.phoneBarRemoteControlPort.$touched || forms.advanced.$submitted) && forms.advanced.phoneBarRemoteControlPort.$invalid}">\n <label class="control-label">{{\'APPLICATION_REMOTE_CONTROL\' | translate}} {{\'APPLICATION_PORT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="1" name="phoneBarRemoteControlPort" placeholder="{{\'APPLICATION_REMOTE_CONTROL\' | translate}} {{\'APPLICATION_PORT\' | translate}}" class="form-control" data-ng-model="agent.phoneBarRemoteControlPort" required/>\n <span class="help-block">Default: 9888</span>\n <span data-ng-show="(forms.advanced.phoneBarRemoteControlPort.$touched || forms.advanced.$submitted) && forms.advanced.phoneBarRemoteControlPort.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="forms.advanced.phoneBarRemoteControlPort.$error.max || forms.advanced.phoneBarRemoteControlPort.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </div>\n <!-- END REMOTE CONTROL PORT -->\n\n <!-- START SIP EXPIRES -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.phoneBarExpires.$touched || forms.advanced.$submitted) && forms.advanced.phoneBarExpires.$invalid}">\n <label class="control-label">SIP {{\'APPLICATION_EXPIRES\' | translate}} [sec]<span class="required" aria-required="true">*</span></label>\n <input type="number" min="1" name="phoneBarExpires" placeholder="SIP {{\'APPLICATION_EXPIRES\' | translate}}" class="form-control" data-ng-model="agent.phoneBarExpires" required/>\n <span class="help-block">Default: 120</span>\n <span data-ng-show="(forms.advanced.phoneBarExpires.$touched || forms.advanced.$submitted) && forms.advanced.phoneBarExpires.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="forms.advanced.phoneBarExpires.$error.max || forms.advanced.phoneBarExpires.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}} (min 1).\n </span>\n </div>\n <!-- END SIP EXPIRES -->\n\n <!-- START SIP PORT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.phoneBarListenPort.$touched || forms.advanced.$submitted) && forms.advanced.phoneBarListenPort.$invalid}">\n <label class="control-label">SIP {{\'APPLICATION_PORT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="0" max="65535" name="phoneBarListenPort" placeholder="SIP {{\'APPLICATION_PORT\' | translate}}" class="form-control" data-ng-model="agent.phoneBarListenPort" required/>\n <span class="help-block">Default: 5060</span>\n <span data-ng-show="(forms.advanced.phoneBarListenPort.$touched || forms.advanced.$submitted) && forms.advanced.phoneBarListenPort.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="forms.advanced.phoneBarListenPort.$error.max || forms.advanced.phoneBarListenPort.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}} (0-65535).\n </span>\n </div>\n <!-- END SIP PORT -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ADVANCED TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'), +a.put("app/staff/agent/view/view.openchannel.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_PROFILE\' | translate}} {{ \'APPLICATION_OPEN_CHANNEL\' | translate}}</span>\n </div>\n </div>\n\n <div class="portlet-body">\n <!-- START CHAT TAB -->\n <form name="form" data-ng-submit="patchItem()" novalidate>\n <!-- START CAPACITY -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.capacity.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_CAPACITY\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" name="openchannelCapacity" placeholder="{{\'APPLICATION_CAPACITY\' | translate}}" class="form-control" data-ng-model="agent.openchannelCapacity" min="0" required/>\n <span class="help-block">\n {{\'MESSAGE_ZERO_MEANS_UNLIMITED\' | translate}}\n </span>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CAPACITY -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n <!-- END CHAT TAB -->\n </div>\n </div>\n </div>\n</div>\n</div>\n'),a.put("app/staff/agent/view/view.queues.chat.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12" data-ng-init="initChatQueues()">\n <!-- BEGIN FORM-->\n <form action="#" class="form-horizontal form-row-seperated">\n <div class="form-body">\n <label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n <div class="input-group input-small mbottom20">\n <input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="params.penalty" readonly>\n <div class="spinner-buttons input-group-btn btn-group-vertical">\n <button type="button" class="btn spinner-up btn-xs blue" data-ng-click="params.penalty=params.penalty+1">\n <i class="fa fa-angle-up"></i>\n </button>\n <button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!params.penalty" data-ng-click="params.penalty=params.penalty-1">\n <i class="fa fa-angle-down"></i>\n </button>\n </div>\n </div>\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-queues-chat">\n </div>\n </div>\n </div>\n </form>\n <!-- END FORM-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/staff/agent/view/view.queues.fax.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12" data-ng-init="initFaxQueues()">\n <!-- BEGIN FORM-->\n <form action="#" class="form-horizontal form-row-seperated">\n <div class="form-body">\n <label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n <div class="input-group input-small mbottom20">\n <input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="params.penalty" readonly>\n <div class="spinner-buttons input-group-btn btn-group-vertical">\n <button type="button" class="btn spinner-up btn-xs blue" data-ng-click="params.penalty=params.penalty+1">\n <i class="fa fa-angle-up"></i>\n </button>\n <button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!params.penalty" data-ng-click="params.penalty=params.penalty-1">\n <i class="fa fa-angle-down"></i>\n </button>\n </div>\n </div>\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-queues-fax">\n </div>\n </div>\n </div>\n </form>\n <!-- END FORM-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/staff/agent/view/view.queues.html","<!-- BEGIN PAGE CONTENT-->\n<div class=\"row\" data-ng-init=\"initView()\">\n <div class=\"col-md-12\">\n <div>\n <nav class=\"navbar navbar-default\" role=\"navigation\">\n <div class=\"collapse navbar-collapse\">\n <ul class=\"nav navbar-nav\">\n <li data-ng-class=\"{'active': $state.is('main.staff.agents.view.queues.voice')}\">\n <a href=\"/staff/agents/view/{{agent.id}}/queues/voice\">\n <i class=\"icon-earphones-alt\"></i> {{'APPLICATION_VOICE' | translate}}\n </a>\n </li>\n <li data-ng-class=\"{'active': $state.is('main.staff.agents.view.queues.chat'),'disabled-link':!license.chat}\" data-ng-show=\"Auth.isAdmin() || userModules[8]\">\n <a href=\"{{license.chat ? '/staff/agents/view/'+agent.id+'/queues/chat' : 'javascript:;'}}\" class=\"disable-target\">\n <i class=\"icon-bubble\"></i> {{'APPLICATION_CHAT' | translate}}\n </a>\n </li>\n <li data-ng-class=\"{'active': $state.is('main.staff.agents.view.queues.mail'),'disabled-link':!license.mail}\" data-ng-show=\"Auth.isAdmin() || userModules[9]\">\n <a href=\"{{license.mail ? '/staff/agents/view/'+agent.id+'/queues/mail' : 'javascript:;'}}\" class=\"disable-target\">\n <i class=\"icon-envelope\"></i>{{'APPLICATION_MAIL' | translate}}\n </a>\n </li>\n <li data-ng-class=\"{'active': $state.is('main.staff.agents.view.queues.fax'),'disabled-link':!license.fax}\" data-ng-show=\"Auth.isAdmin() || userModules[10]\">\n <a href=\"{{license.fax ? '/staff/agents/view/'+agent.id+'/queues/fax' : 'javascript:;'}}\" class=\"disable-target\">\n <i class=\"fa fa-fax\"></i> {{'APPLICATION_FAX' | translate}}\n </a>\n </li>\n <li data-ng-class=\"{'active': $state.is('main.staff.agents.view.queues.sms'),'disabled-link':!license.messaging}\" data-ng-show=\"Auth.isAdmin() || userModules[11]\">\n <a href=\"{{license.messaging ? '/staff/agents/view/'+agent.id+'/queues/sms' : 'javascript:;'}}\" class=\"disable-target\">\n <i class=\"glyphicon glyphicon-comment\"></i> {{'APPLICATION_SMS' | translate}}\n </a>\n </li>\n <li data-ng-class=\"{'active': $state.is('main.staff.agents.view.queues.openchannel'),'disabled-link':!license.openchannel}\" data-ng-show=\"Auth.isAdmin() || userModules[20]\">\n <a href=\"{{license.openchannel ? '/staff/agents/view/'+agent.id+'/queues/openchannel' : 'javascript:;'}}\" class=\"disable-target\">\n <i class=\"icon-globe\"></i> {{'APPLICATION_OPEN_CHANNEL' | translate}}\n </a>\n </li>\n </ul>\n </div>\n </nav>\n </div>\n <div ui-view></div>\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n"),a.put("app/staff/agent/view/view.queues.mail.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12" data-ng-init="initMailQueues()">\n <!-- BEGIN FORM-->\n <form action="#" class="form-horizontal form-row-seperated">\n <div class="form-body">\n <label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n <div class="input-group input-small mbottom20">\n <input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="params.penalty" readonly>\n <div class="spinner-buttons input-group-btn btn-group-vertical">\n <button type="button" class="btn spinner-up btn-xs blue" data-ng-click="params.penalty=params.penalty+1">\n <i class="fa fa-angle-up"></i>\n </button>\n <button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!params.penalty" data-ng-click="params.penalty=params.penalty-1">\n <i class="fa fa-angle-down"></i>\n </button>\n </div>\n </div>\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-queues-mail">\n </div>\n </div>\n </div>\n </form>\n <!-- END FORM-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/staff/agent/view/view.queues.openchannel.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12" data-ng-init="initOpenchannelQueues()">\n <!-- BEGIN FORM-->\n <form action="#" class="form-horizontal form-row-seperated">\n <div class="form-body">\n <label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n <div class="input-group input-small mbottom20">\n <input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="params.penalty" readonly>\n <div class="spinner-buttons input-group-btn btn-group-vertical">\n <button type="button" class="btn spinner-up btn-xs blue" data-ng-click="params.penalty=params.penalty+1">\n <i class="fa fa-angle-up"></i>\n </button>\n <button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!params.penalty" data-ng-click="params.penalty=params.penalty-1">\n <i class="fa fa-angle-down"></i>\n </button>\n </div>\n </div>\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-queues-openchannel">\n </div>\n </div>\n </div>\n </form>\n <!-- END FORM-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/staff/agent/view/view.queues.sms.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12" data-ng-init="initSmsQueues()">\n <!-- BEGIN FORM-->\n <form action="#" class="form-horizontal form-row-seperated">\n <div class="form-body">\n <label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n <div class="input-group input-small mbottom20">\n <input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="params.penalty" readonly>\n <div class="spinner-buttons input-group-btn btn-group-vertical">\n <button type="button" class="btn spinner-up btn-xs blue" data-ng-click="params.penalty=params.penalty+1">\n <i class="fa fa-angle-up"></i>\n </button>\n <button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!params.penalty" data-ng-click="params.penalty=params.penalty-1">\n <i class="fa fa-angle-down"></i>\n </button>\n </div>\n </div>\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-queues-sms">\n </div>\n </div>\n </div>\n </form>\n <!-- END FORM-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/staff/agent/view/view.queues.voice.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12" data-ng-init="initVoiceQueues()">\n <!-- BEGIN FORM-->\n <form action="#" class="form-horizontal form-row-seperated">\n <div class="form-body">\n <label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n <div class="input-group input-small mbottom20">\n <input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="params.penalty" readonly>\n <div class="spinner-buttons input-group-btn btn-group-vertical">\n <button type="button" class="btn spinner-up btn-xs blue" data-ng-click="params.penalty=params.penalty+1">\n <i class="fa fa-angle-up"></i>\n </button>\n <button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!params.penalty" data-ng-click="params.penalty=params.penalty-1">\n <i class="fa fa-angle-down"></i>\n </button>\n </div>\n </div>\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-queues-voice">\n </div>\n </div>\n </div>\n </form>\n <!-- END FORM-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/staff/agent/view/view.sms.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_PROFILE\' | translate}} {{ \'APPLICATION_SMS\' | translate}}</span>\n </div>\n </div>\n\n <div class="portlet-body">\n <!-- START CHAT TAB -->\n <form name="form" data-ng-submit="patchItem()" novalidate>\n <!-- START CAPACITY -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.capacity.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_CAPACITY\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" name="smsCapacity" placeholder="{{\'APPLICATION_CAPACITY\' | translate}}" class="form-control" data-ng-model="agent.smsCapacity" min="0" required/>\n <span class="help-block">\n {{\'MESSAGE_ZERO_MEANS_UNLIMITED\' | translate}}\n </span>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CAPACITY -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n <!-- END CHAT TAB -->\n </div>\n </div>\n </div>\n</div>\n</div>\n'),a.put("app/staff/agent/view/view.voice.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_PROFILE\' | translate}} {{ \'APPLICATION_VOICE\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body">\n <form name="forms.voice" data-ng-submit="updateItem()" novalidate>\n\n <!-- START INTERNAL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.voice.internal.$touched || forms.voice.$submitted) && forms.voice.internal.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERNAL_NUMBER\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="internal" placeholder="{{\'APPLICATION_INTERNAL_NUMBER\' | translate}}" class="form-control" data-ng-model="agent.internal" required disabled/>\n <span data-ng-show="(forms.voice.internal.$touched || forms.voice.$submitted) && forms.voice.internal.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERNAL -->\n\n <!-- START TRANSPORT -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TRANSPORT\' | translate}}</label>\n <ui-select multiple name="transport" ng-model="agent.transport" theme="bootstrap">\n <ui-select-match placeholder="Select transport...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="transport in [\'udp\', \'tcp\', \'ws\', \'wss\'] | filter: $select.search">\n {{transport}}\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_TRANSPORT\' | translate }}\n </span>\n </div>\n <!-- END TRANSPORT -->\n\n <!-- START HOST -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.voice.host.$touched || forms.voice.$submitted) && forms.voice.host.$invalid}">\n <label class="control-label">{{\'APPLICATION_HOST\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="host" placeholder="{{\'APPLICATION_HOST\' | translate}}" class="form-control" data-ng-model="agent.host" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_HOST\' | translate }}\n </span>\n <span data-ng-show="(forms.voice.host.$touched || forms.voice.$submitted) && forms.voice.host.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END HOST -->\n\n <!-- START NAT -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_NAT\' | translate}}</label>\n <ui-select multiple data-ng-model="agent.nat" name="nat" theme="bootstrap">\n <ui-select-match placeholder="{{ \'APPLICATION_SEARCH_FILTER\' | translate }}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="nat in [\'yes\', \'no\', \'never\', \'route\', \'force_rport\', \'comedia\'] | filter: $select.search">\n {{nat}}\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_NAT\' | translate }}\n </span>\n </div>\n <!-- END NAT -->\n\n <!-- START TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.voice.type.$touched || forms.voice.$submitted) && forms.voice.type.$invalid}">\n <label class="control-label">{{\'APPLICATION_TYPE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="agent.type" name="type" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_SEARCH_FILTER\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="type in [\'friend\', \'user\', \'peer\'] | filter: $select.search">\n <div ng-bind-html="type | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_TYPE\' | translate }}\n </span>\n <span data-ng-show="(forms.voice.type.$touched || forms.voice.$submitted) && forms.voice.type.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TYPE -->\n\n <!-- START CODEC -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ALLOWED_CODECS\' | translate}}</label>\n <ui-select multiple ng-model="agent.allow" name="allow" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="Select codec...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="allow in [\'g722\', \'g729\', \'ilbc\', \'gsm\', \'ulaw\', \'alaw\', \'opus\'] | filter: $select.search">\n {{allow}}\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_CODEC\' | translate }}\n </span>\n </div>\n <!-- END CODEC -->\n\n <!-- START CHANSPY -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_CHANSPY\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="agent.chanspy"\n type="checkbox"\n name="auth"\n switch-active="{{ recordSwitch.isActive }}"\n switch-on-text="{{ recordSwitch.onText }}"\n switch-off-text="{{ recordSwitch.offText }}"\n switch-on-color="{{ recordSwitch.onColor }}"\n switch-off-color="{{ recordSwitch.offColor }}"\n switch-animate="{{ recordSwitch.animate }}"\n switch-size="{{ recordSwitch.size }}"\n switch-label="{{ recordSwitch.label }}"\n switch-icon="{{ recordSwitch.icon }}"\n switch-radio-off="{{ recordSwitch.radioOff }}"\n switch-label-width="{{ recordSwitch.labelWidth }}"\n switch-handle-width="{{ recordSwitch.handleWidth }}">\n </div>\n <!-- END CHANSPY -->\n\n <!-- START CALLGROUP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.voice.callgroup.$touched || forms.voice.$submitted) && forms.voice.callgroup.$invalid}">\n <label class="control-label">{{\'APPLICATION_CALLGROUP\' | translate}}</label>\n <input type="text" name="callgroup" placeholder="{{\'APPLICATION_CALLGROUP\' | translate}}" class="form-control" data-ng-model="agent.callgroup"/>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_CALLGROUP\' | translate }}\n </span>\n <span data-ng-show="(forms.voice.callgroup.$touched || forms.voice.$submitted) && forms.voice.callgroup.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CALLGROUP -->\n\n <!-- START PICKUPGROUP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.voice.pickupgroup.$touched || forms.voice.$submitted) && forms.voice.pickupgroup.$invalid}">\n <label class="control-label">{{\'APPLICATION_PICKUPGROUP\' | translate}}</label>\n <input type="text" name="pickupgroup" placeholder="{{\'APPLICATION_PICKUPGROUP\' | translate}}" class="form-control" data-ng-model="agent.pickupgroup"/>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_PICKUPGROUP\' | translate }}\n </span>\n <span data-ng-show="(forms.voice.pickupgroup.$touched || forms.voice.$submitted) && forms.voice.pickupgroup.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PICKUPGROUP -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/staff/agent/wizard/wizard-bulk.html",'<div class="col-md-12">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-people"></i>\n <a href="/agents/list">{{ \'APPLICATION_AGENTS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-options"></i>\n <a href="/agents/wizard">{{ \'APPLICATION_WIZARD\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered" data-ng-init="getFirstFreeInternal(); item.amount = 2; item.startIndex = 0;">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-user font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_AGENT\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItems()">\n <wz-step title="{{\'APPLICATION_ACCOUNT\' | translate}}" canexit="exitValidation(forms.info.$valid)">\n <form name="forms.info" novalidate>\n\n <!-- START AMOUNT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.amount.$touched || forms.info.$submitted) && forms.info.amount.$invalid}">\n <label class="control-label">{{\'APPLICATION_AMOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" name="amount" min="2" max="{{maxAmount}}" placeholder="{{\'APPLICATION_AMOUNT\' | translate}}" class="form-control" data-ng-model="item.amount" required>\n <span data-ng-show="(forms.info.amount.$touched || forms.info.$submitted) && forms.info.amount.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span class="help-block help-block-info">\n {{\'MESSAGE_STARTING_FROM_INTERNAL\' | translate}} <b>{{item.minInternal}}</b> {{\'MESSAGE_MAX_NUM_OF_BULK_AGENTS_IS\' | translate}} <b>{{maxAmount}}</b>\n </span>\n </div>\n <!-- END AMOUNT -->\n\n <!-- START START INDEX -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.startIndex.$touched || forms.info.$submitted) && forms.info.startIndex.$invalid}">\n <label class="control-label">{{\'APPLICATION_START_INDEX\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" name="startIndex" min="0" placeholder="{{\'APPLICATION_START_INDEX\' | translate}}" class="form-control" data-ng-model="item.startIndex" required>\n <span data-ng-show="(forms.info.startIndex.$touched || forms.info.$submitted) && forms.info.startIndex.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END START INDEX -->\n\n <!-- START MIN INTERNAL-->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.internal.$touched || forms.info.$submitted) && forms.info.minInternal.$invalid}">\n <label class="control-label">{{\'APPLICATION_MIN_INTERNAL\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" name="minInternal" min="0" placeholder="{{\'APPLICATION_MIN_INTERNAL\' | translate}}" class="form-control" data-ng-change="getAmount()" data-ng-model="item.minInternal" required>\n <span data-ng-show="(forms.info.minInternal.$touched || forms.info.$submitted) && forms.info.minInternal.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MIN INTERNAL-->\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$invalid}">\n <label class="control-label">{{\'APPLICATION_FULLNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="fullname" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.fullname" required/>\n <span data-ng-show="(forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="item.name" data-ng-pattern="settings.patternName" required>\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START EMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="email" name="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" class="form-control" data-ng-model="item.email" required>\n <span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.email" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END EMAIL -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.password" data-ng-pattern="setting.securePassword ? settings.patternPassword : settings.patternPasswordLight" required/>\n <span class="help-block">\n {{setting.securePassword ? \'MESSAGE_PASSWORD_FORMAT\' : \'MESSAGE_PASSWORD_LIGHT_FORMAT\' | translate}}\n </span>\n <span data-ng-show="(forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START RE PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.rpassword.$touched || forms.info.$submitted) && forms.info.rpassword.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="rpassword" placeholder="{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.rpassword" nx-equal="item.password" required/>\n <span data-ng-show="(forms.info.rpassword.$touched || forms.info.$submitted) && forms.info.rpassword.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.rpassword.$touched || forms.info.$submitted) && forms.info.rpassword.$error.nxEqual" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_PASSWORD\' | translate}}.\n </span>\n </div>\n <!-- END RE PASSWORD -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_VOICE\' | translate}}" canexit="exitValidation(forms.voice.$valid)">\n <form name="forms.voice" novalidate>\n\n <!-- START TRANSPORT -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TRANSPORT\' | translate}}</label>\n <ui-select multiple name="transport" ng-model="item.transport" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="Select transport...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="transport in [\'udp\', \'tcp\', \'ws\', \'wss\'] | filter: $select.search">\n {{transport}}\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_TRANSPORT\' | translate }}\n </span>\n </div>\n <!-- END TRANSPORT -->\n\n <!-- START CODEC -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ALLOWED_CODECS\' | translate}}</label>\n <ui-select multiple ng-model="item.allow" name="allow" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="Select codec...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="allow in [\'g722\', \'g729\', \'ilbc\', \'gsm\', \'ulaw\', \'alaw\', \'opus\'] | filter: $select.search">\n {{allow}}\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_CODEC\' | translate }}\n </span>\n </div>\n <!-- END CODEC -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END PORTLET-->\n</div>\n'), +a.put("app/staff/agent/wizard/wizard.html",'<div class="col-md-12">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-puzzle"></i>\n <a href="#">{{ \'APPLICATION_STAFF\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-people"></i>\n <a href="/staff/agents/list">{{ \'APPLICATION_AGENTS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-options"></i>\n <a href="/agents/wizard">{{ \'APPLICATION_WIZARD\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered" data-ng-init="getFirstFreeInternal();">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-user font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_AGENT\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_ACCOUNT\' | translate}}" canexit="exitValidation(forms.info.$valid)">\n <form name="forms.info" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$invalid}">\n <label class="control-label">{{\'APPLICATION_FULLNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="fullname" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.fullname" required/>\n <span data-ng-show="(forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="item.name" data-ng-pattern="settings.patternName" required>\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START EMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="email" name="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" class="form-control" data-ng-model="item.email" required>\n <span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.email" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END EMAIL -->\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.phone.$touched || forms.info.$submitted) && forms.info.phone.$invalid}">\n <label class="control-label">{{\'APPLICATION_PHONE\' | translate}}</label>\n <input type="text" name="phone" placeholder="{{\'APPLICATION_PHONE\' | translate}}" class="form-control" data-ng-model="item.phone"/>\n </div>\n <!-- END NAME -->\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.mobile.$touched || forms.info.$submitted) && forms.info.mobile.$invalid}">\n <label class="control-label">{{\'APPLICATION_MOBILE\' | translate}}</label>\n <input type="text" name="mobile" placeholder="{{\'APPLICATION_MOBILE\' | translate}}" class="form-control" data-ng-model="item.mobile"/>\n </div>\n <!-- END NAME -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.password" data-ng-pattern="setting.securePassword ? settings.patternPassword : settings.patternPasswordLight" required/>\n <span class="help-block">\n {{setting.securePassword ? \'MESSAGE_PASSWORD_FORMAT\' : \'MESSAGE_PASSWORD_LIGHT_FORMAT\' | translate}}\n </span>\n <span data-ng-show="(forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START RE PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.rpassword.$touched || forms.info.$submitted) && forms.info.rpassword.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="rpassword" placeholder="{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.rpassword" nx-equal="item.password" required/>\n <span data-ng-show="(forms.info.rpassword.$touched || forms.info.$submitted) && forms.info.rpassword.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.rpassword.$touched || forms.info.$submitted) && forms.info.rpassword.$error.nxEqual" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_PASSWORD\' | translate}}.\n </span>\n </div>\n <!-- END RE PASSWORD -->\n\n <!-- START INTERNAL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.internal.$touched || forms.info.$submitted) && forms.info.internal.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERNAL_NUMBER\' | translate}}<span class="required" aria-required="true">*</span></label>\n <div class="input-group">\n <input type="number" min="1" name="internal" placeholder="{{\'APPLICATION_INTERNAL_NUMBER\' | translate}}" class="form-control" data-ng-model="item.internal" data-ng-disabled="!item.internalEnabled" data-ng-required="item.internalEnabled"/>\n <span class="input-group-addon">\n <input type="checkbox" data-ng-model="item.internalEnabled">\n </span>\n </div>\n <span data-ng-show="(forms.info.internal.$touched || forms.info.$submitted) && forms.info.internal.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERNAL -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_VOICE\' | translate}}" canexit="exitValidation(forms.voice.$valid)">\n <form name="forms.voice" novalidate>\n\n <!-- START TRANSPORT -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TRANSPORT\' | translate}}</label>\n <ui-select multiple name="transport" ng-model="item.transport" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="Select transport...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="transport in [\'udp\', \'tcp\', \'ws\', \'wss\'] | filter: $select.search">\n {{transport}}\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_TRANSPORT\' | translate }}\n </span>\n </div>\n <!-- END TRANSPORT -->\n\n <!-- START CODEC -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ALLOWED_CODECS\' | translate}}</label>\n <ui-select multiple ng-model="item.allow" name="allow" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="Select codec...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="allow in [\'g722\', \'g729\', \'ilbc\', \'gsm\', \'ulaw\', \'alaw\', \'opus\'] | filter: $select.search">\n {{allow}}\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_CODEC\' | translate }}\n </span>\n </div>\n <!-- END CODEC -->\n\n <!-- <div class="form-body" data-ng-init="initVoiceQueues()">\n <label class="control-label">{{ \'APPLICATION_QUEUES\' | translate}}</label>\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-queues-voice">\n </div>\n </div>\n </div> -->\n\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n </form>\n </wz-step>\n\n <!-- <wz-step title="{{\'APPLICATION_CHAT\' | translate}}">\n <form name="forms.chat">\n <div class="form-body" data-ng-init="initChatQueues()">\n <label class="control-label">{{ \'APPLICATION_QUEUES\' | translate}}</label>\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-queues-chat">\n </div>\n </div>\n </div>\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n </form>\n </wz-step> -->\n\n <!-- <wz-step title="{{\'APPLICATION_MAIL\' | translate}}">\n <form name="forms.mail">\n <div class="form-body" data-ng-init="initMailQueues()">\n <label class="control-label">{{ \'APPLICATION_QUEUES\' | translate}}</label>\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-queues-mail">\n </div>\n </div>\n </div>\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n </form>\n </wz-step> -->\n\n\n <!-- <wz-step title="{{\'APPLICATION_SMS\' | translate}}">\n <form name="forms.sms">\n <div class="form-body" data-ng-init="initSmsQueues()">\n <label class="control-label">{{ \'APPLICATION_QUEUES\' | translate}}</label>\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-queues-sms">\n </div>\n </div>\n </div>\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n </form>\n </wz-step> -->\n\n <!-- <wz-step title="{{\'APPLICATION_FAX\' | translate}}">\n <form name="forms.fax">\n <div class="form-body" data-ng-init="initFaxQueues()">\n <label class="control-label">{{ \'APPLICATION_QUEUES\' | translate}}</label>\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-queues-fax">\n </div>\n </div>\n </div>\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n </form>\n </wz-step> -->\n\n <!-- <wz-step title="{{\'APPLICATION_OPEN_CHANNEL\' | translate}}">\n <form name="forms.openchannel">\n <div class="form-body" data-ng-init="initOpenchannelQueues()">\n <label class="control-label">{{ \'APPLICATION_QUEUES\' | translate}}</label>\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-queues-openchannel">\n </div>\n </div>\n </div>\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n </form>\n </wz-step> -->\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END PORTLET-->\n</div>\n'),a.put("app/staff/team/list/create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_TEAM\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="ok()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/staff/team/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-puzzle"></i>\n <a href="#">{{ \'APPLICATION_STAFF\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-shield"></i>\n <a href="/staff/teams/list">{{ \'APPLICATION_TEAMS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-shield font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_TEAMS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <a class="btn green-jungle" href="#" data-ng-click="createItem()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_TEAM\' | translate }}\n </a>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/staff/team/view/view.agents.html",'<div class="row" data-ng-init="initAgents()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_AGENTS\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body">\n <!-- GENERAL TAB -->\n <!-- BEGIN PORTLET-->\n <!-- BEGIN FORM-->\n <form action="index.html" class="form-horizontal form-row-seperated">\n <div class="form-body">\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-team">\n </div>\n </div>\n </div>\n </form>\n <!-- END FORM-->\n <!-- END PORTLET-->\n <!-- END GENERAL TAB -->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/staff/team/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-puzzle"></i>\n <a href="#">{{ \'APPLICATION_STAFF\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-shield"></i>\n <a href="/staff/teams/list">{{ \'APPLICATION_TEAMS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <a href="#">{{team.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img ng-src="assets/images/media/team.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{team.name}}\n </div>\n\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.staff.teams.view.settings\')}">\n <a data-ng-href="/staff/teams/view/{{team.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.staff.teams.view.agents\')}">\n <a data-ng-href="/staff/teams/view/{{team.id}}/agents">\n <i class="icon-people"></i>\n {{ \'APPLICATION_AGENTS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content"></div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/staff/team/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_PROFILE\' | translate}} {{ \'APPLICATION_ACCOUNT\' | translate}}</span>\n </div>\n </div>\n\n <div class="portlet-body">\n <!-- PERSONAL INFO TAB -->\n <div>\n\n <form name="forms.info" data-ng-submit="updateItem()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="team.name" required/>\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="team.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END PERSONAL INFO TAB -->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/staff/telephone/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-puzzle"></i>\n <a href="#">{{ \'APPLICATION_STAFF\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-phone"></i>\n <a href="/staff/telephones/list">{{ \'APPLICATION_TELEPHONES\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-phone font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_TELEPHONES\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <a class="btn green-jungle" href="/staff/telephones/wizard" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_TELEPHONE\' | translate }}\n </a>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/staff/telephone/view/view.account.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_ACCOUNT\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_ACCOUNT\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-ng-show="Auth.isAdmin() || item.id === getCurrentTelephone().id" data-target="#tab_1_2" data-toggle="tab">{{ \'APPLICATION_CHANGE_PASSWORD\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- PERSONAL INFO TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.info" data-ng-submit="forms.info.$valid && updateItem()" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$invalid}">\n <label class="control-label">{{\'APPLICATION_FULLNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="fullname" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.fullname" required/>\n <span data-ng-show="(forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}</label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="item.name" disabled/>\n </div>\n <!-- END USERNAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END PERSONAL INFO TAB -->\n\n <!-- CHANGE PASSWORD TAB -->\n <div class="tab-pane" id="tab_1_2" data-ng-show="Auth.isAdmin() || item.id === getCurrentTelephone().id">\n <form name="forms.changePwd" data-ng-submit="forms.changePwd.$valid && updatePassword()" novalidate>\n <!-- START CURRENT PWD -->\n <!-- <div class="form-group" data-ng-if="!Auth.isAdmin()" data-ng-class="{\'has-error\': (forms.changePwd.current_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.current_pwd.$invalid}">\n <label class="control-label">{{\'APPLICATION_CURRENT_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="current_pwd" placeholder="{{\'APPLICATION_CURRENT_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.currentPwd" required/>\n <span data-ng-show="(forms.changePwd.current_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.current_pwd.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div> -->\n <!-- END CURRENT PWD -->\n <!-- START NEW PWD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.changePwd.new_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.new_pwd.$invalid}">\n <label class="control-label">{{\'APPLICATION_NEW_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="new_pwd" placeholder="{{\'APPLICATION_NEW_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.newPwd" data-ng-pattern="setting.securePassword ? settings.patternPassword : settings.patternPasswordLight" required/>\n <span class="help-block">\n {{setting.securePassword ? \'MESSAGE_PASSWORD_FORMAT\' : \'MESSAGE_PASSWORD_LIGHT_FORMAT\' | translate}}\n </span>\n <span data-ng-show="(forms.changePwd.new_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.new_pwd.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NEW PWD -->\n <!-- START RE-NEW PWD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.changePwd.re_new_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.re_new_pwd.$invalid}">\n <label class="control-label">{{\'APPLICATION_RE_TYPE_NEW_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="re_new_pwd" placeholder="{{\'APPLICATION_RE_TYPE_NEW_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.reNewPwd" nx-equal="item.newPwd" required/>\n <span data-ng-show="(forms.changePwd.new_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.new_pwd.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END RE-NEW PWD -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END CHANGE PASSWORD TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'), +a.put("app/staff/telephone/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-puzzle"></i>\n <a href="#">{{ \'APPLICATION_STAFF\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-phone"></i>\n <a href="/staff/telephones/list">{{ \'APPLICATION_TELEPHONES\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <a href="#">{{item.fullname}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR TELEPHONEPIC -->\n <div class="profile-userpic">\n <img data-ng-src="assets/images/media/telephone.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR TELEPHONEPIC -->\n <!-- SIDEBAR TELEPHONE TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{item.fullname}}\n </div>\n <div class="profile-usertitle-job">\n {{item.role}}\n </div>\n </div>\n <!-- END SIDEBAR TELEPHONE TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.staff.telephones.view.account\')}">\n <a data-ng-href="/staff/telephones/view/{{item.id}}/account">\n <i class="icon-phone"></i>\n {{ \'APPLICATION_ACCOUNT\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.staff.telephones.view.voice\')}" data-ng-show="Auth.isAdmin()">\n <a data-ng-href="/staff/telephones/view/{{item.id}}/voice">\n <i class="icon-earphones-alt"></i>\n {{ \'APPLICATION_VOICE\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/staff/telephone/view/view.voice.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_ACCOUNT\' | translate}} {{ \'APPLICATION_VOICE\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body">\n <form name="forms.info" data-ng-submit="updateItem()" novalidate>\n\n <!-- START INTERNAL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.internal.$touched || forms.info.$submitted) && forms.info.internal.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERNAL_NUMBER\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="1" name="internal" placeholder="{{\'APPLICATION_INTERNAL_NUMBER\' | translate}}" class="form-control" data-ng-model="item.internal" required readonly/>\n <span data-ng-show="(forms.info.internal.$touched || forms.info.$submitted) && forms.info.internal.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.internal.$touched || forms.info.$submitted) && forms.info.internal.$error.ngRemoteValidate" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_EXIST_INTERNAL\' | translate}}.\n </span>\n </div>\n <!-- END INTERNAL -->\n\n <!-- START TRANSPORT -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TRANSPORT\' | translate}}</label>\n <ui-select multiple name="transport" ng-model="item.transport" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="Select transport...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="transport in [\'udp\', \'tcp\', \'ws\', \'wss\'] | filter: $select.search">\n {{transport}}\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_TRANSPORT\' | translate }}\n </span>\n </div>\n <!-- END TRANSPORT -->\n\n <!-- START CODEC -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ALLOWED_CODECS\' | translate}}</label>\n <ui-select multiple ng-model="item.allow" name="allow" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="Select codec...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="allow in [\'g722\', \'g729\', \'ilbc\', \'gsm\', \'ulaw\', \'alaw\', \'opus\'] | filter: $select.search">\n {{allow}}\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_CODEC\' | translate }}\n </span>\n </div>\n <!-- END CODEC -->\n\n <!-- START CALLGROUP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.voice.callgroup.$touched || forms.voice.$submitted) && forms.voice.callgroup.$invalid}">\n <label class="control-label">{{\'APPLICATION_CALLGROUP\' | translate}}</label>\n <input type="text" name="callgroup" placeholder="{{\'APPLICATION_CALLGROUP\' | translate}}" class="form-control" data-ng-model="item.callgroup"/>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_CALLGROUP\' | translate }}\n </span>\n <span data-ng-show="(forms.voice.callgroup.$touched || forms.voice.$submitted) && forms.voice.callgroup.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CALLGROUP -->\n\n <!-- START PICKUPGROUP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.voice.pickupgroup.$touched || forms.voice.$submitted) && forms.voice.pickupgroup.$invalid}">\n <label class="control-label">{{\'APPLICATION_PICKUPGROUP\' | translate}}</label>\n <input type="text" name="pickupgroup" placeholder="{{\'APPLICATION_PICKUPGROUP\' | translate}}" class="form-control" data-ng-model="item.pickupgroup"/>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_PICKUPGROUP\' | translate }}\n </span>\n <span data-ng-show="(forms.voice.pickupgroup.$touched || forms.voice.$submitted) && forms.voice.pickupgroup.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PICKUPGROUP -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/staff/telephone/wizard/wizard.html",'<div class="col-md-12">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-puzzle"></i>\n <a href="#">{{ \'APPLICATION_STAFF\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-phone"></i>\n <a href="/staff/telephones/list">{{ \'APPLICATION_TELEPHONES\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-options"></i>\n <a href="/staff/telephones/wizard">{{ \'APPLICATION_WIZARD\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered" data-ng-init="getFirstFreeInternal();">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-phone font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_TELEPHONE\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_ACCOUNT\' | translate}}" canexit="exitValidation(forms.info.$valid)">\n <form name="forms.info" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$invalid}">\n <label class="control-label">{{\'APPLICATION_FULLNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="fullname" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.fullname" required/>\n <span data-ng-show="(forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="item.name" ata-ng-pattern="settings.patternName" required />\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$error.ngRemoteValidate" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_EXIST_USERNAME\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.password" data-ng-pattern="setting.securePassword ? settings.patternPassword : settings.patternPasswordLight" required/>\n <span class="help-block">\n {{setting.securePassword ? \'MESSAGE_PASSWORD_FORMAT\' : \'MESSAGE_PASSWORD_LIGHT_FORMAT\' | translate}}\n </span>\n <span data-ng-show="(forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START RE PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.rpassword.$touched || forms.info.$submitted) && forms.info.rpassword.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="rpassword" placeholder="{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.rpassword" nx-equal="item.password" required/>\n <span data-ng-show="(forms.info.rpassword.$touched || forms.info.$submitted) && forms.info.rpassword.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.rpassword.$touched || forms.info.$submitted) && forms.info.rpassword.$error.nxEqual" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_PASSWORD\' | translate}}.\n </span>\n </div>\n <!-- END RE PASSWORD -->\n\n <!-- START INTERNAL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.internal.$touched || forms.info.$submitted) && forms.info.internal.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERNAL_NUMBER\' | translate}}<span class="required" aria-required="true">*</span></label>\n <div class="input-group">\n <input type="number" min="1" name="internal" placeholder="{{\'APPLICATION_INTERNAL_NUMBER\' | translate}}" class="form-control" data-ng-model="item.internal" data-ng-disabled="!item.internalEnabled" data-ng-required="item.internalEnabled"/>\n <span class="input-group-addon">\n <input type="checkbox" data-ng-model="item.internalEnabled">\n </span>\n </div>\n <span data-ng-show="(forms.info.internal.$touched || forms.info.$submitted) && forms.info.internal.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERNAL -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_VOICE\' | translate}}" canexit="exitValidation(forms.voice.$valid)">\n <form name="forms.voice" novalidate>\n\n <!-- START TRANSPORT -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TRANSPORT\' | translate}}</label>\n <ui-select multiple name="transport" ng-model="item.transport" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="Select transport...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="transport in [\'udp\', \'tcp\', \'ws\', \'wss\'] | filter: $select.search">\n {{transport}}\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_TRANSPORT\' | translate }}\n </span>\n </div>\n <!-- END TRANSPORT -->\n\n <!-- START CODEC -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ALLOWED_CODECS\' | translate}}</label>\n <ui-select multiple ng-model="item.allow" name="allow" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="Select codec...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="allow in [\'g722\', \'g729\', \'ilbc\', \'gsm\', \'ulaw\', \'alaw\', \'opus\'] | filter: $select.search">\n {{allow}}\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_CODEC\' | translate }}\n </span>\n </div>\n <!-- END CODEC -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END PORTLET-->\n</div>\n'),a.put("app/staff/user/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-puzzle"></i>\n <a href="#">{{ \'APPLICATION_STAFF\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-eye"></i>\n <a href="#">{{ \'APPLICATION_USERS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-eye font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_USERS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <a class="btn green-jungle" href="/staff/users/wizard" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_USER\' | translate }}\n </a>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/staff/user/view/view.account.html",'<div class="row" data-ng-init="checkUser()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_PROFILE\' | translate}} {{ \'APPLICATION_ACCOUNT\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_PERSONAL_INFO\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{ \'APPLICATION_CHANGE_AVATAR\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-ng-show="Auth.isAdmin() || user.id === getCurrentUser().id" data-target="#tab_1_3" data-toggle="tab">{{ \'APPLICATION_CHANGE_PASSWORD\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- PERSONAL INFO TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.info" data-ng-submit="updateItem()" novalidate>\n\n <!-- START ROLE -->\n <div class="form-group" data-ng-if="Auth.getCurrentUser().role === \'admin\' && Auth.getCurrentUser().id !== user.id">\n <label class="control-label">{{ \'APPLICATION_ROLE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select name="role" data-ng-model="user.role" theme="bootstrap" required>\n <ui-select-match placeholder="Select role...">{{$select.selected | uppercase}}</ui-select-match>\n <ui-select-choices repeat="role in [\'user\', \'admin\'] | filter: $select.search">\n {{role | uppercase}}\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END ROLE -->\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$invalid}">\n <label class="control-label">{{\'APPLICATION_FULLNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="fullname" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="user.fullname" required/>\n <span data-ng-show="(forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}</label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="user.name" disabled/>\n </div>\n <!-- END USERNAME -->\n\n <!-- START EMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="email" name="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" class="form-control" data-ng-model="user.email" required/>\n <span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.email" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END EMAIL -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="user.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END PERSONAL INFO TAB -->\n\n <!-- CHANGE AVATAR TAB -->\n <div class="tab-pane" id="tab_1_2">\n <form action="#" role="form">\n <div class="form-group">\n <div class="fileinput fileinput-new" data-provides="fileinput">\n <div class="fileinput-new thumbnail" style="width: 200px; height: 150px;">\n <img ng-src="assets/images/media/noProfileImage.png" alt=""/>\n </div>\n <div class="fileinput-preview fileinput-exists thumbnail" style="max-width: 200px; max-height: 150px;">\n </div>\n <div>\n <span class="btn default btn-file" data-ng-show="!uploader.queue[0]">\n <span> {{ \'APPLICATION_SELECT_IMAGE\' | translate }} </span>\n <input type="file" nv-file-select="" uploader="uploader" /><br/>\n </span>\n <button type="button" class="btn default" data-ng-show="uploader.queue[0]" data-dismiss="fileinput" ng-click="uploader.queue[0].remove()">\n <span> {{ \'APPLICATION_REMOVE\' | translate }} </span>\n </button>\n <button type="button" class="btn green-haze" data-ng-show="uploader.queue[0]" data-ng-click="uploader.queue[0].upload()" ng-disabled="uploader.queue[0].isReady || uploader.queue[0].isUploading || uploader.queue[0].isSuccess">\n <span> {{ \'APPLICATION_CONFIRM\' | translate }} </span>\n </button>\n </div>\n <p>\n </br> {{ \'MESSAGE_SUPPORTED_FORMATS\' | translate }} <b>jpg, png, jpeg</b>.\n </p>\n </div>\n </div>\n </form>\n <div class="row">\n <div class="col-md-2">\n <table class="table" border="0">\n <tbody>\n <tr data-ng-repeat="item in uploader.queue">\n <td style="border-top-style:none">\n <strong>\n {{ item.file.name }}\n </strong>\n </td>\n <td data-ng-show="uploader.isHTML5" nowrap style="border-top-style:none">\n {{ item.file.size/1024/1024|number:2 }} MB\n </td>\n <td nowrap style="border-top-style:none">\n <button type="button" class="btn btn-danger btn-xs" data-ng-click="item.remove()">\n <span class="glyphicon glyphicon-trash"></span> Remove\n </button>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n <!-- END CHANGE AVATAR TAB -->\n <!-- CHANGE PASSWORD TAB -->\n <div class="tab-pane" id="tab_1_3" data-ng-show="Auth.isAdmin() || user.id === getCurrentUser().id">\n <form name="forms.changePwd" data-ng-submit="forms.changePwd.$valid && updatePassword()" novalidate>\n <!-- START CURRENT PWD -->\n <div class="form-group" data-ng-if="!Auth.isAdmin()" data-ng-class="{\'has-error\': (forms.changePwd.current_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.current_pwd.$invalid}">\n <label class="control-label">{{\'APPLICATION_CURRENT_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="current_pwd" placeholder="{{\'APPLICATION_CURRENT_PASSWORD\' | translate}}" class="form-control" data-ng-model="user.currentPwd" required/>\n <span data-ng-show="(forms.changePwd.current_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.current_pwd.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CURRENT PWD -->\n <!-- START NEW PWD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.changePwd.new_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.new_pwd.$invalid}">\n <label class="control-label">{{\'APPLICATION_NEW_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="new_pwd" placeholder="{{\'APPLICATION_NEW_PASSWORD\' | translate}}" class="form-control" data-ng-model="user.newPwd" data-ng-pattern="setting.securePassword ? settings.patternPassword : settings.patternPasswordLight" required/>\n <span class="help-block">\n {{setting.securePassword ? \'MESSAGE_PASSWORD_FORMAT\' : \'MESSAGE_PASSWORD_LIGHT_FORMAT\' | translate}}\n </span>\n <span data-ng-show="(forms.changePwd.current_pwd.$touched || forms.info.$submitted) && forms.changePwd.current_pwd.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n <span data-ng-show="(forms.changePwd.new_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.new_pwd.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NEW PWD -->\n <!-- START RE-NEW PWD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.changePwd.re_new_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.re_new_pwd.$invalid}">\n <label class="control-label">{{\'APPLICATION_RE_TYPE_NEW_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="re_new_pwd" placeholder="{{\'APPLICATION_RE_TYPE_NEW_PASSWORD\' | translate}}" class="form-control" data-ng-model="user.reNewPwd" nx-equal="user.newPwd" required/>\n <span data-ng-show="(forms.changePwd.new_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.new_pwd.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END RE-NEW PWD -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END CHANGE PASSWORD TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/staff/user/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-puzzle"></i>\n <a href="#">{{ \'APPLICATION_STAFF\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-eye"></i>\n <a href="/staff/users/list">{{ \'APPLICATION_USERS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <a href="#">{{user.fullname}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-userpic">\n <img ng-src="api/users/avatar/{{user.userpic ? user.userpic : \'unknown_avatar\'}}" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{user.fullname}}\n </div>\n <div class="profile-usertitle-job">\n {{user.role}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.staff.users.view.account\')}">\n <a data-ng-href="/staff/users/view/{{user.id}}/account">\n <i class="icon-user"></i>\n {{ \'APPLICATION_ACCOUNT\' | translate}}\n </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.staff.users.view.voice\')}" data-ng-show="Auth.isAdmin()">\n <a data-ng-href="/staff/users/view/{{user.id}}/voice">\n <i class="icon-earphones-alt"></i>\n {{ \'APPLICATION_VOICE\' | translate}}\n </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.staff.users.view.permit\')}" data-ng-show="Auth.isAdmin() && user.role != \'admin\'">\n <a data-ng-href="/staff/users/view/{{user.id}}/permit/voice">\n <i class="icon-key"></i>\n {{ \'APPLICATION_PERMITS\' | translate}}\n </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'), +a.put("app/staff/user/view/view.permit.chat.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12" data-ng-init="initChatQueues()">\n <!-- BEGIN FORM-->\n <form action="#" class="form-horizontal form-row-seperated">\n <div class="form-body">\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-permit">\n </div>\n </div>\n </div>\n </form>\n <!-- END FORM-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/staff/user/view/view.permit.fax.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12" data-ng-init="initFaxQueues()">\n <!-- BEGIN FORM-->\n <form action="#" class="form-horizontal form-row-seperated">\n <div class="form-body">\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-permit">\n </div>\n </div>\n </div>\n </form>\n <!-- END FORM-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/staff/user/view/view.permit.html","<!-- BEGIN PAGE CONTENT-->\n<div class=\"row\">\n <div class=\"col-md-12\">\n <div>\n <nav class=\"navbar navbar-default\" role=\"navigation\">\n <div class=\"collapse navbar-collapse\">\n <ul class=\"nav navbar-nav\">\n <li data-ng-class=\"{'active': $state.is('main.staff.users.view.permit.voice')}\">\n <a href=\"/staff/users/view/{{user.id}}/permit/voice\">\n <i class=\"icon-earphones-alt\"></i> {{'APPLICATION_VOICE' | translate}}\n </a>\n </li>\n <li data-ng-class=\"{'active': $state.is('main.staff.users.view.permit.chat'),'disabled-link':!license.chat}\" data-ng-show=\"Auth.isAdmin() || userModules[8]\">\n <a href=\"{{license.chat ? '/staff/users/view/'+user.id+'/permit/chat' : 'javascript:;'}}\" class=\"disable-target\">\n <i class=\"icon-bubble\"></i> {{'APPLICATION_CHAT' | translate}}\n </a>\n </li>\n <li data-ng-class=\"{'active': $state.is('main.staff.users.view.permit.mail'),'disabled-link':!license.mail}\" data-ng-show=\"Auth.isAdmin() || userModules[9]\">\n <a href=\"{{license.mail ? '/staff/users/view/'+user.id+'/permit/mail' : 'javascript:;'}}\" class=\"disable-target\">\n <i class=\"icon-envelope\"></i>{{'APPLICATION_MAIL' | translate}}\n </a>\n </li>\n <li data-ng-class=\"{'active': $state.is('main.staff.users.view.permit.fax'),'disabled-link':!license.fax}\" data-ng-show=\"Auth.isAdmin() || userModules[10]\">\n <a href=\"{{license.fax ? '/staff/users/view/'+user.id+'/permit/fax' : 'javascript:;'}}\" class=\"disable-target\">\n <i class=\"fa fa-fax\"></i> {{'APPLICATION_FAX' | translate}}\n </a>\n </li>\n <li data-ng-class=\"{'active': $state.is('main.staff.users.view.permit.sms'),'disabled-link':!license.messaging}\" data-ng-show=\"Auth.isAdmin() || userModules[11]\">\n <a href=\"{{license.messaging ? '/staff/users/view/'+user.id+'/permit/sms' : 'javascript:;'}}\" class=\"disable-target\">\n <i class=\"glyphicon glyphicon-comment\"></i> {{'APPLICATION_SMS' | translate}}\n </a>\n </li>\n <li data-ng-class=\"{'active': $state.is('main.staff.users.view.permit.openchannel'),'disabled-link':!license.openchannel}\" data-ng-show=\"Auth.isAdmin() || userModules[20]\">\n <a href=\"{{license.openchannel ? '/staff/users/view/'+user.id+'/permit/openchannel' : 'javascript:;'}}\" class=\"disable-target\">\n <i class=\"icon-globe\"></i> {{'APPLICATION_OPEN_CHANNEL' | translate}}\n </a>\n </li>\n <li data-ng-class=\"{'active': $state.is('main.staff.users.view.permit.modules')}\" data-ng-if=\"user.role !== 'admin'\">\n <a href=\"/staff/users/view/{{user.id}}/permit/modules\">\n <i class=\"icon-menu\"></i> {{'APPLICATION_MODULES' | translate}}\n </a>\n </li>\n </ul>\n </div>\n </nav>\n </div>\n <div ui-view></div>\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n"),a.put("app/staff/user/view/view.permit.mail.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12" data-ng-init="initMailQueues()">\n <!-- BEGIN FORM-->\n <form action="#" class="form-horizontal form-row-seperated">\n <div class="form-body">\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-permit">\n </div>\n </div>\n </div>\n </form>\n <!-- END FORM-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/staff/user/view/view.permit.modules.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row left-margin" data-ng-init="getModules()">\n <div data-ng-repeat="module in modules" data-ng-if="!module.ModuleId && ((module.id === 8 && license.chat) || (module.id === 9 && license.mail) || (module.id === 10 && license.fax) || (module.id === 11 && license.messaging) || (module.id === 20 && license.openchannel) || !_.includes([8,9,10,11,20],module.id))">\n <div class="form-group" data-ng-class="{\'left-margin-40\':module.ModuleId}">\n <span data-ng-if="module.ModuleId">└──</span> <input\n bs-switch\n class="form-control"\n ng-model="module.status"\n type="checkbox"\n data-ng-change="updatePermissions(module)"\n switch-active="{{ moduleSwitch.isActive }}"\n switch-on-text="{{ moduleSwitch.onText }}"\n switch-off-text="{{ moduleSwitch.offText }}"\n switch-on-color="{{ moduleSwitch.onColor }}"\n switch-off-color="{{ moduleSwitch.offColor }}"\n switch-animate="{{ moduleSwitch.animate }}"\n switch-size="{{ moduleSwitch.size }}"\n switch-label="{{ moduleSwitch.label }}"\n switch-icon="{{ moduleSwitch.icon }}"\n switch-radio-off="{{ moduleSwitch.radioOff }}"\n switch-label-width="{{ moduleSwitch.labelWidth }}"\n switch-handle-width="{{ moduleSwitch.handleWidth }}">\n <label class="control-label">{{module.title | translate | trusted}}</label>\n </div>\n <div ng-slide-down="module.status" lazy-render duration="0.5">\n <div data-ng-repeat="subModule in module.SubModules" data-ng-if="(subModule.id === 8 && license.chat) || (subModule.id === 9 && license.mail) || (subModule.id === 10 && license.fax) || (subModule.id === 11 && license.messaging) || (subModule.id === 20 && license.openchannel) || !_.includes([8,9,10,11,20],subModule.id)">\n <div class="form-group" data-ng-class="{\'left-margin-40\':module.ModuleId}">\n <span>└──</span> <input\n bs-switch\n class="form-control"\n ng-model="subModule.status"\n type="checkbox"\n data-ng-change="updatePermissions(subModule)"\n switch-active="{{ moduleSwitch.isActive }}"\n switch-on-text="{{ moduleSwitch.onText }}"\n switch-off-text="{{ moduleSwitch.offText }}"\n switch-on-color="{{ moduleSwitch.onColor }}"\n switch-off-color="{{ moduleSwitch.offColor }}"\n switch-animate="{{ moduleSwitch.animate }}"\n switch-size="{{ moduleSwitch.size }}"\n switch-label="{{ moduleSwitch.label }}"\n switch-icon="{{ moduleSwitch.icon }}"\n switch-radio-off="{{ moduleSwitch.radioOff }}"\n switch-label-width="{{ moduleSwitch.labelWidth }}"\n switch-handle-width="{{ moduleSwitch.handleWidth }}">\n <label class="control-label">{{subModule.title | translate}}</label>\n </div>\n <div ng-slide-down="subModule.status" lazy-render duration="0.5">\n <div data-ng-repeat="subModule2 in subModule.SubModules" class="form-group" data-ng-class="{\'left-margin-40\':module.ModuleId}">\n <span style="margin-left:40px">└──</span> <input\n bs-switch\n class="form-control"\n ng-model="subModule2.status"\n type="checkbox"\n data-ng-change="updatePermissions(subModule2)"\n switch-active="{{ moduleSwitch.isActive }}"\n switch-on-text="{{ moduleSwitch.onText }}"\n switch-off-text="{{ moduleSwitch.offText }}"\n switch-on-color="{{ moduleSwitch.onColor }}"\n switch-off-color="{{ moduleSwitch.offColor }}"\n switch-animate="{{ moduleSwitch.animate }}"\n switch-size="{{ moduleSwitch.size }}"\n switch-label="{{ moduleSwitch.label }}"\n switch-icon="{{ moduleSwitch.icon }}"\n switch-radio-off="{{ moduleSwitch.radioOff }}"\n switch-label-width="{{ moduleSwitch.labelWidth }}"\n switch-handle-width="{{ moduleSwitch.handleWidth }}">\n <label class="control-label">{{subModule2.title | translate}}</label>\n </div>\n </div>\n </div>\n </div>\n </div>\n <!-- END PAGE CONTENT-->\n'),a.put("app/staff/user/view/view.permit.openchannel.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12" data-ng-init="initOpenchannelQueues()">\n <!-- BEGIN FORM-->\n <form action="#" class="form-horizontal form-row-seperated">\n <div class="form-body">\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-permit">\n </div>\n </div>\n </div>\n </form>\n <!-- END FORM-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/staff/user/view/view.permit.sms.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12" data-ng-init="initSmsQueues()">\n <!-- BEGIN FORM-->\n <form action="#" class="form-horizontal form-row-seperated">\n <div class="form-body">\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-permit">\n </div>\n </div>\n </div>\n </form>\n <!-- END FORM-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/staff/user/view/view.permit.voice.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12" data-ng-init="initVoiceQueues()">\n <!-- BEGIN FORM-->\n <form action="#" class="form-horizontal form-row-seperated">\n <div class="form-body">\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-permit">\n </div>\n </div>\n </div>\n </form>\n <!-- END FORM-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/staff/user/view/view.voice.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_ACCOUNT\' | translate}} {{ \'APPLICATION_VOICE\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body">\n <form name="forms.info" data-ng-submit="updateItem()" novalidate>\n\n <!-- START INTERNAL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.internal.$touched || forms.info.$submitted) && forms.info.internal.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERNAL_NUMBER\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="1" name="internal" placeholder="{{\'APPLICATION_INTERNAL_NUMBER\' | translate}}" class="form-control" data-ng-model="user.internal" required readonly/>\n <span data-ng-show="(forms.info.internal.$touched || forms.info.$submitted) && forms.info.internal.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.internal.$touched || forms.info.$submitted) && forms.info.internal.$error.ngRemoteValidate" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_EXIST_INTERNAL\' | translate}}.\n </span>\n </div>\n <!-- END INTERNAL -->\n\n <!-- START TRANSPORT -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TRANSPORT\' | translate}}</label>\n <ui-select multiple name="transport" ng-model="user.transport" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="Select transport...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="transport in [\'udp\', \'tcp\', \'ws\', \'wss\'] | filter: $select.search">\n {{transport}}\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_TRANSPORT\' | translate }}\n </span>\n </div>\n <!-- END TRANSPORT -->\n\n <!-- START CODEC -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ALLOWED_CODECS\' | translate}}</label>\n <ui-select multiple ng-model="user.allow" name="allow" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="Select codec...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="allow in [\'g722\', \'g729\', \'ilbc\', \'gsm\', \'ulaw\', \'alaw\', \'opus\'] | filter: $select.search">\n {{allow}}\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_CODEC\' | translate }}\n </span>\n </div>\n <!-- END CODEC -->\n\n <!-- START CALLGROUP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.voice.callgroup.$touched || forms.voice.$submitted) && forms.voice.callgroup.$invalid}">\n <label class="control-label">{{\'APPLICATION_CALLGROUP\' | translate}}</label>\n <input type="text" name="callgroup" placeholder="{{\'APPLICATION_CALLGROUP\' | translate}}" class="form-control" data-ng-model="user.callgroup"/>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_CALLGROUP\' | translate }}\n </span>\n <span data-ng-show="(forms.voice.callgroup.$touched || forms.voice.$submitted) && forms.voice.callgroup.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CALLGROUP -->\n\n <!-- START PICKUPGROUP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.voice.pickupgroup.$touched || forms.voice.$submitted) && forms.voice.pickupgroup.$invalid}">\n <label class="control-label">{{\'APPLICATION_PICKUPGROUP\' | translate}}</label>\n <input type="text" name="pickupgroup" placeholder="{{\'APPLICATION_PICKUPGROUP\' | translate}}" class="form-control" data-ng-model="user.pickupgroup"/>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_PICKUPGROUP\' | translate }}\n </span>\n <span data-ng-show="(forms.voice.pickupgroup.$touched || forms.voice.$submitted) && forms.voice.pickupgroup.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PICKUPGROUP -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/staff/user/wizard/wizard.html",'<div class="col-md-12">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-puzzle"></i>\n <a href="#">{{ \'APPLICATION_STAFF\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-eye"></i>\n <a href="/staff/users/list">{{ \'APPLICATION_USERS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-options"></i>\n <a href="/staff/users/wizard">{{ \'APPLICATION_WIZARD\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered" data-ng-init="initWizard();">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-user font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_USER\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_ACCOUNT\' | translate}}" canexit="exitValidation(forms.info.$valid)">\n <form name="forms.info" novalidate>\n\n <!-- START ROLE -->\n <div class="form-group" data-ng-if="Auth.getCurrentUser().role === \'admin\'">\n <label class="control-label">{{ \'APPLICATION_ROLE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select name="role" data-ng-model="item.role" theme="bootstrap" required>\n <ui-select-match placeholder="Select role...">{{$select.selected | uppercase}}</ui-select-match>\n <ui-select-choices repeat="role in [\'user\', \'admin\'] | filter: $select.search">\n {{role | uppercase}}\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END ROLE -->\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$invalid}">\n <label class="control-label">{{\'APPLICATION_FULLNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="fullname" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.fullname" required/>\n <span data-ng-show="(forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="item.name" data-ng-pattern="settings.patternName" required />\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START EMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="email" name="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" class="form-control" data-ng-model="item.email" required />\n <span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.email" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END EMAIL -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.password" data-ng-pattern="setting.securePassword ? settings.patternPassword : settings.patternPasswordLight" required/>\n <span class="help-block">\n {{setting.securePassword ? \'MESSAGE_PASSWORD_FORMAT\' : \'MESSAGE_PASSWORD_LIGHT_FORMAT\' | translate}}\n </span>\n <span data-ng-show="(forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START RE PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.rpassword.$touched || forms.info.$submitted) && forms.info.rpassword.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="rpassword" placeholder="{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.rpassword" nx-equal="item.password" required/>\n <span data-ng-show="(forms.info.rpassword.$touched || forms.info.$submitted) && forms.info.rpassword.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.rpassword.$touched || forms.info.$submitted) && forms.info.rpassword.$error.nxEqual" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_PASSWORD\' | translate}}.\n </span>\n </div>\n <!-- END RE PASSWORD -->\n\n <!-- START INTERNAL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.internal.$touched || forms.info.$submitted) && forms.info.internal.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERNAL_NUMBER\' | translate}}<span class="required" aria-required="true">*</span></label>\n <div class="input-group">\n <input type="number" min="1" name="internal" placeholder="{{\'APPLICATION_INTERNAL_NUMBER\' | translate}}" class="form-control" data-ng-model="item.internal" data-ng-disabled="!item.internalEnabled" data-ng-required="item.internalEnabled"/>\n <span class="input-group-addon">\n <input type="checkbox" data-ng-model="item.internalEnabled">\n </span>\n </div>\n <span data-ng-show="(forms.info.internal.$touched || forms.info.$submitted) && forms.info.internal.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERNAL -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END PORTLET-->\n</div>\n'),a.put("app/sugarcrm/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-handbag"></i>\n <a href="/sugarcrm/list">{{ \'APPLICATION_SUGARCRM\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-handbag font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_SUGARCRM\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="/sugarcrm/wizard" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_ACCOUNT\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/sugarcrm/view/configuration/list/create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_CONFIGURATION\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.name.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(form.name.$touched || form.name.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START CHANNEL -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.channel.$touched || form.channel.$submitted) && form.channel.$invalid}">\n <label class="control-label">{{\'APPLICATION_CHANNEL\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.channel" name="channel" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_CHANNEL\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="channel.value as channel in channels | filter: $select.search">\n <div data-ng-bind="channel.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form.channel.$touched || form.channel.$submitted) && form.channel.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- START CHANNEL -->\n\n <!-- START VOICE SUBTYPE -->\n <div data-ng-if="item.channel===\'voice\'" class="form-group" data-ng-class="{\'has-error\': (form.channel.$touched || form.channel.$submitted) && form.channel.$invalid}">\n <label class="control-label">{{\'APPLICATION_TYPE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.type" name="type" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_TYPE\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="type in [\'Queue\',\'Outbound\'] | filter: $select.search">\n <div data-ng-bind="type | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form.type.$touched || form.type.$submitted) && form.type.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- START CHANNEL -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/sugarcrm/view/configuration/list/list.html",'<div ui-view class="profile-content">\n <div class="row">\n <div class="col-md-12">\n <div class="portlet light" data-ng-init="initView()">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_CONFIGURATIONS\' | translate}}</span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="#" data-ng-click="createItem()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_CONFIGURATION\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/sugarcrm/view/configuration/view/view.html",'<div class="row" data-ng-init="initView();getConfiguration();getCustomVariables();getFields();getModules();">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_CONFIGURATION\' | translate}}: {{configurationName}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_SUBJECT\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_DESCRIPTION\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_3" data-toggle="tab">{{\'APPLICATION_FIELDS\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_4" data-toggle="tab">{{\'APPLICATION_MAPPING\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- SUBJECT TAB -->\n <div class="tab-pane ui-padding active" id="tab_1_1">\n <div class="row">\n <div class="col-md-11">\n <span class="caption-subject">All following fields will be join by blank space:</span>\n </div>\n <div class="col-md-1 pull-rigth">\n <button class="btn btn-icon-only green" data-ng-click="addItem(\'subject\')"><i class="fa fa-plus"></i></button>\n </div>\n </div>\n <hr>\n <!-- <div id="subject-item-list" ng-scrollbars ng-scrollbars-config="config"> -->\n <div class="row" data-ng-repeat="subjectItem in subjectConfig">\n <div class="col-md-3">\n <ui-select ng-model="subjectItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeType(subjectItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices repeat="item.type as item in fieldType | filter: $select.search">\n <div ng-bind-html="item.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-8" data-ng-if="subjectItem.type==\'string\'">\n <div class="form-group">\n <input type="text" class="form-control" data-ng-model="subjectItem.content" data-ng-change="updateField(subjectItem)">\n </div>\n </div>\n <div class="col-md-8" data-ng-if="subjectItem.type==\'variable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="subjectItem.variableName" data-ng-change="updateField(subjectItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices group-by="groupVariableByGroup" repeat="variable.name as variable in variables | filter: $select.search">\n <div ng-bind-html="variable.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-8" data-ng-if="subjectItem.type==\'customVariable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="subjectItem.VariableId" data-ng-change="updateField(subjectItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="variable.id as variable in customVariables | filter: $select.search">\n <div ng-bind-html="variable.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-1">\n <div class="form-group">\n <button class="btn btn-icon-only red" data-ng-click="removeItem(subjectItem)"><i class="fa fa-times"></i></button>\n </div>\n </div>\n </div>\n <!-- </div> -->\n </div>\n <!-- END SUBJECT TAB -->\n <!-- DESCRIPTION TAB -->\n <div class="tab-pane ui-padding" id="tab_1_2">\n <div class="row">\n <div class="col-md-11">\n <span class="caption-subject">All following fields will be join by new line:</span>\n </div>\n <div class="col-md-1 pull-rigth">\n <button class="btn btn-icon-only green" data-ng-click="addItem(\'description\')"><i class="fa fa-plus"></i></button>\n </div>\n </div>\n <hr>\n <!-- <div id="description-item-list" ng-scrollbars ng-scrollbars-config="config"> -->\n <div class="row" data-ng-repeat="descriptionItem in descriptionConfig">\n <div class="col-md-2">\n <ui-select ng-model="descriptionItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeDescType(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices repeat="item.type as item in descFieldType | filter: $select.search">\n <div ng-bind-html="item.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-9" data-ng-if="descriptionItem.type==\'string\'">\n <div class="form-group">\n <input type="text" class="form-control" data-ng-model="descriptionItem.content" data-ng-change="updateField(descriptionItem)">\n </div>\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\'">\n <input type="text" class="form-control" placeholder="Key" data-ng-model="descriptionItem.key" data-ng-change="updateField(descriptionItem)">\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\'">\n <ui-select ng-model="descriptionItem.keyType" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeDescType(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices repeat="item.type as item in fieldType | filter: $select.search">\n <div ng-bind-html="item.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\' && descriptionItem.keyType==\'string\'">\n <input type="text" class="form-control" placeholder="Value" data-ng-model="descriptionItem.keyContent" data-ng-change="updateField(descriptionItem)">\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\' && descriptionItem.keyType==\'variable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="descriptionItem.variableName" data-ng-change="updateField(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices group-by="groupVariableByGroup" repeat="variable.name as variable in variables | filter: $select.search">\n <div ng-bind-html="variable.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\' && descriptionItem.keyType==\'customVariable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="descriptionItem.VariableId" data-ng-change="updateField(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="variable.id as variable in customVariables | filter: $select.search">\n <div ng-bind-html="variable.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-1">\n <div class="form-group">\n <button class="btn btn-icon-only red" data-ng-click="removeItem(descriptionItem)"><i class="fa fa-times"></i></button>\n </div>\n </div>\n </div>\n <!-- </div> -->\n </div>\n <!-- END DESCRIPTION TAB -->\n <!-- FIELDS TAB -->\n <div class="tab-pane ui-padding" id="tab_1_3">\n <div class="row">\n <div class="col-md-11">\n <span class="caption-subject">Add how to fill the fields present in your account:</span>\n </div>\n <div class="col-md-1 pull-rigth">\n <button class="btn btn-icon-only green" data-ng-click="addItem(\'field\')"><i class="fa fa-plus"></i></button>\n </div>\n </div>\n <hr>\n <!-- <div id="field-item-list" ng-scrollbars ng-scrollbars-config="config"> -->\n <div class="row" data-ng-repeat="fieldItem in fieldConfig">\n <div class="col-md-3">\n <ui-select ng-model="fieldItem.idField" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeFieldType(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.label}}</ui-select-match>\n <ui-select-choices repeat="item.name as item in accountFields | filter: $select.search">\n <div ng-bind-html="item.label | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-8" data-ng-if="getSystemFieldOptions(fieldItem.idField)">\n <div class="form-group">\n <ui-select ng-model="fieldItem.content" theme="bootstrap" ng-disabled="disabled" data-ng-change="updateField(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="item.value as item in getSystemFieldOptions(fieldItem.idField) | filter: $select.search">\n <div ng-bind-html="item.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField)">\n <div class="form-group">\n <ui-select ng-model="fieldItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeType(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices repeat="item.type as item in fieldType | filter: $select.search">\n <div ng-bind-html="item.title | highlight: $select.search | ucfirst"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'string\'">\n <div class="form-group">\n <input type="text" class="form-control" data-ng-model="fieldItem.content" data-ng-change="updateField(fieldItem)">\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'variable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="fieldItem.variableName" data-ng-change="updateField(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices group-by="groupVariableByGroup" repeat="variable.name as variable in variables | filter: $select.search">\n <div ng-bind-html="variable.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'customVariable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="fieldItem.VariableId" data-ng-change="updateField(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="variable.id as variable in customVariables | filter: $select.search">\n <div ng-bind-html="variable.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-1">\n <div class="form-group">\n <button class="btn btn-icon-only red" data-ng-click="removeItem(fieldItem)"><i class="fa fa-times"></i></button>\n </div>\n </div>\n </div>\n <!-- </div> -->\n </div>\n <!-- END FIELDS TAB -->\n <!-- TAG TAB -->\n <div class="tab-pane ui-padding" id="tab_1_4">\n\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="spinner-grid" spinner-start-active="false"></span>\n <!-- END UI-GRID SPINNER -->\n\n <div class="row">\n <div class="col-md-12">\n <span class="caption-subject">Select the mapping procedure that the current configuration will use:</span>\n </div>\n </div>\n <hr>\n <form name="forms.mapping" data-ng-submit="updateMapping()" novalidate>\n\n <!-- DEFAULT MAPPING -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DEFAULT_MAPPING\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="mapping.defaultMapping"\n type="checkbox",\n name="defaultMapping"\n switch-active="{{ defaultMappingSwitch.isActive }}"\n switch-on-text="{{ defaultMappingSwitch.onText }}"\n switch-off-text="{{ defaultMappingSwitch.offText }}"\n switch-on-color="{{ defaultMappingSwitch.onColor }}"\n switch-off-color="{{ defaultMappingSwitch.offColor }}"\n switch-animate="{{ defaultMappingSwitch.animate }}"\n switch-size="{{ defaultMappingSwitch.size }}"\n switch-label="{{ defaultMappingSwitch.label }}"\n switch-icon="{{ defaultMappingSwitch.icon }}"\n switch-radio-off="{{ defaultMappingSwitch.radioOff }}"\n switch-label-width="{{ defaultMappingSwitch.labelWidth }}"\n switch-handle-width="{{ defaultMappingSwitch.handleWidth }}">\n </div>\n <!-- END DEFAULT MAPPING -->\n\n <div class="row" data-ng-if="!mapping.defaultMapping">\n <div class="col-md-6">\n <div class="form-group" data-ng-class="{\'has-error\': (forms.mapping.mappingModule.$touched || forms.mapping.$submitted) && forms.mapping.mappingModule.$invalid}">\n <label class="control-label">{{\'APPLICATION_MAPPING_MODULE\' | translate}} <span class="required" aria-required="true">*</span></label>\n <ui-select ng-model="mapping.mappingModule" theme="bootstrap" name="mappingModule" required ng-disabled="disabled" data-ng-change="updateMappingModule()">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.label}}</ui-select-match>\n <ui-select-choices repeat="item.key as item in accountModules | filter: $select.search">\n <div ng-bind-html="item.label | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.mapping.mappingModule.$touched || forms.mapping.$submitted) && forms.mapping.mappingModule.$invalid && forms.mapping.mappingModule.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n\n <div class="row" data-ng-if="!mapping.defaultMapping">\n <div class="col-md-12">\n <div class="form-group" data-ng-class="{\'has-error\': (forms.mapping.mappingFields.$touched || forms.mapping.$submitted) && forms.mapping.mappingFields.$invalid}">\n <label class="control-label">{{\'APPLICATION_MAPPING_FIELDS\' | translate}} <span class="required" aria-required="true">*</span></label>\n <ui-select multiple data-ng-model="mapping.mappingFields" theme="bootstrap" name="mappingFields" ng-disabled="disabled" required>\n <ui-select-match placeholder="{{ \'APPLICATION_MAPPING_FIELDS\' | translate }}">{{$item.label}}</ui-select-match>\n <ui-select-choices repeat="moduleField.name as moduleField in moduleFields | filter: $select.search">\n {{moduleField.label}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.mapping.mappingFields.$touched || forms.mapping.$submitted) && forms.mapping.mappingFields.$invalid && forms.mapping.mappingFields.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}" data-ng-disabled="forms.mapping.$invalid"/>\n </form>\n </div>\n <!-- END TAG TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'), +a.put("app/sugarcrm/view/view.account.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_ACCOUNT\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERALS\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.formSetting" data-ng-submit="forms.formSetting.$valid && updateItem()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.name" required/>\n <span data-ng-show="forms.formSetting.name.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="account.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="account.username" required/>\n <span data-ng-show="forms.formSetting.username.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START REMOTE ADDRESS -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.remoteUri.$invalid}">\n <label class="control-label">{{\'APPLICATION_REMOTE_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="remoteUri" placeholder="{{\'APPLICATION_REMOTE_ADDRESS\' | translate}}" class="form-control" data-ng-model="account.remoteUri" required />\n <span data-ng-show="forms.formSetting.remoteUri.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="account.password" required/>\n <span data-ng-show="forms.formSetting.apiKey.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START SERVER URL -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.serverUrl.$invalid}">\n <label class="control-label">{{\'APPLICATION_MOTION_ADDRESS\' | translate}}</label>\n <input type="url" name="serverUrl" placeholder="{{\'APPLICATION_MOTION_ADDRESS\' | translate}}" class="form-control" data-ng-model="account.serverUrl"/>\n <span class="help-block">\n {{\'DESCRIPTION_SERVER_URL\' | translate}}.\n </span>\n <span class="help-block help-block-info">\n {{\'MESSAGE_MOTION_ADDRESS_FORMAT\' | translate}}\n </span>\n </div>\n <!-- END SERVER URL -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/sugarcrm/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-handbag"></i>\n <a href="/sugarcrm/list">{{ \'APPLICATION_SUGARCRM\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <a href="#">{{account.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img src="assets/images/media/sugarcrm.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{account.name}}\n </div>\n <div class="profile-usertitle-job">\n {{account.remoteUri}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.sugarcrm.view.account\')}">\n <a ng-href="/sugarcrm/view/{{account.id}}/account">\n <i class="icon-user"></i>\n {{ \'APPLICATION_ACCOUNT\' | translate }} </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.sugarcrm.view.configurations\') || $state.is(\'main.sugarcrm.view.configuration\')}">\n <a ng-href="/sugarcrm/view/{{account.id}}/configurations/list">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_CONFIGURATIONS\' | translate }} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/sugarcrm/wizard/wizard.html",'<!-- BEGIN PAGE HEADER-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-handbag"></i>\n <a href="/sugarcrm/list">{{ \'APPLICATION_SUGARCRM\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n<!-- END PAGE HEADER-->\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initWizard()">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACCOUNT\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_ACCOUNT_INFO\' | translate}}" canexit="exitValidation(forms.formSetting.$valid)">\n <form name="forms.formSetting" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="forms.formSetting.name.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="item.username" required/>\n <span data-ng-show="forms.formSetting.username.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n\n <!-- START REMOTE ADDRESS -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.remoteUri.$invalid}">\n <label class="control-label">{{\'APPLICATION_REMOTE_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="remoteUri" placeholder="{{\'APPLICATION_REMOTE_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.remoteUri" required ng-remote-validate="/api/sugarcrm/accounts/validate/remoteUri"/>\n <span data-ng-show="forms.formSetting.remoteUri.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.formSetting.remoteUri.$touched || forms.formSetting.$submitted) && forms.formSetting.remoteUri.$error.ngRemoteValidate" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_EXIST_DOMAIN\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.password" required/>\n <span data-ng-show="forms.formSetting.apiKey.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START SERVER URL -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.serverUrl.$invalid}">\n <label class="control-label">{{\'APPLICATION_MOTION_ADDRESS\' | translate}}</label>\n <input type="url" name="serverUrl" placeholder="{{\'APPLICATION_MOTION_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.serverUrl"/>\n <span class="help-block">\n {{\'DESCRIPTION_SERVER_URL\' | translate}}.\n </span>\n <span class="help-block help-block-info">\n {{\'MESSAGE_MOTION_ADDRESS_FORMAT\' | translate}}\n </span>\n </div>\n <!-- END SERVER URL -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" data-ng-click="next()"/>\n\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n\n </wizard>\n\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/tools/answer/list/list.create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_CANNED_ANSWER\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.key.$touched || form.$submitted) && form.key.$invalid}">\n <label class="control-label">{{\'APPLICATION_KEY\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="key" placeholder="{{\'APPLICATION_KEY\' | translate}}" class="form-control" data-ng-model="item.key" required/>\n <span data-ng-show="(form.key.$touched || form.$submitted) && form.key.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START VALUE -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.value.$touched || form.$submitted) && form.value.$invalid}">\n <label class="control-label">{{\'APPLICATION_VALUE\' | translate}}<span class="required" aria-required="true">*</span></label></label>\n <textarea type="text" name="value" placeholder="{{\'APPLICATION_VALUE\' | translate}}" class="form-control" data-ng-model="item.value" required></textarea>\n <span data-ng-show="(form.value.$touched || form.$submitted) && form.value.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END VALUE -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/tools/answer/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-wrench"></i>\n <a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-magic-wand"></i>\n <a href="#">{{ \'APPLICATION_CANNED_ANSWERS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-magic-wand font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_CANNED_ANSWERS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <a class="btn green-jungle" href="#" data-toggle="dropdown" data-ng-click="createItem()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_CANNED_ANSWER\' | translate }}\n </a>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/tools/answer/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getAnswer()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-wrench"></i>\n <a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-magic-wand"></i>\n <a href="/tools/answers/list">{{ \'APPLICATION_CANNED_ANSWER\' | translate }}</a>\n <i data-ng-show="answer" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="answer">\n <a href="#">{{answer.key}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/answer.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{answer.name}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.tools.answers.view.settings\')}">\n <a data-ng-href="/tools/answers/view/{{answer.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}}\n </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/tools/answer/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_CANNED_ANSWER\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateAnswer()" novalidate>\n\n <!-- START KEY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.key.$touched || forms.general.$submitted) && forms.general.key.$invalid}">\n <label class="control-label">{{\'APPLICATION_KEY\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="key" placeholder="{{\'APPLICATION_KEY\' | translate}}" class="form-control" data-ng-model="answer.key" required/>\n <span data-ng-show="(forms.general.key.$touched || forms.general.$submitted) && forms.general.key.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END KEY -->\n\n <!-- START VALUE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.value.$touched || forms.general.$submitted) && forms.general.value.$invalid}">\n <label class="control-label">{{\'APPLICATION_VALUE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <textarea type="text" name="value" placeholder="{{\'APPLICATION_VALUE\' | translate}}" class="form-control" data-ng-model="answer.value" required></textarea>\n <span data-ng-show="(forms.general.value.$touched || forms.general.$submitted) && forms.general.value.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END VALUE -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="answer.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ADVANCED TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/tools/automation/list/list.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-wrench"></i>\n <a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-bulb"></i>\n <a href="#">{{ \'APPLICATION_AUTOMATIONS\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-bulb font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_AUTOMATIONS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle " href="/tools/automations/wizard">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_AUTOMATION\' | translate }}\n </a>\n </div>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/tools/automation/view/view.html",'<!-- BEGIN PAGE HEADER-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-settings"></i>\n <a href="/tools/automations/list">{{ \'APPLICATION_AUTOMATIONS\' | translate }}</a>\n <i class="fa fa-angle-right" data-ng-show="automation"></i>\n </li>\n <li data-ng-show="automation">\n <a href="#">{{ automation.description || automation.name }}</a>\n </li>\n </ul>\n </div>\n\n<!-- END PAGE HEADER-->\n\n<!-- BEGIN PAGE CONTENT-->\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/automation.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{ automation.name }}\n </div>\n <div class="profile-usertitle-job">\n {{ automation.description }}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.tools.automations.view.settings\')}">\n <a href="/tools/automations/view/{{automation.id}}/settings">\n <i class="icon-bulb"></i>\n {{ \'APPLICATION_SETTINGS\' | translate }} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/tools/automation/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERALS\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_CONDITIONS\' | translate}} & {{\'APPLICATION_ACTIONS\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <form name="forms.general" data-ng-submit="exitValidation(forms.general.$valid) && updateAutomation()" novalidate>\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="automation.name" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START CHANNEL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.channel.$touched || forms.general.$submitted) && forms.general.channel.$invalid}">\n <label class="control-label">{{\'APPLICATION_CHANNEL\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="channel" placeholder="{{\'APPLICATION_CHANNEL\' | translate}}" class="form-control" data-ng-model="automation.channel" required readonly/>\n <span data-ng-show="(forms.general.channel.$touched || forms.general.$submitted) && forms.general.channel.$invalid && forms.general.channel.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CHANNEL -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.timeout.$touched && forms.general.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} ({{\'APPLICATION_MINUTES\' | translate}})</label>\n <input type="number" name="timeout" min="10" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}} (min 10 {{\'APPLICATION_MINUTES\' | translate}})" class="form-control" data-ng-model="automation.timeout" data-ng-init="item.timeout = 10" required/>\n <span data-ng-show="forms.general.timeout.$touched && forms.general.name.$invalid && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START STATUS -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_STATUS\' | translate}}</label>\n </br>\n <input bs-switch class="form-control" ng-model="automation.status" type="checkbox" name="status" switch-active="{{ recordSwitch.isActive }}" switch-on-text="{{ recordSwitch.onText }}" switch-off-text="{{ recordSwitch.offText }}" switch-on-color="{{ recordSwitch.onColor }}"\n switch-off-color="{{ recordSwitch.offColor }}" switch-animate="{{ recordSwitch.animate }}" switch-size="{{ recordSwitch.size }}" switch-label="{{ recordSwitch.label }}" switch-icon="{{ recordSwitch.icon }}" switch-radio-off="{{ recordSwitch.radioOff }}"\n switch-label-width="{{ recordSwitch.labelWidth }}" switch-handle-width="{{ recordSwitch.handleWidth }}">\n </div>\n <!-- END STATUS -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="automation.description" />\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}" />\n </div>\n <!-- END GENERAL TAB -->\n <div class="tab-pane" id="tab_1_2">\n <!-- All -->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <i class="icon-tag font-blue-hoki"></i>\n <span class="caption-subject" ng-bind-html="\'APPLICATION_MEET_ALL_CONDITIONS\' | translate"></span>:\n </div>\n </div>\n <div class="portlet-body">\n <div class="portlet light bordered" ng-repeat="all in automation.All">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <span class="caption-subject">{{ \'APPLICATION_ALL\' | translate }} #{{$index+1}}</span>\n </div>\n <div class="actions">\n <a href="#" class="btn red-sunglo btn-icon-only" ng-click="removeCondition(\'All\',$index)"><i class="fa fa-trash"></i></a>\n </div>\n </div>\n <div class="portlet-body">\n <div class="padding-bottom row">\n <div class="col-md-12">\n <condition-builder element="all" serviceindex="automation.channel" service="$automations" form="forms.general"></condition-builder>\n </div>\n </div>\n </div>\n </div>\n <div class="row">\n <div class="col-md-12">\n <button type="button" class="btn btn-sm green padding-bottom" data-ng-click="addCondition(\'All\')">\n <i class="fa fa-plus"></i> {{\'APPLICATION_ADD_CONDITION\' | translate}}\n </button>\n </div>\n </div>\n </div>\n </div>\n\n <!-- Any -->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <i class="icon-tag font-blue-hoki"></i>\n <span class="caption-subject" ng-bind-html="\'APPLICATION_MEET_ANY_CONDITIONS\' | translate"></span>:\n </div>\n </div>\n <div class="portlet-body">\n <div class="portlet light bordered" ng-repeat="any in automation.Any">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <span class="caption-subject">{{ \'APPLICATION_ANY\' | translate }} #{{$index+1}}</span>\n </div>\n <div class="actions">\n <a href="#" class="btn red-sunglo btn-icon-only" ng-click="removeCondition(\'Any\',$index)"><i class="fa fa-trash"></i></a>\n </div>\n </div>\n <div class="portlet-body">\n <div class="padding-bottom row">\n <div class="col-md-12">\n <condition-builder element="any" serviceindex="automation.channel" service="$automations" form="forms.general"></condition-builder>\n </div>\n </div>\n </div>\n </div>\n <div class="row">\n <div class="col-md-12">\n <button type="button" class="btn btn-sm green padding-bottom" data-ng-click="addCondition(\'Any\')">\n <i class="fa fa-plus"></i> {{\'APPLICATION_ADD_CONDITION\' | translate}}\n </button>\n </div>\n </div>\n </div>\n </div>\n\n <!-- Actions -->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <i class="icon-tag font-blue-hoki"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACTIONS\' | translate }}</span>:\n </div>\n </div>\n <div class="portlet-body">\n <div class="portlet light bordered" ng-repeat="action in automation.Actions">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <span class="caption-subject">{{ \'APPLICATION_ACTIONS\' | translate }} #{{$index+1}}</span>\n </div>\n <div class="actions">\n <a href="#" class="btn red-sunglo btn-icon-only" ng-click="removeAction($index)"><i class="fa fa-trash"></i></a>\n </div>\n </div>\n <div class="portlet-body">\n <div class="padding-bottom row">\n <div class="col-md-12">\n <div class="form-group col-md-6" data-ng-class="{\'has-error\': (forms.general[\'action\'+$index].$touched || forms.general.$submitted) && forms.general[\'action\'+$index].$invalid}">\n <ui-select data-ng-model="action.action" theme="bootstrap" data-ng-change="resetActionData(action)" name="action{{$index}}" required>\n <ui-select-match placeholder="{{ \'APPLICATION_ACTION\' | translate }}">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="tAction.value as tAction in $automations.services[automation.channel].actions | filter: $select.search">\n <div ng-bind-html="tAction.name | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'APPLICATION_ACTION\' | translate }}\n </span>\n <span data-ng-show="(forms.general[\'action\'+$index].$touched || forms.general.$submitted) && forms.general[\'action\'+$index].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div ng-switch="action.action">\n <action-builder-status ng-switch-when="status" element="action" form="forms.settings"></action-builder-status>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class="row">\n <div class="col-md-12">\n <button type="button" class="btn btn-sm green padding-bottom" data-ng-click="addAction()">\n <i class="fa fa-plus"></i> {{\'APPLICATION_ADD_ACTION\' | translate}}\n </button>\n </div>\n </div>\n </div>\n </div>\n <div class="has-error" data-ng-show="forms.general.$submitted && !automation.All.length && !automation.Any.length">\n <span class="help-block help-block-error form-control">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INSERT_AT_LEAST_ONE_CONDITION\' | translate}}.\n </span>\n </div>\n <div class="has-error" data-ng-show="forms.general.$submitted && !automation.Actions.length">\n <span class="help-block help-block-error form-control">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INSERT_AT_LEAST_ONE_ACTION\' | translate}}.\n </span>\n </div>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}" />\n </div>\n </div>\n </form>\n </div>\n </div>\n </div>\n</div>\n'), +a.put("app/tools/automation/wizard/wizard.html",'<div class="row">\n <div class="col-md-12">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-settings"></i>\n <a href="/tools/automations/list">{{ \'APPLICATION_AUTOMATIONS\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-bulb font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_AUTOMATIONS\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_GENERAL\' | translate}}" canexit="exitValidation(forms.general.$valid)">\n <form name="forms.general" data-ng-submit="submit()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.name.$touched && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="forms.general.name.$touched && forms.general.name.$invalid && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START STATUS -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_STATUS\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="item.status"\n type="checkbox"\n name="status"\n data-ng-init="item.status = 0"\n switch-active="{{ statusSwitch.isActive }}"\n switch-on-text="{{ statusSwitch.onText }}"\n switch-off-text="{{ statusSwitch.offText }}"\n switch-on-color="{{ statusSwitch.onColor }}"\n switch-off-color="{{ statusSwitch.offColor }}"\n switch-animate="{{ statusSwitch.animate }}"\n switch-size="{{ statusSwitch.size }}"\n switch-label="{{ statusSwitch.label }}"\n switch-icon="{{ statusSwitch.icon }}"\n switch-radio-off="{{ statusSwitch.radioOff }}"\n switch-label-width="{{ statusSwitch.labelWidth }}"\n switch-handle-width="{{ statusSwitch.handleWidth }}">\n </div>\n <!-- END STATUS -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n </form>\n </wz-step>\n <wz-step title="{{\'APPLICATION_SETTINGS\' | translate}}" canexit="exitSettingsValidation(forms.settings.$valid)">\n <form name="forms.settings" novalidate>\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <i class="icon-tag font-blue-hoki"></i>\n <span class="caption-subject">{{ \'APPLICATION_CHANNEL\' | translate }}</span>\n </div>\n </div>\n <div class="portlet-body">\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.channel.$touched || forms.settings.$submitted) && forms.settings.channel.$invalid}">\n <label class="control-label">{{ \'APPLICATION_CHANNEL\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.channel" name="channel" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_CHANNEL\' | translate }}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="channel in $automations.channels | filter: $select.search">\n <div ng-bind-html="channel | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.channel.$touched || forms.settings.$submitted) && forms.settings.channel.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n\n <!-- All -->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <i class="icon-tag font-blue-hoki"></i>\n <span class="caption-subject" ng-bind-html="\'APPLICATION_MEET_ALL_CONDITIONS\' | translate"></span>:\n </div>\n </div>\n <div class="portlet-body">\n <div class="portlet light bordered" ng-repeat="all in item.All">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <span class="caption-subject">{{ \'APPLICATION_ALL\' | translate }} #{{$index+1}}</span>\n </div>\n <div class="actions">\n <a href="#" class="btn red-sunglo btn-icon-only" ng-click="removeCondition(\'All\',$index)"><i class="fa fa-trash"></i></a>\n </div>\n </div>\n <div class="portlet-body">\n <div class="padding-bottom row">\n <div class="col-md-12">\n <condition-builder element="all" serviceindex="item.channel" service="$automations" form="forms.general"></condition-builder>\n </div>\n </div>\n </div>\n </div>\n <div class="row">\n <div class="col-md-12">\n <button type="button" class="btn btn-sm green padding-bottom" data-ng-click="addCondition(\'All\')">\n <i class="fa fa-plus"></i> {{\'APPLICATION_ADD_CONDITION\' | translate}}\n </button>\n </div>\n </div>\n </div>\n </div>\n\n <!-- Any -->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <i class="icon-tag font-blue-hoki"></i>\n <span class="caption-subject" ng-bind-html="\'APPLICATION_MEET_ANY_CONDITIONS\' | translate"></span>:\n </div>\n </div>\n <div class="portlet-body">\n <div class="portlet light bordered" ng-repeat="any in item.Any">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <span class="caption-subject">{{ \'APPLICATION_ANY\' | translate }} #{{$index+1}}</span>\n </div>\n <div class="actions">\n <a href="#" class="btn red-sunglo btn-icon-only" ng-click="removeCondition(\'Any\',$index)"><i class="fa fa-trash"></i></a>\n </div>\n </div>\n <div class="portlet-body">\n <div class="padding-bottom row">\n <div class="col-md-12">\n <condition-builder element="any" serviceindex="item.channel" service="$automations" form="forms.general"></condition-builder>\n </div>\n </div>\n </div>\n </div>\n <div class="row">\n <div class="col-md-12">\n <button type="button" class="btn btn-sm green padding-bottom" data-ng-click="addCondition(\'Any\')">\n <i class="fa fa-plus"></i> {{\'APPLICATION_ADD_CONDITION\' | translate}}\n </button>\n </div>\n </div>\n </div>\n </div>\n\n <!-- Actions -->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <i class="icon-tag font-blue-hoki"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACTIONS\' | translate }}</span>:\n </div>\n </div>\n <div class="portlet-body">\n <div class="portlet light bordered" ng-repeat="action in item.Actions">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <span class="caption-subject">{{ \'APPLICATION_ACTIONS\' | translate }} #{{$index+1}}</span>\n </div>\n <div class="actions">\n <a href="#" class="btn red-sunglo btn-icon-only" ng-click="removeAction($index)"><i class="fa fa-trash"></i></a>\n </div>\n </div>\n <div class="portlet-body">\n <div class="padding-bottom row">\n <div class="col-md-12">\n <div class="form-group col-md-6" data-ng-class="{\'has-error\': (forms.general[\'action\'+$index].$touched || forms.general.$submitted) && forms.general[\'action\'+$index].$invalid}">\n <ui-select data-ng-model="action.action" theme="bootstrap" data-ng-change="resetActionData(action)" name="action{{$index}}" required>\n <ui-select-match placeholder="{{ \'APPLICATION_ACTION\' | translate }}">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="tAction.value as tAction in $automations.services[item.channel].actions | filter: $select.search">\n <div ng-bind-html="tAction.name | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'APPLICATION_ACTION\' | translate }}\n </span>\n <span data-ng-show="(forms.general[\'action\'+$index].$touched || forms.general.$submitted) && forms.general[\'action\'+$index].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div ng-switch="action.action">\n <action-builder-status ng-switch-when="status" element="action" form="forms.settings"></action-builder-status>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class="row">\n <div class="col-md-12">\n <button type="button" class="btn btn-sm green padding-bottom" data-ng-click="addAction()">\n <i class="fa fa-plus"></i> {{\'APPLICATION_ADD_ACTION\' | translate}}\n </button>\n </div>\n </div>\n </div>\n </div>\n <div class="has-error" data-ng-show="forms.settings.$submitted && !item.All.length && !item.Any.length">\n <span class="help-block help-block-error form-control">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INSERT_AT_LEAST_ONE_CONDITION\' | translate}}.\n </span>\n </div>\n <div class="has-error" data-ng-show="forms.settings.$submitted && !item.Actions.length">\n <span class="help-block help-block-error form-control">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INSERT_AT_LEAST_ONE_ACTION\' | translate}}.\n </span>\n </div>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n </form>\n </wz-step>\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/tools/interval/list/list.create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_INTERVAL\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/tools/interval/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-wrench"></i>\n <a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-clock"></i>\n <a href="#">{{ \'APPLICATION_INTERVALS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_INTERVALS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <button class="btn green-jungle " ng-click="createItem()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_INTERVAL\' | translate }}\n </button>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/tools/interval/view/subinterval/list/list.html",'<div ui-view class="profile-content">\n <div class="row">\n <div class="col-md-12">\n <div class="portlet light" data-ng-init="initView()">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SUBINTERVALS\' | translate}}</span>\n </div>\n <div class="actions">\n <div class="btn-group">\n <a class="btn green-jungle" href="/tools/intervals/view/{{stateParams.id}}/subintervals/view/">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_SUBINTERVAL\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/tools/interval/view/subinterval/view/view.html",'<div class="row" data-ng-init="initSubInterval()">\n <div class="col-md-12">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_SUBINTERVAL\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="addOrUpdateSubInterval()">\n <wz-step title="{{\'APPLICATION_SETTINGS\' | translate}}" canexit="exitValidation(forms.subinterval.name.$valid)">\n <form name="forms.subinterval" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.subinterval.name.$touched || forms.subinterval.$submitted) && forms.subinterval.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="subinterval.name" required/>\n <span data-ng-show="(forms.subinterval.name.$touched || forms.subinterval.$submitted) && forms.subinterval.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START TIME -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n <div class="input-group input-large">\n <fieldset class="pull-left" ng-disabled="splittedInterval.alwaysTime"><uib-timepicker name="t_from" data-ng-model="splittedInterval.t_from" show-meridian="false" show-spinners="false"></uib-timepicker></fieldset>\n <div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n <fieldset ng-disabled="splittedInterval.alwaysTime"><uib-timepicker name="t_to" data-ng-model="splittedInterval.t_to" show-meridian="false" show-spinners="false"></uib-timepicker></fieldset>\n <label class="control-label pointer-cursor margin-top20"><input\n bs-switch\n class="form-control"\n ng-model="splittedInterval.alwaysTime"\n type="checkbox"\n switch-active="{{ switch.isActive }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ switch.onColor }}"\n switch-off-color="{{ switch.offColor }}"\n switch-animate="{{ switch.animate }}"\n switch-size="{{ switch.size }}"\n switch-label="{{ switch.label }}"\n switch-icon="{{ switch.icon }}"\n switch-radio-off="{{ switch.radioOff }}"\n switch-label-width="{{ switch.labelWidth }}"\n switch-handle-width="{{ switch.handleWidth }}"> {{\'APPLICATION_ALWAYS\' | translate}}</label>\n </div>\n </div>\n <!-- END TIME -->\n\n <!-- START WEEKDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="splittedInterval.wd_from" theme="bootstrap" name="wd_from">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{weekDay.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="splittedInterval.wd_to" theme="bootstrap" name="wd_to">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{weekDay.name | translate}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END WEEKDAY -->\n\n <!-- START MONTHDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="splittedInterval.md_from" theme="bootstrap" name="md_from">\n <ui-select-match>{{$select.selected===\'always\' ? ($select.selected | capitalize) : $select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="splittedInterval.md_to && splittedInterval.md_to!==\'always\' && monthDay>splittedInterval.md_to && monthDay!==\'always\'">\n {{monthDay===\'always\' ? (monthDay | capitalize) : monthDay}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="splittedInterval.md_to" theme="bootstrap" name="md_to">\n <ui-select-match>{{$select.selected===\'always\' ? ($select.selected | capitalize) : $select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="splittedInterval.md_from && splittedInterval.md_from!==\'always\' && monthDay<splittedInterval.md_from && monthDay!==\'always\'">\n {{monthDay===\'always\' ? (monthDay | capitalize) : monthDay}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTHDAY -->\n\n\n <!-- START MONTH -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="splittedInterval.m_from" theme="bootstrap" name="m_from">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{month.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="splittedInterval.m_to" theme="bootstrap" name="m_to">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{month.name | translate}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTH -->\n\n\n\n <button class="btn green-haze" type="submit" ng-click="next()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </form>\n </wz-step>\n\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/tools/interval/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getInterval()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-wrench"></i>\n <a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-clock"></i>\n <a href="/tools/intervals/list">{{ \'APPLICATION_INTERVALS\' | translate }}</a>\n <i data-ng-show="interval" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="interval">\n <a href="#">{{interval.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/interval.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{interval.name}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.tools.intervals.view.settings\')}">\n <a ng-href="/tools/intervals/view/{{interval.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.tools.intervals.view.subintervals.list\') || $state.is(\'main.tools.intervals.view.subintervals.view\')}">\n <a ng-href="/tools/intervals/view/{{interval.id}}/subintervals/list">\n <i class="icon-list"></i>\n {{ \'APPLICATION_SUBINTERVALS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/tools/interval/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_INTERVAL\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateInterval()" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="interval.name" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="interval.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ADVANCED TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/tools/pause/list/list.create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_PAUSE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" data-ng-pattern="/^[^#]/" required/>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/tools/pause/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-wrench"></i>\n <a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-pause"></i>\n <a href="#">{{ \'APPLICATION_PAUSES\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="fa fa-pause font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_PAUSES\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <a class="btn green-jungle" href="#" data-toggle="dropdown" data-ng-click="createItem()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_PAUSE\' | translate }}\n </a>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'), +a.put("app/tools/pause/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getPause()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-wrench"></i>\n <a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-control-pause"></i>\n <a href="/tools/pauses/list">{{ \'APPLICATION_PAUSES\' | translate }}</a>\n <i data-ng-show="pause" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="pause">\n <a href="#">{{pause.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/pause.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{pause.name}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.tools.pauses.view.settings\')}">\n <a data-ng-href="/tools/pauses/view/{{pause.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}}\n </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/tools/pause/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_PAUSE\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updatePause()" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="pause.name" data-ng-pattern="/^[^#]/" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="pause.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ADVANCED TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/tools/scheduler/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-wrench"></i>\n <a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-calendar"></i>\n <a href="#">{{ \'APPLICATION_SCHEDULER\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-link font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_SCHEDULES\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <a class="btn green-jungle" href="/tools/scheduler/wizard" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_SCHEDULE\' | translate }}\n </a>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/tools/scheduler/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-wrench"></i>\n <a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-calendar"></i>\n <a href="/tools/scheduler/list">{{ \'APPLICATION_SCHEDULER\' | translate }}</a>\n <i data-ng-show="schedule" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="schedule">\n <a href="#">{{schedule.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/scheduler.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{schedule.name}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.tools.scheduler.view.settings\')}">\n <a data-ng-href="/tools/scheduler/view/{{schedule.id}}/settings"><i class="icon-settings"></i> {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/tools/scheduler/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_SCHEDULE\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab" data-ng-click="refreshSlider()">{{ \'APPLICATION_CONFIGURATION\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && forms.config.$valid && updateSchedule()" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.$submitted && forms.general.name.$invalid) || forms.general.name.$error.pattern}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="schedule.name" data-ng-pattern="settings.patternName" required/>\n <span data-ng-show="forms.general.$submitted && forms.general.name.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START ACTIVE -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_ACTIVE\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="schedule.active"\n type="checkbox"\n name="status"\n switch-active="{{ switches.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ switches.onColor }}"\n switch-off-color="{{ switches.offColor }}"\n switch-animate="{{ switches.animate }}"\n switch-size="{{ switches.size }}"\n switch-label="{{ switches.label }}"\n switch-icon="{{ switches.icon }}"\n switch-radio-off="{{ switches.radioOff }}"\n switch-label-width="{{ switches.labelWidth }}"\n switch-handle-width="{{ switches.handleWidth }}">\n </div>\n <!-- END ACTIVE -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="schedule.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n <!-- CONFIG TAB -->\n <div class="tab-pane" id="tab_1_2">\n <form name="forms.config" data-ng-switch="schedule.reportType" data-ng-submit="forms.config.$valid && forms.general.$valid && updateSchedule()" data-ng-if="schedule.type===\'report\'" data-ng-init="initReports()" novalidate>\n\n <div class="row">\n\n <!-- START TYPE -->\n <div class="form-group col-md-2" data-ng-class="{\'has-error\': (forms.config.type.$touched || forms.config.$submitted) && forms.config.type.$invalid}">\n <label class="control-label">{{ \'APPLICATION_TYPE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="schedule.reportType" name="type" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_TYPE\' | translate }}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="report in [\'default\', \'custom\'] | filter: $select.search">\n <div ng-bind-html="report | capitalize | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.config.type.$touched || forms.config.$submitted) && forms.config.type.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TYPE -->\n\n\n <!-- START REPORT -->\n <div data-ng-switch-when="default" class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.config.reportId.$touched || forms.config.$submitted) && forms.config.reportId.$invalid}">\n <label class="control-label">{{ \'APPLICATION_REPORT\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="schedule.reportId" name="reportId" theme="bootstrap" on-select="setReportTree($item,$model)" required>\n <ui-select-match placeholder="{{ \'APPLICATION_REPORT\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices group-by="\'parent\'" repeat="report.id as report in defRep | filter: $select.search">\n <div ng-bind-html="report.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.config.reportId.$touched || forms.config.$submitted) && forms.config.reportId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END REPORT -->\n\n <!-- START REPORT -->\n <div data-ng-switch-when="custom" class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.config.reportId.$touched || forms.config.$submitted) && forms.config.reportId.$invalid}">\n <label class="control-label">{{ \'APPLICATION_REPORT\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="schedule.reportId" name="reportId" theme="bootstrap" on-select="setReportTree($item,$model)" required>\n <ui-select-match placeholder="{{ \'APPLICATION_REPORT\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices group-by="\'parent\'" repeat="report.id as report in cusRep | filter: $select.search">\n <div ng-bind-html="report.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.config.reportId.$touched || forms.config.$submitted) && forms.config.reportId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END REPORT -->\n\n <!-- START REPORT -->\n <div class="form-group col-md-2" data-ng-class="{\'has-error\': (forms.config.reportOutput.$touched || forms.config.$submitted) && forms.config.reportOutput.$invalid}">\n <label class="control-label">{{ \'APPLICATION_OUTPUT\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="schedule.reportOutput" name="reportOutput" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_OUTPUT\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="output in [\'CSV\',\'PDF\'] | filter: $select.search">\n <div ng-bind-html="output | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.config.reportOutput.$touched || forms.config.$submitted) && forms.config.reportOutput.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END REPORT -->\n\n </div>\n\n <!-- START TODAY -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_RUN_ON\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n data-ng-model="switchValues.today"\n type="checkbox"\n name="status"\n data-ng-change="checkToday()"\n switch-active="{{ switches.isActive }}"\n switch-on-text="{{ \'APPLICATION_TODAY\' | translate }}"\n switch-off-text="{{ \'APPLICATION_RANGE\' | translate }}"\n switch-on-color="{{ switches.onColor }}"\n switch-off-color="{{ switches.offColor }}"\n switch-animate="{{ switches.animate }}"\n switch-size="{{ switches.size }}"\n switch-label="{{ switches.label }}"\n switch-icon="{{ switches.icon }}"\n switch-radio-off="{{ switches.radioOff }}"\n switch-label-width="{{ switches.labelWidth }}"\n switch-handle-width="{{ switches.handleWidth }}">\n </div>\n <!-- END TODAY -->\n\n <!-- START VALIDITY -->\n <div class="form-group" data-ng-if="switchValues.today">\n <label class="control-label">{{\'APPLICATION_VALIDITY\' | translate}}</label>\n <rzslider rz-slider-model="schedule.validityStart" rz-slider-high="schedule.validityEnd" rz-slider-options="validitySlider"></rzslider>\n </div>\n <!-- END VALIDITY -->\n\n <!-- START RANGE -->\n <div class="form-group" data-ng-if="!switchValues.today" data-ng-class="{\'has-error\': (forms.config.range.$touched || forms.config.$submitted) && forms.config.range.$invalid}">\n <label class="control-label">{{ \'APPLICATION_REPORT_RANGE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="schedule.reportRange" name="range" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_RANGE\' | translate }}">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="range.value as range in reportRanges | filter: $select.search">\n <div ng-bind-html="range.name | highlight: $select.search | translate"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.config.range.$touched || forms.config.$submitted) && forms.config.range.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END RANGE -->\n\n <!-- START TODAY CRON -->\n <div class="form-group" data-ng-if="switchValues.today" data-ng-class="{\'has-error\': (forms.config.cron.$touched || forms.config.$submitted) && forms.config.cron.$invalid}">\n <label class="control-label">{{ \'APPLICATION_EXECUTE_EVERY\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="schedule.cron" name="cron" theme="bootstrap" data-ng-required="switchValues.today">\n <ui-select-match placeholder="{{ \'APPLICATION_EXECUTE_EVERY\' | translate }}">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="cron.value as cron in todayCron | filter: $select.search">\n <div ng-bind-html="cron.name | highlight: $select.search | translate"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.config.cron.$touched || forms.config.$submitted) && forms.config.cron.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TODAY -->\n <div class="row" data-ng-if="!switchValues.today">\n <!-- START CRONTYPE EXEC -->\n <div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.config.cronType.$touched || forms.config.$submitted) && forms.config.cronType.$invalid}">\n <label class="control-label">{{ \'APPLICATION_EXECUTE_EVERY\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="rangeExec.type" name="cronType" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_EXECUTE_EVERY\' | translate }}">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="type.value as type in cronTypes | filter: $select.search">\n <div ng-bind-html="type.name | highlight: $select.search | translate"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.config.cronType.$touched || forms.config.$submitted) && forms.config.cronType.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CRONTYPE -->\n\n <!-- START WEEKDAY -->\n <div class="form-group col-md-4" data-ng-if="schedule.cronType === \'weekly\'" data-ng-class="{\'has-error\': (forms.config.weekDay.$touched || forms.config.$submitted) && forms.config.weekDay.$invalid}">\n <label class="control-label">{{ \'APPLICATION_WEEKDAYS\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select multiple data-ng-model="rangeExec.weekDays" name="weekDay" theme="bootstrap" data-ng-required="schedule.cronType === \'weekly\'">\n <ui-select-match placeholder="{{ \'APPLICATION_WEEKDAYS\' | translate }}">{{$item.name | translate}}</ui-select-match>\n <ui-select-choices repeat="day.value as day in weekDays | filter: $select.search">\n <div ng-bind-html="day.name | highlight: $select.search | translate"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.config.weekDay.$touched || forms.config.$submitted) && forms.config.weekDay.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END WEEKDAY -->\n\n <!-- START MONTHDAY -->\n <div class="form-group col-md-4" data-ng-if="schedule.cronType === \'monthly\'" data-ng-class="{\'has-error\': (forms.config.monthDay.$touched || forms.config.$submitted) && forms.config.monthDay.$invalid}">\n <label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="rangeExec.monthDay" name="monthDay" theme="bootstrap" data-ng-required="schedule.cronType === \'monthly\'">\n <ui-select-match placeholder="{{ \'APPLICATION_MONTHDAY\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="day in monthDays | filter: $select.search">\n <div ng-bind-html="day | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.config.monthDay.$touched || forms.config.$submitted) && forms.config.monthDay.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MONTHDAY -->\n\n <!-- START HOUR -->\n <div class="form-group col-md-4" data-ng-if="schedule.cronType" data-ng-class="{\'has-error\': (forms.config.hour.$touched || forms.config.$submitted) && forms.config.hour.$invalid}">\n <label class="control-label">{{ \'APPLICATION_HOUR\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="rangeExec.hour" name="hour" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_HOUR\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="hour in hours | filter: $select.search">\n <div ng-bind-html="hour | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.config.hour.$touched || forms.config.$submitted) && forms.config.hour.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END HOUR -->\n </div>\n\n <!-- START SEND MAIL -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_SEND_MAIL\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n data-ng-model="schedule.sendMail"\n type="checkbox"\n name="status"\n switch-active="{{ switches.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ switches.onColor }}"\n switch-off-color="{{ switches.offColor }}"\n switch-animate="{{ switches.animate }}"\n switch-size="{{ switches.size }}"\n switch-label="{{ switches.label }}"\n switch-icon="{{ switches.icon }}"\n switch-radio-off="{{ switches.radioOff }}"\n switch-label-width="{{ switches.labelWidth }}"\n switch-handle-width="{{ switches.handleWidth }}">\n </div>\n <!-- END SEND MAIL -->\n <div class="row">\n <!-- START ACCOUNT -->\n <div class="form-group col-md-6" data-ng-class="{\'has-error\': (forms.config.MailServerOutId.$touched || forms.config.$submitted) && forms.config.MailServerOutId.$invalid}">\n <label class="control-label">{{ \'APPLICATION_ACCOUNT\' | translate }}<span class="required" data-ng-if="schedule.sendMail" aria-required="true">*</span></label>\n <ui-select data-ng-model="schedule.MailServerOutId" name="MailServerOutId" theme="bootstrap" data-ng-disabled="!schedule.sendMail" data-ng-required="schedule.sendMail">\n <ui-select-match placeholder="{{ \'APPLICATION_ACCOUNT\' | translate }}">{{$select.selected.username}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in mailServers | filter: $select.search">\n <div ng-bind-html="account.username | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.config.MailServerOutId.$touched || forms.config.$submitted) && forms.config.MailServerOutId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <div class="note note-warning" data-ng-hide="mailServers.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_ACCOUNTS_AVAILABLE\' | translate }}\n </p>\n </div>\n </div>\n <!-- END ACCOUNT -->\n\n <!-- START EMAIL -->\n <div class="form-group col-md-6" data-ng-class="{\'has-error\': (forms.config.$submitted && forms.config.email.$invalid) || forms.config.email.$error.pattern}">\n <label class="control-label">{{\'APPLICATION_EMAIL_ADDRESS\' | translate}}<span data-ng-if="schedule.sendMail" class="required" aria-required="true">*</span></label>\n <input type="email" name="email" placeholder="{{\'APPLICATION_EMAIL_ADDRESS\' | translate}}" class="form-control" data-ng-model="schedule.email" data-ng-disabled="!schedule.sendMail" data-ng-required="schedule.sendMail"/>\n <span data-ng-show="forms.config.$submitted && forms.config.email.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END EMAIL -->\n\n </div>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END CONFIG TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n<!-- <pre>\n {{rangeExec | json}}\n</pre>\n<pre>\n {{schedule | json}}\n</pre> -->\n'),a.put("app/tools/scheduler/wizard/wizard.html",'<div class="col-md-12">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-wrench"></i>\n <a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-calendar"></i>\n <a href="/tools/scheduler/list">{{ \'APPLICATION_SCHEDULER\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-options"></i>\n <a href="#">{{ \'APPLICATION_WIZARD\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-link font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_SCHEDULE\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_GENERAL\' | translate}}" canexit="exitValidation(forms.general.$valid)">\n <form name="forms.general" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.$submitted && forms.general.name.$invalid) || forms.general.name.$error.pattern}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" data-ng-pattern="settings.patternName" required/>\n <span data-ng-show="forms.general.$submitted && forms.general.name.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START ACTIVE -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_ACTIVE\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="item.active"\n type="checkbox"\n name="status"\n data-ng-init="item.active = 0"\n switch-active="{{ switches.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ switches.onColor }}"\n switch-off-color="{{ switches.offColor }}"\n switch-animate="{{ switches.animate }}"\n switch-size="{{ switches.size }}"\n switch-label="{{ switches.label }}"\n switch-icon="{{ switches.icon }}"\n switch-radio-off="{{ switches.radioOff }}"\n switch-label-width="{{ switches.labelWidth }}"\n switch-handle-width="{{ switches.handleWidth }}">\n </div>\n <!-- END ACTIVE -->\n\n <!-- START TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.type.$touched || forms.general.$submitted) && forms.general.type.$invalid}">\n <label class="control-label">{{ \'APPLICATION_TYPE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.type" name="type" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_TYPE\' | translate }}">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="type.value as type in scheduleTypes | filter: $select.search">\n <div ng-bind-html="type.name | highlight: $select.search | translate"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.general.type.$touched || forms.general.$submitted) && forms.general.type.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TYPE -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n <button class="btn green-haze" type="submit" ng-click="next(true)">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIGURATION\' | translate}}" canexit="exitValidation(forms.config.$valid)">\n <form name="forms.config" data-ng-switch="item.reportType" data-ng-if="item.type===\'report\'" data-ng-init="initReports()" novalidate>\n <div class="row">\n\n <!-- START TYPE -->\n <div class="form-group col-md-2" data-ng-class="{\'has-error\': (forms.config.type.$touched || forms.config.$submitted) && forms.config.type.$invalid}">\n <label class="control-label">{{ \'APPLICATION_TYPE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.reportType" name="type" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_TYPE\' | translate }}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="report in [\'default\', \'custom\'] | filter: $select.search">\n <div ng-bind-html="report | capitalize | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.config.type.$touched || forms.config.$submitted) && forms.config.type.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TYPE -->\n\n <!-- START DEFAULT REPORT -->\n <div data-ng-switch-when="default" class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.config.reportId.$touched || forms.config.$submitted) && forms.config.reportId.$invalid}">\n <label class="control-label">{{ \'APPLICATION_REPORT\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.reportId" name="reportId" theme="bootstrap" on-select="setReportTree($item,$model)" required>\n <ui-select-match placeholder="{{ \'APPLICATION_REPORT\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices group-by="\'parent\'" repeat="report.id as report in defRep | filter: $select.search">\n <div ng-bind-html="report.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.config.reportId.$touched || forms.config.$submitted) && forms.config.reportId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END DEFAULT REPORT -->\n\n <!-- START CUSTOM REPORT -->\n <div data-ng-switch-when="custom" class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.config.reportId.$touched || forms.config.$submitted) && forms.config.reportId.$invalid}">\n <label class="control-label">{{ \'APPLICATION_REPORT\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.reportId" name="reportId" theme="bootstrap" on-select="setReportTree($item,$model)" required>\n <ui-select-match placeholder="{{ \'APPLICATION_REPORT\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices group-by="\'parent\'" repeat="report.id as report in cusRep | filter: $select.search">\n <div ng-bind-html="report.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.config.reportId.$touched || forms.config.$submitted) && forms.config.reportId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CUSTOM REPORT -->\n\n <!-- START OUTPUT -->\n <div class="form-group col-md-2" data-ng-class="{\'has-error\': (forms.config.reportOutput.$touched || forms.config.$submitted) && forms.config.reportOutput.$invalid}">\n <label class="control-label">{{ \'APPLICATION_OUTPUT\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.reportOutput" name="reportOutput" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_OUTPUT\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="output in [\'CSV\',\'PDF\'] | filter: $select.search">\n <div ng-bind-html="output | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.config.reportOutput.$touched || forms.config.$submitted) && forms.config.reportOutput.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END OUTPUT -->\n\n </div>\n\n <!-- START TODAY -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_RUN_ON\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n data-ng-model="switchValues.today"\n type="checkbox"\n name="status"\n data-ng-change="checkToday()"\n switch-active="{{ switches.isActive }}"\n switch-on-text="{{ \'APPLICATION_TODAY\' | translate }}"\n switch-off-text="{{ \'APPLICATION_RANGE\' | translate }}"\n switch-on-color="{{ switches.onColor }}"\n switch-off-color="{{ switches.offColor }}"\n switch-animate="{{ switches.animate }}"\n switch-size="{{ switches.size }}"\n switch-label="{{ switches.label }}"\n switch-icon="{{ switches.icon }}"\n switch-radio-off="{{ switches.radioOff }}"\n switch-label-width="{{ switches.labelWidth }}"\n switch-handle-width="{{ switches.handleWidth }}">\n </div>\n <!-- END TODAY -->\n\n <!-- START VALIDITY -->\n <div class="form-group" data-ng-if="switchValues.today">\n <label class="control-label">{{\'APPLICATION_VALIDITY\' | translate}}</label>\n <rzslider rz-slider-model="item.validityStart" rz-slider-high="item.validityEnd" rz-slider-options="validitySlider" data-ng-init="item.validityStart = 8;item.validityEnd = 16;"></rzslider>\n </div>\n <!-- END VALIDITY -->\n\n <!-- START RANGE -->\n <div class="form-group" data-ng-if="!switchValues.today" data-ng-class="{\'has-error\': (forms.config.range.$touched || forms.config.$submitted) && forms.config.range.$invalid}">\n <label class="control-label">{{ \'APPLICATION_REPORT_RANGE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.reportRange" name="range" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_RANGE\' | translate }}">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="range.value as range in reportRanges | filter: $select.search">\n <div ng-bind-html="range.name | highlight: $select.search | translate"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.config.range.$touched || forms.config.$submitted) && forms.config.range.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END RANGE -->\n\n <!-- START TODAY CRON EXEC -->\n <div class="form-group" data-ng-if="switchValues.today" data-ng-class="{\'has-error\': (forms.config.cron.$touched || forms.config.$submitted) && forms.config.cron.$invalid}">\n <label class="control-label">{{ \'APPLICATION_EXECUTE_EVERY\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.cron" name="cron" theme="bootstrap" data-ng-required="switchValues.today">\n <ui-select-match placeholder="{{ \'APPLICATION_EXECUTE_EVERY\' | translate }}">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="cron.value as cron in todayCron | filter: $select.search">\n <div ng-bind-html="cron.name | highlight: $select.search | translate"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.config.cron.$touched || forms.config.$submitted) && forms.config.cron.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TODAY CRON -->\n <div class="row" data-ng-if="!switchValues.today">\n <!-- START CRONTYPE EXEC -->\n <div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.config.cronType.$touched || forms.config.$submitted) && forms.config.cronType.$invalid}">\n <label class="control-label">{{ \'APPLICATION_EXECUTE_EVERY\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="rangeExec.type" name="cronType" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_EXECUTE_EVERY\' | translate }}">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="type.value as type in cronTypes | filter: $select.search">\n <div ng-bind-html="type.name | highlight: $select.search | translate"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.config.cronType.$touched || forms.config.$submitted) && forms.config.cronType.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CRONTYPE -->\n\n <!-- START WEEKDAY -->\n <div class="form-group col-md-4" data-ng-if="item.cronType === \'weekly\'" data-ng-class="{\'has-error\': (forms.config.weekDay.$touched || forms.config.$submitted) && forms.config.weekDay.$invalid}">\n <label class="control-label">{{ \'APPLICATION_WEEKDAYS\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select multiple data-ng-model="rangeExec.weekDays" name="weekDay" theme="bootstrap" data-ng-required="item.cronType === \'weekly\'">\n <ui-select-match placeholder="{{ \'APPLICATION_WEEKDAYS\' | translate }}">{{$item.name | translate}}</ui-select-match>\n <ui-select-choices repeat="day.value as day in weekDays | filter: $select.search">\n <div ng-bind-html="day.name | highlight: $select.search | translate"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.config.weekDay.$touched || forms.config.$submitted) && forms.config.weekDay.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END WEEKDAY -->\n\n <!-- START MONTHDAY -->\n <div class="form-group col-md-4" data-ng-if="item.cronType === \'monthly\'" data-ng-class="{\'has-error\': (forms.config.monthDay.$touched || forms.config.$submitted) && forms.config.monthDay.$invalid}">\n <label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="rangeExec.monthDay" name="monthDay" theme="bootstrap" data-ng-required="item.cronType === \'monthly\'">\n <ui-select-match placeholder="{{ \'APPLICATION_MONTHDAY\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="day in monthDays | filter: $select.search">\n <div ng-bind-html="day | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.config.monthDay.$touched || forms.config.$submitted) && forms.config.monthDay.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MONTHDAY -->\n\n <!-- START HOUR -->\n <div class="form-group col-md-4" data-ng-if="item.cronType" data-ng-class="{\'has-error\': (forms.config.hour.$touched || forms.config.$submitted) && forms.config.hour.$invalid}">\n <label class="control-label">{{ \'APPLICATION_HOUR\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="rangeExec.hour" name="hour" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_HOUR\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="hour in hours | filter: $select.search">\n <div ng-bind-html="hour | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.config.hour.$touched || forms.config.$submitted) && forms.config.hour.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END HOUR -->\n </div>\n\n <!-- START SEND MAIL -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_SEND_MAIL\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n data-ng-model="item.sendMail"\n type="checkbox"\n name="status"\n data-ng-init="item.sendMail = 0"\n switch-active="{{ switches.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ switches.onColor }}"\n switch-off-color="{{ switches.offColor }}"\n switch-animate="{{ switches.animate }}"\n switch-size="{{ switches.size }}"\n switch-label="{{ switches.label }}"\n switch-icon="{{ switches.icon }}"\n switch-radio-off="{{ switches.radioOff }}"\n switch-label-width="{{ switches.labelWidth }}"\n switch-handle-width="{{ switches.handleWidth }}">\n </div>\n <!-- END SEND MAIL -->\n <div class="row">\n <!-- START ACCOUNT -->\n <div class="form-group col-md-6" data-ng-class="{\'has-error\': (forms.config.MailServerOutId.$touched || forms.config.$submitted) && forms.config.MailServerOutId.$invalid}">\n <label class="control-label">{{ \'APPLICATION_ACCOUNT\' | translate }}<span class="required" data-ng-if="item.sendMail" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.MailServerOutId" name="MailServerOutId" theme="bootstrap" data-ng-disabled="!item.sendMail" data-ng-required="item.sendMail">\n <ui-select-match placeholder="{{ \'APPLICATION_ACCOUNT\' | translate }}">{{$select.selected.username}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in mailServers | filter: $select.search">\n <div ng-bind-html="account.username | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.config.MailServerOutId.$touched || forms.config.$submitted) && forms.config.MailServerOutId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <div class="note note-warning" data-ng-hide="mailServers.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_ACCOUNTS_AVAILABLE\' | translate }}\n </p>\n </div>\n </div>\n <!-- END ACCOUNT -->\n\n <!-- START EMAIL -->\n <div class="form-group col-md-6" data-ng-class="{\'has-error\': (forms.config.$submitted && forms.config.email.$invalid) || forms.config.email.$error.pattern}">\n <label class="control-label">{{\'APPLICATION_EMAIL_ADDRESS\' | translate}}<span data-ng-if="item.sendMail" class="required" aria-required="true">*</span></label>\n <input type="email" name="email" placeholder="{{\'APPLICATION_EMAIL_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.email" required data-ng-disabled="!item.sendMail" data-ng-required="item.sendMail"/>\n <span data-ng-show="forms.config.$submitted && forms.config.email.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END EMAIL -->\n </div>\n\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <button class="btn green-haze" type="submit" ng-click="next()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END PORTLET-->\n</div>\n<!-- <pre>\n {{rangeExec | json}}\n</pre>\n<pre>\n {{item | json}}\n</pre> -->\n'), +a.put("app/tools/sound/list/list.html",'<div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-music-tone-alt"></i>\n <a href="#">{{ \'APPLICATION_SOUNDS\' | translate }}</a>\n </li>\n </ul>\n <div class="page-toolbar">\n </div>\n</div>\n<!-- END PAGE HEADER-->\n<!-- BEGIN PAGE CONTENT-->\n<!-- Audio Portlets -->\n<div class="headline">\n <h3><i class="icon-music-tone-alt sounds-title-icon"></i> {{ \'APPLICATION_SOUNDS\' | translate }}</h3>\n</div>\n<div class="portlet light bg-inverse">\n <div class="portlet-title collapsible" ng-click="isCollapsed = !isCollapsed">\n <div class="caption">\n <i class="icon-puzzle font-red-flamingo"></i>\n <span class="caption-subject bold font-red-flamingo uppercase">\n {{\'APPLICATION_FILE_UPLOAD\' | translate}} </span>\n </div>\n <div class="tools">\n <a href="" ng-class="{\'collapse\': !isCollapsed, \'expand\' : isCollapsed}">\n </a>\n </div>\n </div>\n <div class="portlet-body" ng-slide-down="!isCollapsed">\n <div class="row" nv-file-drop="" uploader="uploader" filters="queueLimit, customFilter">\n <div class="col-md-4">\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-settings font-green-sharp"></i>\n <span class="caption-subject bold uppercase">{{\'APPLICATION_SELECT_FILES\' | translate}}</span>\n <span class="caption-helper hide"></span>\n </div>\n <div class="actions">\n </div>\n </div>\n <div class="portlet-body">\n <div ng-show="uploader.isHTML5">\n <div class="file-drop-zone margin-bottom-20" nv-file-over="" uploader="uploader" over-class="file-drop-zone-over">\n Base drop zone\n </div>\n </div>\n <span class="btn default btn-file">\n <span class="fileinput-new">\n {{\'APPLICATION_FILE_UPLOAD\' | translate}}</span>\n <input type="file" nv-file-select="" uploader="uploader" />\n </span>\n <span class="btn default btn-file">\n <span class="fileinput-new">\n {{\'APPLICATION_MULTI_FILE_UPLOAD\' | translate}}</span>\n <input type="file" nv-file-select="" uploader="uploader" multiple /><br/>\n </span>\n <p>\n </br>\n {{ \'MESSAGE_SUPPORTED_FORMATS\' | translate }} <b>wav, mp3, gsm, ogg</b>.\n </p>\n <p>\n {{ \'MESSAGE_MAXIMUM_SOUND_UPLOAD_SIZE\' | translate }} <b>15 Mb</b>.\n </p>\n </div>\n </div>\n </div>\n <div class="col-md-8">\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-settings font-green-sharp"></i>\n <span class="caption-subject bold uppercase">{{\'APPLICATION_UPLOAD_QUEUE\' | translate}}</span>\n <span class="caption-helper">{{\'APPLICATION_QUEUE_LENGTH\' | translate}}: {{ uploader.queue.length }}</span>\n </div>\n <div class="actions">\n </div>\n </div>\n <div class="portlet-body">\n <div class="table-scrollable table-scrollable-borderless">\n <table class="table table-hover table-light">\n <thead>\n <tr class="uppercase">\n <th width="50%">{{\'APPLICATION_NAME\' | translate}}</th>\n <th ng-show="uploader.isHTML5">{{\'APPLICATION_SIZE\' | translate}}</th>\n <th ng-show="uploader.isHTML5">{{\'APPLICATION_PROGRESS\' | translate}}</th>\n <th>{{\'APPLICATION_STATUS\' | translate}}</th>\n <th>{{\'APPLICATION_MESSAGE\' | translate}}</th>\n <th>{{\'APPLICATION_ACTIONS\' | translate}}</th>\n </tr>\n </thead>\n <tbody>\n <tr ng-repeat="item in uploader.queue">\n <td><strong>{{ item.file.name }}</strong></td>\n <td ng-show="uploader.isHTML5" nowrap>{{ item.file.size/1024/1024|number:2 }} MB</td>\n <td ng-show="uploader.isHTML5">\n <div class="progress progress-sm" style="margin-bottom: 0;">\n <div class="progress-bar progress-bar-info" role="progressbar" ng-style="{ \'width\': item.progress + \'%\' }"></div>\n </div>\n </td>\n <td class="text-center">\n <span ng-show="item.isSuccess" class="text-success"><i class="glyphicon glyphicon-ok"></i></span>\n <span ng-show="item.isCancel" class="text-info"><i class="glyphicon glyphicon-ban-circle"></i></span>\n <span ng-show="item.isError" class="text-danger"><i class="glyphicon glyphicon-remove"></i></span>\n <span ng-show="item.isUploading" class="text-info"><i class="glyphicon glyphicon-upload"></i></span>\n </td>\n <td class="text-center">\n <span ng-show="item.responseMessage" class="text-danger">{{item.responseMessage}}</span>\n </td>\n <td nowrap>\n <button type="button" class="btn btn-success btn-xs" ng-click="item.upload()" ng-disabled="item.isReady || item.isUploading || item.isSuccess">\n <span class="glyphicon glyphicon-upload"></span> {{\'APPLICATION_UPLOAD\' | translate}}\n </button>\n <button type="button" class="btn btn-warning btn-xs" ng-click="item.cancel()" ng-disabled="!item.isUploading">\n <span class="glyphicon glyphicon-ban-circle"></span> {{\'APPLICATION_CANCEL\' | translate}}\n </button>\n <button type="button" class="btn btn-danger btn-xs" ng-click="item.remove()">\n <span class="glyphicon glyphicon-trash"></span> {{\'APPLICATION_REMOVE\' | translate}}\n </button>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n <div>\n <p>{{\'APPLICATION_UPLOAD_QUEUE_PROGRESS\' | translate}}:</p>\n <div class="progress progress-sm" style="">\n <div class="progress-bar progress-bar-info" role="progressbar" ng-style="{ \'width\': uploader.progress + \'%\' }"></div>\n </div>\n </div>\n <button type="button" class="btn btn-success btn-s" ng-click="uploader.uploadAll()" ng-disabled="!uploader.getNotUploadedItems().length">\n <span class="glyphicon glyphicon-upload"></span> {{\'APPLICATION_UPLOAD_ALL\' | translate}}\n </button>\n <button type="button" class="btn btn-warning btn-s" ng-click="uploader.cancelAll()" ng-disabled="!uploader.isUploading">\n <span class="glyphicon glyphicon-ban-circle"></span> {{\'APPLICATION_CANCEL_ALL\' | translate}}\n </button>\n <button type="button" class="btn btn-danger btn-s" ng-click="uploader.clearQueue()" ng-disabled="!uploader.queue.length">\n <span class="glyphicon glyphicon-trash"></span> {{\'APPLICATION_REMOVE_ALL\' | translate}}\n </button>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n<div class="row thumbnails" data-ng-init="initList()">\n <div class="row" ng-show="sounds.length == 0">\n <div class="col-md-12 page-404">\n <div class="details">\n <h3>{{ \'MESSAGE_NO_SOUNDS\' | translate }}</h3>\n <p>\n <a href="/">\n {{ \'MESSAGE_RETURN_HOME\' | translate }} </a>\n {{ \'MESSAGE_OR_UPLOAD_SOUND_FILE\' | translate }}\n </p>\n </div>\n </div>\n </div>\n <div class="audio-portlet-wrapper animate-repeat" ng-repeat="sound in sounds">\n <div class="audio-portlet">\n <div class="audio-portlet-title"><a href="#" editable-text="sound.display_name" onbeforesave="updateAudio(sound.id,{display_name : $data})">{{ sound.display_name || "Empty" }}</a></div>\n <img src="../assets/images/note_placeholder.png" alt="" class="img-responsive"/>\n <div class="file-info">\n <div class="audio-tag-wrapper">\n <audio-file-download params="{id:sound.id,controller:\'stream\'}" resource="Sound"></audio-file-download>\n </div>\n <p id="description_div">\n <a href="#" editable-text="sound.description" onbeforesave="updateAudio(sound.id,{description : $data})">{{ sound.description || "Empty" }}</a>\n </p>\n <p class="float-right">\n <button class="btn btn-xs green-meadow" uib-tooltip-template="\'audioInfoTemplate.html\'"><i class="icon-list"></i></button>\n <motion-file-download params="{id:sound.id,controller:\'download\'}" resource="Sound" mimetype="\'audio/\'+sound.original_format" tooltiptext="Download" filename="sound.display_name+\'.\'+sound.original_format" btnclass="{{downloadButtonClass}}" btncontent=\'{{downloadButtonContent}}\'></motion-file-download>\n <button uib-tooltip="Delete" class="btn btn-xs red-sunglo" ng-click="delete(sound.display_name, sound.id)" tooltip="Delete"><i class="icon-close" ></i></button>\n </p>\n </div>\n </div>\n </div>\n <script type="text/ng-template" id="audioInfoTemplate.html">\n <div>\n <ul class="list-unstyled">\n <li><b>Format : </b>{{sound.original_format}}</li>\n <li><b>Duration : </b>{{sound.original_duration | date: \'mm:ss\'}}</li>\n <li><b>Channels : </b>{{sound.original_channelCount}}</li>\n <li><b>Bitrate : </b>{{sound.original_bitRate/1024}} kbs</li>\n <li><b>Sample Rate : </b>{{sound.original_sampleRate/1000}} KHz</li>\n </ul>\n </div>\n </script>\n</div>\n<!-- End Audio Portlets -->\n'),a.put("app/tools/tag/list/list.create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_TAG\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required data-ng-pattern="settings.patternName"/>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/tools/tag/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-wrench"></i>\n <a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-tag"></i>\n <a href="#">{{ \'APPLICATION_TAGS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_TAGS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <button class="btn green-jungle " ng-click="createItem()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_TAG\' | translate }}\n </button>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/tools/tag/view/view.chat.html",'<div class="row" >\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_TAGGED_CHAT\' | translate}}</span>\n </div>\n </div>\n\n <div class="portlet-body" data-ng-if="tag" data-ng-init="initChat()">\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="spinner-grid" spinner-start-active="false"></span>\n <!-- END UI-GRID SPINNER -->\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/tools/tag/view/view.contacts.html",'<div class="row" >\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_TAGGED_CONTACTS\' | translate}}</span>\n </div>\n </div>\n\n <div class="portlet-body" data-ng-if="tag" data-ng-init="initContacts()">\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="spinner-grid" spinner-start-active="false"></span>\n <!-- END UI-GRID SPINNER -->\n <!-- START TABLE -->\n <div ui-grid="gridOptions" data-ng-if="readyGrid && gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/tools/tag/view/view.fax.html",'<div class="row" >\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_TAGGED_FAX\' | translate}}</span>\n </div>\n </div>\n\n <div class="portlet-body" data-ng-if="tag" data-ng-init="initFax()">\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="spinner-grid" spinner-start-active="false"></span>\n <!-- END UI-GRID SPINNER -->\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/tools/tag/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getTag()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-wrench"></i>\n <a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-tag"></i>\n <a href="/tools/tags/list">{{ \'APPLICATION_TAGS\' | translate }}</a>\n <i data-ng-show="tag" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="tag">\n <a href="#">{{tag.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/tag.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{tag.name}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.tools.tags.view.settings\')}">\n <a data-ng-href="/tools/tags/view/{{tag.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.tools.tags.view.chat\')}">\n <a data-ng-href="{{license.chat ? \'/tools/tags/view/\'+tag.id+\'/chat\' : \'#\'}}" data-ng-class="{\'disabled-link\':!license.chat}">\n <i class="icon-bubble"></i>\n {{ \'APPLICATION_CHAT\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.tools.tags.view.mail\')}">\n <a data-ng-href="{{license.mail ? \'/tools/tags/view/\'+tag.id+\'/mail\' : \'#\'}}" data-ng-class="{\'disabled-link\':!license.mail}">\n <i class="icon-envelope"></i>\n {{ \'APPLICATION_MAIL\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.tools.tags.view.fax\')}">\n <a data-ng-href="{{license.fax ? \'/tools/tags/view/\'+tag.id+\'/fax\' : \'#\'}}" data-ng-class="{\'disabled-link\':!license.fax}">\n <i class="fa fa-fax"></i>\n {{ \'APPLICATION_FAX\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.tools.tags.view.sms\')}" >\n <a data-ng-href="{{license.messaging ? \'/tools/tags/view/\'+tag.id+\'/sms\' : \'#\'}}" data-ng-class="{\'disabled-link\':!license.messaging}">\n <i class="glyphicon glyphicon-comment"></i>\n {{ \'APPLICATION_SMS\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.tools.tags.view.contacts\')}">\n <a data-ng-href="{{license.cm ? \'/tools/tags/view/\'+tag.id+\'/contacts\' : \'#\'}}" data-ng-class="{\'disabled-link\':!license.cm}">\n <i class="fa fa-users"></i>\n {{ \'APPLICATION_CONTACTS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/tools/tag/view/view.mail.html",'<div class="row" >\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_TAGGED_MAIL\' | translate}}</span>\n </div>\n </div>\n\n <div class="portlet-body" data-ng-if="tag" data-ng-init="initMail()">\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="spinner-grid" spinner-start-active="false"></span>\n <!-- END UI-GRID SPINNER -->\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/tools/tag/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_TAG\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="spinner-grid" spinner-start-active="false"></span>\n <!-- END UI-GRID SPINNER -->\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateTag()" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="tag.name" required data-ng-pattern="settings.patternName"/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="tag.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ADVANCED TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/tools/tag/view/view.sms.html",'<div class="row" >\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_TAGGED_SMS\' | translate}}</span>\n </div>\n </div>\n\n <div class="portlet-body" data-ng-if="tag" data-ng-init="initSms()">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/tools/template/list/list.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-wrench"></i>\n <a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="#">{{ \'APPLICATION_TEMPLATES\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-wrench font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_TEMPLATES\' | translate }}</span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="/tools/templates/wizard">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_TEMPLATE\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/tools/template/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initItem()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-wrench"></i>\n <a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="/tools/templates/list">{{ \'APPLICATION_TEMPLATES\' | translate }}</a>\n <i data-ng-show="item" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="item">\n <a href="#">{{item.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/template.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{item.name}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.tools.templates.view.settings\')}">\n <a data-ng-href="/tools/templates/view/{{item.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}}\n </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/tools/template/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body">\n\n <form name="form" data-ng-submit="form.$valid && updateItem()" class="form-horizontal" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': form.name.$invalid && form.$submitted}">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-2">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}:<span class="required" aria-required="true">*</span></label>\n </div>\n <div class="col-md-10">\n <input type="text" name="name" class="form-control todo-taskbody-taskdesc" placeholder="{{\'APPLICATION_NAME\' | translate}}..." data-ng-model="item.name" required>\n <span data-ng-show="form.name.$invalid && form.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group" data-ng-class="{\'has-error\': form.description.$invalid && form.$submitted}">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-2">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}:</label>\n </div>\n <div class="col-md-10">\n <input type="text" name="description" class="form-control todo-taskbody-taskdesc" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}..." rows="8" data-ng-model="item.description">\n <span data-ng-show="form.description.$invalid && form.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n </div>\n <!-- END NAME -->\n\n <hr>\n\n <!-- START SUBJECT -->\n <div class="form-group row" data-ng-class="{\'has-error\': form.subject.$invalid && form.$submitted}">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-2">\n <label class="control-label">{{\'APPLICATION_SUBJECT\' | translate}}:</label>\n </div>\n <div class="col-md-10">\n <input type="text" name="subject" class="form-control todo-taskbody-taskdesc" placeholder="{{\'APPLICATION_SUBJECT\' | translate}}..." rows="8" data-ng-model="item.subject">\n <span data-ng-show="form.subject.$invalid && form.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n </div>\n <!-- END SUJBECT -->\n\n <!-- START HTML -->\n <div class="form-group row" data-ng-class="{\'has-error\': form.text.$invalid && form.$submitted}">\n <div class="col-md-12">\n <div ckeditor="options" ng-model="item.html"></div>\n <span data-ng-show="form.text.$invalid && form.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <!-- END HTML -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n </div>\n </div>\n</div>\n'), +a.put("app/tools/template/wizard/wizard.html",'<div class="row">\n <div class="col-md-12">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-wrench"></i>\n <a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="/tools/templates/list">{{ \'APPLICATION_TEMPLATES\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered" data-ng-init="initWizard()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_TEMPLATES\' | translate }} FORM</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <form name="form" data-ng-submit="form.$valid && createItem()" class="form-horizontal" novalidate>\n <!-- START HEAD -->\n <div class="form">\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': form.name.$invalid && form.$submitted}">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-1">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}:<span class="required" aria-required="true">*</span></label>\n </div>\n <div class="col-md-11">\n <input type="text" name="name" class="form-control todo-taskbody-taskdesc" placeholder="{{\'APPLICATION_NAME\' | translate}}..." data-ng-model="item.name" required>\n <span data-ng-show="form.name.$invalid && form.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group" data-ng-class="{\'has-error\': form.description.$invalid && form.$submitted}">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-1">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}:</label>\n </div>\n <div class="col-md-11">\n <input type="text" name="description" class="form-control todo-taskbody-taskdesc" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}..." rows="8" data-ng-model="item.description">\n <span data-ng-show="form.description.$invalid && form.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n </div>\n <!-- END NAME -->\n\n <!-- START SUBJECT -->\n <div class="form-group" data-ng-class="{\'has-error\': form.subject.$invalid && form.$submitted}">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-1">\n <label class="control-label">{{\'APPLICATION_SUBJECT\' | translate}}:</label>\n </div>\n <div class="col-md-11">\n <input type="text" name="subject" class="form-control todo-taskbody-taskdesc" placeholder="{{\'APPLICATION_SUBJECT\' | translate}}..." rows="8" data-ng-model="item.subject">\n <span data-ng-show="form.subject.$invalid && form.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n </div>\n <!-- END SUJBECT -->\n\n <!-- START HTML -->\n <div class="form-group row" data-ng-class="{\'has-error\': form.text.$invalid && form.$submitted}">\n <div class="col-md-12">\n <div ckeditor="options" ng-model="item.html"></div>\n <span data-ng-show="form.text.$invalid && form.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <!-- END HTML -->\n\n </div>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" data-ng-click="goNext()"/>\n </form>\n </div>\n </div>\n <!-- END PORTLET-->\n </div>\n</div>\n'),a.put("app/tools/trigger/list/list.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-wrench"></i>\n <a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-bulb"></i>\n <a href="#">{{ \'APPLICATION_TRIGGERS\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-bulb font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_TRIGGERS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle " href="/tools/triggers/wizard">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_TRIGGER\' | translate }}\n </a>\n </div>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/tools/trigger/view/view.html",'<!-- BEGIN PAGE HEADER-->\n<div class="row" data-ng-init="initView();">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-wrench"></i>\n <a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-bulb"></i>\n <a href="/tools/triggers/list">{{ \'APPLICATION_TRIGGERS\' | translate }}</a>\n <i class="fa fa-angle-right" data-ng-show="trigger"></i>\n </li>\n <li data-ng-show="trigger">\n <a href="#">{{ trigger.description || trigger.name }}</a>\n </li>\n </ul>\n </div>\n\n<!-- END PAGE HEADER-->\n\n<!-- BEGIN PAGE CONTENT-->\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/trigger.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{ trigger.name }}\n </div>\n <div class="profile-usertitle-job">\n {{ trigger.description }}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.tools.triggers.view.settings\')}">\n <a href="/tools/triggers/view/{{trigger.id}}/settings">\n <i class="icon-bulb"></i>\n {{ \'APPLICATION_SETTINGS\' | translate }} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/tools/trigger/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERALS\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_CONDITIONS\' | translate}} & {{\'APPLICATION_ACTIONS\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <form name="forms.general" data-ng-submit="exitValidation(forms.general.$valid) && updateTrigger()" novalidate>\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="trigger.name" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START CHANNEL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.channel.$touched || forms.general.$submitted) && forms.general.channel.$invalid}">\n <label class="control-label">{{\'APPLICATION_CHANNEL\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="channel" placeholder="{{\'APPLICATION_CHANNEL\' | translate}}" class="form-control" data-ng-model="trigger.channel" required readonly/>\n <span data-ng-show="(forms.general.channel.$touched || forms.general.$submitted) && forms.general.channel.$invalid && forms.general.channel.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CHANNEL -->\n\n <!-- START STATUS -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_STATUS\' | translate}}</label>\n </br>\n <input bs-switch class="form-control" ng-model="trigger.status" type="checkbox" name="status" switch-active="{{ recordSwitch.isActive }}" switch-on-text="{{ recordSwitch.onText }}" switch-off-text="{{ recordSwitch.offText }}" switch-on-color="{{ recordSwitch.onColor }}"\n switch-off-color="{{ recordSwitch.offColor }}" switch-animate="{{ recordSwitch.animate }}" switch-size="{{ recordSwitch.size }}" switch-label="{{ recordSwitch.label }}" switch-icon="{{ recordSwitch.icon }}" switch-radio-off="{{ recordSwitch.radioOff }}"\n switch-label-width="{{ recordSwitch.labelWidth }}" switch-handle-width="{{ recordSwitch.handleWidth }}">\n </div>\n <!-- END STATUS -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="trigger.description" />\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}" />\n </div>\n <!-- END GENERAL TAB -->\n <div class="tab-pane" id="tab_1_2">\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <i class="icon-tag font-blue-hoki"></i>\n <span class="caption-subject" ng-bind-html="\'APPLICATION_MEET_ALL_CONDITIONS\' | translate"></span>:\n </div>\n </div>\n <div class="portlet-body">\n <div class="portlet light bordered" ng-repeat="all in trigger.All">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <span class="caption-subject">{{ \'APPLICATION_ALL\' | translate }} #{{$index+1}}</span>\n </div>\n <div class="actions">\n <a href="#" class="btn red-sunglo btn-icon-only" ng-click="removeCondition(\'All\',$index)"><i class="fa fa-trash"></i></a>\n </div>\n </div>\n <div class="portlet-body">\n <div class="padding-bottom row">\n <div class="col-md-12">\n <condition-builder element="all" serviceindex="trigger.channel" service="$triggers" form="forms.general"></condition-builder>\n </div>\n </div>\n </div>\n </div>\n <div class="row">\n <div class="col-md-12">\n <button type="button" class="btn btn-sm green padding-bottom" data-ng-click="addCondition(\'All\')">\n <i class="fa fa-plus"></i> {{\'APPLICATION_ADD_CONDITION\' | translate}}\n </button>\n </div>\n </div>\n </div>\n </div>\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <i class="icon-tag font-blue-hoki"></i>\n <span class="caption-subject" ng-bind-html="\'APPLICATION_MEET_ANY_CONDITIONS\' | translate"></span>:\n </div>\n </div>\n <div class="portlet-body">\n <div class="portlet light bordered" ng-repeat="any in trigger.Any">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <span class="caption-subject">{{ \'APPLICATION_ANY\' | translate }} #{{$index+1}}</span>\n </div>\n <div class="actions">\n <a href="#" class="btn red-sunglo btn-icon-only" ng-click="removeCondition(\'Any\',$index)"><i class="fa fa-trash"></i></a>\n </div>\n </div>\n <div class="portlet-body">\n <div class="padding-bottom row">\n <div class="col-md-12">\n <condition-builder element="any" serviceindex="trigger.channel" service="$triggers" form="forms.general"></condition-builder>\n </div>\n </div>\n </div>\n </div>\n <div class="row">\n <div class="col-md-12">\n <button type="button" class="btn btn-sm green padding-bottom" data-ng-click="addCondition(\'Any\')">\n <i class="fa fa-plus"></i> {{\'APPLICATION_ADD_CONDITION\' | translate}}\n </button>\n </div>\n </div>\n </div>\n </div>\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <i class="icon-tag font-blue-hoki"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACTIONS\' | translate }}</span>:\n </div>\n </div>\n <div class="portlet-body">\n <div class="portlet light bordered" ng-repeat="action in trigger.Actions">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <span class="caption-subject">{{ \'APPLICATION_ACTIONS\' | translate }} #{{$index+1}}</span>\n </div>\n <div class="actions">\n <a href="#" class="btn red-sunglo btn-icon-only" ng-click="removeAction($index)"><i class="fa fa-trash"></i></a>\n </div>\n </div>\n <div class="portlet-body">\n <div class="padding-bottom row">\n <div class="col-md-12">\n <div class="form-group col-md-6" data-ng-class="{\'has-error\': (forms.general[\'action\'+$index].$touched || forms.general.$submitted) && forms.general[\'action\'+$index].$invalid}">\n <ui-select data-ng-model="action.action" theme="bootstrap" name="action{{$index}}" data-ng-change="resetActionData(action)" required>\n <ui-select-match placeholder="{{ \'APPLICATION_ACTION\' | translate }}">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="tAction.value as tAction in $triggers.services[trigger.channel].actions | filter: $select.search">\n <div ng-bind-html="tAction.name | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.general[\'action\'+$index].$touched || forms.general.$submitted) && forms.general[\'action\'+$index].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div ng-switch="action.action">\n <action-builder-template ng-switch-when="template" element="action" form="forms.general"></action-builder-template>\n <action-builder-account-template ng-switch-when="accountTemplate" element="action" form="forms.general"></action-builder-account-template>\n <action-builder-integration ng-switch-when="integration" element="action" form="forms.general"></action-builder-integration>\n <action-builder-motion-bar ng-switch-when="motionbar" element="action" form="forms.general"></action-builder-motion-bar>\n <action-builder-jscripty ng-switch-when="jscripty" element="action" form="forms.general"></action-builder-jscripty>\n <action-builder-url-forward ng-switch-when="urlForward" element="action" form="forms.general"></action-builder-url-forward>\n <action-builder-close ng-switch-when="close" element="action" form="forms.general"></action-builder-close>\n <action-builder-forward ng-switch-when="forward" element="action" form="forms.general"></action-builder-forward>\n <action-builder-tag ng-switch-when="tag" element="action" form="forms.general"></action-builder-tag>\n <action-builder-http ng-switch-when="http" element="action" form="forms.general"></action-builder-http>\n <action-builder-email ng-switch-when="email" element="action" form="forms.general"></action-builder-email>\n <action-builder-account-email ng-switch-when="accountEmail" element="action" form="forms.general"></action-builder-account-email>\n <action-builder-account-sms ng-switch-when="accountSms" element="action" form="forms.general"></action-builder-account-sms>\n <action-builder-cm ng-switch-when="contactManager" element="action" form="forms.general"></action-builder-cm>\n <action-builder-web-popup ng-switch-when="webPopup" element="action" form="forms.general"></action-builder-web-popup>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class="row">\n <div class="col-md-12">\n <button type="button" class="btn btn-sm green padding-bottom" data-ng-click="addAction()">\n <i class="fa fa-plus"></i> {{\'APPLICATION_ADD_ACTION\' | translate}}\n </button>\n </div>\n </div>\n </div>\n </div>\n <!-- <div class="has-error" data-ng-show="forms.general.$submitted && !trigger.All.length && !trigger.Any.length">\n <span class="help-block help-block-error form-control">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INSERT_AT_LEAST_ONE_CONDITION\' | translate}}.\n </span>\n </div> -->\n <div class="has-error" data-ng-show="forms.general.$submitted && !trigger.Actions.length">\n <span class="help-block help-block-error form-control">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INSERT_AT_LEAST_ONE_ACTION\' | translate}}.\n </span>\n </div>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}" />\n </div>\n </div>\n </form>\n </div>\n </div>\n</div>\n</div>\n'),a.put("app/tools/trigger/wizard/wizard.html",'<div class="row">\n <div class="col-md-12">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-wrench"></i>\n <a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-bulb"></i>\n <a href="/tools/triggers/list">{{ \'APPLICATION_TRIGGERS\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-bulb font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_TRIGGERS\' | translate }} WIZARD</span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_GENERAL\' | translate}}" canexit="exitValidation(forms.general.$valid)">\n <form name="forms.general" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START STATUS -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_STATUS\' | translate}}</label>\n </br>\n <input bs-switch class="form-control" ng-model="item.status" type="checkbox" name="status" data-ng-init="item.status = 0" switch-active="{{ statusSwitch.isActive }}" switch-on-text="{{ statusSwitch.onText }}" switch-off-text="{{ statusSwitch.offText }}"\n switch-on-color="{{ statusSwitch.onColor }}" switch-off-color="{{ statusSwitch.offColor }}" switch-animate="{{ statusSwitch.animate }}" switch-size="{{ statusSwitch.size }}" switch-label="{{ statusSwitch.label }}" switch-icon="{{ statusSwitch.icon }}"\n switch-radio-off="{{ statusSwitch.radioOff }}" switch-label-width="{{ statusSwitch.labelWidth }}" switch-handle-width="{{ statusSwitch.handleWidth }}">\n </div>\n <!-- END STATUS -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description" />\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()" />\n </form>\n </wz-step>\n <wz-step title="{{\'APPLICATION_SETTINGS\' | translate}}" canexit="exitSettingsValidation(forms.settings.$valid)">\n <form name="forms.settings" novalidate>\n\n <!-- Channel -->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <i class="icon-tag font-blue-hoki"></i>\n <span class="caption-subject">{{ \'APPLICATION_CHANNEL\' | translate }}</span>\n </div>\n </div>\n <div class="portlet-body">\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.channel.$touched || forms.settings.$submitted) && forms.settings.channel.$invalid}">\n <label class="control-label">{{ \'APPLICATION_CHANNEL\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.channel" name="channel" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_CHANNEL\' | translate }}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="channel in $triggers.channels | filter: $select.search">\n <div ng-bind-html="channel | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.channel.$touched || forms.settings.$submitted) && forms.settings.channel.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n\n <!-- All -->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <i class="icon-tag font-blue-hoki"></i>\n <span class="caption-subject" ng-bind-html="\'APPLICATION_MEET_ALL_CONDITIONS\' | translate"></span>:\n </div>\n </div>\n <div class="portlet-body">\n <div class="portlet light bordered" ng-repeat="all in item.All">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <span class="caption-subject">{{ \'APPLICATION_ALL\' | translate }} #{{$index+1}}</span>\n </div>\n <div class="actions">\n <a href="#" class="btn red-sunglo btn-icon-only" ng-click="removeCondition(\'All\',$index)"><i class="fa fa-trash"></i></a>\n </div>\n </div>\n <div class="portlet-body">\n <div class="padding-bottom row">\n <div class="col-md-12">\n <condition-builder element="all" serviceindex="item.channel" service="$triggers" form="forms.general"></condition-builder>\n </div>\n </div>\n </div>\n </div>\n <div class="row">\n <div class="col-md-12">\n <button type="button" class="btn btn-sm green padding-bottom" data-ng-click="addCondition(\'All\')">\n <i class="fa fa-plus"></i> {{\'APPLICATION_ADD_CONDITION\' | translate}}\n </button>\n </div>\n </div>\n </div>\n </div>\n\n <!-- Any -->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <i class="icon-tag font-blue-hoki"></i>\n <span class="caption-subject" ng-bind-html="\'APPLICATION_MEET_ANY_CONDITIONS\' | translate"></span>:\n </div>\n </div>\n <div class="portlet-body">\n <div class="portlet light bordered" ng-repeat="any in item.Any">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <span class="caption-subject">{{ \'APPLICATION_ANY\' | translate }} #{{$index+1}}</span>\n </div>\n <div class="actions">\n <a href="#" class="btn red-sunglo btn-icon-only" ng-click="removeCondition(\'Any\',$index)"><i class="fa fa-trash"></i></a>\n </div>\n </div>\n <div class="portlet-body">\n <div class="padding-bottom row">\n <div class="col-md-12">\n <condition-builder element="any" serviceindex="item.channel" service="$triggers" form="forms.general"></condition-builder>\n </div>\n </div>\n </div>\n </div>\n <div class="row">\n <div class="col-md-12">\n <button type="button" class="btn btn-sm green padding-bottom" data-ng-click="addCondition(\'Any\')">\n <i class="fa fa-plus"></i> {{\'APPLICATION_ADD_CONDITION\' | translate}}\n </button>\n </div>\n </div>\n </div>\n </div>\n\n <!-- Actions -->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <i class="icon-tag font-blue-hoki"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACTIONS\' | translate }}</span>:\n </div>\n </div>\n <div class="portlet-body">\n <div class="portlet light bordered" ng-repeat="action in item.Actions">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <span class="caption-subject">{{ \'APPLICATION_ACTIONS\' | translate }} #{{$index+1}}</span>\n </div>\n <div class="actions">\n <a href="#" class="btn red-sunglo btn-icon-only" ng-click="removeAction($index)"><i class="fa fa-trash"></i></a>\n </div>\n </div>\n <div class="portlet-body">\n <div class="padding-bottom row">\n <!-- <div class="col-md-12"> -->\n <div class="form-group col-md-6" data-ng-class="{\'has-error\': (forms.general[\'action\'+$index].$touched || forms.general.$submitted) && forms.general[\'action\'+$index].$invalid}">\n <ui-select data-ng-model="action.action" theme="bootstrap" data-ng-change="resetActionData(action)" name="action{{$index}}" required>\n <ui-select-match placeholder="{{ \'APPLICATION_ACTION\' | translate }}">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="tAction.value as tAction in $triggers.services[item.channel].actions | filter: $select.search">\n <div ng-bind-html="tAction.name | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <!-- <span class="help-block">\n {{ \'APPLICATION_ACTION\' | translate }}\n </span> -->\n <span data-ng-show="(forms.general[\'action\'+$index].$touched || forms.general.$submitted) && forms.general[\'action\'+$index].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div ng-switch="action.action">\n <action-builder-template ng-switch-when="template" element="action" form="forms.general"></action-builder-template>\n <action-builder-account-template ng-switch-when="accountTemplate" element="action" form="forms.general"></action-builder-account-template>\n <action-builder-integration ng-switch-when="integration" element="action" form="forms.general"></action-builder-integration>\n <action-builder-motion-bar ng-switch-when="motionbar" element="action" form="forms.general"></action-builder-motion-bar>\n <action-builder-jscripty ng-switch-when="jscripty" element="action" form="forms.general"></action-builder-jscripty>\n <action-builder-url-forward ng-switch-when="urlForward" element="action" form="forms.general"></action-builder-url-forward>\n <action-builder-close ng-switch-when="close" element="action" form="forms.general"></action-builder-close>\n <action-builder-forward ng-switch-when="forward" element="action" form="forms.general"></action-builder-forward>\n <action-builder-tag ng-switch-when="tag" element="action" form="forms.general"></action-builder-tag>\n <action-builder-http ng-switch-when="http" element="action" form="forms.general"></action-builder-http>\n <action-builder-email ng-switch-when="email" element="action" form="forms.general"></action-builder-email>\n <action-builder-account-email ng-switch-when="accountEmail" element="action" form="forms.general"></action-builder-account-email>\n <action-builder-account-sms ng-switch-when="accountSms" element="action" form="forms.general"></action-builder-account-sms>\n <action-builder-cm ng-switch-when="contactManager" element="action" form="forms.general"></action-builder-cm>\n <action-builder-web-popup ng-switch-when="webPopup" element="action" form="forms.general"></action-builder-web-popup>\n </div>\n <!-- </div> -->\n </div>\n </div>\n </div>\n <div class="row">\n <div class="col-md-12">\n <button type="button" class="btn btn-sm green padding-bottom" data-ng-click="addAction()">\n <i class="fa fa-plus"></i> {{\'APPLICATION_ADD_ACTION\' | translate}}\n </button>\n </div>\n </div>\n </div>\n </div>\n\n <!-- <div class="has-error" data-ng-show="forms.settings.$submitted && !item.All.length && !item.Any.length">\n <span class="help-block help-block-error form-control">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INSERT_AT_LEAST_ONE_CONDITION\' | translate}}.\n </span>\n </div> -->\n <div class="has-error" data-ng-show="forms.settings.$submitted && !item.Actions.length">\n <span class="help-block help-block-error form-control">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INSERT_AT_LEAST_ONE_ACTION\' | translate}}.\n </span>\n </div>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()" />\n </form>\n </wz-step>\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}" />\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END PORTLET-->\n</div>\n</div>\n<!-- END PAGE CONTENT-->\n'), +a.put("app/tools/trunk/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-wrench"></i>\n <a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-link"></i>\n <a href="#">{{ \'APPLICATION_TRUNKS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-link font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_TRUNKS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <a class="btn green-jungle" href="/tools/trunks/wizard" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_TRUNK\' | translate }}\n </a>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/tools/trunk/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-wrench"></i>\n <a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-link"></i>\n <a href="/tools/trunks/list">{{ \'APPLICATION_TRUNKS\' | translate }}</a>\n <i data-ng-show="trunk" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="trunk">\n <a href="#">{{trunk.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/trunk.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{trunk.name}}\n </div>\n <p data-ng-if="trunk.active && trunk.registry && trunk.status">({{trunk.status}})</p>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.tools.trunks.view.settings\')}">\n <a data-ng-href="/tools/trunks/view/{{trunk.name}}/settings"><i class="icon-settings"></i> {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/tools/trunk/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_TRUNK\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{ \'APPLICATION_ADVANCED\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_3" data-toggle="tab">{{ \'APPLICATION_OTHER_FIELDS\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body" data-ng-init="getContexts();">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateTrunk()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="trunk.name" data-ng-pattern="settings.patternName" required readonly/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START ACTIVE -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_ACTIVE\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="trunk.active"\n type="checkbox"\n name="auth"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-off-color="{{ activeSwitch.offColor }}"\n switch-on-color="{{ activeSwitch.onColor }}"\n switch-animate="{{ activeSwitch.animate }}"\n switch-size="{{ activeSwitch.size }}"\n switch-label="{{ activeSwitch.label }}"\n switch-icon="{{ activeSwitch.icon }}"\n switch-radio-off="{{ activeSwitch.radioOff }}"\n switch-label-width="{{ activeSwitch.labelWidth }}"\n switch-handle-width="{{ activeSwitch.handleWidth }}">\n </div>\n <!-- END ACTIVE -->\n <div class="row">\n\n <div class="col-md-6">\n\n <!-- START HOST -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.host.$touched || forms.general.$submitted) && forms.general.host.$invalid}">\n <label class="control-label">{{\'APPLICATION_HOST\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="host" placeholder="{{\'APPLICATION_HOST\' | translate}}" class="form-control" data-ng-model="trunk.host" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_HOST\' | translate }}\n </span>\n <span data-ng-show="(forms.general.host.$touched || forms.general.$submitted) && forms.general.host.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END HOST -->\n\n <!-- START SECRET -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.secret.$touched || forms.general.$submitted) && forms.general.secret.$invalid}">\n <label class="control-label">{{\'APPLICATION_SECRET\' | translate}}</label>\n <input type="password" name="secret" placeholder="{{\'APPLICATION_SECRET\' | translate}}" class="form-control" data-ng-model="trunk.secret">\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_SECRET\' | translate }}\n </span>\n <span data-ng-show="(forms.general.secret.$touched || forms.general.$submitted) && forms.general.secret.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SECRET -->\n\n <!-- START CONTEXT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.context.$touched || forms.general.$submitted) && forms.general.context.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONTEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="trunk.context" name="context" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="context.name as context in voiceContexts | filter: $select.search">\n <div ng-bind-html="context.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_VOICE_CONTEXT\' | translate }}\n </span>\n <span data-ng-show="(forms.general.context.$touched || forms.general.$submitted) && forms.general.context.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CONTEXT -->\n\n <!-- START CALLERID -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.callerid.$touched || forms.general.$submitted) && forms.general.callerid.$invalid}">\n <label class="control-label">{{\'APPLICATION_CALLERID\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="callerid" pattern=\'^"[a-zA-Z0-9_.-]*" <[a-zA-Z0-9_.-]*>\' placeholder="{{\'APPLICATION_CALLERID\' | translate}}" class="form-control" data-ng-model="trunk.callerid"/>\n <span class="help-block">\n {{ \'DESCRIPTION_OUTBOUND_CALLERID\' | translate }} "name" <number>\n </span>\n <span data-ng-show="(forms.general.callerid.$touched || forms.general.$submitted) && forms.general.callerid.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CALLERID -->\n\n <!-- START TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.type.$touched || forms.general.$submitted) && forms.general.type.$invalid}">\n <label class="control-label">{{\'APPLICATION_TYPE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="trunk.type" name="type" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'user\',\'peer\',\'friend\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_TYPE\' | translate }}\n </span>\n <span data-ng-show="(forms.general.type.$touched || forms.general.$submitted) && forms.general.type.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TYPE -->\n\n <!-- START DTMFMODE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.dtmfmode.$touched || forms.general.$submitted) && forms.general.dtmfmode.$invalid}">\n <label class="control-label">{{\'APPLICATION_DTMFMODE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="trunk.dtmfmode" name="dtmfmode" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="item in [\'rfc2833\', \'info\', \'shortinfo\', \'inband\',\'auto\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_DTMFMODE\' | translate }}\n </span>\n <span data-ng-show="(forms.general.dtmfmode.$touched || forms.general.$submitted) && forms.general.dtmfmode.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END DTMFMODE -->\n\n </div>\n\n <div class="col-md-6">\n\n <!-- START DEFAULT USER -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.defaultuser.$invalid}">\n <label class="control-label">{{\'APPLICATION_DEFAULT_USER\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="defaultuser" placeholder="{{\'APPLICATION_DEFAULT_USER\' | translate}}" class="form-control" data-ng-model="trunk.defaultuser" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_DEFAULT_USER\' | translate }}\n </span>\n <span data-ng-show="forms.general.$submitted && (forms.general.defaultuser.$invalid)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END DEFAULT USER -->\n\n <!-- START NAT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.nat.$touched || forms.general.$submitted) && forms.general.nat.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select multiple data-ng-model="trunk.nat" name="nat" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\', \'no\', \'never\', \'route\', \'force_rport\', \'comedia\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_NAT\' | translate }}\n </span>\n <span data-ng-show="(forms.general.nat.$touched || forms.general.$submitted) && forms.general.nat.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAT -->\n\n <!-- START QUALIFY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.qualify.$touched || forms.general.$submitted) && forms.general.qualify.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUALIFY\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="trunk.qualify" name="qualify" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_QUALIFY\' | translate }}\n </span>\n <span data-ng-show="(forms.general.qualify.$touched || forms.general.$submitted) && forms.general.qualify.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUALIFY -->\n\n <!-- START ALLOW -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.allow.$touched || forms.general.$submitted) && forms.general.allow.$invalid}">\n <label class="control-label">{{\'APPLICATION_ALLOW_CODEC\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select multiple data-ng-model="trunk.allow" name="allow" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="item in [\'g723\',\'gsm\',\'ulaw\',\'alaw\',\'g726\',\'g722\',\'g729\',\'ilbc\',\'opus\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_ALLOW_CODEC\' | translate }}\n </span>\n <span data-ng-show="(forms.general.allow.$touched || forms.general.$submitted) && forms.general.allow.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END ALLOW -->\n\n <!-- START INSECURE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.insecure.$touched || forms.general.$submitted) && forms.general.insecure.$invalid}">\n <label class="control-label">{{\'APPLICATION_INSECURE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select multiple data-ng-model="trunk.insecure" name="insecure" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="item in [\'port\',\'invite\',\'very\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_INSECURE\' | translate }}\n </span>\n <span data-ng-show="(forms.general.insecure.$touched || forms.general.$submitted) && forms.general.insecure.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INSECURE -->\n\n <!-- START CALLLIMIT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.call_limit.$touched || forms.general.$submitted) && forms.general.call_limit.$invalid}">\n <label class="control-label">{{\'APPLICATION_CALLLIMIT\' | translate}}</label>\n <input type="number" min="0" name="call-limit" placeholder="{{\'APPLICATION_CALLLIMIT\' | translate}}" class="form-control" data-ng-model="trunk.call_limit"/>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_CALLLIMIT\' | translate }}\n </span>\n </div>\n <!-- END CALLLIMIT -->\n\n </div>\n </div>\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="trunk.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n <!-- ADVANCED TAB -->\n <div class="tab-pane" id="tab_1_2">\n <form name="forms.advanced" data-ng-submit="forms.advanced.$valid && updateTrunk()" novalidate>\n <div class="row">\n <div class="col-md-6">\n\n <!-- START REGISTRY -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_REGISTRY\' | translate}}</label>\n <input type="text" name="registry" placeholder="{{\'APPLICATION_REGISTRY\' | translate}}" class="form-control" data-ng-model="trunk.registry"/>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_REGISTRY\' | translate }}\n </span>\n </div>\n <!-- END REGISTRY -->\n\n <!-- START DIRECTMEDIA -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.directmedia.$touched || forms.advanced.$submitted) && forms.advanced.directmedia.$invalid}">\n <label class="control-label">{{\'APPLICATION_DIRECTMEDIA\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="trunk.directmedia" name="directmedia" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\', \'no\', \'nonat\', \'update\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_DIRECTMEDIA\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.directmedia.$touched || forms.advanced.$submitted) && forms.advanced.directmedia.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END DIRECTMEDIA -->\n\n <!-- START CALLCOUNTER -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.callcounter.$touched || forms.advanced.$submitted) && forms.advanced.callcounter.$invalid}">\n <label class="control-label">{{\'APPLICATION_CALLCOUNTER\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="trunk.callcounter" name="callcounter" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_CALLCOUNTER\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.callcounter.$touched || forms.advanced.$submitted) && forms.advanced.callcounter.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CALLCOUNTER -->\n\n <!-- START FROMDOMAIN -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.advanced.$submitted && forms.advanced.fromdomain.$invalid}">\n <label class="control-label">{{\'APPLICATION_FROMDOMAIN\' | translate}}</label>\n <input type="text" name="fromdomain" placeholder="{{\'APPLICATION_FROMDOMAIN\' | translate}}" class="form-control" data-ng-model="trunk.fromdomain" />\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_FROMDOMAIN\' | translate }}\n </span>\n <span data-ng-show="forms.advanced.$submitted && (forms.advanced.fromdomain.$invalid)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END FROMDOMAIN -->\n\n <!-- START FROMUSER -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.advanced.$submitted && forms.advanced.fromuser.$invalid}">\n <label class="control-label">{{\'APPLICATION_FROMUSER\' | translate}}</label>\n <input type="text" name="fromuser" placeholder="{{\'APPLICATION_FROMUSER\' | translate}}" class="form-control" data-ng-model="trunk.fromuser" />\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_FROMUSER\' | translate }}\n </span>\n <span data-ng-show="forms.advanced.$submitted && (forms.advanced.fromuser.$invalid)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END FROMUSER -->\n\n </div>\n <div class="col-md-6">\n\n <!-- START OUTBOUNDPROXY -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.advanced.$submitted && forms.advanced.outboundproxy.$invalid}">\n <label class="control-label">{{\'APPLICATION_OUTBOUNDPROXY\' | translate}}</label>\n <input type="text" name="outboundproxy" placeholder="{{\'APPLICATION_OUTBOUNDPROXY\' | translate}}" class="form-control" data-ng-model="trunk.outboundproxy" />\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_OUTBOUNDPROXY\' | translate }}\n </span>\n <span data-ng-show="forms.advanced.$submitted && (forms.advanced.outboundproxy.$invalid)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END OUTBOUNDPROXY -->\n\n <!-- START USEREQPHONE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.usereqphone.$touched || forms.advanced.$submitted) && forms.advanced.usereqphone.$invalid}">\n <label class="control-label">{{\'APPLICATION_USEREQPHONE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="trunk.usereqphone" name="usereqphone" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_USEREQPHONE\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.usereqphone.$touched || forms.advanced.$submitted) && forms.advanced.usereqphone.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USEREQPHONE -->\n\n <!-- START TRUSTRPID -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.trustrpid.$touched || forms.advanced.$submitted) && forms.advanced.trustrpid.$invalid}">\n <label class="control-label">{{\'APPLICATION_TRUSTRPID\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="trunk.trustrpid" name="trustrpid" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_TRUSTRPID\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.trustrpid.$touched || forms.advanced.$submitted) && forms.advanced.trustrpid.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TRUSTRPID -->\n\n <!-- START SENDRPID -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.sendrpid.$touched || forms.advanced.$submitted) && forms.advanced.sendrpid.$invalid}">\n <label class="control-label">{{\'APPLICATION_SENDRPID\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="trunk.sendrpid" name="sendrpid" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_SENDRPID\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.sendrpid.$touched || forms.advanced.$submitted) && forms.advanced.sendrpid.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SENDRPID -->\n\n <!-- START ENCRYPTION -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.encryption.$touched || forms.advanced.$submitted) && forms.advanced.encryption.$invalid}">\n <label class="control-label">{{\'APPLICATION_ENCRYPTION\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="trunk.encryption" name="encryption" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_ENCRYPTION\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.encryption.$touched || forms.advanced.$submitted) && forms.advanced.encryption.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END ENCRYPTION -->\n\n <!-- START PORT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.port.$touched || forms.advanced.$submitted) && forms.advanced.port.$invalid}">\n <label class="control-label">{{\'APPLICATION_PORT\' | translate}}</label>\n <input type="number" min="0" name="port" placeholder="{{\'APPLICATION_PORT\' | translate}}" class="form-control" data-ng-model="trunk.port"/>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_PORT\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.port.$touched || forms.advanced.$submitted) && forms.advanced.port.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PORT -->\n\n <!-- START TRANSPORT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.transport.$touched || forms.advanced.$submitted) && forms.advanced.transport.$invalid}">\n <label class="control-label">{{\'APPLICATION_TRANSPORT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select multiple data-ng-model="trunk.transport" name="transport" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="item in [\'udp\',\'wss\',\'ws\',\'tcp\',\'tls\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_TRANSPORT\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.transport.$touched || forms.advanced.$submitted) && forms.advanced.transport.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TRANSPORT -->\n\n </div>\n </div>\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ADVANCED TAB -->\n <!-- START OTHER FIELDS TAB -->\n <div class="tab-pane" id="tab_1_3">\n <form name="forms.otherFields" data-ng-submit="forms.otherFields.$valid && updateTrunk()" novalidate>\n <div class="row">\n <div class="col-md-6">\n <!-- START OTHER FIELDS-->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_OTHER_FIELDS\' | translate}}</label>\n <textarea name="otherFields" placeholder="{{\'APPLICATION_OTHER_FIELDS\' | translate}}" class="form-control otherfields-col" data-ng-model="trunk.otherFields"></textarea>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_OTHER_FIELDS\' | translate }}\n </span>\n </div>\n <!-- END OTHER FIELDS -->\n </div>\n <div class="col-md-6">\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_EXAMPLE\' | translate}}</label>\n <div class="well">\n <div>host=dynamic</div>\n <div>secret=********</div>\n <div>regcontext=tammari-internal</div>\n <div>regexten=1005</div>\n <div>dtmfmode=rfc2833</div>\n <div>insecure=invite,port</div>\n <div>canreinvite=yes</div>\n <div>nat=yes</div>\n <div>qualify=yes</div>\n <div>context=merus-sipphone</div>\n <div>pickupgroup=1</div>\n <div>callgroup=1</div>\n <div>mailbox=1000@default</div>\n </div>\n </div>\n </div>\n </div>\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n\n </div>\n <!-- END OTHER FIELDS TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'), +a.put("app/tools/trunk/wizard/wizard.html",'<div class="col-md-12" data-ng-init="initWizard()">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-wrench"></i>\n <a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-link"></i>\n <a href="/tools/trunks/list">{{ \'APPLICATION_TRUNKS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-options"></i>\n <a href="#">{{ \'APPLICATION_WIZARD\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-link font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_TRUNK\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_GENERAL\' | translate}}" canexit="exitValidation(forms.general.$valid)">\n <form name="forms.general" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.$submitted && forms.general.name.$invalid) || forms.general.name.$error.pattern}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" data-ng-pattern="settings.simplePatternName" required/>\n <span data-ng-show="forms.general.$submitted && forms.general.name.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START HOST -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.host.$invalid}">\n <label class="control-label">{{\'APPLICATION_HOST\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="host" placeholder="{{\'APPLICATION_HOST\' | translate}}" class="form-control" data-ng-model="item.host" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_HOST\' | translate }}\n </span>\n <span data-ng-show="forms.general.$submitted && forms.general.host.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END HOST -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_SECRET\' | translate}}</label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.secret"/>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_SECRET\' | translate }}\n </span>\n <span data-ng-show="forms.general.$submitted && forms.general.password.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START DEFAULT USER -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.defaultuser.$invalid}">\n <label class="control-label">{{\'APPLICATION_DEFAULT_USER\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="defaultuser" placeholder="{{\'APPLICATION_DEFAULT\' | translate}} {{\'APPLICATION_USER\' | translate}}" class="form-control" data-ng-model="item.defaultuser" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_DEFAULT_USER\' | translate }}\n </span>\n <span data-ng-show="forms.general.$submitted && (forms.general.defaultuser.$invalid)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_PASSWORD\' | translate}}.\n </span>\n </div>\n <!-- END DEFAULT USER -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n <button class="btn green-haze" type="submit" ng-click="next(true)">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_ADVANCED\' | translate}}" canexit="exitValidation(forms.advanced.$valid)">\n <form name="forms.advanced" novalidate>\n\n <!-- START REGISTRY -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_REGISTRY\' | translate}}</label>\n <input type="text" name="registry" placeholder="{{\'APPLICATION_REGISTRY\' | translate}}" class="form-control" data-ng-model="item.registry"/>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_REGISTRY\' | translate }}\n </span>\n </div>\n <!-- END REGISTRY -->\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <button class="btn green-haze" type="submit" ng-click="next()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END PORTLET-->\n</div>\n'),a.put("app/tools/variable/list/list.create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_VARIABLE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/tools/variable/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-wrench"></i>\n <a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-eye"></i>\n <a href="#">{{ \'APPLICATION_VARIABLES\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_VARIABLES\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <button class="btn green-jungle " ng-click="createItem()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_VARIABLE\' | translate }}\n </button>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/tools/variable/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getVariable()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-wrench"></i>\n <a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-eye"></i>\n <a href="/tools/variables/list">{{ \'APPLICATION_VARIABLES\' | translate }}</a>\n <i data-ng-show="variable" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="variable">\n <a href="#">{{variable.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/variable.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{variable.name}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.tools.variables.view.settings\')}">\n <a data-ng-href="/tools/variables/view/{{variable.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/tools/variable/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_VARIABLE\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateVariable()" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="variable.name" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="variable.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ADVANCED TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/tools/yourdashboard/list/clone.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_CLONE_DASHBOARD\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="forms.dashboard" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.dashboard.name.$touched || forms.dashboard.$submitted) && forms.dashboard.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(forms.dashboard.name.$touched || forms.dashboard.$submitted) && forms.dashboard.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="ok()" ng-disabled="forms.dashboard.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/tools/yourdashboard/list/create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_DASHBOARD\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="forms.dashboard" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.dashboard.name.$touched || forms.dashboard.$submitted) && forms.dashboard.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(forms.dashboard.name.$touched || forms.dashboard.$submitted) && forms.dashboard.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="ok()" ng-disabled="forms.dashboard.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/tools/yourdashboard/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-tachometer"></i>\n <a href="/tools/yourdashboards/list">{{ \'APPLICATION_YOUR_DASHBOARDS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_YOUR_DASHBOARDS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <button class="btn green-jungle " ng-click="create()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_DASHBOARD\' | translate }}\n </button>\n </div>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/tools/yourdashboard/show/leaveEditedDashboard.modal.html",'<div class="modal-header" data-ng-init="getContacts()">\n <h3 class="modal-title">{{ \'APPLICATION_WARNING\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <p>{{\'MESSAGE_LEAVE_EDITED_PAGE\' | translate}}</p>\n</div>\n<div class="modal-footer">\n <button class="btn btn-danger" type="button" ng-click="close()">{{ \'APPLICATION_CONTINUE\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/tools/yourdashboard/show/show.html",'<div class="row" style="min-height: 466px;" id="yourDashboardView">\n <div class="col-md-12" ng-init="getDashboard()">\n <adf-dashboard\n data-ng-if="dashboard"\n name="{{dashboard.name}}"\n collapsible="{{dashboard.collapsible}}"\n maximizable="{{dashboard.maximizable}}"\n enableconfirmdelete="{{dashboard.enableconfirmdelete}}"\n structure="{{dashboard.structure}}"\n editable="{{dashboard.editable}}"\n adf-model="dashboard.model"/>\n </div>\n</div>\n'),a.put("app/tools/yourdashboard/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getDashboard()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-tachometer"></i>\n <a href="/tools/yourdashboards/list">{{ \'APPLICATION_YOUR_DASHBOARDS\' | translate }}</a>\n <i data-ng-show="dashboard" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="dashboard">\n <a href="#">{{dashboard.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/dashboard.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{dashboard.name}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.tools.yourdashboards.view.settings\')}">\n <a data-ng-href="/tools/yourdashboards/view/{{dashboard.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/tools/yourdashboard/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_DASHBOARD\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateDashboard()" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="dashboard.name" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START REFRESH_TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.timeout.$touched || forms.general.$submitted) && forms.general.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_REFRESH_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="5" name="name" placeholder="{{\'APPLICATION_REFRESH_TIMEOUT\' | translate}}" class="form-control" data-ng-model="dashboard.timeout" required/>\n <span data-ng-show="(forms.general.timeout.$touched || forms.general.$submitted) && forms.general.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END REFRESH_TIMEOUT -->\n\n <!-- START VISIBLE TO ADMIN -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_VISIBLE_TO_ADMIN\' | translate}}</label><br>\n <input\n bs-switch\n ng-model="dashboard.admin"\n type="checkbox"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <!-- END VISIBLE TO ADMIN -->\n\n <!-- START VISIBLE TO USER -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_VISIBLE_TO_USER\' | translate}}</label><br>\n <input\n bs-switch\n ng-model="dashboard.user"\n type="checkbox"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <!-- END VISIBLE TO USER -->\n\n <!-- START VISIBLE TO AGENT -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_VISIBLE_TO_AGENT\' | translate}}</label><br>\n <input\n bs-switch\n ng-model="dashboard.agent"\n type="checkbox"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <!-- END VISIBLE TO AGENT -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="dashboard.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ADVANCED TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/zendesk/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-heart"></i>\n <a href="/zendesk/list">{{ \'APPLICATION_ZENDESK\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-heart font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ZENDESK\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="/zendesk/wizard" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_ACCOUNT\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/zendesk/view/configuration/list/create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_CONFIGURATION\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.name.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(form.name.$touched || form.name.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START CHANNEL -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.channel.$touched || form.channel.$submitted) && form.channel.$invalid}">\n <label class="control-label">{{\'APPLICATION_CHANNEL\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.channel" name="channel" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_CHANNEL\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="channel.value as channel in channels | filter: $select.search">\n <div data-ng-bind="channel.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form.channel.$touched || form.channel.$submitted) && form.channel.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- START CHANNEL -->\n\n <!-- START VOICE SUBTYPE -->\n <div data-ng-if="item.channel===\'voice\'" class="form-group" data-ng-class="{\'has-error\': (form.channel.$touched || form.channel.$submitted) && form.channel.$invalid}">\n <label class="control-label">{{\'APPLICATION_TYPE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.type" name="type" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_TYPE\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="type in [\'Queue\',\'Outbound\'] | filter: $select.search">\n <div data-ng-bind="type | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form.type.$touched || form.type.$submitted) && form.type.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- START CHANNEL -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'), +a.put("app/zendesk/view/configuration/list/list.html",'<div ui-view class="profile-content">\n <div class="row">\n <div class="col-md-12">\n <div class="portlet light" data-ng-init="initView()">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_CONFIGURATIONS\' | translate}}</span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="#" data-ng-click="createItem()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_CONFIGURATION\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/zendesk/view/configuration/view/view.html",'<div class="row" data-ng-init="initView();getConfiguration();getCustomVariables();getFields();getTags();">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_CONFIGURATION\' | translate}}: {{configurationName}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_SUBJECT\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_DESCRIPTION\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_3" data-toggle="tab">{{\'APPLICATION_FIELDS\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_4" data-toggle="tab">{{\'APPLICATION_TAGS\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- SUBJECT TAB -->\n <div class="tab-pane ui-padding active" id="tab_1_1">\n <div class="row">\n <div class="col-md-11">\n <span class="caption-subject">All following fields will be join by blank space:</span>\n </div>\n <div class="col-md-1 pull-rigth">\n <button class="btn btn-icon-only green" data-ng-click="addItem(\'subject\')"><i class="fa fa-plus"></i></button>\n </div>\n </div>\n <hr>\n <!-- <div id="subject-item-list" ng-scrollbars ng-scrollbars-config="config"> -->\n <div class="row" data-ng-repeat="subjectItem in subjectConfig">\n <div class="col-md-3">\n <ui-select ng-model="subjectItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeType(subjectItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices repeat="item.type as item in fieldType | filter: $select.search">\n <div ng-bind-html="item.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-8" data-ng-if="subjectItem.type==\'string\'">\n <div class="form-group">\n <input type="text" class="form-control" data-ng-model="subjectItem.content" data-ng-change="updateField(subjectItem)">\n </div>\n </div>\n <div class="col-md-8" data-ng-if="subjectItem.type==\'variable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="subjectItem.variableName" data-ng-change="updateField(subjectItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices group-by="groupVariableByGroup" repeat="variable.name as variable in variables | filter: $select.search">\n <div ng-bind-html="variable.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-8" data-ng-if="subjectItem.type==\'customVariable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="subjectItem.VariableId" data-ng-change="updateField(subjectItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="variable.id as variable in customVariables | filter: $select.search">\n <div ng-bind-html="variable.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-1">\n <div class="form-group">\n <button class="btn btn-icon-only red" data-ng-click="removeItem(subjectItem)"><i class="fa fa-times"></i></button>\n </div>\n </div>\n </div>\n <!-- </div> -->\n </div>\n <!-- END SUBJECT TAB -->\n <!-- DESCRIPTION TAB -->\n <div class="tab-pane ui-padding" id="tab_1_2">\n <div class="row">\n <div class="col-md-11">\n <span class="caption-subject">All following fields will be join by new line:</span>\n </div>\n <div class="col-md-1 pull-rigth">\n <button class="btn btn-icon-only green" data-ng-click="addItem(\'description\')"><i class="fa fa-plus"></i></button>\n </div>\n </div>\n <hr>\n <!-- <div id="description-item-list" ng-scrollbars ng-scrollbars-config="config"> -->\n <div class="row" data-ng-repeat="descriptionItem in descriptionConfig">\n <div class="col-md-2">\n <ui-select ng-model="descriptionItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeDescType(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices repeat="item.type as item in descFieldType | filter: $select.search">\n <div ng-bind-html="item.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-9" data-ng-if="descriptionItem.type==\'string\'">\n <div class="form-group">\n <input type="text" class="form-control" data-ng-model="descriptionItem.content" data-ng-change="updateField(descriptionItem)">\n </div>\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\'">\n <input type="text" class="form-control" placeholder="Key" data-ng-model="descriptionItem.key" data-ng-change="updateField(descriptionItem)">\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\'">\n <ui-select ng-model="descriptionItem.keyType" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeDescType(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices repeat="item.type as item in fieldType | filter: $select.search">\n <div ng-bind-html="item.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\' && descriptionItem.keyType==\'string\'">\n <input type="text" class="form-control" placeholder="Value" data-ng-model="descriptionItem.keyContent" data-ng-change="updateField(descriptionItem)">\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\' && descriptionItem.keyType==\'variable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="descriptionItem.variableName" data-ng-change="updateField(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices group-by="groupVariableByGroup" repeat="variable.name as variable in variables | filter: $select.search">\n <div ng-bind-html="variable.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\' && descriptionItem.keyType==\'customVariable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="descriptionItem.VariableId" data-ng-change="updateField(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="variable.id as variable in customVariables | filter: $select.search">\n <div ng-bind-html="variable.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-1">\n <div class="form-group">\n <button class="btn btn-icon-only red" data-ng-click="removeItem(descriptionItem)"><i class="fa fa-times"></i></button>\n </div>\n </div>\n </div>\n <!-- </div> -->\n </div>\n <!-- END DESCRIPTION TAB -->\n <!-- FIELDS TAB -->\n <div class="tab-pane ui-padding" id="tab_1_3">\n <div class="row">\n <div class="col-md-11">\n <span class="caption-subject">Add how to fill the fields present in your account:</span>\n </div>\n <div class="col-md-1 pull-rigth">\n <button class="btn btn-icon-only green" data-ng-click="addItem(\'field\')"><i class="fa fa-plus"></i></button>\n </div>\n </div>\n <hr>\n <!-- <div id="field-item-list" ng-scrollbars ng-scrollbars-config="config"> -->\n <div class="row" data-ng-repeat="fieldItem in fieldConfig">\n <div class="col-md-3">\n <ui-select ng-model="fieldItem.idField" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeFieldType(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices repeat="item.id as item in accountFields | filter: $select.search">\n <div ng-bind-html="item.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-8" data-ng-if="getSystemFieldOptions(fieldItem.idField)">\n <div class="form-group">\n <ui-select ng-model="fieldItem.content" theme="bootstrap" ng-disabled="disabled" data-ng-change="updateField(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="item.value as item in getSystemFieldOptions(fieldItem.idField) | filter: $select.search">\n <div ng-bind-html="item.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField)">\n <div class="form-group">\n <ui-select ng-model="fieldItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeType(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices repeat="item.type as item in fieldType | filter: $select.search">\n <div ng-bind-html="item.title | highlight: $select.search | ucfirst"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'string\'">\n <div class="form-group">\n <input type="text" class="form-control" data-ng-model="fieldItem.content" data-ng-change="updateField(fieldItem)">\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'variable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="fieldItem.variableName" data-ng-change="updateField(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices group-by="groupVariableByGroup" repeat="variable.name as variable in variables | filter: $select.search">\n <div ng-bind-html="variable.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'customVariable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="fieldItem.VariableId" data-ng-change="updateField(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="variable.id as variable in customVariables | filter: $select.search">\n <div ng-bind-html="variable.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-1">\n <div class="form-group">\n <button class="btn btn-icon-only red" data-ng-click="removeItem(fieldItem)"><i class="fa fa-times"></i></button>\n </div>\n </div>\n </div>\n <!-- </div> -->\n </div>\n <!-- END FIELDS TAB -->\n <!-- TAG TAB -->\n <div class="tab-pane ui-padding" id="tab_1_4">\n <div class="row">\n <div class="col-md-12">\n <span class="caption-subject">Select tags that you want add in the ticket:</span>\n </div>\n </div>\n <hr>\n <form name="forms.tags" data-ng-submit="updateTags()" novalidate>\n <!-- TAG -->\n <div class="form-group">\n <ui-select multiple data-ng-model="selectedTags.tags" theme="bootstrap" name="tags" ng-disabled="disabled">\n <ui-select-match placeholder="{{ \'APPLICATION_TAGS\' | translate }}">{{$item.name}}</ui-select-match>\n <ui-select-choices repeat="tag.id as tag in tags | filter: $select.search">\n {{tag.name}}\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END TAG -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END TAG TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/zendesk/view/view.account.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_ACCOUNT\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERALS\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.formSetting" data-ng-submit="forms.formSetting.$valid && updateItem()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.name" required/>\n <span data-ng-show="forms.formSetting.name.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="account.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formSetting.type.$touched || forms.formSetting.$submitted) && forms.formSetting.type.$invalid}">\n <label class="control-label">{{\'APPLICATION_TYPE\' | translate}}</label>\n <ui-select data-ng-model="account.type" name="type" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_TYPE\' | translate}}">{{\'APPLICATION_\'+$select.selected | uppercase | translate}}</ui-select-match>\n <ui-select-choices repeat="type in [\'integrationTab\', \'newTab\'] | filter: $select.search">\n <div data-ng-bind="\'APPLICATION_\'+type | uppercase | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.formSetting.type.$invalid && (forms.formSetting.type.$touched || forms.formSetting.$submitted)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- START TYPE -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.username" required/>\n <span data-ng-show="forms.formSetting.username.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START REMOTE ADDRESS -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.remoteUri.$invalid}">\n <label class="control-label">{{\'APPLICATION_URI\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="remoteUri" placeholder="{{\'APPLICATION_URI\' | translate}}" class="form-control" data-ng-model="account.remoteUri" required />\n <span data-ng-show="forms.formSetting.remoteUri.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START AUTH TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.authType.$invalid}">\n <label class="control-label">{{\'APPLICATION_AUTHENTICATION_TYPE\' | translate}}</label>\n <ui-select data-ng-model="account.authType" name="authType" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_AUTHENTICATION_TYPE\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="type in [\'password\', \'token\'] | filter: $select.search">\n <div data-ng-bind="type | capitalize | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.formSetting.authType.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- START AUTH TYPE -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.password.$invalid}" ng-slide-down="account.authType == \'password\'" lazy-render duration="1">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.password" required/>\n <span data-ng-show="forms.formSetting.password.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START TOKEN -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.token.$invalid}" ng-slide-down="account.authType == \'token\'" lazy-render duration="1">\n <label class="control-label">{{\'APPLICATION_TOKEN\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="token" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.token" required/>\n <span data-ng-show="forms.formSetting.token.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TOKEN -->\n\n <!-- START SERVER URL -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.serverUrl.$invalid}">\n <label class="control-label">{{\'APPLICATION_MOTION_ADDRESS\' | translate}}</label>\n <input type="url" name="serverUrl" placeholder="{{\'APPLICATION_MOTION_ADDRESS\' | translate}}" class="form-control" data-ng-model="account.serverUrl"/>\n <span class="help-block">\n {{\'DESCRIPTION_SERVER_URL\' | translate}}.\n </span>\n <span class="help-block help-block-info">\n {{\'MESSAGE_MOTION_ADDRESS_FORMAT\' | translate}}\n </span>\n </div>\n <!-- END SERVER URL -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/zendesk/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-heart"></i>\n <a href="/zendesk/list">{{ \'APPLICATION_ZENDESK\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <a href="#">{{account.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img src="assets/images/media/zendesk.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{account.name}}\n </div>\n <div class="profile-usertitle-job">\n {{account.remoteUri}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.zendesk.view.account\')}">\n <a ng-href="/zendesk/view/{{account.id}}/account">\n <i class="icon-user"></i>\n {{ \'APPLICATION_ACCOUNT\' | translate }} </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.zendesk.view.configurations\') || $state.is(\'main.zendesk.view.configuration\')}">\n <a ng-href="/zendesk/view/{{account.id}}/configurations/list">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_CONFIGURATIONS\' | translate }} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/zendesk/wizard/wizard.html",'<!-- BEGIN PAGE HEADER-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-heart"></i>\n <a href="/zendesk/list">{{ \'APPLICATION_ZENDESK\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n<!-- END PAGE HEADER-->\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initWizard()">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACCOUNT\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_ACCOUNT_INFO\' | translate}}" canexit="exitValidation(forms.formSetting.$valid)">\n <form name="forms.formSetting" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="forms.formSetting.name.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formSetting.type.$touched || forms.formSetting.$submitted) && forms.formSetting.type.$invalid}">\n <label class="control-label">{{\'APPLICATION_TYPE\' | translate}}</label>\n <ui-select data-ng-model="item.type" name="type" theme="bootstrap" data-ng-init="item.type = \'integrationTab\'" required>\n <ui-select-match placeholder="{{\'APPLICATION_TYPE\' | translate}}">{{\'APPLICATION_\'+$select.selected | uppercase | translate}}</ui-select-match>\n <ui-select-choices repeat="type in [\'integrationTab\', \'newTab\'] | filter: $select.search">\n <div data-ng-bind="\'APPLICATION_\'+type | uppercase | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.formSetting.type.$invalid && (forms.formSetting.type.$touched || forms.formSetting.$submitted)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- START TYPE -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.username" required ng-remote-validate="/api/zendesk/accounts/validate/username"/>\n <span data-ng-show="forms.formSetting.username.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.formSetting.username.$touched || forms.formSetting.$submitted) && forms.formSetting.username.$error.ngRemoteValidate" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_EXIST_USERNAME\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START REMOTE ADDRESS -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.remoteUri.$invalid}">\n <label class="control-label">{{\'APPLICATION_URI\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="remoteUri" placeholder="{{\'APPLICATION_URI\' | translate}}" class="form-control" data-ng-model="item.remoteUri" required ng-remote-validate="/api/zendesk/accounts/validate/remoteUri"/>\n <span data-ng-show="forms.formSetting.remoteUri.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.formSetting.remoteUri.$touched || forms.formSetting.$submitted) && forms.formSetting.remoteUri.$error.ngRemoteValidate" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_EXIST_DOMAIN\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START AUTH TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.authType.$invalid}">\n <label class="control-label">{{\'APPLICATION_AUTHENTICATION_TYPE\' | translate}}</label>\n <ui-select data-ng-model="item.authType" name="authType" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_AUTHENTICATION_TYPE\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="type in [\'password\', \'token\'] | filter: $select.search">\n <div data-ng-bind="type | capitalize | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.formSetting.authType.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- START AUTH TYPE -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.password.$invalid}" ng-slide-down="item.authType == \'password\'" lazy-render duration="1">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.password" required/>\n <span data-ng-show="forms.formSetting.password.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START TOKEN -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.token.$invalid}" ng-slide-down="item.authType == \'token\'" lazy-render duration="1">\n <label class="control-label">{{\'APPLICATION_TOKEN\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="token" placeholder="{{\'APPLICATION_TOKEN\' | translate}}" class="form-control" data-ng-model="item.token" required/>\n <span data-ng-show="forms.formSetting.token.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TOKEN -->\n\n <!-- START SERVER URL -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.serverUrl.$invalid}">\n <label class="control-label">{{\'APPLICATION_MOTION_ADDRESS\' | translate}}</label>\n <input type="url" name="serverUrl" placeholder="{{\'APPLICATION_MOTION_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.serverUrl"/>\n <span class="help-block">\n {{\'DESCRIPTION_SERVER_URL\' | translate}}.\n </span>\n <span class="help-block help-block-info">\n {{\'MESSAGE_MOTION_ADDRESS_FORMAT\' | translate}}\n </span>\n </div>\n <!-- END SERVER URL -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" data-ng-click="next()"/>\n\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n\n </wizard>\n\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'), +a.put("components/directives/action/accountEmail/actionBuilder.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_ACCOUNT\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in accounts.rows | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n\n<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data6\'+randomName].$touched || form.$submitted) && form[\'data6\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data6" name="data6{{randomName}}" theme="bootstrap">\n <ui-select-match allow-clear placeholder="{{\'APPLICATION_TEMPLATE\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n <div ng-bind-html="template.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form[\'data6\'+randomName].$touched || form.$submitted) && form[\'data6\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n\n<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n <input type="text" ng-model="element.data2" name="data2{{randomName}}" class="form-control" placeholder="{{\'APPLICATION_TO\' | translate}}" required/>\n <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n\n<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data3\'+randomName].$touched || form.$submitted) && form[\'data3\'+randomName].$invalid}">\n <input type="text" ng-model="element.data3" name="data3{{randomName}}" class="form-control" placeholder="{{\'APPLICATION_CC\' | translate}}"/>\n <span data-ng-show="(form[\'data3\'+randomName].$touched || form.$submitted) && form[\'data3\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n\n<div data-ng-if="randomName && !element.data6" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data4\'+randomName].$touched || form.$submitted) && form[\'data4\'+randomName].$invalid}">\n <input type="text" ng-model="element.data4" name="data4{{randomName}}" class="form-control" placeholder="{{\'APPLICATION_SUBJECT\' | translate}}"/>\n <span data-ng-show="(form[\'data4\'+randomName].$touched || form.$submitted) && form[\'data4\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n\n<div data-ng-if="randomName" class="form-group col-md-12" data-ng-class="{\'has-error\': (form[\'data5\'+randomName].$touched || form.$submitted) && form[\'data5\'+randomName].$invalid}">\n <textarea rows="10" ng-model="element.data5" name="data5{{randomName}}" class="form-control" placeholder="{{\'APPLICATION_TEXT\' | translate}}" data-ng-required="!element.data6"></textarea>\n <span data-ng-show="(form[\'data5\'+randomName].$touched || form.$submitted) && form[\'data5\'+randomName].$error.required" class="help-block help-block-error">\n'+" <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n </span>\n</div>\n"),a.put("components/directives/action/accountSms/actionBuilder.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_ACCOUNT\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in accounts.rows | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n\n<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n <input type="text" ng-model="element.data2" name="data2{{randomName}}" class="form-control" placeholder="{{\'APPLICATION_TO\' | translate}}" required/>\n <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n\n<div data-ng-if="randomName" class="form-group col-md-12" data-ng-class="{\'has-error\': (form[\'data3\'+randomName].$touched || form.$submitted) && form[\'data3\'+randomName].$invalid}">\n <textarea rows="10" ng-model="element.data3" name="data3{{randomName}}" class="form-control" placeholder="{{\'APPLICATION_TEXT\' | translate}}"></textarea>\n <span data-ng-show="(form[\'data3\'+randomName].$touched || form.$submitted) && form[\'data3\'+randomName].$error.required" class="help-block help-block-error">\n'+" <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n </span>\n</div>\n"),a.put("components/directives/action/accountTemplate/actionBuilder.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_ACCOUNT\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in accounts.rows | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n\n<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data2" name="data2{{randomName}}" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_TEMPLATE\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="template.id as template in templates.rows | filter: $select.search">\n <div ng-bind-html="template.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n\n<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data3\'+randomName].$touched || form.$submitted) && form[\'data3\'+randomName].$invalid}">\n <input type="text" ng-model="element.data3" name="data3{{randomName}}" class="form-control" placeholder="{{\'APPLICATION_TO\' | translate}}" required/>\n <span data-ng-show="(form[\'data3\'+randomName].$touched || form.$submitted) && form[\'data3\'+randomName].$error.required" class="help-block help-block-error">\n'+" <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n </span>\n</div>\n"),a.put("components/directives/action/close/actionBuilder.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n <input type="text" ng-model="element.data1" name="data1{{randomName}}" class="form-control" placeholder="{{ \'APPLICATION_DISPOSITION\' | translate }}"/>\n <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n'+" <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n </span>\n</div>\n"),a.put("components/directives/action/cm/actionBuilder.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" on-select="element.data2 = element.data1 ? element.data2 : false">\n <ui-select-match allow-clear>{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="list.id as list in lists | filter: $select.search">\n <div ng-bind-html="list.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n\n<div data-ng-if="randomName && element.data1" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n <input\n bs-switch\n class="form-control"\n ng-init="element.data2 = element.data1 && element.data2 == \'1\' ? true : false"\n ng-model="element.data2"\n type="checkbox"\n name="auth"\n switch-active="{{ switch.isActive }}"\n switch-on-text="{{ switch.onText }}"\n switch-off-text="{{ switch.offText }}"\n switch-on-color="{{ switch.onColor }}"\n switch-off-color="{{ switch.offColor }}"\n switch-animate="{{ switch.animate }}"\n switch-size="{{ switch.size }}"\n switch-label="{{ switch.label }}"\n switch-icon="{{ switch.icon }}"\n switch-radio-off="{{ switch.radioOff }}"\n switch-label-width="{{ switch.labelWidth }}"\n switch-handle-width="{{ switch.handleWidth }}">\n <span class="help-block">\n {{\'APPLICATION_AUTO_CREATE\' | translate}}\n </span>\n <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n'+" <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n </span>\n</div>\n"),a.put("components/directives/action/email/actionBuilder.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data5\'+randomName].$touched || form.$submitted) && form[\'data5\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data5" name="data5{{randomName}}" theme="bootstrap">\n <ui-select-match allow-clear placeholder="{{\'APPLICATION_TEMPLATE\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n <div ng-bind-html="template.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form[\'data5\'+randomName].$touched || form.$submitted) && form[\'data5\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n\n<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n <input type="text" ng-model="element.data1" name="data1{{randomName}}" class="form-control" placeholder="{{\'APPLICATION_TO\' | translate}}" required/>\n <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n\n<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n <input type="text" ng-model="element.data2" name="data2{{randomName}}" class="form-control" placeholder="{{\'APPLICATION_CC\' | translate}}"/>\n <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n\n<div data-ng-if="randomName && !element.data5" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data3\'+randomName].$touched || form.$submitted) && form[\'data3\'+randomName].$invalid}">\n <input type="text" ng-model="element.data3" name="data3{{randomName}}" class="form-control" placeholder="{{\'APPLICATION_SUBJECT\' | translate}}"/>\n <span data-ng-show="(form[\'data3\'+randomName].$touched || form.$submitted) && form[\'data3\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n\n<div data-ng-if="randomName" class="form-group col-md-12" data-ng-class="{\'has-error\': (form[\'data4\'+randomName].$touched || form.$submitted) && form[\'data4\'+randomName].$invalid}">\n <textarea rows="10" ng-model="element.data4" name="data4{{randomName}}" class="form-control" placeholder="{{\'APPLICATION_TEXT\' | translate}}" data-ng-required="!element.data5"></textarea>\n <span data-ng-show="(form[\'data4\'+randomName].$touched || form.$submitted) && form[\'data4\'+randomName].$error.required" class="help-block help-block-error">\n'+" <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n </span>\n</div>\n"),a.put("components/directives/action/forward/actionBuilder.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n <input type="text" ng-model="element.data1" name="data1{{randomName}}" class="form-control" placeholder="{{ \'APPLICATION_TO\' | translate }}" required/>\n <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n'+" <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n </span>\n</div>\n"),a.put("components/directives/action/http/actionBuilder.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="method in methods | filter: $select.search">\n <div ng-bind-html="method | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n\n<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n <input type="text" ng-model="element.data2" name="data2{{randomName}}" class="form-control" placeholder="URL" required/>\n <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n'+" <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n </span>\n</div>\n"),a.put("components/directives/action/integration/actionBuilder.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" data-ng-change="changeIntegration()" required>\n <ui-select-match placeholder="{{ \'APPLICATION_INTEGRATION\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="integration.state as integration in integrations | filter: $select.search">\n <div ng-bind-html="integration.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{\'APPLICATION_INTEGRATION\' | translate}}\n </span>\n <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n<div class="form-group col-md-6" data-ng-if="element.data1 && accounts && randomName" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data2" name="data2{{randomName}}" theme="bootstrap" data-ng-change="changeAccount();" required>\n <ui-select-match placeholder="{{\'APPLICATION_ACCOUNT\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in accounts | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{\'APPLICATION_ACCOUNT\' | translate}}\n </span>\n <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n<div class="form-group col-md-6" data-ng-if="element.data2 && configurations && randomName" data-ng-class="{\'has-error\': (form[\'data3\'+randomName].$touched || form.$submitted) && form[\'data3\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data3" name="data3{{randomName}}" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_CONFIGURATION\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="config.id as config in configurations | filter: $select.search">\n <div ng-bind-html="config.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{\'APPLICATION_CONFIGURATION\' | translate}}\n </span>\n <span data-ng-show="(form[\'data3\'+randomName].$touched || form.$submitted) && form[\'data3\'+randomName].$error.required" class="help-block help-block-error">\n'+" <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n </span>\n</div>\n"),a.put("components/directives/action/jscripty/actionBuilder.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" required>\n <ui-select-match>{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="project.id as project in projects | filter: $select.search">\n <div ng-bind-html="project.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n'+" <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n </span>\n</div>\n"),a.put("components/directives/action/motionbar/actionBuilder.html",'<!-- data1: 0 POPUP, 1 URL, 2 WINAPP -->\n<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" required data-ng-change="changeMode();">\n <ui-select-match placeholder="{{ \'APPLICATION_TYPE\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="motionAction.value as motionAction in motionActions | filter: $select.search">\n <div ng-bind-html="motionAction.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'APPLICATION_TYPE\' | translate }}\n </span>\n <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n\n<!-- data1:0 data2:Template -->\n<div data-ng-if="randomName && element.data1==0" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data2" name="data2{{randomName}}" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_TEMPLATE\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n <div ng-bind-html="template.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'APPLICATION_TEMPLATE\' | translate }}\n </span>\n <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n\n<!-- data1:1 data2:URL -->\n<div data-ng-if="randomName && element.data1==1" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n <input type="text" ng-model="element.data2" name="data2{{randomName}}" class="form-control" required placeholder="{{ \'APPLICATION_URL\' | translate }}"/>\n <span class="help-block">\n {{ \'APPLICATION_URL\' | translate }}\n </span>\n <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n\n<!-- data1:2 data2:Application data3:Arguments -->\n<div data-ng-if="randomName && element.data1==2" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n <input type="text" ng-model="element.data2" name="data2{{randomName}}" class="form-control" required placeholder="{{ \'APPLICATION_APPLICATION\' | translate }}"/>\n <span class="help-block">\n {{ \'APPLICATION_APPLICATION\' | translate }}\n </span>\n <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n<div data-ng-if="randomName && element.data1==2" class="form-group col-md-6">\n <input type="text" ng-model="element.data3" name="data3{{randomName}}" class="form-control" placeholder="{{ \'APPLICATION_ARGUMENTS\' | translate }}"/>\n <span class="help-block">\n {{ \'APPLICATION_ARGUMENTS\' | translate }}\n </span>\n</div>\n'),a.put("components/directives/action/status/actionBuilder.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" required>\n <ui-select-match>{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="status.value as status in states | filter: $select.search">\n <div ng-bind-html="status.name | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n'+" <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n </span>\n</div>\n"),a.put("components/directives/action/tag/actionBuilder.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n <ui-select multiple data-ng-model="data.tags" name="data1{{randomName}}" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_TAG\' | translate}}">{{$item.name}}</ui-select-match>\n <ui-select-choices repeat="tag.name as tag in tags | filter:$select.search" class="">\n {{tag.name}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n'+" <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n </span>\n</div>\n"),a.put("components/directives/action/template/actionBuilder.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_TEMPLATE\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n <div ng-bind-html="template.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n\n<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n <input type="text" ng-model="element.data2" name="data2{{randomName}}" class="form-control" placeholder="{{\'APPLICATION_TO\' | translate}}" required/>\n <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n'+" <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n </span>\n</div>\n"),a.put("components/directives/action/urlforward/actionBuilder.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_TYPE\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="type.value as type in types | filter: $select.search">\n <div ng-bind-html="type.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{\'APPLICATION_TYPE\' | translate}}\n </span>\n <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n<div class="form-group col-md-12" data-ng-if="element.data1 && randomName" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n <input type="url" ng-model="element.data2" placeholder="{{ \'APPLICATION_URL\' | translate }}" name="data2{{randomName}}" class="form-control" required/>\n <span class="help-block">\n {{\'APPLICATION_URL\' | translate}}\n </span>\n <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n'+" <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n </span>\n</div>\n"),a.put("components/directives/action/webPopup/actionBuilder.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data2" name="data2{{randomName}}" theme="bootstrap" on-select="typeChange()" required>\n <ui-select-match placeholder="{{ \'APPLICATION_TYPE\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="type in [\'motion\',\'browser\'] | filter: $select.search">\n <div ng-bind-html="type | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n<div data-ng-if="randomName && element.data2 == \'motion\'" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_TEMPLATE\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n <div ng-bind-html="template.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'APPLICATION_TEMPLATE\' | translate }}\n </span>\n <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n<div class="form-group col-md-12" data-ng-if="randomName && element.data2 == \'browser\'" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n <input type="url" ng-model="element.data1" placeholder="{{ \'APPLICATION_URL\' | translate }}" name="data1{{randomName}}" class="form-control" required/>\n <span class="help-block">\n {{\'APPLICATION_URL\' | translate}}\n </span>\n <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n'+" <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n </span>\n</div>\n"), +a.put("components/directives/condition/conditionBuilder.html",'<div data-ng-if="randomName" class="form-group col-md-4" data-ng-class="{\'has-error\': (form[\'field\'+randomName].$touched || form.$submitted) && form[\'field\'+randomName].$invalid}">\n <ui-select data-ng-model="element.field" name="field{{randomName}}" theme="bootstrap" data-ng-change="checkCondition(element.field)" required>\n <ui-select-match>{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="condition.value as condition in service.services[serviceindex].conditions | filter: $select.search">\n <div ng-bind-html="condition.name | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form[\'field\'+randomName].$touched || form.$submitted) && form[\'field\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n<div data-ng-if="randomName && element.field" class="form-group col-md-4" data-ng-class="{\'has-error\': (form[\'operator\'+randomName].$touched || form.$submitted) && form[\'operator\'+randomName].$invalid}">\n <ui-select data-ng-model="element.operator" name="operator{{randomName}}" theme="bootstrap" required>\n <ui-select-match>{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="operator.value as operator in _.find(service.services[serviceindex].conditions,{value:element.field}).operators | filter: $select.search">\n <div ng-bind-html="operator.name | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form[\'operator\'+randomName].$touched || form.$submitted) && form[\'operator\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n<div class="col-md-4" data-ng-if="elementType === \'input\' && randomName && element.field" data-ng-class="{\'has-error\': (form[\'value\'+randomName].$touched || form.$submitted) && form[\'value\'+randomName].$invalid}">\n <input type="text" ng-model="element.value" class="form-control" name="value{{randomName}}" required/>\n <span data-ng-show="(form[\'value\'+randomName].$touched || form.$submitted) && form[\'value\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n<div class="form-group col-md-4" data-ng-if="elementType === \'select\' && randomName && element.field" data-ng-class="{\'has-error\': (form[\'value\'+randomName].$touched || form.$submitted) && form[\'value\'+randomName].$invalid}">\n <ui-select data-ng-model="element.value" name="value{{randomName}}" theme="bootstrap" required>\n <ui-select-match>{{ translateName ? (\'APPLICATION_TRIGGER_\'+$select.selected.name | uppercase | translate) : $select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="value.value as value in values | filter: $select.search">\n <div ng-bind-html="(translateName ? (\'APPLICATION_TRIGGER_\'+value.name | uppercase | translate) : value.name) | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form[\'value\'+randomName].$touched || form.$submitted) && form[\'value\'+randomName].$error.required" class="help-block help-block-error">\n'+" <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n </span>\n</div>\n"),a.put("components/factories/xNotificationLicense/xNotificationLicense.html",'<div class="ui-notification alert alert-block" ng-class="class" style="width: 410px;">\n <h4 class="alert-heading">\n <i class="{{icon}}"></i> {{\'APPLICATION_WARNING\' | translate}}! {{\'MESSAGE_YOUR_LICENSE_IS_GOING_TO_EXPIRE\' | translate}}! <a ng-click="more()" style="color: blue;">More.</a>\n </h4>\n</div>\n'),a.put("components/footer/footer.html",'<!-- BEGIN FOOTER -->\n<div class="page-footer" data-ng-init="initFooter()">\n <div class="page-footer-inner">\n xCALLY Motion v. {{info.version}} | 2016 - {{year + 1}} © Powered by Xenialab <ng-bind-html data-ng-if="license.custom && !settings.defaultFooterWhiteLabel && settings.footerWhiteLabel" ng-bind-html="\'| \'+settings.footerWhiteLabel"></ng-bind-html>\n </div>\n <div class="scroll-to-top">\n <i class="icon-arrow-up"></i>\n </div>\n</div>\n<!-- END FOOTER -->\n'),a.put("components/header/header.html",'<!-- BEGIN HEADER INNER -->\n<div class="page-header-inner" data-ng-init="initHeader()">\n <!-- BEGIN LOGO -->\n <div class="page-logo">\n <a href="/">\n <img ng-src="api/settings/logo/main" alt="logo" class="logo-default custom-logo" onError="this.onerror=null"/>\n </a>\n <div class="menu-toggler sidebar-toggler" data-ng-click="toggleSidebar()"></div>\n </div>\n\n <!-- END LOGO -->\n <!-- BEGIN HEADER SEARCH BOX -->\n <!-- DOC: Apply "search-form-expanded" right after the "search-form" class to have half expanded search box -->\n <form ng-repeat="call in activeCalls | limitTo:2" class="search-form search-form-expanded">\n <div class="input-group">\n <input type="text" class="form-control" value="{{call.calleridnum}}" readonly>\n <span class="input-group-btn">\n <a href="javascript:;" class="btn submit inactive-link"><i class="icon-earphones-alt"></i></a>\n </span>\n </div>\n </form>\n <!-- END HEADER SEARCH BOX -->\n <!-- BEGIN RESPONSIVE MENU TOGGLER -->\n <a href="javascript:;" class="menu-toggler responsive-toggler" data-toggle="collapse" data-target=".navbar-collapse"></a>\n <!-- END RESPONSIVE MENU TOGGLER -->\n <!-- BEGIN TOP NAVIGATION MENU -->\n <div class="top-menu">\n <ul class="nav navbar-nav pull-right">\n <!-- DOC: Apply "dropdown-dark" class after below "dropdown-extended" to change the dropdown styte -->\n\n <!-- BEGIN USER LOGIN DROPDOWN -->\n <!-- DOC: Apply "dropdown-dark" class after below "dropdown-extended" to change the dropdown styte -->\n <li class="dropdown dropdown-user">\n <a href="#" class="dropdown-toggle" dropdown-menu-hover data-toggle="dropdown" data-close-others="true">\n <img class="img-circle" data-ng-src="api/users/avatar/{{getCurrentUser().userpic || \'unknown_avatar\'}}" alt="...">\n <span class="username username-hide-on-mobile">\n {{ getCurrentUser().fullname }}\n </span>\n <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu dropdown-menu-default">\n <li>\n <a ng-href=" {{getCurrentUser().role === \'agent\' ? \'/staff/agents/view/\'+getCurrentUser().id+\'/account\' : \'/staff/users/view/\'+getCurrentUser().id+\'/account\'}}">\n <i class="icon-key"></i>{{\'APPLICATION_CHANGE_PASSWORD\' | translate}}\n </a>\n </li>\n <li data-ng-click="logout()">\n <a href="#">\n <i class="icon-logout"></i> Log Out\n </a>\n </li>\n </ul>\n </li>\n <!-- END USER LOGIN DROPDOWN -->\n <!-- BEGIN QUICK SIDEBAR TOGGLER -->\n <!-- DOC: Apply "dropdown-dark" class after below "dropdown-extended" to change the dropdown styte -->\n <!-- <li class="dropdown dropdown-quick-sidebar-toggler" data-ng-click="toggleQuickSidebar()">\n <a href="#" class="dropdown-toggle">\n <i class="icon-logout"></i>\n </a>\n </li> -->\n <!-- END QUICK SIDEBAR TOGGLER -->\n</ul>\n<ul class="nav navbar-nav pull-right" data-ng-if="getCurrentUser().role == \'admin\'">\n <li class="dropdown dropdown-user">\n <a href="/setting/license/view" class="dropdown-toggle" dropdown-menu-hover data-toggle="dropdown" data-close-others="true">\n <i class="icon-info"></i> <span class="username username-hide-on-mobile right-margin-10">{{\'APPLICATION_LICENSE_STATUS\' | translate}}</span>\n </a>\n </li>\n</ul>\n<ul class="nav navbar-nav pull-right">\n <!-- BEGIN LANGUAGE BAR -->\n <li class="dropdown dropdown-language">\n <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">\n <img ng-src="assets/images/flags/{{ language }}.png">\n <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu dropdown-menu-default scrollable-menu">\n <li>\n <a href="#" ng-click="changeLanguage(\'ar\')">\n <img alt="" src="assets/images/flags/ar.png"> {{\'APPLICATION_ARABIC\' | translate}}\n </a>\n </li>\n <li>\n <a href="#" ng-click="changeLanguage(\'da\')">\n <img alt="" src="assets/images/flags/da.png"> {{\'APPLICATION_DANISH\' | translate}}\n </a>\n </li>\n <li>\n <a href="#" ng-click="changeLanguage(\'de\')">\n <img alt="" src="assets/images/flags/de.png"> {{\'APPLICATION_GERMAN\' | translate}}\n </a>\n </li>\n <li>\n <a href="#" ng-click="changeLanguage(\'en_EN\')">\n <img alt="" src="assets/images/flags/en_EN.png"> {{\'APPLICATION_ENGLISH\' | translate}}\n </a>\n </li>\n <li>\n <a href="#" ng-click="changeLanguage(\'es\')">\n <img alt="" src="assets/images/flags/es.png"> {{\'APPLICATION_SPANISH\' | translate}}\n </a>\n </li>\n <li>\n <a href="#" ng-click="changeLanguage(\'fi\')">\n <img alt="" src="assets/images/flags/fi.png"> {{\'APPLICATION_FINNISH\' | translate}}\n </a>\n </li>\n <li>\n <a href="#" ng-click="changeLanguage(\'fr\')">\n <img alt="" src="assets/images/flags/fr.png"> {{\'APPLICATION_FRENCH\' | translate}}\n </a>\n </li>\n <li>\n <a href="#" ng-click="changeLanguage(\'hi\')">\n <img alt="" src="assets/images/flags/hi.png"> {{\'APPLICATION_HINDI\' | translate}}\n </a>\n </li>\n <li>\n <a href="#" ng-click="changeLanguage(\'it\')">\n <img alt="" src="assets/images/flags/it.png"> {{\'APPLICATION_ITALIAN\' | translate}}\n </a>\n </li>\n <li>\n <a href="#" ng-click="changeLanguage(\'ja\')">\n <img alt="" src="assets/images/flags/ja.png"> {{\'APPLICATION_JAPANASE\' | translate}}\n </a>\n </li>\n <li>\n <a href="#" ng-click="changeLanguage(\'ko\')">\n <img alt="" src="assets/images/flags/ko.png"> {{\'APPLICATION_KOREAN\' | translate}}\n </a>\n </li>\n <li>\n <a href="#" ng-click="changeLanguage(\'nl\')">\n <img alt="" src="assets/images/flags/nl.png"> {{\'APPLICATION_DUTCH\' | translate}}\n </a>\n </li>\n <li>\n <a href="#" ng-click="changeLanguage(\'no\')">\n <img alt="" src="assets/images/flags/no.png"> {{\'APPLICATION_NORWEGIAN\' | translate}}\n </a>\n </li>\n <li>\n <a href="#" ng-click="changeLanguage(\'pt-BR\')">\n <img alt="" src="assets/images/flags/pt-BR.png"> {{\'APPLICATION_PORTUGUESE_BRAZIL\' | translate}}\n </a>\n </li>\n <li>\n <a href="#" ng-click="changeLanguage(\'pt-PT\')">\n <img alt="" src="assets/images/flags/pt-PT.png"> {{\'APPLICATION_PORTUGUESE_PORTUGAL\' | translate}}\n </a>\n </li>\n <li>\n <a href="#" ng-click="changeLanguage(\'ru\')">\n <img alt="" src="assets/images/flags/ru.png"> {{\'APPLICATION_RUSSIAN\' | translate}}\n </a>\n </li>\n <li>\n <a href="#" ng-click="changeLanguage(\'sv\')">\n <img alt="" src="assets/images/flags/sv.png"> {{\'APPLICATION_SWEDISH\' | translate}}\n </a>\n </li>\n <li>\n <a href="#" ng-click="changeLanguage(\'tr\')">\n <img alt="" src="assets/images/flags/tr.png"> {{\'APPLICATION_TURKISH\' | translate}}\n </a>\n </li>\n <li>\n <a href="#" ng-click="changeLanguage(\'fa\')">\n <img alt="" src="assets/images/flags/fa.png"> {{\'APPLICATION_PERSIAN\' | translate}}\n </a>\n </li>\n <li>\n <a href="#" ng-click="changeLanguage(\'zh-CN\')">\n <img alt="" src="assets/images/flags/zh-CN.png"> {{\'APPLICATION_CHINESE_SIMPLIFIED\' | translate}}\n </a>\n </li>\n <li>\n <a href="#" ng-click="changeLanguage(\'zh-TW\')">\n <img alt="" src="assets/images/flags/zh-TW.png"> {{\'APPLICATION_CHINESE_TRADITIONAL\' | translate}}\n </a>\n </li>\n </ul>\n </li>\n <!-- END LANGUAGE BAR -->\n</ul>\n<ul data-ng-if="getCurrentUser().role === \'agent\' && headerAgent.showWebBar" class="nav navbar-nav pull-right header-ul-with-separator padding-side-7" data-ng-class="{\'paused-header\':headerAgent.voicePause || headerAgent.mailPause || headerAgent.chatPause || headerAgent.faxPause || headerAgent.smsPause || headerAgent.openchannelPause}">\n <li class="dropdown dropdown-user" >\n <a href="#" class="dropdown-toggle custom-header-a" dropdown-menu-hover data-toggle="dropdown" data-close-others="true" style="cursor:default;">\n <div>{{(headerAgent.voicePause || headerAgent.mailPause || headerAgent.chatPause || headerAgent.faxPause || headerAgent.smsPause || headerAgent.openchannelPause) ? ((!headerAgent.voicePause || !headerAgent.mailPause || !headerAgent.chatPause || !headerAgent.faxPause || !headerAgent.smsPause || !headerAgent.openchannelPause) ? \'(\'+(\'APPLICATION_PARTIAL\' | translate) + \') \'+headerAgent.pauseType : headerAgent.pauseType) : \'READY\'}}</div>\n <div data-ng-if="headerAgent.voicePause || headerAgent.mailPause || headerAgent.chatPause || headerAgent.faxPause || headerAgent.smsPause || headerAgent.openchannelPause"><css-timer start-time="headerAgent.lastPauseAt"></css-timer></div>\n </a>\n </li>\n <li class="dropdown dropdown-user" data-ng-if="headerAgent.voicePause || headerAgent.mailPause || headerAgent.chatPause || headerAgent.faxPause || headerAgent.smsPause || headerAgent.openchannelPause">\n <a href="#" class="dropdown-toggle padding-side-7 header-bar-button header-bar-button-controls" dropdown-menu-hover data-toggle="dropdown" data-close-others="true" data-ng-click="headerPause(\'unpause\')">\n <i class="fa fa-play font-green"></i></a>\n </li>\n <li class="dropdown dropdown-user" data-ng-if="headerAgent.voicePause || headerAgent.mailPause || headerAgent.chatPause || headerAgent.faxPause || headerAgent.smsPause || headerAgent.openchannelPause">\n <a href="#" class="dropdown-toggle header-bar-button" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">\n <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu dropdown-menu-default scrollable-menu">\n <li data-ng-if="headerAgent.voicePause">\n <a href="#" data-ng-click="headerPause(\'unpause\',null,\'voice\')">\n <i class="fa fa-play font-green"></i> {{\'APPLICATION_VOICE\' | translate}}\n </a>\n </li>\n <li data-ng-if="headerAgent.mailPause">\n <a href="#" data-ng-click="headerPause(\'unpause\',null,\'mail\')">\n <i class="fa fa-play font-green"></i> {{\'APPLICATION_MAIL\' | translate}}\n </a>\n </li>\n <li data-ng-if="headerAgent.chatPause">\n <a href="#" data-ng-click="headerPause(\'unpause\',null,\'chat\')">\n <i class="fa fa-play font-green"></i> {{\'APPLICATION_CHAT\' | translate}}\n </a>\n </li>\n <li data-ng-if="headerAgent.faxPause">\n <a href="#" data-ng-click="headerPause(\'unpause\',null,\'fax\')">\n <i class="fa fa-play font-green"></i> {{\'APPLICATION_FAX\' | translate}}\n </a>\n </li>\n <li data-ng-if="headerAgent.smsPause">\n <a href="#" data-ng-click="headerPause(\'unpause\',null,\'sms\')">\n <i class="fa fa-play font-green"></i> {{\'APPLICATION_SMS\' | translate}}\n </a>\n </li>\n <li data-ng-if="headerAgent.openchannelPause">\n <a href="#" data-ng-click="headerPause(\'unpause\',null,\'openchannel\')">\n <i class="fa fa-play font-green"></i> {{\'APPLICATION_OPEN_CHANNEL\' | translate}}\n </a>\n </li>\n </ul>\n </li>\n <li class="dropdown dropdown-user">\n <a href="#" class="dropdown-toggle padding-side-7 header-bar-button header-bar-button-controls" dropdown-menu-hover data-toggle="dropdown" data-close-others="true" data-ng-click="headerPause(\'pause\',\'DEFAULT PAUSE\')">\n <i class="fa fa-pause font-yellow"></i></a>\n </li>\n <li class="dropdown dropdown-user" data-ng-if="headerPauses.length">\n <a href="#" class="dropdown-toggle header-bar-button" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">\n <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu dropdown-menu-default scrollable-menu">\n <li data-ng-repeat="pause in headerPauses">\n <a href="#" data-ng-click="headerPause(\'pause\',pause.name)">\n {{pause.name}}\n </a>\n </li>\n </ul>\n </li>\n </ul>\n <ul class="nav navbar-nav pull-right" data-ng-if="getCurrentUser().role === \'agent\'" >\n <li data class="dropdown dropdown-extended dropdown-notification" id="header_agent_notification_bar" data-ng-click="agentNotifications.agent.new = 0;">\n <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">\n <i class="icon-earphones-alt"></i>\n <span class="badge badge-default" data-ng-if="agentNotifications.agent.new">\n {{agentNotifications.agent.new}} </span>\n </a>\n <ul class="dropdown-menu tabbed-dropdown">\n <li class="external">\n <h3><span class="bold">{{\'APPLICATION_LAST_VOICE_NOTIFICATIONS\' | translate}}</span></h3>\n </li>\n <li>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_INBOUND\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{ \'APPLICATION_OUTBOUND\' | translate}}</a>\n </li>\n </ul>\n\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="agent-spinner-grid" data-ng-if="busyLoad.agent.busy" spinner-start-active="true"></span>\n <!-- END UI-GRID SPINNER -->\n <ul class="dropdown-menu-list scrollable-menu" style="height: 250px;" data-handle-color="#637283" infinite-scroll="loadNotifications(\'agent\')" can-load=\'!busyLoad.agent.busy\' treshold="261">\n <li data-ng-repeat="notification in agentNotifications.agent.rows">\n <a href="javascript:;" style="cursor:default;">\n <div class="row">\n <div class="col-md-1">\n <img src="assets/images/media/inboundroute.png" style="width:25px;height:25px;" alt="">\n </div>\n <div class="col-md-10">\n <div>{{\'APPLICATION_VOICE_NEW_CALL\' | translate}}<span data-ng-if="notification.status && notification.status !== \'none\'" class="badge float-right" data-ng-class="{\'badge-success\':notification.status === \'taken\',\'badge-danger\':notification.status === \'lost\',\'badge-warning\':notification.status === \'rejected\' || notification.status === \'busy\',\'badge-info\':notification.status === \'taken_elsewhere\'}">{{\'APPLICATION_VOICE_\'+notification.status.toUpperCase() | translate}}</span></div>\n <div><span class="time float-left" style="max-width:none !important;"><span am-time-ago="notification.updatedAt"></span></span></div>\n </div>\n </div>\n <div>\n <span class="message">{{notification.dialstring ? \'APPLICATION_TO\' : \'APPLICATION_FROM\' | translate}}: <span class="span-link" data-ng-click="chooseContact(notification.calleridnum)">{{notification.calleridnum}}</span></span>\n </div>\n <div data-ng-if="notification.status === \'taken_elsewhere\'">\n <span class="message">{{\'APPLICATION_AGENT_NAME\' | translate}}: <span ><b>{{notification.answeredelsewheremembername}}</b></span></span>\n </div>\n <div data-ng-if="notification.status === \'taken\' && notification.lastevent === \'complete\'">\n <span class="message">{{\'APPLICATION_COMPLETED_BY\' | translate}}: <span ><b>{{\'APPLICATION_VOICE_\'+notification.reason.toUpperCase() | translate}}</b></span></span>\n </div>\n </a>\n </li>\n </ul>\n </div>\n <div class="tab-pane" id="tab_1_2">\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="dial-spinner-grid" data-ng-if="busyLoad.dial.busy" spinner-start-active="true"></span>\n <!-- END UI-GRID SPINNER -->\n <ul class="dropdown-menu-list scrollable-menu" style="height: 250px;" data-handle-color="#637283" infinite-scroll="loadNotifications(\'dial\')" can-load=\'!busyLoad.dial.busy\' treshold="261">\n <li data-ng-repeat="notification in agentNotifications.dial.rows">\n <a href="javascript:;" style="cursor:default;">\n <div class="row">\n <div class="col-md-1">\n <img src="assets/images/media/outboundroute.png" style="width:25px;height:25px;" alt="">\n </div>\n <div class="col-md-10">\n <div>{{\'APPLICATION_VOICE_NEW_CALL\' | translate}}<span data-ng-if="notification.status && notification.status !== \'none\'" class="badge float-right" data-ng-class="{\'badge-success\':notification.status === \'taken\',\'badge-danger\':notification.status === \'lost\',\'badge-warning\':notification.status === \'rejected\',\'badge-info\':notification.status === \'taken_elsewhere\'}">{{\'APPLICATION_VOICE_\'+notification.status.toUpperCase() | translate}}</span></div>\n <div><span class="time float-left" style="max-width:none !important;"><span am-time-ago="notification.updatedAt"></span></span></div>\n </div>\n </div>\n <div>\n <span class="message">{{\'APPLICATION_TO\' | translate}}: <span class="span-link" data-ng-click="chooseContact(notification.destcalleridnum)">{{notification.destcalleridnum}}</span></span>\n </div>\n </a>\n </li>\n </ul>\n </div>\n </div>\n </li>\n </ul>\n </li>\n <li data ng-if="license.mail" class="dropdown dropdown-extended dropdown-notification" id="header_mail_notification_bar" data-ng-click="agentNotifications.mail.new = 0;">\n <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">\n <i class="icon-envelope-open"></i>\n <span class="badge badge-default" data-ng-if="agentNotifications.mail.new">\n {{agentNotifications.mail.new}} </span>\n </a>\n <ul class="dropdown-menu">\n <li class="external">\n <h3><span class="bold">{{\'APPLICATION_LAST_MAIL_NOTIFICATIONS\' | translate}}</span></h3>\n </li>\n <li>\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="mail-spinner-grid" data-ng-if="busyLoad.mail.busy" spinner-start-active="true"></span>\n <!-- END UI-GRID SPINNER -->\n <ul class="dropdown-menu-list scrollable-menu" style="height: 250px;" data-handle-color="#637283" infinite-scroll="loadNotifications(\'mail\')" can-load=\'!busyLoad.mail.busy\' treshold="261">\n <li data-ng-repeat="notification in agentNotifications.mail.rows">\n <a href="javascript:;" style="cursor:default;">\n <div class="row">\n <div class="col-md-1">\n <img src="assets/images/media/enquiry.png" style="width:25px;height:25px;" alt="">\n </div>\n <div class="col-md-10">\n <div>{{\'APPLICATION_NEW_MESSAGE\' | translate}}<span data-ng-if="notification.status && notification.status !== \'none\'" class="badge float-right" data-ng-class="{\'badge-success pointer-cursor\':notification.status === \'taken\',\'badge-danger\':notification.status === \'lost\',\'badge-warning\':notification.status === \'rejected\'}" data-ng-click="notification.status === \'taken\' && openRoom(notification.roomid, \'mailRoom\')">{{\'APPLICATION_MESSAGE_\'+notification.status.toUpperCase() | translate}} <i data-ng-if="notification.status === \'taken\'" class="fa fa-envelope"></i></span></div>\n <div><span class="time float-left" style="max-width:none !important;"><span am-time-ago="notification.updatedAt"></span></span></div>\n </div>\n </div>\n <div>\n <span class="message">{{\'APPLICATION_FROM\' | translate}}: <span class="span-link" data-ng-click="openContact(\'mail\',notification.accountid,notification.from)">{{notification.from}}</span></span>\n </div>\n </a>\n </li>\n </ul>\n </li>\n </ul>\n </li>\n <li data ng-if="license.chat" class="dropdown dropdown-extended dropdown-notification" id="header_chat_notification_bar" data-ng-click="agentNotifications.chat.new = 0;">\n <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">\n <i class="icon-bubble"></i>\n <span class="badge badge-default" data-ng-if="agentNotifications.chat.new">\n {{agentNotifications.chat.new}} </span>\n </a>\n <ul class="dropdown-menu">\n <li class="external">\n <h3><span class="bold">{{\'APPLICATION_LAST_CHAT_NOTIFICATIONS\' | translate}}</span></h3>\n </li>\n <li>\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="chat-spinner-grid" data-ng-if="busyLoad.chat.busy" spinner-start-active="true"></span>\n <!-- END UI-GRID SPINNER -->\n <ul class="dropdown-menu-list scrollable-menu" style="height: 250px;" data-handle-color="#637283" infinite-scroll="loadNotifications(\'chat\')" can-load=\'!busyLoad.chat.busy\' treshold="261">\n <li data-ng-repeat="notification in agentNotifications.chat.rows">\n <a href="javascript:;" style="cursor:default;">\n <div class="row">\n <div class="col-md-1">\n <img src="assets/images/media/website.png" style="width:25px;height:25px;" alt="">\n </div>\n <div class="col-md-10">\n <div>{{\'APPLICATION_NEW_CHAT_REQUEST\' | translate}}<span data-ng-if="notification.status && notification.status !== \'none\'" class="badge float-right" data-ng-class="{\'badge-success pointer-cursor\':notification.status === \'taken\',\'badge-danger\':notification.status === \'lost\',\'badge-warning\':notification.status === \'rejected\'}" data-ng-click="notification.status === \'taken\' && openRoom(notification.roomid, \'chatRoom\')">{{\'APPLICATION_CHAT_\'+notification.status.toUpperCase() | translate}} <i data-ng-if="notification.status === \'taken\'" class="fa fa-envelope"></i></span></div>\n <div><span class="time float-left" style="max-width:none !important;"><span am-time-ago="notification.updatedAt"></span></span></div>\n </div>\n </div>\n <div>\n <span class="message">{{\'APPLICATION_FROM\' | translate}}: <span class="span-link" data-ng-click="openContact(\'chat\',notification.websiteid,notification.visitoremail)">{{notification.visitoremail}}</span></span>\n </div>\n </a>\n </li>\n </ul>\n </li>\n </ul>\n </li>\n <li data ng-if="license.fax" class="dropdown dropdown-extended dropdown-notification" id="header_fax_notification_bar" data-ng-click="agentNotifications.fax.new = 0;">\n <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">\n <i class="fa fa-fax"></i>\n <span class="badge badge-default" data-ng-if="agentNotifications.fax.new">\n {{agentNotifications.fax.new}} </span>\n </a>\n <ul class="dropdown-menu">\n <li class="external">\n <h3><span class="bold">{{\'APPLICATION_LAST_FAX_NOTIFICATIONS\' | translate}}</span></h3>\n </li>\n <li>\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="fax-spinner-grid" data-ng-if="busyLoad.fax.busy" spinner-start-active="true"></span>\n <!-- END UI-GRID SPINNER -->\n <ul class="dropdown-menu-list scrollable-menu" style="height: 250px;" data-handle-color="#637283" infinite-scroll="loadNotifications(\'fax\')" can-load=\'!busyLoad.fax.busy\' treshold="261">\n <li data-ng-repeat="notification in agentNotifications.fax.rows">\n <a href="javascript:;" style="cursor:default;">\n <div class="row">\n <div class="col-md-1">\n <img src="assets/images/media/fax.png" style="width:25px;height:25px;" alt="">\n </div>\n <div class="col-md-10">\n <div>{{\'APPLICATION_NEW_FAX_REQUEST\' | translate}}<span data-ng-if="notification.status && notification.status !== \'none\'" class="badge float-right" data-ng-class="{\'badge-success pointer-cursor\':notification.status === \'taken\',\'badge-danger\':notification.status === \'lost\',\'badge-warning\':notification.status === \'rejected\'}" data-ng-click="notification.status === \'taken\' && openRoom(notification.roomid, \'faxRoom\')">{{\'APPLICATION_FAX_\'+notification.status.toUpperCase() | translate}} <i data-ng-if="notification.status === \'taken\'" class="fa fa-envelope"></i></span></div>\n <div><span class="time float-left" style="max-width:none !important;"><span am-time-ago="notification.updatedAt"></span></span></div>\n </div>\n </div>\n <div>\n <span class="message">{{\'APPLICATION_FROM\' | translate}}: <span class="span-link" data-ng-click="openContact(\'fax\',notification.accountid,notification.from)">{{notification.from}}</span></span>\n </div>\n </a>\n </li>\n </ul>\n </li>\n </ul>\n </li>\n <li data ng-if="license.messaging" class="dropdown dropdown-extended dropdown-notification" id="header_sms_notification_bar" data-ng-click="agentNotifications.sms.new = 0;">\n <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">\n <i class="glyphicon glyphicon-comment"></i>\n <span class="badge badge-default" data-ng-if="agentNotifications.sms.new">\n {{agentNotifications.sms.new}} </span>\n </a>\n <ul class="dropdown-menu">\n <li class="external">\n <h3><span class="bold">{{\'APPLICATION_LAST_SMS_NOTIFICATIONS\' | translate}}</span></h3>\n </li>\n <li>\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="sms-spinner-grid" data-ng-if="busyLoad.sms.busy" spinner-start-active="true"></span>\n <!-- END UI-GRID SPINNER -->\n <ul class="dropdown-menu-list scrollable-menu" style="height: 250px;" data-handle-color="#637283" infinite-scroll="loadNotifications(\'sms\')" can-load=\'!busyLoad.sms.busy\' treshold="261">\n <li data-ng-repeat="notification in agentNotifications.sms.rows">\n <a href="javascript:;" style="cursor:default;">\n <div class="row">\n <div class="col-md-1">\n <img src="assets/images/media/sms.png" style="width:25px;height:25px;" alt="">\n </div>\n <div class="col-md-10">\n <div>{{\'APPLICATION_NEW_SMS_REQUEST\' | translate}}<span data-ng-if="notification.status && notification.status !== \'none\'" class="badge float-right" data-ng-class="{\'badge-success pointer-cursor\':notification.status === \'taken\',\'badge-danger\':notification.status === \'lost\',\'badge-warning\':notification.status === \'rejected\'}" data-ng-click="notification.status === \'taken\' && openRoom(notification.roomid, \'smsRoom\')">{{\'APPLICATION_SMS_\'+notification.status.toUpperCase() | translate}} <i data-ng-if="notification.status === \'taken\'" class="fa fa-envelope"></i></span></div>\n <div><span class="time float-left" style="max-width:none !important;"><span am-time-ago="notification.updatedAt"></span></span></div>\n </div>\n </div>\n <div>\n <span class="message">{{\'APPLICATION_FROM\' | translate}}: <span class="span-link" data-ng-click="openContact(\'sms\',notification.accountid,notification.from)">{{notification.from}}</span></span>\n </div>\n </a>\n </li>\n </ul>\n </li>\n </ul>\n </li>\n <li data ng-if="license.openchannel" class="dropdown dropdown-extended dropdown-notification" id="header_openchannel_notification_bar" data-ng-click="agentNotifications.openchannel.new = 0;">\n <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">\n <i class="icon-globe"></i>\n <span class="badge badge-default" data-ng-if="agentNotifications.openchannel.new">\n {{agentNotifications.openchannel.new}} </span>\n </a>\n <ul class="dropdown-menu">\n <li class="external">\n <h3><span class="bold">{{\'APPLICATION_LAST_OPENCHANNEL_NOTIFICATIONS\' | translate}}</span></h3>\n </li>\n <li>\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="openchannel-spinner-grid" data-ng-if="busyLoad.openchannel.busy" spinner-start-active="true"></span>\n <!-- END UI-GRID SPINNER -->\n <ul class="dropdown-menu-list scrollable-menu" style="height: 250px;" data-handle-color="#637283" infinite-scroll="loadNotifications(\'openchannel\')" can-load=\'!busyLoad.openchannel.busy\' treshold="261">\n <li data-ng-repeat="notification in agentNotifications.openchannel.rows">\n <a href="javascript:;" style="cursor:default;">\n <div class="row">\n <div class="col-md-1">\n <img src="assets/images/media/openchannel.png" style="width:25px;height:25px;" alt="">\n </div>\n <div class="col-md-10">\n'+" <div>{{'APPLICATION_NEW_OPENCHANNEL_REQUEST' | translate}}<span data-ng-if=\"notification.status && notification.status !== 'none'\" class=\"badge float-right\" data-ng-class=\"{'badge-success pointer-cursor':notification.status === 'taken','badge-danger':notification.status === 'lost','badge-warning':notification.status === 'rejected'}\" data-ng-click=\"notification.status === 'taken' && openRoom(notification.roomid, 'openchannelRoom')\">{{'APPLICATION_OPENCHANNEL_'+notification.status.toUpperCase() | translate}} <i data-ng-if=\"notification.status === 'taken'\" class=\"fa fa-envelope\"></i></span></div>\n <div><span class=\"time float-left\" style=\"max-width:none !important;\"><span am-time-ago=\"notification.updatedAt\"></span></span></div>\n </div>\n </div>\n <!-- <div>\n <span class=\"message\">{{'APPLICATION_FROM' | translate}}: <span class=\"span-link\" data-ng-click=\"openContact('openchannel',notification.accountid,notification.from)\">{{notification.from}}</span></span>\n </div> -->\n </a>\n </li>\n </ul>\n </li>\n </ul>\n </li>\n </ul>\n </div>\n <!-- END TOP NAVIGATION MENU -->\n </div>\n <!-- END HEADER INNER -->\n"), +a.put("components/modal/delete.html",'<div class="modal-header">\n <button ng-if="modal.dismissable" type="button" ng-click="$dismiss()" class="close">×</button>\n <h4 ng-if="modal.title" ng-bind="modal.title" class="modal-title"></h4>\n</div>\n<div class="modal-body">\n <p ng-if="modal.text" ng-bind="modal.text"></p>\n <div ng-if="modal.html" ng-bind-html="modal.html"></div>\n</div>\n<div class="modal-footer">\n <button ng-repeat="button in modal.buttons" ng-class="button.classes" ng-click="button.click($event)" ng-bind="button.text" class="btn"></button>\n</div>\n'),a.put("components/sidebar/sidebar.html",'<div id="page-sidebar" class="page-sidebar navbar-collapse collapse" data-ng-init="initSidebar()">\n <!-- BEGIN SIDEBAR MENU -->\n <!-- DOC: Apply "page-sidebar-menu-light" class right after "page-sidebar-menu" to enable light sidebar menu style(without borders) -->\n <!-- DOC: Apply "page-sidebar-menu-hover-submenu" class right after "page-sidebar-menu" to enable hoverable(hover vs accordion) sub menu mode -->\n <!-- DOC: Apply "page-sidebar-menu-closed" class right after "page-sidebar-menu" to collapse("page-sidebar-closed" class must be applied to the body element) the sidebar sub menu mode -->\n <!-- DOC: Set data-auto-scroll="false" to disable the sidebar from auto scrolling/focusing -->\n <!-- DOC: Set data-keep-expand="true" to keep the submenues expanded -->\n <!-- DOC: Set data-auto-speed="200" to adjust the sub menu slide up/down speed -->\n <ul data-ng-click="mainTab.active=true" class="page-sidebar-menu" data-keep-expanded="false" data-auto-scroll="true" data-slide-speed="200" data-ng-class="{\'page-sidebar-menu-closed\': settings.layout.pageSidebarClosed}" data-ng-init="getSidebarIntegrations()">\n <!-- DOC: To remove the search box from the sidebar you just need to completely remove the below "sidebar-search-wrapper" LI element -->\n <li class="sidebar-search-wrapper">\n <!-- BEGIN RESPONSIVE QUICK SEARCH FORM -->\n <!-- DOC: Apply "sidebar-search-bordered" class the below search form to have bordered search box -->\n <!-- DOC: Apply "sidebar-search-bordered sidebar-search-solid" class the below search form to have bordered & solid search box -->\n <form class="sidebar-search sidebar-search-bordered" action="extra_search.html" method="POST">\n <a href="javascript:;" class="remove">\n <i class="icon-close"></i>\n </a>\n </form>\n <!-- END RESPONSIVE QUICK SEARCH FORM -->\n </li>\n\n <!-- START DASHBOARD CASE -->\n <li class="start" data-ng-if="::(Auth.isAdmin() || Auth.isAgent() || userModules[1])" data-ng-class="{active: $state.includes(\'main.dashboard\')}">\n <a href="/dashboard/voice">\n <i class="icon-rocket"></i>\n <span class="title">{{\'APPLICATION_DASHBOARD\' | translate}}</span>\n <span data-ng-if="$state.includes(\'main.dashboard\')" class="selected"></span>\n </a>\n </li>\n <!-- END DASHBOARD CASE -->\n\n <!-- START YOURDASHBOARD LIST CASE -->\n <li data-ng-if="::(!Auth.isUser() || userModules[2])" data-ng-class="{active: $state.is(\'main.tools.yourdashboards.show\')}">\n <a href="javascript:;">\n <i class="fa fa-tachometer"></i>\n <span class="title" >{{\'APPLICATION_YOUR_DASHBOARDS\' | translate}}</span>\n <span class="arrow" data-ng-class="{ open: $state.includes(\'main.tools.yourdashboards.show\') }"></span>\n </a>\n <ul class="sub-menu" data-ng-init="getSidebarDashboards()">\n <li data-ng-class="{active: $stateParams.id == dashboard.id && $state.includes(\'main.tools.yourdashboards.show\')}" data-ng-repeat="dashboard in dashboards" data-ng-if="dashboard[Auth.getRole()]">\n <a href="/tools/yourdashboards/show/{{dashboard.id}}" >\n <i class="icon-screen-desktop"></i>\n <span class="title" >{{dashboard.name}} </span>\n </a>\n </li>\n </ul>\n </li>\n <!-- END YOURDASHBOARD LIST CASE -->\n\n <!-- START STAFF LIST CASE -->\n <li data-ng-class="{active: $state.includes(\'main.staff\')}">\n <a href="javascript:;" data-ng-if="::(Auth.isAdmin() || userModules[3])">\n <i class="icon-puzzle"></i>\n <span class="title" >{{\'APPLICATION_STAFF\' | translate}}</span>\n <span class="arrow" data-ng-class="{open: $state.includes(\'main.staff\')}"></span>\n </a>\n <ul class="sub-menu">\n <!-- START USERS CASE -->\n <li data-ng-if="::(Auth.isAdmin())" data-ng-class="{active: $state.includes(\'main.staff.users\')}">\n <a href="/staff/users/list">\n <i class="icon-eye"></i>\n <span class="title" >{{\'APPLICATION_USERS\' | translate}}</span>\n <span data-ng-if="$state.includes(\'main.staff.users\')" class="selected"></span>\n </a>\n </li>\n <!-- END USERS CASE -->\n\n <!-- START AGENTS CASE -->\n <li data-ng-if="::(Auth.isAdmin() || userModules[4])" data-ng-class="{active: $state.includes(\'main.staff.agents\')}">\n <a href="/staff/agents/list">\n <i class="icon-people"></i>\n <span class="title" >{{\'APPLICATION_AGENTS\' | translate}}</span>\n <span data-ng-if="$state.includes(\'main.staff.agents\')" class="selected"></span>\n </a>\n </li>\n <!-- END AGENTS CASE -->\n\n <!-- START TELEPHONES CASE -->\n <li data-ng-if="::(Auth.isAdmin())" data-ng-class="{active: $state.includes(\'main.staff.telephones\')}">\n <a href="/staff/telephones/list">\n <i class="icon-phone"></i>\n <span class="title" >{{\'APPLICATION_TELEPHONES\' | translate}}</span>\n <span data-ng-if="$state.includes(\'main.staff.telephones\')" class="selected"></span>\n </a>\n </li>\n <!-- END TELEPHONES CASE -->\n\n <!-- START TEAMS CASE -->\n <li data-ng-if="::(Auth.isAdmin())" data-ng-class="{active: $state.includes(\'main.staff.teams\')}">\n <a href="/staff/teams/list">\n <i class="icon-shield"></i>\n <span class="title" >{{\'APPLICATION_TEAMS\' | translate}}</span>\n <span data-ng-if="$state.includes(\'main.staff.teams\')" class="selected"></span>\n </a>\n </li>\n <!-- END TEAMS CASE -->\n </ul>\n </li>\n <!-- END STAFF LIST CASE -->\n\n <!-- START CONTACT MANAGER LIST CASE -->\n <li data-ng-if="::(Auth.isAdmin() || Auth.isAgent() || userModules[5])" data-ng-class="{active: $state.includes(\'main.contactmanager\')}">\n <a href="javascript:;" data-ng-class="{\'disabled-link\':!license.cm}">\n <i class="icon-notebook"></i>\n <span class="title disable-target" >{{\'APPLICATION_CONTACT_MANAGER\' | translate}}</span>\n <span class="arrow" data-ng-class="{ open: $state.includes(\'main.contactmanager.contacts\')\n || $state.includes(\'main.contactmanager.companies\')\n || $state.includes(\'main.contactmanager.lists\') || $state.includes(\'main.contactmanager.customfields\') }"></span>\n </a>\n <ul class="sub-menu" data-ng-if="license.cm">\n <!-- START CONTACTS CASE -->\n <li data-ng-class="{active: $state.includes(\'main.contactmanager.contacts\')}">\n <a href="/contactmanager/contacts/list">\n <i class=" fa fa-users"></i>\n <span class="title" >{{\'APPLICATION_CONTACTS\' | translate}}</span>\n <span data-ng-if="$state.includes(\'main.contactmanager.contacts\')" class="selected"></span>\n </a>\n </li>\n <!-- END CONTACTS CASE -->\n <!-- START COMPANIES CASE -->\n <li data-ng-class="{active: $state.includes(\'main.contactmanager.companies\')}" data-ng-if="::(Auth.isAdmin() || Auth.isUser())">\n <a href="/contactmanager/companies/list">\n <i class="icon-briefcase"></i>\n <span class="title" >{{\'APPLICATION_COMPANIES\' | translate}}</span>\n <span data-ng-if="$state.includes(\'main.contactmanager.companies\')" class="selected"></span>\n </a>\n </li>\n <!-- END COMPANIES CASE -->\n <!-- START LISTS CASE -->\n <li data-ng-class="{active: $state.includes(\'main.contactmanager.lists\')}" data-ng-if="::(Auth.isAdmin() || Auth.isUser())">\n <a href="/contactmanager/lists/list">\n <i class="fa fa-list-ul"></i>\n <span class="title" >{{\'APPLICATION_LISTS\' | translate}}</span>\n <span data-ng-if="$state.includes(\'main.contactmanager.lists\')" class="selected"></span>\n </a>\n </li>\n <!-- END LISTS CASE -->\n <!-- START CUSTOM_FIELDS CASE -->\n <li data-ng-class="{active: $state.includes(\'main.contactmanager.customfields\')}" data-ng-if="::(Auth.isAdmin() || Auth.isUser())">\n <a href="/contactmanager/customfields/list">\n <i class="icon-pencil"></i>\n <span class="title" >{{\'APPLICATION_CUSTOM_FIELDS\' | translate}}</span>\n <span data-ng-if="$state.includes(\'main.contactmanager.customfields\')" class="selected"></span>\n </a>\n </li>\n <!-- END CUSTOM_FIELDS CASE -->\n </ul>\n </li>\n <!-- END CONTACT MANAGER LIST CASE -->\n\n <!-- START CHANNEL LIST CASE -->\n <li data-ng-if="::(Auth.isAdmin() || Auth.isAgent() || userModules[6])" data-ng-class="{active: $state.includes(\'main.channels\')}">\n <a href="javascript:;">\n <i class="fa fa-spinner"></i>\n <span class="title" >{{\'APPLICATION_CHANNELS\' | translate}}</span>\n <span class="arrow" data-ng-class="{open: $state.includes(\'main.channels\')}"></span>\n </a>\n <ul class="sub-menu">\n <!-- START VOICE CASE -->\n <li data-ng-if="::(Auth.isAdmin() || Auth.isAgent() || userModules[7])" data-ng-class="{ active: $state.includes(\'main.channels.voice\') }">\n <a href="javascript:;">\n <i class="icon-earphones-alt"></i>\n <span class="title">{{ \'APPLICATION_VOICE\' | translate}}</span>\n <span class="arrow" data-ng-class="{ open: $state.includes(\'main.channels.voice\') }"></span>\n </a>\n\n <ul class="sub-menu">\n <li data-ng-if="::(Auth.isAdmin())" data-ng-class="{active: $state.includes(\'main.channels.voice.queues\')}">\n <a href="/channels/voice/queues/list">\n <i class="icon-docs"></i>\n <span class="title">{{\'APPLICATION_QUEUES\' | translate}}</span>\n </a>\n </li>\n <li data-ng-if="::(Auth.isAdmin() || userModules[21])">\n <a href="javascript:;">\n <i class="icon-directions"></i>\n <span class="title"> {{ \'APPLICATION_ROUTES\' | translate}} </span>\n <span class="arrow" data-ng-class="{ open: $state.includes(\'main.channels.voice.routes\') }"></span>\n <ul class="sub-menu">\n <li data-ng-class="{active: $state.includes(\'main.channels.voice.routes.inbound\')}">\n <a href="/channels/voice/routes/inbound/list">\n <i class="icon-call-in"></i>\n <span class="title"> {{\'APPLICATION_INBOUND\' | translate}} </span>\n </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.channels.voice.routes.outbound\')}">\n <a href="/channels/voice/routes/outbound/list">\n <i class="icon-call-out"></i>\n <span class="title"> {{\'APPLICATION_OUTBOUND\' | translate}} </span>\n </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.channels.voice.routes.internal\')}">\n <a href="/channels/voice/routes/internal/list">\n <i class="icon-reload"></i>\n <span class="title"> {{\'APPLICATION_INTERNALS\' | translate}} </span>\n </a>\n </li>\n </ul>\n </a>\n </li>\n <li data-ng-if="::(Auth.isAdmin() || userModules[22])" data-ng-class="{active: $state.includes(\'main.channels.voice.contexts\')}">\n <a href="/channels/voice/contexts/list">\n <i class="icon-docs"></i>\n <span class="title"> {{\'APPLICATION_CONTEXTS\' | translate}} </span>\n </a>\n </li>\n <li data-ng-if="::(Auth.isAdmin() || userModules[23])" data-ng-class="{active: $state.includes(\'main.channels.voice.voicemails\')}">\n <a href="/channels/voice/voicemails/list">\n <i class="icon-envelope-letter"></i>\n <span class="title"> {{\'APPLICATION_VOICEMAILS\' | translate}} </span>\n </a>\n </li>\n <li data-ng-if="::(Auth.isAdmin() || userModules[24])" data-ng-class="{active: $state.includes(\'main.channels.voice.mohs\')}">\n <a href="/channels/voice/mohs/list">\n <i class="icon-music-tone"></i>\n <span class="title"> {{\'APPLICATION_MOH\' | translate}} </span>\n </a>\n </li>\n <!-- START RECORDING CASE -->\n <li data-ng-if="::(Auth.isAdmin() || Auth.isAgent() || userModules[25])" data-ng-class="{active: $state.includes(\'main.channels.voice.recordings\')}">\n <a href="/channels/voice/recordings/list">\n <i class="icon-control-play"></i>\n <span class="title">{{\'APPLICATION_RECORDINGS\' | translate}}</span>\n </a>\n </li>\n <!-- END RECORDING CASE -->\n <!-- START REALTIME CASE -->\n <li data-ng-if="::(Auth.isAdmin() || userModules[26])" data-ng-class="{active: $state.includes(\'main.channels.voice.realtime\')}">\n <a href="/channels/voice/realtime/view/agents">\n <i class="icon-energy"></i>\n <span class="title">{{\'APPLICATION_REALTIME\' | translate}}</span>\n </a>\n </li>\n <!-- END REALTIME CASE -->\n <!-- START CHANSPY CASE -->\n <li data-ng-if="::(Auth.isAdmin() || userModules[27])" data-ng-class="{active: $state.includes(\'main.channels.voice.chanspy\')}">\n <a href="/channels/voice/chanspy/list">\n <i class="fa fa-user-secret"></i>\n <span class="title" >{{\'APPLICATION_CHANSPY\' | translate}}</span>\n <!-- <span data-ng-if="$state.includes(\'main.chanspy\')" class="selected"></span> -->\n </a>\n </li>\n <!-- END CHANSPY CASE -->\n <!-- START CHANSPY CASE -->\n <li data-ng-if="::(Auth.isAdmin() || userModules[28])" data-ng-class="{active: $state.includes(\'main.channels.voice.dispositions\')}">\n <a href="/channels/voice/dispositions/list">\n <i class="icon-target"></i>\n <span class="title" >{{\'APPLICATION_DISPOSITIONS\' | translate}}</span>\n </a>\n </li>\n <!-- END CHANSPY CASE -->\n </ul>\n </li>\n <!-- END VOICE CASE -->\n\n <!-- START CHAT CASE -->\n <li data-ng-if="::(Auth.isAdmin() || Auth.isAgent() || userModules[8])" data-ng-class="{active: $state.includes(\'main.channels.chat\')}">\n <a href="javascript:;" data-ng-class="{\'disabled-link\':!license.chat}">\n <i class="icon-bubble"></i>\n <span class="title disable-target">{{\'APPLICATION_CHAT\' | translate}}</span>\n <span class="arrow" data-ng-class="{open: $state.includes(\'main.channels.chat\')}"></span>\n </a>\n <ul class="sub-menu" data-ng-if="license.chat">\n <li data-ng-if="::(Auth.isAdmin() || userModules[29])" data-ng-class="{active: $state.includes(\'main.channels.chat.websites\')}">\n <a href="/channels/chat/websites/list">\n <i class="icon-globe"></i>\n <span class="title"> {{\'APPLICATION_WEB_SITES\' | translate}} </span>\n </a>\n </li>\n <li data-ng-if="::(Auth.isAdmin() || userModules[30])" data-ng-class="{active: $state.includes(\'main.channels.chat.queues\')}">\n <a href="/channels/chat/queues/list">\n <i class="icon-docs"></i>\n <span class="title"> {{\'APPLICATION_QUEUES\' | translate}} </span>\n </a>\n </li>\n <li data-ng-if="::(Auth.isAdmin() || Auth.isAgent() || userModules[31])" data-ng-class="{active: $state.includes(\'main.channels.chat.room\')}">\n <a href="/channels/chat/room/internal/list">\n <i class="fa fa-users"></i>\n <span class="title"> {{\'APPLICATION_INTERACTIONS\' | translate}} </span>\n </a>\n </li>\n <!-- <li data-ng-if="::(Auth.isAdmin() || userModules[8])" data-ng-class="{active: $state.includes(\'main.channels.chat.online\')}">\n <a href="/channels/chat/online/list">\n <i class="icon-login"></i>\n <span class="title"> {{\'APPLICATION_ONLINE_MESSAGES\' | translate}} </span>\n </a>\n </li> -->\n <li data-ng-if="::(Auth.isAdmin() || userModules[32])" data-ng-class="{active: $state.includes(\'main.channels.chat.offline\')}">\n <a href="/channels/chat/offline/list">\n <i class="icon-logout"></i>\n <span class="title"> {{\'APPLICATION_OFFLINE_MESSAGES\' | translate}} </span>\n </a>\n </li>\n <li data-ng-if="::(Auth.isAdmin() || userModules[33])" data-ng-class="{active: $state.includes(\'main.channels.chat.realtime\')}">\n <a href="/channels/chat/realtime/view/agents">\n <i class="icon-energy"></i>\n <span class="title">{{\'APPLICATION_REALTIME\' | translate}}</span>\n </a>\n </li>\n </ul>\n </li>\n <!-- END CHAT CASE -->\n\n <!-- START MAIL CASE -->\n <li data-ng-if="::(Auth.isAdmin() || Auth.isAgent() || userModules[9])" data-ng-class="{active: $state.includes(\'main.channels.mail\')}" >\n <a href="javascript:;" data-ng-class="{\'disabled-link\':!license.mail}">\n <i class="icon-envelope"></i>\n <span class="title disable-target">{{\'APPLICATION_MAIL\' | translate}}</span>\n <span class="arrow" data-ng-class="{ open: $state.includes(\'main.channels.mail\') }"></span>\n </a>\n\n <ul class="sub-menu" data-ng-if="license.mail">\n <li data-ng-if="::(Auth.isAdmin() || userModules[34])" data-ng-class="{active: $state.includes(\'main.channels.mail.accounts\') || $state.includes(\'main.channels.mail.account\')}">\n <a href="/channels/mail/accounts/list">\n <i class="icon-notebook"></i>\n <span class="title"> {{\'APPLICATION_ACCOUNTS\' | translate}} </span>\n </a>\n </li>\n <li data-ng-if="::(Auth.isAdmin() || userModules[35])" data-ng-class="{active: $state.includes(\'main.channels.mail.queues\') || $state.includes(\'main.channels.mail.queue\')}">\n <a href="/channels/mail/queues/list">\n <i class="icon-docs"></i>\n <span class="title"> {{\'APPLICATION_QUEUES\' | translate}} </span>\n </a>\n </li>\n <li data-ng-if="::(Auth.isAdmin() || Auth.isAgent() || userModules[36])" data-ng-class="{active: $state.includes(\'main.channels.mail.inbox\')}">\n <a href="/channels/mail/inbox/view">\n <i class="icon-note"></i>\n <span class="title"> {{\'APPLICATION_INBOX\' | translate}} </span>\n </a>\n </li>\n <!-- START REALTIME CASE -->\n <li data-ng-if="::(Auth.isAdmin() || userModules[37])" data-ng-class="{active: $state.includes(\'main.channels.mail.realtime\')}">\n <a href="/channels/mail/realtime/view/agents">\n <i class="icon-energy"></i>\n <span class="title">{{\'APPLICATION_REALTIME\' | translate}}</span>\n </a>\n </li>\n <!-- END REALTIME CASE -->\n </ul>\n </li>\n <!-- END MAIL CASE -->\n\n <!-- START FAX CASE -->\n <li data-ng-if="::(Auth.isAdmin() || Auth.isAgent() || userModules[10])" data-ng-class="{active: $state.includes(\'main.channels.fax\')}">\n <a href="javascript:;" data-ng-class="{\'disabled-link\':!license.fax}">\n <i class="fa fa-fax"></i>\n <span class="title disable-target"> {{ \'APPLICATION_FAX\' | translate}}</span>\n <span class="arrow" data-ng-class="{ open: $state.includes(\'main.channels.fax\') }"></span>\n </a>\n <ul class="sub-menu" data-ng-if="license.fax">\n <li data-ng-if="::(Auth.isAdmin() || userModules[38])" data-ng-class="{active: $state.includes(\'main.channels.fax.accounts\')}">\n <a href="/channels/fax/accounts/list">\n <i class="icon-notebook"></i>\n <span class="title"> {{ \'APPLICATION_ACCOUNTS\' | translate}} </span>\n </a>\n </li>\n <li data-ng-if="::(Auth.isAdmin() || userModules[39])" data-ng-class="{active: $state.includes(\'main.channels.fax.queues\')}">\n <a href="/channels/fax/queues/list">\n <i class="icon-docs"></i>\n <span class="title"> {{ \'APPLICATION_QUEUES\' | translate }} </span>\n </a>\n </li>\n <li data-ng-if="::(Auth.isAdmin() || Auth.isAgent() || userModules[40])" data-ng-class="{active: $state.includes(\'main.channels.fax.inbox\')}">\n <a href="/channels/fax/inbox/view">\n <i class="icon-note"></i>\n <span class="title"> {{ \'APPLICATION_INBOX\' | translate }} </span>\n </a>\n </li>\n <!-- START REALTIME CASE -->\n <li data-ng-if="::(Auth.isAdmin() || userModules[41])" data-ng-class="{active: $state.includes(\'main.channels.fax.realtime\')}">\n <a href="/channels/fax/realtime/view/agents">\n <i class="icon-energy"></i>\n <span class="title">{{\'APPLICATION_REALTIME\' | translate}}</span>\n </a>\n </li>\n <!-- END REALTIME CASE -->\n </ul>\n </li>\n <!-- END FAX CASE -->\n\n <!-- START SMS CASE -->\n <li data-ng-if="::(Auth.isAdmin() || Auth.isAgent() || userModules[11])" data-ng-class="{active: $state.includes(\'main.channels.sms\')}">\n <a href="javascript:;" data-ng-class="{\'disabled-link\':!license.messaging}">\n <i class="glyphicon glyphicon-comment"></i>\n <span class="title disable-target">{{\'APPLICATION_SMS\' | translate}}</span>\n <span class="arrow" data-ng-class="{ open: $state.includes(\'main.channels.sms\') }"></span>\n </a>\n\n <ul class="sub-menu" data-ng-if="license.messaging">\n <li data-ng-if="::(Auth.isAdmin() || userModules[42])" data-ng-class="{active: $state.includes(\'main.channels.sms.accounts\') || $state.includes(\'main.channels.sms.account\')}">\n <a href="/channels/sms/accounts/list">\n <i class="icon-notebook"></i>\n <span class="title"> {{\'APPLICATION_ACCOUNTS\' | translate}} </span>\n </a>\n </li>\n <li data-ng-if="::(Auth.isAdmin() || userModules[43])" data-ng-class="{active: $state.includes(\'main.channels.sms.queues\') || $state.includes(\'main.channels.sms.queue\')}">\n <a href="/channels/sms/queues/list">\n <i class="icon-docs"></i>\n <span class="title"> {{\'APPLICATION_QUEUES\' | translate}} </span>\n </a>\n </li>\n <li data-ng-if="::(Auth.isAdmin() || Auth.isAgent() || userModules[44])" data-ng-class="{active: $state.includes(\'main.channels.sms.inbox\')}">\n <a href="/channels/sms/inbox/view">\n <i class="icon-note"></i>\n <span class="title"> {{\'APPLICATION_INBOX\' | translate}} </span>\n </a>\n </li>\n <!-- START REALTIME CASE -->\n <li data-ng-if="::(Auth.isAdmin() || userModules[45])" data-ng-class="{active: $state.includes(\'main.channels.sms.realtime\')}">\n <a href="/channels/sms/realtime/view/agents">\n <i class="icon-energy"></i>\n <span class="title">{{\'APPLICATION_REALTIME\' | translate}}</span>\n </a>\n </li>\n <!-- END REALTIME CASE -->\n </ul>\n </li>\n\n <!-- END SMS CASE -->\n\n <!-- START OPENCHANNEL CASE -->\n <li data-ng-if="::(Auth.isAdmin() || Auth.isAgent()|| userModules[20])" data-ng-class="{active: $state.includes(\'main.channels.openchannel\')}">\n <a href="javascript:;" data-ng-class="{\'disabled-link\':!license.openchannel}" >\n <i class="icon-globe"></i>\n <span class="title disable-target">{{\'APPLICATION_OPEN_CHANNEL\' | translate}}</span>\n <span class="arrow" data-ng-class="{ open: $state.includes(\'main.channels.openchannel\') }"></span>\n </a>\n <ul class="sub-menu" data-ng-if="license.openchannel" >\n <li data-ng-if="::(Auth.isAdmin()|| userModules[46])" data-ng-class="{active: $state.includes(\'main.channels.openchannel.accounts\') || $state.includes(\'main.channels.openchannel.account\')}">\n <a href="/channels/openchannel/accounts/list">\n <i class="icon-notebook"></i>\n <span class="title"> {{\'APPLICATION_ACCOUNTS\' | translate}} </span>\n </a>\n </li>\n <li data-ng-if="::(Auth.isAdmin()|| userModules[47])" data-ng-class="{active: $state.includes(\'main.channels.openchannel.queues\') || $state.includes(\'main.channels.openchannel.queue\')}">\n <a href="/channels/openchannel/queues/list">\n <i class="icon-docs"></i>\n <span class="title"> {{\'APPLICATION_QUEUES\' | translate}} </span>\n </a>\n </li>\n <li data-ng-if="::(Auth.isAdmin() || Auth.isAgent()|| userModules[48])" data-ng-class="{active: $state.includes(\'main.channels.openchannel.inbox\')}">\n <a href="/channels/openchannel/inbox/view">\n <i class="icon-note"></i>\n <span class="title"> {{\'APPLICATION_INBOX\' | translate}} </span>\n </a>\n </li>\n <!-- START REALTIME CASE -->\n <li data-ng-if="::(Auth.isAdmin() || userModules[49])" data-ng-class="{active: $state.includes(\'main.channels.openchannel.realtime\')}">\n <a href="/channels/openchannel/realtime/view/agents">\n <i class="icon-energy"></i>\n <span class="title">{{\'APPLICATION_REALTIME\' | translate}}</span>\n </a>\n </li>\n <!-- END REALTIME CASE -->\n </ul>\n </li>\n\n <!-- END OPENCHANNEL CASE -->\n <!-- START REALTIME CASE -->\n <li data-ng-if="::(Auth.isAdmin() || userModules[12])" data-ng-class="{active: $state.includes(\'main.channels.realtime\')}">\n <a href="/channels/realtime/view/agents">\n <i class="icon-energy"></i>\n <span class="title">{{\'APPLICATION_OMNI_REALTIME\' | translate}}</span>\n </a>\n </li>\n <!-- END REALTIME CASE -->\n </ul>\n </li>\n <!-- END CHANNEL LIST CASE -->\n\n <!-- START TOOLS LIST CASE -->\n <li data-ng-if="::(Auth.isAdmin() || userModules[13])" data-ng-class="{active: $state.includes(\'main.tools\') && !$state.is(\'main.tools.yourdashboards.show\')}">\n <a href="javascript:;">\n <i class="icon-wrench"></i>\n <span class="title" >{{\'APPLICATION_TOOLS\' | translate}}</span>\n <span class="arrow" data-ng-class="{ open: $state.includes(\'main.tools\') && !$state.is(\'main.tools.yourdashboards.show\')}"></span>\n </a>\n <ul class="sub-menu">\n <li data-ng-class="{active: $state.includes(\'main.tools.triggers\')}" data-ng-if="::(Auth.isAdmin() || userModules[50])">\n <a href="/tools/triggers/list">\n <i class="icon-bulb"></i>\n <span class="title"> {{\'APPLICATION_TRIGGERS\' | translate}} </span>\n </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.tools.automations\')}" data-ng-if="::(Auth.isAdmin() || userModules[51])">\n <a href="/tools/automations/list">\n <i class="icon-settings"></i>\n <span class="title"> {{\'APPLICATION_AUTOMATIONS\' | translate}} </span>\n </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.tools.trunks\')}" data-ng-if="::(Auth.isAdmin() || userModules[52])">\n <a href="/tools/trunks/list">\n <i class="icon-link"></i>\n <span class="title"> {{\'APPLICATION_TRUNKS\' | translate}} </span>\n </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.tools.intervals\')}" data-ng-if="::(Auth.isAdmin() || userModules[53])">\n <a href="/tools/intervals/list">\n <i class="icon-clock"></i>\n <span class="title"> {{\'APPLICATION_INTERVALS\' | translate}} </span>\n </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.tools.variables\')}" data-ng-if="::(Auth.isAdmin() || userModules[54])">\n <a href="/tools/variables/list">\n <i class="fa fa-eye"></i>\n <span class="title" >{{\'APPLICATION_VARIABLES\' | translate}} </span>\n </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.tools.tags\')}" data-ng-if="::(Auth.isAdmin() || userModules[55])">\n <a href="/tools/tags/list">\n <i class="icon-tag"></i>\n <span class="title" >{{\'APPLICATION_TAGS\' | translate}} </span>\n </a>\n </li>\n <!-- START TEMPLATE CASE -->\n <li data-ng-class="{active: $state.includes(\'main.tools.templates\')}" data-ng-if="::(Auth.isAdmin() || userModules[56])">\n <a href="/tools/templates/list">\n <i class="icon-docs"></i>\n <span class="title"> {{\'APPLICATION_TEMPLATES\' | translate}} </span>\n </a>\n </li>\n <!-- END TEMPLATE CASE -->\n\n <!-- START PAUSE CASE -->\n <li data-ng-class="{active: $state.includes(\'main.tools.pauses\')}" data-ng-if="::(Auth.isAdmin() || userModules[57])">\n <a href="/tools/pauses/list">\n <i class="icon-control-pause"></i>\n <span class="title"> {{\'APPLICATION_PAUSES\' | translate}} </span>\n </a>\n </li>\n <!-- END PAUSE CASE -->\n\n <!-- START ANSWER CASE -->\n <li data-ng-class="{active: $state.includes(\'main.tools.answers\')}" data-ng-if="::(Auth.isAdmin() || userModules[58])">\n <a href="/tools/answers/list">\n <i class="icon-magic-wand"></i>\n <span class="title"> {{\'APPLICATION_CANNED_ANSWERS\' | translate}} </span>\n </a>\n </li>\n <!-- END ANSWER CASE -->\n\n <!-- START DASHBOARD MANAGER CASE -->\n <li data-ng-class="{active: $state.includes(\'main.tools.yourdashboards\') && !$state.is(\'main.tools.yourdashboards.show\')}" data-ng-if="::(Auth.isAdmin() || userModules[59])">\n <a href="/tools/yourdashboards/list">\n <i class="fa fa-tachometer"></i>\n <span class="title"> {{\'APPLICATION_DASHBOARDS_MANAGER\' | translate}} </span>\n </a>\n </li>\n <!-- END DASHBOARD MANAGER CASE -->\n\n <!-- START SOUND CASE -->\n <li data-ng-class="{active: $state.includes(\'main.tools.sounds\')}" data-ng-if="::(Auth.isAdmin() || userModules[60])">\n <a href="/tools/sounds/list">\n <i class="icon-music-tone-alt"></i>\n <span class="title" >{{\'APPLICATION_SOUNDS\' | translate}}</span>\n <!-- <span data-ng-if="$state.includes(\'main.sounds\')" class="selected"></span> -->\n </a>\n </li>\n <!-- END SOUND CASE -->\n\n <!-- START SCHEDULE CASE -->\n <li data-ng-class="{active: $state.includes(\'main.tools.scheduler\')}" data-ng-if="::(Auth.isAdmin() || userModules[61])">\n <a href="/tools/scheduler/list">\n <i class="icon-calendar"></i>\n <span class="title" >{{\'APPLICATION_SCHEDULER\' | translate}}</span>\n <!-- <span data-ng-if="$state.includes(\'main.sounds\')" class="selected"></span> -->\n </a>\n </li>\n <!-- END SCHEDULE CASE -->\n </ul>\n </li>\n <!-- END TOOLS LIST CASE -->\n\n <!-- START CALLYSQUARE CASE -->\n <li data-ng-if="::(Auth.isAdmin() || userModules[14])" data-ng-class="{active: $state.includes(\'main.square\')}">\n <a href="javascript:;">\n <i class="fa fa-superscript"></i>\n <span class="title" >Cally ²</span>\n <span class="arrow"></span>\n </a>\n <ul class="sub-menu">\n <li data-ng-class="{active: $state.includes(\'main.square.projects\')}">\n <a href="/square/projects/list">\n <i class="fa fa-slack"></i>\n <span class="title" >{{\'APPLICATION_PROJECTS\' | translate}} </span>\n </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.square.odbc\')}">\n <a href="/square/odbc/list">\n <i class="fa fa-database"></i>\n <span class="title" >{{\'APPLICATION_ODBC\' | translate}} </span>\n </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.square.recordings\')}">\n <a href="/square/recordings/list">\n <i class="icon-microphone"></i>\n <span class="title" >{{\'APPLICATION_RECORDINGS\' | translate}} </span>\n </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.square.realtime.view.general\')}">\n <a href="/square/realtime/view/general">\n <i class="icon-energy"></i>\n <span class="title" >{{\'APPLICATION_REALTIME\' | translate}} </span>\n </a>\n </li>\n </ul>\n </li>\n <!-- END CALLYSQUARE CASE -->\n <!-- START JSCRIPTY LIST -->\n <li data-ng-show="::(Auth.isAdmin() || Auth.isAgent() || userModules[15])" data-ng-class="{active: $state.includes(\'main.jscripty\')}">\n <a href="javascript:;" data-ng-class="{\'disabled-link\':!license.jscripty}" >\n <i class="icon-note"></i>\n <span class="title disable-target" >{{\'APPLICATION_JSCRIPTY\' | translate}} </span>\n <span class="arrow"></span>\n </a>\n <ul class="sub-menu" data-ng-if="license.jscripty">\n <!-- -->\n <!-- START PROJECTS CASE -->\n <li data-ng-show="Auth.isAdmin() || Auth.isAgent() || userModules[15]" data-ng-class="{active: $state.includes(\'main.jscripty.projects\')}">\n <a href="/jscripty/projects/list">\n <i class="fa fa-slack"></i>\n <span class="title" >{{\'APPLICATION_PROJECTS\' | translate}} </span>\n </a>\n </li>\n <!-- END PROJECTS CASE -->\n </ul>\n </li>\n <!-- END JSCRIPTY LIST -->\n\n <!-- START MOTION DIALER LIST CASE-->\n <li data-ng-if="::(Auth.isAdmin() || userModules[16])" data-ng-class="{active: $state.includes(\'main.motiondialer\')}">\n <a href="javascript:;" data-ng-class="{\'disabled-link\':!license.dialer}">\n <i class="icon-control-forward"></i>\n <span class="title disable-target" >{{\'APPLICATION_MOTION_DIALER\' | translate}} </span>\n <span class="arrow"></span>\n </a>\n <ul class="sub-menu" data-ng-if="license.dialer">\n <li data-ng-class="{active: $state.includes(\'main.motiondialer.blacklist\')}">\n <a href="/motiondialer/blacklist/list">\n <i class="icon-doc"></i>\n <span class="title" >{{\'APPLICATION_BLACKLIST\' | translate}} </span>\n </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.motiondialer.processes\')}">\n <a href="/motiondialer/processes/list">\n <i class="icon-settings"></i>\n <span class="title" >{{\'APPLICATION_PROCESSES\' | translate}} </span>\n </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.motiondialer.info\')}">\n <a href="/motiondialer/info/view/about">\n <i class="icon-info"></i>\n <span class="title" >{{\'APPLICATION_INFO\' | translate}} </span>\n </a>\n </li>\n </ul>\n </li>\n <!-- END MOTION DIALER LIST CASE-->\n\n <!-- START ANALYTIC LIST CASE -->\n <li data-ng-if="::(Auth.isAdmin() || userModules[17])" data-ng-class="{active: $state.includes(\'main.analytics.reports\')\n || $state.includes(\'main.analytics.extracted\')\n || $state.includes(\'main.analytics.metrics\')}" data-ng-if="::(Auth.isAdmin())">\n <a href="javascript:;">\n <i class="icon-calculator"></i>\n <span class="title" >{{\'APPLICATION_ANALYTICS\' | translate}}</span>\n <span class="arrow" data-ng-class="{ open: $state.includes(\'main.analytics.reports\')\n || $state.includes(\'main.analytics.extracted\')\n || $state.includes(\'main.analytics.metrics\') }"></span>\n </a>\n <ul class="sub-menu">\n <!-- START REPORT CASE -->\n <li data-ng-class="{active: $state.includes(\'main.analytics.reports\')}">\n <a href="/analytics/reports/list">\n <i class="icon-book-open"></i>\n <span class="title" >{{\'APPLICATION_REPORTS\' | translate}}</span>\n <span data-ng-if="$state.includes(\'main.analytics.reports\')" class="selected"></span>\n </a>\n </li>\n <!-- END REPORT CASE -->\n <!-- START EXTRA REPORT CASE -->\n <li data-ng-class="{active: $state.includes(\'main.analytics.extracted\')}">\n <a href="/analytics/extracted/list">\n <i class="fa fa-file-pdf-o"></i>\n <span class="title" >{{\'APPLICATION_EXTRACTED_REPORTS\' | translate}}</span>\n <span data-ng-if="$state.includes(\'main.analytics.extracted\')" class="selected"></span>\n </a>\n </li>\n <!-- END EXTRA REPORT CASE -->\n <!-- START METRICS CASE -->\n <li data-ng-class="{active: $state.includes(\'main.analytics.metrics\')}">\n <a href="/analytics/metrics/list">\n <i class="icon-calculator"></i>\n <span class="title" >{{\'APPLICATION_METRICS\' | translate}}</span>\n <span data-ng-if="$state.includes(\'main.metrics.reports\')" class="selected"></span>\n </a>\n </li>\n <!-- END METRICS CASE -->\n </ul>\n </li>\n <!-- END ANALYTIC LIST CASE -->\n\n <!-- START SETTINGS LIST -->\n <li data-ng-if="::(Auth.isAdmin() || userModules[18])" data-ng-class="{active: $state.includes(\'main.setting\')}">\n <a href="javascript:;">\n <i class="icon-settings"></i>\n <span class="title" >{{\'APPLICATION_SETTINGS\' | translate}}</span>\n <span class="arrow"></span>\n </a>\n <ul class="sub-menu">\n <!-- START GENERAL CASE -->\n <li data-ng-class="{active: $state.includes(\'main.setting.general\')}">\n <a href="/setting/general/view/main">\n <i class="icon-settings"></i>\n <span class="title"> {{\'APPLICATION_GENERAL\' | translate}} </span>\n </a>\n </li>\n <!-- END GENERAL CASE -->\n\n <!-- START UPDATES CASE -->\n <li data-ng-class="{active: $state.includes(\'main.setting.updates\')}">\n <a href="{{license.update ? \'/setting/updates/list\' : \'javascript:;\'}}" data-ng-class="{\'disabled-link\':!license.update}">\n <i class="icon-cloud-download"></i>\n <span class="title disable-target" >{{\'APPLICATION_UPDATES\' | translate}}</span>\n <!-- <span data-ng-if="$state.includes(\'main.updates\')" class="selected"></span> -->\n </a>\n </li>\n <!-- END UPDATES CASE -->\n\n <!-- START SMTP CASE -->\n <li data-ng-class="{active: $state.includes(\'main.setting.smtp\')}">\n <a href="/setting/smtp/view">\n <i class="icon-envelope"></i>\n <span class="title">SMTP</span>\n <!-- <span data-ng-if="$state.includes(\'main.smtp\')" class="selected"></span> -->\n </a>\n </li>\n <!-- END SMTP CASE -->\n\n <!-- START LICENSE CASE -->\n <li data-ng-class="{active: $state.includes(\'main.setting.license\')}">\n <a href="/setting/license/view">\n <i class="icon-info"></i>\n <span class="title"> {{\'APPLICATION_LICENSE\' | translate}} </span>\n </a>\n </li>\n <!-- END LICENSE CASE -->\n\n <!-- START NETWORK CASE -->\n <li data-ng-class="{active: $state.includes(\'main.setting.network\')}">\n <a href="/setting/network/view/localnet">\n <i class="icon-globe"></i>\n <span class="title"> {{\'APPLICATION_NETWORK\' | translate}} </span>\n </a>\n </li>\n <!-- END NETWORK CASE -->\n\n <!-- START SYSTEM CASE -->\n <li data-ng-class="{active: $state.includes(\'main.setting.system\')}">\n <a href="/setting/system/view/general">\n <i class="icon-pie-chart"></i>\n <span class="title"> {{\'APPLICATION_SYSTEM\' | translate}} </span>\n </a>\n </li>\n <!-- END SYSTEM CASE -->\n\n <!-- START CUSTOMIZATION CASE -->\n <li data-ng-class="{active: $state.includes(\'main.setting.customization\')}">\n <a href="/setting/customization/view/general">\n <i class="icon-equalizer"></i>\n <span class="title"> {{\'APPLICATION_CUSTOMIZATION\' | translate}} </span>\n </a>\n </li>\n <!-- END CUSTOMIZATION CASE -->\n </ul>\n </li>\n <!-- END SETTINGS LIST -->\n\n <!-- START INTEGRATION CASE -->\n <li data-ng-if=" (Auth.isAdmin() || Auth.isAgent() || userModules[19]) && integration.active" data-ng-repeat="integration in integrations" data-ng-class="{active: $state.includes(\'main.{{integration.state}}\')}">\n <a href="/{{integration.state}}/list" ng-switch on="integration.state" data-ng-if="integration.state !== \'iframe\' && (Auth.isAdmin() || userModules[19])">\n <i ng-switch-when="zendesk" class="icon-heart"></i>\n <i ng-switch-when="salesforce" class="fa fa-cloud"></i>\n <i ng-switch-default class="icon-handbag"></i>\n <span class="title" >{{integration.name}}</span>\n <span data-ng-if="$state.includes(\'main.{{integration.state}}\')" class="selected"></span>\n </a>\n <a href="/{{integration.state}}/view" data-ng-if="integration.state === \'iframe\'">\n <i class="fa fa-chrome"></i>\n <span class="title" data-ng-if="Auth.isAdmin() || userModules[19]">{{integration.name}}</span>\n <span class="title" data-ng-if="Auth.isAgent()">{{integration.title || integration.name}}</span>\n <span data-ng-if="$state.includes(\'main.{{integration.state}}\')" class="selected"></span>\n </a>\n </li>\n\n <li data-ng-if="::(Auth.isAdmin())" data-ng-class="{active: $state.is(\'main.market\')}">\n <a href="/market">\n <i class="icon-handbag"></i>\n <span class="title" translate>Market Place</span>\n <span data-ng-if="$state.includes(\'main.market\')" class="selected"></span>\n </a>\n </li>\n <!-- END INTEGRATIONS CASE -->\n <li>\n <a href="javascript:;" data-ng-click="activeTour.main = true" data-ng-if="::(!Auth.isAgent())">\n <i class="icon-location-pin"></i>\n <span class="title">{{\'APPLICATION_TAKE_A_TOUR\' | translate}}</span>\n </a>\n </li>\n <li>\n <a href="javascript:;" data-ng-click="about()">\n <i class="icon-info"></i>\n <span class="title">{{\'APPLICATION_ABOUT\' | translate}}</span>\n </a>\n </li>\n\n</ul>\n<!-- END SIDEBAR MENU -->\n</div>\n'); +}]); \ No newline at end of file diff --git a/public/app/76e92834.app.js b/public/app/76e92834.app.js deleted file mode 100644 index 583a09d..0000000 --- a/public/app/76e92834.app.js +++ /dev/null @@ -1,94 +0,0 @@ -"use strict";angular.module("xCallyShuttleApp",["adf","adf.structures.base","adf.widget.clock","adf.widget.iframe","adf.widget.counter","adf.widget.pie-chart","angular-md5","angular.filter","angularFileUpload","ngLetterAvatar","vAccordion","btford.socket-io","chart.js","checklist-model","colorpicker.module","frapontillo.bootstrap-switch","LocalStorageModule","mgo-angular-wizard","ng-slide-down","ngAnimate","ngBootstrap","ngCookies","ngCsv","ngFileSaver","ngJsTree","ngMap","ngPapaParse","ngResource","ngSanitize","notification","oc.lazyLoad","pascalprecht.translate","remoteValidation","smart-table","sprintf","timer","toastr","permission","ui-notification","ui.bootstrap.modal","ui.bootstrap.dropdown","ui.bootstrap.popover","ui.bootstrap.timepicker","ui.bootstrap.tooltip","ui.bootstrap.tpls","ui.bootstrap.accordion","ui.bootstrap.progressbar","ui.bootstrap.buttons","ui.bootstrap.typeahead","ui.grid","ui.grid.autoResize","ui.grid.draggable-rows","ui.grid.exporter","ui.grid.grouping","ui.grid.moveColumns","ui.grid.pagination","ui.grid.treeView","ui.grid.selection","ui.grid.exporter","ui.grid.resizeColumns","ui.router","ui.navbar","ui.select","ui.sortable","xeditable","ngAudio","truncate","ngScrollbars","ngEmoticons","angularSpinner","builder","builder.components","validator","angular-clipboard","ng-code-mirror","angularMoment","jsonFormatter","ui.bootstrap-slider","ui.bootstrap.datepicker","prettyBytes","bootstrapLightbox","rzModule","ckeditor","ngTagsInput","ngJoyRide","adf.widget.linklist"]).constant("CKEDITOR_BASEPATH","assets/plugins/ckeditor/").config(["$stateProvider","$urlRouterProvider","$locationProvider","$httpProvider","$translateProvider","localStorageServiceProvider","dashboardProvider","ScrollBarsProvider","tagsInputConfigProvider",function(a,b,c,d,e,f,g,h,i){i.setActiveInterpolation("tagsInput",{placeholder:!0}),b.otherwise(function(a){var b=a.get("$state");b.go("landing")}),e.useStaticFilesLoader({prefix:"assets/languages/locale-",suffix:".json"}),e.preferredLanguage("en_EN"),e.fallbackLanguage("en_EN"),e.useLocalStorage(),e.useSanitizeValueStrategy(null),c.html5Mode(!0),d.interceptors.push("authInterceptor"),g.structure("4-4-4",{rows:[{columns:[{styleClass:"col-md-4"},{styleClass:"col-md-4"},{styleClass:"col-md-4"}]}]}).structure("3-3-3-3",{rows:[{columns:[{styleClass:"col-md-3"},{styleClass:"col-md-3"},{styleClass:"col-md-3"},{styleClass:"col-md-3"}]}]}),f.setPrefix("motion"),h.defaults={scrollButtons:{scrollAmount:"auto",enable:!0},axis:"y"}}]).factory("authInterceptor",["$rootScope","$q","$cookieStore","$location",function(a,b,c,d){return{request:function(a){return a.headers=a.headers||{},c.get("token")?a.headers.Authorization="Bearer "+c.get("token"):d.path().match(/\/reset\/.[0-9]*/)||d.path("/login"),a}}}]).run(["$rootScope","$location","$state","$stateParams","$window","$q","Auth","RoleStore","editableThemes","editableOptions","License","User","PermissionStore","localStorageService","xAlert","$http",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){a.$state=c,a.$stateParams=d,i.bs3.inputClass="input-sm",i.bs3.buttonsClass="btn-xs",j.theme="bs3",a.$on("$stateChangeStart",function(a,c){g.isLoggedInAsync(function(a){!c.authenticate||a||b.path().match(/\/reset\/.[0-9]*/)||b.path("/login")})}),a.updateTableConfig=function(a,b){var c=_.find(a,{name:"All"});c&&(c.value=b)},a.settings={patternName:"[A-Za-z0-9._\\+*!\\-\\[\\]]+",simplePatternName:"[A-Za-z0-9._]+",patternPassword:"^(?=.*\\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[~!@#$%^&\\-_=+\\[\\{\\]\\}.])[0-9a-zA-Z~!@#$%^&\\-_=+\\[\\{\\]\\}.]{8,}$",patternPasswordLight:"^.{6,}$",patternGateway:"^(?:yes|no|[0-9]+)$",patternFaxdetect:"^(?:yes|no|t38|cng|[0-9]+)$",layout:{pageSidebarClosed:n.get("sidebarClosed")||!1,pageQuickSidebarOpened:!1,pageBodySolid:!1,pageAutoScrollOnLoad:1e3}},k.get().$promise.then(function(b){a.license=b.license,a.settings.soundPath=b.soundPath||"/var/opt/motion/server/files/sounds/converted",a.settings.footerWhiteLabel=b.footerWhiteLabel,a.settings.defaultFooterWhiteLabel=b.defaultFooterWhiteLabel,a.settings.logoutOnWindowClose=b.logoutOnWindowClose,m.definePermission("hasCm",function(){return a.license.cm}),m.definePermission("hasChat",function(){return a.license.chat}),m.definePermission("hasMail",function(){return a.license.mail}),m.definePermission("hasFax",function(){return a.license.fax}),m.definePermission("hasSms",function(){return a.license.messaging}),m.definePermission("hasDialer",function(){return a.license.dialer}),m.definePermission("hasJscripty",function(){return a.license.jscripty}),m.definePermission("hasUpdate",function(){return a.license.update}),m.definePermission("hasCustom",function(){return a.license.custom}),m.definePermission("hasOpenChannel",function(){return a.license.openchannel}),m.definePermission("hasPreferred",function(){return a.license.preferred})})["catch"](function(a){o.error(a)}),m.definePermission("agent",function(){return g.isAgent()}),m.definePermission("admin",function(){return g.isAdmin()}),m.definePermission("user",function(a,b){var c=f.defer(),d=g.getCurrentUser().$promise;return d?d.then(function(a){_.includes(_.map(a.Modules,"id"),b.toState.data.permissions.id)&&"user"===a.role?c.resolve():c.reject()})["catch"](function(){c.reject()}):c.resolve(),c.promise})}]),angular.module("xCallyShuttleApp").controller("AdminResetCtrl",["$scope","Auth","User","xAlert","$translate","$location","Setting","$rootScope",function(a,b,c,d,e,f,g,h){a.getInfo=function(){return g.get({controller:"info"}).$promise.then(function(b){return a.info=b,g.get({id:1}).$promise}).then(function(b){a.setting=b,!b.firstLogin&&f.path("/landing")})["catch"](function(a){console.error(a)})},h.bodyLayout="login",a.updatePassword=function(){var h={newPassword:a.user.password,id:b.getCurrentUser().id};return c.changePassword(h).$promise.then(function(){return g.update({id:1,firstLogin:!1}).$promise}).then(function(){d.show(e.instant("MESSAGE_WELL_DONE"),"success"),f.path("/landing")})["catch"](function(a){d.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("adminreset",{url:"/adminreset",templateUrl:"app/adminreset/adminreset.html",controller:"AdminResetCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/login.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.analytics",{url:"/analytics",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:17}}})}]),angular.module("xCallyShuttleApp").factory("Extracted",["$resource",function(a){return a("/api/analytics/extracted/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.analytics.extracted",{url:"/extracted",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("AnalyticExtractedListCtrl",["$scope","$translate","gridOptions","Extracted","uiGridConstants",function(a,b,c,d,e){a.moment=moment,a.Extracted=d,a.initView=function(){var b={exporterCsvFilename:"ExtractedReports.csv",columnDefs:[{name:"name"},{name:"createdAt",displayName:"APPLICATION_RUN_DATE",filterHeaderTemplate:'<div class="ui-grid-filter-container row"><div ng-repeat="colFilter in col.filters" class="col-md-6 col-md-offset-0 col-sm-5 col-sm-offset-0 col-xs-5 col-xs-offset-0"><div custom-grid-date-filter-header></div></div></div>',filters:[{name:"From",condition:e.filter.GREATER_THAN_OR_EQUAL,hasTime:!0},{name:"To",condition:e.filter.LESS_THAN_OR_EQUAL,hasTime:!0}]},{name:"startDate",displayName:"APPLICATION_START_DATE",filterHeaderTemplate:'<div class="ui-grid-filter-container row"><div ng-repeat="colFilter in col.filters" class="col-md-6 col-md-offset-0 col-sm-5 col-sm-offset-0 col-xs-5 col-xs-offset-0"><div custom-grid-date-filter-header></div></div></div>',filters:[{name:"From",condition:e.filter.GREATER_THAN_OR_EQUAL,hasTime:!0},{name:"To",condition:e.filter.LESS_THAN_OR_EQUAL,hasTime:!0}],sort:{direction:e.DESC,priority:0}},{name:"endDate",displayName:"APPLICATION_END_DATE",filterHeaderTemplate:'<div class="ui-grid-filter-container row"><div ng-repeat="colFilter in col.filters" class="col-md-6 col-md-offset-0 col-sm-5 col-sm-offset-0 col-xs-5 col-xs-offset-0"><div custom-grid-date-filter-header></div></div></div>',filters:[{name:"From",condition:e.filter.GREATER_THAN_OR_EQUAL,hasTime:!0},{name:"To",condition:e.filter.LESS_THAN_OR_EQUAL,hasTime:!0}]},{name:"output"},{name:"type"},{name:"status"},{name:"action",width:140,buttons:[{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"},{directive:"<motion-file-download data-ng-show=\"row.entity.status == 'completed'\" resource=\"grid.appScope.Extracted\" params=\"{id:row.entity.id,controller:'download'}\" mimetype=\"'application/'+row.entity.output.toLowerCase()\" filename=\"row.entity.name+'_'+row.entity.startDate.toString()+'_'+row.entity.endDate.toString()+'.'+row.entity.output.toLowerCase()\"></motion-file-download>"}]}]};a.gridOptions=c.gridOptions(d,b,a)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.analytics.extracted.list",{url:"/list",templateUrl:"app/analytic/extracted/list/list.html",controller:"AnalyticExtractedListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").factory("DefaultMetric",["$resource",function(a){return a("/api/analytics/metrics/default/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("AnalyticMetricListCreateModalCtrl",["$scope","$uibModalInstance","Metric","xAlert","$translate","report",function(a,b,c,d,e,f){a.forms={dashboard:void 0},a.item={},a.tables=f.tables,a.ok=function(){return c.save(a.item).$promise.then(function(){b.close()})["catch"](function(a){d.error(a)})},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("AnalyticMetricListCtrl",["$scope","xAlert","Modal","$uibModal","$log","gridOptions","Metric","DefaultMetric","$translate",function(a,b,c,d,e,f,g,h,i){a.$translate=i,a.initView=function(){var b={exporterCsvFilename:"Metrics.csv",columnDefs:[{name:"name"},{name:"table",cellTemplate:"<div style=\"padding:5px\">{{'APPLICATION_'+row.entity.table.toUpperCase() | translate}}</div>"},{name:"description"},{name:"action",width:125,buttons:[{"class":"blue-hoki",href:"/analytics/metrics/view/{{row.entity.id}}/settings",name:"settings"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=f.gridOptions(g,b,a)},a.showMetric=function(a){d.open({animation:!0,templateUrl:"app/analytic/metric/list/view.modal.html",controller:"AnalyticMetricListViewModalCtrl",resolve:{metric:a}})},a.cloneMetric=function(c){return h.get({id:c,controller:"clone"}).$promise.then(function(){b.show(i.instant("MESSAGE_WELL_DONE"),"success"),a.gridOptions.getPage()})["catch"](function(a){b.error(a)})},a.create=function(){var c=d.open({animation:!0,templateUrl:"app/analytic/metric/list/create.modal.html",controller:"AnalyticMetricListCreateModalCtrl"});c.result.then(function(){b.show(i.instant("MESSAGE_WELL_DONE")+"!","success"),a.gridOptions.getPage()},function(){e.info("Modal dismissed at: "+new Date)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.analytics.metrics.list",{url:"/list",templateUrl:"app/analytic/metric/list/list.html",controller:"AnalyticMetricListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("AnalyticMetricListViewModalCtrl",["$scope","$uibModalInstance","metric","xAlert","$translate","report",function(a,b,c,d,e,f){a.item=c,a.tables=f.tables,a.close=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").factory("Metric",["$resource",function(a){return a("/api/analytics/metrics/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.analytics.metrics",{url:"/metrics",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("AnalyticMetricViewCtrl",["$scope","xAlert","$translate","$stateParams","$location","Metric","report",function(a,b,c,d,e,f,g){a.tables=g.tables,a.getMetric=function(){return f.get({id:d.id}).$promise.then(function(b){a.metric=b})["catch"](function(a){e.path("/analytics/metrics/list")})},a.updateMetric=function(){return f.update({id:d.id},a.metric).$promise.then(function(){b.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){b.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.analytics.metrics.view",{url:"/view/:id",templateUrl:"app/analytic/metric/view/view.html",controller:"AnalyticMetricViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.analytics.metrics.view.settings",{url:"/settings",templateUrl:"app/analytic/metric/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").factory("CustomReport",["$resource",function(a){return a("/api/analytics/reports/custom/:precontroller/:id/:controller/:action",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("DefaultReport",["$resource",function(a){return a("/api/analytics/reports/default/:id/:controller/:action",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("ReportListCopyModalCtrl",["$scope","$uibModalInstance","$log","customTreeData",function(a,b,c,d){a.customTreeData=d,a.forms={dashboard:void 0},a.customTreeConfig={multiple:!1,animation:!0,core:{error:function(a){c.error("treeCtrl: error from js tree - "+angular.toJson(a))},check_callback:!0}},a.ac=function(){return!0},a.initCustomScopeTree=function(){a.customTree=a.customTreeInstance.jstree(!0),a.customTree.deselect_all(),a.customTree.open_all()},a.ok=function(){a.customTree.get_selected(!0).length?b.close({parent:a.customTree.get_selected(!0).pop().id}):a.showAlert=!0},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("ReportListCreateModalCtrl",["$scope","$uibModalInstance","path",function(a,b,c){a.path=c,a.forms={dashboard:void 0},a.item={},a.ok=function(){a.item.model=JSON.stringify({title:a.item.name}),b.close(a.item)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("ReportListExtractModalCtrl",["$scope","$uibModalInstance","$translate",function(a,b,c){a.daily=!1,a.dailySwitch={onText:c.instant("APPLICATION_TODAY"),offText:c.instant("APPLICATION_RANGE"),isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"primary"},a.dates={startDate:moment().subtract(1,"days").startOf("day"),endDate:moment().subtract(1,"days").endOf("day")},a.ranges={},a.ranges[c.instant("APPLICATION_YESTERDAY")]=[moment().subtract(1,"days").startOf("day"),moment().subtract(1,"days").endOf("day")],a.ranges[c.instant("APPLICATION_LAST_SEVEN_DAYS")]=[moment().subtract("days",7).startOf("day"),moment().subtract(1,"days").endOf("day")],a.ranges[c.instant("APPLICATION_LAST_THIRTY_DAYS")]=[moment().subtract("days",30),moment()],a.ranges[c.instant("APPLICATION_LAST_MONTH")]=[moment().subtract(1,"months").startOf("month"),moment().subtract(1,"months").endOf("month")],a.timepicker={timePickerIncrement:1,timePicker12Hour:!1},a.dailyTime={start:moment("00:00","HH:mm"),end:moment("23:59","HH:mm")},a.maxdate=moment().subtract(1,"days").endOf("day").format("YYYY-MM-DD HH:mm"),a.extract=function(c){var d={startDate:moment(a.dates.startDate).format("YYYY-MM-DD"),endDate:moment(a.dates.endDate).format("YYYY-MM-DD"),startTime:a.daily?moment(a.dailyTime.start).format("HH:mm"):moment(a.dates.startDate).format("HH:mm"),endTime:a.daily?moment(a.dailyTime.end).format("HH:mm"):moment(a.dates.endDate).format("HH:mm"),daily:a.daily,action:c};b.close(d)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("AnalyticReportListCtrl",["$scope","xAlert","$translate","$location","$log","Modal","$uibModal","FileSaver","Blob","gridOptions","CustomReport","DefaultReport","ReportTree","localStorageService",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n){function o(){var b=n.get("lastMotionReportNode")||!1,c=n.get("lastMotionReportTree")||!1;return b&&c?(a[c+"Tree"].open_node({id:b}),a[c+"Tree"].select_node({id:b}),!0):!1}function p(b,c){var d={parent:c.id};a.selectedNode=b?a.defaultTree.get_path(c," / "):a.customTree.get_path(c," / "),a.gridOptions?a.gridOptions.getPage({parent:c.id},b?l:k):a.gridOptions=j.gridOptions(b?l:k,q,a,d)}var q={exporterCsvFilename:"reports.csv",columnDefs:[{name:"name"},{name:"description"},{name:"manage",width:120,buttons:[{"class":"{{grid.appScope.defaultTreeActive ? 'display-none' : 'blue-hoki'}}",href:"/analytics/reports/view/{{row.entity.id}}/settings",title:c.instant("APPLICATION_SETTINGS"),name:"settings"},{"class":"{{grid.appScope.defaultTreeActive ? 'display-none' : 'red-sunglo'}}",title:c.instant("APPLICATION_DELETE"),name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"},{"class":"green",title:c.instant("APPLICATION_COPY"),name:"copy",onClick:"grid.appScope.copy(row.entity.id)"},{"class":"purple",title:c.instant("APPLICATION_EXPORT"),name:"export",onClick:"grid.appScope.export(row.entity.id)"}]},{name:"actions",width:60,buttons:[{"class":"yellow",name:"preview",title:c.instant("APPLICATION_PREVIEW"),onClick:"grid.appScope.preview(row.entity.id)"},{"class":"green-turquoise",name:"run",title:c.instant("APPLICATION_RUN"),onClick:"grid.appScope.extract(row.entity.id)"}]}]};a.searchField="",a.ac=function(){return!0},a.initDefaultScopeTree=function(){a.defaultTree=a.defaultTreeInstance.jstree(!0),a.defaultTree.deselect_all(),a.defaultTree.close_all(),a.defaultTreeReady=!0,a.defaultTreeActive=!0,a.previousDefaultNode=""},a.initCustomScopeTree=function(){a.customTree=a.customTreeInstance.jstree(!0),a.customTree.deselect_all(),a.customTree.close_all(),a.customTreeReady=!0,a.previousCustomNode=""},a.$watchGroup(["defaultTreeReady","customTreeReady"],function(b,c,d){b[0]&&b[1]&&(o()||(a.defaultTree.open_node({id:1}),a.customTree.open_node({id:1}),a.defaultTree.select_node({id:"1"})))}),a.updateCustomTree=function(){var c={tree:angular.toJson(a.customTree.get_json("#",{flat:!0}))};return m.update({id:2},c).$promise.then(function(a){console.log("Custom Tree Updated")})["catch"](function(a){b.error(a)})},a.configTrees=function(){a.defaultTreeConfig={multiple:!1,animation:!0,core:{error:function(a){e.error("treeCtrl: error from js tree - "+angular.toJson(a))},check_callback:!0,themes:{name:"default",url:"../../../assets/css/jstree-metronic/style.css"}},plugins:["search"]},a.customTreeConfig={multiple:!1,animation:!0,core:{error:function(a){e.error("treeCtrl: error from js tree - "+angular.toJson(a))},check_callback:function(a,b,c,d,e){return console.log(a),!0},themes:{name:"default",url:"../../../assets/css/jstree-metronic/style.css"}},plugins:["contextmenu","dnd","search"],contextmenu:{items:function(b,d){var e={create:{label:c.instant("APPLICATION_CREATE"),action:function(c){a.customTree.create_node(b),a.customTree.open_node(b)}},rename:{label:c.instant("APPLICATION_RENAME"),action:function(c){a.customTree.edit(b)}},remove:{label:c.instant("APPLICATION_REMOVE"),action:function(c){a.deleteNode(b)}}};return"#"===b.parent&&(delete e.rename,delete e.remove),d(e),e}}}},a.deleteNode=function(d){var f=g.open({animation:!0,templateUrl:"app/analytic/report/list/deleteNode.modal.html",controller:["$scope","$uibModalInstance","node",function(a,b,c){a.node=c,a.ok=function(){b.close()},a.cancel=function(){b.dismiss("cancel")}}],resolve:{node:function(){return d.text}}});f.result.then(function(){return k["delete"]({precontroller:"node",id:d.id}).$promise.then(function(){b.show(c.instant("MESSAGE_WELL_DONE"),"success"),a.customTree.delete_node(d),a.previousCustomNode==d.id&&a.customTree.select_node({id:d.parent})})["catch"](function(a){b.error(a)})},function(){e.info("Modal dismissed at: "+new Date)})},a.searchTrees=function(){a.defaultTree.search(a.searchField),a.customTree.search(a.searchField)},a.selectDefaultNode=function(){if(a.customTreeReady){a.previousCustomNode="";var b=a.defaultTree.get_selected(!0),c=b.pop();if(a.defaultTree.deselect_node(b[0],!0),a.customTree.deselect_all(),a.defaultTree.select_node(c,!0),c.id===a.previousDefaultNode)return void console.log("def");a.previousDefaultNode=c.id,n.set("lastMotionReportNode",c.id),n.set("lastMotionReportTree","default"),a.defaultTreeActive=!0,p(!0,c)}},a.selectCustomNode=function(){if(a.defaultTreeReady){a.previousDefaultNode="";var b=a.customTree.get_selected(!0),c=b.pop();if(a.customTree.deselect_node(b[0],!0),a.defaultTree.deselect_all(),a.customTree.select_node(c,!0),c.id===a.previousCustomNode)return void console.log("cus");a.previousCustomNode=c.id,n.set("lastMotionReportNode",c.id),n.set("lastMotionReportTree","custom"),a.defaultTreeActive=!1,p(!1,c)}},a.getTrees=function(){return m.query().$promise.then(function(b){a.defaultTreeData=JSON.parse(b[0].tree),a.customTreeData=JSON.parse(b[1].tree),a.configTrees()})["catch"](function(a){b.error(a)})},a.create=function(){var c=g.open({animation:!0,templateUrl:"app/analytic/report/list/create.modal.html",controller:"ReportListCreateModalCtrl",resolve:{path:function(){return a.selectedNode}}});c.result.then(function(c){return c.parent=a.previousCustomNode,k.save(c).$promise.then(function(a){d.path("/analytics/reports/view/"+a.id+"/settings")})["catch"](function(a){b.error(a)})},function(){e.info("Modal dismissed at: "+new Date)})},a.copy=function(d){var f=a.defaultTreeActive?l:k,h=g.open({animation:!0,templateUrl:"app/analytic/report/list/copy.modal.html",controller:"ReportListCopyModalCtrl",resolve:{customTreeData:function(){return a.customTree.get_json("#",{flat:!0})}}});h.result.then(function(e){return f.save({id:d,controller:"copy"},e).$promise.then(function(){a.gridOptions.getPage(),b.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){b.error(a)})},function(){e.info("Modal dismissed at: "+new Date)})},a["export"]=function(c){var d=a.defaultTreeActive?l:k;return d.get({id:c,controller:"export"}).$promise.then(function(a){var b=new i([angular.toJson(a)],{type:"application/json;charset=utf-8"});h.saveAs(b,a.name+".json")})["catch"](function(a){b.error(a)})},a["import"]=function(d){var e=JSON.parse(d);e.parent=a.previousCustomNode;var f=!(!e.name||!e.parent),g=!0;return _.forEach(e.Fields,function(a){a.field&&a.alias||(g=!1)}),f&&g?k.save({controller:"import"},e).$promise.then(function(){a.gridOptions.getPage(),b.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){b.error(a)}):void b.show(c.instant("MESSAGE_INVALID_JSON"),"danger")},a.preview=function(b){g.open({animation:!0,templateUrl:"app/analytic/report/list/preview.modal.html",controller:"ReportListPreviewModalCtrl",size:"full",resolve:{report:function(){return{id:b,tree:a.defaultTreeActive?"default":"custom"}}}})},a.extract=function(d){var f=g.open({animation:!0,templateUrl:"app/analytic/report/list/extract.modal.html",controller:"ReportListExtractModalCtrl",size:"md",resolve:{report:function(){return{id:d,tree:a.defaultTreeActive?"default":"custom"}}}});f.result.then(function(e){e.daily||delete e.daily;var f=a.defaultTreeActive?l:k;return f.get(_.merge({id:d,controller:"extract"},e)).$promise.then(function(){b.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){b.error(a)})},function(){e.info("Modal dismissed at: "+new Date)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.analytics.reports.list",{url:"/list",templateUrl:"app/analytic/report/list/list.html",controller:"AnalyticReportListCtrl"})}]),angular.module("xCallyShuttleApp").controller("ReportListPreviewModalCtrl",["$scope","$uibModalInstance","report","xAlert","$translate","$timeout","CustomReport","DefaultReport",function(a,b,c,d,e,f,g,h){a.daily=!1,a.dailySwitch={onText:e.instant("APPLICATION_TODAY"),offText:e.instant("APPLICATION_RANGE"),isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"primary"},a.dates={startDate:moment().subtract(1,"days").startOf("day"),endDate:moment().subtract(1,"days").endOf("day")},a.ranges={},a.ranges[e.instant("APPLICATION_YESTERDAY")]=[moment().subtract(1,"days").startOf("day"),moment().subtract(1,"days").endOf("day")],a.ranges[e.instant("APPLICATION_LAST_SEVEN_DAYS")]=[moment().subtract("days",7).startOf("day"),moment().subtract(1,"days").endOf("day")],a.ranges[e.instant("APPLICATION_LAST_THIRTY_DAYS")]=[moment().subtract("days",30),moment()],a.ranges[e.instant("APPLICATION_LAST_MONTH")]=[moment().subtract(1,"months").startOf("month"),moment().subtract(1,"months").endOf("month")],a.timepicker={timePickerIncrement:1,timePicker12Hour:!1},a.dailyTime={start:moment("00:00","HH:mm"),end:moment("23:59","HH:mm")},a.maxdate=moment().subtract(1,"days").endOf("day").format("YYYY-MM-DD HH:mm");var i={offset:0,limit:25,sort:null,where:{},order:{}};a.gridOptions={paginationPageSizes:[10,25,50],paginationPageSize:25,useExternalPagination:!0,enableSorting:!1,enableFiltering:!0,useExternalFiltering:!0,enableGrouping:!1,enableColumnMenus:!1,treeRowHeaderAlwaysVisible:!1,gridMenuShowHideColumns:!1,enableGridMenu:!1,onRegisterApi:function(b){a.gridApi=b,b.pagination.on.paginationChanged(a,function(b,c){i.offset=(b-1)*c,i.limit=c,a.getPage()}),b.core.on.filterChanged(a,function(){var b=this.grid,c={};b.columns.forEach(function(a){a.filters[0].term&&(c[a.field]=a.filters[0].term)}),i.where=c,a.getPage()})}},a.getPage=function(){var b={offset:i.offset,limit:i.limit,startDate:moment(a.dates.startDate).format("YYYY-MM-DD"),endDate:moment(a.dates.endDate).format("YYYY-MM-DD"),startTime:a.daily?moment(a.dailyTime.start).format("HH:mm"):moment(a.dates.startDate).format("HH:mm"),endTime:a.daily?moment(a.dailyTime.end).format("HH:mm"):moment(a.dates.endDate).format("HH:mm"),daily:a.daily};_.forOwn(i.where,function(a,c){b[c]=a});var e="custom"===c.tree?g:h;return e.get(_.merge({id:c.id,controller:"preview"},b)).$promise.then(function(b){a.gridOptions.totalItems=b.count,a.gridOptions.paginationPageSizes[3]=b.count,a.gridOptions.data=b.rows,a.showResult=!0})["catch"](function(a){d.error(a)})},a.cancel=function(){b.dismiss("cancel")},f(function(){a.getPage()})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.analytics.reports",{url:"/reports",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").factory("ReportAgent",["$resource",function(a){return a("/api/report/agents/:id/:controller",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("ReportIntegration",["$resource",function(a){return a("/api/report/integrations/:id/:controller",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("ReportMember",["$resource",function(a){return a("/api/report/members/:id/:controller",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("ReportTree",["$resource",function(a){return a("/api/analytics/reports/trees/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("AnalyticReportViewCtrl",["$scope","xAlert","$translate","$stateParams","$location","ReportAgent","ReportCall","ReportMailSession","ReportSmsSession","ReportMember","ReportQueue","ReportIntegration","ReportChatSession","DefaultReport","CustomReport","Metric","report",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){function r(c){var d=_.find(a.tables,{value:c}).resource;d.get({controller:"describe"}).$promise.then(function(b){a.tableFields=_.map(b,function(a,b){return"$promise"!==b&&"$resolved"!==b?{name:b,value:b}:void 0})})["catch"](function(a){b.error(a)})["finally"](function(){s(c)})}function s(c){return p.get({controller:"table",table:c}).$promise.then(function(b){_.forEach(b.rows,function(b){a.tableFields.push({name:"<strong>Metric.</strong>"+b.name,alias:b.name,value:b.metric,MetricId:b.id})})})["catch"](function(a){b.error(a)})}function t(a){return String(a).replace(/</g,"<").replace(/>/g,">")}function u(a){if(!a)return"";for(var b="(",c=0;c<a.rules.length;c++)if(c>0&&(b+=" <strong>"+a.operator+"</strong> "),a.rules[c].group)b+=u(a.rules[c].group);else switch(b+=a.rules[c].field,a.rules[c].condition){case"IS NULL":case"IS NOT NULL":b+=" "+t(a.rules[c].condition);break;case"IS EMPTY":b+=" = ''";break;case"IS NOT EMPTY":b+=" != ''";break;default:b+=" "+t(a.rules[c].condition)+" "+a.rules[c].value}return b+")"}a.$translate=c,a.tempReport={},a.tables=q.tables;var v={group:{operator:"AND",rules:[]}};a.getReport=function(){return a.firstLoad=!0,o.get({id:d.id}).$promise.then(function(b){a.report=b,_.forEach(a.report.Fields,function(a){delete a.id}),a.report.conditions=a.report.conditions?JSON.parse(a.report.conditions):_.clone(v,!0),a.report.Fields.length&&a.getPreview()})["catch"](function(a){console.error(a),e.path("/analytics/reports/list")})},a.randomName=function(a,b){var c=[];for(a=a||5,b=b||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--a;)c.push(b.charAt(Math.floor(Math.random()*b.length)));return c.join("")},a.$watch("report.table",function(b,c){b&&(r(b),c&&(a.tempReport[c]={conditions:a.report.conditions,fields:a.report.Fields}),a.firstLoad?a.firstLoad=!1:a.tempReport[b]?(a.report.Fields=a.tempReport[b].fields,a.report.conditions=a.tempReport[b].conditions):(a.report.Fields=[],a.report.conditions=_.clone(v,!0)))},!0),a.setMetricId=function(b,c){a.report.Fields[c].MetricId=b.MetricId?b.MetricId:null,a.report.Fields[c].alias=b.MetricId?b.alias:b.name},a.groupByField=[{name:"APPLICATION_YES",value:!0},{name:"APPLICATION_NO",value:!1}],a.functions=[{name:"Sum",value:"SUM"},{name:"Count",value:"COUNT"},{name:"Count Distinct",value:"COUNT DISTINCT"},{name:"Maximum",value:"MAX"},{name:"Minimum",value:"MIN"},{name:"Average",value:"AVG"},{name:"Group Concat",value:"GROUP_CONCAT"},{name:"Group Concat(asc)",value:"GROUP_CONCAT ASC"},{name:"Group Concat(desc)",value:"GROUP_CONCAT DESC"}],a.formatFunctions=[{name:"Sec To Time",value:"SEC_TO_TIME"},{name:"Date",value:"DATE"},{name:"Hour",value:"HOUR"},{name:"Round",value:"ROUND"},{name:"Unix TimeStamp",value:"UNIX_TIMESTAMP"}],a.addField=function(){a.report.Fields.push({groupBy:!1,custom:!1})},a.removeField=function(b){a.report.Fields.splice(b,1)},a.sortableOptions={"ui-floating":!0,cancel:".unsortable",handle:".report-field-handle",axis:"y"},a.toggleCustom=function(b){b.custom=!b.custom,b.custom||_.find(a.tableFields,{value:b.field})||(b.field=null)},a.updateReport=function(){if(a.report.Fields.length){var e=angular.copy(a.report);return console.log(e.conditions),e.conditions=angular.toJson(e.conditions),_.forEach(e.Fields,function(a){a.custom&&delete a.MetricId}),o.update({id:d.id},e).$promise.then(function(){b.show(c.instant("MESSAGE_WELL_DONE")+"!","success"),a.getPreview()})["catch"](function(a){b.error(a)})}b.show(c.instant("MESSAGE_SELECT_A_FIELD"),"danger")},a.$watch("report.conditions",function(b){a.output=b?u(b.group):"()"},!0),a.getPreview=function(){return a.gridOptions=null,o.get({id:d.id,controller:"preview",limit:20}).$promise.then(function(b){a.gridOptions={enableFiltering:!0,treeRowHeaderAlwaysVisible:!1,enableGridMenu:!0, -data:b.rows}})["catch"](function(a){console.log(a),b.show(c.instant(a.message||"MESSAGE_QUERY_NOT_VALID"),"warning")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.analytics.reports.view",{url:"/view/:id",templateUrl:"app/analytic/report/view/view.html",controller:"AnalyticReportViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.analytics.reports.view.settings",{url:"/settings",templateUrl:"app/analytic/report/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels",{url:"/channels",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:6}}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat",{url:"/chat",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:8}}})}]),angular.module("xCallyShuttleApp").factory("ChatEnquiry",["$resource",function(a){return a("/api/chat/enquiries/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("ChatReport",["$resource",function(a){return a("/api/report/chats/:id/:controller1/:controller2",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("ChatVisitor",["$resource",function(a){return a("/api/chat/visitors/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("ChatMessage",["$resource",function(a){return a("/api/chat/messages/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("ChatRoom",["$resource",function(a){return a("/api/chat/rooms/:id/:controller",{id:"@id"},{me:{method:"GET",isArray:!0,params:{id:"me"}},users:{method:"GET",params:{id:"users"}},externals:{method:"GET",isArray:!0,params:{id:"type",controller:"external"}},groups:{method:"GET",isArray:!0,params:{id:"groups"}},update:{method:"PUT"},patch:{method:"PATCH"}})}]),angular.module("xCallyShuttleApp").controller("ChatOfflineListCtrl",["$scope","ChatEnquiry","gridOptions","uiGridConstants",function(a,b,c,d){a.initView=function(){var e={exporterCsvFilename:"chat_offline_messages.csv",columnDefs:[{name:"username",cellClass:"text-center"},{name:"email",cellClass:"text-center"},{name:"ChatWebsite.name",displayName:"Website",cellClass:"text-center"},{name:"createdAt",displayName:"createdAt",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span am-time-ago="row.entity.createdAt"></span></div>',field:"createdAt",sort:{direction:d.DESC,priority:0}},{name:"action",width:75,buttons:[{"class":"blue-hoki",href:"/channels/chat/offline/view/{{row.entity.id}}",name:"detail"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.fullname, row.entity.id)"}]}]};a.gridOptions=c.gridOptions(b,e,a)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.offline.list",{url:"/list",templateUrl:"app/channels/chat/offline/list/list.html",controller:"ChatOfflineListCtrl"})}]),angular.module("xCallyShuttleApp").directive("enquiryMessage",["$rootScope","$translate","MailMessage","List","xAlert",function(a,b,c,d,e){return{restrict:"E",scope:{message:"=",listId:"="},templateUrl:"app/channels/chat/offline/message/message.directive.html",link:function(c){c.openContact=function(f){return c.listId?d.save({listId:c.listId,controller:"contacts"},{email:f}).$promise.then(function(b){var c=_.find(a.$root.workspaces,{contactID:b.id});c?c.active=!0:a.$root.workspaces.push({active:!0,"class":"icon-user",contactID:b.id,name:b.email,type:"contact"})})["catch"](function(a){e.error(a)}):void e.show(b.instant("MESSAGE_NO_LIST_CONFIGURED"),"info")}}}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.offline",{url:"/offline",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:32}}})}]),angular.module("xCallyShuttleApp").controller("ChatOfflineViewCtrl",["$scope","$stateParams","$translate","$rootScope","ChatEnquiry","List","xAlert",function(a,b,c,d,e,f,g){a.initView=function(){return e.get({id:b.id}).$promise.then(function(b){a.enquiry=b})["catch"](function(a){g.error(a)})},a.openContact=function(b){return a.enquiry.ChatWebsite.ListId?f.save({listId:a.enquiry.ChatWebsite.ListId,controller:"contacts"},{email:b}).$promise.then(function(a){var b=_.find(d.$root.workspaces,{contactID:a.id});b?b.active=!0:d.$root.workspaces.push({active:!0,"class":"icon-user",contactID:a.id,name:a.email,type:"contact"})})["catch"](function(a){g.error(a)}):void g.show(c.instant("MESSAGE_NO_LIST_CONFIGURED"),"info")}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.offline.view",{url:"/view/:id",templateUrl:"app/channels/chat/offline/view/view.html",controller:"ChatOfflineViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("ChatOnlineListCtrl",["$scope","ChatRoom","gridOptions",function(a,b,c){a.initView=function(){var d={exporterCsvFilename:"chat_online_messages.csv",columnDefs:[{name:"ChatVisitor.fullname",displayName:"APPLICATION_FULLNAME",cellClass:"text-center"},{name:"ChatVisitor.email",displayName:"APPLICATION_EMAIL",cellClass:"text-center"},{name:"action",width:100,buttons:[{"class":"blue-hoki",href:"/channels/chat/online/view/{{row.entity.id}}/detail",name:"detail"}]}]};a.gridOptions=c.gridOptions(b,d,a,{id:"online"})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.online.list",{url:"/list",templateUrl:"app/channels/chat/online/list/list.html",controller:"ChatOnlineListCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.online",{url:"/online",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:8}}})}]),angular.module("xCallyShuttleApp").controller("ChatOnlineViewCtrl",["$scope","$stateParams","ChatRoom",function(a,b,c){a.initView=function(){return a.config={autoHideScrollbar:!1,theme:"light",advanced:{updateOnContentResize:!0},setHeight:400,scrollInertia:0},c.get({id:b.id}).$promise.then(function(b){a.chatRoom=b})["catch"](function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.online.view",{url:"/view/:id",templateUrl:"app/channels/chat/online/view/view.html",controller:"ChatOnlineViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.channels.chat.online.view.detail",{url:"/detail",templateUrl:"app/channels/chat/online/view/view.detail.html",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/news.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("PreviewCtrl",["$scope",function(a){a.message="Hello"}]),angular.module("xCallyShuttleApp").directive("preview",["$rootScope",function(a){return{templateUrl:"app/channels/chat/preview/preview.html",restrict:"EA",link:function(a,b,c){}}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("preview",{url:"/preview",templateUrl:"app/channels/chat/preview/preview.html",controller:"PreviewCtrl",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:8}}})}]),angular.module("xCallyShuttleApp").factory("ChatQueue",["$resource",function(a){return a("/api/chat/queues/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("ChatQueueListCtrl",["$scope","ChatQueue","gridOptions","Auth","$uibModal",function(a,b,c,d,e){a.initView=function(){a.Auth=d;var e={exporterCsvFilename:"chat_queues.csv",columnDefs:[{name:"name"},{name:"description"},{name:"strategy"},{name:"timeout"},{name:"action",width:100,buttons:[{"class":"blue-hoki",href:"/channels/chat/queues/view/{{row.entity.id}}/settings",name:"settings"},{"class":"green-meadow",href:"/channels/chat/queues/view/{{row.entity.id}}/agents",name:"agents",hide:"user"===d.getCurrentUser().role},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=c.gridOptions(b,e,a)},a.createItem=function(){var b=e.open({animation:!0,templateUrl:"app/channels/chat/queue/list/list.create.modal.html",controller:"ChatQueueListCreateCtrl",size:"lg"});b.result.then(function(){a.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("ChatQueueListCreateCtrl",["$scope","$uibModalInstance","$translate","xAlert","ChatQueue","Team","strategies",function(a,b,c,d,e,f,g){a.form={},a.strategies=g,a.item={penalty:0,agents:[]},a.getTeams=function(){return f.get({controller:"associations"}).$promise.then(function(b){a.teams=b.rows}).then(function(){ComponentsDropdowns.bindQueue(a.teams,[],function(){return{select:function(b){a.item.agents=_.union(a.item.agents,b)},deselect:function(b){a.item.agents=_.difference(a.item.agents,b)}}})})["catch"](function(a){console.error(a)})},a.save=function(){return e.save(a.item).$promise.then(function(a){d.show(c.instant("MESSAGE_WELL_DONE"),"success"),b.close(a)})["catch"](function(a){d.error(a)})},a.cancel=function(){b.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.queues.list",{url:"/list",templateUrl:"app/channels/chat/queue/list/list.html",controller:"ChatQueueListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.queues",{url:"/queues",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:30}}})}]),angular.module("xCallyShuttleApp").controller("ChatQueueViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","ChatQueue","Team","Auth","strategies",function(a,b,c,d,e,f,g,h,i){a.Auth=h,a.strategies=i;var j=function(){return{select:function(b){return f.save({id:a.queue.id,controller:"agents"},{agents:b,penalty:a.queue.penalty}).$promise.then(function(){a.getTeams()})["catch"](function(a){console.log(a)})},deselect:function(b){return f["delete"]({id:a.queue.id,controller:"agents",agents:b}).$promise.then(function(){a.getTeams()})["catch"](function(a){console.log(a)})}}};a.getQueue=function(){b.get("/api/chat/queues/"+e.id).success(function(b){b.penalty=0,a.queue=b}).error(function(a){console.error(a)})},a.updateChatQueue=function(){var f=angular.copy(a.queue);b.put("/api/chat/queues/"+e.id,f).success(function(){c.show(d.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(b){a.queue=f,b.errors.forEach(function(a){c.error(err)})})},a.getTeams=function(){return g.get({controller:"associations"}).$promise.then(function(b){return a.teams=b.rows,f.get({id:e.id,controller:"agents"}).$promise}).then(function(b){ComponentsDropdowns.bindChatQueue(a.teams,_.map(b.rows,function(a){return{id:a.id,penalty:a.UserHasChatQueue.penalty}}),j)})["catch"](function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.queues.view",{url:"/view/:id",templateUrl:"app/channels/chat/queue/view/view.html",controller:"ChatQueueViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.channels.chat.queues.view.settings",{url:"/settings",templateUrl:"app/channels/chat/queue/view/view.settings.html"}).state("main.channels.chat.queues.view.agents",{url:"/agents",templateUrl:"app/channels/chat/queue/view/view.agents.html",cache:!1,serie:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.realtime",{url:"/realtime",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:33}}})}]),angular.module("xCallyShuttleApp").controller("ChatRealtimeViewAgentCtrl",["$scope","$log","$uibModal","$translate","socket","xAlert","Agent","Pause","Action","ChatQueue","usSpinnerService","$q","uiGridConstants","Auth","$timeout","User",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){function q(){return k.spin("grid-spinner"),g.get(w).$promise.then(function(b){a.gridOptions.totalItems=b.count,a.gridOptions.data=[],b.rows.forEach(function(a){s(a)})})["catch"](function(a){f.error(a)})["finally"](function(){k.stop("grid-spinner")})}function r(){e.socket.on("agent:save",function(b){b=b.newValues||b;var c=_.find(a.gridOptions.data,{agentId:b.id,isAgent:!0});c&&(c.online=_.has(b,"online")?b.online:c.online,c.lastLoginAt=_.has(b,"lastLoginAt")?b.lastLoginAt:c.lastLoginAt,c.pause=_.has(b,"chatPause")?b.chatPause:c.chatPause,c.pauseType=_.has(b,"pauseType")?b.pauseType:c.pauseType,c.lastPauseAt=_.has(b,"lastPauseAt")?b.lastPauseAt:c.lastPauseAt,c.ipaddr=_.has(b,"ipaddr")?b.ipaddr:c.ipaddr,c.port=_.has(b,"port")?b.port:c.port,c.fullcontact=_.has(b,"fullcontact")?b.fullcontact:c.fullcontact,c.useragent=_.has(b,"useragent")?b.useragent:c.useragent,c.lastms=_.has(b,"lastms")?b.lastms:c.lastms,c.internal=_.has(b,"internal")?b.internal:c.internal,c.fullname=b.hasOwnProperty("fullname")?b.fullname:c.fullname,_.map(a.gridOptions.data,function(a){a.isAgent||a.agentId!==b.id||(a.online=_.has(b,"online")?b.online:a.online)}))}),e.socket.on("agent:remove",function(b){_.remove(a.gridOptions.data,{agentId:b.id})}),e.socket.on("user_has_chat_queue:save",function(b){var c=_.includes(_.map(a.pChatQueues,"id"),b.ChatQueueId)||n.isAdmin();if(c){var d=_.find(a.gridOptions.data,{agentId:Number(b.UserId),isAgent:!0});if(d){var e=a.gridOptions.data.indexOf(d);a.gridOptions.data.splice(e+1,0,{isAgent:!1,agentId:Number(b.UserId),queue:b.queue,queueId:b.ChatQueueId,agent:b.membername,online:d.online})}}}),e.socket.on("user_has_chat_queue:remove",function(b){_.remove(a.gridOptions.data,{agentId:b.UserId,queueId:b.ChatQueueId});var c=_.filter(a.gridOptions.data,{agentId:b.UserId});c&&c.length<=1&&!n.isAdmin()&&_.remove(a.gridOptions.data,{agentId:b.UserId})})}function s(b){a.gridOptions.data.push({isAgent:!0,agentId:b.id,agent:b.name,online:b.online,lastLoginAt:b.lastLoginAt,lastPauseAt:b.lastPauseAt,pause:b.chatPause,pauseType:b.pauseType,ipaddr:b.ipaddr,port:b.port,fullcontact:b.fullcontact,useragent:b.useragent,lastms:b.lastms,internal:b.internal,$$treeLevel:0,fullname:b.fullname}),b.ChatQueues&&b.ChatQueues.forEach(function(c){a.gridOptions.data.push({isAgent:!1,agentId:b.id,queue:c.name,queueId:c.id,agent:b.name,online:b.online})})}function t(){return h.get().$promise.then(function(b){a.pauses=b.rows,e.syncUpdates("pause",a.pauses)})["catch"](function(a){f.error(a)})}function u(){return j.get().$promise.then(function(b){a.chatQueues=b.rows,e.syncUpdates("chat_queue",a.chatQueues)})["catch"](function(a){f.error(a)})}function v(){return p.query({id:a.user.id,controller:"allowed",controller2:"chat",controller3:"queues"}).$promise.then(function(b){a.pChatQueues=b})["catch"](function(a){f.error(a)})}a.chatQueues=[];var w={controller:"realtime",controller1:"chat",offset:0,limit:10};a.moment=moment,a.initAgents=function(){a.user=n.getCurrentUser(),a.gridOptions={enableGridMenu:!0,headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,showGridFooter:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,useExternalPagination:!0,useExternalSorting:!0,useExternalFiltering:!0,multiSelect:!0,showTreeExpandNoChildren:!0,columnDefs:[{name:"name",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.isAgent">{{row.entity.agent}} <{{row.entity.internal}}></div>'},{name:"fullname",displayName:"APPLICATION_FULLNAME",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.isAgent">{{row.entity.fullname}}</div>'},{name:"online",displayName:"APPLICATION_ONLINE",width:150,headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.online != null && row.entity.isAgent"><i class="fa" data-ng-class="{\'font-green\':row.entity.online, \'font-red\':!row.entity.online,\'fa-user\':row.entity.online,\'fa-user-times\':!row.entity.online}"></i> <i data-ng-if="row.entity.online" class="fa fa-sign-out font-red pointer-cursor" title="logout" data-ng-click="grid.appScope.agentLogout(row.entity.agent,row.entity.agentId)"></i> <span data-ng-if="row.entity.online && grid.appScope.showTimers" class="left-margin"><css-timer start-time="row.entity.lastLoginAt"></css-timer></span></div>',filter:{type:m.filter.SELECT,selectOptions:[{value:"true",label:"ONLINE"},{value:"false",label:"OFFLINE"}]}},{name:"chatPause",displayName:"APPLICATION_PAUSE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'</div><div data-ng-if="row.entity.pause != null && row.entity.online" class="ui-grid-vcenter"><i data-ng-if="row.entity.pause" data-ng-click="grid.appScope.pause(row.entity,\'unpause\')" class="fa fa-play font-green pointer-cursor left-margin" title="{{\'APPLICATION_RESUME\' | translate}}"></i><i class="fa fa-pause font-yellow pointer-cursor" data-ng-click="grid.appScope.pause(row.entity,\'pause\',\'DEFAULT PAUSE\')" title="{{\'APPLICATION_DEFAULT_PAUSE\' | translate}}"></i><select data-ng-if="grid.appScope.pauses.length" class="pause-select pointer-cursor" data-ng-model="grid.appScope.pauseType" data-ng-change="grid.appScope.pause(row.entity,\'pause\',grid.appScope.pauseType)"><option class="pointer-cursor" data-ng-repeat="pause in grid.appScope.pauses">{{pause.name}}</option></select> <span data-ng-if="row.entity.pause">({{row.entity.pauseType}})</span><span data-ng-if="row.entity.pause && grid.appScope.showTimers" class="left-margin"><css-timer start-time="row.entity.lastPauseAt"></css-timer></span></div>',filter:{type:m.filter.SELECT,selectOptions:[{value:"true",label:"PAUSED"},{value:"false",label:"NOT PAUSED"}]},enableSorting:!1,enableColumnMenu:!1},{name:"queue",displayName:"APPLICATION_QUEUE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"action",displayName:"",width:170,cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><button data-ng-if="row.entity.queueId" class="btn btn-xs red-sunglo" data-ng-click="grid.appScope.leaveQueue(row.entity.agentId,row.entity.queueId)"><i class="icon-ban"></i> {{\'APPLICATION_LEAVE\' | translate}}</button><button data-ng-if="row.entity.isAgent && row.treeNode.children.length < grid.appScope.chatQueues.length" class="btn btn-xs blue-hoki" data-ng-click="grid.appScope.joinQueue(row.entity.agentId)"><i class="icon-plus"></i> {{\'APPLICATION_JOIN_QUEUE\' | translate}}</button><div>',enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1}],data:[],gridMenuTitleFilter:function(a){var b=l.defer();return b.resolve(d.instant(a)),b.promise},onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){x(a.gridApi.core.getVisibleRows(a.gridApi.grid).length)}),a.gridApi.treeBase.on.rowExpanded(a,function(b){x(a.gridApi.core.getVisibleRows(a.gridApi.grid).length+b.treeNode.children.length)}),a.gridApi.treeBase.on.rowCollapsed(a,function(b){x(a.gridApi.core.getVisibleRows(a.gridApi.grid).length-b.treeNode.children.length)}),a.gridApi.core.on.sortChanged(a,function(a,b){0===b.length?w.order=null:w.order=b[0].name+" "+b[0].sort.direction.toUpperCase(),q()}),a.gridApi.pagination.on.paginationChanged(a,function(a,b){w.offset=(a-1)*b,w.limit=b,q()}),a.gridApi.core.on.filterChanged(a,function(){var a=this.grid;a.columns.forEach(function(a){a.filters[0].term?w[a.name]=a.filters[0].term:delete w[a.name]}),q()})}},q(),t(),u(),v(),o(function(){r()})};var x=function(a){var b=a?30*a+130:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",b+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*a+"px")};a.$on("$destroy",function(){e.unsyncUpdates("agent"),e.unsyncUpdates("user_has_chat_queue")}),a.pause=function(b,c,e){return e&&(a.pauseType=null),i.save({name:c,agent:b.agentId,data2:b.agent,type:e||"DEFAULT PAUSE",data4:e||"DEFAULT PAUSE",channel:"chat"}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})},a.joinQueue=function(e){var g=c.open({animation:!0,templateUrl:"app/channels/chat/realtime/view/agent/queue.modal.add.html",controller:"ChatRealtimeViewAgentQueueModalCtrl",resolve:{queues:function(){return _.reject(a.chatQueues,function(b){return!!_.find(a.gridOptions.data,{queue:b.name,isAgent:!1,agentId:e})})}}});g.result.then(function(b){return i.save({name:"QueueAdd",agent:e,queues:_.filter(a.chatQueues,function(a){return _.includes(b.queues,a.id)}),channel:"chat",data1:e,data3:b.queues.join(","),data4:"chat"}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})},function(){b.info("Modal dismissed at: "+new Date)})},a.leaveQueue=function(a,b){return i.save({name:"QueueRemove",agent:a,queueId:b,channel:"chat",data1:a,data3:b,data4:"chat"}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})},a.showInfo=function(a){c.open({animation:!0,templateUrl:"app/channels/chat/realtime/view/agent/agent.modal.info.html",controller:"ChatRealtimeViewAgentInfoModalCtrl",resolve:{agent:a}})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.realtime.view.agents",{url:"/agents",templateUrl:"app/channels/chat/realtime/view/agent/agent.html",controller:"ChatRealtimeViewAgentCtrl"})}]),angular.module("xCallyShuttleApp").controller("ChatRealtimeViewAgentInfoModalCtrl",["$scope","$uibModalInstance","$http","agent",function(a,b,c,d){a.agent=d,a.close=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("ChatRealtimeViewAgentQueueModalCtrl",["$scope","$uibModalInstance","$http","queues",function(a,b,c,d){a.queues=d,a.item={},a.save=function(){b.close(a.item)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("ChatRealtimeViewApplicationCtrl",["$scope","$log","$uibModal","$translate","socket","xAlert","ReportChatSession","usSpinnerService","$q","uiGridConstants","$timeout",function(a,b,c,d,e,f,g,h,i,j,k){function l(){return h.spin("spinner-grid"),g.get({controller:"waiting",controller2:"applications"}).$promise.then(function(b){a.gridOptions.data=b.rows})["catch"](function(a){f.error(a)})["finally"](function(){m(),h.stop("spinner-grid")})}function m(){e.socket.on("report_chat_session:save",function(b){var c=_.find(a.gridOptions.data,{id:b.id});c?(_.merge(c,b),b.leaveAt&&k(function(){_.remove(a.gridOptions.data,{id:b.id})},1e4)):b.leaveAt||a.gridOptions.data.push(b)}),e.socket.on("report_chat_session:remove",function(b){_.remove(a.gridOptions.data,{id:b.id})})}a.moment=moment,a.initApplications=function(){a.gridOptions={headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,columnDefs:[{name:"uniqueid",displayName:"APPLICATION_UNIQUEID",headerCellFilter:"translate"},{name:"websitename",displayName:"APPLICATION_WEBSITE",headerCellFilter:"translate"},{name:"application",displayName:"APPLICATION_APPLICATION",headerCellFilter:"translate"},{name:"status",displayName:"APPLICATION_STATUS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span data-ng-if="!row.entity.leaveAt">{{\'APPLICATION_QUEUESTATUS_WAITING\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.abandon">{{\'APPLICATION_QUEUESTATUS_ABANDON\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.complete">{{\'APPLICATION_QUEUESTATUS_COMPLETE\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.timeout">{{\'APPLICATION_TIMEOUT\' | translate}}</span> <span data-ng-if="!row.entity.leaveAt && grid.appScope.showTimers"><css-timer start-time="row.entity.updatedAt"></css-timer></span></div>',enableSorting:!1,enableColumnMenu:!1,enableFiltering:!1},{name:"membername",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.membername || ''}}</span></div>"},{name:"queuename",displayName:"APPLICATION_QUEUE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.queuename || ''}}</span></div>"}],data:[],gridMenuTitleFilter:function(a){var b=i.defer();return b.resolve(d.instant(a)),b.promise},onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){n(a.gridOptions.data.length)})}},l()};var n=function(a){var b=a?30*a+60:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",b+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*a+"px")};a.$on("$destroy",function(){e.unsyncUpdates("report_chat_session")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.realtime.view.applications",{url:"/applications",templateUrl:"app/channels/chat/realtime/view/application/application.html",controller:"ChatRealtimeViewApplicationCtrl"})}]),angular.module("xCallyShuttleApp").controller("ChatRealtimeViewCtrl",["$scope",function(a){a.agents=[{name:"Queues",link:"main.chat.realtime.view.agent.queues"},{name:"Timeline",link:"main.chat.realtime.view.agent.timeline"}],a.sessions=[{name:"Sessions",link:"main.chat.realtime.view.sessions"}],a.timerSwitch={isActive:!0,size:"mini",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"primary"},a.showTimers=!1}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.realtime.view",{url:"/view",templateUrl:"app/channels/chat/realtime/view/view.html",controller:"ChatRealtimeViewCtrl"})}]),angular.module("xCallyShuttleApp").factory("ReportChatSession",["$resource",function(a){return a("/api/report/chat/sessions/:id/:controller/:controller2",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.room.external",{url:"/external",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("ChatRoomExternalListCtrl",["$scope","$timeout","socket","Auth","ChatRoom","usSpinnerService","Tag","$uibModal","uibButtonConfig","uiGridConstants",function(a,b,c,d,e,f,g,h,i,j){function k(){return g.get().$promise.then(function(b){a.tags=_.map(b.rows,"name")})["catch"](function(a){console.error(a)})}a.openChat=function(b){return e.get({id:b.id}).$promise.then(function(b){var c=_.find(a.workspaces,{id:b.id,type:"chatRoom"});c?c.active=!0:a.workspaces.push({id:b.id,name:b.ChatVisitor.fullname,type:"chatRoom","class":"icon-bubble",active:!0})})["catch"](function(a){console.error(a)})},a.initView=function(){i.activeClass="green-haze",a.id=[],a.query={status:"OPEN",tags:[]},a.gridOptions={enableGridMenu:!1,enableFiltering:!0,enableHorizontalScrollbar:0,enableVerticalScrollbar:0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,flatEntityAccess:!0,showGridFooter:!0,fastWatch:!0,columnDefs:[{name:"tags",displayName:"",headerCellTemplate:'<i class="icon-tag" style="margin-top: 8px; margin-left: 8px;"></i>',cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div><i data-ng-class=\"row.entity.tags.length ? 'icon-tag' : ''\" title=\"{{row.entity.tags}}\"></i></div>",width:30,enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"id",displayName:"ID",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div><span>#{{row.entity.id}}</span></div>",width:75,enableSorting:!0,enableFiltering:!0,enableColumnMenu:!1},{name:"userpic",displayName:"",width:35,cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div> <ng-letter-avatar height="20" width="20" fontsize="12" data="{{row.entity.ChatVisitor.fullname}}" avatarcustombgcolor="#B0B0B0" charCount="2" avatarcustomborder="border:2px solid #EA4C61" shape="round"></ng-letter-avatar> </div>',enableColumnMenu:!1,enableSorting:!1,enableFiltering:!1},{name:"agent",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span style="padding-left: 5px;" class="pull-left">{{row.entity.Users[0].fullname}}</span></div>',enableSorting:!0,enableFiltering:!0,enableColumnMenu:!0},{name:"fullname",displayName:"APPLICATION_CUSTOMER_NAME",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span style="padding-left: 5px;" class="pull-left">{{row.entity.ChatVisitor.fullname}}</span></div>',enableSorting:!0,enableFiltering:!0,enableColumnMenu:!0},{name:"contact",displayName:"APPLICATION_CUSTOMER_EMAIL",headerCellFilter:"translate"},{name:"website",displayName:"APPLICATION_WEBSITE",headerCellFilter:"translate",cellClass:"text-center"},{name:"disposition",displayName:"APPLICATION_DISPOSITION",headerCellFilter:"translate"},{name:"createdAt",displayName:"APPLICATION_CREATED_AT",headerCellFilter:"translate",cellFilter:"date:'dd/MM/yyyy HH:mm'",width:120,enableFiltering:!1,sort:{direction:j.DESC}},{name:"action",displayName:"APPLICATION_ACTION",headerCellFilter:"translate",cellTemplate:'<div><a class="btn btn-xs green-meadow" href="#" data-ng-click="grid.appScope.openChat(row.entity)"><i class="icon-bubble"></i></a></div>',cellClass:"ui-grid-vcenter",width:75,enableFiltering:!1,enableSorting:!1,enableColumnMenu:!1}],data:[],onRegisterApi:function(b){a.gridApi=b,a.gridApi.selection&&(a.gridApi.selection.on.rowSelectionChanged(a,function(b){b.isSelected?a.id.push(a.gridApi.grid.options.primaryKey?b.entity[a.gridApi.grid.options.primaryKey]:b.entity.id):_.pull(a.id,a.gridApi.grid.options.primaryKey?b.entity[a.gridApi.grid.options.primaryKey]:b.entity.id)}),a.gridApi.selection.on.rowSelectionChangedBatch(a,function(b){b[0].isSelected?a.id=_.union(a.id,_.map(b,a.gridApi.grid.options.primaryKey?"entity."+a.gridApi.grid.options.primaryKey:"entity.id")):_.map(b,a.gridApi.grid.options.primaryKey?"entity."+a.gridApi.grid.options.primaryKey:"entity.id").forEach(function(b){_.pull(a.id,b)})}))}},a.getPage(),k()},a.tagItems=function(){h.open({animation:!0,templateUrl:"app/channels/chat/room/view.tags.modal.html",controller:"ChatRoomViewModalTagCtrl",resolve:{id:function(){return a.id}}}).result.then(function(){a.gridApi.selection.clearSelectedRows(),a.id=[]})},a.onChanged=function(){a.getPage()},a.$watch("query.status",function(){ -a.getPage()},!0),a.getPage=function(){return f.spin("spinner-grid"),e.get(_.merge({id:"externals"},a.query)).$promise.then(function(b){a.gridOptions.data=b.rows})["catch"](function(a){console.error(a)})["finally"](function(){f.stop("spinner-grid")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.room.external.list",{url:"/list",templateUrl:"app/channels/chat/room/external/list/list.html",controller:"ChatRoomExternalListCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.room.group",{url:"/group",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("ChatRoomGroupListCtrl",["$scope","$timeout","Auth","ChatRoom","usSpinnerService","Tag","uibButtonConfig","uiGridConstants","$uibModal",function(a,b,c,d,e,f,g,h,i){function j(){return f.get().$promise.then(function(b){a.tags=_.map(b.rows,"name")})["catch"](function(a){console.error(a)})}a.getFullnames=function(a){var b=_.without(_.map(a.Users,"fullname"),c.getCurrentUser().fullname);return a.ChatVisitor&&b.unshift(a.ChatVisitor.fullname),b.join(", ")},a.openChat=function(b){return d.get({id:b.id}).$promise.then(function(c){var d=_.find(a.workspaces,{id:c.id,type:"chatRoom"});d?d.active=!0:a.workspaces.push({id:c.id,data:b,name:a.getFullnames(c),type:"chatRoom","class":"icon-bubble",active:!0})})["catch"](function(a){console.error(a)})},a.initView=function(){g.activeClass="green-haze",a.id=[],a.query={status:"OPEN",tags:[]},a.currentUser=c.getCurrentUser(),a.gridOptions={enableGridMenu:!1,enableColumnResizing:!0,enableHorizontalScrollbar:0,enableVerticalScrollbar:0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,flatEntityAccess:!0,showGridFooter:!0,fastWatch:!0,columnDefs:[{name:"tags",displayName:"",headerCellTemplate:'<i class="icon-tag" style="margin-top: 8px; margin-left: 8px;"></i>',cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div><i data-ng-class=\"row.entity.tags.length ? 'icon-tag' : ''\" title=\"{{row.entity.tags}}\"></i></div>",width:30,enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"id",displayName:"ID",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div><span>#{{row.entity.id}}</span></div>",width:75,enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"userpic",displayName:"",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div> <ng-letter-avatar data-ng-if="row.entity.ChatVisitor" height="20" width="20" fontsize="12" data="{{row.entity.ChatVisitor.fullname}}" avatarcustombgcolor="#B0B0B0" charCount="2" avatarcustomborder="border:2px solid #EA4C61" shape="round"></ng-letter-avatar> <ng-letter-avatar data-ng-repeat="user in row.entity.Users | filter:{ id: \'!\' + grid.appScope.currentUser.id} track by user.id" style="margin-right: 3px;" height="20" width="20" fontsize="12" data="{{user.fullname}}" avatarcustombgcolor="#B0B0B0" charCount="2" avatarcustomborder="border:2px solid #3399CC" shape="round"></ng-letter-avatar> </div>',enableColumnMenu:!1,enableSorting:!1,enableFiltering:!1},{name:"Users",displayName:"APPLICATION_MEMBERS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{grid.appScope.getFullnames(row.entity)}}</div>",enableSorting:!0,enableFiltering:!0,enableColumnMenu:!0},{name:"contact",displayName:"APPLICATION_CUSTOMER_EMAIL",headerCellFilter:"translate"},{name:"website",displayName:"APPLICATION_WEBSITE",headerCellFilter:"translate",cellClass:"text-center"},{name:"disposition",displayName:"APPLICATION_DISPOSITION",headerCellFilter:"translate"},{name:"createdAt",displayName:"APPLICATION_CREATED_AT",headerCellFilter:"translate",cellFilter:"date:'dd/MM/yyyy HH:mm'",width:120,enableFiltering:!1,sort:{direction:h.DESC}},{name:"action",displayName:"APPLICATION_ACTION",headerCellFilter:"translate",cellTemplate:'<div><a class="btn btn-xs green-meadow" href="#" data-ng-click="grid.appScope.openChat(row.entity)"><i class="icon-bubble"></i></a></div>',cellClass:"ui-grid-vcenter",width:75,enableFiltering:!1,enableSorting:!1,enableColumnMenu:!1}],data:[]},a.getPage(),j()},a.tagItems=function(){i.open({animation:!0,templateUrl:"app/channels/chat/room/view.tags.modal.html",controller:"ChatRoomViewModalTagCtrl",resolve:{id:function(){return a.id}}}).result.then(function(){a.gridApi.selection.clearSelectedRows(),a.id=[]})},a.onChanged=function(){a.getPage()},a.$watch("query.status",function(){a.getPage()},!0),a.getPage=function(){return e.spin("spinner-grid"),d.get(_.merge({id:"groups"},a.query)).$promise.then(function(b){a.gridOptions.data=b.rows})["catch"](function(a){console.error(a)})["finally"](function(){e.stop("spinner-grid")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.room.group.list",{url:"/list",templateUrl:"app/channels/chat/room/group/list/list.html",controller:"ChatRoomGroupListCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.room.internal",{url:"/internal",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("ChatRoomInternalListCtrl",["$scope","$timeout","socket","Auth","ChatRoom","usSpinnerService",function(a,b,c,d,e,f){a.openChat=function(b){return e.users({users:[d.getCurrentUser().id,b.id]}).$promise.then(function(c){var d=_.find(a.workspaces,{id:c.id,type:"chatRoom"});d?d.active=!0:a.workspaces.push({id:c.id,name:b.fullname,type:"chatRoom","class":"icon-bubble",active:!0})})["catch"](function(a){console.error(a)})},a.initView=function(){a.gridOptions={enableGridMenu:!1,enableFiltering:!0,enableHorizontalScrollbar:0,enableVerticalScrollbar:0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,flatEntityAccess:!0,showGridFooter:!0,fastWatch:!0,columnDefs:[{name:"userpic",displayName:"",width:35,cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div> <ng-letter-avatar height="20" width="20" fontsize="12" data="{{row.entity.fullname}}" avatarcustombgcolor="#B0B0B0" charCount="2" avatarcustomborder="border:2px solid #3399CC" shape="round"></ng-letter-avatar> </div>',enableColumnMenu:!1,enableSorting:!1,enableFiltering:!1},{name:"fullname",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",enableSorting:!0,enableFiltering:!0,enableColumnMenu:!0},{name:"action",cellTemplate:'<div><a class="btn btn-xs green-meadow" href="#" data-ng-click="grid.appScope.openChat(row.entity)"><i class="icon-bubble"></i></a></div>',cellClass:"ui-grid-vcenter",width:75,enableFiltering:!1,enableSorting:!1,enableColumnMenu:!1}],data:[]},c.socket.on("user:save",function(b){if(b.online&&d.getCurrentUser().id!==b.id){var c=_.find(a.gridOptions.data,{id:b.id});c?_.merge(c,b):a.gridOptions.data.push(b)}else _.remove(a.gridOptions.data,{id:b.id})}),b(function(){c.socket.on("agent:save",function(b){if(b.online&&d.getCurrentUser().id!==b.id){var c=_.find(a.gridOptions.data,{id:b.id});c?_.merge(c,b):a.gridOptions.data.push(b)}else _.remove(a.gridOptions.data,{id:b.id})})}),e.get({id:"agents"}).$promise.then(function(b){a.gridOptions.data=b.rows})["catch"](function(a){console.error(a)})["finally"](function(){f.stop("spinner-grid")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.room.internal.list",{url:"/list",templateUrl:"app/channels/chat/room/internal/list/list.html",controller:"ChatRoomInternalListCtrl"})}]),angular.module("xCallyShuttleApp").controller("ChatRoomAddCtrl",["$scope","$uibModalInstance","Agent","items",function(a,b,c,d){a.items=d,a.agents=c.get(function(b){a.agents=b,a.items.forEach(function(b){_.remove(a.agents.rows,{id:b.id})})}),a.selected={items:[]},a.ok=function(){b.close(_.union(_.map(a.selected.items,"id"),_.map(a.items,"id")))},a.cancel=function(){b.dismiss()}}]),angular.module("xCallyShuttleApp").controller("ChatRoomCloseCtrl",["$scope","$uibModalInstance","closed","ChatWebsite","websiteId",function(a,b,c,d,e){a.modal={title:"APPLICATION_CONFIRM_CLOSE",text:"MESSAGE_ARE_YOU_SURE_YOU_WANT_TO_CLOSE_THE_CHAT"},a.initDisposition=function(){return d.get({websiteId:e,controller:"dispositions"}).$promise.then(function(b){a.dispositions=b.rows})["catch"](function(a){console.error(a)})},a.item={},a.closed=c,a.ok=function(){b.close(a.item)},a.cancel=function(){b.dismiss()}}]),angular.module("xCallyShuttleApp").directive("chatRoom",["$interval","$rootScope","$uibModal","$notification","$window","socket","Auth","ChatRoom","ngAudio","xAlert","Tag","CannedAnswer","List","$translate",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n){return{restrict:"E",scope:{workspace:"="},templateUrl:"app/channels/chat/room/room.directive.html",link:function(a){a.user=g.getCurrentUser(),a.ChatRoom=h,a.message={body:""},a.openContact=function(c){return a.chatRoom.ChatWebsite.List?m.save({listId:a.chatRoom.ChatWebsite.List.id,controller:"contacts"},{email:c}).$promise.then(function(a){var c=_.find(b.$root.workspaces,{contactID:a.id});c?c.active=!0:b.$root.workspaces.push({active:!0,"class":"icon-user",contactID:a.id,name:a.email,type:"contact"})})["catch"](function(a){console.error(a)}):void j.show(n.instant("MESSAGE_NO_LIST_CONFIGURED"),"info")},a.modelOptions={debounce:{"default":500,blur:250},getterSetter:!0},a.form={},a.panelLeft="col-md-4",a.panelRight="col-md-8",a.onSelect=function(){a.message.body=a.modelOptions.selectedAnswer,delete a.modelOptions.selectedAnswer},a.togglePanelLeft=function(){a.panelLeft?(a.panelLeft=null,a.panelRight="col-md-12"):(a.panelLeft="col-md-4",a.panelRight="col-md-8")},a.options={link:!0,linkTarget:"_blank",pdf:{embed:!0},image:{embed:!0},audio:{embed:!0},code:{highlight:!0,lineNumbers:!1},basicVideo:!0},a.getAnswers=function(a){return l.get({key:a}).$promise.then(function(a){return console.log(a),_.map(a.rows,"value")})},a.isMyRoom=function(b){return!!_.find(b,{id:a.user.id})},h.get({id:a.workspace.id}).$promise.then(function(c){a.chatRoom=c,a.form.tags=c.tags,a.chatRoom.ChatVisitor&&(a.chatRoom.ChatVisitors=[],a.chatRoom.ChatVisitors.push(a.chatRoom.ChatVisitor)),f.socket.on("chat_room:save",function(b){a.chatRoom.id===b.id&&_.merge(a.chatRoom,b)}),f.socket.on("user_has_chat_room:save",function(b){return b.UserId!=a.user.id&&b.ChatRoomId==a.chatRoom.id?h.get({id:"agents",controller:b.UserId}).$promise.then(function(b){var c=_.map(a.chatRoom.Users,"fullname");a.chatRoom.ChatVisitor&&c.unshift(a.chatRoom.ChatVisitor.fullname),a.chatRoom.Users.push(b),a.workspace.name=_.without(c,g.getCurrentUser().fullname).join(", ")})["catch"](function(a){console.error(a)}):void 0}),f.socket.on("chat_message:save",function(c){a.chatRoom.id==c.ChatRoomId&&(a.user.id!=c.UserId&&a.chatRoom.ChatMessages.push(c),c.UserId?c.UserId!==g.getCurrentUser().id&&!b.settings.layout.onFocus&&e.Notification&&_.includes(c.userids,g.getCurrentUser().id)&&d("CHAT CHANNEL",{icon:"assets/images/media/channels/chat64.png",body:"NEW Chat Message!",delay:5e3}):!b.settings.layout.onFocus&&e.Notification&&_.includes(c.userids,g.getCurrentUser().id)&&d("CHAT CHANNEL",{icon:"assets/images/media/channels/chat64.png",body:"NEW Chat Message!",delay:5e3}),a.workspace.active||(i.load("api/xchatty/assets?resource=notification/xc_blubb.mp3").play(),a.workspace.unread++))})})["catch"](function(a){console.error(a)}),k.get().$promise.then(function(b){a.tags=_.map(b.rows,"name")})["catch"](function(a){console.error(a)}),a.closeRoom=function(b){return c.open({animation:!0,templateUrl:"app/channels/chat/room/room.close.html",controller:"ChatRoomCloseCtrl",resolve:{closed:function(){return"CLOSED"===a.chatRoom.status},websiteId:function(){return a.chatRoom.ChatWebsiteId}}}).result.then(function(a){var c={id:b,status:"CLOSED",completeReason:"agent"};return a.disposition&&(c.disposition=a.disposition),h.update(c).$promise["catch"](function(a){j.error(a)})})},a.onChanged=function(b){return h.update({id:b},{tags:a.form.tags}).$promise["catch"](function(a){console.error(a)})},a.addAgent=function(b){c.open({animation:!0,templateUrl:"app/channels/chat/room/room.add.html",controller:"ChatRoomAddCtrl",resolve:{items:function(){return _.map(a.chatRoom.Users||[],function(a){return{id:a.id,fullname:a.fullname}})}}}).result.then(function(a){return h.update({id:b,controller:"users"},{users:a}).$promise["catch"](function(a){j.error(a)})})},a.sendMessage=function(){var b={body:angular.copy(a.message.body),createdAt:moment().format(),UserId:a.user.id,User:{fullname:a.user.fullname}};return a.message.body.trim().length?(a.chatRoom.ChatMessages.push(b),a.message.body="",h.save({id:a.chatRoom.id,controller:"messages"},{body:b.body}).$promise["catch"](function(a){console.error(a)})):void 0}}}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.room",{url:"/room",templateUrl:"app/channels/chat/room/room.html",data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:31}},resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/inbox.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("ChatRoomViewModalTagCtrl",["$scope","$uibModalInstance","$translate","$stateParams","Tag","ChatRoom","xAlert","id",function(a,b,c,d,e,f,g,h){a.initModal=function(){return a.tags=[],a.item={tags:[]},a.modal={dismissable:!0,title:"APPLICATION_MESSAGE_SEND_RETRY",text:"MESSAGE_MESSAGE_SEND_RETRY",buttons:[{"class":"btn-success",text:"APPLICATION_TAG",click:function(){var d={status:!0};return f.patch({id:h},{tags:a.item.tags}).$promise["catch"](function(){d.status=!1,g.show(c.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})["finally"](function(){b.close(d)})}},{"class":"default",text:"APPLICATION_CANCEL",click:function(a){b.dismiss(a)}}]},e.get().$promise.then(function(b){a.tags=_.map(b.rows,"name")})["catch"](function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").controller("ChatVisitorListCtrl",["$scope","ChatVisitor","gridOptions","$uibModal",function(a,b,c,d){a.initView=function(){var d={exporterCsvFilename:"chat_visitors.csv",columnDefs:[{name:"fullname",cellClass:"text-center"},{name:"email",cellClass:"text-center"},{name:"origin",cellClass:"text-center"},{name:"createdAt",displayName:"createdAt",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span am-time-ago="row.entity.createdAt"></span></div>'},{name:"action",width:100,buttons:[{"class":"blue-hoki",href:"/channels/chat/visitors/view/{{row.entity.id}}/profile",name:"profile"}]}]};a.gridOptions=c.gridOptions(b,d,a)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.visitors.list",{url:"/list",templateUrl:"app/channels/chat/visitor/list/list.html",controller:"ChatVisitorListCtrl"})}]),angular.module("xCallyShuttleApp").controller("ChatVisitorViewCtrl",["$scope","$stateParams","ChatVisitor",function(a,b,c){a.initView=function(){return c.get({id:b.id}).$promise.then(function(b){a.chatVisitor=b})["catch"](function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.visitors.view",{url:"/view/:id",templateUrl:"app/channels/chat/visitor/view/view.html",controller:"ChatVisitorViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.channels.chat.visitors.view.profile",{url:"/profile",templateUrl:"app/channels/chat/visitor/view/view.profile.html"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.visitors",{url:"/visitors",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:8}}})}]),angular.module("xCallyShuttleApp").factory("ChatApplication",["$resource",function(a){return a("/api/chat/applications/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("ChatWebsite",["$resource",function(a){return a("/api/chat/websites/:websiteId/:controller/:id",{id:"@websiteId"},{update:{method:"PUT"},updateFields:{method:"PUT",isArray:!0}})}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteListCtrl",["$scope","gridOptions","ChatWebsite",function(a,b,c){a.initView=function(){var d={exporterCsvFilename:"chat_websites.csv",columnDefs:[{name:"name"},{name:"description"},{name:"address"},{name:"action",width:75,buttons:[{"class":"blue-hoki",href:"/channels/chat/websites/view/{{row.entity.id}}/embedding/view",name:"embedding"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=b.gridOptions(c,d,a)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.websites.list",{url:"/list",templateUrl:"app/channels/chat/website/list/list.html",controller:"ChatWebsiteListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.websites.view.actions",{url:"/actions",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteViewActionListCtrl",["$scope","gridOptions","ChatWebsite","$http","$translate","$stateParams","socket","xAlert","Modal",function(a,b,c,d,e,f,g,h,i){a.initActons=function(){var d={draggable:!0,exporterCsvFilename:"chat_applications.csv",enableSorting:!1,enableFiltering:!1,columnDefs:[{name:"app",cellClass:"text-center"},{name:"name",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div><span>{{row.entity.ChatQueue ? row.entity.ChatQueue.name : row.entity.User.name}}</span></div>"},{name:"timeout",cellClass:"text-center"},{name:"interval",displayName:"APPLICATION_TIME_INTERVAL",cellClass:"text-center",cellTemplate:"<div><span>{{row.entity.Interval ? row.entity.Interval.name : row.entity.interval}}</span></div>"},{name:"action",width:125,buttons:[{"class":"blue-hoki",href:"/channels/chat/websites/view/{{row.entity.ChatWebsiteId}}/actions/view/{{row.entity.id}}",name:"profile"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.app, row.entity.id)"}]}]};a.gridOptions=b.gridOptions(c,d,a,{websiteId:f.websiteId,controller:"applications"})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.websites.view.actions.list",{url:"/list",templateUrl:"app/channels/chat/website/view/action/list/list.html",controller:"ChatWebsiteViewActionListCtrl"})}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteViewActionViewCtrl",["$scope","$http","$stateParams","$translate","$location","xAlert","WizardHandler","socket","application","interval","ChatWebsite","ChatQueue","Agent","Interval","Template","MailAccount","SmsAccount",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.initAction=function(){return a.$application=i.application,a.$stateParams=c,a.$interval=j.interval,a.forms={},a.apps=[{name:"Queue",value:"queue"},{name:"Agent",value:"agent"},{name:"SendMail",value:"sendMail"},{name:"SendSMS",value:"sendSms"}],k.get({websiteId:c.websiteId,controller:"applications",id:c.actionId}).$promise.then(function(b){if(a.application=b,a.application.alwaysTime=!1,a.application.IntervalId)a.application.intType="list";else switch(a.application.interval){case"*,*,*,*":a.application.intType="always";break;default:a.application.intType="custom"}if("always"===a.application.intType||"custom"===a.application.intType){var c=a.application.interval.split(",");"*"===c[0]?a.application.alwaysTime=!0:(a.application.t_from=moment(new Date),a.application.t_to=moment(new Date),a.application.t_from.hour(c[0].split("-")[0].split(":")[0]),a.application.t_from.minute(c[0].split("-")[0].split(":")[1]),a.application.t_to.hour(c[0].split("-")[1].split(":")[0]),a.application.t_to.minute(c[0].split("-")[1].split(":")[1])),"*"===c[1]?(a.application.wd_from="always",a.application.wd_to="always"):(a.application.wd_from=c[1].split("-")[0],a.application.wd_to=c[1].split("-")[1]),"*"===c[2]?(a.application.md_from="always",a.application.md_to="always"):(a.application.md_from=c[2].split("-")[0],a.application.md_to=c[2].split("-")[1]),"*"===c[3]?(a.application.m_from="always",a.application.m_to="always"):(a.application.m_from=c[3].split("-")[0],a.application.m_to=c[3].split("-")[1])}a.$watch("application.t_from",function(b){a.application.t_from_hm=moment(b).format("HH:mm")}),a.$watch("application.t_to",function(b){a.application.t_to_hm=moment(b).format("HH:mm")})})["catch"](function(a){f.error(a)})},a.getQueues=function(){return l.get().$promise.then(function(b){a.queues=b.rows})["catch"](function(a){f.error(a)})},a.getAgents=function(){return m.get().$promise.then(function(b){a.agents=b.rows})["catch"](function(a){f.error(a)})},a.getIntervals=function(){return n.get().$promise.then(function(b){a.intervals=b.rows})["catch"](function(a){f.error(a)})},a.getSmsAccounts=function(){return q.get().$promise.then(function(b){a.smsAccounts=b.rows})["catch"](function(a){console.error(a)})},a.getTemplates=function(){return o.get().$promise.then(function(b){a.templates=b.rows})["catch"](function(a){console.error(a)})},a.getMailAccounts=function(){return p.get({custom:!0}).$promise.then(function(b){a.mailAccounts=b.rows})["catch"](function(a){console.error(a)})},a.updateItem=function(){switch(a.application.intType){case"always":a.application.interval="*,*,*,*",a.application.IntervalId=null;break;case"list":var b=_.find(a.intervals,{id:a.application.IntervalId});a.application.interval=b?"":"*,*,*,*",a.application.IntervalId=b?a.application.IntervalId:null;break;case"custom":var g,h,i,j,l;g=a.application.t_from&&a.application.t_to&&!a.application.alwaysTime?moment(a.application.t_from).format("HH:mm")+"-"+moment(a.application.t_to).format("HH:mm"):"*",a.application.wd_from&&"always"!==a.application.wd_from?(h=a.application.wd_from,a.application.wd_to&&"always"!==a.application.wd_to&&(h+="-"+a.application.wd_to)):h="*",a.application.md_from&&"always"!==a.application.md_from?(i=a.application.md_from,a.application.md_to&&"always"!==a.application.md_to&&(i+="-"+a.application.md_to)):i="*",a.application.m_from&&"always"!==a.application.m_from?(j=a.application.m_from,a.application.m_to&&"always"!==a.application.m_to&&(j+="-"+a.application.m_to)):j="*",l=g+","+h+","+i+","+j,a.application.interval=l,a.application.IntervalId=null}return k.update({websiteId:c.websiteId,controller:"applications",id:c.actionId},a.application).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success"),e.path("/channels/chat/websites/view/"+c.websiteId+"/actions/list")})["catch"](function(a){f.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.websites.view.actions.view",{url:"/view/:actionId",templateUrl:"app/channels/chat/website/view/action/view/view.html",controller:"ChatWebsiteViewActionViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteViewActionWizardCtrl",["$scope","$http","Agent","Interval","ChatQueue","$stateParams","$translate","$location","xAlert","WizardHandler","socket","application","interval","ChatWebsite","Template","MailAccount","SmsAccount",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.initWizard=function(){a.apps=[{name:"Queue",value:"queue"},{name:"Agent",value:"agent"},{name:"SendMail",value:"sendMail"},{name:"SendSMS",value:"sendSms"}],a.$application=l.application,a.$stateParams=f,a.$interval=m.interval,a.forms={},a.application={app:"queue",intType:"always",alwaysTime:!0},a.$watch("application.t_from",function(b){a.application.t_from_hm=moment(b).format("HH:mm")}),a.$watch("application.t_to",function(b){a.application.t_to_hm=moment(b).format("HH:mm")})},a.getQueues=function(){return e.get().$promise.then(function(b){a.queues=b.rows})["catch"](function(a){console.error(a)})},a.getAgents=function(){return c.get().$promise.then(function(b){a.agents=b.rows})["catch"](function(a){i.error(a)})},a.getIntervals=function(){return d.get().$promise.then(function(b){a.intervals=b.rows})["catch"](function(a){i.error(a)})},a.getSmsAccounts=function(){return q.get().$promise.then(function(b){a.smsAccounts=b.rows})["catch"](function(a){console.error(a)})},a.getTemplates=function(){return o.get().$promise.then(function(b){a.templates=b.rows})["catch"](function(a){console.error(a)})},a.getMailAccounts=function(){return p.get().$promise.then(function(b){a.mailAccounts=b.rows})["catch"](function(a){console.error(a)})},a.createItem=function(){switch(a.application.intType){case"always":a.application.interval="*,*,*,*",a.application.IntervalId=null;break;case"list":var b=_.find(a.intervals,{id:a.application.IntervalId});a.application.interval=b?"":"*,*,*,*",a.application.IntervalId=b?a.application.IntervalId:null;break;case"custom":var c,d,e,j,k;c=a.application.t_from&&a.application.t_to&&!a.application.alwaysTime?moment(a.application.t_from).format("HH:mm")+"-"+moment(a.application.t_to).format("HH:mm"):"*",a.application.wd_from&&"always"!==a.application.wd_from?(d=a.application.wd_from,a.application.wd_to&&"always"!==a.application.wd_to&&(d+="-"+a.application.wd_to)):d="*",a.application.md_from&&"always"!==a.application.md_from?(e=a.application.md_from,a.application.md_to&&"always"!==a.application.md_to&&(e+="-"+a.application.md_to)):e="*",a.application.m_from&&"always"!==a.application.m_from?(j=a.application.m_from,a.application.m_to&&"always"!==a.application.m_to&&(j+="-"+a.application.m_to)):j="*",k=c+","+d+","+e+","+j,a.application.interval=k,a.application.IntervalId=null}return n.save({websiteId:f.websiteId,controller:"applications"},a.application).$promise.then(function(){i.show(g.instant("MESSAGE_WELL_DONE"),"success"),h.path("/channels/chat/websites/view/"+f.websiteId+"/actions/list")})["catch"](function(a){i.error(a)})},a.formValidation=function(a){return a},a.next=function(){j.wizard().next()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.websites.view.actions.wizard",{url:"/wizard",templateUrl:"app/channels/chat/website/view/action/wizard/wizard.html",controller:"ChatWebsiteViewActionWizardCtrl"})}]),angular.module("xCallyShuttleApp").factory("ChatDisposition",["$resource",function(a){return a("/api/chat/dispositions/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteViewModalDispositionAddCtrl",["$scope","$uibModalInstance","ChatWebsite","id","xAlert","$translate",function(a,b,c,d,e,f){a.ok=function(){return c.save({websiteId:d,controller:"dispositions"},{name:a.name}).$promise.then(function(a){b.close(a)})["catch"](function(a){e.show(f.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteDispositionViewCtrl",["$scope","$stateParams","$uibModal","$translate","ChatWebsite","xAlert",function(a,b,c,d,e,f){a.initView=function(){return e.get({websiteId:b.websiteId,controller:"dispositions"}).$promise.then(function(b){a.dispositions=b.rows})["catch"](function(a){console.error(a),f.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.updateDisposition=function(a,c){return e.update({websiteId:b.websiteId,controller:"dispositions",id:a},{name:c}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE")+"!","success")})["catch"](function(a){console.error(a),f.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.deleteDisposition=function(c){return console.log("delete"),e.remove({websiteId:b.websiteId,controller:"dispositions",id:c}).$promise.then(function(){_.remove(a.dispositions,{id:c})})["catch"](function(a){console.error(a),f.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.addDisposition=function(){return c.open({animation:!0,templateUrl:"app/channels/chat/website/view/disposition/modal/add.modal.html",controller:"ChatWebsiteViewModalDispositionAddCtrl",resolve:{id:function(){return b.websiteId}}}).result.then(function(b){b&&a.dispositions.push(b)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.websites.view.dispositions",{url:"/dispositions",controller:"ChatWebsiteDispositionViewCtrl",templateUrl:"app/channels/chat/website/view/disposition/view/view.html"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.websites.view.embedding",{url:"/embedding",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteViewEmbeddingViewCtrl",["$scope","$stateParams","$translate","clipboard","xAlert","ChatWebsite",function(a,b,c,d,e,f){a.initView=function(){return f.get({websiteId:b.websiteId,controller:"snippet"}).$promise.then(function(b){a.snippetCode=b.html})["catch"](function(a){e.error(a)})},a.copyToClipboard=function(){d.copyText(a.snippetCode),e.show(c.instant("MESSAGE_TEXT_COPIED_CLIPBOARD")+"!","success")}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.websites.view.embedding.view",{url:"/view",templateUrl:"app/channels/chat/website/view/embedding/view/view.html",controller:"ChatWebsiteViewEmbeddingViewCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.websites.view.form",{url:"/forms",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteViewFormViewCtrl",["$scope","$builder","$validator","$stateParams","$translate","ChatWebsite","xAlert",function(a,b,c,d,e,f,g){a.saveForm=function(a){var c=angular.copy(b.forms[a]);return c.length>3?g.show("You can insert at least 3 input elements","danger"):(_.forEach(c,function(a){delete a.id}),f.updateFields({websiteId:d.websiteId,controller:"fields",id:a},c).$promise.then(function(){g.show(e.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){g.error(a)}))},a.getChatWebsiteFields=function(a){return f.query({websiteId:d.websiteId,controller:"fields",id:a}).$promise.then(function(c){_.forEach(c,function(c){b.addFormObject(a,c)})})["catch"](function(a){g.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.websites.view.form.view",{url:"/view",templateUrl:"app/channels/chat/website/view/form/view/view.html",controller:"ChatWebsiteViewFormViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteHooksViewCtrl",["$scope","ChatWebsite","Pause","$http","$stateParams","$translate","$location","xAlert",function(a,b,c,d,e,f,g,h){a.account={},a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.CONST_TIMEOUT=3e4,a.initView=function(){a.types=[{value:"",name:"-- None --"},{name:"HTTP GET",value:"GET"},{name:"HTTP POST",value:"POST"}],c.get().$promise.then(function(b){a.pauses=b.rows})["catch"](function(a){h.error(a)}),b.get({id:e.websiteId}).$promise.then(function(b){console.log(b),a.account=b,a.account.actions.length<1&&a.account.actions.push({ -action:"pause",enabled:!1,type:null})})["catch"](function(a){h.error(a)})},a.resetActionData=function(a){a.type=null},a.updateItem=function(){return console.log(a.account),b.update({id:e.websiteId},a.account).$promise.then(function(){h.show(f.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){h.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.websites.view.hooks",{url:"/hooks",controller:"ChatWebsiteHooksViewCtrl",templateUrl:"app/channels/chat/website/view/hooks/view/view.html"})}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteViewProactiveListCtrl",["$scope","gridOptions","ChatWebsite","$http","$translate","$stateParams","$uibModal",function(a,b,c,d,e,f,g){a.initProactiveActions=function(){var d={exporterCsvFilename:"telephones.csv",columnDefs:[{name:"name"},{name:"type"},{name:"action",width:125,buttons:[{"class":"blue-hoki",onClick:"grid.appScope.createItem(row.entity)",name:"profile"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=b.gridOptions(c,d,a,{websiteId:f.websiteId,controller:"proactive"})},a.createItem=function(b){var c=g.open({animation:!0,templateUrl:"app/channels/chat/website/view/proactive/list/list.create.modal.html",controller:"ChatWebsiteProactiveListCreateCtrl",resolve:{item:b}});c.result.then(function(){a.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteProactiveListCreateCtrl",["$scope","$translate","$uibModalInstance","$stateParams","ChatWebsite","xAlert","item",function(a,b,c,d,e,f,g){a.form={},a.item=g||{},a.title=g?b.instant("APPLICATION_EDIT_PROACTIVE_ACTION"):b.instant("APPLICATION_NEW_PROACTIVE_ACTION"),a.possibleType=[{type:"mouseOver",title:"Mouse Over"},{type:"timeout",title:"Timeout"}],a.save=function(){return g?e.update({websiteId:d.websiteId,controller:"proactive",id:a.item.id},a.item).$promise.then(function(a){f.show(b.instant("MESSAGE_WELL_DONE"),"success"),c.close(a)})["catch"](function(a){f.error(a)}):e.save({websiteId:d.websiteId,controller:"proactive"},a.item).$promise.then(function(a){f.show(b.instant("MESSAGE_WELL_DONE"),"success"),c.close(a)})["catch"](function(a){f.error(a)})},a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.websites.view.proactive.list",{url:"/list",templateUrl:"app/channels/chat/website/view/proactive/list/list.html",controller:"ChatWebsiteViewProactiveListCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.websites.view.proactive",{url:"/proactive",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteSettingViewCtrl",["$scope","$stateParams","$translate","$location","$timeout","socket","xAlert","ChatWebsite","List",function(a,b,c,d,e,f,g,h,i){a.initView=function(){return i.get().$promise.then(function(b){a.lists=b.rows})["catch"](function(a){console.error(a)})},a.updateItemChatWebsite=function(){return h.update({id:b.websiteId},{ListId:a.chatWebsite.ListId}).$promise.then(function(){g.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){g.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.websites.view.settings",{url:"/settings",controller:"ChatWebsiteSettingViewCtrl",templateUrl:"app/channels/chat/website/view/setting/view/view.html"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.websites.view.snippet",{url:"/snippet",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteViewSnippetViewCtrl",["$scope","$http","$stateParams","$translate","Template","$rootScope","FileUploader","$cookieStore","xAlert","ChatWebsite","MailAccount",function(a,b,c,d,e,f,g,h,i,j,k){a.$translate=d,a.isServiceMailAccount=!1,a.statePreview={state:"online"},a.radioSwitch={isActive:!!f.license.custom,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.switchElement={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"};var l=a.uploader=new g({url:"api/chat/websites/"+c.websiteId+"/logo",queueLimit:1,withCredentials:!0,headers:{Authorization:"Bearer "+h.get("token")}});l.filters.push({name:"imageFilter",fn:function(a){var b="|"+a.type.slice(a.type.lastIndexOf("/")+1)+"|";return-1!=="|jpg|png|jpeg|".indexOf(b)}}),l.onSuccessItem=function(b,c){a.chatWebsite.logo=c.logo,i.show(d.instant("MESSAGE_WELL_DONE"),"success")},l.onErrorItem=function(){i.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")},l.onCompleteAll=function(){l.clearQueue()},a.enquirySwitch={onText:"On",offText:"Off",isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.fidelitySwitch={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.lang={HeaderCurrentlyChatting:"Live Chat",HeaderOffline:"Contact us",OperatorOfflineMessage:"It appears as if all operators are currently offline.",OfflineMessage:"<strong>We're not online.</strong><br/>It doesn't mean we're not there to help - leave your message below and we'll be in touch as soon as possible.",EnquiryMessagePlaceholder:"Your message...",EnquiryButtonText:"Leave message",EnquirySubmitSuccess:"Your message was sucessfully submitted - we will contact you as soon as possible.",OperatorComposing:"{fullname} is typing...",FirstMessageText:"",ExitChatButtonText:"Exit Chat",ExitChatQuestionText:"Are you sure?",ExitChatButtonConfirmText:"Yes",ExitChatButtonCancelText:"No",MessagePlaceholderText:"Your message...",MessageSendButtonText:"Send",ValidationEmailRequired:"Please enter your email address",ValidationEmailInvalid:"Please enter a valid email address",ValidationEmailMaxLength:"The email address may not exceed 85 characters",ValidationUsernameRequired:"Please enter your name",ValidationUsernameMaxLength:"The name may not exceed 45 characters",ValidationEnquiryRequired:"Please enter your enquiry",ValidationEnquiryMaxLength:"The enquiry may not exceed 1500 characters",ValidationMessageRequired:"Please enter your message",ValidationMessageMaxLength:"The message may not exceed 750 characters"},a.initView=function(){return j.get({id:c.websiteId}).$promise.then(function(b){return a.chatWebsite=b,e.get().$promise}).then(function(b){a.templates=b.rows})["catch"](function(a){i.error(a)})},a.getServiceMailAccount=function(){return k.get({accountId:"service"}).$promise.then(function(){a.isServiceMailAccount=!0})["catch"](function(){a.isServiceMailAccount=!1})},a.updateItem=function(){return j.update({id:a.chatWebsite.id},a.chatWebsite).$promise.then(function(){i.show(d.instant("MESSAGE_CHAT_WEBSITE_UPDATE_SUCCESS")+"!","success")})["catch"](function(a){i.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.websites.view.snippet.view",{url:"/view",templateUrl:"app/channels/chat/website/view/snippet/view/view.html",controller:"ChatWebsiteViewSnippetViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteViewCtrl",["$scope","xAlert","$http","$location","$stateParams","$translate","WizardHandler","ChatApplication","ChatWebsite",function(a,b,c,d,e,f,g,h,i){a.initView=function(){return i.get({id:e.websiteId}).$promise.then(function(b){a.chatWebsite=b})["catch"](function(a){b.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.websites.view",{url:"/view/:websiteId",templateUrl:"app/channels/chat/website/view/view.html",controller:"ChatWebsiteViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.websites",{url:"/websites",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:29}}})}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteWizardCtrl",["$scope","$http","$location","$translate","WizardHandler","xAlert","ChatWebsite",function(a,b,c,d,e,f,g){a.$translate=d,a.next=function(){e.wizard().next()},a.exitValidation=function(a){return a},a.initWizard=function(){a.forms={formSetting:void 0,formAppearance:void 0,formLabel:void 0,formFunctionality:void 0},a.item={},a.item.remote=c.protocol()+"://"+location.host,a.item.color="#000080",a.item.color_focus="#000080",a.item.color_button="#000080",a.item.header_shape="rounded",a.item.animation=!0,a.item.rating_enable=!0,a.item.header_online="We are here!",a.item.online_message="<strong>Questions?</strong><br />Insert your name and email address to start a live-chat with our support team.",a.item.name_title="Name",a.item.username_placeholder="Your name",a.item.email_title="Email Address",a.item.email_placeholder="Your e-mail address",a.item.start_chat_button="Chat",a.item.rating_message="Would you like rate this chat?",a.item.rating_send="Send",a.item.rating_skip="Skip",a.item.header_offline="Contact us",a.item.offline_message="<strong>We're not online.</strong><br />It doesn't mean we're not there to help - leave your message below and we'll be in touch as soon as possible.",a.item.message_title="Message",a.item.enquiry_message_placeholder="Your message...",a.item.enquiry_button="Leave message",a.item.agents_busy="In this moment all agents are busy. Try again!",a.item.download_transcript=!0},a.createItem=function(){return g.save(a.item).$promise.then(function(){f.show(d.instant("MESSAGE_CHAT_WEBSITE_CREATE_SUCCESS"),"success"),c.path("/channels/chat/websites/list")})["catch"](function(a){f.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.chat.websites.wizard",{url:"/wizard",templateUrl:"app/channels/chat/website/wizard/wizard.html",controller:"ChatWebsiteWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.fax.accounts",{url:"/accounts",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:38}}})}]),angular.module("xCallyShuttleApp").controller("FaxAccountListCtrl",["$scope","$uibModal","gridOptions","FaxAccount",function(a,b,c,d){a.initView=function(){var b={exporterCsvFilename:"chat_websites.csv",columnDefs:[{name:"name"},{name:"description"},{name:"localstationid"},{name:"TrunkName",displayName:"APPLICATION_TRUNK"},{name:"action",width:75,buttons:[{"class":"blue-hoki",href:"/channels/fax/accounts/view/{{row.entity.id}}/settings",name:"settings"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=c.gridOptions(d,b,a)},a.createItem=function(){var c=b.open({animation:!0,templateUrl:"app/channels/fax/account/list/list.create.modal.html",controller:"FaxAccountListCreateCtrl"});c.result.then(function(){a.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("FaxAccountListCreateCtrl",["$scope","$uibModalInstance","$translate","xAlert","FaxAccount","Trunk",function(a,b,c,d,e,f){a.initWizard=function(){return a.form={},a.item={},a.trunks=[],f.get().$promise.then(function(b){a.trunks=b.rows})["catch"](function(a){d.error(a)})},a.save=function(){return e.save(a.item).$promise.then(function(a){d.show(c.instant("MESSAGE_WELL_DONE"),"success"),b.close(a)})["catch"](function(a){d.error(a)})},a.cancel=function(){b.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.fax.accounts.list",{url:"/list",templateUrl:"app/channels/fax/account/list/list.html",controller:"FaxAccountListCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.fax.accounts.view.actions",{url:"/actions",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("FaxAccountViewActionListCtrl",["$scope","gridOptions","FaxAccount","$http","$translate","$stateParams",function(a,b,c,d,e,f){a.initActons=function(){var d={draggable:!0,exporterCsvFilename:"fax_applications.csv",enableSorting:!1,enableFiltering:!1,columnDefs:[{name:"app",cellClass:"text-center"},{name:"name",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span>{{row.entity.app == "queue" ? row.entity.FaxQueue.name : row.entity.User.name}}</span></div>'},{name:"timeout",cellClass:"text-center"},{name:"interval",displayName:"APPLICATION_TIME_INTERVAL",cellClass:"text-center",cellTemplate:"<div><span>{{row.entity.Interval ? row.entity.Interval.name : row.entity.interval}}</span></div>"},{name:"action",width:125,buttons:[{"class":"blue-hoki",href:"/channels/fax/accounts/view/{{row.entity.FaxAccountId}}/actions/view/{{row.entity.id}}",name:"profile"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.app, row.entity.id)"}]}]};a.gridOptions=b.gridOptions(c,d,a,{accountId:f.accountId,controller:"applications"})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.fax.accounts.view.actions.list",{url:"/list",templateUrl:"app/channels/fax/account/view/action/list/list.html",controller:"FaxAccountViewActionListCtrl"})}]),angular.module("xCallyShuttleApp").controller("FaxAccountViewActionViewCtrl",["$scope","$http","$stateParams","$translate","$location","xAlert","WizardHandler","socket","application","interval","Agent","Interval","FaxQueue","FaxAccount","Template","MailAccount","SmsAccount",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.initAction=function(){return a.$application=i.application,a.$stateParams=c,a.$interval=j.interval,a.forms={},a.apps=[{name:"Queue",value:"queue"},{name:"Agent",value:"agent"},{name:"SendMail",value:"sendMail"},{name:"SendSMS",value:"sendSms"}],n.get({accountId:c.accountId,controller:"applications",id:c.actionId}).$promise.then(function(b){if(a.application=b,a.application.alwaysTime=!1,a.application.IntervalId)a.application.intType="list";else switch(a.application.interval){case"*,*,*,*":a.application.intType="always";break;default:a.application.intType="custom"}if("always"===a.application.intType||"custom"===a.application.intType){var c=a.application.interval.split(",");"*"===c[0]?a.application.alwaysTime=!0:(a.application.t_from=moment(new Date),a.application.t_to=moment(new Date),a.application.t_from.hour(c[0].split("-")[0].split(":")[0]),a.application.t_from.minute(c[0].split("-")[0].split(":")[1]),a.application.t_to.hour(c[0].split("-")[1].split(":")[0]),a.application.t_to.minute(c[0].split("-")[1].split(":")[1])),"*"===c[1]?(a.application.wd_from="always",a.application.wd_to="always"):(a.application.wd_from=c[1].split("-")[0],a.application.wd_to=c[1].split("-")[1]),"*"===c[2]?(a.application.md_from="always",a.application.md_to="always"):(a.application.md_from=c[2].split("-")[0],a.application.md_to=c[2].split("-")[1]),"*"===c[3]?(a.application.m_from="always",a.application.m_to="always"):(a.application.m_from=c[3].split("-")[0],a.application.m_to=c[3].split("-")[1])}a.$watch("application.t_from",function(b){a.application.t_from_hm=moment(b).format("HH:mm")}),a.$watch("application.t_to",function(b){a.application.t_to_hm=moment(b).format("HH:mm")})})["catch"](function(a){f.error(a)})},a.getQueues=function(){return m.get().$promise.then(function(b){a.queues=b.rows})["catch"](function(a){console.error(a)})},a.getAgents=function(){return k.get().$promise.then(function(b){a.agents=b.rows})["catch"](function(a){console.error(a)})},a.getIntervals=function(){return l.get().$promise.then(function(b){a.intervals=b.rows})["catch"](function(a){console.error(a)})},a.getSmsAccounts=function(){return q.get().$promise.then(function(b){a.smsAccounts=b.rows})["catch"](function(a){console.error(a)})},a.getTemplates=function(){return o.get().$promise.then(function(b){a.templates=b.rows})["catch"](function(a){console.error(a)})},a.getMailAccounts=function(){return p.get().$promise.then(function(b){a.mailAccounts=b.rows})["catch"](function(a){console.error(a)})},a.updateItem=function(){switch(a.application.intType){case"always":a.application.interval="*,*,*,*",a.application.IntervalId=null;break;case"list":var b=_.find(a.intervals,{id:a.application.IntervalId});a.application.interval=b?"":"*,*,*,*",a.application.IntervalId=b?a.application.IntervalId:null;break;case"custom":var g,h,i,j,k;g=a.application.t_from&&a.application.t_to&&!a.application.alwaysTime?moment(a.application.t_from).format("HH:mm")+"-"+moment(a.application.t_to).format("HH:mm"):"*",a.application.wd_from&&"always"!==a.application.wd_from?(h=a.application.wd_from,a.application.wd_to&&"always"!==a.application.wd_to&&(h+="-"+a.application.wd_to)):h="*",a.application.md_from&&"always"!==a.application.md_from?(i=a.application.md_from,a.application.md_to&&"always"!==a.application.md_to&&(i+="-"+a.application.md_to)):i="*",a.application.m_from&&"always"!==a.application.m_from?(j=a.application.m_from,a.application.m_to&&"always"!==a.application.m_to&&(j+="-"+a.application.m_to)):j="*",k=g+","+h+","+i+","+j,a.application.interval=k,a.application.IntervalId=null}return n.update({accountId:c.accountId,controller:"applications",id:c.actionId},a.application).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success"),e.path("/channels/fax/accounts/view/"+c.accountId+"/actions/list")})["catch"](function(a){f.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.fax.accounts.view.actions.view",{url:"/view/:actionId",templateUrl:"app/channels/fax/account/view/action/view/view.html",controller:"FaxAccountViewActionViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("FaxAccountViewActionWizardCtrl",["$scope","$http","Agent","FaxQueue","Interval","$stateParams","$translate","$location","xAlert","WizardHandler","socket","application","interval","FaxAccount","Template","MailAccount","SmsAccount",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.initWizard=function(){a.apps=[{name:"Queue",value:"queue"},{name:"Agent",value:"agent"},{name:"SendMail",value:"sendMail"},{name:"SendSMS",value:"sendSms"}],a.$application=l.application,a.$stateParams=f,a.$interval=m.interval,a.forms={},a.application={alwaysTime:!0},a.$watch("application.t_from",function(b){a.application.t_from_hm=moment(b).format("HH:mm")}),a.$watch("application.t_to",function(b){a.application.t_to_hm=moment(b).format("HH:mm")})},a.getQueues=function(){return d.get().$promise.then(function(b){a.queues=b.rows})["catch"](function(a){console.error(a)})},a.getAgents=function(){return c.get().$promise.then(function(b){a.agents=b.rows})["catch"](function(a){console.error(a)})},a.getIntervals=function(){return e.get().$promise.then(function(b){a.intervals=b.rows})["catch"](function(a){console.error(a)})},a.getSmsAccounts=function(){return q.get().$promise.then(function(b){a.smsAccounts=b.rows})["catch"](function(a){console.error(a)})},a.getTemplates=function(){return o.get().$promise.then(function(b){a.templates=b.rows})["catch"](function(a){console.error(a)})},a.getMailAccounts=function(){return p.get().$promise.then(function(b){a.mailAccounts=b.rows})["catch"](function(a){console.error(a)})},a.createItem=function(){switch(a.application.intType){case"always":a.application.interval="*,*,*,*",a.application.IntervalId=null;break;case"list":var b=_.find(a.intervals,{id:a.application.IntervalId});a.application.interval=b?"":"*,*,*,*",a.application.IntervalId=b?a.application.IntervalId:null;break;case"custom":var c,d,e,j,k;c=a.application.t_from&&a.application.t_to&&!a.application.alwaysTime?moment(a.application.t_from).format("HH:mm")+"-"+moment(a.application.t_to).format("HH:mm"):"*",a.application.wd_from&&"always"!==a.application.wd_from?(d=a.application.wd_from,a.application.wd_to&&"always"!==a.application.wd_to&&(d+="-"+a.application.wd_to)):d="*",a.application.md_from&&"always"!==a.application.md_from?(e=a.application.md_from,a.application.md_to&&"always"!==a.application.md_to&&(e+="-"+a.application.md_to)):e="*",a.application.m_from&&"always"!==a.application.m_from?(j=a.application.m_from,a.application.m_to&&"always"!==a.application.m_to&&(j+="-"+a.application.m_to)):j="*",k=c+","+d+","+e+","+j,a.application.interval=k,a.application.IntervalId=null}return n.save({accountId:f.accountId,controller:"applications"},a.application).$promise.then(function(){i.show(g.instant("MESSAGE_WELL_DONE"),"success"),h.path("/channels/fax/accounts/view/"+f.accountId+"/actions/list")})["catch"](function(a){i.error(a)})},a.formValidation=function(a){return a},a.next=function(){j.wizard().next()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.fax.accounts.view.actions.wizard",{url:"/wizard",templateUrl:"app/channels/fax/account/view/action/wizard/wizard.html",controller:"FaxAccountViewActionWizardCtrl"})}]),angular.module("xCallyShuttleApp").factory("FaxDisposition",["$resource",function(a){return a("/api/fax/dispositions/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("FaxInboxViewModaDispositionAddCtrl",["$scope","$uibModalInstance","FaxAccount","id","xAlert",function(a,b,c,d,e){a.ok=function(){return c.save({accountId:d,controller:"dispositions"},{name:a.name}).$promise.then(function(a){b.close(a)})["catch"](function(a){e.error(a)})},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("FaxAccountDispositionViewCtrl",["$scope","$stateParams","$uibModal","$translate","FaxAccount","xAlert",function(a,b,c,d,e,f){a.initView=function(){return e.get({accountId:b.accountId,controller:"dispositions"}).$promise.then(function(b){a.dispositions=b.rows})["catch"](function(a){f.error(a)})},a.updateDisposition=function(a,c){return e.update({accountId:b.accountId,controller:"dispositions",id:a},{name:c}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE")+"!","success")})["catch"](function(a){f.error(a)})},a.deleteDisposition=function(c){return e.remove({accountId:b.accountId,controller:"dispositions",id:c}).$promise.then(function(){_.remove(a.dispositions,{id:c})})["catch"](function(a){f.error(a)})},a.addDisposition=function(){return c.open({animation:!0,templateUrl:"app/channels/fax/account/view/disposition/modal/add.modal.html",controller:"FaxInboxViewModaDispositionAddCtrl",resolve:{id:function(){return b.accountId}}}).result.then(function(b){b&&a.dispositions.push(b)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.fax.accounts.view.dispositions",{url:"/dispositions",controller:"FaxAccountDispositionViewCtrl",templateUrl:"app/channels/fax/account/view/disposition/view/view.html"})}]),angular.module("xCallyShuttleApp").controller("FaxAccountHooksViewCtrl",["$scope","FaxAccount","Pause","$http","$stateParams","clipboard","$translate","$location","xAlert","List",function(a,b,c,d,e,f,g,h,i,j){a.account={},a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.CONST_TIMEOUT=3e4,a.initView=function(){a.types=[{value:"",name:"-- None --"},{name:"HTTP GET",value:"GET"},{name:"HTTP POST",value:"POST"}],c.get().$promise.then(function(b){a.pauses=b.rows})["catch"](function(a){i.error(a)}),b.get({id:e.accountId}).$promise.then(function(b){a.account=b,a.account.actions.length<1&&a.account.actions.push({action:"pause",enabled:!1,type:null})})["catch"](function(a){i.error(a)})},a.resetActionData=function(a){a.type=null},a.updateItemFaxAccount=function(){return console.log(a.account),b.update({id:e.accountId},a.account).$promise.then(function(){i.show(g.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){i.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.fax.accounts.view.hooks",{url:"/hooks",controller:"FaxAccountHooksViewCtrl",templateUrl:"app/channels/fax/account/view/hooks/view/view.html"})}]),angular.module("xCallyShuttleApp").controller("FaxAccountSettingViewCtrl",["$scope","$stateParams","$translate","FaxAccount","List","Trunk","xAlert",function(a,b,c,d,e,f,g){a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.initView=function(){return a.rate=["2400","4800","7200","9600","12000","14400"],a.techs=["SIP","IAX","DADHI","KHOMP"],f.get().$promise.then(function(b){a.trunks=b.rows})["catch"](function(a){g.error(a)}),e.get().$promise.then(function(b){a.lists=b.rows})["catch"](function(a){g.error(a)}),d.get({id:b.accountId}).$promise.then(function(b){a.account=b})["catch"](function(a){g.error(a)})},a.updateItemFaxAccount=function(){return d.update({id:b.accountId},a.account).$promise.then(function(){g.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){g.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.fax.accounts.view.settings",{url:"/settings",controller:"FaxAccountSettingViewCtrl",templateUrl:"app/channels/fax/account/view/setting/view/view.html"})}]),angular.module("xCallyShuttleApp").controller("FaxAccountViewCtrl",["$scope","$http","$stateParams","$translate","$location","WizardHandler","socket","xAlert","Modal","FaxAccount",function(a,b,c,d,e,f,g,h,i,j){a.initView=function(){return j.get({id:c.accountId}).$promise.then(function(b){a.account=b})["catch"](function(a){h.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.fax.accounts.view",{url:"/view/:accountId",templateUrl:"app/channels/fax/account/view/view.html",controller:"FaxAccountViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]})}]}})}]),angular.module("xCallyShuttleApp").controller("FaxAccountWizardCtrl",["$scope","$http","$location","$translate","xAlert","WizardHandler","Trunk","FaxAccount",function(a,b,c,d,e,f,g,h){a.translate=d,a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.initWizard=function(){return a.$translate=d,a.forms={},a.item={},a.rate=["2400","4800","7200","9600","12000","14400"],a.techs=["SIP","IAX","DADHI","KHOMP"],a.item.headerinfo="xCALLY Motion Fax",a.item.ecm="yes",a.item.minrate="4800",a.item.maxrate="14400",a.item.modem="v17,v27,v29",a.item.gateway="no",a.item.faxdetect="no",a.item.t38timeout=5e3,a.item.tech="SIP",g.get().$promise.then(function(b){a.trunks=b.rows})["catch"](function(a){e.error(a)})},a.next=function(){f.wizard().next()},a.previous=function(){f.wizard().previous()},a.exitValidation=function(a){return a},a.createItem=function(){return h.save(a.item).$promise.then(function(a){e.show(d.instant("MESSAGE_WELL_DONE"),"success"),c.path("/channels/fax/accounts/list")})["catch"](function(a){e.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.fax.accounts.wizard",{url:"/wizard",templateUrl:"app/channels/fax/account/wizard/wizard.html",controller:"FaxAccountWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.fax",{url:"/fax",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:10}}})}]),angular.module("xCallyShuttleApp").factory("FaxAccount",["$resource",function(a){return a("/api/fax/accounts/:accountId/:controller/:id",{id:"@accountId"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("FaxAttachment",["$resource",function(a){return a("/api/fax/attachments/:id/:controller",{id:"@id"})}]),angular.module("xCallyShuttleApp").factory("FaxMessage",["$resource",function(a){return a("/api/fax/messages/:id/:controller",{id:"@id",controller:"@controller"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("FaxReport",["$resource",function(a){return a("/api/report/faxs/:id/:controller1/:controller2",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("FaxRoom",["$resource",function(a){return a("/api/fax/rooms/:id/:controller",{id:"@id",controller:"@controller"},{update:{method:"PUT"},patch:{method:"PATCH"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.fax.inbox",{url:"/inbox",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:40}}})}]),angular.module("xCallyShuttleApp").controller("FaxInboxInfoModalCtrl",["$scope","$translate","$uibModalInstance","$stateParams","xAlert","messageId","FaxMessage",function(a,b,c,d,e,f,g){a.data=null,a.initInfo=function(){g.get({id:f}).$promise.then(function(b){a.data={channel:b.channel,channelstate:b.channelstate,channelstatedesc:b.channelstatedesc,uniqueid:b.uniqueid,localstationid:b.localstationid,remotestationid:b.remotestationid,pagestransferred:b.pagestransferred,resolution:b.resolution,transferrate:b.transferrate,lastStatus:b.lastStatus,error:b.error,retry:b.retry}})["catch"](function(b){switch(b.status){case 404:a.data=null;break;default:e.error(b)}})},a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").directive("faxMessage",["$rootScope","$translate","$uibModal","FaxMessage","List","xAlert",function(a,b,c,d,e,f){return{restrict:"E",scope:{message:"=",listId:"="},templateUrl:"app/channels/fax/inbox/message/message.directive.html",link:function(g){g.openContact=function(c){return g.listId?e.save({listId:g.listId,controller:"contacts"},{fax:c}).$promise.then(function(b){var c=_.find(a.$root.workspaces,{contactID:b.id});c?c.active=!0:a.$root.workspaces.push({active:!0,"class":"icon-user",contactID:b.id,name:b.fax,type:"contact"})})["catch"](function(a){f.error(a)}):void f.show(b.instant("MESSAGE_NO_LIST_CONFIGURED"),"info")},g.info=function(a){c.open({animation:!0,templateUrl:"app/channels/fax/inbox/message/info.modal.html",controller:"FaxInboxInfoModalCtrl",resolve:{messageId:function(){return a.id}}})},g.retry=function(a){return d.update({id:a,status:"SENDING"}).$promise["catch"](function(a){console.error(a)})}}}}]),angular.module("xCallyShuttleApp").directive("faxNote",["$translate","Modal","Auth","FaxMessage","xAlert",function(a,b,c,d,e){return{restrict:"E",scope:{message:"="},templateUrl:"app/channels/fax/inbox/note/note.directive.html",link:function(f){f.Auth=c,f.deleteNote=b.confirm["delete"](function(){return d.remove({id:f.message.id}).$promise.then(function(){e.show(a.instant("MESSAGE_WELL_DONE")+"!","success")})["catch"](function(a){e.error(a)})})}}}]),angular.module("xCallyShuttleApp").controller("FaxInboxViewModalNoteCtrl",["$scope","$uibModalInstance","$translate","id","FaxRoom","xAlert",function(a,b,c,d,e,f){a.initModal=function(){a.item={}},a.ok=function(){return e.save({id:d,controller:"messages"},{text:a.item.text,status:"NOTE"}).$promise.then(function(){f.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})["finally"](function(){b.close()})},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").directive("faxRoom",["$cookieStore","$translate","$uibModal","$timeout","FaxAccount","FaxRoom","FaxMessage","FileUploader","xAlert","usSpinnerService","socket","Tag","Auth","FaxAttachment","List",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){ -return{restrict:"E",scope:{workspace:"="},templateUrl:"app/channels/fax/inbox/room/room.directive.html",link:function(m){function p(a){if(a){var b=_.words(a),c=_.map(b,function(a){return a?a[0]:""});return c.join("").toUpperCase()}return!1}m.$on("$destroy",function(){}),m.initForm=function(){m.forms={compose:{}}},m.getContacts=function(a){return m.listId?o.get({listId:m.listId,controller:"contacts",fax:a}).$promise.then(function(a){return a.rows})["catch"](function(a){console.error(a)}):[]},m.setList=function(a){m.listId=a};var q=[];m.expanded=!0,m.modelOptions={debounce:{"default":500,blur:250},getterSetter:!0},m.panelLeft=null,m.panelRight="col-md-12",m.form={from:"",to:m.workspace.data&&m.workspace.data.to?[m.workspace.data.to]:[],disabled:!1},k.socket.on("fax_message:remove",function(a){_.remove(m.faxRoom.FaxMessages,{id:a.id})}),k.socket.on("fax_message:save",function(a){return m.workspace.id&&a.FaxRoomId==m.workspace.id?(m.workspace.active||m.workspace.unread++,g.get({id:a.id}).$promise.then(function(a){m.faxRoom||(m.faxRoom={FaxMessages:[]});var b=_.findIndex(m.faxRoom.FaxMessages,{id:a.id});b>-1?_.merge(m.faxRoom.FaxMessages[b],a):m.faxRoom.FaxMessages.unshift(a),m.panelLeft="col-md-6",m.panelRight="col-md-6"})["catch"](function(a){console.error(a)})):void 0});var r=m.uploader=new h({url:"api/fax/attachments",autoUpload:!0,withCredentials:!0,queueLimit:1,headers:{Authorization:"Bearer "+a.get("token")}});return r.filters.push({name:"uploadFilter",fn:function(a){var b="|"+a.type.slice(a.type.lastIndexOf("/")+1)+"|";return-1!=="|pdf|tiff|tif".indexOf(b)}}),r.onWhenAddingFileFailed=function(a,c){switch(c.name){case"queueLimit":i.show(b.instant("MESSAGE_QUEUE_LIMIT_EXCEEDED"),"danger");break;case"uploadFilter":i.show(b.instant("MESSAGE_WRONG_FILE_FORMAT"),"danger");break;default:i.show(b.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")}},r.removeFromQueue=function(a){var c=this;return n["delete"]({id:a.basename}).$promise.then(function(){var b=c.getIndexOfItem(a),d=c.queue[b];d.isUploading&&d.cancel(),c.queue.splice(b,1),d._destroy(),c.progress=c._getTotalProgress(),q=_.reject(q,{basename:a.basename})})["catch"](function(){i.show(b.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},r.onErrorItem=function(){i.show(b.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")},r.onSuccessItem=function(a,b){var c={path:b.path,name:b.name,basename:b.basename,type:b.type};a=_.merge(a,c),q.push(c)},m.getMessageMailId=function(a){var b=a.UserId?"imgFaxUserId"+a.UserId:"imgFaxVisitorId";return b+=m.faxRoom.id.toString()+a.id.toString()},m.togglePanelLeft=function(){m.panelLeft?(m.panelLeft=null,m.panelRight="col-md-12"):(m.panelLeft="col-md-6",m.panelRight="col-md-6")},m.closeRoom=function(){return c.open({animation:!0,templateUrl:"app/channels/fax/inbox/status/status.modal.html",controller:"FaxInboxStatusModalCtrl",resolve:{status:function(){return m.faxRoom.status},accountId:function(){return m.faxRoom.FaxAccount.id}}}).result.then(function(a){return f.update({id:m.workspace.id},a).$promise["catch"](function(a){i.error(a)})})},m.loadAgents=function(){c.open({animation:!0,templateUrl:"app/channels/fax/inbox/view/view.agents.modal.html",controller:"FaxInboxViewModalAgentCtrl",resolve:{roomId:function(){return m.workspace.id}}})},m.cancel=function(){m.form.disabled=!1,m.form.from="",m.form.to=""},m.loadNote=function(){c.open({animation:!0,templateUrl:"app/channels/fax/inbox/note/note.modal.html",controller:"FaxInboxViewModalNoteCtrl",resolve:{id:function(){return m.workspace.id}}})},m.getMessageFaxId=function(a){var b=a.UserId?"imgFaxUserId"+a.UserId:"imgFaxVisitorId";return b+=m.faxRoom.id.toString()+a.id.toString()},m.getMessageRoomAvatar=function(a,b,c,e){d(function(){var d=b?"#imgFaxUserId"+b:"#imgFaxVisitorId";d+=m.faxRoom.id.toString()+a.toString(),angular.element(d).avatar({useGravatar:!1,initials:e?[]:p(c),fallbackImage:e?"api/users/avatar/"+e:"api/users/avatar/unknown_avatar"})})},m.onChanged=function(){return f.update({id:m.workspace.id},{tags:m.form.tags}).$promise["catch"](function(a){i.error(a)})},m.sendFax=function(){j.spin("spinner-grid");var a={from:m.form.from,to:m.form.to[0].fax||"",status:"SENDING",FaxAttachments:q,FaxRoomId:m.faxRoom?m.faxRoom.id:null},c=_.find(m.faxAccounts,{localstationid:m.form.from});return c?e.save({accountId:c.id,controller:"send"},a).$promise.then(function(a){return r.queue=[],q=[],i.show(b.instant("MESSAGE_WELL_DONE"),"success"),m.SmsRoom?m.SmsRoom:f.get({id:"messages",controller:a.id}).$promise}).then(function(a){a&&(m.workspace.id=a.id,m.workspace.name=a.contact,m.faxRoom=a,m.panelLeft="col-md-6",m.panelRight="col-md-6",m.expanded=!1)})["catch"](function(a){i.error(a)})["finally"](function(){j.stop("spinner-grid")}):(console.log("Can not find account"),void j.stop("spinner-grid"))},l.get().$promise.then(function(a){m.tags=_.map(a.rows,"name")})["catch"](function(a){console.error(a)}),e.get().$promise.then(function(a){m.faxAccounts=a.rows})["catch"](function(a){console.error(a)}),m.workspace.id?(m.panelLeft="col-md-6",m.panelRight="col-md-6",f.get({id:m.workspace.id}).$promise.then(function(a){m.faxRoom=a,m.form.from=a.FaxAccount.localstationid,m.form.tags=a.tags,m.workspace.name=a.contact||"No number",m.expanded=!1;var b=_.findLast(a.FaxMessages,{status:"RECEIVED"});return b&&(m.form.to=[{fax:b.from}]),k.socket.on("fax_room:save",function(a){a.id===m.workspace.id&&_.merge(m.faxRoom,a)}),a})["catch"](function(a){i.error(a)})["finally"](function(){j.stop("spinner-grid"),m.form.disabled=!1})):(m.panelLeft=null,m.panelRight="col-md-12",j.stop("spinner-grid"),void 0)}}}]),angular.module("xCallyShuttleApp").controller("FaxInboxStatusModalCtrl",["$scope","$uibModalInstance","FaxAccount","status","accountId",function(a,b,c,d,e){a.modal={title:"APPLICATION_CONFIRM_CLOSE",text:"MESSAGE_ARE_YOU_SURE_YOU_WANT_TO_CLOSE_THE_FAX"},a.initDisposition=function(){return a.item={disposition:null,status:"CLOSED"},c.get({accountId:e,controller:"dispositions"}).$promise.then(function(b){a.dispositions=b.rows})["catch"](function(a){console.error(a)})},a.ok=function(){b.close(a.item)},a.cancel=function(){b.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.fax.inbox.view.account",{url:"/account/:id",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:10}}})}]),angular.module("xCallyShuttleApp").controller("FaxInboxViewAccountListCtrl",["$scope","$rootScope","$uibModal","$translate","$stateParams","$state","Tag","usSpinnerService","socket","FaxAccount","FaxRoom","gridOptions","uiGridConstants","Auth","Modal","xAlert","localStorageService","uibButtonConfig",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){a.openRoom=function(b){var c=_.find(a.workspaces,{id:b,type:"faxRoom"});return c?c.active=!0:a.workspaces.push({id:b,type:"faxRoom","class":"fa fa-fax",active:!0}),b&&"agent"===n.getCurrentUser().role&&"PENDING"!==a.query.status&&"CLOSED"!==a.query.status?k.patch({id:b},{status:"OPEN",openReason:"agent"}).$promise["catch"](function(a){console.error(a)}):void 0},a.getPage=function(){h.spin("spinner-grid");var b={accountId:e.id,controller:"rooms"};return a.query&&_.merge(b,a.query),j.query(b).$promise.then(function(b){q.set("faxAccountId",e.id),a.gridOptions.data=b,i.socket.on("fax_room:save",function(b){if(b.FaxAccountId==e.id){var c=_.find(a.gridOptions.data,{id:b.id});c?c.status!==b.status?_.remove(a.gridOptions.data,{id:b.id}):_.merge(c,b):a.query.status===b.status&&a.gridOptions.data.push(b)}}),i.socket.on("fax_room:remove",function(b){_.remove(a.gridOptions.data,{id:b.id})})})["catch"](function(a){p.error(a)})["finally"](function(){h.stop("spinner-grid")})},a.initView=function(){r.activeClass="green-haze",a.id=[],a.isAdmin=n.isAdmin(),a.isAgent=n.isAgent(),a.uncheckable=!1,a.query={status:q.get("faxStatus")?q.get("faxStatus"):"NEW",tags:q.get("faxTags")?q.get("faxTags"):[]},a.$watch("query.status",function(b,c){b!==c&&(q.set("faxStatus",a.query.status),a.getPage())},!0),j.get().$promise.then(function(b){a.faxAccounts=b.rows})["catch"](function(a){console.error(a)}),g.get().$promise.then(function(b){a.tags=_.map(b.rows,"name")})["catch"](function(a){console.error(a)}),a.gridOptions={exporterCsvFilename:"fax_rooms.csv",enableRowHeaderSelection:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,enableFiltering:!0,enableSorting:!0,enableGridMenu:!1,flatEntityAccess:!0,showGridFooter:!0,fastWatch:!0,enableSelectAll:!0,enableHorizontalScrollbar:0,enableVerticalScrollbar:0,columnDefs:[{name:"lastEvent",displayName:"",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div> <span data-ng-class=\"{'icon-arrow-up font-green': row.entity.lastEvent === 'SENT', 'icon-arrow-up font-yellow': row.entity.lastEvent === 'SENDING', 'icon-arrow-down font-green': row.entity.lastEvent === 'RECEIVED', 'icon-close font-red': row.entity.lastEvent === 'FAILED', 'icon-question': !row.entity.lastEvent}\"> </span> </div>",width:30,enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"tags",displayName:"",headerCellTemplate:'<i class="icon-tag" style="margin-top: 8px; margin-left: 8px;"></i>',cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div><i data-ng-class=\"row.entity.tags.length ? 'icon-tag' : ''\" title=\"{{row.entity.tags}}\"></i></div>",width:30,enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"id",displayName:"Id",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div><span>#{{row.entity.id}}</span></div>",width:75,enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"contact",cellClass:"text-center"},{name:"disposition",displayName:"APPLICATION_DISPOSITION",headerCellFilter:"translate"},{name:"createdAt",cellFilter:"date:'dd/MM/yyyy HH:mm'",width:120,enableFiltering:!1},{name:"updatedAt",cellFilter:"date:'dd/MM/yyyy HH:mm'",width:120,enableFiltering:!1,sort:{direction:m.DESC}},{name:"action",cellTemplate:'<div> <a class="btn btn-icon-only font-green" data-ng-hide="row.entity.waiting" data-ng-click="grid.appScope.openRoom(row.entity.id, row.entity.contact)"><i class="fa fa-fax" aria-hidden="true"></i></a> <a class="btn btn-icon-only font-red" data-ng-show="grid.appScope.isAdmin" data-ng-click="grid.appScope.deleteItem(row.entity.id, row.entity.id)"><i class="fa fa-trash" aria-hidden="true"></i> </div>',enableSorting:!1,cellClass:"ui-grid-vcenter",width:70,enableFiltering:!1,enableColumnMenu:!1}],data:[],onRegisterApi:function(b){a.gridApi=b,a.gridApi.selection&&(a.gridApi.selection.on.rowSelectionChanged(a,function(b){b.isSelected?a.id.push(a.gridApi.grid.options.primaryKey?b.entity[a.gridApi.grid.options.primaryKey]:b.entity.id):_.pull(a.id,a.gridApi.grid.options.primaryKey?b.entity[a.gridApi.grid.options.primaryKey]:b.entity.id)}),a.gridApi.selection.on.rowSelectionChangedBatch(a,function(b){b[0].isSelected?a.id=_.union(a.id,_.map(b,a.gridApi.grid.options.primaryKey?"entity."+a.gridApi.grid.options.primaryKey:"entity.id")):_.map(b,a.gridApi.grid.options.primaryKey?"entity."+a.gridApi.grid.options.primaryKey:"entity.id").forEach(function(b){_.pull(a.id,b)})}))}},a.getPage(a.query)},a.onChanged=function(){q.set("faxTags",a.query.tags),a.getPage(a.query)},a.loadAgents=function(a){c.open({animation:!0,templateUrl:"app/channels/fax/inbox/view/view.agents.modal.html",controller:"FaxInboxViewModalAgentCtrl",resolve:{roomId:a}})},a.tagItems=function(){c.open({animation:!0,templateUrl:"app/channels/fax/inbox/view/view.tags.modal.html",controller:"FaxInboxViewModalTagCtrl",resolve:{id:function(){return a.id}}}).result.then(function(){a.gridApi.selection.clearSelectedRows(),a.id=[]})},a.deleteItem=o.confirm["delete"](function(b){var c={id:b};return k.remove(c).$promise.then(function(){a.getPage(),p.show(d.instant("MESSAGE_WELL_DONE")+"!","success"),a.gridApi.selection.clearSelectedRows(),a.id=[]})["catch"](function(a){p.error(a)})}),a.deleteItems=o.confirm["delete"](function(){var b={ids:a.id};return k["delete"](b).$promise.then(function(){a.getPage(),p.show(d.instant("MESSAGE_WELL_DONE")+"!","success"),a.gridApi.selection.clearSelectedRows(),a.id=[]})["catch"](function(a){p.error(a)})}),a.disposeItems=function(){return c.open({animation:!0,templateUrl:"app/channels/fax/inbox/status/status.modal.html",controller:"FaxInboxStatusModalCtrl",resolve:{status:function(){return null},accountId:function(){return e.id}}}).result.then(function(b){return k.patch({id:a.id},b).$promise.then(function(){a.gridApi.selection.clearSelectedRows(),a.id=[]})["catch"](function(a){p.error(a)})})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.fax.inbox.view.account.list",{url:"/list",templateUrl:"app/channels/fax/inbox/view/account/list/list.html",controller:"FaxInboxViewAccountListCtrl",data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:10}}})}]),angular.module("xCallyShuttleApp").controller("FaxInboxViewModalAgentCtrl",["$scope","$uibModalInstance","$translate","$stateParams","Agent","FaxRoom","xAlert","roomId",function(a,b,c,d,e,f,g,h){a.initModal=function(){a.agents=[],a.item={agents:[]},e.get().$promise.then(function(b){b.rows.forEach(function(b){a.agents.push(b)})})["catch"](function(a){console.error(a)}),f.query({id:h,controller:"agents"}).$promise.then(function(b){b.forEach(function(b){a.agents.push(b),a.item.agents.push(b.id)})})["catch"](function(a){console.error(a)}),a.modal={dismissable:!0,title:"APPLICATION_MESSAGE_SEND_RETRY",text:"MESSAGE_MESSAGE_SEND_RETRY",buttons:[{classes:"btn btn-success",text:"APPLICATION_RETRY",click:function(a){b.close(a)}},{classes:"btn default",text:"APPLICATION_CANCEL",click:function(a){b.dismiss(a)}}]}},a.ok=function(){return f.update({id:h,controller:"agents",agents:a.item.agents}).$promise.then(function(){g.show(c.instant("MESSAGE_WELL_DONE"),"success"),b.close()})["catch"](function(a){console.error(a)})},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("FaxInboxViewCtrl",["$scope","$timeout","$location","localStorageService","FaxAccount","xAlert",function(a,b,c,d,e,f){a.initView=function(){return e.get().$promise.then(function(b){var e=null;if(a.faxAccounts=b.rows,a.faxAccounts.length){var f,g=d.get("faxAccountId");f=g&&_.find(a.faxAccounts,{id:Number(g)})?g:a.faxAccounts[0].id,e="/channels/fax/inbox/view/account/"+f+"/list"}e&&c.path(e)})["catch"](function(a){f.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.fax.inbox.view",{url:"/view",templateUrl:"app/channels/fax/inbox/view/view.html",controller:"FaxInboxViewCtrl",reload:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/inbox.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("FaxInboxViewModalStatusCtrl",["$scope","$uibModalInstance","$translate","$stateParams","$location","FaxRoom","xAlert","id","status",function(a,b,c,d,e,f,g,h,i){a.initModal=function(){a.modal={dismissable:!0,title:"APPLICATION_STATUS",html:"<p>"+c.instant("MESSAGE_CHANGE_STATUS")+"<strong> "+i+"</strong>?</p>",status:i,buttons:[{classes:"btn btn-success",text:"APPLICATION_CONFIRM",click:function(a){return f.update({id:h},{status:i}).$promise.then(function(){g.show(c.instant("MESSAGE_STATUS_UPDATE_SUCCESS"),"success"),b.close(a)})["catch"](function(a){g.error(a)})}},{classes:"btn default",text:"APPLICATION_CANCEL",click:function(a){b.dismiss(a)}}]}}}]),angular.module("xCallyShuttleApp").controller("FaxInboxViewModalTagCtrl",["$scope","$uibModalInstance","$translate","$stateParams","Tag","FaxRoom","xAlert","id",function(a,b,c,d,e,f,g,h){console.log(h),a.initModal=function(){return a.tags=[],a.item={tags:[]},a.modal={dismissable:!0,title:"APPLICATION_MESSAGE_SEND_RETRY",text:"MESSAGE_MESSAGE_SEND_RETRY",buttons:[{"class":"btn-success",text:"APPLICATION_TAG",click:function(){var d={status:!0};return f.patch({id:h},{tags:a.item.tags}).$promise["catch"](function(){d.status=!1,g.show(c.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})["finally"](function(){b.close(d)})}},{"class":"default",text:"APPLICATION_CANCEL",click:function(a){b.dismiss(a)}}]},e.get().$promise.then(function(b){a.tags=_.map(b.rows,"name")})["catch"](function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").factory("FaxQueue",["$resource",function(a){return a("/api/fax/queues/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("FaxQueueListCtrl",["$scope","FaxQueue","gridOptions","Auth","$uibModal",function(a,b,c,d,e){a.initView=function(){a.Auth=d;var e={exporterCsvFilename:"fax_queues.csv",columnDefs:[{name:"name"},{name:"description"},{name:"strategy"},{name:"timeout"},{name:"action",width:100,buttons:[{"class":"blue-hoki",href:"/channels/fax/queues/view/{{row.entity.id}}/settings",name:"settings"},{"class":"green-meadow",href:"/channels/fax/queues/view/{{row.entity.id}}/agents",name:"agents",hide:"user"===d.getCurrentUser().role},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=c.gridOptions(b,e,a)},a.createItem=function(){var b=e.open({animation:!0,templateUrl:"app/channels/fax/queue/list/list.create.modal.html",controller:"FaxQueueListCreateCtrl",size:"lg"});b.result.then(function(b){console.log(b),a.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("FaxQueueListCreateCtrl",["$scope","$uibModalInstance","$translate","xAlert","FaxQueue","Team","strategies",function(a,b,c,d,e,f,g){a.form={},a.strategies=g,a.item={penalty:0,agents:[]},a.getTeams=function(){return f.get({controller:"associations"}).$promise.then(function(b){a.teams=b.rows}).then(function(){ComponentsDropdowns.bindQueue(a.teams,[],function(){return{select:function(b){a.item.agents=_.union(a.item.agents,b)},deselect:function(b){a.item.agents=_.difference(a.item.agents,b)}}})})["catch"](function(a){console.error(a)})},a.save=function(){return e.save(a.item).$promise.then(function(a){d.show(c.instant("MESSAGE_WELL_DONE"),"success"),b.close(a)})["catch"](function(a){d.error(a)})},a.cancel=function(){b.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.fax.queues.list",{url:"/list",templateUrl:"app/channels/fax/queue/list/list.html",controller:"FaxQueueListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.fax.queues",{url:"/queues",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:39}}})}]),angular.module("xCallyShuttleApp").controller("FaxQueueViewCtrl",["$scope","$http","$translate","$stateParams","xAlert","FaxQueue","Team","Auth","strategies",function(a,b,c,d,e,f,g,h,i){a.Auth=h,a.strategies=i;var j=function(){return{select:function(b){return f.save({id:a.queue.id,controller:"agents"},{agents:b,penalty:a.queue.penalty}).$promise.then(function(){a.getTeams()})["catch"](function(a){console.error(a)})},deselect:function(b){return f["delete"]({id:a.queue.id,controller:"agents",agents:b}).$promise.then(function(){a.getTeams()})["catch"](function(a){console.error(a)})}}};a.getQueue=function(){return f.get({id:d.id}).$promise.then(function(b){b.penalty=0,a.queue=b})["catch"](function(a){e.error(a)})},a.updateFaxQueue=function(){return f.update({id:d.id},{name:a.queue.name,description:a.queue.description,timeout:a.queue.timeout,strategy:a.queue.strategy}).$promise.then(function(){e.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){e.error(a)})},a.getTeams=function(){return g.get({controller:"associations"}).$promise.then(function(b){return a.teams=b.rows,f.get({id:d.id,controller:"agents"}).$promise}).then(function(b){ComponentsDropdowns.bindMailQueue(a.teams,_.map(b.rows,function(a){return{id:a.id,penalty:a.UserHasFaxQueue.penalty}}),j)})["catch"](function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.fax.queues.view",{url:"/view/:id",templateUrl:"app/channels/fax/queue/view/view.html",controller:"FaxQueueViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.channels.fax.queues.view.settings",{url:"/settings",templateUrl:"app/channels/fax/queue/view/view.settings.html"}).state("main.channels.fax.queues.view.agents",{url:"/agents",templateUrl:"app/channels/fax/queue/view/view.agents.html",cache:!1,serie:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.fax.realtime",{url:"/realtime",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:41}}})}]),angular.module("xCallyShuttleApp").controller("FaxRealtimeViewAgentCtrl",["$scope","$log","$uibModal","$translate","socket","xAlert","Agent","Pause","Action","FaxQueue","usSpinnerService","$q","uiGridConstants","Auth","$timeout","User",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){function q(){return k.spin("grid-spinner"),g.get(w).$promise.then(function(b){a.gridOptions.totalItems=b.count,a.gridOptions.data=[],b.rows.forEach(function(a){s(a)})})["catch"](function(a){f.error(a)})["finally"](function(){k.stop("grid-spinner")})}function r(){e.socket.on("agent:save",function(b){b=b.newValues||b;var c=_.find(a.gridOptions.data,{agentId:b.id,isAgent:!0});c&&(c.online=_.has(b,"online")?b.online:c.online,c.lastLoginAt=_.has(b,"lastLoginAt")?b.lastLoginAt:c.lastLoginAt,c.pause=_.has(b,"faxPause")?b.faxPause:c.faxPause,c.pauseType=_.has(b,"pauseType")?b.pauseType:c.pauseType,c.lastPauseAt=_.has(b,"lastPauseAt")?b.lastPauseAt:c.lastPauseAt,c.ipaddr=_.has(b,"ipaddr")?b.ipaddr:c.ipaddr,c.port=_.has(b,"port")?b.port:c.port,c.fullcontact=_.has(b,"fullcontact")?b.fullcontact:c.fullcontact,c.useragent=_.has(b,"useragent")?b.useragent:c.useragent,c.lastms=_.has(b,"lastms")?b.lastms:c.lastms,c.internal=_.has(b,"internal")?b.internal:c.internal,c.fullname=b.hasOwnProperty("fullname")?b.fullname:c.fullname,_.map(a.gridOptions.data,function(a){a.isAgent||a.agentId!==b.id||(a.online=_.has(b,"online")?b.online:a.online)}))}),e.socket.on("agent:remove",function(b){_.remove(a.gridOptions.data,{agentId:b.id})}),e.socket.on("user_has_fax_queue:save",function(b){var c=_.includes(_.map(a.pFaxQueues,"id"),b.FaxQueueId)||n.isAdmin();if(c){var d=_.find(a.gridOptions.data,{agentId:Number(b.UserId),isAgent:!0});if(d){var e=a.gridOptions.data.indexOf(d);a.gridOptions.data.splice(e+1,0,{isAgent:!1,agentId:Number(b.UserId),queue:b.queue,queueId:b.FaxQueueId,agent:b.membername,online:d.online})}}}),e.socket.on("user_has_fax_queue:remove",function(b){_.remove(a.gridOptions.data,{agentId:b.UserId,queueId:b.FaxQueueId});var c=_.filter(a.gridOptions.data,{agentId:b.UserId});c&&c.length<=1&&!n.isAdmin()&&_.remove(a.gridOptions.data,{agentId:b.UserId})})}function s(b){a.gridOptions.data.push({isAgent:!0,agentId:b.id,agent:b.name,online:b.online,lastLoginAt:b.lastLoginAt,lastPauseAt:b.lastPauseAt,pause:b.faxPause,pauseType:b.pauseType,ipaddr:b.ipaddr,port:b.port,fullcontact:b.fullcontact,useragent:b.useragent,lastms:b.lastms,internal:b.internal,$$treeLevel:0,fullname:b.fullname}),b.FaxQueues&&b.FaxQueues.forEach(function(c){a.gridOptions.data.push({isAgent:!1,agentId:b.id,queue:c.name,queueId:c.id,agent:b.name,online:b.online})})}function t(){return h.get().$promise.then(function(b){a.pauses=b.rows,e.syncUpdates("pause",a.pauses)})["catch"](function(a){f.error(a)})}function u(){return j.get().$promise.then(function(b){a.faxQueues=b.rows,e.syncUpdates("fax_queue",a.faxQueues)})["catch"](function(a){f.error(a)})}function v(){return p.query({id:a.user.id,controller:"allowed",controller2:"fax",controller3:"queues"}).$promise.then(function(b){a.pFaxQueues=b})["catch"](function(a){f.error(a)})}a.faxQueues=[];var w={controller:"realtime",controller1:"fax",offset:0,limit:10};a.moment=moment,a.initAgents=function(){a.user=n.getCurrentUser(),a.gridOptions={enableGridMenu:!0,headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,showGridFooter:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,useExternalPagination:!0,useExternalSorting:!0,useExternalFiltering:!0,multiSelect:!0,showTreeExpandNoChildren:!0,columnDefs:[{name:"name",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.isAgent">{{row.entity.agent}} <{{row.entity.internal}}></div>'},{name:"fullname",displayName:"APPLICATION_FULLNAME",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.isAgent">{{row.entity.fullname}}</div>'},{name:"online",displayName:"APPLICATION_ONLINE",width:150,headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.online != null && row.entity.isAgent"><i class="fa" data-ng-class="{\'font-green\':row.entity.online, \'font-red\':!row.entity.online,\'fa-user\':row.entity.online,\'fa-user-times\':!row.entity.online}"></i> <i data-ng-if="row.entity.online" class="fa fa-sign-out font-red pointer-cursor" title="logout" data-ng-click="grid.appScope.agentLogout(row.entity.agent,row.entity.agentId)"></i> <span data-ng-if="row.entity.online && grid.appScope.showTimers" class="left-margin"><css-timer start-time="row.entity.lastLoginAt"></css-timer></span></div>',filter:{type:m.filter.SELECT,selectOptions:[{value:"true",label:"ONLINE"},{value:"false",label:"OFFLINE"}]}},{name:"faxPause",displayName:"APPLICATION_PAUSE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.pause != null && row.entity.online" class="ui-grid-vcenter"><i data-ng-if="row.entity.pause" data-ng-click="grid.appScope.pause(row.entity,\'unpause\')" class="fa fa-play font-green pointer-cursor left-margin" title="{{\'APPLICATION_RESUME\' | translate}}"></i><i class="fa fa-pause font-yellow pointer-cursor" data-ng-click="grid.appScope.pause(row.entity,\'pause\',\'DEFAULT PAUSE\')" title="{{\'APPLICATION_DEFAULT_PAUSE\' | translate}}"></i><select data-ng-if="grid.appScope.pauses.length" class="pause-select pointer-cursor" data-ng-model="grid.appScope.pauseType" data-ng-change="grid.appScope.pause(row.entity,\'pause\',grid.appScope.pauseType)"><option class="pointer-cursor" data-ng-repeat="pause in grid.appScope.pauses">{{pause.name}}</option></select> <span data-ng-if="row.entity.pause">({{row.entity.pauseType}})</span><span data-ng-if="row.entity.pause && grid.appScope.showTimers" class="left-margin"><css-timer start-time="row.entity.lastPauseAt"></css-timer></span></div>',filter:{type:m.filter.SELECT,selectOptions:[{value:"true",label:"PAUSED"},{value:"false",label:"NOT PAUSED"}]},enableSorting:!1,enableColumnMenu:!1},{name:"queue",displayName:"APPLICATION_QUEUE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"action",displayName:"",width:170,cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><button data-ng-if="row.entity.queueId" class="btn btn-xs red-sunglo" data-ng-click="grid.appScope.leaveQueue(row.entity.agentId,row.entity.queueId)"><i class="icon-ban"></i> {{\'APPLICATION_LEAVE\' | translate}}</button><button data-ng-if="row.entity.isAgent && row.treeNode.children.length < grid.appScope.faxQueues.length" class="btn btn-xs blue-hoki" data-ng-click="grid.appScope.joinQueue(row.entity.agentId)"><i class="icon-plus"></i> {{\'APPLICATION_JOIN_QUEUE\' | translate}}</button><div>',enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1}],data:[],gridMenuTitleFilter:function(a){var b=l.defer();return b.resolve(d.instant(a)),b.promise},onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){x(a.gridApi.core.getVisibleRows(a.gridApi.grid).length)}),a.gridApi.treeBase.on.rowExpanded(a,function(b){x(a.gridApi.core.getVisibleRows(a.gridApi.grid).length+b.treeNode.children.length)}),a.gridApi.treeBase.on.rowCollapsed(a,function(b){x(a.gridApi.core.getVisibleRows(a.gridApi.grid).length-b.treeNode.children.length)}),a.gridApi.core.on.sortChanged(a,function(a,b){0===b.length?w.order=null:w.order=b[0].name+" "+b[0].sort.direction.toUpperCase(),q()}),a.gridApi.pagination.on.paginationChanged(a,function(a,b){w.offset=(a-1)*b,w.limit=b,q()}),a.gridApi.core.on.filterChanged(a,function(){var a=this.grid;a.columns.forEach(function(a){a.filters[0].term?w[a.name]=a.filters[0].term:delete w[a.name]}),q()})}},q(),t(),u(),v(),o(function(){r()})};var x=function(a){var b=a?30*a+130:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",b+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*a+"px")};a.$on("$destroy",function(){e.unsyncUpdates("agent"),e.unsyncUpdates("user_has_fax_queue")}),a.pause=function(b,c,e){return e&&(a.pauseType=null),i.save({name:c,agent:b.agentId,data2:b.agent,type:e||"DEFAULT PAUSE",data4:e||"DEFAULT PAUSE",channel:"fax"}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})},a.joinQueue=function(e){var g=c.open({animation:!0,templateUrl:"app/channels/fax/realtime/view/agent/queue.modal.add.html",controller:"FaxRealtimeViewAgentQueueModalCtrl",resolve:{queues:function(){return _.reject(a.faxQueues,function(b){return!!_.find(a.gridOptions.data,{queue:b.name,isAgent:!1,agentId:e})})}}});g.result.then(function(b){return i.save({name:"QueueAdd",agent:e,queues:_.filter(a.faxQueues,function(a){return _.includes(b.queues,a.id)}),channel:"fax",data1:e,data3:b.queues.join(","),data4:"fax"}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})},function(){b.info("Modal dismissed at: "+new Date)})},a.leaveQueue=function(a,b){return i.save({name:"QueueRemove",agent:a,queueId:b,channel:"fax",data1:a,data3:b,data4:"fax"}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})},a.showInfo=function(a){c.open({animation:!0,templateUrl:"app/channels/fax/realtime/view/agent/agent.modal.info.html",controller:"FaxRealtimeViewAgentInfoModalCtrl",resolve:{agent:a}})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.fax.realtime.view.agents",{url:"/agents",templateUrl:"app/channels/fax/realtime/view/agent/agent.html",controller:"FaxRealtimeViewAgentCtrl"})}]),angular.module("xCallyShuttleApp").controller("FaxRealtimeViewAgentInfoModalCtrl",["$scope","$uibModalInstance","$http","agent",function(a,b,c,d){a.agent=d,a.close=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("FaxRealtimeViewAgentQueueModalCtrl",["$scope","$uibModalInstance","$http","queues",function(a,b,c,d){a.queues=d,a.item={},a.save=function(){b.close(a.item)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("FaxRealtimeViewApplicationCtrl",["$scope","$log","$uibModal","$translate","socket","xAlert","ReportFaxSession","usSpinnerService","$q","uiGridConstants","$timeout",function(a,b,c,d,e,f,g,h,i,j,k){ -function l(){return h.spin("spinner-grid"),g.get({controller:"waiting",controller2:"applications"}).$promise.then(function(b){a.gridOptions.data=b.rows})["catch"](function(a){f.error(a)})["finally"](function(){m(),h.stop("spinner-grid")})}function m(){e.socket.on("report_fax_session:save",function(b){var c=_.find(a.gridOptions.data,{id:b.id});c?(_.merge(c,b),b.leaveAt&&k(function(){_.remove(a.gridOptions.data,{id:b.id})},1e4)):b.leaveAt||a.gridOptions.data.push(b)}),e.socket.on("report_fax_session:remove",function(b){_.remove(a.gridOptions.data,{id:b.id})})}a.moment=moment,a.initApplications=function(){a.gridOptions={headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,columnDefs:[{name:"uniqueid",displayName:"APPLICATION_UNIQUEID",headerCellFilter:"translate"},{name:"accountname",displayName:"APPLICATION_ACCOUNT",headerCellFilter:"translate"},{name:"application",displayName:"APPLICATION_APPLICATION",headerCellFilter:"translate"},{name:"status",displayName:"APPLICATION_STATUS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span data-ng-if="!row.entity.leaveAt">{{\'APPLICATION_QUEUESTATUS_WAITING\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.complete">{{\'APPLICATION_QUEUESTATUS_COMPLETE\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.timeout">{{\'APPLICATION_TIMEOUT\' | translate}}</span> <span data-ng-if="!row.entity.leaveAt && grid.appScope.showTimers"><css-timer start-time="row.entity.updatedAt"></css-timer></span></div>',enableSorting:!1,enableColumnMenu:!1,enableFiltering:!1},{name:"membername",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.membername || ''}}</span></div>"},{name:"queuename",displayName:"APPLICATION_QUEUE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.queuename || ''}}</span></div>"}],data:[],gridMenuTitleFilter:function(a){var b=i.defer();return b.resolve(d.instant(a)),b.promise},onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){n(a.gridOptions.data.length)})}},l()};var n=function(a){var b=a?30*a+60:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",b+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*a+"px")};a.$on("$destroy",function(){e.unsyncUpdates("report_fax_session")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.fax.realtime.view.applications",{url:"/applications",templateUrl:"app/channels/fax/realtime/view/application/application.html",controller:"FaxRealtimeViewApplicationCtrl"})}]),angular.module("xCallyShuttleApp").controller("FaxRealtimeViewCtrl",["$scope",function(a){a.agents=[{name:"Queues",link:"main.channels.fax.realtime.view.agents.queues"},{name:"Timeline",link:"main.channels.fax.realtime.view.agents.timeline"}],a.sessions=[{name:"Sessions",link:"main.channels.fax.realtime.view.sessions"}],a.tree={queues:[{name:"Queues",link:"main.channels.fax.realtime.view.agents.queues"},{name:"Timeline",link:"main.channels.fax.realtime.view.agents.timeline"}],sessions:[{name:"Sessions",link:"main.channels.fax.realtime.view.sessions"}]},a.timerSwitch={isActive:!0,size:"mini",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"primary"},a.showTimers=!1}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.fax.realtime.view",{url:"/view",templateUrl:"app/channels/fax/realtime/view/view.html",controller:"FaxRealtimeViewCtrl"})}]),angular.module("xCallyShuttleApp").factory("ReportFaxSession",["$resource",function(a){return a("/api/report/fax/sessions/:id/:controller/:controller2",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("MailAccount",["$resource",function(a){return a("/api/mail/accounts/:accountId/:controller/:id",{id:"@accountId"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.mail.accounts",{url:"/accounts",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:34}}})}]),angular.module("xCallyShuttleApp").controller("MailAccountListCtrl",["$scope","$stateParams","gridOptions","MailAccount","socket",function(a,b,c,d,e){a.$on("$destroy",function(){e.unsyncUpdates("mail_server_in")}),a.initView=function(){e.socket.on("mail_server_in:save",function(b){var c=_.find(a.gridOptions.data,{id:b.MailAccountId});c&&(c.MailServerIn.state=b.state,c.MailServerIn.source=JSON.parse(b.source))});var f={exporterCsvFilename:"mail_accounts.csv",columnDefs:[{name:"name"},{name:"description"},{name:"address"},{name:"MailServerIn.state",width:100,cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div> <span data-ng-if="row.entity.MailServerIn" class="label label-sm" data-ng-class="row.entity.MailServerIn.state === \'CONNECTED\' ? \'label-success\' : \'label-danger\'">{{row.entity.MailServerIn.state}}</span> <span data-ng-if="!row.entity.MailServerIn" class="label label-sm label-info" >{{\'APPLICATION_DISABLED\' | translate | uppercase}}</span> </div>',displayName:"IMAP",enableSorting:!1,enableFiltering:!1},{name:"MailServerOut.state",width:110,cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div><span class=\"label label-sm\" data-ng-class=\"row.entity.MailServerOut.state === 'CONNECTED' ? 'label-success' : 'label-danger'\">{{row.entity.MailServerOut.state}}</span></div>",displayName:"SMTP",enableSorting:!1,enableFiltering:!1},{name:"action",width:75,buttons:[{"class":"blue-hoki",href:"/channels/mail/accounts/view/{{row.entity.id}}/settings",name:"profile"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=c.gridOptions(d,f,a,{accountId:b.accountId})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.mail.accounts.list",{url:"/list",templateUrl:"app/channels/mail/account/list/list.html",controller:"MailAccountListCtrl"})}]),angular.module("xCallyShuttleApp").factory("MailServerIn",["$resource",function(a){return a("/api/mail/servers/in/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("MailServerOut",["$resource",function(a){return a("/api/mail/servers/out/:id/:controller",{id:"@id"},{update:{method:"PUT"},test:{method:"GET"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.mail.accounts.view.actions",{url:"/actions",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("MailAccountViewActionListCtrl",["$scope","gridOptions","MailAccount","$http","$translate","$stateParams",function(a,b,c,d,e,f){a.initActons=function(){var d={draggable:!0,exporterCsvFilename:"mail_applications.csv",enableSorting:!1,enableFiltering:!1,columnDefs:[{name:"app",cellClass:"text-center"},{name:"name",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span>{{row.entity.app == "queue" ? row.entity.MailQueue.name : row.entity.User.name}}</span></div>'},{name:"timeout",cellClass:"text-center"},{name:"interval",displayName:"APPLICATION_TIME_INTERVAL",cellClass:"text-center",cellTemplate:"<div><span>{{row.entity.Interval ? row.entity.Interval.name : row.entity.interval}}</span></div>"},{name:"action",width:125,buttons:[{"class":"blue-hoki",href:"/channels/mail/accounts/view/{{row.entity.MailAccountId}}/actions/view/{{row.entity.id}}",name:"profile"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.app, row.entity.id)"}]}]};a.gridOptions=b.gridOptions(c,d,a,{accountId:f.accountId,controller:"applications"})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.mail.accounts.view.actions.list",{url:"/list",templateUrl:"app/channels/mail/account/view/action/list/list.html",controller:"MailAccountViewActionListCtrl"})}]),angular.module("xCallyShuttleApp").controller("MailAccountViewActionViewCtrl",["$scope","$http","$stateParams","$translate","$location","xAlert","WizardHandler","socket","application","interval","Agent","Interval","MailQueue","MailAccount","Template","SmsAccount",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.initAction=function(){return a.$application=i.application,a.$stateParams=c,a.$interval=j.interval,a.forms={},a.apps=[{name:"Queue",value:"queue"},{name:"Agent",value:"agent"},{name:"SendMail",value:"sendMail"},{name:"ReplyMail",value:"replyMail"},{name:"SendSMS",value:"sendSms"}],a.types=[{key:"APPLICATION_REPLY",value:"reply"},{key:"APPLICATION_REPLY_TO_ALL",value:"replyAll"}],n.get({accountId:c.accountId,controller:"applications",id:c.actionId}).$promise.then(function(b){if(a.application=b,a.application.alwaysTime=!1,a.application.IntervalId)a.application.intType="list";else switch(a.application.interval){case"*,*,*,*":a.application.intType="always";break;default:a.application.intType="custom"}if("always"===a.application.intType||"custom"===a.application.intType){var c=a.application.interval.split(",");"*"===c[0]?a.application.alwaysTime=!0:(a.application.t_from=moment(new Date),a.application.t_to=moment(new Date),a.application.t_from.hour(c[0].split("-")[0].split(":")[0]),a.application.t_from.minute(c[0].split("-")[0].split(":")[1]),a.application.t_to.hour(c[0].split("-")[1].split(":")[0]),a.application.t_to.minute(c[0].split("-")[1].split(":")[1])),"*"===c[1]?(a.application.wd_from="always",a.application.wd_to="always"):(a.application.wd_from=c[1].split("-")[0],a.application.wd_to=c[1].split("-")[1]),"*"===c[2]?(a.application.md_from="always",a.application.md_to="always"):(a.application.md_from=c[2].split("-")[0],a.application.md_to=c[2].split("-")[1]),"*"===c[3]?(a.application.m_from="always",a.application.m_to="always"):(a.application.m_from=c[3].split("-")[0],a.application.m_to=c[3].split("-")[1])}a.$watch("application.t_from",function(b){a.application.t_from_hm=moment(b).format("HH:mm")}),a.$watch("application.t_to",function(b){a.application.t_to_hm=moment(b).format("HH:mm")})})["catch"](function(a){console.error(a),f.error(a)})},a.getQueues=function(){return m.get().$promise.then(function(b){a.queues=b.rows})["catch"](function(a){console.error(a)})},a.getAgents=function(){return k.get().$promise.then(function(b){a.agents=b.rows})["catch"](function(a){console.error(a)})},a.getIntervals=function(){return l.get().$promise.then(function(b){a.intervals=b.rows})["catch"](function(a){console.error(a)})},a.getTemplates=function(){return o.get().$promise.then(function(b){a.templates=b.rows})["catch"](function(a){console.error(a)})},a.getMailAccounts=function(){return n.get().$promise.then(function(b){a.mailAccounts=b.rows})["catch"](function(a){console.error(a)})},a.getSmsAccounts=function(){return p.get().$promise.then(function(b){a.smsAccounts=b.rows})["catch"](function(a){console.error(a)})},a.updateItem=function(){switch(a.application.intType){case"always":a.application.interval="*,*,*,*",a.application.IntervalId=null;break;case"list":var b=_.find(a.intervals,{id:a.application.IntervalId});a.application.interval=b?"":"*,*,*,*",a.application.IntervalId=b?a.application.IntervalId:null;break;case"custom":var g,h,i,j,k;g=a.application.t_from&&a.application.t_to&&!a.application.alwaysTime?moment(a.application.t_from).format("HH:mm")+"-"+moment(a.application.t_to).format("HH:mm"):"*",a.application.wd_from&&"always"!==a.application.wd_from?(h=a.application.wd_from,a.application.wd_to&&"always"!==a.application.wd_to&&(h+="-"+a.application.wd_to)):h="*",a.application.md_from&&"always"!==a.application.md_from?(i=a.application.md_from,a.application.md_to&&"always"!==a.application.md_to&&(i+="-"+a.application.md_to)):i="*",a.application.m_from&&"always"!==a.application.m_from?(j=a.application.m_from,a.application.m_to&&"always"!==a.application.m_to&&(j+="-"+a.application.m_to)):j="*",k=g+","+h+","+i+","+j,a.application.interval=k,a.application.IntervalId=null}return n.update({accountId:c.accountId,controller:"applications",id:c.actionId},a.application).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success"),e.path("/channels/mail/accounts/view/"+c.accountId+"/actions/list")})["catch"](function(a){f.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.mail.accounts.view.actions.view",{url:"/view/:actionId",templateUrl:"app/channels/mail/account/view/action/view/view.html",controller:"MailAccountViewActionViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("MailAccountViewActionWizardCtrl",["$scope","$http","Agent","Template","MailQueue","MailAccount","Interval","$stateParams","$translate","$location","xAlert","WizardHandler","socket","application","interval","SmsAccount",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.initWizard=function(){a.apps=[{name:"Queue",value:"queue"},{name:"Agent",value:"agent"},{name:"SendMail",value:"sendMail"},{name:"ReplyMail",value:"replyMail"},{name:"SendSMS",value:"sendSms"}],a.types=[{key:"APPLICATION_REPLY",value:"reply"},{key:"APPLICATION_REPLY_TO_ALL",value:"replyAll"}],a.$application=n.application,a.$stateParams=h,a.$interval=o.interval,a.forms={},a.application={alwaysTime:!0},a.$watch("application.t_from",function(b){a.application.t_from_hm=moment(b).format("HH:mm")}),a.$watch("application.t_to",function(b){a.application.t_to_hm=moment(b).format("HH:mm")})},a.getQueues=function(){return e.get().$promise.then(function(b){a.queues=b.rows})["catch"](function(a){console.error(a)})},a.getAgents=function(){return c.get().$promise.then(function(b){a.agents=b.rows})["catch"](function(a){console.error(a)})},a.getTemplates=function(){return d.get().$promise.then(function(b){a.templates=b.rows})["catch"](function(a){console.error(a)})},a.getSmsAccounts=function(){return p.get().$promise.then(function(b){a.smsAccounts=b.rows})["catch"](function(a){console.error(a)})},a.getMailAccounts=function(){return f.get().$promise.then(function(b){a.mailAccounts=b.rows})["catch"](function(a){console.error(a)})},a.getIntervals=function(){return g.get().$promise.then(function(b){a.intervals=b.rows})["catch"](function(a){console.error(a)})},a.createItem=function(){switch(a.application.intType){case"always":a.application.interval="*,*,*,*",a.application.IntervalId=null;break;case"list":var b=_.find(a.intervals,{id:a.application.IntervalId});a.application.interval=b?"":"*,*,*,*",a.application.IntervalId=b?a.application.IntervalId:null;break;case"custom":var c,d,e,g,i;c=a.application.t_from&&a.application.t_to&&!a.application.alwaysTime?moment(a.application.t_from).format("HH:mm")+"-"+moment(a.application.t_to).format("HH:mm"):"*",a.application.wd_from&&"always"!==a.application.wd_from?(d=a.application.wd_from,a.application.wd_to&&"always"!==a.application.wd_to&&(d+="-"+a.application.wd_to)):d="*",a.application.md_from&&"always"!==a.application.md_from?(e=a.application.md_from,a.application.md_to&&"always"!==a.application.md_to&&(e+="-"+a.application.md_to)):e="*",a.application.m_from&&"always"!==a.application.m_from?(g=a.application.m_from,a.application.m_to&&"always"!==a.application.m_to&&(g+="-"+a.application.m_to)):g="*",i=c+","+d+","+e+","+g,a.application.interval=i,a.application.IntervalId=null}return f.save({accountId:h.accountId,controller:"applications"},a.application).$promise.then(function(){j.path("/channels/mail/accounts/view/"+h.accountId+"/actions/list")})["catch"](function(a){console.error(a)})},a.formValidation=function(a){return a},a.next=function(){l.wizard().next()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.mail.accounts.view.actions.wizard",{url:"/wizard",templateUrl:"app/channels/mail/account/view/action/wizard/wizard.html",controller:"MailAccountViewActionWizardCtrl"})}]),angular.module("xCallyShuttleApp").factory("MailDisposition",["$resource",function(a){return a("/api/mail/dispositions/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("MailInboxViewModaDispositionAddCtrl",["$scope","$uibModalInstance","MailAccount","id","xAlert","$translate",function(a,b,c,d,e,f){a.ok=function(){return c.save({accountId:d,controller:"dispositions"},{name:a.name}).$promise.then(function(a){b.close(a)})["catch"](function(a){e.show(f.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("MailAccountDispositionViewCtrl",["$scope","$stateParams","$uibModal","$translate","MailAccount","xAlert",function(a,b,c,d,e,f){a.initView=function(){return e.get({accountId:b.accountId,controller:"dispositions"}).$promise.then(function(b){a.dispositions=b.rows})["catch"](function(a){console.error(a),f.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.updateDisposition=function(a,c){return e.update({accountId:b.accountId,controller:"dispositions",id:a},{name:c}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE")+"!","success")})["catch"](function(a){console.error(a),f.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.deleteDisposition=function(c){return console.log("delete"),e.remove({accountId:b.accountId,controller:"dispositions",id:c}).$promise.then(function(){_.remove(a.dispositions,{id:c})})["catch"](function(a){console.error(a),f.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.addDisposition=function(){return c.open({animation:!0,templateUrl:"app/channels/mail/account/view/disposition/modal/add.modal.html",controller:"MailInboxViewModaDispositionAddCtrl",resolve:{id:function(){return b.accountId}}}).result.then(function(b){b&&a.dispositions.push(b)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.mail.accounts.view.dispositions",{url:"/dispositions",controller:"MailAccountDispositionViewCtrl",templateUrl:"app/channels/mail/account/view/disposition/view/view.html"})}]),angular.module("xCallyShuttleApp").controller("MailAccountHooksViewCtrl",["$scope","MailAccount","Pause","$http","$stateParams","clipboard","$translate","$location","xAlert","List",function(a,b,c,d,e,f,g,h,i,j){a.account={},a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.CONST_TIMEOUT=3e4,a.initView=function(){a.types=[{value:"",name:"-- None --"},{name:"HTTP GET",value:"GET"},{name:"HTTP POST",value:"POST"}],c.get().$promise.then(function(b){a.pauses=b.rows})["catch"](function(a){i.error(a)}),b.get({id:e.accountId}).$promise.then(function(b){a.account=b,a.account.actions.length<1&&a.account.actions.push({action:"pause",enabled:!1,type:null})})["catch"](function(a){i.error(a)})},a.resetActionData=function(a){a.type=null},a.updateItemMailAccount=function(){return console.log(a.account),b.update({id:e.accountId},a.account).$promise.then(function(){i.show(g.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){i.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.mail.accounts.view.hooks",{url:"/hooks",controller:"MailAccountHooksViewCtrl",templateUrl:"app/channels/mail/account/view/hooks/view/view.html"})}]),angular.module("xCallyShuttleApp").controller("MailAccountOtherViewCtrl",["$scope","$rootScope","$stateParams","$translate","xAlert","MailAccount",function(a,b,c,d,e,f){a.initView=function(){return a.options={language:b.language,allowedContent:!0,entities:!1,skin:"office2013",contentsCss:"/assets/css/global/richparams.css",extraPlugins:"autogrow",autoGrow_minHeight:450,disableNativeSpellChecker:!1,toolbar:[{name:"clipboard",items:["Cut","Copy","Paste","PasteText","PasteFromWord","-","Undo","Redo"]},{name:"links",items:["Link","Unlink","Anchor"]},{name:"insert",items:["Image","Table","HorizontalRule","SpecialChar"]},{name:"tools",items:["Maximize"]},{name:"document",items:["Source"]},"/",{name:"basicstyles",items:["Bold","Italic","Underline","Strike","Subscript","Superscript","-","RemoveFormat"]},{name:"paragraph",items:["NumberedList","BulletedList","-","Outdent","Indent","-","Blockquote"]},{name:"styles",items:["Styles","Format"]},"/",{name:"motion",items:["voice","chat","mail"]}]},f.get({id:c.accountId}).$promise.then(function(b){console.log(b),a.account=b})["catch"](function(a){e.error(a)})},a.updateItemMailAccount=function(){return f.update({id:c.accountId},{whiteLabel:a.account.whiteLabel,signature:a.account.signature}).$promise.then(function(){e.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){e.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.mail.accounts.view.other",{url:"/other",controller:"MailAccountOtherViewCtrl",templateUrl:"app/channels/mail/account/view/other/view/view.html"})}]),angular.module("xCallyShuttleApp").controller("MailAccountSettingViewCtrl",["$scope","$http","$stateParams","$translate","$location","$timeout","socket","xAlert","MailAccount","MailMessage","MailServerIn","MailServerOut","usSpinnerService","List","Template",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){a.imapDisabled=!1,a.smtpDisabled=!1,a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.CONST_TIMEOUT=3e4,a.$on("$destroy",function(){g.socket.removeAllListeners("mail_message:sent"),g.socket.removeAllListeners("mail_message:failed"),g.socket.removeAllListeners("mail_server_in:state"),g.socket.removeAllListeners("mail_server_out:state")}),a.initView=function(){return g.socket.on("mail_message:sent",function(){h.show(d.instant("MESSAGE_WELL_DONE"),"success"),m.stop("spinner-grid")}),g.socket.on("mail_message:failed",function(){h.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger"),m.stop("spinner-grid")}),n.get().$promise.then(function(b){a.lists=b.rows})["catch"](function(a){console.error(a)}),o.get().$promise.then(function(b){a.templates=b.rows})["catch"](function(a){console.error(a)}),i.get({id:c.accountId}).$promise.then(function(b){a.account=b,a.account.MailServerIn&&(a.account.MailServerIn.source=JSON.parse(a.account.MailServerIn.source),a.account.MailServerOut.source=JSON.parse(a.account.MailServerOut.source),g.socket.on("mail_server_in:state",function(b){if(b.id===a.account.MailServerIn.id)switch(a.account.MailServerIn.state=b.state,a.account.MailServerIn.source=JSON.parse(b.source),b.state){case"CONNECTING":break;default:m.stop("spinner-grid"),a.imapDisabled=!1}})),g.socket.on("mail_server_out:state",function(b){if(b.id===a.account.MailServerOut.id)switch(a.account.MailServerOut.state=b.state,a.account.MailServerOut.source=JSON.parse(b.source),b.state){case"CONNECTING":break;default:m.stop("spinner-grid"),a.smtpDisabled=!1}})})["catch"](function(a){h.error(a)})},a.updateItemMailAccount=function(){return i.update({id:c.accountId},{name:a.account.name,description:a.account.description,address:a.account.address,fidelity:a.account.fidelity,timeout:a.account.timeout,service:a.account.service,ListId:a.account.ListId,TemplateId:a.account.TemplateId}).$promise.then(function(){h.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){h.error(a)})},a.updateItemMailServerIn=function(){var b=angular.copy(a.account.MailServerIn);return delete b.source,m.spin("spinner-grid"),a.imapDisabled=!0,k.update({id:b.id},b).$promise.then(function(){h.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){h.error(a)})},a.updateItemMailServerOut=function(){var b=angular.copy(a.account.MailServerOut);return delete b.source,m.spin("spinner-grid"),a.smtpDisabled=!0,l.update({id:b.id},b).$promise.then(function(){h.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){h.error(a)})},a.test=function(){return m.spin("spinner-grid"),a.smtpDisabled=!0,l.update({id:a.account.MailServerOut.id},{state:"CONNECTING"}).$promise["catch"](function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.mail.accounts.view.settings",{url:"/settings",controller:"MailAccountSettingViewCtrl",templateUrl:"app/channels/mail/account/view/setting/view/view.html"})}]),angular.module("xCallyShuttleApp").controller("MailAccountViewCtrl",["$scope","$stateParams","MailAccount",function(a,b,c){a.initView=function(){return c.get({id:b.accountId}).$promise.then(function(b){a.account=b})["catch"](function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.mail.accounts.view",{url:"/view/:accountId",controller:"MailAccountViewCtrl",templateUrl:"app/channels/mail/account/view/view.html",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]})}]}})}]),angular.module("xCallyShuttleApp").controller("MailAccountWizardCtrl",["$scope","$http","$location","$translate","WizardHandler","xAlert","MailAccount",function(a,b,c,d,e,f,g){a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.initWizard=function(){a.forms={},a.item={MailServerIn:{port:993,ssl:!0,"delete":!1,protocol:"IMAP",filter:"UNSEEN",mailbox:"INBOX",keepalive:!0,authTimeout:5,connTimeout:10},MailServerOut:{port:465,ssl:!0}}},a.goNext=function(){e.wizard().next()},a.formValidation=function(a){return a},a.createItem=function(){return g.save(a.item).$promise.then(function(){c.path("/channels/mail/accounts/list")})["catch"](function(a){f.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.mail.accounts.wizard",{url:"/wizard",templateUrl:"app/channels/mail/account/wizard/wizard.html",controller:"MailAccountWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.mail.inbox",{url:"/inbox",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:36}}})}]),angular.module("xCallyShuttleApp").controller("MailInboxInfoModalCtrl",["$scope","$translate","$uibModalInstance","$stateParams","xAlert","uniqueId","ReportSquare",function(a,b,c,d,e,f,g){a.data=null,a.initInfo=function(){g.get({controller:"show",uniqueid:f}).$promise.then(function(b){a.data={id:b.id,channel:b.channel,uniqueid:b.uniqueid,callerid:b.callerid,calleridname:b.calleridname,project_name:b.project_name,extension:b.extension}})["catch"](function(b){switch(b.status){case 404:a.data=null;break;default:e.error(b)}})},a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").directive("mailMessage",["$rootScope","$translate","MailMessage","List","xAlert","Lightbox","$uibModal",function(a,b,c,d,e,f,g){return{restrict:"E",scope:{message:"=",listId:"="},templateUrl:"app/channels/mail/inbox/message/message.directive.html",link:function(h){h.openPreview=function(a){f.openModal(["api/mail/attachments/"+a],0)},h.openContact=function(c){return h.listId?d.save({listId:h.listId,controller:"contacts"},{email:c}).$promise.then(function(b){var c=_.find(a.$root.workspaces,{contactID:b.id});c?c.active=!0:a.$root.workspaces.push({active:!0,"class":"icon-user",contactID:b.id,name:b.email,type:"contact"})})["catch"](function(a){console.error(a)}):void e.show(b.instant("MESSAGE_NO_LIST_CONFIGURED"),"info")},h.info=function(a){g.open({animation:!0,templateUrl:"app/channels/mail/inbox/message/info.modal.html",controller:"MailInboxInfoModalCtrl",resolve:{uniqueId:function(){return a}}})},h.retry=function(a){return c.update({id:a,status:"SENDING"}).$promise["catch"](function(a){console.error(a)})}}}}]),angular.module("xCallyShuttleApp").directive("mailNote",["$translate","Modal","Auth","MailMessage","xAlert",function(a,b,c,d,e){return{restrict:"E",scope:{message:"="},templateUrl:"app/channels/mail/inbox/note/note.directive.html",link:function(f){f.Auth=c,f.deleteNote=b.confirm["delete"](function(){return d.remove({id:f.message.id}).$promise.then(function(){e.show(a.instant("MESSAGE_WELL_DONE")+"!","success")})["catch"](function(a){e.error(a)})})}}}]),angular.module("xCallyShuttleApp").controller("MailInboxViewModalNoteCtrl",["$scope","$uibModalInstance","$translate","id","MailRoom","xAlert",function(a,b,c,d,e,f){a.initModal=function(){a.item={}},a.ok=function(){return e.save({id:d,controller:"messages",controller2:"send"},{text:a.item.text,status:"NOTE"}).$promise.then(function(){f.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(){f.show(c.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})["finally"](function(){b.close()})},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").directive("mailRoom",["$rootScope","$cookieStore","$translate","$uibModal","$timeout","Tag","CannedAnswer","MailAttachment","List","MailAccount","MailRoom","MailMessage","FileUploader","xAlert","usSpinnerService","socket","Auth",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){return{restrict:"E",scope:{workspace:"="},templateUrl:"app/channels/mail/inbox/room/room.directive.html",link:function(e){function r(a,b){var c="";return b&&b.signature&&(c+="<br>"+b.signature),a&&(c+="<br><blockquote>"+a.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\n/g,"<br>")+"</blockquote>"),c}e.onCKReady=function(a){e.ckEditorInstance=a},e.$on("$destroy",function(){});var s=[];e.user=q.getCurrentUser(),e.getContacts=function(a){return e.listId?i.get({listId:e.listId,controller:"contacts",email:a}).$promise.then(function(a){return a.rows})["catch"](function(a){console.error(a)}):[]},e.setList=function(a){e.listId=a},e.options={language:a.language,allowedContent:!0,entities:!1,skin:"office2013",extraPlugins:"autogrow",autoGrow_minHeight:600,autoGrow_maxHeight:600,disableNativeSpellChecker:!1,toolbar:[{name:"clipboard",items:["Cut","Copy","Paste","-","Undo","Redo"]},{name:"links",items:["Link","Unlink","Anchor"]},{name:"insert",items:["Image","Table","HorizontalRule","SpecialChar"]},{name:"tools",items:["Maximize"]},"/",{name:"basicstyles",items:["Bold","Italic","Underline","Strike","Subscript","Superscript","-","RemoveFormat"]},{name:"paragraph",items:["NumberedList","BulletedList","-","Outdent","Indent","-","Blockquote"]},{name:"styles",items:["Styles","Format"]}]},e.expanded=!0,e.modelOptions={debounce:{"default":500,blur:250},getterSetter:!0},e.panelLeft=null,e.panelRight="col-md-12",e.forms={},e.form={from:[],to:e.workspace.data&&e.workspace.data.to?[e.workspace.data.to]:[],cc:[],bcc:[],tags:[],html:"",disabled:!1},p.socket.on("mail_message:remove",function(a){_.remove(e.mailRoom.MailMessages,{id:a.id})}),p.socket.on("mail_message:save",function(a){return e.workspace.id&&a.MailRoomId==e.workspace.id?(e.workspace.active||e.workspace.unread++,l.get({id:a.id}).$promise.then(function(a){e.mailRoom||(e.mailRoom={MailMessages:[]});var b=_.findIndex(e.mailRoom.MailMessages,{id:a.id});b>-1?_.merge(e.mailRoom.MailMessages[b],a):e.mailRoom.MailMessages.unshift(a),e.panelLeft="col-md-6",e.panelRight="col-md-6"})["catch"](function(a){console.error(a)})):void 0});var t=e.uploader=new m({url:"api/mail/attachments",autoUpload:!0,withCredentials:!0,headers:{Authorization:"Bearer "+b.get("token")}});return t.onErrorItem=function(){n.show(c.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger"); -},t.removeFromQueue=function(a){var b=this;return h["delete"]({id:a.basename}).$promise.then(function(){var c=b.getIndexOfItem(a),d=b.queue[c];d.isUploading&&d.cancel(),b.queue.splice(c,1),d._destroy(),b.progress=b._getTotalProgress(),s=_.reject(s,{basename:a.basename})})["catch"](function(){n.show(c.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},t.onSuccessItem=function(a,b){var c={size:b.size,path:b.path,name:b.name,basename:b.basename,type:b.type};a=_.merge(a,c),s.push(c)},e.openRoom=function(b){var c=_.find(a.workspaces,{id:b,type:"mailRoom"});c?c.active=!0:a.workspaces.push({id:b,type:"mailRoom","class":"icon-envelope",active:!0})},e.togglePanelLeft=function(){e.panelLeft?(e.panelLeft=null,e.panelRight="col-md-12"):(e.panelLeft="col-md-6",e.panelRight="col-md-6")},e.onSelectAnswer=function(){e.ckEditorInstance.insertHtml(e.modelOptions.selectedAnswer),delete e.modelOptions.selectedAnswer},e.getAnswers=function(a){return g.get({key:a}).$promise.then(function(a){return _.map(a.rows,"value")})},e.closeRoom=function(){return d.open({animation:!0,templateUrl:"app/channels/mail/inbox/status/status.modal.html",controller:"MailInboxStatusModalCtrl",resolve:{accountId:function(){return e.mailRoom.MailAccountId}}}).result.then(function(a){return k.patch({id:e.workspace.id},a).$promise["catch"](function(a){n.error(a)})})},e.loadNote=function(){return d.open({animation:!0,templateUrl:"app/channels/mail/inbox/note/note.modal.html",controller:"MailInboxViewModalNoteCtrl",resolve:{id:function(){return e.workspace.id}}})},e.onChanged=function(){return k.update({id:e.workspace.id},{tags:e.form.tags}).$promise["catch"](function(a){console.error(a)})},e.sendMail=function(){o.spin("spinner-grid"),e.form.disabled=!0;var a={},b={subject:e.form.subject||(e.mailRoom?e.mailRoom.subject:null),from:e.form.from,to:_.map(e.form.to,"email"),cc:_.map(e.form.cc,"email"),bcc:_.map(e.form.bcc,"email"),html:e.form.html||null,text:e.form.text||null,inReplyTo:a.messageId||null,status:"SENDING",MailAttachments:s};return e.mailRoom?(a=_.last(e.mailRoom.MailMessages,{status:"RECEIVED"}),b.inReplyTo=a.messageId||null,k.save({id:e.workspace.id,controller:"messages",controller2:"send"},b).$promise.then(function(){e.form.html="",t.queue=[],s=[],n.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(){n.show(c.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})["finally"](function(){o.stop("spinner-grid"),e.form.disabled=!1})):l.save(b).$promise.then(function(a){n.show(c.instant("MESSAGE_MAIL_MESSAGE_SEND_SUCCESS"),"success"),e.form.html="",t.queue=[],s=[],e.workspace.id=a.id,e.workspace.name=a.subject,e.mailRoom=a,e.expanded=!1,p.socket.on("mail_room:save",function(a){e.workspace.id&&a.id===e.workspace.id&&_.merge(e.mailRoom,a)})})["catch"](function(){n.show(c.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})["finally"](function(){o.stop("spinner-grid"),e.form.disabled=!1})},f.get().$promise.then(function(a){e.tags=_.map(a.rows,"name")})["catch"](function(a){console.error(a)}),j.get().$promise.then(function(a){e.mailAccounts=a.rows})["catch"](function(a){console.error(a)}),e.workspace.id?(e.panelLeft="col-md-6",e.panelRight="col-md-6",k.get({id:e.workspace.id}).$promise.then(function(a){e.mailRoom=a,e.expanded=!1,e.listId=a.MailAccount.ListId,e.workspace.name=a.subject||"No subject",e.form.from.push(a.MailAccount.address),e.form.tags=a.tags;var b=_.findLast(e.mailRoom.MailMessages,{status:"RECEIVED"});if(b)e.form.to=_.map(_.union(b.from,b.to),function(a){return{email:a}}),e.form.to=_.remove(e.form.to,function(b){return b.email!==a.MailAccount.address}),e.form.cc=_.map(b.cc,function(a){return{email:a}}),e.form.bcc=_.map(b.bcc,function(a){return{email:a}}),e.form.subject="Re: "+(b.subject||"No subject"),e.form.html=r(b.text,a.MailAccount);else{e.form.html=r("",a.MailAccount);var c=_.findLast(e.mailRoom.MailMessages,{status:"SENT"});c&&(e.form.to=_.map(c.to,function(a){return{email:a}}))}return p.socket.on("mail_room:save",function(a){a.id===e.workspace.id&&_.merge(e.mailRoom,a)}),a})["catch"](function(a){console.error(a)})["finally"](function(){o.stop("spinner-grid"),e.form.disabled=!1})):(e.panelLeft=null,e.panelRight="col-md-12",e.workspace.mailAccountId?j.get({id:e.workspace.mailAccountId}).$promise.then(function(a){e.form.from.push(a.address),e.form.html=r("",a),e.listId=a.ListId,o.stop("spinner-grid")})["catch"](function(a){o.stop("spinner-grid"),console.error(a)}):void o.stop("spinner-grid"))}}}]),angular.module("xCallyShuttleApp").controller("MailInboxStatusModalCtrl",["$scope","$uibModalInstance","MailAccount","accountId",function(a,b,c,d){a.modal={title:"APPLICATION_CONFIRM_CLOSE",text:"MESSAGE_ARE_YOU_SURE_YOU_WANT_TO_CLOSE_THE_MAIL"},a.initDisposition=function(){return a.item={disposition:null,status:"CLOSED"},c.get({accountId:d,controller:"dispositions"}).$promise.then(function(b){a.dispositions=b.rows})["catch"](function(a){console.error(a)})},a.ok=function(){b.close(a.item)},a.cancel=function(){b.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.mail.inbox.view.account",{url:"/account/:id",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:9}}})}]),angular.module("xCallyShuttleApp").controller("MailInboxViewAccountListCtrl",["$scope","$rootScope","$uibModal","$translate","$stateParams","$state","Tag","uibButtonConfig","usSpinnerService","socket","MailAccount","MailRoom","uiGridConstants","Auth","Modal","xAlert","localStorageService",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){a.openRoom=function(b,c,d){if(!d){var f=_.find(a.workspaces,{id:b,type:"mailRoom"});if(f&&b?f.active=!0:a.workspaces.push({id:b,subject:c,type:"mailRoom","class":"icon-envelope",active:!0,mailAccountId:e.id}),b&&"agent"===n.getCurrentUser().role&&"PENDING"!==a.query.status&&"CLOSED"!==a.query.status)return l.patch({id:b},{status:"OPEN",openReason:"agent"}).$promise["catch"](function(a){console.error(a)})}},a.getPage=function(){i.spin("spinner-grid");var b={accountId:e.id,controller:"rooms"};return a.query&&_.merge(b,a.query),k.query(b).$promise.then(function(b){q.set("mailAccountId",e.id),a.gridOptions.data=b,j.socket.on("mail_room:save",function(b){if(b.MailAccountId==e.id){var c=_.find(a.gridOptions.data,{id:b.id});c?c.status!==b.status?_.remove(a.gridOptions.data,{id:b.id}):_.merge(c,b):a.query.status!==b.status||a.query.tags.length&&!_.isEqual(a.query.tags,b.tags)||a.gridOptions.data.push(b)}}),j.socket.on("mail_room:remove",function(b){_.remove(a.gridOptions.data,{id:b.id})})})["catch"](function(a){p.error(a)})["finally"](function(){i.stop("spinner-grid")})},a.initView=function(){h.activeClass="green-haze",a.id=[],a.isAdmin=n.isAdmin(),a.isAgent=n.isAgent(),a.uncheckable=!1,a.query={status:q.get("mailStatus")?q.get("mailStatus"):"NEW",tags:q.get("mailTags")?q.get("mailTags"):[]},a.$watch("query.status",function(b,c){b!==c&&(q.set("mailStatus",a.query.status),a.getPage())},!0),k.get().$promise.then(function(b){a.mailAccounts=b.rows})["catch"](function(a){console.error(a)}),g.get().$promise.then(function(b){a.tags=_.map(b.rows,"name")})["catch"](function(a){console.error(a)}),a.gridOptions={exporterCsvFilename:"mail_rooms.csv",enableRowHeaderSelection:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,enableFiltering:!0,enableSorting:!0,enableGridMenu:!1,flatEntityAccess:!0,showGridFooter:!0,fastWatch:!0,enableSelectAll:!0,enableHorizontalScrollbar:0,enableVerticalScrollbar:0,columnDefs:[{name:"lastEvent",displayName:"",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div> <span data-ng-class=\"{'icon-arrow-up font-green': row.entity.lastEvent === 'SENT', 'icon-arrow-up font-yellow': row.entity.lastEvent === 'SENDING', 'icon-arrow-down font-green': row.entity.lastEvent === 'RECEIVED', 'icon-close font-red': row.entity.lastEvent === 'FAILED', 'icon-question': !row.entity.lastEvent}\"> </span> </div>",width:30,enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"attachment",displayName:"",headerCellTemplate:'<i class="icon-paper-clip" style="margin-top: 8px; margin-left: 8px;"></i>',cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div><i data-ng-class=\"row.entity.attachment ? 'icon-paper-clip' : ''\"></i></div>",width:30,enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"tags",displayName:"",headerCellTemplate:'<i class="icon-tag" style="margin-top: 8px; margin-left: 8px;"></i>',cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div><i data-ng-class=\"row.entity.tags.length ? 'icon-tag' : ''\" title=\"{{row.entity.tags}}\"></i></div>",width:30,enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"id",displayName:"Id",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div><span>#{{row.entity.id}}</span></div>",width:75,enableSorting:!0,enableFiltering:!0,enableColumnMenu:!1},{name:"subject"},{name:"from",cellClass:"text-center"},{name:"disposition",displayName:"APPLICATION_DISPOSITION",headerCellFilter:"translate"},{name:"createdAt",cellFilter:"date:'dd/MM/yyyy HH:mm'",width:120,enableFiltering:!1},{name:"updatedAt",cellFilter:"date:'dd/MM/yyyy HH:mm'",width:120,enableFiltering:!1,sort:{direction:m.DESC}},{name:"action",cellTemplate:'<div> <a class="btn btn-icon-only" data-ng-disabled="row.entity.waiting" data-ng-class="row.entity.waiting ? \'font-blue\' : \'font-green\'" data-ng-click="grid.appScope.openRoom(row.entity.id, row.entity.subject, row.entity.waiting)"><i class="fa" data-ng-class="row.entity.waiting ? \'fa-repeat\' : \'fa-envelope\' " aria-hidden="true"></i></a> <a class="btn btn-icon-only font-red" data-ng-show="grid.appScope.isAdmin && !row.entity.waiting" data-ng-click="grid.appScope.deleteItem(row.entity.id, row.entity.id)"><i class="fa fa-trash" aria-hidden="true"></i></a> </div>',enableSorting:!1,cellClass:"ui-grid-vcenter",width:70,enableFiltering:!1,enableColumnMenu:!1}],data:[],onRegisterApi:function(b){a.gridApi=b,a.gridApi.selection&&(a.gridApi.selection.on.rowSelectionChanged(a,function(b){b.isSelected?a.id.push(a.gridApi.grid.options.primaryKey?b.entity[a.gridApi.grid.options.primaryKey]:b.entity.id):_.pull(a.id,a.gridApi.grid.options.primaryKey?b.entity[a.gridApi.grid.options.primaryKey]:b.entity.id)}),a.gridApi.selection.on.rowSelectionChangedBatch(a,function(b){b[0].isSelected?a.id=_.union(a.id,_.map(b,a.gridApi.grid.options.primaryKey?"entity."+a.gridApi.grid.options.primaryKey:"entity.id")):_.map(b,a.gridApi.grid.options.primaryKey?"entity."+a.gridApi.grid.options.primaryKey:"entity.id").forEach(function(b){_.pull(a.id,b)})}))}},a.getPage()},a.onChanged=function(){q.set("mailTags",a.query.tags),a.getPage()},a.tagItems=function(){return c.open({animation:!0,templateUrl:"app/channels/mail/inbox/view/view.tags.modal.html",controller:"MailInboxViewModalTagCtrl",resolve:{id:function(){return a.id}}}).result.then(function(){a.gridApi.selection.clearSelectedRows(),a.id=[]})},a.disposeItems=function(){return c.open({animation:!0,templateUrl:"app/channels/mail/inbox/status/status.modal.html",controller:"MailInboxStatusModalCtrl",resolve:{status:function(){return null},accountId:function(){return e.id}}}).result.then(function(b){return l.patch({id:a.id},b).$promise.then(function(){a.gridApi.selection.clearSelectedRows(),a.id=[]})["catch"](function(a){p.error(a)})})},a.deleteItem=o.confirm["delete"](function(b){var c={id:b};return l.remove(c).$promise.then(function(){a.getPage(),p.show(d.instant("MESSAGE_WELL_DONE")+"!","success"),a.gridApi.selection.clearSelectedRows(),a.id=[]})["catch"](function(a){p.error(a)})}),a.deleteItems=o.confirm["delete"](function(){var b={ids:a.id};return l["delete"](b).$promise.then(function(){a.getPage(),p.show(d.instant("MESSAGE_WELL_DONE")+"!","success"),a.gridApi.selection.clearSelectedRows(),a.id=[]})["catch"](function(a){p.error(a)})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.mail.inbox.view.account.list",{url:"/list",templateUrl:"app/channels/mail/inbox/view/account/list/list.html",controller:"MailInboxViewAccountListCtrl",data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:9}}})}]),angular.module("xCallyShuttleApp").controller("MailInboxViewModalAgentCtrl",["$scope","$uibModalInstance","$translate","$stateParams","Agent","Auth","MailRoom","xAlert","roomId",function(a,b,c,d,e,f,g,h,i){var j=[];a.initModal=function(){return a.agents=[],a.item={agents:[]},e.get().$promise.then(function(b){for(var c=0;c<b.rows.length;c++)a.agents.push(b.rows[c]);return g.query({id:i,controller:"agents"}).$promise}).then(function(b){for(var c=0;c<b.length;c++)f.isAgent()||a.item.agents.push(b[c]),j.push(b[c].id)})["catch"](function(a){console.error(a)})},a.ok=function(){return j=f.isAgent()?_.union(j,a.item.agents):angular.copy(a.item.agents),g.update({id:i,controller:"agents",agents:j}).$promise.then(function(){h.show(c.instant("MESSAGE_WELL_DONE"),"success"),b.close()})["catch"](function(a){console.error(a)})},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("MailInboxViewCtrl",["$scope","$timeout","$location","localStorageService","MailAccount",function(a,b,c,d,e){a.hideAccounts=!1,a.initView=function(){return e.get().$promise.then(function(b){var e=null;if(a.mailAccounts=b.rows,a.mailAccounts.length){var f,g=d.get("mailAccountId");f=g&&_.find(a.mailAccounts,{id:Number(g)})?g:a.mailAccounts[0].id,e="/channels/mail/inbox/view/account/"+f+"/list"}e&&c.path(e)})["catch"](function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.mail.inbox.view",{url:"/view",templateUrl:"app/channels/mail/inbox/view/view.html",controller:"MailInboxViewCtrl",reload:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/inbox.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("MailInboxViewModalTagCtrl",["$scope","$uibModalInstance","$translate","$stateParams","Tag","MailRoom","xAlert","id",function(a,b,c,d,e,f,g,h){a.initModal=function(){return a.tags=[],a.item={tags:[]},a.modal={dismissable:!0,title:"APPLICATION_MESSAGE_SEND_RETRY",text:"MESSAGE_MESSAGE_SEND_RETRY",buttons:[{"class":"btn-success",text:"APPLICATION_TAG",click:function(){var d={status:!0};return f.patch({id:h},{tags:a.item.tags}).$promise["catch"](function(){d.status=!1,g.show(c.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})["finally"](function(){b.close(d)})}},{"class":"default",text:"APPLICATION_CANCEL",click:function(a){b.dismiss(a)}}]},e.get().$promise.then(function(b){a.tags=_.map(b.rows,"name")})["catch"](function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").controller("MailInboxViewModalTemplateCtrl",["$scope","$uibModalInstance","Template",function(a,b,c){a.initModal=function(){return a.item={},c.get().$promise.then(function(b){a.templates=b.rows})["catch"](function(a){console.error(a)})},a.ok=function(){b.close(a.item)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.mail",{url:"/mail",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:9}}})}]),angular.module("xCallyShuttleApp").factory("MailReport",["$resource",function(a){return a("/api/report/mails/:id/:controller1/:controller2",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("MailRoom",["$resource",function(a){return a("/api/mail/rooms/:id/:controller/:controller2",{id:"@id",controller:"@controller"},{update:{method:"PUT"},patch:{method:"PATCH"}})}]),angular.module("xCallyShuttleApp").factory("MailAttachment",["$resource",function(a){return a("/api/mail/attachments/:id/:controller",{id:"@id"})}]),angular.module("xCallyShuttleApp").factory("MailMessage",["$resource",function(a){return a("/api/mail/messages/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("MailQueueListCtrl",["$scope","MailQueue","gridOptions","$uibModal","Auth",function(a,b,c,d,e){a.initView=function(){a.Auth=e;var d={exporterCsvFilename:"voice_queues.csv",columnDefs:[{name:"name"},{name:"description"},{name:"timeout"},{name:"strategy"},{name:"action",width:100,buttons:[{"class":"blue-hoki",href:"/channels/mail/queues/view/{{row.entity.id}}/settings",name:"settings"},{"class":"green-meadow",href:"/channels/mail/queues/view/{{row.entity.id}}/agents",name:"agents",hide:"user"===e.getCurrentUser().role},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=c.gridOptions(b,d,a)},a.createItem=function(){var b=d.open({animation:!0,templateUrl:"app/channels/mail/queue/list/list.create.modal.html",controller:"MailQueueListCreateCtrl",size:"lg"});b.result.then(function(){a.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("MailQueueListCreateCtrl",["$scope","$uibModalInstance","$translate","xAlert","MailQueue","Team","strategies",function(a,b,c,d,e,f,g){a.form={},a.strategies=g,a.item={penalty:0,agents:[]},a.getTeams=function(){return f.get({controller:"associations"}).$promise.then(function(b){a.teams=b.rows}).then(function(){ComponentsDropdowns.bindQueue(a.teams,[],function(){return{select:function(b){a.item.agents=_.union(a.item.agents,b)},deselect:function(b){a.item.agents=_.difference(a.item.agents,b)}}})})["catch"](function(a){console.error(a)})},a.save=function(){return e.save(a.item).$promise.then(function(a){b.close(a)})["catch"](function(a){d.error(a)})},a.cancel=function(){b.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.mail.queues.list",{url:"/list",templateUrl:"app/channels/mail/queue/list/list.html",controller:"MailQueueListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").factory("MailQueue",["$resource",function(a){return a("/api/mail/queues/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.mail.queues",{url:"/queues",template:"<div ui-view></div>","abstract":!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/scripts/components-dropdowns.js"]})}]},data:{permissions:{only:["admin","user"],redirectTo:"landing",id:35}}})}]),angular.module("xCallyShuttleApp").controller("MailQueueViewCtrl",["$scope","$http","$translate","$stateParams","xAlert","Team","MailQueue","Auth","strategies",function(a,b,c,d,e,f,g,h,i){a.Auth=h,a.strategies=i;var j=function(){return{select:function(b){return g.save({id:a.queue.id,controller:"agents"},{agents:b,penalty:a.queue.penalty}).$promise.then(function(){a.getTeams()})["catch"](function(a){console.error(a)})},deselect:function(b){return g["delete"]({id:a.queue.id,controller:"agents",agents:b}).$promise.then(function(){a.getTeams()})["catch"](function(a){console.error(a)})}}};a.getQueue=function(){return g.get({id:d.id}).$promise.then(function(b){b.penalty=0,a.queue=b})["catch"](function(a){console.error(a)})},a.updateMailQueue=function(){return g.update({id:d.id},{name:a.queue.name,description:a.queue.description,timeout:a.queue.timeout,strategy:a.queue.strategy}).$promise.then(function(){e.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){e.error(a)})},a.getTeams=function(){return f.get({controller:"associations"}).$promise.then(function(b){return a.teams=b.rows,g.get({id:d.id,controller:"agents"}).$promise}).then(function(b){ComponentsDropdowns.bindMailQueue(a.teams,_.map(b.rows,function(a){return{id:a.id,penalty:a.UserHasMailQueue.penalty}}),j)})["catch"](function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.mail.queues.view",{url:"/view/:id",templateUrl:"app/channels/mail/queue/view/view.html",controller:"MailQueueViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.channels.mail.queues.view.settings",{url:"/settings",templateUrl:"app/channels/mail/queue/view/view.settings.html"}).state("main.channels.mail.queues.view.agents",{url:"/agents",templateUrl:"app/channels/mail/queue/view/view.agents.html",cache:!1,serie:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.mail.realtime",{url:"/realtime",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:37}}})}]),angular.module("xCallyShuttleApp").controller("MailRealtimeViewAgentCtrl",["$scope","$log","$uibModal","$translate","socket","xAlert","Agent","Pause","Action","MailQueue","usSpinnerService","$q","uiGridConstants","Auth","$timeout","User",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){function q(){return k.spin("grid-spinner"),g.get(w).$promise.then(function(b){a.gridOptions.totalItems=b.count,a.gridOptions.data=[],b.rows.forEach(function(a){s(a)})})["catch"](function(a){f.error(a)})["finally"](function(){k.stop("grid-spinner")})}function r(){e.socket.on("agent:save",function(b){b=b.newValues||b;var c=_.find(a.gridOptions.data,{agentId:b.id,isAgent:!0});c&&(c.online=_.has(b,"online")?b.online:c.online,c.lastLoginAt=_.has(b,"lastLoginAt")?b.lastLoginAt:c.lastLoginAt,c.pause=_.has(b,"mailPause")?b.mailPause:c.mailPause,c.pauseType=_.has(b,"pauseType")?b.pauseType:c.pauseType,c.lastPauseAt=_.has(b,"lastPauseAt")?b.lastPauseAt:c.lastPauseAt,c.ipaddr=_.has(b,"ipaddr")?b.ipaddr:c.ipaddr,c.port=_.has(b,"port")?b.port:c.port,c.fullcontact=_.has(b,"fullcontact")?b.fullcontact:c.fullcontact,c.useragent=_.has(b,"useragent")?b.useragent:c.useragent,c.lastms=_.has(b,"lastms")?b.lastms:c.lastms,c.internal=_.has(b,"internal")?b.internal:c.internal,c.fullname=b.hasOwnProperty("fullname")?b.fullname:c.fullname,_.map(a.gridOptions.data,function(a){a.isAgent||a.agentId!==b.id||(a.online=_.has(b,"online")?b.online:a.online)}))}),e.socket.on("agent:remove",function(b){_.remove(a.gridOptions.data,{agentId:b.id})}),e.socket.on("user_has_mail_queue:save",function(b){var c=_.includes(_.map(a.pMailQueues,"id"),b.MailQueueId)||n.isAdmin();if(c){var d=_.find(a.gridOptions.data,{agentId:Number(b.UserId),isAgent:!0});if(d){var e=a.gridOptions.data.indexOf(d);a.gridOptions.data.splice(e+1,0,{isAgent:!1,agentId:Number(b.UserId),queue:b.queue,queueId:b.MailQueueId,agent:b.membername,online:d.online})}}}),e.socket.on("user_has_mail_queue:remove",function(b){_.remove(a.gridOptions.data,{agentId:b.UserId,queueId:b.MailQueueId});var c=_.filter(a.gridOptions.data,{agentId:b.UserId});c&&c.length<=1&&!n.isAdmin()&&_.remove(a.gridOptions.data,{agentId:b.UserId})})}function s(b){a.gridOptions.data.push({isAgent:!0,agentId:b.id,agent:b.name,online:b.online,lastLoginAt:b.lastLoginAt,lastPauseAt:b.lastPauseAt,pause:b.mailPause,pauseType:b.pauseType,ipaddr:b.ipaddr,port:b.port,fullcontact:b.fullcontact,useragent:b.useragent,lastms:b.lastms,internal:b.internal,$$treeLevel:0,fullname:b.fullname}),b.MailQueues&&b.MailQueues.forEach(function(c){a.gridOptions.data.push({isAgent:!1,agentId:b.id,queue:c.name,queueId:c.id,agent:b.name,online:b.online})})}function t(){return h.get().$promise.then(function(b){a.pauses=b.rows,e.syncUpdates("pause",a.pauses)})["catch"](function(a){f.error(a)})}function u(){return j.get().$promise.then(function(b){a.mailQueues=b.rows,e.syncUpdates("mail_queue",a.mailQueues)})["catch"](function(a){f.error(a)})}function v(){return p.query({id:a.user.id,controller:"allowed",controller2:"mail",controller3:"queues"}).$promise.then(function(b){a.pMailQueues=b})["catch"](function(a){f.error(a)})}a.mailQueues=[];var w={controller:"realtime",controller1:"mail",offset:0,limit:10};a.moment=moment,a.initAgents=function(){a.user=n.getCurrentUser(),a.gridOptions={enableGridMenu:!0,headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,showGridFooter:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,useExternalPagination:!0,useExternalSorting:!0,useExternalFiltering:!0,multiSelect:!0,showTreeExpandNoChildren:!0,columnDefs:[{name:"name",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.isAgent">{{row.entity.agent}} <{{row.entity.internal}}></div>'},{name:"fullname",displayName:"APPLICATION_FULLNAME",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.isAgent">{{row.entity.fullname}}</div>'},{name:"online",displayName:"APPLICATION_ONLINE",width:150,headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.online != null && row.entity.isAgent"><i class="fa" data-ng-class="{\'font-green\':row.entity.online, \'font-red\':!row.entity.online,\'fa-user\':row.entity.online,\'fa-user-times\':!row.entity.online}"></i> <i data-ng-if="row.entity.online" class="fa fa-sign-out font-red pointer-cursor" title="logout" data-ng-click="grid.appScope.agentLogout(row.entity.agent,row.entity.agentId)"></i> <span data-ng-if="row.entity.online && grid.appScope.showTimers" class="left-margin"><css-timer start-time="row.entity.lastLoginAt"></css-timer></span></div>',filter:{type:m.filter.SELECT,selectOptions:[{value:"true",label:"ONLINE"},{value:"false",label:"OFFLINE"}]}},{name:"mailPause",displayName:"APPLICATION_PAUSE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.pause != null && row.entity.online" class="ui-grid-vcenter"><i data-ng-if="row.entity.pause" data-ng-click="grid.appScope.pause(row.entity,\'unpause\')" class="fa fa-play font-green pointer-cursor left-margin" title="{{\'APPLICATION_RESUME\' | translate}}"></i><i class="fa fa-pause font-yellow pointer-cursor" data-ng-click="grid.appScope.pause(row.entity,\'pause\',\'DEFAULT PAUSE\')" title="{{\'APPLICATION_DEFAULT_PAUSE\' | translate}}"></i><select data-ng-if="grid.appScope.pauses.length" class="pause-select pointer-cursor" data-ng-model="grid.appScope.pauseType" data-ng-change="grid.appScope.pause(row.entity,\'pause\',grid.appScope.pauseType)"><option class="pointer-cursor" data-ng-repeat="pause in grid.appScope.pauses">{{pause.name}}</option></select> <span data-ng-if="row.entity.pause">({{row.entity.pauseType}})</span><span data-ng-if="row.entity.pause && grid.appScope.showTimers" class="left-margin"><css-timer start-time="row.entity.lastPauseAt"></css-timer></span></div>',filter:{type:m.filter.SELECT,selectOptions:[{value:"true",label:"PAUSED"},{value:"false",label:"NOT PAUSED"}]},enableSorting:!1,enableColumnMenu:!1},{name:"queue",displayName:"APPLICATION_QUEUE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"action",displayName:"",width:170,cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><button data-ng-if="row.entity.queueId" class="btn btn-xs red-sunglo" data-ng-click="grid.appScope.leaveQueue(row.entity.agentId,row.entity.queueId)"><i class="icon-ban"></i> {{\'APPLICATION_LEAVE\' | translate}}</button><button data-ng-if="row.entity.isAgent && row.treeNode.children.length < grid.appScope.mailQueues.length" class="btn btn-xs blue-hoki" data-ng-click="grid.appScope.joinQueue(row.entity.agentId)"><i class="icon-plus"></i> {{\'APPLICATION_JOIN_QUEUE\' | translate}}</button><div>',enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1}],data:[],gridMenuTitleFilter:function(a){var b=l.defer();return b.resolve(d.instant(a)),b.promise},onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){x(a.gridApi.core.getVisibleRows(a.gridApi.grid).length)}),a.gridApi.treeBase.on.rowExpanded(a,function(b){x(a.gridApi.core.getVisibleRows(a.gridApi.grid).length+b.treeNode.children.length)}),a.gridApi.treeBase.on.rowCollapsed(a,function(b){x(a.gridApi.core.getVisibleRows(a.gridApi.grid).length-b.treeNode.children.length)}),a.gridApi.core.on.sortChanged(a,function(a,b){0===b.length?w.order=null:w.order=b[0].name+" "+b[0].sort.direction.toUpperCase(),q()}),a.gridApi.pagination.on.paginationChanged(a,function(a,b){w.offset=(a-1)*b,w.limit=b,q()}),a.gridApi.core.on.filterChanged(a,function(){var a=this.grid;a.columns.forEach(function(a){a.filters[0].term?w[a.name]=a.filters[0].term:delete w[a.name]}),q()})}},q(),t(),u(),v(),o(function(){r()})};var x=function(a){var b=a?30*a+130:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",b+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*a+"px")};a.$on("$destroy",function(){e.unsyncUpdates("agent"),e.unsyncUpdates("user_has_mail_queue")}),a.pause=function(b,c,e){return e&&(a.pauseType=null),i.save({name:c,agent:b.agentId,data2:b.agent,type:e||"DEFAULT PAUSE",data4:e||"DEFAULT PAUSE",channel:"mail"}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})},a.joinQueue=function(e){var g=c.open({animation:!0,templateUrl:"app/channels/mail/realtime/view/agent/queue.modal.add.html",controller:"MailRealtimeViewAgentQueueModalCtrl",resolve:{queues:function(){return _.reject(a.mailQueues,function(b){return!!_.find(a.gridOptions.data,{queue:b.name,isAgent:!1,agentId:e})})}}});g.result.then(function(b){return i.save({name:"QueueAdd",agent:e,queues:_.filter(a.mailQueues,function(a){return _.includes(b.queues,a.id)}),channel:"mail",data1:e,data3:b.queues.join(","),data4:"mail"}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})},function(){b.info("Modal dismissed at: "+new Date)})},a.leaveQueue=function(a,b){return i.save({name:"QueueRemove",agent:a,queueId:b,channel:"mail",data1:a,data3:b,data4:"mail"}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})},a.showInfo=function(a){c.open({animation:!0,templateUrl:"app/channels/mail/realtime/view/agent/agent.modal.info.html",controller:"MailRealtimeViewAgentInfoModalCtrl",resolve:{agent:a}})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.mail.realtime.view.agents",{url:"/agents",templateUrl:"app/channels/mail/realtime/view/agent/agent.html",controller:"MailRealtimeViewAgentCtrl"})}]),angular.module("xCallyShuttleApp").controller("MailRealtimeViewAgentInfoModalCtrl",["$scope","$uibModalInstance","$http","agent",function(a,b,c,d){a.agent=d,a.close=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("MailRealtimeViewAgentQueueModalCtrl",["$scope","$uibModalInstance","$http","queues",function(a,b,c,d){a.queues=d,a.item={},a.save=function(){b.close(a.item)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("MailRealtimeViewApplicationCtrl",["$scope","$log","$uibModal","$translate","socket","xAlert","ReportMailSession","usSpinnerService","$q","uiGridConstants","$timeout",function(a,b,c,d,e,f,g,h,i,j,k){ -function l(){return h.spin("spinner-grid"),g.get({controller:"waiting",controller2:"applications"}).$promise.then(function(b){a.gridOptions.data=b.rows})["catch"](function(a){f.error(a)})["finally"](function(){m(),h.stop("spinner-grid")})}function m(){e.socket.on("report_mail_session:save",function(b){var c=_.find(a.gridOptions.data,{id:b.id});c?(_.merge(c,b),b.leaveAt&&k(function(){_.remove(a.gridOptions.data,{id:b.id})},1e4)):b.leaveAt||a.gridOptions.data.push(b)}),e.socket.on("report_mail_session:remove",function(b){_.remove(a.gridOptions.data,{id:b.id})})}a.moment=moment,a.initApplications=function(){a.gridOptions={headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,columnDefs:[{name:"uniqueid",displayName:"APPLICATION_UNIQUEID",headerCellFilter:"translate"},{name:"application",displayName:"APPLICATION_APPLICATION",headerCellFilter:"translate"},{name:"status",displayName:"APPLICATION_STATUS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span data-ng-if="!row.entity.leaveAt">{{\'APPLICATION_QUEUESTATUS_WAITING\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.complete">{{\'APPLICATION_QUEUESTATUS_COMPLETE\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.timeout">{{\'APPLICATION_TIMEOUT\' | translate}}</span> <span data-ng-if="!row.entity.leaveAt && grid.appScope.showTimers"><css-timer start-time="row.entity.updatedAt"></css-timer></span></div>',enableSorting:!1,enableColumnMenu:!1,enableFiltering:!1},{name:"membername",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.membername || ''}}</span></div>"},{name:"queuename",displayName:"APPLICATION_QUEUE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.queuename || ''}}</span></div>"}],data:[],gridMenuTitleFilter:function(a){var b=i.defer();return b.resolve(d.instant(a)),b.promise},onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){n(a.gridOptions.data.length)})}},l()};var n=function(a){var b=a?30*a+60:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",b+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*a+"px")};a.$on("$destroy",function(){e.unsyncUpdates("report_mail_session")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.mail.realtime.view.applications",{url:"/applications",templateUrl:"app/channels/mail/realtime/view/application/application.html",controller:"MailRealtimeViewApplicationCtrl"})}]),angular.module("xCallyShuttleApp").controller("MailRealtimeViewCtrl",["$scope","$state",function(a,b){a.agents=[{name:"Queues",link:"main.channels.mail.realtime.view.agents.queues"},{name:"Timeline",link:"main.channels.mail.realtime.view.agents.timeline"}],a.sessions=[{name:"Sessions",link:"main.channels.mail.realtime.view.sessions"}],a.tree={queues:[{name:"Queues",link:"main.channels.mail.realtime.view.agents.queues"},{name:"Timeline",link:"main.channels.mail.realtime.view.agents.timeline"}],sessions:[{name:"Sessions",link:"main.channels.mail.realtime.view.sessions"}]},a.timerSwitch={isActive:!0,size:"mini",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"primary"},a.showTimers=!1}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.mail.realtime.view",{url:"/view",templateUrl:"app/channels/mail/realtime/view/view.html",controller:"MailRealtimeViewCtrl"})}]),angular.module("xCallyShuttleApp").factory("ReportMailSession",["$resource",function(a){return a("/api/report/mail/sessions/:id/:controller/:controller2",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("OpenChannelAccount",["$resource",function(a){return a("/api/openchannel/accounts/:accountId/:controller/:id",{id:"@accountId"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.openchannel.accounts",{url:"/accounts",template:"<div ui-view></div>",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:46}}})}]),angular.module("xCallyShuttleApp").controller("OpenChannelAccountListCtrl",["$scope","OpenChannelAccount","gridOptions","$stateParams","xAlert","$translate",function(a,b,c,d,e,f){a.initView=function(){var e={exporterCsvFilename:"openchannel_accounts.csv",columnDefs:[{name:"id",displayName:"ID",cellClass:"text-center",width:75,enableSorting:!1,enableFiltering:!1},{name:"name"},{name:"description"},{name:"action",width:75,buttons:[{"class":"blue-hoki",href:"/channels/openchannel/accounts/view/{{row.entity.id}}/settings",name:"profile"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=c.gridOptions(b,e,a,{accountId:d.accountId})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.openchannel.accounts.list",{url:"/list",templateUrl:"app/channels/openchannel/account/list/list.html",controller:"OpenChannelAccountListCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.openchannel.accounts.view.actions",{url:"/actions",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").factory("OpenChannelApplication",["$resource",function(a){return a("/api/openchannel/applications/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("OpenChannelAccountViewActionListCtrl",["$scope","gridOptions","OpenChannelAccount","$http","$translate","$stateParams","xAlert",function(a,b,c,d,e,f,g){a.initActions=function(){var d={draggable:!0,exporterCsvFilename:"openchannel_applications.csv",enableSorting:!1,enableFiltering:!1,columnDefs:[{name:"app",cellClass:"text-center"},{name:"name",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span>{{row.entity.app == "queue" ? row.entity.OpenchannelQueue.name : row.entity.User.name}}</span></div>'},{name:"timeout",cellClass:"text-center"},{name:"interval",displayName:"APPLICATION_TIME_INTERVAL",cellClass:"text-center",cellTemplate:"<div><span>{{row.entity.Interval ? row.entity.Interval.name : row.entity.interval}}</span></div>"},{name:"action",width:125,buttons:[{"class":"blue-hoki",href:"/channels/openchannel/accounts/view/{{row.entity.OpenchannelAccountId}}/actions/view/{{row.entity.id}}",name:"profile"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.app, row.entity.id)"}]}]};a.gridOptions=b.gridOptions(c,d,a,{accountId:f.accountId,controller:"applications"})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.openchannel.accounts.view.actions.list",{url:"/list",templateUrl:"app/channels/openchannel/account/view/action/list/list.html",controller:"OpenChannelAccountViewActionListCtrl"})}]),angular.module("xCallyShuttleApp").controller("OpenChannelAccountViewActionViewCtrl",["$scope","$http","$stateParams","$translate","$location","xAlert","WizardHandler","socket","application","interval","Agent","Interval","OpenChannelQueue","OpenChannelAccount","OpenChannelApplication","Template","MailAccount","SmsAccount",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.initAction=function(){return a.$application=i.application,a.$stateParams=c,a.$interval=j.interval,a.forms={},a.apps=[{name:"Queue",value:"queue"},{name:"Agent",value:"agent"},{name:"SendMail",value:"sendMail"},{name:"SendSMS",value:"sendSms"}],o.get({id:c.actionId}).$promise.then(function(b){if(a.application=b,a.application.alwaysTime=!1,a.application.IntervalId)a.application.intType="list";else switch(a.application.interval){case"*,*,*,*":a.application.intType="always";break;default:a.application.intType="custom"}if("always"===a.application.intType||"custom"===a.application.intType){var c=a.application.interval.split(",");"*"===c[0]?a.application.alwaysTime=!0:(a.application.t_from=moment(new Date),a.application.t_to=moment(new Date),a.application.t_from.hour(c[0].split("-")[0].split(":")[0]),a.application.t_from.minute(c[0].split("-")[0].split(":")[1]),a.application.t_to.hour(c[0].split("-")[1].split(":")[0]),a.application.t_to.minute(c[0].split("-")[1].split(":")[1])),"*"===c[1]?(a.application.wd_from="always",a.application.wd_to="always"):(a.application.wd_from=c[1].split("-")[0],a.application.wd_to=c[1].split("-")[1]),"*"===c[2]?(a.application.md_from="always",a.application.md_to="always"):(a.application.md_from=c[2].split("-")[0],a.application.md_to=c[2].split("-")[1]),"*"===c[3]?(a.application.m_from="always",a.application.m_to="always"):(a.application.m_from=c[3].split("-")[0],a.application.m_to=c[3].split("-")[1])}a.$watch("application.t_from",function(b){a.application.t_from_hm=moment(b).format("HH:mm")}),a.$watch("application.t_to",function(b){a.application.t_to_hm=moment(b).format("HH:mm")})})["catch"](function(a){f.error(a)})},a.getQueues=function(){return m.get().$promise.then(function(b){a.queues=b.rows})["catch"](function(a){console.error(a)})},a.getSmsAccounts=function(){return r.get().$promise.then(function(b){a.smsAccounts=b.rows})["catch"](function(a){console.error(a)})},a.getAgents=function(){return k.get().$promise.then(function(b){a.agents=b.rows})["catch"](function(a){console.error(a)})},a.getIntervals=function(){return l.get().$promise.then(function(b){a.intervals=b.rows})["catch"](function(a){console.error(a)})},a.updateItem=function(){switch(a.application.intType){case"always":a.application.interval="*,*,*,*",a.application.IntervalId=null;break;case"list":var b=_.find(a.intervals,{id:a.application.IntervalId});a.application.interval=b?"":"*,*,*,*",a.application.IntervalId=b?a.application.IntervalId:null;break;case"custom":var g,h,i,j,k;g=a.application.t_from&&a.application.t_to&&!a.application.alwaysTime?moment(a.application.t_from).format("HH:mm")+"-"+moment(a.application.t_to).format("HH:mm"):"*",a.application.wd_from&&"always"!==a.application.wd_from?(h=a.application.wd_from,a.application.wd_to&&"always"!==a.application.wd_to&&(h+="-"+a.application.wd_to)):h="*",a.application.md_from&&"always"!==a.application.md_from?(i=a.application.md_from,a.application.md_to&&"always"!==a.application.md_to&&(i+="-"+a.application.md_to)):i="*",a.application.m_from&&"always"!==a.application.m_from?(j=a.application.m_from,a.application.m_to&&"always"!==a.application.m_to&&(j+="-"+a.application.m_to)):j="*",k=g+","+h+","+i+","+j,a.application.interval=k,a.application.IntervalId=null}return n.update({accountId:c.accountId,controller:"applications",id:c.actionId},a.application).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success"),e.path("/channels/openchannel/accounts/view/"+c.accountId+"/actions/list")})["catch"](function(a){f.error(a)})},a.getTemplates=function(){return p.get().$promise.then(function(b){a.templates=b.rows})["catch"](function(a){console.error(a)})},a.getMailAccounts=function(){return q.get().$promise.then(function(b){a.mailAccounts=b.rows})["catch"](function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.openchannel.accounts.view.actions.view",{url:"/view/:actionId",templateUrl:"app/channels/openchannel/account/view/action/view/view.html",controller:"OpenChannelAccountViewActionViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("OpenChannelAccountViewActionWizardCtrl",["$scope","$http","Agent","OpenChannelQueue","Interval","$stateParams","$translate","$location","xAlert","WizardHandler","socket","application","interval","OpenChannelApplication","OpenChannelAccount","Template","MailAccount","SmsAccount",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.initWizard=function(){a.apps=[{name:"Queue",value:"queue"},{name:"Agent",value:"agent"},{name:"SendMail",value:"sendMail"},{name:"SendSMS",value:"sendSms"}],a.$application=l.application,a.$stateParams=f,a.$interval=m.interval,a.forms={},a.application={alwaysTime:!0},a.$watch("application.t_from",function(b){a.application.t_from_hm=moment(b).format("HH:mm")}),a.$watch("application.t_to",function(b){a.application.t_to_hm=moment(b).format("HH:mm")})},a.getQueues=function(){return d.get().$promise.then(function(b){a.queues=b.rows})["catch"](function(a){console.error(a)})},a.getAgents=function(){return c.get().$promise.then(function(b){a.agents=b.rows})["catch"](function(a){console.error(a)})},a.getSmsAccounts=function(){return r.get().$promise.then(function(b){a.smsAccounts=b.rows})["catch"](function(a){console.error(a)})},a.getIntervals=function(){return e.get().$promise.then(function(b){a.intervals=b.rows})["catch"](function(a){console.error(a)})},a.createItem=function(){switch(a.application.intType){case"always":a.application.interval="*,*,*,*",a.application.IntervalId=null;break;case"list":var b=_.find(a.intervals,{id:a.application.IntervalId});a.application.interval=b?"":"*,*,*,*",a.application.IntervalId=b?a.application.IntervalId:null;break;case"custom":var c,d,e,j,k;c=a.application.t_from&&a.application.t_to&&!a.application.alwaysTime?moment(a.application.t_from).format("HH:mm")+"-"+moment(a.application.t_to).format("HH:mm"):"*",a.application.wd_from&&"always"!==a.application.wd_from?(d=a.application.wd_from,a.application.wd_to&&"always"!==a.application.wd_to&&(d+="-"+a.application.wd_to)):d="*",a.application.md_from&&"always"!==a.application.md_from?(e=a.application.md_from,a.application.md_to&&"always"!==a.application.md_to&&(e+="-"+a.application.md_to)):e="*",a.application.m_from&&"always"!==a.application.m_from?(j=a.application.m_from,a.application.m_to&&"always"!==a.application.m_to&&(j+="-"+a.application.m_to)):j="*",k=c+","+d+","+e+","+j,a.application.interval=k,a.application.IntervalId=null}return o.save({accountId:f.accountId,controller:"applications"},a.application).$promise.then(function(){i.show(g.instant("MESSAGE_WELL_DONE"),"success"),h.path("/channels/openchannel/accounts/view/"+f.accountId+"/actions/list")})["catch"](function(a){i.error(a)})},a.formValidation=function(a){return a},a.next=function(){j.wizard().next()},a.getMailAccounts=function(){return q.get().$promise.then(function(b){a.mailAccounts=b.rows})["catch"](function(a){console.error(a)})},a.getTemplates=function(){return p.get().$promise.then(function(b){a.templates=b.rows})["catch"](function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.openchannel.accounts.view.actions.wizard",{url:"/wizard",templateUrl:"app/channels/openchannel/account/view/action/wizard/wizard.html",controller:"OpenChannelAccountViewActionWizardCtrl"})}]),angular.module("xCallyShuttleApp").controller("OpenChannelAccountApiViewCtrl",["$scope","OpenChannelAccount","$http","$stateParams","clipboard","$translate","$location","xAlert",function(a,b,c,d,e,f,g,h){a.copyToClipboard=function(a){e.copyText(a),h.show(f.instant("MESSAGE_TEXT_COPIED_CLIPBOARD")+"!","success")},a.initView=function(){b.get({id:d.accountId}).$promise.then(function(b){a.account=b,a.receiveurl=a.account.remote+"/api/openchannel/accounts/"+a.account.id+"/receive"})["catch"](function(a){h.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.openchannel.accounts.view.api",{url:"/api",controller:"OpenChannelAccountApiViewCtrl",templateUrl:"app/channels/openchannel/account/view/api/view/view.html"})}]),angular.module("xCallyShuttleApp").factory("OpenChannelDisposition",["$resource",function(a){return a("/api/openchannel/dispositions/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("OpenChannelInboxViewModaDispositionAddCtrl",["$scope","$uibModalInstance","OpenChannelAccount","id",function(a,b,c,d){a.ok=function(){return c.save({accountId:d,controller:"dispositions"},{name:a.name}).$promise.then(function(a){b.close(a)})},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("OpenChannelAccountDispositionViewCtrl",["$scope","$stateParams","$uibModal","$translate","OpenChannelAccount","xAlert",function(a,b,c,d,e,f){a.initView=function(){return e.get({accountId:b.accountId,controller:"dispositions"}).$promise.then(function(b){a.dispositions=b.rows})["catch"](function(a){console.error(a),f.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.updateDisposition=function(a,c){return e.update({accountId:b.accountId,controller:"dispositions",id:a},{name:c}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE")+"!","success")})["catch"](function(a){console.error(a),f.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.deleteDisposition=function(c){return console.log("delete"),e.remove({accountId:b.accountId,controller:"dispositions",id:c}).$promise.then(function(){_.remove(a.dispositions,{id:c})})["catch"](function(a){console.error(a),f.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.addDisposition=function(){return c.open({animation:!0,templateUrl:"app/channels/openchannel/account/view/disposition/modal/add.modal.html",controller:"OpenChannelInboxViewModaDispositionAddCtrl",resolve:{id:function(){return b.accountId}}}).result.then(function(b){b&&a.dispositions.push(b)})["catch"](function(a){console.error(a),f.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.openchannel.accounts.view.dispositions",{url:"/dispositions",controller:"OpenChannelAccountDispositionViewCtrl",templateUrl:"app/channels/openchannel/account/view/disposition/view/view.html"})}]),angular.module("xCallyShuttleApp").controller("OpenChannelAccountHooksViewCtrl",["$scope","OpenChannelAccount","Pause","$http","$stateParams","$translate","$location","xAlert",function(a,b,c,d,e,f,g,h){a.account={},a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.CONST_TIMEOUT=3e4,a.initView=function(){a.types=[{value:"",name:"-- None --"},{name:"HTTP GET",value:"GET"},{name:"HTTP POST",value:"POST"}],c.get().$promise.then(function(b){a.pauses=b.rows})["catch"](function(a){h.error(a)}),b.get({id:e.accountId}).$promise.then(function(b){a.account=b,a.account.actions.length<1&&a.account.actions.push({action:"pause",enabled:!1,type:null})})["catch"](function(a){h.error(a)})},a.resetActionData=function(a){a.type=null},a.updateItem=function(){return console.log(a.account),b.update({id:e.accountId},a.account).$promise.then(function(){h.show(f.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){h.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.openchannel.accounts.view.hooks",{url:"/hooks",controller:"OpenChannelAccountHooksViewCtrl",templateUrl:"app/channels/openchannel/account/view/hooks/view/view.html"})}]),angular.module("xCallyShuttleApp").controller("OpenChannelAccountSettingViewCtrl",["$scope","OpenChannelAccount","$http","$stateParams","clipboard","$translate","$location","xAlert","List",function(a,b,c,d,e,f,g,h,i){a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.CONST_TIMEOUT=3e4,a.types=[{name:"HTTP GET",value:"GET"},{name:"HTTP POST",value:"POST"}],a.account={},a.initView=function(){i.get().$promise.then(function(b){a.lists=b.rows})["catch"](function(a){console.error(a)}),b.get({id:d.accountId}).$promise.then(function(b){a.account=b})["catch"](function(a){h.error(a)})},a.updateItem=function(){return b.update({id:d.accountId},a.account).$promise.then(function(){h.show(f.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){h.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.openchannel.accounts.view.settings",{url:"/settings",controller:"OpenChannelAccountSettingViewCtrl",templateUrl:"app/channels/openchannel/account/view/setting/view/view.html"})}]),angular.module("xCallyShuttleApp").controller("OpenChannelAccountViewCtrl",["$scope","OpenChannelAccount","$http","$stateParams","clipboard","$translate","$location","xAlert","List",function(a,b,c,d,e,f,g,h,i){a.initView=function(){return a.account={},b.get({id:d.accountId}).$promise.then(function(b){a.account=b})["catch"](function(a){h.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.openchannel.accounts.view",{url:"/view/:accountId",templateUrl:"app/channels/openchannel/account/view/view.html",controller:"OpenChannelAccountViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]})}]}})}]),angular.module("xCallyShuttleApp").controller("OpenChannelAccountWizardCtrl",["$scope","$http","$location","$translate","WizardHandler","xAlert","OpenChannelAccount",function(a,b,c,d,e,f,g){a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.initWizard=function(){a.forms={},a.item={},a.item.remote=c.protocol()+"://"+location.host},a.goNext=function(){e.wizard().next()},a.formValidation=function(a){return a},a.createItem=function(){return g.save(a.item).$promise.then(function(){c.path("/channels/openchannel/accounts/list")})["catch"](function(a){f.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.openchannel.accounts.wizard",{url:"/wizard",templateUrl:"app/channels/openchannel/account/wizard/wizard.html",controller:"OpenChannelAccountWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.openchannel.inbox",{url:"/inbox",template:"<div ui-view></div>",data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:48}}})}]),angular.module("xCallyShuttleApp").controller("OpenChannelInboxInfoModalCtrl",["$scope","$translate","$uibModalInstance","$stateParams","xAlert","data",function(a,b,c,d,e,f){a.data=null,a.initInfo=function(){f&&(a.data=_.isEmpty(JSON.parse(f))?null:JSON.parse(f))},a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").directive("message",["$rootScope","OpenChannelMessage","List","xAlert","$translate","$uibModal",function(a,b,c,d,e,f){return{restrict:"E",scope:{Message:"=message",accounttype:"=accounttype",listId:"="},templateUrl:"app/channels/openchannel/inbox/message/message.html",link:function(b){b.openContact=function(f,g){if(b.listId){if(!g)return;var h;switch(f){case"phone":h={phone:g};break;case"email":h={email:g};break;default:return}return c.save({listId:b.listId,controller:"contacts"},h).$promise.then(function(b){var c=_.find(a.$root.workspaces,{contactID:b.id});c?c.active=!0:a.$root.workspaces.push({active:!0,"class":"icon-user",contactID:b.id,name:b.phone,type:"contact"})})["catch"](function(a){console.error(a)})}d.show(e.instant("MESSAGE_NO_LIST_CONFIGURED"),"info")},b.info=function(a){f.open({animation:!0,templateUrl:"app/channels/openchannel/inbox/message/info.modal.html",controller:"OpenChannelInboxInfoModalCtrl",resolve:{data:function(){return a}}})}}}}]),angular.module("xCallyShuttleApp").directive("openchannelRoom",["OpenChannelReport","$cookieStore","$translate","$uibModal","$timeout","Tag","CannedAnswer","Auth","OpenChannelAccount","OpenChannelRoom","OpenChannelMessage","xAlert","usSpinnerService","socket","$stateParams","$rootScope",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){return{restrict:"E",scope:{workspace:"=",index:"=",submit:"&onSubmit"},templateUrl:"app/channels/openchannel/inbox/room/room.directive.html",link:function(a){a.modelOptions={debounce:{"default":500,blur:250},getterSetter:!0},a.panelLeft=null,a.panelRight="col-md-12",a.togglePanelLeft=function(){a.panelLeft?(a.panelLeft=null,a.panelRight="col-md-12"):(a.panelLeft="col-md-6",a.panelRight="col-md-6")},a.form={disabled:!1,from:"",to:a.workspace.data&&a.workspace.data.to?a.workspace.data.to:"",body:""},n.socket.on("openchannel_message:save",function(b){return a.workspace.id&&b.OpenchannelRoomId==a.workspace.id?k.get({id:b.id}).$promise.then(function(b){a.Room||(a.Room={OpenchannelMessages:[]});var c=_.findIndex(a.Room.OpenchannelMessages,{id:b.id});c>-1?_.merge(a.Room.OpenchannelMessages[c],b):a.Room.OpenchannelMessages.unshift(b),a.panelLeft="col-md-6",a.panelRight="col-md-6"})["catch"](function(a){console.error(a)}):void 0}),n.socket.on("openchannel_message:update",function(b){if(a.Room&&b.OpenchannelRoomId==a.workspace.id){var c=_.find(a.Room.OpenchannelMessages,{id:b.id});c&&_.merge(c,b)}}),n.socket.on("openchannel_room:save",function(b){a.Room&&b.id==a.workspace.id&&(a.Room.status=b.status,a.Room.disposition=b.disposition)}),a.closeRoom=function(b){return d.open({animation:!0,templateUrl:"app/channels/openchannel/inbox/view/view.status.modal.html",controller:"OpenChannelInboxViewModalStatusCtrl",resolve:{closed:function(){return"CLOSED"===a.Room.status},accountId:function(){return a.Room.OpenchannelAccountId}}}).result.then(function(a){var c={id:b,status:"CLOSED"};return a.disposition&&(c.disposition=a.disposition),j.update(c).$promise["catch"](function(a){l.error(a)})})},a.openRoom=function(a,b){var c=_.find(p.workspaces,{id:a,type:"openchannelRoom"});c?c.active=!0:p.workspaces.push({id:a,name:b,type:"openchannelRoom","class":"icon-globe",active:!0})},f.get().$promise.then(function(b){a.tags=_.map(b.rows,"name")})["catch"](function(a){console.error(a)}),i.get().$promise.then(function(b){a.Accounts=b.rows})["catch"](function(a){console.error(a)}),a.workspace.id?(a.panelLeft="col-md-6",a.panelRight="col-md-6",j.get({id:a.workspace.id}).$promise.then(function(b){a.Room=b,a.form.from=a.Room.OpenchannelAccount.name,a.form.to=a.Room.contact,a.form.tags=a.Room.tags})["catch"](function(a){console.error(a)})["finally"](function(){m.stop("spinner-grid"),a.form.disabled=!1})):m.stop("spinner-grid"),a.onSelect=function(){a.form.body+=a.modelOptions.selectedAnswer,delete a.modelOptions.selectedAnswer},a.onSelectAnswer=function(b){a.form.body+=b,a.selectedAnswer=""},a.getAnswers=function(a){return g.get({key:a}).$promise.then(function(a){return _.map(a.rows,"value")})},a.loadAgents=function(){d.open({animation:!0,templateUrl:"app/channels/openchannel/inbox/view/view.agents.modal.html",controller:"OpenChannelInboxViewModalAgentCtrl",resolve:{roomId:function(){return a.workspace.id}}})},a.onChanged=function(){return j.patch({id:a.workspace.id},{tags:a.form.tags}).$promise["catch"](function(a){console.error(a)})},a.sendMessage=function(){m.spin("spinner-grid");var b=_.find(a.Accounts,{name:a.form.from}).id;if(b){var d={from:a.form.from,to:a.form.to,body:a.form.body,OpenchannelRoomId:a.Room?a.Room.id:null};return i.save({accountId:b,controller:"send"},d).$promise.then(function(b){return l.show(c.instant("MESSAGE_WELL_DONE"),"success"),a.Room?a.Room:j.get({id:"messages",controller:b.id}).$promise}).then(function(b){b&&(a.form.body="",a.workspace.id=b.id,a.workspace.name=b.contact,a.Room=b,a.panelLeft="col-md-6",a.panelRight="col-md-6")})["catch"](function(a){l.error(a)})["finally"](function(){m.stop("spinner-grid")})}}}}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.openchannel.inbox.view.account",{url:"/account/:id",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("OpenChannelInboxViewAccountListCtrl",["$scope","$rootScope","$uibModal","$translate","$stateParams","$state","Tag","usSpinnerService","socket","OpenChannelAccount","OpenChannelRoom","gridOptions","uiGridConstants","Auth","Modal","xAlert","uibButtonConfig","localStorageService",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){a.loadAgents=function(a){c.open({animation:!0,templateUrl:"app/channels/openchannel/inbox/view/view.agents.modal.html",controller:"OpenChannelInboxViewModalAgentCtrl",resolve:{roomId:a}})},a.initView=function(){q.activeClass="green-haze",a.id=[],a.isAdmin=n.isAdmin(),a.isAgent=n.isAgent(),a.uncheckable=!1,a.query={status:r.get("openchannelStatus")?r.get("openchannelStatus"):"NEW",tags:r.get("openchannelTags")?r.get("openchannelTags"):[]},a.$watch("query.status",function(b,c){b!==c&&(r.set("openchannelStatus",a.query.status),a.getPage())},!0),g.get().$promise.then(function(b){a.tags=_.map(b.rows,"name")})["catch"](function(a){console.error(a)}),a.gridOptions={exporterCsvFilename:"openchannel_rooms.csv",enableRowHeaderSelection:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,enableFiltering:!0,enableSorting:!0,enableGridMenu:!1,flatEntityAccess:!0,showGridFooter:!0,fastWatch:!0,enableSelectAll:!0,enableHorizontalScrollbar:0,enableVerticalScrollbar:0,columnDefs:[{name:"lastEvent",displayName:"",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div> <span data-ng-class=\"{'icon-arrow-up font-green': row.entity.lastEvent === 'SENT', 'icon-arrow-up font-yellow': row.entity.lastEvent === 'SENDING', 'icon-arrow-down font-green': row.entity.lastEvent === 'RECEIVED', 'icon-close font-red': row.entity.lastEvent === 'FAILED', 'icon-question': !row.entity.lastEvent}\"> </span> </div>",width:30,enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"tags",displayName:"",headerCellTemplate:'<i class="icon-tag" style="margin-top: 8px; margin-left: 8px;"></i>',cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div><i data-ng-class=\"row.entity.tags.length ? 'icon-tag' : ''\" title=\"{{row.entity.tags}}\"></i></div>",width:30,enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"id",displayName:"Id",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div><span>#{{row.entity.id}}</span></div>",width:75,enableSorting:!1,enableFiltering:!0,enableColumnMenu:!1},{name:"contact",cellClass:"text-center"},{name:"disposition",cellClass:"text-center"},{name:"createdAt",cellFilter:"date:'dd/MM/yyyy HH:mm'",width:120,enableFiltering:!1},{name:"updatedAt",cellFilter:"date:'dd/MM/yyyy HH:mm'",width:120,enableFiltering:!1,sort:{direction:m.DESC}},{name:"action",cellTemplate:'<div> <a class="btn btn-icon-only font-green" data-ng-click="grid.appScope.openRoom(row.entity.id, row.entity.contact)"><i class="glyphicon glyphicon-comment" aria-hidden="true"></i></a> <a class="btn btn-icon-only font-red" data-ng-show="grid.appScope.isAdmin" data-ng-click="grid.appScope.deleteItem(row.entity.id,row.entity.id)"><i class="fa fa-trash" aria-hidden="true"></i> </div>',enableSorting:!1,cellClass:"ui-grid-vcenter",width:90,enableFiltering:!1,enableColumnMenu:!1}],data:[],onRegisterApi:function(b){a.gridApi=b,a.gridApi.selection&&(a.gridApi.selection.on.rowSelectionChanged(a,function(b){b.isSelected?a.id.push(a.gridApi.grid.options.primaryKey?b.entity[a.gridApi.grid.options.primaryKey]:b.entity.id):_.pull(a.id,a.gridApi.grid.options.primaryKey?b.entity[a.gridApi.grid.options.primaryKey]:b.entity.id)}),a.gridApi.selection.on.rowSelectionChangedBatch(a,function(b){b[0].isSelected?a.id=_.union(a.id,_.map(b,a.gridApi.grid.options.primaryKey?"entity."+a.gridApi.grid.options.primaryKey:"entity.id")):_.map(b,a.gridApi.grid.options.primaryKey?"entity."+a.gridApi.grid.options.primaryKey:"entity.id").forEach(function(b){ -_.pull(a.id,b)})}))}},i.socket.on("openchannel_room:remove",function(b){_.remove(a.workspaces,{id:b.id,type:"openchannelRoom"}),_.remove(a.gridOptions.data,{id:b.id})}),a.getPage(a.query)},a.onChanged=function(){a.getPage(a.query)},a.tagItems=function(){return c.open({animation:!0,templateUrl:"app/channels/openchannel/inbox/view/view.tags.modal.html",controller:"OpenChannelInboxViewModalTagCtrl",resolve:{id:function(){return a.id}}}).result.then(function(){a.gridApi.selection.clearSelectedRows(),a.id=[],a.getPage()})},a.openRoom=function(b,c){var d=_.find(a.workspaces,{id:b,type:"openchannelRoom"});return d?d.active=!0:a.workspaces.push({id:b,name:c,type:"openchannelRoom","class":"icon-globe",active:!0}),b&&"agent"===n.getCurrentUser().role&&"PENDING"!==a.query.status&&"CLOSED"!==a.query.status?k.patch({id:b},{status:"OPEN",openReason:"agent"}).$promise["catch"](function(a){console.error(a)}):void 0},a.getPage=function(b){h.spin("spinner-grid");var c={accountId:e.id,controller:"rooms"};return b&&_.merge(c,b),a.query&&_.merge(c,a.query),j.query(c).$promise.then(function(b){r.set("openchannelAccountId",e.id),a.gridOptions.data=b,i.socket.on("openchannel_room:save",function(b){if(b.OpenchannelAccountId==e.id){var c=_.find(a.gridOptions.data,{id:b.id});c?c.status!==b.status?_.remove(a.gridOptions.data,{id:b.id}):_.merge(c,b):a.query.status===b.status&&a.gridOptions.data.push(b)}}),i.socket.on("openchannel_room:remove",function(b){_.remove(a.gridOptions.data,{id:b.id})})})["catch"](function(a){p.error(a)})["finally"](function(){h.stop("spinner-grid")})},a.deleteItem=o.confirm["delete"](function(b){var c={id:b};return console.log(c),k["delete"](c).$promise.then(function(){a.getPage(),p.show(d.instant("MESSAGE_WELL_DONE")+"!","success"),a.gridApi.selection.clearSelectedRows(),a.id=[]})["catch"](function(a){p.error(a)})}),a.deleteItems=o.confirm["delete"](function(){var b={ids:a.id};return k["delete"](b).$promise.then(function(){a.getPage(),p.show(d.instant("MESSAGE_WELL_DONE")+"!","success"),a.gridApi.selection.clearSelectedRows(),a.id=[]})["catch"](function(a){p.error(a)})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.openchannel.inbox.view.account.list",{url:"/list",templateUrl:"app/channels/openchannel/inbox/view/account/list/list.html",controller:"OpenChannelInboxViewAccountListCtrl"})}]),angular.module("xCallyShuttleApp").controller("OpenChannelInboxViewModalAgentCtrl",["$scope","$uibModalInstance","$translate","$stateParams","Agent","OpenChannelRoom","xAlert","roomId",function(a,b,c,d,e,f,g,h){a.initModal=function(){a.agents=[],a.item={agents:[]},e.get().$promise.then(function(b){b.rows.forEach(function(b){a.agents.push(b)})})["catch"](function(a){console.error(a)}),f.query({id:h,controller:"agents"}).$promise.then(function(b){b.forEach(function(b){a.agents.push(b),a.item.agents.push(b.id)})})["catch"](function(a){console.error(a)}),a.modal={dismissable:!0,title:"APPLICATION_MESSAGE_SEND_RETRY",text:"MESSAGE_MESSAGE_SEND_RETRY",buttons:[{classes:"btn btn-success",text:"APPLICATION_RETRY",click:function(a){b.close(a)}},{classes:"btn default",text:"APPLICATION_CANCEL",click:function(a){b.dismiss(a)}}]}},a.ok=function(){return f.update({id:h,controller:"agents",agents:a.item.agents}).$promise.then(function(){g.show(c.instant("MESSAGE_WELL_DONE"),"success"),b.close()})["catch"](function(a){console.error(a)})},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("OpenChannelInboxViewCtrl",["$scope","$location","$stateParams","$translate","$uibModal","socket","Auth","xAlert","OpenChannelRoom","OpenChannelAccount","localStorageService",function(a,b,c,d,e,f,g,h,i,j,k){a.initView=function(){j.get().$promise.then(function(c){var d=null;if(a.openchannelAccounts=c.rows,a.openchannelAccounts.length){var e,f=k.get("openchannelAccountId");e=f&&_.find(a.openchannelAccounts,{id:Number(f)})?f:a.openchannelAccounts[0].id,d="/channels/openchannel/inbox/view/account/"+e+"/list"}d&&b.path(d)})["catch"](function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.openchannel.inbox.view",{url:"/view",templateUrl:"app/channels/openchannel/inbox/view/view.html",controller:"OpenChannelInboxViewCtrl",reload:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/inbox.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("OpenChannelInboxViewModalStatusCtrl",["$scope","$uibModalInstance","closed","OpenChannelAccount","accountId",function(a,b,c,d,e){a.modal={title:"APPLICATION_CONFIRM_CLOSE",text:"MESSAGE_ARE_YOU_SURE_YOU_WANT_TO_CLOSE"},a.initDisposition=function(){return d.get({accountId:e,controller:"dispositions"}).$promise.then(function(b){a.dispositions=b.rows})["catch"](function(a){console.error(a)})},a.item={},a.closed=c,a.ok=function(){b.close(a.item)},a.cancel=function(){b.dismiss()}}]),angular.module("xCallyShuttleApp").controller("OpenChannelInboxViewModalTagCtrl",["$scope","$uibModalInstance","$translate","$stateParams","Tag","OpenChannelRoom","xAlert","id",function(a,b,c,d,e,f,g,h){a.initModal=function(){return a.tags=[],a.item={tags:[]},a.modal={dismissable:!0,title:"APPLICATION_MESSAGE_SEND_RETRY",text:"MESSAGE_MESSAGE_SEND_RETRY",buttons:[{"class":"btn-success",text:"APPLICATION_TAG",click:function(){var d={status:!0};return f.patch({id:h},{tags:a.item.tags}).$promise.then(function(){g.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(){d.status=!1,g.show(c.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})["finally"](function(){b.close(d)})}},{"class":"default",text:"APPLICATION_CANCEL",click:function(a){b.dismiss(a)}}]},e.get().$promise.then(function(b){a.tags=_.map(b.rows,"name")})["catch"](function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.openchannel",{url:"/openchannel",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:20}}})}]),angular.module("xCallyShuttleApp").factory("OpenChannelReport",["$resource",function(a){return a("/api/report/openchannel/:id/:controller1/:controller2",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("OpenChannelRoom",["$resource",function(a){return a("/api/openchannel/rooms/:id/:controller",{id:"@id",controller:"@controller"},{update:{method:"PUT"},patch:{method:"PATCH"}})}]),angular.module("xCallyShuttleApp").factory("OpenChannelMessage",["$resource",function(a){return a("/api/openchannel/messages/:id/:controller",{id:"@id",controller:"@controller"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("OpenChannelQueueListCtrl",["$scope","OpenChannelQueue","gridOptions","$uibModal","xAlert","Auth",function(a,b,c,d,e,f){a.initView=function(){a.Auth=f;var d={exporterCsvFilename:"openchanel_queues.csv",columnDefs:[{name:"name"},{name:"description"},{name:"timeout"},{name:"strategy"},{name:"action",width:100,buttons:[{"class":"blue-hoki",href:"/channels/openchannel/queues/view/{{row.entity.id}}/settings",name:"settings"},{"class":"green-meadow",href:"/channels/openchannel/queues/view/{{row.entity.id}}/agents",name:"agents",hide:"user"===f.getCurrentUser().role},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=c.gridOptions(b,d,a)},a.createItem=function(){var b=d.open({animation:!0,templateUrl:"app/channels/openchannel/queue/list/list.create.modal.html",controller:"OpenChannelQueueListCreateCtrl",size:"lg"});b.result.then(function(b){console.log(b),a.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("OpenChannelQueueListCreateCtrl",["$scope","$uibModalInstance","$translate","xAlert","OpenChannelQueue","Team","strategies",function(a,b,c,d,e,f,g){a.form={},a.strategies=g,a.item={penalty:0,agents:[]},a.getTeams=function(){return f.get({controller:"associations"}).$promise.then(function(b){a.teams=b.rows}).then(function(){ComponentsDropdowns.bindQueue(a.teams,[],function(){return{select:function(b){a.item.agents=_.union(a.item.agents,b)},deselect:function(b){a.item.agents=_.difference(a.item.agents,b)}}})})["catch"](function(a){console.error(a)})},a.save=function(){return console.log(a.item),e.save(a.item).$promise.then(function(a){b.close(a)})["catch"](function(a){d.error(a)})},a.cancel=function(){b.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.openchannel.queues.list",{url:"/list",templateUrl:"app/channels/openchannel/queue/list/list.html",controller:"OpenChannelQueueListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").factory("OpenChannelQueue",["$resource",function(a){return a("/api/openchannel/queues/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.openchannel.queues",{url:"/queues",template:"<div ui-view></div>",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:47}}})}]),angular.module("xCallyShuttleApp").controller("OpenChannelQueueViewCtrl",["$scope","$http","Auth","$translate","$stateParams","xAlert","Team","OpenChannelQueue","strategies",function(a,b,c,d,e,f,g,h,i){a.strategies=i,a.Auth=c;var j=function(){return{select:function(b){return h.save({id:a.queue.id,controller:"agents"},{agents:b,penalty:a.queue.penalty}).$promise.then(function(b){console.log("sel",b),a.getTeams()})["catch"](function(a){console.error(a)})},deselect:function(b){return h["delete"]({id:a.queue.id,controller:"agents",agents:b}).$promise.then(function(b){console.log("desel",b),a.getTeams()})["catch"](function(a){console.error(a)})}}};a.getQueue=function(){return h.get({id:e.id}).$promise.then(function(b){b.penalty=0,a.queue=b})["catch"](function(a){console.error(a)})},a.updateQueue=function(){return h.update({id:e.id},{name:a.queue.name,description:a.queue.description,timeout:a.queue.timeout,strategy:a.queue.strategy}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})},a.getTeams=function(){return g.get({controller:"associations"}).$promise.then(function(b){return a.teams=b.rows,console.log(b.rows),h.get({id:e.id,controller:"agents"}).$promise}).then(function(b){console.log(b),ComponentsDropdowns.bindQueue(a.teams,_.map(b.rows,function(a){return{id:a.id,penalty:a.UserHasOpenchannelQueue.penalty}}),j)})["catch"](function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.openchannel.queues.view",{url:"/view/:id",templateUrl:"app/channels/openchannel/queue/view/view.html",controller:"OpenChannelQueueViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.channels.openchannel.queues.view.settings",{url:"/settings",templateUrl:"app/channels/openchannel/queue/view/view.settings.html"}).state("main.channels.openchannel.queues.view.agents",{url:"/agents",templateUrl:"app/channels/openchannel/queue/view/view.agents.html",cache:!1,serie:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.openchannel.realtime",{url:"/realtime",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:49}}})}]),angular.module("xCallyShuttleApp").controller("OpenChannelRealtimeViewAgentCtrl",["$scope","$log","$uibModal","$translate","socket","xAlert","Agent","Pause","Action","OpenChannelQueue","usSpinnerService","$q","uiGridConstants","$timeout","Auth","User",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){function q(){return k.spin("grid-spinner"),g.get(w).$promise.then(function(b){a.gridOptions.totalItems=b.count,a.gridOptions.data=[],b.rows.forEach(function(a){s(a)})})["catch"](function(a){f.error(a)})["finally"](function(){k.stop("grid-spinner")})}function r(){e.socket.on("agent:save",function(b){b=b.newValues||b;var c=_.find(a.gridOptions.data,{agentId:b.id,isAgent:!0});c&&(c.online=_.has(b,"online")?b.online:c.online,c.lastLoginAt=_.has(b,"lastLoginAt")?b.lastLoginAt:c.lastLoginAt,c.pause=_.has(b,"openchannelPause")?b.openchannelPause:c.openchannelPause,c.pauseType=_.has(b,"pauseType")?b.pauseType:c.pauseType,c.lastPauseAt=_.has(b,"lastPauseAt")?b.lastPauseAt:c.lastPauseAt,c.ipaddr=_.has(b,"ipaddr")?b.ipaddr:c.ipaddr,c.port=_.has(b,"port")?b.port:c.port,c.fullcontact=_.has(b,"fullcontact")?b.fullcontact:c.fullcontact,c.useragent=_.has(b,"useragent")?b.useragent:c.useragent,c.lastms=_.has(b,"lastms")?b.lastms:c.lastms,c.internal=_.has(b,"internal")?b.internal:c.internal,c.fullname=b.hasOwnProperty("fullname")?b.fullname:c.fullname,_.map(a.gridOptions.data,function(a){a.isAgent||a.agentId!==b.id||(a.online=_.has(b,"online")?b.online:a.online)}))}),e.socket.on("agent:remove",function(b){_.remove(a.gridOptions.data,{agentId:b.id})}),e.socket.on("user_has_openchannel_queue:save",function(b){var c=_.includes(_.map(a.pOpenchannelQueues,"id"),b.OpenchannelQueueId)||o.isAdmin();if(c){var d=_.find(a.gridOptions.data,{agentId:Number(b.UserId),isAgent:!0});if(d){var e=a.gridOptions.data.indexOf(d);a.gridOptions.data.splice(e+1,0,{isAgent:!1,agentId:Number(b.UserId),queue:b.queue,queueId:b.OpenchannelQueueId,agent:b.membername,online:d.online})}}}),e.socket.on("user_has_openchannel_queue:remove",function(b){_.remove(a.gridOptions.data,{agentId:b.UserId,queueId:b.OpenchannelQueueId});var c=_.filter(a.gridOptions.data,{agentId:b.UserId});c&&c.length<=1&&!o.isAdmin()&&_.remove(a.gridOptions.data,{agentId:b.UserId})})}function s(b){a.gridOptions.data.push({isAgent:!0,agentId:b.id,agent:b.name,online:b.online,lastLoginAt:b.lastLoginAt,lastPauseAt:b.lastPauseAt,pause:b.openchannelPause,pauseType:b.pauseType,ipaddr:b.ipaddr,port:b.port,fullcontact:b.fullcontact,useragent:b.useragent,lastms:b.lastms,internal:b.internal,$$treeLevel:0,fullname:b.fullname}),b.OpenchannelQueues&&b.OpenchannelQueues.forEach(function(c){a.gridOptions.data.push({isAgent:!1,agentId:b.id,queue:c.name,queueId:c.id,agent:b.name,online:b.online})})}function t(){return h.get().$promise.then(function(b){a.pauses=b.rows,e.syncUpdates("pause",a.pauses)})["catch"](function(a){f.error(a)})}function u(){return j.get().$promise.then(function(b){a.openchannelQueues=b.rows,e.syncUpdates("openchannel_queue",a.openchannelQueues)})["catch"](function(a){f.error(a)})}function v(){return p.query({id:a.user.id,controller:"allowed",controller2:"openchannel",controller3:"queues"}).$promise.then(function(b){a.pOpenchannelQueues=b})["catch"](function(a){f.error(a)})}a.openchannelQueues=[];var w={controller:"realtime",controller1:"openchannel",offset:0,limit:10};a.moment=moment,a.initAgents=function(){a.user=o.getCurrentUser(),a.gridOptions={enableGridMenu:!0,headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,showGridFooter:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,useExternalPagination:!0,useExternalSorting:!0,useExternalFiltering:!0,multiSelect:!0,showTreeExpandNoChildren:!0,columnDefs:[{name:"name",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.isAgent">{{row.entity.agent}} <{{row.entity.internal}}></div>'},{name:"fullname",displayName:"APPLICATION_FULLNAME",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.isAgent">{{row.entity.fullname}}</div>'},{name:"online",displayName:"APPLICATION_ONLINE",width:150,headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.online != null && row.entity.isAgent"><i class="fa" data-ng-class="{\'font-green\':row.entity.online, \'font-red\':!row.entity.online,\'fa-user\':row.entity.online,\'fa-user-times\':!row.entity.online}"></i> <i data-ng-if="row.entity.online" class="fa fa-sign-out font-red pointer-cursor" title="logout" data-ng-click="grid.appScope.agentLogout(row.entity.agent,row.entity.agentId)"></i> <span data-ng-if="row.entity.online && grid.appScope.showTimers" class="left-margin"><css-timer start-time="row.entity.lastLoginAt"></css-timer></span></div>',filter:{type:m.filter.SELECT,selectOptions:[{value:"true",label:"ONLINE"},{value:"false",label:"OFFLINE"}]}},{name:"openchannelPause",displayName:"APPLICATION_PAUSE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.pause != null && row.entity.online" class="ui-grid-vcenter"><i data-ng-if="row.entity.pause" data-ng-click="grid.appScope.pause(row.entity,\'unpause\')" class="fa fa-play font-green pointer-cursor left-margin" title="{{\'APPLICATION_RESUME\' | translate}}"></i><i class="fa fa-pause font-yellow pointer-cursor" data-ng-click="grid.appScope.pause(row.entity,\'pause\',\'DEFAULT PAUSE\')" title="{{\'APPLICATION_DEFAULT_PAUSE\' | translate}}"></i><select data-ng-if="grid.appScope.pauses.length" class="pause-select pointer-cursor" data-ng-model="grid.appScope.pauseType" data-ng-change="grid.appScope.pause(row.entity,\'pause\',grid.appScope.pauseType)"><option class="pointer-cursor" data-ng-repeat="pause in grid.appScope.pauses">{{pause.name}}</option></select> <span data-ng-if="row.entity.pause" class="left-margin">({{row.entity.pauseType}})</span><span data-ng-if="row.entity.pause && grid.appScope.showTimers" class="left-margin"><css-timer start-time="row.entity.lastPauseAt"></css-timer></span></div>',filter:{type:m.filter.SELECT,selectOptions:[{value:"true",label:"PAUSED"},{value:"false",label:"NOT PAUSED"}]},enableSorting:!1,enableColumnMenu:!1},{name:"queue",displayName:"APPLICATION_QUEUE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"action",displayName:"",width:170,cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><button data-ng-if="row.entity.queueId" class="btn btn-xs red-sunglo" data-ng-click="grid.appScope.leaveQueue(row.entity.agentId,row.entity.queueId)"><i class="icon-ban"></i> {{\'APPLICATION_LEAVE\' | translate}}</button><button data-ng-if="row.entity.isAgent && row.treeNode.children.length < grid.appScope.openchannelQueues.length" class="btn btn-xs blue-hoki" data-ng-click="grid.appScope.joinQueue(row.entity.agentId)"><i class="icon-plus"></i> {{\'APPLICATION_JOIN_QUEUE\' | translate}}</button><div>',enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1}],data:[],gridMenuTitleFilter:function(a){var b=l.defer();return b.resolve(d.instant(a)),b.promise},onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){x(a.gridApi.core.getVisibleRows(a.gridApi.grid).length)}),a.gridApi.treeBase.on.rowExpanded(a,function(b){x(a.gridApi.core.getVisibleRows(a.gridApi.grid).length+b.treeNode.children.length)}),a.gridApi.treeBase.on.rowCollapsed(a,function(b){x(a.gridApi.core.getVisibleRows(a.gridApi.grid).length-b.treeNode.children.length)}),a.gridApi.core.on.sortChanged(a,function(a,b){0===b.length?w.order=null:w.order=b[0].name+" "+b[0].sort.direction.toUpperCase(),q()}),a.gridApi.pagination.on.paginationChanged(a,function(a,b){w.offset=(a-1)*b,w.limit=b,q()}),a.gridApi.core.on.filterChanged(a,function(){var a=this.grid;a.columns.forEach(function(a){a.filters[0].term?w[a.name]=a.filters[0].term:delete w[a.name]}),q()})}},q(),t(),u(),v(),n(function(){r()})};var x=function(a){var b=a?30*a+130:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",b+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*a+"px")};a.$on("$destroy",function(){e.unsyncUpdates("agent"),e.unsyncUpdates("user_has_openchannel_queue")}),a.pause=function(b,c,e){return e&&(a.pauseType=null),i.save({name:c,agent:b.agentId,data2:b.agent,type:e||"DEFAULT PAUSE",data4:e||"DEFAULT PAUSE",channel:"openchannel"}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})},a.joinQueue=function(e){var g=c.open({animation:!0,templateUrl:"app/channels/openchannel/realtime/view/agent/queue.modal.add.html",controller:"OpenChannelRealtimeViewAgentQueueModalCtrl",resolve:{queues:function(){return _.reject(a.openchannelQueues,function(b){return!!_.find(a.gridOptions.data,{queue:b.name,isAgent:!1,agentId:e})})}}});g.result.then(function(b){return i.save({name:"QueueAdd",agent:e,queues:_.filter(a.openchannelQueues,function(a){return _.includes(b.queues,a.id)}),channel:"openchannel",data1:e,data3:b.queues.join(","),data4:"openchannel"}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})},function(){b.info("Modal dismissed at: "+new Date)})},a.leaveQueue=function(a,b){return i.save({name:"QueueRemove",agent:a,queueId:b,channel:"openchannel",data1:a,data3:b,data4:"openchannel"}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})},a.showInfo=function(a){c.open({animation:!0,templateUrl:"app/channels/openchannel/realtime/view/agent/agent.modal.info.html",controller:"OpenChannelRealtimeViewAgentInfoModalCtrl",resolve:{agent:a}})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.openchannel.realtime.view.agents",{url:"/agents",templateUrl:"app/channels/openchannel/realtime/view/agent/agent.html",controller:"OpenChannelRealtimeViewAgentCtrl"})}]),angular.module("xCallyShuttleApp").controller("OpenChannelRealtimeViewAgentInfoModalCtrl",["$scope","$uibModalInstance","$http","agent",function(a,b,c,d){a.agent=d,a.close=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("OpenChannelRealtimeViewAgentQueueModalCtrl",["$scope","$uibModalInstance","$http","queues",function(a,b,c,d){a.queues=d,a.item={},a.save=function(){b.close(a.item)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("OpenChannelRealtimeViewApplicationCtrl",["$scope","$log","$uibModal","$translate","socket","xAlert","ReportOpenChannelSession","usSpinnerService","$q","uiGridConstants","$timeout",function(a,b,c,d,e,f,g,h,i,j,k){function l(){return h.spin("spinner-grid"),g.get({controller:"waiting",controller2:"applications"}).$promise.then(function(b){a.gridOptions.data=b.rows})["catch"](function(a){f.error(a)})["finally"](function(){m(),h.stop("spinner-grid")})}function m(){e.socket.on("report_openchannel_session:save",function(b){var c=_.find(a.gridOptions.data,{id:b.id});c?(_.merge(c,b),b.leaveAt&&k(function(){_.remove(a.gridOptions.data,{id:b.id})},1e4)):b.leaveAt||a.gridOptions.data.push(b)}),e.socket.on("report_openchannel_session:remove",function(b){_.remove(a.gridOptions.data,{id:b.id})})}a.moment=moment,a.initApplications=function(){a.gridOptions={headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,columnDefs:[{name:"uniqueid",displayName:"APPLICATION_UNIQUEID",headerCellFilter:"translate"},{name:"accountname",displayName:"APPLICATION_ACCOUNT",headerCellFilter:"translate"},{name:"application",displayName:"APPLICATION_APPLICATION",headerCellFilter:"translate"},{name:"status",displayName:"APPLICATION_STATUS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span data-ng-if="!row.entity.leaveAt">{{\'APPLICATION_QUEUESTATUS_WAITING\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.complete">{{\'APPLICATION_QUEUESTATUS_COMPLETE\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.timeout">{{\'APPLICATION_TIMEOUT\' | translate}}</span> <span data-ng-if="!row.entity.leaveAt && grid.appScope.showTimers"><css-timer start-time="row.entity.updatedAt"></css-timer></span></div>',enableSorting:!1,enableColumnMenu:!1,enableFiltering:!1},{name:"membername",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.membername || ''}}</span></div>"},{name:"queuename",displayName:"APPLICATION_QUEUE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.queuename || ''}}</span></div>"}],data:[],gridMenuTitleFilter:function(a){var b=i.defer();return b.resolve(d.instant(a)),b.promise},onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){n(a.gridOptions.data.length)})}},l()};var n=function(a){var b=a?30*a+60:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",b+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*a+"px")};a.$on("$destroy",function(){e.unsyncUpdates("report_openchannel_session")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.openchannel.realtime.view.applications",{url:"/applications",templateUrl:"app/channels/openchannel/realtime/view/application/application.html",controller:"OpenChannelRealtimeViewApplicationCtrl"})}]),angular.module("xCallyShuttleApp").controller("OpenChannelRealtimeViewCtrl",["$scope","$state",function(a,b){a.agents=[{name:"Queues",link:"main.channels.openchannel.realtime.view.agents.queues"},{name:"Timeline",link:"main.channels.openchannel.realtime.view.agents.timeline"}],a.sessions=[{name:"Sessions",link:"main.channels.openchannel.realtime.view.sessions"}],a.tree={queues:[{name:"Queues",link:"main.channels.openchannel.realtime.view.agents.queues"},{name:"Timeline",link:"main.channels.openchannel.realtime.view.agents.timeline"}],sessions:[{name:"Sessions",link:"main.channels.openchannel.realtime.view.sessions"}]},a.timerSwitch={isActive:!0,size:"mini",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"primary"},a.showTimers=!1}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.openchannel.realtime.view",{url:"/view",templateUrl:"app/channels/openchannel/realtime/view/view.html",controller:"OpenChannelRealtimeViewCtrl"})}]),angular.module("xCallyShuttleApp").factory("ReportOpenChannelSession",["$resource",function(a){return a("/api/report/openchannel/sessions/:id/:controller/:controller2",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.realtime",{url:"/realtime",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:12}}})}]),angular.module("xCallyShuttleApp").controller("RealtimeViewAgentCtrl",["$scope","$log","$uibModal","$translate","socket","xAlert","Agent","Pause","Action","usSpinnerService","$q","uiGridConstants","$timeout",function(a,b,c,d,e,f,g,h,i,j,k,l,m){function n(b){return j.spin("grid-spinner"),g.get(q).$promise.then(function(b){a.gridOptions.totalItems=b.count,a.gridOptions.data=b.rows})["catch"](function(a){f.error(a)})["finally"](function(){b&&m(function(){o()}),j.stop("grid-spinner")})}function o(){e.socket.on("agent:save",function(b){b=b.newValues||b;var c=_.find(a.gridOptions.data,{id:b.id});c&&_.merge(c,b)}),e.socket.on("agent:remove",function(b){_.remove(a.gridOptions.data,{id:b.id})})}function p(){return h.get().$promise.then(function(b){a.pauses=b.rows,e.syncUpdates("pause",a.pauses)})["catch"](function(a){f.error(a)})}var q={controller:"realtime",offset:0,limit:10};a.moment=moment,a._=_,a.initAgents=function(){a.gridOptions={enableGridMenu:!0,headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,showGridFooter:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,useExternalPagination:!0,useExternalSorting:!0,useExternalFiltering:!0,showTreeExpandNoChildren:!0,columnDefs:[{name:"name",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.name}} <{{row.entity.internal}}></div>",minWidth:250},{name:"fullname",displayName:"APPLICATION_FULLNAME",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.fullname}}</div>"},{name:"online",displayName:"APPLICATION_ONLINE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.online != null"><i class="fa" data-ng-class="{\'font-green\':row.entity.online, \'font-red\':!row.entity.online,\'fa-user\':row.entity.online,\'fa-user-times\':!row.entity.online}"></i> <i data-ng-if="row.entity.online" class="fa fa-sign-out font-red pointer-cursor" title="logout" data-ng-click="grid.appScope.agentLogout(row.entity.name,row.entity.id)"></i> <span data-ng-if="row.entity.online && grid.appScope.showTimers" class="left-margin"><css-timer start-time="row.entity.lastLoginAt"></css-timer></span></div>',filter:{type:l.filter.SELECT,selectOptions:[{value:"true",label:"ONLINE"},{value:"false",label:"OFFLINE"}]}},{name:"pauseStatus",displayName:"APPLICATION_PAUSE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span class="left-margin"><i data-ng-if="row.entity.voicePause || row.entity.mailPause || row.entity.chatPause || row.entity.faxPause || row.entity.smsPause" data-ng-click="grid.appScope.pause(row.entity,\'unpause\',null,null)" class="fa fa-play font-green pointer-cursor" title="{{\'APPLICATION_RESUME\' | translate}}"></i> <i class="fa fa-pause font-yellow pointer-cursor" data-ng-click="grid.appScope.pause(row.entity,\'pause\',\'DEFAULT PAUSE\')" title="{{\'APPLICATION_DEFAULT_PAUSE\' | translate}}"></i></span><select data-ng-if="grid.appScope.pauses.length" class="pause-select pointer-cursor" data-ng-model="grid.appScope.pauseType" data-ng-change="grid.appScope.pause(row.entity,\'pause\',grid.appScope.pauseType)"><option class="pointer-cursor" data-ng-repeat="pause in grid.appScope.pauses">{{pause.name}}</option></select><span data-ng-if="row.entity.voicePause || row.entity.mailPause || row.entity.chatPause || row.entity.faxPause || row.entity.smsPause || row.entity.openchannelPause"> [{{row.entity.pauseType}}]<span data-ng-if="grid.appScope.showTimers"><css-timer start-time="row.entity.lastPauseAt"></css-timer></span></span></div>',enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"voicePause",displayName:"APPLICATION_VOICE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.online"><span class="left-margin"><i data-ng-if="row.entity.voicePause" data-ng-click="grid.appScope.pause(row.entity,\'unpause\',null,\'voice\')" class="fa fa-play font-green pointer-cursor" title="{{\'APPLICATION_RESUME\' | translate}}"></i><span data-ng-if="row.entity.voicePause && grid.appScope._.startsWith(row.entity.pauseType,\'#\')"> * </span></span></div>',filter:{type:l.filter.SELECT,selectOptions:[{value:"true",label:d.instant("APPLICATION_PAUSED")},{value:"connect",label:d.instant("APPLICATION_NOT_PAUSED")}]},enableSorting:!1,enableColumnMenu:!1},{name:"mailPause",displayName:"APPLICATION_MAIL", -headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.online"><span class="left-margin"><i data-ng-if="row.entity.mailPause" data-ng-click="grid.appScope.pause(row.entity,\'unpause\',null,\'mail\')" class="fa fa-play font-green pointer-cursor" title="{{\'APPLICATION_RESUME\' | translate}}"></i></span></div>',filter:{type:l.filter.SELECT,selectOptions:[{value:"true",label:d.instant("APPLICATION_PAUSED")},{value:"connect",label:d.instant("APPLICATION_NOT_PAUSED")}]},enableSorting:!1,enableColumnMenu:!1},{name:"chatPause",displayName:"APPLICATION_CHAT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.online"><span class="left-margin"><i data-ng-if="row.entity.chatPause" data-ng-click="grid.appScope.pause(row.entity,\'unpause\',null,\'chat\')" class="fa fa-play font-green pointer-cursor" title="{{\'APPLICATION_RESUME\' | translate}}"></i></span></div>',filter:{type:l.filter.SELECT,selectOptions:[{value:"true",label:d.instant("APPLICATION_PAUSED")},{value:"connect",label:d.instant("APPLICATION_NOT_PAUSED")}]},enableSorting:!1,enableColumnMenu:!1},{name:"faxPause",displayName:"APPLICATION_FAX",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.online"><span class="left-margin"><i data-ng-if="row.entity.faxPause" data-ng-click="grid.appScope.pause(row.entity,\'unpause\',null,\'fax\')" class="fa fa-play font-green pointer-cursor" title="{{\'APPLICATION_RESUME\' | translate}}"></i></span></div>',filter:{type:l.filter.SELECT,selectOptions:[{value:"true",label:d.instant("APPLICATION_PAUSED")},{value:"connect",label:d.instant("APPLICATION_NOT_PAUSED")}]},enableSorting:!1,enableColumnMenu:!1},{name:"smsPause",displayName:"APPLICATION_SMS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.online"><span class="left-margin"><i data-ng-if="row.entity.smsPause" data-ng-click="grid.appScope.pause(row.entity,\'unpause\',null,\'sms\')" class="fa fa-play font-green pointer-cursor" title="{{\'APPLICATION_RESUME\' | translate}}"></i></span></div>',filter:{type:l.filter.SELECT,selectOptions:[{value:"true",label:d.instant("APPLICATION_PAUSED")},{value:"connect",label:d.instant("APPLICATION_NOT_PAUSED")}]},enableSorting:!1,enableColumnMenu:!1},{name:"openchannelPause",displayName:"APPLICATION_OPENCHANNEL",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.online"><span class="left-margin"><i data-ng-if="row.entity.openchannelPause" data-ng-click="grid.appScope.pause(row.entity,\'unpause\',null,\'openchannel\')" class="fa fa-play font-green pointer-cursor" title="{{\'APPLICATION_RESUME\' | translate}}"></i></span></div>',filter:{type:l.filter.SELECT,selectOptions:[{value:"true",label:d.instant("APPLICATION_PAUSED")},{value:"connect",label:d.instant("APPLICATION_NOT_PAUSED")}]},enableSorting:!1,enableColumnMenu:!1}],data:[],gridMenuTitleFilter:function(a){var b=k.defer();return b.resolve(d.instant(a)),b.promise},onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){r(a.gridApi.core.getVisibleRows(a.gridApi.grid).length)}),a.gridApi.core.on.sortChanged(a,function(a,b){0===b.length?q.order=null:q.order=b[0].name+" "+b[0].sort.direction.toUpperCase(),n()}),a.gridApi.pagination.on.paginationChanged(a,function(a,b){q.offset=(a-1)*b,q.limit=b,n()}),a.gridApi.core.on.filterChanged(a,function(){var a=this.grid;a.columns.forEach(function(a){a.filters[0].term?q[a.name]=a.filters[0].term:delete q[a.name]}),n()})}},n(!0),p()};var r=function(a){var b=a?30*a+130:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",b+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*a+"px")};a.$on("$destroy",function(){e.unsyncUpdates("agent")}),a.pause=function(b,c,e,g){return e&&(a.pauseType=null),i.save({name:c,agent:b.id,data2:b.name,type:e||"DEFAULT PAUSE",data4:e||"DEFAULT PAUSE",channel:g||"all"}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.realtime.view.agents",{url:"/agents",templateUrl:"app/channels/realtime/view/agent/agent.html",controller:"RealtimeViewAgentCtrl"})}]),angular.module("xCallyShuttleApp").controller("RealtimeViewAgentLogoutModalCtrl",["$scope","$uibModalInstance","name",function(a,b,c){a.agent=c,a.logout=function(){b.close()}}]),angular.module("xCallyShuttleApp").controller("RealtimeViewAgentQueueModalCtrl",["$scope","$uibModalInstance","$http","queues",function(a,b,c,d){a.queues=d,a.item={},a.save=function(){b.close(a.item)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("RealtimeViewCtrl",["$scope",function(a){a.timerSwitch={isActive:!0,size:"mini",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"primary"},a.showTimers=!1}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.realtime.view",{url:"/view",templateUrl:"app/channels/realtime/view/view.html",controller:"RealtimeViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]}])}]}})}]),angular.module("xCallyShuttleApp").factory("ReportCall",["$resource",function(a){return a("/api/report/calls/:id/:controller",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("ReportDial",["$resource",function(a){return a("/api/report/dials/:id/:controller/:controller2",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("SmsAccount",["$resource",function(a){return a("/api/sms/accounts/:accountId/:controller/:id",{id:"@accountId"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.sms.accounts",{url:"/accounts",template:"<div ui-view></div>",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:42}}})}]),angular.module("xCallyShuttleApp").controller("SmsAccountListCtrl",["$scope","SmsAccount","gridOptions","$stateParams","xAlert","$translate",function(a,b,c,d,e,f){a.message="Hello",a.initView=function(){var e={exporterCsvFilename:"sms_accounts.csv",columnDefs:[{name:"id",displayName:"ID",cellClass:"text-center",width:75,enableSorting:!1,enableFiltering:!1},{name:"name"},{name:"description"},{name:"type",displayName:"APPLICATION_ACCOUNT_TYPE"},{name:"action",width:100,buttons:[{"class":"blue-hoki",href:"/channels/sms/accounts/view/{{row.entity.id}}/settings",name:"profile"},{"class":"green-jungle",name:"check",onClick:"grid.appScope.checkAccount(row.entity.id)"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=c.gridOptions(b,e,a,{accountId:d.accountId})},a.checkAccount=function(a){return b.get({accountId:a,controller:"check"}).$promise.then(function(){e.show(f.instant("MESSAGE_ACCOUNT_VERIFIED"),"success")})["catch"](function(a){e.show(f.instant("MESSAGE_ACCOUNT_INVALID"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.sms.accounts.list",{url:"/list",templateUrl:"app/channels/sms/account/list/list.html",controller:"SmsAccountListCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.sms.accounts.view.actions",{url:"/actions",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").factory("SmsApplication",["$resource",function(a){return a("/api/sms/applications/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("SmsAccountViewActionListCtrl",["$scope","gridOptions","SmsAccount","$http","$translate","$stateParams","xAlert",function(a,b,c,d,e,f,g){a.initActions=function(){var d={draggable:!0,exporterCsvFilename:"sms_applications.csv",enableSorting:!1,enableFiltering:!1,columnDefs:[{name:"app",cellClass:"text-center"},{name:"name",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span>{{row.entity.app == "queue" ? row.entity.SmsQueue.name : row.entity.User.name}}</span></div>'},{name:"timeout",cellClass:"text-center"},{name:"interval",displayName:"APPLICATION_TIME_INTERVAL",cellClass:"text-center",cellTemplate:"<div><span>{{row.entity.Interval ? row.entity.Interval.name : row.entity.interval}}</span></div>"},{name:"action",width:125,buttons:[{"class":"blue-hoki",href:"/channels/sms/accounts/view/{{row.entity.SmsAccountId}}/actions/view/{{row.entity.id}}",name:"profile"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.app, row.entity.id)"}]}]};a.gridOptions=b.gridOptions(c,d,a,{accountId:f.accountId,controller:"applications"})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.sms.accounts.view.actions.list",{url:"/list",templateUrl:"app/channels/sms/account/view/action/list/list.html",controller:"SmsAccountViewActionListCtrl"})}]),angular.module("xCallyShuttleApp").controller("SmsAccountViewActionViewCtrl",["$scope","$http","$stateParams","$translate","$location","xAlert","WizardHandler","socket","application","interval","Agent","Interval","SmsQueue","SmsAccount","Template","MailAccount","SmsApplication",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.initAction=function(){return a.$application=i.application,a.$stateParams=c,a.$interval=j.interval,a.forms={},a.apps=[{name:"Queue",value:"queue"},{name:"Agent",value:"agent"},{name:"SendMail",value:"sendMail"},{name:"SendSMS",value:"sendSms"}],q.get({id:c.actionId}).$promise.then(function(b){if(a.application=b,a.application.alwaysTime=!1,a.application.IntervalId)a.application.intType="list";else switch(a.application.interval){case"*,*,*,*":a.application.intType="always";break;default:a.application.intType="custom"}if("always"===a.application.intType||"custom"===a.application.intType){var c=a.application.interval.split(",");"*"===c[0]?a.application.alwaysTime=!0:(a.application.t_from=moment(new Date),a.application.t_to=moment(new Date),a.application.t_from.hour(c[0].split("-")[0].split(":")[0]),a.application.t_from.minute(c[0].split("-")[0].split(":")[1]),a.application.t_to.hour(c[0].split("-")[1].split(":")[0]),a.application.t_to.minute(c[0].split("-")[1].split(":")[1])),"*"===c[1]?(a.application.wd_from="always",a.application.wd_to="always"):(a.application.wd_from=c[1].split("-")[0],a.application.wd_to=c[1].split("-")[1]),"*"===c[2]?(a.application.md_from="always",a.application.md_to="always"):(a.application.md_from=c[2].split("-")[0],a.application.md_to=c[2].split("-")[1]),"*"===c[3]?(a.application.m_from="always",a.application.m_to="always"):(a.application.m_from=c[3].split("-")[0],a.application.m_to=c[3].split("-")[1])}a.$watch("application.t_from",function(b){a.application.t_from_hm=moment(b).format("HH:mm")}),a.$watch("application.t_to",function(b){a.application.t_to_hm=moment(b).format("HH:mm")})})["catch"](function(a){f.error(a)})},a.getQueues=function(){return m.get().$promise.then(function(b){a.queues=b.rows})["catch"](function(a){console.error(a)})},a.getAgents=function(){return k.get().$promise.then(function(b){a.agents=b.rows})["catch"](function(a){console.error(a)})},a.getIntervals=function(){return l.get().$promise.then(function(b){a.intervals=b.rows})["catch"](function(a){console.error(a)})},a.getTemplates=function(){return o.get().$promise.then(function(b){a.templates=b.rows})["catch"](function(a){console.error(a)})},a.getMailAccounts=function(){return p.get().$promise.then(function(b){a.mailAccounts=b.rows})["catch"](function(a){console.error(a)})},a.getSmsAccounts=function(){return n.get().$promise.then(function(b){a.smsAccounts=b.rows})["catch"](function(a){console.error(a)})},a.updateItem=function(){switch(a.application.intType){case"always":a.application.interval="*,*,*,*",a.application.IntervalId=null;break;case"list":var b=_.find(a.intervals,{id:a.application.IntervalId});a.application.interval=b?"":"*,*,*,*",a.application.IntervalId=b?a.application.IntervalId:null;break;case"custom":var g,h,i,j,k;g=a.application.t_from&&a.application.t_to&&!a.application.alwaysTime?moment(a.application.t_from).format("HH:mm")+"-"+moment(a.application.t_to).format("HH:mm"):"*",a.application.wd_from&&"always"!==a.application.wd_from?(h=a.application.wd_from,a.application.wd_to&&"always"!==a.application.wd_to&&(h+="-"+a.application.wd_to)):h="*",a.application.md_from&&"always"!==a.application.md_from?(i=a.application.md_from,a.application.md_to&&"always"!==a.application.md_to&&(i+="-"+a.application.md_to)):i="*",a.application.m_from&&"always"!==a.application.m_from?(j=a.application.m_from,a.application.m_to&&"always"!==a.application.m_to&&(j+="-"+a.application.m_to)):j="*",k=g+","+h+","+i+","+j,a.application.interval=k,a.application.IntervalId=null}return n.update({accountId:c.accountId,controller:"applications",id:c.actionId},a.application).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success"),e.path("/channels/sms/accounts/view/"+c.accountId+"/actions/list")})["catch"](function(a){f.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.sms.accounts.view.actions.view",{url:"/view/:actionId",templateUrl:"app/channels/sms/account/view/action/view/view.html",controller:"SmsAccountViewActionViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("SmsAccountViewActionWizardCtrl",["$scope","$http","Agent","SmsQueue","Interval","$stateParams","$translate","$location","xAlert","WizardHandler","socket","application","interval","SmsAccount","Template","MailAccount",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.initWizard=function(){a.apps=[{name:"Queue",value:"queue"},{name:"Agent",value:"agent"},{name:"SendMail",value:"sendMail"},{name:"SendSMS",value:"sendSms"}],a.$application=l.application,a.$stateParams=f,a.$interval=m.interval,a.forms={},a.application={alwaysTime:!0},a.$watch("application.t_from",function(b){a.application.t_from_hm=moment(b).format("HH:mm")}),a.$watch("application.t_to",function(b){a.application.t_to_hm=moment(b).format("HH:mm")})},a.getQueues=function(){return d.get().$promise.then(function(b){console.log(b),a.queues=b.rows})["catch"](function(a){console.error(a)})},a.getAgents=function(){return c.get().$promise.then(function(b){a.agents=b.rows})["catch"](function(a){console.error(a)})},a.getIntervals=function(){return e.get().$promise.then(function(b){a.intervals=b.rows})["catch"](function(a){console.error(a)})},a.getTemplates=function(){return o.get().$promise.then(function(b){a.templates=b.rows})["catch"](function(a){console.error(a)})},a.getMailAccounts=function(){return p.get().$promise.then(function(b){a.mailAccounts=b.rows})["catch"](function(a){console.error(a)})},a.getSmsAccounts=function(){return n.get().$promise.then(function(b){a.smsAccounts=b.rows})["catch"](function(a){console.error(a)})},a.createItem=function(){switch(a.application.intType){case"always":a.application.interval="*,*,*,*",a.application.IntervalId=null;break;case"list":var b=_.find(a.intervals,{id:a.application.IntervalId});a.application.interval=b?"":"*,*,*,*",a.application.IntervalId=b?a.application.IntervalId:null;break;case"custom":var c,d,e,j,k;c=a.application.t_from&&a.application.t_to&&!a.application.alwaysTime?moment(a.application.t_from).format("HH:mm")+"-"+moment(a.application.t_to).format("HH:mm"):"*",a.application.wd_from&&"always"!==a.application.wd_from?(d=a.application.wd_from,a.application.wd_to&&"always"!==a.application.wd_to&&(d+="-"+a.application.wd_to)):d="*",a.application.md_from&&"always"!==a.application.md_from?(e=a.application.md_from,a.application.md_to&&"always"!==a.application.md_to&&(e+="-"+a.application.md_to)):e="*",a.application.m_from&&"always"!==a.application.m_from?(j=a.application.m_from,a.application.m_to&&"always"!==a.application.m_to&&(j+="-"+a.application.m_to)):j="*",k=c+","+d+","+e+","+j,a.application.interval=k,a.application.IntervalId=null}return n.save({accountId:f.accountId,controller:"applications"},a.application).$promise.then(function(){i.show(g.instant("MESSAGE_WELL_DONE"),"success"),h.path("/channels/sms/accounts/view/"+f.accountId+"/actions/list")})["catch"](function(a){i.error(a)})},a.formValidation=function(a){return a},a.next=function(){j.wizard().next()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.sms.accounts.view.actions.wizard",{url:"/wizard",templateUrl:"app/channels/sms/account/view/action/wizard/wizard.html",controller:"SmsAccountViewActionWizardCtrl"})}]),angular.module("xCallyShuttleApp").controller("SmsAccountApiViewCtrl",["$scope","SmsAccount","$http","$stateParams","clipboard","$translate","$location","xAlert",function(a,b,c,d,e,f,g,h){a.copyToClipboard=function(a){e.copyText(a),h.show(f.instant("MESSAGE_TEXT_COPIED_CLIPBOARD")+"!","success")},a.initView=function(){b.get({id:d.accountId}).$promise.then(function(b){a.account=b,a.deliveryurl=a.account.remote+"/api/sms/accounts/"+a.account.id+"/messageStatus",a.receiveurl=a.account.remote+"/api/sms/accounts/"+a.account.id+"/receive"})["catch"](function(a){h.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.sms.accounts.view.api",{url:"/api",controller:"SmsAccountApiViewCtrl",templateUrl:"app/channels/sms/account/view/api/view/view.html"})}]),angular.module("xCallyShuttleApp").factory("SmsDisposition",["$resource",function(a){return a("/api/sms/dispositions/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("SmsInboxViewModaDispositionAddCtrl",["$scope","$uibModalInstance","SmsAccount","id",function(a,b,c,d){a.ok=function(){return c.save({accountId:d,controller:"dispositions"},{name:a.name}).$promise.then(function(a){b.close(a)})},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("SmsAccountDispositionViewCtrl",["$scope","$stateParams","$uibModal","$translate","SmsAccount","xAlert",function(a,b,c,d,e,f){a.initView=function(){return e.get({accountId:b.accountId,controller:"dispositions"}).$promise.then(function(b){a.dispositions=b.rows})["catch"](function(a){console.error(a),f.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.updateDisposition=function(a,c){return e.update({accountId:b.accountId,controller:"dispositions",id:a},{name:c}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE")+"!","success")})["catch"](function(a){console.error(a),f.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.deleteDisposition=function(c){return console.log("delete"),e.remove({accountId:b.accountId,controller:"dispositions",id:c}).$promise.then(function(){_.remove(a.dispositions,{id:c})})["catch"](function(a){console.error(a),f.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.addDisposition=function(){return c.open({animation:!0,templateUrl:"app/channels/sms/account/view/disposition/modal/add.modal.html",controller:"SmsInboxViewModaDispositionAddCtrl",resolve:{id:function(){return b.accountId}}}).result.then(function(b){b&&a.dispositions.push(b)})["catch"](function(a){console.error(a),f.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.sms.accounts.view.dispositions",{url:"/dispositions",controller:"SmsAccountDispositionViewCtrl",templateUrl:"app/channels/sms/account/view/disposition/view/view.html"})}]),angular.module("xCallyShuttleApp").controller("SmsAccountHooksViewCtrl",["$scope","SmsAccount","Pause","$http","$stateParams","clipboard","$translate","$location","xAlert",function(a,b,c,d,e,f,g,h,i){a.account={},a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.CONST_TIMEOUT=3e4,a.initView=function(){a.types=[{value:"",name:"-- None --"},{name:"HTTP GET",value:"GET"},{name:"HTTP POST",value:"POST"}],c.get().$promise.then(function(b){a.pauses=b.rows})["catch"](function(a){i.error(a)}),b.get({id:e.accountId}).$promise.then(function(b){a.account=b,a.account.actions.length<1&&a.account.actions.push({action:"pause",enabled:!1,type:null})})["catch"](function(a){i.error(a)})},a.resetActionData=function(a){a.type=null},a.updateItemSmsAccount=function(){return console.log(a.account),b.update({id:e.accountId},a.account).$promise.then(function(){i.show(g.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){i.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.sms.accounts.view.hooks",{url:"/hooks",controller:"SmsAccountHooksViewCtrl",templateUrl:"app/channels/sms/account/view/hooks/view/view.html"})}]),angular.module("xCallyShuttleApp").controller("SmsAccountSettingViewCtrl",["$scope","SmsAccount","Pause","$http","$stateParams","clipboard","$translate","$location","xAlert","List",function(a,b,c,d,e,f,g,h,i,j){a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.CONST_TIMEOUT=3e4,a.types=[{name:"HTTP GET",value:"GET"},{name:"HTTP POST",value:"POST"}],a.account={},a.initView=function(){j.get().$promise.then(function(b){a.lists=b.rows})["catch"](function(a){console.error(a)}),b.get({id:e.accountId}).$promise.then(function(b){a.account=b})["catch"](function(a){i.error(a)})},a.updateItemSmsAccount=function(){return b.update({id:e.accountId},a.account).$promise.then(function(){i.show(g.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){i.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.sms.accounts.view.settings",{url:"/settings",controller:"SmsAccountSettingViewCtrl",templateUrl:"app/channels/sms/account/view/setting/view/view.html"})}]),angular.module("xCallyShuttleApp").controller("SmsAccountViewCtrl",["$scope","SmsAccount","$http","$stateParams","clipboard","$translate","$location","xAlert","List",function(a,b,c,d,e,f,g,h,i){a.initView=function(){return a.account={},b.get({id:d.accountId}).$promise.then(function(b){a.account=b,console.log(b)})["catch"](function(a){h.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.sms.accounts.view",{url:"/view/:accountId",templateUrl:"app/channels/sms/account/view/view.html",controller:"SmsAccountViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]})}]}})}]),angular.module("xCallyShuttleApp").controller("SmsAccountWizardCtrl",["$scope","$http","$location","$translate","WizardHandler","xAlert","SmsAccount",function(a,b,c,d,e,f,g){a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.initWizard=function(){a.forms={},a.item={},a.item.remote=c.protocol()+"://"+location.host},a.goNext=function(){e.wizard().next()},a.formValidation=function(a){return a},a.createItem=function(){return console.log(a.item),g.save(a.item).$promise.then(function(){c.path("/channels/sms/accounts/list")})["catch"](function(a){f.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.sms.accounts.wizard",{url:"/wizard",templateUrl:"app/channels/sms/account/wizard/wizard.html",controller:"SmsAccountWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.sms.inbox",{url:"/inbox",template:"<div ui-view></div>",data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:44}}})}]),angular.module("xCallyShuttleApp").directive("smsRoom",["$cookieStore","$translate","$uibModal","$timeout","Tag","CannedAnswer","Auth","SmsAccount","SmsRoom","SmsMessage","xAlert","usSpinnerService","socket","$stateParams","$rootScope",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){return{restrict:"E",scope:{workspace:"=",index:"=",submit:"&onSubmit"},templateUrl:"app/channels/sms/inbox/room/room.directive.html",link:function(a){a.modelOptions={debounce:{"default":500,blur:250},getterSetter:!0},a.panelLeft=null,a.panelRight="col-md-12",a.togglePanelLeft=function(){a.panelLeft?(a.panelLeft=null,a.panelRight="col-md-12"):(a.panelLeft="col-md-6",a.panelRight="col-md-6")},a.form={disabled:!1,from:"",to:a.workspace.data&&a.workspace.data.to?a.workspace.data.to:"",body:""},m.socket.on("sms_message:save",function(b){return a.workspace.id&&b.SmsRoomId==a.workspace.id?j.get({id:b.id}).$promise.then(function(b){a.SmsRoom||(a.SmsRoom={SmsMessages:[]});var c=_.findIndex(a.SmsRoom.SmsMessages,{id:b.id});c>-1?_.merge(a.SmsRoom.SmsMessages[c],b):a.SmsRoom.SmsMessages.unshift(b),a.panelLeft="col-md-6",a.panelRight="col-md-6"})["catch"](function(a){console.error(a)}):void 0}),m.socket.on("sms_message:update",function(b){if(a.SmsRoom&&b.SmsRoomId==a.workspace.id){var c=_.find(a.SmsRoom.SmsMessages,{id:b.id});c&&_.merge(c,b)}}),m.socket.on("sms_room:save",function(b){a.SmsRoom&&b.id==a.workspace.id&&(a.SmsRoom.status=b.status,a.SmsRoom.disposition=b.disposition)}),a.closeRoom=function(b){return c.open({animation:!0,templateUrl:"app/channels/sms/inbox/view/view.status.modal.html",controller:"SmsInboxViewModalStatusCtrl",resolve:{closed:function(){return"CLOSED"===a.SmsRoom.status},accountId:function(){return a.SmsRoom.SmsAccountId}}}).result.then(function(a){var c={id:b,status:"CLOSED"};return a.disposition&&(c.disposition=a.disposition),i.update(c).$promise["catch"](function(a){k.error(a)})})},a.openRoom=function(a,b){var c=_.find(o.workspaces,{id:a,type:"smsRoom"});c?c.active=!0:o.workspaces.push({id:a,name:b,type:"smsRoom","class":"glyphicon glyphicon-comment",active:!0})},e.get().$promise.then(function(b){a.tags=_.map(b.rows,"name")})["catch"](function(a){console.error(a)}),h.get().$promise.then(function(b){a.smsAccounts=b.rows})["catch"](function(a){console.error(a)}),a.workspace.id?(a.panelLeft="col-md-6",a.panelRight="col-md-6",i.get({id:a.workspace.id}).$promise.then(function(b){a.SmsRoom=b,a.form.from=a.SmsRoom.SmsAccount.phone,a.form.to=a.SmsRoom.contact,a.form.tags=a.SmsRoom.tags})["catch"](function(a){console.error(a)})["finally"](function(){l.stop("spinner-grid"),a.form.disabled=!1})):l.stop("spinner-grid"),a.onSelect=function(){a.form.body+=a.modelOptions.selectedAnswer,delete a.modelOptions.selectedAnswer},a.onSelectAnswer=function(b){a.form.body+=b,a.selectedAnswer=""},a.getAnswers=function(a){return f.get({key:a}).$promise.then(function(a){return _.map(a.rows,"value")})},a.onChanged=function(){return i.patch({id:a.workspace.id},{tags:a.form.tags}).$promise["catch"](function(a){console.error(a)})},a.sendSMS=function(){l.spin("spinner-grid");var c=_.find(a.smsAccounts,{phone:a.form.from}),d={body:a.form.body,SmsRoomId:a.SmsRoom?a.SmsRoom.id:null};return"twilio"===c.type?(d.from=/^[\+][0-9]+$/.test(a.form.from)?a.form.from:"+"+a.form.from,d.to=/^[\+][0-9]+$/.test(a.form.to)?a.form.to:"+"+a.form.to):(d.from=/^[\+][0-9]+$/.test(a.form.from)?a.form.from.replace("+",""):a.form.from,d.to=/^[\+][0-9]+$/.test(a.form.to)?a.form.to.replace("+",""):a.form.to),c?h.save({accountId:c.id,controller:"send"},d).$promise.then(function(c){return k.show(b.instant("MESSAGE_WELL_DONE"),"success"),a.SmsRoom?a.SmsRoom:i.get({id:"messages",controller:c.id}).$promise}).then(function(b){b&&(a.form.body="",a.workspace.id=b.id,a.workspace.name=b.contact,a.SmsRoom=b,a.panelLeft="col-md-6",a.panelRight="col-md-6")})["catch"](function(a){k.error(a)})["finally"](function(){l.stop("spinner-grid")}):void console.log("Can not find account")}}}}]),angular.module("xCallyShuttleApp").controller("SmsInboxInfoModalCtrl",["$scope","$translate","$uibModalInstance","$stateParams","xAlert","data","uniqueId","ReportSquare",function(a,b,c,d,e,f,g,h){a.data=null,a.initInfo=function(){f&&(a.data=_.isEmpty(JSON.parse(f))?null:JSON.parse(f)),g&&h.get({controller:"show",uniqueid:g}).$promise.then(function(b){a.data={id:b.id,channel:b.channel,uniqueid:b.uniqueid,callerid:b.callerid,calleridname:b.calleridname,project_name:b.project_name,extension:b.extension}})["catch"](function(b){switch(b.status){case 404:a.data=null;break;default:e.error(b)}})},a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").directive("sms",["$rootScope","SmsMessage","List","xAlert","$translate","$uibModal",function(a,b,c,d,e,f){return{restrict:"E",scope:{smsMessage:"=message",accounttype:"=accounttype",listId:"="},templateUrl:"app/channels/sms/inbox/sms/sms.html",link:function(b){b.openContact=function(f){return b.listId?c.save({listId:b.listId,controller:"contacts"},{mobile:f}).$promise.then(function(b){var c=_.find(a.$root.workspaces,{contactID:b.id});c?c.active=!0:a.$root.workspaces.push({active:!0,"class":"icon-user",contactID:b.id,name:b.phone,type:"contact"})})["catch"](function(a){console.error(a)}):void d.show(e.instant("MESSAGE_NO_LIST_CONFIGURED"),"info")},b.info=function(a,b){f.open({animation:!0,templateUrl:"app/channels/sms/inbox/sms/info.modal.html",controller:"SmsInboxInfoModalCtrl",resolve:{data:function(){return b},uniqueId:function(){return a}}})}}}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.sms.inbox.view.account",{url:"/account/:id",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:11}}})}]),angular.module("xCallyShuttleApp").controller("SmsInboxViewAccountListCtrl",["$scope","$rootScope","$uibModal","$translate","$stateParams","$state","Tag","usSpinnerService","socket","SmsAccount","SmsRoom","gridOptions","uiGridConstants","Auth","Modal","xAlert","uibButtonConfig","localStorageService",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){a.initView=function(){q.activeClass="green-haze",a.id=[],a.isAdmin=n.isAdmin(),a.isAgent=n.isAgent(),a.uncheckable=!1,a.query={status:r.get("smsStatus")?r.get("smsStatus"):"NEW",tags:r.get("smsTags")?r.get("smsTags"):[]},a.$watch("query.status",function(b,c){b!==c&&(r.set("smsStatus",a.query.status),a.getPage())},!0),g.get().$promise.then(function(b){a.tags=_.map(b.rows,"name")})["catch"](function(a){console.error(a)}),a.gridOptions={exporterCsvFilename:"sms_rooms.csv",enableRowHeaderSelection:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,enableFiltering:!0,enableSorting:!0,enableGridMenu:!1,flatEntityAccess:!0,showGridFooter:!0,fastWatch:!0,enableSelectAll:!0,enableHorizontalScrollbar:0,enableVerticalScrollbar:0,columnDefs:[{name:"lastEvent",displayName:"",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div> <span data-ng-class=\"{'icon-arrow-up font-green': row.entity.lastEvent === 'SENT', 'icon-arrow-up font-yellow': row.entity.lastEvent === 'SENDING', 'icon-arrow-down font-green': row.entity.lastEvent === 'RECEIVED', 'icon-close font-red': row.entity.lastEvent === 'FAILED', 'icon-question': !row.entity.lastEvent}\"> </span> </div>",width:30,enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"tags",displayName:"",headerCellTemplate:'<i class="icon-tag" style="margin-top: 8px; margin-left: 8px;"></i>',cellClass:"text-center ui-grid-vcenter", -cellTemplate:"<div><i data-ng-class=\"row.entity.tags.length ? 'icon-tag' : ''\" title=\"{{row.entity.tags}}\"></i></div>",width:30,enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"id",displayName:"Id",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div><span>#{{row.entity.id}}</span></div>",width:75,enableSorting:!1,enableFiltering:!0,enableColumnMenu:!1},{name:"contact",cellClass:"text-center"},{name:"disposition",cellClass:"text-center"},{name:"createdAt",cellFilter:"date:'dd/MM/yyyy HH:mm'",width:120,enableFiltering:!1},{name:"updatedAt",cellFilter:"date:'dd/MM/yyyy HH:mm'",width:120,enableFiltering:!1,sort:{direction:m.DESC}},{name:"action",cellTemplate:'<div> <a class="btn btn-icon-only font-green" data-ng-click="grid.appScope.openRoom(row.entity.id, row.entity.contact)"><i class="glyphicon glyphicon-comment" aria-hidden="true"></i></a> <a class="btn btn-icon-only font-red" data-ng-show="grid.appScope.isAdmin" data-ng-click="grid.appScope.deleteItem(row.entity.id,row.entity.id)"><i class="fa fa-trash" aria-hidden="true"></i> </div>',enableSorting:!1,cellClass:"ui-grid-vcenter",width:90,enableFiltering:!1,enableColumnMenu:!1}],data:[],onRegisterApi:function(b){a.gridApi=b,a.gridApi.selection&&(a.gridApi.selection.on.rowSelectionChanged(a,function(b){b.isSelected?a.id.push(a.gridApi.grid.options.primaryKey?b.entity[a.gridApi.grid.options.primaryKey]:b.entity.id):_.pull(a.id,a.gridApi.grid.options.primaryKey?b.entity[a.gridApi.grid.options.primaryKey]:b.entity.id)}),a.gridApi.selection.on.rowSelectionChangedBatch(a,function(b){b[0].isSelected?a.id=_.union(a.id,_.map(b,a.gridApi.grid.options.primaryKey?"entity."+a.gridApi.grid.options.primaryKey:"entity.id")):_.map(b,a.gridApi.grid.options.primaryKey?"entity."+a.gridApi.grid.options.primaryKey:"entity.id").forEach(function(b){_.pull(a.id,b)})}))}},i.socket.on("sms_room:remove",function(b){_.remove(a.workspaces,{id:b.id,type:"smsRoom"}),_.remove(a.gridOptions.data,{id:b.id})}),a.getPage(a.query)},a.onChanged=function(){a.getPage(a.query)},a.tagItems=function(){return c.open({animation:!0,templateUrl:"app/channels/sms/inbox/view/view.tags.modal.html",controller:"SmsInboxViewModalTagCtrl",resolve:{id:function(){return a.id}}}).result.then(function(){a.gridApi.selection.clearSelectedRows(),a.id=[],a.getPage()})},a.disposeItems=function(){return c.open({animation:!0,templateUrl:"app/channels/sms/inbox/view/view.status.modal.html",controller:"SmsInboxViewModalStatusCtrl",resolve:{accountId:function(){return e.id}}}).result.then(function(b){return console.log(b,a.id),k.patch({id:a.id},b).$promise.then(function(){a.gridApi.selection.clearSelectedRows(),a.id=[]})["catch"](function(a){p.error(a)})})},a.openRoom=function(b,c){var d=_.find(a.workspaces,{id:b,type:"smsRoom"});return d?d.active=!0:a.workspaces.push({id:b,name:c,type:"smsRoom","class":"glyphicon glyphicon-comment",active:!0}),b&&"agent"===n.getCurrentUser().role&&"PENDING"!==a.query.status&&"CLOSED"!==a.query.status?k.patch({id:b},{status:"OPEN",openReason:"agent"}).$promise["catch"](function(a){console.error(a)}):void 0},a.getPage=function(b){h.spin("spinner-grid");var c={accountId:e.id,controller:"rooms"};return b&&_.merge(c,b),a.query&&_.merge(c,a.query),j.query(c).$promise.then(function(b){r.set("smsAccountId",e.id),a.gridOptions.data=b,i.socket.on("sms_room:save",function(b){if(console.log("data",b),console.log(b.SmsAccountId,e.id),b.SmsAccountId==e.id){var c=_.find(a.gridOptions.data,{id:b.id});c?c.status!==b.status?_.remove(a.gridOptions.data,{id:b.id}):_.merge(c,b):a.query.status===b.status&&a.gridOptions.data.push(b)}}),i.socket.on("sms_room:remove",function(b){_.remove(a.gridOptions.data,{id:b.id})})})["catch"](function(a){p.error(a)})["finally"](function(){h.stop("spinner-grid")})},a.deleteItem=o.confirm["delete"](function(b){var c={id:b};return console.log(c),k["delete"](c).$promise.then(function(){a.getPage(),p.show(d.instant("MESSAGE_WELL_DONE")+"!","success"),a.gridApi.selection.clearSelectedRows(),a.id=[]})["catch"](function(a){p.error(a)})}),a.deleteItems=o.confirm["delete"](function(){var b={ids:a.id};return k["delete"](b).$promise.then(function(){a.getPage(),p.show(d.instant("MESSAGE_WELL_DONE")+"!","success"),a.gridApi.selection.clearSelectedRows(),a.id=[]})["catch"](function(a){p.error(a)})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.sms.inbox.view.account.list",{url:"/list",templateUrl:"app/channels/sms/inbox/view/account/list/list.html",controller:"SmsInboxViewAccountListCtrl",data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:11}}})}]),angular.module("xCallyShuttleApp").controller("SmsInboxViewModalAgentCtrl",["$scope","$uibModalInstance","$translate","$stateParams","Agent","SmsRoom","xAlert","roomId",function(a,b,c,d,e,f,g,h){a.initModal=function(){a.agents=[],a.item={agents:[]},e.get().$promise.then(function(b){b.rows.forEach(function(b){a.agents.push(b)})})["catch"](function(a){console.error(a)}),f.query({id:h,controller:"agents"}).$promise.then(function(b){b.forEach(function(b){a.agents.push(b),a.item.agents.push(b.id)})})["catch"](function(a){console.error(a)}),a.modal={dismissable:!0,title:"APPLICATION_MESSAGE_SEND_RETRY",text:"MESSAGE_MESSAGE_SEND_RETRY",buttons:[{classes:"btn btn-success",text:"APPLICATION_RETRY",click:function(a){b.close(a)}},{classes:"btn default",text:"APPLICATION_CANCEL",click:function(a){b.dismiss(a)}}]}},a.ok=function(){return f.update({id:h,controller:"agents",agents:a.item.agents}).$promise.then(function(){g.show(c.instant("MESSAGE_WELL_DONE"),"success"),b.close()})["catch"](function(a){console.error(a)})},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("SmsInboxViewCtrl",["$scope","$location","$stateParams","$translate","$uibModal","socket","Auth","xAlert","SmsRoom","SmsAccount","localStorageService",function(a,b,c,d,e,f,g,h,i,j,k){a.initView=function(){return j.get().$promise.then(function(c){var d=null;if(a.smsAccounts=c.rows,a.smsAccounts.length){var e,f=k.get("smsAccountId");e=f&&_.find(a.smsAccounts,{id:Number(f)})?f:a.smsAccounts[0].id,d="/channels/sms/inbox/view/account/"+e+"/list"}d&&b.path(d)})["catch"](function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.sms.inbox.view",{url:"/view",templateUrl:"app/channels/sms/inbox/view/view.html",controller:"SmsInboxViewCtrl",reload:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/inbox.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("SmsInboxViewModalStatusCtrl",["$scope","$uibModalInstance","SmsAccount","accountId",function(a,b,c,d){a.modal={title:"APPLICATION_CONFIRM_CLOSE",text:"MESSAGE_ARE_YOU_SURE_YOU_WANT_TO_CLOSE_THE_SMS"},a.initDisposition=function(){return a.item={status:"CLOSED"},c.get({accountId:d,controller:"dispositions"}).$promise.then(function(b){a.dispositions=b.rows})["catch"](function(a){console.error(a)})},a.ok=function(){b.close(a.item)},a.cancel=function(){b.dismiss()}}]),angular.module("xCallyShuttleApp").controller("SmsInboxViewModalTagCtrl",["$scope","$uibModalInstance","$translate","$stateParams","Tag","SmsRoom","xAlert","id",function(a,b,c,d,e,f,g,h){console.log(h),a.initModal=function(){return a.tags=[],a.item={tags:[]},a.modal={dismissable:!0,title:"APPLICATION_MESSAGE_SEND_RETRY",text:"MESSAGE_MESSAGE_SEND_RETRY",buttons:[{"class":"btn-success",text:"APPLICATION_TAG",click:function(){var d={status:!0};return f.patch({id:h},{tags:a.item.tags}).$promise.then(function(){g.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(){d.status=!1,g.show(c.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})["finally"](function(){b.close(d)})}},{"class":"default",text:"APPLICATION_CANCEL",click:function(a){b.dismiss(a)}}]},e.get().$promise.then(function(b){a.tags=_.map(b.rows,"name")})["catch"](function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").controller("SmsInboxViewModalTemplateCtrl",["$scope","$uibModalInstance","Template",function(a,b,c){a.initModal=function(){return a.item={},c.get().$promise.then(function(b){a.templates=b.rows})["catch"](function(a){console.error(a)})},a.ok=function(){b.close(a.item)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("SmsQueueListCtrl",["$scope","SmsQueue","gridOptions","$uibModal","xAlert","Auth",function(a,b,c,d,e,f){a.initView=function(){a.Auth=f;var d={exporterCsvFilename:"voice_queues.csv",columnDefs:[{name:"name"},{name:"description"},{name:"timeout"},{name:"strategy"},{name:"action",width:100,buttons:[{"class":"blue-hoki",href:"/channels/sms/queues/view/{{row.entity.id}}/settings",name:"settings"},{"class":"green-meadow",href:"/channels/sms/queues/view/{{row.entity.id}}/agents",name:"agents",hide:"user"===f.getCurrentUser().role},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=c.gridOptions(b,d,a)},a.createItem=function(){var b=d.open({animation:!0,templateUrl:"app/channels/sms/queue/list/list.create.modal.html",controller:"SmsQueueListCreateCtrl",size:"lg"});b.result.then(function(b){console.log(b),a.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("SmsQueueListCreateCtrl",["$scope","$uibModalInstance","$translate","xAlert","SmsQueue","Team","strategies",function(a,b,c,d,e,f,g){a.form={},a.strategies=g,a.item={penalty:0,agents:[]},a.getTeams=function(){return f.get({controller:"associations"}).$promise.then(function(b){a.teams=b.rows}).then(function(){ComponentsDropdowns.bindQueue(a.teams,[],function(){return{select:function(b){a.item.agents=_.union(a.item.agents,b)},deselect:function(b){a.item.agents=_.difference(a.item.agents,b)}}})})["catch"](function(a){console.error(a)})},a.save=function(){return console.log(a.item),e.save(a.item).$promise.then(function(a){b.close(a)})["catch"](function(a){d.error(a)})},a.cancel=function(){b.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.sms.queues.list",{url:"/list",templateUrl:"app/channels/sms/queue/list/list.html",controller:"SmsQueueListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").factory("SmsQueue",["$resource",function(a){return a("/api/sms/queues/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.sms.queues",{url:"/queues",template:"<div ui-view></div>",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:43}}})}]),angular.module("xCallyShuttleApp").controller("SmsQueueViewCtrl",["$scope","$http","Auth","$translate","$stateParams","xAlert","Team","SmsQueue","strategies",function(a,b,c,d,e,f,g,h,i){a.strategies=i,a.Auth=c;var j=function(){return{select:function(b){return h.save({id:a.queue.id,controller:"agents"},{agents:b,penalty:a.queue.penalty}).$promise.then(function(b){console.log("sel",b),a.getTeams()})["catch"](function(a){console.error(a)})},deselect:function(b){return h["delete"]({id:a.queue.id,controller:"agents",agents:b}).$promise.then(function(b){console.log("desel",b),a.getTeams()})["catch"](function(a){console.error(a)})}}};a.getQueue=function(){return h.get({id:e.id}).$promise.then(function(b){b.penalty=0,a.queue=b})["catch"](function(a){console.error(a)})},a.updateSmsQueue=function(){return h.update({id:e.id},{name:a.queue.name,description:a.queue.description,timeout:a.queue.timeout,strategy:a.queue.strategy}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})},a.getTeams=function(){return g.get({controller:"associations"}).$promise.then(function(b){return a.teams=b.rows,console.log(b.rows),h.get({id:e.id,controller:"agents"}).$promise}).then(function(b){console.log(b),ComponentsDropdowns.bindSmsQueue(a.teams,_.map(b.rows,function(a){return{id:a.id,penalty:a.UserHasSmsQueue.penalty}}),j)})["catch"](function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.sms.queues.view",{url:"/view/:id",templateUrl:"app/channels/sms/queue/view/view.html",controller:"SmsQueueViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.channels.sms.queues.view.settings",{url:"/settings",templateUrl:"app/channels/sms/queue/view/view.settings.html"}).state("main.channels.sms.queues.view.agents",{url:"/agents",templateUrl:"app/channels/sms/queue/view/view.agents.html",cache:!1,serie:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.sms.realtime",{url:"/realtime",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:45}}})}]),angular.module("xCallyShuttleApp").controller("SmsRealtimeViewAgentCtrl",["$scope","$log","$uibModal","$translate","socket","xAlert","Agent","Pause","Action","SmsQueue","usSpinnerService","$q","uiGridConstants","$timeout","Auth","User",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){function q(){return k.spin("grid-spinner"),g.get(w).$promise.then(function(b){a.gridOptions.totalItems=b.count,a.gridOptions.data=[],b.rows.forEach(function(a){s(a)})})["catch"](function(a){f.error(a)})["finally"](function(){k.stop("grid-spinner")})}function r(){e.socket.on("agent:save",function(b){b=b.newValues||b;var c=_.find(a.gridOptions.data,{agentId:b.id,isAgent:!0});c&&(c.online=_.has(b,"online")?b.online:c.online,c.lastLoginAt=_.has(b,"lastLoginAt")?b.lastLoginAt:c.lastLoginAt,c.pause=_.has(b,"smsPause")?b.smsPause:c.smsPause,c.pauseType=_.has(b,"pauseType")?b.pauseType:c.pauseType,c.lastPauseAt=_.has(b,"lastPauseAt")?b.lastPauseAt:c.lastPauseAt,c.ipaddr=_.has(b,"ipaddr")?b.ipaddr:c.ipaddr,c.port=_.has(b,"port")?b.port:c.port,c.fullcontact=_.has(b,"fullcontact")?b.fullcontact:c.fullcontact,c.useragent=_.has(b,"useragent")?b.useragent:c.useragent,c.lastms=_.has(b,"lastms")?b.lastms:c.lastms,c.internal=_.has(b,"internal")?b.internal:c.internal,c.fullname=b.hasOwnProperty("fullname")?b.fullname:c.fullname,_.map(a.gridOptions.data,function(a){a.isAgent||a.agentId!==b.id||(a.online=_.has(b,"online")?b.online:a.online)}))}),e.socket.on("agent:remove",function(b){_.remove(a.gridOptions.data,{agentId:b.id})}),e.socket.on("user_has_sms_queue:save",function(b){var c=_.includes(_.map(a.pSmsQueues,"id"),b.SmsQueueId)||o.isAdmin();if(c){var d=_.find(a.gridOptions.data,{agentId:Number(b.UserId),isAgent:!0});if(d){var e=a.gridOptions.data.indexOf(d);a.gridOptions.data.splice(e+1,0,{isAgent:!1,agentId:Number(b.UserId),queue:b.queue,queueId:b.SmsQueueId,agent:b.membername,online:d.online})}}}),e.socket.on("user_has_sms_queue:remove",function(b){_.remove(a.gridOptions.data,{agentId:b.UserId,queueId:b.SmsQueueId});var c=_.filter(a.gridOptions.data,{agentId:b.UserId});c&&c.length<=1&&!o.isAdmin()&&_.remove(a.gridOptions.data,{agentId:b.UserId})})}function s(b){a.gridOptions.data.push({isAgent:!0,agentId:b.id,agent:b.name,online:b.online,lastLoginAt:b.lastLoginAt,lastPauseAt:b.lastPauseAt,pause:b.smsPause,pauseType:b.pauseType,ipaddr:b.ipaddr,port:b.port,fullcontact:b.fullcontact,useragent:b.useragent,lastms:b.lastms,internal:b.internal,$$treeLevel:0,fullname:b.fullname}),b.SmsQueues&&b.SmsQueues.forEach(function(c){a.gridOptions.data.push({isAgent:!1,agentId:b.id,queue:c.name,queueId:c.id,agent:b.name,online:b.online})})}function t(){return h.get().$promise.then(function(b){a.pauses=b.rows,e.syncUpdates("pause",a.pauses)})["catch"](function(a){f.error(a)})}function u(){return j.get().$promise.then(function(b){a.smsQueues=b.rows,e.syncUpdates("sms_queue",a.smsQueues)})["catch"](function(a){f.error(a)})}function v(){return p.query({id:a.user.id,controller:"allowed",controller2:"sms",controller3:"queues"}).$promise.then(function(b){a.pSmsQueues=b})["catch"](function(a){f.error(a)})}a.smsQueues=[];var w={controller:"realtime",controller1:"sms",offset:0,limit:10};a.moment=moment,a.initAgents=function(){a.user=o.getCurrentUser(),a.gridOptions={enableGridMenu:!0,headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,showGridFooter:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,useExternalPagination:!0,useExternalSorting:!0,useExternalFiltering:!0,multiSelect:!0,showTreeExpandNoChildren:!0,columnDefs:[{name:"name",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.isAgent">{{row.entity.agent}} <{{row.entity.internal}}></div>'},{name:"fullname",displayName:"APPLICATION_FULLNAME",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.isAgent">{{row.entity.fullname}}</div>'},{name:"online",displayName:"APPLICATION_ONLINE",width:150,headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.online != null && row.entity.isAgent"><i class="fa" data-ng-class="{\'font-green\':row.entity.online, \'font-red\':!row.entity.online,\'fa-user\':row.entity.online,\'fa-user-times\':!row.entity.online}"></i> <i data-ng-if="row.entity.online" class="fa fa-sign-out font-red pointer-cursor" title="logout" data-ng-click="grid.appScope.agentLogout(row.entity.agent,row.entity.agentId)"></i> <span data-ng-if="row.entity.online && grid.appScope.showTimers" class="left-margin"><css-timer start-time="row.entity.lastLoginAt"></css-timer></span></div>',filter:{type:m.filter.SELECT,selectOptions:[{value:"true",label:"ONLINE"},{value:"false",label:"OFFLINE"}]}},{name:"smsPause",displayName:"APPLICATION_PAUSE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.pause != null && row.entity.online" class="ui-grid-vcenter"><i data-ng-if="row.entity.pause" data-ng-click="grid.appScope.pause(row.entity,\'unpause\')" class="fa fa-play font-green pointer-cursor left-margin" title="{{\'APPLICATION_RESUME\' | translate}}"></i><i class="fa fa-pause font-yellow pointer-cursor" data-ng-click="grid.appScope.pause(row.entity,\'pause\',\'DEFAULT PAUSE\')" title="{{\'APPLICATION_DEFAULT_PAUSE\' | translate}}"></i><select data-ng-if="grid.appScope.pauses.length" class="pause-select pointer-cursor" data-ng-model="grid.appScope.pauseType" data-ng-change="grid.appScope.pause(row.entity,\'pause\',grid.appScope.pauseType)"><option class="pointer-cursor" data-ng-repeat="pause in grid.appScope.pauses">{{pause.name}}</option></select> <span data-ng-if="row.entity.pause" class="left-margin">({{row.entity.pauseType}})</span><span data-ng-if="row.entity.pause && grid.appScope.showTimers" class="left-margin"><css-timer start-time="row.entity.lastPauseAt"></css-timer></span></div>',filter:{type:m.filter.SELECT,selectOptions:[{value:"true",label:"PAUSED"},{value:"false",label:"NOT PAUSED"}]},enableSorting:!1,enableColumnMenu:!1},{name:"queue",displayName:"APPLICATION_QUEUE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"action",displayName:"",width:170,cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><button data-ng-if="row.entity.queueId" class="btn btn-xs red-sunglo" data-ng-click="grid.appScope.leaveQueue(row.entity.agentId,row.entity.queueId)"><i class="icon-ban"></i> {{\'APPLICATION_LEAVE\' | translate}}</button><button data-ng-if="row.entity.isAgent && row.treeNode.children.length < grid.appScope.smsQueues.length" class="btn btn-xs blue-hoki" data-ng-click="grid.appScope.joinQueue(row.entity.agentId)"><i class="icon-plus"></i> {{\'APPLICATION_JOIN_QUEUE\' | translate}}</button><div>',enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1}],data:[],gridMenuTitleFilter:function(a){var b=l.defer();return b.resolve(d.instant(a)),b.promise},onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){x(a.gridApi.core.getVisibleRows(a.gridApi.grid).length)}),a.gridApi.treeBase.on.rowExpanded(a,function(b){x(a.gridApi.core.getVisibleRows(a.gridApi.grid).length+b.treeNode.children.length)}),a.gridApi.treeBase.on.rowCollapsed(a,function(b){x(a.gridApi.core.getVisibleRows(a.gridApi.grid).length-b.treeNode.children.length)}),a.gridApi.core.on.sortChanged(a,function(a,b){0===b.length?w.order=null:w.order=b[0].name+" "+b[0].sort.direction.toUpperCase(),q()}),a.gridApi.pagination.on.paginationChanged(a,function(a,b){w.offset=(a-1)*b,w.limit=b,q()}),a.gridApi.core.on.filterChanged(a,function(){var a=this.grid;a.columns.forEach(function(a){a.filters[0].term?w[a.name]=a.filters[0].term:delete w[a.name]}),q()})}},q(),t(),u(),v(),n(function(){r()})};var x=function(a){var b=a?30*a+130:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",b+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*a+"px")};a.$on("$destroy",function(){e.unsyncUpdates("agent"),e.unsyncUpdates("user_has_sms_queue")}),a.pause=function(b,c,e){return e&&(a.pauseType=null),i.save({name:c,agent:b.agentId,data2:b.agent,type:e||"DEFAULT PAUSE",data4:e||"DEFAULT PAUSE",channel:"sms"}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})},a.joinQueue=function(e){var g=c.open({animation:!0,templateUrl:"app/channels/sms/realtime/view/agent/queue.modal.add.html",controller:"SmsRealtimeViewAgentQueueModalCtrl",resolve:{queues:function(){return _.reject(a.smsQueues,function(b){return!!_.find(a.gridOptions.data,{queue:b.name,isAgent:!1,agentId:e})})}}});g.result.then(function(b){return i.save({name:"QueueAdd",agent:e,queues:_.filter(a.smsQueues,function(a){return _.includes(b.queues,a.id)}),channel:"sms",data1:e,data3:b.queues.join(","),data4:"sms"}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})},function(){b.info("Modal dismissed at: "+new Date)})},a.leaveQueue=function(a,b){return i.save({name:"QueueRemove",agent:a,queueId:b,channel:"sms",data1:a,data3:b,data4:"sms"}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})},a.showInfo=function(a){c.open({animation:!0,templateUrl:"app/channels/sms/realtime/view/agent/agent.modal.info.html",controller:"SmsRealtimeViewAgentInfoModalCtrl",resolve:{agent:a}})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.sms.realtime.view.agents",{url:"/agents",templateUrl:"app/channels/sms/realtime/view/agent/agent.html",controller:"SmsRealtimeViewAgentCtrl"})}]),angular.module("xCallyShuttleApp").controller("SmsRealtimeViewAgentInfoModalCtrl",["$scope","$uibModalInstance","$http","agent",function(a,b,c,d){a.agent=d,a.close=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("SmsRealtimeViewAgentQueueModalCtrl",["$scope","$uibModalInstance","$http","queues",function(a,b,c,d){a.queues=d,a.item={},a.save=function(){b.close(a.item)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("SmsRealtimeViewApplicationCtrl",["$scope","$log","$uibModal","$translate","socket","xAlert","ReportSmsSession","usSpinnerService","$q","uiGridConstants","$timeout",function(a,b,c,d,e,f,g,h,i,j,k){function l(){return h.spin("spinner-grid"),g.get({controller:"waiting",controller2:"applications"}).$promise.then(function(b){a.gridOptions.data=b.rows})["catch"](function(a){f.error(a)})["finally"](function(){m(),h.stop("spinner-grid")})}function m(){e.socket.on("report_sms_session:save",function(b){var c=_.find(a.gridOptions.data,{id:b.id});c?(_.merge(c,b),b.leaveAt&&k(function(){_.remove(a.gridOptions.data,{id:b.id})},1e4)):b.leaveAt||a.gridOptions.data.push(b)}),e.socket.on("report_sms_session:remove",function(b){_.remove(a.gridOptions.data,{id:b.id})})}a.moment=moment,a.initApplications=function(){a.gridOptions={headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,columnDefs:[{name:"uniqueid",displayName:"APPLICATION_UNIQUEID",headerCellFilter:"translate"},{name:"accountname",displayName:"APPLICATION_ACCOUNT",headerCellFilter:"translate"},{name:"application",displayName:"APPLICATION_APPLICATION",headerCellFilter:"translate"},{name:"status",displayName:"APPLICATION_STATUS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span data-ng-if="!row.entity.leaveAt">{{\'APPLICATION_QUEUESTATUS_WAITING\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.complete">{{\'APPLICATION_QUEUESTATUS_COMPLETE\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.timeout">{{\'APPLICATION_TIMEOUT\' | translate}}</span> <span data-ng-if="!row.entity.leaveAt && grid.appScope.showTimers"><css-timer start-time="row.entity.updatedAt"></css-timer></span></div>',enableSorting:!1,enableColumnMenu:!1,enableFiltering:!1},{name:"membername",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.membername || ''}}</span></div>"},{name:"queuename",displayName:"APPLICATION_QUEUE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.queuename || ''}}</span></div>"}],data:[],gridMenuTitleFilter:function(a){var b=i.defer();return b.resolve(d.instant(a)),b.promise},onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){n(a.gridOptions.data.length)})}},l()};var n=function(a){var b=a?30*a+60:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",b+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*a+"px")};a.$on("$destroy",function(){e.unsyncUpdates("report_sms_session")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.sms.realtime.view.applications",{url:"/applications",templateUrl:"app/channels/sms/realtime/view/application/application.html",controller:"SmsRealtimeViewApplicationCtrl"})}]),angular.module("xCallyShuttleApp").controller("SmsRealtimeViewCtrl",["$scope","$state",function(a,b){a.agents=[{name:"Queues",link:"main.channels.sms.realtime.view.agents.queues"},{name:"Timeline",link:"main.channels.sms.realtime.view.agents.timeline"}],a.sessions=[{name:"Sessions",link:"main.channels.sms.realtime.view.sessions"}],a.tree={queues:[{name:"Queues",link:"main.channels.sms.realtime.view.agents.queues"},{name:"Timeline",link:"main.channels.sms.realtime.view.agents.timeline"}],sessions:[{name:"Sessions",link:"main.channels.sms.realtime.view.sessions"}]},a.timerSwitch={isActive:!0,size:"mini",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"primary"},a.showTimers=!1}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.sms.realtime.view",{url:"/view",templateUrl:"app/channels/sms/realtime/view/view.html",controller:"SmsRealtimeViewCtrl"})}]),angular.module("xCallyShuttleApp").factory("ReportSmsSession",["$resource",function(a){return a("/api/report/sms/sessions/:id/:controller/:controller2",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.sms",{url:"/sms",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:11}}})}]),angular.module("xCallyShuttleApp").factory("SmsQueue",["$resource",function(a){return a("/api/sms/queues/:id/:controller",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("SmsReport",["$resource",function(a){return a("/api/report/sms/:id/:controller1/:controller2",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("SmsMessage",["$resource",function(a){return a("/api/sms/messages/:id/:controller",{id:"@id",controller:"@controller"},{update:{method:"PUT"},patch:{method:"PATCH"}})}]),angular.module("xCallyShuttleApp").factory("SmsRoom",["$resource",function(a){return a("/api/sms/rooms/:id/:controller",{id:"@id",controller:"@controller"},{update:{method:"PUT"},patch:{method:"PATCH"}})}]),angular.module("xCallyShuttleApp").factory("ChanSpy",["$resource",function(a){return a("/api/chanspy/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.chanspy",{url:"/chanspy",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:27}}})}]),angular.module("xCallyShuttleApp").controller("ChanSpyListCtrl",["$scope","$uibModal","ChanSpy","gridOptions",function(a,b,c,d){a.initView=function(){var b={exporterCsvFilename:"chanspy.csv",columnDefs:[{name:"name"},{name:"prefix"},{name:"description"},{name:"action",width:75,buttons:[{"class":"blue-hoki",href:"/channels/voice/chanspy/view/{{row.entity.id}}/settings",name:"settings"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=d.gridOptions(c,b,a)},a.createItem=function(){var c=b.open({animation:!0,templateUrl:"app/channels/voice/chanspy/list/list.create.modal.html",controller:"ChanSpyListCreateCtrl"});c.result.then(function(b){a.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("ChanSpyListCreateCtrl",["$scope","$translate","$uibModalInstance","ChanSpy","xAlert",function(a,b,c,d,e){a.form={},a.item={auth:!1,record:!1},a.recordSwitch={onText:"On",offText:"Off",isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.authSwitch={onText:"On",offText:"Off",isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.options=[{name:"APPLICATION_CHANSPY_OPTION_b",value:"b"},{name:"APPLICATION_CHANSPY_OPTION_B",value:"B"},{name:"APPLICATION_CHANSPY_OPTION_E",value:"E"},{name:"APPLICATION_CHANSPY_OPTION_o",value:"o"},{name:"APPLICATION_CHANSPY_OPTION_q",value:"q"},{name:"APPLICATION_CHANSPY_OPTION_s",value:"s"},{name:"APPLICATION_CHANSPY_OPTION_S",value:"S"},{name:"APPLICATION_CHANSPY_OPTION_w",value:"w"},{name:"APPLICATION_CHANSPY_OPTION_W",value:"W"}],a.save=function(){return a.item.options=a.item.options.join(""),d.save(a.item).$promise.then(function(a){e.show(b.instant("MESSAGE_WELL_DONE"),"success"),c.close(a)})["catch"](function(a){e.error(a)})},a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.chanspy.list",{url:"/list",templateUrl:"app/channels/voice/chanspy/list/list.html",controller:"ChanSpyListCtrl"})}]),angular.module("xCallyShuttleApp").controller("ChanSpyViewCtrl",["$scope","$translate","$stateParams","xAlert","ChanSpy",function(a,b,c,d,e){a.recordSwitch={onText:"On",offText:"Off",isActive:!0, -size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.authSwitch={onText:"On",offText:"Off",isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.options=[{name:"APPLICATION_CHANSPY_OPTION_b",value:"b"},{name:"APPLICATION_CHANSPY_OPTION_B",value:"B"},{name:"APPLICATION_CHANSPY_OPTION_E",value:"E"},{name:"APPLICATION_CHANSPY_OPTION_o",value:"o"},{name:"APPLICATION_CHANSPY_OPTION_q",value:"q"},{name:"APPLICATION_CHANSPY_OPTION_s",value:"s"},{name:"APPLICATION_CHANSPY_OPTION_S",value:"S"},{name:"APPLICATION_CHANSPY_OPTION_w",value:"w"},{name:"APPLICATION_CHANSPY_OPTION_W",value:"W"}],a.getChanSpy=function(){return e.get({id:c.id}).$promise.then(function(b){b.options=b.options.split(""),a.chanspy=b})["catch"](function(a){d.error(a)})},a.updateChanSpy=function(){var f=angular.copy(a.chanspy);return f.options=f.options.join(""),e.update({id:c.id},f).$promise.then(function(){d.show(b.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){d.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.chanspy.view",{url:"/view/:id",templateUrl:"app/channels/voice/chanspy/view/view.html",controller:"ChanSpyViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.channels.voice.chanspy.view.settings",{url:"/settings",templateUrl:"app/channels/voice/chanspy/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").factory("VoiceContext",["$resource",function(a){return a("/api/voice/contexts/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.contexts",{url:"/contexts",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:22}}})}]),angular.module("xCallyShuttleApp").controller("VoiceContextListCtrl",["$scope","VoiceContext","gridOptions","$uibModal","xAlert","$translate",function(a,b,c,d,e,f){a.initView=function(){var d={exporterCsvFilename:"voice_contexts.csv",columnDefs:[{name:"name"},{name:"description"},{name:"action",width:75,buttons:[{"class":"{{row.entity.defaultEntry ? 'blue-hoki disabled' : 'blue-hoki'}}",href:"/channels/voice/contexts/view/{{row.entity.id}}/settings",name:"settings"},{"class":"{{row.entity.defaultEntry ? 'red-sunglo disabled' : 'red-sunglo'}}",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=c.gridOptions(b,d,a)},a.createItem=function(){var c=d.open({animation:!0,templateUrl:"app/channels/voice/context/list/create.modal.html",controller:["$scope","$uibModalInstance",function(a,b){a.form={},a.item={},a.ok=function(){b.close(a.item)},a.cancel=function(){b.dismiss("cancel")}}]});c.result.then(function(c){return b.save(c).$promise.then(function(){a.gridOptions.getPage(),e.show(f.instant("MESSAGE_WELL_DONE")+"!","success")})["catch"](function(a){e.error(a)})})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.contexts.list",{url:"/list",templateUrl:"app/channels/voice/context/list/list.html",controller:"VoiceContextListCtrl"})}]),angular.module("xCallyShuttleApp").controller("VoiceContextViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","$location",function(a,b,c,d,e,f){a.getContext=function(){b.get("/api/voice/contexts/"+e.id).success(function(b){a.context=b}).error(function(a){console.error(a),f.path("/voice/contexts/list")})},a.updateVoiceContext=function(){var f=angular.copy(a.context);b.put("/api/voice/contexts/"+e.id,f).success(function(){c.show(d.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(b){c.error(b),a.context=f})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.contexts.view",{url:"/view/:id",templateUrl:"app/channels/voice/context/view/view.html",controller:"VoiceContextViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.channels.voice.contexts.view.settings",{url:"/settings",templateUrl:"app/channels/voice/context/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.dispositions",{url:"/dispositions",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:28}}})}]),angular.module("xCallyShuttleApp").controller("VoiceDispositionListCtrl",["$scope","$stateParams","$uibModal","$translate","VoiceDisposition","xAlert",function(a,b,c,d,e,f){a.initView=function(){return e.get().$promise.then(function(b){a.dispositions=b.rows})["catch"](function(a){console.error(a),f.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.updateDisposition=function(a,b){return e.update({id:a},{name:b}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE")+"!","success")})["catch"](function(a){console.error(a),f.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.deleteDisposition=function(b){return e.remove({id:b}).$promise.then(function(){_.remove(a.dispositions,{id:b}),f.show(d.instant("MESSAGE_WELL_DONE")+"!","success")})["catch"](function(a){console.error(a),f.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.addDisposition=function(){return c.open({animation:!0,templateUrl:"app/channels/voice/disposition/list/modal/add.modal.html",controller:"VoiceDispositionListModalDispositionAddCtrl"}).result.then(function(b){b&&(a.dispositions.push(b),f.show(d.instant("MESSAGE_WELL_DONE")+"!","success"))})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.dispositions.list",{url:"/list",templateUrl:"app/channels/voice/disposition/list/list.html",controller:"VoiceDispositionListCtrl"})}]),angular.module("xCallyShuttleApp").controller("VoiceDispositionListModalDispositionAddCtrl",["$scope","$uibModalInstance","VoiceDisposition","xAlert","$translate",function(a,b,c,d,e){a.ok=function(){return c.save({name:a.name}).$promise.then(function(a){b.close(a)})["catch"](function(a){d.show(e.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").factory("VoiceDisposition",["$resource",function(a){return a("/api/voice/dispositions/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("VoiceMohListCtrl",["$scope","gridOptions","VoiceMoh","$uibModal","xAlert","$translate",function(a,b,c,d,e,f){a.initView=function(){var d={exporterCsvFilename:"voice_mohs.csv",columnDefs:[{name:"name"},{name:"mode"},{name:"directory"},{name:"sort"},{name:"description"},{name:"action",width:75,buttons:[{"class":"blue-hoki",href:"/channels/voice/mohs/view/{{row.entity.id}}/settings",name:"settings"},{"class":"{{row.entity.defaultEntry ? 'red-sunglo disabled' : 'red-sunglo'}}",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=b.gridOptions(c,d,a)},a.createItem=function(){var b=d.open({animation:!0,templateUrl:"app/channels/voice/moh/list/create.modal.html",controller:["$scope","$uibModalInstance",function(a,b){a.form={},a.item={},a.ok=function(){b.close(a.item)},a.cancel=function(){b.dismiss("cancel")}}]});b.result.then(function(b){return c.save(b).$promise.then(function(){a.gridOptions.getPage(),e.show(f.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){e.error(a)})})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.mohs.list",{url:"/list",templateUrl:"app/channels/voice/moh/list/list.html",controller:"VoiceMohListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").factory("VoiceMoh",["$resource",function(a){return a("/api/voice/musiconholds/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.mohs",{url:"/mohs",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:24}}})}]),angular.module("xCallyShuttleApp").controller("VoiceMohViewCtrl",["$scope","$http","xAlert","$translate","VoiceMoh","$stateParams","socket","Modal","$sce","$location","Sound",function(a,b,c,d,e,f,g,h,i,j,k){a.$translate=d,a.audioSources={},a.sortOptions=[{value:"random",name:"APPLICATION_RANDOM"},{value:"alpha",name:"APPLICATION_ALPHABETICAL"}],a.getMoh=function(){return e.get({id:f.id}).$promise.then(function(b){delete b.stamp,a.moh=b})["catch"](function(a){c.error(a)})},a.updateVoiceMoh=function(){return e.update({id:f.id},a.moh).$promise.then(function(){c.show(d.instant("MESSAGE_WELL_DONE")+"!","success")})["catch"](function(a){c.error(a)})},a.addMohs=function(){return e.save({id:f.id,controller:"files"},a.item).$promise.then(function(){j.path("/channels/voice/mohs/view/"+f.id+"/audios")})["catch"](function(a){c.error(a)})},a.getAudioFiles=function(){return e.get({id:f.id,controller:"files"}).$promise.then(function(b){a.audioFiles=b.files,a.mohPath=b.path,a.audioFiles.forEach(function(a){l(a)})})["catch"](function(a){c.error(a)})},a.getSecureSrc=function(a){return i.trustAsResourceUrl(a)},a.getSounds=function(){return a.item={sounds:[]},k.get().$promise.then(function(b){a.soundList=b.rows})["catch"](function(a){c.error(a)})};var l=function(c){b.get("/api/voice/musiconholds/stream",{params:{path:encodeURI(a.mohPath+"/"+c)}}).success(function(b){a.audioSources[c]="data:audio/ogg;base64,"+b}).error(function(a){console.error(a)})};a.deleteItem=h.confirm["delete"](function(e){b["delete"]("/api/voice/musiconholds/"+f.id+"/files",{params:{filename:e}}).success(function(){_.remove(a.audioFiles,function(a){return a===e}),c.show(d.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(a){c.error(a)})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.mohs.view",{url:"/view/:id",templateUrl:"app/channels/voice/moh/view/view.html",controller:"VoiceMohViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.channels.voice.mohs.view.settings",{url:"/settings",templateUrl:"app/channels/voice/moh/view/view.settings.html"}).state("main.channels.voice.mohs.view.audios",{url:"/audios",templateUrl:"app/channels/voice/moh/view/view.audios.html",cache:!1}).state("main.channels.voice.mohs.view.add",{url:"/add",templateUrl:"app/channels/voice/moh/view/view.addFiles.html",cache:!1})}]),angular.module("xCallyShuttleApp").controller("VoiceQueueListCtrl",["$scope","$rootScope","$uibModal","VoiceQueue","gridOptions","Auth",function(a,b,c,d,e,f){a.initView=function(){a.Auth=f;var b={exporterCsvFilename:"voice_queues.csv",primaryKey:"name",columnDefs:[{name:"name"},{name:"strategy"},{name:"description"},{name:"action",width:100,buttons:[{"class":"blue-hoki",href:"/channels/voice/queues/view/{{row.entity.name}}/settings",name:"settings"},{"class":"green-meadow",href:"/channels/voice/queues/view/{{row.entity.name}}/agents",name:"agents",hide:"user"===f.getCurrentUser().role},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.name)"}]}]};a.gridOptions=e.gridOptions(d,b,a)},a.createItem=function(){var b=c.open({animation:!0,templateUrl:"app/channels/voice/queue/list/list.create.modal.html",controller:"VoiceQueueListCreateCtrl",size:"lg"});b.result.then(function(){a.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("VoiceQueueListCreateCtrl",["$scope","$uibModalInstance","$translate","xAlert","VoiceQueue","Team",function(a,b,c,d,e,f){a.form={},a.item={penalty:0,agents:[]},a.getTeams=function(){return f.get({controller:"associations"}).$promise.then(function(b){a.teams=b.rows}).then(function(){ComponentsDropdowns.bindQueue(a.teams,[],function(){return{select:function(b){a.item.agents=_.union(a.item.agents,b),console.log(a.item.agents)},deselect:function(b){a.item.agents=_.difference(a.item.agents,b),console.log(a.item.agents)}}})})["catch"](function(a){console.error(a)})},a.save=function(){return e.save(a.item).$promise.then(function(a){d.show(c.instant("MESSAGE_WELL_DONE"),"success"),b.close(a)})["catch"](function(a){d.error(a)})},a.cancel=function(){b.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.queues.list",{url:"/list",templateUrl:"app/channels/voice/queue/list/list.html",controller:"VoiceQueueListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.queues",{url:"/queues",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin"],redirectTo:"landing"}}})}]),angular.module("xCallyShuttleApp").factory("ReportQueue",["$resource",function(a){return a("/api/report/queues/:id/:controller/:controller2",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("UserHasVoiceQueue",["$resource",function(a){return a("/api/voice/user_has_queues/:controller",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("VoiceQueueViewCtrl",["$scope","xAlert","$translate","$stateParams","socket","$location","VoiceQueue","Team","Auth","VoiceMoh","Sound","Setting",function(a,b,c,d,e,f,g,h,i,j,k,l){a.Auth=i,a.binaryChoices=[{name:"Yes",value:1},{name:"No",value:0}],a.recordSwitch={onText:"On",offText:"Off",isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.autoPauseValues=[{name:"No",value:"no"},{name:"Yes",value:"all"}],a.monitorFormats=[{name:"wav",value:"wav"},{name:"gsm",value:"gsm"},{name:"Inactive",value:""}],a.queueAnnounces=[{display_name:"Default",path:null},{display_name:"Disabled",path:""}];var m=function(){return{select:function(b){return g.save({id:a.queue.name,controller:"agents"},{agents:b,penalty:a.queue.penalty}).$promise.then(function(){a.getTeams()})["catch"](function(a){console.log(a)})},deselect:function(b){return g["delete"]({id:a.queue.name,controller:"agents",agents:b}).$promise.then(function(){a.getTeams()})["catch"](function(a){console.log(a)})}}};a.getQueue=function(){return g.get({id:d.id}).$promise.then(function(b){b.joinempty=""===b.joinempty?[]:b.joinempty.split(","),b.leavewhenempty=""===b.leavewhenempty?[]:b.leavewhenempty.split(","),b.periodic_announce=""===b.periodic_announce?[]:b.periodic_announce.split(","),b.setinterfacevar="yes"===b.setinterfacevar,b.setqueuevar="yes"===b.setqueuevar,b.setqueueentryvar="yes"===b.setqueueentryvar,b.penalty=0,a.queue=b})["catch"](function(a){f.path("/channels/voice/queues/list")})},a.updateVoiceQueue=function(){var e=angular.copy(a.queue);return e.joinempty=e.joinempty.join(","),e.leavewhenempty=e.leavewhenempty.join(","),e.periodic_announce=e.periodic_announce.join(","),e.setinterfacevar=e.setinterfacevar?"yes":"no",e.setqueuevar=e.setqueuevar?"yes":"no",e.setqueueentryvar=e.setqueueentryvar?"yes":"no",e.context||(e.context=null),g.update({id:d.id},e).$promise.then(function(){b.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){b.error(a)})},a.getTeams=function(){return h.get({controller:"associations"}).$promise.then(function(b){return a.teams=b.rows,g.get({id:d.id,controller:"agents"}).$promise}).then(function(b){ComponentsDropdowns.bindQueue(a.teams,_.map(b.rows,function(a){return{id:a.id,penalty:a.UserHasVoiceQueue.penalty}}),m)})["catch"](function(a){console.error(a)})},a.getMohs=function(){return j.get().$promise.then(function(b){a.voiceMohs=b.rows,e.syncUpdates("voice_musiconhold",a.voiceMohs)})["catch"](function(a){b.error(a)})},a.getSounds=function(){var b;return l.get({id:1}).$promise.then(function(a){return b=a,k.get().$promise}).then(function(c){var d=b.soundPath||"/var/opt/motion/server/files/sounds/converted";_.forEach(c.rows,function(a){a.path=(d+"/"+a.save_name).replace(/\/+/g,"/").replace(/\\+/g,"\\")}),a.queueAnnounces=a.queueAnnounces.concat(c.rows),a.periodicAnnounces=angular.copy(c.rows),c.rows.unshift({display_name:"None",path:""}),a.sounds=c.rows,e.syncUpdates("sound",a.sounds)})["catch"](function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.queues.view",{url:"/view/:id",templateUrl:"app/channels/voice/queue/view/view.html",controller:"VoiceQueueViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.channels.voice.queues.view.settings",{url:"/settings",templateUrl:"app/channels/voice/queue/view/view.settings.html"}).state("main.channels.voice.queues.view.agents",{url:"/agents",templateUrl:"app/channels/voice/queue/view/view.agents.html",cache:!1,serie:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").factory("VoiceQueue",["$resource",function(a){return a("/api/voice/queues/:id/:controller",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.realtime",{url:"/realtime",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:26}}})}]),angular.module("xCallyShuttleApp").controller("VoiceRealtimeViewAbandonedCtrl",["$scope","$translate","socket","xAlert","ReportQueue","usSpinnerService","$q","Auth","uiGridConstants",function(a,b,c,d,e,f,g,h,i){function j(){return f.spin("spinner-grid"),e.get({controller:"abandoned",controller2:"all"}).$promise.then(function(b){a.gridOptions.data=b.rows})["catch"](function(a){d.error(a)})["finally"](function(){k(),f.stop("spinner-grid")})}function k(){c.socket.on("report_queue:update",function(b){if(b.queuecallerabandon){var c=_.find(a.gridOptions.data,{id:b.id});c?_.merge(c,b):a.gridOptions.data.unshift(b)}})}a.radioSwitch={size:"mini",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"success",onColor:"danger"};a.initAbandoned=function(){a.agent=h.getCurrentUser(),a.gridOptions={exporterCsvFilename:"abandoned_calls.csv",enableRowHeaderSelection:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,enableFiltering:!0,enableSorting:!0,enableGridMenu:!1,flatEntityAccess:!0,showGridFooter:!0,fastWatch:!0,enableSelectAll:!1,enableHorizontalScrollbar:0,enableVerticalScrollbar:1,columnDefs:[{name:"queue",displayName:"APPLICATION_QUEUE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter"},{name:"calleridnum",displayName:"APPLICATION_CALLERIDNUM",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter"},{name:"updatedAt",displayName:"APPLICATION_DATE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.updatedAt | date:'yyyy-MM-dd HH:mm:ss'}}</div>"},{name:"lastAssignedTo",cellClass:"text-center ui-grid-vcenter",displayName:"APPLICATION_LAST_ASSIGNED_TO",headerCellFilter:"translate"},{name:"assigned",displayName:"APPLICATION_STATUS",headerCellFilter:"translate",cellTemplate:'<div class="centered-uigrid-td"><input data-ng-change="grid.appScope.updateItem(row.entity)", bs-switch ng-model="row.entity.assigned" type="checkbox" switch-active="{{ !row.entity.assigned || grid.appScope.agent.name === row.entity.lastAssignedTo }}" switch-on-text="{{ \'APPLICATION_ASSIGNED\' | translate }}" switch-off-text="{{ \'APPLICATION_FREE\' | translate }}" switch-on-color="{{ grid.appScope.radioSwitch.onColor }}" switch-off-color="{{ grid.appScope.radioSwitch.offColor }}" switch-animate="{{ grid.appScope.radioSwitch.animate }}" switch-size="{{ grid.appScope.radioSwitch.size }}" switch-label="{{ grid.appScope.radioSwitch.label }}" switch-icon="{{ grid.appScope.radioSwitch.icon }}" switch-radio-off="{{ grid.appScope.radioSwitch.radioOff }}" switch-label-width="{{ grid.appScope.radioSwitch.labelWidth }}" switch-handle-width="{{ grid.appScope.radioSwitch.handleWidth }}"></div>',enableFiltering:!1}],data:[],gridMenuTitleFilter:function(a){var c=g.defer();return c.resolve(b.instant(a)),c.promise},onRegisterApi:function(b){a.gridApi=b}},j()},a.updateItem=function(c){return e.update({id:c.id},{assigned:c.assigned,lastAssignedTo:c.assigned?a.agent.name:void 0}).$promise.then(function(){d.show(b.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){d.error(a)})};a.$on("$destroy",function(){c.unsyncUpdates("report_queue")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.realtime.view.abandoned",{url:"/abandoned",templateUrl:"app/channels/voice/realtime/view/abandoned/abandoned.html",controller:"VoiceRealtimeViewAbandonedCtrl"})}]),angular.module("xCallyShuttleApp").controller("VoiceRealtimeViewAgentCtrl",["$scope","$log","$uibModal","$translate","socket","xAlert","Agent","Pause","Action","VoiceQueue","usSpinnerService","$q","uiGridConstants","Auth","$timeout",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){function p(){return k.spin("grid-spinner"),g.get(u).$promise.then(function(b){a.gridOptions.totalItems=b.count,a.gridOptions.data=[],b.rows.forEach(function(a){r(a)})})["catch"](function(a){f.error(a)})["finally"](function(){k.stop("grid-spinner")})}function q(){e.socket.on("agent:save",function(b){b=b.newValues||b;var c=_.find(a.gridOptions.data,{agentId:b.id,isAgent:!0});c&&(c.online=b.hasOwnProperty("online")?b.online:c.online,c.lastLoginAt=b.hasOwnProperty("lastLoginAt")?b.lastLoginAt:c.lastLoginAt,c.pause=b.hasOwnProperty("voicePause")?b.voicePause:c.pause,c.pauseType=b.hasOwnProperty("pauseType")?b.pauseType:c.pauseType,c.lastPauseAt=b.hasOwnProperty("lastPauseAt")?b.lastPauseAt:c.lastPauseAt,c.status=b.hasOwnProperty("status")?b.status:c.status,c.statusAt=b.hasOwnProperty("statusAt")?b.statusAt:c.statusAt,c.queueStatus=b.hasOwnProperty("queueStatus")?b.queueStatus:c.queueStatus,c.queueStatusAt=b.hasOwnProperty("queueStatusAt")?b.queueStatusAt:c.queueStatusAt,c.lastQueue=b.hasOwnProperty("lastQueue")?b.lastQueue:c.lastQueue,c.ipaddr=b.hasOwnProperty("ipaddr")?b.ipaddr:c.ipaddr,c.port=b.hasOwnProperty("port")?b.port:c.port,c.fullcontact=b.hasOwnProperty("fullcontact")?b.fullcontact:c.fullcontact,c.useragent=b.hasOwnProperty("useragent")?b.useragent:c.useragent,c.lastms=b.hasOwnProperty("lastms")?b.lastms:c.lastms,c.internal=b.hasOwnProperty("internal")?b.internal:c.internal,c.fullname=b.hasOwnProperty("fullname")?b.fullname:c.fullname,_.map(a.gridOptions.data,function(a){a.isAgent||a.agentId!==b.id||(a.online=b.hasOwnProperty("online")?b.online:a.online)}))}),e.socket.on("agent:remove",function(b){_.remove(a.gridOptions.data,{agentId:b.id})})}function r(b){a.gridOptions.data.push({isAgent:!0,agentId:b.id,agent:b.name,online:b.online,lastLoginAt:b.lastLoginAt,lastPauseAt:b.lastPauseAt,pause:b.voicePause,pauseType:b.pauseType,status:b.status||"UNKNOWN",statusAt:b.statusAt,queueStatus:b.queueStatus||"READY",queueStatusAt:b.queueStatusAt,lastQueue:b.lastQueue,ipaddr:b.ipaddr,port:b.port,fullcontact:b.fullcontact,useragent:b.useragent,lastms:b.lastms,internal:b.internal,fullname:b.fullname})}function s(){return h.get().$promise.then(function(b){a.pauses=b.rows,e.syncUpdates("pause",a.pauses)})["catch"](function(a){f.error(a)})}function t(){return j.get().$promise.then(function(b){a.voiceQueues=b.rows,e.syncUpdates("voice_queue",a.voiceQueues)})["catch"](function(a){f.error(a)})}a.voiceQueues=[];var u={controller:"realtime",controller1:"voice",offset:0,limit:10};a.moment=moment,a._=_,a.initAgents=function(){a.gridOptions={enableGridMenu:!0,headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,showGridFooter:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,useExternalPagination:!0,useExternalSorting:!0,useExternalFiltering:!0,multiSelect:!0,columnDefs:[{name:"name",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.isAgent">{{row.entity.agent}} <{{row.entity.internal}}></div>'},{name:"fullname",displayName:"APPLICATION_FULLNAME",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.isAgent">{{row.entity.fullname}}</div>'},{name:"online",displayName:"APPLICATION_ONLINE",width:150,headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.online != null && row.entity.isAgent"><i class="fa" data-ng-class="{\'font-green\':row.entity.online, \'font-red\':!row.entity.online,\'fa-user\':row.entity.online,\'fa-user-times\':!row.entity.online}"></i> <i data-ng-if="row.entity.online" class="fa fa-sign-out font-red pointer-cursor" title="logout" data-ng-click="grid.appScope.agentLogout(row.entity.agent,row.entity.agentId)"></i> <span data-ng-if="row.entity.online && grid.appScope.showTimers" class="left-margin"><css-timer start-time="row.entity.lastLoginAt"></css-timer></span></div>',filter:{type:m.filter.SELECT,selectOptions:[{value:"true",label:"ONLINE"},{value:"false",label:"OFFLINE"}]}},{name:"status",displayName:"APPLICATION_PHONE_STATUS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div data-ng-if=\"row.entity.isAgent\">{{'APPLICATION_'+row.entity.status | translate}} <span data-ng-if=\"row.entity.statusAt && (row.entity.status === 'BUSY' || row.entity.status === 'ONHOLD' || row.entity.status === 'INUSE')\"><span data-ng-if=\"grid.appScope.showTimers\"><css-timer start-time=\"row.entity.statusAt\"></css-timer></span></span></div>",filter:{type:m.filter.SELECT,selectOptions:[{value:"UNKNOWN",label:d.instant("APPLICATION_UNKNOWN")},{value:"NOT_INUSE",label:d.instant("APPLICATION_NOT_INUSE")},{value:"INUSE",label:d.instant("APPLICATION_INUSE")},{value:"BUSY",label:d.instant("APPLICATION_BUSY")},{value:"INVALID",label:d.instant("APPLICATION_INVALID")},{value:"UNAVAILABLE",label:d.instant("APPLICATION_UNAVAILABLE")},{value:"RINGING",label:d.instant("APPLICATION_RINGING")},{value:"RINGINUSE",label:d.instant("APPLICATION_RINGINUSE")},{value:"ONHOLD",label:d.instant("APPLICATION_ONHOLD")}]}},{name:"queueStatus",displayName:"APPLICATION_QUEUE_STATUS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.isAgent && row.entity.online" class="ui-grid-vcenter"><span class="left-margin"><i data-ng-if="row.entity.pause" data-ng-click="grid.appScope.pause(row.entity,\'unpause\')" class="fa fa-play font-green pointer-cursor" title="{{\'APPLICATION_RESUME\' | translate}}"></i><i class="fa fa-pause font-yellow pointer-cursor" data-ng-click="grid.appScope.pause(row.entity,\'pause\',\'DEFAULT PAUSE\')" title="{{\'APPLICATION_DEFAULT_PAUSE\' | translate}}"></i></span><select data-ng-if="grid.appScope.pauses.length" class="pause-select pointer-cursor" data-ng-model="grid.appScope.pauseType" data-ng-change="grid.appScope.pause(row.entity,\'pause\',grid.appScope.pauseType)"><option class="pointer-cursor" data-ng-repeat="pause in grid.appScope.pauses">{{pause.name}}</option></select><span data-ng-if="!row.entity.pause || grid.appScope._.startsWith(row.entity.pauseType,\'#\')"> {{\'APPLICATION_\'+row.entity.queueStatus.toUpperCase() | translate}}</span><span data-ng-if="row.entity.pause && grid.appScope._.startsWith(row.entity.pauseType,\'#\')"> * </span><span data-ng-if="row.entity.pause && !grid.appScope._.startsWith(row.entity.pauseType,\'#\')"> {{\'APPLICATION_PAUSED\' | translate}}</span><span data-ng-if="(row.entity.queueStatus!==\'complete\' && (!row.entity.pause || row.entity.pauseType === \'ACW\'))"> [{{row.entity.lastQueue}}]</span><span data-ng-if="row.entity.pause && !grid.appScope._.startsWith(row.entity.pauseType,\'#\')"> [{{row.entity.pauseType}}]</span><span data-ng-if="row.entity.queueStatusAt && (row.entity.queueStatus!==\'complete\' || (row.entity.pause)) && grid.appScope.showTimers"><css-timer start-time="(row.entity.pause && !grid.appScope._.startsWith(row.entity.pauseType,\'#\')) ? row.entity.lastPauseAt : row.entity.queueStatusAt"></css-timer></span></div>',filter:{type:m.filter.SELECT,selectOptions:[{value:"connect",label:d.instant("APPLICATION_CONNECT")},{value:"complete",label:d.instant("APPLICATION_COMPLETE")},{value:"called",label:d.instant("APPLICATION_CALLED")},{value:"paused",label:d.instant("APPLICATION_PAUSED")}]},enableSorting:!1,enableColumnMenu:!1},{name:"action",displayName:"",width:170,cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><button data-ng-if="row.entity.queue" class="btn btn-xs red-sunglo" data-ng-click="grid.appScope.leaveQueue(row.entity.agentId,row.entity.queue)"><i class="icon-ban"></i> {{\'APPLICATION_LEAVE\' | translate}}</button><button data-ng-if="row.entity.isAgent" class="btn btn-xs blue-hoki" data-ng-click="grid.appScope.joinQueue(row.entity.agentId)"><i class="icon-plus"></i> {{\'APPLICATION_QUEUES\' | translate}}</button> <button data-ng-if="row.entity.isAgent" class="btn btn-xs blue-madison" data-ng-click="grid.appScope.showInfo(row.entity)"><i class="icon-info"></i></button><div>',enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1}],data:[],gridMenuTitleFilter:function(a){var b=l.defer();return b.resolve(d.instant(a)),b.promise},onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){v(a.gridApi.core.getVisibleRows(a.gridApi.grid).length)}),a.gridApi.core.on.sortChanged(a,function(a,b){0===b.length?u.order=null:u.order=b[0].name+" "+b[0].sort.direction.toUpperCase(),p()}),a.gridApi.pagination.on.paginationChanged(a,function(a,b){u.offset=(a-1)*b,u.limit=b,p()}),a.gridApi.core.on.filterChanged(a,function(){var a=this.grid;a.columns.forEach(function(a){a.filters[0].term?u[a.name]=a.filters[0].term:delete u[a.name]}),p()})}},p(),s(),t(),o(function(){q()})};var v=function(a){var b=a?30*a+130:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",b+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*a+"px")};a.$on("$destroy",function(){e.unsyncUpdates("agent"),e.unsyncUpdates("user_has_voice_queue")}),a.pause=function(b,c,e){return e&&(a.pauseType=null),i.save({name:c,agent:b.agentId,data2:b.agent,type:e||"DEFAULT PAUSE",data4:e||"DEFAULT PAUSE",channel:"voice"}).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})},a.joinQueue=function(a){c.open({animation:!0,templateUrl:"app/channels/voice/realtime/view/agent/queue.modal.add.html",controller:"VoiceRealtimeViewAgentQueueModalCtrl", -resolve:{id:a}})},a.showInfo=function(a){c.open({animation:!0,templateUrl:"app/channels/voice/realtime/view/agent/agent.modal.info.html",controller:"VoiceRealtimeViewAgentInfoModalCtrl",resolve:{agent:a}})},a.$on("$destroy",function(){e.unsyncUpdates("agent"),e.unsyncUpdates("user_has_voice_queue")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.realtime.view.agents",{url:"/agents",templateUrl:"app/channels/voice/realtime/view/agent/agent.html",controller:"VoiceRealtimeViewAgentCtrl"})}]),angular.module("xCallyShuttleApp").controller("VoiceRealtimeViewAgentInfoModalCtrl",["$scope","$uibModalInstance","agent",function(a,b,c){a.agent=c,a.close=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("VoiceRealtimeViewAgentQueueModalCtrl",["$scope","$uibModalInstance","$http","id","Agent","xAlert","usSpinnerService","$translate","Action","socket","VoiceQueue",function(a,b,c,d,e,f,g,h,i,j,k){a.item={},a.params={penalty:0};var l=function(a,b){var c=a?30*a+130:177;angular.element(document.getElementsByName(b)[0]).css("height",c+"px")};a.enableLeave=!0,a.init=function(){a.queueTable={enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,enableSorting:!0,showGridFooter:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,columnDefs:[{name:"name",headerCellFilter:"translate",displayName:"APPLICATION_QUEUE",cellClass:"text-center ui-grid-vcenter"},{name:"penalty",headerCellFilter:"translate",displayName:"APPLICATION_PENALTY",cellClass:"text-center ui-grid-vcenter"},{name:"loggedAt",displayName:"logged At",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span am-time-ago="row.entity.loggedAt"></span></div>'},{name:"action",displayName:"",width:170,cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><button class="btn btn-xs red-sunglo" data-ng-click="grid.appScope.leaveQueue(row.entity.name)" data-ng-disabled="!grid.appScope.enableLeave"><i class="icon-ban"></i> {{\'APPLICATION_LEAVE\' | translate}}</button>',enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1}],data:[],onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){l(a.queueTable.paginationPageSize>a.queueTable.data.length?a.queueTable.data.length:a.queueTable.paginationPageSize,"queueTable")}),a.gridApi.pagination.on.paginationChanged(a,function(b,c){l(c>a.queueTable.data.length?a.queueTable.data.length:c,"queueTable")})}},a.queues=[];var b={};return e.get({id:d,controller:"voice",controller1:"queues"}).$promise.then(function(a){return _.forEach(_.filter(a.rows,function(a){return a.UserHasVoiceQueue.logged===!0}),function(a){b[a.name]=a}),k.get().$promise}).then(function(c){_.forEach(c.rows,function(c){b[c.name]?a.queueTable.data.push({name:c.name,loggedAt:b[c.name].UserHasVoiceQueue.loggedAt,penalty:b[c.name].UserHasVoiceQueue.penalty}):a.queues.push({name:c.name})}),g.stop("agentqueue-spinner")})["catch"](function(a){f.error(a)})},a.joinQueue=function(){return g.spin("agentqueue-spinner"),a.enableLeave=!1,i.save({name:"QueueAdd",agent:d,queues:a.item.queues,channel:"voice",data1:d,data2:a.params.penalty,data3:a.item.queues.join(","),data4:"voice"}).$promise.then(function(){a.item.queues=[],f.show(h.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})},a.leaveQueue=function(b){return g.spin("agentqueue-spinner"),a.enableLeave=!1,i.save({name:"QueueRemove",agent:d,queue:b,channel:"voice",data1:d,data3:b,data4:"voice"}).$promise.then(function(){f.show(h.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})},j.socket.on("user_has_voice_queue:save",function(b){if(b.UserId==d){var c=_.find(a.queueTable.data,function(a){return a.name===b.queue});if(!c&&b.logged)a.queueTable.data.push({name:b.queue,loggedAt:b.loggedAt,penalty:b.penalty}),_.remove(a.queues,{name:b.queue}),g.stop("agentqueue-spinner"),a.enableLeave=!0;else if(c&&!b.logged){var e=_.remove(a.queueTable.data,{name:b.queue});a.queues.push(e[0])}}}),j.socket.on("user_has_voice_queue:remove",function(b){if(b.UserId==d){var c=_.remove(a.queueTable.data,{name:b.queue});a.queues.push(c[0]),g.stop("agentqueue-spinner"),a.enableLeave=!0}}),a.close=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("VoiceRealtimeViewOutboundCtrl",["$scope","$log","$uibModal","$translate","socket","xAlert","ReportDial","Pause","Action","usSpinnerService","$q","uiGridConstants","$timeout","Auth",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n){function o(){return j.spin("spinner-grid"),g.get({controller:"active",controller2:"calls"}).$promise.then(function(b){a.gridOptions.data=b.rows})["catch"](function(a){f.error(a)})["finally"](function(){p(),j.stop("spinner-grid")})}function p(){e.socket.on("report_dial:save",function(b){a.gridOptions.data.unshift(b)}),e.socket.on("report_dial:update",function(b){var c=_.find(a.gridOptions.data,{uniqueid:b.uniqueid});c&&(_.merge(c,b),!c.endtime||c.answertime&&c.answertime==c.endtime||m(function(){_.remove(a.gridOptions.data,{uniqueid:c.uniqueid})},3e3))})}a.moment=moment,a.initDials=function(){a.gridOptions={paginationPageSizes:[10,25,50,75],paginationPageSize:10,headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,columnDefs:[{name:"uniqueid",displayName:"APPLICATION_UNIQUEID",headerCellFilter:"translate",cellClass:"text-center"},{name:"agent",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.channel.split('/')[1].split('-')[0]}}</div>"},{name:"calleridnum",displayName:"APPLICATION_CALLERID",headerCellFilter:"translate",cellClass:"text-center"},{name:"dialstring",cellClass:"text-center"},{name:"status",displayName:"APPLICATION_STATUS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span data-ng-if="!row.entity.endtime && !row.entity.answertime">{{\'APPLICATION_RINGING\' | translate}}</span><span data-ng-if="row.entity.answertime && !row.entity.endtime">{{\'APPLICATION_TALKING\' | translate}}</span><span data-ng-if="row.entity.answertime && row.entity.endtime">{{\'APPLICATION_COMPLETE\' | translate}}</span><span data-ng-if="row.entity.endtime && !row.entity.answertime">{{\'APPLICATION_\'+row.entity.dialstatus | translate}}</span><span data-ng-if="!row.entity.endtime && grid.appScope.showTimers"> <css-timer start-time="row.entity.updatedAt"></css-timer></span></div>',enableSorting:!1,enableColumnMenu:!1,enableFiltering:!1}],data:[],gridMenuTitleFilter:function(a){var b=k.defer();return b.resolve(d.instant(a)),b.promise},onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){q(a.gridOptions.data.length)})}},o()};var q=function(a){var b=a?30*a+100:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",b+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*a+"px")};a.$on("$destroy",function(){e.unsyncUpdates("report_dial")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.realtime.view.outbound",{url:"/outbound",templateUrl:"app/channels/voice/realtime/view/outbound/outbound.html",controller:"VoiceRealtimeViewOutboundCtrl"})}]),angular.module("xCallyShuttleApp").controller("VoiceRealtimeViewParameterCtrl",["$scope","$translate","Dashboard","VoiceQueue","Auth","socket","uiGridConstants","User",function(a,b,c,d,e,f,g,h){function i(a){var b=a?30*a+150:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",b+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*a+"px")}function j(b){var c=_.find(a.gridOptions.data,{name:b.queue});c&&(c[b.type]+=b.amount)}var k={offset:0,limit:10};a.initParameters=function(){switch(a.user=e.getCurrentUser(),a.$on("$destroy",function(){f.socket.removeAllListeners("voice:inbound")}),a.user.role){case"admin":c.get({id:"voice",controller:"init"}).$promise.then(function(b){for(var c in b.queues)b.queues[c].waiting=b.queues[c].waiting||0,b.queues[c].active=b.queues[c].active||0,b.queues[c].complete=b.queues[c].complete||0,b.queues[c].abandon=b.queues[c].abandon||0,b.queues[c].unmanaged=b.queues[c].unmanaged||0,b.queues[c].holdtime=b.queues[c].holdtime||0,b.queues[c].talktime=b.queues[c].talktime||0,a.gridOptions.data.push(b.queues[c])})["catch"](function(a){console.error(a)});break;case"user":h.query({id:a.user.id,controller:"allowed",controller2:"voice",controller3:"queues"}).$promise.then(function(b){return a.user.PVoiceQueues=b,c.get({id:"voice",controller:"init"}).$promise}).then(function(b){for(var c in b.queues){var d=_.find(a.user.PVoiceQueues,{name:c});d&&(b.queues[c].waiting=b.queues[c].waiting||0,b.queues[c].active=b.queues[c].active||0,b.queues[c].complete=b.queues[c].complete||0,b.queues[c].abandon=b.queues[c].abandon||0,b.queues[c].unmanaged=b.queues[c].unmanaged||0,b.queues[c].holdtime=b.queues[c].holdtime||0,b.queues[c].talktime=b.queues[c].talktime||0,a.gridOptions.data.push(b.queues[c]))}})["catch"](function(a){console.error(a)})}f.socket.on("voice:inbound",function(a){j(a)})},a.gridOptions={headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,enableSorting:!0,showGridFooter:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,columnDefs:[{name:"name",displayName:"APPLICATION_QUEUE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter"},{name:"waiting",displayName:"APPLICATION_WAITING",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"active",displayName:"APPLICATION_ACTIVE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"complete",displayName:"APPLICATION_ANSWERED",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",enableSorting:!1,enableColumnMenu:!1,filters:[{condition:g.filter.GREATER_THAN_OR_EQUAL,placeholder:"from"},{condition:g.filter.LESS_THAN_OR_EQUAL,placeholder:"to"}]},{name:"abandon",displayName:"APPLICATION_ABANDONED",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",enableSorting:!1,enableColumnMenu:!1,filters:[{condition:g.filter.GREATER_THAN_OR_EQUAL,placeholder:"from"},{condition:g.filter.LESS_THAN_OR_EQUAL,placeholder:"to"}]},{name:"unmanaged",displayName:"APPLICATION_UNMANAGED",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",enableSorting:!1,enableColumnMenu:!1,filters:[{condition:g.filter.GREATER_THAN_OR_EQUAL,placeholder:"from"},{condition:g.filter.LESS_THAN_OR_EQUAL,placeholder:"to"}]},{name:"holdtime",displayName:"APPLICATION_HOLDTIME",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.holdtime | secToTime | date:'HH:mm:ss'}}</div>",enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"talktime",displayName:"APPLICATION_TALKTIME",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.talktime | secToTime | date:'HH:mm:ss'}}</div>",enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"totalCalls",displayName:"APPLICATION_TOTAL_CALLS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.complete + row.entity.abandon + row.entity.unmanaged}}</div>",enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1}],data:[],onRegisterApi:function(b){a.gridApi=b,a.gridApi.core.on.sortChanged(a,function(a,b){0===b.length?k.order=null:k.order=b[0].name+" "+b[0].sort.direction.toUpperCase()}),a.gridApi.pagination.on.paginationChanged(a,function(a,b){i(b),k.offset=(a-1)*b,k.limit=b}),a.gridApi.core.on.filterChanged(a,function(){var a=this.grid;a.columns.forEach(function(a){a.filters.length>1?a.filters.forEach(function(b){b.term?64===b.condition?k[a.name+"_uiFrom"]=b.term:256===b.condition&&(k[a.name+"_uiTo"]=b.term):64===b.condition?delete k[a.name+"_uiFrom"]:256===b.condition&&delete k[a.name+"_uiTo"]}):a.filters.length&&a.filters[0].term?k[a.name]=a.filters[0].term:delete k[a.name]})})}}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.realtime.view.parameters",{url:"/parameters",templateUrl:"app/channels/voice/realtime/view/parameter/parameter.html",controller:"VoiceRealtimeViewParameterCtrl"})}]),angular.module("xCallyShuttleApp").controller("VoiceRealtimeViewQueueCtrl",["$scope","$log","$uibModal","$translate","socket","xAlert","VoiceQueue","usSpinnerService","$q",function(a,b,c,d,e,f,g,h,i){function j(){return h.spin("spinner-grid"),g.get().$promise.then(function(b){a.queues=b.rows})["catch"](function(a){f.error(a)})["finally"](function(){k(),h.stop("spinner-grid")})}function k(){e.socket.on("voice_queue:save",function(b){_.find(a.queues,{name:b.name})||a.queues.push(b)}),e.socket.on("voice_queue:remove",function(b){_.remove(a.queues,{name:b.name})}),e.socket.on("user_has_voice_queue:save",function(b){if(b.queue===a.item.queue){var c=_.find(a.gridOptions.data,{id:b.UserId});c?(c.voicePause=b.paused,c.pauseType=b.reason):a.gridOptions.data.push({id:b.UserId,name:b.membername,voicePause:b.paused,pauseType:b.reason})}}),e.socket.on("user_has_voice_queue:remove",function(b){b.queue===a.item.queue&&_.remove(a.gridOptions.data,{id:b.UserId})})}a.moment=moment,a.item={},a.initQueues=function(){a.gridOptions={enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,enableSorting:!0,showGridFooter:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,columnDefs:[{name:"name",displayName:"APPLICATION_AGENT_NAME",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter"},{name:"paused",displayName:"APPLICATION_PAUSED",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div\">{{(row.entity.voicePause ? 'APPLICATION_YES' : 'APPLICATION_NO') | translate}}</div>"},{name:"pauseType",displayName:"APPLICATION_REASON",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.voicePause">{{row.entity.pauseType}}</div>'}],data:[],gridMenuTitleFilter:function(a){var b=i.defer();return b.resolve(d.instant(a)),b.promise},onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){l(a.gridOptions.paginationPageSize>a.gridOptions.data.length?a.gridOptions.data.length:a.gridOptions.paginationPageSize)}),a.gridApi.pagination.on.paginationChanged(a,function(b,c){l(c>a.gridOptions.data.length?a.gridOptions.data.length:c)})}},j(!0)},a.getAgents=function(b){return b?g.get({id:b,controller:"agents"}).$promise.then(function(b){a.gridOptions.data=_.filter(b.rows,function(a){return a.UserHasVoiceQueue.logged===!0})})["catch"](function(a){f.error(a)}):void(a.gridOptions.data=[])};var l=function(a){var b=a?30*a+130:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",b+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*a+"px")};a.$on("$destroy",function(){e.unsyncUpdates("voice_queue"),e.unsyncUpdates("user_has_voice_queue")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.realtime.view.queues",{url:"/queues",templateUrl:"app/channels/voice/realtime/view/queue/queue.html",controller:"VoiceRealtimeViewQueueCtrl"})}]),angular.module("xCallyShuttleApp").controller("VoiceRealtimeViewQueueCallsCtrl",["$scope","$log","$uibModal","$translate","socket","xAlert","ReportQueue","Pause","Action","usSpinnerService","$q","uiGridConstants","$timeout",function(a,b,c,d,e,f,g,h,i,j,k,l,m){function n(){return j.spin("spinner-grid"),g.get({controller:"waiting",controller2:"calls"}).$promise.then(function(b){a.gridOptions.data=b.rows,p(10)})["catch"](function(a){f.error(a)})["finally"](function(){o(),j.stop("spinner-grid")})}function o(){e.socket.on("report_queue:save",function(b){a.gridOptions.data.unshift(b)}),e.socket.on("report_queue:update",function(b){var c=_.find(a.gridOptions.data,{id:b.id});if(c){var d={queuecallerabandon:b.queuecallerabandon,queuecallerleave:b.queuecallerleave};delete b.queuecallerabandon,delete b.queuecallerleave,_.merge(c,b),d.queuecallerabandon&&(c.queuecallerabandon=d.queuecallerabandon),d.queuecallerleave&&(c.queuecallerleave=d.queuecallerleave),(c.queuecallerabandon||c.queuecallercomplete||c.queuecallerexitreason)&&m(function(){_.remove(a.gridOptions.data,{id:b.id})},3e3)}})}a.moment=moment,a.initQueues=function(){a.gridOptions={headerCellFilter:"translate",paginationPageSizes:[10,25,50,75],paginationPageSize:10,enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,columnDefs:[{name:"queue",displayName:"APPLICATION_QUEUE",headerCellFilter:"translate"},{name:"status",displayName:"APPLICATION_STATUS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span data-ng-if="!row.entity.queuecallerleaveAt && !row.entity.queuecallerexit">{{\'APPLICATION_QUEUESTATUS_WAITING\' | translate}}</span><span data-ng-if="row.entity.queuecallerleaveAt && !row.entity.queuecallerabandon && !row.entity.queuecallercomplete && !row.entity.queuecallerexit">{{\'APPLICATION_ACTIVE\' | translate}}</span><span data-ng-if="row.entity.queuecallerleaveAt && row.entity.queuecallerabandon">{{\'APPLICATION_QUEUESTATUS_ABANDON\' | translate}}</span><span data-ng-if="row.entity.queuecallerleaveAt && row.entity.queuecallercomplete">{{\'APPLICATION_QUEUESTATUS_COMPLETE\' | translate}}</span><span data-ng-if="row.entity.queuecallerexitreason">{{row.entity.queuecallerexitreason}}</span><span data-ng-if="!row.entity.queuecallercomplete && !row.entity.queuecallerabandon && !row.entity.queuecallerexit && grid.appScope.showTimers"> <css-timer start-time="row.entity.updatedAt"></css-timer></span></div>',enableSorting:!1,enableColumnMenu:!1,enableFiltering:!1},{name:"caller",displayName:"APPLICATION_CALLER",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.calleridnum || ''}} {{row.entity.calleridname || ''}}</div>",enableSorting:!1,enableColumnMenu:!1,enableFiltering:!1},{name:"position",displayName:"APPLICATION_POSITION",headerCellFilter:"translate"},{name:"lastAssignedTo",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",enableSorting:!1,enableColumnMenu:!1,enableFiltering:!1}],data:[],gridMenuTitleFilter:function(a){var b=k.defer();return b.resolve(d.instant(a)),b.promise},onRegisterApi:function(b){a.gridApi=b,a.gridApi.pagination.on.paginationChanged(a,function(a,b){p(b)})}},n()};var p=function(a){var b=a?30*a+100:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",b+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*a+"px")};a.$on("$destroy",function(){e.unsyncUpdates("report_queue")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.realtime.view.queuecalls",{url:"/queuecalls",templateUrl:"app/channels/voice/realtime/view/queuecalls/queuecalls.html",controller:"VoiceRealtimeViewQueueCallsCtrl"})}]),angular.module("xCallyShuttleApp").controller("VoiceRealtimeViewTelephoneCtrl",["$scope","$log","$uibModal","$translate","socket","xAlert","Telephone","Pause","Action","usSpinnerService","$q","uiGridConstants","$timeout",function(a,b,c,d,e,f,g,h,i,j,k,l,m){function n(){return j.spin("spinner-grid"),g.get(p).$promise.then(function(b){a.gridOptions.totalItems=b.count,a.gridOptions.data=b.rows})["catch"](function(a){f.error(a)})["finally"](function(){j.stop("spinner-grid")})}function o(){e.socket.on("agent:save",function(b){var c=_.find(a.gridOptions.data,{id:b.id});c&&(c.status=b.status,c.statusAt=b.statusAt,c.ipaddr=b.ipaddr,c.port=b.port,c.fullcontact=b.fullcontact,c.useragent=b.useragent,c.lastms=b.lastms,c.internal=b.internal)}),e.socket.on("agent:remove",function(b){_.remove(a.gridOptions.data,{id:b.id})})}var p={offset:0,limit:10};a.moment=moment,a.initTelephones=function(){a.gridOptions={enableGridMenu:!0,headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,showGridFooter:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,useExternalPagination:!0,useExternalSorting:!0,useExternalFiltering:!0,multiSelect:!0,showTreeExpandNoChildren:!0,columnDefs:[{name:"name",displayName:"APPLICATION_TELEPHONE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.name}} <{{row.entity.internal}}></div>"},{name:"status",displayName:"APPLICATION_PHONE_STATUS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{'APPLICATION_'+row.entity.status | translate}} <span data-ng-if=\"row.entity.statusAt && (row.entity.status === 'BUSY' || row.entity.status === 'ONHOLD' || row.entity.status === 'INUSE')\"><span data-ng-if=\"grid.appScope.showTimers\"><css-timer start-time=\"row.entity.statusAt\"></css-timer></span></span></div>",filter:{type:l.filter.SELECT,selectOptions:[{value:"UNKNOWN",label:d.instant("APPLICATION_UNKNOWN")},{value:"NOT_INUSE",label:d.instant("APPLICATION_NOT_INUSE")},{value:"INUSE",label:d.instant("APPLICATION_INUSE")},{value:"BUSY",label:d.instant("APPLICATION_BUSY")},{value:"INVALID",label:d.instant("APPLICATION_INVALID")},{value:"UNAVAILABLE",label:d.instant("APPLICATION_UNAVAILABLE")},{value:"RINGING",label:d.instant("APPLICATION_RINGING")},{value:"RINGINUSE",label:d.instant("APPLICATION_RINGINUSE")},{value:"ONHOLD",label:d.instant("APPLICATION_ONHOLD")}]}},{name:"action",displayName:"",width:170,cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><button class="btn btn-xs blue-madison" data-ng-click="grid.appScope.showInfo(row.entity)"><i class="icon-info"></i></button><div>',enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1}],data:[],gridMenuTitleFilter:function(a){var b=k.defer();return b.resolve(d.instant(a)),b.promise},onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){q(a.gridOptions.data.length)}),a.gridApi.core.on.sortChanged(a,function(a,b){0===b.length?p.order=null:p.order=b[0].name+" "+b[0].sort.direction.toUpperCase(),n()}),a.gridApi.pagination.on.paginationChanged(a,function(a,b){p.offset=(a-1)*b,p.limit=b,n()}),a.gridApi.core.on.filterChanged(a,function(){var a=this.grid;a.columns.forEach(function(a){a.filters[0].term?p[a.name]=a.filters[0].term:delete p[a.name]}),n()})}},n(),m(function(){o()})};var q=function(a){var b=a?30*a+130:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",b+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*a+"px")};a.$on("$destroy",function(){e.unsyncUpdates("agent")}),a.showInfo=function(a){c.open({animation:!0,templateUrl:"app/channels/voice/realtime/view/telephone/telephone.modal.info.html",controller:"VoiceRealtimeViewTelephoneInfoModalCtrl",resolve:{telephone:a}})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.realtime.view.telephones",{url:"/telephones",templateUrl:"app/channels/voice/realtime/view/telephone/telephone.html",controller:"VoiceRealtimeViewTelephoneCtrl",data:{permissions:{only:["admin","user"],redirectTo:"main.dashboard.voice"}}})}]),angular.module("xCallyShuttleApp").controller("VoiceRealtimeViewTelephoneInfoModalCtrl",["$scope","$uibModalInstance","$http","telephone",function(a,b,c,d){a.telephone=d,a.close=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("VoiceRealtimeViewCtrl",["$scope","Auth",function(a,b){a.Auth=b,a.timerSwitch={isActive:!0,size:"mini",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"primary"},a.showTimers=!1}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.realtime.view",{url:"/view",templateUrl:"app/channels/voice/realtime/view/view.html",controller:"VoiceRealtimeViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("VoiceRecordingListCtrl",["$scope","$translate","$sce","Recording","gridOptions","xAlert","uiGridConstants","Auth",function(a,b,c,d,e,f,g,h){a.Recording=d,a.updateRating=function(a,c){return d.update({id:a,rating:c}).$promise.then(function(){f.show(b.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})},a.initView=function(){var b={exporterCsvFilename:"recordings.csv",rowHeight:30,primaryKey:"id",columnDefs:[{name:"uniqueid"},{name:"customerPhone",displayName:"APPLICATION_CUSTOMER_PHONE",cellClass:"text-center ui-grid-vcenter"},{name:"membername"},{name:"type",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div title=\"{{row.entity.type}}\"><span data-ng-if=\"row.entity.type.indexOf('phonebar-') >= 0\"><i class=\"icon-screen-desktop font yellow\"></i> <i data-ng-class=\"{'icon-call-in font-green':row.entity.type === 'phonebar-inbound','icon-call-out font-red':row.entity.type === 'phonebar-outbound','icon-earphones font-purple':row.entity.type === 'phonebar-internal'}\"></i></span><i data-ng-class=\"{'icon-call-in font-green':row.entity.type === 'inbound','icon-call-out font-red':row.entity.type === 'outbound','icon-control-forward font-red':row.entity.type === 'tigerdial','icon-question':row.entity.type === 'unknown','icon-earphones font-purple':row.entity.type === 'internal','fa fa-user-secret font-blue':row.entity.type === 'chanspy'}\"></i></div>",filter:{type:g.filter.SELECT,selectOptions:[{value:"inbound",label:"Inbound"},{value:"internal",label:"Internal"},{value:"outbound",label:"Outbound"},{value:"tigerdial",label:"Motion Dialer"},{value:"chanspy",label:"ChanSpy"},{value:"phonebar-internal",label:"Phonebar Internal"},{value:"phonebar-inbound",label:"Phonebar Inbound"},{value:"phonebar-outbound",label:"Phonebar Outbound"},{value:"unknown",label:"Unknown"}]}},{name:"queue"},{name:"createdAt",displayName:"APPLICATION_DATE",headerCellFilter:"translate",filterHeaderTemplate:'<div class="ui-grid-filter-container row"><div ng-repeat="colFilter in col.filters" class="col-md-6 col-md-offset-0 col-sm-5 col-sm-offset-0 col-xs-5 col-xs-offset-0"><div custom-grid-date-filter-header></div></div></div>',filters:[{name:"From",condition:g.filter.GREATER_THAN_OR_EQUAL},{name:"To",condition:g.filter.LESS_THAN_OR_EQUAL}],sort:{direction:g.DESC,priority:0}},{name:"rating",filter:{type:g.filter.SELECT,selectOptions:[{value:1,label:"1"},{value:2,label:"2"},{value:3,label:"3"},{value:4,label:"4"},{value:5,label:"5"}]},cellClass:"ui-grid-vcenter",width:"100",cellTemplate:'<div><uib-rating data-ng-model="row.entity.rating" data-ng-click="grid.appScope.updateRating(row.entity.id, row.entity.rating)" aria-labelledby="default-rating"></uib-rating></div>'},{name:"audio",displayName:"",width:100,enableSorting:!1,enableFiltering:!1,cellClass:"ui-grid-vcenter",cellTemplate:"<div><audio-file-download data-ng-if=\"row.entity.value.split('.').pop() == 'wav'\" params=\"{id:row.entity.id,controller:'stream'}\" resource=\"grid.appScope.Recording\"></audio-file-download><span data-ng-if=\"row.entity.value.split('.').pop() == 'gsm'\" title=\"{{'MESSAGE_GSM_PREVIEW_NOT_SUPPORTED' | translate}}\">{{'MESSAGE_GSM_PREVIEW_NOT_SUPPORTED' | translate}}</span></div>"},{name:"action",width:80,buttons:[{directive:"<motion-file-download params=\"{id:row.entity.id,controller:'stream'}\" resource=\"grid.appScope.Recording\" mimetype=\"'audio/'+row.entity.value.split('.').pop()\" btnclass=\"btn btn-xs blue-hoki\" filename=\"row.entity.uniqueid+'.'+row.entity.value.split('.').pop()\"></motion-file-download>"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.uniqueid, row.entity.id)",hide:!h.isAdmin()}]}]};a.gridOptions=e.gridOptions(d,b,a)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.recordings.list",{url:"/list",templateUrl:"app/channels/voice/recording/list/list.html",controller:"VoiceRecordingListCtrl"})}]),angular.module("xCallyShuttleApp").factory("Recording",["$resource",function(a){return a("/api/voice/recordings/:id/:controller",{id:"@id"},{update:{method:"PUT"},patch:{method:"PATCH"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.recordings",{url:"/recordings",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:25}}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.routes.inbound",{url:"/inbound",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("VoiceRouteInboundListCreateCtrl",["$scope","$uibModalInstance","Route","application","xAlert","$location","$translate","VoiceContext","socket",function(a,b,c,d,e,f,g,h,i){a.$application=d.application,a.forms={route:void 0},a.getContexts=function(){return h.get().$promise.then(function(b){a.voiceContexts=b.rows,i.syncUpdates("voice_context",a.voiceContexts)})["catch"](function(a){e.error(a)})},a.item={type:"inbound",appdata:"Inbound Call from ${CALLERID(num)}",context:"from-voip-provider"},a.ok=function(){return a.item.exten=a.$application.checkUnderscore(a.item.exten),c.save(a.item).$promise.then(function(a){b.close(a),f.path("/channels/voice/routes/inbound/view/"+a.id+"/applications")})["catch"](function(a){console.log(a),e.error(a)})},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("VoiceRouteInboundListCtrl",["$scope","$http","socket","$translate","$rootScope","xAlert","Modal","stResource","gridOptions","Route","$uibModal","$location","$log",function(a,b,c,d,e,f,g,h,i,j,k,l,m){a.initView=function(){var b={exporterCsvFilename:"InboundRoutes.csv",columnDefs:[{name:"exten",displayName:"APPLICATION_PHONE_NUMBER"},{name:"description"},{name:"applications",cellClass:"ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.Applications.length"><span data-ng-repeat="app in row.entity.Applications | limitTo:2">{{app.app}}({{app.appdata[0]}}), </span>...</div><div data-ng-if="!row.entity.Applications.length">{{\'MESSAGE_NO_AVAILABLE_APPLICATIONS\' | translate}}</div>',enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"action",width:75,buttons:[{"class":"blue-hoki",href:"/channels/voice/routes/inbound/view/{{row.entity.id}}/settings",name:"settings"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.exten, row.entity.id)"}]}]};a.gridOptions=i.gridOptions(j,b,a,{type:"inbound"})},a.create=function(){k.open({animation:!0,templateUrl:"app/channels/voice/route/inbound/list/create.modal.html",controller:"VoiceRouteInboundListCreateCtrl"})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.routes.inbound.list",{url:"/list",templateUrl:"app/channels/voice/route/inbound/list/list.html",controller:"VoiceRouteInboundListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("VoiceRouteInboundViewCtrl",["$scope","$translate","$stateParams","socket","$location","WizardHandler","Modal","xAlert","application","interval","Route","VoiceQueue","Sound","SquareProject","VoiceContext","Interval","VoiceMail","User","Agent","Telephone","Trunk","Team",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v){function w(b){var c,d;if("always"===b.intType)c=null,d="*,*,*,*";else if("list"===b.intType)d=b.IntervalId?_.find(a.Intervals,{ -id:b.IntervalId}).name:"*,*,*,*",c=b.IntervalId||null;else if("custom"===b.intType){c=null;var e,f,g,h;e=b.t_from&&b.t_to&&!b.alwaysTime?moment(b.t_from).format("HH:mm")+"-"+moment(b.t_to).format("HH:mm"):"*",b.wd_from&&"always"!==b.wd_from?(f=b.wd_from,b.wd_to&&"always"!==b.wd_to&&(f+="-"+b.wd_to)):f="*",b.md_from&&"always"!==b.md_from?(g=b.md_from,b.md_to&&"always"!==b.md_to&&(g+="-"+b.md_to)):g="*",b.m_from&&"always"!==b.m_from?(h=b.m_from,b.m_to&&"always"!==b.m_to&&(h+="-"+b.m_to)):h="*",d=e+","+f+","+g+","+h}void 0===a.selectedApp?(a.application.interval=d,a.application.IntervalId=c):(a.route.Applications[a.selectedApp].interval=d,a.route.Applications[a.selectedApp].IntervalId=c)}function x(){if(a.interval.intType=a.route.Applications[a.selectedApp].IntervalId?"list":"*,*,*,*"===a.route.Applications[a.selectedApp].interval?"always":"custom",a.interval.IntervalId=a.route.Applications[a.selectedApp].IntervalId,!a.route.Applications[a.selectedApp].IntervalId){var b,c=a.route.Applications[a.selectedApp].interval?a.route.Applications[a.selectedApp].interval.split(","):["*","*","*","*"];c.forEach(function(c,d){switch(d){case 0:"*"!==c?(b=c.split("-"),a.interval.t_from=moment(b[0],"HH:mm"),a.interval.t_to=moment(b[1],"HH:mm"),a.interval.alwaysTime=!1):(a.interval.t_from=moment(new Date),a.interval.t_to=moment(new Date),a.interval.alwaysTime=!0);break;case 1:"*"!==c?(b=c.split("-"),a.interval.wd_from=b[0],a.interval.wd_to=b[1]?b[1]:"always"):(a.interval.wd_from="always",a.interval.wd_to="always");break;case 2:"*"!==c?(b=c.split("-"),a.interval.md_from=b[0],a.interval.md_to=b[1]?b[1]:"always"):(a.interval.md_from="always",a.interval.md_to="always");break;case 3:"*"!==c?(b=c.split("-"),a.interval.m_from=b[0],a.interval.m_to=b[1]?b[1]:"always"):(a.interval.m_from="always",a.interval.m_to="always")}})}}a.alwaysSwitch={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.$translate=b,a.selectedApp=void 0,a.showGrid=!0,a.$application=i.application,a.$interval=j.interval,a.selectedRows=[],a._=_,a.gridOptions={enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableSorting:!1,rowTemplate:'<div grid="grid" class="ui-grid-draggable-row" draggable="true"><div ng-repeat="(colRenderIndex, col) in colContainer.renderedColumns track by col.colDef.name" class="ui-grid-cell" ng-class="{ \'ui-grid-row-header-cell\': col.isRowHeader, \'custom\': true }" ui-grid-cell></div></div>',columnDefs:[{name:"app",headerCellFilter:"translate",displayName:"APPLICATION_APPLICATION",enableColumnMenu:!1},{name:"appType",headerCellFilter:"translate",displayName:"APPLICATION_INFO",cellClass:"ui-grid-vcenter",cellTemplate:"<div>{{'APPLICATION_APPS_'+(row.entity.appType || (grid.appScope._.find(grid.appScope.$application.applications,{value:row.entity.app}) ? row.entity.app : 'custom')).toUpperCase() | translate}}</div>",enableColumnMenu:!1},{name:"appdata",headerCellFilter:"translate",displayName:"APPLICATION_ARGUMENTS",cellClass:"ui-grid-vcenter",cellTemplate:"<div>{{row.entity.appdata.join(',')}}</div>",enableColumnMenu:!1},{name:"interval",headerCellFilter:"translate",displayName:"APPLICATION_TIME_INTERVAL",enableColumnMenu:!1},{name:"action",enableColumnMenu:!1,headerCellFilter:"translate",displayName:"APPLICATION_ACTION",width:125,cellClass:"ui-grid-vcenter",cellTemplate:'<div><a class="btn btn-xs blue-hoki" data-ng-click="grid.appScope.openApplication(grid.appScope.gridOptions.data.indexOf(row.entity))"><i class="icon-settings"></i></a><a class="btn btn-xs red-sunglo" data-ng-click="grid.appScope.deleteApp(row.entity.app+\' application\', grid.appScope.gridOptions.data.indexOf(row.entity))"><i class="fa fa-trash"></i></a></div>'}],onRegisterApi:function(b){b.selection.on.rowSelectionChanged(a,function(b){b.isSelected?a.selectedRows.push(b.entity):_.pull(a.selectedRows,b.entity)}),b.selection.on.rowSelectionChangedBatch(a,function(b){b[0].isSelected?a.selectedRows=_.map(b,"entity"):a.selectedRows=[]}),b.draggableRows.on.rowDropped(a,function(b,c){a.updateRoute()}),b.grid.registerDataChangeCallback(function(){y(a.gridOptions.data.length)})}};var y=function(a){var b=a?30*a+120:177;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",b+"px")};a.initApplication=function(b){b&&(a.selectedApp=void 0),a.forms={settings:void 0,interval:void 0},a.application={},a.interval={intType:"always",t_from:moment(new Date),t_to:moment(new Date),wd_from:"always",wd_to:"always",md_from:"always",md_to:"always",m_from:"always",m_to:"always",alwaysTime:!0},a.main={app:""}},a.$watch("interval",function(a){a&&w(a)},!0),a.updateSetAppdata=function(){a.application.variable&&a.application.value&&"Set"===a.main.app.value?a.application.appdata[0]=a.application.variable+"="+a.application.value:a.application.appdata[0]=null},a.updateSetAppdataSettings=function(){a.application.variable&&a.application.value&&"Set"===a.main.app.value?a.route.Applications[a.selectedApp].appdata[0]=a.application.variable+"="+a.application.value:a.route.Applications[a.selectedApp].appdata[0]=null},a.updateVideoOnAppdata=function(){a.application.domain&&a.application.theme&&"Set"===a.main.app.value&&"videoOn"===a.main.app.type?a.application.appdata[0]="_xcally_motion_video_room_id=https://"+a.application.domain+"/split_agent_popup.php?theme="+a.application.theme+"&room=${SIP_HEADER(X-Split-Id)}":a.application.appdata[0]=null},a.updateVideoOnAppdataSettings=function(){a.application.domain&&a.application.theme&&"Set"===a.main.app.value&&"videoOn"===a.main.app.type?a.route.Applications[a.selectedApp].appdata[0]="_xcally_motion_video_room_id=https://"+a.application.domain+"/split_agent_popup.php?theme="+a.application.theme+"&room=${SIP_HEADER(X-Split-Id)}":a.route.Applications[a.selectedApp].appdata[0]=null},a.$watch("main.app",function(b){if(b){var c,d,e={},f={};switch(void 0===a.selectedApp&&(a.application={appType:b.type,app:b.value,interval:a.application.interval||"*,*,*,*",appdata:[]}),b.value){case"Queue":c=l,d=m;break;case"Playback":c=m;break;case"AGI":c=n;break;case"Goto":c=o;break;case"Voicemail":c=q;break;case"Dial":switch(b.type){case"internalDial":c=r,e={controller:"all"};break;case"externalDial":c=u}}if(c)return c.get(e).$promise.then(function(b){a.items=b.rows}).then(function(){return d?d.get(f).$promise:void 0}).then(function(b){b&&(a.items2=b.rows)})["catch"](function(a){h.error(a)})}},!0),a.deselectAndRedirect=function(b){a.selectedApp=void 0,e.path(b)},a.initRingGroup=function(){var b,c,d;return void 0===a.selectedApp?a.usersArray=[]:a.usersArray=_.map(a.route.Applications[a.selectedApp].appdata[0].split("&"),function(a){return a.split("/")[1]}),r.get().$promise.then(function(a){return b=a,s.get().$promise}).then(function(a){return c=a,t.get().$promise}).then(function(e){d=e,ComponentsDropdowns.bindUserByRole(b,c,d,function(b){a.usersArray=_.union(b,a.usersArray),void 0===a.selectedApp?(a.application.appdata[0]=null,a.application.appdata[0]=_.map(a.usersArray,function(a){return"SIP/"+a}).join("&")):(a.route.Applications[a.selectedApp].appdata[0]=null,a.route.Applications[a.selectedApp].appdata[0]=_.map(a.usersArray,function(a){return"SIP/"+a}).join("&"))},function(b){a.usersArray=_.difference(a.usersArray,b),void 0===a.selectedApp?(a.application.appdata[0]=null,a.application.appdata[0]=_.map(a.usersArray,function(a){return"SIP/"+a}).join("&")):(a.route.Applications[a.selectedApp].appdata[0]=null,a.route.Applications[a.selectedApp].appdata[0]=_.map(a.usersArray,function(a){return"SIP/"+a}).join("&"))},a.route.Applications[a.selectedApp]?a.route.Applications[a.selectedApp].appdata:null)})["catch"](function(a){console.error(a)})},a.getIntervals=function(){return p.get().$promise.then(function(b){a.Intervals=b.rows,d.syncUpdates("interval",a.Intervals)})["catch"](function(a){h.error(a)})},a.getRoute=function(){return k.get({id:c.id}).$promise.then(function(b){a.route=b,a.gridOptions.data=b.Applications,y(a.gridOptions.data.length)})["catch"](function(a){e.path("/channels/voice/routes/inbound/list")})},a.getApplication=function(){if(void 0===a.selectedApp)e.path("/channels/voice/routes/inbound/list");else{if(a.showGrid=!0,a.route.Applications[a.selectedApp].appType)a.main.app=_.find(a.$application.applications,{type:a.route.Applications[a.selectedApp].appType});else{var b=_.find(a.$application.applications,{value:a.route.Applications[a.selectedApp].app});if(b)a.main.app=b;else{a.main.app=_.find(a.$application.applications,{type:"custom"});var c=a.route.Applications[a.selectedApp].appdata.join(",");a.route.Applications[a.selectedApp].appdata=[c],a.route.Applications[a.selectedApp].appType="custom"}}if("Set"===a.main.app.value&&!a.main.app.type){var d=a.route.Applications[a.selectedApp].appdata[0].split("=");a.application.variable=d[0],a.application.value=d[1]}if("Set"===a.main.app.value&&"videoOn"===a.main.app.type){var f=new Url(a.route.Applications[a.selectedApp].appdata[0].split("=").slice(1).join("="));a.application.domain=f.host+(f.port?":"+f.port:""),a.application.theme=f.query.theme}x()}},a.openApplication=function(b){a.selectedApp=b,a.showGrid=!1,e.path("/channels/voice/routes/inbound/view/"+c.id+"/applications/settings")},a.updateRoute=function(d){return a.route.exten=a.$application.checkUnderscore(a.route.exten),_.forEach(a.route.Applications,function(a){if("custom"!==a.appType)switch(a.app){case"Dial":var b;switch(a.appType){case"externalDial":b=3;break;case"internalDial":b=2;break;default:b=2}a.appdata[b]=a.appdata[b]||"",a.appdata[b]+=(_.includes(a.appdata[b],"x")?"":"x")+(_.includes(a.appdata[b],"X")?"":"X");break;case"Queue":a.appdata[1]=a.appdata[1]||"",a.appdata[1]+=(_.includes(a.appdata[1],"x")?"":"x")+(_.includes(a.appdata[1],"X")?"":"X")}}),k.update({id:a.route.id},a.route).$promise.then(function(f){a.selectedApp=void 0,h.show(b.instant("MESSAGE_WELL_DONE")+"!","success"),d&&e.path("/channels/voice/routes/inbound/view/"+c.id+"/"+d)})["catch"](function(a){console.log(a),h.error(a)})},a.getContexts=function(){return o.get().$promise.then(function(b){a.voiceContexts=b.rows,d.syncUpdates("voice_context",a.voiceContexts)})["catch"](function(a){h.error(a)})},a.deleteApp=g.confirm["delete"](function(b){a.route.Applications.splice(b,1),a.updateRoute()}),a.deleteItems=g.confirm["delete"](function(){_.remove(a.route.Applications,function(b){return _.includes(a.selectedRows,b)}),a.selectedRows=[],a.updateRoute()}),a.addApplication=function(){a.route.Applications.push(a.application),a.updateRoute("applications")},a.goNext=function(){f.wizard().next()},a.previous=function(){f.wizard().previous()},a.formValidation=function(a){return a},a.$on("destroy",function(){d.unsyncUpdates("voice_extension")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.routes.inbound.view",{url:"/view/:id",templateUrl:"app/channels/voice/route/inbound/view/view.html",controller:"VoiceRouteInboundViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.channels.voice.routes.inbound.view.settings",{url:"/settings",templateUrl:"app/channels/voice/route/inbound/view/view.settings.html"}).state("main.channels.voice.routes.inbound.view.applications",{url:"/applications",templateUrl:"app/channels/voice/route/inbound/view/view.applications.html"}).state("main.channels.voice.routes.inbound.view.application",{url:"/application",templateUrl:"app/channels/voice/route/view.application.html",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}}).state("main.channels.voice.routes.inbound.view.applications.settings",{url:"/settings",templateUrl:"app/channels/voice/route/view.applicationSettings.html",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.routes.internal",{url:"/internal",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("VoiceRouteInternalListCreateCtrl",["$scope","$uibModalInstance","Route","application","$location","$translate","xAlert","VoiceContext","socket",function(a,b,c,d,e,f,g,h,i){a.$application=d.application,a.forms={route:void 0},a.getContexts=function(){return h.get().$promise.then(function(b){a.voiceContexts=b.rows,i.syncUpdates("voice_context",a.voiceContexts)})["catch"](function(a){g.error(a)})},a.item={type:"internal",appdata:"Internal Call from ${CALLERID(num)}",context:"from-sip"},a.ok=function(){return a.item.exten=a.$application.checkUnderscore(a.item.exten),c.save(a.item).$promise.then(function(a){b.close(a),e.path("/channels/voice/routes/internal/view/"+a.id+"/applications")})["catch"](function(a){g.error(a)})},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("VoiceRouteInternalListCtrl",["$scope","$http","socket","$translate","$rootScope","xAlert","Modal","stResource","gridOptions","Route","$uibModal","$location","$log",function(a,b,c,d,e,f,g,h,i,j,k,l,m){a.initView=function(){var b={exporterCsvFilename:"InternalRoutes.csv",columnDefs:[{name:"exten",displayName:"APPLICATION_PHONE_NUMBER"},{name:"description"},{name:"applications",cellClass:"ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.Applications.length"><span data-ng-repeat="app in row.entity.Applications | limitTo:2">{{app.app}}({{app.appdata[0]}}),</span>...</div><div data-ng-if="!row.entity.Applications.length">{{\'MESSAGE_NO_AVAILABLE_APPLICATIONS\' | translate}}</div>',enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"action",width:75,buttons:[{"class":"blue-hoki",href:"/channels/voice/routes/internal/view/{{row.entity.id}}/settings",name:"settings"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.exten, row.entity.id)"}]}]};a.gridOptions=i.gridOptions(j,b,a,{type:"internal"})},a.create=function(){k.open({animation:!0,templateUrl:"app/channels/voice/route/internal/list/create.modal.html",controller:"VoiceRouteInternalListCreateCtrl"})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.routes.internal.list",{url:"/list",templateUrl:"app/channels/voice/route/internal/list/list.html",controller:"VoiceRouteInternalListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("VoiceRouteInternalViewCtrl",["$scope","$translate","$stateParams","socket","$location","WizardHandler","Modal","xAlert","application","interval","Route","VoiceQueue","Sound","SquareProject","VoiceContext","Interval","VoiceMail","User","Agent","Telephone","Trunk",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u){function v(b){var c,d;if("always"===b.intType)c=null,d="*,*,*,*";else if("list"===b.intType)d=b.IntervalId?_.find(a.Intervals,{id:b.IntervalId}).name:"*,*,*,*",c=b.IntervalId||null;else if("custom"===b.intType){c=null;var e,f,g,h;e=b.t_from&&b.t_to&&!b.alwaysTime?moment(b.t_from).format("HH:mm")+"-"+moment(b.t_to).format("HH:mm"):"*",b.wd_from&&"always"!==b.wd_from?(f=b.wd_from,b.wd_to&&"always"!==b.wd_to&&(f+="-"+b.wd_to)):f="*",b.md_from&&"always"!==b.md_from?(g=b.md_from,b.md_to&&"always"!==b.md_to&&(g+="-"+b.md_to)):g="*",b.m_from&&"always"!==b.m_from?(h=b.m_from,b.m_to&&"always"!==b.m_to&&(h+="-"+b.m_to)):h="*",d=e+","+f+","+g+","+h}void 0===a.selectedApp?(a.application.interval=d,a.application.IntervalId=c):(a.route.Applications[a.selectedApp].interval=d,a.route.Applications[a.selectedApp].IntervalId=c)}function w(){if(a.interval.intType=a.route.Applications[a.selectedApp].IntervalId?"list":"*,*,*,*"===a.route.Applications[a.selectedApp].interval?"always":"custom",a.interval.IntervalId=a.route.Applications[a.selectedApp].IntervalId,!a.route.Applications[a.selectedApp].IntervalId){var b,c=a.route.Applications[a.selectedApp].interval?a.route.Applications[a.selectedApp].interval.split(","):["*","*","*","*"];c.forEach(function(c,d){switch(d){case 0:"*"!==c?(b=c.split("-"),a.interval.t_from=moment(b[0],"HH:mm"),a.interval.t_to=moment(b[1],"HH:mm"),a.interval.alwaysTime=!1):(a.interval.t_from=moment(new Date),a.interval.t_to=moment(new Date),a.interval.alwaysTime=!0);break;case 1:"*"!==c?(b=c.split("-"),a.interval.wd_from=b[0],a.interval.wd_to=b[1]?b[1]:"always"):(a.interval.wd_from="always",a.interval.wd_to="always");break;case 2:"*"!==c?(b=c.split("-"),a.interval.md_from=b[0],a.interval.md_to=b[1]?b[1]:"always"):(a.interval.md_from="always",a.interval.md_to="always");break;case 3:"*"!==c?(b=c.split("-"),a.interval.m_from=b[0],a.interval.m_to=b[1]?b[1]:"always"):(a.interval.m_from="always",a.interval.m_to="always")}})}}a.alwaysSwitch={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.$translate=b,a.selectedApp=void 0,a.showGrid=!0,a.$application=angular.copy(i.application),_.remove(a.$application.applications,{value:"videoOn"}),a.$interval=j.interval,a._=_,a.selectedRows=[],a.gridOptions={enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableSorting:!1,rowTemplate:'<div grid="grid" class="ui-grid-draggable-row" draggable="true"><div ng-repeat="(colRenderIndex, col) in colContainer.renderedColumns track by col.colDef.name" class="ui-grid-cell" ng-class="{ \'ui-grid-row-header-cell\': col.isRowHeader, \'custom\': true }" ui-grid-cell></div></div>',columnDefs:[{name:"app",headerCellFilter:"translate",displayName:"APPLICATION_APPLICATION",enableColumnMenu:!1},{name:"appType",headerCellFilter:"translate",displayName:"APPLICATION_INFO",cellClass:"ui-grid-vcenter",cellTemplate:"<div>{{'APPLICATION_APPS_'+(row.entity.appType || (grid.appScope._.find(grid.appScope.$application.applications,{value:row.entity.app}) ? row.entity.app : 'custom')).toUpperCase() | translate}}</div>",enableColumnMenu:!1},{name:"appdata",headerCellFilter:"translate",displayName:"APPLICATION_ARGUMENTS",cellClass:"ui-grid-vcenter",cellTemplate:"<div>{{row.entity.appdata.join(',')}}</div>",enableColumnMenu:!1},{name:"interval",headerCellFilter:"translate",displayName:"APPLICATION_TIME_INTERVAL",enableColumnMenu:!1},{name:"action",enableColumnMenu:!1,headerCellFilter:"translate",displayName:"APPLICATION_ACTION",width:125,cellClass:"ui-grid-vcenter",cellTemplate:'<div><a class="btn btn-xs blue-hoki" data-ng-click="grid.appScope.openApplication(grid.appScope.gridOptions.data.indexOf(row.entity))"><i class="icon-settings"></i></a><a class="btn btn-xs red-sunglo" data-ng-click="grid.appScope.deleteApp(row.entity.app+\' application\', grid.appScope.gridOptions.data.indexOf(row.entity))"><i class="fa fa-trash"></i></a></div>'}],onRegisterApi:function(b){b.selection.on.rowSelectionChanged(a,function(b){b.isSelected?a.selectedRows.push(b.entity):_.pull(a.selectedRows,b.entity)}),b.selection.on.rowSelectionChangedBatch(a,function(b){b[0].isSelected?a.selectedRows=_.map(b,"entity"):a.selectedRows=[]}),b.draggableRows.on.rowDropped(a,function(b,c){a.updateRoute()}),b.grid.registerDataChangeCallback(function(){x(a.gridOptions.data.length)})}},a.deleteItems=g.confirm["delete"](function(){_.remove(a.route.Applications,function(b){return _.includes(a.selectedRows,b)}),a.selectedRows=[],a.updateRoute()}),a.initRingGroup=function(){var b,c,d;return void 0===a.selectedApp?a.usersArray=[]:a.usersArray=_.map(a.route.Applications[a.selectedApp].appdata[0].split("&"),function(a){return a.split("/")[1]}),r.get().$promise.then(function(a){return b=a,s.get().$promise}).then(function(a){return c=a,t.get().$promise}).then(function(e){d=e,ComponentsDropdowns.bindUserByRole(b,c,d,function(b){a.usersArray=_.union(b,a.usersArray),void 0===a.selectedApp?(a.application.appdata[0]=null,a.application.appdata[0]=_.map(a.usersArray,function(a){return"SIP/"+a}).join("&")):(a.route.Applications[a.selectedApp].appdata[0]=null,a.route.Applications[a.selectedApp].appdata[0]=_.map(a.usersArray,function(a){return"SIP/"+a}).join("&"))},function(b){a.usersArray=_.difference(a.usersArray,b),void 0===a.selectedApp?(a.application.appdata[0]=null,a.application.appdata[0]=_.map(a.usersArray,function(a){return"SIP/"+a}).join("&")):(a.route.Applications[a.selectedApp].appdata[0]=null,a.route.Applications[a.selectedApp].appdata[0]=_.map(a.usersArray,function(a){return"SIP/"+a}).join("&"))},a.route.Applications[a.selectedApp]?a.route.Applications[a.selectedApp].appdata:null)})["catch"](function(a){console.error(a)})};var x=function(a){var b=a?30*a+120:177;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",b+"px")};a.initApplication=function(b){b&&(a.selectedApp=void 0),a.forms={settings:void 0,interval:void 0},a.application={},a.interval={intType:"always",t_from:moment(new Date),t_to:moment(new Date),wd_from:"always",wd_to:"always",md_from:"always",md_to:"always",m_from:"always",m_to:"always",alwaysTime:!0},a.main={app:""}},a.$watch("interval",function(a){a&&v(a)},!0),a.updateSetAppdata=function(){a.application.variable&&a.application.value&&"Set"===a.main.app.value?a.application.appdata[0]=a.application.variable+"="+a.application.value:a.application.appdata[0]=null},a.updateSetAppdataSettings=function(){a.application.variable&&a.application.value&&"Set"===a.main.app.value?a.route.Applications[a.selectedApp].appdata[0]=a.application.variable+"="+a.application.value:a.application.appdata[0]=null},a.$watch("main.app",function(b){if(b){var c,d,e={},f={};switch(void 0===a.selectedApp&&(a.application={appType:b.type,app:b.value,interval:a.application.interval||"*,*,*,*",appdata:[]}),b.value){case"Queue":c=l,d=m;break;case"Playback":c=m;break;case"AGI":c=n;break;case"Goto":c=o;break;case"Voicemail":c=q;break;case"Dial":switch(b.type){case"internalDial":c=r,e={controller:"all"};break;case"externalDial":c=u}}if(c)return c.get(e).$promise.then(function(b){a.items=b.rows}).then(function(){return d?d.get(f).$promise:void 0}).then(function(b){b&&(a.items2=b.rows)})["catch"](function(a){h.error(a)})}},!0),a.deselectAndRedirect=function(b){a.selectedApp=void 0,e.path(b)},a.getIntervals=function(){return p.get().$promise.then(function(b){a.Intervals=b.rows,d.syncUpdates("interval",a.Intervals)})["catch"](function(a){h.error(a)})},a.getRoute=function(){return k.get({id:c.id}).$promise.then(function(b){a.route=b,a.gridOptions.data=b.Applications,x(a.gridOptions.data.length)})["catch"](function(a){e.path("/channels/voice/routes/internal/list")})},a.getApplication=function(){if(void 0===a.selectedApp)e.path("/channels/voice/routes/internal/list");else{if(a.showGrid=!0,a.route.Applications[a.selectedApp].appType)a.main.app=_.find(a.$application.applications,{type:a.route.Applications[a.selectedApp].appType});else{var b=_.find(a.$application.applications,{value:a.route.Applications[a.selectedApp].app});if(b)a.main.app=b;else{a.main.app=_.find(a.$application.applications,{type:"custom"});var c=a.route.Applications[a.selectedApp].appdata.join(",");a.route.Applications[a.selectedApp].appdata=[c],a.route.Applications[a.selectedApp].appType="custom"}}if("Set"===a.main.app.value){var d=a.route.Applications[a.selectedApp].appdata[0].split("=");a.application.variable=d[0],a.application.value=d[1]}w()}},a.openApplication=function(b){a.selectedApp=b,a.showGrid=!1,e.path("/channels/voice/routes/internal/view/"+c.id+"/applications/settings")},a.updateRoute=function(d){return a.route.exten=a.$application.checkUnderscore(a.route.exten),_.forEach(a.route.Applications,function(a){if("custom"!==a.appType)switch(a.app){case"Dial":var b;switch(a.appType){case"externalDial":b=3;break;case"internalDial":b=2;break;default:b=2}a.appdata[b]=a.appdata[b]||"",a.appdata[b]+=(_.includes(a.appdata[b],"x")?"":"x")+(_.includes(a.appdata[b],"X")?"":"X");break;case"Queue":a.appdata[1]=a.appdata[1]||"",a.appdata[1]+=(_.includes(a.appdata[1],"x")?"":"x")+(_.includes(a.appdata[1],"X")?"":"X")}}),k.update({id:a.route.id},a.route).$promise.then(function(f){a.selectedApp=void 0,h.show(b.instant("MESSAGE_WELL_DONE")+"!","success"),d&&e.path("/channels/voice/routes/internal/view/"+c.id+"/"+d)})["catch"](function(a){h.error(a)})},a.getContexts=function(){return o.get().$promise.then(function(b){a.voiceContexts=b.rows,d.syncUpdates("voice_context",a.voiceContexts)})["catch"](function(a){h.error(a)})},a.deleteApp=g.confirm["delete"](function(b){a.route.Applications.splice(b,1),a.updateRoute()}),a.addApplication=function(){a.route.Applications.push(a.application),a.updateRoute("applications")},a.goNext=function(){f.wizard().next()},a.previous=function(){f.wizard().previous()},a.formValidation=function(a){return a},a.$on("destroy",function(){d.unsyncUpdates("voice_extension")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.routes.internal.view",{url:"/view/:id",templateUrl:"app/channels/voice/route/internal/view/view.html",controller:"VoiceRouteInternalViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.channels.voice.routes.internal.view.settings",{url:"/settings",templateUrl:"app/channels/voice/route/internal/view/view.settings.html"}).state("main.channels.voice.routes.internal.view.applications",{url:"/applications",templateUrl:"app/channels/voice/route/internal/view/view.applications.html"}).state("main.channels.voice.routes.internal.view.application",{url:"/application",templateUrl:"app/channels/voice/route/view.application.html",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}}).state("main.channels.voice.routes.internal.view.applications.settings",{url:"/settings",templateUrl:"app/channels/voice/route/view.applicationSettings.html",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").controller("VoiceRouteOutboundListCreateCtrl",["$scope","$uibModalInstance","Route","application","xAlert","$translate","$location","Tag","VoiceContext","socket",function(a,b,c,d,e,f,g,h,i,j){a.$application=d.application,a.forms={route:void 0},a.getContexts=function(){return i.get().$promise.then(function(b){a.voiceContexts=b.rows,j.syncUpdates("voice_context",a.voiceContexts)})["catch"](function(a){e.error(a)})},a.item={type:"outbound",appdata:"Outbound Call to ${CALLERID(dnid)}",context:"from-sip"},a.getTags=function(){return h.get().$promise.then(function(b){b.rows.unshift({name:"--"}),a.tags=b.rows})["catch"](function(a){e.error(a)})},a.ok=function(){return a.item.exten=a.$application.checkUnderscore(a.item.exten),c.save(a.item).$promise.then(function(a){b.close(a),g.path("/channels/voice/routes/outbound/view/"+a.id+"/routes")})["catch"](function(a){e.error(a)})},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("VoiceRouteOutboundListCtrl",["$scope","$http","socket","$translate","$rootScope","xAlert","Modal","stResource","gridOptions","Route","$uibModal","$location","$log",function(a,b,c,d,e,f,g,h,i,j,k,l,m){a.initView=function(){var b={exporterCsvFilename:"OutboundRoutes.csv",columnDefs:[{name:"exten",displayName:"APPLICATION_DESTINATION_PATTERN"},{name:"description"},{name:"applications",cellClass:"ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.Applications.length"><span data-ng-repeat="app in row.entity.Applications | limitTo:2">{{app.app}}({{app.appdata[0]}}),</span>...</div><div data-ng-if="!row.entity.Applications.length">{{\'MESSAGE_NO_AVAILABLE_APPLICATIONS\' | translate}}</div>',enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"action",width:75,buttons:[{"class":"blue-hoki",href:"/channels/voice/routes/outbound/view/{{row.entity.id}}/settings",name:"settings"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.exten, row.entity.id)"}]}]};a.gridOptions=i.gridOptions(j,b,a,{type:"outbound"})},a.create=function(){k.open({animation:!0,templateUrl:"app/channels/voice/route/outbound/list/create.modal.html",controller:"VoiceRouteOutboundListCreateCtrl"})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.routes.outbound.list",{url:"/list",templateUrl:"app/channels/voice/route/outbound/list/list.html",controller:"VoiceRouteOutboundListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.routes.outbound",{url:"/outbound",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("VoiceRouteOutboundViewCtrl",["$scope","xAlert","$translate","$stateParams","socket","$location","WizardHandler","Modal","application","interval","Route","Trunk","VoiceContext","Interval","Tag",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){function p(b){var c,d;if("always"===b.intType)c=null,d="*,*,*,*";else if("list"===b.intType)d=b.IntervalId?_.find(a.Intervals,{id:b.IntervalId}).name:"*,*,*,*",c=b.IntervalId||null;else if("custom"===b.intType){c=null;var e,f,g,h;e=b.t_from&&b.t_to&&!b.alwaysTime?moment(b.t_from).format("HH:mm")+"-"+moment(b.t_to).format("HH:mm"):"*",b.wd_from&&"always"!==b.wd_from?(f=b.wd_from,b.wd_to&&"always"!==b.wd_to&&(f+="-"+b.wd_to)):f="*",b.md_from&&"always"!==b.md_from?(g=b.md_from,b.md_to&&"always"!==b.md_to&&(g+="-"+b.md_to)):g="*",b.m_from&&"always"!==b.m_from?(h=b.m_from,b.m_to&&"always"!==b.m_to&&(h+="-"+b.m_to)):h="*",d=e+","+f+","+g+","+h}void 0===a.selectedApp?(a.application.interval=d,a.application.IntervalId=c):(a.route.Applications[a.selectedApp].interval=d,a.route.Applications[a.selectedApp].IntervalId=c)}function q(){if(a.interval.intType=a.route.Applications[a.selectedApp].IntervalId?"list":"*,*,*,*"===a.route.Applications[a.selectedApp].interval?"always":"custom",a.interval.IntervalId=a.route.Applications[a.selectedApp].IntervalId,!a.route.Applications[a.selectedApp].IntervalId){var b,c=a.route.Applications[a.selectedApp].interval?a.route.Applications[a.selectedApp].interval.split(","):["*","*","*","*"];c.forEach(function(c,d){switch(d){case 0:"*"!==c?(b=c.split("-"),a.interval.t_from=moment(b[0],"HH:mm"),a.interval.t_to=moment(b[1],"HH:mm"),a.interval.alwaysTime=!1):(a.interval.t_from=moment(new Date),a.interval.t_to=moment(new Date),a.interval.alwaysTime=!0);break;case 1:"*"!==c?(b=c.split("-"),a.interval.wd_from=b[0],a.interval.wd_to=b[1]?b[1]:"always"):(a.interval.wd_from="always",a.interval.wd_to="always");break;case 2:"*"!==c?(b=c.split("-"),a.interval.md_from=b[0],a.interval.md_to=b[1]?b[1]:"always"):(a.interval.md_from="always", -a.interval.md_to="always");break;case 3:"*"!==c?(b=c.split("-"),a.interval.m_from=b[0],a.interval.m_to=b[1]?b[1]:"always"):(a.interval.m_from="always",a.interval.m_to="always")}})}}a.$translate=c,a.selectedApp=void 0,a.showGrid=!0,a.$application=i.application,a.$interval=j.interval,a._=_,a.recordSwitch={onText:"On",offText:"Off",isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.alwaysSwitch={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.selectedRows=[],a.gridOptions={enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableSorting:!1,rowTemplate:'<div grid="grid" class="ui-grid-draggable-row" draggable="true"><div ng-repeat="(colRenderIndex, col) in colContainer.renderedColumns track by col.colDef.name" class="ui-grid-cell" ng-class="{ \'ui-grid-row-header-cell\': col.isRowHeader, \'custom\': true }" ui-grid-cell></div></div>',columnDefs:[{name:"app",displayName:"APPLICATION_APPLICATION",cellClass:"ui-grid-vcenter",cellTemplate:"<div><span data-ng-if=\"row.entity.appType === 'externalDial'\">Default</span><span data-ng-if=\"row.entity.appType !== 'externalDial'\">{{row.entity.app}}</span></div>",headerCellFilter:"translate",enableColumnMenu:!1},{name:"appType",headerCellFilter:"translate",displayName:"APPLICATION_INFO",cellClass:"ui-grid-vcenter",cellTemplate:"<div>{{'APPLICATION_APPS_'+(row.entity.appType || (grid.appScope._.find(grid.appScope.$application.applications,{value:row.entity.app}) ? row.entity.app : 'custom')).toUpperCase() | translate}}</div>",enableColumnMenu:!1},{name:"appdata",displayName:"APPLICATION_ARGUMENTS",headerCellFilter:"translate",cellClass:"ui-grid-vcenter",cellTemplate:"<div>{{row.entity.appdata.join(',')}}</div>",enableColumnMenu:!1},{name:"interval",displayName:"APPLICATION_TIME_INTERVAL",headerCellFilter:"translate",enableColumnMenu:!1},{name:"action",displayName:"APPLICATION_ACTION",headerCellFilter:"translate",width:125,enableColumnMenu:!1,cellClass:"ui-grid-vcenter",cellTemplate:'<div><a class="btn btn-xs blue-hoki" data-ng-click="grid.appScope.openApplication(grid.appScope.gridOptions.data.indexOf(row.entity))"><i class="icon-settings"></i></a><a class="btn btn-xs red-sunglo" data-ng-click="grid.appScope.deleteApp(row.entity.app+\' application\', grid.appScope.gridOptions.data.indexOf(row.entity))"><i class="fa fa-trash"></i></a></div>'}],onRegisterApi:function(b){b.selection.on.rowSelectionChanged(a,function(b){b.isSelected?a.selectedRows.push(b.entity):_.pull(a.selectedRows,b.entity)}),b.selection.on.rowSelectionChangedBatch(a,function(b){b[0].isSelected?a.selectedRows=_.map(b,"entity"):a.selectedRows=[]}),b.draggableRows.on.rowDropped(a,function(b,c){a.updateRoute()}),b.grid.registerDataChangeCallback(function(){r(a.gridOptions.data.length)})}},a.deleteItems=h.confirm["delete"](function(){_.remove(a.route.Applications,function(b){return _.includes(a.selectedRows,b)}),a.selectedRows=[],a.updateRoute()});var r=function(a){var b=a?30*a+120:177;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",b+"px")};a.initApplication=function(b){b&&(a.selectedApp=void 0),a.forms={info:void 0,interval:void 0},a.application={},a.interval={intType:"always",t_from:moment(new Date),t_to:moment(new Date),wd_from:"always",wd_to:"always",md_from:"always",md_to:"always",m_from:"always",m_to:"always",alwaysTime:!0},a.main={app:""},a.applications=[{name:"Default",value:"Dial",type:"outboundDial"},{name:"Custom",value:"custom",type:"custom"}]},a.$watch("interval",function(a){a&&p(a)},!0),a.$watch("main.app",function(c){if(c){var d,e;switch(void 0===a.selectedApp&&(a.application={appType:c.type,app:c.value,interval:a.application.interval||"*,*,*,*",appdata:[]}),c.value){case"Dial":d=l;break;default:d=null,e=null}if(d)return d.get().$promise.then(function(b){a.items=b.rows}).then(function(){return e?e.get().$promise:void 0}).then(function(b){b&&(a.items2=b.rows)})["catch"](function(a){b.error(a)})}},!0),a.deselectAndRedirect=function(b){a.selectedApp=void 0,f.path(b)},a.getIntervals=function(){return n.get().$promise.then(function(b){a.Intervals=b.rows,e.syncUpdates("interval",a.Intervals)})["catch"](function(a){b.error(a)})},a.getRoute=function(){return k.get({id:d.id}).$promise.then(function(b){a.route=b,a.gridOptions.data=b.Applications,r(a.gridOptions.data.length)})["catch"](function(a){f.path("/channels/voice/routes/outbound/list")})},a.getApplication=function(){if(void 0===a.selectedApp)f.path("/channels/voice/routes/outbound/list");else{if(a.showGrid=!0,a.route.Applications[a.selectedApp].appType)a.main.app=_.find(a.applications,{type:a.route.Applications[a.selectedApp].appType});else{a.main.app=_.find(a.applications,{type:"custom"});var b=a.route.Applications[a.selectedApp].appdata.join(",");a.route.Applications[a.selectedApp].appdata=[b],a.route.Applications[a.selectedApp].appType="custom"}q()}},a.openApplication=function(b){a.selectedApp=b,a.showGrid=!1,f.path("/channels/voice/routes/outbound/view/"+d.id+"/routes/settings")},a.updateRoute=function(e){return a.route.exten=a.$application.checkUnderscore(a.route.exten),_.forEach(a.route.Applications,function(a){"outboundDial"===a.appType&&(a.appdata[4]=a.appdata[4]||"",a.appdata[4]+=(_.includes(a.appdata[4],"x")?"":"x")+(_.includes(a.appdata[4],"X")?"":"X"))}),k.update({id:a.route.id},a.route).$promise.then(function(g){a.selectedApp=void 0,b.show(c.instant("MESSAGE_WELL_DONE")+"!","success"),e&&f.path("/channels/voice/routes/outbound/view/"+d.id+"/"+e)})["catch"](function(a){b.error(a)})},a.getContexts=function(){return m.get().$promise.then(function(b){a.voiceContexts=b.rows,e.syncUpdates("voice_context",a.voiceContexts)})["catch"](function(a){b.error(a)})},a.getTags=function(){return o.get().$promise.then(function(b){b.rows.unshift({name:"--"}),a.tags=b.rows})["catch"](function(a){b.error(a)})},a.deleteApp=h.confirm["delete"](function(b){a.route.Applications.splice(b,1),a.updateRoute()}),a.addApplication=function(){a.route.Applications.push(a.application),a.updateRoute("routes")},a.goNext=function(){g.wizard().next()},a.previous=function(){g.wizard().previous()},a.formValidation=function(a){return a},a.$on("destroy",function(){e.unsyncUpdates("voice_extension")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.routes.outbound.view",{url:"/view/:id",templateUrl:"app/channels/voice/route/outbound/view/view.html",controller:"VoiceRouteOutboundViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.channels.voice.routes.outbound.view.settings",{url:"/settings",templateUrl:"app/channels/voice/route/outbound/view/view.settings.html"}).state("main.channels.voice.routes.outbound.view.routes",{url:"/routes",templateUrl:"app/channels/voice/route/outbound/view/view.routes.html"}).state("main.channels.voice.routes.outbound.view.route",{url:"/route",templateUrl:"app/channels/voice/route/outbound/view/view.route.html"}).state("main.channels.voice.routes.outbound.view.routes.settings",{url:"/settings",templateUrl:"app/channels/voice/route/outbound/view/view.routeSettings.html"})}]),angular.module("xCallyShuttleApp").factory("Route",["$resource",function(a){return a("/api/voice/extensions/:id",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.routes",{url:"/routes",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:21}}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice",{url:"/voice",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:7}}})}]),angular.module("xCallyShuttleApp").controller("VoiceVoicemailListCtrl",["$scope","VoiceMail","gridOptions",function(a,b,c){a.initView=function(){var d={exporterCsvFilename:"voice_mails.csv",primaryKey:"uniqueid",columnDefs:[{name:"mailbox"},{name:"fullname"},{name:"email"},{name:"action",width:75,buttons:[{"class":"blue-hoki",href:"/channels/voice/voicemails/view/{{row.entity.uniqueid}}/settings",name:"profile"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.mailbox, row.entity.uniqueid)"}]}]};a.gridOptions=c.gridOptions(b,d,a)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.voicemails.list",{url:"/list",templateUrl:"app/channels/voice/voicemail/list/list.html",controller:"VoiceVoicemailListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("VoiceVoicemailViewCtrl",["$scope","VoiceMail","VoiceMailMessage","VoiceContext","$http","xAlert","$translate","$stateParams","socket","$sce","Modal","$location","gridOptions","uiGridConstants",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n){function o(){var b={exporterCsvFilename:"voice_mail_messages.csv",primaryKey:"id",columnDefs:[{name:"callerid"},{name:"stamp",displayName:"APPLICATION_DATE",cellClass:"ui-grid-vcenter",cellTemplate:"<div>{{grid.appScope.moment(row.entity.stamp).format('YYYY-MM-DD HH:mm:ss')}}</div>",sort:{direction:n.DESC,priority:0}},{name:"duration",cellClass:"ui-grid-vcenter",cellTemplate:"<div>{{row.entity.duration*1000 | date:'mm:ss'}}</div>"},{name:"audio",displayName:"",width:225,enableSorting:!1,enableFiltering:!1,buttons:[{directive:'<audio-file-download params="{id:row.entity.id,controller:\'download\'}" resource="grid.appScope.VoiceMailMessage"></audio-file-download>'}]},{name:"action",width:150,buttons:[{directive:'<motion-file-download params="{id:row.entity.id,controller:\'download\'}" resource="grid.appScope.VoiceMailMessage" mimetype="audio/wav" btnclass="btn btn-xs blue-hoki" filename="row.entity.msg_id+\'.wav\'"></motion-file-download>'},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.id, row.entity.id)"}]}]};a.gridOptions=m.gridOptions(c,b,a,{mailbox:a.voicemail.mailbox,context:a.voicemail.context})}a.moment=moment,a["switch"]={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.VoiceMailMessage=c,a.getVoicemail=function(){return b.get({id:h.uniqueid}).$promise.then(function(b){delete b.password,delete b.stamp,a.voicemail=b})["catch"](function(a){l.path("/voice/voicemails/list")})},a.updateVoiceVoicemail=function(){return b.update({id:h.uniqueid},a.voicemail).$promise.then(function(){f.show(g.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})},a.getContexts=function(){return d.get().$promise.then(function(b){a.voiceContexts=b.rows})["catch"](function(a){f.error(a)})},a.getMessages=function(){return a.voicemail?void o():b.get({id:h.uniqueid}).$promise.then(function(b){delete b.password,delete b.stamp,a.voicemail=b,o()})["catch"](function(a){l.path("/voice/voicemails/view/"+h.uniqueid+"/settings")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.voicemails.view",{url:"/view/:uniqueid",templateUrl:"app/channels/voice/voicemail/view/view.html",controller:"VoiceVoicemailViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.channels.voice.voicemails.view.settings",{url:"/settings",templateUrl:"app/channels/voice/voicemail/view/view.settings.html"}).state("main.channels.voice.voicemails.view.messages",{url:"/messages",templateUrl:"app/channels/voice/voicemail/view/view.messages.html"})}]),angular.module("xCallyShuttleApp").factory("VoiceMail",["$resource",function(a){return a("/api/voice/voicemails/:id/:controller",{uniqueid:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.voicemails",{url:"/voicemails",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:23}}})}]),angular.module("xCallyShuttleApp").factory("VoiceMailMessage",["$resource",function(a){return a("/api/voice/voicemails/messages/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("VoiceVoicemailWizardCtrl",["$scope","VoiceMail","xAlert","WizardHandler","$location","Setting",function(a,b,c,d,e,f){a.initWizard=function(){a.form={},a.item={context:"from-voicemail",attach:"no"}},a["switch"]={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.next=function(){d.wizard().next()},a.previous=function(){d.wizard().previous()},a.exitValidation=function(a){return a},a.getFirstFreeMailbox=function(){f.get({controller:"mailbox"}).$promise.then(function(b){a.item.mailbox=b.value})["catch"](function(a){c.error(a)})},a.createItem=function(){return a.item.customer_id=a.item.mailbox,b.save(a.item).$promise.then(function(){e.path("/channels/voice/voicemails/list")})["catch"](function(a){c.error(data)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.channels.voice.voicemails.wizard",{url:"/wizard",templateUrl:"app/channels/voice/voicemail/wizard/wizard.html",controller:"VoiceVoicemailWizardCtrl"})}]),angular.module("xCallyShuttleApp").factory("VoiceQueue",["$resource",function(a){return a("/api/voice/queues/:id/:controller/:controller2",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("Company",["$resource",function(a){return a("/api/contactmanager/companies/:id/:controller",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.contactmanager.companies",{url:"/companies",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:5}}})}]),angular.module("xCallyShuttleApp").controller("CompanyListCreateModalCtrl",["$scope","$uibModalInstance",function(a,b){a.forms={dashboard:void 0},a.item={},a.ok=function(){a.item.model=JSON.stringify({title:a.item.name}),b.close(a.item)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("ContactManagerCompanyListCtrl",["$scope","$translate","xAlert","Modal","$uibModal","$log","Company","gridOptions","$location","$state",function(a,b,c,d,e,f,g,h,i,j){a.initView=function(){var b={exporterCsvFilename:"Companies.csv",columnDefs:[{name:"name"},{name:"description"},{name:"action",width:100,buttons:[{"class":"blue-hoki",name:"profile",href:"/contactmanager/companies/view/{{row.entity.id}}/settings"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"},{"class":"green-turquoise",name:"contacts",onClick:"grid.appScope.goToContacts(row.entity.id)"}]}]};a.gridOptions=h.gridOptions(g,b,a)},a.goToContacts=function(a){j.go("main.contactmanager.contacts.list",{companyId:a})},a.create=function(){var a=e.open({animation:!0,size:"lg",templateUrl:"app/contactmanager/company/list/create.modal.html",controller:"CompanyListCreateModalCtrl"});a.result.then(function(a){return g.save(a).$promise.then(function(a){i.path("/contactmanager/companies/view/"+a.id+"/settings")})["catch"](function(a){c.error(a)})},function(){f.info("Modal dismissed at: "+new Date)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.contactmanager.companies.list",{url:"/list",templateUrl:"app/contactmanager/company/list/list.html",controller:"ContactManagerCompanyListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("ContactManagerCompanyViewCtrl",["$scope","xAlert","$translate","$stateParams","$location","Company",function(a,b,c,d,e,f){a.getCompany=function(){return f.get({id:d.id}).$promise.then(function(b){a.company=b})["catch"](function(a){e.path("/contactmanager/companies/list")})},a.updateCompany=function(){return f.update({id:d.id},a.company).$promise.then(function(){b.show(c.instant("MESSAGE_WELL_DONE")+"!","success")})["catch"](function(a){b.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.contactmanager.companies.view",{url:"/view/:id",templateUrl:"app/contactmanager/company/view/view.html",controller:"ContactManagerCompanyViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.contactmanager.companies.view.settings",{url:"/settings",templateUrl:"app/contactmanager/company/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").factory("Contact",["$resource",function(a){return a("/api/contactmanager/contacts/:id/:controller/:controller2",{id:"@id"},{update:{method:"PUT"},search:{method:"POST"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.contactmanager.contacts",{url:"/contacts",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("ContactManagerListCopyModalCtrl",["$scope","$uibModalInstance","xAlert","List","Contact","$translate",function(a,b,c,d,e,f){a.item={},a.getLists=function(){return d.get().$promise.then(function(b){a.lists=b.rows})["catch"](function(a){c.error(a)})},a.ok=function(){b.close(a.item)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("ContactManagerListImportModalCtrl",["$scope","$uibModalInstance","indexes","csv","xAlert","socket","List","Contact","$translate","Company","companyId","listId",function(a,b,c,d,e,f,g,h,i,j,k,l){function m(a){var b,c;if(!a)return 0;for(a=a.toString(),b=c=a.length;b--;){var d=a[b].charCodeAt();d>=56320&&57343>=d&&b--,d>127&&2047>=d?c++:d>2047&&65535>=d&&(c+=2)}return c}function n(b){if(b>=a.csvLength||a.stopped)return void(a.importing=!1);for(var c,f=[],g="",j=b;b+200>j&&j<a.csvLength;j++)c={},_.forOwn(a.item,function(b,e){switch(e){case"tags":c.tags=[],a.item.tags.forEach(function(a){d[j][a]&&c.tags.push(d[j][a])});break;default:c[e]=d[j][b]}}),c.ListId=a.item.ListId,c.CompanyId=a.item.CompanyId||null,c.firstName?f.push(c):(a["import"].fail+=1*a.addingQuote,a["import"].failed++,g+=(g?",(":"(")+(j+2)+")");return m(JSON.stringify(f))<=5e7?h.save({controller:"bulk"},{contacts:f}).$promise.then(function(c){a["import"].success+=c.ok*a.addingQuote,a["import"].succeeded+=c.ok,a["import"].fail+=c.ko*a.addingQuote,a["import"].failed+=c.ko,c.failed.length&&(_.forEach(c.failed,function(a,d){c.failed[d]+=b+2}),a.failedRows+=(a.failedRows?",":"")+_.sortBy(c.failed).join(",")),g&&(a.failedRows+=(a.failedRows?",":"")+g),n(j)})["catch"](function(b){a.stopped=!0,e.error(b),n(j)}):(a.stopped=!0,e.show(i.instant("MESSAGE_REQUEST_TOO_BIG"),"warning"),n(j),void 0)}a.indexes=c,a.importing=!1,a.submitted=!1,a.stopped=!1,a["import"]={success:0,fail:0,succeeded:0,failed:0},a.csvLength=d.length,a.addingQuote=100/a.csvLength,a.forms={csv:void 0},a.item={CompanyId:k||null,ListId:l||null},a.start=function(){a.importing=!0,a.submitted=!0,a.failedRows="",n(0)},a.getLists=function(){return g.get().$promise.then(function(b){a.lists=b.rows,a.item.ListId||(a.item.ListId=a.lists[0]?a.lists[0].id:null),a.getCustomFields()})["catch"](function(a){e.error(a)})},a.getCompanies=function(){return j.get().$promise.then(function(b){a.companies=b.rows})["catch"](function(a){e.error(a)})},a.getCustomFields=function(){return g.get({listId:a.item.ListId,controller:"customfields",id:"all"}).$promise.then(function(b){b.rows.forEach(function(a){a.values=JSON.parse(a.values)}),a.customFields=b.rows,f.socket.on("custom_field:remove",function(b){_.remove(a.customFields,function(a){return b.id==a.id})}),f.socket.on("custom_field:save",function(b){if(b.ListId===a.item.ListId){var c=_.find(a.customFields,{id:b.id});c||("string"==typeof b.values&&(b.values=JSON.parse(b.values)),a.customFields.push(b))}})})["catch"](function(a){console.error(a),e.error(a)})},a.close=function(){b.close()},a.stop=function(){a.stopped=!0}}]),angular.module("xCallyShuttleApp").controller("ContactManagerContactListCtrl",["$scope","$translate","Modal","FileUploader","Papa","$uibModal","$log","Contact","gridOptions","List","uiGridConstants","xAlert","socket","$stateParams","Auth","Company","usSpinnerService","$http","$rootScope","CustomField",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t){function u(){m.socket.on("contact_manager:save",function(){a.gridOptions.getPage()})}a.Auth=o,a.isAgent=o.isAgent(),a.agent=o.getCurrentUser(),a.initView=function(){var c;return j.get().$promise.then(function(b){return a.lists=[],b.rows.forEach(function(b){a.lists.push({value:b.id,label:b.name})}),t.get({controller:"all"}).$promise}).then(function(b){return a.customFields=b.rows,p.get().$promise}).then(function(b){a.companies=[],b.rows.forEach(function(b){a.companies.push({value:b.id,label:b.name})})}).then(function(){var d=[{"class":"blue-hoki",name:"profile",onClick:"grid.appScope.openContactTab(row.entity)"}];o.isAgent()||(d.push({"class":"green",title:b.instant("APPLICATION_COPY"),name:"copy",onClick:"grid.appScope.copy(row.entity.id)"}),d.push({"class":"red-sunglo",name:"delete",title:b.instant("APPLICATION_DELETE"),onClick:"grid.appScope.deleteItem(row.entity.fullname, row.entity.id)"})),c={exporterMenuAllData:!1,exporterMenuVisibleData:!1,exporterMenuSelectedData:!1,exporterCsvFilename:"Contacts.csv",columnDefs:[{name:"id",width:56},{name:"firstName"},{name:"lastName"},{name:"phone",displayName:"APPLICATION_PHONE",cellTemplate:'<div class="ui-grid-cell-contents">{{row.entity.phone}} <a href="#" data-ng-if="grid.appScope.isAgent && row.entity.phone && grid.appScope.agent.phoneBarRemoteControl" data-ng-click="grid.appScope.callPhoneBar(row.entity.phone,\'call\')" title="Call {{row.entity.phone}}"><i class="icon-phone"></i></a> <a href="#" data-ng-if="grid.appScope.isAgent && row.entity.phone && grid.appScope.agent.phoneBarRemoteControl" data-ng-click="grid.appScope.callPhoneBar(row.entity.phone,\'transfer\')" title="Call {{row.entity.phone}}"><i class="glyphicon glyphicon-random"></i></a></div>'},{name:"mobile",displayName:"APPLICATION_MOBILE",cellTemplate:'<div class="ui-grid-cell-contents">{{row.entity.mobile}} <a href="#" data-ng-if="grid.appScope.isAgent && row.entity.mobile && grid.appScope.agent.phoneBarRemoteControl" data-ng-click="grid.appScope.callPhoneBar(row.entity.mobile,\'call\')" title="Call {{row.entity.mobile}}"><i class="icon-phone"></i></a> <a href="#" data-ng-if="grid.appScope.isAgent && row.entity.mobile && grid.appScope.agent.phoneBarRemoteControl" data-ng-click="grid.appScope.callPhoneBar(row.entity.mobile,\'transfer\')" title="Transfer call to {{row.entity.mobile}}"><i class="glyphicon glyphicon-random"></i></a></div>'},{name:"email",displayName:"APPLICATION_EMAIL",cellTemplate:'<div class="ui-grid-cell-contents"><a href="#" data-ng-if="grid.appScope.license.mail && row.entity.email && grid.appScope.isAgent" data-ng-click="grid.appScope.openRoom(null,\'mailRoom\',{to:row.entity.email})">{{row.entity.email}}</a><span data-ng-if="!grid.appScope.license.mail || !grid.appScope.isAgent">{{row.entity.email}}</span></div>'},{name:"ListId",displayName:"APPLICATION_LIST",field:"List",filter:{type:k.filter.SELECT,term:n.listId||null,selectOptions:a.lists},cellTemplate:'<div class="centered-uigrid-td"><a data-ng-if="!grid.appScope.isAgent" href="/contactmanager/lists/view/{{row.entity.ListId}}/settings">{{row.entity.List}}</a><span data-ng-if="grid.appScope.isAgent">{{row.entity.List}}</span></div>'},{name:"CompanyId",displayName:"APPLICATION_COMPANY",field:"Company",filter:{type:k.filter.SELECT,term:n.companyId||null,selectOptions:a.companies},cellTemplate:'<div class="centered-uigrid-td"><a data-ng-if="!grid.appScope.isAgent" href="/contactmanager/companies/view/{{row.entity.CompanyId}}/settings">{{row.entity.Company}}</a><span data-ng-if="grid.appScope.isAgent">{{row.entity.Company}}</span></div>'},{name:"tags",filterHeaderTemplate:'<div class="ui-grid-filter-container"><div ng-repeat="colFilter in col.filters" class="col-md-12 col-md-offset-0 col-sm-12 col-sm-offset-0 col-xs-12 col-xs-offset-0"><div custom-grid-tags-filter-header></div></div></div>',filters:[{name:"tags"}],cellTemplate:"<div class=\"centered-uigrid-td\">{{row.entity.tags.join(',')}}</div>"}]},_.forEach(a.customFields,function(a){c.columnDefs.push({name:a.name,displayName:a.alias,visible:!1})}),c.columnDefs.push({name:"action",width:100,buttons:d}),a.gridOptions=i.gridOptions(h,c,a),u()})["catch"](function(a){l.error(a)})},a.callPhoneBar=function(c,d){var e;switch(d){case"call":e="http://127.0.0.1:"+a.agent.phoneBarRemoteControlPort+"/api/originate/"+c;break;case"transfer":e="http://127.0.0.1:"+a.agent.phoneBarRemoteControlPort+"/api/transfer?number="+c;break;default:e="http://127.0.0.1:"+a.agent.phoneBarRemoteControlPort+"/api/originate/"+c}return r.get(e).success(function(){l.show(b.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){console.error(a),l.error({message:b.instant("MESSAGE_UNABLE_TO_CONTACT_PHONEBAR")})})},a.openRoom=function(a,b,c){var d=_.find(s.workspaces,{id:a,type:b});if(d)d.active=!0;else{var e;switch(b){case"mailRoom":e="icon-envelope";break;case"chatRoom":e="fa fa-users";break;case"faxRoom":e="fa fa-fax";break;case"smsRoom":e="glyphicon glyphicon-comment"}s.workspaces.push({id:a,type:b,"class":e,active:!0,data:c})}},d.FileSelect.prototype.isEmptyAfterSelection=function(){return!0};var v=a.uploader=new d({queueLimit:1,clearInputAfterAddedToQueue:!0});v.onAfterAddingFile=function(b){e.parse(b._file,{header:!0,complete:function(b){a.uploader.clearQueue(),a["import"](b.data)},error:function(a){console.log(a)}})},a.extractAll=function(){q.spin("grid-spinner");var b=_.clone(a.gridOptions.pagOpt);return delete b.limit,delete b.offset,h.get(_.merge({controller:"extract",controller2:"all"},b)).$promise.then(function(a){return q.stop("grid-spinner"),a.rows})["catch"](function(a){l.error(a)})},a["import"]=function(b){m.unsyncUpdates("contact_manager");var c=f.open({animation:!0,size:"lg",backdrop:"static",keyboard:!1,templateUrl:"app/contactmanager/contact/list/import.modal.html",controller:"ContactManagerListImportModalCtrl",resolve:{indexes:function(){return _.keys(b[0])},csv:function(){return b},companyId:function(){return a.gridOptions.columnDefs[7].filter.term||null},listId:function(){return a.gridOptions.columnDefs[6].filter.term||null}}});c.result.then(function(){console.log("result"),u(),a.gridOptions.getPage()},function(){g.info("Modal dismissed at: "+new Date)})},a.copy=function(b){var c=f.open({animation:!0,size:"small",templateUrl:"app/contactmanager/contact/list/copy.modal.html",controller:"ContactManagerListCopyModalCtrl"});c.result.then(function(c){return h.save({id:b,controller:"copy"},c).$promise.then(function(b){a.openContactTab({firstName:b.firstName,lastName:b.lastName,id:b.id})})["catch"](function(a){l.error(a)})},function(){g.info("Modal dismissed at: "+new Date)})},a.$on("$destroy",function(){m.unsyncUpdates("contact_manager")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.contactmanager.contacts.list",{url:"/list",templateUrl:"app/contactmanager/contact/list/list.html",params:{listId:null,companyId:null},controller:"ContactManagerContactListCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.contactmanager",{url:"/contactmanager",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:5}}})}]),angular.module("xCallyShuttleApp").factory("CustomField",["$resource",function(a){return a("/api/contactmanager/customfields/:id/:controller",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.contactmanager.customfields",{url:"/customfields",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:5}}})}]),angular.module("xCallyShuttleApp").controller("CustomFieldListCreateModalCtrl",["$scope","$uibModalInstance","$translate",function(a,b,c){a.$translate=c,a.forms={dashboard:void 0},a.item={},a.choices=[{value:""}],a.bsSwitch={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.addField=function(){a.choices.push({})},a.removeField=function(b){a.choices.splice(b,1)},a.types=[{name:"APPLICATION_TEXT",value:"text"},{name:"APPLICATION_SELECT",value:"select"}],a.ok=function(){"select"===a.item.type&&(a.item.values=angular.toJson(a.choices)),b.close(a.item)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("ContactManagerCustomFieldListCtrl",["$scope","$translate","xAlert","Modal","$uibModal","$log","CustomField","gridOptions",function(a,b,c,d,e,f,g,h){a.initView=function(){var b={exporterCsvFilename:"customfields.csv",primaryKey:"id",columnDefs:[{name:"alias",displayName:"APPLICATION_NAME"},{name:"name",displayName:"APPLICATION_FIELD"},{name:"type"},{name:"action",width:200,buttons:[{"class":"blue-hoki",href:"/contactmanager/customfields/view/{{row.entity.id}}/settings",name:"settings"},{"class":"red-sunglo",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)",name:"delete"}]}]};a.gridOptions=h.gridOptions(g,b,a)},a.create=function(){var d=e.open({animation:!0,size:"lg",templateUrl:"app/contactmanager/customfield/list/create.modal.html",controller:"CustomFieldListCreateModalCtrl"});d.result.then(function(d){return g.save(d).$promise.then(function(){a.gridOptions.getPage(),c.show(b.instant("MESSAGE_WELL_DONE")+"!","success")})["catch"](function(a){c.error(a)})},function(){f.info("Modal dismissed at: "+new Date)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.contactmanager.customfields.list",{url:"/list",templateUrl:"app/contactmanager/customfield/list/list.html",controller:"ContactManagerCustomFieldListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("ContactManagerCustomFieldViewCtrl",["$scope","xAlert","$translate","$stateParams","$location","CustomField",function(a,b,c,d,e,f){function g(a){var b=a.split(""),c=0,d=0;return b.shift(),b.forEach(function(a,b){"{"===a?c++:"}"===a&&(c--,c||(d=b+1))}),d?JSON.parse("["+a.substr(1,d)+"]"):[]}a.bsSwitch={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.getCustomField=function(){return f.get({id:d.id}).$promise.then(function(b){if(a.customField=b,"select"===a.customField.type)try{a.choices=JSON.parse(a.customField.values)}catch(c){a.choices=g(a.customField.values)}})["catch"](function(){e.path("/contactmanager/customfields/list")})},a.addField=function(){a.choices.push({})},a.removeField=function(b){a.choices.splice(b,1)},a.updateCustomField=function(){var e=angular.copy(a.customField);return"select"===e.type&&(e.values=angular.toJson(a.choices)),f.update({id:d.id},a.customField).$promise.then(function(){b.show(c.instant("MESSAGE_WELL_DONE")+"!","success"); -})["catch"](function(a){b.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.contactmanager.customfields.view",{url:"/view/:id",templateUrl:"app/contactmanager/customfield/view/view.html",controller:"ContactManagerCustomFieldViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.contactmanager.customfields.view.settings",{url:"/settings",templateUrl:"app/contactmanager/customfield/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").factory("List",["$resource",function(a){return a("/api/contactmanager/lists/:listId/:controller/:id",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.contactmanager.lists",{url:"/lists",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:5}}})}]),angular.module("xCallyShuttleApp").controller("ContactManagerListListCreateModalCtrl",["$scope","$uibModalInstance",function(a,b){a.forms={dashboard:void 0},a.item={},a.ok=function(){b.close(a.item)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("ContactManagerListListCtrl",["$scope","$http","$translate","Modal","xAlert","$uibModal","$log","List","gridOptions","$state","MotionDialerList","$rootScope",function(a,b,c,d,e,f,g,h,i,j,k,l){a.initView=function(){var b={exporterCsvFilename:"Lists.csv",columnDefs:[{name:"id"},{name:"name"},{name:"description"},{name:"action",width:120,buttons:[{"class":"blue-hoki",name:"settings",href:"/contactmanager/lists/view/{{row.entity.id}}/settings"},{"class":"green-turquoise",name:"contacts",onClick:"grid.appScope.goToContacts(row.entity.id)"},{"class":"red-thunderbird",name:"deleteContacts",onClick:"grid.appScope.deleteAllContacts('"+c.instant("APPLICATION_ALL_CONTACTS_FROM_THE_LIST")+" '+row.entity.name, row.entity.id)"},{"class":"{{row.entity.defaultEntry ? 'red-sunglo disabled' : 'red-sunglo'}}",name:"delete",onClick:"grid.appScope.deleteList(row.entity.name, row.entity.id)"}]}]};a.gridOptions=i.gridOptions(h,b,a)},a.goToContacts=function(a){j.go("main.contactmanager.contacts.list",{listId:a})},a.deleteAllContacts=d.confirm["delete"](function(a){return h.remove({listId:a,controller:"contacts"}).$promise.then(function(){e.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){e.error(a)})}),a.deleteList=d.confirm["delete"](function(b){return l.license.dialer?k.find({id_source:b}).$promise.then(function(a){return a&&a.status>0?a.response.RMI.rows[0]?k["delete"]({id:a.response.RMI.rows[0].id}).$promise:{status:1}:void e.show(a?a.message||"Please, check your connection!":"Please, check your connection!","danger")}).then(function(d){if(d&&d.status>0)return h.remove({id:b}).$promise.then(function(){a.gridOptions.getPage(),e.show(c.instant("MESSAGE_WELL_DONE"),"success")});var f="Please, check your connection!";d&&(f=d.response&&d.response.RMI?d.response.RMI.errors||d.message||"Please, check your connection!":d.message||"Please, check your connection!"),e.show(f,"danger")})["catch"](function(a){e.error(a)}):h.remove({id:b}).$promise.then(function(){a.gridOptions.getPage(),e.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){e.error(a)})}),a.create=function(){var d=f.open({animation:!0,templateUrl:"app/contactmanager/list/list/create.modal.html",controller:"ContactManagerListListCreateModalCtrl"});d.result.then(function(d){b.post("/api/contactmanager/lists/",d).then(function(){a.gridOptions.getPage(),e.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){e.error(a)})},function(){g.info("Modal dismissed at: "+new Date)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.contactmanager.lists.list",{url:"/list",templateUrl:"app/contactmanager/list/list/list.html",controller:"ContactManagerListListCtrl"})}]),angular.module("xCallyShuttleApp").controller("ContactManagerListCustomFieldViewCreateModalCtrl",["$scope","$uibModalInstance","$translate",function(a,b,c){a.$translate=c,a.forms={dashboard:void 0},a.item={},a.choices=[{value:""}],a.bsSwitch={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.addField=function(){a.choices.push({})},a.removeField=function(b){a.choices.splice(b,1)},a.types=[{name:"APPLICATION_TEXT",value:"text"},{name:"APPLICATION_SELECT",value:"select"}],a.ok=function(){"select"===a.item.type&&(a.item.values=angular.toJson(a.choices)),b.close(a.item)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("ContactManagerListViewCtrl",["$scope","xAlert","$translate","$stateParams","socket","$location","$uibModal","$log","Modal","List","Team","gridOptions",function(a,b,c,d,e,f,g,h,i,j,k,l){function m(a){var b=a.split(""),c=0,d=0;return b.shift(),b.forEach(function(a,b){"{"===a?c++:"}"===a&&(c--,c||(d=b+1))}),d?JSON.parse("["+a.substr(1,d)+"]"):[]}var n=[{name:"firstName",value:"firstName"},{name:"lastName",value:"lastName"},{name:"CompanyId",value:"CompanyId"},{name:"phone",value:"phone"},{name:"mobile",value:"mobile"},{name:"email",value:"email"},{name:"fax",value:"fax"},{name:"tags",value:"tags"},{name:"ListId",value:"ListId"},{name:"street",value:"street"},{name:"postalCode",value:"postalCode"},{name:"city",value:"city"},{name:"country",value:"country"},{name:"dateOfBirth",value:"dateOfBirth"},{name:"description",value:"description"},{name:"url",value:"url"}];a.bsSwitch={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"};var o=function(){return{select:function(b){return j.save({listId:a.list.id,controller:"agents"},{agents:b}).$promise.then(function(){a.getTeams()})["catch"](function(a){console.log(a)})},deselect:function(b){return j["delete"]({listId:a.list.id,controller:"agents",agents:b}).$promise.then(function(){a.getTeams()})["catch"](function(a){console.log(a)})}}};a.initVariables=function(){return j.get({listId:d.id,controller:"customfields",id:"all"}).$promise.then(function(b){if(a.variables=_.clone(n),b.rows.forEach(function(b){try{"select"===b.type&&(b.values=JSON.parse(b.values)),a.variables.push({name:b.alias,value:b.name})}catch(c){console.log("Cf not valid:",b.alias)}}),a.list&&a.list.variables&&a.list.variables.length)for(var c=a.list.variables.length;c--;)_.find(a.variables,{value:a.list.variables[c].value})||a.list.variables.splice(c,1)})["catch"](function(a){console.error(a),b.error(a)})},a.getList=function(){return j.get({listId:d.id}).$promise.then(function(b){if(b.variables)try{b.variables=JSON.parse(b.variables)}catch(c){console.log("invalid or outdated variables format"),b.variables=[]}else b.variables=[];a.list=b})["catch"](function(){f.path("/contactmanager/lists/list")})},a.updateList=function(){var e=_.clone(a.list);return e.variables=e.variables.length?angular.toJson(e.variables):"",j.update({id:d.id},e).$promise.then(function(){b.show(c.instant("MESSAGE_WELL_DONE")+"!","success")})["catch"](function(a){b.error(a)})},a.convertList=function(){a.list.isTdList=!0,a.updateList()},a.getTeams=function(){return k.get({controller:"associations"}).$promise.then(function(b){return a.teams=b.rows,a.list?void 0:a.getList()}).then(function(){return a.list.defaultEntry&&f.path("/contactmanager/lists/list"),j.get({listId:d.id,controller:"agents"}).$promise}).then(function(b){ComponentsDropdowns.bindQueue(a.teams,_.map(b.rows,function(a){return{id:a.id}}),o)})["catch"](function(a){console.error(a)})},a.initCustomFields=function(){var b={exporterCsvFilename:"customfields.csv",primaryKey:"id",columnDefs:[{name:"alias",displayName:"APPLICATION_NAME"},{name:"name",displayName:"APPLICATION_FIELD"},{name:"type"},{name:"action",width:200,buttons:[{"class":"blue-hoki",href:"/contactmanager/lists/view/{{grid.appScope.$stateParams.id}}/customfields/settings/{{row.entity.id}}",name:"settings"},{"class":"red-sunglo",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)",name:"delete"}]}]};a.gridOptions=l.gridOptions(j,b,a,{listId:d.id,controller:"customfields"})},a.create=function(){var e=g.open({animation:!0,templateUrl:"app/contactmanager/list/view/create.modal.html",controller:"ContactManagerListCustomFieldViewCreateModalCtrl"});e.result.then(function(e){return j.save({listId:d.id,controller:"customfields"},e).$promise.then(function(){a.gridOptions.getPage(),b.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){b.error(a)})},function(){h.info("Modal dismissed at: "+new Date)})},a.getCustomField=function(){return j.get({listId:d.id,controller:"customfields",id:d.cfId}).$promise.then(function(b){if(a.customField=b,"select"===a.customField.type)try{a.choices=JSON.parse(a.customField.values)}catch(c){a.choices=m(a.customField.values)}})["catch"](function(a){console.error(a)})},a.updateCustomField=function(){var e=angular.copy(a.customField);return"select"===e.type&&(e.values=angular.toJson(a.choices)),j.update({listId:d.id,controller:"customfields",id:d.cfId},e).$promise.then(function(){b.show(c.instant("MESSAGE_WELL_DONE")+"!","success")})["catch"](function(a){b.error(a)})},a.addField=function(){a.choices.push({})},a.removeField=function(b){a.choices.splice(b,1)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.contactmanager.lists.view",{url:"/view/:id",templateUrl:"app/contactmanager/list/view/view.html",controller:"ContactManagerListViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.contactmanager.lists.view.settings",{url:"/settings",templateUrl:"app/contactmanager/list/view/view.settings.html"}).state("main.contactmanager.lists.view.agents",{url:"/agents",templateUrl:"app/contactmanager/list/view/view.agents.html",cache:!1,serie:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}}).state("main.contactmanager.lists.view.customfields",{url:"/customfields",templateUrl:"app/contactmanager/list/view/view.customFields.html"}).state("main.contactmanager.lists.view.customfields.settings",{url:"/settings/:cfId",templateUrl:"app/contactmanager/list/view/view.customFieldSettings.html",controller:"ContactManagerListViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("DashboardChatCtrl",["$scope","Auth","ChatRoom","socket","Agent","$translate","$q","ReportChatSession","$timeout",function(a,b,c,d,e,f,g,h,i){a.Auth=b,a.moment=moment,a.$on("$destroy",function(){d.socket.removeAllListeners("dashboard:chat")}),a.roomStatus={"new":0,open:0,closed:0,abandon:0,unmanaged:0},a.routingStats={waiting:0,timeout:0},a.charts={interactions:{labels:[f.instant("APPLICATION_DASHBOARD_NEW"),f.instant("APPLICATION_DASHBOARD_OPEN"),f.instant("APPLICATION_DASHBOARD_PENDING"),f.instant("APPLICATION_DASHBOARD_CLOSED")],values:[a.roomStatus["new"],a.roomStatus.open,a.roomStatus.pending,a.roomStatus.closed],colours:["#44B6AE","#578EBE","#35AA47","#8775A7"]}};var j=function(a){var b=a?30*a+130:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",b+"px")};a.initAgent=function(){a.table1={enableGridMenu:!1,enableHorizontalScrollbar:0,enableVerticalScrollbar:0,paginationPageSizes:[10,25,50],paginationPageSize:10,columnDefs:[{name:"UserHasChatQueue.queue",headerCellFilter:"translate",displayName:"APPLICATION_QUEUE",cellClass:"text-center ui-grid-vcenter"}],data:[],onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){j(a.table1.paginationPageSize>a.table1.data.length?a.table1.data.length:a.table1.paginationPageSize,"table1")}),a.gridApi.pagination.on.paginationChanged(a,function(b,c){j(c>a.table1.data.length?a.table1.data.length:c,"table1")})}},a.table2={headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,columnDefs:[{name:"roomid",displayName:"APPLICATION_INTERACTION_ID",headerCellFilter:"translate"},{name:"accountname",displayName:"APPLICATION_ACCOUNT_NAME",headerCellFilter:"translate"},{name:"application",displayName:"APPLICATION_APPLICATION",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.application}} <span data-ng-if=\"row.entity.application == 'queue' && row.entity.queuename\">({{row.entity.queuename}})</span></div>"},{name:"status",displayName:"APPLICATION_STATUS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span data-ng-if="!row.entity.leaveAt">{{\'APPLICATION_QUEUESTATUS_WAITING\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.complete">{{\'APPLICATION_QUEUESTATUS_COMPLETE\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.timeout">{{\'APPLICATION_TIMEOUT\' | translate}}</span><span data-ng-if="!row.entity.leaveAt"> [<css-timer start-time="row.entity.updatedAt"></css-timer>]</span></div>',enableSorting:!1,enableColumnMenu:!1,enableFiltering:!1},{name:"membername",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.membername || ''}}</span></div>"}],data:[],gridMenuTitleFilter:function(a){var b=g.defer();return b.resolve(f.instant(a)),b.promise},onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){})}},e.get({id:b.getCurrentUser().id,controller:"chat",controller1:"queues"}).$promise.then(function(b){a.table1.data=b.rows})["finally"](function(){j(a.table1.paginationPageSize>a.table1.data.length?a.table1.data.length:a.table1.paginationPageSize,"table1"),d.socket.on("user_has_chat_queue:save",function(c){c.UserId!=b.getCurrentUser().id||_.find(a.table1.data,{id:c.ChatQueueId})||a.table1.data.push({id:c.ChatQueueId,UserHasChatQueue:c})}),d.socket.on("user_has_chat_queue:remove",function(c){c.UserId===b.getCurrentUser().id&&_.remove(a.table1.data,{id:c.ChatQueueId})})})["catch"](function(a){console.error(a)}),h.get({controller:"waiting",controller2:"applications"}).$promise.then(function(b){a.table2.data=b.rows})["finally"](function(){d.socket.on("report_chat_session:save",function(b){var c=_.find(a.table2.data,{id:b.id});c?(_.merge(c,b),b.leaveAt&&i(function(){_.remove(a.table2.data,{id:b.id})},1e4)):b.leaveAt||a.table2.data.push(b)}),d.socket.on("report_chat_session:remove",function(b){_.remove(a.table2.data,{id:b.id})})})["catch"](function(a){console.log(a)})},a.initRoomStats=function(){return c.get({id:"dashboard"}).$promise.then(function(b){a.roomStatus=b,a.charts={interactions:{labels:[f.instant("APPLICATION_DASHBOARD_NEW"),f.instant("APPLICATION_DASHBOARD_OPEN"),f.instant("APPLICATION_UNMANAGED"),f.instant("APPLICATION_DASHBOARD_CLOSED"),f.instant("APPLICATION_DASHBOARD_ABANDONED")],values:[a.roomStatus["new"],a.roomStatus.open,a.roomStatus.unmanaged,a.roomStatus.closed,a.roomStatus.abandon],colours:["#44B6AE","#578EBE","#35AA47","#8775A7","#F3C200"]}},d.socket.on("dashboard:chat",function(b){a.roomStatus=b.roomStatus,a.charts.interactions.values=[a.roomStatus["new"],a.roomStatus.open,a.roomStatus.unmanaged,a.roomStatus.closed,a.roomStatus.abandon]})})["catch"](function(a){console.error(a)})},a.initRoutingStats=function(){return h.get({id:"dashboard"}).$promise.then(function(b){a.routingStats=b})["catch"](function(a){console.error(a)})},a.initSocketListening=function(){d.socket.on("dashboard:chat",function(b){a.roomStatus=b.roomStatus,a.routingStats=b.routingStats,a.charts.interactions.values=[a.roomStatus["new"],a.roomStatus.open,a.roomStatus.unmanaged,a.roomStatus.closed,a.roomStatus.abandon]})}}]),angular.module("xCallyShuttleApp").controller("DashboardCtrl",["$scope","$translate","Auth",function(a,b,c){}]),angular.module("xCallyShuttleApp").factory("Dashboard",["$resource",function(a){return a("/api/dashboards/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.dashboard",{"abstract":!0,url:"/dashboard",templateUrl:"app/dashboard/dashboard.html",controller:"DashboardCtrl",data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:1}}}).state("main.dashboard.voice",{url:"/voice",controller:"DashboardVoiceCtrl",templateUrl:"app/dashboard/voice/voice.html"}).state("main.dashboard.chat",{url:"/chat",controller:"DashboardChatCtrl",templateUrl:"app/dashboard/chat/chat.html",data:{permissions:{redirectTo:"landing",id:8}}}).state("main.dashboard.mail",{url:"/mail",controller:"DashboardMailCtrl",templateUrl:"app/dashboard/mail/mail.html",data:{permissions:{redirectTo:"landing",id:9}}}).state("main.dashboard.fax",{url:"/fax",controller:"DashboardFaxCtrl",templateUrl:"app/dashboard/fax/fax.html",data:{permissions:{redirectTo:"landing",id:10}}}).state("main.dashboard.sms",{url:"/sms",controller:"DashboardSmsCtrl",templateUrl:"app/dashboard/sms/sms.html",data:{permissions:{redirectTo:"landing",id:11}}}).state("main.dashboard.openchannel",{url:"/openchannel",controller:"DashboardOpenChannelCtrl",templateUrl:"app/dashboard/openchannel/openchannel.html",data:{permissions:{redirectTo:"landing",id:20}}})}]),angular.module("xCallyShuttleApp").controller("DashboardFaxCtrl",["$scope","Auth","FaxRoom","socket","Agent","$translate","$q","ReportFaxSession","$timeout",function(a,b,c,d,e,f,g,h,i){a.Auth=b,a.moment=moment,a.$on("$destroy",function(){d.socket.removeAllListeners("dashboard:fax")}),a.roomStatus={"new":0,open:0,pending:0,closed:0},a.routingStats={waiting:0,timeout:0},a.charts={interactions:{labels:[f.instant("APPLICATION_DASHBOARD_NEW"),f.instant("APPLICATION_DASHBOARD_OPEN"),f.instant("APPLICATION_DASHBOARD_PENDING"),f.instant("APPLICATION_DASHBOARD_CLOSED")],values:[a.roomStatus["new"],a.roomStatus.open,a.roomStatus.pending,a.roomStatus.closed],colours:["#44B6AE","#578EBE","#35AA47","#8775A7"]}};var j=function(a){var b=a?30*a+130:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",b+"px")};a.initAgent=function(){a.table1={enableGridMenu:!1,enableHorizontalScrollbar:0,enableVerticalScrollbar:0,paginationPageSizes:[10,25,50],paginationPageSize:10,columnDefs:[{name:"UserHasFaxQueue.queue",headerCellFilter:"translate",displayName:"APPLICATION_QUEUE",cellClass:"text-center ui-grid-vcenter"}],data:[],onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){j(a.table1.paginationPageSize>a.table1.data.length?a.table1.data.length:a.table1.paginationPageSize,"table1")}),a.gridApi.pagination.on.paginationChanged(a,function(b,c){j(c>a.table1.data.length?a.table1.data.length:c,"table1")})}},a.table2={headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,columnDefs:[{name:"roomid",displayName:"APPLICATION_INTERACTION_ID",headerCellFilter:"translate"},{name:"accountname",displayName:"APPLICATION_ACCOUNT_NAME",headerCellFilter:"translate"},{name:"application",displayName:"APPLICATION_APPLICATION",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.application}} <span data-ng-if=\"row.entity.application == 'queue' && row.entity.queuename\">({{row.entity.queuename}})</span></div>"},{name:"status",displayName:"APPLICATION_STATUS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span data-ng-if="!row.entity.leaveAt">{{\'APPLICATION_QUEUESTATUS_WAITING\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.complete">{{\'APPLICATION_QUEUESTATUS_COMPLETE\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.timeout">{{\'APPLICATION_TIMEOUT\' | translate}}</span><span data-ng-if="!row.entity.leaveAt"> [<css-timer start-time="row.entity.updatedAt"></css-timer>]</span></div>',enableSorting:!1,enableColumnMenu:!1,enableFiltering:!1},{name:"membername",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.membername || ''}}</span></div>"}],data:[],gridMenuTitleFilter:function(a){var b=g.defer();return b.resolve(f.instant(a)),b.promise},onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){})}},e.get({id:b.getCurrentUser().id,controller:"fax",controller1:"queues"}).$promise.then(function(b){a.table1.data=b.rows})["finally"](function(){j(a.table1.paginationPageSize>a.table1.data.length?a.table1.data.length:a.table1.paginationPageSize,"table1"),d.socket.on("user_has_fax_queue:save",function(c){c.UserId!=b.getCurrentUser().id||_.find(a.table1.data,{id:c.FaxQueueId})||a.table1.data.push({id:c.FaxQueueId,UserHasFaxQueue:c})}),d.socket.on("user_has_fax_queue:remove",function(c){c.UserId===b.getCurrentUser().id&&_.remove(a.table1.data,{id:c.FaxQueueId})})})["catch"](function(a){console.error(a)}),h.get({controller:"waiting",controller2:"applications"}).$promise.then(function(b){a.table2.data=b.rows})["finally"](function(){d.socket.on("report_fax_session:save",function(b){var c=_.find(a.table2.data,{id:b.id});c?(_.merge(c,b),b.leaveAt&&i(function(){_.remove(a.table2.data,{id:b.id})},1e4)):b.leaveAt||a.table2.data.push(b)}),d.socket.on("report_fax_session:remove",function(b){_.remove(a.table2.data,{id:b.id})})})["catch"](function(a){console.log(a)})},a.initRoomStats=function(){return c.get({id:"dashboard"}).$promise.then(function(b){a.roomStatus=b,a.charts={interactions:{labels:[f.instant("APPLICATION_DASHBOARD_NEW"),f.instant("APPLICATION_DASHBOARD_OPEN"),f.instant("APPLICATION_DASHBOARD_PENDING"),f.instant("APPLICATION_DASHBOARD_CLOSED")],values:[a.roomStatus["new"],a.roomStatus.open,a.roomStatus.pending,a.roomStatus.closed],colours:["#44B6AE","#578EBE","#35AA47","#8775A7"]}},d.socket.on("dashboard:fax",function(b){a.roomStatus=b.roomStatus,a.charts.interactions.values=[a.roomStatus["new"],a.roomStatus.open,a.roomStatus.pending,a.roomStatus.closed]})})["catch"](function(a){console.error(a)})},a.initRoutingStats=function(){return h.get({id:"dashboard"}).$promise.then(function(b){a.routingStats=b})["catch"](function(a){console.error(a)})},a.initSocketListening=function(){d.socket.on("dashboard:fax",function(b){a.roomStatus=b.roomStatus,a.routingStats=b.routingStats,a.charts.interactions.values=[a.roomStatus["new"],a.roomStatus.open,a.roomStatus.pending,a.roomStatus.closed]})}}]),angular.module("xCallyShuttleApp").controller("DashboardMailCtrl",["$scope","Auth","MailRoom","socket","Agent","$translate","$q","ReportMailSession","$timeout",function(a,b,c,d,e,f,g,h,i){a.Auth=b,a.moment=moment,a.$on("$destroy",function(){d.socket.removeAllListeners("dashboard:mail")}),a.roomStatus={"new":0,open:0,pending:0,closed:0},a.routingStats={waiting:0,timeout:0},a.charts={interactions:{labels:[f.instant("APPLICATION_DASHBOARD_NEW"),f.instant("APPLICATION_DASHBOARD_OPEN"),f.instant("APPLICATION_DASHBOARD_PENDING"),f.instant("APPLICATION_DASHBOARD_CLOSED")],values:[a.roomStatus["new"],a.roomStatus.open,a.roomStatus.pending,a.roomStatus.closed],colours:["#44B6AE","#578EBE","#35AA47","#8775A7"]}};var j=function(a){var b=a?30*a+130:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",b+"px")};a.initAgent=function(){a.table1={enableGridMenu:!1,enableHorizontalScrollbar:0,enableVerticalScrollbar:0,paginationPageSizes:[10,25,50],paginationPageSize:10,columnDefs:[{name:"UserHasMailQueue.queue",headerCellFilter:"translate",displayName:"APPLICATION_QUEUE",cellClass:"text-center ui-grid-vcenter"}],data:[],onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){j(a.table1.paginationPageSize>a.table1.data.length?a.table1.data.length:a.table1.paginationPageSize,"table1")}),a.gridApi.pagination.on.paginationChanged(a,function(b,c){j(c>a.table1.data.length?a.table1.data.length:c,"table1")})}},a.table2={headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,columnDefs:[{name:"roomid",displayName:"APPLICATION_INTERACTION_ID",headerCellFilter:"translate"},{name:"accountname",displayName:"APPLICATION_ACCOUNT_NAME",headerCellFilter:"translate"},{name:"application",displayName:"APPLICATION_APPLICATION",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.application}} <span data-ng-if=\"row.entity.application == 'queue' && row.entity.queuename\">({{row.entity.queuename}})</span></div>"},{name:"status",displayName:"APPLICATION_STATUS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span data-ng-if="!row.entity.leaveAt">{{\'APPLICATION_QUEUESTATUS_WAITING\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.complete">{{\'APPLICATION_QUEUESTATUS_COMPLETE\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.timeout">{{\'APPLICATION_TIMEOUT\' | translate}}</span><span data-ng-if="!row.entity.leaveAt"> [<css-timer start-time="row.entity.updatedAt"></css-timer>]</span></div>',enableSorting:!1,enableColumnMenu:!1,enableFiltering:!1},{name:"membername",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.membername || ''}}</span></div>"}],data:[],gridMenuTitleFilter:function(a){var b=g.defer();return b.resolve(f.instant(a)),b.promise},onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){})}},e.get({id:b.getCurrentUser().id,controller:"mail",controller1:"queues"}).$promise.then(function(b){a.table1.data=b.rows})["finally"](function(){j(a.table1.paginationPageSize>a.table1.data.length?a.table1.data.length:a.table1.paginationPageSize,"table1"),d.socket.on("user_has_mail_queue:save",function(c){c.UserId!=b.getCurrentUser().id||_.find(a.table1.data,{id:c.MailQueueId})||a.table1.data.push({id:c.MailQueueId,UserHasMailQueue:c})}),d.socket.on("user_has_mail_queue:remove",function(c){c.UserId===b.getCurrentUser().id&&_.remove(a.table1.data,{id:c.MailQueueId})})})["catch"](function(a){console.error(a)}),h.get({controller:"waiting",controller2:"applications"}).$promise.then(function(b){a.table2.data=b.rows})["finally"](function(){d.socket.on("report_mail_session:save",function(b){var c=_.find(a.table2.data,{id:b.id});c?(_.merge(c,b),b.leaveAt&&i(function(){_.remove(a.table2.data,{id:b.id})},1e4)):b.leaveAt||a.table2.data.push(b)}),d.socket.on("report_mail_session:remove",function(b){_.remove(a.table2.data,{id:b.id})})})["catch"](function(a){console.log(a)})},a.initRoomStats=function(){return c.get({id:"dashboard"}).$promise.then(function(b){a.roomStatus=b,a.charts={interactions:{labels:[f.instant("APPLICATION_DASHBOARD_NEW"),f.instant("APPLICATION_DASHBOARD_OPEN"),f.instant("APPLICATION_DASHBOARD_PENDING"),f.instant("APPLICATION_DASHBOARD_CLOSED")],values:[a.roomStatus["new"],a.roomStatus.open,a.roomStatus.pending,a.roomStatus.closed],colours:["#44B6AE","#578EBE","#35AA47","#8775A7"]}},d.socket.on("dashboard:mail",function(b){a.roomStatus=b.roomStatus,a.charts.interactions.values=[a.roomStatus["new"],a.roomStatus.open,a.roomStatus.pending,a.roomStatus.closed]})})["catch"](function(a){console.error(a)})},a.initRoutingStats=function(){return h.get({id:"dashboard"}).$promise.then(function(b){a.routingStats=b})["catch"](function(a){console.error(a)})},a.initSocketListening=function(){d.socket.on("dashboard:mail",function(b){a.roomStatus=b.roomStatus,a.routingStats=b.routingStats,a.charts.interactions.values=[a.roomStatus["new"],a.roomStatus.open,a.roomStatus.pending,a.roomStatus.closed]})}}]),angular.module("xCallyShuttleApp").controller("DashboardOpenChannelCtrl",["$scope","Auth","OpenChannelRoom","socket","Agent","$translate","$q","ReportOpenChannelSession","$timeout",function(a,b,c,d,e,f,g,h,i){a.Auth=b,a.moment=moment,a.$on("$destroy",function(){d.socket.removeAllListeners("dashboard:openchannel")}),a.roomStatus={"new":0,open:0,pending:0,closed:0},a.routingStats={waiting:0,timeout:0},a.charts={interactions:{labels:[f.instant("APPLICATION_DASHBOARD_NEW"),f.instant("APPLICATION_DASHBOARD_OPEN"),f.instant("APPLICATION_DASHBOARD_PENDING"),f.instant("APPLICATION_DASHBOARD_CLOSED")],values:[a.roomStatus["new"],a.roomStatus.open,a.roomStatus.pending,a.roomStatus.closed],colours:["#44B6AE","#578EBE","#35AA47","#8775A7"]}};var j=function(a){var b=a?30*a+130:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",b+"px")};a.initAgent=function(){a.table1={enableGridMenu:!1,enableHorizontalScrollbar:0,enableVerticalScrollbar:0,paginationPageSizes:[10,25,50],paginationPageSize:10,columnDefs:[{name:"UserHasOpenchannelQueue.queue",headerCellFilter:"translate",displayName:"APPLICATION_QUEUE",cellClass:"text-center ui-grid-vcenter"}],data:[],onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){j(a.table1.paginationPageSize>a.table1.data.length?a.table1.data.length:a.table1.paginationPageSize,"table1")}),a.gridApi.pagination.on.paginationChanged(a,function(b,c){j(c>a.table1.data.length?a.table1.data.length:c,"table1")})}},a.table2={headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,columnDefs:[{name:"roomid",displayName:"APPLICATION_INTERACTION_ID",headerCellFilter:"translate"},{name:"accountname",displayName:"APPLICATION_ACCOUNT_NAME",headerCellFilter:"translate"},{name:"application",displayName:"APPLICATION_APPLICATION",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.application}} <span data-ng-if=\"row.entity.application == 'queue' && row.entity.queuename\">({{row.entity.queuename}})</span></div>"},{name:"status",displayName:"APPLICATION_STATUS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span data-ng-if="!row.entity.leaveAt">{{\'APPLICATION_QUEUESTATUS_WAITING\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.complete">{{\'APPLICATION_QUEUESTATUS_COMPLETE\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.timeout">{{\'APPLICATION_TIMEOUT\' | translate}}</span><span data-ng-if="!row.entity.leaveAt"> [<css-timer start-time="row.entity.updatedAt"></css-timer>]</span></div>',enableSorting:!1,enableColumnMenu:!1,enableFiltering:!1},{name:"membername",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.membername || ''}}</span></div>"}],data:[],gridMenuTitleFilter:function(a){var b=g.defer();return b.resolve(f.instant(a)),b.promise},onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){})}},e.get({id:b.getCurrentUser().id,controller:"openchannel",controller1:"queues"}).$promise.then(function(b){a.table1.data=b.rows})["finally"](function(){j(a.table1.paginationPageSize>a.table1.data.length?a.table1.data.length:a.table1.paginationPageSize,"table1"),d.socket.on("user_has_openchannel_queue:save",function(c){c.UserId!=b.getCurrentUser().id||_.find(a.table1.data,{id:c.OpenchannelQueueId})||a.table1.data.push({id:c.OpenchannelQueueId,UserHasOpenchannelQueue:c})}),d.socket.on("user_has_openchannel_queue:remove",function(c){c.UserId===b.getCurrentUser().id&&_.remove(a.table1.data,{id:c.OpenchannelQueueId})})})["catch"](function(a){console.error(a)}),h.get({controller:"waiting",controller2:"applications"}).$promise.then(function(b){a.table2.data=b.rows; -})["finally"](function(){d.socket.on("report_openchannel_session:save",function(b){var c=_.find(a.table2.data,{id:b.id});c?(_.merge(c,b),b.leaveAt&&i(function(){_.remove(a.table2.data,{id:b.id})},1e4)):b.leaveAt||a.table2.data.push(b)}),d.socket.on("report_openchannel_session:remove",function(b){_.remove(a.table2.data,{id:b.id})})})["catch"](function(a){console.log(a)})},a.initRoomStats=function(){return c.get({id:"dashboard"}).$promise.then(function(b){a.roomStatus=b,a.charts={interactions:{labels:[f.instant("APPLICATION_DASHBOARD_NEW"),f.instant("APPLICATION_DASHBOARD_OPEN"),f.instant("APPLICATION_DASHBOARD_PENDING"),f.instant("APPLICATION_DASHBOARD_CLOSED")],values:[a.roomStatus["new"],a.roomStatus.open,a.roomStatus.pending,a.roomStatus.closed],colours:["#44B6AE","#578EBE","#35AA47","#8775A7"]}},d.socket.on("dashboard:openchannel",function(b){a.roomStatus=b.roomStatus,a.charts.interactions.values=[a.roomStatus["new"],a.roomStatus.open,a.roomStatus.pending,a.roomStatus.closed]})})["catch"](function(a){console.error(a)})},a.initRoutingStats=function(){return h.get({id:"dashboard"}).$promise.then(function(b){a.routingStats=b})["catch"](function(a){console.error(a)})},a.initSocketListening=function(){d.socket.on("dashboard:openchannel",function(b){a.roomStatus=b.roomStatus,a.routingStats=b.routingStats,a.charts.interactions.values=[a.roomStatus["new"],a.roomStatus.open,a.roomStatus.pending,a.roomStatus.closed]})}}]),angular.module("xCallyShuttleApp").controller("DashboardSmsCtrl",["$scope","Auth","SmsRoom","socket","Agent","$translate","$q","ReportSmsSession","$timeout",function(a,b,c,d,e,f,g,h,i){a.Auth=b,a.moment=moment,a.$on("$destroy",function(){d.socket.removeAllListeners("dashboard:sms")}),a.roomStatus={"new":0,open:0,pending:0,closed:0},a.routingStats={waiting:0,timeout:0},a.charts={interactions:{labels:[f.instant("APPLICATION_DASHBOARD_NEW"),f.instant("APPLICATION_DASHBOARD_OPEN"),f.instant("APPLICATION_DASHBOARD_PENDING"),f.instant("APPLICATION_DASHBOARD_CLOSED")],values:[a.roomStatus["new"],a.roomStatus.open,a.roomStatus.pending,a.roomStatus.closed],colours:["#44B6AE","#578EBE","#35AA47","#8775A7"]}};var j=function(a){var b=a?30*a+130:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",b+"px")};a.initAgent=function(){a.table1={enableGridMenu:!1,enableHorizontalScrollbar:0,enableVerticalScrollbar:0,paginationPageSizes:[10,25,50],paginationPageSize:10,columnDefs:[{name:"UserHasSmsQueue.queue",headerCellFilter:"translate",displayName:"APPLICATION_QUEUE",cellClass:"text-center ui-grid-vcenter"}],data:[],onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){j(a.table1.paginationPageSize>a.table1.data.length?a.table1.data.length:a.table1.paginationPageSize,"table1")}),a.gridApi.pagination.on.paginationChanged(a,function(b,c){j(c>a.table1.data.length?a.table1.data.length:c,"table1")})}},a.table2={headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,columnDefs:[{name:"roomid",displayName:"APPLICATION_INTERACTION_ID",headerCellFilter:"translate"},{name:"accountname",displayName:"APPLICATION_ACCOUNT_NAME",headerCellFilter:"translate"},{name:"application",displayName:"APPLICATION_APPLICATION",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.application}} <span data-ng-if=\"row.entity.application == 'queue' && row.entity.queuename\">({{row.entity.queuename}})</span></div>"},{name:"status",displayName:"APPLICATION_STATUS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span data-ng-if="!row.entity.leaveAt">{{\'APPLICATION_QUEUESTATUS_WAITING\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.complete">{{\'APPLICATION_QUEUESTATUS_COMPLETE\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.timeout">{{\'APPLICATION_TIMEOUT\' | translate}}</span><span data-ng-if="!row.entity.leaveAt"> [<css-timer start-time="row.entity.updatedAt"></css-timer>]</span></div>',enableSorting:!1,enableColumnMenu:!1,enableFiltering:!1},{name:"membername",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.membername || ''}}</span></div>"}],data:[],gridMenuTitleFilter:function(a){var b=g.defer();return b.resolve(f.instant(a)),b.promise},onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){})}},e.get({id:b.getCurrentUser().id,controller:"sms",controller1:"queues"}).$promise.then(function(b){a.table1.data=b.rows})["finally"](function(){j(a.table1.paginationPageSize>a.table1.data.length?a.table1.data.length:a.table1.paginationPageSize,"table1"),d.socket.on("user_has_sms_queue:save",function(c){c.UserId!=b.getCurrentUser().id||_.find(a.table1.data,{id:c.SmsQueueId})||a.table1.data.push({id:c.SmsQueueId,UserHasSmsQueue:c})}),d.socket.on("user_has_sms_queue:remove",function(c){c.UserId===b.getCurrentUser().id&&_.remove(a.table1.data,{id:c.SmsQueueId})})})["catch"](function(a){console.error(a)}),h.get({controller:"waiting",controller2:"applications"}).$promise.then(function(b){a.table2.data=b.rows})["finally"](function(){d.socket.on("report_sms_session:save",function(b){var c=_.find(a.table2.data,{id:b.id});c?(_.merge(c,b),b.leaveAt&&i(function(){_.remove(a.table2.data,{id:b.id})},1e4)):b.leaveAt||a.table2.data.push(b)}),d.socket.on("report_sms_session:remove",function(b){_.remove(a.table2.data,{id:b.id})})})["catch"](function(a){console.log(a)})},a.initRoomStats=function(){return c.get({id:"dashboard"}).$promise.then(function(b){a.roomStatus=b,a.charts={interactions:{labels:[f.instant("APPLICATION_DASHBOARD_NEW"),f.instant("APPLICATION_DASHBOARD_OPEN"),f.instant("APPLICATION_DASHBOARD_PENDING"),f.instant("APPLICATION_DASHBOARD_CLOSED")],values:[a.roomStatus["new"],a.roomStatus.open,a.roomStatus.pending,a.roomStatus.closed],colours:["#44B6AE","#578EBE","#35AA47","#8775A7"]}},d.socket.on("dashboard:sms",function(b){a.roomStatus=b.roomStatus,a.charts.interactions.values=[a.roomStatus["new"],a.roomStatus.open,a.roomStatus.pending,a.roomStatus.closed]})})["catch"](function(a){console.error(a)})},a.initRoutingStats=function(){return h.get({id:"dashboard"}).$promise.then(function(b){a.routingStats=b})["catch"](function(a){console.error(a)})},a.initSocketListening=function(){d.socket.on("dashboard:sms",function(b){a.roomStatus=b.roomStatus,a.routingStats=b.routingStats,a.charts.interactions.values=[a.roomStatus["new"],a.roomStatus.open,a.roomStatus.pending,a.roomStatus.closed]})}}]),angular.module("xCallyShuttleApp").controller("DashboardVoiceCtrl",["$scope","$rootScope","$timeout","Auth","ReportQueue","ReportCall","Agent","Dashboard","socket",function(a,b,c,d,e,f,g,h,i){a.moment=moment,a.radioSwitch={size:"mini",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"success",onColor:"danger"};var j=function(a,b){var c=a?30*a+130:177;angular.element(document.getElementsByName(b)[0]).css("height",c+"px")};a.initUser=function(){var b;return a.user=d.getCurrentUser(),a.voice={},a.$on("$destroy",function(){b&&(b.terminate(),i.socket.removeAllListeners("voice:inbound"),i.socket.removeAllListeners("voice:outbound:global"))}),e.get({controller:"dashboard"}).$promise.then(function(b){return a.voice.queues=b,f.get({controller:"dashboard"}).$promise}).then(function(b){a.voice.outbound=b})["catch"](function(a){console.error(a)})["finally"](function(){i.socket.on("voice:inbound",function(b){(a.voice.queues[b.type]>0||b.amount>0)&&(a.voice.queues[b.type]+=b.amount)}),i.socket.on("voice:outbound:global",function(b){_.merge(a.voice.outbound,b)})})},a.initAgent=function(){return d.getCurrentUser().$promise.then(function(b){return a.agent=b,a.timerSwitch={isActive:!0,size:"mini",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"primary"},a.showTimers=!1,a.table1={enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,enableSorting:!0,showGridFooter:!0,paginationPageSizes:[10,25,50],paginationPageSize:10,columnDefs:[{name:"queue",headerCellFilter:"translate",displayName:"APPLICATION_QUEUE",cellClass:"text-center ui-grid-vcenter"},{name:"loggedAt",displayName:"logged At",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span am-time-ago="row.entity.loggedAt"></span></div>'}],data:[],onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){j(a.table1.paginationPageSize>a.table1.data.length?a.table1.data.length:a.table1.paginationPageSize,"table1")}),a.gridApi.pagination.on.paginationChanged(a,function(b,c){j(c>a.table1.data.length?a.table1.data.length:c,"table1")})}},a.table2={enableGridMenu:!1,enableHorizontalScrollbar:0,enableVerticalScrollbar:0,multiSelect:!1,paginationPageSizes:[10,25,50],paginationPageSize:10,columnDefs:[{name:"queue",displayName:"APPLICATION_QUEUE",headerCellFilter:"translate"},{name:"status",displayName:"APPLICATION_STATUS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span data-ng-if="!row.entity.queuecallerleaveAt && !row.entity.queuecallerexit">{{\'APPLICATION_QUEUESTATUS_WAITING\' | translate}}</span><span data-ng-if="row.entity.queuecallerleaveAt && !row.entity.queuecallerabandon && !row.entity.queuecallercomplete && !row.entity.queuecallerexit">{{\'APPLICATION_ACTIVE\' | translate}}</span><span data-ng-if="row.entity.queuecallerleaveAt && row.entity.queuecallerabandon">{{\'APPLICATION_QUEUESTATUS_ABANDON\' | translate}}</span><span data-ng-if="row.entity.queuecallerleaveAt && row.entity.queuecallercomplete">{{\'APPLICATION_QUEUESTATUS_COMPLETE\' | translate}}</span><span data-ng-if="row.entity.queuecallerexitreason"> {{row.entity.queuecallerexitreason}}</span><span data-ng-if="!row.entity.queuecallercomplete && !row.entity.queuecallerabandon && !row.entity.queuecallerexit && grid.appScope.showTimers"> <css-timer start-time="row.entity.updatedAt"></css-timer></div>',enableSorting:!1,enableColumnMenu:!1,enableFiltering:!1},{name:"caller",displayName:"APPLICATION_CALLER",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.calleridnum || ''}} {{row.entity.calleridname || ''}}</span></div>",enableSorting:!1,enableColumnMenu:!1,enableFiltering:!1},{name:"position",displayName:"APPLICATION_POSITION",headerCellFilter:"translate"},{name:"lastAssignedTo",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter"}],data:[],onRegisterApi:function(b){a.gridApi1=b,a.gridApi1.grid.registerDataChangeCallback(function(){j(a.gridApi1.core.getVisibleRows(a.gridApi1.grid).length,"table2")})}},a.table3={exporterCsvFilename:"abandoned_calls.csv",enableRowHeaderSelection:!0,paginationPageSizes:[10,25,50],paginationPageSize:10,enableFiltering:!0,enableSorting:!0,enableGridMenu:!1,flatEntityAccess:!0,showGridFooter:!0,fastWatch:!0,enableSelectAll:!1,enableHorizontalScrollbar:0,enableVerticalScrollbar:0,columnDefs:[{name:"queue",displayName:"APPLICATION_QUEUE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter"},{name:"caller",displayName:"APPLICATION_CALLER",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.calleridnum || ''}} {{row.entity.calleridname || ''}}</div>"},{name:"createdAt",displayName:"APPLICATION_DATE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.updatedAt | date:'yyyy-MM-dd HH:mm:ss'}}</div>"},{name:"lastAssignedTo",cellClass:"text-center ui-grid-vcenter",displayName:"APPLICATION_LAST_ASSIGNED_TO",headerCellFilter:"translate"},{name:"assigned",displayName:"APPLICATION_STATUS",headerCellFilter:"translate",cellTemplate:'<div class="centered-uigrid-td"><input data-ng-change="grid.appScope.updateItem(row.entity)", bs-switch ng-model="row.entity.assigned" type="checkbox" switch-active="{{ !row.entity.assigned || grid.appScope.agent.name === row.entity.lastAssignedTo }}" switch-on-text="{{ \'APPLICATION_ASSIGNED\' | translate }}" switch-off-text="{{ \'APPLICATION_FREE\' | translate }}" switch-on-color="{{ grid.appScope.radioSwitch.onColor }}" switch-off-color="{{ grid.appScope.radioSwitch.offColor }}" switch-animate="{{ grid.appScope.radioSwitch.animate }}" switch-size="{{ grid.appScope.radioSwitch.size }}" switch-label="{{ grid.appScope.radioSwitch.label }}" switch-icon="{{ grid.appScope.radioSwitch.icon }}" switch-radio-off="{{ grid.appScope.radioSwitch.radioOff }}" switch-label-width="{{ grid.appScope.radioSwitch.labelWidth }}" switch-handle-width="{{ grid.appScope.radioSwitch.handleWidth }}"></div>',enableFiltering:!1}],data:[],onRegisterApi:function(b){a.gridApi2=b,a.gridApi2.grid.registerDataChangeCallback(function(){j(a.gridApi2.core.getVisibleRows(a.gridApi2.grid).length,"table3")})}},g.get({id:a.agent.id,controller:"voice",controller1:"queues"}).$promise}).then(function(b){a.table1.data=_.map(b.rows,function(a){return{queue:a.UserHasVoiceQueue.queue,loggedAt:a.UserHasVoiceQueue.loggedAt,callstaken:a.UserHasVoiceQueue.callstaken,lastcall:a.UserHasVoiceQueue.lastcall}})}).then(function(){return j(a.table1.paginationPageSize>a.table1.data.length?a.table1.data.length:a.table1.paginationPageSize,"table1"),i.socket.on("user_has_voice_queue:remove",function(b){b.UserId===a.agent.id&&_.remove(a.table1.data,{queue:b.queue})}),i.socket.on("user_has_voice_queue:save",function(b){if(b.UserId===a.agent.id||b.membername===a.agent.name){var c=_.find(a.table1.data,{queue:b.queue});c?_.merge(c,b):!c&&b.logged&&a.table1.data.unshift({queue:b.queue,loggedAt:moment(),lastcall:null,callstaken:0})}}),e.get({id:"waiting",controller:"calls"}).$promise}).then(function(b){return a.table2.data=b.rows,e.get({controller:"abandoned",controller2:"all"}).$promise}).then(function(b){a.table3.data=b.rows,i.socket.on("report_queue:save",function(b){a.table2.data.push(b)}),i.socket.on("report_queue:update",function(b){var d=_.find(a.table2.data,{id:b.id});if(d&&(_.merge(d,b),(d.queuecallerabandon||d.queuecallercomplete||d.queuecallerexitreason||b.queuecallerleaveAt)&&c(function(){_.remove(a.table2.data,{id:b.id})},3e3)),b.queuecallerabandon){var e=_.find(a.table3.data,{id:b.id});e?_.merge(e,b):a.table3.data.unshift(b)}})})["catch"](function(a){console.error(a)})},a.updateItem=function(b){return e.update({id:b.id},{assigned:b.assigned,lastAssignedTo:b.assigned?a.agent.name:void 0}).$promise["catch"](function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.desk",{url:"/desk",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin"],redirectTo:"main.dashboard.voice"}}})}]),angular.module("xCallyShuttleApp").factory("DeskAccount",["$resource",function(a){return a("/api/desk/accounts/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("DeskListCtrl",["$scope","$http","$rootScope","xAlert","$translate","socket","Modal","stResource",function(a,b,c,d,e,f,g,h){a.conf={accountsByPage:{name:"10",value:10}},a.accountsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],a.accounts={checked:[]},a.check=function(b,c){c?a.accounts.checked=angular.copy(_.map(a.displayedDeskAccounts,"id")):a.accounts.checked=[]},a.getAccounts=function(b){return _.map(a.displayedDeskAccounts,function(a){var c={};return b.forEach(function(b){c[b]=a[b]}),c})},a.initList=function(b){f.unsyncUpdates("desk_account"),b.url="/api/desk/accounts",h.getPage(b).then(function(d){a.displayedDeskAccounts=d.rows,b.pagination.numberOfPages=d.total_pages,c.updateTableConfig(a.accountsByPage,a.displayedDeskAccounts.length),c.updateTableConfig(a.conf.accountsByPage,a.displayedDeskAccounts.length)}),f.socket.on("desk_account:save",function(){a.initList(b)}),f.socket.on("desk_account:remove",function(c){a.accounts.checked=_.without(a.accounts.checked,c.id),a.initList(b)})},a.deleteItem=g.confirm["delete"](function(a){b["delete"]("/api/desk/accounts/"+a).success(function(){d.show(e.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(a){d.error(a)})}),a.deleteItems=g.confirm["delete"](function(){b["delete"]("/api/desk/accounts",{params:{id:a.accounts.checked}}).success(function(){d.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){d.error(a)})}),a.checkAccount=function(a){b.get("/api/desk/accounts/"+a+"/check").then(function(){d.show(e.instant("MESSAGE_ACCOUNT_VERIFIED"),"success")})["catch"](function(){d.show(e.instant("MESSAGE_ACCOUNT_INVALID"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.desk.list",{url:"/list",templateUrl:"app/desk/list/list.html",controller:"DeskListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("DeskViewCtrl",["$scope","$http","$stateParams","$translate","$location","WizardHandler","socket","xAlert","Modal","desk_com",function(a,b,c,d,e,f,g,h,i,j){a.$stateParams=c,a.config={autoHideScrollbar:!1,theme:"dark",advanced:{updateOnContentResize:!0},setHeight:500,scrollInertia:0},a.initConfiguration=function(){a.formsConfiguration={},a.configuration={}},a.goNext=function(){f.wizard().next()},a.formValidation=function(a){return a},a.$on("$destroy",function(){g.unsyncUpdates("desk_configuration"),g.unsyncUpdates("desk_field")}),a.initView=function(){b.get("/api/desk/accounts/"+c.id).success(function(b){a.account=b}).error(function(a){h.error(a)})},a.updateItem=function(){b.put("/api/desk/accounts/"+c.id,a.account).success(function(){h.show(d.instant("MESSAGE_WELL_DONE")+".","success")}).error(function(){h.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG")+".","danger")})},a.getConfigurations=function(){b.get("/api/desk/configurations",{params:{AccountId:c.id}}).success(function(b){a.configurations=b,g.socket.on("desk_configuration:remove",function(b){_.remove(a.configurations,{id:b.id})})}).error(function(a){h.error(a)})},a.deleteConfiguration=i.confirm["delete"](function(a){b["delete"]("api/desk/configurations/"+a).success(function(){h.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(){h.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})}),a.createConfiguration=function(){a.configuration.AccountId=c.id,b.post("api/desk/configurations",a.configuration).success(function(a){e.path("desk/view/"+c.id+"/configurations/settings/"+a.id)}).error(function(){h.show("Something went wrong!","danger")})},a.fieldType=["string","variable"],a.descFieldType=["string","key_value"],a.getFields=function(){b.get("/api/desk/accounts/"+c.id+"/fields").success(function(b){a.accountFields=j.fields.concat(b)}).error(function(a){h.error(a)})},a.getConfiguration=function(){b.get("/api/desk/configurations/"+c.configurationId).success(function(b){a.configurationName=b.name,a.subjectConfig=b.Subject,a.descriptionConfig=b.Description,a.fieldConfig=b.Field,g.socket.on("desk_field:remove",function(b){_.remove(a.subjectConfig,{id:b.id}),_.remove(a.descriptionConfig,{id:b.id}),_.remove(a.fieldConfig,{id:b.id})})}).error(function(a){h.error(a)})},a.getVariables=function(){b.get("/api/variables").success(function(b){a.variables=b.rows}).error(function(a){h.error(a)})},a.removeItem=function(a){b["delete"]("api/desk/fields/"+a.id).success(function(){h.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(){h.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},a.addItemSubject=function(){var d={type:"string",content:""};b.post("/api/desk/configurations/"+c.configurationId+"/subject",d).success(function(b){a.subjectConfig.push(b)}).error(function(){h.show("Something went wrong!","danger")})},a.addItemDescription=function(){var d={type:"string",content:""};b.post("/api/desk/configurations/"+c.configurationId+"/description",d).success(function(b){a.descriptionConfig.push(b)}).error(function(){h.show("Something went wrong!","danger")})},a.addItemField=function(){var d={content:""};b.post("/api/desk/configurations/"+c.configurationId+"/field",d).success(function(b){a.fieldConfig.push(b)}).error(function(){h.show("Something went wrong!","danger")})},a.updateField=function(a){b.put("/api/desk/fields/"+a.id,a).success(function(){}).error(function(){h.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG")+".","danger")})},a.changeType=function(b){"variable"===b.type?b.content="":"string"===b.type&&(b.VariableId=null),a.updateField(b)},a.changeDescType=function(b){"key_value"===b.type?(b.content="","string"===b.keyType?b.VariableId=null:"variable"===b.keyType&&(b.keyContent="")):"string"===b.type&&(b.VariableId=null,b.key="",b.keyContent=""),a.updateField(b)},a.changeFieldType=function(b){if(b.content="",b.idField){var c=_.find(a.accountFields,"id",b.idField);c&&(b.customField=_.result(c,"custom",!0))}a.updateField(b)},a.getSystemFieldOptions=function(b){if(b){var c=_.find(a.accountFields,"id",b);return c?c.data.choices?c.data.choices:null:void 0}}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.desk.view",{url:"/view/:id",templateUrl:"app/desk/view/view.html",controller:"DeskViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.desk.view.account",{url:"/account",templateUrl:"app/desk/view/view.account.html"}).state("main.desk.view.configurations",{url:"/configurations",templateUrl:"app/desk/view/view.configurations.html"}).state("main.desk.view.configurations.settings",{url:"/settings/:configurationId",templateUrl:"app/desk/view/view.configurationSettings.html",controller:"DeskViewCtrl"}).state("main.desk.view.configuration",{url:"/configuration",templateUrl:"app/desk/view/view.configuration.html"})}]),angular.module("xCallyShuttleApp").controller("DeskWizardCtrl",["$scope","$http","$location","$translate","xAlert","WizardHandler",function(a,b,c,d,e,f){a.translate=d,a.initWizard=function(){a.$translate=d,a.forms={},a.item={}},a.next=function(){f.wizard().next()},a.exitValidation=function(a){return a},a.createItem=function(){console.log(a.item),b.post("api/desk/accounts",a.item).success(function(){e.show(d.instant("MESSAGE_WELL_DONE")+".","success"),c.path("/desk/list")}).error(function(){e.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG")+".","danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.desk.wizard",{url:"/wizard",templateUrl:"app/desk/wizard/wizard.html",controller:"DeskWizardCtrl"})}]),angular.module("xCallyShuttleApp").factory("FreshdeskAccount",["$resource",function(a){return a("/api/freshdesk/accounts/:id/:controller",{id:"@id"},{update:{method:"PUT"},fields:{params:{controller:"fields"},isArray:!0},check:{params:{controller:"check"}}})}]).factory("FreshdeskConfiguration",["$resource",function(a){return a("/api/freshdesk/accounts/:accountId/configurations/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]).factory("FreshdeskField",["$resource",function(a){return a("/api/freshdesk/accounts/:accountId/configurations/:configurationId/fields/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.freshdesk",{url:"/freshdesk",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin"],redirectTo:"main.dashboard.voice"}}})}]),angular.module("xCallyShuttleApp").controller("FreshdeskListCtrl",["$scope","FreshdeskAccount","gridOptions","xAlert","$translate",function(a,b,c,d,e){a.initView=function(){var d={exporterCsvFilename:"freshdesk_account.csv",columnDefs:[{name:"name",displayName:"APPLICATION_NAME"},{name:"username"},{name:"remoteUri",displayName:"APPLICATION_URI"},{name:"action",width:250,buttons:[{"class":"blue-hoki",href:"/freshdesk/view/{{row.entity.id}}/account",name:"profile"},{"class":"green-jungle",name:"check",onClick:"grid.appScope.checkAccount(row.entity.id)"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=c.gridOptions(b,d,a)},a.checkAccount=function(a){return b.get({id:a,controller:"check"}).$promise.then(function(){d.show(e.instant("MESSAGE_ACCOUNT_VERIFIED"),"success")})["catch"](function(){d.show(e.instant("MESSAGE_ACCOUNT_INVALID"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.freshdesk.list",{url:"/list",templateUrl:"app/freshdesk/list/list.html",controller:"FreshdeskListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.freshdesk.view.configurations",{url:"/configurations",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("FreshdeskViewConfigurationListCtrl",["$scope","$stateParams","$translate","gridOptions","FreshdeskConfiguration","$uibModal",function(a,b,c,d,e,f){a.initView=function(){var c={exporterCsvFilename:"freshdesk_configurations.csv",columnDefs:[{name:"name"},{name:"description"},{name:"action",width:125,buttons:[{"class":"blue-hoki",href:"/freshdesk/view/{{row.entity.AccountId}}/configurations/view/{{row.entity.id}}",name:"profile"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=d.gridOptions(e,c,a,{accountId:b.id})},a.createItem=function(){var b=f.open({animation:!0,templateUrl:"app/freshdesk/view/configuration/list/create.modal.html",controller:"FreshdeskCreateConfigurationCtrl"});b.result.then(function(){a.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("FreshdeskCreateConfigurationCtrl",["$scope","$translate","$uibModalInstance","FreshdeskConfiguration","xAlert","$stateParams","channel",function(a,b,c,d,e,f,g){a.form={},a.item={},a.channels=g,a.item.channel="voice",a.item.type="Queue",a.save=function(){return d.save({accountId:f.id},a.item).$promise.then(function(a){e.show(b.instant("MESSAGE_WELL_DONE"),"success"),c.close(a)})["catch"](function(a){e.error(a)})},a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.freshdesk.view.configurations.list",{url:"/list",templateUrl:"app/freshdesk/view/configuration/list/list.html",controller:"FreshdeskViewConfigurationListCtrl"})}]),angular.module("xCallyShuttleApp").controller("FreshdeskViewConfigurationViewCtrl",["$scope","$filter","$stateParams","$translate","socket","variable","xAlert","FreshdeskAccount","FreshdeskConfiguration","FreshdeskField","Variable","Tag",function(a,b,c,d,e,f,g,h,i,j,k,l){a.$on("$destroy",function(){e.unsyncUpdates("freshdesk_field")}),a.config={autoHideScrollbar:!1,theme:"dark",advanced:{updateOnContentResize:!0},setHeight:300,scrollInertia:0},a.fieldType=[{type:"string",title:"String"},{type:"variable",title:"Variable"},{type:"customVariable",title:"Custom Variable"}],a.descFieldType=[{type:"string",title:"String"},{type:"keyValue",title:"Key Value"}],a.groupVariableByGroup=function(a){switch(a.group){case"voice_queue":return"Voice: Queue";default:return"Other"}},a.initView=function(){a.configurationName="",a.subjectConfig=[],a.descriptionConfig=[],a.fieldConfig=[],a.selectedTags={tags:[]},a.variables=f},a.getConfiguration=function(){return i.get({accountId:c.id,id:c.configurationId}).$promise.then(function(b){a.configurationName=b.name,a.subjectConfig=b.Subject,a.descriptionConfig=b.Description,a.fieldConfig=b.Field,a.selectedTags={tags:_.map(b.Tags,function(a){return a.id})},e.socket.on("freshdesk_field:remove",function(b){_.remove(a.subjectConfig,{id:b.id}),_.remove(a.descriptionConfig,{id:b.id}),_.remove(a.fieldConfig,{id:b.id})})})["catch"](function(a){g.error(a)})},a.getCustomVariables=function(){return k.get().$promise.then(function(b){a.customVariables=b.rows})["catch"](function(a){g.error(a)})},a.getFields=function(){return h.fields({id:c.id}).$promise.then(function(c){a.accountFields=b("freshdesk")(c)})["catch"](function(a){g.error(a)})},a.addItem=function(b){var d={};switch(b){case"subject":case"description":d={type:"string",content:""};break;case"field":d={content:""}}return i.save({accountId:c.id,id:c.configurationId,controller:b},d).$promise.then(function(c){switch(b){case"subject":a.subjectConfig.push(c);break;case"description":a.descriptionConfig.push(c);break;case"field":a.fieldConfig.push(c)}})["catch"](function(a){g.error(a)})},a.changeFieldType=function(b){if(b.content="",b.variableName="",b.nameField="",b.VariableId=null,b.idField){var c=_.find(a.accountFields,"name",b.idField);c&&(b.customField=!c["default"])}a.updateField(b)},a.changeType=function(b){"variable"===b.type?(b.content="",b.variableName=""):"string"===b.type?(b.VariableId=null,b.variableName=""):"customVariable"===b.type&&(b.VariableId=null,b.content=""),a.updateField(b)},a.updateField=function(a){return j.update({accountId:c.id,configurationId:c.configurationId,id:a.id},a).$promise.then(function(){})["catch"](function(a){g.error(a)})},a.removeItem=function(a){return j["delete"]({accountId:c.id,configurationId:c.configurationId,id:a.id}).$promise.then(function(){g.show(d.instant("MESSAGE_WELL_DONE")+"!","success")})["catch"](function(a){g.error(a)})},a.changeDescType=function(b){"keyValue"===b.type?(b.content="","string"===b.keyType?(b.VariableId=null,b.variableName=""):"variable"===b.keyType?(b.keyContent="",b.VariableId=null):"customVariable"===b.keyType&&(b.keyContent="",b.variableName="")):"string"===b.type&&(b.VariableId=null,b.variableName="",b.key="",b.keyContent=""),a.updateField(b)},a.getSystemFieldOptions=function(b){if(b){var c=_.find(a.accountFields,"name",b);return c&&c.hasOwnProperty("choices")?_.isArray(c.choices)?c.choices.length?c.choices:[]:_.keys(c.choices).length?_.keys(c.choices):[]:!1}},a.getTags=function(){return l.get().$promise.then(function(b){a.tags=b.rows})["catch"](function(a){g.error(a)})},a.updateTags=function(){return i.update({accountId:c.id,id:c.configurationId,controller:"tags"},a.selectedTags.tags).$promise.then(function(){g.show(d.instant("MESSAGE_WELL_DONE")+".","success")})["catch"](function(a){g.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.freshdesk.view.configurations.view",{url:"/view/:configurationId",templateUrl:"app/freshdesk/view/configuration/view/view.html",controller:"FreshdeskViewConfigurationViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("FreshdeskViewCtrl",["$scope","$http","$stateParams","$translate","$location","$filter","WizardHandler","socket","xAlert","Modal","FreshdeskAccount",function(a,b,c,d,e,f,g,h,i,j,k){a.initView=function(){return k.get({id:c.id}).$promise.then(function(b){a.account=b})["catch"](function(a){i.error(a)})},a.updateItem=function(){return k.update({id:c.id},a.account).$promise.then(function(){i.show(d.instant("MESSAGE_WELL_DONE")+".","success")})["catch"](function(a){i.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.freshdesk.view",{url:"/view/:id",templateUrl:"app/freshdesk/view/view.html",controller:"FreshdeskViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.freshdesk.view.account",{url:"/account",templateUrl:"app/freshdesk/view/view.account.html"})}]),angular.module("xCallyShuttleApp").controller("FreshdeskWizardCtrl",["$scope","$http","$location","$translate","xAlert","WizardHandler","FreshdeskAccount",function(a,b,c,d,e,f,g){a.translate=d,a.initWizard=function(){a.$translate=d, -a.forms={},a.item={},a.item.serverUrl=c.protocol()+"://"+location.host},a.next=function(){f.wizard().next()},a.exitValidation=function(a){return a},a.createItem=function(){return g.save(a.item).$promise.then(function(){e.show(d.instant("MESSAGE_WELL_DONE")+".","success"),c.path("/freshdesk/list")})["catch"](function(a){e.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.freshdesk.wizard",{url:"/wizard",templateUrl:"app/freshdesk/wizard/wizard.html",controller:"FreshdeskWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.iframe",{url:"/iframe",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("IframeViewCtrl",["$scope","Auth","Integration","xAlert","$translate","$sce",function(a,b,c,d,e,f){a.Auth=b,a.initView=function(){return c.get({state:"iframe"}).$promise.then(function(c){a.iframe=_.first(c.rows),a.iframe.remoteUri?a.url=f.trustAsResourceUrl(a.iframe.remoteUri):b.isAgent()&&d.show(e.instant("MESSAGE_NO_IFRAME_CONFIGURED")+".","danger")})["catch"](function(a){d.error(a)})},a.updateItem=function(){return b.isAgent()?void 0:c.update({id:a.iframe.id},a.iframe).$promise.then(function(){d.show(e.instant("MESSAGE_WELL_DONE")+".","success")})["catch"](function(a){d.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.iframe.view",{url:"/view",templateUrl:"app/iframe/view/view.html",controller:"IframeViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]}])}]}})}]),angular.module("xCallyShuttleApp").factory("Integration",["$resource",function(a){return a("/api/integrations/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.integrations",{url:"/integrations",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:19}}})}]),angular.module("xCallyShuttleApp").controller("IntegrationListCtrl",["$scope","Modal","socket","FileUploader","Integration","xAlert",function(a,b,c,d,e,f){a.integrationsByPage=10;var g=a.uploader=new d({url:"api/integrations",autoUpload:!0,removeAfterUpload:!0});g.filters.push({name:"zipFilter",fn:function(a){var b="|"+a.type.slice(a.type.lastIndexOf("/")+1)+"|";return-1!=="|zip|".indexOf(b)}}),g.onSuccessItem=function(a,b,c,d){console.info("onSuccessItem",a,b,c,d),f.show(b.name,"success")},g.onErrorItem=function(a,b,c,d){console.info("onErrorItem",a,b,c,d),b.errors.forEach(function(a){f.error(err)})},a.deleteItem=b.confirm["delete"](function(a){e["delete"]({id:a},function(){f.show("Integration Removed","success")},function(a){f.error(a)})}),a.initList=function(){a.integrations=e.query({},function(a){c.syncUpdates("integration",a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.integrations.list",{url:"/list",templateUrl:"app/integration/list/list.html",controller:"IntegrationListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/plugins/bootstrap-fileinput/bootstrap-fileinput.js"]})}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.jscripty",{url:"/jscripty",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").factory("JscriptyProject",["$resource",function(a){return a("/api/jscripty/projects/:id/:controller/:action/:action2",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("JscriptyProjectListCtrl",["$scope","$uibModal","JscriptyProject","gridOptions","Auth",function(a,b,c,d,e){a.Auth=e,a.initView=function(){var b={exporterCsvFilename:"jscriptyProjects.csv",columnDefs:[{name:"name"},{name:"description"},{name:"action",width:300,buttons:[{"class":"blue-hoki",icon:"icon-settings",href:"/jscripty/projects/view/{{row.entity.id}}",hide:e.isAgent()},{"class":" green-turquoise",icon:"fa fa-play",onClick:"grid.appScope.openJscriptyTab(row.entity)"},{"class":"purple",icon:"icon-book-open",href:"/jscripty/projects/report/{{row.entity.id}}/sessions",hide:e.isAgent()},{"class":"red-sunglo",icon:"fa fa-trash",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)",hide:e.isAgent()}]}]};a.gridOptions=d.gridOptions(c,b,a)},a.createItem=function(){var c=b.open({animation:!0,templateUrl:"app/jscripty/project/list/list.create.modal.html",controller:"JscriptyProjectListCreateCtrl"});c.result.then(function(b){console.log(b),a.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("JscriptyProjectListCreateCtrl",["$scope","$translate","$uibModalInstance","JscriptyProject","xAlert",function(a,b,c,d,e){a.form={},a.item={},a.save=function(){return d.save(a.item).$promise.then(function(a){e.show(b.instant("MESSAGE_WELL_DONE"),"success"),c.close(a)})["catch"](function(a){console.log(a),e.error(a)})},a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.jscripty.projects.list",{url:"/list",templateUrl:"app/jscripty/project/list/list.html",controller:"JscriptyProjectListCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.jscripty.projects",{url:"/projects",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("JscriptyProjectReportCtrl",["$scope","uiGridConstants","$http","$state","$stateParams","socket","Auth","Modal","xAlert","$translate","$rootScope","gridOptions","JscriptyProject","$location",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n){a.projectStats={started:0,incomplete:0,completed:0},a.projectId=e.id,a.initView=function(){m.get({id:e.id}).$promise.then(function(b){a.project=b})["catch"](function(a){i.error(a)}),m.get({id:e.id,controller:"sessions"}).$promise.then(function(b){var c=_.groupBy(b.rows,"status");a.projectStats.started=c.started?c.started.length:0,a.projectStats.completed=c.completed?c.completed.length:0,a.projectStats.incomplete=c.incomplete?c.incomplete.length:0})["catch"](function(a){i.error(a)})},a.pdf=function(a,b){var c=[];if(a){var d=html2canvas(document.getElementById(a)),e=d.parse(),f=d.render(e),g=f.toDataURL("image/png");c.push({image:g,width:500,style:"img"})}b.length&&_.forEach(b,function(a){var b=html2canvas(document.getElementById(a.question_id)),d=b.parse(),e=b.render(d),f=e.toDataURL("image/png");c.push({image:f,width:500,style:"img"})});var h={content:c};pdfMake.createPdf(h).download("Project_summary.pdf")},a.getProjectSessions=function(){var c={exporterCsvFilename:"jscriptyProjects.csv",columnDefs:[{name:"session_id",displayName:"APPLICATION_SESSIONID"},{name:"queue",displayName:"APPLICATION_QUEUE"},{name:"membername",displayName:"APPLICATION_AGENT"},{name:"calleridnum",displayName:"APPLICATION_CALLERIDNUM"},{name:"createdAt",displayName:"APPLICATION_STARTEDAT",filterHeaderTemplate:'<div class="ui-grid-filter-container row"><div ng-repeat="colFilter in col.filters" class="col-md-6 col-md-offset-0 col-sm-5 col-sm-offset-0 col-xs-5 col-xs-offset-0"><div custom-grid-date-filter-header></div></div></div>',filters:[{name:"From",condition:b.filter.GREATER_THAN_OR_EQUAL},{name:"To",condition:b.filter.LESS_THAN_OR_EQUAL}]},{name:"completedAt",displayName:"APPLICATION_COMPLETEDAT",filterHeaderTemplate:'<div class="ui-grid-filter-container row"><div ng-repeat="colFilter in col.filters" class="col-md-6 col-md-offset-0 col-sm-5 col-sm-offset-0 col-xs-5 col-xs-offset-0"><div custom-grid-date-filter-header></div></div></div>',filters:[{name:"From",condition:b.filter.GREATER_THAN_OR_EQUAL},{name:"To",condition:b.filter.LESS_THAN_OR_EQUAL}]},{name:"status",displayName:"APPLICATION_STATUS"},{name:"last_question_id",displayName:"APPLICATION_LASTQUESTIONID"},{name:"action",width:100,buttons:[{"class":"blue-hoki",href:"/jscripty/projects/report/{{row.entity.projectId}}/session/{{row.entity.session_id}}",name:"Detail"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteSession(row.entity.session_id)"}]}]};a.gridOptions=l.gridOptions(m,c,a,{id:e.id,controller:"sessions"})},a.deleteSession=function(b){m["delete"]({id:e.id,controller:"sessions",action:b}).$promise.then(function(b){a.gridOptions.getPage(),a.initView(),i.show(j.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){i.error(a)})},a.getSessionDetails=function(){m.get({id:e.id,controller:"sessions",action:e.sessionId}).$promise.then(function(b){a.session=b,a.sessionQuestions=b.ReportJscriptyQuestions})["catch"](function(a){i.error(a)})},a.getQuestionSummary=function(){var b={exporterCsvFilename:"jscriptyProjects.csv",columnDefs:[{name:"question_id",displayName:"APPLICATION_QUESTIONID"},{name:"question_type",displayName:"APPLICATION_QUESTIONTYPE"},{name:"question_label",displayName:"APPLICATION_QUESTIONLABEL"},{name:"question_text",displayName:"APPLICATION_QUESTION"},{name:"count",displayName:"APPLICATION_COUNT",enableFiltering:!1},{name:"action",width:100,buttons:[{"class":"blue-hoki",href:"/jscripty/projects/report/"+e.id+"/detail/{{row.entity.question_id}}",name:"Detail"}]}]};a.gridOptions=l.gridOptions(m,b,a,{id:e.id,controller:"questions",action:"summary"})},a.getQuestionInputs=function(){var b={exporterCsvFilename:"jscriptyProjects.csv",columnDefs:[{name:"session_id",displayName:"APPLICATION_SESSIONID"},{name:"question_id",displayName:"APPLICATION_QUESTIONID",enableFiltering:!1},{name:"question_label",displayName:"APPLICATION_QUESTIONLABEL",enableFiltering:!1},{name:"question_text",displayName:"APPLICATION_QUESTION",enableFiltering:!1},{name:"input_label",displayName:"APPLICATION_INPUTLABEL",enableFiltering:!1},{name:"input_value",cellTemplate:'<div uib-tooltip="{{row.entity.input_value}}">{{row.entity.input_value}}</div>',displayName:"APPLICATION_INPUTVALUE",enableFiltering:!1}]};a.gridOptions=l.gridOptions(m,b,a,{id:e.id,controller:"inputs"})},a.getProjectDetail=function(){a.projectDetail=[],m.query({id:e.id,controller:"questions",action:"detail"}).$promise.then(function(b){console.log(e.questionId),e.questionId?a.projectDetail.push(_.find(b,function(a){return a.question_id==parseInt(e.questionId)})):a.projectDetail=b,console.log(a.projectDetail)})["catch"](function(a){i.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.jscripty.projects.report",{url:"/report/:id",templateUrl:"app/jscripty/project/report/report.html",controller:"JscriptyProjectReportCtrl"}).state("main.jscripty.projects.report.sessions",{url:"/sessions",templateUrl:"app/jscripty/project/report/report.sessions.html"}).state("main.jscripty.projects.report.summary",{url:"/summary",templateUrl:"app/jscripty/project/report/report.summary.html"}).state("main.jscripty.projects.report.inputs",{url:"/inputs",templateUrl:"app/jscripty/project/report/report.inputs.html"}).state("main.jscripty.projects.report.detail",{url:"/detail",templateUrl:"app/jscripty/project/report/report.detail.html"}).state("main.jscripty.projects.report.questionDetail",{url:"/detail/:questionId",controller:"JscriptyProjectReportCtrl",templateUrl:"app/jscripty/project/report/report.detail.html"}).state("main.jscripty.projects.report.sessionDetail",{url:"/session/:sessionId",controller:"JscriptyProjectReportCtrl",templateUrl:"app/jscripty/project/report/report.session.detail.html"})}]),angular.module("xCallyShuttleApp").controller("JscriptyProjectViewCtrl",["$scope","$http","$state","$stateParams","socket","Auth","Modal","xAlert","$translate","$rootScope",function(a,b,c,d,e,f,g,h,i,j){a.jscriptyProject={},a.getProject=function(){b.get("/api/jscripty/projects/"+d.id).success(function(b){a.jscriptyProject=b,angular.element(document).ready(function(){window.onerror=function(a,b,c){try{if(null!=a&&-1!=a.indexOf("Script error."));else{var d=new Image;d.src="assets/plugins/mxgraph/images/1x1.png?msg="+encodeURIComponent(a)+"&url="+encodeURIComponent(b)+"&lnum="+encodeURIComponent(c)}}catch(e){}},b.token=f.getToken();var a=new EditorUi(new Editor);a.openString(b.draft,b.name,b),a.editor.graphChangeListener=function(a,b){var c=b.properties.rtChange||!1;c||(this.modified=!0)}}),e.syncUpdates("jscripty_project",[b],function(a,c,d){c.id===b.id})})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.jscripty.projects.view",{url:"/view/:id",templateUrl:"app/jscripty/project/view/view.html",controller:"JscriptyProjectViewCtrl",authenticate:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",serie:!0,cache:!1,files:["assets/plugins/mxgraph/css/common.css","assets/plugins/mxgraph/css/explorer.css","assets/plugins/mxgraph/styles/grapheditor.css","assets/plugins/mxgraph/styles/custom.css","assets/plugins/jscripty/js/custom.js","assets/plugins/mxgraph/js/mxClient.js","assets/plugins/jscripty/js/Editor.js","assets/plugins/jscripty/js/Graph.js","assets/plugins/jscripty/js/EditorUi.js","assets/plugins/jscripty/js/Actions.js","assets/plugins/jscripty/js/Menus.js","assets/plugins/jscripty/js/Sidebar.js","assets/plugins/jscripty/js/Toolbar.js","assets/plugins/jscripty/js/Dialogs.js"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("LandingCtrl",["$scope","$location","$window","$timeout","Auth","Setting","YourDashboard",function(a,b,c,d,e,f,g){function h(b,c){var d,f,g=b.length;for(d=0;g>d;d++)if(_.includes(c,b[d].id))if(b[d].SubModules&&b[d].SubModules.length){if(f=h(b[d].SubModules,c))return f}else switch(b[d].id){case 2:var i={};i[e.getRole()]=!0;var j=_.find(a.tempDashboards,i);if(j)return f="/tools/yourdashboards/show/"+j.id,delete a.tempDashboards,f;break;default:return b[d].path}}function i(c){c||(a.message="MESSAGE_NO_AVAILABLE_MODULES"),d(function(){b.path(c)},500)}a.initLanding=function(){a.year=moment().year();var c;return f.get({controller:"info"}).$promise.then(function(b){return a.info=b,f.get({id:1}).$promise.then(function(a){return a})["catch"](function(){return null})}).then(function(d){var f,j=e.getCurrentUser().$promise;return j?j.then(function(e){if(f=e,c&&"admin"===e.role&&d.firstLogin)return void b.path("/adminreset");switch(f.role){case"user":if(_.includes(_.map(e.Modules,"id"),2))return g.get().$promise.then(function(b){a.tempDashboards=b.rows,i(h(f.Modules,_.map(e.Modules,"id")))})["catch"](function(){_.remove(f.Modules,{id:2}),i(h(f.Modules,_.map(e.Modules,"id")))});i(h(f.Modules,_.map(e.Modules,"id")));break;case"admin":case"agent":i("/dashboard/voice")}})["catch"](function(a){console.error(a),b.path("/login")}):void b.path("/login")})["catch"](function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("landing",{url:"/landing",templateUrl:"app/landing/landing.html",controller:"LandingCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/error.css","assets/css/login.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("LoginCtrl",["$scope","Auth","$location","$window","$rootScope","Setting","xAlert","$stateParams",function(a,b,c,d,e,f,g,h){a.year=moment().year(),a.recovered=h.reset,a.userLogin={},a.userSignUp={},a.loginSubmitted=!1,a.signupSubmitted=!1,a.errorLogin=!1,a.errorSignup=!1,a.errorLog="",a.forgotPassword=!1,a.showRecoverMessage=!1,a.flagLogin1=!1,a.getInfo=function(){return f.get({controller:"info"}).$promise.then(function(b){a.info=b})["catch"](function(a){g.error(a)})},a.toggleLogin=function(){a.flagLogin1=!a.flagLogin1},a.toggleForgotPassword=function(b){a.showRecoverMessage=!1,a.userLogin.email="",a.forgotPassword=b},e.bodyLayout="login",a.$on("$viewContentLoaded",function(){Metronic.init(),Layout.init()}),a.recover=function(){b.recover({email:a.userLogin.email}).then(function(){a.showRecoverMessage=!0})["catch"](function(b){a.showRecoverMessage=!1,g.error(b)})},a.login=function(d){a.loginSubmitted=!0,d.$valid?b.login({name:a.userLogin.name,password:a.userLogin.password,remember:a.userLogin.remember}).then(function(){c.path("/landing")})["catch"](function(b){a.errorLog=b.message||"error",a.errorLogin=!0}):a.errorLogin=!0},a.signup=function(c){a.signupSubmitted=!0,c.$valid?b.createUser({email:a.userSignUp.email,fullname:a.userSignUp.fullname,name:a.userSignUp.name,password:a.userSignUp.password,role:a.userSignUp.role,online:!0})["catch"](function(b){a.errorLog=b.message||"error",a.errorSignup=!0}):a.errorSignup=!0},a.loginOauth=function(a){d.location.href="/auth/"+a}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("login",{url:"/login",templateUrl:"app/login/login.html",params:{reset:null},controller:"LoginCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/login.css"]}])}]}})}]),angular.module("xCallyShuttleApp").factory("Action",["$resource",function(a){return a("/api/actions/:name/:controller",{name:"@name"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("Ami",["$resource",function(a){return a("/api/ami/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("ChooseContactModalCtrl",["$scope","$uibModalInstance","data","xAlert","$translate","Contact",function(a,b,c,d,e,f){a.open=function(a){b.close(a)},a.getContacts=function(){return f.search({controller:"listcontact"},c).$promise.then(function(b){a.contacts=b.rows})["catch"](function(a){d.error(a)})},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("CloseEditedTabModalCtrl",["$scope","$uibModalInstance",function(a,b){a.close=function(){b.close()},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("CloseEditedTabModalJscriptyCtrl",["$scope","$uibModalInstance","project","JscriptyProject","xAlert",function(a,b,c,d,e){a.init=function(){a.project=c},a.close=function(){d.update({id:a.project.projectId,controller:"sessions",action:a.project.sessionId},{status:"incomplete",completedAt:Date(),last_question_id:a.project.lastQuestionId}).$promise.then(function(a){e.show("Project Ended","success")}),b.close()},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("ContactManagerSetDisposition",["$scope","$uibModalInstance","VoiceDisposition",function(a,b,c){a.initDisposition=function(){return c.get().$promise.then(function(b){a.dispositions=b.rows})["catch"](function(a){console.error(a)})},a.item={},a.ok=function(){b.close(a.item)},a.cancel=function(){b.dismiss()}}]),angular.module("xCallyShuttleApp").controller("customGridDateFilterModalCtrl",["$scope","$rootScope","$log","$uibModalInstance","term","hasTime",function(a,b,c,d,e,f){if(a.hasTime=f,a.dateTime={},e)if(f){var g=e.split(" ");a.dateTime.filterDate=moment(g[0]),a.dateTime.time=e[1]?moment(g[1],"HH:mm"):moment()}else a.dateTime.filterDate=moment(e);else f&&(a.dateTime.time=moment());a.setFilterDate=function(b){d.close({date:moment(b).format("YYYY-MM-DD").toString(),time:f?a.dateTime.time?moment(a.dateTime.time).format("HH:mm").toString():moment().format("HH:mm").toString():null})},a.cancelDateFilter=function(){d.dismiss()}}]),angular.module("xCallyShuttleApp").controller("customGridTagsModalCtrl",["$scope","$rootScope","$log","$uibModalInstance","term","Tag","xAlert",function(a,b,c,d,e,f,g){a.initModal=function(){return a.item={},f.get().$promise.then(function(b){a.tags=_.map(b.rows,"name"),a.item.myTags=e})["catch"](function(a){console.log("error retrieving tags"),g.error(a),d.dismiss()})},a.setFilterTags=function(){d.close(a.item.myTags)},a.cancelTagsFilter=function(){d.dismiss()}}]),angular.module("xCallyShuttleApp").factory("templateVariable",["$translate",function(a){return[{id:"voice",label:a.instant("APPLICATION_VOICE"),title:a.instant("APPLICATION_VOICE"),groups:[{label:a.instant("APPLICATION_QUEUE"),values:[{value:"{{uniqueid}}",label:a.instant("APPLICATION_UNIQUEID"),description:a.instant("APPLICATION_UNIQUEID")},{value:"{{calleridnum}}",label:a.instant("APPLICATION_CALLERIDNUM"),description:a.instant("APPLICATION_CALLERIDNUM")},{value:"{{calleridname}}",label:a.instant("APPLICATION_CALLERIDNAME"),description:a.instant("APPLICATION_CALLERIDNAME")},{value:"{{queue}}",label:a.instant("APPLICATION_QUEUE"),description:a.instant("APPLICATION_QUEUE")},{value:"{{interface}}",label:a.instant("APPLICATION_INTERFACE"),description:a.instant("APPLICATION_INTERFACE")},{value:"{{membername}}",label:a.instant("APPLICATION_MEMBERNAME"),description:a.instant("APPLICATION_MEMBERNAME")},{value:"{{holdtime}}",label:a.instant("APPLICATION_HOLDTIME"),description:a.instant("APPLICATION_HOLDTIME")},{value:"{{talktime}}",label:a.instant("APPLICATION_TALKTIME"),description:a.instant("APPLICATION_TALKTIME")},{value:"{{connectedlinenum}}",label:a.instant("APPLICATION_CONNECTEDLINENUM"),description:a.instant("APPLICATION_CONNECTEDLINENUM")},{value:"{{connectedlinename}}",label:a.instant("APPLICATION_CONNECTEDLINENAME"),description:a.instant("APPLICATION_CONNECTEDLINENAME")},{value:"{{agentconnectAt}}",label:a.instant("APPLICATION_CONNECTED_AT"),description:a.instant("APPLICATION_CONNECTED_AT")},{value:"{{agentcalledAt}}",label:a.instant("APPLICATION_CALLED_AT"),description:a.instant("APPLICATION_CALLED_AT")},{value:"{{agentcompleteAt}}",label:a.instant("APPLICATION_COMPLETED_AT"),description:a.instant("APPLICATION_AGENT_CALLED_AT")},{value:"{{reason}}",label:a.instant("APPLICATION_REASON"),description:a.instant("APPLICATION_REASON")},{value:"{{lastevent}}",label:a.instant("APPLICATION_LAST_EVENT"),description:a.instant("APPLICATION_LAST_EVENT")},{value:"{{channel}}",label:a.instant("APPLICATION_CHANNEL"),description:a.instant("APPLICATION_CHANNEL")}]}]},{id:"chat",label:a.instant("APPLICATION_CHAT"),title:a.instant("APPLICATION_CHAT"),groups:[{label:a.instant("APPLICATION_VARIABLES"),values:[{value:"{{username}}",label:a.instant("APPLICATION_USERNAME"),description:a.instant("APPLICATION_USERNAME")},{value:"{{email}}",label:a.instant("APPLICATION_MAIL"),description:a.instant("APPLICATION_MAIL")},{value:"{{text}}",label:a.instant("APPLICATION_TEXT"),description:a.instant("APPLICATION_TEXT")},{value:"{{chatWebsite}}",label:a.instant("APPLICATION_WEBSITE"),description:a.instant("APPLICATION_WEBSITE")}]}]},{id:"mail",label:a.instant("APPLICATION_MAIL"),title:a.instant("APPLICATION_MAIL"),groups:[{label:a.instant("APPLICATION_INTERACTION"),values:[{value:"{{interactionId}}",label:a.instant("APPLICATION_INTERACTION_ID"),description:a.instant("APPLICATION_INTERACTION_ID")},{value:"{{subject}}",label:a.instant("APPLICATION_SUBJECT"),description:a.instant("APPLICATION_SUBJECT")},{value:"{{{body}}}",label:a.instant("APPLICATION_MESSAGE"),description:a.instant("APPLICATION_MESSAGE")},{value:"{{accountName}}",label:a.instant("APPLICATION_ACCOUNT"),description:a.instant("APPLICATION_ACCOUNT")},{value:"{{from}}",label:"From",description:"From"},{value:"{{to}}",label:"To",description:"To"},{value:"{{cc}}",label:"Cc",description:"Cc"},{value:"{{agentName}}",label:a.instant("APPLICATION_AGENT_NAME"),description:a.instant("APPLICATION_AGENT_NAME")},{value:"{{agentEmail}}",label:a.instant("APPLICATION_AGENT_EMAIL"),description:a.instant("APPLICATION_AGENT_EMAIL")},{value:"{{createdAt}}",label:a.instant("APPLICATION_CREATED_AT"),description:a.instant("APPLICATION_CREATED_AT")}]}]},{id:"sms",label:a.instant("APPLICATION_SMS"),title:a.instant("APPLICATION_SMS"),groups:[{label:a.instant("APPLICATION_INTERACTION"),values:[{value:"{{SmsRoomId}}",label:a.instant("APPLICATION_INTERACTION_ID"),description:a.instant("APPLICATION_INTERACTION_ID")},{value:"{{{body}}}",label:a.instant("APPLICATION_MESSAGE"),description:a.instant("APPLICATION_MESSAGE")},{value:"{{from}}",label:"From",description:"From"},{value:"{{to}}",label:"To",description:"To"},{value:"{{createdAt}}",label:a.instant("APPLICATION_CREATED_AT"),description:a.instant("APPLICATION_CREATED_AT")}]}]},{id:"openchannel",label:a.instant("APPLICATION_OPENCHANNEL"),title:a.instant("APPLICATION_OPENCHANNEL"),groups:[{label:a.instant("APPLICATION_INTERACTION"),values:[{value:"{{OpenchannelRoomId}}",label:a.instant("APPLICATION_INTERACTION_ID"),description:a.instant("APPLICATION_INTERACTION_ID")},{value:"{{{body}}}",label:a.instant("APPLICATION_MESSAGE"),description:a.instant("APPLICATION_MESSAGE")},{value:"{{from}}",label:"From",description:"From"},{value:"{{to}}",label:"To",description:"To"},{value:"{{createdAt}}",label:a.instant("APPLICATION_CREATED_AT"),description:a.instant("APPLICATION_CREATED_AT")}]}]},{id:"fax",label:a.instant("APPLICATION_FAX"),title:a.instant("APPLICATION_FAX"),groups:[{label:a.instant("APPLICATION_INTERACTION"),values:[{value:"{{FaxRoomId}}",label:a.instant("APPLICATION_INTERACTION_ID"),description:a.instant("APPLICATION_INTERACTION_ID")},{value:"{{uniqueid}}",label:a.instant("APPLICATION_UNIQUEID"),description:a.instant("APPLICATION_UNIQUEID")},{value:"{{calleridnum}}",label:a.instant("APPLICATION_CALLERIDNUM"),description:a.instant("APPLICATION_CALLERIDNUM")},{value:"{{calleridname}}",label:a.instant("APPLICATION_CALLERIDNAME"),description:a.instant("APPLICATION_CALLERIDNAME")},{value:"{{channel}}",label:a.instant("APPLICATION_CHANNEL"),description:a.instant("APPLICATION_CHANNEL")},{value:"{{from}}",label:"From",description:"From"},{value:"{{to}}",label:"To",description:"To"},{value:"{{accountName}}",label:a.instant("APPLICATION_ACCOUNT"),description:a.instant("APPLICATION_ACCOUNT")}]}]}]}]),angular.module("xCallyShuttleApp").controller("gridDatePickerFilterCtrl",["$scope","$timeout","$uibModal","uiGridConstants",function(a,b,c,d){b(function(){a.col.colDef.name;a.openDatePicker=function(b){var d=c.open({templateUrl:"app/main/customDateFilter.modal.html",controller:"customGridDateFilterModalCtrl",size:"md",windowClass:"custom-date-filter-modal",resolve:{term:[function(){return b.term||null}],hasTime:b.hasTime||!1}});d.result.then(function(c){a.colFilter.listTerm=[],a.colFilter.term=c.date,b.hasTime&&(a.colFilter.term+=" "+c.time)})}})}]),angular.module("xCallyShuttleApp").factory("gridOptions",["Modal","xAlert","$translate","$interval","$q","usSpinnerService",function(a,b,c,d,e,f){return{gridOptions:function(d,g,h,i,j,k,l){function m(a,b){a.filter&&a.filter.term&&b&&(o[a.name]=a.filter.term),a.filters&&(a.filters.length>1?a.filters.forEach(function(b){b.term?64===b.condition?o[a.name+"_uiFrom"]=b.term:256===b.condition&&(o[a.name+"_uiTo"]=b.term):64===b.condition?delete o[a.name+"_uiFrom"]:256===b.condition&&delete o[a.name+"_uiTo"]}):a.filters.length&&a.filters[0].term?o[a.name]=a.filters[0].term:delete o[a.name])}h.id=[];var n=k?"gridOptions"+k:"gridOptions",o={offset:0,limit:10},p={offset:0,limit:10};g.draggable&&(g.rowTemplate='<div grid="grid" class="ui-grid-draggable-row" draggable="true"><div ng-repeat="(colRenderIndex, col) in colContainer.renderedColumns track by col.colDef.name" class="ui-grid-cell" ng-class="{ \'ui-grid-row-header-cell\': col.isRowHeader, \'custom\': true }" ui-grid-cell></div></div>',g.useExternalPagination=!1,g.enablePaginationControls=!1,g.showGridFooter=!1);var q=function(a){var b=a&&a>h[n].paginationPageSize?h[n].paginationPageSize:a,c=b?30*b+120:177,d=angular.element(document.getElementsByName(n)).length?angular.element(document.getElementsByName(n)[0]):angular.element(document.getElementsByClassName("ui-grid")[0]);d.css("height",c+"px")},r=function(a,b){return h[n].enablePaginationControls||(delete o.offset,delete o.limit),f.spin("spinner-grid"),i=a||i,d=b||d,d.get(i?_.merge(o,i):o).$promise.then(function(a){h[n].totalItems=a.count,h[n].data=a.rows,q(a.rows.length),l&&l()})["catch"](function(a){console.error(a)})["finally"](function(){f.stop("spinner-grid")})};return h.deleteItem=a.confirm["delete"](function(a){var e=i?angular.copy(i):{};return _.merge(e,{id:a}),d.remove(e).$promise.then(function(){r(),b.show(c.instant("MESSAGE_WELL_DONE")+"!","success"),h.gridApi.selection.clearSelectedRows(),h.id=[]})["catch"](function(a){b.error(a)})}),h.deleteItems=a.confirm["delete"](function(){var a=i?angular.copy(i):{};return _.merge(a,{ids:h.id}),d["delete"](a).$promise.then(function(){r(),b.show(c.instant("MESSAGE_WELL_DONE")+"!","success"),h.gridApi.selection.clearSelectedRows(),h.id=[]})["catch"](function(a){b.error(a)})}),g.columnDefs.forEach(function(a){m(a,!0),a.hasOwnProperty("displayName")||(a.displayName="APPLICATION_"+a.name.toUpperCase()),a.headerCellFilter="translate",a.hasOwnProperty("buttons")&&(a.displayName="",a.cellClass="ui-grid-vcenter",a.enableSorting=!1,a.enableFiltering=!1,a.enableColumnMenu=!1,a.cellTemplate="<div>",a.buttons.forEach(function(b){if(b.directive)a.cellTemplate+=b.directive;else{if(a.cellTemplate+="<a",a.cellTemplate+=b.hide?' data-ng-hide="'+b.hide+'" ':" ",a.cellTemplate+=b["class"]?' class="btn btn-xs '+b["class"]+'" ':" ",a.cellTemplate+=b.href?' data-ng-href="'+b.href+'" ':" ",a.cellTemplate+=b.uisref?' ui-sref="'+b.uisref+'" ':" ",a.cellTemplate+=b.onClick?' data-ng-click="'+b.onClick+'" ':" ",a.cellTemplate+=b.title?' title="'+b.title+'"':"",a.cellTemplate+=">",a.cellTemplate+=b.icon?'<i class="'+b.icon+'"></i>':"",b.name)switch(b.name){case"delete":a.cellTemplate+='<i class="icon-trash" title="'+b.name+'"></i>';break;case"profile":case"settings":case"detail":case"embedding":a.cellTemplate+='<i class="icon-settings" title="'+b.name+'"></i>';break;case"view":a.cellTemplate+='<i class="icon-doc" title="'+b.name+'"></i>';break;case"clone":a.cellTemplate+='<i class="icon-docs" title="'+b.name+'"></i>';break;case"permits":a.cellTemplate+='<i class="icon-key"></i>';break;case"copy":a.cellTemplate+='<i class="fa fa-files-o" title="'+b.name+'"></i>';break;case"select":a.cellTemplate+='<i class="icon-check" title="'+b.name+'"></i>';break;case"preview":a.cellTemplate+='<i class="icon-magnifier" title="'+b.name+'"></i>';break;case"contacts":a.cellTemplate+='<i class="fa fa-users" title="'+b.name+'"></i>';break;case"download":case"export":a.cellTemplate+='<i class="fa fa-download" title="'+b.name+'"></i>';break;case"agents":a.cellTemplate+='<i class="icon-people" title="'+b.name+'"></i>';break;case"run":a.cellTemplate+='<i class="fa fa-cogs" title="'+b.name+'"></i>';break;case"mailRoom":a.cellTemplate+='<i class="fa fa-envelope"></i>';break;case"chatRoom":a.cellTemplate+='<i class="fa fa-users"></i>';break;case"faxRoom":a.cellTemplate+='<i class="fa fa-fax"></i>';break;case"smsRoom":a.cellTemplate+='<i class="glyphicon glyphicon-comment"></i>';break;case"check":a.cellTemplate+='<i class="fa fa-check" title="'+b.name+'"></i>';break;case"queues":a.cellTemplate+='<i class="icon-docs" title="'+b.name+'"></i>';break;case"deleteContacts":a.cellTemplate+='<i class="fa fa-user-times" title="'+b.name+'"></i>';break;default:a.cellTemplate+="{{'APPLICATION_"+b.name.toUpperCase()+"' | translate}}"}else a.cellTemplate+=b.displayName?"{{'"+b.displayName+"' | translate}}":"";a.cellTemplate+="</a> "}}),a.cellTemplate+="<div>",delete a.buttons)}),_.merge({enableGridMenu:!0,headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableRowSelection:!0,enableSelectAll:!0,enableFiltering:!0,showGridFooter:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,useExternalPagination:!0,useExternalSorting:!0,useExternalFiltering:!0,multiSelect:!0,getPage:r,pagOpt:o,gridMenuTitleFilter:function(a){var b=e.defer();return b.resolve(c.instant(a)),b.promise},exporterAllDataFn:function(){return p.offset=o.offset,p.limit=o.limit,o={offset:0,limit:null},r().then(function(){o.offset=p.offset,o.limit=p.limit,r()})},exporterFieldCallback:function(a,b,c,d){if("applications"===c.field&&b.entity.Applications){var e="";return _.forEach(b.entity.Applications,function(a){e+=a.app+"("+a.appdata.join(",")+")"}),e}return d; -},exporterHeaderFilter:c.instant,onRegisterApi:function(a){h.gridApi=a,h.gridApi.selection&&(h.gridApi.selection.on.rowSelectionChanged(h,function(a){a.isSelected?h.id.push(h.gridApi.grid.options.primaryKey?a.entity[h.gridApi.grid.options.primaryKey]:a.entity.id):_.pull(h.id,h.gridApi.grid.options.primaryKey?a.entity[h.gridApi.grid.options.primaryKey]:a.entity.id)}),h.gridApi.selection.on.rowSelectionChangedBatch(h,function(a){a[0].isSelected?h.id=_.union(h.id,_.map(a,h.gridApi.grid.options.primaryKey?"entity."+h.gridApi.grid.options.primaryKey:"entity.id")):_.map(a,h.gridApi.grid.options.primaryKey?"entity."+h.gridApi.grid.options.primaryKey:"entity.id").forEach(function(a){_.pull(h.id,a)})})),h.gridApi.core.on.sortChanged(h,function(a,b){0===b.length?o.order=null:o.order=b[0].name+" "+b[0].sort.direction.toUpperCase(),r()});for(var e=0;e<h.gridOptions.columnDefs.length;e++)if(h.gridOptions.columnDefs[e].hasOwnProperty("sort")){o.order=h.gridOptions.columnDefs[e].name+" "+h.gridOptions.columnDefs[e].sort.direction.toUpperCase();break}h.gridApi.pagination.on.paginationChanged(h,function(a,b){o.offset=(a-1)*b,o.limit=b,r()}),h.gridApi.core.on.filterChanged(h,function(){var a=this.grid;a.columns.forEach(function(a){m(a)}),r()}),h.gridApi.draggableRows&&h.gridApi.draggableRows.on.rowDropped(h,function(a){a.fromIndex!==a.toIndex&&d.update(i,h[n].data).$promise.then(function(){b.show(c.instant("MESSAGE_WELL_DONE")+"!","success")})["catch"](function(a){b.error(a)})["finally"](function(){r()})}),j||r()}},g)}}}]),angular.module("xCallyShuttleApp").controller("gridTagsFilterCtrl",["$scope","$timeout","$uibModal","uiGridConstants",function(a,b,c,d){b(function(){a.col.colDef.name;a.openTags=function(b){var d=c.open({templateUrl:"app/main/customTagsFilter.modal.html",controller:"customGridTagsModalCtrl",size:"md",resolve:{term:[function(){if(b.term){var a=b.term.split(";");return a.pop(),a}return[]}]}});d.result.then(function(b){a.colFilter.listTerm=[],b.length&&(a.colFilter.term=b.join(";")+";")})}})}]),angular.module("xCallyShuttleApp").controller("MainCtrl",["$scope","$rootScope","$translate","$timeout","socket","Auth","xAlert","$uibModal","$log","$state","Contact","$window","$location","localStorageService","YourDashboard","Setting","AuthResource","$cookieStore",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){function s(d){b.activeTour={main:!1},b.tourConfig={main:[{type:"function",fn:function(){b.tempTourPath=m.path()}},{type:"title",heading:c.instant("TOUR_MAIN_WELCOME"),text:'<div class="row"><div id="title-text" class="col-md-12"><span class="main-text">'+c.instant("TOUR_MAIN_DISCOVER_MOTION")+"</span><br/></div></div>",curtainClass:"myCurtainClass"}]},(f.isAdmin()||b.userModules[1])&&(b.tourConfig.main=b.tourConfig.main.concat([{type:"location_change",path:"/dashboard/voice"},{type:"title",heading:c.instant("TOUR_MAIN_DASHBOARD"),text:c.instant("TOUR_MAIN_DASHBOARD_MESSAGE"),curtainClass:"myCurtainClass"}])),(f.isAdmin()||b.userModules[2])&&d&&(b.tourConfig.main=b.tourConfig.main.concat([{type:"location_change",path:"/tools/yourdashboards/show/"+d.id},{type:"title",heading:c.instant("TOUR_MAIN_YOURDASHBOARD"),text:c.instant("TOUR_MAIN_YOURDASHBOARD_MESSAGE"),curtainClass:"myCurtainClass"}]),delete a.tempDashboards),(f.isAdmin()||b.userModules[4])&&(b.tourConfig.main=b.tourConfig.main.concat([{type:"location_change",path:"/staff/agents/list"},{type:"title",heading:c.instant("TOUR_MAIN_AGENTS"),text:c.instant("TOUR_MAIN_AGENTS_MESSAGE"),curtainClass:"myCurtainClass"}])),f.isAdmin()&&(b.tourConfig.main=b.tourConfig.main.concat([{type:"location_change",path:"/channels/voice/queues/list"},{type:"title",heading:c.instant("TOUR_MAIN_VOICE_QUEUE"),text:c.instant("TOUR_MAIN_VOICE_QUEUE_ADD_MESSAGE"),curtainClass:"myCurtainClass"}])),b.license.chat&&(f.isAdmin()||b.userModules[30])&&(b.tourConfig.main=b.tourConfig.main.concat([{type:"location_change",path:"/channels/chat/queues/list"},{type:"title",heading:c.instant("TOUR_MAIN_CHAT_QUEUE"),text:c.instant("TOUR_MAIN_CHAT_QUEUE_MESSAGE"),curtainClass:"myCurtainClass"}])),b.license.openchannel&&(f.isAdmin()||b.userModules[46])&&(b.tourConfig.main=b.tourConfig.main.concat([{type:"location_change",path:"/channels/openchannel/accounts/list"},{type:"title",heading:c.instant("TOUR_MAIN_OPENCHANNEL"),text:c.instant("TOUR_MAIN_OPENCHANNEL_MESSAGE"),curtainClass:"myCurtainClass"}])),(f.isAdmin()||b.userModules[14])&&(b.tourConfig.main=b.tourConfig.main.concat([{type:"location_change",path:"/square/projects/list"},{type:"title",heading:c.instant("TOUR_MAIN_SQUARE_PROJECT"),text:c.instant("TOUR_MAIN_SQUARE_PROJECT_MESSAGE"),curtainClass:"myCurtainClass"}])),(f.isAdmin()||b.userModules[52])&&(b.tourConfig.main=b.tourConfig.main.concat([{type:"location_change",path:"/tools/trunks/list"},{type:"title",heading:c.instant("TOUR_MAIN_TRUNKS"),text:c.instant("TOUR_MAIN_TRUNKS_MESSAGE"),curtainClass:"myCurtainClass"}])),(f.isAdmin()||b.userModules[52])&&(b.tourConfig.main=b.tourConfig.main.concat([{type:"location_change",path:"/tools/triggers/list"},{type:"title",heading:c.instant("TOUR_MAIN_TRIGGERS"),text:c.instant("TOUR_MAIN__MESSAGE"),curtainClass:"myCurtainClass"}])),b.license.jscripty&&(f.isAdmin()||b.userModules[50])&&(b.tourConfig.main=b.tourConfig.main.concat([{type:"location_change",path:"/jscripty/projects/list"},{type:"title",heading:c.instant("TOUR_MAIN_JSCRIPTY"),text:c.instant("TOUR_MAIN_JSCRIPTY_MESSAGE"),curtainClass:"myCurtainClass"}])),(f.isAdmin()||b.userModules[17])&&(b.tourConfig.main=b.tourConfig.main.concat([{type:"location_change",path:"/analytics/reports/list"},{type:"title",heading:c.instant("TOUR_MAIN_REPORTS"),text:c.instant("TOUR_MAIN_REPORTS_MESSAGE"),curtainClass:"myCurtainClass"}])),b.tourConfig.main=b.tourConfig.main.concat([{type:"title",heading:c.instant("TOUR_MAIN_END"),text:c.instant("TOUR_MAIN_END_MESSAGE"),curtainClass:"myCurtainClass"}]),n.get("skipTour")||(b.activeTour.main=!0)}a.awesomeThings=[],b.workspaces=[],a.Auth=f,b.userModules={},a.keepMeLoggedModalInstance=void 0,a.agentLogout=function(a,b){var d=h.open({animation:!0,templateUrl:"app/channels/realtime/view/agent/agent.modal.logout.html",controller:"RealtimeViewAgentLogoutModalCtrl",resolve:{name:function(){return a}}});d.result.then(function(){return q.get({controller:"logout",controller2:"agent",param:b}).$promise.then(function(){g.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){console.error(a)})},function(){i.info("Modal dismissed at: "+new Date)})},b.initTours=function(){return f.isAdmin()||b.userModules[2]?o.get().$promise.then(function(a){var b={};b[f.getRole()]=!0,s(_.find(a.rows,b))})["catch"](function(a){console.log(a)}):void s()},b.onTourFinish=function(){n.set("skipTour",!0),b.tempTourPath&&m.path(b.tempTourPath)},b.onTourSkip=function(){n.set("skipTour",!0)},a.select=function(a){switch(a.type){case"chatRoom":case"mailRoom":case"faxRoom":a.unread=0}},e.socket.on("agent:save",function(c){!c.online&&f.isAgent()&&(a.keepMeLoggedModalInstance||(a.keepMeLoggedModalInstance=h.open({animation:!0,backdrop:"static",keyboard:!1,templateUrl:"app/main/keepMeLogged.modal.html",controller:["$scope","$uibModalInstance",function(a,b){a.close=function(){b.close(!0)},a.cancel=function(){b.close(!1)}}]}),a.keepMeLoggedModalInstance.result.then(function(a){a?(b.settings.logoutOnWindowClose=!1,l.location.reload()):(f.logout(),m.path("/login"))})))}),a.openTdTab=function(a){b.workspaces.push({type:"tdDisposal",name:"Motion Dialer Disposition","class":"icon-control-forward",active:!0,spooler:a})},a.deselect=function(){},l.onbeforeunload=function(){if(f.isAgent()&&b.settings.logoutOnWindowClose){var a=new XMLHttpRequest;a.open("GET","/auth/local/logout",!1),a.setRequestHeader("Content-type","application/json"),a.setRequestHeader("Authorization","Bearer "+r.get("token")),a.send(),f.logout()}return null},a.isAdmin=f.isAdmin,a.isLoggedIn=f.isLoggedIn,a.getCurrentUser=f.getCurrentUser,a.CurrentUser=f.getCurrentUser(),e.socket.on("user_has_voice_queue_permit:change",function(){a.CurrentUser=f.getCurrentUser()}),e.socket.on("user_has_chat_queue_permit:change",function(){a.CurrentUser=f.getCurrentUser()}),e.socket.on("user_has_mail_queue_permit:change",function(){a.CurrentUser=f.getCurrentUser()}),e.socket.on("user_has_fax_queue_permit:change",function(){a.CurrentUser=f.getCurrentUser()}),e.socket.on("user_has_sms_queue_permit:change",function(){a.CurrentUser=f.getCurrentUser()}),a.mainTab={active:!0},a.closeJscriptyTab=function(a){if(b.workspaces[a].edited){var c=h.open({animation:!0,templateUrl:"app/main/closeEditedTab.modal.jscripty.html",controller:"CloseEditedTabModalJscriptyCtrl",resolve:{project:b.workspaces[a]}});c.result.then(function(){b.workspaces.splice(a,1)})}else b.workspaces.splice(a,1)},b.closeTab=function(a){var c;b.workspaces[a].edited?"jscripty"===b.workspaces[a].type?b.workspaces[a].end():(c=h.open({animation:!0,templateUrl:"app/main/closeEditedTab.modal.html",controller:"CloseEditedTabModalCtrl"}),c.result.then(function(){b.workspaces.splice(a,1)},function(){i.info("Modal dismissed at: "+new Date)})):b.workspaces.splice(a,1)},a.createContact=function(d,e,f){var h=_.clone(e);return h.CompanyId||delete h.CompanyId,h.dateOfBirth&&(h.dateOfBirth=moment(h.dateOfBirth).format("DD/MM/YYYY")),k.save(h).$promise.then(function(e){b.workspaces.splice(d,1);var h=e.firstName;e.lastName&&(h+=" "+e.lastName),a.openContactTab({firstName:e.firstName,lastName:e.lastName,id:e.id},f),g.show(c.instant("MESSAGE_WELL_DONE")+"!","success")})["catch"](function(a){g.error(a)})};var t=function(b){var c=h.open({animation:!0,templateUrl:"app/main/chooseContact.modal.html",controller:"ChooseContactModalCtrl",resolve:{data:function(){return b}}});c.result.then(function(c){c?a.openContactTab(c,b):a.newContact(b)},function(){i.info("Modal dismissed at: "+new Date)})};a.updateContact=function(a,d){var e=angular.copy(d);return e.CompanyId||(e.CompanyId=null),e.dateOfBirth&&(e.dateOfBirth=moment(e.dateOfBirth).format("DD/MM/YYYY")),k.update({id:e.id},e).$promise.then(function(){b.workspaces[a].edited=!1,g.show(c.instant("MESSAGE_WELL_DONE")+"!","success")})["catch"](function(a){g.error(a)})},e.socket.on("report_integration:contactmanager",function(a){t(a)}),e.socket.on("report_integration:webPopup",function(a){"motion"===a.type?b.workspaces.push({type:"webPopup",name:"Web Popup","class":"icon-info",active:!0,data:a}):l.open(a.url||"","_blank")}),e.socket.on("report_integration:jscripty",function(b){a.openJscriptyTab({name:"Jscripty",id:b.projectId,calleridnum:b.calleridnum,calleridname:b.calleridname,queue:b.queue,membername:b.membername})}),e.socket.on("report_integration:sugarcrm",function(a){l.open(a.url,"_blank")}),e.socket.on("report_integration:freshdesk",function(a){l.open(a.url,"_blank")}),e.socket.on("report_integration:zendesk",function(a){l.open(a.url,"_blank")}),e.socket.on("report_integration:salesforce",function(a){console.log("data",a,f.getCurrentUser()),"classic"===a.integrationType&&a.membername===f.getCurrentUser().name&&l.open(a.url,"_blank")}),e.socket.on("report_integration:tdDisposal",function(b){a.openTdTab(b)}),b.openContactTab=function(a,c){var d=_.find(b.workspaces,{contactID:a.id});if(d)d.active=!0,d.data=c,d.synchCall();else{var e=a.firstName;a.lastName&&(e+=" "+a.lastName),b.workspaces.push({name:e,type:"contact",contactID:a.id,"class":"icon-user",active:!0,data:c||null})}},a.openJscriptyTab=function(a){b.workspaces.push({name:a.name,type:"jscripty",active:!0,data:a})},a.newContact=function(a){b.workspaces.push({name:"New Contact",type:"newContact","class":"icon-user",active:!0,data:a||null})},a.$on("$viewContentLoaded",function(){Metronic.init()}),b.language=c.use(),a.changeLanguage=function(a){return c.use(a).then(function(a){b.language=a,-1!==["main.jscripty.projects.view","main.square.projects.view"].indexOf(j.current.name)&&l.location.reload()})["catch"](function(a){console.error(a)})},d(function(){p.get({id:1}).$promise.then(function(c){"admin"===a.CurrentUser.role&&c.firstLogin?m.path("/adminreset"):f.getCurrentUser().$promise.then(function(a){a.Modules.forEach(function(a){b.userModules[a.id]=!0}),b.initTours()})["catch"](function(a){g.error(a)})})["catch"](function(a){g.error(a)})}),a.$on("$destroy",function(){e.unsyncUpdates("user_has_voice_queue_permit"),e.unsyncUpdates("user_has_chat_queue_permit"),e.unsyncUpdates("user_has_mail_queue_permit"),e.unsyncUpdates("user_has_fax_queue_permit"),e.unsyncUpdates("user_has_sms_queue_permit")})}]),angular.module("xCallyShuttleApp").directive("ngSpinnerBar",["$rootScope",function(a){return{link:function(b,c){c.addClass("hide"),a.$on("$stateChangeStart",function(){"spinner-page"===c[0].id&&c.removeClass("hide")}),a.$on("$stateChangeSuccess",function(){"spinner-page"===c[0].id&&(c.addClass("hide"),$("body").removeClass("page-on-load"),Layout.setSidebarMenuActiveLink("match"),setTimeout(function(){Metronic.scrollTop()},1e3))}),a.$on("$spinnerStart",function(){"spinner-request"===c[0].id&&c.removeClass("hide")}),a.$on("$spinnerStop",function(){"spinner-request"===c[0].id&&c.addClass("hide")}),a.$on("$stateNotFound",function(){"spinner-page"===c[0].id&&c.addClass("hide")}),a.$on("$stateChangeError",function(){"spinner-page"===c[0].id&&c.addClass("hide")})}}}]).directive("a",function(){return{restrict:"E",link:function(a,b,c){(c.ngClick||""===c.href||"#"===c.href)&&b.on("click",function(a){a.preventDefault()})}}}).directive("nxEqual",function(){return{require:"ngModel",link:function(a,b,c,d){return c.nxEqual?(a.$watch(c.nxEqual,function(a){d.$setValidity("nxEqual",a===d.$viewValue)}),void d.$parsers.push(function(b){var e=b===a.$eval(c.nxEqual);return d.$setValidity("nxEqual",e),e?b:void 0})):void console.error("nxEqual expects a model as an argument!")}}}).directive("ngEnter",function(){return function(a,b,c){b.bind("keydown keypress",function(b){13===b.which&&(a.$apply(function(){a.$eval(c.ngEnter)}),b.preventDefault())})}}).directive("dropdownMenuHover",function(){return{link:function(a,b){b.dropdownHover()}}}).directive("uiSelectRequired",function(){return{require:"ngModel",link:function(a,b,c,d){d.$validators.uiSelectRequired=function(a){return a&&a.length}}}}).directive("rpattern",function(){return{restrict:"A",require:"ngModel",link:function(a,b,c,d){function e(a,b){return null==b||""===b||!h||a.test(b)?(d.$setValidity("pattern",!0),b):void d.$setValidity("pattern",!1)}var f,g=c.rpattern,h=!0;g&&(g.match(/^\/(.*)\/$/)?(g=new RegExp(g.substr(1,g.length-2)),f=function(a){return e(g,a)}):f=function(b){var c=a.$eval(g);if(!c||!c.test)throw new Error("Expected "+g+" to be a RegExp but was "+c);return e(c,b)}),d.$formatters.push(f),d.$parsers.push(f),c.$observe("required",function(a){h=a,f(d.$viewValue)})}}}).directive("newContact",["$compile","xAlert","socket","$translate","$timeout","List","Tag","Company","ReportCall","$uibModal","$rootScope","Auth",function(a,b,c,d,e,f,g,h,i,j,k,l){return{restrict:"E",scope:{workspace:"=",index:"=",submit:"&onSubmit"},templateUrl:"app/main/template/template.contactTab.html",compile:function(a,m){return function(a,m,n){function o(){a.$watch("contact",function(b,c){angular.equals(b,c)||(a.workspace.edited=!0)},!0)}a.license=k.license,a.Auth=l,a.firstLoad=!0,a.detail={tab:"main"},a.contact={CompanyId:"",disposed:!1},a.submitButtonLabel=d.instant("APPLICATION_CONFIRM"),a.getAgent=function(){return l.getCurrentUser().$promise.then(function(b){a.agent=b})["catch"](function(a){b.error(a)})},a.companyInfo=function(b){j.open({animation:!0,size:"lg",templateUrl:"app/main/company.info.modal.html",controller:["$scope","$uibModalInstance","company",function(a,b,c){a.company=c,a.close=function(){b.dismiss("cancel")}}],resolve:{company:_.find(a.companies,{id:b})}})},a.callPhoneBar=function(c,e){var f;switch(e){case"call":f="http://127.0.0.1:"+a.agent.phoneBarRemoteControlPort+"/api/originate/"+c;break;case"transfer":f="http://127.0.0.1:"+a.agent.phoneBarRemoteControlPort+"/api/transfer?number="+c;break;default:f="http://127.0.0.1:"+a.agent.phoneBarRemoteControlPort+"/api/originate/"+c}return $http.get(f).success(function(){b.show(d.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){console.error(a),b.error({message:d.instant("MESSAGE_UNABLE_TO_CONTACT_PHONEBAR")})})},a.dispose=function(){return j.open({animation:!0,templateUrl:"app/main/cm.disposition.modal.html",controller:"ContactManagerSetDisposition"}).result.then(function(c){return i.update({id:a.workspace.data.uniqueid},c).$promise.then(function(){a.contact.disposed=!0,a.workspace.data.agentDisposition=c.agentDisposition,b.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){b.error(a)})})},a.init=function(){if(a.getTags(),a.getCompanies(),a.getLists(),a.getAgent(),a.workspace.data){if(a.enableDisposal=!1,"queue"===a.workspace.data.subtypeChannel?(a.contact.firstName=a.workspace.data.calleridname?a.workspace.data.calleridname:a.workspace.data.messageId?a.workspace.data.messageId:a.workspace.data.uniqueid?a.workspace.data.uniqueid:"",a.workspace.data.calleridnum&&(a.contact.phone=a.workspace.data.calleridnum)):(a.contact.firstName=a.workspace.data.destcalleridname?a.workspace.data.destcalleridname:a.workspace.data.messageId?a.workspace.data.messageId:a.workspace.data.uniqueid?a.workspace.data.uniqueid:"",a.workspace.data.destcalleridnum&&(a.contact.phone=a.workspace.data.destcalleridnum)),a.workspace.data.from&&(a.contact.email=a.workspace.data.from),a.workspace.data.uniqueid)return i.get({id:a.workspace.data.uniqueid}).$promise.then(function(){a.enableDisposal=!0})["catch"](function(){c.socket.on("report_call:save",function(b){b.uniqueid===a.workspace.data.uniqueid&&(a.enableDisposal=!0)})});a.workspace.data.CompanyId&&(a.contact.CompanyId=a.workspace.data.CompanyId)}},a.openRoom=function(a,b,c){var d=_.find(k.workspaces,{id:a,type:b});if(d)d.active=!0;else{var e;switch(b){case"mailRoom":e="icon-envelope";break;case"chatRoom":e="fa fa-users";break;case"faxRoom":e="fa fa-fax";break;case"smsRoom":e="glyphicon glyphicon-comment"}k.workspaces.push({id:a,type:b,"class":e,active:!0,data:c})}},a.getLists=function(){return f.get().$promise.then(function(b){if(a.lists=b.rows,c.syncUpdates("list",a.lists),a.workspace.data&&a.workspace.data.ListId&&_.find(a.lists,{id:a.workspace.data.ListId}))a.contact.ListId=a.workspace.data.ListId;else{var d=_.find(a.lists,{defaultEntry:!0});a.contact.ListId=d?d.id:a.lists[0]?a.lists[0].id:null}a.getCustomFields()})["catch"](function(a){b.error(a)})},a.getCustomFields=function(){return f.get({listId:a.contact.ListId,controller:"customfields",id:"all"}).$promise.then(function(b){a.customFields=[],b.rows.forEach(function(b){try{"select"===b.type&&(b.values=JSON.parse(b.values)),a.customFields.push(b)}catch(c){console.log("Cf not valid:",b.alias)}}),!a.firstLoad||a.workspace.data?(a.workspace.edited=!0,a.firstLoad=!1):(a.firstLoad=!1,o())})["catch"](function(a){console.error(a),b.error(a)})},a.getTags=function(){return g.get().$promise.then(function(b){a.tags=_.map(b.rows,"name")})["catch"](function(a){console.error(a),b.error(a)})},a.getCompanies=function(){return h.get().$promise.then(function(b){a.companies=b.rows,a.companies.unshift({id:"",name:"-- None --"}),c.syncUpdates("company",a.companies)})["catch"](function(a){console.error(a),b.error(a)})},e(function(){a.init()})}}}}]).directive("contact",["$compile","xAlert","socket","$timeout","List","Tag","Company","Contact","$translate","gridOptions","$uibModal","ReportCall","$rootScope","usSpinnerService","uiGridConstants","$log","Auth","$http",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){return{restrict:"E",scope:{workspace:"=",index:"=",submit:"&onSubmit"},templateUrl:"app/main/template/template.contactTab.html",compile:function(a,j){return function(a,j,s){function t(b){var c=[],d={};_.forEach(a.columns[a.log[b].show][a.log[b].detail].indexes,function(e,f){d={name:e,displayName:a.columns[a.log[b].show][a.log[b].detail].header[f],headerCellFilter:"translate",enableSorting:!1,enableColumnMenu:!1},"createdAt"===e&&(d.cellTemplate="<div class=\"centered-uigrid-td\">{{row.entity.createdAt | date:'dd/MM/yyyy HH:mm:ss'}}</div>",d.filterHeaderTemplate='<div class="ui-grid-filter-container row"><div ng-repeat="colFilter in col.filters" class="col-md-6 col-md-offset-0 col-sm-5 col-sm-offset-0 col-xs-5 col-xs-offset-0"><div custom-grid-date-filter-header></div></div></div>',d.filters=[{name:"From",condition:o.filter.GREATER_THAN_OR_EQUAL},{name:"To",condition:o.filter.LESS_THAN_OR_EQUAL}]),c.push(d)}),a.columns[a.log[b].show][a.log[b].detail].actions&&c.push(a.columns[a.log[b].show][a.log[b].detail].actions),c.forEach(function(a){u(a,b,!0),a.hasOwnProperty("displayName")||(a.displayName="APPLICATION_"+a.name.toUpperCase()),a.headerCellFilter="translate",a.hasOwnProperty("buttons")&&(a.displayName="",a.cellClass="ui-grid-vcenter",a.enableSorting=!1,a.enableFiltering=!1,a.enableColumnMenu=!1,a.cellTemplate="<div>",a.buttons.forEach(function(b){if(b.directive)a.cellTemplate+=b.directive;else{if(a.cellTemplate+="<a",a.cellTemplate+=b.hide?' data-ng-hide="'+b.hide+'" ':" ",a.cellTemplate+=b["class"]?' class="btn btn-xs '+b["class"]+'" ':" ",a.cellTemplate+=b.href?' data-ng-href="'+b.href+'" ':" ",a.cellTemplate+=b.uisref?' ui-sref="'+b.uisref+'" ':" ",a.cellTemplate+=b.onClick?' data-ng-click="'+b.onClick+'" ':" ",a.cellTemplate+=b.title?' title="'+b.title+'"':"",a.cellTemplate+=">",a.cellTemplate+=b.icon?'<i class="'+b.icon+'"></i>':"",b.name)switch(b.name){case"delete":a.cellTemplate+='<i class="fa fa-trash"></i>';break;case"profile":case"settings":case"detail":case"embedding":a.cellTemplate+='<i class="icon-settings"></i>';break;case"agents":a.cellTemplate+='<i class="icon-people"></i>';break;case"run":a.cellTemplate+='<i class="fa fa-cogs"></i>';break;case"mailRoom":a.cellTemplate+='<i class="fa fa-envelope"></i>';break;case"chatRoom":a.cellTemplate+='<i class="fa fa-users"></i>';break;case"faxRoom":a.cellTemplate+='<i class="fa fa-fax"></i>';break;case"smsRoom":a.cellTemplate+='<i class="glyphicon glyphicon-comment"></i>';break;default:a.cellTemplate+="{{'APPLICATION_"+b.name.toUpperCase()+"' | translate}}"}else a.cellTemplate+=b.displayName?"{{'"+b.displayName+"' | translate}}":"";a.cellTemplate+="</a> "}}),a.cellTemplate+="<div>",delete a.buttons)});var e={enablePaginationControls:!0,exporterCsvFilename:b+".csv",columnDefs:c,enableGridMenu:!0,headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,showGridFooter:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,useExternalPagination:!0,useExternalSorting:!0,useExternalFiltering:!0,showTreeExpandNoChildren:!0,data:[],gridMenuTitleFilter:function(a){var b=$q.defer();return b.resolve(i.instant(a)),b.promise},onRegisterApi:function(c){a.gridApi=c,a.gridApi.grid.registerDataChangeCallback(function(){}),a.gridApi.core.on.sortChanged(a,function(a,c){0===c.length?w.order=null:w.order=c[0].name+" "+c[0].sort.direction.toUpperCase(),x(b)}),a.gridApi.pagination.on.paginationChanged(a,function(a,c){w.offset=(a-1)*c,w.limit=c,x(b)}),a.gridApi.core.on.filterChanged(a,function(){var a=this.grid;a.columns.forEach(function(a){u(a,b)}),x(b)})}};x(b,e)}function u(a,b,c){a.filter&&a.filter.term&&c&&(w[b][a.name]=a.filter.term),a.filters&&(a.filters.length>1?a.filters.forEach(function(c){c.term?64===c.condition?w[b][a.name+"_uiFrom"]=c.term:256===c.condition&&(w[b][a.name+"_uiTo"]=c.term):64===c.condition?delete w[b][a.name+"_uiFrom"]:256===c.condition&&delete w[b][a.name+"_uiTo"]}):a.filters.length&&a.filters[0].term?w[b][a.name]=a.filters[0].term:delete w[b][a.name])}function v(){a.$watch("contact",function(b,c){b.disposed!==c.disposed||angular.equals(b,c)||(a.workspace.edited=!0)},!0)}a.moment=moment,a.license=m.license,a.detail={tab:"main"},a.log={daily:{show:"phone",type:"inbound",detail:"general"},history:{show:"phone",type:"inbound",detail:"general"}},a.columns={phone:{general:{header:["APPLICATION_SOURCE","APPLICATION_DESTINATION","APPLICATION_CALL_STATUS","APPLICATION_DISPOSITION","APPLICATION_DATE"],indexes:["source","destination","disposition","agentDisposition","createdAt"]},queue:{header:["APPLICATION_CALLERID","APPLICATION_QUEUE","APPLICATION_DATE"],indexes:["calleridnum","queue","createdAt"]}},email:{general:{header:["APPLICATION_FROM","APPLICATION_TO","APPLICATION_SUBJECT","APPLICATION_DISPOSITION","APPLICATION_DATE"],indexes:["from","account","subject","disposition","createdAt"],actions:{name:"action",displayName:"",width:40,buttons:[{"class":"green",name:"mailRoom",onClick:"grid.appScope.openRoom(row.entity.id, 'mailRoom')"}]}}},chat:{general:{header:["APPLICATION_WEBSITE","APPLICATION_VISITOR","APPLICATION_DISPOSITION","APPLICATION_DATE"],indexes:["website","contact","disposition","createdAt"],actions:{name:"action",displayName:"",width:40,buttons:[{"class":"green",name:"chatRoom",onClick:"grid.appScope.openRoom(row.entity.id, 'chatRoom')"}]}}},fax:{general:{header:["APPLICATION_FROM","APPLICATION_TO","APPLICATION_DISPOSITION","APPLICATION_DATE"],indexes:["contact","account","disposition","createdAt"],actions:{name:"action",displayName:"",width:40,buttons:[{"class":"green",name:"faxRoom",onClick:"grid.appScope.openRoom(row.entity.id, 'faxRoom')"}]}}},sms:{general:{header:["APPLICATION_ACCOUNT","APPLICATION_FROM","APPLICATION_DISPOSITION","APPLICATION_DATE"],indexes:["account","contact","disposition","createdAt"],actions:{name:"action",displayName:"",width:40,buttons:[{"class":"green",name:"smsRoom",onClick:"grid.appScope.openRoom(row.entity.id, 'smsRoom')"}]}}}},a.Auth=q,a.getAgent=function(){return q.getCurrentUser().$promise.then(function(b){a.agent=b})["catch"](function(a){b.error(a)})},a.getLists=function(){return e.get().$promise.then(function(b){a.lists=b.rows,c.syncUpdates("list",a.lists)})["catch"](function(a){b.error(a)})},a.callPhoneBar=function(c,d){var e;switch(d){case"call":e="http://127.0.0.1:"+a.agent.phoneBarRemoteControlPort+"/api/originate/"+c;break;case"transfer":e="http://127.0.0.1:"+a.agent.phoneBarRemoteControlPort+"/api/transfer?number="+c;break;default:e="http://127.0.0.1:"+a.agent.phoneBarRemoteControlPort+"/api/originate/"+c}return r.get(e).success(function(){b.show(i.instant("MESSAGE_WELL_DONE"),"success")}).error(function(a){console.error(a),b.error({message:i.instant("MESSAGE_UNABLE_TO_CONTACT_PHONEBAR")})})},a.copy=function(a){var c=k.open({animation:!0,size:"small",templateUrl:"app/contactmanager/contact/list/copy.modal.html",controller:"ContactManagerListCopyModalCtrl"});c.result.then(function(c){return h.save({id:a,controller:"copy"},c).$promise.then(function(a){m.openContactTab({firstName:a.firstName,lastName:a.lastName,id:a.id})})["catch"](function(a){b.error(a)})},function(){p.info("Modal dismissed at: "+new Date)})},a.merge=function(c){var d=k.open({animation:!0,size:"lg",templateUrl:"app/main/mergeContact.choose.modal.html",controller:"ContactManagerMergeContactChoose",resolve:{listId:c.ListId,mergecontact:c.id}});d.result.then(function(d){var e=k.open({animation:!0,size:"lg",templateUrl:"app/main/mergeContact.merge.modal.html",controller:"ContactManagerMergeContactMerge",resolve:{contactId:d,mergeContact:c}});e.result.then(function(e){return e.oldContact=c.id,h.save({id:d,controller:"merge"},e).$promise.then(function(b){m.workspaces.splice(a.index,1),_.remove(m.workspaces,{contactID:b.id}),m.openContactTab({firstName:b.firstName,lastName:b.lastName,id:b.id})})["catch"](function(a){b.error(a)})},function(){p.info("Modal dismissed at: "+new Date)})},function(){p.info("Modal dismissed at: "+new Date)})},a.dispose=function(){return k.open({animation:!0,templateUrl:"app/main/cm.disposition.modal.html",controller:"ContactManagerSetDisposition"}).result.then(function(c){return c.contactId=a.contact.id,l.update({id:a.workspace.data.uniqueid},c).$promise.then(function(){a.contact.disposed=!0,b.show(i.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){b.error(a)})})},a.companyInfo=function(b){k.open({animation:!0,size:"lg",templateUrl:"app/main/company.info.modal.html",controller:["$scope","$uibModalInstance","company",function(a,b,c){a.company=c,a.close=function(){b.dismiss("cancel")}}],resolve:{company:_.find(a.companies,{id:b})}})},a.updateLog=function(b,c,d,e){c&&(a.log[b].show=c),d&&(a.log[b].detail=d),e&&(a.log[b].type=e),t(b)},a.openRoom=function(a,b,c){var d=_.find(m.workspaces,{id:a,type:b});if(d)d.active=!0;else{var e;switch(b){case"mailRoom":e="icon-envelope";break;case"chatRoom":e="fa fa-users";break;case"faxRoom":e="fa fa-fax";break;case"smsRoom":e="glyphicon glyphicon-comment"}m.workspaces.push({id:a,type:b,"class":e,active:!0,data:c})}};var w={daily:{offset:0,limit:10},history:{offset:0,limit:10}},x=function(b,c){return n.spin("spinner-grid"),h.get(_.merge(_.merge({id:a.workspace.contactID,controller:"log",logType:b,order:"createdAt DESC"},a.log[b]),w[b])).$promise.then(function(d){c&&(a["gridOptions"+b]=c),a["gridOptions"+b].totalItems=d.count,a["gridOptions"+b].data=d.rows,y("gridOptions"+b,d.rows.length)})["catch"](function(a){console.error(a)})["finally"](function(){n.stop("spinner-grid")})},y=function(a,b){var c=b?30*b+120:177;angular.element(document.getElementsByName(a)[0]).css("height",c+"px")};a.getContact=function(){return h.get({id:a.workspace.contactID}).$promise.then(function(b){b.dateOfBirth&&(b.dateOfBirth=moment(b.dateOfBirth,"DD/MM/YYYY").toDate()),b.CompanyId||(b.CompanyId=""),a.contact=b,a.getCustomFields(b.ListId),v(),a.updateLog("daily"),a.updateLog("history")}).then(function(){a.workspace.data&&a.workspace.synchCall()})["catch"](function(a){console.error(a),b.error(a)})},a.getTags=function(){return f.get().$promise.then(function(b){a.tags=_.map(b.rows,"name")})["catch"](function(a){console.error(a),b.error(a)})},a.getCompanies=function(){return g.get().$promise.then(function(b){a.companies=b.rows,a.companies.unshift({id:"",name:"-- None --"}),c.syncUpdates("company",a.companies)})["catch"](function(a){console.error(a),b.error(a)})},a.getCustomFields=function(c){return a.customFields=[],e.get({listId:c,controller:"customfields",id:"all"}).$promise.then(function(b){b.rows.forEach(function(b){try{"select"===b.type&&(b.values=JSON.parse(b.values)),a.customFields.push(b)}catch(c){console.log("Cf not valid:",b.alias)}})})["catch"](function(a){console.error(a),b.error(a)})},a.workspace.synchCall=function(){return a.contact.disposed=!1,a.enableDisposal=!1,a.workspace.data&&a.workspace.data.uniqueid?a.workspace.data.agentDisposition?(a.contact.disposed=!0,l.update({id:a.workspace.data.uniqueid},{contactId:a.contact.id}).$promise.then(function(){console.log("contactId updated")})["catch"](function(a){b.error(a)})):l.get({id:a.workspace.data.uniqueid}).$promise.then(function(){a.enableDisposal=!0})["catch"](function(){c.socket.on("report_call:save",function(b){b.uniqueid===a.workspace.data.uniqueid&&(a.enableDisposal=!0)})}):void(a.contact.disposed=!0)},d(function(){a.getTags(),a.getCompanies(),a.getLists(),a.getContact(),a.getAgent()})}}}}]).directive("jscripty",["$compile","xAlert","$http","socket","JscriptyProject",function(a,b,c,d,e){return{restrict:"E",scope:{workspace:"=",index:"=",submit:"&onSubmit"},templateUrl:"app/main/template/template.jscriptyTab.html",compile:function(a,d){return function(a,d,f){a.count=0,a.questions=[];var g,h=a.workspace.data.id;c.get("/api/jscripty/projects/"+h+"/download").success(function(b){b?c.post("/api/jscripty/projects/"+h+"/sessions",{projectId:h,status:"started",queue:a.workspace.data.queue,calleridnum:a.workspace.data.calleridnum,callername:a.workspace.data.callername,membername:a.workspace.data.membername}).success(function(c){g=c.session_id,a.workspace.edited=!0,a.workspace.sessionId=g,a.workspace.projectId=h;var d=mxUtils.parseXml(b),e=new mxCodec(d);a.decObj=e.decode(d.documentElement);var f=_.find(a.decObj.cells,function(a){return a.vertex&&"start"==a.value.nodeName});if("OFF"==f.getAttribute("state")){var j=_.find(f.edges,function(a){ -return a.source.id==f.id}).target;a.questions[a.count]=a.currentQuestion=i(j)}else a.questions[a.count]=a.currentQuestion=f;a.saveQuestions()}):(console.log("No project published!"),alert("No project published!"),a.submit({index:a.index}))}),a.next=function(b,c){switch(a.currentQuestion.answer&&a.currentQuestion.answer!=c&&(a.questions=_.take(a.questions,a.count+1)),a.currentQuestion.answer=c,b.value.nodeName){case"question":b=i(b)}a.questions[a.count]=a.currentQuestion,a.currentQuestion=b,a.count++,a.questions[a.count]=b,a.saveQuestions()};var i=function(a){var b=[];return a.options=[],_.forEach(a.edges,function(c,d){if(c.source.id==a.id&&c.value){var e=String(c.value).split(",");e.length>1?(_.forEach(e,function(b,d){var e=Object.create(c);e.setValue(b),a.edges.push(e),a.options.push(b)}),b.push(c)):a.options.push(e[0])}}),_.forEach(b,function(b){_.remove(a.edges,function(a){return a.value==b.value&&a.id==b.id})}),a};a.end=function(){a.saveQuestions(),a.workspace.lastQuestionId=a.questions[a.questions.length-1].id,"end"==a.questions[a.questions.length-1].value.nodeName&&(a.workspace.edited=!1,e.update({id:h,controller:"sessions",action:g},{status:"completed",completedAt:Date(),last_question_id:a.questions[a.questions.length-1].id}).$promise.then(function(a){b.show("Project Ended","success")})),a.submit({index:a.index})},a.workspace.end=a.end,a.back=function(){a.count--,a.currentQuestion=a.questions[a.count]},a.setCurrentQuestion=function(b){a.count=b,a.currentQuestion=a.questions[a.count]},a.saveQuestions=function(){for(var c=[],d=[],f=0;f<a.questions.length;f++){if(a.questions[f].children)for(var i=a.questions[f].children,j=0;j<i.length;j++)d[j]={input_id:i[j].id,input_type:i[j].getAttribute("type"),input_label:i[j].getAttribute("label"),input_value:"checkbox"!=i[j].getAttribute("type")||i[j].answer?i[j].answer:!1};c[f]={sessionId:g,projectId:h,question_id:a.questions[f].id,question_type:a.questions[f].value.nodeName,question_label:a.questions[f].getAttribute("label"),question_text:a.questions[f].getAttribute("question")||a.questions[f].getAttribute("text"),question_other_label:a.questions[f].getAttribute("other"),question_other_answer:a.questions[f].otheranswer,question_answer:a.questions[f].answer,question_options:a.questions[f].options?JSON.stringify({options:a.questions[f].options}):null,index:f,ReportJscriptyInputs:d},d=[]}e.save({id:h,controller:"sessions",action:g,action2:"questions"},c).$promise.then(function(a){})["catch"](function(a){b.error(a)})}}}}}]).directive("reportBuilder",["$compile",function(a){return{restrict:"E",scope:{group:"=",fields:"=",forms:"=",firstCall:"="},templateUrl:"app/main/template/template.reportBuilderView.html",compile:function(b,c){var d,e;return d=b.contents().remove(),function(b,c,f){b.operators=[{name:"AND"},{name:"OR"}],b.conditions=[{name:"="},{name:"!="},{name:"<"},{name:"<="},{name:">"},{name:">="},{name:"LIKE"},{name:"NOT LIKE"},{name:"IS NULL"},{name:"IS NOT NULL"},{name:"IS EMPTY"},{name:"IS NOT EMPTY"}],b.inputIsRequired=function(a){if(a.condition)switch(a.condition){case"IS NULL":case"IS NOT NULL":case"IS EMPTY":case"IS NOT EMPTY":a.required=!1;break;default:a.required=!0}},b.addCondition=function(){b.group.rules.push({condition:"=",field:"",value:""})},b.removeCondition=function(a){b.group.rules.splice(a,1)},b.addGroup=function(){b.group.rules.push({group:{operator:"AND",rules:[{condition:"=",field:"",value:""}]}})},b.randomName=function(a,b){var c=[];for(a=a||5,b=b||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--a;)c.push(b.charAt(Math.floor(Math.random()*b.length)));return c.join("")},b.removeGroup=function(){b.$parent.group&&b.$parent.group.rules.splice(b.$parent.$index,1)},e||(e=a(d)),c.append(e(b,function(a){return a}))}}}}]).directive("dynamicName",["$compile",function(a){return{restrict:"A",terminal:!0,priority:1e3,link:function(b,c,d){c.attr("name",b.$eval(d.dynamicName)),c.removeAttr("dynamic-name"),a(c)(b)}}}]).directive("onReadFile",["$parse",function(a){return{restrict:"A",scope:!1,link:function(b,c,d){var e=a(d.onReadFile);c.on("change",function(a){var c=new FileReader;c.onload=function(a){b.$apply(function(){e(b,{$fileContent:a.target.result})})},c.readAsText((a.srcElement||a.target).files[0])})}}}]).directive("motionFileDownload",["xAlert","$translate","$timeout","$location","FileSaver","$compile",function(a,b,c,d,e,f){return{restrict:"E",template:'<a uib-tooltip=\'{{tooltiptext}}\' class="{{btnclass || \'btn default btn-xs blue-hoki\'}}" href="" data-ng-click="download()" ><i class="icon-cloud-download"></i>{{btncontent || \'\'}}</a>',scope:{mimetype:"=",filename:"=",resource:"=",params:"=",btnclass:"@",btncontent:"@",tooltiptext:"@"},link:function(b,c,d){var f=c.children()[0];b.$on("download-start",function(){$(f).attr("disabled","disabled")}),b.$on("downloaded",function(a,c){var d=base64ToBlob(c,b.mimetype);e.saveAs(d,b.filename),$(f).attr("disabled",!1)}),b.download=function(){return b.$emit("download-start"),b.resource.get(b.params).$promise.then(function(a){b.$emit("downloaded",a.downloadString)})["catch"](function(b){a.error(b),$(f).attr("disabled",!1)})}}}}]).directive("audioFileDownload",["xAlert","$translate","$uibModal",function(a,b,c){return{restrict:"E",template:'<button type="button" class="btn default btn-xs blue-hoki" data-ng-click="download()"><i class="fa fa-play"></i> {{ \'APPLICATION_PREVIEW\' | translate}}</button>',scope:{resource:"=",params:"="},link:function(b,d,e){var f=d.children()[0];b.$on("download-start",function(a,c){b.tempHtml=$(f).html(),$(f).attr("disabled","disabled").html('<i class="icon-refresh"></i> Loading...')}),b.$on("downloaded",function(a,d){c.open({animation:!0,size:"small",templateUrl:"app/main/audioFileDownload.play.modal.html",controller:["$scope","$uibModalInstance","$sce","audio",function(a,b,c,d){a.audio=c.trustAsResourceUrl("data:audio/wav;base64,"+d.data),a.close=function(){b.dismiss("cancel")}}],resolve:{audio:function(){return{data:d}}}});$(f).html(b.tempHtml).attr("disabled",!1)}),b.$on("error",function(a,c){$(f).html(b.tempHtml).attr("disabled",!1)}),b.download=function(){return b.$emit("download-start"),b.resource.get(b.params).$promise.then(function(a){b.$emit("downloaded",a.downloadString)})["catch"](function(c){a.error(c),b.$emit("error")})}}}}]).directive("uiRequired",function(){return{require:"ngModel",link:function(a,b,c,d){d.$validators.required=function(a,b){return!(b&&0===b.length&&"true"===c.uiRequired)},c.$observe("uiRequired",function(){d.$setValidity("required",!("true"===c.uiRequired&&d.$viewValue&&0===d.$viewValue.length))})}}}).directive("schrollBottom",function(){return{scope:{schrollBottom:"="},link:function(a,b){a.$watchCollection("schrollBottom",function(a){a&&$(b).scrollTop($(b)[0].scrollHeight)})}}}).directive("customGridDateFilterHeader",function(){return{templateUrl:"app/main/customDateFilterHeader.html",controller:"gridDatePickerFilterCtrl"}}).directive("customGridTagsFilterHeader",function(){return{templateUrl:"app/main/customTagsFilterHeader.html",controller:"gridTagsFilterCtrl"}}).directive("infiniteScroll",["$window",function(a){return{link:function(a,b,c){var d=parseInt(c.threshold)||0,e=b[0];b.bind("scroll",function(){a.$eval(c.canLoad)&&e.scrollTop+e.offsetHeight>=e.scrollHeight-d&&a.$apply(c.infiniteScroll)})}}}]).directive("tigerDialDisposal",["$compile","xAlert","socket","$translate","$timeout","$rootScope","MotionDialerSpooler","Auth",function(a,b,c,d,e,f,g,h){return{restrict:"E",scope:{workspace:"=",index:"="},templateUrl:"app/main/template/template.tigerDialDisposal.html",compile:function(a,c){return function(a,c,i){a.moment=moment,a.entitySpooler={},a.forms={td:{}},a.init=function(){return h.getCurrentUser().$promise.then(function(b){a.entitySpooler.planningpeer="SIP/"+b.name})["catch"](function(a){b.error(a)})},a.save=function(){var c;switch(a.entitySpooler.retrieve){case"CLOSED":c=g.close({id:parseInt(a.workspace.spooler.ticketId)});break;case"OPEN":c=g.open({id:parseInt(a.workspace.spooler.ticketId)});break;case"BLACK_LIST":c=g.blacklist({id:parseInt(a.workspace.spooler.ticketId)});break;case"PLANNED":c=g.planning({id:parseInt(a.workspace.spooler.ticketId),date:moment(a.entitySpooler.planningtime).format("YYYY-MM-DD HH:mm")});break;case"PLANNED_PEER":c=g.planningpeer({id:parseInt(a.workspace.spooler.ticketId),date:moment(a.entitySpooler.planningtime).format("YYYY-MM-DD HH:mm"),peer:a.entitySpooler.planningpeer})}c?c.$promise.then(function(c){c.status>0?b.show(d.instant("MESSAGE_WELL_DONE"),"success"):c.response?c.response.RMI.errors.forEach(function(c){c?(b.show(c.field+": "+c.error,"danger"),f.workspaces.splice(a.index,1)):b.show("Please, check your connection!","danger")}):b.show("Please, check your connection!","danger")})["catch"](function(a){b.error(a)}):b.show("RETRIEVE NOT FOUND","danger")},e(function(){a.init()})}}}}]).directive("cssTimer",["$window","$interval",function(a,b){return{restrict:"EA",template:"<span>{{ millis | formatMilliseconds | date:format }}</span>",scope:{interval:"@",format:"@",startTime:"="},link:function(a,c,d){function e(){a.millis=Math.abs((new Date).getTime()-new Date(a.startTime).getTime())+1e3,a.activeInterval=b(function(){a.millis+=a.interval},a.interval)}a.interval||(a.interval=1e3),a.format||(a.format="HH:mm:ss"),e(),a.$watch("startTime",function(c,d){b.cancel(a.activeInterval),e()},!0)}}}]).directive("webPopup",["$compile","xAlert","socket","$translate","$timeout","List","Tag","Company","ReportCall","$uibModal","$rootScope","Auth","$sce",function(a,b,c,d,e,f,g,h,i,j,k,l,m){return{restrict:"E",scope:{workspace:"=",index:"="},templateUrl:"app/main/template/template.webPopup.html",compile:function(a,b){return function(a,b,c){a.html=m.trustAsHtml(a.workspace.data.html)}}}}]),angular.module("xCallyShuttleApp").filter("propsFilter",function(){return function(a,b){var c=[];return angular.isArray(a)?a.forEach(function(a){for(var d=!1,e=Object.keys(b),f=0;f<e.length;f++){var g=e[f],h=b[g].toLowerCase();if(-1!==a[g].toString().toLowerCase().indexOf(h)){d=!0;break}}d&&c.push(a)}):c=a,c}}).filter("capitalize",function(){return function(a){return a?a.replace(/([^\W_]+[^\s-]*) */g,function(a){return a.charAt(0).toUpperCase()+a.substr(1).toLowerCase()}):""}}).filter("salesforce",function(){var a=["CallDisposition","CallDurationInSeconds","CallObject","CallType","IsArchived","Priority","Status","Type"];return function(b){return _.remove(b,function(b){return b.custom===!1&&a.indexOf(b.name)<0}),b}}).filter("sugarcrm",function(){var a=["id","name","date_entered","date_modified","modified_user_id","modified_by_name","created_by","created_by_name","description","deleted","assigned_user_id","assigned_user_name","duration_hours","duration_minutes","date_start","date_end","parent_type","parent_name","parent_id","accept_status","contact_name","contact_id"];return function(b){return _.remove(b,function(b){return a.indexOf(b.name)>=0}),b}}).filter("freshdesk",function(){var a=["requester","subject","agent","description","status","priority","group","source","ticket_type","group","company"];return function(b){return _.remove(b,function(b){return a.indexOf(b.name)>=0}),b}}).filter("zendesk",function(){var a=["subject","assignee","description"];return function(b){return _.remove(b,function(b){return a.indexOf(b.type)>=0}),b}}).filter("slice",function(){return function(a,b,c){return a?a.slice(b,c):void 0}}).filter("trusted",["$sce",function(a){var b=document.createElement("div");return function(c){return b.innerHTML=c,a.trustAsHtml(b.textContent)}}]).filter("formatMilliseconds",[function(){return function(a){return new Date(1970,0,1).setMilliseconds(a)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main",{"abstract":!0,templateUrl:"app/main/main.html",controller:"MainCtrl",resolve:{authorization:["$q","Auth","$state","$timeout","$location","localStorageService",function(a,b,c,d,e,f){return b.getToken()?a.when():(f.remove("loggedIn"),d(function(){e.path("/login")}),a.reject())}],deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css","assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/plugins/mxgraph/js/mxClient.js","assets/plugins/ckeditor/ckeditor.js","assets/css/login.css"]}])}]}})}]),angular.module("xCallyShuttleApp").factory("xAlert",["$translate","Notification","$state",function(a,b,c){return{show:function(c,d){switch(d){case"success":b.success({message:c,title:'<i class="glyphicon glyphicon-ok"></i> <strong>'+a.instant("MESSAGE_SUCCESS")+"!</strong>",delay:5e3});break;case"info":b.info({message:c,title:'<i class="glyphicon glyphicon-info-sign"></i> <strong>'+a.instant("MESSAGE_INFO")+"!</strong>",delay:5e3});break;case"danger":b.error({message:c,title:'<i class="glyphicon glyphicon-exclamation-sign"></i> <strong>'+a.instant("MESSAGE_ERROR")+"!</strong>",delay:1e4});break;case"warning":b.warning({message:c,title:'<i class="glyphicon glyphicon-warning-sign"></i> <strong>'+a.instant("MESSAGE_WARNING")+"!</strong>",delay:1e4});break;default:b.info(c)}},error:function(d){var e,f;d?d.status&&401===d.status?(e="Unauthorized!",f=!0):d.data?(e=a.instant(d.data.translatedMessage||d.data.message||d.data||"Generic Error"),d.data.errors&&d.data.errors.length&&_.forEach(d.data.errors,function(b){b.message&&(e+=", "+a.instant(b.message))})):e=a.instant(d.translatedMessage||d.message||"Generic Error"):e="Generic Error",b.error({message:e,title:'<i class="glyphicon glyphicon-exclamation-sign"></i> <strong>'+a.instant("MESSAGE_ERROR")+"!</strong>",delay:1e4}),f&&c.go("login")}}}]).factory("stResource",["$q","$filter","$timeout","$rootScope","$http","$translate","xAlert",function(a,b,c,d,e,f,g){return{getPage:function(b){var c={page:Math.ceil(b.pagination.start/b.pagination.number),per_page:b.pagination.number};b.sort.predicate&&(c.sort_by=b.sort.predicate,c.sort_order=b.sort.reverse?"DESC":"ASC"),_.forIn(b.search.predicateObject,function(a,b){c[b]=a}),b.search.params&&(c.clientQuery={},_.forIn(b.search.params,function(a,b){c.clientQuery[b]=a})),d.$broadcast("$spinnerStart"),e.get(b.url,{params:c}).success(function(a){f.resolve(a),d.$broadcast("$spinnerStop")}).error(function(a){g.error(a),d.$broadcast("$spinnerStop")});var f=a.defer();return f.promise}}}]).factory("xNotification",["$translate","Notification","$rootScope",function(a,b,c){return{show:function(d,e,f,g,h,i){var j=c.$new(),k={message:e,title:d,templateUrl:"app/main/template/template.notification.html",delay:g,scope:j};switch(j.acceptBtn=a.instant("APPLICATION_ACCEPT"),j.rejectBtn=a.instant("APPLICATION_REJECT"),j.nAccept=h,j.nReject=i,f){case"chat":j["class"]="alert-info",j.icon="icon-bubble";break;case"mail":j["class"]="alert-success",j.icon="icon-envelope";break;case"fax":j["class"]="alert-warning",j.icon="fa fa-fax";break;case"sms":j["class"]="alert-danger",j.icon="glyphicon glyphicon-comment";break;case"openchannel":j["class"]="alert-danger",j.icon="icon-globe";break;default:j["class"]="alert-info"}return new b(k)}}}]),angular.module("xCallyShuttleApp").controller("ContactManagerMergeContactChoose",["$scope","$translate","Contact","gridOptions","List","uiGridConstants","xAlert","$stateParams","Company","$uibModalInstance","listId","mergecontact",function(a,b,c,d,e,f,g,h,i,j,k,l){a.initView=function(){var b;return e.get().$promise.then(function(b){return a.lists=[],a.customFields=[],b.rows.forEach(function(b,c){_.forEach(b.CustomFields,function(b){a.customFields.push({name:b.name,alias:b.alias})}),a.lists.push({value:b.id,label:b.name})}),i.get().$promise}).then(function(b){a.companies=[],b.rows.forEach(function(b,c){a.companies.push({value:b.id,label:b.name})})}).then(function(){var e=[{"class":"blue-hoki",name:"select",onClick:"grid.appScope.choose(row.entity.id)"}];b={exporterCsvFilename:"Contacts.csv",columnDefs:[{name:"firstName"},{name:"lastName"},{name:"phone"},{name:"email"},{name:"ListId",displayName:"APPLICATION_LIST",field:"List.name",enableFiltering:!1},{name:"CompanyId",displayName:"APPLICATION_COMPANY",field:"Company.name",filter:{type:f.filter.SELECT,term:h.companyId||null,selectOptions:a.companies}}]},_.forEach(a.customFields,function(a){b.columnDefs.push({name:a.name,displayName:a.alias,visible:!1})}),b.columnDefs.push({name:"action",width:30,buttons:e}),a.gridOptions=d.gridOptions(c,b,a,{ListId:k,mergecontact:l})})["catch"](function(a){g.error(a)})},a.choose=function(a){j.close(a)},a.cancel=function(){j.dismiss()}}]),angular.module("xCallyShuttleApp").controller("ContactManagerMergeContactMerge",["$scope","$translate","Contact","xAlert","Company","$uibModalInstance","contactId","List","mergeContact","Tag",function(a,b,c,d,e,f,g,h,i,j){a.initView=function(){return e.get().$promise.then(function(b){return a.companies=b.rows,a.companies.unshift({id:"",name:"-- None --"}),j.get().$promise}).then(function(b){return a.tags=_.map(b.rows,"name"),c.get({id:g}).$promise}).then(function(b){a.fields={},a.contact={};var c=_.merge(_.keys(b),_.keys(i));return _.forEach(c,function(c){switch(c){case"tags":a.contact.tags=_.union(b.tags||[],i.tags||[]);break;case"$promise":case"$resolved":break;default:a.fields[c]=[],b[c]&&a.fields[c].push(b[c]),i[c]&&b[c]!==i[c]&&a.fields[c].push(i[c]),a.contact[c]=a.fields[c][0]||null}}),h.get({listId:b.ListId,controller:"customfields"}).$promise}).then(function(b){a.customFields=b.rows,a.customFields.forEach(function(a){a.values=JSON.parse(a.values)})})["catch"](function(a){d.error(a)})},a.merge=function(){a.contact.CompanyId||(a.contact.CompanyId=null),f.close(a.contact)},a.cancel=function(){f.dismiss()}}]),angular.module("xCallyShuttleApp").factory("Widget",["$resource",function(a){return a("/api/widgets/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("MarketCtrl",["$scope","$http","$translate","socket","xAlert","Modal","$timeout","Integration",function(a,b,c,d,e,f,g,h){function i(a,b){return Math.floor(Math.random()*(b-a+1))+a}a.initView=function(){return h.get().$promise.then(function(b){a.integrations=b.rows,a.groupedIntegration=_.chunk(a.integrations,4),d.syncUpdates("integration",a.integrations,function(){a.groupedIntegration=_.chunk(a.integrations,4)})})["catch"](function(a){e.error(a,"danger")})},a.isProgressing=!1,a.$on("$destroy",function(){d.unsyncUpdates("integration")}),a.installIntegration=function(b){return navigator.onLine?(a.status="Downloading",a.percentage=i(1,50),a.isProgressing=!0,b.downloading=!0,h.update({id:b.id},{active:!0}).$promise.then(function(){g(function(){a.percentage=i(51,99),a.status="Installing"},2500),g(function(){a.percentage=100,a.isProgressing=!1,a.status="Completed!",b.downloading=!1,e.show(c.instant("MESSAGE_WELL_DONE")+".","success")},5e3)})["catch"](function(){b.downloading=!1,a.percentage=0,a.isProgressing=!1,e.show(c.instant("MESSAGE_SOMETHING_WENT_WRONG")+".","danger")})):void e.show(c.instant("MESSAGE_NO_INTERNET_CONNECTION")+".","danger")},a.uninstallIntegration=function(b){return navigator.onLine?(a.status="Uninstalling",a.percentage=i(1,99),a.isProgressing=!0,b.downloading=!0,h.update({id:b.id},{active:!1}).$promise.then(function(){g(function(){a.percentage=100,a.isProgressing=!1,a.status="Completed!",b.downloading=!1,e.show(c.instant("MESSAGE_WELL_DONE")+".","success")},5e3)})["catch"](function(){b.downloading=!1,a.percentage=0,a.isProgressing=!1,e.show(c.instant("MESSAGE_SOMETHING_WENT_WRONG")+".","danger")})):void e.show(c.instant("MESSAGE_NO_INTERNET_CONNECTION")+".","danger")}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.market",{url:"/market",templateUrl:"app/market/market.html",controller:"MarketCtrl",data:{permissions:{only:["admin"],redirectTo:"main.dashboard.voice"}}})}]),angular.module("xCallyShuttleApp").controller("MotionbarCtrl",["$scope","$stateParams","$cookieStore","$window","$location","Auth",function(a,b,c,d,e,f){console.log(b),b.token&&b.userId&&b.role&&b.redirectTo?(f.loginWithToken(b.token,b.userId,b.role),d.location.href=decodeURIComponent(b.redirectTo)):e.path("/login")}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("motionbar",{url:"/motionbar?redirectTo&token&userId&role",template:"<div ui-view></div>",controller:"MotionbarCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.motiondialer.blacklist",{url:"/blacklist",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("MotionDialerBlackListListCtrl",["$scope","$uibModal","$translate","xAlert","Modal","MotionDialerBlackList","uiGridConstants","FileUploader","Papa",function(a,b,c,d,e,f,g,h,i){function j(c){var d=b.open({animation:!0,backdrop:"static",keyboard:!1,templateUrl:"app/motiondialer/blacklist/list/list.import.modal.html",controller:"MotionDialerBlackListImportCtrl",resolve:{indexes:function(){return _.keys(c[0])},csv:function(){return c}}});d.result.then(function(b){a.gridOptions.data=a.gridOptions.data.concat(b)})}a.initView=function(){a.gridOptions={paginationPageSizes:[10,25,50,75],paginationPageSize:10,enableFiltering:!0,enableSorting:!0,enableGridMenu:!0,flatEntityAccess:!0,showGridFooter:!0,fastWatch:!0,columnDefs:[{name:"id",width:60},{name:"phone"},{name:"description",enableSorting:!1},{name:"updatedtime",sort:{direction:g.DESC},enableFiltering:!1},{name:"action",cellTemplate:'<div><a class="btn btn-xs red-sunglo" data-ng-click="grid.appScope.deleteItem(row.entity.phone, row.entity.id)"><i class="icon-trash"></i></a></div>',enableSorting:!1,cellClass:"ui-grid-vcenter",enableFiltering:!1}]},f.list({page:1,size:6e5}).$promise.then(function(b){b.status>0?a.gridOptions.data=b.response.RMI.rows:d.show("Please, check your connection!","danger")})["catch"](function(a){d.error(a)})},a.createItem=function(){var c=b.open({animation:!0,templateUrl:"app/motiondialer/blacklist/list/list.create.modal.html",controller:"MotionDialerBlackListListCreateCtrl"});c.result.then(function(b){a.gridOptions.data.push(b.response.RMI)})},a.deleteItem=e.confirm["delete"](function(b){return f["delete"]({id:b}).$promise.then(function(e){e.status>0?(_.remove(a.gridOptions.data,{id:b}),d.show(c.instant("MESSAGE_WELL_DONE"),"success")):d.show(e.message||"Please, check your connection!","danger")})["catch"](function(a){d.error(a)})});var k=a.uploader=new h({queueLimit:1,clearInputAfterAddedToQueue:!0});k.onAfterAddingFile=function(b){i.parse(b._file,{header:!0,complete:function(b){a.uploader.clearQueue(),j(b.data)},error:function(a){d.error(a)}})}}]),angular.module("xCallyShuttleApp").controller("MotionDialerBlackListListCreateCtrl",["$scope","$translate","$uibModalInstance","MotionDialerBlackList","xAlert",function(a,b,c,d,e){a.form={},a.item={},a.save=function(){return d.insert(a.item).$promise.then(function(a){a.status>0?(e.show(b.instant("MESSAGE_WELL_DONE"),"success"),c.close(a)):e.show(a.message||"Please, check your connection!","danger")})["catch"](function(a){e.error(a)})},a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").controller("MotionDialerBlackListImportCtrl",["$scope","$uibModalInstance","$stateParams","indexes","csv","MotionDialerBlackList",function(a,b,c,d,e,f){function g(b){if(b>=a.csvLength||a.stopped)return void(a.importing=!1);var c={phone:"",description:""};return _.forOwn(a.item,function(a,d){c[d]=e[b][a]}),c.phone?f.insert(c).$promise.then(function(c){c.status>0?c.response.RMI.Key&&c.response.RMI.Key.indexOf("Found duplicate")>-1?(a["import"].fail+=h,a["import"].failed++,a.duplicates.push(b+2)):(a["import"].success+=h,a["import"].succeeded++,i.push(c.response.RMI)):(console.log(c),a["import"].fail+=h,a["import"].failed++)})["catch"](function(b){console.log(b),a["import"].fail+=h,a["import"].failed++})["finally"](function(){g(b+1)}):(a.noPhone.push(b+2),a["import"].fail+=h,a["import"].failed++,g(b+1),void 0)}a.form={},a.item={},a.indexes=d,a.importing=!1,a.submitted=!1,a.stopped=!1,a["import"]={success:0,fail:0,succeeded:0,failed:0},a.csvLength=e.length;var h=100/a.csvLength,i=[];a.start=function(){a.noPhone=[],a.duplicates=[],a.importing=!0,a.submitted=!0,g(0)},a.close=function(){b.close(i)},a.stop=function(){a.stopped=!0}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.motiondialer.blacklist.list",{url:"/list",templateUrl:"app/motiondialer/blacklist/list/list.html",controller:"MotionDialerBlackListListCtrl",authenticate:!0})}]),angular.module("xCallyShuttleApp").factory("MotionDialerBlackList",["$resource",function(a){return a("/api/rest/blacklist/:controller",null,{list:{method:"POST",params:{controller:"list"}},insert:{method:"POST",params:{controller:"insert"}},"delete":{method:"POST",params:{controller:"delete"}},find:{method:"POST",params:{controller:"find"}},update:{method:"POST",params:{controller:"update"}}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.motiondialer.info",{url:"/info",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").factory("MotionDialerSystem",["$resource",function(a){return a("/api/rest/system/:controller",null,{properties:{method:"POST",params:{controller:"properties"}}})}]),angular.module("xCallyShuttleApp").controller("MotionDialerInfoViewCtrl",["$scope","xAlert","MotionDialerSystem","MotionDialerProcess","$translate","$q","usSpinnerService",function(a,b,c,d,e,f,g){a.getProperties=function(){return c.properties().$promise.then(function(c){c.status>0?a.properties=c.response.RMI:b.show(c.message||"Please, check your connection!","danger")})["catch"](function(a){b.error(a)})};var h=function(a,b){var c=a?30*a+130:177;angular.element(document.getElementsByName(b)[0]).css("height",c+"px")};a.getLogs=function(){return a.loading=!0,g.spin("logs-spinner"),d.logs().$promise.then(function(c){a.loading=!1,g.stop("logs-spinner"),c.status>0?a.table1.data=c.response.RMI.rows:b.show(c.message||"Please, check your connection!","danger")})["catch"](function(c){a.loading=!1,g.stop("logs-spinner"),b.error(c)})},a.initLogs=function(){a.table1={enableGridMenu:!0,exporterMenuVisibleData:!1,exporterCsvFilename:"Motion Dialer Logs.csv",enableHorizontalScrollbar:0,headerCellFilter:"translate",exporterHeaderFilter:e.instant,enableVerticalScrollbar:0,enableFiltering:!0,enableSorting:!0,showGridFooter:!0,paginationPageSizes:[10,25,50],paginationPageSize:10,gridMenuTitleFilter:function(a){var b=f.defer();return b.resolve(e.instant(a)),b.promise},columnDefs:[{name:"timeStamp",headerCellFilter:"translate",displayName:"APPLICATION_DATE",cellFilter:'date:"yyyy-MM-dd HH:mm:ss"',width:145},{name:"renderedMessage",headerCellFilter:"translate",displayName:"APPLICATION_MESSAGE",cellTooltip:!0}],data:[],onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){h(a.table1.paginationPageSize>a.table1.data.length?a.table1.data.length:a.table1.paginationPageSize,"table1")}),a.gridApi.pagination.on.paginationChanged(a,function(b,c){h(c>a.table1.data.length?a.table1.data.length:c,"table1")})}},a.getLogs()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.motiondialer.info.view",{url:"/view",templateUrl:"app/motiondialer/info/view/view.html",controller:"MotionDialerInfoViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.motiondialer.info.view.about",{url:"/about",templateUrl:"app/motiondialer/info/view/view.about.html"}).state("main.motiondialer.info.view.details",{url:"/details",templateUrl:"app/motiondialer/info/view/view.details.html"}).state("main.motiondialer.info.view.logs",{url:"/logs",templateUrl:"app/motiondialer/info/view/view.logs.html"})}]),angular.module("xCallyShuttleApp").factory("MotionDialerContact",["$resource",function(a){return a("/api/rest/contact/:controller",null,{list:{method:"POST",params:{controller:"list"}},insert:{method:"POST",params:{controller:"insert"}},"delete":{method:"POST",params:{controller:"delete"}},find:{method:"POST",params:{controller:"find"}},update:{method:"POST",params:{controller:"update"}}})}]),angular.module("xCallyShuttleApp").factory("MotionDialerList",["$resource",function(a){return a("/api/rest/list/:controller",null,{list:{method:"POST",params:{controller:"list"}},insert:{method:"POST",params:{controller:"insert"}},"delete":{method:"POST",params:{controller:"delete"}},find:{method:"POST",params:{controller:"find"}},update:{method:"POST",params:{controller:"update"}}})}]),angular.module("xCallyShuttleApp").factory("MotionDialerTimezone",function(){return{list:function(){return[{group:"US (Common)",zones:[{value:"America/Puerto_Rico",name:"Puerto Rico (Atlantic)"},{value:"America/New_York",name:"New York (Eastern)"},{value:"America/Chicago",name:"Chicago (Central)"},{value:"America/Denver",name:"Denver (Mountain)"},{value:"America/Phoenix",name:"Phoenix (MST)"},{value:"America/Los_Angeles",name:"Los Angeles (Pacific)"},{value:"America/Anchorage",name:"Anchorage (Alaska)"},{value:"Pacific/Honolulu",name:"Honolulu (Hawaii)"}]},{group:"America",zones:[{value:"America/Adak",name:"Adak"},{value:"America/Anchorage",name:"Anchorage"},{value:"America/Anguilla",name:"Anguilla"},{value:"America/Antigua",name:"Antigua"},{value:"America/Araguaina",name:"Araguaina"},{value:"America/Argentina/Buenos_Aires",name:"Argentina - Buenos Aires"},{value:"America/Argentina/Catamarca",name:"Argentina - Catamarca"},{value:"America/Argentina/ComodRivadavia",name:"Argentina - ComodRivadavia"},{value:"America/Argentina/Cordoba",name:"Argentina - Cordoba"},{value:"America/Argentina/Jujuy",name:"Argentina - Jujuy"},{value:"America/Argentina/La_Rioja",name:"Argentina - La Rioja"},{value:"America/Argentina/Mendoza",name:"Argentina - Mendoza"},{value:"America/Argentina/Rio_Gallegos",name:"Argentina - Rio Gallegos"},{value:"America/Argentina/Salta",name:"Argentina - Salta"},{value:"America/Argentina/San_Juan",name:"Argentina - San Juan"},{value:"America/Argentina/San_Luis",name:"Argentina - San Luis"},{value:"America/Argentina/Tucuman",name:"Argentina - Tucuman"},{value:"America/Argentina/Ushuaia",name:"Argentina - Ushuaia"},{value:"America/Aruba",name:"Aruba"},{value:"America/Asuncion",name:"Asuncion"},{value:"America/Atikokan",name:"Atikokan"},{value:"America/Atka",name:"Atka"},{value:"America/Bahia",name:"Bahia"},{value:"America/Barbados",name:"Barbados"},{value:"America/Belem",name:"Belem"},{value:"America/Belize",name:"Belize"},{value:"America/Blanc-Sablon",name:"Blanc-Sablon"},{value:"America/Boa_Vista",name:"Boa Vista"},{value:"America/Bogota",name:"Bogota"},{value:"America/Boise",name:"Boise"},{value:"America/Buenos_Aires",name:"Buenos Aires"},{value:"America/Cambridge_Bay",name:"Cambridge Bay"},{value:"America/Campo_Grande",name:"Campo Grande"},{value:"America/Cancun",name:"Cancun"},{value:"America/Caracas",name:"Caracas"},{value:"America/Catamarca",name:"Catamarca"},{value:"America/Cayenne",name:"Cayenne"},{value:"America/Cayman",name:"Cayman"},{value:"America/Chicago",name:"Chicago"},{value:"America/Chihuahua",name:"Chihuahua"},{value:"America/Coral_Harbour",name:"Coral Harbour"},{value:"America/Cordoba",name:"Cordoba"},{value:"America/Costa_Rica",name:"Costa Rica"},{value:"America/Cuiaba",name:"Cuiaba"},{value:"America/Curacao",name:"Curacao"},{value:"America/Danmarkshavn",name:"Danmarkshavn"},{value:"America/Dawson",name:"Dawson"},{value:"America/Dawson_Creek",name:"Dawson Creek"},{value:"America/Denver",name:"Denver"},{value:"America/Detroit",name:"Detroit"},{value:"America/Dominica",name:"Dominica"},{value:"America/Edmonton",name:"Edmonton"},{value:"America/Eirunepe",name:"Eirunepe"},{value:"America/El_Salvador",name:"El Salvador"},{value:"America/Ensenada",name:"Ensenada"},{value:"America/Fortaleza",name:"Fortaleza"},{value:"America/Fort_Wayne",name:"Fort Wayne"},{ -value:"America/Glace_Bay",name:"Glace Bay"},{value:"America/Godthab",name:"Godthab"},{value:"America/Goose_Bay",name:"Goose Bay"},{value:"America/Grand_Turk",name:"Grand Turk"},{value:"America/Grenada",name:"Grenada"},{value:"America/Guadeloupe",name:"Guadeloupe"},{value:"America/Guatemala",name:"Guatemala"},{value:"America/Guayaquil",name:"Guayaquil"},{value:"America/Guyana",name:"Guyana"},{value:"America/Halifax",name:"Halifax"},{value:"America/Havana",name:"Havana"},{value:"America/Hermosillo",name:"Hermosillo"},{value:"America/Indiana/Indianapolis",name:"Indiana - Indianapolis"},{value:"America/Indiana/Knox",name:"Indiana - Knox"},{value:"America/Indiana/Marengo",name:"Indiana - Marengo"},{value:"America/Indiana/Petersburg",name:"Indiana - Petersburg"},{value:"America/Indiana/Tell_City",name:"Indiana - Tell City"},{value:"America/Indiana/Vevay",name:"Indiana - Vevay"},{value:"America/Indiana/Vincennes",name:"Indiana - Vincennes"},{value:"America/Indiana/Winamac",name:"Indiana - Winamac"},{value:"America/Indianapolis",name:"Indianapolis"},{value:"America/Inuvik",name:"Inuvik"},{value:"America/Iqaluit",name:"Iqaluit"},{value:"America/Jamaica",name:"Jamaica"},{value:"America/Jujuy",name:"Jujuy"},{value:"America/Juneau",name:"Juneau"},{value:"America/Kentucky/Louisville",name:"Kentucky - Louisville"},{value:"America/Kentucky/Monticello",name:"Kentucky - Monticello"},{value:"America/Knox_IN",name:"Knox IN"},{value:"America/La_Paz",name:"La Paz"},{value:"America/Lima",name:"Lima"},{value:"America/Los_Angeles",name:"Los Angeles"},{value:"America/Louisville",name:"Louisville"},{value:"America/Maceio",name:"Maceio"},{value:"America/Managua",name:"Managua"},{value:"America/Manaus",name:"Manaus"},{value:"America/Marigot",name:"Marigot"},{value:"America/Martinique",name:"Martinique"},{value:"America/Matamoros",name:"Matamoros"},{value:"America/Mazatlan",name:"Mazatlan"},{value:"America/Mendoza",name:"Mendoza"},{value:"America/Menominee",name:"Menominee"},{value:"America/Merida",name:"Merida"},{value:"America/Mexico_City",name:"Mexico City"},{value:"America/Miquelon",name:"Miquelon"},{value:"America/Moncton",name:"Moncton"},{value:"America/Monterrey",name:"Monterrey"},{value:"America/Montevideo",name:"Montevideo"},{value:"America/Montreal",name:"Montreal"},{value:"America/Montserrat",name:"Montserrat"},{value:"America/Nassau",name:"Nassau"},{value:"America/New_York",name:"New York"},{value:"America/Nipigon",name:"Nipigon"},{value:"America/Nome",name:"Nome"},{value:"America/Noronha",name:"Noronha"},{value:"America/North_Dakota/Center",name:"North Dakota - Center"},{value:"America/North_Dakota/New_Salem",name:"North Dakota - New Salem"},{value:"America/Ojinaga",name:"Ojinaga"},{value:"America/Panama",name:"Panama"},{value:"America/Pangnirtung",name:"Pangnirtung"},{value:"America/Paramaribo",name:"Paramaribo"},{value:"America/Phoenix",name:"Phoenix"},{value:"America/Port-au-Prince",name:"Port-au-Prince"},{value:"America/Porto_Acre",name:"Porto Acre"},{value:"America/Port_of_Spain",name:"Port of Spain"},{value:"America/Porto_Velho",name:"Porto Velho"},{value:"America/Puerto_Rico",name:"Puerto Rico"},{value:"America/Rainy_River",name:"Rainy River"},{value:"America/Rankin_Inlet",name:"Rankin Inlet"},{value:"America/Recife",name:"Recife"},{value:"America/Regina",name:"Regina"},{value:"America/Resolute",name:"Resolute"},{value:"America/Rio_Branco",name:"Rio Branco"},{value:"America/Rosario",name:"Rosario"},{value:"America/Santa_Isabel",name:"Santa Isabel"},{value:"America/Santarem",name:"Santarem"},{value:"America/Santiago",name:"Santiago"},{value:"America/Santo_Domingo",name:"Santo Domingo"},{value:"America/Sao_Paulo",name:"Sao Paulo"},{value:"America/Scoresbysund",name:"Scoresbysund"},{value:"America/Shiprock",name:"Shiprock"},{value:"America/St_Barthelemy",name:"St Barthelemy"},{value:"America/St_Johns",name:"St Johns"},{value:"America/St_Kitts",name:"St Kitts"},{value:"America/St_Lucia",name:"St Lucia"},{value:"America/St_Thomas",name:"St Thomas"},{value:"America/St_Vincent",name:"St Vincent"},{value:"America/Swift_Current",name:"Swift Current"},{value:"America/Tegucigalpa",name:"Tegucigalpa"},{value:"America/Thule",name:"Thule"},{value:"America/Thunder_Bay",name:"Thunder Bay"},{value:"America/Tijuana",name:"Tijuana"},{value:"America/Toronto",name:"Toronto"},{value:"America/Tortola",name:"Tortola"},{value:"America/Vancouver",name:"Vancouver"},{value:"America/Virgin",name:"Virgin"},{value:"America/Whitehorse",name:"Whitehorse"},{value:"America/Winnipeg",name:"Winnipeg"},{value:"America/Yakutat",name:"Yakutat"},{value:"America/Yellowknife",name:"Yellowknife"}]},{group:"Europe",zones:[{value:"Europe/Amsterdam",name:"Amsterdam"},{value:"Europe/Andorra",name:"Andorra"},{value:"Europe/Athens",name:"Athens"},{value:"Europe/Belfast",name:"Belfast"},{value:"Europe/Belgrade",name:"Belgrade"},{value:"Europe/Berlin",name:"Berlin"},{value:"Europe/Bratislava",name:"Bratislava"},{value:"Europe/Brussels",name:"Brussels"},{value:"Europe/Bucharest",name:"Bucharest"},{value:"Europe/Budapest",name:"Budapest"},{value:"Europe/Chisinau",name:"Chisinau"},{value:"Europe/Copenhagen",name:"Copenhagen"},{value:"Europe/Dublin",name:"Dublin"},{value:"Europe/Gibraltar",name:"Gibraltar"},{value:"Europe/Guernsey",name:"Guernsey"},{value:"Europe/Helsinki",name:"Helsinki"},{value:"Europe/Isle_of_Man",name:"Isle of Man"},{value:"Europe/Istanbul",name:"Istanbul"},{value:"Europe/Jersey",name:"Jersey"},{value:"Europe/Kaliningrad",name:"Kaliningrad"},{value:"Europe/Kiev",name:"Kiev"},{value:"Europe/Lisbon",name:"Lisbon"},{value:"Europe/Ljubljana",name:"Ljubljana"},{value:"Europe/London",name:"London"},{value:"Europe/Luxembourg",name:"Luxembourg"},{value:"Europe/Madrid",name:"Madrid"},{value:"Europe/Malta",name:"Malta"},{value:"Europe/Mariehamn",name:"Mariehamn"},{value:"Europe/Minsk",name:"Minsk"},{value:"Europe/Monaco",name:"Monaco"},{value:"Europe/Moscow",name:"Moscow"},{value:"Europe/Nicosia",name:"Nicosia"},{value:"Europe/Oslo",name:"Oslo"},{value:"Europe/Paris",name:"Paris"},{value:"Europe/Podgorica",name:"Podgorica"},{value:"Europe/Prague",name:"Prague"},{value:"Europe/Riga",name:"Riga"},{value:"Europe/Rome",name:"Rome"},{value:"Europe/Samara",name:"Samara"},{value:"Europe/San_Marino",name:"San Marino"},{value:"Europe/Sarajevo",name:"Sarajevo"},{value:"Europe/Simferopol",name:"Simferopol"},{value:"Europe/Skopje",name:"Skopje"},{value:"Europe/Sofia",name:"Sofia"},{value:"Europe/Stockholm",name:"Stockholm"},{value:"Europe/Tallinn",name:"Tallinn"},{value:"Europe/Tirane",name:"Tirane"},{value:"Europe/Tiraspol",name:"Tiraspol"},{value:"Europe/Uzhgorod",name:"Uzhgorod"},{value:"Europe/Vaduz",name:"Vaduz"},{value:"Europe/Vatican",name:"Vatican"},{value:"Europe/Vienna",name:"Vienna"},{value:"Europe/Vilnius",name:"Vilnius"},{value:"Europe/Volgograd",name:"Volgograd"},{value:"Europe/Warsaw",name:"Warsaw"},{value:"Europe/Zagreb",name:"Zagreb"},{value:"Europe/Zaporozhye",name:"Zaporozhye"},{value:"Europe/Zurich",name:"Zurich"}]},{group:"Asia",zones:[{value:"Asia/Aden",name:"Aden"},{value:"Asia/Almaty",name:"Almaty"},{value:"Asia/Amman",name:"Amman"},{value:"Asia/Anadyr",name:"Anadyr"},{value:"Asia/Aqtau",name:"Aqtau"},{value:"Asia/Aqtobe",name:"Aqtobe"},{value:"Asia/Ashgabat",name:"Ashgabat"},{value:"Asia/Ashkhabad",name:"Ashkhabad"},{value:"Asia/Baghdad",name:"Baghdad"},{value:"Asia/Bahrain",name:"Bahrain"},{value:"Asia/Baku",name:"Baku"},{value:"Asia/Bangkok",name:"Bangkok"},{value:"Asia/Beirut",name:"Beirut"},{value:"Asia/Bishkek",name:"Bishkek"},{value:"Asia/Brunei",name:"Brunei"},{value:"Asia/Calcutta",name:"Calcutta"},{value:"Asia/Choibalsan",name:"Choibalsan"},{value:"Asia/Chongqing",name:"Chongqing"},{value:"Asia/Chungking",name:"Chungking"},{value:"Asia/Colombo",name:"Colombo"},{value:"Asia/Dacca",name:"Dacca"},{value:"Asia/Damascus",name:"Damascus"},{value:"Asia/Dhaka",name:"Dhaka"},{value:"Asia/Dili",name:"Dili"},{value:"Asia/Dubai",name:"Dubai"},{value:"Asia/Dushanbe",name:"Dushanbe"},{value:"Asia/Gaza",name:"Gaza"},{value:"Asia/Harbin",name:"Harbin"},{value:"Asia/Ho_Chi_Minh",name:"Ho Chi Minh"},{value:"Asia/Hong_Kong",name:"Hong Kong"},{value:"Asia/Hovd",name:"Hovd"},{value:"Asia/Irkutsk",name:"Irkutsk"},{value:"Asia/Istanbul",name:"Istanbul"},{value:"Asia/Jakarta",name:"Jakarta"},{value:"Asia/Jayapura",name:"Jayapura"},{value:"Asia/Jerusalem",name:"Jerusalem"},{value:"Asia/Kabul",name:"Kabul"},{value:"Asia/Kamchatka",name:"Kamchatka"},{value:"Asia/Karachi",name:"Karachi"},{value:"Asia/Kashgar",name:"Kashgar"},{value:"Asia/Kathmandu",name:"Kathmandu"},{value:"Asia/Katmandu",name:"Katmandu"},{value:"Asia/Kolkata",name:"Kolkata"},{value:"Asia/Krasnoyarsk",name:"Krasnoyarsk"},{value:"Asia/Kuala_Lumpur",name:"Kuala Lumpur"},{value:"Asia/Kuching",name:"Kuching"},{value:"Asia/Kuwait",name:"Kuwait"},{value:"Asia/Macao",name:"Macao"},{value:"Asia/Macau",name:"Macau"},{value:"Asia/Magadan",name:"Magadan"},{value:"Asia/Makassar",name:"Makassar"},{value:"Asia/Manila",name:"Manila"},{value:"Asia/Muscat",name:"Muscat"},{value:"Asia/Nicosia",name:"Nicosia"},{value:"Asia/Novokuznetsk",name:"Novokuznetsk"},{value:"Asia/Novosibirsk",name:"Novosibirsk"},{value:"Asia/Omsk",name:"Omsk"},{value:"Asia/Oral",name:"Oral"},{value:"Asia/Phnom_Penh",name:"Phnom Penh"},{value:"Asia/Pontianak",name:"Pontianak"},{value:"Asia/Pyongyang",name:"Pyongyang"},{value:"Asia/Qatar",name:"Qatar"},{value:"Asia/Qyzylorda",name:"Qyzylorda"},{value:"Asia/Rangoon",name:"Rangoon"},{value:"Asia/Riyadh",name:"Riyadh"},{value:"Asia/Saigon",name:"Saigon"},{value:"Asia/Sakhalin",name:"Sakhalin"},{value:"Asia/Samarkand",name:"Samarkand"},{value:"Asia/Seoul",name:"Seoul"},{value:"Asia/Shanghai",name:"Shanghai"},{value:"Asia/Singapore",name:"Singapore"},{value:"Asia/Taipei",name:"Taipei"},{value:"Asia/Tashkent",name:"Tashkent"},{value:"Asia/Tbilisi",name:"Tbilisi"},{value:"Asia/Tehran",name:"Tehran"},{value:"Asia/Tel_Aviv",name:"Tel Aviv"},{value:"Asia/Thimbu",name:"Thimbu"},{value:"Asia/Thimphu",name:"Thimphu"},{value:"Asia/Tokyo",name:"Tokyo"},{value:"Asia/Ujung_Pandang",name:"Ujung Pandang"},{value:"Asia/Ulaanbaatar",name:"Ulaanbaatar"},{value:"Asia/Ulan_Bator",name:"Ulan Bator"},{value:"Asia/Urumqi",name:"Urumqi"},{value:"Asia/Vientiane",name:"Vientiane"},{value:"Asia/Vladivostok",name:"Vladivostok"},{value:"Asia/Yakutsk",name:"Yakutsk"},{value:"Asia/Yekaterinburg",name:"Yekaterinburg"},{value:"Asia/Yerevan",name:"Yerevan"}]},{group:"Africa",zones:[{value:"Africa/Abidjan",name:"Abidjan"},{value:"Africa/Accra",name:"Accra"},{value:"Africa/Addis_Ababa",name:"Addis Ababa"},{value:"Africa/Algiers",name:"Algiers"},{value:"Africa/Asmara",name:"Asmara"},{value:"Africa/Asmera",name:"Asmera"},{value:"Africa/Bamako",name:"Bamako"},{value:"Africa/Bangui",name:"Bangui"},{value:"Africa/Banjul",name:"Banjul"},{value:"Africa/Bissau",name:"Bissau"},{value:"Africa/Blantyre",name:"Blantyre"},{value:"Africa/Brazzaville",name:"Brazzaville"},{value:"Africa/Bujumbura",name:"Bujumbura"},{value:"Africa/Cairo",name:"Cairo"},{value:"Africa/Casablanca",name:"Casablanca"},{value:"Africa/Ceuta",name:"Ceuta"},{value:"Africa/Conakry",name:"Conakry"},{value:"Africa/Dakar",name:"Dakar"},{value:"Africa/Dar_es_Salaam",name:"Dar es Salaam"},{value:"Africa/Djibouti",name:"Djibouti"},{value:"Africa/Douala",name:"Douala"},{value:"Africa/El_Aaiun",name:"El Aaiun"},{value:"Africa/Freetown",name:"Freetown"},{value:"Africa/Gaborone",name:"Gaborone"},{value:"Africa/Harare",name:"Harare"},{value:"Africa/Johannesburg",name:"Johannesburg"},{value:"Africa/Kampala",name:"Kampala"},{value:"Africa/Khartoum",name:"Khartoum"},{value:"Africa/Kigali",name:"Kigali"},{value:"Africa/Kinshasa",name:"Kinshasa"},{value:"Africa/Lagos",name:"Lagos"},{value:"Africa/Libreville",name:"Libreville"},{value:"Africa/Lome",name:"Lome"},{value:"Africa/Luanda",name:"Luanda"},{value:"Africa/Lubumbashi",name:"Lubumbashi"},{value:"Africa/Lusaka",name:"Lusaka"},{value:"Africa/Malabo",name:"Malabo"},{value:"Africa/Maputo",name:"Maputo"},{value:"Africa/Maseru",name:"Maseru"},{value:"Africa/Mbabane",name:"Mbabane"},{value:"Africa/Mogadishu",name:"Mogadishu"},{value:"Africa/Monrovia",name:"Monrovia"},{value:"Africa/Nairobi",name:"Nairobi"},{value:"Africa/Ndjamena",name:"Ndjamena"},{value:"Africa/Niamey",name:"Niamey"},{value:"Africa/Nouakchott",name:"Nouakchott"},{value:"Africa/Ouagadougou",name:"Ouagadougou"},{value:"Africa/Porto-Novo",name:"Porto-Novo"},{value:"Africa/Sao_Tome",name:"Sao Tome"},{value:"Africa/Timbuktu",name:"Timbuktu"},{value:"Africa/Tripoli",name:"Tripoli"},{value:"Africa/Tunis",name:"Tunis"},{value:"Africa/Windhoek",name:"Windhoek"}]},{group:"Australia",zones:[{value:"Australia/ACT",name:"ACT"},{value:"Australia/Adelaide",name:"Adelaide"},{value:"Australia/Brisbane",name:"Brisbane"},{value:"Australia/Broken_Hill",name:"Broken Hill"},{value:"Australia/Canberra",name:"Canberra"},{value:"Australia/Currie",name:"Currie"},{value:"Australia/Darwin",name:"Darwin"},{value:"Australia/Eucla",name:"Eucla"},{value:"Australia/Hobart",name:"Hobart"},{value:"Australia/LHI",name:"LHI"},{value:"Australia/Lindeman",name:"Lindeman"},{value:"Australia/Lord_Howe",name:"Lord Howe"},{value:"Australia/Melbourne",name:"Melbourne"},{value:"Australia/North",name:"North"},{value:"Australia/NSW",name:"NSW"},{value:"Australia/Perth",name:"Perth"},{value:"Australia/Queensland",name:"Queensland"},{value:"Australia/South",name:"South"},{value:"Australia/Sydney",name:"Sydney"},{value:"Australia/Tasmania",name:"Tasmania"},{value:"Australia/Victoria",name:"Victoria"},{value:"Australia/West",name:"West"},{value:"Australia/Yancowinna",name:"Yancowinna"}]},{group:"Indian",zones:[{value:"Indian/Antananarivo",name:"Antananarivo"},{value:"Indian/Chagos",name:"Chagos"},{value:"Indian/Christmas",name:"Christmas"},{value:"Indian/Cocos",name:"Cocos"},{value:"Indian/Comoro",name:"Comoro"},{value:"Indian/Kerguelen",name:"Kerguelen"},{value:"Indian/Mahe",name:"Mahe"},{value:"Indian/Maldives",name:"Maldives"},{value:"Indian/Mauritius",name:"Mauritius"},{value:"Indian/Mayotte",name:"Mayotte"},{value:"Indian/Reunion",name:"Reunion"}]},{group:"Atlantic",zones:[{value:"Atlantic/Azores",name:"Azores"},{value:"Atlantic/Bermuda",name:"Bermuda"},{value:"Atlantic/Canary",name:"Canary"},{value:"Atlantic/Cape_Verde",name:"Cape Verde"},{value:"Atlantic/Faeroe",name:"Faeroe"},{value:"Atlantic/Faroe",name:"Faroe"},{value:"Atlantic/Jan_Mayen",name:"Jan Mayen"},{value:"Atlantic/Madeira",name:"Madeira"},{value:"Atlantic/Reykjavik",name:"Reykjavik"},{value:"Atlantic/South_Georgia",name:"South Georgia"},{value:"Atlantic/Stanley",name:"Stanley"},{value:"Atlantic/St_Helena",name:"St Helena"}]},{group:"Pacific",zones:[{value:"Pacific/Apia",name:"Apia"},{value:"Pacific/Auckland",name:"Auckland"},{value:"Pacific/Chatham",name:"Chatham"},{value:"Pacific/Easter",name:"Easter"},{value:"Pacific/Efate",name:"Efate"},{value:"Pacific/Enderbury",name:"Enderbury"},{value:"Pacific/Fakaofo",name:"Fakaofo"},{value:"Pacific/Fiji",name:"Fiji"},{value:"Pacific/Funafuti",name:"Funafuti"},{value:"Pacific/Galapagos",name:"Galapagos"},{value:"Pacific/Gambier",name:"Gambier"},{value:"Pacific/Guadalcanal",name:"Guadalcanal"},{value:"Pacific/Guam",name:"Guam"},{value:"Pacific/Honolulu",name:"Honolulu"},{value:"Pacific/Johnston",name:"Johnston"},{value:"Pacific/Kiritimati",name:"Kiritimati"},{value:"Pacific/Kosrae",name:"Kosrae"},{value:"Pacific/Kwajalein",name:"Kwajalein"},{value:"Pacific/Majuro",name:"Majuro"},{value:"Pacific/Marquesas",name:"Marquesas"},{value:"Pacific/Midway",name:"Midway"},{value:"Pacific/Nauru",name:"Nauru"},{value:"Pacific/Niue",name:"Niue"},{value:"Pacific/Norfolk",name:"Norfolk"},{value:"Pacific/Noumea",name:"Noumea"},{value:"Pacific/Pago_Pago",name:"Pago Pago"},{value:"Pacific/Palau",name:"Palau"},{value:"Pacific/Pitcairn",name:"Pitcairn"},{value:"Pacific/Ponape",name:"Ponape"},{value:"Pacific/Port_Moresby",name:"Port Moresby"},{value:"Pacific/Rarotonga",name:"Rarotonga"},{value:"Pacific/Saipan",name:"Saipan"},{value:"Pacific/Samoa",name:"Samoa"},{value:"Pacific/Tahiti",name:"Tahiti"},{value:"Pacific/Tarawa",name:"Tarawa"},{value:"Pacific/Tongatapu",name:"Tongatapu"},{value:"Pacific/Truk",name:"Truk"},{value:"Pacific/Wake",name:"Wake"},{value:"Pacific/Wallis",name:"Wallis"},{value:"Pacific/Yap",name:"Yap"}]},{group:"Antarctica",zones:[{value:"Antarctica/Casey",name:"Casey"},{value:"Antarctica/Davis",name:"Davis"},{value:"Antarctica/DumontDUrville",name:"DumontDUrville"},{value:"Antarctica/Macquarie",name:"Macquarie"},{value:"Antarctica/Mawson",name:"Mawson"},{value:"Antarctica/McMurdo",name:"McMurdo"},{value:"Antarctica/Palmer",name:"Palmer"},{value:"Antarctica/Rothera",name:"Rothera"},{value:"Antarctica/South_Pole",name:"South Pole"},{value:"Antarctica/Syowa",name:"Syowa"},{value:"Antarctica/Vostok",name:"Vostok"}]},{group:"Arctic",zones:[{value:"Arctic/Longyearbyen",name:"Longyearbyen"}]},{group:"UTC",zones:[{value:"UTC",name:"UTC"}]},{group:"Manual Offsets",zones:[{value:"UTC-12",name:"UTC-12"},{value:"UTC-11",name:"UTC-11"},{value:"UTC-10",name:"UTC-10"},{value:"UTC-9",name:"UTC-9"},{value:"UTC-8",name:"UTC-8"},{value:"UTC-7",name:"UTC-7"},{value:"UTC-6",name:"UTC-6"},{value:"UTC-5",name:"UTC-5"},{value:"UTC-4",name:"UTC-4"},{value:"UTC-3",name:"UTC-3"},{value:"UTC-2",name:"UTC-2"},{value:"UTC-1",name:"UTC-1"},{value:"UTC+0",name:"UTC+0"},{value:"UTC+1",name:"UTC+1"},{value:"UTC+2",name:"UTC+2"},{value:"UTC+3",name:"UTC+3"},{value:"UTC+4",name:"UTC+4"},{value:"UTC+5",name:"UTC+5"},{value:"UTC+6",name:"UTC+6"},{value:"UTC+7",name:"UTC+7"},{value:"UTC+8",name:"UTC+8"},{value:"UTC+9",name:"UTC+9"},{value:"UTC+10",name:"UTC+10"},{value:"UTC+11",name:"UTC+11"},{value:"UTC+12",name:"UTC+12"},{value:"UTC+13",name:"UTC+13"},{value:"UTC+14",name:"UTC+14"}]}]}}}),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.motiondialer",{url:"/motiondialer",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:16}}})}]),angular.module("xCallyShuttleApp").controller("MotionDialerProcessListCtrl",["$scope","$uibModal","$translate","xAlert","Modal","MotionDialerProcess","uiGridConstants","usSpinnerService",function(a,b,c,d,e,f,g,h){a.initView=function(){return a.gridOptions={paginationPageSizes:[10,25,50,75],paginationPageSize:10,enableFiltering:!0,enableSorting:!0,enableGridMenu:!0,flatEntityAccess:!0,showGridFooter:!0,fastWatch:!0,columnDefs:[{name:"id",width:60},{name:"name"},{name:"queue",enableSorting:!1},{name:"extension",enableSorting:!1},{name:"list_name",cellClass:"ui-grid-vcenter",cellTemplate:"<div>{{row.entity.list ? row.entity.list.name : row.entity.list_name}}</div>",headerCellFilter:"translate",enableSorting:!1},{name:"status",cellTemplate:"<div><a class=\"btn btn-xs\" data-ng-class=\"row.entity.status == 'STOP' ? 'red-sunglo' : 'green-meadow'\" data-ng-href=\"#\">{{ (row.entity.status === 'RUN') ? 'RUNNING' : 'STOPPED'}}</a></div>",cellClass:"ui-grid-vcenter",filter:{type:g.filter.SELECT,selectOptions:[{value:"RUN",label:"RUNNING"},{value:"STOP",label:"STOPPED"}]}},{name:"updatedtime",sort:{direction:g.DESC},enableFiltering:!1},{name:"action",cellTemplate:'<div><a class="btn btn-xs blue-hoki" href="/motiondialer/processes/view/{{row.entity.id}}/overview"><i class="icon-settings"></i></a><a class="btn btn-xs red-sunglo" data-ng-click="grid.appScope.deleteItem(row.entity.name, row.entity.id)"><i class="icon-trash"></i></a></div>',enableSorting:!1,cellClass:"ui-grid-vcenter",enableFiltering:!1}]},f.list({page:1,size:6e5}).$promise.then(function(b){b.status>0?a.gridOptions.data=b.response.RMI.rows:d.show("Please, check your connection!","danger")})["catch"](function(a){d.error(a)})["finally"](function(){h.stop("spinner-grid")})},a.createProcessQueue=function(){var c=b.open({animation:!0,templateUrl:"app/motiondialer/process/list/list.create.queue.modal.html",controller:"MotionDialerProcessListCreateQueueCtrl"});c.result.then(function(b){a.gridOptions.data.push(b.response.RMI)})},a.createProcessSquare=function(){var c=b.open({animation:!0,templateUrl:"app/motiondialer/process/list/list.create.square.modal.html",controller:"MotionDialerProcessListCreateSquareCtrl"});c.result.then(function(b){a.gridOptions.data.push(b.response.RMI)})},a.deleteItem=e.confirm["delete"](function(b){return f["delete"]({id:b}).$promise.then(function(e){e.status>0?(_.remove(a.gridOptions.data,{id:b}),d.show(c.instant("MESSAGE_WELL_DONE"),"success")):d.show(e.message||"Please, check your connection!","danger")})["catch"](function(a){d.error(a)})})}]),angular.module("xCallyShuttleApp").controller("MotionDialerProcessListCreateQueueCtrl",["$scope","$translate","$uibModalInstance","MotionDialerProcess","MotionDialerList","Trunk","VoiceQueue","Route","xAlert","List",function(a,b,c,d,e,f,g,h,i,j){a.form={},a.item={fetch_sort:"ASC",timeout:3},a.initModal=function(){var b;return g.get().$promise.then(function(b){return a.queues={},b&&(a.queues=b.rows),f.get().$promise}).then(function(b){return a.trunks={},b&&(a.trunks=b.rows),a.trunks.push({name:"fake"}),j.get().$promise}).then(function(a){return a&&a.rows.length?(b=a.rows,console.log(b),e.list({page:1,size:6e5}).$promise):void 0}).then(function(c){if(a.lists=[],c&&c.status>0){console.log(c.response.RMI.rows);var d;_.forEach(b,function(b){d=_.find(c.response.RMI.rows,{name:b.name}),d&&a.lists.push(d)})}else i.show("Please, check your connection!","danger")})["catch"](function(a){i.error(a)})},a.save=function(){var e="_process_"+a.item.name+Math.round(1e5*Math.random()),f="Generated by Motion Dialer, Process Queue"+(a.item.description?", "+a.item.description:"");return h.save({appdata:"Internal Call (MotionDialer)",context:"from-sip",exten:e.replace(/\s/g,"_"),type:"internal",description:f,Applications:[{appdata:["CDR(type)=tigerdial"],app:"Set",interval:"*,*,*,*",type:"internal"},{appdata:["QUEUE_PRIO=99"],app:"Set",interval:"*,*,*,*",type:"internal"},{appdata:["CALLERID(name)=${AUTODIAL_NAME}"],app:"Set",interval:"*,*,*,*",type:"internal"},{appdata:["CALLERID(num)=${AUTODIAL_PHONE}"],app:"Set",interval:"*,*,*,*",type:"internal"},{appdata:[a.item.queue.name,"","","",a.item.timeout],app:"Queue",interval:"*,*,*,*",type:"internal"}]}).$promise.then(function(b){return d.insert({name:a.item.name,id_list:a.item.list.id,queue:a.item.queue.name,device:a.item.device.name,context:"from-sip",extension:e.replace(/\s/g,"_"),description:a.item.description,auto_closed:!0,fetch_sort:a.item.fetch_sort,context_for_other_calls:"from-sip",extension_for_other_calls:"_TIGER-DIAL-PEER-DO-NOT-DELETE",hooks:[{target:"http://localhost:9000/api/report/integrations/tdDisposal",type:"http",http_method:"POST",json:"true",event:"hangup"}]}).$promise}).then(function(d){d.status>0?(i.show(b.instant("MESSAGE_WELL_DONE"),"success"),d.response.RMI.list=a.item.list,c.close(d)):i.show(d.message||"Please, check your connection!","danger")})["catch"](function(a){i.error(a)})},a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").controller("MotionDialerProcessListCreateSquareCtrl",["$scope","$translate","$uibModalInstance","MotionDialerProcess","MotionDialerList","SquareProject","Trunk","Route","xAlert","List",function(a,b,c,d,e,f,g,h,i,j){a.form={},a.item={fetch_sort:"ASC"},a.initModal=function(){var b;return f.get().$promise.then(function(b){return a.projects={},b&&(a.projects=b.rows),g.get().$promise}).then(function(b){return a.trunks={},b&&(a.trunks=b.rows),a.trunks.push({name:"fake"}),j.get().$promise}).then(function(a){return a&&a.rows.length?(b=a.rows,e.list({page:1,size:6e5}).$promise):void 0}).then(function(c){if(a.lists=[],c&&c.status>0){var d;_.forEach(b,function(b){d=_.find(c.response.RMI.rows,{name:b.name}),d&&a.lists.push(d)})}else i.show("Please, check your connection!","danger")})["catch"](function(a){i.error(a)})},a.save=function(){var e="_process_"+a.item.name+Math.round(1e5*Math.random()),f="Generated by Motion Dialer, Process Square"+(a.item.description?", "+a.item.description:"");return h.save({appdata:"Internal Call (MotionDialer)",context:"from-sip",exten:e.replace(/\s/g,"_"),type:"internal",description:f,Applications:[{appdata:["CDR(type)=tigerdial"],app:"Set",interval:"*,*,*,*",type:"internal"},{appdata:["agi://127.0.0.1/square",a.item.project.name],app:"AGI",interval:"*,*,*,*",type:"internal"}]}).$promise.then(function(b){return d.insert({name:a.item.name,id_list:a.item.list.id,queue:"none",device:a.item.device.name,context:"from-sip",extension:e.replace(/\s/g,"_"),description:a.item.description,auto_closed:!0,channel_limit:15,fetch_sort:a.item.fetch_sort}).$promise}).then(function(d){d.status>0?(i.show(b.instant("MESSAGE_WELL_DONE"),"success"),d.response.RMI.list=a.item.list,c.close(d)):i.show(d.message||"Please, check your connection!","danger")})["catch"](function(a){i.error(a)})},a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.motiondialer.processes.list",{url:"/list",templateUrl:"app/motiondialer/process/list/list.html",controller:"MotionDialerProcessListCtrl",authenticate:!0})}]),angular.module("xCallyShuttleApp").factory("MotionDialerProcess",["$resource",function(a){return a("/api/rest/process/:controller",null,{list:{method:"POST",params:{controller:"list"}},insert:{method:"POST",params:{controller:"insert"}},"delete":{method:"POST",params:{controller:"delete"}},find:{method:"POST",params:{controller:"find"}},update:{method:"POST",params:{controller:"update"}},logs:{method:"GET",params:{controller:"logs"}}})}]),angular.module("xCallyShuttleApp").factory("MotionDialerSpooler",["$resource",function(a){return a("/api/rest/spooler/:controller/:retrieve/:peer",null,{list:{method:"POST",params:{controller:"list"}},"delete":{method:"POST",params:{controller:"delete"}},find:{method:"POST",params:{controller:"find"}},summary:{method:"POST",params:{controller:"summary"}},close:{method:"POST",params:{controller:"retrieve",retrieve:"close"}},open:{method:"POST",params:{controller:"retrieve",retrieve:"open"}},blacklist:{method:"POST",params:{controller:"retrieve",retrieve:"blacklist"}},planning:{method:"POST",params:{controller:"retrieve",retrieve:"planning"}},planningpeer:{method:"POST",params:{controller:"retrieve",retrieve:"planning",peer:"peer"}},fresh:{method:"POST",params:{controller:"fresh"}}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.motiondialer.processes",{url:"/processes",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("MotionDialerProcessViewCtrl",["$scope","$translate","$stateParams","$uibModal","$state","xAlert","uiGridConstants","usSpinnerService","MotionDialerProcess","MotionDialerSpooler","Modal","VoiceQueue",function(a,b,c,d,e,f,g,h,i,j,k,l){function m(){return j.fresh({id_process:parseInt(c.id)}).$promise.then(function(b){b.status>0?(a.process.runtime||(a.process.runtime={}),a.process.runtime.fresh=b.response.RMI.value):f.show(b.message||"Please, check your connection!","danger")})["catch"](function(a){f.error(a)})}a.process={},a.techs=["SIP","IAX","LOCAL","KHOMP"],a.dialFormats=["tech/device/number","tech/number@device"],a.checkDuplicates=["ALWAYS","IFOPEN","NO"],a.codecs=["g729","ilbc","gsm","ulaw","alaw"],a._=_,a.getProcess=function(){return i.find({id:parseInt(c.id)}).$promise.then(function(b){b.status>0?(b.response.RMI.codecs=b.response.RMI.codecs.split(","),a.process=b.response.RMI,a.process.hooks&&a.process.hooks.length?a.process.disposal=!0:a.process.disposal=!1,m()):f.show(b.message||"Please, check your connection!","danger")})["catch"](function(a){f.error(a)})},a.getSummary=function(){return j.summary({id_process:parseInt(c.id)}).$promise.then(function(b){if(b.status>0){a.summary=b.response.RMI.totals,a.total=0;for(var c=0;c<a.summary.length;c++)a.total+=a.summary[c][1]}else f.show(b.message||"Please, check your connection!","danger")})["catch"](function(a){f.error(a)})["finally"](function(){h.stop("spinner-grid")})},a.updateProcess=function(){var c=_.clone(a.process);return delete c.updatedtime,delete c.id_list,delete c.createdtime,delete c.runtime,delete c.fetch_sort,delete c.list,c.codecs=c.codecs.join(","),""===c.timezone&&delete c.timezone,c.disposal?c.hooks=[{target:"http://localhost:9000/api/report/integrations/tdDisposal",type:"http",http_method:"POST",json:"true",event:"hangup"}]:c.hooks=[],delete c.disposal,i.update(c).$promise.then(function(c){c.status>0?(c.response.RMI.codecs=c.response.RMI.codecs.split(","),a.process=c.response.RMI,a.process.hooks&&a.process.hooks.length?a.process.disposal=!0:a.process.disposal=!1,f.show(b.instant("MESSAGE_WELL_DONE"),"success")):c.response.RMI.errors.forEach(function(a){a?f.show(a.field+": "+a.error,"danger"):f.show("Please, check your connection!","danger")})})["catch"](function(a){f.error(a)})},a.getSpooler=function(){return h.spin("spinner-grid"),a.gridOptions||(a.gridOptions={paginationPageSizes:[10,25,50,75],paginationPageSize:10,enableFiltering:!0,enableSorting:!0,enableGridMenu:!0,flatEntityAccess:!0,showGridFooter:!0,fastWatch:!0,headerCellFilter:"translate",columnDefs:[{name:"name"},{name:"phones",cellTemplate:"<div>{{row.entity.phones.join(',')}}</div>",cellClass:"ui-grid-vcenter"},{name:"retrieve",displayName:"APPLICATION_STATUS",headerCellFilter:"translate",filter:{type:g.filter.SELECT,selectOptions:[{value:"PLANNED_PEER",label:"PLANNED PEER"},{value:"PLANNED",label:"PLANNED"},{value:"BLACK_LIST",label:"BLACKLIST"},{value:"OPEN",label:"OPEN"},{value:"CLOSED",label:"CLOSED"},{value:"MAX_ATTEMPTS",label:"MAX ATTEMPTS"},{value:"COUNTER_BLOCK",label:"COUNTER BLOCK"},{value:"PLANNED_REQUEST",label:"PLANNED REQUEST"},{value:"DELETE",label:"DELETE"}]}},{name:"counter",cellTemplate:"<div>{{grid.appScope.getCounter(row.entity)}}</div>",cellClass:"ui-grid-vcenter",enableFiltering:!1},{name:"planningtime",cellTemplate:"<div><span data-ng-if=\"row.entity.retrieve === 'PLANNED_PEER' || row.entity.retrieve === 'PLANNED'\">{{row.entity.planningtime | date:'yyyy-MM-dd HH:mm'}}</span></div>",cellClass:"ui-grid-vcenter",enableFiltering:!1},{name:"planningpeer",cellTemplate:"<div><span data-ng-if=\"row.entity.retrieve === 'PLANNED_PEER'\">{{row.entity.planningpeer}}</span></div>",cellClass:"ui-grid-vcenter",enableFiltering:!1},{name:"action",cellTemplate:'<div><a class="btn btn-xs green" data-ng-click="grid.appScope.historySpooler(row.entity.history)"><i class="icon-info"></i></a> <a class="btn btn-xs blue-hoki" data-ng-click="grid.appScope.editSpooler(row.entity)"><i class="icon-settings"></i></a></div>',enableSorting:!1,cellClass:"ui-grid-vcenter",enableFiltering:!1}]}),j.list({id_process:parseInt(c.id),page:1,size:6e5}).$promise.then(function(b){b.status>0?a.gridOptions.data=b.response.RMI.rows:f.show(b.message||"Please, check your connection!","danger")})["catch"](function(a){f.error(a)})["finally"](function(){h.stop("spinner-grid")})},a.deleteSpooler=k.confirm["delete"](function(c){return j["delete"]({id:c}).$promise.then(function(d){d.status>0?(_.remove(a.gridOptions.data,{id:c}),f.show(b.instant("MESSAGE_WELL_DONE"),"success")):f.show(d.message||"Please, check your connection!","danger")})["catch"](function(a){f.error(a)})}),a.historySpooler=function(b){var c=d.open({animation:!0,templateUrl:"app/motiondialer/process/view/view.spooler.history.modal.html",controller:"MotionDialerViewSpoolerHistoryCtrl",resolve:{historySpooler:function(){return b}}});c.result.then(function(b){a.gridOptions.data.push(b.response.RMI)})},a.editSpooler=function(a){var b=d.open({animation:!0,templateUrl:"app/motiondialer/process/view/view.spooler.edit.modal.html",controller:"MotionDialerViewSpoolerEditCtrl",resolve:{entitySpooler:function(){return _.clone(a)}}});b.result.then(function(b){_.merge(a,b)})},a.initSettings=function(){return a.queues=null,l.get().$promise.then(function(b){b&&(a.queues=b.rows)})["catch"](function(a){f.error(a)})},a.createInterval=function(b){var c=d.open({ -animation:!0,templateUrl:"app/motiondialer/process/view/view.create.interval.modal.html",controller:"MotionDialerViewCreateIntervalCtrl",resolve:{objectProcess:function(){return a.process},intervalType:function(){return b},intervalValue:function(){return null},intervalIndex:function(){return null}}});c.result.then(function(b){a.process=b})},a.editInterval=function(b,c,e){var f=d.open({animation:!0,templateUrl:"app/motiondialer/process/view/view.create.interval.modal.html",controller:"MotionDialerViewCreateIntervalCtrl",resolve:{objectProcess:function(){return a.process},intervalType:function(){return b},intervalValue:function(){return c},intervalIndex:function(){return e}}});f.result.then(function(b){a.process=b})},a.deleteInterval=k.confirm["delete"](function(c,d){var e={id:a.process.id};return d?(e.intervals=[],e.intervals=e.intervals.concat(a.process.intervals),e.intervals.splice(c,1)):(e.not_intervals=[],e.not_intervals=e.not_intervals.concat(a.process.not_intervals),e.not_intervals.splice(c,1)),i.update(e).$promise.then(function(c){c.status>0?(c.response.RMI.codecs=c.response.RMI.codecs.split(","),a.process=c.response.RMI,f.show(b.instant("MESSAGE_WELL_DONE"),"success")):c.response.RMI.errors.forEach(function(a){a?f.show(a.field+": "+a.error,"danger"):f.show("Please, check your connection!","danger")})})["catch"](function(a){f.error(a)})}),a.runOrStop=function(){var b=d.open({animation:!0,templateUrl:"app/motiondialer/process/view/view.run.process.modal.html",controller:"MotionDialerViewRunProcessCtrl",resolve:{statusProcess:function(){return a.process.status}}});b.result.then(function(b){a.process.status=b.status})},a.goToContacts=function(a){a&&e.go("main.contactmanager.contacts.list",{listId:a})},a.getCounter=function(a){return a.counter+a.counter_amd+a.counter_busy+a.counter_congestion+a.counter_drop+a.counter_failed+a.counter_noanswer+a.counter_nosuchextension+a.counter_ringtimeout}}]),angular.module("xCallyShuttleApp").controller("MotionDialerViewCreateIntervalCtrl",["$scope","$translate","$uibModalInstance","$stateParams","MotionDialerProcess","xAlert","objectProcess","intervalType","intervalValue","intervalIndex","interval",function(a,b,c,d,e,f,g,h,i,j,k){function l(a){var b,c=a.split("|"),d={};return c.forEach(function(a,c){switch(c){case 0:"*"!==a?(b=a.split("-"),d.t_from=moment(b[0],"HH:mm"),d.t_to=moment(b[1],"HH:mm"),d.alwaysTime=!1):(d.t_from=moment(new Date),d.t_to=moment(new Date),d.alwaysTime=!0);break;case 1:"*"!==a?(b=a.split("-"),d.wd_from=b[0].toLowerCase(),d.wd_to=b[1]?b[1].toLowerCase():"always"):(d.wd_from="always",d.wd_to="always");break;case 2:"*"!==a?(b=a.split("-"),d.md_from=b[0],d.md_to=b[1]?b[1]:"always"):(d.md_from="always",d.md_to="always");break;case 3:"*"!==a?(b=a.split("-"),d.m_from=b[0],d.m_to=b[1]?b[1]:"always"):(d.m_from="always",d.m_to="always")}}),d}function m(a){var b,c,d,e;return b=a.t_from&&a.t_to&&!a.alwaysTime?moment(a.t_from).format("HH:mm")+"-"+moment(a.t_to).format("HH:mm"):"*",a.wd_from&&"always"!==a.wd_from?(c=a.wd_from.toUpperCase(),a.wd_to&&"always"!==a.wd_to&&(c+="-"+a.wd_to.toUpperCase())):c="*",a.md_from&&"always"!==a.md_from?(d=a.md_from,a.md_to&&"always"!==a.md_to&&(d+="-"+a.md_to)):d="*",a.m_from&&"always"!==a.m_from?(e=a.m_from,a.m_to&&"always"!==a.m_to&&(e+="-"+a.m_to)):e="*",b+"|"+c+"|"+d+"|"+e}a.isNew=!1,a.form={},a.$interval=k.interval,i||(i=h?"8:00-20:00|MON-FRI|*|*":"00:01-07:59|SAT-SUN|*|*",a.isNew=!0),a.splittedInterval=l(i),a.save=function(){var d=m(a.splittedInterval);console.log(d);var i={id:g.id};return h?(i.intervals=[],i.intervals=i.intervals.concat(g.intervals),a.isNew?i.intervals.push(d):i.intervals[j]=d):(i.not_intervals=[],i.not_intervals=i.not_intervals.concat(g.not_intervals),a.isNew?i.not_intervals.push(d):i.not_intervals[j]=d),console.log(i),e.update(i).$promise.then(function(a){a.status>0?(a.response.RMI.codecs=a.response.RMI.codecs.split(","),f.show(b.instant("MESSAGE_WELL_DONE"),"success"),c.close(a.response.RMI)):a.response.RMI.errors.forEach(function(a){a?f.show(a.field+": "+a.error,"danger"):f.show("Please, check your connection!","danger")})})["catch"](function(a){f.error(a)})},a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.motiondialer.processes.view",{url:"/view/:id",templateUrl:"app/motiondialer/process/view/view.html",controller:"MotionDialerProcessViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.motiondialer.processes.view.overview",{url:"/overview",templateUrl:"app/motiondialer/process/view/view.overview.html"}).state("main.motiondialer.processes.view.settings",{url:"/settings",templateUrl:"app/motiondialer/process/view/view.settings.html"}).state("main.motiondialer.processes.view.intervals",{url:"/intervals",templateUrl:"app/motiondialer/process/view/view.intervals.html"}).state("main.motiondialer.processes.view.spooler",{url:"/spooler",templateUrl:"app/motiondialer/process/view/view.spooler.html"})}]),angular.module("xCallyShuttleApp").controller("MotionDialerViewRunProcessCtrl",["$scope","$stateParams","$uibModalInstance","$translate","statusProcess","MotionDialerProcess","xAlert",function(a,b,c,d,e,f,g){a.status="RUN"===e?"STOP":"RUN",a.yes=function(){f.update({id:parseInt(b.id),status:a.status}).$promise.then(function(a){a.status>0?(g.show(d.instant("MESSAGE_WELL_DONE"),"success"),c.close(a.response.RMI)):g.show(a.message||"Please, check your connection!","danger")})["catch"](function(a){g.error(a)})},a.no=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").controller("MotionDialerViewSpoolerEditCtrl",["$scope","$translate","$uibModalInstance","$stateParams","MotionDialerSpooler","xAlert","entitySpooler","Agent",function(a,b,c,d,e,f,g,h){a.moment=moment,a.entitySpooler=g,_.includes(["PLANNED","PLANNED_PEER"],a.entitySpooler.retrieve)||(a.entitySpooler.planningtime=moment()),a.initModal=function(){return h.get().$promise.then(function(b){a.agents=[],b&&b.rows.forEach(function(b){a.agents.push("SIP/"+b.name)})})["catch"](function(a){f.error(a)})},a.save=function(){var d;switch(a.entitySpooler.retrieve){case"CLOSED":d=e.close({id:parseInt(a.entitySpooler.id)});break;case"OPEN":d=e.open({id:parseInt(a.entitySpooler.id)});break;case"BLACK_LIST":d=e.blacklist({id:parseInt(a.entitySpooler.id)});break;case"PLANNED":d=e.planning({id:parseInt(a.entitySpooler.id),date:moment(a.entitySpooler.planningtime).format("YYYY-MM-DD HH:mm")});break;case"PLANNED_PEER":d=e.planningpeer({id:parseInt(a.entitySpooler.id),date:moment(a.entitySpooler.planningtime).format("YYYY-MM-DD HH:mm"),peer:a.entitySpooler.planningpeer})}d?d.$promise.then(function(d){console.log(d),d.status>0?(f.show(b.instant("MESSAGE_WELL_DONE"),"success"),c.close(a.entitySpooler)):d.response.RMI.errors.forEach(function(a){a?f.show(a.field+": "+a.error,"danger"):f.show("Please, check your connection!","danger")})})["catch"](function(a){f.error(a)}):f.show("RETRIEVE NOT FOUND","danger")},a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").controller("MotionDialerViewSpoolerHistoryCtrl",["$scope","$translate","$uibModalInstance","$stateParams","MotionDialerSpooler","xAlert","historySpooler",function(a,b,c,d,e,f,g){a.historySpooler=g,a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").factory("ReportMotionDialer",["$resource",function(a){return a("/api/report/motiondialer/:id/:controller",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("ResetCtrl",["$scope","Auth","$location","$window","$rootScope","Setting","xAlert","$stateParams","$state",function(a,b,c,d,e,f,g,h,i){a.userReset={},a.getInfo=function(){return f.get({controller:"info"}).$promise.then(function(b){return a.info=b,f.get({id:1}).$promise}).then(function(b){a.setting=b})["catch"](function(a){console.error(a)})},e.bodyLayout="login",a.$on("$viewContentLoaded",function(){Metronic.init(),Layout.init()}),a.reset=function(){b.reset({token:h.token,password:a.userReset.password}).then(function(){i.go("login",{reset:!0})})["catch"](function(a){g.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("reset",{url:"/reset/:token",templateUrl:"app/reset/reset.html",controller:"ResetCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/login.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("SalesforceListCtrl",["$scope","SalesforceAccount","gridOptions","xAlert","$translate",function(a,b,c,d,e){a.initView=function(){var d={exporterCsvFilename:"salesforce_account.csv",columnDefs:[{name:"name",displayName:"APPLICATION_NAME"},{name:"username"},{name:"remoteUri",displayName:"APPLICATION_URI"},{name:"action",buttons:[{"class":"blue-hoki",href:"/salesforce/view/{{row.entity.id}}/account",name:"profile"},{"class":"green-jungle",name:"check",onClick:"grid.appScope.checkAccount(row.entity.id)"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=c.gridOptions(b,d,a)},a.checkAccount=function(a){return b.check({id:a}).$promise.then(function(){d.show(e.instant("MESSAGE_ACCOUNT_VERIFIED"),"success")})["catch"](function(){d.show(e.instant("MESSAGE_ACCOUNT_INVALID"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.salesforce.list",{url:"/list",templateUrl:"app/salesforce/list/list.html",controller:"SalesforceListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").factory("SalesforceAccount",["$resource",function(a){return a("/api/salesforce/accounts/:id/:controller",{id:"@id"},{update:{method:"PUT"},fields:{params:{controller:"fields"},isArray:!0},check:{params:{controller:"check"}}})}]).factory("SalesforceConfiguration",["$resource",function(a){return a("/api/salesforce/accounts/:accountId/configurations/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]).factory("SalesforceField",["$resource",function(a){return a("/api/salesforce/accounts/:accountId/configurations/:configurationId/fields/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.salesforce",{url:"/salesforce",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin"],redirectTo:"main.dashboard.voice"}}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.salesforce.view.configurations",{url:"/configurations",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("SalesforceViewConfigurationListCtrl",["$scope","$stateParams","$translate","gridOptions","SalesforceConfiguration","$uibModal",function(a,b,c,d,e,f){a.initView=function(){var c={exporterCsvFilename:"salesforce_configurations.csv",columnDefs:[{name:"name"},{name:"description"},{name:"action",width:125,buttons:[{"class":"blue-hoki",href:"/salesforce/view/{{row.entity.AccountId}}/configurations/view/{{row.entity.id}}",name:"profile"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=d.gridOptions(e,c,a,{accountId:b.id})},a.createItem=function(){var b=f.open({animation:!0,templateUrl:"app/salesforce/view/configuration/list/create.modal.html",controller:"SalesforceCreateConfigurationCtrl"});b.result.then(function(){a.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("SalesforceCreateConfigurationCtrl",["$scope","$translate","$uibModalInstance","SalesforceConfiguration","xAlert","$stateParams","channel",function(a,b,c,d,e,f,g){a.form={},a.item={},a.channels=g,a.item.channel="voice",a.item.type="Queue",a.save=function(){return d.save({accountId:f.id},a.item).$promise.then(function(a){e.show(b.instant("MESSAGE_WELL_DONE"),"success"),c.close(a)})["catch"](function(a){e.error(a)})},a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.salesforce.view.configurations.list",{url:"/list",templateUrl:"app/salesforce/view/configuration/list/list.html",controller:"SalesforceViewConfigurationListCtrl"})}]),angular.module("xCallyShuttleApp").controller("SalesforceViewConfigurationViewCtrl",["$scope","$filter","$stateParams","$translate","socket","variable","xAlert","SalesforceAccount","SalesforceConfiguration","SalesforceField","Variable",function(a,b,c,d,e,f,g,h,i,j,k){a.$on("$destroy",function(){e.unsyncUpdates("salesforce_field")}),a.config={autoHideScrollbar:!1,theme:"dark",advanced:{updateOnContentResize:!0},setHeight:300,scrollInertia:0},a.fieldType=[{type:"string",title:"String"},{type:"variable",title:"Variable"},{type:"customVariable",title:"Custom Variable"}],a.descFieldType=[{type:"string",title:"String"},{type:"keyValue",title:"Key Value"}],a.groupVariableByGroup=function(a){switch(a.group){case"voice_queue":return"Voice: Queue";default:return"Other"}},a.initView=function(){a.configurationName="",a.subjectConfig=[],a.descriptionConfig=[],a.fieldConfig=[],a.variables=f},a.getConfiguration=function(){return i.get({accountId:c.id,id:c.configurationId}).$promise.then(function(b){a.configurationName=b.name,a.subjectConfig=b.Subject,a.descriptionConfig=b.Description,a.fieldConfig=b.Field,e.socket.on("salesforce_field:remove",function(b){_.remove(a.subjectConfig,{id:b.id}),_.remove(a.descriptionConfig,{id:b.id}),_.remove(a.fieldConfig,{id:b.id})})})["catch"](function(a){g.error(a)})},a.getCustomVariables=function(){return k.get().$promise.then(function(b){a.customVariables=b.rows})["catch"](function(a){g.error(a)})},a.getFields=function(){return h.fields({id:c.id}).$promise.then(function(c){a.accountFields=_.sortBy(b("salesforce")(c),["name"])})["catch"](function(a){g.error(a)})},a.addItem=function(b){var d={};switch(b){case"subject":case"description":d={type:"string",content:""};break;case"field":d={content:""}}return i.save({accountId:c.id,id:c.configurationId,controller:b},d).$promise.then(function(c){switch(b){case"subject":a.subjectConfig.push(c);break;case"description":a.descriptionConfig.push(c);break;case"field":a.fieldConfig.push(c)}})["catch"](function(a){g.error(a)})},a.changeType=function(b){"variable"===b.type?(b.content="",b.variableName=""):"string"===b.type?(b.VariableId=null,b.variableName=""):"customVariable"===b.type&&(b.VariableId=null,b.content=""),a.updateField(b)},a.updateField=function(a){return j.update({accountId:c.id,configurationId:c.configurationId,id:a.id},a).$promise.then(function(){})["catch"](function(a){g.error(a)})},a.removeItem=function(a){return j["delete"]({accountId:c.id,configurationId:c.configurationId,id:a.id}).$promise.then(function(){g.show(d.instant("MESSAGE_WELL_DONE")+"!","success")})["catch"](function(a){g.error(a)})},a.changeDescType=function(b){"keyValue"===b.type?(b.content="","string"===b.keyType?(b.VariableId=null,b.variableName=""):"variable"===b.keyType?(b.keyContent="",b.VariableId=null):"customVariable"===b.keyType&&(b.keyContent="",b.variableName="")):"string"===b.type&&(b.VariableId=null,b.variableName="",b.key="",b.keyContent=""),a.updateField(b)},a.getSystemFieldOptions=function(b){if(b){var c=_.find(a.accountFields,"name",b);if(c)switch(c.type){case"picklist":return c.picklistValues;default:return}}},a.changeFieldType=function(b){b.content="",b.variableName="",b.nameField="",b.VariableId=null,a.updateField(b)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.salesforce.view.configurations.view",{url:"/view/:configurationId",templateUrl:"app/salesforce/view/configuration/view/view.html",controller:"SalesforceViewConfigurationViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("SalesforceViewCtrl",["$scope","$http","$stateParams","$translate","$location","WizardHandler","socket","xAlert","Modal","$filter","SalesforceAccount",function(a,b,c,d,e,f,g,h,i,j,k){a.initView=function(){return k.get({id:c.id}).$promise.then(function(b){a.account=b})["catch"](function(a){h.error(a)})},a.updateItem=function(){return k.update({id:c.id},a.account).$promise.then(function(){h.show(d.instant("MESSAGE_WELL_DONE")+".","success")})["catch"](function(a){h.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.salesforce.view",{url:"/view/:id",templateUrl:"app/salesforce/view/view.html",controller:"SalesforceViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.salesforce.view.account",{url:"/account",templateUrl:"app/salesforce/view/view.account.html"})}]),angular.module("xCallyShuttleApp").controller("SalesforceWizardCtrl",["$scope","$http","$location","$translate","xAlert","WizardHandler","SalesforceAccount",function(a,b,c,d,e,f,g){a.translate=d,a.initWizard=function(){a.$translate=d,a.forms={},a.item={},a.item.serverUrl=c.protocol()+"://"+location.host},a.next=function(){f.wizard().next()},a.exitValidation=function(a){return a},a.createItem=function(){return g.save(a.item).$promise.then(function(){e.show(d.instant("MESSAGE_WELL_DONE")+".","success"),c.path("/salesforce/list")})["catch"](function(a){e.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.salesforce.wizard",{url:"/wizard",templateUrl:"app/salesforce/wizard/wizard.html",controller:"SalesforceWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.customization",{url:"/customization",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("CustomizationGeneralViewCtrl",["$scope","gridOptions","$uibModal","FileUploader","$cookieStore","xAlert","$translate","Setting","$rootScope",function(a,b,c,d,e,f,g,h,i){a.radioSwitch={isActive:!!i.license.custom,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"};var j=a.uploader=new d({url:"api/settings/logo/main",queueLimit:1,withCredentials:!0,headers:{Authorization:"Bearer "+e.get("token")}});j.filters.push({name:"imageFilter",fn:function(a){var b="|"+a.type.slice(a.type.lastIndexOf("/")+1)+"|";return-1!=="|jpg|png|jpeg|".indexOf(b)}}),j.onSuccessItem=function(a,b){i.settings.logo=b.logo,f.show(g.instant("MESSAGE_WELL_DONE"),"success")},j.onErrorItem=function(){f.show(g.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")},j.onCompleteAll=function(){j.clearQueue()};var k=a.uploader2=new d({url:"api/settings/logo/login",queueLimit:1,withCredentials:!0,headers:{Authorization:"Bearer "+e.get("token")}});k.filters.push({name:"imageFilter",fn:function(a){var b="|"+a.type.slice(a.type.lastIndexOf("/")+1)+"|";return-1!=="|jpg|png|jpeg|".indexOf(b)}}),k.onSuccessItem=function(a,b){f.show(g.instant("MESSAGE_WELL_DONE"),"success")},k.onErrorItem=function(){f.show(g.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")},k.onCompleteAll=function(){k.clearQueue()},a.initView=function(){return h.get({id:1}).$promise.then(function(b){a.settings={defaultLogo:b.defaultLogo,defaultLoginLogo:b.defaultLoginLogo,footerWhiteLabel:b.footerWhiteLabel,defaultFooterWhiteLabel:b.defaultFooterWhiteLabel}})["catch"](function(a){f.error(a)})},a.update=function(){return h.update({id:1},a.settings).$promise.then(function(b){_.merge(i.settings,a.settings),f.show(g.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.customization.view.general",{url:"/general",templateUrl:"app/setting/customization/view/general/general.html",controller:"CustomizationGeneralViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/scripts/jquery.sparkline.min.js","assets/plugins/bootstrap-fileinput/bootstrap-fileinput.js","assets/scripts/profile.js"]})}]}})}]),angular.module("xCallyShuttleApp").controller("CustomizationMotionBarViewCtrl",["$scope","gridOptions","$uibModal","FileUploader","$cookieStore","xAlert","$translate","Setting","$rootScope","$location",function(a,b,c,d,e,f,g,h,i,j){!i.license.preferred&&j.path("/landing"),a.radioSwitch={isActive:!!i.license.preferred,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"};var k=a.uploader=new d({url:"api/settings/logo/motionbar",queueLimit:1,withCredentials:!0,headers:{Authorization:"Bearer "+e.get("token")}});k.filters.push({name:"imageFilter",fn:function(a){var b="|"+a.type.slice(a.type.lastIndexOf("/")+1)+"|";return-1!=="|jpg|png|jpeg|".indexOf(b)}}),k.onSuccessItem=function(a,b){f.show(g.instant("MESSAGE_WELL_DONE"),"success")},k.onErrorItem=function(){f.show(g.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")},k.onCompleteAll=function(){k.clearQueue()},a.initView=function(){return h.get({id:1}).$promise.then(function(b){a.settings={defaultMotionBarLogo:b.defaultMotionBarLogo}})["catch"](function(a){f.error(a)})},a.update=function(){return h.update({id:1},a.settings).$promise.then(function(a){f.show(g.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.customization.view.motionbar",{url:"/motionbar",templateUrl:"app/setting/customization/view/motionbar/motionbar.html",controller:"CustomizationMotionBarViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/scripts/jquery.sparkline.min.js","assets/plugins/bootstrap-fileinput/bootstrap-fileinput.js","assets/scripts/profile.js"]})}]}})}]),angular.module("xCallyShuttleApp").controller("CustomizationViewCtrl",["$scope",function(a){}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.customization.view",{url:"/view",templateUrl:"app/setting/customization/view/view.html",controller:"CustomizationViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.general",{url:"/general",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("GeneralMainViewCtrl",["$scope","xAlert","$translate","Setting",function(a,b,c,d){a.initView=function(){return d.get({id:1}).$promise.then(function(b){a.settings={agi_port:b.agi_port,min_internal:b.min_internal,min_mailbox:b.min_mailbox,securePassword:b.securePassword,mailRoutingCapacity:b.mailRoutingCapacity,chatRoutingCapacity:b.chatRoutingCapacity,logoutOnWindowClose:b.logoutOnWindowClose}})["catch"](function(a){b.error(a)})},a.update=function(){return d.update({id:1},a.settings).$promise.then(function(){b.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){b.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.general.view.main",{url:"/main",templateUrl:"app/setting/general/view/main/main.html",controller:"GeneralMainViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("GeneralViewCtrl",["$scope",function(a){}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.general.view",{url:"/view",templateUrl:"app/setting/general/view/view.html",controller:"GeneralViewCtrl"})}]),angular.module("xCallyShuttleApp").factory("License",["$resource",function(a){return a("/api/licenses/:id/:controller",{id:"@id"},{request:{method:"POST",params:{id:"request"}},update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.license",{url:"/license",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("LicenseUpdateCtrl",["$scope","$translate","$uibModalInstance","xAlert","licenseString","License",function(a,b,c,d,e,f){a.form={},a.item={license:e.value},a.update=function(){return f.update(a.item).$promise.then(function(a){d.show(b.instant("MESSAGE_WELL_DONE"),"success"),c.close(a)})["catch"](function(a){d.error(a)})},a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").controller("LicenseViewCtrl",["$scope","$rootScope","$translate","License","xAlert","$window","$uibModal",function(a,b,c,d,e,f,g){a.radioSwitch={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.initView=function(){return d.get(function(b){a.item=b.license,b.months||(a.item.months=1),a.updateRequestExpiration(),a.licenseString=b.licenseString})},a.updateRequestExpiration=function(){a.requestExpiration=moment().add(a.item.months||1,"month").format()},a.plans=[{name:"APPLICATION_MONTH_TO_MONTH",value:1},{name:"APPLICATION_YEARLY",value:12},{name:"APPLICATION_PERPETUAL",value:36}],a.submitRequest=function(){return d.request(_.assign({},a.item,{expiration:a.requestExpiration}),function(){e.show(c.instant("MESSAGE_WELL_DONE"),"success")},function(a){switch(a.status){case 304:e.show(a.statusText,"info");break;default:e.error(a)}})},a.updateLicense=function(){var b=g.open({animation:!0,templateUrl:"app/setting/license/view/update.modal.html",controller:"LicenseUpdateCtrl",resolve:{licenseString:{value:a.licenseString}}});b.result.then(function(){f.location.reload()})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.license.view",{url:"/view",templateUrl:"app/setting/license/view/view.html",controller:"LicenseViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/pricing-tables.css"]}])}]}})}]),angular.module("xCallyShuttleApp").factory("Externip",["$resource",function(a){return a("/api/network/externips/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("Localnet",["$resource",function(a){return a("/api/network/localnets/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.network",{url:"/network",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("ExternipCtrl",["$scope","$uibModal","gridOptions","Externip",function(a,b,c,d){a.initView=function(){var b={exporterCsvFilename:"network_externip.csv",columnDefs:[{name:"value"},{name:"action",buttons:[{"class":"blue-hoki",onClick:"grid.appScope.createItem(row.entity)",name:"profile"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=c.gridOptions(d,b,a)},a.createItem=function(c){var d=b.open({animation:!0,templateUrl:"app/setting/network/view/externip/externip.create.modal.html",controller:"ExternipCreateCtrl",resolve:{item:c}});d.result.then(function(){a.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("ExternipCreateCtrl",["$scope","$translate","$uibModalInstance","$stateParams","Externip","xAlert","item",function(a,b,c,d,e,f,g){a.initModal=function(){a.form={},a.item=g||{},a.title=g?b.instant("APPLICATION_EDIT_EXTERNIP"):b.instant("APPLICATION_NEW_EXTERNIP")},a.save=function(){return g?e.update({id:a.item.id},a.item).$promise.then(function(a){f.show(b.instant("MESSAGE_WELL_DONE"),"success"),c.close(a)})["catch"](function(a){f.error(a)}):e.save({},a.item).$promise.then(function(a){f.show(b.instant("MESSAGE_WELL_DONE"),"success"),c.close(a)})["catch"](function(a){f.error(a)})},a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.network.view.externip",{url:"/externip",templateUrl:"app/setting/network/view/externip/externip.html",controller:"ExternipCtrl"})}]),angular.module("xCallyShuttleApp").controller("LocalnetCtrl",["$scope","gridOptions","Localnet","$uibModal",function(a,b,c,d){a.initView=function(){var d={exporterCsvFilename:"network_localnet.csv",columnDefs:[{name:"value"},{name:"action",buttons:[{"class":"blue-hoki",onClick:"grid.appScope.createItem(row.entity)",name:"profile"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=b.gridOptions(c,d,a)},a.createItem=function(b){var c=d.open({animation:!0,templateUrl:"app/setting/network/view/localnet/localnet.create.modal.html",controller:"LocalnetCreateCtrl",resolve:{item:b}});c.result.then(function(){a.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("LocalnetCreateCtrl",["$scope","$translate","$uibModalInstance","$stateParams","Localnet","xAlert","item",function(a,b,c,d,e,f,g){a.initModal=function(){if(a.form={},a.item=g||{},a.title=g?b.instant("APPLICATION_EDIT_LOCALNET"):b.instant("APPLICATION_NEW_LOCALNET"),g&&g.value){var c=a.item.value.split("/");c.length>1&&(a.item.address=c[0],a.item.mask=c[1])}},a.save=function(){var d=a.item.address+"/"+a.item.mask;return g?e.update({id:a.item.id},{value:d}).$promise.then(function(a){f.show(b.instant("MESSAGE_WELL_DONE"),"success"),c.close(a)})["catch"](function(a){f.error(a)}):e.save({},{value:d}).$promise.then(function(a){f.show(b.instant("MESSAGE_WELL_DONE"),"success"),c.close(a)})["catch"](function(a){f.error(a)})},a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.network.view.localnet",{url:"/localnet",templateUrl:"app/setting/network/view/localnet/localnet.html",controller:"LocalnetCtrl"})}]),angular.module("xCallyShuttleApp").controller("StunaddrCtrl",["$scope","Setting","xAlert","$translate",function(a,b,c,d){a.initView=function(){return b.get({id:1}).$promise.then(function(b){a.item={stunaddr:b.stunaddr}})["catch"](function(a){c.error(a)})},a.update=function(){return b.update({id:1},a.item).$promise.then(function(){c.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){c.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.network.view.stunaddr",{url:"/stunaddr",templateUrl:"app/setting/network/view/stunaddr/stunaddr.html",controller:"StunaddrCtrl"})}]),angular.module("xCallyShuttleApp").controller("NetworkViewCtrl",function(){}),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.network.view",{url:"/view",templateUrl:"app/setting/network/view/view.html",controller:"NetworkViewCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting",{url:"/setting",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:18}}})}]),angular.module("xCallyShuttleApp").factory("Setting",["$resource",function(a){return a("/api/settings/:id/:controller/:param",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("Smtp",["$resource",function(a){return a("/api/mail/servers/out/:id/:controller/:controller2",{id:"@id"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.smtp",{url:"/smtp",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("SmtpViewCtrl",["$scope","$stateParams","$translate","socket","MailServerOut","Setting","MailAccount","xAlert","Modal",function(a,b,c,d,e,f,g,h,i){a.initView=function(){return a.smtpDisabled=!1,a.isActive=!0,a.size="small",a.animate=!0,a.radioOff=!0, -a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.CONST_TIMEOUT=3e4,a.item={account:{service:!0,MailServerOut:{ssl:!1}}},a.$on("$destroy",function(){d.socket.removeAllListeners("mail_server_out:state")}),d.socket.on("mail_server_out:state",function(b){a.item&&Number(b.id)===a.item.account.MailServerOut.id&&(a.item.account.MailServerOut.state=b.state,a.item.account.MailServerOut.source=JSON.parse(b.source))}),f.get({id:"smtp"}).$promise.then(function(b){a.item.account=b})["catch"](function(b){switch(b.status){case 404:a.item.account.name=null,a.item.account.address=null,a.item.account.description="Custom account",a.item.account.MailServerOut={port:465,ssl:!0},h.show("Service SMTP server not configured.","info");break;default:h.error(b)}})},a.updateItem=function(){return a.item.account.id?(delete a.item.account.MailServerOut.state,delete a.item.account.MailServerOut.source,f.update({id:"smtp",controller:a.item.account.id},a.item.account).$promise.then(function(){h.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){h.error(a)})):f.save({id:"smtp"},{description:a.item.account.description,name:a.item.account.name,address:a.item.account.address,service:a.item.account.service,custom:!0,MailServerOut:a.item.account.MailServerOut}).$promise.then(function(b){a.item.account=b,h.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){h.error(a)})},a.test=function(){return e.get({id:a.item.account.MailServerOut.id,controller:"test"}).$promise["catch"](function(a){console.error(a)})},a["delete"]=i.confirm["delete"](function(){return f["delete"]({id:"smtp"}).$promise.then(function(){h.show(c.instant("MESSAGE_WELL_DONE")+"!","success"),a.item={account:{service:!0,name:null,address:null,description:"Custom account",MailServerOut:{port:465,ssl:!0}}}})["catch"](function(a){h.error(a)})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.smtp.view",{url:"/view",templateUrl:"app/setting/smtp/view/view.html",controller:"SmtpViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.system",{url:"/system",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("SystemViewConsoleCtrl",["$scope","Setting","xAlert","usSpinnerService","$timeout","$translate","socket",function(a,b,c,d,e,f,g){function h(b){var c=_.findIndex(a.commandHistory.commands,function(a){return a===b});-1!==c&&a.commandHistory.commands.splice(c,1),a.commandHistory.commands.unshift(b)}a.output="<b>"+f.instant("APPLICATION_CONSOLE_WELCOME")+"</b><br/>",a.item={command:""},a.commandHistory={commands:[],index:-1},a.busy=!1,a.cmdFocus=function(){e(function(){angular.element("#command").trigger("focus")})},a.sendCmd=function(){return a.commandHistory.index=-1,a.tmp=a.item.command,a.item.command="",a.output+="<b>motion*CLI> "+a.tmp+"</b><br>",a.tmp?(h(a.tmp.trim()),a.busy=!0,d.spin("console-spinner"),b.save({controller:"asterisk"},{command:a.tmp}).$promise["catch"](function(a){c.error(a)})):void 0},g.socket.on("console:result",function(b){a.output+=b.content.replace(/(?:\r\n|\r|\n)/g,"<br />").replace("Response: Follows<br />Privilege: Command<br />","").replace(/ActionID: .[0-9]*<br \/>/,"").replace(/ActionID: .[0-9]*/,"")+"<br>",d.stop("console-spinner"),a.busy=!1,a.cmdFocus()}),g.socket.on("console:error",function(b){d.stop("console-spinner"),a.output+="command error:"+b.data.message+"<br>",a.busy=!1,a.cmdFocus()}),a.keyUp=function(b){switch(b.keyCode){case 40:a.commandHistory.commands[a.commandHistory.index-1]?a.item.command=a.commandHistory.commands[--a.commandHistory.index]:(a.item.command="",a.commandHistory.index=-1);break;case 38:a.commandHistory.commands[a.commandHistory.index+1]&&(a.item.command=a.commandHistory.commands[++a.commandHistory.index]);break;case 37:break;case 39:break;default:a.commandHistory.index=-1}},e(function(){angular.element("#command").trigger("focus"),d.stop("console-spinner")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.system.view.console",{url:"/console",templateUrl:"app/setting/system/view/console/console.html",controller:"SystemViewConsoleCtrl"})}]),angular.module("xCallyShuttleApp").controller("SystemViewGeneralCtrl",["$scope","$stateParams","$translate","socket","Setting","xAlert","usSpinnerService",function(a,b,c,d,e,f,g){function h(b){a.system.memory={labels:_.keys(b.memory.details),values:_.values(_.map(b.memory.details,function(a){return Math.round(a/1024)})),Total:Math.round(b.memory.Total/1024)},g.stop("memory-spinner"),a.system.disks=[],_.forEach(b.disks,function(b){a.system.disks.push({mount:b.mount,size:Number((b.size/1048576).toFixed(2)),values:_.values(_.map(b.details,function(a){return Number((a/1048576).toFixed(2))})),labels:_.keys(b.details)})}),a.system.mount=a.system.disks[0],g.stop("disk-spinner"),a.system.cpu={motion:Math.round(b.cpu.motion),cores:[]},_.forEach(b.cpu.cores,function(b){delete b.nice,delete b.irq,a.system.cpu.cores.push({labels:_.keys(b),values:_.values(b),colours:["#803690","#DCDCDC","#00ADF9"]})}),g.stop("cpu-spinner"),a.loading=!1}a.system={mount:void 0},a.initView=function(){return g.spin("memory-spinner"),g.spin("disk-spinner"),g.spin("cpu-spinner"),a.loading=!0,e.get({controller:"system"}).$promise.then(function(a){h(a)})["catch"](function(b){g.stop("memory-spinner"),g.stop("disk-spinner"),g.stop("cpu-spinner"),a.loading=!1,f.error(b)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.system.view.general",{url:"/general",templateUrl:"app/setting/system/view/general/general.html",controller:"SystemViewGeneralCtrl"})}]),angular.module("xCallyShuttleApp").controller("SystemViewLogsCtrl",["$scope","$stateParams","$translate","socket","Setting","xAlert","usSpinnerService",function(a,b,c,d,e,f,g){a.logfiles=_.sortBy(["access","motion-info","motion-error","dashboard-info","dashboard-error","agi-info","agi-error","ami-info","ami-error","api-info","api-error","chat-info","chat-error","mail-info","mail-error","fax-info","fax-error","sms-info","sms-error","openchannel-info","openchannel-error","auth-info","auth-error"]),a.item={filename:"access"},a.getLog=function(){return a.log="",a.loading=!0,g.spin("logs-spinner"),e.get({controller:"logs",filename:a.item.filename}).$promise.then(function(b){a.log=b.log,a.loading=!1,g.stop("logs-spinner")})["catch"](function(b){g.stop("logs-spinner"),a.loading=!1,f.error(b)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.system.view.logs",{url:"/logs",templateUrl:"app/setting/system/view/logs/logs.html",controller:"SystemViewLogsCtrl"})}]),angular.module("xCallyShuttleApp").controller("SystemViewCtrl",["$scope",function(a){}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.system.view",{url:"/view",templateUrl:"app/setting/system/view/view.html",controller:"SystemViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("UpdateListCtrl",["$scope","gridOptions","$uibModal","$location","Update","xAlert","$log","$translate","$state",function(a,b,c,d,e,f,g,h,i){a.initCounter=function(){a.$on("timer-stopped",function(a,b){f.show(h.instant("MESSAGE_UPDATE_COMPLETED"),"success"),i.go("main.setting.updates.list")})},a.initView=function(){return e.get({controller:"current"}).$promise.then(function(b){a.currentVersion=b.currentVersion,a.latestVersion=b.latestVersion})["catch"](function(a){f.error(a)})},a.pull=function(){var b=c.open({animation:!0,templateUrl:"app/setting/update/list/list.pull.html",controller:"UpdateListPullCtrl"});b.result.then(function(){return d.path("/setting/updates/landing"),e.pull().$promise.then(function(b){var c=!1;b&&(b.summary&&_.forOwn(b.summary,function(a){a&&(c=!0)}),(b.insertions&&!_.isEmpty(b.insertions)||b.deletions&&!_.isEmpty(b.deletions))&&(c=!0)),c?(a.$broadcast("timer-stop"),document.getElementsByTagName("timer")[0].stop()):(f.show(h.instant("MESSAGE_NO_UPDATES"),"success"),d.path("/setting/updates/list"))})["catch"](function(a){console.log(a),f.error(a),d.path("/setting/updates/list")})},function(){g.info("Modal dismissed at: "+new Date)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.updates.list",{url:"/list",templateUrl:"app/setting/update/list/list.html",controller:"UpdateListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"css",insertBefore:"#ng_load_plugins_before",files:["assets/css/pricing-table.css"]}])}]}}).state("main.setting.updates.landing",{url:"/landing",templateUrl:"app/setting/update/list/landing.html",controller:"UpdateListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"css",insertBefore:"#ng_load_plugins_before",files:["assets/css/error.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("UpdateListPullCtrl",["$scope","$uibModalInstance",function(a,b){a.modal={dismissable:!0,title:"Confirm Update",html:"Are you sure you want to update?",buttons:[{classes:"btn btn-success",text:"Update",click:function(){b.close()}},{classes:"btn default",text:"Cancel",click:function(){b.dismiss("cancel")}}]}}]),angular.module("xCallyShuttleApp").factory("Update",["$resource",function(a){return a("/api/updates/:id/:controller",{id:"@id"},{pull:{method:"GET",params:{id:"pull"}}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.setting.updates",{url:"/updates",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("SquareOdbcListCtrl",["$scope","$uibModal","$translate","SquareOdbc","gridOptions","xAlert",function(a,b,c,d,e,f){a.initView=function(){var b={exporterCsvFilename:"odbc.csv",columnDefs:[{name:"name"},{name:"dsn",displayName:"APPLICATION_ODBC"},{name:"description"},{name:"action",width:250,buttons:[{"class":"blue-hoki",href:"/square/odbc/view/{{row.entity.id}}/settings",name:"settings"},{"class":"green-jungle",name:"check",onClick:"grid.appScope.checkConnection(row.entity.id)"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=e.gridOptions(d,b,a)},a.createItem=function(){var c=b.open({animation:!0,templateUrl:"app/square/odbc/list/list.create.modal.html",controller:"SquareOdbcListCreateCtrl"});c.result.then(function(){a.gridOptions.getPage()})},a.checkConnection=function(a){return d.get({id:a,controller:"check"}).$promise.then(function(){f.show(c.instant("MESSAGE_CONNECTION_VERIFIED"),"success")})["catch"](function(){f.show(c.instant("MESSAGE_CONNECTION_INVALID"),"danger")})}}]),angular.module("xCallyShuttleApp").controller("SquareOdbcListCreateCtrl",["$scope","$translate","$uibModalInstance","SquareOdbc","xAlert",function(a,b,c,d,e){a.form={},a.item={},a.item.dsn||(a.item.dsn="DRIVER=MySQL;SERVER=127.0.0.1;UID=xcall;PWD=password;DATABASE=motion"),a.save=function(){return d.save(a.item).$promise.then(function(a){e.show(b.instant("MESSAGE_WELL_DONE"),"success"),c.close(a)})["catch"](function(a){e.error(a)})},a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.square.odbc.list",{url:"/list",templateUrl:"app/square/odbc/list/list.html",controller:"SquareOdbcListCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.square.odbc",{url:"/odbc",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").factory("SquareOdbc",["$resource",function(a){return a("/api/square/odbc/:id/:controller",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("SquareOdbcViewCtrl",["$scope","$translate","$stateParams","SquareOdbc","xAlert",function(a,b,c,d,e){a.odbc={},a.getOdbc=function(){return d.get({id:c.id}).$promise.then(function(b){a.odbc=b})["catch"](function(a){e.error(a)})},a.updateOdbc=function(){var f=angular.copy(a.odbc);return d.update({id:c.id},f).$promise.then(function(){e.show(b.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){e.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.square.odbc.view",{url:"/view/:id",templateUrl:"app/square/odbc/view/view.html",controller:"SquareOdbcViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.square.odbc.view.settings",{url:"/settings",templateUrl:"app/square/odbc/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").controller("SquareProjectListCtrl",["$scope","$uibModal","SquareProject","gridOptions","uiGridConstants",function(a,b,c,d,e){a.initView=function(){var b={exporterCsvFilename:"projects.csv",columnDefs:[{name:"name"},{name:"description"},{name:"createdAt",displayName:"APPLICATION_CREATED_AT",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.createdAt | date:'yyyy-MM-dd HH:mm:ss'}}</div>",filterHeaderTemplate:'<div class="ui-grid-filter-container row"><div ng-repeat="colFilter in col.filters" class="col-md-6 col-md-offset-0 col-sm-5 col-sm-offset-0 col-xs-5 col-xs-offset-0"><div custom-grid-date-filter-header></div></div></div>',filters:[{name:"From",condition:e.filter.GREATER_THAN_OR_EQUAL,hasTime:!0},{name:"To",condition:e.filter.LESS_THAN_OR_EQUAL,hasTime:!0}]},{name:"updatedAt",displayName:"APPLICATION_UPDATED_AT",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.updatedAt | date:'yyyy-MM-dd HH:mm:ss'}}</div>",filterHeaderTemplate:'<div class="ui-grid-filter-container row"><div ng-repeat="colFilter in col.filters" class="col-md-6 col-md-offset-0 col-sm-5 col-sm-offset-0 col-xs-5 col-xs-offset-0"><div custom-grid-date-filter-header></div></div></div>',filters:[{name:"From",condition:e.filter.GREATER_THAN_OR_EQUAL,hasTime:!0},{name:"To",condition:e.filter.LESS_THAN_OR_EQUAL,hasTime:!0}]},{name:"action",width:160,buttons:[{"class":"blue-hoki",href:"/square/projects/view/{{row.entity.id}}",name:"settings"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=d.gridOptions(c,b,a)},a.createItem=function(){var c=b.open({animation:!0,templateUrl:"app/square/project/list/list.create.modal.html",controller:"SquareProjectListCreateCtrl"});c.result.then(function(b){console.log(b),a.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("SquareProjectListCreateCtrl",["$scope","$translate","$uibModalInstance","$location","SquareProject","xAlert",function(a,b,c,d,e,f){a.form={},a.item={},a.save=function(){return e.save(a.item).$promise.then(function(a){c.close(a),d.path("/square/projects/view/"+a.id)})["catch"](function(a){f.error(a)})},a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.square.projects.list",{url:"/list",templateUrl:"app/square/project/list/list.html",controller:"SquareProjectListCtrl",authenticate:!0})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.square.projects",{url:"/projects",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").factory("SquareProject",["$resource",function(a){return a("/api/square/projects/:id/:controller",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("SquareProjectViewCtrl",["$scope","$stateParams","Auth","xAlert","SquareProject","socket","$translate","$log","$uibModal",function(a,b,c,d,e,f,g,h,i){a.squareProject={},a.$on("$destroy",function(){f.unsyncUpdates("square_project")}),a.getProject=function(){return e.get({id:b.id}).$promise.then(function(b){a.squareProject=b,angular.element(document).ready(function(){window.onerror=function(a,b,c){try{if(null!==a&&-1!==a.indexOf("Script error."));else{var e=new Image;e.src="assets/plugins/mxgraph/images/1x1.png?msg="+encodeURIComponent(a)+"&url="+encodeURIComponent(b)+"&lnum="+encodeURIComponent(c)}}catch(f){d.error(f)}},b.token=c.getToken();var a=new EditorUi(new Editor);a.openString(b.preproduction,b.name,b),a.editor.graphChangeListener=function(a,b){var c=b.properties.rtChange||!1;c||(this.modified=!0)}}),f.socket.on("square_project:save",function(c){c.id===b.id&&(a.squareProject=_.merge(a.squareProject,c))})})["catch"](function(a){d.error(a)})},a.editNotes=function(){var c=i.open({animation:!0,templateUrl:"app/square/project/view/projectNotes.modal.html",controller:["$scope","$uibModalInstance","notes",function(a,b,c){a.notes=c,a.close=function(){b.close(a.notes)},a.cancel=function(){b.dismiss("cancel")}}],resolve:{notes:{value:a.squareProject.notes}}});c.result.then(function(a){return e.update({id:b.id},{notes:a.value}).$promise.then(function(){d.show(g.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){d.error(a)})},function(){h.info("Modal dismissed at: "+new Date)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.square.projects.view",{url:"/view/:id",templateUrl:"app/square/project/view/view.html",controller:"SquareProjectViewCtrl",authenticate:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",serie:!0,cache:!1,files:["assets/plugins/mxgraph/css/common.css","assets/plugins/mxgraph/css/explorer.css","assets/plugins/mxgraph/styles/grapheditor.css","assets/plugins/mxgraph/styles/custom.css","assets/plugins/square/js/custom.js","assets/plugins/mxgraph/js/mxClient.js","assets/plugins/square/js/Editor.js","assets/plugins/square/js/Graph.js","assets/plugins/square/js/EditorUi.js","assets/plugins/square/js/Actions.js","assets/plugins/square/js/Menus.js","assets/plugins/square/js/Sidebar.js","assets/plugins/square/js/Toolbar.js","assets/plugins/square/js/Dialogs.js"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.square.realtime",{url:"/realtime",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:14}}})}]),angular.module("xCallyShuttleApp").factory("ReportSquare",["$resource",function(a){return a("/api/report/square/:id/:controller",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("ReportSquareDetail",["$resource",function(a){return a("/api/report/square/details/:id/:controller",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("SquareRealtimeViewGeneralCtrl",["$scope","$log","$uibModal","$translate","socket","xAlert","ReportSquare","usSpinnerService","$q","uiGridConstants",function(a,b,c,d,e,f,g,h,i,j){function k(b){return h.spin("spinner-grid"),g.get(m).$promise.then(function(b){a.gridOptions.totalItems=b.count,a.gridOptions.data=b.rows})["catch"](function(a){f.error(a)})["finally"](function(){b&&l(),h.stop("spinner-grid")})}function l(){e.socket.on("report_square:save",function(b){if(b.leaveAt){var c=_.remove(a.gridOptions.data,{id:b.id});c&&k()}else{var d=_.find(a.gridOptions.data,{id:b.id});if(!d&&a.gridOptions.data.length<m.limit){var e=_.clone(m);if(_.forEach(["offset","limit","controller","order"],function(a){delete e[a]}),_.isEmpty(e))a.gridOptions.data.push(b);else{var f=!0;_.forOwn(e,function(a,c){_.includes(b[c],a)||(f=!1)}),f&&a.gridOptions.data.push(b)}}}})}var m={controller:"realtime",offset:0,limit:25};a.moment=moment,a.init=function(){a.gridOptions={enableGridMenu:!0,headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,showGridFooter:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:25,useExternalPagination:!0,useExternalSorting:!0,useExternalFiltering:!0,showTreeExpandNoChildren:!0,columnDefs:[{name:"uniqueid"},{name:"callerid"},{name:"extension"},{name:"project_name",displayName:"APPLICATION_PROJECT",headerCellFilter:"translate"},{name:"joinAt",displayName:"APPLICATION_ELAPSED_TIME",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><css-timer start-time="row.entity.joinAt"></css-timer></div>',enableSorting:!1,enableColumnMenu:!1,enableFiltering:!1}],data:[],gridMenuTitleFilter:function(a){var b=i.defer();return b.resolve(d.instant(a)),b.promise},onRegisterApi:function(b){a.gridApi=b,a.gridApi.grid.registerDataChangeCallback(function(){n(a.gridApi.core.getVisibleRows(a.gridApi.grid).length)}),a.gridApi.core.on.sortChanged(a,function(a,b){0===b.length?m.order=null:m.order=b[0].name+" "+b[0].sort.direction.toUpperCase(),k()}),a.gridApi.pagination.on.paginationChanged(a,function(a,b){m.offset=(a-1)*b,m.limit=b,k()}),a.gridApi.core.on.filterChanged(a,function(){var a=this.grid;a.columns.forEach(function(a){a.filters[0].term?m[a.name]=a.filters[0].term:delete m[a.name]}),k()})}},k(!0)};var n=function(a){var b=a?30*a+130:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",b+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*a+"px")};a.$on("$destroy",function(){e.unsyncUpdates("report_square")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.square.realtime.view.general",{url:"/general",templateUrl:"app/square/realtime/view/general/general.html",controller:"SquareRealtimeViewGeneralCtrl"})}]),angular.module("xCallyShuttleApp").controller("SquareRealtimeViewCtrl",["$scope",function(a){}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.square.realtime.view",{url:"/view",templateUrl:"app/square/realtime/view/view.html",controller:"SquareRealtimeViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("SquareRecordingListCtrl",["$scope","SquareRecording","gridOptions","uiGridConstants",function(a,b,c,d){a.SquareRecording=b;a.initView=function(){var e={exporterCsvFilename:"recordings.csv",rowHeight:30,columnDefs:[{name:"uniqueid"},{name:"callerid",displayName:"APPLICATION_CALLERIDNUM"},{name:"filename"},{name:"extension"},{name:"projectName",displayName:"APPLICATION_PROJECT"},{name:"createdAt",displayName:"APPLICATION_DATE",cellFilter:"date:'yyyy-MM-dd HH:mm'",filterHeaderTemplate:'<div class="ui-grid-filter-container row"><div ng-repeat="colFilter in col.filters" class="col-md-6 col-md-offset-0 col-sm-5 col-sm-offset-0 col-xs-5 col-xs-offset-0"><div custom-grid-date-filter-header></div></div></div>',filters:[{name:"From",condition:d.filter.GREATER_THAN_OR_EQUAL,hasTime:!0},{name:"To",condition:d.filter.LESS_THAN_OR_EQUAL,hasTime:!0}],sort:{direction:d.DESC,priority:0}},{name:"audio",displayName:"",width:100,enableSorting:!1,enableFiltering:!1,cellClass:"ui-grid-vcenter",cellTemplate:"<div><audio-file-download data-ng-if=\"row.entity.savePath.split('.').pop() == 'wav'\" params=\"{id:row.entity.id,controller:'stream'}\" resource=\"grid.appScope.SquareRecording\"></audio-file-download><span data-ng-if=\"row.entity.value.split('.').pop() == 'gsm'\" title=\"{{'MESSAGE_GSM_PREVIEW_NOT_SUPPORTED' | translate}}\">{{'MESSAGE_GSM_PREVIEW_NOT_SUPPORTED' | translate}}</span></div>"},{name:"action",width:80,buttons:[{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.filename || row.entity.uniqueid, row.entity.id)"},{directive:"<motion-file-download params=\"{id:row.entity.id,controller:'stream'}\" resource=\"grid.appScope.SquareRecording\" mimetype=\"'audio/'+row.entity.value.split('.').pop()\" btnclass=\"btn btn-xs blue-hoki\" filename=\"(row.entity.filename || row.entity.uniqueid)+'.'+row.entity.savePath.split('.').pop()\"></motion-file-download>"}]}]};a.gridOptions=c.gridOptions(b,e,a)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.square.recordings.list",{url:"/list",templateUrl:"app/square/recording/list/list.html",controller:"SquareRecordingListCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.square.recordings",{url:"/recordings",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").factory("SquareRecording",["$resource",function(a){return a("/api/square/recordings/:id/:controller",{id:"@id"},{update:{method:"PUT"},patch:{method:"PATCH"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.square",{url:"/square",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:14}}})}]),angular.module("xCallyShuttleApp").factory("Agent",["$resource",function(a){return a("/api/agents/:id/:controller/:controller1/:controller2/:controller3",{id:"@id"},{changePassword:{method:"PUT",params:{controller:"password"}},update:{method:"PUT"},patch:{method:"PATCH"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.staff.agents",{url:"/agents",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:4}}})}]),angular.module("xCallyShuttleApp").controller("AgentListCtrl",["$scope","$timeout","Agent","Auth","gridOptions",function(a,b,c,d,e){a.initView=function(){a.Auth=d;var b={exporterCsvFilename:"agents.csv",columnDefs:[{name:"fullname"},{name:"name",displayName:"APPLICATION_USERNAME"},{name:"internal"},{name:"email"},{name:"description"},{name:"action",width:100,buttons:[{"class":"blue-hoki",href:"/staff/agents/view/{{row.entity.id}}/account",name:"profile"},{"class":"green-meadow",href:"/staff/agents/view/{{row.entity.id}}/queues/voice",name:"queues"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.fullname, row.entity.id)"}]}]};a.gridOptions=e.gridOptions(c,b,a)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.staff.agents.list",{url:"/list",templateUrl:"app/staff/agent/list/list.html",controller:"AgentListCtrl",data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:4}}})}]),angular.module("xCallyShuttleApp").controller("AgentViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","$cookieStore","Agent","FileUploader","Auth","MailQueue","User","VoiceQueue","ChatQueue","FaxQueue","SmsQueue","OpenChannelQueue","Setting",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){a.Auth=i,a.forms={},a.params={penalty:0},a.radioSwitch={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.recordSwitch={onText:"On",offText:"Off",isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"};var r=function(b){return{select:function(c,d){return g.save(c,{values:d,penalty:a.params.penalty}).$promise.then(function(){b()})["catch"](function(a){console.log(a)})},deselect:function(a){return g["delete"](a).$promise.then(function(){b()})["catch"](function(a){console.log(a)})}}};a.initVoiceQueues=function(){var b={},c={};return a.penalty=0,l.get().$promise.then(function(a){return b.queues=_.map(a.rows,function(a){return{name:a.name}}),g.get({id:e.id,controller:"voice",controller2:"queues"}).$promise}).then(function(a){c.queues=_.map(a.rows,function(a){return{name:a.name,penalty:a.UserHasVoiceQueue.penalty}})}).then(function(){ComponentsDropdowns.bindAgent(b,c,"voice",e.id,r,a.initVoiceQueues)})["catch"](function(a){console.error(a)})},a.initChatQueues=function(){var b={},c={};return a.penalty=0,m.get().$promise.then(function(a){return b.queues=_.map(a.rows,function(a){return{id:a.id,name:a.name}}),g.get({id:e.id,controller:"chat",controller2:"queues"}).$promise}).then(function(a){c.queues=_.map(a.rows,function(a){return{id:a.id,name:a.name,penalty:a.UserHasChatQueue.penalty}})}).then(function(){ComponentsDropdowns.bindAgent(b,c,"chat",e.id,r,a.initChatQueues)})["catch"](function(a){console.error(a)})},a.initMailQueues=function(){var b={},c={};return a.penalty=0,j.get().$promise.then(function(a){return b.queues=_.map(a.rows,function(a){return{id:a.id,name:a.name}}),g.get({id:e.id,controller:"mail",controller2:"queues"}).$promise}).then(function(a){c.queues=_.map(a.rows,function(a){return{id:a.id,name:a.name,penalty:a.UserHasMailQueue.penalty}})}).then(function(){ComponentsDropdowns.bindAgent(b,c,"mail",e.id,r,a.initMailQueues)})["catch"](function(a){console.error(a)})},a.initSmsQueues=function(){var b={},c={};return a.penalty=0,o.get().$promise.then(function(a){return b.queues=_.map(a.rows,function(a){return{id:a.id,name:a.name}}),g.get({id:e.id,controller:"sms",controller2:"queues"}).$promise}).then(function(a){c.queues=_.map(a.rows,function(a){return{id:a.id,name:a.name,penalty:a.UserHasSmsQueue.penalty}})}).then(function(){ComponentsDropdowns.bindAgent(b,c,"sms",e.id,r,a.initSmsQueues)})["catch"](function(a){console.error(a)})},a.initFaxQueues=function(){var b={},c={};return a.penalty=0,n.get().$promise.then(function(a){return b.queues=_.map(a.rows,function(a){return{id:a.id,name:a.name}}),g.get({id:e.id,controller:"fax",controller2:"queues"}).$promise}).then(function(a){c.queues=_.map(a.rows,function(a){return{id:a.id,name:a.name,penalty:a.UserHasFaxQueue.penalty}})}).then(function(){ComponentsDropdowns.bindAgent(b,c,"fax",e.id,r,a.initFaxQueues)})["catch"](function(a){console.error(a)})},a.initOpenchannelQueues=function(){var b={},c={};return a.penalty=0,p.get().$promise.then(function(a){return b.queues=_.map(a.rows,function(a){return{id:a.id,name:a.name}}),g.get({id:e.id,controller:"openchannel",controller2:"queues"}).$promise}).then(function(a){c.queues=_.map(a.rows,function(a){return{id:a.id,name:a.name,penalty:a.UserHasOpenchannelQueue.penalty}})}).then(function(){ComponentsDropdowns.bindAgent(b,c,"openchannel",e.id,r,a.initOpenchannelQueues)})["catch"](function(a){console.error(a)})},a.updatePassword=function(){var b={newPassword:a.agent.newPwd};return i.isAgent()?b.oldPassword=a.agent.currentPwd:b.id=e.id,k.changePassword(b).$promise.then(function(){c.show(d.instant("MESSAGE_WELL_DONE"),"success"),a.agent.newPwd="",a.agent.reNewPwd="",a.agent.currentPwd="",a.forms.changePwd.$setPristine(),a.forms.changePwd.$setUntouched()})["catch"](function(a){c.error(a)})};var s=a.uploader=new h({url:"api/users/"+e.id+"/avatar",queueLimit:1,withCredentials:!0,headers:{Authorization:"Bearer "+f.get("token")}});s.filters.push({name:"imageFilter",fn:function(a){var b="|"+a.type.slice(a.type.lastIndexOf("/")+1)+"|";return-1!=="|jpg|png|jpeg|".indexOf(b)}}),s.onSuccessItem=function(b,e){a.agent.userpic=e.userpic,a.agent.id===i.getCurrentUser().id&&(i.getCurrentUser().userpic=e.userpic),c.show(d.instant("MESSAGE_WELL_DONE"),"success")},s.onErrorItem=function(){c.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")},s.onCompleteAll=function(){s.clearQueue()},a.initView=function(){return g.get({id:e.id}).$promise.then(function(b){return a.agent=b,a.agent.transport=a.agent.transport?a.agent.transport.split(","):[],a.agent.allow=a.agent.allow?a.agent.allow.split(";"):[],a.agent.nat=a.agent.nat?a.agent.nat.split(","):[],q.get({id:1}).$promise}).then(function(b){a.setting=b})["catch"](function(a){c.error(a)})},a.patchItem=function(){return g.update({id:e.id},{chatCapacity:a.agent.chatCapacity,mailCapacity:a.agent.mailCapacity,faxCapacity:a.agent.faxCapacity,smsCapacity:a.agent.smsCapacity,openchannelCapacity:a.agent.openchannelCapacity}).$promise.then(function(){c.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){c.error(a)})},a.updateItem=function(){ -var b=angular.copy(a.agent);return delete b.password,delete b.md5secret,b.transport=b.transport.join(","),b.allow=b.allow.join(";"),b.nat=b.nat.join(","),g.update({id:e.id},b).$promise.then(function(){c.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){c.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.staff.agents.view",{url:"/view/:id",templateUrl:"app/staff/agent/view/view.html",controller:"AgentViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]},data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:4}}}).state("main.staff.agents.view.account",{url:"/account",templateUrl:"app/staff/agent/view/view.account.html",data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:4}},resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/scripts/jquery.sparkline.min.js","assets/plugins/bootstrap-fileinput/bootstrap-fileinput.js","assets/scripts/profile.js"]})}]}}).state("main.staff.agents.view.voice",{url:"/voice",templateUrl:"app/staff/agent/view/view.voice.html",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:4}}}).state("main.staff.agents.view.chat",{url:"/chat",templateUrl:"app/staff/agent/view/view.chat.html",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:4}}}).state("main.staff.agents.view.mail",{url:"/mail",templateUrl:"app/staff/agent/view/view.mail.html",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:4}}}).state("main.staff.agents.view.fax",{url:"/fax",templateUrl:"app/staff/agent/view/view.fax.html",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:4}}}).state("main.staff.agents.view.sms",{url:"/sms",templateUrl:"app/staff/agent/view/view.sms.html",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:4}}}).state("main.staff.agents.view.openchannel",{url:"/openchannel",templateUrl:"app/staff/agent/view/view.openchannel.html",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:4}}}).state("main.staff.agents.view.motionbar",{url:"/motionbar",templateUrl:"app/staff/agent/view/view.motionbar.html",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:4}}}).state("main.staff.agents.view.queues",{url:"/queues",templateUrl:"app/staff/agent/view/view.queues.html",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:4}},cache:!1,serie:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}}).state("main.staff.agents.view.queues.voice",{url:"/voice",templateUrl:"app/staff/agent/view/view.queues.voice.html",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:7}}}).state("main.staff.agents.view.queues.chat",{url:"/chat",templateUrl:"app/staff/agent/view/view.queues.chat.html",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:8}}}).state("main.staff.agents.view.queues.mail",{url:"/mail",templateUrl:"app/staff/agent/view/view.queues.mail.html",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:9}}}).state("main.staff.agents.view.queues.fax",{url:"/fax",templateUrl:"app/staff/agent/view/view.queues.fax.html",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:10}}}).state("main.staff.agents.view.queues.sms",{url:"/sms",templateUrl:"app/staff/agent/view/view.queues.sms.html",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:11}}}).state("main.staff.agents.view.queues.openchannel",{url:"/openchannel",templateUrl:"app/staff/agent/view/view.queues.openchannel.html",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:20}}})}]),angular.module("xCallyShuttleApp").controller("AgentWizardCtrl",["$scope","$rootScope","$location","$translate","$http","Agent","VoiceQueue","ChatQueue","MailQueue","SmsQueue","FaxQueue","OpenChannelQueue","Setting","xAlert","WizardHandler",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){a.maxAmount=1e3,a._data={voice:{queues:[]},chat:{queues:[]},mail:{queues:[]},sms:{queues:[]},fax:{queues:[]},openchannel:{queues:[]}},a._agent=angular.copy(a._data),a.forms={info:void 0,voice:void 0},a.item={role:"agent",allow:["alaw","ulaw","gsm"],transport:["udp"],context:"from-sip"},a.next=function(){o.wizard().next()},a.getAmount=function(){return m.get({controller:"internal",internal:a.item.minInternal}).$promise.then(function(b){a.item.minInternal=Number(b.value),a.maxAmount=b.range||1e3})["catch"](function(a){n.error(a)})},a.exitValidation=function(a){return a},a.getFirstFreeInternal=function(){return m.get({controller:"internal"}).$promise.then(function(b){return a.internal=b,a.item.internal=b.value,a.item.minInternal=b.value,a.maxAmount=b.range||1e3,m.get({id:1}).$promise}).then(function(b){a.setting=b})["catch"](function(a){n.error(a)})},a.createItem=function(){var b=angular.copy(a.item);return delete b.minInternal,b.transport&&(b.transport=b.transport.join(",")),a.item.allow&&(b.allow=b.allow.join(";")),b.channels=a._agent,f.save(b).$promise.then(function(a){c.path("/staff/agents/view/"+a.id+"/queues/voice")})["catch"](function(a){console.log(a),n.error(a)})},a.createItems=function(){var b=angular.copy(a.item);return delete b.internal,b.transport&&(b.transport=b.transport.join(",")),b.allow&&(b.allow=b.allow.join(";")),f.save({id:"bulk"},b).$promise.then(function(){c.path("/staff/agents/list")})["catch"](function(a){console.log(a),n.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.staff.agents.wizard",{url:"/wizard",templateUrl:"app/staff/agent/wizard/wizard.html",controller:"AgentWizardCtrl",data:{permissions:{only:["admin"],redirectTo:"main.dashboard.voice"}},resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}}).state("main.staff.agents.bulk",{url:"/bulk",templateUrl:"app/staff/agent/wizard/wizard-bulk.html",controller:"AgentWizardCtrl",data:{permissions:{only:["admin"],redirectTo:"main.dashboard.voice"}}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.staff",{url:"/staff",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("TeamCreateCtrl",["$scope","$uibModalInstance","Team","xAlert",function(a,b,c,d){a.form={},a.item={},a.ok=function(){return c.save(a.item).$promise.then(function(){b.close(a.item)})["catch"](function(a){d.error(a)})},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("TeamListCtrl",["$scope","Team","gridOptions","$uibModal",function(a,b,c,d){a.initView=function(){var d={exporterCsvFilename:"teams.csv",columnDefs:[{name:"name"},{name:"description"},{name:"action",width:100,buttons:[{"class":"{{row.entity.defaultEntry ? 'blue-hoki disabled' : 'blue-hoki'}}",href:"/staff/teams/view/{{row.entity.id}}/settings",name:"profile"},{"class":"{{row.entity.defaultEntry ? 'green-turquoise disabled' : 'green-turquoise'}}",name:"agents",href:"/staff/teams/view/{{row.entity.id}}/agents"},{"class":"{{row.entity.defaultEntry ? 'red-sunglo disabled' : 'red-sunglo'}}",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=c.gridOptions(b,d,a)},a.createItem=function(){d.open({animation:!0,templateUrl:"app/staff/team/list/create.modal.html",controller:"TeamCreateCtrl"}).result.then(function(){a.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.staff.teams.list",{url:"/list",templateUrl:"app/staff/team/list/list.html",controller:"TeamListCtrl"})}]),angular.module("xCallyShuttleApp").factory("Team",["$resource",function(a){return a("/api/teams/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.staff.teams",{url:"/teams",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin"],redirectTo:"landing"}}})}]),angular.module("xCallyShuttleApp").controller("TeamViewCtrl",["$scope","$http","$stateParams","$translate","Team","Agent","xAlert",function(a,b,c,d,e,f,g){var h=function(){return{select:function(b){return console.log("agents",b),e.save({id:a.team.id,controller:"agents"},{agents:b})},deselect:function(b){return e["delete"]({id:a.team.id,controller:"agents",agents:b})}}};a.initView=function(){return e.get({id:c.id}).$promise.then(function(b){a.team=b})["catch"](function(a){g.error(a)})},a.initAgents=function(){return f.get().$promise.then(function(b){return a.agents=b.rows,e.get({id:c.id,controller:"agents"}).$promise}).then(function(b){ComponentsDropdowns.bindTeam(_.map(b.rows,"id"),_.map(a.agents,function(a){return{id:a.id,name:a.name,fullname:a.fullname,internal:a.internal}}),h)})["catch"](function(a){g.error(a)})},a.updateItem=function(){var b=angular.copy(a.team);return e.update({id:c.id},b).$promise.then(function(){g.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){g.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.staff.teams.view",{url:"/view/:id",templateUrl:"app/staff/team/view/view.html",controller:"TeamViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.staff.teams.view.agents",{url:"/agents",templateUrl:"app/staff/team/view/view.agents.html",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]}])}]}}).state("main.staff.teams.view.settings",{url:"/settings",templateUrl:"app/staff/team/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").controller("TelephoneListCtrl",["$scope","Telephone","gridOptions",function(a,b,c){a.initView=function(){var d={exporterCsvFilename:"telephones.csv",columnDefs:[{name:"fullname"},{name:"name"},{name:"internal"},{name:"description"},{name:"action",width:75,buttons:[{"class":"blue-hoki",href:"/staff/telephones/view/{{row.entity.id}}/account",name:"profile"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.fullname, row.entity.id)"}]}]};a.gridOptions=c.gridOptions(b,d,a)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.staff.telephones.list",{url:"/list",templateUrl:"app/staff/telephone/list/list.html",controller:"TelephoneListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").factory("Telephone",["$resource",function(a){return a("/api/telephones/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.staff.telephones",{url:"/telephones",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin"],redirectTo:"landing"}}})}]),angular.module("xCallyShuttleApp").controller("TelephoneViewCtrl",["$scope","$http","$stateParams","$translate","$cookieStore","Auth","xAlert","Telephone","Setting","User",function(a,b,c,d,e,f,g,h,i,j){a.initView=function(){return a.Auth=f,a.forms={},h.get({id:c.id}).$promise.then(function(b){return delete b.password,a.item=b,a.item.transport=a.item.transport?a.item.transport.split(","):[],a.item.allow=a.item.allow?a.item.allow.split(";"):[],i.get({id:1}).$promise}).then(function(b){a.setting=b})["catch"](function(a){g.error(a)})},a.updateItem=function(){var b=angular.copy(a.item);return b.transport=b.transport.join(","),b.allow=b.allow.join(";"),h.update(b).$promise.then(function(){g.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){g.error(a)})},a.updatePassword=function(){var b={newPassword:a.item.newPwd,id:c.id};return j.changePassword(b).$promise.then(function(){g.show(d.instant("MESSAGE_WELL_DONE"),"success"),a.item.newPwd="",a.item.reNewPwd="",a.forms.changePwd.$setPristine(),a.forms.changePwd.$setUntouched()})["catch"](function(a){g.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.staff.telephones.view",{url:"/view/:id",templateUrl:"app/staff/telephone/view/view.html",controller:"TelephoneViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.staff.telephones.view.account",{url:"/account",templateUrl:"app/staff/telephone/view/view.account.html",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css","assets/scripts/jquery.sparkline.min.js","assets/plugins/bootstrap-fileinput/bootstrap-fileinput.js","assets/scripts/profile.js"]})}]}}).state("main.staff.telephones.view.voice",{url:"/voice",templateUrl:"app/staff/telephone/view/view.voice.html",data:{permissions:{only:["admin"],redirectTo:"main.dashboard.voice"}}})}]),angular.module("xCallyShuttleApp").controller("TelephoneWizardCtrl",["$scope","$http","$location","WizardHandler","xAlert","$translate","Telephone","Setting",function(a,b,c,d,e,f,g,h){a.forms={},a.item={allow:["alaw","ulaw","gsm"],transport:["udp"],context:"from-sip"},a.next=function(){d.wizard().next()},a.exitValidation=function(a){return a},a.getFirstFreeInternal=function(){return h.get({controller:"internal"}).$promise.then(function(b){return a.item.internal=b.value,h.get({id:1}).$promise}).then(function(b){a.setting=b})["catch"](function(a){e.error(a)})},a.createItem=function(){var b=angular.copy(a.item);return b.transport&&(b.transport=b.transport.join(",")),a.item.allow&&(b.allow=b.allow.join(";")),g.save(b).$promise.then(function(){c.path("/staff/telephones/list")})["catch"](function(a){e.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.staff.telephones.wizard",{url:"/wizard",templateUrl:"app/staff/telephone/wizard/wizard.html",controller:"TelephoneWizardCtrl"})}]),angular.module("xCallyShuttleApp").controller("UserListCtrl",["$scope","$timeout","User","Auth","gridOptions",function(a,b,c,d,e){function f(a){if(a){var b=_.words(a),c=_.map(b,function(a){return a?a[0]:""});return c.join("").toUpperCase()}return!1}a.getUserAvatar=function(a,c,d){b(function(){angular.element("#userImg"+a).avatar({useGravatar:!1,initials:d?[]:f(c),fallbackImage:"api/users/avatar/"+d,size:80})})},a.isAdmin=function(a){return"admin"===a},a.initView=function(){var b={exporterCsvFilename:"users.csv",columnDefs:[{name:"fullname"},{name:"name",displayName:"APPLICATION_USERNAME"},{name:"internal"},{name:"email"},{name:"description"},{name:"action",width:100,buttons:[{"class":"blue-hoki",href:"/staff/users/view/{{row.entity.id}}/account",name:"profile"},{"class":"green-meadow",href:"/staff/users/view/{{row.entity.id}}/permit/voice",name:"permits",hide:"grid.appScope.isAdmin(row.entity.role)"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.fullname, row.entity.id)"}]}]};a.gridOptions=e.gridOptions(c,b,a)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.staff.users.list",{url:"/list",templateUrl:"app/staff/user/list/list.html",controller:"UserListCtrl"})}]),angular.module("xCallyShuttleApp").factory("Module",["$resource",function(a){return a("/api/modules/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("User",["$resource",function(a){return a("/api/users/:id/:controller/:controller2/:controller3",{id:"@id"},{changePassword:{method:"PUT",params:{controller:"password"}},update:{method:"PUT"},me:{method:"GET",params:{id:"me"}}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.staff.users",{url:"/users",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("UserViewCtrl",["$scope","$stateParams","$cookieStore","$translate","FileUploader","User","Auth","xAlert","MailQueue","VoiceQueue","ChatQueue","FaxQueue","SmsQueue","OpenChannelQueue","Team","Module","Setting","$location",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){function s(a,b){var c,d,e=b.length;for(c=0;e>c;c++){if(b[c].id===a)return b[c];if(b[c].SubModules&&b[c].SubModules.length&&(d=s(a,b[c].SubModules)))return d}}function t(b){var c=s(b.ModuleId,a.modules);if(b.status===!0)c.status=!0;else{var d=_.filter(c.SubModules,{status:!0});d.length||(c.status=!1)}c.ModuleId&&t(c)}function u(a,b){a.forEach(function(a){a.status=b,a.SubModules&&a.SubModules.length&&u(a.SubModules,b)})}function v(a,b){b.forEach(function(b){_.find(a,{id:b.id})?b.status=!0:b.status=!1,b.SubModules&&b.SubModules.length&&v(a,b.SubModules)})}function w(a,b){return a=_.union(a,_.map(_.filter(b,{status:!0}),"id")),b.forEach(function(b){b.SubModules&&b.SubModules.length&&(a=_.union(a,w(a,b.SubModules)))}),a}a.Auth=g,a._=_,a.forms={},a.moduleSwitch={onText:"On",offText:"Off",isActive:!0,size:"mini",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.checkUser=function(){var a=g.getCurrentUser();g.isAdmin()||Number(b.id)===a.id||r.path("main.dashboard.voice")},a.initVoiceQueues=function(){var a={},c={};return j.get().$promise.then(function(c){return a.queues=_.map(c.rows,function(a){return{name:a.name}}),f.query({id:b.id,controller:"allowed",controller2:"voice",controller3:"queues"}).$promise}).then(function(a){c.queues=_.map(a,function(a){return{name:a.name}})}).then(function(){ComponentsDropdowns.bindPermit(a,c,"voice",b.id,f)})["catch"](function(a){console.error(a)})},a.initChatQueues=function(){var a={},c={};return k.get().$promise.then(function(c){return a.queues=_.map(c.rows,function(a){return{id:a.id,name:a.name}}),f.query({id:b.id,controller:"allowed",controller2:"chat",controller3:"queues"}).$promise}).then(function(a){c.queues=_.map(a,function(a){return{id:a.id,name:a.name}})}).then(function(){ComponentsDropdowns.bindPermit(a,c,"chat",b.id,f)})["catch"](function(a){console.error(a)})},a.initMailQueues=function(){var a={},c={};return i.get().$promise.then(function(c){return a.queues=_.map(c.rows,function(a){return{id:a.id,name:a.name}}),f.query({id:b.id,controller:"allowed",controller2:"mail",controller3:"queues"}).$promise}).then(function(a){c.queues=_.map(a,function(a){return{id:a.id,name:a.name}})}).then(function(){ComponentsDropdowns.bindPermit(a,c,"mail",b.id,f)})["catch"](function(a){console.error(a)})},a.initSmsQueues=function(){var a={},c={};return m.get().$promise.then(function(c){return a.queues=_.map(c.rows,function(a){return{id:a.id,name:a.name}}),f.query({id:b.id,controller:"allowed",controller2:"sms",controller3:"queues"}).$promise}).then(function(a){c.queues=_.map(a,function(a){return{id:a.id,name:a.name}})}).then(function(){ComponentsDropdowns.bindPermit(a,c,"sms",b.id,f)})["catch"](function(a){console.error(a)})},a.initFaxQueues=function(){var a={},c={};return l.get().$promise.then(function(c){return a.queues=_.map(c.rows,function(a){return{id:a.id,name:a.name}}),f.query({id:b.id,controller:"allowed",controller2:"fax",controller3:"queues"}).$promise}).then(function(a){c.queues=_.map(a,function(a){return{id:a.id,name:a.name}})}).then(function(){ComponentsDropdowns.bindPermit(a,c,"fax",b.id,f)})["catch"](function(a){console.error(a)})},a.initOpenchannelQueues=function(){var a={},c={};return n.get().$promise.then(function(c){return a.queues=_.map(c.rows,function(a){return{id:a.id,name:a.name}}),f.query({id:b.id,controller:"allowed",controller2:"openchannel",controller3:"queues"}).$promise}).then(function(a){c.queues=_.map(a,function(a){return{id:a.id,name:a.name}})}).then(function(){ComponentsDropdowns.bindPermit(a,c,"openchannel",b.id,f)})["catch"](function(a){console.error(a)})},a.initView=function(){return f.get({id:b.id}).$promise.then(function(b){return a.user=b,a.user.transport=a.user.transport?a.user.transport.split(","):[],a.user.allow=a.user.allow?a.user.allow.split(";"):[],q.get({id:1}).$promise}).then(function(b){a.setting=b})["catch"](function(a){h.error(a)})},a.updateItem=function(){var c=angular.copy(a.user);return delete c.password,delete c.md5secret,c.transport=c.transport.join(","),c.allow=c.allow.join(";"),f.update({id:b.id},c).$promise.then(function(){h.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){h.error(a)})},a.updatePassword=function(){var c={newPassword:a.user.newPwd};return g.isAdmin()?c.id=b.id:c.oldPassword=a.user.currentPwd,f.changePassword(c).$promise.then(function(){h.show(d.instant("MESSAGE_WELL_DONE"),"success"),a.user.newPwd="",a.user.reNewPwd="",a.user.currentPwd="",a.forms.changePwd.$setPristine(),a.forms.changePwd.$setUntouched()})["catch"](function(a){h.error(a)})};var x=a.uploader=new e({url:"api/users/"+b.id+"/avatar",queueLimit:1,withCredentials:!0,headers:{Authorization:"Bearer "+c.get("token")}});x.filters.push({name:"imageFilter",fn:function(a){var b="|"+a.type.slice(a.type.lastIndexOf("/")+1)+"|";return-1!=="|jpg|png|jpeg|".indexOf(b)}}),a.getModules=function(){return a.associatedModules=[],p.get().$promise.then(function(c){return a.modules=_.filter(c.rows,function(a){return!a.ModuleId}),f.query({id:b.id,controller:"allowed",controller2:"modules"}).$promise}).then(function(b){v(b,a.modules)})["catch"](function(a){h.error(a)})},a.updatePermissions=function(c){c.ModuleId&&t(c),c.SubModules&&c.SubModules.length&&u(c.SubModules,c.status);var e=w([],a.modules);return f.save({id:b.id,controller:"allowed",controller2:"modules"},{modules:e}).$promise.then(function(){h.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){h.error(a)})},x.onSuccessItem=function(b,c){a.user.userpic=c.userpic,a.user.id===g.getCurrentUser().id&&(g.getCurrentUser().userpic=c.userpic),h.show(d.instant("MESSAGE_WELL_DONE"),"success")},x.onErrorItem=function(){h.show(d.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")},x.onCompleteAll=function(){x.clearQueue()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.staff.users.view",{url:"/view/:id",templateUrl:"app/staff/user/view/view.html",controller:"UserViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.staff.users.view.account",{url:"/account",templateUrl:"app/staff/user/view/view.account.html",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css","assets/scripts/jquery.sparkline.min.js","assets/plugins/bootstrap-fileinput/bootstrap-fileinput.js","assets/scripts/profile.js"]})}]}}).state("main.staff.users.view.voice",{url:"/voice",templateUrl:"app/staff/user/view/view.voice.html",data:{permissions:{only:["admin"],redirectTo:"main.dashboard.voice"}}}).state("main.staff.users.view.permit",{url:"/permit",templateUrl:"app/staff/user/view/view.permit.html",data:{permissions:{only:["admin"],redirectTo:"main.dashboard.voice"}},cache:!1,serie:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/jquery-multi-select/css/multi-select.css","assets/plugins/jquery-multi-select/js/jquery.multi-select.js","assets/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}}).state("main.staff.users.view.permit.voice",{url:"/voice",templateUrl:"app/staff/user/view/view.permit.voice.html",data:{permissions:{only:["admin"],redirectTo:"main.dashboard.voice"}}}).state("main.staff.users.view.permit.chat",{url:"/chat",templateUrl:"app/staff/user/view/view.permit.chat.html",data:{permissions:{only:["admin"],redirectTo:"main.dashboard.chat"}}}).state("main.staff.users.view.permit.mail",{url:"/mail",templateUrl:"app/staff/user/view/view.permit.mail.html",data:{permissions:{only:["admin"],redirectTo:"main.dashboard.mail"}}}).state("main.staff.users.view.permit.fax",{url:"/fax",templateUrl:"app/staff/user/view/view.permit.fax.html",data:{permissions:{only:["admin"],redirectTo:"main.dashboard.fax"}}}).state("main.staff.users.view.permit.sms",{url:"/sms",templateUrl:"app/staff/user/view/view.permit.sms.html",data:{permissions:{only:["admin"],redirectTo:"main.dashboard.sms"}}}).state("main.staff.users.view.permit.openchannel",{url:"/openchannel",templateUrl:"app/staff/user/view/view.permit.openchannel.html",data:{permissions:{only:["admin"],redirectTo:"main.dashboard.openchannel"}}}).state("main.staff.users.view.permit.modules",{url:"/modules",templateUrl:"app/staff/user/view/view.permit.modules.html",data:{permissions:{only:["admin"],redirectTo:"main.dashboard.voice"}}})}]),angular.module("xCallyShuttleApp").controller("UserWizardCtrl",["$scope","$location","WizardHandler","xAlert","$translate","User","Setting","Auth",function(a,b,c,d,e,f,g,h){a.initWizard=function(){return a.Auht=h,a.forms={info:void 0,voice:void 0},a.item={role:"user",host:"dynamic",context:"from-sip"},g.get({controller:"internal"}).$promise.then(function(b){return a.item.internal=b.value,g.get({id:1}).$promise}).then(function(b){a.setting=b})["catch"](function(a){d.error(a)})},a.next=function(){c.wizard().next()},a.exitValidation=function(a){return a},a.createItem=function(){return f.save(a.item).$promise.then(function(a){b.path("user"===a.role?"/staff/users/view/"+a.id+"/permit/voice":"/staff/users/view/"+a.id+"/account")})["catch"](function(a){d.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.staff.users.wizard",{url:"/wizard",templateUrl:"app/staff/user/wizard/wizard.html",controller:"UserWizardCtrl"})}]),angular.module("xCallyShuttleApp").controller("SugarcrmListCtrl",["$scope","SugarcrmAccount","gridOptions","xAlert","$translate",function(a,b,c,d,e){a.initView=function(){var d={exporterCsvFilename:"sugarcrm_account.csv",columnDefs:[{name:"name",displayName:"APPLICATION_NAME"},{name:"username"},{name:"remoteUri",displayName:"APPLICATION_URI"},{name:"action",width:250,buttons:[{"class":"blue-hoki",href:"/sugarcrm/view/{{row.entity.id}}/account",name:"profile"},{"class":"green-jungle",name:"check",onClick:"grid.appScope.checkAccount(row.entity.id)"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=c.gridOptions(b,d,a)},a.checkAccount=function(a){return b.get({id:a,controller:"check"}).$promise.then(function(){d.show(e.instant("MESSAGE_ACCOUNT_VERIFIED"),"success")})["catch"](function(){d.show(e.instant("MESSAGE_ACCOUNT_INVALID"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.sugarcrm.list",{url:"/list",templateUrl:"app/sugarcrm/list/list.html",controller:"SugarcrmListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").factory("SugarcrmAccount",["$resource",function(a){return a("/api/sugarcrm/accounts/:id/:controller",{id:"@id"},{update:{method:"PUT"},fields:{params:{controller:"fields"},isArray:!0},moduleFields:{params:{controller:"fields"},isArray:!0},check:{params:{controller:"check"}},modules:{params:{controller:"modules"},isArray:!0}})}]).factory("SugarcrmConfiguration",["$resource",function(a){return a("/api/sugarcrm/accounts/:accountId/configurations/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]).factory("SugarcrmField",["$resource",function(a){return a("/api/sugarcrm/accounts/:accountId/configurations/:configurationId/fields/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.sugarcrm",{url:"/sugarcrm",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin"],redirectTo:"main.dashboard.voice"}}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.sugarcrm.view.configurations",{url:"/configurations",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("SugarcrmViewConfigurationListCtrl",["$scope","$stateParams","$translate","gridOptions","SugarcrmConfiguration","$uibModal",function(a,b,c,d,e,f){a.initView=function(){var c={exporterCsvFilename:"sugarcrm_configurations.csv",columnDefs:[{name:"name"},{name:"description"},{name:"action",width:125,buttons:[{"class":"blue-hoki",href:"/sugarcrm/view/{{row.entity.AccountId}}/configurations/view/{{row.entity.id}}",name:"profile"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=d.gridOptions(e,c,a,{accountId:b.id})},a.createItem=function(){var b=f.open({animation:!0,templateUrl:"app/sugarcrm/view/configuration/list/create.modal.html",controller:"SugarcrmCreateConfigurationCtrl"});b.result.then(function(){a.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("SugarcrmCreateConfigurationCtrl",["$scope","$translate","$uibModalInstance","SugarcrmConfiguration","xAlert","$stateParams","channel",function(a,b,c,d,e,f,g){a.form={},a.item={},a.channels=g,a.item.channel="voice",a.item.type="Queue",a.save=function(){return d.save({accountId:f.id},a.item).$promise.then(function(a){e.show(b.instant("MESSAGE_WELL_DONE"),"success"),c.close(a)})["catch"](function(a){e.error(a)})},a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.sugarcrm.view.configurations.list",{url:"/list",templateUrl:"app/sugarcrm/view/configuration/list/list.html",controller:"SugarcrmViewConfigurationListCtrl"})}]),angular.module("xCallyShuttleApp").controller("SugarcrmViewConfigurationViewCtrl",["$scope","$filter","$stateParams","$translate","socket","variable","xAlert","SugarcrmAccount","SugarcrmConfiguration","SugarcrmField","Variable","usSpinnerService",function(a,b,c,d,e,f,g,h,i,j,k,l){a.$on("$destroy",function(){e.unsyncUpdates("sugarcrm_field")}),a.config={autoHideScrollbar:!1,theme:"dark",advanced:{updateOnContentResize:!0},setHeight:300,scrollInertia:0},a.fieldType=[{type:"string",title:"String"},{type:"variable",title:"Variable"},{type:"customVariable",title:"Custom Variable"}],a.descFieldType=[{type:"string",title:"String"},{type:"keyValue",title:"Key Value"}],a.defaultMappingSwitch={onText:"On",offText:"Off",isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.groupVariableByGroup=function(a){switch(a.group){case"voice_queue":return"Voice: Queue";default:return"Other"}},a.initView=function(){a.configurationName="",a.subjectConfig=[],a.descriptionConfig=[], -a.fieldConfig=[],a.variables=f,a.mapping={}},a.getConfiguration=function(){return i.get({accountId:c.id,id:c.configurationId}).$promise.then(function(b){a.configurationName=b.name,a.subjectConfig=b.Subject,a.descriptionConfig=b.Description,a.fieldConfig=b.Field,a.mapping.defaultMapping=b.defaultMapping,a.mapping.mappingModule=b.mappingModule,a.mapping.mappingFields=b.mappingFields,a.getModuleFields(),e.socket.on("sugarcrm_field:remove",function(b){_.remove(a.subjectConfig,{id:b.id}),_.remove(a.descriptionConfig,{id:b.id}),_.remove(a.fieldConfig,{id:b.id})})})["catch"](function(a){g.error(a)})},a.getCustomVariables=function(){return k.get().$promise.then(function(b){a.customVariables=b.rows})["catch"](function(a){g.error(a)})},a.getFields=function(){return h.fields({id:c.id}).$promise.then(function(c){a.accountFields=_.sortBy(b("sugarcrm")(c),["name"]),_.forEach(c,function(a){a.options=_.toArray(a.options)})})["catch"](function(a){g.error(a)})},a.getModules=function(){return h.modules({id:c.id}).$promise.then(function(b){a.accountModules=b})["catch"](function(a){g.error(a)})},a.getModuleFields=function(){return!a.mapping.defaultMapping&&a.mapping.mappingModule?h.moduleFields({id:c.id,module:a.mapping.mappingModule}).$promise.then(function(b){a.moduleFields=b})["catch"](function(a){g.error(a)})["finally"](function(){l.stop("spinner-grid")}):void 0},a.addItem=function(b){var d={};switch(b){case"subject":case"description":d={type:"string",content:""};break;case"field":d={content:""}}return i.save({accountId:c.id,id:c.configurationId,controller:b},d).$promise.then(function(c){switch(b){case"subject":a.subjectConfig.push(c);break;case"description":a.descriptionConfig.push(c);break;case"field":a.fieldConfig.push(c)}})["catch"](function(a){g.error(a)})},a.changeType=function(b){"variable"===b.type?(b.content="",b.variableName=""):"string"===b.type?(b.VariableId=null,b.variableName=""):"customVariable"===b.type&&(b.VariableId=null,b.content=""),a.updateField(b)},a.updateField=function(a){return j.update({accountId:c.id,configurationId:c.configurationId,id:a.id},a).$promise.then(function(){})["catch"](function(a){g.error(a)})},a.removeItem=function(a){return j["delete"]({accountId:c.id,configurationId:c.configurationId,id:a.id}).$promise.then(function(){g.show(d.instant("MESSAGE_WELL_DONE")+"!","success")})["catch"](function(a){g.error(a)})},a.changeFieldType=function(b){b.content="",b.variableName="",b.nameField="",b.VariableId=null,a.updateField(b)},a.changeDescType=function(b){"keyValue"===b.type?(b.content="","string"===b.keyType?(b.VariableId=null,b.variableName=""):"variable"===b.keyType?(b.keyContent="",b.VariableId=null):"customVariable"===b.keyType&&(b.keyContent="",b.variableName="")):"string"===b.type&&(b.VariableId=null,b.variableName="",b.key="",b.keyContent=""),a.updateField(b)},a.getSystemFieldOptions=function(b){if(b){var c=_.find(a.accountFields,"name",b);return c?c.options.length>0?c.options:null:void 0}},a.updateMapping=function(){return a.mapping.defaultMapping&&(a.mapping.mappingModule=null,a.mapping.mappingFields=[]),i.update({accountId:c.id,id:c.configurationId},a.mapping).$promise.then(function(){g.show(d.instant("MESSAGE_WELL_DONE")+".","success")})["catch"](function(a){g.error(a)})},a.updateMappingModule=function(){l.spin("spinner-grid"),a.mapping.mappingFields=[],a.getModuleFields()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.sugarcrm.view.configurations.view",{url:"/view/:configurationId",templateUrl:"app/sugarcrm/view/configuration/view/view.html",controller:"SugarcrmViewConfigurationViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("SugarcrmViewCtrl",["$scope","$http","$stateParams","$translate","$location","$filter","WizardHandler","socket","xAlert","Modal","SugarcrmAccount",function(a,b,c,d,e,f,g,h,i,j,k){a.initView=function(){return k.get({id:c.id}).$promise.then(function(b){a.account=b})["catch"](function(a){i.error(a)})},a.updateItem=function(){return k.update({id:c.id},a.account).$promise.then(function(){i.show(d.instant("MESSAGE_WELL_DONE")+".","success")})["catch"](function(a){i.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.sugarcrm.view",{url:"/view/:id",templateUrl:"app/sugarcrm/view/view.html",controller:"SugarcrmViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.sugarcrm.view.account",{url:"/account",templateUrl:"app/sugarcrm/view/view.account.html"})}]),angular.module("xCallyShuttleApp").controller("SugarcrmkWizardCtrl",["$scope","$http","$location","$translate","xAlert","WizardHandler","SugarcrmAccount",function(a,b,c,d,e,f,g){a.translate=d,a.initWizard=function(){a.$translate=d,a.forms={},a.item={},a.item.serverUrl=c.protocol()+"://"+location.host},a.next=function(){f.wizard().next()},a.exitValidation=function(a){return a},a.createItem=function(){return g.save(a.item).$promise.then(function(){e.show(d.instant("MESSAGE_WELL_DONE")+".","success"),c.path("/sugarcrm/list")})["catch"](function(a){e.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.sugarcrm.wizard",{url:"/wizard",templateUrl:"app/sugarcrm/wizard/wizard.html",controller:"SugarcrmkWizardCtrl"})}]),angular.module("xCallyShuttleApp").factory("CannedAnswer",["$resource",function(a){return a("/api/answers/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.answers",{url:"/answers",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:58}}})}]),angular.module("xCallyShuttleApp").controller("AnswerListCtrl",["$scope","$uibModal","CannedAnswer","gridOptions",function(a,b,c,d){a.initView=function(){var b={exporterCsvFilename:"answers.csv",columnDefs:[{name:"key",displayName:"APPLICATION_KEY"},{name:"value"},{name:"description"},{name:"action",width:75,buttons:[{"class":"blue-hoki",href:"/tools/answers/view/{{row.entity.id}}/settings",name:"settings"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.key, row.entity.id)"}]}]};a.gridOptions=d.gridOptions(c,b,a)},a.createItem=function(){b.open({animation:!0,templateUrl:"app/tools/answer/list/list.create.modal.html",controller:"AnswerListCreateCtrl"}).result.then(function(b){a.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("AnswerListCreateCtrl",["$scope","$translate","$uibModalInstance","CannedAnswer","xAlert",function(a,b,c,d,e){a.form={},a.item={},a.save=function(){return d.save(a.item).$promise.then(function(a){e.show(b.instant("MESSAGE_WELL_DONE"),"success"),c.close(a)})["catch"](function(a){e.error(a)})},a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.answers.list",{url:"/list",templateUrl:"app/tools/answer/list/list.html",controller:"AnswerListCtrl"})}]),angular.module("xCallyShuttleApp").controller("AnswerViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","$location","CannedAnswer",function(a,b,c,d,e,f,g){a.getAnswer=function(){return g.get({id:e.id}).$promise.then(function(b){a.answer=b})["catch"](function(a){c.error(a)})},a.updateAnswer=function(){var b=angular.copy(a.answer);return g.update({id:e.id},b).$promise.then(function(){c.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){c.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.answers.view",{url:"/view/:id",templateUrl:"app/tools/answer/view/view.html",controller:"AnswerViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.tools.answers.view.settings",{url:"/settings",templateUrl:"app/tools/answer/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").factory("Automation",["$resource",function(a){return a("/api/automations/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.automations",{url:"/automations",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:51}}})}]),angular.module("xCallyShuttleApp").controller("AutomationListCtrl",["$scope","$http","$translate","xAlert","Automation","gridOptions",function(a,b,c,d,e,f){a.onText="On",a.offText="Off",a.isActive=!0,a.size="mini",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.initView=function(){var b={exporterCsvFilename:"Automations.csv",columnDefs:[{name:"name"},{name:"description"},{name:"channel"},{name:"status",cellTemplate:'<div class="centered-uigrid-td"><input data-ng-change="grid.appScope.updateItem(row.entity)", bs-switch ng-model="row.entity.status" type="checkbox" switch-active="{{ grid.appScope.isActive }}" switch-on-text="{{ grid.appScope.onText }}" switch-off-text="{{ grid.appScope.offText }}" switch-on-color="{{ grid.appScope.onColor }}" switch-off-color="{{ grid.appScope.offColor }}" switch-animate="{{ grid.appScope.animate }}" switch-size="{{ grid.appScope.size }}" switch-label="{{ grid.appScope.label }}" switch-icon="{{ grid.appScope.icon }}" switch-radio-off="{{ grid.appScope.radioOff }}" switch-label-width="{{ grid.appScope.labelWidth }}" switch-handle-width="{{ grid.appScope.handleWidth }}"></div>',width:100,enableFiltering:!1},{name:"action",width:75,buttons:[{"class":"blue-hoki",href:"/tools/automations/view/{{row.entity.id}}/settings",name:"settings"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=f.gridOptions(e,b,a)},a.updateItem=function(a){return e.update({id:a.id},a).$promise.then(function(){d.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){console.error(a),d.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.automations.list",{url:"/list",templateUrl:"app/tools/automation/list/list.html",controller:"AutomationListCtrl"})}]),angular.module("xCallyShuttleApp").controller("AutomationViewCtrl",["$scope","$stateParams","$http","$translate","xAlert","automations","Automation","$location",function(a,b,c,d,e,f,g,h){a.$automations=f,a.recordSwitch={onText:"On",offText:"Off",isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.forms={general:{}},a.addCondition=function(b){a.automation[b].push({field:"",operator:"",value:""})},a.removeCondition=function(b,c){a.automation[b].splice(c,1)},a.addAction=function(){a.automation.Actions.push({action:"",data1:"",data2:"",data3:"",data4:"",data5:""})},a.resetActionData=function(a){a.data1="",a.data2="",a.data3="",a.data4="",a.data5=""},a.removeAction=function(b){a.automation.Actions.splice(b,1)},a.initView=function(){return g.get({id:b.id}).$promise.then(function(b){a.automation=b})["catch"](function(a){e.error(a),h.path("/tools/automations/list")})},a.updateAutomation=function(){return g.update({id:b.id},a.automation).$promise.then(function(){e.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){console.error(a),e.error(a)})},a.exitValidation=function(b){return console.log(b&&(a.automation.All.length||a.automation.Any.length)&&a.automation.Actions.length),!(!b||!a.automation.All.length&&!a.automation.Any.length||!a.automation.Actions.length)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.automations.view",{url:"/view/:id",templateUrl:"app/tools/automation/view/view.html",controller:"AutomationViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]})}]}}).state("main.tools.automations.view.settings",{url:"/settings",templateUrl:"app/tools/automation/view/view.settings.html"}).state("main.tools.automations.view.routes",{url:"/routes",templateUrl:"app/tools/automation/view/view.routes.html"}).state("main.tools.automations.view.application",{url:"/application",templateUrl:"app/tools/automation/view/view.application.html"})}]),angular.module("xCallyShuttleApp").controller("AutomationWizardCtrl",["$scope","$http","$location","xAlert","automations","WizardHandler","Automation",function(a,b,c,d,e,f,g){a.$automations=e,a.statusSwitch={onText:"On",offText:"Off",isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.tempData={voice:{},mail:{},chat:{},fax:{}},a.item={All:[],Any:[],Actions:[]},a.forms={general:void 0,settings:void 0},a.addCondition=function(b){a.item[b].push({field:"",operator:"",value:""})},a.removeCondition=function(b,c){a.item[b].splice(c,1)},a.addAction=function(){a.item.Actions.push({action:"",data1:"",data2:"",data3:"",data4:"",data5:""})},a.resetActionData=function(a){a.data1="",a.data2="",a.data3="",a.data4="",a.data5=""},a.removeAction=function(b){a.item.Actions.splice(b,1)},a.$watch("item.channel",function(b,c){c&&(a.tempData[c].All=_.clone(a.item.All,!0),a.tempData[c].Any=_.clone(a.item.Any,!0),a.tempData[c].Actions=_.clone(a.item.Actions,!0)),a.item.All=a.tempData[b].All?a.tempData[b].All:[],a.item.Any=a.tempData[b].Any?a.tempData[b].Any:[],a.item.Actions=a.tempData[b].Actions?a.tempData[b].Actions:[]},!0),a.item.channel="mail",a.createItem=function(){return g.save(a.item).$promise.then(function(){c.path("/tools/automations/list")})["catch"](function(a){console.error(a),d.error(a)})},a.next=function(){f.wizard().next()},a.previous=function(){f.wizard().previous()},a.exitValidation=function(a){return a},a.exitSettingsValidation=function(b){return!(!b||!a.item.All.length&&!a.item.Any.length||!a.item.Actions.length)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.automations.wizard",{url:"/wizard",templateUrl:"app/tools/automation/wizard/wizard.html",controller:"AutomationWizardCtrl"})}]),angular.module("xCallyShuttleApp").factory("Interval",["$resource",function(a){return a("/api/intervals/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]).factory("SubInterval",["$resource",function(a){return a("/api/intervals/:intervalId/subintervals/:id",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.intervals",{url:"/intervals",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:53}}})}]),angular.module("xCallyShuttleApp").controller("IntervalListCtrl",["$scope","$uibModal","Interval","gridOptions",function(a,b,c,d){a.initView=function(){var b={exporterCsvFilename:"intervals.csv",columnDefs:[{name:"name"},{name:"description"},{name:"action",width:75,buttons:[{"class":"blue-hoki",href:"/tools/intervals/view/{{row.entity.id}}/settings",name:"settings"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=d.gridOptions(c,b,a)},a.createItem=function(){var c=b.open({animation:!0,templateUrl:"app/tools/interval/list/list.create.modal.html",controller:"IntervalListCreateCtrl"});c.result.then(function(b){console.log(b),a.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("IntervalListCreateCtrl",["$scope","$translate","$uibModalInstance","Interval","xAlert",function(a,b,c,d,e){a.form={},a.item={},a.save=function(){return d.save(a.item).$promise.then(function(a){e.show(b.instant("MESSAGE_WELL_DONE"),"success"),c.close(a)})["catch"](function(a){e.error(a)})},a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.intervals.list",{url:"/list",templateUrl:"app/tools/interval/list/list.html",controller:"IntervalListCtrl"})}]),angular.module("xCallyShuttleApp").controller("IntervalViewSubintervalsListCtrl",["$scope","$stateParams","gridOptions","SubInterval","$translate","$uibModal",function(a,b,c,d,e,f){a.stateParams=b,a.initView=function(){var e={exporterCsvFilename:"tools_interval.csv",enableSelectAll:!1,enableRowSelection:!1,multiSelect:!1,columnDefs:[{name:"name"},{name:"interval"},{name:"action",width:125,buttons:[{"class":"blue-hoki",href:"/tools/intervals/view/{{row.entity.IntervalId}}/subintervals/view/{{row.entity.id}}",name:"profile"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=c.gridOptions(d,e,a,{intervalId:b.id})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.intervals.view.subintervals.list",{url:"/list",templateUrl:"app/tools/interval/view/subinterval/list/list.html",controller:"IntervalViewSubintervalsListCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.intervals.view.subintervals",{url:"/subintervals",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("IntervalViewSubintervalsViewCtrl",["$scope","$stateParams","WizardHandler","SubInterval","xAlert","$location","$translate","Interval",function(a,b,c,d,e,f,g,h){function i(b){var c,d,e,f;c=b.t_from&&b.t_to&&!b.alwaysTime?moment(b.t_from).format("HH:mm")+"-"+moment(b.t_to).format("HH:mm"):"*",b.wd_from&&"always"!==b.wd_from?(d=b.wd_from,b.wd_to&&"always"!==b.wd_to&&(d+="-"+b.wd_to)):d="*",b.md_from&&"always"!==b.md_from?(e=b.md_from,b.md_to&&"always"!==b.md_to&&(e+="-"+b.md_to)):e="*",b.m_from&&"always"!==b.m_from?(f=b.m_from,b.m_to&&"always"!==b.m_to&&(f+="-"+b.m_to)):f="*",a.subinterval&&(a.subinterval.interval=c+","+d+","+e+","+f)}a.isNewSubinterval=!1,a["switch"]={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.initSubInterval=function(){return b.subintervalId?(a.isNewSubinterval=!1,a.splittedInterval={t_from:moment(new Date),t_to:moment(new Date)},d.get({id:b.subintervalId,intervalId:b.id}).$promise.then(function(b){a.subinterval=b;var c,d=a.subinterval?a.subinterval.interval.split(","):["*","*","*","*"];d.forEach(function(b,d){switch(d){case 0:"*"!==b?(c=b.split("-"),a.splittedInterval.t_from=moment(c[0],"HH:mm"),a.splittedInterval.t_to=moment(c[1],"HH:mm"),a.splittedInterval.alwaysTime=!1):(a.splittedInterval.t_from=moment(new Date),a.splittedInterval.t_to=moment(new Date),a.splittedInterval.alwaysTime=!0);break;case 1:"*"!==b?(c=b.split("-"),a.splittedInterval.wd_from=c[0],a.splittedInterval.wd_to=c[1]?c[1]:"always"):(a.splittedInterval.wd_from="always",a.splittedInterval.wd_to="always");break;case 2:"*"!==b?(c=b.split("-"),a.splittedInterval.md_from=c[0],a.splittedInterval.md_to=c[1]?c[1]:"always"):(a.splittedInterval.md_from="always",a.splittedInterval.md_to="always");break;case 3:"*"!==b?(c=b.split("-"),a.splittedInterval.m_from=c[0],a.splittedInterval.m_to=c[1]?c[1]:"always"):(a.splittedInterval.m_from="always",a.splittedInterval.m_to="always")}})})["catch"](function(a){e.error(a),f.path("/tools/intervals/list")})):(a.isNewSubinterval=!0,a.subinterval={},a.splittedInterval={t_from:moment(new Date),t_to:moment(new Date),wd_from:"always",wd_to:"always",md_from:"always",md_to:"always",m_from:"always",m_to:"always",alwaysTime:!0},void 0)},a.next=function(){c.wizard().next()},a.previous=function(){c.wizard().previous()},a.exitValidation=function(a){return a},a.$watch("splittedInterval",function(a){a&&i(a)},!0),a.addOrUpdateSubInterval=function(){return a.isNewSubinterval?d.save({intervalId:b.id},a.subinterval).$promise.then(function(){e.show(g.instant("MESSAGE_WELL_DONE")+".","success"),f.path("/tools/intervals/view/"+b.id+"/subintervals/list")})["catch"](function(a){e.error(a)}):h.update({id:b.subintervalId},a.subinterval).$promise.then(function(){e.show(g.instant("MESSAGE_WELL_DONE")+".","success"),f.path("/tools/intervals/view/"+b.id+"/subintervals/list")})["catch"](function(a){e.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.intervals.view.subintervals.view",{url:"/view/:subintervalId",templateUrl:"app/tools/interval/view/subinterval/view/view.html",controller:"IntervalViewSubintervalsViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("IntervalViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","socket","$location","WizardHandler","Modal","interval","Interval",function(a,b,c,d,e,f,g,h,i,j,k){function l(b){var c,d,e,f;c=b.t_from&&b.t_to&&!b.alwaysTime?moment(b.t_from).format("HH:mm")+"-"+moment(b.t_to).format("HH:mm"):"*",b.wd_from&&"always"!==b.wd_from?(d=b.wd_from,b.wd_to&&"always"!==b.wd_to&&(d+="-"+b.wd_to)):d="*",b.md_from&&"always"!==b.md_from?(e=b.md_from,b.md_to&&"always"!==b.md_to&&(e+="-"+b.md_to)):e="*",b.m_from&&"always"!==b.m_from?(f=b.m_from,b.m_to&&"always"!==b.m_to&&(f+="-"+b.m_to)):f="*",void 0!==a.selectedSubInterval?a.interval.SubIntervals[a.selectedSubInterval].interval=c+","+d+","+e+","+f:a.subinterval.interval=c+","+d+","+e+","+f}a.$translate=d,a.$interval=j.interval,a.selectedSubInterval=void 0,a["switch"]={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.gridOptions={columnDefs:[{name:"name",displayName:"APPLICATION_NAME",headerCellFilter:"translate"},{name:"interval",displayName:"APPLICATION_INTERVAL",headerCellFilter:"translate"},{name:"action",displayName:"APPLICATION_ACTION",headerCellFilter:"translate",width:125,cellTemplate:'<a class="btn btn-xs blue-hoki" data-ng-click="grid.appScope.openSubInterval(grid.appScope.gridOptions.data.indexOf(row.entity))">{{\'APPLICATION_SETTINGS\' | translate}}</a><a class="btn btn-xs red-sunglo" data-ng-click="grid.appScope.deleteSubInterval(row.entity.name+\' interval\', grid.appScope.gridOptions.data.indexOf(row.entity))">{{\'APPLICATION_DELETE\' | translate}}</a>'}]},a.forms={subinterval:void 0,general:void 0},a.initSubInterval=function(b){b&&(a.selectedSubInterval=void 0),a.subinterval={},a.splittedInterval={t_from:moment(new Date),t_to:moment(new Date),wd_from:"always",wd_to:"always",md_from:"always",md_to:"always",m_from:"always",m_to:"always",alwaysTime:!0}},a.next=function(){h.wizard().next()},a.previous=function(){h.wizard().previous()},a.exitValidation=function(a){return a},a.deselectAndRedirect=function(b){a.selectedSubInterval=void 0,g.path(b)},a.getInterval=function(){return k.get({id:e.id}).$promise.then(function(b){a.interval=b})["catch"](function(a){c.error(a),g.path("/tools/intervals/list")})},a.openSubInterval=function(b){a.selectedSubInterval=b,g.path("/tools/intervals/view/"+e.id+"/subintervals/settings")},a.updateInterval=function(){var b={name:a.interval.name,description:a.interval.description};return k.update({id:e.id},b).$promise.then(function(){c.show(d.instant("MESSAGE_WELL_DONE")+".","success")})["catch"](function(a){c.error(a)})},a.getSubInterval=function(){void 0===a.selectedSubInterval&&g.path("/tools/intervals/list"),a.splittedInterval={t_from:moment(new Date),t_to:moment(new Date)};var b,c=a.interval.SubIntervals[a.selectedSubInterval]?a.interval.SubIntervals[a.selectedSubInterval].interval.split(","):["*","*","*","*"];c.forEach(function(c,d){switch(d){case 0:"*"!==c?(b=c.split("-"),a.splittedInterval.t_from=moment(b[0],"HH:mm"),a.splittedInterval.t_to=moment(b[1],"HH:mm"),a.splittedInterval.alwaysTime=!1):(a.splittedInterval.t_from=moment(new Date),a.splittedInterval.t_to=moment(new Date),a.splittedInterval.alwaysTime=!0);break;case 1:"*"!==c?(b=c.split("-"),a.splittedInterval.wd_from=b[0],a.splittedInterval.wd_to=b[1]?b[1]:"always"):(a.splittedInterval.wd_from="always",a.splittedInterval.wd_to="always");break;case 2:"*"!==c?(b=c.split("-"),a.splittedInterval.md_from=b[0],a.splittedInterval.md_to=b[1]?b[1]:"always"):(a.splittedInterval.md_from="always",a.splittedInterval.md_to="always");break;case 3:"*"!==c?(b=c.split("-"),a.splittedInterval.m_from=b[0],a.splittedInterval.m_to=b[1]?b[1]:"always"):(a.splittedInterval.m_from="always",a.splittedInterval.m_to="always")}})},a.$watch("splittedInterval",function(a){a&&l(a)},!0),a.addSubInterval=function(){a.interval.SubIntervals.push(a.subinterval),a.updateInterval("subintervals")},a.deleteSubInterval=i.confirm["delete"](function(b){a.interval.SubIntervals.splice(b,1),a.updateInterval()})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.intervals.view",{url:"/view/:id",templateUrl:"app/tools/interval/view/view.html",controller:"IntervalViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.tools.intervals.view.settings",{url:"/settings",templateUrl:"app/tools/interval/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").controller("PauseListCtrl",["$scope","$log","$uibModal","$translate","Pause","gridOptions",function(a,b,c,d,e,f){a.initView=function(){var b={exporterCsvFilename:"pauses.csv",columnDefs:[{name:"name"},{name:"description"},{name:"action",width:75,buttons:[{"class":"blue-hoki",href:"/tools/pauses/view/{{row.entity.id}}/settings",name:"settings"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=f.gridOptions(e,b,a)},a.createItem=function(){var b=c.open({animation:!0,templateUrl:"app/tools/pause/list/list.create.modal.html",controller:"PauseListCreateCtrl"});b.result.then(function(b){console.log(b),a.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("PauseListCreateCtrl",["$scope","$translate","$uibModalInstance","Pause","xAlert",function(a,b,c,d,e){a.form={},a.item={},a.save=function(){return d.save(a.item).$promise.then(function(a){e.show(b.instant("MESSAGE_WELL_DONE"),"success"),c.close(a)})["catch"](function(a){e.error(a)})},a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.pauses.list",{url:"/list",templateUrl:"app/tools/pause/list/list.html",controller:"PauseListCtrl"})}]),angular.module("xCallyShuttleApp").factory("Pause",["$resource",function(a){return a("/api/pauses/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.pauses",{url:"/pauses",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:57}}})}]),angular.module("xCallyShuttleApp").controller("PauseViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","$location","Pause",function(a,b,c,d,e,f,g){a.getPause=function(){return g.get({id:e.id}).$promise.then(function(b){a.pause=b})["catch"](function(a){c.error(a)})},a.updatePause=function(){var b=angular.copy(a.pause);return g.update({id:e.id},b).$promise.then(function(){c.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){c.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.pauses.view",{url:"/view/:id",templateUrl:"app/tools/pause/view/view.html",controller:"PauseViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.tools.pauses.view.settings",{url:"/settings",templateUrl:"app/tools/pause/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").controller("SchedulerListCtrl",["$scope","Scheduler","gridOptions","xAlert","$translate","socket",function(a,b,c,d,e,f){a._=_,a.switches={isActive:!0,size:"mini",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.scheduleTypes=[{name:"APPLICATION_REPORT_EXTRACTION",value:"report"},{name:"APPLICATION_HISTORY_MOVE",value:"history"},{name:"APPLICATION_DB_BACKUP",value:"backup"}],a.initView=function(){var d={exporterCsvFilename:"Schedules.csv",columnDefs:[{name:"name"},{name:"type",cellTemplate:'<div class="centered-uigrid-td">{{grid.appScope._.find(grid.appScope.scheduleTypes,{value:row.entity.type}).name | translate}}</div>'},{name:"description"},{name:"active",cellTemplate:'<div class="centered-uigrid-td"><input data-ng-change="grid.appScope.updateItem(row.entity)", bs-switch ng-model="row.entity.active" type="checkbox" switch-active="{{ grid.appScope.switches.isActive }}" switch-on-text="{{ \'APPLICATION_YES\' | translate }}" switch-off-text="{{ \'APPLICATION_NO\' | translate }}" switch-on-color="{{ grid.appScope.switches.onColor }}" switch-off-color="{{ grid.appScope.switches.offColor }}" switch-animate="{{ grid.appScope.switches.animate }}" switch-size="{{ grid.appScope.switches.size }}" switch-label="{{ grid.appScope.switches.label }}" switch-icon="{{ grid.appScope.switches.icon }}" switch-radio-off="{{ grid.appScope.switches.radioOff }}" switch-label-width="{{ grid.appScope.switches.labelWidth }}" switch-handle-width="{{ grid.appScope.switches.handleWidth }}"></div>',enableFiltering:!1,enableSorting:!1},{name:"sendMail",displayName:"APPLICATION_SEND_MAIL",cellTemplate:'<div data-ng-if="row.entity.type == \'report\'" class="centered-uigrid-td"><input data-ng-change="grid.appScope.updateItem(row.entity)", bs-switch ng-model="row.entity.sendMail" type="checkbox" switch-active="{{ grid.appScope.switches.isActive }}" switch-on-text="{{ \'APPLICATION_YES\' | translate }}" switch-off-text="{{ \'APPLICATION_NO\' | translate }}" switch-on-color="{{ grid.appScope.switches.onColor }}" switch-off-color="{{ grid.appScope.switches.offColor }}" switch-animate="{{ grid.appScope.switches.animate }}" switch-size="{{ grid.appScope.switches.size }}" switch-label="{{ grid.appScope.switches.label }}" switch-icon="{{ grid.appScope.switches.icon }}" switch-radio-off="{{ grid.appScope.switches.radioOff }}" switch-label-width="{{ grid.appScope.switches.labelWidth }}" switch-handle-width="{{ grid.appScope.switches.handleWidth }}"></div>',enableFiltering:!1,enableSorting:!1},{name:"action",width:100,buttons:[{"class":"blue-hoki",href:"/tools/scheduler/view/{{row.entity.id}}/settings",name:"settings"},{"class":"green-turquoise",name:"run",onClick:"grid.appScope.runSchedule(row.entity.id)"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=c.gridOptions(b,d,a)},a.updateItem=function(a){return b.update({id:a.id},a).$promise.then(function(){d.show(e.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){console.error(a),d.error(a)})},a.runSchedule=function(a){return b.get({id:a,controller:"run"}).$promise.then(function(){d.show(e.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){console.error(a),d.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.scheduler.list",{url:"/list",templateUrl:"app/tools/scheduler/list/list.html",controller:"SchedulerListCtrl"})}]),angular.module("xCallyShuttleApp").factory("Scheduler",["$resource",function(a){return a("/api/scheduler/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.scheduler",{url:"/scheduler",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:61}}})}]),angular.module("xCallyShuttleApp").controller("SchedulerViewCtrl",["$scope","xAlert","$translate","$stateParams","socket","$location","ReportTree","Scheduler","DefaultReport","CustomReport","$timeout","MailServerOut",function(a,b,c,d,e,f,g,h,i,j,k,l){ -function m(){switch(a.schedule.cronType=a.rangeExec.type,a.rangeExec.type){case"daily":a.schedule.cron="00 "+a.rangeExec.hour+" * * *";break;case"weekly":a.schedule.cron="00 "+a.rangeExec.hour+" * * "+a.rangeExec.weekDays.join(",");break;case"monthly":a.schedule.cron="00 "+a.rangeExec.hour+" "+a.rangeExec.monthDay+" * *"}}function n(b){var c;switch(b.cronType){case"daily":a.rangeExec.hour=Number(b.cron.split(" ")[1]),a.rangeExec.type=b.cronType;break;case"weekly":c=b.cron.split(" "),a.rangeExec.hour=Number(c[1]),c[4].split(",").forEach(function(b){a.rangeExec.weekDays.push(Number(b))}),a.rangeExec.type=b.cronType;break;case"monthly":c=b.cron.split(" "),a.rangeExec.hour=Number(c[1]),a.rangeExec.monthDay=Number(c[2]),a.rangeExec.type=b.cronType;break;case"currentDay":a.switchValues.today=!0}a.$watch("rangeExec",function(b){a.switchValues.today||m()},!0)}a.forms={},a.rangeExec={weekDays:[],monthDay:null,hour:0,type:null},a.initReports=function(){var c;return a.reports=[],a.tempTodayCron=null,g.query().$promise.then(function(b){return a.defaultTreeData=JSON.parse(b[0].tree),a.customTreeData=JSON.parse(b[1].tree),i.get().$promise}).then(function(b){return a.defRep=b.rows,a.defRep.length&&_.forEach(a.defRep,function(b){c=_.find(a.defaultTreeData,{id:b.parent}),c&&(b.parent="Motion Reports - "+c.text,b.type="default")}),j.get().$promise}).then(function(b){return a.cusRep=b.rows,a.cusRep.length&&_.forEach(a.cusRep,function(b){c=_.find(a.customTreeData,{id:b.parent}),c&&(b.parent="Custom Reports - "+c.text,b.type="custom")}),l.get().$promise}).then(function(b){a.mailServers=b.rows})["catch"](function(a){b.error(a)})},a.initView=function(){return h.get({id:d.id}).$promise.then(function(b){a.schedule=b,n(b)}).then(function(){e.socket.on("schedule:update",function(b){a.schedule.id===b.id&&(a.schedule.active=b.active,a.schedule.sendMail=b.sendMail)})})["catch"](function(a){console.error(a),f.path("/tools/scheduler/list")})},a.refreshSlider=function(){k(function(){a.$broadcast("rzSliderForceRender"),a.refreshSlider=null})},a.monthDays=function(){for(var a=[],b=1;31>=b;b++)a.push(b);return a}(),a.hours=function(){for(var a=[],b=0;23>=b;b++)a.push(b);return a}(),a.setReportTree=function(b){a.schedule.reportType=b.type},a.validitySlider={ceil:24,floor:0,showTicks:!0},a.switchValues={today:!1},a.switches={isActive:!0,size:"mini",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.scheduleTypes=[{name:"APPLICATION_REPORT_EXTRACTION",value:"report"}],a.todayCron=[{name:"15 min",value:"*/15 * * * *"},{name:"30 min",value:"*/30 * * * *"},{name:"1 h",value:"0 * * * *"}],a.reportRanges=[{name:"APPLICATION_PREVIOUS_DAY",value:"yesterday"},{name:"APPLICATION_LAST_SEVEN_DAYS",value:"last7"},{name:"APPLICATION_LAST_THIRTY_DAYS",value:"last30"},{name:"APPLICATION_LAST_MONTH",value:"lastMonth"}],a.cronTypes=[{name:"APPLICATION_DAY",value:"daily"},{name:"APPLICATION_WEEK",value:"weekly"},{name:"APPLICATION_MONTH",value:"monthly"}],a.weekDays=[{name:"APPLICATION_MONDAY",value:1},{name:"APPLICATION_TUESDAY",value:2},{name:"APPLICATION_WEDNESDAY",value:3},{name:"APPLICATION_THURSDAY",value:4},{name:"APPLICATION_FRIDAY",value:5},{name:"APPLICATION_SATURDAY",value:6},{name:"APPLICATION_SUNDAY",value:0}],a.checkToday=function(){a.switchValues.today?(a.schedule.cron=angular.copy(a.tempTodayCron),a.schedule.cronType="currentDay"):(a.tempTodayCron=angular.copy(a.schedule.cron),a.schedule.cron=void 0,m())},a.updateSchedule=function(){return h.update({id:a.schedule.id},a.schedule).$promise.then(function(){b.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){console.error(a),b.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.scheduler.view",{url:"/view/:id",templateUrl:"app/tools/scheduler/view/view.html",controller:"SchedulerViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.tools.scheduler.view.settings",{url:"/settings",templateUrl:"app/tools/scheduler/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").controller("SchedulerWizardCtrl",["$scope","WizardHandler","$location","xAlert","Scheduler","ReportTree","$translate","DefaultReport","CustomReport","MailServerOut",function(a,b,c,d,e,f,g,h,i,j){function k(){switch(a.item.cronType=a.rangeExec.type,a.rangeExec.type){case"daily":a.item.cron="00 "+a.rangeExec.hour+" * * *";break;case"weekly":a.item.cron="00 "+a.rangeExec.hour+" * * "+a.rangeExec.weekDays.join(",");break;case"monthly":a.item.cron="00 "+a.rangeExec.hour+" "+a.rangeExec.monthDay+" * *"}}a.forms={},a.item={validityStart:8,validityEnd:16,type:"report",reportType:"default"},a.initReports=function(){a.reports=[];var b;return f.query().$promise.then(function(b){return a.defaultTreeData=JSON.parse(b[0].tree),a.customTreeData=JSON.parse(b[1].tree),h.get().$promise}).then(function(c){return a.defRep=c.rows,a.defRep.length&&_.forEach(a.defRep,function(c){b=_.find(a.defaultTreeData,{id:c.parent}),b&&(c.parent="Motion Reports - "+b.text,c.type="default")}),i.get().$promise}).then(function(c){return a.cusRep=c.rows,a.cusRep.length&&_.forEach(a.cusRep,function(c){b=_.find(a.customTreeData,{id:c.parent}),b&&(c.parent="Custom Reports - "+b.text,c.type="custom")}),j.get().$promise}).then(function(b){a.mailServers=b.rows})["catch"](function(a){d.error(a)})},a.setReportTree=function(b){a.item.reportType=b.type},a.validitySlider={ceil:24,floor:0,showTicks:!0},a.switchValues={today:!1},a.switches={isActive:!0,size:"mini",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.scheduleTypes=[{name:"APPLICATION_REPORT_EXTRACTION",value:"report"}],a.todayCron=[{name:"15 min",value:"*/15 * * * *"},{name:"30 min",value:"*/30 * * * *"},{name:"1 h",value:"0 * * * *"}],a.reportRanges=[{name:"APPLICATION_PREVIOUS_DAY",value:"yesterday"},{name:"APPLICATION_LAST_SEVEN_DAYS",value:"last7"},{name:"APPLICATION_LAST_THIRTY_DAYS",value:"last30"},{name:"APPLICATION_LAST_MONTH",value:"lastMonth"}],a.cronTypes=[{name:"APPLICATION_DAY",value:"daily"},{name:"APPLICATION_WEEK",value:"weekly"},{name:"APPLICATION_MONTH",value:"monthly"}],a.weekDays=[{name:"APPLICATION_MONDAY",value:1},{name:"APPLICATION_TUESDAY",value:2},{name:"APPLICATION_WEDNESDAY",value:3},{name:"APPLICATION_THURSDAY",value:4},{name:"APPLICATION_FRIDAY",value:5},{name:"APPLICATION_SATURDAY",value:6},{name:"APPLICATION_SUNDAY",value:0}],a.tempTodayCron=null,a.checkToday=function(){a.switchValues.today?(a.item.cron=angular.copy(a.tempTodayCron),a.item.cronType="currentDay"):(a.tempTodayCron=angular.copy(a.item.cron),a.item.cron=void 0,k())},a.monthDays=function(){for(var a=[],b=1;31>=b;b++)a.push(b);return a}(),a.hours=function(){for(var a=[],b=0;23>=b;b++)a.push(b);return a}(),a.rangeExec={weekDays:[],monthDay:null,hour:0,type:null},a.$watch("rangeExec",function(b){a.switchValues.today||k()},!0),a.next=function(){b.wizard().next()},a.previous=function(){b.wizard().previous()},a.exitValidation=function(a){return a},a.createItem=function(){return e.save(a.item).$promise.then(function(){c.path("/tools/scheduler/list")})["catch"](function(a){d.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.scheduler.wizard",{url:"/wizard",templateUrl:"app/tools/scheduler/wizard/wizard.html",controller:"SchedulerWizardCtrl"})}]),angular.module("xCallyShuttleApp").controller("SoundListCtrl",["$scope","$http","socket","Modal","$q","FileUploader","$translate","xAlert","$cookieStore","$sce","Sound",function(a,b,c,d,e,f,g,h,i,j,k){a.Sound=k,a.isCollapsed=!0,a.downloadButtonClass="btn btn-xs blue-hoki",a["delete"]=d.confirm["delete"](function(a){b["delete"]("/api/sounds/"+a).success(function(a){}).error(function(a){console.log(a)})}),a.updateAudio=function(a,c){var d=e.defer();return b.put("/api/sounds/"+a,c).success(function(a){d.resolve()}).error(function(a){console.log(a.message),d.reject(a.message)}),d.promise},a.$on("$destroy",function(){c.unsyncUpdates("sound")}),a.initList=function(){b.get("/api/sounds").success(function(b){a.sounds=b.rows,b.rows.length||(a.isCollapsed=!1),c.syncUpdates("sound",a.sounds,function(){a.sounds.length||(a.isCollapsed=!1)})})};var l=a.uploader=new f({url:"/api/sounds",withCredentials:!0,headers:{Authorization:"Bearer "+i.get("token")}});l.filters.push({name:"customFilter",fn:function(a,b){return this.queue.length<10}}),l.onWhenAddingFileFailed=function(a,b,c){console.info("onWhenAddingFileFailed",a,b,c)},l.onAfterAddingFile=function(a){console.info("onAfterAddingFile",a)},l.onAfterAddingAll=function(a){console.info("onAfterAddingAll",a)},l.onBeforeUploadItem=function(a){console.info("onBeforeUploadItem",a)},l.onProgressItem=function(a,b){console.info("onProgressItem",a,b),a.isUploading=!0},l.onProgressAll=function(a){console.info("onProgressAll",a)},l.onSuccessItem=function(a,b,c,d){console.info("onSuccessItem",a,b,c,d),a.isUploading=!1},l.onErrorItem=function(a,b,c,d){console.info("onErrorItem",a,b,c,d),a.responseMessage=b,a.isUploading=!1},l.onCancelItem=function(a,b,c,d){console.info("onCancelItem",a,b,c,d),a.isUploading=!1},l.onCompleteItem=function(a,b,c,d){console.info("onCompleteItem",a,b,c,d),a.isUploading=!1},l.onCompleteAll=function(){console.info("onCompleteAll")}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.sounds.list",{url:"/list",templateUrl:"app/tools/sound/list/list.html",controller:"SoundListCtrl",authenticate:!0,resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/plugins/bootstrap-fileinput/bootstrap-fileinput.js"]})}]}})}]),angular.module("xCallyShuttleApp").factory("Sound",["$resource",function(a){return a("/api/sounds/:id/:controller",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.sounds",{url:"/sounds",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:60}}})}]),angular.module("xCallyShuttleApp").controller("TagListCtrl",["$scope","$uibModal","Tag","gridOptions","$rootScope",function(a,b,c,d,e){a.initView=function(){var b={exporterCsvFilename:"tag.csv",columnDefs:[{name:"name"},{name:"description"},{name:"action",width:75,buttons:[{"class":"blue-hoki",href:"/tools/tags/view/{{row.entity.id}}/settings",name:"settings"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=d.gridOptions(c,b,a)},a.createItem=function(){var c=b.open({animation:!0,templateUrl:"app/tools/tag/list/list.create.modal.html",controller:"TagListCreateCtrl"});c.result.then(function(){a.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("TagListCreateCtrl",["$scope","$translate","$uibModalInstance","Tag","xAlert",function(a,b,c,d,e){a.form={},a.item={},a.save=function(){return d.save(a.item).$promise.then(function(a){e.show(b.instant("MESSAGE_WELL_DONE"),"success"),c.close(a)})["catch"](function(a){e.error(a)})},a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.tags.list",{url:"/list",templateUrl:"app/tools/tag/list/list.html",controller:"TagListCtrl"})}]),angular.module("xCallyShuttleApp").factory("Tag",["$resource",function(a){return a("/api/tags/:id/:controller/:tag",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.tags",{url:"/tags",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:55}}})}]),angular.module("xCallyShuttleApp").controller("TagViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","$location","Tag","gridOptions","List","Company","Contact","uiGridConstants","usSpinnerService",function(a,b,c,d,e,f,g,h,i,j,k,l,m){function n(){m.stop("spinner-grid"),a.readyGrid=!0}a.getTag=function(){return g.get({id:e.id}).$promise.then(function(b){a.tag=b})["catch"](function(a){c.error(a)})},a.updateTag=function(){var b=angular.copy(a.tag);return g.update({id:e.id},b).$promise.then(function(){c.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){c.error(a)})},a.initChat=function(){m.spin("spinner-grid");var b={enableRowSelection:!1,exporterCsvFilename:"tagChat.csv",columnDefs:[{name:"type"},{name:"status"},{name:"ChatWebsite.name",displayName:"APPLICATION_WEBSITE"},{name:"ChatVisitor.email",displayName:"APPLICATION_VISITOR"},{name:"action",width:40,buttons:[{"class":"green",name:"chatRoom",onClick:"grid.appScope.openRoom(row.entity.id, 'chatRoom')"}]}]};a.gridOptions=h.gridOptions(g,b,a,{controller:"chat",tag:a.tag.name},null,null,n())},a.initMail=function(){m.spin("spinner-grid");var b={enableRowSelection:!1,exporterCsvFilename:"tagMail.csv",columnDefs:[{name:"subject"},{name:"from"},{name:"account"},{name:"status"},{name:"action",width:40,buttons:[{"class":"green",name:"mailRoom",onClick:"grid.appScope.openRoom(row.entity.id, 'mailRoom')"}]}]};a.gridOptions=h.gridOptions(g,b,a,{controller:"mail",tag:a.tag.name},null,null,n())},a.initFax=function(){m.spin("spinner-grid");var b={enableRowSelection:!1,exporterCsvFilename:"tagFax.csv",columnDefs:[{name:"from"},{name:"account"},{name:"status"},{name:"action",width:40,buttons:[{"class":"green",name:"faxRoom",onClick:"grid.appScope.openRoom(row.entity.id, 'faxRoom')"}]}]};a.gridOptions=h.gridOptions(g,b,a,{controller:"fax",tag:a.tag.name},null,null,n())},a.initSms=function(){m.spin("spinner-grid");var b={enableRowSelection:!1,exporterCsvFilename:"tagSms.csv",columnDefs:[{name:"from"},{name:"status"},{name:"action",width:40,buttons:[{"class":"green",name:"smsRoom",onClick:"grid.appScope.openRoom(row.entity.id, 'smsRoom')"}]}]};a.gridOptions=h.gridOptions(g,b,a,{controller:"sms",tag:a.tag.name},null,null,n())},a.initContacts=function(){a.readyGrid=!1,m.spin("spinner-grid");var b;return i.get().$promise.then(function(b){return a.lists=[],b.rows.forEach(function(b,c){a.lists.push({value:b.id,label:b.name})}),j.get().$promise}).then(function(b){a.companies=[],b.rows.forEach(function(b,c){a.companies.push({value:b.id,label:b.name})})}).then(function(){b={enableRowSelection:!1,exporterCsvFilename:"tagContacts.csv",columnDefs:[{name:"firstName"},{name:"lastName"},{name:"phone"},{name:"email"},{name:"ListId",displayName:"APPLICATION_LIST",field:"List.name",filter:{type:l.filter.SELECT,selectOptions:a.lists}},{name:"CompanyId",displayName:"APPLICATION_COMPANY",field:"Company.name",filter:{type:l.filter.SELECT,term:e.companyId||null,selectOptions:a.companies}},{name:"action",width:40,buttons:[{"class":"blue-hoki",name:"profile",onClick:"grid.appScope.openContactTab(row.entity)"}]}]},a.gridOptions=h.gridOptions(g,b,a,{controller:"contacts",tag:a.tag.name},null,null,n())})["catch"](function(a){c.error(a)})},a.openRoom=function(b,c){var d=_.find(a.workspaces,{id:b,type:c});if(d)d.active=!0;else{var e;switch(c){case"mailRoom":e="icon-envelope";break;case"chatRoom":e="fa fa-users";break;case"faxRoom":e="fa fa-fax";break;case"smsRoom":e="glyphicon glyphicon-comment"}a.workspaces.push({id:b,type:c,"class":e,active:!0})}}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.tags.view",{url:"/view/:id",templateUrl:"app/tools/tag/view/view.html",controller:"TagViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.tools.tags.view.settings",{url:"/settings",templateUrl:"app/tools/tag/view/view.settings.html"}).state("main.tools.tags.view.chat",{url:"/chat",templateUrl:"app/tools/tag/view/view.chat.html"}).state("main.tools.tags.view.mail",{url:"/mail",templateUrl:"app/tools/tag/view/view.mail.html"}).state("main.tools.tags.view.fax",{url:"/fax",templateUrl:"app/tools/tag/view/view.fax.html"}).state("main.tools.tags.view.sms",{url:"/sms",templateUrl:"app/tools/tag/view/view.sms.html"}).state("main.tools.tags.view.contacts",{url:"/contacts",templateUrl:"app/tools/tag/view/view.contacts.html"})}]),angular.module("xCallyShuttleApp").controller("TemplateListCtrl",["$scope","Template","gridOptions",function(a,b,c){a.initView=function(){var d={exporterCsvFilename:"templates.csv",columnDefs:[{name:"name"},{name:"description"},{name:"action",width:75,buttons:[{"class":"blue-hoki",href:"/tools/templates/view/{{row.entity.id}}/settings",name:"settings"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=c.gridOptions(b,d,a)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.templates.list",{url:"/list",templateUrl:"app/tools/template/list/list.html",controller:"TemplateListCtrl"})}]),angular.module("xCallyShuttleApp").factory("Template",["$resource",function(a){return a("/api/templates/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.templates",{url:"/templates",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:56}}})}]),angular.module("xCallyShuttleApp").controller("TemplateViewCtrl",["$scope","$rootScope","$http","$translate","$stateParams","xAlert","Template","templateVariable",function(a,b,c,d,e,f,g,h){a.initItem=function(){CKEDITOR.plugins.addExternal("richparams","/assets/plugins/ckeditor-richparams/"),a.options={language:b.language,allowedContent:!0,entities:!1,skin:"office2013",contentsCss:"/assets/css/global/richparams.css",extraPlugins:"richparams,autogrow",autoGrow_minHeight:450,richparams:h,disableNativeSpellChecker:!1,toolbar:[{name:"clipboard",items:["Cut","Copy","Paste","PasteText","PasteFromWord","-","Undo","Redo"]},{name:"links",items:["Link","Unlink","Anchor"]},{name:"insert",items:["Image","Table","HorizontalRule","SpecialChar"]},{name:"tools",items:["Maximize"]},{name:"document",items:["Source"]},"/",{name:"basicstyles",items:["Bold","Italic","Underline","Strike","Subscript","Superscript","-","RemoveFormat"]},{name:"paragraph",items:["NumberedList","BulletedList","-","Outdent","Indent","-","Blockquote"]},{name:"styles",items:["Styles","Format"]},"/",{name:"motion",items:["voice","chat","mail","sms","openchannel","fax"]}]},a.form={},a.item={},a.item=g.get({id:e.id})},a.updateItem=function(){return g.update(a.item).$promise.then(function(){f.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){f.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.templates.view",{url:"/view/:id",templateUrl:"app/tools/template/view/view.html",controller:"TemplateViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.tools.templates.view.settings",{url:"/settings",templateUrl:"app/tools/template/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").controller("TemplateWizardCtrl",["$scope","$rootScope","$location","$http","WizardHandler","xAlert","Template","templateVariable",function(a,b,c,d,e,f,g,h){a.initWizard=function(){CKEDITOR.plugins.addExternal("richparams","/assets/plugins/ckeditor-richparams/"),a.options={language:b.language,allowedContent:!0,entities:!1,skin:"office2013",contentsCss:"/assets/css/global/richparams.css",extraPlugins:"richparams,autogrow",autoGrow_minHeight:450,disableNativeSpellChecker:!1,richparams:h,toolbar:[{name:"clipboard",items:["Cut","Copy","Paste","PasteText","PasteFromWord","-","Undo","Redo"]},{name:"links",items:["Link","Unlink","Anchor"]},{name:"insert",items:["Image","Table","HorizontalRule","SpecialChar"]},{name:"tools",items:["Maximize"]},{name:"document",items:["Source"]},"/",{name:"basicstyles",items:["Bold","Italic","Underline","Strike","Subscript","Superscript","-","RemoveFormat"]},{name:"paragraph",items:["NumberedList","BulletedList","-","Outdent","Indent","-","Blockquote"]},{name:"styles",items:["Styles","Format"]},"/",{name:"motion",items:["voice","chat","mail","sms","openchannel","fax"]}]},a.item={},a.form={}},a.exitValidation=function(a){return a},a.createItem=function(){return g.save({name:a.item.name,description:a.item.description,subject:a.item.subject||null,html:a.item.html||null,text:a.item.text||null}).$promise.then(function(){c.path("/tools/templates/list")})["catch"](function(a){f.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.templates.wizard",{url:"/wizard",templateUrl:"app/tools/template/wizard/wizard.html",controller:"TemplateWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools",{url:"/tools",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:13}}})}]),angular.module("xCallyShuttleApp").controller("TriggerListCtrl",["$scope","$http","$translate","Modal","xAlert","Trigger","gridOptions",function(a,b,c,d,e,f,g){a.onText="On",a.offText="Off",a.isActive=!0,a.size="mini",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.initView=function(){var b={exporterCsvFilename:"Triggers.csv",columnDefs:[{name:"name"},{name:"description"},{name:"channel"},{name:"status",cellTemplate:'<div class="centered-uigrid-td"><input data-ng-change="grid.appScope.updateItem(row.entity)", bs-switch ng-model="row.entity.status" type="checkbox" switch-active="{{ grid.appScope.isActive }}" switch-on-text="{{ grid.appScope.onText }}" switch-off-text="{{ grid.appScope.offText }}" switch-on-color="{{ grid.appScope.onColor }}" switch-off-color="{{ grid.appScope.offColor }}" switch-animate="{{ grid.appScope.animate }}" switch-size="{{ grid.appScope.size }}" switch-label="{{ grid.appScope.label }}" switch-icon="{{ grid.appScope.icon }}" switch-radio-off="{{ grid.appScope.radioOff }}" switch-label-width="{{ grid.appScope.labelWidth }}" switch-handle-width="{{ grid.appScope.handleWidth }}"></div>',width:100,enableFiltering:!1},{name:"action",width:75,buttons:[{"class":"blue-hoki",href:"/tools/triggers/view/{{row.entity.id}}/settings",name:"settings"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=g.gridOptions(f,b,a)},a.updateItem=function(a){return f.update({id:a.id},a).$promise.then(function(){e.show(c.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){e.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.triggers.list",{url:"/list",templateUrl:"app/tools/trigger/list/list.html",controller:"TriggerListCtrl"})}]),angular.module("xCallyShuttleApp").factory("Trigger",["$resource",function(a){return a("/api/triggers/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.triggers",{url:"/triggers",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:50}}})}]),angular.module("xCallyShuttleApp").controller("TriggerViewCtrl",["$scope","$stateParams","$http","$translate","xAlert","triggers","Trigger","$location",function(a,b,c,d,e,f,g,h){a.$triggers=f,a.recordSwitch={onText:"On",offText:"Off",isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.forms={general:{}},a.addCondition=function(b){a.trigger[b].push({field:"",operator:"",value:""})},a.removeCondition=function(b,c){a.trigger[b].splice(c,1)},a.addAction=function(){a.trigger.Actions.push({action:"",data1:"",data2:"",data3:"",data4:"",data5:""})},a.resetActionData=function(a){a.data1="",a.data2="",a.data3="",a.data4="",a.data5=""},a.removeAction=function(b){a.trigger.Actions.splice(b,1)},a.initView=function(){return g.get({id:b.id}).$promise.then(function(b){a.trigger=b})["catch"](function(a){e.error(a),h.path("/tools/triggers/list")})},a.updateTrigger=function(){return g.update({id:b.id},a.trigger).$promise.then(function(){e.show(d.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){console.error(a),e.error(a)})},a.exitValidation=function(b){return!(!b||!a.trigger.Actions.length)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.triggers.view",{url:"/view/:id",templateUrl:"app/tools/trigger/view/view.html",controller:"TriggerViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load({insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]})}]}}).state("main.tools.triggers.view.settings",{url:"/settings",templateUrl:"app/tools/trigger/view/view.settings.html"}).state("main.tools.triggers.view.routes",{url:"/routes",templateUrl:"app/tools/trigger/view/view.routes.html"}).state("main.tools.triggers.view.application",{url:"/application",templateUrl:"app/tools/trigger/view/view.application.html"})}]),angular.module("xCallyShuttleApp").controller("TriggerWizardCtrl",["$scope","$http","$location","xAlert","triggers","WizardHandler","Trigger",function(a,b,c,d,e,f,g){a.$triggers=e,a.statusSwitch={onText:"On",offText:"Off",isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.tempData={voice:{},mail:{},chat:{},fax:{}},a.item={All:[],Any:[],Actions:[]},a.forms={general:void 0,settings:void 0},a.addCondition=function(b){a.item[b].push({field:"",operator:"",value:""})},a.removeCondition=function(b,c){a.item[b].splice(c,1)},a.addAction=function(){a.item.Actions.push({action:"",data1:"",data2:"",data3:"",data4:"",data5:""})},a.resetActionData=function(a){a.data1="",a.data2="",a.data3="",a.data4="",a.data5=""},a.removeAction=function(b){a.item.Actions.splice(b,1)},a.$watch("item.channel",function(b,c){c&&(a.tempData[c].All=_.clone(a.item.All,!0),a.tempData[c].Any=_.clone(a.item.Any,!0),a.tempData[c].Actions=_.clone(a.item.Actions,!0)),a.item.All=a.tempData[b].All?a.tempData[b].All:[],a.item.Any=a.tempData[b].Any?a.tempData[b].Any:[],a.item.Actions=a.tempData[b].Actions?a.tempData[b].Actions:[]},!0),a.item.channel="voice",a.createItem=function(){return g.save(a.item).$promise.then(function(){c.path("/tools/triggers/list")})["catch"](function(a){console.error(a),d.error(a)})},a.next=function(){f.wizard().next()},a.previous=function(){f.wizard().previous()},a.exitValidation=function(a){return a},a.exitSettingsValidation=function(b){return!(!b||!a.item.Actions.length)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.triggers.wizard",{url:"/wizard",templateUrl:"app/tools/trigger/wizard/wizard.html",controller:"TriggerWizardCtrl"})}]),angular.module("xCallyShuttleApp").controller("TrunkListCtrl",["$scope","Trunk","gridOptions","xAlert","$translate","socket",function(a,b,c,d,e,f){function g(){f.socket.on("voice:trunks",function(b){var c=_.find(a.gridOptions.data,{name:b.name});c&&(c.status=b.status,c.peerstatus=b.peerstatus)})}a.isActive=!0,a.size="mini",a.animate=!0,a.radioOff=!0,a.handleWidth="auto",a.labelWidth="auto",a.inverse=!0,a.offColor="danger",a.onColor="success",a.initView=function(){var d={exporterCsvFilename:"Trunks.csv",columnDefs:[{name:"name"},{name:"active",cellTemplate:'<div class="centered-uigrid-td"><input data-ng-change="grid.appScope.updateItem(row.entity)", bs-switch ng-model="row.entity.active" type="checkbox" switch-active="{{ grid.appScope.isActive }}" switch-on-text="{{ \'APPLICATION_YES\' | translate }}" switch-off-text="{{ \'APPLICATION_NO\' | translate }}" switch-on-color="{{ grid.appScope.onColor }}" switch-off-color="{{ grid.appScope.offColor }}" switch-animate="{{ grid.appScope.animate }}" switch-size="{{ grid.appScope.size }}" switch-label="{{ grid.appScope.label }}" switch-icon="{{ grid.appScope.icon }}" switch-radio-off="{{ grid.appScope.radioOff }}" switch-label-width="{{ grid.appScope.labelWidth }}" switch-handle-width="{{ grid.appScope.handleWidth }}"></div>'},{name:"host"},{name:"description"},{name:"status",cellTemplate:'<div class="centered-uigrid-td" data-ng-if="row.entity.active && row.entity.registry && row.entity.status">{{row.entity.status}}</div>'},{name:"peerstatus",cellTemplate:'<div class="centered-uigrid-td" data-ng-if="row.entity.active && row.entity.peerstatus">{{row.entity.peerstatus}}</div>'},{name:"action",width:75,buttons:[{"class":"blue-hoki",href:"/tools/trunks/view/{{row.entity.name}}/settings",name:"settings"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.name)"}]}]};a.gridOptions=c.gridOptions(b,d,a,null,null,null,g)},a.updateItem=function(a){return b.update({id:a.name},a).$promise.then(function(){d.show(e.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){console.error(a),d.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.trunks.list",{url:"/list",templateUrl:"app/tools/trunk/list/list.html",controller:"TrunkListCtrl"})}]),angular.module("xCallyShuttleApp").factory("Trunk",["$resource",function(a){return a("/api/trunks/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.trunks",{url:"/trunks",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:52}}})}]),angular.module("xCallyShuttleApp").controller("TrunkViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","socket","$location","Trunk","VoiceContext",function(a,b,c,d,e,f,g,h,i){a.activeSwitch={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.initView=function(){return h.get({id:e.id}).$promise.then(function(b){b.nat=b.nat?b.nat.split(","):[],b.allow=b.allow?b.allow.split(";"):[],b.insecure=b.insecure?b.insecure.split(","):[],b.transport=b.transport?b.transport.split(","):[],a.trunk=b}).then(function(){f.socket.on("voice:trunk",function(b){a.trunk.name===b.username&&(a.trunk.status=b.status,a.trunk.peerstatus=b.peerstatus)})})["catch"](function(a){console.error(a),g.path("/tools/trunks/list")})},a.updateTrunk=function(){""===a.trunk.password&&delete a.trunk.password;var b=angular.copy(a.trunk);return b.nat=b.nat.join(","),b.allow=b.allow.join(";"),b.insecure=b.insecure.join(","),b.transport=b.transport.join(","),h.update({id:e.id},b).$promise.then(function(){c.show(d.instant("MESSAGE_WELL_DONE")+"!","success")})["catch"](function(a){c.error(a)})},a.getContexts=function(){return i.get().$promise.then(function(b){a.voiceContexts=b.rows})["catch"](function(a){c.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.trunks.view",{url:"/view/:id",templateUrl:"app/tools/trunk/view/view.html",controller:"TrunkViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.tools.trunks.view.settings",{url:"/settings",templateUrl:"app/tools/trunk/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").controller("TrunkWizardCtrl",["$scope","WizardHandler","$location","xAlert","Trunk",function(a,b,c,d,e){ -a.initWizard=function(){a.forms={},a.item={context:"from-voip-provider"}},a.next=function(){b.wizard().next()},a.previous=function(){b.wizard().previous()},a.exitValidation=function(a){return a},a.createItem=function(){return a.item.fromuser=a.item.defaultuser,a.item.fromdomain=a.item.host,e.save(a.item).$promise.then(function(){c.path("/tools/trunks/list")})["catch"](function(a){d.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.trunks.wizard",{url:"/wizard",templateUrl:"app/tools/trunk/wizard/wizard.html",controller:"TrunkWizardCtrl"})}]),angular.module("xCallyShuttleApp").controller("VariableListCtrl",["$scope","$uibModal","Variable","gridOptions",function(a,b,c,d){a.initView=function(){var b={exporterCsvFilename:"variables.csv",columnDefs:[{name:"name"},{name:"description"},{name:"action",width:75,buttons:[{"class":"blue-hoki",href:"/tools/variables/view/{{row.entity.id}}/settings",name:"settings"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=d.gridOptions(c,b,a)},a.createItem=function(){var c=b.open({animation:!0,templateUrl:"app/tools/variable/list/list.create.modal.html",controller:"VariableListCreateCtrl"});c.result.then(function(b){console.log(b),a.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("VariableListCreateCtrl",["$scope","$translate","$uibModalInstance","Variable","xAlert",function(a,b,c,d,e){a.form={},a.item={},a.save=function(){return d.save(a.item).$promise.then(function(a){e.show(b.instant("MESSAGE_WELL_DONE"),"success"),c.close(a)})["catch"](function(a){e.error(a)})},a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.variables.list",{url:"/list",templateUrl:"app/tools/variable/list/list.html",controller:"VariableListCtrl"})}]),angular.module("xCallyShuttleApp").factory("Variable",["$resource",function(a){return a("/api/variables/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.variables",{url:"/variables",template:"<div ui-view></div>","abstract":!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:54}}})}]),angular.module("xCallyShuttleApp").controller("VariableViewCtrl",["$scope","$translate","$stateParams","xAlert","Variable",function(a,b,c,d,e){a.getVariable=function(){return e.get({id:c.id}).$promise.then(function(b){a.variable=b})["catch"](function(a){d.error(a)})},a.updateVariable=function(){return e.update({id:c.id},a.variable).$promise.then(function(){d.show(b.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){d.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.variables.view",{url:"/view/:id",templateUrl:"app/tools/variable/view/view.html",controller:"VariableViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.tools.variables.view.settings",{url:"/settings",templateUrl:"app/tools/variable/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").controller("YourdashboardListCloneModalCtrl",["$scope","$uibModalInstance","name",function(a,b,c){a.forms={dashboard:{}},a.item={name:c},a.ok=function(){b.close(a.item)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("YourdashboardListCreateModalCtrl",["$scope","$uibModalInstance",function(a,b){a.forms={dashboard:void 0},a.item={},a.ok=function(){a.item.model=JSON.stringify({title:a.item.name}),b.close(a.item)},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("YourdashboardListCtrl",["$scope","$http","$translate","xAlert","Modal","$uibModal","$log","YourDashboard","gridOptions",function(a,b,c,d,e,f,g,h,i){a.initView=function(){var b={exporterCsvFilename:"voice_contexts.csv",columnDefs:[{name:"name"},{name:"description"},{name:"action",width:125,buttons:[{"class":"green",href:"/tools/yourdashboards/show/{{row.entity.id}}",name:"view"},{"class":"blue-hoki",href:"/tools/yourdashboards/view/{{row.entity.id}}/settings",name:"settings"},{"class":"{{row.entity.defaultEntry ? 'red-sunglo disabled' : 'red-sunglo'}}",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"},{"class":"purple",name:"clone",onClick:"grid.appScope.clone(row.entity.id,row.entity.name)"}]}]};a.gridOptions=i.gridOptions(h,b,a)},a.create=function(){var b=f.open({animation:!0,templateUrl:"app/tools/yourdashboard/list/create.modal.html",controller:"YourdashboardListCreateModalCtrl"});b.result.then(function(b){return h.save(b).$promise.then(function(){d.show(c.instant("MESSAGE_WELL_DONE"),"success"),a.gridOptions.getPage()})["catch"](function(a){console.error(a),d.error(a)})},function(){g.info("Modal dismissed at: "+new Date)})},a.clone=function(b,e){var i=f.open({animation:!0,templateUrl:"app/tools/yourdashboard/list/clone.modal.html",controller:"YourdashboardListCloneModalCtrl",resolve:{name:function(){return e+"_copy"}}});i.result.then(function(e){return h.save({id:b,controller:"clone"},e).$promise.then(function(){d.show(c.instant("MESSAGE_WELL_DONE"),"success"),a.gridOptions.getPage()})["catch"](function(a){console.error(a),d.error(a)})},function(){g.info("Modal dismissed at: "+new Date)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.yourdashboards.list",{url:"/list",templateUrl:"app/tools/yourdashboard/list/list.html",controller:"YourdashboardListCtrl",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:59}}})}]),angular.module("xCallyShuttleApp").controller("LeaveEditedDashboardModalCtrl",["$scope","$uibModalInstance",function(a,b){a.close=function(){b.close()},a.cancel=function(){b.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("YourdashboardShowCtrl",["$scope","$rootScope","localStorageService","xAlert","$translate","Auth","$stateParams","$location","$uibModal","$log","YourDashboard","$interval",function(a,b,c,d,e,f,g,h,i,j,k,l){function m(){return k.get({id:g.id,controller:"values"}).$promise.then(function(){})["catch"](function(a){console.error("Error retrieving widgets values",a)})}function n(a){var b,c;if(!a)return 0;for(a=a.toString(),b=c=a.length;b--;){var d=a[b].charCodeAt();d>=56320&&57343>=d&&b--,d>127&&2047>=d?c++:d>2047&&65535>=d&&(c+=2)}return c}a.Auth=f,a.editMode=!1;var o;a.getDashboard=function(){return k.get({id:g.id}).$promise.then(function(b){!b[f.getRole()]&&h.path("/landing");var c={name:"dashboard",structure:"4-8",enableconfirmdelete:!0,maximizable:!0,collapsible:!0};b.model=JSON.parse(b.model||'{"title":"Dashboard"}'),b.editable=!(!f.isAdmin()||!b.editable),a.dashboard=_.merge(c,b),m(),o=l(function(){m()},1e3*parseInt(a.dashboard.timeout||5))})["catch"](function(a){h.path("/tools/yourdashboards/list")})},a.$on("$locationChangeStart",function(b,c,d){if(a.editMode){b.preventDefault();var e=i.open({animation:!0,templateUrl:"app/tools/yourdashboard/show/leaveEditedDashboard.modal.html",controller:"LeaveEditedDashboardModalCtrl"});e.result.then(function(b){a.editMode=!1;var d=location.protocol+"//"+location.host;h.path(c.replace(d,""))},function(){j.info("Modal dismissed at: "+new Date)})}});var p=function(c,f,h){var i=angular.copy(a.dashboard);return i.name=a.dashboard.model.title,i.model=JSON.stringify(i.model),n(i.model)<=64e3?k.update({id:g.id},i).$promise.then(function(){d.show(e.instant("MESSAGE_DASHBOARD_SAVED")+"!","success"),a.editMode=!1})["catch"](function(b){d.error(b),i.model=JSON.parse(i.model),i.name="dashboard",a.dashboard=i}):(d.show(e.instant("MESSAGE_DASHBOARD_TOO_BIG")+"!","warning"),void b.$broadcast("adfToggleEditMode"))};a.$on("adfDashboardChanged",p),a.$on("adfIsEditMode",function(){a.editMode=!0}),a.$on("$destroy",function(){l.cancel(o)})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.yourdashboards.show",{url:"/show/:id",templateUrl:"app/tools/yourdashboard/show/show.html",controller:"YourdashboardShowCtrl",data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:2}}})}]),angular.module("xCallyShuttleApp").controller("YourdashboardViewCtrl",["$scope","$rootScope","xAlert","$translate","$stateParams","$location","YourDashboard",function(a,b,c,d,e,f,g){a.radioSwitch={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a.getDashboard=function(){return g.get({id:e.id}).$promise.then(function(b){delete b.model,a.dashboard=b})["catch"](function(){f.path("/tools/yourdashboards/list")})},a.updateDashboard=function(){var b=angular.copy(a.dashboard);return g.update({id:e.id},b).$promise.then(function(){c.show(d.instant("MESSAGE_WELL_DONE")+"!","success")})["catch"](function(d){c.error(d),a.dashboard=b})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.yourdashboards.view",{url:"/view/:id",templateUrl:"app/tools/yourdashboard/view/view.html",controller:"YourdashboardViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]},data:{permissions:{only:["admin","user"],redirectTo:"landing",id:59}}}).state("main.tools.yourdashboards.view.settings",{url:"/settings",templateUrl:"app/tools/yourdashboard/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").factory("YourDashboard",["$resource",function(a){return a("/api/dashboards/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.tools.yourdashboards",{url:"/yourdashboards",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("ZendeskListCtrl",["$scope","ZendeskAccount","gridOptions","xAlert","$translate",function(a,b,c,d,e){a.initView=function(){var d={exporterCsvFilename:"zendesk_account.csv",columnDefs:[{name:"name",displayName:"APPLICATION_NAME"},{name:"username"},{name:"remoteUri",displayName:"APPLICATION_URI"},{name:"action",buttons:[{"class":"blue-hoki",href:"/zendesk/view/{{row.entity.id}}/account",name:"profile"},{"class":"green-jungle",name:"check",onClick:"grid.appScope.checkAccount(row.entity.id)"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=c.gridOptions(b,d,a)},a.checkAccount=function(a){return b.check({id:a}).$promise.then(function(){d.show(e.instant("MESSAGE_ACCOUNT_VERIFIED"),"success")})["catch"](function(){d.show(e.instant("MESSAGE_ACCOUNT_INVALID"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.zendesk.list",{url:"/list",templateUrl:"app/zendesk/list/list.html",controller:"ZendeskListCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.zendesk.view.configurations",{url:"/configurations",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").controller("ZendeskViewConfigurationListCtrl",["$scope","$stateParams","$translate","gridOptions","ZendeskConfiguration","$uibModal",function(a,b,c,d,e,f){a.initView=function(){var c={exporterCsvFilename:"zendesk_configurations.csv",columnDefs:[{name:"name"},{name:"description"},{name:"action",width:125,buttons:[{"class":"blue-hoki",href:"/zendesk/view/{{row.entity.AccountId}}/configurations/view/{{row.entity.id}}",name:"profile"},{"class":"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};a.gridOptions=d.gridOptions(e,c,a,{accountId:b.id})},a.createItem=function(){var b=f.open({animation:!0,templateUrl:"app/zendesk/view/configuration/list/create.modal.html",controller:"ZendeskCreateConfigurationCtrl"});b.result.then(function(){a.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("ZendeskCreateConfigurationCtrl",["$scope","$translate","$uibModalInstance","ZendeskConfiguration","xAlert","$stateParams","channel",function(a,b,c,d,e,f,g){a.form={},a.item={},a.channels=g,a.item.channel="voice",a.item.type="Queue",a.save=function(){return d.save({accountId:f.id},a.item).$promise.then(function(a){e.show(b.instant("MESSAGE_WELL_DONE"),"success"),c.close(a)})["catch"](function(a){e.error(a)})},a.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.zendesk.view.configurations.list",{url:"/list",templateUrl:"app/zendesk/view/configuration/list/list.html",controller:"ZendeskViewConfigurationListCtrl"})}]),angular.module("xCallyShuttleApp").controller("ZendeskViewConfigurationViewCtrl",["$scope","$stateParams","$filter","$translate","socket","ZendeskConfiguration","xAlert","variable","Variable","ZendeskAccount","Tag","ZendeskField",function(a,b,c,d,e,f,g,h,i,j,k,l){a.$on("$destroy",function(){e.unsyncUpdates("zendesk_field")}),a.config={autoHideScrollbar:!1,theme:"dark",advanced:{updateOnContentResize:!0},setHeight:300,scrollInertia:0},a.fieldType=[{type:"string",title:"String"},{type:"variable",title:"Variable"},{type:"customVariable",title:"Custom Variable"}],a.descFieldType=[{type:"string",title:"String"},{type:"keyValue",title:"Key Value"}],a.groupVariableByGroup=function(a){switch(a.group){case"voice_queue":return"Voice: Queue";case"voice_outbound":return"Voice: Outbound";default:return"Other"}},a.initView=function(){a.configurationName="",a.subjectConfig=[],a.descriptionConfig=[],a.fieldConfig=[],a.selectedTags={tags:[]},a.variables=h},a.getConfiguration=function(){return f.get({accountId:b.id,id:b.configurationId}).$promise.then(function(b){a.configurationName=b.name,a.subjectConfig=b.Subject,a.descriptionConfig=b.Description,a.fieldConfig=b.Field,a.selectedTags={tags:_.map(b.Tags,function(a){return a.id})},e.socket.on("zendesk_field:remove",function(b){_.remove(a.subjectConfig,{id:b.id}),_.remove(a.descriptionConfig,{id:b.id}),_.remove(a.fieldConfig,{id:b.id})})})["catch"](function(a){g.error(a)})},a.getCustomVariables=function(){return i.get().$promise.then(function(b){a.customVariables=b.rows})["catch"](function(a){g.error(a)})},a.getFields=function(){return j.fields({id:b.id}).$promise.then(function(b){a.accountFields=c("zendesk")(b)})["catch"](function(a){g.error(a)})},a.getTags=function(){return k.get().$promise.then(function(b){a.tags=b.rows})["catch"](function(a){g.error(a)})},a.addItem=function(c){var d={};switch(c){case"subject":case"description":d={type:"string",content:""};break;case"field":d={content:""}}return f.save({accountId:b.id,id:b.configurationId,controller:c},d).$promise.then(function(b){switch(c){case"subject":a.subjectConfig.push(b);break;case"description":a.descriptionConfig.push(b);break;case"field":a.fieldConfig.push(b)}})["catch"](function(a){g.error(a)})},a.changeType=function(b){"variable"===b.type?(b.content="",b.variableName=""):"string"===b.type?(b.VariableId=null,b.variableName=""):"customVariable"===b.type&&(b.VariableId=null,b.content=""),a.updateField(b)},a.updateField=function(a){return l.update({accountId:b.id,configurationId:b.configurationId,id:a.id},a).$promise.then(function(){})["catch"](function(a){g.error(a)})},a.removeItem=function(a){return l["delete"]({accountId:b.id,configurationId:b.configurationId,id:a.id}).$promise.then(function(){g.show(d.instant("MESSAGE_WELL_DONE")+"!","success")})["catch"](function(a){g.error(a)})},a.changeDescType=function(b){"keyValue"===b.type?(b.content="","string"===b.keyType?(b.VariableId=null,b.variableName=""):"variable"===b.keyType?(b.keyContent="",b.VariableId=null):"customVariable"===b.keyType&&(b.keyContent="",b.variableName="")):"string"===b.type&&(b.VariableId=null,b.variableName="",b.key="",b.keyContent=""),a.updateField(b)},a.changeFieldType=function(b){if(b.content="",b.variableName="",b.nameField="",b.VariableId=null,b.idField){var c=_.find(a.accountFields,"id",b.idField);c&&(c.system_field_options?(b.customField=!1,b.nameField=c.title.toLowerCase()):b.customField=!0)}a.updateField(b)},a.updateTags=function(){return f.update({accountId:b.id,id:b.configurationId,controller:"tags"},a.selectedTags.tags).$promise.then(function(){g.show(d.instant("MESSAGE_WELL_DONE")+".","success")})["catch"](function(a){g.error(a)})},a.getSystemFieldOptions=function(b){if(b){var c=_.find(a.accountFields,"id",b);return c?c.system_field_options?c.system_field_options:null:void 0}}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.zendesk.view.configurations.view",{url:"/view/:configurationId",templateUrl:"app/zendesk/view/configuration/view/view.html",controller:"ZendeskViewConfigurationViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("ZendeskViewCtrl",["$scope","$stateParams","$translate","xAlert","Modal","ZendeskAccount",function(a,b,c,d,e,f){a.initView=function(){return f.get({id:b.id}).$promise.then(function(b){a.account=b})["catch"](function(a){d.error(a)})},a.updateItem=function(){return f.update({id:b.id},a.account).$promise.then(function(){d.show(c.instant("MESSAGE_WELL_DONE")+".","success")})["catch"](function(a){d.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.zendesk.view",{url:"/view/:id",templateUrl:"app/zendesk/view/view.html",controller:"ZendeskViewCtrl",resolve:{deps:["$ocLazyLoad",function(a){return a.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.zendesk.view.account",{url:"/account",templateUrl:"app/zendesk/view/view.account.html"})}]),angular.module("xCallyShuttleApp").controller("ZendeskWizardCtrl",["$scope","$http","$location","$translate","xAlert","WizardHandler","ZendeskAccount",function(a,b,c,d,e,f,g){a.translate=d,a.initWizard=function(){a.$translate=d,a.forms={},a.item={},a.item.authType="password",a.item.serverUrl=c.protocol()+"://"+location.host},a.next=function(){f.wizard().next()},a.exitValidation=function(a){return a},a.createItem=function(){return g.save(a.item).$promise.then(function(){e.show(d.instant("MESSAGE_WELL_DONE")+".","success"),c.path("/zendesk/list")})["catch"](function(a){e.error(a)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.zendesk.wizard",{url:"/wizard",templateUrl:"app/zendesk/wizard/wizard.html",controller:"ZendeskWizardCtrl"})}]),angular.module("xCallyShuttleApp").factory("ZendeskAccount",["$resource",function(a){return a("/api/zendesk/accounts/:id/:controller",{id:"@id"},{update:{method:"PUT"},fields:{params:{controller:"fields"},isArray:!0},check:{params:{controller:"check"}}})}]).factory("ZendeskConfiguration",["$resource",function(a){return a("/api/zendesk/accounts/:accountId/configurations/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]).factory("ZendeskField",["$resource",function(a){return a("/api/zendesk/accounts/:accountId/configurations/:configurationId/fields/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(a){a.state("main.zendesk",{url:"/zendesk",template:"<div ui-view></div>","abstract":!0})}]),angular.module("xCallyShuttleApp").factory("AuthResource",["$resource",function(a){return a("/auth/local/:controller/:controller2/:param",{param:"@param"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("Auth",["$location","$rootScope","$http","User","$cookieStore","$q","localStorageService",function(a,b,c,d,e,f,g){var h={};return e.get("token")&&(h=d.me()),{login:function(a,i){var j=i||angular.noop,k=f.defer();return c.post("/auth/local",{name:a.name,password:a.password,remember:a.remember}).success(function(a){return e.put("role",a.role),e.put("token",a.token),e.put("userId",a.userId),g.set("loggedIn",!0),h=d.me({},function(){b.$broadcast("login")}),k.resolve(a),j()}).error(function(a){return this.logout(),k.reject(a),j(a)}.bind(this)),k.promise},recover:function(a,b){var d=b||angular.noop,e=f.defer();return c.post("/auth/local/recover",{email:a.email}).success(function(a){return e.resolve(a),d()}).error(function(a){return e.reject(a),d(a)}.bind(this)),e.promise},reset:function(a,b){var d=b||angular.noop,e=f.defer();return c.post("/auth/local/reset/"+a.token,{password:a.password}).success(function(a){return e.resolve(a),d()}).error(function(a){return e.reject(a),d(a)}.bind(this)),e.promise},loginWithToken:function(a,c,f){e.put("role",f),e.put("token",a),e.put("userId",c),h=d.me({},function(){b.$broadcast("login")})},logout:function(){e.remove("role"),e.remove("token"),e.remove("userId"),g.set("loggedIn"),h={},b.$broadcast("logout")},createUser:function(a,b){var c=b||angular.noop;return d.save(a,function(b){return e.put("token",b.token),h=d.me(),c(a)},function(a){return this.logout(),c(a)}.bind(this)).$promise},changePassword:function(a,b,c){var e=c||angular.noop;return d.changePassword({id:h.id},{oldPassword:a,newPassword:b},function(a){return e(null,a)},function(a){return e(a)}).$promise},getCurrentUser:function(){return h},isLoggedIn:function(){return h.hasOwnProperty("role")},isLoggedInAsync:function(a){h.hasOwnProperty("$promise")?h.$promise.then(function(){a(!0)})["catch"](function(){a(!1)}):a(h.hasOwnProperty("role")?!0:!1)},isAdmin:function(){return"admin"===(e.get("role")||h.role)},isUser:function(){return"user"===(e.get("role")||h.role)},isAgent:function(){return"agent"===(e.get("role")||h.role)},getRole:function(){return h.role},getToken:function(){return e.get("token")}}}]),angular.module("xCallyShuttleApp").directive("actionBuilderAccountEmail",["$compile","$timeout","MailAccount","xAlert","Template",function(a,b,c,d,e){return{restrict:"E",scope:{element:"=",form:"="},templateUrl:"components/directives/action/accountEmail/actionBuilder.html",compile:function(f){function g(a,b){var c=[];for(a=a||5,b=b||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--a;)c.push(b.charAt(Math.floor(Math.random()*b.length)));return c.join("")}var h,i;return h=f.contents().remove(),function(f,j){f.randomName=g(),b(function(){return c.get().$promise.then(function(a){return _.forEach(a.rows,function(a){a.id=String(a.id)}),f.accounts=a,e.get().$promise}).then(function(a){_.forEach(a.rows,function(a){a.id=String(a.id)}),f.templates=a.rows})["catch"](function(a){d.error(a)})}),i||(i=a(h)),j.append(i(f,function(a){return a}))}}}}]),angular.module("xCallyShuttleApp").directive("actionBuilderAccountSms",["$compile","$timeout","SmsAccount","xAlert",function(a,b,c,d){return{restrict:"E",scope:{element:"=",form:"="},templateUrl:"components/directives/action/accountSms/actionBuilder.html",compile:function(e){function f(a,b){var c=[];for(a=a||5,b=b||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--a;)c.push(b.charAt(Math.floor(Math.random()*b.length)));return c.join("")}var g,h;return g=e.contents().remove(),function(e,i){e.randomName=f(),b(function(){return c.get().$promise.then(function(a){_.forEach(a.rows,function(a){a.id=String(a.id)}),e.accounts=a})["catch"](function(a){d.error(a)})}),h||(h=a(g)),i.append(h(e,function(a){return a}))}}}}]),angular.module("xCallyShuttleApp").directive("actionBuilderAccountTemplate",["$compile","xAlert","$http","$timeout","Template","MailAccount",function(a,b,c,d,e,f){return{restrict:"E",scope:{element:"=",form:"="},templateUrl:"components/directives/action/accountTemplate/actionBuilder.html",compile:function(c){function g(a,b){var c=[];for(a=a||5,b=b||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--a;)c.push(b.charAt(Math.floor(Math.random()*b.length)));return c.join("")}var h,i;return h=c.contents().remove(),function(c,j){c.randomName=g(),d(function(){return e.get().$promise.then(function(a){_.forEach(a.rows,function(a){a.id=String(a.id)}),c.templates=a}).then(function(){return f.get().$promise}).then(function(a){_.forEach(a.rows,function(a){a.id=String(a.id)}),c.accounts=a})["catch"](function(a){b.error(a)})}),i||(i=a(h)),j.append(i(c,function(a){return a}))}}}}]),angular.module("xCallyShuttleApp").directive("actionBuilderClose",["$compile",function(a){return{restrict:"E",scope:{element:"=",form:"="},templateUrl:"components/directives/action/close/actionBuilder.html",compile:function(b){function c(a,b){var c=[];for(a=a||5,b=b||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--a;)c.push(b.charAt(Math.floor(Math.random()*b.length)));return c.join("")}var d,e;return d=b.contents().remove(),function(b,f){b.randomName=c(),e||(e=a(d)),f.append(e(b,function(a){return a}))}}}}]),angular.module("xCallyShuttleApp").directive("actionBuilderCm",["$compile","xAlert","$http","$timeout","$translate","List",function(a,b,c,d,e,f){return{restrict:"E",scope:{element:"=",form:"="},templateUrl:"components/directives/action/cm/actionBuilder.html",compile:function(c){var e,g;return e=c.contents().remove(),function(c,h){function i(a,b){var c=[];for(a=a||5,b=b||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--a;)c.push(b.charAt(Math.floor(Math.random()*b.length)));return c.join("")}c.randomName=i(),c["switch"]={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},d(function(){return f.get().$promise.then(function(a){_.forEach(a.rows,function(a){a.id=String(a.id)}),c.lists=a.rows})["catch"](function(a){b.error(a)})}),g||(g=a(e)),h.append(g(c,function(a){return a}))}}}}]),angular.module("xCallyShuttleApp").directive("actionBuilderEmail",["$compile","xAlert","$timeout","Template",function(a,b,c,d){return{restrict:"E",scope:{element:"=",form:"="},templateUrl:"components/directives/action/email/actionBuilder.html",compile:function(e){function f(a,b){var c=[];for(a=a||5,b=b||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--a;)c.push(b.charAt(Math.floor(Math.random()*b.length)));return c.join("")}var g,h;return g=e.contents().remove(),function(e,i){e.randomName=f(),c(function(){return d.get().$promise.then(function(a){_.forEach(a.rows,function(a){a.id=String(a.id)}),e.templates=a.rows})["catch"](function(a){b.error(a)})}),h||(h=a(g)),i.append(h(e,function(a){return a}))}}}}]),angular.module("xCallyShuttleApp").directive("actionBuilderForward",["$compile",function(a){return{restrict:"E",scope:{element:"=",form:"="},templateUrl:"components/directives/action/forward/actionBuilder.html",compile:function(b){function c(a,b){var c=[];for(a=a||5,b=b||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--a;)c.push(b.charAt(Math.floor(Math.random()*b.length)));return c.join("")}var d,e;return d=b.contents().remove(),function(b,f){b.randomName=c(),e||(e=a(d)),f.append(e(b,function(a){return a}))}}}}]),angular.module("xCallyShuttleApp").directive("actionBuilderHttp",["$compile",function(a){return{restrict:"E",scope:{element:"=",form:"="},templateUrl:"components/directives/action/http/actionBuilder.html",compile:function(b){function c(a,b){var c=[];for(a=a||5,b=b||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--a;)c.push(b.charAt(Math.floor(Math.random()*b.length)));return c.join("")}var d,e;return d=b.contents().remove(),function(b,f){b.randomName=c(),b.methods=["GET","POST"],e||(e=a(d)),f.append(e(b,function(a){return a}))}}}}]),angular.module("xCallyShuttleApp").directive("actionBuilderIntegration",["$compile","xAlert","$http","$timeout","Integration","$translate","ZendeskAccount","DeskAccount","SalesforceAccount","FreshdeskAccount","SugarcrmAccount",function(a,b,c,d,e,f,g,h,i,j,k){return{restrict:"E",scope:{element:"=",form:"="},templateUrl:"components/directives/action/integration/actionBuilder.html",compile:function(c){function f(a,b){var c=[];for(a=a||5,b=b||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--a;)c.push(b.charAt(Math.floor(Math.random()*b.length)));return c.join("")}var l,m;return l=c.contents().remove(),function(c,n){c.randomName=f(),d(function(){return e.get({active:1}).$promise.then(function(a){_.remove(a.rows,function(a){return"iframe"===a.state}),c.integrations=a.rows,c.element.data1&&o()})["catch"](function(a){b.error(a)})});var o=function(){var a;switch(c.element.data1){case"zendesk":a=g;break;case"desk":a=h;break;case"salesforce":a=i;break;case"freshdesk":a=j;break;case"sugarcrm":a=k}return a?a.get().$promise.then(function(a){_.forEach(a.rows,function(a){a.id=String(a.id)}),c.accounts=a.rows,c.element.data2&&p()})["catch"](function(a){b.error(a)}):void 0},p=function(){var a=_.find(c.accounts,{id:c.element.data2}).Configurations;_.forEach(a,function(a){a.id=String(a.id)}),c.configurations=a};c.changeIntegration=function(){c.element.data2="",o()},c.changeAccount=function(){c.element.data3="",p()},m||(m=a(l)),n.append(m(c,function(a){return a}))}}}}]),angular.module("xCallyShuttleApp").directive("actionBuilderJscripty",["$compile","xAlert","$http","$timeout","Template","$translate","JscriptyProject",function(a,b,c,d,e,f,g){return{restrict:"E",scope:{element:"=",form:"="},templateUrl:"components/directives/action/jscripty/actionBuilder.html",compile:function(c){var e,f;return e=c.contents().remove(),function(c,h){function i(a,b){var c=[];for(a=a||5,b=b||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--a;)c.push(b.charAt(Math.floor(Math.random()*b.length)));return c.join("")}c.randomName=i(),d(function(){return g.get().$promise.then(function(a){_.forEach(a.rows,function(a){a.id=String(a.id)}),c.projects=a.rows})["catch"](function(a){b.error(a)})}),f||(f=a(e)),h.append(f(c,function(a){return a}))}}}}]),angular.module("xCallyShuttleApp").directive("actionBuilderMotionBar",["$compile","xAlert","$http","$timeout","Template",function(a,b,c,d,e){return{restrict:"E",scope:{element:"=",form:"="},templateUrl:"components/directives/action/motionbar/actionBuilder.html",compile:function(c){var f,g;return f=c.contents().remove(),function(c,h){function i(){return e.get().$promise.then(function(a){_.forEach(a.rows,function(a){a.id=String(a.id)}),c.templates=a.rows})["catch"](function(a){b.error(a)})}function j(a,b){var c=[];for(a=a||5,b=b||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--a;)c.push(b.charAt(Math.floor(Math.random()*b.length)));return c.join("")}c.randomName=j(),c.motionActions=[{name:"Popup",value:"0"},{name:"URL",value:"1"},{name:"Windows App",value:"2"}],c.changeMode=function(){c.element.data2="",c.element.data3="",i()},d(function(){return i()}),g||(g=a(f)),h.append(g(c,function(a){return a}))}}}}]),angular.module("xCallyShuttleApp").directive("actionBuilderStatus",["$compile",function(a){return{restrict:"E",scope:{element:"=",form:"="},templateUrl:"components/directives/action/status/actionBuilder.html",compile:function(b){var c,d;return c=b.contents().remove(),function(b,e){function f(a,b){var c=[];for(a=a||5,b=b||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--a;)c.push(b.charAt(Math.floor(Math.random()*b.length)));return c.join("")}b.randomName=f(),b.states=[{name:"APPLICATION_STATUS_NEW",value:"NEW"},{name:"APPLICATION_STATUS_OPEN",value:"OPEN"},{name:"APPLICATION_STATUS_PENDING",value:"PENDING"},{name:"APPLICATION_STATUS_CLOSED",value:"CLOSED"}],d||(d=a(c)),e.append(d(b,function(a){return a}))}}}}]),angular.module("xCallyShuttleApp").directive("actionBuilderTag",["$compile","xAlert","$http","$timeout","Tag",function(a,b,c,d,e){return{restrict:"E",scope:{myElement:"=element",form:"="},templateUrl:"components/directives/action/tag/actionBuilder.html",compile:function(c){function f(a,b){ -var c=[];for(a=a||5,b=b||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--a;)c.push(b.charAt(Math.floor(Math.random()*b.length)));return c.join("")}var g,h;return g=c.contents().remove(),function(c,i){console.log("myElement",c.myElement),c.randomName=f(),c.data={tags:c.myElement.data1?c.myElement.data1.split(";"):[]},c.$watch("data.tags",function(a){c.myElement.data1=a.join(";")}),d(function(){return e.get().$promise.then(function(a){c.tags=a.rows})["catch"](function(a){b.error(a)})}),h||(h=a(g)),i.append(h(c,function(a){return a}))}}}}]),angular.module("xCallyShuttleApp").directive("actionBuilderTemplate",["$compile","xAlert","$timeout","Template",function(a,b,c,d){return{restrict:"E",scope:{element:"=",form:"="},templateUrl:"components/directives/action/template/actionBuilder.html",compile:function(e){function f(a,b){var c=[];for(a=a||5,b=b||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--a;)c.push(b.charAt(Math.floor(Math.random()*b.length)));return c.join("")}var g,h;return g=e.contents().remove(),function(e,i){e.randomName=f(),c(function(){return d.get().$promise.then(function(a){_.forEach(a.rows,function(a){a.id=String(a.id)}),e.templates=a.rows})["catch"](function(a){b.error(a)})}),h||(h=a(g)),i.append(h(e,function(a){return a}))}}}}]),angular.module("xCallyShuttleApp").directive("actionBuilderUrlForward",["$compile",function(a){return{restrict:"E",scope:{element:"=",form:"="},templateUrl:"components/directives/action/urlforward/actionBuilder.html",compile:function(b){function c(a,b){var c=[];for(a=a||5,b=b||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--a;)c.push(b.charAt(Math.floor(Math.random()*b.length)));return c.join("")}var d,e;return d=b.contents().remove(),function(b,f){b.randomName=c(),b.types=[{name:"HTTP GET",value:"GET"},{name:"HTTP POST",value:"POST"}],e||(e=a(d)),f.append(e(b,function(a){return a}))}}}}]),angular.module("xCallyShuttleApp").directive("actionBuilderWebPopup",["$compile","xAlert","$http","$timeout","Template",function(a,b,c,d,e){return{restrict:"E",scope:{element:"=",form:"="},templateUrl:"components/directives/action/webPopup/actionBuilder.html",compile:function(c){var f,g;return f=c.contents().remove(),function(c,h){function i(){return e.get().$promise.then(function(a){_.forEach(a.rows,function(a){a.id=String(a.id)}),c.templates=a.rows})["catch"](function(a){b.error(a)})}function j(a,b){var c=[];for(a=a||5,b=b||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--a;)c.push(b.charAt(Math.floor(Math.random()*b.length)));return c.join("")}c.typeChange=function(){c.element.data1=null},c.randomName=j(),d(function(){i(),c.element.data2=c.element.data2||"motion"}),g||(g=a(f)),h.append(g(c,function(a){return a}))}}}}]),angular.module("xCallyShuttleApp").directive("conditionBuilder",["$compile","$timeout","$translate","xAlert",function(a,b,c,d){return{restrict:"E",scope:{element:"=",serviceindex:"=",service:"=",form:"="},templateUrl:"components/directives/condition/conditionBuilder.html",compile:function(e){var f,g;return f=e.contents().remove(),function(e,h){function i(a){var b=_.find(e.service.services[e.serviceindex].conditions,{value:a});if(b)if(e.elementType=b.type,e.translateName=b.translate,b.arr)e.values=b.arr;else if(b.resource)return b.resource.get(b.params||{}).$promise.then(function(a){e.values=_.map(a.rows,function(a){return{name:a[b.resName||b.resValue],value:String(a[b.resValue])}})})["catch"](function(a){d.show(c.instant(a.message),"danger")})}function j(a,b){var c=[];for(a=a||5,b=b||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--a;)c.push(b.charAt(Math.floor(Math.random()*b.length)));return c.join("")}e._=_,e.randomName=j(),b(function(){e.element.field&&i(e.element.field)}),e.checkCondition=function(a){e.element.value="",e.element.operator="",i(a)},g||(g=a(f)),h.append(g(e,function(a){return a}))}}}}]),angular.module("xCallyShuttleApp").factory("xNotificationLicense",["Notification","$rootScope","$location",function(a,b,c){return{show:function(d){var e=b.$new();return e["class"]="alert-warning",e.icon="fa fa-exclamation-triangle",e.more=function(){c.path("/setting/license/view")},new a({delay:d,templateUrl:"components/factories/xNotificationLicense/xNotificationLicense.html",scope:e})}}}]),angular.module("xCallyShuttleApp").filter("secToTime",[function(){return function(a){return new Date(1970,0,1).setSeconds(a)}}]),angular.module("xCallyShuttleApp").controller("FooterController",["$scope","Setting",function(a,b){a.year=moment().year(),a.$on("$includeContentLoaded",function(){Layout.initFooter()}),a.initFooter=function(){return b.get({controller:"info"}).$promise.then(function(b){a.info=b})["catch"](function(a){console.error(a)})}}]),angular.module("xCallyShuttleApp").controller("HeaderController",["$scope","$rootScope","$location","$state","$http","$interval","$notification","Auth","xAlert","socket","xNotificationLicense","toastr","localStorageService","Agent","SmsReport","MailReport","OpenChannelReport","ChatReport","ChatRoom","xNotification","$timeout","$translate","$window","User","Pause","Action","FaxReport","List","MailAccount","ChatWebsite","FaxAccount","SmsAccount","OpenChannelAccount","ReportAgent","$uibModal","$log","ReportDial",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K){function L(a,b,c){return null===b&&(b=50),null===c&&(c="..."),a&&a.length>b?a.substring(0,b-c.length)+c:a}function M(b){var c,d="reason";switch(b){case"mail":c=p;break;case"chat":c=r;break;case"fax":c=A;break;case"sms":c=o;break;case"agent":c=H,d="lastevent";break;case"dial":c=K,d="dialstatus";break;case"openchannel":c=q;break;default:return}return c.get({limit:10,order:"updatedAt DESC"}).$promise.then(function(c){_.forEach(c.rows,function(a){if(a[d])switch(a[d].toLowerCase()){case"answer":case"connect":case"complete":a.status="taken";break;case"answered_elsewhere":a.status="taken_elsewhere";break;case"called":a.status="lost";break;case"busy":a.status="busy";break;case"rejected":a.status="rejected";break;case"cancel":case"abandoned":a.status="abandoned"}}),a.agentNotifications[b].rows=c.rows,j.socket.on("report_"+b+":save",function(c){c.status="none",a.agentNotifications[b].rows.unshift(c),"agent"!==b&&"dial"!==b&&(a.agentNotifications[b].timeout[c.id]=setTimeout(function(){clearTimeout(a.agentNotifications[b].timeout[c.id]),_.find(a.agentNotifications[b].rows,{id:c.id}).status="lost",angular.element(document.getElementById("header_"+b+"_notification_bar")).hasClass("open")||a.agentNotifications[b]["new"]++,delete a.agentNotifications[b].timeout[c.id]},1e3*c.timeslot))}),j.socket.on("report_"+b+":update",function(c){if("agent"===b){var e=_.find(a.activeCalls,{id:c.id});e&&(c.agentcomplete||c.agentringnoanswer||c.agentdump)?_.remove(a.activeCalls,{id:c.id}):!c.agentconnectAt||c.agentcomplete||c.agentringnoanswer||c.agentdump||a.activeCalls.push(c)}var f=_.find(a.agentNotifications[b].rows,{id:c.id});if(f&&("agent"!==b&&"dial"!==b&&a.agentNotifications[b].timeout[c.id]&&(clearTimeout(a.agentNotifications[b].timeout[c.id]),delete a.agentNotifications[b].timeout[c.id]),c[d])){switch(c[d].toLowerCase()){case"answer":case"connect":case"complete":c.status="taken";break;case"answered_elsewhere":c.status="taken_elsewhere",angular.element(document.getElementById("header_"+b+"_notification_bar")).hasClass("open")||a.agentNotifications.chat["new"]++;break;case"busy":c.status="busy",angular.element(document.getElementById("header_"+b+"_notification_bar")).hasClass("open")||a.agentNotifications[b]["new"]++;break;case"rejected":c.status="rejected";break;case"cancel":case"abandoned":c.status="abandoned",angular.element(document.getElementById("header_"+b+"_notification_bar")).hasClass("open")||a.agentNotifications[b]["new"]++}_.merge(f,c)}})})["catch"](function(a){i.error(a)})}function N(){return a.headerAgent=h.getCurrentUser(),a.readyTimer=1e3*moment().unix(),y.get().$promise.then(function(b){a.headerPauses=b.rows,j.syncUpdates("pause",a.headerPauses)}).then(function(){j.socket.on("agent:save",function(b){b=b.newValues||b,a.headerAgent.id===b.id&&(_.merge(a.headerAgent,b),b.voicePause&&b.mailPause&&b.chatPause&&b.faxPause&&b.smsPause&&b.openchannelPause||(a.readyTimer=1e3*moment().unix()))})})["finally"](function(){h.getCurrentUser().loginInPause&&!m.get("loggedIn")&&a.headerPause("pause")})["catch"](function(a){console.log("Error synchronizing agent status:",a)})}function O(){return H.get({id:"active",controller:"calls"}).$promise.then(function(b){a.activeCalls=b.rows})["catch"](function(a){i.error(a)})}a.moment=moment,$(document).on("click",".tabbed-dropdown",function(a){a.stopPropagation()}),a.license.hasOwnProperty("expirationTime")&&(h.isAdmin()||h.isUser())&&!a.license.demo&&f(function(){"main.setting.license.view"!==d.current.name&&k.show(3e4)},3e4),a.openRoom=function(b,c){var d=_.find(a.workspaces,{id:b,type:c});if(d)d.active=!0;else{var e;switch(c){case"mailRoom":e="icon-envelope";break;case"chatRoom":e="fa fa-users";break;case"faxRoom":e="fa fa-fax";break;case"smsRoom":e="glyphicon glyphicon-comment";break;case"openchannelRoom":e="icon-globe"}a.workspaces.push({id:b,type:c,"class":e,active:!0})}},a.toggleSidebar=function(){b.settings.layout.pageSidebarClosed=!b.settings.layout.pageSidebarClosed,m.set("sidebarClosed",b.settings.layout.pageSidebarClosed)},a.chooseContact=function(b){var c=I.open({animation:!0,templateUrl:"app/main/chooseContact.modal.html",controller:"ChooseContactModalCtrl",resolve:{data:function(){return{eventChannel:"voice",calleridnum:b}}}});c.result.then(function(c){c?a.openContactTab(c):a.newContact({calleridnum:b})},function(){J.info("Modal dismissed at: "+new Date)})},a.loadNotifications=function(b){if(!a.busyLoad[b].end){a.busyLoad[b].busy=!0;var c,d="reason";switch(b){case"mail":c=p;break;case"chat":c=r;break;case"fax":c=A;break;case"sms":c=o;break;case"agent":c=H,d="lastevent";break;case"dial":c=K,d="dialstatus";break;case"openchannel":c=q;break;default:return}return c.get({limit:10,offset:a.agentNotifications[b].rows.length,order:"updatedAt DESC"}).$promise.then(function(c){c.rows.length?(_.forEach(c.rows,function(a){if(a[d])switch(a[d].toLowerCase()){case"answer":case"connect":case"complete":a.status="taken";break;case"answered_elsewhere":a.status="taken_elsewhere";break;case"called":a.status="lost";break;case"busy":a.status="busy";break;case"rejected":a.status="rejected";break;case"abandoned":a.status="abandoned"}}),a.agentNotifications[b].rows=a.agentNotifications[b].rows.concat(c.rows)):a.busyLoad[b].end=!0,a.busyLoad[b].busy=!1})["catch"](function(a){i.error(a)})}},a.headerPause=function(b,c,d){return z.save({name:b,agent:a.headerAgent.id,type:c||"DEFAULT PAUSE",data4:c||"DEFAULT PAUSE",channel:d||"all"}).$promise.then(function(){i.show(v.instant("MESSAGE_WELL_DONE"),"success")})["catch"](function(a){i.error(a)})},h.isAgent()&&(N(),a.agentNotifications={mail:{rows:[],"new":0,timeout:{}},chat:{rows:[],"new":0,timeout:{}},fax:{rows:[],"new":0,timeout:{}},sms:{rows:[],"new":0,timeout:{}},agent:{rows:[],"new":0},dial:{rows:[],"new":0},openchannel:{rows:[],"new":0}},a.busyLoad={mail:{busy:!1,end:!1},chat:{busy:!1,end:!1},fax:{busy:!1,end:!1},sms:{busy:!1,end:!1},agent:{busy:!1,end:!1},dial:{busy:!1,end:!1},openchannel:{busy:!1,end:!1}},O(),M("agent"),M("dial"),a.license.mail&&M("mail"),a.license.chat&&M("chat"),a.license.fax&&M("fax"),a.license.messaging&&M("sms"),a.license.openchannel&&M("openchannel")),j.socket.on("user_has_chat_room:save",function(b){var c;return s.get({id:Number(b.ChatRoomId)}).$promise.then(function(b){c=b;var d=_.find(a.workspaces,{id:Number(c.id),type:"chatRoom"});d?d.name=a.getFullnames(c):a.workspaces.push({id:c.id,name:a.getFullnames(c),type:"chatRoom","class":"icon-bubble",unread:1})})["catch"](function(a){console.error(a)})}),j.socket.on("chat_message:save",function(b){var c;if(b.UserId!==h.getCurrentUser().id&&_.includes(b.userids,h.getCurrentUser().id)){var d=_.find(a.workspaces,{id:Number(b.ChatRoomId),type:"chatRoom"});if(!d)return s.get({id:Number(b.ChatRoomId)}).$promise.then(function(b){c=b,a.workspaces.push({id:c.id,name:a.getFullnames(b),type:"chatRoom","class":"icon-bubble",unread:1})})["catch"](function(a){console.error(a)})}});var P=function(){return w.Notification},Q=function(){b.settings.layout.onFocus=!0},R=function(){b.settings.layout.onFocus=!1};w.onfocus=Q,w.onblur=R,a.getFullnames=function(a){var b=_.without(_.map(a.Users,"fullname"),h.getCurrentUser().fullname);return a.ChatVisitor&&b.unshift(a.ChatVisitor.fullname),b.join(", ")},a.openContact=function(b,c,d){if(d&&"<unknown>"!==d){var e,f;switch(b){case"mail":e=C,f={email:d};break;case"chat":e=D,f={email:d};break;case"fax":e=E,f={fax:d};break;case"sms":e=F,f={mobile:d};break;default:return}return e.get({id:c}).$promise.then(function(a){return a.ListId?B.save({listId:a.ListId,controller:"contacts"},f).$promise:null}).then(function(b){if(b){var c=_.find(a.workspaces,{contactID:b.id});c?c.active=!0:a.workspaces.push({active:!0,"class":"icon-user",contactID:b.id,name:b.email,type:"contact"})}else i.show(v.instant("MESSAGE_NO_LIST_CONFIGURED"),"info")})["catch"](function(a){console.error(a)})}},a.initHeader=function(){return"agent"===h.getCurrentUser().role&&(j.socket.on("report_chat:save",function(a){P&&!b.settings.layout.onFocus&&g("CHAT CHANNEL",{icon:"assets/images/media/channels/chat64.png",body:"NEW Incoming Chat Visitor!",delay:1e3*a.timeslot});var c="<b>"+v.instant("APPLICATION_FROM")+"</b>: "+a.visitorname+"<br><b>"+v.instant("APPLICATION_EMAIL")+"</b>: "+a.visitoremail;"queue"===a.application&&(c+="<br><b>"+v.instant("APPLICATION_QUEUE")+"</b>: "+a.queuename),t.show(v.instant("APPLICATION_NEW_CHAT_REQUEST"),c,"chat",1e3*a.timeslot,function(){return r.get({id:a.id,controller1:"accept",controller2:a.uniqueid}).$promise.then(function(){i.show("Chat properly assigned","success")})["catch"](function(a){switch(a.status){case 504:i.show(v.instant("MESSAGE_CHAT_ALREADY_MANAGED"),"info");break;default:i.error(a)}})},function(){return r.get({id:a.id,controller1:"reject"}).$promise.then(function(){i.show("Chat properly rejected","success")})["catch"](function(a){i.error(a)})})}),j.socket.on("report_mail:save",function(c){var d=_.find(a.workspaces,{id:c.roomid,type:"mailRoom"});if(!d){var e="<b>"+v.instant("APPLICATION_ACCOUNT")+"</b>: "+c.accountname+"<br> <b>"+v.instant("APPLICATION_FROM")+"</b>: "+c.from+"<br> <b>"+v.instant("APPLICATION_SUBJECT")+"</b>: "+(L(c.subject,30,"...")||"No subject");"queue"===c.application&&(e+="<br><b>"+v.instant("APPLICATION_QUEUE")+"</b>: "+c.queuename),t.show(v.instant("APPLICATION_NEW_MAIL_REQUEST"),e,"mail",1e3*c.timeslot,function(){return p.get({id:c.id,controller1:"accept",controller2:c.uniqueid}).$promise.then(function(){var b=_.find(a.workspaces,{id:c.roomid,type:"mailRoom"});b?b.active=!0:a.workspaces.push({id:c.roomid,name:c.subject||"No subject",type:"mailRoom","class":"icon-envelope",active:!0,unread:0})})["catch"](function(a){switch(a.status){case 504:i.show(v.instant("MESSAGE_MAIL_ALREADY_MANAGED"),"info");break;default:i.error(a)}})},function(){return p.get({id:c.id,controller1:"reject"}).$promise["catch"](function(a){i.error(a)})}),P&&!b.settings.layout.onFocus?g("MAIL CHANNEL",{icon:"assets/images/media/channels/mail64.png",body:"NEW Incoming Mail Message!",delay:1e3*c.timeslot}):console.log("Notification API not supported in your browser")}}),j.socket.on("report_sms:save",function(b){var c="<b>"+v.instant("APPLICATION_ACCOUNT")+"</b>: "+b.accountname+"<br> <b>"+v.instant("APPLICATION_FROM")+"</b>: "+b.from;"queue"===b.application&&(c+="<br><b>"+v.instant("APPLICATION_QUEUE")+"</b>: "+b.queuename),t.show(v.instant("APPLICATION_NEW_SMS_REQUEST"),c,"sms",1e3*b.timeslot,function(){return o.get({id:b.id,controller1:"accept",controller2:b.uniqueid}).$promise.then(function(){var c=_.find(a.workspaces,{id:b.roomid,type:"smsRoom"});c?c.active=!0:a.workspaces.push({id:b.roomid,name:b.from,type:"smsRoom","class":"glyphicon glyphicon-comment",active:!0})})["catch"](function(a){switch(a.status){case 504:i.show(v.instant("MESSAGE_SMS_ALREADY_MANAGED"),"info");break;default:i.error(a)}})},function(){return o.get({id:b.id,controller1:"reject"}).$promise.then(function(){i.show("SMS properly rejected","success")})["catch"](function(a){i.error(a)})}),P?g("SMS CHANNEL",{icon:"assets/images/media/channels/chat64.png",body:"NEW Incoming SMS Message!",delay:1e3*b.timeslot}):console.log("Notification API not supported in your browser")}),j.socket.on("report_openchannel:save",function(b){var c="<b>"+v.instant("APPLICATION_ACCOUNT")+"</b>: "+b.accountname+"<br> <b>"+v.instant("APPLICATION_FROM")+"</b>: "+b.from;"queue"===b.application&&(c+="<br><b>"+v.instant("APPLICATION_QUEUE")+"</b>: "+b.queuename),t.show(v.instant("APPLICATION_NEW_MESSAGE"),c,"openchannel",1e3*b.timeslot,function(){return q.get({id:b.id,controller1:"accept",controller2:b.uniqueid}).$promise.then(function(){var c=_.find(a.workspaces,{id:b.roomid,type:"openchannelRoom"});c?c.active=!0:a.workspaces.push({id:b.roomid,name:b.from,type:"openchannelRoom","class":"icon-globe",active:!0})})["catch"](function(a){switch(a.status){case 504:i.show(v.instant("MESSAGE_ALREADY_MANAGED"),"info");break;default:i.error(a)}})},function(){return q.get({id:b.id,controller1:"reject"}).$promise.then(function(){i.show("Message properly rejected","success")})["catch"](function(a){i.error(a)})}),P?g("OPEN CHANNEL",{icon:"assets/images/media/channels/chat64.png",body:"NEW Incoming Message!",delay:1e3*b.timeslot}):console.log("Notification API not supported in your browser")}),j.socket.on("report_fax:save",function(c){var d=_.find(a.workspaces,{id:c.roomid,type:"faxRoom"});if(!d){var e="<b>"+v.instant("APPLICATION_ACCOUNT")+"</b>: "+c.accountname+"<br> <b>"+v.instant("APPLICATION_PHONE")+"</b>: "+c.from;"queue"===c.application&&(e+="<br><b>"+v.instant("APPLICATION_QUEUE")+"</b>: "+c.queuename),t.show(v.instant("APPLICATION_NEW_FAX_REQUEST"),e,"fax",1e3*c.timeslot,function(){return A.get({id:c.id,controller1:"accept",controller2:c.uniqueid}).$promise.then(function(){var b=_.find(a.workspaces,{id:c.roomid,type:"faxRoom"});b?b.active=!0:a.workspaces.push({id:c.roomid,name:c.from,type:"faxRoom","class":"fa fa-fax",active:!0,unread:0})})["catch"](function(a){switch(a.status){case 504:i.show(v.instant("MESSAGE_FAX_ALREADY_MANAGED"),"info");break;default:i.error(a)}})},function(){return A.get({id:c.id,controller1:"reject"}).$promise["catch"](function(a){i.err(a)})}),P&&!b.settings.layout.onFocus?g("FAX CHANNEL",{icon:"assets/images/media/channels/telephone124.png",body:"NEW Incoming Fax Message!",delay:1e3*c.timeslot}):console.log("Notification API not supported in your browser")}}),h.getCurrentUser().loginInPause)?z.save({name:"pause",agent:h.getCurrentUser().id,type:"LOGININPAUSE",data4:"LOGININPAUSE",channel:"all"}).$promise["catch"](function(a){i.error(a)}):void 0},a.logout=function(){return e.get("/auth/local/logout").success(function(){h.logout(),c.path("/login")}).error(function(a){i.error(a)})},a.isActive=function(a){return a===c.path()},a.$on("$destroy",function(){console.log("header $destroy"),j.unsyncUpdates("pause"),j.unsyncUpdates("agent"),j.unsyncUpdates("report_chat"),j.unsyncUpdates("report_mail"),j.unsyncUpdates("report_fax"),j.unsyncUpdates("report_sms"),j.unsyncUpdates("report_openchannel"),j.unsyncUpdates("user_has_chat_room"),j.unsyncUpdates("chat_message"),j.unsyncUpdates("report_integration:sugarcrm"),j.unsyncUpdates("report_integration:freshdesk")})}]),angular.module("xCallyShuttleApp").factory("Modal",["$rootScope","$uibModal",function(a,b){function c(c,d){var e=a.$new();return c=c||{},d=d||"modal-default",angular.extend(e,c),b.open({templateUrl:"components/modal/delete.html",windowClass:d,scope:e})}return{confirm:{"delete":function(a){return a=a||angular.noop,function(){var b,d=Array.prototype.slice.call(arguments),e=d.shift();b=c({modal:{dismissable:!0,title:"Confirm Delete",html:"<p>Are you sure you want to delete"+(e?"<strong> "+e+"</strong>":" selected items")+"?</p>",buttons:[{classes:"btn red",text:"Delete",click:function(a){b.close(a)}},{classes:"btn default",text:"Cancel",click:function(a){b.dismiss(a)}}]}},"over-topbar center"),b.result.then(function(b){a.apply(b,d)})}}}}}]),angular.module("xCallyShuttleApp").service("application",function(){var a={applications:[{type:null,name:"APPLICATION_QUEUE",value:"Queue"},{type:null,name:"APPLICATION_PLAYBACK",value:"Playback"},{type:null,name:"Dial",value:"Dial"},{type:"internalDial",name:"APPLICATION_INTERNAL_DIAL",value:"Dial"},{type:"externalDial",name:"APPLICATION_EXTERNAL_DIAL",value:"Dial"},{type:"RingGroup",name:"Ring Group",value:"Dial"},{type:null,name:"Cally-Square Project",value:"AGI"},{type:null,name:"GoTo",value:"Goto"},{type:null,name:"Hangup",value:"Hangup"},{type:null,name:"Set",value:"Set"},{type:null,name:"APPLICATION_VOICEMAIL",value:"Voicemail"},{type:"videoOn",name:"APPLICATION_VIDEO_ON",value:"Set"},{type:"custom",name:"Custom",value:"custom"}],queueOptions:[{value:"C",name:"APPLICATION_QUEUE_OPTION_C"},{value:"c",name:"APPLICATION_QUEUE_OPTION_c"},{value:"d",name:"APPLICATION_QUEUE_OPTION_d"},{value:"F",name:"APPLICATION_QUEUE_OPTION_F"},{value:"h",name:"APPLICATION_QUEUE_OPTION_h"},{value:"H",name:"APPLICATION_QUEUE_OPTION_H"},{value:"n",name:"APPLICATION_QUEUE_OPTION_n"},{value:"i",name:"APPLICATION_QUEUE_OPTION_i"},{value:"I",name:"APPLICATION_QUEUE_OPTION_I"},{value:"r",name:"APPLICATION_QUEUE_OPTION_r"},{value:"R",name:"APPLICATION_QUEUE_OPTION_R"},{value:"t",name:"APPLICATION_QUEUE_OPTION_t"},{value:"T",name:"APPLICATION_QUEUE_OPTION_T"},{value:"w",name:"APPLICATION_QUEUE_OPTION_w"},{value:"W",name:"APPLICATION_QUEUE_OPTION_W"},{value:"k",name:"APPLICATION_QUEUE_OPTION_k"},{value:"K",name:"APPLICATION_QUEUE_OPTION_K"},{value:"x",name:"APPLICATION_QUEUE_OPTION_x"},{value:"X",name:"APPLICATION_QUEUE_OPTION_X"}],audioOptions:[{value:"skip",name:"APPLICATION_PLAYBACK_OPTION_SKIP"},{value:"noanswer",name:"APPLICATION_PLAYBACK_OPTION_NOANSWER"},{value:"j",name:"APPLICATION_PLAYBACK_OPTION_J"},{value:"say",name:"APPLICATION_PLAYBACK_OPTION_SAY"}],hangupCauses:[{value:"",name:"--"},{value:"1",name:"APPLICATION_HANGUP_CAUSE_1"},{value:"16",name:"APPLICATION_HANGUP_CAUSE_16"},{value:"17",name:"APPLICATION_HANGUP_CAUSE_17"},{value:"18",name:"APPLICATION_HANGUP_CAUSE_18"},{value:"21",name:"APPLICATION_HANGUP_CAUSE_21"},{value:"22",name:"APPLICATION_HANGUP_CAUSE_22"},{value:"27",name:"APPLICATION_HANGUP_CAUSE_27"},{value:"38",name:"APPLICATION_HANGUP_CAUSE_38"},{value:"41",name:"APPLICATION_HANGUP_CAUSE_41"}],intTypes:[{value:"always",name:"APPLICATION_ALWAYS"},{value:"custom",name:"APPLICATION_CUSTOM"},{value:"list",name:"APPLICATION_FROM_LIST"}],checkUnderscore:function(a){return 0===a.indexOf("_")?a:"_"+a}};return{application:a}}),angular.module("xCallyShuttleApp").service("automations",function(){var a={mail:{conditions:[{name:"APPLICATION_STATUS",value:"status",type:"select",arr:[{name:"APPLICATION_STATUS_NEW",value:"NEW"},{name:"APPLICATION_STATUS_OPEN",value:"OPEN"},{name:"APPLICATION_STATUS_CLOSED",value:"CLOSED"},{name:"APPLICATION_STATUS_PENDING",value:"PENDING"}],operators:[{value:"equals",name:"APPLICATION_EQUALS_TO"},{value:"not_equals",name:"APPLICATION_NOT_EQUALS_TO"}]},{name:"APPLICATION_HOURS_SINCE_CREATED",value:"createdAt",type:"input",operators:[{value:"greater_or_equal",name:"APPLICATION_GTE_TO"},{value:"less_or_equal",name:"APPLICATION_LTE_TO"},{value:"greater",name:"APPLICATION_GREATER_THAN"},{value:"less",name:"APPLICATION_LESS_THAN"}]}],actions:[{name:"APPLICATION_STATUS",value:"status"}]},chat:{conditions:[{name:"APPLICATION_STATUS",value:"status",type:"select",arr:[{name:"APPLICATION_STATUS_NEW",value:"NEW"},{name:"APPLICATION_STATUS_OPEN",value:"OPEN"},{name:"APPLICATION_STATUS_CLOSED",value:"CLOSED"},{name:"APPLICATION_STATUS_PENDING",value:"PENDING"}],operators:[{value:"equals",name:"APPLICATION_EQUALS_TO"},{value:"not_equals",name:"APPLICATION_NOT_EQUALS_TO"}]},{name:"APPLICATION_HOURS_SINCE_CREATED",value:"createdAt",type:"input",operators:[{value:"greater_or_equal",name:"APPLICATION_GTE_TO"},{value:"less_or_equal",name:"APPLICATION_LTE_TO"},{value:"greater",name:"APPLICATION_GREATER_THAN"},{value:"less",name:"APPLICATION_LESS_THAN"}]}],actions:[{name:"APPLICATION_STATUS",value:"status"}]},fax:{conditions:[{name:"APPLICATION_STATUS",value:"status",type:"select",arr:[{name:"APPLICATION_STATUS_NEW",value:"NEW"},{name:"APPLICATION_STATUS_OPEN",value:"OPEN"},{name:"APPLICATION_STATUS_CLOSED",value:"CLOSED"}],operators:[{value:"equals",name:"APPLICATION_EQUALS_TO"},{value:"not_equals",name:"APPLICATION_NOT_EQUALS_TO"}]},{name:"APPLICATION_HOURS_SINCE_CREATED",value:"createdAt",type:"input",operators:[{value:"greater_or_equal",name:"APPLICATION_GTE_TO"},{value:"less_or_equal",name:"APPLICATION_LTE_TO"},{value:"greater",name:"APPLICATION_GREATER_THAN"},{value:"less",name:"APPLICATION_LESS_THAN"}]}],actions:[{name:"APPLICATION_STATUS",value:"status"}]}},b=["mail","fax","chat"];return{services:a,channels:b}}),angular.module("xCallyShuttleApp").service("channel",function(){var a=[{name:"Voice",value:"voice"}];return a}),angular.module("xCallyShuttleApp").service("desk_com",function(){var a=[{id:"priority",label:"Priority",custom:!1,data:{choices:[1,2,3,4,5,6,7,8,9,10]}},{id:"status",label:"Status",custom:!1,data:{choices:["new","open","pending","resolved","closed"]}},{id:"type",label:"Type",custom:!1,data:{choices:["chat","twitter","email","qna","facebook","phone"]}}];return{fields:a}}),angular.module("xCallyShuttleApp").service("interval",function(){var a={months:[{value:"always",name:"APPLICATION_ALWAYS"},{value:"jan",name:"APPLICATION_JANUARY"},{value:"feb",name:"APPLICATION_FEBRUARY"},{value:"mar",name:"APPLICATION_MARCH"},{value:"apr",name:"APPLICATION_APRIL"},{value:"may",name:"APPLICATION_MAY"},{value:"jun",name:"APPLICATION_JUNE"},{value:"jul",name:"APPLICATION_JULY"},{value:"aug",name:"APPLICATION_AUGUST"},{value:"sep",name:"APPLICATION_SEPTEMBER"},{value:"oct",name:"APPLICATION_OCTOBER"},{value:"nov",name:"APPLICATION_NOVEMBER"},{value:"dec",name:"APPLICATION_DECEMBER"}],monthsNumber:[{value:"always",name:"APPLICATION_ALWAYS"},{value:"1",name:"APPLICATION_JANUARY"},{value:"2",name:"APPLICATION_FEBRUARY"},{value:"3",name:"APPLICATION_MARCH"},{value:"4",name:"APPLICATION_APRIL"},{value:"5",name:"APPLICATION_MAY"},{value:"6",name:"APPLICATION_JUNE"},{value:"7",name:"APPLICATION_JULY"},{value:"8",name:"APPLICATION_AUGUST"},{value:"9",name:"APPLICATION_SEPTEMBER"},{value:"10",name:"APPLICATION_OCTOBER"},{value:"11",name:"APPLICATION_NOVEMBER"},{value:"12",name:"APPLICATION_DECEMBER"}],daysOfWeek:[{value:"always",name:"APPLICATION_ALWAYS"},{value:"mon",name:"APPLICATION_MONDAY"},{value:"tue",name:"APPLICATION_TUESDAY"},{value:"wed",name:"APPLICATION_WEDNESDAY"},{value:"thu",name:"APPLICATION_THURSDAY"},{value:"fri",name:"APPLICATION_FRIDAY"},{value:"sat",name:"APPLICATION_SATURDAY"},{value:"sun",name:"APPLICATION_SUNDAY"}],daysOfMonth:["always",1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]};return{interval:a}}),angular.module("xCallyShuttleApp").service("report",["ReportAgent","ReportCall","ReportMailSession","ReportMember","ReportQueue","ReportIntegration","ReportChatSession","ReportSmsSession","Contact","Recording","ReportSquare","ReportSquareDetail","User","ReportFaxSession","MailRoom","MailMessage","FaxRoom","FaxMessage","ChatRoom","ChatMessage","SmsRoom","SmsMessage","OpenChannelRoom","OpenChannelMessage","ReportOpenChannelSession","ReportMotionDialer","UserHasVoiceQueue","VoiceMailMessage",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B){var C=[{value:"users",resource:m,channel:"General"},{value:"cm_contacts",resource:i,channel:"General"},{value:"report_integration_history",resource:f,channel:"General"},{value:"report_agent_history",resource:a,channel:"Voice"},{value:"report_call_history",resource:b,channel:"Voice"},{value:"report_member_history",resource:d,channel:"Voice"},{value:"report_queue_history",resource:e,channel:"Voice"},{value:"voice_recordings",resource:j,channel:"Voice"},{value:"voice_voicemail_messages",resource:B,channel:"Voice"},{value:"report_square_history",resource:k,channel:"Voice"},{value:"report_square_details_history",resource:l,channel:"Voice"},{value:"report_tdial",resource:z,channel:"Voice"},{value:"report_chat_session_history",resource:g,channel:"Chat"},{value:"chat_rooms",resource:s,channel:"Chat"},{value:"chat_messages",resource:t,channel:"Chat"},{value:"report_mail_session_history",resource:c,channel:"Mail"},{value:"mail_rooms",resource:o,channel:"Mail"},{value:"mail_messages",resource:p,channel:"Mail"},{value:"report_fax_session_history",resource:n,channel:"Fax"},{value:"fax_rooms",resource:q,channel:"Fax"},{value:"fax_messages",resource:r,channel:"Fax"},{value:"report_sms_session_history",resource:h,channel:"Sms"},{value:"sms_rooms",resource:u,channel:"Sms"},{value:"sms_messages",resource:v,channel:"Sms"},{value:"report_openchannel_session_history",resource:y,channel:"Open Channel"},{value:"openchannel_rooms",resource:w,channel:"Open Channel"},{value:"openchannel_messages",resource:x,channel:"Open Channel"},{value:"user_has_voice_queues",resource:A,channel:"Voice"}];return{tables:C}}]),angular.module("xCallyShuttleApp").service("strategies",function(){return["beepall","roundrobin"]}),angular.module("xCallyShuttleApp").service("triggers",["VoiceQueue","ChatQueue","MailQueue","FaxQueue","SmsQueue","OpenChannelQueue","Route","MailAccount","SmsAccount","ChatWebsite","OpenChannelAccount",function(a,b,c,d,e,f,g,h,i,j,k){var l={voice:{conditions:[{name:"APPLICATION_QUEUE",value:"queue",type:"select",resource:a,resValue:"name",operators:[{value:"equals",name:"APPLICATION_EQUALS_TO"},{value:"not_equals",name:"APPLICATION_NOT_EQUALS_TO"}]},{name:"APPLICATION_CALL_STATUS",value:"lastevent",type:"select",translate:!0,arr:[{name:"ringing",value:"called"},{name:"up",value:"connect"},{name:"hangup",value:"complete"},{name:"rejected",value:"rejected"},{name:"ringnoanswer",value:"agentringnoanswer"},{name:"abandoned",value:"abandoned"}],operators:[{value:"equals",name:"APPLICATION_EQUALS_TO"},{value:"not_equals",name:"APPLICATION_NOT_EQUALS_TO"}]},{name:"APPLICATION_OUTBOUND_ROUTE",value:"routeId",type:"select",resource:g,resValue:"id",resName:"exten",params:{type:"outbound"},operators:[{value:"equals",name:"APPLICATION_EQUALS_TO"},{value:"not_equals",name:"APPLICATION_NOT_EQUALS_TO"}]}],actions:[{name:"APPLICATION_CONTACT_MANAGER",value:"contactManager"},{name:"APPLICATION_INTEGRATIONS",value:"integration",propertyField:"select"},{name:"APPLICATION_MOTION_BAR",value:"motionbar",propertyField:"select"},{name:"APPLICATION_JSCRIPTY",value:"jscripty",propertyField:"select"},{name:"APPLICATION_URL_FORWARD",value:"urlForward"},{name:"APPLICATION_WEB_POPUP",value:"webPopup"}]},mail:{conditions:[{name:"APPLICATION_ACCOUNT",value:"accountId",type:"select",resource:h,resValue:"id",resName:"name",operators:[{value:"equals",name:"APPLICATION_EQUALS_TO"},{value:"not_equals",name:"APPLICATION_NOT_EQUALS_TO"}]},{name:"APPLICATION_FROM",value:"from",type:"input",operators:[{value:"contains",name:"APPLICATION_CONTAINS"},{value:"not_contains",name:"APPLICATION_NOT_CONTAINS"}]},{name:"APPLICATION_TO",value:"to",type:"input",operators:[{value:"contains",name:"APPLICATION_CONTAINS"},{value:"not_contains",name:"APPLICATION_NOT_CONTAINS"}]},{name:"APPLICATION_CC",value:"cc",type:"input",operators:[{value:"contains",name:"APPLICATION_CONTAINS"},{value:"not_contains",name:"APPLICATION_NOT_CONTAINS"}]},{name:"APPLICATION_SUBJECT",value:"subject",type:"input",operators:[{value:"equals",name:"APPLICATION_EQUALS_TO"},{value:"not_equals",name:"APPLICATION_NOT_EQUALS_TO"},{value:"contains",name:"APPLICATION_CONTAINS"},{value:"not_contains",name:"APPLICATION_NOT_CONTAINS"}]},{ -name:"APPLICATION_BODY",value:"text",type:"input",operators:[{value:"equals",name:"APPLICATION_EQUALS_TO"},{value:"not_equals",name:"APPLICATION_NOT_EQUALS_TO"},{value:"contains",name:"APPLICATION_CONTAINS"},{value:"not_contains",name:"APPLICATION_NOT_CONTAINS"}]}],actions:[{name:"APPLICATION_TEMPLATE",value:"template"},{name:"APPLICATION_EMAIL",value:"email"},{name:"APPLICATION_EMAIL_FROM_ACCOUNT",value:"accountEmail"},{name:"APPLICATION_SMS",value:"accountSms"},{name:"APPLICATION_FORWARD",value:"forward"},{name:"APPLICATION_TAG",value:"tag"},{name:"APPLICATION_URL_FORWARD",value:"http"},{name:"APPLICATION_CLOSE",value:"close"}]},chat:{conditions:[{name:"APPLICATION_WEBSITE",value:"ChatWebsiteId",type:"select",resource:j,resValue:"id",resName:"name",operators:[{value:"equals",name:"APPLICATION_EQUALS_TO"},{value:"not_equals",name:"APPLICATION_NOT_EQUALS_TO"}]},{name:"APPLICATION_NAME",value:"fullname",type:"input",operators:[{value:"equals",name:"APPLICATION_EQUALS_TO"},{value:"not_equals",name:"APPLICATION_NOT_EQUALS_TO"}]},{name:"APPLICATION_EMAIL",value:"email",type:"input",operators:[{value:"contains",name:"APPLICATION_CONTAINS"},{value:"not_contains",name:"APPLICATION_NOT_CONTAINS"}]}],actions:[{name:"APPLICATION_EMAIL_FROM_ACCOUNT",value:"accountEmail"},{name:"APPLICATION_SMS",value:"accountSms"},{name:"APPLICATION_TEMPLATE",value:"accountTemplate"},{name:"APPLICATION_TAG",value:"tag"},{name:"APPLICATION_URL_FORWARD",value:"http"},{name:"APPLICATION_CLOSE",value:"close"}]},sms:{conditions:[{name:"APPLICATION_ACCOUNT",value:"SmsAccountId",type:"select",resource:i,resValue:"id",resName:"name",operators:[{value:"equals",name:"APPLICATION_EQUALS_TO"},{value:"not_equals",name:"APPLICATION_NOT_EQUALS_TO"}]},{name:"APPLICATION_FROM",value:"from",type:"input",operators:[{value:"contains",name:"APPLICATION_CONTAINS"},{value:"not_contains",name:"APPLICATION_NOT_CONTAINS"}]},{name:"APPLICATION_TO",value:"to",type:"input",operators:[{value:"contains",name:"APPLICATION_CONTAINS"},{value:"not_contains",name:"APPLICATION_NOT_CONTAINS"}]},{name:"APPLICATION_BODY",value:"body",type:"input",operators:[{value:"equals",name:"APPLICATION_EQUALS_TO"},{value:"not_equals",name:"APPLICATION_NOT_EQUALS_TO"},{value:"contains",name:"APPLICATION_CONTAINS"},{value:"not_contains",name:"APPLICATION_NOT_CONTAINS"}]}],actions:[{name:"APPLICATION_EMAIL_FROM_ACCOUNT",value:"accountEmail"},{name:"APPLICATION_SMS",value:"accountSms"},{name:"APPLICATION_TEMPLATE",value:"accountTemplate"},{name:"APPLICATION_TAG",value:"tag"},{name:"APPLICATION_URL_FORWARD",value:"http"},{name:"APPLICATION_CLOSE",value:"close"}]},fax:{conditions:[{name:"APPLICATION_FROM",value:"from",type:"input",operators:[{value:"contains",name:"APPLICATION_CONTAINS"},{value:"not_contains",name:"APPLICATION_NOT_CONTAINS"}]},{name:"APPLICATION_TO",value:"to",type:"input",operators:[{value:"contains",name:"APPLICATION_CONTAINS"},{value:"not_contains",name:"APPLICATION_NOT_CONTAINS"}]}],actions:[{name:"APPLICATION_EMAIL_FROM_ACCOUNT",value:"accountEmail"},{name:"APPLICATION_SMS",value:"accountSms"},{name:"APPLICATION_TEMPLATE",value:"accountTemplate"},{name:"APPLICATION_TAG",value:"tag"},{name:"APPLICATION_URL_FORWARD",value:"http"},{name:"APPLICATION_CLOSE",value:"close"}]},openchannel:{conditions:[{name:"APPLICATION_ACCOUNT",value:"OpenchannelAccountId",type:"select",resource:k,resValue:"id",resName:"name",operators:[{value:"equals",name:"APPLICATION_EQUALS_TO"},{value:"not_equals",name:"APPLICATION_NOT_EQUALS_TO"}]},{name:"APPLICATION_FROM",value:"from",type:"input",operators:[{value:"contains",name:"APPLICATION_CONTAINS"},{value:"not_contains",name:"APPLICATION_NOT_CONTAINS"}]},{name:"APPLICATION_TO",value:"to",type:"input",operators:[{value:"contains",name:"APPLICATION_CONTAINS"},{value:"not_contains",name:"APPLICATION_NOT_CONTAINS"}]},{name:"APPLICATION_BODY",value:"body",type:"input",operators:[{value:"equals",name:"APPLICATION_EQUALS_TO"},{value:"not_equals",name:"APPLICATION_NOT_EQUALS_TO"},{value:"contains",name:"APPLICATION_CONTAINS"},{value:"not_contains",name:"APPLICATION_NOT_CONTAINS"}]}],actions:[{name:"APPLICATION_EMAIL_FROM_ACCOUNT",value:"accountEmail"},{name:"APPLICATION_SMS",value:"accountSms"},{name:"APPLICATION_TEMPLATE",value:"accountTemplate"},{name:"APPLICATION_TAG",value:"tag"},{name:"APPLICATION_URL_FORWARD",value:"http"},{name:"APPLICATION_CLOSE",value:"close"}]}},m=["voice","mail","chat","sms","fax","openchannel"];return{services:l,channels:m}}]),angular.module("xCallyShuttleApp").service("variable",function(){var a=[{title:"Unique ID",name:"uniqueid",group:"voice_queue"},{title:"Caller Number",name:"calleridnum",group:"voice_queue"},{title:"Caller Name",name:"calleridname",group:"voice_queue"},{title:"Queue",name:"queue",group:"voice_queue"},{title:"Called Number",name:"destcalleridnum",group:"voice_queue"},{title:"Called Name",name:"destcalleridname",group:"voice_queue"},{title:"Hold Time",name:"holdtime",group:"voice_queue"},{title:"Talk Time",name:"talktime",group:"voice_queue"},{title:"Connected Time",name:"agentconnectAt",group:"voice_queue"},{title:"Called Time",name:"agentcalledAt",group:"voice_queue"},{title:"DNID",name:"destexten",group:"voice_queue"},{title:"Complete Time",name:"agentcompleteAt",group:"voice_queue"},{title:"No Answer Time",name:"agentringnoanswerAt",group:"voice_queue"},{title:"Recording URL",name:"recordingURL",group:"voice_queue"},{title:"Unique ID",name:"uniqueid",group:"voice_outbound"},{title:"Caller Number",name:"calleridnum",group:"voice_outbound"},{title:"Caller Name",name:"calleridname",group:"voice_outbound"},{title:"Called Number",name:"destcalleridnum",group:"voice_outbound"},{title:"Called Name",name:"destcalleridname",group:"voice_outbound"},{title:"Start Time",name:"starttime",group:"voice_outbound"},{title:"Answer Time",name:"answertime",group:"voice_outbound"},{title:"Complete Time",name:"endtime",group:"voice_outbound"},{title:"Recording URL",name:"recordingURL",group:"voice_outbound"},{title:"Member Name",name:"membername",group:"voice_outbound"}];return a}),angular.module("xCallyShuttleApp").controller("SidebarController",["$scope","$rootScope","$resource","$location","Auth","Dashboard","Integration","xAlert","$stateParams","socket","$uibModal","Setting",function(a,b,c,d,e,f,g,h,i,j,k,l){a.Auth=e,a.$on("$includeContentLoaded",function(){Metronic.init(),Layout.initSidebar()}),a.getSidebarDashboards=function(){return f.get().$promise.then(function(c){b.dashboards=c.rows,j.syncUpdates("dashboard",b.dashboards),a.$watch("dashboards",function(a){a&&b.initTours()},!0)})["catch"](function(){h.show("Error loading your dashboards","danger")})},a.about=function(){k.open({animation:!0,size:"sm",templateUrl:"app/main/about.modal.html",controller:["$scope","$uibModalInstance",function(a,b){a.year=moment().year(),a.getInfo=function(){return l.get({controller:"info"}).$promise.then(function(b){a.info=b})["catch"](function(a){console.error(a)})},a.close=function(){b.dismiss("cancel")}}]})},a.getSidebarIntegrations=function(){return e.isAdmin()||e.isAgent()||b.userModules[19]?g.get().$promise.then(function(b){a.integrations=b.rows,j.syncUpdates("integration",a.integrations)})["catch"](function(a){h.error(a)}):void 0},a.$on("sidebar $destroy",function(){console.log("destroy"),j.unsyncUpdates("dashboard"),j.unsyncUpdates("integration")})}]),angular.module("xCallyShuttleApp").factory("socket",["$rootScope","$window","socketFactory","Auth",function(a,b,c,d){var e=d.getCurrentUser(),f=io("",{query:"token="+d.getToken()+"&userId="+e.id+"&name="+e.name+"&role="+(e.role||"agent")+"&source=browser",path:"/socket.io-client",multiplex:!1}),g=c({ioSocket:f});return a.$on("logout",function(){g&&(g.disconnect(!0),b.location.reload())}),{socket:g,syncUpdates:function(a,b,c){c=c||angular.noop,g.on(a+":save",function(a){var d=_.find(b,{id:a.id}),e=b.indexOf(d),f="created";d?(_.merge(b[e],a),f="updated"):b.unshift(a),c(f,a,b)}),g.on(a+":remove",function(a){var d="deleted";_.remove(b,{id:a.id}),c(d,a,b)})},unsyncUpdates:function(a){g.removeAllListeners(a+":save"),g.removeAllListeners(a+":update"),g.removeAllListeners(a+":remove")},syncUpdatesByAttributes:function(a,b,c,d){d=d||angular.noop,g.on(a+":save",function(a){var e=!0;if(_.forIn(b,function(b,c){return a[c]&&a[c]===b?!0:e=!1}),e){var f=_.find(c,{id:a.id}),g=c.indexOf(f),h="created";f?(_.merge(c[g],a),h="updated"):c.unshift(a),d(h,a,c)}}),g.on(a+":remove",function(a){var b="deleted";_.remove(c,{id:a.id}),d(b,a,c)})},syncMailMessageUpdates:function(a,b,c,d){d=d||angular.noop,g.on(a+":"+b+":save",function(a){var b=_.find(c,{id:a.id}),e=c.indexOf(b),f="created";b?(_.merge(c[e],a),f="updated"):c.unshift(a),d(f,a)}),g.on(a+":"+b+":remove",function(a){var b="deleted";_.remove(c,{id:a.id}),d(b,a,c)})},unsyncMailMessageUpdates:function(a,b){g.removeAllListeners(a+":"+b+":save"),g.removeAllListeners(a+":"+b+":remove")},syncFaxMessageUpdates:function(a,b,c,d){d=d||angular.noop,g.on(a+":"+b+":save",function(a){var b=_.find(c,{id:a.id}),e=c.indexOf(b),f="created";b?(_.merge(c[e],a),f="updated"):c.unshift(a),d(f,a)}),g.on(a+":"+b+":remove",function(a){var b="deleted";_.remove(c,{id:a.id}),d(b,a,c)})},unsyncFaxMessageUpdates:function(a,b){g.removeAllListeners(a+":"+b+":save"),g.removeAllListeners(a+":"+b+":remove")}}}]),function(a,b){angular.module("adf.widget.counter",["adf.provider"]).config(["dashboardProvider",function(a){a.widget("counter",{title:"Single Value",description:"Single Value for db results",templateUrl:"{widgetsPath}/counter/src/view.html",controller:"apiwidgetCounterViewCtrl",edit:{templateUrl:"{widgetsPath}/counter/src/edit.html",controller:"apiwidgetCounterEditCtrl"}})}]).service("apiServiceCounter",["Widget",function(a){return{get:function(b){return a.get({select:b.select,condition:encodeURIComponent(b.condition),table:b.report.replace("_history",""),controller:"counter"}).$promise.then(function(a){return a})["catch"](function(a){console.log(a)})}}}]).controller("apiwidgetCounterEditCtrl",["$scope","report",function(a,b){a.config.reportTables=b.tables,a.config.colors=[{name:"Grey",value:"grey"},{name:"Grey 2",value:"grey-cascade"},{name:"Grey 3",value:"grey-silver"},{name:"Grey 4",value:"grey-steel"},{name:"Grey 5",value:"grey-carrara"},{name:"Grey 6",value:"grey-gallery"},{name:"Blue",value:"blue"},{name:"Blue 2",value:"blue-hoki"},{name:"Blue 3",value:"blue-steel"},{name:"Blue 4",value:"blue-madison"},{name:"Blue 5",value:"blue-chambray"},{name:"Blue 6",value:"blue-ebonyclay"},{name:"Red",value:"red"},{name:"Red 2",value:"red-pink"},{name:"Red 3",value:"red-sunglo"},{name:"Red 4",value:"red-intense"},{name:"Red 5",value:"red-thunderbird"},{name:"Red 6",value:"red-flamingo"},{name:"Green",value:"green"},{name:"Green 2",value:"green-meadow"},{name:"Green 3",value:"green-seagreen"},{name:"Green 4",value:"green-turquoise"},{name:"Green 5",value:"green-haze"},{name:"Green 6",value:"green-jungle"},{name:"Purple",value:"purple"},{name:"Purple 2",value:"purple-plum"},{name:"Purple 3",value:"purple-medium"},{name:"Purple 4",value:"purple-studio"},{name:"Purple 5",value:"purple-wisteria"},{name:"Purple 6",value:"purple-seance"},{name:"Yellow",value:"yellow"},{name:"Yellow 2",value:"yellow-gold"},{name:"Yellow 3",value:"yellow-casablanca"},{name:"Yellow 4",value:"yellow-crusta"},{name:"Yellow 5",value:"yellow-lemon"},{name:"Yellow 6",value:"yellow-saffron"}],a.config.icons=[{name:"Talk bubbles",value:"fa-comments"},{name:"Bar Chart",value:"fa-bar-chart"},{name:"Shopping Cart",value:"fa-shopping-cart"},{name:"Globe",value:"fa-globe"},{name:"Volume Control Phone",value:"fa-volume-control-phone"},{name:"Comments",value:"fa-comments-o"},{name:"Commenting",value:"fa-commenting-o"},{name:"Coffee",value:"fa-coffee"},{name:"Clock",value:"fa-clock-o"},{name:"Envelope",value:"fa-envelope-o"},{name:"Hourglass",value:"fa-hourglass-half"},{name:"Percent",value:"fa-percent"}],a.config.select=a.config.select?a.config.select:"COUNT(*)",a.config.color=a.config.color?a.config.color:"blue-madison",a.config.icon=a.config.icon?a.config.icon:"fa-comments",a.config.link=a.config.link?a.config.link:"#",a.config.linkText=a.config.linkText?a.config.linkText:"VIEW MORE"}]).controller("apiwidgetCounterViewCtrl",["$scope","$interval","apiServiceCounter","socket","$location",function(a,b,c,d,e){var f=a.$parent.model.wid;try{d.socket.on("widget_update:"+f+"_"+e.path().split("/").pop(),function(b){b&&b.length>1||_.keys(b[0]).length>1?(a.tooManyResults=!0,a.result=null):(a.tooManyResults=!1,null!==_.values(b[0])[0]?a.result=_.values(b[0])[0].toString():a.result="--")})}catch(g){console.log("Widget socket listen error:",g)}a.$on("$destroy",function(){d.socket.removeAllListeners("widget_update:"+f)})}]),angular.module("adf.widget.counter").run(["$templateCache",function(a){a.put("{widgetsPath}/counter/src/edit.html","<form role=form><div class=form-group><label for=select>Select</label> <input type=text class=form-control id=condition ng-model=config.select placeholder=Select></div><div class=form-group><label class=control-label>From</label><ui-select data-ng-model=config.report name=report theme=bootstrap><ui-select-match placeholder=From>{{'APPLICATION_'+$select.selected.value.toUpperCase() | translate}}</ui-select-match><ui-select-choices group-by=\"'channel'\" repeat=\"table.value as table in config.reportTables | filter: $select.search\"><div ng-bind-html=\"'APPLICATION_'+table.value.toUpperCase() | translate | highlight: $select.search\"></div></ui-select-choices></ui-select></div><div class=form-group><label for=condition>Where</label> <input type=text class=form-control id=condition ng-model=config.condition placeholder=Where></div><div class=form-group><label class=control-label>{{'APPLICATION_WIDGET_COLOR' | translate}}</label><ui-select data-ng-model=config.color name=color theme=bootstrap><ui-select-match placeholder=\"{{ 'APPLICATION_WIDGET_COLOR' | translate }}\"><div data-ng-class=\"'bg-'+$select.selected.value\"> </div></ui-select-match><ui-select-choices repeat=\"color.value as color in config.colors | filter: $select.search\"><div data-ng-class=\"'bg-'+color.value\"> </div></ui-select-choices></ui-select></div><div class=form-group><label class=control-label>{{'APPLICATION_WIDGET_ICON' | translate}}</label><ui-select data-ng-model=config.icon name=icon theme=bootstrap><ui-select-match placeholder=\"{{ 'APPLICATION_WIDGET_ICON' | translate }}\"><i class=fa ng-class=$select.selected.value></i></ui-select-match><ui-select-choices repeat=\"icon.value as icon in config.icons | filter: $select.search\"><i class=fa ng-class=icon.value></i></ui-select-choices></ui-select></div><div class=form-group><label for=condition>{{'APPLICATION_WIDGET_DETAILS' | translate}}</label> <input type=text class=form-control id=details ng-model=config.details maxlength=30 placeholder=\"{{'APPLICATION_WIDGET_DETAILS' | translate}}\"></div><div class=form-group><label for=condition>{{'APPLICATION_WIDGET_LINK' | translate}}</label> <input type=text class=form-control id=link ng-model=config.link placeholder=http://yourlink></div><div class=form-group><label for=condition>{{'APPLICATION_WIDGET_LINK_TEXT' | translate}}</label> <input type=text class=form-control id=linkText ng-model=config.linkText maxlength=30 placeholder=\"{{'APPLICATION_WIDGET_LINK_TEXT' | translate}}\"></div></form>"),a.put("{widgetsPath}/counter/src/view.html",'<div class=dashboard-stat ng-class=config.color ng-if=result><div class=visual><i class=fa ng-class=config.icon></i></div><div class=details><div class=number>{{result}}</div><div class=desc>{{config.details}}</div></div><a class=more href={{config.link}}>{{config.linkText}} <i class="m-icon-swapright m-icon-white"></i></a></div><div class="alert alert-danger" role=alert ng-if=!config.report><span class="glyphicon glyphicon-exclamation-sign" aria-hidden=true></span> <span class=sr-only>{{\'APPLICATION_ERROR\' | translate}}:</span> {{\'MESSAGE_WIDGET_SELECT_REPORT\' | translate}}</div><div class="alert alert-danger" role=alert ng-if=tooManyResults><span class="glyphicon glyphicon-exclamation-sign" aria-hidden=true></span> <span class=sr-only>{{\'APPLICATION_ERROR\' | translate}}:</span> {{\'MESSAGE_TOO_MANY_RESULTS\' | translate}}</div><div class="alert alert-danger" role=alert ng-if="!result && !tooManyResults"><span class="glyphicon glyphicon-exclamation-sign" aria-hidden=true></span> <span class=sr-only>{{\'APPLICATION_ERROR\' | translate}}:</span> {{\'MESSAGE_QUERY_NOT_VALID\' | translate}}</div>')}])}(window),function(a,b){angular.module("adf.widget.pie-chart",["adf.provider"]).config(["dashboardProvider",function(a){a.widget("pie-chart",{title:"Pie-Chart",description:"Display a pie-chart starting from DB values",templateUrl:"{widgetsPath}/pie-chart/src/view.html",controller:"apiWidgetPieChartViewCtrl",edit:{templateUrl:"{widgetsPath}/pie-chart/src/edit.html",controller:"apiWidgetPieChartEditCtrl"}})}]).service("apiServicePieChart",["Widget",function(a){return{get:function(b){return a.get({condition:encodeURIComponent(b.condition),table:b.report.replace("_history",""),fields:b.fields,controller:"piechart"}).$promise.then(function(a){return a})["catch"](function(a){console.log(a)})}}}]).controller("apiWidgetPieChartEditCtrl",["$scope","report",function(a,b){function c(){return a.config.fields||(a.config.fields=[{column:"",alias:""}]),a.config.fields}a.config.reportTables=b.tables,a.config.fields=a.config.fields?a.config.fields:[{column:"",alias:""}],a.addField=function(){c().push({})},a.removeField=function(a){c().splice(a,1)}}]).controller("apiWidgetPieChartViewCtrl",["$scope","$interval","apiServicePieChart","socket","$location",function(a,b,c,d,e){var f=a.$parent.model.wid;try{d.socket.on("widget_update:"+f+"_"+e.path().split("/").pop(),function(b){if(b&&1===b.length){a.labels=[],a.data=[];for(var c in b[0])a.labels.push(c),a.data.push(b[0][c])}else a.labels=[],a.data=[]})}catch(g){console.log("Widget socket listen error:",g)}a.$on("$destroy",function(){d.socket.removeAllListeners("widget_update:"+f)})}]),angular.module("adf.widget.pie-chart").run(["$templateCache",function(a){a.put("{widgetsPath}/pie-chart/src/edit.html",'<form role=form><div class=form-group><label class=control-label>{{\'APPLICATION_REPORT\' | translate}}</label><ui-select data-ng-model=config.report name=report theme=bootstrap><ui-select-match placeholder="{{ \'APPLICATION_REPORT\' | translate }}">{{\'APPLICATION_\'+$select.selected.value.toUpperCase() | translate}}</ui-select-match><ui-select-choices group-by="\'channel\'" repeat="table.value as table in config.reportTables | filter: $select.search"><div ng-bind-html="\'APPLICATION_\'+table.value.toUpperCase() | translate | highlight: $select.search"></div></ui-select-choices></ui-select></div><div><label class=control-label>{{\'APPLICATION_FIELDS\' | translate}}</label></div><div class=padding-bottom ng-repeat="field in config.fields"><div class=form-group><div class=input-group><input type=text class=form-control ng-model=field.column> <span class=input-group-addon>as</span> <input type=text class=form-control ng-model=field.alias> <span class=input-group-btn ng-if="config.fields.length>1"><button class="btn btn-danger" type=button data-ng-click=removeField($index)><i class="fa fa-times"></i> {{\'APPLICATION_REMOVE\' | translate}}</button></span></div></div></div><button type=button class="btn btn-sm green mbottom20" ng-click=addField()><i class="fa fa-plus"></i> {{\'APPLICATION_ADD_FIELD\' | translate}}</button><div class=form-group><label for=condition>{{\'APPLICATION_CONDITION\' | translate}}</label> <input type=text class=form-control id=condition ng-model=config.condition placeholder="{{\'APPLICATION_CONDITION\' | translate}}"></div></form>'),a.put("{widgetsPath}/pie-chart/src/view.html",'<div ng-if=labels.length ng-style=config.style><canvas id=doughnut class="chart chart-doughnut" chart-data=data chart-labels=labels legend=true></canvas></div><div class="alert alert-danger" role=alert ng-if=!config.report><span class="glyphicon glyphicon-exclamation-sign" aria-hidden=true></span> <span class=sr-only>{{\'APPLICATION_ERROR\' | translate}}:</span> {{\'MESSAGE_WIDGET_SELECT_REPORT\' | translate}}</div><div class="alert alert-danger" role=alert ng-if=!labels.length><span class="glyphicon glyphicon-exclamation-sign" aria-hidden=true></span> <span class=sr-only>{{\'APPLICATION_ERROR\' | translate}}:</span> {{\'MESSAGE_ENTER_VALID_CONDITION\' | translate}}</div><div class="alert alert-danger" role=alert ng-if=!labels.length><span class="glyphicon glyphicon-exclamation-sign" aria-hidden=true></span> <span class=sr-only>{{\'APPLICATION_ERROR\' | translate}}:</span> {{\'MESSAGE_ENTER_ONE_VALID_METRIC_AND_CHECK_OTHER\' | translate}}</div>')}])}(window),function(a,b){angular.module("adf.widget.table",["adf.provider"]).value("apiServiceUrlTable","/api/widgets/table").config(["dashboardProvider",function(a){a.widget("table",{title:"Table",description:"Show tabbed results from db",templateUrl:"{widgetsPath}/table/src/view.html",controller:"apiWidgetTableViewCtrl",edit:{templateUrl:"{widgetsPath}/table/src/edit.html",controller:"apiWidgetTableEditCtrl"}})}]).service("apiServiceTable",["$q","$http","apiServiceUrlTable",function(a,b,c){return{get:function(d){var e=a.defer();return b.get(c,{params:{condition:encodeURIComponent(d.condition),table:d.report,fields:d.fields}}).success(function(a){a?e.resolve(a):e.reject()}).error(function(a){console.log(a),e.reject()}),e.promise}}}]).controller("apiWidgetTableEditCtrl",["$scope",function(a){function b(){return a.config.fields||(a.config.fields=[{column:"",alias:""}]),a.config.fields}a.config.reportTables=[{name:"Agents",value:"agent"},{name:"Calls",value:"call"},{name:"Dials",value:"dial"},{name:"Members",value:"member"},{name:"Queues",value:"queue"}],a.config.timeout=a.config.timeout?a.config.timeout:1,a.config.height=a.config.height?a.config.height:350,a.config.fields=a.config.fields?a.config.fields:[{column:"",alias:""}],a.addField=function(){b().push({})},a.removeField=function(a){b().splice(a,1)}}]).controller("apiWidgetTableViewCtrl",["$scope","$interval","apiServiceTable",function(a,b,c){a.config.timeout=a.config.timeout?a.config.timeout:1,a.config.height=a.config.height?a.config.height:350,a.config.style={"max-height":a.config.height+"px",overflow:"scroll"},a.tableApiCall=function(){a.config.condition&&a.config.report&&a.config.fields.length&&""!==a.config.fields[0].column&&""!==a.config.fields[0].alias&&c.get(a.config).then(function(b){a.results=b})},a.tableApiCall();var d=b(function(){a.tableApiCall()},1e3*parseInt(a.config.timeout));a.$on("$destroy",function(){b.cancel(d)})}]),angular.module("adf.widget.table").run(["$templateCache",function(a){a.put("{widgetsPath}/table/src/edit.html",'<form role=form><div class=form-group><label class=control-label>{{\'APPLICATION_REPORT\' | translate}}</label><ui-select data-ng-model=config.report name=report theme=bootstrap><ui-select-match placeholder="{{ \'APPLICATION_REPORT\' | translate }}">{{$select.selected.name}}</ui-select-match><ui-select-choices repeat="report.value as report in config.reportTables | filter: $select.search"><div ng-bind-html="report.name | highlight: $select.search"></div></ui-select-choices></ui-select></div><div><label class=control-label>{{\'APPLICATION_METRICS\' | translate}}</label></div><div class=padding-bottom ng-repeat="field in config.fields"><div class=form-group><div class=input-group><input type=text class=form-control ng-model=field.column> <span class=input-group-addon>as</span> <input type=text class=form-control ng-model=field.alias> <span class=input-group-btn ng-if="config.fields.length>1"><button class="btn btn-danger" type=button data-ng-click=removeField($index)><i class="fa fa-times"></i> {{\'APPLICATION_REMOVE\' | translate}}</button></span></div></div></div><button type=button class="btn btn-sm green mbottom20" ng-click=addField()><i class="fa fa-plus"></i> {{\'APPLICATION_ADD_FIELD\' | translate}}</button><div class=form-group><label for=condition>{{\'APPLICATION_CONDITION\' | translate}}</label> <input type=text class=form-control id=condition ng-model=config.condition placeholder="{{\'APPLICATION_CONDITION\' | translate}}"></div><div class=form-group><label for=condition>{{\'APPLICATION_REFRESH_TIMEOUT\' | translate}}</label> <input type=number class=form-control id=timeout ng-model=config.timeout placeholder="{{\'APPLICATION_REFRESH_TIMEOUT\' | translate}}" min=1></div><div class=form-group><label for=condition>{{\'APPLICATION_WIDGET_MAX_HEIGHT\' | translate}}</label> <input type=number class=form-control id=height ng-model=config.height placeholder="{{\'APPLICATION_WIDGET_MAX_HEIGHT\' | translate}}" min=350></div></form>'),a.put("{widgetsPath}/table/src/view.html",'<div ng-if=results ng-style=config.style><table st-table=results class="table table-striped table-bordered table-hover"><div class=table-responsive><thead><tr><th colspan={{config.fields.length}}><div class=row><div class=col-md-6></div><div class=col-md-6><div class="input-group input-medium pull-right"><input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class=form-control type=search> <span class=input-group-addon><i class="fa fa-search"></i></span></div></div></div></th></tr><tr><th ng-repeat="field in config.fields">{{field.alias}}</th></tr></thead><tbody><tr data-ng-repeat="result in results" class=animate-repeat><td ng-repeat="field in config.fields">{{result[field.alias]}}</td></tr><tr data-ng-hide=results.length><td colspan={{config.fields.length}} style=text-align:center;><i>{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</i></td></tr></tbody><tfoot><tr><td colspan={{config.fields.length}} class=text-center><div st-pagination class=pagination st-items-by-page=10 st-displayed-pages=3></div></td></tr></tfoot></div></table></div><div class="alert alert-danger" role=alert ng-if=!config.report><span class="glyphicon glyphicon-exclamation-sign" aria-hidden=true></span> <span class=sr-only>{{\'APPLICATION_ERROR\' | translate}}:</span> {{\'MESSAGE_WIDGET_SELECT_REPORT\' | translate}}</div><div class="alert alert-danger" role=alert ng-if=!results><span class="glyphicon glyphicon-exclamation-sign" aria-hidden=true></span> <span class=sr-only>{{\'APPLICATION_ERROR\' | translate}}:</span> {{\'MESSAGE_ENTER_VALID_CONDITION\' | translate}}</div><div class="alert alert-danger" role=alert ng-if=!results><span class="glyphicon glyphicon-exclamation-sign" aria-hidden=true></span> <span class=sr-only>{{\'APPLICATION_ERROR\' | translate}}:</span> {{\'MESSAGE_ENTER_ONE_VALID_FIELD_AND_CHECK_OTHER\' | translate}}</div>')}])}(window);var Metronic=function(){var a,b=!1,c=!1,d=!1,e=!1,f=[],g="assets/",h="img/",i="plugins/",j="css/",k={blue:"#89C4F4",red:"#F3565D",green:"#1bbc9b",purple:"#9b59b6",grey:"#95a5a6",yellow:"#F8CB00"},l=function(){"rtl"===$("body").css("direction")&&(b=!0),c=!!navigator.userAgent.match(/MSIE 8.0/),d=!!navigator.userAgent.match(/MSIE 9.0/),e=!!navigator.userAgent.match(/MSIE 10.0/),e&&$("html").addClass("ie10"),(e||d||c)&&$("html").addClass("ie")},m=function(){for(var a=0;a<f.length;a++){var b=f[a];b.call()}},n=function(){var a;if(c){var b;$(window).resize(function(){b!=document.documentElement.clientHeight&&(a&&clearTimeout(a),a=setTimeout(function(){m()},50),b=document.documentElement.clientHeight)})}else $(window).resize(function(){a&&clearTimeout(a),a=setTimeout(function(){m()},50)})},o=function(){$("body").on("click",".portlet > .portlet-title > .tools > a.remove",function(a){a.preventDefault();var b=$(this).closest(".portlet");$("body").hasClass("page-portlet-fullscreen")&&$("body").removeClass("page-portlet-fullscreen"),b.find(".portlet-title .fullscreen").tooltip("destroy"),b.find(".portlet-title > .tools > .reload").tooltip("destroy"),b.find(".portlet-title > .tools > .remove").tooltip("destroy"),b.find(".portlet-title > .tools > .config").tooltip("destroy"),b.find(".portlet-title > .tools > .collapse, .portlet > .portlet-title > .tools > .expand").tooltip("destroy"),b.remove()}),$("body").on("click",".portlet > .portlet-title .fullscreen",function(a){a.preventDefault();var b=$(this).closest(".portlet");if(b.hasClass("portlet-fullscreen"))$(this).removeClass("on"),b.removeClass("portlet-fullscreen"),$("body").removeClass("page-portlet-fullscreen"),b.children(".portlet-body").css("height","auto");else{var c=Metronic.getViewPort().height-b.children(".portlet-title").outerHeight()-parseInt(b.children(".portlet-body").css("padding-top"))-parseInt(b.children(".portlet-body").css("padding-bottom"));$(this).addClass("on"),b.addClass("portlet-fullscreen"),$("body").addClass("page-portlet-fullscreen"),b.children(".portlet-body").css("height",c)}}),$("body").on("click",".portlet > .portlet-title > .tools > a.reload",function(a){a.preventDefault();var b=$(this).closest(".portlet").children(".portlet-body"),c=$(this).attr("data-url"),d=$(this).attr("data-error-display");c?(Metronic.blockUI({target:b,animate:!0,overlayColor:"none"}),$.ajax({type:"GET",cache:!1,url:c,dataType:"html",success:function(a){Metronic.unblockUI(b),b.html(a)},error:function(a,c,e){Metronic.unblockUI(b);var f="Error on reloading the content. Please check your connection and try again.";"toastr"==d&&toastr?toastr.error(f):"notific8"==d&&$.notific8?($.notific8("zindex",11500),$.notific8(f,{theme:"ruby",life:3e3})):alert(f)}})):(Metronic.blockUI({target:b,animate:!0,overlayColor:"none"}),window.setTimeout(function(){Metronic.unblockUI(b)},1e3))}),$('.portlet .portlet-title a.reload[data-load="true"]').click(),$("body").on("click",".portlet > .portlet-title > .tools > .collapse, .portlet .portlet-title > .tools > .expand",function(a){a.preventDefault()})},p=function(){if($().uniform){var a=$("input[type=checkbox]:not(.toggle, .make-switch, .icheck), input[type=radio]:not(.toggle, .star, .make-switch, .icheck)");a.size()>0&&a.each(function(){0===$(this).parents(".checker").size()&&$(this).show()})}},q=function(){$().iCheck&&$(".icheck").each(function(){var a=$(this).attr("data-checkbox")?$(this).attr("data-checkbox"):"icheckbox_minimal-grey",b=$(this).attr("data-radio")?$(this).attr("data-radio"):"iradio_minimal-grey";a.indexOf("_line")>-1||b.indexOf("_line")>-1?$(this).iCheck({checkboxClass:a,radioClass:b,insert:'<div class="icheck_line-icon"></div>'+$(this).attr("data-label")}):$(this).iCheck({checkboxClass:a,radioClass:b})})},r=function(){$().bootstrapSwitch&&$(".make-switch").bootstrapSwitch()},s=function(){$().confirmation&&$("[data-toggle=confirmation]").confirmation({container:"body",btnOkClass:"btn-xs btn-success",btnCancelClass:"btn-xs btn-danger"})},t=function(){$("body").on("shown.bs.collapse",".accordion.scrollable",function(a){Metronic.scrollTo($(a.target))})},u=function(){if(location.hash){var a=location.hash.substr(1);$('a[href="#'+a+'"]').parents(".tab-pane:hidden").each(function(){var a=$(this).attr("id");$('a[href="#'+a+'"]').click()}),$('a[href="#'+a+'"]').click()}},v=function(){$("body").on("hide.bs.modal",function(){$(".modal:visible").size()>1&&$("html").hasClass("modal-open")===!1?$("html").addClass("modal-open"):$(".modal:visible").size()<=1&&$("html").removeClass("modal-open")}),$("body").on("show.bs.modal",".modal",function(){$(this).hasClass("modal-scroll")&&$("body").addClass("modal-open-noscroll")}),$("body").on("hide.bs.modal",".modal",function(){$("body").removeClass("modal-open-noscroll")}),$("body").on("hidden.bs.modal",".modal:not(.modal-cached)",function(){$(this).removeData("bs.modal")})},w=function(){$(".tooltips").tooltip(),$(".portlet > .portlet-title .fullscreen").tooltip({container:"body",title:"Fullscreen"}),$(".portlet > .portlet-title > .tools > .reload").tooltip({container:"body",title:"Reload"}),$(".portlet > .portlet-title > .tools > .remove").tooltip({container:"body",title:"Remove"}),$(".portlet > .portlet-title > .tools > .config").tooltip({container:"body",title:"Settings"}),$(".portlet > .portlet-title > .tools > .collapse, .portlet > .portlet-title > .tools > .expand").tooltip({ -container:"body",title:"Collapse/Expand"})},x=function(){$("body").on("click",".dropdown-menu.hold-on-click",function(a){a.stopPropagation()})},y=function(){$("body").on("click",'[data-close="alert"]',function(a){$(this).parent(".alert").hide(),$(this).closest(".note").hide(),a.preventDefault()}),$("body").on("click",'[data-close="note"]',function(a){$(this).closest(".note").hide(),a.preventDefault()}),$("body").on("click",'[data-remove="note"]',function(a){$(this).closest(".note").remove(),a.preventDefault()})},z=function(){$('[data-hover="dropdown"]').not(".hover-initialized").each(function(){$(this).dropdownHover(),$(this).addClass("hover-initialized")})},A=function(){$(".popovers").popover(),$(document).on("click.bs.popover.data-api",function(b){a&&a.popover("hide")})},B=function(){Metronic.initSlimScroll(".scroller")},C=function(){jQuery.fancybox&&$(".fancybox-button").size()>0&&$(".fancybox-button").fancybox({groupAttr:"data-rel",prevEffect:"none",nextEffect:"none",closeBtn:!0,helpers:{title:{type:"inside"}}})},D=function(){(c||d)&&$("input[placeholder]:not(.placeholder-no-fix), textarea[placeholder]:not(.placeholder-no-fix)").each(function(){var a=$(this);""===a.val()&&""!==a.attr("placeholder")&&a.addClass("placeholder").val(a.attr("placeholder")),a.focus(function(){a.val()==a.attr("placeholder")&&a.val("")}),a.blur(function(){""!==a.val()&&a.val()!=a.attr("placeholder")||a.val(a.attr("placeholder"))})})},E=function(){$().select2&&$(".select2me").select2({placeholder:"Select"})};return{init:function(){l(),n(),p(),q(),r(),B(),C(),E(),o(),y(),x(),u(),w(),A(),t(),v(),s(),D()},initAjax:function(){p(),q(),r(),z(),B(),E(),C(),x(),w(),A(),t(),s()},initComponents:function(){this.initAjax()},setLastPopedPopover:function(b){a=b},addResizeHandler:function(a){f.push(a)},runResizeHandlers:function(){m()},scrollTo:function(a,b){var c=a&&a.size()>0?a.offset().top:0;a&&($("body").hasClass("page-header-fixed")&&(c-=$(".page-header").height()),c+=b?b:-1*a.height()),$("html,body").animate({scrollTop:c},"slow")},initSlimScroll:function(a){$(a).each(function(){if(!$(this).attr("data-initialized")){var a;a=$(this).attr("data-height")?$(this).attr("data-height"):$(this).css("height"),$(this).slimScroll({allowPageScroll:!0,size:"7px",color:$(this).attr("data-handle-color")?$(this).attr("data-handle-color"):"#bbb",wrapperClass:$(this).attr("data-wrapper-class")?$(this).attr("data-wrapper-class"):"slimScrollDiv",railColor:$(this).attr("data-rail-color")?$(this).attr("data-rail-color"):"#eaeaea",position:b?"left":"right",height:a,alwaysVisible:"1"==$(this).attr("data-always-visible"),railVisible:"1"==$(this).attr("data-rail-visible"),disableFadeOut:!0}),$(this).attr("data-initialized","1")}})},destroySlimScroll:function(a){$(a).each(function(){if("1"===$(this).attr("data-initialized")){$(this).removeAttr("data-initialized"),$(this).removeAttr("style");var a={};$(this).attr("data-handle-color")&&(a["data-handle-color"]=$(this).attr("data-handle-color")),$(this).attr("data-wrapper-class")&&(a["data-wrapper-class"]=$(this).attr("data-wrapper-class")),$(this).attr("data-rail-color")&&(a["data-rail-color"]=$(this).attr("data-rail-color")),$(this).attr("data-always-visible")&&(a["data-always-visible"]=$(this).attr("data-always-visible")),$(this).attr("data-rail-visible")&&(a["data-rail-visible"]=$(this).attr("data-rail-visible")),$(this).slimScroll({wrapperClass:$(this).attr("data-wrapper-class")?$(this).attr("data-wrapper-class"):"slimScrollDiv",destroy:!0});var b=$(this);$.each(a,function(a,c){b.attr(a,c)})}})},scrollTop:function(){Metronic.scrollTo()},blockUI:function(a){a=$.extend(!0,{},a);var b="";if(b=a.animate?'<div class="loading-message '+(a.boxed?"loading-message-boxed":"")+'"><div class="block-spinner-bar"><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div></div></div>':a.iconOnly?'<div class="loading-message '+(a.boxed?"loading-message-boxed":"")+'"><img src="'+this.getGlobalImgPath()+'loading-spinner-blue.gif" align=""></div>':a.textOnly?'<div class="loading-message '+(a.boxed?"loading-message-boxed":"")+'"><span> '+(a.message?a.message:"LOADING...")+"</span></div>":'<div class="loading-message '+(a.boxed?"loading-message-boxed":"")+'"><img src="'+this.getGlobalImgPath()+'loading-spinner-blue.gif" align=""><span> '+(a.message?a.message:"LOADING...")+"</span></div>",a.target){var c=$(a.target);c.height()<=$(window).height()&&(a.cenrerY=!0),c.block({message:b,baseZ:a.zIndex?a.zIndex:1e3,centerY:void 0!==a.cenrerY?a.cenrerY:!1,css:{top:"10%",border:"0",padding:"0",backgroundColor:"none"},overlayCSS:{backgroundColor:a.overlayColor?a.overlayColor:"#555",opacity:a.boxed?.05:.1,cursor:"wait"}})}else $.blockUI({message:b,baseZ:a.zIndex?a.zIndex:1e3,css:{border:"0",padding:"0",backgroundColor:"none"},overlayCSS:{backgroundColor:a.overlayColor?a.overlayColor:"#555",opacity:a.boxed?.05:.1,cursor:"wait"}})},unblockUI:function(a){a?$(a).unblock({onUnblock:function(){$(a).css("position",""),$(a).css("zoom","")}}):$.unblockUI()},startPageLoading:function(a){a&&a.animate?($(".page-spinner-bar").remove(),$("body").append('<div class="page-spinner-bar"><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div></div>')):($(".page-loading").remove(),$("body").append('<div class="page-loading"><img src="'+this.getGlobalImgPath()+'loading-spinner-blue.gif"/> <span>'+(a&&a.message?a.message:"Loading...")+"</span></div>"))},stopPageLoading:function(){$(".page-loading, .page-spinner-bar").remove()},alert:function(a){a=$.extend(!0,{container:"",place:"append",type:"success",message:"",close:!0,reset:!0,focus:!0,closeInSeconds:0,icon:""},a);var b=Metronic.getUniqueID("Metronic_alert"),c='<div id="'+b+'" class="Metronic-alerts alert alert-'+a.type+' fade in">'+(a.close?'<button type="button" class="close" data-dismiss="alert" aria-hidden="true"></button>':"")+(""!==a.icon?'<i class="fa-lg fa fa-'+a.icon+'"></i> ':"")+a.message+"</div>";return a.reset&&$(".Metronic-alerts").remove(),a.container?"append"==a.place?$(a.container).append(c):$(a.container).prepend(c):$("body").hasClass("page-container-bg-solid")?$(".page-title").after(c):$(".page-bar").size()>0?$(".page-bar").after(c):$(".page-breadcrumb").after(c),a.focus&&Metronic.scrollTo($("#"+b)),a.closeInSeconds>0&&setTimeout(function(){$("#"+b).remove()},1e3*a.closeInSeconds),b},initUniform:function(a){a?$(a).each(function(){0===$(this).parents(".checker").size()&&($(this).show(),$(this).uniform())}):p()},updateUniform:function(a){$.uniform.update(a)},initFancybox:function(){C()},getActualVal:function(a){return a=$(a),a.val()===a.attr("placeholder")?"":a.val()},getURLParameter:function(a){var b,c,d=window.location.search.substring(1),e=d.split("&");for(b=0;b<e.length;b++)if(c=e[b].split("="),c[0]==a)return unescape(c[1]);return null},isTouchDevice:function(){try{return document.createEvent("TouchEvent"),!0}catch(a){return!1}},getViewPort:function(){var a=window,b="inner";return"innerWidth"in window||(b="client",a=document.documentElement||document.body),{width:a[b+"Width"],height:a[b+"Height"]}},getUniqueID:function(a){return"prefix_"+Math.floor(Math.random()*(new Date).getTime())},isIE8:function(){return c},isIE9:function(){return d},isRTL:function(){return b},isAngularJsApp:function(){return"undefined"!=typeof angular},getAssetsPath:function(){return g},setAssetsPath:function(a){g=a},setGlobalImgPath:function(a){h=a},getGlobalImgPath:function(){return g+h},setGlobalPluginsPath:function(a){i=a},getGlobalPluginsPath:function(){return g+i},getGlobalCssPath:function(){return g+j},getBrandColor:function(a){return k[a]?k[a]:""},getResponsiveBreakpoint:function(a){var b={xs:480,sm:768,md:900,lg:1200};return b[a]?b[a]:0}}}(),Layout=function(){var a="img/",b="css/",c=Metronic.getResponsiveBreakpoint("md"),d=function(){var a,b=$(".page-content"),d=$(".page-sidebar"),e=$("body");if(e.hasClass("page-footer-fixed")===!0&&e.hasClass("page-sidebar-fixed")===!1){var f=Metronic.getViewPort().height-$(".page-footer").outerHeight()-$(".page-header").outerHeight();b.height()<f&&b.attr("style","min-height:"+f+"px")}else{if(e.hasClass("page-sidebar-fixed"))a=g(),e.hasClass("page-footer-fixed")===!1&&(a-=$(".page-footer").outerHeight());else{var h=$(".page-header").outerHeight(),i=$(".page-footer").outerHeight();a=Metronic.getViewPort().width<c?Metronic.getViewPort().height-h-i:d.height()+20,a+h+i<=Metronic.getViewPort().height&&(a=Metronic.getViewPort().height-h-i)}b.attr("style","min-height:"+a+"px")}},e=function(a,b){var d=location.hash.toLowerCase(),e=$(".page-sidebar-menu");if("click"===a||"set"===a?b=$(b):"match"===a&&e.find("li > a").each(function(){var a=$(this).attr("href").toLowerCase();return a.length>1&&d.substr(1,a.length-1)==a.substr(1)?void(b=$(this)):void 0}),b&&0!=b.size()&&"javascript:;"!==b.attr("href").toLowerCase()&&"#"!==b.attr("href").toLowerCase()){parseInt(e.data("slide-speed")),e.data("keep-expanded");e.find("li.active").removeClass("active"),e.find("li > a > .selected").remove(),e.hasClass("page-sidebar-menu-hover-submenu")===!1?e.find("li.open").each(function(){0===$(this).children(".sub-menu").size()&&($(this).removeClass("open"),$(this).find("> a > .arrow.open").removeClass("open"))}):e.find("li.open").removeClass("open"),b.parents("li").each(function(){$(this).addClass("active"),$(this).find("> a > span.arrow").addClass("open"),1===$(this).parent("ul.page-sidebar-menu").size()&&$(this).find("> a").append('<span class="selected"></span>'),1===$(this).children("ul.sub-menu").size()&&$(this).addClass("open")}),"click"===a&&Metronic.getViewPort().width<c&&$(".page-sidebar").hasClass("in")&&$(".page-header .responsive-toggler").click()}},f=function(){jQuery(".page-sidebar").on("click","li > a",function(a){var b=$(this).next().hasClass("sub-menu");if(!(Metronic.getViewPort().width>=c&&1===$(this).parents(".page-sidebar-menu-hover-submenu").size())){if(b===!1)return void(Metronic.getViewPort().width<c&&$(".page-sidebar").hasClass("in")&&$(".page-header .responsive-toggler").click());if(!$(this).next().hasClass("sub-menu always-open")){var e=$(this).parent().parent(),f=$(this),g=$(".page-sidebar-menu"),h=jQuery(this).next(),i=g.data("auto-scroll"),j=parseInt(g.data("slide-speed")),k=g.data("keep-expanded");k!==!0&&(e.children("li.open").children("a").children(".arrow").removeClass("open"),e.children("li.open").children(".sub-menu:not(.always-open)").slideUp(j),e.children("li.open").removeClass("open"));var l=-200;h.is(":visible")?(jQuery(".arrow",jQuery(this)).removeClass("open"),jQuery(this).parent().removeClass("open"),h.slideUp(j,function(){i===!0&&$("body").hasClass("page-sidebar-closed")===!1&&($("body").hasClass("page-sidebar-fixed")?g.slimScroll({scrollTo:f.position().top}):Metronic.scrollTo(f,l)),d()})):b&&(jQuery(".arrow",jQuery(this)).addClass("open"),jQuery(this).parent().addClass("open"),h.slideDown(j,function(){i===!0&&$("body").hasClass("page-sidebar-closed")===!1&&($("body").hasClass("page-sidebar-fixed")?g.slimScroll({scrollTo:f.position().top}):Metronic.scrollTo(f,l)),d()})),a.preventDefault()}}}),jQuery(".page-sidebar").on("click"," li > a.ajaxify",function(a){a.preventDefault(),Metronic.scrollTop();var b=$(this).attr("href"),d=jQuery(".page-sidebar ul"),e=($(".page-content"),$(".page-content .page-content-body"));d.children("li.active").removeClass("active"),d.children("arrow.open").removeClass("open"),$(this).parents("li").each(function(){$(this).addClass("active"),$(this).children("a > span.arrow").addClass("open")}),$(this).parents("li").addClass("active"),Metronic.getViewPort().width<c&&$(".page-sidebar").hasClass("in")&&$(".page-header .responsive-toggler").click(),Metronic.startPageLoading();var f=$(this);$.ajax({type:"GET",cache:!1,url:b,dataType:"html",success:function(a){0===f.parents("li.open").size()&&$(".page-sidebar-menu > li.open > a").click(),Metronic.stopPageLoading(),e.html(a),Layout.fixContentHeight(),Metronic.initAjax()},error:function(a,b,c){Metronic.stopPageLoading(),e.html("<h4>Could not load the requested content.</h4>")}})}),jQuery(".page-content").on("click",".ajaxify",function(a){a.preventDefault(),Metronic.scrollTop();var b=$(this).attr("href"),d=($(".page-content"),$(".page-content .page-content-body"));Metronic.startPageLoading(),Metronic.getViewPort().width<c&&$(".page-sidebar").hasClass("in")&&$(".page-header .responsive-toggler").click(),$.ajax({type:"GET",cache:!1,url:b,dataType:"html",success:function(a){Metronic.stopPageLoading(),d.html(a),Layout.fixContentHeight(),Metronic.initAjax()},error:function(a,b,c){d.html("<h4>Could not load the requested content.</h4>"),Metronic.stopPageLoading()}})}),i(),$(".page-sidebar").on("click",".sidebar-search .remove",function(a){a.preventDefault(),$(".sidebar-search").removeClass("open")}),$(".page-sidebar .sidebar-search").on("keypress","input.form-control",function(a){return 13==a.which?($(".sidebar-search").submit(),!1):void 0}),0!==$(".sidebar-search").size()&&($(".sidebar-search .input-group").on("click",function(a){a.stopPropagation()}),$("body").on("click",function(){$(".sidebar-search").hasClass("open")&&$(".sidebar-search").removeClass("open")}))},g=function(){var a=Metronic.getViewPort().height-$(".page-header").outerHeight();return $("body").hasClass("page-footer-fixed")&&(a-=$(".page-footer").outerHeight()),a},h=function(){var a=$(".page-sidebar-menu");return Metronic.destroySlimScroll(a),0===$(".page-sidebar-fixed").size()?void d():void(Metronic.getViewPort().width>=c&&(a.attr("data-height",g()),Metronic.initSlimScroll(a),d()))},i=function(){var a=$("body");a.hasClass("page-sidebar-fixed")&&$(".page-sidebar").on("mouseenter",function(){a.hasClass("page-sidebar-closed")&&$(this).find(".page-sidebar-menu").removeClass("page-sidebar-menu-closed")}).on("mouseleave",function(){a.hasClass("page-sidebar-closed")&&$(this).find(".page-sidebar-menu").addClass("page-sidebar-menu-closed")})},j=function(){$("body");$.cookie&&"1"===$.cookie("sidebar_closed")&&Metronic.getViewPort().width>=c?($("body").addClass("page-sidebar-closed"),$(".page-sidebar-menu").addClass("page-sidebar-menu-closed")):$.cookie&&$.cookie("sidebar_closed","0")},k=function(){$(".page-header").on("click",'.hor-menu a[data-toggle="tab"]',function(a){a.preventDefault();var b=$(".hor-menu .nav"),c=b.find("li.current");$("li.active",c).removeClass("active"),$(".selected",c).remove();var d=$(this).parents("li").last();d.addClass("current"),d.find("a:first").append('<span class="selected"></span>')}),$(".page-header").on("click",".search-form",function(a){$(this).addClass("open"),$(this).find(".form-control").focus(),$(".page-header .search-form .form-control").on("blur",function(a){$(this).closest(".search-form").removeClass("open"),$(this).unbind("blur")})}),$(".page-header").on("keypress",".hor-menu .search-form .form-control",function(a){return 13==a.which?($(this).closest(".search-form").submit(),!1):void 0}),$(".page-header").on("mousedown",".search-form.open .submit",function(a){a.preventDefault(),a.stopPropagation(),$(this).closest(".search-form").submit()}),$('[data-hover="megamenu-dropdown"]').not(".hover-initialized").each(function(){$(this).dropdownHover(),$(this).addClass("hover-initialized")}),$(document).on("click",".mega-menu-dropdown .dropdown-menu",function(a){a.stopPropagation()})},l=function(){$("body").on("shown.bs.tab",'a[data-toggle="tab"]',function(){d()})},m=function(){var a=300,b=500;navigator.userAgent.match(/iPhone|iPad|iPod/i)?$(window).bind("touchend touchcancel touchleave",function(c){$(this).scrollTop()>a?$(".scroll-to-top").fadeIn(b):$(".scroll-to-top").fadeOut(b)}):$(window).scroll(function(){$(this).scrollTop()>a?$(".scroll-to-top").fadeIn(b):$(".scroll-to-top").fadeOut(b)}),$(".scroll-to-top").click(function(a){return a.preventDefault(),$("html, body").animate({scrollTop:0},b),!1})},n=function(){var a,b=$(".full-height-content");if(a=Metronic.getViewPort().height-$(".page-header").outerHeight(!0)-$(".page-footer").outerHeight(!0)-$(".page-title").outerHeight(!0)-$(".page-bar").outerHeight(!0),b.hasClass("portlet")){var d=b.find(".portlet-body");if(Metronic.getViewPort().width<c)return void Metronic.destroySlimScroll(d.find(".full-height-content-body"));a=a-b.find(".portlet-title").outerHeight(!0)-parseInt(b.find(".portlet-body").css("padding-top"))-parseInt(b.find(".portlet-body").css("padding-bottom"))-2,b.hasClass("full-height-content-scrollable")?(a-=35,d.find(".full-height-content-body").css("height",a),Metronic.initSlimScroll(d.find(".full-height-content-body"))):d.css("min-height",a)}else{if(Metronic.getViewPort().width<c)return void Metronic.destroySlimScroll(b.find(".full-height-content-body"));b.hasClass("full-height-content-scrollable")?(a-=35,b.find(".full-height-content-body").css("height",a),Metronic.initSlimScroll(b.find(".full-height-content-body"))):b.css("min-height",a)}};return{initHeader:function(){k()},setSidebarMenuActiveLink:function(a,b){e(a,b)},initSidebar:function(){h(),f(),j(),Metronic.isAngularJsApp()&&e("match"),Metronic.addResizeHandler(h)},initContent:function(){n(),l(),Metronic.addResizeHandler(d),Metronic.addResizeHandler(n)},initFooter:function(){m()},init:function(){this.initHeader(),this.initSidebar(),this.initContent(),this.initFooter()},fixContentHeight:function(){d()},initFixedSidebarHoverEffect:function(){i()},initFixedSidebar:function(){h()},getLayoutImgPath:function(){return Metronic.getAssetsPath()+a},getLayoutCssPath:function(){return Metronic.getAssetsPath()+b}}}();angular.module("xCallyShuttleApp").run(["$templateCache",function(a){a.put("app/adminreset/adminreset.html",'<!-- BEGIN LOGO -->\n<div class="logo" data-ng-init="getInfo()">\n <a href="index.html">\n <img ng-src="api/settings/logo/login" alt="logo" class="custom-login-logo" onError="this.onerror=null"/>\n </a>\n</div>\n<!-- END LOGO -->\n<!-- BEGIN RESET -->\n<div class="content">\n <!-- BEGIN RESET FORM -->\n <form name="resetForm" data-ng-submit="resetForm.$valid && updatePassword()" novalidate>\n <h3>{{\'APPLICATION_RESET_PASSWORD\' | translate}}</h3>\n <p>\n {{\'MESSAGE_FIRST_LOGIN_PASSWORD_RESET\' | translate}}\n </p>\n <div class="form-group" data-ng-class="{\'has-error\': resetForm.$submitted && resetForm.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_NEW_PASSWORD\' | translate}}</label>\n <div class="input-icon">\n <i class="icon-key"></i>\n <input class="form-control form-control-solid placeholder-no-fix" type="password" placeholder="{{\'APPLICATION_NEW_PASSWORD\' | translate}}" name="password" ng-model="user.password" data-ng-pattern="setting.securePassword ? settings.patternPassword : settings.patternPasswordLight" required/>\n </div>\n <span class="help-block">\n {{setting.securePassword ? \'MESSAGE_PASSWORD_FORMAT\' : \'MESSAGE_PASSWORD_LIGHT_FORMAT\' | translate}}\n </span>\n <span data-ng-show="resetForm.$submitted && resetForm.password.$invalid" class="help-block">{{\'MESSAGE_REQUIRED_FIELD\' | translate}}</span>\n <span data-ng-show="(resetForm.password.$touched || resetForm.$submitted) && resetForm.password.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <div class="form-group" data-ng-class="{\'has-error\': resetForm.$submitted && resetForm.rePassword.$invalid}">\n <label class="control-label">{{\'APPLICATION_RE_TYPE_NEW_PASSWORD\' | translate}}</label>\n <div class="input-icon">\n <i class="icon-key"></i>\n <input class="form-control form-control-solid placeholder-no-fix" type="password" placeholder="{{\'APPLICATION_RE_TYPE_NEW_PASSWORD\' | translate}}" name="rePassword" ng-model="user.rePassword" nx-equal="user.password" required/>\n </div>\n <span data-ng-show="resetForm.$submitted && resetForm.rePassword.$invalid" class="help-block">{{\'MESSAGE_REQUIRED_FIELD\' | translate}}</span>\n <span data-ng-show="(resetForm.password.$touched || resetForm.$submitted) && resetForm.$error.nxEqual" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_PASSWORD\' | translate}}.\n </span>\n </div>\n <div class="form-actions">\n <button type="submit" class="btn btn-success uppercase">{{\'APPLICATION_SUBMIT\' | translate}}</button>\n </div>\n </form>\n <!-- END RESET FORM-->\n <div class="login-options">\n <h4>{{\'APPLICATION_FOLLOW_US\' | translate}}</h4>\n <ul class="social-icons">\n <li>\n <a class="social-icon-color facebook" data-original-title="facebook" href="https://www.facebook.com/xenialab"></a>\n </li>\n <li>\n <a class="social-icon-color twitter" data-original-title="Twitter" href="https://twitter.com/xenialab"></a>\n </li>\n <li>\n <a class="social-icon-color googleplus" data-original-title="Goole Plus" href="#"></a>\n </li>\n <li>\n <a class="social-icon-color linkedin" data-original-title="Linkedin" href="#"></a>\n </li>\n </ul>\n </div>\n</div>\n<div class="copyright">\n xCALLY Motion v. {{info.version}} | 2016 - {{year + 1}} © Powered by Xenialab <ng-bind-html data-ng-if="license.custom && !settings.defaultFooterWhiteLabel && settings.footerWhiteLabel" ng-bind-html="\'| \'+settings.footerWhiteLabel"></ng-bind-html>\n</div>\n<!-- END RESET -->\n'),a.put("app/analytic/extracted/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-file-pdf-o"></i>\n <a href="/analytics/extracted/list">{{ \'APPLICATION_EXTRACTED_REPORTS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="fa fa-file-pdf-o font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_EXTRACTED_REPORTS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n\n<!-- END PAGE CONTENT-->\n'),a.put("app/analytic/metric/list/create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_METRIC\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="forms.metric" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.metric.name.$touched || forms.metric.$submitted) && forms.metric.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(forms.metric.name.$touched || forms.metric.$submitted) && forms.metric.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START TABLE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.metric.table.$touched || forms.metric.$submitted) && forms.metric.table.$invalid}">\n <label class="control-label">{{\'APPLICATION_TABLE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.table" name="table" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{\'APPLICATION_\'+$select.selected.value.toUpperCase() | translate}}</ui-select-match>\n <ui-select-choices repeat="table.value as table in tables | filter: $select.search">\n <div ng-bind-html="\'APPLICATION_\'+table.value.toUpperCase() | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.metric.table.$touched || forms.metric.$submitted) && forms.metric.table.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TABLE-->\n\n <!-- START METRIC -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.metric.metric.$touched || forms.metric.$submitted) && forms.metric.metric.$invalid}">\n <label class="control-label">{{\'APPLICATION_METRIC\' | translate}}<span class="required" aria-required="true">*</span></label>\n <textarea type="text" name="metric" placeholder="{{\'APPLICATION_METRIC\' | translate}}" class="form-control" data-ng-model="item.metric" required/></textarea>\n <span data-ng-show="(forms.metric.metric.$touched || forms.metric.$submitted) && forms.metric.metric.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END METRIC -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="ok()" ng-disabled="forms.metric.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/analytic/metric/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-calculator"></i>\n <a href="/analytics/metrics/list">{{ \'APPLICATION_METRICS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <!-- <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-calculator font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_DEFAULT_METRICS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n </div>\n </div> -->\n <!-- <div class="portlet-body"> -->\n <!-- START TABLE -->\n <!-- <div ui-grid="gridOptionsDefault" data-ng-if="gridOptionsDefault" name="gridOptionsDefault" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptionsDefault.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div> -->\n <!-- END TABLE -->\n <!-- </div> -->\n <div class="portlet-title"><!-- removed margin-top20 class from title when commented the default metrics section-->\n <div class="caption font-green-sharp">\n <i class="icon-calculator font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_METRICS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <button class="btn green-jungle " ng-click="create()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_METRIC\' | translate }}\n </button>\n </div>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" data-ng-if="gridOptions" name="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/analytic/metric/list/view.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_METRIC\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="forms.metric" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.metric.name.$touched || forms.metric.$submitted) && forms.metric.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}</label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required readonly/>\n <span data-ng-show="(forms.metric.name.$touched || forms.metric.$submitted) && forms.metric.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START TABLE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.metric.table.$touched || forms.metric.$submitted) && forms.metric.table.$invalid}">\n <label class="control-label">{{\'APPLICATION_TABLE\' | translate}}</label>\n <ui-select data-ng-model="item.table" name="table" theme="bootstrap" required data-ng-disabled="true">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{\'APPLICATION_\'+$select.selected.value.toUpperCase() | translate}}</ui-select-match>\n <ui-select-choices repeat="table.value as table in tables | filter: $select.search">\n <div ng-bind-html="\'APPLICATION_\'+table.value.toUpperCase() | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.metric.table.$touched || forms.metric.$submitted) && forms.metric.table.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TABLE-->\n\n <!-- START METRIC -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.metric.metric.$touched || forms.metric.$submitted) && forms.metric.metric.$invalid}">\n <label class="control-label">{{\'APPLICATION_METRIC\' | translate}}</label>\n <textarea type="text" name="metric" placeholder="{{\'APPLICATION_METRIC\' | translate}}" class="form-control" data-ng-model="item.metric" required readonly/></textarea>\n <span data-ng-show="(forms.metric.metric.$touched || forms.metric.$submitted) && forms.metric.metric.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END METRIC -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description" readonly></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn default" type="button" ng-click="close()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'), -a.put("app/analytic/metric/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getMetric()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-eye"></i>\n <a href="/analytics/metrics/list">{{ \'APPLICATION_METRICS\' | translate }}</a>\n <i data-ng-show="metric" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="metric">\n <a href="#">{{metric.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/metric.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{metric.name}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.analytics.metrics.view.settings\')}">\n <a data-ng-href="/analytics/metrics/view/{{metric.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/analytic/metric/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_METRIC\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateMetric()" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="metric.name" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START TABLE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.table.$touched || forms.general.$submitted) && forms.general.table.$invalid}">\n <label class="control-label">{{\'APPLICATION_TABLE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="metric.table" name="table" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{\'APPLICATION_\'+$select.selected.value.toUpperCase() | translate}}</ui-select-match>\n <ui-select-choices repeat="table.value as table in tables | filter: $select.search">\n <div ng-bind-html="\'APPLICATION_\'+table.value.toUpperCase() | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.general.table.$touched || forms.general.$submitted) && forms.general.table.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TABLE-->\n\n <!-- START METRIC -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.metric.$touched || forms.general.$submitted) && forms.general.metric.$invalid}">\n <label class="control-label">{{\'APPLICATION_METRIC\' | translate}}<span class="required" aria-required="true">*</span></label>\n <textarea type="text" name="metric" placeholder="{{\'APPLICATION_METRIC\' | translate}}" class="form-control" data-ng-model="metric.metric" required/></textarea>\n <span data-ng-show="(forms.general.metric.$touched || forms.general.$submitted) && forms.general.metric.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END METRIC -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="metric.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ADVANCED TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/analytic/report/list/copy.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_COPY_REPORT\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp" style="padding-left:10px;">\n <i class="icon-folder font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_COPY_TO\' | translate }} </span>\n </div>\n </div>\n <div class="portlet-body">\n <div js-tree="customTreeConfig" ng-model="customTreeData" should-apply="ac()" tree="customTreeInstance" tree-events="ready:initCustomScopeTree;"></div>\n </div>\n </div>\n <div class="has-error">\n <span data-ng-show="showAlert" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_SELECT_FOLDER\' | translate}}.\n </span>\n </div>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" data-ng-click="ok()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/analytic/report/list/create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_REPORT\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="forms.report" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.report.name.$touched || forms.report.$submitted) && forms.report.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(forms.report.name.$touched || forms.report.$submitted) && forms.report.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.report.name.$touched || forms.report.$submitted) && forms.report.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_PATH\' | translate}}<span class="required" aria-required="true"></span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_PATH\' | translate}}" class="form-control" data-ng-model="path" disabled/>\n <span data-ng-show="(forms.report.name.$touched || forms.report.$submitted) && forms.report.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="ok()" ng-disabled="forms.report.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/analytic/report/list/deleteNode.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_DELETE_FOLDER\' | translate }}</h3>\n</div>\n<div class="modal-body">\n<p>\n {{\'MESSAGE_DELETE_NODE\' | translate}} : <b>{{node}}</b>?\n</p>\n<p>\n {{\'MESSAGE_ALL_REPORTS_WILL_BE_DELETED\' | translate}}\n</p>\n</div>\n<div class="modal-footer">\n <button class="btn btn-danger" type="button" ng-click="ok()" ng-disabled="forms.report.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/analytic/report/list/extract.modal.html",'<div class="modal-header">\n <button type="button" ng-click="cancel()" class="close">×</button>\n <h4 class="modal-title">{{ \'APPLICATION_EXTRACT_REPORT\' | translate }}</h4>\n</div>\n<div class="modal-body" style="text-align:center;">\n <form name="forms.report" class="form-inline mbottom20" novalidate>\n <div class="form-group" data-ng-class="{\'hidden\':daily}">\n <label class="control-label">{{\'APPLICATION_DATE_RANGE\' | translate}}</label>\n <input type="daterange" name="dates" ranges="ranges" style="min-width:190px;" enabletimepicker="timepicker" placeholder="{{\'APPLICATION_DATE_RANGE\' | translate}}" class="form-control" data-ng-model="dates" max-date="{{maxdate}}" data-ng-required="!daily" data-ng-disabled="daily" data-ng-class="{\'disabled-invisible\':daily}" style="cursor:pointer;" readonly/>\n </div>\n <div class="form-group" data-ng-if="daily">\n <label class="control-label">{{\'APPLICATION_FROM\' | translate}}</label>\n </div>\n <div class="form-group" data-ng-if="daily">\n <uib-timepicker ng-model="dailyTime.start" ng-change="changed()" hour-step="1" minute-step="1" show-meridian="false"></uib-timepicker>\n </div>\n <div class="form-group" data-ng-if="daily">\n <label class="control-label">{{\'APPLICATION_TO\' | translate}}</label>\n </div>\n <div class="form-group" data-ng-if="daily">\n <uib-timepicker ng-model="dailyTime.end" ng-change="changed()" hour-step="1" minute-step="1" show-meridian="false"></uib-timepicker>\n </div>\n <!-- START STATUS -->\n <div class="form-group">\n <input\n bs-switch\n class="form-control"\n ng-model="daily"\n type="checkbox"\n name="auth"\n switch-active="{{ dailySwitch.isActive }}"\n switch-on-text="{{ dailySwitch.onText }}"\n switch-off-text="{{ dailySwitch.offText }}"\n switch-on-color="{{ dailySwitch.onColor }}"\n switch-off-color="{{ dailySwitch.offColor }}"\n switch-animate="{{ dailySwitch.animate }}"\n switch-size="{{ dailySwitch.size }}"\n switch-label="{{ dailySwitch.label }}"\n switch-icon="{{ dailySwitch.icon }}"\n switch-radio-off="{{ dailySwitch.radioOff }}"\n switch-label-width="{{ dailySwitch.labelWidth }}"\n switch-handle-width="{{ dailySwitch.handleWidth }}">\n </div>\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn default green-jungle" type="button" data-ng-click="extract(\'csv\')"><i class="fa fa-file-excel-o"></i> {{ \'APPLICATION_SAVE_AS_CSV\' | translate }}</button>\n <button class="btn default red-intense" type="button" data-ng-click="extract(\'pdf\')"><i class="fa fa-file-pdf-o"></i> {{ \'APPLICATION_SAVE_AS_PDF\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/analytic/report/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getTrees()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-book-open"></i>\n <a href="/analytics/reports/list">{{ \'APPLICATION_REPORTS\' | translate }}</a>\n </li>\n </ul>\n </div>\n <div class="col-fixed">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp" style="padding-left:10px;">\n <i class="icon-folder font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_FOLDERS\' | translate }} </span>\n </div>\n <div class="inputs">\n <div class="portlet-input input-inline input-small">\n <div class="input-icon right">\n <i class="icon-magnifier"></i>\n <input type="text" data-ng-model="searchField" data-ng-change="searchTrees()" class="form-control input-circle" placeholder="search...">\n </div>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <div js-tree="defaultTreeConfig" ng-model="defaultTreeData" should-apply="ac()" tree="defaultTreeInstance" tree-events="ready:initDefaultScopeTree;select_node:selectDefaultNode;"></div>\n <div js-tree="customTreeConfig" ng-model="customTreeData" should-apply="ac()" tree="customTreeInstance" tree-events="ready:initCustomScopeTree;select_node:selectCustomNode;rename_node:updateCustomTree;delete_node:updateCustomTree;move_node:updateCustomTree;create_node:updateCustomTree;"></div>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n <div class="row tree-row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-book-open font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_REPORTS\' | translate }}<span data-ng-if="selectedNode"> - {{selectedNode}}</span></span>\n </div>\n <div data-ng-if="!defaultTreeActive" class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <span class="btn default btn-file">\n <span class="fileinput-new">\n <i class="icon-cloud-upload"></i> {{\'APPLICATION_IMPORT_FROM_JSON\' | translate}}</span>\n <input type="file" on-read-file="import($fileContent)"/>\n </span>\n </div>\n <div class="btn-group">\n <button class="btn green-jungle " ng-click="create()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_REPORT\' | translate }}\n </button>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <div ng-slide-down="gridOptions" lazy-render duration="1">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n </div>\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/analytic/report/list/preview.modal.html",'<div class="modal-header">\n <button type="button" ng-click="cancel()" class="close">×</button>\n <h4 class="modal-title">{{ \'APPLICATION_REPORT_PREVIEW\' | translate }}</h4>\n</div>\n<div class="modal-body" style="text-align:center;">\n <form name="forms.report" class="form-inline mbottom20" novalidate>\n <div class="form-group" data-ng-class="{\'hidden\':daily}">\n <label class="control-label">{{\'APPLICATION_DATE_RANGE\' | translate}}<span class="required" aria-required="true"></span></label>\n <input type="daterange" name="dates" ranges="ranges" style="min-width:190px;" enabletimepicker="timepicker" placeholder="{{\'APPLICATION_DATE_RANGE\' | translate}}" class="form-control" data-ng-model="dates" data-ng-change="getPage()" max-date="{{maxdate}}" data-ng-required="!daily" data-ng-disabled="daily" data-ng-class="{\'disabled-invisible\':daily}" style="cursor:pointer;" readonly/>\n </div>\n <div class="form-group" data-ng-if="daily">\n <label class="control-label">{{\'APPLICATION_FROM\' | translate}}</label>\n </div>\n <div class="form-group" data-ng-if="daily">\n <uib-timepicker ng-model="dailyTime.start" ng-change="changed()" hour-step="1" minute-step="1" show-meridian="false"></uib-timepicker>\n </div>\n <div class="form-group" data-ng-if="daily">\n <label class="control-label">{{\'APPLICATION_TO\' | translate}}</label>\n </div>\n <div class="form-group" data-ng-if="daily">\n <uib-timepicker ng-model="dailyTime.end" ng-change="changed()" hour-step="1" minute-step="1" show-meridian="false"></uib-timepicker>\n </div>\n <div class="form-group" data-ng-if="daily">\n <button class="btn btn-small btn-sm btn-success" data-ng-click="getPage()">Apply</button>\n </div>\n <div class="form-group">\n <input\n bs-switch\n class="form-control"\n ng-model="daily"\n type="checkbox"\n name="auth"\n data-ng-change="getPage()"\n switch-active="{{ dailySwitch.isActive }}"\n switch-on-text="{{ dailySwitch.onText }}"\n switch-off-text="{{ dailySwitch.offText }}"\n switch-on-color="{{ dailySwitch.onColor }}"\n switch-off-color="{{ dailySwitch.offColor }}"\n switch-animate="{{ dailySwitch.animate }}"\n switch-size="{{ dailySwitch.size }}"\n switch-label="{{ dailySwitch.label }}"\n switch-icon="{{ dailySwitch.icon }}"\n switch-radio-off="{{ dailySwitch.radioOff }}"\n switch-label-width="{{ dailySwitch.labelWidth }}"\n switch-handle-width="{{ dailySwitch.handleWidth }}">\n </div>\n </form>\n <div ng-slide-down="showResult" lazy-render duration="1">\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-exporter class="grid extract-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n </div>\n</div>\n<div class="modal-footer">\n<button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'),a.put("app/analytic/report/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getReport()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-book-open"></i>\n <a href="/analytics/reports/list">{{ \'APPLICATION_REPORTS\' | translate }}</a>\n <i data-ng-show="report" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="report">\n <a href="#">{{report.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/analytic/report/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <div class="caption-subject font-blue-madison bold uppercase dot">{{ \'APPLICATION_REPORT\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} - {{report.name}} </div>\n </div>\n <ul class="nav nav-tabs">\n <li>\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n <li class="active">\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{ \'APPLICATION_BUILD\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_3" data-toggle="tab" data-ng-click="showResult = true">{{ \'APPLICATION_TEST_PREVIEW\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n\n <div class="tab-content">\n\n <!-- GENERAL TAB -->\n <div class="tab-pane" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.report.$valid && forms.general.$valid && updateReport()" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="report.name" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="report.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}" />\n </form>\n </div>\n <!-- END GENERAL TAB -->\n\n <!-- BUILD TAB -->\n <div class="tab-pane active" id="tab_1_2">\n <form name="forms.report" data-ng-submit="forms.report.$valid && forms.general.$valid && updateReport()" novalidate>\n <!-- START TABLE INPUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.report.table.$touched || forms.report.$submitted) && forms.report.table.$invalid}">\n <label class="control-label">{{\'APPLICATION_TABLE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="report.table" name="table" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{\'APPLICATION_\'+$select.selected.value.toUpperCase() | translate}}</ui-select-match>\n <ui-select-choices group-by="\'channel\'" repeat="table.value as table in tables | filter: $select.search">\n <div ng-bind-html="\'APPLICATION_\'+table.value.toUpperCase() | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.report.table.$touched || forms.report.$submitted) && forms.report.table.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TABLE INPUT-->\n <div data-ng-if="report.table" class="mbottom20 pbottom20 table-responsive">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_FIELDS\' | translate}} </span>\n </div>\n </div>\n <!-- START TABLE -->\n <table class="table table-striped table-bordered table-hover">\n <thead>\n <tr>\n <th>{{ \'APPLICATION_FIELD\' | translate }} / {{ \'APPLICATION_METRIC\' | translate }}</th>\n <th style="min-width:167px;">{{ \'APPLICATION_ALIAS\' | translate }}</th>\n <th>{{ \'APPLICATION_FUNCTION\' | translate }}</th>\n <th>{{ \'APPLICATION_FORMAT\' | translate }}</th>\n <th>{{ \'APPLICATION_GROUP_BY\' | translate }}</th>\n <th>{{ \'APPLICATION_ORDER_BY\' | translate }}</th>\n <th></th>\n <th style="min-width:66px;"></th>\n </tr>\n </thead>\n <tbody ui-sortable="sortableOptions" data-ng-model="report.Fields">\n <tr data-ng-repeat="field in report.Fields">\n <td>\n <!-- START FIELD -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.report.$submitted && !field.field}">\n <!-- <label class="control-label">{{\'APPLICATION_FIELD\' | translate}}<span class="required" aria-required="true">*</span></label> -->\n <div class="input-group">\n <ui-select data-ng-if="!field.custom" data-ng-model="field.field" dynamic-name="randomName()" theme="bootstrap" on-select="setMetricId($item,$index)" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}"><span ng-bind-html="$select.selected.name"></span></ui-select-match>\n <ui-select-choices repeat="tableField.value as tableField in tableFields | filter: $select.search">\n <div ng-bind-html="tableField.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <input data-ng-if="field.custom" type="text" dynamic-name="randomName()" placeholder="{{\'APPLICATION_CUSTOM\' | translate}}" class="form-control" data-ng-model="field.field" required/>\n <span class="input-group-btn">\n <button type="button" data-ng-click="toggleCustom(field)" class="btn btn-default">\n <span class="icon-pencil" data-ng-class="{\'font-blue\':field.custom}"></span>\n </button>\n </span>\n </div>\n <span data-ng-show="forms.report.$submitted && !field.field" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END FIELD-->\n </td>\n <td>\n <!-- START ALIAS -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.report.$submitted && !field.alias}">\n <!-- <label class="control-label">{{\'APPLICATION_ALIAS\' | translate}}<span class="required" aria-required="true">*</span></label> -->\n <input type="text" dynamic-name="randomName()" placeholder="{{\'APPLICATION_ALIAS\' | translate}}" class="form-control" data-ng-model="field.alias" data-ng-pattern="\'[A-Za-z0-9 <>=,%_\\\\+*!\\\\-\\\\[\\\\]]+\'" required/>\n <span data-ng-show="forms.report.$submitted && !field.alias" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="forms.report.$submitted && !field.alias" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END ALIAS -->\n </td>\n <td>\n <!-- START FUNCTION -->\n <div class="form-group">\n <!-- <label class="control-label">{{\'APPLICATION_FIELD\' | translate}}<span class="required" aria-required="true">*</span></label> -->\n <ui-select data-ng-model="field.function" name="function" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_FUNCTION\' | translate}}" allow-clear>{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="function.value as function in functions | filter: $select.search">\n <div ng-bind-html="function.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END FUNCTION-->\n </td>\n <td>\n <!-- START FORMAT -->\n <div class="form-group">\n <!-- <label class="control-label">{{\'APPLICATION_FIELD\' | translate}}<span class="required" aria-required="true">*</span></label> -->\n <ui-select data-ng-model="field.format" name="format" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_FORMAT\' | translate}}" allow-clear>{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="format.value as format in formatFunctions | filter: $select.search">\n <div ng-bind-html="format.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END FORMAT-->\n </td>\n <td>\n <!-- START GROUP_BY -->\n <div class="form-group">\n <!-- <label class="control-label">{{\'APPLICATION_FIELD\' | translate}}<span class="required" aria-required="true">*</span></label> -->\n <ui-select data-ng-model="field.groupBy" name="groupBy" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_GROUP_BY\' | translate}}">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="groupBy.value as groupBy in groupByField | filter: $select.search">\n {{$translate.instant(groupBy.name)}}\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END GROUP_BY-->\n </td>\n <td>\n <!-- START ORDER_BY -->\n <div class="form-group">\n <!-- <label class="control-label">{{\'APPLICATION_FIELD\' | translate}}<span class="required" aria-required="true">*</span></label> -->\n <ui-select data-ng-model="field.orderBy" name="orderBy" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_ORDER_BY\' | translate}}" allow-clear>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="orderBy in [\'ASC\',\'DESC\'] | filter: $select.search">\n <div ng-bind-html="orderBy | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END TABLE INPUT-->\n </td>\n <td class="report-field-remove">\n <button class="btn red" type="button" data-ng-click="removeField($index)"><i class="fa fa-times"></i></button>\n </td>\n <td class="report-field-handle">\n <!-- <img data-ng-src="assets/images/move.png" class="img-responsive"> -->\n </td>\n </tr>\n <tr data-ng-hide="report.Fields.length" class="unsortable">\n <td colspan="8" style="text-align:center;">\n <i>{{ \'MESSAGE_ADD_A_FIELD\' | translate }}</i>\n </td>\n </tr>\n </tbody>\n </table>\n <button type="button" class="btn btn-sm green padding-bottom" ng-click="addField()">\n <i class="fa fa-plus"></i> {{\'APPLICATION_ADD_FIELD\' | translate}}\n </button>\n <!-- END TABLE -->\n </div>\n <div data-ng-if="report.Fields.length" class="mbottom20 pbottom20">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_CONDITIONS\' | translate}} </span>\n </div>\n </div>\n <div class="alert alert-info">\n <strong>Output</strong>\n <br>\n <span ng-bind-html="output"></span>\n </div>\n\n <report-builder group="report.conditions.group" fields="tableFields" forms="forms" firstCall=\'true\'></report-builder>\n </div>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}" />\n </form>\n </div>\n <!-- END BUILD TAB -->\n\n <!-- PREVIEW TAB -->\n <div class="tab-pane" id="tab_1_3">\n <div ng-slide-down="showResult" lazy-render duration="0.5">\n <div ui-grid="gridOptions" data-ng-if="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-move-columns class="grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n </div>\n </div>\n <!-- END PREVIEW TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'), -a.put("app/channels/chat/offline/list/list.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-bubble"></i>\n <a href="#">{{ \'APPLICATION_CHAT\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-login"></i>\n <a href="/channels/chat/offline/list">{{ \'APPLICATION_OFFLINE\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-question font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_OFFLINE_MESSAGES\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/chat/offline/message/message.directive.html",'<div class="message">\n <div class="row">\n <div class="col-md-12">\n <span class="bold">From: </span>\n [<a href="" data-ng-click="openContact(message.email)">{{message.email}}</a>]\n </div>\n </div>\n <br>\n <span class="todo-tasklist-date">\n <i class="icon-calendar"></i> {{message.createdAt | date:\'medium\'}} (<span am-time-ago="message.createdAt"></span>)\n </span>\n <hr>\n <div class="body text-left message-body" data-ng-bind="message.text"></div>\n <h5 data-ng-hide="message.text" class="media-heading"><i>{{\'MESSAGE_NO_AVAILABLE_TEXT\' | translate | lowercase}}</i></h5>\n</div>\n'),a.put("app/channels/chat/offline/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initView();">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-bubble"></i>\n <a href="#">{{ \'APPLICATION_CHAT\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-login"></i>\n <a href="/channels/chat/offline/list">Offline</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-user"></i>\n <a href="#">{{enquiry.username}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE CONTENT -->\n <div class="portlet light">\n <div class="portlet-title">\n <div class="caption">\n <span data-ng-if="enquiry.ChatWebsite" class="caption-subject font-green-sharp bold uppercase">{{enquiry.ChatWebsite.name}}</span>\n </div>\n </div>\n <div class="portlet-body">\n <div class="row">\n <div class="col-md-4">\n <!-- Visitor Information -->\n <div class="portlet">\n <div class="portlet-body">\n <v-accordion class="vAccordion--default">\n <v-pane expanded="true">\n <v-pane-header>\n <ng-letter-avatar data-ng-if="enquiry.ChatVisitor" height="40" width="40" data="{{enquiry.ChatVisitor.fullname}}" fontsize="25" avatarcustombgcolor="#B0B0B0" charCount="2" avatarcustomborder="border:2px solid #EA4C61" shape="round"></ng-letter-avatar>\n </v-pane-header>\n <v-pane-content>\n {{\'APPLICATION_NAME\' | translate}}:<p>{{enquiry.ChatVisitor.fullname}}</p>\n {{\'APPLICATION_EMAIL\' | translate}}:<p><a data-ng-click="openContact(enquiry.ChatVisitor.email)" href="">{{enquiry.ChatVisitor.email}}</a></p>\n <span data-ng-if="enquiry.ChatVisitor.labelOfflineData1">{{enquiry.ChatVisitor.labelOfflineData1}}: <p>{{enquiry.ChatVisitor.offlineData1}}</p></span>\n <span data-ng-if="enquiry.ChatVisitor.labelOfflineData2">{{enquiry.ChatVisitor.labelOfflineData2}}: <p>{{enquiry.ChatVisitor.offlineData2}}</p></span>\n <span data-ng-if="enquiry.ChatVisitor.labelOfflineData3">{{enquiry.ChatVisitor.labelOfflineData3}}: <p>{{enquiry.ChatVisitor.offlineData3}}</p></span>\n {{\'APPLICATION_REMOTE_ADDRESS\' | translate}}:<p>{{enquiry.ChatVisitor.remote_address}}</p>\n {{\'APPLICATION_BROWSER\' | translate}}:<p>{{enquiry.ChatVisitor.browser}}</p>\n {{\'APPLICATION_REFERER\' | translate}}:<p>{{enquiry.ChatVisitor.referer}} - {{enquiry.ChatWebsite.name}}</p>\n {{\'APPLICATION_OS\' | translate}}:<p>{{enquiry.ChatVisitor.os}}</p>\n </v-pane-content>\n </v-pane>\n </v-accordion>\n </div>\n </div>\n </div>\n <div class="col-md-8">\n <!-- Offline message -->\n <div id="mail-box">\n <ul class="chats">\n <li class="in">\n <enquiry-message message="enquiry" list-id="enquiry.ChatWebsite.ListId"></enquiry-message>\n </li>\n </ul>\n </div>\n </div>\n </div>\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/chat/online/list/list.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-bubble"></i>\n <a href="#">{{ \'APPLICATION_CHAT\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-login"></i>\n <a href="/channels/chat/online/list">{{ \'APPLICATION_ONLINE\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-question font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_VISITORS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/chat/online/view/view.detail.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_DETAIL\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body row" data-ng-init="initView()">\n <div class="col-md-6">\n <div class="news-blocks">\n <h3>\n <a href="#" class="inactive-link">{{\'APPLICATION_MESSAGES\' | translate}}</a>\n <!-- <a href="#" data-ng-click="export()" data-ng-show="chatRoom.ChatMessages.length" class="btn btn-sm blue pull-right"><i class="icon-cloud-download"></i> {{\'APPLICATION_EXPORT\' | translate}} CSV </a> -->\n <a href="api/chat/rooms/{{chatRoom.id}}/export" target="_blank" data-ng-show="chatRoom.ChatMessages.length" class="btn btn-sm blue pull-right"><i class="icon-cloud-download"></i> {{\'APPLICATION_EXPORT\' | translate}} CSV </a>\n <hr>\n </h3>\n <div class="news-block-tags">\n <em am-time-ago="chatRoom.ChatVisitor.ChatEnquiry.createdAt"></em>\n </div>\n <p>\n <div ng-scrollbars ng-scrollbars-config="config">\n <ul class="chats">\n <li data-ng-class="{\'out\': message.User, \'in\':message.ChatVisitor}" data-ng-repeat="message in chatRoom.ChatMessages | orderBy:\'createdAt\'">\n <img class="avatar" data-ng-src="api/users/avatar/{{message.User.userpic || \'unknown_avatar\'}}">\n <div class="message">\n <span class="arrow">\n </span>\n <a href="#" class="name">\n {{message.User ? message.User.fullname : message.ChatVisitor.fullname}}\n </a>\n <span class="datetime">\n at {{message.createdAt | date: \'medium\'}}\n </span>\n <span class="body">\n {{message.body}}\n </span>\n </div>\n </li>\n </ul>\n </div>\n </div>\n </div>\n <div class="col-md-6">\n <div class="news-blocks">\n <h3>\n <a href="#" class="inactive-link">{{\'APPLICATION_VISITOR\' | translate}}</a>\n <hr>\n </h3>\n <div class="margin-top-20 profile-desc-link">\n <i class="icon-user"></i>\n <a href="#" class="inactive-link">{{chatRoom.ChatVisitor.fullname}}</a>\n </div>\n <div class="margin-top-20 profile-desc-link">\n <i class="icon-envelope"></i>\n <a href="#" class="inactive-link">{{chatRoom.ChatVisitor.email}}</a>\n </div>\n <div class="margin-top-20 profile-desc-link">\n <i class="icon-globe"></i>\n <a href="#" class="inactive-link">{{chatRoom.ChatVisitor.remote_address}}</a>\n </div>\n <div class="margin-top-20 profile-desc-link">\n <i class="icon-home"></i>\n <a href="#" class="inactive-link">{{chatRoom.ChatVisitor.referer}} - {{chatRoom.ChatVisitor.ChatWebsite.name}}</a>\n </div>\n <div class="margin-top-20 profile-desc-link">\n <i class="icon-cursor"></i>\n <a href="#" class="inactive-link">{{chatRoom.ChatVisitor.browser}}</a>\n </div>\n <div class="margin-top-20 profile-desc-link">\n <i class="icon-screen-desktop"></i>\n <a href="#" class="inactive-link">{{chatRoom.ChatVisitor.os}}</a>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n'),a.put("app/channels/chat/online/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-bubble"></i>\n <a href="#">{{ \'APPLICATION_CHAT\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-login"></i>\n <a href="/channels/chat/online/list">Online</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/enquiry.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- START USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{chatRoom.ChatVisitor.email}}\n </div>\n <div class="profile-usertitle-job">\n {{chatRoom.ChatVisitor.fullname}}\n </div>\n </div>\n <!-- END USER TITLE -->\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.channels.chat.online.view.detail\')}">\n <a data-ng-href="/channels/chat/online/view/{{chatRoom.id}}/detail">\n <i class="icon-tag"></i>\n {{ \'APPLICATION_DETAIL\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/chat/preview/preview.html",'<style>\n.xc_header_logo\n{\n display:block;\n background-image:url({{chatWebsite.remote}}/api/xchatty/assets?resource=images/motion_logo.png);\n width:40px;\n height:40px;\n float:left;;\n margin-left: 10px !important;\n margin-top: 6px !important;\n}\n.xc_rating {\n text-align: center;\n}\n.xc_rating_label > input{ /* HIDE RADIO */\n display:none;\n}\n.xc_rating_label > input + img{ /* IMAGE STYLES */\n cursor:pointer;\n border:2px solid transparent;\n}\n.xc_rating_label > input:checked + img{ /* (CHECKED) IMAGE STYLES */\n /*border:2px solid #f00;*/\n background-color: #efefef;\n}\n\n.xc_label {\n display: inline-block;\n max-width: 100%;\n margin-bottom: 5px;\n font-weight: bold;\n}\n\n.xc_online_message,\n.xc_offline_message,\n.xc_rating_message\n{\n text-align: center;\n}\n\n.xc_div_group {\n margin: 10px 0 10px 0;\n}\n.xc_footer\n{\n text-align: center;\n padding-bottom: 5px;\n}\n\n.xc_powered\n{\n color: grey;\n font: 10px/16px "Lucida Grande","Lucida Sans Unicode",Arial,Verdana,sans-serif;\n padding-bottom: 5px;\n}\n\n.xc_chat_container\n{\n //width:379px;\n //position:fixed;\n //bottom:0;\n //right:50px;\n z-index:9999;\n background-color:transparent;\n}\n\n.xc_chat_container *\n{\n font-family:Arial,Helvetica,sans-serif;\n font-size:13px;\n margin:0;\n padding:0;\n}\n\n.xc_chat_container p\n{\n margin:5px 0;\n}\n\n.xc_signup_wrapper\n{\n max-height:375px;\n}\n\n.xc_conversation_container\n{\n max-height:375px;\n list-style:none;\n overflow:auto;\n margin:0;\n padding:20px 10px;\n}\n\n.xc_conversation_container a\n{\n color:#036;\n}\n\n.xc_conversation_container a.xc_btn_style\n{\n color:#fff;\n}\n\ndiv.xc_chat_head\n{\n color:#fff;\n background:{{chatWebsite.color}};\n //border-radius: 20px 20px 0px 0px !important;\n height:52px;\n line-height:55px;\n cursor:pointer;\n}\n\ndiv.xc_chat_head.rounded\n{\n border-radius: 20px 20px 0px 0px !important;\n}\n\ndiv.xc_chat_head.squared\n{\n //border-radius: 20px 20px 0px 0px !important;\n}\n\n.xc_chat_head-title\n{\n margin:5px 0 0 15px;\n color: #fff;\n}\n\n.xc_header_icon\n{\n display:block;\n background-image:url({{chatWebsite.remote}}/api/xchatty/assets?resource=images/iconVisitorchat.png);\n width:21px;\n height:16px;\n float:right;\n margin:20px 20px 0 0;\n}\n\n.xc_header_icon span.xc_notification_badge span\n{\n display:block;\n height:16px;\n width:15px;\n text-align:center;\n font-size:9px;\n color:#555;\n position:relative;\n top:-20px;\n left:4px;\n margin:0;\n padding:0;\n}\n\n.xc_sub-head-spacer\n{\n padding:1px;\n}\n\n.xc_conversation\n{\n display:none;\n margin:0 12px 0 11px;\n}\n\n.xc_chat_toggle_container\n{\n /*background:mediumslateblue center 52px;*/\n background: white;\n border-style: solid;\n border-width: 1px;\n border-color: {{chatWebsite.color}};\n //display:none;\n}\n\n.xc_signup_wrapper,.xc_notifications_wrapper,.xc_enquiry_wrapper,.xc_rating_wrapper\n{\n //display:none;\n display:block;\n overflow:auto;\n line-height:1;\n padding:25px;\n}\n\n.xc_exit_chat_container\n{\n text-align:right;\n width:95%;\n margin:0 auto;\n padding:5px 1px 0 0;\n}\n\n.xc_exit_chat_container span,.xc_exit_chat_container a\n{\n font-size:80%;\n color:#666;\n text-decoration:none;\n}\n\n.xc_exit_chat_container a:hover\n{\n color:#333;\n}\n\na.xc_btn_exit_chat_confirm:hover\n{\n color:red;\n}\n\na.xc_btn_exit_chat_cancel:hover\n{\n color:#0c0;\n}\n\nform.xc_form_reply\n{\n position:relative;\n}\n\n.xc_form_reply\n{\n /*background-color:#e3e3e3;*/\n text-align:center;\n /*border-top:1px solid #d3d3d3;*/\n}\n\n.xc_input_message\n{\n height:100px;\n margin:10px auto 5px;\n}\n\n.xc_input_enquiry_message,\n.xc_input_rating_message\n{\n height:100px;\n}\n\n.xc_form_signup,.xc_form_enquiry,.xc_form_rating\n{\n /*text-align:center;*/\n}\n\n.xc_chat_container textarea,.xc_chat_container input[type=text]\n{\n width:95%;\n min-width:95%;\n max-width:95%;\n -webkit-box-sizing:border-box;\n -moz-box-sizing:border-box;\n box-sizing:border-box;\n background-color:#fff;\n border:1px solid #ccc;\n -webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);\n -moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);\n box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);\n -webkit-transition:border linear .2s, box-shadow linear .2s;\n -moz-transition:border linear .2s, box-shadow linear .2s;\n -o-transition:border linear .2s, box-shadow linear .2s;\n transition:border linear .2s, box-shadow linear .2s;\n display:inline-block;\n font-size:14px;\n line-height:20px;\n color:#555;\n -webkit-border-radius:4px;\n -moz-border-radius:4px;\n border-radius:4px;\n vertical-align:middle;\n margin:3px 0;\n padding:4px 6px;\n resize: none;\n}\n\n.xc_chat_container textarea:focus,.xc_chat_container input[type=text]:focus\n{\n outline: {{chatWebsite.color_focus}} auto 5px;\n}\n\n.xc_chat_container input[type=text]\n{\n height: 30px;\n}\n\n.xc_message_sending textarea, .xc_enquiry_sending textarea\n{\n background: #fff url({{chatWebsite.remote}}/api/xchatty/assets?resource=images/loading.gif) 98% 5px no-repeat;\n}\n\n.xc_chatrow\n{\n display:block;\n border-top:1px dashed #e3e3e3;\n margin:5px 0;\n clear: both;\n}\n\n.xc_chatrow p\n{\n color:#444;\n word-wrap:break-word;\n}\n\n.xc_time\n{\n float:right;\n font-size:80%;\n color:#ccc;\n padding-left:12px;\n margin:3px;\n}\n\n.xc_submission_pending\n{\n background:transparent url({{chatWebsite.remote}}/api/xchatty/assets?resource=images/bullet_clock.png) left center norepeat;\n}\n\n.xc_submission_confirmed\n{\n background:transparent url({{chatWebsite.remote}}/api/xchatty/assets?resource=images/bullet_tick.png) left center norepeat;\n}\n\n.xc_fullname\n{\n font-weight:700;\n}\n\n.xc_fullname:after\n{\n content:":";\n}\n\n.xc_avatar\n{\n float: left;\n margin: 0 5px 5px 0;\n display: inline-block;\n width: 40px;\n height: 40px;\n border-radius: 5px;\n -moz-border-radius: 5px;\n -webkit-border-radius: 5px;\n}\n\n.xc_smilie\n{\n background-repeat:no-repeat;\n display:inline-block;\n width:18px;\n height:18px;\n text-indent:-9999px;\n white-space:nowrap;\n}\n\n.xc_btn_load_more\n{\n width:100%!important;\n}\n\n.xc_notifications_wrapper\n{\n text-shadow:0 1px 0 rgba(255,255,255,0.5);\n}\n\n.xc_notification_success\n{\n color:#468847;\n}\n\n.xc_notification_error\n{\n color:#b94a48;\n}\n\n.xc_errorlist\n{\n margin:0 0 0 25px;\n padding:0;\n}\n\ni.xc_btn_notifications_close\n{\n float:right;\n font-weight:700;\n font-size:20px;\n color:#ccc;\n cursor:pointer;\n margin:-15px 0 0;\n padding:0;\n}\n\n.xc_btn_style\n{\n width:95%;\n text-align:center;\n line-height:1.2;\n font-size:90%;\n -moz-box-shadow:inset 0 1px 0 0 {{chatWebsite.color_button}};\n -webkit-box-shadow:inset 0 1px 0 0 {{chatWebsite.color_button}};\n box-shadow:inset 0 1px 0 0 {{chatWebsite.color_button}};\n background:0;\n background-color:{{chatWebsite.color_button}};\n -moz-border-radius:4px;\n -webkit-border-radius:4px;\n border-radius:4px;\n border:1px solid {{chatWebsite.color_button}};\n display:inline-block;\n color:#fff;\n font-weight:700;\n text-decoration:none;\n text-shadow:1px 1px 0 #000c17;\n margin:0 auto 5px;\n padding:2px 0;\n}\n\n.xc_btn_style:hover\n{\n background:0;\n background-color:{{chatWebsite.color_button}};\n color: #fff;\n text-decoration: none;\n}\n\n.xc_btn_style:active\n{\n position:relative;\n top:1px;\n}\n\n.xc_composing_container\n{\n display: none;\n width: 95%;\n margin: 0 auto;\n background: transparent url({{chatWebsite.remote}}/api/xchatty/assets?resource=images/bullet_pencil.png) 6px center no-repeat;\n padding-left: 19px;\n font-style: italic;\n}\n\n@media only screen and (max-height: 620px) {\n .xc_conversation_container\n {\n max-height:300px!important;\n }\n}\n\n@media only screen and (max-height: 545px) {\n .xc_conversation_container\n {\n max-height:200px!important;\n }\n}\n\n@media only screen and (max-height: 445px) {\n .xc_conversation_container\n {\n max-height:150px!important;\n }\n}\n\n@media only screen and (max-width: 480px) {\n .xc_chat_container\n {\n width:95%!important;\n right:auto!important;\n -webkit-border-top-left-radius:15px;\n -webkit-border-top-right-radius:15px;\n -moz-border-radius-topleft:15px;\n -moz-border-radius-topright:15px;\n border-top-left-radius:15px;\n border-top-right-radius:15px;\n box-shadow:0 0 5px rgba(0,0,0,.5);\n -webkit-box-shadow:0 0 5px rgba(0,0,0,.5);\n -moz-box-shadow:0 0 5px rgba(0,0,0,.5);\n }\n\n div.xc_chat_head\n {\n background-color:#036;\n background-image:none;\n line-height:25px;\n height:auto;\n -webkit-border-top-left-radius:15px;\n -webkit-border-top-right-radius:15px;\n -moz-border-radius-topleft:15px;\n -moz-border-radius-topright:15px;\n border-top-left-radius:15px;\n border-top-right-radius:15px;\n padding:10px;\n }\n\n .xc_chat_toggle_container\n {\n background-color:#fff;\n background-image:none;\n border-color:#036;\n border-style:solid;\n border-width:0 1px;\n }\n\n .xc_header_icon\n {\n background-image:url({{chatWebsite.remote}}/api/xchatty/assets?resource=images/icon_visitorchat.png);\n margin:0;\n }\n\n .xc_header_icon span.xc_notification_badge span\n {\n top:-5px;\n left:5px;\n }\n\n .xc_notification_success\n {\n background-color:#dff0d8;\n border:1px solid #d6e9c6;\n }\n\n .xc_conversation_container\n {\n max-height:375px;\n border-color:#036;\n }\n\n .xc_notification_error\n {\n background-color:#f2dede;\n border:1px solid #eed3d7;\n }\n\n .xc_sub-head-spacer\n {\n display:none;\n padding:0;\n }\n\n .xc_chat_head-title,.xc_conversation\n {\n margin:0;\n }\n}\n</style>\n<div class="xc_chat_container">\n <div class="xc_chat_head {{chatWebsite.header_shape}}">\n <i class="xc_header_icon">\n <span class="xc_notification_badge">\n <span class="xc_notification_badge_number"></span>\n </span>\n </i>\n <i class="xc_header_logo" style="background-image:url(/api/xchatty/assets?resource=images/{{(chatWebsite.defaultLogo || !license.custom) ? \'motionLogo.png\' : (!chatWebsite.defaultLogo && chatWebsite.logo && license.custom) ? chatWebsite.logo+\'&uploaded\' : \'motionLogo.png\'}});background-size:contain;"></i>\n </a>\n <span class="xc_chat_head-title">{{statePreview.state == \'online\' ? chatWebsite.header_online : chatWebsite.header_offline}}</span>\n </div>\n <div class="xc_chat_toggle_container">\n <div class="xc_sub-head-spacer"></div>\n <!-- <div class="xc_notifications_wrapper">\n <ul class="xc_errorlist"></ul>\n </div> -->\n <div class="xc_enquiry_wrapper" data-ng-show=\'statePreview.state == "offline"\'>\n <form class="xc_form_enquiry" accept-charset="UTF-8">\n <p class="xc_offline_message" ng-bind-html=\'chatWebsite.offline_message\'></p>\n <br>\n <div ng-if="chatWebsite.enquiry_enable">\n <div class="xc_div_group">\n <label for="enquiryFullname" class="xc_label">{{chatWebsite.name_title}} *</label>\n <input id="enquiryFullname" maxlength="45" data-label="Name" type="text" name="data[Enquiry][fullname]" placeholder="{{chatWebsite.username_placeholder}}" class="xc_input_enquiry_fullname" required/>\n </div>\n <br>\n <div class="xc_div_group">\n <label for="enquiryEmail" class="xc_label">{{chatWebsite.email_title}} *</label>\n <input id="enquiryEmail" maxlength="85" type="text" data-label="Email Address" name="data[Enquiry][email]" placeholder="{{chatWebsite.email_placeholder}}" class="xc_input_enquiry_email" required/>\n </div>\n <br>\n <div class="xc_div_group">\n <label for="enquiryMessage" class="xc_label">{{chatWebsite.message_title}} *</label>\n <textarea id="enquiryMessage" data-label="Message" maxlength="1500" placeholder="{{chatWebsite.enquiry_message_placeholder}}" name="data[Enquiry][message]" class="xc_input_enquiry_message" required></textarea>\n </div>\n <br>\n <button type="submit" class="xc_btn_enquiry xc_btn_style">{{chatWebsite.enquiry_button}}</button>\n </div>\n </form>\n </div>\n <div class="xc_signup_wrapper" data-ng-show=\'statePreview.state == "online"\'>\n <form class="xc_form_signup" accept-charset="UTF-8">\n <p class="xc_online_message" ng-bind-html=\'chatWebsite.online_message\'></p>\n <br>\n <div class="xc_div_group">\n <label for="dataFullname" class="xc_label">{{chatWebsite.name_title}} *</label>\n <input maxlength="45" id="dataFullname" data-label="Fullname" type="text" name="data[Discussion][fullname]" placeholder="{{chatWebsite.username_placeholder}}" class="xc_input_fullname" required/>\n </div>\n <br>\n <div class="xc_div_group">\n <label for="dataEmail" class="xc_label">{{chatWebsite.email_title}} *</label>\n <input maxlength="85" id="dataEmail" data-label="Email Address" type="text" name="data[Discussion][email]" placeholder="{{chatWebsite.email_placeholder}}" class="xc_input_email" required/>\n </div>\n <br>\n <input type="hidden" class="xc_input_visitor_time" name="data[Discussion][visitor_time]" />\n <button type="submit" class="xc_btn_signup xc_btn_style">{{chatWebsite.start_chat_button}}</button>\n </form>\n </div>\n <div class="xc_rating_wrapper" data-ng-show=\'statePreview.state == "rating"\'>\n <form class="xc_form_rating" accept-charset="UTF-8">\n <p class="xc_rating_message">{{chatWebsite.rating_message}}</p>\n <br>\n <div class="xc_rating" ng-if="chatWebsite.rating_enable">\n <label class="xc_rating_label" style="padding:30px;">\n <input type="radio" name="data[Rating][rating]" value="good" />\n <img src="{{chatWebsite.remote}}/api/xchatty/assets?resource=images/like.png" alt="Good" height="50"/>\n </label>\n <label class="xc_rating_label" style="padding:30px;">\n <input type="radio" name="data[Rating][rating]" value="bad"/>\n <img src="{{chatWebsite.remote}}/api/xchatty/assets?resource=images/dislike.png" alt="Good" height="50"/>\n </label>\n </div>\n <div class="xc_div_group" ng-if="chatWebsite.rating_enable">\n <label for="ratingMessage" class="xc_label">Message</label>\n <textarea id="ratingMessage" data-label="Message" maxlength="1500" name="data[Rating][message]" class="xc_input_rating_message"></textarea>\n </div>\n <button type="submit" class="xc_button_rating xc_btn_style" ng-if="chatWebsite.rating_enable">{{chatWebsite.rating_send}}</button>\n <button type="button" class="xc_button_skip_rating xc_btn_style">{{chatWebsite.rating_skip}}</button>\n </form>\n </div>\n <div class="xc_footer">\n <div data-ng-if="chatWebsite.defaultWhiteLabel || !license.custom" class="xc_powered"><a>Powered by xCALLY</a></div>\n <div data-ng-if="!chatWebsite.defaultWhiteLabel && license.custom" data-ng-bind-html="chatWebsite.whiteLabel"></div>\n </div>\n</div>\n</div>\n'),a.put("app/channels/chat/queue/list/list.create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_QUEUE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" data-ng-pattern="settings.patternName" required />\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$invalid && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$invalid && form.name.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START STRATEGY -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.strategy.$touched || form.$submitted) && form.strategy.$invalid}">\n <label class="control-label">{{\'APPLICATION_STRATEGY\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.strategy" name="strategy" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | uppercase}}</ui-select-match>\n <ui-select-choices repeat="strategy in strategies | filter: $select.search">\n <div ng-bind-html="strategy.toUpperCase() | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form.strategy.$touched || form.$submitted) && form.strategy.$invalid && form.strategy.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END STRATEGY -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.timeout.$touched || form.$submitted) && form.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_AGENT_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="Timeout" class="form-control" data-ng-model="item.timeout" required min="1"/>\n <span data-ng-show="(form.timeout.$touched || form.$submitted) && form.timeout.$invalid && form.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START AGENTS-->\n <div class="form-body" data-ng-init="getTeams()">\n <label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n <div class="input-group input-small mbottom20">\n <input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="item.penalty" readonly>\n <div class="spinner-buttons input-group-btn btn-group-vertical">\n <button type="button" class="btn spinner-up btn-xs blue" data-ng-click="item.penalty=item.penalty+1">\n <i class="fa fa-angle-up"></i>\n </button>\n <button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!item.penalty" data-ng-click="item.penalty=item.penalty-1">\n <i class="fa fa-angle-down"></i>\n </button>\n </div>\n </div>\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-team">\n </div>\n </div>\n </div>\n <!-- END AGENTS-->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'), -a.put("app/channels/chat/queue/list/list.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-bubble"></i>\n <a href="#">{{ \'APPLICATION_CHAT\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="#">{{ \'APPLICATION_QUEUES\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_QUEUES\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <a class="btn green-jungle" href="#" data-ng-click="createItem()" data-ng-if="Auth.isAdmin()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_QUEUE\' | translate }}\n </a>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/chat/queue/view/view.agents.html",'<div class="row" data-ng-init="getTeams()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_AGENTS\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body">\n <!-- BEGIN FORM-->\n <form action="index.html" class="form-horizontal form-row-seperated">\n <div class="form-body">\n <label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n <div class="input-group input-small mbottom20">\n <input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="queue.penalty" readonly>\n <div class="spinner-buttons input-group-btn btn-group-vertical">\n <button type="button" class="btn spinner-up btn-xs blue" data-ng-click="queue.penalty=queue.penalty+1">\n <i class="fa fa-angle-up"></i>\n </button>\n <button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!queue.penalty" data-ng-click="queue.penalty=queue.penalty-1">\n <i class="fa fa-angle-down"></i>\n </button>\n </div>\n </div>\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-team">\n </div>\n </div>\n </div>\n </form>\n <!-- END FORM-->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/chat/queue/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getQueue()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-bubble"></i>\n <a href="#">{{ \'APPLICATION_CHAT\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="/channels/chat/queues/list">{{ \'APPLICATION_QUEUES\' | translate }}</a>\n <i data-ng-show="queue" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="queue">\n <a href="#">{{queue.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/queue.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{queue.name}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.channels.chat.queues.view.settings\')}">\n <a data-ng-href="/channels/chat/queues/view/{{queue.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.channels.chat.queues.view.agents\')}" data-ng-show="Auth.getCurrentUser().role === \'admin\'">\n <a data-ng-href="/channels/chat/queues/view/{{queue.id}}/agents">\n <i class="icon-people"></i>\n {{ \'APPLICATION_AGENTS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/chat/queue/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateChatQueue()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="queue.name" data-ng-pattern="settings.patternName" required />\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid && forms.general.name.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START STRATEGY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.strategy.$touched || forms.general.$submitted) && forms.general.strategy.$invalid}">\n <label class="control-label">{{\'APPLICATION_STRATEGY\' | translate}}</label>\n <ui-select data-ng-model="queue.strategy" name="strategy" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | uppercase}}</ui-select-match>\n <ui-select-choices repeat="strategy in strategies | filter: $select.search">\n <div ng-bind-html="strategy.toUpperCase() | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END STRATEGY -->\n\n <!-- START TIMEOUT -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_AGENT\' | translate}} {{\'APPLICATION_TIMEOUT\' | translate}}</label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" min="1" data-ng-model="queue.timeout"/>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="queue.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <input data-ng-if="Auth.isAdmin()" class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/chat/realtime/view/agent/agent.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initAgents()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns class="ui-grid" ui-grid-tree-view ui-grid-expandable-row ui-grid-pagination ui-grid-auto-resize>\n <span us-spinner spinner-key="grid-spinner" spinner-start-active="true"></span>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/chat/realtime/view/agent/agent.modal.info.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_INTERFACE_INFO\' | translate }}</h3>\n</div>\n<div class="modal-body">\n<div data-ng-if="agent.ipaddr" class="well">\n <div>{{agent.ipaddr}}:{{agent.port}}</div>\n <div>{{agent.fullcontact}}</div>\n <div>{{agent.useragent}}</div>\n <div>{{agent.lastms}}</div>\n</div>\n<div data-ng-if="!agent.ipaddr" class="alert alert-danger" role="alert">\n {{\'MESSAGE_NO_AVAILABLE_INFO\' | translate}}\n</div>\n</div>\n<div class="modal-footer">\n <button class="btn default" type="button" ng-click="close()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'),a.put("app/channels/chat/realtime/view/agent/queue.modal.add.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_JOIN_QUEUE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <div class="form-group row">\n <label class="col-md-2 control-label" style="margin-top: 7px;">{{\'APPLICATION_QUEUE\' | translate}}:</label>\n <div class="col-md-10">\n <ui-select multiple ng-model="item.queues" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_QUEUE\' | translate}}">{{$item.name}}</ui-select-match>\n <ui-select-choices repeat="queue.id as queue in queues | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n</div>\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/chat/realtime/view/application/application.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initApplications()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns class="ui-grid" ui-grid-auto-resize>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/chat/realtime/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-bubble"></i>\n <a href="#">{{ \'APPLICATION_CHAT\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-energy"></i>\n <a href="#">{{ \'APPLICATION_REALTIME\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <div>\n <nav class="navbar navbar-default" role="navigation">\n <div class="collapse navbar-collapse">\n <ul class="nav navbar-nav">\n <li data-ng-class="{\'active\': $state.is(\'main.channels.chat.realtime.view.agents\')}">\n <a href="/channels/chat/realtime/view/agents">\n {{\'APPLICATION_AGENTS\' | translate}}\n </a>\n </li>\n <li data-ng-class="{\'active\': $state.is(\'main.channels.chat.realtime.view.applications\')}">\n <a href="/channels/chat/realtime/view/applications">\n {{\'APPLICATION_APPLICATIONS\' | translate}}\n </a>\n </li>\n <li>\n <a href="#">\n <b>|{{\'APPLICATION_SHOW_TIMERS\' | translate}} </b><input\n bs-switch\n class="form-control"\n ng-model="showTimers"\n type="checkbox"\n name="showTimers"\n switch-active="{{ timerSwitch.isActive }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ timerSwitch.onColor }}"\n switch-off-color="{{ timerSwitch.offColor }}"\n switch-animate="{{ timerSwitch.animate }}"\n switch-size="{{ timerSwitch.size }}"\n switch-label="{{ timerSwitch.label }}"\n switch-icon="{{ timerSwitch.icon }}"\n switch-radio-off="{{ timerSwitch.radioOff }}"\n switch-label-width="{{ timerSwitch.labelWidth }}"\n switch-handle-width="{{ timerSwitch.handleWidth }}"><b>|</b>\n </a>\n </li>\n </ul>\n </div>\n </nav>\n </div>\n\n <div ui-view></div>\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/chat/room/external/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n <div class="portlet light" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption">\n <div class="btn-group btn-group-solid">\n <button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'OPEN\'" uib-uncheckable>OPEN</button>\n </div>\n <div class="btn-group btn-group-solid">\n <button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'CLOSED\'" uib-uncheckable>CLOSED</button>\n </div>\n </div>\n <div class="actions">\n <a href="#" class="btn btn-icon-only blue" data-ng-click="tagItems();" data-ng-show="id.length">\n <i class="fa fa-tags"></i>\n </a>\n <a href="#" class="btn btn-icon-only default" data-ng-click="getPage();">\n <i class="fa fa-refresh"></i>\n </a>\n </div>\n</div>\n<div class="portlet-title" data-ng-show="tags.length">\n <!-- START TAGS -->\n <div class="form-group">\n <div class="row">\n <div class="col-md-1">\n <a href="#" class="btn btn-icon-only">\n <i class="fa fa-tags" style="color: gray;"></i>\n </a>\n </div>\n <div class="col-md-11">\n <ui-select multiple data-ng-model="query.tags" theme="bootstrap" on-select="onChanged($item, $model)" on-remove="onChanged($item, $model)">\n <ui-select-match placeholder="Search by tag...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="tag in tags | filter:$select.search">\n {{tag}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n </div>\n <!-- END TAGS -->\n</div>\n<div class="portlet-body">\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="spinner-grid" spinner-start-active="true"></span>\n <!-- END UI-GRID SPINNER -->\n\n <!-- START TABLE -->\n\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-selection ui-grid-pagination class="ui-grid">\n <div class="watermark" data-ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/chat/room/group/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n <div class="portlet light" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption">\n <div class="btn-group btn-group-solid">\n <button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'OPEN\'" uib-uncheckable>OPEN</button>\n </div>\n <div class="btn-group btn-group-solid">\n <button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'CLOSED\'" uib-uncheckable>CLOSED</button>\n </div>\n </div>\n <div class="actions">\n <a href="#" class="btn btn-icon-only blue" data-ng-click="tagItems();" data-ng-show="id.length">\n <i class="fa fa-tags"></i>\n </a>\n <a href="#" class="btn btn-icon-only default" data-ng-click="getPage();">\n <i class="fa fa-refresh"></i>\n </a>\n </div>\n</div>\n<div class="portlet-title" data-ng-show="tags.length">\n <!-- START TAGS -->\n <div class="form-group">\n <div class="row">\n <div class="col-md-1">\n <a href="#" class="btn btn-icon-only">\n <i class="fa fa-tags" style="color: gray;"></i>\n </a>\n </div>\n <div class="col-md-11">\n <ui-select multiple data-ng-model="query.tags" theme="bootstrap" on-select="onChanged($item, $model)" on-remove="onChanged($item, $model)">\n <ui-select-match placeholder="Search by tag...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="tag in tags | filter:$select.search">\n {{tag}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n </div>\n <!-- END TAGS -->\n</div>\n<div class="portlet-body">\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="spinner-grid" spinner-start-active="true"></span>\n <!-- END UI-GRID SPINNER -->\n\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-selection ui-grid-pagination class="ui-grid">\n <div class="watermark" data-ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/chat/room/internal/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12" data-ng-init="initView()">\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="spinner-grid" spinner-start-active="true"></span>\n <!-- END UI-GRID SPINNER -->\n\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination class="ui-grid">\n <div class="watermark" data-ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/chat/room/room.add.html",'<div class="modal-header">\n <button ng-if="modal.dismissable" type="button" data-ng-click="$dismiss()" class="close">×</button>\n <h4 class="modal-title">{{\'APPLICATION_NEW_GROUP\' | translate}}</h4>\n</div>\n\n<div class="modal-body">\n <div class="portlet box blue">\n <div class="portlet-title">\n <div class="caption">\n <i class="icon-people"></i>{{\'APPLICATION_AGENTS\' | translate}}\n </div>\n </div>\n <div class="portlet-body">\n <ul>\n <li data-ng-repeat="item in items">\n {{item.fullname}}\n </li>\n <li data-ng-repeat="item in selected.items">\n {{item.fullname}}\n </li>\n </ul>\n </div>\n </div>\n\n <ui-select multiple name="items" ng-model="selected.items" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SELECTED_AGENTS\' | translate}}">{{$item.fullname}}</ui-select-match>\n <ui-select-choices repeat="{id: agent.id, fullname: agent.fullname} as agent in agents.rows | filter: $select.search">\n {{agent.fullname}}\n </ui-select-choices>\n </ui-select>\n</div>\n\n<div class="modal-footer">\n <button class="btn btn-success" type="button" data-ng-click="ok()" data-ng-show="selected.items.length">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/chat/room/room.close.html",'<div class="modal-header">\n <button ng-if="modal.dismissable" type="button" ng-click="$dismiss()" class="close">×</button>\n <h4 ng-if="modal.title" ng-bind="modal.title | translate" class="modal-title"></h4>\n</div>\n<div class="modal-body">\n <p ng-if="modal.text && !closed" ng-bind="modal.text | translate"></p>\n <form name="form" novalidate data-ng-init="initDisposition()">\n <div class="form-group">\n <ui-select data-ng-model="item.disposition" name="list" theme="bootstrap" data-ng-disabled="!dispositions.length" required>\n <ui-select-match placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="disposition.name as disposition in dispositions | filter: $select.search">\n <div ng-bind-html="disposition.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="note note-warning" data-ng-hide="dispositions.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_DISPOSITIONS_AVAILABLE\' | translate }}\n </p>\n </div>\n</form>\n <!-- <div ng-if="modal.html" ng-bind-html="modal.html"></div> -->\n</div>\n<div class="modal-footer">\n <button class="btn btn-danger" type="button" ng-click="ok()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n <!-- <button ng-repeat="button in modal.buttons" ng-class="button.classes" ng-click="button.click($event)" ng-bind="button.text" class="btn"></button> -->\n</div>\n'),a.put("app/channels/chat/room/room.directive.html",'<div class="portlet light">\n <div class="portlet-title">\n <div class="caption">\n <span data-ng-if="chatRoom" class="label label-sm label-default">{{chatRoom.status}}</span>\n <span data-ng-if="chatRoom.ChatWebsite"> | </span>\n <span data-ng-if="chatRoom.ChatWebsite" class="caption-subject font-green-sharp bold uppercase">{{chatRoom.ChatWebsite.name | truncate: 25: \'...\': true}}</span>\n </div>\n <div class="actions">\n <button class="btn btn-icon-only btn-primary" data-ng-click="addAgent(chatRoom.id)" data-ng-disabled="chatRoom.status === \'CLOSED\'">\n <i class="fa fa-user-plus"></i>\n </button>\n <button class="btn btn-icon-only" data-ng-class="{\'btn-success\':chatRoom.status !== \'CLOSED\',\'grey-cascade\':chatRoom.status === \'CLOSED\'}" data-ng-click="closeRoom(chatRoom.id)" data-ng-if="chatRoom.ChatVisitors.length" data-ng-disabled="chatRoom.status === \'CLOSED\' && chatRoom.disposition">\n <i data-ng-class="{\'fa fa-upload\':chatRoom.status !== \'CLOSED\',\'icon-target\':chatRoom.status === \'CLOSED\'}"></i>\n </button>\n <motion-file-download resource="ChatRoom" params="{id:chatRoom.id,controller:\'export\'}" mimetype="\'text/csv\'" filename="\'chat_\'+chatRoom.id+\'_transcript\'" btnclass="btn btn-primary btn-icon-only"></motion-file-download>\n <button class="btn default btn-icon-only" data-ng-if="chatRoom && chatRoom.status !== \'CLOSED\'" data-ng-click="togglePanelLeft()" title="{{\'APPLICATION_RESIZE\' | translate}}">\n <i ng-class="panelRight == \'col-md-12\' ? \'icon-size-actual\' : \'icon-size-fullscreen\'"></i>\n </button>\n </div>\n </div>\n <div class="portlet-body">\n<div class="row">\n <div data-ng-class="panelLeft" data-ng-show="panelLeft">\n <div class="portlet">\n <div class="portlet-body">\n <div class="portlet-title line">\n <div class="form">\n <!-- START TAGS -->\n <div class="form-group">\n <div class="row">\n <div class="col-md-1">\n <a href="#" class="btn btn-icon-only">\n <i class="fa fa-tags" style="color: gray;"></i>\n </a>\n </div>\n <div class="col-md-11">\n <ui-select multiple data-ng-model="form.tags" theme="bootstrap" on-select="onChanged(chatRoom.id)" on-remove="onChanged(chatRoom.id)">\n <ui-select-match placeholder="Tags...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="tag in tags | filter:$select.search" class="">\n {{tag}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n </div>\n <!-- END TAGS -->\n </div>\n </div>\n <v-accordion class="vAccordion--default">\n <v-pane data-ng-if="chatRoom.ChatVisitors.length" data-ng-repeat="chatVisitor in chatRoom.ChatVisitors" expanded="true">\n <v-pane-header>\n <ng-letter-avatar\n height="40"\n width="40"\n data="{{chatRoom.ChatVisitor.fullname}}"\n fontsize="25"\n avatarcustombgcolor="#B0B0B0"\n charCount="2"\n avatarcustomborder="border:2px solid #EA4C61"\n shape="round"></ng-letter-avatar>\n </v-pane-header>\n <v-pane-content>\n {{\'APPLICATION_ROOM_ID\' | translate}}: <p>{{chatRoom.id}}</p>\n {{\'APPLICATION_NAME\' | translate}}: <p>{{chatRoom.ChatVisitor.fullname}}</p>\n {{\'APPLICATION_EMAIL\' | translate}}: <p><a data-ng-click="openContact(chatRoom.ChatVisitor.email)" href="">{{chatRoom.ChatVisitor.email}}</a></p>\n <span data-ng-if="chatRoom.ChatVisitor.labelData1">{{chatRoom.ChatVisitor.labelData1}}: <p>{{chatRoom.ChatVisitor.data1}}</p></span>\n <span data-ng-if="chatRoom.ChatVisitor.labelData2">{{chatRoom.ChatVisitor.labelData2}}: <p>{{chatRoom.ChatVisitor.data2}}</p></span>\n <span data-ng-if="chatRoom.ChatVisitor.labelData3">{{chatRoom.ChatVisitor.labelData3}}: <p>{{chatRoom.ChatVisitor.data3}}</p></span>\n {{\'APPLICATION_REMOTE_ADDRESS\' | translate}}: <p>{{chatRoom.ChatVisitor.remote_address}}</p>\n {{\'APPLICATION_BROWSER\' | translate}}: <p>{{chatRoom.ChatVisitor.browser}}</p>\n {{\'APPLICATION_REFERER\' | translate}}:<p>{{chatRoom.ChatVisitor.referer}} - {{enquiry.ChatWebsite.name}}</p>\n {{\'APPLICATION_OS\' | translate}}: <p>{{chatRoom.ChatVisitor.os}}</p>\n </v-pane-content>\n </v-pane>\n\n <v-pane data-ng-repeat="user in chatRoom.Users | filter:{ id: \'!\' + user.id}">\n <v-pane-header>\n <ng-letter-avatar\n height="40"\n width="40"\n data="{{user.fullname}}"\n fontsize="25"\n avatarcustombgcolor="#B0B0B0"\n avatarcustomborder="border:2px solid #3399CC"\n charCount="2"\n shape="round"></ng-letter-avatar>\n </v-pane-header>\n <v-pane-content>\n {{\'APPLICATION_NAME\' | translate}}: <p>{{user.fullname}}</p>\n {{\'APPLICATION_ROLE\' | translate}}: <p>{{user.role}}</p>\n {{\'APPLICATION_INTERNAL\' | translate}}: <p>{{user.internal}}</p>\n {{\'APPLICATION_EMAIL\' | translate}}: <p><a data-ng-href="mailto:{{user.email}}">{{user.email}}</a></p>\n </v-pane-content>\n </v-pane>\n </v-accordion>\n </div>\n </div>\n </div>\n <div data-ng-class="panelRight">\n <div class="note note-info" data-ng-if="chatRoom && chatRoom.status == \'CLOSED\'">\n <h4 class="block"><i class="icon-info"></i> {{\'MESSAGE_CHAT_ROOM_CLOSED\' | translate}}!</h4>\n <p>\n <strong>{{\'MESSAGE_CHAT_ROOM_CLOSED_DETAILS\' | translate}}.</strong>\n </p>\n <hr>\n <p>\n <i class="icon-target"></i> {{\'APPLICATION_DISPOSITION\' | translate}}: <strong>{{chatRoom.disposition}}</strong>\n </p>\n <p>\n <i class="icon-star"></i> {{\'APPLICATION_RATING\' | translate}}: <strong>{{chatRoom.rating | ucfirst}}</strong>\n </p>\n <p>\n <i class="icon-note"></i> {{\'APPLICATION_RATING_MESSAGE\' | translate}}: <strong>{{chatRoom.ratingMessage}}</strong>\n </p>\n <p>\n <i class="icon-calendar"></i> {{\'APPLICATION_UPDATED_AT\' | translate}}: <strong>{{chatRoom.updatedAt | date:\'medium\'}}</strong> (<span am-time-ago="chatRoom.updatedAt"></span>)\n </p>\n </div>\n <div class="portlet light bordered">\n <div class="portlet-body">\n <div id="chat-box" schroll-bottom="chatRoom.ChatMessages">\n <ul class="chats">\n <li data-ng-repeat="message in chatRoom.ChatMessages" data-ng-class="message.UserId == user.id ? \'out\' : \'in\'">\n <div class="avatar" data-ng-class="message.ChatVisitor ? \'pretty-avatar-v\' : \'pretty-avatar\'">\n <ng-letter-avatar\n data-ng-if="!message.ChatVisitor"\n height="40"\n width="40"\n fontsize="25"\n data="{{message.User.fullname}}"\n avatarcustombgcolor="#B0B0B0"\n avatarcustomborder="border:2px solid #3399CC"\n charCount="2"\n shape="round"></ng-letter-avatar>\n <ng-letter-avatar\n data-ng-if="message.ChatVisitor"\n height="40"\n width="40"\n fontsize="25"\n data="{{message.ChatVisitor.fullname}}"\n avatarcustombgcolor="#B0B0B0"\n avatarcustomborder="border:2px solid #EA4C61"\n charCount="2"\n shape="round"></ng-letter-avatar>\n </div>\n <div class="message">\n <span class="arrow"></span>\n <a data-ng-click="message.ChatVisitor && openContact(chatRoom.ChatVisitor.email)" class="name">{{message.User.fullname || message.ChatVisitor.fullname}} </a>\n <i class="icon-calendar" title="{{message.createdAt | date:\'MMM d, y HH:mm:ss\'}}"></i> <span am-time-ago="message.createdAt"></span>\n <ng-emoticons emoticons-data="message.body"></ng-emoticons>\n </div>\n </li>\n <li data-ng-if="chatRoom.status === \'CLOSED\'">\n <div class="media-body" style="text-align: center;">\n <h5 class="media-heading"><i>{{\'MESSAGE_CHAT_CLOSED\' | translate | lowercase}}</i></h5>\n </div>\n </li>\n </ul>\n </div>\n <div class="chat-form" data-ng-if="chatRoom && isMyRoom(chatRoom.Users)">\n <div class="input-cont">\n <input class="form-control" type="text" placeholder="Type a message here..." ng-enter="sendMessage()" data-ng-model="message.body" data-ng-disabled="chatRoom.status === \'CLOSED\'"/>\n </div>\n <div class="btn-cont">\n <span class="arrow"></span>\n <a href="#" class="btn blue icn-only" data-ng-disabled="chatRoom.status === \'CLOSED\'" data-ng-click="sendMessage()">\n <i class="fa fa-check icon-white"></i>\n </a>\n </div>\n </div>\n <div class="form-group chat-canned-answer-div" data-ng-if="chatRoom.status !== \'CLOSED\'" data-ng-class="{\'has-error\': forms.compose.subject.$invalid && forms.compose.$submitted}">\n <div class="row">\n <div class="col-md-1">\n <a href="#" class="btn btn-icon-only">\n <i class="fa fa-magic" style="color: gray;"></i>\n </a>\n </div>\n <div class="col-md-11">\n <input type="text"\n data-ng-model="modelOptions.selectedAnswer"\n uib-typeahead="key for key in getAnswers($viewValue)"\n placeholder="Canned answers.."\n typeahead-loading="loadingLocations"\n typeahead-no-results="noResults"\n typeahead-on-select="onSelect($item)"\n class="form-control">\n <i ng-show="loadingLocations" class="glyphicon glyphicon-refresh"></i>\n <div ng-show="noResults">\n <i class="glyphicon glyphicon-remove"></i> No Results Found\n </div>\n <span data-ng-show="forms.compose.subject.$invalid && forms.compose.$submitted" class="help-block help-block-error">\n'+" <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n </span>\n </div>\n </div>\n\n </div>\n </div>\n </div>\n</div>\n</div>\n</div>\n"), -a.put("app/channels/chat/room/room.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-bubble"></i>\n <a href="#">{{ \'APPLICATION_CHAT\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-users"></i>\n <a href="#">{{ \'APPLICATION_INTERACTIONS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <div class="row inbox">\n <div class="col-md-2">\n <ul class="inbox-nav margin-bottom-10">\n <li data-ng-class="{active: $state.includes(\'main.channels.chat.room.internal\')}">\n <a href="/channels/chat/room/internal/list" class="btn">\n {{\'APPLICATION_INTERNAL\' | translate}}\n </a>\n <b></b>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.channels.chat.room.external\')}">\n <a href="/channels/chat/room/external/list" class="btn">\n {{\'APPLICATION_EXTERNAL\' | translate}}\n </a>\n <b></b>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.channels.chat.room.group\')}">\n <a href="/channels/chat/room/group/list" class="btn">\n {{\'APPLICATION_GROUPS\' | translate}}\n </a>\n <b></b>\n </li>\n </ul>\n </div>\n\n <div class="col-md-10">\n <div class="room-content">\n <div ui-view></div>\n </div>\n </div>\n </div>\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/chat/room/template.html",'<div ng-bind-html="neText" ne-hljs></div>\n<div class="ne-video" ng-if="video.host" class="fade">\n <div class="ne-video-preview" ng-hide="nePlayVideo || !options.video.details">\n <div class="ne-video-thumb" ng-click="nePlayVideo=!nePlayVideo">\n <img ng-src="{{video.thumbnail}}" alt=""/>\n <i class="fa fa-play-circle-o"></i>\n </div>\n <div class="ne-video-detail">\n <div class="ne-video-title">\n <a ng-href="{{video.url}}">{{video.title}}</a>\n </div>\n <div class="ne-video-desc">\n {{video.description}}\n </div>\n <div class="ne-video-stats">\n <span><i class="fa fa-eye"></i> {{video.views}}</span>\n <span><i class="fa fa-heart"></i> {{video.likes}}</span>\n </div>\n </div>\n </div>\n <div class="ne-video-player" ng-if="nePlayVideo || !(options.video.details)">\n <iframe ng-src="{{video.embedSrc}}" frameBorder="0" width="{{video.width}}" height="{{video.height}}" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>\n </div>\n</div>\n<div class="ne-video" ng-if="video.basic">\n <div class="ne-video-player">\n <div class="player">\n <video ng-src="{{video.basic}}" controls></video>\n </div>\n </div>\n</div>\n<div ng-init="neImageLong=false" ng-class="{false:\'ne-image\', true:\'ne-image ne-image-long\'}[neImageLong]"\nng-if="image.url">\n<div class="ne-image-wrapper">\n <img ng-src="{{image.url}}" ng-click="neImageLong=!neImageLong" alt=""/>\n</div>\n</div>\n<!-- <div class="ne-pdf" ng-if="pdf.url">\n <div class="ne-pdf-preview" ng-hide="neShowPdf">\n <div class="ne-pdf-icon">\n <i class="fa fa-file-pdf-o"></i>\n </div>\n <div class="ne-pdf-detail" >\n <div class="ne-pdf-title">\n <a href="">{{pdf.url}}</a>\n </div>\n <div class="ne-pdf-view">\n\n <button><i class="fa fa-download"></i> <a ng-href="{{pdf.url}}" target="_blank">Download</a></button>\n <button ng-click="neShowPdf=!neShowPdf"><i class="fa fa-eye"></i> View PDF</button>\n\n </div>\n </div>\n </div>\n <div class="ne-pdf-viewer" ng-if="neShowPdf" ng-show="neShowPdf">\n <iframe ng-src="{{pdf.url}}" frameBorder="0"></iframe>\n </div>\n\n</div>\n<div class="ne-audio" ng-if="audio.url">\n <audio ng-src="{{audio.url}}" controls></audio>\n</div> -->\n'),a.put("app/channels/chat/room/view.tags.modal.html",'<div class="modal-header" data-ng-init="initModal()">\n <h3 class="modal-title">{{ \'APPLICATION_TAGS\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <!-- START TRANSPORT -->\n <div class="form-group">\n <form name="form" novalidate>\n <!-- START TAGS -->\n <div class="form-group">\n <ui-select multiple data-ng-model="item.tags" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_TAGS\' | translate}}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="tag in tags | filter: $select.search">\n {{tag}}\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END TAGS -->\n </form>\n </div>\n <!-- END TRANSPORT -->\n</div>\n<div class="modal-footer">\n <button type="button" class="btn" data-ng-class="button.class" data-ng-click="button.click()"data-ng-repeat="button in modal.buttons">{{button.text | translate}}</button>\n <!-- <button class="btn btn-success" type="button" data-ng-click="ok()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button> -->\n</div>\n'),a.put("app/channels/chat/visitor/list/list.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-bubble"></i>\n <a href="#">{{ \'APPLICATION_CHAT\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-question"></i>\n <a href="/channels/chat/visitors/list">{{ \'APPLICATION_VISITORS\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-question font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_VISITORS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/chat/visitor/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-bubble"></i>\n <a href="#">{{ \'APPLICATION_CHAT\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-question"></i>\n <a href="/channels/chat/visitors/list">{{ \'APPLICATION_VISITORS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="chatVisitor">\n <a href="#">{{chatVisitor.fullname}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/visitor.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{chatVisitor.fullname}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.channels.chat.visitors.view.profile\')}">\n <a data-ng-href="/channels/chat/visitors/view/{{chatVisitor.id}}/profile">\n <i class="icon-tag"></i>\n {{ \'APPLICATION_PROFILE\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/chat/visitor/view/view.profile.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_PROFILE\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body" data-ng-init="initView()">\n <div>\n <h4 class="profile-desc-title">{{chatVisitor.email}}</h4>\n <div class="margin-top-20 profile-desc-link">\n <i class="icon-magnifier"></i>\n <a href="#" class="inactive-link">{{chatVisitor.origin}}</a>\n </div>\n <div class="margin-top-20 profile-desc-link">\n <i class="icon-globe"></i>\n <a href="#" class="inactive-link">{{chatVisitor.remote_address}}</a>\n </div>\n <div class="margin-top-20 profile-desc-link">\n <i class="icon-user"></i>\n <a href="#" class="inactive-link">{{chatVisitor.user_agent | truncate: 50: \'...\'}}</a>\n </div>\n <div class="margin-top-20 profile-desc-link">\n <i class="icon-flag"></i>\n <a href="#" class="inactive-link">{{chatVisitor.visitor_language}}</a>\n </div>\n <div class="margin-top-20 profile-desc-link">\n <i class="icon-home"></i>\n <a href="#" class="inactive-link">{{chatVisitor.referer}}</a>\n </div>\n <div class="margin-top-20 profile-desc-link">\n <i class="icon-cursor"></i>\n <a href="#" class="inactive-link">{{chatVisitor.browser}}</a>\n </div>\n <div class="margin-top-20 profile-desc-link">\n <i class="icon-screen-desktop"></i>\n <a href="#" class="inactive-link">{{chatVisitor.os}}</a>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/chat/website/list/list.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-bubble"></i>\n <a href="#">{{ \'APPLICATION_CHAT\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-globe"></i>\n <a href="#">{{ \'APPLICATION_WEB_SITES\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_WEB_SITES\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="/channels/chat/websites/wizard">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_WEB_SITE\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/chat/website/view/action/list/list.html",'<div class="row" data-ng-init="initActons()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_ACTIONS\' | translate}}</span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="/channels/chat/websites/view/{{chatWebsite.id}}/actions/wizard" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_ACTION\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/chat/website/view/action/view/view.html",'\n<div class="row" data-ng-init="initAction()">\n <div class="col-md-12">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-directions font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACTION\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <form name="forms.settings" ng-submit="updateItem()" novalidate>\n <!-- START APP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app.$touched || forms.settings.$submitted) && forms.settings.app.$invalid}">\n <label class="control-label">{{ \'APPLICATION_APPLICATION\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.app" name="app" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_APPLICATION\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="app.value as app in apps | filter: $select.search">\n <div ng-bind-html="app.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.app.$touched || forms.settings.$submitted) && forms.settings.app.$invalid && forms.settings.app.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END APP -->\n\n <div class="app-settings" ng-slide-down="application.app === \'queue\'" lazy-render duration="1" data-ng-init="getQueues()">\n <!-- START QUEUE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.queue.$touched || forms.settings.$submitted) && forms.settings.queue.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.ChatQueueId" name="queue" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="queue.id as queue in queues | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="queues.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_QUEUES_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/channels/chat/queues/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.settings.queue.$touched || forms.settings.$submitted) && forms.settings.queue.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n <span data-ng-show="(forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'agent\'" lazy-render duration="1" data-ng-init="getAgents()">\n <!-- START AGENT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.agent.$touched || forms.settings.$submitted) && forms.settings.agent.$invalid}">\n <label class="control-label">{{\'APPLICATION_AGENT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.UserId" name="agent" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.fullname}}</ui-select-match>\n <ui-select-choices repeat="agent.id as agent in agents | filter: $select.search">\n <div ng-bind-html="agent.fullname | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="agents.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_AGENTS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/staff/agents/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.settings.agent.$touched || forms.settings.$submitted) && forms.settings.agent.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END AGENT -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n <span data-ng-show="(forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'sendMail\'" lazy-render duration="1" data-ng-init="getMailAccounts();getTemplates()">\n <!-- START SENDMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="email" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2" min="1" required/>\n <span data-ng-show="(forms.settings.from.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.mail.$touched || forms.settings.$submitted) && forms.settings.account.$invalid}">\n <label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in mailAccounts | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.account.$touched || forms.settings.$submitted) && forms.settings.account.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.template.$touched || forms.settings.$submitted) && forms.settings.template.$invalid}">\n <label class="control-label">{{\'APPLICATION_TEMPLATE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data9" name="template" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n <div ng-bind-html="template.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.template.$touched || forms.settings.$submitted) && forms.settings.template.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SENDMAIL -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1" data-ng-init="getSmsAccounts()">\n <!-- START SENDSms -->\n <div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1">\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.to.$touched || forms.settings.$submitted) && forms.settings.to.$invalid}">\n <label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" ng-pattern="/^[\\+]?[0-9]+$/" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2" required/>\n <span data-ng-show="(forms.settings.to.$touched || forms.settings.$submitted) && forms.settings.to.$invalid && forms.settings.to.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.account.$touched || forms.settings.$submitted) && forms.settings.account.$invalid}">\n <label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in smsAccounts | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.account.$touched || forms.settings.$submitted) && forms.settings.account.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.text.$touched || forms.text.$submitted) && forms.settings.text.$invalid}">\n <label class="control-label">{{\'APPLICATION_TEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <textarea id="text" class="form-control maxlength-handler" maxlength="160" name="text" data-ng-model="application.data6" required></textarea>\n <span data-ng-show="(forms.settings.text.$touched || forms.settings.$submitted) && forms.settings.text.$invalid && forms.settings.text.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <!-- END SENDSms -->\n </div>\n\n <!-- START INTERVAL_TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.intType.$touched || forms.settings.$submitted) && forms.settings.intType.$invalid}">\n <label class="control-label">{{ \'APPLICATION_INTERVAL_TYPE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.intType" theme="bootstrap" name="intType" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="intType.value as intType in $application.intTypes | filter: $select.search">\n {{ intType.name | translate }}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.intType.$touched || forms.settings.$submitted) && forms.settings.intType.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVAL_TYPE -->\n\n <div class="app-settings" ng-slide-down="application.intType === \'custom\'" lazy-render duration="1">\n <!-- START TIME -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n <div class="input-group input-large">\n <fieldset class="pull-left" ng-disabled="application.alwaysTime">\n <uib-timepicker name="t_from" data-ng-model="application.t_from" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker>\n </fieldset>\n <div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n <fieldset ng-disabled="application.alwaysTime"><uib-timepicker name="t_to" data-ng-model="application.t_to" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker></fieldset>\n <!-- <label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="application.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label> -->\n </div>\n </div>\n <!-- END TIME -->\n\n <!-- START ALWAYS -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ALWAYS\' | translate }}</label>\n <div class="input-group input-large">\n <label class="control-label pointer-cursor">\n <input\n bs-switch\n data-ng-model="application.alwaysTime"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n <!-- <input type="checkbox" data-ng-model="application.alwaysTime"> -->\n </label>\n </div>\n </div>\n <!-- END ALWAYS -->\n\n <!-- START WEEKDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.wd_from" theme="bootstrap" name="wd_from">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{ weekDay.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.wd_to" theme="bootstrap" name="wd_to">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{ weekDay.name | translate }}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END WEEKDAY -->\n\n <!-- START MONTHDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.md_from" theme="bootstrap" name="md_from">\n <ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_to && application.md_to!==\'always\' && monthDay>application.md_to && monthDay!==\'always\'">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.md_to" theme="bootstrap" name="md_to">\n <ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_from && application.md_from!==\'always\' && monthDay<application.md_from && monthDay!==\'always\'">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTHDAY -->\n\n <!-- START MONTH -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.m_from" theme="bootstrap" name="m_from">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{ month.name | translate }}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.m_to" theme="bootstrap" name="m_to">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{ month.name | translate }}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTH -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.intType === \'list\'" lazy-render duration="1" data-ng-init="getIntervals()">\n\n <!-- START INTERVALS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.IntervalId.$touched || forms.settings.$submitted) && forms.settings.IntervalId.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERVALS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.IntervalId" theme="bootstrap" name="IntervalId" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="interval.id as interval in intervals | filter: $select.search">\n {{ interval.name}}\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="intervals.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_INTERVAL_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/intervals/list">{{\'APPLICATION_INTERVALS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.settings.IntervalId.$touched || forms.settings.$submitted) && forms.settings.IntervalId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVALS -->\n\n </div>\n <button class="btn green-haze" type="submit">{{\'APPLICATION_UPDATE\' | translate}}</button>\n </form>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'), -a.put("app/channels/chat/website/view/action/wizard/wizard.html",'\n<div class="row" data-ng-init="initWizard()">\n <div class="col-md-12">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-directions font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACTION\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_APPLICATION\' | translate}}" canexit="formValidation(forms.action.$valid)">\n <form name="forms.action" novalidate>\n <!-- START APP -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.action.$submitted && forms.action.app.$invalid}">\n <label class="control-label">{{ \'APPLICATION_APPLICATION\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.app" name="app" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_APPLICATION\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="app.value as app in apps | filter: $select.search">\n <div ng-bind-html="app.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.action.$submitted && forms.action.app.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END APP -->\n\n <div class="app-settings" ng-slide-down="application.app === \'agent\'" lazy-render duration="1" data-ng-init="getAgents()">\n <!-- START AGENT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.agent.$touched || forms.action.$submitted) && forms.action.agent.$invalid}">\n <label class="control-label">{{\'APPLICATION_AGENT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.UserId" name="agent" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.fullname}}</ui-select-match>\n <ui-select-choices repeat="agent.id as agent in agents | filter: $select.search">\n <div ng-bind-html="agent.fullname | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="agents.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_AGENTS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/staff/agents/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.action.agent.$touched || forms.action.$submitted) && forms.action.agent.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END AGENT -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n <span data-ng-show="(forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid && forms.action.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'queue\'" lazy-render duration="1" data-ng-init="getQueues()">\n <!-- START QUEUE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.queue.$touched || forms.action.$submitted) && forms.action.queue.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.ChatQueueId" name="queue" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="queue.id as queue in queues | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="queues.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_QUEUES_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/channels/chat/queues/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.action.queue.$touched || forms.action.$submitted) && forms.action.queue.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n <span data-ng-show="(forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid && forms.action.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'sendMail\'" lazy-render duration="1" data-ng-init="getMailAccounts();getTemplates()">\n <!-- START SENDMAIL -->\n <div class="app-settings" ng-slide-down="application.app === \'sendMail\'" lazy-render duration="1">\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="email" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2" min="1" required/>\n <span data-ng-show="(forms.action.from.$touched || forms.action.$submitted) && forms.action.timeout.$invalid && forms.action.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.mail.$touched || forms.action.$submitted) && forms.action.account.$invalid}">\n <label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in mailAccounts | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.template.$touched || forms.action.$submitted) && forms.action.template.$invalid}">\n <label class="control-label">{{\'APPLICATION_TEMPLATE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data9" name="template" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n <div ng-bind-html="template.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.template.$touched || forms.action.$submitted) && forms.action.template.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SENDMAIL -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1" data-ng-init="getSmsAccounts()">\n <!-- START SENDSms -->\n <div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1">\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.to.$touched || forms.action.$submitted) && forms.action.to.$invalid}">\n <label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" ng-pattern="/^[\\+]?[0-9]+$/" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2" required/>\n <span data-ng-show="(forms.action.to.$touched || forms.action.$submitted) && forms.action.to.$invalid && forms.action.to.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$invalid}">\n <label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in smsAccounts | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.text.$touched || forms.action.$submitted) && forms.action.text.$invalid}">\n <label class="control-label">{{\'APPLICATION_TEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <textarea id="text" class="form-control maxlength-handler" maxlength="160" name="text" data-ng-model="application.data6" required></textarea>\n <span data-ng-show="(forms.action.text.$touched || forms.action.$submitted) && forms.action.text.$invalid && forms.action.text.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <!-- END SENDSms -->\n </div>\n\n <!-- START INTERVAL_TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.intType.$touched || forms.action.$submitted) && forms.action.intType.$invalid}">\n <label class="control-label">{{ \'APPLICATION_INTERVAL_TYPE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.intType" theme="bootstrap" name="intType" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="intType.value as intType in $application.intTypes | filter: $select.search">\n {{ intType.name | translate }}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.intType.$touched || forms.action.$submitted) && forms.action.intType.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVAL_TYPE -->\n\n <div class="app-settings" ng-slide-down="application.intType === \'custom\'" lazy-render duration="1">\n <!-- START TIME -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n <div class="input-group input-large">\n <fieldset class="pull-left" ng-disabled="application.alwaysTime">\n <uib-timepicker name="t_from" data-ng-model="application.t_from" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker>\n </fieldset>\n <div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n <fieldset ng-disabled="application.alwaysTime"><uib-timepicker name="t_to" data-ng-model="application.t_to" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker></fieldset>\n <!-- <label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="application.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label> -->\n </div>\n </div>\n <!-- END TIME -->\n\n <!-- START ALWAYS -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ALWAYS\' | translate }}</label>\n <div class="input-group input-large">\n <label class="control-label pointer-cursor">\n <input\n bs-switch\n data-ng-model="application.alwaysTime"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n <!-- <input type="checkbox" data-ng-model="application.alwaysTime"> -->\n </label>\n </div>\n </div>\n <!-- END ALWAYS -->\n\n <!-- START WEEKDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.wd_from" theme="bootstrap" name="wd_from">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{ weekDay.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.wd_to" theme="bootstrap" name="wd_to">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{ weekDay.name | translate }}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END WEEKDAY -->\n\n <!-- START MONTHDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.md_from" theme="bootstrap" name="md_from">\n <ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_to && application.md_to!==\'always\' && monthDay>application.md_to && monthDay!==\'always\'">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.md_to" theme="bootstrap" name="md_to">\n <ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_from && application.md_from!==\'always\' && monthDay<application.md_from && monthDay!==\'always\'">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTHDAY -->\n\n <!-- START MONTH -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.m_from" theme="bootstrap" name="m_from">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{ month.name | translate }}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.m_to" theme="bootstrap" name="m_to">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{ month.name | translate }}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTH -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.intType === \'list\'" lazy-render duration="1" data-ng-init="getIntervals()">\n\n <!-- START INTERVALS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.IntervalId.$touched || forms.action.$submitted) && forms.action.IntervalId.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERVALS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.IntervalId" theme="bootstrap" name="IntervalId" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="interval.id as interval in intervals | filter: $select.search">\n {{ interval.name}}\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="intervals.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_INTERVAL_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/intervals/list">{{\'APPLICATION_INTERVALS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.action.IntervalId.$touched || forms.action.$submitted) && forms.action.IntervalId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVALS -->\n\n </div>\n\n <input class="btn green-haze" type="submit" data-ng-click="next()" value="{{\'APPLICATION_CONTINUE\' | translate}}"/>\n </form>\n </wz-step>\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n <input class="btn green-haze" type="submit" data-ng-click="next()" value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/chat/website/view/disposition/modal/add.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_DISPOSITIONS\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.form.$touched || form.$submitted) && form.form.$invalid}">\n <div class="">\n <input type="text" name="form" placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}" class="form-control" data-ng-model="name" required/>\n <span data-ng-show="form.form.$touched && form.form.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <!-- END NAME -->\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" data-ng-click="ok()" data-ng-show="form.$valid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/chat/website/view/disposition/view/view.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_DISPOSITIONS\' | translate}}</span>\n </div>\n <div class="actions actions-md">\n <a href="#" class="btn btn-icon-only green" data-ng-click="addDisposition();">\n <i class="fa fa-plus"></i>\n </a>\n </div>\n </div>\n <div class="portlet-body" data-ng-init="initView()">\n <div class="tab-content">\n <div class="row" data-ng-hide="dispositions.length">\n <div class="col-md-12">\n <div class="note note-info">\n <h4 class="block">Info! {{\'MESSAGE_NO_DISPOSITIONS_AVAILABLE\' | translate}}</h4>\n </div>\n </div>\n </div>\n\n <!-- GENERAL TAB -->\n <div class="row" data-ng-repeat="disposition in dispositions">\n <div class="col-md-12 form-group">\n <div class="input-group">\n <div>\n <input class="form-control" type="text" placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}" data-ng-model="disposition.name">\n </div>\n <span class="input-group-btn">\n <button class="btn btn-success" type="button" data-ng-click="updateDisposition(disposition.id, disposition.name);"><i class="fa fa-cloud-upload fa-fw"></i> {{\'APPLICATION_UPDATE\' | translate}}</button>\n <button class="btn btn-danger" type="button" data-ng-click="deleteDisposition(disposition.id);"><i class="fa fa-times fa-fw"></i> {{\'APPLICATION_DELETE\' | translate}}</button>\n </span>\n </div>\n </div>\n </div>\n <!-- END GENERAL TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/chat/website/view/embedding/view/view.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_EMBEDDING\' | translate}}</span>\n </div>\n <div class="actions">\n <div class="btn-group">\n <a class="btn green-jungle" href="#" data-ng-click="copyToClipboard();">\n <i class="fa fa-clipboard"></i> {{\'APPLICATION_COPY_TO_CLIPBOARD\' | translate}}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <div class="row">\n <div class="col-md-12">\n <h3>{{\'APPLICATION_EMBED_SNIPPET\' | translate}}</h3>\n <p>\n {{\'MESSAGE_EMBED_SNIPPET\' | translate}}\n </p>\n <div class="form-body">\n <div class="form-group">\n <div class="col-md-12">\n <code-mirror lang="html" model="snippetCode"></code-mirror>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/chat/website/view/form/view/view.html",'<div class="row" data-ng-init="getChatWebsiteFields(\'online\');getChatWebsiteFields(\'offline\');">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_ONLINE\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_OFFLINE\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="row">\n <div class="col-md-12">\n <div class="tab-content">\n <div class="tab-pane active" id="tab_1_1">\n <div class="row">\n <div class="col-md-6">\n <div class="portlet">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-book-open font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_FIELDS_SELECTED\' | translate }}</span>\n </div>\n <div class="actions">\n <div class="btn-group">\n <a class="btn green-jungle" href="#" data-ng-click="saveForm(\'online\');">\n <i class="fa fa-check"></i> {{ \'APPLICATION_SAVE\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <div fb-builder="online"></div>\n </div>\n </div>\n </div>\n <div class="col-md-6">\n <div class="portlet">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-book-open font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_FIELDS_AVAILABLE\' | translate }}</span>\n </div>\n </div>\n <div class="portlet-body">\n <div fb-components></div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class="tab-pane" id="tab_1_2">\n <div class="row">\n <div class="col-md-6">\n <div class="portlet">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-book-open font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_FIELDS_SELECTED\' | translate }}</span>\n </div>\n <div class="actions">\n <div class="btn-group">\n <a class="btn green-jungle" href="#" data-ng-click="saveForm(\'offline\');">\n <i class="fa fa-check"></i> {{ \'APPLICATION_SAVE\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <div fb-builder="offline"></div>\n </div>\n </div>\n </div>\n <div class="col-md-6">\n <div class="portlet">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-book-open font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_FIELDS_AVAILABLE\' | translate }}</span>\n </div>\n </div>\n <div class="portlet-body">\n <div fb-components></div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n</div>\n'),a.put("app/channels/chat/website/view/hooks/view/view.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_HOOKS\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_ACCEPT\' | translate}}</a>\n </li>\n <li >\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_REJECT\' | translate}}</a>\n </li>\n <li >\n <a href="#" data-target="#tab_1_3" data-toggle="tab">{{\'APPLICATION_CLOSE\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- ACCEPT TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.accept" data-ng-submit="forms.accept.$valid && updateItem()" novalidate>\n <!-- START ACCEPT URL -->\n <div class="row">\n <div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.accept.method.$touched || forms.accept.$submitted) && forms.accept.method.$invalid}">\n <label class="control-label">{{\'APPLICATION_METHOD\' | translate}}</label>\n <ui-select data-ng-model="account.acceptMethod" name="method" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected.name | uppercase}}</ui-select-match>\n <ui-select-choices repeat="type.value as type in types | filter: $select.search">\n <div ng-bind-html="type.name | highlight: $select.search | uppercase" ></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.accept.method.$touched || forms.accept.$submitted) && forms.accept.method.$invalid && forms.accept.method.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.accept.url.$touched || forms.accept.$submitted) && forms.accept.url.$invalid}">\n <label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n <input type="url" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="account.acceptUrl" ng-required="account.acceptMethod"/>\n <span data-ng-show="(forms.accept.url.$touched || forms.accept.$submitted) && forms.accept.url.$invalid && forms.accept.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <!-- END ACCEPT URL-->\n <!-- START ACTIONS-->\n <!-- START PAUSE -->\n <div class="row" ng-repeat = "action in account.actions">\n <div ng-switch="action.action">\n <div ng-switch-when="pause">\n <div class="form-group col-md-4">\n <label class="control-label">{{\'APPLICATION_PAUSE\' | translate}}</label></br>\n <input\n bs-switch\n data-ng-change="resetActionData(action)"\n data-ng-model="action.enabled"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </div>\n <div ng-if="action.enabled" class="form-group col-md-8">\n <label class="control-label">{{\'APPLICATION_TYPE\' | translate}}</label>\n <ui-select name="action" data-ng-model="action.type" theme="bootstrap" >\n <ui-select-match placeholder="{{\'APPLICATION_TYPE\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat=" pause.name as pause in pauses | filter: $select.search">\n <div ng-bind-html="pause.name | highlight: $select.search | uppercase" ></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n </div>\n </div>\n <!-- END ACTION -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ACCEPT TAB -->\n <!-- START REJECT TAB -->\n <div class="tab-pane" id="tab_1_2">\n <form name="forms.reject" data-ng-submit="forms.reject.$valid && updateItem()" novalidate>\n <!-- START REJECT URL -->\n <div class="row">\n <div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.reject.method.$touched || forms.reject.$submitted) && forms.reject.method.$invalid}">\n <label class="control-label">{{\'APPLICATION_METHOD\' | translate}}</label>\n <ui-select data-ng-model="account.rejectMethod" name="method" theme="bootstrap" >\n <ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected.name | uppercase}}</ui-select-match>\n <ui-select-choices repeat="type.value as type in types | filter: $select.search">\n <div ng-bind-html="type.name | highlight: $select.search | uppercase" ></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.reject.method.$touched || forms.reject.$submitted) && forms.reject.method.$invalid && forms.reject.method.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.reject.url.$touched || forms.reject.$submitted) && forms.reject.url.$invalid}">\n <label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n <input type="url" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="account.rejectUrl" ng-required="account.rejectMethod"/>\n <span data-ng-show="(forms.reject.url.$touched || forms.reject.$submitted) && forms.reject.url.$invalid && forms.reject.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n\n <!-- END REJECT URL -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END REJECT TAB -->\n <!-- START CLOSE TAB -->\n <div class="tab-pane" id="tab_1_3">\n <form name="forms.close" data-ng-submit="forms.close.$valid && updateItem()" novalidate>\n <div class="row">\n <div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.close.method.$touched || forms.close.$submitted) && forms.close.method.$invalid}">\n <label class="control-label">{{\'APPLICATION_METHOD\' | translate}}</label>\n <ui-select data-ng-model="account.closeMethod" name="method" theme="bootstrap" >\n <ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected.name | uppercase}}</ui-select-match>\n <ui-select-choices repeat="type.value as type in types | filter: $select.search">\n <div ng-bind-html="type.name | highlight: $select.search | uppercase" ></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.close.method.$touched || forms.close.$submitted) && forms.close.method.$invalid && forms.close.method.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.close.url.$touched || forms.close.$submitted) && forms.close.url.$invalid}">\n <label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n <input type="url" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="account.closeUrl" ng-required="account.closeMethod"/>\n <span data-ng-show="(forms.close.url.$touched || forms.close.$submitted) && forms.close.url.$invalid && forms.close.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END CLOSE TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'), -a.put("app/channels/chat/website/view/proactive/list/list.create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{title}}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.type.$touched || form.$submitted) && form.type.$invalid}">\n <label class="control-label">{{\'APPLICATION_TYPE\' | translate}}</label>\n <ui-select name="type" ng-model="item.type" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices repeat="item.type as item in possibleType | filter: $select.search">\n <div ng-bind-html="item.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END TYPE -->\n\n <!-- START SELECTOR -->\n <div class="form-group" data-ng-if="item.type === \'mouseOver\'" data-ng-class="{\'has-error\': (form.selector.$touched || form.$submitted) && form.selector.$invalid}">\n <label class="control-label">{{\'APPLICATION_SELECTOR\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="selector" placeholder="{{\'APPLICATION_SELECTOR\' | translate}}" class="form-control" data-ng-model="item.selector" required/>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SELECTOR -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-if="item.type === \'timeout\'" data-ng-class="{\'has-error\': (form.timeout.$touched || form.$submitted) && form.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="item.timeout" min="0" required/>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/chat/website/view/proactive/list/list.html",'<div class="row" data-ng-init="initProactiveActions()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_PROACTIVE_ACTIONS\' | translate}}</span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="#" data-toggle="dropdown" data-ng-click="createItem()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_PROACTIVE_ACTION\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/chat/website/view/setting/view/view.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body" data-ng-init="initView()">\n <form name="forms.info" data-ng-submit="forms.info.$valid && updateItemChatWebsite()" novalidate>\n <!-- START LIST -->\n <div class="form-group" data-ng-if="license.cm">\n <label class="control-label">{{\'APPLICATION_LIST\' | translate}}</label>\n <div class="input-group">\n\n <ui-select data-ng-model="chatWebsite.ListId" name="list" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_LIST\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="list.id as list in lists | filter: $select.search">\n <div ng-bind-html="list.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n\n <span class="input-group-btn">\n <button type="button" data-ng-click="chatWebsite.ListId = null" class="btn btn-default">\n <span class="glyphicon glyphicon-trash"></span>\n </button>\n </span>\n\n </div>\n </div>\n <!-- END LIST -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/chat/website/view/snippet/view/view.html",'<div class="row" data-ng-init="initView();getServiceMailAccount();">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SNIPPET\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_APPEARANCE\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_FORMS\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_3" data-toggle="tab">{{\'APPLICATION_LABELS\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_4" data-toggle="tab">{{\'APPLICATION_SETTINGS\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_5" data-toggle="tab">{{\'APPLICATION_OFFLINE\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="row">\n <div class="col-md-8">\n <div class="tab-content">\n\n <!-- APPEARANCE TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.formAppearance" data-ng-submit="forms.formAppearance.$valid && updateItem()" novalidate>\n\n <!-- START MAIN COLOR -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAppearance.mainColor.$touched || forms.formAppearance.$submitted) && forms.formAppearance.host.$invalid}">\n <label class="control-label">{{\'APPLICATION_MAIN_COLOR\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input colorpicker type="text" name="mainColor" placeholder="{{\'APPLICATION_MAIN_COLOR\' | translate}}" style="color:{{chatWebsite.color}}" class="form-control" data-ng-model="chatWebsite.color" required/>\n <span data-ng-show="(forms.formAppearance.mainColor.$touched || forms.formAppearance.$submitted) && forms.formAppearance.mainColor.$invalid && forms.formAppearance.mainColor.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MAIN COLOR -->\n\n <!-- START FOCUS COLOR -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAppearance.focusColor.$touched || forms.formAppearance.$submitted) && forms.formAppearance.focusColor.$invalid}">\n <label class="control-label">{{\'APPLICATION_FOCUS_COLOR\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input colorpicker type="text" name="focusColor" placeholder="{{\'APPLICATION_FOCUS_COLOR\' | translate}}" style="color:{{chatWebsite.color_focus}}" class="form-control" data-ng-model="chatWebsite.color_focus" required/>\n <span data-ng-show="(forms.formAppearance.focusColor.$touched || forms.formAppearance.$submitted) && forms.formAppearance.focusColor.$invalid && forms.formAppearance.focusColor.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END FOCUS COLOR -->\n\n <!-- START BUTTON COLOR -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAppearance.buttonColor.$touched || forms.formAppearance.$submitted) && forms.formAppearance.buttonColor.$invalid}">\n <label class="control-label">{{\'APPLICATION_BUTTON_COLOR\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input colorpicker type="text" name="buttonColor" placeholder="{{\'APPLICATION_BUTTON_COLOR\' | translate}}" style="color:{{chatWebsite.color_button}}" class="form-control" data-ng-model="chatWebsite.color_button" required/>\n <span data-ng-show="(forms.formAppearance.buttonColor.$touched || forms.formAppearance.$submitted) && forms.formAppearance.buttonColor.$invalid && forms.formAppearance.buttonColor.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END BUTTON COLOR -->\n\n <!-- START HEADER SHAPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAppearance.headerShape.$touched || forms.formAppearance.$submitted) && forms.formAppearance.headerShape.$invalid}">\n <label class="control-label">{{\'APPLICATION_HEADER_SHAPE\' | translate}}</label>\n <!-- <input colorpicker type="text" name="animationToggle" placeholder="{{\'APPLICATION_BUTTON_COLOR\' | translate}}" class="form-control" data-ng-model="chatWebsite.animation" required/> -->\n <ui-select data-ng-model="chatWebsite.header_shape" name="headerShape" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$translate.instant(\'APPLICATION_\' + $select.selected.toUpperCase())}}</ui-select-match>\n <ui-select-choices repeat="headerShape in [\'rounded\',\'squared\'] | filter: $select.search">\n <div ng-bind-html="$translate.instant(\'APPLICATION_\' + headerShape.toUpperCase()) | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END HEADER SHAPE -->\n\n <!-- START ANIMATION TOGGLE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAppearance.animationToggle.$touched || forms.formAppearance.$submitted) && forms.formAppearance.animationToggle.$invalid}">\n <label class="control-label">{{\'APPLICATION_ANIMATION\' | translate}}</label></br>\n <!-- <input colorpicker type="text" name="animationToggle" placeholder="{{\'APPLICATION_BUTTON_COLOR\' | translate}}" class="form-control" data-ng-model="chatWebsite.animation" required/> -->\n <input\n bs-switch\n class="form-control"\n ng-model="chatWebsite.animation"\n type="checkbox"\n name="animationToggle"\n switch-active="{{ true }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ switchElement.onColor }}"\n switch-off-color="{{ switchElement.offColor }}"\n switch-animate="{{ switchElement.animate }}"\n switch-size="{{ switchElement.size }}"\n switch-label="{{ switchElement.label }}"\n switch-icon="{{ switchElement.icon }}"\n switch-radio-off="{{ switchElement.radioOff }}"\n switch-label-width="{{ switchElement.labelWidth }}"\n switch-handle-width="{{ switchElement.handleWidth }}">\n </div>\n <!-- END ANIMATION TOGGLE -->\n\n <!-- START RATING TOGGLE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAppearance.ratingEname.$touched || forms.formAppearance.$submitted) && forms.formAppearance.ratingEname.$invalid}">\n <label class="control-label">{{\'APPLICATION_ENABLE_RATING\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="chatWebsite.rating_enable"\n type="checkbox"\n name="ratingEname"\n switch-active="{{ true }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ switchElement.onColor }}"\n switch-off-color="{{ switchElement.offColor }}"\n switch-animate="{{ switchElement.animate }}"\n switch-size="{{ switchElement.size }}"\n switch-label="{{ switchElement.label }}"\n switch-icon="{{ switchElement.icon }}"\n switch-radio-off="{{ switchElement.radioOff }}"\n switch-label-width="{{ switchElement.labelWidth }}"\n switch-handle-width="{{ switchElement.handleWidth }}">\n </div>\n <!-- END RATING TOGGLE -->\n\n <div class="portlet-title tabbable-line margin-top20">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_WHITE_LABEL\' | translate}}</span>\n </div>\n </div>\n\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DEFAULT\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="chatWebsite.defaultWhiteLabel"\n data-ng-init="chatWebsite.defaultWhiteLabel = license.custom ? chatWebsite.defaultWhiteLabel : true"\n type="checkbox"\n name="defaultWhitelabel"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <!-- END DEFAULT -->\n <!-- START LABEL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAppearance.whiteLabel.$touched || forms.formAppearance.$submitted) && forms.formAppearance.whiteLabel.$invalid}">\n <label class="control-label">{{\'APPLICATION_WHITE_LABEL\' | translate}}<span data-ng-if="!chatWebsite.defaultWhiteLabel" class="required" aria-required="true">*</span></label>\n <textarea type="password" name="whiteLabel" placeholder="{{\'APPLICATION_WHITE_LABEL\' | translate}}" class="form-control" data-ng-model="chatWebsite.whiteLabel" data-ng-disabled="chatWebsite.defaultWhiteLabel || !license.custom" data-ng-required="!chatWebsite.defaultWhiteLabel && license.custom"/></textarea>\n <span data-ng-show="(forms.formAppearance.whiteLabel.$touched || forms.formAppearance.$submitted) && forms.formAppearance.whiteLabel.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END LABEL -->\n\n <div class="portlet-title tabbable-line margin-top20">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_LOGO\' | translate}}</span>\n </div>\n </div>\n <div class="row">\n\n <div class="form-group col-md-6 col-sm-6">\n <label class="control-label">{{\'APPLICATION_DEFAULT\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="chatWebsite.defaultLogo"\n data-ng-init="chatWebsite.defaultLogo = license.custom ? chatWebsite.defaultLogo : true"\n type="checkbox"\n name="defaultLogo"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <!-- END STATUS -->\n <div class="form-group col-md-6 col-sm-6" data-ng-if="!chatWebsite.defaultLogo && license.custom">\n <div class="fileinput fileinput-new" data-provides="fileinput">\n <div class="fileinput-new thumbnail" style="width: 200px; height: 150px;">\n <img ng-src="assets/images/media/noProfileImage.png" alt=""/>\n </div>\n <div class="fileinput-preview fileinput-exists thumbnail" style="max-width: 200px; max-height: 150px;">\n </div>\n <div>\n <span class="btn default btn-file" data-ng-show="!uploader.queue[0]">\n <span> {{ \'APPLICATION_SELECT_IMAGE\' | translate }} </span>\n <input type="file" nv-file-select="" uploader="uploader"/><br/>\n </span>\n <button type="button" class="btn default" data-ng-show="uploader.queue[0]" data-dismiss="fileinput" ng-click="uploader.queue[0].remove()">\n {{ \'APPLICATION_REMOVE\' | translate }}\n <!-- </button>\n <button type="button" class="btn green-haze" data-ng-show="uploader.queue[0]" data-ng-click="uploader.queue[0].upload()" ng-disabled="uploader.queue[0].isReady || uploader.queue[0].isUploading || uploader.queue[0].isSuccess">\n {{ \'APPLICATION_CONFIRM\' | translate }}\n </button> -->\n </div>\n <p>\n </br> {{ \'MESSAGE_SUPPORTED_FORMATS\' | translate }} <b>jpg, png, jpeg</b>.\n </p>\n </div>\n </div>\n </div>\n <div class="row">\n <div class="col-md-2">\n <table class="table" border="0">\n <tbody>\n <tr data-ng-repeat="item in uploader.queue">\n <td style="border-top-style:none">\n <strong>\n {{ item.file.name }}\n </strong>\n </td>\n <td data-ng-show="uploader.isHTML5" nowrap style="border-top-style:none">\n {{ item.file.size/1024/1024|number:2 }} MB\n </td>\n <td nowrap style="border-top-style:none">\n <button type="button" class="btn btn-danger btn-xs" data-ng-click="item.remove()">\n <span class="glyphicon glyphicon-trash"></span> Remove\n </button>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n\n <input class="btn green-haze" type="submit" data-ng-click="uploader.queue[0] && uploader.queue[0].upload()" data-ng-disabled="uploader.queue[0].isReady || uploader.queue[0].isUploading || uploader.queue[0].isSuccess" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END APPEARANCE TAB -->\n\n <!-- FORMS TAB -->\n <div class="tab-pane" id="tab_1_2">\n <form name="forms.formFunctionality" data-ng-submit="forms.formFunctionality.$valid && updateItem()" novalidate>\n\n <!-- START DOWNLOAD TRANSCRIPT -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DOWNLOAD_TRANSCRIPT\' | translate}}</label>\n </br>\n <input\n bs-switch\n class="form-control"\n ng-model="chatWebsite.download_transcript"\n type="checkbox"\n switch-active="true"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ switchElement.onColor }}"\n switch-off-color="{{ switchElement.offColor }}"\n switch-animate="{{ switchElement.animate }}"\n switch-size="{{ switchElement.size }}"\n switch-label="{{ switchElement.label }}"\n switch-icon="{{ switchElement.icon }}"\n switch-radio-off="{{ switchElement.radioOff }}"\n switch-label-width="{{ switchElement.labelWidth }}"\n switch-handle-width="{{ switchElement.handleWidth }}">\n </div>\n <!-- END DOWNLOAD TRANSCRIPT -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END FORMS TAB -->\n\n <!-- STRINGS TAB -->\n <div class="tab-pane" id="tab_1_3">\n <form name="forms.formLabel" data-ng-submit="forms.formLabel.$valid && updateItem()" novalidate>\n\n <h4 class="block" data-ng-show="statePreview.state == \'online\'">{{\'APPLICATION_ONLINE_STATE\' | translate}}</h4>\n\n <!-- START HEADER ONLINE -->\n <div class="form-group" data-ng-show="statePreview.state == \'online\'" data-ng-class="{\'has-error\': (forms.formLabel.headerOnline.$touched || forms.formLabel.$submitted) && forms.formLabel.headerOnline.$invalid}">\n <label class="control-label">{{\'APPLICATION_HEADER_ONLINE\' | translate}}</label>\n <input type="text" name="headerOnline" placeholder="{{\'APPLICATION_HEADER_ONLINE\' | translate}}" class="form-control" data-ng-model="chatWebsite.header_online"/>\n </div>\n <!-- END HEADER ONLINE -->\n\n <!-- START ONLINE MESSAGE-->\n <div class="form-group" data-ng-show="statePreview.state == \'online\'" data-ng-class="{\'has-error\': (forms.formLabel.onlineMessage.$touched || forms.formLabel.$submitted) && forms.formLabel.onlineMessage.$invalid}">\n <label class="control-label">{{\'APPLICATION_ONLINE_MESSAGE\' | translate}}</label>\n <input type="text" name="onlineMessage" placeholder="{{\'APPLICATION_ONLINE_MESSAGE\' | translate}}" class="form-control" data-ng-model="chatWebsite.online_message"/>\n </div>\n <!-- END HEADER ONLINE -->\n\n <!-- START USERNAME TITLE -->\n <div class="form-group" data-ng-show="statePreview.state == \'online\' || statePreview.state == \'offline\'" data-ng-class="{\'has-error\': (forms.formLabel.nameTitle.$touched || forms.formLabel.$submitted) && forms.formLabel.nameTitle.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME_TITLE\' | translate}}</label>\n <input type="text" name="nameTitle" placeholder="{{\'APPLICATION_NAME_TITLE\' | translate}}" class="form-control" data-ng-model="chatWebsite.name_title"/>\n </div>\n <!-- END USERNAME TITLE -->\n\n <!-- START USERNAME PLACEHOLDER -->\n <div class="form-group" data-ng-show="statePreview.state == \'online\' || statePreview.state == \'offline\'" data-ng-class="{\'has-error\': (forms.formLabel.usernamePlaceholder.$touched || forms.formLabel.$submitted) && forms.formLabel.usernamePlaceholder.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME_PLACEHOLDER\' | translate}}</label>\n <input type="text" name="usernamePlaceholder" placeholder="{{\'APPLICATION_NAME_PLACEHOLDER\' | translate}}" class="form-control" data-ng-model="chatWebsite.username_placeholder"/>\n </div>\n <!-- END USERNAME PLACEHOLDER -->\n\n <!-- START EMAIL TITLE -->\n <div class="form-group" data-ng-show="statePreview.state == \'online\' || statePreview.state == \'offline\'" data-ng-class="{\'has-error\': (forms.formLabel.emailTitle.$touched || forms.formLabel.$submitted) && forms.formLabel.emailTitle.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL_TITLE\' | translate}}</label>\n <input type="text" name="emailTitle" placeholder="{{\'APPLICATION_EMAIL_TITLE\' | translate}}" class="form-control" data-ng-model="chatWebsite.email_title"/>\n </div>\n <!-- END EMAIL TITLE -->\n\n <!-- START EMAIL PLACEHOLDER -->\n <div class="form-group" data-ng-show="statePreview.state == \'online\' || statePreview.state == \'offline\'" data-ng-class="{\'has-error\': (forms.formLabel.emailPlaceholder.$touched || forms.formLabel.$submitted) && forms.formLabel.emailPlaceholder.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL_PLACEHOLDER\' | translate}}</label>\n <input type="text" name="emailPlaceholder" placeholder="{{\'APPLICATION_EMAIL_PLACEHOLDER\' | translate}}" class="form-control" data-ng-model="chatWebsite.email_placeholder"/>\n </div>\n <!-- END EMAIL PLACEHOLDER -->\n\n <!-- START START CHAT BUTTON -->\n <div class="form-group" data-ng-show="statePreview.state == \'online\'" data-ng-class="{\'has-error\': (forms.formLabel.startChatButton.$touched || forms.formLabel.$submitted) && forms.formLabel.startChatButton.$invalid}">\n <label class="control-label">{{\'APPLICATION_START_CHAT_BUTTON\' | translate}}</label>\n <input type="text" name="startChatButton" placeholder="{{\'APPLICATION_START_CHAT_BUTTON\' | translate}}" class="form-control" data-ng-model="chatWebsite.start_chat_button"/>\n </div>\n <!-- END START CHAT BUTTON -->\n\n <h4 class="block" data-ng-show="statePreview.state == \'rating\'">{{\'APPLICATION_RATING_STATE\' | translate}}</h4>\n\n <!-- START RATING MESSAGE -->\n <div class="form-group" data-ng-show="statePreview.state == \'rating\'" data-ng-class="{\'has-error\': (forms.formLabel.ratingMessage.$touched || forms.formLabel.$submitted) && forms.formLabel.ratingMessage.$invalid}">\n <label class="control-label">{{\'APPLICATION_RATING_MESSAGE\' | translate}}</label>\n <input type="text" name="ratingMessage" placeholder="{{\'APPLICATION_RATING_MESSAGE\' | translate}}" class="form-control" data-ng-model="chatWebsite.rating_message"/>\n </div>\n <!-- END RATING MESSAGE -->\n\n <!-- START RATING SEND BUTTON -->\n <div class="form-group" data-ng-show="statePreview.state == \'rating\'" data-ng-class="{\'has-error\': (forms.formLabel.ratingSend.$touched || forms.formLabel.$submitted) && forms.formLabel.ratingSend.$invalid}">\n <label class="control-label">{{\'APPLICATION_RATING_SEND_BUTTON\' | translate}}</label>\n <input type="text" name="ratingSend" placeholder="{{\'APPLICATION_RATING_SEND_BUTTON\' | translate}}" class="form-control" data-ng-model="chatWebsite.rating_send"/>\n </div>\n <!-- END RATING SEND BUTTON -->\n\n <!-- START RATING SKIP BUTTON -->\n <div class="form-group" data-ng-show="statePreview.state == \'rating\'" data-ng-class="{\'has-error\': (forms.formLabel.ratingSkip.$touched || forms.formLabel.$submitted) && forms.formLabel.ratingSkip.$invalid}">\n <label class="control-label">{{\'APPLICATION_RATING_SKIP_BUTTON\' | translate}}</label>\n <input type="text" name="ratingSkip" placeholder="{{\'APPLICATION_RATING_SKIP_BUTTON\' | translate}}" class="form-control" data-ng-model="chatWebsite.rating_skip"/>\n </div>\n <!-- END RATING SKIP BUTTON -->\n\n <h4 class="block" data-ng-show="statePreview.state == \'offline\'">{{\'APPLICATION_OFFLINE_STATE\' | translate}}</h4>\n\n <!-- START HEADER OFFLINE -->\n <div class="form-group" data-ng-show="statePreview.state == \'offline\'" data-ng-class="{\'has-error\': (forms.formLabel.headerOffline.$touched || forms.formLabel.$submitted) && forms.formLabel.headerOnline.$invalid}">\n <label class="control-label">{{\'APPLICATION_HEADER_OFFLINE\' | translate}}</label>\n <input type="text" name="headerOffline" placeholder="{{\'APPLICATION_HEADER_OFFLINE\' | translate}}" class="form-control" data-ng-model="chatWebsite.header_offline"/>\n </div>\n <!-- END HEADER OFFLINE -->\n\n <!-- START OFFLINE MESSAGE-->\n <div class="form-group" data-ng-show="statePreview.state == \'offline\'" data-ng-class="{\'has-error\': (forms.formLabel.offlineMessage.$touched || forms.formLabel.$submitted) && forms.formLabel.offlineMessage.$invalid}">\n <label class="control-label">{{\'APPLICATION_OFFLINE_MESSAGE\' | translate}}</label>\n <input type="text" name="offlineMessage" placeholder="{{\'APPLICATION_OFFLINE_MESSAGE\' | translate}}" class="form-control" data-ng-model="chatWebsite.offline_message"/>\n </div>\n <!-- END OFFLINE MESSAGE -->\n\n <!-- START ENQUIRY MESSAGE TITLE-->\n <div class="form-group" data-ng-show="statePreview.state == \'offline\'" data-ng-class="{\'has-error\': (forms.formLabel.enquiryMessageTitle.$touched || forms.formLabel.$submitted) && forms.formLabel.enquiryMessageTitle.$invalid}">\n <label class="control-label">{{\'APPLICATION_ENQUIRY_MESSAGE_TITLE\' | translate}}</label>\n <input type="text" name="enquiryMessageTitle" placeholder="{{\'APPLICATION_ENQUIRY_MESSAGE_TITLE\' | translate}}" class="form-control" data-ng-model="chatWebsite.message_title"/>\n </div>\n <!-- END ENQUIRY MESSAGE TITLE -->\n\n <!-- START ENQUIRY MESSAGE PLACEHOLDER-->\n <div class="form-group" data-ng-show="statePreview.state == \'offline\'" data-ng-class="{\'has-error\': (forms.formLabel.enquiryMessagePlaceholder.$touched || forms.formLabel.$submitted) && forms.formLabel.enquiryMessagePlaceholder.$invalid}">\n <label class="control-label">{{\'APPLICATION_ENQUIRY_MESSAGE_PLACEHOLDER\' | translate}}</label>\n <input type="text" name="enquiryMessagePlaceholder" placeholder="{{\'APPLICATION_ENQUIRY_MESSAGE_PLACEHOLDER\' | translate}}" class="form-control" data-ng-model="chatWebsite.enquiry_message_placeholder"/>\n </div>\n <!-- END ENQUIRY MESSAGE PLACEHOLDER -->\n\n <!-- START ENQUIRY BUTTON -->\n <div class="form-group" data-ng-show="statePreview.state == \'offline\'" data-ng-class="{\'has-error\': (forms.formLabel.enquiryButton.$touched || forms.formLabel.$submitted) && forms.formLabel.enquiryButton.$invalid}">\n <label class="control-label">{{\'APPLICATION_ENQUIRY_BUTTON\' | translate}}</label>\n <input type="text" name="enquiryButton" placeholder="{{\'APPLICATION_ENQUIRY_BUTTON\' | translate}}" class="form-control" data-ng-model="chatWebsite.enquiry_button"/>\n </div>\n <!-- END ENQUIRY BUTTON -->\n\n <!-- START AGENTS BUSY BUTTON -->\n <div class="form-group" data-ng-show="statePreview.state == \'online\'" data-ng-class="{\'has-error\': (forms.formLabel.agentsBusy.$touched || forms.formLabel.$submitted) && forms.formLabel.agentsBusy.$invalid}">\n <label class="control-label">{{\'APPLICATION_AGENTS_BUSY\' | translate}}</label>\n <input type="text" name="agentsBusy" placeholder="{{\'APPLICATION_AGENTS_BUSY\' | translate}}" class="form-control" data-ng-model="chatWebsite.agents_busy"/>\n </div>\n <!-- END AGENTS BUSY BUTTON -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END STRINGS TAB -->\n\n <!-- SETTINGS TAB -->\n <div class="tab-pane" id="tab_1_4">\n <form name="forms.formSetting" data-ng-submit="forms.formSetting.$valid && updateItem()" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formSetting.name.$touched || forms.formSetting.$submitted) && forms.formSetting.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="chatWebsite.name" required/>\n <span data-ng-show="(forms.formSetting.name.$touched || forms.formSetting.$submitted) && forms.formSettings.name.$invalid && forms.formSetting.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START ADDRESS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formSetting.address.$touched || forms.formSetting.$submitted) && forms.formSetting.address.$invalid}">\n <label class="control-label">{{\'APPLICATION_WEB_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="address" placeholder="{{\'APPLICATION_WEB_ADDRESS\' | translate}}" class="form-control" data-ng-model="chatWebsite.address" required/>\n <span data-ng-show="(forms.formSetting.address.$touched || forms.formSetting.$submitted) && forms.formSetting.address.$invalid && forms.formSetting.address.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END ADDRESS -->\n\n <!-- START REMOTE IP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formSetting.remote.$touched || forms.formSetting.$submitted) && forms.formSetting.remote.$invalid}">\n <label class="control-label">{{\'APPLICATION_MOTION_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="remote" placeholder="{{\'APPLICATION_MOTION_ADDRESS\' | translate}}" class="form-control" data-ng-model="chatWebsite.remote" required/>\n <span data-ng-show="(forms.formSetting.remote.$touched || forms.formSetting.$submitted) && forms.formSetting.remote.$invalid && forms.formSetting.remote.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span class="help-block help-block-info">\n {{\'MESSAGE_MOTION_ADDRESS_FORMAT\' | translate}}\n </span>\n </div>\n <!-- END REMOTE IP -->\n\n <!-- START FIDELITY -->\n <!-- <div class="form-group">\n <label class="control-label">{{\'APPLICATION_FIDELITY\' | translate}}</label></br>\n <input\n bs-switch\n data-ng-model="chatWebsite.fidelity"\n type="checkbox"\n switch-active="{{ fidelitySwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ fidelitySwitch.onColor }}"\n switch-off-color="{{ fidelitySwitch.offColor }}"\n switch-animate="{{ fidelitySwitch.animate }}"\n switch-size="{{ fidelitySwitch.size }}"\n switch-label="{{ fidelitySwitch.label }}"\n switch-icon="{{ fidelitySwitch.icon }}"\n switch-radio-off="{{ fidelitySwitch.radioOff }}"\n switch-label-width="{{ fidelitySwitch.labelWidth }}"\n switch-handle-width="{{ fidelitySwitch.handleWidth }}">\n </div> -->\n <!-- END FIDELITY -->\n\n <!-- START TIMEOUT -->\n <!-- <div class="form-group" data-ng-if="chatWebsite.fidelity" data-ng-class="{\'has-error\': (forms.formSetting.timeout.$touched || forms.formSetting.$submitted) && forms.formSetting.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="0" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="chatWebsite.timeout" required/>\n <span data-ng-show="(forms.formSetting.timeout.$touched || forms.formSetting.$submitted) && forms.formSetting.timeout.$invalid && forms.formSetting.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.formSetting.timeout.$touched || forms.formSetting.$submitted) && forms.formSetting.timeout.$invalid && forms.formSetting.timeout.$error.number" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n </span>\n </div> -->\n <!-- END TIMEOUT -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formSetting.description.$touched || forms.formSetting.$submitted) && forms.formSetting.description.$invalid}">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="chatWebsite.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END SETTINGS TAB -->\n\n <!-- OFFLINE TAB -->\n <div class="tab-pane" id="tab_1_5">\n <form name="forms.formOffline" data-ng-submit="forms.formOffline.$valid && updateItem()" novalidate>\n\n <!-- START ENQUIRY ENABLE -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_ENQUIRY_ENABLED\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="chatWebsite.enquiry_enable"\n type="checkbox"\n switch-active="{{ enquirySwitch.isActive }}"\n switch-on-text="{{ enquirySwitch.onText }}"\n switch-off-text="{{ enquirySwitch.offText }}"\n switch-on-color="{{ enquirySwitch.onColor }}"\n switch-off-color="{{ enquirySwitch.offColor }}"\n switch-animate="{{ enquirySwitch.animate }}"\n switch-size="{{ enquirySwitch.size }}"\n switch-label="{{ enquirySwitch.label }}"\n switch-icon="{{ enquirySwitch.icon }}"\n switch-radio-off="{{ enquirySwitch.radioOff }}"\n switch-label-width="{{ enquirySwitch.labelWidth }}"\n switch-handle-width="{{ enquirySwitch.handleWidth }}">\n </div>\n <!-- END ENQUIRY ENABLE -->\n\n <!-- START ENQUIRY FORWARDING -->\n <div class="form-group" data-ng-if="chatWebsite.enquiry_enable">\n <label class="control-label">{{\'APPLICATION_ENQUIRY_FORWARDING\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="chatWebsite.enquiry_forwarding"\n type="checkbox"\n switch-active="{{ enquirySwitch.isActive }}"\n switch-on-text="{{ enquirySwitch.onText }}"\n switch-off-text="{{ enquirySwitch.offText }}"\n switch-on-color="{{ enquirySwitch.onColor }}"\n switch-off-color="{{ enquirySwitch.offColor }}"\n switch-animate="{{ enquirySwitch.animate }}"\n switch-size="{{ enquirySwitch.size }}"\n switch-label="{{ enquirySwitch.label }}"\n switch-icon="{{ enquirySwitch.icon }}"\n switch-radio-off="{{ enquirySwitch.radioOff }}"\n switch-label-width="{{ enquirySwitch.labelWidth }}"\n switch-handle-width="{{ enquirySwitch.handleWidth }}">\n </div>\n <!-- END ENQUIRY FORWARDING -->\n\n <div class="note note-warning" data-ng-if="!isServiceMailAccount">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_SERVICE_MAIL_ACCOUNT\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/setting/smtp/view">SMTP</a> {{\'APPLICATION_OR\' | translate}} <a href="/channels/mail/accounts/list">{{\'APPLICATION_MAIL_ACCOUNTS\' | translate}}</a>\n </p>\n </div>\n\n <!-- START REMOTE IP -->\n <div class="form-group" data-ng-if="chatWebsite.enquiry_enable && chatWebsite.enquiry_forwarding" data-ng-class="{\'has-error\': (forms.formOffline.forwardingAddress.$touched || forms.formOffline.$submitted) && forms.formSetting.forwardingAddress.$invalid}">\n <label class="control-label">{{\'APPLICATION_ENQUIRY_FORWARDING_ADDRESS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="forwardingAddress" placeholder="{{\'APPLICATION_ADDRESS\' | translate}}" class="form-control" data-ng-model="chatWebsite.enquiry_forwarding_address" required/>\n <span data-ng-show="(forms.formOffline.forwardingAddress.$touched || forms.formOffline.$submitted) && forms.formOffline.forwardingAddress.$invalid && forms.formOffline.forwardingAddress.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END REMOTE IP -->\n\n <!-- START HEADER SHAPE -->\n <div class="form-group" data-ng-if="chatWebsite.enquiry_enable && chatWebsite.enquiry_forwarding" data-ng-class="{\'has-error\': (forms.formOffline.OfflineTemplateId.$touched || forms.formOffline.$submitted) && forms.formOffline.OfflineTemplateId.$invalid}">\n <label class="control-label">{{\'APPLICATION_TEMPLATE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="chatWebsite.OfflineTemplateId" name="OfflineTemplateId" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n <div ng-bind-html="template.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.formOffline.OfflineTemplateId.$touched || forms.formOffline.$submitted) && forms.formOffline.OfflineTemplateId.$invalid && forms.formOffline.OfflineTemplateId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END HEADER SHAPE -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END OFFLINE TAB -->\n </div>\n </div>\n <div class="col-md-4">\n <!-- START STATE -->\n <div class="form-group">\n <!-- <label class="control-label">{{\'APPLICATION_ANIMATION\' | translate}}</label> -->\n <!-- <input colorpicker type="text" name="animationToggle" placeholder="{{\'APPLICATION_BUTTON_COLOR\' | translate}}" class="form-control" data-ng-model="chatWebsite.animation" required/> -->\n <ui-select data-ng-model="statePreview.state" name="statePreview" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="statePreview in [\'online\',\'rating\',\'offline\'] | filter: $select.search">\n <div ng-bind-html="statePreview | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END STATE -->\n <preview></preview>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n'), -a.put("app/channels/chat/website/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-bubble"></i>\n <a href="#">{{ \'APPLICATION_CHAT\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-globe"></i>\n <a href="/channels/chat/websites/list">{{ \'APPLICATION_WEB_SITES\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <a href="#">{{chatWebsite.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img src="assets/images/media/website.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{chatWebsite.name}}\n </div>\n <div class="profile-usertitle-job">\n {{chatWebsite.address}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.includes(\'main.channels.chat.websites.view.embedding\')}">\n <a ng-href="/channels/chat/websites/view/{{chatWebsite.id}}/embedding/view">\n <i class="fa fa-code"></i>\n {{ \'APPLICATION_EMBEDDING\' | translate }} </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.channels.chat.websites.view.snippet\')}">\n <a ng-href="/channels/chat/websites/view/{{chatWebsite.id}}/snippet/view">\n <i class="icon-note"></i>\n {{ \'APPLICATION_SNIPPET\' | translate }} </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.channels.chat.websites.view.form\')}">\n <a ng-href="/channels/chat/websites/view/{{chatWebsite.id}}/forms/view">\n <i class="icon-list"></i>\n {{ \'APPLICATION_FORMS\' | translate }} </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.channels.chat.websites.view.proactive\')}">\n <a ng-href="/channels/chat/websites/view/{{chatWebsite.id}}/proactive/list">\n <i class="icon-target"></i>\n {{ \'APPLICATION_PROACTIVE_ACTIONS\' | translate }} </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.channels.chat.websites.view.actions\')}">\n <a ng-href="/channels/chat/websites/view/{{chatWebsite.id}}/actions/list">\n <i class="icon-directions"></i>\n {{ \'APPLICATION_ACTIONS\' | translate }} </a>\n </li>\n <li ng-class="{active: $state.is(\'main.channels.chat.websites.view.hooks\')}">\n <a href="/channels/chat/websites/view/{{chatWebsite.id}}/hooks">\n <i class="fa fa-code"></i>\n {{\'APPLICATION_HOOKS\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.channels.chat.websites.view.dispositions\')}">\n <a ng-href="/channels/chat/websites/view/{{chatWebsite.id}}/dispositions">\n <i class="icon-target"></i>\n {{ \'APPLICATION_DISPOSITIONS\' | translate }} </a>\n </li>\n <li ng-class="{active: $state.is(\'main.channels.chat.websites.view.settings\')}">\n <a href="/channels/chat/websites/view/{{chatWebsite.id}}/settings">\n <i class="icon-settings"></i>\n {{\'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/chat/website/wizard/wizard.html",'<!-- BEGIN PAGE HEADER-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-bubble"></i>\n <a href="#">{{ \'APPLICATION_CHAT\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-globe"></i>\n <a href="/channels/chat/websites/list">{{ \'APPLICATION_WEB_SITES\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n<!-- END PAGE HEADER-->\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initWizard();">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_WEB_SITE\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_WEB_SITE_INFO\' | translate}}" canexit="exitValidation(forms.formSetting.$valid)">\n <form name="forms.formSetting" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formSetting.name.$touched || forms.formSetting.$submitted) && forms.formSetting.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="forms.formSetting.name.$touched && !forms.formSettings.name.$valid && forms.formSetting.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START ADDRESS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formSetting.address.$touched || forms.formSetting.$submitted) && forms.formSetting.address.$invalid}">\n <label class="control-label">{{\'APPLICATION_WEB_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="address" placeholder="{{\'APPLICATION_WEB_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.address" required/>\n <span data-ng-show="(forms.formSetting.address.$touched || forms.formSetting.$submitted) && forms.formSetting.address.$invalid && forms.formSetting.address.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END ADDRESS -->\n\n <!-- START REMOTE IP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formSetting.remote.$touched || forms.formSetting.$submitted) && forms.formSetting.remote.$invalid}">\n <label class="control-label">{{\'APPLICATION_MOTION_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="remote" placeholder="{{\'APPLICATION_MOTION_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.remote" required/>\n <span class="help-block help-block-info">\n {{\'MESSAGE_MOTION_ADDRESS_FORMAT\' | translate}}\n </span>\n <span data-ng-show="(forms.formSetting.remote.$touched || forms.formSetting.$submitted) && forms.formSetting.remote.$invalid && forms.formSetting.remote.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END REMOTE IP -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n </div>\n <!-- END DESCRIPTION -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_WEB_SITE_APPEARANCE\' | translate}}" canexit="exitValidation(forms.formAppearance.$valid)">\n <form name="forms.formAppearance" novalidate>\n\n <!-- START MAIN COLOR -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAppearance.mainColor.$touched || forms.formAppearance.$submitted) && forms.formAppearance.host.$invalid}">\n <label class="control-label">{{\'APPLICATION_MAIN_COLOR\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input colorpicker type="text" name="mainColor" placeholder="{{\'APPLICATION_MAIN_COLOR\' | translate}}" style="color:{{item.color}}" class="form-control" data-ng-model="item.color" required/>\n <span data-ng-show="(forms.formAppearance.mainColor.$touched || forms.formAppearance.$submitted) && forms.formAppearance.mainColor.$invalid && forms.formAppearance.mainColor.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MAIN COLOR -->\n\n <!-- START FOCUS COLOR -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAppearance.focusColor.$touched || forms.formAppearance.$submitted) && forms.formAppearance.focusColor.$invalid}">\n <label class="control-label">{{\'APPLICATION_FOCUS_COLOR\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input colorpicker type="text" name="focusColor" placeholder="{{\'APPLICATION_FOCUS_COLOR\' | translate}}" style="color:{{item.color_focus}}" class="form-control" data-ng-model="item.color_focus" required/>\n <span data-ng-show="(forms.formAppearance.focusColor.$touched || forms.formAppearance.$submitted) && forms.formAppearance.focusColor.$invalid && forms.formAppearance.focusColor.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END FOCUS COLOR -->\n\n <!-- START BUTTON COLOR -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAppearance.buttonColor.$touched || forms.formAppearance.$submitted) && forms.formAppearance.buttonColor.$invalid}">\n <label class="control-label">{{\'APPLICATION_BUTTON_COLOR\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input colorpicker type="text" name="buttonColor" placeholder="{{\'APPLICATION_BUTTON_COLOR\' | translate}}" style="color:{{item.color_button}}" class="form-control" data-ng-model="item.color_button" required/>\n <span data-ng-show="(forms.formAppearance.buttonColor.$touched || forms.formAppearance.$submitted) && forms.formAppearance.buttonColor.$invalid && forms.formAppearance.buttonColor.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END BUTTON COLOR -->\n\n <!-- START HEADER SHAPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAppearance.headerShape.$touched || forms.formAppearance.$submitted) && forms.formAppearance.headerShape.$invalid}">\n <label class="control-label">{{\'APPLICATION_HEADER_SHAPE\' | translate}}</label>\n <!-- <input colorpicker type="text" name="animationToggle" placeholder="{{\'APPLICATION_BUTTON_COLOR\' | translate}}" class="form-control" data-ng-model="item.animation" required/> -->\n <ui-select data-ng-model="item.header_shape" name="headerShape" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$translate.instant(\'APPLICATION_\' + $select.selected.toUpperCase())}}</ui-select-match>\n <ui-select-choices repeat="headerShape in [\'rounded\',\'squared\'] | filter: $select.search">\n <div ng-bind-html="$translate.instant(\'APPLICATION_\' + headerShape.toUpperCase()) | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END HEADER SHAPE -->\n\n <!-- START ANIMATION TOGGLE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAppearance.animationToggle.$touched || forms.formAppearance.$submitted) && forms.formAppearance.animationToggle.$invalid}">\n <label class="control-label">{{\'APPLICATION_ANIMATION\' | translate}}</label>\n <ui-select data-ng-model="item.animation" name="animationToggle" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected ? \'On\' : \'Off\'}}</ui-select-match>\n <ui-select-choices repeat="filter in [true,false] | filter: $select.search">\n <div ng-bind-html="filter ? \'On\' : \'Off\' | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END ANIMATION TOGGLE -->\n\n <!-- START ANIMATION TOGGLE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAppearance.enableRating.$touched || forms.formAppearance.$submitted) && forms.formAppearance.enableRating.$invalid}">\n <label class="control-label">{{\'APPLICATION_ENABLE_RATING\' | translate}}</label>\n <ui-select data-ng-model="item.rating_enable" name="enableRating" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected ? \'On\' : \'Off\'}}</ui-select-match>\n <ui-select-choices repeat="filter in [true,false] | filter: $select.search">\n <div ng-bind-html="filter ? \'On\' : \'Off\' | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END ANIMATION TOGGLE -->\n\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_LABELS\' | translate}}" canexit="exitValidation(forms.formLabel.$valid)">\n <form name="forms.formLabel" novalidate>\n\n <!-- START HEADER ONLINE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.headerOnline.$touched || forms.formLabel.$submitted) && forms.formLabel.headerOnline.$invalid}">\n <label class="control-label">{{\'APPLICATION_HEADER_ONLINE\' | translate}}</label>\n <input type="text" name="headerOnline" placeholder="{{\'APPLICATION_HEADER_ONLINE\' | translate}}" class="form-control" data-ng-model="item.header_online"/>\n </div>\n <!-- END HEADER ONLINE -->\n\n <!-- START ONLINE MESSAGE-->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.onlineMessage.$touched || forms.formLabel.$submitted) && forms.formLabel.onlineMessage.$invalid}">\n <label class="control-label">{{\'APPLICATION_ONLINE_MESSAGE\' | translate}}</label>\n <input type="text" name="onlineMessage" placeholder="{{\'APPLICATION_ONLINE_MESSAGE\' | translate}}" class="form-control" data-ng-model="item.online_message"/>\n </div>\n <!-- END HEADER ONLINE -->\n\n <!-- START USERNAME TITLE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.nameTitle.$touched || forms.formLabel.$submitted) && forms.formLabel.nameTitle.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME_TITLE\' | translate}}</label>\n <input type="text" name="nameTitle" placeholder="{{\'APPLICATION_NAME_TITLE\' | translate}}" class="form-control" data-ng-model="item.name_title"/>\n </div>\n <!-- END USERNAME TITLE -->\n\n <!-- START USERNAME PLACEHOLDER -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.usernamePlaceholder.$touched || forms.formLabel.$submitted) && forms.formLabel.usernamePlaceholder.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME_PLACEHOLDER\' | translate}}</label>\n <input type="text" name="usernamePlaceholder" placeholder="{{\'APPLICATION_NAME_PLACEHOLDER\' | translate}}" class="form-control" data-ng-model="item.username_placeholder"/>\n </div>\n <!-- END USERNAME PLACEHOLDER -->\n\n <!-- START EMAIL TITLE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.emailTitle.$touched || forms.formLabel.$submitted) && forms.formLabel.emailTitle.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL_TITLE\' | translate}}</label>\n <input type="text" name="emailTitle" placeholder="{{\'APPLICATION_EMAIL_TITLE\' | translate}}" class="form-control" data-ng-model="item.email_title"/>\n </div>\n <!-- END EMAIL TITLE -->\n\n <!-- START EMAIL PLACEHOLDER -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.emailPlaceholder.$touched || forms.formLabel.$submitted) && forms.formLabel.emailPlaceholder.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL_PLACEHOLDER\' | translate}}</label>\n <input type="text" name="emailPlaceholder" placeholder="{{\'APPLICATION_EMAIL_PLACEHOLDER\' | translate}}" class="form-control" data-ng-model="item.email_placeholder"/>\n </div>\n <!-- END EMAIL PLACEHOLDER -->\n\n <!-- START START CHAT BUTTON -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.startChatButton.$touched || forms.formLabel.$submitted) && forms.formLabel.startChatButton.$invalid}">\n <label class="control-label">{{\'APPLICATION_START_CHAT_BUTTON\' | translate}}</label>\n <input type="text" name="startChatButton" placeholder="{{\'APPLICATION_START_CHAT_BUTTON\' | translate}}" class="form-control" data-ng-model="item.start_chat_button"/>\n </div>\n <!-- END START CHAT BUTTON -->\n\n <!-- START RATING MESSAGE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.ratingMessage.$touched || forms.formLabel.$submitted) && forms.formLabel.ratingMessage.$invalid}">\n <label class="control-label">{{\'APPLICATION_RATING_MESSAGE\' | translate}}</label>\n <input type="text" name="ratingMessage" placeholder="{{\'APPLICATION_RATING_MESSAGE\' | translate}}" class="form-control" data-ng-model="item.rating_message"/>\n </div>\n <!-- END RATING MESSAGE -->\n\n <!-- START RATING START TEXT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.ratingSend.$touched || forms.formLabel.$submitted) && forms.formLabel.ratingSend.$invalid}">\n <label class="control-label">{{\'APPLICATION_RATING_SEND_BUTTON\' | translate}}</label>\n <input type="text" name="ratingSend" placeholder="{{\'APPLICATION_RATING_SEND_BUTTON\' | translate}}" class="form-control" data-ng-model="item.rating_send"/>\n </div>\n <!-- END RATING START TEXT -->\n\n <!-- START RATING MESSAGE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.ratingSkip.$touched || forms.formLabel.$submitted) && forms.formLabel.ratingSkip.$invalid}">\n <label class="control-label">{{\'APPLICATION_RATING_SKIP_BUTTON\' | translate}}</label>\n <input type="text" name="ratingSkip" placeholder="{{\'APPLICATION_RATING_SKIP_BUTTON\' | translate}}" class="form-control" data-ng-model="item.rating_skip"/>\n </div>\n <!-- END RATING MESSAGE -->\n\n <!-- START HEADER OFFLINE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.headerOffline.$touched || forms.formLabel.$submitted) && forms.formLabel.headerOnline.$invalid}">\n <label class="control-label">{{\'APPLICATION_HEADER_OFFLINE\' | translate}}</label>\n <input type="text" name="headerOffline" placeholder="{{\'APPLICATION_HEADER_OFFLINE\' | translate}}" class="form-control" data-ng-model="item.header_offline"/>\n </div>\n <!-- END HEADER OFFLINE -->\n\n <!-- START OFFLINE MESSAGE-->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.offlineMessage.$touched || forms.formLabel.$submitted) && forms.formLabel.onlineMessage.$invalid}">\n <label class="control-label">{{\'APPLICATION_OFFLINE_MESSAGE\' | translate}}</label>\n <input type="text" name="offlineMessage" placeholder="{{\'APPLICATION_OFFLINE_MESSAGE\' | translate}}" class="form-control" data-ng-model="item.offline_message"/>\n </div>\n <!-- END OFFLINE MESSAGE -->\n\n <!-- START ENQUIRY MESSAGE TITLE-->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.enquiryMessageTitle.$touched || forms.formLabel.$submitted) && forms.formLabel.enquiryMessageTitle.$invalid}">\n <label class="control-label">{{\'APPLICATION_ENQUIRY_MESSAGE_TITLE\' | translate}}</label>\n <input type="text" name="enquiryMessageTitle" placeholder="{{\'APPLICATION_ENQUIRY_MESSAGE_TITLE\' | translate}}" class="form-control" data-ng-model="item.message_title"/>\n </div>\n <!-- END ENQUIRY MESSAGE TITLE -->\n\n <!-- START ENQUIRY MESSAGE PLACEHOLDER-->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.enquiryMessagePlaceholder.$touched || forms.formLabel.$submitted) && forms.formLabel.onlineMessage.$invalid}">\n <label class="control-label">{{\'APPLICATION_ENQUIRY_MESSAGE_PLACEHOLDER\' | translate}}</label>\n <input type="text" name="enquiryMessagePlaceholder" placeholder="{{\'APPLICATION_ENQUIRY_MESSAGE_PLACEHOLDER\' | translate}}" class="form-control" data-ng-model="item.enquiry_message_placeholder"/>\n </div>\n <!-- END ENQUIRY MESSAGE PLACEHOLDER -->\n\n <!-- START ENQUIRY BUTTON -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.enquiryButton.$touched || forms.formLabel.$submitted) && forms.formLabel.enquiryButton.$invalid}">\n <label class="control-label">{{\'APPLICATION_ENQUIRY_BUTTON\' | translate}}</label>\n <input type="text" name="enquiryButton" placeholder="{{\'APPLICATION_ENQUIRY_BUTTON\' | translate}}" class="form-control" data-ng-model="item.enquiry_button"/>\n </div>\n <!-- END ENQUIRY BUTTON -->\n\n <!-- START AGENTS BUSY BUTTON -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.agentsBusy.$touched || forms.formLabel.$submitted) && forms.formLabel.agentsBusy.$invalid}">\n <label class="control-label">{{\'APPLICATION_AGENTS_BUSY\' | translate}}</label>\n <input type="text" name="agentsBusy" placeholder="{{\'APPLICATION_AGENTS_BUSY\' | translate}}" class="form-control" data-ng-model="item.agents_busy"/>\n </div>\n <!-- END AGENTS BUSY BUTTON -->\n\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_FORMS\' | translate}}" canexit="exitValidation(forms.formAppearance.$valid)">\n <form name="forms.formFunctionality" novalidate>\n\n <!-- START DOWNLOAD TRANSCRIPT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formFunctionality.animationToggle.$touched || forms.formFunctionality.$submitted) && forms.formFunctionality.animationToggle.$invalid}">\n <label class="control-label">{{\'APPLICATION_DOWNLOAD_TRANSCRIPT\' | translate}}</label>\n <ui-select data-ng-model="item.download_transcript" name="downloadTranscript" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected ? \'On\' : \'Off\'}}</ui-select-match>\n <ui-select-choices repeat="downloadTranscript in [true, false] | filter: $select.search">\n <div ng-bind-html="downloadTranscript ? \'On\' : \'Off\' | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END DOWNLOAD TRANSCRIPT -->\n\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/fax/account/list/list.create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_FAX_ACCOUNT\' | translate }}</h3>\n</div>\n<div class="modal-body" data-ng-init="initWizard();">\n <form name="form" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.$submitted || form.name.$touched) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="form.name.$error.required && (form.$submitted || form.name.$touched)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START TRUNKS -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.$submitted || form.trunk.$touched) && form.trunk.$invalid}">\n <label class="control-label">{{\'APPLICATION_TRUNK\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.TrunkName" name="trunk" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_TRUNK\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="trunk.name as trunk in trunks | filter: $select.search">\n <div data-ng-bind="trunk.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="trunks.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_TRUNKS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/trunks/list">{{\'APPLICATION_INTERVALS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="form.trunk.$error.required && (form.$submitted || form.trunk.$touched)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- START TRUNKS -->\n\n <!-- START LOCALSTATIONID -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.$submitted || form.localstationid.$touched) && form.localstationid.$invalid}">\n <label class="control-label">{{\'APPLICATION_LOCALSTATIONID\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="localstationid" placeholder="{{\'APPLICATION_LOCALSTATIONID\' | translate}}" class="form-control" data-ng-model="item.localstationid" required/>\n <span data-ng-show="form.localstationid.$error.required && (form.$submitted || form.localstationid.$touched)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span class="help-block">\n {{\'DESCRIPTION_LOCALSTATIONID\' | translate}}.\n </span>\n </div>\n <!-- END LOCALSTATIONID -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/fax/account/list/list.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-fax"></i>\n <a href="#">{{ \'APPLICATION_FAX\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-notebook"></i>\n <a href="/channels/fax/accounts/list">{{ \'APPLICATION_ACCOUNTS\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACCOUNTS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <button type="button" class="btn green-jungle" data-toggle="dropdown" data-hover="dropdown" data-delay="1000" data-close-others="true" aria-expanded="true">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_ACCOUNT\' | translate }} <i class="fa fa-angle-down"></i>\n </button>\n <ul class="dropdown-menu" role="menu">\n <li>\n <a href="/channels/fax/accounts/wizard">\n {{ \'APPLICATION_STANDARD\' | translate }}\n </a>\n </li>\n <li>\n <a href="#" data-ng-click="createItem()">\n {{ \'APPLICATION_QUICK\' | translate }}\n </a>\n </li>\n </ul>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'), -a.put("app/channels/fax/account/view/action/list/list.html",'<div class="row" data-ng-init="initActons()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_ACTIONS\' | translate}}</span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="/channels/fax/accounts/view/{{account.id}}/actions/wizard" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_ACTION\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/fax/account/view/action/view/view.html",'\n<div class="row" data-ng-init="initAction()">\n <div class="col-md-12">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-directions font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACTION\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <form name="forms.settings" data-ng-submit="forms.settings.$valid && updateItem()" novalidate>\n <!-- START APP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app.$touched || forms.settings.$submitted) && forms.settings.app.$invalid}">\n <label class="control-label">{{ \'APPLICATION_APPLICATION\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.app" name="app" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_APPLICATION\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="app.value as app in apps | filter: $select.search">\n <div ng-bind-html="app.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.app.$touched || forms.settings.$submitted) && forms.settings.app.$invalid && forms.settings.app.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END APP -->\n\n <div class="app-settings" ng-slide-down="application.app === \'queue\'" lazy-render duration="1" data-ng-init="getQueues()">\n <!-- START QUEUE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.queue.$touched || forms.settings.$submitted) && forms.settings.queue.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.FaxQueueId" name="queue" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="queue.id as queue in queues | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="queues.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_QUEUES_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/channels/fax/queues/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.settings.queue.$touched || forms.settings.$submitted) && forms.settings.queue.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n <span data-ng-show="(forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'agent\'" lazy-render duration="1" data-ng-init="getAgents()">\n <!-- START AGENT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.agent.$touched || forms.settings.$submitted) && forms.settings.agent.$invalid}">\n <label class="control-label">{{\'APPLICATION_AGENT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.UserId" name="agent" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.fullname}}</ui-select-match>\n <ui-select-choices repeat="agent.id as agent in agents | filter: $select.search">\n <div ng-bind-html="agent.fullname | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="agents.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_AGENTS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/staff/agents/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.settings.agent.$touched || forms.settings.$submitted) && forms.settings.agent.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END AGENT -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n <span data-ng-show="(forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'sendMail\'" lazy-render duration="1" data-ng-init="getMailAccounts();getTemplates()">\n <!-- START SENDMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="email" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2" min="1" required/>\n <span data-ng-show="(forms.settings.from.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.mail.$touched || forms.settings.$submitted) && forms.settings.account.$invalid}">\n <label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in mailAccounts | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.account.$touched || forms.settings.$submitted) && forms.settings.account.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.template.$touched || forms.settings.$submitted) && forms.settings.template.$invalid}">\n <label class="control-label">{{\'APPLICATION_TEMPLATE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data9" name="template" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n <div ng-bind-html="template.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.template.$touched || forms.settings.$submitted) && forms.settings.template.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.attachment.$touched || forms.settings.$submitted) && forms.settings.attachment.$invalid}">\n <label class="control-label">{{\'APPLICATION_ATTACHMENT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data6" name="attachment" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="attachment in [\'yes\',\'no\'] | filter: $select.search">\n {{attachment}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.attachment.$touched || forms.settings.$submitted) && forms.settings.attachment.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SENDMAIL -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1" data-ng-init="getSmsAccounts()">\n <!-- START SENDSms -->\n <div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1">\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.to.$touched || forms.settings.$submitted) && forms.settings.to.$invalid}">\n <label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" ng-pattern="/^[\\+]?[0-9]+$/" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2" required/>\n <span data-ng-show="(forms.settings.to.$touched || forms.settings.$submitted) && forms.settings.to.$invalid && forms.settings.to.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.account.$touched || forms.settings.$submitted) && forms.settings.account.$invalid}">\n <label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in smsAccounts | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.account.$touched || forms.settings.$submitted) && forms.settings.account.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.text.$touched || forms.text.$submitted) && forms.settings.text.$invalid}">\n <label class="control-label">{{\'APPLICATION_TEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <textarea id="text" class="form-control maxlength-handler" maxlength="160" name="text" data-ng-model="application.data6" required></textarea>\n <span data-ng-show="(forms.settings.text.$touched || forms.settings.$submitted) && forms.settings.text.$invalid && forms.settings.text.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <!-- END SENDSms -->\n </div>\n\n <!-- START INTERVAL_TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.intType.$touched || forms.settings.$submitted) && forms.settings.intType.$invalid}">\n <label class="control-label">{{ \'APPLICATION_INTERVAL_TYPE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.intType" theme="bootstrap" name="intType" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="intType.value as intType in $application.intTypes | filter: $select.search">\n {{ intType.name | translate }}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.intType.$touched || forms.settings.$submitted) && forms.settings.intType.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVAL_TYPE -->\n\n <div class="app-settings" ng-slide-down="application.intType === \'custom\'" lazy-render duration="1">\n <!-- START TIME -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n <div class="input-group input-large">\n <fieldset class="pull-left" ng-disabled="application.alwaysTime">\n <uib-timepicker name="t_from" data-ng-model="application.t_from" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker>\n </fieldset>\n <div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n <fieldset ng-disabled="application.alwaysTime"><uib-timepicker name="t_to" data-ng-model="application.t_to" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker></fieldset>\n <!-- <label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="application.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label> -->\n </div>\n </div>\n <!-- END TIME -->\n\n <!-- START ALWAYS -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ALWAYS\' | translate }}</label>\n <div class="input-group input-large">\n <label class="control-label pointer-cursor">\n <input\n bs-switch\n data-ng-model="application.alwaysTime"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n <!-- <input type="checkbox" data-ng-model="application.alwaysTime"> -->\n </label>\n </div>\n </div>\n <!-- END ALWAYS -->\n\n <!-- START WEEKDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.wd_from" theme="bootstrap" name="wd_from">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{ weekDay.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.wd_to" theme="bootstrap" name="wd_to">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{ weekDay.name | translate }}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END WEEKDAY -->\n\n <!-- START MONTHDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.md_from" theme="bootstrap" name="md_from">\n <ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_to && application.md_to!==\'always\' && monthDay>application.md_to && monthDay!==\'always\'">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.md_to" theme="bootstrap" name="md_to">\n <ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_from && application.md_from!==\'always\' && monthDay<application.md_from && monthDay!==\'always\'">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTHDAY -->\n\n <!-- START MONTH -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.m_from" theme="bootstrap" name="m_from">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{ month.name | translate }}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.m_to" theme="bootstrap" name="m_to">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{ month.name | translate }}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTH -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.intType === \'list\'" lazy-render duration="1" data-ng-init="getIntervals()">\n\n <!-- START INTERVALS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.IntervalId.$touched || forms.settings.$submitted) && forms.settings.IntervalId.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERVALS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.IntervalId" theme="bootstrap" name="IntervalId" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="interval.id as interval in intervals | filter: $select.search">\n {{ interval.name}}\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="intervals.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_INTERVALS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/intervals/list">{{\'APPLICATION_INTERVALS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.settings.IntervalId.$touched || forms.settings.$submitted) && forms.settings.IntervalId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVALS -->\n\n </div>\n <button class="btn green-haze" type="submit">{{\'APPLICATION_UPDATE\' | translate}}</button>\n </form>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/fax/account/view/action/wizard/wizard.html",'\n<div class="row" data-ng-init="initWizard()">\n <div class="col-md-12">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-directions font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACTION\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_APPLICATION\' | translate}}" canexit="formValidation(forms.action.$valid)">\n <form name="forms.action" novalidate>\n <!-- START APP -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.action.$submitted && forms.action.app.$invalid}">\n <label class="control-label">{{ \'APPLICATION_APPLICATION\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.app" name="app" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_APPLICATION\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="app.value as app in apps | filter: $select.search">\n <div ng-bind-html="app.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.action.$submitted && forms.action.app.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END APP -->\n\n <div class="app-settings" ng-slide-down="application.app === \'agent\'" lazy-render duration="1" data-ng-init="getAgents()">\n <!-- START AGENT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.agent.$touched || forms.action.$submitted) && forms.action.agent.$invalid}">\n <label class="control-label">{{\'APPLICATION_AGENT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.UserId" name="agent" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.fullname}}</ui-select-match>\n <ui-select-choices repeat="agent.id as agent in agents | filter: $select.search">\n <div ng-bind-html="agent.fullname | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="agents.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_AGENTS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/staff/agents/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.action.agent.$touched || forms.action.$submitted) && forms.action.agent.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END AGENT -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n <span data-ng-show="(forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid && forms.action.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'queue\'" lazy-render duration="1" data-ng-init="getQueues()">\n <!-- START QUEUE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.queue.$touched || forms.action.$submitted) && forms.action.queue.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.FaxQueueId" name="queue" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="queue.id as queue in queues | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="queues.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_QUEUES_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/channels/fax/queues/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.action.queue.$touched || forms.action.$submitted) && forms.action.queue.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n <span data-ng-show="(forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid && forms.action.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'sendMail\'" lazy-render duration="1" data-ng-init="getMailAccounts();getTemplates()">\n <!-- START SENDMAIL -->\n <div class="app-settings" ng-slide-down="application.app === \'sendMail\'" lazy-render duration="1">\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="email" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2" min="1" required/>\n <span data-ng-show="(forms.action.from.$touched || forms.action.$submitted) && forms.action.timeout.$invalid && forms.action.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.mail.$touched || forms.action.$submitted) && forms.action.account.$invalid}">\n <label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in mailAccounts | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.template.$touched || forms.action.$submitted) && forms.action.template.$invalid}">\n <label class="control-label">{{\'APPLICATION_TEMPLATE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data9" name="template" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n <div ng-bind-html="template.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.template.$touched || forms.action.$submitted) && forms.action.template.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.attachment.$touched || forms.settings.$submitted) && forms.settings.attachment.$invalid}">\n <label class="control-label">{{\'APPLICATION_ATTACHMENT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data6" name="attachment" theme="bootstrap" data-ng-init="application.data6 = \'no\'" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="attachment in [\'yes\',\'no\'] | filter: $select.search">\n {{attachment}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.attachment.$touched || forms.settings.$submitted) && forms.settings.attachment.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SENDMAIL -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1" data-ng-init="getSmsAccounts()">\n <!-- START SENDSms -->\n <div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1">\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.to.$touched || forms.action.$submitted) && forms.action.to.$invalid}">\n <label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" ng-pattern="/^[\\+]?[0-9]+$/" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2" required/>\n <span data-ng-show="(forms.action.to.$touched || forms.action.$submitted) && forms.action.to.$invalid && forms.action.to.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$invalid}">\n <label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in smsAccounts | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.text.$touched || forms.action.$submitted) && forms.action.text.$invalid}">\n <label class="control-label">{{\'APPLICATION_TEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <textarea id="text" class="form-control maxlength-handler" maxlength="160" name="text" data-ng-model="application.data6" required></textarea>\n <span data-ng-show="(forms.action.text.$touched || forms.action.$submitted) && forms.action.text.$invalid && forms.action.text.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <!-- END SENDSms -->\n </div>\n\n <!-- START INTERVAL_TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.intType.$touched || forms.action.$submitted) && forms.action.intType.$invalid}">\n <label class="control-label">{{ \'APPLICATION_INTERVAL_TYPE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.intType" theme="bootstrap" name="intType" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="intType.value as intType in $application.intTypes | filter: $select.search">\n {{ intType.name | translate }}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.intType.$touched || forms.action.$submitted) && forms.action.intType.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVAL_TYPE -->\n\n <div class="app-settings" ng-slide-down="application.intType === \'custom\'" lazy-render duration="1">\n <!-- START TIME -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n <div class="input-group input-large">\n <fieldset class="pull-left" ng-disabled="application.alwaysTime">\n <uib-timepicker name="t_from" data-ng-model="application.t_from" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker>\n </fieldset>\n <div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n <fieldset ng-disabled="application.alwaysTime"><uib-timepicker name="t_to" data-ng-model="application.t_to" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker></fieldset>\n <!-- <label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="application.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label> -->\n </div>\n </div>\n <!-- END TIME -->\n\n <!-- START ALWAYS -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ALWAYS\' | translate }}</label>\n <div class="input-group input-large">\n <label class="control-label pointer-cursor">\n <input\n bs-switch\n data-ng-model="application.alwaysTime"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n <!-- <input type="checkbox" data-ng-model="application.alwaysTime"> -->\n </label>\n </div>\n </div>\n <!-- END ALWAYS -->\n\n <!-- START WEEKDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.wd_from" theme="bootstrap" name="wd_from">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{ weekDay.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.wd_to" theme="bootstrap" name="wd_to">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{ weekDay.name | translate }}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END WEEKDAY -->\n\n <!-- START MONTHDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.md_from" theme="bootstrap" name="md_from">\n <ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_to && application.md_to!==\'always\' && monthDay>application.md_to && monthDay!==\'always\'">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.md_to" theme="bootstrap" name="md_to">\n <ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_from && application.md_from!==\'always\' && monthDay<application.md_from && monthDay!==\'always\'">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTHDAY -->\n\n <!-- START MONTH -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.m_from" theme="bootstrap" name="m_from">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{ month.name | translate }}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.m_to" theme="bootstrap" name="m_to">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{ month.name | translate }}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTH -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.intType === \'list\'" lazy-render duration="1" data-ng-init="getIntervals()">\n\n <!-- START INTERVALS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.IntervalId.$touched || forms.action.$submitted) && forms.action.IntervalId.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERVALS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.IntervalId" theme="bootstrap" name="IntervalId" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="interval.id as interval in intervals | filter: $select.search">\n {{ interval.name}}\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="intervals.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_INTERVALS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/intervals/list">{{\'APPLICATION_INTERVALS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.action.IntervalId.$touched || forms.action.$submitted) && forms.action.IntervalId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVALS -->\n\n </div>\n\n <input class="btn green-haze" type="submit" data-ng-click="next()" value="{{\'APPLICATION_CONTINUE\' | translate}}"/>\n </form>\n </wz-step>\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n <input class="btn green-haze" type="submit" data-ng-click="next()" value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'), -a.put("app/channels/fax/account/view/disposition/modal/add.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_DISPOSITIONS\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.form.$touched || form.$submitted) && form.form.$invalid}">\n <div class="">\n <!-- <input type="text" name="form" placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}" class="form-control" data-ng-model="name" data-ng-pattern="/^[a-zA-Z0-9]*$/" required/> -->\n <input type="text" name="form" placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}" class="form-control" data-ng-model="name" required/>\n <span data-ng-show="form.form.$touched && form.form.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <!-- <span data-ng-show="form.form.$touched && form.form.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_PATTERN\' | translate}}.\n </span> -->\n </div>\n <!-- <div class="help-block">\n {{\'MESSAGE_ALLOWED_NUMBERS_AND_LETTERS\' | translate}}\n </div> -->\n </div>\n <!-- END NAME -->\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" data-ng-click="ok()" data-ng-show="form.$valid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/fax/account/view/disposition/view/view.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_DISPOSITIONS\' | translate}}</span>\n </div>\n <div class="actions actions-md">\n <a href="#" class="btn btn-icon-only green" data-ng-click="addDisposition();">\n <i class="fa fa-plus"></i>\n </a>\n </div>\n </div>\n <div class="portlet-body" data-ng-init="initView()">\n <div class="tab-content">\n <div class="row" data-ng-hide="dispositions.length">\n <div class="col-md-12">\n <div class="note note-info">\n <h4 class="block">Info! {{\'MESSAGE_NO_DISPOSITIONS_AVAILABLE\' | translate}}</h4>\n </div>\n </div>\n </div>\n\n <!-- GENERAL TAB -->\n <div class="row" data-ng-repeat="disposition in dispositions">\n <div class="col-md-12 form-group">\n <div class="input-group">\n <div>\n <input class="form-control" type="text" placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}" data-ng-model="disposition.name">\n </div>\n <span class="input-group-btn">\n <button class="btn btn-success" type="button" data-ng-click="updateDisposition(disposition.id, disposition.name);"><i class="fa fa-cloud-upload fa-fw"></i> {{\'APPLICATION_UPDATE\' | translate}}</button>\n <button class="btn btn-danger" type="button" data-ng-click="deleteDisposition(disposition.id);"><i class="fa fa-times fa-fw"></i> {{\'APPLICATION_DELETE\' | translate}}</button>\n </span>\n </div>\n </div>\n </div>\n <!-- END GENERAL TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/fax/account/view/hooks/view/view.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_HOOKS\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_ACCEPT\' | translate}}</a>\n </li>\n <li >\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_REJECT\' | translate}}</a>\n </li>\n <li >\n <a href="#" data-target="#tab_1_3" data-toggle="tab">{{\'APPLICATION_CLOSE\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- ACCEPT TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.accept" data-ng-submit="forms.accept.$valid && updateItemFaxAccount()" novalidate>\n <div class="row">\n <div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.accept.method.$touched || forms.accept.$submitted) && forms.accept.method.$invalid}">\n <label class="control-label">{{\'APPLICATION_METHOD\' | translate}}</label>\n <ui-select data-ng-model="account.acceptMethod" name="method" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected.name | uppercase}}</ui-select-match>\n <ui-select-choices repeat="type.value as type in types | filter: $select.search">\n <div ng-bind-html="type.name | highlight: $select.search | uppercase" ></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.accept.method.$touched || forms.accept.$submitted) && forms.accept.method.$invalid && forms.accept.method.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.accept.url.$touched || forms.accept.$submitted) && forms.accept.url.$invalid}">\n <label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n <input type="url" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="account.acceptUrl" ng-required="account.acceptMethod"/>\n <span data-ng-show="(forms.accept.url.$touched || forms.accept.$submitted) && forms.accept.url.$invalid && forms.accept.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <!-- START ACTIONS-->\n <div class="row" ng-repeat = "action in account.actions">\n <div ng-switch="action.action">\n <div ng-switch-when="pause">\n <div class="form-group col-md-4">\n <label class="control-label">{{\'APPLICATION_PAUSE\' | translate}}</label></br>\n <input\n bs-switch\n data-ng-change="resetActionData(action)"\n data-ng-model="action.enabled"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </div>\n <div ng-if="action.enabled" class="form-group col-md-8">\n <label class="control-label">{{\'APPLICATION_TYPE\' | translate}}</label>\n <ui-select name="action" data-ng-model="action.type" theme="bootstrap" >\n <ui-select-match placeholder="{{\'APPLICATION_TYPE\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat=" pause.name as pause in pauses | filter: $select.search">\n <div ng-bind-html="pause.name | highlight: $select.search | uppercase" ></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n </div>\n </div>\n <!-- END ACTION -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ACCEPT TAB -->\n <!-- START REJECT TAB -->\n <div class="tab-pane" id="tab_1_2">\n <form name="forms.reject" data-ng-submit="forms.reject.$valid && updateItemFaxAccount()" novalidate>\n <div class="row">\n <div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.reject.method.$touched || forms.reject.$submitted) && forms.reject.method.$invalid}">\n <label class="control-label">{{\'APPLICATION_METHOD\' | translate}}</label>\n <ui-select data-ng-model="account.rejectMethod" name="method" theme="bootstrap" >\n <ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected.name | uppercase}}</ui-select-match>\n <ui-select-choices repeat="type.value as type in types | filter: $select.search">\n <div ng-bind-html="type.name | highlight: $select.search | uppercase" ></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.reject.method.$touched || forms.reject.$submitted) && forms.reject.method.$invalid && forms.reject.method.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.reject.url.$touched || forms.reject.$submitted) && forms.reject.url.$invalid}">\n <label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n <input type="url" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="account.rejectUrl" ng-required="account.rejectMethod"/>\n <span data-ng-show="(forms.reject.url.$touched || forms.reject.$submitted) && forms.reject.url.$invalid && forms.reject.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ACCEPT TAB -->\n <!-- START CLOSE TAB -->\n <div class="tab-pane" id="tab_1_3">\n <form name="forms.close" data-ng-submit="forms.close.$valid && updateItemFaxAccount()" novalidate>\n <div class="row">\n <div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.close.method.$touched || forms.close.$submitted) && forms.close.method.$invalid}">\n <label class="control-label">{{\'APPLICATION_METHOD\' | translate}}</label>\n <ui-select data-ng-model="account.closeMethod" name="method" theme="bootstrap" >\n <ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected.name | uppercase}}</ui-select-match>\n <ui-select-choices repeat="type.value as type in types | filter: $select.search">\n <div ng-bind-html="type.name | highlight: $select.search | uppercase" ></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.close.method.$touched || forms.close.$submitted) && forms.close.method.$invalid && forms.close.method.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.close.url.$touched || forms.close.$submitted) && forms.close.url.$invalid}">\n <label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n <input type="url" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="account.closeUrl" ng-required="account.closeMethod"/>\n <span data-ng-show="(forms.close.url.$touched || forms.close.$submitted) && forms.close.url.$invalid && forms.close.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END CLOSE TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/fax/account/view/setting/view/view.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_ADVANCED\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body" data-ng-init="initView()">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateItemFaxAccount()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.$submitted || forms.general.name.$touched) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.name" required/>\n <span data-ng-show="forms.general.name.$error.required && (forms.general.$submitted || forms.general.name.$touched)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START HEADERINFO -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.$submitted || forms.general.headerinfo.$touched) && forms.general.headerinfo.$invalid}">\n <label class="control-label">{{\'APPLICATION_HEADERINFO\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="headerinfo" placeholder="{{\'APPLICATION_HEADERINFO\' | translate}}" class="form-control" data-ng-model="account.headerinfo" required/>\n <span data-ng-show="forms.general.headerinfo.$error.required && (forms.general.$submitted || forms.general.headerinfo.$touched)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span class="help-block">\n {{\'DESCRIPTION_HEADERINFO\' | translate}}.\n </span>\n </div>\n <!-- END HEADERINFO -->\n\n <!-- START TRUNKS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.$submitted || forms.general.trunk.$touched) && forms.general.trunk.$invalid}">\n <label class="control-label">{{\'APPLICATION_TRUNK\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="account.TrunkName" name="trunk" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_TRUNK\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="trunk.name as trunk in trunks | filter: $select.search">\n <div data-ng-bind="trunk.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="trunks.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_TRUNKS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/trunks/list">{{\'APPLICATION_INTERVALS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="forms.general.trunk.$error.required && (forms.general.$submitted || forms.general.trunk.$touched)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- START TRUNKS -->\n\n <!-- START LOCALSTATIONID -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.$submitted || forms.general.localstationid.$touched) && forms.general.localstationid.$invalid}">\n <label class="control-label">{{\'APPLICATION_LOCALSTATIONID\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="localstationid" placeholder="{{\'APPLICATION_LOCALSTATIONID\' | translate}}" class="form-control" data-ng-model="account.localstationid" required/>\n <span data-ng-show="forms.general.localstationid.$error.required && (forms.general.$submitted || forms.general.localstationid.$touched)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span class="help-block">\n {{\'DESCRIPTION_LOCALSTATIONID\' | translate}}.\n </span>\n </div>\n <!-- END LOCALSTATIONID -->\n\n <!-- START LIST -->\n <div class="form-group" data-ng-if="license.cm">\n <label class="control-label">{{\'APPLICATION_LIST\' | translate}}</label>\n <div class="input-group">\n\n <ui-select data-ng-model="account.ListId" name="list" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_LIST\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="list.id as list in lists | filter: $select.search">\n <div ng-bind-html="list.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n\n <span class="input-group-btn">\n <button type="button" data-ng-click="account.ListId = null" class="btn btn-default">\n <span class="glyphicon glyphicon-trash"></span>\n </button>\n </span>\n\n </div>\n </div>\n <!-- END LIST -->\n\n <!-- START FIDELITY -->\n <!-- <div class="form-group">\n <label class="control-label">{{\'APPLICATION_FIDELITY\' | translate}}</label></br>\n <input\n bs-switch\n data-ng-model="account.fidelity"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </div> -->\n <!-- END FIDELITY -->\n\n <!-- START TIMEOUT -->\n <!-- <div class="form-group" data-ng-if="account.fidelity" data-ng-class="{\'has-error\': (forms.general.$submitted || forms.general.timeout.$touched) && forms.general.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="0" name="timeout" placeholder="{{\'APPLICATION_PORT\' | translate}}" class="form-control" data-ng-model="account.timeout" required/>\n <span data-ng-show="(forms.general.timeout.$touched || forms.general.$submitted) && forms.general.timeout.$invalid && forms.general.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.general.timeout.$touched || forms.general.$submitted) && forms.general.timeout.$invalid && forms.general.timeout.$error.number" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n </span>\n </div> -->\n <!-- END TIMEOUT -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="account.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n\n <!-- ADVANCED TAB -->\n <div class="tab-pane" id="tab_1_2">\n <form name="forms.advanced" data-ng-submit="forms.advanced.$valid && updateItemFaxAccount()" novalidate>\n <div class="row">\n <div class="col-md-6">\n <!-- START ECM -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_ECM\' | translate}}<span class="required" aria-required="true">*</span></label><br>\n <input\n bs-switch\n ng-model="account.ecm"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}"\n ng-true-value="\'yes\'"\n ng-false-value="\'no\'">\n <span class="help-block">\n {{\'DESCRIPTION_ECM\' | translate}}.\n </span>\n </div>\n <!-- END ECM -->\n\n <!-- START MINRATE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.$submitted || forms.advanced.minrate.$touched) && forms.advanced.minrate.$invalid}">\n <label class="control-label">{{\'APPLICATION_MINRATE\' | translate}} <span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="account.minrate" name="minrate" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_MINRATE\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="minrate in rate | filter: $select.search">\n <div data-ng-bind="minrate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{\'DESCRIPTION_MINRATE\' | translate}}.\n </span>\n <span data-ng-show="forms.advanced.minrate.$error.required && (forms.advanced.$submitted || forms.advanced.minrate.$touched)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- START MINRATE -->\n\n <!-- START MAXRATE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.$submitted || forms.advanced.maxrate.$touched) && forms.advanced.maxrate.$invalid}">\n <label class="control-label">{{\'APPLICATION_MAXRATE\' | translate}} <span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="account.maxrate" name="maxrate" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_MAXRATE\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="maxrate in rate | filter: $select.search">\n <div data-ng-bind="maxrate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{\'DESCRIPTION_MAXRATE\' | translate}}.\n </span>\n <span data-ng-show="forms.advanced.maxrate.$error.required && (forms.advanced.$submitted || forms.advanced.maxrate.$touched)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- START MAXRATE -->\n\n <!-- START MODEM -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.$submitted || forms.advanced.modem.$touched) && forms.advanced.modem.$invalid}">\n <label class="control-label">{{\'APPLICATION_MODEM\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="modem" placeholder="{{\'APPLICATION_MODEM\' | translate}}" class="form-control" data-ng-model="account.modem" required/>\n <span class="help-block">\n {{\'DESCRIPTION_MODEM\' | translate}}.\n </span>\n <span data-ng-show="forms.advanced.modem.$error.required && (forms.advanced.$submitted || forms.advanced.modem.$touched)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MODEM -->\n </div>\n <div class="col-md-6">\n <!-- START GATEWAY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.$submitted || forms.advanced.gateway.$touched) && forms.advanced.gateway.$invalid}">\n <label class="control-label">{{\'APPLICATION_GATEWAY\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="gateway" placeholder="{{\'APPLICATION_GATEWAY\' | translate}}" class="form-control" data-ng-model="account.gateway" required data-ng-pattern="settings.patternGateway"/>\n <span class="help-block">\n {{\'DESCRIPTION_GATEWAY\' | translate}}.\n </span>\n <span data-ng-show="(forms.advanced.gateway.$touched || forms.advanced.$submitted) && forms.advanced.gateway.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.advanced.gateway.$touched || forms.advanced.$submitted) && forms.advanced.gateway.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_GATEWAY\' | translate}}.\n </span>\n </div>\n <!-- END GATEWAY -->\n\n <!-- START FAXDETECT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.$submitted || forms.advanced.faxdetect.$touched) && forms.advanced.faxdetect.$invalid}">\n <label class="control-label">{{\'APPLICATION_FAXDETECT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="faxdetect" placeholder="{{\'APPLICATION_FAXDETECT\' | translate}}" class="form-control" data-ng-model="account.faxdetect" required data-ng-pattern="settings.patternFaxdetect"/>\n <span class="help-block">\n {{\'DESCRIPTION_FAXDETECT\' | translate}}.\n </span>\n <span data-ng-show="(forms.advanced.faxdetect.$touched || forms.advanced.$submitted) && forms.advanced.faxdetect.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.advanced.faxdetect.$touched || forms.advanced.$submitted) && forms.advanced.faxdetect.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_FAXDETECT\' | translate}}.\n </span>\n </div>\n <!-- END FAXDETECT -->\n\n <!-- START T38TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.$submitted || forms.advanced.t38timeout.$touched) && forms.advanced.t38timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_T38TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="number" name="t38timeout" placeholder="{{\'APPLICATION_T38TIMEOUT\' | translate}}" class="form-control" data-ng-model="account.t38timeout" required min="1000"/>\n <span class="help-block">\n {{\'DESCRIPTION_T38TIMEOUT\' | translate}}.\n </span>\n <span data-ng-show="(forms.advanced.t38timeout.$touched || forms.advanced.$submitted) && forms.advanced.t38timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.advanced.t38timeout.$touched || forms.advanced.$submitted) && forms.advanced.t38timeout.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_T38TIMEOUT\' | translate}}.\n </span>\n </div>\n <!-- END T38TIMEOUT -->\n\n <!-- START TECH -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.$submitted || forms.advanced.tech.$touched) && forms.advanced.tech.$invalid}">\n <label class="control-label">{{\'APPLICATION_TECHNOLOGY\' | translate}} <span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="account.tech" name="tech" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_TECHNOLOGY\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="tech in techs | filter: $select.search">\n <div data-ng-bind="tech | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.advanced.tech.$touched || forms.advanced.$submitted) && forms.advanced.tech.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- START TECH -->\n </div>\n </div>\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ADVANCED TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'), -a.put("app/channels/fax/account/view/view.html",'<!-- BEGIN PAGE HEADER-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-fax"></i>\n <a href="#">{{ \'APPLICATION_FAX\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-notebook"></i>\n <a href="/channels/fax/accounts/list">{{ \'APPLICATION_ACCOUNTS\' | translate }}</a>\n <i class="fa fa-angle-right" data-ng-show="account"></i>\n </li>\n <li data-ng-show="account">\n <a href="#">{{ account.name || account.description }}</a>\n </li>\n </ul>\n </div>\n\n<!-- END PAGE HEADER-->\n\n<!-- BEGIN PAGE CONTENT-->\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/account.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{ account.name || account.description }}\n </div>\n <div class="profile-usertitle-job">\n {{ account.phone }}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.channels.fax.accounts.view.settings\')}">\n <a href="/channels/fax/accounts/view/{{account.id}}/settings">\n <i class="icon-settings"></i>\n {{\'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n <li ng-class="{active: $state.is(\'main.channels.fax.accounts.view.hooks\')}">\n <a href="/channels/fax/accounts/view/{{account.id}}/hooks">\n <i class="fa fa-code"></i>\n {{\'APPLICATION_HOOKS\' | translate}} </a>\n </li>\n <li ng-class="{active: $state.is(\'main.channels.fax.accounts.view.dispositions\')}">\n <a href="/channels/fax/accounts/view/{{account.id}}/dispositions">\n <i class="icon-target"></i>\n {{\'APPLICATION_DISPOSITIONS\' | translate}} </a>\n </li>\n <li ng-class="{active: $state.includes(\'main.channels.fax.accounts.view.actions\')}">\n <a href="/channels/fax/accounts/view/{{account.id}}/actions/list">\n <i class="icon-directions"></i>\n {{\'APPLICATION_ACTIONS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/fax/account/wizard/wizard.html",'<!-- BEGIN PAGE HEADER-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-fax"></i>\n <a href="#">{{ \'APPLICATION_FAX\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-notebook"></i>\n <a href="/channels/fax/accounts/list">{{ \'APPLICATION_ACCOUNTS\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n<!-- END PAGE HEADER-->\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initWizard()">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACCOUNT\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_GENERAL\' | translate}}" canexit="exitValidation(forms.formGeneral.$valid)">\n <form name="forms.formGeneral" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formGeneral.$submitted || forms.formGeneral.name.$touched) && forms.formGeneral.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="forms.formGeneral.name.$error.required && (forms.formGeneral.$submitted || forms.formGeneral.name.$touched)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START HEADERINFO -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formGeneral.$submitted || forms.formGeneral.headerinfo.$touched) && forms.formGeneral.headerinfo.$invalid}">\n <label class="control-label">{{\'APPLICATION_HEADERINFO\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="headerinfo" placeholder="{{\'APPLICATION_HEADERINFO\' | translate}}" class="form-control" data-ng-model="item.headerinfo" required/>\n <span data-ng-show="forms.formGeneral.headerinfo.$error.required && (forms.formGeneral.$submitted || forms.formGeneral.headerinfo.$touched)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span class="help-block">\n {{\'DESCRIPTION_HEADERINFO\' | translate}}.\n </span>\n </div>\n <!-- END HEADERINFO -->\n\n <!-- START TRUNKS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formGeneral.$submitted || forms.formGeneral.trunk.$touched) && forms.formGeneral.trunk.$invalid}">\n <label class="control-label">{{\'APPLICATION_TRUNK\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.TrunkName" name="trunk" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_TRUNK\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="trunk.name as trunk in trunks | filter: $select.search">\n <div data-ng-bind="trunk.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="trunks.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_TRUNKS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/trunks/list">{{\'APPLICATION_INTERVALS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="forms.formGeneral.trunk.$error.required && (forms.formGeneral.$submitted || forms.formGeneral.trunk.$touched)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- START TRUNKS -->\n\n <!-- START LOCALSTATIONID -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formGeneral.$submitted || forms.formGeneral.localstationid.$touched) && forms.formGeneral.localstationid.$invalid}">\n <label class="control-label">{{\'APPLICATION_LOCALSTATIONID\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="localstationid" placeholder="{{\'APPLICATION_LOCALSTATIONID\' | translate}}" class="form-control" data-ng-model="item.localstationid" required/>\n <span data-ng-show="forms.formGeneral.localstationid.$error.required && (forms.formGeneral.$submitted || forms.formGeneral.localstationid.$touched)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span class="help-block">\n {{\'DESCRIPTION_LOCALSTATIONID\' | translate}}.\n </span>\n </div>\n <!-- END LOCALSTATIONID -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" data-ng-click="next()"/>\n\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_ADVANCED\' | translate}}" canexit="exitValidation(forms.formAdvanced.$valid)">\n <form name="forms.formAdvanced" novalidate>\n\n <!-- START ECM -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_ECM\' | translate}}<span class="required" aria-required="true">*</span></label><br>\n <input\n bs-switch\n ng-model="item.ecm"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}"\n ng-true-value="\'yes\'"\n ng-false-value="\'no\'">\n <span class="help-block">\n {{\'DESCRIPTION_ECM\' | translate}}.\n </span>\n </div>\n <!-- END ECM -->\n\n <!-- START MINRATE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAdvanced.$submitted || forms.formAdvanced.minrate.$touched) && forms.formAdvanced.minrate.$invalid}">\n <label class="control-label">{{\'APPLICATION_MINRATE\' | translate}} <span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.minrate" name="minrate" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_MINRATE\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="minrate in rate | filter: $select.search">\n <div data-ng-bind="minrate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{\'DESCRIPTION_MINRATE\' | translate}}.\n </span>\n <span data-ng-show="forms.formAdvanced.minrate.$error.required && (forms.formAdvanced.$submitted || forms.formAdvanced.minrate.$touched)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- START MINRATE -->\n\n <!-- START MAXRATE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAdvanced.$submitted || forms.formAdvanced.maxrate.$touched) && forms.formAdvanced.maxrate.$invalid}">\n <label class="control-label">{{\'APPLICATION_MAXRATE\' | translate}} <span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.maxrate" name="maxrate" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_MAXRATE\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="maxrate in rate | filter: $select.search">\n <div data-ng-bind="maxrate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{\'DESCRIPTION_MAXRATE\' | translate}}.\n </span>\n <span data-ng-show="forms.formAdvanced.maxrate.$error.required && (forms.formAdvanced.$submitted || forms.formAdvanced.maxrate.$touched)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- START MAXRATE -->\n\n <!-- START MODEM -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAdvanced.$submitted || forms.formAdvanced.modem.$touched) && forms.formAdvanced.modem.$invalid}">\n <label class="control-label">{{\'APPLICATION_MODEM\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="modem" placeholder="{{\'APPLICATION_MODEM\' | translate}}" class="form-control" data-ng-model="item.modem" required/>\n <span class="help-block">\n {{\'DESCRIPTION_MODEM\' | translate}}.\n </span>\n <span data-ng-show="forms.formAdvanced.modem.$error.required && (forms.formAdvanced.$submitted || forms.formAdvanced.modem.$touched)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MODEM -->\n\n <!-- START GATEWAY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAdvanced.$submitted || forms.formAdvanced.gateway.$touched) && forms.formAdvanced.gateway.$invalid}">\n <label class="control-label">{{\'APPLICATION_GATEWAY\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="gateway" placeholder="{{\'APPLICATION_GATEWAY\' | translate}}" class="form-control" data-ng-model="item.gateway" required data-ng-pattern="settings.patternGateway"/>\n <span class="help-block">\n {{\'DESCRIPTION_GATEWAY\' | translate}}.\n </span>\n <span data-ng-show="(forms.formAdvanced.gateway.$touched || forms.formAdvanced.$submitted) && forms.formAdvanced.gateway.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.formAdvanced.gateway.$touched || forms.formAdvanced.$submitted) && forms.formAdvanced.gateway.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_GATEWAY\' | translate}}.\n </span>\n </div>\n <!-- END GATEWAY -->\n\n <!-- START FAXDETECT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAdvanced.$submitted || forms.formAdvanced.faxdetect.$touched) && forms.formAdvanced.faxdetect.$invalid}">\n <label class="control-label">{{\'APPLICATION_FAXDETECT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="faxdetect" placeholder="{{\'APPLICATION_FAXDETECT\' | translate}}" class="form-control" data-ng-model="item.faxdetect" required data-ng-pattern="settings.patternFaxdetect"/>\n <span class="help-block">\n {{\'DESCRIPTION_FAXDETECT\' | translate}}.\n </span>\n <span data-ng-show="(forms.formAdvanced.faxdetect.$touched || forms.formAdvanced.$submitted) && forms.formAdvanced.faxdetect.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.formAdvanced.faxdetect.$touched || forms.formAdvanced.$submitted) && forms.formAdvanced.faxdetect.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_FAXDETECT\' | translate}}.\n </span>\n </div>\n <!-- END FAXDETECT -->\n\n <!-- START T38TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAdvanced.$submitted || forms.formAdvanced.t38timeout.$touched) && forms.formAdvanced.t38timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_T38TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="number" name="t38timeout" placeholder="{{\'APPLICATION_T38TIMEOUT\' | translate}}" class="form-control" data-ng-model="item.t38timeout" required min="1000"/>\n <span class="help-block">\n {{\'DESCRIPTION_T38TIMEOUT\' | translate}}.\n </span>\n <span data-ng-show="(forms.formAdvanced.t38timeout.$touched || forms.formAdvanced.$submitted) && forms.formAdvanced.t38timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.formAdvanced.t38timeout.$touched || forms.formAdvanced.$submitted) && forms.formAdvanced.t38timeout.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_T38TIMEOUT\' | translate}}.\n </span>\n </div>\n <!-- END T38TIMEOUT -->\n\n <!-- START TECH -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formAdvanced.$submitted || forms.formAdvanced.tech.$touched) && forms.formAdvanced.tech.$invalid}">\n <label class="control-label">{{\'APPLICATION_TECHNOLOGY\' | translate}} <span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.tech" name="tech" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_TECHNOLOGY\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="tech in techs | filter: $select.search">\n <div data-ng-bind="tech | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.formAdvanced.tech.$touched || forms.formAdvanced.$submitted) && forms.formAdvanced.tech.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- START TECH -->\n\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" data-ng-click="next()"/>\n\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n\n </wizard>\n\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/fax/inbox/message/info.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_INFO\' | translate }}</h3>\n</div>\n<div class="modal-body" data-ng-init="initInfo()">\n <div class="form-group" ng-if="data">\n <json-formatter json="data" open="1"></json-formatter>\n </div>\n <div class="note note-warning" data-ng-hide="data">\n <h4 class="block"></h4>\n <p>\n {{ \'MESSAGE_NO_INFO_AVAILABLE\' | translate }}\n </p>\n </div>\n\n</div>\n<div class="modal-footer">\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'),a.put("app/channels/fax/inbox/message/message.directive.html",'<div class="message">\n <div class="row">\n <div class="col-md-6">\n <span class="bold">From: </span>\n [<a href="" data-ng-click="openContact(message.from)">{{message.from}}</a>]\n <br>\n <span class="bold">To: </span>\n [<a href="" data-ng-click="openContact(message.to)">{{message.to}}</a>]\n </div>\n <div class="col-md-6">\n <span class="pull-right">\n <a ng-click="info(message)"><i class="icon-info font-blue"></i></a>\n </span>\n <span class="pull-right" data-ng-show="message.User">{{\'APPLICATION_SENT_BY\' | translate}}: <strong>{{message.User.fullname}}</strong></span>\n </div>\n </div>\n <br>\n <span class="todo-tasklist-date">\n <span class="pull-right" data-ng-if="message.status!==\'RECEIVED\'" data-ng-switch="message.status" uib-tooltip="{{\'APPLICATION_PAGE_TRANSFERRED\' | translate}}: {{message.pagestransferred}} - {{\'APPLICATION_RETRY\' | translate}}: {{message.retry}}">\n <a ng-switch-when="SENDING" href="#" class="btn default btn-xs inactive-link blue-stripe"> {{message.status | uppercase}}\n <i class="fa fa-warning"></i>\n </a>\n <a ng-switch-when="FAILED" href="#" class="btn default btn-xs red-stripe" data-ng-click="retry(message.id)"> {{message.status | uppercase}}\n <i class="fa fa-times"></i>\n </a>\n <a ng-switch-when="SENT" href="#" class="btn default btn-xs inactive-link green-stripe"> {{message.status | uppercase}}\n <i class="fa fa-check"></i>\n </a>\n </span>\n <span class="pull-right" data-ng-if="message.status===\'RECEIVED\'" uib-tooltip="{{\'APPLICATION_PAGE_TRANSFERRED\' | translate}}: {{message.pagestransferred}}">\n <a href="#" class="btn default btn-xs inactive-link green-stripe"> {{message.status | uppercase}}\n <i class="fa fa-check"></i>\n </a>\n </span>\n <i class="icon-calendar" title="{{message.updatedAt | date:\'MMM d, y HH:mm:ss\'}}"></i> <span am-time-ago="message.updatedAt"></span>\n </span>\n <hr data-ng-if="message.FaxAttachments.length">\n <div data-ng-repeat="faxAttachment in message.FaxAttachments">\n <strong>{{faxAttachment.name}}</strong>\n <a target="_self" download="{{faxAttachment.name}}" href="api/fax/attachments/{{faxAttachment.id}}">\n <i class="icon-cloud-download"></i>\n </a>\n </div>\n</div>\n'),a.put("app/channels/fax/inbox/note/note.directive.html",'<div class="note">\n <div class="row">\n <div class="col-md-6">\n <a type="button" name="button" data-ng-if="::(Auth.getCurrentUser().id == message.UserId)" data-ng-click="deleteNote()">\n <i class="fa fa-trash-o" style="color: red;"></i>\n </a>\n\n <i class="icon-calendar" title="{{message.updatedAt | date:\'MMM d, y HH:mm:ss\'}}"></i> <span am-time-ago="message.updatedAt"></span>\n </div>\n <div class="col-md-6">\n <span class="pull-right" data-ng-show="message.User">{{\'APPLICATION_ADD_BY\' | translate}}: <strong>{{message.User.fullname}}</strong></span>\n </div>\n </div>\n <hr>\n <span class="body text-left" data-ng-bind-html="message.text" style="white-space: pre-wrap;"></span>\n</div>\n'),a.put("app/channels/fax/inbox/note/note.modal.html",'<div class="modal-header" data-ng-init="initModal()">\n <h3 class="modal-title">{{ \'APPLICATION_NOTES\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n <div class="form-group">\n <textarea data-ng-model="item.text" name="text" rows="10" style="resize: none; width: 100%;"></textarea>\n </div>\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" data-ng-click="ok()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/fax/inbox/room/room.directive.html",'<!-- BEGIN TODO CONTENT -->\n<div class="todo-content" data-ng-init="initForm();">\n <div class="portlet light">\n <div class="portlet-title">\n <div class="caption">\n <button data-ng-if="(!forms.compose.from.$invalid && !forms.compose.to.$invalid && uploader.queue.length) && faxRoom.status !== \'CLOSED\'" class="btn btn-sm btn-default green-meadow" data-ng-click="sendFax()">\n <i class="icon-paper-plane" style="color: white;"></i> {{\'APPLICATION_SEND\' | translate}}\n </button>\n <span data-ng-if="(!forms.compose.from.$invalid && !forms.compose.to.$invalid && uploader.queue.length) && faxRoom && faxRoom.status !== \'CLOSED\'"> | </span>\n <span data-ng-if="faxRoom" class="label label-default"> #{{faxRoom.id}} {{faxRoom.status}}</span>\n <span data-ng-if="faxRoom"> | </span>\n <span data-ng-if="faxRoom" class="caption-subject font-green-sharp bold">{{faxRoom.contact}}</span>\n </div>\n <div class="actions" data-ng-switch="faxRoom.status">\n <button class="btn btn-icon-only yellow" data-ng-if="faxRoom" data-ng-click="loadNote()" data-ng-hide="faxRoom.status == \'CLOSED\'" title="{{\'APPLICATION_NOTES\' | translate}}">\n <i class="fa fa-sticky-note"></i>\n </button>\n <span class="btn file-upload" data-ng-hide="faxRoom.status == \'CLOSED\'">\n <i class="fa fa-paperclip"></i> <input type="file" data-ng-if="uploader" data-ng-hide="faxRoom.status == \'CLOSED\'" nv-file-select uploader="uploader" multiple class="file-input" title="{{\'APPLICATION_ATTACHMENTS\' | translate}}">\n </span>\n <!-- UPDATE SECTION START -->\n <button data-ng-class="faxRoom.status == \'CLOSED\' ? \'grey-cascade\' : \'btn-success\'" class="btn btn-icon-only" data-ng-hide="faxRoom.status == \'CLOSED\' && faxRoom.disposition" data-ng-if="faxRoom" data-ng-click="closeRoom()" title="{{\'APPLICATION_STATUS\' | translate}}">\n <i data-ng-class="faxRoom.status == \'CLOSED\' ? \'icon-target\' : \'fa fa-upload\'"></i>\n </button>\n <!-- UPDATE SECTION END -->\n <button class="btn default btn-icon-only" data-ng-if="faxRoom && faxRoom.status !== \'CLOSED\'" data-ng-click="togglePanelLeft()" title="{{\'APPLICATION_RESIZE\' | translate}}">\n <i ng-class="panelRight == \'col-md-12\' ? \'icon-size-actual\' : \'icon-size-fullscreen\'"></i>\n </button>\n </div>\n </div>\n <div class="portlet-body">\n <div class="row">\n <div data-ng-show="panelLeft" data-ng-class="panelLeft">\n <div class="form">\n <!-- START TAGS -->\n <div class="form-group" data-ng-if="faxRoom.status !== \'CLOSED\'">\n <div class="row">\n <div class="col-md-1">\n <a href="#" class="btn btn-icon-only">\n <i class="fa fa-tags" style="color: gray;"></i>\n </a>\n </div>\n <div class="col-md-11">\n <ui-select multiple data-ng-model="form.tags" theme="bootstrap" on-select="onChanged($item, $model)" on-remove="onChanged($item, $model)" data-ng-disabled="faxRoom.status == \'CLOSED\'">\n <ui-select-match placeholder="Tags...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="tag in tags | filter:$select.search" class="">\n {{tag}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n </div>\n <!-- END TAGS -->\n </div>\n\n <hr data-ng-if="faxRoom && faxRoom.status !== \'CLOSED\'">\n\n <!-- END TAGS -->\n\n <div id="mail-box">\n <ul class="chats">\n <li\n data-ng-switch="faxMessage.status"\n data-ng-class="{\'in\': faxMessage.status == \'RECEIVED\', \'out\': faxMessage.status == \'SENT\' || faxMessage.status == \'SENDING\' || faxMessage.status == \'FAILED\' || faxMessage.status == \'NOTE\'}"\n data-ng-repeat="faxMessage in faxRoom.FaxMessages | orderBy:\'-createdAt\'">\n <div class="avatar" data-ng-class="faxMessage.UserId ? \'pretty-avatar\' : \'pretty-avatar-v\'">\n <ng-letter-avatar\n data-ng-if="faxMessage.UserId"\n height="40"\n width="40"\n fontsize="25"\n data="{{faxMessage.User.fullname}}"\n avatarcustombgcolor="#B0B0B0"\n avatarcustomborder="border:2px solid #3399CC"\n charCount="2"\n shape="round"></ng-letter-avatar>\n <ng-letter-avatar\n data-ng-if="!faxMessage.UserId"\n height="40"\n width="40"\n fontsize="25"\n data="{{faxMessage.from}}"\n avatarcustombgcolor="#B0B0B0"\n avatarcustomborder="border:2px solid #EA4C61"\n charCount="1"\n shape="round"></ng-letter-avatar>\n </div>\n <fax-note message="faxMessage" ng-switch-when="NOTE"></fax-note>\n <fax-message message="faxMessage" list-id="faxRoom.FaxAccount.ListId" ng-switch-default></fax-message>\n </li>\n </ul>\n </div>\n </div>\n <div data-ng-class="panelRight">\n <div class="note note-info" data-ng-if="faxRoom && faxRoom.status == \'CLOSED\'">\n <h4 class="block"><i class="icon-info"></i> {{\'MESSAGE_FAX_ROOM_CLOSED\' | translate}}!</h4>\n <p>\n <strong>{{\'MESSAGE_FAX_ROOM_CLOSED_DETAILS\' | translate}}.</strong>\n </p>\n <hr>\n <p>\n <i class="icon-target"></i> {{\'APPLICATION_DISPOSITION\' | translate}}: <strong>{{faxRoom.disposition}}</strong>\n </p>\n <p>\n <i class="icon-calendar"></i> {{\'APPLICATION_UPDATED_AT\' | translate}}: <strong>{{faxRoom.updatedAt | date:\'medium\'}}</strong> (<span am-time-ago="faxRoom.updatedAt"></span>)\n </p>\n </div>\n <form name="forms.compose" data-ng-submit="sendFax()" class="form-horizontal" novalidate>\n\n <!-- START HEAD -->\n <div class="form">\n\n <v-accordion class="vAccordion--default" ng-if="faxRoom.status !== \'CLOSED\'">\n <v-pane expanded="expanded">\n <v-pane-header>\n <i class="icon-people"></i> From: {{form.from}}, To: {{form.to[0].fax}}\n </v-pane-header>\n <v-pane-content>\n <!-- START FROM -->\n <div class="form-group" data-ng-if="faxRoom.status !== \'CLOSED\'" data-ng-class="{\'has-error\': forms.compose.from.$invalid}">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-1">\n <label class="control-label">From:</label>\n </div>\n <div class="col-md-11">\n <ui-select data-ng-model="form.from" data-ng-change="setList($select.selected.ListId)" theme="bootstrap" name="from" required>\n <ui-select-match placeholder="From...">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="faxAccount.localstationid as faxAccount in faxAccounts | filter: $select.search">\n <div data-ng-bind-html="faxAccount.name | highlight: $select.search"></div>\n <small data-ng-bind-html="faxAccount.localstationid | highlight: $select.search"></small>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.compose.from.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n </div>\n <!-- END FROM -->\n\n <!-- START TO -->\n <div class="form-group" data-ng-if="faxRoom.status !== \'CLOSED\'" data-ng-class="{\'has-error\': forms.compose.to.$invalid}">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-1">\n <label class="control-label">To:</label>\n </div>\n <div class="col-md-11">\n <tags-input name="to" ng-model="form.to" type="text" display-property="fax" max-tags="1" min-tags="1">\n <auto-complete source="getContacts($query)"></auto-complete>\n </tags-input>\n <span data-ng-show="forms.compose.to.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_TO_LIMIT\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n </div>\n <!-- END TO -->\n\n </v-pane-content>\n </v-pane>\n </v-accordion>\n\n <!-- START ATTACH -->\n <div class="form-group" data-ng-if="uploader && (faxRoom.status !== \'CLOSED\')">\n <div class="col-md-12">\n <hr ng-if="uploader.queue.length">\n <table class="table">\n <tbody>\n <tr ng-repeat="item in uploader.queue">\n <td style="border-top:none"><strong>{{ item.file.name | truncate: 5: \'...\': true}}</strong></td>\n <td style="border-top:none" ng-show="uploader.isHTML5" nowrap>{{ item.file.size/1024/1024|number:2 }} MB</td>\n <td style="border-top:none" ng-show="uploader.isHTML5">\n <div class="progress" style="margin-bottom: 0;">\n <div class="progress-bar" role="progressbar" ng-style="{ \'width\': item.progress + \'%\' }"></div>\n </div>\n </td>\n <td style="border-top-style:none" class="text-center">\n <span ng-show="item.isSuccess"><i class="glyphicon glyphicon-ok"></i></span>\n <span ng-show="item.isCancel"><i class="glyphicon glyphicon-ban-circle"></i></span>\n <span ng-show="item.isError"><i class="glyphicon glyphicon-remove"></i></span>\n </td>\n <td style="border-top-style:none" nowrap>\n <button type="button" class="btn btn-danger btn-xs" data-ng-click="item.remove()">\n <span class="glyphicon glyphicon-trash"></span> {{\'APPLICATION_REMOVE\' | translate}}\n </button>\n </td>\n </tr>\n </tbody>\n </table>\n <div>\n </div>\n </div>\n </div>\n <!-- END ATTACH -->\n\n </div>\n </form>\n </div>\n </div>\n </div>\n </div>\n</div>\n<!-- END TODO CONTENT -->\n'), -a.put("app/channels/fax/inbox/status/status.modal.html",'<div class="modal-header">\n <button data-ng-if="modal.dismissable" type="button" data-ng-click="$dismiss()" class="close">×</button>\n <h4 data-ng-if="modal.title" data-ng-bind="modal.title | translate" class="modal-title"></h4>\n</div>\n<div class="modal-body">\n <p data-ng-if="modal.text && !closed" ng-bind="modal.text | translate"></p>\n <form name="form" novalidate data-ng-init="initDisposition()">\n <div class="form-group">\n <ui-select data-ng-model="item.disposition" name="disposition" theme="bootstrap" data-ng-disabled="!dispositions.length" required>\n <ui-select-match placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="disposition.name as disposition in dispositions | filter: $select.search">\n <div ng-bind-html="disposition.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="note note-warning" data-ng-if="dispositions.length < 1">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_DISPOSITIONS_AVAILABLE\' | translate }}\n </p>\n </div>\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" data-ng-click="ok()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/fax/inbox/view/account/list/list.html",'<!-- BEGIN Portlet PORTLET-->\n<div class="portlet light" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption">\n <div class="btn-group btn-group-solid">\n <button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'NEW\'" uib-uncheckable>NEW</button>\n </div>\n <div class="btn-group btn-group-solid">\n <button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'OPEN\'" uib-uncheckable>OPEN</button>\n </div>\n <div class="btn-group btn-group-solid">\n <button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'PENDING\'" uib-uncheckable>PENDING</button>\n </div>\n <div class="btn-group btn-group-solid">\n <button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'CLOSED\'" uib-uncheckable>CLOSED</button>\n </div>\n </div>\n <div class="actions">\n <a href="#" class="btn btn-icon-only default" data-ng-click="getPage();">\n <i class="fa fa-refresh"></i>\n </a>\n <a href="#" class="btn btn-icon-only red" data-ng-click="deleteItems();" data-ng-show="id.length && isAdmin">\n <i class="fa fa-trash"></i>\n </a>\n <a href="#" class="btn btn-icon-only btn-success" data-ng-click="disposeItems();" data-ng-show="id.length">\n <i class="fa fa-upload"></i>\n </a>\n <a href="#" class="btn btn-icon-only blue" data-ng-click="tagItems();" data-ng-show="id.length">\n <i class="fa fa-tags"></i>\n </a>\n <a href="#" class="btn btn-icon-only green" data-ng-click="openRoom(null, \'New Message\')">\n <i class="fa fa-plus"></i>\n </a>\n </div>\n </div>\n <div class="portlet-title" data-ng-show="tags.length">\n <!-- START TAGS -->\n <div class="form-group">\n <div class="row">\n <div class="col-md-1">\n <a href="#" class="btn btn-icon-only">\n <i class="fa fa-tags" style="color: gray;"></i>\n </a>\n </div>\n <div class="col-md-11">\n <ui-select multiple data-ng-model="query.tags" theme="bootstrap" on-select="onChanged($item, $model)" on-remove="onChanged($item, $model)">\n <ui-select-match placeholder="Search by tag...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="tag in tags | filter:$select.search">\n {{tag}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n </div>\n <!-- END TAGS -->\n </div>\n <div class="portlet-body">\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="spinner-grid" spinner-start-active="false"></span>\n <!-- END UI-GRID SPINNER -->\n\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-pagination ui-grid-selection ui-grid-exporter class="ui-grid-inbox">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END Portlet PORTLET-->\n'),a.put("app/channels/fax/inbox/view/view.agents.modal.html",'<div class="modal-header" data-ng-init="initModal()">\n <h3 class="modal-title">{{ \'APPLICATION_AGENTS\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <!-- START TRANSPORT -->\n <div class="form-group">\n <form name="form" novalidate>\n <!-- START TRANSPORT -->\n <div class="form-group">\n <ui-select multiple name="agents" data-ng-model="item.agents" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_AGENTS\' | translate}}">{{$item.fullname}}</ui-select-match>\n <ui-select-choices repeat="agent.id as agent in agents | filter: $select.search">\n {{agent.fullname}}\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="agents">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_AGENTS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/staff/agents/list">{{\'APPLICATION_AGENTS\' | translate}}</a>\n </p>\n </div>\n </div>\n <!-- END TRANSPORT -->\n </form>\n </div>\n <!-- END TRANSPORT -->\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" data-ng-click="ok()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/fax/inbox/view/view.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-fax"></i>\n <a href="#">{{ \'APPLICATION_FAX\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-note"></i>\n <a href="#">{{ \'APPLICATION_INBOX\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row inbox">\n <div class="col-md-3">\n <ul class="inbox-nav margin-bottom-10">\n <li data-ng-class="{active: $stateParams.id == faxAccount.id}" data-ng-repeat="faxAccount in faxAccounts">\n <a href="/channels/fax/inbox/view/account/{{faxAccount.id}}/list" class="btn">\n <i class="icon-notebook"></i> {{faxAccount.name}}\n </a>\n <b></b>\n </li>\n </ul>\n <div class="note note-warning" data-ng-hide="faxAccounts.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_AVAILABLE_ACCOUNTS\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/channels/fax/accounts/list">{{\'APPLICATION_ACCOUNTS\' | translate}}</a>\n </p>\n </div>\n </div>\n\n <div class="col-md-9" data-ng-init="initView()">\n <!-- BEGIN PROFILE CONTENT -->\n <div class="room-content">\n <div ui-view>\n <div class="note note-info">\n <h4 class="block">Info! {{\'APPLICATION_NO_ACCOUNT_SELECTED\' | translate}}</h4>\n </div>\n </div>\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n'),a.put("app/channels/fax/inbox/view/view.status.modal.html",'<div class="modal-header" data-ng-init="initModal()">\n <h3 class="modal-title">{{ modal.title | translate }}</h3>\n</div>\n<div class="modal-body">\n <p data-ng-if="modal.text" data-ng-bind="modal.text"></p>\n <div data-ng-if="modal.html" data-ng-bind-html="modal.html"></div>\n</div>\n<div class="modal-footer">\n <button data-ng-repeat="button in modal.buttons"\n data-ng-class="button.classes"\n data-ng-click="button.click($event)"\n data-ng-bind="button.text | translate" class="btn"></button>\n</div>\n'),a.put("app/channels/fax/inbox/view/view.tags.modal.html",'<div class="modal-header" data-ng-init="initModal()">\n <h3 class="modal-title">{{ \'APPLICATION_TAGS\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <!-- START TRANSPORT -->\n <div class="form-group">\n <form name="form" novalidate>\n <!-- START TAGS -->\n <div class="form-group">\n <ui-select multiple data-ng-model="item.tags" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_TAGS\' | translate}}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="tag in tags | filter: $select.search">\n {{tag}}\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END TAGS -->\n </form>\n </div>\n <!-- END TRANSPORT -->\n</div>\n<div class="modal-footer">\n <button type="button" class="btn" data-ng-class="button.class" data-ng-click="button.click()"data-ng-repeat="button in modal.buttons">{{button.text | translate}}</button>\n <!-- <button class="btn btn-success" type="button" data-ng-click="ok()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button> -->\n</div>\n'),a.put("app/channels/fax/queue/list/list.create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_QUEUE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" data-ng-pattern="settings.patternName" required />\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$invalid && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$invalid && form.name.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START STRATEGY -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.strategy.$touched || form.$submitted) && form.strategy.$invalid}">\n <label class="control-label">{{\'APPLICATION_STRATEGY\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.strategy" name="strategy" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | uppercase}}</ui-select-match>\n <ui-select-choices repeat="strategy in strategies | filter: $select.search">\n <div ng-bind-html="strategy | uppercase | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form.strategy.$touched || form.$submitted) && form.strategy.$invalid && form.strategy.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END STRATEGY -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.timeout.$touched || form.$submitted) && form.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_AGENT_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="Timeout" class="form-control" data-ng-model="item.timeout" required min="1"/>\n <span data-ng-show="(form.timeout.$touched || form.$submitted) && form.timeout.$invalid && form.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START AGENTS-->\n <div class="form-body" data-ng-init="getTeams()">\n <label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n <div class="input-group input-small mbottom20">\n <input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="item.penalty" readonly>\n <div class="spinner-buttons input-group-btn btn-group-vertical">\n <button type="button" class="btn spinner-up btn-xs blue" data-ng-click="item.penalty=item.penalty+1">\n <i class="fa fa-angle-up"></i>\n </button>\n <button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!item.penalty" data-ng-click="item.penalty=item.penalty-1">\n <i class="fa fa-angle-down"></i>\n </button>\n </div>\n </div>\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-team">\n </div>\n </div>\n </div>\n <!-- END AGENTS-->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/fax/queue/list/list.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-fax"></i>\n <a href="#">{{ \'APPLICATION_FAX\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="/channels/fax/queues/lis">{{ \'APPLICATION_QUEUES\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_QUEUES\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <a class="btn green-jungle" href="#" data-ng-click="createItem()" data-ng-if="Auth.isAdmin()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_QUEUE\' | translate }}\n </a>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/fax/queue/view/view.agents.html",'<div class="row" data-ng-init="getTeams()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_AGENTS\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body">\n <!-- BEGIN FORM-->\n <form action="index.html" class="form-horizontal form-row-seperated">\n <div class="form-body">\n <label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n <div class="input-group input-small mbottom20">\n <input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="queue.penalty" readonly>\n <div class="spinner-buttons input-group-btn btn-group-vertical">\n <button type="button" class="btn spinner-up btn-xs blue" data-ng-click="queue.penalty=queue.penalty+1">\n <i class="fa fa-angle-up"></i>\n </button>\n <button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!queue.penalty" data-ng-click="queue.penalty=queue.penalty-1">\n <i class="fa fa-angle-down"></i>\n </button>\n </div>\n </div>\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-team">\n </div>\n </div>\n </div>\n </form>\n <!-- END FORM-->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/fax/queue/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getQueue()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-fax"></i>\n <a href="#">{{ \'APPLICATION_FAX\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="/channels/fax/queues/list">{{ \'APPLICATION_QUEUES\' | translate }}</a>\n <i data-ng-show="queue" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="queue">\n <a href="#">{{queue.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/queue.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{queue.name}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.channels.fax.queues.view.settings\')}">\n <a data-ng-href="/channels/fax/queues/view/{{queue.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.channels.fax.queues.view.agents\')}" data-ng-show="Auth.getCurrentUser().role === \'admin\'">\n <a data-ng-href="/channels/fax/queues/view/{{queue.id}}/agents">\n <i class="icon-people"></i>\n {{ \'APPLICATION_AGENTS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/fax/queue/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateFaxQueue()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="queue.name" data-ng-pattern="settings.patternName" required />\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid && forms.general.name.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START STRATEGY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.strategy.$touched || forms.general.$submitted) && forms.general.strategy.$invalid}">\n <label class="control-label">{{\'APPLICATION_STRATEGY\' | translate}}</label>\n <ui-select data-ng-model="queue.strategy" name="strategy" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | uppercase}}</ui-select-match>\n <ui-select-choices repeat="strategy in strategies | filter: $select.search">\n <div ng-bind-html="strategy | uppercase | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END STRATEGY -->\n\n <!-- START TIMEOUT -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}}</label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" min="1" data-ng-model="queue.timeout"/>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="queue.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <input data-ng-if="Auth.isAdmin()" class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/fax/realtime/view/agent/agent.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initAgents()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns class="ui-grid" ui-grid-tree-view ui-grid-expandable-row ui-grid-pagination ui-grid-auto-resize>\n <span us-spinner spinner-key="grid-spinner" spinner-start-active="true"></span>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/fax/realtime/view/agent/agent.modal.info.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_INTERFACE_INFO\' | translate }}</h3>\n</div>\n<div class="modal-body">\n<div data-ng-if="agent.ipaddr" class="well">\n <div>{{agent.ipaddr}}:{{agent.port}}</div>\n <div>{{agent.fullcontact}}</div>\n <div>{{agent.useragent}}</div>\n <div>{{agent.lastms}}</div>\n</div>\n<div data-ng-if="!agent.ipaddr" class="alert alert-danger" role="alert">\n {{\'MESSAGE_NO_AVAILABLE_INFO\' | translate}}\n</div>\n</div>\n<div class="modal-footer">\n <button class="btn default" type="button" ng-click="close()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'),a.put("app/channels/fax/realtime/view/agent/queue.modal.add.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_JOIN_QUEUE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <div class="form-group row">\n <label class="col-md-2 control-label" style="margin-top: 7px;">{{\'APPLICATION_QUEUE\' | translate}}:</label>\n <div class="col-md-10">\n <ui-select multiple ng-model="item.queues" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_QUEUE\' | translate}}">{{$item.name}}</ui-select-match>\n <ui-select-choices repeat="queue.id as queue in queues | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n</div>\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/fax/realtime/view/application/application.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initApplications()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns class="ui-grid" ui-grid-auto-resize>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/fax/realtime/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-fax"></i>\n <a href="#">{{ \'APPLICATION_FAX\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-energy"></i>\n <a href="#">{{ \'APPLICATION_REALTIME\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <div>\n <nav class="navbar navbar-default" role="navigation">\n <div class="collapse navbar-collapse">\n <ul class="nav navbar-nav">\n <li data-ng-class="{\'active\': $state.is(\'main.channels.fax.realtime.view.agents\')}">\n <a href="/channels/fax/realtime/view/agents">\n {{\'APPLICATION_AGENTS\' | translate}}\n </a>\n </li>\n <li data-ng-class="{\'active\': $state.is(\'main.channels.fax.realtime.view.applications\')}">\n <a href="/channels/fax/realtime/view/applications">\n {{\'APPLICATION_APPLICATIONS\' | translate}}\n </a>\n </li>\n <li>\n <a href="#">\n <b>|{{\'APPLICATION_SHOW_TIMERS\' | translate}} </b><input\n bs-switch\n class="form-control"\n ng-model="showTimers"\n type="checkbox"\n name="showTimers"\n switch-active="{{ timerSwitch.isActive }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ timerSwitch.onColor }}"\n switch-off-color="{{ timerSwitch.offColor }}"\n switch-animate="{{ timerSwitch.animate }}"\n switch-size="{{ timerSwitch.size }}"\n switch-label="{{ timerSwitch.label }}"\n switch-icon="{{ timerSwitch.icon }}"\n switch-radio-off="{{ timerSwitch.radioOff }}"\n switch-label-width="{{ timerSwitch.labelWidth }}"\n switch-handle-width="{{ timerSwitch.handleWidth }}"><b>|</b>\n </a>\n </li>\n </ul>\n </div>\n </nav>\n </div>\n\n <div ui-view></div>\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/mail/account/list/list.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-envelope"></i>\n <a href="#">{{ \'APPLICATION_MAIL\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-notebook"></i>\n <a href="#">{{ \'APPLICATION_ACCOUNTS\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACCOUNTS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group">\n <a class="btn btn-default" href="#" data-ng-click="gridOptions.getPage();">\n <i class="icon-reload"></i>\n </a>\n </div>\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="/channels/mail/accounts/wizard">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_ACCOUNT\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'), -a.put("app/channels/mail/account/view/action/list/list.html",'<div class="row" data-ng-init="initActons()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_ACTIONS\' | translate}}</span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="/channels/mail/accounts/view/{{account.id}}/actions/wizard" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_ACTION\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/mail/account/view/action/view/view.html",'\n<div class="row" data-ng-init="initAction()">\n <div class="col-md-12">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-directions font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACTION\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <form name="forms.settings" ng-submit="updateItem()" novalidate>\n <!-- START APP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app.$touched || forms.settings.$submitted) && forms.settings.app.$invalid}">\n <label class="control-label">{{ \'APPLICATION_APPLICATION\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.app" name="app" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_APPLICATION\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="app.value as app in apps | filter: $select.search">\n <div ng-bind-html="app.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.app.$touched || forms.settings.$submitted) && forms.settings.app.$invalid && forms.settings.app.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END APP -->\n\n <div class="app-settings" ng-slide-down="application.app === \'queue\'" lazy-render duration="1" data-ng-init="getQueues()">\n <!-- START QUEUE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.queue.$touched || forms.settings.$submitted) && forms.settings.queue.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.MailQueueId" name="queue" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="queue.id as queue in queues | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="queues.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_QUEUES_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/channels/mail/queues/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.settings.queue.$touched || forms.settings.$submitted) && forms.settings.queue.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n <span data-ng-show="(forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'agent\'" lazy-render duration="1" data-ng-init="getAgents()">\n <!-- START AGENT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.agent.$touched || forms.settings.$submitted) && forms.settings.agent.$invalid}">\n <label class="control-label">{{\'APPLICATION_AGENT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.UserId" name="agent" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.fullname}}</ui-select-match>\n <ui-select-choices repeat="agent.id as agent in agents | filter: $select.search">\n <div ng-bind-html="agent.fullname | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="agents.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_AGENTS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/staff/agents/list">{{\'APPLICATION_AGENTS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.settings.agent.$touched || forms.settings.$submitted) && forms.settings.agent.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END AGENT -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n <span data-ng-show="(forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'sendMail\'" lazy-render duration="1" data-ng-init="getMailAccounts();getTemplates()">\n <!-- START SENDMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="email" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2" min="1" required/>\n <span data-ng-show="(forms.action.from.$touched || forms.action.$submitted) && forms.action.timeout.$invalid && forms.action.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.mail.$touched || forms.action.$submitted) && forms.action.account.$invalid}">\n <label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in mailAccounts | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.template.$touched || forms.action.$submitted) && forms.action.template.$invalid}">\n <label class="control-label">{{\'APPLICATION_TEMPLATE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data9" name="template" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n <div ng-bind-html="template.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.template.$touched || forms.action.$submitted) && forms.action.template.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SENDMAIL -->\n </div>\n\n\n <div class="app-settings" ng-slide-down="application.app === \'replyMail\'" lazy-render duration="1" data-ng-init="getMailAccounts();getTemplates()">\n <!-- START REPLYMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.type.$touched || forms.action.$submitted) && forms.action.type.$invalid}">\n <label class="control-label">{{\'APPLICATION_TYPE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data1" name="type" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.key | translate }}</ui-select-match>\n <ui-select-choices repeat="type.value as type in types | filter: $select.search">\n <div ng-bind-html="type.key | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.type.$touched || forms.action.$submitted) && forms.action.type.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.mail.$touched || forms.action.$submitted) && forms.action.account.$invalid}">\n <label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in mailAccounts | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.template.$touched || forms.action.$submitted) && forms.action.template.$invalid}">\n <label class="control-label">{{\'APPLICATION_TEMPLATE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data9" name="template" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n <div ng-bind-html="template.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.template.$touched || forms.action.$submitted) && forms.action.template.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END REPLYMAIL -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1" data-ng-init="getSmsAccounts()">\n <!-- START SENDSms -->\n <div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1">\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.to.$touched || forms.settings.$submitted) && forms.settings.to.$invalid}">\n <label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" ng-pattern="/^[\\+]?[0-9]+$/" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2" required/>\n <span data-ng-show="(forms.settings.to.$touched || forms.settings.$submitted) && forms.settings.to.$invalid && forms.settings.to.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.account.$touched || forms.settings.$submitted) && forms.settings.account.$invalid}">\n <label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in smsAccounts | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.account.$touched || forms.settings.$submitted) && forms.settings.account.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.text.$touched || forms.text.$submitted) && forms.settings.text.$invalid}">\n <label class="control-label">{{\'APPLICATION_TEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <textarea id="text" class="form-control maxlength-handler" maxlength="160" name="text" data-ng-model="application.data6" required></textarea>\n <span data-ng-show="(forms.settings.text.$touched || forms.settings.$submitted) && forms.settings.text.$invalid && forms.settings.text.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <!-- END SENDSms -->\n </div>\n\n <!-- START INTERVAL_TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.intType.$touched || forms.settings.$submitted) && forms.settings.intType.$invalid}">\n <label class="control-label">{{ \'APPLICATION_INTERVAL_TYPE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.intType" theme="bootstrap" name="intType" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="intType.value as intType in $application.intTypes | filter: $select.search">\n {{ intType.name | translate }}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.intType.$touched || forms.settings.$submitted) && forms.settings.intType.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVAL_TYPE -->\n\n <div class="app-settings" ng-slide-down="application.intType === \'custom\'" lazy-render duration="1">\n <!-- START TIME -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n <div class="input-group input-large">\n <fieldset class="pull-left" ng-disabled="application.alwaysTime">\n <uib-timepicker name="t_from" data-ng-model="application.t_from" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker>\n </fieldset>\n <div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n <fieldset ng-disabled="application.alwaysTime"><uib-timepicker name="t_to" data-ng-model="application.t_to" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker></fieldset>\n <!-- <label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="application.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label> -->\n </div>\n </div>\n <!-- END TIME -->\n\n <!-- START ALWAYS -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ALWAYS\' | translate }}</label>\n <div class="input-group input-large">\n <label class="control-label pointer-cursor">\n <input\n bs-switch\n data-ng-model="application.alwaysTime"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </label>\n </div>\n </div>\n <!-- END ALWAYS -->\n\n <!-- START WEEKDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.wd_from" theme="bootstrap" name="wd_from">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{ weekDay.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.wd_to" theme="bootstrap" name="wd_to">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{ weekDay.name | translate }}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END WEEKDAY -->\n\n <!-- START MONTHDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.md_from" theme="bootstrap" name="md_from">\n <ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_to && application.md_to!==\'always\' && monthDay>application.md_to && monthDay!==\'always\'">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.md_to" theme="bootstrap" name="md_to">\n <ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_from && application.md_from!==\'always\' && monthDay<application.md_from && monthDay!==\'always\'">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTHDAY -->\n\n <!-- START MONTH -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.m_from" theme="bootstrap" name="m_from">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{ month.name | translate }}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.m_to" theme="bootstrap" name="m_to">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{ month.name | translate }}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTH -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.intType === \'list\'" lazy-render duration="1" data-ng-init="getIntervals()">\n\n <!-- START INTERVALS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.IntervalId.$touched || forms.settings.$submitted) && forms.settings.IntervalId.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERVALS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.IntervalId" theme="bootstrap" name="IntervalId" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="interval.id as interval in intervals | filter: $select.search">\n {{ interval.name}}\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="intervals.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_INTERVAL_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/intervals/list">{{\'APPLICATION_INTERVALS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.settings.IntervalId.$touched || forms.settings.$submitted) && forms.settings.IntervalId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVALS -->\n\n </div>\n <button class="btn green-haze" type="submit">{{\'APPLICATION_UPDATE\' | translate}}</button>\n </form>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/mail/account/view/action/wizard/wizard.html",'\n<div class="row" data-ng-init="initWizard()">\n <div class="col-md-12">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-directions font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACTION\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_APPLICATION\' | translate}}" canexit="formValidation(forms.action.$valid)">\n\n <form name="forms.action" novalidate>\n <!-- START APP -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.action.$submitted && forms.action.app.$invalid}">\n <label class="control-label">{{ \'APPLICATION_APPLICATION\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.app" name="app" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_APPLICATION\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="app.value as app in apps | filter: $select.search">\n <div ng-bind-html="app.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.action.$submitted && forms.action.app.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END APP -->\n\n <div class="app-settings" ng-slide-down="application.app === \'agent\'" lazy-render duration="1" data-ng-init="getAgents()">\n <!-- START AGENT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.agent.$touched || forms.action.$submitted) && forms.action.agent.$invalid}">\n <label class="control-label">{{\'APPLICATION_AGENT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.UserId" name="agent" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.fullname}}</ui-select-match>\n <ui-select-choices repeat="agent.id as agent in agents | filter: $select.search">\n <div ng-bind-html="agent.fullname | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="agents.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_AGENTS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/staff/agents/list">{{\'APPLICATION_AGENTS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.action.agent.$touched || forms.action.$submitted) && forms.action.agent.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END AGENT -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n <span data-ng-show="(forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid && forms.action.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'queue\'" lazy-render duration="1" data-ng-init="getQueues()">\n <!-- START QUEUE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.queue.$touched || forms.action.$submitted) && forms.action.queue.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.MailQueueId" name="queue" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="queue.id as queue in queues | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="queues.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_QUEUES_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/channels/mail/queues/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.action.queue.$touched || forms.action.$submitted) && forms.action.queue.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n <span data-ng-show="(forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid && forms.action.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'sendMail\'" lazy-render duration="1" data-ng-init="getMailAccounts();getTemplates()">\n <!-- START SENDMAIL -->\n <div class="app-settings" ng-slide-down="application.app === \'sendMail\'" lazy-render duration="1">\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="email" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2" min="1" required/>\n <span data-ng-show="(forms.action.from.$touched || forms.action.$submitted) && forms.action.timeout.$invalid && forms.action.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.mail.$touched || forms.action.$submitted) && forms.action.account.$invalid}">\n <label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in mailAccounts | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.template.$touched || forms.action.$submitted) && forms.action.template.$invalid}">\n <label class="control-label">{{\'APPLICATION_TEMPLATE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data9" name="template" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n <div ng-bind-html="template.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.template.$touched || forms.action.$submitted) && forms.action.template.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SENDMAIL -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'replyMail\'" lazy-render duration="1" data-ng-init="getMailAccounts();getTemplates()">\n <!-- START REPLYMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.type.$touched || forms.action.$submitted) && forms.action.type.$invalid}">\n <label class="control-label">{{\'APPLICATION_TYPE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data1" name="type" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.key | translate }}</ui-select-match>\n <ui-select-choices repeat="type.value as type in types | filter: $select.search">\n <div ng-bind-html="type.key | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.type.$touched || forms.action.$submitted) && forms.action.type.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.mail.$touched || forms.action.$submitted) && forms.action.account.$invalid}">\n <label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in mailAccounts | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.template.$touched || forms.action.$submitted) && forms.action.template.$invalid}">\n <label class="control-label">{{\'APPLICATION_TEMPLATE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data9" name="template" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n <div ng-bind-html="template.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.template.$touched || forms.action.$submitted) && forms.action.template.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END REPLYMAIL -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1" data-ng-init="getSmsAccounts()">\n <!-- START SENDSms -->\n <div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1">\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.to.$touched || forms.action.$submitted) && forms.action.to.$invalid}">\n <label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" ng-pattern="/^[\\+]?[0-9]+$/" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2" required/>\n <span data-ng-show="(forms.action.to.$touched || forms.action.$submitted) && forms.action.to.$invalid && forms.action.to.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$invalid}">\n <label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in smsAccounts | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.text.$touched || forms.action.$submitted) && forms.action.text.$invalid}">\n <label class="control-label">{{\'APPLICATION_TEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <textarea id="text" class="form-control maxlength-handler" maxlength="160" name="text" data-ng-model="application.data6" required></textarea>\n <span data-ng-show="(forms.action.text.$touched || forms.action.$submitted) && forms.action.text.$invalid && forms.action.text.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <!-- END SENDSms -->\n </div>\n\n <!-- START INTERVAL_TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.intType.$touched || forms.action.$submitted) && forms.action.intType.$invalid}">\n <label class="control-label">{{ \'APPLICATION_INTERVAL_TYPE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.intType" theme="bootstrap" name="intType" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="intType.value as intType in $application.intTypes | filter: $select.search">\n {{ intType.name | translate }}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.intType.$touched || forms.action.$submitted) && forms.action.intType.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVAL_TYPE -->\n\n <div class="app-settings" ng-slide-down="application.intType === \'custom\'" lazy-render duration="1">\n <!-- START TIME -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n <div class="input-group input-large">\n <fieldset class="pull-left" ng-disabled="application.alwaysTime">\n <uib-timepicker name="t_from" data-ng-model="application.t_from" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker>\n </fieldset>\n <div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n <fieldset ng-disabled="application.alwaysTime"><uib-timepicker name="t_to" data-ng-model="application.t_to" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker></fieldset>\n <!-- <label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="application.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label> -->\n </div>\n </div>\n <!-- END TIME -->\n\n <!-- START ALWAYS -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ALWAYS\' | translate }}</label>\n <div class="input-group input-large">\n <label class="control-label pointer-cursor">\n <input\n bs-switch\n data-ng-model="application.alwaysTime"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n <!-- <input type="checkbox" data-ng-model="application.alwaysTime"> -->\n </label>\n </div>\n </div>\n <!-- END ALWAYS -->\n\n <!-- START WEEKDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.wd_from" theme="bootstrap" name="wd_from">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{ weekDay.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.wd_to" theme="bootstrap" name="wd_to">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{ weekDay.name | translate }}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END WEEKDAY -->\n\n <!-- START MONTHDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.md_from" theme="bootstrap" name="md_from">\n <ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_to && application.md_to!==\'always\' && monthDay>application.md_to && monthDay!==\'always\'">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.md_to" theme="bootstrap" name="md_to">\n <ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_from && application.md_from!==\'always\' && monthDay<application.md_from && monthDay!==\'always\'">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTHDAY -->\n\n <!-- START MONTH -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.m_from" theme="bootstrap" name="m_from">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{ month.name | translate }}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.m_to" theme="bootstrap" name="m_to">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{ month.name | translate }}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTH -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.intType === \'list\'" lazy-render duration="1" data-ng-init="getIntervals()">\n\n <!-- START INTERVALS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.IntervalId.$touched || forms.action.$submitted) && forms.action.IntervalId.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERVALS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.IntervalId" theme="bootstrap" name="IntervalId" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="interval.id as interval in intervals | filter: $select.search">\n {{ interval.name}}\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="intervals.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_INTERVAL_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/intervals/list">{{\'APPLICATION_INTERVALS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.action.IntervalId.$touched || forms.action.$submitted) && forms.action.IntervalId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVALS -->\n\n </div>\n\n <input class="btn green-haze" type="submit" data-ng-click="next()" value="{{\'APPLICATION_CONTINUE\' | translate}}"/>\n\n </form>\n </wz-step>\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n <input class="btn green-haze" type="submit" data-ng-click="next()" value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'), -a.put("app/channels/mail/account/view/disposition/modal/add.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_DISPOSITIONS\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.form.$touched || form.$submitted) && form.form.$invalid}">\n <div class="">\n <!-- <input type="text" name="form" placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}" class="form-control" data-ng-model="name" data-ng-pattern="/^[a-zA-Z0-9]*$/" required/> -->\n <input type="text" name="form" placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}" class="form-control" data-ng-model="name" required/>\n <span data-ng-show="form.form.$touched && form.form.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <!-- <span data-ng-show="form.form.$touched && form.form.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_PATTERN\' | translate}}.\n </span> -->\n </div>\n <!-- <div class="help-block">\n {{\'MESSAGE_ALLOWED_NUMBERS_AND_LETTERS\' | translate}}\n </div> -->\n </div>\n <!-- END NAME -->\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" data-ng-click="ok()" data-ng-show="form.$valid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/mail/account/view/disposition/view/view.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_DISPOSITIONS\' | translate}}</span>\n </div>\n <div class="actions actions-md">\n <a href="#" class="btn btn-icon-only green" data-ng-click="addDisposition();">\n <i class="fa fa-plus"></i>\n </a>\n </div>\n </div>\n <div class="portlet-body" data-ng-init="initView()">\n <div class="tab-content">\n <div class="row" data-ng-hide="dispositions.length">\n <div class="col-md-12">\n <div class="note note-info">\n <h4 class="block">Info! {{\'MESSAGE_NO_DISPOSITIONS_AVAILABLE\' | translate}}</h4>\n </div>\n </div>\n </div>\n\n <!-- GENERAL TAB -->\n <div class="row" data-ng-repeat="disposition in dispositions">\n <div class="col-md-12 form-group">\n <div class="input-group">\n <div>\n <input class="form-control" type="text" placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}" data-ng-model="disposition.name">\n </div>\n <span class="input-group-btn">\n <button class="btn btn-success" type="button" data-ng-click="updateDisposition(disposition.id, disposition.name);"><i class="fa fa-cloud-upload fa-fw"></i> {{\'APPLICATION_UPDATE\' | translate}}</button>\n <button class="btn btn-danger" type="button" data-ng-click="deleteDisposition(disposition.id);"><i class="fa fa-times fa-fw"></i> {{\'APPLICATION_DELETE\' | translate}}</button>\n </span>\n </div>\n </div>\n </div>\n <!-- END GENERAL TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/mail/account/view/hooks/view/view.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_HOOKS\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_ACCEPT\' | translate}}</a>\n </li>\n <li >\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_REJECT\' | translate}}</a>\n </li>\n <li >\n <a href="#" data-target="#tab_1_3" data-toggle="tab">{{\'APPLICATION_CLOSE\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- ACCEPT TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.accept" data-ng-submit="forms.accept.$valid && updateItemMailAccount()" novalidate>\n <div class="row">\n <div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.accept.method.$touched || forms.accept.$submitted) && forms.accept.method.$invalid}">\n <label class="control-label">{{\'APPLICATION_METHOD\' | translate}}</label>\n <ui-select data-ng-model="account.acceptMethod" name="method" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected.name | uppercase}}</ui-select-match>\n <ui-select-choices repeat="type.value as type in types | filter: $select.search">\n <div ng-bind-html="type.name | highlight: $select.search | uppercase" ></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.accept.method.$touched || forms.accept.$submitted) && forms.accept.method.$invalid && forms.accept.method.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.accept.url.$touched || forms.accept.$submitted) && forms.accept.url.$invalid}">\n <label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n <input type="url" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="account.acceptUrl" ng-required="account.acceptMethod"/>\n <span data-ng-show="(forms.accept.url.$touched || forms.accept.$submitted) && forms.accept.url.$invalid && forms.accept.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <div class="row" ng-repeat = "action in account.actions">\n <div ng-switch="action.action">\n <div ng-switch-when="pause">\n <div class="form-group col-md-4">\n <label class="control-label">{{\'APPLICATION_PAUSE\' | translate}}</label></br>\n <input\n bs-switch\n data-ng-change="resetActionData(action)"\n data-ng-model="action.enabled"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </div>\n <div ng-if="action.enabled" class="form-group col-md-8">\n <label class="control-label">{{\'APPLICATION_TYPE\' | translate}}</label>\n <ui-select name="action" data-ng-model="action.type" theme="bootstrap" >\n <ui-select-match placeholder="{{\'APPLICATION_TYPE\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat=" pause.name as pause in pauses | filter: $select.search">\n <div ng-bind-html="pause.name | highlight: $select.search | uppercase" ></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n </div>\n </div>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ACCEPT TAB -->\n <!-- START REJECT TAB -->\n <div class="tab-pane" id="tab_1_2">\n <form name="forms.reject" data-ng-submit="forms.reject.$valid && updateItemMailAccount()" novalidate>\n <div class="row">\n <div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.reject.method.$touched || forms.reject.$submitted) && forms.reject.method.$invalid}">\n <label class="control-label">{{\'APPLICATION_METHOD\' | translate}}</label>\n <ui-select data-ng-model="account.rejectMethod" name="method" theme="bootstrap" >\n <ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected.name | uppercase}}</ui-select-match>\n <ui-select-choices repeat="type.value as type in types | filter: $select.search">\n <div ng-bind-html="type.name | highlight: $select.search | uppercase" ></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.reject.method.$touched || forms.reject.$submitted) && forms.reject.method.$invalid && forms.reject.method.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.reject.url.$touched || forms.reject.$submitted) && forms.reject.url.$invalid}">\n <label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n <input type="url" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="account.rejectUrl" ng-required="account.rejectMethod"/>\n <span data-ng-show="(forms.reject.url.$touched || forms.reject.$submitted) && forms.reject.url.$invalid && forms.reject.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END REJECT TAB -->\n <!-- START CLOSE TAB -->\n <div class="tab-pane" id="tab_1_3">\n <form name="forms.close" data-ng-submit="forms.close.$valid && updateItemMailAccount()" novalidate>\n <div class="row">\n <div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.close.method.$touched || forms.close.$submitted) && forms.close.method.$invalid}">\n <label class="control-label">{{\'APPLICATION_METHOD\' | translate}}</label>\n <ui-select data-ng-model="account.closeMethod" name="method" theme="bootstrap" >\n <ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected.name | uppercase}}</ui-select-match>\n <ui-select-choices repeat="type.value as type in types | filter: $select.search">\n <div ng-bind-html="type.name | highlight: $select.search | uppercase" ></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.close.method.$touched || forms.close.$submitted) && forms.close.method.$invalid && forms.close.method.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.close.url.$touched || forms.close.$submitted) && forms.close.url.$invalid}">\n <label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n <input type="url" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="account.closeUrl" ng-required="account.closeMethod"/>\n <span data-ng-show="(forms.close.url.$touched || forms.close.$submitted) && forms.close.url.$invalid && forms.close.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END CLOSE TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/mail/account/view/other/view/view.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_OTHER\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERALS\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_SIGNATURE\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body" data-ng-init="initView()">\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="mail-spinner-grid" spinner-start-active="false"></span>\n <!-- END UI-GRID SPINNER -->\n\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.info" data-ng-submit="forms.info.$valid && updateItemMailAccount()" novalidate>\n <!-- START WHITE LABEL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.whiteLabel.$touched || forms.info.$submitted) && forms.info.whiteLabel.$invalid}">\n <label class="control-label">{{\'APPLICATION_WHITE_LABEL\' | translate}}</label>\n <textarea type="text" name="whiteLabel" placeholder="{{\'APPLICATION_WHITE_LABEL\' | translate}}" class="form-control" data-ng-model="account.whiteLabel" data-ng-disabled="!license.custom"/></textarea>\n <span data-ng-show="(forms.info.whiteLabel.$touched || forms.info.$submitted) && forms.info.whiteLabel.$invalid && forms.info.whiteLabel.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END WHITE LABEL -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}" data-ng-disabled="!license.custom"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n\n <!-- GENERAL TAB -->\n <div class="tab-pane" id="tab_1_2">\n <form name="forms.signature" data-ng-submit="updateItemMailAccount()" novalidate>\n <!-- START SIGNATURE -->\n <div class="form-group">\n <div ckeditor="options" ng-model="account.signature"></div>\n </div>\n <!-- END WHITE LABEL -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/mail/account/view/setting/view/view.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERALS\' | translate}}</a>\n </li>\n <li data-ng-if="account.MailServerIn">\n <a href="#" data-target="#tab_1_2" data-toggle="tab">IMAP</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_3" data-toggle="tab">SMTP</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body" data-ng-init="initView()">\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="mail-spinner-grid" spinner-start-active="false"></span>\n <!-- END UI-GRID SPINNER -->\n\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.info" data-ng-submit="forms.info.$valid && updateItemMailAccount()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.name" required/>\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid && forms.info.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START ADDRESS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.address.$touched || forms.info.$submitted) && forms.info.address.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL_ADDRESS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="address" placeholder="{{\'APPLICATION_ADDRESS\' | translate}}" class="form-control" data-ng-model="account.address" required/>\n <span data-ng-show="(forms.info.address.$touched || forms.info.$submitted) && forms.info.address.$invalid && forms.info.address.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END ADDRESS -->\n\n <!-- START LIST -->\n <div class="form-group" data-ng-if="license.cm">\n <label class="control-label">{{\'APPLICATION_LIST\' | translate}}</label>\n <div class="input-group">\n\n <ui-select data-ng-model="account.ListId" name="list" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_LIST\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="list.id as list in lists | filter: $select.search">\n <div ng-bind-html="list.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n\n <span class="input-group-btn">\n <button type="button" data-ng-click="account.ListId = null" class="btn btn-default">\n <span class="glyphicon glyphicon-trash"></span>\n </button>\n </span>\n\n </div>\n </div>\n <!-- END LIST -->\n\n <!-- START TEMPLATE -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_TEMPLATE\' | translate}}</label>\n <div class="input-group">\n\n <ui-select data-ng-model="account.TemplateId" name="template" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_TEMPLATE\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n <div ng-bind-html="template.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n\n <span class="input-group-btn">\n <button type="button" data-ng-click="account.TemplateId = null" class="btn btn-default">\n <span class="glyphicon glyphicon-trash"></span>\n </button>\n </span>\n\n </div>\n </div>\n <!-- END TEMPLATE -->\n\n <!-- START FIDELITY -->\n <!-- <div class="form-group" data-ng-if="account.MailServerIn">\n <label class="control-label">{{\'APPLICATION_FIDELITY\' | translate}}</label></br>\n <input\n bs-switch\n data-ng-model="account.fidelity"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </div> -->\n <!-- END FIDELITY -->\n\n <!-- START TIMEOUT -->\n <!-- <div class="form-group" data-ng-if="account.fidelity" data-ng-class="{\'has-error\': (forms.info.timeout.$touched || forms.info.$submitted) && forms.info.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="0" name="timeout" placeholder="{{\'APPLICATION_PORT\' | translate}}" class="form-control" data-ng-model="account.timeout" required/>\n <span data-ng-show="(forms.info.timeout.$touched || forms.info.$submitted) && forms.info.timeout.$invalid && forms.info.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.timeout.$touched || forms.info.$submitted) && forms.info.timeout.$invalid && forms.info.timeout.$error.number" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n </span>\n </div> -->\n <!-- END TIMEOUT -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="account.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START SERVICE -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_SERVICE\' | translate}}</label><br>\n <input\n bs-switch\n data-ng-model="account.service"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </div>\n <!-- END SERVICE -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n\n <!-- IMAP TAB -->\n <div class="tab-pane" id="tab_1_2" data-ng-if="account.MailServerIn">\n <div class="note note-danger" data-ng-show="account.MailServerIn.state === \'DISCONNECTED\' || account.MailServerIn.state === \'ERROR\'">\n <p> ERROR </p>\n <json-formatter open="1" json="account.MailServerIn.source"></json-formatter>\n </div>\n\n <div class="note note-success" data-ng-show="account.MailServerIn.state === \'CONNECTED\'">\n <p> CONNECTED </p>\n </div>\n\n <div class="note note-info" data-ng-show="account.MailServerIn.state === \'CONNECTING\'">\n <p> TRYING... </p>\n </div>\n\n <form name="forms.formIn" data-ng-submit="forms.formIn.$valid && updateItemMailServerIn()" novalidate>\n <!-- START HOST -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formIn.host.$touched || forms.formIn.$submitted) && forms.formIn.host.$invalid}">\n <label class="control-label">{{\'APPLICATION_HOST\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="host" placeholder="{{\'APPLICATION_HOST\' | translate}}" class="form-control" data-ng-model="account.MailServerIn.host" required/>\n <span data-ng-show="(forms.formIn.host.$touched || forms.formIn.$submitted) && forms.formIn.host.$invalid && forms.formIn.host.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END HOST -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formIn.username.$touched || forms.formIn.$submitted) && forms.formIn.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="account.MailServerIn.username" required/>\n <span data-ng-show="(forms.formIn.username.$touched || forms.formIn.$submitted) && forms.formIn.username.$invalid && forms.formIn.username.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formIn.password.$touched || forms.formIn.$submitted) && forms.formIn.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="account.MailServerIn.password" required/>\n <span data-ng-show="(forms.formIn.password.$touched || forms.formIn.$submitted) && forms.formIn.password.$invalid && forms.formIn.password.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START PORT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formIn.port.$touched || forms.formIn.$submitted) && forms.formIn.port.$invalid}">\n <label class="control-label">{{\'APPLICATION_PORT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" name="port" placeholder="{{\'APPLICATION_PORT\' | translate}}" class="form-control" data-ng-model="account.MailServerIn.port" required/>\n <span data-ng-show="(forms.formIn.port.$touched || forms.formIn.$submitted) && forms.formIn.port.$invalid && forms.formIn.port.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.formIn.port.$touched || forms.formIn.$submitted) && forms.formIn.port.$invalid && forms.formIn.port.$error.number" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PORT -->\n\n <!-- START MAILBOX -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_MAILBOX\' | translate}}</label>\n <input type="text" name="mailbox" placeholder="{{\'APPLICATION_MAILBOX\' | translate}}" class="form-control" data-ng-model="account.MailServerIn.mailbox"/>\n </div>\n <!-- END MAILBOX -->\n\n <!-- START SEARCH FILTER -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_SEARCH_FILTER\' | translate}}</label>\n <ui-select data-ng-model="account.MailServerIn.filter" name="filter" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="filter in [\'UNSEEN\'] | filter: $select.search">\n <div ng-bind-html="filter | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- START SEARCH FILTER -->\n\n <!-- START connTimeout -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.in.connTimeout.$touched || forms.in.$submitted) && forms.in.connTimeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONNECTION_TIMEOUT\' | translate}} [sec]<span class="required" aria-required="true">*</span></label>\n <input type="number" name="connTimeout" placeholder="{{\'APPLICATION_CONNECTION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="account.MailServerIn.connTimeout" required/>\n <span data-ng-show="(forms.in.connTimeout.$touched || forms.in.$submitted) && forms.in.connTimeout.$invalid && forms.in.connTimeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.in.connTimeout.$touched || forms.in.$submitted) && forms.in.connTimeout.$invalid && forms.in.connTimeout.$error.number" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END connTimeout -->\n\n <!-- START authTimeout -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.in.authTimeout.$touched || forms.in.$submitted) && forms.in.authTimeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_AUTH_TIMEOUT\' | translate}} [sec]<span class="required" aria-required="true">*</span></label>\n <input type="number" name="authTimeout" placeholder="{{\'APPLICATION_AUTH_TIMEOUT\' | translate}}" class="form-control" data-ng-model="account.MailServerIn.authTimeout" required/>\n <span data-ng-show="(forms.in.authTimeout.$touched || forms.in.$submitted) && forms.in.authTimeout.$invalid && forms.in.authTimeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.in.authTimeout.$touched || forms.in.$submitted) && forms.in.authTimeout.$invalid && forms.in.authTimeout.$error.number" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END authTimeout -->\n\n <!-- START DELETE -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DELETE_MAIL_FROM_SERVER\' | translate}}</label><br>\n <input\n bs-switch\n data-ng-model="account.MailServerIn.delete"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </div>\n <!-- END DELETE -->\n\n <!-- START SSL -->\n <div class="form-group">\n <label class="control-label">SSL</label><br>\n <input\n bs-switch\n data-ng-model="account.MailServerIn.ssl"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </div>\n <!-- END SSL -->\n\n <!-- START Keepalive -->\n <div class="form-group">\n <label class="control-label">Keepalive</label><br>\n <input\n bs-switch\n data-ng-model="account.MailServerIn.keepalive"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </div>\n <!-- END Keepalive -->\n\n <!-- START POLLING -->\n <!-- <div class="form-group">\n <label class="control-label">{{\'APPLICATION_POLLING\' | translate}}</label><br>\n <input\n bs-switch\n data-ng-model="account.MailServerIn.polling"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </div> -->\n <!-- END POLLING -->\n\n <!-- START POLLING_TIMEOUT -->\n <!-- <div data-ng-if="account.MailServerIn.polling" class="form-group" data-ng-class="{\'has-error\': (forms.formOut.pollingTimeout.$touched || forms.formOut.$submitted) && forms.formOut.pollingTimeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_POLLING_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="60" name="pollingTimeout" placeholder="{{\'APPLICATION_POLLING_TIMEOUT\' | translate}}" class="form-control" data-ng-model="account.MailServerIn.pollingTimeout" required/>\n <span data-ng-show="(forms.formOut.form.$touched || forms.formOut.$submitted) && forms.formOut.pollingTimeout.$invalid && forms.formOut.pollingTimeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.formOut.form.$touched || forms.formOut.$submitted) && forms.formOut.pollingTimeout.$invalid && forms.formOut.pollingTimeout.$error.number" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n </span>\n </div> -->\n <!-- END POLLING_TIMEOUT -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END IMAP TAB -->\n\n <!-- SMTP TAB -->\n <div class="tab-pane" id="tab_1_3">\n\n <div class="note note-danger" data-ng-show="account.MailServerOut.state === \'DISCONNECTED\' || account.MailServerOut.state === \'ERROR\'">\n <p> ERROR </p>\n <json-formatter open="1" json="account.MailServerOut.source"></json-formatter>\n </div>\n\n <div class="note note-success" data-ng-show="account.MailServerOut.state === \'CONNECTED\'">\n <p> CONNECTED </p>\n </div>\n\n <div class="note note-info" data-ng-show="account.MailServerOut.state === \'CONNECTING\'">\n <p> TRYING... </p>\n </div>\n\n <form name="forms.formOut" data-ng-submit="forms.formOut.$valid && updateItemMailServerOut()" novalidate>\n\n <!-- START HOST -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formOut.host.$touched || forms.formOut.$submitted) && forms.formOut.host.$invalid}">\n <label class="control-label">{{\'APPLICATION_HOST\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="host" placeholder="{{\'APPLICATION_HOST\' | translate}}" class="form-control" data-ng-model="account.MailServerOut.host" required/>\n <span data-ng-show="(forms.formOut.host.$touched || forms.formOut.$submitted) && forms.formOut.host.$invalid && forms.formOut.host.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END HOST -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formOut.username.$touched || forms.formOut.$submitted) && forms.formOut.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="account.MailServerOut.username" required/>\n <span data-ng-show="(forms.formOut.username.$touched || forms.formOut.$submitted) && forms.formOut.username.$invalid && forms.formOut.username.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formOut.password.$touched || forms.formOut.$submitted) && forms.formOut.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="account.MailServerOut.password" required/>\n <span data-ng-show="(forms.formOut.password.$touched || forms.formOut.$submitted) && forms.formOut.password.$invalid && forms.formOut.password.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START PORT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formOut.port.$touched || forms.formOut.$submitted) && forms.formOut.port.$invalid}">\n <label class="control-label">{{\'APPLICATION_PORT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" name="port" placeholder="{{\'APPLICATION_PORT\' | translate}}" class="form-control" data-ng-model="account.MailServerOut.port" required/>\n <span data-ng-show="(forms.formOut.form.$touched || forms.formOut.$submitted) && forms.formOut.port.$invalid && forms.formOut.port.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.formOut.form.$touched || forms.formOut.$submitted) && forms.formOut.port.$invalid && forms.formOut.port.$error.number" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PORT -->\n\n <!-- START SSL -->\n <div class="form-group">\n <label class="control-label">SSL</label><br>\n <input\n bs-switch\n data-ng-model="account.MailServerOut.ssl"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </div>\n <!-- END SSL -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n <input class="btn blue-madison" type="button" value="Test" data-ng-click="test()"/>\n </form>\n </div>\n <!-- END SMTP TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'), -a.put("app/channels/mail/account/view/view.html",'<!-- BEGIN PAGE HEADER-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-envelope"></i>\n <a href="#">{{ \'APPLICATION_MAIL\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-notebook"></i>\n <a href="/channels/mail/accounts/list">{{ \'APPLICATION_ACCOUNTS\' | translate }}</a>\n <i class="fa fa-angle-right" data-ng-show="account"></i>\n </li>\n <li data-ng-show="account">\n <a href="#">{{ account.description || account.name }}</a>\n </li>\n </ul>\n </div>\n\n<!-- END PAGE HEADER-->\n\n<!-- BEGIN PAGE CONTENT-->\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar" data-ng-init="initView()">\n <!-- PORTLET main.channels -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img ng-src="assets/images/media/account.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{ account.description || account.name }}\n </div>\n <div class="profile-usertitle-job">\n {{account.email}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li ng-class="{active: $state.is(\'main.channels.mail.accounts.view.settings\')}">\n <a href="/channels/mail/accounts/view/{{account.id}}/settings">\n <i class="icon-settings"></i>\n {{\'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n <li ng-class="{active: $state.is(\'main.channels.mail.accounts.view.hooks\')}" data-ng-if="account.MailServerIn">\n <a href="/channels/mail/accounts/view/{{account.id}}/hooks">\n <i class="fa fa-code"></i>\n {{\'APPLICATION_HOOKS\' | translate}} </a>\n </li>\n <li ng-class="{active: $state.is(\'main.channels.mail.accounts.view.dispositions\')}" data-ng-if="account.MailServerIn">\n <a href="/channels/mail/accounts/view/{{account.id}}/dispositions">\n <i class="icon-target"></i>\n {{\'APPLICATION_DISPOSITIONS\' | translate}} </a>\n </li>\n <li ng-class="{active: $state.includes(\'main.channels.mail.accounts.view.actions\')}" data-ng-if="account.MailServerIn">\n <a href="/channels/mail/accounts/view/{{account.id}}/actions/list">\n <i class="icon-directions"></i>\n {{\'APPLICATION_ACTIONS\' | translate}} </a>\n </li>\n <li ng-class="{active: $state.includes(\'main.channels.mail.accounts.view.other\')}" data-ng-if="account.MailServerIn">\n <a href="/channels/mail/accounts/view/{{account.id}}/other">\n <i class="icon-equalizer"></i>\n {{\'APPLICATION_OTHER\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <div ui-view class="profile-content"></div>\n <!-- END PROFILE CONTENT -->\n </div>\n<!-- END PAGE CONTENT-->\n</div>\n'),a.put("app/channels/mail/account/wizard/wizard.html",'\n<div class="row" data-ng-init="initWizard()">\n <div class="col-md-12">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-envelope"></i>\n <a href="#">{{ \'APPLICATION_MAIL\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-notebook"></i>\n <a href="/channels/mail/accounts/list">{{ \'APPLICATION_ACCOUNTS\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACCOUNT\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_ACCOUNT_INFO\' | translate}}" canexit="formValidation(forms.info.$valid)">\n <form name="forms.info" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid && forms.info.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START ADDRESS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.address.$touched || forms.info.$submitted) && forms.info.address.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL_ADDRESS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="address" placeholder="{{\'APPLICATION_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.address" required/>\n <span data-ng-show="(forms.info.address.$touched || forms.info.$submitted) && forms.info.address.$invalid && forms.info.address.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END ADDRESS -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n </div>\n <!-- END DESCRIPTION -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" data-ng-click="goNext()"/>\n </form>\n </wz-step>\n\n <wz-step title="IMAP" canexit="formValidation(forms.in.$valid)">\n <form name="forms.in" novalidate>\n <!-- START HOST -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.in.host.$touched || forms.in.$submitted) && forms.in.host.$invalid}">\n <label class="control-label">{{\'APPLICATION_INCOMING_MAIL_SERVER\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="host" placeholder="{{\'APPLICATION_HOST\' | translate}}" class="form-control" data-ng-model="item.MailServerIn.host" required/>\n <span data-ng-show="(forms.in.host.$touched || forms.in.$submitted) && forms.in.host.$invalid && forms.in.host.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END HOST -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.in.username.$touched || forms.in.$submitted) && forms.in.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="item.MailServerIn.username" name="username" required/>\n <span data-ng-show="(forms.in.username.$touched || forms.in.$submitted) && forms.in.username.$invalid && forms.in.username.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.in.password.$touched || forms.in.$submitted) && forms.in.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.MailServerIn.password" required/>\n <span data-ng-show="(forms.in.password.$touched || forms.in.$submitted) && forms.in.password.$invalid && forms.in.password.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START PORT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.in.port.$touched || forms.in.$submitted) && forms.in.port.$invalid}">\n <label class="control-label">{{\'APPLICATION_PORT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" name="port" placeholder="{{\'APPLICATION_PORT\' | translate}}" class="form-control" data-ng-model="item.MailServerIn.port" required/>\n <span data-ng-show="(forms.in.port.$touched || forms.in.$submitted) && forms.in.port.$invalid && forms.in.port.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.in.port.$touched || forms.in.$submitted) && forms.in.port.$invalid && forms.in.port.$error.number" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PORT -->\n\n <!-- START MAILBOX -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_MAILBOX\' | translate}}</label>\n <input type="text" name="mailbox" placeholder="{{\'APPLICATION_MAILBOX\' | translate}}" class="form-control" data-ng-model="item.MailServerIn.mailbox"/>\n </div>\n <!-- END MAILBOX -->\n\n <!-- START SEARCH FILTER -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_SEARCH_FILTER\' | translate}}</label>\n <ui-select data-ng-model="item.MailServerIn.filter" name="filter" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="filter in [\'UNSEEN\'] | filter: $select.search">\n <div data-ng-bind="filter | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- START SEARCH FILTER -->\n\n <!-- START connTimeout -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.in.connTimeout.$touched || forms.in.$submitted) && forms.in.connTimeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONNECTION_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" name="connTimeout" placeholder="{{\'APPLICATION_CONNECTION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="item.MailServerIn.connTimeout" required/>\n <span data-ng-show="(forms.in.connTimeout.$touched || forms.in.$submitted) && forms.in.connTimeout.$invalid && forms.in.connTimeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.in.connTimeout.$touched || forms.in.$submitted) && forms.in.connTimeout.$invalid && forms.in.connTimeout.$error.number" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END connTimeout -->\n\n <!-- START authTimeout -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.in.authTimeout.$touched || forms.in.$submitted) && forms.in.authTimeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_AUTH_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" name="authTimeout" placeholder="{{\'APPLICATION_AUTH_TIMEOUT\' | translate}}" class="form-control" data-ng-model="item.MailServerIn.authTimeout" required/>\n <span data-ng-show="(forms.in.authTimeout.$touched || forms.in.$submitted) && forms.in.authTimeout.$invalid && forms.in.authTimeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.in.authTimeout.$touched || forms.in.$submitted) && forms.in.authTimeout.$invalid && forms.in.authTimeout.$error.number" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END authTimeout -->\n\n <!-- START DELETE -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DELETE_MAIL_FROM_SERVER\' | translate}}</label><br>\n <input\n bs-switch\n data-ng-model="item.MailServerIn.delete"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </div>\n <!-- END DELETE -->\n\n <!-- START SSL -->\n <div class="form-group">\n <label class="control-label">SSL</label><br>\n <input\n bs-switch\n data-ng-model="item.MailServerIn.ssl"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </div>\n <!-- END SSL -->\n\n <!-- START Keepalive -->\n <div class="form-group">\n <label class="control-label">Keepalive</label><br>\n <input\n bs-switch\n data-ng-model="item.MailServerIn.keepalive"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </div>\n <!-- END Keepalive -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="goNext()"/>\n </form>\n </wz-step>\n\n <wz-step title="SMTP" canexit="formValidation(forms.out.$valid)">\n <form name="forms.out" novalidate>\n <!-- START HOST -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.out.host.$touched || forms.out.$submitted) && forms.out.host.$invalid}">\n <label class="control-label">{{\'APPLICATION_OUTGOING_MAIL_SERVER\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="host" placeholder="{{\'APPLICATION_HOST\' | translate}}" class="form-control" data-ng-model="item.MailServerOut.host" required/>\n <span data-ng-show="(forms.out.host.$touched || forms.out.$submitted) && forms.out.host.$invalid && forms.out.host.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END HOST -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.out.username.$touched || forms.out.$submitted) && forms.out.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="item.MailServerOut.username" required/>\n <span data-ng-show="(forms.out.username.$touched || forms.out.$submitted) && forms.out.username.$invalid && forms.out.username.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.out.password.$touched || forms.out.$submitted) && forms.out.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.MailServerOut.password" required/>\n <span data-ng-show="(forms.out.password.$touched || forms.out.$submitted) && forms.out.password.$invalid && forms.out.password.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START PORT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.out.port.$touched || forms.out.$submitted) && forms.out.port.$invalid}">\n <label class="control-label">{{\'APPLICATION_PORT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" name="port" placeholder="{{\'APPLICATION_PORT\' | translate}}" class="form-control" data-ng-model="item.MailServerOut.port" required/>\n <span data-ng-show="(out.$touched || forms.out.$submitted) && forms.out.port.$invalid && forms.out.port.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(out.$touched || forms.out.$submitted) && forms.out.port.$invalid && forms.out.port.$error.number" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PORT -->\n\n <!-- START SSL -->\n <div class="form-group">\n <label class="control-label">SSL</label><br>\n <input\n bs-switch\n data-ng-model="item.MailServerOut.ssl"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </div>\n <!-- END SSL -->\n\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="goNext()"/>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/mail/inbox/message/info.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_INFO\' | translate }}</h3>\n</div>\n<div class="modal-body" data-ng-init="initInfo()">\n <div class="form-group" ng-if="data">\n <json-formatter json="data" open="1"></json-formatter>\n </div>\n <div class="note note-warning" data-ng-hide="data">\n <h4 class="block"></h4>\n <p>\n {{ \'MESSAGE_NO_INFO_AVAILABLE\' | translate }}\n </p>\n </div>\n\n</div>\n<div class="modal-footer">\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'),a.put("app/channels/mail/inbox/message/message.directive.html",'<div class="message">\n <div class="row">\n <div class="col-md-12">\n <span class="bold">From: </span>\n <a href="" data-ng-click="openContact(message.from[0])">{{message.from[0]}} </a>\n <br>\n <span class="bold">To: </span>\n <a href="" data-ng-click="openContact(to)" data-ng-repeat="to in message.to">{{to}}<span data-ng-if="!$last">, </span></a>\n <br>\n <span data-ng-if="message.cc.length" class="bold">Cc: </span>\n <a href="" data-ng-click="openContact(cc)" data-ng-repeat="cc in message.cc">{{cc}}<span data-ng-if="!$last">, </span></a>\n <br>\n <span data-ng-if="message.bcc.length" class="bold">Bcc: </span>\n <a href="" data-ng-click="openContact(bcc)" data-ng-repeat="cc in message.bcc">{{bcc}}<span data-ng-if="!$last">, </span></a>\n </div>\n <div class="row">\n <div class="col-md-12">\n <span class="pull-right" data-ng-if="message.User">{{\'APPLICATION_SENT_BY\' | translate}}: <strong>{{message.User.fullname}}</strong></span>\n <span class="pull-right" data-ng-if="message.auto && !message.voiceSource">{{\'APPLICATION_SENT_BY\' | translate}}: <strong>System</strong></span>\n <span class="pull-right" data-ng-if="message.auto && message.voiceSource">{{\'APPLICATION_SENT_BY\' | translate}}: <strong>Cally ²</strong>\n <a ng-click="info(message.voiceSource)"><i class="icon-info font-blue"></i>\n </a>\n </span>\n </div>\n </div>\n <br>\n <span class="todo-tasklist-date">\n <span class="pull-right" data-ng-switch="message.status" data-ng-if="message.status!==\'RECEIVED\'" uib-tooltip="{{\'APPLICATION_RETRY\' | translate}}: {{message.retry}}">\n <a ng-switch-when="SENDING" href="#" class="btn default btn-xs inactive-link blue-stripe"> {{message.status | uppercase}}\n <i class="fa fa-warning"></i>\n </a>\n <a ng-switch-when="SENT" href="#" class="btn default btn-xs inactive-link green-stripe"> {{message.status | uppercase}}\n <i class="fa fa-check"></i>\n </a>\n <a ng-switch-when="FAILED" href="#" class="btn default btn-xs red-stripe" data-ng-click="retry(message.id)"> {{message.status | uppercase}}\n <i class="fa fa-times"></i>\n </a>\n </span>\n <span class="pull-right" data-ng-if="message.status===\'RECEIVED\'">\n <a href="#" class="btn default btn-xs inactive-link green-stripe"> {{message.status | uppercase}}\n <i class="fa fa-check"></i>\n </a>\n </span>\n <i class="icon-calendar" title="{{message.updatedAt | date:\'MMM d, y HH:mm:ss\'}}"></i> <span am-time-ago="message.updatedAt"></span>\n </span>\n <hr>\n <div class="body text-left message-body" data-ng-bind="message.text"></div>\n <h5 data-ng-hide="message.text" class="media-heading"><i>{{\'MESSAGE_NO_AVAILABLE_TEXT\' | translate | lowercase}}</i></h5>\n <hr data-ng-if="message.MailAttachments.length">\n <div data-ng-repeat="mailAttachment in message.MailAttachments">\n <strong>{{mailAttachment.name}}</strong>\n <span>\n ({{mailAttachment.size | prettyBytes}})\n </span>\n <a target="_self" download="{{mailAttachment.name}}" href="api/mail/attachments/{{mailAttachment.id}}">\n <i class="icon-cloud-download"></i>\n </a>\n <a ng-if="::(mailAttachment.type.indexOf(\'image\') > -1)" ng-click="openPreview(mailAttachment.id)">\n <i class="icon-picture"></i>\n </a>\n </div>\n</div>\n'),a.put("app/channels/mail/inbox/note/note.directive.html",'<div class="note">\n <div class="row">\n <div class="col-md-6">\n <a type="button" name="button" data-ng-if="::(Auth.getCurrentUser().id == message.UserId)" data-ng-click="deleteNote()">\n <i class="fa fa-trash-o" style="color: red;"></i>\n </a>\n\n <i class="icon-calendar" title="{{message.updatedAt | date:\'MMM d, y HH:mm:ss\'}}"></i> <span am-time-ago="message.updatedAt"></span>\n </div>\n <div class="col-md-6">\n <span class="pull-right" data-ng-show="message.User">{{\'APPLICATION_ADD_BY\' | translate}}: <strong>{{message.User.fullname}}</strong></span>\n </div>\n </div>\n <hr>\n <span class="body text-left" data-ng-bind-html="message.text" style="white-space: pre-wrap;"></span>\n</div>\n'),a.put("app/channels/mail/inbox/note/note.modal.html",'<div class="modal-header" data-ng-init="initModal()">\n <h3 class="modal-title">{{ \'APPLICATION_NOTES\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n <div class="form-group">\n <textarea data-ng-model="item.text" name="text" rows="10" style="resize: none; width: 100%;"></textarea>\n </div>\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" data-ng-click="ok()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/mail/inbox/room/room.directive.html",'<!-- BEGIN TODO CONTENT -->\n<div class="todo-content">\n <div class="portlet light">\n <div class="portlet-title">\n <div class="caption">\n <button data-ng-if="form.from.length && form.to.length && mailRoom.status !== \'CLOSED\' && form.html" class="btn btn-sm btn-default green-meadow" data-ng-click="sendMail()">\n <i class="icon-paper-plane" style="color: white;"></i> {{\'APPLICATION_SEND\' | translate}}\n </button>\n <span data-ng-if="mailRoom && form.from.length && form.to.length && mailRoom.status !== \'CLOSED\' && form.html"> | </span>\n <span data-ng-if="mailRoom" class="label label-default"> #{{mailRoom.id}} {{mailRoom.status}}</span>\n <span data-ng-if="mailRoom"> | </span>\n <span data-ng-if="mailRoom && mailRoom.ParentId" class="label label-warning"> Ref: <a data-ng-click="openRoom(mailRoom.ParentId)">#{{mailRoom.ParentId}}</a></span>\n <span data-ng-if="mailRoom && mailRoom.ParentId"> | </span>\n <span data-ng-if="mailRoom" class="caption-subject font-green-sharp bold uppercase dot">{{mailRoom.subject || \'No subject\'}}</span>\n </div>\n <div class="actions">\n <button class="btn btn-icon-only yellow" data-ng-if="mailRoom" data-ng-click="loadNote()" data-ng-hide="mailRoom.status == \'CLOSED\'" title="{{\'APPLICATION_NOTES\' | translate}}">\n <i class="fa fa-sticky-note"></i>\n </button>\n <span class="btn file-upload" data-ng-hide="mailRoom.status == \'CLOSED\'"><!--THIS IS A SPAN AND NOT A BUTTON BECAUSE THE LIBRARY HAS A BUG AND WILL NOT TRIGGER IN FIREFOX BROWSER -->\n <i class="fa fa-paperclip"></i> <input type="file" data-ng-if="uploader" data-ng-disabled="mailRoom.status == \'CLOSED\'" nv-file-select uploader="uploader" multiple class="file-input" title="{{\'APPLICATION_ATTACHMENTS\' | translate}}">\n </span>\n <!-- UPDATE SECTION START -->\n <button data-ng-class="mailRoom.status == \'CLOSED\' ? \'grey-cascade\' : \'btn-success\'" class="btn btn-icon-only" data-ng-disabled="mailRoom.status == \'CLOSED\' && mailRoom.disposition" data-ng-if="mailRoom" data-ng-click="closeRoom()" title="{{\'APPLICATION_STATUS\' | translate}}">\n <i data-ng-class="mailRoom.status == \'CLOSED\' ? \'icon-target\' : \'fa fa-upload\'"></i>\n </button>\n <!-- UPDATE SECTION END -->\n <button class="btn default btn-icon-only" data-ng-if="mailRoom && mailRoom.status !== \'CLOSED\'" data-ng-click="togglePanelLeft()" title="{{\'APPLICATION_RESIZE\' | translate}}">\n <i ng-class="panelRight == \'col-md-12\' ? \'icon-size-actual\' : \'icon-size-fullscreen\'"></i>\n </button>\n </div>\n </div>\n <div class="portlet-body">\n <div class="row">\n <div data-ng-if="panelLeft" data-ng-class="panelLeft">\n <div class="form">\n <!-- START TAGS -->\n <div class="form-group" data-ng-if="mailRoom.status !== \'CLOSED\'">\n <div class="row">\n <div class="col-md-1">\n <a href="#" class="btn btn-icon-only">\n <i class="fa fa-tags" style="color: gray;"></i>\n </a>\n </div>\n <div class="col-md-11">\n <ui-select multiple data-ng-model="form.tags" theme="bootstrap" on-select="onChanged($item, $model)" on-remove="onChanged($item, $model)" data-ng-disabled="mailRoom.status == \'CLOSED\'">\n <ui-select-match placeholder="Tags...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="tag in tags | filter:$select.search" class="">\n {{tag}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n </div>\n <!-- END TAGS -->\n </div>\n\n <hr data-ng-if="mailRoom && mailRoom.status !== \'CLOSED\'">\n\n <!-- END TAGS -->\n <div id="mail-box">\n <ul class="chats">\n <li\n data-ng-switch="mailMessage.status"\n data-ng-class="{\'in\': mailMessage.status == \'RECEIVED\', \'out\': mailMessage.status == \'SENT\' || mailMessage.status == \'SENDING\' || mailMessage.status == \'FAILED\' || mailMessage.status == \'NOTE\'}"\n data-ng-repeat="mailMessage in mailRoom.MailMessages | orderBy:\'-createdAt\'">\n <div class="avatar" data-ng-class="message.UserId ? \'pretty-avatar\' : \'pretty-avatar-v\'">\n <ng-letter-avatar\n data-ng-if="mailMessage.UserId"\n height="40"\n width="40"\n fontsize="25"\n data="{{mailMessage.User.fullname}}"\n avatarcustombgcolor="#B0B0B0"\n avatarcustomborder="border:2px solid #3399CC"\n charCount="2"\n shape="round"></ng-letter-avatar>\n <ng-letter-avatar\n data-ng-if="!mailMessage.UserId"\n height="40"\n width="40"\n fontsize="25"\n data="{{mailMessage.from[0]}}"\n avatarcustombgcolor="#B0B0B0"\n avatarcustomborder="border:2px solid #EA4C61"\n charCount="1"\n shape="round"></ng-letter-avatar>\n </div>\n <mail-note message="mailMessage" ng-switch-when="NOTE"></mail-note>\n <mail-message message="mailMessage" list-id="mailRoom.MailAccount.ListId" ng-switch-default></mail-message>\n </li>\n </ul>\n </div>\n </div>\n <div data-ng-class="panelRight">\n <div class="note note-info" data-ng-if="mailRoom && mailRoom.status == \'CLOSED\'">\n <h4 class="block"><i class="icon-info"></i> {{\'MESSAGE_MAIL_ROOM_CLOSED\' | translate}}!</h4>\n <p>\n <strong>{{\'MESSAGE_MAIL_ROOM_CLOSED_DETAILS\' | translate}}.</strong>\n </p>\n <hr>\n <p>\n <i class="icon-target"></i> {{\'APPLICATION_DISPOSITION\' | translate}}: <strong>{{mailRoom.disposition}}</strong>\n </p>\n <p>\n <i class="icon-calendar"></i> {{\'APPLICATION_UPDATED_AT\' | translate}}: <strong>{{mailRoom.updatedAt | date:\'medium\'}}</strong> (<span am-time-ago="mailRoom.updatedAt"></span>)\n </p>\n </div>\n <form name="forms.compose" data-ng-submit="sendMail()" class="form-horizontal" novalidate>\n <!-- START HEAD -->\n <div class="form">\n <v-accordion class="vAccordion--default" ng-if="mailRoom.status !== \'CLOSED\'">\n <v-pane expanded="expanded">\n <v-pane-header>\n <i class="icon-people"></i> From: {{form.from[0]}}, To: {{form.to[0].email}} <span ng-if="form.to.length > 1">(+{{form.to.length - 1}})</span>\n </v-pane-header>\n <v-pane-content>\n <!-- START FROM -->\n <div class="form-group" data-ng-if="mailRoom.status !== \'CLOSED\'">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-1">\n <label class="control-label">From:</label>\n </div>\n <div class="col-md-11">\n <ui-select data-ng-model="form.from[0]" data-ng-change="setList($select.selected.ListId)" theme="bootstrap" name="from" required>\n <ui-select-match placeholder="From...">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="mailAccount.address as mailAccount in mailAccounts | filter: $select.search">\n <div data-ng-bind-html="mailAccount.name | highlight: $select.search"></div>\n <small data-ng-bind-html="mailAccount.address | highlight: $select.search"></small>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n </div>\n </div>\n <!-- END FROM -->\n\n <!-- MAIL TO -->\n <div class="form-group" data-ng-if="mailRoom.status !== \'CLOSED\'">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-1">\n <label class="control-label">To:</label>\n </div>\n <div class="col-md-11">\n <tags-input ng-model="form.to" type="email" display-property="email">\n <auto-complete source="getContacts($query)"></auto-complete>\n </tags-input>\n </div>\n </div>\n </div>\n </div>\n <!-- END TO -->\n\n <!-- START CC -->\n <div class="form-group" data-ng-if="mailRoom.status !== \'CLOSED\'">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-1">\n <label class="control-label">Cc:</label>\n </div>\n <div class="col-md-11">\n <tags-input ng-model="form.cc" type="email" display-property="email">\n <auto-complete source="getContacts($query)"></auto-complete>\n </tags-input>\n </div>\n </div>\n </div>\n </div>\n <!-- END CC -->\n\n <!-- START BCC -->\n <div class="form-group" data-ng-if="mailRoom.status !== \'CLOSED\'">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-1">\n <label class="control-label">Bcc:</label>\n </div>\n <div class="col-md-11">\n <tags-input ng-model="form.bcc" type="email" display-property="email">\n <auto-complete source="getContacts($query)"></auto-complete>\n </tags-input>\n </div>\n </div>\n </div>\n </div>\n <!-- END BCC -->\n\n <!-- START SUBJECT -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.compose.subject.$invalid && forms.compose.$submitted}" data-ng-if="mailRoom.status !== \'CLOSED\'">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-1">\n <label class="control-label">Subj:</label>\n </div>\n <div class="col-md-11">\n <input type="text" name="subject" class="form-control todo-taskbody-taskdesc" placeholder="Subject..." rows="8" data-ng-model="form.subject">\n <span data-ng-if="forms.compose.subject.$invalid && forms.compose.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n </div>\n <!-- END SUJBECT -->\n </v-pane-content>\n </v-pane>\n </v-accordion>\n\n <!-- START ATTACH -->\n <div class="form-group" data-ng-if="uploader && (mailRoom.status !== \'CLOSED\')">\n <div class="col-md-12">\n <hr ng-if="uploader.queue.length">\n <table class="table">\n <tbody>\n <tr ng-repeat="item in uploader.queue">\n <td style="border-top:none" rowspan="{{uploader.queue.length}}" ng-if="(!$index)">\n {{\'APPLICATION_ATTACHMENTS\' | translate}}:\n </td>\n <td style="border-top:none"><strong>{{ item.file.name }}</strong></td>\n <td style="border-top:none" ng-show="uploader.isHTML5" nowrap>{{ item.file.size/1024/1024|number:2 }} MB</td>\n <td style="border-top:none" ng-show="uploader.isHTML5">\n <div class="progress" style="margin-bottom: 0;">\n <div class="progress-bar" role="progressbar" ng-style="{ \'width\': item.progress + \'%\' }"></div>\n </div>\n </td>\n <td style="border-top-style:none" class="text-center">\n <span ng-show="item.isSuccess"><i class="glyphicon glyphicon-ok"></i></span>\n <span ng-show="item.isCancel"><i class="glyphicon glyphicon-ban-circle"></i></span>\n <span ng-show="item.isError"><i class="glyphicon glyphicon-remove"></i></span>\n </td>\n <td style="border-top-style:none" nowrap>\n <button type="button" class="btn btn-danger btn-xs" data-ng-click="item.remove()">\n <span class="glyphicon glyphicon-trash"></span> {{\'APPLICATION_REMOVE\' | translate}}\n </button>\n </td>\n </tr>\n </tbody>\n </table>\n <div>\n </div>\n </div>\n </div>\n <!-- END ATTACH -->\n\n <!-- START CANNED -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.compose.subject.$invalid && forms.compose.$submitted}" data-ng-if="mailRoom.status !== \'CLOSED\'">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-1">\n <a href="#" class="btn btn-icon-only">\n <i class="fa fa-magic" style="color: gray;"></i>\n </a>\n </div>\n <div class="col-md-11">\n <input type="text"\n data-ng-model="modelOptions.selectedAnswer"\n uib-typeahead="key for key in getAnswers($viewValue)"\n placeholder="Canned answers.."\n typeahead-loading="loadingLocations"\n typeahead-no-results="noResults"\n typeahead-on-select="onSelectAnswer($item)"\n class="form-control">\n <i ng-show="loadingLocations" class="glyphicon glyphicon-refresh"></i>\n <div ng-show="noResults">\n <i class="glyphicon glyphicon-remove"></i> No Results Found\n </div>\n <span data-ng-if="forms.compose.subject.$invalid && forms.compose.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n </div>\n <!-- END CANNED -->\n\n <!-- START HTML -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.compose.text.$invalid && forms.compose.$submitted}" data-ng-if="mailRoom.status !== \'CLOSED\'">\n <div class="col-md-12">\n <div ckeditor="options" ng-model="form.html" ready="onCKReady($instance)"></div>\n <span data-ng-if="forms.compose.text.$invalid && forms.compose.$submitted" class="help-block help-block-error">\n'+" <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n </span>\n </div>\n </div>\n <!-- END HTML -->\n\n </div>\n </form>\n </div>\n </div>\n </div>\n</div>\n</div>\n<!-- END TODO CONTENT -->\n"), -a.put("app/channels/mail/inbox/status/status.modal.html",'<div class="modal-header">\n <button data-ng-if="modal.dismissable" type="button" data-ng-click="$dismiss()" class="close">×</button>\n <h4 data-ng-if="modal.title" data-ng-bind="modal.title | translate" class="modal-title"></h4>\n</div>\n<div class="modal-body">\n <p data-ng-if="modal.text && !closed" ng-bind="modal.text | translate"></p>\n <form name="form" novalidate data-ng-init="initDisposition()">\n <div class="form-group">\n <ui-select data-ng-model="item.disposition" name="disposition" theme="bootstrap" data-ng-disabled="!dispositions.length" required>\n <ui-select-match placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="disposition.name as disposition in dispositions | filter: $select.search">\n <div ng-bind-html="disposition.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="note note-warning" data-ng-if="dispositions.length < 1">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_DISPOSITIONS_AVAILABLE\' | translate }}\n </p>\n </div>\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" data-ng-click="ok()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/mail/inbox/view/account/list/list.html",'<!-- BEGIN Portlet PORTLET-->\n<div class="portlet light" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption">\n <div class="btn-group btn-group-solid">\n <button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'NEW\'" uib-uncheckable>NEW</button>\n </div>\n <div class="btn-group btn-group-solid">\n <button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'OPEN\'" uib-uncheckable>OPEN</button>\n </div>\n <div class="btn-group btn-group-solid">\n <button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'PENDING\'" uib-uncheckable>PENDING</button>\n </div>\n <div class="btn-group btn-group-solid">\n <button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'CLOSED\'" uib-uncheckable>CLOSED</button>\n </div>\n </div>\n <div class="actions">\n <a href="#" class="btn btn-icon-only default" data-ng-click="getPage();">\n <i class="fa fa-refresh"></i>\n </a>\n <a href="#" class="btn btn-icon-only red" data-ng-click="deleteItems();" data-ng-show="id.length && isAdmin">\n <i class="fa fa-trash"></i>\n </a>\n <a href="#" class="btn btn-icon-only btn-success" data-ng-click="disposeItems();" data-ng-show="id.length">\n <i class="fa fa-upload"></i>\n </a>\n <a href="#" class="btn btn-icon-only blue" data-ng-click="tagItems();" data-ng-show="id.length">\n <i class="fa fa-tags"></i>\n </a>\n <a href="#" class="btn btn-icon-only green" data-ng-click="openRoom(null, \'New Message\')">\n <i class="fa fa-plus"></i>\n </a>\n </div>\n </div>\n <div class="portlet-title" data-ng-show="tags.length">\n <!-- START TAGS -->\n <div class="form-group">\n <div class="row">\n <div class="col-md-1">\n <a href="#" class="btn btn-icon-only">\n <i class="fa fa-tags" style="color: gray;"></i>\n </a>\n </div>\n <div class="col-md-11">\n <ui-select multiple data-ng-model="query.tags" theme="bootstrap" on-select="onChanged($item, $model)" on-remove="onChanged($item, $model)">\n <ui-select-match placeholder="Search by tag...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="tag in tags | filter:$select.search">\n {{tag}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n </div>\n <!-- END TAGS -->\n </div>\n <div class="portlet-body">\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="spinner-grid" spinner-start-active="false"></span>\n <!-- END UI-GRID SPINNER -->\n\n <!-- START TABLE -->\n <div ui-grid="gridOptions" class="ui-grid" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END Portlet PORTLET-->\n'),a.put("app/channels/mail/inbox/view/view.agents.modal.html",'<div class="modal-header" data-ng-init="initModal()">\n <h3 class="modal-title">{{ \'APPLICATION_AGENTS\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <!-- START TRANSPORT -->\n <div class="form-group">\n <form name="form" novalidate>\n <!-- START TRANSPORT -->\n <div class="form-group">\n <ui-select multiple name="agents" data-ng-model="item.agents" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_AGENTS\' | translate}}">{{$item.fullname}}</ui-select-match>\n <ui-select-choices repeat="agent.id as agent in agents | filter: $select.search">\n {{agent.fullname}}\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END TRANSPORT -->\n </form>\n </div>\n <!-- END TRANSPORT -->\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" data-ng-click="ok()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/mail/inbox/view/view.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-envelope"></i>\n <a href="#">{{ \'APPLICATION_MAIL\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-note"></i>\n <a href="#">{{ \'APPLICATION_INBOX\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row inbox">\n <div class="">\n\n </div>\n <div class="col-md-3">\n <ul class="inbox-nav margin-bottom-10">\n <li class="compose-btn">\n <a href="javascript:;" data-ng-click="hideAccounts=!hideAccounts" data-title="Compose" class="btn green">\n <i class="icon-list"></i> {{hideAccounts ? \'APPLICATION_SHOW_ACCOUNTS\' : \'APPLICATION_HIDE_ACCOUNTS\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $stateParams.id == mailAccount.id}" data-ng-if="!hideAccounts" data-ng-repeat="mailAccount in mailAccounts">\n <a href="/channels/mail/inbox/view/account/{{mailAccount.id}}/list" class="btn">\n <i class="icon-notebook"></i> {{mailAccount.name}}\n </a>\n <b></b>\n </li>\n </ul>\n </div>\n <div data-ng-class="{\'col-md-9\':!hideAccounts,\'col-md-12\':hideAccounts}" data-ng-init="initView()">\n <!-- BEGIN PROFILE CONTENT -->\n <div class="room-content">\n <div ui-view>\n <div class="note note-info">\n <h4 class="block">Info! {{\'APPLICATION_NO_ACCOUNT_SELECTED\' | translate}}</h4>\n </div>\n </div>\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n\n</div>\n'),a.put("app/channels/mail/inbox/view/view.tags.modal.html",'<div class="modal-header" data-ng-init="initModal()">\n <h3 class="modal-title">{{ \'APPLICATION_TAGS\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <!-- START TRANSPORT -->\n <div class="form-group">\n <form name="form" novalidate>\n <!-- START TAGS -->\n <div class="form-group">\n <ui-select multiple data-ng-model="item.tags" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_TAGS\' | translate}}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="tag in tags | filter: $select.search">\n {{tag}}\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END TAGS -->\n </form>\n </div>\n <!-- END TRANSPORT -->\n</div>\n<div class="modal-footer">\n <button type="button" class="btn" data-ng-class="button.class" data-ng-click="button.click()"data-ng-repeat="button in modal.buttons">{{button.text | translate}}</button>\n <!-- <button class="btn btn-success" type="button" data-ng-click="ok()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button> -->\n</div>\n'),a.put("app/channels/mail/inbox/view/view.templates.modal.html",'<div class="modal-header" data-ng-init="initModal()">\n <h3 class="modal-title">{{ \'APPLICATION_TEMPLATES\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <div class="note note-info" data-ng-show="!templates.length">\n <h4 class="block">Info!</h4>\n <p>\n {{\'MESSAGE_NO_TEMPLATES_AVAILABLE\' | translate}}\n </p>\n </div>\n <form name="form" data-ng-show="templates.length" novalidate>\n <div class="form-group">\n <ui-select data-ng-model="item.template" theme="bootstrap">\n <ui-select-match placeholder="Select a template in the list or search his name...">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="template in templates | propsFilter: {name: $select.search}">\n <div ng-bind-html="template.name | highlight: $select.search"></div>\n <small data-ng-show="template.description">\n {{\'APPLICATION_DESCRIPTION\' | translate}}: {{template.description}}\n </small>\n </ui-select-choices>\n </ui-select>\n </div>\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" data-ng-click="ok()" data-ng-show="templates.length">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/mail/queue/list/list.create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_QUEUE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" data-ng-pattern="settings.patternName" required />\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$invalid && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$invalid && form.name.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START STRATEGY -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.strategy.$touched || form.$submitted) && form.strategy.$invalid}">\n <label class="control-label">{{\'APPLICATION_STRATEGY\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.strategy" name="strategy" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | uppercase}}</ui-select-match>\n <ui-select-choices repeat="strategy in strategies | filter: $select.search">\n <div ng-bind-html="strategy.toUpperCase() | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form.strategy.$touched || form.$submitted) && form.strategy.$invalid && form.strategy.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END STRATEGY -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.timeout.$touched || form.$submitted) && form.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_AGENT_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="0" name="timeout" placeholder="Timeout" class="form-control" data-ng-model="item.timeout" required min="1"/>\n <span data-ng-show="(form.timeout.$touched || form.$submitted) && form.timeout.$invalid && form.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START AGENTS-->\n <div class="form-body" data-ng-init="getTeams()">\n <label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n <div class="input-group input-small mbottom20">\n <input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="item.penalty" readonly>\n <div class="spinner-buttons input-group-btn btn-group-vertical">\n <button type="button" class="btn spinner-up btn-xs blue" data-ng-click="item.penalty=item.penalty+1">\n <i class="fa fa-angle-up"></i>\n </button>\n <button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!item.penalty" data-ng-click="item.penalty=item.penalty-1">\n <i class="fa fa-angle-down"></i>\n </button>\n </div>\n </div>\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-team">\n </div>\n </div>\n </div>\n <!-- END AGENTS-->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/mail/queue/list/list.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-envelope"></i>\n <a href="#">{{ \'APPLICATION_MAIL\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="#">{{ \'APPLICATION_QUEUES\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_QUEUES\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group" data-ng-if="Auth.isAdmin()">\n <a class="btn green-jungle" href="#" data-ng-click="createItem()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_QUEUE\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/mail/queue/view/view.agents.html",'<div class="row" data-ng-init="getTeams()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_AGENTS\' | translate}}</span>\n </div>\n </div>\n <div class="note note-warning" data-ng-hide="teams.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_AVAILABLE_TEAMS\' | translate }}\n </p>\n </div>\n <div class="portlet-body">\n <!-- BEGIN FORM-->\n <form action="index.html" class="form-horizontal form-row-seperated">\n <div class="form-body">\n <label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n <div class="input-group input-small mbottom20">\n <input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="queue.penalty" readonly>\n <div class="spinner-buttons input-group-btn btn-group-vertical">\n <button type="button" class="btn spinner-up btn-xs blue" data-ng-click="queue.penalty=queue.penalty+1">\n <i class="fa fa-angle-up"></i>\n </button>\n <button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!queue.penalty" data-ng-click="queue.penalty=queue.penalty-1">\n <i class="fa fa-angle-down"></i>\n </button>\n </div>\n </div>\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-team">\n </div>\n </div>\n </div>\n </form>\n <!-- END FORM-->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/mail/queue/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getQueue()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-envelope"></i>\n <a href="#">{{ \'APPLICATION_MAIL\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="/channels/mail/queues/list">{{ \'APPLICATION_QUEUES\' | translate }}</a>\n <i data-ng-show="queue" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="queue">\n <a href="#">{{queue.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET main.channels -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/queue.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{queue.name}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.channels.mail.queues.view.settings\')}">\n <a data-ng-href="/channels/mail/queues/view/{{queue.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.channels.mail.queues.view.agents\')}" data-ng-show="Auth.getCurrentUser().role === \'admin\'">\n <a data-ng-href="/channels/mail/queues/view/{{queue.id}}/agents">\n <i class="icon-people"></i>\n {{ \'APPLICATION_AGENTS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET main.channels -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n </div>\n <!-- END PAGE CONTENT-->\n'),a.put("app/channels/mail/queue/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateMailQueue()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="queue.name" data-ng-pattern="settings.patternName" required />\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid && forms.general.name.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="queue.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START TIMEOUT -->\n <div class="form-group">\n <label class="control-label">Agent Timeout</label>\n <input type="number" name="timeout" placeholder="Timeout" class="form-control" min="1" data-ng-model="queue.timeout"/>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START STRATEGY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.strategy.$touched || forms.general.$submitted) && forms.general.strategy.$invalid}">\n <label class="control-label">{{\'APPLICATION_STRATEGY\' | translate}}</label>\n <ui-select data-ng-model="queue.strategy" name="strategy" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | uppercase}}</ui-select-match>\n <ui-select-choices repeat="strategy in strategies | filter: $select.search">\n <div ng-bind-html="strategy.toUpperCase() | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END STRATEGY -->\n\n <input data-ng-if="Auth.isAdmin()" class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/mail/realtime/view/agent/agent.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initAgents()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns class="ui-grid" ui-grid-tree-view ui-grid-expandable-row ui-grid-pagination ui-grid-auto-resize>\n <span us-spinner spinner-key="grid-spinner" spinner-start-active="true"></span>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/mail/realtime/view/agent/agent.modal.info.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_INTERFACE_INFO\' | translate }}</h3>\n</div>\n<div class="modal-body">\n<div data-ng-if="agent.ipaddr" class="well">\n <div>{{agent.ipaddr}}:{{agent.port}}</div>\n <div>{{agent.fullcontact}}</div>\n <div>{{agent.useragent}}</div>\n <div>{{agent.lastms}}</div>\n</div>\n<div data-ng-if="!agent.ipaddr" class="alert alert-danger" role="alert">\n {{\'MESSAGE_NO_AVAILABLE_INFO\' | translate}}\n</div>\n</div>\n<div class="modal-footer">\n <button class="btn default" type="button" ng-click="close()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'),a.put("app/channels/mail/realtime/view/agent/queue.modal.add.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_JOIN_QUEUE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <div class="form-group row">\n <label class="col-md-2 control-label" style="margin-top: 7px;">{{\'APPLICATION_QUEUE\' | translate}}:</label>\n <div class="col-md-10">\n <ui-select multiple ng-model="item.queues" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_QUEUE\' | translate}}">{{$item.name}}</ui-select-match>\n <ui-select-choices repeat="queue.id as queue in queues | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n</div>\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/mail/realtime/view/application/application.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initApplications()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns class="ui-grid" ui-grid-auto-resize>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/mail/realtime/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-envelope"></i>\n <a href="#">{{ \'APPLICATION_MAIL\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-energy"></i>\n <a href="#">{{ \'APPLICATION_REALTIME\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <div>\n <nav class="navbar navbar-default" role="navigation">\n <div class="collapse navbar-collapse">\n <ul class="nav navbar-nav">\n <li data-ng-class="{\'active\': $state.is(\'main.channels.mail.realtime.view.agents\')}">\n <a href="/channels/mail/realtime/view/agents">\n {{\'APPLICATION_AGENTS\' | translate}}\n </a>\n </li>\n <li data-ng-class="{\'active\': $state.is(\'main.channels.mail.realtime.view.applications\')}">\n <a href="/channels/mail/realtime/view/applications">\n {{\'APPLICATION_APPLICATIONS\' | translate}}\n </a>\n </li>\n <li>\n <a href="#">\n <b>|{{\'APPLICATION_SHOW_TIMERS\' | translate}} </b><input\n bs-switch\n class="form-control"\n ng-model="showTimers"\n type="checkbox"\n name="showTimers"\n switch-active="{{ timerSwitch.isActive }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ timerSwitch.onColor }}"\n switch-off-color="{{ timerSwitch.offColor }}"\n switch-animate="{{ timerSwitch.animate }}"\n switch-size="{{ timerSwitch.size }}"\n switch-label="{{ timerSwitch.label }}"\n switch-icon="{{ timerSwitch.icon }}"\n switch-radio-off="{{ timerSwitch.radioOff }}"\n switch-label-width="{{ timerSwitch.labelWidth }}"\n switch-handle-width="{{ timerSwitch.handleWidth }}"><b>|</b>\n </a>\n </li>\n </ul>\n </div>\n </nav>\n </div>\n\n <div ui-view></div>\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/mail/realtime/view/view.queue.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initAgents()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div id="grid1" ui-grid="gridOptions" ui-grid-resize-columns ui-grid-tree-view class="grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/openchannel/account/list/list.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-globe"></i>\n <a href="#">{{ \'APPLICATION_OPEN_CHANNEL\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-notebook"></i>\n <a href="/channels/openchannel/accounts/list">{{ \'APPLICATION_ACCOUNTS\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACCOUNTS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group">\n <a class="btn btn-default" href="#" data-ng-click="gridOptions.getPage();">\n <i class="icon-reload"></i>\n </a>\n </div>\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="/channels/openchannel/accounts/wizard">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_ACCOUNT\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'), -a.put("app/channels/openchannel/account/view/action/list/list.html",'<div class="row" data-ng-init="initActions()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_ACTIONS\' | translate}}</span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="/channels/openchannel/accounts/view/{{account.id}}/actions/wizard" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_ACTION\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/openchannel/account/view/action/view/view.html",'\n<div class="row" data-ng-init="initAction()">\n <div class="col-md-12">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-directions font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACTION\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <form name="forms.settings" ng-submit="updateItem()" novalidate>\n <!-- START APP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app.$touched || forms.settings.$submitted) && forms.settings.app.$invalid}">\n <label class="control-label">{{ \'APPLICATION_APPLICATION\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.app" name="app" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_APPLICATION\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="app.value as app in apps | filter: $select.search">\n <div ng-bind-html="app.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.app.$touched || forms.settings.$submitted) && forms.settings.app.$invalid && forms.settings.app.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END APP -->\n\n <div class="app-settings" ng-slide-down="application.app === \'queue\'" lazy-render duration="1" data-ng-init="getQueues()">\n <!-- START QUEUE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.queue.$touched || forms.settings.$submitted) && forms.settings.queue.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.OpenchannelQueueId" name="queue" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="queue.id as queue in queues | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="queues.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_QUEUES_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/channels/openchannel/queues/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.settings.queue.$touched || forms.settings.$submitted) && forms.settings.queue.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n <span data-ng-show="(forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'agent\'" lazy-render duration="1" data-ng-init="getAgents()">\n <!-- START AGENT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.agent.$touched || forms.settings.$submitted) && forms.settings.agent.$invalid}">\n <label class="control-label">{{\'APPLICATION_AGENT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.UserId" name="agent" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.fullname}}</ui-select-match>\n <ui-select-choices repeat="agent.id as agent in agents | filter: $select.search">\n <div ng-bind-html="agent.fullname | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="agents.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_AGENTS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/staff/agents/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.settings.agent.$touched || forms.settings.$submitted) && forms.settings.agent.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END AGENT -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n <span data-ng-show="(forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'sendMail\'" lazy-render duration="1" data-ng-init="getMailAccounts();getTemplates()">\n <!-- START SENDMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="email" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2" min="1" required/>\n <span data-ng-show="(forms.settings.from.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.mail.$touched || forms.settings.$submitted) && forms.settings.account.$invalid}">\n <label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in mailAccounts | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.account.$touched || forms.settings.$submitted) && forms.settings.account.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.template.$touched || forms.settings.$submitted) && forms.settings.template.$invalid}">\n <label class="control-label">{{\'APPLICATION_TEMPLATE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data9" name="template" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n <div ng-bind-html="template.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.template.$touched || forms.settings.$submitted) && forms.settings.template.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SENDMAIL -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1" data-ng-init="getSmsAccounts()">\n <!-- START SENDSms -->\n <div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1">\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.to.$touched || forms.settings.$submitted) && forms.settings.to.$invalid}">\n <label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" ng-pattern="/^[\\+]?[0-9]+$/" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2" required/>\n <span data-ng-show="(forms.settings.to.$touched || forms.settings.$submitted) && forms.settings.to.$invalid && forms.settings.to.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.account.$touched || forms.settings.$submitted) && forms.settings.account.$invalid}">\n <label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in smsAccounts | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.account.$touched || forms.settings.$submitted) && forms.settings.account.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.text.$touched || forms.text.$submitted) && forms.settings.text.$invalid}">\n <label class="control-label">{{\'APPLICATION_TEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <textarea id="text" class="form-control maxlength-handler" maxlength="160" name="text" data-ng-model="application.data6" required></textarea>\n <span data-ng-show="(forms.settings.text.$touched || forms.settings.$submitted) && forms.settings.text.$invalid && forms.settings.text.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <!-- END SENDSms -->\n </div>\n\n <!-- START INTERVAL_TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.intType.$touched || forms.settings.$submitted) && forms.settings.intType.$invalid}">\n <label class="control-label">{{ \'APPLICATION_INTERVAL_TYPE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.intType" theme="bootstrap" name="intType" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="intType.value as intType in $application.intTypes | filter: $select.search">\n {{ intType.name | translate }}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.intType.$touched || forms.settings.$submitted) && forms.settings.intType.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVAL_TYPE -->\n\n <div class="app-settings" ng-slide-down="application.intType === \'custom\'" lazy-render duration="1">\n <!-- START TIME -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n <div class="input-group input-large">\n <fieldset class="pull-left" ng-disabled="application.alwaysTime">\n <uib-timepicker name="t_from" data-ng-model="application.t_from" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker>\n </fieldset>\n <div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n <fieldset ng-disabled="application.alwaysTime"><uib-timepicker name="t_to" data-ng-model="application.t_to" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker></fieldset>\n <!-- <label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="application.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label> -->\n </div>\n </div>\n <!-- END TIME -->\n\n <!-- START ALWAYS -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ALWAYS\' | translate }}</label>\n <div class="input-group input-large">\n <label class="control-label pointer-cursor">\n <input\n bs-switch\n data-ng-model="application.alwaysTime"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n <!-- <input type="checkbox" data-ng-model="application.alwaysTime"> -->\n </label>\n </div>\n </div>\n <!-- END ALWAYS -->\n\n <!-- START WEEKDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.wd_from" theme="bootstrap" name="wd_from">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{ weekDay.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.wd_to" theme="bootstrap" name="wd_to">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{ weekDay.name | translate }}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END WEEKDAY -->\n\n <!-- START MONTHDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.md_from" theme="bootstrap" name="md_from">\n <ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_to && application.md_to!==\'always\' && monthDay>application.md_to && monthDay!==\'always\'">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.md_to" theme="bootstrap" name="md_to">\n <ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_from && application.md_from!==\'always\' && monthDay<application.md_from && monthDay!==\'always\'">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTHDAY -->\n\n <!-- START MONTH -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.m_from" theme="bootstrap" name="m_from">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{ month.name | translate }}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.m_to" theme="bootstrap" name="m_to">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{ month.name | translate }}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTH -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.intType === \'list\'" lazy-render duration="1" data-ng-init="getIntervals()">\n\n <!-- START INTERVALS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.IntervalId.$touched || forms.settings.$submitted) && forms.settings.IntervalId.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERVALS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.IntervalId" theme="bootstrap" name="IntervalId" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="interval.id as interval in intervals | filter: $select.search">\n {{ interval.name}}\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="intervals.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_INTERVAL_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/intervals/list">{{\'APPLICATION_INTERVALS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.settings.IntervalId.$touched || forms.settings.$submitted) && forms.settings.IntervalId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVALS -->\n\n </div>\n <button class="btn green-haze" type="submit">{{\'APPLICATION_UPDATE\' | translate}}</button>\n </form>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/openchannel/account/view/action/wizard/wizard.html",'<div class="row" data-ng-init="initWizard()">\n <div class="col-md-12">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-directions font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACTION\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_APPLICATION\' | translate}}" canexit="formValidation(forms.action.$valid)">\n <form name="forms.action" novalidate>\n <!-- START APP -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.action.$submitted && forms.action.app.$invalid}">\n <label class="control-label">{{ \'APPLICATION_APPLICATION\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.app" name="app" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_APPLICATION\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="app.value as app in apps | filter: $select.search">\n <div ng-bind-html="app.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.action.$submitted && forms.action.app.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END APP -->\n\n <div class="app-settings" ng-slide-down="application.app === \'agent\'" lazy-render duration="1" data-ng-init="getAgents()">\n <!-- START AGENT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.agent.$touched || forms.action.$submitted) && forms.action.agent.$invalid}">\n <label class="control-label">{{\'APPLICATION_AGENT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.UserId" name="agent" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.fullname}}</ui-select-match>\n <ui-select-choices repeat="agent.id as agent in agents | filter: $select.search">\n <div ng-bind-html="agent.fullname | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="agents.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_AGENTS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/staff/agents/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.action.agent.$touched || forms.action.$submitted) && forms.action.agent.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END AGENT -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n <span data-ng-show="(forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid && forms.action.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'queue\'" lazy-render duration="1" data-ng-init="getQueues()">\n <!-- START QUEUE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.queue.$touched || forms.action.$submitted) && forms.action.queue.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.OpenchannelQueueId" name="queue" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="queue.id as queue in queues | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="queues.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_QUEUES_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/channels/openchannel/queues/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.action.queue.$touched || forms.action.$submitted) && forms.action.queue.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n <span data-ng-show="(forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid && forms.action.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'sendMail\'" lazy-render duration="1" data-ng-init="getMailAccounts();getTemplates()">\n <!-- START SENDMAIL -->\n <div class="app-settings" ng-slide-down="application.app === \'sendMail\'" lazy-render duration="1">\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="email" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2" min="1" required/>\n <span data-ng-show="(forms.action.from.$touched || forms.action.$submitted) && forms.action.timeout.$invalid && forms.action.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.mail.$touched || forms.action.$submitted) && forms.action.account.$invalid}">\n <label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in mailAccounts | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.template.$touched || forms.action.$submitted) && forms.action.template.$invalid}">\n <label class="control-label">{{\'APPLICATION_TEMPLATE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data9" name="template" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n <div ng-bind-html="template.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.template.$touched || forms.action.$submitted) && forms.action.template.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SENDMAIL -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1" data-ng-init="getSmsAccounts()">\n <!-- START SENDSms -->\n <div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1">\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.to.$touched || forms.action.$submitted) && forms.action.to.$invalid}">\n <label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" ng-pattern="/^[\\+]?[0-9]+$/" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2" required/>\n <span data-ng-show="(forms.action.to.$touched || forms.action.$submitted) && forms.action.to.$invalid && forms.action.to.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$invalid}">\n <label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in smsAccounts | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.text.$touched || forms.action.$submitted) && forms.action.text.$invalid}">\n <label class="control-label">{{\'APPLICATION_TEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <textarea id="text" class="form-control maxlength-handler" maxlength="160" name="text" data-ng-model="application.data6" required></textarea>\n <span data-ng-show="(forms.action.text.$touched || forms.action.$submitted) && forms.action.text.$invalid && forms.action.text.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <!-- END SENDSms -->\n </div>\n\n <!-- START INTERVAL_TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.intType.$touched || forms.action.$submitted) && forms.action.intType.$invalid}">\n <label class="control-label">{{ \'APPLICATION_INTERVAL_TYPE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.intType" theme="bootstrap" name="intType" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="intType.value as intType in $application.intTypes | filter: $select.search">\n {{ intType.name | translate }}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.intType.$touched || forms.action.$submitted) && forms.action.intType.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVAL_TYPE -->\n\n <div class="app-settings" ng-slide-down="application.intType === \'custom\'" lazy-render duration="1">\n <!-- START TIME -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n <div class="input-group input-large">\n <fieldset class="pull-left" ng-disabled="application.alwaysTime">\n <uib-timepicker name="t_from" data-ng-model="application.t_from" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker>\n </fieldset>\n <div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n <fieldset ng-disabled="application.alwaysTime">\n <uib-timepicker name="t_to" data-ng-model="application.t_to" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker>\n </fieldset>\n <!-- <label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="application.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label> -->\n </div>\n </div>\n <!-- END TIME -->\n\n <!-- START ALWAYS -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ALWAYS\' | translate }}</label>\n <div class="input-group input-large">\n <label class="control-label pointer-cursor">\n <input\n bs-switch\n data-ng-model="application.alwaysTime"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n <!-- <input type="checkbox" data-ng-model="application.alwaysTime"> -->\n </label>\n </div>\n </div>\n <!-- END ALWAYS -->\n\n <!-- START WEEKDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.wd_from" theme="bootstrap" name="wd_from">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{ weekDay.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.wd_to" theme="bootstrap" name="wd_to">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{ weekDay.name | translate }}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END WEEKDAY -->\n\n <!-- START MONTHDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.md_from" theme="bootstrap" name="md_from">\n <ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_to && application.md_to!==\'always\' && monthDay>application.md_to && monthDay!==\'always\'">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.md_to" theme="bootstrap" name="md_to">\n <ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_from && application.md_from!==\'always\' && monthDay<application.md_from && monthDay!==\'always\'">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTHDAY -->\n\n <!-- START MONTH -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.m_from" theme="bootstrap" name="m_from">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{ month.name | translate }}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.m_to" theme="bootstrap" name="m_to">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{ month.name | translate }}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTH -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.intType === \'list\'" lazy-render duration="1" data-ng-init="getIntervals()">\n\n <!-- START INTERVALS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.IntervalId.$touched || forms.action.$submitted) && forms.action.IntervalId.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERVALS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.IntervalId" theme="bootstrap" name="IntervalId" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="interval.id as interval in intervals | filter: $select.search">\n {{ interval.name}}\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="intervals.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_INTERVAL_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/intervals/list">{{\'APPLICATION_INTERVALS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.action.IntervalId.$touched || forms.action.$submitted) && forms.action.IntervalId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVALS -->\n\n </div>\n\n <input class="btn green-haze" type="submit" data-ng-click="next()" value="{{\'APPLICATION_CONTINUE\' | translate}}" />\n </form>\n </wz-step>\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n <input class="btn green-haze" type="submit" data-ng-click="next()" value="{{\'APPLICATION_CONFIRM\' | translate}}" />\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'), -a.put("app/channels/openchannel/account/view/api/view/view.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_API\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <div class="tab-pane active" id="tab_1_1">\n <!-- START API -->\n <div class="row" >\n <div class="col-md-12">\n <label class="control-label">Receive URL</label>\n </div>\n </div>\n <div class="row" >\n <div class="col-md-11">\n <code-mirror model="receiveurl"></code-mirror>\n </div>\n <div class="col-md-1">\n <a class="btn btn-sm green-jungle" data-ng-click="copyToClipboard(receiveurl);"><i class="fa fa-clipboard"></i>\n </a>\n </div>\n </div>\n <!-- END API -->\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/openchannel/account/view/disposition/modal/add.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_DISPOSITIONS\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.form.$touched || form.$submitted) && form.form.$invalid}">\n <div class="">\n <input type="text" name="form" placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}" class="form-control" data-ng-model="name" required/>\n <span data-ng-show="form.form.$touched && form.form.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <!-- END NAME -->\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" data-ng-click="ok()" data-ng-show="form.$valid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/openchannel/account/view/disposition/view/view.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_DISPOSITIONS\' | translate}}</span>\n </div>\n <div class="actions actions-md">\n <a href="#" class="btn btn-icon-only green" data-ng-click="addDisposition();">\n <i class="fa fa-plus"></i>\n </a>\n </div>\n </div>\n <div class="portlet-body" data-ng-init="initView()">\n <div class="tab-content">\n <div class="row" data-ng-hide="dispositions.length">\n <div class="col-md-12">\n <div class="note note-info">\n <h4 class="block">Info! {{\'MESSAGE_NO_DISPOSITIONS_AVAILABLE\' | translate}}</h4>\n </div>\n </div>\n </div>\n\n <!-- GENERAL TAB -->\n <div class="row" data-ng-repeat="disposition in dispositions">\n <div class="col-md-12 form-group">\n <div class="input-group">\n <div>\n <input class="form-control" type="text" placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}" data-ng-model="disposition.name">\n </div>\n <span class="input-group-btn">\n <button class="btn btn-success" type="button" data-ng-click="updateDisposition(disposition.id, disposition.name);"><i class="fa fa-cloud-upload fa-fw"></i> {{\'APPLICATION_UPDATE\' | translate}}</button>\n <button class="btn btn-danger" type="button" data-ng-click="deleteDisposition(disposition.id);"><i class="fa fa-times fa-fw"></i> {{\'APPLICATION_DELETE\' | translate}}</button>\n </span>\n </div>\n </div>\n </div>\n <!-- END GENERAL TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/openchannel/account/view/hooks/view/view.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_HOOKS\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_SEND\' | translate}}</a>\n </li>\n <li >\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_ACCEPT\' | translate}}</a>\n </li>\n <li >\n <a href="#" data-target="#tab_1_3" data-toggle="tab">{{\'APPLICATION_REJECT\' | translate}}</a>\n </li>\n <li >\n <a href="#" data-target="#tab_1_4" data-toggle="tab">{{\'APPLICATION_CLOSE\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- START REPLY TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.info" data-ng-submit="forms.info.$valid && updateItem()" novalidate>\n <div class="row">\n <div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.info.method.$touched || forms.info.$submitted) && forms.info.method.$invalid}">\n <label class="control-label">{{\'APPLICATION_METHOD\' | translate}}</label>\n <ui-select data-ng-model="account.replyMethod" name="method" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected.name | uppercase}}</ui-select-match>\n <ui-select-choices repeat="type.value as type in types | filter: $select.search" >\n <div ng-bind-html="type.name | highlight: $select.search | uppercase" ></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.info.method.$touched || forms.info.$submitted) && forms.info.method.$invalid && forms.info.method.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.info.url.$touched || forms.info.$submitted) && forms.info.url.$invalid}">\n <label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n <input type="url" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="account.replyUrl" ng-required="account.replyMethod"/>\n <span data-ng-show="(forms.info.url.$touched || forms.info.$submitted) && forms.info.url.$invalid && forms.info.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END REPLY TAB -->\n\n <!-- START ACCEPT TAB -->\n <div class="tab-pane" id="tab_1_2">\n <form name="forms.accept" data-ng-submit="forms.accept.$valid && updateItem()" novalidate>\n <div class="row">\n <div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.accept.method.$touched || forms.accept.$submitted) && forms.accept.method.$invalid}">\n <label class="control-label">{{\'APPLICATION_METHOD\' | translate}}</label>\n <ui-select data-ng-model="account.acceptMethod" name="method" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected.name | uppercase}}</ui-select-match>\n <ui-select-choices repeat="type.value as type in types | filter: $select.search">\n <div ng-bind-html="type.name | highlight: $select.search | uppercase" ></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.accept.method.$touched || forms.accept.$submitted) && forms.accept.method.$invalid && forms.accept.method.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.accept.url.$touched || forms.accept.$submitted) && forms.accept.url.$invalid}">\n <label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n <input type="url" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="account.acceptUrl" ng-required="account.acceptMethod"/>\n <span data-ng-show="(forms.accept.url.$touched || forms.accept.$submitted) && forms.accept.url.$invalid && forms.accept.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <!-- START ACTIONS-->\n <div class="row" ng-repeat = "action in account.actions">\n <div ng-switch="action.action">\n <div ng-switch-when="pause">\n <div class="form-group col-md-4">\n <label class="control-label">{{\'APPLICATION_PAUSE\' | translate}}</label></br>\n <input\n bs-switch\n data-ng-change="resetActionData(action)"\n data-ng-model="action.enabled"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </div>\n <div ng-if="action.enabled" class="form-group col-md-8">\n <label class="control-label">{{\'APPLICATION_TYPE\' | translate}}</label>\n <ui-select name="action" data-ng-model="action.type" theme="bootstrap" >\n <ui-select-match placeholder="{{\'APPLICATION_TYPE\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat=" pause.name as pause in pauses | filter: $select.search">\n <div ng-bind-html="pause.name | highlight: $select.search | uppercase" ></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n </div>\n </div>\n <!-- END ACTION -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ACCEPT TAB -->\n <!-- START REJECT TAB -->\n <div class="tab-pane" id="tab_1_3">\n <form name="forms.reject" data-ng-submit="forms.reject.$valid && updateItem()" novalidate>\n <div class="row">\n <div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.reject.method.$touched || forms.reject.$submitted) && forms.reject.method.$invalid}">\n <label class="control-label">{{\'APPLICATION_METHOD\' | translate}}</label>\n <ui-select data-ng-model="account.rejectMethod" name="method" theme="bootstrap" >\n <ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected.name | uppercase}}</ui-select-match>\n <ui-select-choices repeat="type.value as type in types | filter: $select.search">\n <div ng-bind-html="type.name | highlight: $select.search | uppercase" ></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.reject.method.$touched || forms.reject.$submitted) && forms.reject.method.$invalid && forms.reject.method.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.reject.url.$touched || forms.reject.$submitted) && forms.reject.url.$invalid}">\n <label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n <input type="url" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="account.rejectUrl" ng-required="account.rejectMethod"/>\n <span data-ng-show="(forms.reject.url.$touched || forms.reject.$submitted) && forms.reject.url.$invalid && forms.reject.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END REJECT TAB -->\n <!-- START CLOSE TAB -->\n <div class="tab-pane" id="tab_1_4">\n <form name="forms.close" data-ng-submit="forms.close.$valid && updateItem()" novalidate>\n <div class="row">\n <div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.close.method.$touched || forms.close.$submitted) && forms.close.method.$invalid}">\n <label class="control-label">{{\'APPLICATION_METHOD\' | translate}}</label>\n <ui-select data-ng-model="account.closeMethod" name="method" theme="bootstrap" >\n <ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected.name | uppercase}}</ui-select-match>\n <ui-select-choices repeat="type.value as type in types | filter: $select.search">\n <div ng-bind-html="type.name | highlight: $select.search | uppercase" ></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.close.method.$touched || forms.close.$submitted) && forms.close.method.$invalid && forms.close.method.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.close.url.$touched || forms.close.$submitted) && forms.close.url.$invalid}">\n <label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n <input type="url" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="account.closeUrl" ng-required="account.closeMethod"/>\n <span data-ng-show="(forms.close.url.$touched || forms.close.$submitted) && forms.close.url.$invalid && forms.close.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END CLOSE TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/openchannel/account/view/setting/view/view.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERALS\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.info" data-ng-submit="forms.info.$valid && updateItem()" novalidate>\n <!-- START ID -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_ID\' | translate}}<span class="required" aria-required="true">*</span>\n </label>\n <input type="text" name="id" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.id" ng-disabled="true" required/>\n </div>\n <!-- END ID-->\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.name" required/>\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid && forms.info.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n <!-- START LIST -->\n <div class="form-group" data-ng-if="license.cm">\n <label class="control-label">{{\'APPLICATION_LIST\' | translate}}</label>\n <div class="input-group">\n\n <ui-select data-ng-model="account.ListId" name="list" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_LIST\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="list.id as list in lists | filter: $select.search">\n <div ng-bind-html="list.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n\n <span class="input-group-btn">\n <button type="button" data-ng-click="account.ListId = null" class="btn btn-default">\n <span class="glyphicon glyphicon-trash"></span>\n </button>\n </span>\n\n </div>\n </div>\n <!-- END LIST -->\n <!-- START FIDELITY -->\n <!-- <div class="form-group">\n <label class="control-label">{{\'APPLICATION_FIDELITY\' | translate}}</label></br>\n <input\n bs-switch\n data-ng-model="account.fidelity"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </div> -->\n <!-- END FIDELITY -->\n\n <!-- START TIMEOUT -->\n <!-- <div class="form-group" data-ng-if="account.fidelity" data-ng-class="{\'has-error\': (forms.info.timeout.$touched || forms.info.$submitted) && forms.info.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="0" name="timeout" placeholder="{{\'APPLICATION_PORT\' | translate}}" class="form-control" data-ng-model="account.timeout" required/>\n <span data-ng-show="(forms.info.timeout.$touched || forms.info.$submitted) && forms.info.timeout.$invalid && forms.info.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.timeout.$touched || forms.info.$submitted) && forms.info.timeout.$invalid && forms.info.timeout.$error.number" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n </span>\n </div> -->\n <!-- END TIMEOUT -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="account.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START CUSTOM -->\n <!-- <div class="form-group">\n <label class="control-label">{{\'APPLICATION_REPLY\' | translate}}</label></br>\n <input\n bs-switch\n data-ng-model="account.reply"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </div> -->\n <!-- START REPLY HOOK -->\n <!-- <div ng-if= "account.reply" class="row">\n <div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.info.method.$touched || forms.info.$submitted) && forms.info.method.$invalid}">\n <label class="control-label">{{\'APPLICATION_METHOD\' | translate}}</label>\n <ui-select data-ng-model="account.replyMethod" name="method" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected.name | uppercase}}</ui-select-match>\n <ui-select-choices repeat="type.value as type in types | filter: $select.search" >\n <div ng-bind-html="type.name | highlight: $select.search | uppercase" ></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.info.method.$touched || forms.info.$submitted) && forms.info.method.$invalid && forms.info.method.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.info.url.$touched || forms.info.$submitted) && forms.info.url.$invalid}">\n <label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n <input type="url" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="account.replyUrl" required/>\n <span data-ng-show="(forms.info.url.$touched || forms.info.$submitted) && forms.info.url.$invalid && forms.info.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div> -->\n <!-- START REPLY HOOK -->\n <!-- END CUSTOM -->\n\n <!-- START REMOTE IP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.remote.$touched || forms.info.$submitted) && forms.info.remote.$invalid}">\n <label class="control-label">{{\'APPLICATION_MOTION_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="remote" placeholder="{{\'APPLICATION_MOTION_ADDRESS\' | translate}}" class="form-control" data-ng-model="account.remote" required/>\n <span class="help-block help-block-info">\n {{\'MESSAGE_MOTION_ADDRESS_FORMAT\' | translate}}\n </span>\n <span data-ng-show="(forms.info.remote.$touched || forms.info.$submitted) && forms.info.remote.$invalid && forms.info.remote.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END REMOTE IP -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/openchannel/account/view/view.html",'<!-- BEGIN PAGE HEADER-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-globe"></i>\n <a href="#">{{ \'APPLICATION_OPEN_CHANNEL\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-notebook"></i>\n <a href="/channels/openchannel/accounts/list">{{ \'APPLICATION_ACCOUNTS\' | translate }}</a>\n <i class="fa fa-angle-right" data-ng-show="account"></i>\n </li>\n <li data-ng-show="account">\n <a href="#">{{ account.name }}</a>\n </li>\n </ul>\n </div>\n\n<!-- END PAGE HEADER-->\n\n<!-- BEGIN PAGE CONTENT-->\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET main.channels -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img ng-src="assets/images/media/account.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{ account.name }}\n </div>\n <div class="profile-usertitle-job">\n {{account.description}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li ng-class="{active: $state.is(\'main.channels.openchannel.accounts.view.settings\')}">\n <a href="/channels/openchannel/accounts/view/{{account.id}}/settings">\n <i class="icon-settings"></i>\n {{\'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n <li ng-class="{active: $state.is(\'main.channels.openchannel.accounts.view.api\')}">\n <a href="/channels/openchannel/accounts/view/{{account.id}}/api">\n <i class="fa fa-external-link"></i>\n {{\'APPLICATION_API\' | translate}} </a>\n </li>\n <li ng-class="{active: $state.is(\'main.channels.openchannel.accounts.view.hooks\')}">\n <a href="/channels/openchannel/accounts/view/{{account.id}}/hooks">\n <i class="fa fa-code"></i>\n {{\'APPLICATION_HOOKS\' | translate}} </a>\n </li>\n <li ng-class="{active: $state.is(\'main.channels.openchannel.accounts.view.dispositions\')}">\n <a href="/channels/openchannel/accounts/view/{{account.id}}/dispositions">\n <i class="icon-target"></i>\n {{\'APPLICATION_DISPOSITIONS\' | translate}} </a>\n </li>\n <li ng-class="{active: $state.includes(\'main.channels.openchannel.accounts.view.actions\')}">\n <a href="/channels/openchannel/accounts/view/{{account.id}}/actions/list">\n <i class="icon-directions"></i>\n {{\'APPLICATION_ACTIONS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <div ui-view class="profile-content"></div>\n <!-- END PROFILE CONTENT -->\n </div>\n<!-- END PAGE CONTENT-->\n</div>\n'),a.put("app/channels/openchannel/account/wizard/wizard.html",'\n<div class="row" data-ng-init="initWizard()">\n <div class="col-md-12">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-globe"></i>\n <a href="#">{{ \'APPLICATION_OPEN_CHANNEL\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-notebook"></i>\n <a href="/channels/openchannel/accounts/list">{{ \'APPLICATION_ACCOUNTS\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACCOUNT\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_ACCOUNT_INFO\' | translate}}" canexit="formValidation(forms.info.$valid)">\n <form name="forms.info" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid && forms.info.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n </div>\n <!-- END DESCRIPTION -->\n <!-- START REMOTE IP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.remote.$touched || forms.info.$submitted) && forms.info.remote.$invalid}">\n <label class="control-label">{{\'APPLICATION_MOTION_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="remote" placeholder="{{\'APPLICATION_MOTION_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.remote" required/>\n <span class="help-block help-block-info">\n {{\'MESSAGE_MOTION_ADDRESS_FORMAT\' | translate}}\n </span>\n <span data-ng-show="(forms.info.remote.$touched || forms.info.$submitted) && forms.info.remote.$invalid && forms.info.remote.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END REMOTE IP -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" data-ng-click="goNext()"/>\n </form>\n </wz-step>\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'), -a.put("app/channels/openchannel/inbox/message/info.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_INFO\' | translate }}</h3>\n</div>\n<div class="modal-body" data-ng-init="initInfo()" style=" overflow-x: auto;" >\n <div data-ng-if="data" >\n <json-formatter json="data" open="1"></json-formatter>\n </div>\n <div class="note note-warning" data-ng-hide="data">\n <p>\n {{ \'MESSAGE_NO_INFO_AVAILABLE\' | translate }}\n </p>\n </div>\n\n</div>\n<div class="modal-footer">\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'),a.put("app/channels/openchannel/inbox/message/message.html",'<div class="message">\n <div class="row">\n <div class="col-md-6">\n <!-- <span data-ng-if="Message.from" class="bold">From: {{Message.from}} </span>\n <br>\n <span data-ng-if="Message.to" class="bold">To: {{Message.to}} </span>\n <br> -->\n <div class="row" ng-if="Message.from">\n <div class="col-md-12">\n <span data-ng-if="Message.from" class="bold">From: {{Message.from}} </span>\n </div>\n </div>\n <div class="row" ng-if="Message.to">\n <div class="col-md-12">\n <span data-ng-if="Message.to" class="bold">To: {{Message.to}} </span>\n </div>\n </div>\n <div class="row" ng-if="Message.name">\n <div class="col-md-12">\n <span class="bold">Name: {{Message.name}}</span>\n </div>\n </div>\n <div class="row" ng-if="Message.phone">\n <div class="col-md-12">\n <span class="bold">Phone: <a href="" data-ng-click="openContact(\'phone\',Message.phone)">{{Message.phone}}</a></span>\n </div>\n </div>\n <div class="row" ng-if="Message.email">\n <div class="col-md-12">\n <span class="bold">Email: <a href="" data-ng-click="openContact(\'email\',Message.email)">{{Message.email}}</a></span>\n </div>\n </div>\n </div>\n <div class="col-md-6">\n <span class="pull-right" data-ng-if="Message.User">{{\'APPLICATION_SENT_BY\' | translate}}: <strong>{{Message.User.fullname}}</strong></span>\n </div>\n </div>\n <br>\n <span class="todo-tasklist-date">\n <span class="pull-right" data-ng-switch="Message.status">\n <a ng-switch-when="RECEIVED" href="#" class="btn default btn-xs inactive-link green-stripe"> {{Message.status | uppercase}}\n <i class="fa fa-check"></i>\n </a>\n <a ng-switch-when="SENT" href="#" class="btn default btn-xs inactive-link green-stripe"> {{Message.status | uppercase}}\n <i class="fa fa-check"></i>\n </a>\n <a ng-switch-when="DELIVERED" href="#" class="btn default btn-xs inactive-link green-stripe"> {{Message.status | uppercase}}\n <i class="fa fa-check"></i>\n </a>\n <a ng-switch-when="SENDING" href="#" class="btn default btn-xs inactive-link blue-stripe" > {{Message.status | uppercase}}\n <i class="fa fa-warning"></i>\n </a>\n <a ng-switch-when="FAILED" href="#" class="btn default btn-xs red-stripe" data-ng-click="info(Message.res_data)"> {{Message.status | uppercase}}\n <i class="fa fa-times"></i>\n </a>\n <a ng-switch-default href="#" class="btn default btn-xs"> {{Message.status | uppercase}}\n </a>\n <br>\n </span>\n\n <i class="icon-calendar" title="{{Message.updatedAt | date:\'MMM d, y HH:mm:ss\'}}"></i> <span am-time-ago="Message.updatedAt"></span>\n </span>\n <hr>\n <ng-emoticons emoticons-data="Message.body"></ng-emoticons>\n <!-- <span class="body text-left" data-ng-bind-html="Message.body" style="white-space: pre-wrap;"></span> -->\n </div>\n'),a.put("app/channels/openchannel/inbox/room/room.directive.html",'<!-- BEGIN TODO CONTENT -->\n\n<div class="todo-content">\n <div class="portlet light">\n <div class="portlet-title">\n <div class="caption">\n <button class="btn btn-sm btn-default green-meadow" data-ng-if="Room.status !== \'CLOSED\'" data-ng-disabled="!form.body || forms.compose.from.$invalid || forms.compose.to.$invalid" data-ng-click="sendMessage()">\n <i class="icon-paper-plane" style="color: white;"></i> {{\'APPLICATION_SEND\' | translate}}\n </button>\n <span data-ng-show="Room && Room.status !== \'CLOSED\'"> | </span>\n <span data-ng-show="Room" class="label label-default">#{{Room.id}} {{Room.status}}</span>\n <span data-ng-if="Room && Room.ParentId"> | </span>\n <span data-ng-if="Room && Room.ParentId" class="label label-warning"> Ref: <a data-ng-click="openRoom(Room.ParentId,Room.contact)">#{{Room.ParentId}}</a></span>\n </div>\n <div class="actions" data-ng-switch="Room.status">\n <button class="btn btn-icon-only" data-ng-show="Room" data-ng-class="{\'btn-success\':Room.status !== \'CLOSED\',\'grey-cascade\':Room.status === \'CLOSED\'}" data-ng-click="closeRoom(Room.id)" data-ng-disabled="Room.status === \'CLOSED\' && Room.disposition">\n <i data-ng-class="{\'fa fa-upload\':Room.status !== \'CLOSED\',\'icon-target\':Room.status === \'CLOSED\'}"></i>\n </button>\n <button class="btn default btn-icon-only" data-ng-if="Room && Room.status !== \'CLOSED\'" type="button" data-ng-click="togglePanelLeft()" title="{{\'APPLICATION_RESIZE\' | translate}}">\n <i ng-class="panelRight == \'col-md-12\' ? \'icon-size-actual\' : \'icon-size-fullscreen\'"></i>\n </button>\n </div>\n </div>\n <div class="portlet-body">\n <div class="row">\n <div data-ng-show="panelLeft" data-ng-class="panelLeft">\n <div class="form">\n <!-- START TAGS -->\n <div class="form-group" data-ng-if="Room.status !== \'CLOSED\' || (Room.status == \'CLOSED\' && form.tags.length)">\n <div class="row">\n <div class="col-md-1">\n <a href="#" class="btn btn-icon-only">\n <i class="fa fa-tags" style="color: gray;"></i>\n </a>\n </div>\n <div class="col-md-11">\n <ui-select data-ng-disabled="Room.status == \'CLOSED\'" multiple data-ng-model="form.tags" theme="bootstrap" on-select="onChanged($item, $model)" on-remove="onChanged($item, $model)">\n <ui-select-match placeholder="Tags...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="tag in tags | filter:$select.search" class="">\n {{tag}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n </div>\n <!-- END TAGS -->\n </div>\n <hr data-ng-if="Room && Room.status !== \'CLOSED\'">\n\n <div ng-scrollbars ng-scrollbars-config="{\n autoHideScrollbar: false,\n theme: \'light\',\n advanced: {\n updateOnContentResize: true\n },\n setHeight: 781,\n scrollInertia: 0\n }">\n <ul class="chats">\n <li data-ng-switch="Room.status" data-ng-class="{\'in\': Message.status == \'RECEIVED\', \'out\': Message.status == \'SENT\' || Message.status == \'SENDING\' || Message.status == \'FAILED\' || Message.status == \'NOTE\' || Message.status == \'DELIVERED\' || Message.status == \'QUEUED\' || Message.status != \'RECEIVED\' }" data-ng-repeat="Message in Room.OpenchannelMessages | orderBy:\'-createdAt\'">\n <!-- <img class="avatar" alt="" data-ng-src="api/users/avatar/{{getCurrentUser().userpic && smsMessage.status === \'SENT\' ? getCurrentUser().userpic : \'unknown_avatar\'}}"> -->\n <!-- <note message="smsMessage" ng-switch-when="NOTE"></note> -->\n <div class="avatar" data-ng-class="Message.UserId ? \'pretty-avatar\' : \'pretty-avatar-v\'">\n <ng-letter-avatar\n data-ng-if="Message.UserId"\n height="40"\n width="40"\n fontsize="25"\n data="{{Message.User.fullname}}"\n avatarcustombgcolor="#B0B0B0"\n avatarcustomborder="border:2px solid #3399CC"\n charCount="2"\n shape="round"></ng-letter-avatar>\n <ng-letter-avatar\n data-ng-if="!Message.UserId"\n height="40"\n width="40"\n fontsize="25"\n data="{{Message.from}}"\n avatarcustombgcolor="#B0B0B0"\n avatarcustomborder="border:2px solid #EA4C61"\n charCount="1"\n shape="round"></ng-letter-avatar>\n </div>\n <message message="Message" list-id="Room.OpenchannelAccount.ListId" ng-switch-default></message>\n </li>\n </ul>\n </div>\n </div>\n <div data-ng-class="panelRight">\n\n <div class="note note-info" data-ng-if="Room && Room.status == \'CLOSED\'">\n <h4 class="block">Info! {{\'MESSAGE_ROOM_CLOSED\' | translate}}</h4>\n <p>\n {{\'MESSAGE_ROOM_CLOSED_DETAILS\' | translate}}.\n </p>\n <hr>\n <p>\n <i class="icon-target"></i> {{\'APPLICATION_DISPOSITION\' | translate}}: <strong>{{Room.disposition}}</strong>\n </p>\n <p>\n <i class="icon-calendar"></i> {{\'APPLICATION_UPDATED_AT\' | translate}}: <strong>{{Room.updatedAt | date:\'medium\'}}</strong> (<span am-time-ago="Room.updatedAt"></span>)\n </p>\n </div>\n <form name="forms.compose" data-ng-submit="forms.compose.$valid" class="form-horizontal" novalidate>\n <!-- START HEAD -->\n <div class="form">\n\n <!-- START FROM -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.compose.from.$invalid && forms.compose.$submitted}" data-ng-if="Room.status !== \'CLOSED\'">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-1">\n <label class="control-label">From:</label>\n </div>\n <div class="col-md-11">\n <ui-select data-ng-disabled="Room" theme="bootstrap" name="from" data-ng-model="form.from" required>\n <ui-select-match placeholder="From...">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="Account.name as Account in Accounts | filter: $select.search">\n <div data-ng-bind-html="Account.name | highlight: $select.search"></div>\n <small data-ng-bind-html="Account.name | highlight: $select.search"></small>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.compose.from.$invalid && forms.compose.$submitted " class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n </div>\n <!-- END FROM -->\n <!-- START TO -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.compose.to.$invalid && forms.compose.$submitted}" data-ng-if="Room.status !== \'CLOSED\'">\n\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-1">\n <label class="control-label">To:</label>\n </div>\n <div class="col-md-11">\n <input type="text" name="to" class="form-control todo-taskbody-taskdesc" placeholder="To..." rows="8" data-ng-disabled="Room" data-ng-model="form.to" required>\n <span data-ng-show="forms.compose.to.$invalid && forms.compose.$submitted " class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n </div>\n <!-- END TO -->\n <!-- START CANNED -->\n <div class="form-group" data-ng-if="Room.status !== \'CLOSED\'">\n <div class="row">\n <div class="col-md-1">\n <a href="#" class="btn btn-icon-only">\n <i class="fa fa-magic" style="color: gray;"></i>\n </a>\n </div>\n <div class="col-md-11">\n <input type="text"\n data-ng-model="modelOptions.selectedAnswer"\n uib-typeahead="key for key in getAnswers($viewValue)"\n placeholder="Canned answers.."\n typeahead-loading="loadingLocations"\n typeahead-no-results="noResults"\n typeahead-on-select="onSelect($item)"\n class="form-control">\n <i ng-show="loadingLocations" class="glyphicon glyphicon-refresh"></i>\n <div ng-show="noResults">\n <i class="glyphicon glyphicon-remove"></i> No Results Found\n </div>\n </div>\n </div>\n\n </div>\n <!-- END CANNED -->\n <!-- START message -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.compose.body.$invalid && forms.compose.$submitted}" data-ng-if=" Room.status !== \'CLOSED\'">\n <div class="col-md-12">\n <textarea id="text" class="form-control maxlength-handler" rows="8" name="body" data-ng-model="form.body"></textarea>\n <span data-ng-show="forms.compose.body.$invalid && forms.compose.$submitted " class="help-block help-block-error">\n'+" <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n </span>\n </div>\n </div>\n\n <!-- END message -->\n </div>\n </form>\n </div>\n </div>\n </div>\n </div>\n</div>\n<!-- END TODO CONTENT -->\n"),a.put("app/channels/openchannel/inbox/view/account/list/list.html",'<!-- BEGIN Portlet PORTLET-->\n<div class="portlet light" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption">\n <div class="btn-group btn-group-solid">\n <button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'NEW\'" uib-uncheckable>NEW</button>\n </div>\n <div class="btn-group btn-group-solid">\n <button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'OPEN\'" uib-uncheckable>OPEN</button>\n </div>\n <div class="btn-group btn-group-solid">\n <button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'PENDING\'" uib-uncheckable>PENDING</button>\n </div>\n <div class="btn-group btn-group-solid">\n <button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'CLOSED\'" uib-uncheckable>CLOSED</button>\n </div>\n </div>\n <div class="actions">\n <a href="#" class="btn btn-icon-only default" data-ng-click="getPage();">\n <i class="fa fa-refresh"></i>\n </a>\n <a href="#" class="btn btn-icon-only red" data-ng-click="deleteItems();" data-ng-show="id.length && isAdmin">\n <i class="fa fa-trash"></i>\n </a>\n <a href="#" class="btn btn-icon-only blue" data-ng-click="tagItems();" data-ng-show="id.length">\n <i class="fa fa-tags"></i>\n </a>\n <a href="#" class="btn btn-icon-only green" data-ng-click="openRoom(null, \'New Message\')">\n <i class="fa fa-plus"></i>\n </a>\n </div>\n </div>\n <div class="portlet-title" data-ng-show="tags.length">\n <!-- START TAGS -->\n <div class="form-group">\n <div class="row">\n <div class="col-md-1">\n <a href="#" class="btn btn-icon-only">\n <i class="fa fa-tags" style="color: gray;"></i>\n </a>\n </div>\n <div class="col-md-11">\n <ui-select multiple data-ng-model="query.tags" theme="bootstrap" on-select="onChanged($item, $model)" on-remove="onChanged($item, $model)">\n <ui-select-match placeholder="Search by tag...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="tag in tags | filter:$select.search">\n {{tag}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n </div>\n <!-- END TAGS -->\n </div>\n <div class="portlet-body">\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="spinner-grid" spinner-start-active="false"></span>\n <!-- END UI-GRID SPINNER -->\n\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid-inbox">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END Portlet PORTLET-->\n'),a.put("app/channels/openchannel/inbox/view/view.agents.modal.html",'<div class="modal-header" data-ng-init="initModal()">\n <h3 class="modal-title">{{ \'APPLICATION_AGENTS\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <!-- START TRANSPORT -->\n <div class="form-group">\n <form name="form" novalidate>\n <!-- START TRANSPORT -->\n <div class="form-group">\n <ui-select multiple name="agents" data-ng-model="item.agents" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_AGENTS\' | translate}}">{{$item.fullname}}</ui-select-match>\n <ui-select-choices repeat="agent.id as agent in agents | filter: $select.search">\n {{agent.fullname}}\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END TRANSPORT -->\n </form>\n </div>\n <!-- END TRANSPORT -->\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" data-ng-click="ok()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/openchannel/inbox/view/view.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-globe"></i>\n <a href="#">{{ \'APPLICATION_OPEN_CHANNEL\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-note"></i>\n <a href="/channels/openchannel/inbox/list">{{ \'APPLICATION_INBOX\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row inbox" data-ng-init="initView()">\n <div class="col-md-3">\n <ul class="inbox-nav margin-bottom-10">\n <li data-ng-class="{active: $stateParams.id == Account.id}" data-ng-repeat="Account in openchannelAccounts">\n <a href="/channels/openchannel/inbox/view/account/{{Account.id}}/list" class="btn">\n <i class="icon-notebook"></i> {{Account.name}}\n </a>\n <b></b>\n </li>\n </ul>\n </div>\n\n <div class="col-md-9" >\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view>\n <div class="note note-info">\n <h4 class="block">Info! {{\'APPLICATION_NO_ACCOUNT_SELECTED\' | translate}}</h4>\n </div>\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/openchannel/inbox/view/view.status.modal.html",'<div class="modal-header">\n <button ng-if="modal.dismissable" type="button" ng-click="$dismiss()" class="close">×</button>\n <h4 ng-if="modal.title" ng-bind="modal.title | translate" class="modal-title"></h4>\n</div>\n<div class="modal-body">\n <p ng-if="modal.text && !closed" ng-bind="modal.text | translate"></p>\n <form name="form" novalidate data-ng-init="initDisposition()">\n <div class="form-group">\n <ui-select data-ng-model="item.disposition" name="list" theme="bootstrap" data-ng-disabled="!dispositions.length" required>\n <ui-select-match placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="disposition.name as disposition in dispositions | filter: $select.search">\n <div ng-bind-html="disposition.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="note note-warning" data-ng-hide="dispositions.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_DISPOSITIONS_AVAILABLE\' | translate }}\n </p>\n </div>\n</form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-danger" type="button" ng-click="ok()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/openchannel/inbox/view/view.tags.modal.html",'<div class="modal-header" data-ng-init="initModal()">\n <h3 class="modal-title">{{ \'APPLICATION_TAGS\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <!-- START TRANSPORT -->\n <div class="form-group">\n <form name="form" novalidate>\n <!-- START TAGS -->\n <div class="form-group">\n <ui-select multiple data-ng-model="item.tags" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_TAGS\' | translate}}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="tag in tags | filter: $select.search">\n {{tag}}\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END TAGS -->\n </form>\n </div>\n <!-- END TRANSPORT -->\n</div>\n<div class="modal-footer">\n <button type="button" class="btn" data-ng-class="button.class" data-ng-click="button.click()"data-ng-repeat="button in modal.buttons">{{button.text | translate}}</button>\n <!-- <button class="btn btn-success" type="button" data-ng-click="ok()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button> -->\n</div>\n'),a.put("app/channels/openchannel/queue/list/list.create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_QUEUE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" data-ng-pattern="settings.patternName" required />\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$invalid && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$invalid && form.name.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.timeout.$touched || form.$submitted) && form.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_AGENT_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="0" name="timeout" placeholder="Timeout" class="form-control" data-ng-model="item.timeout" required min="1"/>\n <span data-ng-show="(form.timeout.$touched || form.$submitted) && form.timeout.$invalid && form.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START STRATEGY -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.strategy.$touched || form.$submitted) && form.strategy.$invalid}">\n <label class="control-label">{{\'APPLICATION_STRATEGY\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.strategy" name="strategy" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.toUpperCase()}}</ui-select-match>\n <ui-select-choices repeat="strategy in strategies | filter: $select.search">\n <div ng-bind-html="strategy.toUpperCase() | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form.strategy.$touched || form.$submitted) && form.strategy.$invalid && form.strategy.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END STRATEGY -->\n\n <!-- START AGENTS-->\n <div class="form-body" data-ng-init="getTeams()">\n <label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n <div class="input-group input-small mbottom20">\n <input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="item.penalty" readonly>\n <div class="spinner-buttons input-group-btn btn-group-vertical">\n <button type="button" class="btn spinner-up btn-xs blue" data-ng-click="item.penalty=item.penalty+1">\n <i class="fa fa-angle-up"></i>\n </button>\n <button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!item.penalty" data-ng-click="item.penalty=item.penalty-1">\n <i class="fa fa-angle-down"></i>\n </button>\n </div>\n </div>\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-team">\n </div>\n </div>\n </div>\n <!-- END AGENTS-->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/openchannel/queue/list/list.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-globe"></i>\n <a href="#">{{ \'APPLICATION_OPEN_CHANNEL\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="#">{{ \'APPLICATION_QUEUES\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_QUEUES\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="#" data-ng-click="createItem()" data-ng-if="Auth.isAdmin()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_QUEUE\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/openchannel/queue/view/view.agents.html",'<div class="row" data-ng-init="getTeams()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_AGENTS\' | translate}}</span>\n </div>\n </div>\n <div class="note note-warning" data-ng-hide="teams.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_AVAILABLE_TEAMS\' | translate }}\n </p>\n </div>\n <div class="portlet-body">\n <!-- BEGIN FORM-->\n <form action="index.html" class="form-horizontal form-row-seperated">\n <div class="form-body">\n <label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n <div class="input-group input-small mbottom20">\n <input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="queue.penalty" readonly>\n <div class="spinner-buttons input-group-btn btn-group-vertical">\n <button type="button" class="btn spinner-up btn-xs blue" data-ng-click="queue.penalty=queue.penalty+1">\n <i class="fa fa-angle-up"></i>\n </button>\n <button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!queue.penalty" data-ng-click="queue.penalty=queue.penalty-1">\n <i class="fa fa-angle-down"></i>\n </button>\n </div>\n </div>\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-team">\n </div>\n </div>\n </div>\n </form>\n <!-- END FORM-->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/openchannel/queue/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getQueue()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-globe"></i>\n <a href="#">{{ \'APPLICATION_OPEN_CHANNEL\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="/channels/openchannel/queues/list">{{ \'APPLICATION_QUEUES\' | translate }}</a>\n <i data-ng-show="queue" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="queue">\n <a href="#">{{queue.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET main.channels -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/queue.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{queue.name}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.channels.openchannel.queues.view.settings\')}">\n <a data-ng-href="/channels/openchannel/queues/view/{{queue.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.channels.openchannel.queues.view.agents\')}" data-ng-show="Auth.getCurrentUser().role === \'admin\'">\n <a data-ng-href="/channels/openchannel/queues/view/{{queue.id}}/agents">\n <i class="icon-people"></i>\n {{ \'APPLICATION_AGENTS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET main.channels -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n </div>\n <!-- END PAGE CONTENT-->\n'), -a.put("app/channels/openchannel/queue/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateQueue()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="queue.name" data-ng-pattern="settings.patternName" required />\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid && forms.general.name.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="queue.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START TIMEOUT -->\n <div class="form-group">\n <label class="control-label">Timeout</label>\n <input type="number" name="timeout" placeholder="Timeout" class="form-control" min="1" data-ng-model="queue.timeout"/>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START HEADER SHAPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.strategy.$touched || forms.general.$submitted) && forms.general.strategy.$invalid}">\n <label class="control-label">{{\'APPLICATION_STRATEGY\' | translate}}</label>\n <ui-select data-ng-model="queue.strategy" name="strategy" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.toUpperCase()}}</ui-select-match>\n <ui-select-choices repeat="strategy in strategies | filter: $select.search">\n <div ng-bind-html="strategy | uppercase | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END HEADER SHAPE -->\n <input data-ng-if="Auth.isAdmin()" class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/openchannel/realtime/view/agent/agent.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initAgents()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns class="ui-grid" ui-grid-tree-view ui-grid-expandable-row ui-grid-pagination ui-grid-auto-resize>\n <span us-spinner spinner-key="grid-spinner" spinner-start-active="true"></span>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/openchannel/realtime/view/agent/agent.modal.info.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_INTERFACE_INFO\' | translate }}</h3>\n</div>\n<div class="modal-body">\n<div data-ng-if="agent.ipaddr" class="well">\n <div>{{agent.ipaddr}}:{{agent.port}}</div>\n <div>{{agent.fullcontact}}</div>\n <div>{{agent.useragent}}</div>\n <div>{{agent.lastms}}</div>\n</div>\n<div data-ng-if="!agent.ipaddr" class="alert alert-danger" role="alert">\n {{\'MESSAGE_NO_AVAILABLE_INFO\' | translate}}\n</div>\n</div>\n<div class="modal-footer">\n <button class="btn default" type="button" ng-click="close()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'),a.put("app/channels/openchannel/realtime/view/agent/queue.modal.add.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_JOIN_QUEUE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <div class="form-group row">\n <label class="col-md-2 control-label" style="margin-top: 7px;">{{\'APPLICATION_QUEUE\' | translate}}:</label>\n <div class="col-md-10">\n <ui-select multiple ng-model="item.queues" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_QUEUE\' | translate}}">{{$item.name}}</ui-select-match>\n <ui-select-choices repeat="queue.id as queue in queues | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n</div>\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/openchannel/realtime/view/application/application.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initApplications()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns class="ui-grid" ui-grid-auto-resize>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/openchannel/realtime/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-globe"></i>\n <a href="#">{{ \'APPLICATION_OPEN_CHANNEL\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-energy"></i>\n <a href="#">{{ \'APPLICATION_REALTIME\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <div>\n <nav class="navbar navbar-default" role="navigation">\n <div class="collapse navbar-collapse">\n <ul class="nav navbar-nav">\n <li data-ng-class="{\'active\': $state.is(\'main.channels.openchannel.realtime.view.agents\')}">\n <a href="/channels/openchannel/realtime/view/agents">\n {{\'APPLICATION_AGENTS\' | translate}}\n </a>\n </li>\n <li data-ng-class="{\'active\': $state.is(\'main.channels.openchannel.realtime.view.applications\')}">\n <a href="/channels/openchannel/realtime/view/applications">\n {{\'APPLICATION_APPLICATIONS\' | translate}}\n </a>\n </li>\n <li>\n <a href="#">\n <b>|{{\'APPLICATION_SHOW_TIMERS\' | translate}} </b><input\n bs-switch\n class="form-control"\n ng-model="showTimers"\n type="checkbox"\n name="showTimers"\n switch-active="{{ timerSwitch.isActive }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ timerSwitch.onColor }}"\n switch-off-color="{{ timerSwitch.offColor }}"\n switch-animate="{{ timerSwitch.animate }}"\n switch-size="{{ timerSwitch.size }}"\n switch-label="{{ timerSwitch.label }}"\n switch-icon="{{ timerSwitch.icon }}"\n switch-radio-off="{{ timerSwitch.radioOff }}"\n switch-label-width="{{ timerSwitch.labelWidth }}"\n switch-handle-width="{{ timerSwitch.handleWidth }}"><b>|</b>\n </a>\n </li>\n </ul>\n </div>\n </nav>\n </div>\n\n <div ui-view></div>\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/openchannel/realtime/view/view.queue.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initAgents()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div id="grid1" ui-grid="gridOptions" ui-grid-resize-columns ui-grid-tree-view class="grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/realtime/view/agent/agent.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initAgents()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns class="ui-grid" ui-grid-pagination ui-grid-auto-resize>\n <span us-spinner spinner-key="grid-spinner" spinner-start-active="true"></span>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/realtime/view/agent/agent.modal.logout.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_AGENT_LOGOUT\' | translate }}</h3>\n</div>\n<div class="modal-body">\n {{\'MESSAGE_AGENT_LOGOUT\' | translate}} <b>{{agent}}</b> ?\n</div>\n<div class="modal-footer">\n <button class="btn red-intense" type="button" ng-click="logout()">{{ \'APPLICATION_LOGOUT\' | translate }}</button>\n <button class="btn default" type="button" data-ng-click="$dismiss()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/realtime/view/agent/queue.modal.add.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_JOIN_QUEUE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <div class="form-group row">\n <label class="col-md-2 control-label" style="margin-top: 7px;">{{\'APPLICATION_QUEUE\' | translate}}:</label>\n <div class="col-md-10">\n <ui-select multiple ng-model="item.queues" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_QUEUE\' | translate}}">{{$item.name}}</ui-select-match>\n <ui-select-choices repeat="queue.name as queue in queues | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n</div>\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/realtime/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-energy"></i>\n <a href="/channels/realtime/view/agents">{{ \'APPLICATION_OMNI_REALTIME\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <div>\n <nav class="navbar navbar-default" role="navigation">\n <div class="collapse navbar-collapse">\n <ul class="nav navbar-nav">\n <li data-ng-class="{\'active\': $state.is(\'main.channels.realtime.view.agents\')}">\n <a href="/channels/realtime/view/agents">\n {{\'APPLICATION_AGENTS\' | translate}}\n </a>\n </li>\n <li>\n <a href="#">\n <b>|{{\'APPLICATION_SHOW_TIMERS\' | translate}} </b><input\n bs-switch\n class="form-control"\n ng-model="showTimers"\n type="checkbox"\n name="showTimers"\n switch-active="{{ timerSwitch.isActive }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ timerSwitch.onColor }}"\n switch-off-color="{{ timerSwitch.offColor }}"\n switch-animate="{{ timerSwitch.animate }}"\n switch-size="{{ timerSwitch.size }}"\n switch-label="{{ timerSwitch.label }}"\n switch-icon="{{ timerSwitch.icon }}"\n switch-radio-off="{{ timerSwitch.radioOff }}"\n switch-label-width="{{ timerSwitch.labelWidth }}"\n switch-handle-width="{{ timerSwitch.handleWidth }}"><b>|</b>\n </a>\n </li>\n </ul>\n </div>\n </nav>\n </div>\n <div ui-view></div>\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/sms/account/list/list.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="glyphicon glyphicon-comment"></i>\n <a href="#">{{ \'APPLICATION_SMS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-notebook"></i>\n <a href="/channels/sms/accounts/list">{{ \'APPLICATION_ACCOUNTS\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACCOUNTS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group">\n <a class="btn btn-default" href="#" data-ng-click="gridOptions.getPage();">\n <i class="icon-reload"></i>\n </a>\n </div>\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="/channels/sms/accounts/wizard">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_ACCOUNT\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/sms/account/view/action/list/list.html",'<div class="row" data-ng-init="initActions()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_ACTIONS\' | translate}}</span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="/channels/sms/accounts/view/{{account.id}}/actions/wizard" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_ACTION\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/sms/account/view/action/view/view.html",'\n<div class="row" data-ng-init="initAction()">\n <div class="col-md-12">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-directions font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACTION\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <form name="forms.settings" ng-submit="updateItem()" novalidate>\n <!-- START APP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app.$touched || forms.settings.$submitted) && forms.settings.app.$invalid}">\n <label class="control-label">{{ \'APPLICATION_APPLICATION\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.app" name="app" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_APPLICATION\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="app.value as app in apps | filter: $select.search">\n <div ng-bind-html="app.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.app.$touched || forms.settings.$submitted) && forms.settings.app.$invalid && forms.settings.app.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END APP -->\n\n <div class="app-settings" ng-slide-down="application.app === \'queue\'" lazy-render duration="1" data-ng-init="getQueues()">\n <!-- START QUEUE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.queue.$touched || forms.settings.$submitted) && forms.settings.queue.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.SmsQueueId" name="queue" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="queue.id as queue in queues | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="queues.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_QUEUES_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/channels/sms/queues/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.settings.queue.$touched || forms.settings.$submitted) && forms.settings.queue.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n <span data-ng-show="(forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'agent\'" lazy-render duration="1" data-ng-init="getAgents()">\n <!-- START AGENT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.agent.$touched || forms.settings.$submitted) && forms.settings.agent.$invalid}">\n <label class="control-label">{{\'APPLICATION_AGENT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.UserId" name="agent" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.fullname}}</ui-select-match>\n <ui-select-choices repeat="agent.id as agent in agents | filter: $select.search">\n <div ng-bind-html="agent.fullname | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="agents.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_AGENTS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/staff/agents/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.settings.agent.$touched || forms.settings.$submitted) && forms.settings.agent.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END AGENT -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n <span data-ng-show="(forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'sendMail\'" lazy-render duration="1" data-ng-init="getMailAccounts();getTemplates()">\n <!-- START SENDMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.to.$touched || forms.settings.$submitted) && forms.settings.to.$invalid}">\n <label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="email" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2" min="1" required/>\n <span data-ng-show="(forms.settings.to.$touched || forms.settings.$submitted) && forms.settings.to.$invalid && forms.settings.to.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.account.$touched || forms.settings.$submitted) && forms.settings.account.$invalid}">\n <label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in mailAccounts | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.account.$touched || forms.settings.$submitted) && forms.settings.account.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.template.$touched || forms.settings.$submitted) && forms.settings.template.$invalid}">\n <label class="control-label">{{\'APPLICATION_TEMPLATE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data9" name="template" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n <div ng-bind-html="template.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.template.$touched || forms.settings.$submitted) && forms.settings.template.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SENDMAIL -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1" data-ng-init="getSmsAccounts()">\n <!-- START SENDSms -->\n <div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1">\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.to.$touched || forms.settings.$submitted) && forms.settings.to.$invalid}">\n <label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" ng-pattern="/^[\\+]?[0-9]+$/" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2" required/>\n <span data-ng-show="(forms.settings.to.$touched || forms.settings.$submitted) && forms.settings.to.$invalid && forms.settings.to.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.account.$touched || forms.settings.$submitted) && forms.settings.account.$invalid}">\n <label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in smsAccounts | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.account.$touched || forms.settings.$submitted) && forms.settings.account.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.text.$touched || forms.text.$submitted) && forms.settings.text.$invalid}">\n <label class="control-label">{{\'APPLICATION_TEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <textarea id="text" class="form-control maxlength-handler" maxlength="160" name="text" data-ng-model="application.data6" required></textarea>\n <span data-ng-show="(forms.settings.text.$touched || forms.settings.$submitted) && forms.settings.text.$invalid && forms.settings.text.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <!-- END SENDSms -->\n </div>\n <!-- START INTERVAL_TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.intType.$touched || forms.settings.$submitted) && forms.settings.intType.$invalid}">\n <label class="control-label">{{ \'APPLICATION_INTERVAL_TYPE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.intType" theme="bootstrap" name="intType" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="intType.value as intType in $application.intTypes | filter: $select.search">\n {{ intType.name | translate }}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.intType.$touched || forms.settings.$submitted) && forms.settings.intType.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVAL_TYPE -->\n\n <div class="app-settings" ng-slide-down="application.intType === \'custom\'" lazy-render duration="1">\n <!-- START TIME -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n <div class="input-group input-large">\n <fieldset class="pull-left" ng-disabled="application.alwaysTime">\n <uib-timepicker name="t_from" data-ng-model="application.t_from" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker>\n </fieldset>\n <div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n <fieldset ng-disabled="application.alwaysTime"><uib-timepicker name="t_to" data-ng-model="application.t_to" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker></fieldset>\n <!-- <label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="application.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label> -->\n </div>\n </div>\n <!-- END TIME -->\n\n <!-- START ALWAYS -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ALWAYS\' | translate }}</label>\n <div class="input-group input-large">\n <label class="control-label pointer-cursor">\n <input\n bs-switch\n data-ng-model="application.alwaysTime"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n <!-- <input type="checkbox" data-ng-model="application.alwaysTime"> -->\n </label>\n </div>\n </div>\n <!-- END ALWAYS -->\n\n <!-- START WEEKDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.wd_from" theme="bootstrap" name="wd_from">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{ weekDay.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.wd_to" theme="bootstrap" name="wd_to">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{ weekDay.name | translate }}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END WEEKDAY -->\n\n <!-- START MONTHDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.md_from" theme="bootstrap" name="md_from">\n <ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_to && application.md_to!==\'always\' && monthDay>application.md_to && monthDay!==\'always\'">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.md_to" theme="bootstrap" name="md_to">\n <ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_from && application.md_from!==\'always\' && monthDay<application.md_from && monthDay!==\'always\'">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTHDAY -->\n\n <!-- START MONTH -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.m_from" theme="bootstrap" name="m_from">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{ month.name | translate }}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.m_to" theme="bootstrap" name="m_to">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{ month.name | translate }}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTH -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.intType === \'list\'" lazy-render duration="1" data-ng-init="getIntervals()">\n\n <!-- START INTERVALS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.IntervalId.$touched || forms.settings.$submitted) && forms.settings.IntervalId.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERVALS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.IntervalId" theme="bootstrap" name="IntervalId" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="interval.id as interval in intervals | filter: $select.search">\n {{ interval.name}}\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="intervals.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_INTERVAL_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/intervals/list">{{\'APPLICATION_INTERVALS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.settings.IntervalId.$touched || forms.settings.$submitted) && forms.settings.IntervalId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVALS -->\n\n </div>\n <button class="btn green-haze" type="submit">{{\'APPLICATION_UPDATE\' | translate}}</button>\n </form>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'), -a.put("app/channels/sms/account/view/action/wizard/wizard.html",'\n<div class="row" data-ng-init="initWizard()">\n <div class="col-md-12">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-directions font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACTION\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_APPLICATION\' | translate}}" canexit="formValidation(forms.action.$valid)">\n <form name="forms.action" novalidate>\n <!-- START APP -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.action.$submitted && forms.action.app.$invalid}">\n <label class="control-label">{{ \'APPLICATION_APPLICATION\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.app" name="app" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_APPLICATION\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="app.value as app in apps | filter: $select.search">\n <div ng-bind-html="app.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.action.$submitted && forms.action.app.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END APP -->\n\n <div class="app-settings" ng-slide-down="application.app === \'agent\'" lazy-render duration="1" data-ng-init="getAgents()">\n <!-- START AGENT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.agent.$touched || forms.action.$submitted) && forms.action.agent.$invalid}">\n <label class="control-label">{{\'APPLICATION_AGENT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.UserId" name="agent" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.fullname}}</ui-select-match>\n <ui-select-choices repeat="agent.id as agent in agents | filter: $select.search">\n <div ng-bind-html="agent.fullname | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="agents.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_AGENTS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/staff/agents/list">{{\'APPLICATION_AGENTS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.action.agent.$touched || forms.action.$submitted) && forms.action.agent.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END AGENT -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n <span data-ng-show="(forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid && forms.action.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'queue\'" lazy-render duration="1" data-ng-init="getQueues()">\n <!-- START QUEUE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.queue.$touched || forms.action.$submitted) && forms.action.queue.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.SmsQueueId" name="queue" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="queue.id as queue in queues | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="queues.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_QUEUES_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/channels/sms/queues/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.action.queue.$touched || forms.action.$submitted) && forms.action.queue.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n <span data-ng-show="(forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid && forms.action.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.app === \'sendMail\'" lazy-render duration="1" data-ng-init="getMailAccounts();getTemplates()">\n <!-- START SENDMAIL -->\n <div class="app-settings" ng-slide-down="application.app === \'sendMail\'" lazy-render duration="1">\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.to.$touched || forms.action.$submitted) && forms.action.to.$invalid}">\n <label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="email" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2" required/>\n <span data-ng-show="(forms.action.to.$touched || forms.action.$submitted) && forms.action.to.$invalid && forms.action.to.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.mail.$touched || forms.action.$submitted) && forms.action.account.$invalid}">\n <label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in mailAccounts | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.template.$touched || forms.action.$submitted) && forms.action.template.$invalid}">\n <label class="control-label">{{\'APPLICATION_TEMPLATE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data9" name="template" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n <div ng-bind-html="template.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.template.$touched || forms.action.$submitted) && forms.action.template.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SENDMAIL -->\n </div>\n <div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1" data-ng-init="getSmsAccounts()">\n <!-- START SENDSms -->\n <div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1">\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.to.$touched || forms.action.$submitted) && forms.action.to.$invalid}">\n <label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" ng-pattern="/^[\\+]?[0-9]+$/" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2" required/>\n <span data-ng-show="(forms.action.to.$touched || forms.action.$submitted) && forms.action.to.$invalid && forms.action.to.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$invalid}">\n <label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in smsAccounts | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.text.$touched || forms.action.$submitted) && forms.action.text.$invalid}">\n <label class="control-label">{{\'APPLICATION_TEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <textarea id="text" class="form-control maxlength-handler" maxlength="160" name="text" data-ng-model="application.data6" required></textarea>\n <span data-ng-show="(forms.action.text.$touched || forms.action.$submitted) && forms.action.text.$invalid && forms.action.text.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n\n <!-- END SENDSms -->\n </div>\n <!-- START INTERVAL_TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.intType.$touched || forms.action.$submitted) && forms.action.intType.$invalid}">\n <label class="control-label">{{ \'APPLICATION_INTERVAL_TYPE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.intType" theme="bootstrap" name="intType" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="intType.value as intType in $application.intTypes | filter: $select.search">\n {{ intType.name | translate }}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.action.intType.$touched || forms.action.$submitted) && forms.action.intType.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVAL_TYPE -->\n\n <div class="app-settings" ng-slide-down="application.intType === \'custom\'" lazy-render duration="1">\n <!-- START TIME -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n <div class="input-group input-large">\n <fieldset class="pull-left" ng-disabled="application.alwaysTime">\n <uib-timepicker name="t_from" data-ng-model="application.t_from" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker>\n </fieldset>\n <div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n <fieldset ng-disabled="application.alwaysTime"><uib-timepicker name="t_to" data-ng-model="application.t_to" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker></fieldset>\n <!-- <label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="application.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label> -->\n </div>\n </div>\n <!-- END TIME -->\n\n <!-- START ALWAYS -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ALWAYS\' | translate }}</label>\n <div class="input-group input-large">\n <label class="control-label pointer-cursor">\n <input\n bs-switch\n data-ng-model="application.alwaysTime"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n <!-- <input type="checkbox" data-ng-model="application.alwaysTime"> -->\n </label>\n </div>\n </div>\n <!-- END ALWAYS -->\n\n <!-- START WEEKDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.wd_from" theme="bootstrap" name="wd_from">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{ weekDay.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.wd_to" theme="bootstrap" name="wd_to">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{ weekDay.name | translate }}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END WEEKDAY -->\n\n <!-- START MONTHDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.md_from" theme="bootstrap" name="md_from">\n <ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_to && application.md_to!==\'always\' && monthDay>application.md_to && monthDay!==\'always\'">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.md_to" theme="bootstrap" name="md_to">\n <ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_from && application.md_from!==\'always\' && monthDay<application.md_from && monthDay!==\'always\'">\n {{monthDay}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTHDAY -->\n\n <!-- START MONTH -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="application.m_from" theme="bootstrap" name="m_from">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{ month.name | translate }}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="application.m_to" theme="bootstrap" name="m_to">\n <ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{ month.name | translate }}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTH -->\n </div>\n\n <div class="app-settings" ng-slide-down="application.intType === \'list\'" lazy-render duration="1" data-ng-init="getIntervals()">\n\n <!-- START INTERVALS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.action.IntervalId.$touched || forms.action.$submitted) && forms.action.IntervalId.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERVALS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.IntervalId" theme="bootstrap" name="IntervalId" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="interval.id as interval in intervals | filter: $select.search">\n {{ interval.name}}\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="intervals.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_INTERVAL_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/intervals/list">{{\'APPLICATION_INTERVALS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.action.IntervalId.$touched || forms.action.$submitted) && forms.action.IntervalId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVALS -->\n\n </div>\n\n <input class="btn green-haze" type="submit" data-ng-click="next()" value="{{\'APPLICATION_CONTINUE\' | translate}}"/>\n </form>\n </wz-step>\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n <input class="btn green-haze" type="submit" data-ng-click="next()" value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/sms/account/view/api/view/view.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_API\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- CALLBACK TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <!-- START CALLBACK URL -->\n <div class="row" >\n <div class="col-md-12">\n <label class="control-label">Receive URL</label>\n <p>\n Copy the following url and insert it into your {{account.type}} account settings to receive SMS.\n <a href="https://wiki.xcallymotion.com/display/XMD/SMS" target="_blank">Detail</a>\n </p>\n </div>\n </div>\n <div class="row" >\n <div class="col-md-11">\n <code-mirror model="receiveurl"></code-mirror>\n </div>\n <div class="col-md-1">\n <a class="btn btn-sm green-jungle" data-ng-click="copyToClipboard(receiveurl);"><i class="fa fa-clipboard"></i>\n </a>\n </div>\n </div><br>\n <!-- END CALLACK URL -->\n <!-- START DELIVERY CALLBACK URL -->\n <div ng-if= "account.smstype == \'classic+\'" class="row" ng-show="!forms.info.remote.$invalid">\n <div class="col-md-12">\n <label class="control-label">Delivery URL </label>\n <p>\n Copy the following url and insert it into your {{account.type}} account settings to receive delivery report.\n <a href="https://wiki.xcallymotion.com/display/XMD/SMS" target="_blank">Detail</a>\n </p>\n </div>\n </div>\n <div ng-if= "account.smstype == \'classic+\'" class="row" ng-show="!forms.info.remote.$invalid">\n <div class="col-md-11">\n <code-mirror class="control-label" model="deliveryurl"></code-mirror>\n </div>\n <div class="col-md-1">\n <a class="btn btn-sm green-jungle" data-ng-click="copyToClipboard(deliveryurl);"><i class="fa fa-clipboard"></i>\n </a>\n </div>\n </div>\n <!-- END DELIVERY CALLACK URL -->\n </div>\n <!-- END CALLBACK TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/sms/account/view/disposition/modal/add.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_DISPOSITIONS\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.form.$touched || form.$submitted) && form.form.$invalid}">\n <div class="">\n <input type="text" name="form" placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}" class="form-control" data-ng-model="name" required/>\n <span data-ng-show="form.form.$touched && form.form.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <!-- END NAME -->\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" data-ng-click="ok()" data-ng-show="form.$valid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/sms/account/view/disposition/view/view.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_DISPOSITIONS\' | translate}}</span>\n </div>\n <div class="actions actions-md">\n <a href="#" class="btn btn-icon-only green" data-ng-click="addDisposition();">\n <i class="fa fa-plus"></i>\n </a>\n </div>\n </div>\n <div class="portlet-body" data-ng-init="initView()">\n <div class="tab-content">\n <div class="row" data-ng-hide="dispositions.length">\n <div class="col-md-12">\n <div class="note note-info">\n <h4 class="block">Info! {{\'MESSAGE_NO_DISPOSITIONS_AVAILABLE\' | translate}}</h4>\n </div>\n </div>\n </div>\n\n <!-- GENERAL TAB -->\n <div class="row" data-ng-repeat="disposition in dispositions">\n <div class="col-md-12 form-group">\n <div class="input-group">\n <div>\n <input class="form-control" type="text" placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}" data-ng-model="disposition.name">\n </div>\n <span class="input-group-btn">\n <button class="btn btn-success" type="button" data-ng-click="updateDisposition(disposition.id, disposition.name);"><i class="fa fa-cloud-upload fa-fw"></i> {{\'APPLICATION_UPDATE\' | translate}}</button>\n <button class="btn btn-danger" type="button" data-ng-click="deleteDisposition(disposition.id);"><i class="fa fa-times fa-fw"></i> {{\'APPLICATION_DELETE\' | translate}}</button>\n </span>\n </div>\n </div>\n </div>\n <!-- END GENERAL TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/sms/account/view/hooks/view/view.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_HOOKS\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_ACCEPT\' | translate}}</a>\n </li>\n <li >\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_REJECT\' | translate}}</a>\n </li>\n <li >\n <a href="#" data-target="#tab_1_3" data-toggle="tab">{{\'APPLICATION_CLOSE\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- ACCEPT TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.accept" data-ng-submit="forms.accept.$valid && updateItemSmsAccount()" novalidate>\n <!-- START ACCEPT URL -->\n <div class="row">\n <div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.accept.method.$touched || forms.accept.$submitted) && forms.accept.method.$invalid}">\n <label class="control-label">{{\'APPLICATION_METHOD\' | translate}}</label>\n <ui-select data-ng-model="account.acceptMethod" name="method" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected.name | uppercase}}</ui-select-match>\n <ui-select-choices repeat="type.value as type in types | filter: $select.search">\n <div ng-bind-html="type.name | highlight: $select.search | uppercase" ></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.accept.method.$touched || forms.accept.$submitted) && forms.accept.method.$invalid && forms.accept.method.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.accept.url.$touched || forms.accept.$submitted) && forms.accept.url.$invalid}">\n <label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n <input type="url" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="account.acceptUrl" ng-required="account.acceptMethod"/>\n <span data-ng-show="(forms.accept.url.$touched || forms.accept.$submitted) && forms.accept.url.$invalid && forms.accept.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <!-- END ACCEPT URL-->\n <!-- START ACTIONS-->\n <!-- START PAUSE -->\n <div class="row" ng-repeat = "action in account.actions">\n <div ng-switch="action.action">\n <div ng-switch-when="pause">\n <div class="form-group col-md-4">\n <label class="control-label">{{\'APPLICATION_PAUSE\' | translate}}</label></br>\n <input\n bs-switch\n data-ng-change="resetActionData(action)"\n data-ng-model="action.enabled"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </div>\n <div ng-if="action.enabled" class="form-group col-md-8">\n <label class="control-label">{{\'APPLICATION_TYPE\' | translate}}</label>\n <ui-select name="action" data-ng-model="action.type" theme="bootstrap" >\n <ui-select-match placeholder="{{\'APPLICATION_TYPE\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat=" pause.name as pause in pauses | filter: $select.search">\n <div ng-bind-html="pause.name | highlight: $select.search | uppercase" ></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n </div>\n </div>\n <!-- END ACTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ACCEPT TAB -->\n <!-- START REJECT TAB -->\n <div class="tab-pane" id="tab_1_2">\n <form name="forms.reject" data-ng-submit="forms.reject.$valid && updateItemSmsAccount()" novalidate>\n <!-- START REJECT URL -->\n <div class="row">\n <div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.reject.method.$touched || forms.reject.$submitted) && forms.reject.method.$invalid}">\n <label class="control-label">{{\'APPLICATION_METHOD\' | translate}}</label>\n <ui-select data-ng-model="account.rejectMethod" name="method" theme="bootstrap" >\n <ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected.name | uppercase}}</ui-select-match>\n <ui-select-choices repeat="type.value as type in types | filter: $select.search">\n <div ng-bind-html="type.name | highlight: $select.search | uppercase" ></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.reject.method.$touched || forms.reject.$submitted) && forms.reject.method.$invalid && forms.reject.method.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.reject.url.$touched || forms.reject.$submitted) && forms.reject.url.$invalid}">\n <label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n <input type="url" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="account.rejectUrl" ng-required="account.rejectMethod"/>\n <span data-ng-show="(forms.reject.url.$touched || forms.reject.$submitted) && forms.reject.url.$invalid && forms.reject.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n\n <!-- END REJECT URL -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END REJECT TAB -->\n <!-- START CLOSE TAB -->\n <div class="tab-pane" id="tab_1_3">\n <form name="forms.close" data-ng-submit="forms.close.$valid && updateItemSmsAccount()" novalidate>\n <div class="row">\n <div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.close.method.$touched || forms.close.$submitted) && forms.close.method.$invalid}">\n <label class="control-label">{{\'APPLICATION_METHOD\' | translate}}</label>\n <ui-select data-ng-model="account.closeMethod" name="method" theme="bootstrap" >\n <ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected.name | uppercase}}</ui-select-match>\n <ui-select-choices repeat="type.value as type in types | filter: $select.search">\n <div ng-bind-html="type.name | highlight: $select.search | uppercase" ></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.close.method.$touched || forms.close.$submitted) && forms.close.method.$invalid && forms.close.method.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.close.url.$touched || forms.close.$submitted) && forms.close.url.$invalid}">\n <label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n <input type="url" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="account.closeUrl" ng-required="account.closeMethod"/>\n <span data-ng-show="(forms.close.url.$touched || forms.close.$submitted) && forms.close.url.$invalid && forms.close.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END CLOSE TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'), -a.put("app/channels/sms/account/view/setting/view/view.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERALS\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.info" data-ng-submit="forms.info.$valid && updateItemSmsAccount()" novalidate>\n <!-- START ID -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_ID\' | translate}}<span class="required" aria-required="true">*</span>\n </label>\n <input type="text" name="id" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.id" ng-disabled="true" required/>\n </div>\n <!-- END ID-->\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.name" required/>\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid && forms.info.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n <!-- START LIST -->\n <div class="form-group" data-ng-if="license.cm">\n <label class="control-label">{{\'APPLICATION_LIST\' | translate}}</label>\n <div class="input-group">\n\n <ui-select data-ng-model="account.ListId" name="list" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_LIST\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="list.id as list in lists | filter: $select.search">\n <div ng-bind-html="list.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n\n <span class="input-group-btn">\n <button type="button" data-ng-click="account.ListId = null" class="btn btn-default">\n <span class="glyphicon glyphicon-trash"></span>\n </button>\n </span>\n\n </div>\n </div>\n <!-- END LIST -->\n <!-- START FIDELITY -->\n <!-- <div class="form-group">\n <label class="control-label">{{\'APPLICATION_FIDELITY\' | translate}}</label></br>\n <input\n bs-switch\n data-ng-model="account.fidelity"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </div> -->\n <!-- END FIDELITY -->\n\n <!-- START TIMEOUT -->\n <!-- <div class="form-group" data-ng-if="account.fidelity" data-ng-class="{\'has-error\': (forms.info.timeout.$touched || forms.info.$submitted) && forms.info.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="0" name="timeout" placeholder="{{\'APPLICATION_PORT\' | translate}}" class="form-control" data-ng-model="account.timeout" required/>\n <span data-ng-show="(forms.info.timeout.$touched || forms.info.$submitted) && forms.info.timeout.$invalid && forms.info.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.timeout.$touched || forms.info.$submitted) && forms.info.timeout.$invalid && forms.info.timeout.$error.number" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n </span>\n </div> -->\n <!-- END TIMEOUT -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="account.description"/>\n </div>\n <!-- END DESCRIPTION -->\n <!-- START TWILIO -->\n <!-- START PHONE -->\n <div ng-if= "account.type == \'twilio\'" class="form-group" data-ng-class="{\'has-error\': ( forms.info.phone.$touched ||forms.info.$submitted) && forms.info.phone.$invalid}">\n <label class="control-label">{{\'APPLICATION_PHONE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" ng-pattern="/^[\\+]?[0-9]+$/" placeholder="{{\'APPLICATION_PHONE\' | translate}}" class="form-control" data-ng-model="account.phone" name="phone" required/>\n <span data-ng-show="(forms.info.phone.$touched || forms.in.$submitted) && forms.info.phone.$invalid && forms.info.phone.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PHONE -->\n\n <!-- START SID -->\n <div ng-if= "account.type == \'twilio\'" class="form-group" data-ng-class="{\'has-error\': (forms.info.sid.$touched || forms.info.$submitted) && forms.info.sid.$invalid}">\n <label class="control-label">{{\'APPLICATION_SID\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="sid" placeholder="{{\'APPLICATION_SID\' | translate}}" class="form-control" data-ng-model="account.sid" name="sid" required/>\n <span data-ng-show="(forms.info.sid.$touched || forms.info.$submitted) && forms.info.sid.$invalid && forms.info.sid.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SID -->\n <!-- START TOKEN -->\n <div ng-if= "account.type == \'twilio\'" class="form-group" data-ng-class="{\'has-error\': (forms.info.token.$touched || forms.info.$submitted) && forms.info.token.$invalid}">\n <label class="control-label">{{\'APPLICATION_TOKEN\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="token" placeholder="{{\'APPLICATION_TOKEN\' | translate}}" class="form-control" data-ng-model="account.token" name="token" required/>\n <span data-ng-show="(forms.info.token.$touched || forms.info.$submitted) && forms.info.token.$invalid && forms.info.token.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SID -->\n <!-- END TWILIO -->\n <!-- START SKEBBY -->\n <!-- START SKEBBY SMS TYPE -->\n <div ng-if= " account.type == \'skebby\'" class="form-group" data-ng-class="{\'has-error\': (forms.info.smstype.$touched || forms.info.$submitted) && forms.info.smstype.$invalid}">\n <label class="control-label">{{\'APPLICATION_SMS_TYPE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="account.smstype" name="smstype" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'SMS_TYPE\' | translate}}">{{$select.selected | uppercase}}</ui-select-match>\n <ui-select-choices repeat="smstype in [\'basic\',\'classic\',\'classic+\'] | filter: $select.search">\n <div data-ng-bind="smstype | highlight: $select.search | uppercase" ></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.info.smstype.$touched || forms.info.$submitted) && forms.info.smstype.$invalid && forms.info.smstype.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SKEBBY SMS TYPE -->\n <!-- START PHONE -->\n <div ng-if= "account.type == \'skebby\' " class="form-group" data-ng-class="{\'has-error\': ( forms.info.phone.$touched ||forms.info.$submitted) && forms.info.phone.$invalid}">\n <label class="control-label">{{\'APPLICATION_PHONE\' | translate}}<span class="required" aria-required="true"></span></label>\n <input type="text" ng-pattern="/^[0-9]+$/" placeholder="{{\'APPLICATION_PHONE\' | translate}}" class="form-control" data-ng-model="account.phone" name="phone" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_PHONE_NUMBER\' | translate }}\n </span>\n <span data-ng-show="(forms.info.phone.$touched || forms.in.$submitted) && forms.info.phone.$invalid && forms.info.phone.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PHONE -->\n <!-- START USERNAME -->\n <div ng-if= "account.type == \'skebby\'" class="form-group" data-ng-class="{\'has-error\': (forms.info.username.$touched || forms.info.$submitted) && forms.info.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="account.username" name="username" required/>\n <span data-ng-show="(forms.info.username.$touched || forms.info.$submitted) && forms.info.username.$invalid && forms.info.username.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START PASSWORD -->\n <div ng-if= "account.type == \'skebby\'" class="form-group" data-ng-class="{\'has-error\': (forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="account.password" required/>\n <span data-ng-show="(forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$invalid && forms.info.password.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n <!-- END SKEBBY -->\n <!-- START REMOTE IP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.remote.$touched || forms.info.$submitted) && forms.info.remote.$invalid}">\n <label class="control-label">{{\'APPLICATION_MOTION_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="remote" placeholder="{{\'APPLICATION_MOTION_ADDRESS\' | translate}}" class="form-control" data-ng-model="account.remote" required/>\n <span class="help-block help-block-info">\n {{\'MESSAGE_MOTION_ADDRESS_FORMAT\' | translate}}\n </span>\n <span data-ng-show="(forms.info.remote.$touched || forms.info.$submitted) && forms.info.remote.$invalid && forms.info.remote.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END REMOTE IP -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/sms/account/view/view.html",'<!-- BEGIN PAGE HEADER-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="glyphicon glyphicon-comment"></i>\n <a href="#">{{ \'APPLICATION_SMS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-notebook"></i>\n <a href="/channels/sms/accounts/list">{{ \'APPLICATION_ACCOUNTS\' | translate }}</a>\n <i class="fa fa-angle-right" data-ng-show="account"></i>\n </li>\n <li data-ng-show="account">\n <a href="#">{{ account.description || account.name }}</a>\n </li>\n </ul>\n </div>\n\n<!-- END PAGE HEADER-->\n\n<!-- BEGIN PAGE CONTENT-->\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET main.channels -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img ng-src="assets/images/media/account.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{ account.description || account.name }}\n </div>\n <div class="profile-usertitle-job">\n {{account.email}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li ng-class="{active: $state.is(\'main.channels.sms.accounts.view.settings\')}">\n <a href="/channels/sms/accounts/view/{{account.id}}/settings">\n <i class="icon-settings"></i>\n {{\'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n <li ng-class="{active: $state.is(\'main.channels.sms.accounts.view.api\')}">\n <a href="/channels/sms/accounts/view/{{account.id}}/api">\n <i class="fa fa-external-link"></i>\n {{\'APPLICATION_API\' | translate}} </a>\n </li>\n <li ng-class="{active: $state.is(\'main.channels.sms.accounts.view.hooks\')}">\n <a href="/channels/sms/accounts/view/{{account.id}}/hooks">\n <i class="fa fa-code"></i>\n {{\'APPLICATION_HOOKS\' | translate}} </a>\n </li>\n <li ng-class="{active: $state.is(\'main.channels.sms.accounts.view.dispositions\')}">\n <a href="/channels/sms/accounts/view/{{account.id}}/dispositions">\n <i class="icon-target"></i>\n {{\'APPLICATION_DISPOSITIONS\' | translate}} </a>\n </li>\n <li ng-class="{active: $state.includes(\'main.channels.sms.accounts.view.actions\')}">\n <a href="/channels/sms/accounts/view/{{account.id}}/actions/list">\n <i class="icon-directions"></i>\n {{\'APPLICATION_ACTIONS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <div ui-view class="profile-content"></div>\n <!-- END PROFILE CONTENT -->\n </div>\n<!-- END PAGE CONTENT-->\n</div>\n'),a.put("app/channels/sms/account/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERALS\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.info" data-ng-submit="forms.info.$valid && updateItemSmsAccount()" novalidate>\n <!-- START ID -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_ID\' | translate}}<span class="required" aria-required="true">*</span>\n </label>\n <input type="text" name="id" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.id" ng-disabled="true" required/>\n </div>\n <!-- END ID-->\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.name" required/>\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid && forms.info.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n <!-- START LIST -->\n <div class="form-group" data-ng-if="license.cm">\n <label class="control-label">{{\'APPLICATION_LIST\' | translate}}</label>\n <div class="input-group">\n\n <ui-select data-ng-model="account.ListId" name="list" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_LIST\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="list.id as list in lists | filter: $select.search">\n <div ng-bind-html="list.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n\n <span class="input-group-btn">\n <button type="button" data-ng-click="account.ListId = null" class="btn btn-default">\n <span class="glyphicon glyphicon-trash"></span>\n </button>\n </span>\n\n </div>\n </div>\n <!-- END LIST -->\n\n\n <!-- START FIDELITY -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_FIDELITY\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n data-ng-model="account.fidelity"\n type="checkbox"\n name="auth"\n switch-active="{{ recordSwitch.isActive }}"\n switch-on-text="{{ recordSwitch.onText }}"\n switch-off-text="{{ recordSwitch.offText }}"\n switch-on-color="{{ recordSwitch.onColor }}"\n switch-off-color="{{ recordSwitch.offColor }}"\n switch-animate="{{ recordSwitch.animate }}"\n switch-size="{{ recordSwitch.size }}"\n switch-label="{{ recordSwitch.label }}"\n switch-icon="{{ recordSwitch.icon }}"\n switch-radio-off="{{ recordSwitch.radioOff }}"\n switch-label-width="{{ recordSwitch.labelWidth }}"\n switch-handle-width="{{ recordSwitch.handleWidth }}">\n </div>\n <!-- END FIDELITY -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-if="account.fidelity" data-ng-class="{\'has-error\': (forms.info.timeout.$touched || forms.info.$submitted) && forms.info.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="0" name="timeout" placeholder="{{\'APPLICATION_PORT\' | translate}}" class="form-control" data-ng-model="account.timeout" required/>\n <span data-ng-show="(forms.info.timeout.$touched || forms.info.$submitted) && forms.info.timeout.$invalid && forms.info.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.timeout.$touched || forms.info.$submitted) && forms.info.timeout.$invalid && forms.info.timeout.$error.number" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="account.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START PHONE FOR TWILLIO ACCOUNT -->\n\n <div ng-if= "account.type == \'twilio\'" class="form-group" data-ng-class="{\'has-error\': ( forms.info.phone.$touched ||forms.info.$submitted) && forms.info.phone.$invalid}">\n <label class="control-label">{{\'APPLICATION_PHONE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" ng-pattern="/^[\\+]?[0-9]+$/" placeholder="{{\'APPLICATION_PHONE\' | translate}}" class="form-control" data-ng-model="account.phone" name="phone" required/>\n<!-- Format with a \'+\' and country code -->\n <!-- <span class="help-block">\n {{ \'DESCRIPTION_PHONE_NUMBER\' | translate }}\n </span> -->\n <span data-ng-show="(forms.info.phone.$touched || forms.in.$submitted) && forms.info.phone.$invalid && forms.info.phone.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PHONE FOR TWILLIO ACCOUNT -->\n\n <!-- START SID -->\n <div ng-if= "account.type == \'twilio\'" class="form-group" data-ng-class="{\'has-error\': (forms.info.sid.$touched || forms.info.$submitted) && forms.info.sid.$invalid}">\n <label class="control-label">{{\'APPLICATION_SID\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="sid" placeholder="{{\'APPLICATION_SID\' | translate}}" class="form-control" data-ng-model="account.sid" name="sid" required/>\n <span data-ng-show="(forms.info.sid.$touched || forms.info.$submitted) && forms.info.sid.$invalid && forms.info.sid.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SID -->\n <!-- START TOKEN -->\n <div ng-if= "account.type == \'twilio\'" class="form-group" data-ng-class="{\'has-error\': (forms.info.token.$touched || forms.info.$submitted) && forms.info.token.$invalid}">\n <label class="control-label">{{\'APPLICATION_TOKEN\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="token" placeholder="{{\'APPLICATION_TOKEN\' | translate}}" class="form-control" data-ng-model="account.token" name="token" required/>\n <span data-ng-show="(forms.info.token.$touched || forms.info.$submitted) && forms.info.token.$invalid && forms.info.token.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SID -->\n\n <!-- START SMS TYPE -->\n\n <div ng-if= " account.type == \'skebby\'" class="form-group" data-ng-class="{\'has-error\': (forms.info.smstype.$touched || forms.info.$submitted) && forms.info.smstype.$invalid}">\n <label class="control-label">{{\'APPLICATION_SMS_TYPE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="account.smstype" name="smstype" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'SMS_TYPE\' | translate}}">{{$select.selected | uppercase}}</ui-select-match>\n <ui-select-choices repeat="smstype in [\'basic\',\'classic\',\'classic+\'] | filter: $select.search">\n <div data-ng-bind="smstype | highlight: $select.search | uppercase" ></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.info.smstype.$touched || forms.info.$submitted) && forms.info.smstype.$invalid && forms.info.smstype.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TYPE -->\n <!-- START PHONE FOR SKEBBY ACCOUNT -->\n <div ng-if= "account.type == \'skebby\' " class="form-group" data-ng-class="{\'has-error\': ( forms.info.phone.$touched ||forms.info.$submitted) && forms.info.phone.$invalid}">\n <label class="control-label">{{\'APPLICATION_PHONE\' | translate}}<span class="required" aria-required="true"></span></label>\n <input type="text" ng-pattern="/^[0-9]+$/" placeholder="{{\'APPLICATION_PHONE\' | translate}}" class="form-control" data-ng-model="account.phone" name="phone" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_PHONE_NUMBER\' | translate }}\n </span>\n <span data-ng-show="(forms.info.phone.$touched || forms.in.$submitted) && forms.info.phone.$invalid && forms.info.phone.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PHONE -->\n <!-- START USERNAME -->\n <div ng-if= "account.type == \'skebby\'" class="form-group" data-ng-class="{\'has-error\': (forms.info.username.$touched || forms.info.$submitted) && forms.info.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="account.username" name="username" required/>\n <span data-ng-show="(forms.info.username.$touched || forms.info.$submitted) && forms.info.username.$invalid && forms.info.username.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START PASSWORD -->\n <div ng-if= "account.type == \'skebby\'" class="form-group" data-ng-class="{\'has-error\': (forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="account.password" required/>\n <span data-ng-show="(forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$invalid && forms.info.password.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n <!-- START REMOTE IP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.remote.$touched || forms.info.$submitted) && forms.info.remote.$invalid}">\n <label class="control-label">{{\'APPLICATION_MOTION_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="remote" placeholder="{{\'APPLICATION_MOTION_ADDRESS\' | translate}}" class="form-control" data-ng-model="account.remote" required/>\n <span data-ng-show="(forms.info.remote.$touched || forms.info.$submitted) && forms.info.remote.$invalid && forms.info.remote.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END REMOTE IP -->\n <!-- START CALLBACK URL -->\n <div ng-show="!forms.info.remote.$invalid" class="row" >\n <!-- <div class="row"> -->\n <div class="col-md-12">\n <label class="control-label">URL </label><br>\n <span ng-if= "account.type == \'twilio\' || account.type == \'skebby\'">\n Copy the following url and insert it into your {{account.type}} account settings to receive sms.\n <a href="https://wiki.xcallymotion.com/display/XMD/SMS" target="_blank">Detail</a>\n </span>\n </div>\n </div>\n <br>\n <div ng-show="!forms.info.remote.$invalid" class="row" >\n <div class="col-md-11">\n <code-mirror model="receiveurl"></code-mirror>\n </div>\n <div class="col-md-1">\n <a class="btn btn-sm green-jungle" data-ng-click="copyToClipboard(receiveurl);"><i class="fa fa-clipboard"></i>\n </a>\n </div>\n </div>\n <!-- END CALLACK URL -->\n <!-- START DELIVERY CALLBACK URL -->\n <div ng-if= "account.smstype == \'classic+\'" class="row" ng-show="!forms.info.remote.$invalid">\n <div class="col-md-12">\n <label class="control-label">Delivery URL </label><br>\n Copy the following url and insert it into your {{account.type}} account settings to receive delivery status.\n <a href="https://wiki.xcallymotion.com/display/XMD/SMS" target="_blank">Detail</a>\n </div>\n </div>\n <br>\n <div ng-if= "account.smstype == \'classic+\'" class="row" ng-show="!forms.info.remote.$invalid">\n <div class="col-md-11">\n <code-mirror class="control-label" model="deliveryurl"></code-mirror>\n </div>\n <div class="col-md-1">\n <a class="btn btn-sm green-jungle" data-ng-click="copyToClipboard(deliveryurl);"><i class="fa fa-clipboard"></i>\n </a>\n </div>\n </div>\n <!-- END DELIVERY CALLACK URL -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'), -a.put("app/channels/sms/account/wizard/wizard.html",'\n<div class="row" data-ng-init="initWizard()">\n <div class="col-md-12">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="glyphicon glyphicon-comment"></i>\n <a href="#">{{ \'APPLICATION_SMS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-notebook"></i>\n <a href="/channels/sms/accounts/list">{{ \'APPLICATION_ACCOUNTS\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACCOUNT\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_ACCOUNT_INFO\' | translate}}" canexit="formValidation(forms.info.$valid)">\n <form name="forms.info" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid && forms.info.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n </div>\n <!-- END DESCRIPTION -->\n <!-- START APPLICATION TYPE -->\n\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.type.$touched || forms.info.$submitted) && forms.info.type.$invalid}">\n <label class="control-label">{{\'APPLICATION_TYPE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.type" name="type" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_TYPE\' | translate}}">{{$select.selected | uppercase}}</ui-select-match>\n <ui-select-choices repeat="type in [\'twilio\',\'skebby\'] | filter: $select.search">\n <div data-ng-bind="type | highlight: $select.search | uppercase" ></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.info.type.$touched || forms.info.$submitted) && forms.info.type.$invalid && forms.info.type.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TYPE -->\n <!-- START PHONE FOR TWILLIO ACCOUNT -->\n <div ng-if= "item.type == \'twilio\'" class="form-group" data-ng-class="{\'has-error\': ( forms.info.phone.$touched ||forms.info.$submitted) && forms.info.phone.$invalid}">\n <label class="control-label">{{\'APPLICATION_PHONE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" ng-pattern="/^[\\+]?[0-9]+$/" placeholder="{{\'APPLICATION_PHONE\' | translate}}" class="form-control" data-ng-model="item.phone" name="phone" required/>\n <span data-ng-show="(forms.info.phone.$touched || forms.info.$submitted) && forms.info.phone.$invalid && forms.info.phone.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PHONE FOR TWILLIO ACCOUNT -->\n <!-- START SID -->\n <div ng-if= "item.type == \'twilio\'" class="form-group" data-ng-class="{\'has-error\': ( forms.info.sid.$touched ||forms.info.$submitted) && forms.info.sid.$invalid}">\n <label class="control-label">{{\'APPLICATION_SID\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" placeholder="{{\'APPLICATION_SID\' | translate}}" class="form-control" data-ng-model="item.sid" name="sid" required/>\n <span data-ng-show="(forms.info.sid.$touched || forms.info.$submitted) && forms.info.sid.$invalid && forms.info.sid.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SID -->\n <!-- START TOKEN -->\n <div ng-if= "item.type == \'twilio\'" class="form-group" data-ng-class="{\'has-error\': (forms.info.token.$touched || forms.info.$submitted) && forms.info.token.$invalid}">\n <label class="control-label">{{\'APPLICATION_TOKEN\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" placeholder="{{\'APPLICATION_TOKEN\' | translate}}" class="form-control" data-ng-model="item.token" name="token" required/>\n <span data-ng-show="(forms.info.token.$touched || forms.info.$submitted) && forms.info.token.$invalid && forms.info.token.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SID -->\n\n <!-- START SMS TYPE -->\n <div ng-if= " item.type == \'skebby\'" class="form-group" data-ng-class="{\'has-error\': (forms.info.smstype.$touched || forms.info.$submitted) && forms.info.smstype.$invalid}">\n <label class="control-label">{{\'APPLICATION_SMS_TYPE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.smstype" name="smstype" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'SMS_TYPE\' | translate}}">{{$select.selected | uppercase}}</ui-select-match>\n <ui-select-choices repeat="smstype in [\'basic\',\'classic\',\'classic+\'] | filter: $select.search">\n <div data-ng-bind="smstype | highlight: $select.search | uppercase" ></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.info.smstype.$touched || forms.info.$submitted) && forms.info.smstype.$invalid && forms.info.smstype.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TYPE -->\n <!-- START PHONE FOR SKEBBY ACCOUNT -->\n <div ng-if= "item.type == \'skebby\' " class="form-group" data-ng-class="{\'has-error\': ( forms.info.phone.$touched ||forms.info.$submitted) && forms.info.phone.$invalid}">\n <label class="control-label">{{\'APPLICATION_PHONE\' | translate}}<span class="required" aria-required="true"></span></label>\n <input type="text" ng-pattern="/^[0-9]+$/" placeholder="{{\'APPLICATION_PHONE\' | translate}}" class="form-control" data-ng-model="item.phone" name="phone" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_PHONE_NUMBER\' | translate }}\n </span>\n <span data-ng-show="(forms.info.phone.$touched || forms.info.$submitted) && forms.info.phone.$invalid && forms.info.phone.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PHONE -->\n <!-- START USERNAME -->\n <div ng-if= "item.type == \'skebby\'" class="form-group" data-ng-class="{\'has-error\': (forms.info.username.$touched || forms.info.$submitted) && forms.info.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="item.username" name="username" required/>\n <span data-ng-show="(forms.info.username.$touched || forms.info.$submitted) && forms.info.username.$invalid && forms.info.username.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n <!-- START PASSWORD -->\n <div ng-if= "item.type == \'skebby\'" class="form-group" data-ng-class="{\'has-error\': (forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.password" required/>\n <span data-ng-show="(forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$invalid && forms.info.password.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n <!-- START REMOTE IP -->\n <div ng-if= "item.type" class="form-group" data-ng-class="{\'has-error\': (forms.info.remote.$touched || forms.info.$submitted) && forms.info.remote.$invalid}">\n <label class="control-label">{{\'APPLICATION_MOTION_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="remote" placeholder="{{\'APPLICATION_MOTION_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.remote" required/>\n <span class="help-block help-block-info">\n {{\'MESSAGE_MOTION_ADDRESS_FORMAT\' | translate}}\n </span>\n <span data-ng-show="(forms.info.remote.$touched || forms.info.$submitted) && forms.info.remote.$invalid && forms.info.remote.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END REMOTE IP -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" data-ng-click="goNext()"/>\n </form>\n </wz-step>\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/sms/inbox/room/room.directive.html",'<!-- BEGIN TODO CONTENT -->\n\n<div class="todo-content">\n <div class="portlet light">\n <div class="portlet-title">\n <div class="caption">\n <button class="btn btn-sm btn-default green-meadow" data-ng-if="SmsRoom.status !== \'CLOSED\'" data-ng-disabled="!form.body || forms.compose.from.$invalid || forms.compose.to.$invalid" data-ng-click="sendSMS()">\n <i class="icon-paper-plane" style="color: white;"></i> {{\'APPLICATION_SEND\' | translate}}\n </button>\n <span data-ng-show="SmsRoom && SmsRoom.status !== \'CLOSED\'"> | </span>\n <span data-ng-show="SmsRoom" class="label label-default">#{{SmsRoom.id}} {{SmsRoom.status}}</span>\n <span data-ng-if="SmsRoom && SmsRoom.ParentId"> | </span>\n <span data-ng-if="SmsRoom && SmsRoom.ParentId" class="label label-warning"> Ref: <a data-ng-click="openRoom(SmsRoom.ParentId,SmsRoom.contact)">#{{SmsRoom.ParentId}}</a></span>\n </div>\n <div class="actions" data-ng-switch="SmsRoom.status">\n <button class="btn btn-icon-only" data-ng-show="SmsRoom" data-ng-class="{\'btn-success\':SmsRoom.status !== \'CLOSED\',\'grey-cascade\':SmsRoom.status === \'CLOSED\'}" data-ng-click="closeRoom(SmsRoom.id)" data-ng-disabled="SmsRoom.status === \'CLOSED\' && SmsRoom.disposition">\n <i data-ng-class="{\'fa fa-upload\':SmsRoom.status !== \'CLOSED\',\'icon-target\':SmsRoom.status === \'CLOSED\'}"></i>\n </button>\n <button class="btn default btn-icon-only" data-ng-if="SmsRoom && SmsRoom.status !== \'CLOSED\'" type="button" data-ng-click="togglePanelLeft()" title="{{\'APPLICATION_RESIZE\' | translate}}">\n <i ng-class="panelRight == \'col-md-12\' ? \'icon-size-actual\' : \'icon-size-fullscreen\'"></i>\n </button>\n </div>\n </div>\n <div class="portlet-body">\n <div class="row">\n <div data-ng-show="panelLeft" data-ng-class="panelLeft">\n <div class="form">\n <!-- START TAGS -->\n <div class="form-group" data-ng-if="SmsRoom.status !== \'CLOSED\' || (SmsRoom.status == \'CLOSED\' && form.tags.length)">\n <div class="row">\n <div class="col-md-1">\n <a href="#" class="btn btn-icon-only">\n <i class="fa fa-tags" style="color: gray;"></i>\n </a>\n </div>\n <div class="col-md-11">\n <ui-select data-ng-disabled="SmsRoom.status == \'CLOSED\'" multiple data-ng-model="form.tags" theme="bootstrap" on-select="onChanged($item, $model)" on-remove="onChanged($item, $model)">\n <ui-select-match placeholder="Tags...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="tag in tags | filter:$select.search" class="">\n {{tag}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n </div>\n <!-- END TAGS -->\n </div>\n <hr data-ng-if="SmsRoom && SmsRoom.status !== \'CLOSED\'">\n\n <div ng-scrollbars ng-scrollbars-config="{\n autoHideScrollbar: false,\n theme: \'light\',\n advanced: {\n updateOnContentResize: true\n },\n setHeight: 781,\n scrollInertia: 0\n }">\n <ul class="chats">\n <li data-ng-switch="SmsRoom.status" data-ng-class="{\'in\': smsMessage.status == \'RECEIVED\', \'out\': smsMessage.status == \'SENT\' || smsMessage.status == \'SENDING\' || smsMessage.status == \'FAILED\' || smsMessage.status == \'NOTE\' || smsMessage.status == \'DELIVERED\' || smsMessage.status == \'QUEUED\' || smsMessage.status != \'RECEIVED\' }" data-ng-repeat="smsMessage in SmsRoom.SmsMessages | orderBy:\'-createdAt\'">\n <div class="avatar" data-ng-class="smsMessage.UserId ? \'pretty-avatar\' : \'pretty-avatar-v\'">\n <ng-letter-avatar\n data-ng-if="smsMessage.UserId"\n height="40"\n width="40"\n fontsize="25"\n data="{{smsMessage.User.fullname}}"\n avatarcustombgcolor="#B0B0B0"\n avatarcustomborder="border:2px solid #3399CC"\n charCount="2"\n shape="round"></ng-letter-avatar>\n <ng-letter-avatar\n data-ng-if="!smsMessage.UserId"\n height="40"\n width="40"\n fontsize="25"\n data="{{smsMessage.from}}"\n avatarcustombgcolor="#B0B0B0"\n avatarcustomborder="border:2px solid #EA4C61"\n charCount="1"\n shape="round"></ng-letter-avatar>\n </div>\n <sms message="smsMessage" list-id="SmsRoom.SmsAccount.ListId" accounttype=\'SmsRoom.SmsAccount.type\' ng-switch-default></sms>\n </li>\n </ul>\n </div>\n </div>\n <div data-ng-class="panelRight">\n <div class="note note-info" data-ng-if="SmsRoom && SmsRoom.status == \'CLOSED\'">\n <h4 class="block">Info! {{\'MESSAGE_SMS_ROOM_CLOSED\' | translate}}</h4>\n <p>\n {{\'MESSAGE_SMS_ROOM_CLOSED_DETAILS\' | translate}}.\n </p>\n <hr>\n <p>\n <i class="icon-target"></i> {{\'APPLICATION_DISPOSITION\' | translate}}: <strong>{{SmsRoom.disposition}}</strong>\n </p>\n <p>\n <i class="icon-calendar"></i> {{\'APPLICATION_UPDATED_AT\' | translate}}: <strong>{{SmsRoom.updatedAt | date:\'medium\'}}</strong> (<span am-time-ago="SmsRoom.updatedAt"></span>)\n </p>\n </div>\n <form name="forms.compose" data-ng-submit="forms.compose.$valid && sendSMS()" class="form-horizontal" novalidate>\n <!-- START HEAD -->\n <div class="form">\n\n <!-- START FROM -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.compose.from.$invalid && forms.compose.$submitted}" data-ng-if="SmsRoom.status !== \'CLOSED\'">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-1">\n <label class="control-label">From:</label>\n </div>\n <div class="col-md-11">\n <ui-select data-ng-disabled="SmsRoom" theme="bootstrap" name="from" data-ng-model="form.from" required>\n <ui-select-match placeholder="From...">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="smsAccount.phone as smsAccount in smsAccounts | filter: $select.search">\n <div data-ng-bind-html="smsAccount.name | highlight: $select.search"></div>\n <small data-ng-bind-html="smsAccount.phone | highlight: $select.search"></small>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.compose.from.$invalid && forms.compose.$submitted " class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n </div>\n <!-- END FROM -->\n <!-- START TO -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.compose.to.$invalid && forms.compose.$submitted}" data-ng-if="SmsRoom.status !== \'CLOSED\'">\n\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-1">\n <label class="control-label">To:</label>\n </div>\n <div class="col-md-11">\n <input type="text" ng-pattern="/^[\\+]?[0-9]+$/" name="to" class="form-control todo-taskbody-taskdesc" placeholder="To..." rows="8" data-ng-disabled="SmsRoom" data-ng-model="form.to" required>\n <span data-ng-show="forms.compose.to.$invalid && forms.compose.$submitted " class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n </div>\n <!-- END TO -->\n <!-- START CANNED -->\n <div class="form-group" data-ng-if="SmsRoom.status !== \'CLOSED\'">\n <div class="row">\n <div class="col-md-1">\n <a href="#" class="btn btn-icon-only">\n <i class="fa fa-magic" style="color: gray;"></i>\n </a>\n </div>\n <div class="col-md-11">\n <input type="text"\n data-ng-model="modelOptions.selectedAnswer"\n uib-typeahead="key for key in getAnswers($viewValue)"\n placeholder="Canned answers.."\n typeahead-loading="loadingLocations"\n typeahead-no-results="noResults"\n typeahead-on-select="onSelect($item)"\n class="form-control">\n <i ng-show="loadingLocations" class="glyphicon glyphicon-refresh"></i>\n <div ng-show="noResults">\n <i class="glyphicon glyphicon-remove"></i> No Results Found\n </div>\n </div>\n </div>\n\n </div>\n <!-- END CANNED -->\n <!-- START message -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.compose.body.$invalid && forms.compose.$submitted}" data-ng-if="SmsRoom.status !== \'CLOSED\'">\n <div class="col-md-12">\n <textarea id="text" class="form-control maxlength-handler" rows="8" maxlength="160" name="body" data-ng-model="form.body" ></textarea>\n <button id="btnPost" type="button" class="btn btn-success pull-right" ng-class="{\'btn-warning\': form.body.length >= 120, \'btn-danger\': form.body.length >= 141 }">{{ 160 - form.body.length }}</button>\n <span class="help-block"> Max 160 chars</span>\n <span data-ng-show="forms.compose.body.$invalid && forms.compose.$submitted " class="help-block help-block-error">\n'+" <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n </span>\n </div>\n </div>\n\n <!-- END message -->\n </div>\n </form>\n </div>\n </div>\n </div>\n </div>\n</div>\n<!-- END TODO CONTENT -->\n"),a.put("app/channels/sms/inbox/sms/info.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_INFO\' | translate }}</h3>\n</div>\n<div class="modal-body" data-ng-init="initInfo()" style=" overflow-x: auto;">\n <div class="form-group" ng-if="data">\n <json-formatter json="data" open="1"></json-formatter>\n </div>\n <div class="note note-warning" data-ng-hide="data">\n <p>\n {{ \'MESSAGE_NO_INFO_AVAILABLE\' | translate }}\n </p>\n </div>\n\n</div>\n<div class="modal-footer">\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'),a.put("app/channels/sms/inbox/sms/sms.html",'<div class="message">\n <div class="row">\n <div class="col-md-6">\n <span class="bold">From: </span>\n [<a href="" data-ng-click="openContact(smsMessage.from)">{{smsMessage.from}}</a>]\n <br>\n <span class="bold">To: </span>\n [<a href="" data-ng-click="openContact(smsMessage.to)">{{smsMessage.to}}</a>]\n <br>\n </div>\n <div class="col-md-6">\n <span class="pull-right" data-ng-if="smsMessage.User">{{\'APPLICATION_SENT_BY\' | translate}}: <strong>{{smsMessage.User.fullname}}</strong></span>\n <span class="pull-right" data-ng-if="smsMessage.source">{{\'APPLICATION_SENT_BY\' | translate}}: <strong>Cally ²</strong>\n <a ng-click="info(smsMessage.source)"><i class="icon-info font-blue"></i>\n </a>\n </div>\n </div>\n\n <br>\n <span class="todo-tasklist-date">\n <span class="pull-right" data-ng-switch="smsMessage.status">\n <a ng-switch-when="RECEIVED" href="#" class="btn default btn-xs inactive-link green-stripe"> {{smsMessage.status | uppercase}}\n <i class="fa fa-check"></i>\n </a>\n <a ng-switch-when="SENT" href="#" class="btn default btn-xs inactive-link green-stripe"> {{smsMessage.status | uppercase}}\n <i class="fa fa-check"></i>\n </a>\n <a ng-switch-when="DELIVERED" href="#" class="btn default btn-xs inactive-link green-stripe"> {{smsMessage.status | uppercase}}\n <i class="fa fa-check"></i>\n </a>\n <a ng-switch-when="SENDING" href="#" class="btn default btn-xs inactive-link blue-stripe" > {{smsMessage.status | uppercase}}\n <i class="fa fa-warning"></i>\n </a>\n <a ng-switch-when="FAILED" href="#" class="btn default btn-xs red-stripe" data-ng-click="info(null,smsMessage.res_data)"> {{smsMessage.status | uppercase}}\n <i class="fa fa-times"></i>\n </a>\n <a ng-switch-default href="#" class="btn default btn-xs"> {{smsMessage.status | uppercase}}\n </a>\n <br>\n <!-- <a ng-href="https://www.twilio.com/docs/errors/{{smsMessage.errorcode}}" target="_blank" ng-if="(smsMessage.errorcode) && (accounttype==\'twilio\')">Error Code:{{smsMessage.errorcode}}</a>\n <a ng-href="{{smsMessage.errorcode.length > 2 ? \'http://www.skebby.com/sms-api/sms-gateway/developers-docs/#receiveNotifySection\' : \'http://www.skebby.com/sms-api/sms-gateway/developers-docs/#errorCodesSection\'}}" target="_blank" ng-if="(smsMessage.errorcode != 1) && (smsMessage.errorcode) && (accounttype==\'skebby\')">Error Code:{{smsMessage.errorcode}}</a> -->\n </span>\n\n <i class="icon-calendar" title="{{smsMessage.updatedAt | date:\'MMM d, y HH:mm:ss\'}}"></i> <span am-time-ago="smsMessage.updatedAt"></span>\n </span>\n <hr>\n <span class="body text-left" data-ng-bind-html="smsMessage.body" style="white-space: pre-wrap;"></span>\n\n </div>\n'),a.put("app/channels/sms/inbox/view/account/list/list.html",'<!-- BEGIN Portlet PORTLET-->\n<div class="portlet light" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption">\n <div class="btn-group btn-group-solid">\n <button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'NEW\'" uib-uncheckable>NEW</button>\n </div>\n <div class="btn-group btn-group-solid">\n <button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'OPEN\'" uib-uncheckable>OPEN</button>\n </div>\n <div class="btn-group btn-group-solid">\n <button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'PENDING\'" uib-uncheckable>PENDING</button>\n </div>\n <div class="btn-group btn-group-solid">\n <button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'CLOSED\'" uib-uncheckable>CLOSED</button>\n </div>\n </div>\n <div class="actions">\n <a href="#" class="btn btn-icon-only default" data-ng-click="getPage();">\n <i class="fa fa-refresh"></i>\n </a>\n <a href="#" class="btn btn-icon-only red" data-ng-click="deleteItems();" data-ng-show="id.length && isAdmin">\n <i class="fa fa-trash"></i>\n </a>\n <a href="#" class="btn btn-icon-only btn-success" data-ng-click="disposeItems();" data-ng-show="id.length">\n <i class="fa fa-upload"></i>\n </a>\n <a href="#" class="btn btn-icon-only blue" data-ng-click="tagItems();" data-ng-show="id.length">\n <i class="fa fa-tags"></i>\n </a>\n <a href="#" class="btn btn-icon-only green" data-ng-click="openRoom(null, \'New Message\')">\n <i class="fa fa-plus"></i>\n </a>\n </div>\n </div>\n <div class="portlet-title" data-ng-show="tags.length">\n <!-- START TAGS -->\n <div class="form-group">\n <div class="row">\n <div class="col-md-1">\n <a href="#" class="btn btn-icon-only">\n <i class="fa fa-tags" style="color: gray;"></i>\n </a>\n </div>\n <div class="col-md-11">\n <ui-select multiple data-ng-model="query.tags" theme="bootstrap" on-select="onChanged($item, $model)" on-remove="onChanged($item, $model)">\n <ui-select-match placeholder="Search by tag...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="tag in tags | filter:$select.search">\n {{tag}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n </div>\n <!-- END TAGS -->\n </div>\n <div class="portlet-body">\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="spinner-grid" spinner-start-active="false"></span>\n <!-- END UI-GRID SPINNER -->\n\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-pagination ui-grid-selection ui-grid-exporter class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END Portlet PORTLET-->\n'),a.put("app/channels/sms/inbox/view/view.agents.modal.html",'<div class="modal-header" data-ng-init="initModal()">\n <h3 class="modal-title">{{ \'APPLICATION_AGENTS\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <!-- START TRANSPORT -->\n <div class="form-group">\n <form name="form" novalidate>\n <!-- START TRANSPORT -->\n <div class="form-group">\n <ui-select multiple name="agents" data-ng-model="item.agents" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_AGENTS\' | translate}}">{{$item.fullname}}</ui-select-match>\n <ui-select-choices repeat="agent.id as agent in agents | filter: $select.search">\n {{agent.fullname}}\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END TRANSPORT -->\n </form>\n </div>\n <!-- END TRANSPORT -->\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" data-ng-click="ok()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/sms/inbox/view/view.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="glyphicon glyphicon-comment"></i>\n <a href="#">{{ \'APPLICATION_SMS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-note"></i>\n <a href="/channels/sms/inbox/list">{{ \'APPLICATION_INBOX\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row inbox" data-ng-init="initView()">\n <div class="col-md-3">\n <ul class="inbox-nav margin-bottom-10">\n <li data-ng-class="{active: $stateParams.id == smsAccount.id}" data-ng-repeat="smsAccount in smsAccounts">\n <a href="/channels/sms/inbox/view/account/{{smsAccount.id}}/list" class="btn">\n <i class="icon-notebook"></i> {{smsAccount.name}}\n </a>\n <b></b>\n </li>\n </ul>\n </div>\n\n <div class="col-md-9" >\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view>\n <div class="note note-info">\n <h4 class="block">Info! {{\'APPLICATION_NO_ACCOUNT_SELECTED\' | translate}}</h4>\n </div>\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/sms/inbox/view/view.status.modal.html",'<div class="modal-header">\n <button ng-if="modal.dismissable" type="button" ng-click="$dismiss()" class="close">×</button>\n <h4 ng-if="modal.title" ng-bind="modal.title | translate" class="modal-title"></h4>\n</div>\n<div class="modal-body">\n <p ng-if="modal.text && !closed" ng-bind="modal.text | translate"></p>\n <form name="form" novalidate data-ng-init="initDisposition()">\n <div class="form-group">\n <ui-select data-ng-model="item.disposition" name="list" theme="bootstrap" data-ng-disabled="!dispositions.length" required>\n <ui-select-match placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="disposition.name as disposition in dispositions | filter: $select.search">\n <div ng-bind-html="disposition.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="note note-warning" data-ng-hide="dispositions.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_DISPOSITIONS_AVAILABLE\' | translate }}\n </p>\n </div>\n</form>\n <!-- <div ng-if="modal.html" ng-bind-html="modal.html"></div> -->\n</div>\n<div class="modal-footer">\n <button class="btn btn-danger" type="button" ng-click="ok()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n <!-- <button ng-repeat="button in modal.buttons" ng-class="button.classes" ng-click="button.click($event)" ng-bind="button.text" class="btn"></button> -->\n</div>\n'), -a.put("app/channels/sms/inbox/view/view.tags.modal.html",'<div class="modal-header" data-ng-init="initModal()">\n <h3 class="modal-title">{{ \'APPLICATION_TAGS\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <!-- START TRANSPORT -->\n <div class="form-group">\n <form name="form" novalidate>\n <!-- START TAGS -->\n <div class="form-group">\n <ui-select multiple data-ng-model="item.tags" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_TAGS\' | translate}}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="tag in tags | filter: $select.search">\n {{tag}}\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END TAGS -->\n </form>\n </div>\n <!-- END TRANSPORT -->\n</div>\n<div class="modal-footer">\n <button type="button" class="btn" data-ng-class="button.class" data-ng-click="button.click()"data-ng-repeat="button in modal.buttons">{{button.text | translate}}</button>\n <!-- <button class="btn btn-success" type="button" data-ng-click="ok()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button> -->\n</div>\n'),a.put("app/channels/sms/inbox/view/view.templates.modal.html",'<div class="modal-header" data-ng-init="initModal()">\n <h3 class="modal-title">{{ \'APPLICATION_TEMPLATES\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <div class="note note-info" data-ng-show="!templates.length">\n <h4 class="block">Info!</h4>\n <p>\n {{\'MESSAGE_NO_TEMPLATES_AVAILABLE\' | translate}}\n </p>\n </div>\n <form name="form" data-ng-show="templates.length" novalidate>\n <div class="form-group">\n <ui-select data-ng-model="item.template" theme="bootstrap">\n <ui-select-match placeholder="Select a template in the list or search his name...">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="template in templates | propsFilter: {name: $select.search}">\n <div ng-bind-html="template.name | highlight: $select.search"></div>\n <small data-ng-show="template.description">\n {{\'APPLICATION_DESCRIPTION\' | translate}}: {{template.description}}\n </small>\n </ui-select-choices>\n </ui-select>\n </div>\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" data-ng-click="ok()" data-ng-show="templates.length">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/sms/queue/list/list.create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_QUEUE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" data-ng-pattern="settings.patternName" required />\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$invalid && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$invalid && form.name.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START STRATEGY -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.strategy.$touched || form.$submitted) && form.strategy.$invalid}">\n <label class="control-label">{{\'APPLICATION_STRATEGY\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.strategy" name="strategy" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.toUpperCase()}}</ui-select-match>\n <ui-select-choices repeat="strategy in strategies | filter: $select.search">\n <div ng-bind-html="strategy.toUpperCase() | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form.strategy.$touched || form.$submitted) && form.strategy.$invalid && form.strategy.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END STRATEGY -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.timeout.$touched || form.$submitted) && form.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_AGENT_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="0" name="timeout" placeholder="Timeout" class="form-control" data-ng-model="item.timeout" required min="1"/>\n <span data-ng-show="(form.timeout.$touched || form.$submitted) && form.timeout.$invalid && form.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START AGENTS-->\n <div class="form-body" data-ng-init="getTeams()">\n <label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n <div class="input-group input-small mbottom20">\n <input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="item.penalty" readonly>\n <div class="spinner-buttons input-group-btn btn-group-vertical">\n <button type="button" class="btn spinner-up btn-xs blue" data-ng-click="item.penalty=item.penalty+1">\n <i class="fa fa-angle-up"></i>\n </button>\n <button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!item.penalty" data-ng-click="item.penalty=item.penalty-1">\n <i class="fa fa-angle-down"></i>\n </button>\n </div>\n </div>\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-team">\n </div>\n </div>\n </div>\n <!-- END AGENTS-->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/sms/queue/list/list.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="glyphicon glyphicon-comment"></i>\n <a href="#">{{ \'APPLICATION_SMS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="#">{{ \'APPLICATION_QUEUES\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_QUEUES\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="#" data-ng-click="createItem()" data-ng-if="Auth.isAdmin()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_QUEUE\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/sms/queue/view/view.agents.html",'<div class="row" data-ng-init="getTeams()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_AGENTS\' | translate}}</span>\n </div>\n </div>\n <div class="note note-warning" data-ng-hide="teams.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_AVAILABLE_TEAMS\' | translate }}\n </p>\n </div>\n <div class="portlet-body">\n <!-- BEGIN FORM-->\n <form action="index.html" class="form-horizontal form-row-seperated">\n <div class="form-body">\n <label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n <div class="input-group input-small mbottom20">\n <input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="queue.penalty" readonly>\n <div class="spinner-buttons input-group-btn btn-group-vertical">\n <button type="button" class="btn spinner-up btn-xs blue" data-ng-click="queue.penalty=queue.penalty+1">\n <i class="fa fa-angle-up"></i>\n </button>\n <button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!queue.penalty" data-ng-click="queue.penalty=queue.penalty-1">\n <i class="fa fa-angle-down"></i>\n </button>\n </div>\n </div>\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-team">\n </div>\n </div>\n </div>\n </form>\n <!-- END FORM-->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/sms/queue/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getQueue()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="glyphicon glyphicon-comment"></i>\n <a href="#">{{ \'APPLICATION_SMS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="/channels/sms/queues/list">{{ \'APPLICATION_QUEUES\' | translate }}</a>\n <i data-ng-show="queue" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="queue">\n <a href="#">{{queue.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET main.channels -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/queue.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{queue.name}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.channels.sms.queues.view.settings\')}">\n <a data-ng-href="/channels/sms/queues/view/{{queue.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.channels.sms.queues.view.agents\')}" data-ng-show="Auth.getCurrentUser().role === \'admin\'">\n <a data-ng-href="/channels/sms/queues/view/{{queue.id}}/agents">\n <i class="icon-people"></i>\n {{ \'APPLICATION_AGENTS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET main.channels -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n </div>\n <!-- END PAGE CONTENT-->\n'),a.put("app/channels/sms/queue/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateSmsQueue()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="queue.name" data-ng-pattern="settings.patternName" required />\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid && forms.general.name.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START STRATEGY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.strategy.$touched || forms.general.$submitted) && forms.general.strategy.$invalid}">\n <label class="control-label">{{\'APPLICATION_STRATEGY\' | translate}}</label>\n <ui-select data-ng-model="queue.strategy" name="strategy" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | uppercase}}</ui-select-match>\n <ui-select-choices repeat="strategy in strategies | filter: $select.search">\n <div ng-bind-html="strategy | uppercase | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END STRATEGY -->\n\n <!-- START TIMEOUT -->\n <div class="form-group">\n <label class="control-label">Timeout</label>\n <input type="number" name="timeout" placeholder="Timeout" class="form-control" min="1" data-ng-model="queue.timeout"/>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="queue.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <input data-ng-if="Auth.isAdmin()" class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/sms/realtime/view/agent/agent.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initAgents()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns class="ui-grid" ui-grid-tree-view ui-grid-expandable-row ui-grid-pagination ui-grid-auto-resize>\n <span us-spinner spinner-key="grid-spinner" spinner-start-active="true"></span>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/sms/realtime/view/agent/agent.modal.info.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_INTERFACE_INFO\' | translate }}</h3>\n</div>\n<div class="modal-body">\n<div data-ng-if="agent.ipaddr" class="well">\n <div>{{agent.ipaddr}}:{{agent.port}}</div>\n <div>{{agent.fullcontact}}</div>\n <div>{{agent.useragent}}</div>\n <div>{{agent.lastms}}</div>\n</div>\n<div data-ng-if="!agent.ipaddr" class="alert alert-danger" role="alert">\n {{\'MESSAGE_NO_AVAILABLE_INFO\' | translate}}\n</div>\n</div>\n<div class="modal-footer">\n <button class="btn default" type="button" ng-click="close()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'),a.put("app/channels/sms/realtime/view/agent/queue.modal.add.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_JOIN_QUEUE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <div class="form-group row">\n <label class="col-md-2 control-label" style="margin-top: 7px;">{{\'APPLICATION_QUEUE\' | translate}}:</label>\n <div class="col-md-10">\n <ui-select multiple ng-model="item.queues" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_QUEUE\' | translate}}">{{$item.name}}</ui-select-match>\n <ui-select-choices repeat="queue.id as queue in queues | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n</div>\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/sms/realtime/view/application/application.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initApplications()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns class="ui-grid" ui-grid-auto-resize>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/sms/realtime/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-directions"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="glyphicon glyphicon-comment"></i>\n <a href="#">{{ \'APPLICATION_SMS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-energy"></i>\n <a href="#">{{ \'APPLICATION_REALTIME\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <div>\n <nav class="navbar navbar-default" role="navigation">\n <div class="collapse navbar-collapse">\n <ul class="nav navbar-nav">\n <li data-ng-class="{\'active\': $state.is(\'main.channels.sms.realtime.view.agents\')}">\n <a href="/channels/sms/realtime/view/agents">\n {{\'APPLICATION_AGENTS\' | translate}}\n </a>\n </li>\n <li data-ng-class="{\'active\': $state.is(\'main.channels.sms.realtime.view.applications\')}">\n <a href="/channels/sms/realtime/view/applications">\n {{\'APPLICATION_APPLICATIONS\' | translate}}\n </a>\n </li>\n <li>\n <a href="#">\n <b>|{{\'APPLICATION_SHOW_TIMERS\' | translate}} </b><input\n bs-switch\n class="form-control"\n ng-model="showTimers"\n type="checkbox"\n name="showTimers"\n switch-active="{{ timerSwitch.isActive }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ timerSwitch.onColor }}"\n switch-off-color="{{ timerSwitch.offColor }}"\n switch-animate="{{ timerSwitch.animate }}"\n switch-size="{{ timerSwitch.size }}"\n switch-label="{{ timerSwitch.label }}"\n switch-icon="{{ timerSwitch.icon }}"\n switch-radio-off="{{ timerSwitch.radioOff }}"\n switch-label-width="{{ timerSwitch.labelWidth }}"\n switch-handle-width="{{ timerSwitch.handleWidth }}"><b>|</b>\n </a>\n </li>\n </ul>\n </div>\n </nav>\n </div>\n\n <div ui-view></div>\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/sms/realtime/view/view.queue.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initAgents()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div id="grid1" ui-grid="gridOptions" ui-grid-resize-columns ui-grid-tree-view class="grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/voice/chanspy/list/list.create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_CHANSPY\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START PREFIX -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.prefix.$touched || form.$submitted) && form.prefix.$invalid}">\n <label class="control-label">{{\'APPLICATION_PREFIX\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="prefix" placeholder="{{\'APPLICATION_PREFIX\' | translate}}" class="form-control" data-ng-model="item.prefix" required/>\n <span data-ng-show="(form.prefix.$touched || form.$submitted) && form.prefix.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PREFIX -->\n\n <!-- START OPTIONS -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.options.$touched || form.$submitted) && form.options.$invalid}">\n <label class="control-label">{{\'APPLICATION_OPTIONS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select multiple data-ng-model="item.options" name="options" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$item.value}}: {{$item.name | translate}}</ui-select-match>\n <ui-select-choices repeat="option.value as option in options | filter: $select.search">\n <div ng-bind-html="option.value + \': \' + (option.name | translate) | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form.options.$touched || form.$submitted) && form.options.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END OPTIONS -->\n\n <!-- START AUTH -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_AUTH\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="item.auth"\n type="checkbox"\n name="auth"\n data-ng-init="item.auth = 0"\n switch-active="{{ authSwitch.isActive }}"\n switch-on-text="{{ authSwitch.onText }}"\n switch-off-text="{{ authSwitch.offText }}"\n switch-on-color="{{ authSwitch.onColor }}"\n switch-off-color="{{ authSwitch.offColor }}"\n switch-animate="{{ authSwitch.animate }}"\n switch-size="{{ authSwitch.size }}"\n switch-label="{{ authSwitch.label }}"\n switch-icon="{{ authSwitch.icon }}"\n switch-radio-off="{{ authSwitch.radioOff }}"\n switch-label-width="{{ authSwitch.labelWidth }}"\n switch-handle-width="{{ authSwitch.handleWidth }}">\n </div>\n <!-- END AUTH -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.password.$touched || form.$submitted) && form.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span data-ng-show="item.auth" class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.password" data-ng-disabled="!item.auth" data-ng-required="item.auth"/>\n <span data-ng-show="(form.password.$touched || form.$submitted) && form.password.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START RECORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.record.$touched || form.$submitted) && form.record.$invalid}">\n <label class="control-label">{{\'APPLICATION_RECORDING\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="item.record"\n type="checkbox"\n switch-active="{{ recordSwitch.isActive }}"\n switch-on-text="{{ recordSwitch.onText }}"\n switch-off-text="{{ recordSwitch.offText }}"\n switch-on-color="{{ recordSwitch.onColor }}"\n switch-off-color="{{ recordSwitch.offColor }}"\n switch-animate="{{ recordSwitch.animate }}"\n switch-size="{{ recordSwitch.size }}"\n switch-label="{{ recordSwitch.label }}"\n switch-icon="{{ recordSwitch.icon }}"\n switch-radio-off="{{ recordSwitch.radioOff }}"\n switch-label-width="{{ recordSwitch.labelWidth }}"\n switch-handle-width="{{ recordSwitch.handleWidth }}">\n </div>\n <!-- END RECORD -->\n\n <!-- START RECORDINGFORMAT -->\n <div data-ng-if="item.record" class="form-group" data-ng-class="{\'has-error\': (form.recordingFormat.$touched || form.$submitted) && form.recordingFormat.$invalid}">\n <label class="control-label">{{\'APPLICATION_FORMAT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.recordingFormat" name="recordingFormat" theme="bootstrap" data-ng-required="item.record">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="format in [\'wav\',\'gsm\'] | filter: $select.search">\n <div ng-bind-html="format | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form.recordingFormat.$touched || form.$submitted) && form.recordingFormat.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END RECORDINGFORMAT -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/voice/chanspy/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-earphones-alt"></i>\n <a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-user-secret"></i>\n <a href="/channels/voice/chanspys/list">{{ \'APPLICATION_CHANSPY\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="fa fa-user-secret font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_CHANSPY\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <button class="btn green-jungle " ng-click="createItem()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_CHANSPY\' | translate }}\n </button>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'), -a.put("app/channels/voice/chanspy/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getChanSpy()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-earphones-alt"></i>\n <a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-user-secret"></i>\n <a href="/channels/voice/chanspy/list">{{ \'APPLICATION_CHANSPY\' | translate }}</a>\n <i data-ng-show="chanspy" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="chanspy">\n <a href="#">{{chanspy.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/chanspy.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{chanspy.name}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.channels.voice.chanspy.view.settings\')}">\n <a data-ng-href="/channels/voice/chanspy/view/{{chanspy.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/voice/chanspy/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_CHANSPY\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateChanSpy()" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="chanspy.name" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START PREFIX -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.general.prefix.$touched || form.general.$submitted) && form.general.prefix.$invalid}">\n <label class="control-label">{{\'APPLICATION_PREFIX\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="prefix" placeholder="{{\'APPLICATION_PREFIX\' | translate}}" class="form-control" data-ng-model="chanspy.prefix" required/>\n <span data-ng-show="(form.general.prefix.$touched || form.general.$submitted) && form.general.prefix.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PREFIX -->\n\n <!-- START OPTIONS -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.general.options.$touched || form.general.$submitted) && form.general.options.$invalid}">\n <label class="control-label">{{\'APPLICATION_OPTIONS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select multiple data-ng-model="chanspy.options" name="options" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$item.value}}: {{$item.name | translate}}</ui-select-match>\n <ui-select-choices repeat="option.value as option in options | filter: $select.search">\n <div ng-bind-html="option.value + \': \' + (option.name | translate) | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form.general.options.$touched || form.general.$submitted) && form.general.options.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END OPTIONS -->\n\n <!-- START AUTH -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_AUTH\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="chanspy.auth"\n type="checkbox"\n name="auth"\n switch-active="{{ authSwitch.isActive }}"\n switch-on-text="{{ authSwitch.onText }}"\n switch-off-text="{{ authSwitch.offText }}"\n switch-on-color="{{ authSwitch.onColor }}"\n switch-off-color="{{ authSwitch.offColor }}"\n switch-animate="{{ authSwitch.animate }}"\n switch-size="{{ authSwitch.size }}"\n switch-label="{{ authSwitch.label }}"\n switch-icon="{{ authSwitch.icon }}"\n switch-radio-off="{{ authSwitch.radioOff }}"\n switch-label-width="{{ authSwitch.labelWidth }}"\n switch-handle-width="{{ authSwitch.handleWidth }}">\n </div>\n <!-- END AUTH -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.general.password.$touched || form.general.$submitted) && form.general.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" data-ng-show="chanspy.auth" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="chanspy.password" data-ng-disabled="!chanspy.auth" data-ng-required="chanspy.auth"/>\n <span data-ng-show="(form.general.password.$touched || form.general.$submitted) && form.general.password.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START RECORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.record.$touched || forms.general.$submitted) && forms.general.record.$invalid}">\n <label class="control-label">{{\'APPLICATION_RECORDING\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="chanspy.record"\n type="checkbox"\n switch-active="{{ recordSwitch.isActive }}"\n switch-on-text="{{ recordSwitch.onText }}"\n switch-off-text="{{ recordSwitch.offText }}"\n switch-on-color="{{ recordSwitch.onColor }}"\n switch-off-color="{{ recordSwitch.offColor }}"\n switch-animate="{{ recordSwitch.animate }}"\n switch-size="{{ recordSwitch.size }}"\n switch-label="{{ recordSwitch.label }}"\n switch-icon="{{ recordSwitch.icon }}"\n switch-radio-off="{{ recordSwitch.radioOff }}"\n switch-label-width="{{ recordSwitch.labelWidth }}"\n switch-handle-width="{{ recordSwitch.handleWidth }}">\n </div>\n <!-- END RECORD -->\n\n <!-- START RECORDINGFORMAT -->\n <div data-ng-if="chanspy.record" class="form-group" data-ng-class="{\'has-error\': (forms.general.recordingFormat.$touched || forms.general.$submitted) && forms.general.recordingFormat.$invalid}">\n <label class="control-label">{{\'APPLICATION_FORMAT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="chanspy.recordingFormat" name="recordingFormat" theme="bootstrap" data-ng-required="chanspy.record">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="format in [\'wav\',\'gsm\'] | filter: $select.search">\n <div ng-bind-html="format | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.general.recordingFormat.$touched || forms.general.$submitted) && forms.general.recordingFormat.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END RECORDINGFORMAT -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="chanspy.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ADVANCED TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/voice/context/list/create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_CONTEXT\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" data-ng-click="ok()" data-ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/voice/context/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-earphones-alt"></i>\n <a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="#">{{ \'APPLICATION_CONTEXTS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_CONTEXTS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <a class="btn green-jungle" href="#" data-ng-click="createItem()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_CONTEXT\' | translate }}\n </a>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/voice/context/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getContext()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-earphones-alt"></i>\n <a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="/channels/voice/contexts/list">{{ \'APPLICATION_CONTEXTS\' | translate }}</a>\n <i data-ng-show="context" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="context">\n <a href="#">{{context.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET main.channels -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/context.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{context.name}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.channels.voice.contexts.view.settings\')}">\n <a data-ng-href="/channels/voice/contexts/view/{{context.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET main.channels -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n </div>\n <!-- END PAGE CONTENT-->\n'),a.put("app/channels/voice/context/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_CONTEXT\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateVoiceContext()" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="context.name" required readonly/>\n <span class="help-block">\n {{ \'DESCRIPTION_CANT_EDIT_NAME\' | translate }}\n </span>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="context.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ADVANCED TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/voice/disposition/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-earphones-alt"></i>\n <a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-target"></i>\n <a href="/channels/voice/dispositions/list">{{ \'APPLICATION_DISPOSITIONS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_DISPOSITIONS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <a href="#" class="btn btn-icon-only green" data-ng-click="addDisposition();">\n <i class="fa fa-plus"></i>\n </a>\n </div>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <div class="row" data-ng-hide="dispositions.length">\n <div class="col-md-12">\n <div class="note note-info">\n <h4 class="block">Info! {{\'MESSAGE_NO_DISPOSITIONS_AVAILABLE\' | translate}}</h4>\n </div>\n </div>\n </div>\n\n <!-- GENERAL TAB -->\n <div class="row" data-ng-repeat="disposition in dispositions">\n <div class="col-md-12 form-group">\n <div class="input-group">\n <div>\n <input class="form-control" type="text" placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}" data-ng-model="disposition.name">\n </div>\n <span class="input-group-btn">\n <button class="btn btn-success" type="button" data-ng-click="updateDisposition(disposition.id, disposition.name);"><i class="fa fa-cloud-upload fa-fw"></i> {{\'APPLICATION_UPDATE\' | translate}}</button>\n <button class="btn btn-danger" type="button" data-ng-click="deleteDisposition(disposition.id);"><i class="fa fa-times fa-fw"></i> {{\'APPLICATION_DELETE\' | translate}}</button>\n </span>\n </div>\n </div>\n </div>\n <!-- END GENERAL TAB -->\n </div>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/voice/disposition/list/modal/add.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_DISPOSITIONS\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.form.$touched || form.$submitted) && form.form.$invalid}">\n <div class="">\n <input type="text" name="form" placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}" class="form-control" data-ng-model="name" required/>\n <span data-ng-show="form.form.$touched && form.form.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <!-- END NAME -->\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" data-ng-click="ok()" data-ng-show="form.$valid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/voice/moh/list/create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_MOH_CLASS\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START MODE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.mode.$touched || forms.$submitted) && forms.mode.$invalid}">\n <label class="control-label">{{\'APPLICATION_MODE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.mode" theme="bootstrap" name="mode" data-ng-init="item.mode = \'files\'" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="mode in [\'files\',\'custom\'] | filter: $select.search">\n {{mode}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.mode.$touched || forms.$submitted) && forms.mode.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MODE -->\n\n <!-- START DIRECTORY -->\n <div data-ng-if="item.mode === \'custom\'" class="form-group" data-ng-class="{\'has-error\': (form.directory.$touched || form.$submitted) && form.directory.$invalid}">\n <label class="control-label">{{\'APPLICATION_DIRECTORY\' | translate}}</label>\n <input type="text" name="directory" placeholder="{{\'APPLICATION_DIRECTORY\' | translate}}" class="form-control" data-ng-model="item.directory"/>\n </div>\n <!-- END DIRECTORY -->\n\n <!-- START APPLICATION -->\n <div data-ng-if="item.mode === \'custom\'" class="form-group" data-ng-class="{\'has-error\': (form.application.$touched || form.$submitted) && form.application.$invalid}">\n <label class="control-label">{{\'APPLICATION_APPLICATION\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="application" placeholder="{{\'APPLICATION_APPLICATION\' | translate}}" class="form-control" data-ng-model="item.application"/>\n <span data-ng-show="(form.application.$touched || form.$submitted) && form.application.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END APPLICATION -->\n\n <!-- START FORMAT -->\n <div data-ng-if="item.mode === \'custom\'" class="form-group" data-ng-class="{\'has-error\': (form.format.$touched || form.$submitted) && form.format.$invalid}">\n <label class="control-label">{{\'APPLICATION_FORMAT\' | translate}}</label>\n <input type="text" name="format" placeholder="{{\'APPLICATION_FORMAT\' | translate}}" class="form-control" data-ng-model="item.format"/>\n </div>\n <!-- END FORMAT -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="ok()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/voice/moh/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-earphones-alt"></i>\n <a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-music-tone"></i>\n <a href="#">{{ \'APPLICATION_MOHS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-music-tone font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_MOHS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="#" data-ng-click="createItem()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_MOH_CLASS\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/voice/moh/view/view.addFiles.html",'\n<div class="row" data-ng-init="getSounds()">\n <div class="col-md-12">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_MOH\' | translate }} {{ \'APPLICATION_ADD_FILES\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <div class="note note-warning" data-ng-hide="soundList.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_SOUNDS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/sounds/list">{{\'APPLICATION_SOUNDS\' | translate}}</a>\n </p>\n </div>\n <form name="forms.general" data-ng-submit="(item.sounds.length > 0) && addMohs()" data-ng-show="soundList.length" novalidate>\n\n <!-- START SOUNDS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.sounds.$touched || forms.general.$submitted) && item.sounds.length == 0}">\n <label class="control-label">{{\'APPLICATION_SOUNDS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select multiple data-ng-model="item.sounds" theme="bootstrap" name="sounds" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$item.display_name}}</ui-select-match>\n <ui-select-choices repeat="sound.id as sound in soundList | filter: $select.search">\n {{sound.display_name}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.general.sounds.$touched || forms.general.$submitted) && item.sounds.length == 0" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END OPTIONS -->\n\n <input type="submit" class="btn green-haze" value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </form>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/voice/moh/view/view.audios.html",'<div ui-view class="profile-content">\n<div class="row" data-ng-init="getAudioFiles()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_AUDIOS\' | translate}}</span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="audioFiles">\n <a class="btn green-jungle " href="/channels/voice/mohs/view/{{moh.id}}/add" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_ADD_FILES\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <div class="note note-warning" data-ng-hide="audioFiles">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_FOLDER_DOES_NOT_EXIST\' | translate }}\n </p>\n </div>\n <!-- START TABLE -->\n <table class="table table-striped table-bordered table-hover" data-ng-show="audioFiles">\n <thead>\n <tr>\n <th>{{ \'APPLICATION_NAME\' | translate }}</th>\n <th width="30%">{{ \'APPLICATION_PREVIEW\' | translate }}</th>\n <th width="10%">{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody data-ng-model="audioFiles">\n <tr data-ng-repeat="audiofile in audioFiles">\n <td>{{audiofile}}</td>\n <td>\n <audio controls ng-src="{{getSecureSrc(audioSources[audiofile])}}" preload="none">\n Your browser does not support the audio tag.\n </audio></td>\n <td>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(audiofile,audiofile)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="audioFiles.length">\n <td colspan="3" style="text-align:center;">\n <i>{{ \'MESSAGE_NO_AUDIOFILES_AVAILABLE\' | translate }}</i>\n </td>\n </tr>\n </tbody>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n</div>\n</div>\n'), -a.put("app/channels/voice/moh/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getMoh()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-earphones-alt"></i>\n <a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-music-tone"></i>\n <a href="/channels/voice/mohs/list">{{ \'APPLICATION_MOH_CLASS\' | translate }}</a>\n <i data-ng-show="moh" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="moh">\n <a href="#">{{moh.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET main.channels -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/moh.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{moh.name}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.channels.voice.mohs.view.settings\')}">\n <a data-ng-href="/channels/voice/mohs/view/{{moh.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n <li data-ng-if="moh.mode === \'files\'" data-ng-class="{active: $state.is(\'main.channels.voice.mohs.view.audios\') || $state.is(\'main.channels.voice.mohs.view.add\')}">\n <a data-ng-href="/channels/voice/mohs/view/{{moh.id}}/audios">\n <i class="icon-list"></i>\n {{ \'APPLICATION_AUDIOS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET main.channels -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/voice/moh/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_MOH_CLASS\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body" data-ng-init="getContexts();">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateVoiceMoh()" novalidate>\n\n <!-- START MODE -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_MODE\' | translate}}</label>\n <input type="text" name="path" class="form-control" data-ng-model="moh.mode" disabled/>\n </div>\n <!-- END MODE -->\n\n <!-- START PATH -->\n <div class="form-group" data-ng-if="moh.mode === \'files\'">\n <label class="control-label">{{\'APPLICATION_PATH\' | translate}}</label>\n <input type="text" name="path" class="form-control" data-ng-model="moh.directory" disabled/>\n </div>\n <!-- END PATH -->\n\n <!-- START SORT -->\n <div data-ng-if="moh.mode === \'files\'" class="form-group" data-ng-class="{\'has-error\': (forms.general.sort.$touched || forms.general.$submitted) && forms.general.sort.$invalid}">\n <label class="control-label">{{\'APPLICATION_SORT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="moh.sort" theme="bootstrap" name="sort" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$translate.instant($select.selected.name)}}</ui-select-match>\n <ui-select-choices repeat="sort.value as sort in sortOptions | filter: $select.search">\n {{$translate.instant(sort.name)}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.general.sort.$touched || forms.general.$submitted) && forms.general.sort.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SORT -->\n\n <!-- START DIRECTORY -->\n <div data-ng-if="moh.mode === \'custom\'" class="form-group" data-ng-class="{\'has-error\': (forms.general.directory.$touched || forms.general.$submitted) && forms.general.directory.$invalid}">\n <label class="control-label">{{\'APPLICATION_DIRECTORY\' | translate}}</label>\n <input type="text" name="directory" placeholder="{{\'APPLICATION_DIRECTORY\' | translate}}" class="form-control" data-ng-model="moh.directory"/>\n </div>\n <!-- END DIRECTORY -->\n\n <!-- START APPLICATION -->\n <div data-ng-if="moh.mode === \'custom\'" class="form-group" data-ng-class="{\'has-error\': (forms.general.application.$touched || forms.general.$submitted) && forms.general.application.$invalid}">\n <label class="control-label">{{\'APPLICATION_APPLICATION\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="application" placeholder="{{\'APPLICATION_APPLICATION\' | translate}}" class="form-control" data-ng-model="moh.application" required/>\n <span data-ng-show="(forms.general.application.$touched || forms.general.$submitted) && forms.general.application.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END APPLICATION -->\n\n <!-- START FORMAT -->\n <div data-ng-if="moh.mode === \'custom\'" class="form-group" data-ng-class="{\'has-error\': (forms.general.format.$touched || forms.general.$submitted) && forms.general.format.$invalid}">\n <label class="control-label">{{\'APPLICATION_FORMAT\' | translate}}</label>\n <input type="text" name="format" placeholder="{{\'APPLICATION_FORMAT\' | translate}}" class="form-control" data-ng-model="moh.format"/>\n </div>\n <!-- END FORMAT -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/voice/queue/list/list.create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_QUEUE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" data-ng-pattern="settings.patternName" required />\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START STRATEGY -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.strategy.$touched || form.$submitted) && form.strategy.$invalid}">\n <label class="control-label">{{\'APPLICATION_STRATEGY\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.strategy" name="strategy" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.toUpperCase()}}</ui-select-match>\n <ui-select-choices repeat="strategy in [\'ringall\', \'leastrecent\', \'fewestcalls\', \'random\', \'rrmemory\', \'linear\', \'wrandom\', \'rrordered\'] | filter: $select.search">\n <div ng-bind-html="strategy.toUpperCase() | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_STRATEGY\' | translate }}\n </span>\n <span data-ng-show="(form.strategy.$touched || form.$submitted) && form.strategy.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END STRATEGY -->\n\n <!-- START AGENTS-->\n <div class="form-body" data-ng-init="getTeams()">\n <label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n <div class="input-group input-small mbottom20">\n <input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="item.penalty" readonly>\n <div class="spinner-buttons input-group-btn btn-group-vertical">\n <button type="button" class="btn spinner-up btn-xs blue" data-ng-click="item.penalty=item.penalty+1">\n <i class="fa fa-angle-up"></i>\n </button>\n <button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!item.penalty" data-ng-click="item.penalty=item.penalty-1">\n <i class="fa fa-angle-down"></i>\n </button>\n </div>\n </div>\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-team">\n </div>\n </div>\n </div>\n <!-- END AGENTS-->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/channels/voice/queue/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-earphones-alt"></i>\n <a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="#">{{ \'APPLICATION_QUEUES\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_QUEUES\' | translate }}</span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <a class="btn green-jungle" href="#" data-ng-click="createItem()" data-ng-if="Auth.isAdmin()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_QUEUE\' | translate }}\n </a>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/voice/queue/view/view.agents.html",'<div class="row" data-ng-init="getTeams()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_AGENTS\' | translate}}</span>\n </div>\n </div>\n <div class="note note-warning" data-ng-hide="teams.length">\n <h4 class="block">Warning!</h4><p>{{ \'MESSAGE_NO_AVAILABLE_TEAMS\' | translate }}</p>\n </div>\n <div class="portlet-body">\n <!-- BEGIN FORM-->\n <form action="index.html" class="form-horizontal form-row-seperated">\n <div class="form-body">\n <label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n <div class="input-group input-small mbottom20">\n <input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="queue.penalty" readonly>\n <div class="spinner-buttons input-group-btn btn-group-vertical">\n <button type="button" class="btn spinner-up btn-xs blue" data-ng-click="queue.penalty=queue.penalty+1">\n <i class="fa fa-angle-up"></i>\n </button>\n <button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!queue.penalty" data-ng-click="queue.penalty=queue.penalty-1">\n <i class="fa fa-angle-down"></i>\n </button>\n </div>\n </div>\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-team">\n </div>\n </div>\n </div>\n </form>\n <!-- END FORM-->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/voice/queue/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getQueue()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-earphones-alt"></i>\n <a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="/channels/voice/queues/list">{{ \'APPLICATION_QUEUES\' | translate }}</a>\n <i data-ng-show="queue" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="queue">\n <a href="#">{{queue.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET main.channels -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/queue.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{queue.name}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.channels.voice.queues.view.settings\')}">\n <a data-ng-href="/channels/voice/queues/view/{{queue.name}}/settings"> <i class="icon-settings"></i> {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.channels.voice.queues.view.agents\')}" data-ng-show="Auth.getCurrentUser().role === \'admin\'">\n <a data-ng-href="/channels/voice/queues/view/{{queue.name}}/agents"><i class="icon-people"></i>{{ \'APPLICATION_AGENTS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET main.channels -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/voice/queue/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_QUEUE_SETTINGS\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{ \'APPLICATION_PERIODIC_ANNOUNCE\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_3" data-toggle="tab">{{ \'APPLICATION_ADVANCED\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body" data-ng-init="getMohs();getSounds();">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && forms.announce.$valid && updateVoiceQueue()" novalidate>\n <div class="row">\n <div class="col-md-6">\n <!-- START STRATEGY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.strategy.$touched || forms.general.$submitted) && forms.general.strategy.$invalid}">\n <label class="control-label">{{\'APPLICATION_STRATEGY\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="queue.strategy" name="strategy" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.toUpperCase()}}</ui-select-match>\n <ui-select-choices repeat="strategy in [\'ringall\', \'leastrecent\', \'fewestcalls\', \'random\', \'rrmemory\', \'linear\', \'wrandom\', \'rrordered\'] | filter: $select.search">\n <div ng-bind-html="strategy.toUpperCase() | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_STRATEGY\' | translate }}\n </span>\n <span data-ng-show="(forms.general.strategy.$touched || forms.general.$submitted) && forms.general.strategy.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END STRATEGY -->\n\n <!-- START MOH -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.musiconhold.$touched || forms.general.$submitted) && forms.general.musiconhold.$invalid}">\n <label class="control-label">{{\'APPLICATION_MOH\' | translate}}</label>\n <ui-select data-ng-model="queue.musiconhold" name="musiconhold" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="musiconhold.name as musiconhold in voiceMohs | filter: $select.search">\n <div ng-bind-html="musiconhold.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_VOICE_MOH\' | translate }}\n </span>\n <span data-ng-show="(forms.general.musiconhold.$touched || forms.general.$submitted) && forms.general.musiconhold.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MOH -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.timeout.$touched || forms.general.$submitted) && forms.general.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="0" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="queue.timeout" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_TIMEOUT\' | translate }}\n </span>\n <span data-ng-show="(forms.general.timeout.$touched || forms.general.$submitted) && forms.general.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START MAXLEN -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.maxlen.$touched || forms.general.$submitted) && forms.general.maxlen.$invalid}">\n <label class="control-label">{{\'APPLICATION_MAXLEN\' | translate}}</label>\n <input type="number" min="0" name="maxlen" placeholder="{{\'APPLICATION_MAXLEN\' | translate}}" class="form-control" data-ng-model="queue.maxlen" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_MAXLEN\' | translate }}\n </span>\n <span data-ng-show="(forms.general.maxlen.$touched || forms.general.$submitted) && forms.general.maxlen.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MAXLEN -->\n\n <!-- START RETRY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.retry.$touched || forms.general.$submitted) && forms.general.retry.$invalid}">\n <label class="control-label">{{\'APPLICATION_RETRY\' | translate}}</label>\n <input type="number" min="0" name="retry" placeholder="{{\'APPLICATION_RETRY\' | translate}}" class="form-control" data-ng-model="queue.retry" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_RETRY\' | translate }}\n </span>\n <span data-ng-show="(forms.general.retry.$touched || forms.general.$submitted) && forms.general.retry.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END RETRY -->\n\n </div>\n <div class="col-md-6">\n <!-- START WRAPUPTIME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.wrapuptime.$touched || forms.general.$submitted) && forms.general.wrapuptime.$invalid}">\n <label class="control-label">{{\'APPLICATION_WRAPUPTIME\' | translate}}</label>\n <input type="number" min="0" name="wrapuptime" placeholder="{{\'APPLICATION_WRAPUPTIME\' | translate}}" class="form-control" data-ng-model="queue.wrapuptime" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_WRAPUPTIME\' | translate }}\n </span>\n <span data-ng-show="(forms.general.wrapuptime.$touched || forms.general.$submitted) && forms.general.wrapuptime.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END WRAPUPTIME -->\n\n <!-- START WEIGHT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.weight.$touched || forms.general.$submitted) && forms.general.weight.$invalid}">\n <label class="control-label">{{\'APPLICATION_WEIGHT\' | translate}}</label>\n <input type="number" min="0" name="weight" placeholder="{{\'APPLICATION_WEIGHT\' | translate}}" class="form-control" data-ng-model="queue.weight" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_WEIGHT\' | translate }}\n </span>\n <span data-ng-show="(forms.general.weight.$touched || forms.general.$submitted) && forms.general.weight.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END WEIGHT -->\n\n <!-- START JOINEMPTY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.joinempty.$touched || forms.general.$submitted) && forms.general.joinempty.$invalid}">\n <label class="control-label">{{\'APPLICATION_JOINEMPTY\' | translate}}</label>\n <ui-select multiple data-ng-model="queue.joinempty" name="joinempty" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\',\'strict\',\'loose\',\'paused\',\'penalty\',\'inuse\',\'ringing\',\'unavailable\',\'invalid\',\'unknown\',\'wrapup\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_JOINEMPTY\' | translate }}\n </span>\n <span data-ng-show="(forms.general.joinempty.$touched || forms.general.$submitted) && forms.general.joinempty.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END JOINEMPTY -->\n\n <!-- START LEAVEWHENEMPTY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.leavewhenempty.$touched || forms.general.$submitted) && forms.general.leavewhenempty.$invalid}">\n <label class="control-label">{{\'APPLICATION_LEAVEWHENEMPTY\' | translate}}</label>\n <ui-select multiple data-ng-model="queue.leavewhenempty" name="leavewhenempty" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\',\'strict\',\'loose\',\'paused\',\'penalty\',\'inuse\',\'ringing\',\'unavailable\',\'invalid\',\'unknown\',\'wrapup\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_LEAVEWHENEMPTY\' | translate }}\n </span>\n <span data-ng-show="(forms.general.leavewhenempty.$touched || forms.general.$submitted) && forms.general.leavewhenempty.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END LEAVEWHENEMPTY -->\n\n <!-- START ANNOUNCE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.announce.$touched || forms.general.$submitted) && forms.general.announce.$invalid}">\n <label class="control-label">{{\'APPLICATION_ANNOUNCE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="queue.announce" name="announce" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n <ui-select-choices repeat="announce.path as announce in sounds | filter: $select.search">\n <div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_ANNOUNCE\' | translate }}\n </span>\n <span data-ng-show="(forms.general.announce.$touched || forms.general.$submitted) && forms.general.announce.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END ANNOUNCE -->\n </div>\n </div>\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="queue.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n\n <div class="tab-pane" id="tab_1_2">\n <form name="forms.announce" data-ng-submit="forms.announce.$valid && forms.general.$valid && updateVoiceQueue()" novalidate>\n <div class="row">\n <div class="col-md-12">\n <!-- START PERIODIC_ANNOUNCE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.periodic_announce.$touched || forms.announce.$submitted) && forms.announce.periodic_announce.$invalid}">\n <label class="control-label">{{\'APPLICATION_PERIODIC_ANNOUNCE\' | translate}}</label>\n <ui-select multiple data-ng-model="queue.periodic_announce" name="periodic_announce" theme="bootstrap" data-ng-disabled="!periodicAnnounces.length">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$item.display_name}}</ui-select-match>\n <ui-select-choices repeat="announce.path as announce in periodicAnnounces | filter: $select.search track by $index">\n <div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="periodicAnnounces.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_SOUNDS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/sounds/list">{{\'APPLICATION_SOUNDS\' | translate}}</a>\n </p>\n </div>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_PERIODIC_ANNOUNCE\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.periodic_announce.$touched || forms.announce.$submitted) && forms.announce.periodic_announce.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PERIODIC_ANNOUNCE -->\n </div>\n </div>\n <div class="row">\n <div class="col-md-6">\n <p><h3>{{\'APPLICATION_SETTINGS\' | translate}}</h3></p>\n <!-- START ANNOUNCE_FREQUENCY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.announce_frequency.$touched || forms.announce.$submitted) && forms.announce.announce_frequency.$invalid}">\n <label class="control-label">{{\'APPLICATION_ANNOUNCE_FREQUENCY\' | translate}}</label>\n <input type="number" min="0" name="announce_frequency" placeholder="{{\'APPLICATION_ANNOUNCE_FREQUENCY\' | translate}}" class="form-control" data-ng-model="queue.announce_frequency" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_ANNOUNCE_FREQUENCY\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.announce_frequency.$touched || forms.announce.$submitted) && forms.announce.announce_frequency.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END ANNOUNCE_FREQUENCY -->\n\n <!-- START MIN_ANNOUNCE_FREQUENCY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.min_announce_frequency.$touched || forms.announce.$submitted) && forms.announce.min_announce_frequency.$invalid}">\n <label class="control-label">{{\'APPLICATION_MIN_ANNOUNCE_FREQUENCY\' | translate}}</label>\n <input type="number" min="0" name="min_announce_frequency" placeholder="{{\'APPLICATION_MIN_ANNOUNCE_FREQUENCY\' | translate}}" class="form-control" data-ng-model="queue.min_announce_frequency" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_MIN_ANNOUNCE_FREQUENCY\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.min_announce_frequency.$touched || forms.announce.$submitted) && forms.announce.min_announce_frequency.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MIN_ANNOUNCE_FREQUENCY -->\n\n <!-- START PERIODIC_ANNOUNCE_FREQUENCY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.periodic_announce_frequency.$touched || forms.announce.$submitted) && forms.announce.periodic_announce_frequency.$invalid}">\n <label class="control-label">{{\'APPLICATION_PERIODIC_ANNOUNCE_FREQUENCY\' | translate}}</label>\n <input type="number" min="0" name="periodic_announce_frequency" placeholder="{{\'APPLICATION_PERIODIC_ANNOUNCE_FREQUENCY\' | translate}}" class="form-control" data-ng-model="queue.periodic_announce_frequency"/>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_PERIODIC_ANNOUNCE_FREQUENCY\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.periodic_announce_frequency.$touched || forms.announce.$submitted) && forms.announce.periodic_announce_frequency.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PERIODIC_ANNOUNCE_FREQUENCY -->\n\n <!-- START RANDOM_PERIODIC_ANNOUNCE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.random_periodic_announce.$touched || forms.announce.$submitted) && forms.announce.random_periodic_announce.$invalid}">\n <label class="control-label">{{\'APPLICATION_RANDOM_PERIODIC_ANNOUNCE\' | translate}}</label>\n <ui-select data-ng-model="queue.random_periodic_announce" name="random_periodic_announce" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_RANDOM_PERIODIC_ANNOUNCE\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.random_periodic_announce.$touched || forms.announce.$submitted) && forms.announce.random_periodic_announce.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END RANDOM_PERIODIC_ANNOUNCE -->\n\n <!-- START ANNOUNCE_HOLDTIME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.announce_holdtime.$touched || forms.announce.$submitted) && forms.announce.announce_holdtime.$invalid}">\n <label class="control-label">{{\'APPLICATION_ANNOUNCE_HOLDTIME\' | translate}}</label>\n <ui-select data-ng-model="queue.announce_holdtime" name="announce_holdtime" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\',\'once\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_ANNOUNCE_HOLDTIME\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.announce_holdtime.$touched || forms.announce.$submitted) && forms.announce.announce_holdtime.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END ANNOUNCE_HOLDTIME -->\n\n <!-- START ANNOUNCE_POSITION -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.announce_position.$touched || forms.announce.$submitted) && forms.announce.announce_position.$invalid}">\n <label class="control-label">{{\'APPLICATION_ANNOUNCE_POSITION\' | translate}}</label>\n <ui-select data-ng-model="queue.announce_position" name="announce_position" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\',\'limit\',\'more\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_ANNOUNCE_POSITION\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.announce_position.$touched || forms.announce.$submitted) && forms.announce.announce_position.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END ANNOUNCE_POSITION -->\n\n <!-- START ANNOUNCE_POSITION_LIMIT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.announce_position_limit.$touched || forms.announce.$submitted) && forms.announce.announce_position_limit.$invalid}">\n <label class="control-label">{{\'APPLICATION_ANNOUNCE_POSITION_LIMIT\' | translate}}</label>\n <input type="number" min="0" name="announce_position_limit" placeholder="{{\'APPLICATION_ANNOUNCE_POSITION_LIMIT\' | translate}}" class="form-control" data-ng-model="queue.announce_position_limit"/>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_ANNOUNCE_POSITION_LIMIT\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.announce_position_limit.$touched || forms.announce.$submitted) && forms.announce.announce_position_limit.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END ANNOUNCE_POSITION_LIMIT -->\n\n <!-- START REPORTHOLDTIME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.reportholdtime.$touched || forms.announce.$submitted) && forms.announce.reportholdtime.$invalid}">\n <label class="control-label">{{\'APPLICATION_REPORTHOLDTIME\' | translate}}</label>\n <ui-select data-ng-model="queue.reportholdtime" name="reportholdtime" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_REPORTHOLDTIME\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.reportholdtime.$touched || forms.announce.$submitted) && forms.announce.reportholdtime.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END REPORTHOLDTIME -->\n\n </div>\n <div class="col-md-6">\n <p><h3>{{\'APPLICATION_SOUNDS\' | translate}}</h3></p>\n <!-- START QUEUE_REPORTHOLD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.queue_reporthold.$touched || forms.announce.$submitted) && forms.announce.queue_reporthold.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE_REPORTHOLD\' | translate}}</label>\n <ui-select data-ng-model="queue.queue_reporthold" name="queue_reporthold" theme="bootstrap" >\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n <ui-select-choices repeat="announce.path as announce in queueAnnounces | filter: $select.search">\n <div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_REPORTHOLD\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.queue_reporthold.$touched || forms.announce.$submitted) && forms.announce.queue_reporthold.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE_REPORTHOLD -->\n\n <!-- START QUEUE_YOUARENEXT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.queue_youarenext.$touched || forms.announce.$submitted) && forms.announce.queue_youarenext.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE_YOUARENEXT\' | translate}}</label>\n <ui-select data-ng-model="queue.queue_youarenext" name="queue_youarenext" theme="bootstrap" >\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n <ui-select-choices repeat="announce.path as announce in queueAnnounces | filter: $select.search">\n <div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_YOUARENEXT\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.queue_youarenext.$touched || forms.announce.$submitted) && forms.announce.queue_youarenext.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE_YOUARENEXT -->\n\n <!-- START QUEUE_THEREARE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.queue_thereare.$touched || forms.announce.$submitted) && forms.announce.queue_thereare.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE_THEREARE\' | translate}}</label>\n <ui-select data-ng-model="queue.queue_thereare" name="queue_thereare" theme="bootstrap" >\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n <ui-select-choices repeat="announce.path as announce in queueAnnounces | filter: $select.search">\n <div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_THEREARE\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.queue_thereare.$touched || forms.announce.$submitted) && forms.announce.queue_thereare.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE_THEREARE -->\n\n <!-- START QUEUE_CALLSWAITING -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.queue_callswaiting.$touched || forms.announce.$submitted) && forms.announce.queue_callswaiting.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE_CALLSWAITING\' | translate}}</label>\n <ui-select data-ng-model="queue.queue_callswaiting" name="queue_callswaiting" theme="bootstrap" >\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n <ui-select-choices repeat="announce.path as announce in queueAnnounces | filter: $select.search">\n <div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_CALLSWAITING\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.queue_callswaiting.$touched || forms.announce.$submitted) && forms.announce.queue_callswaiting.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE_CALLSWAITING -->\n\n <!-- START QUEUE_HOLDTIME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.queue_holdtime.$touched || forms.announce.$submitted) && forms.announce.queue_holdtime.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE_HOLDTIME\' | translate}}</label>\n <ui-select data-ng-model="queue.queue_holdtime" name="queue_holdtime" theme="bootstrap" >\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n <ui-select-choices repeat="announce.path as announce in queueAnnounces | filter: $select.search">\n <div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_HOLDTIME\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.queue_holdtime.$touched || forms.announce.$submitted) && forms.announce.queue_holdtime.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE_HOLDTIME -->\n\n <!-- START QUEUE_MINUTES -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.queue_minutes.$touched || forms.announce.$submitted) && forms.announce.queue_minutes.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE_MINUTES\' | translate}}</label>\n <ui-select data-ng-model="queue.queue_minutes" name="queue_minutes" theme="bootstrap" >\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n <ui-select-choices repeat="announce.path as announce in queueAnnounces | filter: $select.search">\n <div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_MINUTES\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.queue_minutes.$touched || forms.announce.$submitted) && forms.announce.queue_minutes.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE_MINUTES -->\n\n <!-- START QUEUE_MINUTE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.queue_minute.$touched || forms.announce.$submitted) && forms.announce.queue_minute.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE_MINUTE\' | translate}}</label>\n <ui-select data-ng-model="queue.queue_minute" name="queue_minute" theme="bootstrap" >\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n <ui-select-choices repeat="announce.path as announce in queueAnnounces | filter: $select.search">\n <div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_MINUTE\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.queue_minute.$touched || forms.announce.$submitted) && forms.announce.queue_minute.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE_MINUTE -->\n\n <!-- START QUEUE_SECONDS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.queue_seconds.$touched || forms.announce.$submitted) && forms.announce.queue_seconds.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE_SECONDS\' | translate}}</label>\n <ui-select data-ng-model="queue.queue_seconds" name="queue_seconds" theme="bootstrap" >\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n <ui-select-choices repeat="announce.path as announce in queueAnnounces | filter: $select.search">\n <div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_SECONDS\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.queue_seconds.$touched || forms.announce.$submitted) && forms.announce.queue_seconds.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE_SECONDS -->\n\n <!-- START QUEUE_THANKYOU -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.announce.queue_thankyou.$touched || forms.announce.$submitted) && forms.announce.queue_thankyou.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE_THANKYOU\' | translate}}</label>\n <ui-select data-ng-model="queue.queue_thankyou" name="QUEUE_THANKYOU" theme="bootstrap" >\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n <ui-select-choices repeat="announce.path as announce in queueAnnounces | filter: $select.search">\n <div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_THANKYOU\' | translate }}\n </span>\n <span data-ng-show="(forms.announce.queue_thankyou.$touched || forms.announce.$submitted) && forms.announce.queue_thankyou.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE_THANKYOU -->\n\n </div>\n </div>\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n <!-- ADVANCED TAB -->\n <div class="tab-pane" id="tab_1_3">\n <form name="forms.advanced" data-ng-submit="forms.announce.$valid && forms.general.$valid && forms.advanced.$valid && updateVoiceQueue()" novalidate>\n\n <div class="row">\n <div class="col-md-6">\n\n <!-- START AUTOPAUSE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.autopause.$touched || forms.advanced.$submitted) && forms.advanced.autopause.$invalid}">\n <label class="control-label">{{\'APPLICATION_AUTOPAUSE\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="queue.autopause"\n type="checkbox"\n switch-active="{{ recordSwitch.isActive }}"\n switch-on-text="{{ recordSwitch.onText }}"\n switch-off-text="{{ recordSwitch.offText }}"\n switch-on-color="{{ recordSwitch.onColor }}"\n switch-off-color="{{ recordSwitch.offColor }}"\n switch-animate="{{ recordSwitch.animate }}"\n switch-size="{{ recordSwitch.size }}"\n switch-label="{{ recordSwitch.label }}"\n switch-icon="{{ recordSwitch.icon }}"\n switch-radio-off="{{ recordSwitch.radioOff }}"\n switch-label-width="{{ recordSwitch.labelWidth }}"\n switch-handle-width="{{ recordSwitch.handleWidth }}"\n ng-true-value="\'all\'"\n ng-false-value="\'no\'">\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_AUTOPAUSE\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.autopause.$touched || forms.advanced.$submitted) && forms.advanced.autopause.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END AUTOPAUSE -->\n\n <!-- START RINGINUSE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.ringinuse.$touched || forms.advanced.$submitted) && forms.advanced.ringinuse.$invalid}">\n <label class="control-label">{{\'APPLICATION_RINGINUSE\' | translate}}</label>\n <ui-select data-ng-model="queue.ringinuse" name="ringinuse" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_RINGINUSE\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.ringinuse.$touched || forms.advanced.$submitted) && forms.advanced.ringinuse.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END RINGINUSE -->\n\n <!-- START MEMBER_DELAY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.memberdelay.$touched || forms.advanced.$submitted) && forms.advanced.memberdelay.$invalid}">\n <label class="control-label">{{\'APPLICATION_MEMBER_DELAY\' | translate}}</label>\n <input type="number" min="0" name="memberdelay" placeholder="{{\'APPLICATION_MEMBER_DELAY\' | translate}}" class="form-control" data-ng-model="queue.memberdelay" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_MEMBER_DELAY\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.memberdelay.$touched || forms.advanced.$submitted) && forms.advanced.memberdelay.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MEMBER_DELAY -->\n\n <!-- START ACW -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.acw.$touched || forms.advanced.$submitted) && forms.advanced.acw.$invalid}">\n <label class="control-label">{{\'APPLICATION_ACW\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="queue.acw"\n type="checkbox"\n switch-active="{{ recordSwitch.isActive }}"\n switch-on-text="{{ recordSwitch.onText }}"\n switch-off-text="{{ recordSwitch.offText }}"\n switch-on-color="{{ recordSwitch.onColor }}"\n switch-off-color="{{ recordSwitch.offColor }}"\n switch-animate="{{ recordSwitch.animate }}"\n switch-size="{{ recordSwitch.size }}"\n switch-label="{{ recordSwitch.label }}"\n switch-icon="{{ recordSwitch.icon }}"\n switch-radio-off="{{ recordSwitch.radioOff }}"\n switch-label-width="{{ recordSwitch.labelWidth }}"\n switch-handle-width="{{ recordSwitch.handleWidth }}">\n <span class="help-block">\n {{ \'DESCRIPTION_ACW\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.acw.$touched || forms.advanced.$submitted) && forms.advanced.acw.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_ACW\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END ACW -->\n\n <!-- START SETINTERFACEVAR -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.setinterfacevar.$touched || forms.advanced.$submitted) && forms.advanced.setinterfacevar.$invalid}">\n <label class="control-label">{{\'APPLICATION_SETINTERFACEVAR\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="queue.setinterfacevar"\n type="checkbox"\n switch-active="{{ recordSwitch.isActive }}"\n switch-on-text="{{ recordSwitch.onText }}"\n switch-off-text="{{ recordSwitch.offText }}"\n switch-on-color="{{ recordSwitch.onColor }}"\n switch-off-color="{{ recordSwitch.offColor }}"\n switch-animate="{{ recordSwitch.animate }}"\n switch-size="{{ recordSwitch.size }}"\n switch-label="{{ recordSwitch.label }}"\n switch-icon="{{ recordSwitch.icon }}"\n switch-radio-off="{{ recordSwitch.radioOff }}"\n switch-label-width="{{ recordSwitch.labelWidth }}"\n switch-handle-width="{{ recordSwitch.handleWidth }}">\n <span class="help-block">\n {{ \'DESCRIPTION_SETINTERFACEVAR\' | translate }} <a href="https://wiki.xcallymotion.com/display/XMD/Queues+-+Voice+Channel" target="_blank">wiki</a>)\n </span>\n <span data-ng-show="(forms.advanced.setinterfacevar.$touched || forms.advanced.$submitted) && forms.advanced.setinterfacevar.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_SETINTERFACEVAR\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SETINTERFACEVAR -->\n\n <!-- START SETQUEUEVAR -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.setqueuevar.$touched || forms.advanced.$submitted) && forms.advanced.setqueuevar.$invalid}">\n <label class="control-label">{{\'APPLICATION_SETQUEUEVAR\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="queue.setqueuevar"\n type="checkbox"\n switch-active="{{ recordSwitch.isActive }}"\n switch-on-text="{{ recordSwitch.onText }}"\n switch-off-text="{{ recordSwitch.offText }}"\n switch-on-color="{{ recordSwitch.onColor }}"\n switch-off-color="{{ recordSwitch.offColor }}"\n switch-animate="{{ recordSwitch.animate }}"\n switch-size="{{ recordSwitch.size }}"\n switch-label="{{ recordSwitch.label }}"\n switch-icon="{{ recordSwitch.icon }}"\n switch-radio-off="{{ recordSwitch.radioOff }}"\n switch-label-width="{{ recordSwitch.labelWidth }}"\n switch-handle-width="{{ recordSwitch.handleWidth }}">\n <span class="help-block">\n {{ \'DESCRIPTION_SETQUEUEVAR\' | translate }} <a href="https://wiki.xcallymotion.com/display/XMD/Queues+-+Voice+Channel" target="_blank">wiki</a>)\n </span>\n <span data-ng-show="(forms.advanced.setqueuevar.$touched || forms.advanced.$submitted) && forms.advanced.setqueuevar.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_SETQUEUEVAR\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SETQUEUEVAR -->\n\n </div>\n <div class="col-md-6">\n\n <!-- START TIMEOUTRESTART -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.timeoutrestart.$touched || forms.advanced.$submitted) && forms.advanced.timeoutrestart.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUTRESTART\' | translate}}</label>\n <ui-select data-ng-model="queue.timeoutrestart" name="timeoutrestart" theme="bootstrap">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_TIMEOUTRESTART\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.timeoutrestart.$touched || forms.advanced.$submitted) && forms.advanced.timeoutrestart.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUTRESTART -->\n\n <!-- START MONITOR_FORMAT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.monitor_format.$touched || forms.advanced.$submitted) && forms.advanced.monitor_format.$invalid}">\n <label class="control-label">{{\'APPLICATION_MONITOR_FORMAT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="queue.monitor_format" name="monitor_format" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="monFormat.value as monFormat in monitorFormats | filter: $select.search">\n <div ng-bind-html="monFormat.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_MONITOR_FORMAT\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.monitor_format.$touched || forms.advanced.$submitted) && forms.advanced.monitor_format.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MONITOR_FORMAT -->\n\n <!-- START CONTEXT -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_CONTEXT\' | translate}}</label>\n <input type="text" name="context" placeholder="{{\'APPLICATION_CONTEXT\' | translate}}" class="form-control" data-ng-model="queue.context"/>\n <span class="help-block">\n {{ \'DESCRIPTION_QUEUE_VOICE_CONTEXT\' | translate }}\n </span>\n </div>\n <!-- END CONTEXT -->\n\n <!-- START ACW_TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.acwTimeout.$touched || forms.advanced.$submitted) && forms.advanced.acwTimeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_ACW_TIMEOUT\' | translate}}</label>\n <input type="number" min="0" name="acwTimeout" placeholder="{{\'APPLICATION_ACW_TIMEOUT\' | translate}}" class="form-control" data-ng-model="queue.acwTimeout" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_ACW_TIMEOUT\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.acwTimeout.$touched || forms.advanced.$submitted) && forms.advanced.acwTimeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END ACW_TIMEOUT -->\n\n <!-- START SETQUEUEENTRYVAR -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.setqueueentryvar.$touched || forms.advanced.$submitted) && forms.advanced.setqueueentryvar.$invalid}">\n <label class="control-label">{{\'APPLICATION_SETQUEUEENTRYVAR\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="queue.setqueueentryvar"\n type="checkbox"\n switch-active="{{ recordSwitch.isActive }}"\n switch-on-text="{{ recordSwitch.onText }}"\n switch-off-text="{{ recordSwitch.offText }}"\n switch-on-color="{{ recordSwitch.onColor }}"\n switch-off-color="{{ recordSwitch.offColor }}"\n switch-animate="{{ recordSwitch.animate }}"\n switch-size="{{ recordSwitch.size }}"\n switch-label="{{ recordSwitch.label }}"\n switch-icon="{{ recordSwitch.icon }}"\n switch-radio-off="{{ recordSwitch.radioOff }}"\n switch-label-width="{{ recordSwitch.labelWidth }}"\n switch-handle-width="{{ recordSwitch.handleWidth }}">\n <span class="help-block">\n {{ \'DESCRIPTION_SETQUEUEENTRYVAR\' | translate }} <a href="https://wiki.xcallymotion.com/display/XMD/Queues+-+Voice+Channel" target="_blank">wiki</a>)\n </span>\n <span data-ng-show="(forms.advanced.setqueueentryvar.$touched || forms.advanced.$submitted) && forms.advanced.setqueueentryvar.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_SETQUEUEENTRYVAR\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SETQUEUEENTRYVAR -->\n\n </div>\n </div>\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ADVANCED TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'), -a.put("app/channels/voice/realtime/view/abandoned/abandoned.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initAbandoned()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns class="ui-grid" ui-grid-pagination ui-grid-auto-resize>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/voice/realtime/view/agent/agent.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initAgents()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns class="ui-grid" ui-grid-pagination ui-grid-auto-resize>\n <span us-spinner spinner-key="grid-spinner" spinner-start-active="true"></span>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/voice/realtime/view/agent/agent.modal.info.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_SIP_CLIENT_INFO\' | translate }}</h3>\n</div>\n<div class="modal-body">\n<div data-ng-if="agent.ipaddr" class="well">\n <div>{{agent.ipaddr}}:{{agent.port}}</div>\n <div>{{agent.fullcontact}}</div>\n <div>{{agent.useragent}}</div>\n <div>{{agent.lastms}}</div>\n</div>\n<div data-ng-if="!agent.ipaddr" class="alert alert-danger" role="alert">\n {{\'MESSAGE_NO_AVAILABLE_INFO\' | translate}}\n</div>\n<!-- hidden random uiselect, needed to recompile the modal every time and show the content -->\n<ui-select multiple class="hide" ng-model="item.queues" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_QUEUE\' | translate}}">{{$item.name}}</ui-select-match>\n <ui-select-choices repeat="queue.name as queue in queues | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n</ui-select>\n<!-- -->\n</div>\n<div class="modal-footer">\n <button class="btn default" type="button" ng-click="close()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'),a.put("app/channels/voice/realtime/view/agent/queue.modal.add.html",'<div class="modal-header" data-ng-init="init()">\n <h3 class="modal-title">{{ \'APPLICATION_QUEUES\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <div class="form-group row">\n <label class="col-md-2 control-label" style="margin-top: 7px;">{{\'APPLICATION_QUEUE\' | translate}}:</label>\n <div class="col-md-6">\n <ui-select multiple ng-model="item.queues" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_QUEUE\' | translate}}">{{$item.name}}</ui-select-match>\n <ui-select-choices repeat="queue.name as queue in queues | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-2">\n <button class="btn btn-success bts-sm" type="button" ng-click="joinQueue()" ng-disabled="form.$invalid">{{ \'APPLICATION_JOIN_QUEUE\' | translate }}</button>\n </div>\n</div>\n<div class="form-group row">\n<label class="col-md-2 control-label" style="margin-top: 7px;">{{\'APPLICATION_PENALTY\' | translate}}</label>\n <div class="input-group input-small mbottom20 col-md-6">\n <input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="params.penalty" readonly>\n <div class="spinner-buttons input-group-btn btn-group-vertical">\n <button type="button" class="btn spinner-up btn-xs blue" data-ng-click="params.penalty=params.penalty+1">\n <i class="fa fa-angle-up"></i>\n </button>\n <button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!params.penalty" data-ng-click="params.penalty=params.penalty-1">\n <i class="fa fa-angle-down"></i>\n </button>\n </div>\n </div>\n</div>\n<div>\n <div data-ng-if="queueTable" ui-grid="queueTable" name="queueTable" ui-grid-resize-columns class="ui-grid" ui-grid-pagination ui-grid-auto-resize>\n <span us-spinner spinner-key="agentqueue-spinner" spinner-start-active="true"></span>\n <div class="watermark" ng-show="!queueTable.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n</div>\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn default" type="button" ng-click="close()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'),a.put("app/channels/voice/realtime/view/outbound/outbound.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initDials()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns class="ui-grid" ui-grid-auto-resize ui-grid-pagination>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/voice/realtime/view/parameter/parameter.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initParameters()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns class="ui-grid" ui-grid-tree-view ui-grid-expandable-row ui-grid-pagination ui-grid-auto-resize>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/voice/realtime/view/queue/queue.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row mbottom20" data-ng-init="initQueues()">\n <ui-select ng-model="item.queue" theme="bootstrap" class="col-md-6" data-ng-change="getAgents(item.queue)" required>\n <ui-select-match placeholder="{{\'APPLICATION_QUEUE\' | translate}}" allow-clear>{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="queue.name as queue in queues | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n</div>\n<div class="row">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns class="ui-grid" ui-grid-pagination ui-grid-auto-resize>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/voice/realtime/view/queuecalls/queuecalls.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initQueues()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns class="ui-grid" ui-grid-auto-resize ui-grid-pagination>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/voice/realtime/view/telephone/telephone.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initTelephones()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns class="ui-grid" ui-grid-pagination ui-grid-auto-resize>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/voice/realtime/view/telephone/telephone.modal.info.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_INTERFACE_INFO\' | translate }}</h3>\n</div>\n<div class="modal-body">\n<div data-ng-if="telephone.ipaddr" class="well">\n <div>{{telephone.ipaddr}}:{{telephone.port}}</div>\n <div>{{telephone.fullcontact}}</div>\n <div>{{telephone.useragent}}</div>\n <div>{{telephone.lastms}}</div>\n</div>\n<div data-ng-if="!telephone.ipaddr" class="alert alert-danger" role="alert">\n {{\'MESSAGE_NO_AVAILABLE_INFO\' | translate}}\n</div>\n</div>\n<div class="modal-footer">\n <button class="btn default" type="button" ng-click="close()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'),a.put("app/channels/voice/realtime/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-directions"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-earphones-alt"></i>\n <a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-energy"></i>\n <a href="/channels/voice/realtime/view/agents">{{ \'APPLICATION_REALTIME\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <div>\n <nav class="navbar navbar-default" role="navigation">\n <div class="collapse navbar-collapse">\n <ul class="nav navbar-nav">\n <li data-ng-class="{\'active\': $state.is(\'main.channels.voice.realtime.view.agents\')}">\n <a href="/channels/voice/realtime/view/agents">\n {{\'APPLICATION_AGENTS\' | translate}}\n </a>\n </li>\n <li data-ng-class="{\'active\': $state.is(\'main.channels.voice.realtime.view.telephones\')}" data-ng-show="Auth.isAdmin()">\n <a href="/channels/voice/realtime/view/telephones">\n {{\'APPLICATION_TELEPHONES\' | translate}}\n </a>\n </li>\n <li data-ng-class="{\'active\': $state.is(\'main.channels.voice.realtime.view.queues\')}">\n <a href="/channels/voice/realtime/view/queues">\n {{\'APPLICATION_QUEUES\' | translate}}\n </a>\n </li>\n <li data-ng-class="{\'active\': $state.is(\'main.channels.voice.realtime.view.queuecalls\')}">\n <a href="/channels/voice/realtime/view/queuecalls">\n {{\'APPLICATION_QUEUE_CALLS\' | translate}}\n </a>\n </li>\n <li data-ng-class="{\'active\': $state.is(\'main.channels.voice.realtime.view.parameters\')}">\n <a href="/channels/voice/realtime/view/parameters">\n {{\'APPLICATION_QUEUE_PARAMETERS\' | translate}}\n </a>\n </li>\n <li data-ng-class="{\'active\': $state.is(\'main.channels.voice.realtime.view.abandoned\')}">\n <a href="/channels/voice/realtime/view/abandoned">\n {{\'APPLICATION_QUEUE_ABANDONED\' | translate}}\n </a>\n </li>\n <li data-ng-class="{\'active\': $state.is(\'main.channels.voice.realtime.view.outbound\')}">\n <a href="/channels/voice/realtime/view/outbound">\n {{\'APPLICATION_OUTBOUND_CALLS\' | translate}}\n </a>\n </li>\n <li>\n <a href="#">\n <b>|{{\'APPLICATION_SHOW_TIMERS\' | translate}} </b><input\n bs-switch\n class="form-control"\n ng-model="showTimers"\n type="checkbox"\n name="showTimers"\n switch-active="{{ timerSwitch.isActive }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ timerSwitch.onColor }}"\n switch-off-color="{{ timerSwitch.offColor }}"\n switch-animate="{{ timerSwitch.animate }}"\n switch-size="{{ timerSwitch.size }}"\n switch-label="{{ timerSwitch.label }}"\n switch-icon="{{ timerSwitch.icon }}"\n switch-radio-off="{{ timerSwitch.radioOff }}"\n switch-label-width="{{ timerSwitch.labelWidth }}"\n switch-handle-width="{{ timerSwitch.handleWidth }}"><b>|</b>\n </a>\n </li>\n </ul>\n </div>\n </nav>\n </div>\n <div ui-view></div>\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/voice/recording/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-earphones-alt"></i>\n <a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-play"></i>\n <a href="#">{{ \'APPLICATION_RECORDINGS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="fa fa-play font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_RECORDINGS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length && Auth.isAdmin()">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/voice/route/inbound/list/create.modal.html",'<div class="modal-header" data-ng-init="getContexts()">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_ROUTE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="forms.extension" novalidate>\n\n <!-- START EXTEN -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.extension.exten.$touched || forms.extension.$submitted) && forms.extension.exten.$invalid || existRoute}">\n <label class="control-label">{{\'APPLICATION_PHONE_NUMBER\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="exten" placeholder="{{\'APPLICATION_PHONE_NUMBER\' | translate}}" class="form-control" data-ng-model="item.exten" data-ng-pattern="settings.patternName" required/>\n <span data-ng-show="(forms.extension.exten.$touched || forms.extension.$submitted) && forms.extension.exten.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END EXTEN -->\n\n <!-- START CONTEXT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.extension.context.$touched || forms.extension.$submitted) && forms.extension.context.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONTEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.context" name="context" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="context.name as context in voiceContexts | filter: $select.search">\n <div ng-bind-html="context.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_CONTEXT\' | translate }}\n </span>\n <span data-ng-show="(forms.extension.context.$touched || forms.extension.$submitted) && forms.extension.context.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CONTEXT -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="ok()" ng-disabled="forms.extension.$invalid || existRoute">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n<!-- <pre>\n {{item | json}}\n</pre> -->\n'),a.put("app/channels/voice/route/inbound/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-earphones-alt"></i>\n <a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-call-in"></i>\n <a href="/channels/voice/routes/inbound/list">{{ \'APPLICATION_INBOUND\' | translate }} {{ \'APPLICATION_ROUTES\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-users font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_INBOUND\' | translate }} {{ \'APPLICATION_ROUTES\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle " href="#" data-ng-click="create()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_ROUTE\' | translate }}\n </a>\n </div>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter class="ui-grid" ui-grid-draggable-rows>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/voice/route/inbound/view/view.applications.html",'<div ui-view class="profile-content">\n<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_ACTIONS\' | translate}}</span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="selectedRows.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle " href="/channels/voice/routes/inbound/view/{{route.id}}/application" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_APPLICATION\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div data-ng-if="showGrid" ui-grid="gridOptions" ui-grid-resize-columns class="grid" ui-grid-selection ui-grid-draggable-rows ui-grid-auto-resize>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n</div>\n</div>\n'),a.put("app/channels/voice/route/inbound/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getRoute()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-earphones-alt"></i>\n <a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-reload"></i>\n <a href="/channels/voice/routes/inbound/list">{{ \'APPLICATION_INBOUND\' | translate }} {{ \'APPLICATION_ROUTES\' | translate }}</a>\n <i data-ng-show="route" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="route">\n <a href="#">{{route.exten}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/inboundroute.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{route.exten}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.channels.voice.routes.inbound.view.settings\')}">\n <a data-ng-click="deselectAndRedirect(\'/channels/voice/routes/inbound/view/\'+route.id+\'/settings\')">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n'+" <li data-ng-class=\"{active: $state.is('main.channels.voice.routes.inbound.view.applications') || $state.is('main.channels.voice.routes.inbound.view.application') || $state.is('main.channels.voice.routes.inbound.view.applications.settings')}\">\n <a data-ng-click=\"deselectAndRedirect('/channels/voice/routes/inbound/view/'+route.id+'/applications')\">\n <i class=\"icon-list\"></i>\n {{ 'APPLICATION_ACTIONS' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class=\"profile-content\">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n"),a.put("app/channels/voice/route/inbound/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_INBOUND\' | translate}} {{ \'APPLICATION_ROUTE\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body" data-ng-init="getContexts()">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateRoute()" novalidate>\n\n <!-- START EXTEN -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.exten.$touched || forms.general.$submitted) && forms.general.exten.$invalid}">\n <label class="control-label">{{\'APPLICATION_PHONE_NUMBER\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="exten" placeholder="{{\'APPLICATION_PHONE_NUMBER\' | translate}}" class="form-control" data-ng-model="route.exten" required/>\n <span data-ng-show="(forms.general.exten.$touched || forms.general.$submitted) && forms.general.exten.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END EXTEN -->\n\n <!-- START CONTEXT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.context.$touched || forms.general.$submitted) && forms.general.context.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONTEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="route.context" name="context" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="context.name as context in voiceContexts | filter: $select.search">\n <div ng-bind-html="context.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_CONTEXT\' | translate }}\n </span>\n <span data-ng-show="(forms.general.context.$touched || forms.general.$submitted) && forms.general.context.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CONTEXT -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="route.description"/></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/voice/route/internal/list/create.modal.html",'<div class="modal-header" data-ng-init="getContexts()">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_ROUTE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="forms.extension" novalidate>\n\n <!-- START EXTEN -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.extension.exten.$touched || forms.extension.$submitted) && forms.extension.exten.$invalid || existRoute}">\n <label class="control-label">{{\'APPLICATION_PHONE_NUMBER\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="exten" placeholder="{{\'APPLICATION_PHONE_NUMBER\' | translate}}" class="form-control" data-ng-model="item.exten" data-ng-pattern="settings.patternName" required/>\n <span data-ng-show="(forms.extension.exten.$touched || forms.extension.$submitted) && forms.extension.exten.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END EXTEN -->\n\n <!-- START CONTEXT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.extension.context.$touched || forms.extension.$submitted) && forms.extension.context.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONTEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.context" name="context" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="context.name as context in voiceContexts | filter: $select.search">\n <div ng-bind-html="context.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_CONTEXT\' | translate }}\n </span>\n <span data-ng-show="(forms.extension.context.$touched || forms.extension.$submitted) && forms.extension.context.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CONTEXT -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="ok()" ng-disabled="forms.extension.$invalid || existRoute">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n<!-- <pre>\n {{item | json}}\n</pre> -->\n'),a.put("app/channels/voice/route/internal/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-earphones-alt"></i>\n <a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-reload"></i>\n <a href="/voice/routes/internal/list">{{ \'APPLICATION_INTERNAL\' | translate }} {{ \'APPLICATION_ROUTES\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-users font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_INTERNAL\' | translate }} {{ \'APPLICATION_ROUTES\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle " href="#" data-ng-click="create()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_ROUTE\' | translate }}\n </a>\n </div>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter class="ui-grid" ui-grid-draggable-rows>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'), -a.put("app/channels/voice/route/internal/view/view.applications.html",'<div ui-view class="profile-content">\n<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_ACTIONS\' | translate}}</span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="selectedRows.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle " href="/channels/voice/routes/internal/view/{{route.id}}/application" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_APPLICATION\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div data-ng-if="showGrid" ui-grid="gridOptions" ui-grid-resize-columns class="grid" ui-grid-selection ui-grid-draggable-rows ui-grid-auto-resize>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n</div>\n</div>\n'),a.put("app/channels/voice/route/internal/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getRoute()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-earphones-alt"></i>\n <a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-reload"></i>\n <a href="/channels/voice/routes/internal/list">{{ \'APPLICATION_INTERNAL\' | translate }} {{ \'APPLICATION_ROUTES\' | translate }}</a>\n <i data-ng-show="route" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="route">\n <a href="#">{{route.exten}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/internalroute.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{route.exten}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.channels.voice.routes.internal.view.settings\')}">\n <a data-ng-click="deselectAndRedirect(\'/channels/voice/routes/internal/view/\'+route.id+\'/settings\')">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n'+" <li data-ng-class=\"{active: $state.is('main.channels.voice.routes.internal.view.applications') || $state.is('main.channels.voice.routes.internal.view.application') || $state.is('main.channels.voice.routes.internal.view.applications.settings')}\">\n <a data-ng-click=\"deselectAndRedirect('/channels/voice/routes/internal/view/'+route.id+'/applications')\">\n <i class=\"icon-list\"></i>\n {{ 'APPLICATION_ACTIONS' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class=\"profile-content\">\n </div>\n <!-- <pre>\n {{route | json}}\n </pre> -->\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n"),a.put("app/channels/voice/route/internal/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_INTERNAL\' | translate}} {{ \'APPLICATION_ROUTE\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body" data-ng-init="getContexts()">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateRoute()" novalidate>\n\n <!-- START EXTEN -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.exten.$touched || forms.general.$submitted) && forms.general.exten.$invalid}">\n <label class="control-label">{{\'APPLICATION_PHONE_NUMBER\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="exten" placeholder="{{\'APPLICATION_PHONE_NUMBER\' | translate}}" class="form-control" data-ng-model="route.exten" required/>\n <span data-ng-show="(forms.general.exten.$touched || forms.general.$submitted) && forms.general.exten.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END EXTEN -->\n\n <!-- START CONTEXT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.context.$touched || forms.general.$submitted) && forms.general.context.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONTEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="route.context" name="context" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="context.name as context in voiceContexts | filter: $select.search">\n <div ng-bind-html="context.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_CONTEXT\' | translate }}\n </span>\n <span data-ng-show="(forms.general.context.$touched || forms.general.$submitted) && forms.general.context.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CONTEXT -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="route.description"/></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/voice/route/outbound/list/create.modal.html",'<div class="modal-header" data-ng-init="getContexts()">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_ROUTE\' | translate }}</h3>\n</div>\n<div class="modal-body" data-ng-init="getTags()">\n <form name="forms.extension" novalidate>\n\n <!-- START EXTEN -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.extension.exten.$touched || forms.extension.$submitted) && forms.extension.exten.$invalid || existRoute}">\n <label class="control-label">{{\'APPLICATION_DESTINATION_PATTERN\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="exten" placeholder="{{\'APPLICATION_DESTINATION_PATTERN\' | translate}}" class="form-control" data-ng-model="item.exten" data-ng-pattern="settings.patternName" required/>\n <span data-ng-show="(forms.extension.exten.$touched || forms.extension.$submitted) && forms.extension.exten.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END EXTEN -->\n\n <!-- START CONTEXT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.extension.context.$touched || forms.extension.$submitted) && forms.extension.context.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONTEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.context" name="context" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="context.name as context in voiceContexts | filter: $select.search">\n <div ng-bind-html="context.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_CONTEXT\' | translate }}\n </span>\n <span data-ng-show="(forms.extension.context.$touched || forms.extension.$submitted) && forms.extension.context.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CONTEXT -->\n\n <!-- START TAG -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.extension.tag.$touched || forms.extension.$submitted) && forms.extension.tag.$invalid}">\n <label class="control-label">{{ \'APPLICATION_TAG\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.tag" name="tag" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_TAG\' | translate }}" data-ng-init="item.tag = \'--\'">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="tag.name as tag in tags | filter: $select.search">\n <div ng-bind-html="tag.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.extension.tag.$touched || forms.extension.$submitted) && forms.extension.tag.$invalid && forms.extension.tag.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TAG -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="ok()" ng-disabled="forms.extension.$invalid || existRoute">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n<!-- <pre>\n {{item | json}}\n</pre> -->\n'),a.put("app/channels/voice/route/outbound/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-earphones-alt"></i>\n <a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-call-out"></i>\n <a href="/channels/voice/routes/outbound/list">{{ \'APPLICATION_OUTBOUND\' | translate }} {{ \'APPLICATION_ROUTES\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-users font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_OUTBOUND\' | translate }} {{ \'APPLICATION_ROUTES\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle " href="#" data-ng-click="create()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_ROUTE\' | translate }}\n </a>\n </div>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter class="ui-grid" ui-grid-draggable-rows>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/voice/route/outbound/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getRoute()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-earphones-alt"></i>\n <a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-call-out"></i>\n <a href="/channels/voice/routes/outbound/list">{{ \'APPLICATION_OUTBOUND\' | translate }} {{ \'APPLICATION_ROUTES\' | translate }}</a>\n <i data-ng-show="route" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="route">\n <a href="#">{{route.exten}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/outboundroute.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{route.exten}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.channels.voice.routes.outbound.view.settings\')}">\n <a data-ng-click="deselectAndRedirect(\'/channels/voice/routes/outbound/view/\'+route.id+\'/settings\')">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n'+" <li data-ng-class=\"{active: $state.is('main.channels.voice.routes.outbound.view.routes') || $state.is('main.channels.voice.routes.outbound.view.route') || $state.is('main.channels.voice.routes.outbound.view.routes.settings')}\">\n <a data-ng-click=\"deselectAndRedirect('/channels/voice/routes/outbound/view/'+route.id+'/routes')\">\n <i class=\"icon-list\"></i>\n {{ 'APPLICATION_ACTIONS' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class=\"profile-content\">\n </div>\n <!-- <pre>\n {{route | json}}\n </pre> -->\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n"),a.put("app/channels/voice/route/outbound/view/view.route.html",'<div class="row" data-ng-init="initApplication(true);getIntervals();">\n <div class="col-md-12">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_NEW_ROUTE\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <div class="profile-usertitle-name">\n {{(main.app.name | translate) || \'Application\'}}\n </div>\n <wizard on-finish="addApplication()">\n <wz-step title="{{\'APPLICATION_SETTINGS\' | translate}}" canexit="formValidation(forms.info.$valid)">\n <form name="forms.info" novalidate>\n <button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n <!-- START APP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.app.$touched || forms.info.$submitted) && forms.info.app.$invalid}">\n <label class="control-label">{{ \'APPLICATION_APPLICATION\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="main.app" name="app" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_APPLICATION\' | translate }}">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="app in applications | filter: $select.search">\n <div ng-bind-html="app.name | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.info.app.$touched || forms.info.$submitted) && forms.info.app.$invalid && forms.info.app.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END APP -->\n <div id="Dial" class="app-settings" ng-slide-down="main.app.value == \'Dial\' && main.app.type == \'outboundDial\'" lazy-render duration="1">\n <!-- START TRUNK -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.trunk.$touched || forms.info.$submitted) && forms.info.trunk.$invalid}">\n <label class="control-label">{{\'APPLICATION_TRUNK\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.appdata[0]" data-ng-init="application.appdata[0] = null" name="trunk" theme="bootstrap" required data-ng-disabled="!items.length">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="trunk.name as trunk in items | filter: $select.search">\n <div ng-bind-html="trunk.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="items.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_TRUNKS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/trunks/list">{{\'APPLICATION_TRUNKS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.info.trunk.$touched || forms.info.$submitted) && forms.info.trunk.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TRUNK -->\n\n <!-- START CALLERID -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.callerID.$touched || forms.info.$submitted) && forms.info.callerID.$invalid}">\n <label class="control-label">{{ \'APPLICATION_CALLERID\' | translate }}</label>\n <input type="text" name="callerID" pattern=\'^"[a-zA-Z0-9_.-]*" <[a-zA-Z0-9_.-]*>\' placeholder=\'"name" <number>\' class="form-control" data-ng-model="application.appdata[1]" data-ng-init="application.appdata[1] = null">\n <span class="help-block">\n {{ \'DESCRIPTION_OUTBOUND_CALLERID\' | translate }}\n </span>\n <span data-ng-show="(forms.info.callerID.$touched || forms.info.$submitted) && forms.info.callerID.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CALLERID -->\n\n <!-- START PREFIX -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.prefix.$touched || forms.info.$submitted) && forms.info.prefix.$invalid}">\n <label class="control-label">{{ \'APPLICATION_PREFIX\' | translate }}</label>\n <input type="text" name="prefix" placeholder="{{ \'APPLICATION_PREFIX\' | translate }}" class="form-control" data-ng-model="application.appdata[2]" data-ng-init="application.appdata[2] = null">\n <span class="help-block">\n {{ \'DESCRIPTION_OUTBOUND_PREFIX\' | translate }}\n </span>\n <span data-ng-show="(forms.info.prefix.$touched || forms.info.$submitted) && forms.info.prefix.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PREFIX -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{ \'APPLICATION_TIMEOUT\' | translate }}</label>\n <input type="text" pattern="[0-9]+" name="timeout" placeholder="" class="form-control" data-ng-model="application.appdata[3]" data-ng-init="application.appdata[3] = null">\n <span data-ng-show="(forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START OPTIONS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid}">\n <label class="control-label">{{ \'APPLICATION_OPTIONS\' | translate }}</label>\n <input type="text" name="app_options" placeholder="" class="form-control" data-ng-model="application.appdata[4]" data-ng-init="application.appdata[4] = null">\n <span data-ng-show="(forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid && forms.settings.app_options.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END OPTIONS -->\n\n <!-- START URL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid}">\n <label class="control-label">{{ \'APPLICATION_URL\' | translate }}</label>\n <input type="text" name="url" placeholder="{{ \'APPLICATION_URL\' | translate }}" class="form-control" data-ng-model="application.appdata[5]" data-ng-init="application.appdata[5] = null">\n <span data-ng-show="(forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid && forms.settings.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END URL -->\n\n </div>\n <div id="Custom" class="app-settings" ng-slide-down="main.app.type == \'custom\'" lazy-render duration="1">\n\n <!-- START CUSTOMAPP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.customApp.$touched || forms.info.$submitted) && forms.info.customApp.$invalid}">\n <label class="control-label">{{ \'APPLICATION_CUSTOM_APP\' | translate }}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="customApp" placeholder="{{ \'APPLICATION_CUSTOM_APP\' | translate }}" class="form-control" data-ng-model="application.app" data-ng-init="application.appdata[0] = null" required>\n <span data-ng-show="(forms.info.customApp.$touched || forms.info.$submitted) && forms.info.customApp.$invalid && forms.info.customApp.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CUSTOMAPP -->\n\n <!-- START APPDATA -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.appdata.$touched || forms.info.$submitted) && forms.info.appdata.$invalid}">\n <label class="control-label">{{ \'APPLICATION_ARGUMENTS\' | translate }}</label>\n <input type="text" name="appdata" placeholder="{{ \'APPLICATION_ARGUMENTS\' | translate }}" class="form-control" data-ng-model="application.appdata[0]" data-ng-init="application.appdata[1] = null">\n <span data-ng-show="(forms.info.appdata.$touched || forms.info.$submitted) && forms.info.appdata.$invalid && forms.info.appdata.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END APPDATA -->\n </div>\n <button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </form>\n </wz-step>\n <wz-step title="{{\'APPLICATION_INTERVAL\' | translate}}" canexit="formValidation(forms.interval.IntervalId.$valid || forms.interval.hasOwnProperty(\'t_from\') || forms.interval.intType.$modelValue === \'always\')">\n <form name="forms.interval" novalidate>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n <!-- START INTERVAL_TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.interval.intType.$touched || forms.interval.$submitted) && forms.interval.intType.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERVAL_TYPE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="interval.intType" theme="bootstrap" name="intType" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="intType.value as intType in $application.intTypes | filter: $select.search">\n {{$translate.instant(intType.name)}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.interval.intType.$touched || forms.interval.$submitted) && forms.interval.intType.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVAL_TYPE -->\n <div id="customInterval" class="app-settings" ng-slide-down="interval.intType == \'custom\'" lazy-render duration="1">\n <!-- START TIME -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n <div class="input-group input-large">\n <fieldset class="pull-left" ng-disabled="interval.alwaysTime"><uib-timepicker name="t_from" data-ng-model="interval.t_from" show-meridian="false" show-spinners="false"></uib-timepicker></fieldset>\n <div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n <fieldset ng-disabled="interval.alwaysTime"><uib-timepicker name="t_to" data-ng-model="interval.t_to" show-meridian="false" show-spinners="false"></uib-timepicker></fieldset>\n <label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="interval.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label>\n </div>\n </div>\n <!-- END TIME -->\n\n <!-- START WEEKDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="interval.wd_from" theme="bootstrap" name="wd_from">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{weekDay.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="interval.wd_to" theme="bootstrap" name="wd_to">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{weekDay.name | translate}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END WEEKDAY -->\n\n <!-- START MONTHDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="interval.md_from" theme="bootstrap" name="md_from">\n <ui-select-match>{{$select.selected === \'always\' ? \'APPLICATION_ALWAYS\' : $select.selected | translate}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search">\n {{monthDay === \'always\' ? \'APPLICATION_ALWAYS\' : monthDay | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="interval.md_to" theme="bootstrap" name="md_to">\n <ui-select-match>{{$select.selected === \'always\' ? \'APPLICATION_ALWAYS\' : $select.selected | translate}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search">\n {{monthDay === \'always\' ? \'APPLICATION_ALWAYS\' : monthDay | translate}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTHDAY -->\n\n <!-- START MONTH -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="interval.m_from" theme="bootstrap" name="m_from">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{month.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="interval.m_to" theme="bootstrap" name="m_to">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{month.name | translate}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTH -->\n </div>\n\n <div id="customInterval" class="app-settings" ng-slide-down="interval.intType == \'list\'" lazy-render duration="1">\n\n <!-- START INTERVALS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.interval.IntervalId.$touched || forms.interval.$submitted) && forms.interval.IntervalId.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERVALS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="interval.IntervalId" theme="bootstrap" name="IntervalId" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="interval.id as interval in Intervals | filter: $select.search">\n {{interval.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.interval.IntervalId.$touched || forms.interval.$submitted) && forms.interval.IntervalId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVALS -->\n\n </div>\n\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'), -a.put("app/channels/voice/route/outbound/view/view.routeSettings.html",'<div class="row" data-ng-init="initApplication();getApplication();getIntervals();">\n <div class="col-md-12">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_APPLICATION_SETTINGS\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="updateRoute(\'routes\')">\n <div class="profile-usertitle-name">\n {{(main.app.name | translate) || \'Application\'}}\n </div>\n <wz-step title="{{\'APPLICATION_APPLICATION\' | translate}}" canexit="formValidation(forms.info.$valid)">\n <form name="forms.info" novalidate>\n <button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n <div id="Dial" class="app-settings" ng-slide-down="main.app.value == \'Dial\' && main.app.type == \'outboundDial\'" lazy-render duration="1">\n\n <!-- START TRUNK -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.trunk.$touched || forms.info.$submitted) && forms.info.trunk.$invalid}">\n <label class="control-label">{{\'APPLICATION_TRUNK\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="route.Applications[selectedApp].appdata[0]" name="trunk" theme="bootstrap" required data-ng-disabled="!items.length">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="trunk.name as trunk in items | filter: $select.search">\n <div ng-bind-html="trunk.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="items.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_TRUNKS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/trunks/list">{{\'APPLICATION_TRUNKS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.info.trunk.$touched || forms.info.$submitted) && forms.info.trunk.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TRUNK -->\n\n <!-- START CALLERID -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.callerID.$touched || forms.info.$submitted) && forms.info.callerID.$invalid}">\n <label class="control-label">{{ \'APPLICATION_CALLERID\' | translate }}</label>\n <input type="text" name="callerID" pattern=\'^"[a-zA-Z0-9_.-]*" <[a-zA-Z0-9_.-]*>\' placeholder=\'"name" <number>\' class="form-control" data-ng-model="route.Applications[selectedApp].appdata[1]">\n <span class="help-block">\n {{ \'DESCRIPTION_OUTBOUND_CALLERID\' | translate }} "name" <number>\n </span>\n <span data-ng-show="(forms.info.callerID.$touched || forms.info.$submitted) && forms.info.callerID.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CALLERID -->\n\n <!-- START PREFIX -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.prefix.$touched || forms.info.$submitted) && forms.info.prefix.$invalid}">\n <label class="control-label">{{ \'APPLICATION_PREFIX\' | translate }}</label>\n <input type="text" name="prefix" placeholder="{{ \'APPLICATION_PREFIX\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[2]">\n <span class="help-block">\n {{ \'DESCRIPTION_OUTBOUND_PREFIX\' | translate }}\n </span>\n <span data-ng-show="(forms.info.prefix.$touched || forms.info.$submitted) && forms.info.prefix.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PREFIX -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{ \'APPLICATION_TIMEOUT\' | translate }}</label>\n <input type="text" pattern="[0-9]+" name="timeout" placeholder="" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[3]">\n <span data-ng-show="(forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START OPTIONS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid}">\n <label class="control-label">{{ \'APPLICATION_OPTIONS\' | translate }}</label>\n <input type="text" name="app_options" placeholder="" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[4]">\n <span data-ng-show="(forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid && forms.settings.app_options.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END OPTIONS -->\n\n <!-- START URL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid}">\n <label class="control-label">{{ \'APPLICATION_URL\' | translate }}</label>\n <input type="text" name="url" placeholder="{{ \'APPLICATION_URL\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[5]">\n <span data-ng-show="(forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid && forms.settings.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END URL -->\n </div>\n <div id="Custom" class="app-settings" ng-slide-down="main.app.type == \'custom\'" lazy-render duration="1">\n\n <!-- START CUSTOMAPP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.customApp.$touched || forms.info.$submitted) && forms.info.customApp.$invalid}">\n <label class="control-label">{{ \'APPLICATION_CUSTOM_APP\' | translate }}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="customApp" placeholder="{{ \'APPLICATION_CUSTOM_APP\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].app" required>\n <span data-ng-show="(forms.info.customApp.$touched || forms.info.$submitted) && forms.info.customApp.$invalid && forms.info.customApp.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CUSTOMAPP -->\n\n <!-- START APPDATA -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.appdata.$touched || forms.info.$submitted) && forms.info.appdata.$invalid}">\n <label class="control-label">{{ \'APPLICATION_ARGUMENTS\' | translate }}</label>\n <input type="text" name="appdata" placeholder="{{ \'APPLICATION_ARGUMENTS\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[0]">\n <span data-ng-show="(forms.info.appdata.$touched || forms.info.$submitted) && forms.info.appdata.$invalid && forms.info.appdata.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END APPDATA -->\n </div>\n <button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </form>\n </wz-step>\n <wz-step title="{{\'APPLICATION_INTERVAL\' | translate}}" canexit="formValidation(forms.interval.IntervalId.$valid || forms.interval.hasOwnProperty(\'t_from\') || forms.interval.intType.$modelValue === \'always\')">\n <form name="forms.interval" novalidate>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n <!-- START INTERVAL_TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.interval.intType.$touched || forms.interval.$submitted) && forms.interval.intType.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERVAL_TYPE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="interval.intType" theme="bootstrap" name="intType" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="intType.value as intType in $application.intTypes | filter: $select.search">\n {{intType.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.interval.intType.$touched || forms.interval.$submitted) && forms.interval.intType.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVAL_TYPE -->\n <div id="customInterval" class="app-settings" ng-slide-down="interval.intType == \'custom\'" lazy-render duration="1">\n <!-- START TIME -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n <div class="input-group input-large">\n <fieldset class="pull-left" ng-disabled="interval.alwaysTime"><uib-timepicker name="t_from" data-ng-model="interval.t_from" show-meridian="false" show-spinners="false"></uib-timepicker></fieldset>\n <div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n <fieldset ng-disabled="interval.alwaysTime"><uib-timepicker name="t_to" data-ng-model="interval.t_to" show-meridian="false" show-spinners="false"></uib-timepicker></fieldset>\n </div>\n </div>\n <!-- END TIME -->\n\n <!-- <label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="interval.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label> -->\n <!-- START ALWAYS -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ALWAYS\' | translate }}</label>\n <div class="input-group input-large">\n <label class="control-label pointer-cursor">\n <input\n bs-switch\n data-ng-model="interval.alwaysTime"\n type="checkbox"\n switch-active="{{ alwaysSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ alwaysSwitch.onColor }}"\n switch-off-color="{{ alwaysSwitch.offColor }}"\n switch-animate="{{ alwaysSwitch.animate }}"\n switch-size="{{ alwaysSwitch.size }}"\n switch-label="{{ alwaysSwitch.label }}"\n switch-icon="{{ alwaysSwitch.icon }}"\n switch-radio-off="{{ alwaysSwitch.radioOff }}"\n switch-label-width="{{ alwaysSwitch.labelWidth }}"\n switch-handle-width="{{ alwaysSwitch.handleWidth }}">\n </label>\n </div>\n </div>\n <!-- END ALWAYS -->\n\n <!-- START WEEKDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="interval.wd_from" theme="bootstrap" name="wd_from">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{weekDay.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="interval.wd_to" theme="bootstrap" name="wd_to">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{weekDay.name | translate}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END WEEKDAY -->\n\n <!-- START MONTHDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="interval.md_from" theme="bootstrap" name="md_from">\n <ui-select-match>{{$select.selected === \'always\' ? \'APPLICATION_ALWAYS\' : $select.selected | translate}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search">\n {{monthDay === \'always\' ? \'APPLICATION_ALWAYS\' : monthDay | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="interval.md_to" theme="bootstrap" name="md_to">\n <ui-select-match>{{$select.selected === \'always\' ? \'APPLICATION_ALWAYS\' : $select.selected | translate}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search">\n {{monthDay === \'always\' ? \'APPLICATION_ALWAYS\' : monthDay | translate}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTHDAY -->\n\n <!-- START MONTH -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="interval.m_from" theme="bootstrap" name="m_from">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{month.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="interval.m_to" theme="bootstrap" name="m_to">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{month.name | translate}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTH -->\n </div>\n\n <div id="customInterval" class="app-settings" ng-slide-down="interval.intType == \'list\'" lazy-render duration="1">\n\n <!-- START INTERVALS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.interval.IntervalId.$touched || forms.interval.$submitted) && forms.interval.IntervalId.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERVALS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="interval.IntervalId" theme="bootstrap" name="IntervalId" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="interval.id as interval in Intervals | filter: $select.search">\n {{interval.name | translate}}\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="intervals.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_INTERVAL_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/intervals/list">{{\'APPLICATION_INTERVALS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.interval.IntervalId.$touched || forms.interval.$submitted) && forms.interval.IntervalId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVALS -->\n\n </div>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/voice/route/outbound/view/view.routes.html",'<div ui-view class="profile-content">\n<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_ACTIONS\' | translate}}</span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="selectedRows.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle " href="/channels/voice/routes/outbound/view/{{route.id}}/route" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_ROUTE\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div data-ng-if="showGrid" ui-grid="gridOptions" ui-grid-resize-columns class="grid" ui-grid-selection ui-grid-draggable-rows ui-grid-auto-resize>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n</div>\n</div>\n'),a.put("app/channels/voice/route/outbound/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_OUTBOUND\' | translate}} {{ \'APPLICATION_ROUTE\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body" data-ng-init="getContexts();getTags();">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateRoute()" novalidate>\n\n <!-- START EXTEN -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.exten.$touched || forms.general.$submitted) && forms.general.exten.$invalid}">\n <label class="control-label">{{\'APPLICATION_DESTINATION_PATTERN\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="exten" placeholder="{{\'APPLICATION_DESTINATION_PATTERN\' | translate}}" class="form-control" data-ng-model="route.exten" required/>\n <span data-ng-show="(forms.general.exten.$touched || forms.general.$submitted) && forms.general.exten.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END EXTEN -->\n\n <!-- START CUTDIGITS -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_CUTDIGITS\' | translate}}</label>\n <input type="text" pattern="[0-9]+" class="form-control" name="cutdigits" data-ng-model="route.cutdigits">\n <span class="help-block">\n </span>\n </div>\n <!-- END CUTDIGITS -->\n\n <!-- START TAG -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.tag.$touched || forms.general.$submitted) && forms.general.tag.$invalid}">\n <label class="control-label">{{\'APPLICATION_TAG\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="route.tag" name="tag" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="tag.name as tag in tags | filter: $select.search">\n <div ng-bind-html="tag.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.general.tag.$touched || forms.general.$submitted) && forms.general.tag.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TAG -->\n\n <!-- START CONTEXT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.context.$touched || forms.general.$submitted) && forms.general.context.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONTEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="route.context" name="context" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="context.name as context in voiceContexts | filter: $select.search">\n <div ng-bind-html="context.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_CONTEXT\' | translate }}\n </span>\n <span data-ng-show="(forms.general.context.$touched || forms.general.$submitted) && forms.general.context.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CONTEXT -->\n\n <!-- START RECORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.record.$touched || forms.general.$submitted) && forms.general.record.$invalid}">\n <label class="control-label">{{\'APPLICATION_RECORDING\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="route.record"\n type="checkbox"\n switch-active="{{ recordSwitch.isActive }}"\n switch-on-text="{{ recordSwitch.onText }}"\n switch-off-text="{{ recordSwitch.offText }}"\n switch-on-color="{{ recordSwitch.onColor }}"\n switch-off-color="{{ recordSwitch.offColor }}"\n switch-animate="{{ recordSwitch.animate }}"\n switch-size="{{ recordSwitch.size }}"\n switch-label="{{ recordSwitch.label }}"\n switch-icon="{{ recordSwitch.icon }}"\n switch-radio-off="{{ recordSwitch.radioOff }}"\n switch-label-width="{{ recordSwitch.labelWidth }}"\n switch-handle-width="{{ recordSwitch.handleWidth }}">\n <span data-ng-show="(forms.general.record.$touched || forms.general.$submitted) && forms.general.record.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END RECORD -->\n\n <!-- START RECORDINGFORMAT -->\n <div data-ng-if="route.record" class="form-group" data-ng-class="{\'has-error\': (forms.general.recordingFormat.$touched || forms.general.$submitted) && forms.general.recordingFormat.$invalid}">\n <label class="control-label">{{\'APPLICATION_FORMAT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="route.recordingFormat" name="recordingFormat" theme="bootstrap" data-ng-required="route.record">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="format in [\'wav\',\'gsm\'] | filter: $select.search">\n <div ng-bind-html="format | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.general.recordingFormat.$touched || forms.general.$submitted) && forms.general.recordingFormat.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END RECORDINGFORMAT -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="route.description"/></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/voice/route/view.application.html",'\n<div class="row" data-ng-init="initApplication(true); getIntervals();">\n <div class="col-md-12">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_NEW_APPLICATION\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="addApplication()">\n <div class="profile-usertitle-name">\n {{(main.app.name | translate) || \'Application\'}}\n </div>\n <wz-step title="{{\'APPLICATION_APPLICATION\' | translate}}" canexit="formValidation(forms.settings.$valid)">\n <form name="forms.settings" novalidate>\n\n <button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n <!-- START APP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app.$touched || forms.settings.$submitted) && forms.settings.app.$invalid}">\n <label class="control-label">{{ \'APPLICATION_APPLICATION\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="main.app" name="app" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_APPLICATION\' | translate }}">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="app in $application.applications| filter: $select.search">\n <div ng-bind-html="app.name | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.app.$touched || forms.settings.$submitted) && forms.settings.app.$invalid && forms.settings.app.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END APP -->\n\n <div id="Queue" class="app-settings" ng-slide-down="main.app.value == \'Queue\'" lazy-render duration="1">\n <!-- START QUEUE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.queue.$touched || forms.settings.$submitted) && forms.settings.queue.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.appdata[0]" data-ng-init="application.appdata[0] = null" name="queue" theme="bootstrap" required data-ng-disabled="!items.length">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="queue.name as queue in items | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="items.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_QUEUES_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/channels/voice/queues/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.settings.queue.$touched || forms.settings.$submitted) && forms.settings.queue.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE -->\n\n <!-- START OPTIONS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid}">\n <label class="control-label">{{\'APPLICATION_OPTIONS\' | translate}}</label>\n <input type="text" pattern="[^,]*" name="app_options" placeholder="{{ \'APPLICATION_OPTIONS\' | translate }}" class="form-control" data-ng-model="application.appdata[1]" data-ng-init="application.appdata[1] = null">\n <span data-ng-show="(forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid && forms.settings.app_options.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END OPTIONS -->\n <!-- START URL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid}">\n <label class="control-label">{{ \'APPLICATION_URL\' | translate }}</label>\n <input type="text" pattern="[^,]*" name="url" placeholder="{{ \'APPLICATION_URL\' | translate }}" class="form-control" data-ng-model="application.appdata[2]" data-ng-init="application.appdata[2] = null">\n <span data-ng-show="(forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid && forms.settings.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid && forms.settings.url.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END URL -->\n\n <!-- START APPLICATION_ANNOUNCE_OVERRIDE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.audiofile.$touched || forms.settings.$submitted) && forms.settings.audiofile.$invalid}">\n <label class="control-label">{{\'APPLICATION_ANNOUNCE_OVERRIDE\' | translate}}</label>\n <ui-select data-ng-model="application.appdata[3]" data-ng-init="application.appdata[3] = null" name="audiofile" theme="bootstrap" data-ng-disabled="!items2.length">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n <ui-select-choices repeat="settings.soundPath+\'/\'+audio.save_name as audio in items2 | filter: $select.search">\n <div ng-bind-html="audio.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="items2.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_SOUNDS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/sounds/list">{{\'APPLICATION_SOUNDS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.settings.audiofile.$touched || forms.settings.$submitted) && forms.settings.audiofile.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END APPLICATION_ANNOUNCE_OVERRIDE -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{ \'APPLICATION_TIMEOUT\' | translate }}</label>\n <input type="text" pattern="[0-9]+" name="timeout" placeholder="" class="form-control" data-ng-model="application.appdata[4]" data-ng-init="application.appdata[4] = null">\n <span data-ng-show="(forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START AGI -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.agi.$touched || forms.settings.$submitted) && forms.settings.agi.$invalid}">\n <label class="control-label">{{ \'APPLICATION_AGI\' | translate }}</label>\n <input type="text" pattern="[^,]*" name="agi" placeholder="{{ \'APPLICATION_AGI\' | translate }}" class="form-control" data-ng-model="application.appdata[5]" data-ng-init="application.appdata[6] = null">\n <span data-ng-show="(forms.settings.agi.$touched || forms.settings.$submitted) && forms.settings.agi.$invalid && forms.settings.agi.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.settings.agi.$touched || forms.settings.$submitted) && forms.settings.agi.$invalid && forms.settings.agi.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END AGI -->\n\n <!-- START MACRO -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.macro.$touched || forms.settings.$submitted) && forms.settings.macro.$invalid}">\n <label class="control-label">{{ \'APPLICATION_MACRO\' | translate }}</label>\n <input type="text" pattern="[^,]*" name="macro" placeholder="{{ \'APPLICATION_MACRO\' | translate }}" class="form-control" data-ng-model="application.appdata[6]" data-ng-init="application.appdata[6] = null">\n <span data-ng-show="(forms.settings.macro.$touched || forms.settings.$submitted) && forms.settings.macro.$invalid && forms.settings.macro.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.settings.macro.$touched || forms.settings.$submitted) && forms.settings.macro.$invalid && forms.settings.macro.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END MACRO -->\n\n <!-- START GOSUB -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.gosub.$touched || forms.settings.$submitted) && forms.settings.gosub.$invalid}">\n <label class="control-label">{{ \'APPLICATION_GOSUB\' | translate }}</label>\n <input type="text" pattern="[^,]*" name="gosub" placeholder="{{ \'APPLICATION_GOSUB\' | translate }}" class="form-control" data-ng-model="application.appdata[7]" data-ng-init="application.appdata[7] = null">\n <span data-ng-show="(forms.settings.gosub.$touched || forms.settings.$submitted) && forms.settings.gosub.$invalid && forms.settings.gosub.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.settings.gosub.$touched || forms.settings.$submitted) && forms.settings.gosub.$invalid && forms.settings.gosub.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END GOSUB -->\n\n <!-- START RULE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.rule.$touched || forms.settings.$submitted) && forms.settings.rule.$invalid}">\n <label class="control-label">{{ \'APPLICATION_RULE\' | translate }}</label>\n <input type="text" pattern="[^,]*" name="rule" placeholder="{{ \'APPLICATION_RULE\' | translate }}" class="form-control" data-ng-model="application.appdata[8]" data-ng-init="application.appdata[8] = null">\n <span data-ng-show="(forms.settings.rule.$touched || forms.settings.$submitted) && forms.settings.rule.$invalid && forms.settings.rule.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.settings.rule.$touched || forms.settings.$submitted) && forms.settings.rule.$invalid && forms.settings.rule.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END RULE -->\n\n <!-- START POSITION -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.position.$touched || forms.settings.$submitted) && forms.settings.position.$invalid}">\n <label class="control-label">{{ \'APPLICATION_POSITION\' | translate }}</label>\n <input type="number" min="0" name="position" placeholder="{{ \'APPLICATION_POSITION\' | translate }}" class="form-control" data-ng-model="application.appdata[9]" data-ng-init="application.appdata[9] = null">\n <span data-ng-show="(forms.settings.position.$touched || forms.settings.$submitted) && forms.settings.position.$invalid && forms.settings.position.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END POSITION -->\n\n <!-- START ANSWER -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ANSWER\' | translate }}</label>\n <div class="input-group input-large">\n <label class="control-label pointer-cursor">\n <input\n bs-switch\n data-ng-init="application.answer=true"\n data-ng-model="application.answer"\n type="checkbox"\n switch-active="{{ alwaysSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ alwaysSwitch.onColor }}"\n switch-off-color="{{ alwaysSwitch.offColor }}"\n switch-animate="{{ alwaysSwitch.animate }}"\n switch-size="{{ alwaysSwitch.size }}"\n switch-label="{{ alwaysSwitch.label }}"\n switch-icon="{{ alwaysSwitch.icon }}"\n switch-radio-off="{{ alwaysSwitch.radioOff }}"\n switch-label-width="{{ alwaysSwitch.labelWidth }}"\n switch-handle-width="{{ alwaysSwitch.handleWidth }}">\n </label>\n </div>\n </div>\n <!-- END ANSWER -->\n\n </div>\n <div id="Playback" class="app-settings" ng-slide-down="main.app.value == \'Playback\'" lazy-render duration="1">\n <!-- START AUDIOFILE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.audiofile.$touched || forms.settings.$submitted) && forms.settings.audiofile.$invalid}">\n <label class="control-label">{{\'APPLICATION_AUDIO_FILE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.appdata[0]" data-ng-init="application.appdata[0] = null" name="audiofile" theme="bootstrap" required data-ng-disabled="!items.length">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n <ui-select-choices repeat="settings.soundPath+\'/\'+audio.save_name as audio in items | filter: $select.search">\n <div ng-bind-html="audio.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="items.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_SOUNDS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/sounds/list">{{\'APPLICATION_SOUNDS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.settings.audiofile.$touched || forms.settings.$submitted) && forms.settings.audiofile.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END AUDIOFILE -->\n\n <!-- START OPTIONS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid}">\n <label class="control-label">{{\'APPLICATION_OPTIONS\' | translate}}</label>\n <input type="text" name="app_options" placeholder="{{ \'APPLICATION_OPTIONS\' | translate }}" class="form-control" data-ng-model="application.appdata[1]" data-ng-init="application.appdata[1] = null">\n <span data-ng-show="(forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END OPTIONS -->\n\n <!-- START ANSWER -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ANSWER\' | translate }}</label>\n <div class="input-group input-large">\n <label class="control-label pointer-cursor">\n <input\n bs-switch\n data-ng-init="application.answer=true"\n data-ng-model="application.answer"\n type="checkbox"\n switch-active="{{ alwaysSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ alwaysSwitch.onColor }}"\n switch-off-color="{{ alwaysSwitch.offColor }}"\n switch-animate="{{ alwaysSwitch.animate }}"\n switch-size="{{ alwaysSwitch.size }}"\n switch-label="{{ alwaysSwitch.label }}"\n switch-icon="{{ alwaysSwitch.icon }}"\n switch-radio-off="{{ alwaysSwitch.radioOff }}"\n switch-label-width="{{ alwaysSwitch.labelWidth }}"\n switch-handle-width="{{ alwaysSwitch.handleWidth }}">\n </label>\n </div>\n </div>\n <!-- END ANSWER -->\n </div>\n <div id="Dial" class="app-settings" ng-slide-down="main.app.value == \'Dial\' && !main.app.type" lazy-render duration="1">\n <!-- START INTERFACE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.interface.$touched || forms.settings.$submitted) && forms.settings.interface.$invalid}">\n <label class="control-label">{{ \'APPLICATION_TYPE\' | translate }}/{{ \'APPLICATION_IDENTIFIER\' | translate }}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="interface" placeholder="SIP/0000" class="form-control" data-ng-model="application.appdata[0]" data-ng-init="application.appdata[0] = null" required>\n <span data-ng-show="(forms.settings.interface.$touched || forms.settings.$submitted) && forms.settings.interface.$invalid && forms.settings.interface.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERFACE -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{ \'APPLICATION_TIMEOUT\' | translate }}</label>\n <input type="text" pattern="[0-9]+" name="timeout" placeholder="" class="form-control" data-ng-model="application.appdata[1]" data-ng-init="application.appdata[1] = null">\n <span data-ng-show="(forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START OPTIONS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid}">\n <label class="control-label">{{ \'APPLICATION_OPTIONS\' | translate }}</label>\n <input type="text" name="app_options" placeholder="" class="form-control" data-ng-model="application.appdata[2]" data-ng-init="application.appdata[2] = null">\n <span data-ng-show="(forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid && forms.settings.app_options.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END OPTIONS -->\n\n <!-- START URL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid}">\n <label class="control-label">{{ \'APPLICATION_URL\' | translate }}</label>\n <input type="text" name="url" placeholder="{{ \'APPLICATION_URL\' | translate }}" class="form-control" data-ng-model="application.appdata[3]" data-ng-init="application.appdata[3] = null">\n <span data-ng-show="(forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid && forms.settings.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END URL -->\n </div>\n <div id="internalDial" class="app-settings" ng-slide-down="main.app.value == \'Dial\' && main.app.type == \'internalDial\'" lazy-render duration="1">\n <!-- START INTERNAL DIAL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.user.$touched || forms.settings.$submitted) && forms.settings.user.$invalid}">\n <label class="control-label">{{\'APPLICATION_USER\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.appdata[0]" data-ng-init="application.appdata[0] = null" name="user" theme="bootstrap" required data-ng-disabled="!items.length">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="user.name as user in items | filter: $select.search">\n <div ng-bind-html="user.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.user.$touched || forms.settings.$submitted) && forms.settings.user.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERNAL DIAL -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{ \'APPLICATION_TIMEOUT\' | translate }}</label>\n <input type="text" pattern="[0-9]+" name="timeout" placeholder="" class="form-control" data-ng-model="application.appdata[1]" data-ng-init="application.appdata[1] = null">\n <span data-ng-show="(forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START OPTIONS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid}">\n <label class="control-label">{{ \'APPLICATION_OPTIONS\' | translate }}</label>\n <input type="text" name="app_options" placeholder="" class="form-control" data-ng-model="application.appdata[2]" data-ng-init="application.appdata[2] = null">\n <span data-ng-show="(forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid && forms.settings.app_options.$error.required" class="help-block help-block-error">\n <strong>{{ \'APPLICATION_WARNING\' | translate }}!</strong> {{ \'MESSAGE_REQUIRED_FIELD\' | translate }}.\n </span>\n </div>\n <!-- END OPTIONS -->\n\n <!-- START URL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid}">\n <label class="control-label">{{ \'APPLICATION_URL\' | translate }}</label>\n <input type="text" name="url" placeholder="{{ \'APPLICATION_URL\' | translate }}" class="form-control" data-ng-model="application.appdata[3]" data-ng-init="application.appdata[3] = null">\n <span data-ng-show="(forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid && forms.settings.url.$error.required" class="help-block help-block-error">\n <strong>{{ \'APPLICATION_WARNING\' | translate }}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END URL -->\n\n </div>\n <div id="Dial" class="app-settings" ng-slide-down="main.app.value == \'Dial\' && main.app.type == \'externalDial\'" lazy-render duration="1">\n <!-- START TRUNK -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.trunk.$touched || forms.info.$submitted) && forms.info.trunk.$invalid}">\n <label class="control-label">{{ \'APPLICATION_TRUNK\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.appdata[0]" data-ng-init="application.appdata[0] = null" name="trunk" theme="bootstrap" required data-ng-disabled="!items.length">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="trunk.name as trunk in items | filter: $select.search">\n <div ng-bind-html="trunk.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="items.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_TRUNKS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{ \'APPLICATION_GO_TO\' | translate }} <a href="/tools/trunks/list">{{ \'APPLICATION_TRUNKS\' | translate }}</a>\n </p>\n </div>\n <span data-ng-show="(forms.info.trunk.$touched || forms.info.$submitted) && forms.info.trunk.$error.required" class="help-block help-block-error">\n <strong>{{ \'APPLICATION_WARNING\' | translate }}!</strong> {{ \'MESSAGE_REQUIRED_FIELD\' | translate }}.\n </span>\n </div>\n <!-- END TRUNK -->\n\n <!-- START PHONE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.phone.$touched || forms.settings.$submitted) && forms.settings.phone.$invalid}">\n <label class="control-label">{{ \'APPLICATION_PHONE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="phone" placeholder="{{\'APPLICATION_PHONE\' | translate}}" class="form-control" data-ng-model="application.appdata[1]" data-ng-init="application.appdata[1] = null" required>\n <span data-ng-show="(forms.settings.phone.$touched || forms.settings.$submitted) && forms.settings.phone.$invalid && forms.settings.phone.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PHONE -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{ \'APPLICATION_TIMEOUT\' | translate }}</label>\n <input type="text" pattern="[0-9]+" name="timeout" placeholder="" class="form-control" data-ng-model="application.appdata[2]" data-ng-init="application.appdata[2] = null">\n <span data-ng-show="(forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START OPTIONS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid}">\n <label class="control-label">{{ \'APPLICATION_OPTIONS\' | translate }}</label>\n <input type="text" name="app_options" placeholder="" class="form-control" data-ng-model="application.appdata[3]" data-ng-init="application.appdata[3] = null">\n <span data-ng-show="(forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid && forms.settings.app_options.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END OPTIONS -->\n\n <!-- START URL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid}">\n <label class="control-label">{{ \'APPLICATION_URL\' | translate }}</label>\n <input type="text" name="url" placeholder="{{ \'APPLICATION_URL\' | translate }}" class="form-control" data-ng-model="application.appdata[4]" data-ng-init="application.appdata[4] = null">\n <span data-ng-show="(forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid && forms.settings.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END URL -->\n </div>\n <div id="RingGroup" class="app-settings" ng-slide-down="main.app.value == \'Dial\' && main.app.type == \'RingGroup\'" lazy-render duration="1">\n <!-- START ITEMS -->\n <input type="hidden" name="items" placeholder="{{ \'APPLICATION_URL\' | translate }}" class="form-control" data-ng-model="application.appdata[0]" data-ng-init="initRingGroup()">\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.project.$touched || forms.settings.$submitted) && forms.settings.items.$invalid}">\n <label class="control-label">{{\'APPLICATION_ITEMS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <div class="col-md-12" id="multi-select-user-by-role"></div>\n <span data-ng-show="(forms.settings.items.$touched || forms.settings.$submitted) && forms.settings.items.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END ITEMS -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{ \'APPLICATION_TIMEOUT\' | translate }}</label>\n <input type="text" pattern="[0-9]+" name="timeout" placeholder="" class="form-control" data-ng-model="application.appdata[1]" data-ng-init="application.appdata[1] = null">\n <span data-ng-show="(forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START OPTIONS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid}">\n <label class="control-label">{{ \'APPLICATION_OPTIONS\' | translate }}</label>\n <input type="text" name="app_options" placeholder="" class="form-control" data-ng-model="application.appdata[2]" data-ng-init="application.appdata[2] = null">\n <span data-ng-show="(forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid && forms.settings.app_options.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END OPTIONS -->\n\n <!-- START URL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid}">\n <label class="control-label">{{ \'APPLICATION_URL\' | translate }}</label>\n <input type="text" name="url" placeholder="{{ \'APPLICATION_URL\' | translate }}" class="form-control" data-ng-model="application.appdata[3]" data-ng-init="application.appdata[3] = null">\n <span data-ng-show="(forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid && forms.settings.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END URL -->\n </div>\n <div id="AGI" class="app-settings" ng-slide-down="main.app.value == \'AGI\'" lazy-render duration="1">\n <!-- START PROJECT -->\n <input type="hidden" name="url" placeholder="{{ \'APPLICATION_URL\' | translate }}" class="form-control" data-ng-model="application.appdata[0]" data-ng-init="application.appdata[0] = \'agi://127.0.0.1/square\'">\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.project.$touched || forms.settings.$submitted) && forms.settings.project.$invalid}">\n <label class="control-label">{{\'APPLICATION_PROJECT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.appdata[1]" data-ng-init="application.appdata[1] = null" name="project" theme="bootstrap" required data-ng-disabled="!items.length">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="project.name as project in items | filter: $select.search">\n <div ng-bind-html="project.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="items.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_PROJECTS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/square/projects/list">{{\'APPLICATION_PROJECTS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.settings.project.$touched || forms.settings.$submitted) && forms.settings.project.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PROJECT -->\n </div>\n <div id="Goto" class="app-settings" ng-slide-down="main.app.value == \'Goto\'" lazy-render duration="1">\n <!-- START CONTEXT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.context.$touched || forms.settings.$submitted) && forms.settings.context.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONTEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.appdata[0]" data-ng-init="application.appdata[0] = null" name="context" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="context.name as context in items | filter: $select.search">\n <div ng-bind-html="context.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.context.$touched || forms.settings.$submitted) && forms.settings.context.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CONTEXT -->\n\n <!-- START EXTENSION -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.extension.$touched || forms.settings.$submitted) && forms.settings.extension.$invalid}">\n <label class="control-label">{{ \'APPLICATION_EXTENSION\' | translate }}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="extension" placeholder="" class="form-control" data-ng-model="application.appdata[1]" data-ng-init="application.appdata[1] = null" required>\n <span data-ng-show="(forms.settings.extension.$touched || forms.settings.$submitted) && forms.settings.extension.$invalid && forms.settings.extension.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END EXTENSION -->\n\n <!-- START PRIORITY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.priority.$touched || forms.settings.$submitted) && forms.settings.priority.$invalid}">\n <label class="control-label">{{ \'APPLICATION_PRIORITY\' | translate }}<span class="required" aria-required="true">*</span></label>\n <input type="text" pattern="[0-9]+" name="priority" placeholder="" class="form-control" data-ng-model="application.appdata[2]" data-ng-init="application.appdata[2] = null" required>\n <span data-ng-show="(forms.settings.priority.$touched || forms.settings.$submitted) && forms.settings.priority.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PRIORITY -->\n </div>\n <div id="Hangup" class="app-settings" ng-slide-down="main.app.value == \'Hangup\'" lazy-render duration="1">\n <!-- START HANGUPCAUSE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.hangupCause.$touched || forms.settings.$submitted) && forms.settings.hangupCause.$invalid}">\n <label class="control-label">{{\'APPLICATION_HANGUP_CAUSE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.appdata[0]" data-ng-init="application.appdata[0] = null" theme="bootstrap" name="hangupCause" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="hangupCause.value as hangupCause in $application.hangupCauses | filter: $select.search">\n <div ng-bind-html="hangupCause.name | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.hangupCause.$touched || forms.settings.$submitted) && forms.settings.hangupCause.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END HANGUPCAUSE -->\n </div>\n <div id="Set" class="app-settings" ng-slide-down="main.app.value == \'Set\' && !main.app.type" lazy-render duration="1">\n <!-- START VARIABLE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.variable.$touched || forms.settings.$submitted) && forms.settings.variable.$invalid}">\n <label class="control-label">{{ \'APPLICATION_VARIABLE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="variable" placeholder="" class="form-control" data-ng-model="application.variable" data-ng-init="application.appdata[0] = null" data-ng-change="updateSetAppdata()" required>\n <span data-ng-show="(forms.settings.variable.$touched || forms.settings.$submitted) && forms.settings.variable.$invalid && forms.settings.variable.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END VARIABLE -->\n\n <!-- START VARVALUE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.varvalue.$touched || forms.settings.$submitted) && forms.settings.varvalue.$invalid}">\n <label class="control-label">{{ \'APPLICATION_VALUE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="varvalue" placeholder="" class="form-control" data-ng-model="application.value" data-ng-change="updateSetAppdata()" required>\n <span data-ng-show="(forms.settings.varvalue.$touched || forms.settings.$submitted) && forms.settings.varvalue.$invalid && forms.settings.varvalue.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END VARVALUE -->\n </div>\n <div id="Custom" class="app-settings" ng-slide-down="main.app.type == \'custom\'" lazy-render duration="1">\n\n <!-- START CUSTOMAPP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.customApp.$touched || forms.settings.$submitted) && forms.settings.customApp.$invalid}">\n <label class="control-label">{{ \'APPLICATION_CUSTOM_APP\' | translate }}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="customApp" placeholder="{{ \'APPLICATION_CUSTOM_APP\' | translate }}" class="form-control" data-ng-model="application.app" required>\n <span data-ng-show="(forms.settings.customApp.$touched || forms.settings.$submitted) && forms.settings.customApp.$invalid && forms.settings.customApp.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CUSTOMAPP -->\n\n <!-- START APPDATA -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.appdata.$touched || forms.settings.$submitted) && forms.settings.appdata.$invalid}">\n <label class="control-label">{{ \'APPLICATION_ARGUMENTS\' | translate }}</label>\n <input type="text" name="appdata" placeholder="{{ \'APPLICATION_ARGUMENTS\' | translate }}" class="form-control" data-ng-model="application.appdata[0]" data-ng-init="application.appdata[0] = null">\n <span data-ng-show="(forms.settings.appdata.$touched || forms.settings.$submitted) && forms.settings.appdata.$invalid && forms.settings.appdata.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END APPDATA -->\n </div>\n <div id="Voicemail" class="app-settings" ng-slide-down="main.app.value == \'Voicemail\'" lazy-render duration="1">\n <!-- START VOICEMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.voicemail.$touched || forms.settings.$submitted) && forms.settings.voicemail.$invalid}">\n <label class="control-label">{{ \'APPLICATION_MAILBOX\' | translate }}@{{ \'APPLICATION_CONTEXT\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="application.appdata[0]" data-ng-init="application.appdata[0] = null" theme="bootstrap" name="voicemail" required data-ng-disabled="!items.length">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.mailbox}}</ui-select-match>\n <ui-select-choices repeat="mailbox.mailbox+\'@\'+mailbox.context as mailbox in items | filter: $select.search">\n <div ng-bind-html="mailbox.mailbox | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="items.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_VOICEMAILS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/channels/voice/voicemails/list">{{\'APPLICATION_VOICEMAILS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.settings.voicemail.$touched || forms.settings.$submitted) && forms.settings.voicemail.$invalid && forms.settings.voicemail.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END VOICEMAIL -->\n\n <!-- START OPTIONS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid}">\n <label class="control-label">{{\'APPLICATION_OPTIONS\' | translate}}</label>\n <input type="text" name="app_options" placeholder="{{ \'APPLICATION_OPTIONS\' | translate }}" class="form-control" data-ng-model="application.appdata[1]" data-ng-init="application.appdata[1] = null">\n </div>\n <!-- END OPTIONS -->\n </div>\n\n <div id="videoOn" class="app-settings" ng-slide-down="main.app.value == \'Set\' && main.app.type == \'videoOn\'" lazy-render duration="1">\n <!-- START DOMAIN -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.domain.$touched || forms.settings.$submitted) && forms.settings.domain.$invalid}">\n <label class="control-label">{{ \'APPLICATION_DOMAIN\' | translate }}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="domain" placeholder="" class="form-control" data-ng-model="application.domain" data-ng-init="application.appdata[0] = null;application.domain = \'xrtceu1.xcally.com\';application.theme = \'YOUR-THEME\';updateVideoOnAppdata();" data-ng-change="updateVideoOnAppdata()" required>\n <span data-ng-show="(forms.settings.domain.$touched || forms.settings.$submitted) && forms.settings.domain.$invalid && forms.settings.domain.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END DOMAIN -->\n\n <!-- START THEME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.theme.$touched || forms.settings.$submitted) && forms.settings.theme.$invalid}">\n <label class="control-label">{{ \'APPLICATION_THEME\' | translate }}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="theme" placeholder="" class="form-control" data-ng-model="application.theme" data-ng-change="updateVideoOnAppdata()" required>\n <span data-ng-show="(forms.settings.theme.$touched || forms.settings.$submitted) && forms.settings.theme.$invalid && forms.settings.theme.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END THEME -->\n </div>\n <button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </form>\n </wz-step>\n <wz-step title="{{\'APPLICATION_INTERVAL\' | translate}}" canexit="formValidation(forms.interval.IntervalId.$valid || forms.interval.hasOwnProperty(\'t_from\') || forms.interval.intType.$modelValue === \'always\')">\n <form name="forms.interval" novalidate>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n <!-- START INTERVAL_TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.interval.intType.$touched || forms.interval.$submitted) && forms.interval.intType.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERVAL_TYPE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="interval.intType" theme="bootstrap" name="intType" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="intType.value as intType in $application.intTypes | filter: $select.search">\n <div ng-bind-html="intType.name | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.interval.intType.$touched || forms.interval.$submitted) && forms.interval.intType.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVAL_TYPE -->\n <div id="customInterval" class="app-settings" ng-slide-down="interval.intType == \'custom\'" lazy-render duration="1">\n <!-- START TIME -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n <div class="input-group input-large">\n <fieldset class="pull-left" ng-disabled="interval.alwaysTime"><uib-timepicker name="t_from" data-ng-model="interval.t_from" show-meridian="false" show-spinners="false"></uib-timepicker></fieldset>\n <div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n <fieldset ng-disabled="interval.alwaysTime"><uib-timepicker name="t_to" data-ng-model="interval.t_to" show-meridian="false" show-spinners="false"></uib-timepicker></fieldset>\n </div>\n </div>\n <!-- END TIME -->\n\n <!-- <label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="interval.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label> -->\n <!-- START ALWAYS -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ALWAYS\' | translate }}</label>\n <div class="input-group input-large">\n <label class="control-label pointer-cursor">\n <input\n bs-switch\n data-ng-model="interval.alwaysTime"\n type="checkbox"\n switch-active="{{ alwaysSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ alwaysSwitch.onColor }}"\n switch-off-color="{{ alwaysSwitch.offColor }}"\n switch-animate="{{ alwaysSwitch.animate }}"\n switch-size="{{ alwaysSwitch.size }}"\n switch-label="{{ alwaysSwitch.label }}"\n switch-icon="{{ alwaysSwitch.icon }}"\n switch-radio-off="{{ alwaysSwitch.radioOff }}"\n switch-label-width="{{ alwaysSwitch.labelWidth }}"\n switch-handle-width="{{ alwaysSwitch.handleWidth }}">\n </label>\n </div>\n </div>\n <!-- END ALWAYS -->\n\n <!-- START WEEKDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="interval.wd_from" theme="bootstrap" name="wd_from">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{weekDay.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="interval.wd_to" theme="bootstrap" name="wd_to">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{weekDay.name | translate}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END WEEKDAY -->\n\n <!-- START MONTHDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="interval.md_from" theme="bootstrap" name="md_from">\n <ui-select-match>{{$select.selected === \'always\' ? \'APPLICATION_ALWAYS\' : $select.selected | translate}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search">\n {{monthDay === \'always\' ? \'APPLICATION_ALWAYS\' : monthDay | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="interval.md_to" theme="bootstrap" name="md_to">\n <ui-select-match>{{$select.selected === \'always\' ? \'APPLICATION_ALWAYS\' : $select.selected | translate}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search">\n {{monthDay === \'always\' ? \'APPLICATION_ALWAYS\' : monthDay | translate}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTHDAY -->\n\n <!-- START MONTH -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="interval.m_from" theme="bootstrap" name="m_from">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{month.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="interval.m_to" theme="bootstrap" name="m_to">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{month.name | translate}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTH -->\n </div>\n\n <div id="customInterval" class="app-settings" ng-slide-down="interval.intType == \'list\'" lazy-render duration="1">\n\n <!-- START INTERVALS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.interval.IntervalId.$touched || forms.interval.$submitted) && forms.interval.IntervalId.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERVALS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="interval.IntervalId" theme="bootstrap" name="IntervalId" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="interval.id as interval in Intervals | filter: $select.search">\n {{interval.name | translate}}\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="Intervals.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_INTERVAL_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/intervals/list">{{\'APPLICATION_INTERVALS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.interval.IntervalId.$touched || forms.interval.$submitted) && forms.interval.IntervalId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVALS -->\n\n </div>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'), -a.put("app/channels/voice/route/view.applicationSettings.html",'\n<div class="row" data-ng-init="initApplication();getIntervals();getApplication();">\n <div class="col-md-12">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_APPLICATION_SETTINGS\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="updateRoute(\'applications\')">\n <div class="profile-usertitle-name">\n {{(main.app.name | translate) || \'Application\'}}\n </div>\n <wz-step title="{{\'APPLICATION_APPLICATION\' | translate}}" canexit="formValidation(forms.settings.$valid)">\n <form name="forms.settings" novalidate>\n <!-- <pre>\n {{application | json}}\n </pre> -->\n\n <button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n\n <div id="Queue" class="app-settings" ng-slide-down="main.app.value == \'Queue\'" lazy-render duration="1">\n <!-- START QUEUE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.queue.$touched || forms.settings.$submitted) && forms.settings.queue.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="route.Applications[selectedApp].appdata[0]" name="queue" theme="bootstrap" required data-ng-disabled="!items.length">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="queue.name as queue in items | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="items.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_QUEUES_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/channels/voice/queues/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.settings.queue.$touched || forms.settings.$submitted) && forms.settings.queue.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE -->\n\n <!-- START OPTIONS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid}">\n <label class="control-label">{{\'APPLICATION_OPTIONS\' | translate}}</label>\n <input type="text" pattern="[^,]*" name="app_options" placeholder="{{ \'APPLICATION_OPTIONS\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[1]">\n <span data-ng-show="(forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid && forms.settings.app_options.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END OPTIONS -->\n\n <!-- START URL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid}">\n <label class="control-label">{{ \'APPLICATION_URL\' | translate }}</label>\n <input type="text" pattern="[^,]*" name="url" placeholder="{{ \'APPLICATION_URL\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[2]">\n <span data-ng-show="(forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid && forms.settings.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid && forms.settings.url.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END URL -->\n\n <!-- START APPLICATION_ANNOUNCE_OVERRIDE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.audiofile.$touched || forms.settings.$submitted) && forms.settings.audiofile.$invalid}">\n <label class="control-label">{{\'APPLICATION_ANNOUNCE_OVERRIDE\' | translate}}</label>\n <ui-select data-ng-model="route.Applications[selectedApp].appdata[3]" name="audiofile" theme="bootstrap" data-ng-disabled="!items2.length">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n <ui-select-choices repeat="settings.soundPath+\'/\'+audio.save_name as audio in items2 | filter: $select.search">\n <div ng-bind-html="audio.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="items2.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_SOUNDS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/sounds/list">{{\'APPLICATION_SOUNDS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.settings.audiofile.$touched || forms.settings.$submitted) && forms.settings.audiofile.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END APPLICATION_ANNOUNCE_OVERRIDE -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{ \'APPLICATION_TIMEOUT\' | translate }}</label>\n <input type="text" pattern="[0-9]+" name="timeout" placeholder="{{ \'APPLICATION_TIMEOUT\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[4]">\n <span data-ng-show="(forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START AGI -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.agi.$touched || forms.settings.$submitted) && forms.settings.agi.$invalid}">\n <label class="control-label">{{ \'APPLICATION_AGI\' | translate }}</label>\n <input type="text" pattern="[^,]*" name="agi" placeholder="{{ \'APPLICATION_AGI\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[5]">\n <span data-ng-show="(forms.settings.agi.$touched || forms.settings.$submitted) && forms.settings.agi.$invalid && forms.settings.agi.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.settings.agi.$touched || forms.settings.$submitted) && forms.settings.agi.$invalid && forms.settings.agi.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END AGI -->\n\n <!-- START MACRO -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.macro.$touched || forms.settings.$submitted) && forms.settings.macro.$invalid}">\n <label class="control-label">{{ \'APPLICATION_MACRO\' | translate }}</label>\n <input type="text" pattern="[^,]*" name="macro" placeholder="{{ \'APPLICATION_MACRO\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[6]">\n <span data-ng-show="(forms.settings.macro.$touched || forms.settings.$submitted) && forms.settings.macro.$invalid && forms.settings.macro.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.settings.macro.$touched || forms.settings.$submitted) && forms.settings.macro.$invalid && forms.settings.macro.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END MACRO -->\n\n <!-- START GOSUB -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.gosub.$touched || forms.settings.$submitted) && forms.settings.gosub.$invalid}">\n <label class="control-label">{{ \'APPLICATION_GOSUB\' | translate }}</label>\n <input type="text" pattern="[^,]*" name="gosub" placeholder="{{ \'APPLICATION_GOSUB\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[7]">\n <span data-ng-show="(forms.settings.gosub.$touched || forms.settings.$submitted) && forms.settings.gosub.$invalid && forms.settings.gosub.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.settings.gosub.$touched || forms.settings.$submitted) && forms.settings.gosub.$invalid && forms.settings.gosub.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END GOSUB -->\n\n <!-- START RULE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.rule.$touched || forms.settings.$submitted) && forms.settings.rule.$invalid}">\n <label class="control-label">{{ \'APPLICATION_RULE\' | translate }}</label>\n <input type="text" pattern="[^,]*" name="rule" placeholder="{{ \'APPLICATION_RULE\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[8]">\n <span data-ng-show="(forms.settings.rule.$touched || forms.settings.$submitted) && forms.settings.rule.$invalid && forms.settings.rule.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.settings.rule.$touched || forms.settings.$submitted) && forms.settings.rule.$invalid && forms.settings.rule.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END RULE -->\n\n <!-- START POSITION -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.position.$touched || forms.settings.$submitted) && forms.settings.position.$invalid}">\n <label class="control-label">{{ \'APPLICATION_POSITION\' | translate }}</label>\n <input type="number" min="0" name="position" placeholder="{{ \'APPLICATION_POSITION\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[9]">\n <span data-ng-show="(forms.settings.position.$touched || forms.settings.$submitted) && forms.settings.position.$invalid && forms.settings.position.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END POSITION -->\n\n <!-- START ANSWER -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ANSWER\' | translate }}</label>\n <div class="input-group input-large">\n <label class="control-label pointer-cursor">\n <input\n bs-switch\n data-ng-model="route.Applications[selectedApp].answer"\n type="checkbox"\n switch-active="{{ alwaysSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ alwaysSwitch.onColor }}"\n switch-off-color="{{ alwaysSwitch.offColor }}"\n switch-animate="{{ alwaysSwitch.animate }}"\n switch-size="{{ alwaysSwitch.size }}"\n switch-label="{{ alwaysSwitch.label }}"\n switch-icon="{{ alwaysSwitch.icon }}"\n switch-radio-off="{{ alwaysSwitch.radioOff }}"\n switch-label-width="{{ alwaysSwitch.labelWidth }}"\n switch-handle-width="{{ alwaysSwitch.handleWidth }}">\n </label>\n </div>\n </div>\n <!-- END ANSWER -->\n\n </div>\n <div id="Playback" class="app-settings" ng-slide-down="main.app.value == \'Playback\'" lazy-render duration="1">\n <!-- START AUDIOFILE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.audiofile.$touched || forms.settings.$submitted) && forms.settings.audiofile.$invalid}">\n <label class="control-label">{{\'APPLICATION_AUDIO_FILE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="route.Applications[selectedApp].appdata[0]" name="audiofile" theme="bootstrap" required data-ng-disabled="!items.length">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n <ui-select-choices repeat="settings.soundPath+\'/\'+audio.save_name as audio in items | filter: $select.search">\n <div ng-bind-html="audio.display_name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="items.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_SOUNDS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/sounds/list">{{\'APPLICATION_SOUNDS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.settings.audiofile.$touched || forms.settings.$submitted) && forms.settings.audiofile.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END AUDIOFILE -->\n\n <!-- START OPTIONS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid}">\n <label class="control-label">{{\'APPLICATION_OPTIONS\' | translate}}</label>\n <input type="text" name="app_options" placeholder="{{ \'APPLICATION_OPTIONS\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[1]">\n <span data-ng-show="(forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END OPTIONS -->\n\n <!-- START ANSWER -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ANSWER\' | translate }}</label>\n <div class="input-group input-large">\n <label class="control-label pointer-cursor">\n <input\n bs-switch\n data-ng-model="route.Applications[selectedApp].answer"\n type="checkbox"\n switch-active="{{ alwaysSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ alwaysSwitch.onColor }}"\n switch-off-color="{{ alwaysSwitch.offColor }}"\n switch-animate="{{ alwaysSwitch.animate }}"\n switch-size="{{ alwaysSwitch.size }}"\n switch-label="{{ alwaysSwitch.label }}"\n switch-icon="{{ alwaysSwitch.icon }}"\n switch-radio-off="{{ alwaysSwitch.radioOff }}"\n switch-label-width="{{ alwaysSwitch.labelWidth }}"\n switch-handle-width="{{ alwaysSwitch.handleWidth }}">\n </label>\n </div>\n </div>\n <!-- END ANSWER -->\n\n </div>\n <div id="Dial" class="app-settings" ng-slide-down="main.app.value == \'Dial\' && !main.app.type" lazy-render duration="1">\n <!-- START INTERFACE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.interface.$touched || forms.settings.$submitted) && forms.settings.interface.$invalid}">\n <label class="control-label">{{ \'APPLICATION_TYPE\' | translate }}/{{ \'APPLICATION_IDENTIFIER\' | translate }}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="interface" placeholder="SIP/0000" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[0]" required>\n <span data-ng-show="(forms.settings.interface.$touched || forms.settings.$submitted) && forms.settings.interface.$invalid && forms.settings.interface.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERFACE -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{ \'APPLICATION_TIMEOUT\' | translate }}</label>\n <input type="text" pattern="[0-9]+" name="timeout" placeholder="" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[1]">\n <span data-ng-show="(forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START OPTIONS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid}">\n <label class="control-label">{{ \'APPLICATION_OPTIONS\' | translate }}</label>\n <input type="text" name="app_options" placeholder="" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[2]">\n <span data-ng-show="(forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid && forms.settings.app_options.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END OPTIONS -->\n\n <!-- START URL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid}">\n <label class="control-label">{{ \'APPLICATION_URL\' | translate }}</label>\n <input type="text" name="url" placeholder="{{ \'APPLICATION_URL\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[3]">\n <span data-ng-show="(forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid && forms.settings.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END URL -->\n </div>\n <div id="internalDial" class="app-settings" ng-slide-down="main.app.value == \'Dial\' && main.app.type == \'internalDial\'" lazy-render duration="1">\n <!-- START INTERNAL DIAL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.user.$touched || forms.settings.$submitted) && forms.settings.user.$invalid}">\n <label class="control-label">{{\'APPLICATION_USER\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="route.Applications[selectedApp].appdata[0]" name="user" theme="bootstrap" required data-ng-disabled="!items.length">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="user.name as user in items | filter: $select.search">\n <div ng-bind-html="user.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.user.$touched || forms.settings.$submitted) && forms.settings.user.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERNAL DIAL -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{ \'APPLICATION_TIMEOUT\' | translate }}</label>\n <input type="text" pattern="[0-9]+" name="timeout" placeholder="" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[1]">\n <span data-ng-show="(forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START OPTIONS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid}">\n <label class="control-label">{{ \'APPLICATION_OPTIONS\' | translate }}</label>\n <input type="text" name="app_options" placeholder="" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[2]">\n <span data-ng-show="(forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid && forms.settings.app_options.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END OPTIONS -->\n\n <!-- START URL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid}">\n <label class="control-label">{{ \'APPLICATION_URL\' | translate }}</label>\n <input type="text" name="url" placeholder="{{ \'APPLICATION_URL\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[3]">\n <span data-ng-show="(forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid && forms.settings.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END URL -->\n\n </div>\n <div id="Dial" class="app-settings" ng-slide-down="main.app.value == \'Dial\' && main.app.type == \'externalDial\'" lazy-render duration="1">\n\n <!-- START TRUNK -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.trunk.$touched || forms.info.$submitted) && forms.info.trunk.$invalid}">\n <label class="control-label">{{\'APPLICATION_TRUNK\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="route.Applications[selectedApp].appdata[0]" name="trunk" theme="bootstrap" required data-ng-disabled="!items.length">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="trunk.name as trunk in items | filter: $select.search">\n <div ng-bind-html="trunk.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="items.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_TRUNKS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/trunks/list">{{\'APPLICATION_TRUNKS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.info.trunk.$touched || forms.info.$submitted) && forms.info.trunk.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TRUNK -->\n\n <!-- START PHONE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.phone.$touched || forms.settings.$submitted) && forms.settings.phone.$invalid}">\n <label class="control-label">{{ \'APPLICATION_PHONE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="phone" placeholder="{{\'APPLICATION_PHONE\' | translate}}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[1]">\n <span data-ng-show="(forms.settings.phone.$touched || forms.settings.$submitted) && forms.settings.phone.$invalid && forms.settings.phone.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PHONE -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{ \'APPLICATION_TIMEOUT\' | translate }}</label>\n <input type="text" pattern="[0-9]+" name="timeout" placeholder="" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[2]">\n <span data-ng-show="(forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START OPTIONS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid}">\n <label class="control-label">{{ \'APPLICATION_OPTIONS\' | translate }}</label>\n <input type="text" name="app_options" placeholder="" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[3]">\n <span data-ng-show="(forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid && forms.settings.app_options.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END OPTIONS -->\n\n <!-- START URL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid}">\n <label class="control-label">{{ \'APPLICATION_URL\' | translate }}</label>\n <input type="text" name="url" placeholder="{{ \'APPLICATION_URL\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[4]">\n <span data-ng-show="(forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid && forms.settings.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END URL -->\n </div>\n <div id="RingGroup" class="app-settings" ng-slide-down="main.app.value == \'Dial\' && main.app.type == \'RingGroup\'" lazy-render duration="1">\n <!-- START ITEMS -->\n <input type="hidden" name="items" placeholder="{{ \'APPLICATION_URL\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[0]" data-ng-init="initRingGroup()">\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.items.$touched || forms.settings.$submitted) && forms.settings.items.$invalid}">\n <label class="control-label">{{\'APPLICATION_ITEMS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <div class="col-md-12" id="multi-select-user-by-role"></div>\n <span data-ng-show="(forms.settings.items.$touched || forms.settings.$submitted) && forms.settings.items.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END ITEMS -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n <label class="control-label">{{ \'APPLICATION_TIMEOUT\' | translate }}</label>\n <input type="text" pattern="[0-9]+" name="timeout" placeholder="" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[1]" data-ng-init="application.appdata[1] = null">\n <span data-ng-show="(forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START OPTIONS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid}">\n <label class="control-label">{{ \'APPLICATION_OPTIONS\' | translate }}</label>\n <input type="text" name="app_options" placeholder="" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[2]" data-ng-init="application.appdata[2] = null">\n <span data-ng-show="(forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid && forms.settings.app_options.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END OPTIONS -->\n\n <!-- START URL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid}">\n <label class="control-label">{{ \'APPLICATION_URL\' | translate }}</label>\n <input type="text" name="url" placeholder="{{ \'APPLICATION_URL\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[3]" data-ng-init="application.appdata[3] = null">\n <span data-ng-show="(forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid && forms.settings.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END URL -->\n </div>\n <div id="AGI" class="app-settings" ng-slide-down="main.app.value == \'AGI\'" lazy-render duration="1">\n <!-- START PROJECT -->\n <input type="hidden" name="url" placeholder="{{ \'APPLICATION_URL\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[0]" data-ng-init="route.Applications[selectedApp].appdata[0] = \'agi://127.0.0.1/square\'">\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.project.$touched || forms.settings.$submitted) && forms.settings.project.$invalid}">\n <label class="control-label">{{\'APPLICATION_PROJECT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="route.Applications[selectedApp].appdata[1]" name="project" theme="bootstrap" required data-ng-disabled="!items.length">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="project.name as project in items | filter: $select.search">\n <div ng-bind-html="project.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="items.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_PROJECTS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/square/projects/list">{{\'APPLICATION_PROJECTS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.settings.project.$touched || forms.settings.$submitted) && forms.settings.project.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PROJECT -->\n\n <!-- START URL -->\n <!-- <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid}">\n <label class="control-label">{{ \'APPLICATION_URL\' | translate }}</label>\n <div class="input-group">\n <input type="text" name="url" placeholder="agi://127.0.0.1/square" class="form-control" data-ng-model="application.url" data-ng-disabled="!application.urlEnabled" data-ng-required="application.urlEnabled" rpattern="/^agi:\\/\\/(?:[0-9]{1,3}\\.){3}[0-9]{1,3}\\/square$/">\n <span class="input-group-addon">\n <input type="checkbox" data-ng-model="application.urlEnabled">\n </span>\n </div>\n <span data-ng-show="(forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid && forms.settings.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid && forms.settings.url.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div> -->\n <!-- END URL -->\n\n </div>\n <div id="Goto" class="app-settings" ng-slide-down="main.app.value == \'Goto\'" lazy-render duration="1">\n <!-- START CONTEXT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.context.$touched || forms.settings.$submitted) && forms.settings.context.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONTEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="route.Applications[selectedApp].appdata[0]" name="context" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="context.name as context in items | filter: $select.search">\n <div ng-bind-html="context.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.context.$touched || forms.settings.$submitted) && forms.settings.context.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CONTEXT -->\n\n <!-- START EXTENSION -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.extension.$touched || forms.settings.$submitted) && forms.settings.extension.$invalid}">\n <label class="control-label">{{ \'APPLICATION_EXTENSION\' | translate }}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="extension" placeholder="" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[1]" required>\n <span data-ng-show="(forms.settings.extension.$touched || forms.settings.$submitted) && forms.settings.extension.$invalid && forms.settings.extension.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END EXTENSION -->\n\n <!-- START PRIORITY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.priority.$touched || forms.settings.$submitted) && forms.settings.priority.$invalid}">\n <label class="control-label">{{ \'APPLICATION_PRIORITY\' | translate }}<span class="required" aria-required="true">*</span></label>\n <input type="text" pattern="[0-9]+" name="priority" placeholder="" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[2]" required>\n <span data-ng-show="(forms.settings.priority.$touched || forms.settings.$submitted) && forms.settings.priority.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PRIORITY -->\n </div>\n <div id="Hangup" class="app-settings" ng-slide-down="main.app.value == \'Hangup\'" lazy-render duration="1">\n <!-- START HANGUPCAUSE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.hangupCause.$touched || forms.settings.$submitted) && forms.settings.hangupCause.$invalid}">\n <label class="control-label">{{\'APPLICATION_HANGUP_CAUSE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="route.Applications[selectedApp].appdata[0]" theme="bootstrap" name="hangupCause" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="hangupCause.value as hangupCause in $application.hangupCauses | filter: $select.search">\n {{hangupCause.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.hangupCause.$touched || forms.settings.$submitted) && forms.settings.hangupCause.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END HANGUPCAUSE -->\n </div>\n <div id="Set" class="app-settings" ng-slide-down="main.app.value == \'Set\' && !main.app.type" lazy-render duration="1">\n <!-- START VARIABLE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.variable.$touched || forms.settings.$submitted) && forms.settings.variable.$invalid}">\n <label class="control-label">{{ \'APPLICATION_VARIABLE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="variable" placeholder="" class="form-control" data-ng-model="application.variable" data-ng-change="updateSetAppdataSettings()" required>\n <span data-ng-show="(forms.settings.variable.$touched || forms.settings.$submitted) && forms.settings.variable.$invalid && forms.settings.variable.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END VARIABLE -->\n\n <!-- START VARVALUE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.varvalue.$touched || forms.settings.$submitted) && forms.settings.varvalue.$invalid}">\n <label class="control-label">{{ \'APPLICATION_VALUE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="varvalue" placeholder="" class="form-control" data-ng-model="application.value" data-ng-change="updateSetAppdataSettings()" required>\n <span data-ng-show="(forms.settings.varvalue.$touched || forms.settings.$submitted) && forms.settings.varvalue.$invalid && forms.settings.varvalue.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END VARVALUE -->\n </div>\n <div id="Custom" class="app-settings" ng-slide-down="main.app.type == \'custom\'" lazy-render duration="1">\n\n <!-- START CUSTOMAPP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.customApp.$touched || forms.settings.$submitted) && forms.settings.customApp.$invalid}">\n <label class="control-label">{{ \'APPLICATION_CUSTOM_APP\' | translate }}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="customApp" placeholder="{{ \'APPLICATION_CUSTOM_APP\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].app" required>\n <span data-ng-show="(forms.settings.customApp.$touched || forms.settings.$submitted) && forms.settings.customApp.$invalid && forms.settings.customApp.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CUSTOMAPP -->\n\n <!-- START APPDATA -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.appdata.$touched || forms.settings.$submitted) && forms.settings.appdata.$invalid}">\n <label class="control-label">{{ \'APPLICATION_ARGUMENTS\' | translate }}</label>\n <input type="text" name="appdata" placeholder="{{ \'APPLICATION_ARGUMENTS\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[0]">\n <span data-ng-show="(forms.settings.appdata.$touched || forms.settings.$submitted) && forms.settings.appdata.$invalid && forms.settings.appdata.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END APPDATA -->\n </div>\n <div id="Voicemail" class="app-settings" ng-slide-down="main.app.value == \'Voicemail\'" lazy-render duration="1">\n <!-- START VOICEMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.voicemail.$touched || forms.settings.$submitted) && forms.settings.voicemail.$invalid}">\n <label class="control-label">{{ \'APPLICATION_MAILBOX\' | translate }}@{{ \'APPLICATION_CONTEXT\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="route.Applications[selectedApp].appdata[0]" theme="bootstrap" name="voicemail" required data-ng-disabled="!items.length">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.mailbox}}</ui-select-match>\n <ui-select-choices repeat="mailbox.mailbox+\'@\'+mailbox.context as mailbox in items | filter: $select.search">\n <div ng-bind-html="mailbox.mailbox | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="items.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_VOICEMAILS_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/channels/voice/voicemails/list">{{\'APPLICATION_VOICEMAILS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.settings.voicemail.$touched || forms.settings.$submitted) && forms.settings.voicemail.$invalid && forms.settings.voicemail.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END VOICEMAIL -->\n\n <!-- START OPTIONS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid}">\n <label class="control-label">{{\'APPLICATION_OPTIONS\' | translate}}</label>\n <input type="text" name="app_options" placeholder="{{ \'APPLICATION_OPTIONS\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[1]">\n </div>\n <!-- END OPTIONS -->\n\n </div>\n\n <div id="videoOn" class="app-settings" ng-slide-down="main.app.value == \'Set\' && main.app.type == \'videoOn\'" lazy-render duration="1">\n <!-- START DOMAIN -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.domain.$touched || forms.settings.$submitted) && forms.settings.domain.$invalid}">\n <label class="control-label">{{ \'APPLICATION_DOMAIN\' | translate }}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="domain" placeholder="" class="form-control" data-ng-model="application.domain" data-ng-change="updateVideoOnAppdataSettings()" required>\n <span data-ng-show="(forms.settings.domain.$touched || forms.settings.$submitted) && forms.settings.domain.$invalid && forms.settings.domain.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END DOMAIN -->\n\n <!-- START THEME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.theme.$touched || forms.settings.$submitted) && forms.settings.theme.$invalid}">\n <label class="control-label">{{ \'APPLICATION_THEME\' | translate }}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="theme" placeholder="" class="form-control" data-ng-model="application.theme" data-ng-change="updateVideoOnAppdataSettings()" required>\n <span data-ng-show="(forms.settings.theme.$touched || forms.settings.$submitted) && forms.settings.theme.$invalid && forms.settings.theme.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END THEME -->\n </div>\n <button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </form>\n</wz-step>\n<wz-step title="{{\'APPLICATION_INTERVAL\' | translate}}" canexit="formValidation(forms.interval.IntervalId.$valid || forms.interval.hasOwnProperty(\'t_from\') || forms.interval.intType.$modelValue === \'always\')">\n <form name="forms.interval" novalidate>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n <!-- START INTERVAL_TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.interval.intType.$touched || forms.interval.$submitted) && forms.interval.intType.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERVAL_TYPE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="interval.intType" theme="bootstrap" name="intType" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="intType.value as intType in $application.intTypes | filter: $select.search">\n {{intType.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.interval.intType.$touched || forms.interval.$submitted) && forms.interval.intType.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVAL_TYPE -->\n <div id="customInterval" class="app-settings" ng-slide-down="interval.intType == \'custom\'" lazy-render duration="1">\n <!-- START TIME -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n <div class="input-group input-large">\n <fieldset class="pull-left" ng-disabled="interval.alwaysTime"><uib-timepicker name="t_from" data-ng-model="interval.t_from" show-meridian="false" show-spinners="false"></uib-timepicker></fieldset>\n <div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n <fieldset ng-disabled="interval.alwaysTime"><uib-timepicker name="t_to" data-ng-model="interval.t_to" show-meridian="false" show-spinners="false"></uib-timepicker></fieldset>\n </div>\n </div>\n <!-- END TIME -->\n\n <!-- <label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="interval.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label> -->\n <!-- START ALWAYS -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ALWAYS\' | translate }}</label>\n <div class="input-group input-large">\n <label class="control-label pointer-cursor">\n <input\n bs-switch\n data-ng-model="interval.alwaysTime"\n type="checkbox"\n switch-active="{{ alwaysSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ alwaysSwitch.onColor }}"\n switch-off-color="{{ alwaysSwitch.offColor }}"\n switch-animate="{{ alwaysSwitch.animate }}"\n switch-size="{{ alwaysSwitch.size }}"\n switch-label="{{ alwaysSwitch.label }}"\n switch-icon="{{ alwaysSwitch.icon }}"\n switch-radio-off="{{ alwaysSwitch.radioOff }}"\n switch-label-width="{{ alwaysSwitch.labelWidth }}"\n switch-handle-width="{{ alwaysSwitch.handleWidth }}">\n </label>\n </div>\n </div>\n <!-- END ALWAYS -->\n\n <!-- START WEEKDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="interval.wd_from" theme="bootstrap" name="wd_from">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{weekDay.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="interval.wd_to" theme="bootstrap" name="wd_to">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{weekDay.name | translate}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END WEEKDAY -->\n\n <!-- START MONTHDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="interval.md_from" theme="bootstrap" name="md_from">\n <ui-select-match>{{$select.selected === \'always\' ? \'APPLICATION_ALWAYS\' : $select.selected | translate}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search">\n {{monthDay === \'always\' ? \'APPLICATION_ALWAYS\' : monthDay | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="interval.md_to" theme="bootstrap" name="md_to">\n <ui-select-match>{{$select.selected === \'always\' ? \'APPLICATION_ALWAYS\' : $select.selected | translate}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search">\n {{monthDay === \'always\' ? \'APPLICATION_ALWAYS\' : monthDay | translate}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTHDAY -->\n\n <!-- START MONTH -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="interval.m_from" theme="bootstrap" name="m_from">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{month.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="interval.m_to" theme="bootstrap" name="m_to">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{month.name | translate}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTH -->\n </div>\n\n <div id="customInterval" class="app-settings" ng-slide-down="interval.intType == \'list\'" lazy-render duration="1">\n\n <!-- START INTERVALS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.interval.IntervalId.$touched || forms.interval.$submitted) && forms.interval.IntervalId.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERVALS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="interval.IntervalId" theme="bootstrap" name="IntervalId" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="interval.id as interval in Intervals | filter: $select.search">\n {{interval.name | translate}}\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="Intervals.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_INTERVAL_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/intervals/list">{{\'APPLICATION_INTERVALS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="(forms.interval.IntervalId.$touched || forms.interval.$submitted) && forms.interval.IntervalId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERVALS -->\n\n </div>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </form>\n</wz-step>\n\n<wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n</wz-step>\n</wizard>\n</div>\n</div>\n<!-- END Portlet PORTLET-->\n</div>\n</div>\n<!-- END PAGE CONTENT-->\n'), -a.put("app/channels/voice/voicemail/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-earphones-alt"></i>\n <a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-envelope-letter"></i>\n <a href="#">{{ \'APPLICATION_VOICEMAILS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-envelope-letter font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_VOICEMAILS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <a class="btn green-jungle" href="/channels/voice/voicemails/wizard">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_VOICEMAIL\' | translate }}\n </a>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/voice/voicemail/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getVoicemail()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-earphones-alt"></i>\n <a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-envelope-letter"></i>\n <a href="/channels/voice/voicemails/list">{{ \'APPLICATION_VOICEMAILS\' | translate }}</a>\n <i data-ng-show="voicemail" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="voicemail">\n <a href="#">{{voicemail.mailbox}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET main.channels -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/voicemail.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{voicemail.mailbox}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.channels.voice.voicemails.view.settings\')}">\n <a data-ng-href="/channels/voice/voicemails/view/{{voicemail.uniqueid}}/settings"><i class="icon-settings"></i>{{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.channels.voice.voicemails.view.messages\')}">\n <a data-ng-href="/channels/voice/voicemails/view/{{voicemail.uniqueid}}/messages"><i class="icon-speech"></i>{{ \'APPLICATION_MESSAGES\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET main.channels -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/channels/voice/voicemail/view/view.messages.html",'<div class="row" data-ng-init="getMessages()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_MESSAGES\' | translate}}</span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns data-ng-if="gridOptions" ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/voice/voicemail/view/view.settings.html",'<div class="row" data-ng-init="getContexts()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_VOICEMAIL\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{ \'APPLICATION_ADVANCED\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateVoiceVoicemail()" novalidate>\n\n <!-- START FULLNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.fullname.$invalid}">\n <label class="control-label">{{\'APPLICATION_FULLNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="fullname" placeholder="{{\'APPLICATION_FULLNAME\' | translate}}" class="form-control" data-ng-model="voicemail.fullname" required/>\n <span data-ng-show="forms.general.$submitted && forms.general.fullname.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END FULLNAME -->\n\n <!-- START EMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.email.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="email" name="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" class="form-control" data-ng-model="voicemail.email" required/>\n <span data-ng-show="forms.general.$submitted && forms.general.host.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END EMAIL -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_NEW_PASSWORD\' | translate}}</label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_NEW_PASSWORD\' | translate}}" class="form-control" data-ng-model="voicemail.password" />\n <span data-ng-show="forms.general.$submitted && forms.general.password.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START CONFIRM PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.rpassword.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}</label>\n <input type="password" name="rpassword" placeholder="{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}" class="form-control" data-ng-model="voicemail.rpassword" nx-equal="voicemail.password"/>\n <span data-ng-show="forms.general.$submitted && (forms.general.rpassword.$invalid || forms.general.rpassword.$invalid)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_PASSWORD\' | translate}}.\n </span>\n </div>\n <!-- END CONFIRM PASSWORD -->\n\n <!-- START MAILBOX -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.mailbox.$invalid}">\n <label class="control-label">{{\'APPLICATION_MAILBOX\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="mailbox" placeholder="{{\'APPLICATION_MAILBOX\' | translate}}" class="form-control" data-ng-model="voicemail.mailbox" required readonly/>\n <span data-ng-show="forms.general.$submitted && forms.general.mailbox.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MAILBOX -->\n\n <!-- START CONTEXT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.context.$touched || forms.general.$submitted) && forms.general.context.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONTEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="voicemail.context" name="context" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="context.name as context in voiceContexts | filter: $select.search">\n <div ng-bind-html="context.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_CONTEXT\' | translate }}\n </span>\n <span data-ng-show="(forms.general.context.$touched || forms.general.$submitted) && forms.general.context.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CONTEXT -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n <!-- ADVANCED TAB -->\n <div class="tab-pane" id="tab_1_2">\n <form name="forms.advanced" data-ng-submit="forms.general.$valid && forms.advanced.$valid && updateVoiceVoicemail()" novalidate>\n\n <!-- START TIMEZONE -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.advanced.$submitted && forms.advanced.tz.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEZONE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="mailbox" placeholder="{{\'APPLICATION_TIMEZONE\' | translate}}" class="form-control" data-ng-model="voicemail.tz" required/>\n <span data-ng-show="forms.advanced.$submitted && forms.advanced.tz.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEZONE -->\n\n <!-- START ATTACH -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.attach.$touched || forms.advanced.$submitted) && forms.advanced.attach.$invalid}">\n <label class="control-label">{{\'APPLICATION_ATTACH\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="voicemail.attach"\n type="checkbox"\n switch-active="{{ switch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ switch.onColor }}"\n switch-off-color="{{ switch.offColor }}"\n switch-animate="{{ switch.animate }}"\n switch-size="{{ switch.size }}"\n switch-label="{{ switch.label }}"\n switch-icon="{{ switch.icon }}"\n switch-radio-off="{{ switch.radioOff }}"\n switch-label-width="{{ switch.labelWidth }}"\n switch-handle-width="{{ switch.handleWidth }}"\n ng-true-value="\'yes\'"\n ng-false-value="\'no\'">\n </div>\n <!-- END ATTACH -->\n\n <!-- START ENVELOPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.envelope.$touched || forms.advanced.$submitted) && forms.advanced.envelope.$invalid}">\n <label class="control-label">{{\'APPLICATION_ENVELOPE\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="voicemail.envelope"\n type="checkbox"\n switch-active="{{ switch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ switch.onColor }}"\n switch-off-color="{{ switch.offColor }}"\n switch-animate="{{ switch.animate }}"\n switch-size="{{ switch.size }}"\n switch-label="{{ switch.label }}"\n switch-icon="{{ switch.icon }}"\n switch-radio-off="{{ switch.radioOff }}"\n switch-label-width="{{ switch.labelWidth }}"\n switch-handle-width="{{ switch.handleWidth }}"\n ng-true-value="\'yes\'"\n ng-false-value="\'no\'">\n </div>\n <!-- END ENVELOPE -->\n\n <!-- START DELETE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.delete.$touched || forms.advanced.$submitted) && forms.advanced.delete.$invalid}">\n <label class="control-label">{{\'APPLICATION_DELETE\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="voicemail.delete"\n type="checkbox"\n switch-active="{{ switch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ switch.onColor }}"\n switch-off-color="{{ switch.offColor }}"\n switch-animate="{{ switch.animate }}"\n switch-size="{{ switch.size }}"\n switch-label="{{ switch.label }}"\n switch-icon="{{ switch.icon }}"\n switch-radio-off="{{ switch.radioOff }}"\n switch-label-width="{{ switch.labelWidth }}"\n switch-handle-width="{{ switch.handleWidth }}"\n ng-true-value="\'yes\'"\n ng-false-value="\'no\'">\n </div>\n <!-- END DELETE -->\n\n <!-- START EMAIL_BODY -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_EMAIL_BODY\' | translate}}</label>\n <textarea type="text" name="emailbody" placeholder="{{\'APPLICATION_EMAIL_BODY\' | translate}}" class="form-control" data-ng-model="voicemail.emailbody"></textarea>\n </div>\n <!-- END EMAIL_BODY -->\n\n <!-- START EMAIL_SUBJECT -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_EMAIL_SUBJECT\' | translate}}</label>\n <textarea type="text" name="emailsubject" placeholder="{{\'APPLICATION_EMAIL_SUBJECT\' | translate}}" class="form-control" data-ng-model="voicemail.emailsubject"></textarea>\n </div>\n <!-- END EMAIL_SUBJECT -->\n\n <!-- START MAX_SECONDS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.maxsecs.$touched || forms.advanced.$submitted) && forms.advanced.maxsecs.$invalid}">\n <label class="control-label">{{\'APPLICATION_MAX_SECONDS\' | translate}}</label>\n <input type="number" min="0" name="maxsecs" placeholder="{{\'APPLICATION_MAX_SECONDS\' | translate}}" class="form-control" data-ng-model="voicemail.maxsecs" required/>\n <span data-ng-show="(forms.advanced.maxsecs.$touched || forms.advanced.$submitted) && forms.advanced.maxsecs.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MAX_SECONDS -->\n\n <!-- START MAX_MESSAGES -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.maxmsg.$touched || forms.advanced.$submitted) && forms.advanced.maxmsg.$invalid}">\n <label class="control-label">{{\'APPLICATION_MAX_MESSAGES\' | translate}}</label>\n <input type="number" min="0" name="maxmsg" placeholder="{{\'APPLICATION_MAX_MESSAGES\' | translate}}" class="form-control" data-ng-model="voicemail.maxmsg" required/>\n <span data-ng-show="(forms.advanced.maxmsg.$touched || forms.advanced.$submitted) && forms.advanced.maxmsg.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MAX_MESSAGES -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ADVANCED TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/channels/voice/voicemail/wizard/wizard.html",'<div class="col-md-12" data-ng-init="initWizard()">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-spinner"></i>\n <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-earphones-alt"></i>\n <a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-envelope-letter"></i>\n <a href="/channels/voice/voicemails/list">{{ \'APPLICATION_VOICEMAILS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-options"></i>\n <a href="#">{{ \'APPLICATION_WIZARD\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered" data-ng-init="getFirstFreeMailbox()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-envelope-letter font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_VOICEMAIL\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_GENERAL\' | translate}}" canexit="exitValidation(form.general.$valid)">\n <form name="form.general" novalidate>\n\n <!-- START FULLNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': form.general.$submitted && form.general.fullname.$invalid}">\n <label class="control-label">{{\'APPLICATION_FULLNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="fullname" placeholder="{{\'APPLICATION_FULLNAME\' | translate}}" class="form-control" data-ng-model="item.fullname" required/>\n <span data-ng-show="form.general.$submitted && form.general.fullname.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END FULLNAME -->\n\n <!-- START EMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': form.general.$submitted && form.general.email.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="email" name="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" class="form-control" data-ng-model="item.email" required/>\n <span data-ng-show="form.general.$submitted && form.general.host.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END EMAIL -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': form.general.$submitted && form.general.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.password" required/>\n <span data-ng-show="form.general.$submitted && form.general.password.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START CONFIRM PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': form.general.$submitted && form.general.rpassword.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="rpassword" placeholder="{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.rpassword" nx-equal="item.password" required/>\n <span data-ng-show="form.general.$submitted && (form.general.rpassword.$invalid || form.general.rpassword.$invalid)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_PASSWORD\' | translate}}.\n </span>\n </div>\n <!-- END CONFIRM PASSWORD -->\n\n <!-- START MAILBOX -->\n <div class="form-group" data-ng-class="{\'has-error\': form.general.$submitted && form.general.mailbox.$invalid}">\n <label class="control-label">{{\'APPLICATION_MAILBOX\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="mailbox" placeholder="{{\'APPLICATION_MAILBOX\' | translate}}" class="form-control" data-ng-model="item.mailbox" required readonly/>\n <span data-ng-show="form.general.$submitted && form.general.mailbox.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MAILBOX -->\n\n <!-- START ATTACH -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.attach.$touched || forms.general.$submitted) && forms.general.attach.$invalid}">\n <label class="control-label">{{\'APPLICATION_ATTACH\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="item.attach"\n type="checkbox"\n switch-active="{{ switch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ switch.onColor }}"\n switch-off-color="{{ switch.offColor }}"\n switch-animate="{{ switch.animate }}"\n switch-size="{{ switch.size }}"\n switch-label="{{ switch.label }}"\n switch-icon="{{ switch.icon }}"\n switch-radio-off="{{ switch.radioOff }}"\n switch-label-width="{{ switch.labelWidth }}"\n switch-handle-width="{{ switch.handleWidth }}"\n ng-true-value="\'yes\'"\n ng-false-value="\'no\'">\n </div>\n <!-- END ATTACH -->\n\n <button class="btn green-haze" type="submit" ng-click="next()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END PORTLET-->\n</div>\n'),a.put("app/contactmanager/company/list/create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_COMPANY\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="forms.company" novalidate>\n <div class="row">\n <div class="col-md-6">\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.company.name.$touched || forms.company.$submitted) && forms.company.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(forms.cmopany.name.$touched || forms.company.$submitted) && forms.company.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START VAT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.company.vat.$touched || forms.company.$submitted) && forms.company.vat.$invalid}">\n <label class="control-label">{{\'APPLICATION_VAT\' | translate}}</label>\n <input type="text" name="vat" placeholder="{{\'APPLICATION_VAT\' | translate}}" class="form-control" data-ng-model="item.vat"/>\n <span data-ng-show="(forms.cmopany.vat.$touched || forms.company.$submitted) && forms.company.vat.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END VAT -->\n\n <!-- START COMPANYID -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.company.companyId.$touched || forms.company.$submitted) && forms.company.companyId.$invalid}">\n <label class="control-label">{{\'APPLICATION_COMPANY_ID\' | translate}}</label>\n <input type="text" name="companyId" placeholder="{{\'APPLICATION_COMPANY_ID\' | translate}}" class="form-control" data-ng-model="item.companyId"/>\n <span data-ng-show="(forms.cmopany.companyId.$touched || forms.company.$submitted) && forms.company.companyId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END COMPANYID -->\n\n <!-- START WEBSITE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.company.website.$touched || forms.company.$submitted) && forms.company.website.$invalid}">\n <label class="control-label">{{\'APPLICATION_WEBSITE\' | translate}}</label>\n <input type="text" name="website" placeholder="{{\'APPLICATION_WEBSITE\' | translate}}" class="form-control" data-ng-model="item.website"/>\n <span data-ng-show="(forms.cmopany.website.$touched || forms.company.$submitted) && forms.company.website.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END WEBSITE -->\n\n <!-- START EMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.company.email.$touched || forms.company.$submitted) && forms.company.email.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}</label>\n <input type="email" name="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" class="form-control" data-ng-model="item.email"/>\n <span data-ng-show="(forms.cmopany.email.$touched || forms.company.$submitted) && forms.company.email.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END EMAIL -->\n\n </div>\n <div class="col-md-6">\n <!-- START PHONE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.company.phone.$touched || forms.company.$submitted) && forms.company.phone.$invalid}">\n <label class="control-label">{{\'APPLICATION_PHONE\' | translate}}</label>\n <input type="text" name="phone" placeholder="{{\'APPLICATION_PHONE\' | translate}}" class="form-control" data-ng-model="item.phone"/>\n <span data-ng-show="(forms.cmopany.phone.$touched || forms.company.$submitted) && forms.company.phone.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PHONE -->\n\n <!-- START FAX -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.company.fax.$touched || forms.company.$submitted) && forms.company.fax.$invalid}">\n <label class="control-label">{{\'APPLICATION_FAX\' | translate}}</label>\n <input type="text" name="fax" placeholder="{{\'APPLICATION_FAX\' | translate}}" class="form-control" data-ng-model="item.fax"/>\n <span data-ng-show="(forms.cmopany.fax.$touched || forms.company.$submitted) && forms.company.fax.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END FAX -->\n\n <!-- START TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.company.type.$touched || forms.company.$submitted) && forms.company.type.$invalid}">\n <label class="control-label">{{\'APPLICATION_TYPE\' | translate}}</label>\n <input type="text" name="type" placeholder="{{\'APPLICATION_TYPE\' | translate}}" class="form-control" data-ng-model="item.type"/>\n <span data-ng-show="(forms.cmopany.type.$touched || forms.company.$submitted) && forms.company.type.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TYPE -->\n\n <!-- START DOMAIN -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.company.emailDomain.$touched || forms.company.$submitted) && forms.company.emailDomain.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL_DOMAIN\' | translate}}</label>\n <input type="text" name="domain" placeholder="{{\'APPLICATION_EMAIL_DOMAIN\' | translate}}" class="form-control" data-ng-model="item.emailDomain"/>\n <span data-ng-show="(forms.cmopany.emailDomain.$touched || forms.company.$submitted) && forms.company.emailDomain.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END DOMAIN -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n </div>\n</div>\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="ok()" ng-disabled="forms.company.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'), -a.put("app/contactmanager/company/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-users"></i>\n <a href="#">{{ \'APPLICATION_CONTACT_MANAGER\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-briefcase"></i>\n <a href="/contactmanager/companies/list">{{ \'APPLICATION_COMPANIES\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-briefcase font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_COMPANIES\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <button class="btn green-jungle " ng-click="create()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_COMPANY\' | translate }}\n </button>\n </div>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/contactmanager/company/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getCompany()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-users"></i>\n <a href="#">{{ \'APPLICATION_CONTACT_MANAGER\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-briefcase"></i>\n <a href="/contactmanager/companies/list">{{ \'APPLICATION_COMPANIES\' | translate }}</a>\n <i data-ng-show="company" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="company">\n <a href="#">{{company.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/company.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{company.name}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.contactmanager.companies.view.settings\')}">\n <a data-ng-href="/contactmanager/companies/view/{{company.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/contactmanager/company/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_COMPANY\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{ \'APPLICATION_ADDRESS\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_3" data-toggle="tab">{{ \'APPLICATION_SHIPMENT_ADDRESS\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateCompany()" novalidate>\n <div class="row">\n <div class="col-md-6">\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="company.name" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START VAT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.vat.$touched || forms.general.$submitted) && forms.general.vat.$invalid}">\n <label class="control-label">{{\'APPLICATION_VAT\' | translate}}</label>\n <input type="text" name="vat" placeholder="{{\'APPLICATION_VAT\' | translate}}" class="form-control" data-ng-model="company.vat"/>\n <span data-ng-show="(forms.cmopany.vat.$touched || forms.general.$submitted) && forms.general.vat.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END VAT -->\n\n <!-- START COMPANYID -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.companyId.$touched || forms.general.$submitted) && forms.general.companyId.$invalid}">\n <label class="control-label">{{\'APPLICATION_COMPANY_ID\' | translate}}</label>\n <input type="text" name="companyId" placeholder="{{\'APPLICATION_COMPANY_ID\' | translate}}" class="form-control" data-ng-model="company.companyId"/>\n <span data-ng-show="(forms.cmopany.companyId.$touched || forms.general.$submitted) && forms.general.companyId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END COMPANYID -->\n\n <!-- START WEBSITE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.website.$touched || forms.general.$submitted) && forms.general.website.$invalid}">\n <label class="control-label">{{\'APPLICATION_WEBSITE\' | translate}}</label>\n <input type="text" name="website" placeholder="{{\'APPLICATION_WEBSITE\' | translate}}" class="form-control" data-ng-model="company.website"/>\n <span data-ng-show="(forms.cmopany.website.$touched || forms.general.$submitted) && forms.general.website.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END WEBSITE -->\n\n <!-- START EMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.email.$touched || forms.general.$submitted) && forms.general.email.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}</label>\n <input type="email" name="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" class="form-control" data-ng-model="company.email"/>\n <span data-ng-show="(forms.cmopany.email.$touched || forms.general.$submitted) && forms.general.email.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END EMAIL -->\n </div>\n <div class="col-md-6">\n <!-- START PHONE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.phone.$touched || forms.general.$submitted) && forms.general.phone.$invalid}">\n <label class="control-label">{{\'APPLICATION_PHONE\' | translate}}</label>\n <input type="text" name="phone" placeholder="{{\'APPLICATION_PHONE\' | translate}}" class="form-control" data-ng-model="company.phone"/>\n <span data-ng-show="(forms.cmopany.phone.$touched || forms.general.$submitted) && forms.general.phone.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PHONE -->\n\n <!-- START FAX -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.fax.$touched || forms.general.$submitted) && forms.general.fax.$invalid}">\n <label class="control-label">{{\'APPLICATION_FAX\' | translate}}</label>\n <input type="text" name="fax" placeholder="{{\'APPLICATION_FAX\' | translate}}" class="form-control" data-ng-model="company.fax"/>\n <span data-ng-show="(forms.cmopany.fax.$touched || forms.general.$submitted) && forms.general.fax.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END FAX -->\n\n <!-- START TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.type.$touched || forms.general.$submitted) && forms.general.type.$invalid}">\n <label class="control-label">{{\'APPLICATION_TYPE\' | translate}}</label>\n <input type="text" name="type" placeholder="{{\'APPLICATION_TYPE\' | translate}}" class="form-control" data-ng-model="company.type"/>\n <span data-ng-show="(forms.cmopany.type.$touched || forms.general.$submitted) && forms.general.type.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TYPE -->\n\n <!-- START DOMAIN -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.emailDomain.$touched || forms.general.$submitted) && forms.general.emailDomain.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL_DOMAIN\' | translate}}</label>\n <input type="text" name="domain" placeholder="{{\'APPLICATION_EMAIL_DOMAIN\' | translate}}" class="form-control" data-ng-model="company.emailDomain"/>\n <span data-ng-show="(forms.cmopany.emailDomain.$touched || forms.general.$submitted) && forms.general.emailDomain.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END DOMAIN -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="company.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n </div>\n </div>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ADVANCED TAB -->\n <div class="tab-pane" id="tab_1_2">\n <form name="forms.address" data-ng-submit="forms.address.$valid && updateCompany()" novalidate>\n <!-- START STREET -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.address.street.$touched || forms.address.$submitted) && forms.address.street.$invalid}">\n <label class="control-label">{{\'APPLICATION_STREET\' | translate}}</label>\n <input type="text" name="street" placeholder="{{\'APPLICATION_STREET\' | translate}}" class="form-control" data-ng-model="company.street"/>\n <span data-ng-show="(forms.address.street.$touched || forms.address.$submitted) && forms.address.street.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END STREET -->\n\n <!-- START POSTALCODE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.address.postalCode.$touched || forms.address.$submitted) && forms.address.postalCode.$invalid}">\n <label class="control-label">{{\'APPLICATION_POSTALCODE\' | translate}}</label>\n <input type="text" name="postalCode" placeholder="{{\'APPLICATION_POSTALCODE\' | translate}}" class="form-control" data-ng-model="company.postalCode"/>\n <span data-ng-show="(forms.address.postalCode.$touched || forms.address.$submitted) && forms.address.postalCode.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END POSTALCODE -->\n\n <!-- START CITY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.address.city.$touched || forms.address.$submitted) && forms.address.city.$invalid}">\n <label class="control-label">{{\'APPLICATION_CITY\' | translate}}</label>\n <input type="text" name="city" placeholder="{{\'APPLICATION_CITY\' | translate}}" class="form-control" data-ng-model="company.city"/>\n <span data-ng-show="(forms.address.city.$touched || forms.address.$submitted) && forms.address.city.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CITY -->\n <!-- START COUNTRY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.address.country.$touched || forms.address.$submitted) && forms.address.country.$invalid}">\n <label class="control-label">{{\'APPLICATION_COUNTRY\' | translate}}</label>\n <input type="text" name="country" placeholder="{{\'APPLICATION_COUNTRY\' | translate}}" class="form-control" data-ng-model="company.country"/>\n <span data-ng-show="(forms.address.country.$touched || forms.address.$submitted) && forms.address.country.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END COUNTRY -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <div class="tab-pane" id="tab_1_3">\n <form name="forms.shipmentAddress" data-ng-submit="forms.shipmentAddress.$valid && updateCompany()" novalidate>\n <!-- START STREET -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.shipmentAddress.sStreet.$touched || forms.shipmentAddress.$submitted) && forms.shipmentAddress.sStreet.$invalid}">\n <label class="control-label">{{\'APPLICATION_STREET\' | translate}}</label>\n <input type="text" name="sStreet" placeholder="{{\'APPLICATION_STREET\' | translate}}" class="form-control" data-ng-model="company.sStreet"/>\n <span data-ng-show="(forms.shipmentAddress.sStreet.$touched || forms.shipmentAddress.$submitted) && forms.shipmentAddress.sStreet.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END STREET -->\n\n <!-- START POSTALCODE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.shipmentAddress.sPostalCode.$touched || forms.shipmentAddress.$submitted) && forms.shipmentAddress.sPostalCode.$invalid}">\n <label class="control-label">{{\'APPLICATION_POSTALCODE\' | translate}}</label>\n <input type="text" name="sPostalCode" placeholder="{{\'APPLICATION_POSTALCODE\' | translate}}" class="form-control" data-ng-model="company.sPostalCode"/>\n <span data-ng-show="(forms.shipmentAddress.sPostalCode.$touched || forms.shipmentAddress.$submitted) && forms.shipmentAddress.sPostalCode.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END POSTALCODE -->\n\n <!-- START CITY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.shipmentAddress.sCity.$touched || forms.shipmentAddress.$submitted) && forms.shipmentAddress.sCity.$invalid}">\n <label class="control-label">{{\'APPLICATION_CITY\' | translate}}</label>\n <input type="text" name="sCity" placeholder="{{\'APPLICATION_CITY\' | translate}}" class="form-control" data-ng-model="company.sCity"/>\n <span data-ng-show="(forms.shipmentAddress.sCity.$touched || forms.shipmentAddress.$submitted) && forms.shipmentAddress.sCity.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CITY -->\n <!-- START COUNTRY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.shipmentAddress.sCountry.$touched || forms.shipmentAddress.$submitted) && forms.shipmentAddress.sCountry.$invalid}">\n <label class="control-label">{{\'APPLICATION_COUNTRY\' | translate}}</label>\n <input type="text" name="sCountry" placeholder="{{\'APPLICATION_COUNTRY\' | translate}}" class="form-control" data-ng-model="company.sCountry"/>\n <span data-ng-show="(forms.shipmentAddress.sCountry.$touched || forms.shipmentAddress.$submitted) && forms.shipmentAddress.sCountry.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END COUNTRY -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/contactmanager/contact/list/copy.modal.html",'<div class="modal-header" data-ng-init="getLists()">\n <h3 class="modal-title">{{ \'APPLICATION_COPY_CONTACT\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="forms.copy" novalidate>\n <!-- START LIST -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.csv.ListId.$invalid && forms.csv.$submitted}">\n <label class="control-label">{{\'APPLICATION_LIST\' | translate}}</label>\n <ui-select data-ng-model="item.ListId" theme="bootstrap" name="ListId" data-ng-disabled="disabled" data-ng-change="getCustomFields()" required>\n <ui-select-match placeholder="{{ \'APPLICATION_LIST\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="list.id as list in lists | filter: $select.search">\n <div ng-bind-html="list.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.csv.ListId.$invalid && forms.csv.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END LIST -->\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="ok()" ng-disabled="forms.copy.$invalid || !forms.copy.ListId">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'),a.put("app/contactmanager/contact/list/import.modal.html",'<div class="modal-header" data-ng-init="getLists();getCompanies();">\n <h3 class="modal-title">{{ \'APPLICATION_IMPORT_FROM_CSV\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="forms.csv" novalidate>\n <div class="row">\n <div class="col-md-6">\n <!-- START LIST -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.csv.ListId.$invalid && forms.csv.$submitted}">\n <label class="control-label">{{\'APPLICATION_LIST\' | translate}}</label>\n <ui-select data-ng-model="item.ListId" theme="bootstrap" name="ListId" data-ng-disabled="disabled" data-ng-change="getCustomFields()">\n <ui-select-match placeholder="{{ \'APPLICATION_LIST\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="list.id as list in lists | filter: $select.search">\n <div ng-bind-html="list.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.csv.ListId.$invalid && forms.csv.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END LIST -->\n\n <!-- START FIRSTNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.csv.firstName.$touched || forms.general.$submitted) && forms.csv.firstName.$invalid}">\n <label class="control-label">{{\'APPLICATION_FIRSTNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.firstName" theme="bootstrap" name="firstName" data-ng-disabled="disabled" required>\n <ui-select-match allow-clear placeholder="{{ \'APPLICATION_FIRSTNAME\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="index in indexes | filter: $select.search">\n <div ng-bind-html="index | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.csv.firstName.$touched || forms.csv.$submitted) && forms.csv.firstName.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END FIRSTNAME -->\n\n <!-- START LASTNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.csv.lastName.$invalid && forms.csv.$submitted}">\n <label class="control-label">{{\'APPLICATION_LASTNAME\' | translate}}</label>\n <ui-select data-ng-model="item.lastName" theme="bootstrap" name="lastName" data-ng-disabled="disabled">\n <ui-select-match allow-clear placeholder="{{ \'APPLICATION_LASTNAME\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="index in indexes | filter: $select.search">\n <div ng-bind-html="index | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.csv.lastName.$invalid && forms.csv.$touched" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END LASTNAME -->\n\n <!-- START STREET -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.csv.street.$invalid && forms.csv.$submitted}">\n <label class="control-label">{{\'APPLICATION_STREET\' | translate}}</label>\n <ui-select data-ng-model="item.street" theme="bootstrap" name="street" data-ng-disabled="disabled">\n <ui-select-match allow-clear placeholder="{{ \'APPLICATION_STREET\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="index in indexes | filter: $select.search">\n <div ng-bind-html="index | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.csv.street.$invalid && forms.csv.$touched" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END STREET -->\n\n <!-- START POSTALCODE -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.csv.postalCode.$invalid && forms.csv.$submitted}">\n <label class="control-label">{{\'APPLICATION_POSTALCODE\' | translate}}</label>\n <ui-select data-ng-model="item.postalCode" theme="bootstrap" name="postalCode" data-ng-disabled="disabled">\n <ui-select-match allow-clear placeholder="{{ \'APPLICATION_POSTALCODE\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="index in indexes | filter: $select.search">\n <div ng-bind-html="index | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.csv.postalCode.$invalid && forms.csv.$touched" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END POSTALCODE -->\n\n <!-- START CITY -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.csv.city.$invalid && forms.csv.$submitted}">\n <label class="control-label">{{\'APPLICATION_CITY\' | translate}}</label>\n <ui-select data-ng-model="item.city" theme="bootstrap" name="city" data-ng-disabled="disabled">\n <ui-select-match allow-clear placeholder="{{ \'APPLICATION_CITY\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="index in indexes | filter: $select.search">\n <div ng-bind-html="index | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.csv.city.$invalid && forms.csv.$touched" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CITY -->\n\n <!-- START PHONE -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.csv.phone.$invalid && forms.csv.$submitted}">\n <label class="control-label">{{\'APPLICATION_PHONE\' | translate}}</label>\n <ui-select data-ng-model="item.phone" theme="bootstrap" name="phone" data-ng-disabled="disabled">\n <ui-select-match allow-clear placeholder="{{ \'APPLICATION_PHONE\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="index in indexes | filter: $select.search">\n <div ng-bind-html="index | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.csv.phone.$invalid && forms.phone.$touched" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PHONE -->\n\n <!-- START MOBILE -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.csv.mobile.$invalid && forms.csv.$submitted}">\n <label class="control-label">{{\'APPLICATION_MOBILE\' | translate}}</label>\n <ui-select data-ng-model="item.mobile" theme="bootstrap" name="mobile" data-ng-disabled="disabled">\n <ui-select-match allow-clear placeholder="{{ \'APPLICATION_MOBILE\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="index in indexes | filter: $select.search">\n <div ng-bind-html="index | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.csv.mobile.$invalid && forms.mobile.$touched" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MOBILE -->\n\n </div>\n <div class="col-md-6">\n\n <!-- START COUNTRY -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.csv.country.$invalid && forms.csv.$submitted}">\n <label class="control-label">{{\'APPLICATION_COUNTRY\' | translate}}</label>\n <ui-select data-ng-model="item.country" theme="bootstrap" name="country" data-ng-disabled="disabled">\n <ui-select-match allow-clear placeholder="{{ \'APPLICATION_COUNTRY\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="index in indexes | filter: $select.search">\n <div ng-bind-html="index | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.csv.country.$invalid && forms.csv.$touched" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END COUNTRY -->\n\n <!-- START DATEOFBIRTH -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.csv.dateOfBirth.$invalid && forms.csv.$submitted}">\n <label class="control-label">{{\'APPLICATION_DATEOFBIRTH\' | translate}}</label>\n <ui-select data-ng-model="item.dateOfBirth" theme="bootstrap" name="dateOfBirth" data-ng-disabled="disabled">\n <ui-select-match allow-clear placeholder="{{ \'APPLICATION_DATEOFBIRTH\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="index in indexes | filter: $select.search">\n <div ng-bind-html="index | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.csv.dateOfBirth.$invalid && forms.csv.$touched" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END DATEOFBIRTH -->\n\n <!-- START TAGS -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.csv.tags.$invalid && forms.csv.$submitted}">\n <label class="control-label">{{\'APPLICATION_TAGS\' | translate}}</label>\n <ui-select multiple data-ng-model="item.tags" theme="bootstrap" name="tags" data-ng-disabled="disabled">\n <ui-select-match allow-clear placeholder="{{ \'APPLICATION_TAGS\' | translate }}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="index in indexes | filter: $select.search">\n <div ng-bind-html="index | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.csv.tags.$invalid && forms.csv.$touched" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TAGS -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.csv.description.$invalid && forms.csv.$submitted}">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <ui-select data-ng-model="item.description" theme="bootstrap" name="description" data-ng-disabled="disabled">\n <ui-select-match allow-clear placeholder="{{ \'APPLICATION_DESCRIPTION\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="index in indexes | filter: $select.search">\n <div ng-bind-html="index | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.csv.description.$invalid && forms.csv.$touched" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START FAX -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.csv.fax.$invalid && forms.csv.$submitted}">\n <label class="control-label">{{\'APPLICATION_FAX\' | translate}}</label>\n <ui-select data-ng-model="item.fax" theme="bootstrap" name="fax" data-ng-disabled="disabled">\n <ui-select-match allow-clear placeholder="{{ \'APPLICATION_FAX\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="index in indexes | filter: $select.search">\n <div ng-bind-html="index | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.csv.fax.$invalid && forms.fax.$touched" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END FAX -->\n\n <!-- START EMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.csv.email.$invalid && forms.general.$submitted}">\n <label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}</label>\n <ui-select data-ng-model="item.email" theme="bootstrap" name="email" data-ng-disabled="disabled">\n <ui-select-match allow-clear placeholder="{{ \'APPLICATION_EMAIL\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="index in indexes | filter: $select.search">\n <div ng-bind-html="index | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.csv.email.$invalid && forms.csv.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END EMAIL -->\n\n <!-- START COMPANY -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.csv.CompanyId.$invalid && forms.csv.$submitted}">\n <label class="control-label">{{\'APPLICATION_COMPANY\' | translate}}</label>\n <ui-select data-ng-model="item.CompanyId" theme="bootstrap" name="CompanyId" data-ng-disabled="!companies.length">\n <ui-select-match allow-clear placeholder="{{ \'APPLICATION_COMPANY\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="company.id as company in companies | filter: $select.search">\n <div ng-bind-html="company.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="companies.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_COMPANIES_AVAILABLE\' | translate }}\n </p>\n </div>\n <span data-ng-show="forms.csv.CompanyId.$invalid && forms.csv.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END COMPANY -->\n\n </div>\n </div>\n\n <!-- START CUSTOMFIELDS -->\n <div data-ng-repeat="customField in customFields">\n <div class="form-group" data-ng-class="{\'has-error\': (forms.csv[customField.name].$touched || forms.general.$submitted) && forms.csv[customField.name].$invalid}">\n <label class="control-label">{{customField.alias}}<span data-ng-if="customField.required" class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item[customField.name]" theme="bootstrap" name="{{customField.name}}" data-ng-disabled="disabled" data-ng-required="customField.required">\n <ui-select-match allow-clear placeholder="{{customField.alias}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="index in indexes | filter: $select.search">\n <div ng-bind-html="index | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.csv[customField.name].$touched || forms.csv.$submitted) && forms.csv[customField.name].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <!-- END CUSTOMFIELDS -->\n\n <div>\n <p>{{\'APPLICATION_IMPORT_SUCCEEDED\' | translate}}: {{import.succeeded}}/{{csvLength}}</p>\n <div class="progress progress-sm" style="">\n <div class="progress-bar progress-bar-info" role="progressbar" ng-style="{ \'width\': import.success + \'%\' }"></div>\n </div>\n </div>\n <div>\n <p>{{\'APPLICATION_IMPORT_FAILED\' | translate}}: {{import.failed}}/{{csvLength}}</p>\n <div class="progress progress-sm" style="">\n <div class="progress-bar progress-bar-danger" role="progressbar" ng-style="{ \'width\': import.fail + \'%\' }"></div>\n </div>\n </div>\n <div data-ng-if="failedRows">\n <p>{{\'APPLICATION_FAILED_ROWS\' | translate}}:</p>\n <div class="failed-contacts">{{failedRows}}</div>\n</div>\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="start()" ng-disabled="forms.csv.$invalid || submitted">{{ \'APPLICATION_SUBMIT\' | translate }}</button>\n <button class="btn default" type="button" ng-click="close()" data-ng-if="!importing">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n <button class="btn default" type="button" ng-click="stop()" data-ng-if="importing">{{ \'APPLICATION_STOP\' | translate }}</button>\n</div>\n'), -a.put("app/contactmanager/contact/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-users"></i>\n <a href="#">{{ \'APPLICATION_CONTACT_MANAGER\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-users"></i>\n <a href="/contactmanager/contacts/list">{{ \'APPLICATION_CONTACTS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="fa fa-users font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_CONTACTS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length && !Auth.isAgent()">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <button data-ng-if="gridOptions.data.length" class="btn purple" ng-csv="extractAll()" lazy-load="true" filename="Contacts.csv" csv-label="true">\n <i class="fa fa-download"></i> {{ \'APPLICATION_EXPORT_TO_CSV\' | translate }}\n </button>\n <button class="btn green-jungle" data-ng-click="newContact({CompanyId:gridOptions.columnDefs[7].filter.term || null,ListId:gridOptions.columnDefs[6].filter.term || null});">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_CONTACT\' | translate }}\n </button>\n <span class="btn default btn-file" data-ng-if="!Auth.isAgent()">\n <span class="fileinput-new">\n <i class="icon-cloud-upload"></i> {{\'APPLICATION_IMPORT_FROM_CSV\' | translate}}</span>\n <input type="file" accept=".csv" nv-file-select="" uploader="uploader"/>\n </span>\n </div>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div data-ng-if="gridOptions" ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <span us-spinner spinner-key="grid-spinner"></span>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/contactmanager/customfield/list/create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_CUSTOM_FIELD\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="forms.customField" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.customField.name.$touched || forms.customField.$submitted) && forms.customField.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.alias" required/>\n <span data-ng-show="(forms.customField.name.$touched || forms.customField.$submitted) && forms.customField.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.customField.type.$touched || forms.customField.$submitted) && forms.customField.type.$invalid}">\n <label class="control-label">{{ \'APPLICATION_TYPE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.type" name="type" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_TYPE\' | translate }}">{{$translate.instant($select.selected.name)}}</ui-select-match>\n <ui-select-choices repeat="type.value as type in types| filter: $select.search">\n {{$translate.instant(type.name)}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.customField.type.$touched || forms.customField.$submitted) && forms.customField.type.$invalid && forms.customField.type.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TYPE -->\n\n <div ng-slide-down="item.type == \'select\'" lazy-render duration="1">\n <div>\n <label class="control-label">{{\'APPLICATION_CHOICES\' | translate}}</label>\n </div>\n <div class="padding-bottom" ng-repeat="choice in choices">\n <div class="form-group">\n <div class="input-group">\n <input type="text" class="form-control" ng-model="choice.value" required>\n <span class="input-group-btn">\n <button class="btn red" type="button"data-ng-click="removeField($index)" data-ng-disabled="choices.length<=1"><i class="fa fa-times"></i></button>\n </span>\n </div>\n </div>\n </div>\n <button type="button" class="btn btn-sm green padding-bottom" ng-click="addField()">\n <i class="fa fa-plus"></i> {{\'APPLICATION_ADD_CHOICE\' | translate}}\n </button>\n\n </div>\n\n <!-- START REQUIRED -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_REQUIRED\' | translate}}</label><br>\n <input\n bs-switch\n ng-model="item.required"\n type="checkbox"\n switch-active="{{ bsSwitch.isActive }}"\n data-ng-init="item.required = false"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ bsSwitch.onColor }}"\n switch-off-color="{{ bsSwitch.offColor }}"\n switch-animate="{{ bsSwitch.animate }}"\n switch-size="{{ bsSwitch.size }}"\n switch-label="{{ bsSwitch.label }}"\n switch-icon="{{ bsSwitch.icon }}"\n switch-radio-off="{{ bsSwitch.radioOff }}"\n switch-label-width="{{ bsSwitch.labelWidth }}"\n switch-handle-width="{{ bsSwitch.handleWidth }}">\n </div>\n <!-- END REQUIRED -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="ok()" ng-disabled="forms.customField.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/contactmanager/customfield/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-users"></i>\n <a href="#">{{ \'APPLICATION_CONTACT_MANAGER\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-pencil"></i>\n <a href="/contactmanager/customfields/list">{{ \'APPLICATION_CUSTOM_FIELDS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-pencil font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_CUSTOM_FIELDS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <button class="btn green-jungle " ng-click="create()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_CUSTOM_FIELD\' | translate }}\n </button>\n </div>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/contactmanager/customfield/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getCustomField()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-users"></i>\n <a href="#">{{ \'APPLICATION_CONTACT_MANAGER\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-pencil"></i>\n <a href="/contactmanager/customfields/list">{{ \'APPLICATION_CUSTOM_FIELDS\' | translate }}</a>\n <i data-ng-show="customField" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="customField">\n <a href="#">{{customField.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/customField.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{customField.name}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.contactmanager.customfields.view.settings\')}">\n <a data-ng-href="/contactmanager/customfields/view/{{customField.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/contactmanager/customfield/view/view.settings.html",'<div class="row" data-ng-init="getCustomField()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_CUSTOM_FIELD\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n </div>\n\n <div class="portlet-body">\n <!-- GENERAL TAB -->\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateCustomField()" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="customField.alias" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <div ng-slide-down="customField.type == \'select\'" lazy-render duration="1" class="mbottom20">\n <div>\n <label class="control-label">{{\'APPLICATION_CHOICES\' | translate}}</label>\n </div>\n <div class="padding-bottom" ng-repeat="choice in choices">\n <div class="form-group">\n <div class="input-group">\n <input type="text" class="form-control" ng-model="choice.value" required>\n <span class="input-group-btn">\n <button class="btn red" type="button"data-ng-click="removeField($index)" data-ng-disabled="choices.length<=1"><i class="fa fa-times"></i></button>\n </span>\n </div>\n </div>\n </div>\n <button type="button" class="btn btn-sm green padding-bottom" ng-click="addField()">\n <i class="fa fa-plus"></i> {{\'APPLICATION_ADD_CHOICE\' | translate}}\n </button>\n\n </div>\n\n <!-- START REQUIRED -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_REQUIRED\' | translate}}</label><br>\n <input\n bs-switch\n ng-model="customField.required"\n type="checkbox"\n switch-active="{{ bsSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ bsSwitch.onColor }}"\n switch-off-color="{{ bsSwitch.offColor }}"\n switch-animate="{{ bsSwitch.animate }}"\n switch-size="{{ bsSwitch.size }}"\n switch-label="{{ bsSwitch.label }}"\n switch-icon="{{ bsSwitch.icon }}"\n switch-radio-off="{{ bsSwitch.radioOff }}"\n switch-label-width="{{ bsSwitch.labelWidth }}"\n switch-handle-width="{{ bsSwitch.handleWidth }}">\n </div>\n <!-- END REQUIRED -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/contactmanager/list/list/create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_LIST\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="forms.list" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.list.name.$touched || forms.list.$submitted) && forms.list.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(forms.list.name.$touched || forms.list.$submitted) && forms.list.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="ok()" ng-disabled="forms.list.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/contactmanager/list/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-users"></i>\n <a href="#">{{ \'APPLICATION_CONTACT_MANAGER\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-list-ul"></i>\n <a href="/contactmanager/lists/list">{{ \'APPLICATION_LISTS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="fa fa-list-ul font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_LISTS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <!-- <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteLists()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div> -->\n <div class="btn-group">\n <button class="btn green-jungle " ng-click="create()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_LIST\' | translate }}\n </button>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/contactmanager/list/view/create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_CUSTOM_FIELD\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="forms.customField" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.customField.name.$touched || forms.customField.$submitted) && forms.customField.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.alias" required/>\n <span data-ng-show="(forms.customField.name.$touched || forms.customField.$submitted) && forms.customField.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.customField.type.$touched || forms.customField.$submitted) && forms.customField.type.$invalid}">\n <label class="control-label">{{ \'APPLICATION_TYPE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.type" name="type" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_TYPE\' | translate }}">{{$translate.instant($select.selected.name)}}</ui-select-match>\n <ui-select-choices repeat="type.value as type in types| filter: $select.search">\n {{$translate.instant(type.name)}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.customField.type.$touched || forms.customField.$submitted) && forms.customField.type.$invalid && forms.customField.type.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TYPE -->\n\n <div ng-slide-down="item.type == \'select\'" lazy-render duration="1">\n <div>\n <label class="control-label">{{\'APPLICATION_CHOICES\' | translate}}</label>\n </div>\n <div class="padding-bottom" ng-repeat="choice in choices">\n <div class="form-group">\n <div class="input-group">\n <input type="text" class="form-control" ng-model="choice.value" required>\n <span class="input-group-btn">\n <button class="btn red" type="button"data-ng-click="removeField($index)" data-ng-disabled="choices.length<=1"><i class="fa fa-times"></i></button>\n </span>\n </div>\n </div>\n </div>\n <button type="button" class="btn btn-sm green padding-bottom" ng-click="addField()">\n <i class="fa fa-plus"></i> {{\'APPLICATION_ADD_CHOICE\' | translate}}\n </button>\n\n </div>\n\n <!-- START REQUIRED -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_REQUIRED\' | translate}}</label><br>\n <input\n bs-switch\n ng-model="item.required"\n type="checkbox"\n switch-active="{{ bsSwitch.isActive }}"\n data-ng-init="item.required = false"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ bsSwitch.onColor }}"\n switch-off-color="{{ bsSwitch.offColor }}"\n switch-animate="{{ bsSwitch.animate }}"\n switch-size="{{ bsSwitch.size }}"\n switch-label="{{ bsSwitch.label }}"\n switch-icon="{{ bsSwitch.icon }}"\n switch-radio-off="{{ bsSwitch.radioOff }}"\n switch-label-width="{{ bsSwitch.labelWidth }}"\n switch-handle-width="{{ bsSwitch.handleWidth }}">\n </div>\n <!-- END REQUIRED -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="ok()" ng-disabled="forms.customField.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/contactmanager/list/view/view.agents.html",'<div class="row" data-ng-init="getTeams()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_AGENTS\' | translate}}</span>\n </div>\n </div>\n <div class="note note-warning" data-ng-hide="teams.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_AVAILABLE_TEAMS\' | translate }}\n </p>\n </div>\n <div class="portlet-body">\n <!-- BEGIN FORM-->\n <form action="index.html" class="form-horizontal form-row-seperated">\n <div class="form-body">\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-team">\n </div>\n </div>\n </div>\n </form>\n <!-- END FORM-->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/contactmanager/list/view/view.customFieldSettings.html",'<div class="row" data-ng-init="getCustomField()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_CUSTOM_FIELD\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n </div>\n\n <div class="portlet-body">\n <!-- GENERAL TAB -->\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateCustomField()" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="customField.alias" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <div ng-slide-down="customField.type == \'select\'" lazy-render duration="1" class="mbottom20">\n <div>\n <label class="control-label">{{\'APPLICATION_CHOICES\' | translate}}</label>\n </div>\n <div class="padding-bottom" ng-repeat="choice in choices">\n <div class="form-group">\n <div class="input-group">\n <input type="text" class="form-control" ng-model="choice.value" required>\n <span class="input-group-btn">\n <button class="btn red" type="button"data-ng-click="removeField($index)" data-ng-disabled="choices.length<=1"><i class="fa fa-times"></i></button>\n </span>\n </div>\n </div>\n </div>\n <button type="button" class="btn btn-sm green padding-bottom" ng-click="addField()">\n <i class="fa fa-plus"></i> {{\'APPLICATION_ADD_CHOICE\' | translate}}\n </button>\n\n </div>\n\n <!-- START REQUIRED -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_REQUIRED\' | translate}}</label><br>\n <input\n bs-switch\n ng-model="customField.required"\n type="checkbox"\n switch-active="{{ bsSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ bsSwitch.onColor }}"\n switch-off-color="{{ bsSwitch.offColor }}"\n switch-animate="{{ bsSwitch.animate }}"\n switch-size="{{ bsSwitch.size }}"\n switch-label="{{ bsSwitch.label }}"\n switch-icon="{{ bsSwitch.icon }}"\n switch-radio-off="{{ bsSwitch.radioOff }}"\n switch-label-width="{{ bsSwitch.labelWidth }}"\n switch-handle-width="{{ bsSwitch.handleWidth }}">\n </div>\n <!-- END REQUIRED -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/contactmanager/list/view/view.customFields.html",'<div ui-view class="profile-content">\n<div class="row" data-ng-init="initCustomFields()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_CUSTOM_FIELDS\' | translate}}</span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <button class="btn green-jungle " ng-click="create()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_CUSTOM_FIELD\' | translate }}\n </button>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n</div>\n</div>\n'),a.put("app/contactmanager/list/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getList()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-users"></i>\n <a href="#">{{ \'APPLICATION_CONTACT_MANAGER\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-list-ul"></i>\n <a href="/contactmanager/lists/list">{{ \'APPLICATION_LISTS\' | translate }}</a>\n <i data-ng-show="list" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="list">\n <a href="#">{{list.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/list.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{list.name}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.contactmanager.lists.view.settings\')}">\n <a data-ng-href="/contactmanager/lists/view/{{list.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n <li data-ng-if="!list.defaultEntry" data-ng-class="{active: $state.is(\'main.contactmanager.lists.view.agents\')}">\n <a data-ng-href="/contactmanager/lists/view/{{list.id}}/agents">\n <i class="icon-people"></i>\n {{ \'APPLICATION_AGENTS\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.contactmanager.lists.view.customfields\')}">\n <a data-ng-href="/contactmanager/lists/view/{{list.id}}/customfields">\n <i class="icon-pencil"></i>\n {{ \'APPLICATION_CUSTOM_FIELDS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/contactmanager/list/view/view.settings.html",'<div class="row" data-ng-init="initVariables()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_LIST\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateList()" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="list.name" data-ng-disabled="list.defaultEntry" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START VARIABLES -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.variables.$invalid && forms.general.$submitted}">\n <label class="control-label">{{\'APPLICATION_TD_VARIABLES\' | translate}}</label>\n <ui-select multiple=\'true\' data-ng-model="list.variables" theme="bootstrap" name="variables" limit="10" ng-disabled="disabled">\n <ui-select-match placeholder="{{ \'APPLICATION_TD_VARIABLES\' | translate }}">{{$item.name}}</ui-select-match>\n <ui-select-choices repeat="variable as variable in variables | filter: $select.search">\n {{variable.name}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.general.variables.$invalid && forms.general.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span class="help-block">{{\'MESSAGE_MAX_VARIABLES\' | translate}}</span>\n </div>\n <!-- END VARIABLES -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="list.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ADVANCED TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'), -a.put("app/dashboard/chat/chat.html",'<div data-ng-switch="Auth.getRole()">\n <div ng-switch-when="agent" data-ng-init="initAgent()">\n <div class="row" style="padding-bottom:10px;">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div ui-grid="table1" name="table1" ui-grid-resize-columns ui-grid-pagination ui-grid-auto-resize class="ui-grid">\n <div class="watermark" data-ng-show="!table1.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n <div ng-switch-default data-ng-init="initRoomStats();initRoutingStats();initSocketListening();">\n <fieldset>\n <legend>\n <span class="caption-subject"> </span><small class="pull-right font-grey-cascade">{{ \'APPLICATION_TODAY_STATS\' | translate }}</small>\n </legend>\n <div class="row">\n <div class="col-md-8">\n <div class="row">\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat green-haze">\n <div class="visual">\n <i class="fa fa-play"></i>\n </div>\n <div class="details">\n <div class="number">\n {{roomStatus.new || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_DASHBOARD_WAITING_NEW_CI\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_DASHBOARD_WAITING_NEW_CI_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat blue-madison">\n <div class="visual">\n <i class="icon-bell"></i>\n </div>\n <div class="details">\n <div class="number">\n {{roomStatus.open || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_DASHBOARD_OPEN_CI\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_DASHBOARD_OPEN_CI_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n </div>\n <div class ="row">\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat green">\n <div class="visual">\n <i class="icon-options"></i>\n </div>\n <div class="details">\n <div class="number">\n {{roomStatus.unmanaged || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_UNMANAGED_CI\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_UNMANAGED_CI_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat purple-plum">\n <div class="visual">\n <i class="icon-like"></i>\n </div>\n <div class="details">\n <div class="number">\n {{roomStatus.closed || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_DASHBOARD_CLOSED_CI\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_DASHBOARD_CLOSED_CI_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n </div>\n <div class ="row">\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat yellow-crusta">\n <div class="visual">\n <i class="icon-dislike"></i>\n </div>\n <div class="details">\n <div class="number">\n {{roomStatus.abandon || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_DASHBOARD_ABANDONED_CI\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_DASHBOARD_ABANDONED_CI_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12" >\n <div class="dashboard-stat yellow-casablanca">\n <div class="visual">\n <i class="icon-calculator"></i>\n </div>\n <div class="details">\n <div class="number">\n {{roomStatus.new+roomStatus.open+roomStatus.unmanaged+roomStatus.closed+roomStatus.abandon || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_TOTAL_CI\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_TOTAL_CI_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n </div>\n </div>\n <div class="col-md-4">\n <canvas class="chart chart-pie" chart-data="charts.interactions.values" chart-labels="charts.interactions.labels" chart-colours="charts.interactions.colours" chart-legend="true"></canvas>\n </div>\n </div>\n <legend>\n <span class="caption-subject"> </span><small class="pull-right font-grey-cascade">{{ \'APPLICATION_INTERACTION_STATS\' | translate }}</small>\n </legend>\n <div class="row">\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat red-intense">\n <div class="visual">\n <i class="icon-dislike"></i>\n </div>\n <div class="details">\n <div class="number">\n {{routingStats.timeout || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_TIMEOUT_CA\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_TIMEOUT_CA_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat purple">\n <div class="visual">\n <i class="icon-hourglass"></i>\n </div>\n <div class="details">\n <div class="number">\n {{routingStats.waiting || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_WAITING_CA\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_WAITING_CA_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n </div>\n </fieldset>\n\n</div>\n</div>\n'),a.put("app/dashboard/dashboard.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" id="dashboardView">\n <div class="col-md-12" >\n <div>\n <nav class="navbar navbar-default" role="navigation">\n <div class="navbar-header">\n <button type="button" class="navbar-toggle" data-ng-init="navCollapsed = true" data-ng-click="navCollapsed = !navCollapsed">\n <span class="sr-only">Toggle navigation</span>\n <span class="icon-bar"></span>\n <span class="icon-bar"></span>\n <span class="icon-bar"></span>\n </button>\n </div>\n\n <!-- Collect the nav links, forms, and other content for toggling -->\n <div class="collapse navbar-collapse" ng-class="!navCollapsed && \'in\'" >\n <ul class="nav navbar-nav">\n <li data-ng-class="{active: $state.is(\'main.dashboard.voice\')}">\n <a href="/dashboard/voice">\n <b class=\'icon-earphones-alt\'></b>\n {{ \'APPLICATION_VOICE\' | translate }}\n </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.dashboard.chat\'),\'disabled-link\':!license.chat}" data-ng-if="::((Auth.isAdmin() || Auth.isAgent() || userModules[8]))">\n <a href="{{license.chat ? \'/dashboard/chat\' : \'#\'}}" class="disable-target">\n <b class=\'icon-bubble\'></b>\n {{ \'APPLICATION_CHAT\' | translate }}\n </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.dashboard.mail\'),\'disabled-link\':!license.mail}" data-ng-if="::((Auth.isAdmin() || Auth.isAgent() || userModules[9]))">\n <a href="{{license.mail ? \'/dashboard/mail\' : \'#\'}}" class="disable-target">\n <b class=\'icon-envelope\'></b>\n {{ \'APPLICATION_EMAIL\' | translate }}\n </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.dashboard.fax\'),\'disabled-link\':!license.fax}" data-ng-if="::((Auth.isAdmin() || Auth.isAgent() || userModules[10]))">\n <a href="{{license.fax ? \'/dashboard/fax\' : \'#\'}}" class="disable-target">\n <b class=\'fa fa-fax\'></b>\n {{ \'APPLICATION_FAX\' | translate }}\n </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.dashboard.sms\'),\'disabled-link\':!license.messaging}" data-ng-if="::((Auth.isAdmin() || Auth.isAgent() || userModules[11]))">\n <a href="{{license.messaging ? \'/dashboard/sms\' : \'#\'}}" class="disable-target">\n <b class=\'glyphicon glyphicon-comment\'></b>\n {{ \'APPLICATION_SMS\' | translate }}\n </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.dashboard.openchannel\'),\'disabled-link\':!license.openchannel}" data-ng-if="::((Auth.isAdmin() || Auth.isAgent() || userModules[20]))">\n <a href="{{license.messaging ? \'/dashboard/openchannel\' : \'#\'}}" class="disable-target">\n <b class=\'icon-globe\'></b>\n {{ \'APPLICATION_OPEN_CHANNEL\' | translate }}\n </a>\n </li>\n </ul>\n </div>\n <!-- /.navbar-collapse -->\n </nav>\n </div>\n <div ui-view></div>\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/dashboard/fax/fax.html",'<div data-ng-switch="Auth.getRole()">\n <div ng-switch-when="agent" data-ng-init="initAgent()">\n <div class="row" style="padding-bottom:10px;">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div ui-grid="table1" name="table1" ui-grid-resize-columns ui-grid-pagination ui-grid-auto-resize class="ui-grid">\n <div class="watermark" data-ng-show="!table1.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n <div ng-switch-default data-ng-init="initRoomStats();initRoutingStats();initSocketListening();">\n <fieldset>\n <legend>\n <span class="caption-subject"> </span><small class="pull-right font-grey-cascade">{{ \'APPLICATION_INTERACTION_STATS\' | translate }}</small>\n </legend>\n <div class="row">\n <div class="col-md-8">\n <div class="row">\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat green-haze">\n <div class="visual">\n <i class="fa fa-play"></i>\n </div>\n <div class="details">\n <div class="number">\n {{roomStatus.new || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_DASHBOARD_NEW_FI\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_DASHBOARD_NEW_FI_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat blue-madison">\n <div class="visual">\n <i class="icon-bell"></i>\n </div>\n <div class="details">\n <div class="number">\n {{roomStatus.open || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_DASHBOARD_OPEN_FI\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_DASHBOARD_OPEN_FI_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n </div>\n <div class="row">\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat green">\n <div class="visual">\n <i class="icon-options"></i>\n </div>\n <div class="details">\n <div class="number">\n {{roomStatus.pending || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_DASHBOARD_PENDING_FI\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_DASHBOARD_PENDING_FI_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat purple-plum">\n <div class="visual">\n <i class="icon-like"></i>\n </div>\n <div class="details">\n <div class="number">\n {{roomStatus.closed || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_DASHBOARD_CLOSED_FI\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_DASHBOARD_CLOSED_FI_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n </div>\n <div class="row">\n <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">\n <div class="dashboard-stat yellow-casablanca">\n <div class="visual">\n <i class="icon-calculator"></i>\n </div>\n <div class="details">\n <div class="number">\n {{roomStatus.new+roomStatus.open+roomStatus.pending+roomStatus.closed || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_TOTAL_FI\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_TOTAL_FI_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n </div>\n </div>\n <div class="col-md-4">\n <!-- <div class="portlet light bordered">\n <div class="portlet-body"> -->\n <canvas class="chart chart-pie" chart-data="charts.interactions.values" chart-labels="charts.interactions.labels" chart-colours="charts.interactions.colours" chart-legend="true">\n </canvas>\n <!-- </div>\n </div> -->\n </div>\n </div>\n <legend>\n <span class="caption-subject"> </span><small class="pull-right font-grey-cascade">{{ \'APPLICATION_TODAY_STATS\' | translate }}</small>\n </legend>\n <div class="row">\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat red-intense">\n <div class="visual">\n <i class="icon-dislike"></i>\n </div>\n <div class="details">\n <div class="number">\n {{routingStats.timeout || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_TIMEOUT_FA\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_TIMEOUT_FA_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat purple">\n <div class="visual">\n <i class="icon-hourglass"></i>\n </div>\n <div class="details">\n <div class="number">\n {{routingStats.waiting || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_WAITING_FA\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_WAITING_FA_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n </div>\n </fieldset>\n </div>\n'),a.put("app/dashboard/mail/mail.html",'<div data-ng-switch="Auth.getRole()">\n <div ng-switch-when="agent" data-ng-init="initAgent()">\n <div class="row" style="padding-bottom:10px;">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div ui-grid="table1" name="table1" ui-grid-resize-columns ui-grid-pagination ui-grid-auto-resize class="ui-grid">\n <div class="watermark" data-ng-show="!table1.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n\n <!-- <div class="row" style="padding-bottom:10px;">\n <div class="col-md-12"> -->\n <!-- START TABLE -->\n <!-- <div ui-grid="table2" name="table2" ui-grid-resize-columns ui-grid-auto-resize class="ui-grid">\n <div class="watermark" data-ng-show="!table2.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div> -->\n <!-- END TABLE -->\n <!-- </div>\n </div> -->\n </div>\n <div ng-switch-default data-ng-init="initRoomStats();initRoutingStats();initSocketListening();">\n <fieldset>\n <legend>\n <span class="caption-subject"> </span><small class="pull-right font-grey-cascade">{{ \'APPLICATION_INTERACTION_STATS\' | translate }}</small>\n </legend>\n <div class="row">\n <div class="col-md-8">\n <div class="row">\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat green-haze">\n <div class="visual">\n <i class="fa fa-play"></i>\n </div>\n <div class="details">\n <div class="number">\n {{roomStatus.new || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_DASHBOARD_NEW_EI\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_DASHBOARD_NEW_EI_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat blue-madison">\n <div class="visual">\n <i class="icon-bell"></i>\n </div>\n <div class="details">\n <div class="number">\n {{roomStatus.open || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_DASHBOARD_OPEN_EI\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_DASHBOARD_OPEN_EI_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n </div>\n <div class="row">\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat green">\n <div class="visual">\n <i class="icon-options"></i>\n </div>\n <div class="details">\n <div class="number">\n {{roomStatus.pending || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_DASHBOARD_PENDING_EI\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_DASHBOARD_PENDING_EI_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat purple-plum">\n <div class="visual">\n <i class="icon-like"></i>\n </div>\n <div class="details">\n <div class="number">\n {{roomStatus.closed || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_DASHBOARD_CLOSED_EI\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_DASHBOARD_CLOSED_EI_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n </div>\n <div class="row">\n <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">\n <div class="dashboard-stat yellow-casablanca">\n <div class="visual">\n <i class="icon-calculator"></i>\n </div>\n <div class="details">\n <div class="number">\n {{roomStatus.new+roomStatus.open+roomStatus.pending+roomStatus.closed || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_TOTAL_EI\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_TOTAL_EI_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n </div>\n </div>\n <div class="col-md-4">\n <!-- <div class="portlet light bordered">\n <div class="portlet-body"> -->\n <canvas class="chart chart-pie" chart-data="charts.interactions.values" chart-labels="charts.interactions.labels" chart-colours="charts.interactions.colours" chart-legend="true">\n </canvas>\n <!-- </div>\n </div> -->\n </div>\n </div>\n <legend>\n <span class="caption-subject"> </span><small class="pull-right font-grey-cascade">{{ \'APPLICATION_TODAY_STATS\' | translate }}</small>\n </legend>\n <div class="row">\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat red-intense">\n <div class="visual">\n <i class="icon-dislike"></i>\n </div>\n <div class="details">\n <div class="number">\n {{routingStats.timeout || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_TIMEOUT_EA\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_TIMEOUT_EA_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat purple">\n <div class="visual">\n <i class="icon-hourglass"></i>\n </div>\n <div class="details">\n <div class="number">\n {{routingStats.waiting || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_WAITING_EA\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_WAITING_EA_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n </div>\n </fieldset>\n </div>\n'),a.put("app/dashboard/openchannel/openchannel.html",'<div data-ng-switch="Auth.getRole()">\n <div ng-switch-when="agent" data-ng-init="initAgent()">\n <div class="row" style="padding-bottom:10px;">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div ui-grid="table1" name="table1" ui-grid-resize-columns ui-grid-pagination ui-grid-auto-resize class="ui-grid">\n <div class="watermark" data-ng-show="!table1.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n\n <!-- <div class="row" style="padding-bottom:10px;">\n <div class="col-md-12"> -->\n <!-- START TABLE -->\n <!-- <div ui-grid="table2" name="table2" ui-grid-resize-columns ui-grid-auto-resize class="ui-grid">\n <div class="watermark" data-ng-show="!table2.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div> -->\n <!-- END TABLE -->\n <!-- </div>\n </div> -->\n </div>\n <div ng-switch-default data-ng-init="initRoomStats();initRoutingStats();initSocketListening();">\n <fieldset>\n <legend>\n <span class="caption-subject"> </span><small class="pull-right font-grey-cascade">{{ \'APPLICATION_INTERACTION_STATS\' | translate }}</small>\n </legend>\n <div class="row">\n <div class="col-md-8">\n <div class="row">\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat green-haze">\n <div class="visual">\n <i class="fa fa-play"></i>\n </div>\n <div class="details">\n <div class="number">\n {{roomStatus.new || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_DASHBOARD_NEW_OI\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_DASHBOARD_NEW_OI_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat blue-madison">\n <div class="visual">\n <i class="icon-bell"></i>\n </div>\n <div class="details">\n <div class="number">\n {{roomStatus.open || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_DASHBOARD_OPEN_OI\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_DASHBOARD_OPEN_OI_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n </div>\n <div class="row">\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat green">\n <div class="visual">\n <i class="icon-options"></i>\n </div>\n <div class="details">\n <div class="number">\n {{roomStatus.pending || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_DASHBOARD_PENDING_OI\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_DASHBOARD_PENDING_OI_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat purple-plum">\n <div class="visual">\n <i class="icon-like"></i>\n </div>\n <div class="details">\n <div class="number">\n {{roomStatus.closed || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_DASHBOARD_CLOSED_OI\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_DASHBOARD_CLOSED_OI_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n </div>\n <div class="row">\n <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">\n <div class="dashboard-stat yellow-casablanca">\n <div class="visual">\n <i class="icon-calculator"></i>\n </div>\n <div class="details">\n <div class="number">\n {{roomStatus.new+roomStatus.open+roomStatus.pending+roomStatus.closed || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_TOTAL_OI\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_TOTAL_OI_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n </div>\n </div>\n <div class="col-md-4">\n <!-- <div class="portlet light bordered">\n <div class="portlet-body"> -->\n <canvas class="chart chart-pie" chart-data="charts.interactions.values" chart-labels="charts.interactions.labels" chart-colours="charts.interactions.colours" chart-legend="true">\n </canvas>\n <!-- </div>\n </div> -->\n </div>\n </div>\n <legend>\n <span class="caption-subject"> </span><small class="pull-right font-grey-cascade">{{ \'APPLICATION_TODAY_STATS\' | translate }}</small>\n </legend>\n <div class="row">\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat red-intense">\n <div class="visual">\n <i class="icon-dislike"></i>\n </div>\n <div class="details">\n <div class="number">\n {{routingStats.timeout || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_TIMEOUT_OA\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_TIMEOUT_OA_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat purple">\n <div class="visual">\n <i class="icon-hourglass"></i>\n </div>\n <div class="details">\n <div class="number">\n {{routingStats.waiting || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_WAITING_OA\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_WAITING_OA_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n </div>\n </fieldset>\n </div>\n'),a.put("app/dashboard/sms/sms.html",'<div data-ng-switch="Auth.getRole()">\n <div ng-switch-when="agent" data-ng-init="initAgent()">\n <div class="row" style="padding-bottom:10px;">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div ui-grid="table1" name="table1" ui-grid-resize-columns ui-grid-pagination ui-grid-auto-resize class="ui-grid">\n <div class="watermark" data-ng-show="!table1.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n\n <!-- <div class="row" style="padding-bottom:10px;">\n <div class="col-md-12"> -->\n <!-- START TABLE -->\n <!-- <div ui-grid="table2" name="table2" ui-grid-resize-columns ui-grid-auto-resize class="ui-grid">\n <div class="watermark" data-ng-show="!table2.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div> -->\n <!-- END TABLE -->\n <!-- </div>\n </div> -->\n </div>\n <div ng-switch-default data-ng-init="initRoomStats();initRoutingStats();initSocketListening();">\n <fieldset>\n <legend>\n <span class="caption-subject"> </span><small class="pull-right font-grey-cascade">{{ \'APPLICATION_INTERACTION_STATS\' | translate }}</small>\n </legend>\n <div class="row">\n <div class="col-md-8">\n <div class="row">\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat green-haze">\n <div class="visual">\n <i class="fa fa-play"></i>\n </div>\n <div class="details">\n <div class="number">\n {{roomStatus.new || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_DASHBOARD_NEW_SI\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_DASHBOARD_NEW_SI_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat blue-madison">\n <div class="visual">\n <i class="icon-bell"></i>\n </div>\n <div class="details">\n <div class="number">\n {{roomStatus.open || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_DASHBOARD_OPEN_SI\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_DASHBOARD_OPEN_SI_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n </div>\n <div class="row">\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat green">\n <div class="visual">\n <i class="icon-options"></i>\n </div>\n <div class="details">\n <div class="number">\n {{roomStatus.pending || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_DASHBOARD_PENDING_SI\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_DASHBOARD_PENDING_SI_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat purple-plum">\n <div class="visual">\n <i class="icon-like"></i>\n </div>\n <div class="details">\n <div class="number">\n {{roomStatus.closed || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_DASHBOARD_CLOSED_SI\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_DASHBOARD_CLOSED_SI_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n </div>\n <div class="row">\n <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">\n <div class="dashboard-stat yellow-casablanca">\n <div class="visual">\n <i class="icon-calculator"></i>\n </div>\n <div class="details">\n <div class="number">\n {{roomStatus.new+roomStatus.open+roomStatus.pending+roomStatus.closed || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_TOTAL_SI\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_TOTAL_SI_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n </div>\n </div>\n <div class="col-md-4">\n <!-- <div class="portlet light bordered">\n <div class="portlet-body"> -->\n <canvas class="chart chart-pie" chart-data="charts.interactions.values" chart-labels="charts.interactions.labels" chart-colours="charts.interactions.colours" chart-legend="true">\n </canvas>\n <!-- </div>\n </div> -->\n </div>\n </div>\n <legend>\n <span class="caption-subject"> </span><small class="pull-right font-grey-cascade">{{ \'APPLICATION_TODAY_STATS\' | translate }}</small>\n </legend>\n <div class="row">\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat red-intense">\n <div class="visual">\n <i class="icon-dislike"></i>\n </div>\n <div class="details">\n <div class="number">\n {{routingStats.timeout || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_TIMEOUT_SA\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_TIMEOUT_SA_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n <div class="dashboard-stat purple">\n <div class="visual">\n <i class="icon-hourglass"></i>\n </div>\n <div class="details">\n <div class="number">\n {{routingStats.waiting || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_WAITING_SA\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_WAITING_SA_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n </div>\n </fieldset>\n </div>\n'), -a.put("app/dashboard/voice/voice.html",'<div data-ng-switch="Auth.getRole()">\n <div ng-switch-when="agent" data-ng-init="initAgent()">\n <div class="portlet light">\n <div class="portlet-body">\n <!-- START TABLE -->\n <div data-ng-if="table1" ui-grid="table1" name="table1" ui-grid-resize-columns ui-grid-pagination ui-grid-auto-resize class="ui-grid">\n <div class="watermark" data-ng-show="!table1.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_a" data-toggle="tab">{{\'APPLICATION_WAITING\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_b" data-toggle="tab">{{\'APPLICATION_ABANDONED\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body" data-ng-init="initView()">\n <div class="tab-content">\n <div class="tab-pane active" id="tab_1_a">\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_SHOW_TIMERS\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="showTimers"\n type="checkbox"\n name="showTimers"\n switch-active="{{ timerSwitch.isActive }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ timerSwitch.onColor }}"\n switch-off-color="{{ timerSwitch.offColor }}"\n switch-animate="{{ timerSwitch.animate }}"\n switch-size="{{ timerSwitch.size }}"\n switch-label="{{ timerSwitch.label }}"\n switch-icon="{{ timerSwitch.icon }}"\n switch-radio-off="{{ timerSwitch.radioOff }}"\n switch-label-width="{{ timerSwitch.labelWidth }}"\n switch-handle-width="{{ timerSwitch.handleWidth }}">\n </div>\n <!-- START TABLE -->\n <div data-ng-if="table2" ui-grid="table2" name="table2" ui-grid-resize-columns ui-grid-pagination ui-grid-auto-resize class="ui-grid">\n <div class="watermark" data-ng-show="!table2.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n <div class="tab-pane" id="tab_1_b">\n <!-- START TABLE -->\n <div data-ng-if="table3" ui-grid="table3" name="table3" ui-grid-resize-columns ui-grid-pagination ui-grid-auto-resize class="ui-grid">\n <div class="watermark" data-ng-show="!table3.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n </div>\n </div>\n <div ng-switch-default data-ng-init="initUser()">\n <fieldset>\n <legend>\n <span class="caption-subject">{{ \'APPLICATION_INBOUND\' | translate }}</span><small class="font-grey-cascade pull-right">{{ \'APPLICATION_TODAY_STATS\' | translate }}</small>\n </legend>\n\n <div class="row">\n <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">\n <div class="dashboard-stat blue">\n <div class="visual">\n <i class="icon-bell"></i>\n </div>\n <div class="details">\n <div class="number">\n {{ voice.queues.waiting || 0 }}\n </div>\n <div class="desc">\n {{\'APPLICATION_WAITING_QC\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_WAITING_QC_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">\n <div class="dashboard-stat grey-gallery">\n <div class="visual">\n <i class="fa fa-play"></i>\n </div>\n <div class="details">\n <div class="number">\n {{ voice.queues.active || 0 }}\n </div>\n <div class="desc">\n {{\'APPLICATION_ACTIVE_QC\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_ACTIVE_QC_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">\n <div class="dashboard-stat green-jungle">\n <div class="visual">\n <i class="icon-like"></i>\n </div>\n <div class="details">\n <div class="number">\n {{ voice.queues.complete || 0 }}\n </div>\n <div class="desc">\n {{\'APPLICATION_ANSWERED_QC\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_ANSWERED_QC_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">\n <div class="dashboard-stat red-thunderbird">\n <div class="visual">\n <i class="icon-dislike"></i>\n </div>\n <div class="details">\n <div class="number">\n {{ voice.queues.abandon || 0 }}\n </div>\n <div class="desc">\n {{\'APPLICATION_ABANDONED_QC\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_ABANDONED_QC_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n </div>\n\n <div class="row">\n <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">\n <div class="dashboard-stat yellow-gold">\n <div class="visual">\n <i class="icon-clock"></i>\n </div>\n <div class="details">\n <div class="number">\n {{ voice.queues.complete ? (voice.queues.holdtime / voice.queues.complete) : 0 | secToTime | date:\'HH:mm:ss\' }}\n </div>\n <div class="desc">\n {{\'APPLICATION_AVG_ANSWER_TIME_QC\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_AVG_ANSWER_TIME_QC_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">\n <div class="dashboard-stat purple">\n <div class="visual">\n <i class="icon-clock"></i>\n </div>\n <div class="details">\n <div class="number">\n {{ voice.queues.complete ? (voice.queues.talktime / voice.queues.complete) : 0 | secToTime | date:\'HH:mm:ss\' }}\n </div>\n <div class="desc">\n {{\'APPLICATION_AVG_TALK_TIME_QC\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_AVG_TALK_TIME_QC_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">\n <div class="dashboard-stat green-jungle">\n <div class="visual">\n <i class="icon-pie-chart"></i>\n </div>\n <div class="details">\n <div class="number">\n {{ (voice.queues.complete / (voice.queues.complete + voice.queues.abandon) * 100) || 0 | number:2}}\n </div>\n <div class="desc">\n {{\'APPLICATION_ANSWER_RATE_QC\' | translate}} (%)\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_ANSWER_RATE_QC_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">\n <div class="dashboard-stat red-thunderbird">\n <div class="visual">\n <i class="icon-pie-chart"></i>\n </div>\n <div class="details">\n <div class="number">\n {{ (voice.queues.abandon / (voice.queues.complete + voice.queues.abandon) * 100) || 0 | number:2}}\n </div>\n <div class="desc">\n {{\'APPLICATION_ABANDON_RATE_QC\' | translate}} (%)\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_ABANDON_RATE_QC_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n </div>\n\n <div class="row">\n <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">\n <div class="dashboard-stat blue">\n <div class="visual">\n <i class="icon-info"></i>\n </div>\n <div class="details">\n <div class="number">\n {{ voice.queues.complete + voice.queues.abandon || 0}}\n </div>\n <div class="desc">\n {{\'APPLICATION_TOTAL_OFFERED_QC\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_TOTAL_OFFERED_QC_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">\n <div class="dashboard-stat red-thunderbird">\n <div class="visual">\n <i class="icon-info"></i>\n </div>\n <div class="details">\n <div class="number">\n {{ voice.queues.unmanaged || 0 }}\n </div>\n <div class="desc">\n {{\'APPLICATION_UNMANAGED_QC\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_UNMANAGED_QC_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n </div>\n </fieldset>\n\n <fieldset>\n <legend>\n <span class="caption-subject">{{ \'APPLICATION_OUTBOUND\' | translate }}</span><small class="pull-right font-grey-cascade">{{ \'APPLICATION_TODAY_STATS\' | translate }}</small>\n </legend>\n\n <div class="row">\n <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">\n <div class="dashboard-stat green-haze">\n <div class="visual">\n <i class="icon-call-out"></i>\n </div>\n <div class="details">\n <div class="number">\n {{ voice.outbound.total || 0 }}\n </div>\n <div class="desc">\n {{\'APPLICATION_MANUAL_OUTBOUND_OB\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_MANUAL_OUTBOUND_OB_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">\n <div class="dashboard-stat grey-gallery">\n <div class="visual">\n <i class="icon-clock"></i>\n </div>\n <div class="details">\n <div class="number">\n {{ (voice.outbound.sumDuration || 0) | secToTime | date:\'HH:mm:ss\' }}\n </div>\n <div class="desc">\n {{\'APPLICATION_GLOBAL_DURATION_OB\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_GLOBAL_DURATION_OB_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">\n <div class="dashboard-stat green-jungle">\n <div class="visual">\n <i class="icon-like"></i>\n </div>\n <div class="details">\n <div class="number">\n {{ voice.outbound.answered || 0 }}\n </div>\n <div class="desc">\n {{\'APPLICATION_ANSWERED_OB\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_ANSWERED_OB_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">\n <div class="dashboard-stat yellow-gold">\n <div class="visual">\n <i class="icon-pie-chart"></i>\n </div>\n <div class="details">\n <div class="number">\n {{ (voice.outbound.avgDuration || 0) | secToTime | date:\'HH:mm:ss\' }}\n </div>\n <div class="desc">\n {{\'APPLICATION_AVG_DURATION_OB\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_AVG_DURATION_OB_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n </div>\n\n <div class="row">\n <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">\n <div class="dashboard-stat blue">\n <div class="visual">\n <i class="icon-pie-chart"></i>\n </div>\n <div class="details">\n <div class="number">\n {{ (voice.outbound.answerRate || 0) | number:2 }}\n </div>\n <div class="desc">\n {{\'APPLICATION_ANSWER_RATE_OB\' | translate}} (%)\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_ANSWER_RATE_OB_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">\n <div class="dashboard-stat purple">\n <div class="visual">\n <i class="icon-pie-chart"></i>\n </div>\n <div class="details">\n <div class="number">\n {{(voice.outbound.tigerdial || 0)}}\n </div>\n <div class="desc">\n {{\'APPLICATION_MOTION_DIALER_CALLS_OB\' | translate}}\n </div>\n </div>\n <a class="more inactive-link">\n {{\'APPLICATION_MOTION_DIALER_CALLS_OB_EXTENDED\' | translate}}\n </a>\n </div>\n </div>\n </div>\n\n </fieldset>\n </div>\n</div>\n'),a.put("app/desk/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-handbag"></i>\n <a href="/desk/list">{{ \'APPLICATION_DESK_COM\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-handbag font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_DESK_COM\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="accounts.checked.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="/desk/wizard">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_ACCOUNT\' | translate }}\n </a>\n </div>\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="getAccounts([\'name\',\'username\',\'remoteUri\',\'authType\',\'consumerKey\',\'consumerSecret\',\'token\',\'tokenSecret\',\'password\'])" csv-header="[\'Name\', \'Username\', \'Remote Address\', \'Authentication Type\', \'Consumer Key\', \'Consumer Secret\', \'Token\', \'Token Secret\', \'Password\']" field-separator=";" filename="desk_accounts.csv">\n <i class="icon-cloud-download"></i></a>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedDeskAccounts" st-pipe="initList" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="7">\n <div class="row">\n <div class="col-md-6">\n <ui-select class="input-xsmall" ng-model="conf.accountsByPage" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="accountByPage in accountsByPage | filter: $select.search">\n <div ng-bind-html="accountByPage.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th class="small-cells" style="text-align: center; vertical-align: middle"><input type="checkbox" ng-change="check(account, checked)" checklist-model checklist-value="id"></th>\n <th st-sort="name">{{ \'APPLICATION_NAME\' | translate }}</th>\n <th st-sort="username">{{ \'APPLICATION_EMAIL\' | translate }}</th>\n <th st-sort="remoteUri">{{ \'APPLICATION_REMOTE_ADDRESS\' | translate }}</th>\n <th>{{ \'APPLICATION_DESCRIPTION\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="account in displayedDeskAccounts" class="animate-repeat">\n <td style="text-align: center; vertical-align: middle"><input type="checkbox" checklist-model="accounts.checked" checklist-value="account.id"></td>\n <td>{{account.name}}</td>\n <td>{{account.username}}</td>\n <td>{{account.remoteUri}}</td>\n <td>{{account.description}}</td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/desk/view/{{account.id}}/account">\n {{ \'APPLICATION_EDIT\' | translate }}\n </a>\n <a class="btn default btn-xs green-stripe" data-ng-click="checkAccount(account.id)">\n {{ \'APPLICATION_CHECK\' | translate }}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(account.name,account.id)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="displayedDeskAccounts.length">\n <td colspan="7" style="text-align:center;">\n <i>No account available</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td/>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_NAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="email" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_EMAIL\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="remoteUri" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_REMOTE_ADDRESS\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td/>\n <td/>\n </tr>\n <tr>\n <td colspan="7" class="text-center">\n <div class="pagination" st-pagination st-items-by-page="conf.accountsByPage.value" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/desk/view/view.account.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_ACCOUNT\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERALS\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.formSetting" data-ng-submit="forms.formSetting.$valid && updateItem()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.name" required/>\n <span data-ng-show="forms.formSetting.name.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="account.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="account.username" required/>\n <span data-ng-show="forms.formSetting.username.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START REMOTE ADDRESS -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.remoteUri.$invalid}">\n <label class="control-label">{{\'APPLICATION_REMOTE_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="remoteUri" placeholder="{{\'APPLICATION_REMOTE_ADDRESS\' | translate}}" class="form-control" data-ng-model="account.remoteUri" required />\n <span data-ng-show="forms.formSetting.remoteUri.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START AUTH TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.authType.$invalid}">\n <label class="control-label">{{\'APPLICATION_AUTHENTICATION_TYPE\' | translate}}</label>\n <ui-select data-ng-model="account.authType" name="authType" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_AUTHENTICATION_TYPE\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="type in [\'basic\', \'oauth\'] | filter: $select.search">\n <div data-ng-bind="type | capitalize | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.formSetting.authType.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- START AUTH TYPE -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.password.$invalid}" ng-slide-down="account.authType == \'basic\'" lazy-render duration="1">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="account.password" required/>\n <span data-ng-show="forms.formSetting.password.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START CONSUMER KEY -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.consumerKey.$invalid}" ng-slide-down="account.authType == \'oauth\'" lazy-render duration="1">\n <label class="control-label">{{\'APPLICATION_CONSUMER_KEY\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="consumerKey" placeholder="{{\'APPLICATION_CONSUMER_KEY\' | translate}}" class="form-control" data-ng-model="account.consumerKey" required/>\n <span data-ng-show="forms.formSetting.consumerKey.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CONSUMER KEY -->\n\n <!-- START CONSUMER SECRET -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.consumerSecret.$invalid}" ng-slide-down="account.authType == \'oauth\'" lazy-render duration="1">\n <label class="control-label">{{\'APPLICATION_CONSUMER_SECRET\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="consumerSecret" placeholder="{{\'APPLICATION_CONSUMER_SECRET\' | translate}}" class="form-control" data-ng-model="account.consumerSecret" required/>\n <span data-ng-show="forms.formSetting.consumerSecret.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CONSUMER SECRET -->\n\n <!-- START TOKEN -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.token.$invalid}" ng-slide-down="account.authType == \'oauth\'" lazy-render duration="1">\n <label class="control-label">{{\'APPLICATION_TOKEN\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="token" placeholder="{{\'APPLICATION_TOKEN\' | translate}}" class="form-control" data-ng-model="account.token" required/>\n <span data-ng-show="forms.formSetting.token.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TOKEN -->\n\n <!-- START TOKEN SECRET-->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.tokenSecret.$invalid}" ng-slide-down="account.authType == \'oauth\'" lazy-render duration="1">\n <label class="control-label">{{\'APPLICATION_TOKEN_SECRET\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="tokenSecret" placeholder="{{\'APPLICATION_TOKEN_SECRET\' | translate}}" class="form-control" data-ng-model="account.tokenSecret" required/>\n <span data-ng-show="forms.formSetting.tokenSecret.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TOKEN SECRET-->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/desk/view/view.configuration.html",'<div class="row" data-ng-init="initConfiguration()">\n <div class="col-md-12">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_CONFIGURATION\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createConfiguration()">\n <wz-step title="{{\'APPLICATION_SETTINGS\' | translate}}" canexit="formValidation(formsConfiguration.info.$valid)">\n <form name="formsConfiguration.info" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': formsConfiguration.info.$submitted && formsConfiguration.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="configuration.name" required/>\n <span data-ng-show="formsConfiguration.info.name.$invalid && formsConfiguration.info.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="configuration.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" data-ng-click="goNext()"/>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'), -a.put("app/desk/view/view.configurationSettings.html",'<div class="row" data-ng-init="getConfiguration();getVariables();getFields();">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_CONFIGURATION\' | translate}}: {{configurationName}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_SUBJECT\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_DESCRIPTION\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_3" data-toggle="tab">{{\'APPLICATION_FIELDS\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- SUBJECT TAB -->\n <div class="tab-pane ui-padding active" id="tab_1_1">\n <div class="row">\n <div class="col-md-11">\n <span class="caption-subject">All following fields will be join by blank space:</span>\n </div>\n <div class="col-md-1 pull-rigth">\n <button class="btn btn-icon-only green" data-ng-click="addItemSubject()"><i class="fa fa-plus"></i></button>\n </div>\n </div>\n <hr>\n <!-- <div ng-scrollbars ng-scrollbars-config="config"> -->\n <div class="row" data-ng-repeat="subjectItem in subjectConfig">\n <div class="col-md-3">\n <ui-select ng-model="subjectItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeType(subjectItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in fieldType | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-8" data-ng-if="subjectItem.type==\'string\'">\n <div class="form-group">\n <input type="text" class="form-control" data-ng-model="subjectItem.content" data-ng-change="updateField(subjectItem)">\n </div>\n </div>\n <div class="col-md-8" data-ng-if="subjectItem.type==\'variable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="subjectItem.VariableId" data-ng-change="updateField(subjectItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="variable.id as variable in variables | filter: $select.search">\n <div ng-bind-html="variable.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-1">\n <div class="form-group">\n <button class="btn btn-icon-only red" data-ng-click="removeItem(subjectItem)"><i class="fa fa-times"></i></button>\n </div>\n </div>\n </div>\n <!-- </div> -->\n </div>\n <!-- END SUBJECT TAB -->\n <!-- DESCRIPTION TAB -->\n <div class="tab-pane ui-padding" id="tab_1_2">\n <div class="row">\n <div class="col-md-11">\n <span class="caption-subject">All following fields will be join by new line:</span>\n </div>\n <div class="col-md-1 pull-rigth">\n <button class="btn btn-icon-only green" data-ng-click="addItemDescription()"><i class="fa fa-plus"></i></button>\n </div>\n </div>\n <hr>\n <!-- <div ng-scrollbars ng-scrollbars-config="config"> -->\n <div class="row" data-ng-repeat="descriptionItem in descriptionConfig">\n <!-- <pre>\n {{descriptionItem|json}}\n </pre> -->\n <div class="col-md-2">\n <ui-select ng-model="descriptionItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeDescType(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected | ucfirst}}</ui-select-match>\n <ui-select-choices repeat="item in descFieldType | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | ucfirst"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-9" data-ng-if="descriptionItem.type==\'string\'">\n <div class="form-group">\n <input type="text" class="form-control" data-ng-model="descriptionItem.content" data-ng-change="updateField(descriptionItem)">\n </div>\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'key_value\'">\n <input type="text" class="form-control" placeholder="Key" data-ng-model="descriptionItem.key" data-ng-change="updateField(descriptionItem)">\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'key_value\'">\n <ui-select ng-model="descriptionItem.keyType" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeDescType(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in fieldType | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'key_value\' && descriptionItem.keyType==\'string\'">\n <input type="text" class="form-control" placeholder="Value" data-ng-model="descriptionItem.keyContent" data-ng-change="updateField(descriptionItem)">\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'key_value\' && descriptionItem.keyType==\'variable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="descriptionItem.VariableId" data-ng-change="updateField(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="variable.id as variable in variables | filter: $select.search">\n <div ng-bind-html="variable.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-1">\n <div class="form-group">\n <button class="btn btn-icon-only red" data-ng-click="removeItem(descriptionItem)"><i class="fa fa-times"></i></button>\n </div>\n </div>\n </div>\n <!-- </div> -->\n </div>\n <!-- END DESCRIPTION TAB -->\n <!-- FIELDS TAB -->\n <div class="tab-pane ui-padding" id="tab_1_3">\n <div class="row">\n <div class="col-md-11">\n <span class="caption-subject">Add how to fill the fields present in your account:</span>\n </div>\n <div class="col-md-1 pull-rigth">\n <button class="btn btn-icon-only green" data-ng-click="addItemField()"><i class="fa fa-plus"></i></button>\n </div>\n </div>\n <hr>\n <!-- <div ng-scrollbars ng-scrollbars-config="config"> -->\n <div class="row" data-ng-repeat="fieldItem in fieldConfig">\n <div class="col-md-3">\n <ui-select ng-model="fieldItem.idField" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeFieldType(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.label}}</ui-select-match>\n <ui-select-choices repeat="item.id as item in accountFields | filter: $select.search">\n <div ng-bind-html="item.label | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-8" data-ng-if="getSystemFieldOptions(fieldItem.idField)">\n <div class="form-group">\n <ui-select ng-model="fieldItem.content" theme="bootstrap" ng-disabled="disabled" data-ng-change="updateField(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="item in getSystemFieldOptions(fieldItem.idField) | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField)">\n <div class="form-group">\n <ui-select ng-model="fieldItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeType(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected | ucfirst}}</ui-select-match>\n <ui-select-choices repeat="item in fieldType | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | ucfirst"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'string\'">\n <div class="form-group">\n <input type="text" class="form-control" data-ng-model="fieldItem.content" data-ng-change="updateField(fieldItem)">\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'variable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="fieldItem.VariableId" data-ng-change="updateField(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="variable.id as variable in variables | filter: $select.search">\n <div ng-bind-html="variable.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-1">\n <div class="form-group">\n <button class="btn btn-icon-only red" data-ng-click="removeItem(fieldItem)"><i class="fa fa-times"></i></button>\n </div>\n </div>\n </div>\n <!-- </div> -->\n </div>\n <!-- END FIELDS TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/desk/view/view.configurations.html",'<div ui-view class="profile-content">\n <div class="row" data-ng-init="getConfigurations()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_CONFIGURATIONS\' | translate}}</span>\n </div>\n <div class="actions">\n <div class="btn-group">\n <a class="btn green-jungle " href="/desk/view/{{account.id}}/configuration" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_CONFIGURATION\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table class="table table-striped table-bordered table-hover">\n <thead>\n <tr>\n <th>{{\'APPLICATION_NAME\' | translate}}</th>\n <th>{{\'APPLICATION_DESCRIPTION\' | translate}}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="configuration in configurations">\n <td>{{configuration.name}}</td>\n <td>{{configuration.description}}</td>\n <td>\n <a class="btn default btn-xs blue-stripe" data-ng-href="/desk/view/{{account.id}}/configurations/settings/{{configuration.id}}">\n {{ \'APPLICATION_SETTINGS\' | translate}}\n </a>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteConfiguration(configuration.name,configuration.id)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="configurations.length">\n <td colspan="5" style="text-align:center;">\n <i>No configuration available</i>\n </td>\n </tr>\n </tbody>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/desk/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-handbag"></i>\n <a href="/desk/list">{{ \'APPLICATION_DESK_COM\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <a href="#">{{account.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img src="assets/images/media/desk.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{account.name}}\n </div>\n <div class="profile-usertitle-job">\n {{account.remoteUri}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.desk.view.account\')}">\n <a ng-href="/desk/view/{{account.id}}/account">\n <i class="icon-user"></i>\n {{ \'APPLICATION_ACCOUNT\' | translate }} </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.desk.view.configurations\') || $state.is(\'main.desk.view.configuration\')}">\n <a ng-href="/desk/view/{{account.id}}/configurations">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_CONFIGURATIONS\' | translate }} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/desk/wizard/wizard.html",'<!-- BEGIN PAGE HEADER-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-handbag"></i>\n <a href="/desk/list">{{ \'APPLICATION_DESK_COM\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n<!-- END PAGE HEADER-->\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initWizard()">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACCOUNT\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_ACCOUNT_INFO\' | translate}}" canexit="exitValidation(forms.formSetting.$valid)">\n <form name="forms.formSetting" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="forms.formSetting.name.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.username" required ng-remote-validate="/api/desk/accounts/validate/username"/>\n <span data-ng-show="forms.formSetting.username.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.formSetting.username.$touched || forms.formSetting.$submitted) && forms.formSetting.username.$error.ngRemoteValidate" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_EXIST_USERNAME\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n\n <!-- START REMOTE ADDRESS -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.remoteUri.$invalid}">\n <label class="control-label">{{\'APPLICATION_REMOTE_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="remoteUri" placeholder="{{\'APPLICATION_REMOTE_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.remoteUri" required ng-remote-validate="/api/desk/accounts/validate/remoteUri"/>\n <span data-ng-show="forms.formSetting.remoteUri.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.formSetting.remoteUri.$touched || forms.formSetting.$submitted) && forms.formSetting.remoteUri.$error.ngRemoteValidate" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_EXIST_DOMAIN\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START AUTH TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.authType.$invalid}">\n <label class="control-label">{{\'APPLICATION_AUTHENTICATION_TYPE\' | translate}}</label>\n <ui-select data-ng-model="item.authType" name="authType" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_AUTHENTICATION_TYPE\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="type in [\'basic\', \'oauth\'] | filter: $select.search">\n <div data-ng-bind="type | capitalize | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.formSetting.authType.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- START AUTH TYPE -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.password.$invalid}" ng-slide-down="item.authType == \'basic\'" lazy-render duration="1">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.password" required/>\n <span data-ng-show="forms.formSetting.password.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START CONSUMER KEY -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.consumerKey.$invalid}" ng-slide-down="item.authType == \'oauth\'" lazy-render duration="1">\n <label class="control-label">{{\'APPLICATION_CONSUMER_KEY\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="consumerKey" placeholder="{{\'APPLICATION_CONSUMER_KEY\' | translate}}" class="form-control" data-ng-model="item.consumerKey" required/>\n <span data-ng-show="forms.formSetting.consumerKey.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CONSUMER KEY -->\n\n <!-- START CONSUMER SECRET -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.consumerSecret.$invalid}" ng-slide-down="item.authType == \'oauth\'" lazy-render duration="1">\n <label class="control-label">{{\'APPLICATION_CONSUMER_SECRET\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="consumerSecret" placeholder="{{\'APPLICATION_CONSUMER_SECRET\' | translate}}" class="form-control" data-ng-model="item.consumerSecret" required/>\n <span data-ng-show="forms.formSetting.consumerSecret.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CONSUMER SECRET -->\n\n <!-- START TOKEN -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.token.$invalid}" ng-slide-down="item.authType == \'oauth\'" lazy-render duration="1">\n <label class="control-label">{{\'APPLICATION_TOKEN\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="token" placeholder="{{\'APPLICATION_TOKEN\' | translate}}" class="form-control" data-ng-model="item.token" required/>\n <span data-ng-show="forms.formSetting.token.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TOKEN -->\n\n <!-- START TOKEN SECRET-->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.tokenSecret.$invalid}" ng-slide-down="item.authType == \'oauth\'" lazy-render duration="1">\n <label class="control-label">{{\'APPLICATION_TOKEN_SECRET\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="tokenSecret" placeholder="{{\'APPLICATION_TOKEN_SECRET\' | translate}}" class="form-control" data-ng-model="item.tokenSecret" required/>\n <span data-ng-show="forms.formSetting.tokenSecret.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TOKEN SECRET-->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" data-ng-click="next()"/>\n\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n\n </wizard>\n\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/freshdesk/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-handbag"></i>\n <a href="/freshdesk/list">{{ \'APPLICATION_FRESHDESK\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-handbag font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_FRESHDESK\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="/freshdesk/wizard">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_ACCOUNT\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/freshdesk/view/configuration/list/create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_CONFIGURATION\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.name.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(form.name.$touched || form.name.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START CHANNEL -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.channel.$touched || form.channel.$submitted) && form.channel.$invalid}">\n <label class="control-label">{{\'APPLICATION_CHANNEL\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.channel" name="channel" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_CHANNEL\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="channel.value as channel in channels | filter: $select.search">\n <div data-ng-bind="channel.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form.channel.$touched || form.channel.$submitted) && form.channel.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- START CHANNEL -->\n\n <!-- START VOICE SUBTYPE -->\n <div data-ng-if="item.channel===\'voice\'" class="form-group" data-ng-class="{\'has-error\': (form.channel.$touched || form.channel.$submitted) && form.channel.$invalid}">\n <label class="control-label">{{\'APPLICATION_TYPE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.type" name="type" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_TYPE\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="type in [\'Queue\',\'Outbound\'] | filter: $select.search">\n <div data-ng-bind="type | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form.type.$touched || form.type.$submitted) && form.type.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- START CHANNEL -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'), -a.put("app/freshdesk/view/configuration/list/list.html",'<div ui-view class="profile-content">\n <div class="row">\n <div class="col-md-12">\n <div class="portlet light" data-ng-init="initView()">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_CONFIGURATIONS\' | translate}}</span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="#" data-ng-click="createItem()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_CONFIGURATION\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/freshdesk/view/configuration/view/view.html",'<div class="row" data-ng-init="initView();getConfiguration();getCustomVariables();getFields();getTags();">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_CONFIGURATION\' | translate}}: {{configurationName}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_SUBJECT\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_DESCRIPTION\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_3" data-toggle="tab">{{\'APPLICATION_FIELDS\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_4" data-toggle="tab">{{\'APPLICATION_TAGS\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- SUBJECT TAB -->\n <div class="tab-pane ui-padding active" id="tab_1_1">\n <div class="row">\n <div class="col-md-11">\n <span class="caption-subject">All following fields will be join by blank space:</span>\n </div>\n <div class="col-md-1 pull-rigth">\n <button class="btn btn-icon-only green" data-ng-click="addItem(\'subject\')"><i class="fa fa-plus"></i></button>\n </div>\n </div>\n <hr>\n <!-- <div id="subject-item-list" ng-scrollbars ng-scrollbars-config="config"> -->\n <div class="row" data-ng-repeat="subjectItem in subjectConfig">\n <div class="col-md-3">\n <ui-select ng-model="subjectItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeType(subjectItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices repeat="item.type as item in fieldType | filter: $select.search">\n <div ng-bind-html="item.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-8" data-ng-if="subjectItem.type==\'string\'">\n <div class="form-group">\n <input type="text" class="form-control" data-ng-model="subjectItem.content" data-ng-change="updateField(subjectItem)">\n </div>\n </div>\n <div class="col-md-8" data-ng-if="subjectItem.type==\'variable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="subjectItem.variableName" data-ng-change="updateField(subjectItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices group-by="groupVariableByGroup" repeat="variable.name as variable in variables | filter: $select.search">\n <div ng-bind-html="variable.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-8" data-ng-if="subjectItem.type==\'customVariable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="subjectItem.VariableId" data-ng-change="updateField(subjectItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="variable.id as variable in customVariables | filter: $select.search">\n <div ng-bind-html="variable.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-1">\n <div class="form-group">\n <button class="btn btn-icon-only red" data-ng-click="removeItem(subjectItem)"><i class="fa fa-times"></i></button>\n </div>\n </div>\n </div>\n <!-- </div> -->\n </div>\n <!-- END SUBJECT TAB -->\n <!-- DESCRIPTION TAB -->\n <div class="tab-pane ui-padding" id="tab_1_2">\n <div class="row">\n <div class="col-md-11">\n <span class="caption-subject">All following fields will be join by new line:</span>\n </div>\n <div class="col-md-1 pull-rigth">\n <button class="btn btn-icon-only green" data-ng-click="addItem(\'description\')"><i class="fa fa-plus"></i></button>\n </div>\n </div>\n <hr>\n <!-- <div id="description-item-list" ng-scrollbars ng-scrollbars-config="config"> -->\n <div class="row" data-ng-repeat="descriptionItem in descriptionConfig">\n <div class="col-md-2">\n <ui-select ng-model="descriptionItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeDescType(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices repeat="item.type as item in descFieldType | filter: $select.search">\n <div ng-bind-html="item.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-9" data-ng-if="descriptionItem.type==\'string\'">\n <div class="form-group">\n <input type="text" class="form-control" data-ng-model="descriptionItem.content" data-ng-change="updateField(descriptionItem)">\n </div>\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\'">\n <input type="text" class="form-control" placeholder="Key" data-ng-model="descriptionItem.key" data-ng-change="updateField(descriptionItem)">\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\'">\n <ui-select ng-model="descriptionItem.keyType" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeDescType(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices repeat="item.type as item in fieldType | filter: $select.search">\n <div ng-bind-html="item.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\' && descriptionItem.keyType==\'string\'">\n <input type="text" class="form-control" placeholder="Value" data-ng-model="descriptionItem.keyContent" data-ng-change="updateField(descriptionItem)">\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\' && descriptionItem.keyType==\'variable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="descriptionItem.variableName" data-ng-change="updateField(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices group-by="groupVariableByGroup" repeat="variable.name as variable in variables | filter: $select.search">\n <div ng-bind-html="variable.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\' && descriptionItem.keyType==\'customVariable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="descriptionItem.VariableId" data-ng-change="updateField(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="variable.id as variable in customVariables | filter: $select.search">\n <div ng-bind-html="variable.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-1">\n <div class="form-group">\n <button class="btn btn-icon-only red" data-ng-click="removeItem(descriptionItem)"><i class="fa fa-times"></i></button>\n </div>\n </div>\n </div>\n <!-- </div> -->\n </div>\n <!-- END DESCRIPTION TAB -->\n <!-- FIELDS TAB -->\n <div class="tab-pane ui-padding" id="tab_1_3">\n <div class="row">\n <div class="col-md-11">\n <span class="caption-subject">Add how to fill the fields present in your account:</span>\n </div>\n <div class="col-md-1 pull-rigth">\n <button class="btn btn-icon-only green" data-ng-click="addItem(\'field\')"><i class="fa fa-plus"></i></button>\n </div>\n </div>\n <hr>\n <!-- <div id="field-item-list" ng-scrollbars ng-scrollbars-config="config"> -->\n <div class="row" data-ng-repeat="fieldItem in fieldConfig">\n <div class="col-md-3">\n <ui-select ng-model="fieldItem.idField" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeFieldType(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.label}}</ui-select-match>\n <ui-select-choices repeat="item.name as item in accountFields | filter: $select.search">\n <div ng-bind-html="item.label | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-8" data-ng-if="getSystemFieldOptions(fieldItem.idField)">\n <div class="form-group">\n <ui-select ng-model="fieldItem.content" theme="bootstrap" ng-disabled="disabled" data-ng-change="updateField(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="item in getSystemFieldOptions(fieldItem.idField) | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField)">\n <div class="form-group">\n <ui-select ng-model="fieldItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeType(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices repeat="item.type as item in fieldType | filter: $select.search">\n <div ng-bind-html="item.title | highlight: $select.search | ucfirst"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'string\'">\n <div class="form-group">\n <input type="text" class="form-control" data-ng-model="fieldItem.content" data-ng-change="updateField(fieldItem)">\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'variable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="fieldItem.variableName" data-ng-change="updateField(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices group-by="groupVariableByGroup" repeat="variable.name as variable in variables | filter: $select.search">\n <div ng-bind-html="variable.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'customVariable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="fieldItem.VariableId" data-ng-change="updateField(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="variable.id as variable in customVariables | filter: $select.search">\n <div ng-bind-html="variable.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-1">\n <div class="form-group">\n <button class="btn btn-icon-only red" data-ng-click="removeItem(fieldItem)"><i class="fa fa-times"></i></button>\n </div>\n </div>\n </div>\n <!-- </div> -->\n </div>\n <!-- END FIELDS TAB -->\n <!-- TAG TAB -->\n <div class="tab-pane ui-padding" id="tab_1_4">\n <div class="row">\n <div class="col-md-12">\n <span class="caption-subject">Select tags that you want add in the ticket:</span>\n </div>\n </div>\n <hr>\n <form name="forms.tags" data-ng-submit="updateTags()" novalidate>\n <!-- TAG -->\n <div class="form-group">\n <ui-select multiple data-ng-model="selectedTags.tags" theme="bootstrap" name="tags" ng-disabled="disabled">\n <ui-select-match placeholder="{{ \'APPLICATION_TAGS\' | translate }}">{{$item.name}}</ui-select-match>\n <ui-select-choices repeat="tag.id as tag in tags | filter: $select.search">\n {{tag.name}}\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END TAG -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END TAG TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/freshdesk/view/view.account.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_ACCOUNT\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERALS\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.formSetting" data-ng-submit="forms.formSetting.$valid && updateItem()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.name" required/>\n <span data-ng-show="forms.formSetting.name.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="account.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="account.username" required/>\n <span data-ng-show="forms.formSetting.username.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START REMOTE ADDRESS -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.remoteUri.$invalid}">\n <label class="control-label">{{\'APPLICATION_REMOTE_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="remoteUri" placeholder="{{\'APPLICATION_REMOTE_ADDRESS\' | translate}}" class="form-control" data-ng-model="account.remoteUri" required />\n <span data-ng-show="forms.formSetting.remoteUri.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START API KEY -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.apiKey.$invalid}">\n <label class="control-label">{{\'APPLICATION_API_KEY\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="apiKey" placeholder="{{\'APPLICATION_API_KEY\' | translate}}" class="form-control" data-ng-model="account.apiKey" required/>\n <span data-ng-show="forms.formSetting.apiKey.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END API KEY -->\n\n <!-- START SERVER URL -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.serverUrl.$invalid}">\n <label class="control-label">{{\'APPLICATION_MOTION_ADDRESS\' | translate}}</label>\n <input type="url" name="serverUrl" placeholder="{{\'APPLICATION_MOTION_ADDRESS\' | translate}}" class="form-control" data-ng-model="account.serverUrl"/>\n <span class="help-block">\n {{\'DESCRIPTION_SERVER_URL\' | translate}}.\n </span>\n <span class="help-block help-block-info">\n {{\'MESSAGE_MOTION_ADDRESS_FORMAT\' | translate}}\n </span>\n </div>\n <!-- END SERVER URL -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/freshdesk/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-handbag"></i>\n <a href="/freshdesk/list">{{ \'APPLICATION_FRESHDESK\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <a href="#">{{account.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img src="assets/images/media/freshdesk.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{account.name}}\n </div>\n <div class="profile-usertitle-job">\n {{account.remoteUri}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.freshdesk.view.account\')}">\n <a ng-href="/freshdesk/view/{{account.id}}/account">\n <i class="icon-user"></i>\n {{ \'APPLICATION_ACCOUNT\' | translate }} </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.freshdesk.view.configurations\') || $state.is(\'main.freshdesk.view.configuration\')}">\n <a ng-href="/freshdesk/view/{{account.id}}/configurations/list">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_CONFIGURATIONS\' | translate }} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/freshdesk/wizard/wizard.html",'<!-- BEGIN PAGE HEADER-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-handbag"></i>\n <a href="/freshdesk/list">{{ \'APPLICATION_FRESHDESK\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n<!-- END PAGE HEADER-->\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initWizard()">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACCOUNT\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_ACCOUNT_INFO\' | translate}}" canexit="exitValidation(forms.formSetting.$valid)">\n <form name="forms.formSetting" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="forms.formSetting.name.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="item.username" required ng-remote-validate="/api/freshdesk/accounts/validate/username"/>\n <span data-ng-show="forms.formSetting.username.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.formSetting.username.$touched || forms.formSetting.$submitted) && forms.formSetting.username.$error.ngRemoteValidate" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_EXIST_USERNAME\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n\n <!-- START REMOTE ADDRESS -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.remoteUri.$invalid}">\n <label class="control-label">{{\'APPLICATION_REMOTE_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="remoteUri" placeholder="{{\'APPLICATION_REMOTE_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.remoteUri" required ng-remote-validate="/api/freshdesk/accounts/validate/remoteUri"/>\n <span data-ng-show="forms.formSetting.remoteUri.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.formSetting.remoteUri.$touched || forms.formSetting.$submitted) && forms.formSetting.remoteUri.$error.ngRemoteValidate" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_EXIST_DOMAIN\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START API KEY -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.apiKey.$invalid}">\n <label class="control-label">{{\'APPLICATION_API_KEY\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="apiKey" placeholder="{{\'APPLICATION_API_KEY\' | translate}}" class="form-control" data-ng-model="item.apiKey" required/>\n <span data-ng-show="forms.formSetting.apiKey.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END API KEY -->\n\n <!-- START SERVER URL -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.serverUrl.$invalid}">\n <label class="control-label">{{\'APPLICATION_MOTION_ADDRESS\' | translate}}</label>\n <input type="url" name="serverUrl" placeholder="{{\'APPLICATION_MOTION_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.serverUrl"/>\n <span class="help-block">\n {{\'DESCRIPTION_SERVER_URL\' | translate}}.\n </span>\n <span class="help-block help-block-info">\n {{\'MESSAGE_MOTION_ADDRESS_FORMAT\' | translate}}\n </span>\n </div>\n <!-- END SERVER URL -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" data-ng-click="next()"/>\n\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n\n </wizard>\n\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/iframe/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-chrome"></i>\n <a href="#" data-ng-if="!Auth.isAgent()">{{ \'APPLICATION_IFRAME\' | translate }}</a>\n <a href="#" data-ng-if="Auth.isAgent()">{{ iframe.title || iframe.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar" data-ng-if="!Auth.isAgent()">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img src="assets/images/media/iframe.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{iframe.title}}\n </div>\n <div class="profile-usertitle-job">\n {{ \'APPLICATION_IFRAME\' | translate }}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div class="profile-content" data-ng-if="!Auth.isAgent()">\n <div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_IFRAME\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERALS\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.formSetting" data-ng-submit="forms.formSetting.$valid && updateItem()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="iframe.title" required/>\n <span data-ng-show="forms.formSetting.name.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START REMOTE ADDRESS -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.remoteUri.$invalid}">\n <label class="control-label">{{\'APPLICATION_URL\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="remoteUri" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="iframe.remoteUri" required />\n <span data-ng-show="forms.formSetting.remoteUri.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}" />\n </form>\n </div>\n <!-- END GENERAL TAB -->\n\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <!-- END PROFILE CONTENT -->\n\n <div class="row" data-ng-if="Auth.isAgent()">\n <div class="col-md-12">\n <iframe ng-if="url" style="height: 600px" src="{{url}}" />\n </div>\n </div>\n\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'), -a.put("app/integration/list/list.html",'\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-game-controller"></i>\n <a href="/integrations/list">{{ \'APPLICATION_INTEGRATIONS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initList()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-eye font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_INTEGRATIONS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <span class="btn green-jungle btn-file">\n <span> <i class="icon-plus"></i> New App </span>\n <input type="file" accept=".zip" nv-file-select="" uploader="uploader"/>\n </span>\n <a class="btn btn-icon-only btn-default" href="#" ng-csv="displayedIntegrations" filename="integrations.csv">\n <i class="icon-cloud-download"></i></a>\n <a class="btn btn-icon-only btn-default fullscreen" href="#"></a>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <table st-table="displayedIntegrations" st-safe-src="integrations" class="table table-striped table-bordered table-hover">\n <div class="table-responsive">\n <thead>\n <tr>\n <th colspan="6">\n <div class="row">\n <div class="col-md-6">\n <select class="form-control input-small select2me" data-ng-model="integrationsByPage">\n <option value="10">10</option>\n <option value="25">25</option>\n <option value="50">50</option>\n <option value="{{integrations.length}}">{{ \'APPLICATION_ALL\' | translate }}</option>\n </select>\n </div>\n <div class="col-md-6">\n <div class="input-group input-medium pull-right">\n <input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n <span class="input-group-addon">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n </div>\n </th>\n </tr>\n <tr>\n <th st-sort="id" width="5%" st-sort-default="reverse">{{ \'APPLICATION_ID\' | translate }}</th>\n <th st-sort="fullname">{{ \'APPLICATION_NAME\' | translate }}</th>\n <th st-sort="name">{{ \'APPLICATION_FILENAME\' | translate }}</th>\n <th st-sort="name">{{ \'APPLICATION_VERSION\' | translate }}</th>\n <th st-sort="name">{{ \'APPLICATION_DESCRIPTION\' | translate }}</th>\n <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr data-ng-repeat="integration in displayedIntegrations">\n <td>{{integration.id}}</td>\n <td>{{integration.name}}</td>\n <td>{{integration.filename}}</td>\n <td>{{integration.version}}</td>\n <td>{{integration.description}}</td>\n <td>\n <span class="btn default btn-xs blue-stripe btn-file">\n <span> {{ \'APPLICATION_UPDATE\' | translate }} </span>\n <input type="file" accept=".zip" nv-file-select="" uploader="uploader"/>\n </span>\n <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(integration.name, integration.id)">\n {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </td>\n </tr>\n <tr data-ng-hide="integrations.length">\n <td colspan="6" style="text-align:center;">\n <i>No integrations available</i>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="id" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_NAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n <div class="input-icon right">\n <i class="fa fa-search"></i>\n <input st-search="filename" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_FILENAME\' | translate | lowercase}}" class="form-control" type="search"/>\n </div>\n </td>\n <td>\n </td>\n <td>\n </td>\n <td>\n </td>\n </tr>\n <tr>\n <td colspan="6" class="text-center">\n <div st-pagination class="pagination" st-items-by-page="integrationsByPage" st-displayed-pages="7"></div>\n </td>\n </tr>\n </tfoot>\n </div>\n </table>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/jscripty/project/list/list.create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_PROJECT\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/jscripty/project/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-slack"></i>\n <a href="/jscripty/projects/list">{{ \'APPLICATION_PROJECTS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_PROJECTS\' | translate }}</a> </span>\n </div>\n <div class="actions" ng-show="!Auth.isAgent()">\n <div class="btn-group">\n <a class="btn btn-default" href="#" data-ng-click="gridOptions.getPage();">\n <i class="icon-reload"></i>\n </a>\n </div>\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" ng-click="createItem()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_PROJECT\' | translate }}\n </a>\n </div>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n\n <!-- <div class="table-responsive"> -->\n\n\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/jscripty/project/report/report.detail.html",'<div class="portlet light bordered" data-ng-init="getProjectDetail();initView()">\n<div class="portlet-title">\n<div class="caption font-green-sharp">\n<i class="fa fa-list font-green-sharp"></i>\n<span class="caption-subject">{{ \'APPLICATION_SUMMARY\' | translate }}</a> </span>\n</div>\n<div class="actions">\n <div class="btn-group">\n <button class="btn btn-icon-only btn-primary" data-ng-click="pdf(\'header\',projectDetail)">\n <i class="fa fa-download"></i>\n </button>\n <!-- <button class="btn btn-icon-only btn-default" data-ng-click="accordion.expandAll()">\n <i class="fa fa-folder-open-o"></i>\n </button>\n <button class="btn btn-icon-only btn-default" data-ng-click="accordion.collapseAll()">\n <i class="fa fa-folder"></i>\n </button> -->\n </div>\n</div>\n</div>\n<div id=\'detail\' class="portlet-body">\n <div class="alert alert-success text-center" ng-show="!projectDetail.length">\n <h4>{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</h4>\n </div>\n <div class="row" ng-show="projectDetail.length">\n <div class="col-md-10 col-md-offset-1">\n <div id="header" class="panel panel-info">\n <div class="panel-heading">\n <strong>Project Name: </strong>{{project.name}}<br>\n <strong>Project Id: </strong>{{project.id}}<br>\n <strong>Completed: </strong>{{projectStats.completed}}<br>\n <strong>Incomplete: </strong>{{projectStats.incomplete}}<br>\n <strong>% Completed: </strong>{{projectStats.completed * 100 /(projectStats.completed + projectStats.incomplete) | number:2}}<br>\n </div>\n </div><br>\n <v-accordion class="vAccordion--default" multiple control="accordion">\n <v-pane id="{{question.question_id }}" ng-repeat="question in projectDetail" expanded="true">\n <v-pane-header>\n Question Id: {{question.question_id}}\n </v-pane-header>\n <v-pane-content>\n <div ng-class=" {{question.graphData.length > 0}} ? \'col-md-8\' : \'col-md-12\'">\n <div class="row">\n <div class="col-md-10 col-md-offset-1 ">\n <h4><strong>{{question.question_label}}</strong> : {{question.question_text}}</h4>\n <br><br>\n <table ng-if="question.choices.length" class="table table-hover" style="table-layout: fixed; width: 100%">\n <thead>\n <tr>\n <th>Response</th>\n <th> #Response </th>\n <th> % </th>\n </tr>\n </thead>\n <tbody>\n <tr ng-if="!choice.other_option" ng-repeat="choice in question.choices ">\n <td style="word-wrap: break-word">{{choice.value}}</td>\n <td>{{choice.count}}</td>\n <td>{{choice.percentage | number:2}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div class="row" ng-if="question.question_other_label">\n <!-- <div class="row" ng-if="choice.other_option" ng-repeat="choice in question.choices "> -->\n <!-- <div class="col-md-10 col-md-offset-1 ">\n <strong>{{choice.value}}</strong> <span class="badge">{{choice.count}}</span><br>\n </div> -->\n <!-- accordions can be nested :) -->\n <v-accordion >\n <v-pane >\n <!-- ng-repeat="subpane in pane.subpanes" ng-disabled="subpane.isDisabled" -->\n <v-pane-header>\n <strong>{{question.question_other_label}}</strong><br>\n </v-pane-header>\n <v-pane-content>\n <table ng-if="question.choices.length" class="table table-hover" style="table-layout: fixed; width: 100%">\n <thead>\n <tr>\n <th>Response</th>\n <th> #Response </th>\n <!-- <th> % </th> -->\n </tr>\n </thead>\n <tbody>\n\n <tr ng-if="choice.other_option" ng-repeat="choice in question.choices ">\n <td style="word-wrap: break-word">{{choice.value}}</td>\n <td>{{choice.count}}</td>\n <!-- <td>{{choice.percentage | number:2}}</td> -->\n </tr>\n </tbody>\n </table>\n </v-pane-content>\n </v-pane>\n </v-accordion>\n </div>\n <div class="row">\n <div class="col-md-10 col-md-offset-1 ">\n <h4> <strong>Total Respondents: {{question.total}}</strong></h4><br>\n </div>\n </div>\n </div>\n <div class=" col-md-4 pull-right " ng-if="question.graphType == \'bar\' && question.graphData">\n <canvas class="chart chart-bar" chart-data="question.graphData" chart-labels="question.graphLabels" chart-legend="true">\n </canvas>\n </div>\n <div class="col-md-4 pull-right " ng-if="question.graphType == \'pie\' && question.graphData">\n <canvas class="chart chart-pie" chart-data="question.graphData" chart-labels="question.graphLabels" chart-legend="true">\n </canvas>\n </div>\n </v-pane-content>\n </v-pane>\n </v-accordion>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/jscripty/project/report/report.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-edit"></i>\n <a href="/jscripty/projects/list">{{ \'APPLICATION_JSCRIPTY\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-slack"></i>\n <a href="/jscripty/projects/list">{{ \'APPLICATION_PROJECTS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-book-open"></i>\n <a href="">{{ \'APPLICATION_REPORTS\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img src="assets/images/media/report.png" class="img-responsive" >\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{project.name}}[{{project.id}}]\n </div>\n <div class="profile-usertitle-job">\n\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.jscripty.projects.report.sessions\')|| $state.is(\'main.jscripty.projects.report.sessionDetail\')}">\n <a data-ng-href=\'/jscripty/projects/report/{{projectId}}/sessions\'>\n <i class="icon-settings"></i>\n Sessions</a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.jscripty.projects.report.summary\') || $state.is( \'main.jscripty.projects.report.questionDetail\')}">\n <a data-ng-href=\'/jscripty/projects/report/{{projectId}}/summary\'>\n <i class="fa fa-bar-chart"></i>\n Questions</a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.jscripty.projects.report.detail\')}">\n <a data-ng-href=\'/jscripty/projects/report/{{projectId}}/detail\'>\n <i class="fa fa-list"></i>\n Summary</a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.jscripty.projects.report.inputs\')}">\n <a data-ng-href=\'/jscripty/projects/report/{{projectId}}/inputs\'>\n <i class="fa fa-edit"></i>\n Inputs</a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n\n </div>\n\n </div>\n\n <div class="profile-content margin-top-20">\n <div class="row">\n <div class="col-md-12">\n <div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">\n <div class="dashboard-stat2">\n <div class="display">\n <div class="number">\n <h3 class="font-green-sharp">{{projectStats.started}}</h3>\n <small>Started</small>\n </div>\n <div class="icon">\n <i class="icon-pie-chart"></i>\n </div>\n </div>\n <div class="progress-info">\n <div class="progress">\n <span style="width: 100%;" class="progress-bar progress-bar-success green-sharp">\n </span>\n </div>\n <div class="status">\n </div>\n </div>\n </div>\n </div>\n <div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">\n <div class="dashboard-stat2">\n <div class="display">\n <div class="number">\n <h3 class="font-red-haze">{{projectStats.incomplete}}</h3>\n <small>Incomplete</small>\n </div>\n <div class="icon">\n <i class="icon-chart"></i>\n </div>\n </div>\n <div class="progress-info">\n <div class="progress">\n <span style="width: 100%;" class="progress-bar progress-bar-success red-haze">\n </span>\n </div>\n <div class="status">\n </div>\n </div>\n </div>\n </div>\n <div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">\n <div class="dashboard-stat2">\n <div class="display">\n <div class="number">\n <h3 class="font-blue-sharp">{{projectStats.completed}}</h3>\n <small>Completed</small>\n </div>\n <div class="icon">\n <i class="icon-like"></i>\n </div>\n </div>\n <div class="progress-info">\n <div class="progress">\n <span style="width: 100%;" class="progress-bar progress-bar-success blue-sharp">\n </span>\n </div>\n <div class="status">\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n <div class="row">\n <div ui-view class="col-md-12">\n </div>\n </div>\n </div>\n </div>\n </div>\n'),a.put("app/jscripty/project/report/report.inputs.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light bordered" data-ng-init="getQuestionInputs()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="fa fa-edit font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_INPUTS\' | translate }}</a> </span>\n </div>\n <div class="tools">\n <!-- <a href="" class="fullscreen" data-original-title="" title="">\n </a> -->\n </div>\n </div>\n <div class="portlet-body" >\n <div ui-grid="gridOptions" ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/jscripty/project/report/report.question.detail.html",'<div class="row" data-ng-init="getDetail()">\n <div class="col-md-12">\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="fa fa-list font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_DETAIL\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body" >\n <div class="alert alert-success text-center" ng-show="!questionDetail">\n <h4>{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</h4>\n </div>\n <div class="row margin-top-20" ng-show="questionDetail">\n <div class="col-md-10 col-md-offset-1">\n <div class="panel panel-info" >\n <div class="panel-heading">\n <h3 class="panel-title">\n\n <i class="fa-chart "></i>Question Id: {{questionDetail.question_id}}\n </div>\n <div class="panel-body">\n <div class="row">\n <div class="col-md-12">\n <h4><strong>{{questionDetail.question_label}}</strong></h4>\n </div>\n </div>\n <div class="row">\n <div class="col-md-10 col-md-offset-1 ">\n <strong><h4>{{questionDetail.question_text}}</h4></strong><br>\n </div>\n </div>\n <div class="row">\n <div class="col-md-6">\n <div class="row">\n <div class="col-md-10 col-md-offset-1 ">\n <!-- <div class="alert alert-success text-center" ng-show="!questionDetail.choices.length">\n <h4>{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</h4>\n </div> -->\n <table ng-if="questionDetail.choices.length" class="table table-hover" style="table-layout: fixed; width: 100%">\n <thead>\n <tr>\n <th style="width=5%"> Value </th>\n <th style="width=5%"> Count </th>\n <th ng-if="question.graphType != \'PolarArea\'" style="width=5%"> % </th>\n </tr>\n </thead>\n <tbody>\n <tr ng-if="!choice.other_option" ng-repeat="choice in questionDetail.choices ">\n <td style="word-wrap: break-word">{{choice.value}}</td>\n <td>{{choice.count}}</td>\n <td ng-if="question.graphType != \'PolarArea\'">{{choice.percentage | number:2}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div class="row" ng-if="choice.other_option" ng-repeat="choice in questionDetail.choices ">\n <div class="col-md-6 col-md-offset-3 ">\n <strong><a href="">{{choice.value}}</a> </strong> <span class="badge">{{choice.count}}</span><br>\n\n </div>\n </div>\n <div class="row">\n <div class="col-md-10 col-md-offset-1 ">\n <h4> <strong>Total: {{questionDetail.total}}</strong></h4><br>\n </div>\n </div>\n </div>\n <div class="col-md-6 pull-right ">\n <canvas id="base" class="chart-base" chart-type="questionDetail.graphType"\n chart-data="questionDetail.graphData" chart-labels="questionDetail.graphLabels" chart-legend="true">\n </canvas>\n <!-- <button class="btn btn-success btn-sm pull-right" ng-click="toggle(questionDetail)">{{questionDetail.graphType}}</button> -->\n </div>\n </div>\n\n </div>\n\n </div>\n\n </div>\n </div>\n\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/jscripty/project/report/report.session.detail.html",'\n\n<div class="row" data-ng-init="getSessionDetails()">\n <div class="col-md-12">\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="fa fa-list font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_DETAIL\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group">\n <button class="btn btn-icon-only btn-primary" data-ng-click="pdf(\'header\',sessionQuestions)">\n <i class="fa fa-download"></i>\n </button>\n <!-- <button class="btn btn-icon-only btn-default" data-ng-click="accordion.expandAll()">\n <i class="fa fa-plus-square-o"></i>\n </button>\n <button class="btn btn-icon-only btn-default" data-ng-click="accordion.collapseAll()">\n <i class="icon-collapse-alt"></i>\n </button> -->\n </div>\n </div>\n </div>\n <div class="portlet-body" style="height: auto;">\n <div class="row margin-top-20">\n <div class="col-md-10 col-md-offset-1">\n <div id = "header" class="panel panel-info">\n <div class="panel-heading">\n <strong>Project Name: </strong>{{project.name}}<br>\n <strong>Project Id: </strong>{{project.id}}<br>\n <strong>Session Id: </strong>{{session.session_id}}<br>\n <strong>Status: </strong>{{session.status}}<br>\n <strong>Started At: </strong>{{session.createdAt}}<br>\n <strong>Closed At: </strong>{{session.completedAt}}<br>\n </div>\n </div>\n <v-accordion class="vAccordion--default" multiple control="accordion">\n <v-pane id="{{question.question_id }}" ng-repeat=" question in sessionQuestions | orderBy:\'index\'"" expanded="true">\n <v-pane-header>\n Question Id: {{question.question_id}}\n </v-pane-header>\n <v-pane-content>\n <h4><strong>{{question.question_label}}</strong> : {{question.question_text}}</h4>\n <div ng-if="question.question_type == \'question\'">\n <h4><strong>Answer: </strong>{{question.question_answer}}</h4>\n </div>\n <div ng-if="question.question_other_label">\n <h4>\n <strong>{{question.question_other_label}}: </strong>\n {{question.question_other_answer || \'No Value\'}}\n </h4>\n </div>\n <table class="table table-hover" ng-if="question.ReportJscriptyInputs.length">\n <thead>\n <tr>\n <th > Label </th>\n <th >Answer </th>\n </tr>\n </thead>\n <tbody>\n <tr ng-repeat="input in question.ReportJscriptyInputs |orderBy:\'id\'">\n <td>{{input.input_label}}</td>\n <td>{{input.input_value || \'No Value\'}}</td>\n </tr>\n </tbody>\n </table>\n </v-pane-content>\n </v-pane>\n </v-accordion>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/jscripty/project/report/report.sessions.html",'\n <div class="row" >\n <div class="col-md-12">\n <div class="portlet light bordered" data-ng-init="getProjectSessions()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-settings font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_SESSIONS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group">\n <a class="btn btn-default" href="#" data-ng-click="gridOptions.getPage();initView()">\n <i class="icon-reload"></i>\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body" >\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n </div>\n </div>\n </div>\n </div>\n'),a.put("app/jscripty/project/report/report.summary.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light bordered" data-ng-init="getQuestionSummary()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="fa fa-bar-chart font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_QUESTIONS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group">\n <!-- <a class="btn btn-default" href="#" data-ng-click="gridOptions.getPage();initView()">\n <i class="icon-reload"></i>\n </a> -->\n </div>\n </div>\n </div>\n <div class="portlet-body" >\n <div ui-grid="gridOptions" ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/jscripty/project/view/view.html",'<div class="row" data-ng-init="getProject()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-edit"></i>\n <a href="/jscripty/projects/list">{{ \'APPLICATION_JSCRIPTY\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-slack"></i>\n <a href="/jscripty/projects/list">{{ \'APPLICATION_PROJECTS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <a ng-href="/jscripty/projects/view/{{jscriptyProject.id}}">{{jscriptyProject.name}}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div id="geEditor" class="geEditor"></div>\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n<script>\n\n\n</script>\n'),a.put("app/landing/landing.html",'<!-- BEGIN LOGO -->\n<div class="logo">\n <a href="index.html">\n <img ng-src="api/settings/logo/login" alt="logo" class="custom-login-logo" onError="this.onerror=null"/>\n </a>\n</div>\n<!-- END LOGO -->\n\n<!-- BEGIN LANDING -->\n<div data-ng-init="initLanding()">\n <div data-ng-show="message" class="col-md-12 page-500" style="padding-bottom: 50px;">\n <div class="number">\n Oops!\n </div>\n <div class=" details" style="color: white;">\n <h3>{{message | translate}}.</h3>\n <p>\n Please contact your administrator.<br><br>\n </p>\n </div>\n </div>\n</div>\n<!-- END LANDING -->\n\n<div class="copyright">\n xCALLY Motion v. {{info.version}} | 2016 - {{year + 1}} © Powered by Xenialab <ng-bind-html data-ng-if="license.custom && !settings.defaultFooterWhiteLabel && settings.footerWhiteLabel" ng-bind-html="\'| \'+settings.footerWhiteLabel"></ng-bind-html>\n</div>\n'), -a.put("app/login/login.html",'<!-- BEGIN LOGO -->\n<div class="logo" data-ng-init="getInfo()">\n <a>\n <img ng-src="api/settings/logo/login" alt="logo" class="custom-login-logo" onError="this.onerror=null"/>\n </a>\n</div>\n<!-- END LOGO -->\n<!-- BEGIN LOGIN -->\n<div class="content">\n <!-- BEGIN LOGIN FORM -->\n <form class="login-form" name="loginForm" data-ng-if="!forgotPassword" data-ng-submit="login(loginForm)" novalidate>\n <h3 class="form-title">Sign In</h3>\n <div class="alert alert-success" data-ng-show="recovered">\n <button class="close" data-close="alert"></button>\n <span>{{\'MESSAGE_ACCOUNT_RECOVERED\' | translate}}</span>\n </div>\n <div class="alert alert-danger" data-ng-class="{\'display-hide\': !loginForm.$submitted || !errorLogin}">\n <button class="close" data-close="alert"></button>\n <span>{{ errorLog ? errorLog : (\'MESSAGE_INSERT_USER_OR_PASS\' | translate)}}</span>\n </div>\n <div class="form-group" data-ng-class="{\'has-error\': loginForm.$submitted && loginForm.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}</label>\n <div class="input-icon">\n <i class="fa fa-user"></i>\n <input ng-enter="login(loginForm)" class="form-control form-control-solid placeholder-no-fix" type="text" autocomplete="off" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" name="name" ng-model="userLogin.name" required/>\n </div>\n <span data-ng-show="loginForm.$submitted && loginForm.name.$invalid" class="help-block">{{\'MESSAGE_REQUIRED_FIELD\' | translate}}</span>\n </div>\n <div class="form-group" data-ng-class="{\'has-error\': loginForm.$submitted && loginForm.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}</label>\n <div class="input-icon">\n <i class="fa fa-lock"></i>\n <input ng-enter="login(loginForm)" class="form-control form-control-solid placeholder-no-fix" type="password" autocomplete="off" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" name="password" ng-model="userLogin.password" required/>\n </div>\n <span data-ng-show="loginForm.$submitted && loginForm.password.$invalid" class="help-block">{{\'MESSAGE_REQUIRED_FIELD\' | translate}}</span>\n <span class="help-block"><a href="#" data-ng-click="toggleForgotPassword(true)" class="forget-password">{{\'APPLICATION_FORGOT_PASSWORD\' | translate}}?</a></span>\n </div>\n <div class="form-actions">\n <button type="submit" class="btn btn-success uppercase">{{\'APPLICATION_LOGIN\' | translate}}</button>\n <label class="rememberme check">\n <input type="checkbox" data-ng-model="userLogin.remember"> {{\'APPLICATION_REMEMBER_ME\' | translate}}\n </label>\n <!-- <label class="rememberme check">\n <input type="checkbox" name="remember" value="1"/>Remember </label> -->\n <!-- <a href="javascript:;" id="forget-password" class="forget-password">Forgot Password?</a> -->\n </div>\n </form>\n <form name="forgetForm" data-ng-if="forgotPassword" data-ng-submit="forgetForm.$valid && recover()" novalidate>\n <h3>{{\'APPLICATION_FORGOT_PASSWORD\' | translate}}?</h3>\n <p>\n {{\'APPLICATION_INSERT_EMAIL_TO_RESET\' | translate}}\n </p>\n <div class="alert alert-success" data-ng-show="showRecoverMessage">\n <button class="close" data-close="alert"></button>\n <span>{{\'MESSAGE_CHECK_YOUR_EMAIL_RECOVER\' | translate}}</span>\n </div>\n <div class="form-group" data-ng-class="{\'has-error\': forgetForm.$submitted && forgetForm.email.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}</label>\n <div class="input-icon">\n <i class="fa fa-envelope"></i>\n <input class="form-control form-control-solid placeholder-no-fix" type="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" name="email" ng-model="userLogin.email" required/>\n </div>\n <span data-ng-show="forgetForm.$submitted && forgetForm.email.$invalid" class="help-block">{{\'MESSAGE_REQUIRED_FIELD\' | translate}}</span>\n </div>\n <div class="form-actions">\n <button type="button" id="back-btn" data-ng-click="toggleForgotPassword(false)" class="btn btn-default">{{\'APPLICATION_BACK\' | translate}}</button>\n <button type="submit" class="btn btn-success uppercase pull-right">{{\'APPLICATION_SUBMIT\' | translate}}</button>\n </div>\n </form>\n <div class="login-options">\n <h4>{{\'APPLICATION_FOLLOW_US\' | translate}}</h4>\n <ul class="social-icons">\n <li>\n <a class="social-icon-color facebook" data-original-title="facebook" href="https://www.facebook.com/xcallymotion" target="_blank"></a>\n </li>\n <li>\n <a class="social-icon-color twitter" data-original-title="Twitter" href="https://twitter.com/xcallymotion" target="_blank"></a>\n </li>\n <li>\n <a class="social-icon-color googleplus" data-original-title="Google Plus" href="https://plus.google.com/+Xcally" target="_blank"></a>\n </li>\n <li>\n <a class="social-icon-color linkedin" data-original-title="Linkedin" href="https://www.linkedin.com/company/xcally" target="_blank"></a>\n </li>\n </ul>\n </div>\n</div>\n<div class="copyright">\n xCALLY Motion v. {{info.version}} | 2016 - {{year + 1}} © Powered by Xenialab <ng-bind-html data-ng-if="license.custom && !settings.defaultFooterWhiteLabel && settings.footerWhiteLabel" ng-bind-html="\'| \'+settings.footerWhiteLabel"></ng-bind-html>\n</div>\n<!-- END LOGIN -->\n'),a.put("app/main/about.modal.html",'<div class="center-text">\n<div class="modal-header no-border">\n<button type="button" ng-click="$dismiss()" class="close">×</button>\n <!-- <h3 class="modal-title center-text">{{ \'APPLICATION_ABOUT\' | translate }}</h3> -->\n</div>\n<div class="modal-body" style="padding-top:0px;">\n <div class="mbottom20" data-ng-init="getInfo()">\n <a>\n <img ng-src="api/settings/logo/about" alt="logo" class="custom-login-logo about-logo" onError="this.onerror=null"/>\n </a>\n</div>\n<div class="mbottom20">\n <b class="sounds-title-icon">xCALLY Motion</b><br>\n <small>v. {{info.version}}</small><br><br>\n <small>2016 - {{year + 1}} © Powered by Xenialab</small><br>\n <small><a href="https://www.xcallymotion.com">www.xcallymotion.com</a></small><br>\n <ng-bind-html data-ng-if="license.custom && !settings.defaultFooterWhiteLabel && settings.footerWhiteLabel" ng-bind-html="settings.footerWhiteLabel"></ng-bind-html>\n</div>\n<div class="mbottom20">\n <span><b>{{\'APPLICATION_USEFUL_LINKS\' | translate}}</b></span><br>\n <small><a href="https://wiki.xcallymotion.com/display/XMD/Welcome" target="_blank">Wiki</a></small><br>\n <small><a href="http://www.xcally.com/bar/phonebar/Setup.msi" target="_blank">Phonebar Download</a></small><br>\n <small><a href="http://www.xcally.com/support/eula-xcally-license-en.pdf" target="_blank">EULA</a></small><br>\n</div>\n <div class="login-options" style=\'margin-bottom:0px;\'>\n <h4>{{\'APPLICATION_FOLLOW_US\' | translate}}</h4>\n <ul class="social-icons">\n <li>\n <a class="social-icon-color facebook" data-original-title="facebook" href="https://www.facebook.com/xcallymotion" target="_blank"></a>\n </li>\n <li>\n <a class="social-icon-color twitter" data-original-title="Twitter" href="https://twitter.com/xcallymotion" target="_blank"></a>\n </li>\n <li>\n <a class="social-icon-color googleplus" data-original-title="Google Plus" href="https://plus.google.com/+Xcally" target="_blank"></a>\n </li>\n <li>\n <a class="social-icon-color linkedin" data-original-title="Linkedin" href="https://www.linkedin.com/company/xcally" target="_blank"></a>\n </li>\n </ul>\n</div>\n<div class="login-options" style=\'margin-bottom:0px;\'>\n<h4>{{\'APPLICATION_CONTACT_US\' | translate}}:</h4>\n<div class="float-right" style="margin-top:10px;margin-bottom:10px;">\n <a href="mailto:support@xcally.com">support@xcally.com</a></small>\n</div>\n</div>\n</div>\n</div>\n<!-- <div class="modal-footer">\n <button class="btn default" type="button" ng-click="close()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div> -->\n'),a.put("app/main/audioFileDownload.play.modal.html",'<!-- <div class="modal-header">\n <button ng-if="modal.dismissable" type="button" ng-click="$dismiss()" class="close">×</button>\n <h4 ng-if="modal.title" ng-bind="modal.title | translate" class="modal-title"></h4>\n</div> -->\n<div class="modal-body" style="text-align:center;">\n <audio controls autoplay ng-src="{{audio}}" preload="none" controlsList="nodownload">\n Your browser does not support the audio tag.</audio>\n</div>\n<!-- <div class="modal-footer">\n <button class="btn default" type="button" ng-click="close()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div> -->\n'),a.put("app/main/chooseContact.modal.html",'<div class="modal-header" data-ng-init="getContacts()">\n <h3 class="modal-title">{{ \'APPLICATION_CHOOSE_CONTACT\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <table st-table="rowCollection" class="table table-striped">\n <tbody>\n <tr>\n <th>{{\'APPLICATION_NAME\' | translate}}</th>\n <th>{{\'APPLICATION_LIST\' | translate}}</th>\n <th></th>\n </tr>\n <tr ng-repeat="contact in contacts">\n <td>{{contact.firstName}} {{contact.lastName || \'\'}}</td>\n <td>{{contact.List.name}}</td>\n <td>\n <button class="btn default btn-xs green-stripe" data-ng-click="open(contact)">\n {{ \'APPLICATION_OPEN\' | translate}}\n </button>\n </td>\n </tr>\n <tr data-ng-hide="contacts.length">\n <td colspan="3" style="text-align:center;">\n <i>{{ \'MESSAGE_NO_CONTACTS_AVAILABLE\' | translate }}</i>\n </td>\n </tr>\n </tbody>\n </table>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="open()"><i class="icon-plus"></i> {{ \'APPLICATION_NEW_CONTACT\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/main/closeEditedTab.modal.html",'<div class="modal-header" data-ng-init="getContacts()">\n <h3 class="modal-title">{{ \'APPLICATION_WARNING\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <p>{{\'MESSAGE_CLOSE_EDITED_TAB\' | translate}}</p>\n</div>\n<div class="modal-footer">\n <button class="btn btn-danger" type="button" ng-click="close()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/main/closeEditedTab.modal.jscripty.html",' <div class="modal-header" data-ng-init="init()">\n <h3 class="modal-title">{{ \'APPLICATION_WARNING\' | translate }}</h3>\n <!-- <h3 ng-if="projectStatus == \'incomplete\'" class="modal-title">{{ \'APPLICATION_WARNING\' | translate }}</h3> -->\n\n</div>\n<div class="modal-body">\n<!-- <div ng-if="projectStatus == \'incomplete\'" class="modal-body"> -->\n <p>{{\'MESSAGE_CLOSE_INCOMPLETE\' | translate}}</p>\n</div>\n\n\n<div class="modal-footer">\n <button class="btn btn-danger" type="button" ng-click="close()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/main/cm.disposition.modal.html",'<div class="modal-header">\n <button ng-if="modal.dismissable" type="button" ng-click="$dismiss()" class="close">×</button>\n <h4 ng-if="modal.title" ng-bind="modal.title | translate" class="modal-title"></h4>\n</div>\n<div class="modal-body">\n <form name="form" novalidate data-ng-init="initDisposition()">\n <div class="form-group">\n <ui-select data-ng-model="item.agentDisposition" name="agentDisposition" theme="bootstrap" data-ng-disabled="!dispositions.length" required>\n <ui-select-match placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="disposition.name as disposition in dispositions | filter: $select.search">\n <div ng-bind-html="disposition.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="note note-warning" data-ng-hide="dispositions.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_DISPOSITIONS_AVAILABLE\' | translate }}\n </p>\n </div>\n</form>\n <!-- <div ng-if="modal.html" ng-bind-html="modal.html"></div> -->\n</div>\n<div class="modal-footer">\n <button class="btn btn-danger" type="button" ng-click="ok()" data-ng-disabled="!item.agentDisposition">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n <!-- <button ng-repeat="button in modal.buttons" ng-class="button.classes" ng-click="button.click($event)" ng-bind="button.text" class="btn"></button> -->\n</div>\n'),a.put("app/main/company.info.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_COMPANY_INFO\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{ \'APPLICATION_ADDRESS\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_3" data-toggle="tab">{{ \'APPLICATION_SHIPMENT_ADDRESS\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateCompany()" novalidate>\n <div class="row">\n <div class="col-md-6">\n <!-- START NAME -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}</label>\n <input readonly type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="company.name" required/>\n </div>\n <!-- END NAME -->\n\n <!-- START VAT -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_VAT\' | translate}}</label>\n <input readonly type="text" name="vat" placeholder="{{\'APPLICATION_VAT\' | translate}}" class="form-control" data-ng-model="company.vat"/>\n </div>\n <!-- END VAT -->\n\n <!-- START COMPANYID -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_COMPANY_ID\' | translate}}</label>\n <input readonly type="text" name="companyId" placeholder="{{\'APPLICATION_COMPANY_ID\' | translate}}" class="form-control" data-ng-model="company.companyId"/>\n </div>\n <!-- END COMPANYID -->\n\n <!-- START WEBSITE -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_WEBSITE\' | translate}}</label>\n <input readonly type="text" name="website" placeholder="{{\'APPLICATION_WEBSITE\' | translate}}" class="form-control" data-ng-model="company.website"/>\n </div>\n <!-- END WEBSITE -->\n\n <!-- START EMAIL -->\n <div class="form-group" >\n <label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}</label>\n <input readonly type="email" name="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" class="form-control" data-ng-model="company.email"/>\n </div>\n <!-- END EMAIL -->\n </div>\n <div class="col-md-6">\n <!-- START PHONE -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_PHONE\' | translate}}</label>\n <input readonly type="text" name="phone" placeholder="{{\'APPLICATION_PHONE\' | translate}}" class="form-control" data-ng-model="company.phone"/>\n </div>\n <!-- END PHONE -->\n\n <!-- START FAX -->\n <div class="form-group" >\n <label class="control-label">{{\'APPLICATION_FAX\' | translate}}</label>\n <input readonly type="text" name="fax" placeholder="{{\'APPLICATION_FAX\' | translate}}" class="form-control" data-ng-model="company.fax"/>\n </div>\n <!-- END FAX -->\n\n <!-- START TYPE -->\n <div class="form-group" >\n <label class="control-label">{{\'APPLICATION_TYPE\' | translate}}</label>\n <input readonly type="text" name="type" placeholder="{{\'APPLICATION_TYPE\' | translate}}" class="form-control" data-ng-model="company.type"/>\n </div>\n <!-- END TYPE -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea readonly type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="company.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n </div>\n </div>\n </form>\n </div>\n <!-- END ADVANCED TAB -->\n <div class="tab-pane" id="tab_1_2">\n <form name="forms.address" novalidate>\n <!-- START STREET -->\n <div class="form-group" >\n <label class="control-label">{{\'APPLICATION_STREET\' | translate}}</label>\n <input readonly type="text" name="street" placeholder="{{\'APPLICATION_STREET\' | translate}}" class="form-control" data-ng-model="company.street"/>\n </div>\n <!-- END STREET -->\n\n <!-- START POSTALCODE -->\n <div class="form-group" >\n <label class="control-label">{{\'APPLICATION_POSTALCODE\' | translate}}</label>\n <input readonly type="text" name="postalCode" placeholder="{{\'APPLICATION_POSTALCODE\' | translate}}" class="form-control" data-ng-model="company.postalCode"/>\n </div>\n <!-- END POSTALCODE -->\n\n <!-- START CITY -->\n <div class="form-group" >\n <label class="control-label">{{\'APPLICATION_CITY\' | translate}}</label>\n <input readonly type="text" name="city" placeholder="{{\'APPLICATION_CITY\' | translate}}" class="form-control" data-ng-model="company.city"/>\n </div>\n <!-- END CITY -->\n <!-- START COUNTRY -->\n <div class="form-group" >\n <label class="control-label">{{\'APPLICATION_COUNTRY\' | translate}}</label>\n <input readonly type="text" name="country" placeholder="{{\'APPLICATION_COUNTRY\' | translate}}" class="form-control" data-ng-model="company.country"/>\n </div>\n <!-- END COUNTRY -->\n </form>\n </div>\n <div class="tab-pane" id="tab_1_3">\n <form name="forms.shipmentAddress" novalidate>\n <!-- START STREET -->\n <div class="form-group" >\n <label class="control-label">{{\'APPLICATION_STREET\' | translate}}</label>\n <input readonly type="text" name="sStreet" placeholder="{{\'APPLICATION_STREET\' | translate}}" class="form-control" data-ng-model="company.sStreet"/>\n </div>\n <!-- END STREET -->\n\n <!-- START POSTALCODE -->\n <div class="form-group" >\n <label class="control-label">{{\'APPLICATION_POSTALCODE\' | translate}}</label>\n <input readonly type="text" name="sPostalCode" placeholder="{{\'APPLICATION_POSTALCODE\' | translate}}" class="form-control" data-ng-model="company.sPostalCode"/>\n </div>\n <!-- END POSTALCODE -->\n\n <!-- START CITY -->\n <div class="form-group" >\n <label class="control-label">{{\'APPLICATION_CITY\' | translate}}</label>\n <input readonly type="text" name="sCity" placeholder="{{\'APPLICATION_CITY\' | translate}}" class="form-control" data-ng-model="company.sCity"/>\n </div>\n <!-- END CITY -->\n <!-- START COUNTRY -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_COUNTRY\' | translate}}</label>\n <input readonly type="text" name="sCountry" placeholder="{{\'APPLICATION_COUNTRY\' | translate}}" class="form-control" data-ng-model="company.sCountry"/>\n </div>\n <!-- END COUNTRY -->\n </form>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n<div class="modal-footer">\n <button class="btn default" type="button" ng-click="close()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'),a.put("app/main/customDateFilter.modal.html",'<div class="modal-body">\n <uib-datepicker ng-model="dateTime.filterDate"\n class="well well-sm">\n </uib-datepicker>\n <uib-timepicker data-ng-if="hasTime" ng-model="dateTime.time" show-meridian="false"></uib-timepicker>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="setFilterDate(dateTime.filterDate)">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancelDateFilter()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/main/customDateFilterHeader.html",'<input class="ui-grid-filter-input date-time-filter-buttons pointer-cursor" style="width:90%;padding:inherit;" data-ng-click="openDatePicker(colFilter)" placeholder="{{ colFilter.name }}" readonly value="{{colFilter.term | date:\'dd-MM-yyyy\'}}">\n<span role="button" class="ui-grid-filter-button-select cancel-custom-date-range-filter-button ng-scope" data-ng-click="removeFilter(colFilter, $index)" data-ng-if="!colFilter.disableCancelFilterButton" data-ng-disabled="colFilter.term === undefined || colFilter.term === null || colFilter.term === \'\'" data-ng-show="colFilter.term !== undefined && colFilter.term != null" tabindex="0" aria-hidden="false" aria-disabled="false" style="right:22px;">\n <i class="ui-grid-icon-cancel cancel-custom-date-range-filter" ui-grid-one-bind-aria-label="aria.removeFilter" aria-label="Remove Filter"> </i>\n</span>\n'),a.put("app/main/customTagsFilter.modal.html",'<div class="modal-body" data-ng-init="initModal()">\n <!-- START TAGS -->\n<div class="form-group">\n <label class="control-label">{{\'APPLICATION_TAGS\' | translate}}</label>\n <ui-select multiple=\'true\' data-ng-model="item.myTags" theme="bootstrap">\n <ui-select-match placeholder="{{ \'APPLICATION_TAGS\' | translate }}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="tag in tags | filter: $select.search">\n {{tag}}\n </ui-select-choices>\n </ui-select>\n</div>\n<!-- END TAGS -->\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="setFilterTags()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancelTagsFilter()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/main/customTagsFilterHeader.html",'<input class="ui-grid-filter-input pointer-cursor" style="width:90%;padding:inherit;" data-ng-click="openTags(colFilter)" placeholder="{{ colFilter.name }}" readonly value="{{colFilter.term}}">\n<span role="button" class="ui-grid-filter-button-select cancel-custom-date-range-filter-button ng-scope" data-ng-click="removeFilter(colFilter, $index)" data-ng-if="!colFilter.disableCancelFilterButton" data-ng-disabled="colFilter.term === undefined || colFilter.term === null || colFilter.term === \'\'" data-ng-show="colFilter.term !== undefined && colFilter.term != null" tabindex="0" aria-hidden="false" aria-disabled="false" style="right:5px;">\n <i class="ui-grid-icon-cancel cancel-custom-date-range-filter" ui-grid-one-bind-aria-label="aria.removeFilter" aria-label="Remove Filter"> </i>\n</span>\n'),a.put("app/main/keepMeLogged.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_WARNING\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <p>{{\'MESSAGE_SOMEONE_LOGGED_YOU_OUT\' | translate}}</p>\n</div>\n<div class="modal-footer">\n <button class="btn btn-danger" type="button" ng-click="close()">{{ \'APPLICATION_YES\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_NO\' | translate }}</button>\n</div>\n'),a.put("app/main/main.html",'<!-- BEGIN HEADER -->\n<div data-ng-include="\'components/header/header.html\'" data-ng-controller="HeaderController" class="page-header navbar navbar-fixed-top">\n</div>\n<!-- END HEADER -->\n\n<div class="clearfix">\n</div>\n<!-- BEGIN CONTAINER -->\n<div class="page-container">\n\n <!-- BEGIN SIDEBAR -->\n <div data-ng-include="\'components/sidebar/sidebar.html\'" data-ng-controller="SidebarController" class="page-sidebar-wrapper">\n </div>\n <!-- END SIDEBAR -->\n\n <!-- BEGIN CONTENT -->\n <div class="page-content-wrapper">\n <div class="page-content" data-ng-class="{\'demo\': !license.expiration}">\n\n <!-- BEGIN PAGE CONTENT -->\n <uib-tabset>\n <uib-tab select="addWorkspace()" active="mainTab.active">\n <uib-tab-heading>\n Motion <i class="icon-rocket"></i>\n </uib-tab-heading>\n <div class="hide" data-ng-if="!Auth.isAgent() && activeTour.main" ng-joy-ride="activeTour.main" config="tourConfig.main" on-finish="onTourFinish()" on-skip="onTourSkip()"></div>\n <div ui-view class=""></div>\n </uib-tab>\n <uib-tab class="motion-{{workspace.type}}-uib-tab" data-ng-repeat="workspace in workspaces" active="workspace.active" data-ng-switch="workspace.type" select="select(workspace)" deselect="deselect(workspace)">\n <uib-tab-heading data-ng-mouseup="$event.which === 2 && closeTab($index)">\n <i data-ng-if="workspace.class" class="prova" data-ng-class="workspace.class"></i> {{workspace.name | truncate: 25: \'...\': true}} <span class="badge badge-danger" data-ng-if="workspace.unread">{{workspace.unread}}</span> <i class="icon-close pointer-cursor" data-ng-click="closeTab($index)"></i>\n </uib-tab-heading>\n <div class="" data-ng-switch="workspace.type">\n <new-contact data-ng-switch-when="newContact" workspace="workspace" index="$index" on-submit="createContact(index,item,data)"></new-contact>\n <contact data-ng-switch-when="contact" workspace="workspace" index="$index" on-submit="updateContact(index,item)"></contact>\n <jscripty data-ng-switch-when="jscripty" workspace="workspace" index="$index" on-submit="closeJscriptyTab(index)"></jscripty>\n <!-- <jscripty data-ng-switch-when="jscripty" workspace="workspace" index="$index" on-submit="closeTab(index,item)"></jscripty> -->\n <chat-room data-ng-switch-when="chatRoom" workspace="workspace" index="$index" on-submit="closeTab(index)"></chat-room>\n <fax-room data-ng-switch-when="faxRoom" workspace="workspace" index="$index" on-submit="closeTab(index)"></fax-room>\n <mail-room data-ng-switch-when="mailRoom" workspace="workspace" index="$index" on-submit="closeTab(index)"></mail-room>\n <sms-room data-ng-switch-when="smsRoom" workspace="workspace" index="$index" on-submit="closeTab(index)"></sms-room>\n <openchannel-room data-ng-switch-when="openchannelRoom" workspace="workspace" index="$index" on-submit="closeTab(index)"></openchannel-room>\n <tiger-dial-disposal data-ng-switch-when="tdDisposal" workspace="workspace" index="$index"></tiger-dial-disposal>\n <web-popup data-ng-switch-when="webPopup" workspace="workspace" index="$index"></web-popup>\n </div>\n </uib-tab>\n </uib-tabset>\n <!-- END PAGE CONTENT -->\n\n </div>\n </div>\n <!-- END CONTENT -->\n\n</div>\n<!-- END CONTAINER -->\n\n<!-- BEGIN FOOTER -->\n<div data-ng-include="\'components/footer/footer.html\'" data-ng-controller="FooterController" class="page-footer">\n</div>\n<!-- END FOOTER -->\n\n<!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) -->\n<!-- BEGIN CORE PLUGINS -->\n<!--[if lt IE 9]>\n<script src="../../assets/global/plugins/respond.min.js"></script>\n<script src="../../assets/global/plugins/excanvas.min.js"></script>\n<![endif]-->\n\n<!-- END JAVASCRIPTS -->\n'),a.put("app/main/mergeContact.choose.modal.html",'<div class="modal-header" data-ng-init="initView()">\n <h3 class="modal-title">{{ \'APPLICATION_CHOOSE_CONTACT_TO_MERGE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <!-- START TABLE -->\n<div data-ng-if="gridOptions" ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n</div>\n<!-- END TABLE -->\n</div>\n<div class="modal-footer">\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/main/mergeContact.merge.modal.html",'<div class="modal-header" data-ng-init="initView()">\n <h3 class="modal-title">{{ \'APPLICATION_MERGE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="forms.general" data-ng-submit="submit({index:index,item:contact})" novalidate>\n <!-- BEGIN PORTLET -->\n <div class="portlet light ">\n <div class="portlet-body row">\n <div class="col-md-4">\n <!-- START FIRSTNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.firstName.$touched || forms.general.$submitted) && forms.general.firstName.$invalid}">\n <label class="control-label">{{\'APPLICATION_FIRSTNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input data-ng-if="fields.firstName.length <= 1" type="text" name="firstName" placeholder="{{\'APPLICATION_FIRSTNAME\' | translate}}" class="form-control" data-ng-model="contact.firstName" required/>\n <ui-select data-ng-if="fields.firstName.length > 1" data-ng-model="contact.firstName" theme="bootstrap" name="firstName" required>\n <ui-select-match placeholder="{{ \'APPLICATION_FIRSTNAME\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="field in fields.firstName | filter: $select.search track by $index">\n <div ng-bind-html="field | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.general.firstName.$touched || forms.general.$submitted) && forms.general.firstName.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END FIRSTNAME -->\n\n <!-- START LASTNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.lastName.$touched || forms.general.$submitted) && forms.general.lastName.$invalid}">\n <label class="control-label">{{\'APPLICATION_LASTNAME\' | translate}}</label>\n <input data-ng-if="fields.lastName.length <= 1" type="text" name="lastName" placeholder="{{\'APPLICATION_LASTNAME\' | translate}}" class="form-control" data-ng-model="contact.lastName"/>\n <ui-select data-ng-if="fields.lastName.length > 1" data-ng-model="contact.lastName" theme="bootstrap" name="lastName">\n <ui-select-match placeholder="{{ \'APPLICATION_LASTNAME\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="field in fields.lastName | filter: $select.search track by $index">\n <div ng-bind-html="field | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.general.lastName.$touched || forms.general.$submitted) && forms.general.lastName.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END LASTNAME -->\n\n <!-- START COMPANY -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.CompanyId.$invalid && forms.general.$submitted}">\n <label class="control-label">{{\'APPLICATION_COMPANY\' | translate}}</label>\n <ui-select data-ng-model="contact.CompanyId" theme="bootstrap" name="CompanyId" ng-disabled="!companies.length">\n <ui-select-match placeholder="{{ \'APPLICATION_COMPANY\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="company.id as company in companies | filter: $select.search" null-option="scope.noCompany">\n <div ng-bind-html="company.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="companies.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_COMPANIES_AVAILABLE\' | translate }}\n </p>\n <p>\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/contactmanager/companies/list">{{\'APPLICATION_COMPANIES\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="forms.general.CompanyId.$invalid && forms.general.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END COMPANY -->\n </div>\n <div class="col-md-4">\n <!-- START PHONE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.phone.$touched || forms.general.$submitted) && forms.general.phone.$invalid}">\n <label class="control-label">{{\'APPLICATION_PHONE\' | translate}}</label>\n <input data-ng-if="fields.phone.length <= 1" type="text" name="phone" placeholder="{{\'APPLICATION_PHONE\' | translate}}" class="form-control" data-ng-model="contact.phone"/>\n <ui-select data-ng-if="fields.phone.length > 1" data-ng-model="contact.phone" theme="bootstrap" name="phone">\n <ui-select-match placeholder="{{ \'APPLICATION_PHONE\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="field in fields.phone | filter: $select.search track by $index">\n <div ng-bind-html="field | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.general.phone.$touched || forms.general.$submitted) && forms.general.phone.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PHONE -->\n <!-- START MOBILE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.mobile.$touched || forms.general.$submitted) && forms.general.mobile.$invalid}">\n <label class="control-label">{{\'APPLICATION_MOBILE\' | translate}}</label>\n <input data-ng-if="fields.mobile.length <= 1" type="text" name="mobile" placeholder="{{\'APPLICATION_MOBILE\' | translate}}" class="form-control" data-ng-model="contact.mobile"/>\n <ui-select data-ng-if="fields.mobile.length > 1" data-ng-model="contact.mobile" theme="bootstrap" name="mobile">\n <ui-select-match placeholder="{{ \'APPLICATION_MOBILE\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="field in fields.mobile | filter: $select.search track by $index">\n <div ng-bind-html="field | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.general.mobile.$touched || forms.general.$submitted) && forms.general.mobile.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MOBILE -->\n <!-- START EMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.email.$touched || forms.general.$submitted) && forms.general.email.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}</label>\n <input data-ng-if="fields.email.length <= 1" type="email" name="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" class="form-control" data-ng-model="contact.email"/>\n <ui-select data-ng-if="fields.email.length > 1" data-ng-model="contact.email" theme="bootstrap" name="email">\n <ui-select-match placeholder="{{ \'APPLICATION_EMAIL\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="field in fields.email | filter: $select.search track by $index">\n <div ng-bind-html="field | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.general.email.$touched || forms.general.$submitted) && forms.general.email.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END EMAIL -->\n </div>\n <div class="col-md-4">\n <!-- START FAX -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.fax.$touched || forms.general.$submitted) && forms.general.fax.$invalid}">\n <label class="control-label">{{\'APPLICATION_FAX\' | translate}}</label>\n <input data-ng-if="fields.fax.length <= 1" type="text" name="fax" placeholder="{{\'APPLICATION_FAX\' | translate}}" class="form-control" data-ng-model="contact.fax"/>\n <ui-select data-ng-if="fields.fax.length > 1" data-ng-model="contact.fax" theme="bootstrap" name="fax">\n <ui-select-match placeholder="{{ \'APPLICATION_FAX\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="field in fields.fax | filter: $select.search track by $index">\n <div ng-bind-html="field | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.general.fax.$touched || forms.general.$submitted) && forms.general.fax.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END FAX -->\n <!-- START TAGS -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.tags.$invalid && forms.general.$submitted}">\n <label class="control-label">{{\'APPLICATION_TAGS\' | translate}}</label>\n <ui-select multiple=\'true\' data-ng-model="contact.tags" theme="bootstrap" name="tags" ng-disabled="disabled">\n <ui-select-match placeholder="{{ \'APPLICATION_TAGS\' | translate }}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="tag in tags | filter: $select.search">\n <div ng-bind-html="tag | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.general.tags.$invalid && forms.general.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TAGS -->\n <!-- START LIST -->\n <div class="form-group" data-ng-if="contact.id">\n <label class="control-label">{{\'APPLICATION_LIST\' | translate}}</label>\n <input type="text" name="list" placeholder="{{\'APPLICATION_LIST\' | translate}}" class="form-control" data-ng data-ng-model="contact.List.name" disabled/>\n </div>\n <!-- END LIST -->\n </div>\n </div>\n </div>\n <div class="portlet light upborder">\n <div class="portlet-body row">\n <div class="col-md-4">\n <!-- START STREET -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.street.$touched || forms.general.$submitted) && forms.general.street.$invalid}">\n <label class="control-label">{{\'APPLICATION_STREET\' | translate}}</label>\n <input data-ng-if="fields.street.length <= 1" type="text" name="street" placeholder="{{\'APPLICATION_STREET\' | translate}}" class="form-control" data-ng-model="contact.street"/>\n <ui-select data-ng-if="fields.street.length > 1" data-ng-model="contact.street" theme="bootstrap" name="street">\n <ui-select-match placeholder="{{ \'APPLICATION_STREET\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="field in fields.street | filter: $select.search track by $index">\n <div ng-bind-html="field | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.general.street.$touched || forms.general.$submitted) && forms.general.street.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END STREET -->\n\n <!-- START POSTALCODE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.postalCode.$touched || forms.general.$submitted) && forms.general.postalCode.$invalid}">\n <label class="control-label">{{\'APPLICATION_POSTALCODE\' | translate}}</label>\n <input data-ng-if="fields.postalCode.length <= 1" type="text" name="postalCode" placeholder="{{\'APPLICATION_POSTALCODE\' | translate}}" class="form-control" data-ng-model="contact.postalCode"/>\n <ui-select data-ng-if="fields.postalCode.length > 1" data-ng-model="contact.postalCode" theme="bootstrap" name="postalCode">\n <ui-select-match placeholder="{{ \'APPLICATION_POSTALCODE\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="field in fields.postalCode | filter: $select.search track by $index">\n <div ng-bind-html="field | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.general.postalCode.$touched || forms.general.$submitted) && forms.general.postalCode.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END POSTALCODE -->\n\n <!-- START CITY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.city.$touched || forms.general.$submitted) && forms.general.city.$invalid}">\n <label class="control-label">{{\'APPLICATION_CITY\' | translate}}</label>\n <input data-ng-if="fields.city.length <= 1" type="text" name="city" placeholder="{{\'APPLICATION_CITY\' | translate}}" class="form-control" data-ng-model="contact.city"/>\n <ui-select data-ng-if="fields.city.length > 1" data-ng-model="contact.city" theme="bootstrap" name="city">\n <ui-select-match placeholder="{{ \'APPLICATION_CITY\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="field in fields.city | filter: $select.search track by $index">\n <div ng-bind-html="field | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.general.city.$touched || forms.general.$submitted) && forms.general.city.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CITY -->\n </div>\n <div class="col-md-4">\n <!-- START COUNTRY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.country.$touched || forms.general.$submitted) && forms.general.country.$invalid}">\n <label class="control-label">{{\'APPLICATION_COUNTRY\' | translate}}</label>\n <input data-ng-if="fields.country.length <= 1" type="text" name="country" placeholder="{{\'APPLICATION_COUNTRY\' | translate}}" class="form-control" data-ng-model="contact.country"/>\n <ui-select data-ng-if="fields.country.length > 1" data-ng-model="contact.country" theme="bootstrap" name="country">\n <ui-select-match placeholder="{{ \'APPLICATION_COUNTRY\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="field in fields.country | filter: $select.search track by $index">\n <div ng-bind-html="field | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.general.country.$touched || forms.general.$submitted) && forms.general.country.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END COUNTRY -->\n\n <!-- START DATEOFBIRTH -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.dateOfBirth.$touched || forms.general.$submitted) && forms.general.dateOfBirth.$invalid}">\n <label class="control-label">{{\'APPLICATION_DATEOFBIRTH\' | translate}}</label>\n <input data-ng-if="fields.dateOfBirth.length <= 1" type="date" name="dateOfBirth" placeholder="{{\'APPLICATION_DATEOFBIRTH\' | translate}}" class="form-control" data-ng-model="contact.dateOfBirth"/>\n <ui-select data-ng-if="fields.dateOfBirth.length > 1" data-ng-model="contact.dateOfBirth" theme="bootstrap" name="dateOfBirth">\n <ui-select-match placeholder="{{ \'APPLICATION_DATEOFBIRTH\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="field in fields.dateOfBirth | filter: $select.search track by $index">\n <div ng-bind-html="field | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.general.dateOfBirth.$touched || forms.general.$submitted) && forms.general.dateOfBirth.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END DATEOFBIRTH -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea style="resize: vertical;" data-ng-if="fields.description.length <= 1" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="contact.description"/></textarea>\n <ui-select data-ng-if="fields.description.length > 1" data-ng-model="contact.description" theme="bootstrap" name="description">\n <ui-select-match placeholder="{{ \'APPLICATION_DESCRIPTION\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="field in fields.description | filter: $select.search track by $index">\n <div ng-bind-html="field | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END DESCRIPTION -->\n </div>\n <div class="col-md-4">\n <!-- START URL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.url.$touched || forms.general.$submitted) && forms.general.url.$invalid}">\n <label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n <input data-ng-if="fields.url.length <= 1" type="text" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="contact.url"/>\n <ui-select data-ng-if="fields.url.length > 1" data-ng-model="contact.url" theme="bootstrap" name="url">\n <ui-select-match placeholder="{{ \'APPLICATION_URL\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="field in fields.url | filter: $select.search track by $index">\n <div ng-bind-html="field | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.general.url.$touched || forms.general.$submitted) && forms.general.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END URL -->\n </div>\n </div>\n </div>\n <div class="portlet light upborder" data-ng-if="customFields.length">\n <div class="portlet-body">\n <div class="row">\n <div class="col-md-4" data-ng-repeat="customField in customFields">\n <div data-ng-if="customField.type==\'text\'" class="form-group" data-ng-class="{\'has-error\': (forms.general[customField.name].$touched || forms.general.$submitted) && forms.general[customField.name].$invalid}">\n <label class="control-label">{{customField.alias}}</label>\n <input data-ng-if="fields[customField.name].length <= 1" type="text" name="{{customField.name}}" placeholder="{{customField.alias}}" class="form-control" data-ng-model="contact[customField.name]"/>\n <ui-select data-ng-if="fields[customField.name].length > 1" data-ng-model="contact[customField.name]" theme="bootstrap" name="{{customField.name}}">\n <ui-select-match placeholder="{{customField.name}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="field in fields[customField.name] | filter: $select.search track by $index">\n <div ng-bind-html="field | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.general[customField.name].$touched || forms.general.$submitted) && forms.general[customField.name].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div data-ng-if="customField.type==\'select\'" class="form-group" data-ng-class="{\'has-error\': forms.general[customField.name].$invalid && forms.general.$submitted}">\n <label class="control-label">{{customField.alias}}</label>\n <ui-select data-ng-model="contact[customField.name]" theme="bootstrap" name="{{customField.name}}" data-ng-disabled="disabled">\n <ui-select-match allow-clear placeholder="{{customField.alias}}">{{$select.selected.value}}</ui-select-match>\n <ui-select-choices repeat="choice.value as choice in customField.values | filter: $select.search">\n <div ng-bind-html="choice.value | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.general[customField.name].$invalid && forms.general.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n </div>\n </div>\n <!-- END PORTLET -->\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="merge()" ng-disabled="forms.general.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'), -a.put("app/main/template/actionBuilder/template.actionBuilderIntegration.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" data-ng-change="changeIntegration()" required>\n <ui-select-match placeholder="{{ \'APPLICATION_INTEGRATION\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="integration.state as integration in integrations | filter: $select.search">\n <div ng-bind-html="integration.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{\'APPLICATION_INTEGRATION\' | translate}}\n </span>\n <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n<div class="form-group col-md-6" data-ng-if="element.data1 && accounts && randomName" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data2" name="data2{{randomName}}" theme="bootstrap" data-ng-change="changeAccount();" required>\n <ui-select-match placeholder="{{\'APPLICATION_ACCOUNT\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in accounts | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{\'APPLICATION_ACCOUNT\' | translate}}\n </span>\n <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n<div class="form-group col-md-6" data-ng-if="element.data2 && configurations && randomName" data-ng-class="{\'has-error\': (form[\'data3\'+randomName].$touched || form.$submitted) && form[\'data3\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data3" name="data3{{randomName}}" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_CONFIGURATION\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="config.id as config in configurations | filter: $select.search">\n <div ng-bind-html="config.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{\'APPLICATION_CONFIGURATION\' | translate}}\n </span>\n <span data-ng-show="(form[\'data3\'+randomName].$touched || form.$submitted) && form[\'data3\'+randomName].$error.required" class="help-block help-block-error">\n'+" <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n </span>\n</div>\n"),a.put("app/main/template/actionBuilder/template.actionBuilderJscripty.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" required>\n <ui-select-match>{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="project.id as project in projects | filter: $select.search">\n <div ng-bind-html="project.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n'+" <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n </span>\n</div>\n"),a.put("app/main/template/actionBuilder/template.actionBuilderMotionBar.html",'<!-- data1: 0 POPUP, 1 URL, 2 WINAPP -->\n<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" required data-ng-change="changeMode();">\n <ui-select-match placeholder="{{ \'APPLICATION_TYPE\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="motionAction.value as motionAction in motionActions | filter: $select.search">\n <div ng-bind-html="motionAction.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'APPLICATION_TYPE\' | translate }}\n </span>\n <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n\n<!-- data1:0 data2:Template -->\n<div data-ng-if="randomName && element.data1==0" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data2" name="data2{{randomName}}" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_TEMPLATE\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n <div ng-bind-html="template.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'APPLICATION_TEMPLATE\' | translate }}\n </span>\n <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n\n<!-- data1:1 data2:URL -->\n<div data-ng-if="randomName && element.data1==1" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n <input type="text" ng-model="element.data2" name="data2{{randomName}}" class="form-control" required placeholder="{{ \'APPLICATION_URL\' | translate }}"/>\n <span class="help-block">\n {{ \'APPLICATION_URL\' | translate }}\n </span>\n <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n\n<!-- data1:2 data2:Application data3:Arguments -->\n<div data-ng-if="randomName && element.data1==2" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n <input type="text" ng-model="element.data2" name="data2{{randomName}}" class="form-control" required placeholder="{{ \'APPLICATION_APPLICATION\' | translate }}"/>\n <span class="help-block">\n {{ \'APPLICATION_APPLICATION\' | translate }}\n </span>\n <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n<div data-ng-if="randomName && element.data1==2" class="form-group col-md-6">\n <input type="text" ng-model="element.data3" name="data3{{randomName}}" class="form-control" placeholder="{{ \'APPLICATION_ARGUMENTS\' | translate }}"/>\n <span class="help-block">\n {{ \'APPLICATION_ARGUMENTS\' | translate }}\n </span>\n</div>\n'),a.put("app/main/template/actionBuilder/template.actionBuilderStatus.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" required>\n <ui-select-match>{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="status.value as status in states | filter: $select.search">\n <div ng-bind-html="status.name | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n'+" <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n </span>\n</div>\n"),a.put("app/main/template/actionBuilder/template.actionBuilderTemplate.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" required>\n <ui-select-match>{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n <div ng-bind-html="template.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n <input type="text" ng-model="element.data2" name="data2{{randomName}}" class="form-control" required/>\n <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n<div class="col-md-6">\n <input type="text" ng-model="element.data3" class="form-control"/>\n</div>\n'),a.put("app/main/template/actionBuilder/template.actionBuilderUrlForward.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_TYPE\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="type.value as type in types | filter: $select.search">\n <div ng-bind-html="type.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{\'APPLICATION_TYPE\' | translate}}\n </span>\n <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n<div class="form-group col-md-12" data-ng-if="element.data1 && randomName" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n <input type="url" ng-model="element.data2" placeholder="{{ \'APPLICATION_URL\' | translate }}" name="data2{{randomName}}" class="form-control" required/>\n <span class="help-block">\n {{\'APPLICATION_URL\' | translate}}\n </span>\n <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n'+" <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n </span>\n</div>\n"),a.put("app/main/template/template.conditionBuilder.html",'<div data-ng-if="randomName" class="form-group col-md-4" data-ng-class="{\'has-error\': (form[\'field\'+randomName].$touched || form.$submitted) && form[\'field\'+randomName].$invalid}">\n <ui-select data-ng-model="element.field" name="field{{randomName}}" theme="bootstrap" data-ng-change="checkCondition(element.field)" required>\n <ui-select-match>{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="condition.value as condition in service.services[serviceindex].conditions | filter: $select.search">\n <div ng-bind-html="condition.name | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form[\'field\'+randomName].$touched || form.$submitted) && form[\'field\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n<div data-ng-if="randomName && element.field" class="form-group col-md-4" data-ng-class="{\'has-error\': (form[\'operator\'+randomName].$touched || form.$submitted) && form[\'operator\'+randomName].$invalid}">\n <ui-select data-ng-model="element.operator" name="operator{{randomName}}" theme="bootstrap" required>\n <ui-select-match>{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="operator.value as operator in _.find(service.services[serviceindex].conditions,{value:element.field}).operators | filter: $select.search">\n <div ng-bind-html="operator.name | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form[\'operator\'+randomName].$touched || form.$submitted) && form[\'operator\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n<div class="col-md-4" data-ng-if="elementType === \'input\' && randomName && element.field" data-ng-class="{\'has-error\': (form[\'value\'+randomName].$touched || form.$submitted) && form[\'value\'+randomName].$invalid}">\n <input type="text" ng-model="element.value" class="form-control" name="value{{randomName}}" required/>\n <span data-ng-show="(form[\'value\'+randomName].$touched || form.$submitted) && form[\'value\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n<div class="form-group col-md-4" data-ng-if="elementType === \'select\' && randomName && element.field" data-ng-class="{\'has-error\': (form[\'value\'+randomName].$touched || form.$submitted) && form[\'value\'+randomName].$invalid}">\n <ui-select data-ng-model="element.value" name="value{{randomName}}" theme="bootstrap" required>\n <ui-select-match>{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="value.value as value in values| filter: $select.search">\n <div ng-bind-html="value.name | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form[\'value\'+randomName].$touched || form.$submitted) && form[\'value\'+randomName].$error.required" class="help-block help-block-error">\n'+" <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n </span>\n</div>\n"),a.put("app/main/template/template.contactTab.html",'<div class="row margin-top-20 contact-tab-container">\n <div class="col-md-12 contact-tab">\n <form name="forms.general" data-ng-submit="submit({index:index,item:contact,data:workspace.data})" novalidate>\n <!-- BEGIN PROFILE CONTENT -->\n <div class="profile-content">\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#tab_1_1{{contact.id || \'\'}}" data-toggle="tab">{{\'APPLICATION_DETAIL\' | translate}}</a>\n </li>\n <li data-ng-if="contact.id">\n <a href="#tab_1_2{{contact.id || \'\'}}" data-toggle="tab">{{\'APPLICATION_CUSTOMER_JOURNEY\' | translate}}</a>\n </li>\n</ul>\n<div class="tab-content">\n <div class="tab-pane fade active in" id="tab_1_1{{contact.id || \'\'}}">\n <!--end add-portfolio-->\n <div class="row portfolio-block" data-ng-if="workspace.data && workspace.data.uniqueid && workspace.data.agentcalledAt">\n <div class="col-md-3">\n <div class="portfolio-text">\n <img src="assets/images/media/CmCall.png" alt=""/>\n <div class="portfolio-text-info">\n <h4>{{\'MESSAGE_INBOUND_CALL_FROM\' | translate}} - {{workspace.data.calleridnum}}</h4>\n <p>\n {{\'MESSAGE_CALL_UNIQUEID\' | translate}} : {{workspace.data.uniqueid}}\n </p>\n </div>\n </div>\n </div>\n <div class="col-md-2 portfolio-stat">\n <div>{{\'APPLICATION_QUEUE\' | translate}} </div>\n <p> {{workspace.data.queue}} </p>\n </div>\n <div class="col-md-3 portfolio-stat">\n <div>{{\'APPLICATION_AGENT\' | translate}} </div>\n <p> {{workspace.data.membername}} </p>\n </div>\n <div class="col-md-2 portfolio-stat">\n <div>{{\'APPLICATION_DATE\' | translate}} </div>\n <p> {{workspace.data.agentcalledAt | date:\'dd/MM/yyyy HH:mm:ss\'}} </p>\n </div>\n <div class="col-md-2 portfolio-stat">\n <button class="btn" data-ng-class="{\'grey-cascade\':contact.disposed || !enableDisposal,\'green-haze\':enableDisposal && !contact.disposed}" type="button" data-ng-click="dispose()" data-ng-disabled="contact.disposed || !enableDisposal">\n <i class="icon-target"></i> {{\'APPLICATION_DISPOSITION\' | translate}}\n </button>\n </div>\n </div>\n <!--end row-->\n <!-- BEGIN PORTLET -->\n <div class="portlet light ">\n <div class="portlet-title">\n <div class="caption caption-md">\n <i class="icon-bar-chart theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_DETAIL\' | translate}}</span>\n </div>\n <div class="actions">\n <div class="btn-group btn-group-devided" data-toggle="buttons">\n <button type="submit" data-ng-if="contact.id" title="{{\'APPLICATION_COPY\' | translate}}" class="btn btn-circle green btn-sm" data-ng-click="copy(contact.id)"><i class="fa fa-files-o"></i></button>\n <button type="submit" data-ng-if="contact.ListId" class="btn btn-circle purple btn-sm" title="{{\'APPLICATION_MERGE\' | translate}}" data-ng-click="merge(contact)"><i class="icon-link"></i></button>\n <label class="btn btn-transparent grey-salsa btn-circle btn-sm active" data-ng-click="detail.tab=\'main\'">\n <input type="radio" class="toggle">{{\'APPLICATION_MAIN\' | translate}}</label>\n <label class="btn btn-transparent grey-salsa btn-circle btn-sm" data-ng-click="detail.tab=\'other\'">\n <input type="radio" class="toggle">{{\'APPLICATION_OTHER\' | translate}}</label>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <div data-ng-class="{\'hidden\':detail.tab != \'main\'}" class="portlet-body contact-portlet row">\n <div class="col-md-4">\n <!-- START FIRSTNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.firstName.$touched || forms.general.$submitted) && forms.general.firstName.$invalid}">\n <label class="control-label">{{\'APPLICATION_FIRSTNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="firstName" placeholder="{{\'APPLICATION_FIRSTNAME\' | translate}}" class="form-control" data-ng-model="contact.firstName" required/>\n <span data-ng-show="(forms.general.firstName.$touched || forms.general.$submitted) && forms.general.firstName.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END FIRSTNAME -->\n\n <!-- START LASTNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.lastName.$touched || forms.general.$submitted) && forms.general.lastName.$invalid}">\n <label class="control-label">{{\'APPLICATION_LASTNAME\' | translate}}</label>\n <input type="text" name="lastName" placeholder="{{\'APPLICATION_LASTNAME\' | translate}}" class="form-control" data-ng-model="contact.lastName"/>\n <span data-ng-show="(forms.general.lastName.$touched || forms.general.$submitted) && forms.general.lastName.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END LASTNAME -->\n\n <!-- START COMPANY -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.CompanyId.$invalid && forms.general.$submitted}">\n <label class="control-label">{{\'APPLICATION_COMPANY\' | translate}}</label>\n <div class="input-group">\n <ui-select data-ng-model="contact.CompanyId" theme="bootstrap" name="CompanyId" ng-disabled="!companies.length" required>\n <ui-select-match placeholder="{{ \'APPLICATION_COMPANY\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="company.id as company in companies | filter: $select.search" null-option="scope.noCompany">\n <div ng-bind-html="company.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="input-group-btn">\n <button type="button" data-ng-click="companyInfo(contact.CompanyId)" class="btn btn-default" data-ng-disabled="!contact.CompanyId">\n <span class="icon-info" data-ng-class="{\'font-blue\':contact.CompanyId}"></span>\n </button>\n </span>\n </div>\n <div class="note note-warning" data-ng-hide="companies.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_COMPANIES_AVAILABLE\' | translate }}\n </p>\n <p data-ng-if="!Auth.isAgent()">\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/contactmanager/companies/list">{{\'APPLICATION_COMPANIES\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="forms.general.CompanyId.$invalid && forms.general.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END COMPANY -->\n </div>\n <div class="col-md-4">\n <!-- START PHONE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.phone.$touched || forms.general.$submitted) && forms.general.phone.$invalid}">\n <label class="control-label">{{\'APPLICATION_PHONE\' | translate}}</label>\n <div class="input-group">\n <input type="text" name="phone" placeholder="{{\'APPLICATION_PHONE\' | translate}}" class="form-control" data-ng-model="contact.phone"/>\n <span class="input-group-btn" uib-dropdown>\n <button data-ng-if="Auth.isAgent()" type="button" uib-dropdown-toggle class="btn btn-default" data-ng-disabled="!contact.phone || !agent.phoneBarRemoteControl" >\n <span class="icon-earphones-alt" data-ng-class="{\'font-blue\':contact.phone && agent.phoneBarRemoteControl}" uib-tooltip="{{!agent.phoneBarRemoteControl ? (\'APPLICATION_ENABLE_REMOTE_PHONEBAR\' | translate) : (\'APPLICATION_MOTION_BAR_CONTROLS\' | translate)}}" ></span>\n </button>\n <ul class="dropdown-menu" uib-dropdown-menu role="menu" aria-labelledby="single-button">\n <li role="menuitem"><a href="#" data-ng-click="callPhoneBar(contact.phone,\'call\')"><i class="icon-phone"></i> {{\'APPLICATION_CALL\' | translate}}</a></li>\n <li role="menuitem"><a href="#" data-ng-click="callPhoneBar(contact.phone,\'transfer\')"><i class="glyphicon glyphicon-random"></i> {{\'APPLICATION_TRANSFER\' | translate}}</a></li>\n </ul>\n <button type="button" data-ng-click="openRoom(null,\'smsRoom\',{to:contact.phone})" class="btn btn-default" data-ng-disabled="!contact.phone || !license.messaging">\n <span class="glyphicon glyphicon-comment" data-ng-class="{\'font-blue\':contact.phone && license.messaging}"></span>\n </button>\n </span>\n </div>\n <span data-ng-show="(forms.general.phone.$touched || forms.general.$submitted) && forms.general.phone.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PHONE -->\n <!-- START MOBILE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.mobile.$touched || forms.general.$submitted) && forms.general.mobile.$invalid}">\n <label class="control-label">{{\'APPLICATION_MOBILE\' | translate}}</label>\n <div class="input-group">\n <input type="text" name="mobile" placeholder="{{\'APPLICATION_MOBILE\' | translate}}" class="form-control" data-ng-model="contact.mobile"/>\n <span class="input-group-btn" uib-dropdown>\n <button data-ng-if="Auth.isAgent()" type="button" uib-dropdown-toggle class="btn btn-default" data-ng-disabled="!contact.mobile || !agent.phoneBarRemoteControl" >\n <span class="icon-earphones-alt" data-ng-class="{\'font-blue\':contact.mobile && agent.phoneBarRemoteControl}" uib-tooltip="{{!agent.phoneBarRemoteControl ? (\'APPLICATION_ENABLE_REMOTE_PHONEBAR\' | translate) : (\'APPLICATION_MOTION_BAR_CONTROLS\' | translate)}}" ></span>\n </button>\n <ul class="dropdown-menu" uib-dropdown-menu role="menu" aria-labelledby="single-button">\n <li role="menuitem"><a href="#" data-ng-click="callPhoneBar(contact.mobile,\'call\')"><i class="icon-phone"></i> {{\'APPLICATION_CALL\' | translate}}</a></li>\n <li role="menuitem"><a href="#" data-ng-click="callPhoneBar(contact.mobile,\'transfer\')"><i class="glyphicon glyphicon-random"></i> {{\'APPLICATION_TRANSFER\' | translate}}</a></li>\n </ul>\n <button type="button" data-ng-click="openRoom(null,\'smsRoom\',{to:contact.mobile})" class="btn btn-default" data-ng-disabled="!contact.mobile || !license.messaging">\n <span class="glyphicon glyphicon-comment" data-ng-class="{\'font-blue\':contact.mobile && license.messaging}"></span>\n </button>\n </span>\n </div>\n <span data-ng-show="(forms.general.mobile.$touched || forms.general.$submitted) && forms.general.mobile.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MOBILE -->\n <!-- START EMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.email.$touched || forms.general.$submitted) && forms.general.email.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}</label>\n <div class="input-group">\n <input type="text" name="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" class="form-control" data-ng-model="contact.email"/>\n <span class="input-group-btn">\n <button type="button" data-ng-click="openRoom(null,\'mailRoom\',{to:contact.email})" class="btn btn-default" data-ng-disabled="!contact.email || !license.mail">\n <span class="icon-envelope" data-ng-class="{\'font-blue\':contact.email && license.mail}"></span>\n </button>\n </span>\n </div>\n <span data-ng-show="(forms.general.email.$touched || forms.general.$submitted) && forms.general.email.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END EMAIL -->\n </div>\n <div class="col-md-4">\n <!-- START FAX -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.fax.$touched || forms.general.$submitted) && forms.general.fax.$invalid}">\n <label class="control-label">{{\'APPLICATION_FAX\' | translate}}</label>\n <div class="input-group">\n <input type="text" name="fax" placeholder="{{\'APPLICATION_FAX\' | translate}}" class="form-control" data-ng-model="contact.fax"/>\n <span class="input-group-btn">\n <button type="button" data-ng-click="openRoom(null,\'faxRoom\',{to:contact.fax})" class="btn btn-default" data-ng-disabled="!contact.fax || !license.fax">\n <span class="fa fa-fax" data-ng-class="{\'font-blue\':contact.fax && license.fax}"></span>\n </button>\n </span>\n </div>\n <span data-ng-show="(forms.general.fax.$touched || forms.general.$submitted) && forms.general.fax.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END FAX -->\n <!-- START TAGS -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.tags.$invalid && forms.general.$submitted}">\n <label class="control-label">{{\'APPLICATION_TAGS\' | translate}}</label>\n <ui-select multiple=\'true\' data-ng-model="contact.tags" theme="bootstrap" name="tags" ng-disabled="disabled">\n <ui-select-match placeholder="{{ \'APPLICATION_TAGS\' | translate }}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="tag in tags | filter: $select.search">\n {{tag}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.general.tags.$invalid && forms.general.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TAGS -->\n <!-- START LIST -->\n <div class="form-group" data-ng-if="contact.id">\n <label class="control-label">{{\'APPLICATION_LIST\' | translate}}</label>\n <input type="text" name="list" placeholder="{{\'APPLICATION_LIST\' | translate}}" class="form-control" data-ng-model="contact.List.name" disabled/>\n </div>\n <!-- END LIST -->\n <!-- START LIST -->\n <div data-ng-if="!contact.id" class="form-group" data-ng-class="{\'has-error\': forms.general.ListId.$invalid && forms.general.$submitted}">\n <label class="control-label">{{\'APPLICATION_LIST\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="contact.ListId" theme="bootstrap" name="ListId" data-ng-change="getCustomFields()" required>\n <ui-select-match placeholder="{{ \'APPLICATION_LIST\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="list.id as list in lists | filter: $select.search">\n <div ng-bind-html="list.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <div class="note note-warning" data-ng-hide="lists.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_LISTS_AVAILABLE\' | translate }}\n </p>\n <p data-ng-if="!Auth.isAgent()">\n {{\'APPLICATION_GO_TO\' | translate}} <a href="/contactmanager/lists/list">{{\'APPLICATION_LISTS\' | translate}}</a>\n </p>\n </div>\n <span data-ng-show="forms.general.ListId.$invalid && forms.general.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END LIST -->\n </div>\n </div>\n <div data-ng-class="{\'hidden\':detail.tab != \'other\'}" class="portlet-body contact-portlet row">\n <div class="col-md-4">\n <!-- START STREET -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.street.$touched || forms.general.$submitted) && forms.general.street.$invalid}">\n <label class="control-label">{{\'APPLICATION_STREET\' | translate}}</label>\n <input type="text" name="street" placeholder="{{\'APPLICATION_STREET\' | translate}}" class="form-control" data-ng-model="contact.street"/>\n <span data-ng-show="(forms.general.street.$touched || forms.general.$submitted) && forms.general.street.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END STREET -->\n\n <!-- START POSTALCODE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.postalCode.$touched || forms.general.$submitted) && forms.general.postalCode.$invalid}">\n <label class="control-label">{{\'APPLICATION_POSTALCODE\' | translate}}</label>\n <input type="text" name="postalCode" placeholder="{{\'APPLICATION_POSTALCODE\' | translate}}" class="form-control" data-ng-model="contact.postalCode"/>\n <span data-ng-show="(forms.general.postalCode.$touched || forms.general.$submitted) && forms.general.postalCode.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END POSTALCODE -->\n\n <!-- START CITY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.city.$touched || forms.general.$submitted) && forms.general.city.$invalid}">\n <label class="control-label">{{\'APPLICATION_CITY\' | translate}}</label>\n <input type="text" name="city" placeholder="{{\'APPLICATION_CITY\' | translate}}" class="form-control" data-ng-model="contact.city"/>\n <span data-ng-show="(forms.general.city.$touched || forms.general.$submitted) && forms.general.city.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CITY -->\n </div>\n <div class="col-md-4">\n <!-- START COUNTRY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.country.$touched || forms.general.$submitted) && forms.general.country.$invalid}">\n <label class="control-label">{{\'APPLICATION_COUNTRY\' | translate}}</label>\n <input type="text" name="country" placeholder="{{\'APPLICATION_COUNTRY\' | translate}}" class="form-control" data-ng-model="contact.country"/>\n <span data-ng-show="(forms.general.country.$touched || forms.general.$submitted) && forms.general.country.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END COUNTRY -->\n\n <!-- START DATEOFBIRTH -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.dateOfBirth.$touched || forms.general.$submitted) && forms.general.dateOfBirth.$invalid}">\n <label class="control-label">{{\'APPLICATION_DATEOFBIRTH\' | translate}}</label>\n <input name="dateOfBirth" type="date" placeholder="{{\'APPLICATION_DATEOFBIRTH\' | translate}}" class="form-control date-picker" data-ng-model="contact.dateOfBirth"/>\n <span data-ng-show="(forms.general.dateOfBirth.$touched || forms.general.$submitted) && forms.general.dateOfBirth.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END DATEOFBIRTH -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea style="resize: vertical;" type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="contact.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n </div>\n <div class="col-md-4">\n <!-- START URL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.url.$touched || forms.general.$submitted) && forms.general.url.$invalid}">\n <label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n <input type="text" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="contact.url"/>\n <span data-ng-show="(forms.general.url.$touched || forms.general.$submitted) && forms.general.url.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END URL -->\n\n <!-- START CREATED_BY -->\n <div class="form-group" data-ng-if="contact.id">\n <label class="control-label">{{\'APPLICATION_CREATED_BY\' | translate}}</label>\n <input type="text" name="createdBy" placeholder="{{\'APPLICATION_CREATED_BY\' | translate}}" class="form-control" data-ng-model="contact.User.name" disabled/>\n </div>\n <!-- END CREATED_BY -->\n </div>\n </div>\n </div>\n <button type="submit" class="btn btn-circle green-haze btn-sm" data-ng-disabled="forms.general.$invalid">{{contact.id ? \'APPLICATION_UPDATE\' : \'APPLICATION_SAVE\' | translate}}</button>\n </div>\n <!-- END PORTLET -->\n <!-- BEGIN PORTLET -->\n <div class="portlet light" data-ng-if="customFields.length">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_CUSTOM_FIELDS\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body">\n <div class="row">\n <div class="col-md-4" data-ng-repeat="customField in customFields track by $index">\n <div data-ng-if="customField.type==\'text\'" class="form-group" data-ng-class="{\'has-error\': (forms.general[customField.name].$touched || forms.general.$submitted) && forms.general[customField.name].$invalid}">\n <label class="control-label">{{customField.alias}}<span data-ng-if="customField.required" class="required" aria-required="true">*</span></label>\n <input type="text" name="{{customField.name}}" placeholder="{{customField.alias}}" class="form-control" data-ng-model="contact[customField.name]" data-ng-required="customField.required"/>\n <span data-ng-show="(forms.general[customField.name].$touched || forms.general.$submitted) && forms.general[customField.name].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div data-ng-if="customField.type==\'select\'" class="form-group" data-ng-class="{\'has-error\': forms.general[customField.name].$invalid && forms.general.$submitted}">\n <label class="control-label">{{customField.alias}}<span data-ng-if="customField.required" class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="contact[customField.name]" theme="bootstrap" name="{{customField.name}}" data-ng-disabled="disabled" data-ng-required="customField.required">\n <ui-select-match allow-clear placeholder="{{customField.alias}}">{{$select.selected.value}}</ui-select-match>\n <ui-select-choices repeat="choice.value as choice in customField.values | filter: $select.search">\n <div ng-bind-html="choice.value | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.general[customField.name].$invalid && forms.general.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n <button type="submit" class="btn btn-circle green-haze btn-sm" data-ng-disabled="forms.general.$invalid">{{contact.id ? \'APPLICATION_UPDATE\' : \'APPLICATION_SAVE\' | translate}}</button>\n </div>\n </div>\n <!-- END PORTLET -->\n </div>\n <div class="tab-pane fade" id="tab_1_2{{contact.id || \'\'}}">\n <!-- BEGIN PORTLET -->\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_CUSTOMER_JOURNEY\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_2_1{{contact.id || \'\'}}" data-toggle="tab">{{ \'APPLICATION_DAILY\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_2_2{{contact.id || \'\'}}" data-toggle="tab">{{ \'APPLICATION_HISTORY\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <!--BEGIN TABS-->\n <div class="tab-content">\n <div class="tab-pane active" id="tab_2_1{{contact.id || \'\'}}">\n <div class="contact-portlet">\n <div class="actions">\n <div class="btn-group btn-group-devided" data-toggle="buttons">\n <label class="btn btn-transparent grey-salsa btn-circle btn-sm" data-ng-class="{\'active\':log.daily.show === \'phone\'}" data-ng-click="updateLog(\'daily\',\'phone\',\'general\',\'inbound\')">\n <input type="radio" class="toggle">{{\'APPLICATION_PHONES\' | translate}}</label>\n <label class="btn btn-transparent grey-salsa btn-circle btn-sm" data-ng-class="{\'active\':log.daily.show === \'email\'}" data-ng-click="updateLog(\'daily\',\'email\',\'general\',\'room\')">\n <input type="radio" class="toggle">{{\'APPLICATION_EMAILS\' | translate}}</label>\n <label class="btn btn-transparent grey-salsa btn-circle btn-sm" data-ng-class="{\'active\':log.daily.show === \'chat\'}" data-ng-click="updateLog(\'daily\',\'chat\',\'general\',\'room\')">\n <input type="radio" class="toggle">{{\'APPLICATION_CHAT\' | translate}}</label>\n <label class="btn btn-transparent grey-salsa btn-circle btn-sm" data-ng-class="{\'active\':log.daily.show === \'fax\'}" data-ng-click="updateLog(\'daily\',\'fax\',\'general\',\'room\')">\n <input type="radio" class="toggle">{{\'APPLICATION_FAX\' | translate}}</label>\n <label class="btn btn-transparent grey-salsa btn-circle btn-sm" data-ng-class="{\'active\':log.daily.show === \'sms\'}" data-ng-click="updateLog(\'daily\',\'sms\',\'general\',\'room\')">\n <input type="radio" class="toggle">{{\'APPLICATION_SMS\' | translate}}</label>\n </div><span data-ng-if="log.daily.show==\'phone\'"> |</span>\n <div class="btn-group btn-group-devided" data-toggle="buttons" data-ng-if="log.daily.show==\'phone\'">\n <label class="btn btn-transparent grey-salsa btn-circle btn-sm" data-ng-class="{\'active\':log.daily.type === \'inbound\'}" data-ng-click="updateLog(\'daily\',false,false,\'inbound\')">\n <input type="radio" class="toggle">{{\'APPLICATION_INBOUND\' | translate}}</label>\n <label class="btn btn-transparent grey-salsa btn-circle btn-sm" data-ng-class="{\'active\':log.daily.type === \'outbound\'}" data-ng-click="updateLog(\'daily\',false,\'general\',\'outbound\')">\n <input type="radio" class="toggle">{{\'APPLICATION_OUTBOUND\' | translate}}</label>\n </div><span data-ng-if="log.daily.show==\'phone\'"> |</span>\n <div class="btn-group btn-group-devided" data-toggle="buttons" data-ng-if="log.daily.show==\'phone\'">\n <label class="btn btn-transparent grey-salsa btn-circle btn-sm" data-ng-class="{\'active\':log.daily.detail === \'general\'}" data-ng-click="updateLog(\'daily\',false,\'general\',false)">\n <input type="radio" class="toggle">{{\'APPLICATION_GENERAL\' | translate}}</label>\n <label data-ng-if="log.daily.type===\'inbound\'" class="btn btn-transparent grey-salsa btn-circle btn-sm" data-ng-class="{\'active\':log.daily.detail === \'queue\'}" data-ng-click="updateLog(\'daily\',false,\'queue\',\'inbound\')">\n <input type="radio" class="toggle">{{\'APPLICATION_QUEUES\' | translate}}</label>\n </div>\n </div>\n <div data-ng-if="gridOptionsdaily" name="gridOptionsdaily" ui-grid="gridOptionsdaily" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptionsdaily.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n </div>\n </div>\n <div class="tab-pane" id="tab_2_2{{contact.id || \'\'}}">\n <div class="contact-portlet">\n <div class="actions">\n <div class="btn-group btn-group-devided" data-toggle="buttons">\n'+" <label class=\"btn btn-transparent grey-salsa btn-circle btn-sm\" data-ng-class=\"{'active':log.history.show === 'phone'}\" data-ng-click=\"updateLog('history','phone','general','inbound')\">\n <input type=\"radio\" class=\"toggle\">{{'APPLICATION_PHONES' | translate}}</label>\n <label class=\"btn btn-transparent grey-salsa btn-circle btn-sm\" data-ng-class=\"{'active':log.history.show === 'email'}\" data-ng-click=\"updateLog('history','email','general','room')\">\n <input type=\"radio\" class=\"toggle\">{{'APPLICATION_EMAILS' | translate}}</label>\n <label class=\"btn btn-transparent grey-salsa btn-circle btn-sm\" data-ng-class=\"{'active':log.history.show === 'chat'}\" data-ng-click=\"updateLog('history','chat','general','room')\">\n <input type=\"radio\" class=\"toggle\">{{'APPLICATION_CHAT' | translate}}</label>\n <label class=\"btn btn-transparent grey-salsa btn-circle btn-sm\" data-ng-class=\"{'active':log.history.show === 'fax'}\" data-ng-click=\"updateLog('history','fax','general','room')\">\n <input type=\"radio\" class=\"toggle\">{{'APPLICATION_FAX' | translate}}</label>\n <label class=\"btn btn-transparent grey-salsa btn-circle btn-sm\" data-ng-class=\"{'active':log.history.show === 'sms'}\" data-ng-click=\"updateLog('history','sms','general','room')\">\n <input type=\"radio\" class=\"toggle\">{{'APPLICATION_SMS' | translate}}</label>\n </div><span data-ng-if=\"log.history.show=='phone'\"> |</span>\n <div class=\"btn-group btn-group-devided\" data-toggle=\"buttons\" data-ng-if=\"log.history.show=='phone'\">\n <label class=\"btn btn-transparent grey-salsa btn-circle btn-sm\" data-ng-class=\"{'active':log.history.type === 'inbound'}\" data-ng-click=\"updateLog('history',false,false,'inbound')\">\n <input type=\"radio\" class=\"toggle\">{{'APPLICATION_INBOUND' | translate}}</label>\n <label class=\"btn btn-transparent grey-salsa btn-circle btn-sm\" data-ng-class=\"{'active':log.history.type === 'outbound'}\" data-ng-click=\"updateLog('history',false,'general','outbound')\">\n <input type=\"radio\" class=\"toggle\">{{'APPLICATION_OUTBOUND' | translate}}</label>\n </div><span data-ng-if=\"log.history.show=='phone'\"> |</span>\n <div class=\"btn-group btn-group-devided\" data-toggle=\"buttons\" data-ng-if=\"log.history.show=='phone'\">\n <label class=\"btn btn-transparent grey-salsa btn-circle btn-sm\" data-ng-class=\"{'active':log.history.detail === 'general'}\" data-ng-click=\"updateLog('history',false,'general',false)\">\n <input type=\"radio\" class=\"toggle\">{{'APPLICATION_GENERAL' | translate}}</label>\n <label data-ng-if=\"log.history.type==='inbound'\" class=\"btn btn-transparent grey-salsa btn-circle btn-sm\" data-ng-class=\"{'active':log.history.detail === 'queue'}\" data-ng-click=\"updateLog('history',false,'queue','inbound')\">\n <input type=\"radio\" class=\"toggle\">{{'APPLICATION_QUEUES' | translate}}</label>\n </div>\n </div>\n <div data-ng-if=\"gridOptionshistory\" name=\"gridOptionshistory\" ui-grid=\"gridOptionshistory\" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-exporter ui-grid-draggable-rows class=\"ui-grid\">\n <div class=\"watermark\" ng-show=\"!gridOptionshistory.data.length\">{{'MESSAGE_NO_RESULTS_AVAILABLE' | translate}}</div>\n </div>\n </div>\n </div>\n </div>\n <!--END TABS-->\n </div>\n </div>\n <!-- END PORTLET -->\n </div>\n <!-- END PROFILE CONTENT -->\n </form>\n</div>\n </div>\n</div>\n"), -a.put("app/main/template/template.jscriptyTab.html",'<div class="portlet light bordered">\n <!-- BEGIN PORTLET BODY -->\n <div class="portlet-body">\n <div class="row">\n <!-- BEGIN SIDEBAR -->\n <div class="profile-sidebar" style="width: 250px;">\n <!-- PORTLET MAIN -->\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li ng-repeat= \'question in questions track by $index\' ng-class="{active: $index == count}">\n <a ng-click="setCurrentQuestion($index)" >\n <i class="fa fa-check"></i> <label ng-if="attribute.nodeName == \'label\'" ng-repeat=\'attribute in question.value.attributes track by $index\'>{{attribute.value}}</label>\n </a>\n </li>\n </ul>\n </div>\n <!-- END SIDEBAR MENU -->\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END SIDEBAR -->\n <div class="profile-content">\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="fa fa-edit font-green-sharp"></i>\n <span ng-if="attribute.nodeName ==\'label\'" ng-repeat=\'attribute in currentQuestion.value.attributes\' class="caption-subject">{{attribute.value}} </span>\n </div>\n\n </div>\n <div class="portlet-body form ">\n <div class="row">\n <div class="col-md-10 col-md-offset-1 ">\n <form >\n <div class="form-body" style="height: 400px; overflow-y: auto;overflow-x:hidden">\n\n <!-- Question -->\n <div class="form-group" style="word-wrap: break-word;" >\n <h3 ng-if="attribute.nodeName ==\'question\' || attribute.nodeName ==\'text\'" ng-repeat=\'attribute in currentQuestion.value.attributes\'>{{attribute.value}}</h3>\n </div>\n <!-- Buttons -->\n\n <div ng-if ="(edge.source.id == currentQuestion.id) && edge.value" ng-repeat=\'edge in currentQuestion.edges track by $index\' class="row">\n <div class="col-md-8 col-md-offset-2">\n <input checked="checked" type="radio" ng-model="currentQuestion.button" ng-value="edge" >\n <label ng-show="(edge.source.id == currentQuestion.id) && edge.value">{{edge.value}}</label><br><br>\n </div>\n </div>\n <!-- Question Other Option -->\n\n <div class="form-group" ng-if= "attribute.nodeName ==\'other\' && attribute.value " ng-repeat=\'attribute in currentQuestion.value.attributes track by $index\'>\n <br>\n <div class="col-md-2">\n <label class="control-label">{{attribute.value}}</label>\n </div>\n <div class="col-md-8">\n <textarea style="overflow:auto" ng-model="currentQuestion.otheranswer" placeholder="Enter text" rows="8" cols="40" ></textarea>\n </div>\n </div>\n <!-- Inputs -->\n <div class="row margin-top-10" ng-repeat=\'question in currentQuestion.children track by $index\'>\n <div class="col-md-10 col-md-offset-1">\n <div ng-repeat=\'attribute in question.value.attributes track by $index\'>\n <div ng-switch="attribute.nodeName">\n <div ng-class="col-md-2" ng-switch-when="label">\n <label class="control-label" style=" display:block;word-break:break-all;" >{{attribute.value}}</label>\n </div>\n <div ng-class="attribute.value != \'checkbox\' ? \'col-md-10 pull-right\': \'col-md-2\'" ng-switch-when="type" ng-switch="attribute.value">\n <input class="form-control" ng-switch-when="text" type="text" ng-model="question.answer" />\n <input class="form-control" ng-switch-when="number" type="number" ng-model="question.answer" />\n <input class=" pull-right" ng-switch-when="checkbox" type="checkbox" ng-model="question.answer" />\n <!-- ng-true-value="\'Selected\'" ng-false-value="\'Not Selected\'" -->\n <textarea class="form-control" ng-switch-when="textarea" ng-model="question.answer" rows="8" cols="40"></textarea>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <!-- actions -->\n <div class="form-actions">\n <div ng-switch="attribute.nodeName" class="btn-set pull-left">\n <button class="btn red-haze " ng-click="end()">\n <span class="fa fa-times" > Close</span>\n </button>\n <!-- <button class="btn red-haze " ng-click="end()">\n <span ng-if="attribute.nodeName ==\'end\'" ng-repeat=\'attribute in currentQuestion.value.attributes\' class="fa fa-times" > Finish</span>\n </button> -->\n <button class="btn blue-haze" ng-show="count" ng-click="back()"><span class="glyphicon glyphicon-chevron-left"></span>Back</button>\n </div>\n <div class="btn-set pull-right">\n <button ng-show=" currentQuestion.button" class="btn blue-hoki" ng-click="next(currentQuestion.button.target, currentQuestion.button.value)">Next<span class="glyphicon glyphicon-chevron-right" ></span></button>\n <button ng-repeat=\'edge in currentQuestion.edges track by $index\' ng-show="(edge.source.id == currentQuestion.id) && !edge.value" class="btn blue-hoki" ng-click="next(edge.target)">Next<span class="glyphicon glyphicon-chevron-right" ></span></button>\n </div>\n </div>\n </form>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <!-- END PORTLET BODY -->\n</div>\n'),a.put("app/main/template/template.notification.html",'<div class="ui-notification alert alert-block" ng-class="class" style="width: 350px; margin-top: 50px;">\n <h4 ng-show="title" class="alert-heading"><i class="{{icon}}"></i> {{title}}</h4>\n <hr>\n <p ng-bind-html="message"></p>\n <br>\n <p>\n <a class="btn btn-success close-notification" href="#" ng-click="nAccept()"><i class="glyphicon glyphicon-ok"></i> {{acceptBtn}} </a>\n <a class="btn btn-danger close-notification" href="#" ng-click="nReject()"><i class="glyphicon glyphicon-remove"></i> {{rejectBtn}} </a>\n </p>\n</div>\n'),a.put("app/main/template/template.reportBuilderView.html",'<div class="alert alert-warning alert-group">\n <div class="form-inline" data-ng-class="{\'has-error\': forms.report.$submitted && !group.rules.length}">\n <select ng-options="o.name as o.name for o in operators" ng-model="group.operator" class="form-control input-sm"></select>\n <button style="margin-left: 5px" type="button" ng-click="addCondition()" class="btn btn-sm btn-success"><span class="glyphicon glyphicon-plus-sign"></span> {{\'APPLICATION_ADD_CONDITION\' | translate}}</button>\n <button style="margin-left: 5px" type="button" ng-click="addGroup()" class="btn btn-sm btn-success"><span class="glyphicon glyphicon-plus-sign"></span> {{\'APPLICATION_ADD_GROUP\' | translate}}</button>\n <button style="margin-left: 5px" type="button" ng-click="removeGroup()" class="btn btn-sm btn-danger"><span class="glyphicon glyphicon-minus-sign"></span> {{\'APPLICATION_REMOVE_GROUP\' | translate}}</button>\n </div>\n <div class="group-conditions">\n <div ng-repeat="rule in group.rules | orderBy:\'index\'" class="condition">\n <div ng-switch="rule.hasOwnProperty(\'group\')">\n <div ng-switch-when="true">\n <report-builder group="rule.group" fields="fields" forms="forms"></report-builder>\n </div>\n <div ng-switch-default="ng-switch-default">\n <div class="row">\n <div class="col-md-2" data-ng-class="{\'has-error\': forms.report.$submitted && !rule.field}">\n <ui-select data-ng-model="rule.field" theme="bootstrap" dynamic-name="randomName()" required>\n <ui-select-match placeholder="" ><span ng-bind-html="$select.selected.name"></span></ui-select-match>\n <ui-select-choices repeat="field.value as field in fields | filter: $select.search">\n <div ng-bind-html="field.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.report.$submitted && !rule.field" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div class="col-md-1">\n <ui-select data-ng-model="rule.condition" theme="bootstrap" dynamic-name="randomName()" data-ng-change="inputIsRequired(rule)" data-ng-init="inputIsRequired(rule)">\n <ui-select-match placeholder="">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="condition.name as condition in conditions | filter: $select.search">\n <div ng-bind-html="condition.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-2" data-ng-class="{\'has-error\': forms.report.$submitted && !rule.value}" data-ng-if="rule.required">\n <input type="text" ng-model="rule.value" class="form-control" dynamic-name="randomName()" data-ng-required="requiredInput"/>\n <span data-ng-show="forms.report.$submitted && !rule.value" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <button style="margin-left: 5px" ng-click="removeCondition($index)" class="btn btn-sm btn-danger" type="button"><span class="glyphicon glyphicon-minus-sign"></span></button>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n'),a.put("app/main/template/template.tigerDialDisposal.html",'<div class="row margin-top-20 contact-tab-container">\n <div class="portlet light bordered">\n <div class="row portfolio-block" data-ng-if="workspace.spooler.destcalleridnum && workspace.spooler.queue && workspace.spooler.agentconnectAt">\n <div class="col-md-2">\n <div class="portfolio-text">\n <img src="assets/images/media/outboundroute.png" class="td-disposal-logo" alt=""/>\n </div>\n </div>\n <div class="col-md-3 portfolio-stat">\n <div>{{\'APPLICATION_CALLED_NUMBER\' | translate}} </div>\n <p> {{workspace.spooler.destcalleridnum}} </p>\n </div>\n <div class="col-md-3 portfolio-stat">\n <div>{{\'APPLICATION_QUEUE\' | translate}} </div>\n <p> {{workspace.spooler.queue}} </p>\n </div>\n <div class="col-md-3 portfolio-stat">\n <div>{{\'APPLICATION_DATE\' | translate}} </div>\n <p> {{workspace.spooler.agentconnectAt | date:\'dd/MM/yyyy HH:mm:ss\'}} </p>\n </div>\n</div>\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <span class="caption-subject">{{ workspace.spooler.calleridname }} {{ \'APPLICATION_MOTION_DIALER\' | translate }} {{ \'APPLICATION_DISPOSITION\' | translate }} </span>\n </div>\n </div>\n <div class="portlet-body">\n <div class="padding-bottom row">\n <div class="col-md-12" data-ng-form="tdForm">\n <!-- START RETRIEVE -->\n <div class="form-group" data-ng-class="{\'has-error\': (tdForm.retrieve.$touched || tdForm.$submitted) && tdForm.retrieve.$invalid}">\n <label class="control-label">{{ \'APPLICATION_STATUS\' | translate }}<span class="required" aria-required="true">*</span></label>\n <select name="retrieve" class="form-control" data-ng-model="entitySpooler.retrieve" required>\n <option value="CLOSED">CLOSE</option>\n <option value="OPEN">OPEN</option>\n <option value="BLACK_LIST">BLACKLIST</option>\n <option value="PLANNED">PLANNING</option>\n <option value="PLANNED_PEER">PLANNING AGENT</option>\n </select>\n <span data-ng-show="(tdForm.retrieve.$touched || tdForm.$submitted) && tdForm.retrieve.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END RETRIEVE -->\n <!-- START PLANNING DATE -->\n <div class="form-group" data-ng-if="entitySpooler.retrieve == \'PLANNED\' || entitySpooler.retrieve == \'PLANNED_PEER\'" data-ng-class="{\'has-error\': (tdForm.date.$touched || tdForm.$submitted) && tdForm.date.$invalid}">\n <label class="control-label">PLANNING DATE<span class="required" aria-required="true">*</span></label>\n <uib-datepicker name="date" ng-model="entitySpooler.planningtime" required data-ng-init="entitySpooler.planningtime = moment();"></uib-datepicker>\n <span data-ng-show="(tdForm.date.$touched || tdForm.$submitted) && tdForm.date.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PLANNING DATE -->\n <!-- START PLANNING TIME -->\n <div class="form-group" data-ng-if="entitySpooler.retrieve == \'PLANNED\' || entitySpooler.retrieve == \'PLANNED_PEER\'" data-ng-class="{\'has-error\': (tdForm.time.$touched || tdForm.$submitted) && tdForm.time.$invalid}">\n <label class="control-label">PLANNING TIME<span class="required" aria-required="true">*</span></label>\n <uib-timepicker name="time" ng-model="entitySpooler.planningtime" required show-meridian="false" show-seconds="false"></uib-timepicker>\n <span data-ng-show="(tdForm.time.$touched || tdForm.$submitted) && tdForm.time.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PLANNING TIME -->\n <!-- START PLANNING PEER -->\n <div class="form-group" data-ng-if="entitySpooler.retrieve == \'PLANNED_PEER\'" data-ng-class="{\'has-error\': (tdForm.agent.$touched || tdForm.$submitted) && tdForm.agent.$invalid}">\n <label class="control-label">{{\'APPLICATION_AGENT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input name="agent" class="form-control" data-ng-model="entitySpooler.planningpeer" readonly required>\n <span data-ng-show="(tdForm.agent.$touched || tdForm.$submitted) && tdForm.agent.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PLANNING PEER -->\n <button type="button" class="btn btn-circle green-haze btn-sm" data-ng-disabled="!tdForm.$valid" data-ng-click="save()">{{\'APPLICATION_SAVE\' | translate}}</button>\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/main/template/template.webPopup.html",'<div class="alert" ng-class="class">\n <h3 data-ng-show="workspace.data.subject" class="alert-heading"><i class="{{icon}}"></i>{{workspace.data.subject}}</h3>\n <hr data-ng-show="workspace.data.subject">\n <div ng-bind-html="html"></div>\n</div>\n'),a.put("app/market/market.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-handbag"></i>\n <a href="/market">Market Place</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <!-- Our Integration -->\n <div class="headline">\n <h3>Our Integrations</h3>\n </div>\n <div class="row thumbnails" data-ng-repeat="group in groupedIntegration">\n <div class="col-md-3" data-ng-repeat="integration in group">\n <div class="our-integrations">\n <h3> {{integration.name}} <small> {{integration.author}}</small></h3>\n <img data-ng-src="{{integration.logo}}" alt="{{integration.name}}" class="img-responsive"/>\n <div class="integration-info" data-ng-if="!integration.downloading">\n <p>\n {{integration.description}}\n </p>\n <div class="pull-right">\n <a data-ng-disabled="isProgressing" data-ng-if="!integration.active" data-ng-click="installIntegration(integration)" href="#" class="btn btn-xs green-meadow">Install <i class="fa fa-download"></i></a>\n <a data-ng-disabled="isProgressing" data-ng-if="integration.active" data-ng-click="uninstallIntegration(integration)" href="#" class="btn btn-xs red-sunglo">Uninstall <i class="fa fa-trash"></i></a>\n <a href="{{integration.link}}" class="btn btn-xs grey-cascade" target="_blank">More <i class="fa fa-link"></i></a>\n </div>\n </div>\n <div class="integration-info" data-ng-if="integration.downloading">\n <div>\n <uib-progressbar class="progress-striped active" value="percentage" type="success"><i style="color:black;">{{status}}</i></uib-progressbar>\n </div>\n </div>\n </div>\n </div>\n </div>\n <!--/thumbnails-->\n <!-- //End Meer Our Team -->\n </div>\n</div>\n'),a.put("app/motiondialer/blacklist/list/list.create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_CONTACT\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <!-- START PHONE -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.phone.$touched || form.$submitted) && form.phone.$invalid}">\n <label class="control-label">{{\'APPLICATION_PHONE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="phone" placeholder="{{\'APPLICATION_PHONE\' | translate}}" class="form-control" data-ng-model="item.phone" required/>\n <span data-ng-show="(form.phone.$touched || form.$submitted) && form.phone.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PHONE -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/motiondialer/blacklist/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-control-forward"></i>\n <a href="#">Motion Dialer</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-doc"></i>\n <a href="#">{{ \'APPLICATION_BLACKLIST\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-doc font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_BLACKLIST\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group">\n <button class="btn green-jungle " ng-click="createItem()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_CONTACT\' | translate }}\n </button>\n <span class="btn default btn-file">\n <span class="fileinput-new"><i class="icon-cloud-upload"></i> {{\'APPLICATION_IMPORT_FROM_CSV\' | translate}}</span>\n <input type="file" nv-file-select="" uploader="uploader"/>\n </span>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-exporter class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/motiondialer/blacklist/list/list.import.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_IMPORT_FROM_CSV\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <!-- START PHONE -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.phone.$touched || form.$submitted) && form.phone.$invalid}">\n <label class="control-label">{{\'APPLICATION_PHONE\' | translate}}</label>\n <ui-select data-ng-model="item.phone" theme="bootstrap" name="phone" data-ng-disabled="disabled" required>\n <ui-select-match allow-clear placeholder="{{ \'APPLICATION_PHONE\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="index in indexes | filter: $select.search">\n <div ng-bind-html="index | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END PHONE -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <ui-select data-ng-model="item.description" theme="bootstrap" name="description" data-ng-disabled="disabled">\n <ui-select-match allow-clear placeholder="{{ \'APPLICATION_DESCRIPTION\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="index in indexes | filter: $select.search">\n <div ng-bind-html="index | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n <!-- START PROGRESS -->\n <div>\n <p>{{\'APPLICATION_IMPORT_SUCCEEDED\' | translate}}: {{import.succeeded}}/{{csvLength}}</p>\n <div class="progress progress-sm" style="">\n <div class="progress-bar progress-bar-info" role="progressbar" ng-style="{ \'width\': import.success + \'%\' }"></div>\n </div>\n </div>\n <div>\n <p>{{\'APPLICATION_IMPORT_FAILED\' | translate}}: {{import.failed}}/{{csvLength}}</p>\n <div class="progress progress-sm" style="">\n <div class="progress-bar progress-bar-danger" role="progressbar" ng-style="{ \'width\': import.fail + \'%\' }"></div>\n </div>\n <div class="has-error" data-ng-if="noPhone.length">\n <span class="help-block help-block-error">\n {{\'APPLICATION_CONTACTS_WITHOUT_PHONE\' | translate}}: {{noPhone}}\n </span>\n </div>\n <div class="has-error" data-ng-if="duplicates.length">\n <span class="help-block help-block-error">\n {{\'APPLICATION_DUPLICATED_CONTACTS\' | translate}}: {{duplicates}}\n </span>\n </div>\n </div>\n <!-- END PROGRESS -->\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="start()" ng-disabled="form.$invalid || !form.phone || submitted">{{ \'APPLICATION_SUBMIT\' | translate }}</button>\n <button class="btn default" type="button" ng-click="close()" data-ng-if="!importing">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n <button class="btn default" type="button" ng-click="stop()" data-ng-if="importing">{{ \'APPLICATION_STOP\' | translate }}</button>\n</div>\n'),a.put("app/motiondialer/info/view/view.about.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_ABOUT\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body">\n <form class="form-horizontal form-row-seperated">\n <div class="form-body">\n <!-- START -->\n <div class="form-group">\n <label class="control-label col-md-3">Specification</label>\n <div class="col-md-9">\n <input type="text" class="form-control" value="{{properties.SpecificationTitle}} ({{properties.SpecificationVersion}}) - {{properties.SpecificationVendor}}" disabled/>\n <span class="help-block">\n </span>\n </div>\n </div>\n <!-- END -->\n <!-- START -->\n <div class="form-group">\n <label class="control-label col-md-3">Implementation</label>\n <div class="col-md-9">\n <input type="text" class="form-control" value="{{properties.ImplementationTitle}} ({{properties.ImplementationVersion}}) - {{properties.ImplementationVendor}}" disabled/>\n <span class="help-block">\n </span>\n </div>\n </div>\n <!-- END -->\n <!-- START -->\n <div class="form-group">\n <label class="control-label col-md-3">Start Time</label>\n <div class="col-md-9">\n <input type="text" class="form-control" data-ng-model="properties.StartTime" disabled/>\n <span class="help-block">\n </span>\n </div>\n </div>\n <!-- END -->\n <!-- START -->\n <div class="form-group">\n <label class="control-label col-md-3">Uptime</label>\n <div class="col-md-9">\n <input type="text" class="form-control" data-ng-model="properties.Uptime" disabled/>\n <span class="help-block">\n </span>\n </div>\n </div>\n <!-- END -->\n <!-- START -->\n <div class="form-group">\n <label class="control-label col-md-3">Operating System</label>\n <div class="col-md-9">\n <input type="text" class="form-control" value="{{properties.OsName}} {{properties.OsVersion}} {{properties.OsArch}}" disabled/>\n <span class="help-block">\n </span>\n </div>\n </div>\n <!-- END -->\n <!-- START -->\n <div class="form-group">\n <label class="control-label col-md-3">Processors</label>\n <div class="col-md-9">\n <input type="text" class="form-control" data-ng-model="properties.Processors" disabled/>\n <span class="help-block">\n </span>\n </div>\n </div>\n <!-- END -->\n <!-- START -->\n <div class="form-group">\n <label class="control-label col-md-3">System Start Time</label>\n <div class="col-md-9">\n <input type="text" class="form-control" data-ng-model="properties.SystemStartTime" disabled/>\n <span class="help-block">\n </span>\n </div>\n </div>\n <!-- END -->\n <!-- START -->\n <div class="form-group">\n <label class="control-label col-md-3">System Uptime</label>\n <div class="col-md-9">\n <input type="text" class="form-control" data-ng-model="properties.SystemUptime" disabled/>\n <span class="help-block">\n </span>\n </div>\n </div>\n <!-- END -->\n <!-- START -->\n <div class="form-group">\n <label class="control-label col-md-3">File System</label>\n <div class="col-md-9">\n <input type="text" class="form-control" value="Usable: {{properties.FileSystem.Usable | number:2}} Free: {{properties.FileSystem.Free | number:2}} Total: {{properties.FileSystem.Total | number:2}}" disabled/>\n <span class="help-block">\n </span>\n </div>\n </div>\n <!-- END -->\n </div>\n </form>\n </div>\n </div>\n </div>\n</div>\n'), -a.put("app/motiondialer/info/view/view.details.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_DETAILS\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body">\n <form class="form-horizontal form-row-seperated">\n <div class="form-body">\n <!-- START -->\n <div class="form-group">\n <label class="control-label col-md-3">Java Specification Name</label>\n <div class="col-md-9">\n <input type="text" class="form-control" data-ng-model="properties.JavaSpecificationName" disabled/>\n <span class="help-block">\n </span>\n </div>\n </div>\n <!-- END -->\n <!-- START -->\n <div class="form-group">\n <label class="control-label col-md-3">Java Home</label>\n <div class="col-md-9">\n <input type="text" class="form-control" data-ng-model="properties.JavaHome" disabled/>\n <span class="help-block">\n </span>\n </div>\n </div>\n <!-- END -->\n <!-- START -->\n <div class="form-group">\n <label class="control-label col-md-3">JavaVm</label>\n <div class="col-md-9">\n <input type="text" class="form-control" value="{{properties.JavaVmName}} ({{properties.JavaVmVersion}} {{properties.JavaVmInfo}}) - {{properties.JavaVmVendor}}" disabled/>\n <span class="help-block">\n </span>\n </div>\n </div>\n <!-- END -->\n\n <!-- START -->\n <div class="form-group">\n <label class="control-label col-md-3">Java</label>\n <div class="col-md-9">\n <input type="text" class="form-control" value="Java ({{properties.JavaVersion}} {{properties.JavaClassVersion}}) - {{properties.JavaVendor}}" disabled/>\n <span class="help-block">\n </span>\n </div>\n </div>\n <!-- END -->\n <!-- START -->\n <div class="form-group">\n <label class="control-label col-md-3">Java Runtime</label>\n <div class="col-md-9">\n <input type="text" class="form-control" value="{{properties.JavaRuntimeName}} ({{JavaRuntimeVersion}})" disabled/>\n <span class="help-block">\n </span>\n </div>\n </div>\n <!-- END -->\n <!-- START -->\n <div class="form-group">\n <label class="control-label col-md-3">Java Rmi Server Hostname</label>\n <div class="col-md-9">\n <input type="text" class="form-control" value="{{properties.JavaRmiServerHostname}}" disabled/>\n <span class="help-block">\n </span>\n </div>\n </div>\n <!-- END -->\n <!-- START -->\n <div class="form-group">\n <label class="control-label col-md-3">User</label>\n <div class="col-md-9">\n <input type="text" class="form-control" value="{{properties.UserName}} {{properties.UserLanguage}}-{{properties.UserCountry}} {{properties.UserTimezone}}" disabled/>\n <span class="help-block">\n </span>\n </div>\n </div>\n <!-- END -->\n <!-- START -->\n <div class="form-group">\n <label class="control-label col-md-3">User Home</label>\n <div class="col-md-9">\n <input type="text" class="form-control" value="{{properties.UserHome}}" disabled/>\n <span class="help-block">\n </span>\n </div>\n </div>\n <!-- END -->\n <!-- START -->\n <div class="form-group">\n <label class="control-label col-md-3">Hostname</label>\n <div class="col-md-9">\n <input type="text" class="form-control" value="{{properties.Hostname}}" disabled/>\n <span class="help-block">\n </span>\n </div>\n </div>\n <!-- END -->\n </div>\n </form>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/motiondialer/info/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getProperties()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-control-forward"></i>\n <a href="#">Motion Dialer</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-info"></i>\n <a href="/motiondialer/info/view/properties">{{ \'APPLICATION_INFO\' | translate }}</a>\n <i data-ng-show="variable" class="fa fa-angle-right"></i>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/template.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{ \'APPLICATION_INFO\' | translate }}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.motiondialer.info.view.about\')}">\n <a data-ng-href="/motiondialer/info/view/about">\n <i class="icon-globe"></i>\n {{ \'APPLICATION_ABOUT\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.motiondialer.info.view.details\')}">\n <a data-ng-href="/motiondialer/info/view/details">\n <i class="icon-support"></i>\n {{ \'APPLICATION_DETAILS\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.motiondialer.info.view.logs\')}">\n <a data-ng-href="/motiondialer/info/view/logs">\n <i class="icon-list"></i>\n {{ \'APPLICATION_LOGS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/motiondialer/info/view/view.logs.html",'<div class="row" data-ng-init="initLogs()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_LOGS\' | translate}}</span>\n </div>\n <button class="btn btn-default float-right" href="#" data-ng-click="initLogs()" data-ng-disabled="loading">\n <i class="icon-refresh"></i>\n </button>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="table1" name="table1" ui-grid-resize-columns ui-grid-pagination ui-grid-auto-resize ui-grid-exporter class="ui-grid">\n <div class="watermark" data-ng-show="!table1.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n <span us-spinner spinner-key="logs-spinner" spinner-start-active="true"></span>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/motiondialer/process/list/list.create.queue.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_PROCESS\' | translate }} {{\'APPLICATION_QUEUE\' | translate}}</h3>\n</div>\n<div class="modal-body">\n <form name="form" ng-init="initModal()" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n <!-- START LIST -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.list.$touched || form.$submitted) && form.list.$invalid}">\n <label class="control-label">{{\'APPLICATION_LIST\' | translate}}<span class="required" aria-required="true">*</span></label>\n <select name="list" class="form-control" data-ng-model="item.list" ng-options="list.name for list in lists" required>\n </select>\n <span data-ng-show="(form.list.$touched || form.$submitted) && form.list.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END LIST -->\n <!-- START QUEUE -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.queue.$touched || form.$submitted) && form.queue.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <select name="queue" class="form-control" data-ng-model="item.queue" ng-options="queue.name for queue in queues" required>\n </select>\n <span data-ng-show="(form.queue.$touched || form.$submitted) && form.queue.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE -->\n <!-- START TIMEOUT QUEUE -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.timeout.$touched || form.$submitted) && form.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="1" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="item.timeout" required/>\n <span data-ng-show="(form.timeout.$touched || form.$submitted) && form.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.timeout.$error.max || form.timeout.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </div>\n <!-- END MAX RETRIES -->\n <!-- START TRUNK -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.device.$touched || form.$submitted) && form.device.$invalid}">\n <label class="control-label">{{\'APPLICATION_TRUNK\' | translate}}<span class="required" aria-required="true">*</span></label>\n <select name="device" class="form-control" data-ng-model="item.device" ng-options="trunk.name for trunk in trunks" required>\n <option value="fake">{{\'APPLICATION_SELECT\' | translate}} {{\'APPLICATION_TRUNK\' | translate}}</option>\n </select>\n <span data-ng-show="(form.queue.$touched || form.$submitted) && form.queue.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TRUNK -->\n <!-- START FETCH SORT -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_FETCH_SORT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <select name="fetch_sort" class="form-control" data-ng-model="item.fetch_sort" ng-options="fetch_sort for fetch_sort in [\'ASC\', \'DESC\']" required>\n </select>\n <span class="help-block">{{\'DESCRIPTION_TD_FETCH_SORT\' | translate}}</span>\n </div>\n <!-- END FETCH SORT-->\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/motiondialer/process/list/list.create.square.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_PROCESS\' | translate }} {{ \'APPLICATION_CALLYSQUARE\' | translate | trusted}}</h3>\n</div>\n<div class="modal-body">\n <form name="form" ng-init="initModal()" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n <!-- START LIST -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.list.$touched || form.$submitted) && form.list.$invalid}">\n <label class="control-label">{{\'APPLICATION_LIST\' | translate}}<span class="required" aria-required="true">*</span></label>\n <select name="list" class="form-control" data-ng-model="item.list" ng-options="list.name for list in lists" required>\n </select>\n <span data-ng-show="(form.list.$touched || form.$submitted) && form.list.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END LIST -->\n <!-- START PROJECT -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.project.$touched || form.$submitted) && form.project.$invalid}">\n <label class="control-label">{{\'APPLICATION_PROJECT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <select name="project" class="form-control" data-ng-model="item.project" ng-options="project.name for project in projects" required>\n </select>\n <span data-ng-show="(form.project.$touched || form.$submitted) && form.project.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PROJECT -->\n <!-- START TRUNK -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.device.$touched || form.$submitted) && form.device.$invalid}">\n <label class="control-label">{{\'APPLICATION_TRUNK\' | translate}}<span class="required" aria-required="true">*</span></label>\n <select name="device" class="form-control" data-ng-model="item.device" ng-options="trunk.name for trunk in trunks" required>\n <option value="fake">{{\'APPLICATION_SELECT\' | translate}} {{\'APPLICATION_TRUNK\' | translate}}</option>\n </select>\n <span data-ng-show="(form.device.$touched || form.$submitted) && form.device.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TRUNK -->\n <!-- START FETCH SORT -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_FETCH_SORT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <select name="fetch_sort" class="form-control" data-ng-model="item.fetch_sort" ng-options="fetch_sort for fetch_sort in [\'ASC\', \'DESC\']" required>\n </select>\n <span class="help-block">{{\'DESCRIPTION_TD_FETCH_SORT\' | translate}}</span>\n </div>\n <!-- END FETCH SORT-->\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/motiondialer/process/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-control-forward"></i>\n <a href="#">Motion Dialer</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-settings"></i>\n <a href="#">{{ \'APPLICATION_PROCESSES\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_PROCESSES\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group">\n <button class="btn green-jungle dropdown-toggle" data-toggle="dropdown" data-close-others="true">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_PROCESS\' | translate }}\n </button>\n <ul class="dropdown-menu pull-right">\n <li>\n <a href="#" ng-click="createProcessQueue()">{{ \'APPLICATION_QUEUE\' | translate }}</a>\n </li>\n <li>\n <a href="#" ng-click="createProcessSquare()">{{ \'APPLICATION_CALLYSQUARE\' | translate | trusted}}</a>\n </li>\n </ul>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="spinner-grid" spinner-start-active="true"></span>\n <!-- END UI-GRID SPINNER -->\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-exporter class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/motiondialer/process/view/view.create.interval.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_INTERVAL\' | translate }} </h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n <!-- START TIME -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n <div class="input-group input-large">\n <fieldset class="pull-left" ng-disabled="splittedInterval.alwaysTime"><uib-timepicker name="t_from" data-ng-model="splittedInterval.t_from" show-meridian="false" show-spinners="false"></uib-timepicker></fieldset>\n <div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n <fieldset ng-disabled="splittedInterval.alwaysTime"><uib-timepicker name="t_to" data-ng-model="splittedInterval.t_to" show-meridian="false" show-spinners="false"></uib-timepicker></fieldset>\n <label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="splittedInterval.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label>\n </div>\n </div>\n <!-- END TIME -->\n\n <!-- START WEEKDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="splittedInterval.wd_from" theme="bootstrap" name="wd_from">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{weekDay.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="splittedInterval.wd_to" theme="bootstrap" name="wd_to">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{weekDay.name | translate}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END WEEKDAY -->\n\n <!-- START MONTHDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="splittedInterval.md_from" theme="bootstrap" name="md_from">\n <ui-select-match>{{$select.selected === \'always\' ? \'APPLICATION_ALWAYS\' : $select.selected | translate}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search">\n {{monthDay === \'always\' ? \'APPLICATION_ALWAYS\' : monthDay | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="splittedInterval.md_to" theme="bootstrap" name="md_to">\n <ui-select-match>{{$select.selected === \'always\' ? \'APPLICATION_ALWAYS\' : $select.selected | translate}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search">\n {{monthDay === \'always\' ? \'APPLICATION_ALWAYS\' : monthDay | translate}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTHDAY -->\n\n <!-- START MONTH -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="splittedInterval.m_from" theme="bootstrap" name="m_from">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.monthsNumber | filter: $select.search">\n {{month.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="splittedInterval.m_to" theme="bootstrap" name="m_to">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.monthsNumber | filter: $select.search">\n {{month.name | translate}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTH -->\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/motiondialer/process/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getProcess()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-control-forward"></i>\n <a href="#">Motion Dialer</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-settings"></i>\n <a href="/motiondialer/processes/list">{{ \'APPLICATION_PROCESSES\' | translate }}</a>\n <i data-ng-show="process.name" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="process.name">\n <a href="#">{{process.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/account.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{process.name}} ({{ (process.status === \'RUN\') ? \'RUNNING...\' : \'STOPPED\' }})\n </div>\n <div class="profile-usertitle-job">\n <a href="#" data-ng-click="goToContacts(process.list.id_source)">{{ \'APPLICATION_LIST\' | translate}} {{process.list ? process.list.name : \'#\'+process.id_list}} ({{process.fetch_sort}})</a>\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n <div class="profile-userbuttons">\n <button data-ng-show="process.status" type="button" class="btn btn-circle btn-sm" data-ng-class="{\'green-meadow\': process.status == \'STOP\', \'red-sunglo\': process.status == \'RUN\'}" data-ng-click="runOrStop()">{{ (process.status === \'RUN\') ? \'STOP\' : \'RUN\' }}</button>\n </div>\n <div class="profile-userbuttons">\n <button style="cursor:default" data-ng-show="process.runtime" type="button" class="btn btn-circle btn-sm" data-ng-class="{\'green-meadow\': process.runtime.completed, \'yellow-crusta\': !process.runtime.completed}">{{process.runtime.completed ? \'Complete\' : \'Incomplete\'}}</button>\n <button style="cursor:default" class="btn btn-circle btn-sm" data-ng-class="{\'green-meadow\': !process.runtime.outOfTime, \'red-sunglo\': process.runtime.outOfTime}"><i data-ng-class="{\'icon-clock\': !process.runtime.outOfTime, \'icon-close\': process.runtime.outOfTime}"></i> {{process.runtime.outOfTime ? \'Out of time\' : \'On time\'}}</button>\n </div>\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.motiondialer.processes.view.overview\')}">\n <a data-ng-href="/motiondialer/processes/view/{{process.id}}/overview">\n <i class="icon-home"></i>\n {{ \'APPLICATION_OVERVIEW\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.motiondialer.processes.view.settings\')}">\n <a data-ng-href="/motiondialer/processes/view/{{process.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.motiondialer.processes.view.intervals\')}">\n <a data-ng-href="/motiondialer/processes/view/{{process.id}}/intervals">\n <i class="icon-clock"></i>\n {{ \'APPLICATION_INTERVALS\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.motiondialer.processes.view.spooler\')}">\n <a data-ng-href="/motiondialer/processes/view/{{process.id}}/spooler">\n <i class="icon-options-vertical"></i>\n {{ \'APPLICATION_SPOOLER\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/motiondialer/process/view/view.intervals.html",'<div class="row" data-ng-init="initIntervals()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-clock theme-font"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_PROCESS\' | translate}} {{ \'APPLICATION_INTERVALS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_allow" data-toggle="tab">{{ \'APPLICATION_ALLOW\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_disallow" data-toggle="tab">{{ \'APPLICATION_DISALLOW\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- ALLOW TAB -->\n <div class="tab-pane active" id="tab_allow">\n <button class="btn green-jungle margin-bottom-10" ng-click="createInterval(true)">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_INTERVAL\' | translate }} ({{ \'APPLICATION_ALLOW\' | translate }})\n </button>\n <table class="table table-bordered table-hover">\n <thead>\n <tr role="row" class="heading">\n <th>\n {{ \'APPLICATION_VALUE\' | translate}}\n </th>\n <th>\n {{ \'APPLICATION_ACTIONS\' | translate}}\n </th>\n </tr>\n </thead>\n <tbody>\n <tr ng-repeat="interval in process.intervals track by $index">\n <td>\n {{interval}}\n </td>\n <td>\n <button href="javascript:;" data-ng-click="editInterval(true, interval, $index)" class="btn blue-hoki btn-sm"> {{ \'APPLICATION_EDIT\' | translate}} </button>\n <button data-ng-if="$index > 0" data-ng-click="deleteInterval(interval, $index, true)" class="btn red-sunglo btn-sm"> {{ \'APPLICATION_DELETE\' | translate}} </button>\n </td>\n </tr>\n <tr ng-show="!process.intervals.length"><td colspan=2>{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</td></tr>\n </tbody>\n </table>\n </div>\n <!-- END ALLOW TAB -->\n <!-- DISALLOW TAB -->\n <div class="tab-pane" id="tab_disallow">\n <button class="btn green-jungle margin-bottom-10" ng-click="createInterval(false)">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_INTERVAL\' | translate }} ({{ \'APPLICATION_DISALLOW\' | translate }})\n </button>\n <table class="table table-bordered table-hover">\n <thead>\n <tr role="row" class="heading">\n <th>\n {{ \'APPLICATION_VALUE\' | translate}}\n </th>\n <th>\n {{ \'APPLICATION_ACTIONS\' | translate}}\n </th>\n </tr>\n </thead>\n <tbody>\n <tr ng-repeat="interval in process.not_intervals track by $index">\n <td>\n {{interval}}\n </td>\n <td>\n <button href="javascript:;" data-ng-click="editInterval(false, interval)" class="btn blue-hoki btn-sm"> {{ \'APPLICATION_EDIT\' | translate}} </button>\n <button href="javascript:;" data-ng-click="deleteInterval($index, interval, false)" class="btn red-sunglo btn-sm"> {{ \'APPLICATION_DELETE\' | translate}} </button>\n </td>\n </tr>\n <tr ng-show="!process.not_intervals.length"><td colspan=2>{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</td></tr>\n </tbody>\n </table>\n\n </div>\n <!-- END DISALLOW TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'), -a.put("app/motiondialer/process/view/view.overview.html",'<div class="row" data-ng-init="getSummary()">\n <div class="col-md-12">\n <!-- BEGIN PORTLET -->\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-bar-chart theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_OVERVIEW\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_summary" data-toggle="tab">{{ \'APPLICATION_SUMMARY\' | translate}}</a>\n </li>\n <li ng-show="process.runtime">\n <a href="#" data-target="#tab_advanced" data-toggle="tab">{{ \'APPLICATION_ADVANCED\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- START SUMMARY TAB -->\n <div class="tab-pane active" id="tab_summary">\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="spinner-grid" spinner-start-active="true"></span>\n <!-- END UI-GRID SPINNER -->\n <div class="row number-stats margin-bottom-30">\n <div class="col-md-6 col-sm-6 col-xs-6">\n <div class="stat-left">\n <div class="stat-number">\n <div class="title">\n {{\'APPLICATION_TOTAL\' | translate}}\n </div>\n <div class="number">\n {{total}}\n </div>\n </div>\n </div>\n </div>\n <div class="col-md-6 col-sm-6 col-xs-6">\n <div class="stat-right">\n <div class="stat-number">\n <div class="title">\n {{\'APPLICATION_FRESH\' | translate}}\n </div>\n <div class="number">\n {{process.runtime.fresh || 0}}\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class="table-scrollable table-scrollable-borderless">\n <table class="table table-hover table-light">\n <thead>\n <tr class="uppercase">\n <th>\n {{\'APPLICATION_STATUS\' | translate}}\n </th>\n <th>\n {{\'APPLICATION_VALUE\' | translate}}\n </th>\n <th>\n {{\'APPLICATION_RATE\' | translate}}\n </th>\n <th>\n {{\'APPLICATION_DESCRIPTION\' | translate}}\n </th>\n </tr>\n </thead>\n <tr ng-repeat="sum in summary">\n <td>\n <a href="#" class="primary-link">{{\'APPLICATION_TD_\' + sum[0] | translate}}</a>\n </td>\n <td>\n {{sum[1]}}\n </td>\n <td>\n <span class="bold theme-font">{{ total ? ((sum[1]/total)*100).toFixed(2) : 0 }}%</span>\n </td>\n <td>\n {{\'DESCRIPTION_TD_\' + sum[0] | translate}}\n </td>\n </tr>\n </table>\n </div>\n </div>\n <!-- END SUMMARY TAB -->\n <!-- START SUMMARY TAB -->\n <div class="tab-pane" id="tab_advanced" ng-show="process.runtime">\n <div class="row number-stats margin-bottom-30">\n <div class="col-md-6 col-sm-6 col-xs-6">\n <div class="stat-left">\n <div class="stat-number">\n <div class="title">\n {{\'APPLICATION_SUCCESS\' | translate}}\n </div>\n <div class="number">\n {{process.runtime.success || 0}}\n </div>\n </div>\n </div>\n </div>\n <div class="col-md-6 col-sm-6 col-xs-6">\n <div class="stat-right">\n <div class="stat-number">\n <div class="title">\n {{\'APPLICATION_FAILED\' | translate}}\n </div>\n <div class="number">\n {{process.runtime.failed || 0}}\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class="table-scrollable table-scrollable-borderless">\n <table class="table table-hover table-light">\n <thead>\n <tr class="uppercase">\n <th>\n {{\'APPLICATION_STATUS\' | translate}}\n </th>\n <th>\n {{\'APPLICATION_VALUE\' | translate}}\n </th>\n <th>\n {{\'APPLICATION_DESCRIPTION\' | translate}}\n </th>\n </tr>\n </thead>\n <tr ng-repeat="(key, value) in process.runtime">\n <td>\n <a href="#" class="primary-link">{{\'APPLICATION_\' + key.toUpperCase() | translate}}</a>\n </td>\n <td ng-switch on="key">\n <span ng-switch-when="avgDial">{{value | number:2}}</span>\n <span ng-switch-when="avgDuration">{{value | number:2}}</span>\n <span ng-switch-when="avgProgress">{{value | number:2}}</span>\n <span ng-switch-when="completed">{{((value)? \'APPLICATION_YES\' : \'APPLICATION_NO\') | translate}}</span>\n <span ng-switch-when="outOfTime">{{((value)? \'APPLICATION_YES\' : \'APPLICATION_NO\') | translate}}</span>\n <span ng-switch-default>{{value}}</span>\n </td>\n <td>\n {{\'DESCRIPTION_TD_\' + key.toUpperCase() | translate}}\n </td>\n </tr>\n </table>\n </div>\n </div>\n <!-- END SUMMARY TAB -->\n </div>\n </div>\n </div>\n <!-- END PORTLET -->\n </div>\n</div>\n'),a.put("app/motiondialer/process/view/view.run.process.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_STATUS\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <p>\n Do you want to {{ status }} the process?\n </p>\n</div>\n<div class="modal-footer">\n <button class="btn default green-meadow" type="button" ng-click="yes()">{{ \'APPLICATION_YES\' | translate }}</button>\n <button class="btn default" type="button" ng-click="no()">{{ \'APPLICATION_NO\' | translate }}</button>\n</div>\n'),a.put("app/motiondialer/process/view/view.settings.html",'<div class="row" data-ng-init="initSettings()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_PROCESS\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_general" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_channel" data-toggle="tab">{{ \'APPLICATION_CHANNEL\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_advanced" data-toggle="tab">{{ \'APPLICATION_ADVANCED\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_status" data-toggle="tab">{{ \'APPLICATION_STATUS\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_general">\n <form name="form" data-ng-submit="form.$valid && updateProcess()" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="process.name" required/>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n <!-- START QUEUE -->\n <div data-ng-show="process.queue != \'none\'" class="form-group" data-ng-class="{\'has-error\': (form.queue.$touched || form.$submitted) && form.queue.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUEUE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="process.queue" name="queue" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="queue.name as queue in queues | filter: $select.search">\n <div ng-bind-html="queue.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form.queue.$touched || form.$submitted) && form.queue.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUEUE -->\n <!-- START MAX RETRIES -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.max_retries.$touched || form.$submitted) && form.max_retries.$invalid}">\n <label class="control-label">{{\'APPLICATION_MAX_RETRIES\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="1" max="100" name="max_retries" placeholder="{{\'APPLICATION_MAX_RETRIES\' | translate}}" class="form-control" data-ng-model="process.max_retries" required/>\n <span class="help-block">{{\'DESCRIPTION_TD_MAX_RETRIES\' | translate}}</span>\n <span data-ng-show="(form.max_retries.$touched || form.$submitted) && form.max_retries.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.max_retries.$error.max || form.max_retries.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </div>\n <!-- END MAX RETRIES -->\n <!-- START RETRY TIME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.retry_time.$touched || form.$submitted) && form.retry_time.$invalid}">\n <label class="control-label">{{\'APPLICATION_RETRY_TIME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="1" name="retry_time" placeholder="{{\'APPLICATION_RETRY_TIME\' | translate}}" class="form-control" data-ng-model="process.retry_time" required/>\n <span class="help-block">{{\'DESCRIPTION_TD_RETRY_TIME\' | translate}}</span>\n <span data-ng-show="(form.retry_time.$touched || form.$submitted) && form.retry_time.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.retry_time.$error.max || form.retry_time.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </div>\n <!-- END RETRY TIME -->\n <!-- START RETRY TIME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.wait_time.$touched || form.$submitted) && form.wait_time.$invalid}">\n <label class="control-label">{{\'APPLICATION_WAIT_TIME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="1000" name="wait_time" placeholder="{{\'APPLICATION_WAIT_TIME\' | translate}}" class="form-control" data-ng-model="process.wait_time" required/>\n <span class="help-block">{{\'DESCRIPTION_TD_WAIT_TIME\' | translate}}</span>\n <span data-ng-show="(form.wait_time.$touched || form.$submitted) && form.wait_time.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.wait_time.$error.max || form.wait_time.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </div>\n <!-- END WAIT TIME -->\n <!-- START AUTO CLOSED -->\n <!-- <div class="form-group">\n <label class="control-label">{{\'APPLICATION_AUTO_CLOSED\' | translate}}</label></br>\n <input\n bs-switch\n data-ng-model="process.auto_closed"\n type="checkbox"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-animate="false">\n <span class="help-block">{{\'DESCRIPTION_TD_AUTO_CLOSED\' | translate}}</span>\n </div> -->\n <!-- END AUTO CLOSED -->\n <!-- START WEIGHT -->\n <!-- END WEIGHT -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_AUTODIAL_LEVEL\' | translate}}</label></br>\n <slider ng-model="process.weight" min="0" step="1" max="50"></slider>\n <label>{{\'APPLICATION_VALUE\' | translate}}: {{process.weight}}</label>\n <span class="help-block">{{\'DESCRIPTION_TD_WEIGHT\' | translate}}</span>\n </div>\n <!-- START DISPOSAL -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_TD_DISPOSAL\' | translate}}</label></br>\n <input\n bs-switch\n data-ng-model="process.disposal"\n type="checkbox"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-animate="false">\n <span class="help-block">{{\'DESCRIPTION_TD_DISPOSAL\' | translate}}</span>\n </div>\n <!-- END DISPOSAL -->\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="process.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n <!-- CHANNEL TAB -->\n <div class="tab-pane" id="tab_channel">\n <form name="form" data-ng-submit="form.$valid && updateProcess()" novalidate>\n <!-- START CONTEXT -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.context.$touched || form.$submitted) && form.context.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONTEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="context" placeholder="{{\'APPLICATION_CONTEXT\' | translate}}" class="form-control" data-ng-model="process.context" required/>\n <span class="help-block">{{\'DESCRIPTION_TD_CONTEXT\' | translate}}</span>\n <span data-ng-show="(form.context.$touched || form.$submitted) && form.context.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CONTEXT -->\n <!-- START EXTENSION -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.extension.$touched || form.$submitted) && form.extension.$invalid}">\n <label class="control-label">{{\'APPLICATION_EXTENSION\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="extension" placeholder="{{\'APPLICATION_EXTENSION\' | translate}}" class="form-control" data-ng-model="process.extension" required/>\n <span class="help-block">{{\'DESCRIPTION_TD_EXTENSION\' | translate}}</span><a href="/channels/voice/routes/internal/list">Link {{\'APPLICATION_INTERNAL\' | translate}}</a>\n <span data-ng-show="(form.extension.$touched || form.$submitted) && form.extension.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END EXTENSION -->\n <!-- START PRIORITY -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.priority.$touched || form.$submitted) && form.priority.$invalid}">\n <label class="control-label">{{\'APPLICATION_PRIORITY\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="1" name="priority" placeholder="{{\'APPLICATION_PRIORITY\' | translate}}" class="form-control" data-ng-model="process.priority" required/>\n <span class="help-block">{{\'DESCRIPTION_TD_PRIORITY\' | translate}}</span>\n <span data-ng-show="(form.priority.$touched || form.$submitted) && form.priority.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.priority.$error.max || form.priority.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </div>\n <!-- END PRIORITY -->\n <!-- START PREFIX -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_PREFIX\' | translate}}</label>\n <input type="text" name="prefix_code" placeholder="{{\'APPLICATION_PREFIX\' | translate}}" class="form-control" data-ng-model="process.prefix_code"/>\n <span class="help-block">{{\'DESCRIPTION_TD_PREFIX\' | translate}}</span>\n </div>\n <!-- END PREFIX -->\n <!-- START TECHNOLOGY -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_TECHNOLOGY\' | translate}}<span class="required" aria-required="true">*</span></label>\n <select name="tech" class="form-control" data-ng-model="process.tech" ng-options="tech for tech in techs" required>\n </select>\n <span class="help-block">{{\'DESCRIPTION_TD_TECHNOLOGY\' | translate}}</span>\n </div>\n <!-- END TECHNOLOGY -->\n <!-- START DEVICE -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.device.$touched || form.$submitted) && form.device.$invalid}">\n <label class="control-label">{{\'APPLICATION_TRUNK\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="device" placeholder="{{\'APPLICATION_TRUNK\' | translate}}" class="form-control" data-ng-model="process.device" required/>\n <span class="help-block">{{\'DESCRIPTION_TD_TRUNK\' | translate}}</span>\n <span data-ng-show="(form.device.$touched || form.$submitted) && form.device.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END DEVICE -->\n <!-- START CALLERID -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.callerid.$touched || form.$submitted) && form.callerid.$invalid}">\n <label class="control-label">{{\'APPLICATION_CALLERID\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="callerid" placeholder="{{\'APPLICATION_CALLERID\' | translate}}" class="form-control" data-ng-model="process.callerid" required/>\n <span class="help-block">{{\'DESCRIPTION_TD_CALLERID\' | translate}}</span>\n <span data-ng-show="(form.callerid.$touched || form.$submitted) && form.callerid.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CALLERID -->\n <!-- START CODEC -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ALLOWED_CODECS\' | translate}}</label>\n <ui-select multiple data-ng-model="process.codecs" name="codecs" theme="bootstrap" data-ng-disabled="disabled">\n <ui-select-match placeholder="Select codec...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="codec in codecs">\n {{codec}}\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END CODEC -->\n <!-- START DIAL FORMAT -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DIAL_FORMAT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <select name="dial_format" class="form-control" data-ng-model="process.dial_format" ng-options="dial_format for dial_format in dialFormats" required>\n </select>\n <span class="help-block">{{\'DESCRIPTION_TD_DIAL_FORMAT\' | translate}}</span>\n </div>\n <!-- END DIAL FORMAT -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END CHANNEL TAB -->\n <!-- ADVANCED TAB -->\n <div class="tab-pane" id="tab_advanced">\n <form name="form" data-ng-submit="form.$valid && updateProcess()" novalidate>\n <!-- START CHECK DUPLICATE -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_CHECK_DUPLICATE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <select name="check_duplicate" class="form-control" data-ng-model="process.check_duplicate" ng-options="check_duplicate for check_duplicate in checkDuplicates" required>\n </select>\n <span class="help-block">{{\'DESCRIPTION_TD_CHECK_DUPLICATE\' | translate}}</span>\n </div>\n <!-- END CHECK DUPLICATE -->\n <!-- START CHECK BLACKLIST -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_CHECK_BLACKLIST\' | translate}}</label></br>\n <input\n bs-switch\n data-ng-model="process.check_blacklist"\n type="checkbox"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-animate="false">\n <span class="help-block">{{\'DESCRIPTION_TD_CHECK_BLACKLIST\' | translate}}</span>\n </div>\n <!-- END CHECK BLACKLIST -->\n <!-- START CHECK PHONE LENGHT -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.check_phone_length.$touched || form.$submitted) && form.check_phone_length.$invalid}">\n <label class="control-label">{{\'APPLICATION_CHECK_PHONE_LENGHT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="1" name="check_phone_length" placeholder="{{\'APPLICATION_CHECK_PHONE_LENGHT\' | translate}}" class="form-control" data-ng-model="process.check_phone_length" required/>\n <span class="help-block">{{\'DESCRIPTION_TD_CHECK_PHONE_LENGHT\' | translate}}</span>\n <span data-ng-show="(form.check_phone_length.$touched || form.$submitted) && form.check_phone_length.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.check_phone_length.$error.max || form.check_phone_length.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </div>\n <!-- END CHECK PHONE LENGHT -->\n <!-- START TIME SLICE -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.time_slice.$touched || form.$submitted) && form.time_slice.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIME_SLICE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="1" name="time_slice" placeholder="{{\'APPLICATION_TIME_SLICE\' | translate}}" class="form-control" data-ng-model="process.time_slice" required/>\n <span class="help-block">{{\'DESCRIPTION_TD_TIME_SLICE\' | translate}}</span>\n <span data-ng-show="(form.time_slice.$touched || form.$submitted) && form.time_slice.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.time_slice.$error.max || form.time_slice.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </div>\n <!-- END TIME SLICE -->\n <!-- START MISSED -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_CHECK_MISSED\' | translate}}</label></br>\n <input\n bs-switch\n data-ng-model="process.missed"\n type="checkbox"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-animate="false">\n <span class="help-block">{{\'DESCRIPTION_TD_CHECK_MISSED\' | translate}}</span>\n </div>\n <!-- END MISSED -->\n <!-- START CHANNEL LIMIT -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.channel_limit.$touched || form.$submitted) && form.channel_limit.$invalid}">\n <label class="control-label">{{\'APPLICATION_CHANNEL_LIMIT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="0" name="channel_limit" placeholder="{{\'APPLICATION_CHANNEL_LIMIT\' | translate}}" class="form-control" data-ng-model="process.channel_limit" required/>\n <span class="help-block">{{\'DESCRIPTION_TD_CHANNEL_LIMIT\' | translate}}</span>\n <span data-ng-show="(form.channel_limit.$touched || form.$submitted) && form.channel_limit.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.channel_limit.$error.max || form.channel_limit.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </div>\n <!-- END CHANNEL LIMIT -->\n <!-- START CONTEXT FOR OTHER CALLS -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_CONTEXT_FOR_OTHER_CALLS\' | translate}}</label>\n <input type="text" name="context_for_other_calls" placeholder="{{\'APPLICATION_CONTEXT_FOR_OTHER_CALLS\' | translate}}" class="form-control" data-ng-model="process.context_for_other_calls"/>\n <span class="help-block">{{\'DESCRIPTION_TD_CONTEXT_FOR_OTHER_CALLS\' | translate}}</span>\n </div>\n <!-- END CONTEXT FOR OTHER CALLS -->\n <!-- START EXTENSION FOR OTHER CALLS-->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_EXTENSION_FOR_OTHER_CALLS\' | translate}}</label>\n <input type="text" name="extension_for_other_calls" placeholder="{{\'APPLICATION_EXTENSION_FOR_OTHER_CALLS\' | translate}}" class="form-control" data-ng-model="process.extension_for_other_calls"/>\n <span class="help-block">{{\'DESCRIPTION_TD_EXTENSION_FOR_OTHER_CALLS\' | translate}}</span>\n </div>\n <!-- END EXTENSION FOR OTHER CALLS-->\n <!-- START PRIORITY FOR OTHER CALLS-->\n <div class="form-group" data-ng-class="{\'has-error\': (form.priority_for_other_calls.$touched || form.$submitted) && form.priority_for_other_calls.$invalid}">\n <label class="control-label">{{\'APPLICATION_PRIORITY_FOR_OTHER_CALLS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="1" name="priority_for_other_calls" placeholder="{{\'APPLICATION_PRIORITY_FOR_OTHER_CALLS\' | translate}}" class="form-control" data-ng-model="process.priority_for_other_calls"/>\n <span class="help-block">{{\'DESCRIPTION_TD_PRIORITY_FOR_OTHER_CALLS\' | translate}}</span>\n <span data-ng-show="form.priority_for_other_calls.$error.max || form.priority_for_other_calls.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </div>\n <!-- END PRIORITY FOR OTHER CALLS -->\n <!-- START TIMEZONE -->\n <!-- <div class="form-group">\n <label class="control-label">{{\'APPLICATION_EXTENDED_TIME_INTERVAL\' | translate}}</label>\n <input type="text" name="timezone" placeholder="08:30-20:30" class="form-control" data-ng-model="process.timezone"/>\n <span class="help-block">{{\'DESCRIPTION_TD_EXTENDED_TIME_INTERVAL\' | translate}}</span>\n </div> -->\n <!-- END TIMEZONE -->\n\n <!-- START AUTO TIMEZONE MANAGEMENT -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_AUTO_TIMEZONE_MANAGEMENT\' | translate}}</label></br>\n <input\n bs-switch\n data-ng-model="process.auto_timezone_management"\n type="checkbox"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-animate="false">\n <span class="help-block">{{\'DESCRIPTION_TD_AUTO_TIMEZONE_MANAGEMENT\' | translate}}</span>\n </div>\n <!-- END AUTO TIMEZONE MANAGEMENT -->\n <!-- START IGNORE STRINGS-->\n <!-- COMMENTED: BECAUSE IGNORE_STRINGS IS AN ARRAY NOT A STRING-->\n <!-- <div class="form-group">\n <label class="control-label">{{\'APPLICATION_IGNORE_STRINGS\' | translate}}</label>\n <input type="text" name="ignore_strings" placeholder="{{\'APPLICATION_IGNORE_STRINGS\' | translate}}" class="form-control" data-ng-model="process.ignore_strings"/>\n <span class="help-block">{{\'DESCRIPTION_TD_IGNORE_STRINGS\' | translate}}</span>\n </div> -->\n <!-- END IGNORE STRINGS-->\n <!-- START MIN OPERATOR -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.min_operator.$touched || form.$submitted) && form.min_operator.$invalid}">\n <label class="control-label">{{\'APPLICATION_MIN_OPERATOR\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="1" name="min_operator" placeholder="{{\'APPLICATION_MIN_OPERATOR\' | translate}}" class="form-control" data-ng-model="process.min_operator" required/>\n <span class="help-block">{{\'DESCRIPTION_TD_MIN_OPERATOR\' | translate}}</span>\n <span data-ng-show="(form.min_operator.$touched || form.$submitted) && form.min_operator.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.min_operator.$error.max || form.min_operator.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </div>\n <!-- END MIN OPERATOR -->\n <!-- START ALERT MAX CALLS -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.alert_max_calls.$touched || form.$submitted) && form.alert_max_calls.$invalid}">\n <label class="control-label">{{\'APPLICATION_ALERT_MAX_CALLS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="0" name="alert_max_calls" placeholder="{{\'APPLICATION_ALERT_MAX_CALLS\' | translate}}" class="form-control" data-ng-model="process.alert_max_calls" required/>\n <span class="help-block">{{\'DESCRIPTION_TD_ALERT_MAX_CALLS\' | translate}}</span>\n <span data-ng-show="(form.alert_max_calls.$touched || form.$submitted) && form.alert_max_calls.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.alert_max_calls.$error.max || form.alert_max_calls.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </div>\n <!-- END ALERT MAX CALLS -->\n <!-- START ALERT TIME SLICE -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.alert_time_slice.$touched || form.$submitted) && form.alert_time_slice.$invalid}">\n <label class="control-label">{{\'APPLICATION_ALERT_TIME_SLICE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="1" name="alert_time_slice" placeholder="{{\'APPLICATION_ALERT_TIME_SLICE\' | translate}}" class="form-control" data-ng-model="process.alert_time_slice" required/>\n <span class="help-block">{{\'DESCRIPTION_TD_ALERT_TIME_SLICE\' | translate}}</span>\n <span data-ng-show="(form.alert_time_slice.$touched || form.$submitted) && form.alert_time_slice.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.alert_time_slice.$error.max || form.alert_time_slice.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </div>\n <!-- END ALERT TIME SLICE -->\n <!-- START DROP MAX COUNT -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.drop_max_count.$touched || form.$submitted) && form.drop_max_count.$invalid}">\n <label class="control-label">{{\'APPLICATION_DROP_MAX_COUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="0" name="drop_max_count" placeholder="{{\'APPLICATION_DROP_MAX_COUNT\' | translate}}" class="form-control" data-ng-model="process.drop_max_count" required/>\n <span class="help-block">{{\'DESCRIPTION_TD_DROP_MAX_COUNT\' | translate}}</span>\n <span data-ng-show="(form.drop_max_count.$touched || form.$submitted) && form.drop_max_count.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.drop_max_count.$error.max || form.drop_max_count.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </div>\n <!-- END DROP MAX COUNT -->\n <!-- START SUCCESS CALL SIZE -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.success_call_size.$touched || form.$submitted) && form.success_call_size.$invalid}">\n <label class="control-label">{{\'APPLICATION_SUCCESS_CALL_SIZE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="1" name="success_call_size" placeholder="{{\'APPLICATION_SUCCESS_CALL_SIZE\' | translate}}" class="form-control" data-ng-model="process.success_call_size" required/>\n <span class="help-block">{{\'DESCRIPTION_TD_SUCCESS_CALL_SIZE\' | translate}}</span>\n <span data-ng-show="(form.success_call_size.$touched || form.$submitted) && form.success_call_size.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.success_call_size.$error.max || form.success_call_size.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </div>\n <!-- END SUCCESS CALL SIZE -->\n <!-- START IGNORE STRINGS-->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_TIME_EXPIRED\' | translate}}</label>\n <input type="text" name="expiredtime" placeholder="yyyy-MM-dd HH:mm:ss" class="form-control" data-ng-model="process.expiredtime"/>\n <span class="help-block">{{\'DESCRIPTION_TD_TIME_EXPIRED\' | translate}}</span>\n </div>\n <!-- END IGNORE STRINGS-->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ANDVANCED TAB -->\n <!-- START STATUS TAB -->\n <div class="tab-pane" id="tab_status">\n <form name="form" data-ng-submit="form.$valid && updateProcess()" novalidate>\n <table class="table table-bordered table-hover">\n <thead>\n <tr role="row" class="heading">\n <th>\n {{ \'APPLICATION_VALUE\' | translate}}\n </th>\n <th>\n {{ \'APPLICATION_MAX_RETRIES\' | translate}}\n </th>\n <th>\n {{ \'APPLICATION_RETRY_TIME\' | translate}} [min]\n </th>\n <th>\n {{ \'APPLICATION_DESCRIPTION\' | translate}}\n </th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td>\n {{ \'APPLICATION_AMD\' | translate}}\n </td>\n <td>\n <input type="number" min="0" name="amd_max_retries"class="form-control" data-ng-model="process.amd_max_retries" required/>\n <span data-ng-show="(form.amd_max_retries.$touched || form.$submitted) && form.amd_max_retries.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.amd_max_retries.$error.max || form.amd_max_retries.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </td>\n <td>\n <input type="number" min="0" name="amd_retry_time" class="form-control" data-ng-model="process.amd_retry_time" required/>\n <span data-ng-show="(form.amd_retry_time.$touched || form.$submitted) && form.amd_retry_time.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.amd_retry_time.$error.max || form.amd_retry_time.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </td>\n <td>\n {{ \'DESCRIPTION_TD_STATUS_AMD\' | translate}}\n </td>\n </tr>\n <tr>\n <td>\n {{ \'APPLICATION_BUSY\' | translate}}\n </td>\n <td>\n <input type="number" min="0" name="busy_max_retries"class="form-control" data-ng-model="process.busy_max_retries" required/>\n <span data-ng-show="(form.busy_max_retries.$touched || form.$submitted) && form.busy_max_retries.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.busy_max_retries.$error.max || form.busy_max_retries.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </td>\n <td>\n <input type="number" min="0" name="busy_retry_time"class="form-control" data-ng-model="process.busy_retry_time" required/>\n <span data-ng-show="(form.busy_retry_time.$touched || form.$submitted) && form.busy_retry_time.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.busy_retry_time.$error.max || form.busy_retry_time.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </td>\n <td>\n {{ \'DESCRIPTION_TD_STATUS_BUSY\' | translate}}\n </td>\n </tr>\n <tr>\n <td>\n {{ \'APPLICATION_CONGESTION\' | translate}}\n </td>\n <td>\n <input type="number" min="0" name="congestion_max_retries"class="form-control" data-ng-model="process.congestion_max_retries" required/>\n <span data-ng-show="(form.congestion_max_retries.$touched || form.$submitted) && form.congestion_max_retries.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.congestion_max_retries.$error.max || form.congestion_max_retries.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </td>\n <td>\n <input type="number" min="0" name="congestion_retry_time"class="form-control" data-ng-model="process.congestion_retry_time" required/>\n <span data-ng-show="(form.congestion_retry_time.$touched || form.$submitted) && form.congestion_retry_time.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.congestion_retry_time.$error.max || form.congestion_retry_time.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </td>\n <td>\n {{ \'DESCRIPTION_TD_STATUS_CONGESTION\' | translate}}\n </td>\n </tr>\n <tr>\n <td>\n {{ \'APPLICATION_DROP\' | translate}}\n </td>\n <td>\n <input type="number" min="0" name="drop_max_retries"class="form-control" data-ng-model="process.drop_max_retries" required/>\n <span data-ng-show="(form.drop_max_retries.$touched || form.$submitted) && form.drop_max_retries.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.drop_max_retries.$error.max || form.drop_max_retries.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </td>\n <td>\n <input type="number" min="0" name="drop_retry_time"class="form-control" data-ng-model="process.drop_retry_time" required/>\n <span data-ng-show="(form.drop_retry_time.$touched || form.$submitted) && form.drop_retry_time.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.drop_retry_time.$error.max || form.drop_retry_time.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </td>\n <td>\n {{ \'DESCRIPTION_TD_STATUS_DROP\' | translate}}\n </td>\n </tr>\n <tr>\n <td>\n {{ \'APPLICATION_FAILED\' | translate}}\n </td>\n <td>\n <input type="number" min="0" name="failed_max_retries"class="form-control" data-ng-model="process.failed_max_retries" required/>\n <span data-ng-show="(form.failed_max_retries.$touched || form.$submitted) && form.failed_max_retries.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.failed_max_retries.$error.max || form.failed_max_retries.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </td>\n <td>\n <input type="number" min="0" name="failed_retry_time"class="form-control" data-ng-model="process.failed_retry_time" required/>\n <span data-ng-show="(form.failed_retry_time.$touched || form.$submitted) && form.failed_retry_time.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.failed_retry_time.$error.max || form.failed_retry_time.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </td>\n <td>\n {{ \'DESCRIPTION_TD_STATUS_FAILED\' | translate}}\n </td>\n </tr>\n <tr>\n <td>\n {{ \'APPLICATION_NOANSWER\' | translate}}\n </td>\n <td>\n <input type="number" min="0" name="noanswer_max_retries"class="form-control" data-ng-model="process.noanswer_max_retries" required/>\n <span data-ng-show="(form.noanswer_max_retries.$touched || form.$submitted) && form.noanswer_max_retries.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.noanswer_max_retries.$error.max || form.noanswer_max_retries.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </td>\n <td>\n <input type="number" min="0" name="noanswer_retry_time"class="form-control" data-ng-model="process.noanswer_retry_time" required/>\n <span data-ng-show="(form.noanswer_retry_time.$touched || form.$submitted) && form.noanswer_retry_time.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.noanswer_retry_time.$error.max || form.noanswer_retry_time.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </td>\n <td>\n {{ \'DESCRIPTION_TD_STATUS_NOANSWER\' | translate}}\n </td>\n </tr>\n <tr>\n <td>\n {{ \'APPLICATION_NOSUCHEXTENSION\' | translate}}\n </td>\n <td>\n <input type="number" min="0" name="nosuchextension_max_retries"class="form-control" data-ng-model="process.nosuchextension_max_retries" required/>\n <span data-ng-show="(form.nosuchextension_max_retries.$touched || form.$submitted) && form.nosuchextension_max_retries.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.nosuchextension_max_retries.$error.max || form.nosuchextension_max_retries.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </td>\n <td>\n <input type="number" min="0" name="nosuchextension_retry_time"class="form-control" data-ng-model="process.nosuchextension_retry_time" required/>\n <span data-ng-show="(form.nosuchextension_retry_time.$touched || form.$submitted) && form.nosuchextension_retry_time.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.nosuchextension_retry_time.$error.max || form.nosuchextension_retry_time.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </td>\n <td>\n {{ \'DESCRIPTION_TD_STATUS_NOSUCHEXTENSION\' | translate}}\n </td>\n </tr>\n <tr>\n <td>\n {{ \'APPLICATION_RINGTIMEOUT\' | translate}}\n </td>\n <td>\n <input type="number" min="0" name="ringtimeout_max_retries"class="form-control" data-ng-model="process.ringtimeout_max_retries" data-ng-init="!process.ringtimeout_max_retries && (process.ringtimeout_max_retries = 0)" required/>\n <span data-ng-show="(form.ringtimeout_max_retries.$touched || form.$submitted) && form.ringtimeout_max_retries.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.ringtimeout_max_retries.$error.max || form.ringtimeout_max_retries.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </td>\n <td>\n <input type="number" min="0" name="ringtimeout_retry_time" class="form-control" data-ng-model="process.ringtimeout_retry_time" data-ng-init="!process.ringtimeout_retry_time && (process.ringtimeout_retry_time = 0)" required/>\n <span data-ng-show="(form.ringtimeout_retry_time.$touched || form.$submitted) && form.ringtimeout_retry_time.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="form.ringtimeout_retry_time.$error.max || form.ringtimeout_retry_time.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </td>\n <td>\n {{ \'DESCRIPTION_TD_STATUS_RINGTIMEOUT\' | translate}}\n </td>\n </tr>\n </tbody>\n </table>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END STATUS TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'), -a.put("app/motiondialer/process/view/view.spooler.edit.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_EDIT\' | translate }} {{ \'APPLICATION_CONTACT\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <!-- START RETRIEVE -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.retrieve.$touched || form.$submitted) && form.retrieve.$invalid}" ng-init="initModal()">\n <label class="control-label">{{ \'APPLICATION_STATUS\' | translate }}<span class="required" aria-required="true">*</span></label>\n <select name="retrieve" class="form-control" data-ng-model="entitySpooler.retrieve" required>\n <option value="CLOSED">CLOSE</option>\n <option value="OPEN">OPEN</option>\n <option value="BLACK_LIST">BLACKLIST</option>\n <option value="PLANNED">PLANNING</option>\n <option value="PLANNED_PEER">PLANNING AGENT</option>\n </select>\n <span data-ng-show="(form.retrieve.$touched || form.$submitted) && form.retrieve.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END RETRIEVE -->\n <!-- START PLANNING DATE -->\n <div class="form-group" data-ng-if="entitySpooler.retrieve == \'PLANNED\' || entitySpooler.retrieve == \'PLANNED_PEER\'" data-ng-class="{\'has-error\': (form.date.$touched || form.$submitted) && form.date.$invalid}">\n <label class="control-label">PLANNING DATE<span class="required" aria-required="true">*</span></label>\n <uib-datepicker name="date" ng-model="entitySpooler.planningtime" required init-date="initDate"></uib-datepicker>\n <span data-ng-show="(form.date.$touched || form.$submitted) && form.date.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PLANNING DATE -->\n <!-- START PLANNING TIME -->\n <div class="form-group" data-ng-if="entitySpooler.retrieve == \'PLANNED\' || entitySpooler.retrieve == \'PLANNED_PEER\'" data-ng-class="{\'has-error\': (form.time.$touched || form.$submitted) && form.time.$invalid}">\n <label class="control-label">PLANNING TIME<span class="required" aria-required="true">*</span></label>\n <uib-timepicker name="time" ng-model="entitySpooler.planningtime" required show-meridian="false" show-seconds="false"></uib-timepicker>\n <span data-ng-show="(form.time.$touched || form.$submitted) && form.time.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PLANNING TIME -->\n <!-- START PLANNING PEER -->\n <div class="form-group" data-ng-if="entitySpooler.retrieve == \'PLANNED_PEER\'" data-ng-class="{\'has-error\': (form.agent.$touched || form.$submitted) && form.agent.$invalid}">\n <label class="control-label">{{\'APPLICATION_AGENT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <select name="agent" class="form-control" data-ng-model="entitySpooler.planningpeer" ng-options="agent for agent in agents" required>\n </select>\n <span data-ng-show="(form.agent.$touched || form.$submitted) && form.agent.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PLANNING PEER -->\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'),a.put("app/motiondialer/process/view/view.spooler.history.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_HISTORY\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <json-formatter json="historySpooler" open="2"></json-formatter>\n</div>\n<div class="modal-footer">\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'),a.put("app/motiondialer/process/view/view.spooler.html",'<div class="row" data-ng-init="getSpooler()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_SPOOLER\' | translate}} </span>\n </div>\n <div class="actions">\n <a class="btn btn-default" href="#" data-ng-click="getSpooler()">\n <i class="icon-refresh"></i>\n </a>\n </div>\n </div>\n\n <div class="portlet-body">\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="spinner-grid" spinner-start-active="true"></span>\n <!-- END UI-GRID SPINNER -->\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-exporter class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/reset/reset.html",'<!-- BEGIN LOGO -->\n<div class="logo" data-ng-init="getInfo()">\n <a href="index.html">\n <img ng-src="api/settings/logo/login" alt="logo" class="custom-login-logo" onError="this.onerror=null"/>\n </a>\n</div>\n<!-- END LOGO -->\n<!-- BEGIN RESET -->\n<div class="content">\n <!-- BEGIN RESET FORM -->\n <form name="resetForm" data-ng-submit="resetForm.$valid && reset()" novalidate>\n <h3>{{\'APPLICATION_RESET_PASSWORD\' | translate}}</h3>\n <p>\n {{\'APPLICATION_INSERT_NEW_PASSWORD_RESET\' | translate}}\n </p>\n <div class="form-group" data-ng-class="{\'has-error\': resetForm.$submitted && resetForm.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_NEW_PASSWORD\' | translate}}</label>\n <div class="input-icon">\n <i class="icon-key"></i>\n <input class="form-control form-control-solid placeholder-no-fix" type="password" placeholder="{{\'APPLICATION_NEW_PASSWORD\' | translate}}" name="password" ng-model="userReset.password" data-ng-pattern="setting.securePassword ? settings.patternPassword : settings.patternPasswordLight" required/>\n </div>\n <span class="help-block">\n {{setting.securePassword ? \'MESSAGE_PASSWORD_FORMAT\' : \'MESSAGE_PASSWORD_LIGHT_FORMAT\' | translate}}\n </span>\n <span data-ng-show="resetForm.$submitted && resetForm.password.$invalid" class="help-block">{{\'MESSAGE_REQUIRED_FIELD\' | translate}}</span>\n <span data-ng-show="(resetForm.password.$touched || resetForm.$submitted) && resetForm.password.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <div class="form-group" data-ng-class="{\'has-error\': resetForm.$submitted && resetForm.rePassword.$invalid}">\n <label class="control-label">{{\'APPLICATION_RE_TYPE_NEW_PASSWORD\' | translate}}</label>\n <div class="input-icon">\n <i class="icon-key"></i>\n <input class="form-control form-control-solid placeholder-no-fix" type="password" placeholder="{{\'APPLICATION_RE_TYPE_NEW_PASSWORD\' | translate}}" name="rePassword" ng-model="userReset.rePassword" nx-equal="userReset.password" required/>\n </div>\n <span data-ng-show="resetForm.$submitted && resetForm.rePassword.$invalid" class="help-block">{{\'MESSAGE_REQUIRED_FIELD\' | translate}}</span>\n <span data-ng-show="(resetForm.password.$touched || resetForm.$submitted) && resetForm.$error.nxEqual" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_PASSWORD\' | translate}}.\n </span>\n </div>\n <div class="form-actions">\n <button type="submit" class="btn btn-success uppercase">{{\'APPLICATION_SUBMIT\' | translate}}</button>\n </div>\n </form>\n <!-- END RESET FORM-->\n <div class="login-options">\n <h4>{{\'APPLICATION_FOLLOW_US\' | translate}}</h4>\n <ul class="social-icons">\n <li>\n <a class="social-icon-color facebook" data-original-title="facebook" href="https://www.facebook.com/xenialab"></a>\n </li>\n <li>\n <a class="social-icon-color twitter" data-original-title="Twitter" href="https://twitter.com/xenialab"></a>\n </li>\n <li>\n <a class="social-icon-color googleplus" data-original-title="Goole Plus" href="#"></a>\n </li>\n <li>\n <a class="social-icon-color linkedin" data-original-title="Linkedin" href="#"></a>\n </li>\n </ul>\n </div>\n</div>\n<div class="copyright">\n xCALLY Motion v. {{info.version}} | 2016 - {{year + 1}} © Powered by Xenialab <ng-bind-html data-ng-if="license.custom && !settings.defaultFooterWhiteLabel && settings.footerWhiteLabel" ng-bind-html="\'| \'+settings.footerWhiteLabel"></ng-bind-html>\n</div>\n<!-- END RESET -->\n'),a.put("app/salesforce/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-cloud"></i>\n <a href="/salesforce/list">{{ \'APPLICATION_SALESFORCE\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="fa fa-cloud font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_SALESFORCE\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="/salesforce/wizard" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_ACCOUNT\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/salesforce/view/configuration/list/create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_CONFIGURATION\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.name.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(form.name.$touched || form.name.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START CHANNEL -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.channel.$touched || form.channel.$submitted) && form.channel.$invalid}">\n <label class="control-label">{{\'APPLICATION_CHANNEL\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.channel" name="channel" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_CHANNEL\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="channel.value as channel in channels | filter: $select.search">\n <div data-ng-bind="channel.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form.channel.$touched || form.channel.$submitted) && form.channel.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- START CHANNEL -->\n\n <!-- START VOICE SUBTYPE -->\n <div data-ng-if="item.channel===\'voice\'" class="form-group" data-ng-class="{\'has-error\': (form.channel.$touched || form.channel.$submitted) && form.channel.$invalid}">\n <label class="control-label">{{\'APPLICATION_TYPE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.type" name="type" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_TYPE\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="type in [\'Queue\',\'Outbound\'] | filter: $select.search">\n <div data-ng-bind="type | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form.type.$touched || form.type.$submitted) && form.type.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- START CHANNEL -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/salesforce/view/configuration/list/list.html",'<div ui-view class="profile-content">\n <div class="row">\n <div class="col-md-12">\n <div class="portlet light" data-ng-init="initView()">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_CONFIGURATIONS\' | translate}}</span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="#" data-ng-click="createItem()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_CONFIGURATION\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/salesforce/view/configuration/view/view.html",'<div class="row" data-ng-init="initView();getConfiguration();getCustomVariables();getFields();">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_CONFIGURATION\' | translate}}: {{configurationName}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_SUBJECT\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_DESCRIPTION\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_3" data-toggle="tab">{{\'APPLICATION_FIELDS\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- SUBJECT TAB -->\n <div class="tab-pane ui-padding active" id="tab_1_1">\n <div class="row">\n <div class="col-md-11">\n <span class="caption-subject">All following fields will be join by blank space:</span>\n </div>\n <div class="col-md-1 pull-rigth">\n <button class="btn btn-icon-only green" data-ng-click="addItem(\'subject\')"><i class="fa fa-plus"></i></button>\n </div>\n </div>\n <hr>\n <!-- <div id="subject-item-list" ng-scrollbars ng-scrollbars-config="config"> -->\n <div class="row" data-ng-repeat="subjectItem in subjectConfig">\n <div class="col-md-3">\n <ui-select ng-model="subjectItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeType(subjectItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices repeat="item.type as item in fieldType | filter: $select.search">\n <div ng-bind-html="item.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-8" data-ng-if="subjectItem.type==\'string\'">\n <div class="form-group">\n <input type="text" class="form-control" data-ng-model="subjectItem.content" data-ng-change="updateField(subjectItem)">\n </div>\n </div>\n <div class="col-md-8" data-ng-if="subjectItem.type==\'variable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="subjectItem.variableName" data-ng-change="updateField(subjectItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices group-by="groupVariableByGroup" repeat="variable.name as variable in variables | filter: $select.search">\n <div ng-bind-html="variable.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-8" data-ng-if="subjectItem.type==\'customVariable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="subjectItem.VariableId" data-ng-change="updateField(subjectItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="variable.id as variable in customVariables | filter: $select.search">\n <div ng-bind-html="variable.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-1">\n <div class="form-group">\n <button class="btn btn-icon-only red" data-ng-click="removeItem(subjectItem)"><i class="fa fa-times"></i></button>\n </div>\n </div>\n </div>\n <!-- </div> -->\n </div>\n <!-- END SUBJECT TAB -->\n <!-- DESCRIPTION TAB -->\n <div class="tab-pane ui-padding" id="tab_1_2">\n <div class="row">\n <div class="col-md-11">\n <span class="caption-subject">All following fields will be join by new line:</span>\n </div>\n <div class="col-md-1 pull-rigth">\n <button class="btn btn-icon-only green" data-ng-click="addItem(\'description\')"><i class="fa fa-plus"></i></button>\n </div>\n </div>\n <hr>\n <!-- <div id="description-item-list" ng-scrollbars ng-scrollbars-config="config"> -->\n <div class="row" data-ng-repeat="descriptionItem in descriptionConfig">\n <div class="col-md-2">\n <ui-select ng-model="descriptionItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeDescType(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices repeat="item.type as item in descFieldType | filter: $select.search">\n <div ng-bind-html="item.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-9" data-ng-if="descriptionItem.type==\'string\'">\n <div class="form-group">\n <input type="text" class="form-control" data-ng-model="descriptionItem.content" data-ng-change="updateField(descriptionItem)">\n </div>\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\'">\n <input type="text" class="form-control" placeholder="Key" data-ng-model="descriptionItem.key" data-ng-change="updateField(descriptionItem)">\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\'">\n <ui-select ng-model="descriptionItem.keyType" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeDescType(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices repeat="item.type as item in fieldType | filter: $select.search">\n <div ng-bind-html="item.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\' && descriptionItem.keyType==\'string\'">\n <input type="text" class="form-control" placeholder="Value" data-ng-model="descriptionItem.keyContent" data-ng-change="updateField(descriptionItem)">\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\' && descriptionItem.keyType==\'variable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="descriptionItem.variableName" data-ng-change="updateField(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices group-by="groupVariableByGroup" repeat="variable.name as variable in variables | filter: $select.search">\n <div ng-bind-html="variable.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\' && descriptionItem.keyType==\'customVariable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="descriptionItem.VariableId" data-ng-change="updateField(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="variable.id as variable in customVariables | filter: $select.search">\n <div ng-bind-html="variable.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-1">\n <div class="form-group">\n <button class="btn btn-icon-only red" data-ng-click="removeItem(descriptionItem)"><i class="fa fa-times"></i></button>\n </div>\n </div>\n </div>\n <!-- </div> -->\n </div>\n <!-- END DESCRIPTION TAB -->\n <!-- FIELDS TAB -->\n <div class="tab-pane ui-padding" id="tab_1_3">\n <div class="row">\n <div class="col-md-11">\n <span class="caption-subject">Add how to fill the fields present in your account:</span>\n </div>\n <div class="col-md-1 pull-rigth">\n <button class="btn btn-icon-only green" data-ng-click="addItem(\'field\')"><i class="fa fa-plus"></i></button>\n </div>\n </div>\n <hr>\n <!-- <div id="field-item-list" ng-scrollbars ng-scrollbars-config="config"> -->\n <div class="row" data-ng-repeat="fieldItem in fieldConfig">\n <div class="col-md-3">\n <ui-select ng-model="fieldItem.idField" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeFieldType(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.label}}</ui-select-match>\n <ui-select-choices repeat="item.name as item in accountFields | filter: $select.search">\n <div ng-bind-html="item.label | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-8" data-ng-if="getSystemFieldOptions(fieldItem.idField)">\n <div class="form-group">\n <ui-select ng-model="fieldItem.content" theme="bootstrap" ng-disabled="disabled" data-ng-change="updateField(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.label}}</ui-select-match>\n <ui-select-choices repeat="item.value as item in getSystemFieldOptions(fieldItem.idField) | filter: $select.search">\n <div ng-bind-html="item.label | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField)">\n <div class="form-group">\n <ui-select ng-model="fieldItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeType(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices repeat="item.type as item in fieldType | filter: $select.search">\n <div ng-bind-html="item.title | highlight: $select.search | ucfirst"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'string\'">\n <div class="form-group">\n <input type="text" class="form-control" data-ng-model="fieldItem.content" data-ng-change="updateField(fieldItem)">\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'variable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="fieldItem.variableName" data-ng-change="updateField(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices group-by="groupVariableByGroup" repeat="variable.name as variable in variables | filter: $select.search">\n <div ng-bind-html="variable.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'customVariable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="fieldItem.VariableId" data-ng-change="updateField(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="variable.id as variable in customVariables | filter: $select.search">\n <div ng-bind-html="variable.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-1">\n <div class="form-group">\n <button class="btn btn-icon-only red" data-ng-click="removeItem(fieldItem)"><i class="fa fa-times"></i></button>\n </div>\n </div>\n </div>\n <!-- </div> -->\n </div>\n <!-- END FIELDS TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/salesforce/view/view.account.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_ACCOUNT\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERALS\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.formSetting" data-ng-submit="forms.formSetting.$valid && updateItem()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.name" required/>\n <span data-ng-show="forms.formSetting.name.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="account.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="account.username" required/>\n <span data-ng-show="forms.formSetting.username.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START REMOTE ADDRESS -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.remoteUri.$invalid}">\n <label class="control-label">{{\'APPLICATION_URI\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="remoteUri" placeholder="{{\'APPLICATION_URI\' | translate}}" class="form-control" data-ng-model="account.remoteUri" required />\n <span data-ng-show="forms.formSetting.remoteUri.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="account.password" required/>\n <span data-ng-show="forms.formSetting.password.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START CLIENT ID -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.clientId.$invalid}">\n <label class="control-label">{{\'APPLICATION_CLIENT_ID\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="clientId" placeholder="{{\'APPLICATION_CLIENT_ID\' | translate}}" class="form-control" data-ng-model="account.clientId" required/>\n <span data-ng-show="forms.formSetting.clientId.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CLIENT ID -->\n\n <!-- START CLIENT SECRET -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.clientSecret.$invalid}">\n <label class="control-label">{{\'APPLICATION_CLIENT_SECRET\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="clientSecret" placeholder="{{\'APPLICATION_CLIENT_SECRET\' | translate}}" class="form-control" data-ng-model="account.clientSecret" required/>\n <span data-ng-show="forms.formSetting.clientSecret.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CLIENT SECRET -->\n\n <!-- START SECURITY TOKEN -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.securityToken.$invalid}">\n <label class="control-label">{{\'APPLICATION_SECURITY_TOKEN\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="securityToken" placeholder="{{\'APPLICATION_SECURITY_TOKEN\' | translate}}" class="form-control" data-ng-model="account.securityToken" required/>\n <span data-ng-show="forms.formSetting.securityToken.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SECURITY TOKEN -->\n\n <!-- START SERVER URL -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.serverUrl.$invalid}">\n <label class="control-label">{{\'APPLICATION_MOTION_ADDRESS\' | translate}}</label>\n <input type="url" name="serverUrl" placeholder="{{\'APPLICATION_MOTION_ADDRESS\' | translate}}" class="form-control" data-ng-model="account.serverUrl"/>\n <span class="help-block">\n {{\'DESCRIPTION_SERVER_URL\' | translate}}.\n </span>\n <span class="help-block help-block-info">\n {{\'MESSAGE_MOTION_ADDRESS_FORMAT\' | translate}}\n </span>\n </div>\n <!-- END SERVER URL -->\n\n <!-- START AUTH TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.authType.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTEGRATION_TYPE\' | translate}}</label>\n <ui-select data-ng-model="account.integrationType" name="integrationType" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_INTEGRATION_TYPE\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="type in [\'classic\', \'embedded\'] | filter: $select.search">\n <div data-ng-bind="type | capitalize | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.formSetting.authType.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- START AUTH TYPE -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'), -a.put("app/salesforce/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-cloud"></i>\n <a href="/salesforce/list">{{ \'APPLICATION_SALESFORCE\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <a href="#">{{account.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img src="assets/images/media/salesforce.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{account.name}}\n </div>\n <div class="profile-usertitle-job">\n {{account.remoteUri}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.salesforce.view.account\')}">\n <a ng-href="/salesforce/view/{{account.id}}/account">\n <i class="icon-user"></i>\n {{ \'APPLICATION_ACCOUNT\' | translate }} </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.salesforce.view.configurations\') || $state.is(\'main.salesforce.view.configuration\')}">\n <a ng-href="/salesforce/view/{{account.id}}/configurations/list">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_CONFIGURATIONS\' | translate }} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/salesforce/wizard/wizard.html",'<!-- BEGIN PAGE HEADER-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-cloud"></i>\n <a href="/salesforce/list">{{ \'APPLICATION_SALESFORCE\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n<!-- END PAGE HEADER-->\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initWizard()">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACCOUNT\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_ACCOUNT_INFO\' | translate}}" canexit="exitValidation(forms.formSetting.$valid)">\n <form name="forms.formSetting" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="forms.formSetting.name.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="item.username" required ng-remote-validate="/api/salesforce/accounts/validate/username"/>\n <span data-ng-show="forms.formSetting.username.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.formSetting.username.$touched || forms.formSetting.$submitted) && forms.formSetting.username.$error.ngRemoteValidate" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_EXIST_USERNAME\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n\n <!-- START REMOTE ADDRESS -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.remoteUri.$invalid}">\n <label class="control-label">{{\'APPLICATION_URI\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="remoteUri" placeholder="{{\'APPLICATION_URI\' | translate}}" class="form-control" data-ng-model="item.remoteUri" required/>\n <span data-ng-show="forms.formSetting.remoteUri.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.password" required/>\n <span data-ng-show="forms.formSetting.password.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START CLIENT ID -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.clientId.$invalid}">\n <label class="control-label">{{\'APPLICATION_CLIENT_ID\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="clientId" placeholder="{{\'APPLICATION_CLIENT_ID\' | translate}}" class="form-control" data-ng-model="item.clientId" required/>\n <span data-ng-show="forms.formSetting.clientId.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CLIENT ID -->\n\n <!-- START CLIENT SECRET -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.clientSecret.$invalid}">\n <label class="control-label">{{\'APPLICATION_CLIENT_SECRET\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="clientSecret" placeholder="{{\'APPLICATION_CLIENT_SECRET\' | translate}}" class="form-control" data-ng-model="item.clientSecret" required/>\n <span data-ng-show="forms.formSetting.clientSecret.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CLIENT SECRET -->\n\n <!-- START SECURITY TOKEN -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.securityToken.$invalid}">\n <label class="control-label">{{\'APPLICATION_SECURITY_TOKEN\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="securityToken" placeholder="{{\'APPLICATION_SECURITY_TOKEN\' | translate}}" class="form-control" data-ng-model="item.securityToken" required/>\n <span data-ng-show="forms.formSetting.securityToken.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SECURITY TOKEN -->\n\n <!-- START SERVER URL -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.serverUrl.$invalid}">\n <label class="control-label">{{\'APPLICATION_MOTION_ADDRESS\' | translate}}</label>\n <input type="url" name="serverUrl" placeholder="{{\'APPLICATION_MOTION_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.serverUrl"/>\n <span class="help-block">\n {{\'DESCRIPTION_SERVER_URL\' | translate}}.\n </span>\n <span class="help-block help-block-info">\n {{\'MESSAGE_MOTION_ADDRESS_FORMAT\' | translate}}\n </span>\n </div>\n <!-- END SERVER URL -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" data-ng-click="next()"/>\n\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n\n </wizard>\n\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/setting/customization/view/general/general.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_GENERAL_CUSTOMIZATION\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_LOGO\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{ \'APPLICATION_FOOTER_WHITE_LABEL\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- CHANGE LOGO TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <div class="col-md-6 col-sm-6" >\n <div class="portlet light bordered" style="min-height:411px;">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-pie-chart font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_MAIN\' | translate }}</span>\n </div>\n <div class="actions">\n </div>\n </div>\n <div class="portlet-body">\n <form action="#" role="form" class="row">\n <!-- START STATUS -->\n <div class="form-group col-md-6 col-sm-6">\n <label class="control-label">{{\'APPLICATION_DEFAULT\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="settings.defaultLogo"\n data-ng-init="settings.defaultLogo = license.custom ? settings.defaultLogo : true"\n type="checkbox"\n name="defaultLogo"\n data-ng-change="update()"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <!-- END STATUS -->\n <div class="form-group col-md-6 col-sm-6" data-ng-if="!settings.defaultLogo && license.custom">\n <div class="fileinput fileinput-new" data-provides="fileinput">\n <div class="fileinput-new thumbnail">\n <img ng-src="assets/images/media/noProfileImage.png" alt=""/>\n </div>\n <div class="fileinput-preview fileinput-exists thumbnail">\n </div>\n <div>\n <span class="btn default btn-file" data-ng-show="!uploader.queue[0]">\n <span> {{ \'APPLICATION_SELECT_IMAGE\' | translate }} </span>\n <input type="file" nv-file-select="" uploader="uploader"/><br/>\n </span>\n <button type="button" class="btn default" data-ng-show="uploader.queue[0]" data-dismiss="fileinput" ng-click="uploader.queue[0].remove()">\n {{ \'APPLICATION_REMOVE\' | translate }}\n </button>\n <button type="button" class="btn green-haze" data-ng-show="uploader.queue[0]" data-ng-click="uploader.queue[0].upload()" ng-disabled="uploader.queue[0].isReady || uploader.queue[0].isUploading || uploader.queue[0].isSuccess">\n {{ \'APPLICATION_CONFIRM\' | translate }}\n </button>\n </div>\n <p>\n </br> {{ \'MESSAGE_SUPPORTED_FORMATS\' | translate }} <b>jpg, png, jpeg</b>.\n </p>\n </div>\n </div>\n </form>\n <div data-ng-show="uploader2.isHTML5" >\n <div data-ng-repeat="item in uploader.queue" nowrap style="border-top-style:none">\n <strong>{{ item.file.name }}</strong> {{ item.file.size/1024/1024|number:2 }} MB\n <button type="button" class="btn btn-danger btn-xs" data-ng-click="item.remove()">\n <span class="glyphicon glyphicon-trash"></span> Remove\n </button>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class="col-md-6 col-sm-6">\n <div class="portlet light bordered" style="min-height:411px;">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-pie-chart font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_LOGIN\' | translate }}</span>\n </div>\n <div class="actions">\n </div>\n </div>\n <div class="portlet-body">\n <form action="#" role="form" class="row">\n <!-- START STATUS -->\n <div class="form-group col-md-6 col-sm-6">\n <label class="control-label">{{\'APPLICATION_DEFAULT\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="settings.defaultLoginLogo"\n data-ng-init="settings.defaultLoginLogo = license.custom ? settings.defaultLoginLogo : true"\n type="checkbox"\n name="defaultLoginLogo"\n data-ng-change="update()"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <!-- END STATUS -->\n <div class="form-group col-md-6 col-sm-6" data-ng-if="!settings.defaultLoginLogo && license.custom">\n <div class="fileinput fileinput-new" data-provides="fileinput">\n <div class="fileinput-new thumbnail">\n <img ng-src="assets/images/media/noProfileImage.png" alt=""/>\n </div>\n <div class="fileinput-preview fileinput-exists thumbnail">\n </div>\n <div>\n <span class="btn default btn-file" data-ng-show="!uploader2.queue[0]">\n <span> {{ \'APPLICATION_SELECT_IMAGE\' | translate }} </span>\n <input type="file" nv-file-select="" uploader="uploader2"/><br/>\n </span>\n <button type="button" class="btn default" data-ng-show="uploader2.queue[0]" data-dismiss="fileinput" ng-click="uploader2.queue[0].remove()">\n {{ \'APPLICATION_REMOVE\' | translate }}\n </button>\n <button type="button" class="btn green-haze" data-ng-show="uploader2.queue[0]" data-ng-click="uploader2.queue[0].upload()" ng-disabled="uploader2.queue[0].isReady || uploader2.queue[0].isUploading || uploader2.queue[0].isSuccess">\n {{ \'APPLICATION_CONFIRM\' | translate }}\n </button>\n </div>\n <p>\n </br> {{ \'MESSAGE_SUPPORTED_FORMATS\' | translate }} <b>jpg, png, jpeg</b>.\n </p>\n </div>\n </div>\n </form>\n <div data-ng-show="uploader2.isHTML5" >\n <div data-ng-repeat="item in uploader.queue" nowrap style="border-top-style:none">\n <strong>{{ item.file.name }}</strong> {{ item.file.size/1024/1024|number:2 }} MB\n <button type="button" class="btn btn-danger btn-xs" data-ng-click="item.remove()">\n <span class="glyphicon glyphicon-trash"></span> Remove\n </button>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <!-- END CHANGE LOGO TAB -->\n <!-- CHANGE FOOTER WHITE LABEL TAB -->\n <div class="tab-pane" id="tab_1_2">\n <form name="forms.footerWhiteLabel" data-ng-submit="forms.footerWhiteLabel.$valid && update()" novalidate>\n <!-- START DEFAULT -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DEFAULT\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="settings.defaultFooterWhiteLabel"\n type="checkbox"\n name="defaultFooterWhiteLabel"\n data-ng-change="update()"\n data-ng-init="settings.defaultFooterWhiteLabel = license.custom ? settings.defaultFooterWhiteLabel : true"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <!-- END DEFAULT -->\n <!-- START LABEL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.footerWhiteLabel.footerWhiteLabel.$touched || forms.footerWhiteLabel.$submitted) && forms.footerWhiteLabel.footerWhiteLabel.$invalid}">\n <label class="control-label">{{\'APPLICATION_FOOTER_WHITE_LABEL\' | translate}}<span data-ng-if="!settings.defaultFooterWhiteLabel" class="required" aria-required="true">*</span></label>\n <textarea name="footer" placeholder="{{\'APPLICATION_FOOTER_WHITE_LABEL\' | translate}}" class="form-control" data-ng-model="settings.footerWhiteLabel" data-ng-disabled="settings.defaultFooterWhiteLabel || !license.custom" data-ng-required="!settings.defaultFooterWhiteLabel && license.custom"/></textarea>\n <span data-ng-show="(forms.footerWhiteLabel.footerWhiteLabel.$touched || forms.footerWhiteLabel.$submitted) && forms.footerWhiteLabel.footerWhiteLabel.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END LABEL -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}" data-ng-disabled="!license.custom"/>\n </form>\n </div>\n <!-- END CHANGE FOOTER WHITE LABEL TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/setting/customization/view/motionbar/motionbar.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_MOTION_BAR_CUSTOMIZATION\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_LOGO\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- CHANGE LOGO TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <div class="col-md-12 col-sm-12" >\n <div class="portlet light bordered" style="min-height:411px;">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-pie-chart font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_MAIN\' | translate }}</span>\n </div>\n <div class="actions">\n </div>\n </div>\n <div class="portlet-body">\n <form action="#" role="form" class="row">\n <!-- START STATUS -->\n <div class="form-group col-md-6 col-sm-6">\n <label class="control-label">{{\'APPLICATION_DEFAULT\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="settings.defaultMotionBarLogo"\n data-ng-init="settings.defaultMotionBarLogo = license.preferred ? settings.defaultMotionBarLogo : true"\n type="checkbox"\n name="defaultMotionBarLogo"\n data-ng-change="update()"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <!-- END STATUS -->\n <div class="form-group col-md-6 col-sm-6" data-ng-if="!settings.defaultMotionBarLogo && license.preferred">\n <div class="fileinput fileinput-new" data-provides="fileinput">\n <div class="fileinput-new thumbnail">\n <img ng-src="assets/images/media/noProfileImage.png" alt=""/>\n </div>\n <div class="fileinput-preview fileinput-exists thumbnail">\n </div>\n <div>\n <span class="btn default btn-file" data-ng-show="!uploader.queue[0]">\n <span> {{ \'APPLICATION_SELECT_IMAGE\' | translate }} </span>\n <input type="file" nv-file-select="" uploader="uploader"/><br/>\n </span>\n <button type="button" class="btn default" data-ng-show="uploader.queue[0]" data-dismiss="fileinput" ng-click="uploader.queue[0].remove()">\n {{ \'APPLICATION_REMOVE\' | translate }}\n </button>\n <button type="button" class="btn green-haze" data-ng-show="uploader.queue[0]" data-ng-click="uploader.queue[0].upload()" ng-disabled="uploader.queue[0].isReady || uploader.queue[0].isUploading || uploader.queue[0].isSuccess">\n {{ \'APPLICATION_CONFIRM\' | translate }}\n </button>\n </div>\n <p>\n </br> {{ \'MESSAGE_SUPPORTED_FORMATS\' | translate }} <b>jpg, png, jpeg</b>.\n </p>\n </div>\n </div>\n </form>\n <div data-ng-show="uploader.isHTML5" >\n <div data-ng-repeat="item in uploader.queue" nowrap style="border-top-style:none">\n <strong>{{ item.file.name }}</strong> {{ item.file.size/1024/1024|number:2 }} MB\n <button type="button" class="btn btn-danger btn-xs" data-ng-click="item.remove()">\n <span class="glyphicon glyphicon-trash"></span> Remove\n </button>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <!-- END CHANGE LOGO TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/setting/customization/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-settings"></i>\n <a href="#">{{ \'APPLICATION_SETTINGS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-globe"></i>\n <a href="#">{{ \'APPLICATION_CUSTOMIZATION\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img src="assets/images/media/customize.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{ \'APPLICATION_CUSTOMIZATION\' | translate }}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.setting.customization.view.general\')}">\n <a ng-href="/setting/customization/view/general">\n <i class="icon-picture"></i>\n {{ \'APPLICATION_GENERAL\' | translate }} </a>\n </li>\n <li data-ng-if="license.preferred" data-ng-class="{active: $state.is(\'main.setting.customization.view.motionbar\')}">\n <a ng-href="/setting/customization/view/motionbar">\n <i class="icon-screen-desktop"></i>\n {{ \'APPLICATION_MOTION_BAR\' | translate }} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/setting/general/view/main/main.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_GENERAL_SETTINGS\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body">\n <form name="forms.main" data-ng-submit="forms.main.$valid && update()" novalidate>\n <!-- START MIN INTERNAL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.main.min_internal.$touched || forms.main.$submitted) && forms.main.min_internal.$invalid}">\n <label class="control-label">{{\'APPLICATION_MIN_INTERNAL\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="1" name="min_internal" placeholder="{{\'APPLICATION_MIN_INTERNAL\' | translate}}" class="form-control" data-ng-model="settings.min_internal" required/>\n <span data-ng-show="(forms.main.min_internal.$touched || forms.main.$submitted) && forms.main.min_internal.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MIN INTERNAL -->\n\n <!-- START MIN MAILBOX -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.main.min_mailbox.$touched || forms.main.$submitted) && forms.main.min_mailbox.$invalid}">\n <label class="control-label">{{\'APPLICATION_MIN_MAILBOX\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="1" name="min_mailbox" placeholder="{{\'APPLICATION_MIN_MAILBOX\' | translate}}" class="form-control" data-ng-model="settings.min_mailbox" required/>\n <span data-ng-show="(forms.main.min_mailbox.$touched || forms.main.$submitted) && forms.main.min_mailbox.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MIN MAILBOX -->\n\n <!-- START MAIL ROUTING -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.main.mailRoutingCapacity.$touched || forms.main.$submitted) && forms.main.mailRoutingCapacity.$invalid}">\n <label class="control-label">{{\'APPLICATION_MAIL_ROUTING_BUFFER_CAPACITY\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="1" max="50" name="mailRoutingCapacity" placeholder="{{\'APPLICATION_MAIL_ROUTING_BUFFER_CAPACITY\' | translate}}" class="form-control" data-ng-model="settings.mailRoutingCapacity" required/>\n <span class="help-block">\n {{\'APPLICATION_MAIL_ROUTING_BUFFER_CAPACITY_DESC\' | translate}}\n </span>\n <span data-ng-show="(forms.main.mailRoutingCapacity.$touched || forms.main.$submitted) && forms.main.mailRoutingCapacity.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MAIL ROUTING -->\n\n <!-- START CHAT ROUTING -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.main.chatRoutingCapacity.$touched || forms.main.$submitted) && forms.main.chatRoutingCapacity.$invalid}">\n <label class="control-label">{{\'APPLICATION_CHAT_ROUTING_BUFFER_CAPACITY\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="1" max="50" name="chatRoutingCapacity" placeholder="{{\'APPLICATION_CHAT_ROUTING_BUFFER_CAPACITY\' | translate}}" class="form-control" data-ng-model="settings.chatRoutingCapacity" required/>\n <span class="help-block">\n {{\'APPLICATION_CHAT_ROUTING_BUFFER_CAPACITY_DESC\' | translate}}\n </span>\n <span data-ng-show="(forms.main.chatRoutingCapacity.$touched || forms.main.$submitted) && forms.main.chatRoutingCapacity.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CHAT ROUTING -->\n\n <!-- START AGI PORT -->\n <!-- NOTE: CUSTOM AGI PORT DEPRECATED -->\n <!-- <div class="form-group" data-ng-class="{\'has-error\': (forms.main.agi_port.$touched || forms.main.$submitted) && forms.main.agi_port.$invalid}">\n <label class="control-label">{{\'APPLICATION_AGI_PORT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="1" name="agi_port" placeholder="{{\'APPLICATION_AGI_PORT\' | translate}}" class="form-control" data-ng-model="settings.agi_port" required/>\n <span data-ng-show="(forms.main.agi_port.$touched || forms.main.$submitted) && forms.main.agi_port.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div> -->\n <!-- END AGI PORT -->\n\n <!-- START SECURE PASSWORD -->\n <div class="form-group">\n <label class="control-label">\n {{\'APPLICATION_SECURE_PASSWORD\' | translate}}\n </label><br>\n <input\n bs-switch\n data-ng-model="settings.securePassword"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </div>\n <!-- END SECURE PASSWORD -->\n\n <!-- START AUTO LOGOUT -->\n <div class="form-group">\n <label class="control-label">\n {{\'APPLICATION_AGENT_AUTO_LOGOUT\' | translate}}\n </label><br>\n <input\n bs-switch\n data-ng-model="settings.logoutOnWindowClose"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </div>\n <!-- END AUTO LOGOUT -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n </div>\n </div>\n</div>\n'), -a.put("app/setting/general/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-settings"></i>\n <a href="#">{{ \'APPLICATION_SETTINGS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-globe"></i>\n <a href="#">{{ \'APPLICATION_GENERAL\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img src="assets/images/media/customize.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{ \'APPLICATION_GENERAL\' | translate }}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.setting.general.view.main\')}">\n <a ng-href="/setting/general/view/main">\n <i class="icon-picture"></i>\n {{ \'APPLICATION_MAIN\' | translate }} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/setting/license/view/update.modal.html",'<div class="modal-header" data-ng-init="getLicense()">\n <h3 class="modal-title">{{ \'APPLICATION_UPDATE_LICENSE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <!-- START LICENSE -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_LICENSE\' | translate}}</label>\n <textarea type="text" style="min-height:95px;" name="description" placeholder="{{\'APPLICATION_LICENSE\' | translate}}" class="form-control" data-ng-model="item.license"></textarea>\n </div>\n <!-- END LICENSE -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="update()" ng-disabled="form.$invalid">{{ \'APPLICATION_UPDATE\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/setting/license/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-settings"></i>\n <a href="#">{{ \'APPLICATION_SETTINGS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-info"></i>\n <a href="#">{{ \'APPLICATION_LICENSE\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE CONTENT -->\n <div class="profile-content">\n <div class="row" data-ng-if="item.expirationTime > -1 && !item.demo">\n <div class="col-md-12">\n <div class="note note-warning">\n <h4 class="block"><strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_YOUR_LICENSE_WILL_EXPIRE\' | translate}} <strong>{{license.expirationTime}}</strong> {{\'MESSAGE_DAYS\' | translate}}.</h4>\n <p data-ng-if="item.token !== item.token2">\n {{\'MESSAGE_SEND_EMAIL_TO\' | translate}} <a href="mailto:license@xcally.com?subject=New%20token%20detected&body=Hi xCALLY, my new token is: {{license.token2}}. Old token: {{license.token}}">license@xcally.com</a>.\n </p>\n <p data-ng-if="item.token !== item.token2">\n {{\'APPLICATION_OLD\' | translate | uppercase}} Token: <strong>{{license.token}}</strong>\n </p>\n <p data-ng-if="item.token !== item.token2">\n {{\'APPLICATION_NEW\' | translate | uppercase}} Token: <strong>{{license.token2}}</strong>\n </p>\n </div>\n </div>\n </div>\n <div class="row">\n <div class="col-md-6">\n <div class="pricing hover-effect">\n <div class="pricing-head">\n <h3 data-ng-switch="license.months">\n <div ng-switch-when="1">{{\'APPLICATION_MONTH_TO_MONTH\' | translate}}</div>\n <div ng-switch-when="12">{{\'APPLICATION_YEARLY\' | translate}}</div>\n <div ng-switch-when="36">{{\'APPLICATION_PERPETUAL\' | translate}}</div>\n <div ng-switch-default>{{\'APPLICATION_UNKNOWN\' | translate}}</div>\n <div class="h5" data-ng-if="item.token === item.token2">{{license.token || \'unknown\'}} </div><div class="h5" data-ng-if="item.token !== item.token2"><div><b>{{\'APPLICATION_OLD_UID\' | translate}}:</b> {{license.token || \'unknown\'}}</div><div><b>{{\'APPLICATION_NEW_UID\' | translate}}:</b> {{license.token2 || \'unknown\'}}</div> </div>\n </h3>\n <h4><i>{{license.expiration ? (license.expiration | date:\'medium\') : \'DEMO\'}}</i>\n <span data-ng-show="license.expiration">Expiration Date </span>\n </h4>\n </div>\n <ul class="pricing-content list-unstyled">\n <li class="row">\n <div class="col-md-9">\n <i class="icon-eye"></i> {{\'APPLICATION_USERS\' | translate}}:\n </div>\n <div class="col-md-3 text-center">\n {{(license.users || license.users >= 0) ? license.users : \'unknown\'}}\n </div>\n </li>\n <li class="row">\n <div class="col-md-9">\n <i class="icon-people"></i> {{\'APPLICATION_AGENTS\' | translate}} ({{\'APPLICATION_CONCURRENTS\' | translate}}):\n </div>\n <div class="col-md-3 text-center">\n {{(license.agents || license.agents >= 0) ? license.agents : \'unknown\'}}\n </div>\n </li>\n <li class="row">\n <div class="col-md-9">\n <i class="icon-phone"></i> {{\'APPLICATION_TELEPHONES\' | translate}}:\n </div>\n <div class="col-md-3 text-center">\n {{(license.telephones || license.telephones >= 0) ? license.telephones : \'unknown\'}}\n </div>\n </li>\n <li class="row">\n <div class="col-md-9">\n <i class="icon-bubble"></i> {{\'APPLICATION_CHAT\' | translate}}:\n </div>\n <div class="col-md-3 text-center">\n <span class="label label-sm" data-ng-class="license.chat ? \'label-success\' : \'label-danger\'">{{license.chat ? \'APPLICATION_ENABLED\' : \'APPLICATION_DISABLED\' | translate}}</span>\n </div>\n </li>\n <li class="row">\n <div class="col-md-9">\n <i class="icon-envelope"></i> {{\'APPLICATION_MAIL\' | translate}}:\n </div>\n <div class="col-md-3 text-center">\n <span class="label label-sm" data-ng-class="license.mail ? \'label-success\' : \'label-danger\'">{{license.mail ? \'APPLICATION_ENABLED\' : \'APPLICATION_DISABLED\' | translate}}</span>\n </div>\n </li>\n <li class="row">\n <div class="col-md-9">\n <i class="fa fa-fax"></i> {{\'APPLICATION_FAX\' | translate}}:\n </div>\n <div class="col-md-3 text-center">\n <span class="label label-sm" data-ng-class="license.fax ? \'label-success\' : \'label-danger\'">{{license.fax ? \'APPLICATION_ENABLED\' : \'APPLICATION_DISABLED\' | translate}}</span>\n </div>\n </li>\n <li class="row">\n <div class="col-md-9">\n <i class="glyphicon glyphicon-comment"></i> {{\'APPLICATION_SMS\' | translate}}:\n </div>\n <div class="col-md-3 text-center">\n <span class="label label-sm" data-ng-class="license.messaging ? \'label-success\' : \'label-danger\'">{{license.messaging ? \'APPLICATION_ENABLED\' : \'APPLICATION_DISABLED\' | translate}}</span>\n </div>\n </li>\n <li class="row">\n <div class="col-md-9">\n <i class="icon-globe"></i> {{\'APPLICATION_OPEN_CHANNEL\' | translate}}:\n </div>\n <div class="col-md-3 text-center">\n <span class="label label-sm" data-ng-class="license.openchannel ? \'label-success\' : \'label-danger\'">{{license.openchannel ? \'APPLICATION_ENABLED\' : \'APPLICATION_DISABLED\' | translate}}</span>\n </div>\n </li>\n <li class="row">\n <div class="col-md-9">\n <i class="icon-notebook"></i> {{\'APPLICATION_CONTACT_MANAGER\' | translate}}:\n </div>\n <div class="col-md-3 text-center">\n <span class="label label-sm" data-ng-class="license.cm ? \'label-success\' : \'label-danger\'">{{license.cm ? \'APPLICATION_ENABLED\' : \'APPLICATION_DISABLED\' | translate}}</span>\n </div>\n </li>\n <li class="row">\n <div class="col-md-9">\n <i class="icon-control-forward"></i> {{\'APPLICATION_MOTION_DIALER\' | translate}}:\n </div>\n <div class="col-md-3 text-center">\n <span class="label label-sm" data-ng-class="license.dialer ? \'label-success\' : \'label-danger\'">{{license.dialer ? \'APPLICATION_ENABLED\' : \'APPLICATION_DISABLED\' | translate}}</span>\n </div>\n </li>\n <li class="row">\n <div class="col-md-9">\n <i class="fa fa-edit"></i> {{\'APPLICATION_JSCRIPTY\' | translate}}:\n </div>\n <div class="col-md-3 text-center">\n <span class="label label-sm" data-ng-class="license.jscripty ? \'label-success\' : \'label-danger\'">{{license.jscripty ? \'APPLICATION_ENABLED\' : \'APPLICATION_DISABLED\' | translate}}</span>\n </div>\n </li>\n <li class="row">\n <div class="col-md-9">\n <i class="icon-equalizer"></i> {{\'APPLICATION_CUSTOMIZATION\' | translate}}:\n </div>\n <div class="col-md-3 text-center">\n <span class="label label-sm" data-ng-class="license.custom ? \'label-success\' : \'label-danger\'">{{license.custom ? \'APPLICATION_ENABLED\' : \'APPLICATION_DISABLED\' | translate}}</span>\n </div>\n </li>\n <li class="row">\n <div class="col-md-9">\n <i class="icon-cloud-download"></i> {{\'APPLICATION_UPDATE\' | translate}}:\n </div>\n <div class="col-md-3 text-center">\n <span class="label label-sm" data-ng-class="license.update ? \'label-success\' : \'label-danger\'">{{license.update ? \'APPLICATION_ENABLED\' : \'APPLICATION_DISABLED\' | translate}}</span>\n </div>\n </li>\n </ul>\n <div class="pricing-footer">\n <p>\n {{license.description}}\n </p>\n <a href="https://www.xcallymotion.com/prices" target="_blank" class="btn yellow-crusta">\n {{\'APPLICATION_PRICES\' | translate}} <i class="m-icon-swapright m-icon-white"></i>\n </a>\n <a href="#" class="btn purple-plum" data-ng-click="updateLicense()">\n {{\'APPLICATION_UPDATE\' | translate}} <i class="icon-refresh m-icon-white"></i>\n </a>\n </div>\n </div>\n </div>\n <div class="col-md-6">\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-info font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_LICENSE_REQUEST\' | translate }}</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <form name="form" novalidate data-ng-submit="form.$valid && submitRequest()">\n\n <!-- START USERS -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.users.$touched || form.$submitted) && form.users.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <div class="input-icon">\n <i class="icon-eye"></i>\n <input type="number" name="users" placeholder="{{\'APPLICATION_USERS\' | translate}}" class="form-control" data-ng-model="item.users" min="0" required>\n </div>\n <span data-ng-show="(form.users.$touched || form.$submitted) && form.users.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERS -->\n\n <!-- START AGENTS -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.agents.$touched || form.$submitted) && form.agents.$invalid}">\n <label class="control-label">{{\'APPLICATION_AGENTS\' | translate}} ({{\'APPLICATION_CONCURRENTS\' | translate}})<span class="required" aria-required="true">*</span></label>\n <div class="input-icon">\n <i class="icon-people"></i>\n <input type="number" name="agents" placeholder="{{\'APPLICATION_AGENTS\' | translate}} ({{\'APPLICATION_CONCURRENTS\' | translate}})" class="form-control" data-ng-model="item.agents" min="0" required>\n </div>\n <span data-ng-show="(form.users.$touched || form.$submitted) && form.users.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END AGENTS -->\n\n <!-- START TELEPHONES -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.telephones.$touched || form.$submitted) && form.telephones.$invalid}">\n <label class="control-label">{{\'APPLICATION_TELEPHONES\' | translate}}<span class="required" aria-required="true">*</span></label>\n <div class="input-icon">\n <i class="icon-phone"></i>\n <input type="number" name="telephones" placeholder="{{\'APPLICATION_TELEPHONES\' | translate}}" class="form-control" data-ng-model="item.telephones" min="0" required>\n </div>\n <span data-ng-show="(form.telephones.$touched || form.$submitted) && form.telephones.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TELEPHONES -->\n\n <!-- START PLAN -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.plan.$touched || form.$submitted) && form.plan.$invalid}">\n <label class="control-label">{{\'APPLICATION_PLAN\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.months" name="plan" theme="bootstrap" on-select="updateRequestExpiration()" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="plan.value as plan in plans | filter: $select.search">\n <div ng-bind-html="plan.name | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form.plan.$touched || form.$submitted) && form.plan.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PLAN -->\n\n <!-- START EMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.email.$touched || form.$submitted) && form.email.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}<span class="required" aria-required="true">*</span></label>\n <div class="input-icon">\n <i class="icon-envelope"></i>\n <input type="email" name="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" class="form-control" data-ng-model="item.email" min="0" required>\n </div>\n <span data-ng-show="(form.email.$touched || form.$submitted) && form.email.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END EMAIL -->\n\n <!-- START NOTES -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.notes.$touched || form.$submitted) && form.notes.$invalid}">\n <label class="control-label">{{\'APPLICATION_NOTES\' | translate}}</label>\n <div class="input-icon">\n <i class="icon-note"></i>\n <textarea name="notes" placeholder="{{\'APPLICATION_NOTES\' | translate}}" class="form-control" data-ng-model="item.notes" min="0"></textarea>\n </div>\n <span data-ng-show="(form.notes.$touched || form.$submitted) && form.notes.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NOTES -->\n\n <div class="row">\n <div class="form-group col-md-4 col-xs-6">\n <label class="control-label">{{\'APPLICATION_CHAT\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="item.chat"\n type="checkbox"\n name="chat"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <div class="form-group col-md-4 col-xs-6">\n <label class="control-label">{{\'APPLICATION_MAIL\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="item.mail"\n type="checkbox"\n name="mail"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <div class="form-group col-md-4 col-xs-6">\n <label class="control-label">{{\'APPLICATION_FAX\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="item.fax"\n type="checkbox"\n name="fax"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <div class="form-group col-md-4 col-xs-6">\n <label class="control-label">{{\'APPLICATION_SMS\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="item.messaging"\n type="checkbox"\n name="messaging"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <div class="form-group col-md-4 col-xs-6">\n <label class="control-label">{{\'APPLICATION_OPEN_CHANNEL\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="item.openchannel"\n type="checkbox"\n name="openchannel"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <div class="form-group col-md-4 col-xs-6">\n <label class="control-label">{{\'APPLICATION_CONTACT_MANAGER\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="item.cm"\n type="checkbox"\n name="cm"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <div class="form-group col-md-4 col-xs-6">\n <label class="control-label">{{\'APPLICATION_MOTION_DIALER\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="item.dialer"\n type="checkbox"\n name="dialer"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <div class="form-group col-md-4 col-xs-6">\n <label class="control-label">{{\'APPLICATION_JSCRIPTY\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="item.jscripty"\n type="checkbox"\n name="jscripty"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <div class="form-group col-md-4 col-xs-6">\n <label class="control-label">{{\'APPLICATION_CUSTOMIZATION\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="item.custom"\n type="checkbox"\n name="custom"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <div class="form-group col-md-4 col-xs-6">\n <label class="control-label">{{\'APPLICATION_UPDATE\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="item.update"\n type="checkbox"\n name="update"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n </div>\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_SUBMIT\' | translate}} {{\'APPLICATION_REQUEST\' | translate}}"/>\n </form>\n </div>\n </div>\n </div>\n </div>\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/setting/network/view/externip/externip.create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{title}}</h3>\n</div>\n<div class="modal-body" data-ng-init="initModal()">\n <form name="form" novalidate>\n\n <!-- START ADDRESS -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.address.$touched || form.$submitted) && form.address.$invalid}">\n <label class="control-label">{{\'APPLICATION_ADDRESS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="address" placeholder="{{\'APPLICATION_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.value" required data-ng-pattern="/^(25[0-5]|2[0-4][0-9]|1?[0-9]{1,2})(.(25[0-5]|2[0-4][0-9]|1?[0-9]{1,2})){3}$/"/>\n <span data-ng-show="(form.address.$touched || form.$submitted) && form.address.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(form.address.$touched || form.$submitted) && form.address.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END ADDRESS -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'), -a.put("app/setting/network/view/externip/externip.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-globe font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_EXTERNIP\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="#" data-toggle="dropdown" data-ng-click="createItem()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_EXTERNIP\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/setting/network/view/localnet/localnet.create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{title}}</h3>\n</div>\n<div class="modal-body" data-ng-init="initModal()">\n <form name="form" novalidate>\n\n <!-- START ADDRESS -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.address.$touched || form.$submitted) && form.address.$invalid}">\n <label class="control-label">{{\'APPLICATION_ADDRESS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="address" placeholder="{{\'APPLICATION_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.address" required data-ng-pattern="/^(25[0-5]|2[0-4][0-9]|1?[0-9]{1,2})(.(25[0-5]|2[0-4][0-9]|1?[0-9]{1,2})){3}$/"/>\n <span data-ng-show="(form.address.$touched || form.$submitted) && form.address.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(form.address.$touched || form.$submitted) && form.address.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END ADDRESS -->\n\n <!-- START MASK -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.mask.$touched || form.$submitted) && form.mask.$invalid}">\n <label class="control-label">{{\'APPLICATION_MASK\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="mask" placeholder="{{\'APPLICATION_MASK\' | translate}}" class="form-control" data-ng-model="item.mask" required data-ng-pattern="/^(25[0-5]|2[0-4][0-9]|1?[0-9]{1,2})(.(25[0-5]|2[0-4][0-9]|1?[0-9]{1,2})){3}$/"/>\n <span data-ng-show="(form.mask.$touched || form.$submitted) && form.mask.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(form.mask.$touched || form.$submitted) && form.mask.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END MASK -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/setting/network/view/localnet/localnet.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-desktop font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_LOCALNET\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="#" data-toggle="dropdown" data-ng-click="createItem()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_LOCALNET\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/setting/network/view/stunaddr/stunaddr.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-desktop font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_STUNADDR\' | translate }}</a> </span>\n </div>\n <div class="actions">\n </div>\n </div>\n <div class="portlet-body">\n <form name="form" data-ng-submit="form.$valid && update()" novalidate>\n\n <!-- START ADDRESS -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.address.$touched || form.$submitted) && form.address.$invalid}">\n <label class="control-label">{{\'APPLICATION_ADDRESS\' | translate}}</label>\n <input type="text" name="stunaddr" placeholder="{{\'APPLICATION_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.stunaddr"/>\n <span class="help-block">\n {{\'DESCRIPTION_STUNADDR\' | translate}}\n </span>\n </div>\n <!-- END ADDRESS -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/setting/network/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-settings"></i>\n <a href="#">{{ \'APPLICATION_SETTINGS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-globe"></i>\n <a href="#">{{ \'APPLICATION_NETWORK\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img src="assets/images/media/business.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{ \'APPLICATION_NETWORK\' | translate }}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.setting.network.view.localnet\')}">\n <a ng-href="/setting/network/view/localnet">\n <i class="icon-screen-desktop"></i>\n {{ \'APPLICATION_LOCALNET\' | translate }} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.setting.network.view.externip\')}">\n <a ng-href="/setting/network/view/externip">\n <i class="icon-globe"></i>\n {{ \'APPLICATION_EXTERNIP\' | translate }} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.setting.network.view.stunaddr\')}">\n <a ng-href="/setting/network/view/stunaddr">\n <i class="icon-fire"></i>\n {{ \'APPLICATION_STUNADDR\' | translate }} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/setting/smtp/view/view.html",'<div class="row" data-ng-init="initView();">\n <div class="col-md-12">\n\n <form name="forms.info" data-ng-submit="forms.info.$valid && updateItem()" novalidate>\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_ACCOUNT\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body">\n <!-- GENERAL TAB -->\n\n <div class="note note-danger" data-ng-show="item.account.MailServerOut.state === \'DISCONNECTED\' || item.account.MailServerOut.state === \'ERROR\'">\n <p> ERROR </p>\n <json-formatter open="1" json="item.account.MailServerOut.source"></json-formatter>\n </div>\n\n <div class="note note-success" data-ng-show="item.account.MailServerOut.state === \'CONNECTED\'">\n <p> CONNECTED </p>\n </div>\n\n <div class="note note-info" data-ng-show="item.account.MailServerOut.state === \'CONNECTING\'">\n <p> TRYING... </p>\n </div>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.account.name" required/>\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid && forms.info.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START ADDRESS -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.address.$touched || forms.info.$submitted) && forms.info.address.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL_ADDRESS\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="address" placeholder="{{\'APPLICATION_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.account.address" required/>\n <span data-ng-show="(forms.info.address.$touched || forms.info.$submitted) && forms.info.address.$invalid && forms.info.address.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END ADDRESS -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.account.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START SERVICE -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_SERVICE\' | translate}}</label><br>\n <input\n bs-switch\n data-ng-model="item.account.service"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </div>\n <!-- END SERVICE -->\n <!-- END GENERAL TAB -->\n </div>\n </div>\n\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">SMTP</span>\n </div>\n </div>\n <div class="portlet-body">\n <!-- SMTP TAB -->\n <!-- START HOST -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.host.$touched || forms.info.$submitted) && forms.info.host.$invalid}">\n <label class="control-label">{{\'APPLICATION_HOST\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="host" placeholder="{{\'APPLICATION_HOST\' | translate}}" class="form-control" data-ng-model="item.account.MailServerOut.host" required/>\n <span data-ng-show="(forms.info.host.$touched || forms.info.$submitted) && forms.info.host.$invalid && forms.info.host.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END HOST -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.username.$touched || forms.info.$submitted) && forms.info.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="item.account.MailServerOut.username" required/>\n <span data-ng-show="(forms.info.username.$touched || forms.info.$submitted) && forms.info.username.$invalid && forms.info.username.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.account.MailServerOut.password" required/>\n <span data-ng-show="(forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$invalid && forms.info.password.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START PORT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.port.$touched || forms.info.$submitted) && forms.info.port.$invalid}">\n <label class="control-label">{{\'APPLICATION_PORT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" name="port" placeholder="{{\'APPLICATION_PORT\' | translate}}" class="form-control" data-ng-model="item.account.MailServerOut.port" required/>\n <span data-ng-show="(forms.info.form.$touched || forms.info.$submitted) && forms.info.port.$invalid && forms.info.port.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.form.$touched || forms.info.$submitted) && forms.info.port.$invalid && forms.info.port.$error.number" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PORT -->\n\n <!-- START SSL -->\n <div class="form-group">\n <label class="control-label">SSL</label><br>\n <input\n bs-switch\n data-ng-model="item.account.MailServerOut.ssl"\n type="checkbox"\n switch-active="{{ isActive }}"\n switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n switch-on-color="{{ onColor }}"\n switch-off-color="{{ offColor }}"\n switch-animate="{{ animate }}"\n switch-size="{{ size }}"\n switch-label="{{ label }}"\n switch-icon="{{ icon }}"\n switch-radio-off="{{ radioOff }}"\n switch-label-width="{{ labelWidth }}"\n switch-handle-width="{{ handleWidth }}">\n </div>\n <!-- END SSL -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n <input class="btn blue-madison" type="button" value="Test" data-ng-click="test()" data-ng-if="item.account.id"/>\n <input class="btn red" type="button" value="{{\'APPLICATION_DELETE\' | translate}}" data-ng-if="item.account.id" data-ng-click="delete(\'Service SMTP\',item.account.id);"/>\n\n <!-- END SMTP TAB -->\n </div>\n </div>\n </form>\n\n </div>\n</div>\n'),a.put("app/setting/system/view/console/console.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initView()" data-ng-click="cmdFocus()">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_ASTERISK_CONSOLE\' | translate}}\n <button class="btn btn-default" href="#" data-ng-click="output = \'\';cmdFocus();">\n <i class="icon-ban"></i>\n </button></span>\n </div>\n </div>\n <div class="portlet-body">\n <span us-spinner spinner-key="console-spinner" spinner-start-active="true"></span>\n <div class="well" style="height:400px;overflow-y:scroll;" schroll-bottom="output" data-ng-bind-html="output"></div>\n <form name="forms.console" data-ng-submit="forms.console.$valid && sendCmd() && !busy" novalidate>\n <!-- START COMMAND -->\n <div class="form-group">\n <input type="text" name="command" id="command" placeholder="{{\'APPLICATION_INSERT_COMMAND\' | translate}}" class="form-control" data-ng-model="item.command" data-ng-disabled="busy" autocomplete="off" data-ng-keyup="keyUp($event)"/>\n </div>\n <span class="help-block">\n {{ \'DESCRIPTION_ENTER_TO_COMMAND\' | translate }}\n </span>\n <button type="submit" class="hide"></button>\n <!-- END COMMAND -->\n </form>\n </div>\n </div>\n</div>\n'),a.put("app/setting/system/view/general/general.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="row ">\n <div class="col-md-6 col-sm-6">\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-pie-chart font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_MEMORY\' | translate }} (<b>{{ \'APPLICATION_TOTAL\' | translate }}</b>: {{system.memory.Total}} MB)</a> </span>\n </div>\n <div class="actions">\n <a class="btn btn-default" href="#" data-ng-click="initView()" data-ng-disabled="loading">\n <i class="icon-refresh"></i>\n </a>\n </div>\n </div>\n <div class="portlet-body">\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="memory-spinner" spinner-start-active="true"></span>\n <!-- END UI-GRID SPINNER -->\n <canvas class="chart chart-pie" chart-data="system.memory.values" chart-labels="system.memory.labels" chart-legend="true">\n </canvas>\n </div>\n </div>\n </div>\n <div class="col-md-6 col-sm-6">\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-pie-chart font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_DISK\' | translate }} (<b>{{ \'APPLICATION_TOTAL\' | translate }}</b>: {{system.mount.size}} GB)</a> </span>\n </div>\n <div class="actions">\n <div class="portlet-input input-inline input-medium">\n <div class="input-group">\n <ui-select data-ng-model="system.mount" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_DISK\' | translate}}">{{$select.selected.mount}}</ui-select-match>\n <ui-select-choices repeat="disk in system.disks | filter: $select.search">\n <div ng-bind-html="disk.mount | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="input-group-btn">\n <button class="btn btn-default" href="#" data-ng-click="initView()" data-ng-disabled="loading">\n <i class="icon-refresh"></i>\n </button>\n </span>\n </div>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="disk-spinner" spinner-start-active="true"></span>\n <!-- END UI-GRID SPINNER -->\n <canvas class="chart chart-pie" chart-data="system.mount.values" chart-labels="system.mount.labels" chart-legend="true">\n </canvas>\n <!-- END Portlet PORTLET-->\n </div>\n </div>\n </div>\n </div>\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-pie-chart font-green-sharp"></i>\n <span class="caption-subject">CPU (<b>{{ \'APPLICATION_NUMBER_OF_CORES\' | translate }}</b>: {{system.cpu.cores.length}}, <b>MOTION</b>: {{system.cpu.motion}} % )</a> </span>\n </div>\n <div class="actions">\n <a class="btn btn-default" href="#" data-ng-click="initView()" data-ng-disabled="loading">\n <i class="icon-refresh"></i>\n </a>\n </div>\n </div>\n <div class="portlet-body">\n <div class="row">\n <div class="col-md-2 col-sm-4" data-ng-repeat="cpu in system.cpu.cores">\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="cpu-spinner" spinner-start-active="false"></span>\n <!-- END UI-GRID SPINNER -->\n <canvas class="chart chart-doughnut" chart-data="cpu.values" chart-labels="cpu.labels" chart-colours="cpu.colours" chart-legend="true">\n </canvas>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/setting/system/view/logs/logs.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getLog()">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_LOGS\' | translate}}\n </div>\n <div class="actions">\n <div class="portlet-input input-inline input-medium">\n <div class="input-group">\n <ui-select data-ng-model="item.filename" theme="bootstrap" on-select="getLog()" required>\n <ui-select-match placeholder="{{\'APPLICATION_FILENAME\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices position=\'down\' repeat="logfile in logfiles | filter: $select.search">\n <div ng-bind-html="logfile | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="input-group-btn">\n <button class="btn btn-default" href="#" data-ng-click="getLog()" data-ng-disabled="loading">\n <i class="icon-refresh"></i>\n </button>\n </span>\n </div>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <pre class="log-pre" schroll-bottom="log">\n <!-- BEGIN LOGS SPINNER -->\n <span us-spinner spinner-key="logs-spinner" spinner-start-active="true"></span>\n <!-- END LOGS SPINNER -->\n {{log}}\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/setting/system/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-settings"></i>\n <a href="#">{{ \'APPLICATION_SETTINGS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-pie-chart"></i>\n <a href="#">{{ \'APPLICATION_SYSTEM\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img src="assets/images/media/customize.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{ \'APPLICATION_SYSTEM\' | translate }}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.setting.system.view.general\')}">\n <a ng-href="/setting/system/view/general">\n <i class="icon-pie-chart"></i>\n {{ \'APPLICATION_GENERAL\' | translate }} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.setting.system.view.logs\')}">\n <a ng-href="/setting/system/view/logs">\n <i class="icon-list"></i>\n {{ \'APPLICATION_LOGS\' | translate }} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.setting.system.view.console\')}">\n <a ng-href="/setting/system/view/console">\n <i class="icon-chemistry"></i>\n {{ \'APPLICATION_ASTERISK_CONSOLE\' | translate }} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/setting/update/list/landing.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-settings"></i>\n <a href="#">{{ \'APPLICATION_SETTINGS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-cloud-download"></i>\n <a href="#">{{ \'APPLICATION_UPDATES\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- BEGIN PAGE CONTENT-->\n <div class="row" data-ng-init="initCounter()">\n <div class="col-md-12 page-500">\n <div class="number">\n <timer interval="1000" countdown="360">{{countdown}}</timer>\n </div>\n <div class="details">\n <h3>Wait! xCALLY Motion update in progess...</h3>\n <p>\n We are updating it!<br/>\n xCALLY Motion Team<br/><br/>\n </p>\n </div>\n </div>\n </div>\n <!-- END PAGE CONTENT-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/setting/update/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-settings"></i>\n <a href="#">{{ \'APPLICATION_SETTINGS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-cloud-download"></i>\n <a href="#">{{ \'APPLICATION_UPDATES\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <!-- <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-cloud-download font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_UPDATES\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <a class="btn btn-default" href="#" data-ng-click="pull()">\n <i class="icon-cloud-download"></i> {{ \'APPLICATION_UPDATE\' | translate }}\n </a>\n </div>\n </div>\n <div class="portlet-body" data-ng-init="initView()"> -->\n <!-- START TABLE -->\n <!-- <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div> -->\n <!-- END TABLE -->\n <!-- </div> -->\n <!-- END Portlet PORTLET-->\n <!-- </div> -->\n <div class="row">\n <div class="col-md-12">\n <!-- BEGIN INLINE NOTIFICATIONS PORTLET-->\n <div class="portlet">\n <div class="portlet-title">\n <div class="caption">\n <i class="icon-cloud-download font-green-sharp"></i>{{ \'APPLICATION_UPDATE\' | translate }}\n </div>\n <div class="actions">\n <button class="btn btn-default" href="#" data-ng-click="pull()">\n <i class="icon-cloud-download"></i> {{ \'APPLICATION_UPDATE\' | translate }}\n </button>\n </div>\n </div>\n <div class="portlet-body" data-ng-init="initView()">\n <div class="row margin-bottom-40">\n <!-- Pricing -->\n <div class="col-md-6">\n <div class="pricing hover-effect current-version">\n <div class="pricing-head">\n <h3>{{ \'APPLICATION_CURRENT_VERSION\' | translate }} <span>\n {{ \'APPLICATION_LAST_PERFORMED_UPDATE\' | translate }} </span>\n </h3>\n <h4>v. {{currentVersion.version}}</h4>\n </div>\n <ul class="pricing-content list-unstyled">\n <li>\n <i class="icon-clock"></i><b> {{\'APPLICATION_RELEASED_AT\' | translate}}:</b> {{currentVersion.createdAt}}\n </li>\n <li>\n <i class="icon-list"></i> <a target="_blank" href="https://wiki.xcallymotion.com/display/XMD/Motion+GUI#MotionGUI-Version{{currentVersion.version}}">{{\'APPLICATION_CHANGELOG\' | translate}}</a>\n </li>\n </ul>\n <div class="pricing-footer">\n </div>\n </div>\n </div>\n <div class="col-md-6">\n <div class="pricing hover-effect" data-ng-class="{\'disabled-update\':currentVersion.version==latestVersion.version}">\n <div class="pricing-head">\n <h3>{{ \'APPLICATION_LATEST_VERSION\' | translate }} <span>\n {{ \'APPLICATION_LAST_SOFTWARE_UPDATE_AVAILABLE\' | translate }} </span>\n </h3>\n <h4>v. {{latestVersion.version}}</h4>\n </div>\n <ul class="pricing-content list-unstyled">\n <li>\n <i class="icon-clock"></i><b> {{\'APPLICATION_RELEASED_AT\' | translate}}:</b> {{latestVersion.createdAt}}\n </li>\n <li>\n <i class="icon-list"></i> <a target="_blank" href="https://wiki.xcallymotion.com/display/XMD/Motion+GUI#MotionGUI-Version{{latestVersion.version}}">{{\'APPLICATION_CHANGELOG\' | translate}}</a>\n </li>\n </ul>\n <div class="pricing-footer">\n </div>\n </div>\n </div>\n <!--//End Pricing -->\n </div>\n </div>\n </div>\n <!-- END INLINE NOTIFICATIONS PORTLET-->\n </div>\n </div>\n\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'), -a.put("app/setting/update/list/list.pull.html",'<div class="modal-header">\n <button data-ng-if="modal.dismissable" type="button" data-ng-click="$dismiss()" class="close">×</button>\n <h4 ng-if="modal.title" ng-bind="modal.title" class="modal-title"></h4>\n</div>\n<div class="modal-body">\n <p data-ng-if="modal.text" data-ng-bind="modal.text"></p>\n <div data-ng-if="modal.html" data-ng-bind-html="modal.html"></div>\n</div>\n<div class="modal-footer">\n <button data-ng-repeat="button in modal.buttons" data-ng-class="button.classes" data-ng-click="button.click($event)" data-ng-bind="button.text" class="btn"></button>\n</div>\n'),a.put("app/square/odbc/list/list.create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_ODBC\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DSN -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.dsn.$touched || form.$submitted) && form.dsn.$invalid}">\n <label class="control-label">{{\'APPLICATION_ODBC\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="dsn" placeholder="DRIVER=MySQL;SERVER=127.0.0.1;UID=xcall;PWD=password;DATABASE=motion" class="form-control" data-ng-model="item.dsn" required/>\n <p class="help-block">Es. DRIVER=MySQL;SERVER=127.0.0.1;UID=xcall;PWD=password;DATABASE=motion</p>\n <span data-ng-show="(form.dsn.$touched || form.$submitted) && form.dsn.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END DSN -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/square/odbc/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-superscript"></i>\n <a>Cally ²</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="#">{{ \'APPLICATION_ODBCS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ODBCS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <button class="btn green-jungle " ng-click="createItem()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_ODBC\' | translate }}\n </button>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/square/odbc/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getOdbc()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-superscript"></i>\n <a>Cally ²</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="/square/odbc/list">{{ \'APPLICATION_ODBCS\' | translate }}</a>\n <i data-ng-show="odbc" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="odbc">\n <a href="#">{{odbc.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/odbc.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{odbc.name}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.square.odbc.view.settings\')}">\n <a data-ng-href="/square/odbc/view/{{odbc.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/square/odbc/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_ODBC\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateOdbc()" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="odbc.name" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DSN -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.odbc.dsn.$touched || forms.odbc.$submitted) && forms.odbc.dsn.$invalid}">\n <label class="control-label">{{\'APPLICATION_ODBC\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="dsn" placeholder="{{\'APPLICATION_DSN\' | translate}}" class="form-control" data-ng-model="odbc.dsn" required/>\n <p class="help-block">Es. DRIVER=MySQL;SERVER=127.0.0.1;UID=xcall;PWD=password;DATABASE=motion</p>\n <span data-ng-show="(forms.odbc.dsn.$touched || forms.odbc.$submitted) && forms.odbc.dsn.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END DSN -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="odbc.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ADVANCED TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/square/project/list/list.create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_PROJECT\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/square/project/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-superscript"></i>\n <a>Cally ²</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-slack"></i>\n <a href="#">{{ \'APPLICATION_PROJECTS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_PROJECTS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <button class="btn green-jungle " ng-click="createItem()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_PROJECT\' | translate }}\n </button>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/square/project/view/projectNotes.modal.html",'<div class="yellow-notes">\n<div class="modal-header">\n <button ng-if="modal.dismissable" type="button" ng-click="$dismiss()" class="close">×</button>\n <h4 class="modal-title">{{\'APPLICATION_NOTES\' | translate}}</h4>\n</div>\n<div class="modal-body" style="text-align:center;">\n<textarea name="name" class="notes-textarea" placeholder="{{\'MESSAGE_INSERT_YOUR_TEXT_HERE\' | translate}}" data-ng-model="notes.value"></textarea>\n</div>\n<div class="modal-footer" >\n <button class="btn green-haze" type="button" ng-click="close()">{{ \'APPLICATION_SAVE\' | translate }}</button>\n</div>\n</div>\n'),a.put("app/square/project/view/view.html",'<div class="row" data-ng-init="getProject()">\n <div class="col-md-12">\n <div class="page-bar" style="margin-bottom: 0px;">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-superscript"></i>\n <a>Cally ²</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-slack"></i>\n <a href="/square/projects/list">{{ \'APPLICATION_PROJECTS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <a ng-href="/square/projects/view/{{squareProject.id}}">{{squareProject.name}}</a>\n </li>\n </ul>\n </div>\n\n <h4 class="text-success bold"> {{squareProject.name}} <button class="btn btn-xs yellow-saffron" type="button" data-ng-click="editNotes()"><i class="icon-note"></i> {{\'APPLICATION_NOTES\' | translate}}</button></h4> <p class="text-muted"> {{squareProject.description}} </p>\n\n <div id="geEditor" class="geEditor"></div>\n </div>\n</div>\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n\n </div>\n</div>\n\n<!-- END PAGE CONTENT-->\n<script></script>\n'),a.put("app/square/realtime/view/general/general.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="init()">\n <div class="col-md-12">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns class="ui-grid" ui-grid-pagination ui-grid-auto-resize>\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/square/realtime/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-superscript"></i>\n <a href="#">Cally ²</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-energy"></i>\n <a href="/square/realtime/view/general">{{ \'APPLICATION_REALTIME\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <div>\n <nav class="navbar navbar-default" role="navigation">\n <div class="collapse navbar-collapse">\n <ul class="nav navbar-nav">\n <li data-ng-class="{\'active\': $state.is(\'main.square.realtime.view.general\')}">\n <a href="/square/realtime/view/general">\n {{\'APPLICATION_GENERAL\' | translate}}\n </a>\n </li>\n </ul>\n </div>\n </nav>\n </div>\n <div ui-view></div>\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/square/recording/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-superscript"></i>\n <a href="#">Cally ²</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-microphone"></i>\n <a href="#">{{ \'APPLICATION_RECORDINGS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="fa fa-play font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_RECORDINGS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/staff/agent/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-puzzle"></i>\n <a href="#">{{ \'APPLICATION_STAFF\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-people"></i>\n <a href="#">{{ \'APPLICATION_AGENTS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-people font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_AGENTS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group" data-ng-show="Auth.getCurrentUser().role === \'admin\'">\n <button type="button" class="btn green-jungle" data-toggle="dropdown" data-hover="dropdown" data-delay="1000" data-close-others="true" aria-expanded="true">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_AGENT\' | translate }} <i class="fa fa-angle-down"></i>\n </button>\n <ul class="dropdown-menu" role="menu">\n <li>\n <a href="/staff/agents/wizard">\n Standard\n </a>\n </li>\n <li>\n <a href="/staff/agents/bulk">\n {{ \'APPLICATION_BULK\' | translate }}\n </a>\n </li>\n </ul>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/staff/agent/view/view.account.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_PROFILE\' | translate}} {{ \'APPLICATION_ACCOUNT\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li data-ng-class="{\'active\': Auth.isAdmin() || userModules[4]}" data-ng-show="Auth.isAdmin() || userModules[4]">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_PERSONAL_INFO\' | translate}}</a>\n </li>\n <li data-ng-show="Auth.isAdmin() || userModules[4]">\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{ \'APPLICATION_CHANGE_AVATAR\' | translate}}</a>\n </li>\n <li data-ng-show="Auth.isAdmin() || userModules[4] || agent.id === Auth.getCurrentUser().id" data-ng-class="{\'active\': !Auth.isAdmin() && agent.id === Auth.getCurrentUser().id}">\n <a href="#" data-target="#tab_1_3" data-toggle="tab">{{ \'APPLICATION_CHANGE_PASSWORD\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- PERSONAL INFO TAB -->\n <div class="tab-pane" data-ng-class="{\'active\': Auth.isAdmin() || userModules[4]}" data-ng-show="Auth.isAdmin() || userModules[4]" id="tab_1_1">\n <form name="forms.info" data-ng-submit="forms.info.$valid && updateItem()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$invalid}">\n <label class="control-label">{{\'APPLICATION_FULLNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="fullname" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="agent.fullname" required/>\n <span data-ng-show="(forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}</label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="agent.name" disabled/>\n </div>\n <!-- END USERNAME -->\n\n <!-- START EMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="email" name="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" class="form-control" data-ng-model="agent.email" required/>\n <span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.email" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END EMAIL -->\n\n <!-- START PHONE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.phone.$touched || forms.info.$submitted) && forms.info.phone.$invalid}">\n <label class="control-label">{{\'APPLICATION_PHONE\' | translate}}</label>\n <input type="text" name="phone" placeholder="{{\'APPLICATION_PHONE\' | translate}}" class="form-control" data-ng-model="agent.phone"/>\n </div>\n <!-- END PHONE -->\n\n <!-- START MOBILE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.mobile.$touched || forms.info.$submitted) && forms.info.mobile.$invalid}">\n <label class="control-label">{{\'APPLICATION_MOBILE\' | translate}}</label>\n <input type="text" name="mobile" placeholder="{{\'APPLICATION_MOBILE\' | translate}}" class="form-control" data-ng-model="agent.mobile"/>\n </div>\n <!-- END MOBILE -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="agent.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START LOGIN IN PAUSE -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_LOGIN_IN_PAUSE\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="agent.loginInPause"\n type="checkbox"\n name="auth"\n switch-active="{{ recordSwitch.isActive }}"\n switch-on-text="{{ recordSwitch.onText }}"\n switch-off-text="{{ recordSwitch.offText }}"\n switch-on-color="{{ recordSwitch.onColor }}"\n switch-off-color="{{ recordSwitch.offColor }}"\n switch-animate="{{ recordSwitch.animate }}"\n switch-size="{{ recordSwitch.size }}"\n switch-label="{{ recordSwitch.label }}"\n switch-icon="{{ recordSwitch.icon }}"\n switch-radio-off="{{ recordSwitch.radioOff }}"\n switch-label-width="{{ recordSwitch.labelWidth }}"\n switch-handle-width="{{ recordSwitch.handleWidth }}">\n </div>\n <!-- END LOGIN IN PAUSE -->\n\n <!-- START WEB BAR -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_SHOW_WEB_BAR\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="agent.showWebBar"\n type="checkbox"\n name="auth"\n switch-active="{{ recordSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ recordSwitch.onColor }}"\n switch-off-color="{{ recordSwitch.offColor }}"\n switch-animate="{{ recordSwitch.animate }}"\n switch-size="{{ recordSwitch.size }}"\n switch-label="{{ recordSwitch.label }}"\n switch-icon="{{ recordSwitch.icon }}"\n switch-radio-off="{{ recordSwitch.radioOff }}"\n switch-label-width="{{ recordSwitch.labelWidth }}"\n switch-handle-width="{{ recordSwitch.handleWidth }}">\n </div>\n <!-- END WEB BAR -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END PERSONAL INFO TAB -->\n <!-- CHANGE AVATAR TAB -->\n <div class="tab-pane" data-ng-show="Auth.isAdmin() || userModules[4]" id="tab_1_2">\n <form action="#" role="form">\n <div class="form-group">\n <div class="fileinput fileinput-new" data-provides="fileinput">\n <div class="fileinput-new thumbnail" style="width: 200px; height: 150px;">\n <img ng-src="assets/images/media/noProfileImage.png" alt=""/>\n </div>\n <div class="fileinput-preview fileinput-exists thumbnail" style="max-width: 200px; max-height: 150px;">\n </div>\n <div>\n <span class="btn default btn-file" data-ng-show="!uploader.queue[0]">\n <span> {{ \'APPLICATION_SELECT_IMAGE\' | translate }} </span>\n <input type="file" nv-file-select="" uploader="uploader" /><br/>\n </span>\n <button type="button" class="btn default" data-ng-show="uploader.queue[0]" data-dismiss="fileinput" ng-click="uploader.queue[0].remove()">\n {{ \'APPLICATION_REMOVE\' | translate }}\n </button>\n <button type="button" class="btn green-haze" data-ng-show="uploader.queue[0]" data-ng-click="uploader.queue[0].upload()" ng-disabled="uploader.queue[0].isReady || uploader.queue[0].isUploading || uploader.queue[0].isSuccess">\n {{ \'APPLICATION_CONFIRM\' | translate }}\n </button>\n </div>\n <p>\n </br> {{ \'MESSAGE_SUPPORTED_FORMATS\' | translate }} <b>jpg, png, jpeg</b>.\n </p>\n </div>\n </div>\n </form>\n <div class="row">\n <div class="col-md-2">\n <table class="table" border="0">\n <tbody>\n <tr data-ng-repeat="item in uploader.queue">\n <td style="border-top-style:none">\n <strong>\n {{ item.file.name }}\n </strong>\n </td>\n <td data-ng-show="uploader.isHTML5" nowrap style="border-top-style:none">\n {{ item.file.size/1024/1024|number:2 }} MB\n </td>\n <td nowrap style="border-top-style:none">\n <button type="button" class="btn btn-danger btn-xs" data-ng-click="item.remove()">\n <span class="glyphicon glyphicon-trash"></span> Remove\n </button>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n <!-- END CHANGE AVATAR TAB -->\n <!-- CHANGE PASSWORD TAB -->\n <div class="tab-pane" data-ng-show="Auth.isAdmin() || userModules[4] || agent.id === Auth.getCurrentUser().id" data-ng-class="{\'active\': !Auth.isAdmin() && agent.id === Auth.getCurrentUser().id}" id="tab_1_3">\n <form name="forms.changePwd" data-ng-submit="forms.changePwd.$valid && updatePassword()" novalidate>\n <!-- START CURRENT PWD -->\n <div class="form-group" data-ng-if="!(Auth.isAdmin() || userModules[4])" data-ng-class="{\'has-error\': (forms.changePwd.current_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.current_pwd.$invalid}">\n <label class="control-label">{{\'APPLICATION_CURRENT_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="current_pwd" placeholder="{{\'APPLICATION_CURRENT_PASSWORD\' | translate}}" class="form-control" data-ng-model="agent.currentPwd" required/>\n <span data-ng-show="(forms.changePwd.current_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.current_pwd.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CURRENT PWD -->\n <!-- START NEW PWD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.changePwd.new_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.new_pwd.$invalid}">\n <label class="control-label">{{\'APPLICATION_NEW_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="new_pwd" placeholder="{{\'APPLICATION_NEW_PASSWORD\' | translate}}" class="form-control" data-ng-model="agent.newPwd" data-ng-pattern="setting.securePassword ? settings.patternPassword : settings.patternPasswordLight" required/>\n <span class="help-block">\n {{setting.securePassword ? \'MESSAGE_PASSWORD_FORMAT\' : \'MESSAGE_PASSWORD_LIGHT_FORMAT\' | translate}}\n </span>\n <span data-ng-show="(forms.changePwd.current_pwd.$touched || forms.info.$submitted) && forms.changePwd.current_pwd.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n <span data-ng-show="(forms.changePwd.new_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.new_pwd.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NEW PWD -->\n <!-- START RE-NEW PWD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.changePwd.re_new_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.re_new_pwd.$invalid}">\n <label class="control-label">{{\'APPLICATION_RE_TYPE_NEW_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="re_new_pwd" placeholder="{{\'APPLICATION_RE_TYPE_NEW_PASSWORD\' | translate}}" class="form-control" data-ng-model="agent.reNewPwd" nx-equal="agent.newPwd" required/>\n <span data-ng-show="(forms.changePwd.new_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.new_pwd.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END RE-NEW PWD -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END CHANGE PASSWORD TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'), -a.put("app/staff/agent/view/view.chat.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_PROFILE\' | translate}} {{ \'APPLICATION_CHAT\' | translate}}</span>\n </div>\n </div>\n\n <div class="portlet-body">\n <!-- START CHAT TAB -->\n <form name="form" data-ng-submit="patchItem()" novalidate>\n <!-- START CAPACITY -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.capacity.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_CAPACITY\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" name="chatCapacity" placeholder="{{\'APPLICATION_CAPACITY\' | translate}}" class="form-control" data-ng-model="agent.chatCapacity" min="0" required/>\n <span class="help-block">\n {{\'MESSAGE_ZERO_MEANS_UNLIMITED\' | translate}}\n </span>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CAPACITY -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n <!-- END CHAT TAB -->\n </div>\n </div>\n </div>\n</div>\n</div>\n'),a.put("app/staff/agent/view/view.fax.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_PROFILE\' | translate}} {{ \'APPLICATION_FAX\' | translate}}</span>\n </div>\n </div>\n\n <div class="portlet-body">\n <!-- START CHAT TAB -->\n <form name="form" data-ng-submit="patchItem()" novalidate>\n <!-- START CAPACITY -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.capacity.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_CAPACITY\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" name="faxCapacity" placeholder="{{\'APPLICATION_CAPACITY\' | translate}}" class="form-control" data-ng-model="agent.faxCapacity" min="0" required/>\n <span class="help-block">\n {{\'MESSAGE_ZERO_MEANS_UNLIMITED\' | translate}}\n </span>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CAPACITY -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n <!-- END CHAT TAB -->\n </div>\n </div>\n </div>\n</div>\n</div>\n'),a.put("app/staff/agent/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-puzzle"></i>\n <a href="#">{{ \'APPLICATION_STAFF\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-people"></i>\n <a href="/staff/agents/list">{{ \'APPLICATION_AGENTS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <a href="#">{{agent.fullname}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-userpic">\n <img ng-src="api/users/avatar/{{agent.userpic ? agent.userpic : \'unknown_avatar\'}}" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n\n <!-- START SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{agent.fullname}}\n </div>\n <div class="profile-usertitle-job">\n {{agent.role}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.staff.agents.view.account\')}">\n <a data-ng-href="/staff/agents/view/{{agent.id}}/account">\n <i class="icon-user"></i>\n {{ \'APPLICATION_ACCOUNT\' | translate}} </a>\n </li>\n\n <li data-ng-class="{active: $state.includes(\'main.staff.agents.view.queues\')}" data-ng-show="Auth.isAdmin() || userModules[7]">\n <a data-ng-href="/staff/agents/view/{{agent.id}}/queues/voice">\n <i class="icon-docs"></i>\n {{ \'APPLICATION_QUEUES\' | translate}} </a>\n </li>\n\n <li data-ng-class="{active: $state.is(\'main.staff.agents.view.voice\')}" data-ng-show="Auth.isAdmin() || userModules[7]">\n <a data-ng-href="/staff/agents/view/{{agent.id}}/voice">\n <i class="icon-earphones-alt"></i>\n {{ \'APPLICATION_VOICE\' | translate}} </a>\n </li>\n\n <li data-ng-class="{active: $state.is(\'main.staff.agents.view.chat\'),\'disabled-link\':!license.chat}" data-ng-show="Auth.isAdmin() || userModules[8]">\n <a data-ng-href="{{license.chat ? \'/staff/agents/view/\'+agent.id+\'/chat\' : \'javascript:;\'}}" class="disable-target">\n <i class="icon-bubble"></i>\n {{ \'APPLICATION_CHAT\' | translate}} </a>\n </li>\n\n <!-- <li data-ng-class="{active: $state.is(\'main.staff.agents.view.mail\'),\'disabled-link\':!license.mail}" data-ng-show="Auth.isAdmin() || userModules[9]">\n <a data-ng-href="{{license.mail ? \'/staff/agents/view/\'+agent.id+\'/mail\' : \'javascript:;\'}}" class="disable-target">\n <i class="icon-envelope"></i>\n {{ \'APPLICATION_MAIL\' | translate}} </a>\n </li> -->\n\n <!-- <li data-ng-class="{active: $state.is(\'main.staff.agents.view.fax\'),\'disabled-link\':!license.fax}" data-ng-show="Auth.isAdmin() || userModules[10]">\n <a data-ng-href="{{license.fax ? \'/staff/agents/view/\'+agent.id+\'/fax\' : \'javascript:;\'}}" class="disable-target">\n <i class="fa fa-fax"></i>\n {{ \'APPLICATION_FAX\' | translate}} </a>\n </li> -->\n\n <!-- <li data-ng-class="{active: $state.is(\'main.staff.agents.view.sms\'),\'disabled-link\':!license.messaging}" data-ng-show="Auth.isAdmin() || userModules[11]">\n <a data-ng-href="{{license.messaging ? \'/staff/agents/view/\'+agent.id+\'/sms\' : \'javascript:;\'}}" class="disable-target">\n <i class=" glyphicon glyphicon-comment "></i>\n {{ \'APPLICATION_SMS\' | translate}} </a>\n </li> -->\n <!-- <li data-ng-class="{active: $state.is(\'main.staff.agents.view.openchannel\'),\'disabled-link\':!license.openchannel}" data-ng-show="Auth.isAdmin() || userModules[20]">\n <a data-ng-href="{{license.openchannel ? \'/staff/agents/view/\'+agent.id+\'/openchannel\' : \'javascript:;\'}}" class="disable-target">\n <i class=" icon-globe "></i>\n {{ \'APPLICATION_OPEN_CHANNEL\' | translate}} </a>\n </li> -->\n\n <li data-ng-class="{active: $state.is(\'main.staff.agents.view.motionbar\')}" data-ng-show="Auth.isAdmin()">\n <a data-ng-href="/staff/agents/view/{{agent.id}}/motionbar">\n <i class="icon-screen-desktop"></i>\n {{ \'APPLICATION_MOTION_BAR\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/staff/agent/view/view.mail.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_PROFILE\' | translate}} {{ \'APPLICATION_MAIL\' | translate}}</span>\n </div>\n </div>\n\n <div class="portlet-body">\n <!-- START CHAT TAB -->\n <form name="form" data-ng-submit="patchItem()" novalidate>\n <!-- START CAPACITY -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.capacity.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_CAPACITY\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" name="mailCapacity" placeholder="{{\'APPLICATION_CAPACITY\' | translate}}" class="form-control" data-ng-model="agent.mailCapacity" min="0" required/>\n <span class="help-block">\n {{\'MESSAGE_ZERO_MEANS_UNLIMITED\' | translate}}\n </span>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CAPACITY -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n <!-- END CHAT TAB -->\n </div>\n </div>\n </div>\n</div>\n</div>\n'),a.put("app/staff/agent/view/view.motionbar.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_PROFILE\' | translate}} {{ \'APPLICATION_MOTION_BAR\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li data-ng-class="{\'active\': Auth.isAdmin()}" data-ng-show="Auth.isAdmin()">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n <li data-ng-show="Auth.isAdmin()">\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{ \'APPLICATION_CALL_FORWARDING\' | translate}}</a>\n </li>\n <li data-ng-show="Auth.isAdmin()">\n <a href="#" data-target="#tab_1_3" data-toggle="tab">{{ \'APPLICATION_ADVANCED\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- START GENERAL TAB -->\n <div class="tab-pane" data-ng-class="{\'active\': Auth.isAdmin()}" data-ng-show="Auth.isAdmin()" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateItem()" novalidate>\n\n <!-- START ENABLE_SETTINGS -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_ENABLE_SETTINGS\' | translate}}</label><br>\n <input\n bs-switch\n ng-model="agent.phoneBarEnableSettings"\n type="checkbox"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <!-- END ENABLE_SETTINGS -->\n\n <!-- START AUTO_ANSWER -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_AUTO_ANSWER\' | translate}}</label><br>\n <input\n bs-switch\n ng-model="agent.phoneBarAutoAnswer"\n type="checkbox"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <!-- END AUTO_ANSWER -->\n\n <!-- START AUTO ANSWER DELAY -->\n <div class="form-group" data-ng-if="agent.phoneBarAutoAnswer" data-ng-class="{\'has-error\': (forms.general.phonebarAutoAnswerDelay.$touched || forms.general.$submitted) && forms.general.phonebarAutoAnswerDelay.$invalid}">\n <label class="control-label">{{\'APPLICATION_AUTO_ANSWER_DELAY\' | translate}} [sec]<span class="required" aria-required="true">*</span></label>\n <input type="number" min="0" name="phonebarAutoAnswerDelay" placeholder="{{\'APPLICATION_AUTO_ANSWER_DELAY\' | translate}}" class="form-control" data-ng-model="agent.phonebarAutoAnswerDelay" required/>\n <span data-ng-show="(forms.general.phonebarAutoAnswerDelay.$touched || forms.general.$submitted) && forms.general.phonebarAutoAnswerDelay.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="forms.general.phonebarAutoAnswerDelay.$error.max || forms.general.phonebarAutoAnswerDelay.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}} (min 0).\n </span>\n </div>\n <!-- END AUTO ANSWER DELAY -->\n\n <!-- START ENABLE_RECORDING -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_ENABLE_RECORDING\' | translate}}</label><br>\n <input\n bs-switch\n ng-model="agent.phoneBarEnableRecording"\n type="checkbox"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <!-- END ENABLE_RECORDING -->\n\n <!-- START SHOW_OMNI_DESKTOP -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_SHOW_OMNI_DESKTOP_BUTTON\' | translate}}</label><br>\n <input\n bs-switch\n ng-model="agent.phoneBarShowOmniDesktop"\n type="checkbox"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <!-- END SHOW_OMNI_DESKTOP -->\n\n <!-- START RINGINUSE -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_RINGINUSE\' | translate}}</label><br>\n <input\n bs-switch\n ng-model="agent.phoneBarRingInUse"\n type="checkbox"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <!-- END RINGINUSE -->\n\n <!-- START DND -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DND\' | translate}}</label><br>\n <input\n bs-switch\n ng-model="agent.phoneBarDnd"\n type="checkbox"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <!-- END DND -->\n\n <!-- START UNANSWERED_CALL_BADGE -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_UNANSWERED_CALL_BADGE\' | translate}}</label><br>\n <input\n bs-switch\n ng-model="agent.phoneBarUnansweredCallBadge"\n type="checkbox"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <!-- END UNANSWERED_CALL_BADGE -->\n\n <!-- START ENABLE_DTMF_TONE -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_ENABLE_DTMF_TONE\' | translate}}</label><br>\n <input\n bs-switch\n ng-model="agent.phonebarEnableDtmfTone"\n type="checkbox"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <!-- END ENABLE_DTMF_TONE -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n <!-- START CALL FORWARDING TAB -->\n <div class="tab-pane" data-ng-show="Auth.isAdmin()" id="tab_1_2">\n <form name="forms.callForwarding" data-ng-submit="forms.callForwarding.$valid && updateItem()" novalidate>\n\n <!-- START UNCONDITIONAL -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_UNCONDITIONAL\' | translate}}</label><br>\n <input\n bs-switch\n ng-model="agent.phoneBarUnconditional"\n type="checkbox"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <!-- END UNCONDITIONAL -->\n\n\n <!-- START UNCONDITIONAL NUMBER -->\n <div class="form-group" data-ng-if="agent.phoneBarUnconditional" data-ng-class="{\'has-error\': (forms.callForwarding.phoneBarUnconditionalNumber.$touched || forms.callForwarding.$submitted) && forms.callForwarding.phoneBarUnconditionalNumber.$invalid}">\n <input type="text" name="phoneBarUnconditionalNumber" placeholder="{{\'APPLICATION_NUMBER\' | translate}}" class="form-control" data-ng-model="agent.phoneBarUnconditionalNumber" required/>\n <span class="help-block">\n <!-- {{ \'DESCRIPTION_VOICE_HOST\' | translate }} -->\n </span>\n <span data-ng-show="(forms.callForwarding.phoneBarUnconditionalNumber.$touched || forms.callForwarding.$submitted) && forms.callForwarding.phoneBarUnconditionalNumber.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END UNCONDITIONAL NUMBER -->\n\n <!-- START NO REPLY -->\n <!-- <div class="form-group">\n <label class="control-label">{{\'APPLICATION_NO_REPLY\' | translate}}</label><br>\n <input\n bs-switch\n ng-model="agent.phoneBarNoReply"\n type="checkbox"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div> -->\n <!-- END NO REPLY -->\n\n <!-- START NO REPLY -->\n <!-- <div class="form-group" data-ng-if="agent.phoneBarNoReply" data-ng-class="{\'has-error\': (forms.callForwarding.phoneBarNoReplyNumber.$touched || forms.callForwarding.$submitted) && forms.callForwarding.phoneBarNoReplyNumber.$invalid}">\n <input type="text" name="phoneBarNoReplyNumber" placeholder="{{\'APPLICATION_NUMBER\' | translate}}" class="form-control" data-ng-model="agent.phoneBarNoReplyNumber" required/>\n <span class="help-block">\n </span>\n <span data-ng-show="(forms.callForwarding.phoneBarNoReplyNumber.$touched || forms.callForwarding.$submitted) && forms.callForwarding.phoneBarNoReplyNumber.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div> -->\n <!-- END REPLY -->\n\n <!-- START BUSY -->\n <!-- <div class="form-group">\n <label class="control-label">{{\'APPLICATION_BUSY\' | translate}}</label><br>\n <input\n bs-switch\n ng-model="agent.phoneBarBusy"\n type="checkbox"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div> -->\n <!-- END BUSY -->\n\n <!-- START BUSY NUMBER -->\n <!-- <div class="form-group" data-ng-if="agent.phoneBarBusy" data-ng-class="{\'has-error\': (forms.callForwarding.phoneBarBusyNumber.$touched || forms.callForwarding.$submitted) && forms.callForwarding.phoneBarBusyNumber.$invalid}">\n <input type="text" name="phoneBarBusyNumber" placeholder="{{\'APPLICATION_NUMBER\' | translate}}" class="form-control" data-ng-model="agent.phoneBarBusyNumber" required/>\n <span class="help-block">\n </span>\n <span data-ng-show="(forms.callForwarding.phoneBarBusyNumber.$touched || forms.callForwarding.$submitted) && forms.callForwarding.phoneBarBusyNumber.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div> -->\n <!-- END BUSY NUMBER -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END CALL FORWARDING TAB -->\n <!-- START ADVANCED TAB -->\n <div class="tab-pane" data-ng-show="Auth.isAdmin()" id="tab_1_3">\n <form name="forms.advanced" data-ng-submit="forms.advanced.$valid && updateItem()" novalidate>\n\n <!-- START ENABLE REMOTE CONTROL -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_REMOTE_CONTROL\' | translate}}</label><br>\n <input\n bs-switch\n ng-model="agent.phoneBarRemoteControl"\n type="checkbox"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <!-- END ENABLE REMOTE CONTROL -->\n\n\n <!-- START REMOTE CONTROL PORT -->\n <div class="form-group" data-ng-if="agent.phoneBarRemoteControl" data-ng-class="{\'has-error\': (forms.advanced.phoneBarRemoteControlPort.$touched || forms.advanced.$submitted) && forms.advanced.phoneBarRemoteControlPort.$invalid}">\n <label class="control-label">{{\'APPLICATION_REMOTE_CONTROL\' | translate}} {{\'APPLICATION_PORT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="1" name="phoneBarRemoteControlPort" placeholder="{{\'APPLICATION_REMOTE_CONTROL\' | translate}} {{\'APPLICATION_PORT\' | translate}}" class="form-control" data-ng-model="agent.phoneBarRemoteControlPort" required/>\n <span class="help-block">Default: 9888</span>\n <span data-ng-show="(forms.advanced.phoneBarRemoteControlPort.$touched || forms.advanced.$submitted) && forms.advanced.phoneBarRemoteControlPort.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="forms.advanced.phoneBarRemoteControlPort.$error.max || forms.advanced.phoneBarRemoteControlPort.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n </span>\n </div>\n <!-- END REMOTE CONTROL PORT -->\n\n <!-- START SIP EXPIRES -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.phoneBarExpires.$touched || forms.advanced.$submitted) && forms.advanced.phoneBarExpires.$invalid}">\n <label class="control-label">SIP {{\'APPLICATION_EXPIRES\' | translate}} [sec]<span class="required" aria-required="true">*</span></label>\n <input type="number" min="1" name="phoneBarExpires" placeholder="SIP {{\'APPLICATION_EXPIRES\' | translate}}" class="form-control" data-ng-model="agent.phoneBarExpires" required/>\n <span class="help-block">Default: 120</span>\n <span data-ng-show="(forms.advanced.phoneBarExpires.$touched || forms.advanced.$submitted) && forms.advanced.phoneBarExpires.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="forms.advanced.phoneBarExpires.$error.max || forms.advanced.phoneBarExpires.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}} (min 1).\n </span>\n </div>\n <!-- END SIP EXPIRES -->\n\n <!-- START SIP PORT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.phoneBarListenPort.$touched || forms.advanced.$submitted) && forms.advanced.phoneBarListenPort.$invalid}">\n <label class="control-label">SIP {{\'APPLICATION_PORT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="0" max="65535" name="phoneBarListenPort" placeholder="SIP {{\'APPLICATION_PORT\' | translate}}" class="form-control" data-ng-model="agent.phoneBarListenPort" required/>\n <span class="help-block">Default: 5060</span>\n <span data-ng-show="(forms.advanced.phoneBarListenPort.$touched || forms.advanced.$submitted) && forms.advanced.phoneBarListenPort.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="forms.advanced.phoneBarListenPort.$error.max || forms.advanced.phoneBarListenPort.$error.min" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}} (0-65535).\n </span>\n </div>\n <!-- END SIP PORT -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ADVANCED TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'), -a.put("app/staff/agent/view/view.openchannel.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_PROFILE\' | translate}} {{ \'APPLICATION_OPEN_CHANNEL\' | translate}}</span>\n </div>\n </div>\n\n <div class="portlet-body">\n <!-- START CHAT TAB -->\n <form name="form" data-ng-submit="patchItem()" novalidate>\n <!-- START CAPACITY -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.capacity.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_CAPACITY\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" name="openchannelCapacity" placeholder="{{\'APPLICATION_CAPACITY\' | translate}}" class="form-control" data-ng-model="agent.openchannelCapacity" min="0" required/>\n <span class="help-block">\n {{\'MESSAGE_ZERO_MEANS_UNLIMITED\' | translate}}\n </span>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CAPACITY -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n <!-- END CHAT TAB -->\n </div>\n </div>\n </div>\n</div>\n</div>\n'),a.put("app/staff/agent/view/view.queues.chat.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12" data-ng-init="initChatQueues()">\n <!-- BEGIN FORM-->\n <form action="#" class="form-horizontal form-row-seperated">\n <div class="form-body">\n <label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n <div class="input-group input-small mbottom20">\n <input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="params.penalty" readonly>\n <div class="spinner-buttons input-group-btn btn-group-vertical">\n <button type="button" class="btn spinner-up btn-xs blue" data-ng-click="params.penalty=params.penalty+1">\n <i class="fa fa-angle-up"></i>\n </button>\n <button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!params.penalty" data-ng-click="params.penalty=params.penalty-1">\n <i class="fa fa-angle-down"></i>\n </button>\n </div>\n </div>\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-queues-chat">\n </div>\n </div>\n </div>\n </form>\n <!-- END FORM-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/staff/agent/view/view.queues.fax.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12" data-ng-init="initFaxQueues()">\n <!-- BEGIN FORM-->\n <form action="#" class="form-horizontal form-row-seperated">\n <div class="form-body">\n <label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n <div class="input-group input-small mbottom20">\n <input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="params.penalty" readonly>\n <div class="spinner-buttons input-group-btn btn-group-vertical">\n <button type="button" class="btn spinner-up btn-xs blue" data-ng-click="params.penalty=params.penalty+1">\n <i class="fa fa-angle-up"></i>\n </button>\n <button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!params.penalty" data-ng-click="params.penalty=params.penalty-1">\n <i class="fa fa-angle-down"></i>\n </button>\n </div>\n </div>\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-queues-fax">\n </div>\n </div>\n </div>\n </form>\n <!-- END FORM-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/staff/agent/view/view.queues.html","<!-- BEGIN PAGE CONTENT-->\n<div class=\"row\" data-ng-init=\"initView()\">\n <div class=\"col-md-12\">\n <div>\n <nav class=\"navbar navbar-default\" role=\"navigation\">\n <div class=\"collapse navbar-collapse\">\n <ul class=\"nav navbar-nav\">\n <li data-ng-class=\"{'active': $state.is('main.staff.agents.view.queues.voice')}\">\n <a href=\"/staff/agents/view/{{agent.id}}/queues/voice\">\n <i class=\"icon-earphones-alt\"></i> {{'APPLICATION_VOICE' | translate}}\n </a>\n </li>\n <li data-ng-class=\"{'active': $state.is('main.staff.agents.view.queues.chat'),'disabled-link':!license.chat}\" data-ng-show=\"Auth.isAdmin() || userModules[8]\">\n <a href=\"{{license.chat ? '/staff/agents/view/'+agent.id+'/queues/chat' : 'javascript:;'}}\" class=\"disable-target\">\n <i class=\"icon-bubble\"></i> {{'APPLICATION_CHAT' | translate}}\n </a>\n </li>\n <li data-ng-class=\"{'active': $state.is('main.staff.agents.view.queues.mail'),'disabled-link':!license.mail}\" data-ng-show=\"Auth.isAdmin() || userModules[9]\">\n <a href=\"{{license.mail ? '/staff/agents/view/'+agent.id+'/queues/mail' : 'javascript:;'}}\" class=\"disable-target\">\n <i class=\"icon-envelope\"></i>{{'APPLICATION_MAIL' | translate}}\n </a>\n </li>\n <li data-ng-class=\"{'active': $state.is('main.staff.agents.view.queues.fax'),'disabled-link':!license.fax}\" data-ng-show=\"Auth.isAdmin() || userModules[10]\">\n <a href=\"{{license.fax ? '/staff/agents/view/'+agent.id+'/queues/fax' : 'javascript:;'}}\" class=\"disable-target\">\n <i class=\"fa fa-fax\"></i> {{'APPLICATION_FAX' | translate}}\n </a>\n </li>\n <li data-ng-class=\"{'active': $state.is('main.staff.agents.view.queues.sms'),'disabled-link':!license.messaging}\" data-ng-show=\"Auth.isAdmin() || userModules[11]\">\n <a href=\"{{license.messaging ? '/staff/agents/view/'+agent.id+'/queues/sms' : 'javascript:;'}}\" class=\"disable-target\">\n <i class=\"glyphicon glyphicon-comment\"></i> {{'APPLICATION_SMS' | translate}}\n </a>\n </li>\n <li data-ng-class=\"{'active': $state.is('main.staff.agents.view.queues.openchannel'),'disabled-link':!license.openchannel}\" data-ng-show=\"Auth.isAdmin() || userModules[20]\">\n <a href=\"{{license.openchannel ? '/staff/agents/view/'+agent.id+'/queues/openchannel' : 'javascript:;'}}\" class=\"disable-target\">\n <i class=\"icon-globe\"></i> {{'APPLICATION_OPEN_CHANNEL' | translate}}\n </a>\n </li>\n </ul>\n </div>\n </nav>\n </div>\n <div ui-view></div>\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n"),a.put("app/staff/agent/view/view.queues.mail.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12" data-ng-init="initMailQueues()">\n <!-- BEGIN FORM-->\n <form action="#" class="form-horizontal form-row-seperated">\n <div class="form-body">\n <label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n <div class="input-group input-small mbottom20">\n <input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="params.penalty" readonly>\n <div class="spinner-buttons input-group-btn btn-group-vertical">\n <button type="button" class="btn spinner-up btn-xs blue" data-ng-click="params.penalty=params.penalty+1">\n <i class="fa fa-angle-up"></i>\n </button>\n <button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!params.penalty" data-ng-click="params.penalty=params.penalty-1">\n <i class="fa fa-angle-down"></i>\n </button>\n </div>\n </div>\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-queues-mail">\n </div>\n </div>\n </div>\n </form>\n <!-- END FORM-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/staff/agent/view/view.queues.openchannel.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12" data-ng-init="initOpenchannelQueues()">\n <!-- BEGIN FORM-->\n <form action="#" class="form-horizontal form-row-seperated">\n <div class="form-body">\n <label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n <div class="input-group input-small mbottom20">\n <input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="params.penalty" readonly>\n <div class="spinner-buttons input-group-btn btn-group-vertical">\n <button type="button" class="btn spinner-up btn-xs blue" data-ng-click="params.penalty=params.penalty+1">\n <i class="fa fa-angle-up"></i>\n </button>\n <button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!params.penalty" data-ng-click="params.penalty=params.penalty-1">\n <i class="fa fa-angle-down"></i>\n </button>\n </div>\n </div>\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-queues-openchannel">\n </div>\n </div>\n </div>\n </form>\n <!-- END FORM-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/staff/agent/view/view.queues.sms.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12" data-ng-init="initSmsQueues()">\n <!-- BEGIN FORM-->\n <form action="#" class="form-horizontal form-row-seperated">\n <div class="form-body">\n <label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n <div class="input-group input-small mbottom20">\n <input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="params.penalty" readonly>\n <div class="spinner-buttons input-group-btn btn-group-vertical">\n <button type="button" class="btn spinner-up btn-xs blue" data-ng-click="params.penalty=params.penalty+1">\n <i class="fa fa-angle-up"></i>\n </button>\n <button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!params.penalty" data-ng-click="params.penalty=params.penalty-1">\n <i class="fa fa-angle-down"></i>\n </button>\n </div>\n </div>\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-queues-sms">\n </div>\n </div>\n </div>\n </form>\n <!-- END FORM-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/staff/agent/view/view.queues.voice.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12" data-ng-init="initVoiceQueues()">\n <!-- BEGIN FORM-->\n <form action="#" class="form-horizontal form-row-seperated">\n <div class="form-body">\n <label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n <div class="input-group input-small mbottom20">\n <input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="params.penalty" readonly>\n <div class="spinner-buttons input-group-btn btn-group-vertical">\n <button type="button" class="btn spinner-up btn-xs blue" data-ng-click="params.penalty=params.penalty+1">\n <i class="fa fa-angle-up"></i>\n </button>\n <button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!params.penalty" data-ng-click="params.penalty=params.penalty-1">\n <i class="fa fa-angle-down"></i>\n </button>\n </div>\n </div>\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-queues-voice">\n </div>\n </div>\n </div>\n </form>\n <!-- END FORM-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/staff/agent/view/view.sms.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_PROFILE\' | translate}} {{ \'APPLICATION_SMS\' | translate}}</span>\n </div>\n </div>\n\n <div class="portlet-body">\n <!-- START CHAT TAB -->\n <form name="form" data-ng-submit="patchItem()" novalidate>\n <!-- START CAPACITY -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.capacity.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_CAPACITY\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" name="smsCapacity" placeholder="{{\'APPLICATION_CAPACITY\' | translate}}" class="form-control" data-ng-model="agent.smsCapacity" min="0" required/>\n <span class="help-block">\n {{\'MESSAGE_ZERO_MEANS_UNLIMITED\' | translate}}\n </span>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CAPACITY -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n <!-- END CHAT TAB -->\n </div>\n </div>\n </div>\n</div>\n</div>\n'),a.put("app/staff/agent/view/view.voice.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_PROFILE\' | translate}} {{ \'APPLICATION_VOICE\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body">\n <form name="forms.voice" data-ng-submit="updateItem()" novalidate>\n\n <!-- START INTERNAL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.voice.internal.$touched || forms.voice.$submitted) && forms.voice.internal.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERNAL_NUMBER\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="internal" placeholder="{{\'APPLICATION_INTERNAL_NUMBER\' | translate}}" class="form-control" data-ng-model="agent.internal" required disabled/>\n <span data-ng-show="(forms.voice.internal.$touched || forms.voice.$submitted) && forms.voice.internal.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERNAL -->\n\n <!-- START TRANSPORT -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TRANSPORT\' | translate}}</label>\n <ui-select multiple name="transport" ng-model="agent.transport" theme="bootstrap">\n <ui-select-match placeholder="Select transport...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="transport in [\'udp\', \'tcp\', \'ws\', \'wss\'] | filter: $select.search">\n {{transport}}\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_TRANSPORT\' | translate }}\n </span>\n </div>\n <!-- END TRANSPORT -->\n\n <!-- START HOST -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.voice.host.$touched || forms.voice.$submitted) && forms.voice.host.$invalid}">\n <label class="control-label">{{\'APPLICATION_HOST\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="host" placeholder="{{\'APPLICATION_HOST\' | translate}}" class="form-control" data-ng-model="agent.host" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_HOST\' | translate }}\n </span>\n <span data-ng-show="(forms.voice.host.$touched || forms.voice.$submitted) && forms.voice.host.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END HOST -->\n\n <!-- START NAT -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_NAT\' | translate}}</label>\n <ui-select multiple data-ng-model="agent.nat" name="nat" theme="bootstrap">\n <ui-select-match placeholder="{{ \'APPLICATION_SEARCH_FILTER\' | translate }}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="nat in [\'yes\', \'no\', \'never\', \'route\', \'force_rport\', \'comedia\'] | filter: $select.search">\n {{nat}}\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_NAT\' | translate }}\n </span>\n </div>\n <!-- END NAT -->\n\n <!-- START TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.voice.type.$touched || forms.voice.$submitted) && forms.voice.type.$invalid}">\n <label class="control-label">{{\'APPLICATION_TYPE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="agent.type" name="type" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_SEARCH_FILTER\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="type in [\'friend\', \'user\', \'peer\'] | filter: $select.search">\n <div ng-bind-html="type | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_TYPE\' | translate }}\n </span>\n <span data-ng-show="(forms.voice.type.$touched || forms.voice.$submitted) && forms.voice.type.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TYPE -->\n\n <!-- START CODEC -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ALLOWED_CODECS\' | translate}}</label>\n <ui-select multiple ng-model="agent.allow" name="allow" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="Select codec...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="allow in [\'g722\', \'g729\', \'ilbc\', \'gsm\', \'ulaw\', \'alaw\', \'opus\'] | filter: $select.search">\n {{allow}}\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_CODEC\' | translate }}\n </span>\n </div>\n <!-- END CODEC -->\n\n <!-- START CHANSPY -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_CHANSPY\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="agent.chanspy"\n type="checkbox"\n name="auth"\n switch-active="{{ recordSwitch.isActive }}"\n switch-on-text="{{ recordSwitch.onText }}"\n switch-off-text="{{ recordSwitch.offText }}"\n switch-on-color="{{ recordSwitch.onColor }}"\n switch-off-color="{{ recordSwitch.offColor }}"\n switch-animate="{{ recordSwitch.animate }}"\n switch-size="{{ recordSwitch.size }}"\n switch-label="{{ recordSwitch.label }}"\n switch-icon="{{ recordSwitch.icon }}"\n switch-radio-off="{{ recordSwitch.radioOff }}"\n switch-label-width="{{ recordSwitch.labelWidth }}"\n switch-handle-width="{{ recordSwitch.handleWidth }}">\n </div>\n <!-- END CHANSPY -->\n\n <!-- START CALLGROUP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.voice.callgroup.$touched || forms.voice.$submitted) && forms.voice.callgroup.$invalid}">\n <label class="control-label">{{\'APPLICATION_CALLGROUP\' | translate}}</label>\n <input type="text" name="callgroup" placeholder="{{\'APPLICATION_CALLGROUP\' | translate}}" class="form-control" data-ng-model="agent.callgroup"/>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_CALLGROUP\' | translate }}\n </span>\n <span data-ng-show="(forms.voice.callgroup.$touched || forms.voice.$submitted) && forms.voice.callgroup.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CALLGROUP -->\n\n <!-- START PICKUPGROUP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.voice.pickupgroup.$touched || forms.voice.$submitted) && forms.voice.pickupgroup.$invalid}">\n <label class="control-label">{{\'APPLICATION_PICKUPGROUP\' | translate}}</label>\n <input type="text" name="pickupgroup" placeholder="{{\'APPLICATION_PICKUPGROUP\' | translate}}" class="form-control" data-ng-model="agent.pickupgroup"/>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_PICKUPGROUP\' | translate }}\n </span>\n <span data-ng-show="(forms.voice.pickupgroup.$touched || forms.voice.$submitted) && forms.voice.pickupgroup.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PICKUPGROUP -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/staff/agent/wizard/wizard-bulk.html",'<div class="col-md-12">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-people"></i>\n <a href="/agents/list">{{ \'APPLICATION_AGENTS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-options"></i>\n <a href="/agents/wizard">{{ \'APPLICATION_WIZARD\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered" data-ng-init="getFirstFreeInternal(); item.amount = 2; item.startIndex = 0;">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-user font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_AGENT\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItems()">\n <wz-step title="{{\'APPLICATION_ACCOUNT\' | translate}}" canexit="exitValidation(forms.info.$valid)">\n <form name="forms.info" novalidate>\n\n <!-- START AMOUNT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.amount.$touched || forms.info.$submitted) && forms.info.amount.$invalid}">\n <label class="control-label">{{\'APPLICATION_AMOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" name="amount" min="2" max="{{maxAmount}}" placeholder="{{\'APPLICATION_AMOUNT\' | translate}}" class="form-control" data-ng-model="item.amount" required>\n <span data-ng-show="(forms.info.amount.$touched || forms.info.$submitted) && forms.info.amount.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span class="help-block help-block-info">\n {{\'MESSAGE_STARTING_FROM_INTERNAL\' | translate}} <b>{{item.minInternal}}</b> {{\'MESSAGE_MAX_NUM_OF_BULK_AGENTS_IS\' | translate}} <b>{{maxAmount}}</b>\n </span>\n </div>\n <!-- END AMOUNT -->\n\n <!-- START START INDEX -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.startIndex.$touched || forms.info.$submitted) && forms.info.startIndex.$invalid}">\n <label class="control-label">{{\'APPLICATION_START_INDEX\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" name="startIndex" min="0" placeholder="{{\'APPLICATION_START_INDEX\' | translate}}" class="form-control" data-ng-model="item.startIndex" required>\n <span data-ng-show="(forms.info.startIndex.$touched || forms.info.$submitted) && forms.info.startIndex.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END START INDEX -->\n\n <!-- START MIN INTERNAL-->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.internal.$touched || forms.info.$submitted) && forms.info.minInternal.$invalid}">\n <label class="control-label">{{\'APPLICATION_MIN_INTERNAL\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" name="minInternal" min="0" placeholder="{{\'APPLICATION_MIN_INTERNAL\' | translate}}" class="form-control" data-ng-change="getAmount()" data-ng-model="item.minInternal" required>\n <span data-ng-show="(forms.info.minInternal.$touched || forms.info.$submitted) && forms.info.minInternal.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MIN INTERNAL-->\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$invalid}">\n <label class="control-label">{{\'APPLICATION_FULLNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="fullname" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.fullname" required/>\n <span data-ng-show="(forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="item.name" data-ng-pattern="settings.patternName" required>\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START EMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="email" name="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" class="form-control" data-ng-model="item.email" required>\n <span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.email" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END EMAIL -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.password" data-ng-pattern="setting.securePassword ? settings.patternPassword : settings.patternPasswordLight" required/>\n <span class="help-block">\n {{setting.securePassword ? \'MESSAGE_PASSWORD_FORMAT\' : \'MESSAGE_PASSWORD_LIGHT_FORMAT\' | translate}}\n </span>\n <span data-ng-show="(forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START RE PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.rpassword.$touched || forms.info.$submitted) && forms.info.rpassword.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="rpassword" placeholder="{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.rpassword" nx-equal="item.password" required/>\n <span data-ng-show="(forms.info.rpassword.$touched || forms.info.$submitted) && forms.info.rpassword.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.rpassword.$touched || forms.info.$submitted) && forms.info.rpassword.$error.nxEqual" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_PASSWORD\' | translate}}.\n </span>\n </div>\n <!-- END RE PASSWORD -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_VOICE\' | translate}}" canexit="exitValidation(forms.voice.$valid)">\n <form name="forms.voice" novalidate>\n\n <!-- START TRANSPORT -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TRANSPORT\' | translate}}</label>\n <ui-select multiple name="transport" ng-model="item.transport" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="Select transport...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="transport in [\'udp\', \'tcp\', \'ws\', \'wss\'] | filter: $select.search">\n {{transport}}\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_TRANSPORT\' | translate }}\n </span>\n </div>\n <!-- END TRANSPORT -->\n\n <!-- START CODEC -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ALLOWED_CODECS\' | translate}}</label>\n <ui-select multiple ng-model="item.allow" name="allow" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="Select codec...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="allow in [\'g722\', \'g729\', \'ilbc\', \'gsm\', \'ulaw\', \'alaw\', \'opus\'] | filter: $select.search">\n {{allow}}\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_CODEC\' | translate }}\n </span>\n </div>\n <!-- END CODEC -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END PORTLET-->\n</div>\n'), -a.put("app/staff/agent/wizard/wizard.html",'<div class="col-md-12">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-puzzle"></i>\n <a href="#">{{ \'APPLICATION_STAFF\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-people"></i>\n <a href="/staff/agents/list">{{ \'APPLICATION_AGENTS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-options"></i>\n <a href="/agents/wizard">{{ \'APPLICATION_WIZARD\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered" data-ng-init="getFirstFreeInternal();">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-user font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_AGENT\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_ACCOUNT\' | translate}}" canexit="exitValidation(forms.info.$valid)">\n <form name="forms.info" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$invalid}">\n <label class="control-label">{{\'APPLICATION_FULLNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="fullname" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.fullname" required/>\n <span data-ng-show="(forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="item.name" data-ng-pattern="settings.patternName" required>\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START EMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="email" name="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" class="form-control" data-ng-model="item.email" required>\n <span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.email" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END EMAIL -->\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.phone.$touched || forms.info.$submitted) && forms.info.phone.$invalid}">\n <label class="control-label">{{\'APPLICATION_PHONE\' | translate}}</label>\n <input type="text" name="phone" placeholder="{{\'APPLICATION_PHONE\' | translate}}" class="form-control" data-ng-model="item.phone"/>\n </div>\n <!-- END NAME -->\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.mobile.$touched || forms.info.$submitted) && forms.info.mobile.$invalid}">\n <label class="control-label">{{\'APPLICATION_MOBILE\' | translate}}</label>\n <input type="text" name="mobile" placeholder="{{\'APPLICATION_MOBILE\' | translate}}" class="form-control" data-ng-model="item.mobile"/>\n </div>\n <!-- END NAME -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.password" data-ng-pattern="setting.securePassword ? settings.patternPassword : settings.patternPasswordLight" required/>\n <span class="help-block">\n {{setting.securePassword ? \'MESSAGE_PASSWORD_FORMAT\' : \'MESSAGE_PASSWORD_LIGHT_FORMAT\' | translate}}\n </span>\n <span data-ng-show="(forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START RE PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.rpassword.$touched || forms.info.$submitted) && forms.info.rpassword.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="rpassword" placeholder="{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.rpassword" nx-equal="item.password" required/>\n <span data-ng-show="(forms.info.rpassword.$touched || forms.info.$submitted) && forms.info.rpassword.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.rpassword.$touched || forms.info.$submitted) && forms.info.rpassword.$error.nxEqual" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_PASSWORD\' | translate}}.\n </span>\n </div>\n <!-- END RE PASSWORD -->\n\n <!-- START INTERNAL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.internal.$touched || forms.info.$submitted) && forms.info.internal.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERNAL_NUMBER\' | translate}}<span class="required" aria-required="true">*</span></label>\n <div class="input-group">\n <input type="number" min="1" name="internal" placeholder="{{\'APPLICATION_INTERNAL_NUMBER\' | translate}}" class="form-control" data-ng-model="item.internal" data-ng-disabled="!item.internalEnabled" data-ng-required="item.internalEnabled"/>\n <span class="input-group-addon">\n <input type="checkbox" data-ng-model="item.internalEnabled">\n </span>\n </div>\n <span data-ng-show="(forms.info.internal.$touched || forms.info.$submitted) && forms.info.internal.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERNAL -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_VOICE\' | translate}}" canexit="exitValidation(forms.voice.$valid)">\n <form name="forms.voice" novalidate>\n\n <!-- START TRANSPORT -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TRANSPORT\' | translate}}</label>\n <ui-select multiple name="transport" ng-model="item.transport" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="Select transport...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="transport in [\'udp\', \'tcp\', \'ws\', \'wss\'] | filter: $select.search">\n {{transport}}\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_TRANSPORT\' | translate }}\n </span>\n </div>\n <!-- END TRANSPORT -->\n\n <!-- START CODEC -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ALLOWED_CODECS\' | translate}}</label>\n <ui-select multiple ng-model="item.allow" name="allow" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="Select codec...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="allow in [\'g722\', \'g729\', \'ilbc\', \'gsm\', \'ulaw\', \'alaw\', \'opus\'] | filter: $select.search">\n {{allow}}\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_CODEC\' | translate }}\n </span>\n </div>\n <!-- END CODEC -->\n\n <!-- <div class="form-body" data-ng-init="initVoiceQueues()">\n <label class="control-label">{{ \'APPLICATION_QUEUES\' | translate}}</label>\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-queues-voice">\n </div>\n </div>\n </div> -->\n\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n </form>\n </wz-step>\n\n <!-- <wz-step title="{{\'APPLICATION_CHAT\' | translate}}">\n <form name="forms.chat">\n <div class="form-body" data-ng-init="initChatQueues()">\n <label class="control-label">{{ \'APPLICATION_QUEUES\' | translate}}</label>\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-queues-chat">\n </div>\n </div>\n </div>\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n </form>\n </wz-step> -->\n\n <!-- <wz-step title="{{\'APPLICATION_MAIL\' | translate}}">\n <form name="forms.mail">\n <div class="form-body" data-ng-init="initMailQueues()">\n <label class="control-label">{{ \'APPLICATION_QUEUES\' | translate}}</label>\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-queues-mail">\n </div>\n </div>\n </div>\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n </form>\n </wz-step> -->\n\n\n <!-- <wz-step title="{{\'APPLICATION_SMS\' | translate}}">\n <form name="forms.sms">\n <div class="form-body" data-ng-init="initSmsQueues()">\n <label class="control-label">{{ \'APPLICATION_QUEUES\' | translate}}</label>\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-queues-sms">\n </div>\n </div>\n </div>\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n </form>\n </wz-step> -->\n\n <!-- <wz-step title="{{\'APPLICATION_FAX\' | translate}}">\n <form name="forms.fax">\n <div class="form-body" data-ng-init="initFaxQueues()">\n <label class="control-label">{{ \'APPLICATION_QUEUES\' | translate}}</label>\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-queues-fax">\n </div>\n </div>\n </div>\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n </form>\n </wz-step> -->\n\n <!-- <wz-step title="{{\'APPLICATION_OPEN_CHANNEL\' | translate}}">\n <form name="forms.openchannel">\n <div class="form-body" data-ng-init="initOpenchannelQueues()">\n <label class="control-label">{{ \'APPLICATION_QUEUES\' | translate}}</label>\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-queues-openchannel">\n </div>\n </div>\n </div>\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n </form>\n </wz-step> -->\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END PORTLET-->\n</div>\n'),a.put("app/staff/team/list/create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_TEAM\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="ok()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/staff/team/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-puzzle"></i>\n <a href="#">{{ \'APPLICATION_STAFF\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-shield"></i>\n <a href="/staff/teams/list">{{ \'APPLICATION_TEAMS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-shield font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_TEAMS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <a class="btn green-jungle" href="#" data-ng-click="createItem()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_TEAM\' | translate }}\n </a>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/staff/team/view/view.agents.html",'<div class="row" data-ng-init="initAgents()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_AGENTS\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body">\n <!-- GENERAL TAB -->\n <!-- BEGIN PORTLET-->\n <!-- BEGIN FORM-->\n <form action="index.html" class="form-horizontal form-row-seperated">\n <div class="form-body">\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-team">\n </div>\n </div>\n </div>\n </form>\n <!-- END FORM-->\n <!-- END PORTLET-->\n <!-- END GENERAL TAB -->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/staff/team/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-puzzle"></i>\n <a href="#">{{ \'APPLICATION_STAFF\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-shield"></i>\n <a href="/staff/teams/list">{{ \'APPLICATION_TEAMS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <a href="#">{{team.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img ng-src="assets/images/media/team.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{team.name}}\n </div>\n\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.staff.teams.view.settings\')}">\n <a data-ng-href="/staff/teams/view/{{team.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.staff.teams.view.agents\')}">\n <a data-ng-href="/staff/teams/view/{{team.id}}/agents">\n <i class="icon-people"></i>\n {{ \'APPLICATION_AGENTS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content"></div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/staff/team/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_PROFILE\' | translate}} {{ \'APPLICATION_ACCOUNT\' | translate}}</span>\n </div>\n </div>\n\n <div class="portlet-body">\n <!-- PERSONAL INFO TAB -->\n <div>\n\n <form name="forms.info" data-ng-submit="updateItem()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="team.name" required/>\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="team.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END PERSONAL INFO TAB -->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/staff/telephone/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-puzzle"></i>\n <a href="#">{{ \'APPLICATION_STAFF\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-phone"></i>\n <a href="/staff/telephones/list">{{ \'APPLICATION_TELEPHONES\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-phone font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_TELEPHONES\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <a class="btn green-jungle" href="/staff/telephones/wizard" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_TELEPHONE\' | translate }}\n </a>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/staff/telephone/view/view.account.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_ACCOUNT\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_ACCOUNT\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-ng-show="Auth.isAdmin() || item.id === getCurrentTelephone().id" data-target="#tab_1_2" data-toggle="tab">{{ \'APPLICATION_CHANGE_PASSWORD\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- PERSONAL INFO TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.info" data-ng-submit="forms.info.$valid && updateItem()" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$invalid}">\n <label class="control-label">{{\'APPLICATION_FULLNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="fullname" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.fullname" required/>\n <span data-ng-show="(forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}</label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="item.name" disabled/>\n </div>\n <!-- END USERNAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END PERSONAL INFO TAB -->\n\n <!-- CHANGE PASSWORD TAB -->\n <div class="tab-pane" id="tab_1_2" data-ng-show="Auth.isAdmin() || item.id === getCurrentTelephone().id">\n <form name="forms.changePwd" data-ng-submit="forms.changePwd.$valid && updatePassword()" novalidate>\n <!-- START CURRENT PWD -->\n <!-- <div class="form-group" data-ng-if="!Auth.isAdmin()" data-ng-class="{\'has-error\': (forms.changePwd.current_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.current_pwd.$invalid}">\n <label class="control-label">{{\'APPLICATION_CURRENT_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="current_pwd" placeholder="{{\'APPLICATION_CURRENT_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.currentPwd" required/>\n <span data-ng-show="(forms.changePwd.current_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.current_pwd.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div> -->\n <!-- END CURRENT PWD -->\n <!-- START NEW PWD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.changePwd.new_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.new_pwd.$invalid}">\n <label class="control-label">{{\'APPLICATION_NEW_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="new_pwd" placeholder="{{\'APPLICATION_NEW_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.newPwd" data-ng-pattern="setting.securePassword ? settings.patternPassword : settings.patternPasswordLight" required/>\n <span class="help-block">\n {{setting.securePassword ? \'MESSAGE_PASSWORD_FORMAT\' : \'MESSAGE_PASSWORD_LIGHT_FORMAT\' | translate}}\n </span>\n <span data-ng-show="(forms.changePwd.new_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.new_pwd.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NEW PWD -->\n <!-- START RE-NEW PWD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.changePwd.re_new_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.re_new_pwd.$invalid}">\n <label class="control-label">{{\'APPLICATION_RE_TYPE_NEW_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="re_new_pwd" placeholder="{{\'APPLICATION_RE_TYPE_NEW_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.reNewPwd" nx-equal="item.newPwd" required/>\n <span data-ng-show="(forms.changePwd.new_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.new_pwd.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END RE-NEW PWD -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END CHANGE PASSWORD TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'), -a.put("app/staff/telephone/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-puzzle"></i>\n <a href="#">{{ \'APPLICATION_STAFF\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-phone"></i>\n <a href="/staff/telephones/list">{{ \'APPLICATION_TELEPHONES\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <a href="#">{{item.fullname}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR TELEPHONEPIC -->\n <div class="profile-userpic">\n <img data-ng-src="assets/images/media/telephone.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR TELEPHONEPIC -->\n <!-- SIDEBAR TELEPHONE TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{item.fullname}}\n </div>\n <div class="profile-usertitle-job">\n {{item.role}}\n </div>\n </div>\n <!-- END SIDEBAR TELEPHONE TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.staff.telephones.view.account\')}">\n <a data-ng-href="/staff/telephones/view/{{item.id}}/account">\n <i class="icon-phone"></i>\n {{ \'APPLICATION_ACCOUNT\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.staff.telephones.view.voice\')}" data-ng-show="Auth.isAdmin()">\n <a data-ng-href="/staff/telephones/view/{{item.id}}/voice">\n <i class="icon-earphones-alt"></i>\n {{ \'APPLICATION_VOICE\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/staff/telephone/view/view.voice.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_ACCOUNT\' | translate}} {{ \'APPLICATION_VOICE\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body">\n <form name="forms.info" data-ng-submit="updateItem()" novalidate>\n\n <!-- START INTERNAL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.internal.$touched || forms.info.$submitted) && forms.info.internal.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERNAL_NUMBER\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="1" name="internal" placeholder="{{\'APPLICATION_INTERNAL_NUMBER\' | translate}}" class="form-control" data-ng-model="item.internal" required readonly/>\n <span data-ng-show="(forms.info.internal.$touched || forms.info.$submitted) && forms.info.internal.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.internal.$touched || forms.info.$submitted) && forms.info.internal.$error.ngRemoteValidate" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_EXIST_INTERNAL\' | translate}}.\n </span>\n </div>\n <!-- END INTERNAL -->\n\n <!-- START TRANSPORT -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TRANSPORT\' | translate}}</label>\n <ui-select multiple name="transport" ng-model="item.transport" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="Select transport...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="transport in [\'udp\', \'tcp\', \'ws\', \'wss\'] | filter: $select.search">\n {{transport}}\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_TRANSPORT\' | translate }}\n </span>\n </div>\n <!-- END TRANSPORT -->\n\n <!-- START CODEC -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ALLOWED_CODECS\' | translate}}</label>\n <ui-select multiple ng-model="item.allow" name="allow" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="Select codec...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="allow in [\'g722\', \'g729\', \'ilbc\', \'gsm\', \'ulaw\', \'alaw\', \'opus\'] | filter: $select.search">\n {{allow}}\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_CODEC\' | translate }}\n </span>\n </div>\n <!-- END CODEC -->\n\n <!-- START CALLGROUP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.voice.callgroup.$touched || forms.voice.$submitted) && forms.voice.callgroup.$invalid}">\n <label class="control-label">{{\'APPLICATION_CALLGROUP\' | translate}}</label>\n <input type="text" name="callgroup" placeholder="{{\'APPLICATION_CALLGROUP\' | translate}}" class="form-control" data-ng-model="item.callgroup"/>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_CALLGROUP\' | translate }}\n </span>\n <span data-ng-show="(forms.voice.callgroup.$touched || forms.voice.$submitted) && forms.voice.callgroup.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CALLGROUP -->\n\n <!-- START PICKUPGROUP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.voice.pickupgroup.$touched || forms.voice.$submitted) && forms.voice.pickupgroup.$invalid}">\n <label class="control-label">{{\'APPLICATION_PICKUPGROUP\' | translate}}</label>\n <input type="text" name="pickupgroup" placeholder="{{\'APPLICATION_PICKUPGROUP\' | translate}}" class="form-control" data-ng-model="item.pickupgroup"/>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_PICKUPGROUP\' | translate }}\n </span>\n <span data-ng-show="(forms.voice.pickupgroup.$touched || forms.voice.$submitted) && forms.voice.pickupgroup.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PICKUPGROUP -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/staff/telephone/wizard/wizard.html",'<div class="col-md-12">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-puzzle"></i>\n <a href="#">{{ \'APPLICATION_STAFF\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-phone"></i>\n <a href="/staff/telephones/list">{{ \'APPLICATION_TELEPHONES\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-options"></i>\n <a href="/staff/telephones/wizard">{{ \'APPLICATION_WIZARD\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered" data-ng-init="getFirstFreeInternal();">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-phone font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_TELEPHONE\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_ACCOUNT\' | translate}}" canexit="exitValidation(forms.info.$valid)">\n <form name="forms.info" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$invalid}">\n <label class="control-label">{{\'APPLICATION_FULLNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="fullname" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.fullname" required/>\n <span data-ng-show="(forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="item.name" ata-ng-pattern="settings.patternName" required />\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$error.ngRemoteValidate" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_EXIST_USERNAME\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.password" data-ng-pattern="setting.securePassword ? settings.patternPassword : settings.patternPasswordLight" required/>\n <span class="help-block">\n {{setting.securePassword ? \'MESSAGE_PASSWORD_FORMAT\' : \'MESSAGE_PASSWORD_LIGHT_FORMAT\' | translate}}\n </span>\n <span data-ng-show="(forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START RE PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.rpassword.$touched || forms.info.$submitted) && forms.info.rpassword.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="rpassword" placeholder="{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.rpassword" nx-equal="item.password" required/>\n <span data-ng-show="(forms.info.rpassword.$touched || forms.info.$submitted) && forms.info.rpassword.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.rpassword.$touched || forms.info.$submitted) && forms.info.rpassword.$error.nxEqual" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_PASSWORD\' | translate}}.\n </span>\n </div>\n <!-- END RE PASSWORD -->\n\n <!-- START INTERNAL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.internal.$touched || forms.info.$submitted) && forms.info.internal.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERNAL_NUMBER\' | translate}}<span class="required" aria-required="true">*</span></label>\n <div class="input-group">\n <input type="number" min="1" name="internal" placeholder="{{\'APPLICATION_INTERNAL_NUMBER\' | translate}}" class="form-control" data-ng-model="item.internal" data-ng-disabled="!item.internalEnabled" data-ng-required="item.internalEnabled"/>\n <span class="input-group-addon">\n <input type="checkbox" data-ng-model="item.internalEnabled">\n </span>\n </div>\n <span data-ng-show="(forms.info.internal.$touched || forms.info.$submitted) && forms.info.internal.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERNAL -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_VOICE\' | translate}}" canexit="exitValidation(forms.voice.$valid)">\n <form name="forms.voice" novalidate>\n\n <!-- START TRANSPORT -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TRANSPORT\' | translate}}</label>\n <ui-select multiple name="transport" ng-model="item.transport" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="Select transport...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="transport in [\'udp\', \'tcp\', \'ws\', \'wss\'] | filter: $select.search">\n {{transport}}\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_TRANSPORT\' | translate }}\n </span>\n </div>\n <!-- END TRANSPORT -->\n\n <!-- START CODEC -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ALLOWED_CODECS\' | translate}}</label>\n <ui-select multiple ng-model="item.allow" name="allow" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="Select codec...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="allow in [\'g722\', \'g729\', \'ilbc\', \'gsm\', \'ulaw\', \'alaw\', \'opus\'] | filter: $select.search">\n {{allow}}\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_CODEC\' | translate }}\n </span>\n </div>\n <!-- END CODEC -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END PORTLET-->\n</div>\n'),a.put("app/staff/user/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-puzzle"></i>\n <a href="#">{{ \'APPLICATION_STAFF\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-eye"></i>\n <a href="#">{{ \'APPLICATION_USERS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-eye font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_USERS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <a class="btn green-jungle" href="/staff/users/wizard" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_USER\' | translate }}\n </a>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/staff/user/view/view.account.html",'<div class="row" data-ng-init="checkUser()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_PROFILE\' | translate}} {{ \'APPLICATION_ACCOUNT\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_PERSONAL_INFO\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{ \'APPLICATION_CHANGE_AVATAR\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-ng-show="Auth.isAdmin() || user.id === getCurrentUser().id" data-target="#tab_1_3" data-toggle="tab">{{ \'APPLICATION_CHANGE_PASSWORD\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- PERSONAL INFO TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.info" data-ng-submit="updateItem()" novalidate>\n\n <!-- START ROLE -->\n <div class="form-group" data-ng-if="Auth.getCurrentUser().role === \'admin\' && Auth.getCurrentUser().id !== user.id">\n <label class="control-label">{{ \'APPLICATION_ROLE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select name="role" data-ng-model="user.role" theme="bootstrap" required>\n <ui-select-match placeholder="Select role...">{{$select.selected | uppercase}}</ui-select-match>\n <ui-select-choices repeat="role in [\'user\', \'admin\'] | filter: $select.search">\n {{role | uppercase}}\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END ROLE -->\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$invalid}">\n <label class="control-label">{{\'APPLICATION_FULLNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="fullname" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="user.fullname" required/>\n <span data-ng-show="(forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}</label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="user.name" disabled/>\n </div>\n <!-- END USERNAME -->\n\n <!-- START EMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="email" name="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" class="form-control" data-ng-model="user.email" required/>\n <span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.email" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END EMAIL -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="user.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END PERSONAL INFO TAB -->\n\n <!-- CHANGE AVATAR TAB -->\n <div class="tab-pane" id="tab_1_2">\n <form action="#" role="form">\n <div class="form-group">\n <div class="fileinput fileinput-new" data-provides="fileinput">\n <div class="fileinput-new thumbnail" style="width: 200px; height: 150px;">\n <img ng-src="assets/images/media/noProfileImage.png" alt=""/>\n </div>\n <div class="fileinput-preview fileinput-exists thumbnail" style="max-width: 200px; max-height: 150px;">\n </div>\n <div>\n <span class="btn default btn-file" data-ng-show="!uploader.queue[0]">\n <span> {{ \'APPLICATION_SELECT_IMAGE\' | translate }} </span>\n <input type="file" nv-file-select="" uploader="uploader" /><br/>\n </span>\n <button type="button" class="btn default" data-ng-show="uploader.queue[0]" data-dismiss="fileinput" ng-click="uploader.queue[0].remove()">\n <span> {{ \'APPLICATION_REMOVE\' | translate }} </span>\n </button>\n <button type="button" class="btn green-haze" data-ng-show="uploader.queue[0]" data-ng-click="uploader.queue[0].upload()" ng-disabled="uploader.queue[0].isReady || uploader.queue[0].isUploading || uploader.queue[0].isSuccess">\n <span> {{ \'APPLICATION_CONFIRM\' | translate }} </span>\n </button>\n </div>\n <p>\n </br> {{ \'MESSAGE_SUPPORTED_FORMATS\' | translate }} <b>jpg, png, jpeg</b>.\n </p>\n </div>\n </div>\n </form>\n <div class="row">\n <div class="col-md-2">\n <table class="table" border="0">\n <tbody>\n <tr data-ng-repeat="item in uploader.queue">\n <td style="border-top-style:none">\n <strong>\n {{ item.file.name }}\n </strong>\n </td>\n <td data-ng-show="uploader.isHTML5" nowrap style="border-top-style:none">\n {{ item.file.size/1024/1024|number:2 }} MB\n </td>\n <td nowrap style="border-top-style:none">\n <button type="button" class="btn btn-danger btn-xs" data-ng-click="item.remove()">\n <span class="glyphicon glyphicon-trash"></span> Remove\n </button>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n <!-- END CHANGE AVATAR TAB -->\n <!-- CHANGE PASSWORD TAB -->\n <div class="tab-pane" id="tab_1_3" data-ng-show="Auth.isAdmin() || user.id === getCurrentUser().id">\n <form name="forms.changePwd" data-ng-submit="forms.changePwd.$valid && updatePassword()" novalidate>\n <!-- START CURRENT PWD -->\n <div class="form-group" data-ng-if="!Auth.isAdmin()" data-ng-class="{\'has-error\': (forms.changePwd.current_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.current_pwd.$invalid}">\n <label class="control-label">{{\'APPLICATION_CURRENT_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="current_pwd" placeholder="{{\'APPLICATION_CURRENT_PASSWORD\' | translate}}" class="form-control" data-ng-model="user.currentPwd" required/>\n <span data-ng-show="(forms.changePwd.current_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.current_pwd.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CURRENT PWD -->\n <!-- START NEW PWD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.changePwd.new_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.new_pwd.$invalid}">\n <label class="control-label">{{\'APPLICATION_NEW_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="new_pwd" placeholder="{{\'APPLICATION_NEW_PASSWORD\' | translate}}" class="form-control" data-ng-model="user.newPwd" data-ng-pattern="setting.securePassword ? settings.patternPassword : settings.patternPasswordLight" required/>\n <span class="help-block">\n {{setting.securePassword ? \'MESSAGE_PASSWORD_FORMAT\' : \'MESSAGE_PASSWORD_LIGHT_FORMAT\' | translate}}\n </span>\n <span data-ng-show="(forms.changePwd.current_pwd.$touched || forms.info.$submitted) && forms.changePwd.current_pwd.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n <span data-ng-show="(forms.changePwd.new_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.new_pwd.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NEW PWD -->\n <!-- START RE-NEW PWD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.changePwd.re_new_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.re_new_pwd.$invalid}">\n <label class="control-label">{{\'APPLICATION_RE_TYPE_NEW_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="re_new_pwd" placeholder="{{\'APPLICATION_RE_TYPE_NEW_PASSWORD\' | translate}}" class="form-control" data-ng-model="user.reNewPwd" nx-equal="user.newPwd" required/>\n <span data-ng-show="(forms.changePwd.new_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.new_pwd.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END RE-NEW PWD -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END CHANGE PASSWORD TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/staff/user/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-puzzle"></i>\n <a href="#">{{ \'APPLICATION_STAFF\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-eye"></i>\n <a href="/staff/users/list">{{ \'APPLICATION_USERS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <a href="#">{{user.fullname}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-userpic">\n <img ng-src="api/users/avatar/{{user.userpic ? user.userpic : \'unknown_avatar\'}}" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{user.fullname}}\n </div>\n <div class="profile-usertitle-job">\n {{user.role}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.staff.users.view.account\')}">\n <a data-ng-href="/staff/users/view/{{user.id}}/account">\n <i class="icon-user"></i>\n {{ \'APPLICATION_ACCOUNT\' | translate}}\n </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.staff.users.view.voice\')}" data-ng-show="Auth.isAdmin()">\n <a data-ng-href="/staff/users/view/{{user.id}}/voice">\n <i class="icon-earphones-alt"></i>\n {{ \'APPLICATION_VOICE\' | translate}}\n </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.staff.users.view.permit\')}" data-ng-show="Auth.isAdmin() && user.role != \'admin\'">\n <a data-ng-href="/staff/users/view/{{user.id}}/permit/voice">\n <i class="icon-key"></i>\n {{ \'APPLICATION_PERMITS\' | translate}}\n </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'), -a.put("app/staff/user/view/view.permit.chat.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12" data-ng-init="initChatQueues()">\n <!-- BEGIN FORM-->\n <form action="#" class="form-horizontal form-row-seperated">\n <div class="form-body">\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-permit">\n </div>\n </div>\n </div>\n </form>\n <!-- END FORM-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/staff/user/view/view.permit.fax.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12" data-ng-init="initFaxQueues()">\n <!-- BEGIN FORM-->\n <form action="#" class="form-horizontal form-row-seperated">\n <div class="form-body">\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-permit">\n </div>\n </div>\n </div>\n </form>\n <!-- END FORM-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/staff/user/view/view.permit.html","<!-- BEGIN PAGE CONTENT-->\n<div class=\"row\">\n <div class=\"col-md-12\">\n <div>\n <nav class=\"navbar navbar-default\" role=\"navigation\">\n <div class=\"collapse navbar-collapse\">\n <ul class=\"nav navbar-nav\">\n <li data-ng-class=\"{'active': $state.is('main.staff.users.view.permit.voice')}\">\n <a href=\"/staff/users/view/{{user.id}}/permit/voice\">\n <i class=\"icon-earphones-alt\"></i> {{'APPLICATION_VOICE' | translate}}\n </a>\n </li>\n <li data-ng-class=\"{'active': $state.is('main.staff.users.view.permit.chat'),'disabled-link':!license.chat}\" data-ng-show=\"Auth.isAdmin() || userModules[8]\">\n <a href=\"{{license.chat ? '/staff/users/view/'+user.id+'/permit/chat' : 'javascript:;'}}\" class=\"disable-target\">\n <i class=\"icon-bubble\"></i> {{'APPLICATION_CHAT' | translate}}\n </a>\n </li>\n <li data-ng-class=\"{'active': $state.is('main.staff.users.view.permit.mail'),'disabled-link':!license.mail}\" data-ng-show=\"Auth.isAdmin() || userModules[9]\">\n <a href=\"{{license.mail ? '/staff/users/view/'+user.id+'/permit/mail' : 'javascript:;'}}\" class=\"disable-target\">\n <i class=\"icon-envelope\"></i>{{'APPLICATION_MAIL' | translate}}\n </a>\n </li>\n <li data-ng-class=\"{'active': $state.is('main.staff.users.view.permit.fax'),'disabled-link':!license.fax}\" data-ng-show=\"Auth.isAdmin() || userModules[10]\">\n <a href=\"{{license.fax ? '/staff/users/view/'+user.id+'/permit/fax' : 'javascript:;'}}\" class=\"disable-target\">\n <i class=\"fa fa-fax\"></i> {{'APPLICATION_FAX' | translate}}\n </a>\n </li>\n <li data-ng-class=\"{'active': $state.is('main.staff.users.view.permit.sms'),'disabled-link':!license.messaging}\" data-ng-show=\"Auth.isAdmin() || userModules[11]\">\n <a href=\"{{license.messaging ? '/staff/users/view/'+user.id+'/permit/sms' : 'javascript:;'}}\" class=\"disable-target\">\n <i class=\"glyphicon glyphicon-comment\"></i> {{'APPLICATION_SMS' | translate}}\n </a>\n </li>\n <li data-ng-class=\"{'active': $state.is('main.staff.users.view.permit.openchannel'),'disabled-link':!license.openchannel}\" data-ng-show=\"Auth.isAdmin() || userModules[20]\">\n <a href=\"{{license.openchannel ? '/staff/users/view/'+user.id+'/permit/openchannel' : 'javascript:;'}}\" class=\"disable-target\">\n <i class=\"icon-globe\"></i> {{'APPLICATION_OPEN_CHANNEL' | translate}}\n </a>\n </li>\n <li data-ng-class=\"{'active': $state.is('main.staff.users.view.permit.modules')}\" data-ng-if=\"user.role !== 'admin'\">\n <a href=\"/staff/users/view/{{user.id}}/permit/modules\">\n <i class=\"icon-menu\"></i> {{'APPLICATION_MODULES' | translate}}\n </a>\n </li>\n </ul>\n </div>\n </nav>\n </div>\n <div ui-view></div>\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n"),a.put("app/staff/user/view/view.permit.mail.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12" data-ng-init="initMailQueues()">\n <!-- BEGIN FORM-->\n <form action="#" class="form-horizontal form-row-seperated">\n <div class="form-body">\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-permit">\n </div>\n </div>\n </div>\n </form>\n <!-- END FORM-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/staff/user/view/view.permit.modules.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row left-margin" data-ng-init="getModules()">\n <div data-ng-repeat="module in modules" data-ng-if="!module.ModuleId && ((module.id === 8 && license.chat) || (module.id === 9 && license.mail) || (module.id === 10 && license.fax) || (module.id === 11 && license.messaging) || (module.id === 20 && license.openchannel) || !_.includes([8,9,10,11,20],module.id))">\n <div class="form-group" data-ng-class="{\'left-margin-40\':module.ModuleId}">\n <span data-ng-if="module.ModuleId">└──</span> <input\n bs-switch\n class="form-control"\n ng-model="module.status"\n type="checkbox"\n data-ng-change="updatePermissions(module)"\n switch-active="{{ moduleSwitch.isActive }}"\n switch-on-text="{{ moduleSwitch.onText }}"\n switch-off-text="{{ moduleSwitch.offText }}"\n switch-on-color="{{ moduleSwitch.onColor }}"\n switch-off-color="{{ moduleSwitch.offColor }}"\n switch-animate="{{ moduleSwitch.animate }}"\n switch-size="{{ moduleSwitch.size }}"\n switch-label="{{ moduleSwitch.label }}"\n switch-icon="{{ moduleSwitch.icon }}"\n switch-radio-off="{{ moduleSwitch.radioOff }}"\n switch-label-width="{{ moduleSwitch.labelWidth }}"\n switch-handle-width="{{ moduleSwitch.handleWidth }}">\n <label class="control-label">{{module.title | translate | trusted}}</label>\n </div>\n <div ng-slide-down="module.status" lazy-render duration="0.5">\n <div data-ng-repeat="subModule in module.SubModules" data-ng-if="(subModule.id === 8 && license.chat) || (subModule.id === 9 && license.mail) || (subModule.id === 10 && license.fax) || (subModule.id === 11 && license.messaging) || (subModule.id === 20 && license.openchannel) || !_.includes([8,9,10,11,20],subModule.id)">\n <div class="form-group" data-ng-class="{\'left-margin-40\':module.ModuleId}">\n <span>└──</span> <input\n bs-switch\n class="form-control"\n ng-model="subModule.status"\n type="checkbox"\n data-ng-change="updatePermissions(subModule)"\n switch-active="{{ moduleSwitch.isActive }}"\n switch-on-text="{{ moduleSwitch.onText }}"\n switch-off-text="{{ moduleSwitch.offText }}"\n switch-on-color="{{ moduleSwitch.onColor }}"\n switch-off-color="{{ moduleSwitch.offColor }}"\n switch-animate="{{ moduleSwitch.animate }}"\n switch-size="{{ moduleSwitch.size }}"\n switch-label="{{ moduleSwitch.label }}"\n switch-icon="{{ moduleSwitch.icon }}"\n switch-radio-off="{{ moduleSwitch.radioOff }}"\n switch-label-width="{{ moduleSwitch.labelWidth }}"\n switch-handle-width="{{ moduleSwitch.handleWidth }}">\n <label class="control-label">{{subModule.title | translate}}</label>\n </div>\n <div ng-slide-down="subModule.status" lazy-render duration="0.5">\n <div data-ng-repeat="subModule2 in subModule.SubModules" class="form-group" data-ng-class="{\'left-margin-40\':module.ModuleId}">\n <span style="margin-left:40px">└──</span> <input\n bs-switch\n class="form-control"\n ng-model="subModule2.status"\n type="checkbox"\n data-ng-change="updatePermissions(subModule2)"\n switch-active="{{ moduleSwitch.isActive }}"\n switch-on-text="{{ moduleSwitch.onText }}"\n switch-off-text="{{ moduleSwitch.offText }}"\n switch-on-color="{{ moduleSwitch.onColor }}"\n switch-off-color="{{ moduleSwitch.offColor }}"\n switch-animate="{{ moduleSwitch.animate }}"\n switch-size="{{ moduleSwitch.size }}"\n switch-label="{{ moduleSwitch.label }}"\n switch-icon="{{ moduleSwitch.icon }}"\n switch-radio-off="{{ moduleSwitch.radioOff }}"\n switch-label-width="{{ moduleSwitch.labelWidth }}"\n switch-handle-width="{{ moduleSwitch.handleWidth }}">\n <label class="control-label">{{subModule2.title | translate}}</label>\n </div>\n </div>\n </div>\n </div>\n </div>\n <!-- END PAGE CONTENT-->\n'),a.put("app/staff/user/view/view.permit.openchannel.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12" data-ng-init="initOpenchannelQueues()">\n <!-- BEGIN FORM-->\n <form action="#" class="form-horizontal form-row-seperated">\n <div class="form-body">\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-permit">\n </div>\n </div>\n </div>\n </form>\n <!-- END FORM-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/staff/user/view/view.permit.sms.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12" data-ng-init="initSmsQueues()">\n <!-- BEGIN FORM-->\n <form action="#" class="form-horizontal form-row-seperated">\n <div class="form-body">\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-permit">\n </div>\n </div>\n </div>\n </form>\n <!-- END FORM-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/staff/user/view/view.permit.voice.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12" data-ng-init="initVoiceQueues()">\n <!-- BEGIN FORM-->\n <form action="#" class="form-horizontal form-row-seperated">\n <div class="form-body">\n <div class="form-group last">\n <div class="col-md-12" id="multi-select-permit">\n </div>\n </div>\n </div>\n </form>\n <!-- END FORM-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/staff/user/view/view.voice.html",'<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_ACCOUNT\' | translate}} {{ \'APPLICATION_VOICE\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body">\n <form name="forms.info" data-ng-submit="updateItem()" novalidate>\n\n <!-- START INTERNAL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.internal.$touched || forms.info.$submitted) && forms.info.internal.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERNAL_NUMBER\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="1" name="internal" placeholder="{{\'APPLICATION_INTERNAL_NUMBER\' | translate}}" class="form-control" data-ng-model="user.internal" required readonly/>\n <span data-ng-show="(forms.info.internal.$touched || forms.info.$submitted) && forms.info.internal.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.internal.$touched || forms.info.$submitted) && forms.info.internal.$error.ngRemoteValidate" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_EXIST_INTERNAL\' | translate}}.\n </span>\n </div>\n <!-- END INTERNAL -->\n\n <!-- START TRANSPORT -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TRANSPORT\' | translate}}</label>\n <ui-select multiple name="transport" ng-model="user.transport" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="Select transport...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="transport in [\'udp\', \'tcp\', \'ws\', \'wss\'] | filter: $select.search">\n {{transport}}\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_TRANSPORT\' | translate }}\n </span>\n </div>\n <!-- END TRANSPORT -->\n\n <!-- START CODEC -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_ALLOWED_CODECS\' | translate}}</label>\n <ui-select multiple ng-model="user.allow" name="allow" theme="bootstrap" ng-disabled="disabled">\n <ui-select-match placeholder="Select codec...">{{$item}}</ui-select-match>\n <ui-select-choices repeat="allow in [\'g722\', \'g729\', \'ilbc\', \'gsm\', \'ulaw\', \'alaw\', \'opus\'] | filter: $select.search">\n {{allow}}\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_CODEC\' | translate }}\n </span>\n </div>\n <!-- END CODEC -->\n\n <!-- START CALLGROUP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.voice.callgroup.$touched || forms.voice.$submitted) && forms.voice.callgroup.$invalid}">\n <label class="control-label">{{\'APPLICATION_CALLGROUP\' | translate}}</label>\n <input type="text" name="callgroup" placeholder="{{\'APPLICATION_CALLGROUP\' | translate}}" class="form-control" data-ng-model="user.callgroup"/>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_CALLGROUP\' | translate }}\n </span>\n <span data-ng-show="(forms.voice.callgroup.$touched || forms.voice.$submitted) && forms.voice.callgroup.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CALLGROUP -->\n\n <!-- START PICKUPGROUP -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.voice.pickupgroup.$touched || forms.voice.$submitted) && forms.voice.pickupgroup.$invalid}">\n <label class="control-label">{{\'APPLICATION_PICKUPGROUP\' | translate}}</label>\n <input type="text" name="pickupgroup" placeholder="{{\'APPLICATION_PICKUPGROUP\' | translate}}" class="form-control" data-ng-model="user.pickupgroup"/>\n <span class="help-block">\n {{ \'DESCRIPTION_VOICE_PICKUPGROUP\' | translate }}\n </span>\n <span data-ng-show="(forms.voice.pickupgroup.$touched || forms.voice.$submitted) && forms.voice.pickupgroup.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PICKUPGROUP -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/staff/user/wizard/wizard.html",'<div class="col-md-12">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-puzzle"></i>\n <a href="#">{{ \'APPLICATION_STAFF\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-eye"></i>\n <a href="/staff/users/list">{{ \'APPLICATION_USERS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-options"></i>\n <a href="/staff/users/wizard">{{ \'APPLICATION_WIZARD\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered" data-ng-init="initWizard();">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-user font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_USER\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_ACCOUNT\' | translate}}" canexit="exitValidation(forms.info.$valid)">\n <form name="forms.info" novalidate>\n\n <!-- START ROLE -->\n <div class="form-group" data-ng-if="Auth.getCurrentUser().role === \'admin\'">\n <label class="control-label">{{ \'APPLICATION_ROLE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select name="role" data-ng-model="item.role" theme="bootstrap" required>\n <ui-select-match placeholder="Select role...">{{$select.selected | uppercase}}</ui-select-match>\n <ui-select-choices repeat="role in [\'user\', \'admin\'] | filter: $select.search">\n {{role | uppercase}}\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END ROLE -->\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$invalid}">\n <label class="control-label">{{\'APPLICATION_FULLNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="fullname" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.fullname" required/>\n <span data-ng-show="(forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="item.name" data-ng-pattern="settings.patternName" required />\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START EMAIL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$invalid}">\n <label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="email" name="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" class="form-control" data-ng-model="item.email" required />\n <span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.email" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END EMAIL -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.password" data-ng-pattern="setting.securePassword ? settings.patternPassword : settings.patternPasswordLight" required/>\n <span class="help-block">\n {{setting.securePassword ? \'MESSAGE_PASSWORD_FORMAT\' : \'MESSAGE_PASSWORD_LIGHT_FORMAT\' | translate}}\n </span>\n <span data-ng-show="(forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START RE PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.rpassword.$touched || forms.info.$submitted) && forms.info.rpassword.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="password" name="rpassword" placeholder="{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.rpassword" nx-equal="item.password" required/>\n <span data-ng-show="(forms.info.rpassword.$touched || forms.info.$submitted) && forms.info.rpassword.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.info.rpassword.$touched || forms.info.$submitted) && forms.info.rpassword.$error.nxEqual" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_PASSWORD\' | translate}}.\n </span>\n </div>\n <!-- END RE PASSWORD -->\n\n <!-- START INTERNAL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.info.internal.$touched || forms.info.$submitted) && forms.info.internal.$invalid}">\n <label class="control-label">{{\'APPLICATION_INTERNAL_NUMBER\' | translate}}<span class="required" aria-required="true">*</span></label>\n <div class="input-group">\n <input type="number" min="1" name="internal" placeholder="{{\'APPLICATION_INTERNAL_NUMBER\' | translate}}" class="form-control" data-ng-model="item.internal" data-ng-disabled="!item.internalEnabled" data-ng-required="item.internalEnabled"/>\n <span class="input-group-addon">\n <input type="checkbox" data-ng-model="item.internalEnabled">\n </span>\n </div>\n <span data-ng-show="(forms.info.internal.$touched || forms.info.$submitted) && forms.info.internal.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INTERNAL -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END PORTLET-->\n</div>\n'),a.put("app/sugarcrm/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-handbag"></i>\n <a href="/sugarcrm/list">{{ \'APPLICATION_SUGARCRM\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-handbag font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_SUGARCRM\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="/sugarcrm/wizard" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_ACCOUNT\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/sugarcrm/view/configuration/list/create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_CONFIGURATION\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.name.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(form.name.$touched || form.name.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START CHANNEL -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.channel.$touched || form.channel.$submitted) && form.channel.$invalid}">\n <label class="control-label">{{\'APPLICATION_CHANNEL\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.channel" name="channel" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_CHANNEL\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="channel.value as channel in channels | filter: $select.search">\n <div data-ng-bind="channel.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form.channel.$touched || form.channel.$submitted) && form.channel.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- START CHANNEL -->\n\n <!-- START VOICE SUBTYPE -->\n <div data-ng-if="item.channel===\'voice\'" class="form-group" data-ng-class="{\'has-error\': (form.channel.$touched || form.channel.$submitted) && form.channel.$invalid}">\n <label class="control-label">{{\'APPLICATION_TYPE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.type" name="type" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_TYPE\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="type in [\'Queue\',\'Outbound\'] | filter: $select.search">\n <div data-ng-bind="type | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form.type.$touched || form.type.$submitted) && form.type.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- START CHANNEL -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/sugarcrm/view/configuration/list/list.html",'<div ui-view class="profile-content">\n <div class="row">\n <div class="col-md-12">\n <div class="portlet light" data-ng-init="initView()">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_CONFIGURATIONS\' | translate}}</span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="#" data-ng-click="createItem()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_CONFIGURATION\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/sugarcrm/view/configuration/view/view.html",'<div class="row" data-ng-init="initView();getConfiguration();getCustomVariables();getFields();getModules();">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_CONFIGURATION\' | translate}}: {{configurationName}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_SUBJECT\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_DESCRIPTION\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_3" data-toggle="tab">{{\'APPLICATION_FIELDS\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_4" data-toggle="tab">{{\'APPLICATION_MAPPING\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- SUBJECT TAB -->\n <div class="tab-pane ui-padding active" id="tab_1_1">\n <div class="row">\n <div class="col-md-11">\n <span class="caption-subject">All following fields will be join by blank space:</span>\n </div>\n <div class="col-md-1 pull-rigth">\n <button class="btn btn-icon-only green" data-ng-click="addItem(\'subject\')"><i class="fa fa-plus"></i></button>\n </div>\n </div>\n <hr>\n <!-- <div id="subject-item-list" ng-scrollbars ng-scrollbars-config="config"> -->\n <div class="row" data-ng-repeat="subjectItem in subjectConfig">\n <div class="col-md-3">\n <ui-select ng-model="subjectItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeType(subjectItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices repeat="item.type as item in fieldType | filter: $select.search">\n <div ng-bind-html="item.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-8" data-ng-if="subjectItem.type==\'string\'">\n <div class="form-group">\n <input type="text" class="form-control" data-ng-model="subjectItem.content" data-ng-change="updateField(subjectItem)">\n </div>\n </div>\n <div class="col-md-8" data-ng-if="subjectItem.type==\'variable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="subjectItem.variableName" data-ng-change="updateField(subjectItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices group-by="groupVariableByGroup" repeat="variable.name as variable in variables | filter: $select.search">\n <div ng-bind-html="variable.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-8" data-ng-if="subjectItem.type==\'customVariable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="subjectItem.VariableId" data-ng-change="updateField(subjectItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="variable.id as variable in customVariables | filter: $select.search">\n <div ng-bind-html="variable.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-1">\n <div class="form-group">\n <button class="btn btn-icon-only red" data-ng-click="removeItem(subjectItem)"><i class="fa fa-times"></i></button>\n </div>\n </div>\n </div>\n <!-- </div> -->\n </div>\n <!-- END SUBJECT TAB -->\n <!-- DESCRIPTION TAB -->\n <div class="tab-pane ui-padding" id="tab_1_2">\n <div class="row">\n <div class="col-md-11">\n <span class="caption-subject">All following fields will be join by new line:</span>\n </div>\n <div class="col-md-1 pull-rigth">\n <button class="btn btn-icon-only green" data-ng-click="addItem(\'description\')"><i class="fa fa-plus"></i></button>\n </div>\n </div>\n <hr>\n <!-- <div id="description-item-list" ng-scrollbars ng-scrollbars-config="config"> -->\n <div class="row" data-ng-repeat="descriptionItem in descriptionConfig">\n <div class="col-md-2">\n <ui-select ng-model="descriptionItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeDescType(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices repeat="item.type as item in descFieldType | filter: $select.search">\n <div ng-bind-html="item.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-9" data-ng-if="descriptionItem.type==\'string\'">\n <div class="form-group">\n <input type="text" class="form-control" data-ng-model="descriptionItem.content" data-ng-change="updateField(descriptionItem)">\n </div>\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\'">\n <input type="text" class="form-control" placeholder="Key" data-ng-model="descriptionItem.key" data-ng-change="updateField(descriptionItem)">\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\'">\n <ui-select ng-model="descriptionItem.keyType" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeDescType(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices repeat="item.type as item in fieldType | filter: $select.search">\n <div ng-bind-html="item.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\' && descriptionItem.keyType==\'string\'">\n <input type="text" class="form-control" placeholder="Value" data-ng-model="descriptionItem.keyContent" data-ng-change="updateField(descriptionItem)">\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\' && descriptionItem.keyType==\'variable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="descriptionItem.variableName" data-ng-change="updateField(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices group-by="groupVariableByGroup" repeat="variable.name as variable in variables | filter: $select.search">\n <div ng-bind-html="variable.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\' && descriptionItem.keyType==\'customVariable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="descriptionItem.VariableId" data-ng-change="updateField(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="variable.id as variable in customVariables | filter: $select.search">\n <div ng-bind-html="variable.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-1">\n <div class="form-group">\n <button class="btn btn-icon-only red" data-ng-click="removeItem(descriptionItem)"><i class="fa fa-times"></i></button>\n </div>\n </div>\n </div>\n <!-- </div> -->\n </div>\n <!-- END DESCRIPTION TAB -->\n <!-- FIELDS TAB -->\n <div class="tab-pane ui-padding" id="tab_1_3">\n <div class="row">\n <div class="col-md-11">\n <span class="caption-subject">Add how to fill the fields present in your account:</span>\n </div>\n <div class="col-md-1 pull-rigth">\n <button class="btn btn-icon-only green" data-ng-click="addItem(\'field\')"><i class="fa fa-plus"></i></button>\n </div>\n </div>\n <hr>\n <!-- <div id="field-item-list" ng-scrollbars ng-scrollbars-config="config"> -->\n <div class="row" data-ng-repeat="fieldItem in fieldConfig">\n <div class="col-md-3">\n <ui-select ng-model="fieldItem.idField" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeFieldType(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.label}}</ui-select-match>\n <ui-select-choices repeat="item.name as item in accountFields | filter: $select.search">\n <div ng-bind-html="item.label | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-8" data-ng-if="getSystemFieldOptions(fieldItem.idField)">\n <div class="form-group">\n <ui-select ng-model="fieldItem.content" theme="bootstrap" ng-disabled="disabled" data-ng-change="updateField(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="item.value as item in getSystemFieldOptions(fieldItem.idField) | filter: $select.search">\n <div ng-bind-html="item.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField)">\n <div class="form-group">\n <ui-select ng-model="fieldItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeType(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices repeat="item.type as item in fieldType | filter: $select.search">\n <div ng-bind-html="item.title | highlight: $select.search | ucfirst"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'string\'">\n <div class="form-group">\n <input type="text" class="form-control" data-ng-model="fieldItem.content" data-ng-change="updateField(fieldItem)">\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'variable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="fieldItem.variableName" data-ng-change="updateField(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices group-by="groupVariableByGroup" repeat="variable.name as variable in variables | filter: $select.search">\n <div ng-bind-html="variable.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'customVariable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="fieldItem.VariableId" data-ng-change="updateField(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="variable.id as variable in customVariables | filter: $select.search">\n <div ng-bind-html="variable.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-1">\n <div class="form-group">\n <button class="btn btn-icon-only red" data-ng-click="removeItem(fieldItem)"><i class="fa fa-times"></i></button>\n </div>\n </div>\n </div>\n <!-- </div> -->\n </div>\n <!-- END FIELDS TAB -->\n <!-- TAG TAB -->\n <div class="tab-pane ui-padding" id="tab_1_4">\n\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="spinner-grid" spinner-start-active="false"></span>\n <!-- END UI-GRID SPINNER -->\n\n <div class="row">\n <div class="col-md-12">\n <span class="caption-subject">Select the mapping procedure that the current configuration will use:</span>\n </div>\n </div>\n <hr>\n <form name="forms.mapping" data-ng-submit="updateMapping()" novalidate>\n\n <!-- DEFAULT MAPPING -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DEFAULT_MAPPING\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="mapping.defaultMapping"\n type="checkbox",\n name="defaultMapping"\n switch-active="{{ defaultMappingSwitch.isActive }}"\n switch-on-text="{{ defaultMappingSwitch.onText }}"\n switch-off-text="{{ defaultMappingSwitch.offText }}"\n switch-on-color="{{ defaultMappingSwitch.onColor }}"\n switch-off-color="{{ defaultMappingSwitch.offColor }}"\n switch-animate="{{ defaultMappingSwitch.animate }}"\n switch-size="{{ defaultMappingSwitch.size }}"\n switch-label="{{ defaultMappingSwitch.label }}"\n switch-icon="{{ defaultMappingSwitch.icon }}"\n switch-radio-off="{{ defaultMappingSwitch.radioOff }}"\n switch-label-width="{{ defaultMappingSwitch.labelWidth }}"\n switch-handle-width="{{ defaultMappingSwitch.handleWidth }}">\n </div>\n <!-- END DEFAULT MAPPING -->\n\n <div class="row" data-ng-if="!mapping.defaultMapping">\n <div class="col-md-6">\n <div class="form-group" data-ng-class="{\'has-error\': (forms.mapping.mappingModule.$touched || forms.mapping.$submitted) && forms.mapping.mappingModule.$invalid}">\n <label class="control-label">{{\'APPLICATION_MAPPING_MODULE\' | translate}} <span class="required" aria-required="true">*</span></label>\n <ui-select ng-model="mapping.mappingModule" theme="bootstrap" name="mappingModule" required ng-disabled="disabled" data-ng-change="updateMappingModule()">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.label}}</ui-select-match>\n <ui-select-choices repeat="item.key as item in accountModules | filter: $select.search">\n <div ng-bind-html="item.label | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.mapping.mappingModule.$touched || forms.mapping.$submitted) && forms.mapping.mappingModule.$invalid && forms.mapping.mappingModule.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n\n <div class="row" data-ng-if="!mapping.defaultMapping">\n <div class="col-md-12">\n <div class="form-group" data-ng-class="{\'has-error\': (forms.mapping.mappingFields.$touched || forms.mapping.$submitted) && forms.mapping.mappingFields.$invalid}">\n <label class="control-label">{{\'APPLICATION_MAPPING_FIELDS\' | translate}} <span class="required" aria-required="true">*</span></label>\n <ui-select multiple data-ng-model="mapping.mappingFields" theme="bootstrap" name="mappingFields" ng-disabled="disabled" required>\n <ui-select-match placeholder="{{ \'APPLICATION_MAPPING_FIELDS\' | translate }}">{{$item.label}}</ui-select-match>\n <ui-select-choices repeat="moduleField.name as moduleField in moduleFields | filter: $select.search">\n {{moduleField.label}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.mapping.mappingFields.$touched || forms.mapping.$submitted) && forms.mapping.mappingFields.$invalid && forms.mapping.mappingFields.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}" data-ng-disabled="forms.mapping.$invalid"/>\n </form>\n </div>\n <!-- END TAG TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'), -a.put("app/sugarcrm/view/view.account.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_ACCOUNT\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERALS\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.formSetting" data-ng-submit="forms.formSetting.$valid && updateItem()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.name" required/>\n <span data-ng-show="forms.formSetting.name.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="account.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="account.username" required/>\n <span data-ng-show="forms.formSetting.username.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START REMOTE ADDRESS -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.remoteUri.$invalid}">\n <label class="control-label">{{\'APPLICATION_REMOTE_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="remoteUri" placeholder="{{\'APPLICATION_REMOTE_ADDRESS\' | translate}}" class="form-control" data-ng-model="account.remoteUri" required />\n <span data-ng-show="forms.formSetting.remoteUri.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="account.password" required/>\n <span data-ng-show="forms.formSetting.apiKey.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START SERVER URL -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.serverUrl.$invalid}">\n <label class="control-label">{{\'APPLICATION_MOTION_ADDRESS\' | translate}}</label>\n <input type="url" name="serverUrl" placeholder="{{\'APPLICATION_MOTION_ADDRESS\' | translate}}" class="form-control" data-ng-model="account.serverUrl"/>\n <span class="help-block">\n {{\'DESCRIPTION_SERVER_URL\' | translate}}.\n </span>\n <span class="help-block help-block-info">\n {{\'MESSAGE_MOTION_ADDRESS_FORMAT\' | translate}}\n </span>\n </div>\n <!-- END SERVER URL -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/sugarcrm/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-handbag"></i>\n <a href="/sugarcrm/list">{{ \'APPLICATION_SUGARCRM\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <a href="#">{{account.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img src="assets/images/media/sugarcrm.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{account.name}}\n </div>\n <div class="profile-usertitle-job">\n {{account.remoteUri}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.sugarcrm.view.account\')}">\n <a ng-href="/sugarcrm/view/{{account.id}}/account">\n <i class="icon-user"></i>\n {{ \'APPLICATION_ACCOUNT\' | translate }} </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.sugarcrm.view.configurations\') || $state.is(\'main.sugarcrm.view.configuration\')}">\n <a ng-href="/sugarcrm/view/{{account.id}}/configurations/list">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_CONFIGURATIONS\' | translate }} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/sugarcrm/wizard/wizard.html",'<!-- BEGIN PAGE HEADER-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-handbag"></i>\n <a href="/sugarcrm/list">{{ \'APPLICATION_SUGARCRM\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n<!-- END PAGE HEADER-->\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initWizard()">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACCOUNT\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_ACCOUNT_INFO\' | translate}}" canexit="exitValidation(forms.formSetting.$valid)">\n <form name="forms.formSetting" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="forms.formSetting.name.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="item.username" required/>\n <span data-ng-show="forms.formSetting.username.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n\n <!-- START REMOTE ADDRESS -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.remoteUri.$invalid}">\n <label class="control-label">{{\'APPLICATION_REMOTE_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="remoteUri" placeholder="{{\'APPLICATION_REMOTE_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.remoteUri" required ng-remote-validate="/api/sugarcrm/accounts/validate/remoteUri"/>\n <span data-ng-show="forms.formSetting.remoteUri.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.formSetting.remoteUri.$touched || forms.formSetting.$submitted) && forms.formSetting.remoteUri.$error.ngRemoteValidate" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_EXIST_DOMAIN\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.password" required/>\n <span data-ng-show="forms.formSetting.apiKey.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START SERVER URL -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.serverUrl.$invalid}">\n <label class="control-label">{{\'APPLICATION_MOTION_ADDRESS\' | translate}}</label>\n <input type="url" name="serverUrl" placeholder="{{\'APPLICATION_MOTION_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.serverUrl"/>\n <span class="help-block">\n {{\'DESCRIPTION_SERVER_URL\' | translate}}.\n </span>\n <span class="help-block help-block-info">\n {{\'MESSAGE_MOTION_ADDRESS_FORMAT\' | translate}}\n </span>\n </div>\n <!-- END SERVER URL -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" data-ng-click="next()"/>\n\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n\n </wizard>\n\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/tools/answer/list/list.create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_CANNED_ANSWER\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.key.$touched || form.$submitted) && form.key.$invalid}">\n <label class="control-label">{{\'APPLICATION_KEY\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="key" placeholder="{{\'APPLICATION_KEY\' | translate}}" class="form-control" data-ng-model="item.key" required/>\n <span data-ng-show="(form.key.$touched || form.$submitted) && form.key.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START VALUE -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.value.$touched || form.$submitted) && form.value.$invalid}">\n <label class="control-label">{{\'APPLICATION_VALUE\' | translate}}<span class="required" aria-required="true">*</span></label></label>\n <textarea type="text" name="value" placeholder="{{\'APPLICATION_VALUE\' | translate}}" class="form-control" data-ng-model="item.value" required></textarea>\n <span data-ng-show="(form.value.$touched || form.$submitted) && form.value.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END VALUE -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/tools/answer/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-wrench"></i>\n <a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-magic-wand"></i>\n <a href="#">{{ \'APPLICATION_CANNED_ANSWERS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-magic-wand font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_CANNED_ANSWERS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <a class="btn green-jungle" href="#" data-toggle="dropdown" data-ng-click="createItem()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_CANNED_ANSWER\' | translate }}\n </a>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/tools/answer/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getAnswer()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-wrench"></i>\n <a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-magic-wand"></i>\n <a href="/tools/answers/list">{{ \'APPLICATION_CANNED_ANSWER\' | translate }}</a>\n <i data-ng-show="answer" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="answer">\n <a href="#">{{answer.key}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/answer.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{answer.name}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.tools.answers.view.settings\')}">\n <a data-ng-href="/tools/answers/view/{{answer.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}}\n </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/tools/answer/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_CANNED_ANSWER\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateAnswer()" novalidate>\n\n <!-- START KEY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.key.$touched || forms.general.$submitted) && forms.general.key.$invalid}">\n <label class="control-label">{{\'APPLICATION_KEY\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="key" placeholder="{{\'APPLICATION_KEY\' | translate}}" class="form-control" data-ng-model="answer.key" required/>\n <span data-ng-show="(forms.general.key.$touched || forms.general.$submitted) && forms.general.key.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END KEY -->\n\n <!-- START VALUE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.value.$touched || forms.general.$submitted) && forms.general.value.$invalid}">\n <label class="control-label">{{\'APPLICATION_VALUE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <textarea type="text" name="value" placeholder="{{\'APPLICATION_VALUE\' | translate}}" class="form-control" data-ng-model="answer.value" required></textarea>\n <span data-ng-show="(forms.general.value.$touched || forms.general.$submitted) && forms.general.value.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END VALUE -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="answer.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ADVANCED TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/tools/automation/list/list.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-wrench"></i>\n <a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-bulb"></i>\n <a href="#">{{ \'APPLICATION_AUTOMATIONS\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-bulb font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_AUTOMATIONS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle " href="/tools/automations/wizard">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_AUTOMATION\' | translate }}\n </a>\n </div>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/tools/automation/view/view.html",'<!-- BEGIN PAGE HEADER-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-settings"></i>\n <a href="/tools/automations/list">{{ \'APPLICATION_AUTOMATIONS\' | translate }}</a>\n <i class="fa fa-angle-right" data-ng-show="automation"></i>\n </li>\n <li data-ng-show="automation">\n <a href="#">{{ automation.description || automation.name }}</a>\n </li>\n </ul>\n </div>\n\n<!-- END PAGE HEADER-->\n\n<!-- BEGIN PAGE CONTENT-->\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/automation.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{ automation.name }}\n </div>\n <div class="profile-usertitle-job">\n {{ automation.description }}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.tools.automations.view.settings\')}">\n <a href="/tools/automations/view/{{automation.id}}/settings">\n <i class="icon-bulb"></i>\n {{ \'APPLICATION_SETTINGS\' | translate }} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/tools/automation/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERALS\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_CONDITIONS\' | translate}} & {{\'APPLICATION_ACTIONS\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <form name="forms.general" data-ng-submit="exitValidation(forms.general.$valid) && updateAutomation()" novalidate>\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="automation.name" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START CHANNEL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.channel.$touched || forms.general.$submitted) && forms.general.channel.$invalid}">\n <label class="control-label">{{\'APPLICATION_CHANNEL\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="channel" placeholder="{{\'APPLICATION_CHANNEL\' | translate}}" class="form-control" data-ng-model="automation.channel" required readonly/>\n <span data-ng-show="(forms.general.channel.$touched || forms.general.$submitted) && forms.general.channel.$invalid && forms.general.channel.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CHANNEL -->\n\n <!-- START TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.timeout.$touched && forms.general.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} ({{\'APPLICATION_MINUTES\' | translate}})</label>\n <input type="number" name="timeout" min="10" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}} (min 10 {{\'APPLICATION_MINUTES\' | translate}})" class="form-control" data-ng-model="automation.timeout" data-ng-init="item.timeout = 10" required/>\n <span data-ng-show="forms.general.timeout.$touched && forms.general.name.$invalid && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TIMEOUT -->\n\n <!-- START STATUS -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_STATUS\' | translate}}</label>\n </br>\n <input bs-switch class="form-control" ng-model="automation.status" type="checkbox" name="status" switch-active="{{ recordSwitch.isActive }}" switch-on-text="{{ recordSwitch.onText }}" switch-off-text="{{ recordSwitch.offText }}" switch-on-color="{{ recordSwitch.onColor }}"\n switch-off-color="{{ recordSwitch.offColor }}" switch-animate="{{ recordSwitch.animate }}" switch-size="{{ recordSwitch.size }}" switch-label="{{ recordSwitch.label }}" switch-icon="{{ recordSwitch.icon }}" switch-radio-off="{{ recordSwitch.radioOff }}"\n switch-label-width="{{ recordSwitch.labelWidth }}" switch-handle-width="{{ recordSwitch.handleWidth }}">\n </div>\n <!-- END STATUS -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="automation.description" />\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}" />\n </div>\n <!-- END GENERAL TAB -->\n <div class="tab-pane" id="tab_1_2">\n <!-- All -->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <i class="icon-tag font-blue-hoki"></i>\n <span class="caption-subject" ng-bind-html="\'APPLICATION_MEET_ALL_CONDITIONS\' | translate"></span>:\n </div>\n </div>\n <div class="portlet-body">\n <div class="portlet light bordered" ng-repeat="all in automation.All">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <span class="caption-subject">{{ \'APPLICATION_ALL\' | translate }} #{{$index+1}}</span>\n </div>\n <div class="actions">\n <a href="#" class="btn red-sunglo btn-icon-only" ng-click="removeCondition(\'All\',$index)"><i class="fa fa-trash"></i></a>\n </div>\n </div>\n <div class="portlet-body">\n <div class="padding-bottom row">\n <div class="col-md-12">\n <condition-builder element="all" serviceindex="automation.channel" service="$automations" form="forms.general"></condition-builder>\n </div>\n </div>\n </div>\n </div>\n <div class="row">\n <div class="col-md-12">\n <button type="button" class="btn btn-sm green padding-bottom" data-ng-click="addCondition(\'All\')">\n <i class="fa fa-plus"></i> {{\'APPLICATION_ADD_CONDITION\' | translate}}\n </button>\n </div>\n </div>\n </div>\n </div>\n\n <!-- Any -->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <i class="icon-tag font-blue-hoki"></i>\n <span class="caption-subject" ng-bind-html="\'APPLICATION_MEET_ANY_CONDITIONS\' | translate"></span>:\n </div>\n </div>\n <div class="portlet-body">\n <div class="portlet light bordered" ng-repeat="any in automation.Any">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <span class="caption-subject">{{ \'APPLICATION_ANY\' | translate }} #{{$index+1}}</span>\n </div>\n <div class="actions">\n <a href="#" class="btn red-sunglo btn-icon-only" ng-click="removeCondition(\'Any\',$index)"><i class="fa fa-trash"></i></a>\n </div>\n </div>\n <div class="portlet-body">\n <div class="padding-bottom row">\n <div class="col-md-12">\n <condition-builder element="any" serviceindex="automation.channel" service="$automations" form="forms.general"></condition-builder>\n </div>\n </div>\n </div>\n </div>\n <div class="row">\n <div class="col-md-12">\n <button type="button" class="btn btn-sm green padding-bottom" data-ng-click="addCondition(\'Any\')">\n <i class="fa fa-plus"></i> {{\'APPLICATION_ADD_CONDITION\' | translate}}\n </button>\n </div>\n </div>\n </div>\n </div>\n\n <!-- Actions -->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <i class="icon-tag font-blue-hoki"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACTIONS\' | translate }}</span>:\n </div>\n </div>\n <div class="portlet-body">\n <div class="portlet light bordered" ng-repeat="action in automation.Actions">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <span class="caption-subject">{{ \'APPLICATION_ACTIONS\' | translate }} #{{$index+1}}</span>\n </div>\n <div class="actions">\n <a href="#" class="btn red-sunglo btn-icon-only" ng-click="removeAction($index)"><i class="fa fa-trash"></i></a>\n </div>\n </div>\n <div class="portlet-body">\n <div class="padding-bottom row">\n <div class="col-md-12">\n <div class="form-group col-md-6" data-ng-class="{\'has-error\': (forms.general[\'action\'+$index].$touched || forms.general.$submitted) && forms.general[\'action\'+$index].$invalid}">\n <ui-select data-ng-model="action.action" theme="bootstrap" data-ng-change="resetActionData(action)" name="action{{$index}}" required>\n <ui-select-match placeholder="{{ \'APPLICATION_ACTION\' | translate }}">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="tAction.value as tAction in $automations.services[automation.channel].actions | filter: $select.search">\n <div ng-bind-html="tAction.name | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'APPLICATION_ACTION\' | translate }}\n </span>\n <span data-ng-show="(forms.general[\'action\'+$index].$touched || forms.general.$submitted) && forms.general[\'action\'+$index].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div ng-switch="action.action">\n <action-builder-status ng-switch-when="status" element="action" form="forms.settings"></action-builder-status>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class="row">\n <div class="col-md-12">\n <button type="button" class="btn btn-sm green padding-bottom" data-ng-click="addAction()">\n <i class="fa fa-plus"></i> {{\'APPLICATION_ADD_ACTION\' | translate}}\n </button>\n </div>\n </div>\n </div>\n </div>\n <div class="has-error" data-ng-show="forms.general.$submitted && !automation.All.length && !automation.Any.length">\n <span class="help-block help-block-error form-control">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INSERT_AT_LEAST_ONE_CONDITION\' | translate}}.\n </span>\n </div>\n <div class="has-error" data-ng-show="forms.general.$submitted && !automation.Actions.length">\n <span class="help-block help-block-error form-control">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INSERT_AT_LEAST_ONE_ACTION\' | translate}}.\n </span>\n </div>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}" />\n </div>\n </div>\n </form>\n </div>\n </div>\n </div>\n</div>\n'), -a.put("app/tools/automation/wizard/wizard.html",'<div class="row">\n <div class="col-md-12">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-settings"></i>\n <a href="/tools/automations/list">{{ \'APPLICATION_AUTOMATIONS\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-bulb font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_AUTOMATIONS\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_GENERAL\' | translate}}" canexit="exitValidation(forms.general.$valid)">\n <form name="forms.general" data-ng-submit="submit()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.name.$touched && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="forms.general.name.$touched && forms.general.name.$invalid && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START STATUS -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_STATUS\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="item.status"\n type="checkbox"\n name="status"\n data-ng-init="item.status = 0"\n switch-active="{{ statusSwitch.isActive }}"\n switch-on-text="{{ statusSwitch.onText }}"\n switch-off-text="{{ statusSwitch.offText }}"\n switch-on-color="{{ statusSwitch.onColor }}"\n switch-off-color="{{ statusSwitch.offColor }}"\n switch-animate="{{ statusSwitch.animate }}"\n switch-size="{{ statusSwitch.size }}"\n switch-label="{{ statusSwitch.label }}"\n switch-icon="{{ statusSwitch.icon }}"\n switch-radio-off="{{ statusSwitch.radioOff }}"\n switch-label-width="{{ statusSwitch.labelWidth }}"\n switch-handle-width="{{ statusSwitch.handleWidth }}">\n </div>\n <!-- END STATUS -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n </form>\n </wz-step>\n <wz-step title="{{\'APPLICATION_SETTINGS\' | translate}}" canexit="exitSettingsValidation(forms.settings.$valid)">\n <form name="forms.settings" novalidate>\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <i class="icon-tag font-blue-hoki"></i>\n <span class="caption-subject">{{ \'APPLICATION_CHANNEL\' | translate }}</span>\n </div>\n </div>\n <div class="portlet-body">\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.channel.$touched || forms.settings.$submitted) && forms.settings.channel.$invalid}">\n <label class="control-label">{{ \'APPLICATION_CHANNEL\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.channel" name="channel" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_CHANNEL\' | translate }}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="channel in $automations.channels | filter: $select.search">\n <div ng-bind-html="channel | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.channel.$touched || forms.settings.$submitted) && forms.settings.channel.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n\n <!-- All -->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <i class="icon-tag font-blue-hoki"></i>\n <span class="caption-subject" ng-bind-html="\'APPLICATION_MEET_ALL_CONDITIONS\' | translate"></span>:\n </div>\n </div>\n <div class="portlet-body">\n <div class="portlet light bordered" ng-repeat="all in item.All">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <span class="caption-subject">{{ \'APPLICATION_ALL\' | translate }} #{{$index+1}}</span>\n </div>\n <div class="actions">\n <a href="#" class="btn red-sunglo btn-icon-only" ng-click="removeCondition(\'All\',$index)"><i class="fa fa-trash"></i></a>\n </div>\n </div>\n <div class="portlet-body">\n <div class="padding-bottom row">\n <div class="col-md-12">\n <condition-builder element="all" serviceindex="item.channel" service="$automations" form="forms.general"></condition-builder>\n </div>\n </div>\n </div>\n </div>\n <div class="row">\n <div class="col-md-12">\n <button type="button" class="btn btn-sm green padding-bottom" data-ng-click="addCondition(\'All\')">\n <i class="fa fa-plus"></i> {{\'APPLICATION_ADD_CONDITION\' | translate}}\n </button>\n </div>\n </div>\n </div>\n </div>\n\n <!-- Any -->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <i class="icon-tag font-blue-hoki"></i>\n <span class="caption-subject" ng-bind-html="\'APPLICATION_MEET_ANY_CONDITIONS\' | translate"></span>:\n </div>\n </div>\n <div class="portlet-body">\n <div class="portlet light bordered" ng-repeat="any in item.Any">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <span class="caption-subject">{{ \'APPLICATION_ANY\' | translate }} #{{$index+1}}</span>\n </div>\n <div class="actions">\n <a href="#" class="btn red-sunglo btn-icon-only" ng-click="removeCondition(\'Any\',$index)"><i class="fa fa-trash"></i></a>\n </div>\n </div>\n <div class="portlet-body">\n <div class="padding-bottom row">\n <div class="col-md-12">\n <condition-builder element="any" serviceindex="item.channel" service="$automations" form="forms.general"></condition-builder>\n </div>\n </div>\n </div>\n </div>\n <div class="row">\n <div class="col-md-12">\n <button type="button" class="btn btn-sm green padding-bottom" data-ng-click="addCondition(\'Any\')">\n <i class="fa fa-plus"></i> {{\'APPLICATION_ADD_CONDITION\' | translate}}\n </button>\n </div>\n </div>\n </div>\n </div>\n\n <!-- Actions -->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <i class="icon-tag font-blue-hoki"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACTIONS\' | translate }}</span>:\n </div>\n </div>\n <div class="portlet-body">\n <div class="portlet light bordered" ng-repeat="action in item.Actions">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <span class="caption-subject">{{ \'APPLICATION_ACTIONS\' | translate }} #{{$index+1}}</span>\n </div>\n <div class="actions">\n <a href="#" class="btn red-sunglo btn-icon-only" ng-click="removeAction($index)"><i class="fa fa-trash"></i></a>\n </div>\n </div>\n <div class="portlet-body">\n <div class="padding-bottom row">\n <div class="col-md-12">\n <div class="form-group col-md-6" data-ng-class="{\'has-error\': (forms.general[\'action\'+$index].$touched || forms.general.$submitted) && forms.general[\'action\'+$index].$invalid}">\n <ui-select data-ng-model="action.action" theme="bootstrap" data-ng-change="resetActionData(action)" name="action{{$index}}" required>\n <ui-select-match placeholder="{{ \'APPLICATION_ACTION\' | translate }}">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="tAction.value as tAction in $automations.services[item.channel].actions | filter: $select.search">\n <div ng-bind-html="tAction.name | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'APPLICATION_ACTION\' | translate }}\n </span>\n <span data-ng-show="(forms.general[\'action\'+$index].$touched || forms.general.$submitted) && forms.general[\'action\'+$index].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div ng-switch="action.action">\n <action-builder-status ng-switch-when="status" element="action" form="forms.settings"></action-builder-status>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class="row">\n <div class="col-md-12">\n <button type="button" class="btn btn-sm green padding-bottom" data-ng-click="addAction()">\n <i class="fa fa-plus"></i> {{\'APPLICATION_ADD_ACTION\' | translate}}\n </button>\n </div>\n </div>\n </div>\n </div>\n <div class="has-error" data-ng-show="forms.settings.$submitted && !item.All.length && !item.Any.length">\n <span class="help-block help-block-error form-control">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INSERT_AT_LEAST_ONE_CONDITION\' | translate}}.\n </span>\n </div>\n <div class="has-error" data-ng-show="forms.settings.$submitted && !item.Actions.length">\n <span class="help-block help-block-error form-control">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INSERT_AT_LEAST_ONE_ACTION\' | translate}}.\n </span>\n </div>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n </form>\n </wz-step>\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/tools/interval/list/list.create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_INTERVAL\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/tools/interval/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-wrench"></i>\n <a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-clock"></i>\n <a href="#">{{ \'APPLICATION_INTERVALS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_INTERVALS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <button class="btn green-jungle " ng-click="createItem()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_INTERVAL\' | translate }}\n </button>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/tools/interval/view/subinterval/list/list.html",'<div ui-view class="profile-content">\n <div class="row">\n <div class="col-md-12">\n <div class="portlet light" data-ng-init="initView()">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SUBINTERVALS\' | translate}}</span>\n </div>\n <div class="actions">\n <div class="btn-group">\n <a class="btn green-jungle" href="/tools/intervals/view/{{stateParams.id}}/subintervals/view/">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_SUBINTERVAL\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/tools/interval/view/subinterval/view/view.html",'<div class="row" data-ng-init="initSubInterval()">\n <div class="col-md-12">\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_SUBINTERVAL\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="addOrUpdateSubInterval()">\n <wz-step title="{{\'APPLICATION_SETTINGS\' | translate}}" canexit="exitValidation(forms.subinterval.name.$valid)">\n <form name="forms.subinterval" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.subinterval.name.$touched || forms.subinterval.$submitted) && forms.subinterval.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="subinterval.name" required/>\n <span data-ng-show="(forms.subinterval.name.$touched || forms.subinterval.$submitted) && forms.subinterval.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START TIME -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n <div class="input-group input-large">\n <fieldset class="pull-left" ng-disabled="splittedInterval.alwaysTime"><uib-timepicker name="t_from" data-ng-model="splittedInterval.t_from" show-meridian="false" show-spinners="false"></uib-timepicker></fieldset>\n <div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n <fieldset ng-disabled="splittedInterval.alwaysTime"><uib-timepicker name="t_to" data-ng-model="splittedInterval.t_to" show-meridian="false" show-spinners="false"></uib-timepicker></fieldset>\n <label class="control-label pointer-cursor margin-top20"><input\n bs-switch\n class="form-control"\n ng-model="splittedInterval.alwaysTime"\n type="checkbox"\n switch-active="{{ switch.isActive }}"\n switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n switch-on-color="{{ switch.onColor }}"\n switch-off-color="{{ switch.offColor }}"\n switch-animate="{{ switch.animate }}"\n switch-size="{{ switch.size }}"\n switch-label="{{ switch.label }}"\n switch-icon="{{ switch.icon }}"\n switch-radio-off="{{ switch.radioOff }}"\n switch-label-width="{{ switch.labelWidth }}"\n switch-handle-width="{{ switch.handleWidth }}"> {{\'APPLICATION_ALWAYS\' | translate}}</label>\n </div>\n </div>\n <!-- END TIME -->\n\n <!-- START WEEKDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="splittedInterval.wd_from" theme="bootstrap" name="wd_from">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{weekDay.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="splittedInterval.wd_to" theme="bootstrap" name="wd_to">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n {{weekDay.name | translate}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END WEEKDAY -->\n\n <!-- START MONTHDAY -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="splittedInterval.md_from" theme="bootstrap" name="md_from">\n <ui-select-match>{{$select.selected===\'always\' ? ($select.selected | capitalize) : $select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="splittedInterval.md_to && splittedInterval.md_to!==\'always\' && monthDay>splittedInterval.md_to && monthDay!==\'always\'">\n {{monthDay===\'always\' ? (monthDay | capitalize) : monthDay}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="splittedInterval.md_to" theme="bootstrap" name="md_to">\n <ui-select-match>{{$select.selected===\'always\' ? ($select.selected | capitalize) : $select.selected}}</ui-select-match>\n <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="splittedInterval.md_from && splittedInterval.md_from!==\'always\' && monthDay<splittedInterval.md_from && monthDay!==\'always\'">\n {{monthDay===\'always\' ? (monthDay | capitalize) : monthDay}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTHDAY -->\n\n\n <!-- START MONTH -->\n <div class="form-group">\n <label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n <div class="input-group input-large">\n <ui-select data-ng-model="splittedInterval.m_from" theme="bootstrap" name="m_from">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{month.name | translate}}\n </ui-select-choices>\n </ui-select>\n <span class="input-group-addon">to</span>\n <ui-select data-ng-model="splittedInterval.m_to" theme="bootstrap" name="m_to">\n <ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n {{month.name | translate}}\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <!-- END MONTH -->\n\n\n\n <button class="btn green-haze" type="submit" ng-click="next()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </form>\n </wz-step>\n\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/tools/interval/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getInterval()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-wrench"></i>\n <a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-clock"></i>\n <a href="/tools/intervals/list">{{ \'APPLICATION_INTERVALS\' | translate }}</a>\n <i data-ng-show="interval" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="interval">\n <a href="#">{{interval.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/interval.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{interval.name}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.tools.intervals.view.settings\')}">\n <a ng-href="/tools/intervals/view/{{interval.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.tools.intervals.view.subintervals.list\') || $state.is(\'main.tools.intervals.view.subintervals.view\')}">\n <a ng-href="/tools/intervals/view/{{interval.id}}/subintervals/list">\n <i class="icon-list"></i>\n {{ \'APPLICATION_SUBINTERVALS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/tools/interval/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_INTERVAL\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateInterval()" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="interval.name" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="interval.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ADVANCED TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/tools/pause/list/list.create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_PAUSE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" data-ng-pattern="/^[^#]/" required/>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/tools/pause/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-wrench"></i>\n <a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-pause"></i>\n <a href="#">{{ \'APPLICATION_PAUSES\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="fa fa-pause font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_PAUSES\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <a class="btn green-jungle" href="#" data-toggle="dropdown" data-ng-click="createItem()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_PAUSE\' | translate }}\n </a>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'), -a.put("app/tools/pause/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getPause()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-wrench"></i>\n <a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-control-pause"></i>\n <a href="/tools/pauses/list">{{ \'APPLICATION_PAUSES\' | translate }}</a>\n <i data-ng-show="pause" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="pause">\n <a href="#">{{pause.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/pause.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{pause.name}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.tools.pauses.view.settings\')}">\n <a data-ng-href="/tools/pauses/view/{{pause.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}}\n </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/tools/pause/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_PAUSE\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updatePause()" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="pause.name" data-ng-pattern="/^[^#]/" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="pause.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ADVANCED TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/tools/scheduler/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-wrench"></i>\n <a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-calendar"></i>\n <a href="#">{{ \'APPLICATION_SCHEDULER\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-link font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_SCHEDULES\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <a class="btn green-jungle" href="/tools/scheduler/wizard" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_SCHEDULE\' | translate }}\n </a>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/tools/scheduler/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-wrench"></i>\n <a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-calendar"></i>\n <a href="/tools/scheduler/list">{{ \'APPLICATION_SCHEDULER\' | translate }}</a>\n <i data-ng-show="schedule" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="schedule">\n <a href="#">{{schedule.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/scheduler.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{schedule.name}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.tools.scheduler.view.settings\')}">\n <a data-ng-href="/tools/scheduler/view/{{schedule.id}}/settings"><i class="icon-settings"></i> {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/tools/scheduler/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_SCHEDULE\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab" data-ng-click="refreshSlider()">{{ \'APPLICATION_CONFIGURATION\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && forms.config.$valid && updateSchedule()" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.$submitted && forms.general.name.$invalid) || forms.general.name.$error.pattern}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="schedule.name" data-ng-pattern="settings.patternName" required/>\n <span data-ng-show="forms.general.$submitted && forms.general.name.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START ACTIVE -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_ACTIVE\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="schedule.active"\n type="checkbox"\n name="status"\n switch-active="{{ switches.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ switches.onColor }}"\n switch-off-color="{{ switches.offColor }}"\n switch-animate="{{ switches.animate }}"\n switch-size="{{ switches.size }}"\n switch-label="{{ switches.label }}"\n switch-icon="{{ switches.icon }}"\n switch-radio-off="{{ switches.radioOff }}"\n switch-label-width="{{ switches.labelWidth }}"\n switch-handle-width="{{ switches.handleWidth }}">\n </div>\n <!-- END ACTIVE -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="schedule.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n <!-- CONFIG TAB -->\n <div class="tab-pane" id="tab_1_2">\n <form name="forms.config" data-ng-switch="schedule.reportType" data-ng-submit="forms.config.$valid && forms.general.$valid && updateSchedule()" data-ng-if="schedule.type===\'report\'" data-ng-init="initReports()" novalidate>\n\n <div class="row">\n\n <!-- START TYPE -->\n <div class="form-group col-md-2" data-ng-class="{\'has-error\': (forms.config.type.$touched || forms.config.$submitted) && forms.config.type.$invalid}">\n <label class="control-label">{{ \'APPLICATION_TYPE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="schedule.reportType" name="type" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_TYPE\' | translate }}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="report in [\'default\', \'custom\'] | filter: $select.search">\n <div ng-bind-html="report | capitalize | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.config.type.$touched || forms.config.$submitted) && forms.config.type.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TYPE -->\n\n\n <!-- START REPORT -->\n <div data-ng-switch-when="default" class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.config.reportId.$touched || forms.config.$submitted) && forms.config.reportId.$invalid}">\n <label class="control-label">{{ \'APPLICATION_REPORT\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="schedule.reportId" name="reportId" theme="bootstrap" on-select="setReportTree($item,$model)" required>\n <ui-select-match placeholder="{{ \'APPLICATION_REPORT\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices group-by="\'parent\'" repeat="report.id as report in defRep | filter: $select.search">\n <div ng-bind-html="report.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.config.reportId.$touched || forms.config.$submitted) && forms.config.reportId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END REPORT -->\n\n <!-- START REPORT -->\n <div data-ng-switch-when="custom" class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.config.reportId.$touched || forms.config.$submitted) && forms.config.reportId.$invalid}">\n <label class="control-label">{{ \'APPLICATION_REPORT\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="schedule.reportId" name="reportId" theme="bootstrap" on-select="setReportTree($item,$model)" required>\n <ui-select-match placeholder="{{ \'APPLICATION_REPORT\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices group-by="\'parent\'" repeat="report.id as report in cusRep | filter: $select.search">\n <div ng-bind-html="report.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.config.reportId.$touched || forms.config.$submitted) && forms.config.reportId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END REPORT -->\n\n <!-- START REPORT -->\n <div class="form-group col-md-2" data-ng-class="{\'has-error\': (forms.config.reportOutput.$touched || forms.config.$submitted) && forms.config.reportOutput.$invalid}">\n <label class="control-label">{{ \'APPLICATION_OUTPUT\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="schedule.reportOutput" name="reportOutput" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_OUTPUT\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="output in [\'CSV\',\'PDF\'] | filter: $select.search">\n <div ng-bind-html="output | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.config.reportOutput.$touched || forms.config.$submitted) && forms.config.reportOutput.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END REPORT -->\n\n </div>\n\n <!-- START TODAY -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_RUN_ON\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n data-ng-model="switchValues.today"\n type="checkbox"\n name="status"\n data-ng-change="checkToday()"\n switch-active="{{ switches.isActive }}"\n switch-on-text="{{ \'APPLICATION_TODAY\' | translate }}"\n switch-off-text="{{ \'APPLICATION_RANGE\' | translate }}"\n switch-on-color="{{ switches.onColor }}"\n switch-off-color="{{ switches.offColor }}"\n switch-animate="{{ switches.animate }}"\n switch-size="{{ switches.size }}"\n switch-label="{{ switches.label }}"\n switch-icon="{{ switches.icon }}"\n switch-radio-off="{{ switches.radioOff }}"\n switch-label-width="{{ switches.labelWidth }}"\n switch-handle-width="{{ switches.handleWidth }}">\n </div>\n <!-- END TODAY -->\n\n <!-- START VALIDITY -->\n <div class="form-group" data-ng-if="switchValues.today">\n <label class="control-label">{{\'APPLICATION_VALIDITY\' | translate}}</label>\n <rzslider rz-slider-model="schedule.validityStart" rz-slider-high="schedule.validityEnd" rz-slider-options="validitySlider"></rzslider>\n </div>\n <!-- END VALIDITY -->\n\n <!-- START RANGE -->\n <div class="form-group" data-ng-if="!switchValues.today" data-ng-class="{\'has-error\': (forms.config.range.$touched || forms.config.$submitted) && forms.config.range.$invalid}">\n <label class="control-label">{{ \'APPLICATION_REPORT_RANGE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="schedule.reportRange" name="range" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_RANGE\' | translate }}">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="range.value as range in reportRanges | filter: $select.search">\n <div ng-bind-html="range.name | highlight: $select.search | translate"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.config.range.$touched || forms.config.$submitted) && forms.config.range.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END RANGE -->\n\n <!-- START TODAY CRON -->\n <div class="form-group" data-ng-if="switchValues.today" data-ng-class="{\'has-error\': (forms.config.cron.$touched || forms.config.$submitted) && forms.config.cron.$invalid}">\n <label class="control-label">{{ \'APPLICATION_EXECUTE_EVERY\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="schedule.cron" name="cron" theme="bootstrap" data-ng-required="switchValues.today">\n <ui-select-match placeholder="{{ \'APPLICATION_EXECUTE_EVERY\' | translate }}">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="cron.value as cron in todayCron | filter: $select.search">\n <div ng-bind-html="cron.name | highlight: $select.search | translate"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.config.cron.$touched || forms.config.$submitted) && forms.config.cron.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TODAY -->\n <div class="row" data-ng-if="!switchValues.today">\n <!-- START CRONTYPE EXEC -->\n <div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.config.cronType.$touched || forms.config.$submitted) && forms.config.cronType.$invalid}">\n <label class="control-label">{{ \'APPLICATION_EXECUTE_EVERY\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="rangeExec.type" name="cronType" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_EXECUTE_EVERY\' | translate }}">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="type.value as type in cronTypes | filter: $select.search">\n <div ng-bind-html="type.name | highlight: $select.search | translate"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.config.cronType.$touched || forms.config.$submitted) && forms.config.cronType.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CRONTYPE -->\n\n <!-- START WEEKDAY -->\n <div class="form-group col-md-4" data-ng-if="schedule.cronType === \'weekly\'" data-ng-class="{\'has-error\': (forms.config.weekDay.$touched || forms.config.$submitted) && forms.config.weekDay.$invalid}">\n <label class="control-label">{{ \'APPLICATION_WEEKDAYS\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select multiple data-ng-model="rangeExec.weekDays" name="weekDay" theme="bootstrap" data-ng-required="schedule.cronType === \'weekly\'">\n <ui-select-match placeholder="{{ \'APPLICATION_WEEKDAYS\' | translate }}">{{$item.name | translate}}</ui-select-match>\n <ui-select-choices repeat="day.value as day in weekDays | filter: $select.search">\n <div ng-bind-html="day.name | highlight: $select.search | translate"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.config.weekDay.$touched || forms.config.$submitted) && forms.config.weekDay.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END WEEKDAY -->\n\n <!-- START MONTHDAY -->\n <div class="form-group col-md-4" data-ng-if="schedule.cronType === \'monthly\'" data-ng-class="{\'has-error\': (forms.config.monthDay.$touched || forms.config.$submitted) && forms.config.monthDay.$invalid}">\n <label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="rangeExec.monthDay" name="monthDay" theme="bootstrap" data-ng-required="schedule.cronType === \'monthly\'">\n <ui-select-match placeholder="{{ \'APPLICATION_MONTHDAY\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="day in monthDays | filter: $select.search">\n <div ng-bind-html="day | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.config.monthDay.$touched || forms.config.$submitted) && forms.config.monthDay.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MONTHDAY -->\n\n <!-- START HOUR -->\n <div class="form-group col-md-4" data-ng-if="schedule.cronType" data-ng-class="{\'has-error\': (forms.config.hour.$touched || forms.config.$submitted) && forms.config.hour.$invalid}">\n <label class="control-label">{{ \'APPLICATION_HOUR\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="rangeExec.hour" name="hour" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_HOUR\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="hour in hours | filter: $select.search">\n <div ng-bind-html="hour | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.config.hour.$touched || forms.config.$submitted) && forms.config.hour.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END HOUR -->\n </div>\n\n <!-- START SEND MAIL -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_SEND_MAIL\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n data-ng-model="schedule.sendMail"\n type="checkbox"\n name="status"\n switch-active="{{ switches.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ switches.onColor }}"\n switch-off-color="{{ switches.offColor }}"\n switch-animate="{{ switches.animate }}"\n switch-size="{{ switches.size }}"\n switch-label="{{ switches.label }}"\n switch-icon="{{ switches.icon }}"\n switch-radio-off="{{ switches.radioOff }}"\n switch-label-width="{{ switches.labelWidth }}"\n switch-handle-width="{{ switches.handleWidth }}">\n </div>\n <!-- END SEND MAIL -->\n <div class="row">\n <!-- START ACCOUNT -->\n <div class="form-group col-md-6" data-ng-class="{\'has-error\': (forms.config.MailServerOutId.$touched || forms.config.$submitted) && forms.config.MailServerOutId.$invalid}">\n <label class="control-label">{{ \'APPLICATION_ACCOUNT\' | translate }}<span class="required" data-ng-if="schedule.sendMail" aria-required="true">*</span></label>\n <ui-select data-ng-model="schedule.MailServerOutId" name="MailServerOutId" theme="bootstrap" data-ng-disabled="!schedule.sendMail" data-ng-required="schedule.sendMail">\n <ui-select-match placeholder="{{ \'APPLICATION_ACCOUNT\' | translate }}">{{$select.selected.username}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in mailServers | filter: $select.search">\n <div ng-bind-html="account.username | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.config.MailServerOutId.$touched || forms.config.$submitted) && forms.config.MailServerOutId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <div class="note note-warning" data-ng-hide="mailServers.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_ACCOUNTS_AVAILABLE\' | translate }}\n </p>\n </div>\n </div>\n <!-- END ACCOUNT -->\n\n <!-- START EMAIL -->\n <div class="form-group col-md-6" data-ng-class="{\'has-error\': (forms.config.$submitted && forms.config.email.$invalid) || forms.config.email.$error.pattern}">\n <label class="control-label">{{\'APPLICATION_EMAIL_ADDRESS\' | translate}}<span data-ng-if="schedule.sendMail" class="required" aria-required="true">*</span></label>\n <input type="email" name="email" placeholder="{{\'APPLICATION_EMAIL_ADDRESS\' | translate}}" class="form-control" data-ng-model="schedule.email" data-ng-disabled="!schedule.sendMail" data-ng-required="schedule.sendMail"/>\n <span data-ng-show="forms.config.$submitted && forms.config.email.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END EMAIL -->\n\n </div>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END CONFIG TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n<!-- <pre>\n {{rangeExec | json}}\n</pre>\n<pre>\n {{schedule | json}}\n</pre> -->\n'),a.put("app/tools/scheduler/wizard/wizard.html",'<div class="col-md-12">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-wrench"></i>\n <a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-calendar"></i>\n <a href="/tools/scheduler/list">{{ \'APPLICATION_SCHEDULER\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-options"></i>\n <a href="#">{{ \'APPLICATION_WIZARD\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-link font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_SCHEDULE\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_GENERAL\' | translate}}" canexit="exitValidation(forms.general.$valid)">\n <form name="forms.general" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.$submitted && forms.general.name.$invalid) || forms.general.name.$error.pattern}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" data-ng-pattern="settings.patternName" required/>\n <span data-ng-show="forms.general.$submitted && forms.general.name.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START ACTIVE -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_ACTIVE\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="item.active"\n type="checkbox"\n name="status"\n data-ng-init="item.active = 0"\n switch-active="{{ switches.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ switches.onColor }}"\n switch-off-color="{{ switches.offColor }}"\n switch-animate="{{ switches.animate }}"\n switch-size="{{ switches.size }}"\n switch-label="{{ switches.label }}"\n switch-icon="{{ switches.icon }}"\n switch-radio-off="{{ switches.radioOff }}"\n switch-label-width="{{ switches.labelWidth }}"\n switch-handle-width="{{ switches.handleWidth }}">\n </div>\n <!-- END ACTIVE -->\n\n <!-- START TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.type.$touched || forms.general.$submitted) && forms.general.type.$invalid}">\n <label class="control-label">{{ \'APPLICATION_TYPE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.type" name="type" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_TYPE\' | translate }}">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="type.value as type in scheduleTypes | filter: $select.search">\n <div ng-bind-html="type.name | highlight: $select.search | translate"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.general.type.$touched || forms.general.$submitted) && forms.general.type.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TYPE -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n <button class="btn green-haze" type="submit" ng-click="next(true)">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIGURATION\' | translate}}" canexit="exitValidation(forms.config.$valid)">\n <form name="forms.config" data-ng-switch="item.reportType" data-ng-if="item.type===\'report\'" data-ng-init="initReports()" novalidate>\n <div class="row">\n\n <!-- START TYPE -->\n <div class="form-group col-md-2" data-ng-class="{\'has-error\': (forms.config.type.$touched || forms.config.$submitted) && forms.config.type.$invalid}">\n <label class="control-label">{{ \'APPLICATION_TYPE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.reportType" name="type" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_TYPE\' | translate }}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="report in [\'default\', \'custom\'] | filter: $select.search">\n <div ng-bind-html="report | capitalize | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.config.type.$touched || forms.config.$submitted) && forms.config.type.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TYPE -->\n\n <!-- START DEFAULT REPORT -->\n <div data-ng-switch-when="default" class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.config.reportId.$touched || forms.config.$submitted) && forms.config.reportId.$invalid}">\n <label class="control-label">{{ \'APPLICATION_REPORT\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.reportId" name="reportId" theme="bootstrap" on-select="setReportTree($item,$model)" required>\n <ui-select-match placeholder="{{ \'APPLICATION_REPORT\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices group-by="\'parent\'" repeat="report.id as report in defRep | filter: $select.search">\n <div ng-bind-html="report.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.config.reportId.$touched || forms.config.$submitted) && forms.config.reportId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END DEFAULT REPORT -->\n\n <!-- START CUSTOM REPORT -->\n <div data-ng-switch-when="custom" class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.config.reportId.$touched || forms.config.$submitted) && forms.config.reportId.$invalid}">\n <label class="control-label">{{ \'APPLICATION_REPORT\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.reportId" name="reportId" theme="bootstrap" on-select="setReportTree($item,$model)" required>\n <ui-select-match placeholder="{{ \'APPLICATION_REPORT\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices group-by="\'parent\'" repeat="report.id as report in cusRep | filter: $select.search">\n <div ng-bind-html="report.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.config.reportId.$touched || forms.config.$submitted) && forms.config.reportId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CUSTOM REPORT -->\n\n <!-- START OUTPUT -->\n <div class="form-group col-md-2" data-ng-class="{\'has-error\': (forms.config.reportOutput.$touched || forms.config.$submitted) && forms.config.reportOutput.$invalid}">\n <label class="control-label">{{ \'APPLICATION_OUTPUT\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.reportOutput" name="reportOutput" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_OUTPUT\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="output in [\'CSV\',\'PDF\'] | filter: $select.search">\n <div ng-bind-html="output | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.config.reportOutput.$touched || forms.config.$submitted) && forms.config.reportOutput.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END OUTPUT -->\n\n </div>\n\n <!-- START TODAY -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_RUN_ON\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n data-ng-model="switchValues.today"\n type="checkbox"\n name="status"\n data-ng-change="checkToday()"\n switch-active="{{ switches.isActive }}"\n switch-on-text="{{ \'APPLICATION_TODAY\' | translate }}"\n switch-off-text="{{ \'APPLICATION_RANGE\' | translate }}"\n switch-on-color="{{ switches.onColor }}"\n switch-off-color="{{ switches.offColor }}"\n switch-animate="{{ switches.animate }}"\n switch-size="{{ switches.size }}"\n switch-label="{{ switches.label }}"\n switch-icon="{{ switches.icon }}"\n switch-radio-off="{{ switches.radioOff }}"\n switch-label-width="{{ switches.labelWidth }}"\n switch-handle-width="{{ switches.handleWidth }}">\n </div>\n <!-- END TODAY -->\n\n <!-- START VALIDITY -->\n <div class="form-group" data-ng-if="switchValues.today">\n <label class="control-label">{{\'APPLICATION_VALIDITY\' | translate}}</label>\n <rzslider rz-slider-model="item.validityStart" rz-slider-high="item.validityEnd" rz-slider-options="validitySlider" data-ng-init="item.validityStart = 8;item.validityEnd = 16;"></rzslider>\n </div>\n <!-- END VALIDITY -->\n\n <!-- START RANGE -->\n <div class="form-group" data-ng-if="!switchValues.today" data-ng-class="{\'has-error\': (forms.config.range.$touched || forms.config.$submitted) && forms.config.range.$invalid}">\n <label class="control-label">{{ \'APPLICATION_REPORT_RANGE\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.reportRange" name="range" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_RANGE\' | translate }}">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="range.value as range in reportRanges | filter: $select.search">\n <div ng-bind-html="range.name | highlight: $select.search | translate"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.config.range.$touched || forms.config.$submitted) && forms.config.range.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END RANGE -->\n\n <!-- START TODAY CRON EXEC -->\n <div class="form-group" data-ng-if="switchValues.today" data-ng-class="{\'has-error\': (forms.config.cron.$touched || forms.config.$submitted) && forms.config.cron.$invalid}">\n <label class="control-label">{{ \'APPLICATION_EXECUTE_EVERY\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.cron" name="cron" theme="bootstrap" data-ng-required="switchValues.today">\n <ui-select-match placeholder="{{ \'APPLICATION_EXECUTE_EVERY\' | translate }}">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="cron.value as cron in todayCron | filter: $select.search">\n <div ng-bind-html="cron.name | highlight: $select.search | translate"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.config.cron.$touched || forms.config.$submitted) && forms.config.cron.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TODAY CRON -->\n <div class="row" data-ng-if="!switchValues.today">\n <!-- START CRONTYPE EXEC -->\n <div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.config.cronType.$touched || forms.config.$submitted) && forms.config.cronType.$invalid}">\n <label class="control-label">{{ \'APPLICATION_EXECUTE_EVERY\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="rangeExec.type" name="cronType" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_EXECUTE_EVERY\' | translate }}">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="type.value as type in cronTypes | filter: $select.search">\n <div ng-bind-html="type.name | highlight: $select.search | translate"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.config.cronType.$touched || forms.config.$submitted) && forms.config.cronType.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CRONTYPE -->\n\n <!-- START WEEKDAY -->\n <div class="form-group col-md-4" data-ng-if="item.cronType === \'weekly\'" data-ng-class="{\'has-error\': (forms.config.weekDay.$touched || forms.config.$submitted) && forms.config.weekDay.$invalid}">\n <label class="control-label">{{ \'APPLICATION_WEEKDAYS\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select multiple data-ng-model="rangeExec.weekDays" name="weekDay" theme="bootstrap" data-ng-required="item.cronType === \'weekly\'">\n <ui-select-match placeholder="{{ \'APPLICATION_WEEKDAYS\' | translate }}">{{$item.name | translate}}</ui-select-match>\n <ui-select-choices repeat="day.value as day in weekDays | filter: $select.search">\n <div ng-bind-html="day.name | highlight: $select.search | translate"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.config.weekDay.$touched || forms.config.$submitted) && forms.config.weekDay.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END WEEKDAY -->\n\n <!-- START MONTHDAY -->\n <div class="form-group col-md-4" data-ng-if="item.cronType === \'monthly\'" data-ng-class="{\'has-error\': (forms.config.monthDay.$touched || forms.config.$submitted) && forms.config.monthDay.$invalid}">\n <label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="rangeExec.monthDay" name="monthDay" theme="bootstrap" data-ng-required="item.cronType === \'monthly\'">\n <ui-select-match placeholder="{{ \'APPLICATION_MONTHDAY\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="day in monthDays | filter: $select.search">\n <div ng-bind-html="day | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.config.monthDay.$touched || forms.config.$submitted) && forms.config.monthDay.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END MONTHDAY -->\n\n <!-- START HOUR -->\n <div class="form-group col-md-4" data-ng-if="item.cronType" data-ng-class="{\'has-error\': (forms.config.hour.$touched || forms.config.$submitted) && forms.config.hour.$invalid}">\n <label class="control-label">{{ \'APPLICATION_HOUR\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="rangeExec.hour" name="hour" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_HOUR\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="hour in hours | filter: $select.search">\n <div ng-bind-html="hour | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.config.hour.$touched || forms.config.$submitted) && forms.config.hour.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END HOUR -->\n </div>\n\n <!-- START SEND MAIL -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_SEND_MAIL\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n data-ng-model="item.sendMail"\n type="checkbox"\n name="status"\n data-ng-init="item.sendMail = 0"\n switch-active="{{ switches.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ switches.onColor }}"\n switch-off-color="{{ switches.offColor }}"\n switch-animate="{{ switches.animate }}"\n switch-size="{{ switches.size }}"\n switch-label="{{ switches.label }}"\n switch-icon="{{ switches.icon }}"\n switch-radio-off="{{ switches.radioOff }}"\n switch-label-width="{{ switches.labelWidth }}"\n switch-handle-width="{{ switches.handleWidth }}">\n </div>\n <!-- END SEND MAIL -->\n <div class="row">\n <!-- START ACCOUNT -->\n <div class="form-group col-md-6" data-ng-class="{\'has-error\': (forms.config.MailServerOutId.$touched || forms.config.$submitted) && forms.config.MailServerOutId.$invalid}">\n <label class="control-label">{{ \'APPLICATION_ACCOUNT\' | translate }}<span class="required" data-ng-if="item.sendMail" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.MailServerOutId" name="MailServerOutId" theme="bootstrap" data-ng-disabled="!item.sendMail" data-ng-required="item.sendMail">\n <ui-select-match placeholder="{{ \'APPLICATION_ACCOUNT\' | translate }}">{{$select.selected.username}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in mailServers | filter: $select.search">\n <div ng-bind-html="account.username | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.config.MailServerOutId.$touched || forms.config.$submitted) && forms.config.MailServerOutId.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <div class="note note-warning" data-ng-hide="mailServers.length">\n <h4 class="block">Warning!</h4>\n <p>\n {{ \'MESSAGE_NO_ACCOUNTS_AVAILABLE\' | translate }}\n </p>\n </div>\n </div>\n <!-- END ACCOUNT -->\n\n <!-- START EMAIL -->\n <div class="form-group col-md-6" data-ng-class="{\'has-error\': (forms.config.$submitted && forms.config.email.$invalid) || forms.config.email.$error.pattern}">\n <label class="control-label">{{\'APPLICATION_EMAIL_ADDRESS\' | translate}}<span data-ng-if="item.sendMail" class="required" aria-required="true">*</span></label>\n <input type="email" name="email" placeholder="{{\'APPLICATION_EMAIL_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.email" required data-ng-disabled="!item.sendMail" data-ng-required="item.sendMail"/>\n <span data-ng-show="forms.config.$submitted && forms.config.email.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END EMAIL -->\n </div>\n\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <button class="btn green-haze" type="submit" ng-click="next()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END PORTLET-->\n</div>\n<!-- <pre>\n {{rangeExec | json}}\n</pre>\n<pre>\n {{item | json}}\n</pre> -->\n'), -a.put("app/tools/sound/list/list.html",'<div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-music-tone-alt"></i>\n <a href="#">{{ \'APPLICATION_SOUNDS\' | translate }}</a>\n </li>\n </ul>\n <div class="page-toolbar">\n </div>\n</div>\n<!-- END PAGE HEADER-->\n<!-- BEGIN PAGE CONTENT-->\n<!-- Audio Portlets -->\n<div class="headline">\n <h3><i class="icon-music-tone-alt sounds-title-icon"></i> {{ \'APPLICATION_SOUNDS\' | translate }}</h3>\n</div>\n<div class="portlet light bg-inverse">\n <div class="portlet-title collapsible" ng-click="isCollapsed = !isCollapsed">\n <div class="caption">\n <i class="icon-puzzle font-red-flamingo"></i>\n <span class="caption-subject bold font-red-flamingo uppercase">\n {{\'APPLICATION_FILE_UPLOAD\' | translate}} </span>\n </div>\n <div class="tools">\n <a href="" ng-class="{\'collapse\': !isCollapsed, \'expand\' : isCollapsed}">\n </a>\n </div>\n </div>\n <div class="portlet-body" ng-slide-down="!isCollapsed">\n <div class="row" nv-file-drop="" uploader="uploader" filters="queueLimit, customFilter">\n <div class="col-md-4">\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-settings font-green-sharp"></i>\n <span class="caption-subject bold uppercase">{{\'APPLICATION_SELECT_FILES\' | translate}}</span>\n <span class="caption-helper hide"></span>\n </div>\n <div class="actions">\n </div>\n </div>\n <div class="portlet-body">\n <div ng-show="uploader.isHTML5">\n <div class="file-drop-zone margin-bottom-20" nv-file-over="" uploader="uploader" over-class="file-drop-zone-over">\n Base drop zone\n </div>\n </div>\n <span class="btn default btn-file">\n <span class="fileinput-new">\n {{\'APPLICATION_FILE_UPLOAD\' | translate}}</span>\n <input type="file" nv-file-select="" uploader="uploader" />\n </span>\n <span class="btn default btn-file">\n <span class="fileinput-new">\n {{\'APPLICATION_MULTI_FILE_UPLOAD\' | translate}}</span>\n <input type="file" nv-file-select="" uploader="uploader" multiple /><br/>\n </span>\n <p>\n </br>\n {{ \'MESSAGE_SUPPORTED_FORMATS\' | translate }} <b>wav, mp3, gsm, ogg</b>.\n </p>\n <p>\n {{ \'MESSAGE_MAXIMUM_SOUND_UPLOAD_SIZE\' | translate }} <b>15 Mb</b>.\n </p>\n </div>\n </div>\n </div>\n <div class="col-md-8">\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-settings font-green-sharp"></i>\n <span class="caption-subject bold uppercase">{{\'APPLICATION_UPLOAD_QUEUE\' | translate}}</span>\n <span class="caption-helper">{{\'APPLICATION_QUEUE_LENGTH\' | translate}}: {{ uploader.queue.length }}</span>\n </div>\n <div class="actions">\n </div>\n </div>\n <div class="portlet-body">\n <div class="table-scrollable table-scrollable-borderless">\n <table class="table table-hover table-light">\n <thead>\n <tr class="uppercase">\n <th width="50%">{{\'APPLICATION_NAME\' | translate}}</th>\n <th ng-show="uploader.isHTML5">{{\'APPLICATION_SIZE\' | translate}}</th>\n <th ng-show="uploader.isHTML5">{{\'APPLICATION_PROGRESS\' | translate}}</th>\n <th>{{\'APPLICATION_STATUS\' | translate}}</th>\n <th>{{\'APPLICATION_MESSAGE\' | translate}}</th>\n <th>{{\'APPLICATION_ACTIONS\' | translate}}</th>\n </tr>\n </thead>\n <tbody>\n <tr ng-repeat="item in uploader.queue">\n <td><strong>{{ item.file.name }}</strong></td>\n <td ng-show="uploader.isHTML5" nowrap>{{ item.file.size/1024/1024|number:2 }} MB</td>\n <td ng-show="uploader.isHTML5">\n <div class="progress progress-sm" style="margin-bottom: 0;">\n <div class="progress-bar progress-bar-info" role="progressbar" ng-style="{ \'width\': item.progress + \'%\' }"></div>\n </div>\n </td>\n <td class="text-center">\n <span ng-show="item.isSuccess" class="text-success"><i class="glyphicon glyphicon-ok"></i></span>\n <span ng-show="item.isCancel" class="text-info"><i class="glyphicon glyphicon-ban-circle"></i></span>\n <span ng-show="item.isError" class="text-danger"><i class="glyphicon glyphicon-remove"></i></span>\n <span ng-show="item.isUploading" class="text-info"><i class="glyphicon glyphicon-upload"></i></span>\n </td>\n <td class="text-center">\n <span ng-show="item.responseMessage" class="text-danger">{{item.responseMessage}}</span>\n </td>\n <td nowrap>\n <button type="button" class="btn btn-success btn-xs" ng-click="item.upload()" ng-disabled="item.isReady || item.isUploading || item.isSuccess">\n <span class="glyphicon glyphicon-upload"></span> {{\'APPLICATION_UPLOAD\' | translate}}\n </button>\n <button type="button" class="btn btn-warning btn-xs" ng-click="item.cancel()" ng-disabled="!item.isUploading">\n <span class="glyphicon glyphicon-ban-circle"></span> {{\'APPLICATION_CANCEL\' | translate}}\n </button>\n <button type="button" class="btn btn-danger btn-xs" ng-click="item.remove()">\n <span class="glyphicon glyphicon-trash"></span> {{\'APPLICATION_REMOVE\' | translate}}\n </button>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n <div>\n <p>{{\'APPLICATION_UPLOAD_QUEUE_PROGRESS\' | translate}}:</p>\n <div class="progress progress-sm" style="">\n <div class="progress-bar progress-bar-info" role="progressbar" ng-style="{ \'width\': uploader.progress + \'%\' }"></div>\n </div>\n </div>\n <button type="button" class="btn btn-success btn-s" ng-click="uploader.uploadAll()" ng-disabled="!uploader.getNotUploadedItems().length">\n <span class="glyphicon glyphicon-upload"></span> {{\'APPLICATION_UPLOAD_ALL\' | translate}}\n </button>\n <button type="button" class="btn btn-warning btn-s" ng-click="uploader.cancelAll()" ng-disabled="!uploader.isUploading">\n <span class="glyphicon glyphicon-ban-circle"></span> {{\'APPLICATION_CANCEL_ALL\' | translate}}\n </button>\n <button type="button" class="btn btn-danger btn-s" ng-click="uploader.clearQueue()" ng-disabled="!uploader.queue.length">\n <span class="glyphicon glyphicon-trash"></span> {{\'APPLICATION_REMOVE_ALL\' | translate}}\n </button>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n<div class="row thumbnails" data-ng-init="initList()">\n <div class="row" ng-show="sounds.length == 0">\n <div class="col-md-12 page-404">\n <div class="details">\n <h3>{{ \'MESSAGE_NO_SOUNDS\' | translate }}</h3>\n <p>\n <a href="/">\n {{ \'MESSAGE_RETURN_HOME\' | translate }} </a>\n {{ \'MESSAGE_OR_UPLOAD_SOUND_FILE\' | translate }}\n </p>\n </div>\n </div>\n </div>\n <div class="audio-portlet-wrapper animate-repeat" ng-repeat="sound in sounds">\n <div class="audio-portlet">\n <div class="audio-portlet-title"><a href="#" editable-text="sound.display_name" onbeforesave="updateAudio(sound.id,{display_name : $data})">{{ sound.display_name || "Empty" }}</a></div>\n <img src="../assets/images/note_placeholder.png" alt="" class="img-responsive"/>\n <div class="file-info">\n <div class="audio-tag-wrapper">\n <audio-file-download params="{id:sound.id,controller:\'stream\'}" resource="Sound"></audio-file-download>\n </div>\n <p id="description_div">\n <a href="#" editable-text="sound.description" onbeforesave="updateAudio(sound.id,{description : $data})">{{ sound.description || "Empty" }}</a>\n </p>\n <p class="float-right">\n <button class="btn btn-xs green-meadow" uib-tooltip-template="\'audioInfoTemplate.html\'"><i class="icon-list"></i></button>\n <motion-file-download params="{id:sound.id,controller:\'download\'}" resource="Sound" mimetype="\'audio/\'+sound.original_format" tooltiptext="Download" filename="sound.display_name+\'.\'+sound.original_format" btnclass="{{downloadButtonClass}}" btncontent=\'{{downloadButtonContent}}\'></motion-file-download>\n <button uib-tooltip="Delete" class="btn btn-xs red-sunglo" ng-click="delete(sound.display_name, sound.id)" tooltip="Delete"><i class="icon-close" ></i></button>\n </p>\n </div>\n </div>\n </div>\n <script type="text/ng-template" id="audioInfoTemplate.html">\n <div>\n <ul class="list-unstyled">\n <li><b>Format : </b>{{sound.original_format}}</li>\n <li><b>Duration : </b>{{sound.original_duration | date: \'mm:ss\'}}</li>\n <li><b>Channels : </b>{{sound.original_channelCount}}</li>\n <li><b>Bitrate : </b>{{sound.original_bitRate/1024}} kbs</li>\n <li><b>Sample Rate : </b>{{sound.original_sampleRate/1000}} KHz</li>\n </ul>\n </div>\n </script>\n</div>\n<!-- End Audio Portlets -->\n'),a.put("app/tools/tag/list/list.create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_TAG\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required data-ng-pattern="settings.patternName"/>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/tools/tag/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-wrench"></i>\n <a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-tag"></i>\n <a href="#">{{ \'APPLICATION_TAGS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_TAGS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <button class="btn green-jungle " ng-click="createItem()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_TAG\' | translate }}\n </button>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/tools/tag/view/view.chat.html",'<div class="row" >\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_TAGGED_CHAT\' | translate}}</span>\n </div>\n </div>\n\n <div class="portlet-body" data-ng-if="tag" data-ng-init="initChat()">\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="spinner-grid" spinner-start-active="false"></span>\n <!-- END UI-GRID SPINNER -->\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/tools/tag/view/view.contacts.html",'<div class="row" >\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_TAGGED_CONTACTS\' | translate}}</span>\n </div>\n </div>\n\n <div class="portlet-body" data-ng-if="tag" data-ng-init="initContacts()">\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="spinner-grid" spinner-start-active="false"></span>\n <!-- END UI-GRID SPINNER -->\n <!-- START TABLE -->\n <div ui-grid="gridOptions" data-ng-if="readyGrid && gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/tools/tag/view/view.fax.html",'<div class="row" >\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_TAGGED_FAX\' | translate}}</span>\n </div>\n </div>\n\n <div class="portlet-body" data-ng-if="tag" data-ng-init="initFax()">\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="spinner-grid" spinner-start-active="false"></span>\n <!-- END UI-GRID SPINNER -->\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/tools/tag/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getTag()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-wrench"></i>\n <a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-tag"></i>\n <a href="/tools/tags/list">{{ \'APPLICATION_TAGS\' | translate }}</a>\n <i data-ng-show="tag" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="tag">\n <a href="#">{{tag.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/tag.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{tag.name}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.tools.tags.view.settings\')}">\n <a data-ng-href="/tools/tags/view/{{tag.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.tools.tags.view.chat\')}">\n <a data-ng-href="{{license.chat ? \'/tools/tags/view/\'+tag.id+\'/chat\' : \'#\'}}" data-ng-class="{\'disabled-link\':!license.chat}">\n <i class="icon-bubble"></i>\n {{ \'APPLICATION_CHAT\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.tools.tags.view.mail\')}">\n <a data-ng-href="{{license.mail ? \'/tools/tags/view/\'+tag.id+\'/mail\' : \'#\'}}" data-ng-class="{\'disabled-link\':!license.mail}">\n <i class="icon-envelope"></i>\n {{ \'APPLICATION_MAIL\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.tools.tags.view.fax\')}">\n <a data-ng-href="{{license.fax ? \'/tools/tags/view/\'+tag.id+\'/fax\' : \'#\'}}" data-ng-class="{\'disabled-link\':!license.fax}">\n <i class="fa fa-fax"></i>\n {{ \'APPLICATION_FAX\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.tools.tags.view.sms\')}" >\n <a data-ng-href="{{license.messaging ? \'/tools/tags/view/\'+tag.id+\'/sms\' : \'#\'}}" data-ng-class="{\'disabled-link\':!license.messaging}">\n <i class="glyphicon glyphicon-comment"></i>\n {{ \'APPLICATION_SMS\' | translate}} </a>\n </li>\n <li data-ng-class="{active: $state.is(\'main.tools.tags.view.contacts\')}">\n <a data-ng-href="{{license.cm ? \'/tools/tags/view/\'+tag.id+\'/contacts\' : \'#\'}}" data-ng-class="{\'disabled-link\':!license.cm}">\n <i class="fa fa-users"></i>\n {{ \'APPLICATION_CONTACTS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/tools/tag/view/view.mail.html",'<div class="row" >\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_TAGGED_MAIL\' | translate}}</span>\n </div>\n </div>\n\n <div class="portlet-body" data-ng-if="tag" data-ng-init="initMail()">\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="spinner-grid" spinner-start-active="false"></span>\n <!-- END UI-GRID SPINNER -->\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/tools/tag/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_TAG\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="spinner-grid" spinner-start-active="false"></span>\n <!-- END UI-GRID SPINNER -->\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateTag()" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="tag.name" required data-ng-pattern="settings.patternName"/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="tag.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ADVANCED TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/tools/tag/view/view.sms.html",'<div class="row" >\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_TAGGED_SMS\' | translate}}</span>\n </div>\n </div>\n\n <div class="portlet-body" data-ng-if="tag" data-ng-init="initSms()">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/tools/template/list/list.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-wrench"></i>\n <a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="#">{{ \'APPLICATION_TEMPLATES\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-wrench font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_TEMPLATES\' | translate }}</span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="/tools/templates/wizard">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_TEMPLATE\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/tools/template/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initItem()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-wrench"></i>\n <a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="/tools/templates/list">{{ \'APPLICATION_TEMPLATES\' | translate }}</a>\n <i data-ng-show="item" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="item">\n <a href="#">{{item.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/template.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{item.name}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.tools.templates.view.settings\')}">\n <a data-ng-href="/tools/templates/view/{{item.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}}\n </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/tools/template/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n </div>\n </div>\n <div class="portlet-body">\n\n <form name="form" data-ng-submit="form.$valid && updateItem()" class="form-horizontal" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': form.name.$invalid && form.$submitted}">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-2">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}:<span class="required" aria-required="true">*</span></label>\n </div>\n <div class="col-md-10">\n <input type="text" name="name" class="form-control todo-taskbody-taskdesc" placeholder="{{\'APPLICATION_NAME\' | translate}}..." data-ng-model="item.name" required>\n <span data-ng-show="form.name.$invalid && form.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group" data-ng-class="{\'has-error\': form.description.$invalid && form.$submitted}">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-2">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}:</label>\n </div>\n <div class="col-md-10">\n <input type="text" name="description" class="form-control todo-taskbody-taskdesc" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}..." rows="8" data-ng-model="item.description">\n <span data-ng-show="form.description.$invalid && form.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n </div>\n <!-- END NAME -->\n\n <hr>\n\n <!-- START SUBJECT -->\n <div class="form-group row" data-ng-class="{\'has-error\': form.subject.$invalid && form.$submitted}">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-2">\n <label class="control-label">{{\'APPLICATION_SUBJECT\' | translate}}:</label>\n </div>\n <div class="col-md-10">\n <input type="text" name="subject" class="form-control todo-taskbody-taskdesc" placeholder="{{\'APPLICATION_SUBJECT\' | translate}}..." rows="8" data-ng-model="item.subject">\n <span data-ng-show="form.subject.$invalid && form.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n </div>\n <!-- END SUJBECT -->\n\n <!-- START HTML -->\n <div class="form-group row" data-ng-class="{\'has-error\': form.text.$invalid && form.$submitted}">\n <div class="col-md-12">\n <div ckeditor="options" ng-model="item.html"></div>\n <span data-ng-show="form.text.$invalid && form.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <!-- END HTML -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n </div>\n </div>\n</div>\n'), -a.put("app/tools/template/wizard/wizard.html",'<div class="row">\n <div class="col-md-12">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-wrench"></i>\n <a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-docs"></i>\n <a href="/tools/templates/list">{{ \'APPLICATION_TEMPLATES\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered" data-ng-init="initWizard()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_TEMPLATES\' | translate }} FORM</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <form name="form" data-ng-submit="form.$valid && createItem()" class="form-horizontal" novalidate>\n <!-- START HEAD -->\n <div class="form">\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': form.name.$invalid && form.$submitted}">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-1">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}:<span class="required" aria-required="true">*</span></label>\n </div>\n <div class="col-md-11">\n <input type="text" name="name" class="form-control todo-taskbody-taskdesc" placeholder="{{\'APPLICATION_NAME\' | translate}}..." data-ng-model="item.name" required>\n <span data-ng-show="form.name.$invalid && form.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group" data-ng-class="{\'has-error\': form.description.$invalid && form.$submitted}">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-1">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}:</label>\n </div>\n <div class="col-md-11">\n <input type="text" name="description" class="form-control todo-taskbody-taskdesc" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}..." rows="8" data-ng-model="item.description">\n <span data-ng-show="form.description.$invalid && form.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n </div>\n <!-- END NAME -->\n\n <!-- START SUBJECT -->\n <div class="form-group" data-ng-class="{\'has-error\': form.subject.$invalid && form.$submitted}">\n <div class="col-md-12">\n <div class="row">\n <div class="col-md-1">\n <label class="control-label">{{\'APPLICATION_SUBJECT\' | translate}}:</label>\n </div>\n <div class="col-md-11">\n <input type="text" name="subject" class="form-control todo-taskbody-taskdesc" placeholder="{{\'APPLICATION_SUBJECT\' | translate}}..." rows="8" data-ng-model="item.subject">\n <span data-ng-show="form.subject.$invalid && form.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n </div>\n <!-- END SUJBECT -->\n\n <!-- START HTML -->\n <div class="form-group row" data-ng-class="{\'has-error\': form.text.$invalid && form.$submitted}">\n <div class="col-md-12">\n <div ckeditor="options" ng-model="item.html"></div>\n <span data-ng-show="form.text.$invalid && form.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n <!-- END HTML -->\n\n </div>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" data-ng-click="goNext()"/>\n </form>\n </div>\n </div>\n <!-- END PORTLET-->\n </div>\n</div>\n'),a.put("app/tools/trigger/list/list.html",'<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-wrench"></i>\n <a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-bulb"></i>\n <a href="#">{{ \'APPLICATION_TRIGGERS\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-bulb font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_TRIGGERS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle " href="/tools/triggers/wizard">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_TRIGGER\' | translate }}\n </a>\n </div>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/tools/trigger/view/view.html",'<!-- BEGIN PAGE HEADER-->\n<div class="row" data-ng-init="initView();">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-wrench"></i>\n <a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-bulb"></i>\n <a href="/tools/triggers/list">{{ \'APPLICATION_TRIGGERS\' | translate }}</a>\n <i class="fa fa-angle-right" data-ng-show="trigger"></i>\n </li>\n <li data-ng-show="trigger">\n <a href="#">{{ trigger.description || trigger.name }}</a>\n </li>\n </ul>\n </div>\n\n<!-- END PAGE HEADER-->\n\n<!-- BEGIN PAGE CONTENT-->\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/trigger.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{ trigger.name }}\n </div>\n <div class="profile-usertitle-job">\n {{ trigger.description }}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.tools.triggers.view.settings\')}">\n <a href="/tools/triggers/view/{{trigger.id}}/settings">\n <i class="icon-bulb"></i>\n {{ \'APPLICATION_SETTINGS\' | translate }} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/tools/trigger/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERALS\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_CONDITIONS\' | translate}} & {{\'APPLICATION_ACTIONS\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <form name="forms.general" data-ng-submit="exitValidation(forms.general.$valid) && updateTrigger()" novalidate>\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="trigger.name" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START CHANNEL -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.channel.$touched || forms.general.$submitted) && forms.general.channel.$invalid}">\n <label class="control-label">{{\'APPLICATION_CHANNEL\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="channel" placeholder="{{\'APPLICATION_CHANNEL\' | translate}}" class="form-control" data-ng-model="trigger.channel" required readonly/>\n <span data-ng-show="(forms.general.channel.$touched || forms.general.$submitted) && forms.general.channel.$invalid && forms.general.channel.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CHANNEL -->\n\n <!-- START STATUS -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_STATUS\' | translate}}</label>\n </br>\n <input bs-switch class="form-control" ng-model="trigger.status" type="checkbox" name="status" switch-active="{{ recordSwitch.isActive }}" switch-on-text="{{ recordSwitch.onText }}" switch-off-text="{{ recordSwitch.offText }}" switch-on-color="{{ recordSwitch.onColor }}"\n switch-off-color="{{ recordSwitch.offColor }}" switch-animate="{{ recordSwitch.animate }}" switch-size="{{ recordSwitch.size }}" switch-label="{{ recordSwitch.label }}" switch-icon="{{ recordSwitch.icon }}" switch-radio-off="{{ recordSwitch.radioOff }}"\n switch-label-width="{{ recordSwitch.labelWidth }}" switch-handle-width="{{ recordSwitch.handleWidth }}">\n </div>\n <!-- END STATUS -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="trigger.description" />\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}" />\n </div>\n <!-- END GENERAL TAB -->\n <div class="tab-pane" id="tab_1_2">\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <i class="icon-tag font-blue-hoki"></i>\n <span class="caption-subject" ng-bind-html="\'APPLICATION_MEET_ALL_CONDITIONS\' | translate"></span>:\n </div>\n </div>\n <div class="portlet-body">\n <div class="portlet light bordered" ng-repeat="all in trigger.All">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <span class="caption-subject">{{ \'APPLICATION_ALL\' | translate }} #{{$index+1}}</span>\n </div>\n <div class="actions">\n <a href="#" class="btn red-sunglo btn-icon-only" ng-click="removeCondition(\'All\',$index)"><i class="fa fa-trash"></i></a>\n </div>\n </div>\n <div class="portlet-body">\n <div class="padding-bottom row">\n <div class="col-md-12">\n <condition-builder element="all" serviceindex="trigger.channel" service="$triggers" form="forms.general"></condition-builder>\n </div>\n </div>\n </div>\n </div>\n <div class="row">\n <div class="col-md-12">\n <button type="button" class="btn btn-sm green padding-bottom" data-ng-click="addCondition(\'All\')">\n <i class="fa fa-plus"></i> {{\'APPLICATION_ADD_CONDITION\' | translate}}\n </button>\n </div>\n </div>\n </div>\n </div>\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <i class="icon-tag font-blue-hoki"></i>\n <span class="caption-subject" ng-bind-html="\'APPLICATION_MEET_ANY_CONDITIONS\' | translate"></span>:\n </div>\n </div>\n <div class="portlet-body">\n <div class="portlet light bordered" ng-repeat="any in trigger.Any">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <span class="caption-subject">{{ \'APPLICATION_ANY\' | translate }} #{{$index+1}}</span>\n </div>\n <div class="actions">\n <a href="#" class="btn red-sunglo btn-icon-only" ng-click="removeCondition(\'Any\',$index)"><i class="fa fa-trash"></i></a>\n </div>\n </div>\n <div class="portlet-body">\n <div class="padding-bottom row">\n <div class="col-md-12">\n <condition-builder element="any" serviceindex="trigger.channel" service="$triggers" form="forms.general"></condition-builder>\n </div>\n </div>\n </div>\n </div>\n <div class="row">\n <div class="col-md-12">\n <button type="button" class="btn btn-sm green padding-bottom" data-ng-click="addCondition(\'Any\')">\n <i class="fa fa-plus"></i> {{\'APPLICATION_ADD_CONDITION\' | translate}}\n </button>\n </div>\n </div>\n </div>\n </div>\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <i class="icon-tag font-blue-hoki"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACTIONS\' | translate }}</span>:\n </div>\n </div>\n <div class="portlet-body">\n <div class="portlet light bordered" ng-repeat="action in trigger.Actions">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <span class="caption-subject">{{ \'APPLICATION_ACTIONS\' | translate }} #{{$index+1}}</span>\n </div>\n <div class="actions">\n <a href="#" class="btn red-sunglo btn-icon-only" ng-click="removeAction($index)"><i class="fa fa-trash"></i></a>\n </div>\n </div>\n <div class="portlet-body">\n <div class="padding-bottom row">\n <div class="col-md-12">\n <div class="form-group col-md-6" data-ng-class="{\'has-error\': (forms.general[\'action\'+$index].$touched || forms.general.$submitted) && forms.general[\'action\'+$index].$invalid}">\n <ui-select data-ng-model="action.action" theme="bootstrap" name="action{{$index}}" data-ng-change="resetActionData(action)" required>\n <ui-select-match placeholder="{{ \'APPLICATION_ACTION\' | translate }}">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="tAction.value as tAction in $triggers.services[trigger.channel].actions | filter: $select.search">\n <div ng-bind-html="tAction.name | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.general[\'action\'+$index].$touched || forms.general.$submitted) && forms.general[\'action\'+$index].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div ng-switch="action.action">\n <action-builder-template ng-switch-when="template" element="action" form="forms.general"></action-builder-template>\n <action-builder-account-template ng-switch-when="accountTemplate" element="action" form="forms.general"></action-builder-account-template>\n <action-builder-integration ng-switch-when="integration" element="action" form="forms.general"></action-builder-integration>\n <action-builder-motion-bar ng-switch-when="motionbar" element="action" form="forms.general"></action-builder-motion-bar>\n <action-builder-jscripty ng-switch-when="jscripty" element="action" form="forms.general"></action-builder-jscripty>\n <action-builder-url-forward ng-switch-when="urlForward" element="action" form="forms.general"></action-builder-url-forward>\n <action-builder-close ng-switch-when="close" element="action" form="forms.general"></action-builder-close>\n <action-builder-forward ng-switch-when="forward" element="action" form="forms.general"></action-builder-forward>\n <action-builder-tag ng-switch-when="tag" element="action" form="forms.general"></action-builder-tag>\n <action-builder-http ng-switch-when="http" element="action" form="forms.general"></action-builder-http>\n <action-builder-email ng-switch-when="email" element="action" form="forms.general"></action-builder-email>\n <action-builder-account-email ng-switch-when="accountEmail" element="action" form="forms.general"></action-builder-account-email>\n <action-builder-account-sms ng-switch-when="accountSms" element="action" form="forms.general"></action-builder-account-sms>\n <action-builder-cm ng-switch-when="contactManager" element="action" form="forms.general"></action-builder-cm>\n <action-builder-web-popup ng-switch-when="webPopup" element="action" form="forms.general"></action-builder-web-popup>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class="row">\n <div class="col-md-12">\n <button type="button" class="btn btn-sm green padding-bottom" data-ng-click="addAction()">\n <i class="fa fa-plus"></i> {{\'APPLICATION_ADD_ACTION\' | translate}}\n </button>\n </div>\n </div>\n </div>\n </div>\n <!-- <div class="has-error" data-ng-show="forms.general.$submitted && !trigger.All.length && !trigger.Any.length">\n <span class="help-block help-block-error form-control">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INSERT_AT_LEAST_ONE_CONDITION\' | translate}}.\n </span>\n </div> -->\n <div class="has-error" data-ng-show="forms.general.$submitted && !trigger.Actions.length">\n <span class="help-block help-block-error form-control">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INSERT_AT_LEAST_ONE_ACTION\' | translate}}.\n </span>\n </div>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}" />\n </div>\n </div>\n </form>\n </div>\n </div>\n</div>\n</div>\n'),a.put("app/tools/trigger/wizard/wizard.html",'<div class="row">\n <div class="col-md-12">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-wrench"></i>\n <a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-bulb"></i>\n <a href="/tools/triggers/list">{{ \'APPLICATION_TRIGGERS\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-bulb font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_TRIGGERS\' | translate }} WIZARD</span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_GENERAL\' | translate}}" canexit="exitValidation(forms.general.$valid)">\n <form name="forms.general" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START STATUS -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_STATUS\' | translate}}</label>\n </br>\n <input bs-switch class="form-control" ng-model="item.status" type="checkbox" name="status" data-ng-init="item.status = 0" switch-active="{{ statusSwitch.isActive }}" switch-on-text="{{ statusSwitch.onText }}" switch-off-text="{{ statusSwitch.offText }}"\n switch-on-color="{{ statusSwitch.onColor }}" switch-off-color="{{ statusSwitch.offColor }}" switch-animate="{{ statusSwitch.animate }}" switch-size="{{ statusSwitch.size }}" switch-label="{{ statusSwitch.label }}" switch-icon="{{ statusSwitch.icon }}"\n switch-radio-off="{{ statusSwitch.radioOff }}" switch-label-width="{{ statusSwitch.labelWidth }}" switch-handle-width="{{ statusSwitch.handleWidth }}">\n </div>\n <!-- END STATUS -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description" />\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()" />\n </form>\n </wz-step>\n <wz-step title="{{\'APPLICATION_SETTINGS\' | translate}}" canexit="exitSettingsValidation(forms.settings.$valid)">\n <form name="forms.settings" novalidate>\n\n <!-- Channel -->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <i class="icon-tag font-blue-hoki"></i>\n <span class="caption-subject">{{ \'APPLICATION_CHANNEL\' | translate }}</span>\n </div>\n </div>\n <div class="portlet-body">\n <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.channel.$touched || forms.settings.$submitted) && forms.settings.channel.$invalid}">\n <label class="control-label">{{ \'APPLICATION_CHANNEL\' | translate }}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.channel" name="channel" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_CHANNEL\' | translate }}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="channel in $triggers.channels | filter: $select.search">\n <div ng-bind-html="channel | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(forms.settings.channel.$touched || forms.settings.$submitted) && forms.settings.channel.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n </div>\n </div>\n\n <!-- All -->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <i class="icon-tag font-blue-hoki"></i>\n <span class="caption-subject" ng-bind-html="\'APPLICATION_MEET_ALL_CONDITIONS\' | translate"></span>:\n </div>\n </div>\n <div class="portlet-body">\n <div class="portlet light bordered" ng-repeat="all in item.All">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <span class="caption-subject">{{ \'APPLICATION_ALL\' | translate }} #{{$index+1}}</span>\n </div>\n <div class="actions">\n <a href="#" class="btn red-sunglo btn-icon-only" ng-click="removeCondition(\'All\',$index)"><i class="fa fa-trash"></i></a>\n </div>\n </div>\n <div class="portlet-body">\n <div class="padding-bottom row">\n <div class="col-md-12">\n <condition-builder element="all" serviceindex="item.channel" service="$triggers" form="forms.general"></condition-builder>\n </div>\n </div>\n </div>\n </div>\n <div class="row">\n <div class="col-md-12">\n <button type="button" class="btn btn-sm green padding-bottom" data-ng-click="addCondition(\'All\')">\n <i class="fa fa-plus"></i> {{\'APPLICATION_ADD_CONDITION\' | translate}}\n </button>\n </div>\n </div>\n </div>\n </div>\n\n <!-- Any -->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <i class="icon-tag font-blue-hoki"></i>\n <span class="caption-subject" ng-bind-html="\'APPLICATION_MEET_ANY_CONDITIONS\' | translate"></span>:\n </div>\n </div>\n <div class="portlet-body">\n <div class="portlet light bordered" ng-repeat="any in item.Any">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <span class="caption-subject">{{ \'APPLICATION_ANY\' | translate }} #{{$index+1}}</span>\n </div>\n <div class="actions">\n <a href="#" class="btn red-sunglo btn-icon-only" ng-click="removeCondition(\'Any\',$index)"><i class="fa fa-trash"></i></a>\n </div>\n </div>\n <div class="portlet-body">\n <div class="padding-bottom row">\n <div class="col-md-12">\n <condition-builder element="any" serviceindex="item.channel" service="$triggers" form="forms.general"></condition-builder>\n </div>\n </div>\n </div>\n </div>\n <div class="row">\n <div class="col-md-12">\n <button type="button" class="btn btn-sm green padding-bottom" data-ng-click="addCondition(\'Any\')">\n <i class="fa fa-plus"></i> {{\'APPLICATION_ADD_CONDITION\' | translate}}\n </button>\n </div>\n </div>\n </div>\n </div>\n\n <!-- Actions -->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <i class="icon-tag font-blue-hoki"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACTIONS\' | translate }}</span>:\n </div>\n </div>\n <div class="portlet-body">\n <div class="portlet light bordered" ng-repeat="action in item.Actions">\n <div class="portlet-title">\n <div class="caption font-blue-hoki">\n <span class="caption-subject">{{ \'APPLICATION_ACTIONS\' | translate }} #{{$index+1}}</span>\n </div>\n <div class="actions">\n <a href="#" class="btn red-sunglo btn-icon-only" ng-click="removeAction($index)"><i class="fa fa-trash"></i></a>\n </div>\n </div>\n <div class="portlet-body">\n <div class="padding-bottom row">\n <!-- <div class="col-md-12"> -->\n <div class="form-group col-md-6" data-ng-class="{\'has-error\': (forms.general[\'action\'+$index].$touched || forms.general.$submitted) && forms.general[\'action\'+$index].$invalid}">\n <ui-select data-ng-model="action.action" theme="bootstrap" data-ng-change="resetActionData(action)" name="action{{$index}}" required>\n <ui-select-match placeholder="{{ \'APPLICATION_ACTION\' | translate }}">{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="tAction.value as tAction in $triggers.services[item.channel].actions | filter: $select.search">\n <div ng-bind-html="tAction.name | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <!-- <span class="help-block">\n {{ \'APPLICATION_ACTION\' | translate }}\n </span> -->\n <span data-ng-show="(forms.general[\'action\'+$index].$touched || forms.general.$submitted) && forms.general[\'action\'+$index].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <div ng-switch="action.action">\n <action-builder-template ng-switch-when="template" element="action" form="forms.general"></action-builder-template>\n <action-builder-account-template ng-switch-when="accountTemplate" element="action" form="forms.general"></action-builder-account-template>\n <action-builder-integration ng-switch-when="integration" element="action" form="forms.general"></action-builder-integration>\n <action-builder-motion-bar ng-switch-when="motionbar" element="action" form="forms.general"></action-builder-motion-bar>\n <action-builder-jscripty ng-switch-when="jscripty" element="action" form="forms.general"></action-builder-jscripty>\n <action-builder-url-forward ng-switch-when="urlForward" element="action" form="forms.general"></action-builder-url-forward>\n <action-builder-close ng-switch-when="close" element="action" form="forms.general"></action-builder-close>\n <action-builder-forward ng-switch-when="forward" element="action" form="forms.general"></action-builder-forward>\n <action-builder-tag ng-switch-when="tag" element="action" form="forms.general"></action-builder-tag>\n <action-builder-http ng-switch-when="http" element="action" form="forms.general"></action-builder-http>\n <action-builder-email ng-switch-when="email" element="action" form="forms.general"></action-builder-email>\n <action-builder-account-email ng-switch-when="accountEmail" element="action" form="forms.general"></action-builder-account-email>\n <action-builder-account-sms ng-switch-when="accountSms" element="action" form="forms.general"></action-builder-account-sms>\n <action-builder-cm ng-switch-when="contactManager" element="action" form="forms.general"></action-builder-cm>\n <action-builder-web-popup ng-switch-when="webPopup" element="action" form="forms.general"></action-builder-web-popup>\n </div>\n <!-- </div> -->\n </div>\n </div>\n </div>\n <div class="row">\n <div class="col-md-12">\n <button type="button" class="btn btn-sm green padding-bottom" data-ng-click="addAction()">\n <i class="fa fa-plus"></i> {{\'APPLICATION_ADD_ACTION\' | translate}}\n </button>\n </div>\n </div>\n </div>\n </div>\n\n <!-- <div class="has-error" data-ng-show="forms.settings.$submitted && !item.All.length && !item.Any.length">\n <span class="help-block help-block-error form-control">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INSERT_AT_LEAST_ONE_CONDITION\' | translate}}.\n </span>\n </div> -->\n <div class="has-error" data-ng-show="forms.settings.$submitted && !item.Actions.length">\n <span class="help-block help-block-error form-control">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INSERT_AT_LEAST_ONE_ACTION\' | translate}}.\n </span>\n </div>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()" />\n </form>\n </wz-step>\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}" />\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END PORTLET-->\n</div>\n</div>\n<!-- END PAGE CONTENT-->\n'), -a.put("app/tools/trunk/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-wrench"></i>\n <a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-link"></i>\n <a href="#">{{ \'APPLICATION_TRUNKS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-link font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_TRUNKS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <a class="btn green-jungle" href="/tools/trunks/wizard" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_TRUNK\' | translate }}\n </a>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/tools/trunk/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-wrench"></i>\n <a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-link"></i>\n <a href="/tools/trunks/list">{{ \'APPLICATION_TRUNKS\' | translate }}</a>\n <i data-ng-show="trunk" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="trunk">\n <a href="#">{{trunk.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/trunk.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{trunk.name}}\n </div>\n <p data-ng-if="trunk.active && trunk.registry && trunk.status">({{trunk.status}})</p>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.tools.trunks.view.settings\')}">\n <a data-ng-href="/tools/trunks/view/{{trunk.name}}/settings"><i class="icon-settings"></i> {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/tools/trunk/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_TRUNK\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{ \'APPLICATION_ADVANCED\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_3" data-toggle="tab">{{ \'APPLICATION_OTHER_FIELDS\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body" data-ng-init="getContexts();">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateTrunk()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="trunk.name" data-ng-pattern="settings.patternName" required readonly/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START ACTIVE -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_ACTIVE\' | translate}}</label></br>\n <input\n bs-switch\n class="form-control"\n ng-model="trunk.active"\n type="checkbox"\n name="auth"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-off-color="{{ activeSwitch.offColor }}"\n switch-on-color="{{ activeSwitch.onColor }}"\n switch-animate="{{ activeSwitch.animate }}"\n switch-size="{{ activeSwitch.size }}"\n switch-label="{{ activeSwitch.label }}"\n switch-icon="{{ activeSwitch.icon }}"\n switch-radio-off="{{ activeSwitch.radioOff }}"\n switch-label-width="{{ activeSwitch.labelWidth }}"\n switch-handle-width="{{ activeSwitch.handleWidth }}">\n </div>\n <!-- END ACTIVE -->\n <div class="row">\n\n <div class="col-md-6">\n\n <!-- START HOST -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.host.$touched || forms.general.$submitted) && forms.general.host.$invalid}">\n <label class="control-label">{{\'APPLICATION_HOST\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="host" placeholder="{{\'APPLICATION_HOST\' | translate}}" class="form-control" data-ng-model="trunk.host" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_HOST\' | translate }}\n </span>\n <span data-ng-show="(forms.general.host.$touched || forms.general.$submitted) && forms.general.host.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END HOST -->\n\n <!-- START SECRET -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.secret.$touched || forms.general.$submitted) && forms.general.secret.$invalid}">\n <label class="control-label">{{\'APPLICATION_SECRET\' | translate}}</label>\n <input type="password" name="secret" placeholder="{{\'APPLICATION_SECRET\' | translate}}" class="form-control" data-ng-model="trunk.secret">\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_SECRET\' | translate }}\n </span>\n <span data-ng-show="(forms.general.secret.$touched || forms.general.$submitted) && forms.general.secret.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SECRET -->\n\n <!-- START CONTEXT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.context.$touched || forms.general.$submitted) && forms.general.context.$invalid}">\n <label class="control-label">{{\'APPLICATION_CONTEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="trunk.context" name="context" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="context.name as context in voiceContexts | filter: $select.search">\n <div ng-bind-html="context.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_VOICE_CONTEXT\' | translate }}\n </span>\n <span data-ng-show="(forms.general.context.$touched || forms.general.$submitted) && forms.general.context.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CONTEXT -->\n\n <!-- START CALLERID -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.callerid.$touched || forms.general.$submitted) && forms.general.callerid.$invalid}">\n <label class="control-label">{{\'APPLICATION_CALLERID\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="callerid" pattern=\'^"[a-zA-Z0-9_.-]*" <[a-zA-Z0-9_.-]*>\' placeholder="{{\'APPLICATION_CALLERID\' | translate}}" class="form-control" data-ng-model="trunk.callerid"/>\n <span class="help-block">\n {{ \'DESCRIPTION_OUTBOUND_CALLERID\' | translate }} "name" <number>\n </span>\n <span data-ng-show="(forms.general.callerid.$touched || forms.general.$submitted) && forms.general.callerid.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CALLERID -->\n\n <!-- START TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.type.$touched || forms.general.$submitted) && forms.general.type.$invalid}">\n <label class="control-label">{{\'APPLICATION_TYPE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="trunk.type" name="type" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'user\',\'peer\',\'friend\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_TYPE\' | translate }}\n </span>\n <span data-ng-show="(forms.general.type.$touched || forms.general.$submitted) && forms.general.type.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TYPE -->\n\n <!-- START DTMFMODE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.dtmfmode.$touched || forms.general.$submitted) && forms.general.dtmfmode.$invalid}">\n <label class="control-label">{{\'APPLICATION_DTMFMODE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="trunk.dtmfmode" name="dtmfmode" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="item in [\'rfc2833\', \'info\', \'shortinfo\', \'inband\',\'auto\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_DTMFMODE\' | translate }}\n </span>\n <span data-ng-show="(forms.general.dtmfmode.$touched || forms.general.$submitted) && forms.general.dtmfmode.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END DTMFMODE -->\n\n </div>\n\n <div class="col-md-6">\n\n <!-- START DEFAULT USER -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.defaultuser.$invalid}">\n <label class="control-label">{{\'APPLICATION_DEFAULT_USER\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="defaultuser" placeholder="{{\'APPLICATION_DEFAULT_USER\' | translate}}" class="form-control" data-ng-model="trunk.defaultuser" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_DEFAULT_USER\' | translate }}\n </span>\n <span data-ng-show="forms.general.$submitted && (forms.general.defaultuser.$invalid)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END DEFAULT USER -->\n\n <!-- START NAT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.nat.$touched || forms.general.$submitted) && forms.general.nat.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select multiple data-ng-model="trunk.nat" name="nat" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\', \'no\', \'never\', \'route\', \'force_rport\', \'comedia\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_NAT\' | translate }}\n </span>\n <span data-ng-show="(forms.general.nat.$touched || forms.general.$submitted) && forms.general.nat.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAT -->\n\n <!-- START QUALIFY -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.qualify.$touched || forms.general.$submitted) && forms.general.qualify.$invalid}">\n <label class="control-label">{{\'APPLICATION_QUALIFY\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="trunk.qualify" name="qualify" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_QUALIFY\' | translate }}\n </span>\n <span data-ng-show="(forms.general.qualify.$touched || forms.general.$submitted) && forms.general.qualify.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END QUALIFY -->\n\n <!-- START ALLOW -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.allow.$touched || forms.general.$submitted) && forms.general.allow.$invalid}">\n <label class="control-label">{{\'APPLICATION_ALLOW_CODEC\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select multiple data-ng-model="trunk.allow" name="allow" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="item in [\'g723\',\'gsm\',\'ulaw\',\'alaw\',\'g726\',\'g722\',\'g729\',\'ilbc\',\'opus\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_ALLOW_CODEC\' | translate }}\n </span>\n <span data-ng-show="(forms.general.allow.$touched || forms.general.$submitted) && forms.general.allow.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END ALLOW -->\n\n <!-- START INSECURE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.insecure.$touched || forms.general.$submitted) && forms.general.insecure.$invalid}">\n <label class="control-label">{{\'APPLICATION_INSECURE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select multiple data-ng-model="trunk.insecure" name="insecure" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="item in [\'port\',\'invite\',\'very\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_INSECURE\' | translate }}\n </span>\n <span data-ng-show="(forms.general.insecure.$touched || forms.general.$submitted) && forms.general.insecure.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END INSECURE -->\n\n <!-- START CALLLIMIT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.call_limit.$touched || forms.general.$submitted) && forms.general.call_limit.$invalid}">\n <label class="control-label">{{\'APPLICATION_CALLLIMIT\' | translate}}</label>\n <input type="number" min="0" name="call-limit" placeholder="{{\'APPLICATION_CALLLIMIT\' | translate}}" class="form-control" data-ng-model="trunk.call_limit"/>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_CALLLIMIT\' | translate }}\n </span>\n </div>\n <!-- END CALLLIMIT -->\n\n </div>\n </div>\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="trunk.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n <!-- ADVANCED TAB -->\n <div class="tab-pane" id="tab_1_2">\n <form name="forms.advanced" data-ng-submit="forms.advanced.$valid && updateTrunk()" novalidate>\n <div class="row">\n <div class="col-md-6">\n\n <!-- START REGISTRY -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_REGISTRY\' | translate}}</label>\n <input type="text" name="registry" placeholder="{{\'APPLICATION_REGISTRY\' | translate}}" class="form-control" data-ng-model="trunk.registry"/>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_REGISTRY\' | translate }}\n </span>\n </div>\n <!-- END REGISTRY -->\n\n <!-- START DIRECTMEDIA -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.directmedia.$touched || forms.advanced.$submitted) && forms.advanced.directmedia.$invalid}">\n <label class="control-label">{{\'APPLICATION_DIRECTMEDIA\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="trunk.directmedia" name="directmedia" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\', \'no\', \'nonat\', \'update\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_DIRECTMEDIA\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.directmedia.$touched || forms.advanced.$submitted) && forms.advanced.directmedia.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END DIRECTMEDIA -->\n\n <!-- START CALLCOUNTER -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.callcounter.$touched || forms.advanced.$submitted) && forms.advanced.callcounter.$invalid}">\n <label class="control-label">{{\'APPLICATION_CALLCOUNTER\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="trunk.callcounter" name="callcounter" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_CALLCOUNTER\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.callcounter.$touched || forms.advanced.$submitted) && forms.advanced.callcounter.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END CALLCOUNTER -->\n\n <!-- START FROMDOMAIN -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.advanced.$submitted && forms.advanced.fromdomain.$invalid}">\n <label class="control-label">{{\'APPLICATION_FROMDOMAIN\' | translate}}</label>\n <input type="text" name="fromdomain" placeholder="{{\'APPLICATION_FROMDOMAIN\' | translate}}" class="form-control" data-ng-model="trunk.fromdomain" />\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_FROMDOMAIN\' | translate }}\n </span>\n <span data-ng-show="forms.advanced.$submitted && (forms.advanced.fromdomain.$invalid)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END FROMDOMAIN -->\n\n <!-- START FROMUSER -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.advanced.$submitted && forms.advanced.fromuser.$invalid}">\n <label class="control-label">{{\'APPLICATION_FROMUSER\' | translate}}</label>\n <input type="text" name="fromuser" placeholder="{{\'APPLICATION_FROMUSER\' | translate}}" class="form-control" data-ng-model="trunk.fromuser" />\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_FROMUSER\' | translate }}\n </span>\n <span data-ng-show="forms.advanced.$submitted && (forms.advanced.fromuser.$invalid)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END FROMUSER -->\n\n </div>\n <div class="col-md-6">\n\n <!-- START OUTBOUNDPROXY -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.advanced.$submitted && forms.advanced.outboundproxy.$invalid}">\n <label class="control-label">{{\'APPLICATION_OUTBOUNDPROXY\' | translate}}</label>\n <input type="text" name="outboundproxy" placeholder="{{\'APPLICATION_OUTBOUNDPROXY\' | translate}}" class="form-control" data-ng-model="trunk.outboundproxy" />\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_OUTBOUNDPROXY\' | translate }}\n </span>\n <span data-ng-show="forms.advanced.$submitted && (forms.advanced.outboundproxy.$invalid)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END OUTBOUNDPROXY -->\n\n <!-- START USEREQPHONE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.usereqphone.$touched || forms.advanced.$submitted) && forms.advanced.usereqphone.$invalid}">\n <label class="control-label">{{\'APPLICATION_USEREQPHONE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="trunk.usereqphone" name="usereqphone" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_USEREQPHONE\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.usereqphone.$touched || forms.advanced.$submitted) && forms.advanced.usereqphone.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USEREQPHONE -->\n\n <!-- START TRUSTRPID -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.trustrpid.$touched || forms.advanced.$submitted) && forms.advanced.trustrpid.$invalid}">\n <label class="control-label">{{\'APPLICATION_TRUSTRPID\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="trunk.trustrpid" name="trustrpid" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_TRUSTRPID\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.trustrpid.$touched || forms.advanced.$submitted) && forms.advanced.trustrpid.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TRUSTRPID -->\n\n <!-- START SENDRPID -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.sendrpid.$touched || forms.advanced.$submitted) && forms.advanced.sendrpid.$invalid}">\n <label class="control-label">{{\'APPLICATION_SENDRPID\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="trunk.sendrpid" name="sendrpid" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_SENDRPID\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.sendrpid.$touched || forms.advanced.$submitted) && forms.advanced.sendrpid.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END SENDRPID -->\n\n <!-- START ENCRYPTION -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.encryption.$touched || forms.advanced.$submitted) && forms.advanced.encryption.$invalid}">\n <label class="control-label">{{\'APPLICATION_ENCRYPTION\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="trunk.encryption" name="encryption" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="item in [\'yes\',\'no\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_ENCRYPTION\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.encryption.$touched || forms.advanced.$submitted) && forms.advanced.encryption.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END ENCRYPTION -->\n\n <!-- START PORT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.port.$touched || forms.advanced.$submitted) && forms.advanced.port.$invalid}">\n <label class="control-label">{{\'APPLICATION_PORT\' | translate}}</label>\n <input type="number" min="0" name="port" placeholder="{{\'APPLICATION_PORT\' | translate}}" class="form-control" data-ng-model="trunk.port"/>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_PORT\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.port.$touched || forms.advanced.$submitted) && forms.advanced.port.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PORT -->\n\n <!-- START TRANSPORT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.transport.$touched || forms.advanced.$submitted) && forms.advanced.transport.$invalid}">\n <label class="control-label">{{\'APPLICATION_TRANSPORT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select multiple data-ng-model="trunk.transport" name="transport" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$item}}</ui-select-match>\n <ui-select-choices repeat="item in [\'udp\',\'wss\',\'ws\',\'tcp\',\'tls\'] | filter: $select.search">\n <div ng-bind-html="item | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_TRANSPORT\' | translate }}\n </span>\n <span data-ng-show="(forms.advanced.transport.$touched || forms.advanced.$submitted) && forms.advanced.transport.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TRANSPORT -->\n\n </div>\n </div>\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ADVANCED TAB -->\n <!-- START OTHER FIELDS TAB -->\n <div class="tab-pane" id="tab_1_3">\n <form name="forms.otherFields" data-ng-submit="forms.otherFields.$valid && updateTrunk()" novalidate>\n <div class="row">\n <div class="col-md-6">\n <!-- START OTHER FIELDS-->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_OTHER_FIELDS\' | translate}}</label>\n <textarea name="otherFields" placeholder="{{\'APPLICATION_OTHER_FIELDS\' | translate}}" class="form-control otherfields-col" data-ng-model="trunk.otherFields"></textarea>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_OTHER_FIELDS\' | translate }}\n </span>\n </div>\n <!-- END OTHER FIELDS -->\n </div>\n <div class="col-md-6">\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_EXAMPLE\' | translate}}</label>\n <div class="well">\n <div>host=dynamic</div>\n <div>secret=********</div>\n <div>regcontext=tammari-internal</div>\n <div>regexten=1005</div>\n <div>dtmfmode=rfc2833</div>\n <div>insecure=invite,port</div>\n <div>canreinvite=yes</div>\n <div>nat=yes</div>\n <div>qualify=yes</div>\n <div>context=merus-sipphone</div>\n <div>pickupgroup=1</div>\n <div>callgroup=1</div>\n <div>mailbox=1000@default</div>\n </div>\n </div>\n </div>\n </div>\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n\n </div>\n <!-- END OTHER FIELDS TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'), -a.put("app/tools/trunk/wizard/wizard.html",'<div class="col-md-12" data-ng-init="initWizard()">\n <!-- BEGIN PAGE HEADER-->\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-wrench"></i>\n <a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-link"></i>\n <a href="/tools/trunks/list">{{ \'APPLICATION_TRUNKS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-options"></i>\n <a href="#">{{ \'APPLICATION_WIZARD\' | translate }}</a>\n </li>\n </ul>\n </div>\n <!-- END PAGE HEADER-->\n\n <!-- BEGIN PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-link font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_TRUNK\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_GENERAL\' | translate}}" canexit="exitValidation(forms.general.$valid)">\n <form name="forms.general" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.$submitted && forms.general.name.$invalid) || forms.general.name.$error.pattern}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" data-ng-pattern="settings.simplePatternName" required/>\n <span data-ng-show="forms.general.$submitted && forms.general.name.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.pattern" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START HOST -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.host.$invalid}">\n <label class="control-label">{{\'APPLICATION_HOST\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="host" placeholder="{{\'APPLICATION_HOST\' | translate}}" class="form-control" data-ng-model="item.host" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_HOST\' | translate }}\n </span>\n <span data-ng-show="forms.general.$submitted && forms.general.host.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END HOST -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.password.$invalid}">\n <label class="control-label">{{\'APPLICATION_SECRET\' | translate}}</label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.secret"/>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_SECRET\' | translate }}\n </span>\n <span data-ng-show="forms.general.$submitted && forms.general.password.$invalid" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START DEFAULT USER -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.defaultuser.$invalid}">\n <label class="control-label">{{\'APPLICATION_DEFAULT_USER\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="defaultuser" placeholder="{{\'APPLICATION_DEFAULT\' | translate}} {{\'APPLICATION_USER\' | translate}}" class="form-control" data-ng-model="item.defaultuser" required/>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_DEFAULT_USER\' | translate }}\n </span>\n <span data-ng-show="forms.general.$submitted && (forms.general.defaultuser.$invalid)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_PASSWORD\' | translate}}.\n </span>\n </div>\n <!-- END DEFAULT USER -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n <button class="btn green-haze" type="submit" ng-click="next(true)">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_ADVANCED\' | translate}}" canexit="exitValidation(forms.advanced.$valid)">\n <form name="forms.advanced" novalidate>\n\n <!-- START REGISTRY -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_REGISTRY\' | translate}}</label>\n <input type="text" name="registry" placeholder="{{\'APPLICATION_REGISTRY\' | translate}}" class="form-control" data-ng-model="item.registry"/>\n <span class="help-block">\n {{ \'DESCRIPTION_TRUNK_REGISTRY\' | translate }}\n </span>\n </div>\n <!-- END REGISTRY -->\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <button class="btn green-haze" type="submit" ng-click="next()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n </wizard>\n </div>\n </div>\n <!-- END PORTLET-->\n</div>\n'),a.put("app/tools/variable/list/list.create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_VARIABLE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/tools/variable/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-wrench"></i>\n <a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-eye"></i>\n <a href="#">{{ \'APPLICATION_VARIABLES\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_VARIABLES\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <button class="btn green-jungle " ng-click="createItem()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_VARIABLE\' | translate }}\n </button>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/tools/variable/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getVariable()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-wrench"></i>\n <a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-eye"></i>\n <a href="/tools/variables/list">{{ \'APPLICATION_VARIABLES\' | translate }}</a>\n <i data-ng-show="variable" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="variable">\n <a href="#">{{variable.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/variable.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{variable.name}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.tools.variables.view.settings\')}">\n <a data-ng-href="/tools/variables/view/{{variable.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/tools/variable/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_VARIABLE\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateVariable()" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="variable.name" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="variable.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ADVANCED TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/tools/yourdashboard/list/clone.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_CLONE_DASHBOARD\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="forms.dashboard" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.dashboard.name.$touched || forms.dashboard.$submitted) && forms.dashboard.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(forms.dashboard.name.$touched || forms.dashboard.$submitted) && forms.dashboard.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="ok()" ng-disabled="forms.dashboard.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/tools/yourdashboard/list/create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_DASHBOARD\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="forms.dashboard" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.dashboard.name.$touched || forms.dashboard.$submitted) && forms.dashboard.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(forms.dashboard.name.$touched || forms.dashboard.$submitted) && forms.dashboard.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="ok()" ng-disabled="forms.dashboard.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/tools/yourdashboard/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-tachometer"></i>\n <a href="/tools/yourdashboards/list">{{ \'APPLICATION_YOUR_DASHBOARDS\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-docs font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_YOUR_DASHBOARDS\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <button class="btn green-jungle " ng-click="create()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_DASHBOARD\' | translate }}\n </button>\n </div>\n <!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> -->\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/tools/yourdashboard/show/leaveEditedDashboard.modal.html",'<div class="modal-header" data-ng-init="getContacts()">\n <h3 class="modal-title">{{ \'APPLICATION_WARNING\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <p>{{\'MESSAGE_LEAVE_EDITED_PAGE\' | translate}}</p>\n</div>\n<div class="modal-footer">\n <button class="btn btn-danger" type="button" ng-click="close()">{{ \'APPLICATION_CONTINUE\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),a.put("app/tools/yourdashboard/show/show.html",'<div class="row" style="min-height: 466px;" id="yourDashboardView">\n <div class="col-md-12" ng-init="getDashboard()">\n <adf-dashboard\n data-ng-if="dashboard"\n name="{{dashboard.name}}"\n collapsible="{{dashboard.collapsible}}"\n maximizable="{{dashboard.maximizable}}"\n enableconfirmdelete="{{dashboard.enableconfirmdelete}}"\n structure="{{dashboard.structure}}"\n editable="{{dashboard.editable}}"\n adf-model="dashboard.model"/>\n </div>\n</div>\n'),a.put("app/tools/yourdashboard/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="getDashboard()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="fa fa-tachometer"></i>\n <a href="/tools/yourdashboards/list">{{ \'APPLICATION_YOUR_DASHBOARDS\' | translate }}</a>\n <i data-ng-show="dashboard" class="fa fa-angle-right"></i>\n </li>\n <li data-ng-show="dashboard">\n <a href="#">{{dashboard.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img data-ng-src="assets/images/media/dashboard.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{dashboard.name}}\n </div>\n <!-- <div class="profile-usertitle-job">\n {{user.role}}\n </div> -->\n </div>\n <!-- END SIDEBAR USER TITLE -->\n\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.tools.yourdashboards.view.settings\')}">\n <a data-ng-href="/tools/yourdashboards/view/{{dashboard.id}}/settings">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/tools/yourdashboard/view/view.settings.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_DASHBOARD\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n </li>\n </ul>\n </div>\n\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.general" data-ng-submit="forms.general.$valid && updateDashboard()" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="dashboard.name" required/>\n <span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START REFRESH_TIMEOUT -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.general.timeout.$touched || forms.general.$submitted) && forms.general.timeout.$invalid}">\n <label class="control-label">{{\'APPLICATION_REFRESH_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="number" min="5" name="name" placeholder="{{\'APPLICATION_REFRESH_TIMEOUT\' | translate}}" class="form-control" data-ng-model="dashboard.timeout" required/>\n <span data-ng-show="(forms.general.timeout.$touched || forms.general.$submitted) && forms.general.timeout.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END REFRESH_TIMEOUT -->\n\n <!-- START VISIBLE TO ADMIN -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_VISIBLE_TO_ADMIN\' | translate}}</label><br>\n <input\n bs-switch\n ng-model="dashboard.admin"\n type="checkbox"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <!-- END VISIBLE TO ADMIN -->\n\n <!-- START VISIBLE TO USER -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_VISIBLE_TO_USER\' | translate}}</label><br>\n <input\n bs-switch\n ng-model="dashboard.user"\n type="checkbox"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <!-- END VISIBLE TO USER -->\n\n <!-- START VISIBLE TO AGENT -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_VISIBLE_TO_AGENT\' | translate}}</label><br>\n <input\n bs-switch\n ng-model="dashboard.agent"\n type="checkbox"\n switch-active="{{ radioSwitch.isActive }}"\n switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n switch-on-color="{{ radioSwitch.onColor }}"\n switch-off-color="{{ radioSwitch.offColor }}"\n switch-animate="{{ radioSwitch.animate }}"\n switch-size="{{ radioSwitch.size }}"\n switch-label="{{ radioSwitch.label }}"\n switch-icon="{{ radioSwitch.icon }}"\n switch-radio-off="{{ radioSwitch.radioOff }}"\n switch-label-width="{{ radioSwitch.labelWidth }}"\n switch-handle-width="{{ radioSwitch.handleWidth }}">\n </div>\n <!-- END VISIBLE TO AGENT -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="dashboard.description"></textarea>\n </div>\n <!-- END DESCRIPTION -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END ADVANCED TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/zendesk/list/list.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-heart"></i>\n <a href="/zendesk/list">{{ \'APPLICATION_ZENDESK\' | translate }}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered" data-ng-init="initView()">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-heart font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ZENDESK\' | translate }}</a> </span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="/zendesk/wizard" data-toggle="dropdown">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_ACCOUNT\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n <!-- END TABLE -->\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/zendesk/view/configuration/list/create.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_NEW_CONFIGURATION\' | translate }}</h3>\n</div>\n<div class="modal-body">\n <form name="form" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.name.$submitted) && form.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="(form.name.$touched || form.name.$submitted) && form.name.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START CHANNEL -->\n <div class="form-group" data-ng-class="{\'has-error\': (form.channel.$touched || form.channel.$submitted) && form.channel.$invalid}">\n <label class="control-label">{{\'APPLICATION_CHANNEL\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.channel" name="channel" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_CHANNEL\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="channel.value as channel in channels | filter: $select.search">\n <div data-ng-bind="channel.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form.channel.$touched || form.channel.$submitted) && form.channel.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- START CHANNEL -->\n\n <!-- START VOICE SUBTYPE -->\n <div data-ng-if="item.channel===\'voice\'" class="form-group" data-ng-class="{\'has-error\': (form.channel.$touched || form.channel.$submitted) && form.channel.$invalid}">\n <label class="control-label">{{\'APPLICATION_TYPE\' | translate}}<span class="required" aria-required="true">*</span></label>\n <ui-select data-ng-model="item.type" name="type" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_TYPE\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="type in [\'Queue\',\'Outbound\'] | filter: $select.search">\n <div data-ng-bind="type | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form.type.$touched || form.type.$submitted) && form.type.$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- START CHANNEL -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/></textarea>\n </div>\n <!-- END DESCRIPTION -->\n\n </form>\n</div>\n<div class="modal-footer">\n <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'), -a.put("app/zendesk/view/configuration/list/list.html",'<div ui-view class="profile-content">\n <div class="row">\n <div class="col-md-12">\n <div class="portlet light" data-ng-init="initView()">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_CONFIGURATIONS\' | translate}}</span>\n </div>\n <div class="actions">\n <div class="btn-group" data-ng-show="id.length">\n <a class="btn red" href="#" data-ng-click="deleteItems()">\n <i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n </a>\n </div>\n <div class="btn-group">\n <a class="btn green-jungle" href="#" data-ng-click="createItem()">\n <i class="icon-plus"></i> {{ \'APPLICATION_NEW_CONFIGURATION\' | translate }}\n </a>\n </div>\n </div>\n </div>\n <div class="portlet-body">\n <!-- START TABLE -->\n <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/zendesk/view/configuration/view/view.html",'<div class="row" data-ng-init="initView();getConfiguration();getCustomVariables();getFields();getTags();">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_CONFIGURATION\' | translate}}: {{configurationName}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_SUBJECT\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_DESCRIPTION\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_3" data-toggle="tab">{{\'APPLICATION_FIELDS\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_4" data-toggle="tab">{{\'APPLICATION_TAGS\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- SUBJECT TAB -->\n <div class="tab-pane ui-padding active" id="tab_1_1">\n <div class="row">\n <div class="col-md-11">\n <span class="caption-subject">All following fields will be join by blank space:</span>\n </div>\n <div class="col-md-1 pull-rigth">\n <button class="btn btn-icon-only green" data-ng-click="addItem(\'subject\')"><i class="fa fa-plus"></i></button>\n </div>\n </div>\n <hr>\n <!-- <div id="subject-item-list" ng-scrollbars ng-scrollbars-config="config"> -->\n <div class="row" data-ng-repeat="subjectItem in subjectConfig">\n <div class="col-md-3">\n <ui-select ng-model="subjectItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeType(subjectItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices repeat="item.type as item in fieldType | filter: $select.search">\n <div ng-bind-html="item.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-8" data-ng-if="subjectItem.type==\'string\'">\n <div class="form-group">\n <input type="text" class="form-control" data-ng-model="subjectItem.content" data-ng-change="updateField(subjectItem)">\n </div>\n </div>\n <div class="col-md-8" data-ng-if="subjectItem.type==\'variable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="subjectItem.variableName" data-ng-change="updateField(subjectItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices group-by="groupVariableByGroup" repeat="variable.name as variable in variables | filter: $select.search">\n <div ng-bind-html="variable.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-8" data-ng-if="subjectItem.type==\'customVariable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="subjectItem.VariableId" data-ng-change="updateField(subjectItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="variable.id as variable in customVariables | filter: $select.search">\n <div ng-bind-html="variable.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-1">\n <div class="form-group">\n <button class="btn btn-icon-only red" data-ng-click="removeItem(subjectItem)"><i class="fa fa-times"></i></button>\n </div>\n </div>\n </div>\n <!-- </div> -->\n </div>\n <!-- END SUBJECT TAB -->\n <!-- DESCRIPTION TAB -->\n <div class="tab-pane ui-padding" id="tab_1_2">\n <div class="row">\n <div class="col-md-11">\n <span class="caption-subject">All following fields will be join by new line:</span>\n </div>\n <div class="col-md-1 pull-rigth">\n <button class="btn btn-icon-only green" data-ng-click="addItem(\'description\')"><i class="fa fa-plus"></i></button>\n </div>\n </div>\n <hr>\n <!-- <div id="description-item-list" ng-scrollbars ng-scrollbars-config="config"> -->\n <div class="row" data-ng-repeat="descriptionItem in descriptionConfig">\n <div class="col-md-2">\n <ui-select ng-model="descriptionItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeDescType(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices repeat="item.type as item in descFieldType | filter: $select.search">\n <div ng-bind-html="item.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-9" data-ng-if="descriptionItem.type==\'string\'">\n <div class="form-group">\n <input type="text" class="form-control" data-ng-model="descriptionItem.content" data-ng-change="updateField(descriptionItem)">\n </div>\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\'">\n <input type="text" class="form-control" placeholder="Key" data-ng-model="descriptionItem.key" data-ng-change="updateField(descriptionItem)">\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\'">\n <ui-select ng-model="descriptionItem.keyType" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeDescType(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices repeat="item.type as item in fieldType | filter: $select.search">\n <div ng-bind-html="item.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\' && descriptionItem.keyType==\'string\'">\n <input type="text" class="form-control" placeholder="Value" data-ng-model="descriptionItem.keyContent" data-ng-change="updateField(descriptionItem)">\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\' && descriptionItem.keyType==\'variable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="descriptionItem.variableName" data-ng-change="updateField(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices group-by="groupVariableByGroup" repeat="variable.name as variable in variables | filter: $select.search">\n <div ng-bind-html="variable.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\' && descriptionItem.keyType==\'customVariable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="descriptionItem.VariableId" data-ng-change="updateField(descriptionItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="variable.id as variable in customVariables | filter: $select.search">\n <div ng-bind-html="variable.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-1">\n <div class="form-group">\n <button class="btn btn-icon-only red" data-ng-click="removeItem(descriptionItem)"><i class="fa fa-times"></i></button>\n </div>\n </div>\n </div>\n <!-- </div> -->\n </div>\n <!-- END DESCRIPTION TAB -->\n <!-- FIELDS TAB -->\n <div class="tab-pane ui-padding" id="tab_1_3">\n <div class="row">\n <div class="col-md-11">\n <span class="caption-subject">Add how to fill the fields present in your account:</span>\n </div>\n <div class="col-md-1 pull-rigth">\n <button class="btn btn-icon-only green" data-ng-click="addItem(\'field\')"><i class="fa fa-plus"></i></button>\n </div>\n </div>\n <hr>\n <!-- <div id="field-item-list" ng-scrollbars ng-scrollbars-config="config"> -->\n <div class="row" data-ng-repeat="fieldItem in fieldConfig">\n <div class="col-md-3">\n <ui-select ng-model="fieldItem.idField" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeFieldType(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices repeat="item.id as item in accountFields | filter: $select.search">\n <div ng-bind-html="item.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n <div class="col-md-8" data-ng-if="getSystemFieldOptions(fieldItem.idField)">\n <div class="form-group">\n <ui-select ng-model="fieldItem.content" theme="bootstrap" ng-disabled="disabled" data-ng-change="updateField(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="item.value as item in getSystemFieldOptions(fieldItem.idField) | filter: $select.search">\n <div ng-bind-html="item.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField)">\n <div class="form-group">\n <ui-select ng-model="fieldItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeType(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices repeat="item.type as item in fieldType | filter: $select.search">\n <div ng-bind-html="item.title | highlight: $select.search | ucfirst"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'string\'">\n <div class="form-group">\n <input type="text" class="form-control" data-ng-model="fieldItem.content" data-ng-change="updateField(fieldItem)">\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'variable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="fieldItem.variableName" data-ng-change="updateField(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n <ui-select-choices group-by="groupVariableByGroup" repeat="variable.name as variable in variables | filter: $select.search">\n <div ng-bind-html="variable.title | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'customVariable\'">\n <div class="form-group">\n <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="fieldItem.VariableId" data-ng-change="updateField(fieldItem)">\n <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="variable.id as variable in customVariables | filter: $select.search">\n <div ng-bind-html="variable.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n </div>\n </div>\n <div class="col-md-1">\n <div class="form-group">\n <button class="btn btn-icon-only red" data-ng-click="removeItem(fieldItem)"><i class="fa fa-times"></i></button>\n </div>\n </div>\n </div>\n <!-- </div> -->\n </div>\n <!-- END FIELDS TAB -->\n <!-- TAG TAB -->\n <div class="tab-pane ui-padding" id="tab_1_4">\n <div class="row">\n <div class="col-md-12">\n <span class="caption-subject">Select tags that you want add in the ticket:</span>\n </div>\n </div>\n <hr>\n <form name="forms.tags" data-ng-submit="updateTags()" novalidate>\n <!-- TAG -->\n <div class="form-group">\n <ui-select multiple data-ng-model="selectedTags.tags" theme="bootstrap" name="tags" ng-disabled="disabled">\n <ui-select-match placeholder="{{ \'APPLICATION_TAGS\' | translate }}">{{$item.name}}</ui-select-match>\n <ui-select-choices repeat="tag.id as tag in tags | filter: $select.search">\n {{tag.name}}\n </ui-select-choices>\n </ui-select>\n </div>\n <!-- END TAG -->\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END TAG TAB -->\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/zendesk/view/view.account.html",'<div class="row">\n <div class="col-md-12">\n <div class="portlet light">\n <div class="portlet-title tabbable-line">\n <div class="caption caption-md">\n <i class="icon-globe theme-font hide"></i>\n <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_ACCOUNT\' | translate}}</span>\n </div>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERALS\' | translate}}</a>\n </li>\n </ul>\n </div>\n <div class="portlet-body">\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <form name="forms.formSetting" data-ng-submit="forms.formSetting.$valid && updateItem()" novalidate>\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.name" required/>\n <span data-ng-show="forms.formSetting.name.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="account.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formSetting.type.$touched || forms.formSetting.$submitted) && forms.formSetting.type.$invalid}">\n <label class="control-label">{{\'APPLICATION_TYPE\' | translate}}</label>\n <ui-select data-ng-model="account.type" name="type" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_TYPE\' | translate}}">{{\'APPLICATION_\'+$select.selected | uppercase | translate}}</ui-select-match>\n <ui-select-choices repeat="type in [\'integrationTab\', \'newTab\'] | filter: $select.search">\n <div data-ng-bind="\'APPLICATION_\'+type | uppercase | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.formSetting.type.$invalid && (forms.formSetting.type.$touched || forms.formSetting.$submitted)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- START TYPE -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.username" required/>\n <span data-ng-show="forms.formSetting.username.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START REMOTE ADDRESS -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.remoteUri.$invalid}">\n <label class="control-label">{{\'APPLICATION_URI\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="remoteUri" placeholder="{{\'APPLICATION_URI\' | translate}}" class="form-control" data-ng-model="account.remoteUri" required />\n <span data-ng-show="forms.formSetting.remoteUri.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START AUTH TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.authType.$invalid}">\n <label class="control-label">{{\'APPLICATION_AUTHENTICATION_TYPE\' | translate}}</label>\n <ui-select data-ng-model="account.authType" name="authType" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_AUTHENTICATION_TYPE\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="type in [\'password\', \'token\'] | filter: $select.search">\n <div data-ng-bind="type | capitalize | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.formSetting.authType.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- START AUTH TYPE -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.password.$invalid}" ng-slide-down="account.authType == \'password\'" lazy-render duration="1">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.password" required/>\n <span data-ng-show="forms.formSetting.password.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START TOKEN -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.token.$invalid}" ng-slide-down="account.authType == \'token\'" lazy-render duration="1">\n <label class="control-label">{{\'APPLICATION_TOKEN\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="token" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.token" required/>\n <span data-ng-show="forms.formSetting.token.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TOKEN -->\n\n <!-- START SERVER URL -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.serverUrl.$invalid}">\n <label class="control-label">{{\'APPLICATION_MOTION_ADDRESS\' | translate}}</label>\n <input type="url" name="serverUrl" placeholder="{{\'APPLICATION_MOTION_ADDRESS\' | translate}}" class="form-control" data-ng-model="account.serverUrl"/>\n <span class="help-block">\n {{\'DESCRIPTION_SERVER_URL\' | translate}}.\n </span>\n <span class="help-block help-block-info">\n {{\'MESSAGE_MOTION_ADDRESS_FORMAT\' | translate}}\n </span>\n </div>\n <!-- END SERVER URL -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n </form>\n </div>\n <!-- END GENERAL TAB -->\n\n </div>\n </div>\n </div>\n </div>\n</div>\n'),a.put("app/zendesk/view/view.html",'<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initView()">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-heart"></i>\n <a href="/zendesk/list">{{ \'APPLICATION_ZENDESK\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <a href="#">{{account.name}}</a>\n </li>\n </ul>\n </div>\n\n <!-- BEGIN PROFILE SIDEBAR -->\n <div class="profile-sidebar">\n <!-- PORTLET MAIN -->\n <div class="portlet light profile-sidebar-portlet">\n <!-- SIDEBAR USERPIC -->\n <div class="profile-image">\n <img src="assets/images/media/zendesk.png" class="img-responsive">\n </div>\n <!-- END SIDEBAR USERPIC -->\n <!-- SIDEBAR USER TITLE -->\n <div class="profile-usertitle">\n <div class="profile-usertitle-name">\n {{account.name}}\n </div>\n <div class="profile-usertitle-job">\n {{account.remoteUri}}\n </div>\n </div>\n <!-- END SIDEBAR USER TITLE -->\n <!-- SIDEBAR MENU -->\n <div class="profile-usermenu">\n <ul class="nav">\n <li data-ng-class="{active: $state.is(\'main.zendesk.view.account\')}">\n <a ng-href="/zendesk/view/{{account.id}}/account">\n <i class="icon-user"></i>\n {{ \'APPLICATION_ACCOUNT\' | translate }} </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.zendesk.view.configurations\') || $state.is(\'main.zendesk.view.configuration\')}">\n <a ng-href="/zendesk/view/{{account.id}}/configurations/list">\n <i class="icon-settings"></i>\n {{ \'APPLICATION_CONFIGURATIONS\' | translate }} </a>\n </li>\n </ul>\n </div>\n <!-- END MENU -->\n </div>\n <!-- END PORTLET MAIN -->\n </div>\n <!-- END BEGIN PROFILE SIDEBAR -->\n <!-- BEGIN PROFILE CONTENT -->\n <div ui-view class="profile-content">\n </div>\n <!-- END PROFILE CONTENT -->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'),a.put("app/zendesk/wizard/wizard.html",'<!-- BEGIN PAGE HEADER-->\n<div class="row">\n <div class="col-md-12">\n <div class="page-bar">\n <ul class="page-breadcrumb">\n <li>\n <i class="icon-rocket"></i>\n <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n <i class="fa fa-angle-right"></i>\n </li>\n <li>\n <i class="icon-heart"></i>\n <a href="/zendesk/list">{{ \'APPLICATION_ZENDESK\' | translate }}</a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n<!-- END PAGE HEADER-->\n\n<!-- BEGIN PAGE CONTENT-->\n<div class="row" data-ng-init="initWizard()">\n <div class="col-md-12">\n <!-- BEGIN Portlet PORTLET-->\n <div class="portlet light bordered">\n <div class="portlet-title">\n <div class="caption font-green-sharp">\n <i class="icon-notebook font-green-sharp"></i>\n <span class="caption-subject">{{ \'APPLICATION_ACCOUNT\' | translate }} WIZARD</a> </span>\n </div>\n </div>\n <div class="portlet-body">\n <wizard on-finish="createItem()">\n <wz-step title="{{\'APPLICATION_ACCOUNT_INFO\' | translate}}" canexit="exitValidation(forms.formSetting.$valid)">\n <form name="forms.formSetting" novalidate>\n\n <!-- START NAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.name.$invalid}">\n <label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n <span data-ng-show="forms.formSetting.name.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END NAME -->\n\n <!-- START DESCRIPTION -->\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n <input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n </div>\n <!-- END DESCRIPTION -->\n\n <!-- START TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': (forms.formSetting.type.$touched || forms.formSetting.$submitted) && forms.formSetting.type.$invalid}">\n <label class="control-label">{{\'APPLICATION_TYPE\' | translate}}</label>\n <ui-select data-ng-model="item.type" name="type" theme="bootstrap" data-ng-init="item.type = \'integrationTab\'" required>\n <ui-select-match placeholder="{{\'APPLICATION_TYPE\' | translate}}">{{\'APPLICATION_\'+$select.selected | uppercase | translate}}</ui-select-match>\n <ui-select-choices repeat="type in [\'integrationTab\', \'newTab\'] | filter: $select.search">\n <div data-ng-bind="\'APPLICATION_\'+type | uppercase | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.formSetting.type.$invalid && (forms.formSetting.type.$touched || forms.formSetting.$submitted)" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- START TYPE -->\n\n <!-- START USERNAME -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.username.$invalid}">\n <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="username" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.username" required ng-remote-validate="/api/zendesk/accounts/validate/username"/>\n <span data-ng-show="forms.formSetting.username.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.formSetting.username.$touched || forms.formSetting.$submitted) && forms.formSetting.username.$error.ngRemoteValidate" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_EXIST_USERNAME\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START REMOTE ADDRESS -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.remoteUri.$invalid}">\n <label class="control-label">{{\'APPLICATION_URI\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="url" name="remoteUri" placeholder="{{\'APPLICATION_URI\' | translate}}" class="form-control" data-ng-model="item.remoteUri" required ng-remote-validate="/api/zendesk/accounts/validate/remoteUri"/>\n <span data-ng-show="forms.formSetting.remoteUri.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n <span data-ng-show="(forms.formSetting.remoteUri.$touched || forms.formSetting.$submitted) && forms.formSetting.remoteUri.$error.ngRemoteValidate" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_EXIST_DOMAIN\' | translate}}.\n </span>\n </div>\n <!-- END USERNAME -->\n\n <!-- START AUTH TYPE -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.authType.$invalid}">\n <label class="control-label">{{\'APPLICATION_AUTHENTICATION_TYPE\' | translate}}</label>\n <ui-select data-ng-model="item.authType" name="authType" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_AUTHENTICATION_TYPE\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n <ui-select-choices repeat="type in [\'password\', \'token\'] | filter: $select.search">\n <div data-ng-bind="type | capitalize | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="forms.formSetting.authType.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- START AUTH TYPE -->\n\n <!-- START PASSWORD -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.password.$invalid}" ng-slide-down="item.authType == \'password\'" lazy-render duration="1">\n <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.password" required/>\n <span data-ng-show="forms.formSetting.password.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END PASSWORD -->\n\n <!-- START TOKEN -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.token.$invalid}" ng-slide-down="item.authType == \'token\'" lazy-render duration="1">\n <label class="control-label">{{\'APPLICATION_TOKEN\' | translate}} <span class="required" aria-required="true">*</span></label>\n <input type="text" name="token" placeholder="{{\'APPLICATION_TOKEN\' | translate}}" class="form-control" data-ng-model="item.token" required/>\n <span data-ng-show="forms.formSetting.token.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n </div>\n <!-- END TOKEN -->\n\n <!-- START SERVER URL -->\n <div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.serverUrl.$invalid}">\n <label class="control-label">{{\'APPLICATION_MOTION_ADDRESS\' | translate}}</label>\n <input type="url" name="serverUrl" placeholder="{{\'APPLICATION_MOTION_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.serverUrl"/>\n <span class="help-block">\n {{\'DESCRIPTION_SERVER_URL\' | translate}}.\n </span>\n <span class="help-block help-block-info">\n {{\'MESSAGE_MOTION_ADDRESS_FORMAT\' | translate}}\n </span>\n </div>\n <!-- END SERVER URL -->\n\n <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" data-ng-click="next()"/>\n\n </form>\n </wz-step>\n\n <wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n <p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n <input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n <input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n </wz-step>\n\n </wizard>\n\n </div>\n </div>\n <!-- END Portlet PORTLET-->\n </div>\n</div>\n<!-- END PAGE CONTENT-->\n'), -a.put("components/directives/action/accountEmail/actionBuilder.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_ACCOUNT\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in accounts.rows | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n\n<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data6\'+randomName].$touched || form.$submitted) && form[\'data6\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data6" name="data6{{randomName}}" theme="bootstrap">\n <ui-select-match allow-clear placeholder="{{\'APPLICATION_TEMPLATE\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n <div ng-bind-html="template.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form[\'data6\'+randomName].$touched || form.$submitted) && form[\'data6\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n\n<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n <input type="text" ng-model="element.data2" name="data2{{randomName}}" class="form-control" placeholder="{{\'APPLICATION_TO\' | translate}}" required/>\n <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n\n<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data3\'+randomName].$touched || form.$submitted) && form[\'data3\'+randomName].$invalid}">\n <input type="text" ng-model="element.data3" name="data3{{randomName}}" class="form-control" placeholder="{{\'APPLICATION_CC\' | translate}}"/>\n <span data-ng-show="(form[\'data3\'+randomName].$touched || form.$submitted) && form[\'data3\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n\n<div data-ng-if="randomName && !element.data6" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data4\'+randomName].$touched || form.$submitted) && form[\'data4\'+randomName].$invalid}">\n <input type="text" ng-model="element.data4" name="data4{{randomName}}" class="form-control" placeholder="{{\'APPLICATION_SUBJECT\' | translate}}"/>\n <span data-ng-show="(form[\'data4\'+randomName].$touched || form.$submitted) && form[\'data4\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n\n<div data-ng-if="randomName" class="form-group col-md-12" data-ng-class="{\'has-error\': (form[\'data5\'+randomName].$touched || form.$submitted) && form[\'data5\'+randomName].$invalid}">\n <textarea rows="10" ng-model="element.data5" name="data5{{randomName}}" class="form-control" placeholder="{{\'APPLICATION_TEXT\' | translate}}" data-ng-required="!element.data6"></textarea>\n <span data-ng-show="(form[\'data5\'+randomName].$touched || form.$submitted) && form[\'data5\'+randomName].$error.required" class="help-block help-block-error">\n'+" <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n </span>\n</div>\n"),a.put("components/directives/action/accountSms/actionBuilder.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_ACCOUNT\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in accounts.rows | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n\n<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n <input type="text" ng-model="element.data2" name="data2{{randomName}}" class="form-control" placeholder="{{\'APPLICATION_TO\' | translate}}" required/>\n <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n\n<div data-ng-if="randomName" class="form-group col-md-12" data-ng-class="{\'has-error\': (form[\'data3\'+randomName].$touched || form.$submitted) && form[\'data3\'+randomName].$invalid}">\n <textarea rows="10" ng-model="element.data3" name="data3{{randomName}}" class="form-control" placeholder="{{\'APPLICATION_TEXT\' | translate}}"></textarea>\n <span data-ng-show="(form[\'data3\'+randomName].$touched || form.$submitted) && form[\'data3\'+randomName].$error.required" class="help-block help-block-error">\n'+" <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n </span>\n</div>\n"),a.put("components/directives/action/accountTemplate/actionBuilder.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_ACCOUNT\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in accounts.rows | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n\n<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data2" name="data2{{randomName}}" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_TEMPLATE\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="template.id as template in templates.rows | filter: $select.search">\n <div ng-bind-html="template.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n\n<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data3\'+randomName].$touched || form.$submitted) && form[\'data3\'+randomName].$invalid}">\n <input type="text" ng-model="element.data3" name="data3{{randomName}}" class="form-control" placeholder="{{\'APPLICATION_TO\' | translate}}" required/>\n <span data-ng-show="(form[\'data3\'+randomName].$touched || form.$submitted) && form[\'data3\'+randomName].$error.required" class="help-block help-block-error">\n'+" <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n </span>\n</div>\n"),a.put("components/directives/action/close/actionBuilder.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n <input type="text" ng-model="element.data1" name="data1{{randomName}}" class="form-control" placeholder="{{ \'APPLICATION_DISPOSITION\' | translate }}"/>\n <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n'+" <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n </span>\n</div>\n"),a.put("components/directives/action/cm/actionBuilder.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" on-select="element.data2 = element.data1 ? element.data2 : false">\n <ui-select-match allow-clear>{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="list.id as list in lists | filter: $select.search">\n <div ng-bind-html="list.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n\n<div data-ng-if="randomName && element.data1" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n <input\n bs-switch\n class="form-control"\n ng-init="element.data2 = element.data1 && element.data2 == \'1\' ? true : false"\n ng-model="element.data2"\n type="checkbox"\n name="auth"\n switch-active="{{ switch.isActive }}"\n switch-on-text="{{ switch.onText }}"\n switch-off-text="{{ switch.offText }}"\n switch-on-color="{{ switch.onColor }}"\n switch-off-color="{{ switch.offColor }}"\n switch-animate="{{ switch.animate }}"\n switch-size="{{ switch.size }}"\n switch-label="{{ switch.label }}"\n switch-icon="{{ switch.icon }}"\n switch-radio-off="{{ switch.radioOff }}"\n switch-label-width="{{ switch.labelWidth }}"\n switch-handle-width="{{ switch.handleWidth }}">\n <span class="help-block">\n {{\'APPLICATION_AUTO_CREATE\' | translate}}\n </span>\n <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n'+" <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n </span>\n</div>\n"),a.put("components/directives/action/email/actionBuilder.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data5\'+randomName].$touched || form.$submitted) && form[\'data5\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data5" name="data5{{randomName}}" theme="bootstrap">\n <ui-select-match allow-clear placeholder="{{\'APPLICATION_TEMPLATE\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n <div ng-bind-html="template.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form[\'data5\'+randomName].$touched || form.$submitted) && form[\'data5\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n\n<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n <input type="text" ng-model="element.data1" name="data1{{randomName}}" class="form-control" placeholder="{{\'APPLICATION_TO\' | translate}}" required/>\n <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n\n<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n <input type="text" ng-model="element.data2" name="data2{{randomName}}" class="form-control" placeholder="{{\'APPLICATION_CC\' | translate}}"/>\n <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n\n<div data-ng-if="randomName && !element.data5" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data3\'+randomName].$touched || form.$submitted) && form[\'data3\'+randomName].$invalid}">\n <input type="text" ng-model="element.data3" name="data3{{randomName}}" class="form-control" placeholder="{{\'APPLICATION_SUBJECT\' | translate}}"/>\n <span data-ng-show="(form[\'data3\'+randomName].$touched || form.$submitted) && form[\'data3\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n\n<div data-ng-if="randomName" class="form-group col-md-12" data-ng-class="{\'has-error\': (form[\'data4\'+randomName].$touched || form.$submitted) && form[\'data4\'+randomName].$invalid}">\n <textarea rows="10" ng-model="element.data4" name="data4{{randomName}}" class="form-control" placeholder="{{\'APPLICATION_TEXT\' | translate}}" data-ng-required="!element.data5"></textarea>\n <span data-ng-show="(form[\'data4\'+randomName].$touched || form.$submitted) && form[\'data4\'+randomName].$error.required" class="help-block help-block-error">\n'+" <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n </span>\n</div>\n"),a.put("components/directives/action/forward/actionBuilder.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n <input type="text" ng-model="element.data1" name="data1{{randomName}}" class="form-control" placeholder="{{ \'APPLICATION_TO\' | translate }}" required/>\n <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n'+" <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n </span>\n</div>\n"),a.put("components/directives/action/http/actionBuilder.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="method in methods | filter: $select.search">\n <div ng-bind-html="method | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n\n<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n <input type="text" ng-model="element.data2" name="data2{{randomName}}" class="form-control" placeholder="URL" required/>\n <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n'+" <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n </span>\n</div>\n"),a.put("components/directives/action/integration/actionBuilder.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" data-ng-change="changeIntegration()" required>\n <ui-select-match placeholder="{{ \'APPLICATION_INTEGRATION\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="integration.state as integration in integrations | filter: $select.search">\n <div ng-bind-html="integration.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{\'APPLICATION_INTEGRATION\' | translate}}\n </span>\n <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n<div class="form-group col-md-6" data-ng-if="element.data1 && accounts && randomName" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data2" name="data2{{randomName}}" theme="bootstrap" data-ng-change="changeAccount();" required>\n <ui-select-match placeholder="{{\'APPLICATION_ACCOUNT\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="account.id as account in accounts | filter: $select.search">\n <div ng-bind-html="account.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{\'APPLICATION_ACCOUNT\' | translate}}\n </span>\n <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n<div class="form-group col-md-6" data-ng-if="element.data2 && configurations && randomName" data-ng-class="{\'has-error\': (form[\'data3\'+randomName].$touched || form.$submitted) && form[\'data3\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data3" name="data3{{randomName}}" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_CONFIGURATION\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="config.id as config in configurations | filter: $select.search">\n <div ng-bind-html="config.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{\'APPLICATION_CONFIGURATION\' | translate}}\n </span>\n <span data-ng-show="(form[\'data3\'+randomName].$touched || form.$submitted) && form[\'data3\'+randomName].$error.required" class="help-block help-block-error">\n'+" <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n </span>\n</div>\n"),a.put("components/directives/action/jscripty/actionBuilder.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" required>\n <ui-select-match>{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="project.id as project in projects | filter: $select.search">\n <div ng-bind-html="project.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n'+" <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n </span>\n</div>\n"),a.put("components/directives/action/motionbar/actionBuilder.html",'<!-- data1: 0 POPUP, 1 URL, 2 WINAPP -->\n<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" required data-ng-change="changeMode();">\n <ui-select-match placeholder="{{ \'APPLICATION_TYPE\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="motionAction.value as motionAction in motionActions | filter: $select.search">\n <div ng-bind-html="motionAction.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'APPLICATION_TYPE\' | translate }}\n </span>\n <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n\n<!-- data1:0 data2:Template -->\n<div data-ng-if="randomName && element.data1==0" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data2" name="data2{{randomName}}" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_TEMPLATE\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n <div ng-bind-html="template.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'APPLICATION_TEMPLATE\' | translate }}\n </span>\n <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n\n<!-- data1:1 data2:URL -->\n<div data-ng-if="randomName && element.data1==1" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n <input type="text" ng-model="element.data2" name="data2{{randomName}}" class="form-control" required placeholder="{{ \'APPLICATION_URL\' | translate }}"/>\n <span class="help-block">\n {{ \'APPLICATION_URL\' | translate }}\n </span>\n <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n\n<!-- data1:2 data2:Application data3:Arguments -->\n<div data-ng-if="randomName && element.data1==2" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n <input type="text" ng-model="element.data2" name="data2{{randomName}}" class="form-control" required placeholder="{{ \'APPLICATION_APPLICATION\' | translate }}"/>\n <span class="help-block">\n {{ \'APPLICATION_APPLICATION\' | translate }}\n </span>\n <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n<div data-ng-if="randomName && element.data1==2" class="form-group col-md-6">\n <input type="text" ng-model="element.data3" name="data3{{randomName}}" class="form-control" placeholder="{{ \'APPLICATION_ARGUMENTS\' | translate }}"/>\n <span class="help-block">\n {{ \'APPLICATION_ARGUMENTS\' | translate }}\n </span>\n</div>\n'),a.put("components/directives/action/status/actionBuilder.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" required>\n <ui-select-match>{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="status.value as status in states | filter: $select.search">\n <div ng-bind-html="status.name | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n'+" <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n </span>\n</div>\n"),a.put("components/directives/action/tag/actionBuilder.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n <ui-select multiple data-ng-model="data.tags" name="data1{{randomName}}" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_TAG\' | translate}}">{{$item.name}}</ui-select-match>\n <ui-select-choices repeat="tag.name as tag in tags | filter:$select.search" class="">\n {{tag.name}}\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n'+" <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n </span>\n</div>\n"),a.put("components/directives/action/template/actionBuilder.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" required>\n <ui-select-match placeholder="{{\'APPLICATION_TEMPLATE\' | translate}}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n <div ng-bind-html="template.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n\n<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n <input type="text" ng-model="element.data2" name="data2{{randomName}}" class="form-control" placeholder="{{\'APPLICATION_TO\' | translate}}" required/>\n <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n'+" <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n </span>\n</div>\n"),a.put("components/directives/action/urlforward/actionBuilder.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_TYPE\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="type.value as type in types | filter: $select.search">\n <div ng-bind-html="type.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{\'APPLICATION_TYPE\' | translate}}\n </span>\n <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n<div class="form-group col-md-12" data-ng-if="element.data1 && randomName" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n <input type="url" ng-model="element.data2" placeholder="{{ \'APPLICATION_URL\' | translate }}" name="data2{{randomName}}" class="form-control" required/>\n <span class="help-block">\n {{\'APPLICATION_URL\' | translate}}\n </span>\n <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n'+" <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n </span>\n</div>\n"),a.put("components/directives/action/webPopup/actionBuilder.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data2" name="data2{{randomName}}" theme="bootstrap" on-select="typeChange()" required>\n <ui-select-match placeholder="{{ \'APPLICATION_TYPE\' | translate }}">{{$select.selected}}</ui-select-match>\n <ui-select-choices repeat="type in [\'motion\',\'browser\'] | filter: $select.search">\n <div ng-bind-html="type | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n<div data-ng-if="randomName && element.data2 == \'motion\'" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" required>\n <ui-select-match placeholder="{{ \'APPLICATION_TEMPLATE\' | translate }}">{{$select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n <div ng-bind-html="template.name | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span class="help-block">\n {{ \'APPLICATION_TEMPLATE\' | translate }}\n </span>\n <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n<div class="form-group col-md-12" data-ng-if="randomName && element.data2 == \'browser\'" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n <input type="url" ng-model="element.data1" placeholder="{{ \'APPLICATION_URL\' | translate }}" name="data1{{randomName}}" class="form-control" required/>\n <span class="help-block">\n {{\'APPLICATION_URL\' | translate}}\n </span>\n <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n'+" <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n </span>\n</div>\n"), -a.put("components/directives/condition/conditionBuilder.html",'<div data-ng-if="randomName" class="form-group col-md-4" data-ng-class="{\'has-error\': (form[\'field\'+randomName].$touched || form.$submitted) && form[\'field\'+randomName].$invalid}">\n <ui-select data-ng-model="element.field" name="field{{randomName}}" theme="bootstrap" data-ng-change="checkCondition(element.field)" required>\n <ui-select-match>{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="condition.value as condition in service.services[serviceindex].conditions | filter: $select.search">\n <div ng-bind-html="condition.name | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form[\'field\'+randomName].$touched || form.$submitted) && form[\'field\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n<div data-ng-if="randomName && element.field" class="form-group col-md-4" data-ng-class="{\'has-error\': (form[\'operator\'+randomName].$touched || form.$submitted) && form[\'operator\'+randomName].$invalid}">\n <ui-select data-ng-model="element.operator" name="operator{{randomName}}" theme="bootstrap" required>\n <ui-select-match>{{$select.selected.name | translate}}</ui-select-match>\n <ui-select-choices repeat="operator.value as operator in _.find(service.services[serviceindex].conditions,{value:element.field}).operators | filter: $select.search">\n <div ng-bind-html="operator.name | translate | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form[\'operator\'+randomName].$touched || form.$submitted) && form[\'operator\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n<div class="col-md-4" data-ng-if="elementType === \'input\' && randomName && element.field" data-ng-class="{\'has-error\': (form[\'value\'+randomName].$touched || form.$submitted) && form[\'value\'+randomName].$invalid}">\n <input type="text" ng-model="element.value" class="form-control" name="value{{randomName}}" required/>\n <span data-ng-show="(form[\'value\'+randomName].$touched || form.$submitted) && form[\'value\'+randomName].$error.required" class="help-block help-block-error">\n <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n </span>\n</div>\n<div class="form-group col-md-4" data-ng-if="elementType === \'select\' && randomName && element.field" data-ng-class="{\'has-error\': (form[\'value\'+randomName].$touched || form.$submitted) && form[\'value\'+randomName].$invalid}">\n <ui-select data-ng-model="element.value" name="value{{randomName}}" theme="bootstrap" required>\n <ui-select-match>{{ translateName ? (\'APPLICATION_TRIGGER_\'+$select.selected.name | uppercase | translate) : $select.selected.name}}</ui-select-match>\n <ui-select-choices repeat="value.value as value in values | filter: $select.search">\n <div ng-bind-html="(translateName ? (\'APPLICATION_TRIGGER_\'+value.name | uppercase | translate) : value.name) | highlight: $select.search"></div>\n </ui-select-choices>\n </ui-select>\n <span data-ng-show="(form[\'value\'+randomName].$touched || form.$submitted) && form[\'value\'+randomName].$error.required" class="help-block help-block-error">\n'+" <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n </span>\n</div>\n"),a.put("components/factories/xNotificationLicense/xNotificationLicense.html",'<div class="ui-notification alert alert-block" ng-class="class" style="width: 410px;">\n <h4 class="alert-heading">\n <i class="{{icon}}"></i> {{\'APPLICATION_WARNING\' | translate}}! {{\'MESSAGE_YOUR_LICENSE_IS_GOING_TO_EXPIRE\' | translate}}! <a ng-click="more()" style="color: blue;">More.</a>\n </h4>\n</div>\n'),a.put("components/footer/footer.html",'<!-- BEGIN FOOTER -->\n<div class="page-footer" data-ng-init="initFooter()">\n <div class="page-footer-inner">\n xCALLY Motion v. {{info.version}} | 2016 - {{year + 1}} © Powered by Xenialab <ng-bind-html data-ng-if="license.custom && !settings.defaultFooterWhiteLabel && settings.footerWhiteLabel" ng-bind-html="\'| \'+settings.footerWhiteLabel"></ng-bind-html>\n </div>\n <div class="scroll-to-top">\n <i class="icon-arrow-up"></i>\n </div>\n</div>\n<!-- END FOOTER -->\n'),a.put("components/header/header.html",'<!-- BEGIN HEADER INNER -->\n<div class="page-header-inner" data-ng-init="initHeader()">\n <!-- BEGIN LOGO -->\n <div class="page-logo">\n <a href="/">\n <img ng-src="api/settings/logo/main" alt="logo" class="logo-default custom-logo" onError="this.onerror=null"/>\n </a>\n <div class="menu-toggler sidebar-toggler" data-ng-click="toggleSidebar()"></div>\n </div>\n\n <!-- END LOGO -->\n <!-- BEGIN HEADER SEARCH BOX -->\n <!-- DOC: Apply "search-form-expanded" right after the "search-form" class to have half expanded search box -->\n <form ng-repeat="call in activeCalls | limitTo:2" class="search-form search-form-expanded">\n <div class="input-group">\n <input type="text" class="form-control" value="{{call.calleridnum}}" readonly>\n <span class="input-group-btn">\n <a href="javascript:;" class="btn submit inactive-link"><i class="icon-earphones-alt"></i></a>\n </span>\n </div>\n </form>\n <!-- END HEADER SEARCH BOX -->\n <!-- BEGIN RESPONSIVE MENU TOGGLER -->\n <a href="javascript:;" class="menu-toggler responsive-toggler" data-toggle="collapse" data-target=".navbar-collapse"></a>\n <!-- END RESPONSIVE MENU TOGGLER -->\n <!-- BEGIN TOP NAVIGATION MENU -->\n <div class="top-menu">\n <ul class="nav navbar-nav pull-right">\n <!-- DOC: Apply "dropdown-dark" class after below "dropdown-extended" to change the dropdown styte -->\n\n <!-- BEGIN USER LOGIN DROPDOWN -->\n <!-- DOC: Apply "dropdown-dark" class after below "dropdown-extended" to change the dropdown styte -->\n <li class="dropdown dropdown-user">\n <a href="#" class="dropdown-toggle" dropdown-menu-hover data-toggle="dropdown" data-close-others="true">\n <img class="img-circle" data-ng-src="api/users/avatar/{{getCurrentUser().userpic || \'unknown_avatar\'}}" alt="...">\n <span class="username username-hide-on-mobile">\n {{ getCurrentUser().fullname }}\n </span>\n <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu dropdown-menu-default">\n <li>\n <a ng-href=" {{getCurrentUser().role === \'agent\' ? \'/staff/agents/view/\'+getCurrentUser().id+\'/account\' : \'/staff/users/view/\'+getCurrentUser().id+\'/account\'}}">\n <i class="icon-key"></i>{{\'APPLICATION_CHANGE_PASSWORD\' | translate}}\n </a>\n </li>\n <li data-ng-click="logout()">\n <a href="#">\n <i class="icon-logout"></i> Log Out\n </a>\n </li>\n </ul>\n </li>\n <!-- END USER LOGIN DROPDOWN -->\n <!-- BEGIN QUICK SIDEBAR TOGGLER -->\n <!-- DOC: Apply "dropdown-dark" class after below "dropdown-extended" to change the dropdown styte -->\n <!-- <li class="dropdown dropdown-quick-sidebar-toggler" data-ng-click="toggleQuickSidebar()">\n <a href="#" class="dropdown-toggle">\n <i class="icon-logout"></i>\n </a>\n </li> -->\n <!-- END QUICK SIDEBAR TOGGLER -->\n</ul>\n<ul class="nav navbar-nav pull-right" data-ng-if="getCurrentUser().role == \'admin\'">\n <li class="dropdown dropdown-user">\n <a href="/setting/license/view" class="dropdown-toggle" dropdown-menu-hover data-toggle="dropdown" data-close-others="true">\n <i class="icon-info"></i> <span class="username username-hide-on-mobile right-margin-10">{{\'APPLICATION_LICENSE_STATUS\' | translate}}</span>\n </a>\n </li>\n</ul>\n<ul class="nav navbar-nav pull-right">\n <!-- BEGIN LANGUAGE BAR -->\n <li class="dropdown dropdown-language">\n <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">\n <img ng-src="assets/images/flags/{{ language }}.png">\n <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu dropdown-menu-default scrollable-menu">\n <li>\n <a href="#" ng-click="changeLanguage(\'ar\')">\n <img alt="" src="assets/images/flags/ar.png"> {{\'APPLICATION_ARABIC\' | translate}}\n </a>\n </li>\n <li>\n <a href="#" ng-click="changeLanguage(\'da\')">\n <img alt="" src="assets/images/flags/da.png"> {{\'APPLICATION_DANISH\' | translate}}\n </a>\n </li>\n <li>\n <a href="#" ng-click="changeLanguage(\'de\')">\n <img alt="" src="assets/images/flags/de.png"> {{\'APPLICATION_GERMAN\' | translate}}\n </a>\n </li>\n <li>\n <a href="#" ng-click="changeLanguage(\'en_EN\')">\n <img alt="" src="assets/images/flags/en_EN.png"> {{\'APPLICATION_ENGLISH\' | translate}}\n </a>\n </li>\n <li>\n <a href="#" ng-click="changeLanguage(\'es\')">\n <img alt="" src="assets/images/flags/es.png"> {{\'APPLICATION_SPANISH\' | translate}}\n </a>\n </li>\n <li>\n <a href="#" ng-click="changeLanguage(\'fi\')">\n <img alt="" src="assets/images/flags/fi.png"> {{\'APPLICATION_FINNISH\' | translate}}\n </a>\n </li>\n <li>\n <a href="#" ng-click="changeLanguage(\'fr\')">\n <img alt="" src="assets/images/flags/fr.png"> {{\'APPLICATION_FRENCH\' | translate}}\n </a>\n </li>\n <li>\n <a href="#" ng-click="changeLanguage(\'hi\')">\n <img alt="" src="assets/images/flags/hi.png"> {{\'APPLICATION_HINDI\' | translate}}\n </a>\n </li>\n <li>\n <a href="#" ng-click="changeLanguage(\'it\')">\n <img alt="" src="assets/images/flags/it.png"> {{\'APPLICATION_ITALIAN\' | translate}}\n </a>\n </li>\n <li>\n <a href="#" ng-click="changeLanguage(\'ja\')">\n <img alt="" src="assets/images/flags/ja.png"> {{\'APPLICATION_JAPANASE\' | translate}}\n </a>\n </li>\n <li>\n <a href="#" ng-click="changeLanguage(\'ko\')">\n <img alt="" src="assets/images/flags/ko.png"> {{\'APPLICATION_KOREAN\' | translate}}\n </a>\n </li>\n <li>\n <a href="#" ng-click="changeLanguage(\'nl\')">\n <img alt="" src="assets/images/flags/nl.png"> {{\'APPLICATION_DUTCH\' | translate}}\n </a>\n </li>\n <li>\n <a href="#" ng-click="changeLanguage(\'no\')">\n <img alt="" src="assets/images/flags/no.png"> {{\'APPLICATION_NORWEGIAN\' | translate}}\n </a>\n </li>\n <li>\n <a href="#" ng-click="changeLanguage(\'pt-BR\')">\n <img alt="" src="assets/images/flags/pt-BR.png"> {{\'APPLICATION_PORTUGUESE_BRAZIL\' | translate}}\n </a>\n </li>\n <li>\n <a href="#" ng-click="changeLanguage(\'pt-PT\')">\n <img alt="" src="assets/images/flags/pt-PT.png"> {{\'APPLICATION_PORTUGUESE_PORTUGAL\' | translate}}\n </a>\n </li>\n <li>\n <a href="#" ng-click="changeLanguage(\'ru\')">\n <img alt="" src="assets/images/flags/ru.png"> {{\'APPLICATION_RUSSIAN\' | translate}}\n </a>\n </li>\n <li>\n <a href="#" ng-click="changeLanguage(\'sv\')">\n <img alt="" src="assets/images/flags/sv.png"> {{\'APPLICATION_SWEDISH\' | translate}}\n </a>\n </li>\n <li>\n <a href="#" ng-click="changeLanguage(\'tr\')">\n <img alt="" src="assets/images/flags/tr.png"> {{\'APPLICATION_TURKISH\' | translate}}\n </a>\n </li>\n <li>\n <a href="#" ng-click="changeLanguage(\'fa\')">\n <img alt="" src="assets/images/flags/fa.png"> {{\'APPLICATION_PERSIAN\' | translate}}\n </a>\n </li>\n <li>\n <a href="#" ng-click="changeLanguage(\'zh-CN\')">\n <img alt="" src="assets/images/flags/zh-CN.png"> {{\'APPLICATION_CHINESE_SIMPLIFIED\' | translate}}\n </a>\n </li>\n <li>\n <a href="#" ng-click="changeLanguage(\'zh-TW\')">\n <img alt="" src="assets/images/flags/zh-TW.png"> {{\'APPLICATION_CHINESE_TRADITIONAL\' | translate}}\n </a>\n </li>\n </ul>\n </li>\n <!-- END LANGUAGE BAR -->\n</ul>\n<ul data-ng-if="getCurrentUser().role === \'agent\' && headerAgent.showWebBar" class="nav navbar-nav pull-right header-ul-with-separator padding-side-7" data-ng-class="{\'paused-header\':headerAgent.voicePause || headerAgent.mailPause || headerAgent.chatPause || headerAgent.faxPause || headerAgent.smsPause || headerAgent.openchannelPause}">\n <li class="dropdown dropdown-user" >\n <a href="#" class="dropdown-toggle custom-header-a" dropdown-menu-hover data-toggle="dropdown" data-close-others="true" style="cursor:default;">\n <div>{{(headerAgent.voicePause || headerAgent.mailPause || headerAgent.chatPause || headerAgent.faxPause || headerAgent.smsPause || headerAgent.openchannelPause) ? ((!headerAgent.voicePause || !headerAgent.mailPause || !headerAgent.chatPause || !headerAgent.faxPause || !headerAgent.smsPause || !headerAgent.openchannelPause) ? \'(\'+(\'APPLICATION_PARTIAL\' | translate) + \') \'+headerAgent.pauseType : headerAgent.pauseType) : \'READY\'}}</div>\n <div data-ng-if="headerAgent.voicePause || headerAgent.mailPause || headerAgent.chatPause || headerAgent.faxPause || headerAgent.smsPause || headerAgent.openchannelPause"><css-timer start-time="headerAgent.lastPauseAt"></css-timer></div>\n </a>\n </li>\n <li class="dropdown dropdown-user" data-ng-if="headerAgent.voicePause || headerAgent.mailPause || headerAgent.chatPause || headerAgent.faxPause || headerAgent.smsPause || headerAgent.openchannelPause">\n <a href="#" class="dropdown-toggle padding-side-7 header-bar-button header-bar-button-controls" dropdown-menu-hover data-toggle="dropdown" data-close-others="true" data-ng-click="headerPause(\'unpause\')">\n <i class="fa fa-play font-green"></i></a>\n </li>\n <li class="dropdown dropdown-user" data-ng-if="headerAgent.voicePause || headerAgent.mailPause || headerAgent.chatPause || headerAgent.faxPause || headerAgent.smsPause || headerAgent.openchannelPause">\n <a href="#" class="dropdown-toggle header-bar-button" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">\n <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu dropdown-menu-default scrollable-menu">\n <li data-ng-if="headerAgent.voicePause">\n <a href="#" data-ng-click="headerPause(\'unpause\',null,\'voice\')">\n <i class="fa fa-play font-green"></i> {{\'APPLICATION_VOICE\' | translate}}\n </a>\n </li>\n <li data-ng-if="headerAgent.mailPause">\n <a href="#" data-ng-click="headerPause(\'unpause\',null,\'mail\')">\n <i class="fa fa-play font-green"></i> {{\'APPLICATION_MAIL\' | translate}}\n </a>\n </li>\n <li data-ng-if="headerAgent.chatPause">\n <a href="#" data-ng-click="headerPause(\'unpause\',null,\'chat\')">\n <i class="fa fa-play font-green"></i> {{\'APPLICATION_CHAT\' | translate}}\n </a>\n </li>\n <li data-ng-if="headerAgent.faxPause">\n <a href="#" data-ng-click="headerPause(\'unpause\',null,\'fax\')">\n <i class="fa fa-play font-green"></i> {{\'APPLICATION_FAX\' | translate}}\n </a>\n </li>\n <li data-ng-if="headerAgent.smsPause">\n <a href="#" data-ng-click="headerPause(\'unpause\',null,\'sms\')">\n <i class="fa fa-play font-green"></i> {{\'APPLICATION_SMS\' | translate}}\n </a>\n </li>\n <li data-ng-if="headerAgent.openchannelPause">\n <a href="#" data-ng-click="headerPause(\'unpause\',null,\'openchannel\')">\n <i class="fa fa-play font-green"></i> {{\'APPLICATION_OPEN_CHANNEL\' | translate}}\n </a>\n </li>\n </ul>\n </li>\n <li class="dropdown dropdown-user">\n <a href="#" class="dropdown-toggle padding-side-7 header-bar-button header-bar-button-controls" dropdown-menu-hover data-toggle="dropdown" data-close-others="true" data-ng-click="headerPause(\'pause\',\'DEFAULT PAUSE\')">\n <i class="fa fa-pause font-yellow"></i></a>\n </li>\n <li class="dropdown dropdown-user" data-ng-if="headerPauses.length">\n <a href="#" class="dropdown-toggle header-bar-button" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">\n <i class="fa fa-angle-down"></i>\n </a>\n <ul class="dropdown-menu dropdown-menu-default scrollable-menu">\n <li data-ng-repeat="pause in headerPauses">\n <a href="#" data-ng-click="headerPause(\'pause\',pause.name)">\n {{pause.name}}\n </a>\n </li>\n </ul>\n </li>\n </ul>\n <ul class="nav navbar-nav pull-right" data-ng-if="getCurrentUser().role === \'agent\'" >\n <li data class="dropdown dropdown-extended dropdown-notification" id="header_agent_notification_bar" data-ng-click="agentNotifications.agent.new = 0;">\n <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">\n <i class="icon-earphones-alt"></i>\n <span class="badge badge-default" data-ng-if="agentNotifications.agent.new">\n {{agentNotifications.agent.new}} </span>\n </a>\n <ul class="dropdown-menu tabbed-dropdown">\n <li class="external">\n <h3><span class="bold">{{\'APPLICATION_LAST_VOICE_NOTIFICATIONS\' | translate}}</span></h3>\n </li>\n <li>\n <ul class="nav nav-tabs">\n <li class="active">\n <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_INBOUND\' | translate}}</a>\n </li>\n <li>\n <a href="#" data-target="#tab_1_2" data-toggle="tab">{{ \'APPLICATION_OUTBOUND\' | translate}}</a>\n </li>\n </ul>\n\n <div class="tab-content">\n <!-- GENERAL TAB -->\n <div class="tab-pane active" id="tab_1_1">\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="agent-spinner-grid" data-ng-if="busyLoad.agent.busy" spinner-start-active="true"></span>\n <!-- END UI-GRID SPINNER -->\n <ul class="dropdown-menu-list scrollable-menu" style="height: 250px;" data-handle-color="#637283" infinite-scroll="loadNotifications(\'agent\')" can-load=\'!busyLoad.agent.busy\' treshold="261">\n <li data-ng-repeat="notification in agentNotifications.agent.rows">\n <a href="javascript:;" style="cursor:default;">\n <div class="row">\n <div class="col-md-1">\n <img src="assets/images/media/inboundroute.png" style="width:25px;height:25px;" alt="">\n </div>\n <div class="col-md-10">\n <div>{{\'APPLICATION_VOICE_NEW_CALL\' | translate}}<span data-ng-if="notification.status && notification.status !== \'none\'" class="badge float-right" data-ng-class="{\'badge-success\':notification.status === \'taken\',\'badge-danger\':notification.status === \'lost\',\'badge-warning\':notification.status === \'rejected\' || notification.status === \'busy\',\'badge-info\':notification.status === \'taken_elsewhere\'}">{{\'APPLICATION_VOICE_\'+notification.status.toUpperCase() | translate}}</span></div>\n <div><span class="time float-left" style="max-width:none !important;"><span am-time-ago="notification.updatedAt"></span></span></div>\n </div>\n </div>\n <div>\n <span class="message">{{notification.dialstring ? \'APPLICATION_TO\' : \'APPLICATION_FROM\' | translate}}: <span class="span-link" data-ng-click="chooseContact(notification.calleridnum)">{{notification.calleridnum}}</span></span>\n </div>\n <div data-ng-if="notification.status === \'taken_elsewhere\'">\n <span class="message">{{\'APPLICATION_AGENT_NAME\' | translate}}: <span ><b>{{notification.answeredelsewheremembername}}</b></span></span>\n </div>\n <div data-ng-if="notification.status === \'taken\' && notification.lastevent === \'complete\'">\n <span class="message">{{\'APPLICATION_COMPLETED_BY\' | translate}}: <span ><b>{{\'APPLICATION_VOICE_\'+notification.reason.toUpperCase() | translate}}</b></span></span>\n </div>\n </a>\n </li>\n </ul>\n </div>\n <div class="tab-pane" id="tab_1_2">\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="dial-spinner-grid" data-ng-if="busyLoad.dial.busy" spinner-start-active="true"></span>\n <!-- END UI-GRID SPINNER -->\n <ul class="dropdown-menu-list scrollable-menu" style="height: 250px;" data-handle-color="#637283" infinite-scroll="loadNotifications(\'dial\')" can-load=\'!busyLoad.dial.busy\' treshold="261">\n <li data-ng-repeat="notification in agentNotifications.dial.rows">\n <a href="javascript:;" style="cursor:default;">\n <div class="row">\n <div class="col-md-1">\n <img src="assets/images/media/outboundroute.png" style="width:25px;height:25px;" alt="">\n </div>\n <div class="col-md-10">\n <div>{{\'APPLICATION_VOICE_NEW_CALL\' | translate}}<span data-ng-if="notification.status && notification.status !== \'none\'" class="badge float-right" data-ng-class="{\'badge-success\':notification.status === \'taken\',\'badge-danger\':notification.status === \'lost\',\'badge-warning\':notification.status === \'rejected\',\'badge-info\':notification.status === \'taken_elsewhere\'}">{{\'APPLICATION_VOICE_\'+notification.status.toUpperCase() | translate}}</span></div>\n <div><span class="time float-left" style="max-width:none !important;"><span am-time-ago="notification.updatedAt"></span></span></div>\n </div>\n </div>\n <div>\n <span class="message">{{\'APPLICATION_TO\' | translate}}: <span class="span-link" data-ng-click="chooseContact(notification.destcalleridnum)">{{notification.destcalleridnum}}</span></span>\n </div>\n </a>\n </li>\n </ul>\n </div>\n </div>\n </li>\n </ul>\n </li>\n <li data ng-if="license.mail" class="dropdown dropdown-extended dropdown-notification" id="header_mail_notification_bar" data-ng-click="agentNotifications.mail.new = 0;">\n <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">\n <i class="icon-envelope-open"></i>\n <span class="badge badge-default" data-ng-if="agentNotifications.mail.new">\n {{agentNotifications.mail.new}} </span>\n </a>\n <ul class="dropdown-menu">\n <li class="external">\n <h3><span class="bold">{{\'APPLICATION_LAST_MAIL_NOTIFICATIONS\' | translate}}</span></h3>\n </li>\n <li>\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="mail-spinner-grid" data-ng-if="busyLoad.mail.busy" spinner-start-active="true"></span>\n <!-- END UI-GRID SPINNER -->\n <ul class="dropdown-menu-list scrollable-menu" style="height: 250px;" data-handle-color="#637283" infinite-scroll="loadNotifications(\'mail\')" can-load=\'!busyLoad.mail.busy\' treshold="261">\n <li data-ng-repeat="notification in agentNotifications.mail.rows">\n <a href="javascript:;" style="cursor:default;">\n <div class="row">\n <div class="col-md-1">\n <img src="assets/images/media/enquiry.png" style="width:25px;height:25px;" alt="">\n </div>\n <div class="col-md-10">\n <div>{{\'APPLICATION_NEW_MESSAGE\' | translate}}<span data-ng-if="notification.status && notification.status !== \'none\'" class="badge float-right" data-ng-class="{\'badge-success pointer-cursor\':notification.status === \'taken\',\'badge-danger\':notification.status === \'lost\',\'badge-warning\':notification.status === \'rejected\'}" data-ng-click="notification.status === \'taken\' && openRoom(notification.roomid, \'mailRoom\')">{{\'APPLICATION_MESSAGE_\'+notification.status.toUpperCase() | translate}} <i data-ng-if="notification.status === \'taken\'" class="fa fa-envelope"></i></span></div>\n <div><span class="time float-left" style="max-width:none !important;"><span am-time-ago="notification.updatedAt"></span></span></div>\n </div>\n </div>\n <div>\n <span class="message">{{\'APPLICATION_FROM\' | translate}}: <span class="span-link" data-ng-click="openContact(\'mail\',notification.accountid,notification.from)">{{notification.from}}</span></span>\n </div>\n </a>\n </li>\n </ul>\n </li>\n </ul>\n </li>\n <li data ng-if="license.chat" class="dropdown dropdown-extended dropdown-notification" id="header_chat_notification_bar" data-ng-click="agentNotifications.chat.new = 0;">\n <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">\n <i class="icon-bubble"></i>\n <span class="badge badge-default" data-ng-if="agentNotifications.chat.new">\n {{agentNotifications.chat.new}} </span>\n </a>\n <ul class="dropdown-menu">\n <li class="external">\n <h3><span class="bold">{{\'APPLICATION_LAST_CHAT_NOTIFICATIONS\' | translate}}</span></h3>\n </li>\n <li>\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="chat-spinner-grid" data-ng-if="busyLoad.chat.busy" spinner-start-active="true"></span>\n <!-- END UI-GRID SPINNER -->\n <ul class="dropdown-menu-list scrollable-menu" style="height: 250px;" data-handle-color="#637283" infinite-scroll="loadNotifications(\'chat\')" can-load=\'!busyLoad.chat.busy\' treshold="261">\n <li data-ng-repeat="notification in agentNotifications.chat.rows">\n <a href="javascript:;" style="cursor:default;">\n <div class="row">\n <div class="col-md-1">\n <img src="assets/images/media/website.png" style="width:25px;height:25px;" alt="">\n </div>\n <div class="col-md-10">\n <div>{{\'APPLICATION_NEW_CHAT_REQUEST\' | translate}}<span data-ng-if="notification.status && notification.status !== \'none\'" class="badge float-right" data-ng-class="{\'badge-success pointer-cursor\':notification.status === \'taken\',\'badge-danger\':notification.status === \'lost\',\'badge-warning\':notification.status === \'rejected\'}" data-ng-click="notification.status === \'taken\' && openRoom(notification.roomid, \'chatRoom\')">{{\'APPLICATION_CHAT_\'+notification.status.toUpperCase() | translate}} <i data-ng-if="notification.status === \'taken\'" class="fa fa-envelope"></i></span></div>\n <div><span class="time float-left" style="max-width:none !important;"><span am-time-ago="notification.updatedAt"></span></span></div>\n </div>\n </div>\n <div>\n <span class="message">{{\'APPLICATION_FROM\' | translate}}: <span class="span-link" data-ng-click="openContact(\'chat\',notification.websiteid,notification.visitoremail)">{{notification.visitoremail}}</span></span>\n </div>\n </a>\n </li>\n </ul>\n </li>\n </ul>\n </li>\n <li data ng-if="license.fax" class="dropdown dropdown-extended dropdown-notification" id="header_fax_notification_bar" data-ng-click="agentNotifications.fax.new = 0;">\n <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">\n <i class="fa fa-fax"></i>\n <span class="badge badge-default" data-ng-if="agentNotifications.fax.new">\n {{agentNotifications.fax.new}} </span>\n </a>\n <ul class="dropdown-menu">\n <li class="external">\n <h3><span class="bold">{{\'APPLICATION_LAST_FAX_NOTIFICATIONS\' | translate}}</span></h3>\n </li>\n <li>\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="fax-spinner-grid" data-ng-if="busyLoad.fax.busy" spinner-start-active="true"></span>\n <!-- END UI-GRID SPINNER -->\n <ul class="dropdown-menu-list scrollable-menu" style="height: 250px;" data-handle-color="#637283" infinite-scroll="loadNotifications(\'fax\')" can-load=\'!busyLoad.fax.busy\' treshold="261">\n <li data-ng-repeat="notification in agentNotifications.fax.rows">\n <a href="javascript:;" style="cursor:default;">\n <div class="row">\n <div class="col-md-1">\n <img src="assets/images/media/fax.png" style="width:25px;height:25px;" alt="">\n </div>\n <div class="col-md-10">\n <div>{{\'APPLICATION_NEW_FAX_REQUEST\' | translate}}<span data-ng-if="notification.status && notification.status !== \'none\'" class="badge float-right" data-ng-class="{\'badge-success pointer-cursor\':notification.status === \'taken\',\'badge-danger\':notification.status === \'lost\',\'badge-warning\':notification.status === \'rejected\'}" data-ng-click="notification.status === \'taken\' && openRoom(notification.roomid, \'faxRoom\')">{{\'APPLICATION_FAX_\'+notification.status.toUpperCase() | translate}} <i data-ng-if="notification.status === \'taken\'" class="fa fa-envelope"></i></span></div>\n <div><span class="time float-left" style="max-width:none !important;"><span am-time-ago="notification.updatedAt"></span></span></div>\n </div>\n </div>\n <div>\n <span class="message">{{\'APPLICATION_FROM\' | translate}}: <span class="span-link" data-ng-click="openContact(\'fax\',notification.accountid,notification.from)">{{notification.from}}</span></span>\n </div>\n </a>\n </li>\n </ul>\n </li>\n </ul>\n </li>\n <li data ng-if="license.messaging" class="dropdown dropdown-extended dropdown-notification" id="header_sms_notification_bar" data-ng-click="agentNotifications.sms.new = 0;">\n <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">\n <i class="glyphicon glyphicon-comment"></i>\n <span class="badge badge-default" data-ng-if="agentNotifications.sms.new">\n {{agentNotifications.sms.new}} </span>\n </a>\n <ul class="dropdown-menu">\n <li class="external">\n <h3><span class="bold">{{\'APPLICATION_LAST_SMS_NOTIFICATIONS\' | translate}}</span></h3>\n </li>\n <li>\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="sms-spinner-grid" data-ng-if="busyLoad.sms.busy" spinner-start-active="true"></span>\n <!-- END UI-GRID SPINNER -->\n <ul class="dropdown-menu-list scrollable-menu" style="height: 250px;" data-handle-color="#637283" infinite-scroll="loadNotifications(\'sms\')" can-load=\'!busyLoad.sms.busy\' treshold="261">\n <li data-ng-repeat="notification in agentNotifications.sms.rows">\n <a href="javascript:;" style="cursor:default;">\n <div class="row">\n <div class="col-md-1">\n <img src="assets/images/media/sms.png" style="width:25px;height:25px;" alt="">\n </div>\n <div class="col-md-10">\n <div>{{\'APPLICATION_NEW_SMS_REQUEST\' | translate}}<span data-ng-if="notification.status && notification.status !== \'none\'" class="badge float-right" data-ng-class="{\'badge-success pointer-cursor\':notification.status === \'taken\',\'badge-danger\':notification.status === \'lost\',\'badge-warning\':notification.status === \'rejected\'}" data-ng-click="notification.status === \'taken\' && openRoom(notification.roomid, \'smsRoom\')">{{\'APPLICATION_SMS_\'+notification.status.toUpperCase() | translate}} <i data-ng-if="notification.status === \'taken\'" class="fa fa-envelope"></i></span></div>\n <div><span class="time float-left" style="max-width:none !important;"><span am-time-ago="notification.updatedAt"></span></span></div>\n </div>\n </div>\n <div>\n <span class="message">{{\'APPLICATION_FROM\' | translate}}: <span class="span-link" data-ng-click="openContact(\'sms\',notification.accountid,notification.from)">{{notification.from}}</span></span>\n </div>\n </a>\n </li>\n </ul>\n </li>\n </ul>\n </li>\n <li data ng-if="license.openchannel" class="dropdown dropdown-extended dropdown-notification" id="header_openchannel_notification_bar" data-ng-click="agentNotifications.openchannel.new = 0;">\n <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">\n <i class="icon-globe"></i>\n <span class="badge badge-default" data-ng-if="agentNotifications.openchannel.new">\n {{agentNotifications.openchannel.new}} </span>\n </a>\n <ul class="dropdown-menu">\n <li class="external">\n <h3><span class="bold">{{\'APPLICATION_LAST_OPENCHANNEL_NOTIFICATIONS\' | translate}}</span></h3>\n </li>\n <li>\n <!-- BEGIN UI-GRID SPINNER -->\n <span us-spinner spinner-key="openchannel-spinner-grid" data-ng-if="busyLoad.openchannel.busy" spinner-start-active="true"></span>\n <!-- END UI-GRID SPINNER -->\n <ul class="dropdown-menu-list scrollable-menu" style="height: 250px;" data-handle-color="#637283" infinite-scroll="loadNotifications(\'openchannel\')" can-load=\'!busyLoad.openchannel.busy\' treshold="261">\n <li data-ng-repeat="notification in agentNotifications.openchannel.rows">\n <a href="javascript:;" style="cursor:default;">\n <div class="row">\n <div class="col-md-1">\n <img src="assets/images/media/openchannel.png" style="width:25px;height:25px;" alt="">\n </div>\n <div class="col-md-10">\n'+" <div>{{'APPLICATION_NEW_OPENCHANNEL_REQUEST' | translate}}<span data-ng-if=\"notification.status && notification.status !== 'none'\" class=\"badge float-right\" data-ng-class=\"{'badge-success pointer-cursor':notification.status === 'taken','badge-danger':notification.status === 'lost','badge-warning':notification.status === 'rejected'}\" data-ng-click=\"notification.status === 'taken' && openRoom(notification.roomid, 'openchannelRoom')\">{{'APPLICATION_OPENCHANNEL_'+notification.status.toUpperCase() | translate}} <i data-ng-if=\"notification.status === 'taken'\" class=\"fa fa-envelope\"></i></span></div>\n <div><span class=\"time float-left\" style=\"max-width:none !important;\"><span am-time-ago=\"notification.updatedAt\"></span></span></div>\n </div>\n </div>\n <!-- <div>\n <span class=\"message\">{{'APPLICATION_FROM' | translate}}: <span class=\"span-link\" data-ng-click=\"openContact('openchannel',notification.accountid,notification.from)\">{{notification.from}}</span></span>\n </div> -->\n </a>\n </li>\n </ul>\n </li>\n </ul>\n </li>\n </ul>\n </div>\n <!-- END TOP NAVIGATION MENU -->\n </div>\n <!-- END HEADER INNER -->\n"), -a.put("components/modal/delete.html",'<div class="modal-header">\n <button ng-if="modal.dismissable" type="button" ng-click="$dismiss()" class="close">×</button>\n <h4 ng-if="modal.title" ng-bind="modal.title" class="modal-title"></h4>\n</div>\n<div class="modal-body">\n <p ng-if="modal.text" ng-bind="modal.text"></p>\n <div ng-if="modal.html" ng-bind-html="modal.html"></div>\n</div>\n<div class="modal-footer">\n <button ng-repeat="button in modal.buttons" ng-class="button.classes" ng-click="button.click($event)" ng-bind="button.text" class="btn"></button>\n</div>\n'),a.put("components/sidebar/sidebar.html",'<div id="page-sidebar" class="page-sidebar navbar-collapse collapse" data-ng-init="initSidebar()">\n <!-- BEGIN SIDEBAR MENU -->\n <!-- DOC: Apply "page-sidebar-menu-light" class right after "page-sidebar-menu" to enable light sidebar menu style(without borders) -->\n <!-- DOC: Apply "page-sidebar-menu-hover-submenu" class right after "page-sidebar-menu" to enable hoverable(hover vs accordion) sub menu mode -->\n <!-- DOC: Apply "page-sidebar-menu-closed" class right after "page-sidebar-menu" to collapse("page-sidebar-closed" class must be applied to the body element) the sidebar sub menu mode -->\n <!-- DOC: Set data-auto-scroll="false" to disable the sidebar from auto scrolling/focusing -->\n <!-- DOC: Set data-keep-expand="true" to keep the submenues expanded -->\n <!-- DOC: Set data-auto-speed="200" to adjust the sub menu slide up/down speed -->\n <ul data-ng-click="mainTab.active=true" class="page-sidebar-menu" data-keep-expanded="false" data-auto-scroll="true" data-slide-speed="200" data-ng-class="{\'page-sidebar-menu-closed\': settings.layout.pageSidebarClosed}" data-ng-init="getSidebarIntegrations()">\n <!-- DOC: To remove the search box from the sidebar you just need to completely remove the below "sidebar-search-wrapper" LI element -->\n <li class="sidebar-search-wrapper">\n <!-- BEGIN RESPONSIVE QUICK SEARCH FORM -->\n <!-- DOC: Apply "sidebar-search-bordered" class the below search form to have bordered search box -->\n <!-- DOC: Apply "sidebar-search-bordered sidebar-search-solid" class the below search form to have bordered & solid search box -->\n <form class="sidebar-search sidebar-search-bordered" action="extra_search.html" method="POST">\n <a href="javascript:;" class="remove">\n <i class="icon-close"></i>\n </a>\n </form>\n <!-- END RESPONSIVE QUICK SEARCH FORM -->\n </li>\n\n <!-- START DASHBOARD CASE -->\n <li class="start" data-ng-if="::(Auth.isAdmin() || Auth.isAgent() || userModules[1])" data-ng-class="{active: $state.includes(\'main.dashboard\')}">\n <a href="/dashboard/voice">\n <i class="icon-rocket"></i>\n <span class="title">{{\'APPLICATION_DASHBOARD\' | translate}}</span>\n <span data-ng-if="$state.includes(\'main.dashboard\')" class="selected"></span>\n </a>\n </li>\n <!-- END DASHBOARD CASE -->\n\n <!-- START YOURDASHBOARD LIST CASE -->\n <li data-ng-if="::(!Auth.isUser() || userModules[2])" data-ng-class="{active: $state.is(\'main.tools.yourdashboards.show\')}">\n <a href="javascript:;">\n <i class="fa fa-tachometer"></i>\n <span class="title" >{{\'APPLICATION_YOUR_DASHBOARDS\' | translate}}</span>\n <span class="arrow" data-ng-class="{ open: $state.includes(\'main.tools.yourdashboards.show\') }"></span>\n </a>\n <ul class="sub-menu" data-ng-init="getSidebarDashboards()">\n <li data-ng-class="{active: $stateParams.id == dashboard.id && $state.includes(\'main.tools.yourdashboards.show\')}" data-ng-repeat="dashboard in dashboards" data-ng-if="dashboard[Auth.getRole()]">\n <a href="/tools/yourdashboards/show/{{dashboard.id}}" >\n <i class="icon-screen-desktop"></i>\n <span class="title" >{{dashboard.name}} </span>\n </a>\n </li>\n </ul>\n </li>\n <!-- END YOURDASHBOARD LIST CASE -->\n\n <!-- START STAFF LIST CASE -->\n <li data-ng-class="{active: $state.includes(\'main.staff\')}">\n <a href="javascript:;" data-ng-if="::(Auth.isAdmin() || userModules[3])">\n <i class="icon-puzzle"></i>\n <span class="title" >{{\'APPLICATION_STAFF\' | translate}}</span>\n <span class="arrow" data-ng-class="{open: $state.includes(\'main.staff\')}"></span>\n </a>\n <ul class="sub-menu">\n <!-- START USERS CASE -->\n <li data-ng-if="::(Auth.isAdmin())" data-ng-class="{active: $state.includes(\'main.staff.users\')}">\n <a href="/staff/users/list">\n <i class="icon-eye"></i>\n <span class="title" >{{\'APPLICATION_USERS\' | translate}}</span>\n <span data-ng-if="$state.includes(\'main.staff.users\')" class="selected"></span>\n </a>\n </li>\n <!-- END USERS CASE -->\n\n <!-- START AGENTS CASE -->\n <li data-ng-if="::(Auth.isAdmin() || userModules[4])" data-ng-class="{active: $state.includes(\'main.staff.agents\')}">\n <a href="/staff/agents/list">\n <i class="icon-people"></i>\n <span class="title" >{{\'APPLICATION_AGENTS\' | translate}}</span>\n <span data-ng-if="$state.includes(\'main.staff.agents\')" class="selected"></span>\n </a>\n </li>\n <!-- END AGENTS CASE -->\n\n <!-- START TELEPHONES CASE -->\n <li data-ng-if="::(Auth.isAdmin())" data-ng-class="{active: $state.includes(\'main.staff.telephones\')}">\n <a href="/staff/telephones/list">\n <i class="icon-phone"></i>\n <span class="title" >{{\'APPLICATION_TELEPHONES\' | translate}}</span>\n <span data-ng-if="$state.includes(\'main.staff.telephones\')" class="selected"></span>\n </a>\n </li>\n <!-- END TELEPHONES CASE -->\n\n <!-- START TEAMS CASE -->\n <li data-ng-if="::(Auth.isAdmin())" data-ng-class="{active: $state.includes(\'main.staff.teams\')}">\n <a href="/staff/teams/list">\n <i class="icon-shield"></i>\n <span class="title" >{{\'APPLICATION_TEAMS\' | translate}}</span>\n <span data-ng-if="$state.includes(\'main.staff.teams\')" class="selected"></span>\n </a>\n </li>\n <!-- END TEAMS CASE -->\n </ul>\n </li>\n <!-- END STAFF LIST CASE -->\n\n <!-- START CONTACT MANAGER LIST CASE -->\n <li data-ng-if="::(Auth.isAdmin() || Auth.isAgent() || userModules[5])" data-ng-class="{active: $state.includes(\'main.contactmanager\')}">\n <a href="javascript:;" data-ng-class="{\'disabled-link\':!license.cm}">\n <i class="icon-notebook"></i>\n <span class="title disable-target" >{{\'APPLICATION_CONTACT_MANAGER\' | translate}}</span>\n <span class="arrow" data-ng-class="{ open: $state.includes(\'main.contactmanager.contacts\')\n || $state.includes(\'main.contactmanager.companies\')\n || $state.includes(\'main.contactmanager.lists\') || $state.includes(\'main.contactmanager.customfields\') }"></span>\n </a>\n <ul class="sub-menu" data-ng-if="license.cm">\n <!-- START CONTACTS CASE -->\n <li data-ng-class="{active: $state.includes(\'main.contactmanager.contacts\')}">\n <a href="/contactmanager/contacts/list">\n <i class=" fa fa-users"></i>\n <span class="title" >{{\'APPLICATION_CONTACTS\' | translate}}</span>\n <span data-ng-if="$state.includes(\'main.contactmanager.contacts\')" class="selected"></span>\n </a>\n </li>\n <!-- END CONTACTS CASE -->\n <!-- START COMPANIES CASE -->\n <li data-ng-class="{active: $state.includes(\'main.contactmanager.companies\')}" data-ng-if="::(Auth.isAdmin() || Auth.isUser())">\n <a href="/contactmanager/companies/list">\n <i class="icon-briefcase"></i>\n <span class="title" >{{\'APPLICATION_COMPANIES\' | translate}}</span>\n <span data-ng-if="$state.includes(\'main.contactmanager.companies\')" class="selected"></span>\n </a>\n </li>\n <!-- END COMPANIES CASE -->\n <!-- START LISTS CASE -->\n <li data-ng-class="{active: $state.includes(\'main.contactmanager.lists\')}" data-ng-if="::(Auth.isAdmin() || Auth.isUser())">\n <a href="/contactmanager/lists/list">\n <i class="fa fa-list-ul"></i>\n <span class="title" >{{\'APPLICATION_LISTS\' | translate}}</span>\n <span data-ng-if="$state.includes(\'main.contactmanager.lists\')" class="selected"></span>\n </a>\n </li>\n <!-- END LISTS CASE -->\n <!-- START CUSTOM_FIELDS CASE -->\n <li data-ng-class="{active: $state.includes(\'main.contactmanager.customfields\')}" data-ng-if="::(Auth.isAdmin() || Auth.isUser())">\n <a href="/contactmanager/customfields/list">\n <i class="icon-pencil"></i>\n <span class="title" >{{\'APPLICATION_CUSTOM_FIELDS\' | translate}}</span>\n <span data-ng-if="$state.includes(\'main.contactmanager.customfields\')" class="selected"></span>\n </a>\n </li>\n <!-- END CUSTOM_FIELDS CASE -->\n </ul>\n </li>\n <!-- END CONTACT MANAGER LIST CASE -->\n\n <!-- START CHANNEL LIST CASE -->\n <li data-ng-if="::(Auth.isAdmin() || Auth.isAgent() || userModules[6])" data-ng-class="{active: $state.includes(\'main.channels\')}">\n <a href="javascript:;">\n <i class="fa fa-spinner"></i>\n <span class="title" >{{\'APPLICATION_CHANNELS\' | translate}}</span>\n <span class="arrow" data-ng-class="{open: $state.includes(\'main.channels\')}"></span>\n </a>\n <ul class="sub-menu">\n <!-- START VOICE CASE -->\n <li data-ng-if="::(Auth.isAdmin() || Auth.isAgent() || userModules[7])" data-ng-class="{ active: $state.includes(\'main.channels.voice\') }">\n <a href="javascript:;">\n <i class="icon-earphones-alt"></i>\n <span class="title">{{ \'APPLICATION_VOICE\' | translate}}</span>\n <span class="arrow" data-ng-class="{ open: $state.includes(\'main.channels.voice\') }"></span>\n </a>\n\n <ul class="sub-menu">\n <li data-ng-if="::(Auth.isAdmin())" data-ng-class="{active: $state.includes(\'main.channels.voice.queues\')}">\n <a href="/channels/voice/queues/list">\n <i class="icon-docs"></i>\n <span class="title">{{\'APPLICATION_QUEUES\' | translate}}</span>\n </a>\n </li>\n <li data-ng-if="::(Auth.isAdmin() || userModules[21])">\n <a href="javascript:;">\n <i class="icon-directions"></i>\n <span class="title"> {{ \'APPLICATION_ROUTES\' | translate}} </span>\n <span class="arrow" data-ng-class="{ open: $state.includes(\'main.channels.voice.routes\') }"></span>\n <ul class="sub-menu">\n <li data-ng-class="{active: $state.includes(\'main.channels.voice.routes.inbound\')}">\n <a href="/channels/voice/routes/inbound/list">\n <i class="icon-call-in"></i>\n <span class="title"> {{\'APPLICATION_INBOUND\' | translate}} </span>\n </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.channels.voice.routes.outbound\')}">\n <a href="/channels/voice/routes/outbound/list">\n <i class="icon-call-out"></i>\n <span class="title"> {{\'APPLICATION_OUTBOUND\' | translate}} </span>\n </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.channels.voice.routes.internal\')}">\n <a href="/channels/voice/routes/internal/list">\n <i class="icon-reload"></i>\n <span class="title"> {{\'APPLICATION_INTERNALS\' | translate}} </span>\n </a>\n </li>\n </ul>\n </a>\n </li>\n <li data-ng-if="::(Auth.isAdmin() || userModules[22])" data-ng-class="{active: $state.includes(\'main.channels.voice.contexts\')}">\n <a href="/channels/voice/contexts/list">\n <i class="icon-docs"></i>\n <span class="title"> {{\'APPLICATION_CONTEXTS\' | translate}} </span>\n </a>\n </li>\n <li data-ng-if="::(Auth.isAdmin() || userModules[23])" data-ng-class="{active: $state.includes(\'main.channels.voice.voicemails\')}">\n <a href="/channels/voice/voicemails/list">\n <i class="icon-envelope-letter"></i>\n <span class="title"> {{\'APPLICATION_VOICEMAILS\' | translate}} </span>\n </a>\n </li>\n <li data-ng-if="::(Auth.isAdmin() || userModules[24])" data-ng-class="{active: $state.includes(\'main.channels.voice.mohs\')}">\n <a href="/channels/voice/mohs/list">\n <i class="icon-music-tone"></i>\n <span class="title"> {{\'APPLICATION_MOH\' | translate}} </span>\n </a>\n </li>\n <!-- START RECORDING CASE -->\n <li data-ng-if="::(Auth.isAdmin() || Auth.isAgent() || userModules[25])" data-ng-class="{active: $state.includes(\'main.channels.voice.recordings\')}">\n <a href="/channels/voice/recordings/list">\n <i class="icon-control-play"></i>\n <span class="title">{{\'APPLICATION_RECORDINGS\' | translate}}</span>\n </a>\n </li>\n <!-- END RECORDING CASE -->\n <!-- START REALTIME CASE -->\n <li data-ng-if="::(Auth.isAdmin() || userModules[26])" data-ng-class="{active: $state.includes(\'main.channels.voice.realtime\')}">\n <a href="/channels/voice/realtime/view/agents">\n <i class="icon-energy"></i>\n <span class="title">{{\'APPLICATION_REALTIME\' | translate}}</span>\n </a>\n </li>\n <!-- END REALTIME CASE -->\n <!-- START CHANSPY CASE -->\n <li data-ng-if="::(Auth.isAdmin() || userModules[27])" data-ng-class="{active: $state.includes(\'main.channels.voice.chanspy\')}">\n <a href="/channels/voice/chanspy/list">\n <i class="fa fa-user-secret"></i>\n <span class="title" >{{\'APPLICATION_CHANSPY\' | translate}}</span>\n <!-- <span data-ng-if="$state.includes(\'main.chanspy\')" class="selected"></span> -->\n </a>\n </li>\n <!-- END CHANSPY CASE -->\n <!-- START CHANSPY CASE -->\n <li data-ng-if="::(Auth.isAdmin() || userModules[28])" data-ng-class="{active: $state.includes(\'main.channels.voice.dispositions\')}">\n <a href="/channels/voice/dispositions/list">\n <i class="icon-target"></i>\n <span class="title" >{{\'APPLICATION_DISPOSITIONS\' | translate}}</span>\n </a>\n </li>\n <!-- END CHANSPY CASE -->\n </ul>\n </li>\n <!-- END VOICE CASE -->\n\n <!-- START CHAT CASE -->\n <li data-ng-if="::(Auth.isAdmin() || Auth.isAgent() || userModules[8])" data-ng-class="{active: $state.includes(\'main.channels.chat\')}">\n <a href="javascript:;" data-ng-class="{\'disabled-link\':!license.chat}">\n <i class="icon-bubble"></i>\n <span class="title disable-target">{{\'APPLICATION_CHAT\' | translate}}</span>\n <span class="arrow" data-ng-class="{open: $state.includes(\'main.channels.chat\')}"></span>\n </a>\n <ul class="sub-menu" data-ng-if="license.chat">\n <li data-ng-if="::(Auth.isAdmin() || userModules[29])" data-ng-class="{active: $state.includes(\'main.channels.chat.websites\')}">\n <a href="/channels/chat/websites/list">\n <i class="icon-globe"></i>\n <span class="title"> {{\'APPLICATION_WEB_SITES\' | translate}} </span>\n </a>\n </li>\n <li data-ng-if="::(Auth.isAdmin() || userModules[30])" data-ng-class="{active: $state.includes(\'main.channels.chat.queues\')}">\n <a href="/channels/chat/queues/list">\n <i class="icon-docs"></i>\n <span class="title"> {{\'APPLICATION_QUEUES\' | translate}} </span>\n </a>\n </li>\n <li data-ng-if="::(Auth.isAdmin() || Auth.isAgent() || userModules[31])" data-ng-class="{active: $state.includes(\'main.channels.chat.room\')}">\n <a href="/channels/chat/room/internal/list">\n <i class="fa fa-users"></i>\n <span class="title"> {{\'APPLICATION_INTERACTIONS\' | translate}} </span>\n </a>\n </li>\n <!-- <li data-ng-if="::(Auth.isAdmin() || userModules[8])" data-ng-class="{active: $state.includes(\'main.channels.chat.online\')}">\n <a href="/channels/chat/online/list">\n <i class="icon-login"></i>\n <span class="title"> {{\'APPLICATION_ONLINE_MESSAGES\' | translate}} </span>\n </a>\n </li> -->\n <li data-ng-if="::(Auth.isAdmin() || userModules[32])" data-ng-class="{active: $state.includes(\'main.channels.chat.offline\')}">\n <a href="/channels/chat/offline/list">\n <i class="icon-logout"></i>\n <span class="title"> {{\'APPLICATION_OFFLINE_MESSAGES\' | translate}} </span>\n </a>\n </li>\n <li data-ng-if="::(Auth.isAdmin() || userModules[33])" data-ng-class="{active: $state.includes(\'main.channels.chat.realtime\')}">\n <a href="/channels/chat/realtime/view/agents">\n <i class="icon-energy"></i>\n <span class="title">{{\'APPLICATION_REALTIME\' | translate}}</span>\n </a>\n </li>\n </ul>\n </li>\n <!-- END CHAT CASE -->\n\n <!-- START MAIL CASE -->\n <li data-ng-if="::(Auth.isAdmin() || Auth.isAgent() || userModules[9])" data-ng-class="{active: $state.includes(\'main.channels.mail\')}" >\n <a href="javascript:;" data-ng-class="{\'disabled-link\':!license.mail}">\n <i class="icon-envelope"></i>\n <span class="title disable-target">{{\'APPLICATION_MAIL\' | translate}}</span>\n <span class="arrow" data-ng-class="{ open: $state.includes(\'main.channels.mail\') }"></span>\n </a>\n\n <ul class="sub-menu" data-ng-if="license.mail">\n <li data-ng-if="::(Auth.isAdmin() || userModules[34])" data-ng-class="{active: $state.includes(\'main.channels.mail.accounts\') || $state.includes(\'main.channels.mail.account\')}">\n <a href="/channels/mail/accounts/list">\n <i class="icon-notebook"></i>\n <span class="title"> {{\'APPLICATION_ACCOUNTS\' | translate}} </span>\n </a>\n </li>\n <li data-ng-if="::(Auth.isAdmin() || userModules[35])" data-ng-class="{active: $state.includes(\'main.channels.mail.queues\') || $state.includes(\'main.channels.mail.queue\')}">\n <a href="/channels/mail/queues/list">\n <i class="icon-docs"></i>\n <span class="title"> {{\'APPLICATION_QUEUES\' | translate}} </span>\n </a>\n </li>\n <li data-ng-if="::(Auth.isAdmin() || Auth.isAgent() || userModules[36])" data-ng-class="{active: $state.includes(\'main.channels.mail.inbox\')}">\n <a href="/channels/mail/inbox/view">\n <i class="icon-note"></i>\n <span class="title"> {{\'APPLICATION_INBOX\' | translate}} </span>\n </a>\n </li>\n <!-- START REALTIME CASE -->\n <li data-ng-if="::(Auth.isAdmin() || userModules[37])" data-ng-class="{active: $state.includes(\'main.channels.mail.realtime\')}">\n <a href="/channels/mail/realtime/view/agents">\n <i class="icon-energy"></i>\n <span class="title">{{\'APPLICATION_REALTIME\' | translate}}</span>\n </a>\n </li>\n <!-- END REALTIME CASE -->\n </ul>\n </li>\n <!-- END MAIL CASE -->\n\n <!-- START FAX CASE -->\n <li data-ng-if="::(Auth.isAdmin() || Auth.isAgent() || userModules[10])" data-ng-class="{active: $state.includes(\'main.channels.fax\')}">\n <a href="javascript:;" data-ng-class="{\'disabled-link\':!license.fax}">\n <i class="fa fa-fax"></i>\n <span class="title disable-target"> {{ \'APPLICATION_FAX\' | translate}}</span>\n <span class="arrow" data-ng-class="{ open: $state.includes(\'main.channels.fax\') }"></span>\n </a>\n <ul class="sub-menu" data-ng-if="license.fax">\n <li data-ng-if="::(Auth.isAdmin() || userModules[38])" data-ng-class="{active: $state.includes(\'main.channels.fax.accounts\')}">\n <a href="/channels/fax/accounts/list">\n <i class="icon-notebook"></i>\n <span class="title"> {{ \'APPLICATION_ACCOUNTS\' | translate}} </span>\n </a>\n </li>\n <li data-ng-if="::(Auth.isAdmin() || userModules[39])" data-ng-class="{active: $state.includes(\'main.channels.fax.queues\')}">\n <a href="/channels/fax/queues/list">\n <i class="icon-docs"></i>\n <span class="title"> {{ \'APPLICATION_QUEUES\' | translate }} </span>\n </a>\n </li>\n <li data-ng-if="::(Auth.isAdmin() || Auth.isAgent() || userModules[40])" data-ng-class="{active: $state.includes(\'main.channels.fax.inbox\')}">\n <a href="/channels/fax/inbox/view">\n <i class="icon-note"></i>\n <span class="title"> {{ \'APPLICATION_INBOX\' | translate }} </span>\n </a>\n </li>\n <!-- START REALTIME CASE -->\n <li data-ng-if="::(Auth.isAdmin() || userModules[41])" data-ng-class="{active: $state.includes(\'main.channels.fax.realtime\')}">\n <a href="/channels/fax/realtime/view/agents">\n <i class="icon-energy"></i>\n <span class="title">{{\'APPLICATION_REALTIME\' | translate}}</span>\n </a>\n </li>\n <!-- END REALTIME CASE -->\n </ul>\n </li>\n <!-- END FAX CASE -->\n\n <!-- START SMS CASE -->\n <li data-ng-if="::(Auth.isAdmin() || Auth.isAgent() || userModules[11])" data-ng-class="{active: $state.includes(\'main.channels.sms\')}">\n <a href="javascript:;" data-ng-class="{\'disabled-link\':!license.messaging}">\n <i class="glyphicon glyphicon-comment"></i>\n <span class="title disable-target">{{\'APPLICATION_SMS\' | translate}}</span>\n <span class="arrow" data-ng-class="{ open: $state.includes(\'main.channels.sms\') }"></span>\n </a>\n\n <ul class="sub-menu" data-ng-if="license.messaging">\n <li data-ng-if="::(Auth.isAdmin() || userModules[42])" data-ng-class="{active: $state.includes(\'main.channels.sms.accounts\') || $state.includes(\'main.channels.sms.account\')}">\n <a href="/channels/sms/accounts/list">\n <i class="icon-notebook"></i>\n <span class="title"> {{\'APPLICATION_ACCOUNTS\' | translate}} </span>\n </a>\n </li>\n <li data-ng-if="::(Auth.isAdmin() || userModules[43])" data-ng-class="{active: $state.includes(\'main.channels.sms.queues\') || $state.includes(\'main.channels.sms.queue\')}">\n <a href="/channels/sms/queues/list">\n <i class="icon-docs"></i>\n <span class="title"> {{\'APPLICATION_QUEUES\' | translate}} </span>\n </a>\n </li>\n <li data-ng-if="::(Auth.isAdmin() || Auth.isAgent() || userModules[44])" data-ng-class="{active: $state.includes(\'main.channels.sms.inbox\')}">\n <a href="/channels/sms/inbox/view">\n <i class="icon-note"></i>\n <span class="title"> {{\'APPLICATION_INBOX\' | translate}} </span>\n </a>\n </li>\n <!-- START REALTIME CASE -->\n <li data-ng-if="::(Auth.isAdmin() || userModules[45])" data-ng-class="{active: $state.includes(\'main.channels.sms.realtime\')}">\n <a href="/channels/sms/realtime/view/agents">\n <i class="icon-energy"></i>\n <span class="title">{{\'APPLICATION_REALTIME\' | translate}}</span>\n </a>\n </li>\n <!-- END REALTIME CASE -->\n </ul>\n </li>\n\n <!-- END SMS CASE -->\n\n <!-- START OPENCHANNEL CASE -->\n <li data-ng-if="::(Auth.isAdmin() || Auth.isAgent()|| userModules[20])" data-ng-class="{active: $state.includes(\'main.channels.openchannel\')}">\n <a href="javascript:;" data-ng-class="{\'disabled-link\':!license.openchannel}" >\n <i class="icon-globe"></i>\n <span class="title disable-target">{{\'APPLICATION_OPEN_CHANNEL\' | translate}}</span>\n <span class="arrow" data-ng-class="{ open: $state.includes(\'main.channels.openchannel\') }"></span>\n </a>\n <ul class="sub-menu" data-ng-if="license.openchannel" >\n <li data-ng-if="::(Auth.isAdmin()|| userModules[46])" data-ng-class="{active: $state.includes(\'main.channels.openchannel.accounts\') || $state.includes(\'main.channels.openchannel.account\')}">\n <a href="/channels/openchannel/accounts/list">\n <i class="icon-notebook"></i>\n <span class="title"> {{\'APPLICATION_ACCOUNTS\' | translate}} </span>\n </a>\n </li>\n <li data-ng-if="::(Auth.isAdmin()|| userModules[47])" data-ng-class="{active: $state.includes(\'main.channels.openchannel.queues\') || $state.includes(\'main.channels.openchannel.queue\')}">\n <a href="/channels/openchannel/queues/list">\n <i class="icon-docs"></i>\n <span class="title"> {{\'APPLICATION_QUEUES\' | translate}} </span>\n </a>\n </li>\n <li data-ng-if="::(Auth.isAdmin() || Auth.isAgent()|| userModules[48])" data-ng-class="{active: $state.includes(\'main.channels.openchannel.inbox\')}">\n <a href="/channels/openchannel/inbox/view">\n <i class="icon-note"></i>\n <span class="title"> {{\'APPLICATION_INBOX\' | translate}} </span>\n </a>\n </li>\n <!-- START REALTIME CASE -->\n <li data-ng-if="::(Auth.isAdmin() || userModules[49])" data-ng-class="{active: $state.includes(\'main.channels.openchannel.realtime\')}">\n <a href="/channels/openchannel/realtime/view/agents">\n <i class="icon-energy"></i>\n <span class="title">{{\'APPLICATION_REALTIME\' | translate}}</span>\n </a>\n </li>\n <!-- END REALTIME CASE -->\n </ul>\n </li>\n\n <!-- END OPENCHANNEL CASE -->\n <!-- START REALTIME CASE -->\n <li data-ng-if="::(Auth.isAdmin() || userModules[12])" data-ng-class="{active: $state.includes(\'main.channels.realtime\')}">\n <a href="/channels/realtime/view/agents">\n <i class="icon-energy"></i>\n <span class="title">{{\'APPLICATION_OMNI_REALTIME\' | translate}}</span>\n </a>\n </li>\n <!-- END REALTIME CASE -->\n </ul>\n </li>\n <!-- END CHANNEL LIST CASE -->\n\n <!-- START TOOLS LIST CASE -->\n <li data-ng-if="::(Auth.isAdmin() || userModules[13])" data-ng-class="{active: $state.includes(\'main.tools\') && !$state.is(\'main.tools.yourdashboards.show\')}">\n <a href="javascript:;">\n <i class="icon-wrench"></i>\n <span class="title" >{{\'APPLICATION_TOOLS\' | translate}}</span>\n <span class="arrow" data-ng-class="{ open: $state.includes(\'main.tools\') && !$state.is(\'main.tools.yourdashboards.show\')}"></span>\n </a>\n <ul class="sub-menu">\n <li data-ng-class="{active: $state.includes(\'main.tools.triggers\')}" data-ng-if="::(Auth.isAdmin() || userModules[50])">\n <a href="/tools/triggers/list">\n <i class="icon-bulb"></i>\n <span class="title"> {{\'APPLICATION_TRIGGERS\' | translate}} </span>\n </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.tools.automations\')}" data-ng-if="::(Auth.isAdmin() || userModules[51])">\n <a href="/tools/automations/list">\n <i class="icon-settings"></i>\n <span class="title"> {{\'APPLICATION_AUTOMATIONS\' | translate}} </span>\n </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.tools.trunks\')}" data-ng-if="::(Auth.isAdmin() || userModules[52])">\n <a href="/tools/trunks/list">\n <i class="icon-link"></i>\n <span class="title"> {{\'APPLICATION_TRUNKS\' | translate}} </span>\n </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.tools.intervals\')}" data-ng-if="::(Auth.isAdmin() || userModules[53])">\n <a href="/tools/intervals/list">\n <i class="icon-clock"></i>\n <span class="title"> {{\'APPLICATION_INTERVALS\' | translate}} </span>\n </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.tools.variables\')}" data-ng-if="::(Auth.isAdmin() || userModules[54])">\n <a href="/tools/variables/list">\n <i class="fa fa-eye"></i>\n <span class="title" >{{\'APPLICATION_VARIABLES\' | translate}} </span>\n </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.tools.tags\')}" data-ng-if="::(Auth.isAdmin() || userModules[55])">\n <a href="/tools/tags/list">\n <i class="icon-tag"></i>\n <span class="title" >{{\'APPLICATION_TAGS\' | translate}} </span>\n </a>\n </li>\n <!-- START TEMPLATE CASE -->\n <li data-ng-class="{active: $state.includes(\'main.tools.templates\')}" data-ng-if="::(Auth.isAdmin() || userModules[56])">\n <a href="/tools/templates/list">\n <i class="icon-docs"></i>\n <span class="title"> {{\'APPLICATION_TEMPLATES\' | translate}} </span>\n </a>\n </li>\n <!-- END TEMPLATE CASE -->\n\n <!-- START PAUSE CASE -->\n <li data-ng-class="{active: $state.includes(\'main.tools.pauses\')}" data-ng-if="::(Auth.isAdmin() || userModules[57])">\n <a href="/tools/pauses/list">\n <i class="icon-control-pause"></i>\n <span class="title"> {{\'APPLICATION_PAUSES\' | translate}} </span>\n </a>\n </li>\n <!-- END PAUSE CASE -->\n\n <!-- START ANSWER CASE -->\n <li data-ng-class="{active: $state.includes(\'main.tools.answers\')}" data-ng-if="::(Auth.isAdmin() || userModules[58])">\n <a href="/tools/answers/list">\n <i class="icon-magic-wand"></i>\n <span class="title"> {{\'APPLICATION_CANNED_ANSWERS\' | translate}} </span>\n </a>\n </li>\n <!-- END ANSWER CASE -->\n\n <!-- START DASHBOARD MANAGER CASE -->\n <li data-ng-class="{active: $state.includes(\'main.tools.yourdashboards\') && !$state.is(\'main.tools.yourdashboards.show\')}" data-ng-if="::(Auth.isAdmin() || userModules[59])">\n <a href="/tools/yourdashboards/list">\n <i class="fa fa-tachometer"></i>\n <span class="title"> {{\'APPLICATION_DASHBOARDS_MANAGER\' | translate}} </span>\n </a>\n </li>\n <!-- END DASHBOARD MANAGER CASE -->\n\n <!-- START SOUND CASE -->\n <li data-ng-class="{active: $state.includes(\'main.tools.sounds\')}" data-ng-if="::(Auth.isAdmin() || userModules[60])">\n <a href="/tools/sounds/list">\n <i class="icon-music-tone-alt"></i>\n <span class="title" >{{\'APPLICATION_SOUNDS\' | translate}}</span>\n <!-- <span data-ng-if="$state.includes(\'main.sounds\')" class="selected"></span> -->\n </a>\n </li>\n <!-- END SOUND CASE -->\n\n <!-- START SCHEDULE CASE -->\n <li data-ng-class="{active: $state.includes(\'main.tools.scheduler\')}" data-ng-if="::(Auth.isAdmin() || userModules[61])">\n <a href="/tools/scheduler/list">\n <i class="icon-calendar"></i>\n <span class="title" >{{\'APPLICATION_SCHEDULER\' | translate}}</span>\n <!-- <span data-ng-if="$state.includes(\'main.sounds\')" class="selected"></span> -->\n </a>\n </li>\n <!-- END SCHEDULE CASE -->\n </ul>\n </li>\n <!-- END TOOLS LIST CASE -->\n\n <!-- START CALLYSQUARE CASE -->\n <li data-ng-if="::(Auth.isAdmin() || userModules[14])" data-ng-class="{active: $state.includes(\'main.square\')}">\n <a href="javascript:;">\n <i class="fa fa-superscript"></i>\n <span class="title" >Cally ²</span>\n <span class="arrow"></span>\n </a>\n <ul class="sub-menu">\n <li data-ng-class="{active: $state.includes(\'main.square.projects\')}">\n <a href="/square/projects/list">\n <i class="fa fa-slack"></i>\n <span class="title" >{{\'APPLICATION_PROJECTS\' | translate}} </span>\n </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.square.odbc\')}">\n <a href="/square/odbc/list">\n <i class="fa fa-database"></i>\n <span class="title" >{{\'APPLICATION_ODBC\' | translate}} </span>\n </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.square.recordings\')}">\n <a href="/square/recordings/list">\n <i class="icon-microphone"></i>\n <span class="title" >{{\'APPLICATION_RECORDINGS\' | translate}} </span>\n </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.square.realtime.view.general\')}">\n <a href="/square/realtime/view/general">\n <i class="icon-energy"></i>\n <span class="title" >{{\'APPLICATION_REALTIME\' | translate}} </span>\n </a>\n </li>\n </ul>\n </li>\n <!-- END CALLYSQUARE CASE -->\n <!-- START JSCRIPTY LIST -->\n <li data-ng-show="::(Auth.isAdmin() || Auth.isAgent() || userModules[15])" data-ng-class="{active: $state.includes(\'main.jscripty\')}">\n <a href="javascript:;" data-ng-class="{\'disabled-link\':!license.jscripty}" >\n <i class="icon-note"></i>\n <span class="title disable-target" >{{\'APPLICATION_JSCRIPTY\' | translate}} </span>\n <span class="arrow"></span>\n </a>\n <ul class="sub-menu" data-ng-if="license.jscripty">\n <!-- -->\n <!-- START PROJECTS CASE -->\n <li data-ng-show="Auth.isAdmin() || Auth.isAgent() || userModules[15]" data-ng-class="{active: $state.includes(\'main.jscripty.projects\')}">\n <a href="/jscripty/projects/list">\n <i class="fa fa-slack"></i>\n <span class="title" >{{\'APPLICATION_PROJECTS\' | translate}} </span>\n </a>\n </li>\n <!-- END PROJECTS CASE -->\n </ul>\n </li>\n <!-- END JSCRIPTY LIST -->\n\n <!-- START MOTION DIALER LIST CASE-->\n <li data-ng-if="::(Auth.isAdmin() || userModules[16])" data-ng-class="{active: $state.includes(\'main.motiondialer\')}">\n <a href="javascript:;" data-ng-class="{\'disabled-link\':!license.dialer}">\n <i class="icon-control-forward"></i>\n <span class="title disable-target" >{{\'APPLICATION_MOTION_DIALER\' | translate}} </span>\n <span class="arrow"></span>\n </a>\n <ul class="sub-menu" data-ng-if="license.dialer">\n <li data-ng-class="{active: $state.includes(\'main.motiondialer.blacklist\')}">\n <a href="/motiondialer/blacklist/list">\n <i class="icon-doc"></i>\n <span class="title" >{{\'APPLICATION_BLACKLIST\' | translate}} </span>\n </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.motiondialer.processes\')}">\n <a href="/motiondialer/processes/list">\n <i class="icon-settings"></i>\n <span class="title" >{{\'APPLICATION_PROCESSES\' | translate}} </span>\n </a>\n </li>\n <li data-ng-class="{active: $state.includes(\'main.motiondialer.info\')}">\n <a href="/motiondialer/info/view/about">\n <i class="icon-info"></i>\n <span class="title" >{{\'APPLICATION_INFO\' | translate}} </span>\n </a>\n </li>\n </ul>\n </li>\n <!-- END MOTION DIALER LIST CASE-->\n\n <!-- START ANALYTIC LIST CASE -->\n <li data-ng-if="::(Auth.isAdmin() || userModules[17])" data-ng-class="{active: $state.includes(\'main.analytics.reports\')\n || $state.includes(\'main.analytics.extracted\')\n || $state.includes(\'main.analytics.metrics\')}" data-ng-if="::(Auth.isAdmin())">\n <a href="javascript:;">\n <i class="icon-calculator"></i>\n <span class="title" >{{\'APPLICATION_ANALYTICS\' | translate}}</span>\n <span class="arrow" data-ng-class="{ open: $state.includes(\'main.analytics.reports\')\n || $state.includes(\'main.analytics.extracted\')\n || $state.includes(\'main.analytics.metrics\') }"></span>\n </a>\n <ul class="sub-menu">\n <!-- START REPORT CASE -->\n <li data-ng-class="{active: $state.includes(\'main.analytics.reports\')}">\n <a href="/analytics/reports/list">\n <i class="icon-book-open"></i>\n <span class="title" >{{\'APPLICATION_REPORTS\' | translate}}</span>\n <span data-ng-if="$state.includes(\'main.analytics.reports\')" class="selected"></span>\n </a>\n </li>\n <!-- END REPORT CASE -->\n <!-- START EXTRA REPORT CASE -->\n <li data-ng-class="{active: $state.includes(\'main.analytics.extracted\')}">\n <a href="/analytics/extracted/list">\n <i class="fa fa-file-pdf-o"></i>\n <span class="title" >{{\'APPLICATION_EXTRACTED_REPORTS\' | translate}}</span>\n <span data-ng-if="$state.includes(\'main.analytics.extracted\')" class="selected"></span>\n </a>\n </li>\n <!-- END EXTRA REPORT CASE -->\n <!-- START METRICS CASE -->\n <li data-ng-class="{active: $state.includes(\'main.analytics.metrics\')}">\n <a href="/analytics/metrics/list">\n <i class="icon-calculator"></i>\n <span class="title" >{{\'APPLICATION_METRICS\' | translate}}</span>\n <span data-ng-if="$state.includes(\'main.metrics.reports\')" class="selected"></span>\n </a>\n </li>\n <!-- END METRICS CASE -->\n </ul>\n </li>\n <!-- END ANALYTIC LIST CASE -->\n\n <!-- START SETTINGS LIST -->\n <li data-ng-if="::(Auth.isAdmin() || userModules[18])" data-ng-class="{active: $state.includes(\'main.setting\')}">\n <a href="javascript:;">\n <i class="icon-settings"></i>\n <span class="title" >{{\'APPLICATION_SETTINGS\' | translate}}</span>\n <span class="arrow"></span>\n </a>\n <ul class="sub-menu">\n <!-- START GENERAL CASE -->\n <li data-ng-class="{active: $state.includes(\'main.setting.general\')}">\n <a href="/setting/general/view/main">\n <i class="icon-settings"></i>\n <span class="title"> {{\'APPLICATION_GENERAL\' | translate}} </span>\n </a>\n </li>\n <!-- END GENERAL CASE -->\n\n <!-- START UPDATES CASE -->\n <li data-ng-class="{active: $state.includes(\'main.setting.updates\')}">\n <a href="{{license.update ? \'/setting/updates/list\' : \'javascript:;\'}}" data-ng-class="{\'disabled-link\':!license.update}">\n <i class="icon-cloud-download"></i>\n <span class="title disable-target" >{{\'APPLICATION_UPDATES\' | translate}}</span>\n <!-- <span data-ng-if="$state.includes(\'main.updates\')" class="selected"></span> -->\n </a>\n </li>\n <!-- END UPDATES CASE -->\n\n <!-- START SMTP CASE -->\n <li data-ng-class="{active: $state.includes(\'main.setting.smtp\')}">\n <a href="/setting/smtp/view">\n <i class="icon-envelope"></i>\n <span class="title">SMTP</span>\n <!-- <span data-ng-if="$state.includes(\'main.smtp\')" class="selected"></span> -->\n </a>\n </li>\n <!-- END SMTP CASE -->\n\n <!-- START LICENSE CASE -->\n <li data-ng-class="{active: $state.includes(\'main.setting.license\')}">\n <a href="/setting/license/view">\n <i class="icon-info"></i>\n <span class="title"> {{\'APPLICATION_LICENSE\' | translate}} </span>\n </a>\n </li>\n <!-- END LICENSE CASE -->\n\n <!-- START NETWORK CASE -->\n <li data-ng-class="{active: $state.includes(\'main.setting.network\')}">\n <a href="/setting/network/view/localnet">\n <i class="icon-globe"></i>\n <span class="title"> {{\'APPLICATION_NETWORK\' | translate}} </span>\n </a>\n </li>\n <!-- END NETWORK CASE -->\n\n <!-- START SYSTEM CASE -->\n <li data-ng-class="{active: $state.includes(\'main.setting.system\')}">\n <a href="/setting/system/view/general">\n <i class="icon-pie-chart"></i>\n <span class="title"> {{\'APPLICATION_SYSTEM\' | translate}} </span>\n </a>\n </li>\n <!-- END SYSTEM CASE -->\n\n <!-- START CUSTOMIZATION CASE -->\n <li data-ng-class="{active: $state.includes(\'main.setting.customization\')}">\n <a href="/setting/customization/view/general">\n <i class="icon-equalizer"></i>\n <span class="title"> {{\'APPLICATION_CUSTOMIZATION\' | translate}} </span>\n </a>\n </li>\n <!-- END CUSTOMIZATION CASE -->\n </ul>\n </li>\n <!-- END SETTINGS LIST -->\n\n <!-- START INTEGRATION CASE -->\n <li data-ng-if=" (Auth.isAdmin() || Auth.isAgent() || userModules[19]) && integration.active" data-ng-repeat="integration in integrations" data-ng-class="{active: $state.includes(\'main.{{integration.state}}\')}">\n <a href="/{{integration.state}}/list" ng-switch on="integration.state" data-ng-if="integration.state !== \'iframe\' && (Auth.isAdmin() || userModules[19])">\n <i ng-switch-when="zendesk" class="icon-heart"></i>\n <i ng-switch-when="salesforce" class="fa fa-cloud"></i>\n <i ng-switch-default class="icon-handbag"></i>\n <span class="title" >{{integration.name}}</span>\n <span data-ng-if="$state.includes(\'main.{{integration.state}}\')" class="selected"></span>\n </a>\n <a href="/{{integration.state}}/view" data-ng-if="integration.state === \'iframe\'">\n <i class="fa fa-chrome"></i>\n <span class="title" data-ng-if="Auth.isAdmin() || userModules[19]">{{integration.name}}</span>\n <span class="title" data-ng-if="Auth.isAgent()">{{integration.title || integration.name}}</span>\n <span data-ng-if="$state.includes(\'main.{{integration.state}}\')" class="selected"></span>\n </a>\n </li>\n\n <li data-ng-if="::(Auth.isAdmin())" data-ng-class="{active: $state.is(\'main.market\')}">\n <a href="/market">\n <i class="icon-handbag"></i>\n <span class="title" translate>Market Place</span>\n <span data-ng-if="$state.includes(\'main.market\')" class="selected"></span>\n </a>\n </li>\n <!-- END INTEGRATIONS CASE -->\n <li>\n <a href="javascript:;" data-ng-click="activeTour.main = true" data-ng-if="::(!Auth.isAgent())">\n <i class="icon-location-pin"></i>\n <span class="title">{{\'APPLICATION_TAKE_A_TOUR\' | translate}}</span>\n </a>\n </li>\n <li>\n <a href="javascript:;" data-ng-click="about()">\n <i class="icon-info"></i>\n <span class="title">{{\'APPLICATION_ABOUT\' | translate}}</span>\n </a>\n </li>\n\n</ul>\n<!-- END SIDEBAR MENU -->\n</div>\n'); -}]); \ No newline at end of file diff --git a/public/assets/plugins/jscripty/js/Actions.js b/public/assets/plugins/jscripty/js/Actions.js index 7d9f7ce..1dff6ac 100644 --- a/public/assets/plugins/jscripty/js/Actions.js +++ b/public/assets/plugins/jscripty/js/Actions.js @@ -1 +1 @@ -var _0x2080=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x64\x69\x74\x6F\x72\x55\x69","\x61\x63\x74\x69\x6F\x6E\x73","\x69\x6E\x69\x74","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x65\x64\x69\x74\x6F\x72","\x67\x72\x61\x70\x68","\x6E\x65\x77","\x63\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x73\x68\x6F\x77\x44\x69\x61\x6C\x6F\x67","\x61\x64\x64\x41\x63\x74\x69\x6F\x6E","\x6F\x70\x65\x6E","\x73\x61\x76\x65","\x73\x61\x76\x65\x46\x69\x6C\x65","\x43\x74\x72\x6C\x2B\x53","\x73\x61\x76\x65\x41\x73","\x43\x74\x72\x6C\x2B\x53\x68\x69\x66\x74\x2D\x53","\x70\x75\x62\x6C\x69\x73\x68","\x70\x75\x62\x6C\x69\x73\x68\x46\x69\x6C\x65","\x43\x74\x72\x6C\x2B\x53\x68\x69\x66\x74\x2B\x50","\x76\x61\x72\x69\x61\x62\x6C\x65","\x69\x6D\x70\x6F\x72\x74","\x65\x78\x70\x6F\x72\x74","\x43\x74\x72\x6C\x2B\x45","\x65\x64\x69\x74\x46\x69\x6C\x65","\x65\x64\x69\x74","\x67\x65\x74","\x62\x69\x6E\x64","\x70\x75\x74","\x72\x65\x6E\x61\x6D\x65","\x70\x72\x69\x6E\x74","\x70\x72\x69\x6E\x74\x53\x63\x72\x65\x65\x6E","\x73\x70\x72\x69\x74\x65\x2D\x70\x72\x69\x6E\x74","\x43\x74\x72\x6C\x2B\x50","\x70\x72\x65\x76\x69\x65\x77","\x73\x68\x6F\x77","\x75\x6E\x64\x6F","\x75\x6E\x64\x6F\x4D\x61\x6E\x61\x67\x65\x72","\x73\x70\x72\x69\x74\x65\x2D\x75\x6E\x64\x6F","\x43\x74\x72\x6C\x2B\x5A","\x72\x65\x64\x6F","\x73\x70\x72\x69\x74\x65\x2D\x72\x65\x64\x6F","\x43\x74\x72\x6C\x2B\x59","\x63\x75\x74","\x73\x70\x72\x69\x74\x65\x2D\x63\x75\x74","\x43\x74\x72\x6C\x2B\x58","\x63\x6F\x70\x79","\x73\x70\x72\x69\x74\x65\x2D\x63\x6F\x70\x79","\x43\x74\x72\x6C\x2B\x43","\x70\x61\x73\x74\x65","\x73\x70\x72\x69\x74\x65\x2D\x70\x61\x73\x74\x65","\x43\x74\x72\x6C\x2B\x56","\x64\x65\x6C\x65\x74\x65","\x72\x65\x6D\x6F\x76\x65\x43\x65\x6C\x6C\x73","\x44\x65\x6C\x65\x74\x65","\x64\x75\x70\x6C\x69\x63\x61\x74\x65","\x67\x72\x69\x64\x53\x69\x7A\x65","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C\x73","\x6D\x6F\x76\x65\x43\x65\x6C\x6C\x73","\x73\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C\x73","\x43\x74\x72\x6C\x2B\x44","\x73\x65\x6C\x65\x63\x74\x56\x65\x72\x74\x69\x63\x65\x73","\x43\x74\x72\x6C\x2B\x53\x68\x69\x66\x74\x2B\x56","\x73\x65\x6C\x65\x63\x74\x45\x64\x67\x65\x73","\x43\x74\x72\x6C\x2B\x53\x68\x69\x66\x74\x2B\x45","\x73\x65\x6C\x65\x63\x74\x41\x6C\x6C","\x43\x74\x72\x6C\x2B\x41","\x68\x6F\x6D\x65","\x48\x6F\x6D\x65","\x65\x78\x69\x74\x47\x72\x6F\x75\x70","\x50\x61\x67\x65\x20\x55\x70","\x65\x6E\x74\x65\x72\x47\x72\x6F\x75\x70","\x50\x61\x67\x65\x20\x44\x6F\x77\x6E","\x65\x78\x70\x61\x6E\x64","\x66\x6F\x6C\x64\x43\x65\x6C\x6C\x73","\x45\x6E\x74\x65\x72","\x63\x6F\x6C\x6C\x61\x70\x73\x65","\x42\x61\x63\x6B\x73\x70\x61\x63\x65","\x74\x6F\x46\x72\x6F\x6E\x74","\x6F\x72\x64\x65\x72\x43\x65\x6C\x6C\x73","\x43\x74\x72\x6C\x2B\x46","\x74\x6F\x42\x61\x63\x6B","\x43\x74\x72\x6C\x2B\x42","\x67\x72\x6F\x75\x70","\x67\x72\x6F\x75\x70\x43\x65\x6C\x6C\x73","\x73\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C","\x43\x74\x72\x6C\x2B\x47","\x75\x6E\x67\x72\x6F\x75\x70","\x75\x6E\x67\x72\x6F\x75\x70\x43\x65\x6C\x6C\x73","\x43\x74\x72\x6C\x2B\x55","\x72\x65\x6D\x6F\x76\x65\x46\x72\x6F\x6D\x47\x72\x6F\x75\x70","\x72\x65\x6D\x6F\x76\x65\x43\x65\x6C\x6C\x73\x46\x72\x6F\x6D\x50\x61\x72\x65\x6E\x74","\x65\x64\x69\x74\x4C\x69\x6E\x6B","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C","\x67\x65\x74\x4C\x69\x6E\x6B\x46\x6F\x72\x43\x65\x6C\x6C","","\x65\x6E\x74\x65\x72\x56\x61\x6C\x75\x65","\x70\x72\x6F\x6D\x70\x74","\x73\x65\x74\x4C\x69\x6E\x6B\x46\x6F\x72\x43\x65\x6C\x6C","\x6F\x70\x65\x6E\x4C\x69\x6E\x6B","\x61\x75\x74\x6F\x73\x69\x7A\x65","\x62\x65\x67\x69\x6E\x55\x70\x64\x61\x74\x65","\x67\x65\x74\x4D\x6F\x64\x65\x6C","\x6C\x65\x6E\x67\x74\x68","\x67\x65\x74\x43\x68\x69\x6C\x64\x43\x6F\x75\x6E\x74","\x75\x70\x64\x61\x74\x65\x47\x72\x6F\x75\x70\x42\x6F\x75\x6E\x64\x73","\x75\x70\x64\x61\x74\x65\x43\x65\x6C\x6C\x53\x69\x7A\x65","\x65\x6E\x64\x55\x70\x64\x61\x74\x65","\x77\x6F\x72\x64\x57\x72\x61\x70","\x67\x65\x74\x53\x74\x61\x74\x65","\x67\x65\x74\x56\x69\x65\x77","\x77\x72\x61\x70","\x53\x54\x59\x4C\x45\x5F\x57\x48\x49\x54\x45\x5F\x53\x50\x41\x43\x45","\x73\x74\x79\x6C\x65","\x73\x65\x74\x43\x65\x6C\x6C\x53\x74\x79\x6C\x65\x73","\x72\x6F\x74\x61\x74\x69\x6F\x6E","\x30","\x53\x54\x59\x4C\x45\x5F\x52\x4F\x54\x41\x54\x49\x4F\x4E","\x20\x28","\x20\x30\x2D\x33\x36\x30\x29","\x74\x69\x6C\x74","\x69\x73\x56\x65\x72\x74\x65\x78","\x67\x65\x74\x43\x65\x6C\x6C\x47\x65\x6F\x6D\x65\x74\x72\x79","\x63\x6C\x6F\x6E\x65","\x78","\x77\x69\x64\x74\x68","\x68\x65\x69\x67\x68\x74","\x79","\x73\x65\x74\x47\x65\x6F\x6D\x65\x74\x72\x79","\x76\x69\x65\x77","\x53\x54\x59\x4C\x45\x5F\x44\x49\x52\x45\x43\x54\x49\x4F\x4E","\x65\x61\x73\x74","\x73\x6F\x75\x74\x68","\x77\x65\x73\x74","\x6E\x6F\x72\x74\x68","\x43\x74\x72\x6C\x2B\x52","\x61\x63\x74\x75\x61\x6C\x53\x69\x7A\x65","\x7A\x6F\x6F\x6D\x54\x6F","\x7A\x6F\x6F\x6D\x49\x6E","\x41\x64\x64","\x7A\x6F\x6F\x6D\x4F\x75\x74","\x53\x75\x62\x74\x72\x61\x63\x74","\x66\x69\x74\x57\x69\x6E\x64\x6F\x77","\x66\x69\x74","\x66\x69\x74\x50\x61\x67\x65","\x70\x61\x67\x65\x56\x69\x73\x69\x62\x6C\x65","\x66\x75\x6E\x63\x74","\x70\x61\x67\x65\x56\x69\x65\x77","\x70\x61\x67\x65\x46\x6F\x72\x6D\x61\x74","\x70\x61\x67\x65\x53\x63\x61\x6C\x65","\x63\x6C\x69\x65\x6E\x74\x57\x69\x64\x74\x68","\x63\x6C\x69\x65\x6E\x74\x48\x65\x69\x67\x68\x74","\x6D\x69\x6E","\x66\x6C\x6F\x6F\x72","\x73\x63\x72\x6F\x6C\x6C\x4C\x65\x66\x74","\x74\x72\x61\x6E\x73\x6C\x61\x74\x65","\x6D\x61\x78","\x72\x6F\x75\x6E\x64","\x73\x63\x72\x6F\x6C\x6C\x54\x6F\x70","\x66\x69\x74\x50\x61\x67\x65\x57\x69\x64\x74\x68","\x63\x75\x73\x74\x6F\x6D\x5A\x6F\x6F\x6D","\x63\x75\x73\x74\x6F\x6D","\x20\x28\x25\x29","\x67\x65\x74\x53\x63\x61\x6C\x65","\x67\x72\x69\x64","\x69\x73\x47\x72\x69\x64\x45\x6E\x61\x62\x6C\x65\x64","\x73\x65\x74\x47\x72\x69\x64\x45\x6E\x61\x62\x6C\x65\x64","\x75\x70\x64\x61\x74\x65\x47\x72\x61\x70\x68\x43\x6F\x6D\x70\x6F\x6E\x65\x6E\x74\x73","\x43\x74\x72\x6C\x2B\x53\x68\x69\x66\x74\x2B\x47","\x73\x65\x74\x54\x6F\x67\x67\x6C\x65\x41\x63\x74\x69\x6F\x6E","\x73\x65\x74\x53\x65\x6C\x65\x63\x74\x65\x64\x43\x61\x6C\x6C\x62\x61\x63\x6B","\x67\x75\x69\x64\x65\x73","\x67\x75\x69\x64\x65\x73\x45\x6E\x61\x62\x6C\x65\x64","\x67\x72\x61\x70\x68\x48\x61\x6E\x64\x6C\x65\x72","\x74\x6F\x6F\x6C\x74\x69\x70\x73","\x69\x73\x45\x6E\x61\x62\x6C\x65\x64","\x74\x6F\x6F\x6C\x74\x69\x70\x48\x61\x6E\x64\x6C\x65\x72","\x73\x65\x74\x45\x6E\x61\x62\x6C\x65\x64","\x6E\x61\x76\x69\x67\x61\x74\x69\x6F\x6E","\x66\x6F\x6C\x64\x69\x6E\x67\x45\x6E\x61\x62\x6C\x65\x64","\x72\x65\x76\x61\x6C\x69\x64\x61\x74\x65","\x73\x63\x72\x6F\x6C\x6C\x62\x61\x72\x73","\x73\x63\x61\x6C\x65","\x73\x65\x74\x54\x72\x61\x6E\x73\x6C\x61\x74\x65","\x73\x69\x7A\x65\x44\x69\x64\x43\x68\x61\x6E\x67\x65","\x49\x53\x5F\x54\x4F\x55\x43\x48","\x6F\x76\x65\x72\x66\x6C\x6F\x77","\x61\x75\x74\x6F","\x70\x61\x67\x65\x42\x72\x65\x61\x6B\x73\x56\x69\x73\x69\x62\x6C\x65","\x70\x72\x65\x66\x65\x72\x50\x61\x67\x65\x53\x69\x7A\x65","\x76\x61\x6C\x69\x64\x61\x74\x65","\x75\x70\x64\x61\x74\x65","\x6F\x75\x74\x6C\x69\x6E\x65","\x68\x61\x73\x53\x63\x72\x6F\x6C\x6C\x62\x61\x72\x73","\x63\x6F\x6E\x6E\x65\x63\x74","\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x48\x61\x6E\x64\x6C\x65\x72","\x73\x65\x74\x43\x6F\x6E\x6E\x65\x63\x74\x61\x62\x6C\x65","\x43\x74\x72\x6C\x2B\x51","\x63\x6F\x70\x79\x43\x6F\x6E\x6E\x65\x63\x74","\x69\x73\x43\x72\x65\x61\x74\x65\x54\x61\x72\x67\x65\x74","\x73\x65\x74\x43\x72\x65\x61\x74\x65\x54\x61\x72\x67\x65\x74","\x68\x65\x6C\x70","\x6C\x61\x6E\x67\x75\x61\x67\x65","\x69\x73\x4C\x61\x6E\x67\x75\x61\x67\x65\x53\x75\x70\x70\x6F\x72\x74\x65\x64","\x5F","\x2F\x68\x65\x6C\x70","\x2E\x68\x74\x6D\x6C","\x61\x62\x6F\x75\x74","\x20\x43\x61\x6C\x6C\x79\x20\x53\x71\x75\x61\x72\x65","\x46\x31","\x74\x6F\x67\x67\x6C\x65\x43\x65\x6C\x6C\x53\x74\x79\x6C\x65\x46\x6C\x61\x67\x73","\x62\x6F\x6C\x64","\x69\x74\x61\x6C\x69\x63","\x75\x6E\x64\x65\x72\x6C\x69\x6E\x65","\x73\x68\x61\x64\x6F\x77","\x74\x6F\x67\x67\x6C\x65\x43\x65\x6C\x6C\x53\x74\x79\x6C\x65\x73","\x64\x61\x73\x68\x65\x64","\x72\x6F\x75\x6E\x64\x65\x64","\x63\x75\x72\x76\x65\x64","\x29","\x67\x65\x74\x53\x74\x79\x6C\x65","\x73\x65\x74\x43\x65\x6C\x6C\x53\x74\x79\x6C\x65","\x73\x65\x74\x41\x73\x44\x65\x66\x61\x75\x6C\x74\x45\x64\x67\x65","\x73\x65\x74\x44\x65\x66\x61\x75\x6C\x74\x45\x64\x67\x65","\x61\x64\x64\x57\x61\x79\x70\x6F\x69\x6E\x74","\x69\x73\x45\x64\x67\x65","\x67\x65\x74\x48\x61\x6E\x64\x6C\x65\x72","\x73\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C\x73\x48\x61\x6E\x64\x6C\x65\x72","\x67\x65\x74\x50\x61\x72\x65\x6E\x74","\x73\x74\x61\x74\x65","\x74\x72\x69\x67\x67\x65\x72\x58","\x70\x61\x6E\x6E\x69\x6E\x67\x48\x61\x6E\x64\x6C\x65\x72","\x74\x72\x69\x67\x67\x65\x72\x59","\x61\x64\x64\x50\x6F\x69\x6E\x74\x41\x74","\x72\x65\x6D\x6F\x76\x65\x57\x61\x79\x70\x6F\x69\x6E\x74","\x68\x61\x6E\x64\x6C\x65\x72","\x69\x6E\x64\x65\x78","\x72\x65\x6D\x6F\x76\x65\x50\x6F\x69\x6E\x74","\x69\x6D\x61\x67\x65","\x67\x65\x74\x47\x72\x69\x64\x53\x69\x7A\x65","\x67\x65\x74\x44\x65\x66\x61\x75\x6C\x74\x50\x61\x72\x65\x6E\x74","\x69\x6E\x73\x65\x72\x74\x56\x65\x72\x74\x65\x78","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x6F\x75\x6E\x74","\x67\x65\x74\x47\x65\x6F\x6D\x65\x74\x72\x79","\x73\x63\x72\x6F\x6C\x6C\x43\x65\x6C\x6C\x54\x6F\x56\x69\x73\x69\x62\x6C\x65","\x53\x54\x59\x4C\x45\x5F\x49\x4D\x41\x47\x45","\x75\x72\x6C","\x6F\x6E\x6C\x6F\x61\x64","\x6F\x6E\x65\x72\x72\x6F\x72","\x66\x69\x6C\x65\x4E\x6F\x74\x46\x6F\x75\x6E\x64","\x61\x6C\x65\x72\x74","\x73\x72\x63","\x63\x61\x6C\x6C","\x6C\x61\x62\x65\x6C","\x65\x6E\x61\x62\x6C\x65\x64","\x69\x63\x6F\x6E\x43\x6C\x73","\x73\x68\x6F\x72\x74\x63\x75\x74","\x65\x78\x74\x65\x6E\x64","\x73\x74\x61\x74\x65\x43\x68\x61\x6E\x67\x65\x64","\x66\x69\x72\x65\x45\x76\x65\x6E\x74","\x74\x6F\x67\x67\x6C\x65\x41\x63\x74\x69\x6F\x6E","\x73\x65\x6C\x65\x63\x74\x65\x64\x43\x61\x6C\x6C\x62\x61\x63\x6B","\x69\x73\x53\x65\x6C\x65\x63\x74\x65\x64"];_0x2080[0];function Actions(_0xb8adx2){this[_0x2080[1]]= _0xb8adx2;this[_0x2080[2]]= new Object();this[_0x2080[3]]()}Actions[_0x2080[4]][_0x2080[3]]= function(){var _0xb8adx3=this[_0x2080[1]];var _0xb8adx4=_0xb8adx3[_0x2080[5]];var _0xb8adx5=_0xb8adx4[_0x2080[6]];this[_0x2080[10]](_0x2080[7],function(){_0xb8adx3[_0x2080[9]]( new NewDialog(_0xb8adx3)[_0x2080[8]],300,180,true,true)});this[_0x2080[10]](_0x2080[11],function(){_0xb8adx3[_0x2080[9]]( new OpenDialog(_0xb8adx3)[_0x2080[8]],300,180,true,true)});this[_0x2080[10]](_0x2080[12],function(){_0xb8adx3[_0x2080[13]](false)},null,null,_0x2080[14]);this[_0x2080[10]](_0x2080[15],function(){_0xb8adx3[_0x2080[13]](true)},null,null,_0x2080[16]);this[_0x2080[10]](_0x2080[17],function(){_0xb8adx3[_0x2080[18]](false)},null,null,_0x2080[19]);this[_0x2080[10]](_0x2080[20],function(){_0xb8adx3[_0x2080[9]]( new VariableDialog(_0xb8adx3)[_0x2080[8]],300,180,true,true)});this[_0x2080[10]](_0x2080[21],function(){_0xb8adx3[_0x2080[9]]( new ImportDialog(_0xb8adx3)[_0x2080[8]],300,200,true,true)});this[_0x2080[10]](_0x2080[22],function(){_0xb8adx3[_0x2080[9]]( new ExportDialog(_0xb8adx3)[_0x2080[8]],300,200,true,true)},null,null,_0x2080[23]);this[_0x2080[28]](_0x2080[24], new Action(mxResources[_0x2080[26]](_0x2080[25]),mxUtils[_0x2080[27]](this,function(){this[_0x2080[1]][_0x2080[9]]( new EditFileDialog(_0xb8adx3)[_0x2080[8]],620,420,true,true)})));this[_0x2080[10]](_0x2080[29],function(){_0xb8adx3[_0x2080[9]]( new RenameDialog(_0xb8adx3)[_0x2080[8]],300,180,true,true)});this[_0x2080[10]](_0x2080[30],function(){mxUtils[_0x2080[31]](_0xb8adx5)},null,_0x2080[32],_0x2080[33]);this[_0x2080[10]](_0x2080[34],function(){mxUtils[_0x2080[35]](_0xb8adx5,null,10,10)});this[_0x2080[10]](_0x2080[36],function(){_0xb8adx4[_0x2080[37]][_0x2080[36]]()},null,_0x2080[38],_0x2080[39]);this[_0x2080[10]](_0x2080[40],function(){_0xb8adx4[_0x2080[37]][_0x2080[40]]()},null,_0x2080[41],_0x2080[42]);this[_0x2080[10]](_0x2080[43],function(){mxClipboard[_0x2080[43]](_0xb8adx5)},null,_0x2080[44],_0x2080[45]);this[_0x2080[10]](_0x2080[46],function(){mxClipboard[_0x2080[46]](_0xb8adx5)},null,_0x2080[47],_0x2080[48]);this[_0x2080[10]](_0x2080[49],function(){mxClipboard[_0x2080[49]](_0xb8adx5)},false,_0x2080[50],_0x2080[51]);this[_0x2080[10]](_0x2080[52],function(){_0xb8adx5[_0x2080[53]]()},null,null,_0x2080[54]);this[_0x2080[10]](_0x2080[55],function(){var _0xb8adx6=_0xb8adx5[_0x2080[56]];_0xb8adx5[_0x2080[59]](_0xb8adx5[_0x2080[58]](_0xb8adx5[_0x2080[57]](),_0xb8adx6,_0xb8adx6,true))},null,null,_0x2080[60]);this[_0x2080[10]](_0x2080[61],function(){_0xb8adx5[_0x2080[61]]()},null,null,_0x2080[62]);this[_0x2080[10]](_0x2080[63],function(){_0xb8adx5[_0x2080[63]]()},null,null,_0x2080[64]);this[_0x2080[10]](_0x2080[65],function(){_0xb8adx5[_0x2080[65]]()},null,null,_0x2080[66]);this[_0x2080[10]](_0x2080[67],function(){_0xb8adx5[_0x2080[67]]()},null,null,_0x2080[68]);this[_0x2080[10]](_0x2080[69],function(){_0xb8adx5[_0x2080[69]]()},null,null,_0x2080[70]);this[_0x2080[10]](_0x2080[71],function(){_0xb8adx5[_0x2080[71]]()},null,null,_0x2080[72]);this[_0x2080[10]](_0x2080[73],function(){_0xb8adx5[_0x2080[74]](false)},null,null,_0x2080[75]);this[_0x2080[10]](_0x2080[76],function(){_0xb8adx5[_0x2080[74]](true)},null,null,_0x2080[77]);this[_0x2080[10]](_0x2080[78],function(){_0xb8adx5[_0x2080[79]](false)},null,null,_0x2080[80]);this[_0x2080[10]](_0x2080[81],function(){_0xb8adx5[_0x2080[79]](true)},null,null,_0x2080[82]);this[_0x2080[10]](_0x2080[83],function(){_0xb8adx5[_0x2080[85]](_0xb8adx5[_0x2080[84]](null,0))},null,null,_0x2080[86]);this[_0x2080[10]](_0x2080[87],function(){_0xb8adx5[_0x2080[59]](_0xb8adx5[_0x2080[88]]())},null,null,_0x2080[89]);this[_0x2080[10]](_0x2080[90],function(){_0xb8adx5[_0x2080[91]]()});this[_0x2080[10]](_0x2080[92],function(){var _0xb8adx7=_0xb8adx5[_0x2080[93]]();var _0xb8adx8=_0xb8adx5[_0x2080[94]](_0xb8adx7);if(_0xb8adx8== null){_0xb8adx8= _0x2080[95]};_0xb8adx8= mxUtils[_0x2080[97]](mxResources[_0x2080[26]](_0x2080[96]),_0xb8adx8);if(_0xb8adx8!= null){_0xb8adx5[_0x2080[98]](_0xb8adx7,_0xb8adx8)}});this[_0x2080[10]](_0x2080[99],function(){var _0xb8adx7=_0xb8adx5[_0x2080[93]]();var _0xb8adx8=_0xb8adx5[_0x2080[94]](_0xb8adx7);if(_0xb8adx8!= null){window[_0x2080[11]](_0xb8adx8)}});this[_0x2080[10]](_0x2080[100],function(){var _0xb8adx9=_0xb8adx5[_0x2080[57]]();if(_0xb8adx9!= null){_0xb8adx5[_0x2080[102]]()[_0x2080[101]]();try{for(var _0xb8adxa=0;_0xb8adxa< _0xb8adx9[_0x2080[103]];_0xb8adxa++){var _0xb8adx7=_0xb8adx9[_0xb8adxa];if(_0xb8adx5[_0x2080[102]]()[_0x2080[104]](_0xb8adx7)){_0xb8adx5[_0x2080[105]]([_0xb8adx7],20)}else {_0xb8adx5[_0x2080[106]](_0xb8adx7)}}}finally{_0xb8adx5[_0x2080[102]]()[_0x2080[107]]()}}});this[_0x2080[10]](_0x2080[108],function(){var _0xb8adxb=_0xb8adx5[_0x2080[110]]()[_0x2080[109]](_0xb8adx5[_0x2080[93]]());var _0xb8adxc=_0x2080[111];if(_0xb8adxb!= null&& _0xb8adxb[_0x2080[113]][mxConstants[_0x2080[112]]]== _0x2080[111]){_0xb8adxc= null};_0xb8adx5[_0x2080[114]](mxConstants.STYLE_WHITE_SPACE,_0xb8adxc)});this[_0x2080[10]](_0x2080[115],function(){var _0xb8adxc=_0x2080[116];var _0xb8adxb=_0xb8adx5[_0x2080[110]]()[_0x2080[109]](_0xb8adx5[_0x2080[93]]());if(_0xb8adxb!= null){_0xb8adxc= _0xb8adxb[_0x2080[113]][mxConstants[_0x2080[117]]]|| _0xb8adxc};_0xb8adxc= mxUtils[_0x2080[97]](mxResources[_0x2080[26]](_0x2080[96])+ _0x2080[118]+ mxResources[_0x2080[26]](_0x2080[115])+ _0x2080[119],_0xb8adxc);if(_0xb8adxc!= null){_0xb8adx5[_0x2080[114]](mxConstants.STYLE_ROTATION,_0xb8adxc)}});this[_0x2080[10]](_0x2080[120],function(){var _0xb8adx9=_0xb8adx5[_0x2080[57]]();if(_0xb8adx9!= null){_0xb8adx5[_0x2080[102]]()[_0x2080[101]]();try{for(var _0xb8adxa=0;_0xb8adxa< _0xb8adx9[_0x2080[103]];_0xb8adxa++){var _0xb8adx7=_0xb8adx9[_0xb8adxa];if(_0xb8adx5[_0x2080[102]]()[_0x2080[121]](_0xb8adx7)&& _0xb8adx5[_0x2080[102]]()[_0x2080[104]](_0xb8adx7)== 0){var _0xb8adxd=_0xb8adx5[_0x2080[122]](_0xb8adx7);if(_0xb8adxd!= null){_0xb8adxd= _0xb8adxd[_0x2080[123]]();_0xb8adxd[_0x2080[124]]+= _0xb8adxd[_0x2080[125]]/ 2- _0xb8adxd[_0x2080[126]]/ 2;_0xb8adxd[_0x2080[127]]+= _0xb8adxd[_0x2080[126]]/ 2- _0xb8adxd[_0x2080[125]]/ 2;var _0xb8adxe=_0xb8adxd[_0x2080[125]];_0xb8adxd[_0x2080[125]]= _0xb8adxd[_0x2080[126]];_0xb8adxd[_0x2080[126]]= _0xb8adxe;_0xb8adx5[_0x2080[102]]()[_0x2080[128]](_0xb8adx7,_0xb8adxd);var _0xb8adxb=_0xb8adx5[_0x2080[129]][_0x2080[109]](_0xb8adx7);if(_0xb8adxb!= null){var _0xb8adxf=_0xb8adxb[_0x2080[113]][mxConstants[_0x2080[130]]]|| _0x2080[131];if(_0xb8adxf== _0x2080[131]){_0xb8adxf= _0x2080[132]}else {if(_0xb8adxf== _0x2080[132]){_0xb8adxf= _0x2080[133]}else {if(_0xb8adxf== _0x2080[133]){_0xb8adxf= _0x2080[134]}else {if(_0xb8adxf== _0x2080[134]){_0xb8adxf= _0x2080[131]}}}};_0xb8adx5[_0x2080[114]](mxConstants.STYLE_DIRECTION,_0xb8adxf,[_0xb8adx7])}}}}}finally{_0xb8adx5[_0x2080[102]]()[_0x2080[107]]()}}},null,null,_0x2080[135]);this[_0x2080[10]](_0x2080[136],function(){_0xb8adx5[_0x2080[137]](1)});this[_0x2080[10]](_0x2080[138],function(){_0xb8adx5[_0x2080[138]]()},null,null,_0x2080[139]);this[_0x2080[10]](_0x2080[140],function(){_0xb8adx5[_0x2080[140]]()},null,null,_0x2080[141]);this[_0x2080[10]](_0x2080[142],function(){_0xb8adx5[_0x2080[143]]()});this[_0x2080[10]](_0x2080[144],mxUtils[_0x2080[27]](this,function(){if(!_0xb8adx5[_0x2080[145]]){this[_0x2080[26]](_0x2080[147])[_0x2080[146]]()};var _0xb8adx10=_0xb8adx5[_0x2080[148]];var _0xb8adx11=_0xb8adx5[_0x2080[149]];var _0xb8adx12=_0xb8adx5[_0x2080[8]][_0x2080[150]]- 20;var _0xb8adx13=_0xb8adx5[_0x2080[8]][_0x2080[151]]- 20;var _0xb8adx14=Math[_0x2080[153]](100* Math[_0x2080[152]](_0xb8adx12/ _0xb8adx10[_0x2080[125]]/ _0xb8adx11,_0xb8adx13/ _0xb8adx10[_0x2080[126]]/ _0xb8adx11))/ 100;_0xb8adx5[_0x2080[137]](_0xb8adx14);_0xb8adx5[_0x2080[8]][_0x2080[154]]= Math[_0x2080[157]](_0xb8adx5[_0x2080[129]][_0x2080[155]][_0x2080[124]]* _0xb8adx14- Math[_0x2080[156]](10,(_0xb8adx5[_0x2080[8]][_0x2080[150]]- _0xb8adx10[_0x2080[125]]* _0xb8adx11* _0xb8adx14)/ 2));_0xb8adx5[_0x2080[8]][_0x2080[158]]= Math[_0x2080[157]](_0xb8adx5[_0x2080[129]][_0x2080[155]][_0x2080[127]]* _0xb8adx14- Math[_0x2080[156]](10,(_0xb8adx5[_0x2080[8]][_0x2080[151]]- _0xb8adx10[_0x2080[126]]* _0xb8adx11* _0xb8adx14)/ 2))}));this[_0x2080[10]](_0x2080[159],mxUtils[_0x2080[27]](this,function(){if(!_0xb8adx5[_0x2080[145]]){this[_0x2080[26]](_0x2080[147])[_0x2080[146]]()};var _0xb8adx10=_0xb8adx5[_0x2080[148]];var _0xb8adx11=_0xb8adx5[_0x2080[149]];var _0xb8adx12=_0xb8adx5[_0x2080[8]][_0x2080[150]]- 20;var _0xb8adx14=Math[_0x2080[153]](100* _0xb8adx12/ _0xb8adx10[_0x2080[125]]/ _0xb8adx11)/ 100;_0xb8adx5[_0x2080[137]](_0xb8adx14);_0xb8adx5[_0x2080[8]][_0x2080[154]]= Math[_0x2080[157]](_0xb8adx5[_0x2080[129]][_0x2080[155]][_0x2080[124]]* _0xb8adx14- Math[_0x2080[156]](10,(_0xb8adx5[_0x2080[8]][_0x2080[150]]- _0xb8adx10[_0x2080[125]]* _0xb8adx11* _0xb8adx14)/ 2));_0xb8adx5[_0x2080[8]][_0x2080[158]]= Math[_0x2080[157]](_0xb8adx5[_0x2080[129]][_0x2080[155]][_0x2080[127]]* _0xb8adx14- Math[_0x2080[156]](10,(_0xb8adx5[_0x2080[8]][_0x2080[151]]- _0xb8adx10[_0x2080[126]]* _0xb8adx11* _0xb8adx14)/ 2))}));this[_0x2080[28]](_0x2080[160], new Action(mxResources[_0x2080[26]](_0x2080[161]),function(){var _0xb8adxc=mxUtils[_0x2080[97]](mxResources[_0x2080[26]](_0x2080[96])+ _0x2080[162],parseInt(_0xb8adx5[_0x2080[110]]()[_0x2080[163]]()* 100));if(_0xb8adxc!= null&& _0xb8adxc[_0x2080[103]]> 0&& !isNaN(parseInt(_0xb8adxc))){_0xb8adx5[_0x2080[137]](parseInt(_0xb8adxc)/ 100)}}));var _0xb8adx15=null;_0xb8adx15= this[_0x2080[10]](_0x2080[164],function(){_0xb8adx5[_0x2080[166]](!_0xb8adx5[_0x2080[165]]());_0xb8adx4[_0x2080[167]]()},null,null,_0x2080[168]);_0xb8adx15[_0x2080[169]](true);_0xb8adx15[_0x2080[170]](function(){return _0xb8adx5[_0x2080[165]]()});_0xb8adx15= this[_0x2080[10]](_0x2080[171],function(){_0xb8adx5[_0x2080[173]][_0x2080[172]]= !_0xb8adx5[_0x2080[173]][_0x2080[172]]});_0xb8adx15[_0x2080[169]](true);_0xb8adx15[_0x2080[170]](function(){return _0xb8adx5[_0x2080[173]][_0x2080[172]]});_0xb8adx15= this[_0x2080[10]](_0x2080[174],function(){_0xb8adx5[_0x2080[176]][_0x2080[177]](!_0xb8adx5[_0x2080[176]][_0x2080[175]]())});_0xb8adx15[_0x2080[169]](true);_0xb8adx15[_0x2080[170]](function(){return _0xb8adx5[_0x2080[176]][_0x2080[175]]()});_0xb8adx15= this[_0x2080[10]](_0x2080[178],function(){_0xb8adx5[_0x2080[179]]= !_0xb8adx5[_0x2080[179]];_0xb8adx5[_0x2080[129]][_0x2080[180]]()});_0xb8adx15[_0x2080[169]](true);_0xb8adx15[_0x2080[170]](function(){return _0xb8adx5[_0x2080[179]]});_0xb8adx15= this[_0x2080[10]](_0x2080[181],function(){_0xb8adx5[_0x2080[181]]= !_0xb8adx5[_0x2080[181]];_0xb8adx4[_0x2080[167]]();if(!_0xb8adx5[_0x2080[181]]){var _0xb8adx16=_0xb8adx5[_0x2080[129]][_0x2080[155]];_0xb8adx5[_0x2080[129]][_0x2080[183]](_0xb8adx16[_0x2080[124]]- _0xb8adx5[_0x2080[8]][_0x2080[154]]/ _0xb8adx5[_0x2080[129]][_0x2080[182]],_0xb8adx16[_0x2080[127]]- _0xb8adx5[_0x2080[8]][_0x2080[158]]/ _0xb8adx5[_0x2080[129]][_0x2080[182]]);_0xb8adx5[_0x2080[8]][_0x2080[154]]= 0;_0xb8adx5[_0x2080[8]][_0x2080[158]]= 0;_0xb8adx5[_0x2080[184]]()}else {var _0xb8adx17=_0xb8adx5[_0x2080[129]][_0x2080[155]][_0x2080[124]];var _0xb8adx18=_0xb8adx5[_0x2080[129]][_0x2080[155]][_0x2080[127]];_0xb8adx5[_0x2080[129]][_0x2080[155]][_0x2080[124]]= 0;_0xb8adx5[_0x2080[129]][_0x2080[155]][_0x2080[127]]= 0;_0xb8adx5[_0x2080[184]]();_0xb8adx5[_0x2080[8]][_0x2080[154]]-= Math[_0x2080[157]](_0xb8adx17* _0xb8adx5[_0x2080[129]][_0x2080[182]]);_0xb8adx5[_0x2080[8]][_0x2080[158]]-= Math[_0x2080[157]](_0xb8adx18* _0xb8adx5[_0x2080[129]][_0x2080[182]])}},!mxClient[_0x2080[185]]);_0xb8adx15[_0x2080[169]](true);_0xb8adx15[_0x2080[170]](function(){return _0xb8adx5[_0x2080[8]][_0x2080[113]][_0x2080[186]]== _0x2080[187]});_0xb8adx15= this[_0x2080[10]](_0x2080[147],mxUtils[_0x2080[27]](this,function(){_0xb8adx5[_0x2080[145]]= !_0xb8adx5[_0x2080[145]];_0xb8adx5[_0x2080[188]]= _0xb8adx5[_0x2080[145]];_0xb8adx5[_0x2080[189]]= _0xb8adx5[_0x2080[188]];_0xb8adx5[_0x2080[129]][_0x2080[190]]();_0xb8adx5[_0x2080[184]]();_0xb8adx4[_0x2080[167]]();_0xb8adx4[_0x2080[192]][_0x2080[191]]();if(mxUtils[_0x2080[193]](_0xb8adx5[_0x2080[8]])){if(_0xb8adx5[_0x2080[145]]){_0xb8adx5[_0x2080[8]][_0x2080[154]]-= 20;_0xb8adx5[_0x2080[8]][_0x2080[158]]-= 20}else {_0xb8adx5[_0x2080[8]][_0x2080[154]]+= 20;_0xb8adx5[_0x2080[8]][_0x2080[158]]+= 20}}}));_0xb8adx15[_0x2080[169]](true);_0xb8adx15[_0x2080[170]](function(){return _0xb8adx5[_0x2080[145]]});_0xb8adx15= this[_0x2080[10]](_0x2080[194],function(){_0xb8adx5[_0x2080[196]](!_0xb8adx5[_0x2080[195]][_0x2080[175]]())},null,null,_0x2080[197]);_0xb8adx15[_0x2080[169]](true);_0xb8adx15[_0x2080[170]](function(){return _0xb8adx5[_0x2080[195]][_0x2080[175]]()});_0xb8adx15= this[_0x2080[10]](_0x2080[198],function(){_0xb8adx5[_0x2080[195]][_0x2080[200]](!_0xb8adx5[_0x2080[195]][_0x2080[199]]())});_0xb8adx15[_0x2080[169]](true);_0xb8adx15[_0x2080[170]](function(){return _0xb8adx5[_0x2080[195]][_0x2080[199]]()});this[_0x2080[10]](_0x2080[201],function(){var _0xb8adx19=_0x2080[95];if(mxResources[_0x2080[203]](mxClient[_0x2080[202]])){_0xb8adx19= _0x2080[204]+ mxClient[_0x2080[202]]};window[_0x2080[11]](RESOURCES_PATH+ _0x2080[205]+ _0xb8adx19+ _0x2080[206])});this[_0x2080[28]](_0x2080[207], new Action(mxResources[_0x2080[26]](_0x2080[207])+ _0x2080[208],function(){_0xb8adx3[_0x2080[9]]( new AboutDialog(_0xb8adx3)[_0x2080[8]],320,280,true,true)},null,null,_0x2080[209]));var _0xb8adx1a=mxUtils[_0x2080[27]](this,function(_0xb8adx1b,_0xb8adx1c){this[_0x2080[10]](_0xb8adx1b,function(){_0xb8adx5[_0x2080[210]](mxConstants.STYLE_FONTSTYLE,_0xb8adx1c)})});_0xb8adx1a(_0x2080[211],mxConstants.FONT_BOLD);_0xb8adx1a(_0x2080[212],mxConstants.FONT_ITALIC);_0xb8adx1a(_0x2080[213],mxConstants.FONT_UNDERLINE);this[_0x2080[10]](_0x2080[214],function(){_0xb8adx5[_0x2080[215]](mxConstants.STYLE_SHADOW)});this[_0x2080[10]](_0x2080[216],function(){_0xb8adx5[_0x2080[215]](mxConstants.STYLE_DASHED)});this[_0x2080[10]](_0x2080[217],function(){_0xb8adx5[_0x2080[215]](mxConstants.STYLE_ROUNDED)});this[_0x2080[10]](_0x2080[218],function(){_0xb8adx5[_0x2080[215]](mxConstants.STYLE_CURVED)});this[_0x2080[10]](_0x2080[113],function(){var _0xb8adx9=_0xb8adx5[_0x2080[57]]();if(_0xb8adx9!= null&& _0xb8adx9[_0x2080[103]]> 0){var _0xb8adx1d=_0xb8adx5[_0x2080[102]]();var _0xb8adx1c=mxUtils[_0x2080[97]](mxResources[_0x2080[26]](_0x2080[96])+ _0x2080[118]+ mxResources[_0x2080[26]](_0x2080[113])+ _0x2080[219],_0xb8adx1d[_0x2080[220]](_0xb8adx9[0])|| _0x2080[95]);if(_0xb8adx1c!= null){_0xb8adx5[_0x2080[221]](_0xb8adx1c,_0xb8adx9)}}});this[_0x2080[10]](_0x2080[222],function(){_0xb8adx5[_0x2080[223]](_0xb8adx5[_0x2080[93]]())});this[_0x2080[10]](_0x2080[224],function(){var _0xb8adx7=_0xb8adx5[_0x2080[93]]();if(_0xb8adx7!= null&& _0xb8adx5[_0x2080[102]]()[_0x2080[225]](_0xb8adx7)){var _0xb8adx1e=_0xb8adx4[_0x2080[6]][_0x2080[227]][_0x2080[226]](_0xb8adx7);if(_0xb8adx1e instanceof mxEdgeHandler){var _0xb8adx16=_0xb8adx5[_0x2080[129]][_0x2080[155]];var _0xb8adx6=_0xb8adx5[_0x2080[129]][_0x2080[182]];var _0xb8adx17=_0xb8adx16[_0x2080[124]];var _0xb8adx18=_0xb8adx16[_0x2080[127]];var _0xb8adx1f=_0xb8adx5[_0x2080[102]]()[_0x2080[228]](_0xb8adx7);var _0xb8adx20=_0xb8adx5[_0x2080[122]](_0xb8adx1f);if(_0xb8adx5[_0x2080[102]]()[_0x2080[121]](_0xb8adx1f)&& _0xb8adx20!= null){_0xb8adx17+= _0xb8adx20[_0x2080[124]];_0xb8adx18+= _0xb8adx20[_0x2080[127]]};_0xb8adx1e[_0x2080[233]](_0xb8adx1e[_0x2080[229]],_0xb8adx5[_0x2080[231]][_0x2080[230]]/ _0xb8adx6- _0xb8adx17,_0xb8adx5[_0x2080[231]][_0x2080[232]]/ _0xb8adx6- _0xb8adx18)}}});this[_0x2080[10]](_0x2080[234],function(){var _0xb8adx21=_0xb8adx3[_0x2080[2]][_0x2080[26]](_0x2080[234]);if(_0xb8adx21[_0x2080[235]]!= null){_0xb8adx21[_0x2080[235]][_0x2080[237]](_0xb8adx21[_0x2080[235]][_0x2080[229]],_0xb8adx21[_0x2080[236]])}});this[_0x2080[10]](_0x2080[238],function(){function _0xb8adx22(_0xb8adxc,_0xb8adx23,_0xb8adx24){var _0xb8adx25=null;var _0xb8adx9=_0xb8adx5[_0x2080[57]]();_0xb8adx5[_0x2080[102]]()[_0x2080[101]]();try{if(_0xb8adx9[_0x2080[103]]== 0){var _0xb8adx26=_0xb8adx5[_0x2080[239]]();_0xb8adx9= [_0xb8adx5[_0x2080[241]](_0xb8adx5[_0x2080[240]](),null,_0x2080[95],_0xb8adx26,_0xb8adx26,_0xb8adx23,_0xb8adx24)];_0xb8adx25= _0xb8adx9};_0xb8adx5[_0x2080[114]](mxConstants.STYLE_IMAGE,_0xb8adxc,_0xb8adx9);_0xb8adx5[_0x2080[114]](mxConstants.STYLE_SHAPE,_0x2080[238],_0xb8adx9);if(_0xb8adx5[_0x2080[242]]()== 1){if(_0xb8adx23!= null&& _0xb8adx24!= null){var _0xb8adx7=_0xb8adx9[0];var _0xb8adxd=_0xb8adx5[_0x2080[102]]()[_0x2080[243]](_0xb8adx7);if(_0xb8adxd!= null){_0xb8adxd= _0xb8adxd[_0x2080[123]]();_0xb8adxd[_0x2080[125]]= _0xb8adx23;_0xb8adxd[_0x2080[126]]= _0xb8adx24;_0xb8adx5[_0x2080[102]]()[_0x2080[128]](_0xb8adx7,_0xb8adxd)}}}}finally{_0xb8adx5[_0x2080[102]]()[_0x2080[107]]()};if(_0xb8adx25!= null){_0xb8adx5[_0x2080[59]](_0xb8adx25);_0xb8adx5[_0x2080[244]](_0xb8adx25[0])}}var _0xb8adxc=_0x2080[95];var _0xb8adxb=_0xb8adx5[_0x2080[110]]()[_0x2080[109]](_0xb8adx5[_0x2080[93]]());if(_0xb8adxb!= null){_0xb8adxc= _0xb8adxb[_0x2080[113]][mxConstants[_0x2080[245]]]|| _0xb8adxc};_0xb8adxc= mxUtils[_0x2080[97]](mxResources[_0x2080[26]](_0x2080[96])+ _0x2080[118]+ mxResources[_0x2080[26]](_0x2080[246])+ _0x2080[219],_0xb8adxc);if(_0xb8adxc!= null){if(_0xb8adxc[_0x2080[103]]> 0){var _0xb8adx27= new Image();_0xb8adx27[_0x2080[247]]= function(){_0xb8adx22(_0xb8adxc,_0xb8adx27[_0x2080[125]],_0xb8adx27[_0x2080[126]])};_0xb8adx27[_0x2080[248]]= function(){mxUtils[_0x2080[250]](mxResources[_0x2080[26]](_0x2080[249]))};_0xb8adx27[_0x2080[251]]= _0xb8adxc}}})};Actions[_0x2080[4]][_0x2080[10]]= function(_0xb8adx1b,_0xb8adx28,_0xb8adx29,_0xb8adx2a,_0xb8adx2b){return this[_0x2080[28]](_0xb8adx1b, new Action(mxResources[_0x2080[26]](_0xb8adx1b),_0xb8adx28,_0xb8adx29,_0xb8adx2a,_0xb8adx2b))};Actions[_0x2080[4]][_0x2080[28]]= function(_0xb8adx2c,_0xb8adx15){this[_0x2080[2]][_0xb8adx2c]= _0xb8adx15;return _0xb8adx15};Actions[_0x2080[4]][_0x2080[26]]= function(_0xb8adx2c){return this[_0x2080[2]][_0xb8adx2c]};function Action(_0xb8adx2e,_0xb8adx28,_0xb8adx29,_0xb8adx2a,_0xb8adx2b){mxEventSource[_0x2080[252]](this);this[_0x2080[253]]= _0xb8adx2e;this[_0x2080[146]]= _0xb8adx28;this[_0x2080[254]]= (_0xb8adx29!= null)?_0xb8adx29:true;this[_0x2080[255]]= _0xb8adx2a;this[_0x2080[256]]= _0xb8adx2b}mxUtils[_0x2080[257]](Action,mxEventSource);Action[_0x2080[4]][_0x2080[177]]= function(_0xb8adxc){if(this[_0x2080[254]]!= _0xb8adxc){this[_0x2080[254]]= _0xb8adxc;this[_0x2080[259]]( new mxEventObject(_0x2080[258]))}};Action[_0x2080[4]][_0x2080[169]]= function(_0xb8adxc){this[_0x2080[260]]= _0xb8adxc};Action[_0x2080[4]][_0x2080[170]]= function(_0xb8adx28){this[_0x2080[261]]= _0xb8adx28};Action[_0x2080[4]][_0x2080[262]]= function(){return this[_0x2080[261]]()} \ No newline at end of file +var _0x6059=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x64\x69\x74\x6F\x72\x55\x69","\x61\x63\x74\x69\x6F\x6E\x73","\x69\x6E\x69\x74","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x65\x64\x69\x74\x6F\x72","\x67\x72\x61\x70\x68","\x6E\x65\x77","\x63\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x73\x68\x6F\x77\x44\x69\x61\x6C\x6F\x67","\x61\x64\x64\x41\x63\x74\x69\x6F\x6E","\x6F\x70\x65\x6E","\x73\x61\x76\x65","\x73\x61\x76\x65\x46\x69\x6C\x65","\x43\x74\x72\x6C\x2B\x53","\x73\x61\x76\x65\x41\x73","\x43\x74\x72\x6C\x2B\x53\x68\x69\x66\x74\x2D\x53","\x70\x75\x62\x6C\x69\x73\x68","\x70\x75\x62\x6C\x69\x73\x68\x46\x69\x6C\x65","\x43\x74\x72\x6C\x2B\x53\x68\x69\x66\x74\x2B\x50","\x76\x61\x72\x69\x61\x62\x6C\x65","\x69\x6D\x70\x6F\x72\x74","\x65\x78\x70\x6F\x72\x74","\x43\x74\x72\x6C\x2B\x45","\x65\x64\x69\x74\x46\x69\x6C\x65","\x65\x64\x69\x74","\x67\x65\x74","\x62\x69\x6E\x64","\x70\x75\x74","\x72\x65\x6E\x61\x6D\x65","\x70\x72\x69\x6E\x74","\x70\x72\x69\x6E\x74\x53\x63\x72\x65\x65\x6E","\x73\x70\x72\x69\x74\x65\x2D\x70\x72\x69\x6E\x74","\x43\x74\x72\x6C\x2B\x50","\x70\x72\x65\x76\x69\x65\x77","\x73\x68\x6F\x77","\x75\x6E\x64\x6F","\x75\x6E\x64\x6F\x4D\x61\x6E\x61\x67\x65\x72","\x73\x70\x72\x69\x74\x65\x2D\x75\x6E\x64\x6F","\x43\x74\x72\x6C\x2B\x5A","\x72\x65\x64\x6F","\x73\x70\x72\x69\x74\x65\x2D\x72\x65\x64\x6F","\x43\x74\x72\x6C\x2B\x59","\x63\x75\x74","\x73\x70\x72\x69\x74\x65\x2D\x63\x75\x74","\x43\x74\x72\x6C\x2B\x58","\x63\x6F\x70\x79","\x73\x70\x72\x69\x74\x65\x2D\x63\x6F\x70\x79","\x43\x74\x72\x6C\x2B\x43","\x70\x61\x73\x74\x65","\x73\x70\x72\x69\x74\x65\x2D\x70\x61\x73\x74\x65","\x43\x74\x72\x6C\x2B\x56","\x64\x65\x6C\x65\x74\x65","\x72\x65\x6D\x6F\x76\x65\x43\x65\x6C\x6C\x73","\x44\x65\x6C\x65\x74\x65","\x64\x75\x70\x6C\x69\x63\x61\x74\x65","\x67\x72\x69\x64\x53\x69\x7A\x65","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C\x73","\x6D\x6F\x76\x65\x43\x65\x6C\x6C\x73","\x73\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C\x73","\x43\x74\x72\x6C\x2B\x44","\x73\x65\x6C\x65\x63\x74\x56\x65\x72\x74\x69\x63\x65\x73","\x43\x74\x72\x6C\x2B\x53\x68\x69\x66\x74\x2B\x56","\x73\x65\x6C\x65\x63\x74\x45\x64\x67\x65\x73","\x43\x74\x72\x6C\x2B\x53\x68\x69\x66\x74\x2B\x45","\x73\x65\x6C\x65\x63\x74\x41\x6C\x6C","\x43\x74\x72\x6C\x2B\x41","\x68\x6F\x6D\x65","\x48\x6F\x6D\x65","\x65\x78\x69\x74\x47\x72\x6F\x75\x70","\x50\x61\x67\x65\x20\x55\x70","\x65\x6E\x74\x65\x72\x47\x72\x6F\x75\x70","\x50\x61\x67\x65\x20\x44\x6F\x77\x6E","\x65\x78\x70\x61\x6E\x64","\x66\x6F\x6C\x64\x43\x65\x6C\x6C\x73","\x45\x6E\x74\x65\x72","\x63\x6F\x6C\x6C\x61\x70\x73\x65","\x42\x61\x63\x6B\x73\x70\x61\x63\x65","\x74\x6F\x46\x72\x6F\x6E\x74","\x6F\x72\x64\x65\x72\x43\x65\x6C\x6C\x73","\x43\x74\x72\x6C\x2B\x46","\x74\x6F\x42\x61\x63\x6B","\x43\x74\x72\x6C\x2B\x42","\x67\x72\x6F\x75\x70","\x67\x72\x6F\x75\x70\x43\x65\x6C\x6C\x73","\x73\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C","\x43\x74\x72\x6C\x2B\x47","\x75\x6E\x67\x72\x6F\x75\x70","\x75\x6E\x67\x72\x6F\x75\x70\x43\x65\x6C\x6C\x73","\x43\x74\x72\x6C\x2B\x55","\x72\x65\x6D\x6F\x76\x65\x46\x72\x6F\x6D\x47\x72\x6F\x75\x70","\x72\x65\x6D\x6F\x76\x65\x43\x65\x6C\x6C\x73\x46\x72\x6F\x6D\x50\x61\x72\x65\x6E\x74","\x65\x64\x69\x74\x4C\x69\x6E\x6B","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C","\x67\x65\x74\x4C\x69\x6E\x6B\x46\x6F\x72\x43\x65\x6C\x6C","","\x65\x6E\x74\x65\x72\x56\x61\x6C\x75\x65","\x70\x72\x6F\x6D\x70\x74","\x73\x65\x74\x4C\x69\x6E\x6B\x46\x6F\x72\x43\x65\x6C\x6C","\x6F\x70\x65\x6E\x4C\x69\x6E\x6B","\x61\x75\x74\x6F\x73\x69\x7A\x65","\x62\x65\x67\x69\x6E\x55\x70\x64\x61\x74\x65","\x67\x65\x74\x4D\x6F\x64\x65\x6C","\x6C\x65\x6E\x67\x74\x68","\x67\x65\x74\x43\x68\x69\x6C\x64\x43\x6F\x75\x6E\x74","\x75\x70\x64\x61\x74\x65\x47\x72\x6F\x75\x70\x42\x6F\x75\x6E\x64\x73","\x75\x70\x64\x61\x74\x65\x43\x65\x6C\x6C\x53\x69\x7A\x65","\x65\x6E\x64\x55\x70\x64\x61\x74\x65","\x77\x6F\x72\x64\x57\x72\x61\x70","\x67\x65\x74\x53\x74\x61\x74\x65","\x67\x65\x74\x56\x69\x65\x77","\x77\x72\x61\x70","\x53\x54\x59\x4C\x45\x5F\x57\x48\x49\x54\x45\x5F\x53\x50\x41\x43\x45","\x73\x74\x79\x6C\x65","\x73\x65\x74\x43\x65\x6C\x6C\x53\x74\x79\x6C\x65\x73","\x72\x6F\x74\x61\x74\x69\x6F\x6E","\x30","\x53\x54\x59\x4C\x45\x5F\x52\x4F\x54\x41\x54\x49\x4F\x4E","\x20\x28","\x20\x30\x2D\x33\x36\x30\x29","\x74\x69\x6C\x74","\x69\x73\x56\x65\x72\x74\x65\x78","\x67\x65\x74\x43\x65\x6C\x6C\x47\x65\x6F\x6D\x65\x74\x72\x79","\x63\x6C\x6F\x6E\x65","\x78","\x77\x69\x64\x74\x68","\x68\x65\x69\x67\x68\x74","\x79","\x73\x65\x74\x47\x65\x6F\x6D\x65\x74\x72\x79","\x76\x69\x65\x77","\x53\x54\x59\x4C\x45\x5F\x44\x49\x52\x45\x43\x54\x49\x4F\x4E","\x65\x61\x73\x74","\x73\x6F\x75\x74\x68","\x77\x65\x73\x74","\x6E\x6F\x72\x74\x68","\x43\x74\x72\x6C\x2B\x52","\x61\x63\x74\x75\x61\x6C\x53\x69\x7A\x65","\x7A\x6F\x6F\x6D\x54\x6F","\x7A\x6F\x6F\x6D\x49\x6E","\x41\x64\x64","\x7A\x6F\x6F\x6D\x4F\x75\x74","\x53\x75\x62\x74\x72\x61\x63\x74","\x66\x69\x74\x57\x69\x6E\x64\x6F\x77","\x66\x69\x74","\x66\x69\x74\x50\x61\x67\x65","\x70\x61\x67\x65\x56\x69\x73\x69\x62\x6C\x65","\x66\x75\x6E\x63\x74","\x70\x61\x67\x65\x56\x69\x65\x77","\x70\x61\x67\x65\x46\x6F\x72\x6D\x61\x74","\x70\x61\x67\x65\x53\x63\x61\x6C\x65","\x63\x6C\x69\x65\x6E\x74\x57\x69\x64\x74\x68","\x63\x6C\x69\x65\x6E\x74\x48\x65\x69\x67\x68\x74","\x6D\x69\x6E","\x66\x6C\x6F\x6F\x72","\x73\x63\x72\x6F\x6C\x6C\x4C\x65\x66\x74","\x74\x72\x61\x6E\x73\x6C\x61\x74\x65","\x6D\x61\x78","\x72\x6F\x75\x6E\x64","\x73\x63\x72\x6F\x6C\x6C\x54\x6F\x70","\x66\x69\x74\x50\x61\x67\x65\x57\x69\x64\x74\x68","\x63\x75\x73\x74\x6F\x6D\x5A\x6F\x6F\x6D","\x63\x75\x73\x74\x6F\x6D","\x20\x28\x25\x29","\x67\x65\x74\x53\x63\x61\x6C\x65","\x67\x72\x69\x64","\x69\x73\x47\x72\x69\x64\x45\x6E\x61\x62\x6C\x65\x64","\x73\x65\x74\x47\x72\x69\x64\x45\x6E\x61\x62\x6C\x65\x64","\x75\x70\x64\x61\x74\x65\x47\x72\x61\x70\x68\x43\x6F\x6D\x70\x6F\x6E\x65\x6E\x74\x73","\x43\x74\x72\x6C\x2B\x53\x68\x69\x66\x74\x2B\x47","\x73\x65\x74\x54\x6F\x67\x67\x6C\x65\x41\x63\x74\x69\x6F\x6E","\x73\x65\x74\x53\x65\x6C\x65\x63\x74\x65\x64\x43\x61\x6C\x6C\x62\x61\x63\x6B","\x67\x75\x69\x64\x65\x73","\x67\x75\x69\x64\x65\x73\x45\x6E\x61\x62\x6C\x65\x64","\x67\x72\x61\x70\x68\x48\x61\x6E\x64\x6C\x65\x72","\x74\x6F\x6F\x6C\x74\x69\x70\x73","\x69\x73\x45\x6E\x61\x62\x6C\x65\x64","\x74\x6F\x6F\x6C\x74\x69\x70\x48\x61\x6E\x64\x6C\x65\x72","\x73\x65\x74\x45\x6E\x61\x62\x6C\x65\x64","\x6E\x61\x76\x69\x67\x61\x74\x69\x6F\x6E","\x66\x6F\x6C\x64\x69\x6E\x67\x45\x6E\x61\x62\x6C\x65\x64","\x72\x65\x76\x61\x6C\x69\x64\x61\x74\x65","\x73\x63\x72\x6F\x6C\x6C\x62\x61\x72\x73","\x73\x63\x61\x6C\x65","\x73\x65\x74\x54\x72\x61\x6E\x73\x6C\x61\x74\x65","\x73\x69\x7A\x65\x44\x69\x64\x43\x68\x61\x6E\x67\x65","\x49\x53\x5F\x54\x4F\x55\x43\x48","\x6F\x76\x65\x72\x66\x6C\x6F\x77","\x61\x75\x74\x6F","\x70\x61\x67\x65\x42\x72\x65\x61\x6B\x73\x56\x69\x73\x69\x62\x6C\x65","\x70\x72\x65\x66\x65\x72\x50\x61\x67\x65\x53\x69\x7A\x65","\x76\x61\x6C\x69\x64\x61\x74\x65","\x75\x70\x64\x61\x74\x65","\x6F\x75\x74\x6C\x69\x6E\x65","\x68\x61\x73\x53\x63\x72\x6F\x6C\x6C\x62\x61\x72\x73","\x63\x6F\x6E\x6E\x65\x63\x74","\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x48\x61\x6E\x64\x6C\x65\x72","\x73\x65\x74\x43\x6F\x6E\x6E\x65\x63\x74\x61\x62\x6C\x65","\x43\x74\x72\x6C\x2B\x51","\x63\x6F\x70\x79\x43\x6F\x6E\x6E\x65\x63\x74","\x69\x73\x43\x72\x65\x61\x74\x65\x54\x61\x72\x67\x65\x74","\x73\x65\x74\x43\x72\x65\x61\x74\x65\x54\x61\x72\x67\x65\x74","\x68\x65\x6C\x70","\x6C\x61\x6E\x67\x75\x61\x67\x65","\x69\x73\x4C\x61\x6E\x67\x75\x61\x67\x65\x53\x75\x70\x70\x6F\x72\x74\x65\x64","\x5F","\x2F\x68\x65\x6C\x70","\x2E\x68\x74\x6D\x6C","\x61\x62\x6F\x75\x74","\x20\x43\x61\x6C\x6C\x79\x20\x53\x71\x75\x61\x72\x65","\x46\x31","\x74\x6F\x67\x67\x6C\x65\x43\x65\x6C\x6C\x53\x74\x79\x6C\x65\x46\x6C\x61\x67\x73","\x62\x6F\x6C\x64","\x69\x74\x61\x6C\x69\x63","\x75\x6E\x64\x65\x72\x6C\x69\x6E\x65","\x73\x68\x61\x64\x6F\x77","\x74\x6F\x67\x67\x6C\x65\x43\x65\x6C\x6C\x53\x74\x79\x6C\x65\x73","\x64\x61\x73\x68\x65\x64","\x72\x6F\x75\x6E\x64\x65\x64","\x63\x75\x72\x76\x65\x64","\x29","\x67\x65\x74\x53\x74\x79\x6C\x65","\x73\x65\x74\x43\x65\x6C\x6C\x53\x74\x79\x6C\x65","\x73\x65\x74\x41\x73\x44\x65\x66\x61\x75\x6C\x74\x45\x64\x67\x65","\x73\x65\x74\x44\x65\x66\x61\x75\x6C\x74\x45\x64\x67\x65","\x61\x64\x64\x57\x61\x79\x70\x6F\x69\x6E\x74","\x69\x73\x45\x64\x67\x65","\x67\x65\x74\x48\x61\x6E\x64\x6C\x65\x72","\x73\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C\x73\x48\x61\x6E\x64\x6C\x65\x72","\x67\x65\x74\x50\x61\x72\x65\x6E\x74","\x73\x74\x61\x74\x65","\x74\x72\x69\x67\x67\x65\x72\x58","\x70\x61\x6E\x6E\x69\x6E\x67\x48\x61\x6E\x64\x6C\x65\x72","\x74\x72\x69\x67\x67\x65\x72\x59","\x61\x64\x64\x50\x6F\x69\x6E\x74\x41\x74","\x72\x65\x6D\x6F\x76\x65\x57\x61\x79\x70\x6F\x69\x6E\x74","\x68\x61\x6E\x64\x6C\x65\x72","\x69\x6E\x64\x65\x78","\x72\x65\x6D\x6F\x76\x65\x50\x6F\x69\x6E\x74","\x69\x6D\x61\x67\x65","\x67\x65\x74\x47\x72\x69\x64\x53\x69\x7A\x65","\x67\x65\x74\x44\x65\x66\x61\x75\x6C\x74\x50\x61\x72\x65\x6E\x74","\x69\x6E\x73\x65\x72\x74\x56\x65\x72\x74\x65\x78","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x6F\x75\x6E\x74","\x67\x65\x74\x47\x65\x6F\x6D\x65\x74\x72\x79","\x73\x63\x72\x6F\x6C\x6C\x43\x65\x6C\x6C\x54\x6F\x56\x69\x73\x69\x62\x6C\x65","\x53\x54\x59\x4C\x45\x5F\x49\x4D\x41\x47\x45","\x75\x72\x6C","\x6F\x6E\x6C\x6F\x61\x64","\x6F\x6E\x65\x72\x72\x6F\x72","\x66\x69\x6C\x65\x4E\x6F\x74\x46\x6F\x75\x6E\x64","\x61\x6C\x65\x72\x74","\x73\x72\x63","\x63\x61\x6C\x6C","\x6C\x61\x62\x65\x6C","\x65\x6E\x61\x62\x6C\x65\x64","\x69\x63\x6F\x6E\x43\x6C\x73","\x73\x68\x6F\x72\x74\x63\x75\x74","\x65\x78\x74\x65\x6E\x64","\x73\x74\x61\x74\x65\x43\x68\x61\x6E\x67\x65\x64","\x66\x69\x72\x65\x45\x76\x65\x6E\x74","\x74\x6F\x67\x67\x6C\x65\x41\x63\x74\x69\x6F\x6E","\x73\x65\x6C\x65\x63\x74\x65\x64\x43\x61\x6C\x6C\x62\x61\x63\x6B","\x69\x73\x53\x65\x6C\x65\x63\x74\x65\x64"];_0x6059[0];function Actions(_0xef9ex2){this[_0x6059[1]]= _0xef9ex2;this[_0x6059[2]]= new Object();this[_0x6059[3]]()}Actions[_0x6059[4]][_0x6059[3]]= function(){var _0xef9ex3=this[_0x6059[1]];var _0xef9ex4=_0xef9ex3[_0x6059[5]];var _0xef9ex5=_0xef9ex4[_0x6059[6]];this[_0x6059[10]](_0x6059[7],function(){_0xef9ex3[_0x6059[9]]( new NewDialog(_0xef9ex3)[_0x6059[8]],300,180,true,true)});this[_0x6059[10]](_0x6059[11],function(){_0xef9ex3[_0x6059[9]]( new OpenDialog(_0xef9ex3)[_0x6059[8]],300,180,true,true)});this[_0x6059[10]](_0x6059[12],function(){_0xef9ex3[_0x6059[13]](false)},null,null,_0x6059[14]);this[_0x6059[10]](_0x6059[15],function(){_0xef9ex3[_0x6059[13]](true)},null,null,_0x6059[16]);this[_0x6059[10]](_0x6059[17],function(){_0xef9ex3[_0x6059[18]](false)},null,null,_0x6059[19]);this[_0x6059[10]](_0x6059[20],function(){_0xef9ex3[_0x6059[9]]( new VariableDialog(_0xef9ex3)[_0x6059[8]],300,180,true,true)});this[_0x6059[10]](_0x6059[21],function(){_0xef9ex3[_0x6059[9]]( new ImportDialog(_0xef9ex3)[_0x6059[8]],300,200,true,true)});this[_0x6059[10]](_0x6059[22],function(){_0xef9ex3[_0x6059[9]]( new ExportDialog(_0xef9ex3)[_0x6059[8]],300,200,true,true)},null,null,_0x6059[23]);this[_0x6059[28]](_0x6059[24], new Action(mxResources[_0x6059[26]](_0x6059[25]),mxUtils[_0x6059[27]](this,function(){this[_0x6059[1]][_0x6059[9]]( new EditFileDialog(_0xef9ex3)[_0x6059[8]],620,420,true,true)})));this[_0x6059[10]](_0x6059[29],function(){_0xef9ex3[_0x6059[9]]( new RenameDialog(_0xef9ex3)[_0x6059[8]],300,180,true,true)});this[_0x6059[10]](_0x6059[30],function(){mxUtils[_0x6059[31]](_0xef9ex5)},null,_0x6059[32],_0x6059[33]);this[_0x6059[10]](_0x6059[34],function(){mxUtils[_0x6059[35]](_0xef9ex5,null,10,10)});this[_0x6059[10]](_0x6059[36],function(){_0xef9ex4[_0x6059[37]][_0x6059[36]]()},null,_0x6059[38],_0x6059[39]);this[_0x6059[10]](_0x6059[40],function(){_0xef9ex4[_0x6059[37]][_0x6059[40]]()},null,_0x6059[41],_0x6059[42]);this[_0x6059[10]](_0x6059[43],function(){mxClipboard[_0x6059[43]](_0xef9ex5)},null,_0x6059[44],_0x6059[45]);this[_0x6059[10]](_0x6059[46],function(){mxClipboard[_0x6059[46]](_0xef9ex5)},null,_0x6059[47],_0x6059[48]);this[_0x6059[10]](_0x6059[49],function(){mxClipboard[_0x6059[49]](_0xef9ex5)},false,_0x6059[50],_0x6059[51]);this[_0x6059[10]](_0x6059[52],function(){_0xef9ex5[_0x6059[53]]()},null,null,_0x6059[54]);this[_0x6059[10]](_0x6059[55],function(){var _0xef9ex6=_0xef9ex5[_0x6059[56]];_0xef9ex5[_0x6059[59]](_0xef9ex5[_0x6059[58]](_0xef9ex5[_0x6059[57]](),_0xef9ex6,_0xef9ex6,true))},null,null,_0x6059[60]);this[_0x6059[10]](_0x6059[61],function(){_0xef9ex5[_0x6059[61]]()},null,null,_0x6059[62]);this[_0x6059[10]](_0x6059[63],function(){_0xef9ex5[_0x6059[63]]()},null,null,_0x6059[64]);this[_0x6059[10]](_0x6059[65],function(){_0xef9ex5[_0x6059[65]]()},null,null,_0x6059[66]);this[_0x6059[10]](_0x6059[67],function(){_0xef9ex5[_0x6059[67]]()},null,null,_0x6059[68]);this[_0x6059[10]](_0x6059[69],function(){_0xef9ex5[_0x6059[69]]()},null,null,_0x6059[70]);this[_0x6059[10]](_0x6059[71],function(){_0xef9ex5[_0x6059[71]]()},null,null,_0x6059[72]);this[_0x6059[10]](_0x6059[73],function(){_0xef9ex5[_0x6059[74]](false)},null,null,_0x6059[75]);this[_0x6059[10]](_0x6059[76],function(){_0xef9ex5[_0x6059[74]](true)},null,null,_0x6059[77]);this[_0x6059[10]](_0x6059[78],function(){_0xef9ex5[_0x6059[79]](false)},null,null,_0x6059[80]);this[_0x6059[10]](_0x6059[81],function(){_0xef9ex5[_0x6059[79]](true)},null,null,_0x6059[82]);this[_0x6059[10]](_0x6059[83],function(){_0xef9ex5[_0x6059[85]](_0xef9ex5[_0x6059[84]](null,0))},null,null,_0x6059[86]);this[_0x6059[10]](_0x6059[87],function(){_0xef9ex5[_0x6059[59]](_0xef9ex5[_0x6059[88]]())},null,null,_0x6059[89]);this[_0x6059[10]](_0x6059[90],function(){_0xef9ex5[_0x6059[91]]()});this[_0x6059[10]](_0x6059[92],function(){var _0xef9ex7=_0xef9ex5[_0x6059[93]]();var _0xef9ex8=_0xef9ex5[_0x6059[94]](_0xef9ex7);if(_0xef9ex8== null){_0xef9ex8= _0x6059[95]};_0xef9ex8= mxUtils[_0x6059[97]](mxResources[_0x6059[26]](_0x6059[96]),_0xef9ex8);if(_0xef9ex8!= null){_0xef9ex5[_0x6059[98]](_0xef9ex7,_0xef9ex8)}});this[_0x6059[10]](_0x6059[99],function(){var _0xef9ex7=_0xef9ex5[_0x6059[93]]();var _0xef9ex8=_0xef9ex5[_0x6059[94]](_0xef9ex7);if(_0xef9ex8!= null){window[_0x6059[11]](_0xef9ex8)}});this[_0x6059[10]](_0x6059[100],function(){var _0xef9ex9=_0xef9ex5[_0x6059[57]]();if(_0xef9ex9!= null){_0xef9ex5[_0x6059[102]]()[_0x6059[101]]();try{for(var _0xef9exa=0;_0xef9exa< _0xef9ex9[_0x6059[103]];_0xef9exa++){var _0xef9ex7=_0xef9ex9[_0xef9exa];if(_0xef9ex5[_0x6059[102]]()[_0x6059[104]](_0xef9ex7)){_0xef9ex5[_0x6059[105]]([_0xef9ex7],20)}else {_0xef9ex5[_0x6059[106]](_0xef9ex7)}}}finally{_0xef9ex5[_0x6059[102]]()[_0x6059[107]]()}}});this[_0x6059[10]](_0x6059[108],function(){var _0xef9exb=_0xef9ex5[_0x6059[110]]()[_0x6059[109]](_0xef9ex5[_0x6059[93]]());var _0xef9exc=_0x6059[111];if(_0xef9exb!= null&& _0xef9exb[_0x6059[113]][mxConstants[_0x6059[112]]]== _0x6059[111]){_0xef9exc= null};_0xef9ex5[_0x6059[114]](mxConstants.STYLE_WHITE_SPACE,_0xef9exc)});this[_0x6059[10]](_0x6059[115],function(){var _0xef9exc=_0x6059[116];var _0xef9exb=_0xef9ex5[_0x6059[110]]()[_0x6059[109]](_0xef9ex5[_0x6059[93]]());if(_0xef9exb!= null){_0xef9exc= _0xef9exb[_0x6059[113]][mxConstants[_0x6059[117]]]|| _0xef9exc};_0xef9exc= mxUtils[_0x6059[97]](mxResources[_0x6059[26]](_0x6059[96])+ _0x6059[118]+ mxResources[_0x6059[26]](_0x6059[115])+ _0x6059[119],_0xef9exc);if(_0xef9exc!= null){_0xef9ex5[_0x6059[114]](mxConstants.STYLE_ROTATION,_0xef9exc)}});this[_0x6059[10]](_0x6059[120],function(){var _0xef9ex9=_0xef9ex5[_0x6059[57]]();if(_0xef9ex9!= null){_0xef9ex5[_0x6059[102]]()[_0x6059[101]]();try{for(var _0xef9exa=0;_0xef9exa< _0xef9ex9[_0x6059[103]];_0xef9exa++){var _0xef9ex7=_0xef9ex9[_0xef9exa];if(_0xef9ex5[_0x6059[102]]()[_0x6059[121]](_0xef9ex7)&& _0xef9ex5[_0x6059[102]]()[_0x6059[104]](_0xef9ex7)== 0){var _0xef9exd=_0xef9ex5[_0x6059[122]](_0xef9ex7);if(_0xef9exd!= null){_0xef9exd= _0xef9exd[_0x6059[123]]();_0xef9exd[_0x6059[124]]+= _0xef9exd[_0x6059[125]]/ 2- _0xef9exd[_0x6059[126]]/ 2;_0xef9exd[_0x6059[127]]+= _0xef9exd[_0x6059[126]]/ 2- _0xef9exd[_0x6059[125]]/ 2;var _0xef9exe=_0xef9exd[_0x6059[125]];_0xef9exd[_0x6059[125]]= _0xef9exd[_0x6059[126]];_0xef9exd[_0x6059[126]]= _0xef9exe;_0xef9ex5[_0x6059[102]]()[_0x6059[128]](_0xef9ex7,_0xef9exd);var _0xef9exb=_0xef9ex5[_0x6059[129]][_0x6059[109]](_0xef9ex7);if(_0xef9exb!= null){var _0xef9exf=_0xef9exb[_0x6059[113]][mxConstants[_0x6059[130]]]|| _0x6059[131];if(_0xef9exf== _0x6059[131]){_0xef9exf= _0x6059[132]}else {if(_0xef9exf== _0x6059[132]){_0xef9exf= _0x6059[133]}else {if(_0xef9exf== _0x6059[133]){_0xef9exf= _0x6059[134]}else {if(_0xef9exf== _0x6059[134]){_0xef9exf= _0x6059[131]}}}};_0xef9ex5[_0x6059[114]](mxConstants.STYLE_DIRECTION,_0xef9exf,[_0xef9ex7])}}}}}finally{_0xef9ex5[_0x6059[102]]()[_0x6059[107]]()}}},null,null,_0x6059[135]);this[_0x6059[10]](_0x6059[136],function(){_0xef9ex5[_0x6059[137]](1)});this[_0x6059[10]](_0x6059[138],function(){_0xef9ex5[_0x6059[138]]()},null,null,_0x6059[139]);this[_0x6059[10]](_0x6059[140],function(){_0xef9ex5[_0x6059[140]]()},null,null,_0x6059[141]);this[_0x6059[10]](_0x6059[142],function(){_0xef9ex5[_0x6059[143]]()});this[_0x6059[10]](_0x6059[144],mxUtils[_0x6059[27]](this,function(){if(!_0xef9ex5[_0x6059[145]]){this[_0x6059[26]](_0x6059[147])[_0x6059[146]]()};var _0xef9ex10=_0xef9ex5[_0x6059[148]];var _0xef9ex11=_0xef9ex5[_0x6059[149]];var _0xef9ex12=_0xef9ex5[_0x6059[8]][_0x6059[150]]- 20;var _0xef9ex13=_0xef9ex5[_0x6059[8]][_0x6059[151]]- 20;var _0xef9ex14=Math[_0x6059[153]](100* Math[_0x6059[152]](_0xef9ex12/ _0xef9ex10[_0x6059[125]]/ _0xef9ex11,_0xef9ex13/ _0xef9ex10[_0x6059[126]]/ _0xef9ex11))/ 100;_0xef9ex5[_0x6059[137]](_0xef9ex14);_0xef9ex5[_0x6059[8]][_0x6059[154]]= Math[_0x6059[157]](_0xef9ex5[_0x6059[129]][_0x6059[155]][_0x6059[124]]* _0xef9ex14- Math[_0x6059[156]](10,(_0xef9ex5[_0x6059[8]][_0x6059[150]]- _0xef9ex10[_0x6059[125]]* _0xef9ex11* _0xef9ex14)/ 2));_0xef9ex5[_0x6059[8]][_0x6059[158]]= Math[_0x6059[157]](_0xef9ex5[_0x6059[129]][_0x6059[155]][_0x6059[127]]* _0xef9ex14- Math[_0x6059[156]](10,(_0xef9ex5[_0x6059[8]][_0x6059[151]]- _0xef9ex10[_0x6059[126]]* _0xef9ex11* _0xef9ex14)/ 2))}));this[_0x6059[10]](_0x6059[159],mxUtils[_0x6059[27]](this,function(){if(!_0xef9ex5[_0x6059[145]]){this[_0x6059[26]](_0x6059[147])[_0x6059[146]]()};var _0xef9ex10=_0xef9ex5[_0x6059[148]];var _0xef9ex11=_0xef9ex5[_0x6059[149]];var _0xef9ex12=_0xef9ex5[_0x6059[8]][_0x6059[150]]- 20;var _0xef9ex14=Math[_0x6059[153]](100* _0xef9ex12/ _0xef9ex10[_0x6059[125]]/ _0xef9ex11)/ 100;_0xef9ex5[_0x6059[137]](_0xef9ex14);_0xef9ex5[_0x6059[8]][_0x6059[154]]= Math[_0x6059[157]](_0xef9ex5[_0x6059[129]][_0x6059[155]][_0x6059[124]]* _0xef9ex14- Math[_0x6059[156]](10,(_0xef9ex5[_0x6059[8]][_0x6059[150]]- _0xef9ex10[_0x6059[125]]* _0xef9ex11* _0xef9ex14)/ 2));_0xef9ex5[_0x6059[8]][_0x6059[158]]= Math[_0x6059[157]](_0xef9ex5[_0x6059[129]][_0x6059[155]][_0x6059[127]]* _0xef9ex14- Math[_0x6059[156]](10,(_0xef9ex5[_0x6059[8]][_0x6059[151]]- _0xef9ex10[_0x6059[126]]* _0xef9ex11* _0xef9ex14)/ 2))}));this[_0x6059[28]](_0x6059[160], new Action(mxResources[_0x6059[26]](_0x6059[161]),function(){var _0xef9exc=mxUtils[_0x6059[97]](mxResources[_0x6059[26]](_0x6059[96])+ _0x6059[162],parseInt(_0xef9ex5[_0x6059[110]]()[_0x6059[163]]()* 100));if(_0xef9exc!= null&& _0xef9exc[_0x6059[103]]> 0&& !isNaN(parseInt(_0xef9exc))){_0xef9ex5[_0x6059[137]](parseInt(_0xef9exc)/ 100)}}));var _0xef9ex15=null;_0xef9ex15= this[_0x6059[10]](_0x6059[164],function(){_0xef9ex5[_0x6059[166]](!_0xef9ex5[_0x6059[165]]());_0xef9ex4[_0x6059[167]]()},null,null,_0x6059[168]);_0xef9ex15[_0x6059[169]](true);_0xef9ex15[_0x6059[170]](function(){return _0xef9ex5[_0x6059[165]]()});_0xef9ex15= this[_0x6059[10]](_0x6059[171],function(){_0xef9ex5[_0x6059[173]][_0x6059[172]]= !_0xef9ex5[_0x6059[173]][_0x6059[172]]});_0xef9ex15[_0x6059[169]](true);_0xef9ex15[_0x6059[170]](function(){return _0xef9ex5[_0x6059[173]][_0x6059[172]]});_0xef9ex15= this[_0x6059[10]](_0x6059[174],function(){_0xef9ex5[_0x6059[176]][_0x6059[177]](!_0xef9ex5[_0x6059[176]][_0x6059[175]]())});_0xef9ex15[_0x6059[169]](true);_0xef9ex15[_0x6059[170]](function(){return _0xef9ex5[_0x6059[176]][_0x6059[175]]()});_0xef9ex15= this[_0x6059[10]](_0x6059[178],function(){_0xef9ex5[_0x6059[179]]= !_0xef9ex5[_0x6059[179]];_0xef9ex5[_0x6059[129]][_0x6059[180]]()});_0xef9ex15[_0x6059[169]](true);_0xef9ex15[_0x6059[170]](function(){return _0xef9ex5[_0x6059[179]]});_0xef9ex15= this[_0x6059[10]](_0x6059[181],function(){_0xef9ex5[_0x6059[181]]= !_0xef9ex5[_0x6059[181]];_0xef9ex4[_0x6059[167]]();if(!_0xef9ex5[_0x6059[181]]){var _0xef9ex16=_0xef9ex5[_0x6059[129]][_0x6059[155]];_0xef9ex5[_0x6059[129]][_0x6059[183]](_0xef9ex16[_0x6059[124]]- _0xef9ex5[_0x6059[8]][_0x6059[154]]/ _0xef9ex5[_0x6059[129]][_0x6059[182]],_0xef9ex16[_0x6059[127]]- _0xef9ex5[_0x6059[8]][_0x6059[158]]/ _0xef9ex5[_0x6059[129]][_0x6059[182]]);_0xef9ex5[_0x6059[8]][_0x6059[154]]= 0;_0xef9ex5[_0x6059[8]][_0x6059[158]]= 0;_0xef9ex5[_0x6059[184]]()}else {var _0xef9ex17=_0xef9ex5[_0x6059[129]][_0x6059[155]][_0x6059[124]];var _0xef9ex18=_0xef9ex5[_0x6059[129]][_0x6059[155]][_0x6059[127]];_0xef9ex5[_0x6059[129]][_0x6059[155]][_0x6059[124]]= 0;_0xef9ex5[_0x6059[129]][_0x6059[155]][_0x6059[127]]= 0;_0xef9ex5[_0x6059[184]]();_0xef9ex5[_0x6059[8]][_0x6059[154]]-= Math[_0x6059[157]](_0xef9ex17* _0xef9ex5[_0x6059[129]][_0x6059[182]]);_0xef9ex5[_0x6059[8]][_0x6059[158]]-= Math[_0x6059[157]](_0xef9ex18* _0xef9ex5[_0x6059[129]][_0x6059[182]])}},!mxClient[_0x6059[185]]);_0xef9ex15[_0x6059[169]](true);_0xef9ex15[_0x6059[170]](function(){return _0xef9ex5[_0x6059[8]][_0x6059[113]][_0x6059[186]]== _0x6059[187]});_0xef9ex15= this[_0x6059[10]](_0x6059[147],mxUtils[_0x6059[27]](this,function(){_0xef9ex5[_0x6059[145]]= !_0xef9ex5[_0x6059[145]];_0xef9ex5[_0x6059[188]]= _0xef9ex5[_0x6059[145]];_0xef9ex5[_0x6059[189]]= _0xef9ex5[_0x6059[188]];_0xef9ex5[_0x6059[129]][_0x6059[190]]();_0xef9ex5[_0x6059[184]]();_0xef9ex4[_0x6059[167]]();_0xef9ex4[_0x6059[192]][_0x6059[191]]();if(mxUtils[_0x6059[193]](_0xef9ex5[_0x6059[8]])){if(_0xef9ex5[_0x6059[145]]){_0xef9ex5[_0x6059[8]][_0x6059[154]]-= 20;_0xef9ex5[_0x6059[8]][_0x6059[158]]-= 20}else {_0xef9ex5[_0x6059[8]][_0x6059[154]]+= 20;_0xef9ex5[_0x6059[8]][_0x6059[158]]+= 20}}}));_0xef9ex15[_0x6059[169]](true);_0xef9ex15[_0x6059[170]](function(){return _0xef9ex5[_0x6059[145]]});_0xef9ex15= this[_0x6059[10]](_0x6059[194],function(){_0xef9ex5[_0x6059[196]](!_0xef9ex5[_0x6059[195]][_0x6059[175]]())},null,null,_0x6059[197]);_0xef9ex15[_0x6059[169]](true);_0xef9ex15[_0x6059[170]](function(){return _0xef9ex5[_0x6059[195]][_0x6059[175]]()});_0xef9ex15= this[_0x6059[10]](_0x6059[198],function(){_0xef9ex5[_0x6059[195]][_0x6059[200]](!_0xef9ex5[_0x6059[195]][_0x6059[199]]())});_0xef9ex15[_0x6059[169]](true);_0xef9ex15[_0x6059[170]](function(){return _0xef9ex5[_0x6059[195]][_0x6059[199]]()});this[_0x6059[10]](_0x6059[201],function(){var _0xef9ex19=_0x6059[95];if(mxResources[_0x6059[203]](mxClient[_0x6059[202]])){_0xef9ex19= _0x6059[204]+ mxClient[_0x6059[202]]};window[_0x6059[11]](RESOURCES_PATH+ _0x6059[205]+ _0xef9ex19+ _0x6059[206])});this[_0x6059[28]](_0x6059[207], new Action(mxResources[_0x6059[26]](_0x6059[207])+ _0x6059[208],function(){_0xef9ex3[_0x6059[9]]( new AboutDialog(_0xef9ex3)[_0x6059[8]],320,280,true,true)},null,null,_0x6059[209]));var _0xef9ex1a=mxUtils[_0x6059[27]](this,function(_0xef9ex1b,_0xef9ex1c){this[_0x6059[10]](_0xef9ex1b,function(){_0xef9ex5[_0x6059[210]](mxConstants.STYLE_FONTSTYLE,_0xef9ex1c)})});_0xef9ex1a(_0x6059[211],mxConstants.FONT_BOLD);_0xef9ex1a(_0x6059[212],mxConstants.FONT_ITALIC);_0xef9ex1a(_0x6059[213],mxConstants.FONT_UNDERLINE);this[_0x6059[10]](_0x6059[214],function(){_0xef9ex5[_0x6059[215]](mxConstants.STYLE_SHADOW)});this[_0x6059[10]](_0x6059[216],function(){_0xef9ex5[_0x6059[215]](mxConstants.STYLE_DASHED)});this[_0x6059[10]](_0x6059[217],function(){_0xef9ex5[_0x6059[215]](mxConstants.STYLE_ROUNDED)});this[_0x6059[10]](_0x6059[218],function(){_0xef9ex5[_0x6059[215]](mxConstants.STYLE_CURVED)});this[_0x6059[10]](_0x6059[113],function(){var _0xef9ex9=_0xef9ex5[_0x6059[57]]();if(_0xef9ex9!= null&& _0xef9ex9[_0x6059[103]]> 0){var _0xef9ex1d=_0xef9ex5[_0x6059[102]]();var _0xef9ex1c=mxUtils[_0x6059[97]](mxResources[_0x6059[26]](_0x6059[96])+ _0x6059[118]+ mxResources[_0x6059[26]](_0x6059[113])+ _0x6059[219],_0xef9ex1d[_0x6059[220]](_0xef9ex9[0])|| _0x6059[95]);if(_0xef9ex1c!= null){_0xef9ex5[_0x6059[221]](_0xef9ex1c,_0xef9ex9)}}});this[_0x6059[10]](_0x6059[222],function(){_0xef9ex5[_0x6059[223]](_0xef9ex5[_0x6059[93]]())});this[_0x6059[10]](_0x6059[224],function(){var _0xef9ex7=_0xef9ex5[_0x6059[93]]();if(_0xef9ex7!= null&& _0xef9ex5[_0x6059[102]]()[_0x6059[225]](_0xef9ex7)){var _0xef9ex1e=_0xef9ex4[_0x6059[6]][_0x6059[227]][_0x6059[226]](_0xef9ex7);if(_0xef9ex1e instanceof mxEdgeHandler){var _0xef9ex16=_0xef9ex5[_0x6059[129]][_0x6059[155]];var _0xef9ex6=_0xef9ex5[_0x6059[129]][_0x6059[182]];var _0xef9ex17=_0xef9ex16[_0x6059[124]];var _0xef9ex18=_0xef9ex16[_0x6059[127]];var _0xef9ex1f=_0xef9ex5[_0x6059[102]]()[_0x6059[228]](_0xef9ex7);var _0xef9ex20=_0xef9ex5[_0x6059[122]](_0xef9ex1f);if(_0xef9ex5[_0x6059[102]]()[_0x6059[121]](_0xef9ex1f)&& _0xef9ex20!= null){_0xef9ex17+= _0xef9ex20[_0x6059[124]];_0xef9ex18+= _0xef9ex20[_0x6059[127]]};_0xef9ex1e[_0x6059[233]](_0xef9ex1e[_0x6059[229]],_0xef9ex5[_0x6059[231]][_0x6059[230]]/ _0xef9ex6- _0xef9ex17,_0xef9ex5[_0x6059[231]][_0x6059[232]]/ _0xef9ex6- _0xef9ex18)}}});this[_0x6059[10]](_0x6059[234],function(){var _0xef9ex21=_0xef9ex3[_0x6059[2]][_0x6059[26]](_0x6059[234]);if(_0xef9ex21[_0x6059[235]]!= null){_0xef9ex21[_0x6059[235]][_0x6059[237]](_0xef9ex21[_0x6059[235]][_0x6059[229]],_0xef9ex21[_0x6059[236]])}});this[_0x6059[10]](_0x6059[238],function(){function _0xef9ex22(_0xef9exc,_0xef9ex23,_0xef9ex24){var _0xef9ex25=null;var _0xef9ex9=_0xef9ex5[_0x6059[57]]();_0xef9ex5[_0x6059[102]]()[_0x6059[101]]();try{if(_0xef9ex9[_0x6059[103]]== 0){var _0xef9ex26=_0xef9ex5[_0x6059[239]]();_0xef9ex9= [_0xef9ex5[_0x6059[241]](_0xef9ex5[_0x6059[240]](),null,_0x6059[95],_0xef9ex26,_0xef9ex26,_0xef9ex23,_0xef9ex24)];_0xef9ex25= _0xef9ex9};_0xef9ex5[_0x6059[114]](mxConstants.STYLE_IMAGE,_0xef9exc,_0xef9ex9);_0xef9ex5[_0x6059[114]](mxConstants.STYLE_SHAPE,_0x6059[238],_0xef9ex9);if(_0xef9ex5[_0x6059[242]]()== 1){if(_0xef9ex23!= null&& _0xef9ex24!= null){var _0xef9ex7=_0xef9ex9[0];var _0xef9exd=_0xef9ex5[_0x6059[102]]()[_0x6059[243]](_0xef9ex7);if(_0xef9exd!= null){_0xef9exd= _0xef9exd[_0x6059[123]]();_0xef9exd[_0x6059[125]]= _0xef9ex23;_0xef9exd[_0x6059[126]]= _0xef9ex24;_0xef9ex5[_0x6059[102]]()[_0x6059[128]](_0xef9ex7,_0xef9exd)}}}}finally{_0xef9ex5[_0x6059[102]]()[_0x6059[107]]()};if(_0xef9ex25!= null){_0xef9ex5[_0x6059[59]](_0xef9ex25);_0xef9ex5[_0x6059[244]](_0xef9ex25[0])}}var _0xef9exc=_0x6059[95];var _0xef9exb=_0xef9ex5[_0x6059[110]]()[_0x6059[109]](_0xef9ex5[_0x6059[93]]());if(_0xef9exb!= null){_0xef9exc= _0xef9exb[_0x6059[113]][mxConstants[_0x6059[245]]]|| _0xef9exc};_0xef9exc= mxUtils[_0x6059[97]](mxResources[_0x6059[26]](_0x6059[96])+ _0x6059[118]+ mxResources[_0x6059[26]](_0x6059[246])+ _0x6059[219],_0xef9exc);if(_0xef9exc!= null){if(_0xef9exc[_0x6059[103]]> 0){var _0xef9ex27= new Image();_0xef9ex27[_0x6059[247]]= function(){_0xef9ex22(_0xef9exc,_0xef9ex27[_0x6059[125]],_0xef9ex27[_0x6059[126]])};_0xef9ex27[_0x6059[248]]= function(){mxUtils[_0x6059[250]](mxResources[_0x6059[26]](_0x6059[249]))};_0xef9ex27[_0x6059[251]]= _0xef9exc}}})};Actions[_0x6059[4]][_0x6059[10]]= function(_0xef9ex1b,_0xef9ex28,_0xef9ex29,_0xef9ex2a,_0xef9ex2b){return this[_0x6059[28]](_0xef9ex1b, new Action(mxResources[_0x6059[26]](_0xef9ex1b),_0xef9ex28,_0xef9ex29,_0xef9ex2a,_0xef9ex2b))};Actions[_0x6059[4]][_0x6059[28]]= function(_0xef9ex2c,_0xef9ex15){this[_0x6059[2]][_0xef9ex2c]= _0xef9ex15;return _0xef9ex15};Actions[_0x6059[4]][_0x6059[26]]= function(_0xef9ex2c){return this[_0x6059[2]][_0xef9ex2c]};function Action(_0xef9ex2e,_0xef9ex28,_0xef9ex29,_0xef9ex2a,_0xef9ex2b){mxEventSource[_0x6059[252]](this);this[_0x6059[253]]= _0xef9ex2e;this[_0x6059[146]]= _0xef9ex28;this[_0x6059[254]]= (_0xef9ex29!= null)?_0xef9ex29:true;this[_0x6059[255]]= _0xef9ex2a;this[_0x6059[256]]= _0xef9ex2b}mxUtils[_0x6059[257]](Action,mxEventSource);Action[_0x6059[4]][_0x6059[177]]= function(_0xef9exc){if(this[_0x6059[254]]!= _0xef9exc){this[_0x6059[254]]= _0xef9exc;this[_0x6059[259]]( new mxEventObject(_0x6059[258]))}};Action[_0x6059[4]][_0x6059[169]]= function(_0xef9exc){this[_0x6059[260]]= _0xef9exc};Action[_0x6059[4]][_0x6059[170]]= function(_0xef9ex28){this[_0x6059[261]]= _0xef9ex28};Action[_0x6059[4]][_0x6059[262]]= function(){return this[_0x6059[261]]()} \ No newline at end of file diff --git a/public/assets/plugins/jscripty/js/Dialogs.js b/public/assets/plugins/jscripty/js/Dialogs.js index d2fe6c4..2828032 100644 --- a/public/assets/plugins/jscripty/js/Dialogs.js +++ b/public/assets/plugins/jscripty/js/Dialogs.js @@ -1 +1 @@ -var _0x84ee=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x69\x6E\x70\x75\x74","\x63\x72\x65\x61\x74\x65\x45\x6C\x65\x6D\x65\x6E\x74","\x74\x79\x70\x65","\x63\x68\x65\x63\x6B\x62\x6F\x78","\x73\x65\x74\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x63\x68\x65\x63\x6B\x65\x64","\x47\x45\x54","\x6F\x70\x65\x6E","\x41\x75\x74\x68\x6F\x72\x69\x7A\x61\x74\x69\x6F\x6E","\x42\x65\x61\x72\x65\x72\x20","\x74\x6F\x6B\x65\x6E","\x64\x61\x74\x61","\x65\x64\x69\x74\x6F\x72","\x73\x65\x74\x52\x65\x71\x75\x65\x73\x74\x48\x65\x61\x64\x65\x72","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x72\x65\x73\x70\x6F\x6E\x73\x65","\x70\x61\x72\x73\x65","\x73\x65\x6C\x65\x63\x74","\x6F\x70\x74\x69\x6F\x6E","\x74\x65\x78\x74","\x2D\x2D\x20\x4E\x6F\x6E\x65\x20\x2D\x2D","\x76\x61\x6C\x75\x65","\x2D\x31","\x61\x70\x70\x65\x6E\x64\x43\x68\x69\x6C\x64","\x25","\x72\x65\x70\x6C\x61\x63\x65","\x66\x6F\x72\x45\x61\x63\x68","\x73\x65\x6C\x65\x63\x74\x65\x64","\x72\x6F\x77\x73","\x63\x6C\x61\x73\x73\x4E\x61\x6D\x65","\x66\x6F\x72\x6D\x2D\x63\x6F\x6E\x74\x72\x6F\x6C\x20\x73\x65\x6C\x65\x63\x74\x32","\x30","\x66\x69\x6C\x74\x65\x72","\x73\x65\x6C\x65\x63\x74\x2D\x67\x72\x6F\x75\x70\x2D\x66\x61\x74\x68\x65\x72","\x74\x6F\x55\x70\x70\x65\x72\x43\x61\x73\x65","\x73\x65\x6C\x65\x63\x74\x2D\x67\x72\x6F\x75\x70\x2D\x73\x6F\x6E","\x2D","\x63\x61\x70\x69\x74\x61\x6C\x69\x7A\x65","","\x49\x53\x5F\x49\x45","\x64\x6F\x63\x75\x6D\x65\x6E\x74\x4D\x6F\x64\x65","\x73\x63\x72\x6F\x6C\x6C\x57\x69\x64\x74\x68","\x62\x6F\x64\x79","\x72\x6F\x75\x6E\x64","\x6D\x61\x78","\x73\x63\x72\x6F\x6C\x6C\x48\x65\x69\x67\x68\x74","\x64\x6F\x63\x75\x6D\x65\x6E\x74\x45\x6C\x65\x6D\x65\x6E\x74","\x67\x65\x44\x69\x61\x6C\x6F\x67","\x63\x72\x65\x61\x74\x65\x44\x69\x76","\x6D\x6F\x64\x61\x6C\x20\x66\x61\x64\x65\x20\x69\x6E\x20\x63\x65\x6E\x74\x65\x72","\x64\x69\x73\x70\x6C\x61\x79","\x73\x74\x79\x6C\x65","\x62\x6C\x6F\x63\x6B","\x70\x61\x64\x64\x69\x6E\x67\x52\x69\x67\x68\x74","\x31\x32\x70\x78","\x67\x65\x4D\x6F\x64\x61\x6C\x44\x69\x61\x6C\x6F\x67","\x6D\x6F\x64\x61\x6C\x2D\x64\x69\x61\x6C\x6F\x67","\x62\x67","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64","\x6D\x6F\x64\x61\x6C\x2D\x62\x61\x63\x6B\x64\x72\x6F\x70\x20\x66\x61\x64\x65\x20\x69\x6E","\x49\x53\x5F\x51\x55\x49\x52\x4B\x53","\x6F\x6E\x44\x69\x61\x6C\x6F\x67\x43\x6C\x6F\x73\x65","\x63\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x63\x6C\x6F\x73\x65","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x72\x65\x6D\x6F\x76\x65\x43\x68\x69\x6C\x64","\x70\x61\x72\x65\x6E\x74\x4E\x6F\x64\x65","\x6D\x6F\x64\x61\x6C\x2D\x63\x6F\x6E\x74\x65\x6E\x74","\x6D\x6F\x64\x61\x6C\x2D\x68\x65\x61\x64\x65\x72","\x6D\x6F\x64\x61\x6C\x2D\x62\x6F\x64\x79","\x6D\x6F\x64\x61\x6C\x2D\x66\x6F\x6F\x74\x65\x72","\x68\x34","\x63\x72\x65\x61\x74\x65\x48\x65\x61\x64\x65\x72","\x69\x6D\x70\x6F\x72\x74","\x67\x65\x74","\x20\x58\x4D\x4C","\x77\x72\x69\x74\x65","\x68\x69\x64\x65\x44\x69\x61\x6C\x6F\x67","\x62\x75\x74\x74\x6F\x6E","\x72\x6F\x77","\x63\x6F\x6C\x2D\x6D\x64\x2D\x31\x32","\x74\x65\x78\x74\x61\x72\x65\x61","\x77\x69\x64\x74\x68","\x31\x30\x30\x25","\x68\x65\x69\x67\x68\x74","\x33\x37\x34\x70\x78","\x66\x69\x6C\x65","\x61\x63\x63\x65\x70\x74","\x74\x65\x78\x74\x2F\x78\x6D\x6C","\x63\x68\x61\x6E\x67\x65","\x66\x69\x6C\x65\x73","\x74\x61\x72\x67\x65\x74","\x6C\x6F\x67","\x6F\x6E\x6C\x6F\x61\x64","\x72\x65\x73\x75\x6C\x74","\x72\x65\x61\x64\x41\x73\x54\x65\x78\x74","\x46\x61\x69\x6C\x65\x64\x20\x74\x6F\x20\x6C\x6F\x61\x64\x20\x66\x6F\x72\x6D\x61\x74\x20\x66\x69\x6C\x65","\x46\x61\x69\x6C\x65\x64\x20\x74\x6F\x20\x6C\x6F\x61\x64\x20\x66\x69\x6C\x65","\x61\x64\x64\x45\x76\x65\x6E\x74\x4C\x69\x73\x74\x65\x6E\x65\x72","\x70\x61\x72\x73\x65\x58\x6D\x6C","\x73\x65\x74\x47\x72\x61\x70\x68\x58\x6D\x6C","\x62\x69\x6E\x64","\x62\x74\x6E\x20\x62\x6C\x75\x65","\x63\x61\x6E\x63\x65\x6C","\x62\x74\x6E\x20\x64\x65\x66\x61\x75\x6C\x74","\x61\x62\x6F\x75\x74","\x20\x43\x61\x6C\x6C\x79\x20\x53\x71\x75\x61\x72\x65","\x69\x6D\x67","\x62\x6F\x72\x64\x65\x72","\x30\x70\x78","\x31\x37\x36","\x31\x35\x31","\x73\x72\x63","\x2F\x6C\x6F\x67\x6F\x2E\x70\x6E\x67","\x62\x72","\x50\x6F\x77\x65\x72\x65\x64\x20\x62\x79\x20\x58\x65\x6E\x69\x61\x6C\x61\x62\x20","\x56\x45\x52\x53\x49\x4F\x4E","\x61","\x68\x72\x65\x66","\x68\x74\x74\x70\x3A\x2F\x2F\x77\x77\x77\x2E\x63\x61\x6C\x6C\x79\x73\x71\x75\x61\x72\x65\x2E\x63\x6F\x6D\x2F","\x5F\x62\x6C\x61\x6E\x6B","\x77\x77\x77\x2E\x63\x61\x6C\x6C\x79\x73\x71\x75\x61\x72\x65\x2E\x63\x6F\x6D","\x73\x61\x76\x65\x41\x73","\x6E\x61\x6D\x65","\x5F","\x67\x65\x74\x4F\x72\x43\x72\x65\x61\x74\x65\x46\x69\x6C\x65\x6E\x61\x6D\x65","\x63\x6F\x6C\x2D\x6D\x64\x2D\x34","\x63\x6F\x6C\x2D\x6D\x64\x2D\x38","\x6C\x61\x62\x65\x6C","\x63\x6F\x6E\x74\x72\x6F\x6C\x2D\x6C\x61\x62\x65\x6C\x20\x70\x75\x6C\x6C\x2D\x72\x69\x67\x68\x74","\x5F\x63\x6F\x70\x79","\x69\x64","\x66\x6F\x72\x6D\x2D\x63\x6F\x6E\x74\x72\x6F\x6C","\x73\x61\x76\x65","\x6E\x65\x77","\x5F\x6E\x65\x77","\x76\x61\x72\x69\x61\x62\x6C\x65","\x76\x61\x72\x69\x61\x62\x6C\x65\x20\x6E\x61\x6D\x65","\x2F\x61\x70\x69\x2F\x6A\x73\x63\x72\x69\x70\x74\x79\x2F\x70\x72\x6F\x6A\x65\x63\x74\x73","\x6C\x65\x6E\x67\x74\x68","\x6A\x73\x63\x72\x69\x70\x74\x79\x2F\x70\x72\x6F\x6A\x65\x63\x74\x73\x2F\x76\x69\x65\x77\x2F","\x72\x65\x6E\x61\x6D\x65","\x66\x69\x6C\x65\x6E\x61\x6D\x65","\x50\x55\x54","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2F\x78\x2D\x77\x77\x77\x2D\x66\x6F\x72\x6D\x2D\x75\x72\x6C\x65\x6E\x63\x6F\x64\x65\x64","\x6E\x61\x6D\x65\x3D","\x50\x72\x6F\x6A\x65\x63\x74\x20\x73\x75\x63\x63\x65\x73\x73\x66\x75\x6C\x6C\x79\x20\x72\x65\x6E\x61\x6D\x65\x64","\x73\x65\x74\x53\x74\x61\x74\x75\x73","\x6D\x65\x73\x73\x61\x67\x65","\x65\x72\x72\x6F\x72\x73","\x6F\x6E\x65\x72\x72\x6F\x72","\x73\x74\x61\x74\x75\x73\x54\x65\x78\x74","\x61\x6C\x65\x72\x74","\x65\x64\x69\x74","\x67\x65\x74\x47\x72\x61\x70\x68\x58\x6D\x6C","\x67\x65\x74\x50\x72\x65\x74\x74\x79\x58\x6D\x6C","\x73\x74\x6F\x70\x50\x72\x6F\x70\x61\x67\x61\x74\x69\x6F\x6E","\x70\x72\x65\x76\x65\x6E\x74\x44\x65\x66\x61\x75\x6C\x74","\x64\x61\x74\x61\x54\x72\x61\x6E\x73\x66\x65\x72","\x64\x72\x61\x67\x6F\x76\x65\x72","\x64\x72\x6F\x70","\x6D\x6F\x64\x61\x6C\x2D\x62\x6F\x64\x79\x20\x66\x6F\x72\x6D","\x65\x78\x70\x6F\x72\x74","\x66\x6F\x72\x6D\x2D\x68\x6F\x72\x69\x7A\x6F\x6E\x74\x61\x6C\x20\x66\x6F\x72\x6D\x2D\x72\x6F\x77\x2D\x73\x65\x70\x65\x72\x61\x74\x65\x64","\x66\x6F\x72\x6D\x2D\x67\x72\x6F\x75\x70\x20\x6C\x61\x73\x74","\x63\x6F\x6C\x2D\x73\x6D\x2D\x34\x20\x63\x6F\x6E\x74\x72\x6F\x6C\x2D\x6C\x61\x62\x65\x6C","\x63\x6F\x6C\x2D\x73\x6D\x2D\x38","\x67\x65\x74\x58\x6D\x6C","\x73\x69\x6D\x75\x6C\x61\x74\x65","\x2F\x64\x6F\x77\x6E\x6C\x6F\x61\x64","\x66\x69\x6C\x65\x6E\x61\x6D\x65\x3D","\x67\x72\x61\x70\x68","\x6D\x6F\x64\x61\x6C\x2D\x62\x6F\x64\x79\x20\x66\x6F\x72\x6D\x20\x6D\x6F\x64\x61\x6C\x2D\x62\x6F\x64\x79\x2D\x73\x63\x72\x6F\x6C\x6C","\x20","\x6E\x6F\x64\x65\x4E\x61\x6D\x65","\x69\x6E\x70\x75\x74\x47\x72\x6F\x75\x70","\x61\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x66\x6F\x72\x6D\x2D\x67\x72\x6F\x75\x70","\x64\x69\x73\x61\x62\x6C\x65\x64","\x6F\x6E\x63\x6C\x69\x63\x6B","\x4F\x4E","\x4F\x46\x46","\x62\x74\x6E\x20\x62\x74\x6E\x2D\x64\x61\x6E\x67\x65\x72\x20\x62\x74\x6E\x2D\x6D\x64","\x62\x74\x6E\x20\x62\x74\x6E\x2D\x73\x75\x63\x63\x65\x73\x73\x20\x62\x74\x6E\x2D\x6D\x64","\x73\x74\x61\x74\x65","\x69\x6E\x6E\x65\x72\x48\x54\x4D\x4C","\x42\x6F\x64\x79","\x71\x75\x65\x73\x74\x69\x6F\x6E","\x70\x6C\x61\x63\x65\x68\x6F\x6C\x64\x65\x72","\x49\x6E\x73\x65\x72\x74\x20\x6C\x61\x62\x65\x6C\x20\x66\x6F\x72\x20\x22\x4F\x74\x68\x65\x72\x22\x20\x61\x6E\x73\x77\x65\x72\x20\x6F\x70\x74\x69\x6F\x6E","\x6F\x74\x68\x65\x72","\x2F\x61\x70\x69\x2F\x73\x6D\x73\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x61\x63\x63\x6F\x75\x6E\x74\x5F\x69\x64","\x6D\x61\x78\x6C\x65\x6E\x67\x74\x68","\x31\x36\x30","\x73\x6D\x73\x5F\x74\x65\x78\x74","\x2B","\x62\x74\x6E\x20\x67\x72\x65\x65\x6E","\x61\x64\x64","\x68\x65\x6C\x70\x5F","\x70","\x68\x65\x6C\x70\x2D\x62\x6C\x6F\x63\x6B","\x63\x68\x69\x6C\x64\x72\x65\x6E","\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x42\x79\x49\x64","\x67\x65\x74\x43\x68\x69\x6C\x64\x43\x6F\x75\x6E\x74","\x6D\x6F\x64\x65\x6C","\x63\x72\x65\x61\x74\x65\x58\x6D\x6C\x44\x6F\x63\x75\x6D\x65\x6E\x74","\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x73\x42\x79\x54\x61\x67\x4E\x61\x6D\x65","\x72\x65\x66\x72\x65\x73\x68","\x63\x6F\x6C\x2D\x6D\x64\x2D\x35","\x63\x6F\x6C\x2D\x6D\x64\x2D\x32","\x49\x6E\x73\x65\x72\x74\x20\x6C\x61\x62\x65\x6C","\x6E\x75\x6D\x62\x65\x72","\x78","\x70\x61\x72\x65\x6E\x74\x45\x6C\x65\x6D\x65\x6E\x74","\x62\x74\x6E\x20\x72\x65\x64"];_0x84ee[0];function createCheckbox(_0x76dex2){var _0x76dex3=document[_0x84ee[2]](_0x84ee[1]);_0x76dex3[_0x84ee[5]](_0x84ee[3],_0x84ee[4]);if(_0x76dex2){_0x76dex3[_0x84ee[5]](_0x84ee[6],true)};return _0x76dex3}function createDropdownFromApi(_0x76dex5,_0x76dex2,_0x76dex6,_0x76dex7,_0x76dex8,_0x76dex9,_0x76dexa){var _0x76dexb= new XMLHttpRequest();_0x76dexb[_0x84ee[8]](_0x84ee[7],_0x76dex5,false);_0x76dexb[_0x84ee[14]](_0x84ee[9],_0x84ee[10]+ _0x76dex8[_0x84ee[13]][_0x84ee[12]][_0x84ee[11]]);_0x76dexb[_0x84ee[15]](null);var _0x76dexc=[];if(_0x76dexb[_0x84ee[16]]=== 200){_0x76dexc= JSON[_0x84ee[18]](_0x76dexb[_0x84ee[17]])};var _0x76dex3=document[_0x84ee[2]](_0x84ee[19]);var _0x76dexd=document[_0x84ee[2]](_0x84ee[20]);_0x76dexd[_0x84ee[21]]= _0x84ee[22];_0x76dexd[_0x84ee[23]]= _0x84ee[24];_0x76dex3[_0x84ee[25]](_0x76dexd);_0x76dexc[_0x84ee[30]][_0x84ee[28]](function(_0x76dexe){_0x76dexd= document[_0x84ee[2]](_0x84ee[20]);_0x76dexd[_0x84ee[21]]= _0x76dexe[_0x76dex6];if(_0x76dex9&& _0x76dexa){_0x76dex9[_0x84ee[28]](function(_0x76dexf){_0x76dexa= _0x76dexa[_0x84ee[27]](_0x84ee[26]+ _0x76dexf+ _0x84ee[26],_0x76dexe[_0x76dexf])});_0x76dexd[_0x84ee[23]]= _0x76dexa;_0x76dexd[_0x84ee[29]]= (_0x76dexa== _0x76dex2)}else {_0x76dexd[_0x84ee[23]]= _0x76dexe[_0x76dex7];_0x76dexd[_0x84ee[29]]= (_0x76dexe[_0x76dex7]== _0x76dex2)};_0x76dex3[_0x84ee[25]](_0x76dexd)});_0x76dex3[_0x84ee[31]]= _0x84ee[32];return _0x76dex3}function createGroupedDropdownFromApi(_0x76dex5,_0x76dex2,_0x76dex6,_0x76dex7,_0x76dex8,_0x76dex11,_0x76dex12){var _0x76dexb= new XMLHttpRequest();_0x76dexb[_0x84ee[8]](_0x84ee[7],_0x76dex5,false);_0x76dexb[_0x84ee[14]](_0x84ee[9],_0x84ee[10]+ _0x76dex8[_0x84ee[13]][_0x84ee[12]][_0x84ee[11]]);_0x76dexb[_0x84ee[15]](null);var _0x76dexc=[];if(_0x76dexb[_0x84ee[16]]=== 200){_0x76dexc= JSON[_0x84ee[18]](_0x76dexb[_0x84ee[17]])};var _0x76dex3=document[_0x84ee[2]](_0x84ee[19]);var _0x76dexd=document[_0x84ee[2]](_0x84ee[20]);_0x76dexd[_0x84ee[21]]= _0x84ee[22];_0x76dexd[_0x84ee[23]]= _0x84ee[33];_0x76dex3[_0x84ee[25]](_0x76dexd);var _0x76dex13=_0x76dex11?_0x76dexc[_0x84ee[30]]:_0x76dexc;var _0x76dex14={};var _0x76dex15={};_0x76dex14[_0x76dex12]= null;var _0x76dex16=_[_0x84ee[34]](_0x76dex13,_0x76dex14);var _0x76dex17={};_0x76dex16[_0x84ee[28]](function(_0x76dexe){_0x76dexd= document[_0x84ee[2]](_0x84ee[20]);_0x76dexd[_0x84ee[31]]= _0x84ee[35];_0x76dexd[_0x84ee[21]]= _0x76dexe[_0x76dex6][_0x84ee[36]]();_0x76dexd[_0x84ee[23]]= _0x76dexe[_0x76dex7];_0x76dexd[_0x84ee[29]]= (_0x76dexe[_0x76dex7]== _0x76dex2);_0x76dex3[_0x84ee[25]](_0x76dexd);_0x76dex15[_0x76dex12]= _0x76dexe[_0x76dex7];_0x76dex17= _[_0x84ee[34]](_0x76dex13,_0x76dex15);_0x76dex17[_0x84ee[28]](function(_0x76dexe){_0x76dexd= document[_0x84ee[2]](_0x84ee[20]);_0x76dexd[_0x84ee[31]]= _0x84ee[37];_0x76dexd[_0x84ee[21]]= _0x84ee[38]+ _[_0x84ee[39]](_0x76dexe[_0x76dex6]);_0x76dexd[_0x84ee[23]]= _0x76dexe[_0x76dex7];_0x76dexd[_0x84ee[29]]= (_0x76dexe[_0x76dex7]== _0x76dex2);_0x76dex3[_0x84ee[25]](_0x76dexd)})});_0x76dex3[_0x84ee[31]]= _0x84ee[32];return _0x76dex3}function createDropdownFromArray(_0x76dex19,_0x76dex2){var _0x76dex3=document[_0x84ee[2]](_0x84ee[19]);for(var _0x76dex1a in _0x76dex19){var _0x76dexd=document[_0x84ee[2]](_0x84ee[20]);_0x76dexd[_0x84ee[21]]= _0x76dex19[_0x76dex1a];_0x76dexd[_0x84ee[23]]= _0x76dex1a;if(_0x76dex2> 0|| _0x76dex2!= _0x84ee[40]){_0x76dexd[_0x84ee[29]]= (_0x76dex2=== _0x76dex1a)?true:false};_0x76dex3[_0x84ee[25]](_0x76dexd)};_0x76dex3[_0x84ee[31]]= _0x84ee[32];return _0x76dex3}function Dialog(_0x76dex8,_0x76dex1c,_0x76dex1d,_0x76dex1e,_0x76dex1f,_0x76dex20,_0x76dex21){var _0x76dex22=0;if(mxClient[_0x84ee[41]]&& document[_0x84ee[42]]!= 9){_0x76dex22= 60};_0x76dex1d+= _0x76dex22;_0x76dex1e+= _0x76dex22;var _0x76dex23=Math[_0x84ee[46]](0,Math[_0x84ee[45]]((document[_0x84ee[44]][_0x84ee[43]]- _0x76dex1d)/ 2));var _0x76dex24=Math[_0x84ee[46]](0,Math[_0x84ee[45]]((Math[_0x84ee[46]](document[_0x84ee[44]][_0x84ee[47]],document[_0x84ee[48]][_0x84ee[47]])- _0x76dex1e)/ 3));var _0x76dex25=_0x76dex8[_0x84ee[50]](_0x84ee[49]);_0x76dex25[_0x84ee[31]]= _0x84ee[51];_0x76dex25[_0x84ee[53]][_0x84ee[52]]= _0x84ee[54];_0x76dex25[_0x84ee[53]][_0x84ee[55]]= _0x84ee[56];var _0x76dex26=_0x76dex8[_0x84ee[50]](_0x84ee[57]);_0x76dex26[_0x84ee[31]]= _0x84ee[58];_0x76dex26[_0x84ee[25]](_0x76dex1c);_0x76dex25[_0x84ee[25]](_0x76dex26);if(this[_0x84ee[59]]== null){this[_0x84ee[59]]= _0x76dex8[_0x84ee[50]](_0x84ee[60]);this[_0x84ee[59]][_0x84ee[31]]= _0x84ee[61];if(mxClient[_0x84ee[62]]){ new mxDivResizer(this[_0x84ee[59]])}};if(_0x76dex1f){document[_0x84ee[44]][_0x84ee[25]](this[_0x84ee[59]])};document[_0x84ee[44]][_0x84ee[25]](_0x76dex25);this[_0x84ee[63]]= _0x76dex21;this[_0x84ee[64]]= _0x76dex25}Dialog[_0x84ee[66]][_0x84ee[65]]= function(){if(this[_0x84ee[63]]!= null){this[_0x84ee[63]]();this[_0x84ee[63]]= null};this[_0x84ee[64]][_0x84ee[68]][_0x84ee[67]](this[_0x84ee[64]]);this[_0x84ee[59]][_0x84ee[68]][_0x84ee[67]](this[_0x84ee[59]])};function ImportDialog(_0x76dex8){var _0x76dex28=_0x76dex8[_0x84ee[50]](_0x84ee[69]);var _0x76dex29=_0x76dex8[_0x84ee[50]](_0x84ee[70]);var _0x76dex2a=_0x76dex8[_0x84ee[50]](_0x84ee[71]);var _0x76dex2b=_0x76dex8[_0x84ee[50]](_0x84ee[72]);var _0x76dex2c=_0x76dex8[_0x84ee[74]](_0x84ee[73]);mxUtils[_0x84ee[78]](_0x76dex2c,mxResources[_0x84ee[76]](_0x84ee[75])+ _0x84ee[77]);var _0x76dex2d=mxUtils[_0x84ee[80]](_0x84ee[40],function(){_0x76dex8[_0x84ee[79]]()});_0x76dex2d[_0x84ee[31]]= _0x84ee[65];_0x76dex29[_0x84ee[25]](_0x76dex2d);_0x76dex29[_0x84ee[25]](_0x76dex2c);var _0x76dex2e=_0x76dex8[_0x84ee[50]](_0x84ee[81]);var _0x76dex2f=_0x76dex8[_0x84ee[50]](_0x84ee[82]);var _0x76dex30=document[_0x84ee[2]](_0x84ee[83]);_0x76dex30[_0x84ee[53]][_0x84ee[84]]= _0x84ee[85];_0x76dex30[_0x84ee[53]][_0x84ee[86]]= _0x84ee[87];var _0x76dex3=document[_0x84ee[2]](_0x84ee[1]);_0x76dex3[_0x84ee[3]]= _0x84ee[88];_0x76dex3[_0x84ee[5]](_0x84ee[89],_0x84ee[90]);_0x76dex3[_0x84ee[100]](_0x84ee[91],function _0x76dex31(_0x76dex32){var _0x76dex33=_0x76dex32[_0x84ee[93]][_0x84ee[92]][0];console[_0x84ee[94]](_0x76dex33);if(_0x76dex33){if(_0x76dex33[_0x84ee[3]]=== _0x84ee[90]){var _0x76dex34= new FileReader();_0x76dex34[_0x84ee[95]]= function(_0x76dex35){var _0x76dex36=_0x76dex35[_0x84ee[93]][_0x84ee[96]];mxUtils[_0x84ee[78]](_0x76dex30,_0x76dex36)};_0x76dex34[_0x84ee[97]](_0x76dex33)}else {alert(_0x84ee[98])}}else {alert(_0x84ee[99])}},false);_0x76dex2f[_0x84ee[25]](_0x76dex3);_0x76dex2f[_0x84ee[25]](_0x76dex30);_0x76dex2e[_0x84ee[25]](_0x76dex2f);_0x76dex2a[_0x84ee[25]](_0x76dex2e);var _0x76dex37=mxUtils[_0x84ee[80]](mxResources[_0x84ee[76]](_0x84ee[75]),mxUtils[_0x84ee[103]](this,function(_0x76dex38){var _0x76dex39=mxUtils[_0x84ee[101]](_0x76dex30[_0x84ee[23]]);_0x76dex8[_0x84ee[13]][_0x84ee[102]](_0x76dex39[_0x84ee[48]]);_0x76dex8[_0x84ee[79]]()}));_0x76dex37[_0x84ee[31]]= _0x84ee[104];var _0x76dex3a=mxUtils[_0x84ee[80]](mxResources[_0x84ee[76]](_0x84ee[105]),function(){_0x76dex8[_0x84ee[79]]()});_0x76dex3a[_0x84ee[31]]= _0x84ee[106];_0x76dex2b[_0x84ee[25]](_0x76dex37);_0x76dex2b[_0x84ee[25]](_0x76dex3a);_0x76dex28[_0x84ee[25]](_0x76dex29);_0x76dex28[_0x84ee[25]](_0x76dex2a);_0x76dex28[_0x84ee[25]](_0x76dex2b);this[_0x84ee[64]]= _0x76dex28}function AboutDialog(_0x76dex8){var _0x76dex28=_0x76dex8[_0x84ee[50]](_0x84ee[69]);var _0x76dex29=_0x76dex8[_0x84ee[50]](_0x84ee[70]);var _0x76dex2a=_0x76dex8[_0x84ee[50]](_0x84ee[71]);var _0x76dex2b=_0x76dex8[_0x84ee[50]](_0x84ee[72]);var _0x76dex2c=_0x76dex8[_0x84ee[74]](_0x84ee[73]);mxUtils[_0x84ee[78]](_0x76dex2c,mxResources[_0x84ee[76]](_0x84ee[107])+ _0x84ee[108]);var _0x76dex2d=mxUtils[_0x84ee[80]](_0x84ee[40],function(){_0x76dex8[_0x84ee[79]]()});_0x76dex2d[_0x84ee[31]]= _0x84ee[65];_0x76dex29[_0x84ee[25]](_0x76dex2d);_0x76dex29[_0x84ee[25]](_0x76dex2c);var _0x76dex3c=document[_0x84ee[2]](_0x84ee[109]);_0x76dex3c[_0x84ee[53]][_0x84ee[110]]= _0x84ee[111];_0x76dex3c[_0x84ee[5]](_0x84ee[84],_0x84ee[112]);_0x76dex3c[_0x84ee[5]](_0x84ee[84],_0x84ee[113]);_0x76dex3c[_0x84ee[5]](_0x84ee[114],IMAGE_PATH+ _0x84ee[115]);_0x76dex2a[_0x84ee[25]](_0x76dex3c);mxUtils[_0x84ee[116]](_0x76dex2a);mxUtils[_0x84ee[78]](_0x76dex2a,_0x84ee[117]+ mxClient[_0x84ee[118]]);mxUtils[_0x84ee[116]](_0x76dex2a);var _0x76dex3d=document[_0x84ee[2]](_0x84ee[119]);_0x76dex3d[_0x84ee[5]](_0x84ee[120],_0x84ee[121]);_0x76dex3d[_0x84ee[5]](_0x84ee[93],_0x84ee[122]);mxUtils[_0x84ee[78]](_0x76dex3d,_0x84ee[123]);_0x76dex2a[_0x84ee[25]](_0x76dex3d);mxUtils[_0x84ee[116]](_0x76dex2a);mxUtils[_0x84ee[116]](_0x76dex2a);var _0x76dex3a=mxUtils[_0x84ee[80]](mxResources[_0x84ee[76]](_0x84ee[65]),function(){_0x76dex8[_0x84ee[79]]()});_0x76dex3a[_0x84ee[31]]= _0x84ee[106];_0x76dex2b[_0x84ee[25]](_0x76dex3a);_0x76dex28[_0x84ee[25]](_0x76dex29);_0x76dex28[_0x84ee[25]](_0x76dex2a);_0x76dex28[_0x84ee[25]](_0x76dex2b);this[_0x84ee[64]]= _0x76dex28}function SaveDialog(_0x76dex8){var _0x76dex28=_0x76dex8[_0x84ee[50]](_0x84ee[69]);var _0x76dex29=_0x76dex8[_0x84ee[50]](_0x84ee[70]);var _0x76dex2a=_0x76dex8[_0x84ee[50]](_0x84ee[71]);var _0x76dex2b=_0x76dex8[_0x84ee[50]](_0x84ee[72]);var _0x76dex2c=_0x76dex8[_0x84ee[74]](_0x84ee[73]);mxUtils[_0x84ee[78]](_0x76dex2c,mxResources[_0x84ee[76]](_0x84ee[124]));var _0x76dex2d=mxUtils[_0x84ee[80]](_0x84ee[40],function(){_0x76dex8[_0x84ee[79]]()});_0x76dex2d[_0x84ee[31]]= _0x84ee[65];_0x76dex29[_0x84ee[25]](_0x76dex2d);_0x76dex29[_0x84ee[25]](_0x76dex2c);var _0x76dex3f=_0x84ee[125];var _0x76dex40=_0x84ee[126]+ _0x76dex3f;var _0x76dex2=_0x76dex8[_0x84ee[13]][_0x84ee[127]]();var _0x76dex2e=_0x76dex8[_0x84ee[50]](_0x84ee[81]);var _0x76dex2f=_0x76dex8[_0x84ee[50]](_0x84ee[128]);var _0x76dex41=_0x76dex8[_0x84ee[50]](_0x84ee[129]);var _0x76dex42=document[_0x84ee[2]](_0x84ee[130]);_0x76dex42[_0x84ee[31]]= _0x84ee[131];mxUtils[_0x84ee[78]](_0x76dex42,mxResources[_0x84ee[76]](_0x76dex3f));_0x76dex2f[_0x84ee[25]](_0x76dex42);var _0x76dex43=document[_0x84ee[2]](_0x84ee[1]);_0x76dex43[_0x84ee[5]](_0x84ee[23],_0x76dex2+ _0x84ee[132]);_0x76dex43[_0x84ee[5]](_0x84ee[133],_0x76dex40);_0x76dex43[_0x84ee[31]]= _0x84ee[134];_0x76dex41[_0x84ee[25]](_0x76dex43);_0x76dex2e[_0x84ee[25]](_0x76dex2f);_0x76dex2e[_0x84ee[25]](_0x76dex41);_0x76dex2a[_0x84ee[25]](_0x76dex2e);var _0x76dex37=mxUtils[_0x84ee[80]](mxResources[_0x84ee[76]](_0x84ee[135]),function(){_0x76dex8[_0x84ee[124]](_0x76dex43[_0x84ee[23]]);_0x76dex8[_0x84ee[79]]()});_0x76dex37[_0x84ee[31]]= _0x84ee[104];var _0x76dex3a=mxUtils[_0x84ee[80]](mxResources[_0x84ee[76]](_0x84ee[105]),function(){_0x76dex8[_0x84ee[79]]()});_0x76dex3a[_0x84ee[31]]= _0x84ee[106];_0x76dex2b[_0x84ee[25]](_0x76dex37);_0x76dex2b[_0x84ee[25]](_0x76dex3a);_0x76dex28[_0x84ee[25]](_0x76dex29);_0x76dex28[_0x84ee[25]](_0x76dex2a);_0x76dex28[_0x84ee[25]](_0x76dex2b);this[_0x84ee[64]]= _0x76dex28}function NewDialog(_0x76dex8){var _0x76dex28=_0x76dex8[_0x84ee[50]](_0x84ee[69]);var _0x76dex29=_0x76dex8[_0x84ee[50]](_0x84ee[70]);var _0x76dex2a=_0x76dex8[_0x84ee[50]](_0x84ee[71]);var _0x76dex2b=_0x76dex8[_0x84ee[50]](_0x84ee[72]);var _0x76dex2c=_0x76dex8[_0x84ee[74]](_0x84ee[73]);mxUtils[_0x84ee[78]](_0x76dex2c,mxResources[_0x84ee[76]](_0x84ee[136]));var _0x76dex2d=mxUtils[_0x84ee[80]](_0x84ee[40],function(){_0x76dex8[_0x84ee[79]]()});_0x76dex2d[_0x84ee[31]]= _0x84ee[65];_0x76dex29[_0x84ee[25]](_0x76dex2d);_0x76dex29[_0x84ee[25]](_0x76dex2c);var _0x76dex3f=_0x84ee[125];var _0x76dex40=_0x84ee[126]+ _0x76dex3f;var _0x76dex2=_0x76dex8[_0x84ee[13]][_0x84ee[127]]();var _0x76dex2e=_0x76dex8[_0x84ee[50]](_0x84ee[81]);var _0x76dex2f=_0x76dex8[_0x84ee[50]](_0x84ee[128]);var _0x76dex41=_0x76dex8[_0x84ee[50]](_0x84ee[129]);var _0x76dex42=document[_0x84ee[2]](_0x84ee[130]);_0x76dex42[_0x84ee[31]]= _0x84ee[131];mxUtils[_0x84ee[78]](_0x76dex42,mxResources[_0x84ee[76]](_0x76dex3f));_0x76dex2f[_0x84ee[25]](_0x76dex42);var _0x76dex43=document[_0x84ee[2]](_0x84ee[1]);_0x76dex43[_0x84ee[5]](_0x84ee[23],_0x76dex2+ _0x84ee[137]);_0x76dex43[_0x84ee[5]](_0x84ee[133],_0x76dex40);_0x76dex43[_0x84ee[31]]= _0x84ee[134];_0x76dex41[_0x84ee[25]](_0x76dex43);_0x76dex2e[_0x84ee[25]](_0x76dex2f);_0x76dex2e[_0x84ee[25]](_0x76dex41);_0x76dex2a[_0x84ee[25]](_0x76dex2e);var _0x76dex37=mxUtils[_0x84ee[80]](mxResources[_0x84ee[76]](_0x84ee[136]),function(){_0x76dex8[_0x84ee[136]](_0x76dex43[_0x84ee[23]]);_0x76dex8[_0x84ee[79]]()});_0x76dex37[_0x84ee[31]]= _0x84ee[104];var _0x76dex3a=mxUtils[_0x84ee[80]](mxResources[_0x84ee[76]](_0x84ee[105]),function(){_0x76dex8[_0x84ee[79]]()});_0x76dex3a[_0x84ee[31]]= _0x84ee[106];_0x76dex2b[_0x84ee[25]](_0x76dex37);_0x76dex2b[_0x84ee[25]](_0x76dex3a);_0x76dex28[_0x84ee[25]](_0x76dex29);_0x76dex28[_0x84ee[25]](_0x76dex2a);_0x76dex28[_0x84ee[25]](_0x76dex2b);this[_0x84ee[64]]= _0x76dex28}function VariableDialog(_0x76dex8){var _0x76dex28=_0x76dex8[_0x84ee[50]](_0x84ee[69]);var _0x76dex29=_0x76dex8[_0x84ee[50]](_0x84ee[70]);var _0x76dex2a=_0x76dex8[_0x84ee[50]](_0x84ee[71]);var _0x76dex2b=_0x76dex8[_0x84ee[50]](_0x84ee[72]);var _0x76dex2c=_0x76dex8[_0x84ee[74]](_0x84ee[73]);mxUtils[_0x84ee[78]](_0x76dex2c,mxResources[_0x84ee[76]](_0x84ee[138]));var _0x76dex2d=mxUtils[_0x84ee[80]](_0x84ee[40],function(){_0x76dex8[_0x84ee[79]]()});_0x76dex2d[_0x84ee[31]]= _0x84ee[65];_0x76dex29[_0x84ee[25]](_0x76dex2d);_0x76dex29[_0x84ee[25]](_0x76dex2c);var _0x76dex3f=_0x84ee[125];var _0x76dex40=_0x84ee[126]+ _0x76dex3f;var _0x76dex2=_0x76dex8[_0x84ee[13]][_0x84ee[127]]();var _0x76dex2e=_0x76dex8[_0x84ee[50]](_0x84ee[81]);var _0x76dex2f=_0x76dex8[_0x84ee[50]](_0x84ee[128]);var _0x76dex41=_0x76dex8[_0x84ee[50]](_0x84ee[129]);var _0x76dex42=document[_0x84ee[2]](_0x84ee[130]);_0x76dex42[_0x84ee[31]]= _0x84ee[131];mxUtils[_0x84ee[78]](_0x76dex42,mxResources[_0x84ee[76]](_0x76dex3f));_0x76dex2f[_0x84ee[25]](_0x76dex42);var _0x76dex43=document[_0x84ee[2]](_0x84ee[1]);_0x76dex43[_0x84ee[5]](_0x84ee[23],_0x84ee[139]);_0x76dex43[_0x84ee[5]](_0x84ee[133],_0x76dex40);_0x76dex43[_0x84ee[31]]= _0x84ee[134];_0x76dex41[_0x84ee[25]](_0x76dex43);_0x76dex2e[_0x84ee[25]](_0x76dex2f);_0x76dex2e[_0x84ee[25]](_0x76dex41);_0x76dex2a[_0x84ee[25]](_0x76dex2e);var _0x76dex37=mxUtils[_0x84ee[80]](mxResources[_0x84ee[76]](_0x84ee[136]),function(){_0x76dex8[_0x84ee[138]](_0x76dex43[_0x84ee[23]]);_0x76dex8[_0x84ee[79]]()});_0x76dex37[_0x84ee[31]]= _0x84ee[104];var _0x76dex3a=mxUtils[_0x84ee[80]](mxResources[_0x84ee[76]](_0x84ee[105]),function(){_0x76dex8[_0x84ee[79]]()});_0x76dex3a[_0x84ee[31]]= _0x84ee[106];_0x76dex2b[_0x84ee[25]](_0x76dex37);_0x76dex2b[_0x84ee[25]](_0x76dex3a);_0x76dex28[_0x84ee[25]](_0x76dex29);_0x76dex28[_0x84ee[25]](_0x76dex2a);_0x76dex28[_0x84ee[25]](_0x76dex2b);this[_0x84ee[64]]= _0x76dex28}function OpenDialog(_0x76dex8){var _0x76dex28=_0x76dex8[_0x84ee[50]](_0x84ee[69]);var _0x76dex29=_0x76dex8[_0x84ee[50]](_0x84ee[70]);var _0x76dex2a=_0x76dex8[_0x84ee[50]](_0x84ee[71]);var _0x76dex2b=_0x76dex8[_0x84ee[50]](_0x84ee[72]);var _0x76dex2c=_0x76dex8[_0x84ee[74]](_0x84ee[73]);mxUtils[_0x84ee[78]](_0x76dex2c,mxResources[_0x84ee[76]](_0x84ee[8]));var _0x76dex2d=mxUtils[_0x84ee[80]](_0x84ee[40],function(){_0x76dex8[_0x84ee[79]]()});_0x76dex2d[_0x84ee[31]]= _0x84ee[65];_0x76dex29[_0x84ee[25]](_0x76dex2d);_0x76dex29[_0x84ee[25]](_0x76dex2c);var _0x76dex2e=_0x76dex8[_0x84ee[50]](_0x84ee[81]);var _0x76dex2f=_0x76dex8[_0x84ee[50]](_0x84ee[128]);var _0x76dex41=_0x76dex8[_0x84ee[50]](_0x84ee[129]);var _0x76dex42=document[_0x84ee[2]](_0x84ee[130]);_0x76dex42[_0x84ee[31]]= _0x84ee[131];mxUtils[_0x84ee[78]](_0x76dex42,mxResources[_0x84ee[76]](_0x84ee[125]));_0x76dex2f[_0x84ee[25]](_0x76dex42);var _0x76dexb= new XMLHttpRequest();_0x76dexb[_0x84ee[8]](_0x84ee[7],_0x84ee[140],false);_0x76dexb[_0x84ee[14]](_0x84ee[9],_0x84ee[10]+ _0x76dex8[_0x84ee[13]][_0x84ee[12]][_0x84ee[11]]);_0x76dexb[_0x84ee[15]](null);var _0x76dexc=[];if(_0x76dexb[_0x84ee[16]]=== 200){_0x76dexc= JSON[_0x84ee[18]](_0x76dexb[_0x84ee[17]])[_0x84ee[30]]};var _0x76dex43=document[_0x84ee[2]](_0x84ee[19]);for(var _0x76dex47=0;_0x76dex47< _0x76dexc[_0x84ee[141]];_0x76dex47++){var _0x76dexd=document[_0x84ee[2]](_0x84ee[20]);_0x76dexd[_0x84ee[21]]= _0x76dexc[_0x76dex47][_0x84ee[125]];_0x76dexd[_0x84ee[23]]= _0x76dexc[_0x76dex47][_0x84ee[133]];_0x76dex43[_0x84ee[25]](_0x76dexd)};_0x76dex43[_0x84ee[31]]= _0x84ee[134];_0x76dex41[_0x84ee[25]](_0x76dex43);_0x76dex2e[_0x84ee[25]](_0x76dex2f);_0x76dex2e[_0x84ee[25]](_0x76dex41);_0x76dex2a[_0x84ee[25]](_0x76dex2e);var _0x76dex37=mxUtils[_0x84ee[80]](mxResources[_0x84ee[76]](_0x84ee[8]),function(){console[_0x84ee[94]](_0x76dex43);console[_0x84ee[94]](_0x76dex43[_0x84ee[23]]);window[_0x84ee[8]](_0x84ee[142]+ _0x76dex43[_0x84ee[23]],_0x84ee[122]);_0x76dex8[_0x84ee[79]]()});_0x76dex37[_0x84ee[31]]= _0x84ee[104];var _0x76dex3a=mxUtils[_0x84ee[80]](mxResources[_0x84ee[76]](_0x84ee[105]),function(){_0x76dex8[_0x84ee[79]]()});_0x76dex3a[_0x84ee[31]]= _0x84ee[106];_0x76dex2b[_0x84ee[25]](_0x76dex37);_0x76dex2b[_0x84ee[25]](_0x76dex3a);_0x76dex28[_0x84ee[25]](_0x76dex29);_0x76dex28[_0x84ee[25]](_0x76dex2a);_0x76dex28[_0x84ee[25]](_0x76dex2b);this[_0x84ee[64]]= _0x76dex28}function RenameDialog(_0x76dex8){var _0x76dex28=_0x76dex8[_0x84ee[50]](_0x84ee[69]);var _0x76dex29=_0x76dex8[_0x84ee[50]](_0x84ee[70]);var _0x76dex2a=_0x76dex8[_0x84ee[50]](_0x84ee[71]);var _0x76dex2b=_0x76dex8[_0x84ee[50]](_0x84ee[72]);var _0x76dex2c=_0x76dex8[_0x84ee[74]](_0x84ee[73]);mxUtils[_0x84ee[78]](_0x76dex2c,mxResources[_0x84ee[76]](_0x84ee[143]));var _0x76dex2d=mxUtils[_0x84ee[80]](_0x84ee[40],function(){_0x76dex8[_0x84ee[79]]()});_0x76dex2d[_0x84ee[31]]= _0x84ee[65];_0x76dex29[_0x84ee[25]](_0x76dex2d);_0x76dex29[_0x84ee[25]](_0x76dex2c);var _0x76dex2e=_0x76dex8[_0x84ee[50]](_0x84ee[81]);var _0x76dex2f=_0x76dex8[_0x84ee[50]](_0x84ee[128]);var _0x76dex41=_0x76dex8[_0x84ee[50]](_0x84ee[129]);var _0x76dex42=document[_0x84ee[2]](_0x84ee[130]);_0x76dex42[_0x84ee[31]]= _0x84ee[131];mxUtils[_0x84ee[78]](_0x76dex42,mxResources[_0x84ee[76]](_0x84ee[125]));_0x76dex2f[_0x84ee[25]](_0x76dex42);var _0x76dex3f=_0x76dex8[_0x84ee[13]][_0x84ee[144]];var _0x76dex3=document[_0x84ee[2]](_0x84ee[1]);_0x76dex3[_0x84ee[5]](_0x84ee[23],_0x76dex3f);_0x76dex3[_0x84ee[31]]= _0x84ee[134];_0x76dex41[_0x84ee[25]](_0x76dex3);_0x76dex2e[_0x84ee[25]](_0x76dex2f);_0x76dex2e[_0x84ee[25]](_0x76dex41);_0x76dex2a[_0x84ee[25]](_0x76dex2e);var _0x76dex37=mxUtils[_0x84ee[80]](mxResources[_0x84ee[76]](_0x84ee[135]),function(){var _0x76dexb= new XMLHttpRequest();_0x76dexb[_0x84ee[8]](_0x84ee[145],SAVE_URL+ _0x76dex8[_0x84ee[13]][_0x84ee[12]][_0x84ee[133]],true);_0x76dexb[_0x84ee[14]](_0x84ee[146],_0x84ee[147]);_0x76dexb[_0x84ee[14]](_0x84ee[9],_0x84ee[10]+ _0x76dex8[_0x84ee[13]][_0x84ee[12]][_0x84ee[11]]);_0x76dexb[_0x84ee[15]](_0x84ee[148]+ _0x76dex3[_0x84ee[23]]);_0x76dexb[_0x84ee[95]]= function(_0x76dex35){if(_0x76dexb[_0x84ee[16]]=== 200){_0x76dex8[_0x84ee[13]][_0x84ee[150]](_0x84ee[149]);_0x76dex8[_0x84ee[13]][_0x84ee[144]]= _0x76dex3[_0x84ee[23]]}else {_0x76dex8[_0x84ee[13]][_0x84ee[150]](JSON[_0x84ee[18]](_0x76dexb[_0x84ee[17]])[_0x84ee[152]][0][_0x84ee[151]])}};_0x76dexb[_0x84ee[153]]= function(_0x76dex35){mxUtils[_0x84ee[155]](_0x76dexb[_0x84ee[154]])};_0x76dex8[_0x84ee[79]]()});_0x76dex37[_0x84ee[31]]= _0x84ee[104];var _0x76dex3a=mxUtils[_0x84ee[80]](mxResources[_0x84ee[76]](_0x84ee[105]),function(){_0x76dex8[_0x84ee[79]]()});_0x76dex3a[_0x84ee[31]]= _0x84ee[106];_0x76dex2b[_0x84ee[25]](_0x76dex37);_0x76dex2b[_0x84ee[25]](_0x76dex3a);_0x76dex28[_0x84ee[25]](_0x76dex29);_0x76dex28[_0x84ee[25]](_0x76dex2a);_0x76dex28[_0x84ee[25]](_0x76dex2b);this[_0x84ee[64]]= _0x76dex28}function EditFileDialog(_0x76dex8){var _0x76dex28=_0x76dex8[_0x84ee[50]](_0x84ee[69]);var _0x76dex29=_0x76dex8[_0x84ee[50]](_0x84ee[70]);var _0x76dex2a=_0x76dex8[_0x84ee[50]](_0x84ee[71]);var _0x76dex2b=_0x76dex8[_0x84ee[50]](_0x84ee[72]);var _0x76dex2c=_0x76dex8[_0x84ee[74]](_0x84ee[73]);mxUtils[_0x84ee[78]](_0x76dex2c,mxResources[_0x84ee[76]](_0x84ee[156]));var _0x76dex2d=mxUtils[_0x84ee[80]](_0x84ee[40],function(){_0x76dex8[_0x84ee[79]]()});_0x76dex2d[_0x84ee[31]]= _0x84ee[65];_0x76dex29[_0x84ee[25]](_0x76dex2d);_0x76dex29[_0x84ee[25]](_0x76dex2c);var _0x76dex2e=_0x76dex8[_0x84ee[50]](_0x84ee[81]);var _0x76dex2f=_0x76dex8[_0x84ee[50]](_0x84ee[82]);var _0x76dex30=document[_0x84ee[2]](_0x84ee[83]);_0x76dex30[_0x84ee[53]][_0x84ee[84]]= _0x84ee[85];_0x76dex30[_0x84ee[53]][_0x84ee[86]]= _0x84ee[87];_0x76dex30[_0x84ee[23]]= mxUtils[_0x84ee[158]](_0x76dex8[_0x84ee[13]][_0x84ee[157]]());if(fileSupport){function _0x76dex4a(_0x76dex32){_0x76dex32[_0x84ee[159]]();_0x76dex32[_0x84ee[160]]();if(_0x76dex32[_0x84ee[161]][_0x84ee[92]][_0x84ee[141]]> 0){var _0x76dex4b=_0x76dex32[_0x84ee[161]][_0x84ee[92]][0];var _0x76dex4c= new FileReader();_0x76dex4c[_0x84ee[95]]= function(_0x76dex35){_0x76dex30[_0x84ee[23]]= _0x76dex35[_0x84ee[93]][_0x84ee[96]]};_0x76dex4c[_0x84ee[97]](_0x76dex4b)}}function _0x76dex4d(_0x76dex32){_0x76dex32[_0x84ee[159]]();_0x76dex32[_0x84ee[160]]()}_0x76dex30[_0x84ee[100]](_0x84ee[162],_0x76dex4d,false);_0x76dex30[_0x84ee[100]](_0x84ee[163],_0x76dex4a,false)};_0x76dex2f[_0x84ee[25]](_0x76dex30);_0x76dex2e[_0x84ee[25]](_0x76dex2f);_0x76dex2a[_0x84ee[25]](_0x76dex2e);var _0x76dex37=mxUtils[_0x84ee[80]](mxResources[_0x84ee[76]](_0x84ee[135]),function(){var _0x76dex39=mxUtils[_0x84ee[101]](_0x76dex30[_0x84ee[23]]);_0x76dex8[_0x84ee[13]][_0x84ee[102]](_0x76dex39[_0x84ee[48]]);_0x76dex8[_0x84ee[79]]()});_0x76dex37[_0x84ee[31]]= _0x84ee[104];var _0x76dex3a=mxUtils[_0x84ee[80]](mxResources[_0x84ee[76]](_0x84ee[105]),function(){_0x76dex8[_0x84ee[79]]()});_0x76dex3a[_0x84ee[31]]= _0x84ee[106];_0x76dex2b[_0x84ee[25]](_0x76dex37);_0x76dex2b[_0x84ee[25]](_0x76dex3a);_0x76dex28[_0x84ee[25]](_0x76dex29);_0x76dex28[_0x84ee[25]](_0x76dex2a);_0x76dex28[_0x84ee[25]](_0x76dex2b);this[_0x84ee[64]]= _0x76dex28}function ExportDialog(_0x76dex8){var _0x76dex28=_0x76dex8[_0x84ee[50]](_0x84ee[69]);var _0x76dex29=_0x76dex8[_0x84ee[50]](_0x84ee[70]);var _0x76dex2a=_0x76dex8[_0x84ee[50]](_0x84ee[164]);var _0x76dex2b=_0x76dex8[_0x84ee[50]](_0x84ee[72]);var _0x76dex2c=_0x76dex8[_0x84ee[74]](_0x84ee[73]);mxUtils[_0x84ee[78]](_0x76dex2c,mxResources[_0x84ee[76]](_0x84ee[165])+ _0x84ee[77]);var _0x76dex2d=mxUtils[_0x84ee[80]](_0x84ee[40],function(){_0x76dex8[_0x84ee[79]]()});_0x76dex2d[_0x84ee[31]]= _0x84ee[65];_0x76dex29[_0x84ee[25]](_0x76dex2d);_0x76dex29[_0x84ee[25]](_0x76dex2c);var _0x76dex4f=_0x76dex8[_0x84ee[50]](_0x84ee[166]);var _0x76dex50=_0x76dex8[_0x84ee[50]](_0x84ee[167]);var _0x76dex42=document[_0x84ee[2]](_0x84ee[130]);_0x76dex42[_0x84ee[31]]= _0x84ee[168];mxUtils[_0x84ee[78]](_0x76dex42,mxResources[_0x84ee[76]](_0x84ee[144]));var _0x76dex3=document[_0x84ee[2]](_0x84ee[1]);_0x76dex3[_0x84ee[5]](_0x84ee[23],_0x76dex8[_0x84ee[13]][_0x84ee[127]]());_0x76dex3[_0x84ee[31]]= _0x84ee[134];var _0x76dex25=_0x76dex8[_0x84ee[50]](_0x84ee[169]);_0x76dex25[_0x84ee[25]](_0x76dex3);_0x76dex50[_0x84ee[25]](_0x76dex42);_0x76dex50[_0x84ee[25]](_0x76dex25);_0x76dex4f[_0x84ee[25]](_0x76dex50);_0x76dex2a[_0x84ee[25]](_0x76dex4f);var _0x76dex37=mxUtils[_0x84ee[80]](mxResources[_0x84ee[76]](_0x84ee[165]),mxUtils[_0x84ee[103]](this,function(_0x76dex38){_0x76dex8[_0x84ee[135]](false);var _0x76dex51=encodeURIComponent(mxUtils[_0x84ee[170]](_0x76dex8[_0x84ee[13]][_0x84ee[157]]())); new mxXmlRequest(SAVE_URL+ _0x76dex8[_0x84ee[13]][_0x84ee[12]][_0x84ee[133]]+ _0x84ee[172],_0x84ee[173]+ _0x76dex3[_0x84ee[23]],_0x84ee[7])[_0x84ee[171]](document,_0x84ee[122]);_0x76dex8[_0x84ee[79]]()}));_0x76dex37[_0x84ee[31]]= _0x84ee[104];var _0x76dex3a=mxUtils[_0x84ee[80]](mxResources[_0x84ee[76]](_0x84ee[105]),function(){_0x76dex8[_0x84ee[79]]()});_0x76dex3a[_0x84ee[31]]= _0x84ee[106];_0x76dex2b[_0x84ee[25]](_0x76dex37);_0x76dex2b[_0x84ee[25]](_0x76dex3a);_0x76dex28[_0x84ee[25]](_0x76dex29);_0x76dex28[_0x84ee[25]](_0x76dex2a);_0x76dex28[_0x84ee[25]](_0x76dex2b);this[_0x84ee[64]]= _0x76dex28}function GeneralDialog(_0x76dex8,_0x76dex53){var _0x76dex54=_0x76dex8[_0x84ee[13]][_0x84ee[174]];var _0x76dex28=_0x76dex8[_0x84ee[50]](_0x84ee[69]);var _0x76dex29=_0x76dex8[_0x84ee[50]](_0x84ee[70]);var _0x76dex2a=_0x76dex8[_0x84ee[50]](_0x84ee[175]);var _0x76dex2b=_0x76dex8[_0x84ee[50]](_0x84ee[72]);var _0x76dex2c=_0x76dex8[_0x84ee[74]](_0x84ee[73]);mxUtils[_0x84ee[78]](_0x76dex2c,mxResources[_0x84ee[76]](_0x84ee[156])+ _0x84ee[176]+ mxResources[_0x84ee[76]](_0x76dex53[_0x84ee[23]][_0x84ee[177]]));var _0x76dex2d=mxUtils[_0x84ee[80]](_0x84ee[40],function(){_0x76dex8[_0x84ee[79]]()});_0x76dex2d[_0x84ee[31]]= _0x84ee[65];_0x76dex29[_0x84ee[25]](_0x76dex2d);_0x76dex29[_0x84ee[25]](_0x76dex2c);var _0x76dex55=_0x76dex8[_0x84ee[50]](_0x84ee[166]);_0x76dex55[_0x84ee[5]](_0x84ee[133],_0x84ee[178]);var _0x76dex56=_0x76dex53[_0x84ee[23]][_0x84ee[179]][_0x84ee[141]];var _0x76dex4f=_0x76dex8[_0x84ee[50]](_0x84ee[166]);for(var _0x76dex57=0;_0x76dex57< _0x76dex56;_0x76dex57++){var _0x76dex3f=_0x76dex53[_0x84ee[23]][_0x84ee[179]][_0x76dex57][_0x84ee[125]];var _0x76dex40=_0x84ee[126]+ _0x76dex3f;var _0x76dex2=_0x76dex53[_0x84ee[23]][_0x84ee[179]][_0x76dex57][_0x84ee[23]];console[_0x84ee[94]](_0x76dex3f);var _0x76dex50=_0x76dex8[_0x84ee[50]]((_0x76dex57== _0x76dex56- 1)?_0x84ee[167]:_0x84ee[180]);var _0x76dex42=document[_0x84ee[2]](_0x84ee[130]);_0x76dex42[_0x84ee[31]]= _0x84ee[168];mxUtils[_0x84ee[78]](_0x76dex42,mxResources[_0x84ee[76]](_0x76dex3f));_0x76dex50[_0x84ee[25]](_0x76dex42);var _0x76dex3;switch(_0x76dex3f){case _0x84ee[133]:_0x76dex3= document[_0x84ee[2]](_0x84ee[1]);_0x76dex2= _0x76dex53[_0x84ee[133]];_0x76dex3[_0x84ee[5]](_0x84ee[23],_0x76dex2);_0x76dex3[_0x84ee[5]](_0x84ee[181],true);_0x76dex3[_0x84ee[31]]= _0x84ee[134];break;case _0x84ee[187]:_0x76dex3= document[_0x84ee[2]](_0x84ee[1]);_0x76dex3[_0x84ee[5]](_0x84ee[3],_0x84ee[80]);_0x76dex3[_0x84ee[182]]= function(){if(this[_0x84ee[23]]== _0x84ee[183]){this[_0x84ee[5]](_0x84ee[23],_0x84ee[184]);this[_0x84ee[31]]= _0x84ee[185]}else {this[_0x84ee[31]]= _0x84ee[186];this[_0x84ee[5]](_0x84ee[23],_0x84ee[183])}};_0x76dex3[_0x84ee[5]](_0x84ee[23],_0x76dex2);_0x76dex3[_0x84ee[31]]= (_0x76dex2== _0x84ee[183]?_0x84ee[186]:_0x84ee[185]);break;case _0x84ee[21]:_0x76dex3= document[_0x84ee[2]](_0x84ee[83]);_0x76dex3[_0x84ee[188]]= _0x76dex2;_0x76dex3[_0x84ee[31]]= _0x84ee[134];break;case _0x84ee[189]:_0x76dex3= document[_0x84ee[2]](_0x84ee[83]);_0x76dex3[_0x84ee[188]]= _0x76dex2;_0x76dex3[_0x84ee[31]]= _0x84ee[134];break;case _0x84ee[190]:_0x76dex3= document[_0x84ee[2]](_0x84ee[83]);_0x76dex3[_0x84ee[188]]= _0x76dex2;_0x76dex3[_0x84ee[31]]= _0x84ee[134];break;case _0x84ee[193]:_0x76dex3= document[_0x84ee[2]](_0x84ee[1]);_0x76dex3[_0x84ee[5]](_0x84ee[23],_0x76dex2);_0x76dex3[_0x84ee[5]](_0x84ee[191],_0x84ee[192]);_0x76dex3[_0x84ee[31]]= _0x84ee[134];break;case _0x84ee[195]:_0x76dex3= createDropdownFromApi(_0x84ee[194],_0x76dex2,_0x84ee[125],_0x84ee[133],_0x76dex8);break;case _0x84ee[198]:_0x76dex3= document[_0x84ee[2]](_0x84ee[83]);_0x76dex3[_0x84ee[188]]= _0x76dex2;_0x76dex3[_0x84ee[31]]= _0x84ee[134];_0x76dex3[_0x84ee[5]](_0x84ee[196],_0x84ee[197]);break;case _0x84ee[201]:var _0x76dex3=mxUtils[_0x84ee[80]](_0x84ee[199],function(){var _0x76dex58=createDynamicInput(null,null,_0x76dex8);_0x76dex55[_0x84ee[25]](_0x76dex58);_0x76dex2a[_0x84ee[25]](_0x76dex55)});_0x76dex3[_0x84ee[31]]= _0x84ee[200];break;default:_0x76dex3= document[_0x84ee[2]](_0x84ee[1]);_0x76dex3[_0x84ee[5]](_0x84ee[23],_0x76dex2);_0x76dex3[_0x84ee[31]]= _0x84ee[134];break};_0x76dex3[_0x84ee[5]](_0x84ee[133],_0x76dex40);var _0x76dex25=_0x76dex8[_0x84ee[50]](_0x84ee[169]);_0x76dex25[_0x84ee[25]](_0x76dex3);if(mxResources[_0x84ee[76]](_0x84ee[202]+ _0x76dex3f)){var _0x76dex59=_0x76dex8[_0x84ee[50]](_0x84ee[203]);_0x76dex59[_0x84ee[31]]= _0x84ee[204];mxUtils[_0x84ee[78]](_0x76dex59,mxResources[_0x84ee[76]](_0x84ee[202]+ _0x76dex3f));_0x76dex25[_0x84ee[25]](_0x76dex59)};_0x76dex50[_0x84ee[25]](_0x76dex25);_0x76dex4f[_0x84ee[25]](_0x76dex50)};_0x76dex2a[_0x84ee[25]](_0x76dex4f);if(_0x76dex53[_0x84ee[23]][_0x84ee[177]]== _0x84ee[1]){if(_0x76dex53[_0x84ee[205]]){for(var _0x76dex47=0;_0x76dex47< _0x76dex53[_0x84ee[205]][_0x84ee[141]];_0x76dex47++){var _0x76dex5a=_0x84ee[40];var _0x76dex5b=_0x84ee[40];_[_0x84ee[28]](_0x76dex53[_0x84ee[205]][_0x76dex47][_0x84ee[23]][_0x84ee[179]],function(_0x76dex5c){if(_0x76dex5c[_0x84ee[125]]== _0x84ee[3]){_0x76dex5a= _0x76dex5c[_0x84ee[23]]}else {if(_0x76dex5c[_0x84ee[125]]== _0x84ee[130]){_0x76dex5b= _0x76dex5c[_0x84ee[23]]}}});var _0x76dex58=createDynamicInput(_0x76dex5a,_0x76dex5b,_0x76dex8);_0x76dex55[_0x84ee[25]](_0x76dex58)}}};_0x76dex2a[_0x84ee[25]](_0x76dex55);var _0x76dex37=mxUtils[_0x84ee[80]](mxResources[_0x84ee[76]](_0x84ee[135]),mxUtils[_0x84ee[103]](this,function(_0x76dex38){for(var _0x76dex57=0;_0x76dex57< _0x76dex53[_0x84ee[23]][_0x84ee[179]][_0x84ee[141]];_0x76dex57++){var _0x76dex40=_0x84ee[126]+ _0x76dex53[_0x84ee[23]][_0x84ee[179]][_0x76dex57][_0x84ee[125]];var _0x76dex3f=_0x76dex53[_0x84ee[23]][_0x84ee[179]][_0x76dex57][_0x84ee[125]];console[_0x84ee[94]](_0x76dex3f);_0x76dex53[_0x84ee[5]](_0x76dex3f,document[_0x84ee[206]](_0x76dex40)[_0x84ee[23]]);console[_0x84ee[94]](document[_0x84ee[206]](_0x76dex40)[_0x84ee[23]])};if(_0x76dex53[_0x84ee[23]][_0x84ee[177]]== _0x84ee[1]){if(_0x76dex54[_0x84ee[208]][_0x84ee[207]](_0x76dex53)){_0x76dex53[_0x84ee[205]]= []};if(document[_0x84ee[206]](_0x84ee[178])){var _0x76dex55=document[_0x84ee[206]](_0x84ee[178])[_0x84ee[205]];for(var _0x76dex47=0;_0x76dex47< _0x76dex55[_0x84ee[141]];_0x76dex47++){var _0x76dex5d=_0x76dex55[_0x76dex47][_0x84ee[205]][1];var _0x76dex5e=_0x76dex55[_0x76dex47][_0x84ee[205]][0];var _0x76dex39=mxUtils[_0x84ee[209]]();var _0x76dex5f=_0x76dex39[_0x84ee[2]](_0x84ee[178]);_0x76dex5f[_0x84ee[5]](_0x84ee[3],_0x76dex55[_0x76dex47][_0x84ee[210]](_0x84ee[19])[0][_0x84ee[23]]);_0x76dex5f[_0x84ee[5]](_0x84ee[130],_0x76dex55[_0x76dex47][_0x84ee[210]](_0x84ee[1])[0][_0x84ee[23]]);var _0x76dex60= new mxCell(_0x76dex5f);_0x76dex54[_0x84ee[208]][_0x84ee[201]](_0x76dex53,_0x76dex60)}}};_0x76dex54[_0x84ee[211]](_0x76dex53);_0x76dex8[_0x84ee[79]]()}));_0x76dex37[_0x84ee[31]]= _0x84ee[104];var _0x76dex3a=mxUtils[_0x84ee[80]](mxResources[_0x84ee[76]](_0x84ee[105]),function(){_0x76dex8[_0x84ee[79]]()});_0x76dex3a[_0x84ee[31]]= _0x84ee[106];_0x76dex2b[_0x84ee[25]](_0x76dex37);_0x76dex2b[_0x84ee[25]](_0x76dex3a);_0x76dex28[_0x84ee[25]](_0x76dex29);_0x76dex28[_0x84ee[25]](_0x76dex2a);_0x76dex28[_0x84ee[25]](_0x76dex2b);this[_0x84ee[64]]= _0x76dex28}function createDynamicInput(_0x76dex5a,_0x76dex5b,_0x76dex8){var _0x76dex58=_0x76dex8[_0x84ee[50]](_0x84ee[180]);var _0x76dex2f=_0x76dex8[_0x84ee[50]](_0x84ee[212]);var _0x76dex41=_0x76dex8[_0x84ee[50]](_0x84ee[212]);var _0x76dex62=_0x76dex8[_0x84ee[50]](_0x84ee[213]);var _0x76dex3=document[_0x84ee[2]](_0x84ee[1]);_0x76dex3[_0x84ee[5]](_0x84ee[191],_0x84ee[214]);_0x76dex3[_0x84ee[23]]= _0x76dex5b;_0x76dex3[_0x84ee[31]]= _0x84ee[134];_0x76dex2f[_0x84ee[25]](_0x76dex3);var _0x76dex43=document[_0x84ee[2]](_0x84ee[19]);var _0x76dexd=document[_0x84ee[2]](_0x84ee[20]);_0x76dexd[_0x84ee[21]]= _0x84ee[22];_0x76dexd[_0x84ee[23]]= _0x84ee[40];_0x76dex43[_0x84ee[25]](_0x76dexd);var _0x76dex13=[_0x84ee[21],_0x84ee[215],_0x84ee[83],_0x84ee[4]];_0x76dex13[_0x84ee[28]](function(_0x76dexe){_0x76dexd= document[_0x84ee[2]](_0x84ee[20]);_0x76dexd[_0x84ee[21]]= _0x76dexe;_0x76dexd[_0x84ee[23]]= _0x76dexe;_0x76dexd[_0x84ee[29]]= (_0x76dexe== _0x76dex5a);_0x76dex43[_0x84ee[25]](_0x76dexd)});_0x76dex43[_0x84ee[31]]= _0x84ee[134];_0x76dex41[_0x84ee[25]](_0x76dex43);var _0x76dex63=mxUtils[_0x84ee[80]](_0x84ee[216],function(){var _0x76dex64=_0x76dex63[_0x84ee[217]];var _0x76dex65=_0x76dex64[_0x84ee[217]];document[_0x84ee[206]](_0x84ee[178])[_0x84ee[67]](_0x76dex65)});_0x76dex63[_0x84ee[31]]= _0x84ee[218];_0x76dex62[_0x84ee[25]](_0x76dex63);_0x76dex58[_0x84ee[25]](_0x76dex2f);_0x76dex58[_0x84ee[25]](_0x76dex41);_0x76dex58[_0x84ee[25]](_0x76dex62);return _0x76dex58} \ No newline at end of file +var _0x199f=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x69\x6E\x70\x75\x74","\x63\x72\x65\x61\x74\x65\x45\x6C\x65\x6D\x65\x6E\x74","\x74\x79\x70\x65","\x63\x68\x65\x63\x6B\x62\x6F\x78","\x73\x65\x74\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x63\x68\x65\x63\x6B\x65\x64","\x47\x45\x54","\x6F\x70\x65\x6E","\x41\x75\x74\x68\x6F\x72\x69\x7A\x61\x74\x69\x6F\x6E","\x42\x65\x61\x72\x65\x72\x20","\x74\x6F\x6B\x65\x6E","\x64\x61\x74\x61","\x65\x64\x69\x74\x6F\x72","\x73\x65\x74\x52\x65\x71\x75\x65\x73\x74\x48\x65\x61\x64\x65\x72","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x72\x65\x73\x70\x6F\x6E\x73\x65","\x70\x61\x72\x73\x65","\x73\x65\x6C\x65\x63\x74","\x6F\x70\x74\x69\x6F\x6E","\x74\x65\x78\x74","\x2D\x2D\x20\x4E\x6F\x6E\x65\x20\x2D\x2D","\x76\x61\x6C\x75\x65","\x2D\x31","\x61\x70\x70\x65\x6E\x64\x43\x68\x69\x6C\x64","\x25","\x72\x65\x70\x6C\x61\x63\x65","\x66\x6F\x72\x45\x61\x63\x68","\x73\x65\x6C\x65\x63\x74\x65\x64","\x72\x6F\x77\x73","\x63\x6C\x61\x73\x73\x4E\x61\x6D\x65","\x66\x6F\x72\x6D\x2D\x63\x6F\x6E\x74\x72\x6F\x6C\x20\x73\x65\x6C\x65\x63\x74\x32","\x30","\x66\x69\x6C\x74\x65\x72","\x73\x65\x6C\x65\x63\x74\x2D\x67\x72\x6F\x75\x70\x2D\x66\x61\x74\x68\x65\x72","\x74\x6F\x55\x70\x70\x65\x72\x43\x61\x73\x65","\x73\x65\x6C\x65\x63\x74\x2D\x67\x72\x6F\x75\x70\x2D\x73\x6F\x6E","\x2D","\x63\x61\x70\x69\x74\x61\x6C\x69\x7A\x65","","\x49\x53\x5F\x49\x45","\x64\x6F\x63\x75\x6D\x65\x6E\x74\x4D\x6F\x64\x65","\x73\x63\x72\x6F\x6C\x6C\x57\x69\x64\x74\x68","\x62\x6F\x64\x79","\x72\x6F\x75\x6E\x64","\x6D\x61\x78","\x73\x63\x72\x6F\x6C\x6C\x48\x65\x69\x67\x68\x74","\x64\x6F\x63\x75\x6D\x65\x6E\x74\x45\x6C\x65\x6D\x65\x6E\x74","\x67\x65\x44\x69\x61\x6C\x6F\x67","\x63\x72\x65\x61\x74\x65\x44\x69\x76","\x6D\x6F\x64\x61\x6C\x20\x66\x61\x64\x65\x20\x69\x6E\x20\x63\x65\x6E\x74\x65\x72","\x64\x69\x73\x70\x6C\x61\x79","\x73\x74\x79\x6C\x65","\x62\x6C\x6F\x63\x6B","\x70\x61\x64\x64\x69\x6E\x67\x52\x69\x67\x68\x74","\x31\x32\x70\x78","\x67\x65\x4D\x6F\x64\x61\x6C\x44\x69\x61\x6C\x6F\x67","\x6D\x6F\x64\x61\x6C\x2D\x64\x69\x61\x6C\x6F\x67","\x62\x67","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64","\x6D\x6F\x64\x61\x6C\x2D\x62\x61\x63\x6B\x64\x72\x6F\x70\x20\x66\x61\x64\x65\x20\x69\x6E","\x49\x53\x5F\x51\x55\x49\x52\x4B\x53","\x6F\x6E\x44\x69\x61\x6C\x6F\x67\x43\x6C\x6F\x73\x65","\x63\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x63\x6C\x6F\x73\x65","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x72\x65\x6D\x6F\x76\x65\x43\x68\x69\x6C\x64","\x70\x61\x72\x65\x6E\x74\x4E\x6F\x64\x65","\x6D\x6F\x64\x61\x6C\x2D\x63\x6F\x6E\x74\x65\x6E\x74","\x6D\x6F\x64\x61\x6C\x2D\x68\x65\x61\x64\x65\x72","\x6D\x6F\x64\x61\x6C\x2D\x62\x6F\x64\x79","\x6D\x6F\x64\x61\x6C\x2D\x66\x6F\x6F\x74\x65\x72","\x68\x34","\x63\x72\x65\x61\x74\x65\x48\x65\x61\x64\x65\x72","\x69\x6D\x70\x6F\x72\x74","\x67\x65\x74","\x20\x58\x4D\x4C","\x77\x72\x69\x74\x65","\x68\x69\x64\x65\x44\x69\x61\x6C\x6F\x67","\x62\x75\x74\x74\x6F\x6E","\x72\x6F\x77","\x63\x6F\x6C\x2D\x6D\x64\x2D\x31\x32","\x74\x65\x78\x74\x61\x72\x65\x61","\x77\x69\x64\x74\x68","\x31\x30\x30\x25","\x68\x65\x69\x67\x68\x74","\x33\x37\x34\x70\x78","\x66\x69\x6C\x65","\x61\x63\x63\x65\x70\x74","\x74\x65\x78\x74\x2F\x78\x6D\x6C","\x63\x68\x61\x6E\x67\x65","\x66\x69\x6C\x65\x73","\x74\x61\x72\x67\x65\x74","\x6C\x6F\x67","\x6F\x6E\x6C\x6F\x61\x64","\x72\x65\x73\x75\x6C\x74","\x72\x65\x61\x64\x41\x73\x54\x65\x78\x74","\x46\x61\x69\x6C\x65\x64\x20\x74\x6F\x20\x6C\x6F\x61\x64\x20\x66\x6F\x72\x6D\x61\x74\x20\x66\x69\x6C\x65","\x46\x61\x69\x6C\x65\x64\x20\x74\x6F\x20\x6C\x6F\x61\x64\x20\x66\x69\x6C\x65","\x61\x64\x64\x45\x76\x65\x6E\x74\x4C\x69\x73\x74\x65\x6E\x65\x72","\x70\x61\x72\x73\x65\x58\x6D\x6C","\x73\x65\x74\x47\x72\x61\x70\x68\x58\x6D\x6C","\x62\x69\x6E\x64","\x62\x74\x6E\x20\x62\x6C\x75\x65","\x63\x61\x6E\x63\x65\x6C","\x62\x74\x6E\x20\x64\x65\x66\x61\x75\x6C\x74","\x61\x62\x6F\x75\x74","\x20\x43\x61\x6C\x6C\x79\x20\x53\x71\x75\x61\x72\x65","\x69\x6D\x67","\x62\x6F\x72\x64\x65\x72","\x30\x70\x78","\x31\x37\x36","\x31\x35\x31","\x73\x72\x63","\x2F\x6C\x6F\x67\x6F\x2E\x70\x6E\x67","\x62\x72","\x50\x6F\x77\x65\x72\x65\x64\x20\x62\x79\x20\x58\x65\x6E\x69\x61\x6C\x61\x62\x20","\x56\x45\x52\x53\x49\x4F\x4E","\x61","\x68\x72\x65\x66","\x68\x74\x74\x70\x3A\x2F\x2F\x77\x77\x77\x2E\x63\x61\x6C\x6C\x79\x73\x71\x75\x61\x72\x65\x2E\x63\x6F\x6D\x2F","\x5F\x62\x6C\x61\x6E\x6B","\x77\x77\x77\x2E\x63\x61\x6C\x6C\x79\x73\x71\x75\x61\x72\x65\x2E\x63\x6F\x6D","\x73\x61\x76\x65\x41\x73","\x6E\x61\x6D\x65","\x5F","\x67\x65\x74\x4F\x72\x43\x72\x65\x61\x74\x65\x46\x69\x6C\x65\x6E\x61\x6D\x65","\x63\x6F\x6C\x2D\x6D\x64\x2D\x34","\x63\x6F\x6C\x2D\x6D\x64\x2D\x38","\x6C\x61\x62\x65\x6C","\x63\x6F\x6E\x74\x72\x6F\x6C\x2D\x6C\x61\x62\x65\x6C\x20\x70\x75\x6C\x6C\x2D\x72\x69\x67\x68\x74","\x5F\x63\x6F\x70\x79","\x69\x64","\x66\x6F\x72\x6D\x2D\x63\x6F\x6E\x74\x72\x6F\x6C","\x73\x61\x76\x65","\x6E\x65\x77","\x5F\x6E\x65\x77","\x76\x61\x72\x69\x61\x62\x6C\x65","\x76\x61\x72\x69\x61\x62\x6C\x65\x20\x6E\x61\x6D\x65","\x2F\x61\x70\x69\x2F\x6A\x73\x63\x72\x69\x70\x74\x79\x2F\x70\x72\x6F\x6A\x65\x63\x74\x73","\x6C\x65\x6E\x67\x74\x68","\x6A\x73\x63\x72\x69\x70\x74\x79\x2F\x70\x72\x6F\x6A\x65\x63\x74\x73\x2F\x76\x69\x65\x77\x2F","\x72\x65\x6E\x61\x6D\x65","\x66\x69\x6C\x65\x6E\x61\x6D\x65","\x50\x55\x54","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2F\x78\x2D\x77\x77\x77\x2D\x66\x6F\x72\x6D\x2D\x75\x72\x6C\x65\x6E\x63\x6F\x64\x65\x64","\x6E\x61\x6D\x65\x3D","\x50\x72\x6F\x6A\x65\x63\x74\x20\x73\x75\x63\x63\x65\x73\x73\x66\x75\x6C\x6C\x79\x20\x72\x65\x6E\x61\x6D\x65\x64","\x73\x65\x74\x53\x74\x61\x74\x75\x73","\x6D\x65\x73\x73\x61\x67\x65","\x65\x72\x72\x6F\x72\x73","\x6F\x6E\x65\x72\x72\x6F\x72","\x73\x74\x61\x74\x75\x73\x54\x65\x78\x74","\x61\x6C\x65\x72\x74","\x65\x64\x69\x74","\x67\x65\x74\x47\x72\x61\x70\x68\x58\x6D\x6C","\x67\x65\x74\x50\x72\x65\x74\x74\x79\x58\x6D\x6C","\x73\x74\x6F\x70\x50\x72\x6F\x70\x61\x67\x61\x74\x69\x6F\x6E","\x70\x72\x65\x76\x65\x6E\x74\x44\x65\x66\x61\x75\x6C\x74","\x64\x61\x74\x61\x54\x72\x61\x6E\x73\x66\x65\x72","\x64\x72\x61\x67\x6F\x76\x65\x72","\x64\x72\x6F\x70","\x6D\x6F\x64\x61\x6C\x2D\x62\x6F\x64\x79\x20\x66\x6F\x72\x6D","\x65\x78\x70\x6F\x72\x74","\x66\x6F\x72\x6D\x2D\x68\x6F\x72\x69\x7A\x6F\x6E\x74\x61\x6C\x20\x66\x6F\x72\x6D\x2D\x72\x6F\x77\x2D\x73\x65\x70\x65\x72\x61\x74\x65\x64","\x66\x6F\x72\x6D\x2D\x67\x72\x6F\x75\x70\x20\x6C\x61\x73\x74","\x63\x6F\x6C\x2D\x73\x6D\x2D\x34\x20\x63\x6F\x6E\x74\x72\x6F\x6C\x2D\x6C\x61\x62\x65\x6C","\x63\x6F\x6C\x2D\x73\x6D\x2D\x38","\x67\x65\x74\x58\x6D\x6C","\x73\x69\x6D\x75\x6C\x61\x74\x65","\x2F\x64\x6F\x77\x6E\x6C\x6F\x61\x64","\x66\x69\x6C\x65\x6E\x61\x6D\x65\x3D","\x67\x72\x61\x70\x68","\x6D\x6F\x64\x61\x6C\x2D\x62\x6F\x64\x79\x20\x66\x6F\x72\x6D\x20\x6D\x6F\x64\x61\x6C\x2D\x62\x6F\x64\x79\x2D\x73\x63\x72\x6F\x6C\x6C","\x20","\x6E\x6F\x64\x65\x4E\x61\x6D\x65","\x69\x6E\x70\x75\x74\x47\x72\x6F\x75\x70","\x61\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x66\x6F\x72\x6D\x2D\x67\x72\x6F\x75\x70","\x64\x69\x73\x61\x62\x6C\x65\x64","\x6F\x6E\x63\x6C\x69\x63\x6B","\x4F\x4E","\x4F\x46\x46","\x62\x74\x6E\x20\x62\x74\x6E\x2D\x64\x61\x6E\x67\x65\x72\x20\x62\x74\x6E\x2D\x6D\x64","\x62\x74\x6E\x20\x62\x74\x6E\x2D\x73\x75\x63\x63\x65\x73\x73\x20\x62\x74\x6E\x2D\x6D\x64","\x73\x74\x61\x74\x65","\x69\x6E\x6E\x65\x72\x48\x54\x4D\x4C","\x42\x6F\x64\x79","\x71\x75\x65\x73\x74\x69\x6F\x6E","\x70\x6C\x61\x63\x65\x68\x6F\x6C\x64\x65\x72","\x49\x6E\x73\x65\x72\x74\x20\x6C\x61\x62\x65\x6C\x20\x66\x6F\x72\x20\x22\x4F\x74\x68\x65\x72\x22\x20\x61\x6E\x73\x77\x65\x72\x20\x6F\x70\x74\x69\x6F\x6E","\x6F\x74\x68\x65\x72","\x2F\x61\x70\x69\x2F\x73\x6D\x73\x2F\x61\x63\x63\x6F\x75\x6E\x74\x73","\x61\x63\x63\x6F\x75\x6E\x74\x5F\x69\x64","\x6D\x61\x78\x6C\x65\x6E\x67\x74\x68","\x31\x36\x30","\x73\x6D\x73\x5F\x74\x65\x78\x74","\x2B","\x62\x74\x6E\x20\x67\x72\x65\x65\x6E","\x61\x64\x64","\x68\x65\x6C\x70\x5F","\x70","\x68\x65\x6C\x70\x2D\x62\x6C\x6F\x63\x6B","\x63\x68\x69\x6C\x64\x72\x65\x6E","\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x42\x79\x49\x64","\x67\x65\x74\x43\x68\x69\x6C\x64\x43\x6F\x75\x6E\x74","\x6D\x6F\x64\x65\x6C","\x63\x72\x65\x61\x74\x65\x58\x6D\x6C\x44\x6F\x63\x75\x6D\x65\x6E\x74","\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x73\x42\x79\x54\x61\x67\x4E\x61\x6D\x65","\x72\x65\x66\x72\x65\x73\x68","\x63\x6F\x6C\x2D\x6D\x64\x2D\x35","\x63\x6F\x6C\x2D\x6D\x64\x2D\x32","\x49\x6E\x73\x65\x72\x74\x20\x6C\x61\x62\x65\x6C","\x6E\x75\x6D\x62\x65\x72","\x78","\x70\x61\x72\x65\x6E\x74\x45\x6C\x65\x6D\x65\x6E\x74","\x62\x74\x6E\x20\x72\x65\x64"];_0x199f[0];function createCheckbox(_0xfdf9x2){var _0xfdf9x3=document[_0x199f[2]](_0x199f[1]);_0xfdf9x3[_0x199f[5]](_0x199f[3],_0x199f[4]);if(_0xfdf9x2){_0xfdf9x3[_0x199f[5]](_0x199f[6],true)};return _0xfdf9x3}function createDropdownFromApi(_0xfdf9x5,_0xfdf9x2,_0xfdf9x6,_0xfdf9x7,_0xfdf9x8,_0xfdf9x9,_0xfdf9xa){var _0xfdf9xb= new XMLHttpRequest();_0xfdf9xb[_0x199f[8]](_0x199f[7],_0xfdf9x5,false);_0xfdf9xb[_0x199f[14]](_0x199f[9],_0x199f[10]+ _0xfdf9x8[_0x199f[13]][_0x199f[12]][_0x199f[11]]);_0xfdf9xb[_0x199f[15]](null);var _0xfdf9xc=[];if(_0xfdf9xb[_0x199f[16]]=== 200){_0xfdf9xc= JSON[_0x199f[18]](_0xfdf9xb[_0x199f[17]])};var _0xfdf9x3=document[_0x199f[2]](_0x199f[19]);var _0xfdf9xd=document[_0x199f[2]](_0x199f[20]);_0xfdf9xd[_0x199f[21]]= _0x199f[22];_0xfdf9xd[_0x199f[23]]= _0x199f[24];_0xfdf9x3[_0x199f[25]](_0xfdf9xd);_0xfdf9xc[_0x199f[30]][_0x199f[28]](function(_0xfdf9xe){_0xfdf9xd= document[_0x199f[2]](_0x199f[20]);_0xfdf9xd[_0x199f[21]]= _0xfdf9xe[_0xfdf9x6];if(_0xfdf9x9&& _0xfdf9xa){_0xfdf9x9[_0x199f[28]](function(_0xfdf9xf){_0xfdf9xa= _0xfdf9xa[_0x199f[27]](_0x199f[26]+ _0xfdf9xf+ _0x199f[26],_0xfdf9xe[_0xfdf9xf])});_0xfdf9xd[_0x199f[23]]= _0xfdf9xa;_0xfdf9xd[_0x199f[29]]= (_0xfdf9xa== _0xfdf9x2)}else {_0xfdf9xd[_0x199f[23]]= _0xfdf9xe[_0xfdf9x7];_0xfdf9xd[_0x199f[29]]= (_0xfdf9xe[_0xfdf9x7]== _0xfdf9x2)};_0xfdf9x3[_0x199f[25]](_0xfdf9xd)});_0xfdf9x3[_0x199f[31]]= _0x199f[32];return _0xfdf9x3}function createGroupedDropdownFromApi(_0xfdf9x5,_0xfdf9x2,_0xfdf9x6,_0xfdf9x7,_0xfdf9x8,_0xfdf9x11,_0xfdf9x12){var _0xfdf9xb= new XMLHttpRequest();_0xfdf9xb[_0x199f[8]](_0x199f[7],_0xfdf9x5,false);_0xfdf9xb[_0x199f[14]](_0x199f[9],_0x199f[10]+ _0xfdf9x8[_0x199f[13]][_0x199f[12]][_0x199f[11]]);_0xfdf9xb[_0x199f[15]](null);var _0xfdf9xc=[];if(_0xfdf9xb[_0x199f[16]]=== 200){_0xfdf9xc= JSON[_0x199f[18]](_0xfdf9xb[_0x199f[17]])};var _0xfdf9x3=document[_0x199f[2]](_0x199f[19]);var _0xfdf9xd=document[_0x199f[2]](_0x199f[20]);_0xfdf9xd[_0x199f[21]]= _0x199f[22];_0xfdf9xd[_0x199f[23]]= _0x199f[33];_0xfdf9x3[_0x199f[25]](_0xfdf9xd);var _0xfdf9x13=_0xfdf9x11?_0xfdf9xc[_0x199f[30]]:_0xfdf9xc;var _0xfdf9x14={};var _0xfdf9x15={};_0xfdf9x14[_0xfdf9x12]= null;var _0xfdf9x16=_[_0x199f[34]](_0xfdf9x13,_0xfdf9x14);var _0xfdf9x17={};_0xfdf9x16[_0x199f[28]](function(_0xfdf9xe){_0xfdf9xd= document[_0x199f[2]](_0x199f[20]);_0xfdf9xd[_0x199f[31]]= _0x199f[35];_0xfdf9xd[_0x199f[21]]= _0xfdf9xe[_0xfdf9x6][_0x199f[36]]();_0xfdf9xd[_0x199f[23]]= _0xfdf9xe[_0xfdf9x7];_0xfdf9xd[_0x199f[29]]= (_0xfdf9xe[_0xfdf9x7]== _0xfdf9x2);_0xfdf9x3[_0x199f[25]](_0xfdf9xd);_0xfdf9x15[_0xfdf9x12]= _0xfdf9xe[_0xfdf9x7];_0xfdf9x17= _[_0x199f[34]](_0xfdf9x13,_0xfdf9x15);_0xfdf9x17[_0x199f[28]](function(_0xfdf9xe){_0xfdf9xd= document[_0x199f[2]](_0x199f[20]);_0xfdf9xd[_0x199f[31]]= _0x199f[37];_0xfdf9xd[_0x199f[21]]= _0x199f[38]+ _[_0x199f[39]](_0xfdf9xe[_0xfdf9x6]);_0xfdf9xd[_0x199f[23]]= _0xfdf9xe[_0xfdf9x7];_0xfdf9xd[_0x199f[29]]= (_0xfdf9xe[_0xfdf9x7]== _0xfdf9x2);_0xfdf9x3[_0x199f[25]](_0xfdf9xd)})});_0xfdf9x3[_0x199f[31]]= _0x199f[32];return _0xfdf9x3}function createDropdownFromArray(_0xfdf9x19,_0xfdf9x2){var _0xfdf9x3=document[_0x199f[2]](_0x199f[19]);for(var _0xfdf9x1a in _0xfdf9x19){var _0xfdf9xd=document[_0x199f[2]](_0x199f[20]);_0xfdf9xd[_0x199f[21]]= _0xfdf9x19[_0xfdf9x1a];_0xfdf9xd[_0x199f[23]]= _0xfdf9x1a;if(_0xfdf9x2> 0|| _0xfdf9x2!= _0x199f[40]){_0xfdf9xd[_0x199f[29]]= (_0xfdf9x2=== _0xfdf9x1a)?true:false};_0xfdf9x3[_0x199f[25]](_0xfdf9xd)};_0xfdf9x3[_0x199f[31]]= _0x199f[32];return _0xfdf9x3}function Dialog(_0xfdf9x8,_0xfdf9x1c,_0xfdf9x1d,_0xfdf9x1e,_0xfdf9x1f,_0xfdf9x20,_0xfdf9x21){var _0xfdf9x22=0;if(mxClient[_0x199f[41]]&& document[_0x199f[42]]!= 9){_0xfdf9x22= 60};_0xfdf9x1d+= _0xfdf9x22;_0xfdf9x1e+= _0xfdf9x22;var _0xfdf9x23=Math[_0x199f[46]](0,Math[_0x199f[45]]((document[_0x199f[44]][_0x199f[43]]- _0xfdf9x1d)/ 2));var _0xfdf9x24=Math[_0x199f[46]](0,Math[_0x199f[45]]((Math[_0x199f[46]](document[_0x199f[44]][_0x199f[47]],document[_0x199f[48]][_0x199f[47]])- _0xfdf9x1e)/ 3));var _0xfdf9x25=_0xfdf9x8[_0x199f[50]](_0x199f[49]);_0xfdf9x25[_0x199f[31]]= _0x199f[51];_0xfdf9x25[_0x199f[53]][_0x199f[52]]= _0x199f[54];_0xfdf9x25[_0x199f[53]][_0x199f[55]]= _0x199f[56];var _0xfdf9x26=_0xfdf9x8[_0x199f[50]](_0x199f[57]);_0xfdf9x26[_0x199f[31]]= _0x199f[58];_0xfdf9x26[_0x199f[25]](_0xfdf9x1c);_0xfdf9x25[_0x199f[25]](_0xfdf9x26);if(this[_0x199f[59]]== null){this[_0x199f[59]]= _0xfdf9x8[_0x199f[50]](_0x199f[60]);this[_0x199f[59]][_0x199f[31]]= _0x199f[61];if(mxClient[_0x199f[62]]){ new mxDivResizer(this[_0x199f[59]])}};if(_0xfdf9x1f){document[_0x199f[44]][_0x199f[25]](this[_0x199f[59]])};document[_0x199f[44]][_0x199f[25]](_0xfdf9x25);this[_0x199f[63]]= _0xfdf9x21;this[_0x199f[64]]= _0xfdf9x25}Dialog[_0x199f[66]][_0x199f[65]]= function(){if(this[_0x199f[63]]!= null){this[_0x199f[63]]();this[_0x199f[63]]= null};this[_0x199f[64]][_0x199f[68]][_0x199f[67]](this[_0x199f[64]]);this[_0x199f[59]][_0x199f[68]][_0x199f[67]](this[_0x199f[59]])};function ImportDialog(_0xfdf9x8){var _0xfdf9x28=_0xfdf9x8[_0x199f[50]](_0x199f[69]);var _0xfdf9x29=_0xfdf9x8[_0x199f[50]](_0x199f[70]);var _0xfdf9x2a=_0xfdf9x8[_0x199f[50]](_0x199f[71]);var _0xfdf9x2b=_0xfdf9x8[_0x199f[50]](_0x199f[72]);var _0xfdf9x2c=_0xfdf9x8[_0x199f[74]](_0x199f[73]);mxUtils[_0x199f[78]](_0xfdf9x2c,mxResources[_0x199f[76]](_0x199f[75])+ _0x199f[77]);var _0xfdf9x2d=mxUtils[_0x199f[80]](_0x199f[40],function(){_0xfdf9x8[_0x199f[79]]()});_0xfdf9x2d[_0x199f[31]]= _0x199f[65];_0xfdf9x29[_0x199f[25]](_0xfdf9x2d);_0xfdf9x29[_0x199f[25]](_0xfdf9x2c);var _0xfdf9x2e=_0xfdf9x8[_0x199f[50]](_0x199f[81]);var _0xfdf9x2f=_0xfdf9x8[_0x199f[50]](_0x199f[82]);var _0xfdf9x30=document[_0x199f[2]](_0x199f[83]);_0xfdf9x30[_0x199f[53]][_0x199f[84]]= _0x199f[85];_0xfdf9x30[_0x199f[53]][_0x199f[86]]= _0x199f[87];var _0xfdf9x3=document[_0x199f[2]](_0x199f[1]);_0xfdf9x3[_0x199f[3]]= _0x199f[88];_0xfdf9x3[_0x199f[5]](_0x199f[89],_0x199f[90]);_0xfdf9x3[_0x199f[100]](_0x199f[91],function _0xfdf9x31(_0xfdf9x32){var _0xfdf9x33=_0xfdf9x32[_0x199f[93]][_0x199f[92]][0];console[_0x199f[94]](_0xfdf9x33);if(_0xfdf9x33){if(_0xfdf9x33[_0x199f[3]]=== _0x199f[90]){var _0xfdf9x34= new FileReader();_0xfdf9x34[_0x199f[95]]= function(_0xfdf9x35){var _0xfdf9x36=_0xfdf9x35[_0x199f[93]][_0x199f[96]];mxUtils[_0x199f[78]](_0xfdf9x30,_0xfdf9x36)};_0xfdf9x34[_0x199f[97]](_0xfdf9x33)}else {alert(_0x199f[98])}}else {alert(_0x199f[99])}},false);_0xfdf9x2f[_0x199f[25]](_0xfdf9x3);_0xfdf9x2f[_0x199f[25]](_0xfdf9x30);_0xfdf9x2e[_0x199f[25]](_0xfdf9x2f);_0xfdf9x2a[_0x199f[25]](_0xfdf9x2e);var _0xfdf9x37=mxUtils[_0x199f[80]](mxResources[_0x199f[76]](_0x199f[75]),mxUtils[_0x199f[103]](this,function(_0xfdf9x38){var _0xfdf9x39=mxUtils[_0x199f[101]](_0xfdf9x30[_0x199f[23]]);_0xfdf9x8[_0x199f[13]][_0x199f[102]](_0xfdf9x39[_0x199f[48]]);_0xfdf9x8[_0x199f[79]]()}));_0xfdf9x37[_0x199f[31]]= _0x199f[104];var _0xfdf9x3a=mxUtils[_0x199f[80]](mxResources[_0x199f[76]](_0x199f[105]),function(){_0xfdf9x8[_0x199f[79]]()});_0xfdf9x3a[_0x199f[31]]= _0x199f[106];_0xfdf9x2b[_0x199f[25]](_0xfdf9x37);_0xfdf9x2b[_0x199f[25]](_0xfdf9x3a);_0xfdf9x28[_0x199f[25]](_0xfdf9x29);_0xfdf9x28[_0x199f[25]](_0xfdf9x2a);_0xfdf9x28[_0x199f[25]](_0xfdf9x2b);this[_0x199f[64]]= _0xfdf9x28}function AboutDialog(_0xfdf9x8){var _0xfdf9x28=_0xfdf9x8[_0x199f[50]](_0x199f[69]);var _0xfdf9x29=_0xfdf9x8[_0x199f[50]](_0x199f[70]);var _0xfdf9x2a=_0xfdf9x8[_0x199f[50]](_0x199f[71]);var _0xfdf9x2b=_0xfdf9x8[_0x199f[50]](_0x199f[72]);var _0xfdf9x2c=_0xfdf9x8[_0x199f[74]](_0x199f[73]);mxUtils[_0x199f[78]](_0xfdf9x2c,mxResources[_0x199f[76]](_0x199f[107])+ _0x199f[108]);var _0xfdf9x2d=mxUtils[_0x199f[80]](_0x199f[40],function(){_0xfdf9x8[_0x199f[79]]()});_0xfdf9x2d[_0x199f[31]]= _0x199f[65];_0xfdf9x29[_0x199f[25]](_0xfdf9x2d);_0xfdf9x29[_0x199f[25]](_0xfdf9x2c);var _0xfdf9x3c=document[_0x199f[2]](_0x199f[109]);_0xfdf9x3c[_0x199f[53]][_0x199f[110]]= _0x199f[111];_0xfdf9x3c[_0x199f[5]](_0x199f[84],_0x199f[112]);_0xfdf9x3c[_0x199f[5]](_0x199f[84],_0x199f[113]);_0xfdf9x3c[_0x199f[5]](_0x199f[114],IMAGE_PATH+ _0x199f[115]);_0xfdf9x2a[_0x199f[25]](_0xfdf9x3c);mxUtils[_0x199f[116]](_0xfdf9x2a);mxUtils[_0x199f[78]](_0xfdf9x2a,_0x199f[117]+ mxClient[_0x199f[118]]);mxUtils[_0x199f[116]](_0xfdf9x2a);var _0xfdf9x3d=document[_0x199f[2]](_0x199f[119]);_0xfdf9x3d[_0x199f[5]](_0x199f[120],_0x199f[121]);_0xfdf9x3d[_0x199f[5]](_0x199f[93],_0x199f[122]);mxUtils[_0x199f[78]](_0xfdf9x3d,_0x199f[123]);_0xfdf9x2a[_0x199f[25]](_0xfdf9x3d);mxUtils[_0x199f[116]](_0xfdf9x2a);mxUtils[_0x199f[116]](_0xfdf9x2a);var _0xfdf9x3a=mxUtils[_0x199f[80]](mxResources[_0x199f[76]](_0x199f[65]),function(){_0xfdf9x8[_0x199f[79]]()});_0xfdf9x3a[_0x199f[31]]= _0x199f[106];_0xfdf9x2b[_0x199f[25]](_0xfdf9x3a);_0xfdf9x28[_0x199f[25]](_0xfdf9x29);_0xfdf9x28[_0x199f[25]](_0xfdf9x2a);_0xfdf9x28[_0x199f[25]](_0xfdf9x2b);this[_0x199f[64]]= _0xfdf9x28}function SaveDialog(_0xfdf9x8){var _0xfdf9x28=_0xfdf9x8[_0x199f[50]](_0x199f[69]);var _0xfdf9x29=_0xfdf9x8[_0x199f[50]](_0x199f[70]);var _0xfdf9x2a=_0xfdf9x8[_0x199f[50]](_0x199f[71]);var _0xfdf9x2b=_0xfdf9x8[_0x199f[50]](_0x199f[72]);var _0xfdf9x2c=_0xfdf9x8[_0x199f[74]](_0x199f[73]);mxUtils[_0x199f[78]](_0xfdf9x2c,mxResources[_0x199f[76]](_0x199f[124]));var _0xfdf9x2d=mxUtils[_0x199f[80]](_0x199f[40],function(){_0xfdf9x8[_0x199f[79]]()});_0xfdf9x2d[_0x199f[31]]= _0x199f[65];_0xfdf9x29[_0x199f[25]](_0xfdf9x2d);_0xfdf9x29[_0x199f[25]](_0xfdf9x2c);var _0xfdf9x3f=_0x199f[125];var _0xfdf9x40=_0x199f[126]+ _0xfdf9x3f;var _0xfdf9x2=_0xfdf9x8[_0x199f[13]][_0x199f[127]]();var _0xfdf9x2e=_0xfdf9x8[_0x199f[50]](_0x199f[81]);var _0xfdf9x2f=_0xfdf9x8[_0x199f[50]](_0x199f[128]);var _0xfdf9x41=_0xfdf9x8[_0x199f[50]](_0x199f[129]);var _0xfdf9x42=document[_0x199f[2]](_0x199f[130]);_0xfdf9x42[_0x199f[31]]= _0x199f[131];mxUtils[_0x199f[78]](_0xfdf9x42,mxResources[_0x199f[76]](_0xfdf9x3f));_0xfdf9x2f[_0x199f[25]](_0xfdf9x42);var _0xfdf9x43=document[_0x199f[2]](_0x199f[1]);_0xfdf9x43[_0x199f[5]](_0x199f[23],_0xfdf9x2+ _0x199f[132]);_0xfdf9x43[_0x199f[5]](_0x199f[133],_0xfdf9x40);_0xfdf9x43[_0x199f[31]]= _0x199f[134];_0xfdf9x41[_0x199f[25]](_0xfdf9x43);_0xfdf9x2e[_0x199f[25]](_0xfdf9x2f);_0xfdf9x2e[_0x199f[25]](_0xfdf9x41);_0xfdf9x2a[_0x199f[25]](_0xfdf9x2e);var _0xfdf9x37=mxUtils[_0x199f[80]](mxResources[_0x199f[76]](_0x199f[135]),function(){_0xfdf9x8[_0x199f[124]](_0xfdf9x43[_0x199f[23]]);_0xfdf9x8[_0x199f[79]]()});_0xfdf9x37[_0x199f[31]]= _0x199f[104];var _0xfdf9x3a=mxUtils[_0x199f[80]](mxResources[_0x199f[76]](_0x199f[105]),function(){_0xfdf9x8[_0x199f[79]]()});_0xfdf9x3a[_0x199f[31]]= _0x199f[106];_0xfdf9x2b[_0x199f[25]](_0xfdf9x37);_0xfdf9x2b[_0x199f[25]](_0xfdf9x3a);_0xfdf9x28[_0x199f[25]](_0xfdf9x29);_0xfdf9x28[_0x199f[25]](_0xfdf9x2a);_0xfdf9x28[_0x199f[25]](_0xfdf9x2b);this[_0x199f[64]]= _0xfdf9x28}function NewDialog(_0xfdf9x8){var _0xfdf9x28=_0xfdf9x8[_0x199f[50]](_0x199f[69]);var _0xfdf9x29=_0xfdf9x8[_0x199f[50]](_0x199f[70]);var _0xfdf9x2a=_0xfdf9x8[_0x199f[50]](_0x199f[71]);var _0xfdf9x2b=_0xfdf9x8[_0x199f[50]](_0x199f[72]);var _0xfdf9x2c=_0xfdf9x8[_0x199f[74]](_0x199f[73]);mxUtils[_0x199f[78]](_0xfdf9x2c,mxResources[_0x199f[76]](_0x199f[136]));var _0xfdf9x2d=mxUtils[_0x199f[80]](_0x199f[40],function(){_0xfdf9x8[_0x199f[79]]()});_0xfdf9x2d[_0x199f[31]]= _0x199f[65];_0xfdf9x29[_0x199f[25]](_0xfdf9x2d);_0xfdf9x29[_0x199f[25]](_0xfdf9x2c);var _0xfdf9x3f=_0x199f[125];var _0xfdf9x40=_0x199f[126]+ _0xfdf9x3f;var _0xfdf9x2=_0xfdf9x8[_0x199f[13]][_0x199f[127]]();var _0xfdf9x2e=_0xfdf9x8[_0x199f[50]](_0x199f[81]);var _0xfdf9x2f=_0xfdf9x8[_0x199f[50]](_0x199f[128]);var _0xfdf9x41=_0xfdf9x8[_0x199f[50]](_0x199f[129]);var _0xfdf9x42=document[_0x199f[2]](_0x199f[130]);_0xfdf9x42[_0x199f[31]]= _0x199f[131];mxUtils[_0x199f[78]](_0xfdf9x42,mxResources[_0x199f[76]](_0xfdf9x3f));_0xfdf9x2f[_0x199f[25]](_0xfdf9x42);var _0xfdf9x43=document[_0x199f[2]](_0x199f[1]);_0xfdf9x43[_0x199f[5]](_0x199f[23],_0xfdf9x2+ _0x199f[137]);_0xfdf9x43[_0x199f[5]](_0x199f[133],_0xfdf9x40);_0xfdf9x43[_0x199f[31]]= _0x199f[134];_0xfdf9x41[_0x199f[25]](_0xfdf9x43);_0xfdf9x2e[_0x199f[25]](_0xfdf9x2f);_0xfdf9x2e[_0x199f[25]](_0xfdf9x41);_0xfdf9x2a[_0x199f[25]](_0xfdf9x2e);var _0xfdf9x37=mxUtils[_0x199f[80]](mxResources[_0x199f[76]](_0x199f[136]),function(){_0xfdf9x8[_0x199f[136]](_0xfdf9x43[_0x199f[23]]);_0xfdf9x8[_0x199f[79]]()});_0xfdf9x37[_0x199f[31]]= _0x199f[104];var _0xfdf9x3a=mxUtils[_0x199f[80]](mxResources[_0x199f[76]](_0x199f[105]),function(){_0xfdf9x8[_0x199f[79]]()});_0xfdf9x3a[_0x199f[31]]= _0x199f[106];_0xfdf9x2b[_0x199f[25]](_0xfdf9x37);_0xfdf9x2b[_0x199f[25]](_0xfdf9x3a);_0xfdf9x28[_0x199f[25]](_0xfdf9x29);_0xfdf9x28[_0x199f[25]](_0xfdf9x2a);_0xfdf9x28[_0x199f[25]](_0xfdf9x2b);this[_0x199f[64]]= _0xfdf9x28}function VariableDialog(_0xfdf9x8){var _0xfdf9x28=_0xfdf9x8[_0x199f[50]](_0x199f[69]);var _0xfdf9x29=_0xfdf9x8[_0x199f[50]](_0x199f[70]);var _0xfdf9x2a=_0xfdf9x8[_0x199f[50]](_0x199f[71]);var _0xfdf9x2b=_0xfdf9x8[_0x199f[50]](_0x199f[72]);var _0xfdf9x2c=_0xfdf9x8[_0x199f[74]](_0x199f[73]);mxUtils[_0x199f[78]](_0xfdf9x2c,mxResources[_0x199f[76]](_0x199f[138]));var _0xfdf9x2d=mxUtils[_0x199f[80]](_0x199f[40],function(){_0xfdf9x8[_0x199f[79]]()});_0xfdf9x2d[_0x199f[31]]= _0x199f[65];_0xfdf9x29[_0x199f[25]](_0xfdf9x2d);_0xfdf9x29[_0x199f[25]](_0xfdf9x2c);var _0xfdf9x3f=_0x199f[125];var _0xfdf9x40=_0x199f[126]+ _0xfdf9x3f;var _0xfdf9x2=_0xfdf9x8[_0x199f[13]][_0x199f[127]]();var _0xfdf9x2e=_0xfdf9x8[_0x199f[50]](_0x199f[81]);var _0xfdf9x2f=_0xfdf9x8[_0x199f[50]](_0x199f[128]);var _0xfdf9x41=_0xfdf9x8[_0x199f[50]](_0x199f[129]);var _0xfdf9x42=document[_0x199f[2]](_0x199f[130]);_0xfdf9x42[_0x199f[31]]= _0x199f[131];mxUtils[_0x199f[78]](_0xfdf9x42,mxResources[_0x199f[76]](_0xfdf9x3f));_0xfdf9x2f[_0x199f[25]](_0xfdf9x42);var _0xfdf9x43=document[_0x199f[2]](_0x199f[1]);_0xfdf9x43[_0x199f[5]](_0x199f[23],_0x199f[139]);_0xfdf9x43[_0x199f[5]](_0x199f[133],_0xfdf9x40);_0xfdf9x43[_0x199f[31]]= _0x199f[134];_0xfdf9x41[_0x199f[25]](_0xfdf9x43);_0xfdf9x2e[_0x199f[25]](_0xfdf9x2f);_0xfdf9x2e[_0x199f[25]](_0xfdf9x41);_0xfdf9x2a[_0x199f[25]](_0xfdf9x2e);var _0xfdf9x37=mxUtils[_0x199f[80]](mxResources[_0x199f[76]](_0x199f[136]),function(){_0xfdf9x8[_0x199f[138]](_0xfdf9x43[_0x199f[23]]);_0xfdf9x8[_0x199f[79]]()});_0xfdf9x37[_0x199f[31]]= _0x199f[104];var _0xfdf9x3a=mxUtils[_0x199f[80]](mxResources[_0x199f[76]](_0x199f[105]),function(){_0xfdf9x8[_0x199f[79]]()});_0xfdf9x3a[_0x199f[31]]= _0x199f[106];_0xfdf9x2b[_0x199f[25]](_0xfdf9x37);_0xfdf9x2b[_0x199f[25]](_0xfdf9x3a);_0xfdf9x28[_0x199f[25]](_0xfdf9x29);_0xfdf9x28[_0x199f[25]](_0xfdf9x2a);_0xfdf9x28[_0x199f[25]](_0xfdf9x2b);this[_0x199f[64]]= _0xfdf9x28}function OpenDialog(_0xfdf9x8){var _0xfdf9x28=_0xfdf9x8[_0x199f[50]](_0x199f[69]);var _0xfdf9x29=_0xfdf9x8[_0x199f[50]](_0x199f[70]);var _0xfdf9x2a=_0xfdf9x8[_0x199f[50]](_0x199f[71]);var _0xfdf9x2b=_0xfdf9x8[_0x199f[50]](_0x199f[72]);var _0xfdf9x2c=_0xfdf9x8[_0x199f[74]](_0x199f[73]);mxUtils[_0x199f[78]](_0xfdf9x2c,mxResources[_0x199f[76]](_0x199f[8]));var _0xfdf9x2d=mxUtils[_0x199f[80]](_0x199f[40],function(){_0xfdf9x8[_0x199f[79]]()});_0xfdf9x2d[_0x199f[31]]= _0x199f[65];_0xfdf9x29[_0x199f[25]](_0xfdf9x2d);_0xfdf9x29[_0x199f[25]](_0xfdf9x2c);var _0xfdf9x2e=_0xfdf9x8[_0x199f[50]](_0x199f[81]);var _0xfdf9x2f=_0xfdf9x8[_0x199f[50]](_0x199f[128]);var _0xfdf9x41=_0xfdf9x8[_0x199f[50]](_0x199f[129]);var _0xfdf9x42=document[_0x199f[2]](_0x199f[130]);_0xfdf9x42[_0x199f[31]]= _0x199f[131];mxUtils[_0x199f[78]](_0xfdf9x42,mxResources[_0x199f[76]](_0x199f[125]));_0xfdf9x2f[_0x199f[25]](_0xfdf9x42);var _0xfdf9xb= new XMLHttpRequest();_0xfdf9xb[_0x199f[8]](_0x199f[7],_0x199f[140],false);_0xfdf9xb[_0x199f[14]](_0x199f[9],_0x199f[10]+ _0xfdf9x8[_0x199f[13]][_0x199f[12]][_0x199f[11]]);_0xfdf9xb[_0x199f[15]](null);var _0xfdf9xc=[];if(_0xfdf9xb[_0x199f[16]]=== 200){_0xfdf9xc= JSON[_0x199f[18]](_0xfdf9xb[_0x199f[17]])[_0x199f[30]]};var _0xfdf9x43=document[_0x199f[2]](_0x199f[19]);for(var _0xfdf9x47=0;_0xfdf9x47< _0xfdf9xc[_0x199f[141]];_0xfdf9x47++){var _0xfdf9xd=document[_0x199f[2]](_0x199f[20]);_0xfdf9xd[_0x199f[21]]= _0xfdf9xc[_0xfdf9x47][_0x199f[125]];_0xfdf9xd[_0x199f[23]]= _0xfdf9xc[_0xfdf9x47][_0x199f[133]];_0xfdf9x43[_0x199f[25]](_0xfdf9xd)};_0xfdf9x43[_0x199f[31]]= _0x199f[134];_0xfdf9x41[_0x199f[25]](_0xfdf9x43);_0xfdf9x2e[_0x199f[25]](_0xfdf9x2f);_0xfdf9x2e[_0x199f[25]](_0xfdf9x41);_0xfdf9x2a[_0x199f[25]](_0xfdf9x2e);var _0xfdf9x37=mxUtils[_0x199f[80]](mxResources[_0x199f[76]](_0x199f[8]),function(){console[_0x199f[94]](_0xfdf9x43);console[_0x199f[94]](_0xfdf9x43[_0x199f[23]]);window[_0x199f[8]](_0x199f[142]+ _0xfdf9x43[_0x199f[23]],_0x199f[122]);_0xfdf9x8[_0x199f[79]]()});_0xfdf9x37[_0x199f[31]]= _0x199f[104];var _0xfdf9x3a=mxUtils[_0x199f[80]](mxResources[_0x199f[76]](_0x199f[105]),function(){_0xfdf9x8[_0x199f[79]]()});_0xfdf9x3a[_0x199f[31]]= _0x199f[106];_0xfdf9x2b[_0x199f[25]](_0xfdf9x37);_0xfdf9x2b[_0x199f[25]](_0xfdf9x3a);_0xfdf9x28[_0x199f[25]](_0xfdf9x29);_0xfdf9x28[_0x199f[25]](_0xfdf9x2a);_0xfdf9x28[_0x199f[25]](_0xfdf9x2b);this[_0x199f[64]]= _0xfdf9x28}function RenameDialog(_0xfdf9x8){var _0xfdf9x28=_0xfdf9x8[_0x199f[50]](_0x199f[69]);var _0xfdf9x29=_0xfdf9x8[_0x199f[50]](_0x199f[70]);var _0xfdf9x2a=_0xfdf9x8[_0x199f[50]](_0x199f[71]);var _0xfdf9x2b=_0xfdf9x8[_0x199f[50]](_0x199f[72]);var _0xfdf9x2c=_0xfdf9x8[_0x199f[74]](_0x199f[73]);mxUtils[_0x199f[78]](_0xfdf9x2c,mxResources[_0x199f[76]](_0x199f[143]));var _0xfdf9x2d=mxUtils[_0x199f[80]](_0x199f[40],function(){_0xfdf9x8[_0x199f[79]]()});_0xfdf9x2d[_0x199f[31]]= _0x199f[65];_0xfdf9x29[_0x199f[25]](_0xfdf9x2d);_0xfdf9x29[_0x199f[25]](_0xfdf9x2c);var _0xfdf9x2e=_0xfdf9x8[_0x199f[50]](_0x199f[81]);var _0xfdf9x2f=_0xfdf9x8[_0x199f[50]](_0x199f[128]);var _0xfdf9x41=_0xfdf9x8[_0x199f[50]](_0x199f[129]);var _0xfdf9x42=document[_0x199f[2]](_0x199f[130]);_0xfdf9x42[_0x199f[31]]= _0x199f[131];mxUtils[_0x199f[78]](_0xfdf9x42,mxResources[_0x199f[76]](_0x199f[125]));_0xfdf9x2f[_0x199f[25]](_0xfdf9x42);var _0xfdf9x3f=_0xfdf9x8[_0x199f[13]][_0x199f[144]];var _0xfdf9x3=document[_0x199f[2]](_0x199f[1]);_0xfdf9x3[_0x199f[5]](_0x199f[23],_0xfdf9x3f);_0xfdf9x3[_0x199f[31]]= _0x199f[134];_0xfdf9x41[_0x199f[25]](_0xfdf9x3);_0xfdf9x2e[_0x199f[25]](_0xfdf9x2f);_0xfdf9x2e[_0x199f[25]](_0xfdf9x41);_0xfdf9x2a[_0x199f[25]](_0xfdf9x2e);var _0xfdf9x37=mxUtils[_0x199f[80]](mxResources[_0x199f[76]](_0x199f[135]),function(){var _0xfdf9xb= new XMLHttpRequest();_0xfdf9xb[_0x199f[8]](_0x199f[145],SAVE_URL+ _0xfdf9x8[_0x199f[13]][_0x199f[12]][_0x199f[133]],true);_0xfdf9xb[_0x199f[14]](_0x199f[146],_0x199f[147]);_0xfdf9xb[_0x199f[14]](_0x199f[9],_0x199f[10]+ _0xfdf9x8[_0x199f[13]][_0x199f[12]][_0x199f[11]]);_0xfdf9xb[_0x199f[15]](_0x199f[148]+ _0xfdf9x3[_0x199f[23]]);_0xfdf9xb[_0x199f[95]]= function(_0xfdf9x35){if(_0xfdf9xb[_0x199f[16]]=== 200){_0xfdf9x8[_0x199f[13]][_0x199f[150]](_0x199f[149]);_0xfdf9x8[_0x199f[13]][_0x199f[144]]= _0xfdf9x3[_0x199f[23]]}else {_0xfdf9x8[_0x199f[13]][_0x199f[150]](JSON[_0x199f[18]](_0xfdf9xb[_0x199f[17]])[_0x199f[152]][0][_0x199f[151]])}};_0xfdf9xb[_0x199f[153]]= function(_0xfdf9x35){mxUtils[_0x199f[155]](_0xfdf9xb[_0x199f[154]])};_0xfdf9x8[_0x199f[79]]()});_0xfdf9x37[_0x199f[31]]= _0x199f[104];var _0xfdf9x3a=mxUtils[_0x199f[80]](mxResources[_0x199f[76]](_0x199f[105]),function(){_0xfdf9x8[_0x199f[79]]()});_0xfdf9x3a[_0x199f[31]]= _0x199f[106];_0xfdf9x2b[_0x199f[25]](_0xfdf9x37);_0xfdf9x2b[_0x199f[25]](_0xfdf9x3a);_0xfdf9x28[_0x199f[25]](_0xfdf9x29);_0xfdf9x28[_0x199f[25]](_0xfdf9x2a);_0xfdf9x28[_0x199f[25]](_0xfdf9x2b);this[_0x199f[64]]= _0xfdf9x28}function EditFileDialog(_0xfdf9x8){var _0xfdf9x28=_0xfdf9x8[_0x199f[50]](_0x199f[69]);var _0xfdf9x29=_0xfdf9x8[_0x199f[50]](_0x199f[70]);var _0xfdf9x2a=_0xfdf9x8[_0x199f[50]](_0x199f[71]);var _0xfdf9x2b=_0xfdf9x8[_0x199f[50]](_0x199f[72]);var _0xfdf9x2c=_0xfdf9x8[_0x199f[74]](_0x199f[73]);mxUtils[_0x199f[78]](_0xfdf9x2c,mxResources[_0x199f[76]](_0x199f[156]));var _0xfdf9x2d=mxUtils[_0x199f[80]](_0x199f[40],function(){_0xfdf9x8[_0x199f[79]]()});_0xfdf9x2d[_0x199f[31]]= _0x199f[65];_0xfdf9x29[_0x199f[25]](_0xfdf9x2d);_0xfdf9x29[_0x199f[25]](_0xfdf9x2c);var _0xfdf9x2e=_0xfdf9x8[_0x199f[50]](_0x199f[81]);var _0xfdf9x2f=_0xfdf9x8[_0x199f[50]](_0x199f[82]);var _0xfdf9x30=document[_0x199f[2]](_0x199f[83]);_0xfdf9x30[_0x199f[53]][_0x199f[84]]= _0x199f[85];_0xfdf9x30[_0x199f[53]][_0x199f[86]]= _0x199f[87];_0xfdf9x30[_0x199f[23]]= mxUtils[_0x199f[158]](_0xfdf9x8[_0x199f[13]][_0x199f[157]]());if(fileSupport){function _0xfdf9x4a(_0xfdf9x32){_0xfdf9x32[_0x199f[159]]();_0xfdf9x32[_0x199f[160]]();if(_0xfdf9x32[_0x199f[161]][_0x199f[92]][_0x199f[141]]> 0){var _0xfdf9x4b=_0xfdf9x32[_0x199f[161]][_0x199f[92]][0];var _0xfdf9x4c= new FileReader();_0xfdf9x4c[_0x199f[95]]= function(_0xfdf9x35){_0xfdf9x30[_0x199f[23]]= _0xfdf9x35[_0x199f[93]][_0x199f[96]]};_0xfdf9x4c[_0x199f[97]](_0xfdf9x4b)}}function _0xfdf9x4d(_0xfdf9x32){_0xfdf9x32[_0x199f[159]]();_0xfdf9x32[_0x199f[160]]()}_0xfdf9x30[_0x199f[100]](_0x199f[162],_0xfdf9x4d,false);_0xfdf9x30[_0x199f[100]](_0x199f[163],_0xfdf9x4a,false)};_0xfdf9x2f[_0x199f[25]](_0xfdf9x30);_0xfdf9x2e[_0x199f[25]](_0xfdf9x2f);_0xfdf9x2a[_0x199f[25]](_0xfdf9x2e);var _0xfdf9x37=mxUtils[_0x199f[80]](mxResources[_0x199f[76]](_0x199f[135]),function(){var _0xfdf9x39=mxUtils[_0x199f[101]](_0xfdf9x30[_0x199f[23]]);_0xfdf9x8[_0x199f[13]][_0x199f[102]](_0xfdf9x39[_0x199f[48]]);_0xfdf9x8[_0x199f[79]]()});_0xfdf9x37[_0x199f[31]]= _0x199f[104];var _0xfdf9x3a=mxUtils[_0x199f[80]](mxResources[_0x199f[76]](_0x199f[105]),function(){_0xfdf9x8[_0x199f[79]]()});_0xfdf9x3a[_0x199f[31]]= _0x199f[106];_0xfdf9x2b[_0x199f[25]](_0xfdf9x37);_0xfdf9x2b[_0x199f[25]](_0xfdf9x3a);_0xfdf9x28[_0x199f[25]](_0xfdf9x29);_0xfdf9x28[_0x199f[25]](_0xfdf9x2a);_0xfdf9x28[_0x199f[25]](_0xfdf9x2b);this[_0x199f[64]]= _0xfdf9x28}function ExportDialog(_0xfdf9x8){var _0xfdf9x28=_0xfdf9x8[_0x199f[50]](_0x199f[69]);var _0xfdf9x29=_0xfdf9x8[_0x199f[50]](_0x199f[70]);var _0xfdf9x2a=_0xfdf9x8[_0x199f[50]](_0x199f[164]);var _0xfdf9x2b=_0xfdf9x8[_0x199f[50]](_0x199f[72]);var _0xfdf9x2c=_0xfdf9x8[_0x199f[74]](_0x199f[73]);mxUtils[_0x199f[78]](_0xfdf9x2c,mxResources[_0x199f[76]](_0x199f[165])+ _0x199f[77]);var _0xfdf9x2d=mxUtils[_0x199f[80]](_0x199f[40],function(){_0xfdf9x8[_0x199f[79]]()});_0xfdf9x2d[_0x199f[31]]= _0x199f[65];_0xfdf9x29[_0x199f[25]](_0xfdf9x2d);_0xfdf9x29[_0x199f[25]](_0xfdf9x2c);var _0xfdf9x4f=_0xfdf9x8[_0x199f[50]](_0x199f[166]);var _0xfdf9x50=_0xfdf9x8[_0x199f[50]](_0x199f[167]);var _0xfdf9x42=document[_0x199f[2]](_0x199f[130]);_0xfdf9x42[_0x199f[31]]= _0x199f[168];mxUtils[_0x199f[78]](_0xfdf9x42,mxResources[_0x199f[76]](_0x199f[144]));var _0xfdf9x3=document[_0x199f[2]](_0x199f[1]);_0xfdf9x3[_0x199f[5]](_0x199f[23],_0xfdf9x8[_0x199f[13]][_0x199f[127]]());_0xfdf9x3[_0x199f[31]]= _0x199f[134];var _0xfdf9x25=_0xfdf9x8[_0x199f[50]](_0x199f[169]);_0xfdf9x25[_0x199f[25]](_0xfdf9x3);_0xfdf9x50[_0x199f[25]](_0xfdf9x42);_0xfdf9x50[_0x199f[25]](_0xfdf9x25);_0xfdf9x4f[_0x199f[25]](_0xfdf9x50);_0xfdf9x2a[_0x199f[25]](_0xfdf9x4f);var _0xfdf9x37=mxUtils[_0x199f[80]](mxResources[_0x199f[76]](_0x199f[165]),mxUtils[_0x199f[103]](this,function(_0xfdf9x38){_0xfdf9x8[_0x199f[135]](false);var _0xfdf9x51=encodeURIComponent(mxUtils[_0x199f[170]](_0xfdf9x8[_0x199f[13]][_0x199f[157]]())); new mxXmlRequest(SAVE_URL+ _0xfdf9x8[_0x199f[13]][_0x199f[12]][_0x199f[133]]+ _0x199f[172],_0x199f[173]+ _0xfdf9x3[_0x199f[23]],_0x199f[7])[_0x199f[171]](document,_0x199f[122]);_0xfdf9x8[_0x199f[79]]()}));_0xfdf9x37[_0x199f[31]]= _0x199f[104];var _0xfdf9x3a=mxUtils[_0x199f[80]](mxResources[_0x199f[76]](_0x199f[105]),function(){_0xfdf9x8[_0x199f[79]]()});_0xfdf9x3a[_0x199f[31]]= _0x199f[106];_0xfdf9x2b[_0x199f[25]](_0xfdf9x37);_0xfdf9x2b[_0x199f[25]](_0xfdf9x3a);_0xfdf9x28[_0x199f[25]](_0xfdf9x29);_0xfdf9x28[_0x199f[25]](_0xfdf9x2a);_0xfdf9x28[_0x199f[25]](_0xfdf9x2b);this[_0x199f[64]]= _0xfdf9x28}function GeneralDialog(_0xfdf9x8,_0xfdf9x53){var _0xfdf9x54=_0xfdf9x8[_0x199f[13]][_0x199f[174]];var _0xfdf9x28=_0xfdf9x8[_0x199f[50]](_0x199f[69]);var _0xfdf9x29=_0xfdf9x8[_0x199f[50]](_0x199f[70]);var _0xfdf9x2a=_0xfdf9x8[_0x199f[50]](_0x199f[175]);var _0xfdf9x2b=_0xfdf9x8[_0x199f[50]](_0x199f[72]);var _0xfdf9x2c=_0xfdf9x8[_0x199f[74]](_0x199f[73]);mxUtils[_0x199f[78]](_0xfdf9x2c,mxResources[_0x199f[76]](_0x199f[156])+ _0x199f[176]+ mxResources[_0x199f[76]](_0xfdf9x53[_0x199f[23]][_0x199f[177]]));var _0xfdf9x2d=mxUtils[_0x199f[80]](_0x199f[40],function(){_0xfdf9x8[_0x199f[79]]()});_0xfdf9x2d[_0x199f[31]]= _0x199f[65];_0xfdf9x29[_0x199f[25]](_0xfdf9x2d);_0xfdf9x29[_0x199f[25]](_0xfdf9x2c);var _0xfdf9x55=_0xfdf9x8[_0x199f[50]](_0x199f[166]);_0xfdf9x55[_0x199f[5]](_0x199f[133],_0x199f[178]);var _0xfdf9x56=_0xfdf9x53[_0x199f[23]][_0x199f[179]][_0x199f[141]];var _0xfdf9x4f=_0xfdf9x8[_0x199f[50]](_0x199f[166]);for(var _0xfdf9x57=0;_0xfdf9x57< _0xfdf9x56;_0xfdf9x57++){var _0xfdf9x3f=_0xfdf9x53[_0x199f[23]][_0x199f[179]][_0xfdf9x57][_0x199f[125]];var _0xfdf9x40=_0x199f[126]+ _0xfdf9x3f;var _0xfdf9x2=_0xfdf9x53[_0x199f[23]][_0x199f[179]][_0xfdf9x57][_0x199f[23]];console[_0x199f[94]](_0xfdf9x3f);var _0xfdf9x50=_0xfdf9x8[_0x199f[50]]((_0xfdf9x57== _0xfdf9x56- 1)?_0x199f[167]:_0x199f[180]);var _0xfdf9x42=document[_0x199f[2]](_0x199f[130]);_0xfdf9x42[_0x199f[31]]= _0x199f[168];mxUtils[_0x199f[78]](_0xfdf9x42,mxResources[_0x199f[76]](_0xfdf9x3f));_0xfdf9x50[_0x199f[25]](_0xfdf9x42);var _0xfdf9x3;switch(_0xfdf9x3f){case _0x199f[133]:_0xfdf9x3= document[_0x199f[2]](_0x199f[1]);_0xfdf9x2= _0xfdf9x53[_0x199f[133]];_0xfdf9x3[_0x199f[5]](_0x199f[23],_0xfdf9x2);_0xfdf9x3[_0x199f[5]](_0x199f[181],true);_0xfdf9x3[_0x199f[31]]= _0x199f[134];break;case _0x199f[187]:_0xfdf9x3= document[_0x199f[2]](_0x199f[1]);_0xfdf9x3[_0x199f[5]](_0x199f[3],_0x199f[80]);_0xfdf9x3[_0x199f[182]]= function(){if(this[_0x199f[23]]== _0x199f[183]){this[_0x199f[5]](_0x199f[23],_0x199f[184]);this[_0x199f[31]]= _0x199f[185]}else {this[_0x199f[31]]= _0x199f[186];this[_0x199f[5]](_0x199f[23],_0x199f[183])}};_0xfdf9x3[_0x199f[5]](_0x199f[23],_0xfdf9x2);_0xfdf9x3[_0x199f[31]]= (_0xfdf9x2== _0x199f[183]?_0x199f[186]:_0x199f[185]);break;case _0x199f[21]:_0xfdf9x3= document[_0x199f[2]](_0x199f[83]);_0xfdf9x3[_0x199f[188]]= _0xfdf9x2;_0xfdf9x3[_0x199f[31]]= _0x199f[134];break;case _0x199f[189]:_0xfdf9x3= document[_0x199f[2]](_0x199f[83]);_0xfdf9x3[_0x199f[188]]= _0xfdf9x2;_0xfdf9x3[_0x199f[31]]= _0x199f[134];break;case _0x199f[190]:_0xfdf9x3= document[_0x199f[2]](_0x199f[83]);_0xfdf9x3[_0x199f[188]]= _0xfdf9x2;_0xfdf9x3[_0x199f[31]]= _0x199f[134];break;case _0x199f[193]:_0xfdf9x3= document[_0x199f[2]](_0x199f[1]);_0xfdf9x3[_0x199f[5]](_0x199f[23],_0xfdf9x2);_0xfdf9x3[_0x199f[5]](_0x199f[191],_0x199f[192]);_0xfdf9x3[_0x199f[31]]= _0x199f[134];break;case _0x199f[195]:_0xfdf9x3= createDropdownFromApi(_0x199f[194],_0xfdf9x2,_0x199f[125],_0x199f[133],_0xfdf9x8);break;case _0x199f[198]:_0xfdf9x3= document[_0x199f[2]](_0x199f[83]);_0xfdf9x3[_0x199f[188]]= _0xfdf9x2;_0xfdf9x3[_0x199f[31]]= _0x199f[134];_0xfdf9x3[_0x199f[5]](_0x199f[196],_0x199f[197]);break;case _0x199f[201]:var _0xfdf9x3=mxUtils[_0x199f[80]](_0x199f[199],function(){var _0xfdf9x58=createDynamicInput(null,null,_0xfdf9x8);_0xfdf9x55[_0x199f[25]](_0xfdf9x58);_0xfdf9x2a[_0x199f[25]](_0xfdf9x55)});_0xfdf9x3[_0x199f[31]]= _0x199f[200];break;default:_0xfdf9x3= document[_0x199f[2]](_0x199f[1]);_0xfdf9x3[_0x199f[5]](_0x199f[23],_0xfdf9x2);_0xfdf9x3[_0x199f[31]]= _0x199f[134];break};_0xfdf9x3[_0x199f[5]](_0x199f[133],_0xfdf9x40);var _0xfdf9x25=_0xfdf9x8[_0x199f[50]](_0x199f[169]);_0xfdf9x25[_0x199f[25]](_0xfdf9x3);if(mxResources[_0x199f[76]](_0x199f[202]+ _0xfdf9x3f)){var _0xfdf9x59=_0xfdf9x8[_0x199f[50]](_0x199f[203]);_0xfdf9x59[_0x199f[31]]= _0x199f[204];mxUtils[_0x199f[78]](_0xfdf9x59,mxResources[_0x199f[76]](_0x199f[202]+ _0xfdf9x3f));_0xfdf9x25[_0x199f[25]](_0xfdf9x59)};_0xfdf9x50[_0x199f[25]](_0xfdf9x25);_0xfdf9x4f[_0x199f[25]](_0xfdf9x50)};_0xfdf9x2a[_0x199f[25]](_0xfdf9x4f);if(_0xfdf9x53[_0x199f[23]][_0x199f[177]]== _0x199f[1]){if(_0xfdf9x53[_0x199f[205]]){for(var _0xfdf9x47=0;_0xfdf9x47< _0xfdf9x53[_0x199f[205]][_0x199f[141]];_0xfdf9x47++){var _0xfdf9x5a=_0x199f[40];var _0xfdf9x5b=_0x199f[40];_[_0x199f[28]](_0xfdf9x53[_0x199f[205]][_0xfdf9x47][_0x199f[23]][_0x199f[179]],function(_0xfdf9x5c){if(_0xfdf9x5c[_0x199f[125]]== _0x199f[3]){_0xfdf9x5a= _0xfdf9x5c[_0x199f[23]]}else {if(_0xfdf9x5c[_0x199f[125]]== _0x199f[130]){_0xfdf9x5b= _0xfdf9x5c[_0x199f[23]]}}});var _0xfdf9x58=createDynamicInput(_0xfdf9x5a,_0xfdf9x5b,_0xfdf9x8);_0xfdf9x55[_0x199f[25]](_0xfdf9x58)}}};_0xfdf9x2a[_0x199f[25]](_0xfdf9x55);var _0xfdf9x37=mxUtils[_0x199f[80]](mxResources[_0x199f[76]](_0x199f[135]),mxUtils[_0x199f[103]](this,function(_0xfdf9x38){for(var _0xfdf9x57=0;_0xfdf9x57< _0xfdf9x53[_0x199f[23]][_0x199f[179]][_0x199f[141]];_0xfdf9x57++){var _0xfdf9x40=_0x199f[126]+ _0xfdf9x53[_0x199f[23]][_0x199f[179]][_0xfdf9x57][_0x199f[125]];var _0xfdf9x3f=_0xfdf9x53[_0x199f[23]][_0x199f[179]][_0xfdf9x57][_0x199f[125]];console[_0x199f[94]](_0xfdf9x3f);_0xfdf9x53[_0x199f[5]](_0xfdf9x3f,document[_0x199f[206]](_0xfdf9x40)[_0x199f[23]]);console[_0x199f[94]](document[_0x199f[206]](_0xfdf9x40)[_0x199f[23]])};if(_0xfdf9x53[_0x199f[23]][_0x199f[177]]== _0x199f[1]){if(_0xfdf9x54[_0x199f[208]][_0x199f[207]](_0xfdf9x53)){_0xfdf9x53[_0x199f[205]]= []};if(document[_0x199f[206]](_0x199f[178])){var _0xfdf9x55=document[_0x199f[206]](_0x199f[178])[_0x199f[205]];for(var _0xfdf9x47=0;_0xfdf9x47< _0xfdf9x55[_0x199f[141]];_0xfdf9x47++){var _0xfdf9x5d=_0xfdf9x55[_0xfdf9x47][_0x199f[205]][1];var _0xfdf9x5e=_0xfdf9x55[_0xfdf9x47][_0x199f[205]][0];var _0xfdf9x39=mxUtils[_0x199f[209]]();var _0xfdf9x5f=_0xfdf9x39[_0x199f[2]](_0x199f[178]);_0xfdf9x5f[_0x199f[5]](_0x199f[3],_0xfdf9x55[_0xfdf9x47][_0x199f[210]](_0x199f[19])[0][_0x199f[23]]);_0xfdf9x5f[_0x199f[5]](_0x199f[130],_0xfdf9x55[_0xfdf9x47][_0x199f[210]](_0x199f[1])[0][_0x199f[23]]);var _0xfdf9x60= new mxCell(_0xfdf9x5f);_0xfdf9x54[_0x199f[208]][_0x199f[201]](_0xfdf9x53,_0xfdf9x60)}}};_0xfdf9x54[_0x199f[211]](_0xfdf9x53);_0xfdf9x8[_0x199f[79]]()}));_0xfdf9x37[_0x199f[31]]= _0x199f[104];var _0xfdf9x3a=mxUtils[_0x199f[80]](mxResources[_0x199f[76]](_0x199f[105]),function(){_0xfdf9x8[_0x199f[79]]()});_0xfdf9x3a[_0x199f[31]]= _0x199f[106];_0xfdf9x2b[_0x199f[25]](_0xfdf9x37);_0xfdf9x2b[_0x199f[25]](_0xfdf9x3a);_0xfdf9x28[_0x199f[25]](_0xfdf9x29);_0xfdf9x28[_0x199f[25]](_0xfdf9x2a);_0xfdf9x28[_0x199f[25]](_0xfdf9x2b);this[_0x199f[64]]= _0xfdf9x28}function createDynamicInput(_0xfdf9x5a,_0xfdf9x5b,_0xfdf9x8){var _0xfdf9x58=_0xfdf9x8[_0x199f[50]](_0x199f[180]);var _0xfdf9x2f=_0xfdf9x8[_0x199f[50]](_0x199f[212]);var _0xfdf9x41=_0xfdf9x8[_0x199f[50]](_0x199f[212]);var _0xfdf9x62=_0xfdf9x8[_0x199f[50]](_0x199f[213]);var _0xfdf9x3=document[_0x199f[2]](_0x199f[1]);_0xfdf9x3[_0x199f[5]](_0x199f[191],_0x199f[214]);_0xfdf9x3[_0x199f[23]]= _0xfdf9x5b;_0xfdf9x3[_0x199f[31]]= _0x199f[134];_0xfdf9x2f[_0x199f[25]](_0xfdf9x3);var _0xfdf9x43=document[_0x199f[2]](_0x199f[19]);var _0xfdf9xd=document[_0x199f[2]](_0x199f[20]);_0xfdf9xd[_0x199f[21]]= _0x199f[22];_0xfdf9xd[_0x199f[23]]= _0x199f[40];_0xfdf9x43[_0x199f[25]](_0xfdf9xd);var _0xfdf9x13=[_0x199f[21],_0x199f[215],_0x199f[83],_0x199f[4]];_0xfdf9x13[_0x199f[28]](function(_0xfdf9xe){_0xfdf9xd= document[_0x199f[2]](_0x199f[20]);_0xfdf9xd[_0x199f[21]]= _0xfdf9xe;_0xfdf9xd[_0x199f[23]]= _0xfdf9xe;_0xfdf9xd[_0x199f[29]]= (_0xfdf9xe== _0xfdf9x5a);_0xfdf9x43[_0x199f[25]](_0xfdf9xd)});_0xfdf9x43[_0x199f[31]]= _0x199f[134];_0xfdf9x41[_0x199f[25]](_0xfdf9x43);var _0xfdf9x63=mxUtils[_0x199f[80]](_0x199f[216],function(){var _0xfdf9x64=_0xfdf9x63[_0x199f[217]];var _0xfdf9x65=_0xfdf9x64[_0x199f[217]];document[_0x199f[206]](_0x199f[178])[_0x199f[67]](_0xfdf9x65)});_0xfdf9x63[_0x199f[31]]= _0x199f[218];_0xfdf9x62[_0x199f[25]](_0xfdf9x63);_0xfdf9x58[_0x199f[25]](_0xfdf9x2f);_0xfdf9x58[_0x199f[25]](_0xfdf9x41);_0xfdf9x58[_0x199f[25]](_0xfdf9x62);return _0xfdf9x58} \ No newline at end of file diff --git a/public/assets/plugins/jscripty/js/Editor.js b/public/assets/plugins/jscripty/js/Editor.js index a77dc26..40aa06e 100644 --- a/public/assets/plugins/jscripty/js/Editor.js +++ b/public/assets/plugins/jscripty/js/Editor.js @@ -1 +1 @@ -var _0xcbc6=["\x49\x53\x5F\x54\x4F\x55\x43\x48","\x73\x74\x6F\x72\x61\x67\x65","\x6C\x6F\x63\x61\x6C","\x75\x6E\x64\x65\x66\x69\x6E\x65\x64","\x46\x69\x6C\x65","\x46\x69\x6C\x65\x52\x65\x61\x64\x65\x72","\x46\x69\x6C\x65\x4C\x69\x73\x74","\x74\x6F\x75\x63\x68","\x31","\x6F\x70\x65\x6E\x65\x72","\x63\x6F\x75\x6E\x74\x65\x72","\x63\x61\x6C\x6C","\x69\x6E\x69\x74","\x69\x6E\x69\x74\x53\x74\x65\x6E\x63\x69\x6C\x52\x65\x67\x69\x73\x74\x72\x79","\x67\x72\x61\x70\x68","\x6F\x75\x74\x6C\x69\x6E\x65","\x75\x70\x64\x61\x74\x65\x4F\x6E\x50\x61\x6E","\x75\x6E\x64\x6F\x4D\x61\x6E\x61\x67\x65\x72","\x63\x72\x65\x61\x74\x65\x55\x6E\x64\x6F\x4D\x61\x6E\x61\x67\x65\x72","\x73\x74\x61\x74\x75\x73","","\x66\x69\x6C\x65\x6E\x61\x6D\x65","\x67\x65\x74\x4F\x72\x43\x72\x65\x61\x74\x65\x46\x69\x6C\x65\x6E\x61\x6D\x65","\x64\x72\x61\x77\x69\x6E\x67","\x67\x65\x74","\x2E\x78\x6D\x6C","\x67\x65\x74\x46\x69\x6C\x65\x6E\x61\x6D\x65","\x73\x65\x74\x53\x74\x61\x74\x75\x73","\x73\x74\x61\x74\x75\x73\x43\x68\x61\x6E\x67\x65\x64","\x66\x69\x72\x65\x45\x76\x65\x6E\x74","\x67\x65\x74\x53\x74\x61\x74\x75\x73","\x6D\x6F\x64\x69\x66\x69\x65\x64","\x67\x72\x61\x70\x68\x43\x68\x61\x6E\x67\x65\x4C\x69\x73\x74\x65\x6E\x65\x72","\x61\x70\x70\x6C\x79","\x62\x69\x6E\x64","\x61\x64\x64\x4C\x69\x73\x74\x65\x6E\x65\x72","\x67\x65\x74\x4D\x6F\x64\x65\x6C","\x6F\x6E\x62\x65\x66\x6F\x72\x65\x75\x6E\x6C\x6F\x61\x64","\x61\x6C\x6C\x43\x68\x61\x6E\x67\x65\x73\x4C\x6F\x73\x74","\x72\x65\x73\x65\x74\x56\x69\x65\x77\x4F\x6E\x52\x6F\x6F\x74\x43\x68\x61\x6E\x67\x65","\x73\x63\x72\x6F\x6C\x6C\x62\x61\x72\x73","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64","\x65\x78\x74\x65\x6E\x64","\x67\x72\x69\x64\x49\x6D\x61\x67\x65","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x2F\x67\x72\x69\x64\x2E\x67\x69\x66","\x74\x72\x61\x6E\x73\x70\x61\x72\x65\x6E\x74\x49\x6D\x61\x67\x65","\x2F\x74\x72\x61\x6E\x73\x70\x61\x72\x65\x6E\x74\x2E\x67\x69\x66","\x73\x65\x74\x47\x72\x61\x70\x68\x58\x6D\x6C","\x6F\x77\x6E\x65\x72\x44\x6F\x63\x75\x6D\x65\x6E\x74","\x6E\x6F\x64\x65\x4E\x61\x6D\x65","\x6D\x78\x47\x72\x61\x70\x68\x4D\x6F\x64\x65\x6C","\x73\x63\x61\x6C\x65","\x76\x69\x65\x77","\x67\x72\x69\x64\x45\x6E\x61\x62\x6C\x65\x64","\x67\x72\x69\x64","\x67\x65\x74\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x30","\x67\x75\x69\x64\x65\x73\x45\x6E\x61\x62\x6C\x65\x64","\x67\x72\x61\x70\x68\x48\x61\x6E\x64\x6C\x65\x72","\x67\x75\x69\x64\x65\x73","\x74\x6F\x6F\x6C\x74\x69\x70\x73","\x73\x65\x74\x54\x6F\x6F\x6C\x74\x69\x70\x73","\x63\x6F\x6E\x6E\x65\x63\x74","\x73\x65\x74\x43\x6F\x6E\x6E\x65\x63\x74\x61\x62\x6C\x65","\x66\x6F\x6C\x64\x69\x6E\x67\x45\x6E\x61\x62\x6C\x65\x64","\x66\x6F\x6C\x64","\x73\x63\x72\x6F\x6C\x6C\x4C\x65\x66\x74","\x63\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x73\x63\x72\x6F\x6C\x6C\x54\x6F\x70","\x78","\x74\x72\x61\x6E\x73\x6C\x61\x74\x65","\x64\x78","\x79","\x64\x79","\x70\x61\x67\x65\x56\x69\x73\x69\x62\x6C\x65","\x70\x61\x67\x65","\x70\x61\x67\x65\x42\x72\x65\x61\x6B\x73\x56\x69\x73\x69\x62\x6C\x65","\x70\x72\x65\x66\x65\x72\x50\x61\x67\x65\x53\x69\x7A\x65","\x70\x61\x67\x65\x53\x63\x61\x6C\x65","\x70\x61\x67\x65\x57\x69\x64\x74\x68","\x70\x61\x67\x65\x48\x65\x69\x67\x68\x74","\x70\x61\x67\x65\x46\x6F\x72\x6D\x61\x74","\x6C\x65\x6E\x67\x74\x68","\x64\x65\x63\x6F\x64\x65","\x75\x70\x64\x61\x74\x65\x47\x72\x61\x70\x68\x43\x6F\x6D\x70\x6F\x6E\x65\x6E\x74\x73","\x67\x65\x74\x47\x72\x61\x70\x68\x58\x6D\x6C","\x63\x72\x65\x61\x74\x65\x58\x6D\x6C\x44\x6F\x63\x75\x6D\x65\x6E\x74","\x65\x6E\x63\x6F\x64\x65","\x72\x6F\x75\x6E\x64","\x73\x65\x74\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x69\x73\x47\x72\x69\x64\x45\x6E\x61\x62\x6C\x65\x64","\x69\x73\x45\x6E\x61\x62\x6C\x65\x64","\x74\x6F\x6F\x6C\x74\x69\x70\x48\x61\x6E\x64\x6C\x65\x72","\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x48\x61\x6E\x64\x6C\x65\x72","\x77\x69\x64\x74\x68","\x68\x65\x69\x67\x68\x74","\x6E\x6F\x6E\x65","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x43\x6F\x6C\x6F\x72","\x73\x74\x79\x6C\x65","\x74\x72\x61\x6E\x73\x70\x61\x72\x65\x6E\x74","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x50\x61\x67\x65\x53\x68\x61\x70\x65","\x66\x69\x6C\x6C","\x72\x65\x63\x6F\x6E\x66\x69\x67\x75\x72\x65","\x23\x65\x62\x65\x62\x65\x62","\x62\x6F\x72\x64\x65\x72\x53\x74\x79\x6C\x65","\x73\x6F\x6C\x69\x64","\x62\x6F\x72\x64\x65\x72\x43\x6F\x6C\x6F\x72","\x23\x65\x35\x65\x35\x65\x35","\x62\x6F\x72\x64\x65\x72\x54\x6F\x70\x57\x69\x64\x74\x68","\x31\x70\x78","\x62\x6F\x72\x64\x65\x72\x4C\x65\x66\x74\x57\x69\x64\x74\x68","\x62\x6F\x72\x64\x65\x72\x52\x69\x67\x68\x74\x57\x69\x64\x74\x68","\x30\x70\x78","\x62\x6F\x72\x64\x65\x72\x42\x6F\x74\x74\x6F\x6D\x57\x69\x64\x74\x68","\x62\x6F\x72\x64\x65\x72","\x76\x61\x6C\x69\x64\x61\x74\x65","\x6F\x76\x65\x72\x66\x6C\x6F\x77","\x68\x69\x64\x64\x65\x6E","\x61\x75\x74\x6F","\x49\x53\x5F\x49\x45","\x64\x6F\x63\x75\x6D\x65\x6E\x74\x4D\x6F\x64\x65","\x75\x72\x6C\x28","\x29","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x49\x6D\x61\x67\x65","\x6E\x6F\x64\x65","\x49\x53\x5F\x49\x45\x36","\x73\x74\x79\x6C\x65\x73\x68\x65\x65\x74","\x2F\x67\x72\x61\x70\x68\x65\x64\x69\x74\x6F\x72\x2D\x69\x65\x36\x2E\x63\x73\x73","\x6C\x69\x6E\x6B","\x6C\x6F\x61\x64\x44\x65\x66\x61\x75\x6C\x74\x42\x75\x6E\x64\x6C\x65","\x61\x64\x64","\x44\x45\x46\x41\x55\x4C\x54\x5F\x48\x4F\x54\x53\x50\x4F\x54","\x63\x72\x65\x61\x74\x65\x4D\x61\x72\x6B\x65\x72","\x69\x6E\x74\x65\x72\x73\x65\x63\x74\x73","\x69\x73\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6E\x67","\x53\x48\x41\x44\x4F\x57\x43\x4F\x4C\x4F\x52","\x23\x64\x30\x64\x30\x64\x30","\x48\x41\x4E\x44\x4C\x45\x5F\x46\x49\x4C\x4C\x43\x4F\x4C\x4F\x52","\x23\x39\x39\x63\x63\x66\x66","\x48\x41\x4E\x44\x4C\x45\x5F\x53\x54\x52\x4F\x4B\x45\x43\x4F\x4C\x4F\x52","\x23\x30\x30\x38\x38\x63\x66","\x56\x45\x52\x54\x45\x58\x5F\x53\x45\x4C\x45\x43\x54\x49\x4F\x4E\x5F\x43\x4F\x4C\x4F\x52","\x23\x30\x30\x61\x38\x66\x66","\x4F\x55\x54\x4C\x49\x4E\x45\x5F\x43\x4F\x4C\x4F\x52","\x4F\x55\x54\x4C\x49\x4E\x45\x5F\x48\x41\x4E\x44\x4C\x45\x5F\x46\x49\x4C\x4C\x43\x4F\x4C\x4F\x52","\x4F\x55\x54\x4C\x49\x4E\x45\x5F\x48\x41\x4E\x44\x4C\x45\x5F\x53\x54\x52\x4F\x4B\x45\x43\x4F\x4C\x4F\x52","\x43\x4F\x4E\x4E\x45\x43\x54\x5F\x48\x41\x4E\x44\x4C\x45\x5F\x46\x49\x4C\x4C\x43\x4F\x4C\x4F\x52","\x23\x63\x65\x65\x37\x66\x66","\x45\x44\x47\x45\x5F\x53\x45\x4C\x45\x43\x54\x49\x4F\x4E\x5F\x43\x4F\x4C\x4F\x52","\x44\x45\x46\x41\x55\x4C\x54\x5F\x56\x41\x4C\x49\x44\x5F\x43\x4F\x4C\x4F\x52","\x4C\x41\x42\x45\x4C\x5F\x48\x41\x4E\x44\x4C\x45\x5F\x46\x49\x4C\x4C\x43\x4F\x4C\x4F\x52","\x47\x55\x49\x44\x45\x5F\x43\x4F\x4C\x4F\x52","\x70\x61\x67\x65\x42\x72\x65\x61\x6B\x43\x6F\x6C\x6F\x72","\x23\x63\x30\x63\x30\x63\x30","\x64\x65\x66\x61\x75\x6C\x74\x4F\x70\x61\x63\x69\x74\x79","\x63\x72\x65\x61\x74\x65\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x50\x61\x67\x65\x53\x68\x61\x70\x65","\x77\x68\x69\x74\x65","\x23\x63\x61\x63\x61\x63\x61","\x67\x65\x74\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x50\x61\x67\x65\x42\x6F\x75\x6E\x64\x73","\x67\x65\x74\x47\x72\x61\x70\x68\x42\x6F\x75\x6E\x64\x73","\x6D\x69\x6E","\x66\x6C\x6F\x6F\x72","\x6D\x61\x78","\x63\x65\x69\x6C","\x70\x61\x6E\x47\x72\x61\x70\x68","\x64\x69\x61\x6C\x65\x63\x74","\x44\x49\x41\x4C\x45\x43\x54\x5F\x53\x56\x47","\x75\x73\x65\x53\x63\x72\x6F\x6C\x6C\x62\x61\x72\x73\x46\x6F\x72\x50\x61\x6E\x6E\x69\x6E\x67","\x68\x61\x73\x53\x63\x72\x6F\x6C\x6C\x62\x61\x72\x73","\x6D\x61\x72\x67\x69\x6E\x4C\x65\x66\x74","\x70\x78","\x6D\x61\x72\x67\x69\x6E\x54\x6F\x70","\x76\x61\x6C\x69\x64\x61\x74\x65\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64","\x67\x65\x74\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x49\x6D\x61\x67\x65","\x69\x6D\x61\x67\x65","\x73\x72\x63","\x64\x65\x73\x74\x72\x6F\x79","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x50\x61\x6E\x65","\x72\x65\x64\x72\x61\x77","\x72\x65\x64\x72\x61\x77\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x49\x6D\x61\x67\x65","\x69\x73\x53\x68\x61\x64\x6F\x77","\x44\x49\x41\x4C\x45\x43\x54\x5F\x53\x54\x52\x49\x43\x54\x48\x54\x4D\x4C","\x70\x6F\x73\x69\x74\x69\x6F\x6E","\x66\x69\x72\x73\x74\x43\x68\x69\x6C\x64","\x61\x62\x73\x6F\x6C\x75\x74\x65","\x69\x6E\x73\x65\x72\x74\x42\x65\x66\x6F\x72\x65","\x63\x6C\x61\x73\x73\x4E\x61\x6D\x65","\x67\x65\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x50\x61\x67\x65","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x50\x6F\x73\x69\x74\x69\x6F\x6E","\x2D\x31\x70\x78\x20\x2D\x31\x70\x78","\x64\x62\x6C\x63\x6C\x69\x63\x6B","\x64\x62\x6C\x43\x6C\x69\x63\x6B","\x66\x69\x72\x65\x4D\x6F\x75\x73\x65\x45\x76\x65\x6E\x74","\x69\x73\x48\x69\x64\x65\x4F\x6E\x48\x6F\x76\x65\x72","\x68\x69\x64\x65","\x69\x73\x4D\x6F\x75\x73\x65\x44\x6F\x77\x6E","\x69\x73\x43\x6F\x6E\x73\x75\x6D\x65\x64","\x61\x64\x64\x47\x65\x73\x74\x75\x72\x65\x4C\x69\x73\x74\x65\x6E\x65\x72\x73","\x62\x6F\x75\x6E\x64\x73","\x75\x70\x64\x61\x74\x65\x50\x61\x67\x65\x42\x72\x65\x61\x6B\x73","\x6D\x69\x6E\x50\x61\x67\x65\x42\x72\x65\x61\x6B\x44\x69\x73\x74","\x68\x6F\x72\x69\x7A\x6F\x6E\x74\x61\x6C\x50\x61\x67\x65\x42\x72\x65\x61\x6B\x73","\x70\x6F\x69\x6E\x74\x73","\x69\x73\x44\x61\x73\x68\x65\x64","\x70\x61\x67\x65\x42\x72\x65\x61\x6B\x44\x61\x73\x68\x65\x64","\x61\x64\x64\x50\x69\x70\x65","\x73\x70\x6C\x69\x63\x65","\x76\x65\x72\x74\x69\x63\x61\x6C\x50\x61\x67\x65\x42\x72\x65\x61\x6B\x73","\x73\x6E\x61\x70\x54\x6F\x54\x65\x72\x6D\x69\x6E\x61\x6C\x73","\x73\x68\x6F\x75\x6C\x64\x52\x65\x6D\x6F\x76\x65\x43\x65\x6C\x6C\x73\x46\x72\x6F\x6D\x50\x61\x72\x65\x6E\x74","\x69\x73\x56\x65\x72\x74\x65\x78","\x67\x65\x74\x43\x65\x6C\x6C\x47\x65\x6F\x6D\x65\x74\x72\x79","\x72\x65\x6C\x61\x74\x69\x76\x65","\x69\x73\x45\x6E\x61\x62\x6C\x65\x64\x46\x6F\x72\x45\x76\x65\x6E\x74","\x69\x73\x41\x6C\x74\x44\x6F\x77\x6E","\x61\x64\x64\x49\x74\x65\x6D","\x6D\x6F\x75\x73\x65\x64\x6F\x77\x6E","\x63\x6F\x6E\x73\x75\x6D\x65","\x67\x65\x74\x49\x6E\x69\x74\x69\x61\x6C\x43\x65\x6C\x6C\x46\x6F\x72\x45\x76\x65\x6E\x74","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C","\x67\x65\x74\x50\x61\x72\x65\x6E\x74","\x69\x73\x43\x65\x6C\x6C\x53\x65\x6C\x65\x63\x74\x65\x64","\x69\x73\x56\x61\x6C\x69\x64\x52\x6F\x6F\x74","\x69\x73\x44\x65\x6C\x61\x79\x65\x64\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E","\x73\x65\x6C\x65\x63\x74\x44\x65\x6C\x61\x79\x65\x64","\x67\x65\x74\x43\x65\x6C\x6C","\x63\x65\x6C\x6C","\x67\x65\x74\x45\x76\x65\x6E\x74","\x73\x65\x6C\x65\x63\x74\x43\x65\x6C\x6C\x46\x6F\x72\x45\x76\x65\x6E\x74","\x67\x65\x74\x43\x65\x6C\x6C\x46\x6F\x72\x50\x6F\x70\x75\x70\x45\x76\x65\x6E\x74","\x65\x64\x69\x74","\x67\x65\x74\x50\x72\x6F\x70\x65\x72\x74\x79","\x75\x6E\x64\x6F\x61\x62\x6C\x65\x45\x64\x69\x74\x48\x61\x70\x70\x65\x6E\x65\x64","\x67\x65\x74\x56\x69\x65\x77","\x63\x68\x61\x6E\x67\x65\x73","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C\x73\x46\x6F\x72\x43\x68\x61\x6E\x67\x65\x73","\x67\x65\x74\x53\x74\x61\x74\x65","\x70\x75\x73\x68","\x73\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C\x73","\x2F\x67\x65\x6E\x65\x72\x61\x6C\x2E\x78\x6D\x6C","\x6C\x6F\x61\x64\x53\x74\x65\x6E\x63\x69\x6C\x53\x65\x74","\x6C\x69\x62\x72\x61\x72\x69\x65\x73","\x70\x61\x63\x6B\x61\x67\x65\x73","\x67\x65\x74\x53\x74\x65\x6E\x63\x69\x6C","\x73\x74\x65\x6E\x63\x69\x6C\x73","\x67\x65\x74\x42\x61\x73\x65\x6E\x61\x6D\x65\x46\x6F\x72\x53\x74\x65\x6E\x63\x69\x6C","\x73\x75\x62\x73\x74\x72\x69\x6E\x67","\x74\x6F\x4C\x6F\x77\x65\x72\x43\x61\x73\x65","\x2E\x6A\x73","\x6C\x6F\x61\x64","\x67\x65\x74\x54\x65\x78\x74","\x2F","\x2E","\x73\x70\x6C\x69\x74","\x6D\x78\x67\x72\x61\x70\x68","\x67\x65\x74\x58\x6D\x6C","\x70\x61\x72\x73\x65\x53\x74\x65\x6E\x63\x69\x6C\x53\x65\x74","\x64\x6F\x63\x75\x6D\x65\x6E\x74\x45\x6C\x65\x6D\x65\x6E\x74","\x6E\x61\x6D\x65","\x6E\x6F\x64\x65\x54\x79\x70\x65","\x4E\x4F\x44\x45\x54\x59\x50\x45\x5F\x45\x4C\x45\x4D\x45\x4E\x54","\x5F","\x72\x65\x70\x6C\x61\x63\x65","\x61\x64\x64\x53\x74\x65\x6E\x63\x69\x6C","\x77","\x68","\x6E\x65\x78\x74\x53\x69\x62\x6C\x69\x6E\x67","\x70\x72\x6F\x64\x75\x63\x65\x72","\x63\x6F\x6E\x73\x75\x6D\x65\x72","\x64\x6F\x6E\x65","\x73\x65\x74\x43\x6F\x6E\x73\x75\x6D\x65\x72","\x65\x78\x65\x63\x75\x74\x65","\x73\x65\x74\x44\x61\x74\x61","\x64\x61\x74\x61","\x65\x72\x72\x6F\x72","\x63\x61\x6E\x63\x65\x6C","\x61\x6C\x65\x72\x74"];var useLocalStorage=(mxClient[_0xcbc6[0]]|| urlParams[_0xcbc6[1]]== _0xcbc6[2])&& typeof (localStorage)!= _0xcbc6[3];var fileSupport=window[_0xcbc6[4]]!= null&& window[_0xcbc6[5]]!= null&& window[_0xcbc6[6]]!= null;var touchStyle=mxClient[_0xcbc6[0]]|| urlParams[_0xcbc6[7]]== _0xcbc6[8];var counter=0;try{var op=window;while(op[_0xcbc6[9]]!= null&& !isNaN(op[_0xcbc6[9]][_0xcbc6[10]])){op= op[_0xcbc6[9]]};if(op!= null){op[_0xcbc6[10]]++;counter= op[_0xcbc6[10]]}}catch(e){};Editor= function(){mxEventSource[_0xcbc6[11]](this);this[_0xcbc6[12]]();this[_0xcbc6[13]]();this[_0xcbc6[14]]= new Graph();this[_0xcbc6[15]]= new mxOutline(this[_0xcbc6[14]]);this[_0xcbc6[15]][_0xcbc6[16]]= true;this[_0xcbc6[17]]= this[_0xcbc6[18]]();this[_0xcbc6[19]]= _0xcbc6[20];this[_0xcbc6[21]]= null;this[_0xcbc6[22]]= function(){return this[_0xcbc6[21]]|| mxResources[_0xcbc6[24]](_0xcbc6[23],[counter])+ _0xcbc6[25]};this[_0xcbc6[26]]= function(){return this[_0xcbc6[21]]};this[_0xcbc6[27]]= function(_0xd34dx6){this[_0xcbc6[19]]= _0xd34dx6;this[_0xcbc6[29]]( new mxEventObject(_0xcbc6[28]))};this[_0xcbc6[30]]= function(){return this[_0xcbc6[19]]};this[_0xcbc6[31]]= false;this[_0xcbc6[32]]= function(){this[_0xcbc6[31]]= true};this[_0xcbc6[14]][_0xcbc6[36]]()[_0xcbc6[35]](mxEvent.CHANGE,mxUtils[_0xcbc6[34]](this,function(){this[_0xcbc6[32]][_0xcbc6[33]](this,arguments)}));window[_0xcbc6[37]]= mxUtils[_0xcbc6[34]](this,function(){if(this[_0xcbc6[31]]){return mxResources[_0xcbc6[24]](_0xcbc6[38])}});this[_0xcbc6[14]][_0xcbc6[39]]= false;this[_0xcbc6[14]][_0xcbc6[40]]= true;this[_0xcbc6[14]][_0xcbc6[41]]= null};mxUtils[_0xcbc6[42]](Editor,mxEventSource);Editor[_0xcbc6[44]][_0xcbc6[43]]= IMAGE_PATH+ _0xcbc6[45];Editor[_0xcbc6[44]][_0xcbc6[46]]= IMAGE_PATH+ _0xcbc6[47];Editor[_0xcbc6[44]][_0xcbc6[48]]= function(_0xd34dx7){var _0xd34dx8= new mxCodec(_0xd34dx7[_0xcbc6[49]]);if(_0xd34dx7[_0xcbc6[50]]== _0xcbc6[51]){this[_0xcbc6[14]][_0xcbc6[53]][_0xcbc6[52]]= 1;this[_0xcbc6[14]][_0xcbc6[54]]= _0xd34dx7[_0xcbc6[56]](_0xcbc6[55])!= _0xcbc6[57];this[_0xcbc6[14]][_0xcbc6[59]][_0xcbc6[58]]= _0xd34dx7[_0xcbc6[56]](_0xcbc6[60])!= _0xcbc6[57];this[_0xcbc6[14]][_0xcbc6[62]](_0xd34dx7[_0xcbc6[56]](_0xcbc6[61])!= _0xcbc6[57]);this[_0xcbc6[14]][_0xcbc6[64]](_0xd34dx7[_0xcbc6[56]](_0xcbc6[63])!= _0xcbc6[57]);this[_0xcbc6[14]][_0xcbc6[65]]= _0xd34dx7[_0xcbc6[56]](_0xcbc6[66])!= _0xcbc6[57];this[_0xcbc6[14]][_0xcbc6[40]]= _0xd34dx7[_0xcbc6[56]](_0xcbc6[40])!= _0xcbc6[57];if(!this[_0xcbc6[14]][_0xcbc6[40]]){this[_0xcbc6[14]][_0xcbc6[68]][_0xcbc6[67]]= 0;this[_0xcbc6[14]][_0xcbc6[68]][_0xcbc6[69]]= 0;this[_0xcbc6[14]][_0xcbc6[53]][_0xcbc6[71]][_0xcbc6[70]]= Number(_0xd34dx7[_0xcbc6[56]](_0xcbc6[72])|| 0);this[_0xcbc6[14]][_0xcbc6[53]][_0xcbc6[71]][_0xcbc6[73]]= Number(_0xd34dx7[_0xcbc6[56]](_0xcbc6[74])|| 0)};this[_0xcbc6[14]][_0xcbc6[75]]= _0xd34dx7[_0xcbc6[56]](_0xcbc6[76])== _0xcbc6[8];this[_0xcbc6[14]][_0xcbc6[77]]= this[_0xcbc6[14]][_0xcbc6[75]];this[_0xcbc6[14]][_0xcbc6[78]]= this[_0xcbc6[14]][_0xcbc6[77]];var _0xd34dx9=_0xd34dx7[_0xcbc6[56]](_0xcbc6[79]);if(_0xd34dx9!= null){this[_0xcbc6[14]][_0xcbc6[79]]= _0xd34dx9}else {this[_0xcbc6[14]][_0xcbc6[79]]= 1.5};var _0xd34dxa=_0xd34dx7[_0xcbc6[56]](_0xcbc6[80]);var _0xd34dxb=_0xd34dx7[_0xcbc6[56]](_0xcbc6[81]);if(_0xd34dxa!= null&& _0xd34dxb!= null){this[_0xcbc6[14]][_0xcbc6[82]]= new mxRectangle(0,0,parseFloat(_0xd34dxa),parseFloat(_0xd34dxb));this[_0xcbc6[15]][_0xcbc6[15]][_0xcbc6[82]]= this[_0xcbc6[14]][_0xcbc6[82]]};var _0xd34dxc=_0xd34dx7[_0xcbc6[56]](_0xcbc6[41]);if(_0xd34dxc!= null&& _0xd34dxc[_0xcbc6[83]]> 0){this[_0xcbc6[14]][_0xcbc6[41]]= _0xd34dxc};_0xd34dx8[_0xcbc6[84]](_0xd34dx7,this[_0xcbc6[14]][_0xcbc6[36]]());this[_0xcbc6[85]]()}};Editor[_0xcbc6[44]][_0xcbc6[86]]= function(){var _0xd34dxd= new mxCodec(mxUtils[_0xcbc6[87]]());var _0xd34dx7=_0xd34dxd[_0xcbc6[88]](this[_0xcbc6[14]][_0xcbc6[36]]());if(this[_0xcbc6[14]][_0xcbc6[53]][_0xcbc6[71]][_0xcbc6[70]]!= 0|| this[_0xcbc6[14]][_0xcbc6[53]][_0xcbc6[71]][_0xcbc6[73]]!= 0){_0xd34dx7[_0xcbc6[90]](_0xcbc6[72],Math[_0xcbc6[89]](this[_0xcbc6[14]][_0xcbc6[53]][_0xcbc6[71]][_0xcbc6[70]]* 100)/ 100);_0xd34dx7[_0xcbc6[90]](_0xcbc6[74],Math[_0xcbc6[89]](this[_0xcbc6[14]][_0xcbc6[53]][_0xcbc6[71]][_0xcbc6[73]]* 100)/ 100)};_0xd34dx7[_0xcbc6[90]](_0xcbc6[55],(this[_0xcbc6[14]][_0xcbc6[91]]())?_0xcbc6[8]:_0xcbc6[57]);_0xd34dx7[_0xcbc6[90]](_0xcbc6[60],(this[_0xcbc6[14]][_0xcbc6[59]][_0xcbc6[58]])?_0xcbc6[8]:_0xcbc6[57]);_0xd34dx7[_0xcbc6[90]](_0xcbc6[60],(this[_0xcbc6[14]][_0xcbc6[59]][_0xcbc6[58]])?_0xcbc6[8]:_0xcbc6[57]);_0xd34dx7[_0xcbc6[90]](_0xcbc6[61],(this[_0xcbc6[14]][_0xcbc6[93]][_0xcbc6[92]]())?_0xcbc6[8]:_0xcbc6[57]);_0xd34dx7[_0xcbc6[90]](_0xcbc6[63],(this[_0xcbc6[14]][_0xcbc6[94]][_0xcbc6[92]]())?_0xcbc6[8]:_0xcbc6[57]);_0xd34dx7[_0xcbc6[90]](_0xcbc6[66],(this[_0xcbc6[14]][_0xcbc6[65]])?_0xcbc6[8]:_0xcbc6[57]);_0xd34dx7[_0xcbc6[90]](_0xcbc6[76],(this[_0xcbc6[14]][_0xcbc6[75]])?_0xcbc6[8]:_0xcbc6[57]);_0xd34dx7[_0xcbc6[90]](_0xcbc6[79],this[_0xcbc6[14]][_0xcbc6[79]]);_0xd34dx7[_0xcbc6[90]](_0xcbc6[80],this[_0xcbc6[14]][_0xcbc6[82]][_0xcbc6[95]]);_0xd34dx7[_0xcbc6[90]](_0xcbc6[81],this[_0xcbc6[14]][_0xcbc6[82]][_0xcbc6[96]]);if(!this[_0xcbc6[14]][_0xcbc6[40]]){_0xd34dx7[_0xcbc6[90]](_0xcbc6[40],_0xcbc6[57])};if(this[_0xcbc6[14]][_0xcbc6[41]]!= null){_0xd34dx7[_0xcbc6[90]](_0xcbc6[41],this[_0xcbc6[14]][_0xcbc6[41]])};return _0xd34dx7};Editor[_0xcbc6[44]][_0xcbc6[85]]= function(){var _0xd34dxe=this[_0xcbc6[14]];var _0xd34dxf=this[_0xcbc6[15]];if(_0xd34dxe[_0xcbc6[68]]!= null&& _0xd34dxf[_0xcbc6[15]][_0xcbc6[68]]!= null){if(_0xd34dxe[_0xcbc6[41]]!= null){if(_0xd34dxe[_0xcbc6[41]]== _0xcbc6[97]){_0xd34dxe[_0xcbc6[68]][_0xcbc6[99]][_0xcbc6[98]]= _0xcbc6[100]}else {if(_0xd34dxe[_0xcbc6[53]][_0xcbc6[101]]!= null){_0xd34dxe[_0xcbc6[53]][_0xcbc6[101]][_0xcbc6[102]]= _0xd34dxe[_0xcbc6[41]];_0xd34dxe[_0xcbc6[53]][_0xcbc6[101]][_0xcbc6[103]]()};_0xd34dxe[_0xcbc6[68]][_0xcbc6[99]][_0xcbc6[98]]= _0xd34dxe[_0xcbc6[41]]}}else {_0xd34dxe[_0xcbc6[68]][_0xcbc6[99]][_0xcbc6[98]]= _0xcbc6[20]};if(_0xd34dxe[_0xcbc6[75]]){_0xd34dxe[_0xcbc6[68]][_0xcbc6[99]][_0xcbc6[98]]= _0xcbc6[104];_0xd34dxe[_0xcbc6[68]][_0xcbc6[99]][_0xcbc6[105]]= _0xcbc6[106];_0xd34dxe[_0xcbc6[68]][_0xcbc6[99]][_0xcbc6[107]]= _0xcbc6[108];_0xd34dxe[_0xcbc6[68]][_0xcbc6[99]][_0xcbc6[109]]= _0xcbc6[110];_0xd34dxe[_0xcbc6[68]][_0xcbc6[99]][_0xcbc6[111]]= _0xcbc6[110];_0xd34dxe[_0xcbc6[68]][_0xcbc6[99]][_0xcbc6[112]]= _0xcbc6[113];_0xd34dxe[_0xcbc6[68]][_0xcbc6[99]][_0xcbc6[114]]= _0xcbc6[113]}else {_0xd34dxe[_0xcbc6[68]][_0xcbc6[99]][_0xcbc6[115]]= _0xcbc6[20]};_0xd34dxf[_0xcbc6[15]][_0xcbc6[68]][_0xcbc6[99]][_0xcbc6[98]]= _0xd34dxe[_0xcbc6[68]][_0xcbc6[99]][_0xcbc6[98]];if(_0xd34dxf[_0xcbc6[15]][_0xcbc6[75]]!= _0xd34dxe[_0xcbc6[75]]|| _0xd34dxf[_0xcbc6[15]][_0xcbc6[79]]!= _0xd34dxe[_0xcbc6[79]]){_0xd34dxf[_0xcbc6[15]][_0xcbc6[79]]= _0xd34dxe[_0xcbc6[79]];_0xd34dxf[_0xcbc6[15]][_0xcbc6[75]]= _0xd34dxe[_0xcbc6[75]];_0xd34dxf[_0xcbc6[15]][_0xcbc6[53]][_0xcbc6[116]]()};if(_0xd34dxe[_0xcbc6[40]]&& _0xd34dxe[_0xcbc6[68]][_0xcbc6[99]][_0xcbc6[117]]== _0xcbc6[118]&& !touchStyle){_0xd34dxe[_0xcbc6[68]][_0xcbc6[99]][_0xcbc6[117]]= _0xcbc6[119]}else {if(!_0xd34dxe[_0xcbc6[40]]|| touchStyle){_0xd34dxe[_0xcbc6[68]][_0xcbc6[99]][_0xcbc6[117]]= _0xcbc6[118]}};var _0xd34dx10=(mxClient[_0xcbc6[120]]&& document[_0xcbc6[121]]>= 9)?_0xcbc6[122]+ this[_0xcbc6[46]]+ _0xcbc6[123]:_0xcbc6[97];_0xd34dxe[_0xcbc6[68]][_0xcbc6[99]][_0xcbc6[124]]= (!_0xd34dxe[_0xcbc6[75]]&& _0xd34dxe[_0xcbc6[91]]())?_0xcbc6[122]+ this[_0xcbc6[43]]+ _0xcbc6[123]:_0xd34dx10;if(_0xd34dxe[_0xcbc6[53]][_0xcbc6[101]]!= null){_0xd34dxe[_0xcbc6[53]][_0xcbc6[101]][_0xcbc6[125]][_0xcbc6[99]][_0xcbc6[124]]= (this[_0xcbc6[14]][_0xcbc6[91]]())?_0xcbc6[122]+ this[_0xcbc6[43]]+ _0xcbc6[123]:_0xcbc6[97]}}};Editor[_0xcbc6[44]][_0xcbc6[12]]= function(){if(mxClient[_0xcbc6[126]]){mxClient[_0xcbc6[129]](_0xcbc6[127],CSS_PATH+ _0xcbc6[128])};mxResources[_0xcbc6[130]]= false;mxResources[_0xcbc6[131]](RESOURCE_BASE);mxConstants[_0xcbc6[132]]= 0.3;var _0xd34dx11=mxConnectionHandler[_0xcbc6[44]][_0xcbc6[133]];mxConnectionHandler[_0xcbc6[44]][_0xcbc6[133]]= function(){var _0xd34dx12=_0xd34dx11[_0xcbc6[33]](this,arguments);_0xd34dx12[_0xcbc6[134]]= mxUtils[_0xcbc6[34]](this,function(_0xd34dx13,_0xd34dx14){if(this[_0xcbc6[135]]()){return true};return mxCellMarker[_0xcbc6[44]][_0xcbc6[134]][_0xcbc6[33]](_0xd34dx12,arguments)});return _0xd34dx12};mxConstants[_0xcbc6[136]]= _0xcbc6[137];mxConstants[_0xcbc6[138]]= _0xcbc6[139];mxConstants[_0xcbc6[140]]= _0xcbc6[141];mxConstants[_0xcbc6[142]]= _0xcbc6[143];mxConstants[_0xcbc6[144]]= _0xcbc6[143];mxConstants[_0xcbc6[145]]= _0xcbc6[139];mxConstants[_0xcbc6[146]]= _0xcbc6[143];mxConstants[_0xcbc6[147]]= _0xcbc6[148];mxConstants[_0xcbc6[149]]= _0xcbc6[143];mxConstants[_0xcbc6[150]]= _0xcbc6[143];mxConstants[_0xcbc6[151]]= _0xcbc6[148];mxConstants[_0xcbc6[152]]= _0xcbc6[141];mxGraph[_0xcbc6[44]][_0xcbc6[153]]= _0xcbc6[154];mxGraph[_0xcbc6[44]][_0xcbc6[79]]= 1;mxRubberband[_0xcbc6[44]][_0xcbc6[155]]= 30;mxGraphView[_0xcbc6[44]][_0xcbc6[156]]= function(_0xd34dx15){return new mxRectangleShape(_0xd34dx15,this[_0xcbc6[14]][_0xcbc6[41]]|| _0xcbc6[157],_0xcbc6[158])};mxGraphView[_0xcbc6[44]][_0xcbc6[159]]= function(){var _0xd34dx16=this[_0xcbc6[160]]();var _0xd34dx17=(_0xd34dx16[_0xcbc6[95]]> 0)?_0xd34dx16[_0xcbc6[70]]/ this[_0xcbc6[52]]- this[_0xcbc6[71]][_0xcbc6[70]]:0;var _0xd34dx18=(_0xd34dx16[_0xcbc6[96]]> 0)?_0xd34dx16[_0xcbc6[73]]/ this[_0xcbc6[52]]- this[_0xcbc6[71]][_0xcbc6[73]]:0;var _0xd34dx19=_0xd34dx16[_0xcbc6[95]]/ this[_0xcbc6[52]];var _0xd34dx1a=_0xd34dx16[_0xcbc6[96]]/ this[_0xcbc6[52]];var _0xd34dx1b=this[_0xcbc6[14]][_0xcbc6[82]];var _0xd34dx9=this[_0xcbc6[14]][_0xcbc6[79]];var _0xd34dxa=_0xd34dx1b[_0xcbc6[95]]* _0xd34dx9;var _0xd34dxb=_0xd34dx1b[_0xcbc6[96]]* _0xd34dx9;var _0xd34dx1c=Math[_0xcbc6[162]](Math[_0xcbc6[161]](0,_0xd34dx17)/ _0xd34dxa);var _0xd34dx1d=Math[_0xcbc6[162]](Math[_0xcbc6[161]](0,_0xd34dx18)/ _0xd34dxb);var _0xd34dx1e=Math[_0xcbc6[164]](Math[_0xcbc6[163]](1,_0xd34dx17+ _0xd34dx19)/ _0xd34dxa);var _0xd34dx1f=Math[_0xcbc6[164]](Math[_0xcbc6[163]](1,_0xd34dx18+ _0xd34dx1a)/ _0xd34dxb);var _0xd34dx20=_0xd34dx1e- _0xd34dx1c;var _0xd34dx21=_0xd34dx1f- _0xd34dx1d;var _0xd34dx15= new mxRectangle(this[_0xcbc6[52]]* (this[_0xcbc6[71]][_0xcbc6[70]]+ _0xd34dx1c* _0xd34dxa),this[_0xcbc6[52]]* (this[_0xcbc6[71]][_0xcbc6[73]]+ _0xd34dx1d* _0xd34dxb),this[_0xcbc6[52]]* _0xd34dx20* _0xd34dxa,this[_0xcbc6[52]]* _0xd34dx21* _0xd34dxb);return _0xd34dx15};var _0xd34dx22=mxGraph[_0xcbc6[44]][_0xcbc6[165]];mxGraph[_0xcbc6[44]][_0xcbc6[165]]= function(_0xd34dx23,_0xd34dx24){_0xd34dx22[_0xcbc6[33]](this,arguments);if((this[_0xcbc6[166]]!= mxConstants[_0xcbc6[167]]&& this[_0xcbc6[53]][_0xcbc6[101]]!= null)&& (!this[_0xcbc6[168]]|| !mxUtils[_0xcbc6[169]](this[_0xcbc6[68]]))){this[_0xcbc6[53]][_0xcbc6[101]][_0xcbc6[125]][_0xcbc6[99]][_0xcbc6[170]]= _0xd34dx23+ _0xcbc6[171];this[_0xcbc6[53]][_0xcbc6[101]][_0xcbc6[125]][_0xcbc6[99]][_0xcbc6[172]]= _0xd34dx24+ _0xcbc6[171]}};var _0xd34dx25=this;mxGraphView[_0xcbc6[44]][_0xcbc6[173]]= function(){var _0xd34dxc=this[_0xcbc6[14]][_0xcbc6[174]]();if(_0xd34dxc!= null){if(this[_0xcbc6[124]]== null|| this[_0xcbc6[124]][_0xcbc6[175]]!= _0xd34dxc[_0xcbc6[176]]){if(this[_0xcbc6[124]]!= null){this[_0xcbc6[124]][_0xcbc6[177]]()};var _0xd34dx15= new mxRectangle(0,0,1,1);this[_0xcbc6[124]]= new mxImageShape(_0xd34dx15,_0xd34dxc[_0xcbc6[176]]);this[_0xcbc6[124]][_0xcbc6[166]]= this[_0xcbc6[14]][_0xcbc6[166]];this[_0xcbc6[124]][_0xcbc6[12]](this[_0xcbc6[178]]);this[_0xcbc6[124]][_0xcbc6[179]]()};this[_0xcbc6[180]](this[_0xcbc6[124]],_0xd34dxc)}else {if(this[_0xcbc6[124]]!= null){this[_0xcbc6[124]][_0xcbc6[177]]();this[_0xcbc6[124]]= null}};if(this[_0xcbc6[14]][_0xcbc6[75]]){var _0xd34dx15=this[_0xcbc6[159]]();if(this[_0xcbc6[101]]== null){this[_0xcbc6[101]]= this[_0xcbc6[156]](_0xd34dx15);this[_0xcbc6[101]][_0xcbc6[52]]= 1;this[_0xcbc6[101]][_0xcbc6[181]]= true;this[_0xcbc6[101]][_0xcbc6[166]]= mxConstants[_0xcbc6[182]];this[_0xcbc6[101]][_0xcbc6[12]](this[_0xcbc6[14]][_0xcbc6[68]]);this[_0xcbc6[14]][_0xcbc6[68]][_0xcbc6[184]][_0xcbc6[99]][_0xcbc6[183]]= _0xcbc6[185];this[_0xcbc6[14]][_0xcbc6[68]][_0xcbc6[186]](this[_0xcbc6[101]][_0xcbc6[125]],this[_0xcbc6[14]][_0xcbc6[68]][_0xcbc6[184]]);this[_0xcbc6[101]][_0xcbc6[179]]();this[_0xcbc6[101]][_0xcbc6[125]][_0xcbc6[187]]= _0xcbc6[188];this[_0xcbc6[101]][_0xcbc6[125]][_0xcbc6[99]][_0xcbc6[189]]= _0xcbc6[190];mxEvent[_0xcbc6[35]](this[_0xcbc6[101]][_0xcbc6[125]],_0xcbc6[191],mxUtils[_0xcbc6[34]](this,function(_0xd34dx14){this[_0xcbc6[14]][_0xcbc6[192]](_0xd34dx14)}));mxEvent[_0xcbc6[198]](this[_0xcbc6[101]][_0xcbc6[125]],mxUtils[_0xcbc6[34]](this,function(_0xd34dx14){this[_0xcbc6[14]][_0xcbc6[193]](mxEvent.MOUSE_DOWN, new mxMouseEvent(_0xd34dx14))}),mxUtils[_0xcbc6[34]](this,function(_0xd34dx14){if(this[_0xcbc6[14]][_0xcbc6[93]]!= null&& this[_0xcbc6[14]][_0xcbc6[93]][_0xcbc6[194]]()){this[_0xcbc6[14]][_0xcbc6[93]][_0xcbc6[195]]()};if(this[_0xcbc6[14]][_0xcbc6[196]]&& !mxEvent[_0xcbc6[197]](_0xd34dx14)){this[_0xcbc6[14]][_0xcbc6[193]](mxEvent.MOUSE_MOVE, new mxMouseEvent(_0xd34dx14))}}),mxUtils[_0xcbc6[34]](this,function(_0xd34dx14){this[_0xcbc6[14]][_0xcbc6[193]](mxEvent.MOUSE_UP, new mxMouseEvent(_0xd34dx14))}))}else {this[_0xcbc6[101]][_0xcbc6[52]]= 1;this[_0xcbc6[101]][_0xcbc6[199]]= _0xd34dx15;this[_0xcbc6[101]][_0xcbc6[179]]()};this[_0xcbc6[101]][_0xcbc6[125]][_0xcbc6[99]][_0xcbc6[124]]= (this[_0xcbc6[14]][_0xcbc6[91]]())?_0xcbc6[122]+ _0xd34dx25[_0xcbc6[43]]+ _0xcbc6[123]:_0xcbc6[97]}else {if(this[_0xcbc6[101]]!= null){this[_0xcbc6[101]][_0xcbc6[177]]();this[_0xcbc6[101]]= null}}};mxGraph[_0xcbc6[44]][_0xcbc6[200]]= function(_0xd34dx26,_0xd34dx27,_0xd34dx28){var _0xd34dx29=this[_0xcbc6[53]][_0xcbc6[52]];var _0xd34dx2a=this[_0xcbc6[53]][_0xcbc6[71]];var _0xd34dx1b=this[_0xcbc6[82]];var _0xd34dx9=_0xd34dx29* this[_0xcbc6[79]];var _0xd34dx2b=this[_0xcbc6[53]][_0xcbc6[159]]();_0xd34dx27= _0xd34dx2b[_0xcbc6[95]];_0xd34dx28= _0xd34dx2b[_0xcbc6[96]];var _0xd34dx15= new mxRectangle(_0xd34dx29* _0xd34dx2a[_0xcbc6[70]],_0xd34dx29* _0xd34dx2a[_0xcbc6[73]],_0xd34dx1b[_0xcbc6[95]]* _0xd34dx9,_0xd34dx1b[_0xcbc6[96]]* _0xd34dx9);_0xd34dx26= _0xd34dx26&& Math[_0xcbc6[161]](_0xd34dx15[_0xcbc6[95]],_0xd34dx15[_0xcbc6[96]])> this[_0xcbc6[201]];var _0xd34dx2c=(_0xd34dx26)?Math[_0xcbc6[164]](_0xd34dx27/ _0xd34dx15[_0xcbc6[95]])- 1:0;var _0xd34dx2d=(_0xd34dx26)?Math[_0xcbc6[164]](_0xd34dx28/ _0xd34dx15[_0xcbc6[96]])- 1:0;var _0xd34dx2e=_0xd34dx2b[_0xcbc6[70]]+ _0xd34dx27;var _0xd34dx2f=_0xd34dx2b[_0xcbc6[73]]+ _0xd34dx28;if(this[_0xcbc6[202]]== null&& _0xd34dx2c> 0){this[_0xcbc6[202]]= []};if(this[_0xcbc6[202]]!= null){for(var _0xd34dx30=0;_0xd34dx30<= _0xd34dx2c;_0xd34dx30++){var _0xd34dx31=[ new mxPoint(_0xd34dx2b[_0xcbc6[70]]+ (_0xd34dx30+ 1)* _0xd34dx15[_0xcbc6[95]],_0xd34dx2b[_0xcbc6[73]]), new mxPoint(_0xd34dx2b[_0xcbc6[70]]+ (_0xd34dx30+ 1)* _0xd34dx15[_0xcbc6[95]],_0xd34dx2f)];if(this[_0xcbc6[202]][_0xd34dx30]!= null){this[_0xcbc6[202]][_0xd34dx30][_0xcbc6[52]]= 1;this[_0xcbc6[202]][_0xd34dx30][_0xcbc6[203]]= _0xd34dx31;this[_0xcbc6[202]][_0xd34dx30][_0xcbc6[179]]()}else {var _0xd34dx32= new mxPolyline(_0xd34dx31,this[_0xcbc6[153]],this[_0xcbc6[52]]);_0xd34dx32[_0xcbc6[166]]= this[_0xcbc6[166]];_0xd34dx32[_0xcbc6[204]]= this[_0xcbc6[205]];_0xd34dx32[_0xcbc6[206]]= false;_0xd34dx32[_0xcbc6[52]]= _0xd34dx29;_0xd34dx32[_0xcbc6[12]](this[_0xcbc6[53]][_0xcbc6[178]]);_0xd34dx32[_0xcbc6[179]]();this[_0xcbc6[202]][_0xd34dx30]= _0xd34dx32}};for(var _0xd34dx30=_0xd34dx2c;_0xd34dx30< this[_0xcbc6[202]][_0xcbc6[83]];_0xd34dx30++){this[_0xcbc6[202]][_0xd34dx30][_0xcbc6[177]]()};this[_0xcbc6[202]][_0xcbc6[207]](_0xd34dx2c,this[_0xcbc6[202]][_0xcbc6[83]]- _0xd34dx2c)};if(this[_0xcbc6[208]]== null&& _0xd34dx2d> 0){this[_0xcbc6[208]]= []};if(this[_0xcbc6[208]]!= null){for(var _0xd34dx30=0;_0xd34dx30<= _0xd34dx2d;_0xd34dx30++){var _0xd34dx31=[ new mxPoint(_0xd34dx2b[_0xcbc6[70]],_0xd34dx2b[_0xcbc6[73]]+ (_0xd34dx30+ 1)* _0xd34dx15[_0xcbc6[96]]), new mxPoint(_0xd34dx2e,_0xd34dx2b[_0xcbc6[73]]+ (_0xd34dx30+ 1)* _0xd34dx15[_0xcbc6[96]])];if(this[_0xcbc6[208]][_0xd34dx30]!= null){this[_0xcbc6[208]][_0xd34dx30][_0xcbc6[52]]= 1;this[_0xcbc6[208]][_0xd34dx30][_0xcbc6[203]]= _0xd34dx31;this[_0xcbc6[208]][_0xd34dx30][_0xcbc6[179]]()}else {var _0xd34dx32= new mxPolyline(_0xd34dx31,this[_0xcbc6[153]],_0xd34dx29);_0xd34dx32[_0xcbc6[166]]= this[_0xcbc6[166]];_0xd34dx32[_0xcbc6[204]]= this[_0xcbc6[205]];_0xd34dx32[_0xcbc6[206]]= false;_0xd34dx32[_0xcbc6[52]]= _0xd34dx29;_0xd34dx32[_0xcbc6[12]](this[_0xcbc6[53]][_0xcbc6[178]]);_0xd34dx32[_0xcbc6[179]]();this[_0xcbc6[208]][_0xd34dx30]= _0xd34dx32}};for(var _0xd34dx30=_0xd34dx2d;_0xd34dx30< this[_0xcbc6[208]][_0xcbc6[83]];_0xd34dx30++){this[_0xcbc6[208]][_0xd34dx30][_0xcbc6[177]]()};this[_0xcbc6[208]][_0xcbc6[207]](_0xd34dx2d,this[_0xcbc6[208]][_0xcbc6[83]]- _0xd34dx2d)}};mxEdgeHandler[_0xcbc6[44]][_0xcbc6[209]]= true;mxGraphHandler[_0xcbc6[44]][_0xcbc6[58]]= true;var _0xd34dx33=mxGraphHandler[_0xcbc6[44]][_0xcbc6[210]];mxGraphHandler[_0xcbc6[44]][_0xcbc6[210]]= function(_0xd34dx34,_0xd34dx35,_0xd34dx14){for(var _0xd34dx30=0;_0xd34dx30< _0xd34dx35[_0xcbc6[83]];_0xd34dx30++){if(this[_0xcbc6[14]][_0xcbc6[36]]()[_0xcbc6[211]](_0xd34dx35[_0xd34dx30])){var _0xd34dx36=this[_0xcbc6[14]][_0xcbc6[212]](_0xd34dx35[_0xd34dx30]);if(_0xd34dx36!= null&& _0xd34dx36[_0xcbc6[213]]){return false}}};return _0xd34dx33[_0xcbc6[33]](this,arguments)};mxGuide[_0xcbc6[44]][_0xcbc6[214]]= function(_0xd34dx14){return !mxEvent[_0xcbc6[215]](_0xd34dx14)};mxPopupMenuAddItem= mxPopupMenu[_0xcbc6[44]][_0xcbc6[216]];mxPopupMenu[_0xcbc6[44]][_0xcbc6[216]]= function(_0xd34dx37,_0xd34dx38,_0xd34dx39,_0xd34dx34,_0xd34dx3a,_0xd34dx3b){var _0xd34dx3c=mxPopupMenuAddItem[_0xcbc6[33]](this,arguments);if(_0xd34dx3b!= null&& !_0xd34dx3b){mxEvent[_0xcbc6[35]](_0xd34dx3c,_0xcbc6[217],function(_0xd34dx14){mxEvent[_0xcbc6[218]](_0xd34dx14)})};return _0xd34dx3c};var _0xd34dx3d=mxGraphHandler[_0xcbc6[44]][_0xcbc6[219]];mxGraphHandler[_0xcbc6[44]][_0xcbc6[219]]= function(_0xd34dx3e){var _0xd34dx3f=this[_0xcbc6[14]][_0xcbc6[36]]();var _0xd34dx40=_0xd34dx3f[_0xcbc6[221]](this[_0xcbc6[14]][_0xcbc6[220]]());var _0xd34dx41=_0xd34dx3d[_0xcbc6[33]](this,arguments);var _0xd34dx34=_0xd34dx3f[_0xcbc6[221]](_0xd34dx41);if(_0xd34dx40== null|| (_0xd34dx40!= _0xd34dx41&& _0xd34dx40!= _0xd34dx34)){while(!this[_0xcbc6[14]][_0xcbc6[222]](_0xd34dx41)&& !this[_0xcbc6[14]][_0xcbc6[222]](_0xd34dx34) && _0xd34dx3f[_0xcbc6[211]](_0xd34dx34) && !this[_0xcbc6[14]][_0xcbc6[223]](_0xd34dx34)){_0xd34dx41= _0xd34dx34;_0xd34dx34= this[_0xcbc6[14]][_0xcbc6[36]]()[_0xcbc6[221]](_0xd34dx41)}};return _0xd34dx41};var _0xd34dx42=mxGraphHandler[_0xcbc6[44]][_0xcbc6[224]];mxGraphHandler[_0xcbc6[44]][_0xcbc6[224]]= function(_0xd34dx41){var _0xd34dx3c=_0xd34dx42[_0xcbc6[33]](this,arguments);var _0xd34dx3f=this[_0xcbc6[14]][_0xcbc6[36]]();var _0xd34dx40=_0xd34dx3f[_0xcbc6[221]](this[_0xcbc6[14]][_0xcbc6[220]]());var _0xd34dx34=_0xd34dx3f[_0xcbc6[221]](_0xd34dx41);if(_0xd34dx40== null|| (_0xd34dx40!= _0xd34dx41&& _0xd34dx40!= _0xd34dx34)){if(!this[_0xcbc6[14]][_0xcbc6[222]](_0xd34dx41)&& _0xd34dx3f[_0xcbc6[211]](_0xd34dx34) && !this[_0xcbc6[14]][_0xcbc6[223]](_0xd34dx34)){_0xd34dx3c= true}};return _0xd34dx3c};mxGraphHandler[_0xcbc6[44]][_0xcbc6[225]]= function(_0xd34dx3e){var _0xd34dx41=_0xd34dx3e[_0xcbc6[226]]();if(_0xd34dx41== null){_0xd34dx41= this[_0xcbc6[227]]};var _0xd34dx3f=this[_0xcbc6[14]][_0xcbc6[36]]();var _0xd34dx34=_0xd34dx3f[_0xcbc6[221]](_0xd34dx41);while(this[_0xcbc6[14]][_0xcbc6[222]](_0xd34dx41)&& _0xd34dx3f[_0xcbc6[211]](_0xd34dx34)&& !this[_0xcbc6[14]][_0xcbc6[223]](_0xd34dx34)){_0xd34dx41= _0xd34dx34;_0xd34dx34= _0xd34dx3f[_0xcbc6[221]](_0xd34dx41)};this[_0xcbc6[14]][_0xcbc6[229]](_0xd34dx41,_0xd34dx3e[_0xcbc6[228]]())};mxPanningHandler[_0xcbc6[44]][_0xcbc6[230]]= function(_0xd34dx3e){var _0xd34dx41=_0xd34dx3e[_0xcbc6[226]]();var _0xd34dx3f=this[_0xcbc6[14]][_0xcbc6[36]]();var _0xd34dx34=_0xd34dx3f[_0xcbc6[221]](_0xd34dx41);while(_0xd34dx3f[_0xcbc6[211]](_0xd34dx34)&& !this[_0xcbc6[14]][_0xcbc6[223]](_0xd34dx34)){if(this[_0xcbc6[14]][_0xcbc6[222]](_0xd34dx34)){_0xd34dx41= _0xd34dx34};_0xd34dx34= _0xd34dx3f[_0xcbc6[221]](_0xd34dx34)};return _0xd34dx41}};Editor[_0xcbc6[44]][_0xcbc6[18]]= function(){var _0xd34dxe=this[_0xcbc6[14]];var _0xd34dx43= new mxUndoManager();var _0xd34dx44=function(_0xd34dx45,_0xd34dx14){_0xd34dx43[_0xcbc6[233]](_0xd34dx14[_0xcbc6[232]](_0xcbc6[231]))};_0xd34dxe[_0xcbc6[36]]()[_0xcbc6[35]](mxEvent.UNDO,_0xd34dx44);_0xd34dxe[_0xcbc6[234]]()[_0xcbc6[35]](mxEvent.UNDO,_0xd34dx44);var _0xd34dx46=function(_0xd34dx45,_0xd34dx14){var _0xd34dx47=_0xd34dxe[_0xcbc6[236]](_0xd34dx14[_0xcbc6[232]](_0xcbc6[231])[_0xcbc6[235]]);var _0xd34dx35=[];for(var _0xd34dx30=1;_0xd34dx30< _0xd34dx47[_0xcbc6[83]];_0xd34dx30++){if(_0xd34dxe[_0xcbc6[53]][_0xcbc6[237]](_0xd34dx47[_0xd34dx30])!= null){_0xd34dx35[_0xcbc6[238]](_0xd34dx47[_0xd34dx30])}};_0xd34dxe[_0xcbc6[239]](_0xd34dx35)};_0xd34dx43[_0xcbc6[35]](mxEvent.UNDO,_0xd34dx46);_0xd34dx43[_0xcbc6[35]](mxEvent.REDO,_0xd34dx46);return _0xd34dx43};Editor[_0xcbc6[44]][_0xcbc6[13]]= function(){mxStencilRegistry[_0xcbc6[241]](STENCIL_PATH+ _0xcbc6[240])};(function(){mxStencilRegistry[_0xcbc6[242]]= {};mxStencilRegistry[_0xcbc6[243]]= [];mxStencilRegistry[_0xcbc6[244]]= function(_0xd34dx48){var _0xd34dx3c=mxStencilRegistry[_0xcbc6[245]][_0xd34dx48];if(_0xd34dx3c== null){var _0xd34dx49=mxStencilRegistry[_0xcbc6[246]](_0xd34dx48);if(_0xd34dx49!= null){var _0xd34dx4a=mxStencilRegistry[_0xcbc6[242]][_0xd34dx49];if(_0xd34dx4a!= null){if(mxStencilRegistry[_0xcbc6[243]][_0xd34dx49]== null){mxStencilRegistry[_0xcbc6[243]][_0xd34dx49]= 1;for(var _0xd34dx30=0;_0xd34dx30< _0xd34dx4a[_0xcbc6[83]];_0xd34dx30++){var _0xd34dx4b=_0xd34dx4a[_0xd34dx30];if(_0xd34dx4b[_0xcbc6[248]]()[_0xcbc6[247]](_0xd34dx4b[_0xcbc6[83]]- 4,_0xd34dx4b[_0xcbc6[83]])== _0xcbc6[25]){mxStencilRegistry[_0xcbc6[241]](_0xd34dx4b,null)}else {if(_0xd34dx4b[_0xcbc6[248]]()[_0xcbc6[247]](_0xd34dx4b[_0xcbc6[83]]- 3,_0xd34dx4b[_0xcbc6[83]])== _0xcbc6[249]){var _0xd34dx4c=mxUtils[_0xcbc6[250]](_0xd34dx4b);if(_0xd34dx4c!= null){eval[_0xcbc6[11]](window,_0xd34dx4c[_0xcbc6[251]]())}}else {}}}}}else {mxStencilRegistry[_0xcbc6[241]](STENCIL_PATH+ _0xcbc6[252]+ _0xd34dx49+ _0xcbc6[25],null)};_0xd34dx3c= mxStencilRegistry[_0xcbc6[245]][_0xd34dx48]}};return _0xd34dx3c};mxStencilRegistry[_0xcbc6[246]]= function(_0xd34dx48){var _0xd34dx4d=_0xd34dx48[_0xcbc6[254]](_0xcbc6[253]);var _0xd34dx4e=null;if(_0xd34dx4d[_0xcbc6[83]]> 0&& _0xd34dx4d[0]== _0xcbc6[255]){_0xd34dx4e= _0xd34dx4d[1];for(var _0xd34dx30=2;_0xd34dx30< _0xd34dx4d[_0xcbc6[83]]- 1;_0xd34dx30++){_0xd34dx4e+= _0xcbc6[252]+ _0xd34dx4d[_0xd34dx30]}};return _0xd34dx4e};mxStencilRegistry[_0xcbc6[241]]= function(_0xd34dx4f,_0xd34dx50,_0xd34dx51){_0xd34dx51= (_0xd34dx51!= null)?_0xd34dx51:false;var _0xd34dx52=mxStencilRegistry[_0xcbc6[243]][_0xd34dx4f];if(_0xd34dx51|| _0xd34dx52== null){var _0xd34dx53=false;if(_0xd34dx52== null){var _0xd34dx4c=mxUtils[_0xcbc6[250]](_0xd34dx4f);_0xd34dx52= _0xd34dx4c[_0xcbc6[256]]();mxStencilRegistry[_0xcbc6[243]][_0xd34dx4f]= _0xd34dx52;_0xd34dx53= true};mxStencilRegistry[_0xcbc6[257]](_0xd34dx52,_0xd34dx50,_0xd34dx53)}};mxStencilRegistry[_0xcbc6[257]]= function(_0xd34dx54,_0xd34dx50,_0xd34dx53){_0xd34dx53= (_0xd34dx53!= null)?_0xd34dx53:true;var _0xd34dx55=_0xd34dx54[_0xcbc6[258]];var _0xd34dx56=_0xd34dx55[_0xcbc6[184]];var _0xd34dx57=_0xcbc6[20];var _0xd34dx48=_0xd34dx55[_0xcbc6[56]](_0xcbc6[259]);if(_0xd34dx48!= null){_0xd34dx57= _0xd34dx48+ _0xcbc6[253]};while(_0xd34dx56!= null){if(_0xd34dx56[_0xcbc6[260]]== mxConstants[_0xcbc6[261]]){_0xd34dx48= _0xd34dx56[_0xcbc6[56]](_0xcbc6[259]);if(_0xd34dx48!= null){_0xd34dx57= _0xd34dx57[_0xcbc6[248]]();var _0xd34dx58=_0xd34dx48[_0xcbc6[263]](/ /g,_0xcbc6[262]);if(_0xd34dx53){mxStencilRegistry[_0xcbc6[264]](_0xd34dx57+ _0xd34dx58[_0xcbc6[248]](), new mxStencil(_0xd34dx56))};if(_0xd34dx50!= null){var _0xd34dx19=_0xd34dx56[_0xcbc6[56]](_0xcbc6[265]);var _0xd34dx1a=_0xd34dx56[_0xcbc6[56]](_0xcbc6[266]);_0xd34dx19= (_0xd34dx19== null)?80:parseInt(_0xd34dx19,10);_0xd34dx1a= (_0xd34dx1a== null)?80:parseInt(_0xd34dx1a,10);_0xd34dx50(_0xd34dx57,_0xd34dx58,_0xd34dx48,_0xd34dx19,_0xd34dx1a)}}};_0xd34dx56= _0xd34dx56[_0xcbc6[267]]}}})();OpenFile= function(_0xd34dx59){this[_0xcbc6[268]]= null;this[_0xcbc6[269]]= null;this[_0xcbc6[270]]= _0xd34dx59};OpenFile[_0xcbc6[44]][_0xcbc6[271]]= function(_0xd34dx6){this[_0xcbc6[269]]= _0xd34dx6;this[_0xcbc6[272]]()};OpenFile[_0xcbc6[44]][_0xcbc6[273]]= function(_0xd34dx6,_0xd34dx5a){this[_0xcbc6[274]]= _0xd34dx6;this[_0xcbc6[21]]= _0xd34dx5a;this[_0xcbc6[272]]()};OpenFile[_0xcbc6[44]][_0xcbc6[275]]= function(_0xd34dx5b){this[_0xcbc6[276]]();mxUtils[_0xcbc6[277]](_0xd34dx5b)};OpenFile[_0xcbc6[44]][_0xcbc6[272]]= function(){if(this[_0xcbc6[269]]!= null&& this[_0xcbc6[274]]!= null){this[_0xcbc6[269]](this[_0xcbc6[274]],this[_0xcbc6[21]]);this[_0xcbc6[276]]()}};OpenFile[_0xcbc6[44]][_0xcbc6[276]]= function(){if(this[_0xcbc6[270]]!= null){this[_0xcbc6[270]]()}} \ No newline at end of file +var _0x6e77=["\x49\x53\x5F\x54\x4F\x55\x43\x48","\x73\x74\x6F\x72\x61\x67\x65","\x6C\x6F\x63\x61\x6C","\x75\x6E\x64\x65\x66\x69\x6E\x65\x64","\x46\x69\x6C\x65","\x46\x69\x6C\x65\x52\x65\x61\x64\x65\x72","\x46\x69\x6C\x65\x4C\x69\x73\x74","\x74\x6F\x75\x63\x68","\x31","\x6F\x70\x65\x6E\x65\x72","\x63\x6F\x75\x6E\x74\x65\x72","\x63\x61\x6C\x6C","\x69\x6E\x69\x74","\x69\x6E\x69\x74\x53\x74\x65\x6E\x63\x69\x6C\x52\x65\x67\x69\x73\x74\x72\x79","\x67\x72\x61\x70\x68","\x6F\x75\x74\x6C\x69\x6E\x65","\x75\x70\x64\x61\x74\x65\x4F\x6E\x50\x61\x6E","\x75\x6E\x64\x6F\x4D\x61\x6E\x61\x67\x65\x72","\x63\x72\x65\x61\x74\x65\x55\x6E\x64\x6F\x4D\x61\x6E\x61\x67\x65\x72","\x73\x74\x61\x74\x75\x73","","\x66\x69\x6C\x65\x6E\x61\x6D\x65","\x67\x65\x74\x4F\x72\x43\x72\x65\x61\x74\x65\x46\x69\x6C\x65\x6E\x61\x6D\x65","\x64\x72\x61\x77\x69\x6E\x67","\x67\x65\x74","\x2E\x78\x6D\x6C","\x67\x65\x74\x46\x69\x6C\x65\x6E\x61\x6D\x65","\x73\x65\x74\x53\x74\x61\x74\x75\x73","\x73\x74\x61\x74\x75\x73\x43\x68\x61\x6E\x67\x65\x64","\x66\x69\x72\x65\x45\x76\x65\x6E\x74","\x67\x65\x74\x53\x74\x61\x74\x75\x73","\x6D\x6F\x64\x69\x66\x69\x65\x64","\x67\x72\x61\x70\x68\x43\x68\x61\x6E\x67\x65\x4C\x69\x73\x74\x65\x6E\x65\x72","\x61\x70\x70\x6C\x79","\x62\x69\x6E\x64","\x61\x64\x64\x4C\x69\x73\x74\x65\x6E\x65\x72","\x67\x65\x74\x4D\x6F\x64\x65\x6C","\x6F\x6E\x62\x65\x66\x6F\x72\x65\x75\x6E\x6C\x6F\x61\x64","\x61\x6C\x6C\x43\x68\x61\x6E\x67\x65\x73\x4C\x6F\x73\x74","\x72\x65\x73\x65\x74\x56\x69\x65\x77\x4F\x6E\x52\x6F\x6F\x74\x43\x68\x61\x6E\x67\x65","\x73\x63\x72\x6F\x6C\x6C\x62\x61\x72\x73","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64","\x65\x78\x74\x65\x6E\x64","\x67\x72\x69\x64\x49\x6D\x61\x67\x65","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x2F\x67\x72\x69\x64\x2E\x67\x69\x66","\x74\x72\x61\x6E\x73\x70\x61\x72\x65\x6E\x74\x49\x6D\x61\x67\x65","\x2F\x74\x72\x61\x6E\x73\x70\x61\x72\x65\x6E\x74\x2E\x67\x69\x66","\x73\x65\x74\x47\x72\x61\x70\x68\x58\x6D\x6C","\x6F\x77\x6E\x65\x72\x44\x6F\x63\x75\x6D\x65\x6E\x74","\x6E\x6F\x64\x65\x4E\x61\x6D\x65","\x6D\x78\x47\x72\x61\x70\x68\x4D\x6F\x64\x65\x6C","\x73\x63\x61\x6C\x65","\x76\x69\x65\x77","\x67\x72\x69\x64\x45\x6E\x61\x62\x6C\x65\x64","\x67\x72\x69\x64","\x67\x65\x74\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x30","\x67\x75\x69\x64\x65\x73\x45\x6E\x61\x62\x6C\x65\x64","\x67\x72\x61\x70\x68\x48\x61\x6E\x64\x6C\x65\x72","\x67\x75\x69\x64\x65\x73","\x74\x6F\x6F\x6C\x74\x69\x70\x73","\x73\x65\x74\x54\x6F\x6F\x6C\x74\x69\x70\x73","\x63\x6F\x6E\x6E\x65\x63\x74","\x73\x65\x74\x43\x6F\x6E\x6E\x65\x63\x74\x61\x62\x6C\x65","\x66\x6F\x6C\x64\x69\x6E\x67\x45\x6E\x61\x62\x6C\x65\x64","\x66\x6F\x6C\x64","\x73\x63\x72\x6F\x6C\x6C\x4C\x65\x66\x74","\x63\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x73\x63\x72\x6F\x6C\x6C\x54\x6F\x70","\x78","\x74\x72\x61\x6E\x73\x6C\x61\x74\x65","\x64\x78","\x79","\x64\x79","\x70\x61\x67\x65\x56\x69\x73\x69\x62\x6C\x65","\x70\x61\x67\x65","\x70\x61\x67\x65\x42\x72\x65\x61\x6B\x73\x56\x69\x73\x69\x62\x6C\x65","\x70\x72\x65\x66\x65\x72\x50\x61\x67\x65\x53\x69\x7A\x65","\x70\x61\x67\x65\x53\x63\x61\x6C\x65","\x70\x61\x67\x65\x57\x69\x64\x74\x68","\x70\x61\x67\x65\x48\x65\x69\x67\x68\x74","\x70\x61\x67\x65\x46\x6F\x72\x6D\x61\x74","\x6C\x65\x6E\x67\x74\x68","\x64\x65\x63\x6F\x64\x65","\x75\x70\x64\x61\x74\x65\x47\x72\x61\x70\x68\x43\x6F\x6D\x70\x6F\x6E\x65\x6E\x74\x73","\x67\x65\x74\x47\x72\x61\x70\x68\x58\x6D\x6C","\x63\x72\x65\x61\x74\x65\x58\x6D\x6C\x44\x6F\x63\x75\x6D\x65\x6E\x74","\x65\x6E\x63\x6F\x64\x65","\x72\x6F\x75\x6E\x64","\x73\x65\x74\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x69\x73\x47\x72\x69\x64\x45\x6E\x61\x62\x6C\x65\x64","\x69\x73\x45\x6E\x61\x62\x6C\x65\x64","\x74\x6F\x6F\x6C\x74\x69\x70\x48\x61\x6E\x64\x6C\x65\x72","\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x48\x61\x6E\x64\x6C\x65\x72","\x77\x69\x64\x74\x68","\x68\x65\x69\x67\x68\x74","\x6E\x6F\x6E\x65","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x43\x6F\x6C\x6F\x72","\x73\x74\x79\x6C\x65","\x74\x72\x61\x6E\x73\x70\x61\x72\x65\x6E\x74","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x50\x61\x67\x65\x53\x68\x61\x70\x65","\x66\x69\x6C\x6C","\x72\x65\x63\x6F\x6E\x66\x69\x67\x75\x72\x65","\x23\x65\x62\x65\x62\x65\x62","\x62\x6F\x72\x64\x65\x72\x53\x74\x79\x6C\x65","\x73\x6F\x6C\x69\x64","\x62\x6F\x72\x64\x65\x72\x43\x6F\x6C\x6F\x72","\x23\x65\x35\x65\x35\x65\x35","\x62\x6F\x72\x64\x65\x72\x54\x6F\x70\x57\x69\x64\x74\x68","\x31\x70\x78","\x62\x6F\x72\x64\x65\x72\x4C\x65\x66\x74\x57\x69\x64\x74\x68","\x62\x6F\x72\x64\x65\x72\x52\x69\x67\x68\x74\x57\x69\x64\x74\x68","\x30\x70\x78","\x62\x6F\x72\x64\x65\x72\x42\x6F\x74\x74\x6F\x6D\x57\x69\x64\x74\x68","\x62\x6F\x72\x64\x65\x72","\x76\x61\x6C\x69\x64\x61\x74\x65","\x6F\x76\x65\x72\x66\x6C\x6F\x77","\x68\x69\x64\x64\x65\x6E","\x61\x75\x74\x6F","\x49\x53\x5F\x49\x45","\x64\x6F\x63\x75\x6D\x65\x6E\x74\x4D\x6F\x64\x65","\x75\x72\x6C\x28","\x29","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x49\x6D\x61\x67\x65","\x6E\x6F\x64\x65","\x49\x53\x5F\x49\x45\x36","\x73\x74\x79\x6C\x65\x73\x68\x65\x65\x74","\x2F\x67\x72\x61\x70\x68\x65\x64\x69\x74\x6F\x72\x2D\x69\x65\x36\x2E\x63\x73\x73","\x6C\x69\x6E\x6B","\x6C\x6F\x61\x64\x44\x65\x66\x61\x75\x6C\x74\x42\x75\x6E\x64\x6C\x65","\x61\x64\x64","\x44\x45\x46\x41\x55\x4C\x54\x5F\x48\x4F\x54\x53\x50\x4F\x54","\x63\x72\x65\x61\x74\x65\x4D\x61\x72\x6B\x65\x72","\x69\x6E\x74\x65\x72\x73\x65\x63\x74\x73","\x69\x73\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6E\x67","\x53\x48\x41\x44\x4F\x57\x43\x4F\x4C\x4F\x52","\x23\x64\x30\x64\x30\x64\x30","\x48\x41\x4E\x44\x4C\x45\x5F\x46\x49\x4C\x4C\x43\x4F\x4C\x4F\x52","\x23\x39\x39\x63\x63\x66\x66","\x48\x41\x4E\x44\x4C\x45\x5F\x53\x54\x52\x4F\x4B\x45\x43\x4F\x4C\x4F\x52","\x23\x30\x30\x38\x38\x63\x66","\x56\x45\x52\x54\x45\x58\x5F\x53\x45\x4C\x45\x43\x54\x49\x4F\x4E\x5F\x43\x4F\x4C\x4F\x52","\x23\x30\x30\x61\x38\x66\x66","\x4F\x55\x54\x4C\x49\x4E\x45\x5F\x43\x4F\x4C\x4F\x52","\x4F\x55\x54\x4C\x49\x4E\x45\x5F\x48\x41\x4E\x44\x4C\x45\x5F\x46\x49\x4C\x4C\x43\x4F\x4C\x4F\x52","\x4F\x55\x54\x4C\x49\x4E\x45\x5F\x48\x41\x4E\x44\x4C\x45\x5F\x53\x54\x52\x4F\x4B\x45\x43\x4F\x4C\x4F\x52","\x43\x4F\x4E\x4E\x45\x43\x54\x5F\x48\x41\x4E\x44\x4C\x45\x5F\x46\x49\x4C\x4C\x43\x4F\x4C\x4F\x52","\x23\x63\x65\x65\x37\x66\x66","\x45\x44\x47\x45\x5F\x53\x45\x4C\x45\x43\x54\x49\x4F\x4E\x5F\x43\x4F\x4C\x4F\x52","\x44\x45\x46\x41\x55\x4C\x54\x5F\x56\x41\x4C\x49\x44\x5F\x43\x4F\x4C\x4F\x52","\x4C\x41\x42\x45\x4C\x5F\x48\x41\x4E\x44\x4C\x45\x5F\x46\x49\x4C\x4C\x43\x4F\x4C\x4F\x52","\x47\x55\x49\x44\x45\x5F\x43\x4F\x4C\x4F\x52","\x70\x61\x67\x65\x42\x72\x65\x61\x6B\x43\x6F\x6C\x6F\x72","\x23\x63\x30\x63\x30\x63\x30","\x64\x65\x66\x61\x75\x6C\x74\x4F\x70\x61\x63\x69\x74\x79","\x63\x72\x65\x61\x74\x65\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x50\x61\x67\x65\x53\x68\x61\x70\x65","\x77\x68\x69\x74\x65","\x23\x63\x61\x63\x61\x63\x61","\x67\x65\x74\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x50\x61\x67\x65\x42\x6F\x75\x6E\x64\x73","\x67\x65\x74\x47\x72\x61\x70\x68\x42\x6F\x75\x6E\x64\x73","\x6D\x69\x6E","\x66\x6C\x6F\x6F\x72","\x6D\x61\x78","\x63\x65\x69\x6C","\x70\x61\x6E\x47\x72\x61\x70\x68","\x64\x69\x61\x6C\x65\x63\x74","\x44\x49\x41\x4C\x45\x43\x54\x5F\x53\x56\x47","\x75\x73\x65\x53\x63\x72\x6F\x6C\x6C\x62\x61\x72\x73\x46\x6F\x72\x50\x61\x6E\x6E\x69\x6E\x67","\x68\x61\x73\x53\x63\x72\x6F\x6C\x6C\x62\x61\x72\x73","\x6D\x61\x72\x67\x69\x6E\x4C\x65\x66\x74","\x70\x78","\x6D\x61\x72\x67\x69\x6E\x54\x6F\x70","\x76\x61\x6C\x69\x64\x61\x74\x65\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64","\x67\x65\x74\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x49\x6D\x61\x67\x65","\x69\x6D\x61\x67\x65","\x73\x72\x63","\x64\x65\x73\x74\x72\x6F\x79","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x50\x61\x6E\x65","\x72\x65\x64\x72\x61\x77","\x72\x65\x64\x72\x61\x77\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x49\x6D\x61\x67\x65","\x69\x73\x53\x68\x61\x64\x6F\x77","\x44\x49\x41\x4C\x45\x43\x54\x5F\x53\x54\x52\x49\x43\x54\x48\x54\x4D\x4C","\x70\x6F\x73\x69\x74\x69\x6F\x6E","\x66\x69\x72\x73\x74\x43\x68\x69\x6C\x64","\x61\x62\x73\x6F\x6C\x75\x74\x65","\x69\x6E\x73\x65\x72\x74\x42\x65\x66\x6F\x72\x65","\x63\x6C\x61\x73\x73\x4E\x61\x6D\x65","\x67\x65\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x50\x61\x67\x65","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x50\x6F\x73\x69\x74\x69\x6F\x6E","\x2D\x31\x70\x78\x20\x2D\x31\x70\x78","\x64\x62\x6C\x63\x6C\x69\x63\x6B","\x64\x62\x6C\x43\x6C\x69\x63\x6B","\x66\x69\x72\x65\x4D\x6F\x75\x73\x65\x45\x76\x65\x6E\x74","\x69\x73\x48\x69\x64\x65\x4F\x6E\x48\x6F\x76\x65\x72","\x68\x69\x64\x65","\x69\x73\x4D\x6F\x75\x73\x65\x44\x6F\x77\x6E","\x69\x73\x43\x6F\x6E\x73\x75\x6D\x65\x64","\x61\x64\x64\x47\x65\x73\x74\x75\x72\x65\x4C\x69\x73\x74\x65\x6E\x65\x72\x73","\x62\x6F\x75\x6E\x64\x73","\x75\x70\x64\x61\x74\x65\x50\x61\x67\x65\x42\x72\x65\x61\x6B\x73","\x6D\x69\x6E\x50\x61\x67\x65\x42\x72\x65\x61\x6B\x44\x69\x73\x74","\x68\x6F\x72\x69\x7A\x6F\x6E\x74\x61\x6C\x50\x61\x67\x65\x42\x72\x65\x61\x6B\x73","\x70\x6F\x69\x6E\x74\x73","\x69\x73\x44\x61\x73\x68\x65\x64","\x70\x61\x67\x65\x42\x72\x65\x61\x6B\x44\x61\x73\x68\x65\x64","\x61\x64\x64\x50\x69\x70\x65","\x73\x70\x6C\x69\x63\x65","\x76\x65\x72\x74\x69\x63\x61\x6C\x50\x61\x67\x65\x42\x72\x65\x61\x6B\x73","\x73\x6E\x61\x70\x54\x6F\x54\x65\x72\x6D\x69\x6E\x61\x6C\x73","\x73\x68\x6F\x75\x6C\x64\x52\x65\x6D\x6F\x76\x65\x43\x65\x6C\x6C\x73\x46\x72\x6F\x6D\x50\x61\x72\x65\x6E\x74","\x69\x73\x56\x65\x72\x74\x65\x78","\x67\x65\x74\x43\x65\x6C\x6C\x47\x65\x6F\x6D\x65\x74\x72\x79","\x72\x65\x6C\x61\x74\x69\x76\x65","\x69\x73\x45\x6E\x61\x62\x6C\x65\x64\x46\x6F\x72\x45\x76\x65\x6E\x74","\x69\x73\x41\x6C\x74\x44\x6F\x77\x6E","\x61\x64\x64\x49\x74\x65\x6D","\x6D\x6F\x75\x73\x65\x64\x6F\x77\x6E","\x63\x6F\x6E\x73\x75\x6D\x65","\x67\x65\x74\x49\x6E\x69\x74\x69\x61\x6C\x43\x65\x6C\x6C\x46\x6F\x72\x45\x76\x65\x6E\x74","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C","\x67\x65\x74\x50\x61\x72\x65\x6E\x74","\x69\x73\x43\x65\x6C\x6C\x53\x65\x6C\x65\x63\x74\x65\x64","\x69\x73\x56\x61\x6C\x69\x64\x52\x6F\x6F\x74","\x69\x73\x44\x65\x6C\x61\x79\x65\x64\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E","\x73\x65\x6C\x65\x63\x74\x44\x65\x6C\x61\x79\x65\x64","\x67\x65\x74\x43\x65\x6C\x6C","\x63\x65\x6C\x6C","\x67\x65\x74\x45\x76\x65\x6E\x74","\x73\x65\x6C\x65\x63\x74\x43\x65\x6C\x6C\x46\x6F\x72\x45\x76\x65\x6E\x74","\x67\x65\x74\x43\x65\x6C\x6C\x46\x6F\x72\x50\x6F\x70\x75\x70\x45\x76\x65\x6E\x74","\x65\x64\x69\x74","\x67\x65\x74\x50\x72\x6F\x70\x65\x72\x74\x79","\x75\x6E\x64\x6F\x61\x62\x6C\x65\x45\x64\x69\x74\x48\x61\x70\x70\x65\x6E\x65\x64","\x67\x65\x74\x56\x69\x65\x77","\x63\x68\x61\x6E\x67\x65\x73","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C\x73\x46\x6F\x72\x43\x68\x61\x6E\x67\x65\x73","\x67\x65\x74\x53\x74\x61\x74\x65","\x70\x75\x73\x68","\x73\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C\x73","\x2F\x67\x65\x6E\x65\x72\x61\x6C\x2E\x78\x6D\x6C","\x6C\x6F\x61\x64\x53\x74\x65\x6E\x63\x69\x6C\x53\x65\x74","\x6C\x69\x62\x72\x61\x72\x69\x65\x73","\x70\x61\x63\x6B\x61\x67\x65\x73","\x67\x65\x74\x53\x74\x65\x6E\x63\x69\x6C","\x73\x74\x65\x6E\x63\x69\x6C\x73","\x67\x65\x74\x42\x61\x73\x65\x6E\x61\x6D\x65\x46\x6F\x72\x53\x74\x65\x6E\x63\x69\x6C","\x73\x75\x62\x73\x74\x72\x69\x6E\x67","\x74\x6F\x4C\x6F\x77\x65\x72\x43\x61\x73\x65","\x2E\x6A\x73","\x6C\x6F\x61\x64","\x67\x65\x74\x54\x65\x78\x74","\x2F","\x2E","\x73\x70\x6C\x69\x74","\x6D\x78\x67\x72\x61\x70\x68","\x67\x65\x74\x58\x6D\x6C","\x70\x61\x72\x73\x65\x53\x74\x65\x6E\x63\x69\x6C\x53\x65\x74","\x64\x6F\x63\x75\x6D\x65\x6E\x74\x45\x6C\x65\x6D\x65\x6E\x74","\x6E\x61\x6D\x65","\x6E\x6F\x64\x65\x54\x79\x70\x65","\x4E\x4F\x44\x45\x54\x59\x50\x45\x5F\x45\x4C\x45\x4D\x45\x4E\x54","\x5F","\x72\x65\x70\x6C\x61\x63\x65","\x61\x64\x64\x53\x74\x65\x6E\x63\x69\x6C","\x77","\x68","\x6E\x65\x78\x74\x53\x69\x62\x6C\x69\x6E\x67","\x70\x72\x6F\x64\x75\x63\x65\x72","\x63\x6F\x6E\x73\x75\x6D\x65\x72","\x64\x6F\x6E\x65","\x73\x65\x74\x43\x6F\x6E\x73\x75\x6D\x65\x72","\x65\x78\x65\x63\x75\x74\x65","\x73\x65\x74\x44\x61\x74\x61","\x64\x61\x74\x61","\x65\x72\x72\x6F\x72","\x63\x61\x6E\x63\x65\x6C","\x61\x6C\x65\x72\x74"];var useLocalStorage=(mxClient[_0x6e77[0]]|| urlParams[_0x6e77[1]]== _0x6e77[2])&& typeof (localStorage)!= _0x6e77[3];var fileSupport=window[_0x6e77[4]]!= null&& window[_0x6e77[5]]!= null&& window[_0x6e77[6]]!= null;var touchStyle=mxClient[_0x6e77[0]]|| urlParams[_0x6e77[7]]== _0x6e77[8];var counter=0;try{var op=window;while(op[_0x6e77[9]]!= null&& !isNaN(op[_0x6e77[9]][_0x6e77[10]])){op= op[_0x6e77[9]]};if(op!= null){op[_0x6e77[10]]++;counter= op[_0x6e77[10]]}}catch(e){};Editor= function(){mxEventSource[_0x6e77[11]](this);this[_0x6e77[12]]();this[_0x6e77[13]]();this[_0x6e77[14]]= new Graph();this[_0x6e77[15]]= new mxOutline(this[_0x6e77[14]]);this[_0x6e77[15]][_0x6e77[16]]= true;this[_0x6e77[17]]= this[_0x6e77[18]]();this[_0x6e77[19]]= _0x6e77[20];this[_0x6e77[21]]= null;this[_0x6e77[22]]= function(){return this[_0x6e77[21]]|| mxResources[_0x6e77[24]](_0x6e77[23],[counter])+ _0x6e77[25]};this[_0x6e77[26]]= function(){return this[_0x6e77[21]]};this[_0x6e77[27]]= function(_0x822cx6){this[_0x6e77[19]]= _0x822cx6;this[_0x6e77[29]]( new mxEventObject(_0x6e77[28]))};this[_0x6e77[30]]= function(){return this[_0x6e77[19]]};this[_0x6e77[31]]= false;this[_0x6e77[32]]= function(){this[_0x6e77[31]]= true};this[_0x6e77[14]][_0x6e77[36]]()[_0x6e77[35]](mxEvent.CHANGE,mxUtils[_0x6e77[34]](this,function(){this[_0x6e77[32]][_0x6e77[33]](this,arguments)}));window[_0x6e77[37]]= mxUtils[_0x6e77[34]](this,function(){if(this[_0x6e77[31]]){return mxResources[_0x6e77[24]](_0x6e77[38])}});this[_0x6e77[14]][_0x6e77[39]]= false;this[_0x6e77[14]][_0x6e77[40]]= true;this[_0x6e77[14]][_0x6e77[41]]= null};mxUtils[_0x6e77[42]](Editor,mxEventSource);Editor[_0x6e77[44]][_0x6e77[43]]= IMAGE_PATH+ _0x6e77[45];Editor[_0x6e77[44]][_0x6e77[46]]= IMAGE_PATH+ _0x6e77[47];Editor[_0x6e77[44]][_0x6e77[48]]= function(_0x822cx7){var _0x822cx8= new mxCodec(_0x822cx7[_0x6e77[49]]);if(_0x822cx7[_0x6e77[50]]== _0x6e77[51]){this[_0x6e77[14]][_0x6e77[53]][_0x6e77[52]]= 1;this[_0x6e77[14]][_0x6e77[54]]= _0x822cx7[_0x6e77[56]](_0x6e77[55])!= _0x6e77[57];this[_0x6e77[14]][_0x6e77[59]][_0x6e77[58]]= _0x822cx7[_0x6e77[56]](_0x6e77[60])!= _0x6e77[57];this[_0x6e77[14]][_0x6e77[62]](_0x822cx7[_0x6e77[56]](_0x6e77[61])!= _0x6e77[57]);this[_0x6e77[14]][_0x6e77[64]](_0x822cx7[_0x6e77[56]](_0x6e77[63])!= _0x6e77[57]);this[_0x6e77[14]][_0x6e77[65]]= _0x822cx7[_0x6e77[56]](_0x6e77[66])!= _0x6e77[57];this[_0x6e77[14]][_0x6e77[40]]= _0x822cx7[_0x6e77[56]](_0x6e77[40])!= _0x6e77[57];if(!this[_0x6e77[14]][_0x6e77[40]]){this[_0x6e77[14]][_0x6e77[68]][_0x6e77[67]]= 0;this[_0x6e77[14]][_0x6e77[68]][_0x6e77[69]]= 0;this[_0x6e77[14]][_0x6e77[53]][_0x6e77[71]][_0x6e77[70]]= Number(_0x822cx7[_0x6e77[56]](_0x6e77[72])|| 0);this[_0x6e77[14]][_0x6e77[53]][_0x6e77[71]][_0x6e77[73]]= Number(_0x822cx7[_0x6e77[56]](_0x6e77[74])|| 0)};this[_0x6e77[14]][_0x6e77[75]]= _0x822cx7[_0x6e77[56]](_0x6e77[76])== _0x6e77[8];this[_0x6e77[14]][_0x6e77[77]]= this[_0x6e77[14]][_0x6e77[75]];this[_0x6e77[14]][_0x6e77[78]]= this[_0x6e77[14]][_0x6e77[77]];var _0x822cx9=_0x822cx7[_0x6e77[56]](_0x6e77[79]);if(_0x822cx9!= null){this[_0x6e77[14]][_0x6e77[79]]= _0x822cx9}else {this[_0x6e77[14]][_0x6e77[79]]= 1.5};var _0x822cxa=_0x822cx7[_0x6e77[56]](_0x6e77[80]);var _0x822cxb=_0x822cx7[_0x6e77[56]](_0x6e77[81]);if(_0x822cxa!= null&& _0x822cxb!= null){this[_0x6e77[14]][_0x6e77[82]]= new mxRectangle(0,0,parseFloat(_0x822cxa),parseFloat(_0x822cxb));this[_0x6e77[15]][_0x6e77[15]][_0x6e77[82]]= this[_0x6e77[14]][_0x6e77[82]]};var _0x822cxc=_0x822cx7[_0x6e77[56]](_0x6e77[41]);if(_0x822cxc!= null&& _0x822cxc[_0x6e77[83]]> 0){this[_0x6e77[14]][_0x6e77[41]]= _0x822cxc};_0x822cx8[_0x6e77[84]](_0x822cx7,this[_0x6e77[14]][_0x6e77[36]]());this[_0x6e77[85]]()}};Editor[_0x6e77[44]][_0x6e77[86]]= function(){var _0x822cxd= new mxCodec(mxUtils[_0x6e77[87]]());var _0x822cx7=_0x822cxd[_0x6e77[88]](this[_0x6e77[14]][_0x6e77[36]]());if(this[_0x6e77[14]][_0x6e77[53]][_0x6e77[71]][_0x6e77[70]]!= 0|| this[_0x6e77[14]][_0x6e77[53]][_0x6e77[71]][_0x6e77[73]]!= 0){_0x822cx7[_0x6e77[90]](_0x6e77[72],Math[_0x6e77[89]](this[_0x6e77[14]][_0x6e77[53]][_0x6e77[71]][_0x6e77[70]]* 100)/ 100);_0x822cx7[_0x6e77[90]](_0x6e77[74],Math[_0x6e77[89]](this[_0x6e77[14]][_0x6e77[53]][_0x6e77[71]][_0x6e77[73]]* 100)/ 100)};_0x822cx7[_0x6e77[90]](_0x6e77[55],(this[_0x6e77[14]][_0x6e77[91]]())?_0x6e77[8]:_0x6e77[57]);_0x822cx7[_0x6e77[90]](_0x6e77[60],(this[_0x6e77[14]][_0x6e77[59]][_0x6e77[58]])?_0x6e77[8]:_0x6e77[57]);_0x822cx7[_0x6e77[90]](_0x6e77[60],(this[_0x6e77[14]][_0x6e77[59]][_0x6e77[58]])?_0x6e77[8]:_0x6e77[57]);_0x822cx7[_0x6e77[90]](_0x6e77[61],(this[_0x6e77[14]][_0x6e77[93]][_0x6e77[92]]())?_0x6e77[8]:_0x6e77[57]);_0x822cx7[_0x6e77[90]](_0x6e77[63],(this[_0x6e77[14]][_0x6e77[94]][_0x6e77[92]]())?_0x6e77[8]:_0x6e77[57]);_0x822cx7[_0x6e77[90]](_0x6e77[66],(this[_0x6e77[14]][_0x6e77[65]])?_0x6e77[8]:_0x6e77[57]);_0x822cx7[_0x6e77[90]](_0x6e77[76],(this[_0x6e77[14]][_0x6e77[75]])?_0x6e77[8]:_0x6e77[57]);_0x822cx7[_0x6e77[90]](_0x6e77[79],this[_0x6e77[14]][_0x6e77[79]]);_0x822cx7[_0x6e77[90]](_0x6e77[80],this[_0x6e77[14]][_0x6e77[82]][_0x6e77[95]]);_0x822cx7[_0x6e77[90]](_0x6e77[81],this[_0x6e77[14]][_0x6e77[82]][_0x6e77[96]]);if(!this[_0x6e77[14]][_0x6e77[40]]){_0x822cx7[_0x6e77[90]](_0x6e77[40],_0x6e77[57])};if(this[_0x6e77[14]][_0x6e77[41]]!= null){_0x822cx7[_0x6e77[90]](_0x6e77[41],this[_0x6e77[14]][_0x6e77[41]])};return _0x822cx7};Editor[_0x6e77[44]][_0x6e77[85]]= function(){var _0x822cxe=this[_0x6e77[14]];var _0x822cxf=this[_0x6e77[15]];if(_0x822cxe[_0x6e77[68]]!= null&& _0x822cxf[_0x6e77[15]][_0x6e77[68]]!= null){if(_0x822cxe[_0x6e77[41]]!= null){if(_0x822cxe[_0x6e77[41]]== _0x6e77[97]){_0x822cxe[_0x6e77[68]][_0x6e77[99]][_0x6e77[98]]= _0x6e77[100]}else {if(_0x822cxe[_0x6e77[53]][_0x6e77[101]]!= null){_0x822cxe[_0x6e77[53]][_0x6e77[101]][_0x6e77[102]]= _0x822cxe[_0x6e77[41]];_0x822cxe[_0x6e77[53]][_0x6e77[101]][_0x6e77[103]]()};_0x822cxe[_0x6e77[68]][_0x6e77[99]][_0x6e77[98]]= _0x822cxe[_0x6e77[41]]}}else {_0x822cxe[_0x6e77[68]][_0x6e77[99]][_0x6e77[98]]= _0x6e77[20]};if(_0x822cxe[_0x6e77[75]]){_0x822cxe[_0x6e77[68]][_0x6e77[99]][_0x6e77[98]]= _0x6e77[104];_0x822cxe[_0x6e77[68]][_0x6e77[99]][_0x6e77[105]]= _0x6e77[106];_0x822cxe[_0x6e77[68]][_0x6e77[99]][_0x6e77[107]]= _0x6e77[108];_0x822cxe[_0x6e77[68]][_0x6e77[99]][_0x6e77[109]]= _0x6e77[110];_0x822cxe[_0x6e77[68]][_0x6e77[99]][_0x6e77[111]]= _0x6e77[110];_0x822cxe[_0x6e77[68]][_0x6e77[99]][_0x6e77[112]]= _0x6e77[113];_0x822cxe[_0x6e77[68]][_0x6e77[99]][_0x6e77[114]]= _0x6e77[113]}else {_0x822cxe[_0x6e77[68]][_0x6e77[99]][_0x6e77[115]]= _0x6e77[20]};_0x822cxf[_0x6e77[15]][_0x6e77[68]][_0x6e77[99]][_0x6e77[98]]= _0x822cxe[_0x6e77[68]][_0x6e77[99]][_0x6e77[98]];if(_0x822cxf[_0x6e77[15]][_0x6e77[75]]!= _0x822cxe[_0x6e77[75]]|| _0x822cxf[_0x6e77[15]][_0x6e77[79]]!= _0x822cxe[_0x6e77[79]]){_0x822cxf[_0x6e77[15]][_0x6e77[79]]= _0x822cxe[_0x6e77[79]];_0x822cxf[_0x6e77[15]][_0x6e77[75]]= _0x822cxe[_0x6e77[75]];_0x822cxf[_0x6e77[15]][_0x6e77[53]][_0x6e77[116]]()};if(_0x822cxe[_0x6e77[40]]&& _0x822cxe[_0x6e77[68]][_0x6e77[99]][_0x6e77[117]]== _0x6e77[118]&& !touchStyle){_0x822cxe[_0x6e77[68]][_0x6e77[99]][_0x6e77[117]]= _0x6e77[119]}else {if(!_0x822cxe[_0x6e77[40]]|| touchStyle){_0x822cxe[_0x6e77[68]][_0x6e77[99]][_0x6e77[117]]= _0x6e77[118]}};var _0x822cx10=(mxClient[_0x6e77[120]]&& document[_0x6e77[121]]>= 9)?_0x6e77[122]+ this[_0x6e77[46]]+ _0x6e77[123]:_0x6e77[97];_0x822cxe[_0x6e77[68]][_0x6e77[99]][_0x6e77[124]]= (!_0x822cxe[_0x6e77[75]]&& _0x822cxe[_0x6e77[91]]())?_0x6e77[122]+ this[_0x6e77[43]]+ _0x6e77[123]:_0x822cx10;if(_0x822cxe[_0x6e77[53]][_0x6e77[101]]!= null){_0x822cxe[_0x6e77[53]][_0x6e77[101]][_0x6e77[125]][_0x6e77[99]][_0x6e77[124]]= (this[_0x6e77[14]][_0x6e77[91]]())?_0x6e77[122]+ this[_0x6e77[43]]+ _0x6e77[123]:_0x6e77[97]}}};Editor[_0x6e77[44]][_0x6e77[12]]= function(){if(mxClient[_0x6e77[126]]){mxClient[_0x6e77[129]](_0x6e77[127],CSS_PATH+ _0x6e77[128])};mxResources[_0x6e77[130]]= false;mxResources[_0x6e77[131]](RESOURCE_BASE);mxConstants[_0x6e77[132]]= 0.3;var _0x822cx11=mxConnectionHandler[_0x6e77[44]][_0x6e77[133]];mxConnectionHandler[_0x6e77[44]][_0x6e77[133]]= function(){var _0x822cx12=_0x822cx11[_0x6e77[33]](this,arguments);_0x822cx12[_0x6e77[134]]= mxUtils[_0x6e77[34]](this,function(_0x822cx13,_0x822cx14){if(this[_0x6e77[135]]()){return true};return mxCellMarker[_0x6e77[44]][_0x6e77[134]][_0x6e77[33]](_0x822cx12,arguments)});return _0x822cx12};mxConstants[_0x6e77[136]]= _0x6e77[137];mxConstants[_0x6e77[138]]= _0x6e77[139];mxConstants[_0x6e77[140]]= _0x6e77[141];mxConstants[_0x6e77[142]]= _0x6e77[143];mxConstants[_0x6e77[144]]= _0x6e77[143];mxConstants[_0x6e77[145]]= _0x6e77[139];mxConstants[_0x6e77[146]]= _0x6e77[143];mxConstants[_0x6e77[147]]= _0x6e77[148];mxConstants[_0x6e77[149]]= _0x6e77[143];mxConstants[_0x6e77[150]]= _0x6e77[143];mxConstants[_0x6e77[151]]= _0x6e77[148];mxConstants[_0x6e77[152]]= _0x6e77[141];mxGraph[_0x6e77[44]][_0x6e77[153]]= _0x6e77[154];mxGraph[_0x6e77[44]][_0x6e77[79]]= 1;mxRubberband[_0x6e77[44]][_0x6e77[155]]= 30;mxGraphView[_0x6e77[44]][_0x6e77[156]]= function(_0x822cx15){return new mxRectangleShape(_0x822cx15,this[_0x6e77[14]][_0x6e77[41]]|| _0x6e77[157],_0x6e77[158])};mxGraphView[_0x6e77[44]][_0x6e77[159]]= function(){var _0x822cx16=this[_0x6e77[160]]();var _0x822cx17=(_0x822cx16[_0x6e77[95]]> 0)?_0x822cx16[_0x6e77[70]]/ this[_0x6e77[52]]- this[_0x6e77[71]][_0x6e77[70]]:0;var _0x822cx18=(_0x822cx16[_0x6e77[96]]> 0)?_0x822cx16[_0x6e77[73]]/ this[_0x6e77[52]]- this[_0x6e77[71]][_0x6e77[73]]:0;var _0x822cx19=_0x822cx16[_0x6e77[95]]/ this[_0x6e77[52]];var _0x822cx1a=_0x822cx16[_0x6e77[96]]/ this[_0x6e77[52]];var _0x822cx1b=this[_0x6e77[14]][_0x6e77[82]];var _0x822cx9=this[_0x6e77[14]][_0x6e77[79]];var _0x822cxa=_0x822cx1b[_0x6e77[95]]* _0x822cx9;var _0x822cxb=_0x822cx1b[_0x6e77[96]]* _0x822cx9;var _0x822cx1c=Math[_0x6e77[162]](Math[_0x6e77[161]](0,_0x822cx17)/ _0x822cxa);var _0x822cx1d=Math[_0x6e77[162]](Math[_0x6e77[161]](0,_0x822cx18)/ _0x822cxb);var _0x822cx1e=Math[_0x6e77[164]](Math[_0x6e77[163]](1,_0x822cx17+ _0x822cx19)/ _0x822cxa);var _0x822cx1f=Math[_0x6e77[164]](Math[_0x6e77[163]](1,_0x822cx18+ _0x822cx1a)/ _0x822cxb);var _0x822cx20=_0x822cx1e- _0x822cx1c;var _0x822cx21=_0x822cx1f- _0x822cx1d;var _0x822cx15= new mxRectangle(this[_0x6e77[52]]* (this[_0x6e77[71]][_0x6e77[70]]+ _0x822cx1c* _0x822cxa),this[_0x6e77[52]]* (this[_0x6e77[71]][_0x6e77[73]]+ _0x822cx1d* _0x822cxb),this[_0x6e77[52]]* _0x822cx20* _0x822cxa,this[_0x6e77[52]]* _0x822cx21* _0x822cxb);return _0x822cx15};var _0x822cx22=mxGraph[_0x6e77[44]][_0x6e77[165]];mxGraph[_0x6e77[44]][_0x6e77[165]]= function(_0x822cx23,_0x822cx24){_0x822cx22[_0x6e77[33]](this,arguments);if((this[_0x6e77[166]]!= mxConstants[_0x6e77[167]]&& this[_0x6e77[53]][_0x6e77[101]]!= null)&& (!this[_0x6e77[168]]|| !mxUtils[_0x6e77[169]](this[_0x6e77[68]]))){this[_0x6e77[53]][_0x6e77[101]][_0x6e77[125]][_0x6e77[99]][_0x6e77[170]]= _0x822cx23+ _0x6e77[171];this[_0x6e77[53]][_0x6e77[101]][_0x6e77[125]][_0x6e77[99]][_0x6e77[172]]= _0x822cx24+ _0x6e77[171]}};var _0x822cx25=this;mxGraphView[_0x6e77[44]][_0x6e77[173]]= function(){var _0x822cxc=this[_0x6e77[14]][_0x6e77[174]]();if(_0x822cxc!= null){if(this[_0x6e77[124]]== null|| this[_0x6e77[124]][_0x6e77[175]]!= _0x822cxc[_0x6e77[176]]){if(this[_0x6e77[124]]!= null){this[_0x6e77[124]][_0x6e77[177]]()};var _0x822cx15= new mxRectangle(0,0,1,1);this[_0x6e77[124]]= new mxImageShape(_0x822cx15,_0x822cxc[_0x6e77[176]]);this[_0x6e77[124]][_0x6e77[166]]= this[_0x6e77[14]][_0x6e77[166]];this[_0x6e77[124]][_0x6e77[12]](this[_0x6e77[178]]);this[_0x6e77[124]][_0x6e77[179]]()};this[_0x6e77[180]](this[_0x6e77[124]],_0x822cxc)}else {if(this[_0x6e77[124]]!= null){this[_0x6e77[124]][_0x6e77[177]]();this[_0x6e77[124]]= null}};if(this[_0x6e77[14]][_0x6e77[75]]){var _0x822cx15=this[_0x6e77[159]]();if(this[_0x6e77[101]]== null){this[_0x6e77[101]]= this[_0x6e77[156]](_0x822cx15);this[_0x6e77[101]][_0x6e77[52]]= 1;this[_0x6e77[101]][_0x6e77[181]]= true;this[_0x6e77[101]][_0x6e77[166]]= mxConstants[_0x6e77[182]];this[_0x6e77[101]][_0x6e77[12]](this[_0x6e77[14]][_0x6e77[68]]);this[_0x6e77[14]][_0x6e77[68]][_0x6e77[184]][_0x6e77[99]][_0x6e77[183]]= _0x6e77[185];this[_0x6e77[14]][_0x6e77[68]][_0x6e77[186]](this[_0x6e77[101]][_0x6e77[125]],this[_0x6e77[14]][_0x6e77[68]][_0x6e77[184]]);this[_0x6e77[101]][_0x6e77[179]]();this[_0x6e77[101]][_0x6e77[125]][_0x6e77[187]]= _0x6e77[188];this[_0x6e77[101]][_0x6e77[125]][_0x6e77[99]][_0x6e77[189]]= _0x6e77[190];mxEvent[_0x6e77[35]](this[_0x6e77[101]][_0x6e77[125]],_0x6e77[191],mxUtils[_0x6e77[34]](this,function(_0x822cx14){this[_0x6e77[14]][_0x6e77[192]](_0x822cx14)}));mxEvent[_0x6e77[198]](this[_0x6e77[101]][_0x6e77[125]],mxUtils[_0x6e77[34]](this,function(_0x822cx14){this[_0x6e77[14]][_0x6e77[193]](mxEvent.MOUSE_DOWN, new mxMouseEvent(_0x822cx14))}),mxUtils[_0x6e77[34]](this,function(_0x822cx14){if(this[_0x6e77[14]][_0x6e77[93]]!= null&& this[_0x6e77[14]][_0x6e77[93]][_0x6e77[194]]()){this[_0x6e77[14]][_0x6e77[93]][_0x6e77[195]]()};if(this[_0x6e77[14]][_0x6e77[196]]&& !mxEvent[_0x6e77[197]](_0x822cx14)){this[_0x6e77[14]][_0x6e77[193]](mxEvent.MOUSE_MOVE, new mxMouseEvent(_0x822cx14))}}),mxUtils[_0x6e77[34]](this,function(_0x822cx14){this[_0x6e77[14]][_0x6e77[193]](mxEvent.MOUSE_UP, new mxMouseEvent(_0x822cx14))}))}else {this[_0x6e77[101]][_0x6e77[52]]= 1;this[_0x6e77[101]][_0x6e77[199]]= _0x822cx15;this[_0x6e77[101]][_0x6e77[179]]()};this[_0x6e77[101]][_0x6e77[125]][_0x6e77[99]][_0x6e77[124]]= (this[_0x6e77[14]][_0x6e77[91]]())?_0x6e77[122]+ _0x822cx25[_0x6e77[43]]+ _0x6e77[123]:_0x6e77[97]}else {if(this[_0x6e77[101]]!= null){this[_0x6e77[101]][_0x6e77[177]]();this[_0x6e77[101]]= null}}};mxGraph[_0x6e77[44]][_0x6e77[200]]= function(_0x822cx26,_0x822cx27,_0x822cx28){var _0x822cx29=this[_0x6e77[53]][_0x6e77[52]];var _0x822cx2a=this[_0x6e77[53]][_0x6e77[71]];var _0x822cx1b=this[_0x6e77[82]];var _0x822cx9=_0x822cx29* this[_0x6e77[79]];var _0x822cx2b=this[_0x6e77[53]][_0x6e77[159]]();_0x822cx27= _0x822cx2b[_0x6e77[95]];_0x822cx28= _0x822cx2b[_0x6e77[96]];var _0x822cx15= new mxRectangle(_0x822cx29* _0x822cx2a[_0x6e77[70]],_0x822cx29* _0x822cx2a[_0x6e77[73]],_0x822cx1b[_0x6e77[95]]* _0x822cx9,_0x822cx1b[_0x6e77[96]]* _0x822cx9);_0x822cx26= _0x822cx26&& Math[_0x6e77[161]](_0x822cx15[_0x6e77[95]],_0x822cx15[_0x6e77[96]])> this[_0x6e77[201]];var _0x822cx2c=(_0x822cx26)?Math[_0x6e77[164]](_0x822cx27/ _0x822cx15[_0x6e77[95]])- 1:0;var _0x822cx2d=(_0x822cx26)?Math[_0x6e77[164]](_0x822cx28/ _0x822cx15[_0x6e77[96]])- 1:0;var _0x822cx2e=_0x822cx2b[_0x6e77[70]]+ _0x822cx27;var _0x822cx2f=_0x822cx2b[_0x6e77[73]]+ _0x822cx28;if(this[_0x6e77[202]]== null&& _0x822cx2c> 0){this[_0x6e77[202]]= []};if(this[_0x6e77[202]]!= null){for(var _0x822cx30=0;_0x822cx30<= _0x822cx2c;_0x822cx30++){var _0x822cx31=[ new mxPoint(_0x822cx2b[_0x6e77[70]]+ (_0x822cx30+ 1)* _0x822cx15[_0x6e77[95]],_0x822cx2b[_0x6e77[73]]), new mxPoint(_0x822cx2b[_0x6e77[70]]+ (_0x822cx30+ 1)* _0x822cx15[_0x6e77[95]],_0x822cx2f)];if(this[_0x6e77[202]][_0x822cx30]!= null){this[_0x6e77[202]][_0x822cx30][_0x6e77[52]]= 1;this[_0x6e77[202]][_0x822cx30][_0x6e77[203]]= _0x822cx31;this[_0x6e77[202]][_0x822cx30][_0x6e77[179]]()}else {var _0x822cx32= new mxPolyline(_0x822cx31,this[_0x6e77[153]],this[_0x6e77[52]]);_0x822cx32[_0x6e77[166]]= this[_0x6e77[166]];_0x822cx32[_0x6e77[204]]= this[_0x6e77[205]];_0x822cx32[_0x6e77[206]]= false;_0x822cx32[_0x6e77[52]]= _0x822cx29;_0x822cx32[_0x6e77[12]](this[_0x6e77[53]][_0x6e77[178]]);_0x822cx32[_0x6e77[179]]();this[_0x6e77[202]][_0x822cx30]= _0x822cx32}};for(var _0x822cx30=_0x822cx2c;_0x822cx30< this[_0x6e77[202]][_0x6e77[83]];_0x822cx30++){this[_0x6e77[202]][_0x822cx30][_0x6e77[177]]()};this[_0x6e77[202]][_0x6e77[207]](_0x822cx2c,this[_0x6e77[202]][_0x6e77[83]]- _0x822cx2c)};if(this[_0x6e77[208]]== null&& _0x822cx2d> 0){this[_0x6e77[208]]= []};if(this[_0x6e77[208]]!= null){for(var _0x822cx30=0;_0x822cx30<= _0x822cx2d;_0x822cx30++){var _0x822cx31=[ new mxPoint(_0x822cx2b[_0x6e77[70]],_0x822cx2b[_0x6e77[73]]+ (_0x822cx30+ 1)* _0x822cx15[_0x6e77[96]]), new mxPoint(_0x822cx2e,_0x822cx2b[_0x6e77[73]]+ (_0x822cx30+ 1)* _0x822cx15[_0x6e77[96]])];if(this[_0x6e77[208]][_0x822cx30]!= null){this[_0x6e77[208]][_0x822cx30][_0x6e77[52]]= 1;this[_0x6e77[208]][_0x822cx30][_0x6e77[203]]= _0x822cx31;this[_0x6e77[208]][_0x822cx30][_0x6e77[179]]()}else {var _0x822cx32= new mxPolyline(_0x822cx31,this[_0x6e77[153]],_0x822cx29);_0x822cx32[_0x6e77[166]]= this[_0x6e77[166]];_0x822cx32[_0x6e77[204]]= this[_0x6e77[205]];_0x822cx32[_0x6e77[206]]= false;_0x822cx32[_0x6e77[52]]= _0x822cx29;_0x822cx32[_0x6e77[12]](this[_0x6e77[53]][_0x6e77[178]]);_0x822cx32[_0x6e77[179]]();this[_0x6e77[208]][_0x822cx30]= _0x822cx32}};for(var _0x822cx30=_0x822cx2d;_0x822cx30< this[_0x6e77[208]][_0x6e77[83]];_0x822cx30++){this[_0x6e77[208]][_0x822cx30][_0x6e77[177]]()};this[_0x6e77[208]][_0x6e77[207]](_0x822cx2d,this[_0x6e77[208]][_0x6e77[83]]- _0x822cx2d)}};mxEdgeHandler[_0x6e77[44]][_0x6e77[209]]= true;mxGraphHandler[_0x6e77[44]][_0x6e77[58]]= true;var _0x822cx33=mxGraphHandler[_0x6e77[44]][_0x6e77[210]];mxGraphHandler[_0x6e77[44]][_0x6e77[210]]= function(_0x822cx34,_0x822cx35,_0x822cx14){for(var _0x822cx30=0;_0x822cx30< _0x822cx35[_0x6e77[83]];_0x822cx30++){if(this[_0x6e77[14]][_0x6e77[36]]()[_0x6e77[211]](_0x822cx35[_0x822cx30])){var _0x822cx36=this[_0x6e77[14]][_0x6e77[212]](_0x822cx35[_0x822cx30]);if(_0x822cx36!= null&& _0x822cx36[_0x6e77[213]]){return false}}};return _0x822cx33[_0x6e77[33]](this,arguments)};mxGuide[_0x6e77[44]][_0x6e77[214]]= function(_0x822cx14){return !mxEvent[_0x6e77[215]](_0x822cx14)};mxPopupMenuAddItem= mxPopupMenu[_0x6e77[44]][_0x6e77[216]];mxPopupMenu[_0x6e77[44]][_0x6e77[216]]= function(_0x822cx37,_0x822cx38,_0x822cx39,_0x822cx34,_0x822cx3a,_0x822cx3b){var _0x822cx3c=mxPopupMenuAddItem[_0x6e77[33]](this,arguments);if(_0x822cx3b!= null&& !_0x822cx3b){mxEvent[_0x6e77[35]](_0x822cx3c,_0x6e77[217],function(_0x822cx14){mxEvent[_0x6e77[218]](_0x822cx14)})};return _0x822cx3c};var _0x822cx3d=mxGraphHandler[_0x6e77[44]][_0x6e77[219]];mxGraphHandler[_0x6e77[44]][_0x6e77[219]]= function(_0x822cx3e){var _0x822cx3f=this[_0x6e77[14]][_0x6e77[36]]();var _0x822cx40=_0x822cx3f[_0x6e77[221]](this[_0x6e77[14]][_0x6e77[220]]());var _0x822cx41=_0x822cx3d[_0x6e77[33]](this,arguments);var _0x822cx34=_0x822cx3f[_0x6e77[221]](_0x822cx41);if(_0x822cx40== null|| (_0x822cx40!= _0x822cx41&& _0x822cx40!= _0x822cx34)){while(!this[_0x6e77[14]][_0x6e77[222]](_0x822cx41)&& !this[_0x6e77[14]][_0x6e77[222]](_0x822cx34) && _0x822cx3f[_0x6e77[211]](_0x822cx34) && !this[_0x6e77[14]][_0x6e77[223]](_0x822cx34)){_0x822cx41= _0x822cx34;_0x822cx34= this[_0x6e77[14]][_0x6e77[36]]()[_0x6e77[221]](_0x822cx41)}};return _0x822cx41};var _0x822cx42=mxGraphHandler[_0x6e77[44]][_0x6e77[224]];mxGraphHandler[_0x6e77[44]][_0x6e77[224]]= function(_0x822cx41){var _0x822cx3c=_0x822cx42[_0x6e77[33]](this,arguments);var _0x822cx3f=this[_0x6e77[14]][_0x6e77[36]]();var _0x822cx40=_0x822cx3f[_0x6e77[221]](this[_0x6e77[14]][_0x6e77[220]]());var _0x822cx34=_0x822cx3f[_0x6e77[221]](_0x822cx41);if(_0x822cx40== null|| (_0x822cx40!= _0x822cx41&& _0x822cx40!= _0x822cx34)){if(!this[_0x6e77[14]][_0x6e77[222]](_0x822cx41)&& _0x822cx3f[_0x6e77[211]](_0x822cx34) && !this[_0x6e77[14]][_0x6e77[223]](_0x822cx34)){_0x822cx3c= true}};return _0x822cx3c};mxGraphHandler[_0x6e77[44]][_0x6e77[225]]= function(_0x822cx3e){var _0x822cx41=_0x822cx3e[_0x6e77[226]]();if(_0x822cx41== null){_0x822cx41= this[_0x6e77[227]]};var _0x822cx3f=this[_0x6e77[14]][_0x6e77[36]]();var _0x822cx34=_0x822cx3f[_0x6e77[221]](_0x822cx41);while(this[_0x6e77[14]][_0x6e77[222]](_0x822cx41)&& _0x822cx3f[_0x6e77[211]](_0x822cx34)&& !this[_0x6e77[14]][_0x6e77[223]](_0x822cx34)){_0x822cx41= _0x822cx34;_0x822cx34= _0x822cx3f[_0x6e77[221]](_0x822cx41)};this[_0x6e77[14]][_0x6e77[229]](_0x822cx41,_0x822cx3e[_0x6e77[228]]())};mxPanningHandler[_0x6e77[44]][_0x6e77[230]]= function(_0x822cx3e){var _0x822cx41=_0x822cx3e[_0x6e77[226]]();var _0x822cx3f=this[_0x6e77[14]][_0x6e77[36]]();var _0x822cx34=_0x822cx3f[_0x6e77[221]](_0x822cx41);while(_0x822cx3f[_0x6e77[211]](_0x822cx34)&& !this[_0x6e77[14]][_0x6e77[223]](_0x822cx34)){if(this[_0x6e77[14]][_0x6e77[222]](_0x822cx34)){_0x822cx41= _0x822cx34};_0x822cx34= _0x822cx3f[_0x6e77[221]](_0x822cx34)};return _0x822cx41}};Editor[_0x6e77[44]][_0x6e77[18]]= function(){var _0x822cxe=this[_0x6e77[14]];var _0x822cx43= new mxUndoManager();var _0x822cx44=function(_0x822cx45,_0x822cx14){_0x822cx43[_0x6e77[233]](_0x822cx14[_0x6e77[232]](_0x6e77[231]))};_0x822cxe[_0x6e77[36]]()[_0x6e77[35]](mxEvent.UNDO,_0x822cx44);_0x822cxe[_0x6e77[234]]()[_0x6e77[35]](mxEvent.UNDO,_0x822cx44);var _0x822cx46=function(_0x822cx45,_0x822cx14){var _0x822cx47=_0x822cxe[_0x6e77[236]](_0x822cx14[_0x6e77[232]](_0x6e77[231])[_0x6e77[235]]);var _0x822cx35=[];for(var _0x822cx30=1;_0x822cx30< _0x822cx47[_0x6e77[83]];_0x822cx30++){if(_0x822cxe[_0x6e77[53]][_0x6e77[237]](_0x822cx47[_0x822cx30])!= null){_0x822cx35[_0x6e77[238]](_0x822cx47[_0x822cx30])}};_0x822cxe[_0x6e77[239]](_0x822cx35)};_0x822cx43[_0x6e77[35]](mxEvent.UNDO,_0x822cx46);_0x822cx43[_0x6e77[35]](mxEvent.REDO,_0x822cx46);return _0x822cx43};Editor[_0x6e77[44]][_0x6e77[13]]= function(){mxStencilRegistry[_0x6e77[241]](STENCIL_PATH+ _0x6e77[240])};(function(){mxStencilRegistry[_0x6e77[242]]= {};mxStencilRegistry[_0x6e77[243]]= [];mxStencilRegistry[_0x6e77[244]]= function(_0x822cx48){var _0x822cx3c=mxStencilRegistry[_0x6e77[245]][_0x822cx48];if(_0x822cx3c== null){var _0x822cx49=mxStencilRegistry[_0x6e77[246]](_0x822cx48);if(_0x822cx49!= null){var _0x822cx4a=mxStencilRegistry[_0x6e77[242]][_0x822cx49];if(_0x822cx4a!= null){if(mxStencilRegistry[_0x6e77[243]][_0x822cx49]== null){mxStencilRegistry[_0x6e77[243]][_0x822cx49]= 1;for(var _0x822cx30=0;_0x822cx30< _0x822cx4a[_0x6e77[83]];_0x822cx30++){var _0x822cx4b=_0x822cx4a[_0x822cx30];if(_0x822cx4b[_0x6e77[248]]()[_0x6e77[247]](_0x822cx4b[_0x6e77[83]]- 4,_0x822cx4b[_0x6e77[83]])== _0x6e77[25]){mxStencilRegistry[_0x6e77[241]](_0x822cx4b,null)}else {if(_0x822cx4b[_0x6e77[248]]()[_0x6e77[247]](_0x822cx4b[_0x6e77[83]]- 3,_0x822cx4b[_0x6e77[83]])== _0x6e77[249]){var _0x822cx4c=mxUtils[_0x6e77[250]](_0x822cx4b);if(_0x822cx4c!= null){eval[_0x6e77[11]](window,_0x822cx4c[_0x6e77[251]]())}}else {}}}}}else {mxStencilRegistry[_0x6e77[241]](STENCIL_PATH+ _0x6e77[252]+ _0x822cx49+ _0x6e77[25],null)};_0x822cx3c= mxStencilRegistry[_0x6e77[245]][_0x822cx48]}};return _0x822cx3c};mxStencilRegistry[_0x6e77[246]]= function(_0x822cx48){var _0x822cx4d=_0x822cx48[_0x6e77[254]](_0x6e77[253]);var _0x822cx4e=null;if(_0x822cx4d[_0x6e77[83]]> 0&& _0x822cx4d[0]== _0x6e77[255]){_0x822cx4e= _0x822cx4d[1];for(var _0x822cx30=2;_0x822cx30< _0x822cx4d[_0x6e77[83]]- 1;_0x822cx30++){_0x822cx4e+= _0x6e77[252]+ _0x822cx4d[_0x822cx30]}};return _0x822cx4e};mxStencilRegistry[_0x6e77[241]]= function(_0x822cx4f,_0x822cx50,_0x822cx51){_0x822cx51= (_0x822cx51!= null)?_0x822cx51:false;var _0x822cx52=mxStencilRegistry[_0x6e77[243]][_0x822cx4f];if(_0x822cx51|| _0x822cx52== null){var _0x822cx53=false;if(_0x822cx52== null){var _0x822cx4c=mxUtils[_0x6e77[250]](_0x822cx4f);_0x822cx52= _0x822cx4c[_0x6e77[256]]();mxStencilRegistry[_0x6e77[243]][_0x822cx4f]= _0x822cx52;_0x822cx53= true};mxStencilRegistry[_0x6e77[257]](_0x822cx52,_0x822cx50,_0x822cx53)}};mxStencilRegistry[_0x6e77[257]]= function(_0x822cx54,_0x822cx50,_0x822cx53){_0x822cx53= (_0x822cx53!= null)?_0x822cx53:true;var _0x822cx55=_0x822cx54[_0x6e77[258]];var _0x822cx56=_0x822cx55[_0x6e77[184]];var _0x822cx57=_0x6e77[20];var _0x822cx48=_0x822cx55[_0x6e77[56]](_0x6e77[259]);if(_0x822cx48!= null){_0x822cx57= _0x822cx48+ _0x6e77[253]};while(_0x822cx56!= null){if(_0x822cx56[_0x6e77[260]]== mxConstants[_0x6e77[261]]){_0x822cx48= _0x822cx56[_0x6e77[56]](_0x6e77[259]);if(_0x822cx48!= null){_0x822cx57= _0x822cx57[_0x6e77[248]]();var _0x822cx58=_0x822cx48[_0x6e77[263]](/ /g,_0x6e77[262]);if(_0x822cx53){mxStencilRegistry[_0x6e77[264]](_0x822cx57+ _0x822cx58[_0x6e77[248]](), new mxStencil(_0x822cx56))};if(_0x822cx50!= null){var _0x822cx19=_0x822cx56[_0x6e77[56]](_0x6e77[265]);var _0x822cx1a=_0x822cx56[_0x6e77[56]](_0x6e77[266]);_0x822cx19= (_0x822cx19== null)?80:parseInt(_0x822cx19,10);_0x822cx1a= (_0x822cx1a== null)?80:parseInt(_0x822cx1a,10);_0x822cx50(_0x822cx57,_0x822cx58,_0x822cx48,_0x822cx19,_0x822cx1a)}}};_0x822cx56= _0x822cx56[_0x6e77[267]]}}})();OpenFile= function(_0x822cx59){this[_0x6e77[268]]= null;this[_0x6e77[269]]= null;this[_0x6e77[270]]= _0x822cx59};OpenFile[_0x6e77[44]][_0x6e77[271]]= function(_0x822cx6){this[_0x6e77[269]]= _0x822cx6;this[_0x6e77[272]]()};OpenFile[_0x6e77[44]][_0x6e77[273]]= function(_0x822cx6,_0x822cx5a){this[_0x6e77[274]]= _0x822cx6;this[_0x6e77[21]]= _0x822cx5a;this[_0x6e77[272]]()};OpenFile[_0x6e77[44]][_0x6e77[275]]= function(_0x822cx5b){this[_0x6e77[276]]();mxUtils[_0x6e77[277]](_0x822cx5b)};OpenFile[_0x6e77[44]][_0x6e77[272]]= function(){if(this[_0x6e77[269]]!= null&& this[_0x6e77[274]]!= null){this[_0x6e77[269]](this[_0x6e77[274]],this[_0x6e77[21]]);this[_0x6e77[276]]()}};OpenFile[_0x6e77[44]][_0x6e77[276]]= function(){if(this[_0x6e77[270]]!= null){this[_0x6e77[270]]()}} \ No newline at end of file diff --git a/public/assets/plugins/jscripty/js/EditorUi.js b/public/assets/plugins/jscripty/js/EditorUi.js index fc963be..2ef3b70 100644 --- a/public/assets/plugins/jscripty/js/EditorUi.js +++ b/public/assets/plugins/jscripty/js/EditorUi.js @@ -1 +1 @@ -var _0x1552=["\x65\x64\x69\x74\x6F\x72","\x63\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x67\x65\x45\x64\x69\x74\x6F\x72","\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x42\x79\x49\x64","\x67\x72\x61\x70\x68","\x6F\x76\x65\x72\x66\x6C\x6F\x77","\x73\x74\x79\x6C\x65","\x68\x69\x64\x64\x65\x6E","\x73\x72\x63","\x73\x75\x62\x6D\x65\x6E\x75\x49\x6D\x61\x67\x65","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x63\x6F\x6E\x6E\x65\x63\x74\x49\x6D\x61\x67\x65","\x61\x63\x74\x69\x6F\x6E\x73","\x6D\x65\x6E\x75\x73","\x63\x72\x65\x61\x74\x65\x44\x69\x76\x73","\x72\x65\x66\x72\x65\x73\x68","\x63\x72\x65\x61\x74\x65\x55\x69","\x65\x76\x65\x6E\x74","\x69\x73\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x41\x6C\x6C\x6F\x77\x65\x64","\x69\x73\x45\x64\x69\x74\x69\x6E\x67","\x62\x69\x6E\x64","\x62\x6F\x64\x79","\x6F\x6E\x73\x65\x6C\x65\x63\x74\x73\x74\x61\x72\x74","\x6D\x65\x6E\x75\x62\x61\x72\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x6F\x6E\x6D\x6F\x75\x73\x65\x64\x6F\x77\x6E","\x74\x6F\x6F\x6C\x62\x61\x72\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x64\x69\x61\x67\x72\x61\x6D\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x73\x69\x64\x65\x62\x61\x72\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x66\x6F\x6F\x74\x65\x72\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x49\x53\x5F\x49\x45","\x64\x6F\x63\x75\x6D\x65\x6E\x74\x4D\x6F\x64\x65","\x75\x6E\x64\x65\x66\x69\x6E\x65\x64","\x63\x6F\x6E\x74\x65\x78\x74\x6D\x65\x6E\x75","\x61\x64\x64\x4C\x69\x73\x74\x65\x6E\x65\x72","\x6F\x6E\x63\x6F\x6E\x74\x65\x78\x74\x6D\x65\x6E\x75","\x69\x6E\x69\x74","\x74\x61\x62\x69\x6E\x64\x65\x78","\x30","\x73\x65\x74\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x63\x75\x72\x73\x6F\x72","\x64\x65\x66\x61\x75\x6C\x74","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x49\x6D\x61\x67\x65","\x75\x72\x6C\x28","\x67\x72\x69\x64\x49\x6D\x61\x67\x65","\x29","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x50\x6F\x73\x69\x74\x69\x6F\x6E","\x2D\x31\x70\x78\x20\x2D\x31\x70\x78","\x66\x6F\x63\x75\x73","\x66\x69\x72\x65\x4D\x6F\x75\x73\x65\x45\x76\x65\x6E\x74","\x4D\x4F\x55\x53\x45\x5F\x44\x4F\x57\x4E","\x61\x70\x70\x6C\x79","\x6D\x75\x6C\x74\x69\x70\x6C\x69\x63\x69\x74\x69\x65\x73","\x73\x74\x61\x72\x74","\x65\x6E\x64","\x69\x6E\x70\x75\x74","\x71\x75\x65\x73\x74\x69\x6F\x6E","\x65\x6D\x61\x69\x6C","\x6E","\x63\x72\x65\x61\x74\x65\x4D\x75\x6C\x74\x69\x70\x6C\x69\x63\x69\x74\x69\x65\x73","\x64\x62\x6C\x43\x6C\x69\x63\x6B","\x63\x65\x6C\x6C","\x66\x69\x72\x65\x45\x76\x65\x6E\x74","\x69\x73\x45\x6E\x61\x62\x6C\x65\x64","\x69\x73\x43\x6F\x6E\x73\x75\x6D\x65\x64","\x69\x73\x45\x64\x67\x65","\x67\x65\x74\x4D\x6F\x64\x65\x6C","\x74\x61\x67\x4E\x61\x6D\x65","\x76\x61\x6C\x75\x65","\x73\x6F\x75\x72\x63\x65","\x69\x6E\x64\x65\x78\x4F\x66","\x73\x74\x61\x72\x74\x45\x64\x69\x74\x69\x6E\x67\x41\x74\x43\x65\x6C\x6C","\x69\x73\x56\x65\x72\x74\x65\x78","\x6C\x6F\x67","\x73\x68\x6F\x77\x44\x69\x61\x6C\x6F\x67","\x63\x6F\x6E\x73\x75\x6D\x65","\x61\x75\x74\x6F\x45\x78\x70\x61\x6E\x64","\x70\x61\x6E\x6E\x69\x6E\x67\x48\x61\x6E\x64\x6C\x65\x72","\x66\x61\x63\x74\x6F\x72\x79\x4D\x65\x74\x68\x6F\x64","\x63\x72\x65\x61\x74\x65\x50\x6F\x70\x75\x70\x4D\x65\x6E\x75","\x6F\x75\x74\x6C\x69\x6E\x65\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x6F\x75\x74\x6C\x69\x6E\x65","\x68\x69\x64\x65\x4D\x65\x6E\x75","\x61\x64\x64\x47\x65\x73\x74\x75\x72\x65\x4C\x69\x73\x74\x65\x6E\x65\x72\x73","\x49\x53\x5F\x54\x4F\x55\x43\x48","\x67\x65\x73\x74\x75\x72\x65\x63\x68\x61\x6E\x67\x65","\x74\x72\x61\x6E\x73\x66\x6F\x72\x6D","\x73\x63\x61\x6C\x65\x28","\x73\x63\x61\x6C\x65","\x67\x65\x74\x44\x72\x61\x77\x50\x61\x6E\x65","\x76\x69\x65\x77","\x76\x69\x73\x69\x62\x69\x6C\x69\x74\x79","\x67\x65\x74\x4F\x76\x65\x72\x6C\x61\x79\x50\x61\x6E\x65","\x67\x65\x73\x74\x75\x72\x65\x65\x6E\x64","\x72\x65\x6D\x6F\x76\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x7A\x6F\x6F\x6D\x54\x6F\x43\x65\x6E\x74\x65\x72","\x7A\x6F\x6F\x6D","\x76\x69\x73\x69\x62\x6C\x65","\x63\x72\x65\x61\x74\x65\x4B\x65\x79\x48\x61\x6E\x64\x6C\x65\x72","\x67\x65\x74\x4B\x65\x79\x48\x61\x6E\x64\x6C\x65\x72","\x72\x65\x73\x69\x7A\x65","\x73\x69\x7A\x65\x44\x69\x64\x43\x68\x61\x6E\x67\x65","\x75\x70\x64\x61\x74\x65","\x6F\x70\x65\x6E","\x73\x70\x6C\x69\x74\x53\x69\x7A\x65","\x6D\x65\x6E\x75\x62\x61\x72\x48\x65\x69\x67\x68\x74","\x74\x6F\x6F\x6C\x62\x61\x72\x48\x65\x69\x67\x68\x74","\x66\x6F\x6F\x74\x65\x72\x48\x65\x69\x67\x68\x74","\x68\x73\x70\x6C\x69\x74\x50\x6F\x73\x69\x74\x69\x6F\x6E","\x76\x73\x70\x6C\x69\x74\x50\x6F\x73\x69\x74\x69\x6F\x6E","\x61\x64\x64\x55\x6E\x64\x6F\x4C\x69\x73\x74\x65\x6E\x65\x72","\x61\x64\x64\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x4C\x69\x73\x74\x65\x6E\x65\x72","\x70\x61\x73\x74\x65","\x67\x65\x74","\x69\x73\x45\x6D\x70\x74\x79","\x73\x65\x74\x45\x6E\x61\x62\x6C\x65\x64","\x63\x75\x74","\x63\x6F\x70\x79","\x6F\x70\x65\x6E\x65\x72","\x6F\x70\x65\x6E\x46\x69\x6C\x65","\x70\x61\x72\x73\x65\x58\x6D\x6C","\x64\x6F\x63\x75\x6D\x65\x6E\x74\x45\x6C\x65\x6D\x65\x6E\x74","\x73\x65\x74\x47\x72\x61\x70\x68\x58\x6D\x6C","\x6D\x6F\x64\x69\x66\x69\x65\x64","\x63\x6C\x65\x61\x72","\x75\x6E\x64\x6F\x4D\x61\x6E\x61\x67\x65\x72","\x66\x69\x6C\x65\x6E\x61\x6D\x65","\x69\x6E\x76\x61\x6C\x69\x64\x4F\x72\x4D\x69\x73\x73\x69\x6E\x67\x46\x69\x6C\x65","\x3A\x20","\x6D\x65\x73\x73\x61\x67\x65","\x61\x6C\x65\x72\x74","\x73\x65\x74\x43\x6F\x6E\x73\x75\x6D\x65\x72","\x6F\x70\x65\x6E\x53\x74\x72\x69\x6E\x67","\x64\x61\x74\x61","\x6E\x65\x77","\x67\x65\x74\x47\x72\x61\x70\x68\x58\x6D\x6C","\x67\x65\x74\x50\x72\x65\x74\x74\x79\x58\x6D\x6C","\x67\x65\x74\x49\x74\x65\x6D","\x72\x65\x70\x6C\x61\x63\x65","\x63\x6F\x6E\x66\x69\x72\x6D","\x73\x65\x74\x49\x74\x65\x6D","\x73\x61\x76\x65\x64","\x20","\x73\x65\x74\x53\x74\x61\x74\x75\x73","\x6C\x65\x6E\x67\x74\x68","\x50\x4F\x53\x54","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2F\x78\x2D\x77\x77\x77\x2D\x66\x6F\x72\x6D\x2D\x75\x72\x6C\x65\x6E\x63\x6F\x64\x65\x64","\x73\x65\x74\x52\x65\x71\x75\x65\x73\x74\x48\x65\x61\x64\x65\x72","\x41\x75\x74\x68\x6F\x72\x69\x7A\x61\x74\x69\x6F\x6E","\x42\x65\x61\x72\x65\x72\x20","\x74\x6F\x6B\x65\x6E","\x6F\x6E\x6C\x6F\x61\x64","\x72\x65\x61\x64\x79\x53\x74\x61\x74\x65","\x73\x74\x61\x74\x75\x73","\x50\x72\x6F\x6A\x65\x63\x74\x20","\x6E\x61\x6D\x65","\x72\x65\x73\x70\x6F\x6E\x73\x65","\x70\x61\x72\x73\x65","\x20\x69\x73\x20\x6F\x70\x65\x6E\x69\x6E\x67\x20\x69\x6E\x20\x6E\x65\x77\x20\x77\x69\x6E\x64\x6F\x77\x21","\x6A\x73\x63\x72\x69\x70\x74\x79\x2F\x70\x72\x6F\x6A\x65\x63\x74\x73\x2F\x76\x69\x65\x77\x2F","\x69\x64","\x5F\x62\x6C\x61\x6E\x6B","\x45\x72\x72\x6F\x72\x20\x63\x72\x65\x61\x74\x69\x6E\x67\x20\x70\x72\x6F\x6A\x65\x63\x74\x3A\x20","\x65\x72\x72\x6F\x72\x73","\x45\x72\x72\x6F\x72\x20\x63\x72\x65\x61\x74\x69\x6E\x67\x20\x70\x72\x6F\x6A\x65\x63\x74","\x20\x28","\x73\x74\x61\x74\x75\x73\x54\x65\x78\x74","\x6F\x6E\x65\x72\x72\x6F\x72","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E\x3D\x70\x72\x6F\x6A\x65\x63\x74\x5F\x6E\x65\x77\x26\x6E\x61\x6D\x65\x3D","\x73\x65\x6E\x64","\x64\x72\x61\x77\x69\x6E\x67\x54\x6F\x6F\x4C\x61\x72\x67\x65","\x70\x6F\x70\x75\x70","\x73\x61\x76\x65","\x50\x55\x54","\x55\x70\x64\x61\x74\x65\x64\x20\x61\x74\x20","\x75\x70\x64\x61\x74\x65\x64\x41\x74","\x45\x72\x72\x6F\x72\x20\x73\x61\x76\x69\x6E\x67\x20\x70\x72\x6F\x6A\x65\x63\x74\x3A\x20","\x45\x72\x72\x6F\x72\x20\x73\x61\x76\x69\x6E\x67\x20\x70\x72\x6F\x6A\x65\x63\x74","\x64\x72\x61\x66\x74\x3D","\x45\x72\x72\x6F\x72\x20\x73\x61\x76\x69\x6E\x67\x20\x66\x69\x6C\x65","\x73\x61\x76\x65\x41\x73","\x6A\x73\x63\x72\x69\x70\x74\x79\x2F\x70\x72\x6F\x6A\x65\x63\x74\x2F","\x45\x72\x72\x6F\x72\x20\x63\x6C\x6F\x6E\x69\x6E\x67\x20\x70\x72\x6F\x6A\x65\x63\x74\x3A\x20","\x45\x72\x72\x6F\x72\x20\x63\x6C\x6F\x6E\x69\x6E\x67\x20\x70\x72\x6F\x6A\x65\x63\x74","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E\x3D\x70\x72\x6F\x6A\x65\x63\x74\x5F\x63\x6C\x6F\x6E\x65\x64\x26\x6E\x61\x6D\x65\x3D","\x26\x64\x72\x61\x66\x74\x3D","\x26\x70\x72\x6F\x64\x75\x63\x74\x69\x6F\x6E\x3D","\x76\x61\x6C\x69\x64\x61\x74\x65","\x67\x65\x74\x52\x6F\x6F\x74","\x6D\x6F\x64\x65\x6C","\x67\x65\x74\x43\x68\x69\x6C\x64\x43\x6F\x75\x6E\x74","\x67\x65\x74\x43\x68\x69\x6C\x64\x41\x74","\x69\x73\x56\x61\x6C\x69\x64\x52\x6F\x6F\x74","\x3C\x62\x72\x3E","\x73\x65\x74\x43\x65\x6C\x6C\x57\x61\x72\x6E\x69\x6E\x67","","\x67\x65\x74\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x51\x75\x65\x73\x74\x69\x6F\x6E\x20\x63\x61\x6E\x20\x6E\x6F\x74\x20\x62\x65\x20\x65\x6D\x70\x74\x79","\x0A","\x6C\x61\x62\x65\x6C","\x4C\x61\x62\x65\x6C\x20\x63\x61\x6E\x20\x6E\x6F\x74\x20\x62\x65\x20\x65\x6D\x70\x74\x79","\x76\x61\x6C\x69\x64\x61\x74\x65\x42\x6C\x6F\x63\x6B","\x4F\x6E\x6C\x79\x20\x6F\x6E\x65\x20\x53\x74\x61\x72\x74\x20\x62\x6C\x6F\x63\x6B\x20\x69\x73\x20\x61\x6C\x6C\x6F\x77\x65\x64","\x6E\x6F\x64\x65\x4E\x61\x6D\x65","\x67\x65\x74\x49\x64","\x67\x65\x74\x43\x65\x6C\x6C","\x67\x65\x74\x56\x61\x6C\x75\x65","\x6E\x75\x6C\x6C","\x56\x61\x6C\x75\x65\x20\x63\x61\x6E\x20\x6E\x6F\x74\x20\x62\x65\x20\x65\x6D\x70\x74\x79","\x2C","\x73\x70\x6C\x69\x74","\x74\x72\x69\x6D","\x56\x61\x6C\x75\x65","\x20\x63\x61\x6E\x20\x6E\x6F\x74\x20\x62\x65\x20\x65\x6D\x70\x74\x79","\x66\x6F\x72\x45\x61\x63\x68","\x69\x73\x43\x65\x6C\x6C\x43\x6F\x6C\x6C\x61\x70\x73\x65\x64","\x63\x6F\x6E\x74\x61\x69\x6E\x73\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E\x45\x72\x72\x6F\x72\x73\x52\x65\x73\x6F\x75\x72\x63\x65","\x67\x65\x74\x54\x65\x72\x6D\x69\x6E\x61\x6C","\x67\x65\x74\x45\x64\x67\x65\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E\x45\x72\x72\x6F\x72","\x67\x65\x74\x43\x65\x6C\x6C\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E\x45\x72\x72\x6F\x72","\x76\x61\x6C\x69\x64\x61\x74\x65\x43\x65\x6C\x6C","\x67\x65\x74\x50\x61\x72\x65\x6E\x74","\x67\x65\x74\x44\x65\x66\x61\x75\x6C\x74\x50\x61\x72\x65\x6E\x74","\x63\x68\x69\x6C\x64\x72\x65\x6E","\x70\x75\x62\x6C\x69\x73\x68","\x50\x75\x62\x6C\x69\x73\x68\x65\x64\x20\x61\x74\x20","\x45\x72\x72\x6F\x72\x20\x70\x75\x62\x6C\x69\x73\x68\x69\x6E\x67\x20\x70\x72\x6F\x6A\x65\x63\x74\x3A\x20","\x45\x72\x72\x6F\x72\x20\x70\x75\x62\x6C\x69\x73\x68\x69\x6E\x67\x20\x70\x72\x6F\x6A\x65\x63\x74","\x45\x72\x72\x6F\x72\x20\x70\x75\x62\x6C\x69\x73\x68\x69\x6E\x67\x20\x66\x69\x6C\x65","\x76\x61\x72\x69\x61\x62\x6C\x65","\x56\x61\x72\x69\x61\x62\x6C\x65\x20\x63\x72\x65\x61\x74\x65\x64\x20\x61\x74\x20","\x63\x72\x65\x61\x74\x65\x64\x41\x74","\x45\x72\x72\x6F\x72\x20\x63\x72\x65\x61\x74\x69\x6E\x67\x20\x76\x61\x72\x69\x61\x62\x6C\x65\x3A\x20","\x45\x72\x72\x6F\x72\x20\x63\x72\x65\x61\x74\x69\x6E\x67\x20\x76\x61\x72\x69\x61\x62\x6C\x65","\x6E\x61\x6D\x65\x3D","\x67\x65\x74\x55\x72\x6C","\x70\x61\x74\x68\x6E\x61\x6D\x65","\x6C\x6F\x63\x61\x74\x69\x6F\x6E","\x3F","\x26","\x3D","\x75\x6E\x64\x6F","\x72\x65\x64\x6F","\x63\x61\x6E\x55\x6E\x64\x6F","\x63\x61\x6E\x52\x65\x64\x6F","\x69\x73\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x45\x6D\x70\x74\x79","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C\x73","\x64\x65\x6C\x65\x74\x65","\x64\x75\x70\x6C\x69\x63\x61\x74\x65","\x62\x6F\x6C\x64","\x69\x74\x61\x6C\x69\x63","\x75\x6E\x64\x65\x72\x6C\x69\x6E\x65","\x74\x6F\x46\x72\x6F\x6E\x74","\x74\x6F\x42\x61\x63\x6B","\x64\x61\x73\x68\x65\x64","\x72\x6F\x75\x6E\x64\x65\x64","\x73\x68\x61\x64\x6F\x77","\x74\x69\x6C\x74","\x61\x75\x74\x6F\x73\x69\x7A\x65","\x63\x75\x72\x76\x65\x64","\x72\x6F\x74\x61\x74\x69\x6F\x6E","\x77\x6F\x72\x64\x57\x72\x61\x70","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x6F\x75\x6E\x74","\x67\x72\x6F\x75\x70","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C","\x75\x6E\x67\x72\x6F\x75\x70","\x72\x65\x6D\x6F\x76\x65\x46\x72\x6F\x6D\x47\x72\x6F\x75\x70","\x66\x6F\x6E\x74\x46\x61\x6D\x69\x6C\x79","\x66\x6F\x6E\x74\x53\x69\x7A\x65","\x61\x6C\x69\x67\x6E\x6D\x65\x6E\x74","\x70\x6F\x73\x69\x74\x69\x6F\x6E","\x74\x65\x78\x74","\x66\x6F\x72\x6D\x61\x74","\x61\x72\x72\x61\x6E\x67\x65","\x6C\x69\x6E\x65\x77\x69\x64\x74\x68","\x73\x70\x61\x63\x69\x6E\x67","\x6C\x69\x6E\x65","\x6C\x69\x6E\x65\x65\x6E\x64","\x6C\x69\x6E\x65\x73\x74\x61\x72\x74","\x73\x65\x74\x41\x73\x44\x65\x66\x61\x75\x6C\x74\x45\x64\x67\x65","\x61\x6C\x69\x67\x6E","\x67\x65\x74\x53\x74\x61\x74\x65","\x69\x73\x4C\x6F\x6F\x70","\x64\x69\x72\x65\x63\x74\x69\x6F\x6E","\x66\x6F\x6C\x64\x69\x6E\x67\x45\x6E\x61\x62\x6C\x65\x64","\x63\x75\x72\x72\x65\x6E\x74\x52\x6F\x6F\x74","\x6E\x61\x76\x69\x67\x61\x74\x69\x6F\x6E","\x68\x6F\x6D\x65","\x65\x78\x69\x74\x47\x72\x6F\x75\x70","\x65\x6E\x74\x65\x72\x47\x72\x6F\x75\x70","\x65\x78\x70\x61\x6E\x64","\x63\x6F\x6C\x6C\x61\x70\x73\x65","\x65\x64\x69\x74\x4C\x69\x6E\x6B","\x67\x65\x74\x4C\x69\x6E\x6B\x46\x6F\x72\x43\x65\x6C\x6C","\x6F\x70\x65\x6E\x4C\x69\x6E\x6B","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x4D\x6F\x64\x65\x6C","\x63\x6C\x69\x65\x6E\x74\x57\x69\x64\x74\x68","\x63\x6C\x69\x65\x6E\x74\x48\x65\x69\x67\x68\x74","\x6D\x69\x6E","\x6D\x61\x78","\x68\x65\x69\x67\x68\x74","\x70\x78","\x74\x6F\x70","\x49\x53\x5F\x51\x55\x49\x52\x4B\x53","\x77\x69\x64\x74\x68","\x62\x6F\x74\x74\x6F\x6D","\x6C\x65\x66\x74","\x64\x69\x73\x70\x6C\x61\x79","\x6E\x6F\x6E\x65","\x68\x73\x70\x6C\x69\x74","\x76\x73\x70\x6C\x69\x74","\x67\x65\x4D\x65\x6E\x75\x62\x61\x72\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x63\x72\x65\x61\x74\x65\x44\x69\x76","\x67\x65\x54\x6F\x6F\x6C\x62\x61\x72\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x67\x65\x53\x69\x64\x65\x62\x61\x72\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x67\x65\x4F\x75\x74\x6C\x69\x6E\x65\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x67\x65\x44\x69\x61\x67\x72\x61\x6D\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x67\x65\x46\x6F\x6F\x74\x65\x72\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x67\x65\x48\x73\x70\x6C\x69\x74","\x67\x65\x56\x73\x70\x6C\x69\x74","\x30\x70\x78","\x72\x69\x67\x68\x74","\x6D\x65\x6E\x75\x62\x61\x72","\x67\x65\x4D\x65\x6E\x75\x62\x61\x72","\x63\x72\x65\x61\x74\x65\x4D\x65\x6E\x75\x62\x61\x72","\x61\x70\x70\x65\x6E\x64\x43\x68\x69\x6C\x64","\x74\x6F\x6F\x6C\x62\x61\x72","\x67\x65\x54\x6F\x6F\x6C\x62\x61\x72","\x63\x72\x65\x61\x74\x65\x54\x6F\x6F\x6C\x62\x61\x72","\x73\x69\x64\x65\x62\x61\x72","\x63\x72\x65\x61\x74\x65\x53\x69\x64\x65\x62\x61\x72","\x63\x72\x65\x61\x74\x65\x46\x6F\x6F\x74\x65\x72","\x73\x74\x61\x74\x75\x73\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x63\x72\x65\x61\x74\x65\x53\x74\x61\x74\x75\x73\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x73\x74\x61\x74\x75\x73\x43\x68\x61\x6E\x67\x65\x64","\x67\x65\x74\x53\x74\x61\x74\x75\x73","\x73\x65\x74\x53\x74\x61\x74\x75\x73\x54\x65\x78\x74","\x61\x64\x64\x53\x70\x6C\x69\x74\x48\x61\x6E\x64\x6C\x65\x72","\x61","\x63\x72\x65\x61\x74\x65\x45\x6C\x65\x6D\x65\x6E\x74","\x63\x6C\x61\x73\x73\x4E\x61\x6D\x65","\x67\x65\x49\x74\x65\x6D\x20\x67\x65\x53\x74\x61\x74\x75\x73","\x69\x6E\x6E\x65\x72\x48\x54\x4D\x4C","\x67\x65\x46\x6F\x6F\x74\x65\x72","\x64\x69\x76","\x63\x72\x65\x61\x74\x65\x48\x65\x61\x64\x65\x72","\x63\x72\x65\x61\x74\x65\x46\x6F\x72\x6D","\x66\x6F\x72\x6D","\x67\x65\x74\x43\x6C\x69\x65\x6E\x74\x58","\x67\x65\x74\x43\x6C\x69\x65\x6E\x74\x59","\x78","\x79","\x6D\x6F\x75\x73\x65\x6D\x6F\x76\x65","\x74\x6F\x75\x63\x68\x6D\x6F\x76\x65","\x6D\x6F\x75\x73\x65\x75\x70","\x74\x6F\x75\x63\x68\x65\x6E\x64","\x68\x69\x64\x65\x44\x69\x61\x6C\x6F\x67","\x64\x69\x61\x6C\x6F\x67","\x49\x53\x5F\x56\x4D\x4C","\x63\x6C\x6F\x73\x65","\x73\x61\x76\x65\x46\x69\x6C\x65","\x67\x65\x74\x4F\x72\x43\x72\x65\x61\x74\x65\x46\x69\x6C\x65\x6E\x61\x6D\x65","\x70\x75\x62\x6C\x69\x73\x68\x46\x69\x6C\x65","\x65\x78\x65\x63\x75\x74\x65\x4C\x61\x79\x6F\x75\x74","\x61\x6E\x69\x6D\x61\x74\x65","\x62\x65\x67\x69\x6E\x55\x70\x64\x61\x74\x65","\x65\x78\x65\x63\x75\x74\x65","\x43\x61\x6D\x69\x6E\x6F","\x75\x73\x65\x72\x41\x67\x65\x6E\x74","\x65\x6E\x64\x55\x70\x64\x61\x74\x65","\x73\x74\x61\x72\x74\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E","\x69\x73\x43\x6F\x6E\x74\x72\x6F\x6C\x44\x6F\x77\x6E","\x49\x53\x5F\x4D\x41\x43","\x6D\x65\x74\x61\x4B\x65\x79","\x6D\x6F\x76\x65\x43\x65\x6C\x6C\x73","\x73\x63\x72\x6F\x6C\x6C\x43\x65\x6C\x6C\x54\x6F\x56\x69\x73\x69\x62\x6C\x65","\x65\x6E\x61\x62\x6C\x65\x64","\x66\x75\x6E\x63\x74","\x62\x69\x6E\x64\x43\x6F\x6E\x74\x72\x6F\x6C\x53\x68\x69\x66\x74\x4B\x65\x79","\x62\x69\x6E\x64\x43\x6F\x6E\x74\x72\x6F\x6C\x4B\x65\x79","\x62\x69\x6E\x64\x53\x68\x69\x66\x74\x4B\x65\x79","\x62\x69\x6E\x64\x4B\x65\x79","\x65\x73\x63\x61\x70\x65","\x65\x6E\x74\x65\x72","\x66\x6F\x6C\x64\x43\x65\x6C\x6C\x73","\x7A\x6F\x6F\x6D\x49\x6E","\x7A\x6F\x6F\x6D\x4F\x75\x74","\x73\x65\x6C\x65\x63\x74\x41\x6C\x6C","\x73\x65\x6C\x65\x63\x74\x56\x65\x72\x74\x69\x63\x65\x73","\x73\x65\x6C\x65\x63\x74\x45\x64\x67\x65\x73","\x65\x78\x70\x6F\x72\x74","\x63\x6F\x6E\x6E\x65\x63\x74","\x67\x72\x69\x64","\x61\x62\x6F\x75\x74","\x20\x6D\x75\x73\x74\x20\x68\x61\x76\x65\x20","\x20\x6F\x75\x74\x67\x6F\x69\x6E\x67\x20\x65\x64\x67\x65\x2E","\x70\x75\x73\x68","\x20\x69\x6E\x63\x6F\x6D\x69\x6E\x67\x20\x65\x64\x67\x65\x2E"];EditorUi= function(_0xdca2x1,_0xdca2x2){this[_0x1552[0]]= _0xdca2x1|| new Editor();this[_0x1552[1]]= _0xdca2x2|| document[_0x1552[3]](_0x1552[2]);var _0xdca2x3=_0xdca2x1[_0x1552[4]];var _0xdca2x4=this;this[_0x1552[1]][_0x1552[6]][_0x1552[5]]= _0x1552[7]; new Image()[_0x1552[8]]= mxPopupMenu[_0x1552[10]][_0x1552[9]];if(mxConnectionHandler[_0x1552[10]][_0x1552[11]]!= null){ new Image()[_0x1552[8]]= mxConnectionHandler[_0x1552[10]][_0x1552[11]][_0x1552[8]]};this[_0x1552[12]]= new Actions(this);this[_0x1552[13]]= new Menus(this);this[_0x1552[14]]();this[_0x1552[15]]();this[_0x1552[16]]();var _0xdca2x5=mxUtils[_0x1552[20]](this,function(_0xdca2x6){if(_0xdca2x6== null){_0xdca2x6= window[_0x1552[17]]};if(this[_0x1552[18]](_0xdca2x6)){return true};return _0xdca2x3[_0x1552[19]]()});if(this[_0x1552[1]]== document[_0x1552[21]]){this[_0x1552[23]][_0x1552[22]]= _0xdca2x5;this[_0x1552[23]][_0x1552[24]]= _0xdca2x5;this[_0x1552[25]][_0x1552[22]]= _0xdca2x5;this[_0x1552[25]][_0x1552[24]]= _0xdca2x5;this[_0x1552[26]][_0x1552[22]]= _0xdca2x5;this[_0x1552[26]][_0x1552[24]]= _0xdca2x5;this[_0x1552[27]][_0x1552[22]]= _0xdca2x5;this[_0x1552[27]][_0x1552[24]]= _0xdca2x5;this[_0x1552[28]][_0x1552[22]]= _0xdca2x5;this[_0x1552[28]][_0x1552[24]]= _0xdca2x5};if(mxClient[_0x1552[29]]&& ( typeof (document[_0x1552[30]])=== _0x1552[31]|| document[_0x1552[30]]< 9)){mxEvent[_0x1552[33]](this[_0x1552[26]],_0x1552[32],_0xdca2x5);mxEvent[_0x1552[33]](this[_0x1552[27]],_0x1552[32],_0xdca2x5)}else {this[_0x1552[26]][_0x1552[34]]= _0xdca2x5;this[_0x1552[27]][_0x1552[34]]= _0xdca2x5};_0xdca2x3[_0x1552[35]](this[_0x1552[26]]);_0xdca2x3[_0x1552[15]]();_0xdca2x3[_0x1552[1]][_0x1552[38]](_0x1552[36],_0x1552[37]);_0xdca2x3[_0x1552[1]][_0x1552[6]][_0x1552[39]]= _0x1552[40];_0xdca2x3[_0x1552[1]][_0x1552[6]][_0x1552[41]]= _0x1552[42]+ _0xdca2x1[_0x1552[43]]+ _0x1552[44];_0xdca2x3[_0x1552[1]][_0x1552[6]][_0x1552[45]]= _0x1552[46];_0xdca2x3[_0x1552[1]][_0x1552[47]]();var _0xdca2x7=_0xdca2x3[_0x1552[48]];_0xdca2x3[_0x1552[48]]= function(_0xdca2x8,_0xdca2x9,_0xdca2xa){if(_0xdca2x8== mxEvent[_0x1552[49]]){this[_0x1552[1]][_0x1552[47]]()};_0xdca2x7[_0x1552[50]](this,arguments)};this[_0x1552[58]](_0xdca2x3[_0x1552[51]],[_0x1552[52],_0x1552[53],_0x1552[54],_0x1552[55],_0x1552[56]],[[1,1],[0,0],[1,1],[1,_0x1552[57]],[1,_0x1552[57]]],[[0,0],[1,_0x1552[57]],[1,_0x1552[57]],[1,_0x1552[57]],[1,_0x1552[57]]]);_0xdca2x3[_0x1552[59]]= function(_0xdca2x6,_0xdca2xb){var _0xdca2xc=[_0x1552[55]];var _0xdca2xd= new mxEventObject(mxEvent.DOUBLE_CLICK,_0x1552[17],_0xdca2x6,_0x1552[60],_0xdca2xb);this[_0x1552[61]](_0xdca2xd);if(this[_0x1552[62]]()&& !mxEvent[_0x1552[63]](_0xdca2x6)&& !_0xdca2xd[_0x1552[63]]()){if(this[_0x1552[65]]()[_0x1552[64]](_0xdca2xb)){if(_0xdca2xc[_0x1552[69]](_0xdca2xb[_0x1552[68]][_0x1552[67]][_0x1552[66]])>= 0){this[_0x1552[70]](_0xdca2xb)}}else {if(this[_0x1552[65]]()[_0x1552[71]](_0xdca2xb)){console[_0x1552[72]](_0xdca2x4);console[_0x1552[72]](_0xdca2xb);_0xdca2x4[_0x1552[73]]( new GeneralDialog(_0xdca2x4,_0xdca2xb)[_0x1552[1]],320,280,true,true)}};_0xdca2xd[_0x1552[74]]()}};_0xdca2x3[_0x1552[76]][_0x1552[75]]= true;_0xdca2x3[_0x1552[76]][_0x1552[77]]= mxUtils[_0x1552[20]](this,function(_0xdca2xe,_0xdca2xb,_0xdca2x6){this[_0x1552[13]][_0x1552[78]](_0xdca2xe,_0xdca2xb,_0xdca2x6)});_0xdca2x1[_0x1552[80]][_0x1552[35]](this[_0x1552[79]]);mxEvent[_0x1552[82]](document,mxUtils[_0x1552[20]](this,function(_0xdca2x6){_0xdca2x3[_0x1552[76]][_0x1552[81]]()}));if(mxClient[_0x1552[83]]){mxEvent[_0x1552[33]](_0xdca2x3[_0x1552[1]],_0x1552[84],mxUtils[_0x1552[20]](this,function(_0xdca2x6){_0xdca2x3[_0x1552[89]][_0x1552[88]]()[_0x1552[38]](_0x1552[85],_0x1552[86]+ _0xdca2x6[_0x1552[87]]+ _0x1552[44]);_0xdca2x3[_0x1552[89]][_0x1552[91]]()[_0x1552[6]][_0x1552[90]]= _0x1552[7]}));mxEvent[_0x1552[33]](_0xdca2x3[_0x1552[1]],_0x1552[92],mxUtils[_0x1552[20]](this,function(_0xdca2x6){_0xdca2x3[_0x1552[89]][_0x1552[88]]()[_0x1552[93]](_0x1552[85]);_0xdca2x3[_0x1552[94]]= true;_0xdca2x3[_0x1552[95]](_0xdca2x6[_0x1552[87]]);_0xdca2x3[_0x1552[89]][_0x1552[91]]()[_0x1552[6]][_0x1552[90]]= _0x1552[96]}))};var _0xdca2xf=this[_0x1552[97]](_0xdca2x1);this[_0x1552[98]]= function(){return _0xdca2xf};mxEvent[_0x1552[33]](window,_0x1552[99],mxUtils[_0x1552[20]](this,function(){this[_0x1552[15]]();_0xdca2x3[_0x1552[100]]();this[_0x1552[0]][_0x1552[80]][_0x1552[101]](false);this[_0x1552[0]][_0x1552[80]][_0x1552[80]][_0x1552[100]]()}));this[_0x1552[35]]();this[_0x1552[102]]()};EditorUi[_0x1552[10]][_0x1552[103]]= (mxClient[_0x1552[83]])?16:8;EditorUi[_0x1552[10]][_0x1552[104]]= 33;EditorUi[_0x1552[10]][_0x1552[105]]= 36;EditorUi[_0x1552[10]][_0x1552[106]]= 28;EditorUi[_0x1552[10]][_0x1552[107]]= 204;EditorUi[_0x1552[10]][_0x1552[108]]= 190;EditorUi[_0x1552[10]][_0x1552[35]]= function(){this[_0x1552[109]]();this[_0x1552[110]]();var _0xdca2x10=this[_0x1552[12]][_0x1552[112]](_0x1552[111]);var _0xdca2x11=function(){_0xdca2x10[_0x1552[114]](!mxClipboard[_0x1552[113]]())};var _0xdca2x12=mxClipboard[_0x1552[115]];mxClipboard[_0x1552[115]]= function(){_0xdca2x12[_0x1552[50]](this,arguments);_0xdca2x11()};var _0xdca2x13=mxClipboard[_0x1552[116]];mxClipboard[_0x1552[116]]= function(){_0xdca2x13[_0x1552[50]](this,arguments);_0xdca2x11()}};EditorUi[_0x1552[10]][_0x1552[18]]= function(_0xdca2x6){return false};EditorUi[_0x1552[10]][_0x1552[102]]= function(){try{if(window[_0x1552[117]]!= null&& window[_0x1552[117]][_0x1552[118]]!= null){window[_0x1552[117]][_0x1552[118]][_0x1552[130]](mxUtils[_0x1552[20]](this,function(_0xdca2x14,_0xdca2x15){try{var _0xdca2x16=mxUtils[_0x1552[119]](_0xdca2x14);this[_0x1552[0]][_0x1552[121]](_0xdca2x16[_0x1552[120]]);this[_0x1552[0]][_0x1552[122]]= false;this[_0x1552[0]][_0x1552[124]][_0x1552[123]]();if(_0xdca2x15!= null){this[_0x1552[0]][_0x1552[125]]= _0xdca2x15}}catch(e){mxUtils[_0x1552[129]](mxResources[_0x1552[112]](_0x1552[126])+ _0x1552[127]+ e[_0x1552[128]])}}))}}catch(e){}};EditorUi[_0x1552[10]][_0x1552[131]]= function(_0xdca2x14,_0xdca2x15,_0xdca2x17){try{var _0xdca2x16=mxUtils[_0x1552[119]](_0xdca2x14);this[_0x1552[0]][_0x1552[121]](_0xdca2x16[_0x1552[120]]);this[_0x1552[0]][_0x1552[122]]= false;this[_0x1552[0]][_0x1552[124]][_0x1552[123]]();if(_0xdca2x15!= null){this[_0x1552[0]][_0x1552[125]]= _0xdca2x15};if(_0xdca2x17!= null){this[_0x1552[0]][_0x1552[132]]= _0xdca2x17}}catch(e){mxUtils[_0x1552[129]](mxResources[_0x1552[112]](_0x1552[126])+ _0x1552[127]+ e[_0x1552[128]])}};EditorUi[_0x1552[10]][_0x1552[133]]= function(_0xdca2x18){var _0xdca2x1=this[_0x1552[0]];if(_0xdca2x18!= null){var _0xdca2x14=mxUtils[_0x1552[135]](this[_0x1552[0]][_0x1552[134]]());try{if(useLocalStorage){if(localStorage[_0x1552[136]](_0xdca2x18)!= null&& !mxUtils[_0x1552[138]](mxResources[_0x1552[112]](_0x1552[137],[_0xdca2x18]))){return};localStorage[_0x1552[139]](_0xdca2x18,_0xdca2x14);this[_0x1552[0]][_0x1552[142]](mxResources[_0x1552[112]](_0x1552[140])+ _0x1552[141]+ new Date())}else {console[_0x1552[72]](_0xdca2x14[_0x1552[143]]);console[_0x1552[72]](MAX_REQUEST_SIZE);if(_0xdca2x14[_0x1552[143]]< MAX_REQUEST_SIZE){_0xdca2x14= encodeURIComponent(_0xdca2x14);_0xdca2x18= encodeURIComponent(_0xdca2x18);var _0xdca2x19= new XMLHttpRequest();_0xdca2x19[_0x1552[102]](_0x1552[144],SAVE_URL,true);_0xdca2x19[_0x1552[147]](_0x1552[145],_0x1552[146]);_0xdca2x19[_0x1552[147]](_0x1552[148],_0x1552[149]+ _0xdca2x1[_0x1552[132]][_0x1552[150]]);_0xdca2x19[_0x1552[151]]= function(_0xdca2x1a){if(_0xdca2x19[_0x1552[152]]=== 4){if(_0xdca2x19[_0x1552[153]]=== 201){_0xdca2x1[_0x1552[142]](_0x1552[154]+ JSON[_0x1552[157]](_0xdca2x19[_0x1552[156]])[_0x1552[155]]+ _0x1552[158]);setTimeout(function(){window[_0x1552[102]](_0x1552[159]+ JSON[_0x1552[157]](_0xdca2x19[_0x1552[156]])[_0x1552[160]],_0x1552[161])},1500)}else {try{var _0xdca2x1b=JSON[_0x1552[157]](_0xdca2x19[_0x1552[156]]);_0xdca2x1[_0x1552[142]](_0x1552[162]+ _0xdca2x1b[_0x1552[163]][0][_0x1552[128]])}catch(_0xdca2x1a){_0xdca2x1[_0x1552[142]](_0x1552[164]+ _0x1552[165]+ _0xdca2x19[_0x1552[153]]+ _0x1552[141]+ _0xdca2x19[_0x1552[166]]+ _0x1552[44])}}}};_0xdca2x19[_0x1552[167]]= function(_0xdca2x1a){mxUtils[_0x1552[129]](_0xdca2x19[_0x1552[166]])};_0xdca2x19[_0x1552[169]](_0x1552[168]+ _0xdca2x18)}else {mxUtils[_0x1552[129]](mxResources[_0x1552[112]](_0x1552[170]));mxUtils[_0x1552[171]](_0xdca2x14);return}};this[_0x1552[0]][_0x1552[125]]= _0xdca2x18;this[_0x1552[0]][_0x1552[122]]= false}catch(e){this[_0x1552[0]][_0x1552[142]](_0x1552[164])}}else {this[_0x1552[0]][_0x1552[142]](_0x1552[164])}};EditorUi[_0x1552[10]][_0x1552[172]]= function(_0xdca2x18){var _0xdca2x1=this[_0x1552[0]];if(_0xdca2x18!= null){var _0xdca2x14=mxUtils[_0x1552[135]](this[_0x1552[0]][_0x1552[134]]());try{if(useLocalStorage){if(localStorage[_0x1552[136]](_0xdca2x18)!= null&& !mxUtils[_0x1552[138]](mxResources[_0x1552[112]](_0x1552[137],[_0xdca2x18]))){return};localStorage[_0x1552[139]](_0xdca2x18,_0xdca2x14);this[_0x1552[0]][_0x1552[142]](mxResources[_0x1552[112]](_0x1552[140])+ _0x1552[141]+ new Date())}else {console[_0x1552[72]](_0xdca2x14[_0x1552[143]]);console[_0x1552[72]](MAX_REQUEST_SIZE);if(_0xdca2x14[_0x1552[143]]< MAX_REQUEST_SIZE){_0xdca2x14= encodeURIComponent(_0xdca2x14);var _0xdca2x19= new XMLHttpRequest();_0xdca2x19[_0x1552[102]](_0x1552[173],SAVE_URL+ this[_0x1552[0]][_0x1552[132]][_0x1552[160]],true);_0xdca2x19[_0x1552[147]](_0x1552[145],_0x1552[146]);_0xdca2x19[_0x1552[147]](_0x1552[148],_0x1552[149]+ _0xdca2x1[_0x1552[132]][_0x1552[150]]);_0xdca2x19[_0x1552[151]]= function(_0xdca2x1a){if(_0xdca2x19[_0x1552[152]]=== 4){if(_0xdca2x19[_0x1552[153]]=== 200){_0xdca2x1[_0x1552[142]](_0x1552[174]+ JSON[_0x1552[157]](_0xdca2x19[_0x1552[156]])[_0x1552[175]]+ _0x1552[165]+ _0xdca2x19[_0x1552[153]]+ _0x1552[141]+ _0xdca2x19[_0x1552[166]]+ _0x1552[44])}else {try{var _0xdca2x1b=JSON[_0x1552[157]](_0xdca2x19[_0x1552[156]]);_0xdca2x1[_0x1552[142]](_0x1552[176]+ _0xdca2x1b[_0x1552[163]][0][_0x1552[128]])}catch(_0xdca2x1a){_0xdca2x1[_0x1552[142]](_0x1552[177]+ _0x1552[165]+ _0xdca2x19[_0x1552[153]]+ _0x1552[141]+ _0xdca2x19[_0x1552[166]]+ _0x1552[44])}}}};_0xdca2x19[_0x1552[167]]= function(_0xdca2x1a){mxUtils[_0x1552[129]](_0xdca2x19[_0x1552[166]])};_0xdca2x19[_0x1552[169]](_0x1552[178]+ _0xdca2x14)}else {mxUtils[_0x1552[129]](mxResources[_0x1552[112]](_0x1552[170]));mxUtils[_0x1552[171]](_0xdca2x14);return}};this[_0x1552[0]][_0x1552[125]]= _0xdca2x18;this[_0x1552[0]][_0x1552[122]]= false}catch(e){this[_0x1552[0]][_0x1552[142]](_0x1552[179])}}else {this[_0x1552[0]][_0x1552[142]](_0x1552[179])}};EditorUi[_0x1552[10]][_0x1552[180]]= function(_0xdca2x18){var _0xdca2x1=this[_0x1552[0]];console[_0x1552[72]](_0xdca2x18);if(_0xdca2x18!= null){var _0xdca2x14=mxUtils[_0x1552[135]](this[_0x1552[0]][_0x1552[134]]());try{if(useLocalStorage){if(localStorage[_0x1552[136]](_0xdca2x18)!= null&& !mxUtils[_0x1552[138]](mxResources[_0x1552[112]](_0x1552[137],[_0xdca2x18]))){return};localStorage[_0x1552[139]](_0xdca2x18,_0xdca2x14);this[_0x1552[0]][_0x1552[142]](mxResources[_0x1552[112]](_0x1552[140])+ _0x1552[141]+ new Date())}else {console[_0x1552[72]](_0xdca2x14[_0x1552[143]]);console[_0x1552[72]](MAX_REQUEST_SIZE);if(_0xdca2x14[_0x1552[143]]< MAX_REQUEST_SIZE){_0xdca2x14= encodeURIComponent(_0xdca2x14);_0xdca2x18= encodeURIComponent(_0xdca2x18);var _0xdca2x19= new XMLHttpRequest();_0xdca2x19[_0x1552[102]](_0x1552[144],SAVE_URL,true);_0xdca2x19[_0x1552[147]](_0x1552[145],_0x1552[146]);_0xdca2x19[_0x1552[147]](_0x1552[148],_0x1552[149]+ _0xdca2x1[_0x1552[132]][_0x1552[150]]);_0xdca2x19[_0x1552[151]]= function(_0xdca2x1a){if(_0xdca2x19[_0x1552[152]]=== 4){if(_0xdca2x19[_0x1552[153]]=== 201){_0xdca2x1[_0x1552[142]](_0x1552[154]+ JSON[_0x1552[157]](_0xdca2x19[_0x1552[156]])[_0x1552[155]]+ _0x1552[158]);setTimeout(function(){window[_0x1552[102]](_0x1552[181]+ JSON[_0x1552[157]](_0xdca2x19[_0x1552[156]])[_0x1552[160]],_0x1552[161])},1500)}else {try{var _0xdca2x1b=JSON[_0x1552[157]](_0xdca2x19[_0x1552[156]]);_0xdca2x1[_0x1552[142]](_0x1552[182]+ _0xdca2x1b[_0x1552[163]][0][_0x1552[128]])}catch(_0xdca2x1a){_0xdca2x1[_0x1552[142]](_0x1552[183]+ _0x1552[165]+ _0xdca2x19[_0x1552[153]]+ _0x1552[141]+ _0xdca2x19[_0x1552[166]]+ _0x1552[44])}}}};_0xdca2x19[_0x1552[167]]= function(_0xdca2x1a){mxUtils[_0x1552[129]](_0xdca2x19[_0x1552[166]])};_0xdca2x19[_0x1552[169]](_0x1552[184]+ _0xdca2x18+ _0x1552[185]+ _0xdca2x14+ _0x1552[186]+ _0xdca2x14)}else {mxUtils[_0x1552[129]](mxResources[_0x1552[112]](_0x1552[170]));mxUtils[_0x1552[171]](_0xdca2x14);return}};this[_0x1552[0]][_0x1552[122]]= false}catch(e){this[_0x1552[0]][_0x1552[142]](_0x1552[179])}}else {this[_0x1552[0]][_0x1552[142]](_0x1552[179])}};EditorUi[_0x1552[10]][_0x1552[187]]= function(_0xdca2x1c,_0xdca2x1d){var _0xdca2x3=this[_0x1552[0]][_0x1552[4]];_0xdca2x1c= null!= _0xdca2x1c?_0xdca2x1c:_0xdca2x3[_0x1552[189]][_0x1552[188]]();_0xdca2x1d= null!= _0xdca2x1d?_0xdca2x1d:{};for(var _0xdca2x1e=!0,_0xdca2x1f=_0xdca2x3[_0x1552[189]][_0x1552[190]](_0xdca2x1c),_0xdca2x1a=0;_0xdca2x1a< _0xdca2x1f;_0xdca2x1a++){var _0xdca2x20=_0xdca2x3[_0x1552[189]][_0x1552[191]](_0xdca2x1c,_0xdca2x1a),_0xdca2x21=_0xdca2x1d;_0xdca2x3[_0x1552[192]](_0xdca2x20)&& (_0xdca2x21= {});_0xdca2x21= this[_0x1552[187]](_0xdca2x20,_0xdca2x21);null!= _0xdca2x21?_0xdca2x3[_0x1552[194]](_0xdca2x20,_0xdca2x21[_0x1552[137]](/\n/g,_0x1552[193])):_0xdca2x3[_0x1552[194]](_0xdca2x20,null);_0xdca2x1e= _0xdca2x1e&& null== _0xdca2x21};_0xdca2x1f= _0x1552[195];if(_0xdca2x3[_0x1552[189]][_0x1552[71]](_0xdca2x1c)){switch(_0xdca2x1c[_0x1552[67]][_0x1552[203]]){case _0x1552[55]:_0xdca2x1f= (_0xdca2x1c[_0x1552[67]][_0x1552[196]](_0x1552[55])!== _0x1552[195])?_0x1552[195]:_0x1552[197]+ _0x1552[198];_0xdca2x1f+= (_0xdca2x1c[_0x1552[67]][_0x1552[196]](_0x1552[199])!== _0x1552[195])?_0x1552[195]:_0x1552[200]+ _0x1552[198];break;case _0x1552[54]:_0xdca2x1f= (_0xdca2x1c[_0x1552[67]][_0x1552[196]](_0x1552[55])!== _0x1552[195])?_0x1552[195]:_0x1552[197]+ _0x1552[198];_0xdca2x1f+= (_0xdca2x1c[_0x1552[67]][_0x1552[196]](_0x1552[199])!== _0x1552[195])?_0x1552[195]:_0x1552[200]+ _0x1552[198];break;case _0x1552[52]:_0xdca2x1f= this[_0x1552[201]](_0x1552[52])?_0x1552[195]:_0x1552[202]+ _0x1552[198];_0xdca2x1f+= (_0xdca2x1c[_0x1552[67]][_0x1552[196]](_0x1552[199])!== _0x1552[195])?_0x1552[195]:_0x1552[200]+ _0x1552[198];break}};if(_0xdca2x3[_0x1552[189]][_0x1552[64]](_0xdca2x1c)){var _0xdca2x22=_0xdca2x3[_0x1552[189]][_0x1552[205]](_0xdca2x1c[_0x1552[68]][_0x1552[204]]());switch(_0xdca2x22[_0x1552[67]][_0x1552[203]]){case _0x1552[55]:var _0xdca2x23=String(_0xdca2x1c[_0x1552[206]]());console[_0x1552[72]](_0xdca2x23);if(_0xdca2x23=== _0x1552[207]|| _0xdca2x23=== _0x1552[31]){_0xdca2x1f= _0x1552[208]+ _0x1552[198]}else {var _0xdca2x24=_0xdca2x23[_0x1552[210]](_0x1552[209]);_0xdca2x24[_0x1552[214]](function(_0xdca2x25,_0xdca2x26){_0xdca2x1f= _0xdca2x1f+ ((_0xdca2x25[_0x1552[211]]()!== _0x1552[195])?_0x1552[195]:_0x1552[212]+ (_0xdca2x26+ 1)+ _0x1552[213]+ _0x1552[198])})};break}};_0xdca2x3[_0x1552[215]](_0xdca2x1c)&& !_0xdca2x1e&& (_0xdca2x1f+= (mxResources[_0x1552[112]](_0xdca2x3[_0x1552[216]])|| _0xdca2x3[_0x1552[216]])+ _0x1552[198]);_0xdca2x1f= _0xdca2x3[_0x1552[189]][_0x1552[64]](_0xdca2x1c)?_0xdca2x1f+ (_0xdca2x3[_0x1552[218]](_0xdca2x1c,_0xdca2x3[_0x1552[189]][_0x1552[217]](_0xdca2x1c,!0),_0xdca2x3[_0x1552[189]][_0x1552[217]](_0xdca2x1c,!1))|| _0x1552[195]):_0xdca2x1f+ (_0xdca2x3[_0x1552[219]](_0xdca2x1c)|| _0x1552[195]);_0xdca2x1a= _0xdca2x3[_0x1552[220]](_0xdca2x1c,_0xdca2x1d);null!= _0xdca2x1a&& (_0xdca2x1f+= _0xdca2x1a);null== _0xdca2x3[_0x1552[189]][_0x1552[221]](_0xdca2x1c)&& _0xdca2x3[_0x1552[89]][_0x1552[187]]();return 0< _0xdca2x1f[_0x1552[143]]|| !_0xdca2x1e?_0xdca2x1f:null};EditorUi[_0x1552[10]][_0x1552[201]]= function(_0xdca2x27){var _0xdca2x3=this[_0x1552[0]][_0x1552[4]];var _0xdca2x28=_0xdca2x3[_0x1552[222]]();var _0xdca2x29=0;_0xdca2x28[_0x1552[223]][_0x1552[214]](function(_0xdca2x2a){if(_0xdca2x3[_0x1552[189]][_0x1552[71]](_0xdca2x2a)&& _0xdca2x2a[_0x1552[67]][_0x1552[203]]== _0xdca2x27){_0xdca2x29++}});return _0xdca2x29> 1?false:true};EditorUi[_0x1552[10]][_0x1552[224]]= function(_0xdca2x18){var _0xdca2x1=this[_0x1552[0]];if(_0xdca2x18!= null){var _0xdca2x1b=this[_0x1552[187]]();if(_0xdca2x1b=== null){var _0xdca2x14=mxUtils[_0x1552[135]](this[_0x1552[0]][_0x1552[134]]());try{if(useLocalStorage){if(localStorage[_0x1552[136]](_0xdca2x18)!= null&& !mxUtils[_0x1552[138]](mxResources[_0x1552[112]](_0x1552[137],[_0xdca2x18]))){return};localStorage[_0x1552[139]](_0xdca2x18,_0xdca2x14);this[_0x1552[0]][_0x1552[142]](mxResources[_0x1552[112]](_0x1552[140])+ _0x1552[141]+ new Date())}else {console[_0x1552[72]](_0xdca2x14[_0x1552[143]]);console[_0x1552[72]](MAX_REQUEST_SIZE);if(_0xdca2x14[_0x1552[143]]< MAX_REQUEST_SIZE){_0xdca2x14= encodeURIComponent(_0xdca2x14);var _0xdca2x19= new XMLHttpRequest();_0xdca2x19[_0x1552[102]](_0x1552[173],SAVE_URL+ this[_0x1552[0]][_0x1552[132]][_0x1552[160]],true);_0xdca2x19[_0x1552[147]](_0x1552[145],_0x1552[146]);_0xdca2x19[_0x1552[147]](_0x1552[148],_0x1552[149]+ _0xdca2x1[_0x1552[132]][_0x1552[150]]);_0xdca2x19[_0x1552[151]]= function(_0xdca2x1a){if(_0xdca2x19[_0x1552[152]]=== 4){if(_0xdca2x19[_0x1552[153]]=== 200){_0xdca2x1[_0x1552[142]](_0x1552[225]+ JSON[_0x1552[157]](_0xdca2x19[_0x1552[156]])[_0x1552[175]]+ _0x1552[165]+ _0xdca2x19[_0x1552[153]]+ _0x1552[141]+ _0xdca2x19[_0x1552[166]]+ _0x1552[44])}else {try{var _0xdca2x1b=JSON[_0x1552[157]](_0xdca2x19[_0x1552[156]]);_0xdca2x1[_0x1552[142]](_0x1552[226]+ _0xdca2x1b[_0x1552[163]][0][_0x1552[128]])}catch(_0xdca2x1a){_0xdca2x1[_0x1552[142]](_0x1552[227]+ _0x1552[165]+ _0xdca2x19[_0x1552[153]]+ _0x1552[141]+ _0xdca2x19[_0x1552[166]]+ _0x1552[44])}}}};_0xdca2x19[_0x1552[167]]= function(_0xdca2x1a){mxUtils[_0x1552[129]](_0xdca2x19[_0x1552[166]])};_0xdca2x19[_0x1552[169]](_0x1552[178]+ _0xdca2x14+ _0x1552[186]+ _0xdca2x14)}else {mxUtils[_0x1552[129]](mxResources[_0x1552[112]](_0x1552[170]));mxUtils[_0x1552[171]](_0xdca2x14);return}};this[_0x1552[0]][_0x1552[125]]= _0xdca2x18;this[_0x1552[0]][_0x1552[122]]= false}catch(e){this[_0x1552[0]][_0x1552[142]](_0x1552[228])}}else {_0xdca2x1[_0x1552[142]](_0x1552[226])}}else {this[_0x1552[0]][_0x1552[142]](_0x1552[228])}};EditorUi[_0x1552[10]][_0x1552[229]]= function(_0xdca2x18){var _0xdca2x1=this[_0x1552[0]];if(_0xdca2x18!= null){try{var _0xdca2x19= new XMLHttpRequest();_0xdca2x19[_0x1552[102]](_0x1552[144],VARIABLE_URL,true);_0xdca2x19[_0x1552[147]](_0x1552[145],_0x1552[146]);_0xdca2x19[_0x1552[147]](_0x1552[148],_0x1552[149]+ _0xdca2x1[_0x1552[132]][_0x1552[150]]);_0xdca2x19[_0x1552[151]]= function(_0xdca2x1a){if(_0xdca2x19[_0x1552[152]]=== 4){if(_0xdca2x19[_0x1552[153]]=== 201){_0xdca2x1[_0x1552[142]](_0x1552[230]+ JSON[_0x1552[157]](_0xdca2x19[_0x1552[156]])[_0x1552[231]]+ _0x1552[165]+ _0xdca2x19[_0x1552[153]]+ _0x1552[141]+ _0xdca2x19[_0x1552[166]]+ _0x1552[44])}else {try{var _0xdca2x1b=JSON[_0x1552[157]](_0xdca2x19[_0x1552[156]]);_0xdca2x1[_0x1552[142]](_0x1552[232]+ _0xdca2x1b[_0x1552[163]][0][_0x1552[128]])}catch(_0xdca2x1a){_0xdca2x1[_0x1552[142]](_0x1552[233]+ _0x1552[165]+ _0xdca2x19[_0x1552[153]]+ _0x1552[141]+ _0xdca2x19[_0x1552[166]]+ _0x1552[44])}}}};_0xdca2x19[_0x1552[167]]= function(_0xdca2x1a){mxUtils[_0x1552[129]](_0xdca2x19[_0x1552[166]])};_0xdca2x19[_0x1552[169]](_0x1552[234]+ _0xdca2x18)}catch(e){this[_0x1552[0]][_0x1552[142]](_0x1552[233])}}else {this[_0x1552[0]][_0x1552[142]](_0x1552[233])}};EditorUi[_0x1552[10]][_0x1552[235]]= function(_0xdca2x2b){var _0xdca2x2c=(_0xdca2x2b!= null)?_0xdca2x2b:window[_0x1552[237]][_0x1552[236]];var _0xdca2x2d=(_0xdca2x2c[_0x1552[69]](_0x1552[238])> 0)?1:0;for(var _0xdca2x26 in urlParams){if(_0xdca2x2d== 0){_0xdca2x2c+= _0x1552[238]}else {_0xdca2x2c+= _0x1552[239]};_0xdca2x2c+= _0xdca2x26+ _0x1552[240]+ urlParams[_0xdca2x26];_0xdca2x2d++};return _0xdca2x2c};EditorUi[_0x1552[10]][_0x1552[109]]= function(){var _0xdca2x2e=this[_0x1552[12]][_0x1552[112]](_0x1552[241]);var _0xdca2x2f=this[_0x1552[12]][_0x1552[112]](_0x1552[242]);var _0xdca2x30=this[_0x1552[0]][_0x1552[124]];var _0xdca2x31=function(){_0xdca2x2e[_0x1552[114]](_0xdca2x30[_0x1552[243]]());_0xdca2x2f[_0x1552[114]](_0xdca2x30[_0x1552[244]]())};_0xdca2x30[_0x1552[33]](mxEvent.ADD,_0xdca2x31);_0xdca2x30[_0x1552[33]](mxEvent.UNDO,_0xdca2x31);_0xdca2x30[_0x1552[33]](mxEvent.REDO,_0xdca2x31);_0xdca2x30[_0x1552[33]](mxEvent.CLEAR,_0xdca2x31);_0xdca2x31()};EditorUi[_0x1552[10]][_0x1552[110]]= function(){var _0xdca2x32=mxUtils[_0x1552[20]](this,function(){var _0xdca2x3=this[_0x1552[0]][_0x1552[4]];var _0xdca2x33=!_0xdca2x3[_0x1552[245]]();var _0xdca2x34=false;var _0xdca2x35=false;var _0xdca2x36=_0xdca2x3[_0x1552[246]]();if(_0xdca2x36!= null){for(var _0xdca2x37=0;_0xdca2x37< _0xdca2x36[_0x1552[143]];_0xdca2x37++){var _0xdca2xb=_0xdca2x36[_0xdca2x37];if(_0xdca2x3[_0x1552[65]]()[_0x1552[64]](_0xdca2xb)){_0xdca2x35= true};if(_0xdca2x3[_0x1552[65]]()[_0x1552[71]](_0xdca2xb)){_0xdca2x34= true};if(_0xdca2x35&& _0xdca2x34){break}}};var _0xdca2x38=[_0x1552[115],_0x1552[116],_0x1552[247],_0x1552[248],_0x1552[249],_0x1552[250],_0x1552[6],_0x1552[251],_0x1552[252],_0x1552[253],_0x1552[254],_0x1552[255],_0x1552[256],_0x1552[257],_0x1552[258]];for(var _0xdca2x37=0;_0xdca2x37< _0xdca2x38[_0x1552[143]];_0xdca2x37++){this[_0x1552[12]][_0x1552[112]](_0xdca2x38[_0xdca2x37])[_0x1552[114]](_0xdca2x33)};this[_0x1552[12]][_0x1552[112]](_0x1552[259])[_0x1552[114]](_0xdca2x35);this[_0x1552[12]][_0x1552[112]](_0x1552[260])[_0x1552[114]](_0xdca2x34);this[_0x1552[12]][_0x1552[112]](_0x1552[261])[_0x1552[114]](_0xdca2x34);this[_0x1552[12]][_0x1552[112]](_0x1552[263])[_0x1552[114]](_0xdca2x3[_0x1552[262]]()> 1);this[_0x1552[12]][_0x1552[112]](_0x1552[265])[_0x1552[114]](_0xdca2x3[_0x1552[262]]()== 1&& _0xdca2x3[_0x1552[65]]()[_0x1552[190]](_0xdca2x3[_0x1552[264]]())> 0);var _0xdca2x39=_0xdca2x34&& _0xdca2x3[_0x1552[262]]()== 1;this[_0x1552[12]][_0x1552[112]](_0x1552[266])[_0x1552[114]](_0xdca2x39&& _0xdca2x3[_0x1552[65]]()[_0x1552[71]](_0xdca2x3[_0x1552[65]]()[_0x1552[221]](_0xdca2x3[_0x1552[264]]())));var _0xdca2x3a=[_0x1552[267],_0x1552[268],_0x1552[269],_0x1552[270],_0x1552[271],_0x1552[272],_0x1552[273],_0x1552[274],_0x1552[275]];for(var _0xdca2x37=0;_0xdca2x37< _0xdca2x3a[_0x1552[143]];_0xdca2x37++){this[_0x1552[13]][_0x1552[112]](_0xdca2x3a[_0xdca2x37])[_0x1552[114]](_0xdca2x33)};_0xdca2x3a= [_0x1552[276],_0x1552[277],_0x1552[278]];for(var _0xdca2x37=0;_0xdca2x37< _0xdca2x3a[_0x1552[143]];_0xdca2x37++){this[_0x1552[13]][_0x1552[112]](_0xdca2x3a[_0xdca2x37])[_0x1552[114]](_0xdca2x35)};this[_0x1552[12]][_0x1552[112]](_0x1552[279])[_0x1552[114]](_0xdca2x35);this[_0x1552[13]][_0x1552[112]](_0x1552[280])[_0x1552[114]](_0xdca2x3[_0x1552[262]]()> 1);this[_0x1552[13]][_0x1552[112]](_0x1552[283])[_0x1552[114]](_0xdca2x34|| (_0xdca2x35&& _0xdca2x3[_0x1552[282]](_0xdca2x3[_0x1552[89]][_0x1552[281]](_0xdca2x3[_0x1552[264]]()))));this[_0x1552[13]][_0x1552[112]](_0x1552[286])[_0x1552[114]](_0xdca2x3[_0x1552[284]]&& ((_0xdca2x3[_0x1552[89]][_0x1552[285]]!= null)|| (_0xdca2x3[_0x1552[262]]()== 1&& _0xdca2x3[_0x1552[192]](_0xdca2x3[_0x1552[264]]()))));this[_0x1552[12]][_0x1552[112]](_0x1552[287])[_0x1552[114]](_0xdca2x3[_0x1552[89]][_0x1552[285]]!= null);this[_0x1552[12]][_0x1552[112]](_0x1552[288])[_0x1552[114]](_0xdca2x3[_0x1552[89]][_0x1552[285]]!= null);var _0xdca2x3b=_0xdca2x3[_0x1552[262]]()== 1&& _0xdca2x3[_0x1552[192]](_0xdca2x3[_0x1552[264]]());this[_0x1552[12]][_0x1552[112]](_0x1552[289])[_0x1552[114]](_0xdca2x3b);this[_0x1552[12]][_0x1552[112]](_0x1552[290])[_0x1552[114]](_0xdca2x3b);this[_0x1552[12]][_0x1552[112]](_0x1552[291])[_0x1552[114]](_0xdca2x3b);this[_0x1552[12]][_0x1552[112]](_0x1552[292])[_0x1552[114]](_0xdca2x3[_0x1552[262]]()== 1);this[_0x1552[12]][_0x1552[112]](_0x1552[294])[_0x1552[114]](_0xdca2x3[_0x1552[262]]()== 1&& _0xdca2x3[_0x1552[293]](_0xdca2x3[_0x1552[264]]())!= null)});this[_0x1552[0]][_0x1552[4]][_0x1552[295]]()[_0x1552[33]](mxEvent.CHANGE,_0xdca2x32);_0xdca2x32()};EditorUi[_0x1552[10]][_0x1552[15]]= function(){var _0xdca2x3c=mxClient[_0x1552[29]]&& (document[_0x1552[30]]== null|| document[_0x1552[30]]== 5);var _0xdca2x3d=this[_0x1552[1]][_0x1552[296]];var _0xdca2x3e=this[_0x1552[1]][_0x1552[297]];if(this[_0x1552[1]]== document[_0x1552[21]]){_0xdca2x3d= document[_0x1552[21]][_0x1552[296]]|| document[_0x1552[120]][_0x1552[296]];_0xdca2x3e= (_0xdca2x3c)?document[_0x1552[21]][_0x1552[297]]|| document[_0x1552[120]][_0x1552[297]]:document[_0x1552[120]][_0x1552[297]]};var _0xdca2x3f=Math[_0x1552[299]](0,Math[_0x1552[298]](this[_0x1552[107]],_0xdca2x3d- this[_0x1552[103]]- 20));var _0xdca2x40=Math[_0x1552[299]](0,Math[_0x1552[298]](this[_0x1552[108]],_0xdca2x3e- this[_0x1552[104]]- this[_0x1552[105]]- this[_0x1552[106]]- this[_0x1552[103]]- 1));this[_0x1552[23]][_0x1552[6]][_0x1552[300]]= this[_0x1552[104]]+ _0x1552[301];this[_0x1552[25]][_0x1552[6]][_0x1552[302]]= this[_0x1552[104]]+ _0x1552[301];this[_0x1552[25]][_0x1552[6]][_0x1552[300]]= this[_0x1552[105]]+ _0x1552[301];var _0xdca2x41=this[_0x1552[104]]+ this[_0x1552[105]];if(!mxClient[_0x1552[303]]){_0xdca2x41+= 1};this[_0x1552[27]][_0x1552[6]][_0x1552[302]]= _0xdca2x41+ _0x1552[301];this[_0x1552[27]][_0x1552[6]][_0x1552[304]]= _0xdca2x3f+ _0x1552[301];this[_0x1552[79]][_0x1552[6]][_0x1552[304]]= _0xdca2x3f+ _0x1552[301];this[_0x1552[79]][_0x1552[6]][_0x1552[300]]= _0xdca2x40+ _0x1552[301];this[_0x1552[79]][_0x1552[6]][_0x1552[305]]= this[_0x1552[106]]+ _0x1552[301];this[_0x1552[26]][_0x1552[6]][_0x1552[306]]= (_0xdca2x3f+ this[_0x1552[103]])+ _0x1552[301];this[_0x1552[26]][_0x1552[6]][_0x1552[302]]= this[_0x1552[27]][_0x1552[6]][_0x1552[302]];this[_0x1552[28]][_0x1552[6]][_0x1552[300]]= this[_0x1552[106]]+ _0x1552[301];this[_0x1552[28]][_0x1552[6]][_0x1552[307]]= _0x1552[308];this[_0x1552[309]][_0x1552[6]][_0x1552[302]]= this[_0x1552[27]][_0x1552[6]][_0x1552[302]];this[_0x1552[309]][_0x1552[6]][_0x1552[305]]= this[_0x1552[79]][_0x1552[6]][_0x1552[305]];this[_0x1552[309]][_0x1552[6]][_0x1552[306]]= _0xdca2x3f+ _0x1552[301];this[_0x1552[310]][_0x1552[6]][_0x1552[304]]= this[_0x1552[27]][_0x1552[6]][_0x1552[304]];this[_0x1552[310]][_0x1552[6]][_0x1552[305]]= (_0xdca2x40+ this[_0x1552[106]])+ _0x1552[301];if(_0xdca2x3c){this[_0x1552[23]][_0x1552[6]][_0x1552[304]]= _0xdca2x3d+ _0x1552[301];this[_0x1552[25]][_0x1552[6]][_0x1552[304]]= this[_0x1552[23]][_0x1552[6]][_0x1552[304]];var _0xdca2x42=(_0xdca2x3e- _0xdca2x40- this[_0x1552[103]]- this[_0x1552[106]]- this[_0x1552[104]]- this[_0x1552[105]]);this[_0x1552[27]][_0x1552[6]][_0x1552[300]]= _0xdca2x42+ _0x1552[301];this[_0x1552[26]][_0x1552[6]][_0x1552[304]]= (_0xdca2x3d- _0xdca2x3f- this[_0x1552[103]])+ _0x1552[301];var _0xdca2x43=(_0xdca2x3e- this[_0x1552[106]]- this[_0x1552[104]]- this[_0x1552[105]]);this[_0x1552[26]][_0x1552[6]][_0x1552[300]]= _0xdca2x43+ _0x1552[301];this[_0x1552[28]][_0x1552[6]][_0x1552[304]]= this[_0x1552[23]][_0x1552[6]][_0x1552[304]];this[_0x1552[309]][_0x1552[6]][_0x1552[300]]= _0xdca2x43+ _0x1552[301]}else {this[_0x1552[27]][_0x1552[6]][_0x1552[305]]= (_0xdca2x40+ this[_0x1552[103]]+ this[_0x1552[106]])+ _0x1552[301];this[_0x1552[26]][_0x1552[6]][_0x1552[305]]= this[_0x1552[79]][_0x1552[6]][_0x1552[305]]}};EditorUi[_0x1552[10]][_0x1552[14]]= function(){this[_0x1552[23]]= this[_0x1552[312]](_0x1552[311]);this[_0x1552[25]]= this[_0x1552[312]](_0x1552[313]);this[_0x1552[27]]= this[_0x1552[312]](_0x1552[314]);this[_0x1552[79]]= this[_0x1552[312]](_0x1552[315]);this[_0x1552[26]]= this[_0x1552[312]](_0x1552[316]);this[_0x1552[28]]= this[_0x1552[312]](_0x1552[317]);this[_0x1552[309]]= this[_0x1552[312]](_0x1552[318]);this[_0x1552[310]]= this[_0x1552[312]](_0x1552[319]);this[_0x1552[23]][_0x1552[6]][_0x1552[302]]= _0x1552[320];this[_0x1552[23]][_0x1552[6]][_0x1552[306]]= _0x1552[320];this[_0x1552[23]][_0x1552[6]][_0x1552[321]]= _0x1552[320];this[_0x1552[25]][_0x1552[6]][_0x1552[306]]= _0x1552[320];this[_0x1552[25]][_0x1552[6]][_0x1552[321]]= _0x1552[320];this[_0x1552[27]][_0x1552[6]][_0x1552[306]]= _0x1552[320];this[_0x1552[79]][_0x1552[6]][_0x1552[306]]= _0x1552[320];this[_0x1552[26]][_0x1552[6]][_0x1552[321]]= _0x1552[320];this[_0x1552[28]][_0x1552[6]][_0x1552[306]]= _0x1552[320];this[_0x1552[28]][_0x1552[6]][_0x1552[321]]= _0x1552[320];this[_0x1552[28]][_0x1552[6]][_0x1552[305]]= _0x1552[320];this[_0x1552[310]][_0x1552[6]][_0x1552[306]]= _0x1552[320];this[_0x1552[310]][_0x1552[6]][_0x1552[300]]= this[_0x1552[103]]+ _0x1552[301];this[_0x1552[309]][_0x1552[6]][_0x1552[304]]= this[_0x1552[103]]+ _0x1552[301]};EditorUi[_0x1552[10]][_0x1552[16]]= function(){this[_0x1552[322]]= this[_0x1552[13]][_0x1552[324]](this[_0x1552[312]](_0x1552[323]));this[_0x1552[23]][_0x1552[325]](this[_0x1552[322]][_0x1552[1]]);this[_0x1552[326]]= this[_0x1552[328]](this[_0x1552[312]](_0x1552[327]));this[_0x1552[25]][_0x1552[325]](this[_0x1552[326]][_0x1552[1]]);this[_0x1552[329]]= this[_0x1552[330]](this[_0x1552[27]]);this[_0x1552[28]][_0x1552[325]](this[_0x1552[331]]());this[_0x1552[332]]= this[_0x1552[333]]();this[_0x1552[0]][_0x1552[33]](_0x1552[334],mxUtils[_0x1552[20]](this,function(){this[_0x1552[336]](this[_0x1552[0]][_0x1552[335]]())}));this[_0x1552[336]](this[_0x1552[0]][_0x1552[335]]());this[_0x1552[322]][_0x1552[1]][_0x1552[325]](this[_0x1552[332]]);this[_0x1552[1]][_0x1552[325]](this[_0x1552[23]]);this[_0x1552[1]][_0x1552[325]](this[_0x1552[25]]);this[_0x1552[1]][_0x1552[325]](this[_0x1552[27]]);this[_0x1552[1]][_0x1552[325]](this[_0x1552[79]]);this[_0x1552[1]][_0x1552[325]](this[_0x1552[26]]);this[_0x1552[1]][_0x1552[325]](this[_0x1552[28]]);this[_0x1552[1]][_0x1552[325]](this[_0x1552[309]]);this[_0x1552[1]][_0x1552[325]](this[_0x1552[310]]);this[_0x1552[337]](this[_0x1552[309]],true,0,mxUtils[_0x1552[20]](this,function(_0xdca2x44){this[_0x1552[107]]= _0xdca2x44;this[_0x1552[15]]();this[_0x1552[0]][_0x1552[4]][_0x1552[100]]();this[_0x1552[0]][_0x1552[80]][_0x1552[101]](false);this[_0x1552[0]][_0x1552[80]][_0x1552[80]][_0x1552[100]]()}));this[_0x1552[337]](this[_0x1552[310]],false,this[_0x1552[106]],mxUtils[_0x1552[20]](this,function(_0xdca2x44){this[_0x1552[108]]= _0xdca2x44;this[_0x1552[15]]();this[_0x1552[0]][_0x1552[80]][_0x1552[101]](false);this[_0x1552[0]][_0x1552[80]][_0x1552[80]][_0x1552[100]]()}))};EditorUi[_0x1552[10]][_0x1552[333]]= function(){var _0xdca2x2=document[_0x1552[339]](_0x1552[338]);_0xdca2x2[_0x1552[340]]= _0x1552[341];return _0xdca2x2};EditorUi[_0x1552[10]][_0x1552[333]]= function(){var _0xdca2x2=document[_0x1552[339]](_0x1552[338]);_0xdca2x2[_0x1552[340]]= _0x1552[341];return _0xdca2x2};EditorUi[_0x1552[10]][_0x1552[336]]= function(_0xdca2x44){this[_0x1552[332]][_0x1552[342]]= _0xdca2x44};EditorUi[_0x1552[10]][_0x1552[328]]= function(_0xdca2x2){return new Toolbar(this,_0xdca2x2)};EditorUi[_0x1552[10]][_0x1552[330]]= function(_0xdca2x2){return new Sidebar(this,_0xdca2x2)};EditorUi[_0x1552[10]][_0x1552[331]]= function(){return this[_0x1552[312]](_0x1552[343])};EditorUi[_0x1552[10]][_0x1552[312]]= function(_0xdca2x45){var _0xdca2x46=document[_0x1552[339]](_0x1552[344]);_0xdca2x46[_0x1552[340]]= _0xdca2x45;return _0xdca2x46};EditorUi[_0x1552[10]][_0x1552[345]]= function(_0xdca2x45){var _0xdca2x46=document[_0x1552[339]](_0xdca2x45);return _0xdca2x46};EditorUi[_0x1552[10]][_0x1552[346]]= function(_0xdca2x45){var _0xdca2x46=document[_0x1552[339]](_0x1552[347]);_0xdca2x46[_0x1552[340]]= _0xdca2x45;return _0xdca2x46};EditorUi[_0x1552[10]][_0x1552[337]]= function(_0xdca2x46,_0xdca2x47,_0xdca2x48,_0xdca2x49){var _0xdca2x4a=null;var _0xdca2x4b=null;function _0xdca2x4c(){return parseInt(((_0xdca2x47)?_0xdca2x46[_0x1552[6]][_0x1552[306]]:_0xdca2x46[_0x1552[6]][_0x1552[305]]))}function _0xdca2x4d(_0xdca2x6){if(_0xdca2x4a!= null){var _0xdca2x4e= new mxPoint(mxEvent[_0x1552[348]](_0xdca2x6),mxEvent[_0x1552[349]](_0xdca2x6));_0xdca2x49(Math[_0x1552[299]](0,_0xdca2x4b+ ((_0xdca2x47)?(_0xdca2x4e[_0x1552[350]]- _0xdca2x4a[_0x1552[350]]):(_0xdca2x4a[_0x1552[351]]- _0xdca2x4e[_0x1552[351]]))- _0xdca2x48));mxEvent[_0x1552[74]](_0xdca2x6)}}function _0xdca2x4f(_0xdca2x6){_0xdca2x4d(_0xdca2x6);_0xdca2x4a= null;_0xdca2x4b= null}mxEvent[_0x1552[82]](_0xdca2x46,function(_0xdca2x6){_0xdca2x4a= new mxPoint(mxEvent[_0x1552[348]](_0xdca2x6),mxEvent[_0x1552[349]](_0xdca2x6));_0xdca2x4b= _0xdca2x4c();mxEvent[_0x1552[74]](_0xdca2x6)});mxEvent[_0x1552[33]](document,_0x1552[352],_0xdca2x4d);mxEvent[_0x1552[33]](document,_0x1552[353],_0xdca2x4d);mxEvent[_0x1552[33]](document,_0x1552[354],_0xdca2x4f);mxEvent[_0x1552[33]](document,_0x1552[355],_0xdca2x4f)};EditorUi[_0x1552[10]][_0x1552[73]]= function(_0xdca2x46,_0xdca2x3d,_0xdca2x3e,_0xdca2x50,_0xdca2x51,_0xdca2x52){this[_0x1552[356]]();this[_0x1552[357]]= new Dialog(this,_0xdca2x46,_0xdca2x3d,(mxClient[_0x1552[358]])?_0xdca2x3e- 12:_0xdca2x3e,_0xdca2x50,_0xdca2x51,_0xdca2x52)};EditorUi[_0x1552[10]][_0x1552[356]]= function(){if(this[_0x1552[357]]!= null){this[_0x1552[357]][_0x1552[359]]();this[_0x1552[357]]= null;this[_0x1552[0]][_0x1552[4]][_0x1552[1]][_0x1552[47]]()}};EditorUi[_0x1552[10]][_0x1552[360]]= function(_0xdca2x53){if(!_0xdca2x53&& this[_0x1552[0]][_0x1552[125]]!= null){this[_0x1552[172]](this[_0x1552[0]][_0x1552[361]]())}else {this[_0x1552[73]]( new SaveDialog(this)[_0x1552[1]],300,100,true,true)}};EditorUi[_0x1552[10]][_0x1552[362]]= function(_0xdca2x53){if(!_0xdca2x53&& this[_0x1552[0]][_0x1552[125]]!= null){this[_0x1552[224]](this[_0x1552[0]][_0x1552[361]]())}else {}};EditorUi[_0x1552[10]][_0x1552[363]]= function(_0xdca2x54,_0xdca2x55,_0xdca2x56){var _0xdca2x3=this[_0x1552[0]][_0x1552[4]];var _0xdca2xb=_0xdca2x3[_0x1552[264]]();_0xdca2x55= this[_0x1552[364]]!= null?this[_0x1552[364]]:_0xdca2x55;_0xdca2x3[_0x1552[65]]()[_0x1552[365]]();try{_0xdca2x54[_0x1552[366]](_0xdca2x3[_0x1552[222]](),_0xdca2xb)}catch(e){throw e}finally{if(_0xdca2x55&& navigator[_0x1552[368]][_0x1552[69]](_0x1552[367])< 0){var _0xdca2x57= new mxMorphing(_0xdca2x3);_0xdca2x57[_0x1552[33]](mxEvent.DONE,mxUtils[_0x1552[20]](this,function(){_0xdca2x3[_0x1552[65]]()[_0x1552[369]]()}));_0xdca2x57[_0x1552[370]]()}else {_0xdca2x3[_0x1552[65]]()[_0x1552[369]]()}}};EditorUi[_0x1552[10]][_0x1552[97]]= function(_0xdca2x1){var _0xdca2x3=this[_0x1552[0]][_0x1552[4]];var _0xdca2xf= new mxKeyHandler(_0xdca2x3);_0xdca2xf[_0x1552[371]]= function(_0xdca2x6){return mxEvent[_0x1552[371]](_0xdca2x6)|| (mxClient[_0x1552[372]]&& _0xdca2x6[_0x1552[373]])};function _0xdca2x58(_0xdca2x59){if(!_0xdca2x3[_0x1552[245]]()){var _0xdca2x48=0;var _0xdca2x5a=0;if(_0xdca2x59== 37){_0xdca2x48= -1}else {if(_0xdca2x59== 38){_0xdca2x5a= -1}else {if(_0xdca2x59== 39){_0xdca2x48= 1}else {if(_0xdca2x59== 40){_0xdca2x5a= 1}}}};_0xdca2x3[_0x1552[374]](_0xdca2x3[_0x1552[246]](),_0xdca2x48,_0xdca2x5a);_0xdca2x3[_0x1552[375]](_0xdca2x3[_0x1552[264]]())}}var _0xdca2x5b=mxUtils[_0x1552[20]](this,function(_0xdca2x5c,_0xdca2x5d,_0xdca2x26,_0xdca2x5e){var _0xdca2x5f=this[_0x1552[12]][_0x1552[112]](_0xdca2x26);if(_0xdca2x5f!= null){var _0xdca2x20=function(){if(_0xdca2x5f[_0x1552[376]]){_0xdca2x5f[_0x1552[377]]()}};if(_0xdca2x5d){if(_0xdca2x5e){_0xdca2xf[_0x1552[378]](_0xdca2x5c,_0xdca2x20)}else {_0xdca2xf[_0x1552[379]](_0xdca2x5c,_0xdca2x20)}}else {if(_0xdca2x5e){_0xdca2xf[_0x1552[380]](_0xdca2x5c,_0xdca2x20)}else {_0xdca2xf[_0x1552[381]](_0xdca2x5c,_0xdca2x20)}}}});var _0xdca2x60=this;var _0xdca2x61=_0xdca2xf[_0x1552[382]];_0xdca2xf[_0x1552[382]]= function(_0xdca2x6){_0xdca2x60[_0x1552[356]]();_0xdca2x61[_0x1552[50]](this,arguments)};_0xdca2xf[_0x1552[383]]= function(){};_0xdca2xf[_0x1552[381]](8,function(){_0xdca2x3[_0x1552[384]](true)});_0xdca2xf[_0x1552[381]](13,function(){_0xdca2x3[_0x1552[384]](false)});_0xdca2xf[_0x1552[381]](33,function(){_0xdca2x3[_0x1552[288]]()});_0xdca2xf[_0x1552[381]](34,function(){_0xdca2x3[_0x1552[289]]()});_0xdca2xf[_0x1552[381]](36,function(){_0xdca2x3[_0x1552[287]]()});_0xdca2xf[_0x1552[381]](35,function(){_0xdca2x3[_0x1552[15]]()});_0xdca2xf[_0x1552[381]](37,function(){_0xdca2x58(37)});_0xdca2xf[_0x1552[381]](38,function(){_0xdca2x58(38)});_0xdca2xf[_0x1552[381]](39,function(){_0xdca2x58(39)});_0xdca2xf[_0x1552[381]](40,function(){_0xdca2x58(40)});_0xdca2xf[_0x1552[381]](113,function(){_0xdca2x3[_0x1552[70]]()});_0xdca2x5b(46,false,_0x1552[247]);_0xdca2x5b(82,true,_0x1552[257]);_0xdca2x5b(83,true,_0x1552[172]);_0xdca2x5b(83,true,_0x1552[180],true);_0xdca2x5b(107,false,_0x1552[385]);_0xdca2x5b(109,false,_0x1552[386]);_0xdca2x5b(65,true,_0x1552[387]);_0xdca2x5b(86,true,_0x1552[388],true);_0xdca2x5b(69,true,_0x1552[389],true);_0xdca2x5b(69,true,_0x1552[390]);_0xdca2x5b(66,true,_0x1552[253]);_0xdca2x5b(70,true,_0x1552[252]);_0xdca2x5b(68,true,_0x1552[248]);_0xdca2x5b(90,true,_0x1552[241]);_0xdca2x5b(89,true,_0x1552[242]);_0xdca2x5b(88,true,_0x1552[115]);_0xdca2x5b(67,true,_0x1552[116]);_0xdca2x5b(81,true,_0x1552[391]);_0xdca2x5b(86,true,_0x1552[111]);_0xdca2x5b(71,true,_0x1552[263]);_0xdca2x5b(71,true,_0x1552[392],true);_0xdca2x5b(85,true,_0x1552[265]);_0xdca2x5b(112,false,_0x1552[393]);_0xdca2x5b(80,true,_0x1552[224],true);return _0xdca2xf};EditorUi[_0x1552[10]][_0x1552[58]]= function(_0xdca2x3,_0xdca2x36,_0xdca2x62,_0xdca2x63){for(var _0xdca2x37=0;_0xdca2x37< _0xdca2x36[_0x1552[143]];_0xdca2x37++){_0xdca2x3[_0x1552[396]]( new mxMultiplicity(true,_0xdca2x36[_0xdca2x37],null,null,_0xdca2x62[_0xdca2x37][0],_0xdca2x62[_0xdca2x37][1],null,mxResources[_0x1552[112]](_0xdca2x36[_0xdca2x37])+ _0x1552[394]+ _0xdca2x62[_0xdca2x37][0]+ _0x1552[395],null));_0xdca2x3[_0x1552[396]]( new mxMultiplicity(false,_0xdca2x36[_0xdca2x37],null,null,_0xdca2x63[_0xdca2x37][0],_0xdca2x63[_0xdca2x37][1],null,mxResources[_0x1552[112]](_0xdca2x36[_0xdca2x37])+ _0x1552[394]+ _0xdca2x63[_0xdca2x37][0]+ _0x1552[397],null))}} \ No newline at end of file +var _0x9662=["\x65\x64\x69\x74\x6F\x72","\x63\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x67\x65\x45\x64\x69\x74\x6F\x72","\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x42\x79\x49\x64","\x67\x72\x61\x70\x68","\x6F\x76\x65\x72\x66\x6C\x6F\x77","\x73\x74\x79\x6C\x65","\x68\x69\x64\x64\x65\x6E","\x73\x72\x63","\x73\x75\x62\x6D\x65\x6E\x75\x49\x6D\x61\x67\x65","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x63\x6F\x6E\x6E\x65\x63\x74\x49\x6D\x61\x67\x65","\x61\x63\x74\x69\x6F\x6E\x73","\x6D\x65\x6E\x75\x73","\x63\x72\x65\x61\x74\x65\x44\x69\x76\x73","\x72\x65\x66\x72\x65\x73\x68","\x63\x72\x65\x61\x74\x65\x55\x69","\x65\x76\x65\x6E\x74","\x69\x73\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x41\x6C\x6C\x6F\x77\x65\x64","\x69\x73\x45\x64\x69\x74\x69\x6E\x67","\x62\x69\x6E\x64","\x62\x6F\x64\x79","\x6F\x6E\x73\x65\x6C\x65\x63\x74\x73\x74\x61\x72\x74","\x6D\x65\x6E\x75\x62\x61\x72\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x6F\x6E\x6D\x6F\x75\x73\x65\x64\x6F\x77\x6E","\x74\x6F\x6F\x6C\x62\x61\x72\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x64\x69\x61\x67\x72\x61\x6D\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x73\x69\x64\x65\x62\x61\x72\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x66\x6F\x6F\x74\x65\x72\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x49\x53\x5F\x49\x45","\x64\x6F\x63\x75\x6D\x65\x6E\x74\x4D\x6F\x64\x65","\x75\x6E\x64\x65\x66\x69\x6E\x65\x64","\x63\x6F\x6E\x74\x65\x78\x74\x6D\x65\x6E\x75","\x61\x64\x64\x4C\x69\x73\x74\x65\x6E\x65\x72","\x6F\x6E\x63\x6F\x6E\x74\x65\x78\x74\x6D\x65\x6E\x75","\x69\x6E\x69\x74","\x74\x61\x62\x69\x6E\x64\x65\x78","\x30","\x73\x65\x74\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x63\x75\x72\x73\x6F\x72","\x64\x65\x66\x61\x75\x6C\x74","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x49\x6D\x61\x67\x65","\x75\x72\x6C\x28","\x67\x72\x69\x64\x49\x6D\x61\x67\x65","\x29","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x50\x6F\x73\x69\x74\x69\x6F\x6E","\x2D\x31\x70\x78\x20\x2D\x31\x70\x78","\x66\x6F\x63\x75\x73","\x66\x69\x72\x65\x4D\x6F\x75\x73\x65\x45\x76\x65\x6E\x74","\x4D\x4F\x55\x53\x45\x5F\x44\x4F\x57\x4E","\x61\x70\x70\x6C\x79","\x6D\x75\x6C\x74\x69\x70\x6C\x69\x63\x69\x74\x69\x65\x73","\x73\x74\x61\x72\x74","\x65\x6E\x64","\x69\x6E\x70\x75\x74","\x71\x75\x65\x73\x74\x69\x6F\x6E","\x65\x6D\x61\x69\x6C","\x6E","\x63\x72\x65\x61\x74\x65\x4D\x75\x6C\x74\x69\x70\x6C\x69\x63\x69\x74\x69\x65\x73","\x64\x62\x6C\x43\x6C\x69\x63\x6B","\x63\x65\x6C\x6C","\x66\x69\x72\x65\x45\x76\x65\x6E\x74","\x69\x73\x45\x6E\x61\x62\x6C\x65\x64","\x69\x73\x43\x6F\x6E\x73\x75\x6D\x65\x64","\x69\x73\x45\x64\x67\x65","\x67\x65\x74\x4D\x6F\x64\x65\x6C","\x74\x61\x67\x4E\x61\x6D\x65","\x76\x61\x6C\x75\x65","\x73\x6F\x75\x72\x63\x65","\x69\x6E\x64\x65\x78\x4F\x66","\x73\x74\x61\x72\x74\x45\x64\x69\x74\x69\x6E\x67\x41\x74\x43\x65\x6C\x6C","\x69\x73\x56\x65\x72\x74\x65\x78","\x6C\x6F\x67","\x73\x68\x6F\x77\x44\x69\x61\x6C\x6F\x67","\x63\x6F\x6E\x73\x75\x6D\x65","\x61\x75\x74\x6F\x45\x78\x70\x61\x6E\x64","\x70\x61\x6E\x6E\x69\x6E\x67\x48\x61\x6E\x64\x6C\x65\x72","\x66\x61\x63\x74\x6F\x72\x79\x4D\x65\x74\x68\x6F\x64","\x63\x72\x65\x61\x74\x65\x50\x6F\x70\x75\x70\x4D\x65\x6E\x75","\x6F\x75\x74\x6C\x69\x6E\x65\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x6F\x75\x74\x6C\x69\x6E\x65","\x68\x69\x64\x65\x4D\x65\x6E\x75","\x61\x64\x64\x47\x65\x73\x74\x75\x72\x65\x4C\x69\x73\x74\x65\x6E\x65\x72\x73","\x49\x53\x5F\x54\x4F\x55\x43\x48","\x67\x65\x73\x74\x75\x72\x65\x63\x68\x61\x6E\x67\x65","\x74\x72\x61\x6E\x73\x66\x6F\x72\x6D","\x73\x63\x61\x6C\x65\x28","\x73\x63\x61\x6C\x65","\x67\x65\x74\x44\x72\x61\x77\x50\x61\x6E\x65","\x76\x69\x65\x77","\x76\x69\x73\x69\x62\x69\x6C\x69\x74\x79","\x67\x65\x74\x4F\x76\x65\x72\x6C\x61\x79\x50\x61\x6E\x65","\x67\x65\x73\x74\x75\x72\x65\x65\x6E\x64","\x72\x65\x6D\x6F\x76\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x7A\x6F\x6F\x6D\x54\x6F\x43\x65\x6E\x74\x65\x72","\x7A\x6F\x6F\x6D","\x76\x69\x73\x69\x62\x6C\x65","\x63\x72\x65\x61\x74\x65\x4B\x65\x79\x48\x61\x6E\x64\x6C\x65\x72","\x67\x65\x74\x4B\x65\x79\x48\x61\x6E\x64\x6C\x65\x72","\x72\x65\x73\x69\x7A\x65","\x73\x69\x7A\x65\x44\x69\x64\x43\x68\x61\x6E\x67\x65","\x75\x70\x64\x61\x74\x65","\x6F\x70\x65\x6E","\x73\x70\x6C\x69\x74\x53\x69\x7A\x65","\x6D\x65\x6E\x75\x62\x61\x72\x48\x65\x69\x67\x68\x74","\x74\x6F\x6F\x6C\x62\x61\x72\x48\x65\x69\x67\x68\x74","\x66\x6F\x6F\x74\x65\x72\x48\x65\x69\x67\x68\x74","\x68\x73\x70\x6C\x69\x74\x50\x6F\x73\x69\x74\x69\x6F\x6E","\x76\x73\x70\x6C\x69\x74\x50\x6F\x73\x69\x74\x69\x6F\x6E","\x61\x64\x64\x55\x6E\x64\x6F\x4C\x69\x73\x74\x65\x6E\x65\x72","\x61\x64\x64\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x4C\x69\x73\x74\x65\x6E\x65\x72","\x70\x61\x73\x74\x65","\x67\x65\x74","\x69\x73\x45\x6D\x70\x74\x79","\x73\x65\x74\x45\x6E\x61\x62\x6C\x65\x64","\x63\x75\x74","\x63\x6F\x70\x79","\x6F\x70\x65\x6E\x65\x72","\x6F\x70\x65\x6E\x46\x69\x6C\x65","\x70\x61\x72\x73\x65\x58\x6D\x6C","\x64\x6F\x63\x75\x6D\x65\x6E\x74\x45\x6C\x65\x6D\x65\x6E\x74","\x73\x65\x74\x47\x72\x61\x70\x68\x58\x6D\x6C","\x6D\x6F\x64\x69\x66\x69\x65\x64","\x63\x6C\x65\x61\x72","\x75\x6E\x64\x6F\x4D\x61\x6E\x61\x67\x65\x72","\x66\x69\x6C\x65\x6E\x61\x6D\x65","\x69\x6E\x76\x61\x6C\x69\x64\x4F\x72\x4D\x69\x73\x73\x69\x6E\x67\x46\x69\x6C\x65","\x3A\x20","\x6D\x65\x73\x73\x61\x67\x65","\x61\x6C\x65\x72\x74","\x73\x65\x74\x43\x6F\x6E\x73\x75\x6D\x65\x72","\x6F\x70\x65\x6E\x53\x74\x72\x69\x6E\x67","\x64\x61\x74\x61","\x6E\x65\x77","\x67\x65\x74\x47\x72\x61\x70\x68\x58\x6D\x6C","\x67\x65\x74\x50\x72\x65\x74\x74\x79\x58\x6D\x6C","\x67\x65\x74\x49\x74\x65\x6D","\x72\x65\x70\x6C\x61\x63\x65","\x63\x6F\x6E\x66\x69\x72\x6D","\x73\x65\x74\x49\x74\x65\x6D","\x73\x61\x76\x65\x64","\x20","\x73\x65\x74\x53\x74\x61\x74\x75\x73","\x6C\x65\x6E\x67\x74\x68","\x50\x4F\x53\x54","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2F\x78\x2D\x77\x77\x77\x2D\x66\x6F\x72\x6D\x2D\x75\x72\x6C\x65\x6E\x63\x6F\x64\x65\x64","\x73\x65\x74\x52\x65\x71\x75\x65\x73\x74\x48\x65\x61\x64\x65\x72","\x41\x75\x74\x68\x6F\x72\x69\x7A\x61\x74\x69\x6F\x6E","\x42\x65\x61\x72\x65\x72\x20","\x74\x6F\x6B\x65\x6E","\x6F\x6E\x6C\x6F\x61\x64","\x72\x65\x61\x64\x79\x53\x74\x61\x74\x65","\x73\x74\x61\x74\x75\x73","\x50\x72\x6F\x6A\x65\x63\x74\x20","\x6E\x61\x6D\x65","\x72\x65\x73\x70\x6F\x6E\x73\x65","\x70\x61\x72\x73\x65","\x20\x69\x73\x20\x6F\x70\x65\x6E\x69\x6E\x67\x20\x69\x6E\x20\x6E\x65\x77\x20\x77\x69\x6E\x64\x6F\x77\x21","\x6A\x73\x63\x72\x69\x70\x74\x79\x2F\x70\x72\x6F\x6A\x65\x63\x74\x73\x2F\x76\x69\x65\x77\x2F","\x69\x64","\x5F\x62\x6C\x61\x6E\x6B","\x45\x72\x72\x6F\x72\x20\x63\x72\x65\x61\x74\x69\x6E\x67\x20\x70\x72\x6F\x6A\x65\x63\x74\x3A\x20","\x65\x72\x72\x6F\x72\x73","\x45\x72\x72\x6F\x72\x20\x63\x72\x65\x61\x74\x69\x6E\x67\x20\x70\x72\x6F\x6A\x65\x63\x74","\x20\x28","\x73\x74\x61\x74\x75\x73\x54\x65\x78\x74","\x6F\x6E\x65\x72\x72\x6F\x72","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E\x3D\x70\x72\x6F\x6A\x65\x63\x74\x5F\x6E\x65\x77\x26\x6E\x61\x6D\x65\x3D","\x73\x65\x6E\x64","\x64\x72\x61\x77\x69\x6E\x67\x54\x6F\x6F\x4C\x61\x72\x67\x65","\x70\x6F\x70\x75\x70","\x73\x61\x76\x65","\x50\x55\x54","\x55\x70\x64\x61\x74\x65\x64\x20\x61\x74\x20","\x75\x70\x64\x61\x74\x65\x64\x41\x74","\x45\x72\x72\x6F\x72\x20\x73\x61\x76\x69\x6E\x67\x20\x70\x72\x6F\x6A\x65\x63\x74\x3A\x20","\x45\x72\x72\x6F\x72\x20\x73\x61\x76\x69\x6E\x67\x20\x70\x72\x6F\x6A\x65\x63\x74","\x64\x72\x61\x66\x74\x3D","\x45\x72\x72\x6F\x72\x20\x73\x61\x76\x69\x6E\x67\x20\x66\x69\x6C\x65","\x73\x61\x76\x65\x41\x73","\x6A\x73\x63\x72\x69\x70\x74\x79\x2F\x70\x72\x6F\x6A\x65\x63\x74\x2F","\x45\x72\x72\x6F\x72\x20\x63\x6C\x6F\x6E\x69\x6E\x67\x20\x70\x72\x6F\x6A\x65\x63\x74\x3A\x20","\x45\x72\x72\x6F\x72\x20\x63\x6C\x6F\x6E\x69\x6E\x67\x20\x70\x72\x6F\x6A\x65\x63\x74","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E\x3D\x70\x72\x6F\x6A\x65\x63\x74\x5F\x63\x6C\x6F\x6E\x65\x64\x26\x6E\x61\x6D\x65\x3D","\x26\x64\x72\x61\x66\x74\x3D","\x26\x70\x72\x6F\x64\x75\x63\x74\x69\x6F\x6E\x3D","\x76\x61\x6C\x69\x64\x61\x74\x65","\x67\x65\x74\x52\x6F\x6F\x74","\x6D\x6F\x64\x65\x6C","\x67\x65\x74\x43\x68\x69\x6C\x64\x43\x6F\x75\x6E\x74","\x67\x65\x74\x43\x68\x69\x6C\x64\x41\x74","\x69\x73\x56\x61\x6C\x69\x64\x52\x6F\x6F\x74","\x3C\x62\x72\x3E","\x73\x65\x74\x43\x65\x6C\x6C\x57\x61\x72\x6E\x69\x6E\x67","","\x67\x65\x74\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x51\x75\x65\x73\x74\x69\x6F\x6E\x20\x63\x61\x6E\x20\x6E\x6F\x74\x20\x62\x65\x20\x65\x6D\x70\x74\x79","\x0A","\x6C\x61\x62\x65\x6C","\x4C\x61\x62\x65\x6C\x20\x63\x61\x6E\x20\x6E\x6F\x74\x20\x62\x65\x20\x65\x6D\x70\x74\x79","\x76\x61\x6C\x69\x64\x61\x74\x65\x42\x6C\x6F\x63\x6B","\x4F\x6E\x6C\x79\x20\x6F\x6E\x65\x20\x53\x74\x61\x72\x74\x20\x62\x6C\x6F\x63\x6B\x20\x69\x73\x20\x61\x6C\x6C\x6F\x77\x65\x64","\x6E\x6F\x64\x65\x4E\x61\x6D\x65","\x67\x65\x74\x49\x64","\x67\x65\x74\x43\x65\x6C\x6C","\x67\x65\x74\x56\x61\x6C\x75\x65","\x6E\x75\x6C\x6C","\x56\x61\x6C\x75\x65\x20\x63\x61\x6E\x20\x6E\x6F\x74\x20\x62\x65\x20\x65\x6D\x70\x74\x79","\x2C","\x73\x70\x6C\x69\x74","\x74\x72\x69\x6D","\x56\x61\x6C\x75\x65","\x20\x63\x61\x6E\x20\x6E\x6F\x74\x20\x62\x65\x20\x65\x6D\x70\x74\x79","\x66\x6F\x72\x45\x61\x63\x68","\x69\x73\x43\x65\x6C\x6C\x43\x6F\x6C\x6C\x61\x70\x73\x65\x64","\x63\x6F\x6E\x74\x61\x69\x6E\x73\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E\x45\x72\x72\x6F\x72\x73\x52\x65\x73\x6F\x75\x72\x63\x65","\x67\x65\x74\x54\x65\x72\x6D\x69\x6E\x61\x6C","\x67\x65\x74\x45\x64\x67\x65\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E\x45\x72\x72\x6F\x72","\x67\x65\x74\x43\x65\x6C\x6C\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E\x45\x72\x72\x6F\x72","\x76\x61\x6C\x69\x64\x61\x74\x65\x43\x65\x6C\x6C","\x67\x65\x74\x50\x61\x72\x65\x6E\x74","\x67\x65\x74\x44\x65\x66\x61\x75\x6C\x74\x50\x61\x72\x65\x6E\x74","\x63\x68\x69\x6C\x64\x72\x65\x6E","\x70\x75\x62\x6C\x69\x73\x68","\x50\x75\x62\x6C\x69\x73\x68\x65\x64\x20\x61\x74\x20","\x45\x72\x72\x6F\x72\x20\x70\x75\x62\x6C\x69\x73\x68\x69\x6E\x67\x20\x70\x72\x6F\x6A\x65\x63\x74\x3A\x20","\x45\x72\x72\x6F\x72\x20\x70\x75\x62\x6C\x69\x73\x68\x69\x6E\x67\x20\x70\x72\x6F\x6A\x65\x63\x74","\x45\x72\x72\x6F\x72\x20\x70\x75\x62\x6C\x69\x73\x68\x69\x6E\x67\x20\x66\x69\x6C\x65","\x76\x61\x72\x69\x61\x62\x6C\x65","\x56\x61\x72\x69\x61\x62\x6C\x65\x20\x63\x72\x65\x61\x74\x65\x64\x20\x61\x74\x20","\x63\x72\x65\x61\x74\x65\x64\x41\x74","\x45\x72\x72\x6F\x72\x20\x63\x72\x65\x61\x74\x69\x6E\x67\x20\x76\x61\x72\x69\x61\x62\x6C\x65\x3A\x20","\x45\x72\x72\x6F\x72\x20\x63\x72\x65\x61\x74\x69\x6E\x67\x20\x76\x61\x72\x69\x61\x62\x6C\x65","\x6E\x61\x6D\x65\x3D","\x67\x65\x74\x55\x72\x6C","\x70\x61\x74\x68\x6E\x61\x6D\x65","\x6C\x6F\x63\x61\x74\x69\x6F\x6E","\x3F","\x26","\x3D","\x75\x6E\x64\x6F","\x72\x65\x64\x6F","\x63\x61\x6E\x55\x6E\x64\x6F","\x63\x61\x6E\x52\x65\x64\x6F","\x69\x73\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x45\x6D\x70\x74\x79","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C\x73","\x64\x65\x6C\x65\x74\x65","\x64\x75\x70\x6C\x69\x63\x61\x74\x65","\x62\x6F\x6C\x64","\x69\x74\x61\x6C\x69\x63","\x75\x6E\x64\x65\x72\x6C\x69\x6E\x65","\x74\x6F\x46\x72\x6F\x6E\x74","\x74\x6F\x42\x61\x63\x6B","\x64\x61\x73\x68\x65\x64","\x72\x6F\x75\x6E\x64\x65\x64","\x73\x68\x61\x64\x6F\x77","\x74\x69\x6C\x74","\x61\x75\x74\x6F\x73\x69\x7A\x65","\x63\x75\x72\x76\x65\x64","\x72\x6F\x74\x61\x74\x69\x6F\x6E","\x77\x6F\x72\x64\x57\x72\x61\x70","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x6F\x75\x6E\x74","\x67\x72\x6F\x75\x70","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C","\x75\x6E\x67\x72\x6F\x75\x70","\x72\x65\x6D\x6F\x76\x65\x46\x72\x6F\x6D\x47\x72\x6F\x75\x70","\x66\x6F\x6E\x74\x46\x61\x6D\x69\x6C\x79","\x66\x6F\x6E\x74\x53\x69\x7A\x65","\x61\x6C\x69\x67\x6E\x6D\x65\x6E\x74","\x70\x6F\x73\x69\x74\x69\x6F\x6E","\x74\x65\x78\x74","\x66\x6F\x72\x6D\x61\x74","\x61\x72\x72\x61\x6E\x67\x65","\x6C\x69\x6E\x65\x77\x69\x64\x74\x68","\x73\x70\x61\x63\x69\x6E\x67","\x6C\x69\x6E\x65","\x6C\x69\x6E\x65\x65\x6E\x64","\x6C\x69\x6E\x65\x73\x74\x61\x72\x74","\x73\x65\x74\x41\x73\x44\x65\x66\x61\x75\x6C\x74\x45\x64\x67\x65","\x61\x6C\x69\x67\x6E","\x67\x65\x74\x53\x74\x61\x74\x65","\x69\x73\x4C\x6F\x6F\x70","\x64\x69\x72\x65\x63\x74\x69\x6F\x6E","\x66\x6F\x6C\x64\x69\x6E\x67\x45\x6E\x61\x62\x6C\x65\x64","\x63\x75\x72\x72\x65\x6E\x74\x52\x6F\x6F\x74","\x6E\x61\x76\x69\x67\x61\x74\x69\x6F\x6E","\x68\x6F\x6D\x65","\x65\x78\x69\x74\x47\x72\x6F\x75\x70","\x65\x6E\x74\x65\x72\x47\x72\x6F\x75\x70","\x65\x78\x70\x61\x6E\x64","\x63\x6F\x6C\x6C\x61\x70\x73\x65","\x65\x64\x69\x74\x4C\x69\x6E\x6B","\x67\x65\x74\x4C\x69\x6E\x6B\x46\x6F\x72\x43\x65\x6C\x6C","\x6F\x70\x65\x6E\x4C\x69\x6E\x6B","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x4D\x6F\x64\x65\x6C","\x63\x6C\x69\x65\x6E\x74\x57\x69\x64\x74\x68","\x63\x6C\x69\x65\x6E\x74\x48\x65\x69\x67\x68\x74","\x6D\x69\x6E","\x6D\x61\x78","\x68\x65\x69\x67\x68\x74","\x70\x78","\x74\x6F\x70","\x49\x53\x5F\x51\x55\x49\x52\x4B\x53","\x77\x69\x64\x74\x68","\x62\x6F\x74\x74\x6F\x6D","\x6C\x65\x66\x74","\x64\x69\x73\x70\x6C\x61\x79","\x6E\x6F\x6E\x65","\x68\x73\x70\x6C\x69\x74","\x76\x73\x70\x6C\x69\x74","\x67\x65\x4D\x65\x6E\x75\x62\x61\x72\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x63\x72\x65\x61\x74\x65\x44\x69\x76","\x67\x65\x54\x6F\x6F\x6C\x62\x61\x72\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x67\x65\x53\x69\x64\x65\x62\x61\x72\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x67\x65\x4F\x75\x74\x6C\x69\x6E\x65\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x67\x65\x44\x69\x61\x67\x72\x61\x6D\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x67\x65\x46\x6F\x6F\x74\x65\x72\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x67\x65\x48\x73\x70\x6C\x69\x74","\x67\x65\x56\x73\x70\x6C\x69\x74","\x30\x70\x78","\x72\x69\x67\x68\x74","\x6D\x65\x6E\x75\x62\x61\x72","\x67\x65\x4D\x65\x6E\x75\x62\x61\x72","\x63\x72\x65\x61\x74\x65\x4D\x65\x6E\x75\x62\x61\x72","\x61\x70\x70\x65\x6E\x64\x43\x68\x69\x6C\x64","\x74\x6F\x6F\x6C\x62\x61\x72","\x67\x65\x54\x6F\x6F\x6C\x62\x61\x72","\x63\x72\x65\x61\x74\x65\x54\x6F\x6F\x6C\x62\x61\x72","\x73\x69\x64\x65\x62\x61\x72","\x63\x72\x65\x61\x74\x65\x53\x69\x64\x65\x62\x61\x72","\x63\x72\x65\x61\x74\x65\x46\x6F\x6F\x74\x65\x72","\x73\x74\x61\x74\x75\x73\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x63\x72\x65\x61\x74\x65\x53\x74\x61\x74\x75\x73\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x73\x74\x61\x74\x75\x73\x43\x68\x61\x6E\x67\x65\x64","\x67\x65\x74\x53\x74\x61\x74\x75\x73","\x73\x65\x74\x53\x74\x61\x74\x75\x73\x54\x65\x78\x74","\x61\x64\x64\x53\x70\x6C\x69\x74\x48\x61\x6E\x64\x6C\x65\x72","\x61","\x63\x72\x65\x61\x74\x65\x45\x6C\x65\x6D\x65\x6E\x74","\x63\x6C\x61\x73\x73\x4E\x61\x6D\x65","\x67\x65\x49\x74\x65\x6D\x20\x67\x65\x53\x74\x61\x74\x75\x73","\x69\x6E\x6E\x65\x72\x48\x54\x4D\x4C","\x67\x65\x46\x6F\x6F\x74\x65\x72","\x64\x69\x76","\x63\x72\x65\x61\x74\x65\x48\x65\x61\x64\x65\x72","\x63\x72\x65\x61\x74\x65\x46\x6F\x72\x6D","\x66\x6F\x72\x6D","\x67\x65\x74\x43\x6C\x69\x65\x6E\x74\x58","\x67\x65\x74\x43\x6C\x69\x65\x6E\x74\x59","\x78","\x79","\x6D\x6F\x75\x73\x65\x6D\x6F\x76\x65","\x74\x6F\x75\x63\x68\x6D\x6F\x76\x65","\x6D\x6F\x75\x73\x65\x75\x70","\x74\x6F\x75\x63\x68\x65\x6E\x64","\x68\x69\x64\x65\x44\x69\x61\x6C\x6F\x67","\x64\x69\x61\x6C\x6F\x67","\x49\x53\x5F\x56\x4D\x4C","\x63\x6C\x6F\x73\x65","\x73\x61\x76\x65\x46\x69\x6C\x65","\x67\x65\x74\x4F\x72\x43\x72\x65\x61\x74\x65\x46\x69\x6C\x65\x6E\x61\x6D\x65","\x70\x75\x62\x6C\x69\x73\x68\x46\x69\x6C\x65","\x65\x78\x65\x63\x75\x74\x65\x4C\x61\x79\x6F\x75\x74","\x61\x6E\x69\x6D\x61\x74\x65","\x62\x65\x67\x69\x6E\x55\x70\x64\x61\x74\x65","\x65\x78\x65\x63\x75\x74\x65","\x43\x61\x6D\x69\x6E\x6F","\x75\x73\x65\x72\x41\x67\x65\x6E\x74","\x65\x6E\x64\x55\x70\x64\x61\x74\x65","\x73\x74\x61\x72\x74\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E","\x69\x73\x43\x6F\x6E\x74\x72\x6F\x6C\x44\x6F\x77\x6E","\x49\x53\x5F\x4D\x41\x43","\x6D\x65\x74\x61\x4B\x65\x79","\x6D\x6F\x76\x65\x43\x65\x6C\x6C\x73","\x73\x63\x72\x6F\x6C\x6C\x43\x65\x6C\x6C\x54\x6F\x56\x69\x73\x69\x62\x6C\x65","\x65\x6E\x61\x62\x6C\x65\x64","\x66\x75\x6E\x63\x74","\x62\x69\x6E\x64\x43\x6F\x6E\x74\x72\x6F\x6C\x53\x68\x69\x66\x74\x4B\x65\x79","\x62\x69\x6E\x64\x43\x6F\x6E\x74\x72\x6F\x6C\x4B\x65\x79","\x62\x69\x6E\x64\x53\x68\x69\x66\x74\x4B\x65\x79","\x62\x69\x6E\x64\x4B\x65\x79","\x65\x73\x63\x61\x70\x65","\x65\x6E\x74\x65\x72","\x66\x6F\x6C\x64\x43\x65\x6C\x6C\x73","\x7A\x6F\x6F\x6D\x49\x6E","\x7A\x6F\x6F\x6D\x4F\x75\x74","\x73\x65\x6C\x65\x63\x74\x41\x6C\x6C","\x73\x65\x6C\x65\x63\x74\x56\x65\x72\x74\x69\x63\x65\x73","\x73\x65\x6C\x65\x63\x74\x45\x64\x67\x65\x73","\x65\x78\x70\x6F\x72\x74","\x63\x6F\x6E\x6E\x65\x63\x74","\x67\x72\x69\x64","\x61\x62\x6F\x75\x74","\x20\x6D\x75\x73\x74\x20\x68\x61\x76\x65\x20","\x20\x6F\x75\x74\x67\x6F\x69\x6E\x67\x20\x65\x64\x67\x65\x2E","\x70\x75\x73\x68","\x20\x69\x6E\x63\x6F\x6D\x69\x6E\x67\x20\x65\x64\x67\x65\x2E"];EditorUi= function(_0xb492x1,_0xb492x2){this[_0x9662[0]]= _0xb492x1|| new Editor();this[_0x9662[1]]= _0xb492x2|| document[_0x9662[3]](_0x9662[2]);var _0xb492x3=_0xb492x1[_0x9662[4]];var _0xb492x4=this;this[_0x9662[1]][_0x9662[6]][_0x9662[5]]= _0x9662[7]; new Image()[_0x9662[8]]= mxPopupMenu[_0x9662[10]][_0x9662[9]];if(mxConnectionHandler[_0x9662[10]][_0x9662[11]]!= null){ new Image()[_0x9662[8]]= mxConnectionHandler[_0x9662[10]][_0x9662[11]][_0x9662[8]]};this[_0x9662[12]]= new Actions(this);this[_0x9662[13]]= new Menus(this);this[_0x9662[14]]();this[_0x9662[15]]();this[_0x9662[16]]();var _0xb492x5=mxUtils[_0x9662[20]](this,function(_0xb492x6){if(_0xb492x6== null){_0xb492x6= window[_0x9662[17]]};if(this[_0x9662[18]](_0xb492x6)){return true};return _0xb492x3[_0x9662[19]]()});if(this[_0x9662[1]]== document[_0x9662[21]]){this[_0x9662[23]][_0x9662[22]]= _0xb492x5;this[_0x9662[23]][_0x9662[24]]= _0xb492x5;this[_0x9662[25]][_0x9662[22]]= _0xb492x5;this[_0x9662[25]][_0x9662[24]]= _0xb492x5;this[_0x9662[26]][_0x9662[22]]= _0xb492x5;this[_0x9662[26]][_0x9662[24]]= _0xb492x5;this[_0x9662[27]][_0x9662[22]]= _0xb492x5;this[_0x9662[27]][_0x9662[24]]= _0xb492x5;this[_0x9662[28]][_0x9662[22]]= _0xb492x5;this[_0x9662[28]][_0x9662[24]]= _0xb492x5};if(mxClient[_0x9662[29]]&& ( typeof (document[_0x9662[30]])=== _0x9662[31]|| document[_0x9662[30]]< 9)){mxEvent[_0x9662[33]](this[_0x9662[26]],_0x9662[32],_0xb492x5);mxEvent[_0x9662[33]](this[_0x9662[27]],_0x9662[32],_0xb492x5)}else {this[_0x9662[26]][_0x9662[34]]= _0xb492x5;this[_0x9662[27]][_0x9662[34]]= _0xb492x5};_0xb492x3[_0x9662[35]](this[_0x9662[26]]);_0xb492x3[_0x9662[15]]();_0xb492x3[_0x9662[1]][_0x9662[38]](_0x9662[36],_0x9662[37]);_0xb492x3[_0x9662[1]][_0x9662[6]][_0x9662[39]]= _0x9662[40];_0xb492x3[_0x9662[1]][_0x9662[6]][_0x9662[41]]= _0x9662[42]+ _0xb492x1[_0x9662[43]]+ _0x9662[44];_0xb492x3[_0x9662[1]][_0x9662[6]][_0x9662[45]]= _0x9662[46];_0xb492x3[_0x9662[1]][_0x9662[47]]();var _0xb492x7=_0xb492x3[_0x9662[48]];_0xb492x3[_0x9662[48]]= function(_0xb492x8,_0xb492x9,_0xb492xa){if(_0xb492x8== mxEvent[_0x9662[49]]){this[_0x9662[1]][_0x9662[47]]()};_0xb492x7[_0x9662[50]](this,arguments)};this[_0x9662[58]](_0xb492x3[_0x9662[51]],[_0x9662[52],_0x9662[53],_0x9662[54],_0x9662[55],_0x9662[56]],[[1,1],[0,0],[1,1],[1,_0x9662[57]],[1,_0x9662[57]]],[[0,0],[1,_0x9662[57]],[1,_0x9662[57]],[1,_0x9662[57]],[1,_0x9662[57]]]);_0xb492x3[_0x9662[59]]= function(_0xb492x6,_0xb492xb){var _0xb492xc=[_0x9662[55]];var _0xb492xd= new mxEventObject(mxEvent.DOUBLE_CLICK,_0x9662[17],_0xb492x6,_0x9662[60],_0xb492xb);this[_0x9662[61]](_0xb492xd);if(this[_0x9662[62]]()&& !mxEvent[_0x9662[63]](_0xb492x6)&& !_0xb492xd[_0x9662[63]]()){if(this[_0x9662[65]]()[_0x9662[64]](_0xb492xb)){if(_0xb492xc[_0x9662[69]](_0xb492xb[_0x9662[68]][_0x9662[67]][_0x9662[66]])>= 0){this[_0x9662[70]](_0xb492xb)}}else {if(this[_0x9662[65]]()[_0x9662[71]](_0xb492xb)){console[_0x9662[72]](_0xb492x4);console[_0x9662[72]](_0xb492xb);_0xb492x4[_0x9662[73]]( new GeneralDialog(_0xb492x4,_0xb492xb)[_0x9662[1]],320,280,true,true)}};_0xb492xd[_0x9662[74]]()}};_0xb492x3[_0x9662[76]][_0x9662[75]]= true;_0xb492x3[_0x9662[76]][_0x9662[77]]= mxUtils[_0x9662[20]](this,function(_0xb492xe,_0xb492xb,_0xb492x6){this[_0x9662[13]][_0x9662[78]](_0xb492xe,_0xb492xb,_0xb492x6)});_0xb492x1[_0x9662[80]][_0x9662[35]](this[_0x9662[79]]);mxEvent[_0x9662[82]](document,mxUtils[_0x9662[20]](this,function(_0xb492x6){_0xb492x3[_0x9662[76]][_0x9662[81]]()}));if(mxClient[_0x9662[83]]){mxEvent[_0x9662[33]](_0xb492x3[_0x9662[1]],_0x9662[84],mxUtils[_0x9662[20]](this,function(_0xb492x6){_0xb492x3[_0x9662[89]][_0x9662[88]]()[_0x9662[38]](_0x9662[85],_0x9662[86]+ _0xb492x6[_0x9662[87]]+ _0x9662[44]);_0xb492x3[_0x9662[89]][_0x9662[91]]()[_0x9662[6]][_0x9662[90]]= _0x9662[7]}));mxEvent[_0x9662[33]](_0xb492x3[_0x9662[1]],_0x9662[92],mxUtils[_0x9662[20]](this,function(_0xb492x6){_0xb492x3[_0x9662[89]][_0x9662[88]]()[_0x9662[93]](_0x9662[85]);_0xb492x3[_0x9662[94]]= true;_0xb492x3[_0x9662[95]](_0xb492x6[_0x9662[87]]);_0xb492x3[_0x9662[89]][_0x9662[91]]()[_0x9662[6]][_0x9662[90]]= _0x9662[96]}))};var _0xb492xf=this[_0x9662[97]](_0xb492x1);this[_0x9662[98]]= function(){return _0xb492xf};mxEvent[_0x9662[33]](window,_0x9662[99],mxUtils[_0x9662[20]](this,function(){this[_0x9662[15]]();_0xb492x3[_0x9662[100]]();this[_0x9662[0]][_0x9662[80]][_0x9662[101]](false);this[_0x9662[0]][_0x9662[80]][_0x9662[80]][_0x9662[100]]()}));this[_0x9662[35]]();this[_0x9662[102]]()};EditorUi[_0x9662[10]][_0x9662[103]]= (mxClient[_0x9662[83]])?16:8;EditorUi[_0x9662[10]][_0x9662[104]]= 33;EditorUi[_0x9662[10]][_0x9662[105]]= 36;EditorUi[_0x9662[10]][_0x9662[106]]= 28;EditorUi[_0x9662[10]][_0x9662[107]]= 204;EditorUi[_0x9662[10]][_0x9662[108]]= 190;EditorUi[_0x9662[10]][_0x9662[35]]= function(){this[_0x9662[109]]();this[_0x9662[110]]();var _0xb492x10=this[_0x9662[12]][_0x9662[112]](_0x9662[111]);var _0xb492x11=function(){_0xb492x10[_0x9662[114]](!mxClipboard[_0x9662[113]]())};var _0xb492x12=mxClipboard[_0x9662[115]];mxClipboard[_0x9662[115]]= function(){_0xb492x12[_0x9662[50]](this,arguments);_0xb492x11()};var _0xb492x13=mxClipboard[_0x9662[116]];mxClipboard[_0x9662[116]]= function(){_0xb492x13[_0x9662[50]](this,arguments);_0xb492x11()}};EditorUi[_0x9662[10]][_0x9662[18]]= function(_0xb492x6){return false};EditorUi[_0x9662[10]][_0x9662[102]]= function(){try{if(window[_0x9662[117]]!= null&& window[_0x9662[117]][_0x9662[118]]!= null){window[_0x9662[117]][_0x9662[118]][_0x9662[130]](mxUtils[_0x9662[20]](this,function(_0xb492x14,_0xb492x15){try{var _0xb492x16=mxUtils[_0x9662[119]](_0xb492x14);this[_0x9662[0]][_0x9662[121]](_0xb492x16[_0x9662[120]]);this[_0x9662[0]][_0x9662[122]]= false;this[_0x9662[0]][_0x9662[124]][_0x9662[123]]();if(_0xb492x15!= null){this[_0x9662[0]][_0x9662[125]]= _0xb492x15}}catch(e){mxUtils[_0x9662[129]](mxResources[_0x9662[112]](_0x9662[126])+ _0x9662[127]+ e[_0x9662[128]])}}))}}catch(e){}};EditorUi[_0x9662[10]][_0x9662[131]]= function(_0xb492x14,_0xb492x15,_0xb492x17){try{var _0xb492x16=mxUtils[_0x9662[119]](_0xb492x14);this[_0x9662[0]][_0x9662[121]](_0xb492x16[_0x9662[120]]);this[_0x9662[0]][_0x9662[122]]= false;this[_0x9662[0]][_0x9662[124]][_0x9662[123]]();if(_0xb492x15!= null){this[_0x9662[0]][_0x9662[125]]= _0xb492x15};if(_0xb492x17!= null){this[_0x9662[0]][_0x9662[132]]= _0xb492x17}}catch(e){mxUtils[_0x9662[129]](mxResources[_0x9662[112]](_0x9662[126])+ _0x9662[127]+ e[_0x9662[128]])}};EditorUi[_0x9662[10]][_0x9662[133]]= function(_0xb492x18){var _0xb492x1=this[_0x9662[0]];if(_0xb492x18!= null){var _0xb492x14=mxUtils[_0x9662[135]](this[_0x9662[0]][_0x9662[134]]());try{if(useLocalStorage){if(localStorage[_0x9662[136]](_0xb492x18)!= null&& !mxUtils[_0x9662[138]](mxResources[_0x9662[112]](_0x9662[137],[_0xb492x18]))){return};localStorage[_0x9662[139]](_0xb492x18,_0xb492x14);this[_0x9662[0]][_0x9662[142]](mxResources[_0x9662[112]](_0x9662[140])+ _0x9662[141]+ new Date())}else {console[_0x9662[72]](_0xb492x14[_0x9662[143]]);console[_0x9662[72]](MAX_REQUEST_SIZE);if(_0xb492x14[_0x9662[143]]< MAX_REQUEST_SIZE){_0xb492x14= encodeURIComponent(_0xb492x14);_0xb492x18= encodeURIComponent(_0xb492x18);var _0xb492x19= new XMLHttpRequest();_0xb492x19[_0x9662[102]](_0x9662[144],SAVE_URL,true);_0xb492x19[_0x9662[147]](_0x9662[145],_0x9662[146]);_0xb492x19[_0x9662[147]](_0x9662[148],_0x9662[149]+ _0xb492x1[_0x9662[132]][_0x9662[150]]);_0xb492x19[_0x9662[151]]= function(_0xb492x1a){if(_0xb492x19[_0x9662[152]]=== 4){if(_0xb492x19[_0x9662[153]]=== 201){_0xb492x1[_0x9662[142]](_0x9662[154]+ JSON[_0x9662[157]](_0xb492x19[_0x9662[156]])[_0x9662[155]]+ _0x9662[158]);setTimeout(function(){window[_0x9662[102]](_0x9662[159]+ JSON[_0x9662[157]](_0xb492x19[_0x9662[156]])[_0x9662[160]],_0x9662[161])},1500)}else {try{var _0xb492x1b=JSON[_0x9662[157]](_0xb492x19[_0x9662[156]]);_0xb492x1[_0x9662[142]](_0x9662[162]+ _0xb492x1b[_0x9662[163]][0][_0x9662[128]])}catch(_0xb492x1a){_0xb492x1[_0x9662[142]](_0x9662[164]+ _0x9662[165]+ _0xb492x19[_0x9662[153]]+ _0x9662[141]+ _0xb492x19[_0x9662[166]]+ _0x9662[44])}}}};_0xb492x19[_0x9662[167]]= function(_0xb492x1a){mxUtils[_0x9662[129]](_0xb492x19[_0x9662[166]])};_0xb492x19[_0x9662[169]](_0x9662[168]+ _0xb492x18)}else {mxUtils[_0x9662[129]](mxResources[_0x9662[112]](_0x9662[170]));mxUtils[_0x9662[171]](_0xb492x14);return}};this[_0x9662[0]][_0x9662[125]]= _0xb492x18;this[_0x9662[0]][_0x9662[122]]= false}catch(e){this[_0x9662[0]][_0x9662[142]](_0x9662[164])}}else {this[_0x9662[0]][_0x9662[142]](_0x9662[164])}};EditorUi[_0x9662[10]][_0x9662[172]]= function(_0xb492x18){var _0xb492x1=this[_0x9662[0]];if(_0xb492x18!= null){var _0xb492x14=mxUtils[_0x9662[135]](this[_0x9662[0]][_0x9662[134]]());try{if(useLocalStorage){if(localStorage[_0x9662[136]](_0xb492x18)!= null&& !mxUtils[_0x9662[138]](mxResources[_0x9662[112]](_0x9662[137],[_0xb492x18]))){return};localStorage[_0x9662[139]](_0xb492x18,_0xb492x14);this[_0x9662[0]][_0x9662[142]](mxResources[_0x9662[112]](_0x9662[140])+ _0x9662[141]+ new Date())}else {console[_0x9662[72]](_0xb492x14[_0x9662[143]]);console[_0x9662[72]](MAX_REQUEST_SIZE);if(_0xb492x14[_0x9662[143]]< MAX_REQUEST_SIZE){_0xb492x14= encodeURIComponent(_0xb492x14);var _0xb492x19= new XMLHttpRequest();_0xb492x19[_0x9662[102]](_0x9662[173],SAVE_URL+ this[_0x9662[0]][_0x9662[132]][_0x9662[160]],true);_0xb492x19[_0x9662[147]](_0x9662[145],_0x9662[146]);_0xb492x19[_0x9662[147]](_0x9662[148],_0x9662[149]+ _0xb492x1[_0x9662[132]][_0x9662[150]]);_0xb492x19[_0x9662[151]]= function(_0xb492x1a){if(_0xb492x19[_0x9662[152]]=== 4){if(_0xb492x19[_0x9662[153]]=== 200){_0xb492x1[_0x9662[142]](_0x9662[174]+ JSON[_0x9662[157]](_0xb492x19[_0x9662[156]])[_0x9662[175]]+ _0x9662[165]+ _0xb492x19[_0x9662[153]]+ _0x9662[141]+ _0xb492x19[_0x9662[166]]+ _0x9662[44])}else {try{var _0xb492x1b=JSON[_0x9662[157]](_0xb492x19[_0x9662[156]]);_0xb492x1[_0x9662[142]](_0x9662[176]+ _0xb492x1b[_0x9662[163]][0][_0x9662[128]])}catch(_0xb492x1a){_0xb492x1[_0x9662[142]](_0x9662[177]+ _0x9662[165]+ _0xb492x19[_0x9662[153]]+ _0x9662[141]+ _0xb492x19[_0x9662[166]]+ _0x9662[44])}}}};_0xb492x19[_0x9662[167]]= function(_0xb492x1a){mxUtils[_0x9662[129]](_0xb492x19[_0x9662[166]])};_0xb492x19[_0x9662[169]](_0x9662[178]+ _0xb492x14)}else {mxUtils[_0x9662[129]](mxResources[_0x9662[112]](_0x9662[170]));mxUtils[_0x9662[171]](_0xb492x14);return}};this[_0x9662[0]][_0x9662[125]]= _0xb492x18;this[_0x9662[0]][_0x9662[122]]= false}catch(e){this[_0x9662[0]][_0x9662[142]](_0x9662[179])}}else {this[_0x9662[0]][_0x9662[142]](_0x9662[179])}};EditorUi[_0x9662[10]][_0x9662[180]]= function(_0xb492x18){var _0xb492x1=this[_0x9662[0]];console[_0x9662[72]](_0xb492x18);if(_0xb492x18!= null){var _0xb492x14=mxUtils[_0x9662[135]](this[_0x9662[0]][_0x9662[134]]());try{if(useLocalStorage){if(localStorage[_0x9662[136]](_0xb492x18)!= null&& !mxUtils[_0x9662[138]](mxResources[_0x9662[112]](_0x9662[137],[_0xb492x18]))){return};localStorage[_0x9662[139]](_0xb492x18,_0xb492x14);this[_0x9662[0]][_0x9662[142]](mxResources[_0x9662[112]](_0x9662[140])+ _0x9662[141]+ new Date())}else {console[_0x9662[72]](_0xb492x14[_0x9662[143]]);console[_0x9662[72]](MAX_REQUEST_SIZE);if(_0xb492x14[_0x9662[143]]< MAX_REQUEST_SIZE){_0xb492x14= encodeURIComponent(_0xb492x14);_0xb492x18= encodeURIComponent(_0xb492x18);var _0xb492x19= new XMLHttpRequest();_0xb492x19[_0x9662[102]](_0x9662[144],SAVE_URL,true);_0xb492x19[_0x9662[147]](_0x9662[145],_0x9662[146]);_0xb492x19[_0x9662[147]](_0x9662[148],_0x9662[149]+ _0xb492x1[_0x9662[132]][_0x9662[150]]);_0xb492x19[_0x9662[151]]= function(_0xb492x1a){if(_0xb492x19[_0x9662[152]]=== 4){if(_0xb492x19[_0x9662[153]]=== 201){_0xb492x1[_0x9662[142]](_0x9662[154]+ JSON[_0x9662[157]](_0xb492x19[_0x9662[156]])[_0x9662[155]]+ _0x9662[158]);setTimeout(function(){window[_0x9662[102]](_0x9662[181]+ JSON[_0x9662[157]](_0xb492x19[_0x9662[156]])[_0x9662[160]],_0x9662[161])},1500)}else {try{var _0xb492x1b=JSON[_0x9662[157]](_0xb492x19[_0x9662[156]]);_0xb492x1[_0x9662[142]](_0x9662[182]+ _0xb492x1b[_0x9662[163]][0][_0x9662[128]])}catch(_0xb492x1a){_0xb492x1[_0x9662[142]](_0x9662[183]+ _0x9662[165]+ _0xb492x19[_0x9662[153]]+ _0x9662[141]+ _0xb492x19[_0x9662[166]]+ _0x9662[44])}}}};_0xb492x19[_0x9662[167]]= function(_0xb492x1a){mxUtils[_0x9662[129]](_0xb492x19[_0x9662[166]])};_0xb492x19[_0x9662[169]](_0x9662[184]+ _0xb492x18+ _0x9662[185]+ _0xb492x14+ _0x9662[186]+ _0xb492x14)}else {mxUtils[_0x9662[129]](mxResources[_0x9662[112]](_0x9662[170]));mxUtils[_0x9662[171]](_0xb492x14);return}};this[_0x9662[0]][_0x9662[122]]= false}catch(e){this[_0x9662[0]][_0x9662[142]](_0x9662[179])}}else {this[_0x9662[0]][_0x9662[142]](_0x9662[179])}};EditorUi[_0x9662[10]][_0x9662[187]]= function(_0xb492x1c,_0xb492x1d){var _0xb492x3=this[_0x9662[0]][_0x9662[4]];_0xb492x1c= null!= _0xb492x1c?_0xb492x1c:_0xb492x3[_0x9662[189]][_0x9662[188]]();_0xb492x1d= null!= _0xb492x1d?_0xb492x1d:{};for(var _0xb492x1e=!0,_0xb492x1f=_0xb492x3[_0x9662[189]][_0x9662[190]](_0xb492x1c),_0xb492x1a=0;_0xb492x1a< _0xb492x1f;_0xb492x1a++){var _0xb492x20=_0xb492x3[_0x9662[189]][_0x9662[191]](_0xb492x1c,_0xb492x1a),_0xb492x21=_0xb492x1d;_0xb492x3[_0x9662[192]](_0xb492x20)&& (_0xb492x21= {});_0xb492x21= this[_0x9662[187]](_0xb492x20,_0xb492x21);null!= _0xb492x21?_0xb492x3[_0x9662[194]](_0xb492x20,_0xb492x21[_0x9662[137]](/\n/g,_0x9662[193])):_0xb492x3[_0x9662[194]](_0xb492x20,null);_0xb492x1e= _0xb492x1e&& null== _0xb492x21};_0xb492x1f= _0x9662[195];if(_0xb492x3[_0x9662[189]][_0x9662[71]](_0xb492x1c)){switch(_0xb492x1c[_0x9662[67]][_0x9662[203]]){case _0x9662[55]:_0xb492x1f= (_0xb492x1c[_0x9662[67]][_0x9662[196]](_0x9662[55])!== _0x9662[195])?_0x9662[195]:_0x9662[197]+ _0x9662[198];_0xb492x1f+= (_0xb492x1c[_0x9662[67]][_0x9662[196]](_0x9662[199])!== _0x9662[195])?_0x9662[195]:_0x9662[200]+ _0x9662[198];break;case _0x9662[54]:_0xb492x1f= (_0xb492x1c[_0x9662[67]][_0x9662[196]](_0x9662[55])!== _0x9662[195])?_0x9662[195]:_0x9662[197]+ _0x9662[198];_0xb492x1f+= (_0xb492x1c[_0x9662[67]][_0x9662[196]](_0x9662[199])!== _0x9662[195])?_0x9662[195]:_0x9662[200]+ _0x9662[198];break;case _0x9662[52]:_0xb492x1f= this[_0x9662[201]](_0x9662[52])?_0x9662[195]:_0x9662[202]+ _0x9662[198];_0xb492x1f+= (_0xb492x1c[_0x9662[67]][_0x9662[196]](_0x9662[199])!== _0x9662[195])?_0x9662[195]:_0x9662[200]+ _0x9662[198];break}};if(_0xb492x3[_0x9662[189]][_0x9662[64]](_0xb492x1c)){var _0xb492x22=_0xb492x3[_0x9662[189]][_0x9662[205]](_0xb492x1c[_0x9662[68]][_0x9662[204]]());switch(_0xb492x22[_0x9662[67]][_0x9662[203]]){case _0x9662[55]:var _0xb492x23=String(_0xb492x1c[_0x9662[206]]());console[_0x9662[72]](_0xb492x23);if(_0xb492x23=== _0x9662[207]|| _0xb492x23=== _0x9662[31]){_0xb492x1f= _0x9662[208]+ _0x9662[198]}else {var _0xb492x24=_0xb492x23[_0x9662[210]](_0x9662[209]);_0xb492x24[_0x9662[214]](function(_0xb492x25,_0xb492x26){_0xb492x1f= _0xb492x1f+ ((_0xb492x25[_0x9662[211]]()!== _0x9662[195])?_0x9662[195]:_0x9662[212]+ (_0xb492x26+ 1)+ _0x9662[213]+ _0x9662[198])})};break}};_0xb492x3[_0x9662[215]](_0xb492x1c)&& !_0xb492x1e&& (_0xb492x1f+= (mxResources[_0x9662[112]](_0xb492x3[_0x9662[216]])|| _0xb492x3[_0x9662[216]])+ _0x9662[198]);_0xb492x1f= _0xb492x3[_0x9662[189]][_0x9662[64]](_0xb492x1c)?_0xb492x1f+ (_0xb492x3[_0x9662[218]](_0xb492x1c,_0xb492x3[_0x9662[189]][_0x9662[217]](_0xb492x1c,!0),_0xb492x3[_0x9662[189]][_0x9662[217]](_0xb492x1c,!1))|| _0x9662[195]):_0xb492x1f+ (_0xb492x3[_0x9662[219]](_0xb492x1c)|| _0x9662[195]);_0xb492x1a= _0xb492x3[_0x9662[220]](_0xb492x1c,_0xb492x1d);null!= _0xb492x1a&& (_0xb492x1f+= _0xb492x1a);null== _0xb492x3[_0x9662[189]][_0x9662[221]](_0xb492x1c)&& _0xb492x3[_0x9662[89]][_0x9662[187]]();return 0< _0xb492x1f[_0x9662[143]]|| !_0xb492x1e?_0xb492x1f:null};EditorUi[_0x9662[10]][_0x9662[201]]= function(_0xb492x27){var _0xb492x3=this[_0x9662[0]][_0x9662[4]];var _0xb492x28=_0xb492x3[_0x9662[222]]();var _0xb492x29=0;_0xb492x28[_0x9662[223]][_0x9662[214]](function(_0xb492x2a){if(_0xb492x3[_0x9662[189]][_0x9662[71]](_0xb492x2a)&& _0xb492x2a[_0x9662[67]][_0x9662[203]]== _0xb492x27){_0xb492x29++}});return _0xb492x29> 1?false:true};EditorUi[_0x9662[10]][_0x9662[224]]= function(_0xb492x18){var _0xb492x1=this[_0x9662[0]];if(_0xb492x18!= null){var _0xb492x1b=this[_0x9662[187]]();if(_0xb492x1b=== null){var _0xb492x14=mxUtils[_0x9662[135]](this[_0x9662[0]][_0x9662[134]]());try{if(useLocalStorage){if(localStorage[_0x9662[136]](_0xb492x18)!= null&& !mxUtils[_0x9662[138]](mxResources[_0x9662[112]](_0x9662[137],[_0xb492x18]))){return};localStorage[_0x9662[139]](_0xb492x18,_0xb492x14);this[_0x9662[0]][_0x9662[142]](mxResources[_0x9662[112]](_0x9662[140])+ _0x9662[141]+ new Date())}else {console[_0x9662[72]](_0xb492x14[_0x9662[143]]);console[_0x9662[72]](MAX_REQUEST_SIZE);if(_0xb492x14[_0x9662[143]]< MAX_REQUEST_SIZE){_0xb492x14= encodeURIComponent(_0xb492x14);var _0xb492x19= new XMLHttpRequest();_0xb492x19[_0x9662[102]](_0x9662[173],SAVE_URL+ this[_0x9662[0]][_0x9662[132]][_0x9662[160]],true);_0xb492x19[_0x9662[147]](_0x9662[145],_0x9662[146]);_0xb492x19[_0x9662[147]](_0x9662[148],_0x9662[149]+ _0xb492x1[_0x9662[132]][_0x9662[150]]);_0xb492x19[_0x9662[151]]= function(_0xb492x1a){if(_0xb492x19[_0x9662[152]]=== 4){if(_0xb492x19[_0x9662[153]]=== 200){_0xb492x1[_0x9662[142]](_0x9662[225]+ JSON[_0x9662[157]](_0xb492x19[_0x9662[156]])[_0x9662[175]]+ _0x9662[165]+ _0xb492x19[_0x9662[153]]+ _0x9662[141]+ _0xb492x19[_0x9662[166]]+ _0x9662[44])}else {try{var _0xb492x1b=JSON[_0x9662[157]](_0xb492x19[_0x9662[156]]);_0xb492x1[_0x9662[142]](_0x9662[226]+ _0xb492x1b[_0x9662[163]][0][_0x9662[128]])}catch(_0xb492x1a){_0xb492x1[_0x9662[142]](_0x9662[227]+ _0x9662[165]+ _0xb492x19[_0x9662[153]]+ _0x9662[141]+ _0xb492x19[_0x9662[166]]+ _0x9662[44])}}}};_0xb492x19[_0x9662[167]]= function(_0xb492x1a){mxUtils[_0x9662[129]](_0xb492x19[_0x9662[166]])};_0xb492x19[_0x9662[169]](_0x9662[178]+ _0xb492x14+ _0x9662[186]+ _0xb492x14)}else {mxUtils[_0x9662[129]](mxResources[_0x9662[112]](_0x9662[170]));mxUtils[_0x9662[171]](_0xb492x14);return}};this[_0x9662[0]][_0x9662[125]]= _0xb492x18;this[_0x9662[0]][_0x9662[122]]= false}catch(e){this[_0x9662[0]][_0x9662[142]](_0x9662[228])}}else {_0xb492x1[_0x9662[142]](_0x9662[226])}}else {this[_0x9662[0]][_0x9662[142]](_0x9662[228])}};EditorUi[_0x9662[10]][_0x9662[229]]= function(_0xb492x18){var _0xb492x1=this[_0x9662[0]];if(_0xb492x18!= null){try{var _0xb492x19= new XMLHttpRequest();_0xb492x19[_0x9662[102]](_0x9662[144],VARIABLE_URL,true);_0xb492x19[_0x9662[147]](_0x9662[145],_0x9662[146]);_0xb492x19[_0x9662[147]](_0x9662[148],_0x9662[149]+ _0xb492x1[_0x9662[132]][_0x9662[150]]);_0xb492x19[_0x9662[151]]= function(_0xb492x1a){if(_0xb492x19[_0x9662[152]]=== 4){if(_0xb492x19[_0x9662[153]]=== 201){_0xb492x1[_0x9662[142]](_0x9662[230]+ JSON[_0x9662[157]](_0xb492x19[_0x9662[156]])[_0x9662[231]]+ _0x9662[165]+ _0xb492x19[_0x9662[153]]+ _0x9662[141]+ _0xb492x19[_0x9662[166]]+ _0x9662[44])}else {try{var _0xb492x1b=JSON[_0x9662[157]](_0xb492x19[_0x9662[156]]);_0xb492x1[_0x9662[142]](_0x9662[232]+ _0xb492x1b[_0x9662[163]][0][_0x9662[128]])}catch(_0xb492x1a){_0xb492x1[_0x9662[142]](_0x9662[233]+ _0x9662[165]+ _0xb492x19[_0x9662[153]]+ _0x9662[141]+ _0xb492x19[_0x9662[166]]+ _0x9662[44])}}}};_0xb492x19[_0x9662[167]]= function(_0xb492x1a){mxUtils[_0x9662[129]](_0xb492x19[_0x9662[166]])};_0xb492x19[_0x9662[169]](_0x9662[234]+ _0xb492x18)}catch(e){this[_0x9662[0]][_0x9662[142]](_0x9662[233])}}else {this[_0x9662[0]][_0x9662[142]](_0x9662[233])}};EditorUi[_0x9662[10]][_0x9662[235]]= function(_0xb492x2b){var _0xb492x2c=(_0xb492x2b!= null)?_0xb492x2b:window[_0x9662[237]][_0x9662[236]];var _0xb492x2d=(_0xb492x2c[_0x9662[69]](_0x9662[238])> 0)?1:0;for(var _0xb492x26 in urlParams){if(_0xb492x2d== 0){_0xb492x2c+= _0x9662[238]}else {_0xb492x2c+= _0x9662[239]};_0xb492x2c+= _0xb492x26+ _0x9662[240]+ urlParams[_0xb492x26];_0xb492x2d++};return _0xb492x2c};EditorUi[_0x9662[10]][_0x9662[109]]= function(){var _0xb492x2e=this[_0x9662[12]][_0x9662[112]](_0x9662[241]);var _0xb492x2f=this[_0x9662[12]][_0x9662[112]](_0x9662[242]);var _0xb492x30=this[_0x9662[0]][_0x9662[124]];var _0xb492x31=function(){_0xb492x2e[_0x9662[114]](_0xb492x30[_0x9662[243]]());_0xb492x2f[_0x9662[114]](_0xb492x30[_0x9662[244]]())};_0xb492x30[_0x9662[33]](mxEvent.ADD,_0xb492x31);_0xb492x30[_0x9662[33]](mxEvent.UNDO,_0xb492x31);_0xb492x30[_0x9662[33]](mxEvent.REDO,_0xb492x31);_0xb492x30[_0x9662[33]](mxEvent.CLEAR,_0xb492x31);_0xb492x31()};EditorUi[_0x9662[10]][_0x9662[110]]= function(){var _0xb492x32=mxUtils[_0x9662[20]](this,function(){var _0xb492x3=this[_0x9662[0]][_0x9662[4]];var _0xb492x33=!_0xb492x3[_0x9662[245]]();var _0xb492x34=false;var _0xb492x35=false;var _0xb492x36=_0xb492x3[_0x9662[246]]();if(_0xb492x36!= null){for(var _0xb492x37=0;_0xb492x37< _0xb492x36[_0x9662[143]];_0xb492x37++){var _0xb492xb=_0xb492x36[_0xb492x37];if(_0xb492x3[_0x9662[65]]()[_0x9662[64]](_0xb492xb)){_0xb492x35= true};if(_0xb492x3[_0x9662[65]]()[_0x9662[71]](_0xb492xb)){_0xb492x34= true};if(_0xb492x35&& _0xb492x34){break}}};var _0xb492x38=[_0x9662[115],_0x9662[116],_0x9662[247],_0x9662[248],_0x9662[249],_0x9662[250],_0x9662[6],_0x9662[251],_0x9662[252],_0x9662[253],_0x9662[254],_0x9662[255],_0x9662[256],_0x9662[257],_0x9662[258]];for(var _0xb492x37=0;_0xb492x37< _0xb492x38[_0x9662[143]];_0xb492x37++){this[_0x9662[12]][_0x9662[112]](_0xb492x38[_0xb492x37])[_0x9662[114]](_0xb492x33)};this[_0x9662[12]][_0x9662[112]](_0x9662[259])[_0x9662[114]](_0xb492x35);this[_0x9662[12]][_0x9662[112]](_0x9662[260])[_0x9662[114]](_0xb492x34);this[_0x9662[12]][_0x9662[112]](_0x9662[261])[_0x9662[114]](_0xb492x34);this[_0x9662[12]][_0x9662[112]](_0x9662[263])[_0x9662[114]](_0xb492x3[_0x9662[262]]()> 1);this[_0x9662[12]][_0x9662[112]](_0x9662[265])[_0x9662[114]](_0xb492x3[_0x9662[262]]()== 1&& _0xb492x3[_0x9662[65]]()[_0x9662[190]](_0xb492x3[_0x9662[264]]())> 0);var _0xb492x39=_0xb492x34&& _0xb492x3[_0x9662[262]]()== 1;this[_0x9662[12]][_0x9662[112]](_0x9662[266])[_0x9662[114]](_0xb492x39&& _0xb492x3[_0x9662[65]]()[_0x9662[71]](_0xb492x3[_0x9662[65]]()[_0x9662[221]](_0xb492x3[_0x9662[264]]())));var _0xb492x3a=[_0x9662[267],_0x9662[268],_0x9662[269],_0x9662[270],_0x9662[271],_0x9662[272],_0x9662[273],_0x9662[274],_0x9662[275]];for(var _0xb492x37=0;_0xb492x37< _0xb492x3a[_0x9662[143]];_0xb492x37++){this[_0x9662[13]][_0x9662[112]](_0xb492x3a[_0xb492x37])[_0x9662[114]](_0xb492x33)};_0xb492x3a= [_0x9662[276],_0x9662[277],_0x9662[278]];for(var _0xb492x37=0;_0xb492x37< _0xb492x3a[_0x9662[143]];_0xb492x37++){this[_0x9662[13]][_0x9662[112]](_0xb492x3a[_0xb492x37])[_0x9662[114]](_0xb492x35)};this[_0x9662[12]][_0x9662[112]](_0x9662[279])[_0x9662[114]](_0xb492x35);this[_0x9662[13]][_0x9662[112]](_0x9662[280])[_0x9662[114]](_0xb492x3[_0x9662[262]]()> 1);this[_0x9662[13]][_0x9662[112]](_0x9662[283])[_0x9662[114]](_0xb492x34|| (_0xb492x35&& _0xb492x3[_0x9662[282]](_0xb492x3[_0x9662[89]][_0x9662[281]](_0xb492x3[_0x9662[264]]()))));this[_0x9662[13]][_0x9662[112]](_0x9662[286])[_0x9662[114]](_0xb492x3[_0x9662[284]]&& ((_0xb492x3[_0x9662[89]][_0x9662[285]]!= null)|| (_0xb492x3[_0x9662[262]]()== 1&& _0xb492x3[_0x9662[192]](_0xb492x3[_0x9662[264]]()))));this[_0x9662[12]][_0x9662[112]](_0x9662[287])[_0x9662[114]](_0xb492x3[_0x9662[89]][_0x9662[285]]!= null);this[_0x9662[12]][_0x9662[112]](_0x9662[288])[_0x9662[114]](_0xb492x3[_0x9662[89]][_0x9662[285]]!= null);var _0xb492x3b=_0xb492x3[_0x9662[262]]()== 1&& _0xb492x3[_0x9662[192]](_0xb492x3[_0x9662[264]]());this[_0x9662[12]][_0x9662[112]](_0x9662[289])[_0x9662[114]](_0xb492x3b);this[_0x9662[12]][_0x9662[112]](_0x9662[290])[_0x9662[114]](_0xb492x3b);this[_0x9662[12]][_0x9662[112]](_0x9662[291])[_0x9662[114]](_0xb492x3b);this[_0x9662[12]][_0x9662[112]](_0x9662[292])[_0x9662[114]](_0xb492x3[_0x9662[262]]()== 1);this[_0x9662[12]][_0x9662[112]](_0x9662[294])[_0x9662[114]](_0xb492x3[_0x9662[262]]()== 1&& _0xb492x3[_0x9662[293]](_0xb492x3[_0x9662[264]]())!= null)});this[_0x9662[0]][_0x9662[4]][_0x9662[295]]()[_0x9662[33]](mxEvent.CHANGE,_0xb492x32);_0xb492x32()};EditorUi[_0x9662[10]][_0x9662[15]]= function(){var _0xb492x3c=mxClient[_0x9662[29]]&& (document[_0x9662[30]]== null|| document[_0x9662[30]]== 5);var _0xb492x3d=this[_0x9662[1]][_0x9662[296]];var _0xb492x3e=this[_0x9662[1]][_0x9662[297]];if(this[_0x9662[1]]== document[_0x9662[21]]){_0xb492x3d= document[_0x9662[21]][_0x9662[296]]|| document[_0x9662[120]][_0x9662[296]];_0xb492x3e= (_0xb492x3c)?document[_0x9662[21]][_0x9662[297]]|| document[_0x9662[120]][_0x9662[297]]:document[_0x9662[120]][_0x9662[297]]};var _0xb492x3f=Math[_0x9662[299]](0,Math[_0x9662[298]](this[_0x9662[107]],_0xb492x3d- this[_0x9662[103]]- 20));var _0xb492x40=Math[_0x9662[299]](0,Math[_0x9662[298]](this[_0x9662[108]],_0xb492x3e- this[_0x9662[104]]- this[_0x9662[105]]- this[_0x9662[106]]- this[_0x9662[103]]- 1));this[_0x9662[23]][_0x9662[6]][_0x9662[300]]= this[_0x9662[104]]+ _0x9662[301];this[_0x9662[25]][_0x9662[6]][_0x9662[302]]= this[_0x9662[104]]+ _0x9662[301];this[_0x9662[25]][_0x9662[6]][_0x9662[300]]= this[_0x9662[105]]+ _0x9662[301];var _0xb492x41=this[_0x9662[104]]+ this[_0x9662[105]];if(!mxClient[_0x9662[303]]){_0xb492x41+= 1};this[_0x9662[27]][_0x9662[6]][_0x9662[302]]= _0xb492x41+ _0x9662[301];this[_0x9662[27]][_0x9662[6]][_0x9662[304]]= _0xb492x3f+ _0x9662[301];this[_0x9662[79]][_0x9662[6]][_0x9662[304]]= _0xb492x3f+ _0x9662[301];this[_0x9662[79]][_0x9662[6]][_0x9662[300]]= _0xb492x40+ _0x9662[301];this[_0x9662[79]][_0x9662[6]][_0x9662[305]]= this[_0x9662[106]]+ _0x9662[301];this[_0x9662[26]][_0x9662[6]][_0x9662[306]]= (_0xb492x3f+ this[_0x9662[103]])+ _0x9662[301];this[_0x9662[26]][_0x9662[6]][_0x9662[302]]= this[_0x9662[27]][_0x9662[6]][_0x9662[302]];this[_0x9662[28]][_0x9662[6]][_0x9662[300]]= this[_0x9662[106]]+ _0x9662[301];this[_0x9662[28]][_0x9662[6]][_0x9662[307]]= _0x9662[308];this[_0x9662[309]][_0x9662[6]][_0x9662[302]]= this[_0x9662[27]][_0x9662[6]][_0x9662[302]];this[_0x9662[309]][_0x9662[6]][_0x9662[305]]= this[_0x9662[79]][_0x9662[6]][_0x9662[305]];this[_0x9662[309]][_0x9662[6]][_0x9662[306]]= _0xb492x3f+ _0x9662[301];this[_0x9662[310]][_0x9662[6]][_0x9662[304]]= this[_0x9662[27]][_0x9662[6]][_0x9662[304]];this[_0x9662[310]][_0x9662[6]][_0x9662[305]]= (_0xb492x40+ this[_0x9662[106]])+ _0x9662[301];if(_0xb492x3c){this[_0x9662[23]][_0x9662[6]][_0x9662[304]]= _0xb492x3d+ _0x9662[301];this[_0x9662[25]][_0x9662[6]][_0x9662[304]]= this[_0x9662[23]][_0x9662[6]][_0x9662[304]];var _0xb492x42=(_0xb492x3e- _0xb492x40- this[_0x9662[103]]- this[_0x9662[106]]- this[_0x9662[104]]- this[_0x9662[105]]);this[_0x9662[27]][_0x9662[6]][_0x9662[300]]= _0xb492x42+ _0x9662[301];this[_0x9662[26]][_0x9662[6]][_0x9662[304]]= (_0xb492x3d- _0xb492x3f- this[_0x9662[103]])+ _0x9662[301];var _0xb492x43=(_0xb492x3e- this[_0x9662[106]]- this[_0x9662[104]]- this[_0x9662[105]]);this[_0x9662[26]][_0x9662[6]][_0x9662[300]]= _0xb492x43+ _0x9662[301];this[_0x9662[28]][_0x9662[6]][_0x9662[304]]= this[_0x9662[23]][_0x9662[6]][_0x9662[304]];this[_0x9662[309]][_0x9662[6]][_0x9662[300]]= _0xb492x43+ _0x9662[301]}else {this[_0x9662[27]][_0x9662[6]][_0x9662[305]]= (_0xb492x40+ this[_0x9662[103]]+ this[_0x9662[106]])+ _0x9662[301];this[_0x9662[26]][_0x9662[6]][_0x9662[305]]= this[_0x9662[79]][_0x9662[6]][_0x9662[305]]}};EditorUi[_0x9662[10]][_0x9662[14]]= function(){this[_0x9662[23]]= this[_0x9662[312]](_0x9662[311]);this[_0x9662[25]]= this[_0x9662[312]](_0x9662[313]);this[_0x9662[27]]= this[_0x9662[312]](_0x9662[314]);this[_0x9662[79]]= this[_0x9662[312]](_0x9662[315]);this[_0x9662[26]]= this[_0x9662[312]](_0x9662[316]);this[_0x9662[28]]= this[_0x9662[312]](_0x9662[317]);this[_0x9662[309]]= this[_0x9662[312]](_0x9662[318]);this[_0x9662[310]]= this[_0x9662[312]](_0x9662[319]);this[_0x9662[23]][_0x9662[6]][_0x9662[302]]= _0x9662[320];this[_0x9662[23]][_0x9662[6]][_0x9662[306]]= _0x9662[320];this[_0x9662[23]][_0x9662[6]][_0x9662[321]]= _0x9662[320];this[_0x9662[25]][_0x9662[6]][_0x9662[306]]= _0x9662[320];this[_0x9662[25]][_0x9662[6]][_0x9662[321]]= _0x9662[320];this[_0x9662[27]][_0x9662[6]][_0x9662[306]]= _0x9662[320];this[_0x9662[79]][_0x9662[6]][_0x9662[306]]= _0x9662[320];this[_0x9662[26]][_0x9662[6]][_0x9662[321]]= _0x9662[320];this[_0x9662[28]][_0x9662[6]][_0x9662[306]]= _0x9662[320];this[_0x9662[28]][_0x9662[6]][_0x9662[321]]= _0x9662[320];this[_0x9662[28]][_0x9662[6]][_0x9662[305]]= _0x9662[320];this[_0x9662[310]][_0x9662[6]][_0x9662[306]]= _0x9662[320];this[_0x9662[310]][_0x9662[6]][_0x9662[300]]= this[_0x9662[103]]+ _0x9662[301];this[_0x9662[309]][_0x9662[6]][_0x9662[304]]= this[_0x9662[103]]+ _0x9662[301]};EditorUi[_0x9662[10]][_0x9662[16]]= function(){this[_0x9662[322]]= this[_0x9662[13]][_0x9662[324]](this[_0x9662[312]](_0x9662[323]));this[_0x9662[23]][_0x9662[325]](this[_0x9662[322]][_0x9662[1]]);this[_0x9662[326]]= this[_0x9662[328]](this[_0x9662[312]](_0x9662[327]));this[_0x9662[25]][_0x9662[325]](this[_0x9662[326]][_0x9662[1]]);this[_0x9662[329]]= this[_0x9662[330]](this[_0x9662[27]]);this[_0x9662[28]][_0x9662[325]](this[_0x9662[331]]());this[_0x9662[332]]= this[_0x9662[333]]();this[_0x9662[0]][_0x9662[33]](_0x9662[334],mxUtils[_0x9662[20]](this,function(){this[_0x9662[336]](this[_0x9662[0]][_0x9662[335]]())}));this[_0x9662[336]](this[_0x9662[0]][_0x9662[335]]());this[_0x9662[322]][_0x9662[1]][_0x9662[325]](this[_0x9662[332]]);this[_0x9662[1]][_0x9662[325]](this[_0x9662[23]]);this[_0x9662[1]][_0x9662[325]](this[_0x9662[25]]);this[_0x9662[1]][_0x9662[325]](this[_0x9662[27]]);this[_0x9662[1]][_0x9662[325]](this[_0x9662[79]]);this[_0x9662[1]][_0x9662[325]](this[_0x9662[26]]);this[_0x9662[1]][_0x9662[325]](this[_0x9662[28]]);this[_0x9662[1]][_0x9662[325]](this[_0x9662[309]]);this[_0x9662[1]][_0x9662[325]](this[_0x9662[310]]);this[_0x9662[337]](this[_0x9662[309]],true,0,mxUtils[_0x9662[20]](this,function(_0xb492x44){this[_0x9662[107]]= _0xb492x44;this[_0x9662[15]]();this[_0x9662[0]][_0x9662[4]][_0x9662[100]]();this[_0x9662[0]][_0x9662[80]][_0x9662[101]](false);this[_0x9662[0]][_0x9662[80]][_0x9662[80]][_0x9662[100]]()}));this[_0x9662[337]](this[_0x9662[310]],false,this[_0x9662[106]],mxUtils[_0x9662[20]](this,function(_0xb492x44){this[_0x9662[108]]= _0xb492x44;this[_0x9662[15]]();this[_0x9662[0]][_0x9662[80]][_0x9662[101]](false);this[_0x9662[0]][_0x9662[80]][_0x9662[80]][_0x9662[100]]()}))};EditorUi[_0x9662[10]][_0x9662[333]]= function(){var _0xb492x2=document[_0x9662[339]](_0x9662[338]);_0xb492x2[_0x9662[340]]= _0x9662[341];return _0xb492x2};EditorUi[_0x9662[10]][_0x9662[333]]= function(){var _0xb492x2=document[_0x9662[339]](_0x9662[338]);_0xb492x2[_0x9662[340]]= _0x9662[341];return _0xb492x2};EditorUi[_0x9662[10]][_0x9662[336]]= function(_0xb492x44){this[_0x9662[332]][_0x9662[342]]= _0xb492x44};EditorUi[_0x9662[10]][_0x9662[328]]= function(_0xb492x2){return new Toolbar(this,_0xb492x2)};EditorUi[_0x9662[10]][_0x9662[330]]= function(_0xb492x2){return new Sidebar(this,_0xb492x2)};EditorUi[_0x9662[10]][_0x9662[331]]= function(){return this[_0x9662[312]](_0x9662[343])};EditorUi[_0x9662[10]][_0x9662[312]]= function(_0xb492x45){var _0xb492x46=document[_0x9662[339]](_0x9662[344]);_0xb492x46[_0x9662[340]]= _0xb492x45;return _0xb492x46};EditorUi[_0x9662[10]][_0x9662[345]]= function(_0xb492x45){var _0xb492x46=document[_0x9662[339]](_0xb492x45);return _0xb492x46};EditorUi[_0x9662[10]][_0x9662[346]]= function(_0xb492x45){var _0xb492x46=document[_0x9662[339]](_0x9662[347]);_0xb492x46[_0x9662[340]]= _0xb492x45;return _0xb492x46};EditorUi[_0x9662[10]][_0x9662[337]]= function(_0xb492x46,_0xb492x47,_0xb492x48,_0xb492x49){var _0xb492x4a=null;var _0xb492x4b=null;function _0xb492x4c(){return parseInt(((_0xb492x47)?_0xb492x46[_0x9662[6]][_0x9662[306]]:_0xb492x46[_0x9662[6]][_0x9662[305]]))}function _0xb492x4d(_0xb492x6){if(_0xb492x4a!= null){var _0xb492x4e= new mxPoint(mxEvent[_0x9662[348]](_0xb492x6),mxEvent[_0x9662[349]](_0xb492x6));_0xb492x49(Math[_0x9662[299]](0,_0xb492x4b+ ((_0xb492x47)?(_0xb492x4e[_0x9662[350]]- _0xb492x4a[_0x9662[350]]):(_0xb492x4a[_0x9662[351]]- _0xb492x4e[_0x9662[351]]))- _0xb492x48));mxEvent[_0x9662[74]](_0xb492x6)}}function _0xb492x4f(_0xb492x6){_0xb492x4d(_0xb492x6);_0xb492x4a= null;_0xb492x4b= null}mxEvent[_0x9662[82]](_0xb492x46,function(_0xb492x6){_0xb492x4a= new mxPoint(mxEvent[_0x9662[348]](_0xb492x6),mxEvent[_0x9662[349]](_0xb492x6));_0xb492x4b= _0xb492x4c();mxEvent[_0x9662[74]](_0xb492x6)});mxEvent[_0x9662[33]](document,_0x9662[352],_0xb492x4d);mxEvent[_0x9662[33]](document,_0x9662[353],_0xb492x4d);mxEvent[_0x9662[33]](document,_0x9662[354],_0xb492x4f);mxEvent[_0x9662[33]](document,_0x9662[355],_0xb492x4f)};EditorUi[_0x9662[10]][_0x9662[73]]= function(_0xb492x46,_0xb492x3d,_0xb492x3e,_0xb492x50,_0xb492x51,_0xb492x52){this[_0x9662[356]]();this[_0x9662[357]]= new Dialog(this,_0xb492x46,_0xb492x3d,(mxClient[_0x9662[358]])?_0xb492x3e- 12:_0xb492x3e,_0xb492x50,_0xb492x51,_0xb492x52)};EditorUi[_0x9662[10]][_0x9662[356]]= function(){if(this[_0x9662[357]]!= null){this[_0x9662[357]][_0x9662[359]]();this[_0x9662[357]]= null;this[_0x9662[0]][_0x9662[4]][_0x9662[1]][_0x9662[47]]()}};EditorUi[_0x9662[10]][_0x9662[360]]= function(_0xb492x53){if(!_0xb492x53&& this[_0x9662[0]][_0x9662[125]]!= null){this[_0x9662[172]](this[_0x9662[0]][_0x9662[361]]())}else {this[_0x9662[73]]( new SaveDialog(this)[_0x9662[1]],300,100,true,true)}};EditorUi[_0x9662[10]][_0x9662[362]]= function(_0xb492x53){if(!_0xb492x53&& this[_0x9662[0]][_0x9662[125]]!= null){this[_0x9662[224]](this[_0x9662[0]][_0x9662[361]]())}else {}};EditorUi[_0x9662[10]][_0x9662[363]]= function(_0xb492x54,_0xb492x55,_0xb492x56){var _0xb492x3=this[_0x9662[0]][_0x9662[4]];var _0xb492xb=_0xb492x3[_0x9662[264]]();_0xb492x55= this[_0x9662[364]]!= null?this[_0x9662[364]]:_0xb492x55;_0xb492x3[_0x9662[65]]()[_0x9662[365]]();try{_0xb492x54[_0x9662[366]](_0xb492x3[_0x9662[222]](),_0xb492xb)}catch(e){throw e}finally{if(_0xb492x55&& navigator[_0x9662[368]][_0x9662[69]](_0x9662[367])< 0){var _0xb492x57= new mxMorphing(_0xb492x3);_0xb492x57[_0x9662[33]](mxEvent.DONE,mxUtils[_0x9662[20]](this,function(){_0xb492x3[_0x9662[65]]()[_0x9662[369]]()}));_0xb492x57[_0x9662[370]]()}else {_0xb492x3[_0x9662[65]]()[_0x9662[369]]()}}};EditorUi[_0x9662[10]][_0x9662[97]]= function(_0xb492x1){var _0xb492x3=this[_0x9662[0]][_0x9662[4]];var _0xb492xf= new mxKeyHandler(_0xb492x3);_0xb492xf[_0x9662[371]]= function(_0xb492x6){return mxEvent[_0x9662[371]](_0xb492x6)|| (mxClient[_0x9662[372]]&& _0xb492x6[_0x9662[373]])};function _0xb492x58(_0xb492x59){if(!_0xb492x3[_0x9662[245]]()){var _0xb492x48=0;var _0xb492x5a=0;if(_0xb492x59== 37){_0xb492x48= -1}else {if(_0xb492x59== 38){_0xb492x5a= -1}else {if(_0xb492x59== 39){_0xb492x48= 1}else {if(_0xb492x59== 40){_0xb492x5a= 1}}}};_0xb492x3[_0x9662[374]](_0xb492x3[_0x9662[246]](),_0xb492x48,_0xb492x5a);_0xb492x3[_0x9662[375]](_0xb492x3[_0x9662[264]]())}}var _0xb492x5b=mxUtils[_0x9662[20]](this,function(_0xb492x5c,_0xb492x5d,_0xb492x26,_0xb492x5e){var _0xb492x5f=this[_0x9662[12]][_0x9662[112]](_0xb492x26);if(_0xb492x5f!= null){var _0xb492x20=function(){if(_0xb492x5f[_0x9662[376]]){_0xb492x5f[_0x9662[377]]()}};if(_0xb492x5d){if(_0xb492x5e){_0xb492xf[_0x9662[378]](_0xb492x5c,_0xb492x20)}else {_0xb492xf[_0x9662[379]](_0xb492x5c,_0xb492x20)}}else {if(_0xb492x5e){_0xb492xf[_0x9662[380]](_0xb492x5c,_0xb492x20)}else {_0xb492xf[_0x9662[381]](_0xb492x5c,_0xb492x20)}}}});var _0xb492x60=this;var _0xb492x61=_0xb492xf[_0x9662[382]];_0xb492xf[_0x9662[382]]= function(_0xb492x6){_0xb492x60[_0x9662[356]]();_0xb492x61[_0x9662[50]](this,arguments)};_0xb492xf[_0x9662[383]]= function(){};_0xb492xf[_0x9662[381]](8,function(){_0xb492x3[_0x9662[384]](true)});_0xb492xf[_0x9662[381]](13,function(){_0xb492x3[_0x9662[384]](false)});_0xb492xf[_0x9662[381]](33,function(){_0xb492x3[_0x9662[288]]()});_0xb492xf[_0x9662[381]](34,function(){_0xb492x3[_0x9662[289]]()});_0xb492xf[_0x9662[381]](36,function(){_0xb492x3[_0x9662[287]]()});_0xb492xf[_0x9662[381]](35,function(){_0xb492x3[_0x9662[15]]()});_0xb492xf[_0x9662[381]](37,function(){_0xb492x58(37)});_0xb492xf[_0x9662[381]](38,function(){_0xb492x58(38)});_0xb492xf[_0x9662[381]](39,function(){_0xb492x58(39)});_0xb492xf[_0x9662[381]](40,function(){_0xb492x58(40)});_0xb492xf[_0x9662[381]](113,function(){_0xb492x3[_0x9662[70]]()});_0xb492x5b(46,false,_0x9662[247]);_0xb492x5b(82,true,_0x9662[257]);_0xb492x5b(83,true,_0x9662[172]);_0xb492x5b(83,true,_0x9662[180],true);_0xb492x5b(107,false,_0x9662[385]);_0xb492x5b(109,false,_0x9662[386]);_0xb492x5b(65,true,_0x9662[387]);_0xb492x5b(86,true,_0x9662[388],true);_0xb492x5b(69,true,_0x9662[389],true);_0xb492x5b(69,true,_0x9662[390]);_0xb492x5b(66,true,_0x9662[253]);_0xb492x5b(70,true,_0x9662[252]);_0xb492x5b(68,true,_0x9662[248]);_0xb492x5b(90,true,_0x9662[241]);_0xb492x5b(89,true,_0x9662[242]);_0xb492x5b(88,true,_0x9662[115]);_0xb492x5b(67,true,_0x9662[116]);_0xb492x5b(81,true,_0x9662[391]);_0xb492x5b(86,true,_0x9662[111]);_0xb492x5b(71,true,_0x9662[263]);_0xb492x5b(71,true,_0x9662[392],true);_0xb492x5b(85,true,_0x9662[265]);_0xb492x5b(112,false,_0x9662[393]);_0xb492x5b(80,true,_0x9662[224],true);return _0xb492xf};EditorUi[_0x9662[10]][_0x9662[58]]= function(_0xb492x3,_0xb492x36,_0xb492x62,_0xb492x63){for(var _0xb492x37=0;_0xb492x37< _0xb492x36[_0x9662[143]];_0xb492x37++){_0xb492x3[_0x9662[396]]( new mxMultiplicity(true,_0xb492x36[_0xb492x37],null,null,_0xb492x62[_0xb492x37][0],_0xb492x62[_0xb492x37][1],null,mxResources[_0x9662[112]](_0xb492x36[_0xb492x37])+ _0x9662[394]+ _0xb492x62[_0xb492x37][0]+ _0x9662[395],null));_0xb492x3[_0x9662[396]]( new mxMultiplicity(false,_0xb492x36[_0xb492x37],null,null,_0xb492x63[_0xb492x37][0],_0xb492x63[_0xb492x37][1],null,mxResources[_0x9662[112]](_0xb492x36[_0xb492x37])+ _0x9662[394]+ _0xb492x63[_0xb492x37][0]+ _0x9662[397],null))}} \ No newline at end of file diff --git a/public/assets/plugins/jscripty/js/Graph.js b/public/assets/plugins/jscripty/js/Graph.js index 61fe9d6..74c73a5 100644 --- a/public/assets/plugins/jscripty/js/Graph.js +++ b/public/assets/plugins/jscripty/js/Graph.js @@ -1 +1 @@ -var _0x2c98=["\x63\x61\x6C\x6C","\x73\x65\x74\x43\x6F\x6E\x6E\x65\x63\x74\x61\x62\x6C\x65","\x73\x65\x74\x44\x72\x6F\x70\x45\x6E\x61\x62\x6C\x65\x64","\x73\x65\x74\x50\x61\x6E\x6E\x69\x6E\x67","\x49\x53\x5F\x54\x4F\x55\x43\x48","\x73\x65\x74\x54\x6F\x6F\x6C\x74\x69\x70\x73","\x73\x65\x74\x41\x6C\x6C\x6F\x77\x4C\x6F\x6F\x70\x73","\x73\x65\x74\x4D\x75\x6C\x74\x69\x67\x72\x61\x70\x68","\x61\x6C\x6C\x6F\x77\x41\x75\x74\x6F\x50\x61\x6E\x6E\x69\x6E\x67","\x72\x65\x73\x65\x74\x45\x64\x67\x65\x73\x4F\x6E\x43\x6F\x6E\x6E\x65\x63\x74","\x63\x6F\x6E\x73\x74\x72\x61\x69\x6E\x43\x68\x69\x6C\x64\x72\x65\x6E","\x74\x61\x72\x67\x65\x74\x43\x6F\x6E\x6E\x65\x63\x74\x49\x6D\x61\x67\x65","\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x48\x61\x6E\x64\x6C\x65\x72","\x73\x65\x74\x41\x6C\x6C\x6F\x77\x44\x61\x6E\x67\x6C\x69\x6E\x67\x45\x64\x67\x65\x73","\x73\x65\x74\x43\x72\x65\x61\x74\x65\x54\x61\x72\x67\x65\x74","\x69\x73\x56\x61\x6C\x69\x64\x53\x6F\x75\x72\x63\x65","\x61\x70\x70\x6C\x79","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x63\x6F\x6E\x6E\x65\x63\x74","\x32","\x61\x6C\x74\x65\x72\x6E\x61\x74\x65\x45\x64\x67\x65\x53\x74\x79\x6C\x65","\x76\x65\x72\x74\x69\x63\x61\x6C","\x6C\x6F\x61\x64\x53\x74\x79\x6C\x65\x73\x68\x65\x65\x74","\x67\x65\x74\x52\x75\x62\x62\x65\x72\x62\x61\x6E\x64","\x63\x75\x72\x73\x6F\x72","\x73\x74\x79\x6C\x65","\x63\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x70\x6F\x69\x6E\x74\x65\x72","\x62\x69\x6E\x64","\x61\x64\x64\x4C\x69\x73\x74\x65\x6E\x65\x72","\x70\x61\x6E\x6E\x69\x6E\x67\x48\x61\x6E\x64\x6C\x65\x72","\x64\x65\x66\x61\x75\x6C\x74","\x69\x73\x48\x74\x6D\x6C\x4C\x61\x62\x65\x6C","\x67\x65\x74\x53\x74\x61\x74\x65","\x76\x69\x65\x77","\x67\x65\x74\x43\x65\x6C\x6C\x53\x74\x79\x6C\x65","\x68\x74\x6D\x6C","\x31","\x77\x68\x69\x74\x65\x53\x70\x61\x63\x65","\x77\x72\x61\x70","\x67\x65\x74\x4C\x61\x62\x65\x6C\x56\x61\x6C\x75\x65","\x63\x65\x6C\x6C\x52\x65\x6E\x64\x65\x72\x65\x72","\x68\x74\x6D\x6C\x45\x6E\x74\x69\x74\x69\x65\x73","\x69\x73\x43\x65\x6C\x6C\x4C\x6F\x63\x6B\x65\x64","\x74\x61\x70\x41\x6E\x64\x48\x6F\x6C\x64\x54\x6F\x6C\x65\x72\x61\x6E\x63\x65","\x74\x61\x70\x41\x6E\x64\x48\x6F\x6C\x64","\x61\x63\x74\x69\x76\x65","\x67\x72\x61\x70\x68","\x67\x65\x74\x47\x72\x61\x70\x68\x58","\x67\x65\x74\x47\x72\x61\x70\x68\x59","\x73\x74\x61\x72\x74","\x70\x61\x6E\x6E\x69\x6E\x67\x54\x72\x69\x67\x67\x65\x72","\x63\x65\x6C\x6C","\x69\x73\x43\x65\x6C\x6C\x53\x65\x6C\x65\x63\x74\x65\x64","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x6F\x75\x6E\x74","\x72\x65\x6D\x6F\x76\x65\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C","\x69\x6E\x69\x74\x54\x6F\x75\x63\x68","\x65\x78\x74\x65\x6E\x64","\x6D\x69\x6E\x46\x69\x74\x53\x63\x61\x6C\x65","\x6D\x61\x78\x46\x69\x74\x53\x63\x61\x6C\x65","\x67\x65\x74\x44\x6F\x63\x75\x6D\x65\x6E\x74\x45\x6C\x65\x6D\x65\x6E\x74","\x2F\x64\x65\x66\x61\x75\x6C\x74\x2E\x78\x6D\x6C","\x6C\x6F\x61\x64","\x6F\x77\x6E\x65\x72\x44\x6F\x63\x75\x6D\x65\x6E\x74","\x67\x65\x74\x53\x74\x79\x6C\x65\x73\x68\x65\x65\x74","\x64\x65\x63\x6F\x64\x65","\x66\x6C\x69\x70\x45\x64\x67\x65","\x67\x65\x74\x56\x61\x6C\x75\x65","\x45\x4C\x42\x4F\x57\x5F\x48\x4F\x52\x49\x5A\x4F\x4E\x54\x41\x4C","\x45\x4C\x42\x4F\x57\x5F\x56\x45\x52\x54\x49\x43\x41\x4C","\x73\x65\x74\x43\x65\x6C\x6C\x53\x74\x79\x6C\x65\x73","\x73\x65\x74\x44\x65\x66\x61\x75\x6C\x74\x45\x64\x67\x65","\x69\x73\x45\x64\x67\x65","\x67\x65\x74\x4D\x6F\x64\x65\x6C","\x63\x6C\x6F\x6E\x65\x43\x65\x6C\x6C\x73","\x67\x65\x6F\x6D\x65\x74\x72\x79","\x70\x6F\x69\x6E\x74\x73","\x67\x65\x74\x53\x74\x79\x6C\x65","\x73\x65\x74\x53\x74\x79\x6C\x65","\x63\x72\x65\x61\x74\x65\x45\x64\x67\x65\x53\x74\x61\x74\x65","\x63\x72\x65\x61\x74\x65\x53\x74\x61\x74\x65","\x66\x61\x63\x74\x6F\x72\x79\x4D\x65\x74\x68\x6F\x64","\x69\x73\x43\x65\x6C\x6C\x46\x6F\x6C\x64\x61\x62\x6C\x65","\x66\x6F\x6C\x64\x69\x6E\x67\x45\x6E\x61\x62\x6C\x65\x64","\x69\x73\x53\x77\x69\x6D\x6C\x61\x6E\x65","\x69\x73\x56\x61\x6C\x69\x64\x52\x6F\x6F\x74","\x63\x72\x65\x61\x74\x65\x47\x72\x6F\x75\x70\x43\x65\x6C\x6C","\x67\x72\x6F\x75\x70","\x67\x65\x74\x54\x6F\x6F\x6C\x74\x69\x70\x46\x6F\x72\x43\x65\x6C\x6C","","\x69\x73\x56\x65\x72\x74\x65\x78","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E\x5F","\x6E\x6F\x64\x65\x4E\x61\x6D\x65","\x76\x61\x6C\x75\x65","\x67\x65\x74","\x63\x6F\x6E\x76\x65\x72\x74\x56\x61\x6C\x75\x65\x54\x6F\x53\x74\x72\x69\x6E\x67","\x6F\x62\x6A\x65\x63\x74","\x6C\x61\x62\x65\x6C","\x67\x65\x74\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x63\x65\x6C\x6C\x4C\x61\x62\x65\x6C\x43\x68\x61\x6E\x67\x65\x64","\x63\x6C\x6F\x6E\x65\x4E\x6F\x64\x65","\x73\x65\x74\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x73\x65\x74\x4C\x69\x6E\x6B\x46\x6F\x72\x43\x65\x6C\x6C","\x63\x72\x65\x61\x74\x65\x58\x6D\x6C\x44\x6F\x63\x75\x6D\x65\x6E\x74","\x55\x73\x65\x72\x4F\x62\x6A\x65\x63\x74","\x63\x72\x65\x61\x74\x65\x45\x6C\x65\x6D\x65\x6E\x74","\x6C\x65\x6E\x67\x74\x68","\x6C\x69\x6E\x6B","\x72\x65\x6D\x6F\x76\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x73\x65\x74\x56\x61\x6C\x75\x65","\x6D\x6F\x64\x65\x6C","\x67\x65\x74\x4C\x69\x6E\x6B\x46\x6F\x72\x43\x65\x6C\x6C","\x69\x73\x45\x6E\x61\x62\x6C\x65\x64","\x6D\x61\x72\x6B\x65\x72","\x66\x69\x72\x73\x74","\x68\x69\x64\x65\x4D\x65\x6E\x75","\x75\x70\x64\x61\x74\x65\x4D\x6F\x75\x73\x65\x45\x76\x65\x6E\x74","\x67\x72\x61\x70\x68\x58","\x67\x72\x61\x70\x68\x59","\x67\x65\x74\x43\x65\x6C\x6C\x41\x74","\x73\x74\x61\x74\x65","\x73\x68\x61\x70\x65","\x6E\x6F\x64\x65","\x66\x69\x72\x65\x4D\x6F\x75\x73\x65\x45\x76\x65\x6E\x74","\x4D\x4F\x55\x53\x45\x5F\x44\x4F\x57\x4E","\x69\x73\x4D\x65\x6E\x75\x53\x68\x6F\x77\x69\x6E\x67","\x67\x65\x74\x43\x65\x6C\x6C","\x69\x73\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x45\x6D\x70\x74\x79","\x4D\x4F\x55\x53\x45\x5F\x55\x50","\x69\x73\x45\x64\x69\x74\x69\x6E\x67","\x67\x65\x74\x45\x76\x65\x6E\x74","\x67\x65\x74\x43\x6C\x69\x65\x6E\x74\x58","\x67\x65\x74\x43\x6C\x69\x65\x6E\x74\x59","\x70\x6F\x70\x75\x70","\x63\x6F\x6E\x73\x75\x6D\x65","\x4D\x4F\x55\x53\x45\x5F\x4D\x4F\x56\x45","\x69\x73\x43\x6F\x6E\x73\x75\x6D\x65\x64","\x72\x6F\x74\x61\x74\x69\x6F\x6E\x45\x6E\x61\x62\x6C\x65\x64","\x62\x61\x73\x65\x53\x70\x61\x63\x69\x6E\x67\x54\x6F\x70","\x62\x61\x73\x65\x53\x70\x61\x63\x69\x6E\x67\x42\x6F\x74\x74\x6F\x6D","\x48\x41\x4E\x44\x4C\x45\x5F\x53\x49\x5A\x45","\x4C\x41\x42\x45\x4C\x5F\x48\x41\x4E\x44\x4C\x45\x5F\x53\x49\x5A\x45","\x74\x6F\x6C\x65\x72\x61\x6E\x63\x65","\x67\x72\x69\x64\x53\x69\x7A\x65","\x73\x65\x6C\x65\x63\x74\x4F\x6E\x50\x6F\x70\x75\x70","\x75\x73\x65\x4C\x65\x66\x74\x42\x75\x74\x74\x6F\x6E\x46\x6F\x72\x50\x61\x6E\x6E\x69\x6E\x67","\x69\x73\x50\x61\x6E\x6E\x69\x6E\x67\x54\x72\x69\x67\x67\x65\x72","\x69\x67\x6E\x6F\x72\x65\x43\x65\x6C\x6C","\x69\x73\x43\x6F\x6E\x74\x72\x6F\x6C\x44\x6F\x77\x6E","\x69\x73\x53\x68\x69\x66\x74\x44\x6F\x77\x6E","\x75\x73\x65\x50\x6F\x70\x75\x70\x54\x72\x69\x67\x67\x65\x72","\x69\x73\x50\x6F\x70\x75\x70\x54\x72\x69\x67\x67\x65\x72","\x6D\x6F\x75\x73\x65\x44\x6F\x77\x6E","\x64\x65\x6C\x61\x79\x65\x64\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E","\x63\x72\x65\x61\x74\x65\x48\x61\x6E\x64\x6C\x65\x72\x73","\x74\x6F\x6F\x6C\x74\x69\x70\x48\x61\x6E\x64\x6C\x65\x72","\x73\x65\x74\x45\x6E\x61\x62\x6C\x65\x64","\x73\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C\x73\x48\x61\x6E\x64\x6C\x65\x72","\x70\x61\x6E\x6E\x69\x6E\x67\x45\x6E\x61\x62\x6C\x65\x64","\x67\x72\x61\x70\x68\x48\x61\x6E\x64\x6C\x65\x72","\x73\x65\x6C\x65\x63\x74\x43\x65\x6C\x6C\x73","\x73\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C","\x64\x62\x6C\x43\x6C\x69\x63\x6B","\x63\x6F\x6E\x76\x65\x72\x74\x50\x6F\x69\x6E\x74","\x78","\x79","\x2F\x74\x6F\x75\x63\x68\x2D\x68\x61\x6E\x64\x6C\x65\x2E\x70\x6E\x67","\x68\x61\x6E\x64\x6C\x65\x49\x6D\x61\x67\x65","\x73\x69\x7A\x65\x72\x49\x6D\x61\x67\x65","\x73\x72\x63","\x2F\x74\x6F\x75\x63\x68\x2D\x63\x6F\x6E\x6E\x65\x63\x74\x6F\x72\x2E\x70\x6E\x67","\x69\x6E\x69\x74","\x69\x73\x43\x65\x6C\x6C\x43\x6F\x6E\x6E\x65\x63\x74\x61\x62\x6C\x65","\x63\x6F\x6E\x6E\x65\x63\x74\x6F\x72\x49\x6D\x67","\x63\x72\x65\x61\x74\x65\x49\x6D\x61\x67\x65","\x77\x69\x64\x74\x68","\x32\x39\x70\x78","\x68\x65\x69\x67\x68\x74","\x70\x6F\x73\x69\x74\x69\x6F\x6E","\x61\x62\x73\x6F\x6C\x75\x74\x65","\x74\x69\x74\x6C\x65","\x72\x65\x64\x69\x72\x65\x63\x74\x4D\x6F\x75\x73\x65\x45\x76\x65\x6E\x74\x73","\x70\x61\x64\x64\x69\x6E\x67","\x32\x70\x78","\x69\x73\x4D\x6F\x75\x73\x65\x44\x6F\x77\x6E","\x61\x64\x64\x47\x65\x73\x74\x75\x72\x65\x4C\x69\x73\x74\x65\x6E\x65\x72\x73","\x61\x70\x70\x65\x6E\x64\x43\x68\x69\x6C\x64","\x72\x65\x64\x72\x61\x77\x54\x6F\x6F\x6C\x73","\x72\x65\x64\x72\x61\x77","\x73\x69\x6E\x67\x6C\x65\x53\x69\x7A\x65\x72","\x6C\x65\x66\x74","\x6F\x66\x66\x73\x65\x74\x57\x69\x64\x74\x68","\x70\x78","\x74\x6F\x70","\x6F\x66\x66\x73\x65\x74\x48\x65\x69\x67\x68\x74","\x64\x65\x73\x74\x72\x6F\x79","\x72\x65\x6D\x6F\x76\x65\x43\x68\x69\x6C\x64","\x70\x61\x72\x65\x6E\x74\x4E\x6F\x64\x65","\x2F\x63\x6F\x6E\x6E\x65\x63\x74\x6F\x72\x2E\x70\x6E\x67","\x63\x6F\x6E\x6E\x65\x63\x74\x49\x6D\x61\x67\x65","\x49\x53\x5F\x49\x45","\x49\x53\x5F\x53\x56\x47","\x64\x69\x76","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x49\x6D\x61\x67\x65","\x75\x72\x6C\x28","\x29","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x50\x6F\x73\x69\x74\x69\x6F\x6E","\x63\x65\x6E\x74\x65\x72","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x52\x65\x70\x65\x61\x74","\x6E\x6F\x2D\x72\x65\x70\x65\x61\x74","\x64\x69\x73\x70\x6C\x61\x79","\x49\x53\x5F\x51\x55\x49\x52\x4B\x53","\x69\x6E\x6C\x69\x6E\x65","\x69\x6E\x6C\x69\x6E\x65\x2D\x62\x6C\x6F\x63\x6B","\x6D\x6F\x75\x73\x65\x64\x6F\x77\x6E"];Graph= function(_0x34f5x1,_0x34f5x2,_0x34f5x3,_0x34f5x4){mxGraph[_0x2c98[0]](this,_0x34f5x1,_0x34f5x2,_0x34f5x3,_0x34f5x4);this[_0x2c98[1]](true);this[_0x2c98[2]](false);this[_0x2c98[3]](true);this[_0x2c98[5]](!mxClient[_0x2c98[4]]);this[_0x2c98[6]](false);this[_0x2c98[7]](false);this[_0x2c98[8]]= true;this[_0x2c98[9]]= false;this[_0x2c98[10]]= false;this[_0x2c98[12]][_0x2c98[11]]= true;this[_0x2c98[13]](false);this[_0x2c98[12]][_0x2c98[14]](false);this[_0x2c98[12]][_0x2c98[15]]= function(){return mxConnectionHandler[_0x2c98[17]][_0x2c98[15]][_0x2c98[16]](this,arguments)&& urlParams[_0x2c98[18]]!= _0x2c98[19]};this[_0x2c98[20]]= _0x2c98[21];if(_0x34f5x4== null){this[_0x2c98[22]]()};var _0x34f5x5= new mxRubberband(this);this[_0x2c98[23]]= function(){return _0x34f5x5};this[_0x2c98[30]][_0x2c98[29]](mxEvent.PAN_START,mxUtils[_0x2c98[28]](this,function(){this[_0x2c98[26]][_0x2c98[25]][_0x2c98[24]]= _0x2c98[27]}));this[_0x2c98[30]][_0x2c98[29]](mxEvent.PAN_END,mxUtils[_0x2c98[28]](this,function(){this[_0x2c98[26]][_0x2c98[25]][_0x2c98[24]]= _0x2c98[31]}));this[_0x2c98[32]]= function(_0x34f5x6){var _0x34f5x7=this[_0x2c98[34]][_0x2c98[33]](_0x34f5x6);var _0x34f5x8=(_0x34f5x7!= null)?_0x34f5x7[_0x2c98[25]]:this[_0x2c98[35]](_0x34f5x6);return _0x34f5x8[_0x2c98[36]]== _0x2c98[37]|| _0x34f5x8[_0x2c98[38]]== _0x2c98[39]};this[_0x2c98[41]][_0x2c98[40]]= function(_0x34f5x7){var _0x34f5x9=mxCellRenderer[_0x2c98[17]][_0x2c98[40]][_0x2c98[16]](this,arguments);if(_0x34f5x7[_0x2c98[25]][_0x2c98[38]]== _0x2c98[39]&& _0x34f5x7[_0x2c98[25]][_0x2c98[36]]!= 1){_0x34f5x9= mxUtils[_0x2c98[42]](_0x34f5x9,false)};return _0x34f5x9};this[_0x2c98[43]]= function(_0x34f5x6){return false};this[_0x2c98[12]][_0x2c98[44]]= 16;var _0x34f5xa=this[_0x2c98[12]][_0x2c98[45]];this[_0x2c98[12]][_0x2c98[45]]= function(_0x34f5xb,_0x34f5x7){if(_0x34f5x7== null){if(!this[_0x2c98[47]][_0x2c98[30]][_0x2c98[46]]){_0x34f5x5[_0x2c98[50]](_0x34f5xb[_0x2c98[48]](),_0x34f5xb[_0x2c98[49]]());this[_0x2c98[47]][_0x2c98[30]][_0x2c98[51]]= false}}else {if(tapAndHoldStartsConnection){_0x34f5xa[_0x2c98[16]](this,arguments)}else {if(this[_0x2c98[47]][_0x2c98[53]](_0x34f5x7[_0x2c98[52]])&& this[_0x2c98[47]][_0x2c98[54]]()> 1){this[_0x2c98[47]][_0x2c98[55]](_0x34f5x7[_0x2c98[52]])}}}};if(touchStyle){this[_0x2c98[56]]()}};mxUtils[_0x2c98[57]](Graph,mxGraph);Graph[_0x2c98[17]][_0x2c98[58]]= null;Graph[_0x2c98[17]][_0x2c98[59]]= null;Graph[_0x2c98[17]][_0x2c98[22]]= function(){var _0x34f5xc=mxUtils[_0x2c98[62]](STYLE_PATH+ _0x2c98[61])[_0x2c98[60]]();var _0x34f5xd= new mxCodec(_0x34f5xc[_0x2c98[63]]);_0x34f5xd[_0x2c98[65]](_0x34f5xc,this[_0x2c98[64]]())};Graph[_0x2c98[17]][_0x2c98[66]]= function(_0x34f5xe){if(_0x34f5xe!= null){var _0x34f5x7=this[_0x2c98[34]][_0x2c98[33]](_0x34f5xe);var _0x34f5x8=(_0x34f5x7!= null)?_0x34f5x7[_0x2c98[25]]:this[_0x2c98[35]](_0x34f5xe);if(_0x34f5x8!= null){var _0x34f5xf=mxUtils[_0x2c98[67]](_0x34f5x8,mxConstants.STYLE_ELBOW,mxConstants.ELBOW_HORIZONTAL);var _0x34f5x10=(_0x34f5xf== mxConstants[_0x2c98[68]])?mxConstants[_0x2c98[69]]:mxConstants[_0x2c98[68]];this[_0x2c98[70]](mxConstants.STYLE_ELBOW,_0x34f5x10,[_0x34f5xe])}}};Graph[_0x2c98[17]][_0x2c98[71]]= function(_0x34f5x6){if(_0x34f5x6!= null&& this[_0x2c98[73]]()[_0x2c98[72]](_0x34f5x6)){var _0x34f5x11=this[_0x2c98[73]]()[_0x2c98[74]]([_0x34f5x6])[0];if(_0x34f5x11[_0x2c98[75]]!= null){_0x34f5x11[_0x2c98[75]][_0x2c98[76]]= null};var _0x34f5x8=_0x34f5x11[_0x2c98[77]]();_0x34f5x8= mxUtils[_0x2c98[78]](_0x34f5x8,mxConstants.STYLE_ENTRY_X,null);_0x34f5x8= mxUtils[_0x2c98[78]](_0x34f5x8,mxConstants.STYLE_ENTRY_Y,null);_0x34f5x8= mxUtils[_0x2c98[78]](_0x34f5x8,mxConstants.STYLE_EXIT_X,null);_0x34f5x8= mxUtils[_0x2c98[78]](_0x34f5x8,mxConstants.STYLE_EXIT_Y,null);_0x34f5x11[_0x2c98[78]](_0x34f5x8);this[_0x2c98[12]][_0x2c98[79]]= function(_0x34f5xb){return this[_0x2c98[47]][_0x2c98[34]][_0x2c98[80]](_0x34f5x11)};this[_0x2c98[12]][_0x2c98[81]]= function(){return this[_0x2c98[47]][_0x2c98[74]]([_0x34f5x11])[0]}}};Graph[_0x2c98[17]][_0x2c98[82]]= function(_0x34f5x6){return this[_0x2c98[83]]&& this[_0x2c98[84]](_0x34f5x6)};Graph[_0x2c98[17]][_0x2c98[85]]= function(_0x34f5x6){return this[_0x2c98[84]](_0x34f5x6)};Graph[_0x2c98[17]][_0x2c98[86]]= function(){var _0x34f5x12=mxGraph[_0x2c98[17]][_0x2c98[86]][_0x2c98[16]](this,arguments);_0x34f5x12[_0x2c98[78]](_0x2c98[87]);return _0x34f5x12};Graph[_0x2c98[17]][_0x2c98[88]]= function(_0x34f5x6){var _0x34f5x13=_0x2c98[89];if(this[_0x2c98[73]]()[_0x2c98[90]](_0x34f5x6)){_0x34f5x13+= mxResources[_0x2c98[94]](_0x2c98[91]+ _0x34f5x6[_0x2c98[93]][_0x2c98[92]])|| _0x2c98[89]}else {if(this[_0x2c98[73]]()[_0x2c98[72]](_0x34f5x6)){_0x34f5x13= mxGraph[_0x2c98[17]][_0x2c98[88]][_0x2c98[16]](this,arguments)}};return _0x34f5x13};Graph[_0x2c98[17]][_0x2c98[95]]= function(_0x34f5x6){if(_0x34f5x6[_0x2c98[93]]!= null&& typeof (_0x34f5x6[_0x2c98[93]])== _0x2c98[96]){return _0x34f5x6[_0x2c98[93]][_0x2c98[98]](_0x2c98[97])};return mxGraph[_0x2c98[17]][_0x2c98[95]][_0x2c98[16]](this,arguments)};Graph[_0x2c98[17]][_0x2c98[99]]= function(_0x34f5x6,_0x34f5x10,_0x34f5x14){if(_0x34f5x6[_0x2c98[93]]!= null&& typeof (_0x34f5x6[_0x2c98[93]])== _0x2c98[96]){var _0x34f5x15=_0x34f5x6[_0x2c98[93]][_0x2c98[100]](true);_0x34f5x15[_0x2c98[101]](_0x2c98[97],_0x34f5x10);_0x34f5x10= _0x34f5x15};mxGraph[_0x2c98[17]][_0x2c98[99]][_0x2c98[16]](this,arguments)};Graph[_0x2c98[17]][_0x2c98[102]]= function(_0x34f5x6,_0x34f5x16){var _0x34f5x10=null;if(_0x34f5x6[_0x2c98[93]]!= null&& typeof (_0x34f5x6[_0x2c98[93]])== _0x2c98[96]){_0x34f5x10= _0x34f5x6[_0x2c98[93]][_0x2c98[100]](true)}else {var _0x34f5x17=mxUtils[_0x2c98[103]]();_0x34f5x10= _0x34f5x17[_0x2c98[105]](_0x2c98[104]);_0x34f5x10[_0x2c98[101]](_0x2c98[97],_0x34f5x6[_0x2c98[93]])};if(_0x34f5x16!= null&& _0x34f5x16[_0x2c98[106]]> 0){_0x34f5x10[_0x2c98[101]](_0x2c98[107],_0x34f5x16)}else {_0x34f5x10[_0x2c98[108]](_0x2c98[107])};this[_0x2c98[110]][_0x2c98[109]](_0x34f5x6,_0x34f5x10)};Graph[_0x2c98[17]][_0x2c98[111]]= function(_0x34f5x6){if(_0x34f5x6[_0x2c98[93]]!= null&& typeof (_0x34f5x6[_0x2c98[93]])== _0x2c98[96]){return _0x34f5x6[_0x2c98[93]][_0x2c98[98]](_0x2c98[107])};return null};Graph[_0x2c98[17]][_0x2c98[56]]= function(){this[_0x2c98[12]][_0x2c98[113]][_0x2c98[112]]= function(){return this[_0x2c98[47]][_0x2c98[12]][_0x2c98[114]]!= null};this[_0x2c98[29]](mxEvent.START_EDITING,function(_0x34f5x18,_0x34f5x19){this[_0x2c98[30]][_0x2c98[115]]()});var _0x34f5x1a=false;var _0x34f5x1b=null;this[_0x2c98[116]]= function(_0x34f5xb){mxGraph[_0x2c98[17]][_0x2c98[116]][_0x2c98[16]](this,arguments);if(_0x34f5xb[_0x2c98[33]]()== null){var _0x34f5x6=this[_0x2c98[119]](_0x34f5xb[_0x2c98[117]],_0x34f5xb[_0x2c98[118]]);if(this[_0x2c98[73]]()[_0x2c98[72]](_0x34f5x6)){_0x34f5xb[_0x2c98[120]]= this[_0x2c98[34]][_0x2c98[33]](_0x34f5x6);if(_0x34f5xb[_0x2c98[120]]!= null&& _0x34f5xb[_0x2c98[120]][_0x2c98[121]]!= null){this[_0x2c98[26]][_0x2c98[25]][_0x2c98[24]]= _0x34f5xb[_0x2c98[120]][_0x2c98[121]][_0x2c98[122]][_0x2c98[25]][_0x2c98[24]]}}};if(_0x34f5xb[_0x2c98[33]]()== null){this[_0x2c98[26]][_0x2c98[25]][_0x2c98[24]]= _0x2c98[31]}};this[_0x2c98[123]]= function(_0x34f5x1c,_0x34f5xb,_0x34f5x18){if(_0x34f5x1c== mxEvent[_0x2c98[124]]){if(!this[_0x2c98[30]][_0x2c98[125]]()){_0x34f5x1b= _0x34f5xb[_0x2c98[126]]();_0x34f5x1a= (_0x34f5x1b!= null)?this[_0x2c98[53]](_0x34f5x1b):this[_0x2c98[127]]()}else {_0x34f5x1a= false;_0x34f5x1b= null}}else {if(_0x34f5x1c== mxEvent[_0x2c98[128]]){if(_0x34f5x1a&& !this[_0x2c98[129]]()){if(!this[_0x2c98[30]][_0x2c98[125]]()){var _0x34f5x1d=mxEvent[_0x2c98[131]](_0x34f5xb[_0x2c98[130]]());var _0x34f5x1e=mxEvent[_0x2c98[132]](_0x34f5xb[_0x2c98[130]]());this[_0x2c98[30]][_0x2c98[133]](_0x34f5x1d+ 16,_0x34f5x1e,_0x34f5x1b,_0x34f5xb[_0x2c98[130]]())};_0x34f5x1a= false;_0x34f5x1b= null;_0x34f5xb[_0x2c98[134]]();return};_0x34f5x1a= false;_0x34f5x1b= null}};mxGraph[_0x2c98[17]][_0x2c98[123]][_0x2c98[16]](this,arguments);if(_0x34f5x1c== mxEvent[_0x2c98[135]]&& _0x34f5xb[_0x2c98[136]]()){_0x34f5x1a= false;_0x34f5x1b= null}}};(function(){mxVertexHandler[_0x2c98[17]][_0x2c98[137]]= true;mxText[_0x2c98[17]][_0x2c98[138]]= 5;mxText[_0x2c98[17]][_0x2c98[139]]= 1;if(touchStyle){mxConstants[_0x2c98[140]]= 16;mxConstants[_0x2c98[141]]= 7;if(mxClient[_0x2c98[4]]){mxVertexHandler[_0x2c98[17]][_0x2c98[142]]= 4;mxEdgeHandler[_0x2c98[17]][_0x2c98[142]]= 6;Graph[_0x2c98[17]][_0x2c98[142]]= 14;Graph[_0x2c98[17]][_0x2c98[143]]= 20;mxPanningHandler[_0x2c98[17]][_0x2c98[144]]= false;mxPanningHandler[_0x2c98[17]][_0x2c98[145]]= true;mxPanningHandler[_0x2c98[17]][_0x2c98[146]]= function(_0x34f5xb){var _0x34f5x19=_0x34f5xb[_0x2c98[130]]();return (this[_0x2c98[145]]&& (this[_0x2c98[147]]|| _0x34f5xb[_0x2c98[33]]()== null))|| (mxEvent[_0x2c98[148]](_0x34f5x19)&& mxEvent[_0x2c98[149]](_0x34f5x19))|| (this[_0x2c98[150]]&& mxEvent[_0x2c98[151]](_0x34f5x19))}};var _0x34f5x1f=mxGraphHandler[_0x2c98[17]][_0x2c98[152]];mxGraphHandler[_0x2c98[17]][_0x2c98[152]]= function(_0x34f5x18,_0x34f5xb){_0x34f5x1f[_0x2c98[16]](this,arguments);if(this[_0x2c98[47]][_0x2c98[53]](_0x34f5xb[_0x2c98[126]]())&& this[_0x2c98[47]][_0x2c98[54]]()> 1){this[_0x2c98[153]]= false}};Graph[_0x2c98[17]][_0x2c98[154]]= function(_0x34f5x1){this[_0x2c98[155]]= new mxTooltipHandler(this);this[_0x2c98[155]][_0x2c98[156]](false);this[_0x2c98[157]]= new mxSelectionCellsHandler(this);this[_0x2c98[30]]= new mxPanningHandler(this);this[_0x2c98[30]][_0x2c98[158]]= false;this[_0x2c98[12]]= new mxConnectionHandler(this);this[_0x2c98[12]][_0x2c98[156]](false);this[_0x2c98[159]]= new mxGraphHandler(this)};mxConnectionHandler[_0x2c98[17]][_0x2c98[160]]= function(_0x34f5xe,_0x34f5x20){if(touchStyle&& _0x34f5x20!= null){this[_0x2c98[47]][_0x2c98[161]](_0x34f5x20)}else {this[_0x2c98[47]][_0x2c98[161]](_0x34f5xe)}};var _0x34f5x21=mxGraph[_0x2c98[17]][_0x2c98[162]];Graph[_0x2c98[17]][_0x2c98[162]]= function(_0x34f5x19,_0x34f5x6){if(_0x34f5x6== null){var _0x34f5x22=mxUtils[_0x2c98[163]](this[_0x2c98[26]],mxEvent[_0x2c98[131]](_0x34f5x19),mxEvent[_0x2c98[132]](_0x34f5x19));_0x34f5x6= this[_0x2c98[119]](_0x34f5x22[_0x2c98[164]],_0x34f5x22[_0x2c98[165]])};_0x34f5x21[_0x2c98[0]](this,_0x34f5x19,_0x34f5x6)};var _0x34f5x23= new mxImage(IMAGE_PATH+ _0x2c98[166],16,16);mxVertexHandler[_0x2c98[17]][_0x2c98[167]]= _0x34f5x23;mxEdgeHandler[_0x2c98[17]][_0x2c98[167]]= _0x34f5x23;mxOutline[_0x2c98[17]][_0x2c98[168]]= _0x34f5x23; new Image()[_0x2c98[169]]= _0x34f5x23[_0x2c98[169]];var _0x34f5x24=IMAGE_PATH+ _0x2c98[170];var _0x34f5x25=mxVertexHandler[_0x2c98[17]][_0x2c98[171]];mxVertexHandler[_0x2c98[17]][_0x2c98[171]]= function(){_0x34f5x25[_0x2c98[16]](this,arguments);if(showConnectorImg&& this[_0x2c98[47]][_0x2c98[12]][_0x2c98[112]]()&& this[_0x2c98[47]][_0x2c98[172]](this[_0x2c98[120]][_0x2c98[52]])&& !this[_0x2c98[47]][_0x2c98[85]](this[_0x2c98[120]][_0x2c98[52]])&& this[_0x2c98[47]][_0x2c98[54]]()== 1){this[_0x2c98[173]]= mxUtils[_0x2c98[174]](_0x34f5x24);this[_0x2c98[173]][_0x2c98[25]][_0x2c98[24]]= _0x2c98[27];this[_0x2c98[173]][_0x2c98[25]][_0x2c98[175]]= _0x2c98[176];this[_0x2c98[173]][_0x2c98[25]][_0x2c98[177]]= _0x2c98[176];this[_0x2c98[173]][_0x2c98[25]][_0x2c98[178]]= _0x2c98[179];if(!mxClient[_0x2c98[4]]){this[_0x2c98[173]][_0x2c98[101]](_0x2c98[180],mxResources[_0x2c98[94]](_0x2c98[18]));mxEvent[_0x2c98[181]](this[_0x2c98[173]],this[_0x2c98[47]],this[_0x2c98[120]])};this[_0x2c98[173]][_0x2c98[25]][_0x2c98[182]]= _0x2c98[183];mxEvent[_0x2c98[185]](this[_0x2c98[173]],mxUtils[_0x2c98[28]](this,function(_0x34f5x19){this[_0x2c98[47]][_0x2c98[30]][_0x2c98[115]]();var _0x34f5x22=mxUtils[_0x2c98[163]](this[_0x2c98[47]][_0x2c98[26]],mxEvent[_0x2c98[131]](_0x34f5x19),mxEvent[_0x2c98[132]](_0x34f5x19));this[_0x2c98[47]][_0x2c98[12]][_0x2c98[50]](this[_0x2c98[120]],_0x34f5x22[_0x2c98[164]],_0x34f5x22[_0x2c98[165]]);this[_0x2c98[47]][_0x2c98[184]]= true;mxEvent[_0x2c98[134]](_0x34f5x19)}));this[_0x2c98[47]][_0x2c98[26]][_0x2c98[186]](this[_0x2c98[173]])};this[_0x2c98[187]]()};var _0x34f5x26=mxVertexHandler[_0x2c98[17]][_0x2c98[188]];mxVertexHandler[_0x2c98[17]][_0x2c98[188]]= function(){_0x34f5x26[_0x2c98[16]](this);this[_0x2c98[187]]()};mxVertexHandler[_0x2c98[17]][_0x2c98[187]]= function(){if(this[_0x2c98[120]]!= null&& this[_0x2c98[173]]!= null){if(mxVertexHandler[_0x2c98[17]][_0x2c98[189]]){this[_0x2c98[173]][_0x2c98[25]][_0x2c98[190]]= (this[_0x2c98[120]][_0x2c98[164]]+ this[_0x2c98[120]][_0x2c98[175]]- this[_0x2c98[173]][_0x2c98[191]]/ 2)+ _0x2c98[192];this[_0x2c98[173]][_0x2c98[25]][_0x2c98[193]]= (this[_0x2c98[120]][_0x2c98[165]]- this[_0x2c98[173]][_0x2c98[194]]/ 2)+ _0x2c98[192]}else {this[_0x2c98[173]][_0x2c98[25]][_0x2c98[190]]= (this[_0x2c98[120]][_0x2c98[164]]+ this[_0x2c98[120]][_0x2c98[175]]+ mxConstants[_0x2c98[140]]/ 2+ 4)+ _0x2c98[192];this[_0x2c98[173]][_0x2c98[25]][_0x2c98[193]]= (this[_0x2c98[120]][_0x2c98[165]]+ (this[_0x2c98[120]][_0x2c98[177]]- this[_0x2c98[173]][_0x2c98[194]])/ 2)+ _0x2c98[192]}}};var _0x34f5x27=mxVertexHandler[_0x2c98[17]][_0x2c98[195]];mxVertexHandler[_0x2c98[17]][_0x2c98[195]]= function(_0x34f5x18,_0x34f5xb){_0x34f5x27[_0x2c98[16]](this,arguments);if(this[_0x2c98[173]]!= null){this[_0x2c98[173]][_0x2c98[197]][_0x2c98[196]](this[_0x2c98[173]]);this[_0x2c98[173]]= null}}; new Image()[_0x2c98[169]]= _0x34f5x24}else {var _0x34f5x28= new mxImage(IMAGE_PATH+ _0x2c98[198],15,15);mxConnectionHandler[_0x2c98[17]][_0x2c98[199]]= _0x34f5x28; new Image()[_0x2c98[169]]= _0x34f5x28[_0x2c98[169]];if(urlParams[_0x2c98[18]]== _0x2c98[19]){var _0x34f5x28= new mxImage(IMAGE_PATH+ _0x2c98[198],15,15);var _0x34f5x25=mxVertexHandler[_0x2c98[17]][_0x2c98[171]];mxVertexHandler[_0x2c98[17]][_0x2c98[171]]= function(){_0x34f5x25[_0x2c98[16]](this,arguments);if(showConnectorImg&& this[_0x2c98[47]][_0x2c98[12]][_0x2c98[112]]()&& this[_0x2c98[47]][_0x2c98[172]](this[_0x2c98[120]][_0x2c98[52]])&& !this[_0x2c98[47]][_0x2c98[85]](this[_0x2c98[120]][_0x2c98[52]])&& this[_0x2c98[47]][_0x2c98[54]]()== 1){if(mxClient[_0x2c98[200]]&& !mxClient[_0x2c98[201]]){this[_0x2c98[173]]= document[_0x2c98[105]](_0x2c98[202]);this[_0x2c98[173]][_0x2c98[25]][_0x2c98[203]]= _0x2c98[204]+ _0x34f5x28[_0x2c98[169]]+ _0x2c98[205];this[_0x2c98[173]][_0x2c98[25]][_0x2c98[206]]= _0x2c98[207];this[_0x2c98[173]][_0x2c98[25]][_0x2c98[208]]= _0x2c98[209];this[_0x2c98[173]][_0x2c98[25]][_0x2c98[175]]= (_0x34f5x28[_0x2c98[175]]+ 4)+ _0x2c98[192];this[_0x2c98[173]][_0x2c98[25]][_0x2c98[177]]= (_0x34f5x28[_0x2c98[177]]+ 4)+ _0x2c98[192];this[_0x2c98[173]][_0x2c98[25]][_0x2c98[210]]= (mxClient[_0x2c98[211]])?_0x2c98[212]:_0x2c98[213]}else {this[_0x2c98[173]]= mxUtils[_0x2c98[174]](_0x34f5x28[_0x2c98[169]]);this[_0x2c98[173]][_0x2c98[25]][_0x2c98[175]]= _0x34f5x28[_0x2c98[175]]+ _0x2c98[192];this[_0x2c98[173]][_0x2c98[25]][_0x2c98[177]]= _0x34f5x28[_0x2c98[177]]+ _0x2c98[192]};this[_0x2c98[173]][_0x2c98[25]][_0x2c98[24]]= _0x2c98[27];this[_0x2c98[173]][_0x2c98[25]][_0x2c98[178]]= _0x2c98[179];this[_0x2c98[173]][_0x2c98[101]](_0x2c98[180],mxResources[_0x2c98[94]](_0x2c98[18]));mxEvent[_0x2c98[181]](this[_0x2c98[173]],this[_0x2c98[47]],this[_0x2c98[120]]);this[_0x2c98[173]][_0x2c98[25]][_0x2c98[182]]= _0x2c98[183];mxEvent[_0x2c98[29]](this[_0x2c98[173]],_0x2c98[214],mxUtils[_0x2c98[28]](this,function(_0x34f5x19){this[_0x2c98[47]][_0x2c98[30]][_0x2c98[115]]();var _0x34f5x22=mxUtils[_0x2c98[163]](this[_0x2c98[47]][_0x2c98[26]],mxEvent[_0x2c98[131]](_0x34f5x19),mxEvent[_0x2c98[132]](_0x34f5x19));this[_0x2c98[47]][_0x2c98[12]][_0x2c98[50]](this[_0x2c98[120]],_0x34f5x22[_0x2c98[164]],_0x34f5x22[_0x2c98[165]]);this[_0x2c98[47]][_0x2c98[184]]= true;mxEvent[_0x2c98[134]](_0x34f5x19)}));this[_0x2c98[47]][_0x2c98[26]][_0x2c98[186]](this[_0x2c98[173]])};this[_0x2c98[187]]()};var _0x34f5x26=mxVertexHandler[_0x2c98[17]][_0x2c98[188]];mxVertexHandler[_0x2c98[17]][_0x2c98[188]]= function(){_0x34f5x26[_0x2c98[16]](this);this[_0x2c98[187]]()};mxVertexHandler[_0x2c98[17]][_0x2c98[187]]= function(){if(this[_0x2c98[120]]!= null&& this[_0x2c98[173]]!= null){if(mxVertexHandler[_0x2c98[17]][_0x2c98[189]]){this[_0x2c98[173]][_0x2c98[25]][_0x2c98[190]]= (this[_0x2c98[120]][_0x2c98[164]]+ this[_0x2c98[120]][_0x2c98[175]]- this[_0x2c98[173]][_0x2c98[191]]/ 2)+ _0x2c98[192];this[_0x2c98[173]][_0x2c98[25]][_0x2c98[193]]= (this[_0x2c98[120]][_0x2c98[165]]- this[_0x2c98[173]][_0x2c98[194]]/ 2)+ _0x2c98[192]}else {this[_0x2c98[173]][_0x2c98[25]][_0x2c98[190]]= (this[_0x2c98[120]][_0x2c98[164]]+ this[_0x2c98[120]][_0x2c98[175]]+ mxConstants[_0x2c98[140]]/ 2+ 2)+ _0x2c98[192];this[_0x2c98[173]][_0x2c98[25]][_0x2c98[193]]= (this[_0x2c98[120]][_0x2c98[165]]+ (this[_0x2c98[120]][_0x2c98[177]]- this[_0x2c98[173]][_0x2c98[194]])/ 2)+ _0x2c98[192]}}};var _0x34f5x27=mxVertexHandler[_0x2c98[17]][_0x2c98[195]];mxVertexHandler[_0x2c98[17]][_0x2c98[195]]= function(_0x34f5x18,_0x34f5xb){_0x34f5x27[_0x2c98[16]](this,arguments);if(this[_0x2c98[173]]!= null){this[_0x2c98[173]][_0x2c98[197]][_0x2c98[196]](this[_0x2c98[173]]);this[_0x2c98[173]]= null}}}}})() \ No newline at end of file +var _0x8b12=["\x63\x61\x6C\x6C","\x73\x65\x74\x43\x6F\x6E\x6E\x65\x63\x74\x61\x62\x6C\x65","\x73\x65\x74\x44\x72\x6F\x70\x45\x6E\x61\x62\x6C\x65\x64","\x73\x65\x74\x50\x61\x6E\x6E\x69\x6E\x67","\x49\x53\x5F\x54\x4F\x55\x43\x48","\x73\x65\x74\x54\x6F\x6F\x6C\x74\x69\x70\x73","\x73\x65\x74\x41\x6C\x6C\x6F\x77\x4C\x6F\x6F\x70\x73","\x73\x65\x74\x4D\x75\x6C\x74\x69\x67\x72\x61\x70\x68","\x61\x6C\x6C\x6F\x77\x41\x75\x74\x6F\x50\x61\x6E\x6E\x69\x6E\x67","\x72\x65\x73\x65\x74\x45\x64\x67\x65\x73\x4F\x6E\x43\x6F\x6E\x6E\x65\x63\x74","\x63\x6F\x6E\x73\x74\x72\x61\x69\x6E\x43\x68\x69\x6C\x64\x72\x65\x6E","\x74\x61\x72\x67\x65\x74\x43\x6F\x6E\x6E\x65\x63\x74\x49\x6D\x61\x67\x65","\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x48\x61\x6E\x64\x6C\x65\x72","\x73\x65\x74\x41\x6C\x6C\x6F\x77\x44\x61\x6E\x67\x6C\x69\x6E\x67\x45\x64\x67\x65\x73","\x73\x65\x74\x43\x72\x65\x61\x74\x65\x54\x61\x72\x67\x65\x74","\x69\x73\x56\x61\x6C\x69\x64\x53\x6F\x75\x72\x63\x65","\x61\x70\x70\x6C\x79","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x63\x6F\x6E\x6E\x65\x63\x74","\x32","\x61\x6C\x74\x65\x72\x6E\x61\x74\x65\x45\x64\x67\x65\x53\x74\x79\x6C\x65","\x76\x65\x72\x74\x69\x63\x61\x6C","\x6C\x6F\x61\x64\x53\x74\x79\x6C\x65\x73\x68\x65\x65\x74","\x67\x65\x74\x52\x75\x62\x62\x65\x72\x62\x61\x6E\x64","\x63\x75\x72\x73\x6F\x72","\x73\x74\x79\x6C\x65","\x63\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x70\x6F\x69\x6E\x74\x65\x72","\x62\x69\x6E\x64","\x61\x64\x64\x4C\x69\x73\x74\x65\x6E\x65\x72","\x70\x61\x6E\x6E\x69\x6E\x67\x48\x61\x6E\x64\x6C\x65\x72","\x64\x65\x66\x61\x75\x6C\x74","\x69\x73\x48\x74\x6D\x6C\x4C\x61\x62\x65\x6C","\x67\x65\x74\x53\x74\x61\x74\x65","\x76\x69\x65\x77","\x67\x65\x74\x43\x65\x6C\x6C\x53\x74\x79\x6C\x65","\x68\x74\x6D\x6C","\x31","\x77\x68\x69\x74\x65\x53\x70\x61\x63\x65","\x77\x72\x61\x70","\x67\x65\x74\x4C\x61\x62\x65\x6C\x56\x61\x6C\x75\x65","\x63\x65\x6C\x6C\x52\x65\x6E\x64\x65\x72\x65\x72","\x68\x74\x6D\x6C\x45\x6E\x74\x69\x74\x69\x65\x73","\x69\x73\x43\x65\x6C\x6C\x4C\x6F\x63\x6B\x65\x64","\x74\x61\x70\x41\x6E\x64\x48\x6F\x6C\x64\x54\x6F\x6C\x65\x72\x61\x6E\x63\x65","\x74\x61\x70\x41\x6E\x64\x48\x6F\x6C\x64","\x61\x63\x74\x69\x76\x65","\x67\x72\x61\x70\x68","\x67\x65\x74\x47\x72\x61\x70\x68\x58","\x67\x65\x74\x47\x72\x61\x70\x68\x59","\x73\x74\x61\x72\x74","\x70\x61\x6E\x6E\x69\x6E\x67\x54\x72\x69\x67\x67\x65\x72","\x63\x65\x6C\x6C","\x69\x73\x43\x65\x6C\x6C\x53\x65\x6C\x65\x63\x74\x65\x64","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x6F\x75\x6E\x74","\x72\x65\x6D\x6F\x76\x65\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C","\x69\x6E\x69\x74\x54\x6F\x75\x63\x68","\x65\x78\x74\x65\x6E\x64","\x6D\x69\x6E\x46\x69\x74\x53\x63\x61\x6C\x65","\x6D\x61\x78\x46\x69\x74\x53\x63\x61\x6C\x65","\x67\x65\x74\x44\x6F\x63\x75\x6D\x65\x6E\x74\x45\x6C\x65\x6D\x65\x6E\x74","\x2F\x64\x65\x66\x61\x75\x6C\x74\x2E\x78\x6D\x6C","\x6C\x6F\x61\x64","\x6F\x77\x6E\x65\x72\x44\x6F\x63\x75\x6D\x65\x6E\x74","\x67\x65\x74\x53\x74\x79\x6C\x65\x73\x68\x65\x65\x74","\x64\x65\x63\x6F\x64\x65","\x66\x6C\x69\x70\x45\x64\x67\x65","\x67\x65\x74\x56\x61\x6C\x75\x65","\x45\x4C\x42\x4F\x57\x5F\x48\x4F\x52\x49\x5A\x4F\x4E\x54\x41\x4C","\x45\x4C\x42\x4F\x57\x5F\x56\x45\x52\x54\x49\x43\x41\x4C","\x73\x65\x74\x43\x65\x6C\x6C\x53\x74\x79\x6C\x65\x73","\x73\x65\x74\x44\x65\x66\x61\x75\x6C\x74\x45\x64\x67\x65","\x69\x73\x45\x64\x67\x65","\x67\x65\x74\x4D\x6F\x64\x65\x6C","\x63\x6C\x6F\x6E\x65\x43\x65\x6C\x6C\x73","\x67\x65\x6F\x6D\x65\x74\x72\x79","\x70\x6F\x69\x6E\x74\x73","\x67\x65\x74\x53\x74\x79\x6C\x65","\x73\x65\x74\x53\x74\x79\x6C\x65","\x63\x72\x65\x61\x74\x65\x45\x64\x67\x65\x53\x74\x61\x74\x65","\x63\x72\x65\x61\x74\x65\x53\x74\x61\x74\x65","\x66\x61\x63\x74\x6F\x72\x79\x4D\x65\x74\x68\x6F\x64","\x69\x73\x43\x65\x6C\x6C\x46\x6F\x6C\x64\x61\x62\x6C\x65","\x66\x6F\x6C\x64\x69\x6E\x67\x45\x6E\x61\x62\x6C\x65\x64","\x69\x73\x53\x77\x69\x6D\x6C\x61\x6E\x65","\x69\x73\x56\x61\x6C\x69\x64\x52\x6F\x6F\x74","\x63\x72\x65\x61\x74\x65\x47\x72\x6F\x75\x70\x43\x65\x6C\x6C","\x67\x72\x6F\x75\x70","\x67\x65\x74\x54\x6F\x6F\x6C\x74\x69\x70\x46\x6F\x72\x43\x65\x6C\x6C","","\x69\x73\x56\x65\x72\x74\x65\x78","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E\x5F","\x6E\x6F\x64\x65\x4E\x61\x6D\x65","\x76\x61\x6C\x75\x65","\x67\x65\x74","\x63\x6F\x6E\x76\x65\x72\x74\x56\x61\x6C\x75\x65\x54\x6F\x53\x74\x72\x69\x6E\x67","\x6F\x62\x6A\x65\x63\x74","\x6C\x61\x62\x65\x6C","\x67\x65\x74\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x63\x65\x6C\x6C\x4C\x61\x62\x65\x6C\x43\x68\x61\x6E\x67\x65\x64","\x63\x6C\x6F\x6E\x65\x4E\x6F\x64\x65","\x73\x65\x74\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x73\x65\x74\x4C\x69\x6E\x6B\x46\x6F\x72\x43\x65\x6C\x6C","\x63\x72\x65\x61\x74\x65\x58\x6D\x6C\x44\x6F\x63\x75\x6D\x65\x6E\x74","\x55\x73\x65\x72\x4F\x62\x6A\x65\x63\x74","\x63\x72\x65\x61\x74\x65\x45\x6C\x65\x6D\x65\x6E\x74","\x6C\x65\x6E\x67\x74\x68","\x6C\x69\x6E\x6B","\x72\x65\x6D\x6F\x76\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x73\x65\x74\x56\x61\x6C\x75\x65","\x6D\x6F\x64\x65\x6C","\x67\x65\x74\x4C\x69\x6E\x6B\x46\x6F\x72\x43\x65\x6C\x6C","\x69\x73\x45\x6E\x61\x62\x6C\x65\x64","\x6D\x61\x72\x6B\x65\x72","\x66\x69\x72\x73\x74","\x68\x69\x64\x65\x4D\x65\x6E\x75","\x75\x70\x64\x61\x74\x65\x4D\x6F\x75\x73\x65\x45\x76\x65\x6E\x74","\x67\x72\x61\x70\x68\x58","\x67\x72\x61\x70\x68\x59","\x67\x65\x74\x43\x65\x6C\x6C\x41\x74","\x73\x74\x61\x74\x65","\x73\x68\x61\x70\x65","\x6E\x6F\x64\x65","\x66\x69\x72\x65\x4D\x6F\x75\x73\x65\x45\x76\x65\x6E\x74","\x4D\x4F\x55\x53\x45\x5F\x44\x4F\x57\x4E","\x69\x73\x4D\x65\x6E\x75\x53\x68\x6F\x77\x69\x6E\x67","\x67\x65\x74\x43\x65\x6C\x6C","\x69\x73\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x45\x6D\x70\x74\x79","\x4D\x4F\x55\x53\x45\x5F\x55\x50","\x69\x73\x45\x64\x69\x74\x69\x6E\x67","\x67\x65\x74\x45\x76\x65\x6E\x74","\x67\x65\x74\x43\x6C\x69\x65\x6E\x74\x58","\x67\x65\x74\x43\x6C\x69\x65\x6E\x74\x59","\x70\x6F\x70\x75\x70","\x63\x6F\x6E\x73\x75\x6D\x65","\x4D\x4F\x55\x53\x45\x5F\x4D\x4F\x56\x45","\x69\x73\x43\x6F\x6E\x73\x75\x6D\x65\x64","\x72\x6F\x74\x61\x74\x69\x6F\x6E\x45\x6E\x61\x62\x6C\x65\x64","\x62\x61\x73\x65\x53\x70\x61\x63\x69\x6E\x67\x54\x6F\x70","\x62\x61\x73\x65\x53\x70\x61\x63\x69\x6E\x67\x42\x6F\x74\x74\x6F\x6D","\x48\x41\x4E\x44\x4C\x45\x5F\x53\x49\x5A\x45","\x4C\x41\x42\x45\x4C\x5F\x48\x41\x4E\x44\x4C\x45\x5F\x53\x49\x5A\x45","\x74\x6F\x6C\x65\x72\x61\x6E\x63\x65","\x67\x72\x69\x64\x53\x69\x7A\x65","\x73\x65\x6C\x65\x63\x74\x4F\x6E\x50\x6F\x70\x75\x70","\x75\x73\x65\x4C\x65\x66\x74\x42\x75\x74\x74\x6F\x6E\x46\x6F\x72\x50\x61\x6E\x6E\x69\x6E\x67","\x69\x73\x50\x61\x6E\x6E\x69\x6E\x67\x54\x72\x69\x67\x67\x65\x72","\x69\x67\x6E\x6F\x72\x65\x43\x65\x6C\x6C","\x69\x73\x43\x6F\x6E\x74\x72\x6F\x6C\x44\x6F\x77\x6E","\x69\x73\x53\x68\x69\x66\x74\x44\x6F\x77\x6E","\x75\x73\x65\x50\x6F\x70\x75\x70\x54\x72\x69\x67\x67\x65\x72","\x69\x73\x50\x6F\x70\x75\x70\x54\x72\x69\x67\x67\x65\x72","\x6D\x6F\x75\x73\x65\x44\x6F\x77\x6E","\x64\x65\x6C\x61\x79\x65\x64\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E","\x63\x72\x65\x61\x74\x65\x48\x61\x6E\x64\x6C\x65\x72\x73","\x74\x6F\x6F\x6C\x74\x69\x70\x48\x61\x6E\x64\x6C\x65\x72","\x73\x65\x74\x45\x6E\x61\x62\x6C\x65\x64","\x73\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C\x73\x48\x61\x6E\x64\x6C\x65\x72","\x70\x61\x6E\x6E\x69\x6E\x67\x45\x6E\x61\x62\x6C\x65\x64","\x67\x72\x61\x70\x68\x48\x61\x6E\x64\x6C\x65\x72","\x73\x65\x6C\x65\x63\x74\x43\x65\x6C\x6C\x73","\x73\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C","\x64\x62\x6C\x43\x6C\x69\x63\x6B","\x63\x6F\x6E\x76\x65\x72\x74\x50\x6F\x69\x6E\x74","\x78","\x79","\x2F\x74\x6F\x75\x63\x68\x2D\x68\x61\x6E\x64\x6C\x65\x2E\x70\x6E\x67","\x68\x61\x6E\x64\x6C\x65\x49\x6D\x61\x67\x65","\x73\x69\x7A\x65\x72\x49\x6D\x61\x67\x65","\x73\x72\x63","\x2F\x74\x6F\x75\x63\x68\x2D\x63\x6F\x6E\x6E\x65\x63\x74\x6F\x72\x2E\x70\x6E\x67","\x69\x6E\x69\x74","\x69\x73\x43\x65\x6C\x6C\x43\x6F\x6E\x6E\x65\x63\x74\x61\x62\x6C\x65","\x63\x6F\x6E\x6E\x65\x63\x74\x6F\x72\x49\x6D\x67","\x63\x72\x65\x61\x74\x65\x49\x6D\x61\x67\x65","\x77\x69\x64\x74\x68","\x32\x39\x70\x78","\x68\x65\x69\x67\x68\x74","\x70\x6F\x73\x69\x74\x69\x6F\x6E","\x61\x62\x73\x6F\x6C\x75\x74\x65","\x74\x69\x74\x6C\x65","\x72\x65\x64\x69\x72\x65\x63\x74\x4D\x6F\x75\x73\x65\x45\x76\x65\x6E\x74\x73","\x70\x61\x64\x64\x69\x6E\x67","\x32\x70\x78","\x69\x73\x4D\x6F\x75\x73\x65\x44\x6F\x77\x6E","\x61\x64\x64\x47\x65\x73\x74\x75\x72\x65\x4C\x69\x73\x74\x65\x6E\x65\x72\x73","\x61\x70\x70\x65\x6E\x64\x43\x68\x69\x6C\x64","\x72\x65\x64\x72\x61\x77\x54\x6F\x6F\x6C\x73","\x72\x65\x64\x72\x61\x77","\x73\x69\x6E\x67\x6C\x65\x53\x69\x7A\x65\x72","\x6C\x65\x66\x74","\x6F\x66\x66\x73\x65\x74\x57\x69\x64\x74\x68","\x70\x78","\x74\x6F\x70","\x6F\x66\x66\x73\x65\x74\x48\x65\x69\x67\x68\x74","\x64\x65\x73\x74\x72\x6F\x79","\x72\x65\x6D\x6F\x76\x65\x43\x68\x69\x6C\x64","\x70\x61\x72\x65\x6E\x74\x4E\x6F\x64\x65","\x2F\x63\x6F\x6E\x6E\x65\x63\x74\x6F\x72\x2E\x70\x6E\x67","\x63\x6F\x6E\x6E\x65\x63\x74\x49\x6D\x61\x67\x65","\x49\x53\x5F\x49\x45","\x49\x53\x5F\x53\x56\x47","\x64\x69\x76","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x49\x6D\x61\x67\x65","\x75\x72\x6C\x28","\x29","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x50\x6F\x73\x69\x74\x69\x6F\x6E","\x63\x65\x6E\x74\x65\x72","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x52\x65\x70\x65\x61\x74","\x6E\x6F\x2D\x72\x65\x70\x65\x61\x74","\x64\x69\x73\x70\x6C\x61\x79","\x49\x53\x5F\x51\x55\x49\x52\x4B\x53","\x69\x6E\x6C\x69\x6E\x65","\x69\x6E\x6C\x69\x6E\x65\x2D\x62\x6C\x6F\x63\x6B","\x6D\x6F\x75\x73\x65\x64\x6F\x77\x6E"];Graph= function(_0x6de9x1,_0x6de9x2,_0x6de9x3,_0x6de9x4){mxGraph[_0x8b12[0]](this,_0x6de9x1,_0x6de9x2,_0x6de9x3,_0x6de9x4);this[_0x8b12[1]](true);this[_0x8b12[2]](false);this[_0x8b12[3]](true);this[_0x8b12[5]](!mxClient[_0x8b12[4]]);this[_0x8b12[6]](false);this[_0x8b12[7]](false);this[_0x8b12[8]]= true;this[_0x8b12[9]]= false;this[_0x8b12[10]]= false;this[_0x8b12[12]][_0x8b12[11]]= true;this[_0x8b12[13]](false);this[_0x8b12[12]][_0x8b12[14]](false);this[_0x8b12[12]][_0x8b12[15]]= function(){return mxConnectionHandler[_0x8b12[17]][_0x8b12[15]][_0x8b12[16]](this,arguments)&& urlParams[_0x8b12[18]]!= _0x8b12[19]};this[_0x8b12[20]]= _0x8b12[21];if(_0x6de9x4== null){this[_0x8b12[22]]()};var _0x6de9x5= new mxRubberband(this);this[_0x8b12[23]]= function(){return _0x6de9x5};this[_0x8b12[30]][_0x8b12[29]](mxEvent.PAN_START,mxUtils[_0x8b12[28]](this,function(){this[_0x8b12[26]][_0x8b12[25]][_0x8b12[24]]= _0x8b12[27]}));this[_0x8b12[30]][_0x8b12[29]](mxEvent.PAN_END,mxUtils[_0x8b12[28]](this,function(){this[_0x8b12[26]][_0x8b12[25]][_0x8b12[24]]= _0x8b12[31]}));this[_0x8b12[32]]= function(_0x6de9x6){var _0x6de9x7=this[_0x8b12[34]][_0x8b12[33]](_0x6de9x6);var _0x6de9x8=(_0x6de9x7!= null)?_0x6de9x7[_0x8b12[25]]:this[_0x8b12[35]](_0x6de9x6);return _0x6de9x8[_0x8b12[36]]== _0x8b12[37]|| _0x6de9x8[_0x8b12[38]]== _0x8b12[39]};this[_0x8b12[41]][_0x8b12[40]]= function(_0x6de9x7){var _0x6de9x9=mxCellRenderer[_0x8b12[17]][_0x8b12[40]][_0x8b12[16]](this,arguments);if(_0x6de9x7[_0x8b12[25]][_0x8b12[38]]== _0x8b12[39]&& _0x6de9x7[_0x8b12[25]][_0x8b12[36]]!= 1){_0x6de9x9= mxUtils[_0x8b12[42]](_0x6de9x9,false)};return _0x6de9x9};this[_0x8b12[43]]= function(_0x6de9x6){return false};this[_0x8b12[12]][_0x8b12[44]]= 16;var _0x6de9xa=this[_0x8b12[12]][_0x8b12[45]];this[_0x8b12[12]][_0x8b12[45]]= function(_0x6de9xb,_0x6de9x7){if(_0x6de9x7== null){if(!this[_0x8b12[47]][_0x8b12[30]][_0x8b12[46]]){_0x6de9x5[_0x8b12[50]](_0x6de9xb[_0x8b12[48]](),_0x6de9xb[_0x8b12[49]]());this[_0x8b12[47]][_0x8b12[30]][_0x8b12[51]]= false}}else {if(tapAndHoldStartsConnection){_0x6de9xa[_0x8b12[16]](this,arguments)}else {if(this[_0x8b12[47]][_0x8b12[53]](_0x6de9x7[_0x8b12[52]])&& this[_0x8b12[47]][_0x8b12[54]]()> 1){this[_0x8b12[47]][_0x8b12[55]](_0x6de9x7[_0x8b12[52]])}}}};if(touchStyle){this[_0x8b12[56]]()}};mxUtils[_0x8b12[57]](Graph,mxGraph);Graph[_0x8b12[17]][_0x8b12[58]]= null;Graph[_0x8b12[17]][_0x8b12[59]]= null;Graph[_0x8b12[17]][_0x8b12[22]]= function(){var _0x6de9xc=mxUtils[_0x8b12[62]](STYLE_PATH+ _0x8b12[61])[_0x8b12[60]]();var _0x6de9xd= new mxCodec(_0x6de9xc[_0x8b12[63]]);_0x6de9xd[_0x8b12[65]](_0x6de9xc,this[_0x8b12[64]]())};Graph[_0x8b12[17]][_0x8b12[66]]= function(_0x6de9xe){if(_0x6de9xe!= null){var _0x6de9x7=this[_0x8b12[34]][_0x8b12[33]](_0x6de9xe);var _0x6de9x8=(_0x6de9x7!= null)?_0x6de9x7[_0x8b12[25]]:this[_0x8b12[35]](_0x6de9xe);if(_0x6de9x8!= null){var _0x6de9xf=mxUtils[_0x8b12[67]](_0x6de9x8,mxConstants.STYLE_ELBOW,mxConstants.ELBOW_HORIZONTAL);var _0x6de9x10=(_0x6de9xf== mxConstants[_0x8b12[68]])?mxConstants[_0x8b12[69]]:mxConstants[_0x8b12[68]];this[_0x8b12[70]](mxConstants.STYLE_ELBOW,_0x6de9x10,[_0x6de9xe])}}};Graph[_0x8b12[17]][_0x8b12[71]]= function(_0x6de9x6){if(_0x6de9x6!= null&& this[_0x8b12[73]]()[_0x8b12[72]](_0x6de9x6)){var _0x6de9x11=this[_0x8b12[73]]()[_0x8b12[74]]([_0x6de9x6])[0];if(_0x6de9x11[_0x8b12[75]]!= null){_0x6de9x11[_0x8b12[75]][_0x8b12[76]]= null};var _0x6de9x8=_0x6de9x11[_0x8b12[77]]();_0x6de9x8= mxUtils[_0x8b12[78]](_0x6de9x8,mxConstants.STYLE_ENTRY_X,null);_0x6de9x8= mxUtils[_0x8b12[78]](_0x6de9x8,mxConstants.STYLE_ENTRY_Y,null);_0x6de9x8= mxUtils[_0x8b12[78]](_0x6de9x8,mxConstants.STYLE_EXIT_X,null);_0x6de9x8= mxUtils[_0x8b12[78]](_0x6de9x8,mxConstants.STYLE_EXIT_Y,null);_0x6de9x11[_0x8b12[78]](_0x6de9x8);this[_0x8b12[12]][_0x8b12[79]]= function(_0x6de9xb){return this[_0x8b12[47]][_0x8b12[34]][_0x8b12[80]](_0x6de9x11)};this[_0x8b12[12]][_0x8b12[81]]= function(){return this[_0x8b12[47]][_0x8b12[74]]([_0x6de9x11])[0]}}};Graph[_0x8b12[17]][_0x8b12[82]]= function(_0x6de9x6){return this[_0x8b12[83]]&& this[_0x8b12[84]](_0x6de9x6)};Graph[_0x8b12[17]][_0x8b12[85]]= function(_0x6de9x6){return this[_0x8b12[84]](_0x6de9x6)};Graph[_0x8b12[17]][_0x8b12[86]]= function(){var _0x6de9x12=mxGraph[_0x8b12[17]][_0x8b12[86]][_0x8b12[16]](this,arguments);_0x6de9x12[_0x8b12[78]](_0x8b12[87]);return _0x6de9x12};Graph[_0x8b12[17]][_0x8b12[88]]= function(_0x6de9x6){var _0x6de9x13=_0x8b12[89];if(this[_0x8b12[73]]()[_0x8b12[90]](_0x6de9x6)){_0x6de9x13+= mxResources[_0x8b12[94]](_0x8b12[91]+ _0x6de9x6[_0x8b12[93]][_0x8b12[92]])|| _0x8b12[89]}else {if(this[_0x8b12[73]]()[_0x8b12[72]](_0x6de9x6)){_0x6de9x13= mxGraph[_0x8b12[17]][_0x8b12[88]][_0x8b12[16]](this,arguments)}};return _0x6de9x13};Graph[_0x8b12[17]][_0x8b12[95]]= function(_0x6de9x6){if(_0x6de9x6[_0x8b12[93]]!= null&& typeof (_0x6de9x6[_0x8b12[93]])== _0x8b12[96]){return _0x6de9x6[_0x8b12[93]][_0x8b12[98]](_0x8b12[97])};return mxGraph[_0x8b12[17]][_0x8b12[95]][_0x8b12[16]](this,arguments)};Graph[_0x8b12[17]][_0x8b12[99]]= function(_0x6de9x6,_0x6de9x10,_0x6de9x14){if(_0x6de9x6[_0x8b12[93]]!= null&& typeof (_0x6de9x6[_0x8b12[93]])== _0x8b12[96]){var _0x6de9x15=_0x6de9x6[_0x8b12[93]][_0x8b12[100]](true);_0x6de9x15[_0x8b12[101]](_0x8b12[97],_0x6de9x10);_0x6de9x10= _0x6de9x15};mxGraph[_0x8b12[17]][_0x8b12[99]][_0x8b12[16]](this,arguments)};Graph[_0x8b12[17]][_0x8b12[102]]= function(_0x6de9x6,_0x6de9x16){var _0x6de9x10=null;if(_0x6de9x6[_0x8b12[93]]!= null&& typeof (_0x6de9x6[_0x8b12[93]])== _0x8b12[96]){_0x6de9x10= _0x6de9x6[_0x8b12[93]][_0x8b12[100]](true)}else {var _0x6de9x17=mxUtils[_0x8b12[103]]();_0x6de9x10= _0x6de9x17[_0x8b12[105]](_0x8b12[104]);_0x6de9x10[_0x8b12[101]](_0x8b12[97],_0x6de9x6[_0x8b12[93]])};if(_0x6de9x16!= null&& _0x6de9x16[_0x8b12[106]]> 0){_0x6de9x10[_0x8b12[101]](_0x8b12[107],_0x6de9x16)}else {_0x6de9x10[_0x8b12[108]](_0x8b12[107])};this[_0x8b12[110]][_0x8b12[109]](_0x6de9x6,_0x6de9x10)};Graph[_0x8b12[17]][_0x8b12[111]]= function(_0x6de9x6){if(_0x6de9x6[_0x8b12[93]]!= null&& typeof (_0x6de9x6[_0x8b12[93]])== _0x8b12[96]){return _0x6de9x6[_0x8b12[93]][_0x8b12[98]](_0x8b12[107])};return null};Graph[_0x8b12[17]][_0x8b12[56]]= function(){this[_0x8b12[12]][_0x8b12[113]][_0x8b12[112]]= function(){return this[_0x8b12[47]][_0x8b12[12]][_0x8b12[114]]!= null};this[_0x8b12[29]](mxEvent.START_EDITING,function(_0x6de9x18,_0x6de9x19){this[_0x8b12[30]][_0x8b12[115]]()});var _0x6de9x1a=false;var _0x6de9x1b=null;this[_0x8b12[116]]= function(_0x6de9xb){mxGraph[_0x8b12[17]][_0x8b12[116]][_0x8b12[16]](this,arguments);if(_0x6de9xb[_0x8b12[33]]()== null){var _0x6de9x6=this[_0x8b12[119]](_0x6de9xb[_0x8b12[117]],_0x6de9xb[_0x8b12[118]]);if(this[_0x8b12[73]]()[_0x8b12[72]](_0x6de9x6)){_0x6de9xb[_0x8b12[120]]= this[_0x8b12[34]][_0x8b12[33]](_0x6de9x6);if(_0x6de9xb[_0x8b12[120]]!= null&& _0x6de9xb[_0x8b12[120]][_0x8b12[121]]!= null){this[_0x8b12[26]][_0x8b12[25]][_0x8b12[24]]= _0x6de9xb[_0x8b12[120]][_0x8b12[121]][_0x8b12[122]][_0x8b12[25]][_0x8b12[24]]}}};if(_0x6de9xb[_0x8b12[33]]()== null){this[_0x8b12[26]][_0x8b12[25]][_0x8b12[24]]= _0x8b12[31]}};this[_0x8b12[123]]= function(_0x6de9x1c,_0x6de9xb,_0x6de9x18){if(_0x6de9x1c== mxEvent[_0x8b12[124]]){if(!this[_0x8b12[30]][_0x8b12[125]]()){_0x6de9x1b= _0x6de9xb[_0x8b12[126]]();_0x6de9x1a= (_0x6de9x1b!= null)?this[_0x8b12[53]](_0x6de9x1b):this[_0x8b12[127]]()}else {_0x6de9x1a= false;_0x6de9x1b= null}}else {if(_0x6de9x1c== mxEvent[_0x8b12[128]]){if(_0x6de9x1a&& !this[_0x8b12[129]]()){if(!this[_0x8b12[30]][_0x8b12[125]]()){var _0x6de9x1d=mxEvent[_0x8b12[131]](_0x6de9xb[_0x8b12[130]]());var _0x6de9x1e=mxEvent[_0x8b12[132]](_0x6de9xb[_0x8b12[130]]());this[_0x8b12[30]][_0x8b12[133]](_0x6de9x1d+ 16,_0x6de9x1e,_0x6de9x1b,_0x6de9xb[_0x8b12[130]]())};_0x6de9x1a= false;_0x6de9x1b= null;_0x6de9xb[_0x8b12[134]]();return};_0x6de9x1a= false;_0x6de9x1b= null}};mxGraph[_0x8b12[17]][_0x8b12[123]][_0x8b12[16]](this,arguments);if(_0x6de9x1c== mxEvent[_0x8b12[135]]&& _0x6de9xb[_0x8b12[136]]()){_0x6de9x1a= false;_0x6de9x1b= null}}};(function(){mxVertexHandler[_0x8b12[17]][_0x8b12[137]]= true;mxText[_0x8b12[17]][_0x8b12[138]]= 5;mxText[_0x8b12[17]][_0x8b12[139]]= 1;if(touchStyle){mxConstants[_0x8b12[140]]= 16;mxConstants[_0x8b12[141]]= 7;if(mxClient[_0x8b12[4]]){mxVertexHandler[_0x8b12[17]][_0x8b12[142]]= 4;mxEdgeHandler[_0x8b12[17]][_0x8b12[142]]= 6;Graph[_0x8b12[17]][_0x8b12[142]]= 14;Graph[_0x8b12[17]][_0x8b12[143]]= 20;mxPanningHandler[_0x8b12[17]][_0x8b12[144]]= false;mxPanningHandler[_0x8b12[17]][_0x8b12[145]]= true;mxPanningHandler[_0x8b12[17]][_0x8b12[146]]= function(_0x6de9xb){var _0x6de9x19=_0x6de9xb[_0x8b12[130]]();return (this[_0x8b12[145]]&& (this[_0x8b12[147]]|| _0x6de9xb[_0x8b12[33]]()== null))|| (mxEvent[_0x8b12[148]](_0x6de9x19)&& mxEvent[_0x8b12[149]](_0x6de9x19))|| (this[_0x8b12[150]]&& mxEvent[_0x8b12[151]](_0x6de9x19))}};var _0x6de9x1f=mxGraphHandler[_0x8b12[17]][_0x8b12[152]];mxGraphHandler[_0x8b12[17]][_0x8b12[152]]= function(_0x6de9x18,_0x6de9xb){_0x6de9x1f[_0x8b12[16]](this,arguments);if(this[_0x8b12[47]][_0x8b12[53]](_0x6de9xb[_0x8b12[126]]())&& this[_0x8b12[47]][_0x8b12[54]]()> 1){this[_0x8b12[153]]= false}};Graph[_0x8b12[17]][_0x8b12[154]]= function(_0x6de9x1){this[_0x8b12[155]]= new mxTooltipHandler(this);this[_0x8b12[155]][_0x8b12[156]](false);this[_0x8b12[157]]= new mxSelectionCellsHandler(this);this[_0x8b12[30]]= new mxPanningHandler(this);this[_0x8b12[30]][_0x8b12[158]]= false;this[_0x8b12[12]]= new mxConnectionHandler(this);this[_0x8b12[12]][_0x8b12[156]](false);this[_0x8b12[159]]= new mxGraphHandler(this)};mxConnectionHandler[_0x8b12[17]][_0x8b12[160]]= function(_0x6de9xe,_0x6de9x20){if(touchStyle&& _0x6de9x20!= null){this[_0x8b12[47]][_0x8b12[161]](_0x6de9x20)}else {this[_0x8b12[47]][_0x8b12[161]](_0x6de9xe)}};var _0x6de9x21=mxGraph[_0x8b12[17]][_0x8b12[162]];Graph[_0x8b12[17]][_0x8b12[162]]= function(_0x6de9x19,_0x6de9x6){if(_0x6de9x6== null){var _0x6de9x22=mxUtils[_0x8b12[163]](this[_0x8b12[26]],mxEvent[_0x8b12[131]](_0x6de9x19),mxEvent[_0x8b12[132]](_0x6de9x19));_0x6de9x6= this[_0x8b12[119]](_0x6de9x22[_0x8b12[164]],_0x6de9x22[_0x8b12[165]])};_0x6de9x21[_0x8b12[0]](this,_0x6de9x19,_0x6de9x6)};var _0x6de9x23= new mxImage(IMAGE_PATH+ _0x8b12[166],16,16);mxVertexHandler[_0x8b12[17]][_0x8b12[167]]= _0x6de9x23;mxEdgeHandler[_0x8b12[17]][_0x8b12[167]]= _0x6de9x23;mxOutline[_0x8b12[17]][_0x8b12[168]]= _0x6de9x23; new Image()[_0x8b12[169]]= _0x6de9x23[_0x8b12[169]];var _0x6de9x24=IMAGE_PATH+ _0x8b12[170];var _0x6de9x25=mxVertexHandler[_0x8b12[17]][_0x8b12[171]];mxVertexHandler[_0x8b12[17]][_0x8b12[171]]= function(){_0x6de9x25[_0x8b12[16]](this,arguments);if(showConnectorImg&& this[_0x8b12[47]][_0x8b12[12]][_0x8b12[112]]()&& this[_0x8b12[47]][_0x8b12[172]](this[_0x8b12[120]][_0x8b12[52]])&& !this[_0x8b12[47]][_0x8b12[85]](this[_0x8b12[120]][_0x8b12[52]])&& this[_0x8b12[47]][_0x8b12[54]]()== 1){this[_0x8b12[173]]= mxUtils[_0x8b12[174]](_0x6de9x24);this[_0x8b12[173]][_0x8b12[25]][_0x8b12[24]]= _0x8b12[27];this[_0x8b12[173]][_0x8b12[25]][_0x8b12[175]]= _0x8b12[176];this[_0x8b12[173]][_0x8b12[25]][_0x8b12[177]]= _0x8b12[176];this[_0x8b12[173]][_0x8b12[25]][_0x8b12[178]]= _0x8b12[179];if(!mxClient[_0x8b12[4]]){this[_0x8b12[173]][_0x8b12[101]](_0x8b12[180],mxResources[_0x8b12[94]](_0x8b12[18]));mxEvent[_0x8b12[181]](this[_0x8b12[173]],this[_0x8b12[47]],this[_0x8b12[120]])};this[_0x8b12[173]][_0x8b12[25]][_0x8b12[182]]= _0x8b12[183];mxEvent[_0x8b12[185]](this[_0x8b12[173]],mxUtils[_0x8b12[28]](this,function(_0x6de9x19){this[_0x8b12[47]][_0x8b12[30]][_0x8b12[115]]();var _0x6de9x22=mxUtils[_0x8b12[163]](this[_0x8b12[47]][_0x8b12[26]],mxEvent[_0x8b12[131]](_0x6de9x19),mxEvent[_0x8b12[132]](_0x6de9x19));this[_0x8b12[47]][_0x8b12[12]][_0x8b12[50]](this[_0x8b12[120]],_0x6de9x22[_0x8b12[164]],_0x6de9x22[_0x8b12[165]]);this[_0x8b12[47]][_0x8b12[184]]= true;mxEvent[_0x8b12[134]](_0x6de9x19)}));this[_0x8b12[47]][_0x8b12[26]][_0x8b12[186]](this[_0x8b12[173]])};this[_0x8b12[187]]()};var _0x6de9x26=mxVertexHandler[_0x8b12[17]][_0x8b12[188]];mxVertexHandler[_0x8b12[17]][_0x8b12[188]]= function(){_0x6de9x26[_0x8b12[16]](this);this[_0x8b12[187]]()};mxVertexHandler[_0x8b12[17]][_0x8b12[187]]= function(){if(this[_0x8b12[120]]!= null&& this[_0x8b12[173]]!= null){if(mxVertexHandler[_0x8b12[17]][_0x8b12[189]]){this[_0x8b12[173]][_0x8b12[25]][_0x8b12[190]]= (this[_0x8b12[120]][_0x8b12[164]]+ this[_0x8b12[120]][_0x8b12[175]]- this[_0x8b12[173]][_0x8b12[191]]/ 2)+ _0x8b12[192];this[_0x8b12[173]][_0x8b12[25]][_0x8b12[193]]= (this[_0x8b12[120]][_0x8b12[165]]- this[_0x8b12[173]][_0x8b12[194]]/ 2)+ _0x8b12[192]}else {this[_0x8b12[173]][_0x8b12[25]][_0x8b12[190]]= (this[_0x8b12[120]][_0x8b12[164]]+ this[_0x8b12[120]][_0x8b12[175]]+ mxConstants[_0x8b12[140]]/ 2+ 4)+ _0x8b12[192];this[_0x8b12[173]][_0x8b12[25]][_0x8b12[193]]= (this[_0x8b12[120]][_0x8b12[165]]+ (this[_0x8b12[120]][_0x8b12[177]]- this[_0x8b12[173]][_0x8b12[194]])/ 2)+ _0x8b12[192]}}};var _0x6de9x27=mxVertexHandler[_0x8b12[17]][_0x8b12[195]];mxVertexHandler[_0x8b12[17]][_0x8b12[195]]= function(_0x6de9x18,_0x6de9xb){_0x6de9x27[_0x8b12[16]](this,arguments);if(this[_0x8b12[173]]!= null){this[_0x8b12[173]][_0x8b12[197]][_0x8b12[196]](this[_0x8b12[173]]);this[_0x8b12[173]]= null}}; new Image()[_0x8b12[169]]= _0x6de9x24}else {var _0x6de9x28= new mxImage(IMAGE_PATH+ _0x8b12[198],15,15);mxConnectionHandler[_0x8b12[17]][_0x8b12[199]]= _0x6de9x28; new Image()[_0x8b12[169]]= _0x6de9x28[_0x8b12[169]];if(urlParams[_0x8b12[18]]== _0x8b12[19]){var _0x6de9x28= new mxImage(IMAGE_PATH+ _0x8b12[198],15,15);var _0x6de9x25=mxVertexHandler[_0x8b12[17]][_0x8b12[171]];mxVertexHandler[_0x8b12[17]][_0x8b12[171]]= function(){_0x6de9x25[_0x8b12[16]](this,arguments);if(showConnectorImg&& this[_0x8b12[47]][_0x8b12[12]][_0x8b12[112]]()&& this[_0x8b12[47]][_0x8b12[172]](this[_0x8b12[120]][_0x8b12[52]])&& !this[_0x8b12[47]][_0x8b12[85]](this[_0x8b12[120]][_0x8b12[52]])&& this[_0x8b12[47]][_0x8b12[54]]()== 1){if(mxClient[_0x8b12[200]]&& !mxClient[_0x8b12[201]]){this[_0x8b12[173]]= document[_0x8b12[105]](_0x8b12[202]);this[_0x8b12[173]][_0x8b12[25]][_0x8b12[203]]= _0x8b12[204]+ _0x6de9x28[_0x8b12[169]]+ _0x8b12[205];this[_0x8b12[173]][_0x8b12[25]][_0x8b12[206]]= _0x8b12[207];this[_0x8b12[173]][_0x8b12[25]][_0x8b12[208]]= _0x8b12[209];this[_0x8b12[173]][_0x8b12[25]][_0x8b12[175]]= (_0x6de9x28[_0x8b12[175]]+ 4)+ _0x8b12[192];this[_0x8b12[173]][_0x8b12[25]][_0x8b12[177]]= (_0x6de9x28[_0x8b12[177]]+ 4)+ _0x8b12[192];this[_0x8b12[173]][_0x8b12[25]][_0x8b12[210]]= (mxClient[_0x8b12[211]])?_0x8b12[212]:_0x8b12[213]}else {this[_0x8b12[173]]= mxUtils[_0x8b12[174]](_0x6de9x28[_0x8b12[169]]);this[_0x8b12[173]][_0x8b12[25]][_0x8b12[175]]= _0x6de9x28[_0x8b12[175]]+ _0x8b12[192];this[_0x8b12[173]][_0x8b12[25]][_0x8b12[177]]= _0x6de9x28[_0x8b12[177]]+ _0x8b12[192]};this[_0x8b12[173]][_0x8b12[25]][_0x8b12[24]]= _0x8b12[27];this[_0x8b12[173]][_0x8b12[25]][_0x8b12[178]]= _0x8b12[179];this[_0x8b12[173]][_0x8b12[101]](_0x8b12[180],mxResources[_0x8b12[94]](_0x8b12[18]));mxEvent[_0x8b12[181]](this[_0x8b12[173]],this[_0x8b12[47]],this[_0x8b12[120]]);this[_0x8b12[173]][_0x8b12[25]][_0x8b12[182]]= _0x8b12[183];mxEvent[_0x8b12[29]](this[_0x8b12[173]],_0x8b12[214],mxUtils[_0x8b12[28]](this,function(_0x6de9x19){this[_0x8b12[47]][_0x8b12[30]][_0x8b12[115]]();var _0x6de9x22=mxUtils[_0x8b12[163]](this[_0x8b12[47]][_0x8b12[26]],mxEvent[_0x8b12[131]](_0x6de9x19),mxEvent[_0x8b12[132]](_0x6de9x19));this[_0x8b12[47]][_0x8b12[12]][_0x8b12[50]](this[_0x8b12[120]],_0x6de9x22[_0x8b12[164]],_0x6de9x22[_0x8b12[165]]);this[_0x8b12[47]][_0x8b12[184]]= true;mxEvent[_0x8b12[134]](_0x6de9x19)}));this[_0x8b12[47]][_0x8b12[26]][_0x8b12[186]](this[_0x8b12[173]])};this[_0x8b12[187]]()};var _0x6de9x26=mxVertexHandler[_0x8b12[17]][_0x8b12[188]];mxVertexHandler[_0x8b12[17]][_0x8b12[188]]= function(){_0x6de9x26[_0x8b12[16]](this);this[_0x8b12[187]]()};mxVertexHandler[_0x8b12[17]][_0x8b12[187]]= function(){if(this[_0x8b12[120]]!= null&& this[_0x8b12[173]]!= null){if(mxVertexHandler[_0x8b12[17]][_0x8b12[189]]){this[_0x8b12[173]][_0x8b12[25]][_0x8b12[190]]= (this[_0x8b12[120]][_0x8b12[164]]+ this[_0x8b12[120]][_0x8b12[175]]- this[_0x8b12[173]][_0x8b12[191]]/ 2)+ _0x8b12[192];this[_0x8b12[173]][_0x8b12[25]][_0x8b12[193]]= (this[_0x8b12[120]][_0x8b12[165]]- this[_0x8b12[173]][_0x8b12[194]]/ 2)+ _0x8b12[192]}else {this[_0x8b12[173]][_0x8b12[25]][_0x8b12[190]]= (this[_0x8b12[120]][_0x8b12[164]]+ this[_0x8b12[120]][_0x8b12[175]]+ mxConstants[_0x8b12[140]]/ 2+ 2)+ _0x8b12[192];this[_0x8b12[173]][_0x8b12[25]][_0x8b12[193]]= (this[_0x8b12[120]][_0x8b12[165]]+ (this[_0x8b12[120]][_0x8b12[177]]- this[_0x8b12[173]][_0x8b12[194]])/ 2)+ _0x8b12[192]}}};var _0x6de9x27=mxVertexHandler[_0x8b12[17]][_0x8b12[195]];mxVertexHandler[_0x8b12[17]][_0x8b12[195]]= function(_0x6de9x18,_0x6de9xb){_0x6de9x27[_0x8b12[16]](this,arguments);if(this[_0x8b12[173]]!= null){this[_0x8b12[173]][_0x8b12[197]][_0x8b12[196]](this[_0x8b12[173]]);this[_0x8b12[173]]= null}}}}})() \ No newline at end of file diff --git a/public/assets/plugins/jscripty/js/Menus.js b/public/assets/plugins/jscripty/js/Menus.js index fa0be2c..91033e6 100644 --- a/public/assets/plugins/jscripty/js/Menus.js +++ b/public/assets/plugins/jscripty/js/Menus.js @@ -1 +1 @@ -var _0x8156=["\x65\x64\x69\x74\x6F\x72\x55\x69","\x6D\x65\x6E\x75\x73","\x69\x6E\x69\x74","\x73\x72\x63","\x2F\x63\x68\x65\x63\x6B\x6D\x61\x72\x6B\x2E\x67\x69\x66","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x67\x72\x61\x70\x68","\x65\x64\x69\x74\x6F\x72","\x66\x6F\x6E\x74\x46\x61\x6D\x69\x6C\x79","\x48\x65\x6C\x76\x65\x74\x69\x63\x61","\x56\x65\x72\x64\x61\x6E\x61","\x54\x69\x6D\x65\x73\x20\x4E\x65\x77\x20\x52\x6F\x6D\x61\x6E","\x47\x61\x72\x61\x6D\x6F\x6E\x64","\x43\x6F\x6D\x69\x63\x20\x53\x61\x6E\x73\x20\x4D\x53","\x43\x6F\x75\x72\x69\x65\x72\x20\x4E\x65\x77","\x47\x65\x6F\x72\x67\x69\x61","\x4C\x75\x63\x69\x64\x61\x20\x43\x6F\x6E\x73\x6F\x6C\x65","\x54\x61\x68\x6F\x6D\x61","\x6C\x65\x6E\x67\x74\x68","\x53\x54\x59\x4C\x45\x5F\x46\x4F\x4E\x54\x46\x41\x4D\x49\x4C\x59","\x73\x74\x79\x6C\x65\x43\x68\x61\x6E\x67\x65","\x73\x74\x79\x6C\x65","\x6E\x65\x78\x74\x53\x69\x62\x6C\x69\x6E\x67","\x66\x69\x72\x73\x74\x43\x68\x69\x6C\x64","\x61\x64\x64\x53\x65\x70\x61\x72\x61\x74\x6F\x72","\x63\x75\x73\x74\x6F\x6D","\x67\x65\x74","","\x70\x72\x6F\x6D\x70\x74\x43\x68\x61\x6E\x67\x65","\x62\x69\x6E\x64","\x70\x75\x74","\x66\x6F\x6E\x74\x53\x69\x7A\x65","\x53\x54\x59\x4C\x45\x5F\x46\x4F\x4E\x54\x53\x49\x5A\x45","\x28\x70\x74\x29","\x31\x32","\x6C\x69\x6E\x65\x77\x69\x64\x74\x68","\x70\x78","\x53\x54\x59\x4C\x45\x5F\x53\x54\x52\x4F\x4B\x45\x57\x49\x44\x54\x48","\x28\x70\x78\x29","\x31","\x6C\x69\x6E\x65","\x73\x74\x72\x61\x69\x67\x68\x74","\x53\x54\x59\x4C\x45\x5F\x45\x44\x47\x45","\x65\x6E\x74\x69\x74\x79\x52\x65\x6C\x61\x74\x69\x6F\x6E","\x65\x6E\x74\x69\x74\x79\x52\x65\x6C\x61\x74\x69\x6F\x6E\x45\x64\x67\x65\x53\x74\x79\x6C\x65","\x68\x6F\x72\x69\x7A\x6F\x6E\x74\x61\x6C","\x53\x54\x59\x4C\x45\x5F\x45\x4C\x42\x4F\x57","\x65\x6C\x62\x6F\x77\x45\x64\x67\x65\x53\x74\x79\x6C\x65","\x76\x65\x72\x74\x69\x63\x61\x6C","\x6D\x61\x6E\x75\x61\x6C","\x73\x65\x67\x6D\x65\x6E\x74\x45\x64\x67\x65\x53\x74\x79\x6C\x65","\x61\x75\x74\x6F\x6D\x61\x74\x69\x63","\x6F\x72\x74\x68\x6F\x67\x6F\x6E\x61\x6C\x45\x64\x67\x65\x53\x74\x79\x6C\x65","\x6C\x69\x6E\x65\x65\x6E\x64","\x63\x6C\x61\x73\x73\x69\x63","\x53\x54\x59\x4C\x45\x5F\x45\x4E\x44\x41\x52\x52\x4F\x57","\x41\x52\x52\x4F\x57\x5F\x43\x4C\x41\x53\x53\x49\x43","\x6F\x70\x65\x6E\x41\x72\x72\x6F\x77","\x41\x52\x52\x4F\x57\x5F\x4F\x50\x45\x4E","\x62\x6C\x6F\x63\x6B","\x41\x52\x52\x4F\x57\x5F\x42\x4C\x4F\x43\x4B","\x6F\x76\x61\x6C","\x41\x52\x52\x4F\x57\x5F\x4F\x56\x41\x4C","\x64\x69\x61\x6D\x6F\x6E\x64","\x41\x52\x52\x4F\x57\x5F\x44\x49\x41\x4D\x4F\x4E\x44","\x64\x69\x61\x6D\x6F\x6E\x64\x54\x68\x69\x6E","\x41\x52\x52\x4F\x57\x5F\x44\x49\x41\x4D\x4F\x4E\x44\x5F\x54\x48\x49\x4E","\x6E\x6F\x6E\x65","\x4E\x4F\x4E\x45","\x74\x72\x61\x6E\x73\x70\x61\x72\x65\x6E\x74","\x65\x6E\x64\x46\x69\x6C\x6C","\x74\x6F\x67\x67\x6C\x65\x43\x65\x6C\x6C\x53\x74\x79\x6C\x65\x73","\x61\x64\x64\x49\x74\x65\x6D","\x73\x69\x7A\x65","\x6C\x69\x6E\x65\x73\x74\x61\x72\x74","\x53\x54\x59\x4C\x45\x5F\x53\x54\x41\x52\x54\x41\x52\x52\x4F\x57","\x73\x74\x61\x72\x74\x46\x69\x6C\x6C","\x73\x70\x61\x63\x69\x6E\x67","\x65\x6E\x61\x62\x6C\x65\x64","\x73\x68\x61\x64\x6F\x77","\x61\x63\x74\x69\x6F\x6E\x73","\x73\x68\x6F\x77\x44\x69\x73\x61\x62\x6C\x65\x64","\x74\x6F\x70","\x30","\x72\x69\x67\x68\x74","\x62\x6F\x74\x74\x6F\x6D","\x6C\x65\x66\x74","\x67\x6C\x6F\x62\x61\x6C","\x70\x65\x72\x69\x6D\x65\x74\x65\x72","\x73\x6F\x75\x72\x63\x65\x53\x70\x61\x63\x69\x6E\x67","\x74\x61\x72\x67\x65\x74\x53\x70\x61\x63\x69\x6E\x67","\x66\x6F\x72\x6D\x61\x74","\x61\x64\x64\x4D\x65\x6E\x75\x49\x74\x65\x6D","\x74\x65\x78\x74","\x61\x64\x64\x53\x75\x62\x6D\x65\x6E\x75","\x2D","\x62\x6F\x6C\x64","\x69\x74\x61\x6C\x69\x63","\x75\x6E\x64\x65\x72\x6C\x69\x6E\x65","\x61\x64\x64\x4D\x65\x6E\x75\x49\x74\x65\x6D\x73","\x61\x6C\x69\x67\x6E\x6D\x65\x6E\x74","\x77\x6F\x72\x64\x57\x72\x61\x70","\x74\x65\x78\x74\x4F\x70\x61\x63\x69\x74\x79","\x28\x25\x29","\x31\x30\x30","\x68\x69\x64\x65","\x6C\x65\x66\x74\x41\x6C\x69\x67\x6E","\x53\x54\x59\x4C\x45\x5F\x41\x4C\x49\x47\x4E","\x41\x4C\x49\x47\x4E\x5F\x4C\x45\x46\x54","\x63\x65\x6E\x74\x65\x72","\x41\x4C\x49\x47\x4E\x5F\x43\x45\x4E\x54\x45\x52","\x72\x69\x67\x68\x74\x41\x6C\x69\x67\x6E","\x41\x4C\x49\x47\x4E\x5F\x52\x49\x47\x48\x54","\x74\x6F\x70\x41\x6C\x69\x67\x6E","\x53\x54\x59\x4C\x45\x5F\x56\x45\x52\x54\x49\x43\x41\x4C\x5F\x41\x4C\x49\x47\x4E","\x41\x4C\x49\x47\x4E\x5F\x54\x4F\x50","\x6D\x69\x64\x64\x6C\x65","\x41\x4C\x49\x47\x4E\x5F\x4D\x49\x44\x44\x4C\x45","\x62\x6F\x74\x74\x6F\x6D\x41\x6C\x69\x67\x6E","\x41\x4C\x49\x47\x4E\x5F\x42\x4F\x54\x54\x4F\x4D","\x70\x6F\x73\x69\x74\x69\x6F\x6E","\x53\x54\x59\x4C\x45\x5F\x4C\x41\x42\x45\x4C\x5F\x50\x4F\x53\x49\x54\x49\x4F\x4E","\x53\x54\x59\x4C\x45\x5F\x56\x45\x52\x54\x49\x43\x41\x4C\x5F\x4C\x41\x42\x45\x4C\x5F\x50\x4F\x53\x49\x54\x49\x4F\x4E","\x64\x69\x72\x65\x63\x74\x69\x6F\x6E","\x66\x6C\x69\x70\x48","\x66\x6C\x69\x70\x56","\x74\x69\x6C\x74","\x72\x6F\x74\x61\x74\x69\x6F\x6E","\x61\x6C\x69\x67\x6E","\x61\x6C\x69\x67\x6E\x43\x65\x6C\x6C\x73","\x6C\x61\x79\x6F\x75\x74","\x68\x6F\x72\x69\x7A\x6F\x6E\x74\x61\x6C\x46\x6C\x6F\x77","\x65\x78\x65\x63\x75\x74\x65\x4C\x61\x79\x6F\x75\x74","\x76\x65\x72\x74\x69\x63\x61\x6C\x46\x6C\x6F\x77","\x6E\x61\x76\x69\x67\x61\x74\x69\x6F\x6E","\x68\x6F\x6D\x65","\x65\x78\x69\x74\x47\x72\x6F\x75\x70","\x65\x6E\x74\x65\x72\x47\x72\x6F\x75\x70","\x65\x78\x70\x61\x6E\x64","\x63\x6F\x6C\x6C\x61\x70\x73\x65","\x61\x72\x72\x61\x6E\x67\x65","\x74\x6F\x46\x72\x6F\x6E\x74","\x74\x6F\x42\x61\x63\x6B","\x67\x72\x6F\x75\x70","\x75\x6E\x67\x72\x6F\x75\x70","\x72\x65\x6D\x6F\x76\x65\x46\x72\x6F\x6D\x47\x72\x6F\x75\x70","\x76\x69\x65\x77","\x61\x63\x74\x75\x61\x6C\x53\x69\x7A\x65","\x25","\x7A\x6F\x6F\x6D\x54\x6F","\x7A\x6F\x6F\x6D\x49\x6E","\x7A\x6F\x6F\x6D\x4F\x75\x74","\x66\x69\x74\x57\x69\x6E\x64\x6F\x77","\x63\x75\x73\x74\x6F\x6D\x5A\x6F\x6F\x6D","\x66\x69\x74\x50\x61\x67\x65","\x66\x69\x74\x50\x61\x67\x65\x57\x69\x64\x74\x68","\x66\x69\x6C\x65","\x6E\x65\x77","\x6F\x70\x65\x6E","\x73\x61\x76\x65","\x73\x61\x76\x65\x41\x73","\x70\x75\x62\x6C\x69\x73\x68","\x76\x61\x72\x69\x61\x62\x6C\x65","\x69\x6D\x70\x6F\x72\x74","\x65\x78\x70\x6F\x72\x74","\x65\x64\x69\x74\x46\x69\x6C\x65","\x72\x65\x6E\x61\x6D\x65","\x70\x72\x69\x6E\x74","\x65\x64\x69\x74","\x75\x6E\x64\x6F","\x72\x65\x64\x6F","\x63\x75\x74","\x63\x6F\x70\x79","\x70\x61\x73\x74\x65","\x64\x65\x6C\x65\x74\x65","\x64\x75\x70\x6C\x69\x63\x61\x74\x65","\x73\x65\x6C\x65\x63\x74\x56\x65\x72\x74\x69\x63\x65\x73","\x73\x65\x6C\x65\x63\x74\x45\x64\x67\x65\x73","\x73\x65\x6C\x65\x63\x74\x41\x6C\x6C","\x68\x65\x6C\x70","\x61\x62\x6F\x75\x74","\x61\x64\x64\x4D\x65\x6E\x75","\x65\x78\x65\x63\x75\x74\x65","\x62\x65\x67\x69\x6E\x55\x70\x64\x61\x74\x65","\x67\x65\x74\x4D\x6F\x64\x65\x6C","\x73\x65\x74\x43\x65\x6C\x6C\x53\x74\x79\x6C\x65\x73","\x65\x6E\x64\x55\x70\x64\x61\x74\x65","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C","\x67\x65\x74\x53\x74\x61\x74\x65","\x67\x65\x74\x56\x69\x65\x77","\x65\x6E\x74\x65\x72\x56\x61\x6C\x75\x65","\x20","\x70\x72\x6F\x6D\x70\x74","\x6C\x61\x62\x65\x6C","\x66\x75\x6E\x63\x74","\x74\x6F\x67\x67\x6C\x65\x41\x63\x74\x69\x6F\x6E","\x69\x73\x53\x65\x6C\x65\x63\x74\x65\x64","\x61\x64\x64\x43\x68\x65\x63\x6B\x6D\x61\x72\x6B","\x61\x64\x64\x53\x68\x6F\x72\x74\x63\x75\x74","\x73\x68\x6F\x72\x74\x63\x75\x74","\x73\x70\x61\x6E","\x63\x72\x65\x61\x74\x65\x45\x6C\x65\x6D\x65\x6E\x74","\x63\x6F\x6C\x6F\x72","\x67\x72\x61\x79","\x77\x72\x69\x74\x65","\x61\x70\x70\x65\x6E\x64\x43\x68\x69\x6C\x64","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x49\x6D\x61\x67\x65","\x75\x72\x6C\x28","\x2F\x63\x68\x65\x63\x6B\x6D\x61\x72\x6B\x2E\x67\x69\x66\x29","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x52\x65\x70\x65\x61\x74","\x6E\x6F\x2D\x72\x65\x70\x65\x61\x74","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x50\x6F\x73\x69\x74\x69\x6F\x6E","\x32\x70\x78\x20\x35\x30\x25","\x63\x72\x65\x61\x74\x65\x50\x6F\x70\x75\x70\x4D\x65\x6E\x75","\x73\x6D\x61\x72\x74\x53\x65\x70\x61\x72\x61\x74\x6F\x72\x73","\x69\x73\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x45\x6D\x70\x74\x79","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x6F\x75\x6E\x74","\x69\x73\x45\x64\x67\x65","\x73\x65\x74\x41\x73\x44\x65\x66\x61\x75\x6C\x74\x45\x64\x67\x65","\x67\x65\x74\x48\x61\x6E\x64\x6C\x65\x72","\x73\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C\x73\x48\x61\x6E\x64\x6C\x65\x72","\x62\x65\x6E\x64\x73","\x67\x65\x74\x48\x61\x6E\x64\x6C\x65\x46\x6F\x72\x45\x76\x65\x6E\x74","\x72\x65\x6D\x6F\x76\x65\x57\x61\x79\x70\x6F\x69\x6E\x74","\x68\x61\x6E\x64\x6C\x65\x72","\x69\x6E\x64\x65\x78","\x61\x64\x64\x57\x61\x79\x70\x6F\x69\x6E\x74","\x67\x65\x74\x4C\x69\x6E\x6B\x46\x6F\x72\x43\x65\x6C\x6C","\x6F\x70\x65\x6E\x4C\x69\x6E\x6B","\x63\x72\x65\x61\x74\x65\x4D\x65\x6E\x75\x62\x61\x72","\x63\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x68\x69\x64\x65\x4D\x65\x6E\x75","\x61\x64\x64\x47\x65\x73\x74\x75\x72\x65\x4C\x69\x73\x74\x65\x6E\x65\x72\x73","\x63\x75\x72\x72\x65\x6E\x74\x4D\x65\x6E\x75","\x61","\x68\x72\x65\x66","\x6A\x61\x76\x61\x73\x63\x72\x69\x70\x74\x3A\x76\x6F\x69\x64\x28\x30\x29\x3B","\x73\x65\x74\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x63\x6C\x61\x73\x73\x4E\x61\x6D\x65","\x67\x65\x49\x74\x65\x6D","\x61\x64\x64\x4D\x65\x6E\x75\x48\x61\x6E\x64\x6C\x65\x72","\x70\x61\x6E\x6E\x69\x6E\x67\x48\x61\x6E\x64\x6C\x65\x72","\x64\x69\x76","\x20\x67\x65\x4D\x65\x6E\x75\x62\x61\x72\x4D\x65\x6E\x75","\x61\x75\x74\x6F\x45\x78\x70\x61\x6E\x64","\x61\x70\x70\x6C\x79","\x64\x65\x73\x74\x72\x6F\x79","\x63\x75\x72\x72\x65\x6E\x74\x45\x6C\x74","\x6F\x66\x66\x73\x65\x74\x4C\x65\x66\x74","\x6F\x66\x66\x73\x65\x74\x57\x69\x64\x74\x68","\x70\x61\x67\x65\x2D\x73\x69\x64\x65\x62\x61\x72","\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x42\x79\x49\x64","\x6F\x66\x66\x73\x65\x74\x54\x6F\x70","\x6F\x66\x66\x73\x65\x74\x48\x65\x69\x67\x68\x74","\x70\x6F\x70\x75\x70","\x63\x6F\x6E\x73\x75\x6D\x65","\x6D\x6F\x75\x73\x65\x6D\x6F\x76\x65","\x61\x64\x64\x4C\x69\x73\x74\x65\x6E\x65\x72","\x6D\x6F\x75\x73\x65\x64\x6F\x77\x6E","\x63\x6C\x69\x63\x6B","\x63\x61\x6C\x6C","\x65\x78\x74\x65\x6E\x64","\x73\x65\x74\x45\x6E\x61\x62\x6C\x65\x64","\x73\x74\x61\x74\x65\x43\x68\x61\x6E\x67\x65\x64","\x66\x69\x72\x65\x45\x76\x65\x6E\x74"];Menus= function(_0xf214x1){this[_0x8156[0]]= _0xf214x1;this[_0x8156[1]]= new Object();this[_0x8156[2]](); new Image()[_0x8156[3]]= IMAGE_PATH+ _0x8156[4]};Menus[_0x8156[5]][_0x8156[2]]= function(){var _0xf214x2=this[_0x8156[0]][_0x8156[7]][_0x8156[6]];this[_0x8156[30]](_0x8156[8], new Menu(mxUtils[_0x8156[29]](this,function(_0xf214x3,_0xf214x4){var _0xf214x5=[_0x8156[9],_0x8156[10],_0x8156[11],_0x8156[12],_0x8156[13],_0x8156[14],_0x8156[15],_0x8156[16],_0x8156[17]];for(var _0xf214x6=0;_0xf214x6< _0xf214x5[_0x8156[18]];_0xf214x6++){var _0xf214x7=this[_0x8156[20]](_0xf214x3,_0xf214x5[_0xf214x6],[mxConstants[_0x8156[19]]],[_0xf214x5[_0xf214x6]],null,_0xf214x4);_0xf214x7[_0x8156[23]][_0x8156[22]][_0x8156[21]][_0x8156[8]]= _0xf214x5[_0xf214x6]};_0xf214x3[_0x8156[24]](_0xf214x4);this[_0x8156[28]](_0xf214x3,mxResources[_0x8156[26]](_0x8156[25]),_0x8156[27],mxConstants.DEFAULT_FONTFAMILY,mxConstants.STYLE_FONTFAMILY,_0xf214x4)})));this[_0x8156[30]](_0x8156[31], new Menu(mxUtils[_0x8156[29]](this,function(_0xf214x3,_0xf214x4){var _0xf214x8=[6,8,9,10,11,12,14,18,24,36,48,72];for(var _0xf214x6=0;_0xf214x6< _0xf214x8[_0x8156[18]];_0xf214x6++){this[_0x8156[20]](_0xf214x3,_0xf214x8[_0xf214x6],[mxConstants[_0x8156[32]]],[_0xf214x8[_0xf214x6]],null,_0xf214x4)};_0xf214x3[_0x8156[24]](_0xf214x4);this[_0x8156[28]](_0xf214x3,mxResources[_0x8156[26]](_0x8156[25]),_0x8156[33],_0x8156[34],mxConstants.STYLE_FONTSIZE,_0xf214x4)})));this[_0x8156[30]](_0x8156[35], new Menu(mxUtils[_0x8156[29]](this,function(_0xf214x3,_0xf214x4){var _0xf214x8=[1,2,3,4,8,12,16,24];for(var _0xf214x6=0;_0xf214x6< _0xf214x8[_0x8156[18]];_0xf214x6++){this[_0x8156[20]](_0xf214x3,_0xf214x8[_0xf214x6]+ _0x8156[36],[mxConstants[_0x8156[37]]],[_0xf214x8[_0xf214x6]],null,_0xf214x4)};_0xf214x3[_0x8156[24]](_0xf214x4);this[_0x8156[28]](_0xf214x3,mxResources[_0x8156[26]](_0x8156[25]),_0x8156[38],_0x8156[39],mxConstants.STYLE_STROKEWIDTH,_0xf214x4)})));this[_0x8156[30]](_0x8156[40], new Menu(mxUtils[_0x8156[29]](this,function(_0xf214x3,_0xf214x4){this[_0x8156[20]](_0xf214x3,mxResources[_0x8156[26]](_0x8156[41]),[mxConstants[_0x8156[42]]],[null],null,_0xf214x4);this[_0x8156[20]](_0xf214x3,mxResources[_0x8156[26]](_0x8156[43]),[mxConstants[_0x8156[42]]],[_0x8156[44]],null,_0xf214x4);_0xf214x3[_0x8156[24]](_0xf214x4);this[_0x8156[20]](_0xf214x3,mxResources[_0x8156[26]](_0x8156[45]),[mxConstants[_0x8156[42]],mxConstants[_0x8156[46]]],[_0x8156[47],_0x8156[45]],null,_0xf214x4);this[_0x8156[20]](_0xf214x3,mxResources[_0x8156[26]](_0x8156[48]),[mxConstants[_0x8156[42]],mxConstants[_0x8156[46]]],[_0x8156[47],_0x8156[48]],null,_0xf214x4);_0xf214x3[_0x8156[24]](_0xf214x4);this[_0x8156[20]](_0xf214x3,mxResources[_0x8156[26]](_0x8156[49]),[mxConstants[_0x8156[42]]],[_0x8156[50]],null,_0xf214x4);this[_0x8156[20]](_0xf214x3,mxResources[_0x8156[26]](_0x8156[51]),[mxConstants[_0x8156[42]]],[_0x8156[52]],null,_0xf214x4)})));this[_0x8156[30]](_0x8156[53], new Menu(mxUtils[_0x8156[29]](this,function(_0xf214x3,_0xf214x4){this[_0x8156[20]](_0xf214x3,mxResources[_0x8156[26]](_0x8156[54]),[mxConstants[_0x8156[55]]],[mxConstants[_0x8156[56]]],null,_0xf214x4);this[_0x8156[20]](_0xf214x3,mxResources[_0x8156[26]](_0x8156[57]),[mxConstants[_0x8156[55]]],[mxConstants[_0x8156[58]]],null,_0xf214x4);this[_0x8156[20]](_0xf214x3,mxResources[_0x8156[26]](_0x8156[59]),[mxConstants[_0x8156[55]]],[mxConstants[_0x8156[60]]],null,_0xf214x4);_0xf214x3[_0x8156[24]](_0xf214x4);this[_0x8156[20]](_0xf214x3,mxResources[_0x8156[26]](_0x8156[61]),[mxConstants[_0x8156[55]]],[mxConstants[_0x8156[62]]],null,_0xf214x4);this[_0x8156[20]](_0xf214x3,mxResources[_0x8156[26]](_0x8156[63]),[mxConstants[_0x8156[55]]],[mxConstants[_0x8156[64]]],null,_0xf214x4);this[_0x8156[20]](_0xf214x3,mxResources[_0x8156[26]](_0x8156[65]),[mxConstants[_0x8156[55]]],[mxConstants[_0x8156[66]]],null,_0xf214x4);_0xf214x3[_0x8156[24]](_0xf214x4);this[_0x8156[20]](_0xf214x3,mxResources[_0x8156[26]](_0x8156[67]),[mxConstants[_0x8156[55]]],[mxConstants[_0x8156[68]]],null,_0xf214x4);_0xf214x3[_0x8156[24]](_0xf214x4);_0xf214x3[_0x8156[72]](mxResources[_0x8156[26]](_0x8156[69]),null,function(){_0xf214x2[_0x8156[71]](_0x8156[70],true)},_0xf214x4,null,true);_0xf214x3[_0x8156[24]](_0xf214x4);this[_0x8156[28]](_0xf214x3,mxResources[_0x8156[26]](_0x8156[73]),_0x8156[38],mxConstants.DEFAULT_MARKERSIZE,mxConstants.STYLE_ENDSIZE,_0xf214x4)})));this[_0x8156[30]](_0x8156[74], new Menu(mxUtils[_0x8156[29]](this,function(_0xf214x3,_0xf214x4){this[_0x8156[20]](_0xf214x3,mxResources[_0x8156[26]](_0x8156[54]),[mxConstants[_0x8156[75]]],[mxConstants[_0x8156[56]]],null,_0xf214x4);this[_0x8156[20]](_0xf214x3,mxResources[_0x8156[26]](_0x8156[57]),[mxConstants[_0x8156[75]]],[mxConstants[_0x8156[58]]],null,_0xf214x4);this[_0x8156[20]](_0xf214x3,mxResources[_0x8156[26]](_0x8156[59]),[mxConstants[_0x8156[75]]],[mxConstants[_0x8156[60]]],null,_0xf214x4);_0xf214x3[_0x8156[24]](_0xf214x4);this[_0x8156[20]](_0xf214x3,mxResources[_0x8156[26]](_0x8156[61]),[mxConstants[_0x8156[75]]],[mxConstants[_0x8156[62]]],null,_0xf214x4);this[_0x8156[20]](_0xf214x3,mxResources[_0x8156[26]](_0x8156[63]),[mxConstants[_0x8156[75]]],[mxConstants[_0x8156[64]]],null,_0xf214x4);this[_0x8156[20]](_0xf214x3,mxResources[_0x8156[26]](_0x8156[65]),[mxConstants[_0x8156[75]]],[mxConstants[_0x8156[66]]],null,_0xf214x4);_0xf214x3[_0x8156[24]](_0xf214x4);this[_0x8156[20]](_0xf214x3,mxResources[_0x8156[26]](_0x8156[67]),[mxConstants[_0x8156[75]]],[mxConstants[_0x8156[68]]],null,_0xf214x4);_0xf214x3[_0x8156[24]](_0xf214x4);_0xf214x3[_0x8156[72]](mxResources[_0x8156[26]](_0x8156[69]),null,function(){_0xf214x2[_0x8156[71]](_0x8156[76],true)},_0xf214x4,null,true);_0xf214x3[_0x8156[24]](_0xf214x4);this[_0x8156[28]](_0xf214x3,mxResources[_0x8156[26]](_0x8156[73]),_0x8156[38],mxConstants.DEFAULT_MARKERSIZE,mxConstants.STYLE_STARTSIZE,_0xf214x4)})));this[_0x8156[30]](_0x8156[77], new Menu(mxUtils[_0x8156[29]](this,function(_0xf214x3,_0xf214x4){var _0xf214x9=this[_0x8156[0]][_0x8156[80]][_0x8156[26]](_0x8156[79])[_0x8156[78]];var _0xf214xa=this[_0x8156[26]](_0x8156[40])[_0x8156[78]];if(_0xf214x9|| _0xf214x3[_0x8156[81]]){this[_0x8156[28]](_0xf214x3,mxResources[_0x8156[26]](_0x8156[82]),_0x8156[38],_0x8156[83],mxConstants.STYLE_SPACING_TOP,_0xf214x4,_0xf214x9);this[_0x8156[28]](_0xf214x3,mxResources[_0x8156[26]](_0x8156[84]),_0x8156[38],_0x8156[83],mxConstants.STYLE_SPACING_RIGHT,_0xf214x4,_0xf214x9);this[_0x8156[28]](_0xf214x3,mxResources[_0x8156[26]](_0x8156[85]),_0x8156[38],_0x8156[83],mxConstants.STYLE_SPACING_BOTTOM,_0xf214x4,_0xf214x9);this[_0x8156[28]](_0xf214x3,mxResources[_0x8156[26]](_0x8156[86]),_0x8156[38],_0x8156[83],mxConstants.STYLE_SPACING_LEFT,_0xf214x4,_0xf214x9);_0xf214x3[_0x8156[24]](_0xf214x4);this[_0x8156[28]](_0xf214x3,mxResources[_0x8156[26]](_0x8156[87]),_0x8156[38],_0x8156[83],mxConstants.STYLE_SPACING,_0xf214x4,_0xf214x9);this[_0x8156[28]](_0xf214x3,mxResources[_0x8156[26]](_0x8156[88]),_0x8156[38],_0x8156[83],mxConstants.STYLE_PERIMETER_SPACING,_0xf214x4,_0xf214x9)};if(_0xf214xa|| _0xf214x3[_0x8156[81]]){_0xf214x3[_0x8156[24]](_0xf214x4);this[_0x8156[28]](_0xf214x3,mxResources[_0x8156[26]](_0x8156[89]),_0x8156[38],_0x8156[83],mxConstants.STYLE_SOURCE_PERIMETER_SPACING,_0xf214x4,_0xf214xa);this[_0x8156[28]](_0xf214x3,mxResources[_0x8156[26]](_0x8156[90]),_0x8156[38],_0x8156[83],mxConstants.STYLE_TARGET_PERIMETER_SPACING,_0xf214x4,_0xf214xa)}})));this[_0x8156[30]](_0x8156[91], new Menu(mxUtils[_0x8156[29]](this,function(_0xf214x3,_0xf214x4){this[_0x8156[92]](_0xf214x3,_0x8156[21],_0xf214x4)})));this[_0x8156[30]](_0x8156[93], new Menu(mxUtils[_0x8156[29]](this,function(_0xf214x3,_0xf214x4){var _0xf214xb=this[_0x8156[26]](_0x8156[93])[_0x8156[78]];_0xf214x3[_0x8156[24]](_0xf214x4);this[_0x8156[94]](_0x8156[8],_0xf214x3,_0xf214x4);this[_0x8156[94]](_0x8156[31],_0xf214x3,_0xf214x4);this[_0x8156[99]](_0xf214x3,[_0x8156[95],_0x8156[96],_0x8156[97],_0x8156[98],_0x8156[95]],_0xf214x4);this[_0x8156[94]](_0x8156[100],_0xf214x3,_0xf214x4);this[_0x8156[92]](_0xf214x3,_0x8156[101],_0xf214x4);_0xf214x3[_0x8156[24]](_0xf214x4);this[_0x8156[28]](_0xf214x3,mxResources[_0x8156[26]](_0x8156[102]),_0x8156[103],_0x8156[104],mxConstants.STYLE_TEXT_OPACITY,_0xf214x4,_0xf214xb);_0xf214x3[_0x8156[72]](mxResources[_0x8156[26]](_0x8156[105]),null,function(){_0xf214x2[_0x8156[71]](mxConstants.STYLE_NOLABEL,false)},_0xf214x4,null,_0xf214xb)})));this[_0x8156[30]](_0x8156[100], new Menu(mxUtils[_0x8156[29]](this,function(_0xf214x3,_0xf214x4){this[_0x8156[20]](_0xf214x3,mxResources[_0x8156[26]](_0x8156[106]),[mxConstants[_0x8156[107]]],[mxConstants[_0x8156[108]]],null,_0xf214x4);this[_0x8156[20]](_0xf214x3,mxResources[_0x8156[26]](_0x8156[109]),[mxConstants[_0x8156[107]]],[mxConstants[_0x8156[110]]],null,_0xf214x4);this[_0x8156[20]](_0xf214x3,mxResources[_0x8156[26]](_0x8156[111]),[mxConstants[_0x8156[107]]],[mxConstants[_0x8156[112]]],null,_0xf214x4);_0xf214x3[_0x8156[24]](_0xf214x4);this[_0x8156[20]](_0xf214x3,mxResources[_0x8156[26]](_0x8156[113]),[mxConstants[_0x8156[114]]],[mxConstants[_0x8156[115]]],null,_0xf214x4);this[_0x8156[20]](_0xf214x3,mxResources[_0x8156[26]](_0x8156[116]),[mxConstants[_0x8156[114]]],[mxConstants[_0x8156[117]]],null,_0xf214x4);this[_0x8156[20]](_0xf214x3,mxResources[_0x8156[26]](_0x8156[118]),[mxConstants[_0x8156[114]]],[mxConstants[_0x8156[119]]],null,_0xf214x4);_0xf214x3[_0x8156[24]](_0xf214x4);this[_0x8156[94]](_0x8156[120],_0xf214x3,_0xf214x4);this[_0x8156[94]](_0x8156[77],_0xf214x3,_0xf214x4);_0xf214x3[_0x8156[24]](_0xf214x4);var _0xf214xb=this[_0x8156[26]](_0x8156[93])[_0x8156[78]];_0xf214x3[_0x8156[72]](mxResources[_0x8156[26]](_0x8156[48]),null,function(){_0xf214x2[_0x8156[71]](mxConstants.STYLE_HORIZONTAL,true)},_0xf214x4,null,_0xf214xb)})));this[_0x8156[30]](_0x8156[120], new Menu(mxUtils[_0x8156[29]](this,function(_0xf214x3,_0xf214x4){this[_0x8156[20]](_0xf214x3,mxResources[_0x8156[26]](_0x8156[86]),[mxConstants[_0x8156[121]],mxConstants[_0x8156[107]]],[mxConstants[_0x8156[108]],mxConstants[_0x8156[112]]],null,_0xf214x4);this[_0x8156[20]](_0xf214x3,mxResources[_0x8156[26]](_0x8156[109]),[mxConstants[_0x8156[121]],mxConstants[_0x8156[107]]],[mxConstants[_0x8156[110]],mxConstants[_0x8156[110]]],null,_0xf214x4);this[_0x8156[20]](_0xf214x3,mxResources[_0x8156[26]](_0x8156[84]),[mxConstants[_0x8156[121]],mxConstants[_0x8156[107]]],[mxConstants[_0x8156[112]],mxConstants[_0x8156[108]]],null,_0xf214x4);_0xf214x3[_0x8156[24]](_0xf214x4);this[_0x8156[20]](_0xf214x3,mxResources[_0x8156[26]](_0x8156[82]),[mxConstants[_0x8156[122]],mxConstants[_0x8156[114]]],[mxConstants[_0x8156[115]],mxConstants[_0x8156[119]]],null,_0xf214x4);this[_0x8156[20]](_0xf214x3,mxResources[_0x8156[26]](_0x8156[116]),[mxConstants[_0x8156[122]],mxConstants[_0x8156[114]]],[mxConstants[_0x8156[117]],mxConstants[_0x8156[117]]],null,_0xf214x4);this[_0x8156[20]](_0xf214x3,mxResources[_0x8156[26]](_0x8156[85]),[mxConstants[_0x8156[122]],mxConstants[_0x8156[114]]],[mxConstants[_0x8156[119]],mxConstants[_0x8156[115]]],null,_0xf214x4)})));this[_0x8156[30]](_0x8156[123], new Menu(mxUtils[_0x8156[29]](this,function(_0xf214x3,_0xf214x4){_0xf214x3[_0x8156[72]](mxResources[_0x8156[26]](_0x8156[124]),null,function(){_0xf214x2[_0x8156[71]](mxConstants.STYLE_FLIPH,false)},_0xf214x4);_0xf214x3[_0x8156[72]](mxResources[_0x8156[26]](_0x8156[125]),null,function(){_0xf214x2[_0x8156[71]](mxConstants.STYLE_FLIPV,false)},_0xf214x4);this[_0x8156[99]](_0xf214x3,[_0x8156[95],_0x8156[126],_0x8156[127]],_0xf214x4)})));this[_0x8156[30]](_0x8156[128], new Menu(mxUtils[_0x8156[29]](this,function(_0xf214x3,_0xf214x4){_0xf214x3[_0x8156[72]](mxResources[_0x8156[26]](_0x8156[106]),null,function(){_0xf214x2[_0x8156[129]](mxConstants.ALIGN_LEFT)},_0xf214x4);_0xf214x3[_0x8156[72]](mxResources[_0x8156[26]](_0x8156[109]),null,function(){_0xf214x2[_0x8156[129]](mxConstants.ALIGN_CENTER)},_0xf214x4);_0xf214x3[_0x8156[72]](mxResources[_0x8156[26]](_0x8156[111]),null,function(){_0xf214x2[_0x8156[129]](mxConstants.ALIGN_RIGHT)},_0xf214x4);_0xf214x3[_0x8156[24]](_0xf214x4);_0xf214x3[_0x8156[72]](mxResources[_0x8156[26]](_0x8156[113]),null,function(){_0xf214x2[_0x8156[129]](mxConstants.ALIGN_TOP)},_0xf214x4);_0xf214x3[_0x8156[72]](mxResources[_0x8156[26]](_0x8156[116]),null,function(){_0xf214x2[_0x8156[129]](mxConstants.ALIGN_MIDDLE)},_0xf214x4);_0xf214x3[_0x8156[72]](mxResources[_0x8156[26]](_0x8156[118]),null,function(){_0xf214x2[_0x8156[129]](mxConstants.ALIGN_BOTTOM)},_0xf214x4)})));this[_0x8156[30]](_0x8156[130], new Menu(mxUtils[_0x8156[29]](this,function(_0xf214x3,_0xf214x4){_0xf214x3[_0x8156[72]](mxResources[_0x8156[26]](_0x8156[131]),null,mxUtils[_0x8156[29]](this,function(){var _0xf214xc= new mxHierarchicalLayout(_0xf214x2,mxConstants.DIRECTION_WEST);this[_0x8156[0]][_0x8156[132]](_0xf214xc,true,true)}),_0xf214x4);_0xf214x3[_0x8156[72]](mxResources[_0x8156[26]](_0x8156[133]),null,mxUtils[_0x8156[29]](this,function(){var _0xf214xc= new mxHierarchicalLayout(_0xf214x2,mxConstants.DIRECTION_NORTH);this[_0x8156[0]][_0x8156[132]](_0xf214xc,true,true)}),_0xf214x4)})));this[_0x8156[30]](_0x8156[134], new Menu(mxUtils[_0x8156[29]](this,function(_0xf214x3,_0xf214x4){this[_0x8156[99]](_0xf214x3,[_0x8156[135],_0x8156[95],_0x8156[136],_0x8156[137],_0x8156[95],_0x8156[138],_0x8156[139]],_0xf214x4)})));this[_0x8156[30]](_0x8156[140], new Menu(mxUtils[_0x8156[29]](this,function(_0xf214x3,_0xf214x4){this[_0x8156[99]](_0xf214x3,[_0x8156[141],_0x8156[142],_0x8156[95]],_0xf214x4);this[_0x8156[94]](_0x8156[130],_0xf214x3,_0xf214x4);_0xf214x3[_0x8156[24]](_0xf214x4);this[_0x8156[99]](_0xf214x3,[_0x8156[95],_0x8156[143],_0x8156[144],_0x8156[145]],_0xf214x4)})));this[_0x8156[30]](_0x8156[146], new Menu(mxUtils[_0x8156[29]](this,function(_0xf214x3,_0xf214x4){this[_0x8156[99]](_0xf214x3,[_0x8156[147]],_0xf214x4);_0xf214x3[_0x8156[24]]();var _0xf214xd=[0.25,0.5,0.75,1,2,4];for(var _0xf214x6=0;_0xf214x6< _0xf214xd[_0x8156[18]];_0xf214x6++){(function(_0xf214xe){_0xf214x3[_0x8156[72]]((_0xf214xe* 100)+ _0x8156[148],null,function(){_0xf214x2[_0x8156[149]](_0xf214xe)},_0xf214x4)})(_0xf214xd[_0xf214x6])};this[_0x8156[99]](_0xf214x3,[_0x8156[95],_0x8156[150],_0x8156[151],_0x8156[95],_0x8156[152],_0x8156[153],_0x8156[95],_0x8156[154],_0x8156[155]],_0xf214x4)})));this[_0x8156[30]](_0x8156[156], new Menu(mxUtils[_0x8156[29]](this,function(_0xf214x3,_0xf214x4){this[_0x8156[99]](_0xf214x3,[_0x8156[157],_0x8156[158],_0x8156[95],_0x8156[159],_0x8156[160],_0x8156[161],_0x8156[95],_0x8156[162],_0x8156[95],_0x8156[163],_0x8156[164],_0x8156[95],_0x8156[165],_0x8156[166],_0x8156[95],_0x8156[167]],_0xf214x4)})));this[_0x8156[30]](_0x8156[168], new Menu(mxUtils[_0x8156[29]](this,function(_0xf214x3,_0xf214x4){this[_0x8156[99]](_0xf214x3,[_0x8156[169],_0x8156[170],_0x8156[95],_0x8156[171],_0x8156[172],_0x8156[173],_0x8156[174],_0x8156[95],_0x8156[175],_0x8156[95],_0x8156[176],_0x8156[177],_0x8156[178]])})));this[_0x8156[30]](_0x8156[179], new Menu(mxUtils[_0x8156[29]](this,function(_0xf214x3,_0xf214x4){this[_0x8156[99]](_0xf214x3,[_0x8156[179],_0x8156[95],_0x8156[180]])})))};Menus[_0x8156[5]][_0x8156[30]]= function(_0xf214xf,_0xf214x3){this[_0x8156[1]][_0xf214xf]= _0xf214x3};Menus[_0x8156[5]][_0x8156[26]]= function(_0xf214xf){return this[_0x8156[1]][_0xf214xf]};Menus[_0x8156[5]][_0x8156[94]]= function(_0xf214xf,_0xf214x3,_0xf214x4){var _0xf214xb=this[_0x8156[26]](_0xf214xf)[_0x8156[78]];if(_0xf214x3[_0x8156[81]]|| _0xf214xb){var _0xf214x10=_0xf214x3[_0x8156[72]](mxResources[_0x8156[26]](_0xf214xf),null,null,_0xf214x4,null,_0xf214xb);this[_0x8156[181]](_0xf214xf,_0xf214x3,_0xf214x10)}};Menus[_0x8156[5]][_0x8156[181]]= function(_0xf214xf,_0xf214x11,_0xf214x4){var _0xf214x3=this[_0x8156[26]](_0xf214xf);if(_0xf214x3!= null&& (_0xf214x11[_0x8156[81]]|| _0xf214x3[_0x8156[78]])){this[_0x8156[26]](_0xf214xf)[_0x8156[182]](_0xf214x11,_0xf214x4)}};Menus[_0x8156[5]][_0x8156[20]]= function(_0xf214x3,_0xf214x12,_0xf214x13,_0xf214x14,_0xf214x15,_0xf214x4){return _0xf214x3[_0x8156[72]](_0xf214x12,null,mxUtils[_0x8156[29]](this,function(){var _0xf214x2=this[_0x8156[0]][_0x8156[7]][_0x8156[6]];_0xf214x2[_0x8156[184]]()[_0x8156[183]]();try{for(var _0xf214x6=0;_0xf214x6< _0xf214x13[_0x8156[18]];_0xf214x6++){_0xf214x2[_0x8156[185]](_0xf214x13[_0xf214x6],_0xf214x14[_0xf214x6])}}finally{_0xf214x2[_0x8156[184]]()[_0x8156[186]]()}}),_0xf214x4,_0xf214x15)};Menus[_0x8156[5]][_0x8156[28]]= function(_0xf214x3,_0xf214x12,_0xf214x16,_0xf214x17,_0xf214x18,_0xf214x4,_0xf214xb){return _0xf214x3[_0x8156[72]](_0xf214x12,null,mxUtils[_0x8156[29]](this,function(){var _0xf214x2=this[_0x8156[0]][_0x8156[7]][_0x8156[6]];var _0xf214x19=_0xf214x17;var _0xf214x1a=_0xf214x2[_0x8156[189]]()[_0x8156[188]](_0xf214x2[_0x8156[187]]());if(_0xf214x1a!= null){_0xf214x19= _0xf214x1a[_0x8156[21]][_0xf214x18]|| _0xf214x19};_0xf214x19= mxUtils[_0x8156[192]](mxResources[_0x8156[26]](_0x8156[190])+ ((_0xf214x16[_0x8156[18]]> 0)?(_0x8156[191]+ _0xf214x16):_0x8156[27]),_0xf214x19);if(_0xf214x19!= null&& _0xf214x19[_0x8156[18]]> 0){_0xf214x2[_0x8156[185]](_0xf214x18,_0xf214x19)}}),_0xf214x4,null,_0xf214xb)};Menus[_0x8156[5]][_0x8156[92]]= function(_0xf214x3,_0xf214x18,_0xf214x4){var _0xf214x1b=this[_0x8156[0]][_0x8156[80]][_0x8156[26]](_0xf214x18);if(_0xf214x1b!= null&& (_0xf214x3[_0x8156[81]]|| _0xf214x1b[_0x8156[78]])){var _0xf214x1c=_0xf214x3[_0x8156[72]](_0xf214x1b[_0x8156[193]],null,_0xf214x1b[_0x8156[194]],_0xf214x4,null,_0xf214x1b[_0x8156[78]]);if(_0xf214x1b[_0x8156[195]]&& _0xf214x1b[_0x8156[196]]()){this[_0x8156[197]](_0xf214x1c)};this[_0x8156[198]](_0xf214x1c,_0xf214x1b);return _0xf214x1c};return null};Menus[_0x8156[5]][_0x8156[198]]= function(_0xf214x1c,_0xf214x1b){if(_0xf214x1b[_0x8156[199]]!= null){var _0xf214x1d=_0xf214x1c[_0x8156[23]][_0x8156[22]][_0x8156[22]];var _0xf214x1e=document[_0x8156[201]](_0x8156[200]);_0xf214x1e[_0x8156[21]][_0x8156[202]]= _0x8156[203];mxUtils[_0x8156[204]](_0xf214x1e,_0xf214x1b[_0x8156[199]]);_0xf214x1d[_0x8156[205]](_0xf214x1e)}};Menus[_0x8156[5]][_0x8156[197]]= function(_0xf214x1c){var _0xf214x1d=_0xf214x1c[_0x8156[23]][_0x8156[22]];_0xf214x1d[_0x8156[21]][_0x8156[206]]= _0x8156[207]+ IMAGE_PATH+ _0x8156[208];_0xf214x1d[_0x8156[21]][_0x8156[209]]= _0x8156[210];_0xf214x1d[_0x8156[21]][_0x8156[211]]= _0x8156[212]};Menus[_0x8156[5]][_0x8156[99]]= function(_0xf214x3,_0xf214x13,_0xf214x4){for(var _0xf214x6=0;_0xf214x6< _0xf214x13[_0x8156[18]];_0xf214x6++){if(_0xf214x13[_0xf214x6]== _0x8156[95]){_0xf214x3[_0x8156[24]](_0xf214x4)}else {this[_0x8156[92]](_0xf214x3,_0xf214x13[_0xf214x6],_0xf214x4)}}};Menus[_0x8156[5]][_0x8156[213]]= function(_0xf214x3,_0xf214x1f,_0xf214x20){var _0xf214x2=this[_0x8156[0]][_0x8156[7]][_0x8156[6]];_0xf214x3[_0x8156[214]]= true;if(_0xf214x2[_0x8156[215]]()){this[_0x8156[99]](_0xf214x3,[_0x8156[169],_0x8156[170],_0x8156[95],_0x8156[173],_0x8156[95]])}else {this[_0x8156[99]](_0xf214x3,[_0x8156[174],_0x8156[95],_0x8156[171],_0x8156[172],_0x8156[95],_0x8156[175]]);if(_0xf214x2[_0x8156[216]]()== 1&& _0xf214x2[_0x8156[184]]()[_0x8156[217]](_0xf214x2[_0x8156[187]]())){this[_0x8156[99]](_0xf214x3,[_0x8156[218]])};_0xf214x3[_0x8156[24]]()};if(_0xf214x2[_0x8156[216]]()> 0){this[_0x8156[99]](_0xf214x3,[_0x8156[141],_0x8156[142],_0x8156[95]]);if(_0xf214x2[_0x8156[184]]()[_0x8156[217]](_0xf214x2[_0x8156[187]]())){var _0xf214x21=false;var _0xf214x1f=_0xf214x2[_0x8156[187]]();if(_0xf214x1f!= null&& _0xf214x2[_0x8156[184]]()[_0x8156[217]](_0xf214x1f)){var _0xf214x22=_0xf214x2[_0x8156[220]][_0x8156[219]](_0xf214x1f);if(_0xf214x22 instanceof mxEdgeHandler&& _0xf214x22[_0x8156[221]]!= null&& _0xf214x22[_0x8156[221]][_0x8156[18]]> 2){var _0xf214x23=_0xf214x22[_0x8156[222]]( new mxMouseEvent(_0xf214x20));var _0xf214x24=this[_0x8156[0]][_0x8156[80]][_0x8156[26]](_0x8156[223]);_0xf214x24[_0x8156[224]]= _0xf214x22;_0xf214x24[_0x8156[225]]= _0xf214x23;_0xf214x21= _0xf214x23> 0&& _0xf214x23< _0xf214x22[_0x8156[221]][_0x8156[18]]}};this[_0x8156[99]](_0xf214x3,[_0x8156[95],(_0xf214x21)?_0x8156[223]:_0x8156[226]])}else {if(_0xf214x2[_0x8156[216]]()> 1){_0xf214x3[_0x8156[24]]();this[_0x8156[99]](_0xf214x3,[_0x8156[143]])}};_0xf214x3[_0x8156[24]]();if(_0xf214x2[_0x8156[216]]()== 1){var _0xf214x25=_0xf214x2[_0x8156[227]](_0xf214x2[_0x8156[187]]());if(_0xf214x25!= null){this[_0x8156[99]](_0xf214x3,[_0x8156[228]])}}}else {this[_0x8156[99]](_0xf214x3,[_0x8156[95],_0x8156[176],_0x8156[177],_0x8156[95],_0x8156[178]])}};Menus[_0x8156[5]][_0x8156[229]]= function(_0xf214x26){var _0xf214x27= new Menubar(this[_0x8156[0]],_0xf214x26);var _0xf214x28=[_0x8156[156],_0x8156[168],_0x8156[146],_0x8156[91],_0x8156[93],_0x8156[140]];for(var _0xf214x6=0;_0xf214x6< _0xf214x28[_0x8156[18]];_0xf214x6++){_0xf214x27[_0x8156[181]](mxResources[_0x8156[26]](_0xf214x28[_0xf214x6]),this[_0x8156[26]](_0xf214x28[_0xf214x6])[_0x8156[194]])};return _0xf214x27};function Menubar(_0xf214x1,_0xf214x26){this[_0x8156[0]]= _0xf214x1;this[_0x8156[230]]= _0xf214x26;mxEvent[_0x8156[232]](document,mxUtils[_0x8156[29]](this,function(_0xf214x20){this[_0x8156[231]]()}))}Menubar[_0x8156[5]][_0x8156[231]]= function(){if(this[_0x8156[233]]!= null){this[_0x8156[233]][_0x8156[231]]()}};Menubar[_0x8156[5]][_0x8156[181]]= function(_0xf214x12,_0xf214x2a){var _0xf214x2b=document[_0x8156[201]](_0x8156[234]);_0xf214x2b[_0x8156[237]](_0x8156[235],_0x8156[236]);_0xf214x2b[_0x8156[238]]= _0x8156[239];mxUtils[_0x8156[204]](_0xf214x2b,_0xf214x12);this[_0x8156[240]](_0xf214x2b,_0xf214x2a);this[_0x8156[230]][_0x8156[205]](_0xf214x2b);return _0xf214x2b};Menubar[_0x8156[5]][_0x8156[240]]= function(_0xf214x2b,_0xf214x2a){if(_0xf214x2a!= null){var _0xf214x2c=true;var _0xf214x2d=mxUtils[_0x8156[29]](this,function(_0xf214x20){if(_0xf214x2c&& _0xf214x2b[_0x8156[78]]== null|| _0xf214x2b[_0x8156[78]]){this[_0x8156[0]][_0x8156[7]][_0x8156[6]][_0x8156[241]][_0x8156[231]]();var _0xf214x3= new mxPopupMenu(_0xf214x2a);_0xf214x3[_0x8156[242]][_0x8156[238]]+= _0x8156[243];_0xf214x3[_0x8156[214]]= true;_0xf214x3[_0x8156[81]]= true;_0xf214x3[_0x8156[244]]= true;_0xf214x3[_0x8156[231]]= mxUtils[_0x8156[29]](this,function(){mxPopupMenu[_0x8156[5]][_0x8156[231]][_0x8156[245]](_0xf214x3,arguments);_0xf214x3[_0x8156[246]]();this[_0x8156[233]]= null;this[_0x8156[247]]= null});var _0xf214x2e=_0xf214x2b[_0x8156[248]]+ document[_0x8156[251]](_0x8156[250])[_0x8156[249]]+ 22;var _0xf214x2f=_0xf214x2b[_0x8156[252]]+ _0xf214x2b[_0x8156[253]]+ 140;_0xf214x3[_0x8156[254]](_0xf214x2e,_0xf214x2f,null,_0xf214x20);this[_0x8156[233]]= _0xf214x3;this[_0x8156[247]]= _0xf214x2b};_0xf214x2c= true;mxEvent[_0x8156[255]](_0xf214x20)});mxEvent[_0x8156[257]](_0xf214x2b,_0x8156[256],mxUtils[_0x8156[29]](this,function(_0xf214x20){if(this[_0x8156[233]]!= null&& this[_0x8156[247]]!= _0xf214x2b){this[_0x8156[231]]();_0xf214x2d(_0xf214x20)}}));mxEvent[_0x8156[257]](_0xf214x2b,_0x8156[258],mxUtils[_0x8156[29]](this,function(){_0xf214x2c= this[_0x8156[247]]!= _0xf214x2b}));mxEvent[_0x8156[257]](_0xf214x2b,_0x8156[259],_0xf214x2d)}};function Menu(_0xf214x2a,_0xf214xb){mxEventSource[_0x8156[260]](this);this[_0x8156[194]]= _0xf214x2a;this[_0x8156[78]]= (_0xf214xb!= null)?_0xf214xb:true}mxUtils[_0x8156[261]](Menu,mxEventSource);Menu[_0x8156[5]][_0x8156[262]]= function(_0xf214x19){if(this[_0x8156[78]]!= _0xf214x19){this[_0x8156[78]]= _0xf214x19;this[_0x8156[264]]( new mxEventObject(_0x8156[263]))}};Menu[_0x8156[5]][_0x8156[182]]= function(_0xf214x3,_0xf214x4){this[_0x8156[194]](_0xf214x3,_0xf214x4)} \ No newline at end of file +var _0xe649=["\x65\x64\x69\x74\x6F\x72\x55\x69","\x6D\x65\x6E\x75\x73","\x69\x6E\x69\x74","\x73\x72\x63","\x2F\x63\x68\x65\x63\x6B\x6D\x61\x72\x6B\x2E\x67\x69\x66","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x67\x72\x61\x70\x68","\x65\x64\x69\x74\x6F\x72","\x66\x6F\x6E\x74\x46\x61\x6D\x69\x6C\x79","\x48\x65\x6C\x76\x65\x74\x69\x63\x61","\x56\x65\x72\x64\x61\x6E\x61","\x54\x69\x6D\x65\x73\x20\x4E\x65\x77\x20\x52\x6F\x6D\x61\x6E","\x47\x61\x72\x61\x6D\x6F\x6E\x64","\x43\x6F\x6D\x69\x63\x20\x53\x61\x6E\x73\x20\x4D\x53","\x43\x6F\x75\x72\x69\x65\x72\x20\x4E\x65\x77","\x47\x65\x6F\x72\x67\x69\x61","\x4C\x75\x63\x69\x64\x61\x20\x43\x6F\x6E\x73\x6F\x6C\x65","\x54\x61\x68\x6F\x6D\x61","\x6C\x65\x6E\x67\x74\x68","\x53\x54\x59\x4C\x45\x5F\x46\x4F\x4E\x54\x46\x41\x4D\x49\x4C\x59","\x73\x74\x79\x6C\x65\x43\x68\x61\x6E\x67\x65","\x73\x74\x79\x6C\x65","\x6E\x65\x78\x74\x53\x69\x62\x6C\x69\x6E\x67","\x66\x69\x72\x73\x74\x43\x68\x69\x6C\x64","\x61\x64\x64\x53\x65\x70\x61\x72\x61\x74\x6F\x72","\x63\x75\x73\x74\x6F\x6D","\x67\x65\x74","","\x70\x72\x6F\x6D\x70\x74\x43\x68\x61\x6E\x67\x65","\x62\x69\x6E\x64","\x70\x75\x74","\x66\x6F\x6E\x74\x53\x69\x7A\x65","\x53\x54\x59\x4C\x45\x5F\x46\x4F\x4E\x54\x53\x49\x5A\x45","\x28\x70\x74\x29","\x31\x32","\x6C\x69\x6E\x65\x77\x69\x64\x74\x68","\x70\x78","\x53\x54\x59\x4C\x45\x5F\x53\x54\x52\x4F\x4B\x45\x57\x49\x44\x54\x48","\x28\x70\x78\x29","\x31","\x6C\x69\x6E\x65","\x73\x74\x72\x61\x69\x67\x68\x74","\x53\x54\x59\x4C\x45\x5F\x45\x44\x47\x45","\x65\x6E\x74\x69\x74\x79\x52\x65\x6C\x61\x74\x69\x6F\x6E","\x65\x6E\x74\x69\x74\x79\x52\x65\x6C\x61\x74\x69\x6F\x6E\x45\x64\x67\x65\x53\x74\x79\x6C\x65","\x68\x6F\x72\x69\x7A\x6F\x6E\x74\x61\x6C","\x53\x54\x59\x4C\x45\x5F\x45\x4C\x42\x4F\x57","\x65\x6C\x62\x6F\x77\x45\x64\x67\x65\x53\x74\x79\x6C\x65","\x76\x65\x72\x74\x69\x63\x61\x6C","\x6D\x61\x6E\x75\x61\x6C","\x73\x65\x67\x6D\x65\x6E\x74\x45\x64\x67\x65\x53\x74\x79\x6C\x65","\x61\x75\x74\x6F\x6D\x61\x74\x69\x63","\x6F\x72\x74\x68\x6F\x67\x6F\x6E\x61\x6C\x45\x64\x67\x65\x53\x74\x79\x6C\x65","\x6C\x69\x6E\x65\x65\x6E\x64","\x63\x6C\x61\x73\x73\x69\x63","\x53\x54\x59\x4C\x45\x5F\x45\x4E\x44\x41\x52\x52\x4F\x57","\x41\x52\x52\x4F\x57\x5F\x43\x4C\x41\x53\x53\x49\x43","\x6F\x70\x65\x6E\x41\x72\x72\x6F\x77","\x41\x52\x52\x4F\x57\x5F\x4F\x50\x45\x4E","\x62\x6C\x6F\x63\x6B","\x41\x52\x52\x4F\x57\x5F\x42\x4C\x4F\x43\x4B","\x6F\x76\x61\x6C","\x41\x52\x52\x4F\x57\x5F\x4F\x56\x41\x4C","\x64\x69\x61\x6D\x6F\x6E\x64","\x41\x52\x52\x4F\x57\x5F\x44\x49\x41\x4D\x4F\x4E\x44","\x64\x69\x61\x6D\x6F\x6E\x64\x54\x68\x69\x6E","\x41\x52\x52\x4F\x57\x5F\x44\x49\x41\x4D\x4F\x4E\x44\x5F\x54\x48\x49\x4E","\x6E\x6F\x6E\x65","\x4E\x4F\x4E\x45","\x74\x72\x61\x6E\x73\x70\x61\x72\x65\x6E\x74","\x65\x6E\x64\x46\x69\x6C\x6C","\x74\x6F\x67\x67\x6C\x65\x43\x65\x6C\x6C\x53\x74\x79\x6C\x65\x73","\x61\x64\x64\x49\x74\x65\x6D","\x73\x69\x7A\x65","\x6C\x69\x6E\x65\x73\x74\x61\x72\x74","\x53\x54\x59\x4C\x45\x5F\x53\x54\x41\x52\x54\x41\x52\x52\x4F\x57","\x73\x74\x61\x72\x74\x46\x69\x6C\x6C","\x73\x70\x61\x63\x69\x6E\x67","\x65\x6E\x61\x62\x6C\x65\x64","\x73\x68\x61\x64\x6F\x77","\x61\x63\x74\x69\x6F\x6E\x73","\x73\x68\x6F\x77\x44\x69\x73\x61\x62\x6C\x65\x64","\x74\x6F\x70","\x30","\x72\x69\x67\x68\x74","\x62\x6F\x74\x74\x6F\x6D","\x6C\x65\x66\x74","\x67\x6C\x6F\x62\x61\x6C","\x70\x65\x72\x69\x6D\x65\x74\x65\x72","\x73\x6F\x75\x72\x63\x65\x53\x70\x61\x63\x69\x6E\x67","\x74\x61\x72\x67\x65\x74\x53\x70\x61\x63\x69\x6E\x67","\x66\x6F\x72\x6D\x61\x74","\x61\x64\x64\x4D\x65\x6E\x75\x49\x74\x65\x6D","\x74\x65\x78\x74","\x61\x64\x64\x53\x75\x62\x6D\x65\x6E\x75","\x2D","\x62\x6F\x6C\x64","\x69\x74\x61\x6C\x69\x63","\x75\x6E\x64\x65\x72\x6C\x69\x6E\x65","\x61\x64\x64\x4D\x65\x6E\x75\x49\x74\x65\x6D\x73","\x61\x6C\x69\x67\x6E\x6D\x65\x6E\x74","\x77\x6F\x72\x64\x57\x72\x61\x70","\x74\x65\x78\x74\x4F\x70\x61\x63\x69\x74\x79","\x28\x25\x29","\x31\x30\x30","\x68\x69\x64\x65","\x6C\x65\x66\x74\x41\x6C\x69\x67\x6E","\x53\x54\x59\x4C\x45\x5F\x41\x4C\x49\x47\x4E","\x41\x4C\x49\x47\x4E\x5F\x4C\x45\x46\x54","\x63\x65\x6E\x74\x65\x72","\x41\x4C\x49\x47\x4E\x5F\x43\x45\x4E\x54\x45\x52","\x72\x69\x67\x68\x74\x41\x6C\x69\x67\x6E","\x41\x4C\x49\x47\x4E\x5F\x52\x49\x47\x48\x54","\x74\x6F\x70\x41\x6C\x69\x67\x6E","\x53\x54\x59\x4C\x45\x5F\x56\x45\x52\x54\x49\x43\x41\x4C\x5F\x41\x4C\x49\x47\x4E","\x41\x4C\x49\x47\x4E\x5F\x54\x4F\x50","\x6D\x69\x64\x64\x6C\x65","\x41\x4C\x49\x47\x4E\x5F\x4D\x49\x44\x44\x4C\x45","\x62\x6F\x74\x74\x6F\x6D\x41\x6C\x69\x67\x6E","\x41\x4C\x49\x47\x4E\x5F\x42\x4F\x54\x54\x4F\x4D","\x70\x6F\x73\x69\x74\x69\x6F\x6E","\x53\x54\x59\x4C\x45\x5F\x4C\x41\x42\x45\x4C\x5F\x50\x4F\x53\x49\x54\x49\x4F\x4E","\x53\x54\x59\x4C\x45\x5F\x56\x45\x52\x54\x49\x43\x41\x4C\x5F\x4C\x41\x42\x45\x4C\x5F\x50\x4F\x53\x49\x54\x49\x4F\x4E","\x64\x69\x72\x65\x63\x74\x69\x6F\x6E","\x66\x6C\x69\x70\x48","\x66\x6C\x69\x70\x56","\x74\x69\x6C\x74","\x72\x6F\x74\x61\x74\x69\x6F\x6E","\x61\x6C\x69\x67\x6E","\x61\x6C\x69\x67\x6E\x43\x65\x6C\x6C\x73","\x6C\x61\x79\x6F\x75\x74","\x68\x6F\x72\x69\x7A\x6F\x6E\x74\x61\x6C\x46\x6C\x6F\x77","\x65\x78\x65\x63\x75\x74\x65\x4C\x61\x79\x6F\x75\x74","\x76\x65\x72\x74\x69\x63\x61\x6C\x46\x6C\x6F\x77","\x6E\x61\x76\x69\x67\x61\x74\x69\x6F\x6E","\x68\x6F\x6D\x65","\x65\x78\x69\x74\x47\x72\x6F\x75\x70","\x65\x6E\x74\x65\x72\x47\x72\x6F\x75\x70","\x65\x78\x70\x61\x6E\x64","\x63\x6F\x6C\x6C\x61\x70\x73\x65","\x61\x72\x72\x61\x6E\x67\x65","\x74\x6F\x46\x72\x6F\x6E\x74","\x74\x6F\x42\x61\x63\x6B","\x67\x72\x6F\x75\x70","\x75\x6E\x67\x72\x6F\x75\x70","\x72\x65\x6D\x6F\x76\x65\x46\x72\x6F\x6D\x47\x72\x6F\x75\x70","\x76\x69\x65\x77","\x61\x63\x74\x75\x61\x6C\x53\x69\x7A\x65","\x25","\x7A\x6F\x6F\x6D\x54\x6F","\x7A\x6F\x6F\x6D\x49\x6E","\x7A\x6F\x6F\x6D\x4F\x75\x74","\x66\x69\x74\x57\x69\x6E\x64\x6F\x77","\x63\x75\x73\x74\x6F\x6D\x5A\x6F\x6F\x6D","\x66\x69\x74\x50\x61\x67\x65","\x66\x69\x74\x50\x61\x67\x65\x57\x69\x64\x74\x68","\x66\x69\x6C\x65","\x6E\x65\x77","\x6F\x70\x65\x6E","\x73\x61\x76\x65","\x73\x61\x76\x65\x41\x73","\x70\x75\x62\x6C\x69\x73\x68","\x76\x61\x72\x69\x61\x62\x6C\x65","\x69\x6D\x70\x6F\x72\x74","\x65\x78\x70\x6F\x72\x74","\x65\x64\x69\x74\x46\x69\x6C\x65","\x72\x65\x6E\x61\x6D\x65","\x70\x72\x69\x6E\x74","\x65\x64\x69\x74","\x75\x6E\x64\x6F","\x72\x65\x64\x6F","\x63\x75\x74","\x63\x6F\x70\x79","\x70\x61\x73\x74\x65","\x64\x65\x6C\x65\x74\x65","\x64\x75\x70\x6C\x69\x63\x61\x74\x65","\x73\x65\x6C\x65\x63\x74\x56\x65\x72\x74\x69\x63\x65\x73","\x73\x65\x6C\x65\x63\x74\x45\x64\x67\x65\x73","\x73\x65\x6C\x65\x63\x74\x41\x6C\x6C","\x68\x65\x6C\x70","\x61\x62\x6F\x75\x74","\x61\x64\x64\x4D\x65\x6E\x75","\x65\x78\x65\x63\x75\x74\x65","\x62\x65\x67\x69\x6E\x55\x70\x64\x61\x74\x65","\x67\x65\x74\x4D\x6F\x64\x65\x6C","\x73\x65\x74\x43\x65\x6C\x6C\x53\x74\x79\x6C\x65\x73","\x65\x6E\x64\x55\x70\x64\x61\x74\x65","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C","\x67\x65\x74\x53\x74\x61\x74\x65","\x67\x65\x74\x56\x69\x65\x77","\x65\x6E\x74\x65\x72\x56\x61\x6C\x75\x65","\x20","\x70\x72\x6F\x6D\x70\x74","\x6C\x61\x62\x65\x6C","\x66\x75\x6E\x63\x74","\x74\x6F\x67\x67\x6C\x65\x41\x63\x74\x69\x6F\x6E","\x69\x73\x53\x65\x6C\x65\x63\x74\x65\x64","\x61\x64\x64\x43\x68\x65\x63\x6B\x6D\x61\x72\x6B","\x61\x64\x64\x53\x68\x6F\x72\x74\x63\x75\x74","\x73\x68\x6F\x72\x74\x63\x75\x74","\x73\x70\x61\x6E","\x63\x72\x65\x61\x74\x65\x45\x6C\x65\x6D\x65\x6E\x74","\x63\x6F\x6C\x6F\x72","\x67\x72\x61\x79","\x77\x72\x69\x74\x65","\x61\x70\x70\x65\x6E\x64\x43\x68\x69\x6C\x64","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x49\x6D\x61\x67\x65","\x75\x72\x6C\x28","\x2F\x63\x68\x65\x63\x6B\x6D\x61\x72\x6B\x2E\x67\x69\x66\x29","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x52\x65\x70\x65\x61\x74","\x6E\x6F\x2D\x72\x65\x70\x65\x61\x74","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x50\x6F\x73\x69\x74\x69\x6F\x6E","\x32\x70\x78\x20\x35\x30\x25","\x63\x72\x65\x61\x74\x65\x50\x6F\x70\x75\x70\x4D\x65\x6E\x75","\x73\x6D\x61\x72\x74\x53\x65\x70\x61\x72\x61\x74\x6F\x72\x73","\x69\x73\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x45\x6D\x70\x74\x79","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x6F\x75\x6E\x74","\x69\x73\x45\x64\x67\x65","\x73\x65\x74\x41\x73\x44\x65\x66\x61\x75\x6C\x74\x45\x64\x67\x65","\x67\x65\x74\x48\x61\x6E\x64\x6C\x65\x72","\x73\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C\x73\x48\x61\x6E\x64\x6C\x65\x72","\x62\x65\x6E\x64\x73","\x67\x65\x74\x48\x61\x6E\x64\x6C\x65\x46\x6F\x72\x45\x76\x65\x6E\x74","\x72\x65\x6D\x6F\x76\x65\x57\x61\x79\x70\x6F\x69\x6E\x74","\x68\x61\x6E\x64\x6C\x65\x72","\x69\x6E\x64\x65\x78","\x61\x64\x64\x57\x61\x79\x70\x6F\x69\x6E\x74","\x67\x65\x74\x4C\x69\x6E\x6B\x46\x6F\x72\x43\x65\x6C\x6C","\x6F\x70\x65\x6E\x4C\x69\x6E\x6B","\x63\x72\x65\x61\x74\x65\x4D\x65\x6E\x75\x62\x61\x72","\x63\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x68\x69\x64\x65\x4D\x65\x6E\x75","\x61\x64\x64\x47\x65\x73\x74\x75\x72\x65\x4C\x69\x73\x74\x65\x6E\x65\x72\x73","\x63\x75\x72\x72\x65\x6E\x74\x4D\x65\x6E\x75","\x61","\x68\x72\x65\x66","\x6A\x61\x76\x61\x73\x63\x72\x69\x70\x74\x3A\x76\x6F\x69\x64\x28\x30\x29\x3B","\x73\x65\x74\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x63\x6C\x61\x73\x73\x4E\x61\x6D\x65","\x67\x65\x49\x74\x65\x6D","\x61\x64\x64\x4D\x65\x6E\x75\x48\x61\x6E\x64\x6C\x65\x72","\x70\x61\x6E\x6E\x69\x6E\x67\x48\x61\x6E\x64\x6C\x65\x72","\x64\x69\x76","\x20\x67\x65\x4D\x65\x6E\x75\x62\x61\x72\x4D\x65\x6E\x75","\x61\x75\x74\x6F\x45\x78\x70\x61\x6E\x64","\x61\x70\x70\x6C\x79","\x64\x65\x73\x74\x72\x6F\x79","\x63\x75\x72\x72\x65\x6E\x74\x45\x6C\x74","\x6F\x66\x66\x73\x65\x74\x4C\x65\x66\x74","\x6F\x66\x66\x73\x65\x74\x57\x69\x64\x74\x68","\x70\x61\x67\x65\x2D\x73\x69\x64\x65\x62\x61\x72","\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x42\x79\x49\x64","\x6F\x66\x66\x73\x65\x74\x54\x6F\x70","\x6F\x66\x66\x73\x65\x74\x48\x65\x69\x67\x68\x74","\x70\x6F\x70\x75\x70","\x63\x6F\x6E\x73\x75\x6D\x65","\x6D\x6F\x75\x73\x65\x6D\x6F\x76\x65","\x61\x64\x64\x4C\x69\x73\x74\x65\x6E\x65\x72","\x6D\x6F\x75\x73\x65\x64\x6F\x77\x6E","\x63\x6C\x69\x63\x6B","\x63\x61\x6C\x6C","\x65\x78\x74\x65\x6E\x64","\x73\x65\x74\x45\x6E\x61\x62\x6C\x65\x64","\x73\x74\x61\x74\x65\x43\x68\x61\x6E\x67\x65\x64","\x66\x69\x72\x65\x45\x76\x65\x6E\x74"];Menus= function(_0x1eb3x1){this[_0xe649[0]]= _0x1eb3x1;this[_0xe649[1]]= new Object();this[_0xe649[2]](); new Image()[_0xe649[3]]= IMAGE_PATH+ _0xe649[4]};Menus[_0xe649[5]][_0xe649[2]]= function(){var _0x1eb3x2=this[_0xe649[0]][_0xe649[7]][_0xe649[6]];this[_0xe649[30]](_0xe649[8], new Menu(mxUtils[_0xe649[29]](this,function(_0x1eb3x3,_0x1eb3x4){var _0x1eb3x5=[_0xe649[9],_0xe649[10],_0xe649[11],_0xe649[12],_0xe649[13],_0xe649[14],_0xe649[15],_0xe649[16],_0xe649[17]];for(var _0x1eb3x6=0;_0x1eb3x6< _0x1eb3x5[_0xe649[18]];_0x1eb3x6++){var _0x1eb3x7=this[_0xe649[20]](_0x1eb3x3,_0x1eb3x5[_0x1eb3x6],[mxConstants[_0xe649[19]]],[_0x1eb3x5[_0x1eb3x6]],null,_0x1eb3x4);_0x1eb3x7[_0xe649[23]][_0xe649[22]][_0xe649[21]][_0xe649[8]]= _0x1eb3x5[_0x1eb3x6]};_0x1eb3x3[_0xe649[24]](_0x1eb3x4);this[_0xe649[28]](_0x1eb3x3,mxResources[_0xe649[26]](_0xe649[25]),_0xe649[27],mxConstants.DEFAULT_FONTFAMILY,mxConstants.STYLE_FONTFAMILY,_0x1eb3x4)})));this[_0xe649[30]](_0xe649[31], new Menu(mxUtils[_0xe649[29]](this,function(_0x1eb3x3,_0x1eb3x4){var _0x1eb3x8=[6,8,9,10,11,12,14,18,24,36,48,72];for(var _0x1eb3x6=0;_0x1eb3x6< _0x1eb3x8[_0xe649[18]];_0x1eb3x6++){this[_0xe649[20]](_0x1eb3x3,_0x1eb3x8[_0x1eb3x6],[mxConstants[_0xe649[32]]],[_0x1eb3x8[_0x1eb3x6]],null,_0x1eb3x4)};_0x1eb3x3[_0xe649[24]](_0x1eb3x4);this[_0xe649[28]](_0x1eb3x3,mxResources[_0xe649[26]](_0xe649[25]),_0xe649[33],_0xe649[34],mxConstants.STYLE_FONTSIZE,_0x1eb3x4)})));this[_0xe649[30]](_0xe649[35], new Menu(mxUtils[_0xe649[29]](this,function(_0x1eb3x3,_0x1eb3x4){var _0x1eb3x8=[1,2,3,4,8,12,16,24];for(var _0x1eb3x6=0;_0x1eb3x6< _0x1eb3x8[_0xe649[18]];_0x1eb3x6++){this[_0xe649[20]](_0x1eb3x3,_0x1eb3x8[_0x1eb3x6]+ _0xe649[36],[mxConstants[_0xe649[37]]],[_0x1eb3x8[_0x1eb3x6]],null,_0x1eb3x4)};_0x1eb3x3[_0xe649[24]](_0x1eb3x4);this[_0xe649[28]](_0x1eb3x3,mxResources[_0xe649[26]](_0xe649[25]),_0xe649[38],_0xe649[39],mxConstants.STYLE_STROKEWIDTH,_0x1eb3x4)})));this[_0xe649[30]](_0xe649[40], new Menu(mxUtils[_0xe649[29]](this,function(_0x1eb3x3,_0x1eb3x4){this[_0xe649[20]](_0x1eb3x3,mxResources[_0xe649[26]](_0xe649[41]),[mxConstants[_0xe649[42]]],[null],null,_0x1eb3x4);this[_0xe649[20]](_0x1eb3x3,mxResources[_0xe649[26]](_0xe649[43]),[mxConstants[_0xe649[42]]],[_0xe649[44]],null,_0x1eb3x4);_0x1eb3x3[_0xe649[24]](_0x1eb3x4);this[_0xe649[20]](_0x1eb3x3,mxResources[_0xe649[26]](_0xe649[45]),[mxConstants[_0xe649[42]],mxConstants[_0xe649[46]]],[_0xe649[47],_0xe649[45]],null,_0x1eb3x4);this[_0xe649[20]](_0x1eb3x3,mxResources[_0xe649[26]](_0xe649[48]),[mxConstants[_0xe649[42]],mxConstants[_0xe649[46]]],[_0xe649[47],_0xe649[48]],null,_0x1eb3x4);_0x1eb3x3[_0xe649[24]](_0x1eb3x4);this[_0xe649[20]](_0x1eb3x3,mxResources[_0xe649[26]](_0xe649[49]),[mxConstants[_0xe649[42]]],[_0xe649[50]],null,_0x1eb3x4);this[_0xe649[20]](_0x1eb3x3,mxResources[_0xe649[26]](_0xe649[51]),[mxConstants[_0xe649[42]]],[_0xe649[52]],null,_0x1eb3x4)})));this[_0xe649[30]](_0xe649[53], new Menu(mxUtils[_0xe649[29]](this,function(_0x1eb3x3,_0x1eb3x4){this[_0xe649[20]](_0x1eb3x3,mxResources[_0xe649[26]](_0xe649[54]),[mxConstants[_0xe649[55]]],[mxConstants[_0xe649[56]]],null,_0x1eb3x4);this[_0xe649[20]](_0x1eb3x3,mxResources[_0xe649[26]](_0xe649[57]),[mxConstants[_0xe649[55]]],[mxConstants[_0xe649[58]]],null,_0x1eb3x4);this[_0xe649[20]](_0x1eb3x3,mxResources[_0xe649[26]](_0xe649[59]),[mxConstants[_0xe649[55]]],[mxConstants[_0xe649[60]]],null,_0x1eb3x4);_0x1eb3x3[_0xe649[24]](_0x1eb3x4);this[_0xe649[20]](_0x1eb3x3,mxResources[_0xe649[26]](_0xe649[61]),[mxConstants[_0xe649[55]]],[mxConstants[_0xe649[62]]],null,_0x1eb3x4);this[_0xe649[20]](_0x1eb3x3,mxResources[_0xe649[26]](_0xe649[63]),[mxConstants[_0xe649[55]]],[mxConstants[_0xe649[64]]],null,_0x1eb3x4);this[_0xe649[20]](_0x1eb3x3,mxResources[_0xe649[26]](_0xe649[65]),[mxConstants[_0xe649[55]]],[mxConstants[_0xe649[66]]],null,_0x1eb3x4);_0x1eb3x3[_0xe649[24]](_0x1eb3x4);this[_0xe649[20]](_0x1eb3x3,mxResources[_0xe649[26]](_0xe649[67]),[mxConstants[_0xe649[55]]],[mxConstants[_0xe649[68]]],null,_0x1eb3x4);_0x1eb3x3[_0xe649[24]](_0x1eb3x4);_0x1eb3x3[_0xe649[72]](mxResources[_0xe649[26]](_0xe649[69]),null,function(){_0x1eb3x2[_0xe649[71]](_0xe649[70],true)},_0x1eb3x4,null,true);_0x1eb3x3[_0xe649[24]](_0x1eb3x4);this[_0xe649[28]](_0x1eb3x3,mxResources[_0xe649[26]](_0xe649[73]),_0xe649[38],mxConstants.DEFAULT_MARKERSIZE,mxConstants.STYLE_ENDSIZE,_0x1eb3x4)})));this[_0xe649[30]](_0xe649[74], new Menu(mxUtils[_0xe649[29]](this,function(_0x1eb3x3,_0x1eb3x4){this[_0xe649[20]](_0x1eb3x3,mxResources[_0xe649[26]](_0xe649[54]),[mxConstants[_0xe649[75]]],[mxConstants[_0xe649[56]]],null,_0x1eb3x4);this[_0xe649[20]](_0x1eb3x3,mxResources[_0xe649[26]](_0xe649[57]),[mxConstants[_0xe649[75]]],[mxConstants[_0xe649[58]]],null,_0x1eb3x4);this[_0xe649[20]](_0x1eb3x3,mxResources[_0xe649[26]](_0xe649[59]),[mxConstants[_0xe649[75]]],[mxConstants[_0xe649[60]]],null,_0x1eb3x4);_0x1eb3x3[_0xe649[24]](_0x1eb3x4);this[_0xe649[20]](_0x1eb3x3,mxResources[_0xe649[26]](_0xe649[61]),[mxConstants[_0xe649[75]]],[mxConstants[_0xe649[62]]],null,_0x1eb3x4);this[_0xe649[20]](_0x1eb3x3,mxResources[_0xe649[26]](_0xe649[63]),[mxConstants[_0xe649[75]]],[mxConstants[_0xe649[64]]],null,_0x1eb3x4);this[_0xe649[20]](_0x1eb3x3,mxResources[_0xe649[26]](_0xe649[65]),[mxConstants[_0xe649[75]]],[mxConstants[_0xe649[66]]],null,_0x1eb3x4);_0x1eb3x3[_0xe649[24]](_0x1eb3x4);this[_0xe649[20]](_0x1eb3x3,mxResources[_0xe649[26]](_0xe649[67]),[mxConstants[_0xe649[75]]],[mxConstants[_0xe649[68]]],null,_0x1eb3x4);_0x1eb3x3[_0xe649[24]](_0x1eb3x4);_0x1eb3x3[_0xe649[72]](mxResources[_0xe649[26]](_0xe649[69]),null,function(){_0x1eb3x2[_0xe649[71]](_0xe649[76],true)},_0x1eb3x4,null,true);_0x1eb3x3[_0xe649[24]](_0x1eb3x4);this[_0xe649[28]](_0x1eb3x3,mxResources[_0xe649[26]](_0xe649[73]),_0xe649[38],mxConstants.DEFAULT_MARKERSIZE,mxConstants.STYLE_STARTSIZE,_0x1eb3x4)})));this[_0xe649[30]](_0xe649[77], new Menu(mxUtils[_0xe649[29]](this,function(_0x1eb3x3,_0x1eb3x4){var _0x1eb3x9=this[_0xe649[0]][_0xe649[80]][_0xe649[26]](_0xe649[79])[_0xe649[78]];var _0x1eb3xa=this[_0xe649[26]](_0xe649[40])[_0xe649[78]];if(_0x1eb3x9|| _0x1eb3x3[_0xe649[81]]){this[_0xe649[28]](_0x1eb3x3,mxResources[_0xe649[26]](_0xe649[82]),_0xe649[38],_0xe649[83],mxConstants.STYLE_SPACING_TOP,_0x1eb3x4,_0x1eb3x9);this[_0xe649[28]](_0x1eb3x3,mxResources[_0xe649[26]](_0xe649[84]),_0xe649[38],_0xe649[83],mxConstants.STYLE_SPACING_RIGHT,_0x1eb3x4,_0x1eb3x9);this[_0xe649[28]](_0x1eb3x3,mxResources[_0xe649[26]](_0xe649[85]),_0xe649[38],_0xe649[83],mxConstants.STYLE_SPACING_BOTTOM,_0x1eb3x4,_0x1eb3x9);this[_0xe649[28]](_0x1eb3x3,mxResources[_0xe649[26]](_0xe649[86]),_0xe649[38],_0xe649[83],mxConstants.STYLE_SPACING_LEFT,_0x1eb3x4,_0x1eb3x9);_0x1eb3x3[_0xe649[24]](_0x1eb3x4);this[_0xe649[28]](_0x1eb3x3,mxResources[_0xe649[26]](_0xe649[87]),_0xe649[38],_0xe649[83],mxConstants.STYLE_SPACING,_0x1eb3x4,_0x1eb3x9);this[_0xe649[28]](_0x1eb3x3,mxResources[_0xe649[26]](_0xe649[88]),_0xe649[38],_0xe649[83],mxConstants.STYLE_PERIMETER_SPACING,_0x1eb3x4,_0x1eb3x9)};if(_0x1eb3xa|| _0x1eb3x3[_0xe649[81]]){_0x1eb3x3[_0xe649[24]](_0x1eb3x4);this[_0xe649[28]](_0x1eb3x3,mxResources[_0xe649[26]](_0xe649[89]),_0xe649[38],_0xe649[83],mxConstants.STYLE_SOURCE_PERIMETER_SPACING,_0x1eb3x4,_0x1eb3xa);this[_0xe649[28]](_0x1eb3x3,mxResources[_0xe649[26]](_0xe649[90]),_0xe649[38],_0xe649[83],mxConstants.STYLE_TARGET_PERIMETER_SPACING,_0x1eb3x4,_0x1eb3xa)}})));this[_0xe649[30]](_0xe649[91], new Menu(mxUtils[_0xe649[29]](this,function(_0x1eb3x3,_0x1eb3x4){this[_0xe649[92]](_0x1eb3x3,_0xe649[21],_0x1eb3x4)})));this[_0xe649[30]](_0xe649[93], new Menu(mxUtils[_0xe649[29]](this,function(_0x1eb3x3,_0x1eb3x4){var _0x1eb3xb=this[_0xe649[26]](_0xe649[93])[_0xe649[78]];_0x1eb3x3[_0xe649[24]](_0x1eb3x4);this[_0xe649[94]](_0xe649[8],_0x1eb3x3,_0x1eb3x4);this[_0xe649[94]](_0xe649[31],_0x1eb3x3,_0x1eb3x4);this[_0xe649[99]](_0x1eb3x3,[_0xe649[95],_0xe649[96],_0xe649[97],_0xe649[98],_0xe649[95]],_0x1eb3x4);this[_0xe649[94]](_0xe649[100],_0x1eb3x3,_0x1eb3x4);this[_0xe649[92]](_0x1eb3x3,_0xe649[101],_0x1eb3x4);_0x1eb3x3[_0xe649[24]](_0x1eb3x4);this[_0xe649[28]](_0x1eb3x3,mxResources[_0xe649[26]](_0xe649[102]),_0xe649[103],_0xe649[104],mxConstants.STYLE_TEXT_OPACITY,_0x1eb3x4,_0x1eb3xb);_0x1eb3x3[_0xe649[72]](mxResources[_0xe649[26]](_0xe649[105]),null,function(){_0x1eb3x2[_0xe649[71]](mxConstants.STYLE_NOLABEL,false)},_0x1eb3x4,null,_0x1eb3xb)})));this[_0xe649[30]](_0xe649[100], new Menu(mxUtils[_0xe649[29]](this,function(_0x1eb3x3,_0x1eb3x4){this[_0xe649[20]](_0x1eb3x3,mxResources[_0xe649[26]](_0xe649[106]),[mxConstants[_0xe649[107]]],[mxConstants[_0xe649[108]]],null,_0x1eb3x4);this[_0xe649[20]](_0x1eb3x3,mxResources[_0xe649[26]](_0xe649[109]),[mxConstants[_0xe649[107]]],[mxConstants[_0xe649[110]]],null,_0x1eb3x4);this[_0xe649[20]](_0x1eb3x3,mxResources[_0xe649[26]](_0xe649[111]),[mxConstants[_0xe649[107]]],[mxConstants[_0xe649[112]]],null,_0x1eb3x4);_0x1eb3x3[_0xe649[24]](_0x1eb3x4);this[_0xe649[20]](_0x1eb3x3,mxResources[_0xe649[26]](_0xe649[113]),[mxConstants[_0xe649[114]]],[mxConstants[_0xe649[115]]],null,_0x1eb3x4);this[_0xe649[20]](_0x1eb3x3,mxResources[_0xe649[26]](_0xe649[116]),[mxConstants[_0xe649[114]]],[mxConstants[_0xe649[117]]],null,_0x1eb3x4);this[_0xe649[20]](_0x1eb3x3,mxResources[_0xe649[26]](_0xe649[118]),[mxConstants[_0xe649[114]]],[mxConstants[_0xe649[119]]],null,_0x1eb3x4);_0x1eb3x3[_0xe649[24]](_0x1eb3x4);this[_0xe649[94]](_0xe649[120],_0x1eb3x3,_0x1eb3x4);this[_0xe649[94]](_0xe649[77],_0x1eb3x3,_0x1eb3x4);_0x1eb3x3[_0xe649[24]](_0x1eb3x4);var _0x1eb3xb=this[_0xe649[26]](_0xe649[93])[_0xe649[78]];_0x1eb3x3[_0xe649[72]](mxResources[_0xe649[26]](_0xe649[48]),null,function(){_0x1eb3x2[_0xe649[71]](mxConstants.STYLE_HORIZONTAL,true)},_0x1eb3x4,null,_0x1eb3xb)})));this[_0xe649[30]](_0xe649[120], new Menu(mxUtils[_0xe649[29]](this,function(_0x1eb3x3,_0x1eb3x4){this[_0xe649[20]](_0x1eb3x3,mxResources[_0xe649[26]](_0xe649[86]),[mxConstants[_0xe649[121]],mxConstants[_0xe649[107]]],[mxConstants[_0xe649[108]],mxConstants[_0xe649[112]]],null,_0x1eb3x4);this[_0xe649[20]](_0x1eb3x3,mxResources[_0xe649[26]](_0xe649[109]),[mxConstants[_0xe649[121]],mxConstants[_0xe649[107]]],[mxConstants[_0xe649[110]],mxConstants[_0xe649[110]]],null,_0x1eb3x4);this[_0xe649[20]](_0x1eb3x3,mxResources[_0xe649[26]](_0xe649[84]),[mxConstants[_0xe649[121]],mxConstants[_0xe649[107]]],[mxConstants[_0xe649[112]],mxConstants[_0xe649[108]]],null,_0x1eb3x4);_0x1eb3x3[_0xe649[24]](_0x1eb3x4);this[_0xe649[20]](_0x1eb3x3,mxResources[_0xe649[26]](_0xe649[82]),[mxConstants[_0xe649[122]],mxConstants[_0xe649[114]]],[mxConstants[_0xe649[115]],mxConstants[_0xe649[119]]],null,_0x1eb3x4);this[_0xe649[20]](_0x1eb3x3,mxResources[_0xe649[26]](_0xe649[116]),[mxConstants[_0xe649[122]],mxConstants[_0xe649[114]]],[mxConstants[_0xe649[117]],mxConstants[_0xe649[117]]],null,_0x1eb3x4);this[_0xe649[20]](_0x1eb3x3,mxResources[_0xe649[26]](_0xe649[85]),[mxConstants[_0xe649[122]],mxConstants[_0xe649[114]]],[mxConstants[_0xe649[119]],mxConstants[_0xe649[115]]],null,_0x1eb3x4)})));this[_0xe649[30]](_0xe649[123], new Menu(mxUtils[_0xe649[29]](this,function(_0x1eb3x3,_0x1eb3x4){_0x1eb3x3[_0xe649[72]](mxResources[_0xe649[26]](_0xe649[124]),null,function(){_0x1eb3x2[_0xe649[71]](mxConstants.STYLE_FLIPH,false)},_0x1eb3x4);_0x1eb3x3[_0xe649[72]](mxResources[_0xe649[26]](_0xe649[125]),null,function(){_0x1eb3x2[_0xe649[71]](mxConstants.STYLE_FLIPV,false)},_0x1eb3x4);this[_0xe649[99]](_0x1eb3x3,[_0xe649[95],_0xe649[126],_0xe649[127]],_0x1eb3x4)})));this[_0xe649[30]](_0xe649[128], new Menu(mxUtils[_0xe649[29]](this,function(_0x1eb3x3,_0x1eb3x4){_0x1eb3x3[_0xe649[72]](mxResources[_0xe649[26]](_0xe649[106]),null,function(){_0x1eb3x2[_0xe649[129]](mxConstants.ALIGN_LEFT)},_0x1eb3x4);_0x1eb3x3[_0xe649[72]](mxResources[_0xe649[26]](_0xe649[109]),null,function(){_0x1eb3x2[_0xe649[129]](mxConstants.ALIGN_CENTER)},_0x1eb3x4);_0x1eb3x3[_0xe649[72]](mxResources[_0xe649[26]](_0xe649[111]),null,function(){_0x1eb3x2[_0xe649[129]](mxConstants.ALIGN_RIGHT)},_0x1eb3x4);_0x1eb3x3[_0xe649[24]](_0x1eb3x4);_0x1eb3x3[_0xe649[72]](mxResources[_0xe649[26]](_0xe649[113]),null,function(){_0x1eb3x2[_0xe649[129]](mxConstants.ALIGN_TOP)},_0x1eb3x4);_0x1eb3x3[_0xe649[72]](mxResources[_0xe649[26]](_0xe649[116]),null,function(){_0x1eb3x2[_0xe649[129]](mxConstants.ALIGN_MIDDLE)},_0x1eb3x4);_0x1eb3x3[_0xe649[72]](mxResources[_0xe649[26]](_0xe649[118]),null,function(){_0x1eb3x2[_0xe649[129]](mxConstants.ALIGN_BOTTOM)},_0x1eb3x4)})));this[_0xe649[30]](_0xe649[130], new Menu(mxUtils[_0xe649[29]](this,function(_0x1eb3x3,_0x1eb3x4){_0x1eb3x3[_0xe649[72]](mxResources[_0xe649[26]](_0xe649[131]),null,mxUtils[_0xe649[29]](this,function(){var _0x1eb3xc= new mxHierarchicalLayout(_0x1eb3x2,mxConstants.DIRECTION_WEST);this[_0xe649[0]][_0xe649[132]](_0x1eb3xc,true,true)}),_0x1eb3x4);_0x1eb3x3[_0xe649[72]](mxResources[_0xe649[26]](_0xe649[133]),null,mxUtils[_0xe649[29]](this,function(){var _0x1eb3xc= new mxHierarchicalLayout(_0x1eb3x2,mxConstants.DIRECTION_NORTH);this[_0xe649[0]][_0xe649[132]](_0x1eb3xc,true,true)}),_0x1eb3x4)})));this[_0xe649[30]](_0xe649[134], new Menu(mxUtils[_0xe649[29]](this,function(_0x1eb3x3,_0x1eb3x4){this[_0xe649[99]](_0x1eb3x3,[_0xe649[135],_0xe649[95],_0xe649[136],_0xe649[137],_0xe649[95],_0xe649[138],_0xe649[139]],_0x1eb3x4)})));this[_0xe649[30]](_0xe649[140], new Menu(mxUtils[_0xe649[29]](this,function(_0x1eb3x3,_0x1eb3x4){this[_0xe649[99]](_0x1eb3x3,[_0xe649[141],_0xe649[142],_0xe649[95]],_0x1eb3x4);this[_0xe649[94]](_0xe649[130],_0x1eb3x3,_0x1eb3x4);_0x1eb3x3[_0xe649[24]](_0x1eb3x4);this[_0xe649[99]](_0x1eb3x3,[_0xe649[95],_0xe649[143],_0xe649[144],_0xe649[145]],_0x1eb3x4)})));this[_0xe649[30]](_0xe649[146], new Menu(mxUtils[_0xe649[29]](this,function(_0x1eb3x3,_0x1eb3x4){this[_0xe649[99]](_0x1eb3x3,[_0xe649[147]],_0x1eb3x4);_0x1eb3x3[_0xe649[24]]();var _0x1eb3xd=[0.25,0.5,0.75,1,2,4];for(var _0x1eb3x6=0;_0x1eb3x6< _0x1eb3xd[_0xe649[18]];_0x1eb3x6++){(function(_0x1eb3xe){_0x1eb3x3[_0xe649[72]]((_0x1eb3xe* 100)+ _0xe649[148],null,function(){_0x1eb3x2[_0xe649[149]](_0x1eb3xe)},_0x1eb3x4)})(_0x1eb3xd[_0x1eb3x6])};this[_0xe649[99]](_0x1eb3x3,[_0xe649[95],_0xe649[150],_0xe649[151],_0xe649[95],_0xe649[152],_0xe649[153],_0xe649[95],_0xe649[154],_0xe649[155]],_0x1eb3x4)})));this[_0xe649[30]](_0xe649[156], new Menu(mxUtils[_0xe649[29]](this,function(_0x1eb3x3,_0x1eb3x4){this[_0xe649[99]](_0x1eb3x3,[_0xe649[157],_0xe649[158],_0xe649[95],_0xe649[159],_0xe649[160],_0xe649[161],_0xe649[95],_0xe649[162],_0xe649[95],_0xe649[163],_0xe649[164],_0xe649[95],_0xe649[165],_0xe649[166],_0xe649[95],_0xe649[167]],_0x1eb3x4)})));this[_0xe649[30]](_0xe649[168], new Menu(mxUtils[_0xe649[29]](this,function(_0x1eb3x3,_0x1eb3x4){this[_0xe649[99]](_0x1eb3x3,[_0xe649[169],_0xe649[170],_0xe649[95],_0xe649[171],_0xe649[172],_0xe649[173],_0xe649[174],_0xe649[95],_0xe649[175],_0xe649[95],_0xe649[176],_0xe649[177],_0xe649[178]])})));this[_0xe649[30]](_0xe649[179], new Menu(mxUtils[_0xe649[29]](this,function(_0x1eb3x3,_0x1eb3x4){this[_0xe649[99]](_0x1eb3x3,[_0xe649[179],_0xe649[95],_0xe649[180]])})))};Menus[_0xe649[5]][_0xe649[30]]= function(_0x1eb3xf,_0x1eb3x3){this[_0xe649[1]][_0x1eb3xf]= _0x1eb3x3};Menus[_0xe649[5]][_0xe649[26]]= function(_0x1eb3xf){return this[_0xe649[1]][_0x1eb3xf]};Menus[_0xe649[5]][_0xe649[94]]= function(_0x1eb3xf,_0x1eb3x3,_0x1eb3x4){var _0x1eb3xb=this[_0xe649[26]](_0x1eb3xf)[_0xe649[78]];if(_0x1eb3x3[_0xe649[81]]|| _0x1eb3xb){var _0x1eb3x10=_0x1eb3x3[_0xe649[72]](mxResources[_0xe649[26]](_0x1eb3xf),null,null,_0x1eb3x4,null,_0x1eb3xb);this[_0xe649[181]](_0x1eb3xf,_0x1eb3x3,_0x1eb3x10)}};Menus[_0xe649[5]][_0xe649[181]]= function(_0x1eb3xf,_0x1eb3x11,_0x1eb3x4){var _0x1eb3x3=this[_0xe649[26]](_0x1eb3xf);if(_0x1eb3x3!= null&& (_0x1eb3x11[_0xe649[81]]|| _0x1eb3x3[_0xe649[78]])){this[_0xe649[26]](_0x1eb3xf)[_0xe649[182]](_0x1eb3x11,_0x1eb3x4)}};Menus[_0xe649[5]][_0xe649[20]]= function(_0x1eb3x3,_0x1eb3x12,_0x1eb3x13,_0x1eb3x14,_0x1eb3x15,_0x1eb3x4){return _0x1eb3x3[_0xe649[72]](_0x1eb3x12,null,mxUtils[_0xe649[29]](this,function(){var _0x1eb3x2=this[_0xe649[0]][_0xe649[7]][_0xe649[6]];_0x1eb3x2[_0xe649[184]]()[_0xe649[183]]();try{for(var _0x1eb3x6=0;_0x1eb3x6< _0x1eb3x13[_0xe649[18]];_0x1eb3x6++){_0x1eb3x2[_0xe649[185]](_0x1eb3x13[_0x1eb3x6],_0x1eb3x14[_0x1eb3x6])}}finally{_0x1eb3x2[_0xe649[184]]()[_0xe649[186]]()}}),_0x1eb3x4,_0x1eb3x15)};Menus[_0xe649[5]][_0xe649[28]]= function(_0x1eb3x3,_0x1eb3x12,_0x1eb3x16,_0x1eb3x17,_0x1eb3x18,_0x1eb3x4,_0x1eb3xb){return _0x1eb3x3[_0xe649[72]](_0x1eb3x12,null,mxUtils[_0xe649[29]](this,function(){var _0x1eb3x2=this[_0xe649[0]][_0xe649[7]][_0xe649[6]];var _0x1eb3x19=_0x1eb3x17;var _0x1eb3x1a=_0x1eb3x2[_0xe649[189]]()[_0xe649[188]](_0x1eb3x2[_0xe649[187]]());if(_0x1eb3x1a!= null){_0x1eb3x19= _0x1eb3x1a[_0xe649[21]][_0x1eb3x18]|| _0x1eb3x19};_0x1eb3x19= mxUtils[_0xe649[192]](mxResources[_0xe649[26]](_0xe649[190])+ ((_0x1eb3x16[_0xe649[18]]> 0)?(_0xe649[191]+ _0x1eb3x16):_0xe649[27]),_0x1eb3x19);if(_0x1eb3x19!= null&& _0x1eb3x19[_0xe649[18]]> 0){_0x1eb3x2[_0xe649[185]](_0x1eb3x18,_0x1eb3x19)}}),_0x1eb3x4,null,_0x1eb3xb)};Menus[_0xe649[5]][_0xe649[92]]= function(_0x1eb3x3,_0x1eb3x18,_0x1eb3x4){var _0x1eb3x1b=this[_0xe649[0]][_0xe649[80]][_0xe649[26]](_0x1eb3x18);if(_0x1eb3x1b!= null&& (_0x1eb3x3[_0xe649[81]]|| _0x1eb3x1b[_0xe649[78]])){var _0x1eb3x1c=_0x1eb3x3[_0xe649[72]](_0x1eb3x1b[_0xe649[193]],null,_0x1eb3x1b[_0xe649[194]],_0x1eb3x4,null,_0x1eb3x1b[_0xe649[78]]);if(_0x1eb3x1b[_0xe649[195]]&& _0x1eb3x1b[_0xe649[196]]()){this[_0xe649[197]](_0x1eb3x1c)};this[_0xe649[198]](_0x1eb3x1c,_0x1eb3x1b);return _0x1eb3x1c};return null};Menus[_0xe649[5]][_0xe649[198]]= function(_0x1eb3x1c,_0x1eb3x1b){if(_0x1eb3x1b[_0xe649[199]]!= null){var _0x1eb3x1d=_0x1eb3x1c[_0xe649[23]][_0xe649[22]][_0xe649[22]];var _0x1eb3x1e=document[_0xe649[201]](_0xe649[200]);_0x1eb3x1e[_0xe649[21]][_0xe649[202]]= _0xe649[203];mxUtils[_0xe649[204]](_0x1eb3x1e,_0x1eb3x1b[_0xe649[199]]);_0x1eb3x1d[_0xe649[205]](_0x1eb3x1e)}};Menus[_0xe649[5]][_0xe649[197]]= function(_0x1eb3x1c){var _0x1eb3x1d=_0x1eb3x1c[_0xe649[23]][_0xe649[22]];_0x1eb3x1d[_0xe649[21]][_0xe649[206]]= _0xe649[207]+ IMAGE_PATH+ _0xe649[208];_0x1eb3x1d[_0xe649[21]][_0xe649[209]]= _0xe649[210];_0x1eb3x1d[_0xe649[21]][_0xe649[211]]= _0xe649[212]};Menus[_0xe649[5]][_0xe649[99]]= function(_0x1eb3x3,_0x1eb3x13,_0x1eb3x4){for(var _0x1eb3x6=0;_0x1eb3x6< _0x1eb3x13[_0xe649[18]];_0x1eb3x6++){if(_0x1eb3x13[_0x1eb3x6]== _0xe649[95]){_0x1eb3x3[_0xe649[24]](_0x1eb3x4)}else {this[_0xe649[92]](_0x1eb3x3,_0x1eb3x13[_0x1eb3x6],_0x1eb3x4)}}};Menus[_0xe649[5]][_0xe649[213]]= function(_0x1eb3x3,_0x1eb3x1f,_0x1eb3x20){var _0x1eb3x2=this[_0xe649[0]][_0xe649[7]][_0xe649[6]];_0x1eb3x3[_0xe649[214]]= true;if(_0x1eb3x2[_0xe649[215]]()){this[_0xe649[99]](_0x1eb3x3,[_0xe649[169],_0xe649[170],_0xe649[95],_0xe649[173],_0xe649[95]])}else {this[_0xe649[99]](_0x1eb3x3,[_0xe649[174],_0xe649[95],_0xe649[171],_0xe649[172],_0xe649[95],_0xe649[175]]);if(_0x1eb3x2[_0xe649[216]]()== 1&& _0x1eb3x2[_0xe649[184]]()[_0xe649[217]](_0x1eb3x2[_0xe649[187]]())){this[_0xe649[99]](_0x1eb3x3,[_0xe649[218]])};_0x1eb3x3[_0xe649[24]]()};if(_0x1eb3x2[_0xe649[216]]()> 0){this[_0xe649[99]](_0x1eb3x3,[_0xe649[141],_0xe649[142],_0xe649[95]]);if(_0x1eb3x2[_0xe649[184]]()[_0xe649[217]](_0x1eb3x2[_0xe649[187]]())){var _0x1eb3x21=false;var _0x1eb3x1f=_0x1eb3x2[_0xe649[187]]();if(_0x1eb3x1f!= null&& _0x1eb3x2[_0xe649[184]]()[_0xe649[217]](_0x1eb3x1f)){var _0x1eb3x22=_0x1eb3x2[_0xe649[220]][_0xe649[219]](_0x1eb3x1f);if(_0x1eb3x22 instanceof mxEdgeHandler&& _0x1eb3x22[_0xe649[221]]!= null&& _0x1eb3x22[_0xe649[221]][_0xe649[18]]> 2){var _0x1eb3x23=_0x1eb3x22[_0xe649[222]]( new mxMouseEvent(_0x1eb3x20));var _0x1eb3x24=this[_0xe649[0]][_0xe649[80]][_0xe649[26]](_0xe649[223]);_0x1eb3x24[_0xe649[224]]= _0x1eb3x22;_0x1eb3x24[_0xe649[225]]= _0x1eb3x23;_0x1eb3x21= _0x1eb3x23> 0&& _0x1eb3x23< _0x1eb3x22[_0xe649[221]][_0xe649[18]]}};this[_0xe649[99]](_0x1eb3x3,[_0xe649[95],(_0x1eb3x21)?_0xe649[223]:_0xe649[226]])}else {if(_0x1eb3x2[_0xe649[216]]()> 1){_0x1eb3x3[_0xe649[24]]();this[_0xe649[99]](_0x1eb3x3,[_0xe649[143]])}};_0x1eb3x3[_0xe649[24]]();if(_0x1eb3x2[_0xe649[216]]()== 1){var _0x1eb3x25=_0x1eb3x2[_0xe649[227]](_0x1eb3x2[_0xe649[187]]());if(_0x1eb3x25!= null){this[_0xe649[99]](_0x1eb3x3,[_0xe649[228]])}}}else {this[_0xe649[99]](_0x1eb3x3,[_0xe649[95],_0xe649[176],_0xe649[177],_0xe649[95],_0xe649[178]])}};Menus[_0xe649[5]][_0xe649[229]]= function(_0x1eb3x26){var _0x1eb3x27= new Menubar(this[_0xe649[0]],_0x1eb3x26);var _0x1eb3x28=[_0xe649[156],_0xe649[168],_0xe649[146],_0xe649[91],_0xe649[93],_0xe649[140]];for(var _0x1eb3x6=0;_0x1eb3x6< _0x1eb3x28[_0xe649[18]];_0x1eb3x6++){_0x1eb3x27[_0xe649[181]](mxResources[_0xe649[26]](_0x1eb3x28[_0x1eb3x6]),this[_0xe649[26]](_0x1eb3x28[_0x1eb3x6])[_0xe649[194]])};return _0x1eb3x27};function Menubar(_0x1eb3x1,_0x1eb3x26){this[_0xe649[0]]= _0x1eb3x1;this[_0xe649[230]]= _0x1eb3x26;mxEvent[_0xe649[232]](document,mxUtils[_0xe649[29]](this,function(_0x1eb3x20){this[_0xe649[231]]()}))}Menubar[_0xe649[5]][_0xe649[231]]= function(){if(this[_0xe649[233]]!= null){this[_0xe649[233]][_0xe649[231]]()}};Menubar[_0xe649[5]][_0xe649[181]]= function(_0x1eb3x12,_0x1eb3x2a){var _0x1eb3x2b=document[_0xe649[201]](_0xe649[234]);_0x1eb3x2b[_0xe649[237]](_0xe649[235],_0xe649[236]);_0x1eb3x2b[_0xe649[238]]= _0xe649[239];mxUtils[_0xe649[204]](_0x1eb3x2b,_0x1eb3x12);this[_0xe649[240]](_0x1eb3x2b,_0x1eb3x2a);this[_0xe649[230]][_0xe649[205]](_0x1eb3x2b);return _0x1eb3x2b};Menubar[_0xe649[5]][_0xe649[240]]= function(_0x1eb3x2b,_0x1eb3x2a){if(_0x1eb3x2a!= null){var _0x1eb3x2c=true;var _0x1eb3x2d=mxUtils[_0xe649[29]](this,function(_0x1eb3x20){if(_0x1eb3x2c&& _0x1eb3x2b[_0xe649[78]]== null|| _0x1eb3x2b[_0xe649[78]]){this[_0xe649[0]][_0xe649[7]][_0xe649[6]][_0xe649[241]][_0xe649[231]]();var _0x1eb3x3= new mxPopupMenu(_0x1eb3x2a);_0x1eb3x3[_0xe649[242]][_0xe649[238]]+= _0xe649[243];_0x1eb3x3[_0xe649[214]]= true;_0x1eb3x3[_0xe649[81]]= true;_0x1eb3x3[_0xe649[244]]= true;_0x1eb3x3[_0xe649[231]]= mxUtils[_0xe649[29]](this,function(){mxPopupMenu[_0xe649[5]][_0xe649[231]][_0xe649[245]](_0x1eb3x3,arguments);_0x1eb3x3[_0xe649[246]]();this[_0xe649[233]]= null;this[_0xe649[247]]= null});var _0x1eb3x2e=_0x1eb3x2b[_0xe649[248]]+ document[_0xe649[251]](_0xe649[250])[_0xe649[249]]+ 22;var _0x1eb3x2f=_0x1eb3x2b[_0xe649[252]]+ _0x1eb3x2b[_0xe649[253]]+ 140;_0x1eb3x3[_0xe649[254]](_0x1eb3x2e,_0x1eb3x2f,null,_0x1eb3x20);this[_0xe649[233]]= _0x1eb3x3;this[_0xe649[247]]= _0x1eb3x2b};_0x1eb3x2c= true;mxEvent[_0xe649[255]](_0x1eb3x20)});mxEvent[_0xe649[257]](_0x1eb3x2b,_0xe649[256],mxUtils[_0xe649[29]](this,function(_0x1eb3x20){if(this[_0xe649[233]]!= null&& this[_0xe649[247]]!= _0x1eb3x2b){this[_0xe649[231]]();_0x1eb3x2d(_0x1eb3x20)}}));mxEvent[_0xe649[257]](_0x1eb3x2b,_0xe649[258],mxUtils[_0xe649[29]](this,function(){_0x1eb3x2c= this[_0xe649[247]]!= _0x1eb3x2b}));mxEvent[_0xe649[257]](_0x1eb3x2b,_0xe649[259],_0x1eb3x2d)}};function Menu(_0x1eb3x2a,_0x1eb3xb){mxEventSource[_0xe649[260]](this);this[_0xe649[194]]= _0x1eb3x2a;this[_0xe649[78]]= (_0x1eb3xb!= null)?_0x1eb3xb:true}mxUtils[_0xe649[261]](Menu,mxEventSource);Menu[_0xe649[5]][_0xe649[262]]= function(_0x1eb3x19){if(this[_0xe649[78]]!= _0x1eb3x19){this[_0xe649[78]]= _0x1eb3x19;this[_0xe649[264]]( new mxEventObject(_0xe649[263]))}};Menu[_0xe649[5]][_0xe649[182]]= function(_0x1eb3x3,_0x1eb3x4){this[_0xe649[194]](_0x1eb3x3,_0x1eb3x4)} \ No newline at end of file diff --git a/public/assets/plugins/jscripty/js/Shapes.js b/public/assets/plugins/jscripty/js/Shapes.js index 9e8c844..73c67ff 100644 --- a/public/assets/plugins/jscripty/js/Shapes.js +++ b/public/assets/plugins/jscripty/js/Shapes.js @@ -1 +1 @@ -var _0x143d=["\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x63\x6F\x6E\x73\x74\x72\x75\x63\x74\x6F\x72","\x73\x69\x7A\x65","\x72\x65\x64\x72\x61\x77\x50\x61\x74\x68","\x73\x74\x79\x6C\x65","\x67\x65\x74\x56\x61\x6C\x75\x65","\x6D\x69\x6E","\x6D\x6F\x76\x65\x54\x6F","\x6C\x69\x6E\x65\x54\x6F","\x65\x6E\x64","\x63\x6C\x6F\x73\x65","\x63\x75\x62\x65","\x64\x65\x66\x61\x75\x6C\x74\x53\x68\x61\x70\x65\x73","\x6E\x6F\x74\x65","\x74\x61\x62\x57\x69\x64\x74\x68","\x74\x61\x62\x48\x65\x69\x67\x68\x74","\x74\x61\x62\x50\x6F\x73\x69\x74\x69\x6F\x6E","\x72\x69\x67\x68\x74","\x6C\x65\x66\x74","\x66\x6F\x6C\x64\x65\x72","\x63\x61\x72\x64","\x71\x75\x61\x64\x54\x6F","\x74\x61\x70\x65","\x73\x74\x65\x70","\x63\x61\x6C\x6C","\x65\x78\x74\x65\x6E\x64","\x69\x73\x48\x74\x6D\x6C\x41\x6C\x6C\x6F\x77\x65\x64","\x70\x61\x69\x6E\x74\x46\x6F\x72\x65\x67\x72\x6F\x75\x6E\x64","\x62\x65\x67\x69\x6E","\x73\x74\x72\x6F\x6B\x65","\x61\x70\x70\x6C\x79","\x70\x6C\x75\x73","\x64\x6F\x75\x62\x6C\x65","\x73\x74\x72\x6F\x6B\x65\x77\x69\x64\x74\x68","\x6D\x61\x78","\x70\x61\x69\x6E\x74\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64","\x73\x65\x74\x44\x61\x73\x68\x65\x64","\x73\x79\x6D\x62\x6F\x6C","\x41\x6C\x69\x67\x6E","\x56\x65\x72\x74\x69\x63\x61\x6C\x41\x6C\x69\x67\x6E","\x57\x69\x64\x74\x68","\x48\x65\x69\x67\x68\x74","\x53\x70\x61\x63\x69\x6E\x67","\x41\x72\x63\x53\x70\x61\x63\x69\x6E\x67","\x67\x65\x74\x41\x72\x63\x53\x69\x7A\x65","\x41\x4C\x49\x47\x4E\x5F\x43\x45\x4E\x54\x45\x52","\x41\x4C\x49\x47\x4E\x5F\x52\x49\x47\x48\x54","\x41\x4C\x49\x47\x4E\x5F\x4D\x49\x44\x44\x4C\x45","\x41\x4C\x49\x47\x4E\x5F\x42\x4F\x54\x54\x4F\x4D","\x73\x61\x76\x65","\x70\x61\x69\x6E\x74\x56\x65\x72\x74\x65\x78\x53\x68\x61\x70\x65","\x72\x65\x73\x74\x6F\x72\x65","\x65\x78\x74","\x6D\x65\x73\x73\x61\x67\x65","\x61\x64\x64\x50\x69\x70\x65","\x63\x75\x72\x76\x65\x54\x6F","\x75\x6D\x6C\x41\x63\x74\x6F\x72","\x6C\x6F\x6C\x6C\x69\x70\x6F\x70","\x6A\x65\x74\x74\x79\x57\x69\x64\x74\x68","\x6A\x65\x74\x74\x79\x48\x65\x69\x67\x68\x74","\x63\x6F\x6D\x70\x6F\x6E\x65\x6E\x74","\x6F\x75\x74\x65\x72\x53\x74\x72\x6F\x6B\x65","\x65\x6C\x6C\x69\x70\x73\x65","\x66\x69\x6C\x6C\x41\x6E\x64\x53\x74\x72\x6F\x6B\x65","\x73\x65\x74\x53\x68\x61\x64\x6F\x77","\x65\x6E\x64\x53\x74\x61\x74\x65","\x73\x74\x61\x72\x74\x53\x74\x61\x74\x65","\x69\x6E\x69\x74\x53\x68\x61\x70\x65\x73","\x78","\x79","\x77\x69\x64\x74\x68","\x68\x65\x69\x67\x68\x74","\x73\x68\x61\x70\x65\x73","\x70\x61\x69\x6E\x74\x45\x64\x67\x65\x53\x68\x61\x70\x65","\x6C\x65\x6E\x67\x74\x68","\x73\x71\x72\x74","\x6C\x69\x6E\x6B","\x64\x61\x73\x68","\x61\x64\x64\x4D\x61\x72\x6B\x65\x72","\x75\x6E\x64\x65\x66\x69\x6E\x65\x64","\x75\x73\x65\x47\x72\x69\x64\x46\x6F\x72\x53\x70\x65\x63\x69\x61\x6C\x48\x61\x6E\x64\x6C\x65","\x69\x6E\x69\x74","\x68\x6F\x72\x69\x7A\x6F\x6E\x74\x61\x6C","\x73\x74\x61\x74\x65","\x67\x72\x61\x70\x68","\x76\x69\x65\x77","\x68\x61\x6E\x64\x6C\x65\x49\x6D\x61\x67\x65","\x73\x70\x65\x63\x69\x61\x6C\x48\x61\x6E\x64\x6C\x65","\x73\x72\x63","\x64\x69\x61\x6C\x65\x63\x74","\x44\x49\x41\x4C\x45\x43\x54\x5F\x53\x56\x47","\x44\x49\x41\x4C\x45\x43\x54\x5F\x56\x4D\x4C","\x67\x65\x74\x4F\x76\x65\x72\x6C\x61\x79\x50\x61\x6E\x65","\x67\x65\x74\x56\x69\x65\x77","\x63\x75\x72\x73\x6F\x72","\x6E\x6F\x64\x65","\x67\x65\x74\x53\x70\x65\x63\x69\x61\x6C\x48\x61\x6E\x64\x6C\x65\x43\x75\x72\x73\x6F\x72","\x72\x65\x64\x69\x72\x65\x63\x74\x4D\x6F\x75\x73\x65\x45\x76\x65\x6E\x74\x73","\x64\x65\x66\x61\x75\x6C\x74","\x72\x65\x64\x72\x61\x77","\x62\x6F\x75\x6E\x64\x73","\x67\x65\x74\x53\x70\x65\x63\x69\x61\x6C\x48\x61\x6E\x64\x6C\x65\x42\x6F\x75\x6E\x64\x73","\x64\x65\x73\x74\x72\x6F\x79","\x67\x65\x74\x48\x61\x6E\x64\x6C\x65\x46\x6F\x72\x45\x76\x65\x6E\x74","\x69\x73\x53\x6F\x75\x72\x63\x65","\x6D\x6F\x75\x73\x65\x4D\x6F\x76\x65","\x69\x73\x43\x6F\x6E\x73\x75\x6D\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74\x47\x72\x61\x70\x68\x58","\x67\x65\x74\x47\x72\x61\x70\x68\x59","\x63\x6F\x6E\x73\x74\x72\x61\x69\x6E\x50\x6F\x69\x6E\x74","\x67\x65\x74\x45\x76\x65\x6E\x74","\x69\x73\x47\x72\x69\x64\x45\x6E\x61\x62\x6C\x65\x64\x45\x76\x65\x6E\x74","\x73\x63\x61\x6C\x65","\x73\x6E\x61\x70","\x75\x70\x64\x61\x74\x65\x53\x74\x79\x6C\x65","\x6D\x6F\x76\x65\x53\x69\x7A\x65\x72\x54\x6F","\x63\x65\x6C\x6C\x52\x65\x6E\x64\x65\x72\x65\x72","\x63\x6F\x6E\x73\x75\x6D\x65","\x6D\x6F\x75\x73\x65\x55\x70","\x61\x70\x70\x6C\x79\x53\x74\x79\x6C\x65","\x72\x65\x73\x65\x74","\x67\x65\x74\x53\x68\x61\x70\x65\x52\x6F\x74\x61\x74\x69\x6F\x6E","\x73\x68\x61\x70\x65","\x74\x6F\x52\x61\x64\x69\x61\x6E\x73","\x63\x6F\x73","\x73\x69\x6E","\x69\x73\x50\x61\x69\x6E\x74\x42\x6F\x75\x6E\x64\x73\x49\x6E\x76\x65\x72\x74\x65\x64","\x67\x65\x74\x53\x70\x65\x63\x69\x61\x6C\x48\x61\x6E\x64\x6C\x65\x50\x6F\x69\x6E\x74","\x66\x6C\x69\x70\x48","\x66\x6C\x69\x70\x56","\x67\x65\x74\x43\x65\x6E\x74\x65\x72\x58","\x67\x65\x74\x43\x65\x6E\x74\x65\x72\x59","\x67\x65\x74\x52\x6F\x74\x61\x74\x65\x64\x50\x6F\x69\x6E\x74","\x75\x70\x64\x61\x74\x65\x53\x74\x79\x6C\x65\x55\x6E\x72\x6F\x74\x61\x74\x65\x64","\x72\x6F\x75\x6E\x64","\x67\x65\x74\x4D\x6F\x64\x65\x6C","\x62\x65\x67\x69\x6E\x55\x70\x64\x61\x74\x65","\x63\x65\x6C\x6C","\x73\x65\x74\x43\x65\x6C\x6C\x53\x74\x79\x6C\x65\x73","\x65\x6E\x64\x55\x70\x64\x61\x74\x65","\x73\x74\x61\x72\x74\x53\x69\x7A\x65","\x64\x65\x66\x61\x75\x6C\x74\x56\x61\x6C\x75\x65","\x73\x63\x61\x6C\x65\x46\x61\x63\x74\x6F\x72","\x63\x72\x65\x61\x74\x65\x48\x61\x6E\x64\x6C\x65\x72","\x67\x65\x74\x41\x6C\x6C\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x43\x6F\x6E\x73\x74\x72\x61\x69\x6E\x74\x73","\x73\x74\x65\x6E\x63\x69\x6C","\x63\x6F\x6E\x73\x74\x72\x61\x69\x6E\x74\x73"];(function(){function _0x1e0bx1(){}_0x1e0bx1[_0x143d[0]]= new mxCylinder();_0x1e0bx1[_0x143d[0]][_0x143d[1]]= _0x1e0bx1;_0x1e0bx1[_0x143d[0]][_0x143d[2]]= 20;_0x1e0bx1[_0x143d[0]][_0x143d[3]]= function(_0x1e0bx2,_0x1e0bx3,_0x1e0bx4,_0x1e0bx5,_0x1e0bx6,_0x1e0bx7){var _0x1e0bx8=Math[_0x143d[6]](_0x1e0bx5,Math[_0x143d[6]](_0x1e0bx6,mxUtils[_0x143d[5]](this[_0x143d[4]],_0x143d[2],this[_0x143d[2]])));if(_0x1e0bx7){_0x1e0bx2[_0x143d[7]](_0x1e0bx8,_0x1e0bx6);_0x1e0bx2[_0x143d[8]](_0x1e0bx8,_0x1e0bx8);_0x1e0bx2[_0x143d[8]](0,0);_0x1e0bx2[_0x143d[7]](_0x1e0bx8,_0x1e0bx8);_0x1e0bx2[_0x143d[8]](_0x1e0bx5,_0x1e0bx8);_0x1e0bx2[_0x143d[9]]()}else {_0x1e0bx2[_0x143d[7]](0,0);_0x1e0bx2[_0x143d[8]](_0x1e0bx5- _0x1e0bx8,0);_0x1e0bx2[_0x143d[8]](_0x1e0bx5,_0x1e0bx8);_0x1e0bx2[_0x143d[8]](_0x1e0bx5,_0x1e0bx6);_0x1e0bx2[_0x143d[8]](_0x1e0bx8,_0x1e0bx6);_0x1e0bx2[_0x143d[8]](0,_0x1e0bx6- _0x1e0bx8);_0x1e0bx2[_0x143d[8]](0,0);_0x1e0bx2[_0x143d[10]]();_0x1e0bx2[_0x143d[9]]()}};mxCellRenderer[_0x143d[0]][_0x143d[12]][_0x143d[11]]= _0x1e0bx1;function _0x1e0bx9(){}_0x1e0bx9[_0x143d[0]]= new mxCylinder();_0x1e0bx9[_0x143d[0]][_0x143d[1]]= _0x1e0bx9;_0x1e0bx9[_0x143d[0]][_0x143d[2]]= 30;_0x1e0bx9[_0x143d[0]][_0x143d[3]]= function(_0x1e0bx2,_0x1e0bx3,_0x1e0bx4,_0x1e0bx5,_0x1e0bx6,_0x1e0bx7){var _0x1e0bx8=Math[_0x143d[6]](_0x1e0bx5,Math[_0x143d[6]](_0x1e0bx6,mxUtils[_0x143d[5]](this[_0x143d[4]],_0x143d[2],this[_0x143d[2]])));if(_0x1e0bx7){_0x1e0bx2[_0x143d[7]](_0x1e0bx5- _0x1e0bx8,0);_0x1e0bx2[_0x143d[8]](_0x1e0bx5- _0x1e0bx8,_0x1e0bx8);_0x1e0bx2[_0x143d[8]](_0x1e0bx5,_0x1e0bx8);_0x1e0bx2[_0x143d[9]]()}else {_0x1e0bx2[_0x143d[7]](0,0);_0x1e0bx2[_0x143d[8]](_0x1e0bx5- _0x1e0bx8,0);_0x1e0bx2[_0x143d[8]](_0x1e0bx5,_0x1e0bx8);_0x1e0bx2[_0x143d[8]](_0x1e0bx5,_0x1e0bx6);_0x1e0bx2[_0x143d[8]](0,_0x1e0bx6);_0x1e0bx2[_0x143d[8]](0,0);_0x1e0bx2[_0x143d[10]]();_0x1e0bx2[_0x143d[9]]()}};mxCellRenderer[_0x143d[0]][_0x143d[12]][_0x143d[13]]= _0x1e0bx9;function _0x1e0bxa(){}_0x1e0bxa[_0x143d[0]]= new mxCylinder();_0x1e0bxa[_0x143d[0]][_0x143d[1]]= _0x1e0bxa;_0x1e0bxa[_0x143d[0]][_0x143d[14]]= 60;_0x1e0bxa[_0x143d[0]][_0x143d[15]]= 20;_0x1e0bxa[_0x143d[0]][_0x143d[16]]= _0x143d[17];_0x1e0bxa[_0x143d[0]][_0x143d[3]]= function(_0x1e0bx2,_0x1e0bx3,_0x1e0bx4,_0x1e0bx5,_0x1e0bx6,_0x1e0bx7){var _0x1e0bxb=mxUtils[_0x143d[5]](this[_0x143d[4]],_0x143d[14],this[_0x143d[14]]);var _0x1e0bxc=mxUtils[_0x143d[5]](this[_0x143d[4]],_0x143d[15],this[_0x143d[15]]);var _0x1e0bxd=mxUtils[_0x143d[5]](this[_0x143d[4]],_0x143d[16],this[_0x143d[16]]);var _0x1e0bxe=Math[_0x143d[6]](_0x1e0bx5,_0x1e0bxb);var _0x1e0bxf=Math[_0x143d[6]](_0x1e0bx6,_0x1e0bxc);if(_0x1e0bx7){if(_0x1e0bxd== _0x143d[18]){_0x1e0bx2[_0x143d[7]](0,_0x1e0bxf);_0x1e0bx2[_0x143d[8]](_0x1e0bxe,_0x1e0bxf)}else {_0x1e0bx2[_0x143d[7]](_0x1e0bx5- _0x1e0bxe,_0x1e0bxf);_0x1e0bx2[_0x143d[8]](_0x1e0bx5,_0x1e0bxf)};_0x1e0bx2[_0x143d[9]]()}else {if(_0x1e0bxd== _0x143d[18]){_0x1e0bx2[_0x143d[7]](0,0);_0x1e0bx2[_0x143d[8]](_0x1e0bxe,0);_0x1e0bx2[_0x143d[8]](_0x1e0bxe,_0x1e0bxf);_0x1e0bx2[_0x143d[8]](_0x1e0bx5,_0x1e0bxf)}else {_0x1e0bx2[_0x143d[7]](0,_0x1e0bxf);_0x1e0bx2[_0x143d[8]](_0x1e0bx5- _0x1e0bxe,_0x1e0bxf);_0x1e0bx2[_0x143d[8]](_0x1e0bx5- _0x1e0bxe,0);_0x1e0bx2[_0x143d[8]](_0x1e0bx5,0)};_0x1e0bx2[_0x143d[8]](_0x1e0bx5,_0x1e0bx6);_0x1e0bx2[_0x143d[8]](0,_0x1e0bx6);_0x1e0bx2[_0x143d[8]](0,_0x1e0bxf);_0x1e0bx2[_0x143d[10]]();_0x1e0bx2[_0x143d[9]]()}};mxCellRenderer[_0x143d[0]][_0x143d[12]][_0x143d[19]]= _0x1e0bxa;function _0x1e0bx10(){}_0x1e0bx10[_0x143d[0]]= new mxCylinder();_0x1e0bx10[_0x143d[0]][_0x143d[1]]= _0x1e0bx10;_0x1e0bx10[_0x143d[0]][_0x143d[2]]= 30;_0x1e0bx10[_0x143d[0]][_0x143d[3]]= function(_0x1e0bx2,_0x1e0bx3,_0x1e0bx4,_0x1e0bx5,_0x1e0bx6,_0x1e0bx7){var _0x1e0bx8=Math[_0x143d[6]](_0x1e0bx5,Math[_0x143d[6]](_0x1e0bx6,mxUtils[_0x143d[5]](this[_0x143d[4]],_0x143d[2],this[_0x143d[2]])));if(!_0x1e0bx7){_0x1e0bx2[_0x143d[7]](_0x1e0bx8,0);_0x1e0bx2[_0x143d[8]](_0x1e0bx5,0);_0x1e0bx2[_0x143d[8]](_0x1e0bx5,_0x1e0bx6);_0x1e0bx2[_0x143d[8]](0,_0x1e0bx6);_0x1e0bx2[_0x143d[8]](0,_0x1e0bx8);_0x1e0bx2[_0x143d[8]](_0x1e0bx8,0);_0x1e0bx2[_0x143d[10]]();_0x1e0bx2[_0x143d[9]]()}};mxCellRenderer[_0x143d[0]][_0x143d[12]][_0x143d[20]]= _0x1e0bx10;function _0x1e0bx11(){}_0x1e0bx11[_0x143d[0]]= new mxCylinder();_0x1e0bx11[_0x143d[0]][_0x143d[1]]= _0x1e0bx11;_0x1e0bx11[_0x143d[0]][_0x143d[2]]= 0.4;_0x1e0bx11[_0x143d[0]][_0x143d[3]]= function(_0x1e0bx2,_0x1e0bx3,_0x1e0bx4,_0x1e0bx5,_0x1e0bx6,_0x1e0bx7){var _0x1e0bx8=mxUtils[_0x143d[5]](this[_0x143d[4]],_0x143d[2],this[_0x143d[2]]);var _0x1e0bxf=_0x1e0bx6* _0x1e0bx8;var _0x1e0bx12=1.4;if(!_0x1e0bx7){_0x1e0bx2[_0x143d[7]](0,_0x1e0bxf/ 2);_0x1e0bx2[_0x143d[21]](_0x1e0bx5/ 4,_0x1e0bxf* _0x1e0bx12,_0x1e0bx5/ 2,_0x1e0bxf/ 2);_0x1e0bx2[_0x143d[21]](_0x1e0bx5* 3/ 4,_0x1e0bxf* (1- _0x1e0bx12),_0x1e0bx5,_0x1e0bxf/ 2);_0x1e0bx2[_0x143d[8]](_0x1e0bx5,_0x1e0bx6- _0x1e0bxf/ 2);_0x1e0bx2[_0x143d[21]](_0x1e0bx5* 3/ 4,_0x1e0bx6- _0x1e0bxf* _0x1e0bx12,_0x1e0bx5/ 2,_0x1e0bx6- _0x1e0bxf/ 2);_0x1e0bx2[_0x143d[21]](_0x1e0bx5/ 4,_0x1e0bx6- _0x1e0bxf* (1- _0x1e0bx12),0,_0x1e0bx6- _0x1e0bxf/ 2);_0x1e0bx2[_0x143d[8]](0,_0x1e0bxf/ 2);_0x1e0bx2[_0x143d[10]]();_0x1e0bx2[_0x143d[9]]()}};mxCellRenderer[_0x143d[0]][_0x143d[12]][_0x143d[22]]= _0x1e0bx11;function _0x1e0bx13(){}_0x1e0bx13[_0x143d[0]]= new mxCylinder();_0x1e0bx13[_0x143d[0]][_0x143d[1]]= _0x1e0bx13;_0x1e0bx13[_0x143d[0]][_0x143d[2]]= 0.2;_0x1e0bx13[_0x143d[0]][_0x143d[3]]= function(_0x1e0bx2,_0x1e0bx3,_0x1e0bx4,_0x1e0bx5,_0x1e0bx6,_0x1e0bx7){var _0x1e0bx8=_0x1e0bx5* mxUtils[_0x143d[5]](this[_0x143d[4]],_0x143d[2],this[_0x143d[2]]);if(!_0x1e0bx7){_0x1e0bx2[_0x143d[7]](0,0);_0x1e0bx2[_0x143d[8]](_0x1e0bx5- _0x1e0bx8,0);_0x1e0bx2[_0x143d[8]](_0x1e0bx5,_0x1e0bx6/ 2);_0x1e0bx2[_0x143d[8]](_0x1e0bx5- _0x1e0bx8,_0x1e0bx6);_0x1e0bx2[_0x143d[8]](0,_0x1e0bx6);_0x1e0bx2[_0x143d[8]](_0x1e0bx8,_0x1e0bx6/ 2);_0x1e0bx2[_0x143d[10]]();_0x1e0bx2[_0x143d[9]]()}};mxCellRenderer[_0x143d[0]][_0x143d[12]][_0x143d[23]]= _0x1e0bx13;function _0x1e0bx14(){mxRectangleShape[_0x143d[24]](this)}mxUtils[_0x143d[25]](_0x1e0bx14,mxRectangleShape);_0x1e0bx14[_0x143d[0]][_0x143d[26]]= function(){return false};_0x1e0bx14[_0x143d[0]][_0x143d[27]]= function(_0x1e0bx15,_0x1e0bx3,_0x1e0bx4,_0x1e0bx5,_0x1e0bx6){var _0x1e0bx16=Math[_0x143d[6]](_0x1e0bx5/ 5,_0x1e0bx6/ 5)+ 1;_0x1e0bx15[_0x143d[28]]();_0x1e0bx15[_0x143d[7]](_0x1e0bx3+ _0x1e0bx5/ 2,_0x1e0bx4+ _0x1e0bx16);_0x1e0bx15[_0x143d[8]](_0x1e0bx3+ _0x1e0bx5/ 2,_0x1e0bx4+ _0x1e0bx6- _0x1e0bx16);_0x1e0bx15[_0x143d[7]](_0x1e0bx3+ _0x1e0bx16,_0x1e0bx4+ _0x1e0bx6/ 2);_0x1e0bx15[_0x143d[8]](_0x1e0bx3+ _0x1e0bx5- _0x1e0bx16,_0x1e0bx4+ _0x1e0bx6/ 2);_0x1e0bx15[_0x143d[9]]();_0x1e0bx15[_0x143d[29]]();mxRectangleShape[_0x143d[0]][_0x143d[27]][_0x143d[30]](this,arguments)};mxCellRenderer[_0x143d[0]][_0x143d[12]][_0x143d[31]]= _0x1e0bx14;function _0x1e0bx17(){mxRectangleShape[_0x143d[24]](this)}mxUtils[_0x143d[25]](_0x1e0bx17,mxRectangleShape);_0x1e0bx17[_0x143d[0]][_0x143d[26]]= function(){return false};_0x1e0bx17[_0x143d[0]][_0x143d[27]]= function(_0x1e0bx15,_0x1e0bx3,_0x1e0bx4,_0x1e0bx5,_0x1e0bx6){if(this[_0x143d[4]]!= null){if(this[_0x143d[4]][_0x143d[32]]== 1){var _0x1e0bx18=Math[_0x143d[34]](2,this[_0x143d[33]]+ 1);mxRectangleShape[_0x143d[0]][_0x143d[35]][_0x143d[24]](this,_0x1e0bx15,_0x1e0bx3+ _0x1e0bx18,_0x1e0bx4+ _0x1e0bx18,_0x1e0bx5- 2* _0x1e0bx18,_0x1e0bx6- 2* _0x1e0bx18);mxRectangleShape[_0x143d[0]][_0x143d[27]][_0x143d[30]](this,arguments);_0x1e0bx3+= _0x1e0bx18;_0x1e0bx4+= _0x1e0bx18;_0x1e0bx5-= 2* _0x1e0bx18;_0x1e0bx6-= 2* _0x1e0bx18};_0x1e0bx15[_0x143d[36]](false);var _0x1e0bx19=0;var _0x1e0bx1a=null;do{_0x1e0bx1a= mxCellRenderer[_0x143d[0]][_0x143d[12]][this[_0x143d[4]][_0x143d[37]+ _0x1e0bx19]];if(_0x1e0bx1a!= null){var _0x1e0bx1b=this[_0x143d[4]][_0x143d[37]+ _0x1e0bx19+ _0x143d[38]];var _0x1e0bx1c=this[_0x143d[4]][_0x143d[37]+ _0x1e0bx19+ _0x143d[39]];var _0x1e0bx1d=this[_0x143d[4]][_0x143d[37]+ _0x1e0bx19+ _0x143d[40]];var _0x1e0bx1e=this[_0x143d[4]][_0x143d[37]+ _0x1e0bx19+ _0x143d[41]];var _0x1e0bx1f=this[_0x143d[4]][_0x143d[37]+ _0x1e0bx19+ _0x143d[42]]|| 0;var _0x1e0bx20=this[_0x143d[4]][_0x143d[37]+ _0x1e0bx19+ _0x143d[43]];if(_0x1e0bx20!= null){_0x1e0bx1f+= this[_0x143d[44]](_0x1e0bx5+ this[_0x143d[33]],_0x1e0bx6+ this[_0x143d[33]])* _0x1e0bx20};var _0x1e0bx21=_0x1e0bx3;var _0x1e0bx22=_0x1e0bx4;if(_0x1e0bx1b== mxConstants[_0x143d[45]]){_0x1e0bx21+= (_0x1e0bx5- _0x1e0bx1d)/ 2}else {if(_0x1e0bx1b== mxConstants[_0x143d[46]]){_0x1e0bx21+= _0x1e0bx5- _0x1e0bx1d- _0x1e0bx1f}else {_0x1e0bx21+= _0x1e0bx1f}};if(_0x1e0bx1c== mxConstants[_0x143d[47]]){_0x1e0bx22+= (_0x1e0bx6- _0x1e0bx1e)/ 2}else {if(_0x1e0bx1c== mxConstants[_0x143d[48]]){_0x1e0bx22+= _0x1e0bx6- _0x1e0bx1e- _0x1e0bx1f}else {_0x1e0bx22+= _0x1e0bx1f}};_0x1e0bx15[_0x143d[49]]();var _0x1e0bx23= new _0x1e0bx1a();_0x1e0bx23[_0x143d[4]]= this[_0x143d[4]];_0x1e0bx1a[_0x143d[0]][_0x143d[50]][_0x143d[24]](_0x1e0bx23,_0x1e0bx15,_0x1e0bx21,_0x1e0bx22,_0x1e0bx1d,_0x1e0bx1e);_0x1e0bx15[_0x143d[51]]()};_0x1e0bx19++}while(_0x1e0bx1a!= null);}};mxCellRenderer[_0x143d[0]][_0x143d[12]][_0x143d[52]]= _0x1e0bx17;function _0x1e0bx24(){}_0x1e0bx24[_0x143d[0]]= new mxCylinder();_0x1e0bx24[_0x143d[0]][_0x143d[1]]= _0x1e0bx24;_0x1e0bx24[_0x143d[0]][_0x143d[3]]= function(_0x1e0bx2,_0x1e0bx3,_0x1e0bx4,_0x1e0bx5,_0x1e0bx6,_0x1e0bx7){if(_0x1e0bx7){_0x1e0bx2[_0x143d[7]](0,0);_0x1e0bx2[_0x143d[8]](_0x1e0bx5/ 2,_0x1e0bx6/ 2);_0x1e0bx2[_0x143d[8]](_0x1e0bx5,0);_0x1e0bx2[_0x143d[9]]()}else {_0x1e0bx2[_0x143d[7]](0,0);_0x1e0bx2[_0x143d[8]](_0x1e0bx5,0);_0x1e0bx2[_0x143d[8]](_0x1e0bx5,_0x1e0bx6);_0x1e0bx2[_0x143d[8]](0,_0x1e0bx6);_0x1e0bx2[_0x143d[10]]()}};mxCellRenderer[_0x143d[0]][_0x143d[12]][_0x143d[53]]= _0x1e0bx24;function _0x1e0bx25(){}_0x1e0bx25[_0x143d[0]]= new mxCylinder();_0x1e0bx25[_0x143d[0]][_0x143d[1]]= _0x1e0bx25;_0x1e0bx25[_0x143d[0]][_0x143d[54]]= true;_0x1e0bx25[_0x143d[0]][_0x143d[3]]= function(_0x1e0bx2,_0x1e0bx3,_0x1e0bx4,_0x1e0bx5,_0x1e0bx6,_0x1e0bx7){var _0x1e0bx1d=_0x1e0bx5/ 3;var _0x1e0bx1e=_0x1e0bx6/ 4;if(!_0x1e0bx7){_0x1e0bx2[_0x143d[7]](_0x1e0bx5/ 2,_0x1e0bx1e);_0x1e0bx2[_0x143d[55]](_0x1e0bx5/ 2- _0x1e0bx1d,_0x1e0bx1e,_0x1e0bx5/ 2- _0x1e0bx1d,0,_0x1e0bx5/ 2,0);_0x1e0bx2[_0x143d[55]](_0x1e0bx5/ 2+ _0x1e0bx1d,0,_0x1e0bx5/ 2+ _0x1e0bx1d,_0x1e0bx1e,_0x1e0bx5/ 2,_0x1e0bx1e);_0x1e0bx2[_0x143d[10]]();_0x1e0bx2[_0x143d[7]](_0x1e0bx5/ 2,_0x1e0bx1e);_0x1e0bx2[_0x143d[8]](_0x1e0bx5/ 2,2* _0x1e0bx6/ 3);_0x1e0bx2[_0x143d[7]](_0x1e0bx5/ 2,_0x1e0bx6/ 3);_0x1e0bx2[_0x143d[8]](0,_0x1e0bx6/ 3);_0x1e0bx2[_0x143d[7]](_0x1e0bx5/ 2,_0x1e0bx6/ 3);_0x1e0bx2[_0x143d[8]](_0x1e0bx5,_0x1e0bx6/ 3);_0x1e0bx2[_0x143d[7]](_0x1e0bx5/ 2,2* _0x1e0bx6/ 3);_0x1e0bx2[_0x143d[8]](0,_0x1e0bx6);_0x1e0bx2[_0x143d[7]](_0x1e0bx5/ 2,2* _0x1e0bx6/ 3);_0x1e0bx2[_0x143d[8]](_0x1e0bx5,_0x1e0bx6);_0x1e0bx2[_0x143d[9]]()}};mxCellRenderer[_0x143d[0]][_0x143d[12]][_0x143d[56]]= _0x1e0bx25;function _0x1e0bx26(){}_0x1e0bx26[_0x143d[0]]= new mxCylinder();_0x1e0bx26[_0x143d[0]][_0x143d[1]]= _0x1e0bx26;_0x1e0bx26[_0x143d[0]][_0x143d[2]]= 10;_0x1e0bx26[_0x143d[0]][_0x143d[54]]= true;_0x1e0bx26[_0x143d[0]][_0x143d[3]]= function(_0x1e0bx2,_0x1e0bx3,_0x1e0bx4,_0x1e0bx5,_0x1e0bx6,_0x1e0bx7){var _0x1e0bx27=mxUtils[_0x143d[5]](this[_0x143d[4]],_0x143d[2],this[_0x143d[2]]);var _0x1e0bx1d=_0x1e0bx27* 2/ 3;var _0x1e0bx1e=_0x1e0bx27;if(!_0x1e0bx7){_0x1e0bx2[_0x143d[7]](_0x1e0bx5/ 2,_0x1e0bx1e);_0x1e0bx2[_0x143d[55]](_0x1e0bx5/ 2- _0x1e0bx1d,_0x1e0bx1e,_0x1e0bx5/ 2- _0x1e0bx1d,0,_0x1e0bx5/ 2,0);_0x1e0bx2[_0x143d[55]](_0x1e0bx5/ 2+ _0x1e0bx1d,0,_0x1e0bx5/ 2+ _0x1e0bx1d,_0x1e0bx1e,_0x1e0bx5/ 2,_0x1e0bx1e);_0x1e0bx2[_0x143d[10]]();_0x1e0bx2[_0x143d[7]](_0x1e0bx5/ 2,_0x1e0bx1e);_0x1e0bx2[_0x143d[8]](_0x1e0bx5/ 2,_0x1e0bx6);_0x1e0bx2[_0x143d[9]]()}};mxCellRenderer[_0x143d[0]][_0x143d[12]][_0x143d[57]]= _0x1e0bx26;function _0x1e0bx28(){}_0x1e0bx28[_0x143d[0]]= new mxCylinder();_0x1e0bx28[_0x143d[0]][_0x143d[1]]= _0x1e0bx28;_0x1e0bx28[_0x143d[0]][_0x143d[58]]= 32;_0x1e0bx28[_0x143d[0]][_0x143d[59]]= 12;_0x1e0bx28[_0x143d[0]][_0x143d[3]]= function(_0x1e0bx2,_0x1e0bx3,_0x1e0bx4,_0x1e0bx5,_0x1e0bx6,_0x1e0bx7){var _0x1e0bxe=mxUtils[_0x143d[5]](this[_0x143d[4]],_0x143d[58],this[_0x143d[58]]);var _0x1e0bxf=mxUtils[_0x143d[5]](this[_0x143d[4]],_0x143d[59],this[_0x143d[59]]);var _0x1e0bx29=_0x1e0bxe/ 2;var _0x1e0bx2a=_0x1e0bx29+ _0x1e0bxe/ 2;var _0x1e0bx2b=0.3* _0x1e0bx6- _0x1e0bxf/ 2;var _0x1e0bx2c=0.7* _0x1e0bx6- _0x1e0bxf/ 2;if(_0x1e0bx7){_0x1e0bx2[_0x143d[7]](_0x1e0bx29,_0x1e0bx2b);_0x1e0bx2[_0x143d[8]](_0x1e0bx2a,_0x1e0bx2b);_0x1e0bx2[_0x143d[8]](_0x1e0bx2a,_0x1e0bx2b+ _0x1e0bxf);_0x1e0bx2[_0x143d[8]](_0x1e0bx29,_0x1e0bx2b+ _0x1e0bxf);_0x1e0bx2[_0x143d[7]](_0x1e0bx29,_0x1e0bx2c);_0x1e0bx2[_0x143d[8]](_0x1e0bx2a,_0x1e0bx2c);_0x1e0bx2[_0x143d[8]](_0x1e0bx2a,_0x1e0bx2c+ _0x1e0bxf);_0x1e0bx2[_0x143d[8]](_0x1e0bx29,_0x1e0bx2c+ _0x1e0bxf);_0x1e0bx2[_0x143d[9]]()}else {_0x1e0bx2[_0x143d[7]](_0x1e0bx29,0);_0x1e0bx2[_0x143d[8]](_0x1e0bx5,0);_0x1e0bx2[_0x143d[8]](_0x1e0bx5,_0x1e0bx6);_0x1e0bx2[_0x143d[8]](_0x1e0bx29,_0x1e0bx6);_0x1e0bx2[_0x143d[8]](_0x1e0bx29,_0x1e0bx2c+ _0x1e0bxf);_0x1e0bx2[_0x143d[8]](0,_0x1e0bx2c+ _0x1e0bxf);_0x1e0bx2[_0x143d[8]](0,_0x1e0bx2c);_0x1e0bx2[_0x143d[8]](_0x1e0bx29,_0x1e0bx2c);_0x1e0bx2[_0x143d[8]](_0x1e0bx29,_0x1e0bx2b+ _0x1e0bxf);_0x1e0bx2[_0x143d[8]](0,_0x1e0bx2b+ _0x1e0bxf);_0x1e0bx2[_0x143d[8]](0,_0x1e0bx2b);_0x1e0bx2[_0x143d[8]](_0x1e0bx29,_0x1e0bx2b);_0x1e0bx2[_0x143d[10]]();_0x1e0bx2[_0x143d[9]]()}};mxCellRenderer[_0x143d[0]][_0x143d[12]][_0x143d[60]]= _0x1e0bx28;function _0x1e0bx2d(){}_0x1e0bx2d[_0x143d[0]]= new mxDoubleEllipse();_0x1e0bx2d[_0x143d[0]][_0x143d[1]]= _0x1e0bx2d;_0x1e0bx2d[_0x143d[0]][_0x143d[61]]= true;_0x1e0bx2d[_0x143d[0]][_0x143d[50]]= function(_0x1e0bx15,_0x1e0bx3,_0x1e0bx4,_0x1e0bx5,_0x1e0bx6){var _0x1e0bx18=Math[_0x143d[6]](4,Math[_0x143d[6]](_0x1e0bx5/ 5,_0x1e0bx6/ 5));if(_0x1e0bx5> 0&& _0x1e0bx6> 0){_0x1e0bx15[_0x143d[62]](_0x1e0bx3+ _0x1e0bx18,_0x1e0bx4+ _0x1e0bx18,_0x1e0bx5- 2* _0x1e0bx18,_0x1e0bx6- 2* _0x1e0bx18);_0x1e0bx15[_0x143d[63]]()};_0x1e0bx15[_0x143d[64]](false);if(this[_0x143d[61]]){_0x1e0bx15[_0x143d[62]](_0x1e0bx3,_0x1e0bx4,_0x1e0bx5,_0x1e0bx6);_0x1e0bx15[_0x143d[29]]()}};mxCellRenderer[_0x143d[0]][_0x143d[12]][_0x143d[65]]= _0x1e0bx2d;function _0x1e0bx2e(){}_0x1e0bx2e[_0x143d[0]]= new _0x1e0bx2d();_0x1e0bx2e[_0x143d[0]][_0x143d[1]]= _0x1e0bx2e;_0x1e0bx2e[_0x143d[0]][_0x143d[61]]= false;mxCellRenderer[_0x143d[0]][_0x143d[12]][_0x143d[66]]= _0x1e0bx2e;var _0x1e0bx2f=mxImageExport[_0x143d[0]][_0x143d[67]];mxImageExport[_0x143d[0]][_0x143d[67]]= function(){_0x1e0bx2f[_0x143d[30]](this,arguments);function _0x1e0bx30(_0x1e0bx31){return {drawShape:function(_0x1e0bx32,_0x1e0bx33,_0x1e0bx34,_0x1e0bx35){var _0x1e0bx3=_0x1e0bx34[_0x143d[68]];var _0x1e0bx4=_0x1e0bx34[_0x143d[69]];var _0x1e0bx5=_0x1e0bx34[_0x143d[70]];var _0x1e0bx6=_0x1e0bx34[_0x143d[71]];if(_0x1e0bx35){var _0x1e0bx18=Math[_0x143d[6]](4,Math[_0x143d[6]](_0x1e0bx5/ 5,_0x1e0bx6/ 5));_0x1e0bx3+= _0x1e0bx18;_0x1e0bx4+= _0x1e0bx18;_0x1e0bx5-= 2* _0x1e0bx18;_0x1e0bx6-= 2* _0x1e0bx18;if(_0x1e0bx5> 0&& _0x1e0bx6> 0){_0x1e0bx32[_0x143d[62]](_0x1e0bx3,_0x1e0bx4,_0x1e0bx5,_0x1e0bx6)};return true}else {_0x1e0bx32[_0x143d[63]]();if(_0x1e0bx31){_0x1e0bx32[_0x143d[62]](_0x1e0bx3,_0x1e0bx4,_0x1e0bx5,_0x1e0bx6);_0x1e0bx32[_0x143d[29]]()}}}}}this[_0x143d[72]][_0x143d[65]]= _0x1e0bx30(true);this[_0x143d[72]][_0x143d[66]]= _0x1e0bx30(false)};function _0x1e0bx36(){mxArrow[_0x143d[24]](this)}mxUtils[_0x143d[25]](_0x1e0bx36,mxArrow);_0x1e0bx36[_0x143d[0]][_0x143d[73]]= function(_0x1e0bx15,_0x1e0bx37){var _0x1e0bx1d=10;var _0x1e0bx38=_0x1e0bx37[0];var _0x1e0bx39=_0x1e0bx37[_0x1e0bx37[_0x143d[74]]- 1];var _0x1e0bxe=_0x1e0bx39[_0x143d[68]]- _0x1e0bx38[_0x143d[68]];var _0x1e0bxf=_0x1e0bx39[_0x143d[69]]- _0x1e0bx38[_0x143d[69]];var _0x1e0bx3a=Math[_0x143d[75]](_0x1e0bxe* _0x1e0bxe+ _0x1e0bxf* _0x1e0bxf);var _0x1e0bx3b=_0x1e0bx3a;var _0x1e0bx3c=_0x1e0bxe/ _0x1e0bx3a;var _0x1e0bx3d=_0x1e0bxf/ _0x1e0bx3a;var _0x1e0bx3e=_0x1e0bx3b* _0x1e0bx3c;var _0x1e0bx3f=_0x1e0bx3b* _0x1e0bx3d;var _0x1e0bx40=_0x1e0bx1d* _0x1e0bx3d/ 3;var _0x1e0bx41=-_0x1e0bx1d* _0x1e0bx3c / 3;var _0x1e0bx42=_0x1e0bx38[_0x143d[68]]- _0x1e0bx40/ 2;var _0x1e0bx43=_0x1e0bx38[_0x143d[69]]- _0x1e0bx41/ 2;var _0x1e0bx44=_0x1e0bx42+ _0x1e0bx40;var _0x1e0bx45=_0x1e0bx43+ _0x1e0bx41;var _0x1e0bx46=_0x1e0bx44+ _0x1e0bx3e;var _0x1e0bx47=_0x1e0bx45+ _0x1e0bx3f;var _0x1e0bx48=_0x1e0bx46+ _0x1e0bx40;var _0x1e0bx49=_0x1e0bx47+ _0x1e0bx41;var _0x1e0bx4a=_0x1e0bx48- 3* _0x1e0bx40;var _0x1e0bx4b=_0x1e0bx49- 3* _0x1e0bx41;_0x1e0bx15[_0x143d[28]]();_0x1e0bx15[_0x143d[7]](_0x1e0bx44,_0x1e0bx45);_0x1e0bx15[_0x143d[8]](_0x1e0bx46,_0x1e0bx47);_0x1e0bx15[_0x143d[7]](_0x1e0bx4a+ _0x1e0bx40,_0x1e0bx4b+ _0x1e0bx41);_0x1e0bx15[_0x143d[8]](_0x1e0bx42,_0x1e0bx43);_0x1e0bx15[_0x143d[29]]()};mxCellRenderer[_0x143d[0]][_0x143d[12]][_0x143d[76]]= _0x1e0bx36;mxMarker[_0x143d[78]](_0x143d[77],function(_0x1e0bx32,_0x1e0bx1a,_0x1e0bx4c,_0x1e0bx39,_0x1e0bx4d,_0x1e0bx4e,_0x1e0bx4f,_0x1e0bx50,_0x1e0bx51,_0x1e0bx52){var _0x1e0bx3c=_0x1e0bx4d* (_0x1e0bx4f+ _0x1e0bx51+ 1);var _0x1e0bx3d=_0x1e0bx4e* (_0x1e0bx4f+ _0x1e0bx51+ 1);return function(){_0x1e0bx32[_0x143d[28]]();_0x1e0bx32[_0x143d[7]](_0x1e0bx39[_0x143d[68]]- _0x1e0bx3c/ 2- _0x1e0bx3d/ 2,_0x1e0bx39[_0x143d[69]]- _0x1e0bx3d/ 2+ _0x1e0bx3c/ 2);_0x1e0bx32[_0x143d[8]](_0x1e0bx39[_0x143d[68]]+ _0x1e0bx3d/ 2- 3* _0x1e0bx3c/ 2,_0x1e0bx39[_0x143d[69]]- 3* _0x1e0bx3d/ 2- _0x1e0bx3c/ 2);_0x1e0bx32[_0x143d[29]]()}});var _0x1e0bx53=-99;if( typeof (mxVertexHandler)!= _0x143d[79]){function _0x1e0bx54(_0x1e0bx33){mxVertexHandler[_0x143d[24]](this,_0x1e0bx33)}mxUtils[_0x143d[25]](_0x1e0bx54,mxVertexHandler);_0x1e0bx54[_0x143d[0]][_0x143d[80]]= false;_0x1e0bx54[_0x143d[0]][_0x143d[81]]= function(){this[_0x143d[82]]= mxUtils[_0x143d[5]](this[_0x143d[83]][_0x143d[4]],mxConstants.STYLE_HORIZONTAL,true);var _0x1e0bx55=this[_0x143d[83]][_0x143d[85]][_0x143d[84]];if(this[_0x143d[86]]!= null){var _0x1e0bx34= new mxRectangle(0,0,this[_0x143d[86]][_0x143d[70]],this[_0x143d[86]][_0x143d[71]]);this[_0x143d[87]]= new mxImageShape(_0x1e0bx34,this[_0x143d[86]][_0x143d[88]])}else {var _0x1e0bx4f=10;var _0x1e0bx34= new mxRectangle(0,0,_0x1e0bx4f,_0x1e0bx4f);this[_0x143d[87]]= new mxRhombus(_0x1e0bx34,mxConstants.HANDLE_FILLCOLOR,mxConstants.HANDLE_STROKECOLOR)};this[_0x143d[87]][_0x143d[89]]= (_0x1e0bx55[_0x143d[89]]!= mxConstants[_0x143d[90]])?mxConstants[_0x143d[91]]:mxConstants[_0x143d[90]];this[_0x143d[87]][_0x143d[81]](_0x1e0bx55[_0x143d[93]]()[_0x143d[92]]());this[_0x143d[87]][_0x143d[95]][_0x143d[4]][_0x143d[94]]= this[_0x143d[96]]();mxEvent[_0x143d[97]](this[_0x143d[87]][_0x143d[95]],_0x1e0bx55,this[_0x143d[83]]);mxVertexHandler[_0x143d[0]][_0x143d[81]][_0x143d[30]](this,arguments)};_0x1e0bx54[_0x143d[0]][_0x143d[96]]= function(){return _0x143d[98]};_0x1e0bx54[_0x143d[0]][_0x143d[99]]= function(){mxVertexHandler[_0x143d[0]][_0x143d[99]][_0x143d[30]](this,arguments);var _0x1e0bx4f=this[_0x143d[87]][_0x143d[100]][_0x143d[70]];this[_0x143d[87]][_0x143d[100]]= this[_0x143d[101]](_0x1e0bx4f);this[_0x143d[87]][_0x143d[99]]()};_0x1e0bx54[_0x143d[0]][_0x143d[102]]= function(){mxVertexHandler[_0x143d[0]][_0x143d[102]][_0x143d[30]](this,arguments);if(this[_0x143d[87]]!= null){this[_0x143d[87]][_0x143d[102]]();this[_0x143d[87]]= null}};_0x1e0bx54[_0x143d[0]][_0x143d[103]]= function(_0x1e0bx56){if(_0x1e0bx56[_0x143d[104]](this[_0x143d[87]])){return _0x1e0bx53};return mxVertexHandler[_0x143d[0]][_0x143d[103]][_0x143d[30]](this,arguments)};_0x1e0bx54[_0x143d[0]][_0x143d[105]]= function(_0x1e0bx57,_0x1e0bx56){if(!_0x1e0bx56[_0x143d[106]]()&& this[_0x143d[107]]== _0x1e0bx53){var _0x1e0bx58= new mxPoint(_0x1e0bx56[_0x143d[108]](),_0x1e0bx56[_0x143d[109]]());this[_0x143d[110]](_0x1e0bx58);var _0x1e0bx59=this[_0x143d[84]][_0x143d[112]](_0x1e0bx56[_0x143d[111]]());var _0x1e0bx5a=this[_0x143d[84]][_0x143d[93]]()[_0x143d[113]];if(_0x1e0bx59&& this[_0x143d[80]]){_0x1e0bx58[_0x143d[68]]= this[_0x143d[84]][_0x143d[114]](_0x1e0bx58[_0x143d[68]]/ _0x1e0bx5a)* _0x1e0bx5a;_0x1e0bx58[_0x143d[69]]= this[_0x143d[84]][_0x143d[114]](_0x1e0bx58[_0x143d[69]]/ _0x1e0bx5a)* _0x1e0bx5a};this[_0x143d[115]](_0x1e0bx58);this[_0x143d[116]](this[_0x143d[87]],_0x1e0bx58[_0x143d[68]],_0x1e0bx58[_0x143d[69]]);this[_0x143d[83]][_0x143d[85]][_0x143d[84]][_0x143d[117]][_0x143d[99]](this[_0x143d[83]],true);_0x1e0bx56[_0x143d[118]]()}else {mxVertexHandler[_0x143d[0]][_0x143d[105]][_0x143d[30]](this,arguments)}};_0x1e0bx54[_0x143d[0]][_0x143d[119]]= function(_0x1e0bx57,_0x1e0bx56){if(!_0x1e0bx56[_0x143d[106]]()&& this[_0x143d[107]]== _0x1e0bx53){this[_0x143d[120]]();this[_0x143d[121]]();_0x1e0bx56[_0x143d[118]]()}else {mxVertexHandler[_0x143d[0]][_0x143d[119]][_0x143d[30]](this,arguments)}};_0x1e0bx54[_0x143d[0]][_0x143d[101]]= function(_0x1e0bx4f){var _0x1e0bx5b=this[_0x143d[83]][_0x143d[123]][_0x143d[122]]();var _0x1e0bx5c=mxUtils[_0x143d[124]](_0x1e0bx5b);var _0x1e0bx5d=Math[_0x143d[125]](_0x1e0bx5c);var _0x1e0bx5e=Math[_0x143d[126]](_0x1e0bx5c);var _0x1e0bx34= new mxRectangle(this[_0x143d[83]][_0x143d[68]],this[_0x143d[83]][_0x143d[69]],this[_0x143d[83]][_0x143d[70]],this[_0x143d[83]][_0x143d[71]]);if(this[_0x143d[83]][_0x143d[123]][_0x143d[127]]()){var _0x1e0bx5f=(_0x1e0bx34[_0x143d[70]]- _0x1e0bx34[_0x143d[71]])/ 2;_0x1e0bx34[_0x143d[68]]+= _0x1e0bx5f;_0x1e0bx34[_0x143d[69]]-= _0x1e0bx5f;var _0x1e0bx23=_0x1e0bx34[_0x143d[70]];_0x1e0bx34[_0x143d[70]]= _0x1e0bx34[_0x143d[71]];_0x1e0bx34[_0x143d[71]]= _0x1e0bx23};var _0x1e0bx60=this[_0x143d[128]](_0x1e0bx34);if(this[_0x143d[83]][_0x143d[123]][_0x143d[129]]){_0x1e0bx60[_0x143d[68]]= 2* _0x1e0bx34[_0x143d[68]]+ _0x1e0bx34[_0x143d[70]]- _0x1e0bx60[_0x143d[68]]};if(this[_0x143d[83]][_0x143d[123]][_0x143d[130]]){_0x1e0bx60[_0x143d[69]]= 2* _0x1e0bx34[_0x143d[69]]+ _0x1e0bx34[_0x143d[71]]- _0x1e0bx60[_0x143d[69]]};_0x1e0bx60= mxUtils[_0x143d[133]](_0x1e0bx60,_0x1e0bx5d,_0x1e0bx5e, new mxPoint(this[_0x143d[83]][_0x143d[131]](),this[_0x143d[83]][_0x143d[132]]()));return new mxRectangle(_0x1e0bx60[_0x143d[68]]- _0x1e0bx4f/ 2,_0x1e0bx60[_0x143d[69]]- _0x1e0bx4f/ 2,_0x1e0bx4f,_0x1e0bx4f)};_0x1e0bx54[_0x143d[0]][_0x143d[128]]= function(_0x1e0bx34){return null};_0x1e0bx54[_0x143d[0]][_0x143d[115]]= function(_0x1e0bx58){};_0x1e0bx54[_0x143d[0]][_0x143d[110]]= function(_0x1e0bx58){_0x1e0bx58[_0x143d[68]]= Math[_0x143d[34]](this[_0x143d[83]][_0x143d[68]],Math[_0x143d[6]](this[_0x143d[83]][_0x143d[68]]+ this[_0x143d[83]][_0x143d[70]],_0x1e0bx58[_0x143d[68]]));_0x1e0bx58[_0x143d[69]]= Math[_0x143d[34]](this[_0x143d[83]][_0x143d[69]],Math[_0x143d[6]](this[_0x143d[83]][_0x143d[69]]+ this[_0x143d[83]][_0x143d[71]],_0x1e0bx58[_0x143d[69]]))};_0x1e0bx54[_0x143d[0]][_0x143d[120]]= function(){};function _0x1e0bx61(_0x1e0bx33){_0x1e0bx54[_0x143d[24]](this,_0x1e0bx33)}mxUtils[_0x143d[25]](_0x1e0bx61,_0x1e0bx54);_0x1e0bx61[_0x143d[0]][_0x143d[128]]= function(_0x1e0bx34){var _0x1e0bx5a=this[_0x143d[84]][_0x143d[93]]()[_0x143d[113]];var _0x1e0bxb=Math[_0x143d[6]](_0x1e0bx34[_0x143d[70]],mxUtils[_0x143d[5]](this[_0x143d[83]][_0x143d[4]],_0x143d[14],60)* _0x1e0bx5a);var _0x1e0bxc=Math[_0x143d[6]](_0x1e0bx34[_0x143d[71]],mxUtils[_0x143d[5]](this[_0x143d[83]][_0x143d[4]],_0x143d[15],20)* _0x1e0bx5a);var _0x1e0bxd=mxUtils[_0x143d[5]](this[_0x143d[83]][_0x143d[4]],_0x143d[16],_0x143d[17]);var _0x1e0bx3=(_0x1e0bxd== _0x143d[18])?_0x1e0bx34[_0x143d[68]]+ _0x1e0bxb:_0x1e0bx34[_0x143d[68]]+ _0x1e0bx34[_0x143d[70]]- _0x1e0bxb;return new mxPoint(_0x1e0bx3,_0x1e0bx34[_0x143d[69]]+ _0x1e0bxc)};_0x1e0bx61[_0x143d[0]][_0x143d[115]]= function(_0x1e0bx58){var _0x1e0bx5b=this[_0x143d[83]][_0x143d[123]][_0x143d[122]]();var _0x1e0bx5c=mxUtils[_0x143d[124]](_0x1e0bx5b);var _0x1e0bx5d=Math[_0x143d[125]](-_0x1e0bx5c);var _0x1e0bx5e=Math[_0x143d[126]](-_0x1e0bx5c);var _0x1e0bx34= new mxRectangle(this[_0x143d[83]][_0x143d[68]],this[_0x143d[83]][_0x143d[69]],this[_0x143d[83]][_0x143d[70]],this[_0x143d[83]][_0x143d[71]]);if(this[_0x143d[83]][_0x143d[123]][_0x143d[127]]()){var _0x1e0bx5f=(_0x1e0bx34[_0x143d[70]]- _0x1e0bx34[_0x143d[71]])/ 2;_0x1e0bx34[_0x143d[68]]+= _0x1e0bx5f;_0x1e0bx34[_0x143d[69]]-= _0x1e0bx5f;var _0x1e0bx23=_0x1e0bx34[_0x143d[70]];_0x1e0bx34[_0x143d[70]]= _0x1e0bx34[_0x143d[71]];_0x1e0bx34[_0x143d[71]]= _0x1e0bx23};var _0x1e0bx60= new mxPoint(_0x1e0bx58[_0x143d[68]],_0x1e0bx58[_0x143d[69]]);_0x1e0bx60= mxUtils[_0x143d[133]](_0x1e0bx60,_0x1e0bx5d,_0x1e0bx5e, new mxPoint(this[_0x143d[83]][_0x143d[131]](),this[_0x143d[83]][_0x143d[132]]()));if(this[_0x143d[83]][_0x143d[123]][_0x143d[129]]){_0x1e0bx60[_0x143d[68]]= 2* _0x1e0bx34[_0x143d[68]]+ _0x1e0bx34[_0x143d[70]]- _0x1e0bx60[_0x143d[68]]};if(this[_0x143d[83]][_0x143d[123]][_0x143d[130]]){_0x1e0bx60[_0x143d[69]]= 2* _0x1e0bx34[_0x143d[69]]+ _0x1e0bx34[_0x143d[71]]- _0x1e0bx60[_0x143d[69]]};var _0x1e0bx62=this[_0x143d[134]](_0x1e0bx60,_0x1e0bx34);if(_0x1e0bx62!= null){if(this[_0x143d[83]][_0x143d[123]][_0x143d[129]]){_0x1e0bx62[_0x143d[68]]= 2* _0x1e0bx34[_0x143d[68]]+ _0x1e0bx34[_0x143d[70]]- _0x1e0bx62[_0x143d[68]]};if(this[_0x143d[83]][_0x143d[123]][_0x143d[130]]){_0x1e0bx62[_0x143d[69]]= 2* _0x1e0bx34[_0x143d[69]]+ _0x1e0bx34[_0x143d[71]]- _0x1e0bx62[_0x143d[69]]};_0x1e0bx5d= Math[_0x143d[125]](_0x1e0bx5c);_0x1e0bx5e= Math[_0x143d[126]](_0x1e0bx5c);_0x1e0bx62= mxUtils[_0x143d[133]](_0x1e0bx62,_0x1e0bx5d,_0x1e0bx5e, new mxPoint(this[_0x143d[83]][_0x143d[131]](),this[_0x143d[83]][_0x143d[132]]()));_0x1e0bx58[_0x143d[68]]= _0x1e0bx62[_0x143d[68]];_0x1e0bx58[_0x143d[69]]= _0x1e0bx62[_0x143d[69]]}};_0x1e0bx61[_0x143d[0]][_0x143d[134]]= function(_0x1e0bx60,_0x1e0bx34){var _0x1e0bxd=mxUtils[_0x143d[5]](this[_0x143d[83]][_0x143d[4]],_0x143d[16],_0x143d[17]);var _0x1e0bxb=(_0x1e0bxd== _0x143d[18])?_0x1e0bx60[_0x143d[68]]- _0x1e0bx34[_0x143d[68]]:_0x1e0bx34[_0x143d[68]]+ _0x1e0bx34[_0x143d[70]]- _0x1e0bx60[_0x143d[68]];var _0x1e0bxc=_0x1e0bx60[_0x143d[69]]- _0x1e0bx34[_0x143d[69]];var _0x1e0bx5a=this[_0x143d[84]][_0x143d[93]]()[_0x143d[113]];this[_0x143d[83]][_0x143d[4]][_0x143d[14]]= Math[_0x143d[135]](Math[_0x143d[34]](1,_0x1e0bxb)/ _0x1e0bx5a);this[_0x143d[83]][_0x143d[4]][_0x143d[15]]= Math[_0x143d[135]](Math[_0x143d[34]](1,_0x1e0bxc)/ _0x1e0bx5a)};_0x1e0bx61[_0x143d[0]][_0x143d[120]]= function(){var _0x1e0bx63=this[_0x143d[84]][_0x143d[136]]();_0x1e0bx63[_0x143d[137]]();try{this[_0x143d[83]][_0x143d[85]][_0x143d[84]][_0x143d[139]](_0x143d[14],this[_0x143d[83]][_0x143d[4]][_0x143d[14]],[this[_0x143d[83]][_0x143d[138]]]);this[_0x143d[83]][_0x143d[85]][_0x143d[84]][_0x143d[139]](_0x143d[15],this[_0x143d[83]][_0x143d[4]][_0x143d[15]],[this[_0x143d[83]][_0x143d[138]]])}finally{_0x1e0bx63[_0x143d[140]]()}};function _0x1e0bx64(_0x1e0bx33){_0x1e0bx61[_0x143d[24]](this,_0x1e0bx33)}mxUtils[_0x143d[25]](_0x1e0bx64,_0x1e0bx61);_0x1e0bx64[_0x143d[0]][_0x143d[128]]= function(_0x1e0bx34){var _0x1e0bx5a=this[_0x143d[84]][_0x143d[93]]()[_0x143d[113]];var _0x1e0bx65=mxUtils[_0x143d[5]](this[_0x143d[83]][_0x143d[4]],mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE);return new mxPoint(_0x1e0bx34[_0x143d[68]]+ _0x1e0bx34[_0x143d[70]]/ 2,_0x1e0bx34[_0x143d[69]]+ Math[_0x143d[6]](_0x1e0bx34[_0x143d[71]],_0x1e0bx65* _0x1e0bx5a))};_0x1e0bx64[_0x143d[0]][_0x143d[134]]= function(_0x1e0bx58,_0x1e0bx34){_0x1e0bx58[_0x143d[68]]= _0x1e0bx34[_0x143d[68]]+ _0x1e0bx34[_0x143d[70]]/ 2;startSize= _0x1e0bx58[_0x143d[69]]- _0x1e0bx34[_0x143d[69]];var _0x1e0bx5a=this[_0x143d[84]][_0x143d[93]]()[_0x143d[113]];this[_0x143d[83]][_0x143d[4]][_0x143d[141]]= Math[_0x143d[135]](Math[_0x143d[34]](1,startSize)/ _0x1e0bx5a);return _0x1e0bx58};_0x1e0bx64[_0x143d[0]][_0x143d[120]]= function(){this[_0x143d[83]][_0x143d[85]][_0x143d[84]][_0x143d[139]](_0x143d[141],this[_0x143d[83]][_0x143d[4]][_0x143d[141]],[this[_0x143d[83]][_0x143d[138]]])};function _0x1e0bx66(_0x1e0bx33){_0x1e0bx61[_0x143d[24]](this,_0x1e0bx33)}mxUtils[_0x143d[25]](_0x1e0bx66,_0x1e0bx61);_0x1e0bx66[_0x143d[0]][_0x143d[142]]= 20;_0x1e0bx66[_0x143d[0]][_0x143d[143]]= 1;_0x1e0bx66[_0x143d[0]][_0x143d[128]]= function(_0x1e0bx34){var _0x1e0bx5a=this[_0x143d[84]][_0x143d[93]]()[_0x143d[113]];var _0x1e0bx67=Math[_0x143d[6]](_0x1e0bx34[_0x143d[70]],Math[_0x143d[6]](_0x1e0bx34[_0x143d[71]],mxUtils[_0x143d[5]](this[_0x143d[83]][_0x143d[4]],_0x143d[2],this[_0x143d[142]])* _0x1e0bx5a/ this[_0x143d[143]]));return new mxPoint(_0x1e0bx34[_0x143d[68]]+ _0x1e0bx67,_0x1e0bx34[_0x143d[69]]+ _0x1e0bx67)};_0x1e0bx66[_0x143d[0]][_0x143d[134]]= function(_0x1e0bx60,_0x1e0bx34){var _0x1e0bx4f=Math[_0x143d[34]](0,Math[_0x143d[6]](Math[_0x143d[6]](_0x1e0bx34[_0x143d[70]]/ this[_0x143d[143]],_0x1e0bx60[_0x143d[68]]- _0x1e0bx34[_0x143d[68]]),Math[_0x143d[6]](_0x1e0bx34[_0x143d[71]]/ this[_0x143d[143]],_0x1e0bx60[_0x143d[69]]- _0x1e0bx34[_0x143d[69]])));var _0x1e0bx5a=this[_0x143d[84]][_0x143d[93]]()[_0x143d[113]];this[_0x143d[83]][_0x143d[4]][_0x143d[2]]= Math[_0x143d[135]](Math[_0x143d[34]](1,_0x1e0bx4f)/ _0x1e0bx5a)* this[_0x143d[143]];return new mxPoint(_0x1e0bx34[_0x143d[68]]+ _0x1e0bx4f,_0x1e0bx34[_0x143d[69]]+ _0x1e0bx4f)};_0x1e0bx66[_0x143d[0]][_0x143d[120]]= function(){this[_0x143d[83]][_0x143d[85]][_0x143d[84]][_0x143d[139]](_0x143d[2],this[_0x143d[83]][_0x143d[4]][_0x143d[2]],[this[_0x143d[83]][_0x143d[138]]])};function _0x1e0bx68(_0x1e0bx33){_0x1e0bx66[_0x143d[24]](this,_0x1e0bx33)}mxUtils[_0x143d[25]](_0x1e0bx68,_0x1e0bx66);_0x1e0bx68[_0x143d[0]][_0x143d[142]]= 30;_0x1e0bx68[_0x143d[0]][_0x143d[143]]= 2;function _0x1e0bx69(_0x1e0bx33){_0x1e0bx66[_0x143d[24]](this,_0x1e0bx33)}mxUtils[_0x143d[25]](_0x1e0bx69,_0x1e0bx66);_0x1e0bx69[_0x143d[0]][_0x143d[142]]= 30;_0x1e0bx69[_0x143d[0]][_0x143d[143]]= 1;_0x1e0bx69[_0x143d[0]][_0x143d[128]]= function(_0x1e0bx34){var _0x1e0bx5a=this[_0x143d[84]][_0x143d[93]]()[_0x143d[113]];var _0x1e0bx67=Math[_0x143d[6]](_0x1e0bx34[_0x143d[70]],Math[_0x143d[6]](_0x1e0bx34[_0x143d[71]],mxUtils[_0x143d[5]](this[_0x143d[83]][_0x143d[4]],_0x143d[2],this[_0x143d[142]])* _0x1e0bx5a/ this[_0x143d[143]]));return new mxPoint(_0x1e0bx34[_0x143d[68]]+ _0x1e0bx34[_0x143d[70]]- _0x1e0bx67,_0x1e0bx34[_0x143d[69]]+ _0x1e0bx67)};_0x1e0bx69[_0x143d[0]][_0x143d[134]]= function(_0x1e0bx60,_0x1e0bx34){var _0x1e0bx4f=Math[_0x143d[34]](0,Math[_0x143d[6]](Math[_0x143d[6]](_0x1e0bx34[_0x143d[70]]/ this[_0x143d[143]],_0x1e0bx60[_0x143d[68]]- _0x1e0bx34[_0x143d[68]]+ _0x1e0bx34[_0x143d[70]]),Math[_0x143d[6]](_0x1e0bx34[_0x143d[71]]/ this[_0x143d[143]],_0x1e0bx60[_0x143d[69]]- _0x1e0bx34[_0x143d[69]])));var _0x1e0bx5a=this[_0x143d[84]][_0x143d[93]]()[_0x143d[113]];this[_0x143d[83]][_0x143d[4]][_0x143d[2]]= Math[_0x143d[135]](Math[_0x143d[34]](1,_0x1e0bx4f)/ _0x1e0bx5a)* this[_0x143d[143]];return new mxPoint(_0x1e0bx34[_0x143d[68]]+ _0x1e0bx34[_0x143d[70]]- _0x1e0bx4f,_0x1e0bx34[_0x143d[69]]+ _0x1e0bx4f)};function _0x1e0bx6a(_0x1e0bx33){_0x1e0bx66[_0x143d[24]](this,_0x1e0bx33)}mxUtils[_0x143d[25]](_0x1e0bx6a,_0x1e0bx66);_0x1e0bx6a[_0x143d[0]][_0x143d[142]]= 0.2;_0x1e0bx6a[_0x143d[0]][_0x143d[143]]= 1;_0x1e0bx6a[_0x143d[0]][_0x143d[128]]= function(_0x1e0bx34){var _0x1e0bx67=mxUtils[_0x143d[5]](this[_0x143d[83]][_0x143d[4]],_0x143d[2],this[_0x143d[142]]);return new mxPoint(_0x1e0bx34[_0x143d[68]]+ _0x1e0bx34[_0x143d[70]]* _0x1e0bx67,_0x1e0bx34[_0x143d[69]]+ _0x1e0bx34[_0x143d[71]]/ 2)};_0x1e0bx6a[_0x143d[0]][_0x143d[134]]= function(_0x1e0bx60,_0x1e0bx34){var _0x1e0bx4f=Math[_0x143d[6]](1,(_0x1e0bx60[_0x143d[68]]- _0x1e0bx34[_0x143d[68]])/ _0x1e0bx34[_0x143d[70]]);this[_0x143d[83]][_0x143d[4]][_0x143d[2]]= _0x1e0bx4f;return new mxPoint(_0x1e0bx34[_0x143d[68]]+ _0x1e0bx4f* _0x1e0bx34[_0x143d[70]],_0x1e0bx34[_0x143d[69]]+ _0x1e0bx34[_0x143d[71]]/ 2)};function _0x1e0bx6b(_0x1e0bx33){_0x1e0bx66[_0x143d[24]](this,_0x1e0bx33)}mxUtils[_0x143d[25]](_0x1e0bx6b,_0x1e0bx66);_0x1e0bx6b[_0x143d[0]][_0x143d[142]]= 0.4;_0x1e0bx6b[_0x143d[0]][_0x143d[143]]= 1;_0x1e0bx6b[_0x143d[0]][_0x143d[128]]= function(_0x1e0bx34){var _0x1e0bx67=mxUtils[_0x143d[5]](this[_0x143d[83]][_0x143d[4]],_0x143d[2],this[_0x143d[142]]);return new mxPoint(_0x1e0bx34[_0x143d[68]]+ _0x1e0bx34[_0x143d[70]]/ 2,_0x1e0bx34[_0x143d[69]]+ _0x1e0bx67* _0x1e0bx34[_0x143d[71]]/ 2)};_0x1e0bx6b[_0x143d[0]][_0x143d[134]]= function(_0x1e0bx60,_0x1e0bx34){var _0x1e0bx4f=Math[_0x143d[34]](0,Math[_0x143d[6]](1,((_0x1e0bx60[_0x143d[69]]- _0x1e0bx34[_0x143d[69]])/ _0x1e0bx34[_0x143d[71]])* 2));this[_0x143d[83]][_0x143d[4]][_0x143d[2]]= _0x1e0bx4f;return new mxPoint(_0x1e0bx34[_0x143d[68]]+ _0x1e0bx34[_0x143d[70]]/ 2,_0x1e0bx34[_0x143d[69]]+ _0x1e0bx4f* _0x1e0bx34[_0x143d[71]]/ 2)};var _0x1e0bx6c={"\x73\x77\x69\x6D\x6C\x61\x6E\x65":_0x1e0bx64,"\x66\x6F\x6C\x64\x65\x72":_0x1e0bx61,"\x63\x75\x62\x65":_0x1e0bx66,"\x63\x61\x72\x64":_0x1e0bx68,"\x6E\x6F\x74\x65":_0x1e0bx69,"\x73\x74\x65\x70":_0x1e0bx6a,"\x74\x61\x70\x65":_0x1e0bx6b};var _0x1e0bx6d=mxGraph[_0x143d[0]][_0x143d[144]];mxGraph[_0x143d[0]][_0x143d[144]]= function(_0x1e0bx33){if(_0x1e0bx33!= null){var _0x1e0bx6e=_0x1e0bx6c[_0x1e0bx33[_0x143d[4]][_0x143d[123]]];if(_0x1e0bx6e!= null){return new _0x1e0bx6e(_0x1e0bx33)}};return _0x1e0bx6d[_0x143d[30]](this,arguments)}};mxGraph[_0x143d[0]][_0x143d[145]]= function(_0x1e0bx6f,_0x1e0bx50){if(_0x1e0bx6f!= null&& _0x1e0bx6f[_0x143d[123]]!= null){if(_0x1e0bx6f[_0x143d[123]][_0x143d[146]]!= null){if(_0x1e0bx6f[_0x143d[123]][_0x143d[146]]!= null){return _0x1e0bx6f[_0x143d[123]][_0x143d[146]][_0x143d[147]]}}else {if(_0x1e0bx6f[_0x143d[123]][_0x143d[147]]!= null){return _0x1e0bx6f[_0x143d[123]][_0x143d[147]]}}};return null};mxRectangleShape[_0x143d[0]][_0x143d[147]]= [ new mxConnectionConstraint( new mxPoint(0.25,0),true), new mxConnectionConstraint( new mxPoint(0.5,0),true), new mxConnectionConstraint( new mxPoint(0.75,0),true), new mxConnectionConstraint( new mxPoint(0,0.25),true), new mxConnectionConstraint( new mxPoint(0,0.5),true), new mxConnectionConstraint( new mxPoint(0,0.75),true), new mxConnectionConstraint( new mxPoint(1,0.25),true), new mxConnectionConstraint( new mxPoint(1,0.5),true), new mxConnectionConstraint( new mxPoint(1,0.75),true), new mxConnectionConstraint( new mxPoint(0.25,1),true), new mxConnectionConstraint( new mxPoint(0.5,1),true), new mxConnectionConstraint( new mxPoint(0.75,1),true)];mxLabel[_0x143d[0]][_0x143d[147]]= mxRectangleShape[_0x143d[0]][_0x143d[147]];mxImageShape[_0x143d[0]][_0x143d[147]]= mxRectangleShape[_0x143d[0]][_0x143d[147]];mxSwimlane[_0x143d[0]][_0x143d[147]]= mxRectangleShape[_0x143d[0]][_0x143d[147]];_0x1e0bx14[_0x143d[0]][_0x143d[147]]= mxRectangleShape[_0x143d[0]][_0x143d[147]];_0x1e0bx9[_0x143d[0]][_0x143d[147]]= mxRectangleShape[_0x143d[0]][_0x143d[147]];_0x1e0bx10[_0x143d[0]][_0x143d[147]]= mxRectangleShape[_0x143d[0]][_0x143d[147]];_0x1e0bx1[_0x143d[0]][_0x143d[147]]= mxRectangleShape[_0x143d[0]][_0x143d[147]];_0x1e0bxa[_0x143d[0]][_0x143d[147]]= mxRectangleShape[_0x143d[0]][_0x143d[147]];mxCylinder[_0x143d[0]][_0x143d[147]]= [ new mxConnectionConstraint( new mxPoint(0.15,0.05),false), new mxConnectionConstraint( new mxPoint(0.5,0),true), new mxConnectionConstraint( new mxPoint(0.85,0.05),false), new mxConnectionConstraint( new mxPoint(0,0.3),true), new mxConnectionConstraint( new mxPoint(0,0.5),true), new mxConnectionConstraint( new mxPoint(0,0.7),true), new mxConnectionConstraint( new mxPoint(1,0.3),true), new mxConnectionConstraint( new mxPoint(1,0.5),true), new mxConnectionConstraint( new mxPoint(1,0.7),true), new mxConnectionConstraint( new mxPoint(0.15,0.95),false), new mxConnectionConstraint( new mxPoint(0.5,1),true), new mxConnectionConstraint( new mxPoint(0.85,0.95),false)];_0x1e0bx25[_0x143d[0]][_0x143d[147]]= [ new mxConnectionConstraint( new mxPoint(0.25,0.1),false), new mxConnectionConstraint( new mxPoint(0.5,0),false), new mxConnectionConstraint( new mxPoint(0.75,0.1),false), new mxConnectionConstraint( new mxPoint(0,1/ 3),false), new mxConnectionConstraint( new mxPoint(0,1),false), new mxConnectionConstraint( new mxPoint(1,1/ 3),false), new mxConnectionConstraint( new mxPoint(1,1),false), new mxConnectionConstraint( new mxPoint(0.5,0.5),false)];_0x1e0bx28[_0x143d[0]][_0x143d[147]]= [ new mxConnectionConstraint( new mxPoint(0.25,0),true), new mxConnectionConstraint( new mxPoint(0.5,0),true), new mxConnectionConstraint( new mxPoint(0.75,0),true), new mxConnectionConstraint( new mxPoint(0,0.3),true), new mxConnectionConstraint( new mxPoint(0,0.7),true), new mxConnectionConstraint( new mxPoint(1,0.25),true), new mxConnectionConstraint( new mxPoint(1,0.5),true), new mxConnectionConstraint( new mxPoint(1,0.75),true), new mxConnectionConstraint( new mxPoint(0.25,1),true), new mxConnectionConstraint( new mxPoint(0.5,1),true), new mxConnectionConstraint( new mxPoint(0.75,1),true)];mxActor[_0x143d[0]][_0x143d[147]]= [ new mxConnectionConstraint( new mxPoint(0.5,0),true), new mxConnectionConstraint( new mxPoint(0.25,0.2),false), new mxConnectionConstraint( new mxPoint(0.1,0.5),false), new mxConnectionConstraint( new mxPoint(0,0.75),true), new mxConnectionConstraint( new mxPoint(0.75,0.25),false), new mxConnectionConstraint( new mxPoint(0.9,0.5),false), new mxConnectionConstraint( new mxPoint(1,0.75),true), new mxConnectionConstraint( new mxPoint(0.25,1),true), new mxConnectionConstraint( new mxPoint(0.5,1),true), new mxConnectionConstraint( new mxPoint(0.75,1),true)];_0x1e0bx11[_0x143d[0]][_0x143d[147]]= [ new mxConnectionConstraint( new mxPoint(0,0.35),false), new mxConnectionConstraint( new mxPoint(0,0.5),false), new mxConnectionConstraint( new mxPoint(0,0.65),false), new mxConnectionConstraint( new mxPoint(1,0.35),false), new mxConnectionConstraint( new mxPoint(1,0.5),false), new mxConnectionConstraint( new mxPoint(1,0.65),false), new mxConnectionConstraint( new mxPoint(0.25,1),false), new mxConnectionConstraint( new mxPoint(0.75,0),false)];_0x1e0bx13[_0x143d[0]][_0x143d[147]]= [ new mxConnectionConstraint( new mxPoint(0.25,0),true), new mxConnectionConstraint( new mxPoint(0.5,0),true), new mxConnectionConstraint( new mxPoint(0.75,0),true), new mxConnectionConstraint( new mxPoint(0.25,1),true), new mxConnectionConstraint( new mxPoint(0.5,1),true), new mxConnectionConstraint( new mxPoint(0.75,1),true), new mxConnectionConstraint( new mxPoint(0.1,0.25),false), new mxConnectionConstraint( new mxPoint(0.2,0.5),false), new mxConnectionConstraint( new mxPoint(0.1,0.75),false), new mxConnectionConstraint( new mxPoint(0.9,0.25),false), new mxConnectionConstraint( new mxPoint(1,0.5),false), new mxConnectionConstraint( new mxPoint(0.9,0.75),false)];mxLine[_0x143d[0]][_0x143d[147]]= [ new mxConnectionConstraint( new mxPoint(0,0.5),false), new mxConnectionConstraint( new mxPoint(0.25,0.5),false), new mxConnectionConstraint( new mxPoint(0.75,0.5),false), new mxConnectionConstraint( new mxPoint(1,0.5),false)];_0x1e0bx26[_0x143d[0]][_0x143d[147]]= [ new mxConnectionConstraint( new mxPoint(0.5,0),false), new mxConnectionConstraint( new mxPoint(0.5,1),false)];mxEllipse[_0x143d[0]][_0x143d[147]]= [ new mxConnectionConstraint( new mxPoint(0,0),true), new mxConnectionConstraint( new mxPoint(1,0),true), new mxConnectionConstraint( new mxPoint(0,1),true), new mxConnectionConstraint( new mxPoint(1,1),true), new mxConnectionConstraint( new mxPoint(0.5,0),true), new mxConnectionConstraint( new mxPoint(0.5,1),true), new mxConnectionConstraint( new mxPoint(0,0.5),true), new mxConnectionConstraint( new mxPoint(1,0.5))];mxDoubleEllipse[_0x143d[0]][_0x143d[147]]= mxEllipse[_0x143d[0]][_0x143d[147]];mxRhombus[_0x143d[0]][_0x143d[147]]= mxEllipse[_0x143d[0]][_0x143d[147]];mxTriangle[_0x143d[0]][_0x143d[147]]= [ new mxConnectionConstraint( new mxPoint(0,0.25),true), new mxConnectionConstraint( new mxPoint(0,0.5),true), new mxConnectionConstraint( new mxPoint(0,0.75),true), new mxConnectionConstraint( new mxPoint(0.5,0),true), new mxConnectionConstraint( new mxPoint(0.5,1),true), new mxConnectionConstraint( new mxPoint(1,0.5),true)];mxHexagon[_0x143d[0]][_0x143d[147]]= [ new mxConnectionConstraint( new mxPoint(0.375,0),true), new mxConnectionConstraint( new mxPoint(0.5,0),true), new mxConnectionConstraint( new mxPoint(0.625,0),true), new mxConnectionConstraint( new mxPoint(0.125,0.25),false), new mxConnectionConstraint( new mxPoint(0,0.5),true), new mxConnectionConstraint( new mxPoint(0.125,0.75),false), new mxConnectionConstraint( new mxPoint(0.875,0.25),false), new mxConnectionConstraint( new mxPoint(0,0.5),true), new mxConnectionConstraint( new mxPoint(1,0.5),true), new mxConnectionConstraint( new mxPoint(0.875,0.75),false), new mxConnectionConstraint( new mxPoint(0.375,1),true), new mxConnectionConstraint( new mxPoint(0.5,1),true), new mxConnectionConstraint( new mxPoint(0.625,1),true)];mxCloud[_0x143d[0]][_0x143d[147]]= [ new mxConnectionConstraint( new mxPoint(0.25,0.25),false), new mxConnectionConstraint( new mxPoint(0.4,0.1),false), new mxConnectionConstraint( new mxPoint(0.16,0.55),false), new mxConnectionConstraint( new mxPoint(0.07,0.4),false), new mxConnectionConstraint( new mxPoint(0.31,0.8),false), new mxConnectionConstraint( new mxPoint(0.13,0.77),false), new mxConnectionConstraint( new mxPoint(0.8,0.8),false), new mxConnectionConstraint( new mxPoint(0.55,0.95),false), new mxConnectionConstraint( new mxPoint(0.875,0.5),false), new mxConnectionConstraint( new mxPoint(0.96,0.7),false), new mxConnectionConstraint( new mxPoint(0.625,0.2),false), new mxConnectionConstraint( new mxPoint(0.88,0.25),false)];mxArrow[_0x143d[0]][_0x143d[147]]= null})() \ No newline at end of file +var _0x3aad=["\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x63\x6F\x6E\x73\x74\x72\x75\x63\x74\x6F\x72","\x73\x69\x7A\x65","\x72\x65\x64\x72\x61\x77\x50\x61\x74\x68","\x73\x74\x79\x6C\x65","\x67\x65\x74\x56\x61\x6C\x75\x65","\x6D\x69\x6E","\x6D\x6F\x76\x65\x54\x6F","\x6C\x69\x6E\x65\x54\x6F","\x65\x6E\x64","\x63\x6C\x6F\x73\x65","\x63\x75\x62\x65","\x64\x65\x66\x61\x75\x6C\x74\x53\x68\x61\x70\x65\x73","\x6E\x6F\x74\x65","\x74\x61\x62\x57\x69\x64\x74\x68","\x74\x61\x62\x48\x65\x69\x67\x68\x74","\x74\x61\x62\x50\x6F\x73\x69\x74\x69\x6F\x6E","\x72\x69\x67\x68\x74","\x6C\x65\x66\x74","\x66\x6F\x6C\x64\x65\x72","\x63\x61\x72\x64","\x71\x75\x61\x64\x54\x6F","\x74\x61\x70\x65","\x73\x74\x65\x70","\x63\x61\x6C\x6C","\x65\x78\x74\x65\x6E\x64","\x69\x73\x48\x74\x6D\x6C\x41\x6C\x6C\x6F\x77\x65\x64","\x70\x61\x69\x6E\x74\x46\x6F\x72\x65\x67\x72\x6F\x75\x6E\x64","\x62\x65\x67\x69\x6E","\x73\x74\x72\x6F\x6B\x65","\x61\x70\x70\x6C\x79","\x70\x6C\x75\x73","\x64\x6F\x75\x62\x6C\x65","\x73\x74\x72\x6F\x6B\x65\x77\x69\x64\x74\x68","\x6D\x61\x78","\x70\x61\x69\x6E\x74\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64","\x73\x65\x74\x44\x61\x73\x68\x65\x64","\x73\x79\x6D\x62\x6F\x6C","\x41\x6C\x69\x67\x6E","\x56\x65\x72\x74\x69\x63\x61\x6C\x41\x6C\x69\x67\x6E","\x57\x69\x64\x74\x68","\x48\x65\x69\x67\x68\x74","\x53\x70\x61\x63\x69\x6E\x67","\x41\x72\x63\x53\x70\x61\x63\x69\x6E\x67","\x67\x65\x74\x41\x72\x63\x53\x69\x7A\x65","\x41\x4C\x49\x47\x4E\x5F\x43\x45\x4E\x54\x45\x52","\x41\x4C\x49\x47\x4E\x5F\x52\x49\x47\x48\x54","\x41\x4C\x49\x47\x4E\x5F\x4D\x49\x44\x44\x4C\x45","\x41\x4C\x49\x47\x4E\x5F\x42\x4F\x54\x54\x4F\x4D","\x73\x61\x76\x65","\x70\x61\x69\x6E\x74\x56\x65\x72\x74\x65\x78\x53\x68\x61\x70\x65","\x72\x65\x73\x74\x6F\x72\x65","\x65\x78\x74","\x6D\x65\x73\x73\x61\x67\x65","\x61\x64\x64\x50\x69\x70\x65","\x63\x75\x72\x76\x65\x54\x6F","\x75\x6D\x6C\x41\x63\x74\x6F\x72","\x6C\x6F\x6C\x6C\x69\x70\x6F\x70","\x6A\x65\x74\x74\x79\x57\x69\x64\x74\x68","\x6A\x65\x74\x74\x79\x48\x65\x69\x67\x68\x74","\x63\x6F\x6D\x70\x6F\x6E\x65\x6E\x74","\x6F\x75\x74\x65\x72\x53\x74\x72\x6F\x6B\x65","\x65\x6C\x6C\x69\x70\x73\x65","\x66\x69\x6C\x6C\x41\x6E\x64\x53\x74\x72\x6F\x6B\x65","\x73\x65\x74\x53\x68\x61\x64\x6F\x77","\x65\x6E\x64\x53\x74\x61\x74\x65","\x73\x74\x61\x72\x74\x53\x74\x61\x74\x65","\x69\x6E\x69\x74\x53\x68\x61\x70\x65\x73","\x78","\x79","\x77\x69\x64\x74\x68","\x68\x65\x69\x67\x68\x74","\x73\x68\x61\x70\x65\x73","\x70\x61\x69\x6E\x74\x45\x64\x67\x65\x53\x68\x61\x70\x65","\x6C\x65\x6E\x67\x74\x68","\x73\x71\x72\x74","\x6C\x69\x6E\x6B","\x64\x61\x73\x68","\x61\x64\x64\x4D\x61\x72\x6B\x65\x72","\x75\x6E\x64\x65\x66\x69\x6E\x65\x64","\x75\x73\x65\x47\x72\x69\x64\x46\x6F\x72\x53\x70\x65\x63\x69\x61\x6C\x48\x61\x6E\x64\x6C\x65","\x69\x6E\x69\x74","\x68\x6F\x72\x69\x7A\x6F\x6E\x74\x61\x6C","\x73\x74\x61\x74\x65","\x67\x72\x61\x70\x68","\x76\x69\x65\x77","\x68\x61\x6E\x64\x6C\x65\x49\x6D\x61\x67\x65","\x73\x70\x65\x63\x69\x61\x6C\x48\x61\x6E\x64\x6C\x65","\x73\x72\x63","\x64\x69\x61\x6C\x65\x63\x74","\x44\x49\x41\x4C\x45\x43\x54\x5F\x53\x56\x47","\x44\x49\x41\x4C\x45\x43\x54\x5F\x56\x4D\x4C","\x67\x65\x74\x4F\x76\x65\x72\x6C\x61\x79\x50\x61\x6E\x65","\x67\x65\x74\x56\x69\x65\x77","\x63\x75\x72\x73\x6F\x72","\x6E\x6F\x64\x65","\x67\x65\x74\x53\x70\x65\x63\x69\x61\x6C\x48\x61\x6E\x64\x6C\x65\x43\x75\x72\x73\x6F\x72","\x72\x65\x64\x69\x72\x65\x63\x74\x4D\x6F\x75\x73\x65\x45\x76\x65\x6E\x74\x73","\x64\x65\x66\x61\x75\x6C\x74","\x72\x65\x64\x72\x61\x77","\x62\x6F\x75\x6E\x64\x73","\x67\x65\x74\x53\x70\x65\x63\x69\x61\x6C\x48\x61\x6E\x64\x6C\x65\x42\x6F\x75\x6E\x64\x73","\x64\x65\x73\x74\x72\x6F\x79","\x67\x65\x74\x48\x61\x6E\x64\x6C\x65\x46\x6F\x72\x45\x76\x65\x6E\x74","\x69\x73\x53\x6F\x75\x72\x63\x65","\x6D\x6F\x75\x73\x65\x4D\x6F\x76\x65","\x69\x73\x43\x6F\x6E\x73\x75\x6D\x65\x64","\x69\x6E\x64\x65\x78","\x67\x65\x74\x47\x72\x61\x70\x68\x58","\x67\x65\x74\x47\x72\x61\x70\x68\x59","\x63\x6F\x6E\x73\x74\x72\x61\x69\x6E\x50\x6F\x69\x6E\x74","\x67\x65\x74\x45\x76\x65\x6E\x74","\x69\x73\x47\x72\x69\x64\x45\x6E\x61\x62\x6C\x65\x64\x45\x76\x65\x6E\x74","\x73\x63\x61\x6C\x65","\x73\x6E\x61\x70","\x75\x70\x64\x61\x74\x65\x53\x74\x79\x6C\x65","\x6D\x6F\x76\x65\x53\x69\x7A\x65\x72\x54\x6F","\x63\x65\x6C\x6C\x52\x65\x6E\x64\x65\x72\x65\x72","\x63\x6F\x6E\x73\x75\x6D\x65","\x6D\x6F\x75\x73\x65\x55\x70","\x61\x70\x70\x6C\x79\x53\x74\x79\x6C\x65","\x72\x65\x73\x65\x74","\x67\x65\x74\x53\x68\x61\x70\x65\x52\x6F\x74\x61\x74\x69\x6F\x6E","\x73\x68\x61\x70\x65","\x74\x6F\x52\x61\x64\x69\x61\x6E\x73","\x63\x6F\x73","\x73\x69\x6E","\x69\x73\x50\x61\x69\x6E\x74\x42\x6F\x75\x6E\x64\x73\x49\x6E\x76\x65\x72\x74\x65\x64","\x67\x65\x74\x53\x70\x65\x63\x69\x61\x6C\x48\x61\x6E\x64\x6C\x65\x50\x6F\x69\x6E\x74","\x66\x6C\x69\x70\x48","\x66\x6C\x69\x70\x56","\x67\x65\x74\x43\x65\x6E\x74\x65\x72\x58","\x67\x65\x74\x43\x65\x6E\x74\x65\x72\x59","\x67\x65\x74\x52\x6F\x74\x61\x74\x65\x64\x50\x6F\x69\x6E\x74","\x75\x70\x64\x61\x74\x65\x53\x74\x79\x6C\x65\x55\x6E\x72\x6F\x74\x61\x74\x65\x64","\x72\x6F\x75\x6E\x64","\x67\x65\x74\x4D\x6F\x64\x65\x6C","\x62\x65\x67\x69\x6E\x55\x70\x64\x61\x74\x65","\x63\x65\x6C\x6C","\x73\x65\x74\x43\x65\x6C\x6C\x53\x74\x79\x6C\x65\x73","\x65\x6E\x64\x55\x70\x64\x61\x74\x65","\x73\x74\x61\x72\x74\x53\x69\x7A\x65","\x64\x65\x66\x61\x75\x6C\x74\x56\x61\x6C\x75\x65","\x73\x63\x61\x6C\x65\x46\x61\x63\x74\x6F\x72","\x63\x72\x65\x61\x74\x65\x48\x61\x6E\x64\x6C\x65\x72","\x67\x65\x74\x41\x6C\x6C\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x43\x6F\x6E\x73\x74\x72\x61\x69\x6E\x74\x73","\x73\x74\x65\x6E\x63\x69\x6C","\x63\x6F\x6E\x73\x74\x72\x61\x69\x6E\x74\x73"];(function(){function _0x2f31x1(){}_0x2f31x1[_0x3aad[0]]= new mxCylinder();_0x2f31x1[_0x3aad[0]][_0x3aad[1]]= _0x2f31x1;_0x2f31x1[_0x3aad[0]][_0x3aad[2]]= 20;_0x2f31x1[_0x3aad[0]][_0x3aad[3]]= function(_0x2f31x2,_0x2f31x3,_0x2f31x4,_0x2f31x5,_0x2f31x6,_0x2f31x7){var _0x2f31x8=Math[_0x3aad[6]](_0x2f31x5,Math[_0x3aad[6]](_0x2f31x6,mxUtils[_0x3aad[5]](this[_0x3aad[4]],_0x3aad[2],this[_0x3aad[2]])));if(_0x2f31x7){_0x2f31x2[_0x3aad[7]](_0x2f31x8,_0x2f31x6);_0x2f31x2[_0x3aad[8]](_0x2f31x8,_0x2f31x8);_0x2f31x2[_0x3aad[8]](0,0);_0x2f31x2[_0x3aad[7]](_0x2f31x8,_0x2f31x8);_0x2f31x2[_0x3aad[8]](_0x2f31x5,_0x2f31x8);_0x2f31x2[_0x3aad[9]]()}else {_0x2f31x2[_0x3aad[7]](0,0);_0x2f31x2[_0x3aad[8]](_0x2f31x5- _0x2f31x8,0);_0x2f31x2[_0x3aad[8]](_0x2f31x5,_0x2f31x8);_0x2f31x2[_0x3aad[8]](_0x2f31x5,_0x2f31x6);_0x2f31x2[_0x3aad[8]](_0x2f31x8,_0x2f31x6);_0x2f31x2[_0x3aad[8]](0,_0x2f31x6- _0x2f31x8);_0x2f31x2[_0x3aad[8]](0,0);_0x2f31x2[_0x3aad[10]]();_0x2f31x2[_0x3aad[9]]()}};mxCellRenderer[_0x3aad[0]][_0x3aad[12]][_0x3aad[11]]= _0x2f31x1;function _0x2f31x9(){}_0x2f31x9[_0x3aad[0]]= new mxCylinder();_0x2f31x9[_0x3aad[0]][_0x3aad[1]]= _0x2f31x9;_0x2f31x9[_0x3aad[0]][_0x3aad[2]]= 30;_0x2f31x9[_0x3aad[0]][_0x3aad[3]]= function(_0x2f31x2,_0x2f31x3,_0x2f31x4,_0x2f31x5,_0x2f31x6,_0x2f31x7){var _0x2f31x8=Math[_0x3aad[6]](_0x2f31x5,Math[_0x3aad[6]](_0x2f31x6,mxUtils[_0x3aad[5]](this[_0x3aad[4]],_0x3aad[2],this[_0x3aad[2]])));if(_0x2f31x7){_0x2f31x2[_0x3aad[7]](_0x2f31x5- _0x2f31x8,0);_0x2f31x2[_0x3aad[8]](_0x2f31x5- _0x2f31x8,_0x2f31x8);_0x2f31x2[_0x3aad[8]](_0x2f31x5,_0x2f31x8);_0x2f31x2[_0x3aad[9]]()}else {_0x2f31x2[_0x3aad[7]](0,0);_0x2f31x2[_0x3aad[8]](_0x2f31x5- _0x2f31x8,0);_0x2f31x2[_0x3aad[8]](_0x2f31x5,_0x2f31x8);_0x2f31x2[_0x3aad[8]](_0x2f31x5,_0x2f31x6);_0x2f31x2[_0x3aad[8]](0,_0x2f31x6);_0x2f31x2[_0x3aad[8]](0,0);_0x2f31x2[_0x3aad[10]]();_0x2f31x2[_0x3aad[9]]()}};mxCellRenderer[_0x3aad[0]][_0x3aad[12]][_0x3aad[13]]= _0x2f31x9;function _0x2f31xa(){}_0x2f31xa[_0x3aad[0]]= new mxCylinder();_0x2f31xa[_0x3aad[0]][_0x3aad[1]]= _0x2f31xa;_0x2f31xa[_0x3aad[0]][_0x3aad[14]]= 60;_0x2f31xa[_0x3aad[0]][_0x3aad[15]]= 20;_0x2f31xa[_0x3aad[0]][_0x3aad[16]]= _0x3aad[17];_0x2f31xa[_0x3aad[0]][_0x3aad[3]]= function(_0x2f31x2,_0x2f31x3,_0x2f31x4,_0x2f31x5,_0x2f31x6,_0x2f31x7){var _0x2f31xb=mxUtils[_0x3aad[5]](this[_0x3aad[4]],_0x3aad[14],this[_0x3aad[14]]);var _0x2f31xc=mxUtils[_0x3aad[5]](this[_0x3aad[4]],_0x3aad[15],this[_0x3aad[15]]);var _0x2f31xd=mxUtils[_0x3aad[5]](this[_0x3aad[4]],_0x3aad[16],this[_0x3aad[16]]);var _0x2f31xe=Math[_0x3aad[6]](_0x2f31x5,_0x2f31xb);var _0x2f31xf=Math[_0x3aad[6]](_0x2f31x6,_0x2f31xc);if(_0x2f31x7){if(_0x2f31xd== _0x3aad[18]){_0x2f31x2[_0x3aad[7]](0,_0x2f31xf);_0x2f31x2[_0x3aad[8]](_0x2f31xe,_0x2f31xf)}else {_0x2f31x2[_0x3aad[7]](_0x2f31x5- _0x2f31xe,_0x2f31xf);_0x2f31x2[_0x3aad[8]](_0x2f31x5,_0x2f31xf)};_0x2f31x2[_0x3aad[9]]()}else {if(_0x2f31xd== _0x3aad[18]){_0x2f31x2[_0x3aad[7]](0,0);_0x2f31x2[_0x3aad[8]](_0x2f31xe,0);_0x2f31x2[_0x3aad[8]](_0x2f31xe,_0x2f31xf);_0x2f31x2[_0x3aad[8]](_0x2f31x5,_0x2f31xf)}else {_0x2f31x2[_0x3aad[7]](0,_0x2f31xf);_0x2f31x2[_0x3aad[8]](_0x2f31x5- _0x2f31xe,_0x2f31xf);_0x2f31x2[_0x3aad[8]](_0x2f31x5- _0x2f31xe,0);_0x2f31x2[_0x3aad[8]](_0x2f31x5,0)};_0x2f31x2[_0x3aad[8]](_0x2f31x5,_0x2f31x6);_0x2f31x2[_0x3aad[8]](0,_0x2f31x6);_0x2f31x2[_0x3aad[8]](0,_0x2f31xf);_0x2f31x2[_0x3aad[10]]();_0x2f31x2[_0x3aad[9]]()}};mxCellRenderer[_0x3aad[0]][_0x3aad[12]][_0x3aad[19]]= _0x2f31xa;function _0x2f31x10(){}_0x2f31x10[_0x3aad[0]]= new mxCylinder();_0x2f31x10[_0x3aad[0]][_0x3aad[1]]= _0x2f31x10;_0x2f31x10[_0x3aad[0]][_0x3aad[2]]= 30;_0x2f31x10[_0x3aad[0]][_0x3aad[3]]= function(_0x2f31x2,_0x2f31x3,_0x2f31x4,_0x2f31x5,_0x2f31x6,_0x2f31x7){var _0x2f31x8=Math[_0x3aad[6]](_0x2f31x5,Math[_0x3aad[6]](_0x2f31x6,mxUtils[_0x3aad[5]](this[_0x3aad[4]],_0x3aad[2],this[_0x3aad[2]])));if(!_0x2f31x7){_0x2f31x2[_0x3aad[7]](_0x2f31x8,0);_0x2f31x2[_0x3aad[8]](_0x2f31x5,0);_0x2f31x2[_0x3aad[8]](_0x2f31x5,_0x2f31x6);_0x2f31x2[_0x3aad[8]](0,_0x2f31x6);_0x2f31x2[_0x3aad[8]](0,_0x2f31x8);_0x2f31x2[_0x3aad[8]](_0x2f31x8,0);_0x2f31x2[_0x3aad[10]]();_0x2f31x2[_0x3aad[9]]()}};mxCellRenderer[_0x3aad[0]][_0x3aad[12]][_0x3aad[20]]= _0x2f31x10;function _0x2f31x11(){}_0x2f31x11[_0x3aad[0]]= new mxCylinder();_0x2f31x11[_0x3aad[0]][_0x3aad[1]]= _0x2f31x11;_0x2f31x11[_0x3aad[0]][_0x3aad[2]]= 0.4;_0x2f31x11[_0x3aad[0]][_0x3aad[3]]= function(_0x2f31x2,_0x2f31x3,_0x2f31x4,_0x2f31x5,_0x2f31x6,_0x2f31x7){var _0x2f31x8=mxUtils[_0x3aad[5]](this[_0x3aad[4]],_0x3aad[2],this[_0x3aad[2]]);var _0x2f31xf=_0x2f31x6* _0x2f31x8;var _0x2f31x12=1.4;if(!_0x2f31x7){_0x2f31x2[_0x3aad[7]](0,_0x2f31xf/ 2);_0x2f31x2[_0x3aad[21]](_0x2f31x5/ 4,_0x2f31xf* _0x2f31x12,_0x2f31x5/ 2,_0x2f31xf/ 2);_0x2f31x2[_0x3aad[21]](_0x2f31x5* 3/ 4,_0x2f31xf* (1- _0x2f31x12),_0x2f31x5,_0x2f31xf/ 2);_0x2f31x2[_0x3aad[8]](_0x2f31x5,_0x2f31x6- _0x2f31xf/ 2);_0x2f31x2[_0x3aad[21]](_0x2f31x5* 3/ 4,_0x2f31x6- _0x2f31xf* _0x2f31x12,_0x2f31x5/ 2,_0x2f31x6- _0x2f31xf/ 2);_0x2f31x2[_0x3aad[21]](_0x2f31x5/ 4,_0x2f31x6- _0x2f31xf* (1- _0x2f31x12),0,_0x2f31x6- _0x2f31xf/ 2);_0x2f31x2[_0x3aad[8]](0,_0x2f31xf/ 2);_0x2f31x2[_0x3aad[10]]();_0x2f31x2[_0x3aad[9]]()}};mxCellRenderer[_0x3aad[0]][_0x3aad[12]][_0x3aad[22]]= _0x2f31x11;function _0x2f31x13(){}_0x2f31x13[_0x3aad[0]]= new mxCylinder();_0x2f31x13[_0x3aad[0]][_0x3aad[1]]= _0x2f31x13;_0x2f31x13[_0x3aad[0]][_0x3aad[2]]= 0.2;_0x2f31x13[_0x3aad[0]][_0x3aad[3]]= function(_0x2f31x2,_0x2f31x3,_0x2f31x4,_0x2f31x5,_0x2f31x6,_0x2f31x7){var _0x2f31x8=_0x2f31x5* mxUtils[_0x3aad[5]](this[_0x3aad[4]],_0x3aad[2],this[_0x3aad[2]]);if(!_0x2f31x7){_0x2f31x2[_0x3aad[7]](0,0);_0x2f31x2[_0x3aad[8]](_0x2f31x5- _0x2f31x8,0);_0x2f31x2[_0x3aad[8]](_0x2f31x5,_0x2f31x6/ 2);_0x2f31x2[_0x3aad[8]](_0x2f31x5- _0x2f31x8,_0x2f31x6);_0x2f31x2[_0x3aad[8]](0,_0x2f31x6);_0x2f31x2[_0x3aad[8]](_0x2f31x8,_0x2f31x6/ 2);_0x2f31x2[_0x3aad[10]]();_0x2f31x2[_0x3aad[9]]()}};mxCellRenderer[_0x3aad[0]][_0x3aad[12]][_0x3aad[23]]= _0x2f31x13;function _0x2f31x14(){mxRectangleShape[_0x3aad[24]](this)}mxUtils[_0x3aad[25]](_0x2f31x14,mxRectangleShape);_0x2f31x14[_0x3aad[0]][_0x3aad[26]]= function(){return false};_0x2f31x14[_0x3aad[0]][_0x3aad[27]]= function(_0x2f31x15,_0x2f31x3,_0x2f31x4,_0x2f31x5,_0x2f31x6){var _0x2f31x16=Math[_0x3aad[6]](_0x2f31x5/ 5,_0x2f31x6/ 5)+ 1;_0x2f31x15[_0x3aad[28]]();_0x2f31x15[_0x3aad[7]](_0x2f31x3+ _0x2f31x5/ 2,_0x2f31x4+ _0x2f31x16);_0x2f31x15[_0x3aad[8]](_0x2f31x3+ _0x2f31x5/ 2,_0x2f31x4+ _0x2f31x6- _0x2f31x16);_0x2f31x15[_0x3aad[7]](_0x2f31x3+ _0x2f31x16,_0x2f31x4+ _0x2f31x6/ 2);_0x2f31x15[_0x3aad[8]](_0x2f31x3+ _0x2f31x5- _0x2f31x16,_0x2f31x4+ _0x2f31x6/ 2);_0x2f31x15[_0x3aad[9]]();_0x2f31x15[_0x3aad[29]]();mxRectangleShape[_0x3aad[0]][_0x3aad[27]][_0x3aad[30]](this,arguments)};mxCellRenderer[_0x3aad[0]][_0x3aad[12]][_0x3aad[31]]= _0x2f31x14;function _0x2f31x17(){mxRectangleShape[_0x3aad[24]](this)}mxUtils[_0x3aad[25]](_0x2f31x17,mxRectangleShape);_0x2f31x17[_0x3aad[0]][_0x3aad[26]]= function(){return false};_0x2f31x17[_0x3aad[0]][_0x3aad[27]]= function(_0x2f31x15,_0x2f31x3,_0x2f31x4,_0x2f31x5,_0x2f31x6){if(this[_0x3aad[4]]!= null){if(this[_0x3aad[4]][_0x3aad[32]]== 1){var _0x2f31x18=Math[_0x3aad[34]](2,this[_0x3aad[33]]+ 1);mxRectangleShape[_0x3aad[0]][_0x3aad[35]][_0x3aad[24]](this,_0x2f31x15,_0x2f31x3+ _0x2f31x18,_0x2f31x4+ _0x2f31x18,_0x2f31x5- 2* _0x2f31x18,_0x2f31x6- 2* _0x2f31x18);mxRectangleShape[_0x3aad[0]][_0x3aad[27]][_0x3aad[30]](this,arguments);_0x2f31x3+= _0x2f31x18;_0x2f31x4+= _0x2f31x18;_0x2f31x5-= 2* _0x2f31x18;_0x2f31x6-= 2* _0x2f31x18};_0x2f31x15[_0x3aad[36]](false);var _0x2f31x19=0;var _0x2f31x1a=null;do{_0x2f31x1a= mxCellRenderer[_0x3aad[0]][_0x3aad[12]][this[_0x3aad[4]][_0x3aad[37]+ _0x2f31x19]];if(_0x2f31x1a!= null){var _0x2f31x1b=this[_0x3aad[4]][_0x3aad[37]+ _0x2f31x19+ _0x3aad[38]];var _0x2f31x1c=this[_0x3aad[4]][_0x3aad[37]+ _0x2f31x19+ _0x3aad[39]];var _0x2f31x1d=this[_0x3aad[4]][_0x3aad[37]+ _0x2f31x19+ _0x3aad[40]];var _0x2f31x1e=this[_0x3aad[4]][_0x3aad[37]+ _0x2f31x19+ _0x3aad[41]];var _0x2f31x1f=this[_0x3aad[4]][_0x3aad[37]+ _0x2f31x19+ _0x3aad[42]]|| 0;var _0x2f31x20=this[_0x3aad[4]][_0x3aad[37]+ _0x2f31x19+ _0x3aad[43]];if(_0x2f31x20!= null){_0x2f31x1f+= this[_0x3aad[44]](_0x2f31x5+ this[_0x3aad[33]],_0x2f31x6+ this[_0x3aad[33]])* _0x2f31x20};var _0x2f31x21=_0x2f31x3;var _0x2f31x22=_0x2f31x4;if(_0x2f31x1b== mxConstants[_0x3aad[45]]){_0x2f31x21+= (_0x2f31x5- _0x2f31x1d)/ 2}else {if(_0x2f31x1b== mxConstants[_0x3aad[46]]){_0x2f31x21+= _0x2f31x5- _0x2f31x1d- _0x2f31x1f}else {_0x2f31x21+= _0x2f31x1f}};if(_0x2f31x1c== mxConstants[_0x3aad[47]]){_0x2f31x22+= (_0x2f31x6- _0x2f31x1e)/ 2}else {if(_0x2f31x1c== mxConstants[_0x3aad[48]]){_0x2f31x22+= _0x2f31x6- _0x2f31x1e- _0x2f31x1f}else {_0x2f31x22+= _0x2f31x1f}};_0x2f31x15[_0x3aad[49]]();var _0x2f31x23= new _0x2f31x1a();_0x2f31x23[_0x3aad[4]]= this[_0x3aad[4]];_0x2f31x1a[_0x3aad[0]][_0x3aad[50]][_0x3aad[24]](_0x2f31x23,_0x2f31x15,_0x2f31x21,_0x2f31x22,_0x2f31x1d,_0x2f31x1e);_0x2f31x15[_0x3aad[51]]()};_0x2f31x19++}while(_0x2f31x1a!= null);}};mxCellRenderer[_0x3aad[0]][_0x3aad[12]][_0x3aad[52]]= _0x2f31x17;function _0x2f31x24(){}_0x2f31x24[_0x3aad[0]]= new mxCylinder();_0x2f31x24[_0x3aad[0]][_0x3aad[1]]= _0x2f31x24;_0x2f31x24[_0x3aad[0]][_0x3aad[3]]= function(_0x2f31x2,_0x2f31x3,_0x2f31x4,_0x2f31x5,_0x2f31x6,_0x2f31x7){if(_0x2f31x7){_0x2f31x2[_0x3aad[7]](0,0);_0x2f31x2[_0x3aad[8]](_0x2f31x5/ 2,_0x2f31x6/ 2);_0x2f31x2[_0x3aad[8]](_0x2f31x5,0);_0x2f31x2[_0x3aad[9]]()}else {_0x2f31x2[_0x3aad[7]](0,0);_0x2f31x2[_0x3aad[8]](_0x2f31x5,0);_0x2f31x2[_0x3aad[8]](_0x2f31x5,_0x2f31x6);_0x2f31x2[_0x3aad[8]](0,_0x2f31x6);_0x2f31x2[_0x3aad[10]]()}};mxCellRenderer[_0x3aad[0]][_0x3aad[12]][_0x3aad[53]]= _0x2f31x24;function _0x2f31x25(){}_0x2f31x25[_0x3aad[0]]= new mxCylinder();_0x2f31x25[_0x3aad[0]][_0x3aad[1]]= _0x2f31x25;_0x2f31x25[_0x3aad[0]][_0x3aad[54]]= true;_0x2f31x25[_0x3aad[0]][_0x3aad[3]]= function(_0x2f31x2,_0x2f31x3,_0x2f31x4,_0x2f31x5,_0x2f31x6,_0x2f31x7){var _0x2f31x1d=_0x2f31x5/ 3;var _0x2f31x1e=_0x2f31x6/ 4;if(!_0x2f31x7){_0x2f31x2[_0x3aad[7]](_0x2f31x5/ 2,_0x2f31x1e);_0x2f31x2[_0x3aad[55]](_0x2f31x5/ 2- _0x2f31x1d,_0x2f31x1e,_0x2f31x5/ 2- _0x2f31x1d,0,_0x2f31x5/ 2,0);_0x2f31x2[_0x3aad[55]](_0x2f31x5/ 2+ _0x2f31x1d,0,_0x2f31x5/ 2+ _0x2f31x1d,_0x2f31x1e,_0x2f31x5/ 2,_0x2f31x1e);_0x2f31x2[_0x3aad[10]]();_0x2f31x2[_0x3aad[7]](_0x2f31x5/ 2,_0x2f31x1e);_0x2f31x2[_0x3aad[8]](_0x2f31x5/ 2,2* _0x2f31x6/ 3);_0x2f31x2[_0x3aad[7]](_0x2f31x5/ 2,_0x2f31x6/ 3);_0x2f31x2[_0x3aad[8]](0,_0x2f31x6/ 3);_0x2f31x2[_0x3aad[7]](_0x2f31x5/ 2,_0x2f31x6/ 3);_0x2f31x2[_0x3aad[8]](_0x2f31x5,_0x2f31x6/ 3);_0x2f31x2[_0x3aad[7]](_0x2f31x5/ 2,2* _0x2f31x6/ 3);_0x2f31x2[_0x3aad[8]](0,_0x2f31x6);_0x2f31x2[_0x3aad[7]](_0x2f31x5/ 2,2* _0x2f31x6/ 3);_0x2f31x2[_0x3aad[8]](_0x2f31x5,_0x2f31x6);_0x2f31x2[_0x3aad[9]]()}};mxCellRenderer[_0x3aad[0]][_0x3aad[12]][_0x3aad[56]]= _0x2f31x25;function _0x2f31x26(){}_0x2f31x26[_0x3aad[0]]= new mxCylinder();_0x2f31x26[_0x3aad[0]][_0x3aad[1]]= _0x2f31x26;_0x2f31x26[_0x3aad[0]][_0x3aad[2]]= 10;_0x2f31x26[_0x3aad[0]][_0x3aad[54]]= true;_0x2f31x26[_0x3aad[0]][_0x3aad[3]]= function(_0x2f31x2,_0x2f31x3,_0x2f31x4,_0x2f31x5,_0x2f31x6,_0x2f31x7){var _0x2f31x27=mxUtils[_0x3aad[5]](this[_0x3aad[4]],_0x3aad[2],this[_0x3aad[2]]);var _0x2f31x1d=_0x2f31x27* 2/ 3;var _0x2f31x1e=_0x2f31x27;if(!_0x2f31x7){_0x2f31x2[_0x3aad[7]](_0x2f31x5/ 2,_0x2f31x1e);_0x2f31x2[_0x3aad[55]](_0x2f31x5/ 2- _0x2f31x1d,_0x2f31x1e,_0x2f31x5/ 2- _0x2f31x1d,0,_0x2f31x5/ 2,0);_0x2f31x2[_0x3aad[55]](_0x2f31x5/ 2+ _0x2f31x1d,0,_0x2f31x5/ 2+ _0x2f31x1d,_0x2f31x1e,_0x2f31x5/ 2,_0x2f31x1e);_0x2f31x2[_0x3aad[10]]();_0x2f31x2[_0x3aad[7]](_0x2f31x5/ 2,_0x2f31x1e);_0x2f31x2[_0x3aad[8]](_0x2f31x5/ 2,_0x2f31x6);_0x2f31x2[_0x3aad[9]]()}};mxCellRenderer[_0x3aad[0]][_0x3aad[12]][_0x3aad[57]]= _0x2f31x26;function _0x2f31x28(){}_0x2f31x28[_0x3aad[0]]= new mxCylinder();_0x2f31x28[_0x3aad[0]][_0x3aad[1]]= _0x2f31x28;_0x2f31x28[_0x3aad[0]][_0x3aad[58]]= 32;_0x2f31x28[_0x3aad[0]][_0x3aad[59]]= 12;_0x2f31x28[_0x3aad[0]][_0x3aad[3]]= function(_0x2f31x2,_0x2f31x3,_0x2f31x4,_0x2f31x5,_0x2f31x6,_0x2f31x7){var _0x2f31xe=mxUtils[_0x3aad[5]](this[_0x3aad[4]],_0x3aad[58],this[_0x3aad[58]]);var _0x2f31xf=mxUtils[_0x3aad[5]](this[_0x3aad[4]],_0x3aad[59],this[_0x3aad[59]]);var _0x2f31x29=_0x2f31xe/ 2;var _0x2f31x2a=_0x2f31x29+ _0x2f31xe/ 2;var _0x2f31x2b=0.3* _0x2f31x6- _0x2f31xf/ 2;var _0x2f31x2c=0.7* _0x2f31x6- _0x2f31xf/ 2;if(_0x2f31x7){_0x2f31x2[_0x3aad[7]](_0x2f31x29,_0x2f31x2b);_0x2f31x2[_0x3aad[8]](_0x2f31x2a,_0x2f31x2b);_0x2f31x2[_0x3aad[8]](_0x2f31x2a,_0x2f31x2b+ _0x2f31xf);_0x2f31x2[_0x3aad[8]](_0x2f31x29,_0x2f31x2b+ _0x2f31xf);_0x2f31x2[_0x3aad[7]](_0x2f31x29,_0x2f31x2c);_0x2f31x2[_0x3aad[8]](_0x2f31x2a,_0x2f31x2c);_0x2f31x2[_0x3aad[8]](_0x2f31x2a,_0x2f31x2c+ _0x2f31xf);_0x2f31x2[_0x3aad[8]](_0x2f31x29,_0x2f31x2c+ _0x2f31xf);_0x2f31x2[_0x3aad[9]]()}else {_0x2f31x2[_0x3aad[7]](_0x2f31x29,0);_0x2f31x2[_0x3aad[8]](_0x2f31x5,0);_0x2f31x2[_0x3aad[8]](_0x2f31x5,_0x2f31x6);_0x2f31x2[_0x3aad[8]](_0x2f31x29,_0x2f31x6);_0x2f31x2[_0x3aad[8]](_0x2f31x29,_0x2f31x2c+ _0x2f31xf);_0x2f31x2[_0x3aad[8]](0,_0x2f31x2c+ _0x2f31xf);_0x2f31x2[_0x3aad[8]](0,_0x2f31x2c);_0x2f31x2[_0x3aad[8]](_0x2f31x29,_0x2f31x2c);_0x2f31x2[_0x3aad[8]](_0x2f31x29,_0x2f31x2b+ _0x2f31xf);_0x2f31x2[_0x3aad[8]](0,_0x2f31x2b+ _0x2f31xf);_0x2f31x2[_0x3aad[8]](0,_0x2f31x2b);_0x2f31x2[_0x3aad[8]](_0x2f31x29,_0x2f31x2b);_0x2f31x2[_0x3aad[10]]();_0x2f31x2[_0x3aad[9]]()}};mxCellRenderer[_0x3aad[0]][_0x3aad[12]][_0x3aad[60]]= _0x2f31x28;function _0x2f31x2d(){}_0x2f31x2d[_0x3aad[0]]= new mxDoubleEllipse();_0x2f31x2d[_0x3aad[0]][_0x3aad[1]]= _0x2f31x2d;_0x2f31x2d[_0x3aad[0]][_0x3aad[61]]= true;_0x2f31x2d[_0x3aad[0]][_0x3aad[50]]= function(_0x2f31x15,_0x2f31x3,_0x2f31x4,_0x2f31x5,_0x2f31x6){var _0x2f31x18=Math[_0x3aad[6]](4,Math[_0x3aad[6]](_0x2f31x5/ 5,_0x2f31x6/ 5));if(_0x2f31x5> 0&& _0x2f31x6> 0){_0x2f31x15[_0x3aad[62]](_0x2f31x3+ _0x2f31x18,_0x2f31x4+ _0x2f31x18,_0x2f31x5- 2* _0x2f31x18,_0x2f31x6- 2* _0x2f31x18);_0x2f31x15[_0x3aad[63]]()};_0x2f31x15[_0x3aad[64]](false);if(this[_0x3aad[61]]){_0x2f31x15[_0x3aad[62]](_0x2f31x3,_0x2f31x4,_0x2f31x5,_0x2f31x6);_0x2f31x15[_0x3aad[29]]()}};mxCellRenderer[_0x3aad[0]][_0x3aad[12]][_0x3aad[65]]= _0x2f31x2d;function _0x2f31x2e(){}_0x2f31x2e[_0x3aad[0]]= new _0x2f31x2d();_0x2f31x2e[_0x3aad[0]][_0x3aad[1]]= _0x2f31x2e;_0x2f31x2e[_0x3aad[0]][_0x3aad[61]]= false;mxCellRenderer[_0x3aad[0]][_0x3aad[12]][_0x3aad[66]]= _0x2f31x2e;var _0x2f31x2f=mxImageExport[_0x3aad[0]][_0x3aad[67]];mxImageExport[_0x3aad[0]][_0x3aad[67]]= function(){_0x2f31x2f[_0x3aad[30]](this,arguments);function _0x2f31x30(_0x2f31x31){return {drawShape:function(_0x2f31x32,_0x2f31x33,_0x2f31x34,_0x2f31x35){var _0x2f31x3=_0x2f31x34[_0x3aad[68]];var _0x2f31x4=_0x2f31x34[_0x3aad[69]];var _0x2f31x5=_0x2f31x34[_0x3aad[70]];var _0x2f31x6=_0x2f31x34[_0x3aad[71]];if(_0x2f31x35){var _0x2f31x18=Math[_0x3aad[6]](4,Math[_0x3aad[6]](_0x2f31x5/ 5,_0x2f31x6/ 5));_0x2f31x3+= _0x2f31x18;_0x2f31x4+= _0x2f31x18;_0x2f31x5-= 2* _0x2f31x18;_0x2f31x6-= 2* _0x2f31x18;if(_0x2f31x5> 0&& _0x2f31x6> 0){_0x2f31x32[_0x3aad[62]](_0x2f31x3,_0x2f31x4,_0x2f31x5,_0x2f31x6)};return true}else {_0x2f31x32[_0x3aad[63]]();if(_0x2f31x31){_0x2f31x32[_0x3aad[62]](_0x2f31x3,_0x2f31x4,_0x2f31x5,_0x2f31x6);_0x2f31x32[_0x3aad[29]]()}}}}}this[_0x3aad[72]][_0x3aad[65]]= _0x2f31x30(true);this[_0x3aad[72]][_0x3aad[66]]= _0x2f31x30(false)};function _0x2f31x36(){mxArrow[_0x3aad[24]](this)}mxUtils[_0x3aad[25]](_0x2f31x36,mxArrow);_0x2f31x36[_0x3aad[0]][_0x3aad[73]]= function(_0x2f31x15,_0x2f31x37){var _0x2f31x1d=10;var _0x2f31x38=_0x2f31x37[0];var _0x2f31x39=_0x2f31x37[_0x2f31x37[_0x3aad[74]]- 1];var _0x2f31xe=_0x2f31x39[_0x3aad[68]]- _0x2f31x38[_0x3aad[68]];var _0x2f31xf=_0x2f31x39[_0x3aad[69]]- _0x2f31x38[_0x3aad[69]];var _0x2f31x3a=Math[_0x3aad[75]](_0x2f31xe* _0x2f31xe+ _0x2f31xf* _0x2f31xf);var _0x2f31x3b=_0x2f31x3a;var _0x2f31x3c=_0x2f31xe/ _0x2f31x3a;var _0x2f31x3d=_0x2f31xf/ _0x2f31x3a;var _0x2f31x3e=_0x2f31x3b* _0x2f31x3c;var _0x2f31x3f=_0x2f31x3b* _0x2f31x3d;var _0x2f31x40=_0x2f31x1d* _0x2f31x3d/ 3;var _0x2f31x41=-_0x2f31x1d* _0x2f31x3c / 3;var _0x2f31x42=_0x2f31x38[_0x3aad[68]]- _0x2f31x40/ 2;var _0x2f31x43=_0x2f31x38[_0x3aad[69]]- _0x2f31x41/ 2;var _0x2f31x44=_0x2f31x42+ _0x2f31x40;var _0x2f31x45=_0x2f31x43+ _0x2f31x41;var _0x2f31x46=_0x2f31x44+ _0x2f31x3e;var _0x2f31x47=_0x2f31x45+ _0x2f31x3f;var _0x2f31x48=_0x2f31x46+ _0x2f31x40;var _0x2f31x49=_0x2f31x47+ _0x2f31x41;var _0x2f31x4a=_0x2f31x48- 3* _0x2f31x40;var _0x2f31x4b=_0x2f31x49- 3* _0x2f31x41;_0x2f31x15[_0x3aad[28]]();_0x2f31x15[_0x3aad[7]](_0x2f31x44,_0x2f31x45);_0x2f31x15[_0x3aad[8]](_0x2f31x46,_0x2f31x47);_0x2f31x15[_0x3aad[7]](_0x2f31x4a+ _0x2f31x40,_0x2f31x4b+ _0x2f31x41);_0x2f31x15[_0x3aad[8]](_0x2f31x42,_0x2f31x43);_0x2f31x15[_0x3aad[29]]()};mxCellRenderer[_0x3aad[0]][_0x3aad[12]][_0x3aad[76]]= _0x2f31x36;mxMarker[_0x3aad[78]](_0x3aad[77],function(_0x2f31x32,_0x2f31x1a,_0x2f31x4c,_0x2f31x39,_0x2f31x4d,_0x2f31x4e,_0x2f31x4f,_0x2f31x50,_0x2f31x51,_0x2f31x52){var _0x2f31x3c=_0x2f31x4d* (_0x2f31x4f+ _0x2f31x51+ 1);var _0x2f31x3d=_0x2f31x4e* (_0x2f31x4f+ _0x2f31x51+ 1);return function(){_0x2f31x32[_0x3aad[28]]();_0x2f31x32[_0x3aad[7]](_0x2f31x39[_0x3aad[68]]- _0x2f31x3c/ 2- _0x2f31x3d/ 2,_0x2f31x39[_0x3aad[69]]- _0x2f31x3d/ 2+ _0x2f31x3c/ 2);_0x2f31x32[_0x3aad[8]](_0x2f31x39[_0x3aad[68]]+ _0x2f31x3d/ 2- 3* _0x2f31x3c/ 2,_0x2f31x39[_0x3aad[69]]- 3* _0x2f31x3d/ 2- _0x2f31x3c/ 2);_0x2f31x32[_0x3aad[29]]()}});var _0x2f31x53=-99;if( typeof (mxVertexHandler)!= _0x3aad[79]){function _0x2f31x54(_0x2f31x33){mxVertexHandler[_0x3aad[24]](this,_0x2f31x33)}mxUtils[_0x3aad[25]](_0x2f31x54,mxVertexHandler);_0x2f31x54[_0x3aad[0]][_0x3aad[80]]= false;_0x2f31x54[_0x3aad[0]][_0x3aad[81]]= function(){this[_0x3aad[82]]= mxUtils[_0x3aad[5]](this[_0x3aad[83]][_0x3aad[4]],mxConstants.STYLE_HORIZONTAL,true);var _0x2f31x55=this[_0x3aad[83]][_0x3aad[85]][_0x3aad[84]];if(this[_0x3aad[86]]!= null){var _0x2f31x34= new mxRectangle(0,0,this[_0x3aad[86]][_0x3aad[70]],this[_0x3aad[86]][_0x3aad[71]]);this[_0x3aad[87]]= new mxImageShape(_0x2f31x34,this[_0x3aad[86]][_0x3aad[88]])}else {var _0x2f31x4f=10;var _0x2f31x34= new mxRectangle(0,0,_0x2f31x4f,_0x2f31x4f);this[_0x3aad[87]]= new mxRhombus(_0x2f31x34,mxConstants.HANDLE_FILLCOLOR,mxConstants.HANDLE_STROKECOLOR)};this[_0x3aad[87]][_0x3aad[89]]= (_0x2f31x55[_0x3aad[89]]!= mxConstants[_0x3aad[90]])?mxConstants[_0x3aad[91]]:mxConstants[_0x3aad[90]];this[_0x3aad[87]][_0x3aad[81]](_0x2f31x55[_0x3aad[93]]()[_0x3aad[92]]());this[_0x3aad[87]][_0x3aad[95]][_0x3aad[4]][_0x3aad[94]]= this[_0x3aad[96]]();mxEvent[_0x3aad[97]](this[_0x3aad[87]][_0x3aad[95]],_0x2f31x55,this[_0x3aad[83]]);mxVertexHandler[_0x3aad[0]][_0x3aad[81]][_0x3aad[30]](this,arguments)};_0x2f31x54[_0x3aad[0]][_0x3aad[96]]= function(){return _0x3aad[98]};_0x2f31x54[_0x3aad[0]][_0x3aad[99]]= function(){mxVertexHandler[_0x3aad[0]][_0x3aad[99]][_0x3aad[30]](this,arguments);var _0x2f31x4f=this[_0x3aad[87]][_0x3aad[100]][_0x3aad[70]];this[_0x3aad[87]][_0x3aad[100]]= this[_0x3aad[101]](_0x2f31x4f);this[_0x3aad[87]][_0x3aad[99]]()};_0x2f31x54[_0x3aad[0]][_0x3aad[102]]= function(){mxVertexHandler[_0x3aad[0]][_0x3aad[102]][_0x3aad[30]](this,arguments);if(this[_0x3aad[87]]!= null){this[_0x3aad[87]][_0x3aad[102]]();this[_0x3aad[87]]= null}};_0x2f31x54[_0x3aad[0]][_0x3aad[103]]= function(_0x2f31x56){if(_0x2f31x56[_0x3aad[104]](this[_0x3aad[87]])){return _0x2f31x53};return mxVertexHandler[_0x3aad[0]][_0x3aad[103]][_0x3aad[30]](this,arguments)};_0x2f31x54[_0x3aad[0]][_0x3aad[105]]= function(_0x2f31x57,_0x2f31x56){if(!_0x2f31x56[_0x3aad[106]]()&& this[_0x3aad[107]]== _0x2f31x53){var _0x2f31x58= new mxPoint(_0x2f31x56[_0x3aad[108]](),_0x2f31x56[_0x3aad[109]]());this[_0x3aad[110]](_0x2f31x58);var _0x2f31x59=this[_0x3aad[84]][_0x3aad[112]](_0x2f31x56[_0x3aad[111]]());var _0x2f31x5a=this[_0x3aad[84]][_0x3aad[93]]()[_0x3aad[113]];if(_0x2f31x59&& this[_0x3aad[80]]){_0x2f31x58[_0x3aad[68]]= this[_0x3aad[84]][_0x3aad[114]](_0x2f31x58[_0x3aad[68]]/ _0x2f31x5a)* _0x2f31x5a;_0x2f31x58[_0x3aad[69]]= this[_0x3aad[84]][_0x3aad[114]](_0x2f31x58[_0x3aad[69]]/ _0x2f31x5a)* _0x2f31x5a};this[_0x3aad[115]](_0x2f31x58);this[_0x3aad[116]](this[_0x3aad[87]],_0x2f31x58[_0x3aad[68]],_0x2f31x58[_0x3aad[69]]);this[_0x3aad[83]][_0x3aad[85]][_0x3aad[84]][_0x3aad[117]][_0x3aad[99]](this[_0x3aad[83]],true);_0x2f31x56[_0x3aad[118]]()}else {mxVertexHandler[_0x3aad[0]][_0x3aad[105]][_0x3aad[30]](this,arguments)}};_0x2f31x54[_0x3aad[0]][_0x3aad[119]]= function(_0x2f31x57,_0x2f31x56){if(!_0x2f31x56[_0x3aad[106]]()&& this[_0x3aad[107]]== _0x2f31x53){this[_0x3aad[120]]();this[_0x3aad[121]]();_0x2f31x56[_0x3aad[118]]()}else {mxVertexHandler[_0x3aad[0]][_0x3aad[119]][_0x3aad[30]](this,arguments)}};_0x2f31x54[_0x3aad[0]][_0x3aad[101]]= function(_0x2f31x4f){var _0x2f31x5b=this[_0x3aad[83]][_0x3aad[123]][_0x3aad[122]]();var _0x2f31x5c=mxUtils[_0x3aad[124]](_0x2f31x5b);var _0x2f31x5d=Math[_0x3aad[125]](_0x2f31x5c);var _0x2f31x5e=Math[_0x3aad[126]](_0x2f31x5c);var _0x2f31x34= new mxRectangle(this[_0x3aad[83]][_0x3aad[68]],this[_0x3aad[83]][_0x3aad[69]],this[_0x3aad[83]][_0x3aad[70]],this[_0x3aad[83]][_0x3aad[71]]);if(this[_0x3aad[83]][_0x3aad[123]][_0x3aad[127]]()){var _0x2f31x5f=(_0x2f31x34[_0x3aad[70]]- _0x2f31x34[_0x3aad[71]])/ 2;_0x2f31x34[_0x3aad[68]]+= _0x2f31x5f;_0x2f31x34[_0x3aad[69]]-= _0x2f31x5f;var _0x2f31x23=_0x2f31x34[_0x3aad[70]];_0x2f31x34[_0x3aad[70]]= _0x2f31x34[_0x3aad[71]];_0x2f31x34[_0x3aad[71]]= _0x2f31x23};var _0x2f31x60=this[_0x3aad[128]](_0x2f31x34);if(this[_0x3aad[83]][_0x3aad[123]][_0x3aad[129]]){_0x2f31x60[_0x3aad[68]]= 2* _0x2f31x34[_0x3aad[68]]+ _0x2f31x34[_0x3aad[70]]- _0x2f31x60[_0x3aad[68]]};if(this[_0x3aad[83]][_0x3aad[123]][_0x3aad[130]]){_0x2f31x60[_0x3aad[69]]= 2* _0x2f31x34[_0x3aad[69]]+ _0x2f31x34[_0x3aad[71]]- _0x2f31x60[_0x3aad[69]]};_0x2f31x60= mxUtils[_0x3aad[133]](_0x2f31x60,_0x2f31x5d,_0x2f31x5e, new mxPoint(this[_0x3aad[83]][_0x3aad[131]](),this[_0x3aad[83]][_0x3aad[132]]()));return new mxRectangle(_0x2f31x60[_0x3aad[68]]- _0x2f31x4f/ 2,_0x2f31x60[_0x3aad[69]]- _0x2f31x4f/ 2,_0x2f31x4f,_0x2f31x4f)};_0x2f31x54[_0x3aad[0]][_0x3aad[128]]= function(_0x2f31x34){return null};_0x2f31x54[_0x3aad[0]][_0x3aad[115]]= function(_0x2f31x58){};_0x2f31x54[_0x3aad[0]][_0x3aad[110]]= function(_0x2f31x58){_0x2f31x58[_0x3aad[68]]= Math[_0x3aad[34]](this[_0x3aad[83]][_0x3aad[68]],Math[_0x3aad[6]](this[_0x3aad[83]][_0x3aad[68]]+ this[_0x3aad[83]][_0x3aad[70]],_0x2f31x58[_0x3aad[68]]));_0x2f31x58[_0x3aad[69]]= Math[_0x3aad[34]](this[_0x3aad[83]][_0x3aad[69]],Math[_0x3aad[6]](this[_0x3aad[83]][_0x3aad[69]]+ this[_0x3aad[83]][_0x3aad[71]],_0x2f31x58[_0x3aad[69]]))};_0x2f31x54[_0x3aad[0]][_0x3aad[120]]= function(){};function _0x2f31x61(_0x2f31x33){_0x2f31x54[_0x3aad[24]](this,_0x2f31x33)}mxUtils[_0x3aad[25]](_0x2f31x61,_0x2f31x54);_0x2f31x61[_0x3aad[0]][_0x3aad[128]]= function(_0x2f31x34){var _0x2f31x5a=this[_0x3aad[84]][_0x3aad[93]]()[_0x3aad[113]];var _0x2f31xb=Math[_0x3aad[6]](_0x2f31x34[_0x3aad[70]],mxUtils[_0x3aad[5]](this[_0x3aad[83]][_0x3aad[4]],_0x3aad[14],60)* _0x2f31x5a);var _0x2f31xc=Math[_0x3aad[6]](_0x2f31x34[_0x3aad[71]],mxUtils[_0x3aad[5]](this[_0x3aad[83]][_0x3aad[4]],_0x3aad[15],20)* _0x2f31x5a);var _0x2f31xd=mxUtils[_0x3aad[5]](this[_0x3aad[83]][_0x3aad[4]],_0x3aad[16],_0x3aad[17]);var _0x2f31x3=(_0x2f31xd== _0x3aad[18])?_0x2f31x34[_0x3aad[68]]+ _0x2f31xb:_0x2f31x34[_0x3aad[68]]+ _0x2f31x34[_0x3aad[70]]- _0x2f31xb;return new mxPoint(_0x2f31x3,_0x2f31x34[_0x3aad[69]]+ _0x2f31xc)};_0x2f31x61[_0x3aad[0]][_0x3aad[115]]= function(_0x2f31x58){var _0x2f31x5b=this[_0x3aad[83]][_0x3aad[123]][_0x3aad[122]]();var _0x2f31x5c=mxUtils[_0x3aad[124]](_0x2f31x5b);var _0x2f31x5d=Math[_0x3aad[125]](-_0x2f31x5c);var _0x2f31x5e=Math[_0x3aad[126]](-_0x2f31x5c);var _0x2f31x34= new mxRectangle(this[_0x3aad[83]][_0x3aad[68]],this[_0x3aad[83]][_0x3aad[69]],this[_0x3aad[83]][_0x3aad[70]],this[_0x3aad[83]][_0x3aad[71]]);if(this[_0x3aad[83]][_0x3aad[123]][_0x3aad[127]]()){var _0x2f31x5f=(_0x2f31x34[_0x3aad[70]]- _0x2f31x34[_0x3aad[71]])/ 2;_0x2f31x34[_0x3aad[68]]+= _0x2f31x5f;_0x2f31x34[_0x3aad[69]]-= _0x2f31x5f;var _0x2f31x23=_0x2f31x34[_0x3aad[70]];_0x2f31x34[_0x3aad[70]]= _0x2f31x34[_0x3aad[71]];_0x2f31x34[_0x3aad[71]]= _0x2f31x23};var _0x2f31x60= new mxPoint(_0x2f31x58[_0x3aad[68]],_0x2f31x58[_0x3aad[69]]);_0x2f31x60= mxUtils[_0x3aad[133]](_0x2f31x60,_0x2f31x5d,_0x2f31x5e, new mxPoint(this[_0x3aad[83]][_0x3aad[131]](),this[_0x3aad[83]][_0x3aad[132]]()));if(this[_0x3aad[83]][_0x3aad[123]][_0x3aad[129]]){_0x2f31x60[_0x3aad[68]]= 2* _0x2f31x34[_0x3aad[68]]+ _0x2f31x34[_0x3aad[70]]- _0x2f31x60[_0x3aad[68]]};if(this[_0x3aad[83]][_0x3aad[123]][_0x3aad[130]]){_0x2f31x60[_0x3aad[69]]= 2* _0x2f31x34[_0x3aad[69]]+ _0x2f31x34[_0x3aad[71]]- _0x2f31x60[_0x3aad[69]]};var _0x2f31x62=this[_0x3aad[134]](_0x2f31x60,_0x2f31x34);if(_0x2f31x62!= null){if(this[_0x3aad[83]][_0x3aad[123]][_0x3aad[129]]){_0x2f31x62[_0x3aad[68]]= 2* _0x2f31x34[_0x3aad[68]]+ _0x2f31x34[_0x3aad[70]]- _0x2f31x62[_0x3aad[68]]};if(this[_0x3aad[83]][_0x3aad[123]][_0x3aad[130]]){_0x2f31x62[_0x3aad[69]]= 2* _0x2f31x34[_0x3aad[69]]+ _0x2f31x34[_0x3aad[71]]- _0x2f31x62[_0x3aad[69]]};_0x2f31x5d= Math[_0x3aad[125]](_0x2f31x5c);_0x2f31x5e= Math[_0x3aad[126]](_0x2f31x5c);_0x2f31x62= mxUtils[_0x3aad[133]](_0x2f31x62,_0x2f31x5d,_0x2f31x5e, new mxPoint(this[_0x3aad[83]][_0x3aad[131]](),this[_0x3aad[83]][_0x3aad[132]]()));_0x2f31x58[_0x3aad[68]]= _0x2f31x62[_0x3aad[68]];_0x2f31x58[_0x3aad[69]]= _0x2f31x62[_0x3aad[69]]}};_0x2f31x61[_0x3aad[0]][_0x3aad[134]]= function(_0x2f31x60,_0x2f31x34){var _0x2f31xd=mxUtils[_0x3aad[5]](this[_0x3aad[83]][_0x3aad[4]],_0x3aad[16],_0x3aad[17]);var _0x2f31xb=(_0x2f31xd== _0x3aad[18])?_0x2f31x60[_0x3aad[68]]- _0x2f31x34[_0x3aad[68]]:_0x2f31x34[_0x3aad[68]]+ _0x2f31x34[_0x3aad[70]]- _0x2f31x60[_0x3aad[68]];var _0x2f31xc=_0x2f31x60[_0x3aad[69]]- _0x2f31x34[_0x3aad[69]];var _0x2f31x5a=this[_0x3aad[84]][_0x3aad[93]]()[_0x3aad[113]];this[_0x3aad[83]][_0x3aad[4]][_0x3aad[14]]= Math[_0x3aad[135]](Math[_0x3aad[34]](1,_0x2f31xb)/ _0x2f31x5a);this[_0x3aad[83]][_0x3aad[4]][_0x3aad[15]]= Math[_0x3aad[135]](Math[_0x3aad[34]](1,_0x2f31xc)/ _0x2f31x5a)};_0x2f31x61[_0x3aad[0]][_0x3aad[120]]= function(){var _0x2f31x63=this[_0x3aad[84]][_0x3aad[136]]();_0x2f31x63[_0x3aad[137]]();try{this[_0x3aad[83]][_0x3aad[85]][_0x3aad[84]][_0x3aad[139]](_0x3aad[14],this[_0x3aad[83]][_0x3aad[4]][_0x3aad[14]],[this[_0x3aad[83]][_0x3aad[138]]]);this[_0x3aad[83]][_0x3aad[85]][_0x3aad[84]][_0x3aad[139]](_0x3aad[15],this[_0x3aad[83]][_0x3aad[4]][_0x3aad[15]],[this[_0x3aad[83]][_0x3aad[138]]])}finally{_0x2f31x63[_0x3aad[140]]()}};function _0x2f31x64(_0x2f31x33){_0x2f31x61[_0x3aad[24]](this,_0x2f31x33)}mxUtils[_0x3aad[25]](_0x2f31x64,_0x2f31x61);_0x2f31x64[_0x3aad[0]][_0x3aad[128]]= function(_0x2f31x34){var _0x2f31x5a=this[_0x3aad[84]][_0x3aad[93]]()[_0x3aad[113]];var _0x2f31x65=mxUtils[_0x3aad[5]](this[_0x3aad[83]][_0x3aad[4]],mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE);return new mxPoint(_0x2f31x34[_0x3aad[68]]+ _0x2f31x34[_0x3aad[70]]/ 2,_0x2f31x34[_0x3aad[69]]+ Math[_0x3aad[6]](_0x2f31x34[_0x3aad[71]],_0x2f31x65* _0x2f31x5a))};_0x2f31x64[_0x3aad[0]][_0x3aad[134]]= function(_0x2f31x58,_0x2f31x34){_0x2f31x58[_0x3aad[68]]= _0x2f31x34[_0x3aad[68]]+ _0x2f31x34[_0x3aad[70]]/ 2;startSize= _0x2f31x58[_0x3aad[69]]- _0x2f31x34[_0x3aad[69]];var _0x2f31x5a=this[_0x3aad[84]][_0x3aad[93]]()[_0x3aad[113]];this[_0x3aad[83]][_0x3aad[4]][_0x3aad[141]]= Math[_0x3aad[135]](Math[_0x3aad[34]](1,startSize)/ _0x2f31x5a);return _0x2f31x58};_0x2f31x64[_0x3aad[0]][_0x3aad[120]]= function(){this[_0x3aad[83]][_0x3aad[85]][_0x3aad[84]][_0x3aad[139]](_0x3aad[141],this[_0x3aad[83]][_0x3aad[4]][_0x3aad[141]],[this[_0x3aad[83]][_0x3aad[138]]])};function _0x2f31x66(_0x2f31x33){_0x2f31x61[_0x3aad[24]](this,_0x2f31x33)}mxUtils[_0x3aad[25]](_0x2f31x66,_0x2f31x61);_0x2f31x66[_0x3aad[0]][_0x3aad[142]]= 20;_0x2f31x66[_0x3aad[0]][_0x3aad[143]]= 1;_0x2f31x66[_0x3aad[0]][_0x3aad[128]]= function(_0x2f31x34){var _0x2f31x5a=this[_0x3aad[84]][_0x3aad[93]]()[_0x3aad[113]];var _0x2f31x67=Math[_0x3aad[6]](_0x2f31x34[_0x3aad[70]],Math[_0x3aad[6]](_0x2f31x34[_0x3aad[71]],mxUtils[_0x3aad[5]](this[_0x3aad[83]][_0x3aad[4]],_0x3aad[2],this[_0x3aad[142]])* _0x2f31x5a/ this[_0x3aad[143]]));return new mxPoint(_0x2f31x34[_0x3aad[68]]+ _0x2f31x67,_0x2f31x34[_0x3aad[69]]+ _0x2f31x67)};_0x2f31x66[_0x3aad[0]][_0x3aad[134]]= function(_0x2f31x60,_0x2f31x34){var _0x2f31x4f=Math[_0x3aad[34]](0,Math[_0x3aad[6]](Math[_0x3aad[6]](_0x2f31x34[_0x3aad[70]]/ this[_0x3aad[143]],_0x2f31x60[_0x3aad[68]]- _0x2f31x34[_0x3aad[68]]),Math[_0x3aad[6]](_0x2f31x34[_0x3aad[71]]/ this[_0x3aad[143]],_0x2f31x60[_0x3aad[69]]- _0x2f31x34[_0x3aad[69]])));var _0x2f31x5a=this[_0x3aad[84]][_0x3aad[93]]()[_0x3aad[113]];this[_0x3aad[83]][_0x3aad[4]][_0x3aad[2]]= Math[_0x3aad[135]](Math[_0x3aad[34]](1,_0x2f31x4f)/ _0x2f31x5a)* this[_0x3aad[143]];return new mxPoint(_0x2f31x34[_0x3aad[68]]+ _0x2f31x4f,_0x2f31x34[_0x3aad[69]]+ _0x2f31x4f)};_0x2f31x66[_0x3aad[0]][_0x3aad[120]]= function(){this[_0x3aad[83]][_0x3aad[85]][_0x3aad[84]][_0x3aad[139]](_0x3aad[2],this[_0x3aad[83]][_0x3aad[4]][_0x3aad[2]],[this[_0x3aad[83]][_0x3aad[138]]])};function _0x2f31x68(_0x2f31x33){_0x2f31x66[_0x3aad[24]](this,_0x2f31x33)}mxUtils[_0x3aad[25]](_0x2f31x68,_0x2f31x66);_0x2f31x68[_0x3aad[0]][_0x3aad[142]]= 30;_0x2f31x68[_0x3aad[0]][_0x3aad[143]]= 2;function _0x2f31x69(_0x2f31x33){_0x2f31x66[_0x3aad[24]](this,_0x2f31x33)}mxUtils[_0x3aad[25]](_0x2f31x69,_0x2f31x66);_0x2f31x69[_0x3aad[0]][_0x3aad[142]]= 30;_0x2f31x69[_0x3aad[0]][_0x3aad[143]]= 1;_0x2f31x69[_0x3aad[0]][_0x3aad[128]]= function(_0x2f31x34){var _0x2f31x5a=this[_0x3aad[84]][_0x3aad[93]]()[_0x3aad[113]];var _0x2f31x67=Math[_0x3aad[6]](_0x2f31x34[_0x3aad[70]],Math[_0x3aad[6]](_0x2f31x34[_0x3aad[71]],mxUtils[_0x3aad[5]](this[_0x3aad[83]][_0x3aad[4]],_0x3aad[2],this[_0x3aad[142]])* _0x2f31x5a/ this[_0x3aad[143]]));return new mxPoint(_0x2f31x34[_0x3aad[68]]+ _0x2f31x34[_0x3aad[70]]- _0x2f31x67,_0x2f31x34[_0x3aad[69]]+ _0x2f31x67)};_0x2f31x69[_0x3aad[0]][_0x3aad[134]]= function(_0x2f31x60,_0x2f31x34){var _0x2f31x4f=Math[_0x3aad[34]](0,Math[_0x3aad[6]](Math[_0x3aad[6]](_0x2f31x34[_0x3aad[70]]/ this[_0x3aad[143]],_0x2f31x60[_0x3aad[68]]- _0x2f31x34[_0x3aad[68]]+ _0x2f31x34[_0x3aad[70]]),Math[_0x3aad[6]](_0x2f31x34[_0x3aad[71]]/ this[_0x3aad[143]],_0x2f31x60[_0x3aad[69]]- _0x2f31x34[_0x3aad[69]])));var _0x2f31x5a=this[_0x3aad[84]][_0x3aad[93]]()[_0x3aad[113]];this[_0x3aad[83]][_0x3aad[4]][_0x3aad[2]]= Math[_0x3aad[135]](Math[_0x3aad[34]](1,_0x2f31x4f)/ _0x2f31x5a)* this[_0x3aad[143]];return new mxPoint(_0x2f31x34[_0x3aad[68]]+ _0x2f31x34[_0x3aad[70]]- _0x2f31x4f,_0x2f31x34[_0x3aad[69]]+ _0x2f31x4f)};function _0x2f31x6a(_0x2f31x33){_0x2f31x66[_0x3aad[24]](this,_0x2f31x33)}mxUtils[_0x3aad[25]](_0x2f31x6a,_0x2f31x66);_0x2f31x6a[_0x3aad[0]][_0x3aad[142]]= 0.2;_0x2f31x6a[_0x3aad[0]][_0x3aad[143]]= 1;_0x2f31x6a[_0x3aad[0]][_0x3aad[128]]= function(_0x2f31x34){var _0x2f31x67=mxUtils[_0x3aad[5]](this[_0x3aad[83]][_0x3aad[4]],_0x3aad[2],this[_0x3aad[142]]);return new mxPoint(_0x2f31x34[_0x3aad[68]]+ _0x2f31x34[_0x3aad[70]]* _0x2f31x67,_0x2f31x34[_0x3aad[69]]+ _0x2f31x34[_0x3aad[71]]/ 2)};_0x2f31x6a[_0x3aad[0]][_0x3aad[134]]= function(_0x2f31x60,_0x2f31x34){var _0x2f31x4f=Math[_0x3aad[6]](1,(_0x2f31x60[_0x3aad[68]]- _0x2f31x34[_0x3aad[68]])/ _0x2f31x34[_0x3aad[70]]);this[_0x3aad[83]][_0x3aad[4]][_0x3aad[2]]= _0x2f31x4f;return new mxPoint(_0x2f31x34[_0x3aad[68]]+ _0x2f31x4f* _0x2f31x34[_0x3aad[70]],_0x2f31x34[_0x3aad[69]]+ _0x2f31x34[_0x3aad[71]]/ 2)};function _0x2f31x6b(_0x2f31x33){_0x2f31x66[_0x3aad[24]](this,_0x2f31x33)}mxUtils[_0x3aad[25]](_0x2f31x6b,_0x2f31x66);_0x2f31x6b[_0x3aad[0]][_0x3aad[142]]= 0.4;_0x2f31x6b[_0x3aad[0]][_0x3aad[143]]= 1;_0x2f31x6b[_0x3aad[0]][_0x3aad[128]]= function(_0x2f31x34){var _0x2f31x67=mxUtils[_0x3aad[5]](this[_0x3aad[83]][_0x3aad[4]],_0x3aad[2],this[_0x3aad[142]]);return new mxPoint(_0x2f31x34[_0x3aad[68]]+ _0x2f31x34[_0x3aad[70]]/ 2,_0x2f31x34[_0x3aad[69]]+ _0x2f31x67* _0x2f31x34[_0x3aad[71]]/ 2)};_0x2f31x6b[_0x3aad[0]][_0x3aad[134]]= function(_0x2f31x60,_0x2f31x34){var _0x2f31x4f=Math[_0x3aad[34]](0,Math[_0x3aad[6]](1,((_0x2f31x60[_0x3aad[69]]- _0x2f31x34[_0x3aad[69]])/ _0x2f31x34[_0x3aad[71]])* 2));this[_0x3aad[83]][_0x3aad[4]][_0x3aad[2]]= _0x2f31x4f;return new mxPoint(_0x2f31x34[_0x3aad[68]]+ _0x2f31x34[_0x3aad[70]]/ 2,_0x2f31x34[_0x3aad[69]]+ _0x2f31x4f* _0x2f31x34[_0x3aad[71]]/ 2)};var _0x2f31x6c={"\x73\x77\x69\x6D\x6C\x61\x6E\x65":_0x2f31x64,"\x66\x6F\x6C\x64\x65\x72":_0x2f31x61,"\x63\x75\x62\x65":_0x2f31x66,"\x63\x61\x72\x64":_0x2f31x68,"\x6E\x6F\x74\x65":_0x2f31x69,"\x73\x74\x65\x70":_0x2f31x6a,"\x74\x61\x70\x65":_0x2f31x6b};var _0x2f31x6d=mxGraph[_0x3aad[0]][_0x3aad[144]];mxGraph[_0x3aad[0]][_0x3aad[144]]= function(_0x2f31x33){if(_0x2f31x33!= null){var _0x2f31x6e=_0x2f31x6c[_0x2f31x33[_0x3aad[4]][_0x3aad[123]]];if(_0x2f31x6e!= null){return new _0x2f31x6e(_0x2f31x33)}};return _0x2f31x6d[_0x3aad[30]](this,arguments)}};mxGraph[_0x3aad[0]][_0x3aad[145]]= function(_0x2f31x6f,_0x2f31x50){if(_0x2f31x6f!= null&& _0x2f31x6f[_0x3aad[123]]!= null){if(_0x2f31x6f[_0x3aad[123]][_0x3aad[146]]!= null){if(_0x2f31x6f[_0x3aad[123]][_0x3aad[146]]!= null){return _0x2f31x6f[_0x3aad[123]][_0x3aad[146]][_0x3aad[147]]}}else {if(_0x2f31x6f[_0x3aad[123]][_0x3aad[147]]!= null){return _0x2f31x6f[_0x3aad[123]][_0x3aad[147]]}}};return null};mxRectangleShape[_0x3aad[0]][_0x3aad[147]]= [ new mxConnectionConstraint( new mxPoint(0.25,0),true), new mxConnectionConstraint( new mxPoint(0.5,0),true), new mxConnectionConstraint( new mxPoint(0.75,0),true), new mxConnectionConstraint( new mxPoint(0,0.25),true), new mxConnectionConstraint( new mxPoint(0,0.5),true), new mxConnectionConstraint( new mxPoint(0,0.75),true), new mxConnectionConstraint( new mxPoint(1,0.25),true), new mxConnectionConstraint( new mxPoint(1,0.5),true), new mxConnectionConstraint( new mxPoint(1,0.75),true), new mxConnectionConstraint( new mxPoint(0.25,1),true), new mxConnectionConstraint( new mxPoint(0.5,1),true), new mxConnectionConstraint( new mxPoint(0.75,1),true)];mxLabel[_0x3aad[0]][_0x3aad[147]]= mxRectangleShape[_0x3aad[0]][_0x3aad[147]];mxImageShape[_0x3aad[0]][_0x3aad[147]]= mxRectangleShape[_0x3aad[0]][_0x3aad[147]];mxSwimlane[_0x3aad[0]][_0x3aad[147]]= mxRectangleShape[_0x3aad[0]][_0x3aad[147]];_0x2f31x14[_0x3aad[0]][_0x3aad[147]]= mxRectangleShape[_0x3aad[0]][_0x3aad[147]];_0x2f31x9[_0x3aad[0]][_0x3aad[147]]= mxRectangleShape[_0x3aad[0]][_0x3aad[147]];_0x2f31x10[_0x3aad[0]][_0x3aad[147]]= mxRectangleShape[_0x3aad[0]][_0x3aad[147]];_0x2f31x1[_0x3aad[0]][_0x3aad[147]]= mxRectangleShape[_0x3aad[0]][_0x3aad[147]];_0x2f31xa[_0x3aad[0]][_0x3aad[147]]= mxRectangleShape[_0x3aad[0]][_0x3aad[147]];mxCylinder[_0x3aad[0]][_0x3aad[147]]= [ new mxConnectionConstraint( new mxPoint(0.15,0.05),false), new mxConnectionConstraint( new mxPoint(0.5,0),true), new mxConnectionConstraint( new mxPoint(0.85,0.05),false), new mxConnectionConstraint( new mxPoint(0,0.3),true), new mxConnectionConstraint( new mxPoint(0,0.5),true), new mxConnectionConstraint( new mxPoint(0,0.7),true), new mxConnectionConstraint( new mxPoint(1,0.3),true), new mxConnectionConstraint( new mxPoint(1,0.5),true), new mxConnectionConstraint( new mxPoint(1,0.7),true), new mxConnectionConstraint( new mxPoint(0.15,0.95),false), new mxConnectionConstraint( new mxPoint(0.5,1),true), new mxConnectionConstraint( new mxPoint(0.85,0.95),false)];_0x2f31x25[_0x3aad[0]][_0x3aad[147]]= [ new mxConnectionConstraint( new mxPoint(0.25,0.1),false), new mxConnectionConstraint( new mxPoint(0.5,0),false), new mxConnectionConstraint( new mxPoint(0.75,0.1),false), new mxConnectionConstraint( new mxPoint(0,1/ 3),false), new mxConnectionConstraint( new mxPoint(0,1),false), new mxConnectionConstraint( new mxPoint(1,1/ 3),false), new mxConnectionConstraint( new mxPoint(1,1),false), new mxConnectionConstraint( new mxPoint(0.5,0.5),false)];_0x2f31x28[_0x3aad[0]][_0x3aad[147]]= [ new mxConnectionConstraint( new mxPoint(0.25,0),true), new mxConnectionConstraint( new mxPoint(0.5,0),true), new mxConnectionConstraint( new mxPoint(0.75,0),true), new mxConnectionConstraint( new mxPoint(0,0.3),true), new mxConnectionConstraint( new mxPoint(0,0.7),true), new mxConnectionConstraint( new mxPoint(1,0.25),true), new mxConnectionConstraint( new mxPoint(1,0.5),true), new mxConnectionConstraint( new mxPoint(1,0.75),true), new mxConnectionConstraint( new mxPoint(0.25,1),true), new mxConnectionConstraint( new mxPoint(0.5,1),true), new mxConnectionConstraint( new mxPoint(0.75,1),true)];mxActor[_0x3aad[0]][_0x3aad[147]]= [ new mxConnectionConstraint( new mxPoint(0.5,0),true), new mxConnectionConstraint( new mxPoint(0.25,0.2),false), new mxConnectionConstraint( new mxPoint(0.1,0.5),false), new mxConnectionConstraint( new mxPoint(0,0.75),true), new mxConnectionConstraint( new mxPoint(0.75,0.25),false), new mxConnectionConstraint( new mxPoint(0.9,0.5),false), new mxConnectionConstraint( new mxPoint(1,0.75),true), new mxConnectionConstraint( new mxPoint(0.25,1),true), new mxConnectionConstraint( new mxPoint(0.5,1),true), new mxConnectionConstraint( new mxPoint(0.75,1),true)];_0x2f31x11[_0x3aad[0]][_0x3aad[147]]= [ new mxConnectionConstraint( new mxPoint(0,0.35),false), new mxConnectionConstraint( new mxPoint(0,0.5),false), new mxConnectionConstraint( new mxPoint(0,0.65),false), new mxConnectionConstraint( new mxPoint(1,0.35),false), new mxConnectionConstraint( new mxPoint(1,0.5),false), new mxConnectionConstraint( new mxPoint(1,0.65),false), new mxConnectionConstraint( new mxPoint(0.25,1),false), new mxConnectionConstraint( new mxPoint(0.75,0),false)];_0x2f31x13[_0x3aad[0]][_0x3aad[147]]= [ new mxConnectionConstraint( new mxPoint(0.25,0),true), new mxConnectionConstraint( new mxPoint(0.5,0),true), new mxConnectionConstraint( new mxPoint(0.75,0),true), new mxConnectionConstraint( new mxPoint(0.25,1),true), new mxConnectionConstraint( new mxPoint(0.5,1),true), new mxConnectionConstraint( new mxPoint(0.75,1),true), new mxConnectionConstraint( new mxPoint(0.1,0.25),false), new mxConnectionConstraint( new mxPoint(0.2,0.5),false), new mxConnectionConstraint( new mxPoint(0.1,0.75),false), new mxConnectionConstraint( new mxPoint(0.9,0.25),false), new mxConnectionConstraint( new mxPoint(1,0.5),false), new mxConnectionConstraint( new mxPoint(0.9,0.75),false)];mxLine[_0x3aad[0]][_0x3aad[147]]= [ new mxConnectionConstraint( new mxPoint(0,0.5),false), new mxConnectionConstraint( new mxPoint(0.25,0.5),false), new mxConnectionConstraint( new mxPoint(0.75,0.5),false), new mxConnectionConstraint( new mxPoint(1,0.5),false)];_0x2f31x26[_0x3aad[0]][_0x3aad[147]]= [ new mxConnectionConstraint( new mxPoint(0.5,0),false), new mxConnectionConstraint( new mxPoint(0.5,1),false)];mxEllipse[_0x3aad[0]][_0x3aad[147]]= [ new mxConnectionConstraint( new mxPoint(0,0),true), new mxConnectionConstraint( new mxPoint(1,0),true), new mxConnectionConstraint( new mxPoint(0,1),true), new mxConnectionConstraint( new mxPoint(1,1),true), new mxConnectionConstraint( new mxPoint(0.5,0),true), new mxConnectionConstraint( new mxPoint(0.5,1),true), new mxConnectionConstraint( new mxPoint(0,0.5),true), new mxConnectionConstraint( new mxPoint(1,0.5))];mxDoubleEllipse[_0x3aad[0]][_0x3aad[147]]= mxEllipse[_0x3aad[0]][_0x3aad[147]];mxRhombus[_0x3aad[0]][_0x3aad[147]]= mxEllipse[_0x3aad[0]][_0x3aad[147]];mxTriangle[_0x3aad[0]][_0x3aad[147]]= [ new mxConnectionConstraint( new mxPoint(0,0.25),true), new mxConnectionConstraint( new mxPoint(0,0.5),true), new mxConnectionConstraint( new mxPoint(0,0.75),true), new mxConnectionConstraint( new mxPoint(0.5,0),true), new mxConnectionConstraint( new mxPoint(0.5,1),true), new mxConnectionConstraint( new mxPoint(1,0.5),true)];mxHexagon[_0x3aad[0]][_0x3aad[147]]= [ new mxConnectionConstraint( new mxPoint(0.375,0),true), new mxConnectionConstraint( new mxPoint(0.5,0),true), new mxConnectionConstraint( new mxPoint(0.625,0),true), new mxConnectionConstraint( new mxPoint(0.125,0.25),false), new mxConnectionConstraint( new mxPoint(0,0.5),true), new mxConnectionConstraint( new mxPoint(0.125,0.75),false), new mxConnectionConstraint( new mxPoint(0.875,0.25),false), new mxConnectionConstraint( new mxPoint(0,0.5),true), new mxConnectionConstraint( new mxPoint(1,0.5),true), new mxConnectionConstraint( new mxPoint(0.875,0.75),false), new mxConnectionConstraint( new mxPoint(0.375,1),true), new mxConnectionConstraint( new mxPoint(0.5,1),true), new mxConnectionConstraint( new mxPoint(0.625,1),true)];mxCloud[_0x3aad[0]][_0x3aad[147]]= [ new mxConnectionConstraint( new mxPoint(0.25,0.25),false), new mxConnectionConstraint( new mxPoint(0.4,0.1),false), new mxConnectionConstraint( new mxPoint(0.16,0.55),false), new mxConnectionConstraint( new mxPoint(0.07,0.4),false), new mxConnectionConstraint( new mxPoint(0.31,0.8),false), new mxConnectionConstraint( new mxPoint(0.13,0.77),false), new mxConnectionConstraint( new mxPoint(0.8,0.8),false), new mxConnectionConstraint( new mxPoint(0.55,0.95),false), new mxConnectionConstraint( new mxPoint(0.875,0.5),false), new mxConnectionConstraint( new mxPoint(0.96,0.7),false), new mxConnectionConstraint( new mxPoint(0.625,0.2),false), new mxConnectionConstraint( new mxPoint(0.88,0.25),false)];mxArrow[_0x3aad[0]][_0x3aad[147]]= null})() \ No newline at end of file diff --git a/public/assets/plugins/jscripty/js/Sidebar.js b/public/assets/plugins/jscripty/js/Sidebar.js index b4f43b8..34f2b81 100644 --- a/public/assets/plugins/jscripty/js/Sidebar.js +++ b/public/assets/plugins/jscripty/js/Sidebar.js @@ -1 +1 @@ -var _0x3f08=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x64\x69\x74\x6F\x72\x55\x69","\x63\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x70\x61\x6C\x65\x74\x74\x65\x73","\x73\x68\x6F\x77\x54\x6F\x6F\x6C\x74\x69\x70\x73","\x67\x72\x61\x70\x68","\x64\x69\x76","\x63\x72\x65\x61\x74\x65\x45\x6C\x65\x6D\x65\x6E\x74","\x67\x65\x74\x53\x74\x79\x6C\x65\x73\x68\x65\x65\x74","\x65\x64\x69\x74\x6F\x72","\x72\x65\x73\x65\x74\x56\x69\x65\x77\x4F\x6E\x52\x6F\x6F\x74\x43\x68\x61\x6E\x67\x65","\x66\x6F\x6C\x64\x69\x6E\x67\x45\x6E\x61\x62\x6C\x65\x64","\x73\x65\x74\x43\x6F\x6E\x6E\x65\x63\x74\x61\x62\x6C\x65","\x61\x75\x74\x6F\x53\x63\x72\x6F\x6C\x6C","\x73\x65\x74\x54\x6F\x6F\x6C\x74\x69\x70\x73","\x73\x65\x74\x45\x6E\x61\x62\x6C\x65\x64","\x76\x69\x73\x69\x62\x69\x6C\x69\x74\x79","\x73\x74\x79\x6C\x65","\x68\x69\x64\x64\x65\x6E","\x70\x6F\x73\x69\x74\x69\x6F\x6E","\x61\x62\x73\x6F\x6C\x75\x74\x65","\x61\x70\x70\x65\x6E\x64\x43\x68\x69\x6C\x64","\x62\x6F\x64\x79","\x49\x53\x5F\x54\x4F\x55\x43\x48","\x6D\x6F\x75\x73\x65\x75\x70","\x62\x69\x6E\x64","\x61\x64\x64\x4C\x69\x73\x74\x65\x6E\x65\x72","\x73\x63\x72\x6F\x6C\x6C","\x6D\x6F\x75\x73\x65\x64\x6F\x77\x6E","\x68\x69\x64\x65\x54\x6F\x6F\x6C\x74\x69\x70","\x6D\x6F\x75\x73\x65\x6D\x6F\x76\x65","\x67\x65\x74\x53\x6F\x75\x72\x63\x65","\x63\x75\x72\x72\x65\x6E\x74\x45\x6C\x74","\x70\x61\x72\x65\x6E\x74\x4E\x6F\x64\x65","\x6D\x6F\x75\x73\x65\x6F\x75\x74","\x74\x6F\x45\x6C\x65\x6D\x65\x6E\x74","\x72\x65\x6C\x61\x74\x65\x64\x54\x61\x72\x67\x65\x74","\x69\x6E\x69\x74","\x73\x72\x63","\x2F\x74\x6F\x6F\x6C\x74\x69\x70\x2E\x70\x6E\x67","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x6C\x6F\x67","\x65\x6E\x74\x72\x79","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x67\x65\x74","\x2F","\x5F\x31\x32\x38\x78\x31\x32\x38\x2E\x70\x6E\x67","\x73\x74\x61\x72\x74","\x71\x75\x65\x73\x74\x69\x6F\x6E","\x69\x6E\x70\x75\x74","\x65\x6E\x64","\x61\x64\x64\x49\x6D\x61\x67\x65\x50\x61\x6C\x65\x74\x74\x65","\x65\x6E\x61\x62\x6C\x65\x54\x6F\x6F\x6C\x74\x69\x70\x73","\x74\x6F\x6F\x6C\x74\x69\x70\x42\x6F\x72\x64\x65\x72","\x74\x68\x75\x6D\x62\x42\x6F\x72\x64\x65\x72","\x74\x6F\x6F\x6C\x74\x69\x70\x44\x65\x6C\x61\x79","\x69\x6E\x73\x74\x61\x6C\x6C\x45\x64\x67\x65\x73","\x67\x65\x61\x72\x49\x6D\x61\x67\x65","\x2F\x63\x6C\x69\x70\x61\x72\x74\x2F\x47\x65\x61\x72\x5F\x31\x32\x38\x78\x31\x32\x38\x2E\x70\x6E\x67","\x74\x68\x75\x6D\x62\x57\x69\x64\x74\x68","\x74\x68\x75\x6D\x62\x48\x65\x69\x67\x68\x74","\x74\x68\x75\x6D\x62\x50\x61\x64\x64\x69\x6E\x67","\x73\x69\x64\x65\x62\x61\x72\x54\x69\x74\x6C\x65\x53\x69\x7A\x65","\x73\x69\x64\x65\x62\x61\x72\x54\x69\x74\x6C\x65\x73","\x74\x6F\x6F\x6C\x74\x69\x70\x54\x69\x74\x6C\x65\x73","\x73\x68\x6F\x77\x54\x6F\x6F\x6C\x74\x69\x70","\x74\x68\x72\x65\x61\x64","\x63\x6C\x65\x61\x72\x54\x69\x6D\x65\x6F\x75\x74","\x74\x6F\x6F\x6C\x74\x69\x70","\x63\x6C\x61\x73\x73\x4E\x61\x6D\x65","\x67\x65\x53\x69\x64\x65\x62\x61\x72\x54\x6F\x6F\x6C\x74\x69\x70","\x67\x72\x61\x70\x68\x32","\x73\x65\x74\x54\x72\x61\x6E\x73\x6C\x61\x74\x65","\x76\x69\x65\x77","\x49\x53\x5F\x53\x56\x47","\x63\x61\x6E\x76\x61\x73","\x72\x65\x6C\x61\x74\x69\x76\x65","\x74\x6F\x6F\x6C\x74\x69\x70\x49\x6D\x61\x67\x65","\x63\x72\x65\x61\x74\x65\x49\x6D\x61\x67\x65","\x77\x69\x64\x74\x68","\x31\x34\x70\x78","\x68\x65\x69\x67\x68\x74","\x32\x37\x70\x78","\x64\x69\x73\x70\x6C\x61\x79","\x62\x6C\x6F\x63\x6B","\x6C\x61\x62\x65\x6C\x73\x56\x69\x73\x69\x62\x6C\x65","\x63\x6C\x65\x61\x72","\x6D\x6F\x64\x65\x6C","\x61\x64\x64\x43\x65\x6C\x6C\x73","\x67\x65\x74\x47\x72\x61\x70\x68\x42\x6F\x75\x6E\x64\x73","\x49\x53\x5F\x51\x55\x49\x52\x4B\x53","\x6F\x76\x65\x72\x66\x6C\x6F\x77","\x76\x69\x73\x69\x62\x6C\x65","\x70\x78","\x6C\x65\x6E\x67\x74\x68","\x74\x6F\x6F\x6C\x74\x69\x70\x54\x69\x74\x6C\x65","\x62\x6F\x72\x64\x65\x72\x54\x6F\x70","\x31\x70\x78\x20\x73\x6F\x6C\x69\x64\x20\x67\x72\x61\x79","\x74\x65\x78\x74\x41\x6C\x69\x67\x6E","\x63\x65\x6E\x74\x65\x72","\x31\x30\x30\x25","\x70\x61\x64\x64\x69\x6E\x67\x54\x6F\x70","\x32\x70\x78","\x36\x70\x78","\x69\x6E\x6E\x65\x72\x48\x54\x4D\x4C","","\x77\x72\x69\x74\x65","\x6F\x66\x66\x73\x65\x74\x48\x65\x69\x67\x68\x74","\x6D\x61\x72\x67\x69\x6E\x54\x6F\x70","\x74\x6F\x70","\x6E\x6F\x6E\x65","\x78","\x6D\x69\x6E","\x79","\x63\x6C\x69\x65\x6E\x74\x57\x69\x64\x74\x68","\x73\x70\x6C\x69\x74\x53\x69\x7A\x65","\x6F\x66\x66\x73\x65\x74\x54\x6F\x70","\x73\x63\x72\x6F\x6C\x6C\x54\x6F\x70","\x6D\x61\x78","\x74\x72\x61\x6E\x73\x66\x6F\x72\x6D","\x74\x72\x61\x6E\x73\x6C\x61\x74\x65\x28","\x2C","\x29","\x73\x65\x74\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x6C\x65\x66\x74","\x64\x72\x61\x77\x50\x61\x6E\x65","\x73\x65\x74\x54\x69\x6D\x65\x6F\x75\x74","\x63\x72\x65\x61\x74\x65\x54\x69\x74\x6C\x65","\x61","\x68\x72\x65\x66","\x6A\x61\x76\x61\x73\x63\x72\x69\x70\x74\x3A\x76\x6F\x69\x64\x28\x30\x29\x3B","\x67\x65\x54\x69\x74\x6C\x65","\x63\x72\x65\x61\x74\x65\x54\x68\x75\x6D\x62","\x73\x63\x61\x6C\x65\x41\x6E\x64\x54\x72\x61\x6E\x73\x6C\x61\x74\x65","\x66\x6C\x6F\x6F\x72","\x64\x69\x61\x6C\x65\x63\x74","\x44\x49\x41\x4C\x45\x43\x54\x5F\x53\x56\x47","\x4E\x4F\x5F\x46\x4F","\x63\x6C\x6F\x6E\x65\x4E\x6F\x64\x65","\x6F\x77\x6E\x65\x72\x53\x56\x47\x45\x6C\x65\x6D\x65\x6E\x74","\x67\x65\x74\x43\x61\x6E\x76\x61\x73","\x67\x65\x74\x4D\x6F\x64\x65\x6C","\x49\x53\x5F\x49\x45\x36","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x49\x6D\x61\x67\x65","\x75\x72\x6C\x28","\x74\x72\x61\x6E\x73\x70\x61\x72\x65\x6E\x74\x49\x6D\x61\x67\x65","\x63\x75\x72\x73\x6F\x72","\x70\x6F\x69\x6E\x74\x65\x72","\x6D\x69\x6E\x57\x69\x64\x74\x68","\x6D\x69\x6E\x48\x65\x69\x67\x68\x74","\x66\x6F\x6E\x74\x53\x69\x7A\x65","\x77\x68\x69\x74\x65\x53\x70\x61\x63\x65","\x6E\x6F\x77\x72\x61\x70","\x49\x53\x5F\x49\x45","\x34\x70\x78","\x63\x72\x65\x61\x74\x65\x49\x74\x65\x6D","\x67\x65\x49\x74\x65\x6D","\x70\x61\x64\x64\x69\x6E\x67","\x63\x6C\x69\x63\x6B","\x63\x6F\x6E\x73\x75\x6D\x65","\x63\x72\x65\x61\x74\x65\x44\x72\x6F\x70\x48\x61\x6E\x64\x6C\x65\x72","\x69\x73\x45\x6E\x61\x62\x6C\x65\x64","\x67\x65\x74\x49\x6D\x70\x6F\x72\x74\x61\x62\x6C\x65\x43\x65\x6C\x6C\x73","\x69\x73\x56\x61\x6C\x69\x64\x44\x72\x6F\x70\x54\x61\x72\x67\x65\x74","\x69\x73\x53\x70\x6C\x69\x74\x45\x6E\x61\x62\x6C\x65\x64","\x69\x73\x53\x70\x6C\x69\x74\x54\x61\x72\x67\x65\x74","\x73\x70\x6C\x69\x74\x45\x64\x67\x65","\x69\x6D\x70\x6F\x72\x74\x43\x65\x6C\x6C\x73","\x73\x63\x72\x6F\x6C\x6C\x43\x65\x6C\x6C\x54\x6F\x56\x69\x73\x69\x62\x6C\x65","\x73\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C\x73","\x63\x72\x65\x61\x74\x65\x44\x72\x61\x67\x50\x72\x65\x76\x69\x65\x77","\x62\x6F\x72\x64\x65\x72","\x31\x70\x78\x20\x64\x61\x73\x68\x65\x64\x20\x62\x6C\x61\x63\x6B","\x63\x72\x65\x61\x74\x65\x44\x72\x61\x67\x53\x6F\x75\x72\x63\x65","\x61\x75\x74\x6F\x73\x63\x72\x6F\x6C\x6C","\x6D\x61\x6B\x65\x44\x72\x61\x67\x67\x61\x62\x6C\x65","\x67\x65\x74\x44\x72\x6F\x70\x54\x61\x72\x67\x65\x74","\x61\x70\x70\x6C\x79","\x69\x73\x56\x61\x6C\x69\x64\x52\x6F\x6F\x74","\x61\x64\x64\x43\x6C\x69\x63\x6B\x48\x61\x6E\x64\x6C\x65\x72","\x67\x65\x74\x43\x6C\x69\x65\x6E\x74\x58","\x67\x65\x74\x43\x6C\x69\x65\x6E\x74\x59","\x61\x64\x64\x47\x65\x73\x74\x75\x72\x65\x4C\x69\x73\x74\x65\x6E\x65\x72\x73","\x6D\x6F\x75\x73\x65\x55\x70","\x69\x73\x50\x6F\x70\x75\x70\x54\x72\x69\x67\x67\x65\x72","\x63\x75\x72\x72\x65\x6E\x74\x47\x72\x61\x70\x68","\x74\x6F\x6C\x65\x72\x61\x6E\x63\x65","\x61\x62\x73","\x67\x65\x74\x47\x72\x69\x64\x53\x69\x7A\x65","\x64\x72\x6F\x70","\x63\x72\x65\x61\x74\x65\x58\x6D\x6C\x44\x6F\x63\x75\x6D\x65\x6E\x74","\x6C\x61\x62\x65\x6C","\x66\x6F\x72\x45\x61\x63\x68","\x63\x72\x65\x61\x74\x65\x56\x65\x72\x74\x65\x78\x54\x65\x6D\x70\x6C\x61\x74\x65","\x69\x64","\x74\x65\x78\x74","\x73\x74\x61\x74\x65","\x30","\x4F\x46\x46","\x6F\x74\x68\x65\x72","\x61\x64\x64","\x76\x65\x72\x74\x65\x78","\x63\x72\x65\x61\x74\x65\x56\x65\x72\x74\x65\x78\x54\x65\x6D\x70\x6C\x61\x74\x65\x46\x72\x6F\x6D\x43\x65\x6C\x6C\x73","\x69\x73\x47\x75\x69\x64\x65\x73\x45\x6E\x61\x62\x6C\x65\x64","\x67\x75\x69\x64\x65\x73\x45\x6E\x61\x62\x6C\x65\x64","\x67\x72\x61\x70\x68\x48\x61\x6E\x64\x6C\x65\x72","\x63\x72\x65\x61\x74\x65\x45\x64\x67\x65\x54\x65\x6D\x70\x6C\x61\x74\x65","\x73\x65\x74\x54\x65\x72\x6D\x69\x6E\x61\x6C\x50\x6F\x69\x6E\x74","\x67\x65\x6F\x6D\x65\x74\x72\x79","\x65\x64\x67\x65","\x63\x72\x65\x61\x74\x65\x45\x64\x67\x65\x54\x65\x6D\x70\x6C\x61\x74\x65\x46\x72\x6F\x6D\x43\x65\x6C\x6C\x73","\x73\x65\x74\x44\x65\x66\x61\x75\x6C\x74\x45\x64\x67\x65","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x43\x6F\x6C\x6F\x72","\x23\x66\x66\x66\x66\x66\x66","\x61\x64\x64\x50\x61\x6C\x65\x74\x74\x65","\x67\x65\x53\x69\x64\x65\x62\x61\x72","\x61\x64\x64\x46\x6F\x6C\x64\x69\x6E\x67\x48\x61\x6E\x64\x6C\x65\x72","\x2F\x63\x6F\x6C\x6C\x61\x70\x73\x65\x64\x2E\x67\x69\x66\x29","\x2F\x65\x78\x70\x61\x6E\x64\x65\x64\x2E\x67\x69\x66\x29","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x52\x65\x70\x65\x61\x74","\x6E\x6F\x2D\x72\x65\x70\x65\x61\x74","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x50\x6F\x73\x69\x74\x69\x6F\x6E","\x31\x30\x30\x25\x20\x35\x30\x25","\x77\x61\x69\x74","\x72\x65\x6D\x6F\x76\x65\x50\x61\x6C\x65\x74\x74\x65","\x72\x65\x6D\x6F\x76\x65\x43\x68\x69\x6C\x64","\x69\x6D\x61\x67\x65\x3B\x69\x6D\x61\x67\x65\x3D"];_0x3f08[0];function Sidebar(_0xe737x2,_0xe737x3){this[_0x3f08[1]]= _0xe737x2;this[_0x3f08[2]]= _0xe737x3;this[_0x3f08[3]]= new Object();this[_0x3f08[4]]= true;this[_0x3f08[5]]= new Graph(document[_0x3f08[7]](_0x3f08[6]),null,null,this[_0x3f08[1]][_0x3f08[9]][_0x3f08[5]][_0x3f08[8]]());this[_0x3f08[5]][_0x3f08[10]]= false;this[_0x3f08[5]][_0x3f08[11]]= false;this[_0x3f08[5]][_0x3f08[12]](false);this[_0x3f08[5]][_0x3f08[13]]= false;this[_0x3f08[5]][_0x3f08[14]](false);this[_0x3f08[5]][_0x3f08[15]](false);this[_0x3f08[5]][_0x3f08[2]][_0x3f08[17]][_0x3f08[16]]= _0x3f08[18];this[_0x3f08[5]][_0x3f08[2]][_0x3f08[17]][_0x3f08[19]]= _0x3f08[20];document[_0x3f08[22]][_0x3f08[21]](this[_0x3f08[5]][_0x3f08[2]]);if(!mxClient[_0x3f08[23]]){mxEvent[_0x3f08[26]](document,_0x3f08[24],mxUtils[_0x3f08[25]](this,function(){this[_0x3f08[4]]= true}));mxEvent[_0x3f08[26]](_0xe737x3,_0x3f08[27],mxUtils[_0x3f08[25]](this,function(){this[_0x3f08[4]]= true}));mxEvent[_0x3f08[26]](document,_0x3f08[28],mxUtils[_0x3f08[25]](this,function(){this[_0x3f08[4]]= false;this[_0x3f08[29]]()}));mxEvent[_0x3f08[26]](document,_0x3f08[30],mxUtils[_0x3f08[25]](this,function(_0xe737x4){var _0xe737x5=mxEvent[_0x3f08[31]](_0xe737x4);while(_0xe737x5!= null){if(_0xe737x5== this[_0x3f08[32]]){return};_0xe737x5= _0xe737x5[_0x3f08[33]]};this[_0x3f08[29]]()}));mxEvent[_0x3f08[26]](document,_0x3f08[34],mxUtils[_0x3f08[25]](this,function(_0xe737x4){if(_0xe737x4[_0x3f08[35]]== null&& _0xe737x4[_0x3f08[36]]== null){this[_0x3f08[29]]()}}))};this[_0x3f08[37]](); new Image()[_0x3f08[38]]= IMAGE_PATH+ _0x3f08[39]}Sidebar[_0x3f08[40]][_0x3f08[37]]= function(){var _0xe737x6=STENCIL_PATH;console[_0x3f08[41]](_0xe737x6);this[_0x3f08[51]](_0x3f08[42],mxResources[_0x3f08[44]](_0x3f08[43]),_0xe737x6+ _0x3f08[45],_0x3f08[46],[_0x3f08[47],_0x3f08[48],_0x3f08[49],_0x3f08[50]],[mxResources[_0x3f08[44]](_0x3f08[47]),mxResources[_0x3f08[44]](_0x3f08[48]),mxResources[_0x3f08[44]](_0x3f08[49]),mxResources[_0x3f08[44]](_0x3f08[50])])};Sidebar[_0x3f08[40]][_0x3f08[52]]= !mxClient[_0x3f08[23]];Sidebar[_0x3f08[40]][_0x3f08[53]]= 16;Sidebar[_0x3f08[40]][_0x3f08[54]]= 3;Sidebar[_0x3f08[40]][_0x3f08[55]]= 300;Sidebar[_0x3f08[40]][_0x3f08[56]]= true;Sidebar[_0x3f08[40]][_0x3f08[57]]= STENCIL_PATH+ _0x3f08[58];Sidebar[_0x3f08[40]][_0x3f08[59]]= 34;Sidebar[_0x3f08[40]][_0x3f08[60]]= 34;Sidebar[_0x3f08[40]][_0x3f08[61]]= 2;Sidebar[_0x3f08[40]][_0x3f08[62]]= 9;Sidebar[_0x3f08[40]][_0x3f08[63]]= false;Sidebar[_0x3f08[40]][_0x3f08[64]]= false;Sidebar[_0x3f08[40]][_0x3f08[65]]= function(_0xe737x7,_0xe737x8,_0xe737x9,_0xe737xa){if(this[_0x3f08[52]]&& this[_0x3f08[4]]){if(this[_0x3f08[32]]!= _0xe737x7){if(this[_0x3f08[66]]!= null){window[_0x3f08[67]](this[_0x3f08[66]]);this[_0x3f08[66]]= null};var _0xe737xb=mxUtils[_0x3f08[25]](this,function(){if(this[_0x3f08[68]]== null){this[_0x3f08[68]]= document[_0x3f08[7]](_0x3f08[6]);this[_0x3f08[68]][_0x3f08[69]]= _0x3f08[70];document[_0x3f08[22]][_0x3f08[21]](this[_0x3f08[68]]);this[_0x3f08[71]]= new Graph(this[_0x3f08[68]],null,null,this[_0x3f08[1]][_0x3f08[9]][_0x3f08[5]][_0x3f08[8]]());this[_0x3f08[71]][_0x3f08[73]][_0x3f08[72]](this[_0x3f08[53]],this[_0x3f08[53]]);this[_0x3f08[71]][_0x3f08[10]]= false;this[_0x3f08[71]][_0x3f08[11]]= false;this[_0x3f08[71]][_0x3f08[13]]= false;this[_0x3f08[71]][_0x3f08[14]](false);this[_0x3f08[71]][_0x3f08[12]](false);this[_0x3f08[71]][_0x3f08[15]](false);if(!mxClient[_0x3f08[74]]){this[_0x3f08[71]][_0x3f08[73]][_0x3f08[75]][_0x3f08[17]][_0x3f08[19]]= _0x3f08[76]};this[_0x3f08[77]]= mxUtils[_0x3f08[78]](IMAGE_PATH+ _0x3f08[39]);this[_0x3f08[77]][_0x3f08[17]][_0x3f08[19]]= _0x3f08[20];this[_0x3f08[77]][_0x3f08[17]][_0x3f08[79]]= _0x3f08[80];this[_0x3f08[77]][_0x3f08[17]][_0x3f08[81]]= _0x3f08[82];document[_0x3f08[22]][_0x3f08[21]](this[_0x3f08[77]])};this[_0x3f08[68]][_0x3f08[17]][_0x3f08[83]]= _0x3f08[84];this[_0x3f08[71]][_0x3f08[85]]= (_0xe737xa== null|| _0xe737xa);this[_0x3f08[71]][_0x3f08[87]][_0x3f08[86]]();this[_0x3f08[71]][_0x3f08[88]](_0xe737x8);var _0xe737xc=this[_0x3f08[71]][_0x3f08[89]]();var _0xe737xd=_0xe737xc[_0x3f08[79]]+ 2* this[_0x3f08[53]];var _0xe737xe=_0xe737xc[_0x3f08[81]]+ 2* this[_0x3f08[53]];if(mxClient[_0x3f08[90]]){_0xe737xd+= 4;_0xe737xe+= 4;this[_0x3f08[68]][_0x3f08[17]][_0x3f08[91]]= _0x3f08[18]}else {this[_0x3f08[68]][_0x3f08[17]][_0x3f08[91]]= _0x3f08[92]};this[_0x3f08[77]][_0x3f08[17]][_0x3f08[16]]= _0x3f08[92];this[_0x3f08[68]][_0x3f08[17]][_0x3f08[79]]= _0xe737xd+ _0x3f08[93];if(this[_0x3f08[64]]&& _0xe737x9!= null&& _0xe737x9[_0x3f08[94]]> 0){if(this[_0x3f08[95]]== null){this[_0x3f08[95]]= document[_0x3f08[7]](_0x3f08[6]);this[_0x3f08[95]][_0x3f08[17]][_0x3f08[96]]= _0x3f08[97];this[_0x3f08[95]][_0x3f08[17]][_0x3f08[98]]= _0x3f08[99];this[_0x3f08[95]][_0x3f08[17]][_0x3f08[79]]= _0x3f08[100];this[_0x3f08[95]][_0x3f08[17]][_0x3f08[91]]= _0x3f08[18];if(mxClient[_0x3f08[74]]){this[_0x3f08[95]][_0x3f08[17]][_0x3f08[101]]= _0x3f08[102]}else {this[_0x3f08[95]][_0x3f08[17]][_0x3f08[19]]= _0x3f08[20];this[_0x3f08[95]][_0x3f08[17]][_0x3f08[101]]= _0x3f08[103]};this[_0x3f08[68]][_0x3f08[21]](this[_0x3f08[95]])}else {this[_0x3f08[95]][_0x3f08[104]]= _0x3f08[105]};this[_0x3f08[95]][_0x3f08[17]][_0x3f08[83]]= _0x3f08[105];mxUtils[_0x3f08[106]](this[_0x3f08[95]],_0xe737x9);var _0xe737xf=this[_0x3f08[95]][_0x3f08[107]]+ 10;_0xe737xe+= _0xe737xf;if(mxClient[_0x3f08[74]]){this[_0x3f08[95]][_0x3f08[17]][_0x3f08[108]]= (-_0xe737xf) + _0x3f08[93]}else {_0xe737xe-= 6;this[_0x3f08[95]][_0x3f08[17]][_0x3f08[109]]= (_0xe737xe- _0xe737xf)+ _0x3f08[93]}}else {if(this[_0x3f08[95]]!= null&& this[_0x3f08[95]][_0x3f08[33]]!= null){this[_0x3f08[95]][_0x3f08[17]][_0x3f08[83]]= _0x3f08[110]}};this[_0x3f08[68]][_0x3f08[17]][_0x3f08[81]]= _0xe737xe+ _0x3f08[93];var _0xe737x10=-Math[_0x3f08[112]](0,_0xe737xc[_0x3f08[111]]- this[_0x3f08[53]]);var _0xe737x11=-Math[_0x3f08[112]](0,_0xe737xc[_0x3f08[113]]- this[_0x3f08[53]]);var _0xe737x12=this[_0x3f08[2]][_0x3f08[114]]+ this[_0x3f08[1]][_0x3f08[115]]+ 3;var _0xe737x13=Math[_0x3f08[118]](0,(this[_0x3f08[2]][_0x3f08[116]]+ _0xe737x7[_0x3f08[116]]- this[_0x3f08[2]][_0x3f08[117]]- _0xe737xe/ 2+ 16));if(mxClient[_0x3f08[74]]){this[_0x3f08[71]][_0x3f08[73]][_0x3f08[75]][_0x3f08[123]](_0x3f08[119],_0x3f08[120]+ _0xe737x10+ _0x3f08[121]+ _0xe737x11+ _0x3f08[122])}else {this[_0x3f08[71]][_0x3f08[73]][_0x3f08[125]][_0x3f08[17]][_0x3f08[124]]= _0xe737x10+ _0x3f08[93];this[_0x3f08[71]][_0x3f08[73]][_0x3f08[125]][_0x3f08[17]][_0x3f08[109]]= _0xe737x11+ _0x3f08[93]};_0xe737x13+= 90;this[_0x3f08[68]][_0x3f08[17]][_0x3f08[19]]= _0x3f08[20];this[_0x3f08[68]][_0x3f08[17]][_0x3f08[124]]= _0xe737x12+ _0x3f08[93];this[_0x3f08[68]][_0x3f08[17]][_0x3f08[109]]= _0xe737x13+ _0x3f08[93];this[_0x3f08[77]][_0x3f08[17]][_0x3f08[124]]= (_0xe737x12- 13)+ _0x3f08[93];this[_0x3f08[77]][_0x3f08[17]][_0x3f08[109]]= (_0xe737x13+ _0xe737xe/ 2- 13)+ _0x3f08[93]});if(this[_0x3f08[68]]!= null&& this[_0x3f08[68]][_0x3f08[17]][_0x3f08[83]]!= _0x3f08[110]){_0xe737xb()}else {this[_0x3f08[66]]= window[_0x3f08[126]](_0xe737xb,this[_0x3f08[55]])};this[_0x3f08[32]]= _0xe737x7}}};Sidebar[_0x3f08[40]][_0x3f08[29]]= function(){if(this[_0x3f08[66]]!= null){window[_0x3f08[67]](this[_0x3f08[66]]);this[_0x3f08[66]]= null};if(this[_0x3f08[68]]!= null){this[_0x3f08[68]][_0x3f08[17]][_0x3f08[83]]= _0x3f08[110];this[_0x3f08[77]][_0x3f08[17]][_0x3f08[16]]= _0x3f08[18];this[_0x3f08[32]]= null}};Sidebar[_0x3f08[40]][_0x3f08[127]]= function(_0xe737x14){var _0xe737x7=document[_0x3f08[7]](_0x3f08[128]);_0xe737x7[_0x3f08[123]](_0x3f08[129],_0x3f08[130]);_0xe737x7[_0x3f08[69]]= _0x3f08[131];mxUtils[_0x3f08[106]](_0xe737x7,_0xe737x14);return _0xe737x7};Sidebar[_0x3f08[40]][_0x3f08[132]]= function(_0xe737x8,_0xe737xd,_0xe737xe,_0xe737x15,_0xe737x9,_0xe737xa){this[_0x3f08[5]][_0x3f08[85]]= (_0xe737xa== null|| _0xe737xa);this[_0x3f08[5]][_0x3f08[73]][_0x3f08[133]](1,0,0);this[_0x3f08[5]][_0x3f08[88]](_0xe737x8);var _0xe737xc=this[_0x3f08[5]][_0x3f08[89]]();var _0xe737x16=this[_0x3f08[54]];var _0xe737x17=Math[_0x3f08[112]]((_0xe737xd- 2)/ (_0xe737xc[_0x3f08[79]]- _0xe737xc[_0x3f08[111]]+ _0xe737x16),(_0xe737xe- 2)/ (_0xe737xc[_0x3f08[81]]- _0xe737xc[_0x3f08[113]]+ _0xe737x16));var _0xe737x10=-Math[_0x3f08[112]](_0xe737xc[_0x3f08[111]],0);var _0xe737x11=-Math[_0x3f08[112]](_0xe737xc[_0x3f08[113]],0);this[_0x3f08[5]][_0x3f08[73]][_0x3f08[133]](_0xe737x17,_0xe737x10,_0xe737x11);_0xe737xc= this[_0x3f08[5]][_0x3f08[89]]();var _0xe737x18=Math[_0x3f08[118]](0,Math[_0x3f08[134]]((_0xe737xd- _0xe737xc[_0x3f08[79]]- _0xe737xc[_0x3f08[111]])/ 2));var _0xe737xf=Math[_0x3f08[118]](0,Math[_0x3f08[134]]((_0xe737xe- _0xe737xc[_0x3f08[81]]- _0xe737xc[_0x3f08[113]])/ 2));var _0xe737x19=null;if(this[_0x3f08[5]][_0x3f08[135]]== mxConstants[_0x3f08[136]]&& !mxClient[_0x3f08[137]]){_0xe737x19= this[_0x3f08[5]][_0x3f08[73]][_0x3f08[140]]()[_0x3f08[139]][_0x3f08[138]](true)}else {_0xe737x19= this[_0x3f08[5]][_0x3f08[2]][_0x3f08[138]](false);_0xe737x19[_0x3f08[104]]= this[_0x3f08[5]][_0x3f08[2]][_0x3f08[104]]};this[_0x3f08[5]][_0x3f08[141]]()[_0x3f08[86]]();if(mxClient[_0x3f08[142]]){_0xe737x15[_0x3f08[17]][_0x3f08[143]]= _0x3f08[144]+ this[_0x3f08[1]][_0x3f08[9]][_0x3f08[145]]+ _0x3f08[122]};var _0xe737x1a=3;_0xe737x19[_0x3f08[17]][_0x3f08[19]]= _0x3f08[76];_0xe737x19[_0x3f08[17]][_0x3f08[91]]= _0x3f08[18];_0xe737x19[_0x3f08[17]][_0x3f08[146]]= _0x3f08[147];_0xe737x19[_0x3f08[17]][_0x3f08[124]]= (_0xe737x18+ _0xe737x1a)+ _0x3f08[93];_0xe737x19[_0x3f08[17]][_0x3f08[109]]= (_0xe737xf+ _0xe737x1a)+ _0x3f08[93];_0xe737x19[_0x3f08[17]][_0x3f08[79]]= _0xe737xd+ _0x3f08[93];_0xe737x19[_0x3f08[17]][_0x3f08[81]]= _0xe737xe+ _0x3f08[93];_0xe737x19[_0x3f08[17]][_0x3f08[16]]= _0x3f08[105];_0xe737x19[_0x3f08[17]][_0x3f08[148]]= _0x3f08[105];_0xe737x19[_0x3f08[17]][_0x3f08[149]]= _0x3f08[105];_0xe737x15[_0x3f08[21]](_0xe737x19);if(this[_0x3f08[63]]&& _0xe737x9!= null){var _0xe737x1b=(mxClient[_0x3f08[90]])?2* this[_0x3f08[61]]+ 2:0;_0xe737x15[_0x3f08[17]][_0x3f08[81]]= (this[_0x3f08[60]]+ _0xe737x1b+ this[_0x3f08[62]]+ 8)+ _0x3f08[93];var _0xe737x1c=document[_0x3f08[7]](_0x3f08[6]);_0xe737x1c[_0x3f08[17]][_0x3f08[150]]= this[_0x3f08[62]]+ _0x3f08[93];_0xe737x1c[_0x3f08[17]][_0x3f08[98]]= _0x3f08[99];_0xe737x1c[_0x3f08[17]][_0x3f08[151]]= _0x3f08[152];if(mxClient[_0x3f08[153]]){_0xe737x1c[_0x3f08[17]][_0x3f08[81]]= (this[_0x3f08[62]]+ 12)+ _0x3f08[93]};_0xe737x1c[_0x3f08[17]][_0x3f08[101]]= _0x3f08[154];mxUtils[_0x3f08[106]](_0xe737x1c,_0xe737x9);_0xe737x15[_0x3f08[21]](_0xe737x1c)}};Sidebar[_0x3f08[40]][_0x3f08[155]]= function(_0xe737x8,_0xe737x9,_0xe737xa){var _0xe737x7=document[_0x3f08[7]](_0x3f08[128]);_0xe737x7[_0x3f08[123]](_0x3f08[129],_0x3f08[130]);_0xe737x7[_0x3f08[69]]= _0x3f08[156];_0xe737x7[_0x3f08[17]][_0x3f08[91]]= _0x3f08[18];var _0xe737x1b=(mxClient[_0x3f08[90]])?8+ 2* this[_0x3f08[61]]:6;_0xe737x7[_0x3f08[17]][_0x3f08[79]]= (this[_0x3f08[59]]+ _0xe737x1b)+ _0x3f08[93];_0xe737x7[_0x3f08[17]][_0x3f08[81]]= (this[_0x3f08[60]]+ _0xe737x1b)+ _0x3f08[93];_0xe737x7[_0x3f08[17]][_0x3f08[157]]= this[_0x3f08[61]]+ _0x3f08[93];mxEvent[_0x3f08[26]](_0xe737x7,_0x3f08[158],function(_0xe737x4){mxEvent[_0x3f08[159]](_0xe737x4)});this[_0x3f08[132]](_0xe737x8,this[_0x3f08[59]],this[_0x3f08[60]],_0xe737x7,_0xe737x9,_0xe737xa);return _0xe737x7};Sidebar[_0x3f08[40]][_0x3f08[160]]= function(_0xe737x8,_0xe737x1d){return function(_0xe737x1e,_0xe737x4,_0xe737x1f,_0xe737x20,_0xe737x21){if(_0xe737x1e[_0x3f08[161]]()){_0xe737x8= _0xe737x1e[_0x3f08[162]](_0xe737x8);if(_0xe737x8[_0x3f08[94]]> 0){var _0xe737x22=(_0xe737x1f!= null)?_0xe737x1e[_0x3f08[163]](_0xe737x1f,_0xe737x8,_0xe737x4):false;var _0xe737x23=null;if(_0xe737x1f!= null&& !_0xe737x22){_0xe737x1f= null};if(_0xe737x1d&& _0xe737x1e[_0x3f08[164]]()&& _0xe737x1e[_0x3f08[165]](_0xe737x1f,_0xe737x8,_0xe737x4)){_0xe737x1e[_0x3f08[166]](_0xe737x1f,_0xe737x8,null,_0xe737x20,_0xe737x21);_0xe737x23= _0xe737x8}else {if(_0xe737x8[_0x3f08[94]]> 0){_0xe737x23= _0xe737x1e[_0x3f08[167]](_0xe737x8,_0xe737x20,_0xe737x21,_0xe737x1f)}};if(_0xe737x23!= null&& _0xe737x23[_0x3f08[94]]> 0){_0xe737x1e[_0x3f08[168]](_0xe737x23[0]);_0xe737x1e[_0x3f08[169]](_0xe737x23)}}}}};Sidebar[_0x3f08[40]][_0x3f08[170]]= function(_0xe737xd,_0xe737xe){var _0xe737x7=document[_0x3f08[7]](_0x3f08[6]);_0xe737x7[_0x3f08[17]][_0x3f08[171]]= _0x3f08[172];_0xe737x7[_0x3f08[17]][_0x3f08[79]]= _0xe737xd+ _0x3f08[93];_0xe737x7[_0x3f08[17]][_0x3f08[81]]= _0xe737xe+ _0x3f08[93];return _0xe737x7};Sidebar[_0x3f08[40]][_0x3f08[173]]= function(_0xe737x7,_0xe737x24,_0xe737x25){var _0xe737x26=mxUtils[_0x3f08[175]](_0xe737x7,this[_0x3f08[1]][_0x3f08[9]][_0x3f08[5]],_0xe737x24,_0xe737x25,0,0,this[_0x3f08[1]][_0x3f08[9]][_0x3f08[5]][_0x3f08[174]],true,true);_0xe737x26[_0x3f08[176]]= function(_0xe737x1e,_0xe737x20,_0xe737x21){var _0xe737x1f=mxDragSource[_0x3f08[40]][_0x3f08[176]][_0x3f08[177]](this,arguments);if(!_0xe737x1e[_0x3f08[178]](_0xe737x1f)){_0xe737x1f= null};return _0xe737x1f};return _0xe737x26};Sidebar[_0x3f08[40]][_0x3f08[179]]= function(_0xe737x7,_0xe737x27){var _0xe737x1e=this[_0x3f08[1]][_0x3f08[9]][_0x3f08[5]];var _0xe737x28=null;mxEvent[_0x3f08[182]](_0xe737x7,function(_0xe737x4){_0xe737x28= new mxPoint(mxEvent[_0x3f08[180]](_0xe737x4),mxEvent[_0x3f08[181]](_0xe737x4))});var _0xe737x29=_0xe737x27[_0x3f08[183]];_0xe737x27[_0x3f08[183]]= function(_0xe737x4){if(!mxEvent[_0x3f08[184]](_0xe737x4)&& this[_0x3f08[185]]== null && _0xe737x28!= null){var _0xe737x2a=_0xe737x1e[_0x3f08[186]];if(Math[_0x3f08[187]](_0xe737x28[_0x3f08[111]]- mxEvent[_0x3f08[180]](_0xe737x4))<= _0xe737x2a&& Math[_0x3f08[187]](_0xe737x28[_0x3f08[113]]- mxEvent[_0x3f08[181]](_0xe737x4))<= _0xe737x2a){var _0xe737x2b=_0xe737x1e[_0x3f08[188]]();_0xe737x27[_0x3f08[189]](_0xe737x1e,_0xe737x4,null,_0xe737x2b,_0xe737x2b)}};_0xe737x29[_0x3f08[177]](this,arguments);_0xe737x28= null}};Sidebar[_0x3f08[40]][_0x3f08[190]]= function(_0xe737x2c,_0xe737x14,_0xe737x2d,_0xe737x2e){var _0xe737x2f=mxUtils[_0x3f08[190]]();var _0xe737x19=_0xe737x2f[_0x3f08[7]](_0xe737x2c);_0xe737x19[_0x3f08[123]](_0x3f08[191],_0xe737x14);_0xe737x2d[_0x3f08[192]](function(_0xe737x30,_0xe737x31){_0xe737x19[_0x3f08[123]](_0xe737x30,_0xe737x2e[_0xe737x31]?_0xe737x2e[_0xe737x31]:_0x3f08[105])});return _0xe737x19};Sidebar[_0x3f08[40]][_0x3f08[193]]= function(_0xe737x32,_0xe737xd,_0xe737xe,_0xe737x33,_0xe737x9,_0xe737xa){var _0xe737x2d=[];var _0xe737x2e=[];switch(_0xe737x33){case _0x3f08[47]:_0xe737x2d= [_0x3f08[194],_0x3f08[195],_0x3f08[196]];_0xe737x2e= [_0x3f08[197],_0x3f08[105],_0x3f08[198]];break;case _0x3f08[50]:_0xe737x2d= [_0x3f08[194],_0x3f08[195]];_0xe737x2e= [_0x3f08[197],_0x3f08[105]];break;case _0x3f08[48]:_0xe737x2d= [_0x3f08[194],_0x3f08[48],_0x3f08[199]];_0xe737x2e= [_0x3f08[197],_0x3f08[105]];break;case _0x3f08[49]:_0xe737x2d= [_0x3f08[194],_0x3f08[48],_0x3f08[200]];_0xe737x2e= [_0x3f08[197],_0x3f08[105]];break;default:_0xe737x2d= [];_0xe737x2e= [];break};var _0xe737x19=this[_0x3f08[190]](_0xe737x33,_0xe737x9,_0xe737x2d,_0xe737x2e);var _0xe737x8=[ new mxCell(_0xe737x19, new mxGeometry(0,0,_0xe737xd,_0xe737xe),_0xe737x32)];_0xe737x8[0][_0x3f08[201]]= true;return this[_0x3f08[202]](_0xe737x8,_0xe737xd,_0xe737xe,_0xe737x9,_0xe737xa)};Sidebar[_0x3f08[40]][_0x3f08[202]]= function(_0xe737x8,_0xe737xd,_0xe737xe,_0xe737x9,_0xe737xa){var _0xe737x7=this[_0x3f08[155]](_0xe737x8,_0xe737x9,_0xe737xa);var _0xe737x27=this[_0x3f08[173]](_0xe737x7,this[_0x3f08[160]](_0xe737x8,true),this[_0x3f08[170]](_0xe737xd,_0xe737xe));this[_0x3f08[179]](_0xe737x7,_0xe737x27);_0xe737x27[_0x3f08[203]]= mxUtils[_0x3f08[25]](this,function(){return this[_0x3f08[1]][_0x3f08[9]][_0x3f08[5]][_0x3f08[205]][_0x3f08[204]]});if(!touchStyle){mxEvent[_0x3f08[26]](_0xe737x7,_0x3f08[30],mxUtils[_0x3f08[25]](this,function(_0xe737x4){this[_0x3f08[65]](_0xe737x7,_0xe737x8,_0xe737x9,_0xe737xa)}))};return _0xe737x7};Sidebar[_0x3f08[40]][_0x3f08[206]]= function(_0xe737x32,_0xe737xd,_0xe737xe,_0xe737x33,_0xe737x9,_0xe737xa){var _0xe737x8=[ new mxCell((_0xe737x33!= null)?_0xe737x33:_0x3f08[105], new mxGeometry(0,0,_0xe737xd,_0xe737xe),_0xe737x32)];_0xe737x8[0][_0x3f08[208]][_0x3f08[207]]( new mxPoint(0,_0xe737xe),true);_0xe737x8[0][_0x3f08[208]][_0x3f08[207]]( new mxPoint(_0xe737xd,0),false);_0xe737x8[0][_0x3f08[208]][_0x3f08[76]]= true;_0xe737x8[0][_0x3f08[209]]= true;return this[_0x3f08[210]](_0xe737x8,_0xe737xd,_0xe737xe,_0xe737x9,_0xe737xa)};Sidebar[_0x3f08[40]][_0x3f08[210]]= function(_0xe737x8,_0xe737xd,_0xe737xe,_0xe737x9,_0xe737xa){var _0xe737x7=this[_0x3f08[155]](_0xe737x8,_0xe737x9,_0xe737xa);this[_0x3f08[173]](_0xe737x7,this[_0x3f08[160]](_0xe737x8,false),this[_0x3f08[170]](_0xe737xd,_0xe737xe));var _0xe737x1e=this[_0x3f08[1]][_0x3f08[9]][_0x3f08[5]];mxEvent[_0x3f08[26]](_0xe737x7,_0x3f08[158],mxUtils[_0x3f08[25]](this,function(_0xe737x4){if(this[_0x3f08[56]]){_0xe737x1e[_0x3f08[211]](_0xe737x8[0])};_0xe737x7[_0x3f08[17]][_0x3f08[212]]= _0x3f08[213];window[_0x3f08[126]](function(){_0xe737x7[_0x3f08[17]][_0x3f08[212]]= _0x3f08[105]},300);mxEvent[_0x3f08[159]](_0xe737x4)}));touchStyle= false;if(!touchStyle){mxEvent[_0x3f08[26]](_0xe737x7,_0x3f08[30],mxUtils[_0x3f08[25]](this,function(_0xe737x4){this[_0x3f08[65]](_0xe737x7,_0xe737x8,_0xe737x9,_0xe737xa)}))};return _0xe737x7};Sidebar[_0x3f08[40]][_0x3f08[214]]= function(_0xe737x34,_0xe737x9,_0xe737x35,_0xe737x36){var _0xe737x7=this[_0x3f08[127]](_0xe737x9);this[_0x3f08[2]][_0x3f08[21]](_0xe737x7);var _0xe737x1c=document[_0x3f08[7]](_0x3f08[6]);_0xe737x1c[_0x3f08[69]]= _0x3f08[215];if(_0xe737x35){_0xe737x36(_0xe737x1c);_0xe737x36= null}else {_0xe737x1c[_0x3f08[17]][_0x3f08[83]]= _0x3f08[110]};this[_0x3f08[216]](_0xe737x7,_0xe737x1c,_0xe737x36);var _0xe737x37=document[_0x3f08[7]](_0x3f08[6]);_0xe737x37[_0x3f08[21]](_0xe737x1c);this[_0x3f08[2]][_0x3f08[21]](_0xe737x37);if(_0xe737x34!= null){this[_0x3f08[3]][_0xe737x34]= [_0xe737x7,_0xe737x37]}};Sidebar[_0x3f08[40]][_0x3f08[216]]= function(_0xe737x9,_0xe737x38,_0xe737x39){var _0xe737x3a=false;_0xe737x9[_0x3f08[17]][_0x3f08[143]]= (_0xe737x38[_0x3f08[17]][_0x3f08[83]]== _0x3f08[110])?_0x3f08[144]+ IMAGE_PATH+ _0x3f08[217]:_0x3f08[144]+ IMAGE_PATH+ _0x3f08[218];_0xe737x9[_0x3f08[17]][_0x3f08[219]]= _0x3f08[220];_0xe737x9[_0x3f08[17]][_0x3f08[221]]= _0x3f08[222];mxEvent[_0x3f08[26]](_0xe737x9,_0x3f08[158],function(_0xe737x4){if(_0xe737x38[_0x3f08[17]][_0x3f08[83]]== _0x3f08[110]){if(!_0xe737x3a){_0xe737x3a= true;if(_0xe737x39!= null){_0xe737x9[_0x3f08[17]][_0x3f08[146]]= _0x3f08[223];window[_0x3f08[126]](function(){_0xe737x39(_0xe737x38);_0xe737x9[_0x3f08[17]][_0x3f08[146]]= _0x3f08[105]},0)}};_0xe737x9[_0x3f08[17]][_0x3f08[143]]= _0x3f08[144]+ IMAGE_PATH+ _0x3f08[218];_0xe737x38[_0x3f08[17]][_0x3f08[83]]= _0x3f08[84]}else {_0xe737x9[_0x3f08[17]][_0x3f08[143]]= _0x3f08[144]+ IMAGE_PATH+ _0x3f08[217];_0xe737x38[_0x3f08[17]][_0x3f08[83]]= _0x3f08[110]};mxEvent[_0x3f08[159]](_0xe737x4)})};Sidebar[_0x3f08[40]][_0x3f08[224]]= function(_0xe737x34){var _0xe737x3b=this[_0x3f08[3]][_0xe737x34];if(_0xe737x3b!= null){this[_0x3f08[3]][_0xe737x34]= null;for(var _0xe737x3c=0;_0xe737x3c< _0xe737x3b[_0x3f08[94]];_0xe737x3c++){this[_0x3f08[2]][_0x3f08[225]](_0xe737x3b[_0xe737x3c])};return true};return false};Sidebar[_0x3f08[40]][_0x3f08[51]]= function(_0xe737x34,_0xe737x9,_0xe737x3d,_0xe737x3e,_0xe737x3f,_0xe737x40){this[_0x3f08[214]](_0xe737x34,_0xe737x9,(_0xe737x34=== _0x3f08[42]),mxUtils[_0x3f08[25]](this,function(_0xe737x38){var _0xe737x41=_0xe737x40!= null;for(var _0xe737x3c=0;_0xe737x3c< _0xe737x3f[_0x3f08[94]];_0xe737x3c++){var _0xe737x42=_0xe737x3d+ _0xe737x3f[_0xe737x3c]+ _0xe737x3e;_0xe737x38[_0x3f08[21]](this[_0x3f08[193]](_0x3f08[226]+ _0xe737x42,80,80,_0xe737x3f[_0xe737x3c],(_0xe737x41)?_0xe737x40[_0xe737x3c]:null,_0xe737x41))}}))} \ No newline at end of file +var _0xe8d2=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x64\x69\x74\x6F\x72\x55\x69","\x63\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x70\x61\x6C\x65\x74\x74\x65\x73","\x73\x68\x6F\x77\x54\x6F\x6F\x6C\x74\x69\x70\x73","\x67\x72\x61\x70\x68","\x64\x69\x76","\x63\x72\x65\x61\x74\x65\x45\x6C\x65\x6D\x65\x6E\x74","\x67\x65\x74\x53\x74\x79\x6C\x65\x73\x68\x65\x65\x74","\x65\x64\x69\x74\x6F\x72","\x72\x65\x73\x65\x74\x56\x69\x65\x77\x4F\x6E\x52\x6F\x6F\x74\x43\x68\x61\x6E\x67\x65","\x66\x6F\x6C\x64\x69\x6E\x67\x45\x6E\x61\x62\x6C\x65\x64","\x73\x65\x74\x43\x6F\x6E\x6E\x65\x63\x74\x61\x62\x6C\x65","\x61\x75\x74\x6F\x53\x63\x72\x6F\x6C\x6C","\x73\x65\x74\x54\x6F\x6F\x6C\x74\x69\x70\x73","\x73\x65\x74\x45\x6E\x61\x62\x6C\x65\x64","\x76\x69\x73\x69\x62\x69\x6C\x69\x74\x79","\x73\x74\x79\x6C\x65","\x68\x69\x64\x64\x65\x6E","\x70\x6F\x73\x69\x74\x69\x6F\x6E","\x61\x62\x73\x6F\x6C\x75\x74\x65","\x61\x70\x70\x65\x6E\x64\x43\x68\x69\x6C\x64","\x62\x6F\x64\x79","\x49\x53\x5F\x54\x4F\x55\x43\x48","\x6D\x6F\x75\x73\x65\x75\x70","\x62\x69\x6E\x64","\x61\x64\x64\x4C\x69\x73\x74\x65\x6E\x65\x72","\x73\x63\x72\x6F\x6C\x6C","\x6D\x6F\x75\x73\x65\x64\x6F\x77\x6E","\x68\x69\x64\x65\x54\x6F\x6F\x6C\x74\x69\x70","\x6D\x6F\x75\x73\x65\x6D\x6F\x76\x65","\x67\x65\x74\x53\x6F\x75\x72\x63\x65","\x63\x75\x72\x72\x65\x6E\x74\x45\x6C\x74","\x70\x61\x72\x65\x6E\x74\x4E\x6F\x64\x65","\x6D\x6F\x75\x73\x65\x6F\x75\x74","\x74\x6F\x45\x6C\x65\x6D\x65\x6E\x74","\x72\x65\x6C\x61\x74\x65\x64\x54\x61\x72\x67\x65\x74","\x69\x6E\x69\x74","\x73\x72\x63","\x2F\x74\x6F\x6F\x6C\x74\x69\x70\x2E\x70\x6E\x67","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x6C\x6F\x67","\x65\x6E\x74\x72\x79","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x67\x65\x74","\x2F","\x5F\x31\x32\x38\x78\x31\x32\x38\x2E\x70\x6E\x67","\x73\x74\x61\x72\x74","\x71\x75\x65\x73\x74\x69\x6F\x6E","\x69\x6E\x70\x75\x74","\x65\x6E\x64","\x61\x64\x64\x49\x6D\x61\x67\x65\x50\x61\x6C\x65\x74\x74\x65","\x65\x6E\x61\x62\x6C\x65\x54\x6F\x6F\x6C\x74\x69\x70\x73","\x74\x6F\x6F\x6C\x74\x69\x70\x42\x6F\x72\x64\x65\x72","\x74\x68\x75\x6D\x62\x42\x6F\x72\x64\x65\x72","\x74\x6F\x6F\x6C\x74\x69\x70\x44\x65\x6C\x61\x79","\x69\x6E\x73\x74\x61\x6C\x6C\x45\x64\x67\x65\x73","\x67\x65\x61\x72\x49\x6D\x61\x67\x65","\x2F\x63\x6C\x69\x70\x61\x72\x74\x2F\x47\x65\x61\x72\x5F\x31\x32\x38\x78\x31\x32\x38\x2E\x70\x6E\x67","\x74\x68\x75\x6D\x62\x57\x69\x64\x74\x68","\x74\x68\x75\x6D\x62\x48\x65\x69\x67\x68\x74","\x74\x68\x75\x6D\x62\x50\x61\x64\x64\x69\x6E\x67","\x73\x69\x64\x65\x62\x61\x72\x54\x69\x74\x6C\x65\x53\x69\x7A\x65","\x73\x69\x64\x65\x62\x61\x72\x54\x69\x74\x6C\x65\x73","\x74\x6F\x6F\x6C\x74\x69\x70\x54\x69\x74\x6C\x65\x73","\x73\x68\x6F\x77\x54\x6F\x6F\x6C\x74\x69\x70","\x74\x68\x72\x65\x61\x64","\x63\x6C\x65\x61\x72\x54\x69\x6D\x65\x6F\x75\x74","\x74\x6F\x6F\x6C\x74\x69\x70","\x63\x6C\x61\x73\x73\x4E\x61\x6D\x65","\x67\x65\x53\x69\x64\x65\x62\x61\x72\x54\x6F\x6F\x6C\x74\x69\x70","\x67\x72\x61\x70\x68\x32","\x73\x65\x74\x54\x72\x61\x6E\x73\x6C\x61\x74\x65","\x76\x69\x65\x77","\x49\x53\x5F\x53\x56\x47","\x63\x61\x6E\x76\x61\x73","\x72\x65\x6C\x61\x74\x69\x76\x65","\x74\x6F\x6F\x6C\x74\x69\x70\x49\x6D\x61\x67\x65","\x63\x72\x65\x61\x74\x65\x49\x6D\x61\x67\x65","\x77\x69\x64\x74\x68","\x31\x34\x70\x78","\x68\x65\x69\x67\x68\x74","\x32\x37\x70\x78","\x64\x69\x73\x70\x6C\x61\x79","\x62\x6C\x6F\x63\x6B","\x6C\x61\x62\x65\x6C\x73\x56\x69\x73\x69\x62\x6C\x65","\x63\x6C\x65\x61\x72","\x6D\x6F\x64\x65\x6C","\x61\x64\x64\x43\x65\x6C\x6C\x73","\x67\x65\x74\x47\x72\x61\x70\x68\x42\x6F\x75\x6E\x64\x73","\x49\x53\x5F\x51\x55\x49\x52\x4B\x53","\x6F\x76\x65\x72\x66\x6C\x6F\x77","\x76\x69\x73\x69\x62\x6C\x65","\x70\x78","\x6C\x65\x6E\x67\x74\x68","\x74\x6F\x6F\x6C\x74\x69\x70\x54\x69\x74\x6C\x65","\x62\x6F\x72\x64\x65\x72\x54\x6F\x70","\x31\x70\x78\x20\x73\x6F\x6C\x69\x64\x20\x67\x72\x61\x79","\x74\x65\x78\x74\x41\x6C\x69\x67\x6E","\x63\x65\x6E\x74\x65\x72","\x31\x30\x30\x25","\x70\x61\x64\x64\x69\x6E\x67\x54\x6F\x70","\x32\x70\x78","\x36\x70\x78","\x69\x6E\x6E\x65\x72\x48\x54\x4D\x4C","","\x77\x72\x69\x74\x65","\x6F\x66\x66\x73\x65\x74\x48\x65\x69\x67\x68\x74","\x6D\x61\x72\x67\x69\x6E\x54\x6F\x70","\x74\x6F\x70","\x6E\x6F\x6E\x65","\x78","\x6D\x69\x6E","\x79","\x63\x6C\x69\x65\x6E\x74\x57\x69\x64\x74\x68","\x73\x70\x6C\x69\x74\x53\x69\x7A\x65","\x6F\x66\x66\x73\x65\x74\x54\x6F\x70","\x73\x63\x72\x6F\x6C\x6C\x54\x6F\x70","\x6D\x61\x78","\x74\x72\x61\x6E\x73\x66\x6F\x72\x6D","\x74\x72\x61\x6E\x73\x6C\x61\x74\x65\x28","\x2C","\x29","\x73\x65\x74\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x6C\x65\x66\x74","\x64\x72\x61\x77\x50\x61\x6E\x65","\x73\x65\x74\x54\x69\x6D\x65\x6F\x75\x74","\x63\x72\x65\x61\x74\x65\x54\x69\x74\x6C\x65","\x61","\x68\x72\x65\x66","\x6A\x61\x76\x61\x73\x63\x72\x69\x70\x74\x3A\x76\x6F\x69\x64\x28\x30\x29\x3B","\x67\x65\x54\x69\x74\x6C\x65","\x63\x72\x65\x61\x74\x65\x54\x68\x75\x6D\x62","\x73\x63\x61\x6C\x65\x41\x6E\x64\x54\x72\x61\x6E\x73\x6C\x61\x74\x65","\x66\x6C\x6F\x6F\x72","\x64\x69\x61\x6C\x65\x63\x74","\x44\x49\x41\x4C\x45\x43\x54\x5F\x53\x56\x47","\x4E\x4F\x5F\x46\x4F","\x63\x6C\x6F\x6E\x65\x4E\x6F\x64\x65","\x6F\x77\x6E\x65\x72\x53\x56\x47\x45\x6C\x65\x6D\x65\x6E\x74","\x67\x65\x74\x43\x61\x6E\x76\x61\x73","\x67\x65\x74\x4D\x6F\x64\x65\x6C","\x49\x53\x5F\x49\x45\x36","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x49\x6D\x61\x67\x65","\x75\x72\x6C\x28","\x74\x72\x61\x6E\x73\x70\x61\x72\x65\x6E\x74\x49\x6D\x61\x67\x65","\x63\x75\x72\x73\x6F\x72","\x70\x6F\x69\x6E\x74\x65\x72","\x6D\x69\x6E\x57\x69\x64\x74\x68","\x6D\x69\x6E\x48\x65\x69\x67\x68\x74","\x66\x6F\x6E\x74\x53\x69\x7A\x65","\x77\x68\x69\x74\x65\x53\x70\x61\x63\x65","\x6E\x6F\x77\x72\x61\x70","\x49\x53\x5F\x49\x45","\x34\x70\x78","\x63\x72\x65\x61\x74\x65\x49\x74\x65\x6D","\x67\x65\x49\x74\x65\x6D","\x70\x61\x64\x64\x69\x6E\x67","\x63\x6C\x69\x63\x6B","\x63\x6F\x6E\x73\x75\x6D\x65","\x63\x72\x65\x61\x74\x65\x44\x72\x6F\x70\x48\x61\x6E\x64\x6C\x65\x72","\x69\x73\x45\x6E\x61\x62\x6C\x65\x64","\x67\x65\x74\x49\x6D\x70\x6F\x72\x74\x61\x62\x6C\x65\x43\x65\x6C\x6C\x73","\x69\x73\x56\x61\x6C\x69\x64\x44\x72\x6F\x70\x54\x61\x72\x67\x65\x74","\x69\x73\x53\x70\x6C\x69\x74\x45\x6E\x61\x62\x6C\x65\x64","\x69\x73\x53\x70\x6C\x69\x74\x54\x61\x72\x67\x65\x74","\x73\x70\x6C\x69\x74\x45\x64\x67\x65","\x69\x6D\x70\x6F\x72\x74\x43\x65\x6C\x6C\x73","\x73\x63\x72\x6F\x6C\x6C\x43\x65\x6C\x6C\x54\x6F\x56\x69\x73\x69\x62\x6C\x65","\x73\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C\x73","\x63\x72\x65\x61\x74\x65\x44\x72\x61\x67\x50\x72\x65\x76\x69\x65\x77","\x62\x6F\x72\x64\x65\x72","\x31\x70\x78\x20\x64\x61\x73\x68\x65\x64\x20\x62\x6C\x61\x63\x6B","\x63\x72\x65\x61\x74\x65\x44\x72\x61\x67\x53\x6F\x75\x72\x63\x65","\x61\x75\x74\x6F\x73\x63\x72\x6F\x6C\x6C","\x6D\x61\x6B\x65\x44\x72\x61\x67\x67\x61\x62\x6C\x65","\x67\x65\x74\x44\x72\x6F\x70\x54\x61\x72\x67\x65\x74","\x61\x70\x70\x6C\x79","\x69\x73\x56\x61\x6C\x69\x64\x52\x6F\x6F\x74","\x61\x64\x64\x43\x6C\x69\x63\x6B\x48\x61\x6E\x64\x6C\x65\x72","\x67\x65\x74\x43\x6C\x69\x65\x6E\x74\x58","\x67\x65\x74\x43\x6C\x69\x65\x6E\x74\x59","\x61\x64\x64\x47\x65\x73\x74\x75\x72\x65\x4C\x69\x73\x74\x65\x6E\x65\x72\x73","\x6D\x6F\x75\x73\x65\x55\x70","\x69\x73\x50\x6F\x70\x75\x70\x54\x72\x69\x67\x67\x65\x72","\x63\x75\x72\x72\x65\x6E\x74\x47\x72\x61\x70\x68","\x74\x6F\x6C\x65\x72\x61\x6E\x63\x65","\x61\x62\x73","\x67\x65\x74\x47\x72\x69\x64\x53\x69\x7A\x65","\x64\x72\x6F\x70","\x63\x72\x65\x61\x74\x65\x58\x6D\x6C\x44\x6F\x63\x75\x6D\x65\x6E\x74","\x6C\x61\x62\x65\x6C","\x66\x6F\x72\x45\x61\x63\x68","\x63\x72\x65\x61\x74\x65\x56\x65\x72\x74\x65\x78\x54\x65\x6D\x70\x6C\x61\x74\x65","\x69\x64","\x74\x65\x78\x74","\x73\x74\x61\x74\x65","\x30","\x4F\x46\x46","\x6F\x74\x68\x65\x72","\x61\x64\x64","\x76\x65\x72\x74\x65\x78","\x63\x72\x65\x61\x74\x65\x56\x65\x72\x74\x65\x78\x54\x65\x6D\x70\x6C\x61\x74\x65\x46\x72\x6F\x6D\x43\x65\x6C\x6C\x73","\x69\x73\x47\x75\x69\x64\x65\x73\x45\x6E\x61\x62\x6C\x65\x64","\x67\x75\x69\x64\x65\x73\x45\x6E\x61\x62\x6C\x65\x64","\x67\x72\x61\x70\x68\x48\x61\x6E\x64\x6C\x65\x72","\x63\x72\x65\x61\x74\x65\x45\x64\x67\x65\x54\x65\x6D\x70\x6C\x61\x74\x65","\x73\x65\x74\x54\x65\x72\x6D\x69\x6E\x61\x6C\x50\x6F\x69\x6E\x74","\x67\x65\x6F\x6D\x65\x74\x72\x79","\x65\x64\x67\x65","\x63\x72\x65\x61\x74\x65\x45\x64\x67\x65\x54\x65\x6D\x70\x6C\x61\x74\x65\x46\x72\x6F\x6D\x43\x65\x6C\x6C\x73","\x73\x65\x74\x44\x65\x66\x61\x75\x6C\x74\x45\x64\x67\x65","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x43\x6F\x6C\x6F\x72","\x23\x66\x66\x66\x66\x66\x66","\x61\x64\x64\x50\x61\x6C\x65\x74\x74\x65","\x67\x65\x53\x69\x64\x65\x62\x61\x72","\x61\x64\x64\x46\x6F\x6C\x64\x69\x6E\x67\x48\x61\x6E\x64\x6C\x65\x72","\x2F\x63\x6F\x6C\x6C\x61\x70\x73\x65\x64\x2E\x67\x69\x66\x29","\x2F\x65\x78\x70\x61\x6E\x64\x65\x64\x2E\x67\x69\x66\x29","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x52\x65\x70\x65\x61\x74","\x6E\x6F\x2D\x72\x65\x70\x65\x61\x74","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x50\x6F\x73\x69\x74\x69\x6F\x6E","\x31\x30\x30\x25\x20\x35\x30\x25","\x77\x61\x69\x74","\x72\x65\x6D\x6F\x76\x65\x50\x61\x6C\x65\x74\x74\x65","\x72\x65\x6D\x6F\x76\x65\x43\x68\x69\x6C\x64","\x69\x6D\x61\x67\x65\x3B\x69\x6D\x61\x67\x65\x3D"];_0xe8d2[0];function Sidebar(_0xdc2ex2,_0xdc2ex3){this[_0xe8d2[1]]= _0xdc2ex2;this[_0xe8d2[2]]= _0xdc2ex3;this[_0xe8d2[3]]= new Object();this[_0xe8d2[4]]= true;this[_0xe8d2[5]]= new Graph(document[_0xe8d2[7]](_0xe8d2[6]),null,null,this[_0xe8d2[1]][_0xe8d2[9]][_0xe8d2[5]][_0xe8d2[8]]());this[_0xe8d2[5]][_0xe8d2[10]]= false;this[_0xe8d2[5]][_0xe8d2[11]]= false;this[_0xe8d2[5]][_0xe8d2[12]](false);this[_0xe8d2[5]][_0xe8d2[13]]= false;this[_0xe8d2[5]][_0xe8d2[14]](false);this[_0xe8d2[5]][_0xe8d2[15]](false);this[_0xe8d2[5]][_0xe8d2[2]][_0xe8d2[17]][_0xe8d2[16]]= _0xe8d2[18];this[_0xe8d2[5]][_0xe8d2[2]][_0xe8d2[17]][_0xe8d2[19]]= _0xe8d2[20];document[_0xe8d2[22]][_0xe8d2[21]](this[_0xe8d2[5]][_0xe8d2[2]]);if(!mxClient[_0xe8d2[23]]){mxEvent[_0xe8d2[26]](document,_0xe8d2[24],mxUtils[_0xe8d2[25]](this,function(){this[_0xe8d2[4]]= true}));mxEvent[_0xe8d2[26]](_0xdc2ex3,_0xe8d2[27],mxUtils[_0xe8d2[25]](this,function(){this[_0xe8d2[4]]= true}));mxEvent[_0xe8d2[26]](document,_0xe8d2[28],mxUtils[_0xe8d2[25]](this,function(){this[_0xe8d2[4]]= false;this[_0xe8d2[29]]()}));mxEvent[_0xe8d2[26]](document,_0xe8d2[30],mxUtils[_0xe8d2[25]](this,function(_0xdc2ex4){var _0xdc2ex5=mxEvent[_0xe8d2[31]](_0xdc2ex4);while(_0xdc2ex5!= null){if(_0xdc2ex5== this[_0xe8d2[32]]){return};_0xdc2ex5= _0xdc2ex5[_0xe8d2[33]]};this[_0xe8d2[29]]()}));mxEvent[_0xe8d2[26]](document,_0xe8d2[34],mxUtils[_0xe8d2[25]](this,function(_0xdc2ex4){if(_0xdc2ex4[_0xe8d2[35]]== null&& _0xdc2ex4[_0xe8d2[36]]== null){this[_0xe8d2[29]]()}}))};this[_0xe8d2[37]](); new Image()[_0xe8d2[38]]= IMAGE_PATH+ _0xe8d2[39]}Sidebar[_0xe8d2[40]][_0xe8d2[37]]= function(){var _0xdc2ex6=STENCIL_PATH;console[_0xe8d2[41]](_0xdc2ex6);this[_0xe8d2[51]](_0xe8d2[42],mxResources[_0xe8d2[44]](_0xe8d2[43]),_0xdc2ex6+ _0xe8d2[45],_0xe8d2[46],[_0xe8d2[47],_0xe8d2[48],_0xe8d2[49],_0xe8d2[50]],[mxResources[_0xe8d2[44]](_0xe8d2[47]),mxResources[_0xe8d2[44]](_0xe8d2[48]),mxResources[_0xe8d2[44]](_0xe8d2[49]),mxResources[_0xe8d2[44]](_0xe8d2[50])])};Sidebar[_0xe8d2[40]][_0xe8d2[52]]= !mxClient[_0xe8d2[23]];Sidebar[_0xe8d2[40]][_0xe8d2[53]]= 16;Sidebar[_0xe8d2[40]][_0xe8d2[54]]= 3;Sidebar[_0xe8d2[40]][_0xe8d2[55]]= 300;Sidebar[_0xe8d2[40]][_0xe8d2[56]]= true;Sidebar[_0xe8d2[40]][_0xe8d2[57]]= STENCIL_PATH+ _0xe8d2[58];Sidebar[_0xe8d2[40]][_0xe8d2[59]]= 34;Sidebar[_0xe8d2[40]][_0xe8d2[60]]= 34;Sidebar[_0xe8d2[40]][_0xe8d2[61]]= 2;Sidebar[_0xe8d2[40]][_0xe8d2[62]]= 9;Sidebar[_0xe8d2[40]][_0xe8d2[63]]= false;Sidebar[_0xe8d2[40]][_0xe8d2[64]]= false;Sidebar[_0xe8d2[40]][_0xe8d2[65]]= function(_0xdc2ex7,_0xdc2ex8,_0xdc2ex9,_0xdc2exa){if(this[_0xe8d2[52]]&& this[_0xe8d2[4]]){if(this[_0xe8d2[32]]!= _0xdc2ex7){if(this[_0xe8d2[66]]!= null){window[_0xe8d2[67]](this[_0xe8d2[66]]);this[_0xe8d2[66]]= null};var _0xdc2exb=mxUtils[_0xe8d2[25]](this,function(){if(this[_0xe8d2[68]]== null){this[_0xe8d2[68]]= document[_0xe8d2[7]](_0xe8d2[6]);this[_0xe8d2[68]][_0xe8d2[69]]= _0xe8d2[70];document[_0xe8d2[22]][_0xe8d2[21]](this[_0xe8d2[68]]);this[_0xe8d2[71]]= new Graph(this[_0xe8d2[68]],null,null,this[_0xe8d2[1]][_0xe8d2[9]][_0xe8d2[5]][_0xe8d2[8]]());this[_0xe8d2[71]][_0xe8d2[73]][_0xe8d2[72]](this[_0xe8d2[53]],this[_0xe8d2[53]]);this[_0xe8d2[71]][_0xe8d2[10]]= false;this[_0xe8d2[71]][_0xe8d2[11]]= false;this[_0xe8d2[71]][_0xe8d2[13]]= false;this[_0xe8d2[71]][_0xe8d2[14]](false);this[_0xe8d2[71]][_0xe8d2[12]](false);this[_0xe8d2[71]][_0xe8d2[15]](false);if(!mxClient[_0xe8d2[74]]){this[_0xe8d2[71]][_0xe8d2[73]][_0xe8d2[75]][_0xe8d2[17]][_0xe8d2[19]]= _0xe8d2[76]};this[_0xe8d2[77]]= mxUtils[_0xe8d2[78]](IMAGE_PATH+ _0xe8d2[39]);this[_0xe8d2[77]][_0xe8d2[17]][_0xe8d2[19]]= _0xe8d2[20];this[_0xe8d2[77]][_0xe8d2[17]][_0xe8d2[79]]= _0xe8d2[80];this[_0xe8d2[77]][_0xe8d2[17]][_0xe8d2[81]]= _0xe8d2[82];document[_0xe8d2[22]][_0xe8d2[21]](this[_0xe8d2[77]])};this[_0xe8d2[68]][_0xe8d2[17]][_0xe8d2[83]]= _0xe8d2[84];this[_0xe8d2[71]][_0xe8d2[85]]= (_0xdc2exa== null|| _0xdc2exa);this[_0xe8d2[71]][_0xe8d2[87]][_0xe8d2[86]]();this[_0xe8d2[71]][_0xe8d2[88]](_0xdc2ex8);var _0xdc2exc=this[_0xe8d2[71]][_0xe8d2[89]]();var _0xdc2exd=_0xdc2exc[_0xe8d2[79]]+ 2* this[_0xe8d2[53]];var _0xdc2exe=_0xdc2exc[_0xe8d2[81]]+ 2* this[_0xe8d2[53]];if(mxClient[_0xe8d2[90]]){_0xdc2exd+= 4;_0xdc2exe+= 4;this[_0xe8d2[68]][_0xe8d2[17]][_0xe8d2[91]]= _0xe8d2[18]}else {this[_0xe8d2[68]][_0xe8d2[17]][_0xe8d2[91]]= _0xe8d2[92]};this[_0xe8d2[77]][_0xe8d2[17]][_0xe8d2[16]]= _0xe8d2[92];this[_0xe8d2[68]][_0xe8d2[17]][_0xe8d2[79]]= _0xdc2exd+ _0xe8d2[93];if(this[_0xe8d2[64]]&& _0xdc2ex9!= null&& _0xdc2ex9[_0xe8d2[94]]> 0){if(this[_0xe8d2[95]]== null){this[_0xe8d2[95]]= document[_0xe8d2[7]](_0xe8d2[6]);this[_0xe8d2[95]][_0xe8d2[17]][_0xe8d2[96]]= _0xe8d2[97];this[_0xe8d2[95]][_0xe8d2[17]][_0xe8d2[98]]= _0xe8d2[99];this[_0xe8d2[95]][_0xe8d2[17]][_0xe8d2[79]]= _0xe8d2[100];this[_0xe8d2[95]][_0xe8d2[17]][_0xe8d2[91]]= _0xe8d2[18];if(mxClient[_0xe8d2[74]]){this[_0xe8d2[95]][_0xe8d2[17]][_0xe8d2[101]]= _0xe8d2[102]}else {this[_0xe8d2[95]][_0xe8d2[17]][_0xe8d2[19]]= _0xe8d2[20];this[_0xe8d2[95]][_0xe8d2[17]][_0xe8d2[101]]= _0xe8d2[103]};this[_0xe8d2[68]][_0xe8d2[21]](this[_0xe8d2[95]])}else {this[_0xe8d2[95]][_0xe8d2[104]]= _0xe8d2[105]};this[_0xe8d2[95]][_0xe8d2[17]][_0xe8d2[83]]= _0xe8d2[105];mxUtils[_0xe8d2[106]](this[_0xe8d2[95]],_0xdc2ex9);var _0xdc2exf=this[_0xe8d2[95]][_0xe8d2[107]]+ 10;_0xdc2exe+= _0xdc2exf;if(mxClient[_0xe8d2[74]]){this[_0xe8d2[95]][_0xe8d2[17]][_0xe8d2[108]]= (-_0xdc2exf) + _0xe8d2[93]}else {_0xdc2exe-= 6;this[_0xe8d2[95]][_0xe8d2[17]][_0xe8d2[109]]= (_0xdc2exe- _0xdc2exf)+ _0xe8d2[93]}}else {if(this[_0xe8d2[95]]!= null&& this[_0xe8d2[95]][_0xe8d2[33]]!= null){this[_0xe8d2[95]][_0xe8d2[17]][_0xe8d2[83]]= _0xe8d2[110]}};this[_0xe8d2[68]][_0xe8d2[17]][_0xe8d2[81]]= _0xdc2exe+ _0xe8d2[93];var _0xdc2ex10=-Math[_0xe8d2[112]](0,_0xdc2exc[_0xe8d2[111]]- this[_0xe8d2[53]]);var _0xdc2ex11=-Math[_0xe8d2[112]](0,_0xdc2exc[_0xe8d2[113]]- this[_0xe8d2[53]]);var _0xdc2ex12=this[_0xe8d2[2]][_0xe8d2[114]]+ this[_0xe8d2[1]][_0xe8d2[115]]+ 3;var _0xdc2ex13=Math[_0xe8d2[118]](0,(this[_0xe8d2[2]][_0xe8d2[116]]+ _0xdc2ex7[_0xe8d2[116]]- this[_0xe8d2[2]][_0xe8d2[117]]- _0xdc2exe/ 2+ 16));if(mxClient[_0xe8d2[74]]){this[_0xe8d2[71]][_0xe8d2[73]][_0xe8d2[75]][_0xe8d2[123]](_0xe8d2[119],_0xe8d2[120]+ _0xdc2ex10+ _0xe8d2[121]+ _0xdc2ex11+ _0xe8d2[122])}else {this[_0xe8d2[71]][_0xe8d2[73]][_0xe8d2[125]][_0xe8d2[17]][_0xe8d2[124]]= _0xdc2ex10+ _0xe8d2[93];this[_0xe8d2[71]][_0xe8d2[73]][_0xe8d2[125]][_0xe8d2[17]][_0xe8d2[109]]= _0xdc2ex11+ _0xe8d2[93]};_0xdc2ex13+= 90;this[_0xe8d2[68]][_0xe8d2[17]][_0xe8d2[19]]= _0xe8d2[20];this[_0xe8d2[68]][_0xe8d2[17]][_0xe8d2[124]]= _0xdc2ex12+ _0xe8d2[93];this[_0xe8d2[68]][_0xe8d2[17]][_0xe8d2[109]]= _0xdc2ex13+ _0xe8d2[93];this[_0xe8d2[77]][_0xe8d2[17]][_0xe8d2[124]]= (_0xdc2ex12- 13)+ _0xe8d2[93];this[_0xe8d2[77]][_0xe8d2[17]][_0xe8d2[109]]= (_0xdc2ex13+ _0xdc2exe/ 2- 13)+ _0xe8d2[93]});if(this[_0xe8d2[68]]!= null&& this[_0xe8d2[68]][_0xe8d2[17]][_0xe8d2[83]]!= _0xe8d2[110]){_0xdc2exb()}else {this[_0xe8d2[66]]= window[_0xe8d2[126]](_0xdc2exb,this[_0xe8d2[55]])};this[_0xe8d2[32]]= _0xdc2ex7}}};Sidebar[_0xe8d2[40]][_0xe8d2[29]]= function(){if(this[_0xe8d2[66]]!= null){window[_0xe8d2[67]](this[_0xe8d2[66]]);this[_0xe8d2[66]]= null};if(this[_0xe8d2[68]]!= null){this[_0xe8d2[68]][_0xe8d2[17]][_0xe8d2[83]]= _0xe8d2[110];this[_0xe8d2[77]][_0xe8d2[17]][_0xe8d2[16]]= _0xe8d2[18];this[_0xe8d2[32]]= null}};Sidebar[_0xe8d2[40]][_0xe8d2[127]]= function(_0xdc2ex14){var _0xdc2ex7=document[_0xe8d2[7]](_0xe8d2[128]);_0xdc2ex7[_0xe8d2[123]](_0xe8d2[129],_0xe8d2[130]);_0xdc2ex7[_0xe8d2[69]]= _0xe8d2[131];mxUtils[_0xe8d2[106]](_0xdc2ex7,_0xdc2ex14);return _0xdc2ex7};Sidebar[_0xe8d2[40]][_0xe8d2[132]]= function(_0xdc2ex8,_0xdc2exd,_0xdc2exe,_0xdc2ex15,_0xdc2ex9,_0xdc2exa){this[_0xe8d2[5]][_0xe8d2[85]]= (_0xdc2exa== null|| _0xdc2exa);this[_0xe8d2[5]][_0xe8d2[73]][_0xe8d2[133]](1,0,0);this[_0xe8d2[5]][_0xe8d2[88]](_0xdc2ex8);var _0xdc2exc=this[_0xe8d2[5]][_0xe8d2[89]]();var _0xdc2ex16=this[_0xe8d2[54]];var _0xdc2ex17=Math[_0xe8d2[112]]((_0xdc2exd- 2)/ (_0xdc2exc[_0xe8d2[79]]- _0xdc2exc[_0xe8d2[111]]+ _0xdc2ex16),(_0xdc2exe- 2)/ (_0xdc2exc[_0xe8d2[81]]- _0xdc2exc[_0xe8d2[113]]+ _0xdc2ex16));var _0xdc2ex10=-Math[_0xe8d2[112]](_0xdc2exc[_0xe8d2[111]],0);var _0xdc2ex11=-Math[_0xe8d2[112]](_0xdc2exc[_0xe8d2[113]],0);this[_0xe8d2[5]][_0xe8d2[73]][_0xe8d2[133]](_0xdc2ex17,_0xdc2ex10,_0xdc2ex11);_0xdc2exc= this[_0xe8d2[5]][_0xe8d2[89]]();var _0xdc2ex18=Math[_0xe8d2[118]](0,Math[_0xe8d2[134]]((_0xdc2exd- _0xdc2exc[_0xe8d2[79]]- _0xdc2exc[_0xe8d2[111]])/ 2));var _0xdc2exf=Math[_0xe8d2[118]](0,Math[_0xe8d2[134]]((_0xdc2exe- _0xdc2exc[_0xe8d2[81]]- _0xdc2exc[_0xe8d2[113]])/ 2));var _0xdc2ex19=null;if(this[_0xe8d2[5]][_0xe8d2[135]]== mxConstants[_0xe8d2[136]]&& !mxClient[_0xe8d2[137]]){_0xdc2ex19= this[_0xe8d2[5]][_0xe8d2[73]][_0xe8d2[140]]()[_0xe8d2[139]][_0xe8d2[138]](true)}else {_0xdc2ex19= this[_0xe8d2[5]][_0xe8d2[2]][_0xe8d2[138]](false);_0xdc2ex19[_0xe8d2[104]]= this[_0xe8d2[5]][_0xe8d2[2]][_0xe8d2[104]]};this[_0xe8d2[5]][_0xe8d2[141]]()[_0xe8d2[86]]();if(mxClient[_0xe8d2[142]]){_0xdc2ex15[_0xe8d2[17]][_0xe8d2[143]]= _0xe8d2[144]+ this[_0xe8d2[1]][_0xe8d2[9]][_0xe8d2[145]]+ _0xe8d2[122]};var _0xdc2ex1a=3;_0xdc2ex19[_0xe8d2[17]][_0xe8d2[19]]= _0xe8d2[76];_0xdc2ex19[_0xe8d2[17]][_0xe8d2[91]]= _0xe8d2[18];_0xdc2ex19[_0xe8d2[17]][_0xe8d2[146]]= _0xe8d2[147];_0xdc2ex19[_0xe8d2[17]][_0xe8d2[124]]= (_0xdc2ex18+ _0xdc2ex1a)+ _0xe8d2[93];_0xdc2ex19[_0xe8d2[17]][_0xe8d2[109]]= (_0xdc2exf+ _0xdc2ex1a)+ _0xe8d2[93];_0xdc2ex19[_0xe8d2[17]][_0xe8d2[79]]= _0xdc2exd+ _0xe8d2[93];_0xdc2ex19[_0xe8d2[17]][_0xe8d2[81]]= _0xdc2exe+ _0xe8d2[93];_0xdc2ex19[_0xe8d2[17]][_0xe8d2[16]]= _0xe8d2[105];_0xdc2ex19[_0xe8d2[17]][_0xe8d2[148]]= _0xe8d2[105];_0xdc2ex19[_0xe8d2[17]][_0xe8d2[149]]= _0xe8d2[105];_0xdc2ex15[_0xe8d2[21]](_0xdc2ex19);if(this[_0xe8d2[63]]&& _0xdc2ex9!= null){var _0xdc2ex1b=(mxClient[_0xe8d2[90]])?2* this[_0xe8d2[61]]+ 2:0;_0xdc2ex15[_0xe8d2[17]][_0xe8d2[81]]= (this[_0xe8d2[60]]+ _0xdc2ex1b+ this[_0xe8d2[62]]+ 8)+ _0xe8d2[93];var _0xdc2ex1c=document[_0xe8d2[7]](_0xe8d2[6]);_0xdc2ex1c[_0xe8d2[17]][_0xe8d2[150]]= this[_0xe8d2[62]]+ _0xe8d2[93];_0xdc2ex1c[_0xe8d2[17]][_0xe8d2[98]]= _0xe8d2[99];_0xdc2ex1c[_0xe8d2[17]][_0xe8d2[151]]= _0xe8d2[152];if(mxClient[_0xe8d2[153]]){_0xdc2ex1c[_0xe8d2[17]][_0xe8d2[81]]= (this[_0xe8d2[62]]+ 12)+ _0xe8d2[93]};_0xdc2ex1c[_0xe8d2[17]][_0xe8d2[101]]= _0xe8d2[154];mxUtils[_0xe8d2[106]](_0xdc2ex1c,_0xdc2ex9);_0xdc2ex15[_0xe8d2[21]](_0xdc2ex1c)}};Sidebar[_0xe8d2[40]][_0xe8d2[155]]= function(_0xdc2ex8,_0xdc2ex9,_0xdc2exa){var _0xdc2ex7=document[_0xe8d2[7]](_0xe8d2[128]);_0xdc2ex7[_0xe8d2[123]](_0xe8d2[129],_0xe8d2[130]);_0xdc2ex7[_0xe8d2[69]]= _0xe8d2[156];_0xdc2ex7[_0xe8d2[17]][_0xe8d2[91]]= _0xe8d2[18];var _0xdc2ex1b=(mxClient[_0xe8d2[90]])?8+ 2* this[_0xe8d2[61]]:6;_0xdc2ex7[_0xe8d2[17]][_0xe8d2[79]]= (this[_0xe8d2[59]]+ _0xdc2ex1b)+ _0xe8d2[93];_0xdc2ex7[_0xe8d2[17]][_0xe8d2[81]]= (this[_0xe8d2[60]]+ _0xdc2ex1b)+ _0xe8d2[93];_0xdc2ex7[_0xe8d2[17]][_0xe8d2[157]]= this[_0xe8d2[61]]+ _0xe8d2[93];mxEvent[_0xe8d2[26]](_0xdc2ex7,_0xe8d2[158],function(_0xdc2ex4){mxEvent[_0xe8d2[159]](_0xdc2ex4)});this[_0xe8d2[132]](_0xdc2ex8,this[_0xe8d2[59]],this[_0xe8d2[60]],_0xdc2ex7,_0xdc2ex9,_0xdc2exa);return _0xdc2ex7};Sidebar[_0xe8d2[40]][_0xe8d2[160]]= function(_0xdc2ex8,_0xdc2ex1d){return function(_0xdc2ex1e,_0xdc2ex4,_0xdc2ex1f,_0xdc2ex20,_0xdc2ex21){if(_0xdc2ex1e[_0xe8d2[161]]()){_0xdc2ex8= _0xdc2ex1e[_0xe8d2[162]](_0xdc2ex8);if(_0xdc2ex8[_0xe8d2[94]]> 0){var _0xdc2ex22=(_0xdc2ex1f!= null)?_0xdc2ex1e[_0xe8d2[163]](_0xdc2ex1f,_0xdc2ex8,_0xdc2ex4):false;var _0xdc2ex23=null;if(_0xdc2ex1f!= null&& !_0xdc2ex22){_0xdc2ex1f= null};if(_0xdc2ex1d&& _0xdc2ex1e[_0xe8d2[164]]()&& _0xdc2ex1e[_0xe8d2[165]](_0xdc2ex1f,_0xdc2ex8,_0xdc2ex4)){_0xdc2ex1e[_0xe8d2[166]](_0xdc2ex1f,_0xdc2ex8,null,_0xdc2ex20,_0xdc2ex21);_0xdc2ex23= _0xdc2ex8}else {if(_0xdc2ex8[_0xe8d2[94]]> 0){_0xdc2ex23= _0xdc2ex1e[_0xe8d2[167]](_0xdc2ex8,_0xdc2ex20,_0xdc2ex21,_0xdc2ex1f)}};if(_0xdc2ex23!= null&& _0xdc2ex23[_0xe8d2[94]]> 0){_0xdc2ex1e[_0xe8d2[168]](_0xdc2ex23[0]);_0xdc2ex1e[_0xe8d2[169]](_0xdc2ex23)}}}}};Sidebar[_0xe8d2[40]][_0xe8d2[170]]= function(_0xdc2exd,_0xdc2exe){var _0xdc2ex7=document[_0xe8d2[7]](_0xe8d2[6]);_0xdc2ex7[_0xe8d2[17]][_0xe8d2[171]]= _0xe8d2[172];_0xdc2ex7[_0xe8d2[17]][_0xe8d2[79]]= _0xdc2exd+ _0xe8d2[93];_0xdc2ex7[_0xe8d2[17]][_0xe8d2[81]]= _0xdc2exe+ _0xe8d2[93];return _0xdc2ex7};Sidebar[_0xe8d2[40]][_0xe8d2[173]]= function(_0xdc2ex7,_0xdc2ex24,_0xdc2ex25){var _0xdc2ex26=mxUtils[_0xe8d2[175]](_0xdc2ex7,this[_0xe8d2[1]][_0xe8d2[9]][_0xe8d2[5]],_0xdc2ex24,_0xdc2ex25,0,0,this[_0xe8d2[1]][_0xe8d2[9]][_0xe8d2[5]][_0xe8d2[174]],true,true);_0xdc2ex26[_0xe8d2[176]]= function(_0xdc2ex1e,_0xdc2ex20,_0xdc2ex21){var _0xdc2ex1f=mxDragSource[_0xe8d2[40]][_0xe8d2[176]][_0xe8d2[177]](this,arguments);if(!_0xdc2ex1e[_0xe8d2[178]](_0xdc2ex1f)){_0xdc2ex1f= null};return _0xdc2ex1f};return _0xdc2ex26};Sidebar[_0xe8d2[40]][_0xe8d2[179]]= function(_0xdc2ex7,_0xdc2ex27){var _0xdc2ex1e=this[_0xe8d2[1]][_0xe8d2[9]][_0xe8d2[5]];var _0xdc2ex28=null;mxEvent[_0xe8d2[182]](_0xdc2ex7,function(_0xdc2ex4){_0xdc2ex28= new mxPoint(mxEvent[_0xe8d2[180]](_0xdc2ex4),mxEvent[_0xe8d2[181]](_0xdc2ex4))});var _0xdc2ex29=_0xdc2ex27[_0xe8d2[183]];_0xdc2ex27[_0xe8d2[183]]= function(_0xdc2ex4){if(!mxEvent[_0xe8d2[184]](_0xdc2ex4)&& this[_0xe8d2[185]]== null && _0xdc2ex28!= null){var _0xdc2ex2a=_0xdc2ex1e[_0xe8d2[186]];if(Math[_0xe8d2[187]](_0xdc2ex28[_0xe8d2[111]]- mxEvent[_0xe8d2[180]](_0xdc2ex4))<= _0xdc2ex2a&& Math[_0xe8d2[187]](_0xdc2ex28[_0xe8d2[113]]- mxEvent[_0xe8d2[181]](_0xdc2ex4))<= _0xdc2ex2a){var _0xdc2ex2b=_0xdc2ex1e[_0xe8d2[188]]();_0xdc2ex27[_0xe8d2[189]](_0xdc2ex1e,_0xdc2ex4,null,_0xdc2ex2b,_0xdc2ex2b)}};_0xdc2ex29[_0xe8d2[177]](this,arguments);_0xdc2ex28= null}};Sidebar[_0xe8d2[40]][_0xe8d2[190]]= function(_0xdc2ex2c,_0xdc2ex14,_0xdc2ex2d,_0xdc2ex2e){var _0xdc2ex2f=mxUtils[_0xe8d2[190]]();var _0xdc2ex19=_0xdc2ex2f[_0xe8d2[7]](_0xdc2ex2c);_0xdc2ex19[_0xe8d2[123]](_0xe8d2[191],_0xdc2ex14);_0xdc2ex2d[_0xe8d2[192]](function(_0xdc2ex30,_0xdc2ex31){_0xdc2ex19[_0xe8d2[123]](_0xdc2ex30,_0xdc2ex2e[_0xdc2ex31]?_0xdc2ex2e[_0xdc2ex31]:_0xe8d2[105])});return _0xdc2ex19};Sidebar[_0xe8d2[40]][_0xe8d2[193]]= function(_0xdc2ex32,_0xdc2exd,_0xdc2exe,_0xdc2ex33,_0xdc2ex9,_0xdc2exa){var _0xdc2ex2d=[];var _0xdc2ex2e=[];switch(_0xdc2ex33){case _0xe8d2[47]:_0xdc2ex2d= [_0xe8d2[194],_0xe8d2[195],_0xe8d2[196]];_0xdc2ex2e= [_0xe8d2[197],_0xe8d2[105],_0xe8d2[198]];break;case _0xe8d2[50]:_0xdc2ex2d= [_0xe8d2[194],_0xe8d2[195]];_0xdc2ex2e= [_0xe8d2[197],_0xe8d2[105]];break;case _0xe8d2[48]:_0xdc2ex2d= [_0xe8d2[194],_0xe8d2[48],_0xe8d2[199]];_0xdc2ex2e= [_0xe8d2[197],_0xe8d2[105]];break;case _0xe8d2[49]:_0xdc2ex2d= [_0xe8d2[194],_0xe8d2[48],_0xe8d2[200]];_0xdc2ex2e= [_0xe8d2[197],_0xe8d2[105]];break;default:_0xdc2ex2d= [];_0xdc2ex2e= [];break};var _0xdc2ex19=this[_0xe8d2[190]](_0xdc2ex33,_0xdc2ex9,_0xdc2ex2d,_0xdc2ex2e);var _0xdc2ex8=[ new mxCell(_0xdc2ex19, new mxGeometry(0,0,_0xdc2exd,_0xdc2exe),_0xdc2ex32)];_0xdc2ex8[0][_0xe8d2[201]]= true;return this[_0xe8d2[202]](_0xdc2ex8,_0xdc2exd,_0xdc2exe,_0xdc2ex9,_0xdc2exa)};Sidebar[_0xe8d2[40]][_0xe8d2[202]]= function(_0xdc2ex8,_0xdc2exd,_0xdc2exe,_0xdc2ex9,_0xdc2exa){var _0xdc2ex7=this[_0xe8d2[155]](_0xdc2ex8,_0xdc2ex9,_0xdc2exa);var _0xdc2ex27=this[_0xe8d2[173]](_0xdc2ex7,this[_0xe8d2[160]](_0xdc2ex8,true),this[_0xe8d2[170]](_0xdc2exd,_0xdc2exe));this[_0xe8d2[179]](_0xdc2ex7,_0xdc2ex27);_0xdc2ex27[_0xe8d2[203]]= mxUtils[_0xe8d2[25]](this,function(){return this[_0xe8d2[1]][_0xe8d2[9]][_0xe8d2[5]][_0xe8d2[205]][_0xe8d2[204]]});if(!touchStyle){mxEvent[_0xe8d2[26]](_0xdc2ex7,_0xe8d2[30],mxUtils[_0xe8d2[25]](this,function(_0xdc2ex4){this[_0xe8d2[65]](_0xdc2ex7,_0xdc2ex8,_0xdc2ex9,_0xdc2exa)}))};return _0xdc2ex7};Sidebar[_0xe8d2[40]][_0xe8d2[206]]= function(_0xdc2ex32,_0xdc2exd,_0xdc2exe,_0xdc2ex33,_0xdc2ex9,_0xdc2exa){var _0xdc2ex8=[ new mxCell((_0xdc2ex33!= null)?_0xdc2ex33:_0xe8d2[105], new mxGeometry(0,0,_0xdc2exd,_0xdc2exe),_0xdc2ex32)];_0xdc2ex8[0][_0xe8d2[208]][_0xe8d2[207]]( new mxPoint(0,_0xdc2exe),true);_0xdc2ex8[0][_0xe8d2[208]][_0xe8d2[207]]( new mxPoint(_0xdc2exd,0),false);_0xdc2ex8[0][_0xe8d2[208]][_0xe8d2[76]]= true;_0xdc2ex8[0][_0xe8d2[209]]= true;return this[_0xe8d2[210]](_0xdc2ex8,_0xdc2exd,_0xdc2exe,_0xdc2ex9,_0xdc2exa)};Sidebar[_0xe8d2[40]][_0xe8d2[210]]= function(_0xdc2ex8,_0xdc2exd,_0xdc2exe,_0xdc2ex9,_0xdc2exa){var _0xdc2ex7=this[_0xe8d2[155]](_0xdc2ex8,_0xdc2ex9,_0xdc2exa);this[_0xe8d2[173]](_0xdc2ex7,this[_0xe8d2[160]](_0xdc2ex8,false),this[_0xe8d2[170]](_0xdc2exd,_0xdc2exe));var _0xdc2ex1e=this[_0xe8d2[1]][_0xe8d2[9]][_0xe8d2[5]];mxEvent[_0xe8d2[26]](_0xdc2ex7,_0xe8d2[158],mxUtils[_0xe8d2[25]](this,function(_0xdc2ex4){if(this[_0xe8d2[56]]){_0xdc2ex1e[_0xe8d2[211]](_0xdc2ex8[0])};_0xdc2ex7[_0xe8d2[17]][_0xe8d2[212]]= _0xe8d2[213];window[_0xe8d2[126]](function(){_0xdc2ex7[_0xe8d2[17]][_0xe8d2[212]]= _0xe8d2[105]},300);mxEvent[_0xe8d2[159]](_0xdc2ex4)}));touchStyle= false;if(!touchStyle){mxEvent[_0xe8d2[26]](_0xdc2ex7,_0xe8d2[30],mxUtils[_0xe8d2[25]](this,function(_0xdc2ex4){this[_0xe8d2[65]](_0xdc2ex7,_0xdc2ex8,_0xdc2ex9,_0xdc2exa)}))};return _0xdc2ex7};Sidebar[_0xe8d2[40]][_0xe8d2[214]]= function(_0xdc2ex34,_0xdc2ex9,_0xdc2ex35,_0xdc2ex36){var _0xdc2ex7=this[_0xe8d2[127]](_0xdc2ex9);this[_0xe8d2[2]][_0xe8d2[21]](_0xdc2ex7);var _0xdc2ex1c=document[_0xe8d2[7]](_0xe8d2[6]);_0xdc2ex1c[_0xe8d2[69]]= _0xe8d2[215];if(_0xdc2ex35){_0xdc2ex36(_0xdc2ex1c);_0xdc2ex36= null}else {_0xdc2ex1c[_0xe8d2[17]][_0xe8d2[83]]= _0xe8d2[110]};this[_0xe8d2[216]](_0xdc2ex7,_0xdc2ex1c,_0xdc2ex36);var _0xdc2ex37=document[_0xe8d2[7]](_0xe8d2[6]);_0xdc2ex37[_0xe8d2[21]](_0xdc2ex1c);this[_0xe8d2[2]][_0xe8d2[21]](_0xdc2ex37);if(_0xdc2ex34!= null){this[_0xe8d2[3]][_0xdc2ex34]= [_0xdc2ex7,_0xdc2ex37]}};Sidebar[_0xe8d2[40]][_0xe8d2[216]]= function(_0xdc2ex9,_0xdc2ex38,_0xdc2ex39){var _0xdc2ex3a=false;_0xdc2ex9[_0xe8d2[17]][_0xe8d2[143]]= (_0xdc2ex38[_0xe8d2[17]][_0xe8d2[83]]== _0xe8d2[110])?_0xe8d2[144]+ IMAGE_PATH+ _0xe8d2[217]:_0xe8d2[144]+ IMAGE_PATH+ _0xe8d2[218];_0xdc2ex9[_0xe8d2[17]][_0xe8d2[219]]= _0xe8d2[220];_0xdc2ex9[_0xe8d2[17]][_0xe8d2[221]]= _0xe8d2[222];mxEvent[_0xe8d2[26]](_0xdc2ex9,_0xe8d2[158],function(_0xdc2ex4){if(_0xdc2ex38[_0xe8d2[17]][_0xe8d2[83]]== _0xe8d2[110]){if(!_0xdc2ex3a){_0xdc2ex3a= true;if(_0xdc2ex39!= null){_0xdc2ex9[_0xe8d2[17]][_0xe8d2[146]]= _0xe8d2[223];window[_0xe8d2[126]](function(){_0xdc2ex39(_0xdc2ex38);_0xdc2ex9[_0xe8d2[17]][_0xe8d2[146]]= _0xe8d2[105]},0)}};_0xdc2ex9[_0xe8d2[17]][_0xe8d2[143]]= _0xe8d2[144]+ IMAGE_PATH+ _0xe8d2[218];_0xdc2ex38[_0xe8d2[17]][_0xe8d2[83]]= _0xe8d2[84]}else {_0xdc2ex9[_0xe8d2[17]][_0xe8d2[143]]= _0xe8d2[144]+ IMAGE_PATH+ _0xe8d2[217];_0xdc2ex38[_0xe8d2[17]][_0xe8d2[83]]= _0xe8d2[110]};mxEvent[_0xe8d2[159]](_0xdc2ex4)})};Sidebar[_0xe8d2[40]][_0xe8d2[224]]= function(_0xdc2ex34){var _0xdc2ex3b=this[_0xe8d2[3]][_0xdc2ex34];if(_0xdc2ex3b!= null){this[_0xe8d2[3]][_0xdc2ex34]= null;for(var _0xdc2ex3c=0;_0xdc2ex3c< _0xdc2ex3b[_0xe8d2[94]];_0xdc2ex3c++){this[_0xe8d2[2]][_0xe8d2[225]](_0xdc2ex3b[_0xdc2ex3c])};return true};return false};Sidebar[_0xe8d2[40]][_0xe8d2[51]]= function(_0xdc2ex34,_0xdc2ex9,_0xdc2ex3d,_0xdc2ex3e,_0xdc2ex3f,_0xdc2ex40){this[_0xe8d2[214]](_0xdc2ex34,_0xdc2ex9,(_0xdc2ex34=== _0xe8d2[42]),mxUtils[_0xe8d2[25]](this,function(_0xdc2ex38){var _0xdc2ex41=_0xdc2ex40!= null;for(var _0xdc2ex3c=0;_0xdc2ex3c< _0xdc2ex3f[_0xe8d2[94]];_0xdc2ex3c++){var _0xdc2ex42=_0xdc2ex3d+ _0xdc2ex3f[_0xdc2ex3c]+ _0xdc2ex3e;_0xdc2ex38[_0xe8d2[21]](this[_0xe8d2[193]](_0xe8d2[226]+ _0xdc2ex42,80,80,_0xdc2ex3f[_0xdc2ex3c],(_0xdc2ex41)?_0xdc2ex40[_0xdc2ex3c]:null,_0xdc2ex41))}}))} \ No newline at end of file diff --git a/public/assets/plugins/jscripty/js/Toolbar.js b/public/assets/plugins/jscripty/js/Toolbar.js index e563530..f06af23 100644 --- a/public/assets/plugins/jscripty/js/Toolbar.js +++ b/public/assets/plugins/jscripty/js/Toolbar.js @@ -1 +1 @@ -var _0xe9f5=["\x65\x64\x69\x74\x6F\x72\x55\x69","\x63\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x69\x6E\x69\x74","\x68\x69\x64\x65\x4D\x65\x6E\x75","\x62\x69\x6E\x64","\x61\x64\x64\x47\x65\x73\x74\x75\x72\x65\x4C\x69\x73\x74\x65\x6E\x65\x72\x73","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x73\x61\x76\x65","\x70\x75\x62\x6C\x69\x73\x68","\x2D","\x70\x72\x69\x6E\x74","\x75\x6E\x64\x6F","\x72\x65\x64\x6F","\x63\x6F\x70\x79","\x63\x75\x74","\x70\x61\x73\x74\x65","\x64\x65\x6C\x65\x74\x65","\x64\x75\x70\x6C\x69\x63\x61\x74\x65","\x61\x63\x74\x75\x61\x6C\x53\x69\x7A\x65","\x7A\x6F\x6F\x6D\x49\x6E","\x7A\x6F\x6F\x6D\x4F\x75\x74","\x61\x64\x64\x49\x74\x65\x6D\x73","\x48\x65\x6C\x76\x65\x74\x69\x63\x61","\x66\x6F\x6E\x74\x46\x61\x6D\x69\x6C\x79","\x67\x65\x74","\x61\x64\x64\x4D\x65\x6E\x75","\x77\x68\x69\x74\x65\x53\x70\x61\x63\x65","\x73\x74\x79\x6C\x65","\x6E\x6F\x77\x72\x61\x70","\x6F\x76\x65\x72\x66\x6C\x6F\x77","\x68\x69\x64\x64\x65\x6E","\x77\x69\x64\x74\x68","\x37\x30\x70\x78","\x61\x64\x64\x53\x65\x70\x61\x72\x61\x74\x6F\x72","\x31\x32","\x66\x6F\x6E\x74\x53\x69\x7A\x65","\x33\x30\x70\x78","\x62\x6F\x6C\x64","\x69\x74\x61\x6C\x69\x63","\x75\x6E\x64\x65\x72\x6C\x69\x6E\x65","\x67\x72\x61\x70\x68","\x65\x64\x69\x74\x6F\x72","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C","\x67\x65\x74\x53\x74\x61\x74\x65","\x67\x65\x74\x56\x69\x65\x77","\x53\x54\x59\x4C\x45\x5F\x46\x4F\x4E\x54\x46\x41\x4D\x49\x4C\x59","\x53\x54\x59\x4C\x45\x5F\x46\x4F\x4E\x54\x53\x49\x5A\x45","\x6C\x65\x6E\x67\x74\x68","\x73\x75\x62\x73\x74\x72\x69\x6E\x67","\x2E\x2E\x2E","\x69\x6E\x6E\x65\x72\x48\x54\x4D\x4C","\x61\x64\x64\x4C\x69\x73\x74\x65\x6E\x65\x72","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x4D\x6F\x64\x65\x6C","\x67\x65\x74\x4D\x6F\x64\x65\x6C","\x63\x75\x72\x72\x65\x6E\x74\x4D\x65\x6E\x75","\x64\x65\x73\x74\x72\x6F\x79","\x6D\x65\x6E\x75\x73","\x66\x75\x6E\x63\x74","\x61\x64\x64\x4D\x65\x6E\x75\x46\x75\x6E\x63\x74\x69\x6F\x6E","\x73\x74\x61\x74\x65\x43\x68\x61\x6E\x67\x65\x64","\x65\x6E\x61\x62\x6C\x65\x64","\x73\x65\x74\x45\x6E\x61\x62\x6C\x65\x64","\x63\x72\x65\x61\x74\x65\x4C\x61\x62\x65\x6C","\x63\x72\x65\x61\x74\x65\x42\x75\x74\x74\x6F\x6E","\x69\x6E\x69\x74\x45\x6C\x65\x6D\x65\x6E\x74","\x61\x64\x64\x4D\x65\x6E\x75\x48\x61\x6E\x64\x6C\x65\x72","\x61\x70\x70\x65\x6E\x64\x43\x68\x69\x6C\x64","\x64\x69\x76","\x63\x72\x65\x61\x74\x65\x45\x6C\x65\x6D\x65\x6E\x74","\x63\x6C\x61\x73\x73\x4E\x61\x6D\x65","\x67\x65\x53\x65\x70\x61\x72\x61\x74\x6F\x72","\x67\x65\x53\x70\x72\x69\x74\x65\x2D","\x74\x6F\x4C\x6F\x77\x65\x72\x43\x61\x73\x65","\x61\x64\x64\x49\x74\x65\x6D","\x61\x63\x74\x69\x6F\x6E\x73","\x6C\x61\x62\x65\x6C","\x61\x64\x64\x42\x75\x74\x74\x6F\x6E","\x61\x64\x64\x43\x6C\x69\x63\x6B\x48\x61\x6E\x64\x6C\x65\x72","\x61\x64\x64\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x48\x61\x6E\x64\x6C\x65\x72","\x69\x73\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x45\x6D\x70\x74\x79","\x61\x64\x64\x45\x64\x67\x65\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x48\x61\x6E\x64\x6C\x65\x72","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C\x73","\x69\x73\x45\x64\x67\x65","\x74\x61\x62\x69\x6E\x64\x65\x78","\x30","\x73\x65\x74\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x74\x69\x74\x6C\x65","\x61\x64\x64\x45\x6E\x61\x62\x6C\x65\x64\x53\x74\x61\x74\x65","\x20\x67\x65\x44\x69\x73\x61\x62\x6C\x65\x64","\x63\x6C\x69\x63\x6B","\x63\x6F\x6E\x73\x75\x6D\x65","\x61","\x68\x72\x65\x66","\x6A\x61\x76\x61\x73\x63\x72\x69\x70\x74\x3A\x76\x6F\x69\x64\x28\x30\x29\x3B","\x67\x65\x42\x75\x74\x74\x6F\x6E","\x67\x65\x53\x70\x72\x69\x74\x65\x20","\x67\x65\x4C\x61\x62\x65\x6C","\x77\x72\x69\x74\x65","\x70\x61\x6E\x6E\x69\x6E\x67\x48\x61\x6E\x64\x6C\x65\x72","\x20\x67\x65\x54\x6F\x6F\x6C\x62\x61\x72\x4D\x65\x6E\x75","\x73\x68\x6F\x77\x44\x69\x73\x61\x62\x6C\x65\x64","\x6C\x61\x62\x65\x6C\x73","\x61\x75\x74\x6F\x45\x78\x70\x61\x6E\x64","\x6F\x66\x66\x73\x65\x74\x4C\x65\x66\x74","\x6F\x66\x66\x73\x65\x74\x54\x6F\x70","\x6F\x66\x66\x73\x65\x74\x48\x65\x69\x67\x68\x74","\x70\x6F\x70\x75\x70"];function Toolbar(_0x1737x2,_0x1737x3){this[_0xe9f5[0]]= _0x1737x2;this[_0xe9f5[1]]= _0x1737x3;this[_0xe9f5[2]]();mxEvent[_0xe9f5[5]](document,mxUtils[_0xe9f5[4]](this,function(_0x1737x4){this[_0xe9f5[3]]()}))}Toolbar[_0xe9f5[6]][_0xe9f5[2]]= function(){this[_0xe9f5[21]]([_0xe9f5[7],_0xe9f5[8],_0xe9f5[9],_0xe9f5[10],_0xe9f5[11],_0xe9f5[12],_0xe9f5[9],_0xe9f5[13],_0xe9f5[14],_0xe9f5[15],_0xe9f5[16],_0xe9f5[9],_0xe9f5[17],_0xe9f5[9],_0xe9f5[18],_0xe9f5[19],_0xe9f5[20],_0xe9f5[9]]);var _0x1737x5=this[_0xe9f5[25]](_0xe9f5[22],mxResources[_0xe9f5[24]](_0xe9f5[23]),true,_0xe9f5[23]);_0x1737x5[_0xe9f5[27]][_0xe9f5[26]]= _0xe9f5[28];_0x1737x5[_0xe9f5[27]][_0xe9f5[29]]= _0xe9f5[30];_0x1737x5[_0xe9f5[27]][_0xe9f5[31]]= _0xe9f5[32];this[_0xe9f5[33]]();var _0x1737x6=this[_0xe9f5[25]](_0xe9f5[34],mxResources[_0xe9f5[24]](_0xe9f5[35]),true,_0xe9f5[35]);_0x1737x6[_0xe9f5[27]][_0xe9f5[26]]= _0xe9f5[28];_0x1737x6[_0xe9f5[27]][_0xe9f5[29]]= _0xe9f5[30];_0x1737x6[_0xe9f5[27]][_0xe9f5[31]]= _0xe9f5[36];this[_0xe9f5[21]]([_0xe9f5[9],_0xe9f5[37],_0xe9f5[38],_0xe9f5[39]]);var _0x1737x7=this[_0xe9f5[0]][_0xe9f5[41]][_0xe9f5[40]];var _0x1737x8=mxUtils[_0xe9f5[4]](this,function(){var _0x1737x9=_0xe9f5[22];var _0x1737xa=_0xe9f5[34];var _0x1737xb=_0x1737x7[_0xe9f5[44]]()[_0xe9f5[43]](_0x1737x7[_0xe9f5[42]]());if(_0x1737xb!= null){_0x1737x9= _0x1737xb[_0xe9f5[27]][mxConstants[_0xe9f5[45]]]|| _0x1737x9;_0x1737xa= _0x1737xb[_0xe9f5[27]][mxConstants[_0xe9f5[46]]]|| _0x1737xa;if(_0x1737x9[_0xe9f5[47]]> 10){_0x1737x9= _0x1737x9[_0xe9f5[48]](0,8)+ _0xe9f5[49]};_0x1737x5[_0xe9f5[50]]= _0x1737x9;_0x1737x6[_0xe9f5[50]]= _0x1737xa}});_0x1737x7[_0xe9f5[52]]()[_0xe9f5[51]](mxEvent.CHANGE,_0x1737x8);_0x1737x7[_0xe9f5[53]]()[_0xe9f5[51]](mxEvent.CHANGE,_0x1737x8)};Toolbar[_0xe9f5[6]][_0xe9f5[3]]= function(){if(this[_0xe9f5[54]]!= null){this[_0xe9f5[54]][_0xe9f5[3]]();this[_0xe9f5[54]][_0xe9f5[55]]();this[_0xe9f5[54]]= null}};Toolbar[_0xe9f5[6]][_0xe9f5[25]]= function(_0x1737xc,_0x1737xd,_0x1737xe,_0x1737xf){var _0x1737x10=this[_0xe9f5[0]][_0xe9f5[56]][_0xe9f5[24]](_0x1737xf);var _0x1737x11=this[_0xe9f5[58]](_0x1737xc,_0x1737xd,_0x1737xe,_0x1737x10[_0xe9f5[57]]);_0x1737x10[_0xe9f5[51]](_0xe9f5[59],function(){_0x1737x11[_0xe9f5[61]](_0x1737x10[_0xe9f5[60]])});return _0x1737x11};Toolbar[_0xe9f5[6]][_0xe9f5[58]]= function(_0x1737xc,_0x1737xd,_0x1737xe,_0x1737x12){var _0x1737x11=(_0x1737xe)?this[_0xe9f5[62]](_0x1737xc):this[_0xe9f5[63]](_0x1737xc);this[_0xe9f5[64]](_0x1737x11,_0x1737xd);this[_0xe9f5[65]](_0x1737x11,_0x1737xe,_0x1737x12);this[_0xe9f5[1]][_0xe9f5[66]](_0x1737x11);return _0x1737x11};Toolbar[_0xe9f5[6]][_0xe9f5[33]]= function(){var _0x1737x11=document[_0xe9f5[68]](_0xe9f5[67]);_0x1737x11[_0xe9f5[69]]= _0xe9f5[70];this[_0xe9f5[1]][_0xe9f5[66]](_0x1737x11);return _0x1737x11};Toolbar[_0xe9f5[6]][_0xe9f5[21]]= function(_0x1737x13){for(var _0x1737x14=0;_0x1737x14< _0x1737x13[_0xe9f5[47]];_0x1737x14++){var _0x1737x15=_0x1737x13[_0x1737x14];if(_0x1737x15== _0xe9f5[9]){this[_0xe9f5[33]]()}else {this[_0xe9f5[73]](_0xe9f5[71]+ _0x1737x15[_0xe9f5[72]](),_0x1737x15)}}};Toolbar[_0xe9f5[6]][_0xe9f5[73]]= function(_0x1737x16,_0x1737x15){var _0x1737x17=this[_0xe9f5[0]][_0xe9f5[74]][_0xe9f5[24]](_0x1737x15);var _0x1737x11=null;if(_0x1737x17!= null){_0x1737x11= this[_0xe9f5[76]](_0x1737x16,_0x1737x17[_0xe9f5[75]],_0x1737x17[_0xe9f5[57]]);_0x1737x11[_0xe9f5[61]](_0x1737x17[_0xe9f5[60]]);_0x1737x17[_0xe9f5[51]](_0xe9f5[59],function(){_0x1737x11[_0xe9f5[61]](_0x1737x17[_0xe9f5[60]])})};return _0x1737x11};Toolbar[_0xe9f5[6]][_0xe9f5[76]]= function(_0x1737x18,_0x1737xd,_0x1737x12){var _0x1737x11=this[_0xe9f5[63]](_0x1737x18);this[_0xe9f5[64]](_0x1737x11,_0x1737xd);this[_0xe9f5[77]](_0x1737x11,_0x1737x12);this[_0xe9f5[1]][_0xe9f5[66]](_0x1737x11);return _0x1737x11};Toolbar[_0xe9f5[6]][_0xe9f5[78]]= function(_0x1737x19){var _0x1737x7=this[_0xe9f5[0]][_0xe9f5[41]][_0xe9f5[40]];var _0x1737x1a=function(){var _0x1737x1b=!_0x1737x7[_0xe9f5[79]]();for(var _0x1737x14=0;_0x1737x14< _0x1737x19[_0xe9f5[47]];_0x1737x14++){_0x1737x19[_0x1737x14][_0xe9f5[61]](_0x1737x1b)}};_0x1737x7[_0xe9f5[52]]()[_0xe9f5[51]](mxEvent.CHANGE,_0x1737x1a);_0x1737x1a()};Toolbar[_0xe9f5[6]][_0xe9f5[80]]= function(_0x1737x19){var _0x1737x7=this[_0xe9f5[0]][_0xe9f5[41]][_0xe9f5[40]];var _0x1737x1a=function(){var _0x1737x1c=false;if(!_0x1737x7[_0xe9f5[79]]()){var _0x1737x1d=_0x1737x7[_0xe9f5[81]]();for(var _0x1737x14=0;_0x1737x14< _0x1737x1d[_0xe9f5[47]];_0x1737x14++){if(_0x1737x7[_0xe9f5[53]]()[_0xe9f5[82]](_0x1737x1d[_0x1737x14])){_0x1737x1c= true;break}}};for(var _0x1737x14=0;_0x1737x14< _0x1737x19[_0xe9f5[47]];_0x1737x14++){_0x1737x19[_0x1737x14][_0xe9f5[61]](_0x1737x1c)}};_0x1737x7[_0xe9f5[52]]()[_0xe9f5[51]](mxEvent.CHANGE,_0x1737x1a);_0x1737x1a()};Toolbar[_0xe9f5[6]][_0xe9f5[64]]= function(_0x1737x11,_0x1737xd){_0x1737x11[_0xe9f5[85]](_0xe9f5[83],_0xe9f5[84]);if(_0x1737xd!= null){_0x1737x11[_0xe9f5[85]](_0xe9f5[86],_0x1737xd)};this[_0xe9f5[87]](_0x1737x11)};Toolbar[_0xe9f5[6]][_0xe9f5[87]]= function(_0x1737x11){var _0x1737x18=_0x1737x11[_0xe9f5[69]];_0x1737x11[_0xe9f5[61]]= function(_0x1737x1e){_0x1737x11[_0xe9f5[60]]= _0x1737x1e;if(_0x1737x1e){_0x1737x11[_0xe9f5[69]]= _0x1737x18}else {_0x1737x11[_0xe9f5[69]]= _0x1737x18+ _0xe9f5[88]}};_0x1737x11[_0xe9f5[61]](true)};Toolbar[_0xe9f5[6]][_0xe9f5[77]]= function(_0x1737x11,_0x1737x12){if(_0x1737x12!= null){mxEvent[_0xe9f5[51]](_0x1737x11,_0xe9f5[89],function(_0x1737x4){if(_0x1737x11[_0xe9f5[60]]){_0x1737x12(_0x1737x4)};mxEvent[_0xe9f5[90]](_0x1737x4)})}};Toolbar[_0xe9f5[6]][_0xe9f5[63]]= function(_0x1737x18){var _0x1737x11=document[_0xe9f5[68]](_0xe9f5[91]);_0x1737x11[_0xe9f5[85]](_0xe9f5[92],_0xe9f5[93]);_0x1737x11[_0xe9f5[69]]= _0xe9f5[94];var _0x1737x1f=document[_0xe9f5[68]](_0xe9f5[67]);_0x1737x1f[_0xe9f5[69]]= _0xe9f5[95]+ _0x1737x18;_0x1737x11[_0xe9f5[66]](_0x1737x1f);return _0x1737x11};Toolbar[_0xe9f5[6]][_0xe9f5[62]]= function(_0x1737xc,_0x1737xd){var _0x1737x11=document[_0xe9f5[68]](_0xe9f5[91]);_0x1737x11[_0xe9f5[85]](_0xe9f5[92],_0xe9f5[93]);_0x1737x11[_0xe9f5[69]]= _0xe9f5[96];mxUtils[_0xe9f5[97]](_0x1737x11,_0x1737xc);return _0x1737x11};Toolbar[_0xe9f5[6]][_0xe9f5[65]]= function(_0x1737x11,_0x1737xe,_0x1737x12,_0x1737x20){if(_0x1737x12!= null){var _0x1737x7=this[_0xe9f5[0]][_0xe9f5[41]][_0xe9f5[40]];var _0x1737x10=null;mxEvent[_0xe9f5[51]](_0x1737x11,_0xe9f5[89],mxUtils[_0xe9f5[4]](this,function(_0x1737x4){if(_0x1737x11[_0xe9f5[60]]== null|| _0x1737x11[_0xe9f5[60]]){_0x1737x7[_0xe9f5[98]][_0xe9f5[3]]();_0x1737x10= new mxPopupMenu(_0x1737x12);_0x1737x10[_0xe9f5[67]][_0xe9f5[69]]+= _0xe9f5[99];_0x1737x10[_0xe9f5[100]]= _0x1737x20;_0x1737x10[_0xe9f5[101]]= _0x1737xe;_0x1737x10[_0xe9f5[102]]= true;_0x1737x10[_0xe9f5[106]](_0x1737x11[_0xe9f5[103]],_0x1737x11[_0xe9f5[104]]+ _0x1737x11[_0xe9f5[105]]+ 34,null,_0x1737x4);this[_0xe9f5[54]]= _0x1737x10};mxEvent[_0xe9f5[90]](_0x1737x4)}))}} \ No newline at end of file +var _0x4600=["\x65\x64\x69\x74\x6F\x72\x55\x69","\x63\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x69\x6E\x69\x74","\x68\x69\x64\x65\x4D\x65\x6E\x75","\x62\x69\x6E\x64","\x61\x64\x64\x47\x65\x73\x74\x75\x72\x65\x4C\x69\x73\x74\x65\x6E\x65\x72\x73","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x73\x61\x76\x65","\x70\x75\x62\x6C\x69\x73\x68","\x2D","\x70\x72\x69\x6E\x74","\x75\x6E\x64\x6F","\x72\x65\x64\x6F","\x63\x6F\x70\x79","\x63\x75\x74","\x70\x61\x73\x74\x65","\x64\x65\x6C\x65\x74\x65","\x64\x75\x70\x6C\x69\x63\x61\x74\x65","\x61\x63\x74\x75\x61\x6C\x53\x69\x7A\x65","\x7A\x6F\x6F\x6D\x49\x6E","\x7A\x6F\x6F\x6D\x4F\x75\x74","\x61\x64\x64\x49\x74\x65\x6D\x73","\x48\x65\x6C\x76\x65\x74\x69\x63\x61","\x66\x6F\x6E\x74\x46\x61\x6D\x69\x6C\x79","\x67\x65\x74","\x61\x64\x64\x4D\x65\x6E\x75","\x77\x68\x69\x74\x65\x53\x70\x61\x63\x65","\x73\x74\x79\x6C\x65","\x6E\x6F\x77\x72\x61\x70","\x6F\x76\x65\x72\x66\x6C\x6F\x77","\x68\x69\x64\x64\x65\x6E","\x77\x69\x64\x74\x68","\x37\x30\x70\x78","\x61\x64\x64\x53\x65\x70\x61\x72\x61\x74\x6F\x72","\x31\x32","\x66\x6F\x6E\x74\x53\x69\x7A\x65","\x33\x30\x70\x78","\x62\x6F\x6C\x64","\x69\x74\x61\x6C\x69\x63","\x75\x6E\x64\x65\x72\x6C\x69\x6E\x65","\x67\x72\x61\x70\x68","\x65\x64\x69\x74\x6F\x72","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C","\x67\x65\x74\x53\x74\x61\x74\x65","\x67\x65\x74\x56\x69\x65\x77","\x53\x54\x59\x4C\x45\x5F\x46\x4F\x4E\x54\x46\x41\x4D\x49\x4C\x59","\x53\x54\x59\x4C\x45\x5F\x46\x4F\x4E\x54\x53\x49\x5A\x45","\x6C\x65\x6E\x67\x74\x68","\x73\x75\x62\x73\x74\x72\x69\x6E\x67","\x2E\x2E\x2E","\x69\x6E\x6E\x65\x72\x48\x54\x4D\x4C","\x61\x64\x64\x4C\x69\x73\x74\x65\x6E\x65\x72","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x4D\x6F\x64\x65\x6C","\x67\x65\x74\x4D\x6F\x64\x65\x6C","\x63\x75\x72\x72\x65\x6E\x74\x4D\x65\x6E\x75","\x64\x65\x73\x74\x72\x6F\x79","\x6D\x65\x6E\x75\x73","\x66\x75\x6E\x63\x74","\x61\x64\x64\x4D\x65\x6E\x75\x46\x75\x6E\x63\x74\x69\x6F\x6E","\x73\x74\x61\x74\x65\x43\x68\x61\x6E\x67\x65\x64","\x65\x6E\x61\x62\x6C\x65\x64","\x73\x65\x74\x45\x6E\x61\x62\x6C\x65\x64","\x63\x72\x65\x61\x74\x65\x4C\x61\x62\x65\x6C","\x63\x72\x65\x61\x74\x65\x42\x75\x74\x74\x6F\x6E","\x69\x6E\x69\x74\x45\x6C\x65\x6D\x65\x6E\x74","\x61\x64\x64\x4D\x65\x6E\x75\x48\x61\x6E\x64\x6C\x65\x72","\x61\x70\x70\x65\x6E\x64\x43\x68\x69\x6C\x64","\x64\x69\x76","\x63\x72\x65\x61\x74\x65\x45\x6C\x65\x6D\x65\x6E\x74","\x63\x6C\x61\x73\x73\x4E\x61\x6D\x65","\x67\x65\x53\x65\x70\x61\x72\x61\x74\x6F\x72","\x67\x65\x53\x70\x72\x69\x74\x65\x2D","\x74\x6F\x4C\x6F\x77\x65\x72\x43\x61\x73\x65","\x61\x64\x64\x49\x74\x65\x6D","\x61\x63\x74\x69\x6F\x6E\x73","\x6C\x61\x62\x65\x6C","\x61\x64\x64\x42\x75\x74\x74\x6F\x6E","\x61\x64\x64\x43\x6C\x69\x63\x6B\x48\x61\x6E\x64\x6C\x65\x72","\x61\x64\x64\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x48\x61\x6E\x64\x6C\x65\x72","\x69\x73\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x45\x6D\x70\x74\x79","\x61\x64\x64\x45\x64\x67\x65\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x48\x61\x6E\x64\x6C\x65\x72","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C\x73","\x69\x73\x45\x64\x67\x65","\x74\x61\x62\x69\x6E\x64\x65\x78","\x30","\x73\x65\x74\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x74\x69\x74\x6C\x65","\x61\x64\x64\x45\x6E\x61\x62\x6C\x65\x64\x53\x74\x61\x74\x65","\x20\x67\x65\x44\x69\x73\x61\x62\x6C\x65\x64","\x63\x6C\x69\x63\x6B","\x63\x6F\x6E\x73\x75\x6D\x65","\x61","\x68\x72\x65\x66","\x6A\x61\x76\x61\x73\x63\x72\x69\x70\x74\x3A\x76\x6F\x69\x64\x28\x30\x29\x3B","\x67\x65\x42\x75\x74\x74\x6F\x6E","\x67\x65\x53\x70\x72\x69\x74\x65\x20","\x67\x65\x4C\x61\x62\x65\x6C","\x77\x72\x69\x74\x65","\x70\x61\x6E\x6E\x69\x6E\x67\x48\x61\x6E\x64\x6C\x65\x72","\x20\x67\x65\x54\x6F\x6F\x6C\x62\x61\x72\x4D\x65\x6E\x75","\x73\x68\x6F\x77\x44\x69\x73\x61\x62\x6C\x65\x64","\x6C\x61\x62\x65\x6C\x73","\x61\x75\x74\x6F\x45\x78\x70\x61\x6E\x64","\x6F\x66\x66\x73\x65\x74\x4C\x65\x66\x74","\x6F\x66\x66\x73\x65\x74\x54\x6F\x70","\x6F\x66\x66\x73\x65\x74\x48\x65\x69\x67\x68\x74","\x70\x6F\x70\x75\x70"];function Toolbar(_0xc447x2,_0xc447x3){this[_0x4600[0]]= _0xc447x2;this[_0x4600[1]]= _0xc447x3;this[_0x4600[2]]();mxEvent[_0x4600[5]](document,mxUtils[_0x4600[4]](this,function(_0xc447x4){this[_0x4600[3]]()}))}Toolbar[_0x4600[6]][_0x4600[2]]= function(){this[_0x4600[21]]([_0x4600[7],_0x4600[8],_0x4600[9],_0x4600[10],_0x4600[11],_0x4600[12],_0x4600[9],_0x4600[13],_0x4600[14],_0x4600[15],_0x4600[16],_0x4600[9],_0x4600[17],_0x4600[9],_0x4600[18],_0x4600[19],_0x4600[20],_0x4600[9]]);var _0xc447x5=this[_0x4600[25]](_0x4600[22],mxResources[_0x4600[24]](_0x4600[23]),true,_0x4600[23]);_0xc447x5[_0x4600[27]][_0x4600[26]]= _0x4600[28];_0xc447x5[_0x4600[27]][_0x4600[29]]= _0x4600[30];_0xc447x5[_0x4600[27]][_0x4600[31]]= _0x4600[32];this[_0x4600[33]]();var _0xc447x6=this[_0x4600[25]](_0x4600[34],mxResources[_0x4600[24]](_0x4600[35]),true,_0x4600[35]);_0xc447x6[_0x4600[27]][_0x4600[26]]= _0x4600[28];_0xc447x6[_0x4600[27]][_0x4600[29]]= _0x4600[30];_0xc447x6[_0x4600[27]][_0x4600[31]]= _0x4600[36];this[_0x4600[21]]([_0x4600[9],_0x4600[37],_0x4600[38],_0x4600[39]]);var _0xc447x7=this[_0x4600[0]][_0x4600[41]][_0x4600[40]];var _0xc447x8=mxUtils[_0x4600[4]](this,function(){var _0xc447x9=_0x4600[22];var _0xc447xa=_0x4600[34];var _0xc447xb=_0xc447x7[_0x4600[44]]()[_0x4600[43]](_0xc447x7[_0x4600[42]]());if(_0xc447xb!= null){_0xc447x9= _0xc447xb[_0x4600[27]][mxConstants[_0x4600[45]]]|| _0xc447x9;_0xc447xa= _0xc447xb[_0x4600[27]][mxConstants[_0x4600[46]]]|| _0xc447xa;if(_0xc447x9[_0x4600[47]]> 10){_0xc447x9= _0xc447x9[_0x4600[48]](0,8)+ _0x4600[49]};_0xc447x5[_0x4600[50]]= _0xc447x9;_0xc447x6[_0x4600[50]]= _0xc447xa}});_0xc447x7[_0x4600[52]]()[_0x4600[51]](mxEvent.CHANGE,_0xc447x8);_0xc447x7[_0x4600[53]]()[_0x4600[51]](mxEvent.CHANGE,_0xc447x8)};Toolbar[_0x4600[6]][_0x4600[3]]= function(){if(this[_0x4600[54]]!= null){this[_0x4600[54]][_0x4600[3]]();this[_0x4600[54]][_0x4600[55]]();this[_0x4600[54]]= null}};Toolbar[_0x4600[6]][_0x4600[25]]= function(_0xc447xc,_0xc447xd,_0xc447xe,_0xc447xf){var _0xc447x10=this[_0x4600[0]][_0x4600[56]][_0x4600[24]](_0xc447xf);var _0xc447x11=this[_0x4600[58]](_0xc447xc,_0xc447xd,_0xc447xe,_0xc447x10[_0x4600[57]]);_0xc447x10[_0x4600[51]](_0x4600[59],function(){_0xc447x11[_0x4600[61]](_0xc447x10[_0x4600[60]])});return _0xc447x11};Toolbar[_0x4600[6]][_0x4600[58]]= function(_0xc447xc,_0xc447xd,_0xc447xe,_0xc447x12){var _0xc447x11=(_0xc447xe)?this[_0x4600[62]](_0xc447xc):this[_0x4600[63]](_0xc447xc);this[_0x4600[64]](_0xc447x11,_0xc447xd);this[_0x4600[65]](_0xc447x11,_0xc447xe,_0xc447x12);this[_0x4600[1]][_0x4600[66]](_0xc447x11);return _0xc447x11};Toolbar[_0x4600[6]][_0x4600[33]]= function(){var _0xc447x11=document[_0x4600[68]](_0x4600[67]);_0xc447x11[_0x4600[69]]= _0x4600[70];this[_0x4600[1]][_0x4600[66]](_0xc447x11);return _0xc447x11};Toolbar[_0x4600[6]][_0x4600[21]]= function(_0xc447x13){for(var _0xc447x14=0;_0xc447x14< _0xc447x13[_0x4600[47]];_0xc447x14++){var _0xc447x15=_0xc447x13[_0xc447x14];if(_0xc447x15== _0x4600[9]){this[_0x4600[33]]()}else {this[_0x4600[73]](_0x4600[71]+ _0xc447x15[_0x4600[72]](),_0xc447x15)}}};Toolbar[_0x4600[6]][_0x4600[73]]= function(_0xc447x16,_0xc447x15){var _0xc447x17=this[_0x4600[0]][_0x4600[74]][_0x4600[24]](_0xc447x15);var _0xc447x11=null;if(_0xc447x17!= null){_0xc447x11= this[_0x4600[76]](_0xc447x16,_0xc447x17[_0x4600[75]],_0xc447x17[_0x4600[57]]);_0xc447x11[_0x4600[61]](_0xc447x17[_0x4600[60]]);_0xc447x17[_0x4600[51]](_0x4600[59],function(){_0xc447x11[_0x4600[61]](_0xc447x17[_0x4600[60]])})};return _0xc447x11};Toolbar[_0x4600[6]][_0x4600[76]]= function(_0xc447x18,_0xc447xd,_0xc447x12){var _0xc447x11=this[_0x4600[63]](_0xc447x18);this[_0x4600[64]](_0xc447x11,_0xc447xd);this[_0x4600[77]](_0xc447x11,_0xc447x12);this[_0x4600[1]][_0x4600[66]](_0xc447x11);return _0xc447x11};Toolbar[_0x4600[6]][_0x4600[78]]= function(_0xc447x19){var _0xc447x7=this[_0x4600[0]][_0x4600[41]][_0x4600[40]];var _0xc447x1a=function(){var _0xc447x1b=!_0xc447x7[_0x4600[79]]();for(var _0xc447x14=0;_0xc447x14< _0xc447x19[_0x4600[47]];_0xc447x14++){_0xc447x19[_0xc447x14][_0x4600[61]](_0xc447x1b)}};_0xc447x7[_0x4600[52]]()[_0x4600[51]](mxEvent.CHANGE,_0xc447x1a);_0xc447x1a()};Toolbar[_0x4600[6]][_0x4600[80]]= function(_0xc447x19){var _0xc447x7=this[_0x4600[0]][_0x4600[41]][_0x4600[40]];var _0xc447x1a=function(){var _0xc447x1c=false;if(!_0xc447x7[_0x4600[79]]()){var _0xc447x1d=_0xc447x7[_0x4600[81]]();for(var _0xc447x14=0;_0xc447x14< _0xc447x1d[_0x4600[47]];_0xc447x14++){if(_0xc447x7[_0x4600[53]]()[_0x4600[82]](_0xc447x1d[_0xc447x14])){_0xc447x1c= true;break}}};for(var _0xc447x14=0;_0xc447x14< _0xc447x19[_0x4600[47]];_0xc447x14++){_0xc447x19[_0xc447x14][_0x4600[61]](_0xc447x1c)}};_0xc447x7[_0x4600[52]]()[_0x4600[51]](mxEvent.CHANGE,_0xc447x1a);_0xc447x1a()};Toolbar[_0x4600[6]][_0x4600[64]]= function(_0xc447x11,_0xc447xd){_0xc447x11[_0x4600[85]](_0x4600[83],_0x4600[84]);if(_0xc447xd!= null){_0xc447x11[_0x4600[85]](_0x4600[86],_0xc447xd)};this[_0x4600[87]](_0xc447x11)};Toolbar[_0x4600[6]][_0x4600[87]]= function(_0xc447x11){var _0xc447x18=_0xc447x11[_0x4600[69]];_0xc447x11[_0x4600[61]]= function(_0xc447x1e){_0xc447x11[_0x4600[60]]= _0xc447x1e;if(_0xc447x1e){_0xc447x11[_0x4600[69]]= _0xc447x18}else {_0xc447x11[_0x4600[69]]= _0xc447x18+ _0x4600[88]}};_0xc447x11[_0x4600[61]](true)};Toolbar[_0x4600[6]][_0x4600[77]]= function(_0xc447x11,_0xc447x12){if(_0xc447x12!= null){mxEvent[_0x4600[51]](_0xc447x11,_0x4600[89],function(_0xc447x4){if(_0xc447x11[_0x4600[60]]){_0xc447x12(_0xc447x4)};mxEvent[_0x4600[90]](_0xc447x4)})}};Toolbar[_0x4600[6]][_0x4600[63]]= function(_0xc447x18){var _0xc447x11=document[_0x4600[68]](_0x4600[91]);_0xc447x11[_0x4600[85]](_0x4600[92],_0x4600[93]);_0xc447x11[_0x4600[69]]= _0x4600[94];var _0xc447x1f=document[_0x4600[68]](_0x4600[67]);_0xc447x1f[_0x4600[69]]= _0x4600[95]+ _0xc447x18;_0xc447x11[_0x4600[66]](_0xc447x1f);return _0xc447x11};Toolbar[_0x4600[6]][_0x4600[62]]= function(_0xc447xc,_0xc447xd){var _0xc447x11=document[_0x4600[68]](_0x4600[91]);_0xc447x11[_0x4600[85]](_0x4600[92],_0x4600[93]);_0xc447x11[_0x4600[69]]= _0x4600[96];mxUtils[_0x4600[97]](_0xc447x11,_0xc447xc);return _0xc447x11};Toolbar[_0x4600[6]][_0x4600[65]]= function(_0xc447x11,_0xc447xe,_0xc447x12,_0xc447x20){if(_0xc447x12!= null){var _0xc447x7=this[_0x4600[0]][_0x4600[41]][_0x4600[40]];var _0xc447x10=null;mxEvent[_0x4600[51]](_0xc447x11,_0x4600[89],mxUtils[_0x4600[4]](this,function(_0xc447x4){if(_0xc447x11[_0x4600[60]]== null|| _0xc447x11[_0x4600[60]]){_0xc447x7[_0x4600[98]][_0x4600[3]]();_0xc447x10= new mxPopupMenu(_0xc447x12);_0xc447x10[_0x4600[67]][_0x4600[69]]+= _0x4600[99];_0xc447x10[_0x4600[100]]= _0xc447x20;_0xc447x10[_0x4600[101]]= _0xc447xe;_0xc447x10[_0x4600[102]]= true;_0xc447x10[_0x4600[106]](_0xc447x11[_0x4600[103]],_0xc447x11[_0x4600[104]]+ _0xc447x11[_0x4600[105]]+ 34,null,_0xc447x4);this[_0x4600[54]]= _0xc447x10};mxEvent[_0x4600[90]](_0xc447x4)}))}} \ No newline at end of file diff --git a/public/assets/plugins/jscripty/js/custom.js b/public/assets/plugins/jscripty/js/custom.js index 2bb62e6..fffbf03 100644 --- a/public/assets/plugins/jscripty/js/custom.js +++ b/public/assets/plugins/jscripty/js/custom.js @@ -1 +1 @@ -var _0x30e8=["\x68\x72\x65\x66","\x6C\x6F\x63\x61\x74\x69\x6F\x6E","\x3F","\x6C\x61\x73\x74\x49\x6E\x64\x65\x78\x4F\x66","\x26","\x73\x70\x6C\x69\x74","\x73\x75\x62\x73\x74\x72\x69\x6E\x67","\x6C\x65\x6E\x67\x74\x68","\x3D","\x69\x6E\x64\x65\x78\x4F\x66","\x68\x74\x74\x70\x3A\x2F\x2F\x65\x78\x70\x2E\x64\x72\x61\x77\x2E\x69\x6F\x2F\x49\x6D\x61\x67\x65\x45\x78\x70\x6F\x72\x74\x32\x2F\x65\x78\x70\x6F\x72\x74","\x68\x74\x74\x70\x3A\x2F\x2F\x6C\x6F\x63\x61\x6C\x68\x6F\x73\x74\x3A\x33\x30\x30\x30","\x61\x70\x69\x2F\x6A\x73\x63\x72\x69\x70\x74\x79\x2F\x70\x72\x6F\x6A\x65\x63\x74\x73\x2F","\x61\x70\x69\x2F\x73\x71\x75\x61\x72\x65\x2F\x76\x61\x72\x69\x61\x62\x6C\x65\x73\x2F","\x2F\x61\x73\x73\x65\x74\x73\x2F\x70\x6C\x75\x67\x69\x6E\x73\x2F\x6A\x73\x63\x72\x69\x70\x74\x79\x2F\x73\x74\x65\x6E\x63\x69\x6C\x73","\x2F\x61\x73\x73\x65\x74\x73\x2F\x70\x6C\x75\x67\x69\x6E\x73\x2F\x6D\x78\x67\x72\x61\x70\x68\x2F\x73\x68\x61\x70\x65\x73","\x2F\x61\x73\x73\x65\x74\x73\x2F\x70\x6C\x75\x67\x69\x6E\x73\x2F\x6D\x78\x67\x72\x61\x70\x68\x2F\x69\x6D\x61\x67\x65\x73","\x2F\x61\x73\x73\x65\x74\x73\x2F\x70\x6C\x75\x67\x69\x6E\x73\x2F\x6D\x78\x67\x72\x61\x70\x68\x2F\x73\x74\x79\x6C\x65\x73","\x61\x70\x69\x2F\x6A\x73\x63\x72\x69\x70\x74\x79\x2F\x70\x72\x6F\x6A\x65\x63\x74\x73\x2F\x6F\x70\x65\x6E","\x2F\x61\x73\x73\x65\x74\x73\x2F\x70\x6C\x75\x67\x69\x6E\x73\x2F\x6A\x73\x63\x72\x69\x70\x74\x79\x2F\x74\x65\x6D\x70\x6C\x61\x74\x65\x73","\x2F\x61\x73\x73\x65\x74\x73\x2F\x70\x6C\x75\x67\x69\x6E\x73\x2F\x6A\x73\x63\x72\x69\x70\x74\x79\x2F\x72\x65\x73\x6F\x75\x72\x63\x65\x73","\x2F\x64\x69\x61","\x63\x75\x73\x74\x6F\x6D","\x4E\x47\x5F\x54\x52\x41\x4E\x53\x4C\x41\x54\x45\x5F\x4C\x41\x4E\x47\x5F\x4B\x45\x59","\x67\x65\x74\x49\x74\x65\x6D","\x6C\x6F\x67","\x65\x6E","\x65\x6E\x5F\x45\x4E","\x69\x74","\x6D\x78\x4C\x61\x6E\x67\x75\x61\x67\x65","\x61\x72","\x62\x73","\x63\x73","\x64\x61","\x64\x65","\x65\x6C","\x65\x73","\x65\x73\x2D\x61\x72","\x66\x72","\x68\x75","\x69\x64","\x6A\x61","\x6B\x6F","\x6E\x6C","\x6E\x6F","\x70\x6C","\x70\x74\x2D\x62\x72","\x70\x74","\x72\x6F","\x72\x75","\x73\x72","\x73\x76","\x74\x68","\x74\x72","\x75\x6B","\x7A\x68","\x61\x73\x73\x65\x74\x73\x2F\x70\x6C\x75\x67\x69\x6E\x73\x2F\x6D\x78\x67\x72\x61\x70\x68","\x61\x73\x73\x65\x74\x73\x2F\x70\x6C\x75\x67\x69\x6E\x73\x2F\x6D\x78\x67\x72\x61\x70\x68\x2F\x6A\x73","\x55\x53\x20\x45\x6E\x67\x6C\x69\x73\x68\x20\x46\x65\x6D\x61\x6C\x65","\x55\x53\x20\x45\x6E\x67\x6C\x69\x73\x68\x20\x4D\x61\x6C\x65","\x55\x4B\x20\x45\x6E\x67\x6C\x69\x73\x68\x20\x46\x65\x6D\x61\x6C\x65","\x55\x4B\x20\x45\x6E\x67\x6C\x69\x73\x68\x20\x4D\x61\x6C\x65","\x41\x75\x73\x74\x72\x61\x6C\x69\x61\x6E\x20\x45\x6E\x67\x6C\x69\x73\x68","\x55\x53\x20\x53\x70\x61\x6E\x69\x73\x68\x20\x46\x65\x6D\x61\x6C\x65","\x55\x53\x20\x53\x70\x61\x6E\x69\x73\x68\x20\x4D\x61\x6C\x65","\x43\x68\x69\x6E\x65\x73\x65\x20\x46\x65\x6D\x61\x6C\x65","\x43\x68\x69\x6E\x65\x73\x65\x20\x4D\x61\x6C\x65","\x48\x6F\x6E\x67\x20\x4B\x6F\x6E\x67\x20\x43\x61\x6E\x74\x6F\x6E\x65\x73\x65\x20\x46\x65\x6D\x61\x6C\x65","\x54\x61\x69\x77\x61\x6E\x20\x43\x68\x69\x6E\x65\x73\x65\x20\x46\x65\x6D\x61\x6C\x65","\x4A\x61\x70\x61\x6E\x65\x73\x65\x20\x46\x65\x6D\x61\x6C\x65","\x4A\x61\x70\x61\x6E\x65\x73\x65\x20\x4D\x61\x6C\x65","\x4B\x6F\x72\x65\x61\x6E\x20\x46\x65\x6D\x61\x6C\x65","\x4B\x6F\x72\x65\x61\x6E\x20\x4D\x61\x6C\x65","\x43\x61\x6E\x61\x64\x69\x61\x6E\x20\x45\x6E\x67\x6C\x69\x73\x68\x20\x46\x65\x6D\x61\x6C\x65","\x48\x75\x6E\x67\x61\x72\x69\x61\x6E\x20\x46\x65\x6D\x61\x6C\x65","\x42\x72\x61\x7A\x69\x6C\x69\x61\x6E\x20\x50\x6F\x72\x74\x75\x67\x75\x65\x73\x65\x20\x46\x65\x6D\x61\x6C\x65","\x45\x75\x72\x6F\x70\x65\x61\x6E\x20\x50\x6F\x72\x74\x75\x67\x75\x65\x73\x65\x20\x46\x65\x6D\x61\x6C\x65","\x45\x75\x72\x6F\x70\x65\x61\x6E\x20\x50\x6F\x72\x74\x75\x67\x75\x65\x73\x65\x20\x4D\x61\x6C\x65","\x45\x75\x72\x6F\x70\x65\x61\x6E\x20\x53\x70\x61\x6E\x69\x73\x68\x20\x46\x65\x6D\x61\x6C\x65","\x45\x75\x72\x6F\x70\x65\x61\x6E\x20\x53\x70\x61\x6E\x69\x73\x68\x20\x4D\x61\x6C\x65","\x45\x75\x72\x6F\x70\x65\x61\x6E\x20\x43\x61\x74\x61\x6C\x61\x6E\x20\x46\x65\x6D\x61\x6C\x65","\x45\x75\x72\x6F\x70\x65\x61\x6E\x20\x43\x7A\x65\x63\x68\x20\x46\x65\x6D\x61\x6C\x65","\x45\x75\x72\x6F\x70\x65\x61\x6E\x20\x44\x61\x6E\x69\x73\x68\x20\x46\x65\x6D\x61\x6C\x65","\x45\x75\x72\x6F\x70\x65\x61\x6E\x20\x46\x69\x6E\x6E\x69\x73\x68\x20\x46\x65\x6D\x61\x6C\x65","\x45\x75\x72\x6F\x70\x65\x61\x6E\x20\x46\x72\x65\x6E\x63\x68\x20\x46\x65\x6D\x61\x6C\x65","\x45\x75\x72\x6F\x70\x65\x61\x6E\x20\x46\x72\x65\x6E\x63\x68\x20\x4D\x61\x6C\x65","\x45\x75\x72\x6F\x70\x65\x61\x6E\x20\x4E\x6F\x72\x77\x65\x67\x69\x61\x6E\x20\x46\x65\x6D\x61\x6C\x65","\x45\x75\x72\x6F\x70\x65\x61\x6E\x20\x44\x75\x74\x63\x68\x20\x46\x65\x6D\x61\x6C\x65","\x45\x75\x72\x6F\x70\x65\x61\x6E\x20\x50\x6F\x6C\x69\x73\x68\x20\x46\x65\x6D\x61\x6C\x65","\x45\x75\x72\x6F\x70\x65\x61\x6E\x20\x49\x74\x61\x6C\x69\x61\x6E\x20\x46\x65\x6D\x61\x6C\x65","\x45\x75\x72\x6F\x70\x65\x61\x6E\x20\x54\x75\x72\x6B\x69\x73\x68\x20\x46\x65\x6D\x61\x6C\x65\x09","\x45\x75\x72\x6F\x70\x65\x61\x6E\x20\x54\x75\x72\x6B\x69\x73\x68\x20\x4D\x61\x6C\x65","\x45\x75\x72\x6F\x70\x65\x61\x6E\x20\x47\x65\x72\x6D\x61\x6E\x20\x46\x65\x6D\x61\x6C\x65","\x45\x75\x72\x6F\x70\x65\x61\x6E\x20\x47\x65\x72\x6D\x61\x6E\x20\x4D\x61\x6C\x65","\x52\x75\x73\x73\x69\x61\x6E\x20\x46\x65\x6D\x61\x6C\x65","\x52\x75\x73\x73\x69\x61\x6E\x20\x4D\x61\x6C\x65","\x53\x77\x65\x64\x69\x73\x68\x20\x46\x65\x6D\x61\x6C\x65","\x43\x61\x6E\x61\x64\x69\x61\x6E\x20\x46\x72\x65\x6E\x63\x68\x20\x46\x65\x6D\x61\x6C\x65","\x43\x61\x6E\x61\x64\x69\x61\x6E\x20\x46\x72\x65\x6E\x63\x68\x20\x4D\x61\x6C\x65","\x45\x6E\x67\x6C\x69\x73\x68\x20\x28\x55\x53\x29","\x45\x6E\x67\x6C\x69\x73\x68\x20\x28\x43\x61\x6E\x61\x64\x61\x29","\x45\x6E\x67\x6C\x69\x73\x68\x20\x28\x55\x4B\x29","\x45\x6E\x67\x6C\x69\x73\x68\x20\x28\x41\x75\x73\x74\x72\x61\x6C\x69\x61\x29","\x53\x70\x61\x6E\x69\x73\x68\x20\x28\x53\x70\x61\x69\x6E\x29","\x53\x70\x61\x6E\x69\x73\x68\x20\x28\x4D\x65\x78\x69\x63\x6F\x29","\x49\x74\x61\x6C\x69\x61\x6E\x20\x28\x49\x74\x61\x6C\x79\x29\x20\x2F\x20\x46\x69\x6E\x6E\x69\x73\x68\x20\x28\x46\x69\x6E\x6C\x61\x6E\x64\x29","\x46\x72\x65\x6E\x63\x68\x20\x28\x46\x72\x61\x6E\x63\x65\x29","\x46\x72\x65\x6E\x63\x68\x20\x28\x43\x61\x6E\x61\x64\x61\x29","\x50\x6F\x6C\x69\x73\x68\x20\x28\x50\x6F\x6C\x61\x6E\x64\x29","\x50\x6F\x72\x74\x75\x67\x75\x65\x73\x65\x20\x28\x50\x6F\x72\x74\x75\x67\x61\x6C\x29","\x43\x61\x74\x61\x6C\x61\x6E\x20\x28\x43\x61\x74\x61\x6C\x61\x6E\x29","\x43\x68\x69\x6E\x65\x73\x65\x20\x28\x54\x61\x69\x77\x61\x6E\x29","\x44\x61\x6E\x69\x73\x68\x20\x28\x44\x65\x6E\x6D\x61\x72\x6B\x29","\x47\x65\x72\x6D\x61\x6E\x20\x28\x47\x65\x72\x6D\x61\x6E\x79\x29","\x4A\x61\x70\x61\x6E\x65\x73\x65\x20\x28\x4A\x61\x70\x61\x6E\x29","\x4B\x6F\x72\x65\x61\x6E\x20\x28\x4B\x6F\x72\x65\x61\x29","\x44\x75\x74\x63\x68\x20\x28\x4E\x65\x74\x68\x65\x72\x6C\x61\x6E\x64\x73\x29","\x4E\x6F\x72\x77\x65\x67\x69\x61\x6E\x20\x28\x4E\x6F\x72\x77\x61\x79\x29","\x50\x6F\x72\x74\x75\x67\x75\x65\x73\x65\x20\x28\x42\x72\x61\x7A\x69\x6C\x29","\x52\x75\x73\x73\x69\x61\x6E\x20\x28\x52\x75\x73\x73\x69\x61\x29","\x53\x77\x65\x64\x69\x73\x68\x20\x28\x53\x77\x65\x64\x65\x6E\x29","\x43\x68\x69\x6E\x65\x73\x65\x20\x28\x43\x68\x69\x6E\x61\x29","\x43\x68\x69\x6E\x65\x73\x65\x20\x28\x48\x6F\x6E\x67\x20\x4B\x6F\x6E\x67\x29","\x44\x65\x66\x61\x75\x6C\x74","\x44\x61\x74\x65","\x55\x53\x20\x4D\x6F\x6E\x65\x79","\x4E\x75\x6D\x62\x65\x72\x73\x20\x74\x6F\x20\x39","\x4E\x75\x6D\x62\x65\x72\x73\x20\x74\x6F\x20\x39\x39","\x4E\x75\x6D\x62\x65\x72\x73\x20\x74\x6F\x20\x39\x39\x39","\x54\x69\x6D\x65","\x50\x68\x6F\x6E\x65\x20\x6E\x75\x6D\x62\x65\x72","\x53\x74\x72\x65\x65\x74\x73","\x55\x53\x20\x43\x69\x74\x79\x2F\x53\x74\x61\x74\x65\x73","\x41\x66\x72\x69\x6B\x61\x61\x6E\x73","\x41\x6C\x62\x61\x6E\x69\x61\x6E","\x41\x6D\x68\x61\x72\x69\x63","\x41\x72\x61\x62\x69\x63","\x41\x72\x6D\x65\x6E\x69\x61\x6E","\x41\x7A\x65\x72\x62\x61\x69\x6A\x61\x6E\x69","\x42\x61\x73\x71\x75\x65","\x42\x65\x6C\x61\x72\x75\x73\x69\x61\x6E","\x42\x65\x6E\x67\x61\x6C\x69","\x42\x69\x68\x61\x72\x69","\x42\x6F\x73\x6E\x69\x61\x6E","\x42\x72\x65\x74\x6F\x6E","\x42\x75\x6C\x67\x61\x72\x69\x61\x6E","\x43\x61\x6D\x62\x6F\x64\x69\x61\x6E","\x43\x61\x74\x61\x6C\x61\x6E","\x43\x68\x69\x6E\x65\x73\x65\x20\x28\x53\x69\x6D\x70\x6C\x69\x66\x69\x65\x64\x29","\x43\x68\x69\x6E\x65\x73\x65\x20\x28\x54\x72\x61\x64\x69\x74\x69\x6F\x6E\x61\x6C\x29","\x43\x6F\x72\x73\x69\x63\x61\x6E","\x43\x72\x6F\x61\x74\x69\x61\x6E","\x43\x7A\x65\x63\x68","\x44\x61\x6E\x69\x73\x68","\x44\x75\x74\x63\x68","\x45\x6E\x67\x6C\x69\x73\x68","\x45\x73\x70\x65\x72\x61\x6E\x74\x6F","\x45\x73\x74\x6F\x6E\x69\x61\x6E","\x46\x61\x72\x6F\x65\x73\x65","\x46\x69\x6C\x69\x70\x69\x6E\x6F","\x46\x69\x6E\x6E\x69\x73\x68","\x46\x72\x65\x6E\x63\x68","\x46\x72\x69\x73\x69\x61\x6E","\x47\x61\x6C\x69\x63\x69\x61\x6E","\x47\x65\x6F\x72\x67\x69\x61\x6E","\x47\x65\x72\x6D\x61\x6E","\x47\x72\x65\x65\x6B","\x47\x75\x61\x72\x61\x6E\x69","\x47\x75\x6A\x61\x72\x61\x74\x69","\x48\x61\x63\x6B\x65\x72","\x48\x61\x75\x73\x61","\x48\x65\x62\x72\x65\x77","\x48\x69\x6E\x64\x69","\x48\x75\x6E\x67\x61\x72\x69\x61\x6E","\x49\x63\x65\x6C\x61\x6E\x64\x69\x63","\x49\x6E\x64\x6F\x6E\x65\x73\x69\x61\x6E","\x49\x6E\x74\x65\x72\x6C\x69\x6E\x67\x75\x61","\x49\x72\x69\x73\x68","\x49\x74\x61\x6C\x69\x61\x6E","\x4A\x61\x76\x61\x6E\x65\x73\x65","\x4A\x61\x70\x61\x6E\x65\x73\x65","\x4B\x61\x6E\x6E\x61\x64\x61","\x4B\x61\x7A\x61\x6B\x68","\x4B\x69\x6E\x79\x61\x72\x77\x61\x6E\x64\x61","\x4B\x69\x72\x75\x6E\x64\x69","\x4B\x6C\x69\x6E\x67\x6F\x6E","\x4B\x75\x72\x64\x69\x73\x68","\x4B\x6F\x72\x65\x61\x6E","\x4B\x79\x72\x67\x79\x7A","\x4C\x61\x6F\x74\x68\x69\x61\x6E","\x4C\x61\x74\x69\x6E","\x4C\x61\x74\x76\x69\x61\x6E","\x4C\x69\x6E\x67\x61\x6C\x61","\x4C\x69\x74\x68\x75\x61\x6E\x69\x61\x6E","\x4D\x61\x63\x65\x64\x6F\x6E\x69\x61\x6E","\x4D\x61\x6C\x61\x67\x61\x73\x79","\x4D\x61\x6C\x61\x79","\x4D\x61\x6C\x61\x79\x61\x6C\x61\x6D","\x4D\x61\x6C\x74\x65\x73\x65","\x4D\x61\x6F\x72\x69","\x4D\x61\x72\x61\x74\x68\x69","\x4D\x6F\x6C\x64\x61\x76\x69\x61\x6E","\x4D\x6F\x6E\x67\x6F\x6C\x69\x61\x6E","\x4D\x6F\x6E\x74\x65\x6E\x65\x67\x72\x69\x6E","\x4E\x65\x70\x61\x6C\x69","\x4E\x6F\x72\x77\x65\x67\x69\x61\x6E","\x4E\x6F\x72\x77\x65\x67\x69\x61\x6E\x20\x28\x4E\x79\x6E\x6F\x72\x73\x6B\x29","\x4F\x63\x63\x69\x74\x61\x6E","\x4F\x72\x69\x79\x61","\x4F\x72\x6F\x6D\x6F","\x50\x61\x73\x68\x74\x6F","\x50\x65\x72\x73\x69\x61\x6E","\x50\x69\x72\x61\x74\x65","\x50\x6F\x6C\x69\x73\x68","\x50\x75\x6E\x6A\x61\x62\x69","\x51\x75\x65\x63\x68\x75\x61","\x52\x6F\x6D\x61\x6E\x69\x61\x6E","\x52\x6F\x6D\x61\x6E\x73\x68","\x52\x75\x73\x73\x69\x61\x6E","\x53\x63\x6F\x74\x73\x20\x47\x61\x65\x6C\x69\x63","\x53\x65\x72\x62\x69\x61\x6E","\x53\x65\x72\x62\x6F\x2D\x43\x72\x6F\x61\x74\x69\x61\x6E","\x53\x65\x73\x6F\x74\x68\x6F","\x53\x68\x6F\x6E\x61","\x53\x69\x6E\x64\x68\x69","\x53\x69\x6E\x68\x61\x6C\x65\x73\x65","\x53\x6C\x6F\x76\x61\x6B","\x53\x6C\x6F\x76\x65\x6E\x69\x61\x6E","\x53\x6F\x6D\x61\x6C\x69","\x53\x70\x61\x6E\x69\x73\x68","\x53\x75\x6E\x64\x61\x6E\x65\x73\x65","\x53\x77\x61\x68\x69\x6C\x69","\x53\x77\x65\x64\x69\x73\x68","\x54\x61\x6A\x69\x6B","\x54\x61\x6D\x69\x6C","\x54\x61\x74\x61\x72","\x54\x65\x6C\x75\x67\x75","\x54\x68\x61\x69","\x54\x69\x67\x72\x69\x6E\x79\x61","\x54\x6F\x6E\x67\x61","\x54\x75\x72\x6B\x69\x73\x68","\x54\x75\x72\x6B\x6D\x65\x6E","\x54\x77\x69","\x55\x69\x67\x68\x75\x72","\x55\x6B\x72\x61\x69\x6E\x69\x61\x6E","\x55\x72\x64\x75","\x55\x7A\x62\x65\x6B","\x56\x69\x65\x74\x6E\x61\x6D\x65\x73\x65","\x57\x65\x6C\x73\x68","\x58\x68\x6F\x73\x61","\x59\x69\x64\x64\x69\x73\x68","\x59\x6F\x72\x75\x62\x61","\x5A\x75\x6C\x75"];var urlParams=(function(_0x2220x2){var _0x2220x3= new Object();var _0x2220x4=_0x2220x2[_0x30e8[3]](_0x30e8[2]);if(_0x2220x4> 0){var _0x2220x5=_0x2220x2[_0x30e8[6]](_0x2220x4+ 1)[_0x30e8[5]](_0x30e8[4]);for(var _0x2220x6=0;_0x2220x6< _0x2220x5[_0x30e8[7]];_0x2220x6++){_0x2220x4= _0x2220x5[_0x2220x6][_0x30e8[9]](_0x30e8[8]);if(_0x2220x4> 0){_0x2220x3[_0x2220x5[_0x2220x6][_0x30e8[6]](0,_0x2220x4)]= _0x2220x5[_0x2220x6][_0x30e8[6]](_0x2220x4+ 1)}}};return _0x2220x3})(window[_0x30e8[1]][_0x30e8[0]]);var t0= new Date();var MAX_REQUEST_SIZE=10485760;var MAX_WIDTH=12000;var MAX_HEIGHT=12000;var EXPORT_URL=_0x30e8[10];var SHARE_HOST=_0x30e8[11];var SAVE_URL=_0x30e8[12];var VARIABLE_URL=_0x30e8[13];var STENCIL_PATH=_0x30e8[14];var SHAPES_PATH=_0x30e8[15];var IMAGE_PATH=_0x30e8[16];var STYLE_PATH=_0x30e8[17];var CSS_PATH=_0x30e8[17];var OPEN_FORM=_0x30e8[18];var TEMPLATE_PATH=_0x30e8[19];var RESOURCES_PATH=_0x30e8[20];var RESOURCE_BASE=RESOURCES_PATH+ _0x30e8[21];var tapAndHoldStartsConnection=true;var showConnectorImg=true;var mxLoadResources=false;console[_0x30e8[25]](_0x30e8[22],localStorage[_0x30e8[24]](_0x30e8[23]));switch(localStorage[_0x30e8[24]](_0x30e8[23])){case _0x30e8[27]:mxLanguage= _0x30e8[26];break;case _0x30e8[28]:mxLanguage= _0x30e8[28];break;default:mxLanguage= _0x30e8[28]};console[_0x30e8[25]](_0x30e8[29],mxLanguage);var mxLanguages=[_0x30e8[30],_0x30e8[31],_0x30e8[32],_0x30e8[33],_0x30e8[34],_0x30e8[35],_0x30e8[36],_0x30e8[37],_0x30e8[38],_0x30e8[39],_0x30e8[40],_0x30e8[28],_0x30e8[41],_0x30e8[42],_0x30e8[43],_0x30e8[44],_0x30e8[45],_0x30e8[46],_0x30e8[47],_0x30e8[48],_0x30e8[49],_0x30e8[50],_0x30e8[51],_0x30e8[52],_0x30e8[53],_0x30e8[54],_0x30e8[55]];var mxBasePath=_0x30e8[56];var geBasePath=_0x30e8[57];var ISPEECHLANG={usenglishfemale:_0x30e8[58],usenglishmale:_0x30e8[59],ukenglishfemale:_0x30e8[60],ukenglishmale:_0x30e8[61],auenglishfemale:_0x30e8[62],usspanishfemale:_0x30e8[63],usspanishmale:_0x30e8[64],chchinesefemale:_0x30e8[65],chchinesemale:_0x30e8[66],hkchinesefemale:_0x30e8[67],twchinesefemale:_0x30e8[68],jpjapanesefemale:_0x30e8[69],jpjapanesemale:_0x30e8[70],krkoreanfemale:_0x30e8[71],krkoreanmale:_0x30e8[72],caenglishfemale:_0x30e8[73],huhungarianfemale:_0x30e8[74],brportuguesefemale:_0x30e8[75],eurportuguesefemale:_0x30e8[76],eurportuguesemale:_0x30e8[77],eurspanishfemale:_0x30e8[78],eurspanishmale:_0x30e8[79],eurcatalanfemale:_0x30e8[80],eurczechfemale:_0x30e8[81],eurdanishfemale:_0x30e8[82],eurfinnishfemale:_0x30e8[83],eurfrenchfemale:_0x30e8[84],eurfrenchmale:_0x30e8[85],eurnorwegianfemale:_0x30e8[86],eurdutchfemale:_0x30e8[87],eurpolishfemale:_0x30e8[88],euritalianfemale:_0x30e8[89],eurturkishfemale:_0x30e8[90],eurturkishmale:_0x30e8[91],eurgermanfemale:_0x30e8[92],eurgermanmale:_0x30e8[93],rurussianfemale:_0x30e8[94],rurussianmale:_0x30e8[95],swswedishfemale:_0x30e8[96],cafrenchfemale:_0x30e8[97],cafrenchmale:_0x30e8[98]};var ISPEECHASRLANG={"\x65\x6E\x2D\x55\x53":_0x30e8[99],"\x65\x6E\x2D\x43\x41":_0x30e8[100],"\x65\x6E\x2D\x47\x42":_0x30e8[101],"\x65\x6E\x2D\x41\x55":_0x30e8[102],"\x65\x73\x2D\x45\x53":_0x30e8[103],"\x65\x73\x2D\x4D\x58":_0x30e8[104],"\x69\x74\x2D\x49\x54":_0x30e8[105],"\x66\x72\x2D\x46\x52":_0x30e8[106],"\x66\x72\x2D\x43\x41":_0x30e8[107],"\x70\x6C\x2D\x50\x4C":_0x30e8[108],"\x70\x74\x2D\x50\x54":_0x30e8[109],"\x63\x61\x2D\x45\x53":_0x30e8[110],"\x7A\x68\x2D\x54\x57":_0x30e8[111],"\x64\x61\x2D\x44\x4B":_0x30e8[112],"\x66\x72\x2D\x46\x52":_0x30e8[113],"\x6A\x61\x2D\x4A\x50":_0x30e8[114],"\x6B\x6F\x2D\x4B\x52":_0x30e8[115],"\x6E\x6C\x2D\x4E\x4C":_0x30e8[116],"\x6E\x62\x2D\x4E\x4F":_0x30e8[117],"\x70\x74\x2D\x42\x52":_0x30e8[118],"\x72\x75\x2D\x52\x55":_0x30e8[119],"\x73\x76\x2D\x53\x45":_0x30e8[120],"\x7A\x68\x2D\x43\x4E":_0x30e8[121],"\x7A\x68\x2D\x48\x4B":_0x30e8[122]};var ISPEECHASRMODEL={0:_0x30e8[123],date:_0x30e8[124],usmoney:_0x30e8[125],numbersto9:_0x30e8[126],numbersto99:_0x30e8[127],numbersto999:_0x30e8[128],time:_0x30e8[129],phonenumber:_0x30e8[130],streets:_0x30e8[131],citystate:_0x30e8[132]};var GOOGLETTSLANG={"\x61\x66":_0x30e8[133],"\x73\x71":_0x30e8[134],"\x61\x6D":_0x30e8[135],"\x61\x72":_0x30e8[136],"\x68\x79":_0x30e8[137],"\x61\x7A":_0x30e8[138],"\x65\x75":_0x30e8[139],"\x62\x65":_0x30e8[140],"\x62\x6E":_0x30e8[141],"\x62\x68":_0x30e8[142],"\x62\x73":_0x30e8[143],"\x62\x72":_0x30e8[144],"\x62\x67":_0x30e8[145],"\x6B\x6D":_0x30e8[146],"\x63\x61":_0x30e8[147],"\x7A\x68\x2D\x43\x4E":_0x30e8[148],"\x7A\x68\x2D\x54\x57":_0x30e8[149],"\x63\x6F":_0x30e8[150],"\x68\x72":_0x30e8[151],"\x63\x73":_0x30e8[152],"\x64\x61":_0x30e8[153],"\x6E\x6C":_0x30e8[154],"\x65\x6E":_0x30e8[155],"\x65\x6F":_0x30e8[156],"\x65\x74":_0x30e8[157],"\x66\x6F":_0x30e8[158],"\x74\x6C":_0x30e8[159],"\x66\x69":_0x30e8[160],"\x66\x72":_0x30e8[161],"\x66\x79":_0x30e8[162],"\x67\x6C":_0x30e8[163],"\x6B\x61":_0x30e8[164],"\x64\x65":_0x30e8[165],"\x65\x6C":_0x30e8[166],"\x67\x6E":_0x30e8[167],"\x67\x75":_0x30e8[168],"\x78\x78\x2D\x68\x61\x63\x6B\x65\x72":_0x30e8[169],"\x68\x61":_0x30e8[170],"\x69\x77":_0x30e8[171],"\x68\x69":_0x30e8[172],"\x68\x75":_0x30e8[173],"\x69\x73":_0x30e8[174],"\x69\x64":_0x30e8[175],"\x69\x61":_0x30e8[176],"\x67\x61":_0x30e8[177],"\x69\x74":_0x30e8[178],"\x6A\x77":_0x30e8[179],"\x6A\x61":_0x30e8[180],"\x6B\x6E":_0x30e8[181],"\x6B\x6B":_0x30e8[182],"\x72\x77":_0x30e8[183],"\x72\x6E":_0x30e8[184],"\x78\x78\x2D\x6B\x6C\x69\x6E\x67\x6F\x6E":_0x30e8[185],"\x6B\x75":_0x30e8[186],"\x6B\x6F":_0x30e8[187],"\x6B\x79":_0x30e8[188],"\x6C\x6F":_0x30e8[189],"\x6C\x61":_0x30e8[190],"\x6C\x76":_0x30e8[191],"\x6C\x6E":_0x30e8[192],"\x6C\x74":_0x30e8[193],"\x6D\x6B":_0x30e8[194],"\x6D\x67":_0x30e8[195],"\x6D\x73":_0x30e8[196],"\x6D\x6C":_0x30e8[197],"\x6D\x74":_0x30e8[198],"\x6D\x69":_0x30e8[199],"\x6D\x72":_0x30e8[200],"\x6D\x6F":_0x30e8[201],"\x6D\x6E":_0x30e8[202],"\x73\x72\x2D\x4D\x45":_0x30e8[203],"\x6E\x65":_0x30e8[204],"\x6E\x6F":_0x30e8[205],"\x6E\x6E":_0x30e8[206],"\x6F\x63":_0x30e8[207],"\x6F\x72":_0x30e8[208],"\x6F\x6D":_0x30e8[209],"\x70\x73":_0x30e8[210],"\x66\x61":_0x30e8[211],"\x78\x78\x2D\x70\x69\x72\x61\x74\x65":_0x30e8[212],"\x70\x6C":_0x30e8[213],"\x70\x74\x2D\x42\x52":_0x30e8[118],"\x70\x74\x2D\x50\x54":_0x30e8[109],"\x70\x61":_0x30e8[214],"\x71\x75":_0x30e8[215],"\x72\x6F":_0x30e8[216],"\x72\x6D":_0x30e8[217],"\x72\x75":_0x30e8[218],"\x67\x64":_0x30e8[219],"\x73\x72":_0x30e8[220],"\x73\x68":_0x30e8[221],"\x73\x74":_0x30e8[222],"\x73\x6E":_0x30e8[223],"\x73\x64":_0x30e8[224],"\x73\x69":_0x30e8[225],"\x73\x6B":_0x30e8[226],"\x73\x6C":_0x30e8[227],"\x73\x6F":_0x30e8[228],"\x65\x73":_0x30e8[229],"\x73\x75":_0x30e8[230],"\x73\x77":_0x30e8[231],"\x73\x76":_0x30e8[232],"\x74\x67":_0x30e8[233],"\x74\x61":_0x30e8[234],"\x74\x74":_0x30e8[235],"\x74\x65":_0x30e8[236],"\x74\x68":_0x30e8[237],"\x74\x69":_0x30e8[238],"\x74\x6F":_0x30e8[239],"\x74\x72":_0x30e8[240],"\x74\x6B":_0x30e8[241],"\x74\x77":_0x30e8[242],"\x75\x67":_0x30e8[243],"\x75\x6B":_0x30e8[244],"\x75\x72":_0x30e8[245],"\x75\x7A":_0x30e8[246],"\x76\x69":_0x30e8[247],"\x63\x79":_0x30e8[248],"\x78\x68":_0x30e8[249],"\x79\x69":_0x30e8[250],"\x79\x6F":_0x30e8[251],"\x7A\x75":_0x30e8[252]} \ No newline at end of file +var _0x3cf3=["\x68\x72\x65\x66","\x6C\x6F\x63\x61\x74\x69\x6F\x6E","\x3F","\x6C\x61\x73\x74\x49\x6E\x64\x65\x78\x4F\x66","\x26","\x73\x70\x6C\x69\x74","\x73\x75\x62\x73\x74\x72\x69\x6E\x67","\x6C\x65\x6E\x67\x74\x68","\x3D","\x69\x6E\x64\x65\x78\x4F\x66","\x68\x74\x74\x70\x3A\x2F\x2F\x65\x78\x70\x2E\x64\x72\x61\x77\x2E\x69\x6F\x2F\x49\x6D\x61\x67\x65\x45\x78\x70\x6F\x72\x74\x32\x2F\x65\x78\x70\x6F\x72\x74","\x68\x74\x74\x70\x3A\x2F\x2F\x6C\x6F\x63\x61\x6C\x68\x6F\x73\x74\x3A\x33\x30\x30\x30","\x61\x70\x69\x2F\x6A\x73\x63\x72\x69\x70\x74\x79\x2F\x70\x72\x6F\x6A\x65\x63\x74\x73\x2F","\x61\x70\x69\x2F\x73\x71\x75\x61\x72\x65\x2F\x76\x61\x72\x69\x61\x62\x6C\x65\x73\x2F","\x2F\x61\x73\x73\x65\x74\x73\x2F\x70\x6C\x75\x67\x69\x6E\x73\x2F\x6A\x73\x63\x72\x69\x70\x74\x79\x2F\x73\x74\x65\x6E\x63\x69\x6C\x73","\x2F\x61\x73\x73\x65\x74\x73\x2F\x70\x6C\x75\x67\x69\x6E\x73\x2F\x6D\x78\x67\x72\x61\x70\x68\x2F\x73\x68\x61\x70\x65\x73","\x2F\x61\x73\x73\x65\x74\x73\x2F\x70\x6C\x75\x67\x69\x6E\x73\x2F\x6D\x78\x67\x72\x61\x70\x68\x2F\x69\x6D\x61\x67\x65\x73","\x2F\x61\x73\x73\x65\x74\x73\x2F\x70\x6C\x75\x67\x69\x6E\x73\x2F\x6D\x78\x67\x72\x61\x70\x68\x2F\x73\x74\x79\x6C\x65\x73","\x61\x70\x69\x2F\x6A\x73\x63\x72\x69\x70\x74\x79\x2F\x70\x72\x6F\x6A\x65\x63\x74\x73\x2F\x6F\x70\x65\x6E","\x2F\x61\x73\x73\x65\x74\x73\x2F\x70\x6C\x75\x67\x69\x6E\x73\x2F\x6A\x73\x63\x72\x69\x70\x74\x79\x2F\x74\x65\x6D\x70\x6C\x61\x74\x65\x73","\x2F\x61\x73\x73\x65\x74\x73\x2F\x70\x6C\x75\x67\x69\x6E\x73\x2F\x6A\x73\x63\x72\x69\x70\x74\x79\x2F\x72\x65\x73\x6F\x75\x72\x63\x65\x73","\x2F\x64\x69\x61","\x63\x75\x73\x74\x6F\x6D","\x4E\x47\x5F\x54\x52\x41\x4E\x53\x4C\x41\x54\x45\x5F\x4C\x41\x4E\x47\x5F\x4B\x45\x59","\x67\x65\x74\x49\x74\x65\x6D","\x6C\x6F\x67","\x65\x6E","\x65\x6E\x5F\x45\x4E","\x69\x74","\x6D\x78\x4C\x61\x6E\x67\x75\x61\x67\x65","\x61\x72","\x62\x73","\x63\x73","\x64\x61","\x64\x65","\x65\x6C","\x65\x73","\x65\x73\x2D\x61\x72","\x66\x72","\x68\x75","\x69\x64","\x6A\x61","\x6B\x6F","\x6E\x6C","\x6E\x6F","\x70\x6C","\x70\x74\x2D\x62\x72","\x70\x74","\x72\x6F","\x72\x75","\x73\x72","\x73\x76","\x74\x68","\x74\x72","\x75\x6B","\x7A\x68","\x61\x73\x73\x65\x74\x73\x2F\x70\x6C\x75\x67\x69\x6E\x73\x2F\x6D\x78\x67\x72\x61\x70\x68","\x61\x73\x73\x65\x74\x73\x2F\x70\x6C\x75\x67\x69\x6E\x73\x2F\x6D\x78\x67\x72\x61\x70\x68\x2F\x6A\x73","\x55\x53\x20\x45\x6E\x67\x6C\x69\x73\x68\x20\x46\x65\x6D\x61\x6C\x65","\x55\x53\x20\x45\x6E\x67\x6C\x69\x73\x68\x20\x4D\x61\x6C\x65","\x55\x4B\x20\x45\x6E\x67\x6C\x69\x73\x68\x20\x46\x65\x6D\x61\x6C\x65","\x55\x4B\x20\x45\x6E\x67\x6C\x69\x73\x68\x20\x4D\x61\x6C\x65","\x41\x75\x73\x74\x72\x61\x6C\x69\x61\x6E\x20\x45\x6E\x67\x6C\x69\x73\x68","\x55\x53\x20\x53\x70\x61\x6E\x69\x73\x68\x20\x46\x65\x6D\x61\x6C\x65","\x55\x53\x20\x53\x70\x61\x6E\x69\x73\x68\x20\x4D\x61\x6C\x65","\x43\x68\x69\x6E\x65\x73\x65\x20\x46\x65\x6D\x61\x6C\x65","\x43\x68\x69\x6E\x65\x73\x65\x20\x4D\x61\x6C\x65","\x48\x6F\x6E\x67\x20\x4B\x6F\x6E\x67\x20\x43\x61\x6E\x74\x6F\x6E\x65\x73\x65\x20\x46\x65\x6D\x61\x6C\x65","\x54\x61\x69\x77\x61\x6E\x20\x43\x68\x69\x6E\x65\x73\x65\x20\x46\x65\x6D\x61\x6C\x65","\x4A\x61\x70\x61\x6E\x65\x73\x65\x20\x46\x65\x6D\x61\x6C\x65","\x4A\x61\x70\x61\x6E\x65\x73\x65\x20\x4D\x61\x6C\x65","\x4B\x6F\x72\x65\x61\x6E\x20\x46\x65\x6D\x61\x6C\x65","\x4B\x6F\x72\x65\x61\x6E\x20\x4D\x61\x6C\x65","\x43\x61\x6E\x61\x64\x69\x61\x6E\x20\x45\x6E\x67\x6C\x69\x73\x68\x20\x46\x65\x6D\x61\x6C\x65","\x48\x75\x6E\x67\x61\x72\x69\x61\x6E\x20\x46\x65\x6D\x61\x6C\x65","\x42\x72\x61\x7A\x69\x6C\x69\x61\x6E\x20\x50\x6F\x72\x74\x75\x67\x75\x65\x73\x65\x20\x46\x65\x6D\x61\x6C\x65","\x45\x75\x72\x6F\x70\x65\x61\x6E\x20\x50\x6F\x72\x74\x75\x67\x75\x65\x73\x65\x20\x46\x65\x6D\x61\x6C\x65","\x45\x75\x72\x6F\x70\x65\x61\x6E\x20\x50\x6F\x72\x74\x75\x67\x75\x65\x73\x65\x20\x4D\x61\x6C\x65","\x45\x75\x72\x6F\x70\x65\x61\x6E\x20\x53\x70\x61\x6E\x69\x73\x68\x20\x46\x65\x6D\x61\x6C\x65","\x45\x75\x72\x6F\x70\x65\x61\x6E\x20\x53\x70\x61\x6E\x69\x73\x68\x20\x4D\x61\x6C\x65","\x45\x75\x72\x6F\x70\x65\x61\x6E\x20\x43\x61\x74\x61\x6C\x61\x6E\x20\x46\x65\x6D\x61\x6C\x65","\x45\x75\x72\x6F\x70\x65\x61\x6E\x20\x43\x7A\x65\x63\x68\x20\x46\x65\x6D\x61\x6C\x65","\x45\x75\x72\x6F\x70\x65\x61\x6E\x20\x44\x61\x6E\x69\x73\x68\x20\x46\x65\x6D\x61\x6C\x65","\x45\x75\x72\x6F\x70\x65\x61\x6E\x20\x46\x69\x6E\x6E\x69\x73\x68\x20\x46\x65\x6D\x61\x6C\x65","\x45\x75\x72\x6F\x70\x65\x61\x6E\x20\x46\x72\x65\x6E\x63\x68\x20\x46\x65\x6D\x61\x6C\x65","\x45\x75\x72\x6F\x70\x65\x61\x6E\x20\x46\x72\x65\x6E\x63\x68\x20\x4D\x61\x6C\x65","\x45\x75\x72\x6F\x70\x65\x61\x6E\x20\x4E\x6F\x72\x77\x65\x67\x69\x61\x6E\x20\x46\x65\x6D\x61\x6C\x65","\x45\x75\x72\x6F\x70\x65\x61\x6E\x20\x44\x75\x74\x63\x68\x20\x46\x65\x6D\x61\x6C\x65","\x45\x75\x72\x6F\x70\x65\x61\x6E\x20\x50\x6F\x6C\x69\x73\x68\x20\x46\x65\x6D\x61\x6C\x65","\x45\x75\x72\x6F\x70\x65\x61\x6E\x20\x49\x74\x61\x6C\x69\x61\x6E\x20\x46\x65\x6D\x61\x6C\x65","\x45\x75\x72\x6F\x70\x65\x61\x6E\x20\x54\x75\x72\x6B\x69\x73\x68\x20\x46\x65\x6D\x61\x6C\x65\x09","\x45\x75\x72\x6F\x70\x65\x61\x6E\x20\x54\x75\x72\x6B\x69\x73\x68\x20\x4D\x61\x6C\x65","\x45\x75\x72\x6F\x70\x65\x61\x6E\x20\x47\x65\x72\x6D\x61\x6E\x20\x46\x65\x6D\x61\x6C\x65","\x45\x75\x72\x6F\x70\x65\x61\x6E\x20\x47\x65\x72\x6D\x61\x6E\x20\x4D\x61\x6C\x65","\x52\x75\x73\x73\x69\x61\x6E\x20\x46\x65\x6D\x61\x6C\x65","\x52\x75\x73\x73\x69\x61\x6E\x20\x4D\x61\x6C\x65","\x53\x77\x65\x64\x69\x73\x68\x20\x46\x65\x6D\x61\x6C\x65","\x43\x61\x6E\x61\x64\x69\x61\x6E\x20\x46\x72\x65\x6E\x63\x68\x20\x46\x65\x6D\x61\x6C\x65","\x43\x61\x6E\x61\x64\x69\x61\x6E\x20\x46\x72\x65\x6E\x63\x68\x20\x4D\x61\x6C\x65","\x45\x6E\x67\x6C\x69\x73\x68\x20\x28\x55\x53\x29","\x45\x6E\x67\x6C\x69\x73\x68\x20\x28\x43\x61\x6E\x61\x64\x61\x29","\x45\x6E\x67\x6C\x69\x73\x68\x20\x28\x55\x4B\x29","\x45\x6E\x67\x6C\x69\x73\x68\x20\x28\x41\x75\x73\x74\x72\x61\x6C\x69\x61\x29","\x53\x70\x61\x6E\x69\x73\x68\x20\x28\x53\x70\x61\x69\x6E\x29","\x53\x70\x61\x6E\x69\x73\x68\x20\x28\x4D\x65\x78\x69\x63\x6F\x29","\x49\x74\x61\x6C\x69\x61\x6E\x20\x28\x49\x74\x61\x6C\x79\x29\x20\x2F\x20\x46\x69\x6E\x6E\x69\x73\x68\x20\x28\x46\x69\x6E\x6C\x61\x6E\x64\x29","\x46\x72\x65\x6E\x63\x68\x20\x28\x46\x72\x61\x6E\x63\x65\x29","\x46\x72\x65\x6E\x63\x68\x20\x28\x43\x61\x6E\x61\x64\x61\x29","\x50\x6F\x6C\x69\x73\x68\x20\x28\x50\x6F\x6C\x61\x6E\x64\x29","\x50\x6F\x72\x74\x75\x67\x75\x65\x73\x65\x20\x28\x50\x6F\x72\x74\x75\x67\x61\x6C\x29","\x43\x61\x74\x61\x6C\x61\x6E\x20\x28\x43\x61\x74\x61\x6C\x61\x6E\x29","\x43\x68\x69\x6E\x65\x73\x65\x20\x28\x54\x61\x69\x77\x61\x6E\x29","\x44\x61\x6E\x69\x73\x68\x20\x28\x44\x65\x6E\x6D\x61\x72\x6B\x29","\x47\x65\x72\x6D\x61\x6E\x20\x28\x47\x65\x72\x6D\x61\x6E\x79\x29","\x4A\x61\x70\x61\x6E\x65\x73\x65\x20\x28\x4A\x61\x70\x61\x6E\x29","\x4B\x6F\x72\x65\x61\x6E\x20\x28\x4B\x6F\x72\x65\x61\x29","\x44\x75\x74\x63\x68\x20\x28\x4E\x65\x74\x68\x65\x72\x6C\x61\x6E\x64\x73\x29","\x4E\x6F\x72\x77\x65\x67\x69\x61\x6E\x20\x28\x4E\x6F\x72\x77\x61\x79\x29","\x50\x6F\x72\x74\x75\x67\x75\x65\x73\x65\x20\x28\x42\x72\x61\x7A\x69\x6C\x29","\x52\x75\x73\x73\x69\x61\x6E\x20\x28\x52\x75\x73\x73\x69\x61\x29","\x53\x77\x65\x64\x69\x73\x68\x20\x28\x53\x77\x65\x64\x65\x6E\x29","\x43\x68\x69\x6E\x65\x73\x65\x20\x28\x43\x68\x69\x6E\x61\x29","\x43\x68\x69\x6E\x65\x73\x65\x20\x28\x48\x6F\x6E\x67\x20\x4B\x6F\x6E\x67\x29","\x44\x65\x66\x61\x75\x6C\x74","\x44\x61\x74\x65","\x55\x53\x20\x4D\x6F\x6E\x65\x79","\x4E\x75\x6D\x62\x65\x72\x73\x20\x74\x6F\x20\x39","\x4E\x75\x6D\x62\x65\x72\x73\x20\x74\x6F\x20\x39\x39","\x4E\x75\x6D\x62\x65\x72\x73\x20\x74\x6F\x20\x39\x39\x39","\x54\x69\x6D\x65","\x50\x68\x6F\x6E\x65\x20\x6E\x75\x6D\x62\x65\x72","\x53\x74\x72\x65\x65\x74\x73","\x55\x53\x20\x43\x69\x74\x79\x2F\x53\x74\x61\x74\x65\x73","\x41\x66\x72\x69\x6B\x61\x61\x6E\x73","\x41\x6C\x62\x61\x6E\x69\x61\x6E","\x41\x6D\x68\x61\x72\x69\x63","\x41\x72\x61\x62\x69\x63","\x41\x72\x6D\x65\x6E\x69\x61\x6E","\x41\x7A\x65\x72\x62\x61\x69\x6A\x61\x6E\x69","\x42\x61\x73\x71\x75\x65","\x42\x65\x6C\x61\x72\x75\x73\x69\x61\x6E","\x42\x65\x6E\x67\x61\x6C\x69","\x42\x69\x68\x61\x72\x69","\x42\x6F\x73\x6E\x69\x61\x6E","\x42\x72\x65\x74\x6F\x6E","\x42\x75\x6C\x67\x61\x72\x69\x61\x6E","\x43\x61\x6D\x62\x6F\x64\x69\x61\x6E","\x43\x61\x74\x61\x6C\x61\x6E","\x43\x68\x69\x6E\x65\x73\x65\x20\x28\x53\x69\x6D\x70\x6C\x69\x66\x69\x65\x64\x29","\x43\x68\x69\x6E\x65\x73\x65\x20\x28\x54\x72\x61\x64\x69\x74\x69\x6F\x6E\x61\x6C\x29","\x43\x6F\x72\x73\x69\x63\x61\x6E","\x43\x72\x6F\x61\x74\x69\x61\x6E","\x43\x7A\x65\x63\x68","\x44\x61\x6E\x69\x73\x68","\x44\x75\x74\x63\x68","\x45\x6E\x67\x6C\x69\x73\x68","\x45\x73\x70\x65\x72\x61\x6E\x74\x6F","\x45\x73\x74\x6F\x6E\x69\x61\x6E","\x46\x61\x72\x6F\x65\x73\x65","\x46\x69\x6C\x69\x70\x69\x6E\x6F","\x46\x69\x6E\x6E\x69\x73\x68","\x46\x72\x65\x6E\x63\x68","\x46\x72\x69\x73\x69\x61\x6E","\x47\x61\x6C\x69\x63\x69\x61\x6E","\x47\x65\x6F\x72\x67\x69\x61\x6E","\x47\x65\x72\x6D\x61\x6E","\x47\x72\x65\x65\x6B","\x47\x75\x61\x72\x61\x6E\x69","\x47\x75\x6A\x61\x72\x61\x74\x69","\x48\x61\x63\x6B\x65\x72","\x48\x61\x75\x73\x61","\x48\x65\x62\x72\x65\x77","\x48\x69\x6E\x64\x69","\x48\x75\x6E\x67\x61\x72\x69\x61\x6E","\x49\x63\x65\x6C\x61\x6E\x64\x69\x63","\x49\x6E\x64\x6F\x6E\x65\x73\x69\x61\x6E","\x49\x6E\x74\x65\x72\x6C\x69\x6E\x67\x75\x61","\x49\x72\x69\x73\x68","\x49\x74\x61\x6C\x69\x61\x6E","\x4A\x61\x76\x61\x6E\x65\x73\x65","\x4A\x61\x70\x61\x6E\x65\x73\x65","\x4B\x61\x6E\x6E\x61\x64\x61","\x4B\x61\x7A\x61\x6B\x68","\x4B\x69\x6E\x79\x61\x72\x77\x61\x6E\x64\x61","\x4B\x69\x72\x75\x6E\x64\x69","\x4B\x6C\x69\x6E\x67\x6F\x6E","\x4B\x75\x72\x64\x69\x73\x68","\x4B\x6F\x72\x65\x61\x6E","\x4B\x79\x72\x67\x79\x7A","\x4C\x61\x6F\x74\x68\x69\x61\x6E","\x4C\x61\x74\x69\x6E","\x4C\x61\x74\x76\x69\x61\x6E","\x4C\x69\x6E\x67\x61\x6C\x61","\x4C\x69\x74\x68\x75\x61\x6E\x69\x61\x6E","\x4D\x61\x63\x65\x64\x6F\x6E\x69\x61\x6E","\x4D\x61\x6C\x61\x67\x61\x73\x79","\x4D\x61\x6C\x61\x79","\x4D\x61\x6C\x61\x79\x61\x6C\x61\x6D","\x4D\x61\x6C\x74\x65\x73\x65","\x4D\x61\x6F\x72\x69","\x4D\x61\x72\x61\x74\x68\x69","\x4D\x6F\x6C\x64\x61\x76\x69\x61\x6E","\x4D\x6F\x6E\x67\x6F\x6C\x69\x61\x6E","\x4D\x6F\x6E\x74\x65\x6E\x65\x67\x72\x69\x6E","\x4E\x65\x70\x61\x6C\x69","\x4E\x6F\x72\x77\x65\x67\x69\x61\x6E","\x4E\x6F\x72\x77\x65\x67\x69\x61\x6E\x20\x28\x4E\x79\x6E\x6F\x72\x73\x6B\x29","\x4F\x63\x63\x69\x74\x61\x6E","\x4F\x72\x69\x79\x61","\x4F\x72\x6F\x6D\x6F","\x50\x61\x73\x68\x74\x6F","\x50\x65\x72\x73\x69\x61\x6E","\x50\x69\x72\x61\x74\x65","\x50\x6F\x6C\x69\x73\x68","\x50\x75\x6E\x6A\x61\x62\x69","\x51\x75\x65\x63\x68\x75\x61","\x52\x6F\x6D\x61\x6E\x69\x61\x6E","\x52\x6F\x6D\x61\x6E\x73\x68","\x52\x75\x73\x73\x69\x61\x6E","\x53\x63\x6F\x74\x73\x20\x47\x61\x65\x6C\x69\x63","\x53\x65\x72\x62\x69\x61\x6E","\x53\x65\x72\x62\x6F\x2D\x43\x72\x6F\x61\x74\x69\x61\x6E","\x53\x65\x73\x6F\x74\x68\x6F","\x53\x68\x6F\x6E\x61","\x53\x69\x6E\x64\x68\x69","\x53\x69\x6E\x68\x61\x6C\x65\x73\x65","\x53\x6C\x6F\x76\x61\x6B","\x53\x6C\x6F\x76\x65\x6E\x69\x61\x6E","\x53\x6F\x6D\x61\x6C\x69","\x53\x70\x61\x6E\x69\x73\x68","\x53\x75\x6E\x64\x61\x6E\x65\x73\x65","\x53\x77\x61\x68\x69\x6C\x69","\x53\x77\x65\x64\x69\x73\x68","\x54\x61\x6A\x69\x6B","\x54\x61\x6D\x69\x6C","\x54\x61\x74\x61\x72","\x54\x65\x6C\x75\x67\x75","\x54\x68\x61\x69","\x54\x69\x67\x72\x69\x6E\x79\x61","\x54\x6F\x6E\x67\x61","\x54\x75\x72\x6B\x69\x73\x68","\x54\x75\x72\x6B\x6D\x65\x6E","\x54\x77\x69","\x55\x69\x67\x68\x75\x72","\x55\x6B\x72\x61\x69\x6E\x69\x61\x6E","\x55\x72\x64\x75","\x55\x7A\x62\x65\x6B","\x56\x69\x65\x74\x6E\x61\x6D\x65\x73\x65","\x57\x65\x6C\x73\x68","\x58\x68\x6F\x73\x61","\x59\x69\x64\x64\x69\x73\x68","\x59\x6F\x72\x75\x62\x61","\x5A\x75\x6C\x75"];var urlParams=(function(_0x9495x2){var _0x9495x3= new Object();var _0x9495x4=_0x9495x2[_0x3cf3[3]](_0x3cf3[2]);if(_0x9495x4> 0){var _0x9495x5=_0x9495x2[_0x3cf3[6]](_0x9495x4+ 1)[_0x3cf3[5]](_0x3cf3[4]);for(var _0x9495x6=0;_0x9495x6< _0x9495x5[_0x3cf3[7]];_0x9495x6++){_0x9495x4= _0x9495x5[_0x9495x6][_0x3cf3[9]](_0x3cf3[8]);if(_0x9495x4> 0){_0x9495x3[_0x9495x5[_0x9495x6][_0x3cf3[6]](0,_0x9495x4)]= _0x9495x5[_0x9495x6][_0x3cf3[6]](_0x9495x4+ 1)}}};return _0x9495x3})(window[_0x3cf3[1]][_0x3cf3[0]]);var t0= new Date();var MAX_REQUEST_SIZE=10485760;var MAX_WIDTH=12000;var MAX_HEIGHT=12000;var EXPORT_URL=_0x3cf3[10];var SHARE_HOST=_0x3cf3[11];var SAVE_URL=_0x3cf3[12];var VARIABLE_URL=_0x3cf3[13];var STENCIL_PATH=_0x3cf3[14];var SHAPES_PATH=_0x3cf3[15];var IMAGE_PATH=_0x3cf3[16];var STYLE_PATH=_0x3cf3[17];var CSS_PATH=_0x3cf3[17];var OPEN_FORM=_0x3cf3[18];var TEMPLATE_PATH=_0x3cf3[19];var RESOURCES_PATH=_0x3cf3[20];var RESOURCE_BASE=RESOURCES_PATH+ _0x3cf3[21];var tapAndHoldStartsConnection=true;var showConnectorImg=true;var mxLoadResources=false;console[_0x3cf3[25]](_0x3cf3[22],localStorage[_0x3cf3[24]](_0x3cf3[23]));switch(localStorage[_0x3cf3[24]](_0x3cf3[23])){case _0x3cf3[27]:mxLanguage= _0x3cf3[26];break;case _0x3cf3[28]:mxLanguage= _0x3cf3[28];break;default:mxLanguage= _0x3cf3[28]};console[_0x3cf3[25]](_0x3cf3[29],mxLanguage);var mxLanguages=[_0x3cf3[30],_0x3cf3[31],_0x3cf3[32],_0x3cf3[33],_0x3cf3[34],_0x3cf3[35],_0x3cf3[36],_0x3cf3[37],_0x3cf3[38],_0x3cf3[39],_0x3cf3[40],_0x3cf3[28],_0x3cf3[41],_0x3cf3[42],_0x3cf3[43],_0x3cf3[44],_0x3cf3[45],_0x3cf3[46],_0x3cf3[47],_0x3cf3[48],_0x3cf3[49],_0x3cf3[50],_0x3cf3[51],_0x3cf3[52],_0x3cf3[53],_0x3cf3[54],_0x3cf3[55]];var mxBasePath=_0x3cf3[56];var geBasePath=_0x3cf3[57];var ISPEECHLANG={usenglishfemale:_0x3cf3[58],usenglishmale:_0x3cf3[59],ukenglishfemale:_0x3cf3[60],ukenglishmale:_0x3cf3[61],auenglishfemale:_0x3cf3[62],usspanishfemale:_0x3cf3[63],usspanishmale:_0x3cf3[64],chchinesefemale:_0x3cf3[65],chchinesemale:_0x3cf3[66],hkchinesefemale:_0x3cf3[67],twchinesefemale:_0x3cf3[68],jpjapanesefemale:_0x3cf3[69],jpjapanesemale:_0x3cf3[70],krkoreanfemale:_0x3cf3[71],krkoreanmale:_0x3cf3[72],caenglishfemale:_0x3cf3[73],huhungarianfemale:_0x3cf3[74],brportuguesefemale:_0x3cf3[75],eurportuguesefemale:_0x3cf3[76],eurportuguesemale:_0x3cf3[77],eurspanishfemale:_0x3cf3[78],eurspanishmale:_0x3cf3[79],eurcatalanfemale:_0x3cf3[80],eurczechfemale:_0x3cf3[81],eurdanishfemale:_0x3cf3[82],eurfinnishfemale:_0x3cf3[83],eurfrenchfemale:_0x3cf3[84],eurfrenchmale:_0x3cf3[85],eurnorwegianfemale:_0x3cf3[86],eurdutchfemale:_0x3cf3[87],eurpolishfemale:_0x3cf3[88],euritalianfemale:_0x3cf3[89],eurturkishfemale:_0x3cf3[90],eurturkishmale:_0x3cf3[91],eurgermanfemale:_0x3cf3[92],eurgermanmale:_0x3cf3[93],rurussianfemale:_0x3cf3[94],rurussianmale:_0x3cf3[95],swswedishfemale:_0x3cf3[96],cafrenchfemale:_0x3cf3[97],cafrenchmale:_0x3cf3[98]};var ISPEECHASRLANG={"\x65\x6E\x2D\x55\x53":_0x3cf3[99],"\x65\x6E\x2D\x43\x41":_0x3cf3[100],"\x65\x6E\x2D\x47\x42":_0x3cf3[101],"\x65\x6E\x2D\x41\x55":_0x3cf3[102],"\x65\x73\x2D\x45\x53":_0x3cf3[103],"\x65\x73\x2D\x4D\x58":_0x3cf3[104],"\x69\x74\x2D\x49\x54":_0x3cf3[105],"\x66\x72\x2D\x46\x52":_0x3cf3[106],"\x66\x72\x2D\x43\x41":_0x3cf3[107],"\x70\x6C\x2D\x50\x4C":_0x3cf3[108],"\x70\x74\x2D\x50\x54":_0x3cf3[109],"\x63\x61\x2D\x45\x53":_0x3cf3[110],"\x7A\x68\x2D\x54\x57":_0x3cf3[111],"\x64\x61\x2D\x44\x4B":_0x3cf3[112],"\x66\x72\x2D\x46\x52":_0x3cf3[113],"\x6A\x61\x2D\x4A\x50":_0x3cf3[114],"\x6B\x6F\x2D\x4B\x52":_0x3cf3[115],"\x6E\x6C\x2D\x4E\x4C":_0x3cf3[116],"\x6E\x62\x2D\x4E\x4F":_0x3cf3[117],"\x70\x74\x2D\x42\x52":_0x3cf3[118],"\x72\x75\x2D\x52\x55":_0x3cf3[119],"\x73\x76\x2D\x53\x45":_0x3cf3[120],"\x7A\x68\x2D\x43\x4E":_0x3cf3[121],"\x7A\x68\x2D\x48\x4B":_0x3cf3[122]};var ISPEECHASRMODEL={0:_0x3cf3[123],date:_0x3cf3[124],usmoney:_0x3cf3[125],numbersto9:_0x3cf3[126],numbersto99:_0x3cf3[127],numbersto999:_0x3cf3[128],time:_0x3cf3[129],phonenumber:_0x3cf3[130],streets:_0x3cf3[131],citystate:_0x3cf3[132]};var GOOGLETTSLANG={"\x61\x66":_0x3cf3[133],"\x73\x71":_0x3cf3[134],"\x61\x6D":_0x3cf3[135],"\x61\x72":_0x3cf3[136],"\x68\x79":_0x3cf3[137],"\x61\x7A":_0x3cf3[138],"\x65\x75":_0x3cf3[139],"\x62\x65":_0x3cf3[140],"\x62\x6E":_0x3cf3[141],"\x62\x68":_0x3cf3[142],"\x62\x73":_0x3cf3[143],"\x62\x72":_0x3cf3[144],"\x62\x67":_0x3cf3[145],"\x6B\x6D":_0x3cf3[146],"\x63\x61":_0x3cf3[147],"\x7A\x68\x2D\x43\x4E":_0x3cf3[148],"\x7A\x68\x2D\x54\x57":_0x3cf3[149],"\x63\x6F":_0x3cf3[150],"\x68\x72":_0x3cf3[151],"\x63\x73":_0x3cf3[152],"\x64\x61":_0x3cf3[153],"\x6E\x6C":_0x3cf3[154],"\x65\x6E":_0x3cf3[155],"\x65\x6F":_0x3cf3[156],"\x65\x74":_0x3cf3[157],"\x66\x6F":_0x3cf3[158],"\x74\x6C":_0x3cf3[159],"\x66\x69":_0x3cf3[160],"\x66\x72":_0x3cf3[161],"\x66\x79":_0x3cf3[162],"\x67\x6C":_0x3cf3[163],"\x6B\x61":_0x3cf3[164],"\x64\x65":_0x3cf3[165],"\x65\x6C":_0x3cf3[166],"\x67\x6E":_0x3cf3[167],"\x67\x75":_0x3cf3[168],"\x78\x78\x2D\x68\x61\x63\x6B\x65\x72":_0x3cf3[169],"\x68\x61":_0x3cf3[170],"\x69\x77":_0x3cf3[171],"\x68\x69":_0x3cf3[172],"\x68\x75":_0x3cf3[173],"\x69\x73":_0x3cf3[174],"\x69\x64":_0x3cf3[175],"\x69\x61":_0x3cf3[176],"\x67\x61":_0x3cf3[177],"\x69\x74":_0x3cf3[178],"\x6A\x77":_0x3cf3[179],"\x6A\x61":_0x3cf3[180],"\x6B\x6E":_0x3cf3[181],"\x6B\x6B":_0x3cf3[182],"\x72\x77":_0x3cf3[183],"\x72\x6E":_0x3cf3[184],"\x78\x78\x2D\x6B\x6C\x69\x6E\x67\x6F\x6E":_0x3cf3[185],"\x6B\x75":_0x3cf3[186],"\x6B\x6F":_0x3cf3[187],"\x6B\x79":_0x3cf3[188],"\x6C\x6F":_0x3cf3[189],"\x6C\x61":_0x3cf3[190],"\x6C\x76":_0x3cf3[191],"\x6C\x6E":_0x3cf3[192],"\x6C\x74":_0x3cf3[193],"\x6D\x6B":_0x3cf3[194],"\x6D\x67":_0x3cf3[195],"\x6D\x73":_0x3cf3[196],"\x6D\x6C":_0x3cf3[197],"\x6D\x74":_0x3cf3[198],"\x6D\x69":_0x3cf3[199],"\x6D\x72":_0x3cf3[200],"\x6D\x6F":_0x3cf3[201],"\x6D\x6E":_0x3cf3[202],"\x73\x72\x2D\x4D\x45":_0x3cf3[203],"\x6E\x65":_0x3cf3[204],"\x6E\x6F":_0x3cf3[205],"\x6E\x6E":_0x3cf3[206],"\x6F\x63":_0x3cf3[207],"\x6F\x72":_0x3cf3[208],"\x6F\x6D":_0x3cf3[209],"\x70\x73":_0x3cf3[210],"\x66\x61":_0x3cf3[211],"\x78\x78\x2D\x70\x69\x72\x61\x74\x65":_0x3cf3[212],"\x70\x6C":_0x3cf3[213],"\x70\x74\x2D\x42\x52":_0x3cf3[118],"\x70\x74\x2D\x50\x54":_0x3cf3[109],"\x70\x61":_0x3cf3[214],"\x71\x75":_0x3cf3[215],"\x72\x6F":_0x3cf3[216],"\x72\x6D":_0x3cf3[217],"\x72\x75":_0x3cf3[218],"\x67\x64":_0x3cf3[219],"\x73\x72":_0x3cf3[220],"\x73\x68":_0x3cf3[221],"\x73\x74":_0x3cf3[222],"\x73\x6E":_0x3cf3[223],"\x73\x64":_0x3cf3[224],"\x73\x69":_0x3cf3[225],"\x73\x6B":_0x3cf3[226],"\x73\x6C":_0x3cf3[227],"\x73\x6F":_0x3cf3[228],"\x65\x73":_0x3cf3[229],"\x73\x75":_0x3cf3[230],"\x73\x77":_0x3cf3[231],"\x73\x76":_0x3cf3[232],"\x74\x67":_0x3cf3[233],"\x74\x61":_0x3cf3[234],"\x74\x74":_0x3cf3[235],"\x74\x65":_0x3cf3[236],"\x74\x68":_0x3cf3[237],"\x74\x69":_0x3cf3[238],"\x74\x6F":_0x3cf3[239],"\x74\x72":_0x3cf3[240],"\x74\x6B":_0x3cf3[241],"\x74\x77":_0x3cf3[242],"\x75\x67":_0x3cf3[243],"\x75\x6B":_0x3cf3[244],"\x75\x72":_0x3cf3[245],"\x75\x7A":_0x3cf3[246],"\x76\x69":_0x3cf3[247],"\x63\x79":_0x3cf3[248],"\x78\x68":_0x3cf3[249],"\x79\x69":_0x3cf3[250],"\x79\x6F":_0x3cf3[251],"\x7A\x75":_0x3cf3[252]} \ No newline at end of file diff --git a/public/assets/plugins/mxgraph/js/mxClient.js b/public/assets/plugins/mxgraph/js/mxClient.js index deb62fe..7442204 100644 --- a/public/assets/plugins/mxgraph/js/mxClient.js +++ b/public/assets/plugins/mxgraph/js/mxClient.js @@ -1 +1 @@ -var _0xff99=["\x32\x2E\x30\x2E\x30\x2E\x30","\x4D\x53\x49\x45","\x69\x6E\x64\x65\x78\x4F\x66","\x75\x73\x65\x72\x41\x67\x65\x6E\x74","\x4D\x53\x49\x45\x20\x36","\x64\x6F\x63\x75\x6D\x65\x6E\x74\x4D\x6F\x64\x65","\x76","\x6F","\x4D\x6F\x7A\x69\x6C\x6C\x61\x2F","\x4F\x70\x65\x72\x61\x2F","\x50\x72\x65\x73\x74\x6F\x2F\x32\x2E\x34\x2E","\x50\x72\x65\x73\x74\x6F\x2F\x32\x2E\x33\x2E","\x50\x72\x65\x73\x74\x6F\x2F\x32\x2E\x32\x2E","\x50\x72\x65\x73\x74\x6F\x2F\x32\x2E\x31\x2E","\x50\x72\x65\x73\x74\x6F\x2F\x32\x2E\x30\x2E","\x50\x72\x65\x73\x74\x6F\x2F\x31\x2E","\x41\x70\x70\x6C\x65\x57\x65\x62\x4B\x69\x74\x2F","\x43\x68\x72\x6F\x6D\x65\x2F","\x46\x69\x72\x65\x66\x6F\x78\x2F","\x46\x69\x72\x65\x66\x6F\x78\x2F\x31\x2E","\x46\x69\x72\x65\x66\x6F\x78\x2F\x32\x2E","\x49\x63\x65\x77\x65\x61\x73\x65\x6C\x2F","\x49\x63\x65\x77\x65\x61\x73\x65\x6C\x2F\x31\x2E","\x49\x63\x65\x77\x65\x61\x73\x65\x6C\x2F\x32\x2E","\x53\x65\x61\x4D\x6F\x6E\x6B\x65\x79\x2F","\x53\x65\x61\x4D\x6F\x6E\x6B\x65\x79\x2F\x31\x2E","\x49\x63\x65\x61\x70\x65\x2F","\x49\x63\x65\x61\x70\x65\x2F\x31\x2E","\x53\x65\x61\x6D\x6F\x6E\x6B\x65\x79\x2F","\x47\x61\x6C\x65\x6F\x6E\x2F","\x45\x70\x69\x70\x68\x61\x6E\x79\x2F","\x47\x65\x63\x6B\x6F\x2F","\x43\x61\x6D\x69\x6E\x6F\x2F\x31\x2E","\x45\x70\x69\x70\x68\x61\x6E\x79\x2F\x32\x2E","\x4D\x6F\x7A\x69\x6C\x6C\x61\x2F\x32\x2E","\x4D\x49\x43\x52\x4F\x53\x4F\x46\x54\x20\x49\x4E\x54\x45\x52\x4E\x45\x54\x20\x45\x58\x50\x4C\x4F\x52\x45\x52","\x74\x6F\x55\x70\x70\x65\x72\x43\x61\x73\x65","\x61\x70\x70\x4E\x61\x6D\x65","\x4D\x41\x43\x49\x4E\x54\x4F\x53\x48","\x49\x50\x41\x44","\x49\x50\x4F\x44","\x49\x50\x48\x4F\x4E\x45","\x41\x4E\x44\x52\x4F\x49\x44","\x68\x74\x74\x70\x3A\x2F\x2F","\x68\x72\x65\x66","\x6C\x6F\x63\x61\x74\x69\x6F\x6E","\x68\x74\x74\x70\x73\x3A\x2F\x2F","\x49\x53\x5F\x56\x4D\x4C","\x49\x53\x5F\x53\x56\x47","\x49\x53\x5F\x49\x45\x36","\x3C\x6C\x69\x6E\x6B\x20\x72\x65\x6C\x3D\x22","\x22\x20\x68\x72\x65\x66\x3D\x22","\x22\x20\x63\x68\x61\x72\x73\x65\x74\x3D\x22\x49\x53\x4F\x2D\x38\x38\x35\x39\x2D\x31\x22\x20\x74\x79\x70\x65\x3D\x22\x74\x65\x78\x74\x2F\x63\x73\x73\x22\x2F\x3E","\x77\x72\x69\x74\x65","\x6C\x69\x6E\x6B","\x63\x72\x65\x61\x74\x65\x45\x6C\x65\x6D\x65\x6E\x74","\x72\x65\x6C","\x73\x65\x74\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x63\x68\x61\x72\x73\x65\x74","\x49\x53\x4F\x2D\x38\x38\x35\x39\x2D\x31","\x74\x79\x70\x65","\x74\x65\x78\x74\x2F\x63\x73\x73","\x61\x70\x70\x65\x6E\x64\x43\x68\x69\x6C\x64","\x68\x65\x61\x64","\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x73\x42\x79\x54\x61\x67\x4E\x61\x6D\x65","\x3C\x73\x63\x72\x69\x70\x74\x20\x73\x72\x63\x3D\x22","\x22\x3E\x3C\x2F\x73\x63\x72\x69\x70\x74\x3E","\x6C\x65\x6E\x67\x74\x68","\x6F\x62\x6A\x65\x63\x74\x73","\x6D\x78\x4C\x69\x73\x74\x65\x6E\x65\x72\x4C\x69\x73\x74","\x72\x65\x6D\x6F\x76\x65\x41\x6C\x6C\x4C\x69\x73\x74\x65\x6E\x65\x72\x73","\x49\x53\x5F\x4F\x50","\x49\x53\x5F\x4F\x54","\x43\x53\x53\x5F\x50\x52\x45\x46\x49\x58","\x4F","\x49\x53\x5F\x53\x46","\x49\x53\x5F\x47\x43","\x57\x65\x62\x6B\x69\x74","\x49\x53\x5F\x4D\x54","\x4D\x6F\x7A","\x49\x53\x5F\x49\x45","\x6D\x73","\x75\x6E\x64\x65\x66\x69\x6E\x65\x64","\x2E\x74\x78\x74","\x2F","\x73\x75\x62\x73\x74\x72\x69\x6E\x67","\x62\x61\x73\x65\x50\x61\x74\x68","\x2E","\x69\x6D\x61\x67\x65\x42\x61\x73\x65\x50\x61\x74\x68","\x2F\x69\x6D\x61\x67\x65\x73","\x6C\x61\x6E\x67\x75\x61\x67\x65","\x75\x73\x65\x72\x4C\x61\x6E\x67\x75\x61\x67\x65","\x64\x65\x66\x61\x75\x6C\x74\x4C\x61\x6E\x67\x75\x61\x67\x65","\x65\x6E","\x73\x74\x79\x6C\x65\x73\x68\x65\x65\x74","\x2F\x63\x73\x73\x2F\x63\x6F\x6D\x6D\x6F\x6E\x2E\x63\x73\x73","\x6C\x61\x6E\x67\x75\x61\x67\x65\x73","\x75\x72\x6E\x3A\x73\x63\x68\x65\x6D\x61\x73\x2D\x6D\x69\x63\x72\x6F\x73\x6F\x66\x74\x2D\x63\x6F\x6D\x3A\x76\x6D\x6C","\x23\x64\x65\x66\x61\x75\x6C\x74\x23\x56\x4D\x4C","\x61\x64\x64","\x6E\x61\x6D\x65\x73\x70\x61\x63\x65\x73","\x75\x72\x6E\x3A\x73\x63\x68\x65\x6D\x61\x73\x2D\x6D\x69\x63\x72\x6F\x73\x6F\x66\x74\x2D\x63\x6F\x6D\x3A\x6F\x66\x66\x69\x63\x65\x3A\x6F\x66\x66\x69\x63\x65","\x63\x72\x65\x61\x74\x65\x53\x74\x79\x6C\x65\x53\x68\x65\x65\x74","\x63\x73\x73\x54\x65\x78\x74","\x76\x5C\x3A\x2A\x7B\x62\x65\x68\x61\x76\x69\x6F\x72\x3A\x75\x72\x6C\x28\x23\x64\x65\x66\x61\x75\x6C\x74\x23\x56\x4D\x4C\x29\x7D\x6F\x5C\x3A\x2A\x7B\x62\x65\x68\x61\x76\x69\x6F\x72\x3A\x75\x72\x6C\x28\x23\x64\x65\x66\x61\x75\x6C\x74\x23\x56\x4D\x4C\x29\x7D","\x2F\x63\x73\x73\x2F\x65\x78\x70\x6C\x6F\x72\x65\x72\x2E\x63\x73\x73","\x6F\x6E\x75\x6E\x6C\x6F\x61\x64","\x64\x69\x73\x70\x6F\x73\x65","\x61\x74\x74\x61\x63\x68\x45\x76\x65\x6E\x74","\x43\x6F\x6E\x73\x6F\x6C\x65","","\x77\x69\x6E\x64\x6F\x77","\x62\x6F\x64\x79","\x63\x6F\x6E\x73\x6F\x6C\x65\x4E\x61\x6D\x65","\x20\x2D\x20\x6D\x78\x47\x72\x61\x70\x68\x20","\x56\x45\x52\x53\x49\x4F\x4E","\x74\x61\x62\x6C\x65","\x77\x69\x64\x74\x68","\x31\x30\x30\x25","\x68\x65\x69\x67\x68\x74","\x74\x62\x6F\x64\x79","\x74\x72","\x74\x64","\x76\x65\x72\x74\x69\x63\x61\x6C\x41\x6C\x69\x67\x6E","\x73\x74\x79\x6C\x65","\x74\x6F\x70","\x74\x65\x78\x74\x61\x72\x65\x61","\x72\x65\x61\x64\x4F\x6E\x6C\x79","\x74\x72\x75\x65","\x72\x65\x73\x69\x7A\x65","\x6E\x6F\x6E\x65","\x76\x61\x6C\x75\x65","\x62\x75\x66\x66\x65\x72","\x49\x53\x5F\x4E\x53","\x42\x61\x63\x6B\x43\x6F\x6D\x70\x61\x74","\x63\x6F\x6D\x70\x61\x74\x4D\x6F\x64\x65","\x39\x39\x25","\x33\x30\x70\x78","\x49\x6E\x66\x6F","\x69\x6E\x66\x6F","\x61\x64\x64\x42\x75\x74\x74\x6F\x6E","\x44\x4F\x4D","\x67\x65\x74\x49\x6E\x6E\x65\x72\x48\x74\x6D\x6C","\x64\x65\x62\x75\x67","\x54\x72\x61\x63\x65","\x54\x52\x41\x43\x45","\x54\x72\x61\x63\x69\x6E\x67\x20\x65\x6E\x61\x62\x6C\x65\x64","\x54\x72\x61\x63\x69\x6E\x67\x20\x64\x69\x73\x61\x62\x6C\x65\x64","\x43\x6F\x70\x79","\x63\x6F\x70\x79","\x61\x6C\x65\x72\x74","\x53\x68\x6F\x77","\x70\x6F\x70\x75\x70","\x43\x6C\x65\x61\x72","\x6E\x75\x6D\x62\x65\x72","\x69\x6E\x6E\x65\x72\x57\x69\x64\x74\x68","\x69\x6E\x6E\x65\x72\x48\x65\x69\x67\x68\x74","\x63\x6C\x69\x65\x6E\x74\x48\x65\x69\x67\x68\x74","\x64\x6F\x63\x75\x6D\x65\x6E\x74\x45\x6C\x65\x6D\x65\x6E\x74","\x63\x6C\x69\x65\x6E\x74\x57\x69\x64\x74\x68","\x6D\x61\x78","\x73\x65\x74\x4D\x61\x78\x69\x6D\x69\x7A\x61\x62\x6C\x65","\x73\x65\x74\x53\x63\x72\x6F\x6C\x6C\x61\x62\x6C\x65","\x73\x65\x74\x52\x65\x73\x69\x7A\x61\x62\x6C\x65","\x73\x65\x74\x43\x6C\x6F\x73\x61\x62\x6C\x65","\x64\x65\x73\x74\x72\x6F\x79\x4F\x6E\x43\x6C\x6F\x73\x65","\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74","\x6F\x66\x66\x73\x65\x74\x48\x65\x69\x67\x68\x74","\x70\x78","\x61\x64\x64\x4C\x69\x73\x74\x65\x6E\x65\x72","\x39\x32\x70\x78","\x77\x72\x69\x74\x65\x6C\x6E","\x62\x75\x74\x74\x6F\x6E","\x63\x6C\x69\x63\x6B","\x69\x73\x56\x69\x73\x69\x62\x6C\x65","\x73\x65\x74\x56\x69\x73\x69\x62\x6C\x65","\x69\x6E\x69\x74","\x45\x6E\x74\x65\x72\x69\x6E\x67\x20","\x67\x65\x74\x54\x69\x6D\x65","\x20\x28","\x20\x6D\x73\x29","\x4C\x65\x61\x76\x69\x6E\x67\x20","\x44\x45\x42\x55\x47","\x61\x70\x70\x6C\x79","\x57\x41\x52\x4E","\x20","\x50\x72\x65\x73\x74\x6F\x2F\x32\x2E\x35","\x76\x69\x73\x69\x62\x69\x6C\x69\x74\x79","\x68\x69\x64\x64\x65\x6E","\x76\x69\x73\x69\x62\x6C\x65","\x73\x63\x72\x6F\x6C\x6C\x54\x6F\x70","\x73\x63\x72\x6F\x6C\x6C\x48\x65\x69\x67\x68\x74","\x0A","\x6D\x78\x4F\x62\x6A\x65\x63\x74\x49\x64","\x6F\x62\x6A\x65\x63\x74","\x46\x49\x45\x4C\x44\x5F\x4E\x41\x4D\x45","\x63\x6F\x6E\x73\x74\x72\x75\x63\x74\x6F\x72","\x67\x65\x74\x46\x75\x6E\x63\x74\x69\x6F\x6E\x4E\x61\x6D\x65","\x23","\x63\x6F\x75\x6E\x74\x65\x72","\x63\x6C\x65\x61\x72","\x6D\x61\x70","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x67\x65\x74","\x70\x75\x74","\x72\x65\x6D\x6F\x76\x65","\x67\x65\x74\x4B\x65\x79\x73","\x70\x75\x73\x68","\x67\x65\x74\x56\x61\x6C\x75\x65\x73","\x76\x69\x73\x69\x74","\x6C\x6F\x61\x64\x44\x65\x66\x61\x75\x6C\x74\x42\x75\x6E\x64\x6C\x65","\x69\x73\x4C\x61\x6E\x67\x75\x61\x67\x65\x53\x75\x70\x70\x6F\x72\x74\x65\x64","\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x2D","\x6C\x6F\x61\x64\x53\x70\x65\x63\x69\x61\x6C\x42\x75\x6E\x64\x6C\x65","\x5F","\x74\x6F\x4C\x6F\x77\x65\x72\x43\x61\x73\x65","\x4E\x4F\x4E\x45","\x67\x65\x74\x44\x65\x66\x61\x75\x6C\x74\x42\x75\x6E\x64\x6C\x65","\x6C\x6F\x61\x64","\x69\x73\x52\x65\x61\x64\x79","\x67\x65\x74\x54\x65\x78\x74","\x70\x61\x72\x73\x65","\x67\x65\x74\x53\x70\x65\x63\x69\x61\x6C\x42\x75\x6E\x64\x6C\x65","\x73\x70\x6C\x69\x74","\x63\x68\x61\x72\x41\x74","\x3D","\x63\x68\x61\x72\x43\x6F\x64\x65\x41\x74","\x72\x65\x73\x6F\x75\x72\x63\x65\x73\x45\x6E\x63\x6F\x64\x65\x64","\x25","\x72\x65\x70\x6C\x61\x63\x65","\x72\x65\x73\x6F\x75\x72\x63\x65\x73","\x7B","\x7D","\x6A\x6F\x69\x6E","\x78","\x79","\x65\x71\x75\x61\x6C\x73","\x63\x6C\x6F\x6E\x65","\x63\x61\x6C\x6C","\x73\x65\x74\x52\x65\x63\x74","\x67\x65\x74\x43\x65\x6E\x74\x65\x72\x58","\x67\x65\x74\x43\x65\x6E\x74\x65\x72\x59","\x6D\x69\x6E","\x67\x72\x6F\x77","\x67\x65\x74\x50\x6F\x69\x6E\x74","\x63\x65\x6C\x6C","\x63\x68\x69\x6C\x64","\x67\x65\x74\x53\x74\x61\x74\x65","\x67\x65\x74\x56\x69\x65\x77","\x69\x73\x45\x64\x67\x65","\x6D\x6F\x64\x65\x6C","\x6E\x6F\x64\x65","\x73\x68\x61\x70\x65","\x73\x65\x74\x4F\x70\x61\x63\x69\x74\x79","\x73\x63\x61\x6C\x65","\x67\x65\x6F\x6D\x65\x74\x72\x79","\x70\x72\x65\x76\x69\x6F\x75\x73","\x72\x65\x64\x72\x61\x77","\x63\x65\x6C\x6C\x52\x65\x6E\x64\x65\x72\x65\x72","\x63\x61\x73\x63\x61\x64\x65\x4F\x70\x61\x63\x69\x74\x79","\x73\x65\x74\x54\x69\x6D\x65\x6F\x75\x74","\x67\x65\x74\x43\x68\x69\x6C\x64\x43\x6F\x75\x6E\x74","\x67\x65\x74\x43\x68\x69\x6C\x64\x41\x74","\x67\x65\x74\x45\x64\x67\x65\x73","\x70\x61\x72\x65\x6E\x74\x4E\x6F\x64\x65","\x72\x65\x6D\x6F\x76\x65\x43\x68\x69\x6C\x64","\x65\x72\x72\x6F\x72","\x63\x6C\x6F\x73\x65","\x2F\x65\x72\x72\x6F\x72\x2E\x67\x69\x66","\x63\x75\x72\x73\x6F\x72","\x63\x68\x69\x6C\x64\x4E\x6F\x64\x65\x73","\x72\x65\x6D\x6F\x76\x65\x43\x75\x72\x73\x6F\x72\x73","\x63\x75\x72\x72\x65\x6E\x74\x53\x74\x79\x6C\x65","\x67\x65\x74\x43\x6F\x6D\x70\x75\x74\x65\x64\x53\x74\x79\x6C\x65","\x67\x65\x74\x43\x75\x72\x72\x65\x6E\x74\x53\x74\x79\x6C\x65","\x73\x63\x72\x6F\x6C\x6C","\x6F\x76\x65\x72\x66\x6C\x6F\x77","\x61\x75\x74\x6F","\x66\x75\x6E\x63\x74\x69\x6F\x6E","\x76\x61\x72\x20\x5F\x6D\x78\x4A\x61\x76\x61\x53\x63\x72\x69\x70\x74\x45\x78\x70\x72\x65\x73\x73\x69\x6F\x6E\x3D","\x6D\x65\x73\x73\x61\x67\x65","\x20\x77\x68\x69\x6C\x65\x20\x65\x76\x61\x6C\x75\x61\x74\x69\x6E\x67\x20","\x77\x61\x72\x6E","\x67\x65\x74\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x66\x69\x72\x73\x74\x43\x68\x69\x6C\x64","\x66\x69\x6E\x64\x4E\x6F\x64\x65","\x6E\x65\x78\x74\x53\x69\x62\x6C\x69\x6E\x67","\x6E\x6F\x64\x65\x54\x79\x70\x65","\x4E\x4F\x44\x45\x54\x59\x50\x45\x5F\x45\x4C\x45\x4D\x45\x4E\x54","\x66\x69\x6E\x64\x4E\x6F\x64\x65\x42\x79\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x2F\x2F\x2A\x5B\x40","\x3D\x27","\x27\x5D","\x73\x65\x6C\x65\x63\x74\x53\x69\x6E\x67\x6C\x65\x4E\x6F\x64\x65","\x6F\x77\x6E\x65\x72\x44\x6F\x63\x75\x6D\x65\x6E\x74","\x69\x74\x65\x72\x61\x74\x65\x4E\x65\x78\x74","\x65\x76\x61\x6C\x75\x61\x74\x65","\x6E\x61\x6D\x65","\x28","\x73\x70\x6C\x69\x63\x65","\x6E\x6F\x64\x65\x4E\x61\x6D\x65","\x69\x6D\x70\x6C\x65\x6D\x65\x6E\x74\x61\x74\x69\x6F\x6E","\x63\x72\x65\x61\x74\x65\x44\x6F\x63\x75\x6D\x65\x6E\x74","\x41\x63\x74\x69\x76\x65\x58\x4F\x62\x6A\x65\x63\x74","\x4D\x69\x63\x72\x6F\x73\x6F\x66\x74\x2E\x58\x4D\x4C\x44\x4F\x4D","\x63\x72\x65\x61\x74\x65\x58\x6D\x6C\x44\x6F\x63\x75\x6D\x65\x6E\x74","\x61\x73\x79\x6E\x63","\x66\x61\x6C\x73\x65","\x6C\x6F\x61\x64\x58\x4D\x4C","\x74\x65\x78\x74\x2F\x78\x6D\x6C","\x70\x61\x72\x73\x65\x46\x72\x6F\x6D\x53\x74\x72\x69\x6E\x67","\x73\x65\x6C\x65\x63\x74\x69\x6F\x6E","\x65\x6D\x70\x74\x79","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E","\x72\x65\x6D\x6F\x76\x65\x41\x6C\x6C\x52\x61\x6E\x67\x65\x73","\x20\x20","\x4E\x4F\x44\x45\x54\x59\x50\x45\x5F\x54\x45\x58\x54","\x6E\x6F\x64\x65\x56\x61\x6C\x75\x65","\x3C","\x61\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x68\x74\x6D\x6C\x45\x6E\x74\x69\x74\x69\x65\x73","\x3D\x22","\x22","\x3E\x0A","\x67\x65\x74\x50\x72\x65\x74\x74\x79\x58\x6D\x6C","\x3C\x2F","\x2F\x3E\x0A","\x70\x72\x65\x76\x69\x6F\x75\x73\x53\x69\x62\x6C\x69\x6E\x67","\x67\x65\x74\x54\x65\x78\x74\x43\x6F\x6E\x74\x65\x6E\x74","\x74\x72\x69\x6D","\x26\x61\x6D\x70\x3B","\x26\x71\x75\x6F\x74\x3B","\x26\x23\x33\x39\x3B","\x26\x6C\x74\x3B","\x26\x67\x74\x3B","\x26\x23\x78\x61\x3B","\x74\x61\x67\x55\x72\x6E","\x78\x6D\x6C","\x69\x6E\x6E\x65\x72\x48\x54\x4D\x4C","\x73\x65\x72\x69\x61\x6C\x69\x7A\x65\x54\x6F\x53\x74\x72\x69\x6E\x67","\x3E","\x6F\x75\x74\x65\x72\x48\x54\x4D\x4C","\x2F\x3E","\x63\x72\x65\x61\x74\x65\x54\x65\x78\x74\x4E\x6F\x64\x65","\x62\x72","\x70","\x66\x69\x6C\x74\x65\x72","\x70\x72\x6F\x67\x69\x64\x3A\x44\x58\x49\x6D\x61\x67\x65\x54\x72\x61\x6E\x73\x66\x6F\x72\x6D\x2E\x4D\x69\x63\x72\x6F\x73\x6F\x66\x74\x2E\x41\x6C\x70\x68\x61\x49\x6D\x61\x67\x65\x4C\x6F\x61\x64\x65\x72\x28\x73\x72\x63\x3D\x27","\x2F\x74\x72\x61\x6E\x73\x70\x61\x72\x65\x6E\x74\x2E\x67\x69\x66\x27\x2C\x20\x73\x69\x7A\x69\x6E\x67\x4D\x65\x74\x68\x6F\x64\x3D\x27\x73\x63\x61\x6C\x65\x27\x29","\x65\x78\x65\x63\x75\x74\x65","\x73\x70\x61\x6E","\x63\x6F\x6C\x6F\x72","\x62\x6C\x75\x65","\x74\x65\x78\x74\x44\x65\x63\x6F\x72\x61\x74\x69\x6F\x6E","\x75\x6E\x64\x65\x72\x6C\x69\x6E\x65","\x70\x6F\x69\x6E\x74\x65\x72","\x70\x61\x64\x64\x69\x6E\x67\x4C\x65\x66\x74","\x6F\x66\x66\x73\x65\x74\x4C\x65\x66\x74","\x6F\x66\x66\x73\x65\x74\x57\x69\x64\x74\x68","\x73\x63\x72\x6F\x6C\x6C\x4C\x65\x66\x74","\x6C\x65\x66\x74","\x6F\x66\x66\x73\x65\x74\x54\x6F\x70","\x55\x6E\x69\x76\x65\x72\x73\x61\x6C\x58\x50\x43\x6F\x6E\x6E\x65\x63\x74","\x65\x6E\x61\x62\x6C\x65\x50\x72\x69\x76\x69\x6C\x65\x67\x65","\x50\x72\x69\x76\x69\x6C\x65\x67\x65\x4D\x61\x6E\x61\x67\x65\x72","\x73\x65\x63\x75\x72\x69\x74\x79","\x50\x65\x72\x6D\x69\x73\x73\x69\x6F\x6E\x20\x74\x6F\x20\x72\x65\x61\x64\x20\x66\x69\x6C\x65\x20\x64\x65\x6E\x69\x65\x64\x2E","\x6E\x73\x49\x4C\x6F\x63\x61\x6C\x46\x69\x6C\x65","\x69\x6E\x74\x65\x72\x66\x61\x63\x65\x73","\x63\x72\x65\x61\x74\x65\x49\x6E\x73\x74\x61\x6E\x63\x65","\x40\x6D\x6F\x7A\x69\x6C\x6C\x61\x2E\x6F\x72\x67\x2F\x66\x69\x6C\x65\x2F\x6C\x6F\x63\x61\x6C\x3B\x31","\x63\x6C\x61\x73\x73\x65\x73","\x69\x6E\x69\x74\x57\x69\x74\x68\x50\x61\x74\x68","\x65\x78\x69\x73\x74\x73","\x46\x69\x6C\x65\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64\x2E","\x6E\x73\x49\x46\x69\x6C\x65\x49\x6E\x70\x75\x74\x53\x74\x72\x65\x61\x6D","\x40\x6D\x6F\x7A\x69\x6C\x6C\x61\x2E\x6F\x72\x67\x2F\x6E\x65\x74\x77\x6F\x72\x6B\x2F\x66\x69\x6C\x65\x2D\x69\x6E\x70\x75\x74\x2D\x73\x74\x72\x65\x61\x6D\x3B\x31","\x6E\x73\x49\x53\x63\x72\x69\x70\x74\x61\x62\x6C\x65\x49\x6E\x70\x75\x74\x53\x74\x72\x65\x61\x6D","\x40\x6D\x6F\x7A\x69\x6C\x6C\x61\x2E\x6F\x72\x67\x2F\x73\x63\x72\x69\x70\x74\x61\x62\x6C\x65\x69\x6E\x70\x75\x74\x73\x74\x72\x65\x61\x6D\x3B\x31","\x61\x76\x61\x69\x6C\x61\x62\x6C\x65","\x72\x65\x61\x64","\x53\x63\x72\x69\x70\x74\x69\x6E\x67\x2E\x46\x69\x6C\x65\x53\x79\x73\x74\x65\x6D\x4F\x62\x6A\x65\x63\x74","\x72\x65\x61\x64\x41\x6C\x6C","\x50\x65\x72\x6D\x69\x73\x73\x69\x6F\x6E\x20\x74\x6F\x20\x77\x72\x69\x74\x65\x20\x66\x69\x6C\x65\x20\x64\x65\x6E\x69\x65\x64\x2E","\x63\x72\x65\x61\x74\x65","\x6E\x73\x49\x46\x69\x6C\x65\x4F\x75\x74\x70\x75\x74\x53\x74\x72\x65\x61\x6D","\x40\x6D\x6F\x7A\x69\x6C\x6C\x61\x2E\x6F\x72\x67\x2F\x6E\x65\x74\x77\x6F\x72\x6B\x2F\x66\x69\x6C\x65\x2D\x6F\x75\x74\x70\x75\x74\x2D\x73\x74\x72\x65\x61\x6D\x3B\x31","\x66\x6C\x75\x73\x68","\x69\x66\x72\x61\x6D\x65","\x73\x72\x63","\x63\x6F\x6E\x74\x65\x6E\x74\x44\x6F\x63\x75\x6D\x65\x6E\x74","\x6F\x70\x65\x6E","\x66\x6F\x63\x75\x73","\x50\x65\x72\x6D\x69\x73\x73\x69\x6F\x6E\x20\x74\x6F\x20\x73\x61\x76\x65\x20\x64\x6F\x63\x75\x6D\x65\x6E\x74\x20\x64\x65\x6E\x69\x65\x64\x2E","\x64\x6F\x63\x75\x6D\x65\x6E\x74","\x63\x6F\x6E\x74\x65\x6E\x74\x57\x69\x6E\x64\x6F\x77","\x53\x61\x76\x65\x41\x73","\x65\x78\x65\x63\x43\x6F\x6D\x6D\x61\x6E\x64","\x63\x6C\x69\x70\x62\x6F\x61\x72\x64\x44\x61\x74\x61","\x54\x65\x78\x74","\x73\x65\x74\x44\x61\x74\x61","\x6E\x73\x49\x43\x6C\x69\x70\x62\x6F\x61\x72\x64","\x40\x6D\x6F\x7A\x69\x6C\x6C\x61\x2E\x6F\x72\x67\x2F\x77\x69\x64\x67\x65\x74\x2F\x63\x6C\x69\x70\x62\x6F\x61\x72\x64\x3B\x31","\x6E\x73\x49\x54\x72\x61\x6E\x73\x66\x65\x72\x61\x62\x6C\x65","\x40\x6D\x6F\x7A\x69\x6C\x6C\x61\x2E\x6F\x72\x67\x2F\x77\x69\x64\x67\x65\x74\x2F\x74\x72\x61\x6E\x73\x66\x65\x72\x61\x62\x6C\x65\x3B\x31","\x74\x65\x78\x74\x2F\x75\x6E\x69\x63\x6F\x64\x65","\x61\x64\x64\x44\x61\x74\x61\x46\x6C\x61\x76\x6F\x72","\x6E\x73\x49\x53\x75\x70\x70\x6F\x72\x74\x73\x53\x74\x72\x69\x6E\x67","\x40\x6D\x6F\x7A\x69\x6C\x6C\x61\x2E\x6F\x72\x67\x2F\x73\x75\x70\x70\x6F\x72\x74\x73\x2D\x73\x74\x72\x69\x6E\x67\x3B\x31","\x64\x61\x74\x61","\x73\x65\x74\x54\x72\x61\x6E\x73\x66\x65\x72\x44\x61\x74\x61","\x6B\x47\x6C\x6F\x62\x61\x6C\x43\x6C\x69\x70\x62\x6F\x61\x72\x64","\x47\x45\x54","\x73\x65\x6E\x64","\x73\x69\x6D\x75\x6C\x61\x74\x65","\x6F\x6E\x72\x65\x61\x64\x79\x73\x74\x61\x74\x65\x63\x68\x61\x6E\x67\x65","\x72\x65\x61\x64\x79\x53\x74\x61\x74\x65","\x61\x64\x64\x45\x76\x65\x6E\x74\x4C\x69\x73\x74\x65\x6E\x65\x72","\x20\x3D\x20\x5B\x6E\x75\x6C\x6C\x5D\x0A","\x20\x3D\x3E\x20\x5B\x46\x75\x6E\x63\x74\x69\x6F\x6E\x5D\x0A","\x20\x3D\x3E\x20\x5B","\x5D\x0A","\x20\x3D\x20","\x50\x49","\x61\x62\x73","\x63\x6F\x73","\x73\x69\x6E","\x73\x71\x72\x74","\x61\x74\x61\x6E\x32","\x63\x65\x69\x6C","\x74\x6F\x52\x61\x64\x69\x61\x6E\x73","\x67\x65\x74\x52\x6F\x74\x61\x74\x65\x64\x50\x6F\x69\x6E\x74","\x67\x65\x74\x56\x61\x6C\x75\x65","\x44\x49\x52\x45\x43\x54\x49\x4F\x4E\x5F\x4D\x41\x53\x4B\x5F\x4E\x4F\x4E\x45","\x44\x49\x52\x45\x43\x54\x49\x4F\x4E\x5F\x4D\x41\x53\x4B\x5F\x4E\x4F\x52\x54\x48","\x44\x49\x52\x45\x43\x54\x49\x4F\x4E\x5F\x4D\x41\x53\x4B\x5F\x57\x45\x53\x54","\x44\x49\x52\x45\x43\x54\x49\x4F\x4E\x5F\x4D\x41\x53\x4B\x5F\x53\x4F\x55\x54\x48","\x44\x49\x52\x45\x43\x54\x49\x4F\x4E\x5F\x4D\x41\x53\x4B\x5F\x45\x41\x53\x54","\x61\x62\x73\x6F\x6C\x75\x74\x65\x50\x6F\x69\x6E\x74\x73","\x70\x74\x53\x65\x67\x44\x69\x73\x74\x53\x71","\x76\x69\x65\x77","\x63\x6F\x6E\x74\x61\x69\x6E\x73","\x6F\x66\x66\x73\x65\x74\x50\x61\x72\x65\x6E\x74","\x67\x65\x74\x53\x63\x72\x6F\x6C\x6C\x4F\x72\x69\x67\x69\x6E","\x67\x65\x74\x4F\x66\x66\x73\x65\x74","\x5E\x5B","\x5C\x73","\x5D\x2B","\x67","\x5B","\x5D\x2B\x24","\x72\x74\x72\x69\x6D","\x6C\x74\x72\x69\x6D","\x30\x78","\x30\x58","\x61\x6E\x69\x6D\x61\x74\x65\x43\x68\x61\x6E\x67\x65\x73","\x66\x61\x64\x65\x4F\x75\x74","\x69\x73\x56\x6D\x6C","\x61\x6C\x70\x68\x61\x28\x6F\x70\x61\x63\x69\x74\x79\x3D","\x29","\x6F\x70\x61\x63\x69\x74\x79","\x43\x53\x53\x31\x43\x6F\x6D\x70\x61\x74","\x56\x4D\x4C\x5F\x50\x52\x45\x46\x49\x58","\x3A\x69\x6D\x61\x67\x65","\x62\x6F\x72\x64\x65\x72\x53\x74\x79\x6C\x65","\x69\x6D\x67","\x62\x6F\x72\x64\x65\x72","\x30","\x63\x6F\x6D\x70\x61\x72\x65","\x73\x6F\x72\x74","\x3B","\x69\x6E\x64\x65\x78\x4F\x66\x53\x74\x79\x6C\x65\x6E\x61\x6D\x65","\x62\x65\x67\x69\x6E\x55\x70\x64\x61\x74\x65","\x67\x65\x74\x53\x74\x79\x6C\x65","\x73\x65\x74\x53\x74\x79\x6C\x65","\x65\x6E\x64\x55\x70\x64\x61\x74\x65","\x73\x65\x74\x53\x74\x79\x6C\x65\x46\x6C\x61\x67","\x3D\x30","\x41\x4C\x49\x47\x4E\x5F\x43\x45\x4E\x54\x45\x52","\x41\x4C\x49\x47\x4E\x5F\x52\x49\x47\x48\x54","\x41\x4C\x49\x47\x4E\x5F\x4D\x49\x44\x44\x4C\x45","\x41\x4C\x49\x47\x4E\x5F\x42\x4F\x54\x54\x4F\x4D","\x44\x45\x46\x41\x55\x4C\x54\x5F\x46\x4F\x4E\x54\x53\x49\x5A\x45","\x44\x45\x46\x41\x55\x4C\x54\x5F\x46\x4F\x4E\x54\x46\x41\x4D\x49\x4C\x59","\x64\x69\x76","\x66\x6F\x6E\x74\x46\x61\x6D\x69\x6C\x79","\x66\x6F\x6E\x74\x53\x69\x7A\x65","\x72\x6F\x75\x6E\x64","\x6C\x69\x6E\x65\x48\x65\x69\x67\x68\x74","\x4C\x49\x4E\x45\x5F\x48\x45\x49\x47\x48\x54","\x70\x6F\x73\x69\x74\x69\x6F\x6E","\x61\x62\x73\x6F\x6C\x75\x74\x65","\x77\x68\x69\x74\x65\x53\x70\x61\x63\x65","\x6E\x6F\x77\x72\x61\x70","\x64\x69\x73\x70\x6C\x61\x79","\x49\x53\x5F\x51\x55\x49\x52\x4B\x53","\x69\x6E\x6C\x69\x6E\x65","\x69\x6E\x6C\x69\x6E\x65\x2D\x62\x6C\x6F\x63\x6B","\x7A\x6F\x6F\x6D","\x31","\x67\x65\x74\x52\x6F\x6F\x74","\x67\x65\x74\x4D\x6F\x64\x65\x6C","\x69\x73\x45\x76\x65\x6E\x74\x73\x45\x6E\x61\x62\x6C\x65\x64","\x73\x65\x74\x45\x76\x65\x6E\x74\x73\x45\x6E\x61\x62\x6C\x65\x64","\x64\x72\x61\x77\x50\x61\x6E\x65","\x6F\x76\x65\x72\x6C\x61\x79\x50\x61\x6E\x65","\x64\x69\x61\x6C\x65\x63\x74","\x44\x49\x41\x4C\x45\x43\x54\x5F\x53\x56\x47","\x63\x72\x65\x61\x74\x65\x45\x6C\x65\x6D\x65\x6E\x74\x4E\x53","\x63\x61\x6E\x76\x61\x73","\x63\x6C\x6F\x6E\x65\x4E\x6F\x64\x65","\x67\x65\x74\x54\x72\x61\x6E\x73\x6C\x61\x74\x65","\x74\x72\x61\x6E\x73\x6C\x61\x74\x65","\x65\x6E\x63\x6F\x64\x65","\x64\x65\x73\x74\x72\x6F\x79","\x50\x41\x47\x45\x5F\x46\x4F\x52\x4D\x41\x54\x5F\x41\x34\x5F\x50\x4F\x52\x54\x52\x41\x49\x54","\x67\x65\x74\x47\x72\x61\x70\x68\x42\x6F\x75\x6E\x64\x73","\x67\x65\x74\x53\x63\x61\x6C\x65","\x66\x6C\x6F\x6F\x72","\x3C\x68\x74\x6D\x6C\x3E\x3C\x68\x65\x61\x64\x3E","\x62\x61\x73\x65","\x3C\x73\x74\x79\x6C\x65\x3E","\x73\x74\x79\x6C\x65\x53\x68\x65\x65\x74\x73","\x3C\x2F\x73\x74\x79\x6C\x65\x3E\x3C\x2F\x68\x65\x61\x64\x3E","\x3C\x62\x6F\x64\x79\x3E","\x63\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x3C\x2F\x62\x6F\x64\x79\x3E","\x3C\x68\x74\x6D\x6C\x3E","\x44\x49\x56","\x3C\x68\x74\x6D\x6C","\x3C\x68\x65\x61\x64\x3E","\x67\x65\x74\x4F\x75\x74\x65\x72\x48\x74\x6D\x6C","\x3C\x2F\x68\x65\x61\x64\x3E","\x3C\x2F\x68\x74\x6D\x6C\x3E","\x74\x72\x61\x6E\x73\x66\x6F\x72\x6D","\x74\x72\x61\x6E\x73\x6C\x61\x74\x65\x28","\x2C","\x6F\x77\x6E\x65\x72\x53\x56\x47\x45\x6C\x65\x6D\x65\x6E\x74","\x73\x68\x6F\x77","\x70\x72\x69\x6E\x74","\x36\x33\x36\x70\x78","\x34\x36\x30\x70\x78","\x70\x72\x65","\x26\x6E\x62\x73\x70\x3B","\x3C\x62\x72\x3E","\x50\x6F\x70\x75\x70\x20\x57\x69\x6E\x64\x6F\x77","\x3C\x70\x72\x65\x3E","\x3C\x2F\x70\x72\x65","\x70\x61\x64\x64\x69\x6E\x67","\x32\x30\x70\x78","\x65\x72\x72\x6F\x72\x49\x6D\x61\x67\x65","\x76\x61\x6C\x69\x67\x6E","\x62\x6F\x74\x74\x6F\x6D","\x6D\x69\x64\x64\x6C\x65","\xA0","\x65\x72\x72\x6F\x72\x52\x65\x73\x6F\x75\x72\x63\x65","\x66\x6C\x6F\x61\x74\x3A\x72\x69\x67\x68\x74","\x63\x6C\x6F\x73\x65\x52\x65\x73\x6F\x75\x72\x63\x65","\x64\x72\x61\x67\x4F\x66\x66\x73\x65\x74","\x54\x4F\x4F\x4C\x54\x49\x50\x5F\x56\x45\x52\x54\x49\x43\x41\x4C\x5F\x4F\x46\x46\x53\x45\x54","\x61\x75\x74\x6F\x73\x63\x72\x6F\x6C\x6C","\x73\x65\x74\x47\x75\x69\x64\x65\x73\x45\x6E\x61\x62\x6C\x65\x64","\x68\x69\x67\x68\x6C\x69\x67\x68\x74\x44\x72\x6F\x70\x54\x61\x72\x67\x65\x74\x73","\x67\x65\x74\x44\x72\x6F\x70\x54\x61\x72\x67\x65\x74","\x67\x65\x74\x47\x72\x61\x70\x68\x46\x6F\x72\x45\x76\x65\x6E\x74","\x63\x72\x65\x61\x74\x65\x44\x72\x61\x67\x45\x6C\x65\x6D\x65\x6E\x74","\x63\x72\x65\x61\x74\x65\x50\x72\x65\x76\x69\x65\x77\x45\x6C\x65\x6D\x65\x6E\x74","\x65\x78\x61\x63\x74","\x66\x61\x73\x74\x65\x72","\x66\x61\x73\x74\x65\x73\x74","\x73\x76\x67","\x76\x6D\x6C","\x6D\x69\x78\x65\x64\x48\x74\x6D\x6C","\x70\x72\x65\x66\x65\x72\x48\x74\x6D\x6C","\x73\x74\x72\x69\x63\x74\x48\x74\x6D\x6C","\x68\x74\x74\x70\x3A\x2F\x2F\x77\x77\x77\x2E\x77\x33\x2E\x6F\x72\x67\x2F\x32\x30\x30\x30\x2F\x73\x76\x67","\x68\x74\x74\x70\x3A\x2F\x2F\x77\x77\x77\x2E\x77\x33\x2E\x6F\x72\x67\x2F\x31\x39\x39\x39\x2F\x78\x68\x74\x6D\x6C","\x68\x74\x74\x70\x3A\x2F\x2F\x77\x77\x77\x2E\x77\x33\x2E\x6F\x72\x67\x2F\x31\x39\x39\x39\x2F\x78\x6C\x69\x6E\x6B","\x67\x72\x61\x79","\x23\x30\x30\x46\x46\x30\x30","\x23\x46\x46\x30\x30\x30\x30","\x6D\x6F\x76\x65","\x64\x65\x66\x61\x75\x6C\x74","\x23\x30\x30\x30\x30\x46\x46","\x23\x30\x30\x39\x39\x46\x46","\x62\x6C\x61\x63\x6B","\x79\x65\x6C\x6C\x6F\x77","\x23\x30\x30\x46\x46\x46\x46","\x23\x30\x30\x33\x33\x46\x46","\x41\x72\x69\x61\x6C\x2C\x48\x65\x6C\x76\x65\x74\x69\x63\x61","\x70\x65\x72\x69\x6D\x65\x74\x65\x72","\x73\x6F\x75\x72\x63\x65\x50\x6F\x72\x74","\x74\x61\x72\x67\x65\x74\x50\x6F\x72\x74","\x70\x6F\x72\x74\x43\x6F\x6E\x73\x74\x72\x61\x69\x6E\x74","\x74\x65\x78\x74\x4F\x70\x61\x63\x69\x74\x79","\x6F\x72\x74\x68\x6F\x67\x6F\x6E\x61\x6C","\x65\x78\x69\x74\x58","\x65\x78\x69\x74\x59","\x65\x78\x69\x74\x50\x65\x72\x69\x6D\x65\x74\x65\x72","\x65\x6E\x74\x72\x79\x58","\x65\x6E\x74\x72\x79\x59","\x65\x6E\x74\x72\x79\x50\x65\x72\x69\x6D\x65\x74\x65\x72","\x72\x6F\x74\x61\x74\x69\x6F\x6E","\x66\x69\x6C\x6C\x43\x6F\x6C\x6F\x72","\x73\x77\x69\x6D\x6C\x61\x6E\x65\x46\x69\x6C\x6C\x43\x6F\x6C\x6F\x72","\x67\x72\x61\x64\x69\x65\x6E\x74\x43\x6F\x6C\x6F\x72","\x67\x72\x61\x64\x69\x65\x6E\x74\x44\x69\x72\x65\x63\x74\x69\x6F\x6E","\x73\x74\x72\x6F\x6B\x65\x43\x6F\x6C\x6F\x72","\x73\x65\x70\x61\x72\x61\x74\x6F\x72\x43\x6F\x6C\x6F\x72","\x73\x74\x72\x6F\x6B\x65\x57\x69\x64\x74\x68","\x61\x6C\x69\x67\x6E","\x6C\x61\x62\x65\x6C\x50\x6F\x73\x69\x74\x69\x6F\x6E","\x76\x65\x72\x74\x69\x63\x61\x6C\x4C\x61\x62\x65\x6C\x50\x6F\x73\x69\x74\x69\x6F\x6E","\x69\x6D\x61\x67\x65\x41\x73\x70\x65\x63\x74","\x69\x6D\x61\x67\x65\x41\x6C\x69\x67\x6E","\x69\x6D\x61\x67\x65\x56\x65\x72\x74\x69\x63\x61\x6C\x41\x6C\x69\x67\x6E","\x67\x6C\x61\x73\x73","\x69\x6D\x61\x67\x65","\x69\x6D\x61\x67\x65\x57\x69\x64\x74\x68","\x69\x6D\x61\x67\x65\x48\x65\x69\x67\x68\x74","\x69\x6D\x61\x67\x65\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64","\x69\x6D\x61\x67\x65\x42\x6F\x72\x64\x65\x72","\x66\x6C\x69\x70\x48","\x66\x6C\x69\x70\x56","\x6E\x6F\x4C\x61\x62\x65\x6C","\x6E\x6F\x45\x64\x67\x65\x53\x74\x79\x6C\x65","\x6C\x61\x62\x65\x6C\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x43\x6F\x6C\x6F\x72","\x6C\x61\x62\x65\x6C\x42\x6F\x72\x64\x65\x72\x43\x6F\x6C\x6F\x72","\x6C\x61\x62\x65\x6C\x50\x61\x64\x64\x69\x6E\x67","\x69\x6E\x64\x69\x63\x61\x74\x6F\x72\x53\x68\x61\x70\x65","\x69\x6E\x64\x69\x63\x61\x74\x6F\x72\x49\x6D\x61\x67\x65","\x69\x6E\x64\x69\x63\x61\x74\x6F\x72\x43\x6F\x6C\x6F\x72","\x69\x6E\x64\x69\x63\x61\x74\x6F\x72\x53\x74\x72\x6F\x6B\x65\x43\x6F\x6C\x6F\x72","\x69\x6E\x64\x69\x63\x61\x74\x6F\x72\x47\x72\x61\x64\x69\x65\x6E\x74\x43\x6F\x6C\x6F\x72","\x69\x6E\x64\x69\x63\x61\x74\x6F\x72\x53\x70\x61\x63\x69\x6E\x67","\x69\x6E\x64\x69\x63\x61\x74\x6F\x72\x57\x69\x64\x74\x68","\x69\x6E\x64\x69\x63\x61\x74\x6F\x72\x48\x65\x69\x67\x68\x74","\x69\x6E\x64\x69\x63\x61\x74\x6F\x72\x44\x69\x72\x65\x63\x74\x69\x6F\x6E","\x73\x68\x61\x64\x6F\x77","\x73\x65\x67\x6D\x65\x6E\x74","\x65\x6E\x64\x41\x72\x72\x6F\x77","\x73\x74\x61\x72\x74\x41\x72\x72\x6F\x77","\x65\x6E\x64\x53\x69\x7A\x65","\x73\x74\x61\x72\x74\x53\x69\x7A\x65","\x73\x77\x69\x6D\x6C\x61\x6E\x65\x4C\x69\x6E\x65","\x65\x6E\x64\x46\x69\x6C\x6C","\x73\x74\x61\x72\x74\x46\x69\x6C\x6C","\x64\x61\x73\x68\x65\x64","\x64\x61\x73\x68\x50\x61\x74\x74\x65\x72\x6E","\x72\x6F\x75\x6E\x64\x65\x64","\x63\x75\x72\x76\x65\x64","\x61\x72\x63\x53\x69\x7A\x65","\x73\x6D\x6F\x6F\x74\x68","\x73\x6F\x75\x72\x63\x65\x50\x65\x72\x69\x6D\x65\x74\x65\x72\x53\x70\x61\x63\x69\x6E\x67","\x74\x61\x72\x67\x65\x74\x50\x65\x72\x69\x6D\x65\x74\x65\x72\x53\x70\x61\x63\x69\x6E\x67","\x70\x65\x72\x69\x6D\x65\x74\x65\x72\x53\x70\x61\x63\x69\x6E\x67","\x73\x70\x61\x63\x69\x6E\x67","\x73\x70\x61\x63\x69\x6E\x67\x54\x6F\x70","\x73\x70\x61\x63\x69\x6E\x67\x4C\x65\x66\x74","\x73\x70\x61\x63\x69\x6E\x67\x42\x6F\x74\x74\x6F\x6D","\x73\x70\x61\x63\x69\x6E\x67\x52\x69\x67\x68\x74","\x68\x6F\x72\x69\x7A\x6F\x6E\x74\x61\x6C","\x64\x69\x72\x65\x63\x74\x69\x6F\x6E","\x65\x6C\x62\x6F\x77","\x66\x6F\x6E\x74\x43\x6F\x6C\x6F\x72","\x66\x6F\x6E\x74\x53\x74\x79\x6C\x65","\x61\x75\x74\x6F\x73\x69\x7A\x65","\x66\x6F\x6C\x64\x61\x62\x6C\x65","\x65\x64\x69\x74\x61\x62\x6C\x65","\x62\x65\x6E\x64\x61\x62\x6C\x65","\x6D\x6F\x76\x61\x62\x6C\x65","\x72\x65\x73\x69\x7A\x61\x62\x6C\x65","\x63\x6C\x6F\x6E\x65\x61\x62\x6C\x65","\x64\x65\x6C\x65\x74\x61\x62\x6C\x65","\x65\x64\x67\x65\x53\x74\x79\x6C\x65","\x6C\x6F\x6F\x70\x53\x74\x79\x6C\x65","\x72\x6F\x75\x74\x69\x6E\x67\x43\x65\x6E\x74\x65\x72\x58","\x72\x6F\x75\x74\x69\x6E\x67\x43\x65\x6E\x74\x65\x72\x59","\x72\x65\x63\x74\x61\x6E\x67\x6C\x65","\x65\x6C\x6C\x69\x70\x73\x65","\x64\x6F\x75\x62\x6C\x65\x45\x6C\x6C\x69\x70\x73\x65","\x72\x68\x6F\x6D\x62\x75\x73","\x6C\x69\x6E\x65","\x61\x72\x72\x6F\x77","\x6C\x61\x62\x65\x6C","\x63\x79\x6C\x69\x6E\x64\x65\x72","\x73\x77\x69\x6D\x6C\x61\x6E\x65","\x63\x6F\x6E\x6E\x65\x63\x74\x6F\x72","\x61\x63\x74\x6F\x72","\x63\x6C\x6F\x75\x64","\x74\x72\x69\x61\x6E\x67\x6C\x65","\x68\x65\x78\x61\x67\x6F\x6E","\x63\x6C\x61\x73\x73\x69\x63","\x62\x6C\x6F\x63\x6B","\x6F\x76\x61\x6C","\x64\x69\x61\x6D\x6F\x6E\x64","\x64\x69\x61\x6D\x6F\x6E\x64\x54\x68\x69\x6E","\x63\x65\x6E\x74\x65\x72","\x72\x69\x67\x68\x74","\x6E\x6F\x72\x74\x68","\x73\x6F\x75\x74\x68","\x65\x61\x73\x74","\x77\x65\x73\x74","\x76\x65\x72\x74\x69\x63\x61\x6C","\x65\x6C\x62\x6F\x77\x45\x64\x67\x65\x53\x74\x79\x6C\x65","\x65\x6E\x74\x69\x74\x79\x52\x65\x6C\x61\x74\x69\x6F\x6E\x45\x64\x67\x65\x53\x74\x79\x6C\x65","\x6C\x6F\x6F\x70\x45\x64\x67\x65\x53\x74\x79\x6C\x65","\x73\x69\x64\x65\x54\x6F\x53\x69\x64\x65\x45\x64\x67\x65\x53\x74\x79\x6C\x65","\x74\x6F\x70\x54\x6F\x42\x6F\x74\x74\x6F\x6D\x45\x64\x67\x65\x53\x74\x79\x6C\x65","\x6F\x72\x74\x68\x6F\x67\x6F\x6E\x61\x6C\x45\x64\x67\x65\x53\x74\x79\x6C\x65","\x73\x65\x67\x6D\x65\x6E\x74\x45\x64\x67\x65\x53\x74\x79\x6C\x65","\x65\x6C\x6C\x69\x70\x73\x65\x50\x65\x72\x69\x6D\x65\x74\x65\x72","\x72\x65\x63\x74\x61\x6E\x67\x6C\x65\x50\x65\x72\x69\x6D\x65\x74\x65\x72","\x72\x68\x6F\x6D\x62\x75\x73\x50\x65\x72\x69\x6D\x65\x74\x65\x72","\x74\x72\x69\x61\x6E\x67\x6C\x65\x50\x65\x72\x69\x6D\x65\x74\x65\x72","\x70\x72\x6F\x70\x65\x72\x74\x69\x65\x73","\x63\x6F\x6E\x73\x75\x6D\x65\x64","\x67\x65\x74\x4E\x61\x6D\x65","\x67\x65\x74\x50\x72\x6F\x70\x65\x72\x74\x69\x65\x73","\x67\x65\x74\x50\x72\x6F\x70\x65\x72\x74\x79","\x69\x73\x43\x6F\x6E\x73\x75\x6D\x65\x64","\x63\x6F\x6E\x73\x75\x6D\x65","\x65\x76\x74","\x73\x74\x61\x74\x65","\x67\x72\x61\x70\x68\x58","\x67\x72\x61\x70\x68\x59","\x67\x65\x74\x45\x76\x65\x6E\x74","\x67\x65\x74\x53\x6F\x75\x72\x63\x65","\x69\x73\x53\x6F\x75\x72\x63\x65","\x67\x65\x74\x58","\x67\x65\x74\x43\x6C\x69\x65\x6E\x74\x58","\x67\x65\x74\x59","\x67\x65\x74\x43\x6C\x69\x65\x6E\x74\x59","\x67\x65\x74\x47\x72\x61\x70\x68\x58","\x67\x65\x74\x47\x72\x61\x70\x68\x59","\x67\x65\x74\x43\x65\x6C\x6C","\x69\x73\x50\x6F\x70\x75\x70\x54\x72\x69\x67\x67\x65\x72","\x70\x72\x65\x76\x65\x6E\x74\x44\x65\x66\x61\x75\x6C\x74","\x72\x65\x74\x75\x72\x6E\x56\x61\x6C\x75\x65","\x73\x65\x74\x45\x76\x65\x6E\x74\x53\x6F\x75\x72\x63\x65","\x65\x76\x65\x6E\x74\x4C\x69\x73\x74\x65\x6E\x65\x72\x73","\x65\x76\x65\x6E\x74\x73\x45\x6E\x61\x62\x6C\x65\x64","\x65\x76\x65\x6E\x74\x53\x6F\x75\x72\x63\x65","\x67\x65\x74\x45\x76\x65\x6E\x74\x53\x6F\x75\x72\x63\x65","\x72\x65\x6D\x6F\x76\x65\x4C\x69\x73\x74\x65\x6E\x65\x72","\x66\x69\x72\x65\x45\x76\x65\x6E\x74","\x6F\x6E","\x66","\x72\x65\x6D\x6F\x76\x65\x45\x76\x65\x6E\x74\x4C\x69\x73\x74\x65\x6E\x65\x72","\x64\x65\x74\x61\x63\x68\x45\x76\x65\x6E\x74","\x6D\x6F\x75\x73\x65\x64\x6F\x77\x6E","\x6D\x6F\x75\x73\x65\x6D\x6F\x76\x65","\x6D\x6F\x75\x73\x65\x75\x70","\x49\x53\x5F\x54\x4F\x55\x43\x48","\x74\x6F\x75\x63\x68\x73\x74\x61\x72\x74","\x74\x6F\x75\x63\x68\x6D\x6F\x76\x65","\x74\x6F\x75\x63\x68\x65\x6E\x64","\x66\x69\x72\x65\x4D\x6F\x75\x73\x65\x45\x76\x65\x6E\x74","\x61\x64\x64\x47\x65\x73\x74\x75\x72\x65\x4C\x69\x73\x74\x65\x6E\x65\x72\x73","\x64\x62\x6C\x63\x6C\x69\x63\x6B","\x64\x62\x6C\x43\x6C\x69\x63\x6B","\x72\x65\x6C\x65\x61\x73\x65","\x65\x76\x65\x6E\x74","\x64\x65\x74\x61\x69\x6C","\x77\x68\x65\x65\x6C\x44\x65\x6C\x74\x61","\x6D\x6F\x75\x73\x65\x77\x68\x65\x65\x6C","\x44\x4F\x4D\x4D\x6F\x75\x73\x65\x53\x63\x72\x6F\x6C\x6C","\x63\x6F\x6E\x74\x65\x78\x74\x6D\x65\x6E\x75","\x6F\x6E\x63\x6F\x6E\x74\x65\x78\x74\x6D\x65\x6E\x75","\x72\x65\x74\x75\x72\x6E\x20\x66\x61\x6C\x73\x65\x3B","\x73\x72\x63\x45\x6C\x65\x6D\x65\x6E\x74","\x74\x61\x72\x67\x65\x74","\x69\x73\x52\x69\x67\x68\x74\x4D\x6F\x75\x73\x65\x42\x75\x74\x74\x6F\x6E","\x69\x73\x53\x68\x69\x66\x74\x44\x6F\x77\x6E","\x69\x73\x43\x6F\x6E\x74\x72\x6F\x6C\x44\x6F\x77\x6E","\x73\x68\x69\x66\x74\x4B\x65\x79","\x61\x6C\x74\x4B\x65\x79","\x63\x74\x72\x6C\x4B\x65\x79","\x6D\x65\x74\x61\x4B\x65\x79","\x74\x6F\x75\x63\x68\x65\x73","\x63\x68\x61\x6E\x67\x65\x64\x54\x6F\x75\x63\x68\x65\x73","\x63\x6C\x69\x65\x6E\x74\x58","\x67\x65\x74\x4D\x61\x69\x6E\x45\x76\x65\x6E\x74","\x63\x6C\x69\x65\x6E\x74\x59","\x73\x74\x6F\x70\x50\x72\x6F\x70\x61\x67\x61\x74\x69\x6F\x6E","\x63\x61\x6E\x63\x65\x6C\x42\x75\x62\x62\x6C\x65","\x6D\x6F\x75\x73\x65\x44\x6F\x77\x6E","\x6D\x6F\x75\x73\x65\x4D\x6F\x76\x65","\x6D\x6F\x75\x73\x65\x55\x70","\x61\x63\x74\x69\x76\x61\x74\x65","\x72\x65\x73\x69\x7A\x65\x53\x74\x61\x72\x74","\x72\x65\x73\x69\x7A\x65\x45\x6E\x64","\x6D\x6F\x76\x65\x53\x74\x61\x72\x74","\x6D\x6F\x76\x65\x45\x6E\x64","\x70\x61\x6E\x53\x74\x61\x72\x74","\x70\x61\x6E","\x70\x61\x6E\x45\x6E\x64","\x6D\x69\x6E\x69\x6D\x69\x7A\x65","\x6E\x6F\x72\x6D\x61\x6C\x69\x7A\x65","\x6D\x61\x78\x69\x6D\x69\x7A\x65","\x68\x69\x64\x65","\x72\x65\x66\x72\x65\x73\x68","\x73\x69\x7A\x65","\x73\x65\x6C\x65\x63\x74","\x66\x69\x72\x65\x64","\x72\x65\x63\x65\x69\x76\x65","\x63\x6F\x6E\x6E\x65\x63\x74","\x64\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74","\x73\x75\x73\x70\x65\x6E\x64","\x72\x65\x73\x75\x6D\x65","\x6D\x61\x72\x6B","\x73\x65\x73\x73\x69\x6F\x6E","\x72\x6F\x6F\x74","\x70\x6F\x73\x74","\x73\x61\x76\x65","\x62\x65\x66\x6F\x72\x65\x41\x64\x64\x56\x65\x72\x74\x65\x78","\x61\x64\x64\x56\x65\x72\x74\x65\x78","\x61\x66\x74\x65\x72\x41\x64\x64\x56\x65\x72\x74\x65\x78","\x64\x6F\x6E\x65","\x65\x78\x65\x63\x75\x74\x65\x64","\x73\x74\x61\x72\x74\x45\x64\x69\x74","\x65\x6E\x64\x45\x64\x69\x74","\x62\x65\x66\x6F\x72\x65\x55\x6E\x64\x6F","\x75\x6E\x64\x6F","\x72\x65\x64\x6F","\x63\x68\x61\x6E\x67\x65","\x6E\x6F\x74\x69\x66\x79","\x6C\x61\x79\x6F\x75\x74\x43\x65\x6C\x6C\x73","\x73\x63\x61\x6C\x65\x41\x6E\x64\x54\x72\x61\x6E\x73\x6C\x61\x74\x65","\x75\x70","\x64\x6F\x77\x6E","\x61\x64\x64\x43\x65\x6C\x6C\x73","\x63\x65\x6C\x6C\x73\x41\x64\x64\x65\x64","\x6D\x6F\x76\x65\x43\x65\x6C\x6C\x73","\x63\x65\x6C\x6C\x73\x4D\x6F\x76\x65\x64","\x72\x65\x73\x69\x7A\x65\x43\x65\x6C\x6C\x73","\x63\x65\x6C\x6C\x73\x52\x65\x73\x69\x7A\x65\x64","\x74\x6F\x67\x67\x6C\x65\x43\x65\x6C\x6C\x73","\x63\x65\x6C\x6C\x73\x54\x6F\x67\x67\x6C\x65\x64","\x6F\x72\x64\x65\x72\x43\x65\x6C\x6C\x73","\x63\x65\x6C\x6C\x73\x4F\x72\x64\x65\x72\x65\x64","\x72\x65\x6D\x6F\x76\x65\x43\x65\x6C\x6C\x73","\x63\x65\x6C\x6C\x73\x52\x65\x6D\x6F\x76\x65\x64","\x67\x72\x6F\x75\x70\x43\x65\x6C\x6C\x73","\x75\x6E\x67\x72\x6F\x75\x70\x43\x65\x6C\x6C\x73","\x72\x65\x6D\x6F\x76\x65\x43\x65\x6C\x6C\x73\x46\x72\x6F\x6D\x50\x61\x72\x65\x6E\x74","\x66\x6F\x6C\x64\x43\x65\x6C\x6C\x73","\x63\x65\x6C\x6C\x73\x46\x6F\x6C\x64\x65\x64","\x61\x6C\x69\x67\x6E\x43\x65\x6C\x6C\x73","\x6C\x61\x62\x65\x6C\x43\x68\x61\x6E\x67\x65\x64","\x63\x6F\x6E\x6E\x65\x63\x74\x43\x65\x6C\x6C","\x63\x65\x6C\x6C\x43\x6F\x6E\x6E\x65\x63\x74\x65\x64","\x73\x70\x6C\x69\x74\x45\x64\x67\x65","\x66\x6C\x69\x70\x45\x64\x67\x65","\x73\x74\x61\x72\x74\x45\x64\x69\x74\x69\x6E\x67","\x61\x64\x64\x4F\x76\x65\x72\x6C\x61\x79","\x72\x65\x6D\x6F\x76\x65\x4F\x76\x65\x72\x6C\x61\x79","\x75\x70\x64\x61\x74\x65\x43\x65\x6C\x6C\x53\x69\x7A\x65","\x65\x73\x63\x61\x70\x65","\x64\x6F\x75\x62\x6C\x65\x43\x6C\x69\x63\x6B","\x73\x74\x61\x72\x74","\x72\x65\x73\x65\x74","\x75\x72\x6C","\x70\x61\x72\x61\x6D\x73","\x6D\x65\x74\x68\x6F\x64","\x50\x4F\x53\x54","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x70\x61\x73\x73\x77\x6F\x72\x64","\x62\x69\x6E\x61\x72\x79","\x72\x65\x71\x75\x65\x73\x74","\x69\x73\x42\x69\x6E\x61\x72\x79","\x73\x65\x74\x42\x69\x6E\x61\x72\x79","\x72\x65\x73\x70\x6F\x6E\x73\x65\x54\x65\x78\x74","\x67\x65\x74\x44\x6F\x63\x75\x6D\x65\x6E\x74\x45\x6C\x65\x6D\x65\x6E\x74","\x67\x65\x74\x58\x6D\x6C","\x72\x65\x73\x70\x6F\x6E\x73\x65\x58\x4D\x4C","\x70\x61\x72\x73\x65\x58\x6D\x6C","\x67\x65\x74\x53\x74\x61\x74\x75\x73","\x73\x74\x61\x74\x75\x73","\x58\x4D\x4C\x48\x74\x74\x70\x52\x65\x71\x75\x65\x73\x74","\x6F\x76\x65\x72\x72\x69\x64\x65\x4D\x69\x6D\x65\x54\x79\x70\x65","\x74\x65\x78\x74\x2F\x70\x6C\x61\x69\x6E\x3B\x20\x63\x68\x61\x72\x73\x65\x74\x3D\x78\x2D\x75\x73\x65\x72\x2D\x64\x65\x66\x69\x6E\x65\x64","\x4D\x69\x63\x72\x6F\x73\x6F\x66\x74\x2E\x58\x4D\x4C\x48\x54\x54\x50","\x6F\x6E\x72\x65\x61\x64\x79\x73\x74\x61\x74\x65\x63\x68\x61\x61\x6E\x67\x65","\x62\x69\x6E\x64","\x73\x65\x74\x52\x65\x71\x75\x65\x73\x74\x48\x65\x61\x64\x65\x72\x73","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2F\x78\x2D\x77\x77\x77\x2D\x66\x6F\x72\x6D\x2D\x75\x72\x6C\x65\x6E\x63\x6F\x64\x65\x64","\x73\x65\x74\x52\x65\x71\x75\x65\x73\x74\x48\x65\x61\x64\x65\x72","\x6F\x6E\x62\x65\x66\x6F\x72\x65\x75\x6E\x6C\x6F\x61\x64","\x66\x6F\x72\x6D","\x61\x63\x74\x69\x6F\x6E","\x26","\x73\x75\x62\x6D\x69\x74","\x63\x65\x6C\x6C\x73","\x69\x6E\x73\x65\x72\x74\x43\x6F\x75\x6E\x74","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C\x73","\x67\x65\x74\x45\x78\x70\x6F\x72\x74\x61\x62\x6C\x65\x43\x65\x6C\x6C\x73","\x63\x6C\x6F\x6E\x65\x43\x65\x6C\x6C\x73","\x67\x65\x74\x49\x6D\x70\x6F\x72\x74\x61\x62\x6C\x65\x43\x65\x6C\x6C\x73","\x53\x54\x45\x50\x53\x49\x5A\x45","\x67\x65\x74\x44\x65\x66\x61\x75\x6C\x74\x50\x61\x72\x65\x6E\x74","\x69\x6D\x70\x6F\x72\x74\x43\x65\x6C\x6C\x73","\x73\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C\x73","\x63\x6F\x6E\x74\x65\x6E\x74","\x69\x6E\x73\x74\x61\x6C\x6C\x4D\x61\x78\x69\x6D\x69\x7A\x65\x48\x61\x6E\x64\x6C\x65\x72","\x69\x6E\x73\x74\x61\x6C\x6C\x4D\x69\x6E\x69\x6D\x69\x7A\x65\x48\x61\x6E\x64\x6C\x65\x72","\x69\x6E\x73\x74\x61\x6C\x6C\x43\x6C\x6F\x73\x65\x48\x61\x6E\x64\x6C\x65\x72","\x73\x65\x74\x4D\x69\x6E\x69\x6D\x69\x7A\x61\x62\x6C\x65","\x73\x65\x74\x54\x69\x74\x6C\x65","\x69\x6E\x73\x74\x61\x6C\x6C\x4D\x6F\x76\x65\x48\x61\x6E\x64\x6C\x65\x72","\x72\x65\x70\x6C\x61\x63\x65\x43\x68\x69\x6C\x64","\x63\x6C\x6F\x73\x65\x49\x6D\x61\x67\x65","\x2F\x63\x6C\x6F\x73\x65\x2E\x67\x69\x66","\x6D\x69\x6E\x69\x6D\x69\x7A\x65\x49\x6D\x61\x67\x65","\x2F\x6D\x69\x6E\x69\x6D\x69\x7A\x65\x2E\x67\x69\x66","\x6E\x6F\x72\x6D\x61\x6C\x69\x7A\x65\x49\x6D\x61\x67\x65","\x2F\x6E\x6F\x72\x6D\x61\x6C\x69\x7A\x65\x2E\x67\x69\x66","\x6D\x61\x78\x69\x6D\x69\x7A\x65\x49\x6D\x61\x67\x65","\x2F\x6D\x61\x78\x69\x6D\x69\x7A\x65\x2E\x67\x69\x66","\x72\x65\x73\x69\x7A\x65\x49\x6D\x61\x67\x65","\x2F\x72\x65\x73\x69\x7A\x65\x2E\x67\x69\x66","\x6D\x69\x6E\x69\x6D\x75\x6D\x53\x69\x7A\x65","\x74\x69\x74\x6C\x65","\x6D\x78\x57\x69\x6E\x64\x6F\x77","\x63\x6C\x61\x73\x73\x4E\x61\x6D\x65","\x54\x69\x74\x6C\x65","\x50\x61\x6E\x65","\x63\x6F\x6E\x74\x65\x6E\x74\x57\x72\x61\x70\x70\x65\x72","\x61\x63\x74\x69\x76\x65\x57\x69\x6E\x64\x6F\x77","\x7A\x49\x6E\x64\x65\x78","\x70\x72\x65\x76\x69\x6F\x75\x73\x57\x69\x6E\x64\x6F\x77","\x66\x69\x74","\x69\x73\x52\x65\x73\x69\x7A\x61\x62\x6C\x65","\x32\x70\x78","\x6E\x77\x2D\x72\x65\x73\x69\x7A\x65","\x73\x65\x74\x53\x69\x7A\x65","\x72\x65\x6D\x6F\x76\x65\x47\x65\x73\x74\x75\x72\x65\x4C\x69\x73\x74\x65\x6E\x65\x72\x73","\x67\x65\x74\x4D\x69\x6E\x69\x6D\x75\x6D\x53\x69\x7A\x65","\x4D\x69\x6E\x69\x6D\x69\x7A\x65","\x6D\x61\x72\x67\x69\x6E\x52\x69\x67\x68\x74","\x31\x70\x78","\x4E\x6F\x72\x6D\x61\x6C\x69\x7A\x65","\x4D\x61\x78\x69\x6D\x69\x7A\x65","\x6D\x61\x72\x67\x69\x6E\x4C\x65\x66\x74","\x30\x70\x78","\x73\x65\x74\x4C\x6F\x63\x61\x74\x69\x6F\x6E","\x63\x6C\x6F\x73\x65\x49\x6D\x67","\x43\x6C\x6F\x73\x65","\x69\x6E\x73\x65\x72\x74\x42\x65\x66\x6F\x72\x65","\x73\x65\x74\x49\x6D\x61\x67\x65","\x34\x70\x78","\x6D\x61\x72\x67\x69\x6E\x54\x6F\x70","\x2D\x32\x70\x78","\x67\x65\x74\x54\x61\x62\x6C\x65","\x61\x64\x64\x42\x75\x74\x74\x6F\x6E\x73","\x6F\x6B","\x4F\x4B","\x63\x61\x6E\x63\x65\x6C","\x43\x61\x6E\x63\x65\x6C","\x61\x64\x64\x54\x65\x78\x74","\x69\x6E\x70\x75\x74","\x74\x65\x78\x74","\x61\x64\x64\x46\x69\x65\x6C\x64","\x61\x64\x64\x43\x68\x65\x63\x6B\x62\x6F\x78","\x63\x68\x65\x63\x6B\x62\x6F\x78","\x63\x68\x65\x63\x6B\x65\x64","\x61\x64\x64\x54\x65\x78\x74\x61\x72\x65\x61","\x72\x6F\x77\x73","\x61\x64\x64\x43\x6F\x6D\x62\x6F","\x6D\x75\x6C\x74\x69\x70\x6C\x65","\x61\x64\x64\x4F\x70\x74\x69\x6F\x6E","\x6F\x70\x74\x69\x6F\x6E","\x73\x65\x6C\x65\x63\x74\x65\x64","\x72\x65\x73\x69\x7A\x65\x57\x69\x64\x74\x68","\x72\x65\x73\x69\x7A\x65\x48\x65\x69\x67\x68\x74","\x68\x61\x6E\x64\x6C\x69\x6E\x67\x52\x65\x73\x69\x7A\x65","\x67\x65\x74\x44\x6F\x63\x75\x6D\x65\x6E\x74\x57\x69\x64\x74\x68","\x67\x65\x74\x44\x6F\x63\x75\x6D\x65\x6E\x74\x48\x65\x69\x67\x68\x74","\x65\x6C\x65\x6D\x65\x6E\x74","\x64\x72\x6F\x70\x48\x61\x6E\x64\x6C\x65\x72","\x64\x72\x61\x67\x45\x6C\x65\x6D\x65\x6E\x74","\x70\x72\x65\x76\x69\x65\x77\x45\x6C\x65\x6D\x65\x6E\x74","\x65\x6E\x61\x62\x6C\x65\x64","\x63\x75\x72\x72\x65\x6E\x74\x47\x72\x61\x70\x68","\x63\x75\x72\x72\x65\x6E\x74\x44\x72\x6F\x70\x54\x61\x72\x67\x65\x74","\x63\x75\x72\x72\x65\x6E\x74\x50\x6F\x69\x6E\x74","\x63\x75\x72\x72\x65\x6E\x74\x47\x75\x69\x64\x65","\x63\x75\x72\x72\x65\x6E\x74\x48\x69\x67\x68\x6C\x69\x67\x68\x74","\x67\x75\x69\x64\x65\x73\x45\x6E\x61\x62\x6C\x65\x64","\x67\x72\x69\x64\x45\x6E\x61\x62\x6C\x65\x64","\x64\x72\x61\x67\x45\x6C\x65\x6D\x65\x6E\x74\x5A\x49\x6E\x64\x65\x78","\x64\x72\x61\x67\x45\x6C\x65\x6D\x65\x6E\x74\x4F\x70\x61\x63\x69\x74\x79","\x69\x73\x45\x6E\x61\x62\x6C\x65\x64","\x73\x65\x74\x45\x6E\x61\x62\x6C\x65\x64","\x69\x73\x47\x75\x69\x64\x65\x73\x45\x6E\x61\x62\x6C\x65\x64","\x69\x73\x47\x72\x69\x64\x45\x6E\x61\x62\x6C\x65\x64","\x73\x65\x74\x47\x72\x69\x64\x45\x6E\x61\x62\x6C\x65\x64","\x67\x65\x74\x43\x65\x6C\x6C\x41\x74","\x6D\x6F\x75\x73\x65\x4D\x6F\x76\x65\x48\x61\x6E\x64\x6C\x65\x72","\x73\x74\x61\x72\x74\x44\x72\x61\x67","\x6D\x6F\x75\x73\x65\x55\x70\x48\x61\x6E\x64\x6C\x65\x72","\x73\x74\x6F\x70\x44\x72\x61\x67","\x67\x72\x61\x70\x68\x43\x6F\x6E\x74\x61\x69\x6E\x73\x45\x76\x65\x6E\x74","\x64\x72\x61\x67\x45\x78\x69\x74","\x64\x72\x61\x67\x45\x6E\x74\x65\x72","\x64\x72\x61\x67\x4F\x76\x65\x72","\x64\x72\x6F\x70","\x69\x73\x4D\x6F\x75\x73\x65\x44\x6F\x77\x6E","\x67\x65\x74\x47\x75\x69\x64\x65\x53\x74\x61\x74\x65\x73","\x67\x72\x61\x70\x68\x48\x61\x6E\x64\x6C\x65\x72","\x61\x75\x74\x6F\x53\x63\x72\x6F\x6C\x6C","\x61\x75\x74\x6F\x45\x78\x74\x65\x6E\x64","\x73\x63\x72\x6F\x6C\x6C\x50\x6F\x69\x6E\x74\x54\x6F\x56\x69\x73\x69\x62\x6C\x65","\x69\x73\x44\x72\x6F\x70\x45\x6E\x61\x62\x6C\x65\x64","\x68\x69\x67\x68\x6C\x69\x67\x68\x74","\x33","\x69\x73\x47\x72\x69\x64\x45\x6E\x61\x62\x6C\x65\x64\x45\x76\x65\x6E\x74","\x69\x73\x45\x6E\x61\x62\x6C\x65\x64\x46\x6F\x72\x45\x76\x65\x6E\x74","\x67\x72\x69\x64\x53\x69\x7A\x65","\x73\x6E\x61\x70","\x70\x72\x65\x76\x69\x65\x77\x4F\x66\x66\x73\x65\x74","\x6E\x6F\x52\x65\x73\x65\x74","\x75\x70\x64\x61\x74\x65\x44\x65\x66\x61\x75\x6C\x74\x4D\x6F\x64\x65","\x61\x64\x64\x49\x74\x65\x6D","\x6D\x78\x54\x6F\x6F\x6C\x62\x61\x72\x4D\x6F\x64\x65","\x6D\x78\x54\x6F\x6F\x6C\x62\x61\x72\x49\x74\x65\x6D","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x43\x6F\x6C\x6F\x72","\x6D\x65\x6E\x75","\x63\x75\x72\x72\x65\x6E\x74\x49\x6D\x67","\x69\x73\x4D\x65\x6E\x75\x53\x68\x6F\x77\x69\x6E\x67","\x68\x69\x64\x65\x4D\x65\x6E\x75","\x66\x61\x63\x74\x6F\x72\x79\x4D\x65\x74\x68\x6F\x64","\x53\x65\x6C\x65\x63\x74\x65\x64","\x6D\x6F\x75\x73\x65\x6F\x75\x74","\x6D\x78\x54\x6F\x6F\x6C\x62\x61\x72\x43\x6F\x6D\x62\x6F\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x6D\x78\x54\x6F\x6F\x6C\x62\x61\x72\x43\x6F\x6D\x62\x6F","\x61\x64\x64\x41\x63\x74\x69\x6F\x6E\x43\x6F\x6D\x62\x6F","\x73\x65\x6C\x65\x63\x74\x65\x64\x49\x6E\x64\x65\x78","\x6F\x70\x74\x69\x6F\x6E\x73","\x66\x75\x6E\x63\x74","\x61\x64\x64\x53\x77\x69\x74\x63\x68\x4D\x6F\x64\x65","\x69\x6E\x69\x74\x69\x61\x6C\x43\x6C\x61\x73\x73\x4E\x61\x6D\x65","\x61\x6C\x74\x49\x63\x6F\x6E","\x73\x65\x6C\x65\x63\x74\x65\x64\x4D\x6F\x64\x65","\x64\x65\x66\x61\x75\x6C\x74\x4D\x6F\x64\x65","\x73\x65\x6C\x65\x63\x74\x4D\x6F\x64\x65","\x61\x64\x64\x4D\x6F\x64\x65","\x64\x65\x66\x61\x75\x6C\x74\x46\x75\x6E\x63\x74\x69\x6F\x6E","\x72\x65\x73\x65\x74\x4D\x6F\x64\x65","\x61\x64\x64\x53\x65\x70\x61\x72\x61\x74\x6F\x72","\x61\x64\x64\x42\x72\x65\x61\x6B","\x61\x64\x64\x4C\x69\x6E\x65","\x68\x72","\x36\x70\x78","\x75\x72\x6C\x49\x6E\x69\x74","\x75\x72\x6C\x50\x6F\x6C\x6C","\x75\x72\x6C\x4E\x6F\x74\x69\x66\x79","\x63\x6F\x64\x65\x63","\x6C\x6F\x6F\x6B\x75\x70","\x65\x64\x69\x74","\x63\x6F\x6E\x6E\x65\x63\x74\x65\x64","\x73\x75\x73\x70\x65\x6E\x64\x65\x64","\x3C\x65\x64\x69\x74\x3E","\x63\x68\x61\x6E\x67\x65\x73","\x75\x6E\x64\x6F\x6E\x65","\x65\x6E\x63\x6F\x64\x65\x43\x68\x61\x6E\x67\x65\x73","\x3C\x2F\x65\x64\x69\x74\x3E","\x6C\x69\x6E\x65\x66\x65\x65\x64","\x65\x73\x63\x61\x70\x65\x50\x6F\x73\x74\x44\x61\x74\x61","\x73\x69\x67\x6E\x69\x66\x69\x63\x61\x6E\x74\x52\x65\x6D\x6F\x74\x65\x43\x68\x61\x6E\x67\x65\x73","\x73\x65\x6E\x74","\x72\x65\x63\x65\x69\x76\x65\x64","\x70\x6F\x6C\x6C\x69\x6E\x67","\x70\x6F\x6C\x6C","\x73\x74\x6F\x70","\x72\x65\x61\x73\x6F\x6E","\x6D\x78\x53\x65\x73\x73\x69\x6F\x6E\x2E\x6E\x6F\x74\x69\x66\x79\x3A\x20","\x20\x78\x6D\x6C\x3D","\x3C\x6D\x65\x73\x73\x61\x67\x65\x3E\x3C\x64\x65\x6C\x74\x61\x3E","\x3C\x2F\x64\x65\x6C\x74\x61\x3E\x3C\x2F\x6D\x65\x73\x73\x61\x67\x65\x3E","\x78\x6D\x6C\x3D","\x69\x73\x56\x61\x6C\x69\x64\x52\x65\x73\x70\x6F\x6E\x73\x65","\x49\x6E\x76\x61\x6C\x69\x64\x20\x72\x65\x73\x70\x6F\x6E\x73\x65\x3A\x20","\x52\x65\x73\x70\x6F\x6E\x73\x65\x20\x6E\x6F\x74\x20\x72\x65\x61\x64\x79","\x54\x72\x61\x6E\x73\x6D\x69\x73\x73\x69\x6F\x6E\x20\x65\x72\x72\x6F\x72","\x3C\x3F\x70\x68\x70","\x6E\x61\x6D\x65\x73\x70\x61\x63\x65","\x70\x72\x65\x66\x69\x78","\x70\x72\x6F\x63\x65\x73\x73\x53\x74\x61\x74\x65","\x64\x65\x6C\x74\x61","\x70\x72\x6F\x63\x65\x73\x73\x44\x65\x6C\x74\x61","\x64\x65\x63\x6F\x64\x65","\x70\x72\x6F\x63\x65\x73\x73\x45\x64\x69\x74","\x64\x65\x63\x6F\x64\x65\x43\x68\x61\x6E\x67\x65\x73","\x63\x72\x65\x61\x74\x65\x55\x6E\x64\x6F\x61\x62\x6C\x65\x45\x64\x69\x74","\x73\x6F\x75\x72\x63\x65","\x64\x65\x63\x6F\x64\x65\x43\x68\x61\x6E\x67\x65","\x6D\x78\x52\x6F\x6F\x74\x43\x68\x61\x6E\x67\x65","\x6D\x78\x43\x68\x69\x6C\x64\x43\x68\x61\x6E\x67\x65","\x70\x61\x72\x65\x6E\x74","\x63\x65\x6C\x6C\x52\x65\x6D\x6F\x76\x65\x64","\x67\x65\x74\x49\x64","\x70\x75\x74\x4F\x62\x6A\x65\x63\x74","\x73\x69\x67\x6E\x69\x66\x69\x63\x61\x6E\x74","\x72\x65\x64\x6F\x6E\x65","\x69\x73\x45\x6D\x70\x74\x79","\x69\x73\x53\x69\x67\x6E\x69\x66\x69\x63\x61\x6E\x74","\x64\x69\x65","\x68\x69\x73\x74\x6F\x72\x79","\x69\x6E\x64\x65\x78\x4F\x66\x4E\x65\x78\x74\x41\x64\x64","\x63\x61\x6E\x55\x6E\x64\x6F","\x63\x61\x6E\x52\x65\x64\x6F","\x75\x6E\x64\x6F\x61\x62\x6C\x65\x45\x64\x69\x74\x48\x61\x70\x70\x65\x6E\x65\x64","\x73\x68\x69\x66\x74","\x64\x61\x74\x61\x3A\x69\x6D\x61\x67\x65","\x69\x73\x52\x65\x6C\x61\x74\x69\x76\x65\x55\x72\x6C","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x2F\x2F","\x68\x6F\x73\x74","\x70\x61\x74\x68\x6E\x61\x6D\x65","\x6C\x61\x73\x74\x49\x6E\x64\x65\x78\x4F\x66","\x74\x68\x72\x65\x61\x64","\x61\x63\x74\x69\x76\x65","\x64\x79","\x64\x78","\x74\x30\x79","\x74\x30\x78","\x74\x64\x79","\x74\x64\x78","\x73\x63\x72\x6F\x6C\x6C\x62\x61\x72\x73","\x6D\x6F\x75\x73\x65\x4C\x69\x73\x74\x65\x6E\x65\x72","\x61\x64\x64\x4D\x6F\x75\x73\x65\x4C\x69\x73\x74\x65\x6E\x65\x72","\x68\x61\x73\x53\x63\x72\x6F\x6C\x6C\x62\x61\x72\x73","\x70\x61\x6E\x47\x72\x61\x70\x68","\x70\x61\x6E\x44\x78","\x70\x61\x6E\x44\x79","\x67\x65\x74\x44\x78","\x67\x65\x74\x44\x79","\x64\x65\x6C\x61\x79","\x73\x65\x74\x49\x6E\x74\x65\x72\x76\x61\x6C","\x69\x73\x41\x63\x74\x69\x76\x65","\x70\x61\x6E\x54\x6F","\x68\x61\x6E\x64\x6C\x65\x4D\x6F\x75\x73\x65\x4F\x75\x74","\x64\x61\x6D\x70\x65\x72","\x63\x6C\x65\x61\x72\x49\x6E\x74\x65\x72\x76\x61\x6C","\x73\x65\x74\x54\x72\x61\x6E\x73\x6C\x61\x74\x65","\x72\x65\x6D\x6F\x76\x65\x4D\x6F\x75\x73\x65\x4C\x69\x73\x74\x65\x6E\x65\x72","\x73\x75\x62\x6D\x65\x6E\x75\x49\x6D\x61\x67\x65","\x2F\x73\x75\x62\x6D\x65\x6E\x75\x2E\x67\x69\x66","\x75\x73\x65\x4C\x65\x66\x74\x42\x75\x74\x74\x6F\x6E\x46\x6F\x72\x50\x6F\x70\x75\x70","\x69\x74\x65\x6D\x43\x6F\x75\x6E\x74","\x61\x75\x74\x6F\x45\x78\x70\x61\x6E\x64","\x73\x6D\x61\x72\x74\x53\x65\x70\x61\x72\x61\x74\x6F\x72\x73","\x6C\x61\x62\x65\x6C\x73","\x6D\x78\x50\x6F\x70\x75\x70\x4D\x65\x6E\x75","\x64\x69\x73\x61\x62\x6C\x65\x43\x6F\x6E\x74\x65\x78\x74\x4D\x65\x6E\x75","\x69\x73\x4C\x65\x66\x74\x4D\x6F\x75\x73\x65\x42\x75\x74\x74\x6F\x6E","\x77\x69\x6C\x6C\x41\x64\x64\x53\x65\x70\x61\x72\x61\x74\x6F\x72","\x63\x6F\x6E\x74\x61\x69\x6E\x73\x49\x74\x65\x6D\x73","\x6D\x78\x50\x6F\x70\x75\x70\x4D\x65\x6E\x75\x49\x74\x65\x6D","\x6D\x78\x50\x6F\x70\x75\x70\x4D\x65\x6E\x75\x49\x63\x6F\x6E","\x20\x64\x69\x73\x61\x62\x6C\x65\x64","\x70\x61\x64\x64\x69\x6E\x67\x52\x69\x67\x68\x74","\x74\x65\x78\x74\x41\x6C\x69\x67\x6E","\x63\x72\x65\x61\x74\x65\x53\x75\x62\x6D\x65\x6E\x75","\x65\x76\x65\x6E\x74\x52\x65\x63\x65\x69\x76\x65\x72","\x61\x63\x74\x69\x76\x65\x52\x6F\x77","\x68\x69\x64\x65\x53\x75\x62\x6D\x65\x6E\x75","\x73\x68\x6F\x77\x53\x75\x62\x6D\x65\x6E\x75","\x6D\x78\x50\x6F\x70\x75\x70\x4D\x65\x6E\x75\x49\x74\x65\x6D\x48\x6F\x76\x65\x72","\x30\x20\x30\x20\x30\x20\x30\x70\x78","\x63\x6F\x6C\x53\x70\x61\x6E","\x32","\x73\x68\x6F\x77\x4D\x65\x6E\x75","\x63\x68\x61\x6E\x67\x65\x48\x61\x6E\x64\x6C\x65\x72","\x67\x72\x61\x70\x68\x4D\x6F\x64\x65\x6C\x43\x68\x61\x6E\x67\x65\x64","\x73\x65\x74\x47\x72\x61\x70\x68","\x67\x72\x61\x70\x68","\x61\x75\x74\x6F\x53\x61\x76\x65\x44\x65\x6C\x61\x79","\x61\x75\x74\x6F\x53\x61\x76\x65\x54\x68\x72\x6F\x74\x74\x6C\x65","\x61\x75\x74\x6F\x53\x61\x76\x65\x54\x68\x72\x65\x73\x68\x6F\x6C\x64","\x69\x67\x6E\x6F\x72\x65\x64\x43\x68\x61\x6E\x67\x65\x73","\x6C\x61\x73\x74\x53\x6E\x61\x70\x73\x68\x6F\x74","\x73\x74\x61\x72\x74\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E","\x75\x70\x64\x61\x74\x65\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E","\x73\x74\x6F\x70\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E","\x73\x74\x65\x70\x73","\x65\x61\x73\x65","\x73\x74\x65\x70","\x61\x6E\x69\x6D\x61\x74\x65\x43\x65\x6C\x6C","\x67\x65\x74\x44\x65\x6C\x74\x61","\x69\x73\x56\x65\x72\x74\x65\x78","\x6D\x6F\x76\x65\x53\x74\x61\x74\x65","\x73\x74\x6F\x70\x52\x65\x63\x75\x72\x73\x69\x6F\x6E","\x67\x65\x74\x4F\x72\x69\x67\x69\x6E\x46\x6F\x72\x43\x65\x6C\x6C","\x67\x65\x74\x50\x61\x72\x65\x6E\x74","\x67\x65\x74\x43\x65\x6C\x6C\x47\x65\x6F\x6D\x65\x74\x72\x79","\x69\x6D\x61\x67\x65\x73","\x61\x6C\x74","\x70\x75\x74\x49\x6D\x61\x67\x65","\x67\x65\x74\x49\x6D\x61\x67\x65","\x66\x61\x6C\x6C\x62\x61\x63\x6B","\x69\x6E\x63\x6C\x75\x64\x65\x4F\x76\x65\x72\x6C\x61\x79\x73","\x64\x72\x61\x77\x53\x74\x61\x74\x65","\x64\x72\x61\x77\x43\x65\x6C\x6C\x53\x74\x61\x74\x65","\x76\x69\x73\x69\x74\x53\x74\x61\x74\x65\x73\x52\x65\x63\x75\x72\x73\x69\x76\x65","\x64\x72\x61\x77\x4F\x76\x65\x72\x6C\x61\x79\x73","\x70\x61\x69\x6E\x74","\x72\x65\x73\x74\x6F\x72\x65","\x6F\x76\x65\x72\x6C\x61\x79\x73","\x63\x6F\x6E\x76\x65\x72\x74\x65\x72","\x63\x72\x65\x61\x74\x65\x55\x72\x6C\x43\x6F\x6E\x76\x65\x72\x74\x65\x72","\x73\x74\x61\x74\x65\x73","\x70\x61\x74\x68","\x72\x6F\x74\x61\x74\x65\x48\x74\x6D\x6C","\x6C\x61\x73\x74\x58","\x6C\x61\x73\x74\x59","\x6D\x6F\x76\x65\x4F\x70","\x4D","\x6C\x69\x6E\x65\x4F\x70","\x4C","\x71\x75\x61\x64\x4F\x70","\x51","\x63\x75\x72\x76\x65\x4F\x70","\x43","\x63\x6C\x6F\x73\x65\x4F\x70","\x5A","\x70\x6F\x69\x6E\x74\x65\x72\x45\x76\x65\x6E\x74\x73","\x63\x72\x65\x61\x74\x65\x53\x74\x61\x74\x65","\x33\x20\x33","\x66\x6C\x61\x74","\x6D\x69\x74\x65\x72","\x23\x30\x30\x30\x30\x30\x30","\x53\x48\x41\x44\x4F\x57\x43\x4F\x4C\x4F\x52","\x53\x48\x41\x44\x4F\x57\x5F\x4F\x50\x41\x43\x49\x54\x59","\x53\x48\x41\x44\x4F\x57\x5F\x4F\x46\x46\x53\x45\x54\x5F\x58","\x53\x48\x41\x44\x4F\x57\x5F\x4F\x46\x46\x53\x45\x54\x5F\x59","\x66\x6F\x72\x6D\x61\x74","\x61\x64\x64\x4F\x70","\x72\x6F\x74\x61\x74\x65\x50\x6F\x69\x6E\x74","\x70\x6F\x70","\x73\x65\x74\x41\x6C\x70\x68\x61","\x61\x6C\x70\x68\x61","\x73\x65\x74\x46\x69\x6C\x6C\x43\x6F\x6C\x6F\x72","\x73\x65\x74\x47\x72\x61\x64\x69\x65\x6E\x74","\x66\x69\x6C\x6C\x41\x6C\x70\x68\x61","\x67\x72\x61\x64\x69\x65\x6E\x74\x41\x6C\x70\x68\x61","\x73\x65\x74\x53\x74\x72\x6F\x6B\x65\x43\x6F\x6C\x6F\x72","\x73\x65\x74\x53\x74\x72\x6F\x6B\x65\x57\x69\x64\x74\x68","\x73\x65\x74\x44\x61\x73\x68\x65\x64","\x73\x65\x74\x44\x61\x73\x68\x50\x61\x74\x74\x65\x72\x6E","\x73\x65\x74\x4C\x69\x6E\x65\x43\x61\x70","\x6C\x69\x6E\x65\x43\x61\x70","\x73\x65\x74\x4C\x69\x6E\x65\x4A\x6F\x69\x6E","\x6C\x69\x6E\x65\x4A\x6F\x69\x6E","\x73\x65\x74\x4D\x69\x74\x65\x72\x4C\x69\x6D\x69\x74","\x6D\x69\x74\x65\x72\x4C\x69\x6D\x69\x74","\x73\x65\x74\x46\x6F\x6E\x74\x43\x6F\x6C\x6F\x72","\x73\x65\x74\x46\x6F\x6E\x74\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x43\x6F\x6C\x6F\x72","\x66\x6F\x6E\x74\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x43\x6F\x6C\x6F\x72","\x73\x65\x74\x46\x6F\x6E\x74\x42\x6F\x72\x64\x65\x72\x43\x6F\x6C\x6F\x72","\x66\x6F\x6E\x74\x42\x6F\x72\x64\x65\x72\x43\x6F\x6C\x6F\x72","\x73\x65\x74\x46\x6F\x6E\x74\x53\x69\x7A\x65","\x73\x65\x74\x46\x6F\x6E\x74\x46\x61\x6D\x69\x6C\x79","\x73\x65\x74\x46\x6F\x6E\x74\x53\x74\x79\x6C\x65","\x73\x65\x74\x53\x68\x61\x64\x6F\x77","\x73\x65\x74\x53\x68\x61\x64\x6F\x77\x43\x6F\x6C\x6F\x72","\x73\x68\x61\x64\x6F\x77\x43\x6F\x6C\x6F\x72","\x73\x65\x74\x53\x68\x61\x64\x6F\x77\x41\x6C\x70\x68\x61","\x73\x68\x61\x64\x6F\x77\x41\x6C\x70\x68\x61","\x73\x65\x74\x53\x68\x61\x64\x6F\x77\x4F\x66\x66\x73\x65\x74","\x73\x68\x61\x64\x6F\x77\x44\x78","\x73\x68\x61\x64\x6F\x77\x44\x79","\x62\x65\x67\x69\x6E","\x6D\x6F\x76\x65\x54\x6F","\x6C\x69\x6E\x65\x54\x6F","\x71\x75\x61\x64\x54\x6F","\x63\x75\x72\x76\x65\x54\x6F","\x61\x72\x63\x54\x6F","\x61\x72\x63\x54\x6F\x43\x75\x72\x76\x65\x73","\x65\x6E\x64","\x77\x72\x69\x74\x65\x44\x65\x66\x61\x75\x6C\x74\x73","\x65\x78\x74\x65\x6E\x64","\x74\x65\x78\x74\x45\x6E\x61\x62\x6C\x65\x64","\x63\x6F\x6D\x70\x72\x65\x73\x73\x65\x64","\x66\x6F\x6E\x74\x66\x61\x6D\x69\x6C\x79","\x66\x61\x6D\x69\x6C\x79","\x66\x6F\x6E\x74\x73\x69\x7A\x65","\x73\x68\x61\x64\x6F\x77\x63\x6F\x6C\x6F\x72","\x73\x68\x61\x64\x6F\x77\x61\x6C\x70\x68\x61","\x73\x68\x61\x64\x6F\x77\x6F\x66\x66\x73\x65\x74","\x74\x6F\x46\x69\x78\x65\x64","\x72\x6F\x74\x61\x74\x65","\x74\x68\x65\x74\x61","\x63\x78","\x63\x79","\x66\x69\x6C\x6C\x63\x6F\x6C\x6F\x72","\x67\x72\x61\x64\x69\x65\x6E\x74","\x63\x31","\x63\x32","\x77","\x68","\x61\x6C\x70\x68\x61\x31","\x61\x6C\x70\x68\x61\x32","\x73\x74\x72\x6F\x6B\x65\x63\x6F\x6C\x6F\x72","\x73\x74\x72\x6F\x6B\x65\x77\x69\x64\x74\x68","\x64\x61\x73\x68\x70\x61\x74\x74\x65\x72\x6E","\x70\x61\x74\x74\x65\x72\x6E","\x6C\x69\x6E\x65\x63\x61\x70","\x63\x61\x70","\x6C\x69\x6E\x65\x6A\x6F\x69\x6E","\x6D\x69\x74\x65\x72\x6C\x69\x6D\x69\x74","\x6C\x69\x6D\x69\x74","\x66\x6F\x6E\x74\x63\x6F\x6C\x6F\x72","\x66\x6F\x6E\x74\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x63\x6F\x6C\x6F\x72","\x66\x6F\x6E\x74\x62\x6F\x72\x64\x65\x72\x63\x6F\x6C\x6F\x72","\x66\x6F\x6E\x74\x73\x74\x79\x6C\x65","\x72\x65\x63\x74","\x72\x6F\x75\x6E\x64\x72\x65\x63\x74","\x63\x6F\x6E\x76\x65\x72\x74","\x61\x73\x70\x65\x63\x74","\x71\x75\x61\x64","\x78\x31","\x79\x31","\x78\x32","\x79\x32","\x63\x75\x72\x76\x65","\x78\x33","\x79\x33","\x69\x73\x4E\x6F\x64\x65","\x73\x74\x72","\x77\x72\x61\x70","\x66\x69\x6C\x6C","\x63\x6C\x69\x70","\x73\x74\x72\x6F\x6B\x65","\x66\x69\x6C\x6C\x41\x6E\x64\x53\x74\x72\x6F\x6B\x65","\x66\x69\x6C\x6C\x73\x74\x72\x6F\x6B\x65","\x67\x72\x61\x64\x69\x65\x6E\x74\x73","\x64\x65\x66\x73","\x73\x74\x79\x6C\x65\x45\x6E\x61\x62\x6C\x65\x64","\x63\x72\x65\x61\x74\x65\x53\x74\x79\x6C\x65","\x6D\x61\x74\x63\x68\x48\x74\x6D\x6C\x41\x6C\x69\x67\x6E\x6D\x65\x6E\x74","\x66\x6F\x45\x6E\x61\x62\x6C\x65\x64","\x73\x74\x72\x6F\x6B\x65\x54\x6F\x6C\x65\x72\x61\x6E\x63\x65","\x72\x65\x66\x43\x6F\x75\x6E\x74","\x62\x6C\x6F\x63\x6B\x49\x6D\x61\x67\x65\x50\x6F\x69\x6E\x74\x65\x72\x45\x76\x65\x6E\x74\x73","\x73\x76\x67\x7B\x66\x6F\x6E\x74\x2D\x66\x61\x6D\x69\x6C\x79\x3A","\x3B\x66\x6F\x6E\x74\x2D\x73\x69\x7A\x65\x3A","\x3B\x66\x69\x6C\x6C\x3A\x6E\x6F\x6E\x65\x3B\x73\x74\x72\x6F\x6B\x65\x2D\x6D\x69\x74\x65\x72\x6C\x69\x6D\x69\x74\x3A\x31\x30\x7D","\x4E\x53\x5F\x53\x56\x47","\x78\x6D\x6C\x6E\x73","\x63\x72\x65\x61\x74\x65\x47\x72\x61\x64\x69\x65\x6E\x74\x49\x64","\x44\x49\x52\x45\x43\x54\x49\x4F\x4E\x5F\x53\x4F\x55\x54\x48","\x73","\x44\x49\x52\x45\x43\x54\x49\x4F\x4E\x5F\x45\x41\x53\x54","\x65","\x44\x49\x52\x45\x43\x54\x49\x4F\x4E\x5F\x4E\x4F\x52\x54\x48","\x44\x49\x52\x45\x43\x54\x49\x4F\x4E\x5F\x57\x45\x53\x54","\x6D\x78\x2D\x67\x72\x61\x64\x69\x65\x6E\x74\x2D","\x67\x65\x74\x53\x76\x67\x47\x72\x61\x64\x69\x65\x6E\x74","\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x42\x79\x49\x64","\x69\x64","\x63\x72\x65\x61\x74\x65\x53\x76\x67\x47\x72\x61\x64\x69\x65\x6E\x74","\x6C\x69\x6E\x65\x61\x72\x47\x72\x61\x64\x69\x65\x6E\x74","\x30\x25","\x3B\x73\x74\x6F\x70\x2D\x6F\x70\x61\x63\x69\x74\x79\x3A","\x6F\x66\x66\x73\x65\x74","\x73\x74\x6F\x70\x2D\x63\x6F\x6C\x6F\x72\x3A","\x61\x64\x64\x4E\x6F\x64\x65","\x64","\x75\x70\x64\x61\x74\x65\x46\x69\x6C\x6C","\x74\x72\x61\x6E\x73\x70\x61\x72\x65\x6E\x74","\x75\x70\x64\x61\x74\x65\x53\x74\x72\x6F\x6B\x65","\x63\x72\x65\x61\x74\x65\x53\x68\x61\x64\x6F\x77","\x63\x72\x65\x61\x74\x65\x54\x6F\x6C\x65\x72\x61\x6E\x63\x65","\x70\x6F\x69\x6E\x74\x65\x72\x2D\x65\x76\x65\x6E\x74\x73","\x61\x6C\x6C","\x66\x69\x6C\x6C\x2D\x6F\x70\x61\x63\x69\x74\x79","\x75\x72\x6C\x28\x23","\x73\x74\x72\x6F\x6B\x65\x2D\x6F\x70\x61\x63\x69\x74\x79","\x73\x74\x72\x6F\x6B\x65\x2D\x77\x69\x64\x74\x68","\x75\x70\x64\x61\x74\x65\x53\x74\x72\x6F\x6B\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x73\x74\x72\x6F\x6B\x65\x2D\x64\x61\x73\x68\x61\x72\x72\x61\x79","\x63\x72\x65\x61\x74\x65\x44\x61\x73\x68\x50\x61\x74\x74\x65\x72\x6E","\x73\x74\x72\x6F\x6B\x65\x2D\x6C\x69\x6E\x65\x6A\x6F\x69\x6E","\x62\x75\x74\x74","\x73\x74\x72\x6F\x6B\x65\x2D\x6C\x69\x6E\x65\x63\x61\x70","\x73\x74\x72\x6F\x6B\x65\x2D\x6D\x69\x74\x65\x72\x6C\x69\x6D\x69\x74","\x72\x65\x6D\x6F\x76\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x77\x68\x69\x74\x65","\x29\x73\x63\x61\x6C\x65\x28","\x29\x74\x72\x61\x6E\x73\x6C\x61\x74\x65\x28","\x72\x6F\x74\x61\x74\x65\x28","\x72\x6F\x74\x61\x74\x69\x6F\x6E\x43\x78","\x72\x6F\x74\x61\x74\x69\x6F\x6E\x43\x79","\x72\x78","\x72\x79","\x73\x65\x74\x41\x74\x74\x72\x69\x62\x75\x74\x65\x4E\x53","\x78\x6C\x69\x6E\x6B\x3A\x68\x72\x65\x66","\x70\x72\x65\x73\x65\x72\x76\x65\x41\x73\x70\x65\x63\x74\x52\x61\x74\x69\x6F","\x73\x63\x61\x6C\x65\x28","\x70\x6F\x69\x6E\x74\x65\x72\x2D\x65\x76\x65\x6E\x74\x73\x3A\x6E\x6F\x6E\x65","\x63\x72\x65\x61\x74\x65\x44\x69\x76","\x64\x69\x73\x70\x6C\x61\x79\x3A\x69\x6E\x6C\x69\x6E\x65\x2D\x62\x6C\x6F\x63\x6B\x3B\x66\x6F\x6E\x74\x2D\x73\x69\x7A\x65\x3A","\x70\x78\x3B\x66\x6F\x6E\x74\x2D\x66\x61\x6D\x69\x6C\x79\x3A","\x3B\x63\x6F\x6C\x6F\x72\x3A","\x3B\x6C\x69\x6E\x65\x2D\x68\x65\x69\x67\x68\x74\x3A","\x70\x78\x3B","\x46\x4F\x4E\x54\x5F\x42\x4F\x4C\x44","\x66\x6F\x6E\x74\x2D\x77\x65\x69\x67\x68\x74\x3A\x62\x6F\x6C\x64\x3B","\x46\x4F\x4E\x54\x5F\x49\x54\x41\x4C\x49\x43","\x66\x6F\x6E\x74\x2D\x73\x74\x79\x6C\x65\x3A\x69\x74\x61\x6C\x69\x63\x3B","\x46\x4F\x4E\x54\x5F\x55\x4E\x44\x45\x52\x4C\x49\x4E\x45","\x66\x6F\x6E\x74\x2D\x64\x65\x63\x6F\x72\x61\x74\x69\x6F\x6E\x3A\x75\x6E\x64\x65\x72\x6C\x69\x6E\x65\x3B","\x74\x65\x78\x74\x2D\x61\x6C\x69\x67\x6E\x3A\x63\x65\x6E\x74\x65\x72\x3B","\x74\x65\x78\x74\x2D\x61\x6C\x69\x67\x6E\x3A\x72\x69\x67\x68\x74\x3B","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x2D\x63\x6F\x6C\x6F\x72\x3A","\x62\x6F\x72\x64\x65\x72\x3A\x31\x70\x78\x20\x73\x6F\x6C\x69\x64\x20","\x26\x61\x6D\x70\x3B\x67\x74\x3B","\x26\x61\x6D\x70\x3B\x6C\x74\x3B","\x3C\x64\x69\x76\x20\x78\x6D\x6C\x6E\x73\x3D\x22\x68\x74\x74\x70\x3A\x2F\x2F\x77\x77\x77\x2E\x77\x33\x2E\x6F\x72\x67\x2F\x31\x39\x39\x39\x2F\x78\x68\x74\x6D\x6C\x22\x20\x73\x74\x79\x6C\x65\x3D\x22\x64\x69\x73\x70\x6C\x61\x79\x3A\x69\x6E\x6C\x69\x6E\x65\x2D\x62\x6C\x6F\x63\x6B\x3B","\x22\x3E","\x3C\x2F\x64\x69\x76\x3E","\x3C\x68\x72\x20\x2F\x3E","\x3C\x62\x72\x20\x2F\x3E","\x3C\x64\x69\x76\x20\x78\x6D\x6C\x6E\x73\x3D\x22\x68\x74\x74\x70\x3A\x2F\x2F\x77\x77\x77\x2E\x77\x33\x2E\x6F\x72\x67\x2F\x31\x39\x39\x39\x2F\x78\x68\x74\x6D\x6C\x22\x20\x73\x74\x79\x6C\x65\x3D\x22","\x68\x74\x6D\x6C","\x76\x65\x72\x74\x69\x63\x61\x6C\x2D\x61\x6C\x69\x67\x6E\x3A\x74\x6F\x70\x3B","\x6F\x76\x65\x72\x66\x6C\x6F\x77\x3A\x68\x69\x64\x64\x65\x6E\x3B","\x6D\x61\x78\x2D\x68\x65\x69\x67\x68\x74\x3A","\x77\x69\x64\x74\x68\x3A","\x77\x68\x69\x74\x65\x2D\x73\x70\x61\x63\x65\x3A\x6E\x6F\x72\x6D\x61\x6C\x3B","\x77\x68\x69\x74\x65\x2D\x73\x70\x61\x63\x65\x3A\x6E\x6F\x77\x72\x61\x70\x3B","\x66\x6F\x72\x65\x69\x67\x6E\x4F\x62\x6A\x65\x63\x74","\x70\x6C\x61\x69\x6E\x54\x65\x78\x74","\x63\x72\x65\x61\x74\x65\x43\x6C\x69\x70","\x6D\x78\x2D\x63\x6C\x69\x70\x2D","\x63\x6C\x69\x70\x50\x61\x74\x68","\x63\x6C\x69\x70\x2D\x70\x61\x74\x68","\x75\x70\x64\x61\x74\x65\x46\x6F\x6E\x74","\x74\x65\x78\x74\x2D\x61\x6E\x63\x68\x6F\x72","\x66\x6F\x6E\x74\x2D\x73\x69\x7A\x65","\x61\x64\x64\x54\x65\x78\x74\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64","\x66\x6F\x6E\x74\x2D\x66\x61\x6D\x69\x6C\x79","\x66\x6F\x6E\x74\x2D\x77\x65\x69\x67\x68\x74","\x62\x6F\x6C\x64","\x66\x6F\x6E\x74\x2D\x73\x74\x79\x6C\x65","\x69\x74\x61\x6C\x69\x63","\x74\x65\x78\x74\x2D\x64\x65\x63\x6F\x72\x61\x74\x69\x6F\x6E","\x67\x65\x74\x42\x42\x6F\x78","\x66\x6F\x6E\x74\x57\x65\x69\x67\x68\x74","\x3C\x62\x72\x2F\x3E","\x6D\x6F\x64","\x74\x72\x61\x6E\x73\x6C\x61\x74\x65\x28\x30\x2E\x35\x2C\x20\x30\x2E\x35\x29","\x6D","\x6C","\x63","\x72\x6F\x74\x61\x74\x65\x64\x48\x74\x6D\x6C\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64","\x76\x6D\x6C\x53\x63\x61\x6C\x65","\x20\x65","\x63\x6F\x6F\x72\x64\x73\x69\x7A\x65","\x73\x74\x72\x6F\x6B\x65\x77\x65\x69\x67\x68\x74","\x73\x74\x72\x6F\x6B\x65\x64","\x63\x72\x65\x61\x74\x65\x53\x74\x72\x6F\x6B\x65","\x63\x72\x65\x61\x74\x65\x46\x69\x6C\x6C","\x63\x72\x65\x61\x74\x65\x54\x72\x61\x6E\x73\x70\x61\x72\x65\x6E\x74\x46\x69\x6C\x6C","\x66\x69\x6C\x6C\x65\x64","\x3A\x66\x69\x6C\x6C","\x2F\x74\x72\x61\x6E\x73\x70\x61\x72\x65\x6E\x74\x2E\x67\x69\x66","\x74\x69\x6C\x65","\x63\x6F\x6C\x6F\x72\x32","\x66\x6C\x69\x70","\x61\x6E\x67\x6C\x65","\x4F\x46\x46\x49\x43\x45\x5F\x50\x52\x45\x46\x49\x58","\x3A\x6F\x70\x61\x63\x69\x74\x79\x32","\x3A\x73\x74\x72\x6F\x6B\x65","\x65\x6E\x64\x63\x61\x70","\x6A\x6F\x69\x6E\x73\x74\x79\x6C\x65","\x31\x30","\x64\x61\x73\x68\x73\x74\x79\x6C\x65","\x67\x65\x74\x56\x6D\x6C\x44\x61\x73\x68\x53\x74\x79\x6C\x65","\x64\x61\x73\x68","\x30\x20\x32","\x63\x72\x65\x61\x74\x65\x53\x68\x61\x64\x6F\x77\x53\x74\x72\x6F\x6B\x65","\x63\x72\x65\x61\x74\x65\x53\x68\x61\x64\x6F\x77\x46\x69\x6C\x6C","\x3A\x73\x68\x61\x70\x65","\x63\x20","\x63\x72\x65\x61\x74\x65\x52\x65\x63\x74","\x3A\x72\x65\x63\x74","\x3A\x72\x6F\x75\x6E\x64\x72\x65\x63\x74","\x61\x72\x63\x73\x69\x7A\x65","\x3A\x6F\x76\x61\x6C","\x61\x74\x6D\x6F\x73\x74","\x69\x67\x6E\x6F\x72\x65","\x66\x72\x61\x6D\x65","\x31\x38\x30","\x66\x6F\x6E\x74\x44\x65\x63\x6F\x72\x61\x74\x69\x6F\x6E","\x3A\x67\x72\x6F\x75\x70","\x72\x65\x6C\x61\x74\x69\x76\x65","\x67\x65\x74\x41\x6C\x69\x67\x6E\x6D\x65\x6E\x74\x41\x73\x50\x6F\x69\x6E\x74","\x6E\x6F\x72\x6D\x61\x6C","\x6D\x61\x78\x48\x65\x69\x67\x68\x74","\x67\x72\x6F\x75\x70","\x70\x72\x6F\x67\x69\x64\x3A\x44\x58\x49\x6D\x61\x67\x65\x54\x72\x61\x6E\x73\x66\x6F\x72\x6D\x2E\x4D\x69\x63\x72\x6F\x73\x6F\x66\x74\x2E\x4D\x61\x74\x72\x69\x78\x28\x4D\x31\x31\x3D","\x2C\x20\x4D\x31\x32\x3D","\x2C\x20\x4D\x32\x31\x3D","\x2C\x20\x4D\x32\x32\x3D","\x2C\x20\x73\x69\x7A\x69\x6E\x67\x4D\x65\x74\x68\x6F\x64\x3D\x27\x61\x75\x74\x6F\x20\x65\x78\x70\x61\x6E\x64\x27\x29","\x3A\x70\x61\x74\x68","\x74\x65\x78\x74\x70\x61\x74\x68\x6F\x6B","\x6D\x20","\x20\x6C\x20","\x3A\x74\x65\x78\x74\x70\x61\x74\x68","\x76\x2D\x74\x65\x78\x74\x2D\x61\x6C\x69\x67\x6E\x3A","\x73\x74\x72\x69\x6E\x67","\x73\x65\x74\x53\x74\x61\x74\x65\x73","\x67\x75\x69\x64\x65\x58","\x67\x75\x69\x64\x65\x59","\x67\x65\x74\x47\x75\x69\x64\x65\x54\x6F\x6C\x65\x72\x61\x6E\x63\x65","\x63\x72\x65\x61\x74\x65\x47\x75\x69\x64\x65\x53\x68\x61\x70\x65","\x69\x73\x44\x61\x73\x68\x65\x64","\x44\x49\x41\x4C\x45\x43\x54\x5F\x56\x4D\x4C","\x67\x65\x74\x4F\x76\x65\x72\x6C\x61\x79\x50\x61\x6E\x65","\x70\x6F\x69\x6E\x74\x73","\x73\x63\x72\x6F\x6C\x6C\x57\x69\x64\x74\x68","\x64\x65\x73\x63","\x70\x61\x72\x73\x65\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x70\x61\x72\x73\x65\x43\x6F\x6E\x73\x74\x72\x61\x69\x6E\x74\x73","\x64\x65\x66\x61\x75\x6C\x74\x4C\x6F\x63\x61\x6C\x69\x7A\x65\x64","\x63\x6F\x6E\x73\x74\x72\x61\x69\x6E\x74\x73","\x77\x30","\x68\x30","\x62\x67\x4E\x6F\x64\x65","\x66\x67\x4E\x6F\x64\x65","\x66\x6F\x72\x65\x67\x72\x6F\x75\x6E\x64","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64","\x76\x61\x72\x69\x61\x62\x6C\x65","\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73","\x67\x65\x74\x43\x68\x69\x6C\x64\x4E\x6F\x64\x65\x73","\x70\x61\x72\x73\x65\x43\x6F\x6E\x73\x74\x72\x61\x69\x6E\x74","\x65\x76\x61\x6C\x75\x61\x74\x65\x54\x65\x78\x74\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x65\x76\x61\x6C\x75\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x6C\x6F\x63\x61\x6C\x69\x7A\x65\x64","\x65\x76\x61\x6C","\x64\x72\x61\x77\x53\x68\x61\x70\x65","\x64\x72\x61\x77\x43\x68\x69\x6C\x64\x72\x65\x6E","\x63\x6F\x6D\x70\x75\x74\x65\x41\x73\x70\x65\x63\x74","\x69\x6E\x68\x65\x72\x69\x74","\x67\x65\x74\x4E\x75\x6D\x62\x65\x72","\x64\x72\x61\x77\x4E\x6F\x64\x65","\x66\x69\x78\x65\x64","\x61\x72\x63","\x78\x2D\x61\x78\x69\x73\x2D\x72\x6F\x74\x61\x74\x69\x6F\x6E","\x6C\x61\x72\x67\x65\x2D\x61\x72\x63\x2D\x66\x6C\x61\x67","\x73\x77\x65\x65\x70\x2D\x66\x6C\x61\x67","\x52\x45\x43\x54\x41\x4E\x47\x4C\x45\x5F\x52\x4F\x55\x4E\x44\x49\x4E\x47\x5F\x46\x41\x43\x54\x4F\x52","\x61\x6C\x69\x67\x6E\x2D\x73\x68\x61\x70\x65","\x69\x6E\x63\x6C\x75\x64\x65\x2D\x73\x68\x61\x70\x65","\x67\x65\x74\x53\x74\x65\x6E\x63\x69\x6C","\x73\x74\x65\x6E\x63\x69\x6C","\x62\x6F\x75\x6E\x64\x73","\x62\x6F\x75\x6E\x64\x69\x6E\x67\x42\x6F\x78","\x73\x76\x67\x53\x74\x72\x6F\x6B\x65\x54\x6F\x6C\x65\x72\x61\x6E\x63\x65","\x73\x74\x65\x6E\x63\x69\x6C\x50\x6F\x69\x6E\x74\x65\x72\x45\x76\x65\x6E\x74\x73","\x69\x73\x50\x61\x72\x73\x65\x56\x6D\x6C","\x69\x73\x48\x74\x6D\x6C\x41\x6C\x6C\x6F\x77\x65\x64","\x67\x65\x74\x53\x76\x67\x53\x63\x72\x65\x65\x6E\x4F\x66\x66\x73\x65\x74","\x63\x72\x65\x61\x74\x65\x53\x76\x67","\x63\x72\x65\x61\x74\x65\x48\x74\x6D\x6C","\x63\x72\x65\x61\x74\x65\x56\x6D\x6C","\x72\x65\x63\x6F\x6E\x66\x69\x67\x75\x72\x65","\x75\x70\x64\x61\x74\x65\x42\x6F\x75\x6E\x64\x73\x46\x72\x6F\x6D\x50\x6F\x69\x6E\x74\x73","\x63\x68\x65\x63\x6B\x42\x6F\x75\x6E\x64\x73","\x72\x65\x64\x72\x61\x77\x48\x74\x6D\x6C\x53\x68\x61\x70\x65","\x72\x65\x64\x72\x61\x77\x53\x68\x61\x70\x65","\x75\x70\x64\x61\x74\x65\x42\x6F\x75\x6E\x64\x69\x6E\x67\x42\x6F\x78","\x63\x72\x65\x61\x74\x65\x56\x6D\x6C\x47\x72\x6F\x75\x70","\x63\x72\x65\x61\x74\x65\x43\x61\x6E\x76\x61\x73","\x68\x61\x73\x43\x68\x69\x6C\x64\x4E\x6F\x64\x65\x73","\x6C\x61\x73\x74\x43\x68\x69\x6C\x64","\x62\x65\x66\x6F\x72\x65\x65\x6E\x64","\x69\x6E\x73\x65\x72\x74\x41\x64\x6A\x61\x63\x65\x6E\x74\x48\x54\x4D\x4C","\x61\x64\x64\x54\x72\x61\x6E\x73\x70\x61\x72\x65\x6E\x74\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x46\x69\x6C\x74\x65\x72","\x64\x65\x73\x74\x72\x6F\x79\x43\x61\x6E\x76\x61\x73","\x75\x70\x64\x61\x74\x65\x56\x6D\x6C\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x6D\x78\x52\x65\x66\x43\x6F\x75\x6E\x74","\x6F\x6C\x64\x47\x72\x61\x64\x69\x65\x6E\x74\x73","\x72\x65\x6C\x65\x61\x73\x65\x53\x76\x67\x47\x72\x61\x64\x69\x65\x6E\x74\x73","\x69\x73\x50\x61\x69\x6E\x74\x42\x6F\x75\x6E\x64\x73\x49\x6E\x76\x65\x72\x74\x65\x64","\x75\x70\x64\x61\x74\x65\x54\x72\x61\x6E\x73\x66\x6F\x72\x6D","\x63\x6F\x6E\x66\x69\x67\x75\x72\x65\x43\x61\x6E\x76\x61\x73","\x70\x61\x69\x6E\x74\x53\x74\x65\x6E\x63\x69\x6C\x53\x68\x61\x70\x65","\x70\x61\x69\x6E\x74\x45\x64\x67\x65\x53\x68\x61\x70\x65","\x70\x61\x69\x6E\x74\x56\x65\x72\x74\x65\x78\x53\x68\x61\x70\x65","\x69\x73\x53\x68\x61\x64\x6F\x77","\x67\x65\x74\x47\x72\x61\x64\x69\x65\x6E\x74\x42\x6F\x75\x6E\x64\x73","\x67\x65\x74\x53\x68\x61\x70\x65\x52\x6F\x74\x61\x74\x69\x6F\x6E","\x61\x64\x64\x54\x72\x61\x6E\x73\x70\x61\x72\x65\x6E\x74\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x52\x65\x63\x74\x61\x6E\x67\x6C\x65","\x73\x65\x74\x54\x72\x61\x6E\x73\x70\x61\x72\x65\x6E\x74\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x49\x6D\x61\x67\x65","\x70\x61\x69\x6E\x74\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64","\x70\x61\x69\x6E\x74\x46\x6F\x72\x65\x67\x72\x6F\x75\x6E\x64","\x67\x65\x74\x41\x72\x63\x53\x69\x7A\x65","\x70\x61\x69\x6E\x74\x47\x6C\x61\x73\x73\x45\x66\x66\x65\x63\x74","\x23\x66\x66\x66\x66\x66\x66","\x69\x73\x52\x6F\x75\x6E\x64\x65\x64","\x73\x74\x65\x6E\x63\x69\x6C\x46\x6C\x69\x70\x48","\x73\x74\x65\x6E\x63\x69\x6C\x46\x6C\x69\x70\x56","\x73\x65\x74\x43\x75\x72\x73\x6F\x72","\x67\x65\x74\x43\x75\x72\x73\x6F\x72","\x63\x72\x65\x61\x74\x65\x42\x6F\x75\x6E\x64\x69\x6E\x67\x42\x6F\x78","\x61\x75\x67\x6D\x65\x6E\x74\x42\x6F\x75\x6E\x64\x69\x6E\x67\x42\x6F\x78","\x67\x65\x74\x42\x6F\x75\x6E\x64\x69\x6E\x67\x42\x6F\x78","\x67\x65\x74\x52\x6F\x74\x61\x74\x69\x6F\x6E","\x67\x65\x74\x54\x65\x78\x74\x52\x6F\x74\x61\x74\x69\x6F\x6E","\x76\x65\x72\x74\x69\x63\x61\x6C\x54\x65\x78\x74\x52\x6F\x74\x61\x74\x69\x6F\x6E","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x49\x6D\x61\x67\x65","\x75\x72\x6C\x28\x27","\x2F\x74\x72\x61\x6E\x73\x70\x61\x72\x65\x6E\x74\x2E\x67\x69\x66\x27\x29","\x73\x74\x65\x6E\x63\x69\x6C\x73","\x6D\x61\x72\x6B\x65\x72\x73","\x41\x52\x52\x4F\x57\x5F\x43\x4C\x41\x53\x53\x49\x43","\x41\x52\x52\x4F\x57\x5F\x44\x49\x41\x4D\x4F\x4E\x44","\x61\x64\x64\x4D\x61\x72\x6B\x65\x72","\x72\x65\x64\x72\x61\x77\x50\x61\x74\x68","\x75\x70\x64\x61\x74\x65\x48\x74\x6D\x6C\x42\x6F\x75\x6E\x64\x73","\x75\x70\x64\x61\x74\x65\x48\x74\x6D\x6C\x46\x69\x6C\x74\x65\x72\x73","\x75\x70\x64\x61\x74\x65\x48\x74\x6D\x6C\x43\x6F\x6C\x6F\x72\x73","\x62\x6F\x72\x64\x65\x72\x57\x69\x64\x74\x68","\x62\x6F\x72\x64\x65\x72\x43\x6F\x6C\x6F\x72","\x73\x6F\x6C\x69\x64","\x70\x72\x6F\x67\x69\x64\x3A\x44\x58\x49\x6D\x61\x67\x65\x54\x72\x61\x6E\x73\x66\x6F\x72\x6D\x2E\x4D\x69\x63\x72\x6F\x73\x6F\x66\x74\x2E\x64\x72\x6F\x70\x53\x68\x61\x64\x6F\x77\x20\x28\x4F\x66\x66\x58\x3D\x27","\x27\x2C\x20\x4F\x66\x66\x59\x3D\x27","\x27\x2C\x20\x43\x6F\x6C\x6F\x72\x3D\x27","\x27\x29","\x70\x72\x6F\x67\x69\x64\x3A\x44\x58\x49\x6D\x61\x67\x65\x54\x72\x61\x6E\x73\x66\x6F\x72\x6D\x2E\x4D\x69\x63\x72\x6F\x73\x6F\x66\x74\x2E\x67\x72\x61\x64\x69\x65\x6E\x74\x28\x73\x74\x61\x72\x74\x43\x6F\x6C\x6F\x72\x53\x74\x72\x3D\x27","\x27\x2C\x20\x65\x6E\x64\x43\x6F\x6C\x6F\x72\x53\x74\x72\x3D\x27","\x27\x2C\x20\x67\x72\x61\x64\x69\x65\x6E\x74\x54\x79\x70\x65\x3D\x27","\x70\x61\x69\x6E\x74\x4C\x69\x6E\x65","\x61\x72\x72\x6F\x77\x57\x69\x64\x74\x68","\x41\x52\x52\x4F\x57\x5F\x57\x49\x44\x54\x48","\x41\x52\x52\x4F\x57\x5F\x53\x50\x41\x43\x49\x4E\x47","\x41\x52\x52\x4F\x57\x5F\x53\x49\x5A\x45","\x44\x45\x46\x41\x55\x4C\x54\x5F\x46\x4F\x4E\x54\x53\x54\x59\x4C\x45","\x63\x6C\x69\x70\x70\x65\x64","\x62\x61\x73\x65\x53\x70\x61\x63\x69\x6E\x67\x54\x6F\x70","\x62\x61\x73\x65\x53\x70\x61\x63\x69\x6E\x67\x42\x6F\x74\x74\x6F\x6D","\x62\x61\x73\x65\x53\x70\x61\x63\x69\x6E\x67\x4C\x65\x66\x74","\x62\x61\x73\x65\x53\x70\x61\x63\x69\x6E\x67\x52\x69\x67\x68\x74","\x72\x65\x70\x6C\x61\x63\x65\x4C\x69\x6E\x65\x66\x65\x65\x64\x73","\x69\x67\x6E\x6F\x72\x65\x43\x6C\x69\x70\x70\x65\x64\x53\x74\x72\x69\x6E\x67\x53\x69\x7A\x65","\x69\x67\x6E\x6F\x72\x65\x53\x74\x72\x69\x6E\x67\x53\x69\x7A\x65","\x74\x65\x78\x74\x44\x69\x76","\x75\x70\x64\x61\x74\x65\x53\x69\x7A\x65","\x6D\x61\x72\x67\x69\x6E","\x44\x49\x41\x4C\x45\x43\x54\x5F\x53\x54\x52\x49\x43\x54\x48\x54\x4D\x4C","\x75\x70\x64\x61\x74\x65\x56\x61\x6C\x75\x65","\x75\x70\x64\x61\x74\x65\x48\x74\x6D\x6C\x54\x72\x61\x6E\x73\x66\x6F\x72\x6D","\x75\x70\x64\x61\x74\x65\x48\x74\x6D\x6C\x46\x69\x6C\x74\x65\x72","\x54\x72\x61\x6E\x73\x66\x6F\x72\x6D\x4F\x72\x69\x67\x69\x6E","\x25\x20","\x54\x72\x61\x6E\x73\x66\x6F\x72\x6D","\x25\x2C","\x25\x29\x73\x63\x61\x6C\x65\x28","\x29\x20\x72\x6F\x74\x61\x74\x65\x28","\x64\x65\x67\x29","\x30\x25\x20\x30\x25","\x25\x29","\x31\x70\x78\x20\x73\x6F\x6C\x69\x64\x20","\x3C\x64\x69\x76\x20\x73\x74\x79\x6C\x65\x3D\x22\x7A\x6F\x6F\x6D\x3A\x31\x3B","\x64\x69\x73\x70\x6C\x61\x79\x3A\x69\x6E\x6C\x69\x6E\x65\x2D\x62\x6C\x6F\x63\x6B\x3B\x5F\x64\x69\x73\x70\x6C\x61\x79\x3A\x69\x6E\x6C\x69\x6E\x65\x3B\x70\x61\x64\x64\x69\x6E\x67\x2D\x62\x6F\x74\x74\x6F\x6D\x3A\x31\x70\x78\x3B\x70\x61\x64\x64\x69\x6E\x67\x2D\x72\x69\x67\x68\x74\x3A\x31\x70\x78\x3B\x6C\x69\x6E\x65\x2D\x68\x65\x69\x67\x68\x74\x3A","\x75\x70\x64\x61\x74\x65\x4D\x61\x72\x67\x69\x6E","\x67\x65\x74\x53\x70\x61\x63\x69\x6E\x67","\x70\x72\x65\x73\x65\x72\x76\x65\x49\x6D\x61\x67\x65\x41\x73\x70\x65\x63\x74","\x69\x6D\x61\x67\x65\x46\x6C\x69\x70\x48","\x69\x6D\x61\x67\x65\x46\x6C\x69\x70\x56","\x70\x72\x6F\x67\x69\x64\x3A\x44\x58\x49\x6D\x61\x67\x65\x54\x72\x61\x6E\x73\x66\x6F\x72\x6D\x2E\x4D\x69\x63\x72\x6F\x73\x6F\x66\x74\x2E\x42\x61\x73\x69\x63\x49\x6D\x61\x67\x65\x28\x72\x6F\x74\x61\x74\x69\x6F\x6E\x3D\x32\x29","\x70\x72\x6F\x67\x69\x64\x3A\x44\x58\x49\x6D\x61\x67\x65\x54\x72\x61\x6E\x73\x66\x6F\x72\x6D\x2E\x4D\x69\x63\x72\x6F\x73\x6F\x66\x74\x2E\x42\x61\x73\x69\x63\x49\x6D\x61\x67\x65\x28\x6D\x69\x72\x72\x6F\x72\x3D\x31\x29","\x70\x72\x6F\x67\x69\x64\x3A\x44\x58\x49\x6D\x61\x67\x65\x54\x72\x61\x6E\x73\x66\x6F\x72\x6D\x2E\x4D\x69\x63\x72\x6F\x73\x6F\x66\x74\x2E\x42\x61\x73\x69\x63\x49\x6D\x61\x67\x65\x28\x72\x6F\x74\x61\x74\x69\x6F\x6E\x3D\x32\x2C\x20\x6D\x69\x72\x72\x6F\x72\x3D\x31\x29","\x69\x6D\x61\x67\x65\x53\x69\x7A\x65","\x44\x45\x46\x41\x55\x4C\x54\x5F\x49\x4D\x41\x47\x45\x53\x49\x5A\x45","\x69\x6E\x64\x69\x63\x61\x74\x6F\x72\x53\x69\x7A\x65","\x69\x6E\x64\x69\x63\x61\x74\x6F\x72","\x70\x61\x69\x6E\x74\x49\x6D\x61\x67\x65","\x70\x61\x69\x6E\x74\x49\x6E\x64\x69\x63\x61\x74\x6F\x72","\x67\x65\x74\x49\x6D\x61\x67\x65\x42\x6F\x75\x6E\x64\x73","\x41\x4C\x49\x47\x4E\x5F\x54\x4F\x50","\x67\x65\x74\x49\x6E\x64\x69\x63\x61\x74\x6F\x72\x42\x6F\x75\x6E\x64\x73","\x63\x72\x65\x61\x74\x65\x4D\x61\x72\x6B\x65\x72","\x53\x54\x59\x4C\x45\x5F\x43\x55\x52\x56\x45\x44","\x70\x61\x69\x6E\x74\x43\x75\x72\x76\x65\x64\x4C\x69\x6E\x65","\x53\x54\x59\x4C\x45\x5F\x53\x54\x41\x52\x54\x53\x49\x5A\x45","\x53\x54\x59\x4C\x45\x5F\x45\x4E\x44\x53\x49\x5A\x45","\x53\x54\x59\x4C\x45\x5F\x53\x54\x41\x52\x54\x41\x52\x52\x4F\x57","\x53\x54\x59\x4C\x45\x5F\x45\x4E\x44\x41\x52\x52\x4F\x57","\x53\x54\x59\x4C\x45\x5F\x53\x54\x41\x52\x54\x46\x49\x4C\x4C","\x53\x54\x59\x4C\x45\x5F\x45\x4E\x44\x46\x49\x4C\x4C","\x70\x61\x69\x6E\x74\x52\x6F\x75\x6E\x64\x65\x64\x53\x77\x69\x6D\x6C\x61\x6E\x65","\x70\x61\x69\x6E\x74\x53\x77\x69\x6D\x6C\x61\x6E\x65","\x70\x61\x69\x6E\x74\x53\x65\x70\x61\x72\x61\x74\x6F\x72","\x75\x73\x65\x42\x6F\x75\x6E\x64\x69\x6E\x67\x42\x6F\x78","\x6D\x6F\x76\x65\x43\x65\x6C\x6C","\x67\x65\x74\x47\x72\x61\x70\x68","\x67\x65\x74\x43\x6F\x6E\x73\x74\x72\x61\x69\x6E\x74","\x67\x65\x74\x43\x65\x6C\x6C\x53\x74\x79\x6C\x65","\x74\x72\x61\x76\x65\x72\x73\x65","\x67\x65\x74\x45\x64\x67\x65\x43\x6F\x75\x6E\x74","\x67\x65\x74\x45\x64\x67\x65\x41\x74","\x67\x65\x74\x54\x65\x72\x6D\x69\x6E\x61\x6C","\x67\x65\x74\x56\x69\x73\x69\x62\x6C\x65\x54\x65\x72\x6D\x69\x6E\x61\x6C","\x69\x73\x56\x65\x72\x74\x65\x78\x4D\x6F\x76\x61\x62\x6C\x65","\x69\x73\x43\x65\x6C\x6C\x4D\x6F\x76\x61\x62\x6C\x65","\x69\x73\x56\x65\x72\x74\x65\x78\x49\x67\x6E\x6F\x72\x65\x64","\x69\x73\x43\x65\x6C\x6C\x56\x69\x73\x69\x62\x6C\x65","\x69\x73\x45\x64\x67\x65\x49\x67\x6E\x6F\x72\x65\x64","\x73\x65\x74\x45\x64\x67\x65\x53\x74\x79\x6C\x65\x45\x6E\x61\x62\x6C\x65\x64","\x73\x65\x74\x43\x65\x6C\x6C\x53\x74\x79\x6C\x65\x73","\x73\x65\x74\x4F\x72\x74\x68\x6F\x67\x6F\x6E\x61\x6C\x45\x64\x67\x65","\x67\x65\x74\x50\x61\x72\x65\x6E\x74\x4F\x66\x66\x73\x65\x74","\x69\x73\x41\x6E\x63\x65\x73\x74\x6F\x72","\x67\x65\x74\x47\x65\x6F\x6D\x65\x74\x72\x79","\x73\x65\x74\x45\x64\x67\x65\x50\x6F\x69\x6E\x74\x73","\x73\x65\x74\x52\x65\x6C\x61\x74\x69\x76\x65","\x73\x65\x74\x47\x65\x6F\x6D\x65\x74\x72\x79","\x73\x65\x74\x56\x65\x72\x74\x65\x78\x4C\x6F\x63\x61\x74\x69\x6F\x6E","\x67\x65\x74\x56\x65\x72\x74\x65\x78\x42\x6F\x75\x6E\x64\x73","\x61\x72\x72\x61\x6E\x67\x65\x47\x72\x6F\x75\x70\x73","\x67\x65\x74\x43\x68\x69\x6C\x64\x56\x65\x72\x74\x69\x63\x65\x73","\x67\x65\x74\x42\x6F\x75\x6E\x64\x69\x6E\x67\x42\x6F\x78\x46\x72\x6F\x6D\x47\x65\x6F\x6D\x65\x74\x72\x79","\x69\x73\x53\x77\x69\x6D\x6C\x61\x6E\x65","\x67\x65\x74\x53\x74\x61\x72\x74\x53\x69\x7A\x65","\x78\x30","\x79\x30","\x6B\x65\x65\x70\x46\x69\x72\x73\x74\x4C\x6F\x63\x61\x74\x69\x6F\x6E","\x72\x65\x73\x69\x7A\x65\x50\x61\x72\x65\x6E\x74","\x72\x65\x73\x69\x7A\x65\x4C\x61\x73\x74","\x69\x73\x48\x6F\x72\x69\x7A\x6F\x6E\x74\x61\x6C","\x67\x65\x74\x49\x6E\x64\x65\x78","\x67\x65\x74\x50\x61\x72\x65\x6E\x74\x53\x69\x7A\x65","\x69\x73\x4C\x61\x79\x65\x72","\x63\x75\x72\x72\x65\x6E\x74\x52\x6F\x6F\x74","\x69\x73\x43\x65\x6C\x6C\x43\x6F\x6C\x6C\x61\x70\x73\x65\x64","\x72\x65\x73\x69\x7A\x65\x56\x65\x72\x74\x69\x63\x65\x73","\x69\x6E\x76\x65\x72\x74","\x67\x72\x6F\x75\x70\x50\x61\x64\x64\x69\x6E\x67","\x70\x61\x72\x65\x6E\x74\x73\x43\x68\x61\x6E\x67\x65\x64","\x6D\x6F\x76\x65\x54\x72\x65\x65","\x6C\x65\x76\x65\x6C\x44\x69\x73\x74\x61\x6E\x63\x65","\x6E\x6F\x64\x65\x44\x69\x73\x74\x61\x6E\x63\x65","\x72\x65\x73\x65\x74\x45\x64\x67\x65\x73","\x70\x72\x65\x66\x48\x6F\x7A\x45\x64\x67\x65\x53\x65\x70","\x70\x72\x65\x66\x56\x65\x72\x74\x45\x64\x67\x65\x4F\x66\x66","\x6D\x69\x6E\x45\x64\x67\x65\x4A\x65\x74\x74\x79","\x63\x68\x61\x6E\x6E\x65\x6C\x42\x75\x66\x66\x65\x72","\x65\x64\x67\x65\x52\x6F\x75\x74\x69\x6E\x67","\x67\x65\x74\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73","\x66\x69\x6E\x64\x54\x72\x65\x65\x52\x6F\x6F\x74\x73","\x64\x66\x73","\x6C\x61\x79\x6F\x75\x74","\x68\x6F\x72\x69\x7A\x6F\x6E\x74\x61\x6C\x4C\x61\x79\x6F\x75\x74","\x76\x65\x72\x74\x69\x63\x61\x6C\x4C\x61\x79\x6F\x75\x74","\x6D\x6F\x76\x65\x4E\x6F\x64\x65","\x61\x64\x6A\x75\x73\x74\x50\x61\x72\x65\x6E\x74\x73","\x6C\x6F\x63\x61\x6C\x45\x64\x67\x65\x50\x72\x6F\x63\x65\x73\x73\x69\x6E\x67","\x6E\x65\x78\x74","\x63\x72\x65\x61\x74\x65\x4E\x6F\x64\x65","\x61\x74\x74\x61\x63\x68\x50\x61\x72\x65\x6E\x74","\x6C\x61\x79\x6F\x75\x74\x4C\x65\x61\x66","\x6F\x66\x66\x73\x65\x74\x58","\x6F\x66\x66\x73\x65\x74\x59","\x75\x70\x70\x65\x72\x48\x65\x61\x64","\x63\x6F\x6E\x74\x6F\x75\x72","\x63\x72\x65\x61\x74\x65\x4C\x69\x6E\x65","\x6C\x6F\x77\x65\x72\x48\x65\x61\x64","\x75\x70\x70\x65\x72\x54\x61\x69\x6C","\x6C\x6F\x77\x65\x72\x54\x61\x69\x6C","\x6D\x65\x72\x67\x65","\x62\x72\x69\x64\x67\x65","\x73\x6F\x72\x74\x43\x65\x6C\x6C\x73","\x70\x72\x6F\x63\x65\x73\x73\x4E\x6F\x64\x65\x4F\x75\x74\x67\x6F\x69\x6E\x67","\x67\x65\x74\x45\x64\x67\x65\x73\x42\x65\x74\x77\x65\x65\x6E","\x77\x65\x69\x67\x68\x74\x65\x64\x56\x61\x6C\x75\x65","\x6E\x75\x64\x67\x65","\x76\x69\x73\x69\x74\x65\x64","\x72\x61\x6E\x6B\x49\x6E\x64\x65\x78","\x75\x73\x65\x49\x6E\x70\x75\x74\x4F\x72\x69\x67\x69\x6E","\x64\x69\x73\x61\x62\x6C\x65\x45\x64\x67\x65\x53\x74\x79\x6C\x65","\x66\x6F\x72\x63\x65\x43\x6F\x6E\x73\x74\x61\x6E\x74","\x66\x6F\x72\x63\x65\x43\x6F\x6E\x73\x74\x61\x6E\x74\x53\x71\x75\x61\x72\x65\x64","\x6D\x69\x6E\x44\x69\x73\x74\x61\x6E\x63\x65\x4C\x69\x6D\x69\x74","\x6D\x61\x78\x44\x69\x73\x74\x61\x6E\x63\x65\x4C\x69\x6D\x69\x74","\x6D\x69\x6E\x44\x69\x73\x74\x61\x6E\x63\x65\x4C\x69\x6D\x69\x74\x53\x71\x75\x61\x72\x65\x64","\x69\x6E\x69\x74\x69\x61\x6C\x54\x65\x6D\x70","\x74\x65\x6D\x70\x65\x72\x61\x74\x75\x72\x65","\x6D\x61\x78\x49\x74\x65\x72\x61\x74\x69\x6F\x6E\x73","\x69\x74\x65\x72\x61\x74\x69\x6F\x6E","\x61\x6C\x6C\x6F\x77\x65\x64\x54\x6F\x52\x75\x6E","\x76\x65\x72\x74\x65\x78\x41\x72\x72\x61\x79","\x67\x65\x74\x42\x6F\x75\x6E\x64\x73","\x69\x6E\x64\x69\x63\x65\x73","\x64\x69\x73\x70\x58","\x64\x69\x73\x70\x59","\x63\x65\x6C\x6C\x4C\x6F\x63\x61\x74\x69\x6F\x6E","\x69\x73\x4D\x6F\x76\x65\x61\x62\x6C\x65","\x6E\x65\x69\x67\x68\x62\x6F\x75\x72\x73","\x72\x61\x64\x69\x75\x73","\x72\x61\x64\x69\x75\x73\x53\x71\x75\x61\x72\x65\x64","\x67\x65\x74\x4F\x70\x70\x6F\x73\x69\x74\x65\x73","\x72\x65\x73\x65\x74\x45\x64\x67\x65","\x63\x61\x6C\x63\x52\x65\x70\x75\x6C\x73\x69\x6F\x6E","\x63\x61\x6C\x63\x41\x74\x74\x72\x61\x63\x74\x69\x6F\x6E","\x63\x61\x6C\x63\x50\x6F\x73\x69\x74\x69\x6F\x6E\x73","\x72\x65\x64\x75\x63\x65\x54\x65\x6D\x70\x65\x72\x61\x74\x75\x72\x65","\x72\x61\x6E\x64\x6F\x6D","\x6D\x6F\x76\x65\x43\x69\x72\x63\x6C\x65","\x67\x65\x74\x52\x61\x64\x69\x75\x73","\x63\x69\x72\x63\x6C\x65","\x66\x69\x6E\x64\x50\x61\x72\x61\x6C\x6C\x65\x6C\x73","\x67\x65\x74\x45\x64\x67\x65\x49\x64","\x72\x6F\x75\x74\x65","\x6C\x61\x79\x6F\x75\x74\x73","\x6D\x61\x73\x74\x65\x72","\x70\x6C\x61\x63\x65\x4C\x61\x62\x65\x6C\x73","\x61\x76\x6F\x69\x64","\x69\x6E\x74\x65\x72\x73\x65\x63\x74\x73","\x74\x65\x6D\x70","\x6D\x61\x78\x52\x61\x6E\x6B","\x6D\x69\x6E\x52\x61\x6E\x6B","\x6E\x65\x78\x74\x4C\x61\x79\x65\x72\x43\x6F\x6E\x6E\x65\x63\x74\x65\x64\x43\x65\x6C\x6C\x73","\x70\x72\x65\x76\x69\x6F\x75\x73\x4C\x61\x79\x65\x72\x43\x6F\x6E\x6E\x65\x63\x74\x65\x64\x43\x65\x6C\x6C\x73","\x67\x65\x74\x4E\x65\x78\x74\x4C\x61\x79\x65\x72\x43\x6F\x6E\x6E\x65\x63\x74\x65\x64\x43\x65\x6C\x6C\x73","\x67\x65\x74\x50\x72\x65\x76\x69\x6F\x75\x73\x4C\x61\x79\x65\x72\x43\x6F\x6E\x6E\x65\x63\x74\x65\x64\x43\x65\x6C\x6C\x73","\x67\x65\x74\x47\x65\x6E\x65\x72\x61\x6C\x50\x75\x72\x70\x6F\x73\x65\x56\x61\x72\x69\x61\x62\x6C\x65","\x73\x65\x74\x47\x65\x6E\x65\x72\x61\x6C\x50\x75\x72\x70\x6F\x73\x65\x56\x61\x72\x69\x61\x62\x6C\x65","\x73\x65\x74\x58","\x73\x65\x74\x59","\x63\x6F\x6E\x6E\x65\x63\x74\x73\x41\x73\x54\x61\x72\x67\x65\x74","\x63\x6F\x6E\x6E\x65\x63\x74\x73\x41\x73\x53\x6F\x75\x72\x63\x65","\x68\x61\x73\x68\x43\x6F\x64\x65","\x67\x65\x74\x52\x61\x6E\x6B\x56\x61\x6C\x75\x65","\x67\x65\x74\x43\x6F\x72\x65\x43\x65\x6C\x6C","\x65\x64\x67\x65\x73","\x69\x73\x52\x65\x76\x65\x72\x73\x65\x64","\x74\x69\x67\x68\x74\x65\x6E\x54\x6F\x53\x6F\x75\x72\x63\x65","\x72\x6F\x6F\x74\x73","\x76\x65\x72\x74\x65\x78\x4D\x61\x70\x70\x65\x72","\x65\x64\x67\x65\x4D\x61\x70\x70\x65\x72","\x53\x4F\x55\x52\x43\x45\x53\x43\x41\x4E\x53\x54\x41\x52\x54\x52\x41\x4E\x4B","\x63\x72\x65\x61\x74\x65\x49\x6E\x74\x65\x72\x6E\x61\x6C\x43\x65\x6C\x6C\x73","\x72\x61\x6E\x6B\x73","\x64\x66\x73\x43\x6F\x75\x6E\x74","\x69\x6E\x69\x74\x69\x61\x6C\x52\x61\x6E\x6B","\x73\x6C\x69\x63\x65","\x66\x69\x78\x52\x61\x6E\x6B\x73","\x65\x78\x74\x65\x6E\x64\x65\x64\x44\x66\x73","\x6E\x65\x73\x74\x65\x64\x42\x65\x73\x74\x52\x61\x6E\x6B\x73","\x63\x75\x72\x72\x65\x6E\x74\x42\x65\x73\x74\x43\x72\x6F\x73\x73\x69\x6E\x67\x73","\x69\x74\x65\x72\x61\x74\x69\x6F\x6E\x73\x57\x69\x74\x68\x6F\x75\x74\x49\x6D\x70\x72\x6F\x76\x65\x6D\x65\x6E\x74","\x6D\x61\x78\x4E\x6F\x49\x6D\x70\x72\x6F\x76\x65\x6D\x65\x6E\x74\x49\x74\x65\x72\x61\x74\x69\x6F\x6E\x73","\x63\x61\x6C\x63\x75\x6C\x61\x74\x65\x43\x72\x6F\x73\x73\x69\x6E\x67\x73","\x77\x65\x69\x67\x68\x74\x65\x64\x4D\x65\x64\x69\x61\x6E","\x74\x72\x61\x6E\x73\x70\x6F\x73\x65","\x63\x61\x6C\x63\x75\x6C\x61\x74\x65\x52\x61\x6E\x6B\x43\x72\x6F\x73\x73\x69\x6E\x67","\x6D\x65\x64\x69\x61\x6E\x52\x61\x6E\x6B","\x6D\x65\x64\x69\x61\x6E\x56\x61\x6C\x75\x65","\x6C\x65\x6E\x74\x68","\x67\x65\x74\x49\x6E\x63\x6F\x6D\x69\x6E\x67\x45\x64\x67\x65\x73","\x69\x6E\x74\x72\x61\x43\x65\x6C\x6C\x53\x70\x61\x63\x69\x6E\x67","\x69\x6E\x74\x65\x72\x52\x61\x6E\x6B\x43\x65\x6C\x6C\x53\x70\x61\x63\x69\x6E\x67","\x6F\x72\x69\x65\x6E\x74\x61\x74\x69\x6F\x6E","\x69\x6E\x69\x74\x69\x61\x6C\x58","\x70\x61\x72\x61\x6C\x6C\x65\x6C\x45\x64\x67\x65\x53\x70\x61\x63\x69\x6E\x67","\x6A\x65\x74\x74\x79\x50\x6F\x73\x69\x74\x69\x6F\x6E\x73","\x6C\x69\x6D\x69\x74\x58","\x63\x75\x72\x72\x65\x6E\x74\x58\x44\x65\x6C\x74\x61","\x77\x69\x64\x65\x73\x74\x52\x61\x6E\x6B","\x72\x61\x6E\x6B\x54\x6F\x70\x59","\x72\x61\x6E\x6B\x42\x6F\x74\x74\x6F\x6D\x59","\x77\x69\x64\x65\x73\x74\x52\x61\x6E\x6B\x56\x61\x6C\x75\x65","\x72\x61\x6E\x6B\x57\x69\x64\x74\x68\x73","\x72\x61\x6E\x6B\x59","\x66\x69\x6E\x65\x54\x75\x6E\x69\x6E\x67","\x50\x4F\x4C\x59\x4C\x49\x4E\x45","\x6E\x65\x78\x74\x4C\x61\x79\x65\x72\x43\x6F\x6E\x6E\x65\x63\x74\x65\x64\x43\x61\x63\x68\x65","\x70\x72\x65\x76\x69\x6F\x75\x73\x4C\x61\x79\x65\x72\x43\x6F\x6E\x6E\x65\x63\x74\x65\x64\x43\x61\x63\x68\x65","\x70\x72\x69\x6E\x74\x53\x74\x61\x74\x75\x73","\x3D\x3D\x3D\x3D\x3D\x3D\x43\x6F\x6F\x72\x64\x20\x61\x73\x73\x69\x67\x6E\x6D\x65\x6E\x74\x20\x64\x65\x62\x75\x67\x3D\x3D\x3D\x3D\x3D\x3D\x3D","\x52\x61\x6E\x6B\x20","\x20\x3A\x20","\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D","\x69\x6E\x69\x74\x69\x61\x6C\x43\x6F\x6F\x72\x64\x73","\x6D\x69\x6E\x4E\x6F\x64\x65","\x6D\x65\x64\x69\x61\x6E\x50\x6F\x73","\x6D\x69\x6E\x50\x61\x74\x68","\x73\x65\x74\x43\x65\x6C\x6C\x4C\x6F\x63\x61\x74\x69\x6F\x6E\x73","\x6D\x65\x64\x69\x61\x6E\x58\x56\x61\x6C\x75\x65","\x72\x61\x6E\x6B\x4D\x65\x64\x69\x61\x6E\x50\x6F\x73\x69\x74\x69\x6F\x6E","\x63\x61\x6C\x63\x75\x6C\x61\x74\x65\x64\x57\x65\x69\x67\x68\x74\x65\x64\x56\x61\x6C\x75\x65","\x63\x61\x6C\x63\x75\x6C\x61\x74\x65\x57\x69\x64\x65\x73\x74\x52\x61\x6E\x6B","\x72\x61\x6E\x6B\x43\x6F\x6F\x72\x64\x69\x6E\x61\x74\x65\x73","\x65\x64\x67\x65\x2E\x65\x64\x67\x65\x73\x20\x69\x73\x20\x6E\x75\x6C\x6C","\x41\x74\x20\x6C\x65\x61\x73\x74\x20\x6F\x6E\x65\x20\x63\x65\x6C\x6C\x20\x68\x61\x73\x20\x6E\x6F\x20\x62\x6F\x75\x6E\x64\x73","\x72\x65\x70\x6F\x73\x69\x74\x69\x6F\x6E\x56\x61\x6C\x69\x64","\x4D\x41\x58\x5F\x56\x41\x4C\x55\x45","\x4F\x52\x54\x48\x4F\x47\x4F\x4E\x41\x4C","\x43\x55\x52\x56\x45","\x73\x65\x74\x45\x64\x67\x65\x50\x6F\x73\x69\x74\x69\x6F\x6E","\x69\x73\x50\x6F\x72\x74","\x70\x72\x6F\x63\x65\x73\x73\x52\x65\x76\x65\x72\x73\x65\x64\x45\x64\x67\x65","\x64\x65\x74\x65\x72\x6D\x69\x6E\x69\x73\x74\x69\x63","\x6D\x6F\x76\x65\x50\x61\x72\x65\x6E\x74","\x70\x61\x72\x65\x6E\x74\x42\x6F\x72\x64\x65\x72","\x69\x6E\x74\x65\x72\x48\x69\x65\x72\x61\x72\x63\x68\x79\x53\x70\x61\x63\x69\x6E\x67","\x74\x72\x61\x76\x65\x72\x73\x65\x41\x6E\x63\x65\x73\x74\x6F\x72\x73","\x65\x64\x67\x65\x73\x43\x61\x63\x68\x65","\x72\x75\x6E","\x75\x70\x64\x61\x74\x65\x47\x72\x6F\x75\x70\x42\x6F\x75\x6E\x64\x73","\x66\x69\x6E\x64\x52\x6F\x6F\x74\x73","\x63\x6F\x6E\x63\x61\x74","\x69\x73\x56\x61\x6C\x69\x64\x41\x6E\x63\x65\x73\x74\x6F\x72","\x66\x69\x6C\x74\x65\x72\x44\x65\x73\x63\x65\x6E\x64\x61\x6E\x74\x73","\x63\x79\x63\x6C\x65\x53\x74\x61\x67\x65","\x6C\x61\x79\x65\x72\x69\x6E\x67\x53\x74\x61\x67\x65","\x63\x72\x6F\x73\x73\x69\x6E\x67\x53\x74\x61\x67\x65","\x70\x6C\x61\x63\x65\x6D\x65\x6E\x74\x53\x74\x61\x67\x65","\x63\x75\x72\x72\x65\x6E\x74\x45\x64\x69\x74","\x73\x65\x74\x52\x6F\x6F\x74","\x6D\x61\x69\x6E\x74\x61\x69\x6E\x45\x64\x67\x65\x50\x61\x72\x65\x6E\x74","\x63\x72\x65\x61\x74\x65\x49\x64\x73","\x70\x6F\x73\x74\x66\x69\x78","\x6E\x65\x78\x74\x49\x64","\x75\x70\x64\x61\x74\x65\x4C\x65\x76\x65\x6C","\x65\x6E\x64\x69\x6E\x67\x55\x70\x64\x61\x74\x65","\x63\x72\x65\x61\x74\x65\x52\x6F\x6F\x74","\x69\x73\x43\x72\x65\x61\x74\x65\x49\x64\x73","\x73\x65\x74\x43\x72\x65\x61\x74\x65\x49\x64\x73","\x69\x6E\x73\x65\x72\x74","\x66\x69\x6C\x74\x65\x72\x43\x65\x6C\x6C\x73","\x67\x65\x74\x44\x65\x73\x63\x65\x6E\x64\x61\x6E\x74\x73","\x72\x6F\x6F\x74\x43\x68\x61\x6E\x67\x65\x64","\x63\x65\x6C\x6C\x41\x64\x64\x65\x64","\x69\x73\x52\x6F\x6F\x74","\x75\x70\x64\x61\x74\x65\x45\x64\x67\x65\x50\x61\x72\x65\x6E\x74\x73","\x63\x72\x65\x61\x74\x65\x49\x64","\x73\x65\x74\x49\x64","\x69\x73\x4E\x75\x6D\x65\x72\x69\x63","\x75\x70\x64\x61\x74\x65\x45\x64\x67\x65\x50\x61\x72\x65\x6E\x74","\x67\x65\x74\x4E\x65\x61\x72\x65\x73\x74\x43\x6F\x6D\x6D\x6F\x6E\x41\x6E\x63\x65\x73\x74\x6F\x72","\x67\x65\x74\x4F\x72\x69\x67\x69\x6E","\x50\x41\x54\x48\x5F\x53\x45\x50\x41\x52\x41\x54\x4F\x52","\x67\x65\x74\x50\x61\x72\x65\x6E\x74\x50\x61\x74\x68","\x70\x61\x72\x65\x6E\x74\x46\x6F\x72\x43\x65\x6C\x6C\x43\x68\x61\x6E\x67\x65\x64","\x67\x65\x74\x43\x68\x69\x6C\x64\x72\x65\x6E","\x63\x68\x69\x6C\x64\x72\x65\x6E","\x67\x65\x74\x43\x68\x69\x6C\x64\x43\x65\x6C\x6C\x73","\x67\x65\x74\x43\x68\x69\x6C\x64\x45\x64\x67\x65\x73","\x73\x65\x74\x54\x65\x72\x6D\x69\x6E\x61\x6C","\x73\x65\x74\x54\x65\x72\x6D\x69\x6E\x61\x6C\x73","\x74\x65\x72\x6D\x69\x6E\x61\x6C\x46\x6F\x72\x43\x65\x6C\x6C\x43\x68\x61\x6E\x67\x65\x64","\x69\x6E\x73\x65\x72\x74\x45\x64\x67\x65","\x72\x65\x6D\x6F\x76\x65\x45\x64\x67\x65","\x67\x65\x74\x44\x69\x72\x65\x63\x74\x65\x64\x45\x64\x67\x65\x43\x6F\x75\x6E\x74","\x67\x65\x74\x4F\x75\x74\x67\x6F\x69\x6E\x67\x45\x64\x67\x65\x73","\x67\x65\x74\x54\x6F\x70\x6D\x6F\x73\x74\x43\x65\x6C\x6C\x73","\x69\x73\x43\x6F\x6E\x6E\x65\x63\x74\x61\x62\x6C\x65","\x73\x65\x74\x56\x61\x6C\x75\x65","\x76\x61\x6C\x75\x65\x46\x6F\x72\x43\x65\x6C\x6C\x43\x68\x61\x6E\x67\x65\x64","\x76\x61\x6C\x75\x65\x43\x68\x61\x6E\x67\x65\x64","\x67\x65\x6F\x6D\x65\x74\x72\x79\x46\x6F\x72\x43\x65\x6C\x6C\x43\x68\x61\x6E\x67\x65\x64","\x73\x74\x79\x6C\x65\x46\x6F\x72\x43\x65\x6C\x6C\x43\x68\x61\x6E\x67\x65\x64","\x69\x73\x43\x6F\x6C\x6C\x61\x70\x73\x65\x64","\x73\x65\x74\x43\x6F\x6C\x6C\x61\x70\x73\x65\x64","\x63\x6F\x6C\x6C\x61\x70\x73\x65\x64\x53\x74\x61\x74\x65\x46\x6F\x72\x43\x65\x6C\x6C\x43\x68\x61\x6E\x67\x65\x64","\x76\x69\x73\x69\x62\x6C\x65\x53\x74\x61\x74\x65\x46\x6F\x72\x43\x65\x6C\x6C\x43\x68\x61\x6E\x67\x65\x64","\x6D\x65\x72\x67\x65\x43\x68\x69\x6C\x64\x72\x65\x6E","\x6D\x65\x72\x67\x65\x43\x68\x69\x6C\x64\x72\x65\x6E\x49\x6D\x70\x6C","\x67\x65\x74\x50\x61\x72\x65\x6E\x74\x73","\x63\x6C\x6F\x6E\x65\x43\x65\x6C\x6C","\x63\x6C\x6F\x6E\x65\x43\x65\x6C\x6C\x49\x6D\x70\x6C","\x72\x65\x73\x74\x6F\x72\x65\x43\x6C\x6F\x6E\x65","\x63\x65\x6C\x6C\x43\x6C\x6F\x6E\x65\x64","\x70\x72\x65\x76\x69\x6F\x75\x73\x49\x6E\x64\x65\x78","\x69\x6E\x64\x65\x78","\x74\x65\x72\x6D\x69\x6E\x61\x6C","\x63\x6F\x6C\x6C\x61\x70\x73\x65\x64","\x61\x74\x74\x72\x69\x62\x75\x74\x65","\x6F\x6E\x49\x6E\x69\x74","\x76\x65\x72\x74\x65\x78","\x65\x64\x67\x65","\x63\x6F\x6E\x6E\x65\x63\x74\x61\x62\x6C\x65","\x6D\x78\x54\x72\x61\x6E\x73\x69\x65\x6E\x74","\x69\x64\x20\x76\x61\x6C\x75\x65\x20\x70\x61\x72\x65\x6E\x74\x20\x73\x6F\x75\x72\x63\x65\x20\x74\x61\x72\x67\x65\x74\x20\x63\x68\x69\x6C\x64\x72\x65\x6E\x20\x65\x64\x67\x65\x73","\x73\x65\x74\x56\x65\x72\x74\x65\x78","\x73\x65\x74\x45\x64\x67\x65","\x73\x65\x74\x43\x6F\x6E\x6E\x65\x63\x74\x61\x62\x6C\x65","\x73\x65\x74\x50\x61\x72\x65\x6E\x74","\x72\x65\x6D\x6F\x76\x65\x46\x72\x6F\x6D\x50\x61\x72\x65\x6E\x74","\x67\x65\x74\x45\x64\x67\x65\x49\x6E\x64\x65\x78","\x72\x65\x6D\x6F\x76\x65\x46\x72\x6F\x6D\x54\x65\x72\x6D\x69\x6E\x61\x6C","\x63\x6C\x6F\x6E\x65\x56\x61\x6C\x75\x65","\x54\x52\x41\x4E\x53\x4C\x41\x54\x45\x5F\x43\x4F\x4E\x54\x52\x4F\x4C\x5F\x50\x4F\x49\x4E\x54\x53","\x61\x6C\x74\x65\x72\x6E\x61\x74\x65\x42\x6F\x75\x6E\x64\x73","\x73\x6F\x75\x72\x63\x65\x50\x6F\x69\x6E\x74","\x74\x61\x72\x67\x65\x74\x50\x6F\x69\x6E\x74","\x73\x77\x61\x70","\x67\x65\x74\x54\x65\x72\x6D\x69\x6E\x61\x6C\x50\x6F\x69\x6E\x74","\x73\x65\x74\x54\x65\x72\x6D\x69\x6E\x61\x6C\x50\x6F\x69\x6E\x74","\x74\x61\x6E","\x70\x6F\x77","\x69\x6E\x74\x65\x72\x73\x65\x63\x74\x69\x6F\x6E","\x53\x54\x59\x4C\x45\x5F\x44\x49\x52\x45\x43\x54\x49\x4F\x4E","\x70\x61\x67\x65\x53\x63\x61\x6C\x65","\x70\x61\x67\x65\x46\x6F\x72\x6D\x61\x74","\x50\x72\x69\x6E\x74\x65\x72\x2D\x66\x72\x69\x65\x6E\x64\x6C\x79\x20\x76\x65\x72\x73\x69\x6F\x6E","\x70\x61\x67\x65\x53\x65\x6C\x65\x63\x74\x6F\x72","\x61\x75\x74\x6F\x4F\x72\x69\x67\x69\x6E","\x70\x72\x69\x6E\x74\x4F\x76\x65\x72\x6C\x61\x79\x73","\x77\x6E\x64","\x70\x61\x67\x65\x43\x6F\x75\x6E\x74","\x67\x65\x74\x57\x69\x6E\x64\x6F\x77","\x67\x65\x74\x44\x6F\x63\x74\x79\x70\x65","\x3C\x6D\x65\x74\x61\x20\x68\x74\x74\x70\x2D\x65\x71\x75\x69\x76\x3D\x22\x58\x2D\x55\x41\x2D\x43\x6F\x6D\x70\x61\x74\x69\x62\x6C\x65\x22\x20\x63\x6F\x6E\x74\x65\x6E\x74\x3D\x22\x49\x45\x3D\x38\x22\x3E","\x69\x6E\x69\x74\x69\x61\x6C\x69\x7A\x65\x4F\x76\x65\x72\x6C\x61\x79","\x67\x65\x74\x44\x72\x61\x77\x50\x61\x6E\x65","\x77\x72\x69\x74\x65\x48\x65\x61\x64","\x3C\x62\x6F\x64\x79\x20\x63\x6C\x61\x73\x73\x3D\x22\x6D\x78\x50\x61\x67\x65\x22\x3E","\x63\x72\x65\x61\x74\x65\x50\x61\x67\x65\x53\x65\x6C\x65\x63\x74\x6F\x72","\x70\x61\x67\x65\x42\x72\x65\x61\x6B\x41\x66\x74\x65\x72","\x61\x6C\x77\x61\x79\x73","\x6D\x78\x50\x61\x67\x65\x42\x72\x65\x61\x6B","\x67\x65\x74\x43\x6F\x76\x65\x72\x50\x61\x67\x65\x73","\x67\x65\x74\x41\x70\x70\x65\x6E\x64\x69\x63\x65\x73","\x61\x64\x64\x47\x72\x61\x70\x68\x46\x72\x61\x67\x6D\x65\x6E\x74","\x72\x65\x6E\x64\x65\x72\x50\x61\x67\x65","\x6D\x78\x50\x61\x67\x65\x2D","\x3C\x74\x69\x74\x6C\x65\x3E","\x3C\x2F\x74\x69\x74\x6C\x65\x3E","\x3C\x73\x74\x79\x6C\x65\x20\x74\x79\x70\x65\x3D\x22\x74\x65\x78\x74\x2F\x63\x73\x73\x22\x3E","\x40\x6D\x65\x64\x69\x61\x20\x70\x72\x69\x6E\x74\x20\x7B","\x20\x20\x74\x61\x62\x6C\x65\x2E\x6D\x78\x50\x61\x67\x65\x53\x65\x6C\x65\x63\x74\x6F\x72\x20\x7B\x20\x64\x69\x73\x70\x6C\x61\x79\x3A\x20\x6E\x6F\x6E\x65\x3B\x20\x7D","\x20\x20\x68\x72\x2E\x6D\x78\x50\x61\x67\x65\x42\x72\x65\x61\x6B\x20\x7B\x20\x64\x69\x73\x70\x6C\x61\x79\x3A\x20\x6E\x6F\x6E\x65\x3B\x20\x7D","\x40\x6D\x65\x64\x69\x61\x20\x73\x63\x72\x65\x65\x6E\x20\x7B","\x20\x20\x74\x61\x62\x6C\x65\x2E\x6D\x78\x50\x61\x67\x65\x53\x65\x6C\x65\x63\x74\x6F\x72\x20\x7B\x20\x70\x6F\x73\x69\x74\x69\x6F\x6E\x3A\x20\x66\x69\x78\x65\x64\x3B\x20\x72\x69\x67\x68\x74\x3A\x20\x31\x30\x70\x78\x3B\x20\x74\x6F\x70\x3A\x20\x31\x30\x70\x78\x3B\x66\x6F\x6E\x74\x2D\x66\x61\x6D\x69\x6C\x79\x3A\x20\x41\x72\x69\x61\x6C\x3B\x20\x66\x6F\x6E\x74\x2D\x73\x69\x7A\x65\x3A\x31\x30\x70\x74\x3B\x20\x62\x6F\x72\x64\x65\x72\x3A\x20\x73\x6F\x6C\x69\x64\x20\x31\x70\x78\x20\x64\x61\x72\x6B\x67\x72\x61\x79\x3B\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x3A\x20\x77\x68\x69\x74\x65\x3B\x20\x62\x6F\x72\x64\x65\x72\x2D\x63\x6F\x6C\x6C\x61\x70\x73\x65\x3A\x63\x6F\x6C\x6C\x61\x70\x73\x65\x3B\x20\x7D","\x20\x20\x74\x61\x62\x6C\x65\x2E\x6D\x78\x50\x61\x67\x65\x53\x65\x6C\x65\x63\x74\x6F\x72\x20\x74\x64\x20\x7B\x20\x62\x6F\x72\x64\x65\x72\x3A\x20\x73\x6F\x6C\x69\x64\x20\x31\x70\x78\x20\x67\x72\x61\x79\x3B\x20\x70\x61\x64\x64\x69\x6E\x67\x3A\x34\x70\x78\x3B\x20\x7D","\x20\x20\x62\x6F\x64\x79\x2E\x6D\x78\x50\x61\x67\x65\x20\x7B\x20\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x3A\x20\x67\x72\x61\x79\x3B\x20\x7D","\x3C\x2F\x73\x74\x79\x6C\x65\x3E","\x6D\x78\x50\x61\x67\x65\x53\x65\x6C\x65\x63\x74\x6F\x72","\x61","\x23\x6D\x78\x50\x61\x67\x65\x2D","\x70\x61\x67\x65\x42\x72\x65\x61\x6B\x49\x6E\x73\x69\x64\x65","\x67\x65\x74\x43\x61\x6E\x76\x61\x73","\x67\x65\x74\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x50\x61\x6E\x65","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x50\x61\x6E\x65","\x73\x74\x79\x6C\x65\x73","\x63\x72\x65\x61\x74\x65\x44\x65\x66\x61\x75\x6C\x74\x56\x65\x72\x74\x65\x78\x53\x74\x79\x6C\x65","\x70\x75\x74\x44\x65\x66\x61\x75\x6C\x74\x56\x65\x72\x74\x65\x78\x53\x74\x79\x6C\x65","\x63\x72\x65\x61\x74\x65\x44\x65\x66\x61\x75\x6C\x74\x45\x64\x67\x65\x53\x74\x79\x6C\x65","\x70\x75\x74\x44\x65\x66\x61\x75\x6C\x74\x45\x64\x67\x65\x53\x74\x79\x6C\x65","\x53\x54\x59\x4C\x45\x5F\x53\x48\x41\x50\x45","\x53\x48\x41\x50\x45\x5F\x52\x45\x43\x54\x41\x4E\x47\x4C\x45","\x53\x54\x59\x4C\x45\x5F\x50\x45\x52\x49\x4D\x45\x54\x45\x52","\x52\x65\x63\x74\x61\x6E\x67\x6C\x65\x50\x65\x72\x69\x6D\x65\x74\x65\x72","\x53\x54\x59\x4C\x45\x5F\x56\x45\x52\x54\x49\x43\x41\x4C\x5F\x41\x4C\x49\x47\x4E","\x53\x54\x59\x4C\x45\x5F\x41\x4C\x49\x47\x4E","\x53\x54\x59\x4C\x45\x5F\x46\x49\x4C\x4C\x43\x4F\x4C\x4F\x52","\x23\x43\x33\x44\x39\x46\x46","\x53\x54\x59\x4C\x45\x5F\x53\x54\x52\x4F\x4B\x45\x43\x4F\x4C\x4F\x52","\x23\x36\x34\x38\x32\x42\x39","\x53\x54\x59\x4C\x45\x5F\x46\x4F\x4E\x54\x43\x4F\x4C\x4F\x52","\x23\x37\x37\x34\x34\x30\x30","\x53\x48\x41\x50\x45\x5F\x43\x4F\x4E\x4E\x45\x43\x54\x4F\x52","\x23\x34\x34\x36\x32\x39\x39","\x64\x65\x66\x61\x75\x6C\x74\x56\x65\x72\x74\x65\x78","\x70\x75\x74\x43\x65\x6C\x6C\x53\x74\x79\x6C\x65","\x64\x65\x66\x61\x75\x6C\x74\x45\x64\x67\x65","\x67\x65\x74\x44\x65\x66\x61\x75\x6C\x74\x56\x65\x72\x74\x65\x78\x53\x74\x79\x6C\x65","\x67\x65\x74\x44\x65\x66\x61\x75\x6C\x74\x45\x64\x67\x65\x53\x74\x79\x6C\x65","\x6F\x72\x69\x67\x69\x6E","\x61\x62\x73\x6F\x6C\x75\x74\x65\x4F\x66\x66\x73\x65\x74","\x69\x6E\x76\x61\x6C\x69\x64","\x69\x6E\x76\x61\x6C\x69\x64\x4F\x72\x64\x65\x72","\x6F\x72\x64\x65\x72\x43\x68\x61\x6E\x67\x65\x64","\x76\x69\x73\x69\x62\x6C\x65\x53\x6F\x75\x72\x63\x65\x53\x74\x61\x74\x65","\x76\x69\x73\x69\x62\x6C\x65\x54\x61\x72\x67\x65\x74\x53\x74\x61\x74\x65","\x74\x65\x72\x6D\x69\x6E\x61\x6C\x44\x69\x73\x74\x61\x6E\x63\x65","\x73\x65\x67\x6D\x65\x6E\x74\x73","\x67\x65\x74\x50\x65\x72\x69\x6D\x65\x74\x65\x72\x42\x6F\x75\x6E\x64\x73","\x73\x65\x74\x41\x62\x73\x6F\x6C\x75\x74\x65\x54\x65\x72\x6D\x69\x6E\x61\x6C\x50\x6F\x69\x6E\x74","\x67\x65\x74\x56\x69\x73\x69\x62\x6C\x65\x54\x65\x72\x6D\x69\x6E\x61\x6C\x53\x74\x61\x74\x65","\x73\x65\x74\x56\x69\x73\x69\x62\x6C\x65\x54\x65\x72\x6D\x69\x6E\x61\x6C\x53\x74\x61\x74\x65","\x64\x6F\x6E\x65\x52\x65\x73\x6F\x75\x72\x63\x65","\x75\x70\x64\x61\x74\x69\x6E\x67\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x52\x65\x73\x6F\x75\x72\x63\x65","\x75\x70\x64\x61\x74\x69\x6E\x67\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E","\x73\x69\x6E\x67\x6C\x65\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E","\x69\x73\x53\x69\x6E\x67\x6C\x65\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E","\x73\x65\x74\x53\x69\x6E\x67\x6C\x65\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E","\x69\x73\x53\x65\x6C\x65\x63\x74\x65\x64","\x63\x68\x61\x6E\x67\x65\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E","\x73\x65\x74\x43\x65\x6C\x6C","\x73\x65\x74\x43\x65\x6C\x6C\x73","\x67\x65\x74\x46\x69\x72\x73\x74\x53\x65\x6C\x65\x63\x74\x61\x62\x6C\x65\x43\x65\x6C\x6C","\x69\x73\x43\x65\x6C\x6C\x53\x65\x6C\x65\x63\x74\x61\x62\x6C\x65","\x61\x64\x64\x43\x65\x6C\x6C","\x72\x65\x6D\x6F\x76\x65\x43\x65\x6C\x6C","\x73\x65\x6C\x65\x63\x74\x69\x6F\x6E\x4D\x6F\x64\x65\x6C","\x61\x64\x64\x65\x64","\x72\x65\x6D\x6F\x76\x65\x64","\x6D\x78\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x68\x61\x6E\x67\x65\x2E\x65\x78\x65\x63\x75\x74\x65","\x65\x6E\x74\x65\x72","\x6C\x65\x61\x76\x65","\x65\x64\x69\x74\x69\x6E\x67\x43\x65\x6C\x6C","\x74\x72\x69\x67\x67\x65\x72","\x6D\x6F\x64\x69\x66\x69\x65\x64","\x61\x75\x74\x6F\x53\x69\x7A\x65","\x65\x6D\x70\x74\x79\x4C\x61\x62\x65\x6C\x54\x65\x78\x74","\x74\x65\x78\x74\x4E\x6F\x64\x65","\x6D\x78\x43\x65\x6C\x6C\x45\x64\x69\x74\x6F\x72","\x63\x6F\x6C\x73","\x32\x30","\x34","\x62\x6C\x75\x72","\x66\x6F\x63\x75\x73\x4C\x6F\x73\x74","\x6B\x65\x79\x64\x6F\x77\x6E","\x6B\x65\x79\x43\x6F\x64\x65","\x69\x73\x45\x6E\x74\x65\x72\x53\x74\x6F\x70\x73\x43\x65\x6C\x6C\x45\x64\x69\x74\x69\x6E\x67","\x73\x74\x6F\x70\x45\x64\x69\x74\x69\x6E\x67","\x63\x6C\x65\x61\x72\x4F\x6E\x43\x68\x61\x6E\x67\x65","\x73\x65\x74\x4D\x6F\x64\x69\x66\x69\x65\x64","\x6B\x65\x79\x70\x72\x65\x73\x73","\x69\x73\x4C\x61\x62\x65\x6C\x43\x6C\x69\x70\x70\x65\x64","\x69\x73\x57\x72\x61\x70\x70\x69\x6E\x67","\x41\x4C\x49\x47\x4E\x5F\x4C\x45\x46\x54","\x69\x73\x4D\x6F\x64\x69\x66\x69\x65\x64","\x69\x73\x49\x6E\x76\x6F\x6B\x65\x73\x53\x74\x6F\x70\x43\x65\x6C\x6C\x45\x64\x69\x74\x69\x6E\x67","\x69\x73\x48\x69\x64\x65\x4C\x61\x62\x65\x6C","\x6F\x75\x74\x6C\x69\x6E\x65","\x67\x65\x74\x45\x64\x69\x74\x6F\x72\x42\x6F\x75\x6E\x64\x73","\x67\x65\x74\x49\x6E\x69\x74\x69\x61\x6C\x56\x61\x6C\x75\x65","\x67\x65\x74\x45\x6D\x70\x74\x79\x4C\x61\x62\x65\x6C\x54\x65\x78\x74","\x63\x72\x65\x61\x74\x65\x54\x65\x78\x74\x44\x69\x76","\x67\x65\x74\x43\x75\x72\x72\x65\x6E\x74\x56\x61\x6C\x75\x65","\x67\x65\x74\x45\x64\x69\x74\x69\x6E\x67\x56\x61\x6C\x75\x65","\x53\x54\x59\x4C\x45\x5F\x53\x50\x41\x43\x49\x4E\x47","\x53\x54\x59\x4C\x45\x5F\x53\x50\x41\x43\x49\x4E\x47\x5F\x54\x4F\x50","\x53\x54\x59\x4C\x45\x5F\x53\x50\x41\x43\x49\x4E\x47\x5F\x52\x49\x47\x48\x54","\x53\x54\x59\x4C\x45\x5F\x53\x50\x41\x43\x49\x4E\x47\x5F\x42\x4F\x54\x54\x4F\x4D","\x53\x54\x59\x4C\x45\x5F\x53\x50\x41\x43\x49\x4E\x47\x5F\x4C\x45\x46\x54","\x67\x65\x74\x45\x64\x69\x74\x69\x6E\x67\x43\x65\x6C\x6C","\x64\x65\x66\x61\x75\x6C\x74\x45\x64\x67\x65\x53\x68\x61\x70\x65","\x64\x65\x66\x61\x75\x6C\x74\x56\x65\x72\x74\x65\x78\x53\x68\x61\x70\x65","\x64\x65\x66\x61\x75\x6C\x74\x54\x65\x78\x74\x53\x68\x61\x70\x65","\x6C\x65\x67\x61\x63\x79\x43\x6F\x6E\x74\x72\x6F\x6C\x50\x6F\x73\x69\x74\x69\x6F\x6E","\x64\x65\x66\x61\x75\x6C\x74\x53\x68\x61\x70\x65\x73","\x72\x65\x67\x69\x73\x74\x65\x72\x53\x68\x61\x70\x65","\x69\x6E\x69\x74\x69\x61\x6C\x69\x7A\x65","\x63\x72\x65\x61\x74\x65\x53\x68\x61\x70\x65","\x69\x6E\x69\x74\x69\x61\x6C\x69\x7A\x65\x53\x68\x61\x70\x65","\x6F\x72\x64\x65\x72\x65\x64","\x6B\x65\x65\x70\x45\x64\x67\x65\x73\x49\x6E\x46\x6F\x72\x65\x67\x72\x6F\x75\x6E\x64","\x66\x69\x72\x73\x74\x45\x64\x67\x65","\x69\x6E\x73\x65\x72\x74\x53\x74\x61\x74\x65","\x63\x72\x65\x61\x74\x65\x43\x65\x6C\x6C\x4F\x76\x65\x72\x6C\x61\x79\x73","\x69\x6E\x73\x74\x61\x6C\x6C\x4C\x69\x73\x74\x65\x6E\x65\x72\x73","\x67\x65\x74\x50\x72\x65\x76\x69\x6F\x75\x73\x53\x74\x61\x74\x65\x49\x6E\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x66\x69\x6E\x64\x50\x72\x65\x76\x69\x6F\x75\x73\x53\x74\x61\x74\x65\x49\x6E\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x6F\x72\x64\x65\x72","\x6F\x72\x64\x65\x72\x45\x64\x67\x65","\x6B\x65\x65\x70\x45\x64\x67\x65\x73\x49\x6E\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64","\x67\x65\x74\x53\x68\x61\x70\x65\x43\x6F\x6E\x73\x74\x72\x75\x63\x74\x6F\x72","\x63\x6F\x6E\x66\x69\x67\x75\x72\x65\x53\x68\x61\x70\x65","\x67\x65\x74\x53\x68\x61\x70\x65","\x67\x65\x74\x49\x6E\x64\x69\x63\x61\x74\x6F\x72\x53\x68\x61\x70\x65","\x67\x65\x74\x49\x6E\x64\x69\x63\x61\x74\x6F\x72\x43\x6F\x6C\x6F\x72","\x67\x65\x74\x49\x6E\x64\x69\x63\x61\x74\x6F\x72\x47\x72\x61\x64\x69\x65\x6E\x74\x43\x6F\x6C\x6F\x72","\x53\x54\x59\x4C\x45\x5F\x49\x4E\x44\x49\x43\x41\x54\x4F\x52\x5F\x44\x49\x52\x45\x43\x54\x49\x4F\x4E","\x67\x65\x74\x49\x6E\x64\x69\x63\x61\x74\x6F\x72\x49\x6D\x61\x67\x65","\x70\x6F\x73\x74\x43\x6F\x6E\x66\x69\x67\x75\x72\x65\x53\x68\x61\x70\x65","\x72\x65\x73\x6F\x6C\x76\x65\x43\x6F\x6C\x6F\x72","\x67\x65\x74\x53\x77\x69\x6D\x6C\x61\x6E\x65","\x73\x77\x69\x6D\x6C\x61\x6E\x65\x49\x6E\x64\x69\x63\x61\x74\x6F\x72\x43\x6F\x6C\x6F\x72\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x69\x6E\x64\x69\x63\x61\x74\x65\x64","\x67\x65\x74\x4C\x61\x62\x65\x6C\x56\x61\x6C\x75\x65","\x67\x65\x74\x4C\x61\x62\x65\x6C","\x63\x72\x65\x61\x74\x65\x4C\x61\x62\x65\x6C","\x53\x54\x59\x4C\x45\x5F\x46\x4F\x4E\x54\x53\x49\x5A\x45","\x69\x73\x48\x74\x6D\x6C\x4C\x61\x62\x65\x6C","\x67\x65\x74\x56\x65\x72\x74\x69\x63\x61\x6C\x41\x6C\x69\x67\x6E","\x53\x54\x59\x4C\x45\x5F\x46\x4F\x4E\x54\x46\x41\x4D\x49\x4C\x59","\x53\x54\x59\x4C\x45\x5F\x46\x4F\x4E\x54\x53\x54\x59\x4C\x45","\x53\x54\x59\x4C\x45\x5F\x48\x4F\x52\x49\x5A\x4F\x4E\x54\x41\x4C","\x53\x54\x59\x4C\x45\x5F\x4C\x41\x42\x45\x4C\x5F\x42\x41\x43\x4B\x47\x52\x4F\x55\x4E\x44\x43\x4F\x4C\x4F\x52","\x53\x54\x59\x4C\x45\x5F\x4C\x41\x42\x45\x4C\x5F\x42\x4F\x52\x44\x45\x52\x43\x4F\x4C\x4F\x52","\x53\x54\x59\x4C\x45\x5F\x4F\x56\x45\x52\x46\x4C\x4F\x57","\x53\x54\x59\x4C\x45\x5F\x4C\x41\x42\x45\x4C\x5F\x50\x41\x44\x44\x49\x4E\x47","\x69\x6E\x69\x74\x69\x61\x6C\x69\x7A\x65\x4C\x61\x62\x65\x6C","\x63\x6F\x6E\x76\x65\x72\x74\x50\x6F\x69\x6E\x74","\x69\x73\x4C\x61\x62\x65\x6C\x45\x76\x65\x6E\x74","\x49\x4D\x47","\x4E\x4F\x5F\x46\x4F","\x67\x65\x74\x43\x65\x6C\x6C\x4F\x76\x65\x72\x6C\x61\x79\x73","\x6F\x76\x65\x72\x6C\x61\x79","\x69\x6E\x73\x74\x61\x6C\x6C\x43\x65\x6C\x6C\x4F\x76\x65\x72\x6C\x61\x79\x4C\x69\x73\x74\x65\x6E\x65\x72\x73","\x69\x73\x45\x64\x69\x74\x69\x6E\x67","\x63\x72\x65\x61\x74\x65\x43\x6F\x6E\x74\x72\x6F\x6C","\x67\x65\x74\x46\x6F\x6C\x64\x69\x6E\x67\x49\x6D\x61\x67\x65","\x66\x6F\x6C\x64\x69\x6E\x67\x45\x6E\x61\x62\x6C\x65\x64","\x63\x6F\x6E\x74\x72\x6F\x6C","\x69\x6E\x69\x74\x43\x6F\x6E\x74\x72\x6F\x6C","\x44\x49\x41\x4C\x45\x43\x54\x5F\x50\x52\x45\x46\x45\x52\x48\x54\x4D\x4C","\x69\x6E\x6E\x65\x72\x4E\x6F\x64\x65","\x69\x73\x53\x68\x61\x70\x65\x45\x76\x65\x6E\x74","\x67\x65\x73\x74\x75\x72\x65\x73\x74\x61\x72\x74","\x6C\x61\x73\x74\x54\x6F\x75\x63\x68\x54\x69\x6D\x65","\x67\x65\x73\x74\x75\x72\x65\x65\x6E\x64","\x67\x65\x73\x74\x75\x72\x65\x45\x6E\x61\x62\x6C\x65\x64","\x68\x61\x6E\x64\x6C\x65\x47\x65\x73\x74\x75\x72\x65","\x72\x65\x64\x72\x61\x77\x4C\x61\x62\x65\x6C","\x67\x65\x74\x4C\x61\x62\x65\x6C\x42\x6F\x75\x6E\x64\x73","\x69\x73\x43\x6C\x69\x70\x70\x69\x6E\x67","\x67\x65\x74\x54\x65\x78\x74\x53\x63\x61\x6C\x65","\x72\x6F\x74\x61\x74\x65\x4C\x61\x62\x65\x6C\x42\x6F\x75\x6E\x64\x73","\x72\x65\x64\x72\x61\x77\x43\x65\x6C\x6C\x4F\x76\x65\x72\x6C\x61\x79\x73","\x72\x65\x64\x72\x61\x77\x43\x6F\x6E\x74\x72\x6F\x6C","\x67\x65\x74\x43\x6F\x6E\x74\x72\x6F\x6C\x42\x6F\x75\x6E\x64\x73","\x65\x71\x75\x61\x6C\x45\x6E\x74\x72\x69\x65\x73","\x65\x71\x75\x61\x6C\x50\x6F\x69\x6E\x74\x73","\x67\x65\x74\x50\x6F\x72\x74\x43\x6F\x6E\x73\x74\x72\x61\x69\x6E\x74\x73","\x67\x65\x74\x52\x6F\x75\x74\x69\x6E\x67\x43\x65\x6E\x74\x65\x72\x59","\x74\x72\x61\x6E\x73\x66\x6F\x72\x6D\x43\x6F\x6E\x74\x72\x6F\x6C\x50\x6F\x69\x6E\x74","\x67\x65\x74\x52\x6F\x75\x74\x69\x6E\x67\x43\x65\x6E\x74\x65\x72\x58","\x53\x54\x59\x4C\x45\x5F\x45\x4C\x42\x4F\x57","\x45\x4C\x42\x4F\x57\x5F\x56\x45\x52\x54\x49\x43\x41\x4C","\x6F\x72\x74\x68\x42\x75\x66\x66\x65\x72","\x44\x49\x52\x45\x43\x54\x49\x4F\x4E\x5F\x4D\x41\x53\x4B\x5F\x41\x4C\x4C","\x6C\x69\x6D\x69\x74\x73","\x76\x65\x72\x74\x65\x78\x53\x65\x70\x65\x72\x61\x74\x69\x6F\x6E\x73","\x72\x65\x76\x65\x72\x73\x65\x50\x6F\x72\x74\x43\x6F\x6E\x73\x74\x72\x61\x69\x6E\x74\x73","\x72\x6F\x75\x74\x65\x50\x61\x74\x74\x65\x72\x6E\x73","\x77\x61\x79\x50\x6F\x69\x6E\x74\x73\x31","\x64\x69\x72\x56\x65\x63\x74\x6F\x72\x73","\x54\x41\x52\x47\x45\x54\x5F\x4D\x41\x53\x4B","\x53\x4F\x55\x52\x43\x45\x5F\x4D\x41\x53\x4B","\x53\x49\x44\x45\x5F\x4D\x41\x53\x4B","\x43\x45\x4E\x54\x45\x52\x5F\x4D\x41\x53\x4B","\x76\x61\x6C\x75\x65\x73","\x70\x75\x74\x56\x61\x6C\x75\x65","\x67\x72\x61\x70\x68\x42\x6F\x75\x6E\x64\x73","\x45\x4D\x50\x54\x59\x5F\x50\x4F\x49\x4E\x54","\x75\x70\x64\x61\x74\x69\x6E\x67\x44\x6F\x63\x75\x6D\x65\x6E\x74\x52\x65\x73\x6F\x75\x72\x63\x65","\x75\x70\x64\x61\x74\x69\x6E\x67\x44\x6F\x63\x75\x6D\x65\x6E\x74","\x61\x6C\x6C\x6F\x77\x45\x76\x61\x6C","\x63\x61\x70\x74\x75\x72\x65\x44\x6F\x63\x75\x6D\x65\x6E\x74\x47\x65\x73\x74\x75\x72\x65","\x6F\x70\x74\x69\x6D\x69\x7A\x65\x56\x6D\x6C\x52\x65\x66\x6C\x6F\x77\x73","\x72\x65\x6E\x64\x65\x72\x69\x6E\x67","\x75\x70\x64\x61\x74\x65\x53\x74\x79\x6C\x65","\x73\x65\x74\x47\x72\x61\x70\x68\x42\x6F\x75\x6E\x64\x73","\x73\x65\x74\x43\x75\x72\x72\x65\x6E\x74\x52\x6F\x6F\x74","\x73\x69\x7A\x65\x44\x69\x64\x43\x68\x61\x6E\x67\x65","\x72\x65\x76\x61\x6C\x69\x64\x61\x74\x65","\x70\x72\x65\x76\x69\x6F\x75\x73\x53\x63\x61\x6C\x65","\x70\x72\x65\x76\x69\x6F\x75\x73\x54\x72\x61\x6E\x73\x6C\x61\x74\x65","\x73\x65\x74\x53\x63\x61\x6C\x65","\x69\x6E\x76\x61\x6C\x69\x64\x61\x74\x65","\x76\x61\x6C\x69\x64\x61\x74\x65","\x72\x65\x6D\x6F\x76\x65\x53\x74\x61\x74\x65","\x6D\x78\x47\x72\x61\x70\x68\x56\x69\x65\x77\x2E\x76\x61\x6C\x69\x64\x61\x74\x65","\x76\x61\x6C\x69\x64\x61\x74\x65\x42\x6F\x75\x6E\x64\x73","\x76\x61\x6C\x69\x64\x61\x74\x65\x50\x6F\x69\x6E\x74\x73","\x76\x61\x6C\x69\x64\x61\x74\x65\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64","\x63\x72\x65\x61\x74\x65\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x50\x61\x67\x65\x53\x68\x61\x70\x65","\x67\x65\x74\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x49\x6D\x61\x67\x65","\x72\x65\x64\x72\x61\x77\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x49\x6D\x61\x67\x65","\x70\x61\x67\x65\x56\x69\x73\x69\x62\x6C\x65","\x67\x65\x74\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x50\x61\x67\x65\x42\x6F\x75\x6E\x64\x73","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x50\x61\x67\x65\x53\x68\x61\x70\x65","\x74\x6F\x6F\x6C\x74\x69\x70\x48\x61\x6E\x64\x6C\x65\x72","\x69\x73\x48\x69\x64\x65\x4F\x6E\x48\x6F\x76\x65\x72","\x53\x54\x59\x4C\x45\x5F\x52\x4F\x54\x41\x54\x49\x4F\x4E","\x75\x70\x64\x61\x74\x65\x56\x65\x72\x74\x65\x78\x4C\x61\x62\x65\x6C\x4F\x66\x66\x73\x65\x74","\x67\x65\x74\x43\x68\x69\x6C\x64\x4F\x66\x66\x73\x65\x74\x46\x6F\x72\x43\x65\x6C\x6C","\x75\x70\x64\x61\x74\x65\x46\x69\x78\x65\x64\x54\x65\x72\x6D\x69\x6E\x61\x6C\x50\x6F\x69\x6E\x74\x73","\x75\x70\x64\x61\x74\x65\x50\x6F\x69\x6E\x74\x73","\x75\x70\x64\x61\x74\x65\x46\x6C\x6F\x61\x74\x69\x6E\x67\x54\x65\x72\x6D\x69\x6E\x61\x6C\x50\x6F\x69\x6E\x74\x73","\x75\x70\x64\x61\x74\x65\x45\x64\x67\x65\x42\x6F\x75\x6E\x64\x73","\x75\x70\x64\x61\x74\x65\x45\x64\x67\x65\x4C\x61\x62\x65\x6C\x4F\x66\x66\x73\x65\x74","\x63\x68\x69\x6C\x64\x4D\x6F\x76\x65\x64","\x69\x73\x52\x65\x6E\x64\x65\x72\x69\x6E\x67","\x67\x65\x74\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x43\x6F\x6E\x73\x74\x72\x61\x69\x6E\x74","\x75\x70\x64\x61\x74\x65\x46\x69\x78\x65\x64\x54\x65\x72\x6D\x69\x6E\x61\x6C\x50\x6F\x69\x6E\x74","\x67\x65\x74\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x50\x6F\x69\x6E\x74","\x67\x65\x74\x45\x64\x67\x65\x53\x74\x79\x6C\x65","\x67\x65\x74\x54\x65\x72\x6D\x69\x6E\x61\x6C\x50\x6F\x72\x74","\x64\x65\x66\x61\x75\x6C\x74\x4C\x6F\x6F\x70\x53\x74\x79\x6C\x65","\x53\x54\x59\x4C\x45\x5F\x45\x44\x47\x45","\x69\x73\x41\x6C\x6C\x6F\x77\x45\x76\x61\x6C","\x75\x70\x64\x61\x74\x65\x46\x6C\x6F\x61\x74\x69\x6E\x67\x54\x65\x72\x6D\x69\x6E\x61\x6C\x50\x6F\x69\x6E\x74","\x67\x65\x74\x4E\x65\x78\x74\x50\x6F\x69\x6E\x74","\x69\x73\x4F\x72\x74\x68\x6F\x67\x6F\x6E\x61\x6C","\x53\x54\x59\x4C\x45\x5F\x50\x45\x52\x49\x4D\x45\x54\x45\x52\x5F\x53\x50\x41\x43\x49\x4E\x47","\x53\x54\x59\x4C\x45\x5F\x53\x4F\x55\x52\x43\x45\x5F\x50\x45\x52\x49\x4D\x45\x54\x45\x52\x5F\x53\x50\x41\x43\x49\x4E\x47","\x53\x54\x59\x4C\x45\x5F\x54\x41\x52\x47\x45\x54\x5F\x50\x45\x52\x49\x4D\x45\x54\x45\x52\x5F\x53\x50\x41\x43\x49\x4E\x47","\x67\x65\x74\x50\x65\x72\x69\x6D\x65\x74\x65\x72\x50\x6F\x69\x6E\x74","\x53\x54\x59\x4C\x45\x5F\x53\x4F\x55\x52\x43\x45\x5F\x50\x4F\x52\x54","\x53\x54\x59\x4C\x45\x5F\x54\x41\x52\x47\x45\x54\x5F\x50\x4F\x52\x54","\x67\x65\x74\x50\x65\x72\x69\x6D\x65\x74\x65\x72\x46\x75\x6E\x63\x74\x69\x6F\x6E","\x53\x54\x59\x4C\x45\x5F\x52\x4F\x55\x54\x49\x4E\x47\x5F\x43\x45\x4E\x54\x45\x52\x5F\x58","\x53\x54\x59\x4C\x45\x5F\x52\x4F\x55\x54\x49\x4E\x47\x5F\x43\x45\x4E\x54\x45\x52\x5F\x59","\x67\x65\x74\x52\x65\x6C\x61\x74\x69\x76\x65\x50\x6F\x69\x6E\x74","\x72\x65\x6C\x61\x74\x69\x76\x65\x43\x63\x77","\x73\x65\x74\x52\x65\x6E\x64\x65\x72\x69\x6E\x67","\x73\x65\x74\x41\x6C\x6C\x6F\x77\x45\x76\x61\x6C","\x67\x65\x74\x53\x74\x61\x74\x65\x73","\x67\x65\x74\x43\x65\x6C\x6C\x53\x74\x61\x74\x65\x73","\x69\x73\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72\x45\x76\x65\x6E\x74","\x69\x73\x53\x63\x72\x6F\x6C\x6C\x45\x76\x65\x6E\x74","\x70\x61\x6E\x6E\x69\x6E\x67\x48\x61\x6E\x64\x6C\x65\x72","\x6D\x6F\x76\x65\x48\x61\x6E\x64\x6C\x65\x72","\x65\x6E\x64\x48\x61\x6E\x64\x6C\x65\x72","\x63\x72\x65\x61\x74\x65\x48\x74\x6D\x6C\x50\x61\x6E\x65","\x75\x70\x64\x61\x74\x65\x48\x74\x6D\x6C\x43\x61\x6E\x76\x61\x73\x53\x69\x7A\x65","\x63\x72\x65\x61\x74\x65\x56\x6D\x6C\x50\x61\x6E\x65","\x63\x6F\x6F\x72\x64\x6F\x72\x69\x67\x69\x6E","\x30\x2C\x30","\x73\x74\x61\x74\x69\x63","\x69\x73\x55\x70","\x67\x65\x74\x54\x72\x61\x6E\x73\x6C\x61\x74\x65\x46\x6F\x72\x52\x6F\x6F\x74","\x55\x50","\x44\x4F\x57\x4E","\x6D\x6F\x75\x73\x65\x4C\x69\x73\x74\x65\x6E\x65\x72\x73","\x72\x65\x6E\x64\x65\x72\x48\x69\x6E\x74","\x52\x45\x4E\x44\x45\x52\x49\x4E\x47\x5F\x48\x49\x4E\x54\x5F\x45\x58\x41\x43\x54","\x52\x45\x4E\x44\x45\x52\x49\x4E\x47\x5F\x48\x49\x4E\x54\x5F\x46\x41\x53\x54\x45\x53\x54","\x52\x45\x4E\x44\x45\x52\x49\x4E\x47\x5F\x48\x49\x4E\x54\x5F\x46\x41\x53\x54\x45\x52","\x44\x49\x41\x4C\x45\x43\x54\x5F\x4D\x49\x58\x45\x44\x48\x54\x4D\x4C","\x6D\x75\x6C\x74\x69\x70\x6C\x69\x63\x69\x74\x69\x65\x73","\x69\x6D\x61\x67\x65\x42\x75\x6E\x64\x6C\x65\x73","\x63\x72\x65\x61\x74\x65\x43\x65\x6C\x6C\x52\x65\x6E\x64\x65\x72\x65\x72","\x63\x72\x65\x61\x74\x65\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x4D\x6F\x64\x65\x6C","\x73\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x4D\x6F\x64\x65\x6C","\x63\x72\x65\x61\x74\x65\x53\x74\x79\x6C\x65\x73\x68\x65\x65\x74","\x73\x65\x74\x53\x74\x79\x6C\x65\x73\x68\x65\x65\x74","\x63\x72\x65\x61\x74\x65\x47\x72\x61\x70\x68\x56\x69\x65\x77","\x67\x72\x61\x70\x68\x4D\x6F\x64\x65\x6C\x43\x68\x61\x6E\x67\x65\x4C\x69\x73\x74\x65\x6E\x65\x72","\x63\x72\x65\x61\x74\x65\x48\x61\x6E\x64\x6C\x65\x72\x73","\x2F\x72\x65\x73\x6F\x75\x72\x63\x65\x73\x2F\x67\x72\x61\x70\x68","\x45\x4D\x50\x54\x59\x5F\x41\x52\x52\x41\x59","\x63\x65\x6C\x6C\x45\x64\x69\x74\x6F\x72","\x70\x6F\x72\x74\x73\x45\x6E\x61\x62\x6C\x65\x64","\x64\x6F\x75\x62\x6C\x65\x54\x61\x70\x45\x6E\x61\x62\x6C\x65\x64","\x64\x6F\x75\x62\x6C\x65\x54\x61\x70\x54\x69\x6D\x65\x6F\x75\x74","\x64\x6F\x75\x62\x6C\x65\x54\x61\x70\x54\x6F\x6C\x65\x72\x61\x6E\x63\x65","\x6C\x61\x73\x74\x54\x6F\x75\x63\x68\x59","\x74\x6F\x6C\x65\x72\x61\x6E\x63\x65","\x64\x65\x66\x61\x75\x6C\x74\x4F\x76\x65\x72\x6C\x61\x70","\x64\x65\x66\x61\x75\x6C\x74\x50\x61\x72\x65\x6E\x74","\x61\x6C\x74\x65\x72\x6E\x61\x74\x65\x45\x64\x67\x65\x53\x74\x79\x6C\x65","\x70\x61\x67\x65\x42\x72\x65\x61\x6B\x73\x56\x69\x73\x69\x62\x6C\x65","\x70\x61\x67\x65\x42\x72\x65\x61\x6B\x43\x6F\x6C\x6F\x72","\x70\x61\x67\x65\x42\x72\x65\x61\x6B\x44\x61\x73\x68\x65\x64","\x6D\x69\x6E\x50\x61\x67\x65\x42\x72\x65\x61\x6B\x44\x69\x73\x74","\x70\x72\x65\x66\x65\x72\x50\x61\x67\x65\x53\x69\x7A\x65","\x65\x73\x63\x61\x70\x65\x45\x6E\x61\x62\x6C\x65\x64","\x69\x6E\x76\x6F\x6B\x65\x73\x53\x74\x6F\x70\x43\x65\x6C\x6C\x45\x64\x69\x74\x69\x6E\x67","\x65\x6E\x74\x65\x72\x53\x74\x6F\x70\x73\x43\x65\x6C\x6C\x45\x64\x69\x74\x69\x6E\x67","\x75\x73\x65\x53\x63\x72\x6F\x6C\x6C\x62\x61\x72\x73\x46\x6F\x72\x50\x61\x6E\x6E\x69\x6E\x67","\x65\x78\x70\x6F\x72\x74\x45\x6E\x61\x62\x6C\x65\x64","\x69\x6D\x70\x6F\x72\x74\x45\x6E\x61\x62\x6C\x65\x64","\x63\x65\x6C\x6C\x73\x4C\x6F\x63\x6B\x65\x64","\x63\x65\x6C\x6C\x73\x43\x6C\x6F\x6E\x65\x61\x62\x6C\x65","\x63\x65\x6C\x6C\x73\x45\x64\x69\x74\x61\x62\x6C\x65","\x63\x65\x6C\x6C\x73\x44\x65\x6C\x65\x74\x61\x62\x6C\x65","\x63\x65\x6C\x6C\x73\x4D\x6F\x76\x61\x62\x6C\x65","\x65\x64\x67\x65\x4C\x61\x62\x65\x6C\x73\x4D\x6F\x76\x61\x62\x6C\x65","\x76\x65\x72\x74\x65\x78\x4C\x61\x62\x65\x6C\x73\x4D\x6F\x76\x61\x62\x6C\x65","\x64\x72\x6F\x70\x45\x6E\x61\x62\x6C\x65\x64","\x73\x70\x6C\x69\x74\x45\x6E\x61\x62\x6C\x65\x64","\x63\x65\x6C\x6C\x73\x52\x65\x73\x69\x7A\x61\x62\x6C\x65","\x63\x65\x6C\x6C\x73\x42\x65\x6E\x64\x61\x62\x6C\x65","\x63\x65\x6C\x6C\x73\x53\x65\x6C\x65\x63\x74\x61\x62\x6C\x65","\x63\x65\x6C\x6C\x73\x44\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74\x61\x62\x6C\x65","\x61\x75\x74\x6F\x53\x69\x7A\x65\x43\x65\x6C\x6C\x73","\x74\x69\x6D\x65\x72\x41\x75\x74\x6F\x53\x63\x72\x6F\x6C\x6C","\x61\x6C\x6C\x6F\x77\x41\x75\x74\x6F\x50\x61\x6E\x6E\x69\x6E\x67","\x69\x67\x6E\x6F\x72\x65\x53\x63\x72\x6F\x6C\x6C\x62\x61\x72\x73","\x6D\x61\x78\x69\x6D\x75\x6D\x47\x72\x61\x70\x68\x42\x6F\x75\x6E\x64\x73","\x6D\x69\x6E\x69\x6D\x75\x6D\x47\x72\x61\x70\x68\x53\x69\x7A\x65","\x6D\x69\x6E\x69\x6D\x75\x6D\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72\x53\x69\x7A\x65","\x6D\x61\x78\x69\x6D\x75\x6D\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72\x53\x69\x7A\x65","\x72\x65\x73\x69\x7A\x65\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x61\x6C\x6C\x6F\x77\x4E\x65\x67\x61\x74\x69\x76\x65\x43\x6F\x6F\x72\x64\x69\x6E\x61\x74\x65\x73","\x63\x6F\x6E\x73\x74\x72\x61\x69\x6E\x43\x68\x69\x6C\x64\x72\x65\x6E","\x65\x78\x74\x65\x6E\x64\x50\x61\x72\x65\x6E\x74\x73","\x65\x78\x74\x65\x6E\x64\x50\x61\x72\x65\x6E\x74\x73\x4F\x6E\x41\x64\x64","\x63\x6F\x6C\x6C\x61\x70\x73\x65\x54\x6F\x50\x72\x65\x66\x65\x72\x72\x65\x64\x53\x69\x7A\x65","\x7A\x6F\x6F\x6D\x46\x61\x63\x74\x6F\x72","\x6B\x65\x65\x70\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x56\x69\x73\x69\x62\x6C\x65\x4F\x6E\x5A\x6F\x6F\x6D","\x63\x65\x6E\x74\x65\x72\x5A\x6F\x6F\x6D","\x72\x65\x73\x65\x74\x56\x69\x65\x77\x4F\x6E\x52\x6F\x6F\x74\x43\x68\x61\x6E\x67\x65","\x72\x65\x73\x65\x74\x45\x64\x67\x65\x73\x4F\x6E\x52\x65\x73\x69\x7A\x65","\x72\x65\x73\x65\x74\x45\x64\x67\x65\x73\x4F\x6E\x4D\x6F\x76\x65","\x72\x65\x73\x65\x74\x45\x64\x67\x65\x73\x4F\x6E\x43\x6F\x6E\x6E\x65\x63\x74","\x61\x6C\x6C\x6F\x77\x4C\x6F\x6F\x70\x73","\x4C\x6F\x6F\x70","\x6D\x75\x6C\x74\x69\x67\x72\x61\x70\x68","\x63\x6F\x6E\x6E\x65\x63\x74\x61\x62\x6C\x65\x45\x64\x67\x65\x73","\x61\x6C\x6C\x6F\x77\x44\x61\x6E\x67\x6C\x69\x6E\x67\x45\x64\x67\x65\x73","\x63\x6C\x6F\x6E\x65\x49\x6E\x76\x61\x6C\x69\x64\x45\x64\x67\x65\x73","\x64\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74\x4F\x6E\x4D\x6F\x76\x65","\x6C\x61\x62\x65\x6C\x73\x56\x69\x73\x69\x62\x6C\x65","\x68\x74\x6D\x6C\x4C\x61\x62\x65\x6C\x73","\x73\x77\x69\x6D\x6C\x61\x6E\x65\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x45\x6E\x61\x62\x6C\x65\x64","\x73\x77\x69\x6D\x6C\x61\x6E\x65\x4E\x65\x73\x74\x69\x6E\x67","\x6D\x69\x6E\x46\x69\x74\x53\x63\x61\x6C\x65","\x6D\x61\x78\x46\x69\x74\x53\x63\x61\x6C\x65","\x63\x6F\x6C\x6C\x61\x70\x73\x65\x64\x49\x6D\x61\x67\x65","\x2F\x63\x6F\x6C\x6C\x61\x70\x73\x65\x64\x2E\x67\x69\x66","\x65\x78\x70\x61\x6E\x64\x65\x64\x49\x6D\x61\x67\x65","\x2F\x65\x78\x70\x61\x6E\x64\x65\x64\x2E\x67\x69\x66","\x77\x61\x72\x6E\x69\x6E\x67\x49\x6D\x61\x67\x65","\x2F\x61\x73\x73\x65\x74\x73\x2F\x70\x6C\x75\x67\x69\x6E\x73\x2F\x6D\x78\x67\x72\x61\x70\x68\x2F\x69\x6D\x61\x67\x65\x73\x2F\x77\x61\x72\x6E\x69\x6E\x67\x2E\x67\x69\x66","\x61\x6C\x72\x65\x61\x64\x79\x43\x6F\x6E\x6E\x65\x63\x74\x65\x64\x52\x65\x73\x6F\x75\x72\x63\x65","\x61\x6C\x72\x65\x61\x64\x79\x43\x6F\x6E\x6E\x65\x63\x74\x65\x64","\x63\x6F\x6E\x74\x61\x69\x6E\x73\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E\x45\x72\x72\x6F\x72\x73\x52\x65\x73\x6F\x75\x72\x63\x65","\x63\x6F\x6E\x74\x61\x69\x6E\x73\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E\x45\x72\x72\x6F\x72\x73","\x63\x6F\x6C\x6C\x61\x70\x73\x65\x45\x78\x70\x61\x6E\x64\x52\x65\x73\x6F\x75\x72\x63\x65","\x63\x6F\x6C\x6C\x61\x70\x73\x65\x2D\x65\x78\x70\x61\x6E\x64","\x63\x72\x65\x61\x74\x65\x43\x65\x6C\x6C\x45\x64\x69\x74\x6F\x72","\x75\x6E\x6C\x6F\x61\x64","\x73\x65\x6C\x65\x63\x74\x73\x74\x61\x72\x74","\x3C\x76\x3A\x67\x72\x6F\x75\x70\x20\x73\x74\x79\x6C\x65\x3D\x22\x44\x49\x53\x50\x4C\x41\x59\x3A\x20\x6E\x6F\x6E\x65\x3B\x22\x3E\x3C\x2F\x76\x3A\x67\x72\x6F\x75\x70\x3E","\x70\x61\x6E\x6E\x69\x6E\x67\x45\x6E\x61\x62\x6C\x65\x64","\x73\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C\x73\x48\x61\x6E\x64\x6C\x65\x72","\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x48\x61\x6E\x64\x6C\x65\x72","\x67\x65\x74\x53\x74\x79\x6C\x65\x73\x68\x65\x65\x74","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x4D\x6F\x64\x65\x6C","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C\x73\x46\x6F\x72\x43\x68\x61\x6E\x67\x65\x73","\x70\x72\x6F\x63\x65\x73\x73\x43\x68\x61\x6E\x67\x65","\x67\x65\x74\x52\x65\x6D\x6F\x76\x65\x64\x43\x65\x6C\x6C\x73\x46\x6F\x72\x43\x68\x61\x6E\x67\x65\x73","\x72\x65\x6D\x6F\x76\x65\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C\x73","\x63\x6C\x65\x61\x72\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E","\x72\x65\x6D\x6F\x76\x65\x53\x74\x61\x74\x65\x46\x6F\x72\x43\x65\x6C\x6C","\x68\x6F\x6D\x65","\x61\x64\x64\x43\x65\x6C\x6C\x4F\x76\x65\x72\x6C\x61\x79","\x72\x65\x6D\x6F\x76\x65\x43\x65\x6C\x6C\x4F\x76\x65\x72\x6C\x61\x79","\x72\x65\x6D\x6F\x76\x65\x43\x65\x6C\x6C\x4F\x76\x65\x72\x6C\x61\x79\x73","\x63\x6C\x65\x61\x72\x43\x65\x6C\x6C\x4F\x76\x65\x72\x6C\x61\x79\x73","\x73\x65\x74\x43\x65\x6C\x6C\x57\x61\x72\x6E\x69\x6E\x67","\x3C\x66\x6F\x6E\x74\x20\x63\x6F\x6C\x6F\x72\x3D\x72\x65\x64\x3E","\x3C\x2F\x66\x6F\x6E\x74\x3E","\x73\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C","\x73\x74\x61\x72\x74\x45\x64\x69\x74\x69\x6E\x67\x41\x74\x43\x65\x6C\x6C","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C","\x69\x73\x43\x65\x6C\x6C\x45\x64\x69\x74\x61\x62\x6C\x65","\x63\x6F\x6E\x76\x65\x72\x74\x56\x61\x6C\x75\x65\x54\x6F\x53\x74\x72\x69\x6E\x67","\x69\x73\x41\x75\x74\x6F\x53\x69\x7A\x65\x43\x65\x6C\x6C","\x63\x65\x6C\x6C\x4C\x61\x62\x65\x6C\x43\x68\x61\x6E\x67\x65\x64","\x63\x65\x6C\x6C\x53\x69\x7A\x65\x55\x70\x64\x61\x74\x65\x64","\x68\x61\x6E\x64\x6C\x65\x72","\x73\x65\x6C\x65\x63\x74\x43\x65\x6C\x6C\x46\x6F\x72\x45\x76\x65\x6E\x74","\x69\x73\x53\x77\x69\x6D\x6C\x61\x6E\x65\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x45\x6E\x61\x62\x6C\x65\x64","\x67\x65\x74\x53\x77\x69\x6D\x6C\x61\x6E\x65\x41\x74","\x69\x73\x54\x6F\x67\x67\x6C\x65\x45\x76\x65\x6E\x74","\x70\x61\x6E\x6E\x69\x6E\x67\x4D\x61\x6E\x61\x67\x65\x72","\x63\x72\x65\x61\x74\x65\x50\x61\x6E\x6E\x69\x6E\x67\x4D\x61\x6E\x61\x67\x65\x72","\x67\x65\x74\x42\x6F\x72\x64\x65\x72\x53\x69\x7A\x65\x73","\x74\x68\x69\x6E","\x6D\x65\x64\x69\x75\x6D","\x74\x68\x69\x63\x6B","\x62\x6F\x72\x64\x65\x72\x4C\x65\x66\x74\x57\x69\x64\x74\x68","\x62\x6F\x72\x64\x65\x72\x54\x6F\x70\x57\x69\x64\x74\x68","\x70\x61\x64\x64\x69\x6E\x67\x54\x6F\x70","\x62\x6F\x72\x64\x65\x72\x52\x69\x67\x68\x74\x57\x69\x64\x74\x68","\x62\x6F\x72\x64\x65\x72\x42\x6F\x74\x74\x6F\x6D\x57\x69\x64\x74\x68","\x70\x61\x64\x64\x69\x6E\x67\x42\x6F\x74\x74\x6F\x6D","\x67\x65\x74\x50\x72\x65\x66\x65\x72\x72\x65\x64\x50\x61\x67\x65\x53\x69\x7A\x65","\x67\x65\x74\x42\x6F\x72\x64\x65\x72","\x64\x6F\x52\x65\x73\x69\x7A\x65\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x6D\x69\x6E\x57\x69\x64\x74\x68","\x6D\x69\x6E\x48\x65\x69\x67\x68\x74","\x75\x70\x64\x61\x74\x65\x50\x61\x67\x65\x42\x72\x65\x61\x6B\x73","\x68\x6F\x72\x69\x7A\x6F\x6E\x74\x61\x6C\x50\x61\x67\x65\x42\x72\x65\x61\x6B\x73","\x76\x65\x72\x74\x69\x63\x61\x6C\x50\x61\x67\x65\x42\x72\x65\x61\x6B\x73","\x70\x6F\x73\x74\x50\x72\x6F\x63\x65\x73\x73\x43\x65\x6C\x6C\x53\x74\x79\x6C\x65","\x53\x54\x59\x4C\x45\x5F\x49\x4D\x41\x47\x45","\x67\x65\x74\x49\x6D\x61\x67\x65\x46\x72\x6F\x6D\x42\x75\x6E\x64\x6C\x65\x73","\x64\x61\x74\x61\x3A\x69\x6D\x61\x67\x65\x2F","\x3B\x62\x61\x73\x65\x36\x34\x2C","\x73\x65\x74\x43\x65\x6C\x6C\x53\x74\x79\x6C\x65","\x74\x6F\x67\x67\x6C\x65\x43\x65\x6C\x6C\x53\x74\x79\x6C\x65","\x74\x6F\x67\x67\x6C\x65\x43\x65\x6C\x6C\x53\x74\x79\x6C\x65\x73","\x74\x6F\x67\x67\x6C\x65\x43\x65\x6C\x6C\x53\x74\x79\x6C\x65\x46\x6C\x61\x67\x73","\x73\x65\x74\x43\x65\x6C\x6C\x53\x74\x79\x6C\x65\x46\x6C\x61\x67\x73","\x61\x64\x64\x49\x6D\x61\x67\x65\x42\x75\x6E\x64\x6C\x65","\x72\x65\x6D\x6F\x76\x65\x49\x6D\x61\x67\x65\x42\x75\x6E\x64\x6C\x65","\x62\x61\x63\x6B","\x67\x65\x74\x43\x65\x6C\x6C\x73\x46\x6F\x72\x47\x72\x6F\x75\x70","\x63\x72\x65\x61\x74\x65\x47\x72\x6F\x75\x70\x43\x65\x6C\x6C","\x67\x65\x74\x42\x6F\x75\x6E\x64\x73\x46\x6F\x72\x47\x72\x6F\x75\x70","\x61\x64\x64\x41\x6C\x6C\x45\x64\x67\x65\x73","\x67\x65\x74\x45\x64\x67\x65\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E\x45\x72\x72\x6F\x72","\x69\x6E\x73\x65\x72\x74\x56\x65\x72\x74\x65\x78","\x63\x72\x65\x61\x74\x65\x56\x65\x72\x74\x65\x78","\x63\x72\x65\x61\x74\x65\x45\x64\x67\x65","\x61\x64\x64\x45\x64\x67\x65","\x69\x73\x41\x6C\x6C\x6F\x77\x4E\x65\x67\x61\x74\x69\x76\x65\x43\x6F\x6F\x72\x64\x69\x6E\x61\x74\x65\x73","\x69\x73\x45\x78\x74\x65\x6E\x64\x50\x61\x72\x65\x6E\x74\x73\x4F\x6E\x41\x64\x64","\x69\x73\x45\x78\x74\x65\x6E\x64\x50\x61\x72\x65\x6E\x74","\x65\x78\x74\x65\x6E\x64\x50\x61\x72\x65\x6E\x74","\x63\x6F\x6E\x73\x74\x72\x61\x69\x6E\x43\x68\x69\x6C\x64","\x67\x65\x74\x44\x65\x6C\x65\x74\x61\x62\x6C\x65\x43\x65\x6C\x6C\x73","\x69\x6E\x63\x6C\x75\x64\x65\x45\x64\x67\x65\x73","\x6E\x65\x77\x45\x64\x67\x65","\x67\x65\x74\x46\x6F\x6C\x64\x61\x62\x6C\x65\x43\x65\x6C\x6C\x73","\x63\x6F\x6C\x6C\x61\x70\x73\x65","\x72\x65\x63\x75\x72\x73\x65","\x69\x73\x43\x65\x6C\x6C\x46\x6F\x6C\x64\x61\x62\x6C\x65","\x73\x77\x61\x70\x42\x6F\x75\x6E\x64\x73","\x75\x70\x64\x61\x74\x65\x41\x6C\x74\x65\x72\x6E\x61\x74\x65\x42\x6F\x75\x6E\x64\x73","\x67\x65\x74\x50\x72\x65\x66\x65\x72\x72\x65\x64\x53\x69\x7A\x65\x46\x6F\x72\x43\x65\x6C\x6C","\x67\x65\x74\x41\x6C\x6C\x45\x64\x67\x65\x73","\x69\x67\x6E\x6F\x72\x65\x43\x68\x69\x6C\x64\x72\x65\x6E","\x53\x48\x41\x50\x45\x5F\x4C\x41\x42\x45\x4C","\x53\x54\x59\x4C\x45\x5F\x49\x4D\x41\x47\x45\x5F\x57\x49\x44\x54\x48","\x53\x54\x59\x4C\x45\x5F\x49\x4D\x41\x47\x45\x5F\x48\x45\x49\x47\x48\x54","\x67\x65\x74\x53\x69\x7A\x65\x46\x6F\x72\x53\x74\x72\x69\x6E\x67","\x72\x65\x73\x69\x7A\x65\x43\x65\x6C\x6C","\x69\x73\x43\x6C\x6F\x6E\x65\x49\x6E\x76\x61\x6C\x69\x64\x45\x64\x67\x65\x73","\x73\x65\x74\x41\x6C\x6C\x6F\x77\x4E\x65\x67\x61\x74\x69\x76\x65\x43\x6F\x6F\x72\x64\x69\x6E\x61\x74\x65\x73","\x69\x73\x44\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74\x4F\x6E\x4D\x6F\x76\x65","\x69\x73\x41\x6C\x6C\x6F\x77\x44\x61\x6E\x67\x6C\x69\x6E\x67\x45\x64\x67\x65\x73","\x64\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74\x47\x72\x61\x70\x68","\x74\x72\x61\x6E\x73\x6C\x61\x74\x65\x43\x65\x6C\x6C","\x67\x65\x74\x43\x65\x6C\x6C\x43\x6F\x6E\x74\x61\x69\x6E\x6D\x65\x6E\x74\x41\x72\x65\x61","\x67\x65\x74\x43\x75\x72\x72\x65\x6E\x74\x52\x6F\x6F\x74","\x67\x65\x74\x4D\x61\x78\x69\x6D\x75\x6D\x47\x72\x61\x70\x68\x42\x6F\x75\x6E\x64\x73","\x69\x73\x43\x6F\x6E\x73\x74\x72\x61\x69\x6E\x43\x68\x69\x6C\x64","\x67\x65\x74\x4F\x76\x65\x72\x6C\x61\x70","\x67\x65\x74\x41\x6C\x6C\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x43\x6F\x6E\x73\x74\x72\x61\x69\x6E\x74\x73","\x53\x54\x59\x4C\x45\x5F\x45\x58\x49\x54\x5F\x58","\x53\x54\x59\x4C\x45\x5F\x45\x4E\x54\x52\x59\x5F\x58","\x53\x54\x59\x4C\x45\x5F\x45\x58\x49\x54\x5F\x59","\x53\x54\x59\x4C\x45\x5F\x45\x4E\x54\x52\x59\x5F\x59","\x53\x54\x59\x4C\x45\x5F\x45\x58\x49\x54\x5F\x50\x45\x52\x49\x4D\x45\x54\x45\x52","\x53\x54\x59\x4C\x45\x5F\x45\x4E\x54\x52\x59\x5F\x50\x45\x52\x49\x4D\x45\x54\x45\x52","\x73\x65\x74\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x43\x6F\x6E\x73\x74\x72\x61\x69\x6E\x74","\x70\x6F\x69\x6E\x74","\x53\x54\x59\x4C\x45\x5F\x46\x4C\x49\x50\x48","\x53\x54\x59\x4C\x45\x5F\x46\x4C\x49\x50\x56","\x69\x73\x50\x6F\x72\x74\x73\x45\x6E\x61\x62\x6C\x65\x64","\x67\x65\x74\x54\x65\x72\x6D\x69\x6E\x61\x6C\x46\x6F\x72\x50\x6F\x72\x74","\x69\x73\x43\x65\x6C\x6C\x44\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74\x61\x62\x6C\x65","\x65\x6E\x74\x65\x72\x47\x72\x6F\x75\x70","\x69\x73\x56\x61\x6C\x69\x64\x52\x6F\x6F\x74","\x65\x78\x69\x74\x47\x72\x6F\x75\x70","\x67\x65\x74\x43\x65\x6C\x6C\x42\x6F\x75\x6E\x64\x73","\x73\x68\x69\x66\x74\x50\x72\x65\x76\x69\x65\x77\x31","\x73\x68\x69\x66\x74\x50\x72\x65\x76\x69\x65\x77\x32","\x7A\x6F\x6F\x6D\x49\x6E","\x7A\x6F\x6F\x6D\x4F\x75\x74","\x7A\x6F\x6F\x6D\x41\x63\x74\x75\x61\x6C","\x7A\x6F\x6F\x6D\x54\x6F","\x73\x63\x72\x6F\x6C\x6C\x52\x65\x63\x74\x54\x6F\x56\x69\x73\x69\x62\x6C\x65","\x7A\x6F\x6F\x6D\x54\x6F\x52\x65\x63\x74","\x73\x63\x72\x6F\x6C\x6C\x43\x65\x6C\x6C\x54\x6F\x56\x69\x73\x69\x62\x6C\x65","\x69\x73\x43\x65\x6C\x6C\x43\x6F\x6E\x6E\x65\x63\x74\x61\x62\x6C\x65","\x53\x54\x59\x4C\x45\x5F\x4F\x52\x54\x48\x4F\x47\x4F\x4E\x41\x4C","\x53\x65\x67\x6D\x65\x6E\x74\x43\x6F\x6E\x6E\x65\x63\x74\x6F\x72","\x45\x6C\x62\x6F\x77\x43\x6F\x6E\x6E\x65\x63\x74\x6F\x72","\x53\x69\x64\x65\x54\x6F\x53\x69\x64\x65","\x54\x6F\x70\x54\x6F\x42\x6F\x74\x74\x6F\x6D","\x45\x6E\x74\x69\x74\x79\x52\x65\x6C\x61\x74\x69\x6F\x6E","\x4F\x72\x74\x68\x43\x6F\x6E\x6E\x65\x63\x74\x6F\x72","\x69\x73\x4C\x6F\x6F\x70","\x69\x73\x43\x6C\x6F\x6E\x65\x45\x76\x65\x6E\x74","\x49\x53\x5F\x4D\x41\x43","\x69\x73\x4D\x65\x74\x61\x44\x6F\x77\x6E","\x69\x73\x41\x6C\x74\x44\x6F\x77\x6E","\x69\x73\x43\x6F\x6E\x73\x74\x72\x61\x69\x6E\x65\x64\x45\x76\x65\x6E\x74","\x69\x73\x46\x6F\x72\x63\x65\x4D\x61\x72\x71\x75\x65\x65\x45\x76\x65\x6E\x74","\x76\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E\x41\x6C\x65\x72\x74","\x69\x73\x45\x64\x67\x65\x56\x61\x6C\x69\x64","\x69\x73\x56\x61\x6C\x69\x64\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E","\x63\x68\x65\x63\x6B","\x76\x61\x6C\x69\x64\x61\x74\x65\x45\x64\x67\x65","\x76\x61\x6C\x69\x64\x61\x74\x65\x47\x72\x61\x70\x68","\x67\x65\x74\x43\x65\x6C\x6C\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E\x45\x72\x72\x6F\x72","\x76\x61\x6C\x69\x64\x61\x74\x65\x43\x65\x6C\x6C","\x61\x74\x74\x72","\x63\x6F\x75\x6E\x74\x45\x72\x72\x6F\x72","\x73\x65\x74\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x49\x6D\x61\x67\x65","\x74\x6F\x53\x74\x72\x69\x6E\x67","\x69\x73\x48\x74\x6D\x6C\x4C\x61\x62\x65\x6C\x73","\x73\x65\x74\x48\x74\x6D\x6C\x4C\x61\x62\x65\x6C\x73","\x53\x54\x59\x4C\x45\x5F\x57\x48\x49\x54\x45\x5F\x53\x50\x41\x43\x45","\x67\x65\x74\x54\x6F\x6F\x6C\x74\x69\x70","\x67\x65\x74\x48\x61\x6E\x64\x6C\x65\x72","\x67\x65\x74\x54\x6F\x6F\x6C\x74\x69\x70\x46\x6F\x72\x4E\x6F\x64\x65","\x67\x65\x74\x54\x6F\x6F\x6C\x74\x69\x70\x46\x6F\x72\x43\x65\x6C\x6C","\x67\x65\x74\x43\x75\x72\x73\x6F\x72\x46\x6F\x72\x43\x65\x6C\x6C","\x53\x54\x59\x4C\x45\x5F\x49\x4E\x44\x49\x43\x41\x54\x4F\x52\x5F\x43\x4F\x4C\x4F\x52","\x53\x54\x59\x4C\x45\x5F\x49\x4E\x44\x49\x43\x41\x54\x4F\x52\x5F\x47\x52\x41\x44\x49\x45\x4E\x54\x43\x4F\x4C\x4F\x52","\x53\x54\x59\x4C\x45\x5F\x49\x4E\x44\x49\x43\x41\x54\x4F\x52\x5F\x53\x48\x41\x50\x45","\x53\x54\x59\x4C\x45\x5F\x49\x4E\x44\x49\x43\x41\x54\x4F\x52\x5F\x49\x4D\x41\x47\x45","\x73\x65\x74\x42\x6F\x72\x64\x65\x72","\x53\x48\x41\x50\x45\x5F\x53\x57\x49\x4D\x4C\x41\x4E\x45","\x69\x73\x52\x65\x73\x69\x7A\x65\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x73\x65\x74\x52\x65\x73\x69\x7A\x65\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x69\x73\x45\x73\x63\x61\x70\x65\x45\x6E\x61\x62\x6C\x65\x64","\x73\x65\x74\x45\x73\x63\x61\x70\x65\x45\x6E\x61\x62\x6C\x65\x64","\x73\x65\x74\x49\x6E\x76\x6F\x6B\x65\x73\x53\x74\x6F\x70\x43\x65\x6C\x6C\x45\x64\x69\x74\x69\x6E\x67","\x73\x65\x74\x45\x6E\x74\x65\x72\x53\x74\x6F\x70\x73\x43\x65\x6C\x6C\x45\x64\x69\x74\x69\x6E\x67","\x69\x73\x43\x65\x6C\x6C\x4C\x6F\x63\x6B\x65\x64","\x69\x73\x43\x65\x6C\x6C\x73\x4C\x6F\x63\x6B\x65\x64","\x73\x65\x74\x43\x65\x6C\x6C\x73\x4C\x6F\x63\x6B\x65\x64","\x67\x65\x74\x43\x6C\x6F\x6E\x65\x61\x62\x6C\x65\x43\x65\x6C\x6C\x73","\x69\x73\x43\x65\x6C\x6C\x43\x6C\x6F\x6E\x65\x61\x62\x6C\x65","\x69\x73\x43\x65\x6C\x6C\x73\x43\x6C\x6F\x6E\x65\x61\x62\x6C\x65","\x53\x54\x59\x4C\x45\x5F\x43\x4C\x4F\x4E\x45\x41\x42\x4C\x45","\x73\x65\x74\x43\x65\x6C\x6C\x73\x43\x6C\x6F\x6E\x65\x61\x62\x6C\x65","\x63\x61\x6E\x45\x78\x70\x6F\x72\x74\x43\x65\x6C\x6C","\x63\x61\x6E\x49\x6D\x70\x6F\x72\x74\x43\x65\x6C\x6C","\x69\x73\x43\x65\x6C\x6C\x73\x53\x65\x6C\x65\x63\x74\x61\x62\x6C\x65","\x73\x65\x74\x43\x65\x6C\x6C\x73\x53\x65\x6C\x65\x63\x74\x61\x62\x6C\x65","\x69\x73\x43\x65\x6C\x6C\x44\x65\x6C\x65\x74\x61\x62\x6C\x65","\x69\x73\x43\x65\x6C\x6C\x73\x44\x65\x6C\x65\x74\x61\x62\x6C\x65","\x53\x54\x59\x4C\x45\x5F\x44\x45\x4C\x45\x54\x41\x42\x4C\x45","\x73\x65\x74\x43\x65\x6C\x6C\x73\x44\x65\x6C\x65\x74\x61\x62\x6C\x65","\x69\x73\x4C\x61\x62\x65\x6C\x4D\x6F\x76\x61\x62\x6C\x65","\x67\x65\x74\x4D\x6F\x76\x61\x62\x6C\x65\x43\x65\x6C\x6C\x73","\x69\x73\x43\x65\x6C\x6C\x73\x4D\x6F\x76\x61\x62\x6C\x65","\x53\x54\x59\x4C\x45\x5F\x4D\x4F\x56\x41\x42\x4C\x45","\x73\x65\x74\x43\x65\x6C\x6C\x73\x4D\x6F\x76\x61\x62\x6C\x65","\x73\x65\x74\x50\x6F\x72\x74\x73\x45\x6E\x61\x62\x6C\x65\x64","\x67\x65\x74\x47\x72\x69\x64\x53\x69\x7A\x65","\x73\x65\x74\x47\x72\x69\x64\x53\x69\x7A\x65","\x67\x65\x74\x54\x6F\x6C\x65\x72\x61\x6E\x63\x65","\x73\x65\x74\x54\x6F\x6C\x65\x72\x61\x6E\x63\x65","\x69\x73\x56\x65\x72\x74\x65\x78\x4C\x61\x62\x65\x6C\x73\x4D\x6F\x76\x61\x62\x6C\x65","\x73\x65\x74\x56\x65\x72\x74\x65\x78\x4C\x61\x62\x65\x6C\x73\x4D\x6F\x76\x61\x62\x6C\x65","\x69\x73\x45\x64\x67\x65\x4C\x61\x62\x65\x6C\x73\x4D\x6F\x76\x61\x62\x6C\x65","\x73\x65\x74\x45\x64\x67\x65\x4C\x61\x62\x65\x6C\x73\x4D\x6F\x76\x61\x62\x6C\x65","\x69\x73\x53\x77\x69\x6D\x6C\x61\x6E\x65\x4E\x65\x73\x74\x69\x6E\x67","\x73\x65\x74\x53\x77\x69\x6D\x6C\x61\x6E\x65\x4E\x65\x73\x74\x69\x6E\x67","\x73\x65\x74\x53\x77\x69\x6D\x6C\x61\x6E\x65\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x45\x6E\x61\x62\x6C\x65\x64","\x69\x73\x4D\x75\x6C\x74\x69\x67\x72\x61\x70\x68","\x73\x65\x74\x4D\x75\x6C\x74\x69\x67\x72\x61\x70\x68","\x69\x73\x41\x6C\x6C\x6F\x77\x4C\x6F\x6F\x70\x73","\x73\x65\x74\x41\x6C\x6C\x6F\x77\x44\x61\x6E\x67\x6C\x69\x6E\x67\x45\x64\x67\x65\x73","\x73\x65\x74\x43\x6F\x6E\x6E\x65\x63\x74\x61\x62\x6C\x65\x45\x64\x67\x65\x73","\x69\x73\x43\x6F\x6E\x6E\x65\x63\x74\x61\x62\x6C\x65\x45\x64\x67\x65\x73","\x73\x65\x74\x43\x6C\x6F\x6E\x65\x49\x6E\x76\x61\x6C\x69\x64\x45\x64\x67\x65\x73","\x73\x65\x74\x41\x6C\x6C\x6F\x77\x4C\x6F\x6F\x70\x73","\x73\x65\x74\x44\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74\x4F\x6E\x4D\x6F\x76\x65","\x73\x65\x74\x44\x72\x6F\x70\x45\x6E\x61\x62\x6C\x65\x64","\x69\x73\x53\x70\x6C\x69\x74\x45\x6E\x61\x62\x6C\x65\x64","\x73\x65\x74\x53\x70\x6C\x69\x74\x45\x6E\x61\x62\x6C\x65\x64","\x69\x73\x43\x65\x6C\x6C\x52\x65\x73\x69\x7A\x61\x62\x6C\x65","\x69\x73\x43\x65\x6C\x6C\x73\x52\x65\x73\x69\x7A\x61\x62\x6C\x65","\x53\x54\x59\x4C\x45\x5F\x52\x45\x53\x49\x5A\x41\x42\x4C\x45","\x73\x65\x74\x43\x65\x6C\x6C\x73\x52\x65\x73\x69\x7A\x61\x62\x6C\x65","\x69\x73\x54\x65\x72\x6D\x69\x6E\x61\x6C\x50\x6F\x69\x6E\x74\x4D\x6F\x76\x61\x62\x6C\x65","\x69\x73\x43\x65\x6C\x6C\x42\x65\x6E\x64\x61\x62\x6C\x65","\x69\x73\x43\x65\x6C\x6C\x73\x42\x65\x6E\x64\x61\x62\x6C\x65","\x53\x54\x59\x4C\x45\x5F\x42\x45\x4E\x44\x41\x42\x4C\x45","\x73\x65\x74\x43\x65\x6C\x6C\x73\x42\x65\x6E\x64\x61\x62\x6C\x65","\x69\x73\x43\x65\x6C\x6C\x73\x45\x64\x69\x74\x61\x62\x6C\x65","\x53\x54\x59\x4C\x45\x5F\x45\x44\x49\x54\x41\x42\x4C\x45","\x73\x65\x74\x43\x65\x6C\x6C\x73\x45\x64\x69\x74\x61\x62\x6C\x65","\x69\x73\x43\x65\x6C\x6C\x73\x44\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74\x61\x62\x6C\x65","\x73\x65\x74\x43\x65\x6C\x6C\x73\x44\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74\x61\x62\x6C\x65","\x69\x73\x56\x61\x6C\x69\x64\x53\x6F\x75\x72\x63\x65","\x69\x73\x56\x61\x6C\x69\x64\x54\x61\x72\x67\x65\x74","\x73\x65\x74\x54\x6F\x6F\x6C\x74\x69\x70\x73","\x73\x65\x74\x50\x61\x6E\x6E\x69\x6E\x67","\x69\x73\x41\x75\x74\x6F\x53\x69\x7A\x65\x43\x65\x6C\x6C\x73","\x53\x54\x59\x4C\x45\x5F\x41\x55\x54\x4F\x53\x49\x5A\x45","\x73\x65\x74\x41\x75\x74\x6F\x53\x69\x7A\x65\x43\x65\x6C\x6C\x73","\x69\x73\x45\x78\x74\x65\x6E\x64\x50\x61\x72\x65\x6E\x74\x73","\x73\x65\x74\x45\x78\x74\x65\x6E\x64\x50\x61\x72\x65\x6E\x74\x73","\x73\x65\x74\x45\x78\x74\x65\x6E\x64\x50\x61\x72\x65\x6E\x74\x73\x4F\x6E\x41\x64\x64","\x69\x73\x43\x6F\x6E\x73\x74\x72\x61\x69\x6E\x43\x68\x69\x6C\x64\x72\x65\x6E","\x73\x65\x74\x43\x6F\x6E\x73\x74\x72\x61\x69\x6E\x43\x68\x69\x6C\x64\x72\x65\x6E","\x69\x73\x41\x6C\x6C\x6F\x77\x4F\x76\x65\x72\x6C\x61\x70\x50\x61\x72\x65\x6E\x74","\x53\x54\x59\x4C\x45\x5F\x46\x4F\x4C\x44\x41\x42\x4C\x45","\x69\x73\x56\x61\x6C\x69\x64\x44\x72\x6F\x70\x54\x61\x72\x67\x65\x74","\x69\x73\x53\x70\x6C\x69\x74\x54\x61\x72\x67\x65\x74","\x73\x65\x74\x44\x65\x66\x61\x75\x6C\x74\x50\x61\x72\x65\x6E\x74","\x68\x69\x74\x73\x53\x77\x69\x6D\x6C\x61\x6E\x65\x43\x6F\x6E\x74\x65\x6E\x74","\x67\x65\x74\x50\x6F\x69\x6E\x74\x46\x6F\x72\x45\x76\x65\x6E\x74","\x67\x65\x74\x43\x65\x6C\x6C\x73","\x67\x65\x74\x43\x65\x6C\x6C\x73\x42\x65\x79\x6F\x6E\x64","\x69\x73\x43\x65\x6C\x6C\x53\x65\x6C\x65\x63\x74\x65\x64","\x69\x73\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x45\x6D\x70\x74\x79","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x6F\x75\x6E\x74","\x61\x64\x64\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C","\x61\x64\x64\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C\x73","\x72\x65\x6D\x6F\x76\x65\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C","\x73\x65\x6C\x65\x63\x74\x52\x65\x67\x69\x6F\x6E","\x73\x65\x6C\x65\x63\x74\x43\x65\x6C\x6C\x73\x46\x6F\x72\x45\x76\x65\x6E\x74","\x73\x65\x6C\x65\x63\x74\x4E\x65\x78\x74\x43\x65\x6C\x6C","\x73\x65\x6C\x65\x63\x74\x43\x65\x6C\x6C","\x73\x65\x6C\x65\x63\x74\x50\x72\x65\x76\x69\x6F\x75\x73\x43\x65\x6C\x6C","\x73\x65\x6C\x65\x63\x74\x50\x61\x72\x65\x6E\x74\x43\x65\x6C\x6C","\x73\x65\x6C\x65\x63\x74\x43\x68\x69\x6C\x64\x43\x65\x6C\x6C","\x73\x65\x6C\x65\x63\x74\x41\x6C\x6C","\x73\x65\x6C\x65\x63\x74\x56\x65\x72\x74\x69\x63\x65\x73","\x73\x65\x6C\x65\x63\x74\x43\x65\x6C\x6C\x73","\x73\x65\x6C\x65\x63\x74\x45\x64\x67\x65\x73","\x63\x72\x65\x61\x74\x65\x48\x61\x6E\x64\x6C\x65\x72","\x75\x70\x64\x61\x74\x65\x4D\x6F\x75\x73\x65\x45\x76\x65\x6E\x74","\x4D\x4F\x55\x53\x45\x5F\x44\x4F\x57\x4E","\x6C\x61\x73\x74\x54\x6F\x75\x63\x68\x58","\x6C\x61\x73\x74\x4D\x6F\x75\x73\x65\x58","\x6C\x61\x73\x74\x4D\x6F\x75\x73\x65\x59","\x4D\x4F\x55\x53\x45\x5F\x55\x50","\x4D\x4F\x55\x53\x45\x5F\x4D\x4F\x56\x45","\x64\x65\x73\x74\x72\x6F\x79\x65\x64","\x74\x6F\x6F\x6C\x74\x69\x70","\x68\x65\x6C\x70","\x67\x72\x61\x70\x68\x52\x65\x6E\x64\x65\x72\x48\x69\x6E\x74","\x73\x68\x6F\x77\x56\x69\x65\x77\x70\x6F\x72\x74","\x73\x69\x7A\x65\x72\x53\x69\x7A\x65","\x75\x70\x64\x61\x74\x65\x4F\x6E\x50\x61\x6E","\x73\x69\x7A\x65\x72\x49\x6D\x61\x67\x65","\x73\x68\x61\x70\x65\x2D\x72\x65\x6E\x64\x65\x72\x69\x6E\x67","\x6F\x70\x74\x69\x6D\x69\x7A\x65\x53\x70\x65\x65\x64","\x69\x6D\x61\x67\x65\x2D\x72\x65\x6E\x64\x65\x72\x69\x6E\x67","\x75\x70\x64\x61\x74\x65\x48\x61\x6E\x64\x6C\x65\x72","\x75\x70\x64\x61\x74\x65","\x70\x61\x6E\x48\x61\x6E\x64\x6C\x65\x72","\x72\x65\x66\x72\x65\x73\x68\x48\x61\x6E\x64\x6C\x65\x72","\x73\x65\x6C\x65\x63\x74\x69\x6F\x6E\x42\x6F\x72\x64\x65\x72","\x72\x65\x64\x69\x72\x65\x63\x74\x4D\x6F\x75\x73\x65\x45\x76\x65\x6E\x74\x73","\x73\x69\x7A\x65\x72","\x63\x72\x65\x61\x74\x65\x53\x69\x7A\x65\x72","\x73\x65\x74\x5A\x6F\x6F\x6D\x45\x6E\x61\x62\x6C\x65\x64","\x67\x65\x74\x53\x6F\x75\x72\x63\x65\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72\x53\x69\x7A\x65","\x67\x65\x74\x4F\x75\x74\x6C\x69\x6E\x65\x4F\x66\x66\x73\x65\x74","\x73\x74\x61\x72\x74\x58","\x73\x74\x61\x72\x74\x59","\x64\x78\x30","\x64\x79\x30","\x6E","\x76\x61\x6C\x69\x64\x4E\x65\x69\x67\x68\x62\x6F\x72\x73","\x74\x79\x70\x65\x45\x72\x72\x6F\x72","\x76\x61\x6C\x69\x64\x4E\x65\x69\x67\x68\x62\x6F\x72\x73\x41\x6C\x6C\x6F\x77\x65\x64","\x63\x68\x65\x63\x6B\x54\x65\x72\x6D\x69\x6E\x61\x6C","\x63\x68\x65\x63\x6B\x4E\x65\x69\x67\x68\x62\x6F\x72\x73","\x63\x68\x65\x63\x6B\x54\x79\x70\x65","\x75\x6E\x64\x6F\x48\x61\x6E\x64\x6C\x65\x72","\x62\x75\x62\x62\x6C\x69\x6E\x67","\x69\x73\x42\x75\x62\x62\x6C\x69\x6E\x67","\x73\x65\x74\x42\x75\x62\x62\x6C\x69\x6E\x67","\x67\x65\x74\x4C\x61\x79\x6F\x75\x74","\x67\x65\x74\x43\x65\x6C\x6C\x73\x46\x6F\x72\x43\x68\x61\x6E\x67\x65\x73","\x67\x65\x74\x43\x65\x6C\x6C\x73\x46\x6F\x72\x43\x68\x61\x6E\x67\x65","\x65\x78\x65\x63\x75\x74\x65\x4C\x61\x79\x6F\x75\x74","\x72\x65\x73\x69\x7A\x65\x48\x61\x6E\x64\x6C\x65\x72","\x66\x6F\x6C\x64\x48\x61\x6E\x64\x6C\x65\x72","\x73\x68\x69\x66\x74\x52\x69\x67\x68\x74\x77\x61\x72\x64\x73","\x73\x68\x69\x66\x74\x44\x6F\x77\x6E\x77\x61\x72\x64\x73","\x69\x73\x43\x65\x6C\x6C\x49\x67\x6E\x6F\x72\x65\x64","\x69\x73\x43\x65\x6C\x6C\x53\x68\x69\x66\x74\x61\x62\x6C\x65","\x69\x73\x53\x68\x69\x66\x74\x52\x69\x67\x68\x74\x77\x61\x72\x64\x73","\x73\x65\x74\x53\x68\x69\x66\x74\x52\x69\x67\x68\x74\x77\x61\x72\x64\x73","\x69\x73\x53\x68\x69\x66\x74\x44\x6F\x77\x6E\x77\x61\x72\x64\x73","\x73\x65\x74\x53\x68\x69\x66\x74\x44\x6F\x77\x6E\x77\x61\x72\x64\x73","\x63\x65\x6C\x6C\x52\x65\x73\x69\x7A\x65\x64","\x67\x65\x74\x43\x65\x6C\x6C\x73\x54\x6F\x53\x68\x69\x66\x74","\x73\x68\x69\x66\x74\x43\x65\x6C\x6C","\x61\x64\x64\x45\x6E\x61\x62\x6C\x65\x64","\x72\x65\x73\x69\x7A\x65\x45\x6E\x61\x62\x6C\x65\x64","\x61\x64\x64\x48\x61\x6E\x64\x6C\x65\x72","\x69\x73\x41\x64\x64\x45\x6E\x61\x62\x6C\x65\x64","\x69\x73\x52\x65\x73\x69\x7A\x65\x45\x6E\x61\x62\x6C\x65\x64","\x73\x65\x74\x48\x6F\x72\x69\x7A\x6F\x6E\x74\x61\x6C","\x73\x65\x74\x41\x64\x64\x45\x6E\x61\x62\x6C\x65\x64","\x73\x65\x74\x52\x65\x73\x69\x7A\x65\x45\x6E\x61\x62\x6C\x65\x64","\x69\x73\x53\x77\x69\x6D\x6C\x61\x6E\x65\x49\x67\x6E\x6F\x72\x65\x64","\x69\x73\x43\x65\x6C\x6C\x48\x6F\x72\x69\x7A\x6F\x6E\x74\x61\x6C","\x73\x77\x69\x6D\x6C\x61\x6E\x65\x41\x64\x64\x65\x64","\x72\x65\x73\x69\x7A\x65\x53\x77\x69\x6D\x6C\x61\x6E\x65","\x6F\x6C\x64\x42\x6F\x75\x6E\x64\x73","\x6F\x6C\x64\x53\x74\x61\x74\x65\x73","\x6F\x6C\x64\x53\x63\x61\x6C\x65","\x64\x65\x6C\x74\x61\x73","\x63\x6F\x75\x6E\x74","\x58","\x59","\x61\x64\x64\x45\x64\x67\x65\x73","\x72\x65\x73\x6F\x6C\x76\x65","\x74\x72\x61\x6E\x73\x6C\x61\x74\x65\x53\x74\x61\x74\x65","\x72\x65\x76\x61\x6C\x69\x64\x61\x74\x65\x53\x74\x61\x74\x65","\x75\x70\x64\x61\x74\x65\x50\x72\x65\x76\x69\x65\x77\x53\x68\x61\x70\x65","\x6D\x61\x78\x43\x65\x6C\x6C\x73","\x68\x69\x67\x68\x6C\x69\x67\x68\x74\x45\x6E\x61\x62\x6C\x65\x64","\x63\x6C\x6F\x6E\x65\x45\x6E\x61\x62\x6C\x65\x64","\x6D\x6F\x76\x65\x45\x6E\x61\x62\x6C\x65\x64","\x67\x75\x69\x64\x65","\x63\x75\x72\x72\x65\x6E\x74\x44\x78","\x63\x75\x72\x72\x65\x6E\x74\x44\x79","\x75\x70\x64\x61\x74\x65\x43\x75\x72\x73\x6F\x72","\x73\x65\x6C\x65\x63\x74\x45\x6E\x61\x62\x6C\x65\x64","\x63\x6F\x6E\x6E\x65\x63\x74\x4F\x6E\x44\x72\x6F\x70","\x73\x63\x72\x6F\x6C\x6C\x4F\x6E\x4D\x6F\x76\x65","\x70\x72\x65\x76\x69\x65\x77\x43\x6F\x6C\x6F\x72","\x68\x74\x6D\x6C\x50\x72\x65\x76\x69\x65\x77","\x73\x63\x61\x6C\x65\x47\x72\x69\x64","\x72\x6F\x74\x61\x74\x69\x6F\x6E\x45\x6E\x61\x62\x6C\x65\x64","\x69\x73\x43\x6C\x6F\x6E\x65\x45\x6E\x61\x62\x6C\x65\x64","\x73\x65\x74\x43\x6C\x6F\x6E\x65\x45\x6E\x61\x62\x6C\x65\x64","\x69\x73\x4D\x6F\x76\x65\x45\x6E\x61\x62\x6C\x65\x64","\x73\x65\x74\x4D\x6F\x76\x65\x45\x6E\x61\x62\x6C\x65\x64","\x69\x73\x53\x65\x6C\x65\x63\x74\x45\x6E\x61\x62\x6C\x65\x64","\x73\x65\x74\x53\x65\x6C\x65\x63\x74\x45\x6E\x61\x62\x6C\x65\x64","\x69\x73\x52\x65\x6D\x6F\x76\x65\x43\x65\x6C\x6C\x73\x46\x72\x6F\x6D\x50\x61\x72\x65\x6E\x74","\x73\x65\x74\x52\x65\x6D\x6F\x76\x65\x43\x65\x6C\x6C\x73\x46\x72\x6F\x6D\x50\x61\x72\x65\x6E\x74","\x67\x65\x74\x49\x6E\x69\x74\x69\x61\x6C\x43\x65\x6C\x6C\x46\x6F\x72\x45\x76\x65\x6E\x74","\x69\x73\x44\x65\x6C\x61\x79\x65\x64\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E","\x64\x65\x6C\x61\x79\x65\x64\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E","\x63\x65\x6C\x6C\x57\x61\x73\x43\x6C\x69\x63\x6B\x65\x64","\x53\x45\x4C\x45\x43\x54","\x66\x69\x72\x73\x74","\x67\x65\x74\x50\x72\x65\x76\x69\x65\x77\x42\x6F\x75\x6E\x64\x73","\x63\x72\x65\x61\x74\x65\x50\x72\x65\x76\x69\x65\x77\x53\x68\x61\x70\x65","\x70\x42\x6F\x75\x6E\x64\x73","\x75\x73\x65\x47\x75\x69\x64\x65\x73\x46\x6F\x72\x45\x76\x65\x6E\x74","\x73\x65\x74\x48\x69\x67\x68\x6C\x69\x67\x68\x74\x43\x6F\x6C\x6F\x72","\x56\x41\x4C\x49\x44\x5F\x43\x4F\x4C\x4F\x52","\x49\x4E\x56\x41\x4C\x49\x44\x5F\x43\x4F\x4E\x4E\x45\x43\x54\x5F\x54\x41\x52\x47\x45\x54\x5F\x43\x4F\x4C\x4F\x52","\x43\x55\x52\x53\x4F\x52\x5F\x4D\x4F\x56\x41\x42\x4C\x45\x5F\x45\x44\x47\x45","\x43\x55\x52\x53\x4F\x52\x5F\x4D\x4F\x56\x41\x42\x4C\x45\x5F\x56\x45\x52\x54\x45\x58","\x73\x65\x6C\x65\x63\x74\x44\x65\x6C\x61\x79\x65\x64","\x64\x65\x73\x74\x72\x6F\x79\x53\x68\x61\x70\x65\x73","\x67\x75\x69\x64\x65\x73","\x73\x68\x6F\x75\x6C\x64\x52\x65\x6D\x6F\x76\x65\x43\x65\x6C\x6C\x73\x46\x72\x6F\x6D\x50\x61\x72\x65\x6E\x74","\x74\x72\x69\x67\x67\x65\x72\x58","\x74\x72\x69\x67\x67\x65\x72\x59","\x75\x73\x65\x50\x6F\x70\x75\x70\x54\x72\x69\x67\x67\x65\x72","\x75\x73\x65\x4C\x65\x66\x74\x42\x75\x74\x74\x6F\x6E\x46\x6F\x72\x50\x61\x6E\x6E\x69\x6E\x67","\x73\x65\x6C\x65\x63\x74\x4F\x6E\x50\x6F\x70\x75\x70","\x63\x6C\x65\x61\x72\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x4F\x6E\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64","\x69\x67\x6E\x6F\x72\x65\x43\x65\x6C\x6C","\x70\x72\x65\x76\x69\x65\x77\x45\x6E\x61\x62\x6C\x65\x64","\x75\x73\x65\x47\x72\x69\x64","\x69\x73\x50\x61\x6E\x6E\x69\x6E\x67\x45\x6E\x61\x62\x6C\x65\x64","\x73\x65\x74\x50\x61\x6E\x6E\x69\x6E\x67\x45\x6E\x61\x62\x6C\x65\x64","\x69\x73\x50\x61\x6E\x6E\x69\x6E\x67\x54\x72\x69\x67\x67\x65\x72","\x70\x6F\x70\x75\x70\x54\x72\x69\x67\x67\x65\x72","\x70\x61\x6E\x6E\x69\x6E\x67\x54\x72\x69\x67\x67\x65\x72","\x63\x6F\x6E\x73\x75\x6D\x65\x50\x61\x6E\x6E\x69\x6E\x67\x54\x72\x69\x67\x67\x65\x72","\x67\x65\x74\x43\x65\x6C\x6C\x46\x6F\x72\x50\x6F\x70\x75\x70\x45\x76\x65\x6E\x74","\x76\x61\x6C\x69\x64\x43\x6F\x6C\x6F\x72","\x44\x45\x46\x41\x55\x4C\x54\x5F\x56\x41\x4C\x49\x44\x5F\x43\x4F\x4C\x4F\x52","\x69\x6E\x76\x61\x6C\x69\x64\x43\x6F\x6C\x6F\x72","\x44\x45\x46\x41\x55\x4C\x54\x5F\x49\x4E\x56\x41\x4C\x49\x44\x5F\x43\x4F\x4C\x4F\x52","\x68\x6F\x74\x73\x70\x6F\x74","\x44\x45\x46\x41\x55\x4C\x54\x5F\x48\x4F\x54\x53\x50\x4F\x54","\x68\x6F\x74\x73\x70\x6F\x74\x45\x6E\x61\x62\x6C\x65\x64","\x63\x75\x72\x72\x65\x6E\x74\x43\x6F\x6C\x6F\x72","\x76\x61\x6C\x69\x64\x53\x74\x61\x74\x65","\x6D\x61\x72\x6B\x65\x64\x53\x74\x61\x74\x65","\x73\x65\x74\x48\x6F\x74\x73\x70\x6F\x74","\x67\x65\x74\x48\x6F\x74\x73\x70\x6F\x74","\x73\x65\x74\x48\x6F\x74\x73\x70\x6F\x74\x45\x6E\x61\x62\x6C\x65\x64","\x69\x73\x48\x6F\x74\x73\x70\x6F\x74\x45\x6E\x61\x62\x6C\x65\x64","\x68\x61\x73\x56\x61\x6C\x69\x64\x53\x74\x61\x74\x65","\x67\x65\x74\x56\x61\x6C\x69\x64\x53\x74\x61\x74\x65","\x67\x65\x74\x4D\x61\x72\x6B\x65\x64\x53\x74\x61\x74\x65","\x75\x6E\x6D\x61\x72\x6B","\x70\x72\x6F\x63\x65\x73\x73","\x69\x73\x56\x61\x6C\x69\x64\x53\x74\x61\x74\x65","\x67\x65\x74\x4D\x61\x72\x6B\x65\x72\x43\x6F\x6C\x6F\x72","\x6D\x61\x72\x6B\x43\x65\x6C\x6C","\x67\x65\x74\x53\x74\x61\x74\x65\x54\x6F\x4D\x61\x72\x6B","\x69\x6E\x74\x65\x72\x73\x65\x63\x74\x73\x48\x6F\x74\x73\x70\x6F\x74","\x72\x65\x73\x65\x74\x48\x61\x6E\x64\x6C\x65\x72","\x68\x61\x6E\x64\x6C\x65\x72\x73","\x6D\x61\x78\x48\x61\x6E\x64\x6C\x65\x72\x73","\x6D\x6F\x76\x65\x49\x63\x6F\x6E\x46\x72\x6F\x6E\x74","\x6D\x6F\x76\x65\x49\x63\x6F\x6E\x42\x61\x63\x6B","\x63\x6F\x6E\x6E\x65\x63\x74\x49\x6D\x61\x67\x65","\x74\x61\x72\x67\x65\x74\x43\x6F\x6E\x6E\x65\x63\x74\x49\x6D\x61\x67\x65","\x63\x72\x65\x61\x74\x65\x54\x61\x72\x67\x65\x74","\x6D\x61\x72\x6B\x65\x72","\x63\x6F\x6E\x73\x74\x72\x61\x69\x6E\x74\x48\x61\x6E\x64\x6C\x65\x72","\x77\x61\x79\x70\x6F\x69\x6E\x74\x73\x45\x6E\x61\x62\x6C\x65\x64","\x74\x61\x70\x41\x6E\x64\x48\x6F\x6C\x64\x45\x6E\x61\x62\x6C\x65\x64","\x74\x61\x70\x41\x6E\x64\x48\x6F\x6C\x64\x44\x65\x6C\x61\x79","\x74\x61\x70\x41\x6E\x64\x48\x6F\x6C\x64\x49\x6E\x50\x72\x6F\x67\x72\x65\x73\x73","\x74\x61\x70\x41\x6E\x64\x48\x6F\x6C\x64\x56\x61\x6C\x69\x64","\x74\x61\x70\x41\x6E\x64\x48\x6F\x6C\x64\x54\x6F\x6C\x65\x72\x61\x6E\x63\x65","\x69\x6E\x69\x74\x69\x61\x6C\x54\x6F\x75\x63\x68\x58","\x69\x6E\x69\x74\x69\x61\x6C\x54\x6F\x75\x63\x68\x59","\x69\x67\x6E\x6F\x72\x65\x4D\x6F\x75\x73\x65\x44\x6F\x77\x6E","\x63\x6F\x6E\x6E\x65\x63\x74\x49\x63\x6F\x6E\x4F\x66\x66\x73\x65\x74","\x65\x64\x67\x65\x53\x74\x61\x74\x65","\x64\x72\x69\x6C\x6C\x48\x61\x6E\x64\x6C\x65\x72","\x6D\x6F\x75\x73\x65\x44\x6F\x77\x6E\x43\x6F\x75\x6E\x74\x65\x72","\x6D\x6F\x76\x65\x50\x72\x65\x76\x69\x65\x77\x41\x77\x61\x79","\x69\x73\x43\x72\x65\x61\x74\x65\x54\x61\x72\x67\x65\x74","\x73\x65\x74\x43\x72\x65\x61\x74\x65\x54\x61\x72\x67\x65\x74","\x69\x63\x6F\x6E\x53\x74\x61\x74\x65","\x69\x63\x6F\x6E\x73","\x72\x65\x64\x72\x61\x77\x49\x63\x6F\x6E\x73","\x64\x65\x73\x74\x72\x6F\x79\x49\x63\x6F\x6E\x73","\x69\x73\x43\x6F\x6E\x6E\x65\x63\x74\x61\x62\x6C\x65\x43\x65\x6C\x6C","\x69\x73\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6E\x67","\x76\x61\x6C\x69\x64\x61\x74\x65\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E","\x63\x72\x65\x61\x74\x65\x45\x64\x67\x65\x53\x74\x61\x74\x65","\x67\x65\x74\x43\x6F\x6E\x6E\x65\x63\x74\x49\x6D\x61\x67\x65","\x69\x73\x4D\x6F\x76\x65\x49\x63\x6F\x6E\x54\x6F\x46\x72\x6F\x6E\x74\x46\x6F\x72\x53\x74\x61\x74\x65","\x63\x72\x65\x61\x74\x65\x49\x63\x6F\x6E\x73","\x43\x55\x52\x53\x4F\x52\x5F\x43\x4F\x4E\x4E\x45\x43\x54","\x63\x75\x72\x72\x65\x6E\x74\x53\x74\x61\x74\x65","\x69\x63\x6F\x6E","\x67\x65\x74\x49\x63\x6F\x6E\x50\x6F\x73\x69\x74\x69\x6F\x6E","\x69\x73\x53\x74\x61\x72\x74\x45\x76\x65\x6E\x74","\x63\x75\x72\x72\x65\x6E\x74\x46\x6F\x63\x75\x73","\x63\x75\x72\x72\x65\x6E\x74\x43\x6F\x6E\x73\x74\x72\x61\x69\x6E\x74","\x73\x6F\x75\x72\x63\x65\x43\x6F\x6E\x73\x74\x72\x61\x69\x6E\x74","\x77\x61\x79\x70\x6F\x69\x6E\x74\x73","\x74\x61\x70\x41\x6E\x64\x48\x6F\x6C\x64\x54\x68\x72\x65\x61\x64","\x63\x6C\x65\x61\x72\x54\x69\x6D\x65\x6F\x75\x74","\x74\x61\x70\x41\x6E\x64\x48\x6F\x6C\x64","\x73\x65\x6C\x65\x63\x74\x65\x64\x49\x63\x6F\x6E","\x69\x73\x49\x6D\x6D\x65\x64\x69\x61\x74\x65\x43\x6F\x6E\x6E\x65\x63\x74\x53\x6F\x75\x72\x63\x65","\x75\x70\x64\x61\x74\x65\x43\x75\x72\x72\x65\x6E\x74\x53\x74\x61\x74\x65","\x63\x6F\x6E\x76\x65\x72\x74\x57\x61\x79\x70\x6F\x69\x6E\x74","\x67\x65\x74\x54\x61\x72\x67\x65\x74\x50\x65\x72\x69\x6D\x65\x74\x65\x72\x50\x6F\x69\x6E\x74","\x67\x65\x74\x53\x6F\x75\x72\x63\x65\x50\x65\x72\x69\x6D\x65\x74\x65\x72\x50\x6F\x69\x6E\x74","\x64\x72\x61\x77\x50\x72\x65\x76\x69\x65\x77","\x75\x70\x64\x61\x74\x65\x49\x63\x6F\x6E\x73","\x69\x73\x53\x74\x6F\x70\x45\x76\x65\x6E\x74","\x61\x64\x64\x57\x61\x79\x70\x6F\x69\x6E\x74\x46\x6F\x72\x45\x76\x65\x6E\x74","\x67\x65\x74\x45\x64\x67\x65\x57\x69\x64\x74\x68","\x67\x65\x74\x45\x64\x67\x65\x43\x6F\x6C\x6F\x72","\x49\x4E\x56\x41\x4C\x49\x44\x5F\x43\x4F\x4C\x4F\x52","\x63\x72\x65\x61\x74\x65\x54\x61\x72\x67\x65\x74\x56\x65\x72\x74\x65\x78","\x67\x65\x74\x41\x6C\x69\x67\x6E\x6D\x65\x6E\x74\x54\x6F\x6C\x65\x72\x61\x6E\x63\x65","\x70\x6F\x69\x6E\x74\x49\x6D\x61\x67\x65","\x2F\x70\x6F\x69\x6E\x74\x2E\x67\x69\x66","\x68\x69\x67\x68\x6C\x69\x67\x68\x74\x43\x6F\x6C\x6F\x72","\x66\x6F\x63\x75\x73\x49\x63\x6F\x6E\x73","\x66\x6F\x63\x75\x73\x48\x69\x67\x68\x6C\x69\x67\x68\x74","\x66\x6F\x63\x75\x73\x50\x6F\x69\x6E\x74\x73","\x63\x75\x72\x72\x65\x6E\x74\x46\x6F\x63\x75\x73\x41\x72\x65\x61","\x67\x65\x74\x49\x6D\x61\x67\x65\x46\x6F\x72\x43\x6F\x6E\x73\x74\x72\x61\x69\x6E\x74","\x69\x73\x45\x76\x65\x6E\x74\x49\x67\x6E\x6F\x72\x65\x64","\x72\x65\x70\x61\x69\x6E\x74","\x64\x65\x66\x61\x75\x6C\x74\x4F\x70\x61\x63\x69\x74\x79","\x73\x68\x61\x72\x65\x64\x44\x69\x76","\x63\x75\x72\x72\x65\x6E\x74\x58","\x63\x75\x72\x72\x65\x6E\x74\x59","\x64\x72\x61\x67\x48\x61\x6E\x64\x6C\x65\x72","\x6D\x78\x52\x75\x62\x62\x65\x72\x62\x61\x6E\x64","\x73\x69\x6E\x67\x6C\x65\x53\x69\x7A\x65\x72","\x61\x6C\x6C\x6F\x77\x48\x61\x6E\x64\x6C\x65\x42\x6F\x75\x6E\x64\x73\x43\x68\x65\x63\x6B","\x68\x61\x6E\x64\x6C\x65\x49\x6D\x61\x67\x65","\x72\x6F\x74\x61\x74\x69\x6F\x6E\x52\x61\x73\x74\x65\x72","\x73\x65\x6C\x65\x63\x74\x69\x6F\x6E\x42\x6F\x75\x6E\x64\x73","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x42\x6F\x75\x6E\x64\x73","\x63\x72\x65\x61\x74\x65\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x53\x68\x61\x70\x65","\x73\x69\x7A\x65\x72\x73","\x6E\x2D\x72\x65\x73\x69\x7A\x65","\x6E\x65\x2D\x72\x65\x73\x69\x7A\x65","\x77\x2D\x72\x65\x73\x69\x7A\x65","\x65\x2D\x72\x65\x73\x69\x7A\x65","\x73\x77\x2D\x72\x65\x73\x69\x7A\x65","\x73\x2D\x72\x65\x73\x69\x7A\x65","\x73\x65\x2D\x72\x65\x73\x69\x7A\x65","\x6C\x61\x62\x65\x6C\x53\x68\x61\x70\x65","\x72\x6F\x74\x61\x74\x69\x6F\x6E\x53\x68\x61\x70\x65","\x48\x41\x4E\x44\x4C\x45\x5F\x53\x49\x5A\x45","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x6F\x6C\x6F\x72","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x53\x74\x72\x6F\x6B\x65\x57\x69\x64\x74\x68","\x69\x73\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x44\x61\x73\x68\x65\x64","\x56\x45\x52\x54\x45\x58\x5F\x53\x45\x4C\x45\x43\x54\x49\x4F\x4E\x5F\x43\x4F\x4C\x4F\x52","\x56\x45\x52\x54\x45\x58\x5F\x53\x45\x4C\x45\x43\x54\x49\x4F\x4E\x5F\x53\x54\x52\x4F\x4B\x45\x57\x49\x44\x54\x48","\x56\x45\x52\x54\x45\x58\x5F\x53\x45\x4C\x45\x43\x54\x49\x4F\x4E\x5F\x44\x41\x53\x48\x45\x44","\x63\x72\x65\x61\x74\x65\x53\x69\x7A\x65\x72\x53\x68\x61\x70\x65","\x69\x73\x53\x69\x7A\x65\x72\x56\x69\x73\x69\x62\x6C\x65","\x52\x4F\x54\x41\x54\x49\x4F\x4E\x5F\x48\x41\x4E\x44\x4C\x45","\x48\x41\x4E\x44\x4C\x45\x5F\x46\x49\x4C\x4C\x43\x4F\x4C\x4F\x52","\x6D\x6F\x76\x65\x53\x69\x7A\x65\x72\x54\x6F","\x67\x65\x74\x48\x61\x6E\x64\x6C\x65\x46\x6F\x72\x45\x76\x65\x6E\x74","\x4C\x41\x42\x45\x4C\x5F\x48\x41\x4E\x44\x4C\x45","\x70\x72\x65\x76\x69\x65\x77","\x63\x75\x72\x72\x65\x6E\x74\x41\x6C\x70\x68\x61","\x61\x74\x61\x6E","\x75\x6E\x69\x6F\x6E","\x72\x6F\x74\x61\x74\x65\x43\x65\x6C\x6C","\x6D\x6F\x76\x65\x43\x68\x69\x6C\x64\x72\x65\x6E","\x62\x65\x6E\x64\x73","\x72\x65\x6D\x6F\x76\x65\x45\x6E\x61\x62\x6C\x65\x64","\x73\x6E\x61\x70\x54\x6F\x54\x65\x72\x6D\x69\x6E\x61\x6C\x73","\x61\x62\x73\x70\x6F\x69\x6E\x74\x73","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x50\x6F\x69\x6E\x74\x73","\x69\x73\x41\x64\x64\x50\x6F\x69\x6E\x74\x45\x76\x65\x6E\x74","\x61\x64\x64\x50\x6F\x69\x6E\x74","\x63\x72\x65\x61\x74\x65\x42\x65\x6E\x64\x73","\x69\x6E\x69\x74\x42\x65\x6E\x64","\x43\x55\x52\x53\x4F\x52\x5F\x4C\x41\x42\x45\x4C\x5F\x48\x41\x4E\x44\x4C\x45","\x69\x73\x52\x65\x6D\x6F\x76\x65\x50\x6F\x69\x6E\x74\x45\x76\x65\x6E\x74","\x45\x44\x47\x45\x5F\x53\x45\x4C\x45\x43\x54\x49\x4F\x4E\x5F\x43\x4F\x4C\x4F\x52","\x45\x44\x47\x45\x5F\x53\x45\x4C\x45\x43\x54\x49\x4F\x4E\x5F\x53\x54\x52\x4F\x4B\x45\x57\x49\x44\x54\x48","\x45\x44\x47\x45\x5F\x53\x45\x4C\x45\x43\x54\x49\x4F\x4E\x5F\x44\x41\x53\x48\x45\x44","\x69\x73\x48\x61\x6E\x64\x6C\x65\x56\x69\x73\x69\x62\x6C\x65","\x63\x72\x65\x61\x74\x65\x48\x61\x6E\x64\x6C\x65\x53\x68\x61\x70\x65","\x69\x73\x48\x61\x6E\x64\x6C\x65\x45\x6E\x61\x62\x6C\x65\x64","\x43\x55\x52\x53\x4F\x52\x5F\x42\x45\x4E\x44\x5F\x48\x41\x4E\x44\x4C\x45","\x72\x65\x6D\x6F\x76\x65\x50\x6F\x69\x6E\x74","\x69\x73\x54\x61\x72\x67\x65\x74","\x69\x73\x4C\x61\x62\x65\x6C","\x63\x6C\x6F\x6E\x65\x50\x72\x65\x76\x69\x65\x77\x53\x74\x61\x74\x65","\x67\x65\x74\x53\x6E\x61\x70\x54\x6F\x54\x65\x72\x6D\x69\x6E\x61\x6C\x54\x6F\x6C\x65\x72\x61\x6E\x63\x65","\x67\x65\x74\x50\x72\x65\x76\x69\x65\x77\x54\x65\x72\x6D\x69\x6E\x61\x6C\x53\x74\x61\x74\x65","\x67\x65\x74\x50\x72\x65\x76\x69\x65\x77\x50\x6F\x69\x6E\x74\x73","\x75\x70\x64\x61\x74\x65\x50\x72\x65\x76\x69\x65\x77\x53\x74\x61\x74\x65","\x73\x65\x74\x50\x72\x65\x76\x69\x65\x77\x43\x6F\x6C\x6F\x72","\x6D\x6F\x76\x65\x4C\x61\x62\x65\x6C","\x63\x68\x61\x6E\x67\x65\x54\x65\x72\x6D\x69\x6E\x61\x6C\x50\x6F\x69\x6E\x74","\x63\x68\x61\x6E\x67\x65\x50\x6F\x69\x6E\x74\x73","\x61\x64\x64\x50\x6F\x69\x6E\x74\x41\x74","\x66\x69\x6E\x64\x4E\x65\x61\x72\x65\x73\x74\x53\x65\x67\x6D\x65\x6E\x74","\x67\x65\x74\x48\x61\x6E\x64\x6C\x65\x46\x69\x6C\x6C\x43\x6F\x6C\x6F\x72","\x4C\x4F\x43\x4B\x45\x44\x5F\x48\x41\x4E\x44\x4C\x45\x5F\x46\x49\x4C\x4C\x43\x4F\x4C\x4F\x52","\x43\x4F\x4E\x4E\x45\x43\x54\x5F\x48\x41\x4E\x44\x4C\x45\x5F\x46\x49\x4C\x4C\x43\x4F\x4C\x4F\x52","\x4C\x41\x42\x45\x4C\x5F\x48\x41\x4E\x44\x4C\x45\x5F\x53\x49\x5A\x45","\x72\x65\x64\x72\x61\x77\x49\x6E\x6E\x65\x72\x42\x65\x6E\x64\x73","\x66\x6C\x69\x70\x45\x6E\x61\x62\x6C\x65\x64","\x64\x6F\x75\x62\x6C\x65\x43\x6C\x69\x63\x6B\x4F\x72\x69\x65\x6E\x74\x61\x74\x69\x6F\x6E\x52\x65\x73\x6F\x75\x72\x63\x65","\x64\x6F\x75\x62\x6C\x65\x43\x6C\x69\x63\x6B\x4F\x72\x69\x65\x6E\x74\x61\x74\x69\x6F\x6E","\x63\x72\x65\x61\x74\x65\x56\x69\x72\x74\x75\x61\x6C\x42\x65\x6E\x64","\x67\x65\x74\x43\x75\x72\x73\x6F\x72\x46\x6F\x72\x42\x65\x6E\x64","\x45\x44\x47\x45\x53\x54\x59\x4C\x45\x5F\x54\x4F\x50\x54\x4F\x42\x4F\x54\x54\x4F\x4D","\x45\x44\x47\x45\x53\x54\x59\x4C\x45\x5F\x45\x4C\x42\x4F\x57","\x72\x6F\x77\x2D\x72\x65\x73\x69\x7A\x65","\x63\x6F\x6C\x2D\x72\x65\x73\x69\x7A\x65","\x6E\x6F\x72\x6D\x61\x6C\x4B\x65\x79\x73","\x73\x68\x69\x66\x74\x4B\x65\x79\x73","\x63\x6F\x6E\x74\x72\x6F\x6C\x4B\x65\x79\x73","\x63\x6F\x6E\x74\x72\x6F\x6C\x53\x68\x69\x66\x74\x4B\x65\x79\x73","\x6B\x65\x79\x44\x6F\x77\x6E","\x62\x69\x6E\x64\x4B\x65\x79","\x62\x69\x6E\x64\x53\x68\x69\x66\x74\x4B\x65\x79","\x62\x69\x6E\x64\x43\x6F\x6E\x74\x72\x6F\x6C\x4B\x65\x79","\x62\x69\x6E\x64\x43\x6F\x6E\x74\x72\x6F\x6C\x53\x68\x69\x66\x74\x4B\x65\x79","\x67\x65\x74\x46\x75\x6E\x63\x74\x69\x6F\x6E","\x69\x73\x47\x72\x61\x70\x68\x45\x76\x65\x6E\x74","\x68\x69\x64\x65\x4F\x6E\x48\x6F\x76\x65\x72","\x73\x65\x74\x48\x69\x64\x65\x4F\x6E\x48\x6F\x76\x65\x72","\x6D\x78\x54\x6F\x6F\x6C\x74\x69\x70","\x68\x69\x64\x65\x54\x6F\x6F\x6C\x74\x69\x70","\x73\x74\x61\x74\x65\x53\x6F\x75\x72\x63\x65","\x72\x65\x73\x65\x74\x54\x69\x6D\x65\x72","\x48\x49\x47\x48\x4C\x49\x47\x48\x54\x5F\x53\x54\x52\x4F\x4B\x45\x57\x49\x44\x54\x48","\x72\x65\x70\x61\x69\x6E\x74\x48\x61\x6E\x64\x6C\x65\x72","\x6B\x65\x65\x70\x4F\x6E\x54\x6F\x70","\x64\x72\x61\x77\x48\x69\x67\x68\x6C\x69\x67\x68\x74","\x65\x64\x69\x74\x6F\x72","\x68\x69\x64\x65\x50\x72\x6F\x70\x65\x72\x74\x69\x65\x73","\x62\x69\x6E\x64\x41\x63\x74\x69\x6F\x6E","\x63\x6F\x6E\x66\x69\x67","\x63\x72\x65\x61\x74\x65\x4D\x65\x6E\x75","\x63\x72\x65\x61\x74\x65\x43\x6F\x6E\x64\x69\x74\x69\x6F\x6E\x73","\x61\x64\x64\x49\x74\x65\x6D\x73","\x69\x66","\x61\x73","\x69\x63\x6F\x6E\x43\x6C\x73","\x61\x64\x64\x41\x63\x74\x69\x6F\x6E","\x73\x65\x70\x61\x72\x61\x74\x6F\x72","\x6E\x6F\x63\x65\x6C\x6C","\x6E\x63\x65\x6C\x6C\x73","\x6E\x6F\x74\x52\x6F\x6F\x74","\x6E\x6F\x6E\x45\x6D\x70\x74\x79","\x65\x78\x70\x61\x6E\x64\x61\x62\x6C\x65","\x63\x6F\x6C\x6C\x61\x70\x73\x61\x62\x6C\x65","\x76\x61\x6C\x69\x64\x52\x6F\x6F\x74","\x65\x6D\x70\x74\x79\x56\x61\x6C\x69\x64\x52\x6F\x6F\x74","\x63\x6F\x6E\x64\x69\x74\x69\x6F\x6E","\x74\x6F\x6F\x6C\x62\x61\x72","\x69\x6E\x73\x65\x72\x74\x46\x75\x6E\x63\x74\x69\x6F\x6E","\x2F\x73\x65\x70\x61\x72\x61\x74\x6F\x72\x2E\x67\x69\x66","\x61\x64\x64\x41\x63\x74\x69\x6F\x6E\x4F\x70\x74\x69\x6F\x6E","\x73\x65\x74\x4D\x6F\x64\x65","\x61\x64\x64\x50\x72\x6F\x74\x6F\x74\x79\x70\x65","\x69\x6E\x73\x74\x61\x6C\x6C\x44\x72\x6F\x70\x48\x61\x6E\x64\x6C\x65\x72","\x68\x6F\x72\x69\x7A\x6F\x6E\x74\x61\x6C\x46\x6C\x6F\x77","\x6D\x61\x6B\x65\x44\x72\x61\x67\x67\x61\x62\x6C\x65","\x61\x63\x74\x69\x6F\x6E\x73","\x61\x64\x64\x41\x63\x74\x69\x6F\x6E\x73","\x63\x79\x63\x6C\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x56\x61\x6C\x75\x65\x73","\x70\x6F\x70\x75\x70\x48\x61\x6E\x64\x6C\x65\x72","\x75\x6E\x64\x6F\x4D\x61\x6E\x61\x67\x65\x72","\x63\x72\x65\x61\x74\x65\x47\x72\x61\x70\x68","\x63\x72\x65\x61\x74\x65\x54\x6F\x6F\x6C\x62\x61\x72","\x6B\x65\x79\x48\x61\x6E\x64\x6C\x65\x72","\x63\x6F\x6E\x66\x69\x67\x75\x72\x65","\x63\x79\x63\x6C\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x4E\x61\x6D\x65","\x49\x53\x5F\x4C\x4F\x43\x41\x4C","\x63\x72\x65\x61\x74\x65\x53\x65\x73\x73\x69\x6F\x6E","\x2F\x72\x65\x73\x6F\x75\x72\x63\x65\x73\x2F\x65\x64\x69\x74\x6F\x72","\x61\x73\x6B\x5A\x6F\x6F\x6D\x52\x65\x73\x6F\x75\x72\x63\x65","\x61\x73\x6B\x5A\x6F\x6F\x6D","\x6C\x61\x73\x74\x53\x61\x76\x65\x64\x52\x65\x73\x6F\x75\x72\x63\x65","\x6C\x61\x73\x74\x53\x61\x76\x65\x64","\x63\x75\x72\x72\x65\x6E\x74\x46\x69\x6C\x65\x52\x65\x73\x6F\x75\x72\x63\x65","\x63\x75\x72\x72\x65\x6E\x74\x46\x69\x6C\x65","\x70\x72\x6F\x70\x65\x72\x74\x69\x65\x73\x52\x65\x73\x6F\x75\x72\x63\x65","\x74\x61\x73\x6B\x73\x52\x65\x73\x6F\x75\x72\x63\x65","\x74\x61\x73\x6B\x73","\x68\x65\x6C\x70\x52\x65\x73\x6F\x75\x72\x63\x65","\x6F\x75\x74\x6C\x69\x6E\x65\x52\x65\x73\x6F\x75\x72\x63\x65","\x64\x62\x6C\x43\x6C\x69\x63\x6B\x41\x63\x74\x69\x6F\x6E","\x73\x77\x69\x6D\x6C\x61\x6E\x65\x52\x65\x71\x75\x69\x72\x65\x64","\x66\x6F\x72\x63\x65\x64\x49\x6E\x73\x65\x72\x74\x69\x6E\x67","\x74\x65\x6D\x70\x6C\x61\x74\x65\x73","\x64\x65\x66\x61\x75\x6C\x74\x45\x64\x67\x65\x53\x74\x79\x6C\x65","\x64\x65\x66\x61\x75\x6C\x74\x47\x72\x6F\x75\x70","\x67\x72\x6F\x75\x70\x42\x6F\x72\x64\x65\x72\x53\x69\x7A\x65","\x66\x69\x6C\x65\x6E\x61\x6D\x65","\x70\x6F\x73\x74\x50\x61\x72\x61\x6D\x65\x74\x65\x72\x4E\x61\x6D\x65","\x75\x72\x6C\x50\x6F\x73\x74","\x75\x72\x6C\x49\x6D\x61\x67\x65","\x6C\x61\x79\x6F\x75\x74\x44\x69\x61\x67\x72\x61\x6D","\x73\x77\x69\x6D\x6C\x61\x6E\x65\x53\x70\x61\x63\x69\x6E\x67","\x6D\x61\x69\x6E\x74\x61\x69\x6E\x53\x77\x69\x6D\x6C\x61\x6E\x65\x73","\x6C\x61\x79\x6F\x75\x74\x53\x77\x69\x6D\x6C\x61\x6E\x65\x73","\x63\x79\x63\x6C\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x49\x6E\x64\x65\x78","\x74\x61\x73\x6B\x73\x57\x69\x6E\x64\x6F\x77\x49\x6D\x61\x67\x65","\x74\x61\x73\x6B\x73\x54\x6F\x70","\x68\x65\x6C\x70\x57\x69\x6E\x64\x6F\x77\x49\x6D\x61\x67\x65","\x75\x72\x6C\x48\x65\x6C\x70","\x68\x65\x6C\x70\x57\x69\x64\x74\x68","\x68\x65\x6C\x70\x48\x65\x69\x67\x68\x74","\x70\x72\x6F\x70\x65\x72\x74\x69\x65\x73\x57\x69\x64\x74\x68","\x70\x72\x6F\x70\x65\x72\x74\x69\x65\x73\x48\x65\x69\x67\x68\x74","\x6D\x6F\x76\x65\x50\x72\x6F\x70\x65\x72\x74\x69\x65\x73\x44\x69\x61\x6C\x6F\x67","\x76\x61\x6C\x69\x64\x61\x74\x69\x6E\x67","\x65\x78\x70\x6F\x72\x74\x49\x6D\x61\x67\x65","\x67\x65\x74\x55\x72\x6C\x49\x6D\x61\x67\x65","\x67\x65\x74\x56\x69\x65\x77\x58\x6D\x6C","\x5F\x62\x6C\x61\x6E\x6B","\x63\x75\x74","\x70\x61\x73\x74\x65","\x64\x65\x6C\x65\x74\x65","\x75\x6E\x67\x72\x6F\x75\x70","\x61\x63\x74\x75\x61\x6C\x53\x69\x7A\x65","\x73\x68\x6F\x77\x50\x72\x6F\x70\x65\x72\x74\x69\x65\x73","\x73\x65\x6C\x65\x63\x74\x4E\x6F\x6E\x65","\x74\x6F\x42\x61\x63\x6B","\x74\x6F\x46\x72\x6F\x6E\x74","\x73\x65\x6C\x65\x63\x74\x50\x72\x65\x76\x69\x6F\x75\x73","\x73\x65\x6C\x65\x63\x74\x4E\x65\x78\x74","\x73\x65\x6C\x65\x63\x74\x50\x61\x72\x65\x6E\x74","\x73\x65\x6C\x65\x63\x74\x43\x68\x69\x6C\x64","\x63\x6F\x6C\x6C\x61\x70\x73\x65\x41\x6C\x6C","\x65\x78\x70\x61\x6E\x64","\x65\x78\x70\x61\x6E\x64\x41\x6C\x6C","\x61\x6C\x69\x67\x6E\x43\x65\x6C\x6C\x73\x4C\x65\x66\x74","\x61\x6C\x69\x67\x6E\x43\x65\x6C\x6C\x73\x43\x65\x6E\x74\x65\x72","\x61\x6C\x69\x67\x6E\x43\x65\x6C\x6C\x73\x52\x69\x67\x68\x74","\x61\x6C\x69\x67\x6E\x43\x65\x6C\x6C\x73\x54\x6F\x70","\x61\x6C\x69\x67\x6E\x43\x65\x6C\x6C\x73\x4D\x69\x64\x64\x6C\x65","\x61\x6C\x69\x67\x6E\x43\x65\x6C\x6C\x73\x42\x6F\x74\x74\x6F\x6D","\x61\x6C\x69\x67\x6E\x46\x6F\x6E\x74\x4C\x65\x66\x74","\x61\x6C\x69\x67\x6E\x46\x6F\x6E\x74\x43\x65\x6E\x74\x65\x72","\x61\x6C\x69\x67\x6E\x46\x6F\x6E\x74\x52\x69\x67\x68\x74","\x61\x6C\x69\x67\x6E\x46\x6F\x6E\x74\x54\x6F\x70","\x61\x6C\x69\x67\x6E\x46\x6F\x6E\x74\x4D\x69\x64\x64\x6C\x65","\x61\x6C\x69\x67\x6E\x46\x6F\x6E\x74\x42\x6F\x74\x74\x6F\x6D","\x70\x72\x6F\x6D\x70\x74","\x74\x6F\x67\x67\x6C\x65\x54\x61\x73\x6B\x73","\x73\x68\x6F\x77\x54\x61\x73\x6B\x73","\x74\x6F\x67\x67\x6C\x65\x48\x65\x6C\x70","\x73\x68\x6F\x77\x48\x65\x6C\x70","\x74\x6F\x67\x67\x6C\x65\x4F\x75\x74\x6C\x69\x6E\x65","\x73\x68\x6F\x77\x4F\x75\x74\x6C\x69\x6E\x65","\x74\x6F\x67\x67\x6C\x65\x43\x6F\x6E\x73\x6F\x6C\x65","\x72\x65\x73\x65\x74\x48\x69\x73\x74\x6F\x72\x79","\x72\x65\x73\x65\x74\x46\x69\x72\x73\x74\x54\x69\x6D\x65","\x63\x6F\x6F\x6B\x69\x65","\x6D\x78\x67\x72\x61\x70\x68\x3D\x73\x65\x65\x6E\x3B\x20\x65\x78\x70\x69\x72\x65\x73\x3D\x46\x72\x69\x2C\x20\x32\x37\x20\x4A\x75\x6C\x20\x32\x30\x30\x31\x20\x30\x32\x3A\x34\x37\x3A\x31\x31\x20\x55\x54\x43\x3B\x20\x70\x61\x74\x68\x3D\x2F","\x43\x61\x6E\x6E\x6F\x74\x20\x65\x78\x65\x63\x75\x74\x65\x20","\x3A\x20","\x43\x61\x6E\x6E\x6F\x74\x20\x66\x69\x6E\x64\x20\x61\x63\x74\x69\x6F\x6E\x20","\x61\x64\x64\x54\x65\x6D\x70\x6C\x61\x74\x65","\x67\x65\x74\x54\x65\x6D\x70\x6C\x61\x74\x65","\x69\x6E\x73\x74\x61\x6C\x6C\x44\x62\x6C\x43\x6C\x69\x63\x6B\x48\x61\x6E\x64\x6C\x65\x72","\x69\x6E\x73\x74\x61\x6C\x6C\x55\x6E\x64\x6F\x48\x61\x6E\x64\x6C\x65\x72","\x69\x6E\x73\x74\x61\x6C\x6C\x44\x72\x69\x6C\x6C\x48\x61\x6E\x64\x6C\x65\x72","\x69\x6E\x73\x74\x61\x6C\x6C\x43\x68\x61\x6E\x67\x65\x48\x61\x6E\x64\x6C\x65\x72","\x69\x6E\x73\x74\x61\x6C\x6C\x49\x6E\x73\x65\x72\x74\x48\x61\x6E\x64\x6C\x65\x72","\x63\x72\x65\x61\x74\x65\x50\x6F\x70\x75\x70\x4D\x65\x6E\x75","\x63\x72\x65\x61\x74\x65\x53\x77\x69\x6D\x6C\x61\x6E\x65\x4D\x61\x6E\x61\x67\x65\x72","\x63\x72\x65\x61\x74\x65\x4C\x61\x79\x6F\x75\x74\x4D\x61\x6E\x61\x67\x65\x72","\x73\x77\x69\x6D\x6C\x61\x6E\x65\x4C\x61\x79\x6F\x75\x74","\x63\x72\x65\x61\x74\x65\x53\x77\x69\x6D\x6C\x61\x6E\x65\x4C\x61\x79\x6F\x75\x74","\x64\x69\x61\x67\x72\x61\x6D\x4C\x61\x79\x6F\x75\x74","\x63\x72\x65\x61\x74\x65\x44\x69\x61\x67\x72\x61\x6D\x4C\x61\x79\x6F\x75\x74","\x73\x65\x74\x47\x72\x61\x70\x68\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x72\x75\x62\x62\x65\x72\x62\x61\x6E\x64","\x73\x65\x74\x54\x6F\x6F\x6C\x62\x61\x72\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x73\x65\x74\x53\x74\x61\x74\x75\x73\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x74\x6F\x4C\x6F\x63\x61\x6C\x65\x53\x74\x72\x69\x6E\x67","\x73\x65\x74\x53\x74\x61\x74\x75\x73","\x73\x65\x74\x54\x69\x74\x6C\x65\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x67\x65\x74\x54\x69\x74\x6C\x65","\x74\x72\x65\x65\x4C\x61\x79\x6F\x75\x74","\x20\x3E\x20","\x67\x65\x74\x52\x6F\x6F\x74\x54\x69\x74\x6C\x65","\x63\x72\x65\x61\x74\x65\x47\x72\x6F\x75\x70","\x72\x65\x61\x64\x47\x72\x61\x70\x68\x4D\x6F\x64\x65\x6C","\x67\x65\x74\x55\x72\x6C\x50\x6F\x73\x74","\x77\x72\x69\x74\x65\x47\x72\x61\x70\x68\x4D\x6F\x64\x65\x6C","\x70\x6F\x73\x74\x44\x69\x61\x67\x72\x61\x6D","\x73\x77\x61\x70\x53\x74\x79\x6C\x65\x73","\x63\x72\x65\x61\x74\x65\x50\x72\x6F\x70\x65\x72\x74\x69\x65\x73","\x69\x73\x50\x72\x6F\x70\x65\x72\x74\x69\x65\x73\x56\x69\x73\x69\x62\x6C\x65","\x72\x65\x61\x64\x6F\x6E\x6C\x79","\x49\x44","\x53\x74\x79\x6C\x65","\x63\x72\x65\x61\x74\x65\x54\x61\x73\x6B\x73","\x72\x65\x66\x72\x65\x73\x68\x54\x61\x73\x6B\x73","\x66\x72\x61\x6D\x65\x42\x6F\x72\x64\x65\x72","\x63\x6F\x6E\x73\x75\x6D\x65\x43\x79\x63\x6C\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x63\x79\x63\x6C\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x69\x73\x43\x6F\x6E\x73\x74\x72\x61\x69\x6E\x65\x64\x4D\x6F\x76\x69\x6E\x67","\x63\x6F\x64\x65\x63\x73","\x74\x65\x6D\x70\x6C\x61\x74\x65","\x61\x64\x64\x41\x6C\x69\x61\x73","\x61\x6C\x69\x61\x73\x65\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x65\x6E\x63\x6F\x64\x65\x44\x65\x66\x61\x75\x6C\x74\x73","\x67\x65\x74\x4F\x62\x6A\x65\x63\x74","\x72\x65\x66\x65\x72\x65\x6E\x63\x65","\x67\x65\x74\x43\x6F\x64\x65\x63","\x69\x6D\x70\x6F\x72\x74\x4E\x6F\x64\x65","\x6D\x78\x43\x6F\x64\x65\x63\x2E\x65\x6E\x63\x6F\x64\x65\x3A\x20\x4E\x6F\x20\x63\x6F\x64\x65\x63\x20\x66\x6F\x72\x20","\x43\x61\x6E\x6E\x6F\x74\x20\x64\x65\x63\x6F\x64\x65\x20","\x65\x6E\x63\x6F\x64\x65\x43\x65\x6C\x6C","\x69\x73\x43\x65\x6C\x6C\x43\x6F\x64\x65\x63","\x64\x65\x63\x6F\x64\x65\x43\x65\x6C\x6C","\x69\x6E\x73\x65\x72\x74\x49\x6E\x74\x6F\x47\x72\x61\x70\x68","\x65\x78\x63\x6C\x75\x64\x65","\x69\x64\x72\x65\x66\x73","\x6D\x61\x70\x70\x69\x6E\x67","\x72\x65\x76\x65\x72\x73\x65","\x63\x6C\x6F\x6E\x65\x54\x65\x6D\x70\x6C\x61\x74\x65","\x67\x65\x74\x46\x69\x65\x6C\x64\x4E\x61\x6D\x65","\x67\x65\x74\x41\x74\x74\x72\x69\x62\x75\x74\x65\x4E\x61\x6D\x65","\x69\x73\x45\x78\x63\x6C\x75\x64\x65\x64","\x69\x73\x52\x65\x66\x65\x72\x65\x6E\x63\x65","\x62\x65\x66\x6F\x72\x65\x45\x6E\x63\x6F\x64\x65","\x65\x6E\x63\x6F\x64\x65\x4F\x62\x6A\x65\x63\x74","\x61\x66\x74\x65\x72\x45\x6E\x63\x6F\x64\x65","\x65\x6E\x63\x6F\x64\x65\x56\x61\x6C\x75\x65","\x6D\x78\x4F\x62\x6A\x65\x63\x74\x43\x6F\x64\x65\x63\x2E\x65\x6E\x63\x6F\x64\x65\x3A\x20\x4E\x6F\x20\x49\x44\x20\x66\x6F\x72\x20","\x77\x72\x69\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x77\x72\x69\x74\x65\x50\x72\x69\x6D\x69\x74\x69\x76\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x77\x72\x69\x74\x65\x43\x6F\x6D\x70\x6C\x65\x78\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x63\x6F\x6E\x76\x65\x72\x74\x56\x61\x6C\x75\x65\x54\x6F\x58\x6D\x6C","\x6D\x78\x4F\x62\x6A\x65\x63\x74\x43\x6F\x64\x65\x63\x2E\x65\x6E\x63\x6F\x64\x65\x3A\x20\x4E\x6F\x20\x6E\x6F\x64\x65\x20\x66\x6F\x72\x20","\x63\x6F\x6E\x76\x65\x72\x74\x56\x61\x6C\x75\x65\x46\x72\x6F\x6D\x58\x6D\x6C","\x62\x65\x66\x6F\x72\x65\x44\x65\x63\x6F\x64\x65","\x64\x65\x63\x6F\x64\x65\x4E\x6F\x64\x65","\x61\x66\x74\x65\x72\x44\x65\x63\x6F\x64\x65","\x64\x65\x63\x6F\x64\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x64\x65\x63\x6F\x64\x65\x43\x68\x69\x6C\x64\x72\x65\x6E","\x64\x65\x63\x6F\x64\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x6D\x78\x4F\x62\x6A\x65\x63\x74\x43\x6F\x64\x65\x63\x2E\x64\x65\x63\x6F\x64\x65\x3A\x20\x4E\x6F\x20\x6F\x62\x6A\x65\x63\x74\x20\x66\x6F\x72\x20","\x70\x72\x6F\x63\x65\x73\x73\x49\x6E\x63\x6C\x75\x64\x65","\x64\x65\x63\x6F\x64\x65\x43\x68\x69\x6C\x64","\x67\x65\x74\x46\x69\x65\x6C\x64\x54\x65\x6D\x70\x6C\x61\x74\x65","\x61\x64\x64\x4F\x62\x6A\x65\x63\x74\x56\x61\x6C\x75\x65","\x69\x6E\x63\x6C\x75\x64\x65","\x72\x65\x6D\x6F\x76\x65\x57\x68\x69\x74\x65\x73\x70\x61\x63\x65","\x64\x65\x63\x6F\x64\x65\x52\x6F\x6F\x74","\x67\x72\x61\x70\x68\x4C\x69\x73\x74\x65\x6E\x65\x72\x73\x20\x65\x76\x65\x6E\x74\x4C\x69\x73\x74\x65\x6E\x65\x72\x73\x20\x76\x69\x65\x77\x20\x63\x6F\x6E\x74\x61\x69\x6E\x65\x72\x20\x63\x65\x6C\x6C\x52\x65\x6E\x64\x65\x72\x65\x72\x20\x65\x64\x69\x74\x6F\x72\x20\x73\x65\x6C\x65\x63\x74\x69\x6F\x6E","\x6C\x61\x79\x65\x72","\x67\x65\x74\x53\x74\x72\x69\x6E\x67\x56\x61\x6C\x75\x65","\x6D\x78\x53\x74\x79\x6C\x65\x73\x68\x65\x65\x74\x43\x6F\x64\x65\x63\x2E\x64\x65\x63\x6F\x64\x65\x3A\x20\x73\x74\x79\x6C\x65\x73\x68\x65\x65\x74\x20","\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64\x20\x74\x6F\x20\x65\x78\x74\x65\x6E\x64","\x70\x72\x65\x73\x73\x65\x64\x49\x63\x6F\x6E","\x6D\x6F\x64\x65","\x74\x6F\x67\x67\x6C\x65","\x2D\x2D\x2D","\x63\x65\x6C\x6C\x53\x74\x79\x6C\x65","\x54\x65\x6D\x70\x6C\x61\x74\x65\x20","\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x6D\x6F\x64\x69\x66\x69\x65\x64\x20\x6C\x61\x73\x74\x53\x6E\x61\x70\x73\x68\x6F\x74\x20\x69\x67\x6E\x6F\x72\x65\x64\x43\x68\x61\x6E\x67\x65\x73\x20\x75\x6E\x64\x6F\x4D\x61\x6E\x61\x67\x65\x72\x20\x67\x72\x61\x70\x68\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72\x20\x74\x6F\x6F\x6C\x62\x61\x72\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x41\x72\x72\x61\x79","\x64\x65\x63\x6F\x64\x65\x54\x65\x6D\x70\x6C\x61\x74\x65\x73","\x75\x69","\x64\x65\x63\x6F\x64\x65\x55\x69","\x73\x65\x74\x4D\x61\x70\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x72\x65\x73\x6F\x75\x72\x63\x65","\x62\x61\x73\x65\x6E\x61\x6D\x65"];var mxClient={VERSION:_0xff99[0],IS_IE:0<= navigator[_0xff99[3]][_0xff99[2]](_0xff99[1]),IS_IE6:0<= navigator[_0xff99[3]][_0xff99[2]](_0xff99[4]),IS_QUIRKS:0<= navigator[_0xff99[3]][_0xff99[2]](_0xff99[1])&& (null== document[_0xff99[5]]|| 5== document[_0xff99[5]]),VML_PREFIX:_0xff99[6],OFFICE_PREFIX:_0xff99[7],IS_NS:0<= navigator[_0xff99[3]][_0xff99[2]](_0xff99[8])&& 0> navigator[_0xff99[3]][_0xff99[2]](_0xff99[1]),IS_OP:0<= navigator[_0xff99[3]][_0xff99[2]](_0xff99[9]),IS_OT:0> navigator[_0xff99[3]][_0xff99[2]](_0xff99[10])&& 0> navigator[_0xff99[3]][_0xff99[2]](_0xff99[11])&& 0> navigator[_0xff99[3]][_0xff99[2]](_0xff99[12])&& 0> navigator[_0xff99[3]][_0xff99[2]](_0xff99[13])&& 0> navigator[_0xff99[3]][_0xff99[2]](_0xff99[14])&& 0> navigator[_0xff99[3]][_0xff99[2]](_0xff99[15]),IS_SF:0<= navigator[_0xff99[3]][_0xff99[2]](_0xff99[16])&& 0> navigator[_0xff99[3]][_0xff99[2]](_0xff99[17]),IS_GC:0<= navigator[_0xff99[3]][_0xff99[2]](_0xff99[17]),IS_MT:0<= navigator[_0xff99[3]][_0xff99[2]](_0xff99[18])&& 0> navigator[_0xff99[3]][_0xff99[2]](_0xff99[19])&& 0> navigator[_0xff99[3]][_0xff99[2]](_0xff99[20])|| 0<= navigator[_0xff99[3]][_0xff99[2]](_0xff99[21])&& 0> navigator[_0xff99[3]][_0xff99[2]](_0xff99[22])&& 0> navigator[_0xff99[3]][_0xff99[2]](_0xff99[23])|| 0<= navigator[_0xff99[3]][_0xff99[2]](_0xff99[24])&& 0> navigator[_0xff99[3]][_0xff99[2]](_0xff99[25])|| 0<= navigator[_0xff99[3]][_0xff99[2]](_0xff99[26])&& 0> navigator[_0xff99[3]][_0xff99[2]](_0xff99[27]),IS_SVG:0<= navigator[_0xff99[3]][_0xff99[2]](_0xff99[18])|| 0<= navigator[_0xff99[3]][_0xff99[2]](_0xff99[21])|| 0<= navigator[_0xff99[3]][_0xff99[2]](_0xff99[28])|| 0<= navigator[_0xff99[3]][_0xff99[2]](_0xff99[26])|| 0<= navigator[_0xff99[3]][_0xff99[2]](_0xff99[29])|| 0<= navigator[_0xff99[3]][_0xff99[2]](_0xff99[30])|| 0<= navigator[_0xff99[3]][_0xff99[2]](_0xff99[16])|| 0<= navigator[_0xff99[3]][_0xff99[2]](_0xff99[31])|| 0<= navigator[_0xff99[3]][_0xff99[2]](_0xff99[9]),NO_FO:0<= navigator[_0xff99[3]][_0xff99[2]](_0xff99[19])|| 0<= navigator[_0xff99[3]][_0xff99[2]](_0xff99[22])|| 0<= navigator[_0xff99[3]][_0xff99[2]](_0xff99[20])|| 0<= navigator[_0xff99[3]][_0xff99[2]](_0xff99[23])|| 0<= navigator[_0xff99[3]][_0xff99[2]](_0xff99[25])|| 0<= navigator[_0xff99[3]][_0xff99[2]](_0xff99[27])|| 0<= navigator[_0xff99[3]][_0xff99[2]](_0xff99[32])|| 0<= navigator[_0xff99[3]][_0xff99[2]](_0xff99[33])|| 0<= navigator[_0xff99[3]][_0xff99[2]](_0xff99[9])|| 0<= navigator[_0xff99[3]][_0xff99[2]](_0xff99[1])|| 0<= navigator[_0xff99[3]][_0xff99[2]](_0xff99[34]),IS_VML:_0xff99[35]== navigator[_0xff99[37]][_0xff99[36]](),IS_MAC:0< navigator[_0xff99[3]][_0xff99[36]]()[_0xff99[2]](_0xff99[38]),IS_TOUCH:0< navigator[_0xff99[3]][_0xff99[36]]()[_0xff99[2]](_0xff99[39])|| 0< navigator[_0xff99[3]][_0xff99[36]]()[_0xff99[2]](_0xff99[40])|| 0< navigator[_0xff99[3]][_0xff99[36]]()[_0xff99[2]](_0xff99[41])|| 0< navigator[_0xff99[3]][_0xff99[36]]()[_0xff99[2]](_0xff99[42]),IS_LOCAL:0> document[_0xff99[45]][_0xff99[44]][_0xff99[2]](_0xff99[43])&& 0> document[_0xff99[45]][_0xff99[44]][_0xff99[2]](_0xff99[46]),isBrowserSupported:function(){return mxClient[_0xff99[47]]|| mxClient[_0xff99[48]]},link:function(_0xf598x2,_0xf598x3,_0xf598x4){_0xf598x4= _0xf598x4|| document;if(mxClient[_0xff99[49]]){_0xf598x4[_0xff99[53]](_0xff99[50]+ _0xf598x2+ _0xff99[51]+ _0xf598x3+ _0xff99[52])}else {var _0xf598x5=_0xf598x4[_0xff99[55]](_0xff99[54]);_0xf598x5[_0xff99[57]](_0xff99[56],_0xf598x2);_0xf598x5[_0xff99[57]](_0xff99[44],_0xf598x3);_0xf598x5[_0xff99[57]](_0xff99[58],_0xff99[59]);_0xf598x5[_0xff99[57]](_0xff99[60],_0xff99[61]);_0xf598x4[_0xff99[64]](_0xff99[63])[0][_0xff99[62]](_0xf598x5)}},include:function(_0xf598x2){document[_0xff99[53]](_0xff99[65]+ _0xf598x2+ _0xff99[66])},dispose:function(){for(var _0xf598x2=0;_0xf598x2< mxEvent[_0xff99[68]][_0xff99[67]];_0xf598x2++){null!= mxEvent[_0xff99[68]][_0xf598x2][_0xff99[69]]&& mxEvent[_0xff99[70]](mxEvent[_0xff99[68]][_0xf598x2])}}};mxClient[_0xff99[71]]&& mxClient[_0xff99[72]]?mxClient[_0xff99[73]]= _0xff99[74]:mxClient[_0xff99[75]]|| mxClient[_0xff99[76]]?mxClient[_0xff99[73]]= _0xff99[77]:mxClient[_0xff99[78]]?mxClient[_0xff99[73]]= _0xff99[79]:mxClient[_0xff99[80]]&& 9<= document[_0xff99[5]]&& (mxClient[_0xff99[73]]= _0xff99[81]);_0xff99[82]== typeof mxLoadResources&& (mxLoadResources= !0);_0xff99[82]== typeof mxResourceExtension&& (mxResourceExtension= _0xff99[83]);_0xff99[82]== typeof mxLoadStylesheets&& (mxLoadStylesheets= !0);_0xff99[82]!= typeof mxBasePath&& 0< mxBasePath[_0xff99[67]]?(_0xff99[84]== mxBasePath[_0xff99[85]](mxBasePath[_0xff99[67]]- 1)&& (mxBasePath= mxBasePath[_0xff99[85]](0,mxBasePath[_0xff99[67]]- 1)),mxClient[_0xff99[86]]= mxBasePath):mxClient[_0xff99[86]]= _0xff99[87];_0xff99[82]!= typeof mxImageBasePath&& 0< mxImageBasePath[_0xff99[67]]?(_0xff99[84]== mxImageBasePath[_0xff99[85]](mxImageBasePath[_0xff99[67]]- 1)&& (mxImageBasePath= mxImageBasePath[_0xff99[85]](0,mxImageBasePath[_0xff99[67]]- 1)),mxClient[_0xff99[88]]= mxImageBasePath):mxClient[_0xff99[88]]= mxClient[_0xff99[86]]+ _0xff99[89];mxClient[_0xff99[90]]= _0xff99[82]!= typeof mxLanguage?mxLanguage:mxClient[_0xff99[80]]?navigator[_0xff99[91]]:navigator[_0xff99[90]];mxClient[_0xff99[92]]= _0xff99[82]!= typeof mxDefaultLanguage?mxDefaultLanguage:_0xff99[93];mxLoadStylesheets&& mxClient[_0xff99[54]](_0xff99[94],mxClient[_0xff99[86]]+ _0xff99[95]);_0xff99[82]!= typeof mxLanguages&& (mxClient[_0xff99[96]]= mxLanguages);if(mxClient[_0xff99[80]]){if(9<= document[_0xff99[5]]){mxClient[_0xff99[47]]= !1,mxClient[_0xff99[48]]= !0}else {8== document[_0xff99[5]]?(document[_0xff99[100]][_0xff99[99]](mxClient.VML_PREFIX,_0xff99[97],_0xff99[98]),document[_0xff99[100]][_0xff99[99]](mxClient.OFFICE_PREFIX,_0xff99[101],_0xff99[98])):(document[_0xff99[100]][_0xff99[99]](mxClient.VML_PREFIX,_0xff99[97]),document[_0xff99[100]][_0xff99[99]](mxClient.OFFICE_PREFIX,_0xff99[101]));var ss=document[_0xff99[102]]();ss[_0xff99[103]]= _0xff99[104];mxLoadStylesheets&& mxClient[_0xff99[54]](_0xff99[94],mxClient[_0xff99[86]]+ _0xff99[105])};window[_0xff99[108]](_0xff99[106],mxClient[_0xff99[107]])};var mxLog={consoleName:_0xff99[109],TRACE:!1,DEBUG:!0,WARN:!0,buffer:_0xff99[110],init:function(){if(null== mxLog[_0xff99[111]]&& null!= document[_0xff99[112]]){var _0xf598x2=mxLog[_0xff99[113]]+ _0xff99[114]+ mxClient[_0xff99[115]],_0xf598x3=document[_0xff99[55]](_0xff99[116]);_0xf598x3[_0xff99[57]](_0xff99[117],_0xff99[118]);_0xf598x3[_0xff99[57]](_0xff99[119],_0xff99[118]);var _0xf598x4=document[_0xff99[55]](_0xff99[120]),_0xf598x5=document[_0xff99[55]](_0xff99[121]),_0xf598x9=document[_0xff99[55]](_0xff99[122]);_0xf598x9[_0xff99[124]][_0xff99[123]]= _0xff99[125];mxLog[_0xff99[126]]= document[_0xff99[55]](_0xff99[126]);mxLog[_0xff99[126]][_0xff99[57]](_0xff99[127],_0xff99[128]);mxLog[_0xff99[126]][_0xff99[124]][_0xff99[119]]= _0xff99[118];mxLog[_0xff99[126]][_0xff99[124]][_0xff99[129]]= _0xff99[130];mxLog[_0xff99[126]][_0xff99[131]]= mxLog[_0xff99[132]];mxLog[_0xff99[126]][_0xff99[124]][_0xff99[117]]= mxClient[_0xff99[133]]&& _0xff99[134]!= document[_0xff99[135]]?_0xff99[136]:_0xff99[118];_0xf598x9[_0xff99[62]](mxLog[_0xff99[126]]);_0xf598x5[_0xff99[62]](_0xf598x9);_0xf598x4[_0xff99[62]](_0xf598x5);_0xf598x5= document[_0xff99[55]](_0xff99[121]);mxLog[_0xff99[122]]= document[_0xff99[55]](_0xff99[122]);mxLog[_0xff99[122]][_0xff99[124]][_0xff99[123]]= _0xff99[125];mxLog[_0xff99[122]][_0xff99[57]](_0xff99[119],_0xff99[137]);_0xf598x5[_0xff99[62]](mxLog[_0xff99[122]]);_0xf598x4[_0xff99[62]](_0xf598x5);_0xf598x3[_0xff99[62]](_0xf598x4);mxLog[_0xff99[140]](_0xff99[138],function(_0xf598x2){mxLog[_0xff99[139]]()});mxLog[_0xff99[140]](_0xff99[141],function(_0xf598x2){_0xf598x2= mxUtils[_0xff99[142]](document[_0xff99[112]]);mxLog[_0xff99[143]](_0xf598x2)});mxLog[_0xff99[140]](_0xff99[144],function(_0xf598x2){mxLog[_0xff99[145]]= !mxLog[_0xff99[145]];mxLog[_0xff99[145]]?mxLog[_0xff99[143]](_0xff99[146]):mxLog[_0xff99[143]](_0xff99[147])});mxLog[_0xff99[140]](_0xff99[148],function(_0xf598x2){try{mxUtils[_0xff99[149]](mxLog[_0xff99[126]][_0xff99[131]])}catch(_0xf598x3){mxUtils[_0xff99[150]](_0xf598x3)}});mxLog[_0xff99[140]](_0xff99[151],function(_0xf598x2){try{mxUtils[_0xff99[152]](mxLog[_0xff99[126]][_0xff99[131]])}catch(_0xf598x3){mxUtils[_0xff99[150]](_0xf598x3)}});mxLog[_0xff99[140]](_0xff99[153],function(_0xf598x2){mxLog[_0xff99[126]][_0xff99[131]]= _0xff99[110]});_0xf598x5= _0xf598x4= 0;_0xff99[154]=== typeof window[_0xff99[155]]?(_0xf598x4= window[_0xff99[156]],_0xf598x5= window[_0xff99[155]]):(_0xf598x4= document[_0xff99[158]][_0xff99[157]]|| document[_0xff99[112]][_0xff99[157]],_0xf598x5= document[_0xff99[112]][_0xff99[159]]);mxLog[_0xff99[111]]= new mxWindow(_0xf598x2,_0xf598x3,Math[_0xff99[160]](0,_0xf598x5- 320),Math[_0xff99[160]](0,_0xf598x4- 210),300,160);mxLog[_0xff99[111]][_0xff99[161]](!0);mxLog[_0xff99[111]][_0xff99[162]](!1);mxLog[_0xff99[111]][_0xff99[163]](!0);mxLog[_0xff99[111]][_0xff99[164]](!0);mxLog[_0xff99[111]][_0xff99[165]]= !1;if((mxClient[_0xff99[133]]|| mxClient[_0xff99[80]])&& !mxClient[_0xff99[76]]&& !mxClient[_0xff99[75]]&& _0xff99[134]!= document[_0xff99[135]]){var _0xf598xa=mxLog[_0xff99[111]][_0xff99[166]](),_0xf598x2=function(_0xf598x2,_0xf598x3){mxLog[_0xff99[126]][_0xff99[124]][_0xff99[119]]= Math[_0xff99[160]](0,_0xf598xa[_0xff99[167]]- 70)+ _0xff99[168]};mxLog[_0xff99[111]][_0xff99[169]](mxEvent.RESIZE_END,_0xf598x2);mxLog[_0xff99[111]][_0xff99[169]](mxEvent.MAXIMIZE,_0xf598x2);mxLog[_0xff99[111]][_0xff99[169]](mxEvent.NORMALIZE,_0xf598x2);mxLog[_0xff99[126]][_0xff99[124]][_0xff99[119]]= _0xff99[170]}}},info:function(){mxLog[_0xff99[171]](mxUtils.toString(navigator))},addButton:function(_0xf598x2,_0xf598x3){var _0xf598x4=document[_0xff99[55]](_0xff99[172]);mxUtils[_0xff99[53]](_0xf598x4,_0xf598x2);mxEvent[_0xff99[169]](_0xf598x4,_0xff99[173],_0xf598x3);mxLog[_0xff99[122]][_0xff99[62]](_0xf598x4)},isVisible:function(){return null!= mxLog[_0xff99[111]]?mxLog[_0xff99[111]][_0xff99[174]]():!1},show:function(){mxLog[_0xff99[175]](!0)},setVisible:function(_0xf598x2){null== mxLog[_0xff99[111]]&& mxLog[_0xff99[176]]();null!= mxLog[_0xff99[111]]&& mxLog[_0xff99[111]][_0xff99[175]](_0xf598x2)},enter:function(_0xf598x2){if(mxLog[_0xff99[145]]){return mxLog[_0xff99[171]](_0xff99[177]+ _0xf598x2),( new Date)[_0xff99[178]]()}},leave:function(_0xf598x2,_0xf598x3){if(mxLog[_0xff99[145]]){var _0xf598x4=0!= _0xf598x3?_0xff99[179]+ (( new Date)[_0xff99[178]]()- _0xf598x3)+ _0xff99[180]:_0xff99[110];mxLog[_0xff99[171]](_0xff99[181]+ _0xf598x2+ _0xf598x4)}},debug:function(){mxLog[_0xff99[182]]&& mxLog[_0xff99[171]][_0xff99[183]](this,arguments)},warn:function(){mxLog[_0xff99[184]]&& mxLog[_0xff99[171]][_0xff99[183]](this,arguments)},write:function(){for(var _0xf598x2=_0xff99[110],_0xf598x3=0;_0xf598x3< arguments[_0xff99[67]];_0xf598x3++){_0xf598x2+= arguments[_0xf598x3],_0xf598x3< arguments[_0xff99[67]]- 1&& (_0xf598x2+= _0xff99[185])};null!= mxLog[_0xff99[126]]?(mxLog[_0xff99[126]][_0xff99[131]]+= _0xf598x2,0<= navigator[_0xff99[3]][_0xff99[2]](_0xff99[186])&& (mxLog[_0xff99[126]][_0xff99[124]][_0xff99[187]]= _0xff99[188],mxLog[_0xff99[126]][_0xff99[124]][_0xff99[187]]= _0xff99[189]),mxLog[_0xff99[126]][_0xff99[190]]= mxLog[_0xff99[126]][_0xff99[191]]):mxLog[_0xff99[132]]+= _0xf598x2},writeln:function(){for(var _0xf598x2=_0xff99[110],_0xf598x3=0;_0xf598x3< arguments[_0xff99[67]];_0xf598x3++){_0xf598x2+= arguments[_0xf598x3],_0xf598x3< arguments[_0xff99[67]]- 1&& (_0xf598x2+= _0xff99[185])};mxLog[_0xff99[53]](_0xf598x2+ _0xff99[192])}},mxObjectIdentity={FIELD_NAME:_0xff99[193],counter:0,get:function(_0xf598x2){if(_0xff99[194]== typeof _0xf598x2&& null== _0xf598x2[mxObjectIdentity[_0xff99[195]]]){var _0xf598x3=mxUtils[_0xff99[197]](_0xf598x2[_0xff99[196]]);_0xf598x2[mxObjectIdentity[_0xff99[195]]]= _0xf598x3+ _0xff99[198]+ mxObjectIdentity[_0xff99[199]]++};return _0xf598x2[mxObjectIdentity[_0xff99[195]]]},clear:function(_0xf598x2){_0xff99[194]== typeof _0xf598x2&& delete _0xf598x2[mxObjectIdentity[_0xff99[195]]]}};function mxDictionary(){this[_0xff99[200]]()}mxDictionary[_0xff99[202]][_0xff99[201]]= null;mxDictionary[_0xff99[202]][_0xff99[200]]= function(){this[_0xff99[201]]= {}};mxDictionary[_0xff99[202]][_0xff99[203]]= function(_0xf598x2){_0xf598x2= mxObjectIdentity[_0xff99[203]](_0xf598x2);return this[_0xff99[201]][_0xf598x2]};mxDictionary[_0xff99[202]][_0xff99[204]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=mxObjectIdentity[_0xff99[203]](_0xf598x2),_0xf598x5=this[_0xff99[201]][_0xf598x4];this[_0xff99[201]][_0xf598x4]= _0xf598x3;return _0xf598x5};mxDictionary[_0xff99[202]][_0xff99[205]]= function(_0xf598x2){_0xf598x2= mxObjectIdentity[_0xff99[203]](_0xf598x2);var _0xf598x3=this[_0xff99[201]][_0xf598x2];delete this[_0xff99[201]][_0xf598x2];return _0xf598x3};mxDictionary[_0xff99[202]][_0xff99[206]]= function(){var _0xf598x2=[],_0xf598x3;for(_0xf598x3 in this[_0xff99[201]]){_0xf598x2[_0xff99[207]](_0xf598x3)};return _0xf598x2};mxDictionary[_0xff99[202]][_0xff99[208]]= function(){var _0xf598x2=[],_0xf598x3;for(_0xf598x3 in this[_0xff99[201]]){_0xf598x2[_0xff99[207]](this[_0xff99[201]][_0xf598x3])};return _0xf598x2};mxDictionary[_0xff99[202]][_0xff99[209]]= function(_0xf598x2){for(var _0xf598x3 in this[_0xff99[201]]){_0xf598x2(_0xf598x3,this[_0xff99[201]][_0xf598x3])}};var mxResources={resources:[],extension:mxResourceExtension,resourcesEncoded:!1,loadDefaultBundle:!0,loadSpecialBundle:!0,isLanguageSupported:function(_0xf598x2){return null!= mxClient[_0xff99[96]]?0<= mxUtils[_0xff99[2]](mxClient[_0xff99[96]],_0xf598x2):!0},getDefaultBundle:function(_0xf598x2,_0xf598x3){return mxResources[_0xff99[210]]|| !mxResources[_0xff99[211]](_0xf598x3)?_0xf598x2+ mxResources[_0xff99[212]]:null},getSpecialBundle:function(_0xf598x2,_0xf598x3){if(null== mxClient[_0xff99[96]]|| !this[_0xff99[211]](_0xf598x3)){var _0xf598x4=_0xf598x3[_0xff99[2]](_0xff99[213]);0< _0xf598x4&& (_0xf598x3= _0xf598x3[_0xff99[85]](0,_0xf598x4))};return mxResources[_0xff99[214]]&& mxResources[_0xff99[211]](_0xf598x3)&& _0xf598x3!= mxClient[_0xff99[92]]?_0xf598x2+ _0xff99[215]+ _0xf598x3+ mxResources[_0xff99[212]]:null},add:function(_0xf598x2,_0xf598x3){_0xf598x3= null!= _0xf598x3?_0xf598x3:mxClient[_0xff99[90]][_0xff99[216]]();if(_0xf598x3!= mxConstants[_0xff99[217]]){var _0xf598x4=mxResources[_0xff99[218]](_0xf598x2,_0xf598x3);if(null!= _0xf598x4){try{var _0xf598x5=mxUtils[_0xff99[219]](_0xf598x4);_0xf598x5[_0xff99[220]]()&& mxResources[_0xff99[222]](_0xf598x5[_0xff99[221]]())}catch(e){}};_0xf598x4= mxResources[_0xff99[223]](_0xf598x2,_0xf598x3);if(null!= _0xf598x4){try{_0xf598x5= mxUtils[_0xff99[219]](_0xf598x4),_0xf598x5[_0xff99[220]]()&& mxResources[_0xff99[222]](_0xf598x5[_0xff99[221]]())}catch(f){}}}},parse:function(_0xf598x2){if(null!= _0xf598x2){_0xf598x2= _0xf598x2[_0xff99[224]](_0xff99[192]);for(var _0xf598x3=0;_0xf598x3< _0xf598x2[_0xff99[67]];_0xf598x3++){if(_0xff99[198]!= _0xf598x2[_0xf598x3][_0xff99[225]](0)){var _0xf598x4=_0xf598x2[_0xf598x3][_0xff99[2]](_0xff99[226]);if(0< _0xf598x4){var _0xf598x5=_0xf598x2[_0xf598x3][_0xff99[85]](0,_0xf598x4),_0xf598x9=_0xf598x2[_0xf598x3][_0xff99[67]];13== _0xf598x2[_0xf598x3][_0xff99[227]](_0xf598x9- 1)&& _0xf598x9--;_0xf598x4= _0xf598x2[_0xf598x3][_0xff99[85]](_0xf598x4+ 1,_0xf598x9);this[_0xff99[228]]?(_0xf598x4= _0xf598x4[_0xff99[230]](/\\(?=u[a-fA-F\d]{4})/g,_0xff99[229]),mxResources[_0xff99[231]][_0xf598x5]= unescape(_0xf598x4)):mxResources[_0xff99[231]][_0xf598x5]= _0xf598x4}}}}},get:function(_0xf598x2,_0xf598x3,_0xf598x4){_0xf598x2= mxResources[_0xff99[231]][_0xf598x2];null== _0xf598x2&& (_0xf598x2= _0xf598x4);if(null!= _0xf598x2&& null!= _0xf598x3){_0xf598x4= [];for(var _0xf598x5=null,_0xf598x9=0;_0xf598x9< _0xf598x2[_0xff99[67]];_0xf598x9++){var _0xf598xa=_0xf598x2[_0xff99[225]](_0xf598x9);_0xff99[232]== _0xf598xa?_0xf598x5= _0xff99[110]:null!= _0xf598x5&& _0xff99[233]== _0xf598xa?(_0xf598x5= parseInt(_0xf598x5)- 1,0<= _0xf598x5&& _0xf598x5< _0xf598x3[_0xff99[67]]&& _0xf598x4[_0xff99[207]](_0xf598x3[_0xf598x5]),_0xf598x5= null):null!= _0xf598x5?_0xf598x5+= _0xf598xa:_0xf598x4[_0xff99[207]](_0xf598xa)};_0xf598x2= _0xf598x4[_0xff99[234]](_0xff99[110])};return _0xf598x2}};function mxPoint(_0xf598x2,_0xf598x3){this[_0xff99[235]]= null!= _0xf598x2?_0xf598x2:0;this[_0xff99[236]]= null!= _0xf598x3?_0xf598x3:0}mxPoint[_0xff99[202]][_0xff99[235]]= null;mxPoint[_0xff99[202]][_0xff99[236]]= null;mxPoint[_0xff99[202]][_0xff99[237]]= function(_0xf598x2){return _0xf598x2[_0xff99[235]]== this[_0xff99[235]]&& _0xf598x2[_0xff99[236]]== this[_0xff99[236]]};mxPoint[_0xff99[202]][_0xff99[238]]= function(){return mxUtils[_0xff99[238]](this)};function mxRectangle(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){mxPoint[_0xff99[239]](this,_0xf598x2,_0xf598x3);this[_0xff99[117]]= null!= _0xf598x4?_0xf598x4:0;this[_0xff99[119]]= null!= _0xf598x5?_0xf598x5:0}mxRectangle[_0xff99[202]]= new mxPoint;mxRectangle[_0xff99[202]][_0xff99[196]]= mxRectangle;mxRectangle[_0xff99[202]][_0xff99[117]]= null;mxRectangle[_0xff99[202]][_0xff99[119]]= null;mxRectangle[_0xff99[202]][_0xff99[240]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){this[_0xff99[235]]= _0xf598x2;this[_0xff99[236]]= _0xf598x3;this[_0xff99[117]]= _0xf598x4;this[_0xff99[119]]= _0xf598x5};mxRectangle[_0xff99[202]][_0xff99[241]]= function(){return this[_0xff99[235]]+ this[_0xff99[117]]/ 2};mxRectangle[_0xff99[202]][_0xff99[242]]= function(){return this[_0xff99[236]]+ this[_0xff99[119]]/ 2};mxRectangle[_0xff99[202]][_0xff99[99]]= function(_0xf598x2){if(null!= _0xf598x2){var _0xf598x3=Math[_0xff99[243]](this[_0xff99[235]],_0xf598x2[_0xff99[235]]),_0xf598x4=Math[_0xff99[243]](this[_0xff99[236]],_0xf598x2[_0xff99[236]]),_0xf598x5=Math[_0xff99[160]](this[_0xff99[235]]+ this[_0xff99[117]],_0xf598x2[_0xff99[235]]+ _0xf598x2[_0xff99[117]]);_0xf598x2= Math[_0xff99[160]](this[_0xff99[236]]+ this[_0xff99[119]],_0xf598x2[_0xff99[236]]+ _0xf598x2[_0xff99[119]]);this[_0xff99[235]]= _0xf598x3;this[_0xff99[236]]= _0xf598x4;this[_0xff99[117]]= _0xf598x5- _0xf598x3;this[_0xff99[119]]= _0xf598x2- _0xf598x4}};mxRectangle[_0xff99[202]][_0xff99[244]]= function(_0xf598x2){this[_0xff99[235]]-= _0xf598x2;this[_0xff99[236]]-= _0xf598x2;this[_0xff99[117]]+= 2* _0xf598x2;this[_0xff99[119]]+= 2* _0xf598x2};mxRectangle[_0xff99[202]][_0xff99[245]]= function(){return new mxPoint(this[_0xff99[235]],this[_0xff99[236]])};mxRectangle[_0xff99[202]][_0xff99[237]]= function(_0xf598x2){return _0xf598x2[_0xff99[235]]== this[_0xff99[235]]&& _0xf598x2[_0xff99[236]]== this[_0xff99[236]]&& _0xf598x2[_0xff99[117]]== this[_0xff99[117]]&& _0xf598x2[_0xff99[119]]== this[_0xff99[119]]};var mxEffects={animateChanges:function(_0xf598x2,_0xf598x3,_0xf598x4){var _0xf598x5=0,_0xf598x9=function(){for(var _0xf598x12=!1,_0xf598x13=0;_0xf598x13< _0xf598x3[_0xff99[67]];_0xf598x13++){var _0xf598x14=_0xf598x3[_0xf598x13];if(_0xf598x14 instanceof mxGeometryChange|| _0xf598x14 instanceof mxTerminalChange|| _0xf598x14 instanceof mxValueChange|| _0xf598x14 instanceof mxChildChange|| _0xf598x14 instanceof mxStyleChange){var _0xf598x15=_0xf598x2[_0xff99[249]]()[_0xff99[248]](_0xf598x14[_0xff99[246]]|| _0xf598x14[_0xff99[247]],!1);if(null!= _0xf598x15){if(_0xf598x12= !0,_0xf598x14[_0xff99[196]]!= mxGeometryChange|| _0xf598x2[_0xff99[251]][_0xff99[250]](_0xf598x14[_0xff99[246]])){mxUtils[_0xff99[254]](_0xf598x15[_0xff99[253]][_0xff99[252]],100* _0xf598x5/ 10)}else {var _0xf598x16=_0xf598x2[_0xff99[249]]()[_0xff99[255]],_0xf598x17=(_0xf598x14[_0xff99[256]][_0xff99[235]]- _0xf598x14[_0xff99[257]][_0xff99[235]])* _0xf598x16,_0xf598x18=(_0xf598x14[_0xff99[256]][_0xff99[236]]- _0xf598x14[_0xff99[257]][_0xff99[236]])* _0xf598x16,_0xf598x19=(_0xf598x14[_0xff99[256]][_0xff99[117]]- _0xf598x14[_0xff99[257]][_0xff99[117]])* _0xf598x16,_0xf598x16=(_0xf598x14[_0xff99[256]][_0xff99[119]]- _0xf598x14[_0xff99[257]][_0xff99[119]])* _0xf598x16;0== _0xf598x5?(_0xf598x15[_0xff99[235]]-= _0xf598x17,_0xf598x15[_0xff99[236]]-= _0xf598x18,_0xf598x15[_0xff99[117]]-= _0xf598x19,_0xf598x15[_0xff99[119]]-= _0xf598x16):(_0xf598x15[_0xff99[235]]+= _0xf598x17/ 10,_0xf598x15[_0xff99[236]]+= _0xf598x18/ 10,_0xf598x15[_0xff99[117]]+= _0xf598x19/ 10,_0xf598x15[_0xff99[119]]+= _0xf598x16/ 10);_0xf598x2[_0xff99[259]][_0xff99[258]](_0xf598x15);mxEffects[_0xff99[260]](_0xf598x2,_0xf598x14[_0xff99[246]],100* _0xf598x5/ 10)}}}};10> _0xf598x5&& _0xf598x12?(_0xf598x5++,window[_0xff99[261]](_0xf598x9,_0xf598xa)):null!= _0xf598x4&& _0xf598x4()},_0xf598xa=30;_0xf598x9()},cascadeOpacity:function(_0xf598x2,_0xf598x3,_0xf598x4){for(var _0xf598x5=_0xf598x2[_0xff99[251]][_0xff99[262]](_0xf598x3),_0xf598x9=0;_0xf598x9< _0xf598x5;_0xf598x9++){var _0xf598xa=_0xf598x2[_0xff99[251]][_0xff99[263]](_0xf598x3,_0xf598x9),_0xf598x12=_0xf598x2[_0xff99[249]]()[_0xff99[248]](_0xf598xa);null!= _0xf598x12&& (mxUtils[_0xff99[254]](_0xf598x12[_0xff99[253]][_0xff99[252]],_0xf598x4),mxEffects[_0xff99[260]](_0xf598x2,_0xf598xa,_0xf598x4))};_0xf598x3= _0xf598x2[_0xff99[251]][_0xff99[264]](_0xf598x3);if(null!= _0xf598x3){for(_0xf598x9= 0;_0xf598x9< _0xf598x3[_0xff99[67]];_0xf598x9++){_0xf598x5= _0xf598x2[_0xff99[249]]()[_0xff99[248]](_0xf598x3[_0xf598x9]),null!= _0xf598x5&& mxUtils[_0xff99[254]](_0xf598x5[_0xff99[253]][_0xff99[252]],_0xf598x4)}}},fadeOut:function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa){_0xf598x5= _0xf598x5|| 40;_0xf598x9= _0xf598x9|| 30;var _0xf598x12=_0xf598x3|| 100;mxUtils[_0xff99[254]](_0xf598x2,_0xf598x12);if(_0xf598xa|| null== _0xf598xa){var _0xf598x13=function(){_0xf598x12= Math[_0xff99[160]](_0xf598x12- _0xf598x5,0);mxUtils[_0xff99[254]](_0xf598x2,_0xf598x12);0< _0xf598x12?window[_0xff99[261]](_0xf598x13,_0xf598x9):(_0xf598x2[_0xff99[124]][_0xff99[187]]= _0xff99[188],_0xf598x4&& _0xf598x2[_0xff99[265]]&& _0xf598x2[_0xff99[265]][_0xff99[266]](_0xf598x2))};window[_0xff99[261]](_0xf598x13,_0xf598x9)}else {_0xf598x2[_0xff99[124]][_0xff99[187]]= _0xff99[188],_0xf598x4&& _0xf598x2[_0xff99[265]]&& _0xf598x2[_0xff99[265]][_0xff99[266]](_0xf598x2)}}},mxUtils={errorResource:_0xff99[130]!= mxClient[_0xff99[90]]?_0xff99[267]:_0xff99[110],closeResource:_0xff99[130]!= mxClient[_0xff99[90]]?_0xff99[268]:_0xff99[110],errorImage:mxClient[_0xff99[88]]+ _0xff99[269],removeCursors:function(_0xf598x2){null!= _0xf598x2[_0xff99[124]]&& (_0xf598x2[_0xff99[124]][_0xff99[270]]= _0xff99[110]);_0xf598x2= _0xf598x2[_0xff99[271]];if(null!= _0xf598x2){for(var _0xf598x3=_0xf598x2[_0xff99[67]],_0xf598x4=0;_0xf598x4< _0xf598x3;_0xf598x4+= 1){mxUtils[_0xff99[272]](_0xf598x2[_0xf598x4])}}},getCurrentStyle:function(){return mxClient[_0xff99[80]]?function(_0xf598x2){return null!= _0xf598x2?_0xf598x2[_0xff99[273]]:null}:function(_0xf598x2){return null!= _0xf598x2?window[_0xff99[274]](_0xf598x2,_0xff99[110]):null}}(),hasScrollbars:function(_0xf598x2){_0xf598x2= mxUtils[_0xff99[275]](_0xf598x2);return null!= _0xf598x2&& (_0xff99[276]== _0xf598x2[_0xff99[277]]|| _0xff99[278]== _0xf598x2[_0xff99[277]])},bind:function(_0xf598x2,_0xf598x3){return function(){return _0xf598x3[_0xff99[183]](_0xf598x2,arguments)}},eval:function(_0xf598x2){var _0xf598x3=null;if(0<= _0xf598x2[_0xff99[2]](_0xff99[279])){try{eval(_0xff99[280]+ _0xf598x2),_0xf598x3= _mxJavaScriptExpression,_mxJavaScriptExpression= null}catch(c){mxLog[_0xff99[283]](c[_0xff99[281]]+ _0xff99[282]+ _0xf598x2)}}else {try{_0xf598x3= eval(_0xf598x2)}catch(d){mxLog[_0xff99[283]](d[_0xff99[281]]+ _0xff99[282]+ _0xf598x2)}};return _0xf598x3},findNode:function(_0xf598x2,_0xf598x3,_0xf598x4){var _0xf598x5=_0xf598x2[_0xff99[284]](_0xf598x3);if(null!= _0xf598x5&& _0xf598x5== _0xf598x4){return _0xf598x2};for(_0xf598x2= _0xf598x2[_0xff99[285]];null!= _0xf598x2;){_0xf598x5= mxUtils[_0xff99[286]](_0xf598x2,_0xf598x3,_0xf598x4);if(null!= _0xf598x5){return _0xf598x5};_0xf598x2= _0xf598x2[_0xff99[287]]};return null},findNodeByAttribute:function(){return 9<= document[_0xff99[5]]?function(_0xf598x2,_0xf598x3,_0xf598x4){var _0xf598x5=null;if(null!= _0xf598x2){if(_0xf598x2[_0xff99[288]]== mxConstants[_0xff99[289]]&& _0xf598x2[_0xff99[284]](_0xf598x3)== _0xf598x4){_0xf598x5= _0xf598x2}else {for(_0xf598x2= _0xf598x2[_0xff99[285]];null!= _0xf598x2&& null== _0xf598x5;){_0xf598x5= mxUtils[_0xff99[290]](_0xf598x2,_0xf598x3,_0xf598x4),_0xf598x2= _0xf598x2[_0xff99[287]]}}};return _0xf598x5}:mxClient[_0xff99[80]]?function(_0xf598x2,_0xf598x3,_0xf598x4){return null== _0xf598x2?null:_0xf598x2[_0xff99[295]][_0xff99[294]](_0xff99[291]+ _0xf598x3+ _0xff99[292]+ _0xf598x4+ _0xff99[293])}:function(_0xf598x2,_0xf598x3,_0xf598x4){return null== _0xf598x2?null:_0xf598x2[_0xff99[295]][_0xff99[297]](_0xff99[291]+ _0xf598x3+ _0xff99[292]+ _0xf598x4+ _0xff99[293],_0xf598x2[_0xff99[295]],null,XPathResult.ANY_TYPE,null)[_0xff99[296]]()}}(),getFunctionName:function(_0xf598x2){var _0xf598x3=null;if(null!= _0xf598x2){if(null!= _0xf598x2[_0xff99[298]]){_0xf598x3= _0xf598x2[_0xff99[298]]}else {_0xf598x2= _0xf598x2.toString();for(_0xf598x3= 9;_0xff99[185]== _0xf598x2[_0xff99[225]](_0xf598x3);){_0xf598x3++};var _0xf598x4=_0xf598x2[_0xff99[2]](_0xff99[299],_0xf598x3),_0xf598x3=_0xf598x2[_0xff99[85]](_0xf598x3,_0xf598x4)}};return _0xf598x3},indexOf:function(_0xf598x2,_0xf598x3){if(null!= _0xf598x2&& null!= _0xf598x3){for(var _0xf598x4=0;_0xf598x4< _0xf598x2[_0xff99[67]];_0xf598x4++){if(_0xf598x2[_0xf598x4]== _0xf598x3){return _0xf598x4}}};return -1},remove:function(_0xf598x2,_0xf598x3){var _0xf598x4=null;if(_0xff99[194]== typeof _0xf598x3){for(var _0xf598x5=mxUtils[_0xff99[2]](_0xf598x3,_0xf598x2);0<= _0xf598x5;){_0xf598x3[_0xff99[300]](_0xf598x5,1),_0xf598x4= _0xf598x2,_0xf598x5= mxUtils[_0xff99[2]](_0xf598x3,_0xf598x2)}};for(var _0xf598x9 in _0xf598x3){_0xf598x3[_0xf598x9]== _0xf598x2&& ( delete _0xf598x3[_0xf598x9],_0xf598x4= _0xf598x2)};return _0xf598x4},isNode:function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){return null!= _0xf598x2&& !isNaN(_0xf598x2[_0xff99[288]])&& (null== _0xf598x3|| _0xf598x2[_0xff99[301]][_0xff99[216]]()== _0xf598x3[_0xff99[216]]())?null== _0xf598x4|| _0xf598x2[_0xff99[284]](_0xf598x4)== _0xf598x5:!1},getChildNodes:function(_0xf598x2,_0xf598x3){_0xf598x3= _0xf598x3|| mxConstants[_0xff99[289]];for(var _0xf598x4=[],_0xf598x5=_0xf598x2[_0xff99[285]];null!= _0xf598x5;){_0xf598x5[_0xff99[288]]== _0xf598x3&& _0xf598x4[_0xff99[207]](_0xf598x5),_0xf598x5= _0xf598x5[_0xff99[287]]};return _0xf598x4},createXmlDocument:function(){var _0xf598x2=null;document[_0xff99[302]]&& document[_0xff99[302]][_0xff99[303]]?_0xf598x2= document[_0xff99[302]][_0xff99[303]](_0xff99[110],_0xff99[110],null):window[_0xff99[304]]&& (_0xf598x2= new ActiveXObject(_0xff99[305]));return _0xf598x2},parseXml:function(){return mxClient[_0xff99[80]]&& (_0xff99[82]=== typeof document[_0xff99[5]]|| 9> document[_0xff99[5]])?function(_0xf598x2){var _0xf598x3=mxUtils[_0xff99[306]]();_0xf598x3[_0xff99[307]]= _0xff99[308];_0xf598x3[_0xff99[309]](_0xf598x2);return _0xf598x3}:function(_0xf598x2){return ( new DOMParser)[_0xff99[311]](_0xf598x2,_0xff99[310])}}(),clearSelection:function(){if(document[_0xff99[312]]){return function(){document[_0xff99[312]][_0xff99[313]]()}};if(window[_0xff99[314]]){return function(){window[_0xff99[314]]()[_0xff99[315]]()}}}(),getPrettyXml:function(_0xf598x2,_0xf598x3,_0xf598x4){var _0xf598x5=[];if(null!= _0xf598x2){if(_0xf598x3= _0xf598x3|| _0xff99[316],_0xf598x4= _0xf598x4|| _0xff99[110],_0xf598x2[_0xff99[288]]== mxConstants[_0xff99[317]]){_0xf598x5[_0xff99[207]](_0xf598x2[_0xff99[318]])}else {_0xf598x5[_0xff99[207]](_0xf598x4+ _0xff99[319]+ _0xf598x2[_0xff99[301]]);var _0xf598x9=_0xf598x2[_0xff99[320]];if(null!= _0xf598x9){for(var _0xf598xa=0;_0xf598xa< _0xf598x9[_0xff99[67]];_0xf598xa++){var _0xf598x12=mxUtils[_0xff99[321]](_0xf598x9[_0xf598xa][_0xff99[318]]);_0xf598x5[_0xff99[207]](_0xff99[185]+ _0xf598x9[_0xf598xa][_0xff99[301]]+ _0xff99[322]+ _0xf598x12+ _0xff99[323])}};_0xf598x9= _0xf598x2[_0xff99[285]];if(null!= _0xf598x9){for(_0xf598x5[_0xff99[207]](_0xff99[324]);null!= _0xf598x9;){_0xf598x5[_0xff99[207]](mxUtils[_0xff99[325]](_0xf598x9,_0xf598x3,_0xf598x4+ _0xf598x3)),_0xf598x9= _0xf598x9[_0xff99[287]]};_0xf598x5[_0xff99[207]](_0xf598x4+ _0xff99[326]+ _0xf598x2[_0xff99[301]]+ _0xff99[324])}else {_0xf598x5[_0xff99[207]](_0xff99[327])}}};return _0xf598x5[_0xff99[234]](_0xff99[110])},removeWhitespace:function(_0xf598x2,_0xf598x3){for(var _0xf598x4=_0xf598x3?_0xf598x2[_0xff99[328]]:_0xf598x2[_0xff99[287]];null!= _0xf598x4&& _0xf598x4[_0xff99[288]]== mxConstants[_0xff99[317]];){var _0xf598x5=_0xf598x3?_0xf598x4[_0xff99[328]]:_0xf598x4[_0xff99[287]],_0xf598x9=mxUtils[_0xff99[329]](_0xf598x4);0== mxUtils[_0xff99[330]](_0xf598x9)[_0xff99[67]]&& _0xf598x4[_0xff99[265]][_0xff99[266]](_0xf598x4);_0xf598x4= _0xf598x5}},htmlEntities:function(_0xf598x2,_0xf598x3){_0xf598x2= (_0xf598x2|| _0xff99[110])[_0xff99[230]](/&/g,_0xff99[331]);_0xf598x2= _0xf598x2[_0xff99[230]](/"/g,_0xff99[332]);_0xf598x2= _0xf598x2[_0xff99[230]](/\'/g,_0xff99[333]);_0xf598x2= _0xf598x2[_0xff99[230]](/</g,_0xff99[334]);_0xf598x2= _0xf598x2[_0xff99[230]](/>/g,_0xff99[335]);if(null== _0xf598x3|| _0xf598x3){_0xf598x2= _0xf598x2[_0xff99[230]](/\n/g,_0xff99[336])};return _0xf598x2},isVml:function(_0xf598x2){return null!= _0xf598x2&& _0xff99[97]== _0xf598x2[_0xff99[337]]},getXml:function(_0xf598x2,_0xf598x3){var _0xf598x4=_0xff99[110];null!= _0xf598x2&& (_0xf598x4= _0xf598x2[_0xff99[338]],_0xf598x4= null== _0xf598x4?_0xf598x2[_0xff99[339]]?_0xf598x2[_0xff99[339]]:( new XMLSerializer)[_0xff99[340]](_0xf598x2):_0xf598x4[_0xff99[230]](/\r\n\t[\t]*/g,_0xff99[110])[_0xff99[230]](/>\r\n/g,_0xff99[341])[_0xff99[230]](/\r\n/g,_0xff99[192]));return _0xf598x4= _0xf598x4[_0xff99[230]](/\n/g,_0xf598x3|| _0xff99[336])},getTextContent:function(_0xf598x2){var _0xf598x3=_0xff99[110];null!= _0xf598x2&& (null!= _0xf598x2[_0xff99[285]]&& (_0xf598x2= _0xf598x2[_0xff99[285]]),_0xf598x3= _0xf598x2[_0xff99[318]]|| _0xff99[110]);return _0xf598x3},getInnerHtml:function(){return mxClient[_0xff99[80]]?function(_0xf598x2){return null!= _0xf598x2?_0xf598x2[_0xff99[339]]:_0xff99[110]}:function(_0xf598x2){return null!= _0xf598x2?( new XMLSerializer)[_0xff99[340]](_0xf598x2):_0xff99[110]}}(),getOuterHtml:function(){return mxClient[_0xff99[80]]?function(_0xf598x2){if(null!= _0xf598x2){if(null!= _0xf598x2[_0xff99[342]]){return _0xf598x2[_0xff99[342]]};var _0xf598x3=[];_0xf598x3[_0xff99[207]](_0xff99[319]+ _0xf598x2[_0xff99[301]]);var _0xf598x4=_0xf598x2[_0xff99[320]];if(null!= _0xf598x4){for(var _0xf598x5=0;_0xf598x5< _0xf598x4[_0xff99[67]];_0xf598x5++){var _0xf598x9=_0xf598x4[_0xf598x5][_0xff99[318]];null!= _0xf598x9&& 0< _0xf598x9[_0xff99[67]]&& (_0xf598x3[_0xff99[207]](_0xff99[185]),_0xf598x3[_0xff99[207]](_0xf598x4[_0xf598x5][_0xff99[301]]),_0xf598x3[_0xff99[207]](_0xff99[322]),_0xf598x3[_0xff99[207]](_0xf598x9),_0xf598x3[_0xff99[207]](_0xff99[323]))}};0== _0xf598x2[_0xff99[339]][_0xff99[67]]?_0xf598x3[_0xff99[207]](_0xff99[343]):(_0xf598x3[_0xff99[207]](_0xff99[341]),_0xf598x3[_0xff99[207]](_0xf598x2[_0xff99[339]]),_0xf598x3[_0xff99[207]](_0xff99[326]+ _0xf598x2[_0xff99[301]]+ _0xff99[341]));return _0xf598x3[_0xff99[234]](_0xff99[110])};return _0xff99[110]}:function(_0xf598x2){return null!= _0xf598x2?( new XMLSerializer)[_0xff99[340]](_0xf598x2):_0xff99[110]}}(),write:function(_0xf598x2,_0xf598x3){var _0xf598x4=_0xf598x2[_0xff99[295]][_0xff99[344]](_0xf598x3);null!= _0xf598x2&& _0xf598x2[_0xff99[62]](_0xf598x4);return _0xf598x4},writeln:function(_0xf598x2,_0xf598x3){var _0xf598x4=_0xf598x2[_0xff99[295]][_0xff99[344]](_0xf598x3);null!= _0xf598x2&& (_0xf598x2[_0xff99[62]](_0xf598x4),_0xf598x2[_0xff99[62]](document[_0xff99[55]](_0xff99[345])));return _0xf598x4},br:function(_0xf598x2,_0xf598x3){_0xf598x3= _0xf598x3|| 1;for(var _0xf598x4=null,_0xf598x5=0;_0xf598x5< _0xf598x3;_0xf598x5++){null!= _0xf598x2&& (_0xf598x4= _0xf598x2[_0xff99[295]][_0xff99[55]](_0xff99[345]),_0xf598x2[_0xff99[62]](_0xf598x4))};return _0xf598x4},button:function(_0xf598x2,_0xf598x3,_0xf598x4){_0xf598x4= null!= _0xf598x4?_0xf598x4:document;_0xf598x4= _0xf598x4[_0xff99[55]](_0xff99[172]);mxUtils[_0xff99[53]](_0xf598x4,_0xf598x2);mxEvent[_0xff99[169]](_0xf598x4,_0xff99[173],function(_0xf598x2){_0xf598x3(_0xf598x2)});return _0xf598x4},para:function(_0xf598x2,_0xf598x3){var _0xf598x4=document[_0xff99[55]](_0xff99[346]);mxUtils[_0xff99[53]](_0xf598x4,_0xf598x3);null!= _0xf598x2&& _0xf598x2[_0xff99[62]](_0xf598x4);return _0xf598x4},addTransparentBackgroundFilter:function(_0xf598x2){_0xf598x2[_0xff99[124]][_0xff99[347]]+= _0xff99[348]+ mxClient[_0xff99[88]]+ _0xff99[349]},linkAction:function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){return mxUtils[_0xff99[54]](_0xf598x2,_0xf598x3,function(){_0xf598x4[_0xff99[350]](_0xf598x5)},_0xf598x9)},linkInvoke:function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa){return mxUtils[_0xff99[54]](_0xf598x2,_0xf598x3,function(){_0xf598x4[_0xf598x5](_0xf598x9)},_0xf598xa)},link:function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){var _0xf598x9=document[_0xff99[55]](_0xff99[351]);_0xf598x9[_0xff99[124]][_0xff99[352]]= _0xff99[353];_0xf598x9[_0xff99[124]][_0xff99[354]]= _0xff99[355];_0xf598x9[_0xff99[124]][_0xff99[270]]= _0xff99[356];null!= _0xf598x5&& (_0xf598x9[_0xff99[124]][_0xff99[357]]= _0xf598x5+ _0xff99[168]);mxEvent[_0xff99[169]](_0xf598x9,_0xff99[173],_0xf598x4);mxUtils[_0xff99[53]](_0xf598x9,_0xf598x3);null!= _0xf598x2&& _0xf598x2[_0xff99[62]](_0xf598x9);return _0xf598x9},fit:function(_0xf598x2){var _0xf598x3=parseInt(_0xf598x2[_0xff99[358]]),_0xf598x4=parseInt(_0xf598x2[_0xff99[359]]),_0xf598x5=document[_0xff99[112]],_0xf598x9=document[_0xff99[158]],_0xf598xa=(_0xf598x5[_0xff99[360]]|| _0xf598x9[_0xff99[360]])+ (_0xf598x5[_0xff99[159]]|| _0xf598x9[_0xff99[159]]);_0xf598x3+ _0xf598x4> _0xf598xa&& (_0xf598x2[_0xff99[124]][_0xff99[361]]= Math[_0xff99[160]](_0xf598x5[_0xff99[360]]|| _0xf598x9[_0xff99[360]],_0xf598xa- _0xf598x4)+ _0xff99[168]);_0xf598x3= parseInt(_0xf598x2[_0xff99[362]]);_0xf598x4= parseInt(_0xf598x2[_0xff99[167]]);_0xf598xa= (_0xf598x5[_0xff99[190]]|| _0xf598x9[_0xff99[190]])+ Math[_0xff99[160]](_0xf598x5[_0xff99[157]]|| 0,_0xf598x9[_0xff99[157]]);_0xf598x3+ _0xf598x4> _0xf598xa&& (_0xf598x2[_0xff99[124]][_0xff99[125]]= Math[_0xff99[160]](_0xf598x5[_0xff99[190]]|| _0xf598x9[_0xff99[190]],_0xf598xa- _0xf598x4)+ _0xff99[168])},open:function(_0xf598x2){if(mxClient[_0xff99[133]]){try{netscape[_0xff99[366]][_0xff99[365]][_0xff99[364]](_0xff99[363])}catch(b){return mxUtils[_0xff99[150]](_0xff99[367]),_0xff99[110]};var _0xf598x4=Components[_0xff99[372]][_0xff99[371]][_0xff99[370]](Components[_0xff99[369]][_0xff99[368]]);_0xf598x4[_0xff99[373]](_0xf598x2);if(!_0xf598x4[_0xff99[374]]()){return mxUtils[_0xff99[150]](_0xff99[375]),_0xff99[110]};_0xf598x2= Components[_0xff99[372]][_0xff99[377]][_0xff99[370]](Components[_0xff99[369]][_0xff99[376]]);_0xf598x2[_0xff99[176]](_0xf598x4,1,4,null);_0xf598x4= Components[_0xff99[372]][_0xff99[379]][_0xff99[370]](Components[_0xff99[369]][_0xff99[378]]);_0xf598x4[_0xff99[176]](_0xf598x2);return _0xf598x4[_0xff99[381]](_0xf598x4[_0xff99[380]]())};_0xf598x4= ( new ActiveXObject(_0xff99[382])).OpenTextFile(_0xf598x2,1);_0xf598x2= _0xf598x4[_0xff99[383]]();_0xf598x4[_0xff99[268]]();return _0xf598x2},save:function(_0xf598x2,_0xf598x3){if(mxClient[_0xff99[133]]){try{netscape[_0xff99[366]][_0xff99[365]][_0xff99[364]](_0xff99[363])}catch(c){mxUtils[_0xff99[150]](_0xff99[384]);return};var _0xf598x5=Components[_0xff99[372]][_0xff99[371]][_0xff99[370]](Components[_0xff99[369]][_0xff99[368]]);_0xf598x5[_0xff99[373]](_0xf598x2);_0xf598x5[_0xff99[374]]()|| _0xf598x5[_0xff99[385]](0,420);var _0xf598x9=Components[_0xff99[372]][_0xff99[387]][_0xff99[370]](Components[_0xff99[369]][_0xff99[386]]);_0xf598x9[_0xff99[176]](_0xf598x5,34,4,null);_0xf598x9[_0xff99[53]](_0xf598x3,_0xf598x3[_0xff99[67]]);_0xf598x9[_0xff99[388]]();_0xf598x9[_0xff99[268]]()}else {_0xf598x5= ( new ActiveXObject(_0xff99[382])).CreateTextFile(_0xf598x2,!0),_0xf598x5.Write(_0xf598x3),_0xf598x5.Close()}},saveAs:function(_0xf598x2){var _0xf598x3=document[_0xff99[55]](_0xff99[389]);_0xf598x3[_0xff99[57]](_0xff99[390],_0xff99[110]);_0xf598x3[_0xff99[124]][_0xff99[187]]= _0xff99[188];document[_0xff99[112]][_0xff99[62]](_0xf598x3);try{if(mxClient[_0xff99[133]]){var _0xf598x4=_0xf598x3[_0xff99[391]];_0xf598x4[_0xff99[392]]();_0xf598x4[_0xff99[53]](_0xf598x2);_0xf598x4[_0xff99[268]]();try{netscape[_0xff99[366]][_0xff99[365]][_0xff99[364]](_0xff99[363]),_0xf598x3[_0xff99[393]](),saveDocument(_0xf598x4)}catch(d){mxUtils[_0xff99[150]](_0xff99[394])}}else {_0xf598x4= _0xf598x3[_0xff99[396]][_0xff99[395]],_0xf598x4[_0xff99[53]](_0xf598x2),_0xf598x4[_0xff99[398]](_0xff99[397],!1,document[_0xff99[45]])}}finally{document[_0xff99[112]][_0xff99[266]](_0xf598x3)}},copy:function(_0xf598x2){if(window[_0xff99[399]]){window[_0xff99[399]][_0xff99[401]](_0xff99[400],_0xf598x2)}else {netscape[_0xff99[366]][_0xff99[365]][_0xff99[364]](_0xff99[363]);var _0xf598x3=Components[_0xff99[372]][_0xff99[403]][_0xff99[370]](Components[_0xff99[369]][_0xff99[402]]);if(_0xf598x3){var _0xf598x4=Components[_0xff99[372]][_0xff99[405]][_0xff99[370]](Components[_0xff99[369]][_0xff99[404]]);if(_0xf598x4){_0xf598x4[_0xff99[407]](_0xff99[406]);var _0xf598x5=Components[_0xff99[372]][_0xff99[409]][_0xff99[370]](Components[_0xff99[369]][_0xff99[408]]);_0xf598x5[_0xff99[410]]= _0xf598x2;_0xf598x4[_0xff99[411]](_0xff99[406],_0xf598x5,2* _0xf598x2[_0xff99[67]]);_0xf598x3[_0xff99[401]](_0xf598x4,null,Components[_0xff99[369]][_0xff99[402]][_0xff99[412]])}}}},load:function(_0xf598x2){_0xf598x2= new mxXmlRequest(_0xf598x2,null,_0xff99[413],!1);_0xf598x2[_0xff99[414]]();return _0xf598x2},get:function(_0xf598x2,_0xf598x3,_0xf598x4){return ( new mxXmlRequest(_0xf598x2,null,_0xff99[413]))[_0xff99[414]](_0xf598x3,_0xf598x4)},post:function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){return ( new mxXmlRequest(_0xf598x2,_0xf598x3))[_0xff99[414]](_0xf598x4,_0xf598x5)},submit:function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){return ( new mxXmlRequest(_0xf598x2,_0xf598x3))[_0xff99[415]](_0xf598x4,_0xf598x5)},loadInto:function(_0xf598x2,_0xf598x3,_0xf598x4){mxClient[_0xff99[80]]?_0xf598x3[_0xff99[416]]= function(){4== _0xf598x3[_0xff99[417]]&& _0xf598x4()}:_0xf598x3[_0xff99[418]](_0xff99[219],_0xf598x4,!1);_0xf598x3[_0xff99[219]](_0xf598x2)},getValue:function(_0xf598x2,_0xf598x3,_0xf598x4){_0xf598x2= null!= _0xf598x2?_0xf598x2[_0xf598x3]:null;null== _0xf598x2&& (_0xf598x2= _0xf598x4);return _0xf598x2},getNumber:function(_0xf598x2,_0xf598x3,_0xf598x4){_0xf598x2= null!= _0xf598x2?_0xf598x2[_0xf598x3]:null;null== _0xf598x2&& (_0xf598x2= _0xf598x4|| 0);return Number(_0xf598x2)},getColor:function(_0xf598x2,_0xf598x3,_0xf598x4){_0xf598x2= null!= _0xf598x2?_0xf598x2[_0xf598x3]:null;null== _0xf598x2?_0xf598x2= _0xf598x4:_0xf598x2== mxConstants[_0xff99[217]]&& (_0xf598x2= null);return _0xf598x2},clone:function(_0xf598x2,_0xf598x3,_0xf598x4){_0xf598x4= null!= _0xf598x4?_0xf598x4:!1;var _0xf598x5=null;if(null!= _0xf598x2&& _0xff99[279]== typeof _0xf598x2[_0xff99[196]]){var _0xf598x5= new _0xf598x2[_0xff99[196]],_0xf598x9;for(_0xf598x9 in _0xf598x2){if(_0xf598x9!= mxObjectIdentity[_0xff99[195]]&& (null== _0xf598x3|| 0> mxUtils[_0xff99[2]](_0xf598x3,_0xf598x9))){_0xf598x5[_0xf598x9]= !_0xf598x4&& _0xff99[194]== typeof _0xf598x2[_0xf598x9]?mxUtils[_0xff99[238]](_0xf598x2[_0xf598x9]):_0xf598x2[_0xf598x9]}}};return _0xf598x5},equalPoints:function(_0xf598x2,_0xf598x3){if(null== _0xf598x2&& null!= _0xf598x3|| null!= _0xf598x2&& null== _0xf598x3|| null!= _0xf598x2&& null!= _0xf598x3&& _0xf598x2[_0xff99[67]]!= _0xf598x3[_0xff99[67]]){return !1};if(null!= _0xf598x2&& null!= _0xf598x3){for(var _0xf598x4=0;_0xf598x4< _0xf598x2[_0xff99[67]];_0xf598x4++){if(_0xf598x2[_0xf598x4]== _0xf598x3[_0xf598x4]|| null!= _0xf598x2[_0xf598x4]&& !_0xf598x2[_0xf598x4][_0xff99[237]](_0xf598x3[_0xf598x4])){return !1}}};return !0},equalEntries:function(_0xf598x2,_0xf598x3){if(null== _0xf598x2&& null!= _0xf598x3|| null!= _0xf598x2&& null== _0xf598x3|| null!= _0xf598x2&& null!= _0xf598x3&& _0xf598x2[_0xff99[67]]!= _0xf598x3[_0xff99[67]]){return !1};if(null!= _0xf598x2&& null!= _0xf598x3){for(var _0xf598x4 in _0xf598x2){if(_0xf598x2[_0xf598x4]!= _0xf598x3[_0xf598x4]){return !1}}};return !0},extend:function(_0xf598x2,_0xf598x3){var _0xf598x4=function(){};_0xf598x4[_0xff99[202]]= _0xf598x3[_0xff99[202]];_0xf598x2[_0xff99[202]]= new _0xf598x4;_0xf598x2[_0xff99[202]][_0xff99[196]]= _0xf598x2},toString:function(_0xf598x2){var _0xf598x3=_0xff99[110],_0xf598x4;for(_0xf598x4 in _0xf598x2){try{if(null== _0xf598x2[_0xf598x4]){_0xf598x3+= _0xf598x4+ _0xff99[419]}else {if(_0xff99[279]== typeof _0xf598x2[_0xf598x4]){_0xf598x3+= _0xf598x4+ _0xff99[420]}else {if(_0xff99[194]== typeof _0xf598x2[_0xf598x4]){var _0xf598x5=mxUtils[_0xff99[197]](_0xf598x2[_0xf598x4][_0xff99[196]]),_0xf598x3=_0xf598x3+ (_0xf598x4+ _0xff99[421]+ _0xf598x5+ _0xff99[422])}else {_0xf598x3+= _0xf598x4+ _0xff99[423]+ _0xf598x2[_0xf598x4]+ _0xff99[192]}}}}catch(e){_0xf598x3+= _0xf598x4+ _0xff99[226]+ e[_0xff99[281]]}};return _0xf598x3},toRadians:function(_0xf598x2){return Math[_0xff99[424]]* _0xf598x2/ 180},arcToCurves:function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa,_0xf598x12,_0xf598x13,_0xf598x14){_0xf598x13-= _0xf598x2;_0xf598x14-= _0xf598x3;if(0=== _0xf598x4|| 0=== _0xf598x5){return _0xf598x18};_0xf598x4= Math[_0xff99[425]](_0xf598x4);_0xf598x5= Math[_0xff99[425]](_0xf598x5);var _0xf598x15=-_0xf598x13/ 2,_0xf598x16=-_0xf598x14/ 2,_0xf598x17=Math[_0xff99[426]](_0xf598x9* Math[_0xff99[424]]/ 180),_0xf598x18=Math[_0xff99[427]](_0xf598x9* Math[_0xff99[424]]/ 180);_0xf598x9= _0xf598x17* _0xf598x15+ _0xf598x18* _0xf598x16;var _0xf598x15=-1* _0xf598x18 * _0xf598x15 + _0xf598x17* _0xf598x16,_0xf598x16=_0xf598x9* _0xf598x9,_0xf598x19=_0xf598x15* _0xf598x15,_0xf598x1a=_0xf598x4* _0xf598x4,_0xf598x1b=_0xf598x5* _0xf598x5,_0xf598x1c=_0xf598x16/ _0xf598x1a+ _0xf598x19/ _0xf598x1b;1< _0xf598x1c?(_0xf598x4*= Math[_0xff99[428]](_0xf598x1c),_0xf598x5*= Math[_0xff99[428]](_0xf598x1c),_0xf598xa= 0):(_0xf598x1c= 1,_0xf598xa=== _0xf598x12&& (_0xf598x1c= -1),_0xf598xa= _0xf598x1c* Math[_0xff99[428]]((_0xf598x1a* _0xf598x1b- _0xf598x1a* _0xf598x19- _0xf598x1b* _0xf598x16)/ (_0xf598x1a* _0xf598x19+ _0xf598x1b* _0xf598x16)));_0xf598x16= _0xf598xa* _0xf598x4* _0xf598x15/ _0xf598x5;_0xf598x19= -1* _0xf598xa * _0xf598x5 * _0xf598x9 / _0xf598x4;_0xf598x13= _0xf598x17* _0xf598x16- _0xf598x18* _0xf598x19+ _0xf598x13/ 2;_0xf598x14= _0xf598x18* _0xf598x16+ _0xf598x17* _0xf598x19+ _0xf598x14/ 2;_0xf598x1a= Math[_0xff99[429]]((_0xf598x15- _0xf598x19)/ _0xf598x5,(_0xf598x9- _0xf598x16)/ _0xf598x4)- Math[_0xff99[429]](0,1);_0xf598xa= 0<= _0xf598x1a?_0xf598x1a:2* Math[_0xff99[424]]+ _0xf598x1a;_0xf598x1a= Math[_0xff99[429]]((-_0xf598x15- _0xf598x19) / _0xf598x5,(-_0xf598x9- _0xf598x16) / _0xf598x4) - Math[_0xff99[429]]((_0xf598x15- _0xf598x19)/ _0xf598x5,(_0xf598x9- _0xf598x16)/ _0xf598x4);_0xf598x9= 0<= _0xf598x1a?_0xf598x1a:2* Math[_0xff99[424]]+ _0xf598x1a;0== _0xf598x12&& 0< _0xf598x9?_0xf598x9-= 2* Math[_0xff99[424]]:0!= _0xf598x12&& 0> _0xf598x9&& (_0xf598x9+= 2* Math[_0xff99[424]]);_0xf598x12= 2* _0xf598x9/ Math[_0xff99[424]];_0xf598x12= Math[_0xff99[430]](0> _0xf598x12?-1* _0xf598x12:_0xf598x12);_0xf598x9/= _0xf598x12;_0xf598x15= 8/ 3* Math[_0xff99[427]](_0xf598x9/ 4)* Math[_0xff99[427]](_0xf598x9/ 4)/ Math[_0xff99[427]](_0xf598x9/ 2);_0xf598x16= _0xf598x17* _0xf598x4;_0xf598x17*= _0xf598x5;_0xf598x4*= _0xf598x18;_0xf598x5*= _0xf598x18;for(var _0xf598x1d=Math[_0xff99[426]](_0xf598xa),_0xf598x1e=Math[_0xff99[427]](_0xf598xa),_0xf598x19=-_0xf598x15* (_0xf598x16* _0xf598x1e+ _0xf598x5* _0xf598x1d),_0xf598x1a=-_0xf598x15* (_0xf598x4* _0xf598x1e- _0xf598x17* _0xf598x1d),_0xf598x1c=_0xf598x1b= 0,_0xf598x18=[],_0xf598x1f=0;_0xf598x1f< _0xf598x12;++_0xf598x1f){_0xf598xa+= _0xf598x9;var _0xf598x1d=Math[_0xff99[426]](_0xf598xa),_0xf598x1e=Math[_0xff99[427]](_0xf598xa),_0xf598x1b=_0xf598x16* _0xf598x1d- _0xf598x5* _0xf598x1e+ _0xf598x13,_0xf598x1c=_0xf598x4* _0xf598x1d+ _0xf598x17* _0xf598x1e+ _0xf598x14,_0xf598x20=-_0xf598x15* (_0xf598x16* _0xf598x1e+ _0xf598x5* _0xf598x1d),_0xf598x1d=-_0xf598x15* (_0xf598x4* _0xf598x1e- _0xf598x17* _0xf598x1d),_0xf598x1e=6* _0xf598x1f;_0xf598x18[_0xf598x1e]= Number(_0xf598x19+ _0xf598x2);_0xf598x18[_0xf598x1e+ 1]= Number(_0xf598x1a+ _0xf598x3);_0xf598x18[_0xf598x1e+ 2]= Number(_0xf598x1b- _0xf598x20+ _0xf598x2);_0xf598x18[_0xf598x1e+ 3]= Number(_0xf598x1c- _0xf598x1d+ _0xf598x3);_0xf598x18[_0xf598x1e+ 4]= Number(_0xf598x1b+ _0xf598x2);_0xf598x18[_0xf598x1e+ 5]= Number(_0xf598x1c+ _0xf598x3);_0xf598x19= _0xf598x1b+ _0xf598x20;_0xf598x1a= _0xf598x1c+ _0xf598x1d};return _0xf598x18},getBoundingBox:function(_0xf598x2,_0xf598x3){var _0xf598x4=null;if(null!= _0xf598x2&& null!= _0xf598x3&& 0!= _0xf598x3){var _0xf598x5=mxUtils[_0xff99[431]](_0xf598x3),_0xf598x4=Math[_0xff99[426]](_0xf598x5),_0xf598x9=Math[_0xff99[427]](_0xf598x5),_0xf598xa= new mxPoint(_0xf598x2[_0xff99[235]]+ _0xf598x2[_0xff99[117]]/ 2,_0xf598x2[_0xff99[236]]+ _0xf598x2[_0xff99[119]]/ 2),_0xf598x12= new mxPoint(_0xf598x2[_0xff99[235]],_0xf598x2[_0xff99[236]]),_0xf598x5= new mxPoint(_0xf598x2[_0xff99[235]]+ _0xf598x2[_0xff99[117]],_0xf598x2[_0xff99[236]]),_0xf598x13= new mxPoint(_0xf598x5[_0xff99[235]],_0xf598x2[_0xff99[236]]+ _0xf598x2[_0xff99[119]]),_0xf598x14= new mxPoint(_0xf598x2[_0xff99[235]],_0xf598x13[_0xff99[236]]),_0xf598x12=mxUtils[_0xff99[432]](_0xf598x12,_0xf598x4,_0xf598x9,_0xf598xa),_0xf598x5=mxUtils[_0xff99[432]](_0xf598x5,_0xf598x4,_0xf598x9,_0xf598xa),_0xf598x13=mxUtils[_0xff99[432]](_0xf598x13,_0xf598x4,_0xf598x9,_0xf598xa),_0xf598x14=mxUtils[_0xff99[432]](_0xf598x14,_0xf598x4,_0xf598x9,_0xf598xa),_0xf598x4= new mxRectangle(_0xf598x12[_0xff99[235]],_0xf598x12[_0xff99[236]],0,0);_0xf598x4[_0xff99[99]]( new mxRectangle(_0xf598x5[_0xff99[235]],_0xf598x5[_0xff99[236]],0,0));_0xf598x4[_0xff99[99]]( new mxRectangle(_0xf598x13[_0xff99[235]],_0xf598x13[_0xff99[236]],0,0));_0xf598x4[_0xff99[99]]( new mxRectangle(_0xf598x14[_0xff99[235]],_0xf598x14[_0xff99[236]],0,0))};return _0xf598x4},getRotatedPoint:function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){_0xf598x5= null!= _0xf598x5?_0xf598x5: new mxPoint;var _0xf598x9=_0xf598x2[_0xff99[235]]- _0xf598x5[_0xff99[235]];_0xf598x2= _0xf598x2[_0xff99[236]]- _0xf598x5[_0xff99[236]];return new mxPoint(_0xf598x9* _0xf598x3- _0xf598x2* _0xf598x4+ _0xf598x5[_0xff99[235]],_0xf598x2* _0xf598x3+ _0xf598x9* _0xf598x4+ _0xf598x5[_0xff99[236]])},getPortConstraints:function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){_0xf598x2= mxUtils[_0xff99[433]](_0xf598x2[_0xff99[124]],mxConstants.STYLE_PORT_CONSTRAINT,null);if(null== _0xf598x2){return _0xf598x5};_0xf598x5= _0xf598x2.toString();_0xf598x2= mxConstants[_0xff99[434]];0<= _0xf598x5[_0xff99[2]](mxConstants.DIRECTION_NORTH)&& (_0xf598x2|= mxConstants[_0xff99[435]]);0<= _0xf598x5[_0xff99[2]](mxConstants.DIRECTION_WEST)&& (_0xf598x2|= mxConstants[_0xff99[436]]);0<= _0xf598x5[_0xff99[2]](mxConstants.DIRECTION_SOUTH)&& (_0xf598x2|= mxConstants[_0xff99[437]]);0<= _0xf598x5[_0xff99[2]](mxConstants.DIRECTION_EAST)&& (_0xf598x2|= mxConstants[_0xff99[438]]);return _0xf598x2},reversePortConstraints:function(_0xf598x2){var _0xf598x3=0,_0xf598x3=(_0xf598x2& mxConstants[_0xff99[436]])<< 3,_0xf598x3=_0xf598x3| (_0xf598x2& mxConstants[_0xff99[435]])<< 1,_0xf598x3=_0xf598x3| (_0xf598x2& mxConstants[_0xff99[437]])>> 1;return _0xf598x3|= (_0xf598x2& mxConstants[_0xff99[438]])>> 3},findNearestSegment:function(_0xf598x2,_0xf598x3,_0xf598x4){var _0xf598x5=-1;if(0< _0xf598x2[_0xff99[439]][_0xff99[67]]){for(var _0xf598x9=_0xf598x2[_0xff99[439]][0],_0xf598xa=null,_0xf598x12=1;_0xf598x12< _0xf598x2[_0xff99[439]][_0xff99[67]];_0xf598x12++){var _0xf598x13=_0xf598x2[_0xff99[439]][_0xf598x12],_0xf598x9=mxUtils[_0xff99[440]](_0xf598x9[_0xff99[235]],_0xf598x9[_0xff99[236]],_0xf598x13[_0xff99[235]],_0xf598x13[_0xff99[236]],_0xf598x3,_0xf598x4);if(null== _0xf598xa|| _0xf598x9< _0xf598xa){_0xf598xa= _0xf598x9,_0xf598x5= _0xf598x12- 1};_0xf598x9= _0xf598x13}};return _0xf598x5},rectangleIntersectsSegment:function(_0xf598x2,_0xf598x3,_0xf598x4){var _0xf598x5=_0xf598x2[_0xff99[236]],_0xf598x9=_0xf598x2[_0xff99[235]],_0xf598xa=_0xf598x5+ _0xf598x2[_0xff99[119]],_0xf598x12=_0xf598x9+ _0xf598x2[_0xff99[117]];_0xf598x2= _0xf598x3[_0xff99[235]];var _0xf598x13=_0xf598x4[_0xff99[235]];_0xf598x3[_0xff99[235]]> _0xf598x4[_0xff99[235]]&& (_0xf598x2= _0xf598x4[_0xff99[235]],_0xf598x13= _0xf598x3[_0xff99[235]]);_0xf598x13> _0xf598x12&& (_0xf598x13= _0xf598x12);_0xf598x2< _0xf598x9&& (_0xf598x2= _0xf598x9);if(_0xf598x2> _0xf598x13){return !1};var _0xf598x9=_0xf598x3[_0xff99[236]],_0xf598x12=_0xf598x4[_0xff99[236]],_0xf598x14=_0xf598x4[_0xff99[235]]- _0xf598x3[_0xff99[235]];1E-7< Math[_0xff99[425]](_0xf598x14)&& (_0xf598x4= (_0xf598x4[_0xff99[236]]- _0xf598x3[_0xff99[236]])/ _0xf598x14,_0xf598x3= _0xf598x3[_0xff99[236]]- _0xf598x4* _0xf598x3[_0xff99[235]],_0xf598x9= _0xf598x4* _0xf598x2+ _0xf598x3,_0xf598x12= _0xf598x4* _0xf598x13+ _0xf598x3);_0xf598x9> _0xf598x12&& (_0xf598x3= _0xf598x12,_0xf598x12= _0xf598x9,_0xf598x9= _0xf598x3);_0xf598x12> _0xf598xa&& (_0xf598x12= _0xf598xa);_0xf598x9< _0xf598x5&& (_0xf598x9= _0xf598x5);return _0xf598x9> _0xf598x12?!1:!0},contains:function(_0xf598x2,_0xf598x3,_0xf598x4){return _0xf598x2[_0xff99[235]]<= _0xf598x3&& _0xf598x2[_0xff99[235]]+ _0xf598x2[_0xff99[117]]>= _0xf598x3&& _0xf598x2[_0xff99[236]]<= _0xf598x4&& _0xf598x2[_0xff99[236]]+ _0xf598x2[_0xff99[119]]>= _0xf598x4},intersects:function(_0xf598x2,_0xf598x3){var _0xf598x4=_0xf598x2[_0xff99[117]],_0xf598x5=_0xf598x2[_0xff99[119]],_0xf598x9=_0xf598x3[_0xff99[117]],_0xf598xa=_0xf598x3[_0xff99[119]];if(0>= _0xf598x9|| 0>= _0xf598xa|| 0>= _0xf598x4|| 0>= _0xf598x5){return !1};var _0xf598x12=_0xf598x2[_0xff99[235]],_0xf598x13=_0xf598x2[_0xff99[236]],_0xf598x14=_0xf598x3[_0xff99[235]],_0xf598x15=_0xf598x3[_0xff99[236]],_0xf598x9=_0xf598x9+ _0xf598x14,_0xf598xa=_0xf598xa+ _0xf598x15,_0xf598x4=_0xf598x4+ _0xf598x12,_0xf598x5=_0xf598x5+ _0xf598x13;return (_0xf598x9< _0xf598x14|| _0xf598x9> _0xf598x12)&& (_0xf598xa< _0xf598x15|| _0xf598xa> _0xf598x13)&& (_0xf598x4< _0xf598x12|| _0xf598x4> _0xf598x14)&& (_0xf598x5< _0xf598x13|| _0xf598x5> _0xf598x15)},intersectsHotspot:function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa){_0xf598x5= null!= _0xf598x5?_0xf598x5:1;_0xf598x9= null!= _0xf598x9?_0xf598x9:0;_0xf598xa= null!= _0xf598xa?_0xf598xa:0;if(0< _0xf598x5){var _0xf598x12=_0xf598x2[_0xff99[241]](),_0xf598x13=_0xf598x2[_0xff99[242]](),_0xf598x14=_0xf598x2[_0xff99[117]],_0xf598x15=_0xf598x2[_0xff99[119]],_0xf598x16=mxUtils[_0xff99[433]](_0xf598x2[_0xff99[124]],mxConstants.STYLE_STARTSIZE)* _0xf598x2[_0xff99[441]][_0xff99[255]];0< _0xf598x16&& (mxUtils[_0xff99[433]](_0xf598x2[_0xff99[124]],mxConstants.STYLE_HORIZONTAL,!0)?(_0xf598x13= _0xf598x2[_0xff99[236]]+ _0xf598x16/ 2,_0xf598x15= _0xf598x16):(_0xf598x12= _0xf598x2[_0xff99[235]]+ _0xf598x16/ 2,_0xf598x14= _0xf598x16));_0xf598x14= Math[_0xff99[160]](_0xf598x9,_0xf598x14* _0xf598x5);_0xf598x15= Math[_0xff99[160]](_0xf598x9,_0xf598x15* _0xf598x5);0< _0xf598xa&& (_0xf598x14= Math[_0xff99[243]](_0xf598x14,_0xf598xa),_0xf598x15= Math[_0xff99[243]](_0xf598x15,_0xf598xa));_0xf598x5= new mxRectangle(_0xf598x12- _0xf598x14/ 2,_0xf598x13- _0xf598x15/ 2,_0xf598x14,_0xf598x15);_0xf598x12= mxUtils[_0xff99[431]](mxUtils[_0xff99[433]](_0xf598x2[_0xff99[124]],mxConstants.STYLE_ROTATION)|| 0);0!= _0xf598x12&& (_0xf598x9= Math[_0xff99[426]](-_0xf598x12),_0xf598xa= Math[_0xff99[427]](-_0xf598x12),_0xf598x12= new mxPoint(_0xf598x2[_0xff99[241]](),_0xf598x2[_0xff99[242]]()),_0xf598x2= mxUtils[_0xff99[432]]( new mxPoint(_0xf598x3,_0xf598x4),_0xf598x9,_0xf598xa,_0xf598x12),_0xf598x3= _0xf598x2[_0xff99[235]],_0xf598x4= _0xf598x2[_0xff99[236]]);return mxUtils[_0xff99[442]](_0xf598x5,_0xf598x3,_0xf598x4)};return !0},getOffset:function(_0xf598x2,_0xf598x3){var _0xf598x4=0,_0xf598x5=0;if(null!= _0xf598x3&& _0xf598x3){var _0xf598x9=document[_0xff99[112]],_0xf598xa=document[_0xff99[158]],_0xf598x4=_0xf598x4+ (_0xf598x9[_0xff99[360]]|| _0xf598xa[_0xff99[360]]),_0xf598x5=_0xf598x5+ (_0xf598x9[_0xff99[190]]|| _0xf598xa[_0xff99[190]])};for(;_0xf598x2[_0xff99[443]];){_0xf598x4+= _0xf598x2[_0xff99[358]],_0xf598x5+= _0xf598x2[_0xff99[362]],_0xf598x2= _0xf598x2[_0xff99[443]]};return new mxPoint(_0xf598x4,_0xf598x5)},getScrollOrigin:function(_0xf598x2){for(var _0xf598x3=document[_0xff99[112]],_0xf598x4=document[_0xff99[158]],_0xf598x5= new mxPoint(_0xf598x3[_0xff99[360]]|| _0xf598x4[_0xff99[360]],_0xf598x3[_0xff99[190]]|| _0xf598x4[_0xff99[190]]);null!= _0xf598x2&& _0xf598x2!= _0xf598x3&& _0xf598x2!= _0xf598x4;){!isNaN(_0xf598x2[_0xff99[360]])&& !isNaN(_0xf598x2[_0xff99[190]]) && (_0xf598x5[_0xff99[235]]+= _0xf598x2[_0xff99[360]],_0xf598x5[_0xff99[236]]+= _0xf598x2[_0xff99[190]]),_0xf598x2= _0xf598x2[_0xff99[265]]};return _0xf598x5},convertPoint:function(_0xf598x2,_0xf598x3,_0xf598x4){var _0xf598x5=mxUtils[_0xff99[444]](_0xf598x2);_0xf598x2= mxUtils[_0xff99[445]](_0xf598x2);_0xf598x2[_0xff99[235]]-= _0xf598x5[_0xff99[235]];_0xf598x2[_0xff99[236]]-= _0xf598x5[_0xff99[236]];return new mxPoint(_0xf598x3- _0xf598x2[_0xff99[235]],_0xf598x4- _0xf598x2[_0xff99[236]])},ltrim:function(_0xf598x2,_0xf598x3){return _0xf598x2[_0xff99[230]](RegExp(_0xff99[446]+ (_0xf598x3|| _0xff99[447])+ _0xff99[448],_0xff99[449]),_0xff99[110])},rtrim:function(_0xf598x2,_0xf598x3){return _0xf598x2[_0xff99[230]](RegExp(_0xff99[450]+ (_0xf598x3|| _0xff99[447])+ _0xff99[451],_0xff99[449]),_0xff99[110])},trim:function(_0xf598x2,_0xf598x3){return mxUtils[_0xff99[453]](mxUtils[_0xff99[452]](_0xf598x2,_0xf598x3),_0xf598x3)},isNumeric:function(_0xf598x2){return null!= _0xf598x2&& (null== _0xf598x2[_0xff99[67]]|| 0< _0xf598x2[_0xff99[67]]&& 0> _0xf598x2[_0xff99[2]](_0xff99[454])&& 0> _0xf598x2[_0xff99[2]](_0xff99[455]))&& !isNaN(_0xf598x2)},mod:function(_0xf598x2,_0xf598x3){return (_0xf598x2% _0xf598x3+ _0xf598x3)% _0xf598x3},intersection:function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa,_0xf598x12,_0xf598x13){var _0xf598x14=(_0xf598x13- _0xf598xa)* (_0xf598x4- _0xf598x2)- (_0xf598x12- _0xf598x9)* (_0xf598x5- _0xf598x3);_0xf598x12= ((_0xf598x12- _0xf598x9)* (_0xf598x3- _0xf598xa)- (_0xf598x13- _0xf598xa)* (_0xf598x2- _0xf598x9))/ _0xf598x14;_0xf598x9= ((_0xf598x4- _0xf598x2)* (_0xf598x3- _0xf598xa)- (_0xf598x5- _0xf598x3)* (_0xf598x2- _0xf598x9))/ _0xf598x14;return 0<= _0xf598x12&& 1>= _0xf598x12&& 0<= _0xf598x9&& 1>= _0xf598x9? new mxPoint(_0xf598x2+ _0xf598x12* (_0xf598x4- _0xf598x2),_0xf598x3+ _0xf598x12* (_0xf598x5- _0xf598x3)):null},ptSegDistSq:function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa){_0xf598x4-= _0xf598x2;_0xf598x5-= _0xf598x3;_0xf598x9-= _0xf598x2;_0xf598xa-= _0xf598x3;0>= _0xf598x9* _0xf598x4+ _0xf598xa* _0xf598x5?_0xf598x4= 0:(_0xf598x9= _0xf598x4- _0xf598x9,_0xf598xa= _0xf598x5- _0xf598xa,_0xf598x2= _0xf598x9* _0xf598x4+ _0xf598xa* _0xf598x5,_0xf598x4= 0>= _0xf598x2?0:_0xf598x2* _0xf598x2/ (_0xf598x4* _0xf598x4+ _0xf598x5* _0xf598x5));_0xf598x9= _0xf598x9* _0xf598x9+ _0xf598xa* _0xf598xa- _0xf598x4;0> _0xf598x9&& (_0xf598x9= 0);return _0xf598x9},relativeCcw:function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa){_0xf598x4-= _0xf598x2;_0xf598x5-= _0xf598x3;_0xf598x9-= _0xf598x2;_0xf598xa-= _0xf598x3;_0xf598x2= _0xf598x9* _0xf598x5- _0xf598xa* _0xf598x4;0== _0xf598x2&& (_0xf598x2= _0xf598x9* _0xf598x4+ _0xf598xa* _0xf598x5,0< _0xf598x2&& (_0xf598x2= (_0xf598x9- _0xf598x4)* _0xf598x4+ (_0xf598xa- _0xf598x5)* _0xf598x5,0> _0xf598x2&& (_0xf598x2= 0)));return 0> _0xf598x2?-1:0< _0xf598x2?1:0},animateChanges:function(_0xf598x2,_0xf598x3){mxEffects[_0xff99[456]][_0xff99[183]](this,arguments)},cascadeOpacity:function(_0xf598x2,_0xf598x3,_0xf598x4){mxEffects[_0xff99[260]][_0xff99[183]](this,arguments)},fadeOut:function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa){mxEffects[_0xff99[457]][_0xff99[183]](this,arguments)},setOpacity:function(_0xf598x2,_0xf598x3){mxUtils[_0xff99[458]](_0xf598x2)?_0xf598x2[_0xff99[124]][_0xff99[347]]= 100<= _0xf598x3?null:_0xff99[459]+ _0xf598x3/ 5+ _0xff99[460]:mxClient[_0xff99[80]]&& (_0xff99[82]=== typeof document[_0xff99[5]]|| 9> document[_0xff99[5]])?_0xf598x2[_0xff99[124]][_0xff99[347]]= 100<= _0xf598x3?null:_0xff99[459]+ _0xf598x3+ _0xff99[460]:_0xf598x2[_0xff99[124]][_0xff99[461]]= _0xf598x3/ 100},createImage:function(_0xf598x2){var _0xf598x3=null;mxClient[_0xff99[49]]&& _0xff99[462]!= document[_0xff99[135]]?(_0xf598x3= document[_0xff99[55]](mxClient[_0xff99[463]]+ _0xff99[464]),_0xf598x3[_0xff99[57]](_0xff99[390],_0xf598x2),_0xf598x3[_0xff99[124]][_0xff99[465]]= _0xff99[130]):(_0xf598x3= document[_0xff99[55]](_0xff99[466]),_0xf598x3[_0xff99[57]](_0xff99[390],_0xf598x2),_0xf598x3[_0xff99[57]](_0xff99[467],_0xff99[468]));return _0xf598x3},sortCells:function(_0xf598x2,_0xf598x3){_0xf598x3= null!= _0xf598x3?_0xf598x3:!0;var _0xf598x4= new mxDictionary;_0xf598x2[_0xff99[470]](function(_0xf598x2,_0xf598x9){var _0xf598xa=_0xf598x4[_0xff99[203]](_0xf598x2);null== _0xf598xa&& (_0xf598xa= mxCellPath[_0xff99[385]](_0xf598x2)[_0xff99[224]](mxCellPath.PATH_SEPARATOR),_0xf598x4[_0xff99[204]](_0xf598x2,_0xf598xa));var _0xf598x12=_0xf598x4[_0xff99[203]](_0xf598x9);null== _0xf598x12&& (_0xf598x12= mxCellPath[_0xff99[385]](_0xf598x9)[_0xff99[224]](mxCellPath.PATH_SEPARATOR),_0xf598x4[_0xff99[204]](_0xf598x9,_0xf598x12));_0xf598xa= mxCellPath[_0xff99[469]](_0xf598xa,_0xf598x12);return 0== _0xf598xa?0:0< _0xf598xa== _0xf598x3?1:-1});return _0xf598x2},getStylename:function(_0xf598x2){return null!= _0xf598x2&& (_0xf598x2= _0xf598x2[_0xff99[224]](_0xff99[471])[0],0> _0xf598x2[_0xff99[2]](_0xff99[226]))?_0xf598x2:_0xff99[110]},getStylenames:function(_0xf598x2){var _0xf598x3=[];if(null!= _0xf598x2){_0xf598x2= _0xf598x2[_0xff99[224]](_0xff99[471]);for(var _0xf598x4=0;_0xf598x4< _0xf598x2[_0xff99[67]];_0xf598x4++){0> _0xf598x2[_0xf598x4][_0xff99[2]](_0xff99[226])&& _0xf598x3[_0xff99[207]](_0xf598x2[_0xf598x4])}};return _0xf598x3},indexOfStylename:function(_0xf598x2,_0xf598x3){if(null!= _0xf598x2&& null!= _0xf598x3){for(var _0xf598x4=_0xf598x2[_0xff99[224]](_0xff99[471]),_0xf598x5=0,_0xf598x9=0;_0xf598x9< _0xf598x4[_0xff99[67]];_0xf598x9++){if(_0xf598x4[_0xf598x9]== _0xf598x3){return _0xf598x5};_0xf598x5+= _0xf598x4[_0xf598x9][_0xff99[67]]+ 1}};return -1},addStylename:function(_0xf598x2,_0xf598x3){0> mxUtils[_0xff99[472]](_0xf598x2,_0xf598x3)&& (null== _0xf598x2?_0xf598x2= _0xff99[110]:0< _0xf598x2[_0xff99[67]]&& _0xff99[471]!= _0xf598x2[_0xff99[225]](_0xf598x2[_0xff99[67]]- 1)&& (_0xf598x2+= _0xff99[471]),_0xf598x2+= _0xf598x3);return _0xf598x2},removeStylename:function(_0xf598x2,_0xf598x3){var _0xf598x4=[];if(null!= _0xf598x2){for(var _0xf598x5=_0xf598x2[_0xff99[224]](_0xff99[471]),_0xf598x9=0;_0xf598x9< _0xf598x5[_0xff99[67]];_0xf598x9++){_0xf598x5[_0xf598x9]!= _0xf598x3&& _0xf598x4[_0xff99[207]](_0xf598x5[_0xf598x9])}};return _0xf598x4[_0xff99[234]](_0xff99[471])},removeAllStylenames:function(_0xf598x2){var _0xf598x3=[];if(null!= _0xf598x2){_0xf598x2= _0xf598x2[_0xff99[224]](_0xff99[471]);for(var _0xf598x4=0;_0xf598x4< _0xf598x2[_0xff99[67]];_0xf598x4++){0<= _0xf598x2[_0xf598x4][_0xff99[2]](_0xff99[226])&& _0xf598x3[_0xff99[207]](_0xf598x2[_0xf598x4])}};return _0xf598x3[_0xff99[234]](_0xff99[471])},setCellStyles:function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){if(null!= _0xf598x3&& 0< _0xf598x3[_0xff99[67]]){_0xf598x2[_0xff99[473]]();try{for(var _0xf598x9=0;_0xf598x9< _0xf598x3[_0xff99[67]];_0xf598x9++){if(null!= _0xf598x3[_0xf598x9]){var _0xf598xa=mxUtils[_0xff99[475]](_0xf598x2[_0xff99[474]](_0xf598x3[_0xf598x9]),_0xf598x4,_0xf598x5);_0xf598x2[_0xff99[475]](_0xf598x3[_0xf598x9],_0xf598xa)}}}finally{_0xf598x2[_0xff99[476]]()}}},setStyle:function(_0xf598x2,_0xf598x3,_0xf598x4){var _0xf598x5=null!= _0xf598x4&& (_0xff99[82]== typeof _0xf598x4[_0xff99[67]]|| 0< _0xf598x4[_0xff99[67]]);if(null== _0xf598x2|| 0== _0xf598x2[_0xff99[67]]){_0xf598x5&& (_0xf598x2= _0xf598x3+ _0xff99[226]+ _0xf598x4)}else {var _0xf598x9=_0xf598x2[_0xff99[2]](_0xf598x3+ _0xff99[226]);0> _0xf598x9?_0xf598x5&& (_0xf598x5= _0xff99[471]== _0xf598x2[_0xff99[225]](_0xf598x2[_0xff99[67]]- 1)?_0xff99[110]:_0xff99[471],_0xf598x2= _0xf598x2+ _0xf598x5+ _0xf598x3+ _0xff99[226]+ _0xf598x4):(_0xf598x3= _0xf598x5?_0xf598x3+ _0xff99[226]+ _0xf598x4:_0xff99[110],_0xf598x4= _0xf598x2[_0xff99[2]](_0xff99[471],_0xf598x9),_0xf598x5|| _0xf598x4++,_0xf598x2= _0xf598x2[_0xff99[85]](0,_0xf598x9)+ _0xf598x3+ (_0xf598x4> _0xf598x9?_0xf598x2[_0xff99[85]](_0xf598x4):_0xff99[110]))};return _0xf598x2},setCellStyleFlags:function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){if(null!= _0xf598x3&& 0< _0xf598x3[_0xff99[67]]){_0xf598x2[_0xff99[473]]();try{for(var _0xf598xa=0;_0xf598xa< _0xf598x3[_0xff99[67]];_0xf598xa++){if(null!= _0xf598x3[_0xf598xa]){var _0xf598x12=mxUtils[_0xff99[477]](_0xf598x2[_0xff99[474]](_0xf598x3[_0xf598xa]),_0xf598x4,_0xf598x5,_0xf598x9);_0xf598x2[_0xff99[475]](_0xf598x3[_0xf598xa],_0xf598x12)}}}finally{_0xf598x2[_0xff99[476]]()}}},setStyleFlag:function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){if(null== _0xf598x2|| 0== _0xf598x2[_0xff99[67]]){_0xf598x2= _0xf598x5|| null== _0xf598x5?_0xf598x3+ _0xff99[226]+ _0xf598x4:_0xf598x3+ _0xff99[478]}else {var _0xf598x9=_0xf598x2[_0xff99[2]](_0xf598x3+ _0xff99[226]);if(0> _0xf598x9){_0xf598x9= _0xff99[471]== _0xf598x2[_0xff99[225]](_0xf598x2[_0xff99[67]]- 1)?_0xff99[110]:_0xff99[471],_0xf598x2= _0xf598x5|| null== _0xf598x5?_0xf598x2+ _0xf598x9+ _0xf598x3+ _0xff99[226]+ _0xf598x4:_0xf598x2+ _0xf598x9+ _0xf598x3+ _0xff99[478]}else {var _0xf598xa=_0xf598x2[_0xff99[2]](_0xff99[471],_0xf598x9),_0xf598x12=_0xff99[110],_0xf598x12=0> _0xf598xa?_0xf598x2[_0xff99[85]](_0xf598x9+ _0xf598x3[_0xff99[67]]+ 1):_0xf598x2[_0xff99[85]](_0xf598x9+ _0xf598x3[_0xff99[67]]+ 1,_0xf598xa),_0xf598x12=null== _0xf598x5?parseInt(_0xf598x12)^ _0xf598x4:_0xf598x5?parseInt(_0xf598x12)| _0xf598x4:parseInt(_0xf598x12)& ~_0xf598x4;_0xf598x2= _0xf598x2[_0xff99[85]](0,_0xf598x9)+ _0xf598x3+ _0xff99[226]+ _0xf598x12+ (0<= _0xf598xa?_0xf598x2[_0xff99[85]](_0xf598xa):_0xff99[110])}};return _0xf598x2},getAlignmentAsPoint:function(_0xf598x2,_0xf598x3){var _0xf598x4=0,_0xf598x5=0;_0xf598x2== mxConstants[_0xff99[479]]?_0xf598x4= -0.5:_0xf598x2== mxConstants[_0xff99[480]]&& (_0xf598x4= -1);_0xf598x3== mxConstants[_0xff99[481]]?_0xf598x5= -0.5:_0xf598x3== mxConstants[_0xff99[482]]&& (_0xf598x5= -1);return new mxPoint(_0xf598x4,_0xf598x5)},getSizeForString:function(_0xf598x2,_0xf598x3,_0xf598x4){_0xf598x3= null!= _0xf598x3?_0xf598x3:mxConstants[_0xff99[483]];_0xf598x4= null!= _0xf598x4?_0xf598x4:mxConstants[_0xff99[484]];var _0xf598x5=document[_0xff99[55]](_0xff99[485]);_0xf598x5[_0xff99[124]][_0xff99[486]]= _0xf598x4;_0xf598x5[_0xff99[124]][_0xff99[487]]= Math[_0xff99[488]](_0xf598x3)+ _0xff99[168];_0xf598x5[_0xff99[124]][_0xff99[489]]= Math[_0xff99[488]](_0xf598x3* mxConstants[_0xff99[490]])+ _0xff99[168];_0xf598x5[_0xff99[124]][_0xff99[491]]= _0xff99[492];_0xf598x5[_0xff99[124]][_0xff99[493]]= _0xff99[494];_0xf598x5[_0xff99[124]][_0xff99[187]]= _0xff99[188];_0xf598x5[_0xff99[124]][_0xff99[495]]= mxClient[_0xff99[496]]?_0xff99[497]:_0xff99[498];_0xf598x5[_0xff99[124]][_0xff99[499]]= _0xff99[500];_0xf598x5[_0xff99[339]]= _0xf598x2;document[_0xff99[112]][_0xff99[62]](_0xf598x5);_0xf598x2= new mxRectangle(0,0,_0xf598x5[_0xff99[359]],_0xf598x5[_0xff99[167]]);document[_0xff99[112]][_0xff99[266]](_0xf598x5);return _0xf598x2},getViewXml:function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){_0xf598x5= null!= _0xf598x5?_0xf598x5:0;_0xf598x9= null!= _0xf598x9?_0xf598x9:0;_0xf598x3= null!= _0xf598x3?_0xf598x3:1;null== _0xf598x4&& (_0xf598x4= [_0xf598x2[_0xff99[502]]()[_0xff99[501]]()]);var _0xf598xa=_0xf598x2[_0xff99[249]](),_0xf598x12=null,_0xf598x13=_0xf598xa[_0xff99[503]]();_0xf598xa[_0xff99[504]](!1);var _0xf598x14=_0xf598xa[_0xff99[505]],_0xf598x15=_0xf598xa[_0xff99[506]];_0xf598x2[_0xff99[507]]== mxConstants[_0xff99[508]]?(_0xf598xa[_0xff99[505]]= document[_0xff99[509]](mxConstants.NS_SVG,_0xff99[449]),_0xf598xa[_0xff99[510]][_0xff99[62]](_0xf598xa[_0xff99[505]]),_0xf598xa[_0xff99[506]]= document[_0xff99[509]](mxConstants.NS_SVG,_0xff99[449])):(_0xf598xa[_0xff99[505]]= _0xf598xa[_0xff99[505]][_0xff99[511]](!1),_0xf598xa[_0xff99[510]][_0xff99[62]](_0xf598xa[_0xff99[505]]),_0xf598xa[_0xff99[506]]= _0xf598xa[_0xff99[506]][_0xff99[511]](!1));_0xf598xa[_0xff99[510]][_0xff99[62]](_0xf598xa[_0xff99[506]]);var _0xf598x16=_0xf598xa[_0xff99[512]]();_0xf598xa[_0xff99[513]]= new mxPoint(_0xf598x5,_0xf598x9);_0xf598x3= new mxTemporaryCellStates(_0xf598x2[_0xff99[249]](),_0xf598x3,_0xf598x4);try{_0xf598x12= ( new mxCodec)[_0xff99[514]](_0xf598x2[_0xff99[249]]())}finally{_0xf598x3[_0xff99[515]](),_0xf598xa[_0xff99[513]]= _0xf598x16,_0xf598xa[_0xff99[510]][_0xff99[266]](_0xf598xa[_0xff99[505]]),_0xf598xa[_0xff99[510]][_0xff99[266]](_0xf598xa[_0xff99[506]]),_0xf598xa[_0xff99[505]]= _0xf598x14,_0xf598xa[_0xff99[506]]= _0xf598x15,_0xf598xa[_0xff99[504]](_0xf598x13)};return _0xf598x12},getScaleForPageCount:function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){if(1> _0xf598x2){return 1};_0xf598x4= null!= _0xf598x4?_0xf598x4:mxConstants[_0xff99[516]];_0xf598x5= null!= _0xf598x5?_0xf598x5:0;var _0xf598x9=_0xf598x4[_0xff99[117]]- 2* _0xf598x5;_0xf598x4= _0xf598x4[_0xff99[119]]- 2* _0xf598x5;_0xf598x5= _0xf598x3[_0xff99[517]]()[_0xff99[238]]();_0xf598x3= _0xf598x3[_0xff99[249]]()[_0xff99[518]]();_0xf598x5[_0xff99[117]]/= _0xf598x3;_0xf598x5[_0xff99[119]]/= _0xf598x3;_0xf598x3= _0xf598x5[_0xff99[117]];_0xf598x4= _0xf598x3/ _0xf598x5[_0xff99[119]]/ (_0xf598x9/ _0xf598x4);_0xf598x5= Math[_0xff99[428]](_0xf598x2);var _0xf598xa=Math[_0xff99[428]](_0xf598x4);_0xf598x4= _0xf598x5* _0xf598xa;_0xf598x5/= _0xf598xa;if(1> _0xf598x4&& _0xf598x5> _0xf598x2){var _0xf598x12=_0xf598x5/ _0xf598x2;_0xf598x5= _0xf598x2;_0xf598x4/= _0xf598x12};1> _0xf598x5&& _0xf598x4> _0xf598x2&& (_0xf598x12= _0xf598x4/ _0xf598x2,_0xf598x4= _0xf598x2,_0xf598x5/= _0xf598x12);_0xf598x12= Math[_0xff99[430]](_0xf598x4)* Math[_0xff99[430]](_0xf598x5);for(_0xf598xa= 0;_0xf598x12> _0xf598x2;){var _0xf598x12=Math[_0xff99[519]](_0xf598x4)/ _0xf598x4,_0xf598x13=Math[_0xff99[519]](_0xf598x5)/ _0xf598x5;1== _0xf598x12&& (_0xf598x12= Math[_0xff99[519]](_0xf598x4- 1)/ _0xf598x4);1== _0xf598x13&& (_0xf598x13= Math[_0xff99[519]](_0xf598x5- 1)/ _0xf598x5);_0xf598x12= _0xf598x12> _0xf598x13?_0xf598x12:_0xf598x13;_0xf598x4*= _0xf598x12;_0xf598x5*= _0xf598x12;_0xf598x12= Math[_0xff99[430]](_0xf598x4)* Math[_0xff99[430]](_0xf598x5);_0xf598xa++;if(10< _0xf598xa){break}};return 0.99999* (_0xf598x9* _0xf598x4/ _0xf598x3)},show:function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){_0xf598x4= null!= _0xf598x4?_0xf598x4:0;_0xf598x5= null!= _0xf598x5?_0xf598x5:0;null== _0xf598x3?_0xf598x3= window[_0xff99[392]]()[_0xff99[395]]:_0xf598x3[_0xff99[392]]();var _0xf598x9=_0xf598x2[_0xff99[517]]();_0xf598x4= -_0xf598x9[_0xff99[235]]+ _0xf598x4;_0xf598x5= -_0xf598x9[_0xff99[236]]+ _0xf598x5;if(mxClient[_0xff99[80]]){for(var _0xf598x9=_0xff99[520],_0xf598xa=document[_0xff99[64]](_0xff99[521]),_0xf598x12=0;_0xf598x12< _0xf598xa[_0xff99[67]];_0xf598x12++){_0xf598x9+= _0xf598xa[_0xf598x12][_0xff99[342]]};_0xf598x9+= _0xff99[522];for(_0xf598x12= 0;_0xf598x12< document[_0xff99[523]][_0xff99[67]];_0xf598x12++){try{_0xf598x9+= document[_0xff99[523]](_0xf598x12)[_0xff99[103]]}catch(h){}};_0xf598x9+= _0xff99[524];_0xf598x9+= _0xff99[525];_0xf598x9+= _0xf598x2[_0xff99[526]][_0xff99[339]];_0xf598x9+= _0xff99[527];_0xf598x9+= _0xff99[528];_0xf598x3[_0xff99[171]](_0xf598x9);_0xf598x3[_0xff99[268]]();_0xf598x2= _0xf598x3[_0xff99[112]][_0xff99[64]](_0xff99[529])[0];null!= _0xf598x2&& (_0xf598x2[_0xff99[124]][_0xff99[491]]= _0xff99[492],_0xf598x2[_0xff99[124]][_0xff99[361]]= _0xf598x4+ _0xff99[168],_0xf598x2[_0xff99[124]][_0xff99[125]]= _0xf598x5+ _0xff99[168])}else {_0xf598x3[_0xff99[171]](_0xff99[530]);_0xf598x3[_0xff99[171]](_0xff99[531]);_0xf598xa= document[_0xff99[64]](_0xff99[521]);for(_0xf598x12= 0;_0xf598x12< _0xf598xa[_0xff99[67]];_0xf598x12++){_0xf598x3[_0xff99[171]](mxUtils[_0xff99[532]](_0xf598xa[_0xf598x12]))};_0xf598xa= document[_0xff99[64]](_0xff99[54]);for(_0xf598x12= 0;_0xf598x12< _0xf598xa[_0xff99[67]];_0xf598x12++){_0xf598x3[_0xff99[171]](mxUtils[_0xff99[532]](_0xf598xa[_0xf598x12]))};_0xf598xa= document[_0xff99[64]](_0xff99[124]);for(_0xf598x12= 0;_0xf598x12< _0xf598xa[_0xff99[67]];_0xf598x12++){_0xf598x3[_0xff99[171]](mxUtils[_0xff99[532]](_0xf598xa[_0xf598x12]))};_0xf598x3[_0xff99[171]](_0xff99[533]);_0xf598x3[_0xff99[171]](_0xff99[534]);_0xf598x3[_0xff99[268]]();null== _0xf598x3[_0xff99[112]]&& _0xf598x3[_0xff99[158]][_0xff99[62]](_0xf598x3[_0xff99[55]](_0xff99[112]));_0xf598x3[_0xff99[112]][_0xff99[124]][_0xff99[277]]= _0xff99[278];for(_0xf598x2= _0xf598x2[_0xff99[526]][_0xff99[285]];null!= _0xf598x2;){_0xf598x12= _0xf598x2[_0xff99[511]](!0),_0xf598x3[_0xff99[112]][_0xff99[62]](_0xf598x12),_0xf598x2= _0xf598x2[_0xff99[287]]};_0xf598x2= _0xf598x3[_0xff99[64]](_0xff99[449])[0];null!= _0xf598x2&& (_0xf598x2[_0xff99[57]](_0xff99[535],_0xff99[536]+ _0xf598x4+ _0xff99[537]+ _0xf598x5+ _0xff99[460]),_0xf598x4= _0xf598x2[_0xff99[538]],_0xf598x4[_0xff99[57]](_0xff99[117],_0xf598x9[_0xff99[117]]+ Math[_0xff99[160]](_0xf598x9[_0xff99[235]],0)+ 3),_0xf598x4[_0xff99[57]](_0xff99[119],_0xf598x9[_0xff99[119]]+ Math[_0xff99[160]](_0xf598x9[_0xff99[236]],0)+ 3))};mxUtils[_0xff99[272]](_0xf598x3[_0xff99[112]]);return _0xf598x3},printScreen:function(_0xf598x2){var _0xf598x3=window[_0xff99[392]]();mxUtils[_0xff99[539]](_0xf598x2,_0xf598x3[_0xff99[395]]);_0xf598x2= function(){_0xf598x3[_0xff99[393]]();_0xf598x3[_0xff99[540]]();_0xf598x3[_0xff99[268]]()};mxClient[_0xff99[76]]?_0xf598x3[_0xff99[261]](_0xf598x2,500):_0xf598x2()},popup:function(_0xf598x2,_0xf598x3){if(_0xf598x3){var _0xf598x4=document[_0xff99[55]](_0xff99[485]);_0xf598x4[_0xff99[124]][_0xff99[277]]= _0xff99[276];_0xf598x4[_0xff99[124]][_0xff99[117]]= _0xff99[541];_0xf598x4[_0xff99[124]][_0xff99[119]]= _0xff99[542];var _0xf598x5=document[_0xff99[55]](_0xff99[543]);_0xf598x5[_0xff99[339]]= mxUtils[_0xff99[321]](_0xf598x2,!1)[_0xff99[230]](/\n/g,_0xff99[545])[_0xff99[230]](/ /g,_0xff99[544]);_0xf598x4[_0xff99[62]](_0xf598x5);_0xf598x4= new mxWindow(_0xff99[546],_0xf598x4,document[_0xff99[112]][_0xff99[159]]/ 2- 320,(document[_0xff99[112]][_0xff99[157]]|| document[_0xff99[158]][_0xff99[157]])/ 2- 240,640,480,!1,!0);_0xf598x4[_0xff99[164]](!0);_0xf598x4[_0xff99[175]](!0)}else {mxClient[_0xff99[133]]?(_0xf598x4= window[_0xff99[392]](),_0xf598x4[_0xff99[395]][_0xff99[171]](_0xff99[547]+ mxUtils[_0xff99[321]](_0xf598x2)+ _0xff99[548]),_0xf598x4[_0xff99[395]][_0xff99[268]]()):(_0xf598x4= window[_0xff99[392]](),_0xf598x5= _0xf598x4[_0xff99[395]][_0xff99[55]](_0xff99[543]),_0xf598x5[_0xff99[339]]= mxUtils[_0xff99[321]](_0xf598x2,!1)[_0xff99[230]](/\n/g,_0xff99[545])[_0xff99[230]](/ /g,_0xff99[544]),_0xf598x4[_0xff99[395]][_0xff99[112]][_0xff99[62]](_0xf598x5))}},alert:function(_0xf598x2){alert(_0xf598x2)},prompt:function(_0xf598x2,_0xf598x3){return prompt(_0xf598x2,_0xf598x3)},confirm:function(_0xf598x2){return confirm(_0xf598x2)},error:function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){var _0xf598x9=document[_0xff99[55]](_0xff99[485]);_0xf598x9[_0xff99[124]][_0xff99[549]]= _0xff99[550];var _0xf598xa=document[_0xff99[55]](_0xff99[466]);_0xf598xa[_0xff99[57]](_0xff99[390],_0xf598x5|| mxUtils[_0xff99[551]]);_0xf598xa[_0xff99[57]](_0xff99[552],_0xff99[553]);_0xf598xa[_0xff99[124]][_0xff99[123]]= _0xff99[554];_0xf598x9[_0xff99[62]](_0xf598xa);_0xf598x9[_0xff99[62]](document[_0xff99[344]](_0xff99[555]));_0xf598x9[_0xff99[62]](document[_0xff99[344]](_0xff99[555]));_0xf598x9[_0xff99[62]](document[_0xff99[344]](_0xff99[555]));mxUtils[_0xff99[53]](_0xf598x9,_0xf598x2);_0xf598x2= document[_0xff99[112]][_0xff99[159]];_0xf598x5= document[_0xff99[112]][_0xff99[157]]|| document[_0xff99[158]][_0xff99[157]];var _0xf598x12= new mxWindow(mxResources[_0xff99[203]](mxUtils[_0xff99[556]])|| mxUtils[_0xff99[556]],_0xf598x9,(_0xf598x2- _0xf598x3)/ 2,_0xf598x5/ 4,_0xf598x3,null,!1,!0);_0xf598x4&& (mxUtils[_0xff99[345]](_0xf598x9),_0xf598x3= document[_0xff99[55]](_0xff99[346]),_0xf598x4= document[_0xff99[55]](_0xff99[172]),mxClient[_0xff99[80]]?_0xf598x4[_0xff99[124]][_0xff99[103]]= _0xff99[557]:_0xf598x4[_0xff99[57]](_0xff99[124],_0xff99[557]),mxEvent[_0xff99[169]](_0xf598x4,_0xff99[173],function(_0xf598x2){_0xf598x12[_0xff99[515]]()}),mxUtils[_0xff99[53]](_0xf598x4,mxResources[_0xff99[203]](mxUtils[_0xff99[558]])|| mxUtils[_0xff99[558]]),_0xf598x3[_0xff99[62]](_0xf598x4),_0xf598x9[_0xff99[62]](_0xf598x3),mxUtils[_0xff99[345]](_0xf598x9),_0xf598x12[_0xff99[164]](!0));_0xf598x12[_0xff99[175]](!0);return _0xf598x12},makeDraggable:function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa,_0xf598x12,_0xf598x13,_0xf598x14,_0xf598x15){_0xf598x2= new mxDragSource(_0xf598x2,_0xf598x4);_0xf598x2[_0xff99[559]]= new mxPoint(null!= _0xf598x9?_0xf598x9:0,null!= _0xf598xa?_0xf598xa:mxConstants[_0xff99[560]]);_0xf598x2[_0xff99[561]]= _0xf598x12;_0xf598x2[_0xff99[562]](!1);null!= _0xf598x14&& (_0xf598x2[_0xff99[563]]= _0xf598x14);null!= _0xf598x15&& (_0xf598x2[_0xff99[564]]= _0xf598x15);_0xf598x2[_0xff99[565]]= function(_0xf598x2){return _0xff99[279]== typeof _0xf598x3?_0xf598x3(_0xf598x2):_0xf598x3};null!= _0xf598x5&& (_0xf598x2[_0xff99[566]]= function(){return _0xf598x5[_0xff99[511]](!0)},_0xf598x13&& (_0xf598x2[_0xff99[567]]= function(_0xf598x2){var _0xf598x3=_0xf598x5[_0xff99[511]](!0),_0xf598x4=parseInt(_0xf598x3[_0xff99[124]][_0xff99[117]]),_0xf598x9=parseInt(_0xf598x3[_0xff99[124]][_0xff99[119]]);_0xf598x3[_0xff99[124]][_0xff99[117]]= Math[_0xff99[488]](_0xf598x4* _0xf598x2[_0xff99[441]][_0xff99[255]])+ _0xff99[168];_0xf598x3[_0xff99[124]][_0xff99[119]]= Math[_0xff99[488]](_0xf598x9* _0xf598x2[_0xff99[441]][_0xff99[255]])+ _0xff99[168];return _0xf598x3}));return _0xf598x2}},mxConstants={DEFAULT_HOTSPOT:0.3,MIN_HOTSPOT_SIZE:8,MAX_HOTSPOT_SIZE:0,RENDERING_HINT_EXACT:_0xff99[568],RENDERING_HINT_FASTER:_0xff99[569],RENDERING_HINT_FASTEST:_0xff99[570],DIALECT_SVG:_0xff99[571],DIALECT_VML:_0xff99[572],DIALECT_MIXEDHTML:_0xff99[573],DIALECT_PREFERHTML:_0xff99[574],DIALECT_STRICTHTML:_0xff99[575],NS_SVG:_0xff99[576],NS_XHTML:_0xff99[577],NS_XLINK:_0xff99[578],SHADOWCOLOR:_0xff99[579],SHADOW_OFFSET_X:2,SHADOW_OFFSET_Y:3,SHADOW_OPACITY:1,NODETYPE_ELEMENT:1,NODETYPE_ATTRIBUTE:2,NODETYPE_TEXT:3,NODETYPE_CDATA:4,NODETYPE_ENTITY_REFERENCE:5,NODETYPE_ENTITY:6,NODETYPE_PROCESSING_INSTRUCTION:7,NODETYPE_COMMENT:8,NODETYPE_DOCUMENT:9,NODETYPE_DOCUMENTTYPE:10,NODETYPE_DOCUMENT_FRAGMENT:11,NODETYPE_NOTATION:12,TOOLTIP_VERTICAL_OFFSET:16,DEFAULT_VALID_COLOR:_0xff99[580],DEFAULT_INVALID_COLOR:_0xff99[581],HIGHLIGHT_STROKEWIDTH:3,CURSOR_MOVABLE_VERTEX:_0xff99[582],CURSOR_MOVABLE_EDGE:_0xff99[582],CURSOR_LABEL_HANDLE:_0xff99[583],CURSOR_BEND_HANDLE:_0xff99[356],CURSOR_CONNECT:_0xff99[356],HIGHLIGHT_COLOR:_0xff99[580],CONNECT_TARGET_COLOR:_0xff99[584],INVALID_CONNECT_TARGET_COLOR:_0xff99[581],DROP_TARGET_COLOR:_0xff99[584],VALID_COLOR:_0xff99[580],INVALID_COLOR:_0xff99[581],EDGE_SELECTION_COLOR:_0xff99[580],VERTEX_SELECTION_COLOR:_0xff99[580],VERTEX_SELECTION_STROKEWIDTH:1,EDGE_SELECTION_STROKEWIDTH:1,VERTEX_SELECTION_DASHED:!0,EDGE_SELECTION_DASHED:!0,GUIDE_COLOR:_0xff99[581],GUIDE_STROKEWIDTH:1,OUTLINE_COLOR:_0xff99[585],OUTLINE_STROKEWIDTH:mxClient[_0xff99[80]]?2:3,HANDLE_SIZE:7,LABEL_HANDLE_SIZE:4,HANDLE_FILLCOLOR:_0xff99[580],HANDLE_STROKECOLOR:_0xff99[586],LABEL_HANDLE_FILLCOLOR:_0xff99[587],CONNECT_HANDLE_FILLCOLOR:_0xff99[584],LOCKED_HANDLE_FILLCOLOR:_0xff99[581],OUTLINE_HANDLE_FILLCOLOR:_0xff99[588],OUTLINE_HANDLE_STROKECOLOR:_0xff99[589],DEFAULT_FONTFAMILY:_0xff99[590],DEFAULT_FONTSIZE:11,LINE_HEIGHT:1.2,DEFAULT_FONTSTYLE:0,DEFAULT_STARTSIZE:40,DEFAULT_MARKERSIZE:6,DEFAULT_IMAGESIZE:24,ENTITY_SEGMENT:30,RECTANGLE_ROUNDING_FACTOR:0.15,LINE_ARCSIZE:20,ARROW_SPACING:10,ARROW_WIDTH:30,ARROW_SIZE:30,PAGE_FORMAT_A4_PORTRAIT: new mxRectangle(0,0,826,1169),PAGE_FORMAT_A4_LANDSCAPE: new mxRectangle(0,0,1169,826),PAGE_FORMAT_LETTER_PORTRAIT: new mxRectangle(0,0,850,1100),PAGE_FORMAT_LETTER_LANDSCAPE: new mxRectangle(0,0,1100,850),NONE:_0xff99[130],STYLE_PERIMETER:_0xff99[591],STYLE_SOURCE_PORT:_0xff99[592],STYLE_TARGET_PORT:_0xff99[593],STYLE_PORT_CONSTRAINT:_0xff99[594],STYLE_OPACITY:_0xff99[461],STYLE_TEXT_OPACITY:_0xff99[595],STYLE_OVERFLOW:_0xff99[277],STYLE_ORTHOGONAL:_0xff99[596],STYLE_EXIT_X:_0xff99[597],STYLE_EXIT_Y:_0xff99[598],STYLE_EXIT_PERIMETER:_0xff99[599],STYLE_ENTRY_X:_0xff99[600],STYLE_ENTRY_Y:_0xff99[601],STYLE_ENTRY_PERIMETER:_0xff99[602],STYLE_WHITE_SPACE:_0xff99[493],STYLE_ROTATION:_0xff99[603],STYLE_FILLCOLOR:_0xff99[604],STYLE_SWIMLANE_FILLCOLOR:_0xff99[605],STYLE_GRADIENTCOLOR:_0xff99[606],STYLE_GRADIENT_DIRECTION:_0xff99[607],STYLE_STROKECOLOR:_0xff99[608],STYLE_SEPARATORCOLOR:_0xff99[609],STYLE_STROKEWIDTH:_0xff99[610],STYLE_ALIGN:_0xff99[611],STYLE_VERTICAL_ALIGN:_0xff99[123],STYLE_LABEL_POSITION:_0xff99[612],STYLE_VERTICAL_LABEL_POSITION:_0xff99[613],STYLE_IMAGE_ASPECT:_0xff99[614],STYLE_IMAGE_ALIGN:_0xff99[615],STYLE_IMAGE_VERTICAL_ALIGN:_0xff99[616],STYLE_GLASS:_0xff99[617],STYLE_IMAGE:_0xff99[618],STYLE_IMAGE_WIDTH:_0xff99[619],STYLE_IMAGE_HEIGHT:_0xff99[620],STYLE_IMAGE_BACKGROUND:_0xff99[621],STYLE_IMAGE_BORDER:_0xff99[622],STYLE_FLIPH:_0xff99[623],STYLE_FLIPV:_0xff99[624],STYLE_NOLABEL:_0xff99[625],STYLE_NOEDGESTYLE:_0xff99[626],STYLE_LABEL_BACKGROUNDCOLOR:_0xff99[627],STYLE_LABEL_BORDERCOLOR:_0xff99[628],STYLE_LABEL_PADDING:_0xff99[629],STYLE_INDICATOR_SHAPE:_0xff99[630],STYLE_INDICATOR_IMAGE:_0xff99[631],STYLE_INDICATOR_COLOR:_0xff99[632],STYLE_INDICATOR_STROKECOLOR:_0xff99[633],STYLE_INDICATOR_GRADIENTCOLOR:_0xff99[634],STYLE_INDICATOR_SPACING:_0xff99[635],STYLE_INDICATOR_WIDTH:_0xff99[636],STYLE_INDICATOR_HEIGHT:_0xff99[637],STYLE_INDICATOR_DIRECTION:_0xff99[638],STYLE_SHADOW:_0xff99[639],STYLE_SEGMENT:_0xff99[640],STYLE_ENDARROW:_0xff99[641],STYLE_STARTARROW:_0xff99[642],STYLE_ENDSIZE:_0xff99[643],STYLE_STARTSIZE:_0xff99[644],STYLE_SWIMLANE_LINE:_0xff99[645],STYLE_ENDFILL:_0xff99[646],STYLE_STARTFILL:_0xff99[647],STYLE_DASHED:_0xff99[648],STYLE_DASH_PATTERN:_0xff99[649],STYLE_ROUNDED:_0xff99[650],STYLE_CURVED:_0xff99[651],STYLE_ARCSIZE:_0xff99[652],STYLE_SMOOTH:_0xff99[653],STYLE_SOURCE_PERIMETER_SPACING:_0xff99[654],STYLE_TARGET_PERIMETER_SPACING:_0xff99[655],STYLE_PERIMETER_SPACING:_0xff99[656],STYLE_SPACING:_0xff99[657],STYLE_SPACING_TOP:_0xff99[658],STYLE_SPACING_LEFT:_0xff99[659],STYLE_SPACING_BOTTOM:_0xff99[660],STYLE_SPACING_RIGHT:_0xff99[661],STYLE_HORIZONTAL:_0xff99[662],STYLE_DIRECTION:_0xff99[663],STYLE_ELBOW:_0xff99[664],STYLE_FONTCOLOR:_0xff99[665],STYLE_FONTFAMILY:_0xff99[486],STYLE_FONTSIZE:_0xff99[487],STYLE_FONTSTYLE:_0xff99[666],STYLE_AUTOSIZE:_0xff99[667],STYLE_FOLDABLE:_0xff99[668],STYLE_EDITABLE:_0xff99[669],STYLE_BENDABLE:_0xff99[670],STYLE_MOVABLE:_0xff99[671],STYLE_RESIZABLE:_0xff99[672],STYLE_CLONEABLE:_0xff99[673],STYLE_DELETABLE:_0xff99[674],STYLE_SHAPE:_0xff99[253],STYLE_EDGE:_0xff99[675],STYLE_LOOP:_0xff99[676],STYLE_ROUTING_CENTER_X:_0xff99[677],STYLE_ROUTING_CENTER_Y:_0xff99[678],FONT_BOLD:1,FONT_ITALIC:2,FONT_UNDERLINE:4,FONT_SHADOW:8,SHAPE_RECTANGLE:_0xff99[679],SHAPE_ELLIPSE:_0xff99[680],SHAPE_DOUBLE_ELLIPSE:_0xff99[681],SHAPE_RHOMBUS:_0xff99[682],SHAPE_LINE:_0xff99[683],SHAPE_IMAGE:_0xff99[618],SHAPE_ARROW:_0xff99[684],SHAPE_LABEL:_0xff99[685],SHAPE_CYLINDER:_0xff99[686],SHAPE_SWIMLANE:_0xff99[687],SHAPE_CONNECTOR:_0xff99[688],SHAPE_ACTOR:_0xff99[689],SHAPE_CLOUD:_0xff99[690],SHAPE_TRIANGLE:_0xff99[691],SHAPE_HEXAGON:_0xff99[692],ARROW_CLASSIC:_0xff99[693],ARROW_BLOCK:_0xff99[694],ARROW_OPEN:_0xff99[392],ARROW_OVAL:_0xff99[695],ARROW_DIAMOND:_0xff99[696],ARROW_DIAMOND_THIN:_0xff99[697],ALIGN_LEFT:_0xff99[361],ALIGN_CENTER:_0xff99[698],ALIGN_RIGHT:_0xff99[699],ALIGN_TOP:_0xff99[125],ALIGN_MIDDLE:_0xff99[554],ALIGN_BOTTOM:_0xff99[553],DIRECTION_NORTH:_0xff99[700],DIRECTION_SOUTH:_0xff99[701],DIRECTION_EAST:_0xff99[702],DIRECTION_WEST:_0xff99[703],DIRECTION_MASK_NONE:0,DIRECTION_MASK_WEST:1,DIRECTION_MASK_NORTH:2,DIRECTION_MASK_SOUTH:4,DIRECTION_MASK_EAST:8,DIRECTION_MASK_ALL:15,ELBOW_VERTICAL:_0xff99[704],ELBOW_HORIZONTAL:_0xff99[662],EDGESTYLE_ELBOW:_0xff99[705],EDGESTYLE_ENTITY_RELATION:_0xff99[706],EDGESTYLE_LOOP:_0xff99[707],EDGESTYLE_SIDETOSIDE:_0xff99[708],EDGESTYLE_TOPTOBOTTOM:_0xff99[709],EDGESTYLE_ORTHOGONAL:_0xff99[710],EDGESTYLE_SEGMENT:_0xff99[711],PERIMETER_ELLIPSE:_0xff99[712],PERIMETER_RECTANGLE:_0xff99[713],PERIMETER_RHOMBUS:_0xff99[714],PERIMETER_TRIANGLE:_0xff99[715]};function mxEventObject(_0xf598x2){this[_0xff99[298]]= _0xf598x2;this[_0xff99[716]]= [];for(var _0xf598x3=1;_0xf598x3< arguments[_0xff99[67]];_0xf598x3+= 2){null!= arguments[_0xf598x3+ 1]&& (this[_0xff99[716]][arguments[_0xf598x3]]= arguments[_0xf598x3+ 1])}}mxEventObject[_0xff99[202]][_0xff99[298]]= null;mxEventObject[_0xff99[202]][_0xff99[716]]= null;mxEventObject[_0xff99[202]][_0xff99[717]]= !1;mxEventObject[_0xff99[202]][_0xff99[718]]= function(){return this[_0xff99[298]]};mxEventObject[_0xff99[202]][_0xff99[719]]= function(){return this[_0xff99[716]]};mxEventObject[_0xff99[202]][_0xff99[720]]= function(_0xf598x2){return this[_0xff99[716]][_0xf598x2]};mxEventObject[_0xff99[202]][_0xff99[721]]= function(){return this[_0xff99[717]]};mxEventObject[_0xff99[202]][_0xff99[722]]= function(){this[_0xff99[717]]= !0};function mxMouseEvent(_0xf598x2,_0xf598x3){this[_0xff99[723]]= _0xf598x2;this[_0xff99[724]]= _0xf598x3}mxMouseEvent[_0xff99[202]][_0xff99[717]]= !1;mxMouseEvent[_0xff99[202]][_0xff99[723]]= null;mxMouseEvent[_0xff99[202]][_0xff99[725]]= null;mxMouseEvent[_0xff99[202]][_0xff99[726]]= null;mxMouseEvent[_0xff99[202]][_0xff99[724]]= null;mxMouseEvent[_0xff99[202]][_0xff99[727]]= function(){return this[_0xff99[723]]};mxMouseEvent[_0xff99[202]][_0xff99[728]]= function(){return mxEvent[_0xff99[728]](this[_0xff99[723]])};mxMouseEvent[_0xff99[202]][_0xff99[729]]= function(_0xf598x2){if(null!= _0xf598x2){for(var _0xf598x3=this[_0xff99[728]]();null!= _0xf598x3;){if(_0xf598x3== _0xf598x2[_0xff99[252]]){return !0};_0xf598x3= _0xf598x3[_0xff99[265]]}};return !1};mxMouseEvent[_0xff99[202]][_0xff99[730]]= function(){return mxEvent[_0xff99[731]](this[_0xff99[727]]())};mxMouseEvent[_0xff99[202]][_0xff99[732]]= function(){return mxEvent[_0xff99[733]](this[_0xff99[727]]())};mxMouseEvent[_0xff99[202]][_0xff99[734]]= function(){return this[_0xff99[725]]};mxMouseEvent[_0xff99[202]][_0xff99[735]]= function(){return this[_0xff99[726]]};mxMouseEvent[_0xff99[202]][_0xff99[248]]= function(){return this[_0xff99[724]]};mxMouseEvent[_0xff99[202]][_0xff99[736]]= function(){var _0xf598x2=this[_0xff99[248]]();return null!= _0xf598x2?_0xf598x2[_0xff99[246]]:null};mxMouseEvent[_0xff99[202]][_0xff99[737]]= function(){return mxEvent[_0xff99[737]](this[_0xff99[727]]())};mxMouseEvent[_0xff99[202]][_0xff99[721]]= function(){return this[_0xff99[717]]};mxMouseEvent[_0xff99[202]][_0xff99[722]]= function(_0xf598x2){(null!= _0xf598x2?_0xf598x2:1)&& this[_0xff99[723]][_0xff99[738]]&& this[_0xff99[723]][_0xff99[738]]();this[_0xff99[723]][_0xff99[739]]= !1;this[_0xff99[717]]= !0};function mxEventSource(_0xf598x2){this[_0xff99[740]](_0xf598x2)}mxEventSource[_0xff99[202]][_0xff99[741]]= null;mxEventSource[_0xff99[202]][_0xff99[742]]= !0;mxEventSource[_0xff99[202]][_0xff99[743]]= null;mxEventSource[_0xff99[202]][_0xff99[503]]= function(){return this[_0xff99[742]]};mxEventSource[_0xff99[202]][_0xff99[504]]= function(_0xf598x2){this[_0xff99[742]]= _0xf598x2};mxEventSource[_0xff99[202]][_0xff99[744]]= function(){return this[_0xff99[743]]};mxEventSource[_0xff99[202]][_0xff99[740]]= function(_0xf598x2){this[_0xff99[743]]= _0xf598x2};mxEventSource[_0xff99[202]][_0xff99[169]]= function(_0xf598x2,_0xf598x3){null== this[_0xff99[741]]&& (this[_0xff99[741]]= []);this[_0xff99[741]][_0xff99[207]](_0xf598x2);this[_0xff99[741]][_0xff99[207]](_0xf598x3)};mxEventSource[_0xff99[202]][_0xff99[745]]= function(_0xf598x2){if(null!= this[_0xff99[741]]){for(var _0xf598x3=0;_0xf598x3< this[_0xff99[741]][_0xff99[67]];){this[_0xff99[741]][_0xf598x3+ 1]== _0xf598x2?this[_0xff99[741]][_0xff99[300]](_0xf598x3,2):_0xf598x3+= 2}}};mxEventSource[_0xff99[202]][_0xff99[746]]= function(_0xf598x2,_0xf598x3){if(null!= this[_0xff99[741]]&& this[_0xff99[503]]()){null== _0xf598x2&& (_0xf598x2= new mxEventObject);null== _0xf598x3&& (_0xf598x3= this[_0xff99[744]]());null== _0xf598x3&& (_0xf598x3= this);for(var _0xf598x4=[_0xf598x3,_0xf598x2],_0xf598x5=0;_0xf598x5< this[_0xff99[741]][_0xff99[67]];_0xf598x5+= 2){var _0xf598x9=this[_0xff99[741]][_0xf598x5];(null== _0xf598x9|| _0xf598x9== _0xf598x2[_0xff99[718]]())&& this[_0xff99[741]][_0xf598x5+ 1][_0xff99[183]](this,_0xf598x4)}}};var mxEvent={objects:[],addListener:function(){var _0xf598x2=function(_0xf598x2,_0xf598x4,_0xf598x5){null== _0xf598x2[_0xff99[69]]&& (_0xf598x2[_0xff99[69]]= [],mxEvent[_0xff99[68]][_0xff99[207]](_0xf598x2));_0xf598x2[_0xff99[69]][_0xff99[207]]({name:_0xf598x4,f:_0xf598x5})};return window[_0xff99[418]]?function(_0xf598x3,_0xf598x4,_0xf598x5){_0xf598x3[_0xff99[418]](_0xf598x4,_0xf598x5,!1);_0xf598x2(_0xf598x3,_0xf598x4,_0xf598x5)}:function(_0xf598x3,_0xf598x4,_0xf598x5){_0xf598x3[_0xff99[108]](_0xff99[747]+ _0xf598x4,_0xf598x5);_0xf598x2(_0xf598x3,_0xf598x4,_0xf598x5)}}(),removeListener:function(){var _0xf598x2=function(_0xf598x2,_0xf598x4,_0xf598x5){if(null!= _0xf598x2[_0xff99[69]]){_0xf598x4= _0xf598x2[_0xff99[69]][_0xff99[67]];for(var _0xf598x9=0;_0xf598x9< _0xf598x4;_0xf598x9++){if(_0xf598x2[_0xff99[69]][_0xf598x9][_0xff99[748]]== _0xf598x5){_0xf598x2[_0xff99[69]][_0xff99[300]](_0xf598x9,1);break}};0== _0xf598x2[_0xff99[69]][_0xff99[67]]&& (_0xf598x2[_0xff99[69]]= null)}};return window[_0xff99[749]]?function(_0xf598x3,_0xf598x4,_0xf598x5){_0xf598x3[_0xff99[749]](_0xf598x4,_0xf598x5,!1);_0xf598x2(_0xf598x3,_0xf598x4,_0xf598x5)}:function(_0xf598x3,_0xf598x4,_0xf598x5){_0xf598x3[_0xff99[750]](_0xff99[747]+ _0xf598x4,_0xf598x5);_0xf598x2(_0xf598x3,_0xf598x4,_0xf598x5)}}(),removeAllListeners:function(_0xf598x2){var _0xf598x3=_0xf598x2[_0xff99[69]];if(null!= _0xf598x3){for(;0< _0xf598x3[_0xff99[67]];){var _0xf598x4=_0xf598x3[0];mxEvent[_0xff99[745]](_0xf598x2,_0xf598x4[_0xff99[298]],_0xf598x4[_0xff99[748]])}}},addGestureListeners:function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){null!= _0xf598x3&& mxEvent[_0xff99[169]](_0xf598x2,_0xff99[751],_0xf598x3);null!= _0xf598x4&& mxEvent[_0xff99[169]](_0xf598x2,_0xff99[752],_0xf598x4);null!= _0xf598x5&& mxEvent[_0xff99[169]](_0xf598x2,_0xff99[753],_0xf598x5);mxClient[_0xff99[754]]&& (null!= _0xf598x3&& mxEvent[_0xff99[169]](_0xf598x2,_0xff99[755],_0xf598x3),null!= _0xf598x4&& mxEvent[_0xff99[169]](_0xf598x2,_0xff99[756],_0xf598x4),null!= _0xf598x5&& mxEvent[_0xff99[169]](_0xf598x2,_0xff99[757],_0xf598x5))},removeGestureListeners:function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){null!= _0xf598x3&& mxEvent[_0xff99[745]](_0xf598x2,_0xff99[751],_0xf598x3);null!= _0xf598x4&& mxEvent[_0xff99[745]](_0xf598x2,_0xff99[752],_0xf598x4);null!= _0xf598x5&& mxEvent[_0xff99[745]](_0xf598x2,_0xff99[753],_0xf598x5);mxClient[_0xff99[754]]&& (null!= _0xf598x3&& mxEvent[_0xff99[745]](_0xf598x2,_0xff99[755],_0xf598x3),null!= _0xf598x4&& mxEvent[_0xff99[745]](_0xf598x2,_0xff99[756],_0xf598x4),null!= _0xf598x5&& mxEvent[_0xff99[745]](_0xf598x2,_0xff99[757],_0xf598x5))},redirectMouseEvents:function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa,_0xf598x12){var _0xf598x13=function(_0xf598x2){return _0xff99[279]== typeof _0xf598x4?_0xf598x4(_0xf598x2):_0xf598x4};mxEvent[_0xff99[759]](_0xf598x2,function(_0xf598x2){null!= _0xf598x5?_0xf598x5(_0xf598x2):mxEvent[_0xff99[721]](_0xf598x2)|| _0xf598x3[_0xff99[758]](mxEvent.MOUSE_DOWN, new mxMouseEvent(_0xf598x2,_0xf598x13(_0xf598x2)))},function(_0xf598x2){null!= _0xf598x9?_0xf598x9(_0xf598x2):mxEvent[_0xff99[721]](_0xf598x2)|| _0xf598x3[_0xff99[758]](mxEvent.MOUSE_MOVE, new mxMouseEvent(_0xf598x2,_0xf598x13(_0xf598x2)))},function(_0xf598x2){null!= _0xf598xa?_0xf598xa(_0xf598x2):mxEvent[_0xff99[721]](_0xf598x2)|| _0xf598x3[_0xff99[758]](mxEvent.MOUSE_UP, new mxMouseEvent(_0xf598x2,_0xf598x13(_0xf598x2)))});mxEvent[_0xff99[169]](_0xf598x2,_0xff99[760],function(_0xf598x2){if(null!= _0xf598x12){_0xf598x12(_0xf598x2)}else {if(!mxEvent[_0xff99[721]](_0xf598x2)){var _0xf598x4=_0xf598x13(_0xf598x2);_0xf598x3[_0xff99[761]](_0xf598x2,null!= _0xf598x4?_0xf598x4[_0xff99[246]]:null)}}})},release:function(_0xf598x2){if(null!= _0xf598x2&& (mxEvent[_0xff99[70]](_0xf598x2),_0xf598x2= _0xf598x2[_0xff99[271]],null!= _0xf598x2)){for(var _0xf598x3=_0xf598x2[_0xff99[67]],_0xf598x4=0;_0xf598x4< _0xf598x3;_0xf598x4+= 1){mxEvent[_0xff99[762]](_0xf598x2[_0xf598x4])}}},addMouseWheelListener:function(_0xf598x2){if(null!= _0xf598x2){var _0xf598x3=function(_0xf598x3){null== _0xf598x3&& (_0xf598x3= window[_0xff99[763]]);var _0xf598x5=0,_0xf598x5=mxClient[_0xff99[133]]&& !mxClient[_0xff99[75]]&& !mxClient[_0xff99[76]]?-_0xf598x3[_0xff99[764]]/ 2:_0xf598x3[_0xff99[765]]/ 120;0!= _0xf598x5&& _0xf598x2(_0xf598x3,0< _0xf598x5)};mxClient[_0xff99[133]]?mxEvent[_0xff99[169]](window,mxClient[_0xff99[75]]|| mxClient[_0xff99[76]]?_0xff99[766]:_0xff99[767],_0xf598x3):mxEvent[_0xff99[169]](document,_0xff99[766],_0xf598x3)}},disableContextMenu:function(){return mxClient[_0xff99[80]]&& (_0xff99[82]=== typeof document[_0xff99[5]]|| 9> document[_0xff99[5]])?function(_0xf598x2){mxEvent[_0xff99[169]](_0xf598x2,_0xff99[768],function(){return !1})}:function(_0xf598x2){_0xf598x2[_0xff99[57]](_0xff99[769],_0xff99[770])}}(),getSource:function(_0xf598x2){return null!= _0xf598x2[_0xff99[771]]?_0xf598x2[_0xff99[771]]:_0xf598x2[_0xff99[772]]},isConsumed:function(_0xf598x2){return null!= _0xf598x2[_0xff99[721]]&& _0xf598x2[_0xff99[721]]},isLeftMouseButton:function(_0xf598x2){return _0xf598x2[_0xff99[172]]== (mxClient[_0xff99[80]]&& (_0xff99[82]=== typeof document[_0xff99[5]]|| 9> document[_0xff99[5]])?1:0)},isRightMouseButton:function(_0xf598x2){return 2== _0xf598x2[_0xff99[172]]},isPopupTrigger:function(_0xf598x2){return mxEvent[_0xff99[773]](_0xf598x2)|| mxEvent[_0xff99[774]](_0xf598x2)&& !mxEvent[_0xff99[775]](_0xf598x2)},isShiftDown:function(_0xf598x2){return null!= _0xf598x2?_0xf598x2[_0xff99[776]]:!1},isAltDown:function(_0xf598x2){return null!= _0xf598x2?_0xf598x2[_0xff99[777]]:!1},isControlDown:function(_0xf598x2){return null!= _0xf598x2?_0xf598x2[_0xff99[778]]:!1},isMetaDown:function(_0xf598x2){return null!= _0xf598x2?_0xf598x2[_0xff99[779]]:!1},getMainEvent:function(_0xf598x2){(_0xff99[755]== _0xf598x2[_0xff99[60]]|| _0xff99[756]== _0xf598x2[_0xff99[60]])&& null!= _0xf598x2[_0xff99[780]]&& null!= _0xf598x2[_0xff99[780]][0]?_0xf598x2= _0xf598x2[_0xff99[780]][0]:_0xff99[757]== _0xf598x2[_0xff99[60]]&& (null!= _0xf598x2[_0xff99[781]]&& null!= _0xf598x2[_0xff99[781]][0])&& (_0xf598x2= _0xf598x2[_0xff99[781]][0]);return _0xf598x2},getClientX:function(_0xf598x2){return mxEvent[_0xff99[783]](_0xf598x2)[_0xff99[782]]},getClientY:function(_0xf598x2){return mxEvent[_0xff99[783]](_0xf598x2)[_0xff99[784]]},consume:function(_0xf598x2,_0xf598x3,_0xf598x4){_0xf598x4= null!= _0xf598x4?_0xf598x4:!0;if(null!= _0xf598x3?_0xf598x3:1){_0xf598x2[_0xff99[738]]?(_0xf598x4&& _0xf598x2[_0xff99[785]](),_0xf598x2[_0xff99[738]]()):_0xf598x4&& (_0xf598x2[_0xff99[786]]= !0)};_0xf598x2[_0xff99[721]]= !0;_0xf598x2[_0xff99[739]]= !1},LABEL_HANDLE:-1,ROTATION_HANDLE:-2,MOUSE_DOWN:_0xff99[787],MOUSE_MOVE:_0xff99[788],MOUSE_UP:_0xff99[789],ACTIVATE:_0xff99[790],RESIZE_START:_0xff99[791],RESIZE:_0xff99[129],RESIZE_END:_0xff99[792],MOVE_START:_0xff99[793],MOVE:_0xff99[582],MOVE_END:_0xff99[794],PAN_START:_0xff99[795],PAN:_0xff99[796],PAN_END:_0xff99[797],MINIMIZE:_0xff99[798],NORMALIZE:_0xff99[799],MAXIMIZE:_0xff99[800],HIDE:_0xff99[801],SHOW:_0xff99[539],CLOSE:_0xff99[268],DESTROY:_0xff99[515],REFRESH:_0xff99[802],SIZE:_0xff99[803],SELECT:_0xff99[804],FIRED:_0xff99[805],GET:_0xff99[203],RECEIVE:_0xff99[806],CONNECT:_0xff99[807],DISCONNECT:_0xff99[808],SUSPEND:_0xff99[809],RESUME:_0xff99[810],MARK:_0xff99[811],SESSION:_0xff99[812],ROOT:_0xff99[813],POST:_0xff99[814],OPEN:_0xff99[392],SAVE:_0xff99[815],BEFORE_ADD_VERTEX:_0xff99[816],ADD_VERTEX:_0xff99[817],AFTER_ADD_VERTEX:_0xff99[818],DONE:_0xff99[819],EXECUTE:_0xff99[350],EXECUTED:_0xff99[820],BEGIN_UPDATE:_0xff99[473],START_EDIT:_0xff99[821],END_UPDATE:_0xff99[476],END_EDIT:_0xff99[822],BEFORE_UNDO:_0xff99[823],UNDO:_0xff99[824],REDO:_0xff99[825],CHANGE:_0xff99[826],NOTIFY:_0xff99[827],LAYOUT_CELLS:_0xff99[828],CLICK:_0xff99[173],SCALE:_0xff99[255],TRANSLATE:_0xff99[513],SCALE_AND_TRANSLATE:_0xff99[829],UP:_0xff99[830],DOWN:_0xff99[831],ADD:_0xff99[99],REMOVE:_0xff99[205],CLEAR:_0xff99[200],ADD_CELLS:_0xff99[832],CELLS_ADDED:_0xff99[833],MOVE_CELLS:_0xff99[834],CELLS_MOVED:_0xff99[835],RESIZE_CELLS:_0xff99[836],CELLS_RESIZED:_0xff99[837],TOGGLE_CELLS:_0xff99[838],CELLS_TOGGLED:_0xff99[839],ORDER_CELLS:_0xff99[840],CELLS_ORDERED:_0xff99[841],REMOVE_CELLS:_0xff99[842],CELLS_REMOVED:_0xff99[843],GROUP_CELLS:_0xff99[844],UNGROUP_CELLS:_0xff99[845],REMOVE_CELLS_FROM_PARENT:_0xff99[846],FOLD_CELLS:_0xff99[847],CELLS_FOLDED:_0xff99[848],ALIGN_CELLS:_0xff99[849],LABEL_CHANGED:_0xff99[850],CONNECT_CELL:_0xff99[851],CELL_CONNECTED:_0xff99[852],SPLIT_EDGE:_0xff99[853],FLIP_EDGE:_0xff99[854],START_EDITING:_0xff99[855],ADD_OVERLAY:_0xff99[856],REMOVE_OVERLAY:_0xff99[857],UPDATE_CELL_SIZE:_0xff99[858],ESCAPE:_0xff99[859],CLICK:_0xff99[173],DOUBLE_CLICK:_0xff99[860],START:_0xff99[861],RESET:_0xff99[862]};function mxXmlRequest(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa){this[_0xff99[863]]= _0xf598x2;this[_0xff99[864]]= _0xf598x3;this[_0xff99[865]]= _0xf598x4|| _0xff99[866];this[_0xff99[307]]= null!= _0xf598x5?_0xf598x5:!0;this[_0xff99[867]]= _0xf598x9;this[_0xff99[868]]= _0xf598xa}mxXmlRequest[_0xff99[202]][_0xff99[863]]= null;mxXmlRequest[_0xff99[202]][_0xff99[864]]= null;mxXmlRequest[_0xff99[202]][_0xff99[865]]= null;mxXmlRequest[_0xff99[202]][_0xff99[307]]= null;mxXmlRequest[_0xff99[202]][_0xff99[869]]= !1;mxXmlRequest[_0xff99[202]][_0xff99[867]]= null;mxXmlRequest[_0xff99[202]][_0xff99[868]]= null;mxXmlRequest[_0xff99[202]][_0xff99[870]]= null;mxXmlRequest[_0xff99[202]][_0xff99[871]]= function(){return this[_0xff99[869]]};mxXmlRequest[_0xff99[202]][_0xff99[872]]= function(_0xf598x2){this[_0xff99[869]]= _0xf598x2};mxXmlRequest[_0xff99[202]][_0xff99[221]]= function(){return this[_0xff99[870]][_0xff99[873]]};mxXmlRequest[_0xff99[202]][_0xff99[220]]= function(){return 4== this[_0xff99[870]][_0xff99[417]]};mxXmlRequest[_0xff99[202]][_0xff99[874]]= function(){var _0xf598x2=this[_0xff99[875]]();return null!= _0xf598x2?_0xf598x2[_0xff99[158]]:null};mxXmlRequest[_0xff99[202]][_0xff99[875]]= function(){var _0xf598x2=this[_0xff99[870]][_0xff99[876]];if(9<= document[_0xff99[5]]|| null== _0xf598x2|| null== _0xf598x2[_0xff99[158]]){_0xf598x2= mxUtils[_0xff99[877]](this[_0xff99[870]][_0xff99[873]])};return _0xf598x2};mxXmlRequest[_0xff99[202]][_0xff99[221]]= function(){return this[_0xff99[870]][_0xff99[873]]};mxXmlRequest[_0xff99[202]][_0xff99[878]]= function(){return this[_0xff99[870]][_0xff99[879]]};mxXmlRequest[_0xff99[202]][_0xff99[385]]= function(){if(window[_0xff99[880]]){return function(){var _0xf598x2= new XMLHttpRequest;this[_0xff99[871]]()&& _0xf598x2[_0xff99[881]]&& _0xf598x2[_0xff99[881]](_0xff99[882]);return _0xf598x2}};if(_0xff99[82]!= typeof ActiveXObject){return function(){return new ActiveXObject(_0xff99[883])}}}();mxXmlRequest[_0xff99[202]][_0xff99[414]]= function(_0xf598x2,_0xf598x3){this[_0xff99[870]]= this[_0xff99[385]]();null!= this[_0xff99[870]]&& (null!= _0xf598x2&& (this[_0xff99[870]][_0xff99[416]]= mxUtils[_0xff99[885]](this,function(){this[_0xff99[220]]()&& (_0xf598x2(this),this[_0xff99[884]]= null)})),this[_0xff99[870]][_0xff99[392]](this[_0xff99[865]],this[_0xff99[863]],this[_0xff99[307]],this[_0xff99[867]],this[_0xff99[868]]),this[_0xff99[886]](this[_0xff99[870]],this[_0xff99[864]]),this[_0xff99[870]][_0xff99[414]](this[_0xff99[864]]))};mxXmlRequest[_0xff99[202]][_0xff99[886]]= function(_0xf598x2,_0xf598x3){null!= _0xf598x3&& _0xf598x2[_0xff99[889]](_0xff99[887],_0xff99[888])};mxXmlRequest[_0xff99[202]][_0xff99[415]]= function(_0xf598x2,_0xf598x3){_0xf598x2= _0xf598x2|| document;var _0xf598x4=null;_0xf598x2== document&& (_0xf598x4= window[_0xff99[890]],window[_0xff99[890]]= null);var _0xf598x5=_0xf598x2[_0xff99[55]](_0xff99[891]);_0xf598x5[_0xff99[57]](_0xff99[865],this[_0xff99[865]]);_0xf598x5[_0xff99[57]](_0xff99[892],this[_0xff99[863]]);null!= _0xf598x3&& _0xf598x5[_0xff99[57]](_0xff99[772],_0xf598x3);_0xf598x5[_0xff99[124]][_0xff99[495]]= _0xff99[130];_0xf598x5[_0xff99[124]][_0xff99[187]]= _0xff99[188];for(var _0xf598x9=0< this[_0xff99[864]][_0xff99[2]](_0xff99[893])?this[_0xff99[864]][_0xff99[224]](_0xff99[893]):this[_0xff99[864]][_0xff99[224]](),_0xf598xa=0;_0xf598xa< _0xf598x9[_0xff99[67]];_0xf598xa++){var _0xf598x12=_0xf598x9[_0xf598xa][_0xff99[2]](_0xff99[226]);if(0< _0xf598x12){var _0xf598x13=_0xf598x9[_0xf598xa][_0xff99[85]](0,_0xf598x12),_0xf598x14=_0xf598x9[_0xf598xa][_0xff99[85]](_0xf598x12+ 1),_0xf598x12=_0xf598x2[_0xff99[55]](_0xff99[126]);_0xf598x12[_0xff99[57]](_0xff99[298],_0xf598x13);_0xf598x14= _0xf598x14[_0xff99[230]](/\n/g,_0xff99[336]);_0xf598x13= _0xf598x2[_0xff99[344]](_0xf598x14);_0xf598x12[_0xff99[62]](_0xf598x13);_0xf598x5[_0xff99[62]](_0xf598x12)}};_0xf598x2[_0xff99[112]][_0xff99[62]](_0xf598x5);_0xf598x5[_0xff99[894]]();_0xf598x2[_0xff99[112]][_0xff99[266]](_0xf598x5);null!= _0xf598x4&& (window[_0xff99[890]]= _0xf598x4)};var mxClipboard={STEPSIZE:10,insertCount:1,cells:null,isEmpty:function(){return null== mxClipboard[_0xff99[895]]},cut:function(_0xf598x2,_0xf598x3){_0xf598x3= mxClipboard[_0xff99[149]](_0xf598x2,_0xf598x3);mxClipboard[_0xff99[896]]= 0;mxClipboard[_0xff99[842]](_0xf598x2,_0xf598x3);return _0xf598x3},removeCells:function(_0xf598x2,_0xf598x3){_0xf598x2[_0xff99[842]](_0xf598x3)},copy:function(_0xf598x2,_0xf598x3){_0xf598x3= _0xf598x3|| _0xf598x2[_0xff99[897]]();var _0xf598x4=_0xf598x2[_0xff99[898]](_0xf598x3);mxClipboard[_0xff99[896]]= 1;mxClipboard[_0xff99[895]]= _0xf598x2[_0xff99[899]](_0xf598x4);return _0xf598x4},paste:function(_0xf598x2){if(null!= mxClipboard[_0xff99[895]]){var _0xf598x3=_0xf598x2[_0xff99[900]](mxClipboard[_0xff99[895]]),_0xf598x4=mxClipboard[_0xff99[896]]* mxClipboard[_0xff99[901]],_0xf598x5=_0xf598x2[_0xff99[902]](),_0xf598x3=_0xf598x2[_0xff99[903]](_0xf598x3,_0xf598x4,_0xf598x4,_0xf598x5);mxClipboard[_0xff99[896]]++;_0xf598x2[_0xff99[904]](_0xf598x3)}}};function mxWindow(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa,_0xf598x12,_0xf598x13,_0xf598x14,_0xf598x15){null!= _0xf598x3&& (_0xf598x12= null!= _0xf598x12?_0xf598x12:!0,this[_0xff99[905]]= _0xf598x3,this[_0xff99[176]](_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa,_0xf598x15),this[_0xff99[906]](),this[_0xff99[907]](),this[_0xff99[908]](),this[_0xff99[909]](_0xf598x12),this[_0xff99[910]](_0xf598x2),(null== _0xf598x13|| _0xf598x13)&& this[_0xff99[911]](),null!= _0xf598x14&& null!= _0xf598x14[_0xff99[265]]?_0xf598x14[_0xff99[265]][_0xff99[912]](this[_0xff99[485]],_0xf598x14):document[_0xff99[112]][_0xff99[62]](this[_0xff99[485]]))}mxWindow[_0xff99[202]]= new mxEventSource;mxWindow[_0xff99[202]][_0xff99[196]]= mxWindow;mxWindow[_0xff99[202]][_0xff99[913]]= mxClient[_0xff99[88]]+ _0xff99[914];mxWindow[_0xff99[202]][_0xff99[915]]= mxClient[_0xff99[88]]+ _0xff99[916];mxWindow[_0xff99[202]][_0xff99[917]]= mxClient[_0xff99[88]]+ _0xff99[918];mxWindow[_0xff99[202]][_0xff99[919]]= mxClient[_0xff99[88]]+ _0xff99[920];mxWindow[_0xff99[202]][_0xff99[921]]= mxClient[_0xff99[88]]+ _0xff99[922];mxWindow[_0xff99[202]][_0xff99[189]]= !1;mxWindow[_0xff99[202]][_0xff99[905]]= !1;mxWindow[_0xff99[202]][_0xff99[923]]= new mxRectangle(0,0,50,40);mxWindow[_0xff99[202]][_0xff99[924]]= !1;mxWindow[_0xff99[202]][_0xff99[905]]= !1;mxWindow[_0xff99[202]][_0xff99[165]]= !0;mxWindow[_0xff99[202]][_0xff99[176]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){_0xf598x9= null!= _0xf598x9?_0xf598x9:_0xff99[925];this[_0xff99[485]]= document[_0xff99[55]](_0xff99[485]);this[_0xff99[485]][_0xff99[926]]= _0xf598x9;this[_0xff99[485]][_0xff99[124]][_0xff99[361]]= _0xf598x2+ _0xff99[168];this[_0xff99[485]][_0xff99[124]][_0xff99[125]]= _0xf598x3+ _0xff99[168];this[_0xff99[116]]= document[_0xff99[55]](_0xff99[116]);this[_0xff99[116]][_0xff99[926]]= _0xf598x9;null!= _0xf598x4&& (mxClient[_0xff99[80]]|| (this[_0xff99[485]][_0xff99[124]][_0xff99[117]]= _0xf598x4+ _0xff99[168]),this[_0xff99[116]][_0xff99[124]][_0xff99[117]]= _0xf598x4+ _0xff99[168]);null!= _0xf598x5&& (mxClient[_0xff99[80]]|| (this[_0xff99[485]][_0xff99[124]][_0xff99[119]]= _0xf598x5+ _0xff99[168]),this[_0xff99[116]][_0xff99[124]][_0xff99[119]]= _0xf598x5+ _0xff99[168]);_0xf598x2= document[_0xff99[55]](_0xff99[120]);_0xf598x3= document[_0xff99[55]](_0xff99[121]);this[_0xff99[924]]= document[_0xff99[55]](_0xff99[122]);this[_0xff99[924]][_0xff99[926]]= _0xf598x9+ _0xff99[927];_0xf598x3[_0xff99[62]](this[_0xff99[924]]);_0xf598x2[_0xff99[62]](_0xf598x3);_0xf598x3= document[_0xff99[55]](_0xff99[121]);this[_0xff99[122]]= document[_0xff99[55]](_0xff99[122]);this[_0xff99[122]][_0xff99[926]]= _0xf598x9+ _0xff99[928];this[_0xff99[929]]= document[_0xff99[55]](_0xff99[485]);this[_0xff99[929]][_0xff99[926]]= _0xf598x9+ _0xff99[928];this[_0xff99[929]][_0xff99[124]][_0xff99[117]]= _0xff99[118];this[_0xff99[929]][_0xff99[62]](this[_0xff99[905]]);if(mxClient[_0xff99[80]]|| _0xff99[529]!= this[_0xff99[905]][_0xff99[301]][_0xff99[36]]()){this[_0xff99[929]][_0xff99[124]][_0xff99[119]]= _0xff99[118]};this[_0xff99[122]][_0xff99[62]](this[_0xff99[929]]);_0xf598x3[_0xff99[62]](this[_0xff99[122]]);_0xf598x2[_0xff99[62]](_0xf598x3);this[_0xff99[116]][_0xff99[62]](_0xf598x2);this[_0xff99[485]][_0xff99[62]](this[_0xff99[116]]);_0xf598x9= mxUtils[_0xff99[885]](this,function(_0xf598x2){this[_0xff99[790]]()});mxEvent[_0xff99[169]](this[_0xff99[924]],_0xff99[751],_0xf598x9);mxEvent[_0xff99[169]](this[_0xff99[116]],_0xff99[751],_0xf598x9);mxClient[_0xff99[754]]&& (mxEvent[_0xff99[169]](this[_0xff99[924]],_0xff99[755],_0xf598x9),mxEvent[_0xff99[169]](this[_0xff99[116]],_0xff99[755],_0xf598x9));this[_0xff99[801]]()};mxWindow[_0xff99[202]][_0xff99[910]]= function(_0xf598x2){for(var _0xf598x3=this[_0xff99[924]][_0xff99[285]];null!= _0xf598x3;){var _0xf598x4=_0xf598x3[_0xff99[287]];_0xf598x3[_0xff99[288]]== mxConstants[_0xff99[317]]&& _0xf598x3[_0xff99[265]][_0xff99[266]](_0xf598x3);_0xf598x3= _0xf598x4};mxUtils[_0xff99[53]](this[_0xff99[924]],_0xf598x2|| _0xff99[110])};mxWindow[_0xff99[202]][_0xff99[162]]= function(_0xf598x2){0> navigator[_0xff99[3]][_0xff99[2]](_0xff99[186])&& (this[_0xff99[929]][_0xff99[124]][_0xff99[277]]= _0xf598x2?_0xff99[278]:_0xff99[188])};mxWindow[_0xff99[202]][_0xff99[790]]= function(){if(mxWindow[_0xff99[930]]!= this){var _0xf598x2=mxUtils[_0xff99[275]](this[_0xff99[166]]()),_0xf598x2=null!= _0xf598x2?_0xf598x2[_0xff99[931]]:3;if(mxWindow[_0xff99[930]]){var _0xf598x3=mxWindow[_0xff99[930]][_0xff99[166]]();null!= _0xf598x3&& null!= _0xf598x3[_0xff99[124]]&& (_0xf598x3[_0xff99[124]][_0xff99[931]]= _0xf598x2)};_0xf598x3= mxWindow[_0xff99[930]];this[_0xff99[166]]()[_0xff99[124]][_0xff99[931]]= parseInt(_0xf598x2)+ 1;mxWindow[_0xff99[930]]= this;this[_0xff99[746]]( new mxEventObject(mxEvent.ACTIVATE,_0xff99[932],_0xf598x3))}};mxWindow[_0xff99[202]][_0xff99[166]]= function(){return this[_0xff99[485]]};mxWindow[_0xff99[202]][_0xff99[933]]= function(){mxUtils[_0xff99[933]](this[_0xff99[485]])};mxWindow[_0xff99[202]][_0xff99[934]]= function(){return null!= this[_0xff99[129]]?_0xff99[130]!= this[_0xff99[129]][_0xff99[124]][_0xff99[495]]:!1};mxWindow[_0xff99[202]][_0xff99[163]]= function(_0xf598x2){_0xf598x2?null== this[_0xff99[129]]?(this[_0xff99[129]]= document[_0xff99[55]](_0xff99[466]),this[_0xff99[129]][_0xff99[124]][_0xff99[491]]= _0xff99[492],this[_0xff99[129]][_0xff99[124]][_0xff99[553]]= _0xff99[935],this[_0xff99[129]][_0xff99[124]][_0xff99[699]]= _0xff99[935],this[_0xff99[129]][_0xff99[57]](_0xff99[390],mxClient[_0xff99[88]]+ _0xff99[922]),this[_0xff99[129]][_0xff99[124]][_0xff99[270]]= _0xff99[936],mxEvent[_0xff99[759]](this[_0xff99[129]],mxUtils[_0xff99[885]](this,function(_0xf598x2){this[_0xff99[790]]();var _0xf598x4=mxEvent[_0xff99[731]](_0xf598x2),_0xf598x5=mxEvent[_0xff99[733]](_0xf598x2),_0xf598x9=this[_0xff99[485]][_0xff99[359]],_0xf598xa=this[_0xff99[485]][_0xff99[167]],_0xf598x12=mxUtils[_0xff99[885]](this,function(_0xf598x2){var _0xf598x3=mxEvent[_0xff99[731]](_0xf598x2)- _0xf598x4,_0xf598x12=mxEvent[_0xff99[733]](_0xf598x2)- _0xf598x5;this[_0xff99[937]](_0xf598x9+ _0xf598x3,_0xf598xa+ _0xf598x12);this[_0xff99[746]]( new mxEventObject(mxEvent.RESIZE,_0xff99[763],_0xf598x2));mxEvent[_0xff99[722]](_0xf598x2)}),_0xf598x13=mxUtils[_0xff99[885]](this,function(_0xf598x2){mxEvent[_0xff99[938]](document,null,_0xf598x12,_0xf598x13);this[_0xff99[746]]( new mxEventObject(mxEvent.RESIZE_END,_0xff99[763],_0xf598x2));mxEvent[_0xff99[722]](_0xf598x2)});mxEvent[_0xff99[759]](document,null,_0xf598x12,_0xf598x13);this[_0xff99[746]]( new mxEventObject(mxEvent.RESIZE_START,_0xff99[763],_0xf598x2));mxEvent[_0xff99[722]](_0xf598x2)}),null,null),this[_0xff99[485]][_0xff99[62]](this[_0xff99[129]])):this[_0xff99[129]][_0xff99[124]][_0xff99[495]]= _0xff99[497]:null!= this[_0xff99[129]]&& (this[_0xff99[129]][_0xff99[124]][_0xff99[495]]= _0xff99[130])};mxWindow[_0xff99[202]][_0xff99[937]]= function(_0xf598x2,_0xf598x3){_0xf598x2= Math[_0xff99[160]](this[_0xff99[923]][_0xff99[117]],_0xf598x2);_0xf598x3= Math[_0xff99[160]](this[_0xff99[923]][_0xff99[119]],_0xf598x3);mxClient[_0xff99[80]]|| (this[_0xff99[485]][_0xff99[124]][_0xff99[117]]= _0xf598x2+ _0xff99[168],this[_0xff99[485]][_0xff99[124]][_0xff99[119]]= _0xf598x3+ _0xff99[168]);this[_0xff99[116]][_0xff99[124]][_0xff99[117]]= _0xf598x2+ _0xff99[168];this[_0xff99[116]][_0xff99[124]][_0xff99[119]]= _0xf598x3+ _0xff99[168];mxClient[_0xff99[80]]|| (this[_0xff99[929]][_0xff99[124]][_0xff99[119]]= this[_0xff99[485]][_0xff99[167]]- this[_0xff99[924]][_0xff99[167]]- 2+ _0xff99[168])};mxWindow[_0xff99[202]][_0xff99[909]]= function(_0xf598x2){this[_0xff99[798]][_0xff99[124]][_0xff99[495]]= _0xf598x2?_0xff99[110]:_0xff99[130]};mxWindow[_0xff99[202]][_0xff99[939]]= function(){return new mxRectangle(0,0,0,this[_0xff99[924]][_0xff99[167]])};mxWindow[_0xff99[202]][_0xff99[907]]= function(){this[_0xff99[798]]= document[_0xff99[55]](_0xff99[466]);this[_0xff99[798]][_0xff99[57]](_0xff99[390],this[_0xff99[915]]);this[_0xff99[798]][_0xff99[57]](_0xff99[611],_0xff99[699]);this[_0xff99[798]][_0xff99[57]](_0xff99[924],_0xff99[940]);this[_0xff99[798]][_0xff99[124]][_0xff99[270]]= _0xff99[356];this[_0xff99[798]][_0xff99[124]][_0xff99[941]]= _0xff99[942];this[_0xff99[798]][_0xff99[124]][_0xff99[495]]= _0xff99[130];this[_0xff99[924]][_0xff99[62]](this[_0xff99[798]]);var _0xf598x2=!1,_0xf598x3=null,_0xf598x4=null,_0xf598x5=mxUtils[_0xff99[885]](this,function(_0xf598x5){this[_0xff99[790]]();if(_0xf598x2){_0xf598x2= !1,this[_0xff99[798]][_0xff99[57]](_0xff99[390],this[_0xff99[915]]),this[_0xff99[798]][_0xff99[57]](_0xff99[924],_0xff99[940]),this[_0xff99[929]][_0xff99[124]][_0xff99[495]]= _0xff99[110],this[_0xff99[800]][_0xff99[124]][_0xff99[495]]= _0xf598x3,mxClient[_0xff99[80]]|| (this[_0xff99[485]][_0xff99[124]][_0xff99[119]]= _0xf598x4),this[_0xff99[116]][_0xff99[124]][_0xff99[119]]= _0xf598x4,null!= this[_0xff99[129]]&& (this[_0xff99[129]][_0xff99[124]][_0xff99[187]]= _0xff99[110]),this[_0xff99[746]]( new mxEventObject(mxEvent.NORMALIZE,_0xff99[763],_0xf598x5))}else {_0xf598x2= !0;this[_0xff99[798]][_0xff99[57]](_0xff99[390],this[_0xff99[917]]);this[_0xff99[798]][_0xff99[57]](_0xff99[924],_0xff99[943]);this[_0xff99[929]][_0xff99[124]][_0xff99[495]]= _0xff99[130];_0xf598x3= this[_0xff99[800]][_0xff99[124]][_0xff99[495]];this[_0xff99[800]][_0xff99[124]][_0xff99[495]]= _0xff99[130];_0xf598x4= this[_0xff99[116]][_0xff99[124]][_0xff99[119]];var _0xf598xa=this[_0xff99[939]]();0< _0xf598xa[_0xff99[119]]&& (mxClient[_0xff99[80]]|| (this[_0xff99[485]][_0xff99[124]][_0xff99[119]]= _0xf598xa[_0xff99[119]]+ _0xff99[168]),this[_0xff99[116]][_0xff99[124]][_0xff99[119]]= _0xf598xa[_0xff99[119]]+ _0xff99[168]);0< _0xf598xa[_0xff99[117]]&& (mxClient[_0xff99[80]]|| (this[_0xff99[485]][_0xff99[124]][_0xff99[117]]= _0xf598xa[_0xff99[117]]+ _0xff99[168]),this[_0xff99[116]][_0xff99[124]][_0xff99[117]]= _0xf598xa[_0xff99[117]]+ _0xff99[168]);null!= this[_0xff99[129]]&& (this[_0xff99[129]][_0xff99[124]][_0xff99[187]]= _0xff99[188]);this[_0xff99[746]]( new mxEventObject(mxEvent.MINIMIZE,_0xff99[763],_0xf598x5))};mxEvent[_0xff99[722]](_0xf598x5)});mxEvent[_0xff99[169]](this[_0xff99[798]],_0xff99[751],_0xf598x5);mxClient[_0xff99[754]]&& mxEvent[_0xff99[169]](this[_0xff99[798]],_0xff99[755],_0xf598x5)};mxWindow[_0xff99[202]][_0xff99[161]]= function(_0xf598x2){this[_0xff99[800]][_0xff99[124]][_0xff99[495]]= _0xf598x2?_0xff99[110]:_0xff99[130]};mxWindow[_0xff99[202]][_0xff99[906]]= function(){this[_0xff99[800]]= document[_0xff99[55]](_0xff99[466]);this[_0xff99[800]][_0xff99[57]](_0xff99[390],this[_0xff99[919]]);this[_0xff99[800]][_0xff99[57]](_0xff99[611],_0xff99[699]);this[_0xff99[800]][_0xff99[57]](_0xff99[924],_0xff99[944]);this[_0xff99[800]][_0xff99[124]][_0xff99[270]]= _0xff99[583];this[_0xff99[800]][_0xff99[124]][_0xff99[945]]= _0xff99[942];this[_0xff99[800]][_0xff99[124]][_0xff99[270]]= _0xff99[356];this[_0xff99[800]][_0xff99[124]][_0xff99[495]]= _0xff99[130];this[_0xff99[924]][_0xff99[62]](this[_0xff99[800]]);var _0xf598x2=!1,_0xf598x3=null,_0xf598x4=null,_0xf598x5=null,_0xf598x9=null,_0xf598xa=mxUtils[_0xff99[885]](this,function(_0xf598xa){this[_0xff99[790]]();if(_0xff99[130]!= this[_0xff99[800]][_0xff99[124]][_0xff99[495]]){if(_0xf598x2){_0xf598x2= !1;this[_0xff99[800]][_0xff99[57]](_0xff99[390],this[_0xff99[919]]);this[_0xff99[800]][_0xff99[57]](_0xff99[924],_0xff99[944]);this[_0xff99[929]][_0xff99[124]][_0xff99[495]]= _0xff99[110];this[_0xff99[798]][_0xff99[124]][_0xff99[187]]= _0xff99[110];this[_0xff99[485]][_0xff99[124]][_0xff99[361]]= _0xf598x3+ _0xff99[168];this[_0xff99[485]][_0xff99[124]][_0xff99[125]]= _0xf598x4+ _0xff99[168];if(!mxClient[_0xff99[80]]&& (this[_0xff99[485]][_0xff99[124]][_0xff99[119]]= _0xf598x5,this[_0xff99[485]][_0xff99[124]][_0xff99[117]]= _0xf598x9,_0xf598x13= mxUtils[_0xff99[275]](this[_0xff99[929]]),_0xff99[278]== _0xf598x13[_0xff99[277]]|| null!= this[_0xff99[129]])){this[_0xff99[929]][_0xff99[124]][_0xff99[119]]= this[_0xff99[485]][_0xff99[167]]- this[_0xff99[924]][_0xff99[167]]- 2+ _0xff99[168]};this[_0xff99[116]][_0xff99[124]][_0xff99[119]]= _0xf598x5;this[_0xff99[116]][_0xff99[124]][_0xff99[117]]= _0xf598x9;null!= this[_0xff99[129]]&& (this[_0xff99[129]][_0xff99[124]][_0xff99[187]]= _0xff99[110]);this[_0xff99[746]]( new mxEventObject(mxEvent.NORMALIZE,_0xff99[763],_0xf598xa))}else {_0xf598x2= !0;this[_0xff99[800]][_0xff99[57]](_0xff99[390],this[_0xff99[917]]);this[_0xff99[800]][_0xff99[57]](_0xff99[924],_0xff99[943]);this[_0xff99[929]][_0xff99[124]][_0xff99[495]]= _0xff99[110];this[_0xff99[798]][_0xff99[124]][_0xff99[187]]= _0xff99[188];_0xf598x3= parseInt(this[_0xff99[485]][_0xff99[124]][_0xff99[361]]);_0xf598x4= parseInt(this[_0xff99[485]][_0xff99[124]][_0xff99[125]]);_0xf598x5= this[_0xff99[116]][_0xff99[124]][_0xff99[119]];_0xf598x9= this[_0xff99[116]][_0xff99[124]][_0xff99[117]];this[_0xff99[485]][_0xff99[124]][_0xff99[361]]= _0xff99[946];this[_0xff99[485]][_0xff99[124]][_0xff99[125]]= _0xff99[946];mxClient[_0xff99[80]]|| (this[_0xff99[485]][_0xff99[124]][_0xff99[119]]= document[_0xff99[112]][_0xff99[157]]- 2+ _0xff99[168],this[_0xff99[485]][_0xff99[124]][_0xff99[117]]= document[_0xff99[112]][_0xff99[159]]- 2+ _0xff99[168]);this[_0xff99[116]][_0xff99[124]][_0xff99[117]]= document[_0xff99[112]][_0xff99[159]]- 2+ _0xff99[168];this[_0xff99[116]][_0xff99[124]][_0xff99[119]]= document[_0xff99[112]][_0xff99[157]]- 2+ _0xff99[168];null!= this[_0xff99[129]]&& (this[_0xff99[129]][_0xff99[124]][_0xff99[187]]= _0xff99[188]);if(!mxClient[_0xff99[80]]){var _0xf598x13=mxUtils[_0xff99[275]](this[_0xff99[929]]);if(_0xff99[278]== _0xf598x13[_0xff99[277]]|| null!= this[_0xff99[129]]){this[_0xff99[929]][_0xff99[124]][_0xff99[119]]= this[_0xff99[485]][_0xff99[167]]- this[_0xff99[924]][_0xff99[167]]- 2+ _0xff99[168]}};this[_0xff99[746]]( new mxEventObject(mxEvent.MAXIMIZE,_0xff99[763],_0xf598xa))};mxEvent[_0xff99[722]](_0xf598xa)}});mxEvent[_0xff99[759]](this[_0xff99[800]],_0xf598xa);mxEvent[_0xff99[169]](this[_0xff99[924]],_0xff99[760],_0xf598xa)};mxWindow[_0xff99[202]][_0xff99[911]]= function(){this[_0xff99[924]][_0xff99[124]][_0xff99[270]]= _0xff99[582];mxEvent[_0xff99[759]](this[_0xff99[924]],mxUtils[_0xff99[885]](this,function(_0xf598x2){var _0xf598x3=mxEvent[_0xff99[731]](_0xf598x2),_0xf598x4=mxEvent[_0xff99[733]](_0xf598x2),_0xf598x5=this[_0xff99[730]](),_0xf598x9=this[_0xff99[732]](),_0xf598xa=mxUtils[_0xff99[885]](this,function(_0xf598x2){var _0xf598xa=mxEvent[_0xff99[731]](_0xf598x2)- _0xf598x3,_0xf598x12=mxEvent[_0xff99[733]](_0xf598x2)- _0xf598x4;this[_0xff99[947]](_0xf598x5+ _0xf598xa,_0xf598x9+ _0xf598x12);this[_0xff99[746]]( new mxEventObject(mxEvent.MOVE,_0xff99[763],_0xf598x2));mxEvent[_0xff99[722]](_0xf598x2)}),_0xf598x12=mxUtils[_0xff99[885]](this,function(_0xf598x2){mxEvent[_0xff99[938]](document,null,_0xf598xa,_0xf598x12);this[_0xff99[746]]( new mxEventObject(mxEvent.MOVE_END,_0xff99[763],_0xf598x2));mxEvent[_0xff99[722]](_0xf598x2)});mxEvent[_0xff99[759]](document,null,_0xf598xa,_0xf598x12);this[_0xff99[746]]( new mxEventObject(mxEvent.MOVE_START,_0xff99[763],_0xf598x2));mxEvent[_0xff99[722]](_0xf598x2)}))};mxWindow[_0xff99[202]][_0xff99[947]]= function(_0xf598x2,_0xf598x3){this[_0xff99[485]][_0xff99[124]][_0xff99[361]]= _0xf598x2+ _0xff99[168];this[_0xff99[485]][_0xff99[124]][_0xff99[125]]= _0xf598x3+ _0xff99[168]};mxWindow[_0xff99[202]][_0xff99[730]]= function(){return parseInt(this[_0xff99[485]][_0xff99[124]][_0xff99[361]])};mxWindow[_0xff99[202]][_0xff99[732]]= function(){return parseInt(this[_0xff99[485]][_0xff99[124]][_0xff99[125]])};mxWindow[_0xff99[202]][_0xff99[908]]= function(){this[_0xff99[948]]= document[_0xff99[55]](_0xff99[466]);this[_0xff99[948]][_0xff99[57]](_0xff99[390],this[_0xff99[913]]);this[_0xff99[948]][_0xff99[57]](_0xff99[611],_0xff99[699]);this[_0xff99[948]][_0xff99[57]](_0xff99[924],_0xff99[949]);this[_0xff99[948]][_0xff99[124]][_0xff99[945]]= _0xff99[935];this[_0xff99[948]][_0xff99[124]][_0xff99[270]]= _0xff99[356];this[_0xff99[948]][_0xff99[124]][_0xff99[495]]= _0xff99[130];this[_0xff99[924]][_0xff99[950]](this[_0xff99[948]],this[_0xff99[924]][_0xff99[285]]);mxEvent[_0xff99[759]](this[_0xff99[948]],mxUtils[_0xff99[885]](this,function(_0xf598x2){this[_0xff99[746]]( new mxEventObject(mxEvent.CLOSE,_0xff99[763],_0xf598x2));this[_0xff99[165]]?this[_0xff99[515]]():this[_0xff99[175]](!1);mxEvent[_0xff99[722]](_0xf598x2)}))};mxWindow[_0xff99[202]][_0xff99[951]]= function(_0xf598x2){this[_0xff99[618]]= document[_0xff99[55]](_0xff99[466]);this[_0xff99[618]][_0xff99[57]](_0xff99[390],_0xf598x2);this[_0xff99[618]][_0xff99[57]](_0xff99[611],_0xff99[361]);this[_0xff99[618]][_0xff99[124]][_0xff99[941]]= _0xff99[952];this[_0xff99[618]][_0xff99[124]][_0xff99[945]]= _0xff99[946];this[_0xff99[618]][_0xff99[124]][_0xff99[953]]= _0xff99[954];this[_0xff99[924]][_0xff99[950]](this[_0xff99[618]],this[_0xff99[924]][_0xff99[285]])};mxWindow[_0xff99[202]][_0xff99[164]]= function(_0xf598x2){this[_0xff99[948]][_0xff99[124]][_0xff99[495]]= _0xf598x2?_0xff99[110]:_0xff99[130]};mxWindow[_0xff99[202]][_0xff99[174]]= function(){return null!= this[_0xff99[485]]?_0xff99[188]!= this[_0xff99[485]][_0xff99[124]][_0xff99[187]]:!1};mxWindow[_0xff99[202]][_0xff99[175]]= function(_0xf598x2){null!= this[_0xff99[485]]&& this[_0xff99[174]]()!= _0xf598x2&& (_0xf598x2?this[_0xff99[539]]():this[_0xff99[801]]())};mxWindow[_0xff99[202]][_0xff99[539]]= function(){this[_0xff99[485]][_0xff99[124]][_0xff99[187]]= _0xff99[110];this[_0xff99[790]]();var _0xf598x2=mxUtils[_0xff99[275]](this[_0xff99[929]]);if(!mxClient[_0xff99[80]]&& (_0xff99[278]== _0xf598x2[_0xff99[277]]|| null!= this[_0xff99[129]])){this[_0xff99[929]][_0xff99[124]][_0xff99[119]]= this[_0xff99[485]][_0xff99[167]]- this[_0xff99[924]][_0xff99[167]]- 2+ _0xff99[168]};this[_0xff99[746]]( new mxEventObject(mxEvent.SHOW))};mxWindow[_0xff99[202]][_0xff99[801]]= function(){this[_0xff99[485]][_0xff99[124]][_0xff99[187]]= _0xff99[188];this[_0xff99[746]]( new mxEventObject(mxEvent.HIDE))};mxWindow[_0xff99[202]][_0xff99[515]]= function(){this[_0xff99[746]]( new mxEventObject(mxEvent.DESTROY));null!= this[_0xff99[485]]&& (mxEvent[_0xff99[762]](this[_0xff99[485]]),this[_0xff99[485]][_0xff99[265]][_0xff99[266]](this[_0xff99[485]]),this[_0xff99[485]]= null);this[_0xff99[929]]= this[_0xff99[905]]= this[_0xff99[924]]= null};function mxForm(_0xf598x2){this[_0xff99[116]]= document[_0xff99[55]](_0xff99[116]);this[_0xff99[116]][_0xff99[926]]= _0xf598x2;this[_0xff99[112]]= document[_0xff99[55]](_0xff99[120]);this[_0xff99[116]][_0xff99[62]](this[_0xff99[112]])}mxForm[_0xff99[202]][_0xff99[116]]= null;mxForm[_0xff99[202]][_0xff99[112]]= !1;mxForm[_0xff99[202]][_0xff99[955]]= function(){return this[_0xff99[116]]};mxForm[_0xff99[202]][_0xff99[956]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=document[_0xff99[55]](_0xff99[121]),_0xf598x5=document[_0xff99[55]](_0xff99[122]);_0xf598x4[_0xff99[62]](_0xf598x5);var _0xf598x5=document[_0xff99[55]](_0xff99[122]),_0xf598x9=document[_0xff99[55]](_0xff99[172]);mxUtils[_0xff99[53]](_0xf598x9,mxResources[_0xff99[203]](_0xff99[957])|| _0xff99[958]);_0xf598x5[_0xff99[62]](_0xf598x9);mxEvent[_0xff99[169]](_0xf598x9,_0xff99[173],function(){_0xf598x2()});_0xf598x9= document[_0xff99[55]](_0xff99[172]);mxUtils[_0xff99[53]](_0xf598x9,mxResources[_0xff99[203]](_0xff99[959])|| _0xff99[960]);_0xf598x5[_0xff99[62]](_0xf598x9);mxEvent[_0xff99[169]](_0xf598x9,_0xff99[173],function(){_0xf598x3()});_0xf598x4[_0xff99[62]](_0xf598x5);this[_0xff99[112]][_0xff99[62]](_0xf598x4)};mxForm[_0xff99[202]][_0xff99[961]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=document[_0xff99[55]](_0xff99[962]);_0xf598x4[_0xff99[57]](_0xff99[60],_0xff99[963]);_0xf598x4[_0xff99[131]]= _0xf598x3;return this[_0xff99[964]](_0xf598x2,_0xf598x4)};mxForm[_0xff99[202]][_0xff99[965]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=document[_0xff99[55]](_0xff99[962]);_0xf598x4[_0xff99[57]](_0xff99[60],_0xff99[966]);this[_0xff99[964]](_0xf598x2,_0xf598x4);_0xf598x3&& (_0xf598x4[_0xff99[967]]= !0);return _0xf598x4};mxForm[_0xff99[202]][_0xff99[968]]= function(_0xf598x2,_0xf598x3,_0xf598x4){var _0xf598x5=document[_0xff99[55]](_0xff99[126]);mxClient[_0xff99[133]]&& _0xf598x4--;_0xf598x5[_0xff99[57]](_0xff99[969],_0xf598x4|| 2);_0xf598x5[_0xff99[131]]= _0xf598x3;return this[_0xff99[964]](_0xf598x2,_0xf598x5)};mxForm[_0xff99[202]][_0xff99[970]]= function(_0xf598x2,_0xf598x3,_0xf598x4){var _0xf598x5=document[_0xff99[55]](_0xff99[804]);null!= _0xf598x4&& _0xf598x5[_0xff99[57]](_0xff99[803],_0xf598x4);_0xf598x3&& _0xf598x5[_0xff99[57]](_0xff99[971],_0xff99[128]);return this[_0xff99[964]](_0xf598x2,_0xf598x5)};mxForm[_0xff99[202]][_0xff99[972]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){var _0xf598x9=document[_0xff99[55]](_0xff99[973]);mxUtils[_0xff99[171]](_0xf598x9,_0xf598x3);_0xf598x9[_0xff99[57]](_0xff99[131],_0xf598x4);_0xf598x5&& _0xf598x9[_0xff99[57]](_0xff99[974],_0xf598x5);_0xf598x2[_0xff99[62]](_0xf598x9)};mxForm[_0xff99[202]][_0xff99[964]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=document[_0xff99[55]](_0xff99[121]),_0xf598x5=document[_0xff99[55]](_0xff99[122]);mxUtils[_0xff99[53]](_0xf598x5,_0xf598x2);_0xf598x4[_0xff99[62]](_0xf598x5);_0xf598x5= document[_0xff99[55]](_0xff99[122]);_0xf598x5[_0xff99[62]](_0xf598x3);_0xf598x4[_0xff99[62]](_0xf598x5);this[_0xff99[112]][_0xff99[62]](_0xf598x4);return _0xf598x3};function mxImage(_0xf598x2,_0xf598x3,_0xf598x4){this[_0xff99[390]]= _0xf598x2;this[_0xff99[117]]= _0xf598x3;this[_0xff99[119]]= _0xf598x4}mxImage[_0xff99[202]][_0xff99[390]]= null;mxImage[_0xff99[202]][_0xff99[117]]= null;mxImage[_0xff99[202]][_0xff99[119]]= null;function mxDivResizer(_0xf598x2,_0xf598x3){if(_0xff99[485]== _0xf598x2[_0xff99[301]][_0xff99[216]]()){null== _0xf598x3&& (_0xf598x3= window);this[_0xff99[485]]= _0xf598x2;var _0xf598x4=mxUtils[_0xff99[275]](_0xf598x2);null!= _0xf598x4&& (this[_0xff99[975]]= _0xff99[278]== _0xf598x4[_0xff99[117]],this[_0xff99[976]]= _0xff99[278]== _0xf598x4[_0xff99[119]]);mxEvent[_0xff99[169]](_0xf598x3,_0xff99[129],mxUtils[_0xff99[885]](this,function(_0xf598x2){this[_0xff99[977]]|| (this[_0xff99[977]]= !0,this[_0xff99[129]](),this[_0xff99[977]]= !1)}));this[_0xff99[129]]()}}mxDivResizer[_0xff99[202]][_0xff99[975]]= !0;mxDivResizer[_0xff99[202]][_0xff99[976]]= !0;mxDivResizer[_0xff99[202]][_0xff99[977]]= !1;mxDivResizer[_0xff99[202]][_0xff99[129]]= function(){var _0xf598x2=this[_0xff99[978]](),_0xf598x3=this[_0xff99[979]](),_0xf598x4=parseInt(this[_0xff99[485]][_0xff99[124]][_0xff99[361]]),_0xf598x5=parseInt(this[_0xff99[485]][_0xff99[124]][_0xff99[699]]),_0xf598x9=parseInt(this[_0xff99[485]][_0xff99[124]][_0xff99[125]]),_0xf598xa=parseInt(this[_0xff99[485]][_0xff99[124]][_0xff99[553]]);this[_0xff99[975]]&& (!isNaN(_0xf598x4)&& !isNaN(_0xf598x5) && 0<= _0xf598x4 && 0<= _0xf598x5 && 0< _0xf598x2- _0xf598x5- _0xf598x4)&& (this[_0xff99[485]][_0xff99[124]][_0xff99[117]]= _0xf598x2- _0xf598x5- _0xf598x4+ _0xff99[168]);this[_0xff99[976]]&& (!isNaN(_0xf598x9)&& !isNaN(_0xf598xa) && 0<= _0xf598x9 && 0<= _0xf598xa && 0< _0xf598x3- _0xf598x9- _0xf598xa)&& (this[_0xff99[485]][_0xff99[124]][_0xff99[119]]= _0xf598x3- _0xf598x9- _0xf598xa+ _0xff99[168])};mxDivResizer[_0xff99[202]][_0xff99[978]]= function(){return document[_0xff99[112]][_0xff99[159]]};mxDivResizer[_0xff99[202]][_0xff99[979]]= function(){return document[_0xff99[112]][_0xff99[157]]};function mxDragSource(_0xf598x2,_0xf598x3){this[_0xff99[980]]= _0xf598x2;this[_0xff99[981]]= _0xf598x3;mxEvent[_0xff99[759]](_0xf598x2,mxUtils[_0xff99[885]](this,this[_0xff99[787]]))}mxDragSource[_0xff99[202]][_0xff99[980]]= null;mxDragSource[_0xff99[202]][_0xff99[981]]= null;mxDragSource[_0xff99[202]][_0xff99[559]]= null;mxDragSource[_0xff99[202]][_0xff99[982]]= null;mxDragSource[_0xff99[202]][_0xff99[983]]= null;mxDragSource[_0xff99[202]][_0xff99[984]]= !0;mxDragSource[_0xff99[202]][_0xff99[985]]= null;mxDragSource[_0xff99[202]][_0xff99[986]]= null;mxDragSource[_0xff99[202]][_0xff99[987]]= null;mxDragSource[_0xff99[202]][_0xff99[988]]= null;mxDragSource[_0xff99[202]][_0xff99[989]]= null;mxDragSource[_0xff99[202]][_0xff99[561]]= !0;mxDragSource[_0xff99[202]][_0xff99[990]]= !0;mxDragSource[_0xff99[202]][_0xff99[991]]= !0;mxDragSource[_0xff99[202]][_0xff99[563]]= !0;mxDragSource[_0xff99[202]][_0xff99[992]]= 100;mxDragSource[_0xff99[202]][_0xff99[993]]= 70;mxDragSource[_0xff99[202]][_0xff99[994]]= function(){return this[_0xff99[984]]};mxDragSource[_0xff99[202]][_0xff99[995]]= function(_0xf598x2){this[_0xff99[984]]= _0xf598x2};mxDragSource[_0xff99[202]][_0xff99[996]]= function(){return this[_0xff99[990]]};mxDragSource[_0xff99[202]][_0xff99[562]]= function(_0xf598x2){this[_0xff99[990]]= _0xf598x2};mxDragSource[_0xff99[202]][_0xff99[997]]= function(){return this[_0xff99[991]]};mxDragSource[_0xff99[202]][_0xff99[998]]= function(_0xf598x2){this[_0xff99[991]]= _0xf598x2};mxDragSource[_0xff99[202]][_0xff99[565]]= function(_0xf598x2){return null};mxDragSource[_0xff99[202]][_0xff99[564]]= function(_0xf598x2,_0xf598x3,_0xf598x4){return _0xf598x2[_0xff99[999]](_0xf598x3,_0xf598x4)};mxDragSource[_0xff99[202]][_0xff99[566]]= function(_0xf598x2){return this[_0xff99[980]][_0xff99[511]](!0)};mxDragSource[_0xff99[202]][_0xff99[567]]= function(_0xf598x2){return null};mxDragSource[_0xff99[202]][_0xff99[787]]= function(_0xf598x2){this[_0xff99[984]]&& (!mxEvent[_0xff99[721]](_0xf598x2)&& null== this[_0xff99[1000]])&& (this[_0xff99[1001]](_0xf598x2),this[_0xff99[1000]]= mxUtils[_0xff99[885]](this,this[_0xff99[788]]),this[_0xff99[1002]]= mxUtils[_0xff99[885]](this,this[_0xff99[789]]),mxEvent[_0xff99[759]](document,null,this[_0xff99[1000]],this[_0xff99[1002]]),mxEvent[_0xff99[722]](_0xf598x2,!0,!1))};mxDragSource[_0xff99[202]][_0xff99[1001]]= function(_0xf598x2){this[_0xff99[982]]= this[_0xff99[566]](_0xf598x2);this[_0xff99[982]][_0xff99[124]][_0xff99[491]]= _0xff99[492];this[_0xff99[982]][_0xff99[124]][_0xff99[931]]= this[_0xff99[992]];mxUtils[_0xff99[254]](this[_0xff99[982]],this[_0xff99[993]])};mxDragSource[_0xff99[202]][_0xff99[1003]]= function(_0xf598x2){null!= this[_0xff99[982]]&& (null!= this[_0xff99[982]][_0xff99[265]]&& this[_0xff99[982]][_0xff99[265]][_0xff99[266]](this[_0xff99[982]]),this[_0xff99[982]]= null)};mxDragSource[_0xff99[202]][_0xff99[1004]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=mxEvent[_0xff99[731]](_0xf598x3),_0xf598x5=mxEvent[_0xff99[733]](_0xf598x3),_0xf598x9=mxUtils[_0xff99[445]](_0xf598x2[_0xff99[526]]),_0xf598xa=mxUtils[_0xff99[444]]();return _0xf598x4>= _0xf598x9[_0xff99[235]]- _0xf598xa[_0xff99[235]]&& _0xf598x5>= _0xf598x9[_0xff99[236]]- _0xf598xa[_0xff99[236]]&& _0xf598x4<= _0xf598x9[_0xff99[235]]- _0xf598xa[_0xff99[235]]+ _0xf598x2[_0xff99[526]][_0xff99[359]]&& _0xf598x5<= _0xf598x9[_0xff99[236]]- _0xf598xa[_0xff99[236]]+ _0xf598x2[_0xff99[526]][_0xff99[167]]};mxDragSource[_0xff99[202]][_0xff99[788]]= function(_0xf598x2){var _0xf598x3=this[_0xff99[565]](_0xf598x2);null!= _0xf598x3&& !this[_0xff99[1004]](_0xf598x3,_0xf598x2)&& (_0xf598x3= null);_0xf598x3!= this[_0xff99[985]]&& (null!= this[_0xff99[985]]&& this[_0xff99[1005]](this[_0xff99[985]]),this[_0xff99[985]]= _0xf598x3,null!= this[_0xff99[985]]&& this[_0xff99[1006]](this[_0xff99[985]]));null!= this[_0xff99[985]]&& this[_0xff99[1007]](this[_0xff99[985]],_0xf598x2);if(null!= this[_0xff99[982]]&& (null== this[_0xff99[983]]|| _0xff99[189]!= this[_0xff99[983]][_0xff99[124]][_0xff99[187]])){var _0xf598x3=mxEvent[_0xff99[731]](_0xf598x2),_0xf598x4=mxEvent[_0xff99[733]](_0xf598x2);null== this[_0xff99[982]][_0xff99[265]]&& document[_0xff99[112]][_0xff99[62]](this[_0xff99[982]]);this[_0xff99[982]][_0xff99[124]][_0xff99[187]]= _0xff99[189];null!= this[_0xff99[559]]&& (_0xf598x3+= this[_0xff99[559]][_0xff99[235]],_0xf598x4+= this[_0xff99[559]][_0xff99[236]]);_0xf598x3+= document[_0xff99[112]][_0xff99[360]]|| document[_0xff99[158]][_0xff99[360]];_0xf598x4+= document[_0xff99[112]][_0xff99[190]]|| document[_0xff99[158]][_0xff99[190]];this[_0xff99[982]][_0xff99[124]][_0xff99[361]]= _0xf598x3+ _0xff99[168];this[_0xff99[982]][_0xff99[124]][_0xff99[125]]= _0xf598x4+ _0xff99[168]}else {null!= this[_0xff99[982]]&& (this[_0xff99[982]][_0xff99[124]][_0xff99[187]]= _0xff99[188])};mxEvent[_0xff99[722]](_0xf598x2)};mxDragSource[_0xff99[202]][_0xff99[789]]= function(_0xf598x2){if(null!= this[_0xff99[985]]){if(null!= this[_0xff99[987]]&& (null== this[_0xff99[983]]|| _0xff99[188]!= this[_0xff99[983]][_0xff99[124]][_0xff99[187]])){var _0xf598x3=this[_0xff99[985]][_0xff99[441]][_0xff99[255]],_0xf598x4=this[_0xff99[985]][_0xff99[441]][_0xff99[513]];this[_0xff99[1008]](this[_0xff99[985]],_0xf598x2,this[_0xff99[986]],this[_0xff99[987]][_0xff99[235]]/ _0xf598x3- _0xf598x4[_0xff99[235]],this[_0xff99[987]][_0xff99[236]]/ _0xf598x3- _0xf598x4[_0xff99[236]])};this[_0xff99[1005]](this[_0xff99[985]])};this[_0xff99[1003]](_0xf598x2);mxEvent[_0xff99[938]](document,null,this[_0xff99[1000]],this[_0xff99[1002]]);this[_0xff99[985]]= this[_0xff99[1002]]= this[_0xff99[1000]]= null;mxEvent[_0xff99[722]](_0xf598x2)};mxDragSource[_0xff99[202]][_0xff99[1006]]= function(_0xf598x2){_0xf598x2[_0xff99[1009]]= !0;this[_0xff99[983]]= this[_0xff99[567]](_0xf598x2);this[_0xff99[996]]()&& null!= this[_0xff99[983]]&& (this[_0xff99[988]]= new mxGuide(_0xf598x2,_0xf598x2[_0xff99[1011]][_0xff99[1010]]()));this[_0xff99[563]]&& (this[_0xff99[989]]= new mxCellHighlight(_0xf598x2,mxConstants.DROP_TARGET_COLOR))};mxDragSource[_0xff99[202]][_0xff99[1005]]= function(_0xf598x2){this[_0xff99[987]]= this[_0xff99[986]]= null;_0xf598x2[_0xff99[1009]]= !1;null!= this[_0xff99[983]]&& (null!= this[_0xff99[983]][_0xff99[265]]&& this[_0xff99[983]][_0xff99[265]][_0xff99[266]](this[_0xff99[983]]),this[_0xff99[983]]= null);null!= this[_0xff99[988]]&& (this[_0xff99[988]][_0xff99[515]](),this[_0xff99[988]]= null);null!= this[_0xff99[989]]&& (this[_0xff99[989]][_0xff99[515]](),this[_0xff99[989]]= null)};mxDragSource[_0xff99[202]][_0xff99[1007]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=mxUtils[_0xff99[445]](_0xf598x2[_0xff99[526]]),_0xf598x5=mxUtils[_0xff99[444]](_0xf598x2[_0xff99[526]]),_0xf598x9=mxEvent[_0xff99[731]](_0xf598x3)- _0xf598x4[_0xff99[235]]+ _0xf598x5[_0xff99[235]],_0xf598x4=mxEvent[_0xff99[733]](_0xf598x3)- _0xf598x4[_0xff99[236]]+ _0xf598x5[_0xff99[236]];_0xf598x2[_0xff99[1012]]&& (null== this[_0xff99[561]]|| this[_0xff99[561]])&& _0xf598x2[_0xff99[1014]](_0xf598x9,_0xf598x4,_0xf598x2[_0xff99[1013]]);null!= this[_0xff99[989]]&& _0xf598x2[_0xff99[1015]]()&& (this[_0xff99[986]]= this[_0xff99[564]](_0xf598x2,_0xf598x9,_0xf598x4),_0xf598x5= _0xf598x2[_0xff99[249]]()[_0xff99[248]](this[_0xff99[986]]),this[_0xff99[989]][_0xff99[1016]](_0xf598x5));if(null!= this[_0xff99[983]]){null== this[_0xff99[983]][_0xff99[265]]&& (_0xf598x2[_0xff99[526]][_0xff99[62]](this[_0xff99[983]]),this[_0xff99[983]][_0xff99[124]][_0xff99[931]]= _0xff99[1017],this[_0xff99[983]][_0xff99[124]][_0xff99[491]]= _0xff99[492]);var _0xf598x5=this[_0xff99[997]]()&& _0xf598x2[_0xff99[1018]](_0xf598x3),_0xf598xa=!0;if(null!= this[_0xff99[988]]&& this[_0xff99[988]][_0xff99[1019]](_0xf598x3)){var _0xf598xa=parseInt(this[_0xff99[983]][_0xff99[124]][_0xff99[117]]),_0xf598x12=parseInt(this[_0xff99[983]][_0xff99[124]][_0xff99[119]]),_0xf598xa= new mxRectangle(0,0,_0xf598xa,_0xf598x12),_0xf598x4= new mxPoint(_0xf598x9,_0xf598x4),_0xf598x4=this[_0xff99[988]][_0xff99[582]](_0xf598xa,_0xf598x4,_0xf598x5),_0xf598xa=!1,_0xf598x9=_0xf598x4[_0xff99[235]],_0xf598x4=_0xf598x4[_0xff99[236]]}else {if(_0xf598x5){var _0xf598x5=_0xf598x2[_0xff99[441]][_0xff99[255]],_0xf598x12=_0xf598x2[_0xff99[441]][_0xff99[513]],_0xf598x13=_0xf598x2[_0xff99[1020]]/ 2,_0xf598x9=(_0xf598x2[_0xff99[1021]](_0xf598x9/ _0xf598x5- _0xf598x12[_0xff99[235]]- _0xf598x13)+ _0xf598x12[_0xff99[235]])* _0xf598x5,_0xf598x4=(_0xf598x2[_0xff99[1021]](_0xf598x4/ _0xf598x5- _0xf598x12[_0xff99[236]]- _0xf598x13)+ _0xf598x12[_0xff99[236]])* _0xf598x5}};null!= this[_0xff99[988]]&& _0xf598xa&& this[_0xff99[988]][_0xff99[801]]();null!= this[_0xff99[1022]]&& (_0xf598x9+= this[_0xff99[1022]][_0xff99[235]],_0xf598x4+= this[_0xff99[1022]][_0xff99[236]]);this[_0xff99[983]][_0xff99[124]][_0xff99[361]]= Math[_0xff99[488]](_0xf598x9)+ _0xff99[168];this[_0xff99[983]][_0xff99[124]][_0xff99[125]]= Math[_0xff99[488]](_0xf598x4)+ _0xff99[168];this[_0xff99[983]][_0xff99[124]][_0xff99[187]]= _0xff99[189]};this[_0xff99[987]]= new mxPoint(_0xf598x9,_0xf598x4)};mxDragSource[_0xff99[202]][_0xff99[1008]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){this[_0xff99[981]](_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9);_0xf598x2[_0xff99[526]][_0xff99[393]]()};function mxToolbar(_0xf598x2){this[_0xff99[526]]= _0xf598x2}mxToolbar[_0xff99[202]]= new mxEventSource;mxToolbar[_0xff99[202]][_0xff99[196]]= mxToolbar;mxToolbar[_0xff99[202]][_0xff99[526]]= null;mxToolbar[_0xff99[202]][_0xff99[984]]= !0;mxToolbar[_0xff99[202]][_0xff99[1023]]= !1;mxToolbar[_0xff99[202]][_0xff99[1024]]= !0;mxToolbar[_0xff99[202]][_0xff99[1025]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa){var _0xf598x12=document[_0xff99[55]](null!= _0xf598x3?_0xff99[466]:_0xff99[172]),_0xf598x13=_0xf598x9|| (null!= _0xf598xa?_0xff99[1026]:_0xff99[1027]);_0xf598x12[_0xff99[926]]= _0xf598x13;_0xf598x12[_0xff99[57]](_0xff99[390],_0xf598x3);null!= _0xf598x2&& (null!= _0xf598x3?_0xf598x12[_0xff99[57]](_0xff99[924],_0xf598x2):mxUtils[_0xff99[53]](_0xf598x12,_0xf598x2));this[_0xff99[526]][_0xff99[62]](_0xf598x12);null!= _0xf598x4&& (mxEvent[_0xff99[169]](_0xf598x12,_0xff99[173],_0xf598x4),mxClient[_0xff99[754]]&& mxEvent[_0xff99[169]](_0xf598x12,_0xff99[757],_0xf598x4));_0xf598x2= mxUtils[_0xff99[885]](this,function(_0xf598x2){null!= _0xf598x5?_0xf598x12[_0xff99[57]](_0xff99[390],_0xf598x3):_0xf598x12[_0xff99[124]][_0xff99[1028]]= _0xff99[110]});mxEvent[_0xff99[759]](_0xf598x12,mxUtils[_0xff99[885]](this,function(_0xf598x2){null!= _0xf598x5?_0xf598x12[_0xff99[57]](_0xff99[390],_0xf598x5):_0xf598x12[_0xff99[124]][_0xff99[1028]]= _0xff99[579];if(null!= _0xf598xa){null== this[_0xff99[1029]]&& (this[_0xff99[1029]]= new mxPopupMenu,this[_0xff99[1029]][_0xff99[176]]());var _0xf598x3=this[_0xff99[1030]];this[_0xff99[1029]][_0xff99[1031]]()&& this[_0xff99[1029]][_0xff99[1032]]();_0xf598x3!= _0xf598x12&& (this[_0xff99[1030]]= _0xf598x12,this[_0xff99[1029]][_0xff99[1033]]= _0xf598xa,_0xf598x3= new mxPoint(_0xf598x12[_0xff99[358]],_0xf598x12[_0xff99[362]]+ _0xf598x12[_0xff99[167]]),this[_0xff99[1029]][_0xff99[152]](_0xf598x3[_0xff99[235]],_0xf598x3[_0xff99[236]],null,_0xf598x2),this[_0xff99[1029]][_0xff99[1031]]()&& (_0xf598x12[_0xff99[926]]= _0xf598x13+ _0xff99[1034],this[_0xff99[1029]][_0xff99[1032]]= function(){mxPopupMenu[_0xff99[202]][_0xff99[1032]][_0xff99[183]](this);_0xf598x12[_0xff99[926]]= _0xf598x13;this[_0xff99[1030]]= null}))}}),null,_0xf598x2);mxEvent[_0xff99[169]](_0xf598x12,_0xff99[1035],_0xf598x2);return _0xf598x12};mxToolbar[_0xff99[202]][_0xff99[970]]= function(_0xf598x2){var _0xf598x3=document[_0xff99[55]](_0xff99[485]);_0xf598x3[_0xff99[124]][_0xff99[495]]= _0xff99[497];_0xf598x3[_0xff99[926]]= _0xff99[1036];var _0xf598x4=document[_0xff99[55]](_0xff99[804]);_0xf598x4[_0xff99[926]]= _0xf598x2|| _0xff99[1037];_0xf598x3[_0xff99[62]](_0xf598x4);this[_0xff99[526]][_0xff99[62]](_0xf598x3);return _0xf598x4};mxToolbar[_0xff99[202]][_0xff99[1038]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=document[_0xff99[55]](_0xff99[804]);_0xf598x4[_0xff99[926]]= _0xf598x3|| _0xff99[1037];this[_0xff99[972]](_0xf598x4,_0xf598x2,null);mxEvent[_0xff99[169]](_0xf598x4,_0xff99[826],function(_0xf598x2){var _0xf598x3=_0xf598x4[_0xff99[1040]][_0xf598x4[_0xff99[1039]]];_0xf598x4[_0xff99[1039]]= 0;null!= _0xf598x3[_0xff99[1041]]&& _0xf598x3[_0xff99[1041]](_0xf598x2)});this[_0xff99[526]][_0xff99[62]](_0xf598x4);return _0xf598x4};mxToolbar[_0xff99[202]][_0xff99[972]]= function(_0xf598x2,_0xf598x3,_0xf598x4){var _0xf598x5=document[_0xff99[55]](_0xff99[973]);mxUtils[_0xff99[171]](_0xf598x5,_0xf598x3);_0xff99[279]== typeof _0xf598x4?_0xf598x5[_0xff99[1041]]= _0xf598x4:_0xf598x5[_0xff99[57]](_0xff99[131],_0xf598x4);_0xf598x2[_0xff99[62]](_0xf598x5);return _0xf598x5};mxToolbar[_0xff99[202]][_0xff99[1042]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){var _0xf598xa=document[_0xff99[55]](_0xff99[466]);_0xf598xa[_0xff99[1043]]= _0xf598x9|| _0xff99[1026];_0xf598xa[_0xff99[926]]= _0xf598xa[_0xff99[1043]];_0xf598xa[_0xff99[57]](_0xff99[390],_0xf598x3);_0xf598xa[_0xff99[1044]]= _0xf598x5;null!= _0xf598x2&& _0xf598xa[_0xff99[57]](_0xff99[924],_0xf598x2);mxEvent[_0xff99[169]](_0xf598xa,_0xff99[173],mxUtils[_0xff99[885]](this,function(_0xf598x2){_0xf598x2= this[_0xff99[1045]][_0xff99[1044]];null!= _0xf598x2?(this[_0xff99[1045]][_0xff99[1044]]= this[_0xff99[1045]][_0xff99[284]](_0xff99[390]),this[_0xff99[1045]][_0xff99[57]](_0xff99[390],_0xf598x2)):this[_0xff99[1045]][_0xff99[926]]= this[_0xff99[1045]][_0xff99[1043]];this[_0xff99[1024]]&& (this[_0xff99[1046]]= _0xf598xa);this[_0xff99[1045]]= _0xf598xa;_0xf598x2= _0xf598xa[_0xff99[1044]];null!= _0xf598x2?(_0xf598xa[_0xff99[1044]]= _0xf598xa[_0xff99[284]](_0xff99[390]),_0xf598xa[_0xff99[57]](_0xff99[390],_0xf598x2)):_0xf598xa[_0xff99[926]]= _0xf598xa[_0xff99[1043]]+ _0xff99[1034];this[_0xff99[746]]( new mxEventObject(mxEvent.SELECT));_0xf598x4()}));this[_0xff99[526]][_0xff99[62]](_0xf598xa);null== this[_0xff99[1046]]&& (this[_0xff99[1046]]= _0xf598xa,this[_0xff99[1047]](_0xf598xa),_0xf598x4());return _0xf598xa};mxToolbar[_0xff99[202]][_0xff99[1048]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa){_0xf598xa= null!= _0xf598xa?_0xf598xa:!0;var _0xf598x12=document[_0xff99[55]](null!= _0xf598x3?_0xff99[466]:_0xff99[172]);_0xf598x12[_0xff99[1043]]= _0xf598x9|| _0xff99[1026];_0xf598x12[_0xff99[926]]= _0xf598x12[_0xff99[1043]];_0xf598x12[_0xff99[57]](_0xff99[390],_0xf598x3);_0xf598x12[_0xff99[1044]]= _0xf598x5;null!= _0xf598x2&& _0xf598x12[_0xff99[57]](_0xff99[924],_0xf598x2);this[_0xff99[984]]&& _0xf598xa&& (mxEvent[_0xff99[169]](_0xf598x12,_0xff99[173],mxUtils[_0xff99[885]](this,function(_0xf598x2){this[_0xff99[1047]](_0xf598x12,_0xf598x4);this[_0xff99[1023]]= !1})),mxEvent[_0xff99[169]](_0xf598x12,_0xff99[760],mxUtils[_0xff99[885]](this,function(_0xf598x2){this[_0xff99[1047]](_0xf598x12,_0xf598x4);this[_0xff99[1023]]= !0})),null== this[_0xff99[1046]]&& (this[_0xff99[1046]]= _0xf598x12,this[_0xff99[1049]]= _0xf598x4,this[_0xff99[1047]](_0xf598x12,_0xf598x4)));this[_0xff99[526]][_0xff99[62]](_0xf598x12);return _0xf598x12};mxToolbar[_0xff99[202]][_0xff99[1047]]= function(_0xf598x2,_0xf598x3){if(this[_0xff99[1045]]!= _0xf598x2){if(null!= this[_0xff99[1045]]){var _0xf598x4=this[_0xff99[1045]][_0xff99[1044]];null!= _0xf598x4?(this[_0xff99[1045]][_0xff99[1044]]= this[_0xff99[1045]][_0xff99[284]](_0xff99[390]),this[_0xff99[1045]][_0xff99[57]](_0xff99[390],_0xf598x4)):this[_0xff99[1045]][_0xff99[926]]= this[_0xff99[1045]][_0xff99[1043]]};this[_0xff99[1045]]= _0xf598x2;_0xf598x4= this[_0xff99[1045]][_0xff99[1044]];null!= _0xf598x4?(this[_0xff99[1045]][_0xff99[1044]]= this[_0xff99[1045]][_0xff99[284]](_0xff99[390]),this[_0xff99[1045]][_0xff99[57]](_0xff99[390],_0xf598x4)):this[_0xff99[1045]][_0xff99[926]]= this[_0xff99[1045]][_0xff99[1043]]+ _0xff99[1034];this[_0xff99[746]]( new mxEventObject(mxEvent.SELECT,_0xff99[279],_0xf598x3))}};mxToolbar[_0xff99[202]][_0xff99[1050]]= function(_0xf598x2){(_0xf598x2|| !this[_0xff99[1023]])&& this[_0xff99[1045]]!= this[_0xff99[1046]]&& this[_0xff99[1047]](this[_0xff99[1046]],this[_0xff99[1049]])};mxToolbar[_0xff99[202]][_0xff99[1051]]= function(_0xf598x2){return this[_0xff99[1025]](null,_0xf598x2,null)};mxToolbar[_0xff99[202]][_0xff99[1052]]= function(){mxUtils[_0xff99[345]](this[_0xff99[526]])};mxToolbar[_0xff99[202]][_0xff99[1053]]= function(){var _0xf598x2=document[_0xff99[55]](_0xff99[1054]);_0xf598x2[_0xff99[124]][_0xff99[941]]= _0xff99[1055];_0xf598x2[_0xff99[57]](_0xff99[803],_0xff99[500]);this[_0xff99[526]][_0xff99[62]](_0xf598x2)};mxToolbar[_0xff99[202]][_0xff99[515]]= function(){mxEvent[_0xff99[762]](this[_0xff99[526]]);this[_0xff99[1045]]= this[_0xff99[1049]]= this[_0xff99[1046]]= this[_0xff99[526]]= null;null!= this[_0xff99[1029]]&& this[_0xff99[1029]][_0xff99[515]]()};function mxSession(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){this[_0xff99[251]]= _0xf598x2;this[_0xff99[1056]]= _0xf598x3;this[_0xff99[1057]]= _0xf598x4;this[_0xff99[1058]]= _0xf598x5;null!= _0xf598x2&& (this[_0xff99[1059]]= new mxCodec,this[_0xff99[1059]][_0xff99[1060]]= function(_0xf598x3){return _0xf598x2[_0xff99[736]](_0xf598x3)});_0xf598x2[_0xff99[169]](mxEvent.NOTIFY,mxUtils[_0xff99[885]](this,function(_0xf598x2,_0xf598x3){var _0xf598x4=_0xf598x3[_0xff99[720]](_0xff99[1061]);(null!= _0xf598x4&& this[_0xff99[143]]|| this[_0xff99[1062]]&& !this[_0xff99[1063]])&& this[_0xff99[827]](_0xff99[1064]+ this[_0xff99[1067]](_0xf598x4[_0xff99[1065]],_0xf598x4[_0xff99[1066]])+ _0xff99[1068])}))}mxSession[_0xff99[202]]= new mxEventSource;mxSession[_0xff99[202]][_0xff99[196]]= mxSession;mxSession[_0xff99[202]][_0xff99[251]]= null;mxSession[_0xff99[202]][_0xff99[1056]]= null;mxSession[_0xff99[202]][_0xff99[1057]]= null;mxSession[_0xff99[202]][_0xff99[1058]]= null;mxSession[_0xff99[202]][_0xff99[1059]]= null;mxSession[_0xff99[202]][_0xff99[1069]]= _0xff99[336];mxSession[_0xff99[202]][_0xff99[1070]]= !0;mxSession[_0xff99[202]][_0xff99[1071]]= !0;mxSession[_0xff99[202]][_0xff99[1072]]= 0;mxSession[_0xff99[202]][_0xff99[1073]]= 0;mxSession[_0xff99[202]][_0xff99[143]]= !1;mxSession[_0xff99[202]][_0xff99[1062]]= !1;mxSession[_0xff99[202]][_0xff99[1063]]= !1;mxSession[_0xff99[202]][_0xff99[1074]]= !1;mxSession[_0xff99[202]][_0xff99[861]]= function(){this[_0xff99[143]]?(this[_0xff99[1062]]= !0,this[_0xff99[746]]( new mxEventObject(mxEvent.CONNECT))):this[_0xff99[1062]]|| this[_0xff99[203]](this[_0xff99[1056]],mxUtils[_0xff99[885]](this,function(_0xf598x2){this[_0xff99[1062]]= !0;this[_0xff99[746]]( new mxEventObject(mxEvent.CONNECT));this[_0xff99[1075]]()}))};mxSession[_0xff99[202]][_0xff99[809]]= function(){this[_0xff99[1062]]&& !this[_0xff99[1063]]&& (this[_0xff99[1063]]= !0,this[_0xff99[746]]( new mxEventObject(mxEvent.SUSPEND)))};mxSession[_0xff99[202]][_0xff99[810]]= function(_0xf598x2,_0xf598x3,_0xf598x4){this[_0xff99[1062]]&& this[_0xff99[1063]]&& (this[_0xff99[1063]]= !1,this[_0xff99[746]]( new mxEventObject(mxEvent.RESUME)),this[_0xff99[1074]]|| this[_0xff99[1075]]())};mxSession[_0xff99[202]][_0xff99[1076]]= function(_0xf598x2){this[_0xff99[1062]]&& (this[_0xff99[1062]]= !1);this[_0xff99[746]]( new mxEventObject(mxEvent.DISCONNECT,_0xff99[1077],_0xf598x2))};mxSession[_0xff99[202]][_0xff99[1075]]= function(){this[_0xff99[1062]]&& !this[_0xff99[1063]]&& null!= this[_0xff99[1057]]?(this[_0xff99[1074]]= !0,this[_0xff99[203]](this[_0xff99[1057]],mxUtils[_0xff99[885]](this,function(){this[_0xff99[1075]]()}))):this[_0xff99[1074]]= !1};mxSession[_0xff99[202]][_0xff99[827]]= function(_0xf598x2,_0xf598x3,_0xf598x4){null!= _0xf598x2&& 0< _0xf598x2[_0xff99[67]]&& (null!= this[_0xff99[1058]]&& (this[_0xff99[143]]?(mxLog[_0xff99[539]](),mxLog[_0xff99[143]](_0xff99[1078]+ this[_0xff99[1058]]+ _0xff99[1079]+ _0xf598x2)):(_0xf598x2= _0xff99[1080]+ _0xf598x2+ _0xff99[1081],this[_0xff99[1070]]&& (_0xf598x2= encodeURIComponent(_0xf598x2)),mxUtils[_0xff99[814]](this[_0xff99[1058]],_0xff99[1082]+ _0xf598x2,_0xf598x3,_0xf598x4))),this[_0xff99[1072]]+= _0xf598x2[_0xff99[67]],this[_0xff99[746]]( new mxEventObject(mxEvent.NOTIFY,_0xff99[863],this[_0xff99[1058]],_0xff99[338],_0xf598x2)))};mxSession[_0xff99[202]][_0xff99[203]]= function(_0xf598x2,_0xf598x3,_0xf598x4){if(_0xff99[82]!= typeof mxUtils){var _0xf598x5=mxUtils[_0xff99[885]](this,function(_0xf598x2){null!= _0xf598x4?_0xf598x4(_0xf598x2):this[_0xff99[1076]](_0xf598x2)});mxUtils[_0xff99[203]](_0xf598x2,mxUtils[_0xff99[885]](this,function(_0xf598x4){if(_0xff99[82]!= typeof mxUtils){if(_0xf598x4[_0xff99[220]]()&& 404!= _0xf598x4[_0xff99[878]]()){if(this[_0xff99[1073]]+= _0xf598x4[_0xff99[221]]()[_0xff99[67]],this[_0xff99[746]]( new mxEventObject(mxEvent.GET,_0xff99[863],_0xf598x2,_0xff99[870],_0xf598x4)),this[_0xff99[1083]](_0xf598x4)){if(0< _0xf598x4[_0xff99[221]]()[_0xff99[67]]){var _0xf598xa=_0xf598x4[_0xff99[874]]();null== _0xf598xa?_0xf598x5(_0xff99[1084]+ _0xf598x4[_0xff99[221]]()):this[_0xff99[806]](_0xf598xa)};null!= _0xf598x3&& _0xf598x3(_0xf598x4)}}else {_0xf598x5(_0xff99[1085])}}}),function(_0xf598x2){_0xf598x5(_0xff99[1086])})}};mxSession[_0xff99[202]][_0xff99[1083]]= function(_0xf598x2){return 0> _0xf598x2[_0xff99[221]]()[_0xff99[2]](_0xff99[1087])};mxSession[_0xff99[202]][_0xff99[1067]]= function(_0xf598x2,_0xf598x3){for(var _0xf598x4=_0xff99[110],_0xf598x5=_0xf598x3?-1:1,_0xf598x9=_0xf598x3?_0xf598x2[_0xff99[67]]- 1:0;0<= _0xf598x9&& _0xf598x9< _0xf598x2[_0xff99[67]];_0xf598x9+= _0xf598x5){var _0xf598xa=this[_0xff99[1059]][_0xff99[514]](_0xf598x2[_0xf598x9]),_0xf598x4=_0xf598x4+ mxUtils[_0xff99[875]](_0xf598xa,this[_0xff99[1069]])};return _0xf598x4};mxSession[_0xff99[202]][_0xff99[806]]= function(_0xf598x2){if(null!= _0xf598x2&& _0xf598x2[_0xff99[288]]== mxConstants[_0xff99[289]]){var _0xf598x3=_0xf598x2[_0xff99[284]](_0xff99[1088]);null!= _0xf598x3&& (this[_0xff99[251]][_0xff99[1089]]= _0xf598x3+ _0xff99[213]);for(_0xf598x3= _0xf598x2[_0xff99[285]];null!= _0xf598x3;){var _0xf598x4=_0xf598x3[_0xff99[301]][_0xff99[216]]();_0xff99[724]== _0xf598x4?this[_0xff99[1090]](_0xf598x3):_0xff99[1091]== _0xf598x4&& this[_0xff99[1092]](_0xf598x3);_0xf598x3= _0xf598x3[_0xff99[287]]};this[_0xff99[746]]( new mxEventObject(mxEvent.RECEIVE,_0xff99[252],_0xf598x2))}};mxSession[_0xff99[202]][_0xff99[1090]]= function(_0xf598x2){( new mxCodec(_0xf598x2[_0xff99[295]]))[_0xff99[1093]](_0xf598x2[_0xff99[285]],this[_0xff99[251]])};mxSession[_0xff99[202]][_0xff99[1092]]= function(_0xf598x2){for(_0xf598x2= _0xf598x2[_0xff99[285]];null!= _0xf598x2;){_0xff99[1061]== _0xf598x2[_0xff99[301]]&& this[_0xff99[1094]](_0xf598x2),_0xf598x2= _0xf598x2[_0xff99[287]]}};mxSession[_0xff99[202]][_0xff99[1094]]= function(_0xf598x2){_0xf598x2= this[_0xff99[1095]](_0xf598x2);if(0< _0xf598x2[_0xff99[67]]){var _0xf598x3=this[_0xff99[1096]](_0xf598x2);this[_0xff99[251]][_0xff99[746]]( new mxEventObject(mxEvent.CHANGE,_0xff99[1061],_0xf598x3,_0xff99[1065],_0xf598x2));this[_0xff99[251]][_0xff99[746]]( new mxEventObject(mxEvent.UNDO,_0xff99[1061],_0xf598x3));this[_0xff99[746]]( new mxEventObject(mxEvent.FIRED,_0xff99[1061],_0xf598x3))}};mxSession[_0xff99[202]][_0xff99[1096]]= function(_0xf598x2){var _0xf598x3= new mxUndoableEdit(this[_0xff99[251]],this[_0xff99[1071]]);_0xf598x3[_0xff99[1065]]= _0xf598x2;_0xf598x3[_0xff99[827]]= function(){_0xf598x3[_0xff99[1097]][_0xff99[746]]( new mxEventObject(mxEvent.CHANGE,_0xff99[1061],_0xf598x3,_0xff99[1065],_0xf598x3[_0xff99[1065]]));_0xf598x3[_0xff99[1097]][_0xff99[746]]( new mxEventObject(mxEvent.NOTIFY,_0xff99[1061],_0xf598x3,_0xff99[1065],_0xf598x3[_0xff99[1065]]))};return _0xf598x3};mxSession[_0xff99[202]][_0xff99[1095]]= function(_0xf598x2){this[_0xff99[1059]][_0xff99[395]]= _0xf598x2[_0xff99[295]];var _0xf598x3=[];for(_0xf598x2= _0xf598x2[_0xff99[285]];null!= _0xf598x2;){var _0xf598x4=this[_0xff99[1098]](_0xf598x2);null!= _0xf598x4&& _0xf598x3[_0xff99[207]](_0xf598x4);_0xf598x2= _0xf598x2[_0xff99[287]]};return _0xf598x3};mxSession[_0xff99[202]][_0xff99[1098]]= function(_0xf598x2){var _0xf598x3=null;_0xf598x2[_0xff99[288]]== mxConstants[_0xff99[289]]&& (_0xf598x3= _0xff99[1099]== _0xf598x2[_0xff99[301]]?( new mxCodec(_0xf598x2[_0xff99[295]]))[_0xff99[1093]](_0xf598x2):this[_0xff99[1059]][_0xff99[1093]](_0xf598x2),null!= _0xf598x3&& (_0xf598x3[_0xff99[251]]= this[_0xff99[251]],_0xf598x3[_0xff99[350]](),_0xff99[1100]== _0xf598x2[_0xff99[301]]&& null== _0xf598x3[_0xff99[1101]]&& this[_0xff99[1102]](_0xf598x3[_0xff99[247]])));return _0xf598x3};mxSession[_0xff99[202]][_0xff99[1102]]= function(_0xf598x2,_0xf598x3){this[_0xff99[1059]][_0xff99[1104]](_0xf598x2[_0xff99[1103]](),_0xf598x2);for(var _0xf598x4=this[_0xff99[251]][_0xff99[262]](_0xf598x2),_0xf598x5=0;_0xf598x5< _0xf598x4;_0xf598x5++){this[_0xff99[1102]](this[_0xff99[251]][_0xff99[263]](_0xf598x2,_0xf598x5))}};function mxUndoableEdit(_0xf598x2,_0xf598x3){this[_0xff99[1097]]= _0xf598x2;this[_0xff99[1065]]= [];this[_0xff99[1105]]= null!= _0xf598x3?_0xf598x3:!0}mxUndoableEdit[_0xff99[202]][_0xff99[1097]]= null;mxUndoableEdit[_0xff99[202]][_0xff99[1065]]= null;mxUndoableEdit[_0xff99[202]][_0xff99[1105]]= null;mxUndoableEdit[_0xff99[202]][_0xff99[1066]]= !1;mxUndoableEdit[_0xff99[202]][_0xff99[1106]]= !1;mxUndoableEdit[_0xff99[202]][_0xff99[1107]]= function(){return 0== this[_0xff99[1065]][_0xff99[67]]};mxUndoableEdit[_0xff99[202]][_0xff99[1108]]= function(){return this[_0xff99[1105]]};mxUndoableEdit[_0xff99[202]][_0xff99[99]]= function(_0xf598x2){this[_0xff99[1065]][_0xff99[207]](_0xf598x2)};mxUndoableEdit[_0xff99[202]][_0xff99[827]]= function(){};mxUndoableEdit[_0xff99[202]][_0xff99[1109]]= function(){};mxUndoableEdit[_0xff99[202]][_0xff99[824]]= function(){if(!this[_0xff99[1066]]){this[_0xff99[1097]][_0xff99[746]]( new mxEventObject(mxEvent.START_EDIT));for(var _0xf598x2=this[_0xff99[1065]][_0xff99[67]]- 1;0<= _0xf598x2;_0xf598x2--){var _0xf598x3=this[_0xff99[1065]][_0xf598x2];null!= _0xf598x3[_0xff99[350]]?_0xf598x3[_0xff99[350]]():null!= _0xf598x3[_0xff99[824]]&& _0xf598x3[_0xff99[824]]();this[_0xff99[1097]][_0xff99[746]]( new mxEventObject(mxEvent.EXECUTED,_0xff99[826],_0xf598x3))};this[_0xff99[1066]]= !0;this[_0xff99[1106]]= !1;this[_0xff99[1097]][_0xff99[746]]( new mxEventObject(mxEvent.END_EDIT))};this[_0xff99[827]]()};mxUndoableEdit[_0xff99[202]][_0xff99[825]]= function(){if(!this[_0xff99[1106]]){this[_0xff99[1097]][_0xff99[746]]( new mxEventObject(mxEvent.START_EDIT));for(var _0xf598x2=this[_0xff99[1065]][_0xff99[67]],_0xf598x3=0;_0xf598x3< _0xf598x2;_0xf598x3++){var _0xf598x4=this[_0xff99[1065]][_0xf598x3];null!= _0xf598x4[_0xff99[350]]?_0xf598x4[_0xff99[350]]():null!= _0xf598x4[_0xff99[825]]&& _0xf598x4[_0xff99[825]]();this[_0xff99[1097]][_0xff99[746]]( new mxEventObject(mxEvent.EXECUTED,_0xff99[826],_0xf598x4))};this[_0xff99[1066]]= !1;this[_0xff99[1106]]= !0;this[_0xff99[1097]][_0xff99[746]]( new mxEventObject(mxEvent.END_EDIT))};this[_0xff99[827]]()};function mxUndoManager(_0xf598x2){this[_0xff99[803]]= null!= _0xf598x2?_0xf598x2:100;this[_0xff99[200]]()}mxUndoManager[_0xff99[202]]= new mxEventSource;mxUndoManager[_0xff99[202]][_0xff99[196]]= mxUndoManager;mxUndoManager[_0xff99[202]][_0xff99[803]]= null;mxUndoManager[_0xff99[202]][_0xff99[1110]]= null;mxUndoManager[_0xff99[202]][_0xff99[1111]]= 0;mxUndoManager[_0xff99[202]][_0xff99[1107]]= function(){return 0== this[_0xff99[1110]][_0xff99[67]]};mxUndoManager[_0xff99[202]][_0xff99[200]]= function(){this[_0xff99[1110]]= [];this[_0xff99[1111]]= 0;this[_0xff99[746]]( new mxEventObject(mxEvent.CLEAR))};mxUndoManager[_0xff99[202]][_0xff99[1112]]= function(){return 0< this[_0xff99[1111]]};mxUndoManager[_0xff99[202]][_0xff99[824]]= function(){for(;0< this[_0xff99[1111]];){var _0xf598x2=this[_0xff99[1110]][--this[_0xff99[1111]]];_0xf598x2[_0xff99[824]]();if(_0xf598x2[_0xff99[1108]]()){this[_0xff99[746]]( new mxEventObject(mxEvent.UNDO,_0xff99[1061],_0xf598x2));break}}};mxUndoManager[_0xff99[202]][_0xff99[1113]]= function(){return this[_0xff99[1111]]< this[_0xff99[1110]][_0xff99[67]]};mxUndoManager[_0xff99[202]][_0xff99[825]]= function(){for(var _0xf598x2=this[_0xff99[1110]][_0xff99[67]];this[_0xff99[1111]]< _0xf598x2;){var _0xf598x3=this[_0xff99[1110]][this[_0xff99[1111]]++];_0xf598x3[_0xff99[825]]();if(_0xf598x3[_0xff99[1108]]()){this[_0xff99[746]]( new mxEventObject(mxEvent.REDO,_0xff99[1061],_0xf598x3));break}}};mxUndoManager[_0xff99[202]][_0xff99[1114]]= function(_0xf598x2){this[_0xff99[330]]();0< this[_0xff99[803]]&& this[_0xff99[803]]== this[_0xff99[1110]][_0xff99[67]]&& this[_0xff99[1110]][_0xff99[1115]]();this[_0xff99[1110]][_0xff99[207]](_0xf598x2);this[_0xff99[1111]]= this[_0xff99[1110]][_0xff99[67]];this[_0xff99[746]]( new mxEventObject(mxEvent.ADD,_0xff99[1061],_0xf598x2))};mxUndoManager[_0xff99[202]][_0xff99[330]]= function(){if(this[_0xff99[1110]][_0xff99[67]]> this[_0xff99[1111]]){for(var _0xf598x2=this[_0xff99[1110]][_0xff99[300]](this[_0xff99[1111]],this[_0xff99[1110]][_0xff99[67]]- this[_0xff99[1111]]),_0xf598x3=0;_0xf598x3< _0xf598x2[_0xff99[67]];_0xf598x3++){_0xf598x2[_0xf598x3][_0xff99[1109]]()}}};var mxUrlConverter=function(_0xf598x2){var _0xf598x3=!0,_0xf598x4=null,_0xf598x5=null;return {isEnabled:function(){return _0xf598x3},setEnabled:function(_0xf598x2){_0xf598x3= _0xf598x2},getBaseUrl:function(){return _0xf598x4},setBaseUrl:function(_0xf598x2){_0xf598x4= _0xf598x2},getBaseDomain:function(){return _0xf598x4},setBaseDomain:function(_0xf598x2){_0xf598x4= _0xf598x2},isRelativeUrl:function(_0xf598x2){return _0xff99[43]!= _0xf598x2[_0xff99[85]](0,7)&& _0xff99[46]!= _0xf598x2[_0xff99[85]](0,8)&& _0xff99[1116]!= _0xf598x2[_0xff99[85]](0,10)},convert:function(_0xf598x2){if(_0xf598x3&& this[_0xff99[1117]](_0xf598x2)){if(null== _0xf598x4){_0xf598x5= location[_0xff99[1118]]+ _0xff99[1119]+ location[_0xff99[1120]];_0xf598x4= _0xf598x5+ location[_0xff99[1121]];var _0xf598xa=_0xf598x4[_0xff99[1122]](_0xff99[84]);0< _0xf598xa&& (_0xf598x4= _0xf598x4[_0xff99[85]](0,_0xf598xa+ 1))};_0xf598x2= _0xff99[84]== _0xf598x2[_0xff99[225]](0)?_0xf598x5+ _0xf598x2:_0xf598x4+ _0xf598x2};return _0xf598x2}}};function mxPanningManager(_0xf598x2){this[_0xff99[1123]]= null;this[_0xff99[1124]]= !1;this[_0xff99[1125]]= this[_0xff99[1126]]= this[_0xff99[1127]]= this[_0xff99[1128]]= this[_0xff99[1129]]= this[_0xff99[1130]]= 0;this[_0xff99[1131]]= !1;this[_0xff99[190]]= this[_0xff99[360]]= 0;this[_0xff99[1132]]= {mouseDown:function(_0xf598x2,_0xf598x3){},mouseMove:function(_0xf598x2,_0xf598x3){},mouseUp:mxUtils[_0xff99[885]](this,function(_0xf598x2,_0xf598x3){this[_0xff99[1124]]&& this[_0xff99[1076]]()})};_0xf598x2[_0xff99[1133]](this[_0xff99[1132]]);mxEvent[_0xff99[169]](document,_0xff99[753],mxUtils[_0xff99[885]](this,function(){this[_0xff99[1124]]&& this[_0xff99[1076]]()}));var _0xf598x3=mxUtils[_0xff99[885]](this,function(){this[_0xff99[1131]]= mxUtils[_0xff99[1134]](_0xf598x2[_0xff99[526]]);this[_0xff99[360]]= _0xf598x2[_0xff99[526]][_0xff99[360]];this[_0xff99[190]]= _0xf598x2[_0xff99[526]][_0xff99[190]];return window[_0xff99[1141]](mxUtils[_0xff99[885]](this,function(){this[_0xff99[1130]]-= this[_0xff99[1126]];this[_0xff99[1129]]-= this[_0xff99[1125]];if(this[_0xff99[1131]]){var _0xf598x3=-_0xf598x2[_0xff99[526]][_0xff99[360]]- Math[_0xff99[430]](this[_0xff99[1126]]),_0xf598x5=-_0xf598x2[_0xff99[526]][_0xff99[190]]- Math[_0xff99[430]](this[_0xff99[1125]]);_0xf598x2[_0xff99[1135]](_0xf598x3,_0xf598x5);_0xf598x2[_0xff99[1136]]= this[_0xff99[360]]- _0xf598x2[_0xff99[526]][_0xff99[360]];_0xf598x2[_0xff99[1137]]= this[_0xff99[190]]- _0xf598x2[_0xff99[526]][_0xff99[190]];_0xf598x2[_0xff99[746]]( new mxEventObject(mxEvent.PAN))}else {_0xf598x2[_0xff99[1135]](this[_0xff99[1138]](),this[_0xff99[1139]]())}}),this[_0xff99[1140]])});this[_0xff99[1142]]= function(){return active};this[_0xff99[1138]]= function(){return Math[_0xff99[488]](this[_0xff99[1130]])};this[_0xff99[1139]]= function(){return Math[_0xff99[488]](this[_0xff99[1129]])};this[_0xff99[861]]= function(){this[_0xff99[1128]]= _0xf598x2[_0xff99[441]][_0xff99[513]][_0xff99[235]];this[_0xff99[1127]]= _0xf598x2[_0xff99[441]][_0xff99[513]][_0xff99[236]];this[_0xff99[1124]]= !0};this[_0xff99[1143]]= function(_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa){this[_0xff99[1124]]|| this[_0xff99[861]]();this[_0xff99[360]]= _0xf598x2[_0xff99[526]][_0xff99[360]];this[_0xff99[190]]= _0xf598x2[_0xff99[526]][_0xff99[190]];_0xf598xa= null!= _0xf598xa?_0xf598xa:0;var _0xf598x12=_0xf598x2[_0xff99[526]];this[_0xff99[1126]]= _0xf598x4+ (null!= _0xf598x9?_0xf598x9:0)- _0xf598x12[_0xff99[360]]- _0xf598x12[_0xff99[159]];0> this[_0xff99[1126]]&& Math[_0xff99[425]](this[_0xff99[1126]])< this[_0xff99[467]]?this[_0xff99[1126]]= this[_0xff99[467]]+ this[_0xff99[1126]]:this[_0xff99[1126]]= this[_0xff99[1144]]?Math[_0xff99[160]](this[_0xff99[1126]],0):0;0== this[_0xff99[1126]]&& (this[_0xff99[1126]]= _0xf598x4- _0xf598x12[_0xff99[360]],this[_0xff99[1126]]= 0< this[_0xff99[1126]]&& this[_0xff99[1126]]< this[_0xff99[467]]?this[_0xff99[1126]]- this[_0xff99[467]]:this[_0xff99[1144]]?Math[_0xff99[243]](0,this[_0xff99[1126]]):0);this[_0xff99[1125]]= _0xf598x5+ _0xf598xa- _0xf598x12[_0xff99[190]]- _0xf598x12[_0xff99[157]];0> this[_0xff99[1125]]&& Math[_0xff99[425]](this[_0xff99[1125]])< this[_0xff99[467]]?this[_0xff99[1125]]= this[_0xff99[467]]+ this[_0xff99[1125]]:this[_0xff99[1125]]= this[_0xff99[1144]]?Math[_0xff99[160]](this[_0xff99[1125]],0):0;0== this[_0xff99[1125]]&& (this[_0xff99[1125]]= _0xf598x5- _0xf598x12[_0xff99[190]],this[_0xff99[1125]]= 0< this[_0xff99[1125]]&& this[_0xff99[1125]]< this[_0xff99[467]]?this[_0xff99[1125]]- this[_0xff99[467]]:this[_0xff99[1144]]?Math[_0xff99[243]](0,this[_0xff99[1125]]):0);0!= this[_0xff99[1126]]|| 0!= this[_0xff99[1125]]?(this[_0xff99[1126]]*= this[_0xff99[1145]],this[_0xff99[1125]]*= this[_0xff99[1145]],null== this[_0xff99[1123]]&& (this[_0xff99[1123]]= _0xf598x3())):null!= this[_0xff99[1123]]&& (window[_0xff99[1146]](this[_0xff99[1123]]),this[_0xff99[1123]]= null)};this[_0xff99[1076]]= function(){if(this[_0xff99[1124]]){if(this[_0xff99[1124]]= !1,null!= this[_0xff99[1123]]&& (window[_0xff99[1146]](this[_0xff99[1123]]),this[_0xff99[1123]]= null),this[_0xff99[1129]]= this[_0xff99[1130]]= 0,this[_0xff99[1131]]){_0xf598x2[_0xff99[1136]]= 0,_0xf598x2[_0xff99[1137]]= 0,_0xf598x2[_0xff99[746]]( new mxEventObject(mxEvent.PAN))}else {var _0xf598x3=_0xf598x2[_0xff99[1136]],_0xf598x5=_0xf598x2[_0xff99[1137]];if(0!= _0xf598x3|| 0!= _0xf598x5){_0xf598x2[_0xff99[1135]](0,0),_0xf598x2[_0xff99[441]][_0xff99[1147]](this[_0xff99[1128]]+ _0xf598x3/ _0xf598x2[_0xff99[441]][_0xff99[255]],this[_0xff99[1127]]+ _0xf598x5/ _0xf598x2[_0xff99[441]][_0xff99[255]])}}}};this[_0xff99[515]]= function(){_0xf598x2[_0xff99[1148]](this[_0xff99[1132]])}}mxPanningManager[_0xff99[202]][_0xff99[1145]]= 1/ 6;mxPanningManager[_0xff99[202]][_0xff99[1140]]= 10;mxPanningManager[_0xff99[202]][_0xff99[1144]]= !0;mxPanningManager[_0xff99[202]][_0xff99[467]]= 0;function mxPopupMenu(_0xf598x2){this[_0xff99[1033]]= _0xf598x2;null!= _0xf598x2&& this[_0xff99[176]]()}mxPopupMenu[_0xff99[202]]= new mxEventSource;mxPopupMenu[_0xff99[202]][_0xff99[196]]= mxPopupMenu;mxPopupMenu[_0xff99[202]][_0xff99[1149]]= mxClient[_0xff99[88]]+ _0xff99[1150];mxPopupMenu[_0xff99[202]][_0xff99[931]]= 10006;mxPopupMenu[_0xff99[202]][_0xff99[1033]]= null;mxPopupMenu[_0xff99[202]][_0xff99[1151]]= !1;mxPopupMenu[_0xff99[202]][_0xff99[984]]= !0;mxPopupMenu[_0xff99[202]][_0xff99[1152]]= 0;mxPopupMenu[_0xff99[202]][_0xff99[1153]]= !1;mxPopupMenu[_0xff99[202]][_0xff99[1154]]= !1;mxPopupMenu[_0xff99[202]][_0xff99[1155]]= !0;mxPopupMenu[_0xff99[202]][_0xff99[176]]= function(){this[_0xff99[116]]= document[_0xff99[55]](_0xff99[116]);this[_0xff99[116]][_0xff99[926]]= _0xff99[1156];this[_0xff99[120]]= document[_0xff99[55]](_0xff99[120]);this[_0xff99[116]][_0xff99[62]](this[_0xff99[120]]);this[_0xff99[485]]= document[_0xff99[55]](_0xff99[485]);this[_0xff99[485]][_0xff99[926]]= _0xff99[1156];this[_0xff99[485]][_0xff99[124]][_0xff99[495]]= _0xff99[497];this[_0xff99[485]][_0xff99[124]][_0xff99[931]]= this[_0xff99[931]];this[_0xff99[485]][_0xff99[62]](this[_0xff99[116]]);mxEvent[_0xff99[1157]](this[_0xff99[485]])};mxPopupMenu[_0xff99[202]][_0xff99[994]]= function(){return this[_0xff99[984]]};mxPopupMenu[_0xff99[202]][_0xff99[995]]= function(_0xf598x2){this[_0xff99[984]]= _0xf598x2};mxPopupMenu[_0xff99[202]][_0xff99[737]]= function(_0xf598x2){return _0xf598x2[_0xff99[737]]()|| this[_0xff99[1151]]&& mxEvent[_0xff99[1158]](_0xf598x2[_0xff99[727]]())};mxPopupMenu[_0xff99[202]][_0xff99[1025]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa){_0xf598x5= _0xf598x5|| this;this[_0xff99[1152]]++;_0xf598x5[_0xff99[1159]]&& (_0xf598x5[_0xff99[1160]]&& this[_0xff99[1051]](_0xf598x5,!0),_0xf598x5[_0xff99[1159]]= !1);_0xf598x5[_0xff99[1160]]= !0;var _0xf598x12=document[_0xff99[55]](_0xff99[121]);_0xf598x12[_0xff99[926]]= _0xff99[1161];var _0xf598x13=document[_0xff99[55]](_0xff99[122]);_0xf598x13[_0xff99[926]]= _0xff99[1162];null!= _0xf598x3?(_0xf598x9= document[_0xff99[55]](_0xff99[466]),_0xf598x9[_0xff99[390]]= _0xf598x3,_0xf598x13[_0xff99[62]](_0xf598x9)):null!= _0xf598x9&& (_0xf598x3= document[_0xff99[55]](_0xff99[485]),_0xf598x3[_0xff99[926]]= _0xf598x9,_0xf598x13[_0xff99[62]](_0xf598x3));_0xf598x12[_0xff99[62]](_0xf598x13);this[_0xff99[1155]]&& (_0xf598x13= document[_0xff99[55]](_0xff99[122]),_0xf598x13[_0xff99[926]]= _0xff99[1161]+ (null!= _0xf598xa&& !_0xf598xa?_0xff99[1163]:_0xff99[110]),mxUtils[_0xff99[53]](_0xf598x13,_0xf598x2),_0xf598x13[_0xff99[611]]= _0xff99[361],_0xf598x12[_0xff99[62]](_0xf598x13),_0xf598x2= document[_0xff99[55]](_0xff99[122]),_0xf598x2[_0xff99[926]]= _0xff99[1161]+ (null!= _0xf598xa&& !_0xf598xa?_0xff99[1163]:_0xff99[110]),_0xf598x2[_0xff99[124]][_0xff99[1164]]= _0xff99[1055],_0xf598x2[_0xff99[124]][_0xff99[1165]]= _0xff99[699],_0xf598x12[_0xff99[62]](_0xf598x2),null== _0xf598x5[_0xff99[485]]&& this[_0xff99[1166]](_0xf598x5));_0xf598x5[_0xff99[120]][_0xff99[62]](_0xf598x12);if(null== _0xf598xa|| _0xf598xa){mxEvent[_0xff99[759]](_0xf598x12,mxUtils[_0xff99[885]](this,function(_0xf598x2){this[_0xff99[1167]]= _0xf598x12;_0xf598x5[_0xff99[1168]]!= _0xf598x12&& _0xf598x5[_0xff99[1168]]!= _0xf598x5&& (null!= _0xf598x5[_0xff99[1168]]&& null!= _0xf598x5[_0xff99[1168]][_0xff99[485]][_0xff99[265]]&& this[_0xff99[1169]](_0xf598x5),null!= _0xf598x12[_0xff99[485]]&& (this[_0xff99[1170]](_0xf598x5,_0xf598x12),_0xf598x5[_0xff99[1168]]= _0xf598x12));mxEvent[_0xff99[722]](_0xf598x2)}),mxUtils[_0xff99[885]](this,function(_0xf598x2){_0xf598x5[_0xff99[1168]]!= _0xf598x12&& _0xf598x5[_0xff99[1168]]!= _0xf598x5&& (null!= _0xf598x5[_0xff99[1168]]&& null!= _0xf598x5[_0xff99[1168]][_0xff99[485]][_0xff99[265]]&& this[_0xff99[1169]](_0xf598x5),this[_0xff99[1153]]&& null!= _0xf598x12[_0xff99[485]]&& (this[_0xff99[1170]](_0xf598x5,_0xf598x12),_0xf598x5[_0xff99[1168]]= _0xf598x12));_0xf598x12[_0xff99[926]]= _0xff99[1171]}),mxUtils[_0xff99[885]](this,function(_0xf598x2){this[_0xff99[1167]]== _0xf598x12&& (_0xf598x5[_0xff99[1168]]!= _0xf598x12&& this[_0xff99[1032]](),null!= _0xf598x4&& _0xf598x4(_0xf598x2));this[_0xff99[1167]]= null;mxEvent[_0xff99[722]](_0xf598x2)})),mxEvent[_0xff99[169]](_0xf598x12,_0xff99[1035],mxUtils[_0xff99[885]](this,function(_0xf598x2){_0xf598x12[_0xff99[926]]= _0xff99[1161]}))};return _0xf598x12};mxPopupMenu[_0xff99[202]][_0xff99[1166]]= function(_0xf598x2){_0xf598x2[_0xff99[116]]= document[_0xff99[55]](_0xff99[116]);_0xf598x2[_0xff99[116]][_0xff99[926]]= _0xff99[1156];_0xf598x2[_0xff99[120]]= document[_0xff99[55]](_0xff99[120]);_0xf598x2[_0xff99[116]][_0xff99[62]](_0xf598x2[_0xff99[120]]);_0xf598x2[_0xff99[485]]= document[_0xff99[55]](_0xff99[485]);_0xf598x2[_0xff99[485]][_0xff99[926]]= _0xff99[1156];_0xf598x2[_0xff99[485]][_0xff99[124]][_0xff99[491]]= _0xff99[492];_0xf598x2[_0xff99[485]][_0xff99[124]][_0xff99[495]]= _0xff99[497];_0xf598x2[_0xff99[485]][_0xff99[124]][_0xff99[931]]= this[_0xff99[931]];_0xf598x2[_0xff99[485]][_0xff99[62]](_0xf598x2[_0xff99[116]]);var _0xf598x3=document[_0xff99[55]](_0xff99[466]);_0xf598x3[_0xff99[57]](_0xff99[390],this[_0xff99[1149]]);td= _0xf598x2[_0xff99[285]][_0xff99[287]][_0xff99[287]];td[_0xff99[62]](_0xf598x3)};mxPopupMenu[_0xff99[202]][_0xff99[1170]]= function(_0xf598x2,_0xf598x3){if(null!= _0xf598x3[_0xff99[485]]){_0xf598x3[_0xff99[485]][_0xff99[124]][_0xff99[361]]= _0xf598x2[_0xff99[485]][_0xff99[358]]+ _0xf598x3[_0xff99[358]]+ _0xf598x3[_0xff99[359]]- 1+ _0xff99[168];_0xf598x3[_0xff99[485]][_0xff99[124]][_0xff99[125]]= _0xf598x2[_0xff99[485]][_0xff99[362]]+ _0xf598x3[_0xff99[362]]+ _0xff99[168];document[_0xff99[112]][_0xff99[62]](_0xf598x3[_0xff99[485]]);var _0xf598x4=parseInt(_0xf598x3[_0xff99[485]][_0xff99[358]]),_0xf598x5=parseInt(_0xf598x3[_0xff99[485]][_0xff99[359]]),_0xf598x9=document[_0xff99[112]],_0xf598xa=document[_0xff99[158]];if(_0xf598x4+ _0xf598x5> (_0xf598x9[_0xff99[360]]|| _0xf598xa[_0xff99[360]])+ (_0xf598x9[_0xff99[159]]|| _0xf598xa[_0xff99[159]])){_0xf598x3[_0xff99[485]][_0xff99[124]][_0xff99[361]]= _0xf598x2[_0xff99[485]][_0xff99[358]]- _0xf598x5+ (mxClient[_0xff99[80]]?6:-6)+ _0xff99[168]};mxUtils[_0xff99[933]](_0xf598x3[_0xff99[485]])}};mxPopupMenu[_0xff99[202]][_0xff99[1051]]= function(_0xf598x2,_0xf598x3){_0xf598x2= _0xf598x2|| this;if(this[_0xff99[1154]]&& !_0xf598x3){_0xf598x2[_0xff99[1159]]= !0}else {if(null!= _0xf598x2[_0xff99[120]]){_0xf598x2[_0xff99[1159]]= !1;var _0xf598x4=document[_0xff99[55]](_0xff99[121]),_0xf598x5=document[_0xff99[55]](_0xff99[122]);_0xf598x5[_0xff99[926]]= _0xff99[1162];_0xf598x5[_0xff99[124]][_0xff99[549]]= _0xff99[1172];_0xf598x4[_0xff99[62]](_0xf598x5);_0xf598x5= document[_0xff99[55]](_0xff99[122]);_0xf598x5[_0xff99[124]][_0xff99[549]]= _0xff99[1172];_0xf598x5[_0xff99[57]](_0xff99[1173],_0xff99[1174]);var _0xf598x9=document[_0xff99[55]](_0xff99[1054]);_0xf598x9[_0xff99[57]](_0xff99[803],_0xff99[500]);_0xf598x5[_0xff99[62]](_0xf598x9);_0xf598x4[_0xff99[62]](_0xf598x5);_0xf598x2[_0xff99[120]][_0xff99[62]](_0xf598x4)}}};mxPopupMenu[_0xff99[202]][_0xff99[152]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){if(null!= this[_0xff99[485]]&& null!= this[_0xff99[120]]&& null!= this[_0xff99[1033]]){this[_0xff99[485]][_0xff99[124]][_0xff99[361]]= _0xf598x2+ _0xff99[168];for(this[_0xff99[485]][_0xff99[124]][_0xff99[125]]= _0xf598x3+ _0xff99[168];null!= this[_0xff99[120]][_0xff99[285]];){mxEvent[_0xff99[762]](this[_0xff99[120]][_0xff99[285]]),this[_0xff99[120]][_0xff99[266]](this[_0xff99[120]][_0xff99[285]])};this[_0xff99[1152]]= 0;this[_0xff99[1033]](this,_0xf598x4,_0xf598x5);0< this[_0xff99[1152]]&& (this[_0xff99[1175]](),this[_0xff99[746]]( new mxEventObject(mxEvent.SHOW)))}};mxPopupMenu[_0xff99[202]][_0xff99[1031]]= function(){return null!= this[_0xff99[485]]&& this[_0xff99[485]][_0xff99[265]]== document[_0xff99[112]]};mxPopupMenu[_0xff99[202]][_0xff99[1175]]= function(){9<= document[_0xff99[5]]&& (this[_0xff99[485]][_0xff99[124]][_0xff99[347]]= _0xff99[130]);document[_0xff99[112]][_0xff99[62]](this[_0xff99[485]]);mxUtils[_0xff99[933]](this[_0xff99[485]])};mxPopupMenu[_0xff99[202]][_0xff99[1032]]= function(){null!= this[_0xff99[485]]&& (null!= this[_0xff99[485]][_0xff99[265]]&& this[_0xff99[485]][_0xff99[265]][_0xff99[266]](this[_0xff99[485]]),this[_0xff99[1169]](this),this[_0xff99[1160]]= !1)};mxPopupMenu[_0xff99[202]][_0xff99[1169]]= function(_0xf598x2){null!= _0xf598x2[_0xff99[1168]]&& (this[_0xff99[1169]](_0xf598x2[_0xff99[1168]]),null!= _0xf598x2[_0xff99[1168]][_0xff99[485]][_0xff99[265]]&& _0xf598x2[_0xff99[1168]][_0xff99[485]][_0xff99[265]][_0xff99[266]](_0xf598x2[_0xff99[1168]][_0xff99[485]]),_0xf598x2[_0xff99[1168]]= null)};mxPopupMenu[_0xff99[202]][_0xff99[515]]= function(){null!= this[_0xff99[485]]&& (mxEvent[_0xff99[762]](this[_0xff99[485]]),null!= this[_0xff99[485]][_0xff99[265]]&& this[_0xff99[485]][_0xff99[265]][_0xff99[266]](this[_0xff99[485]]),this[_0xff99[485]]= null)};function mxAutoSaveManager(_0xf598x2){this[_0xff99[1176]]= mxUtils[_0xff99[885]](this,function(_0xf598x2,_0xf598x4){this[_0xff99[994]]()&& this[_0xff99[1177]](_0xf598x4[_0xff99[720]](_0xff99[1061])[_0xff99[1065]])});this[_0xff99[1178]](_0xf598x2)}mxAutoSaveManager[_0xff99[202]]= new mxEventSource;mxAutoSaveManager[_0xff99[202]][_0xff99[196]]= mxAutoSaveManager;mxAutoSaveManager[_0xff99[202]][_0xff99[1179]]= null;mxAutoSaveManager[_0xff99[202]][_0xff99[1180]]= 10;mxAutoSaveManager[_0xff99[202]][_0xff99[1181]]= 2;mxAutoSaveManager[_0xff99[202]][_0xff99[1182]]= 5;mxAutoSaveManager[_0xff99[202]][_0xff99[1183]]= 0;mxAutoSaveManager[_0xff99[202]][_0xff99[1184]]= 0;mxAutoSaveManager[_0xff99[202]][_0xff99[984]]= !0;mxAutoSaveManager[_0xff99[202]][_0xff99[1176]]= null;mxAutoSaveManager[_0xff99[202]][_0xff99[994]]= function(){return this[_0xff99[984]]};mxAutoSaveManager[_0xff99[202]][_0xff99[995]]= function(_0xf598x2){this[_0xff99[984]]= _0xf598x2};mxAutoSaveManager[_0xff99[202]][_0xff99[1178]]= function(_0xf598x2){null!= this[_0xff99[1179]]&& this[_0xff99[1179]][_0xff99[502]]()[_0xff99[745]](this[_0xff99[1176]]);this[_0xff99[1179]]= _0xf598x2;null!= this[_0xff99[1179]]&& this[_0xff99[1179]][_0xff99[502]]()[_0xff99[169]](mxEvent.CHANGE,this[_0xff99[1176]])};mxAutoSaveManager[_0xff99[202]][_0xff99[815]]= function(){};mxAutoSaveManager[_0xff99[202]][_0xff99[1177]]= function(_0xf598x2){_0xf598x2= (( new Date)[_0xff99[178]]()- this[_0xff99[1184]])/ 1E3;_0xf598x2> this[_0xff99[1180]]|| this[_0xff99[1183]]>= this[_0xff99[1182]]&& _0xf598x2> this[_0xff99[1181]]?(this[_0xff99[815]](),this[_0xff99[862]]()):this[_0xff99[1183]]++};mxAutoSaveManager[_0xff99[202]][_0xff99[862]]= function(){this[_0xff99[1184]]= ( new Date)[_0xff99[178]]();this[_0xff99[1183]]= 0};mxAutoSaveManager[_0xff99[202]][_0xff99[515]]= function(){this[_0xff99[1178]](null)};function mxAnimation(_0xf598x2){this[_0xff99[1140]]= null!= _0xf598x2?_0xf598x2:20}mxAnimation[_0xff99[202]]= new mxEventSource;mxAnimation[_0xff99[202]][_0xff99[196]]= mxAnimation;mxAnimation[_0xff99[202]][_0xff99[1140]]= null;mxAnimation[_0xff99[202]][_0xff99[1123]]= null;mxAnimation[_0xff99[202]][_0xff99[1185]]= function(){null== this[_0xff99[1123]]&& (this[_0xff99[1123]]= window[_0xff99[1141]](mxUtils[_0xff99[885]](this,this[_0xff99[1186]]),this[_0xff99[1140]]))};mxAnimation[_0xff99[202]][_0xff99[1186]]= function(){this[_0xff99[746]]( new mxEventObject(mxEvent.EXECUTE))};mxAnimation[_0xff99[202]][_0xff99[1187]]= function(){null!= this[_0xff99[1123]]&& (window[_0xff99[1146]](this[_0xff99[1123]]),this[_0xff99[1123]]= null,this[_0xff99[746]]( new mxEventObject(mxEvent.DONE)))};function mxMorphing(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){mxAnimation[_0xff99[239]](this,_0xf598x5);this[_0xff99[1179]]= _0xf598x2;this[_0xff99[1188]]= null!= _0xf598x3?_0xf598x3:6;this[_0xff99[1189]]= null!= _0xf598x4?_0xf598x4:1.5}mxMorphing[_0xff99[202]]= new mxAnimation;mxMorphing[_0xff99[202]][_0xff99[196]]= mxMorphing;mxMorphing[_0xff99[202]][_0xff99[1179]]= null;mxMorphing[_0xff99[202]][_0xff99[1188]]= null;mxMorphing[_0xff99[202]][_0xff99[1190]]= 0;mxMorphing[_0xff99[202]][_0xff99[1189]]= null;mxMorphing[_0xff99[202]][_0xff99[895]]= null;mxMorphing[_0xff99[202]][_0xff99[1186]]= function(){var _0xf598x2= new mxCellStatePreview(this[_0xff99[1179]]);if(null!= this[_0xff99[895]]){for(var _0xf598x3=0;_0xf598x3< this[_0xff99[895]][_0xff99[67]];_0xf598x3++){this[_0xff99[1191]](cells[_0xf598x3],_0xf598x2,!1)}}else {this[_0xff99[1191]](this[_0xff99[1179]][_0xff99[502]]()[_0xff99[501]](),_0xf598x2,!0)};this[_0xff99[539]](_0xf598x2);(_0xf598x2[_0xff99[1107]]()|| this[_0xff99[1190]]++ >= this[_0xff99[1188]])&& this[_0xff99[1187]]()};mxMorphing[_0xff99[202]][_0xff99[539]]= function(_0xf598x2){_0xf598x2[_0xff99[539]]()};mxMorphing[_0xff99[202]][_0xff99[1191]]= function(_0xf598x2,_0xf598x3,_0xf598x4){var _0xf598x5=this[_0xff99[1179]][_0xff99[249]]()[_0xff99[248]](_0xf598x2),_0xf598x9=null;if(null!= _0xf598x5&& (_0xf598x9= this[_0xff99[1192]](_0xf598x5),this[_0xff99[1179]][_0xff99[502]]()[_0xff99[1193]](_0xf598x2)&& (0!= _0xf598x9[_0xff99[235]]|| 0!= _0xf598x9[_0xff99[236]]))){var _0xf598xa=this[_0xff99[1179]][_0xff99[441]][_0xff99[512]](),_0xf598x12=this[_0xff99[1179]][_0xff99[441]][_0xff99[518]]();_0xf598x9[_0xff99[235]]+= _0xf598xa[_0xff99[235]]* _0xf598x12;_0xf598x9[_0xff99[236]]+= _0xf598xa[_0xff99[236]]* _0xf598x12;_0xf598x3[_0xff99[1194]](_0xf598x5,-_0xf598x9[_0xff99[235]]/ this[_0xff99[1189]],-_0xf598x9[_0xff99[236]]/ this[_0xff99[1189]])};if(_0xf598x4&& !this[_0xff99[1195]](_0xf598x5,_0xf598x9)){_0xf598x5= this[_0xff99[1179]][_0xff99[502]]()[_0xff99[262]](_0xf598x2);for(_0xf598x9= 0;_0xf598x9< _0xf598x5;_0xf598x9++){this[_0xff99[1191]](this[_0xff99[1179]][_0xff99[502]]()[_0xff99[263]](_0xf598x2,_0xf598x9),_0xf598x3,_0xf598x4)}}};mxMorphing[_0xff99[202]][_0xff99[1195]]= function(_0xf598x2,_0xf598x3){return null!= _0xf598x3&& (0!= _0xf598x3[_0xff99[235]]|| 0!= _0xf598x3[_0xff99[236]])};mxMorphing[_0xff99[202]][_0xff99[1192]]= function(_0xf598x2){var _0xf598x3=this[_0xff99[1196]](_0xf598x2[_0xff99[246]]),_0xf598x4=this[_0xff99[1179]][_0xff99[249]]()[_0xff99[512]](),_0xf598x5=this[_0xff99[1179]][_0xff99[249]]()[_0xff99[518]]();_0xf598x2= new mxPoint(_0xf598x2[_0xff99[235]]/ _0xf598x5- _0xf598x4[_0xff99[235]],_0xf598x2[_0xff99[236]]/ _0xf598x5- _0xf598x4[_0xff99[236]]);return new mxPoint((_0xf598x3[_0xff99[235]]- _0xf598x2[_0xff99[235]])* _0xf598x5,(_0xf598x3[_0xff99[236]]- _0xf598x2[_0xff99[236]])* _0xf598x5)};mxMorphing[_0xff99[202]][_0xff99[1196]]= function(_0xf598x2){var _0xf598x3=null;null!= _0xf598x2&& (_0xf598x3= this[_0xff99[1196]](this[_0xff99[1179]][_0xff99[502]]()[_0xff99[1197]](_0xf598x2)),_0xf598x2= this[_0xff99[1179]][_0xff99[1198]](_0xf598x2),null!= _0xf598x2&& (_0xf598x3[_0xff99[235]]+= _0xf598x2[_0xff99[235]],_0xf598x3[_0xff99[236]]+= _0xf598x2[_0xff99[236]]));null== _0xf598x3&& (_0xf598x3= this[_0xff99[1179]][_0xff99[441]][_0xff99[512]](),_0xf598x3= new mxPoint(-_0xf598x3[_0xff99[235]],-_0xf598x3[_0xff99[236]]));return _0xf598x3};function mxImageBundle(_0xf598x2){this[_0xff99[1199]]= [];this[_0xff99[1200]]= null!= _0xf598x2?_0xf598x2:!1}mxImageBundle[_0xff99[202]][_0xff99[1199]]= null;mxImageBundle[_0xff99[202]][_0xff99[1199]]= null;mxImageBundle[_0xff99[202]][_0xff99[1201]]= function(_0xf598x2,_0xf598x3,_0xf598x4){this[_0xff99[1199]][_0xf598x2]= {value:_0xf598x3,fallback:_0xf598x4}};mxImageBundle[_0xff99[202]][_0xff99[1202]]= function(_0xf598x2){var _0xf598x3=null;null!= _0xf598x2&& (_0xf598x2= this[_0xff99[1199]][_0xf598x2],null!= _0xf598x2&& (_0xf598x3= this[_0xff99[1200]]?_0xf598x2[_0xff99[1203]]:_0xf598x2[_0xff99[131]]));return _0xf598x3};function mxImageExport(){}mxImageExport[_0xff99[202]][_0xff99[1204]]= !1;mxImageExport[_0xff99[202]][_0xff99[1205]]= function(_0xf598x2,_0xf598x3){null!= _0xf598x2&& (this[_0xff99[1207]](_0xf598x2,_0xf598x3,this[_0xff99[1206]]),this[_0xff99[1204]]&& this[_0xff99[1207]](_0xf598x2,_0xf598x3,this[_0xff99[1208]]))};mxImageExport[_0xff99[202]][_0xff99[1207]]= function(_0xf598x2,_0xf598x3,_0xf598x4){if(null!= _0xf598x2){_0xf598x4(_0xf598x2,_0xf598x3);for(var _0xf598x5=_0xf598x2[_0xff99[441]][_0xff99[1179]],_0xf598x9=_0xf598x5[_0xff99[251]][_0xff99[262]](_0xf598x2[_0xff99[246]]),_0xf598xa=0;_0xf598xa< _0xf598x9;_0xf598xa++){var _0xf598x12=_0xf598x5[_0xff99[441]][_0xff99[248]](_0xf598x5[_0xff99[251]][_0xff99[263]](_0xf598x2[_0xff99[246]],_0xf598xa));this[_0xff99[1207]](_0xf598x12,_0xf598x3,_0xf598x4)}}};mxImageExport[_0xff99[202]][_0xff99[1206]]= function(_0xf598x2,_0xf598x3){_0xf598x2[_0xff99[253]] instanceof mxShape&& (_0xf598x3[_0xff99[815]](),_0xf598x2[_0xff99[253]][_0xff99[1209]](_0xf598x3),_0xf598x3[_0xff99[1210]]());null!= _0xf598x2[_0xff99[963]]&& (_0xf598x3[_0xff99[815]](),_0xf598x2[_0xff99[963]][_0xff99[1209]](_0xf598x3),_0xf598x3[_0xff99[1210]]())};mxImageExport[_0xff99[202]][_0xff99[1208]]= function(_0xf598x2,_0xf598x3){null!= _0xf598x2[_0xff99[1211]]&& _0xf598x2[_0xff99[1211]][_0xff99[209]](function(_0xf598x2,_0xf598x5){_0xf598x5 instanceof mxShape&& _0xf598x5[_0xff99[1209]](_0xf598x3)})};function mxAbstractCanvas2D(){this[_0xff99[1212]]= this[_0xff99[1213]]();this[_0xff99[862]]()}mxAbstractCanvas2D[_0xff99[202]][_0xff99[724]]= null;mxAbstractCanvas2D[_0xff99[202]][_0xff99[1214]]= null;mxAbstractCanvas2D[_0xff99[202]][_0xff99[1215]]= null;mxAbstractCanvas2D[_0xff99[202]][_0xff99[1216]]= !0;mxAbstractCanvas2D[_0xff99[202]][_0xff99[1217]]= 0;mxAbstractCanvas2D[_0xff99[202]][_0xff99[1218]]= 0;mxAbstractCanvas2D[_0xff99[202]][_0xff99[1219]]= _0xff99[1220];mxAbstractCanvas2D[_0xff99[202]][_0xff99[1221]]= _0xff99[1222];mxAbstractCanvas2D[_0xff99[202]][_0xff99[1223]]= _0xff99[1224];mxAbstractCanvas2D[_0xff99[202]][_0xff99[1225]]= _0xff99[1226];mxAbstractCanvas2D[_0xff99[202]][_0xff99[1227]]= _0xff99[1228];mxAbstractCanvas2D[_0xff99[202]][_0xff99[1229]]= !1;mxAbstractCanvas2D[_0xff99[202]][_0xff99[1213]]= function(){return new mxUrlConverter};mxAbstractCanvas2D[_0xff99[202]][_0xff99[862]]= function(){this[_0xff99[724]]= this[_0xff99[1230]]();this[_0xff99[1214]]= []};mxAbstractCanvas2D[_0xff99[202]][_0xff99[1230]]= function(){return {dx:0,dy:0,scale:1,alpha:1,fillColor:null,fillAlpha:1,gradientColor:null,gradientAlpha:1,gradientDirection:null,strokeColor:null,strokeWidth:1,dashed:!1,dashPattern:_0xff99[1231],lineCap:_0xff99[1232],lineJoin:_0xff99[1233],miterLimit:10,fontColor:_0xff99[1234],fontBackgroundColor:null,fontBorderColor:null,fontSize:mxConstants[_0xff99[483]],fontFamily:mxConstants[_0xff99[484]],fontStyle:0,shadow:!1,shadowColor:mxConstants[_0xff99[1235]],shadowAlpha:mxConstants[_0xff99[1236]],shadowDx:mxConstants[_0xff99[1237]],shadowDy:mxConstants[_0xff99[1238]],rotation:0,rotationCx:0,rotationCy:0}};mxAbstractCanvas2D[_0xff99[202]][_0xff99[1239]]= function(_0xf598x2){return Math[_0xff99[488]](parseFloat(_0xf598x2))};mxAbstractCanvas2D[_0xff99[202]][_0xff99[1240]]= function(){if(null!= this[_0xff99[1215]]&& (this[_0xff99[1215]][_0xff99[207]](arguments[0]),2< arguments[_0xff99[67]])){for(var _0xf598x2=this[_0xff99[724]],_0xf598x3=2;_0xf598x3< arguments[_0xff99[67]];_0xf598x3+= 2){this[_0xff99[1217]]= arguments[_0xf598x3- 1],this[_0xff99[1218]]= arguments[_0xf598x3],this[_0xff99[1215]][_0xff99[207]](this[_0xff99[1239]]((this[_0xff99[1217]]+ _0xf598x2[_0xff99[1126]])* _0xf598x2[_0xff99[255]])),this[_0xff99[1215]][_0xff99[207]](this[_0xff99[1239]]((this[_0xff99[1218]]+ _0xf598x2[_0xff99[1125]])* _0xf598x2[_0xff99[255]]))}}};mxAbstractCanvas2D[_0xff99[202]][_0xff99[1241]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){_0xf598x4*= Math[_0xff99[424]]/ 180;return mxUtils[_0xff99[432]]( new mxPoint(_0xf598x2,_0xf598x3),Math[_0xff99[426]](_0xf598x4),Math[_0xff99[427]](_0xf598x4), new mxPoint(_0xf598x5,_0xf598x9))};mxAbstractCanvas2D[_0xff99[202]][_0xff99[815]]= function(){this[_0xff99[1214]][_0xff99[207]](this[_0xff99[724]]);this[_0xff99[724]]= mxUtils[_0xff99[238]](this[_0xff99[724]])};mxAbstractCanvas2D[_0xff99[202]][_0xff99[1210]]= function(){this[_0xff99[724]]= this[_0xff99[1214]][_0xff99[1242]]()};mxAbstractCanvas2D[_0xff99[202]][_0xff99[255]]= function(_0xf598x2){this[_0xff99[724]][_0xff99[255]]*= _0xf598x2;this[_0xff99[724]][_0xff99[610]]*= _0xf598x2};mxAbstractCanvas2D[_0xff99[202]][_0xff99[513]]= function(_0xf598x2,_0xf598x3){this[_0xff99[724]][_0xff99[1126]]+= _0xf598x2;this[_0xff99[724]][_0xff99[1125]]+= _0xf598x3};mxAbstractCanvas2D[_0xff99[202]][_0xff99[1243]]= function(_0xf598x2){this[_0xff99[724]][_0xff99[1244]]= _0xf598x2};mxAbstractCanvas2D[_0xff99[202]][_0xff99[1245]]= function(_0xf598x2){_0xf598x2== mxConstants[_0xff99[217]]&& (_0xf598x2= null);this[_0xff99[724]][_0xff99[604]]= _0xf598x2;this[_0xff99[724]][_0xff99[606]]= null};mxAbstractCanvas2D[_0xff99[202]][_0xff99[1246]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa,_0xf598x12,_0xf598x13,_0xf598x14){_0xf598x4= this[_0xff99[724]];_0xf598x4[_0xff99[604]]= _0xf598x2;_0xf598x4[_0xff99[1247]]= null!= _0xf598x13?_0xf598x13:1;_0xf598x4[_0xff99[606]]= _0xf598x3;_0xf598x4[_0xff99[1248]]= null!= _0xf598x14?_0xf598x14:1;_0xf598x4[_0xff99[607]]= _0xf598x12};mxAbstractCanvas2D[_0xff99[202]][_0xff99[1249]]= function(_0xf598x2){_0xf598x2== mxConstants[_0xff99[217]]&& (_0xf598x2= null);this[_0xff99[724]][_0xff99[608]]= _0xf598x2};mxAbstractCanvas2D[_0xff99[202]][_0xff99[1250]]= function(_0xf598x2){this[_0xff99[724]][_0xff99[610]]= _0xf598x2};mxAbstractCanvas2D[_0xff99[202]][_0xff99[1251]]= function(_0xf598x2){this[_0xff99[724]][_0xff99[648]]= _0xf598x2};mxAbstractCanvas2D[_0xff99[202]][_0xff99[1252]]= function(_0xf598x2){this[_0xff99[724]][_0xff99[649]]= _0xf598x2};mxAbstractCanvas2D[_0xff99[202]][_0xff99[1253]]= function(_0xf598x2){this[_0xff99[724]][_0xff99[1254]]= _0xf598x2};mxAbstractCanvas2D[_0xff99[202]][_0xff99[1255]]= function(_0xf598x2){this[_0xff99[724]][_0xff99[1256]]= _0xf598x2};mxAbstractCanvas2D[_0xff99[202]][_0xff99[1257]]= function(_0xf598x2){this[_0xff99[724]][_0xff99[1258]]= _0xf598x2};mxAbstractCanvas2D[_0xff99[202]][_0xff99[1259]]= function(_0xf598x2){_0xf598x2== mxConstants[_0xff99[217]]&& (_0xf598x2= null);this[_0xff99[724]][_0xff99[665]]= _0xf598x2};mxAbstractCanvas2D[_0xff99[202]][_0xff99[1260]]= function(_0xf598x2){_0xf598x2== mxConstants[_0xff99[217]]&& (_0xf598x2= null);this[_0xff99[724]][_0xff99[1261]]= _0xf598x2};mxAbstractCanvas2D[_0xff99[202]][_0xff99[1262]]= function(_0xf598x2){_0xf598x2== mxConstants[_0xff99[217]]&& (_0xf598x2= null);this[_0xff99[724]][_0xff99[1263]]= _0xf598x2};mxAbstractCanvas2D[_0xff99[202]][_0xff99[1264]]= function(_0xf598x2){this[_0xff99[724]][_0xff99[487]]= _0xf598x2};mxAbstractCanvas2D[_0xff99[202]][_0xff99[1265]]= function(_0xf598x2){this[_0xff99[724]][_0xff99[486]]= _0xf598x2};mxAbstractCanvas2D[_0xff99[202]][_0xff99[1266]]= function(_0xf598x2){null== _0xf598x2&& (_0xf598x2= 0);this[_0xff99[724]][_0xff99[666]]= _0xf598x2};mxAbstractCanvas2D[_0xff99[202]][_0xff99[1267]]= function(_0xf598x2){this[_0xff99[724]][_0xff99[639]]= _0xf598x2};mxAbstractCanvas2D[_0xff99[202]][_0xff99[1268]]= function(_0xf598x2){_0xf598x2== mxConstants[_0xff99[217]]&& (_0xf598x2= null);this[_0xff99[724]][_0xff99[1269]]= _0xf598x2};mxAbstractCanvas2D[_0xff99[202]][_0xff99[1270]]= function(_0xf598x2){this[_0xff99[724]][_0xff99[1271]]= _0xf598x2};mxAbstractCanvas2D[_0xff99[202]][_0xff99[1272]]= function(_0xf598x2,_0xf598x3){this[_0xff99[724]][_0xff99[1273]]= _0xf598x2;this[_0xff99[724]][_0xff99[1274]]= _0xf598x3};mxAbstractCanvas2D[_0xff99[202]][_0xff99[1275]]= function(){this[_0xff99[1218]]= this[_0xff99[1217]]= 0;this[_0xff99[1215]]= []};mxAbstractCanvas2D[_0xff99[202]][_0xff99[1276]]= function(_0xf598x2,_0xf598x3){this[_0xff99[1240]](this[_0xff99[1219]],_0xf598x2,_0xf598x3)};mxAbstractCanvas2D[_0xff99[202]][_0xff99[1277]]= function(_0xf598x2,_0xf598x3){this[_0xff99[1240]](this[_0xff99[1221]],_0xf598x2,_0xf598x3)};mxAbstractCanvas2D[_0xff99[202]][_0xff99[1278]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){this[_0xff99[1240]](this[_0xff99[1223]],_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5)};mxAbstractCanvas2D[_0xff99[202]][_0xff99[1279]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa){this[_0xff99[1240]](this[_0xff99[1225]],_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa)};mxAbstractCanvas2D[_0xff99[202]][_0xff99[1280]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa,_0xf598x12){_0xf598x2= mxUtils[_0xff99[1281]](this[_0xff99[1217]],this[_0xff99[1218]],_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa,_0xf598x12);for(_0xf598x3= 0;_0xf598x3< _0xf598x2[_0xff99[67]];_0xf598x3+= 6){this[_0xff99[1279]](_0xf598x2[_0xf598x3],_0xf598x2[_0xf598x3+ 1],_0xf598x2[_0xf598x3+ 2],_0xf598x2[_0xf598x3+ 3],_0xf598x2[_0xf598x3+ 4],_0xf598x2[_0xf598x3+ 5])}};mxAbstractCanvas2D[_0xff99[202]][_0xff99[268]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa){this[_0xff99[1240]](this[_0xff99[1227]])};mxAbstractCanvas2D[_0xff99[202]][_0xff99[1282]]= function(){};function mxXmlCanvas2D(_0xf598x2){mxAbstractCanvas2D[_0xff99[239]](this);this[_0xff99[813]]= _0xf598x2;this[_0xff99[1283]]()}mxUtils[_0xff99[1284]](mxXmlCanvas2D,mxAbstractCanvas2D);mxXmlCanvas2D[_0xff99[202]][_0xff99[1285]]= !0;mxXmlCanvas2D[_0xff99[202]][_0xff99[1286]]= !0;mxXmlCanvas2D[_0xff99[202]][_0xff99[1283]]= function(){var _0xf598x2;_0xf598x2= this[_0xff99[55]](_0xff99[1287]);_0xf598x2[_0xff99[57]](_0xff99[1288],mxConstants.DEFAULT_FONTFAMILY);this[_0xff99[813]][_0xff99[62]](_0xf598x2);_0xf598x2= this[_0xff99[55]](_0xff99[1289]);_0xf598x2[_0xff99[57]](_0xff99[803],mxConstants.DEFAULT_FONTSIZE);this[_0xff99[813]][_0xff99[62]](_0xf598x2);_0xf598x2= this[_0xff99[55]](_0xff99[1290]);_0xf598x2[_0xff99[57]](_0xff99[352],mxConstants.SHADOWCOLOR);this[_0xff99[813]][_0xff99[62]](_0xf598x2);_0xf598x2= this[_0xff99[55]](_0xff99[1291]);_0xf598x2[_0xff99[57]](_0xff99[1244],mxConstants.SHADOW_OPACITY);this[_0xff99[813]][_0xff99[62]](_0xf598x2);_0xf598x2= this[_0xff99[55]](_0xff99[1292]);_0xf598x2[_0xff99[57]](_0xff99[1126],mxConstants.SHADOW_OFFSET_X);_0xf598x2[_0xff99[57]](_0xff99[1125],mxConstants.SHADOW_OFFSET_Y);this[_0xff99[813]][_0xff99[62]](_0xf598x2)};mxXmlCanvas2D[_0xff99[202]][_0xff99[1239]]= function(_0xf598x2){return parseFloat(parseFloat(_0xf598x2)[_0xff99[1293]](2))};mxXmlCanvas2D[_0xff99[202]][_0xff99[55]]= function(_0xf598x2){return this[_0xff99[813]][_0xff99[295]][_0xff99[55]](_0xf598x2)};mxXmlCanvas2D[_0xff99[202]][_0xff99[815]]= function(){this[_0xff99[1286]]&& mxAbstractCanvas2D[_0xff99[202]][_0xff99[815]][_0xff99[183]](this,arguments);this[_0xff99[813]][_0xff99[62]](this[_0xff99[55]](_0xff99[815]))};mxXmlCanvas2D[_0xff99[202]][_0xff99[1210]]= function(){this[_0xff99[1286]]&& mxAbstractCanvas2D[_0xff99[202]][_0xff99[1210]][_0xff99[183]](this,arguments);this[_0xff99[813]][_0xff99[62]](this[_0xff99[55]](_0xff99[1210]))};mxXmlCanvas2D[_0xff99[202]][_0xff99[255]]= function(_0xf598x2){if(this[_0xff99[1286]]){if(this[_0xff99[724]][_0xff99[255]]== _0xf598x2){return};mxAbstractCanvas2D[_0xff99[202]][_0xff99[1243]][_0xff99[183]](this,arguments)};var _0xf598x3=this[_0xff99[55]](_0xff99[255]);_0xf598x3[_0xff99[57]](_0xff99[255],_0xf598x2);this[_0xff99[813]][_0xff99[62]](_0xf598x3)};mxXmlCanvas2D[_0xff99[202]][_0xff99[513]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=this[_0xff99[55]](_0xff99[513]);_0xf598x4[_0xff99[57]](_0xff99[1126],this[_0xff99[1239]](_0xf598x2));_0xf598x4[_0xff99[57]](_0xff99[1125],this[_0xff99[1239]](_0xf598x3));this[_0xff99[813]][_0xff99[62]](_0xf598x4)};mxXmlCanvas2D[_0xff99[202]][_0xff99[1294]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){var _0xf598xa=this[_0xff99[55]](_0xff99[1294]);if(0!= _0xf598x2|| _0xf598x3|| _0xf598x4){_0xf598xa[_0xff99[57]](_0xff99[1295],this[_0xff99[1239]](_0xf598x2)),_0xf598xa[_0xff99[57]](_0xff99[623],_0xf598x3?_0xff99[500]:_0xff99[468]),_0xf598xa[_0xff99[57]](_0xff99[624],_0xf598x4?_0xff99[500]:_0xff99[468]),_0xf598xa[_0xff99[57]](_0xff99[1296],this[_0xff99[1239]](_0xf598x5)),_0xf598xa[_0xff99[57]](_0xff99[1297],this[_0xff99[1239]](_0xf598x9)),this[_0xff99[813]][_0xff99[62]](_0xf598xa)}};mxXmlCanvas2D[_0xff99[202]][_0xff99[1243]]= function(_0xf598x2){if(this[_0xff99[1286]]){if(this[_0xff99[724]][_0xff99[1244]]== _0xf598x2){return};mxAbstractCanvas2D[_0xff99[202]][_0xff99[1243]][_0xff99[183]](this,arguments)};var _0xf598x3=this[_0xff99[55]](_0xff99[1244]);_0xf598x3[_0xff99[57]](_0xff99[1244],this[_0xff99[1239]](_0xf598x2));this[_0xff99[813]][_0xff99[62]](_0xf598x3)};mxXmlCanvas2D[_0xff99[202]][_0xff99[1245]]= function(_0xf598x2){_0xf598x2== mxConstants[_0xff99[217]]&& (_0xf598x2= null);if(this[_0xff99[1286]]){if(this[_0xff99[724]][_0xff99[604]]== _0xf598x2){return};mxAbstractCanvas2D[_0xff99[202]][_0xff99[1245]][_0xff99[183]](this,arguments)};var _0xf598x3=this[_0xff99[55]](_0xff99[1298]);_0xf598x3[_0xff99[57]](_0xff99[352],null!= _0xf598x2?_0xf598x2:mxConstants[_0xff99[217]]);this[_0xff99[813]][_0xff99[62]](_0xf598x3)};mxXmlCanvas2D[_0xff99[202]][_0xff99[1246]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa,_0xf598x12,_0xf598x13,_0xf598x14){if(null!= _0xf598x2&& null!= _0xf598x3){mxAbstractCanvas2D[_0xff99[202]][_0xff99[1246]][_0xff99[183]](this,arguments);var _0xf598x15=this[_0xff99[55]](_0xff99[1299]);_0xf598x15[_0xff99[57]](_0xff99[1300],_0xf598x2);_0xf598x15[_0xff99[57]](_0xff99[1301],_0xf598x3);_0xf598x15[_0xff99[57]](_0xff99[235],this[_0xff99[1239]](_0xf598x4));_0xf598x15[_0xff99[57]](_0xff99[236],this[_0xff99[1239]](_0xf598x5));_0xf598x15[_0xff99[57]](_0xff99[1302],this[_0xff99[1239]](_0xf598x9));_0xf598x15[_0xff99[57]](_0xff99[1303],this[_0xff99[1239]](_0xf598xa));null!= _0xf598x12&& _0xf598x15[_0xff99[57]](_0xff99[663],_0xf598x12);null!= _0xf598x13&& _0xf598x15[_0xff99[57]](_0xff99[1304],_0xf598x13);null!= _0xf598x14&& _0xf598x15[_0xff99[57]](_0xff99[1305],_0xf598x14);this[_0xff99[813]][_0xff99[62]](_0xf598x15)}};mxXmlCanvas2D[_0xff99[202]][_0xff99[1249]]= function(_0xf598x2){_0xf598x2== mxConstants[_0xff99[217]]&& (_0xf598x2= null);if(this[_0xff99[1286]]){if(this[_0xff99[724]][_0xff99[608]]== _0xf598x2){return};mxAbstractCanvas2D[_0xff99[202]][_0xff99[1249]][_0xff99[183]](this,arguments)};var _0xf598x3=this[_0xff99[55]](_0xff99[1306]);_0xf598x3[_0xff99[57]](_0xff99[352],null!= _0xf598x2?_0xf598x2:mxConstants[_0xff99[217]]);this[_0xff99[813]][_0xff99[62]](_0xf598x3)};mxXmlCanvas2D[_0xff99[202]][_0xff99[1250]]= function(_0xf598x2){if(this[_0xff99[1286]]){if(this[_0xff99[724]][_0xff99[610]]== _0xf598x2){return};mxAbstractCanvas2D[_0xff99[202]][_0xff99[1250]][_0xff99[183]](this,arguments)};var _0xf598x3=this[_0xff99[55]](_0xff99[1307]);_0xf598x3[_0xff99[57]](_0xff99[117],this[_0xff99[1239]](_0xf598x2));this[_0xff99[813]][_0xff99[62]](_0xf598x3)};mxXmlCanvas2D[_0xff99[202]][_0xff99[1251]]= function(_0xf598x2){if(this[_0xff99[1286]]){if(this[_0xff99[724]][_0xff99[648]]== _0xf598x2){return};mxAbstractCanvas2D[_0xff99[202]][_0xff99[1251]][_0xff99[183]](this,arguments)};var _0xf598x3=this[_0xff99[55]](_0xff99[648]);_0xf598x3[_0xff99[57]](_0xff99[648],_0xf598x2?_0xff99[500]:_0xff99[468]);this[_0xff99[813]][_0xff99[62]](_0xf598x3)};mxXmlCanvas2D[_0xff99[202]][_0xff99[1252]]= function(_0xf598x2){if(this[_0xff99[1286]]){if(this[_0xff99[724]][_0xff99[649]]== _0xf598x2){return};mxAbstractCanvas2D[_0xff99[202]][_0xff99[1252]][_0xff99[183]](this,arguments)};var _0xf598x3=this[_0xff99[55]](_0xff99[1308]);_0xf598x3[_0xff99[57]](_0xff99[1309],_0xf598x2);this[_0xff99[813]][_0xff99[62]](_0xf598x3)};mxXmlCanvas2D[_0xff99[202]][_0xff99[1253]]= function(_0xf598x2){if(this[_0xff99[1286]]){if(this[_0xff99[724]][_0xff99[1254]]== _0xf598x2){return};mxAbstractCanvas2D[_0xff99[202]][_0xff99[1253]][_0xff99[183]](this,arguments)};var _0xf598x3=this[_0xff99[55]](_0xff99[1310]);_0xf598x3[_0xff99[57]](_0xff99[1311],_0xf598x2);this[_0xff99[813]][_0xff99[62]](_0xf598x3)};mxXmlCanvas2D[_0xff99[202]][_0xff99[1255]]= function(_0xf598x2){if(this[_0xff99[1286]]){if(this[_0xff99[724]][_0xff99[1256]]== _0xf598x2){return};mxAbstractCanvas2D[_0xff99[202]][_0xff99[1255]][_0xff99[183]](this,arguments)};var _0xf598x3=this[_0xff99[55]](_0xff99[1312]);_0xf598x3[_0xff99[57]](_0xff99[234],_0xf598x2);this[_0xff99[813]][_0xff99[62]](_0xf598x3)};mxXmlCanvas2D[_0xff99[202]][_0xff99[1257]]= function(_0xf598x2){if(this[_0xff99[1286]]){if(this[_0xff99[724]][_0xff99[1258]]== _0xf598x2){return};mxAbstractCanvas2D[_0xff99[202]][_0xff99[1257]][_0xff99[183]](this,arguments)};var _0xf598x3=this[_0xff99[55]](_0xff99[1313]);_0xf598x3[_0xff99[57]](_0xff99[1314],_0xf598x2);this[_0xff99[813]][_0xff99[62]](_0xf598x3)};mxXmlCanvas2D[_0xff99[202]][_0xff99[1259]]= function(_0xf598x2){if(this[_0xff99[1285]]){_0xf598x2== mxConstants[_0xff99[217]]&& (_0xf598x2= null);if(this[_0xff99[1286]]){if(this[_0xff99[724]][_0xff99[665]]== _0xf598x2){return};mxAbstractCanvas2D[_0xff99[202]][_0xff99[1259]][_0xff99[183]](this,arguments)};var _0xf598x3=this[_0xff99[55]](_0xff99[1315]);_0xf598x3[_0xff99[57]](_0xff99[352],null!= _0xf598x2?_0xf598x2:mxConstants[_0xff99[217]]);this[_0xff99[813]][_0xff99[62]](_0xf598x3)}};mxXmlCanvas2D[_0xff99[202]][_0xff99[1260]]= function(_0xf598x2){if(this[_0xff99[1285]]){_0xf598x2== mxConstants[_0xff99[217]]&& (_0xf598x2= null);if(this[_0xff99[1286]]){if(this[_0xff99[724]][_0xff99[1261]]== _0xf598x2){return};mxAbstractCanvas2D[_0xff99[202]][_0xff99[1260]][_0xff99[183]](this,arguments)};var _0xf598x3=this[_0xff99[55]](_0xff99[1316]);_0xf598x3[_0xff99[57]](_0xff99[352],null!= _0xf598x2?_0xf598x2:mxConstants[_0xff99[217]]);this[_0xff99[813]][_0xff99[62]](_0xf598x3)}};mxXmlCanvas2D[_0xff99[202]][_0xff99[1262]]= function(_0xf598x2){if(this[_0xff99[1285]]){_0xf598x2== mxConstants[_0xff99[217]]&& (_0xf598x2= null);if(this[_0xff99[1286]]){if(this[_0xff99[724]][_0xff99[1263]]== _0xf598x2){return};mxAbstractCanvas2D[_0xff99[202]][_0xff99[1262]][_0xff99[183]](this,arguments)};var _0xf598x3=this[_0xff99[55]](_0xff99[1317]);_0xf598x3[_0xff99[57]](_0xff99[352],null!= _0xf598x2?_0xf598x2:mxConstants[_0xff99[217]]);this[_0xff99[813]][_0xff99[62]](_0xf598x3)}};mxXmlCanvas2D[_0xff99[202]][_0xff99[1264]]= function(_0xf598x2){if(this[_0xff99[1285]]){if(this[_0xff99[1286]]){if(this[_0xff99[724]][_0xff99[487]]== _0xf598x2){return};mxAbstractCanvas2D[_0xff99[202]][_0xff99[1264]][_0xff99[183]](this,arguments)};var _0xf598x3=this[_0xff99[55]](_0xff99[1289]);_0xf598x3[_0xff99[57]](_0xff99[803],_0xf598x2);this[_0xff99[813]][_0xff99[62]](_0xf598x3)}};mxXmlCanvas2D[_0xff99[202]][_0xff99[1265]]= function(_0xf598x2){if(this[_0xff99[1285]]){if(this[_0xff99[1286]]){if(this[_0xff99[724]][_0xff99[486]]== _0xf598x2){return};mxAbstractCanvas2D[_0xff99[202]][_0xff99[1265]][_0xff99[183]](this,arguments)};var _0xf598x3=this[_0xff99[55]](_0xff99[1287]);_0xf598x3[_0xff99[57]](_0xff99[1288],_0xf598x2);this[_0xff99[813]][_0xff99[62]](_0xf598x3)}};mxXmlCanvas2D[_0xff99[202]][_0xff99[1266]]= function(_0xf598x2){if(this[_0xff99[1285]]){null== _0xf598x2&& (_0xf598x2= 0);if(this[_0xff99[1286]]){if(this[_0xff99[724]][_0xff99[666]]== _0xf598x2){return};mxAbstractCanvas2D[_0xff99[202]][_0xff99[1266]][_0xff99[183]](this,arguments)};var _0xf598x3=this[_0xff99[55]](_0xff99[1318]);_0xf598x3[_0xff99[57]](_0xff99[124],_0xf598x2);this[_0xff99[813]][_0xff99[62]](_0xf598x3)}};mxXmlCanvas2D[_0xff99[202]][_0xff99[1267]]= function(_0xf598x2){if(this[_0xff99[1286]]){if(this[_0xff99[724]][_0xff99[639]]== _0xf598x2){return};mxAbstractCanvas2D[_0xff99[202]][_0xff99[1267]][_0xff99[183]](this,arguments)};var _0xf598x3=this[_0xff99[55]](_0xff99[639]);_0xf598x3[_0xff99[57]](_0xff99[984],_0xf598x2?_0xff99[500]:_0xff99[468]);this[_0xff99[813]][_0xff99[62]](_0xf598x3)};mxXmlCanvas2D[_0xff99[202]][_0xff99[1268]]= function(_0xf598x2){if(this[_0xff99[1286]]){_0xf598x2== mxConstants[_0xff99[217]]&& (_0xf598x2= null);if(this[_0xff99[724]][_0xff99[1269]]== _0xf598x2){return};mxAbstractCanvas2D[_0xff99[202]][_0xff99[1268]][_0xff99[183]](this,arguments)};var _0xf598x3=this[_0xff99[55]](_0xff99[1290]);_0xf598x3[_0xff99[57]](_0xff99[352],null!= _0xf598x2?_0xf598x2:mxConstants[_0xff99[217]]);this[_0xff99[813]][_0xff99[62]](_0xf598x3)};mxXmlCanvas2D[_0xff99[202]][_0xff99[1270]]= function(_0xf598x2){if(this[_0xff99[1286]]){if(this[_0xff99[724]][_0xff99[1271]]== _0xf598x2){return};mxAbstractCanvas2D[_0xff99[202]][_0xff99[1270]][_0xff99[183]](this,arguments)};var _0xf598x3=this[_0xff99[55]](_0xff99[1291]);_0xf598x3[_0xff99[57]](_0xff99[1244],_0xf598x2);this[_0xff99[813]][_0xff99[62]](_0xf598x3)};mxXmlCanvas2D[_0xff99[202]][_0xff99[1272]]= function(_0xf598x2,_0xf598x3){if(this[_0xff99[1286]]){if(this[_0xff99[724]][_0xff99[1273]]== _0xf598x2&& this[_0xff99[724]][_0xff99[1274]]== _0xf598x3){return};mxAbstractCanvas2D[_0xff99[202]][_0xff99[1272]][_0xff99[183]](this,arguments)};var _0xf598x4=this[_0xff99[55]](_0xff99[1292]);_0xf598x4[_0xff99[57]](_0xff99[1126],_0xf598x2);_0xf598x4[_0xff99[57]](_0xff99[1125],_0xf598x3);this[_0xff99[813]][_0xff99[62]](_0xf598x4)};mxXmlCanvas2D[_0xff99[202]][_0xff99[1319]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){var _0xf598x9=this[_0xff99[55]](_0xff99[1319]);_0xf598x9[_0xff99[57]](_0xff99[235],this[_0xff99[1239]](_0xf598x2));_0xf598x9[_0xff99[57]](_0xff99[236],this[_0xff99[1239]](_0xf598x3));_0xf598x9[_0xff99[57]](_0xff99[1302],this[_0xff99[1239]](_0xf598x4));_0xf598x9[_0xff99[57]](_0xff99[1303],this[_0xff99[1239]](_0xf598x5));this[_0xff99[813]][_0xff99[62]](_0xf598x9)};mxXmlCanvas2D[_0xff99[202]][_0xff99[1320]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa){var _0xf598x12=this[_0xff99[55]](_0xff99[1320]);_0xf598x12[_0xff99[57]](_0xff99[235],this[_0xff99[1239]](_0xf598x2));_0xf598x12[_0xff99[57]](_0xff99[236],this[_0xff99[1239]](_0xf598x3));_0xf598x12[_0xff99[57]](_0xff99[1302],this[_0xff99[1239]](_0xf598x4));_0xf598x12[_0xff99[57]](_0xff99[1303],this[_0xff99[1239]](_0xf598x5));_0xf598x12[_0xff99[57]](_0xff99[1126],this[_0xff99[1239]](_0xf598x9));_0xf598x12[_0xff99[57]](_0xff99[1125],this[_0xff99[1239]](_0xf598xa));this[_0xff99[813]][_0xff99[62]](_0xf598x12)};mxXmlCanvas2D[_0xff99[202]][_0xff99[680]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){var _0xf598x9=this[_0xff99[55]](_0xff99[680]);_0xf598x9[_0xff99[57]](_0xff99[235],this[_0xff99[1239]](_0xf598x2));_0xf598x9[_0xff99[57]](_0xff99[236],this[_0xff99[1239]](_0xf598x3));_0xf598x9[_0xff99[57]](_0xff99[1302],this[_0xff99[1239]](_0xf598x4));_0xf598x9[_0xff99[57]](_0xff99[1303],this[_0xff99[1239]](_0xf598x5));this[_0xff99[813]][_0xff99[62]](_0xf598x9)};mxXmlCanvas2D[_0xff99[202]][_0xff99[618]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa,_0xf598x12,_0xf598x13){_0xf598x9= this[_0xff99[1212]][_0xff99[1321]](_0xf598x9);var _0xf598x14=this[_0xff99[55]](_0xff99[618]);_0xf598x14[_0xff99[57]](_0xff99[235],this[_0xff99[1239]](_0xf598x2));_0xf598x14[_0xff99[57]](_0xff99[236],this[_0xff99[1239]](_0xf598x3));_0xf598x14[_0xff99[57]](_0xff99[1302],this[_0xff99[1239]](_0xf598x4));_0xf598x14[_0xff99[57]](_0xff99[1303],this[_0xff99[1239]](_0xf598x5));_0xf598x14[_0xff99[57]](_0xff99[390],_0xf598x9);_0xf598x14[_0xff99[57]](_0xff99[1322],_0xf598xa?_0xff99[500]:_0xff99[468]);_0xf598x14[_0xff99[57]](_0xff99[623],_0xf598x12?_0xff99[500]:_0xff99[468]);_0xf598x14[_0xff99[57]](_0xff99[624],_0xf598x13?_0xff99[500]:_0xff99[468]);this[_0xff99[813]][_0xff99[62]](_0xf598x14)};mxXmlCanvas2D[_0xff99[202]][_0xff99[1275]]= function(){this[_0xff99[813]][_0xff99[62]](this[_0xff99[55]](_0xff99[1275]));this[_0xff99[1218]]= this[_0xff99[1217]]= 0};mxXmlCanvas2D[_0xff99[202]][_0xff99[1276]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=this[_0xff99[55]](_0xff99[582]);_0xf598x4[_0xff99[57]](_0xff99[235],this[_0xff99[1239]](_0xf598x2));_0xf598x4[_0xff99[57]](_0xff99[236],this[_0xff99[1239]](_0xf598x3));this[_0xff99[813]][_0xff99[62]](_0xf598x4);this[_0xff99[1217]]= _0xf598x2;this[_0xff99[1218]]= _0xf598x3};mxXmlCanvas2D[_0xff99[202]][_0xff99[1277]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=this[_0xff99[55]](_0xff99[683]);_0xf598x4[_0xff99[57]](_0xff99[235],this[_0xff99[1239]](_0xf598x2));_0xf598x4[_0xff99[57]](_0xff99[236],this[_0xff99[1239]](_0xf598x3));this[_0xff99[813]][_0xff99[62]](_0xf598x4);this[_0xff99[1217]]= _0xf598x2;this[_0xff99[1218]]= _0xf598x3};mxXmlCanvas2D[_0xff99[202]][_0xff99[1278]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){var _0xf598x9=this[_0xff99[55]](_0xff99[1323]);_0xf598x9[_0xff99[57]](_0xff99[1324],this[_0xff99[1239]](_0xf598x2));_0xf598x9[_0xff99[57]](_0xff99[1325],this[_0xff99[1239]](_0xf598x3));_0xf598x9[_0xff99[57]](_0xff99[1326],this[_0xff99[1239]](_0xf598x4));_0xf598x9[_0xff99[57]](_0xff99[1327],this[_0xff99[1239]](_0xf598x5));this[_0xff99[813]][_0xff99[62]](_0xf598x9);this[_0xff99[1217]]= _0xf598x4;this[_0xff99[1218]]= _0xf598x5};mxXmlCanvas2D[_0xff99[202]][_0xff99[1279]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa){var _0xf598x12=this[_0xff99[55]](_0xff99[1328]);_0xf598x12[_0xff99[57]](_0xff99[1324],this[_0xff99[1239]](_0xf598x2));_0xf598x12[_0xff99[57]](_0xff99[1325],this[_0xff99[1239]](_0xf598x3));_0xf598x12[_0xff99[57]](_0xff99[1326],this[_0xff99[1239]](_0xf598x4));_0xf598x12[_0xff99[57]](_0xff99[1327],this[_0xff99[1239]](_0xf598x5));_0xf598x12[_0xff99[57]](_0xff99[1329],this[_0xff99[1239]](_0xf598x9));_0xf598x12[_0xff99[57]](_0xff99[1330],this[_0xff99[1239]](_0xf598xa));this[_0xff99[813]][_0xff99[62]](_0xf598x12);this[_0xff99[1217]]= _0xf598x9;this[_0xff99[1218]]= _0xf598xa};mxXmlCanvas2D[_0xff99[202]][_0xff99[268]]= function(){this[_0xff99[813]][_0xff99[62]](this[_0xff99[55]](_0xff99[268]))};mxXmlCanvas2D[_0xff99[202]][_0xff99[963]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa,_0xf598x12,_0xf598x13,_0xf598x14,_0xf598x15,_0xf598x16,_0xf598x17){if(this[_0xff99[1285]]&& null!= _0xf598x9){mxUtils[_0xff99[1331]](_0xf598x9)&& (_0xf598x9= mxUtils[_0xff99[532]](_0xf598x9));var _0xf598x18=this[_0xff99[55]](_0xff99[963]);_0xf598x18[_0xff99[57]](_0xff99[235],this[_0xff99[1239]](_0xf598x2));_0xf598x18[_0xff99[57]](_0xff99[236],this[_0xff99[1239]](_0xf598x3));_0xf598x18[_0xff99[57]](_0xff99[1302],this[_0xff99[1239]](_0xf598x4));_0xf598x18[_0xff99[57]](_0xff99[1303],this[_0xff99[1239]](_0xf598x5));_0xf598x18[_0xff99[57]](_0xff99[1332],_0xf598x9);null!= _0xf598xa&& _0xf598x18[_0xff99[57]](_0xff99[611],_0xf598xa);null!= _0xf598x12&& _0xf598x18[_0xff99[57]](_0xff99[552],_0xf598x12);_0xf598x18[_0xff99[57]](_0xff99[1333],_0xf598x13?_0xff99[500]:_0xff99[468]);null== _0xf598x14&& (_0xf598x14= _0xff99[110]);_0xf598x18[_0xff99[57]](_0xff99[1239],_0xf598x14);null!= _0xf598x15&& _0xf598x18[_0xff99[57]](_0xff99[1334],_0xf598x15?_0xff99[500]:_0xff99[468]);null!= _0xf598x16&& _0xf598x18[_0xff99[57]](_0xff99[1335],_0xf598x16?_0xff99[500]:_0xff99[468]);null!= _0xf598x17&& _0xf598x18[_0xff99[57]](_0xff99[603],_0xf598x17);this[_0xff99[813]][_0xff99[62]](_0xf598x18)}};mxXmlCanvas2D[_0xff99[202]][_0xff99[1336]]= function(){this[_0xff99[813]][_0xff99[62]](this[_0xff99[55]](_0xff99[1336]))};mxXmlCanvas2D[_0xff99[202]][_0xff99[1334]]= function(){this[_0xff99[813]][_0xff99[62]](this[_0xff99[55]](_0xff99[1334]))};mxXmlCanvas2D[_0xff99[202]][_0xff99[1337]]= function(){this[_0xff99[813]][_0xff99[62]](this[_0xff99[55]](_0xff99[1338]))};function mxSvgCanvas2D(_0xf598x2,_0xf598x3){mxAbstractCanvas2D[_0xff99[239]](this);this[_0xff99[813]]= _0xf598x2;this[_0xff99[1339]]= [];this[_0xff99[1340]]= null;this[_0xff99[1341]]= null!= _0xf598x3?_0xf598x3:!1;var _0xf598x4=null;if(_0xf598x2[_0xff99[295]]!= document){for(_0xf598x4= _0xf598x2;null!= _0xf598x4&& _0xff99[571]!= _0xf598x4[_0xff99[301]];){_0xf598x4= _0xf598x4[_0xff99[265]]}};null!= _0xf598x4&& (0< _0xf598x4[_0xff99[64]](_0xff99[1340])[_0xff99[67]]&& (this[_0xff99[1340]]= _0xf598x4[_0xff99[64]](_0xff99[1340])[0]),null== this[_0xff99[1340]]&& (this[_0xff99[1340]]= this[_0xff99[55]](_0xff99[1340]),null!= _0xf598x4[_0xff99[285]]?_0xf598x4[_0xff99[950]](this[_0xff99[1340]],_0xf598x4[_0xff99[285]]):_0xf598x4[_0xff99[62]](this[_0xff99[1340]])),this[_0xff99[1341]]&& this[_0xff99[1340]][_0xff99[62]](this[_0xff99[1342]]()))}mxUtils[_0xff99[1284]](mxSvgCanvas2D,mxAbstractCanvas2D);mxSvgCanvas2D[_0xff99[202]][_0xff99[252]]= null;mxSvgCanvas2D[_0xff99[202]][_0xff99[1343]]= !0;mxSvgCanvas2D[_0xff99[202]][_0xff99[1285]]= !0;mxSvgCanvas2D[_0xff99[202]][_0xff99[1344]]= !0;mxSvgCanvas2D[_0xff99[202]][_0xff99[1345]]= 0;mxSvgCanvas2D[_0xff99[202]][_0xff99[1346]]= 0;mxSvgCanvas2D[_0xff99[202]][_0xff99[1347]]= !1;mxSvgCanvas2D[_0xff99[202]][_0xff99[862]]= function(){mxAbstractCanvas2D[_0xff99[202]][_0xff99[862]][_0xff99[183]](this,arguments);this[_0xff99[1339]]= []};mxSvgCanvas2D[_0xff99[202]][_0xff99[1342]]= function(_0xf598x2){_0xf598x2= this[_0xff99[55]](_0xff99[124]);_0xf598x2[_0xff99[57]](_0xff99[60],_0xff99[61]);mxUtils[_0xff99[53]](_0xf598x2,_0xff99[1348]+ mxConstants[_0xff99[484]]+ _0xff99[1349]+ mxConstants[_0xff99[483]]+ _0xff99[1350]);return _0xf598x2};mxSvgCanvas2D[_0xff99[202]][_0xff99[55]]= function(_0xf598x2,_0xf598x3){if(null!= this[_0xff99[813]][_0xff99[295]][_0xff99[509]]){return this[_0xff99[813]][_0xff99[295]][_0xff99[509]](_0xf598x3|| mxConstants[_0xff99[1351]],_0xf598x2)};var _0xf598x4=this[_0xff99[813]][_0xff99[295]][_0xff99[55]](_0xf598x2);null!= _0xf598x3&& _0xf598x4[_0xff99[57]](_0xff99[1352],_0xf598x3);return _0xf598x4};mxSvgCanvas2D[_0xff99[202]][_0xff99[1353]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){_0xff99[198]== _0xf598x2[_0xff99[225]](0)&& (_0xf598x2= _0xf598x2[_0xff99[85]](1));_0xff99[198]== _0xf598x3[_0xff99[225]](0)&& (_0xf598x3= _0xf598x3[_0xff99[85]](1));_0xf598x2= _0xf598x2[_0xff99[216]]()+ _0xff99[213]+ _0xf598x4;_0xf598x3= _0xf598x3[_0xff99[216]]()+ _0xff99[213]+ _0xf598x5;_0xf598x4= null;null== _0xf598x9|| _0xf598x9== mxConstants[_0xff99[1354]]?_0xf598x4= _0xff99[1355]:_0xf598x9== mxConstants[_0xff99[1356]]?_0xf598x4= _0xff99[1357]:(_0xf598x5= _0xf598x2,_0xf598x2= _0xf598x3,_0xf598x3= _0xf598x5,_0xf598x9== mxConstants[_0xff99[1358]]?_0xf598x4= _0xff99[1355]:_0xf598x9== mxConstants[_0xff99[1359]]&& (_0xf598x4= _0xff99[1357]));return _0xff99[1360]+ _0xf598x2+ _0xff99[213]+ _0xf598x3+ _0xff99[213]+ _0xf598x4};mxSvgCanvas2D[_0xff99[202]][_0xff99[1361]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){var _0xf598xa=this[_0xff99[1353]](_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9),_0xf598x12=this[_0xff99[1339]][_0xf598xa];if(null== _0xf598x12){var _0xf598x13=this[_0xff99[813]][_0xff99[538]],_0xf598x14=0,_0xf598x15=_0xf598xa+ _0xff99[213]+ _0xf598x14;if(null!= _0xf598x13){for(_0xf598x12= _0xf598x13[_0xff99[295]][_0xff99[1362]](_0xf598x15);null!= _0xf598x12&& _0xf598x12[_0xff99[538]]!= _0xf598x13;){_0xf598x15= _0xf598xa+ _0xff99[213]+ _0xf598x14++,_0xf598x12= _0xf598x13[_0xff99[295]][_0xff99[1362]](_0xf598x15)}}else {_0xf598x15= _0xff99[1363]+ ++this[_0xff99[1346]]};null== _0xf598x12&& (_0xf598x12= this[_0xff99[1364]](_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9),_0xf598x12[_0xff99[57]](_0xff99[1363],_0xf598x15),null!= this[_0xff99[1340]]?this[_0xff99[1340]][_0xff99[62]](_0xf598x12):_0xf598x13[_0xff99[62]](_0xf598x12));this[_0xff99[1339]][_0xf598xa]= _0xf598x12};return _0xf598x12[_0xff99[284]](_0xff99[1363])};mxSvgCanvas2D[_0xff99[202]][_0xff99[1364]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){var _0xf598xa=this[_0xff99[55]](_0xff99[1365]);_0xf598xa[_0xff99[57]](_0xff99[1324],_0xff99[1366]);_0xf598xa[_0xff99[57]](_0xff99[1325],_0xff99[1366]);_0xf598xa[_0xff99[57]](_0xff99[1326],_0xff99[1366]);_0xf598xa[_0xff99[57]](_0xff99[1327],_0xff99[1366]);null== _0xf598x9|| _0xf598x9== mxConstants[_0xff99[1354]]?_0xf598xa[_0xff99[57]](_0xff99[1327],_0xff99[118]):_0xf598x9== mxConstants[_0xff99[1356]]?_0xf598xa[_0xff99[57]](_0xff99[1326],_0xff99[118]):_0xf598x9== mxConstants[_0xff99[1358]]?_0xf598xa[_0xff99[57]](_0xff99[1325],_0xff99[118]):_0xf598x9== mxConstants[_0xff99[1359]]&& _0xf598xa[_0xff99[57]](_0xff99[1324],_0xff99[118]);_0xf598x4= 1> _0xf598x4?_0xff99[1367]+ _0xf598x4:_0xff99[110];_0xf598x9= this[_0xff99[55]](_0xff99[1076]);_0xf598x9[_0xff99[57]](_0xff99[1368],_0xff99[1366]);_0xf598x9[_0xff99[57]](_0xff99[124],_0xff99[1369]+ _0xf598x2+ _0xf598x4);_0xf598xa[_0xff99[62]](_0xf598x9);_0xf598x4= 1> _0xf598x5?_0xff99[1367]+ _0xf598x5:_0xff99[110];_0xf598x9= this[_0xff99[55]](_0xff99[1076]);_0xf598x9[_0xff99[57]](_0xff99[1368],_0xff99[118]);_0xf598x9[_0xff99[57]](_0xff99[124],_0xff99[1369]+ _0xf598x3+ _0xf598x4);_0xf598xa[_0xff99[62]](_0xf598x9);return _0xf598xa};mxSvgCanvas2D[_0xff99[202]][_0xff99[1370]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=this[_0xff99[252]],_0xf598x5=this[_0xff99[724]];if(null!= _0xf598x4){if(_0xff99[1215]== _0xf598x4[_0xff99[301]]){if(null!= this[_0xff99[1215]]&& 0< this[_0xff99[1215]][_0xff99[67]]){_0xf598x4[_0xff99[57]](_0xff99[1371],this[_0xff99[1215]][_0xff99[234]](_0xff99[185]))}else {return}};_0xf598x2&& null!= _0xf598x5[_0xff99[604]]?this[_0xff99[1372]]():this[_0xff99[1341]]|| (_0xff99[680]== _0xf598x4[_0xff99[301]]&& mxClient[_0xff99[133]]&& !mxClient[_0xff99[76]]&& !mxClient[_0xff99[75]]?_0xf598x4[_0xff99[57]](_0xff99[1334],_0xff99[1373]):_0xf598x4[_0xff99[57]](_0xff99[1334],_0xff99[130]),_0xf598x2= !1);_0xf598x3&& null!= _0xf598x5[_0xff99[608]]?this[_0xff99[1374]]():this[_0xff99[1341]]|| _0xf598x4[_0xff99[57]](_0xff99[1336],_0xff99[130]);null!= _0xf598x5[_0xff99[535]]&& 0< _0xf598x5[_0xff99[535]][_0xff99[67]]&& _0xf598x4[_0xff99[57]](_0xff99[535],_0xf598x5[_0xff99[535]]);_0xf598x5[_0xff99[639]]&& this[_0xff99[813]][_0xff99[62]](this[_0xff99[1375]](_0xf598x4));0< this[_0xff99[1345]]&& !_0xf598x2&& this[_0xff99[813]][_0xff99[62]](this[_0xff99[1376]](_0xf598x4));this[_0xff99[1229]]&& (_0xff99[1215]!= _0xf598x4[_0xff99[301]]|| this[_0xff99[1215]][this[_0xff99[1215]][_0xff99[67]]- 1]== this[_0xff99[1227]])&& _0xf598x4[_0xff99[57]](_0xff99[1377],_0xff99[1378]);this[_0xff99[813]][_0xff99[62]](_0xf598x4)}};mxSvgCanvas2D[_0xff99[202]][_0xff99[1372]]= function(){var _0xf598x2=this[_0xff99[724]];1> _0xf598x2[_0xff99[1244]]&& this[_0xff99[252]][_0xff99[57]](_0xff99[1379],_0xf598x2[_0xff99[1244]]);null!= _0xf598x2[_0xff99[604]]&& (null!= _0xf598x2[_0xff99[606]]?(_0xf598x2= this[_0xff99[1361]](_0xf598x2[_0xff99[604]],_0xf598x2[_0xff99[606]],_0xf598x2[_0xff99[1247]],_0xf598x2[_0xff99[1248]],_0xf598x2[_0xff99[607]]),this[_0xff99[252]][_0xff99[57]](_0xff99[1334],_0xff99[1380]+ _0xf598x2+ _0xff99[460])):this[_0xff99[252]][_0xff99[57]](_0xff99[1334],_0xf598x2[_0xff99[604]][_0xff99[216]]()))};mxSvgCanvas2D[_0xff99[202]][_0xff99[1374]]= function(){var _0xf598x2=this[_0xff99[724]];this[_0xff99[252]][_0xff99[57]](_0xff99[1336],_0xf598x2[_0xff99[608]][_0xff99[216]]());1> _0xf598x2[_0xff99[1244]]&& this[_0xff99[252]][_0xff99[57]](_0xff99[1381],_0xf598x2[_0xff99[1244]]);var _0xf598x3=Math[_0xff99[160]](1,this[_0xff99[1239]](_0xf598x2[_0xff99[610]]* _0xf598x2[_0xff99[255]]));1!= _0xf598x3&& this[_0xff99[252]][_0xff99[57]](_0xff99[1382],_0xf598x3);_0xff99[1215]== this[_0xff99[252]][_0xff99[301]]&& this[_0xff99[1383]]();_0xf598x2[_0xff99[648]]&& this[_0xff99[252]][_0xff99[57]](_0xff99[1384],this[_0xff99[1385]](_0xf598x3))};mxSvgCanvas2D[_0xff99[202]][_0xff99[1383]]= function(){var _0xf598x2=this[_0xff99[724]];null!= _0xf598x2[_0xff99[1256]]&& _0xff99[1233]!= _0xf598x2[_0xff99[1256]]&& this[_0xff99[252]][_0xff99[57]](_0xff99[1386],_0xf598x2[_0xff99[1256]]);if(null!= _0xf598x2[_0xff99[1254]]){var _0xf598x3=_0xf598x2[_0xff99[1254]];_0xff99[1232]== _0xf598x3&& (_0xf598x3= _0xff99[1387]);_0xff99[1387]!= _0xf598x3&& this[_0xff99[252]][_0xff99[57]](_0xff99[1388],_0xf598x3)};null!= _0xf598x2[_0xff99[1258]]&& (!this[_0xff99[1341]]|| 10!= _0xf598x2[_0xff99[1258]])&& this[_0xff99[252]][_0xff99[57]](_0xff99[1389],_0xf598x2[_0xff99[1258]])};mxSvgCanvas2D[_0xff99[202]][_0xff99[1385]]= function(_0xf598x2){var _0xf598x3=this[_0xff99[724]][_0xff99[649]][_0xff99[224]](_0xff99[185]),_0xf598x4=[];if(0< _0xf598x3[_0xff99[67]]){for(var _0xf598x5=0;_0xf598x5< _0xf598x3[_0xff99[67]];_0xf598x5++){_0xf598x4[_0xf598x5]= Number(_0xf598x3[_0xf598x5])* _0xf598x2}};return _0xf598x4[_0xff99[234]](_0xff99[185])};mxSvgCanvas2D[_0xff99[202]][_0xff99[1376]]= function(_0xf598x2){_0xf598x2= _0xf598x2[_0xff99[511]](!0);var _0xf598x3=parseFloat(_0xf598x2[_0xff99[284]](_0xff99[1382])|| 1)+ this[_0xff99[1345]];_0xf598x2[_0xff99[57]](_0xff99[1377],_0xff99[1336]);_0xf598x2[_0xff99[57]](_0xff99[187],_0xff99[188]);_0xf598x2[_0xff99[1390]](_0xff99[1384]);_0xf598x2[_0xff99[57]](_0xff99[1382],_0xf598x3);_0xf598x2[_0xff99[57]](_0xff99[1334],_0xff99[130]);_0xf598x2[_0xff99[57]](_0xff99[1336],mxClient[_0xff99[71]]?_0xff99[130]:_0xff99[1391]);return _0xf598x2};mxSvgCanvas2D[_0xff99[202]][_0xff99[1375]]= function(_0xf598x2){_0xf598x2= _0xf598x2[_0xff99[511]](!0);var _0xf598x3=this[_0xff99[724]];_0xff99[130]!= _0xf598x2[_0xff99[284]](_0xff99[1334])&& _0xf598x2[_0xff99[57]](_0xff99[1334],_0xf598x3[_0xff99[1269]]);_0xff99[130]!= _0xf598x2[_0xff99[284]](_0xff99[1336])&& _0xf598x2[_0xff99[57]](_0xff99[1336],_0xf598x3[_0xff99[1269]]);_0xf598x2[_0xff99[57]](_0xff99[535],_0xff99[536]+ this[_0xff99[1239]](_0xf598x3[_0xff99[1273]]* _0xf598x3[_0xff99[255]])+ _0xff99[537]+ this[_0xff99[1239]](_0xf598x3[_0xff99[1274]]* _0xf598x3[_0xff99[255]])+ _0xff99[460]+ (_0xf598x3[_0xff99[535]]|| _0xff99[110]));_0xf598x2[_0xff99[57]](_0xff99[461],_0xf598x3[_0xff99[1271]]);return _0xf598x2};mxSvgCanvas2D[_0xff99[202]][_0xff99[1294]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){if(0!= _0xf598x2|| _0xf598x3|| _0xf598x4){var _0xf598xa=this[_0xff99[724]];_0xf598x5+= _0xf598xa[_0xff99[1126]];_0xf598x9+= _0xf598xa[_0xff99[1125]];_0xf598x5*= _0xf598xa[_0xff99[255]];_0xf598x9*= _0xf598xa[_0xff99[255]];_0xf598xa[_0xff99[535]]= _0xf598xa[_0xff99[535]]|| _0xff99[110];if(_0xf598x3&& _0xf598x4){_0xf598x2+= 180}else {if(_0xf598x3^ _0xf598x4){var _0xf598x12=_0xf598x3?_0xf598x5:0,_0xf598x13=_0xf598x3?-1:1,_0xf598x14=_0xf598x4?_0xf598x9:0,_0xf598x15=_0xf598x4?-1:1;_0xf598xa[_0xff99[535]]+= _0xff99[536]+ this[_0xff99[1239]](_0xf598x12)+ _0xff99[537]+ this[_0xff99[1239]](_0xf598x14)+ _0xff99[1392]+ this[_0xff99[1239]](_0xf598x13)+ _0xff99[537]+ this[_0xff99[1239]](_0xf598x15)+ _0xff99[1393]+ this[_0xff99[1239]](-_0xf598x12)+ _0xff99[537]+ this[_0xff99[1239]](-_0xf598x14)+ _0xff99[460]}};if(_0xf598x3?!_0xf598x4:_0xf598x4){_0xf598x2*= -1};0!= _0xf598x2&& (_0xf598xa[_0xff99[535]]+= _0xff99[1394]+ this[_0xff99[1239]](_0xf598x2)+ _0xff99[537]+ this[_0xff99[1239]](_0xf598x5)+ _0xff99[537]+ this[_0xff99[1239]](_0xf598x9)+ _0xff99[460]);_0xf598xa[_0xff99[603]]+= _0xf598x2;_0xf598xa[_0xff99[1395]]= _0xf598x5;_0xf598xa[_0xff99[1396]]= _0xf598x9}};mxSvgCanvas2D[_0xff99[202]][_0xff99[1275]]= function(){mxAbstractCanvas2D[_0xff99[202]][_0xff99[1275]][_0xff99[183]](this,arguments);this[_0xff99[252]]= this[_0xff99[55]](_0xff99[1215])};mxSvgCanvas2D[_0xff99[202]][_0xff99[1319]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){var _0xf598x9=this[_0xff99[724]],_0xf598xa=this[_0xff99[55]](_0xff99[1319]);_0xf598xa[_0xff99[57]](_0xff99[235],this[_0xff99[1239]]((_0xf598x2+ _0xf598x9[_0xff99[1126]])* _0xf598x9[_0xff99[255]]));_0xf598xa[_0xff99[57]](_0xff99[236],this[_0xff99[1239]]((_0xf598x3+ _0xf598x9[_0xff99[1125]])* _0xf598x9[_0xff99[255]]));_0xf598xa[_0xff99[57]](_0xff99[117],this[_0xff99[1239]](_0xf598x4* _0xf598x9[_0xff99[255]]));_0xf598xa[_0xff99[57]](_0xff99[119],this[_0xff99[1239]](_0xf598x5* _0xf598x9[_0xff99[255]]));this[_0xff99[252]]= _0xf598xa};mxSvgCanvas2D[_0xff99[202]][_0xff99[1320]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa){this[_0xff99[1319]](_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5);0< _0xf598x9&& this[_0xff99[252]][_0xff99[57]](_0xff99[1397],this[_0xff99[1239]](_0xf598x9* this[_0xff99[724]][_0xff99[255]]));0< _0xf598xa&& this[_0xff99[252]][_0xff99[57]](_0xff99[1398],this[_0xff99[1239]](_0xf598xa* this[_0xff99[724]][_0xff99[255]]))};mxSvgCanvas2D[_0xff99[202]][_0xff99[680]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){var _0xf598x9=this[_0xff99[724]],_0xf598xa=this[_0xff99[55]](_0xff99[680]);_0xf598xa[_0xff99[57]](_0xff99[1296],Math[_0xff99[488]]((_0xf598x2+ _0xf598x4/ 2+ _0xf598x9[_0xff99[1126]])* _0xf598x9[_0xff99[255]]));_0xf598xa[_0xff99[57]](_0xff99[1297],Math[_0xff99[488]]((_0xf598x3+ _0xf598x5/ 2+ _0xf598x9[_0xff99[1125]])* _0xf598x9[_0xff99[255]]));_0xf598xa[_0xff99[57]](_0xff99[1397],_0xf598x4/ 2* _0xf598x9[_0xff99[255]]);_0xf598xa[_0xff99[57]](_0xff99[1398],_0xf598x5/ 2* _0xf598x9[_0xff99[255]]);this[_0xff99[252]]= _0xf598xa};mxSvgCanvas2D[_0xff99[202]][_0xff99[618]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa,_0xf598x12,_0xf598x13){_0xf598x9= this[_0xff99[1212]][_0xff99[1321]](_0xf598x9);_0xf598xa= null!= _0xf598xa?_0xf598xa:!0;_0xf598x12= null!= _0xf598x12?_0xf598x12:!1;_0xf598x13= null!= _0xf598x13?_0xf598x13:!1;var _0xf598x14=this[_0xff99[724]];_0xf598x2+= _0xf598x14[_0xff99[1126]];_0xf598x3+= _0xf598x14[_0xff99[1125]];var _0xf598x15=this[_0xff99[55]](_0xff99[618]);_0xf598x15[_0xff99[57]](_0xff99[235],this[_0xff99[1239]](_0xf598x2* _0xf598x14[_0xff99[255]]));_0xf598x15[_0xff99[57]](_0xff99[236],this[_0xff99[1239]](_0xf598x3* _0xf598x14[_0xff99[255]]));_0xf598x15[_0xff99[57]](_0xff99[117],this[_0xff99[1239]](_0xf598x4* _0xf598x14[_0xff99[255]]));_0xf598x15[_0xff99[57]](_0xff99[119],this[_0xff99[1239]](_0xf598x5* _0xf598x14[_0xff99[255]]));null== _0xf598x15[_0xff99[1399]]?_0xf598x15[_0xff99[57]](_0xff99[1400],_0xf598x9):_0xf598x15[_0xff99[1399]](mxConstants.NS_XLINK,_0xff99[44],_0xf598x9);_0xf598xa|| _0xf598x15[_0xff99[57]](_0xff99[1401],_0xff99[130]);1> _0xf598x14[_0xff99[1244]]&& _0xf598x15[_0xff99[57]](_0xff99[461],_0xf598x14[_0xff99[1244]]);_0xf598x9= this[_0xff99[724]][_0xff99[535]]|| _0xff99[110];if(_0xf598x12|| _0xf598x13){var _0xf598x16=_0xf598xa= 1,_0xf598x17=0,_0xf598x18=0;_0xf598x12&& (_0xf598xa= -1,_0xf598x17= -_0xf598x4- 2* _0xf598x2);_0xf598x13&& (_0xf598x16= -1,_0xf598x18= -_0xf598x5- 2* _0xf598x3);_0xf598x9+= _0xff99[1402]+ _0xf598xa+ _0xff99[537]+ _0xf598x16+ _0xff99[1393]+ _0xf598x17+ _0xff99[537]+ _0xf598x18+ _0xff99[460]};0< _0xf598x9[_0xff99[67]]&& _0xf598x15[_0xff99[57]](_0xff99[535],_0xf598x9);this[_0xff99[813]][_0xff99[62]](_0xf598x15);this[_0xff99[1347]]&& (_0xf598x15[_0xff99[57]](_0xff99[124],_0xff99[1403]),_0xf598x15= this[_0xff99[55]](_0xff99[1319]),_0xf598x15[_0xff99[57]](_0xff99[187],_0xff99[188]),_0xf598x15[_0xff99[57]](_0xff99[1377],_0xff99[1334]),_0xf598x15[_0xff99[57]](_0xff99[235],this[_0xff99[1239]](_0xf598x2* _0xf598x14[_0xff99[255]])),_0xf598x15[_0xff99[57]](_0xff99[236],this[_0xff99[1239]](_0xf598x3* _0xf598x14[_0xff99[255]])),_0xf598x15[_0xff99[57]](_0xff99[117],this[_0xff99[1239]](_0xf598x4* _0xf598x14[_0xff99[255]])),_0xf598x15[_0xff99[57]](_0xff99[119],this[_0xff99[1239]](_0xf598x5* _0xf598x14[_0xff99[255]])),this[_0xff99[813]][_0xff99[62]](_0xf598x15))};mxSvgCanvas2D[_0xff99[202]][_0xff99[1404]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){_0xf598x4= this[_0xff99[724]];_0xf598x5= _0xff99[1405]+ Math[_0xff99[488]](_0xf598x4[_0xff99[487]])+ _0xff99[1406]+ _0xf598x4[_0xff99[486]]+ _0xff99[1407]+ _0xf598x4[_0xff99[665]]+ _0xff99[1408]+ Math[_0xff99[488]](_0xf598x4[_0xff99[487]]* mxConstants[_0xff99[490]])+ _0xff99[1409]+ _0xf598x5;(_0xf598x4[_0xff99[666]]& mxConstants[_0xff99[1410]])== mxConstants[_0xff99[1410]]&& (_0xf598x5+= _0xff99[1411]);(_0xf598x4[_0xff99[666]]& mxConstants[_0xff99[1412]])== mxConstants[_0xff99[1412]]&& (_0xf598x5+= _0xff99[1413]);(_0xf598x4[_0xff99[666]]& mxConstants[_0xff99[1414]])== mxConstants[_0xff99[1414]]&& (_0xf598x5+= _0xff99[1415]);_0xf598x3== mxConstants[_0xff99[479]]?_0xf598x5+= _0xff99[1416]:_0xf598x3== mxConstants[_0xff99[480]]&& (_0xf598x5+= _0xff99[1417]);_0xf598x3= _0xff99[110];null!= _0xf598x4[_0xff99[1261]]&& (_0xf598x3+= _0xff99[1418]+ _0xf598x4[_0xff99[1261]]+ _0xff99[471]);null!= _0xf598x4[_0xff99[1263]]&& (_0xf598x3+= _0xff99[1419]+ _0xf598x4[_0xff99[1263]]+ _0xff99[471]);mxUtils[_0xff99[1331]](_0xf598x2)|| (_0xf598x4= document[_0xff99[55]](_0xff99[126]),_0xf598x4[_0xff99[339]]= _0xf598x2[_0xff99[230]](/</g,_0xff99[1421])[_0xff99[230]](/>/g,_0xff99[1420])[_0xff99[230]](/</g,_0xff99[334])[_0xff99[230]](/>/g,_0xff99[335]),_0xf598x2= _0xf598x4[_0xff99[131]],_0xf598x9?_0xf598x5+= _0xf598x3:0< _0xf598x3[_0xff99[67]]&& (_0xf598x2= _0xff99[1422]+ _0xf598x3+ _0xff99[1423]+ _0xf598x2+ _0xff99[1424]));if(!mxClient[_0xff99[80]]&& document[_0xff99[509]]){return _0xf598x9= document[_0xff99[509]](_0xff99[577],_0xff99[485]),_0xf598x9[_0xff99[57]](_0xff99[124],_0xf598x5),mxUtils[_0xff99[1331]](_0xf598x2)?this[_0xff99[813]][_0xff99[295]]!= document?_0xf598x9[_0xff99[62]](_0xf598x2[_0xff99[511]](!0)):_0xf598x9[_0xff99[62]](_0xf598x2):_0xf598x9[_0xff99[339]]= _0xf598x2,_0xf598x9};mxUtils[_0xff99[1331]](_0xf598x2)&& this[_0xff99[813]][_0xff99[295]]!= document&& (_0xf598x2= _0xf598x2[_0xff99[342]]);_0xf598x2= _0xf598x2[_0xff99[230]](/<br>/g,_0xff99[1426])[_0xff99[230]](/<hr>/g,_0xff99[1425]);return mxUtils[_0xff99[877]](_0xff99[1427]+ _0xf598x5+ _0xff99[1423]+ _0xf598x2+ _0xff99[1424])[_0xff99[158]]};mxSvgCanvas2D[_0xff99[202]][_0xff99[963]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa,_0xf598x12,_0xf598x13,_0xf598x14,_0xf598x15,_0xf598x16,_0xf598x17){if(this[_0xff99[1285]]&& null!= _0xf598x9){_0xf598x17= null!= _0xf598x17?_0xf598x17:0;var _0xf598x18=this[_0xff99[724]];_0xf598x2+= _0xf598x18[_0xff99[1126]];_0xf598x3+= _0xf598x18[_0xff99[1125]];if(this[_0xff99[1344]]&& _0xff99[1428]== _0xf598x14){var _0xf598x19=_0xff99[1429];_0xf598x16?(_0xf598x19+= _0xff99[1430],0< _0xf598x5&& (_0xf598x19+= _0xff99[1431]+ Math[_0xff99[488]](_0xf598x5)+ _0xff99[1409]),0< _0xf598x4&& (_0xf598x19+= _0xff99[1432]+ Math[_0xff99[488]](_0xf598x4)+ _0xff99[1409])):_0xf598x15&& (_0xf598x19+= _0xff99[1432]+ Math[_0xff99[488]](_0xf598x4)+ _0xff99[1409],0< _0xf598x5&& (_0xf598x19+= _0xff99[1431]+ Math[_0xff99[488]](_0xf598x5)+ _0xff99[1409]));_0xf598x13?(!_0xf598x16&& 0< _0xf598x4 && (_0xf598x19+= _0xff99[1432]+ Math[_0xff99[488]](_0xf598x4)+ _0xff99[1409]),_0xf598x19+= _0xff99[1433]):_0xf598x19+= _0xff99[1434];_0xf598x13= this[_0xff99[55]](_0xff99[449]);1> _0xf598x18[_0xff99[1244]]&& _0xf598x13[_0xff99[57]](_0xff99[461],_0xf598x18[_0xff99[1244]]);_0xf598x14= this[_0xff99[55]](_0xff99[1435]);_0xf598x14[_0xff99[57]](_0xff99[1377],_0xff99[1378]);_0xf598x19= this[_0xff99[1404]](_0xf598x9,_0xf598xa,_0xf598x12,_0xf598x19,_0xf598x15);if(null!= _0xf598x19){_0xf598x13[_0xff99[62]](_0xf598x14);this[_0xff99[813]][_0xff99[62]](_0xf598x13);var _0xf598x1a=0;if(mxClient[_0xff99[80]]&& !mxClient[_0xff99[48]]){var _0xf598x1b=document[_0xff99[55]](_0xff99[485]);_0xf598x1b[_0xff99[124]][_0xff99[103]]= _0xf598x19[_0xff99[284]](_0xff99[124]);_0xf598x1b[_0xff99[124]][_0xff99[495]]= mxClient[_0xff99[496]]?_0xff99[497]:_0xff99[498];_0xf598x1b[_0xff99[124]][_0xff99[187]]= _0xff99[188];_0xf598x1b[_0xff99[339]]= mxUtils[_0xff99[1331]](_0xf598x9)?_0xf598x9[_0xff99[342]]:_0xf598x9;document[_0xff99[112]][_0xff99[62]](_0xf598x1b);_0xf598x1a= _0xf598x1b[_0xff99[359]];_0xf598x5= mxClient[_0xff99[496]]&& 0< _0xf598x5&& _0xf598x16?Math[_0xff99[243]](_0xf598x5,_0xf598x1b[_0xff99[167]]+ 2):_0xf598x1b[_0xff99[167]];_0xf598x1b[_0xff99[265]][_0xff99[266]](_0xf598x1b);_0xf598x14[_0xff99[62]](_0xf598x19)}else {this[_0xff99[813]][_0xff99[295]]!= document?(_0xf598x19[_0xff99[124]][_0xff99[187]]= _0xff99[188],document[_0xff99[112]][_0xff99[62]](_0xf598x19),_0xf598x1a= _0xf598x19[_0xff99[359]],_0xf598x5= _0xf598x19[_0xff99[167]],_0xf598x14[_0xff99[62]](_0xf598x19),_0xf598x19[_0xff99[124]][_0xff99[187]]= _0xff99[110]):(_0xf598x14[_0xff99[62]](_0xf598x19),_0xf598x1a= _0xf598x19[_0xff99[359]],_0xf598x5= _0xf598x19[_0xff99[167]])};_0xf598x4= _0xf598x15?Math[_0xff99[160]](_0xf598x4,_0xf598x1a):_0xf598x1a;1> _0xf598x18[_0xff99[1244]]&& _0xf598x13[_0xff99[57]](_0xff99[461],_0xf598x18[_0xff99[1244]]);_0xf598x15= _0xf598x9= 0;_0xf598xa== mxConstants[_0xff99[479]]?_0xf598x9-= _0xf598x4/ 2:_0xf598xa== mxConstants[_0xff99[480]]&& (_0xf598x9-= _0xf598x4);_0xf598x2+= _0xf598x9;_0xf598x12== mxConstants[_0xff99[481]]?_0xf598x15-= _0xf598x5/ 2:_0xf598x12== mxConstants[_0xff99[482]]&& (_0xf598x15-= _0xf598x5);_0xf598x3+= _0xf598x15;_0xf598xa= 1!= _0xf598x18[_0xff99[255]]?_0xff99[1402]+ _0xf598x18[_0xff99[255]]+ _0xff99[460]:_0xff99[110];0!= _0xf598x18[_0xff99[603]]&& this[_0xff99[1216]]?(_0xf598xa+= _0xff99[1394]+ _0xf598x18[_0xff99[603]]+ _0xff99[537]+ _0xf598x4/ 2+ _0xff99[537]+ _0xf598x5/ 2+ _0xff99[460],_0xf598x3= this[_0xff99[1241]]((_0xf598x2+ _0xf598x4/ 2)* _0xf598x18[_0xff99[255]],(_0xf598x3+ _0xf598x5/ 2)* _0xf598x18[_0xff99[255]],_0xf598x18[_0xff99[603]],_0xf598x18[_0xff99[1395]],_0xf598x18[_0xff99[1396]]),_0xf598x2= _0xf598x3[_0xff99[235]]- _0xf598x4* _0xf598x18[_0xff99[255]]/ 2,_0xf598x3= _0xf598x3[_0xff99[236]]- _0xf598x5* _0xf598x18[_0xff99[255]]/ 2):(_0xf598x2*= _0xf598x18[_0xff99[255]],_0xf598x3*= _0xf598x18[_0xff99[255]]);0!= _0xf598x17&& (_0xf598xa+= _0xff99[1394]+ _0xf598x17+ _0xff99[537]+ -_0xf598x9+ _0xff99[537]+ -_0xf598x15+ _0xff99[460]);_0xf598x13[_0xff99[57]](_0xff99[535],_0xff99[536]+ Math[_0xff99[488]](_0xf598x2)+ _0xff99[537]+ Math[_0xff99[488]](_0xf598x3)+ _0xff99[460]+ _0xf598xa);_0xf598x14[_0xff99[57]](_0xff99[117],Math[_0xff99[488]](Math[_0xff99[160]](1,_0xf598x4)));_0xf598x14[_0xff99[57]](_0xff99[119],Math[_0xff99[488]](Math[_0xff99[160]](1,_0xf598x5)))}}else {this[_0xff99[1436]](_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa,_0xf598x12,_0xf598x13,_0xf598x15,_0xf598x16,_0xf598x17)}}};mxSvgCanvas2D[_0xff99[202]][_0xff99[1437]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){_0xf598x2= Math[_0xff99[488]](_0xf598x2);_0xf598x3= Math[_0xff99[488]](_0xf598x3);_0xf598x4= Math[_0xff99[488]](_0xf598x4);_0xf598x5= Math[_0xff99[488]](_0xf598x5);for(var _0xf598x9=_0xff99[1438]+ _0xf598x2+ _0xff99[213]+ _0xf598x3+ _0xff99[213]+ _0xf598x4+ _0xff99[213]+ _0xf598x5,_0xf598xa=0,_0xf598x12=_0xf598x9+ _0xff99[213]+ _0xf598xa;null!= document[_0xff99[1362]](_0xf598x12);){_0xf598x12= _0xf598x9+ _0xff99[213]+ ++_0xf598xa};clip= this[_0xff99[55]](_0xff99[1439]);clip[_0xff99[57]](_0xff99[1363],_0xf598x12);_0xf598x9= this[_0xff99[55]](_0xff99[1319]);_0xf598x9[_0xff99[57]](_0xff99[235],_0xf598x2);_0xf598x9[_0xff99[57]](_0xff99[236],_0xf598x3);_0xf598x9[_0xff99[57]](_0xff99[117],_0xf598x4);_0xf598x9[_0xff99[57]](_0xff99[119],_0xf598x5);clip[_0xff99[62]](_0xf598x9);return clip};mxSvgCanvas2D[_0xff99[202]][_0xff99[1436]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa,_0xf598x12,_0xf598x13,_0xf598x14,_0xf598x15,_0xf598x16){_0xf598x16= null!= _0xf598x16?_0xf598x16:0;_0xf598x13= this[_0xff99[724]];var _0xf598x17=Math[_0xff99[488]](_0xf598x13[_0xff99[487]]),_0xf598x18=this[_0xff99[55]](_0xff99[449]),_0xf598x19=_0xf598x13[_0xff99[535]]|| _0xff99[110];0!= _0xf598x16&& (_0xf598x19+= _0xff99[1394]+ _0xf598x16+ _0xff99[537]+ this[_0xff99[1239]](_0xf598x2* _0xf598x13[_0xff99[255]])+ _0xff99[537]+ this[_0xff99[1239]](_0xf598x3* _0xf598x13[_0xff99[255]])+ _0xff99[460]);if(_0xf598x15&& 0< _0xf598x4&& 0< _0xf598x5){var _0xf598x1a=_0xf598x2;_0xf598x16= _0xf598x3;_0xf598xa== mxConstants[_0xff99[479]]?_0xf598x1a-= _0xf598x4/ 2:_0xf598xa== mxConstants[_0xff99[480]]&& (_0xf598x1a-= _0xf598x4);_0xf598x12== mxConstants[_0xff99[481]]?_0xf598x16-= _0xf598x5/ 2:_0xf598x12== mxConstants[_0xff99[482]]&& (_0xf598x16-= _0xf598x5);_0xf598x16= this[_0xff99[1437]](_0xf598x1a* _0xf598x13[_0xff99[255]]- 2,_0xf598x16* _0xf598x13[_0xff99[255]]- 2,_0xf598x4* _0xf598x13[_0xff99[255]]+ 4,_0xf598x5* _0xf598x13[_0xff99[255]]+ 4);null!= this[_0xff99[1340]]?this[_0xff99[1340]][_0xff99[62]](_0xf598x16):this[_0xff99[813]][_0xff99[62]](_0xf598x16);_0xf598x18[_0xff99[57]](_0xff99[1440],_0xff99[1380]+ _0xf598x16[_0xff99[284]](_0xff99[1363])+ _0xff99[460])};this[_0xff99[1441]](_0xf598x18,_0xf598xa);_0xf598x16= _0xf598xa== mxConstants[_0xff99[480]]?_0xff99[1282]:_0xf598xa== mxConstants[_0xff99[479]]?_0xff99[554]:_0xff99[861];_0xff99[861]!= _0xf598x16&& _0xf598x18[_0xff99[57]](_0xff99[1442],_0xf598x16);(!this[_0xff99[1341]]|| _0xf598x17!= mxConstants[_0xff99[483]]) && _0xf598x18[_0xff99[57]](_0xff99[1443],Math[_0xff99[488]](_0xf598x17* _0xf598x13[_0xff99[255]])+ _0xff99[168]);0< _0xf598x19[_0xff99[67]]&& _0xf598x18[_0xff99[57]](_0xff99[535],_0xf598x19);1> _0xf598x13[_0xff99[1244]]&& _0xf598x18[_0xff99[57]](_0xff99[461],_0xf598x13[_0xff99[1244]]);var _0xf598x19=_0xf598x9[_0xff99[224]](_0xff99[192]),_0xf598x1a=Math[_0xff99[488]](_0xf598x17* mxConstants[_0xff99[490]]),_0xf598x1b=_0xf598x17+ (_0xf598x19[_0xff99[67]]- 1)* _0xf598x1a;_0xf598x16= _0xf598x3+ _0xf598x17- 1;_0xf598x12== mxConstants[_0xff99[481]]?(_0xf598x5= (this[_0xff99[1343]]&& _0xf598x15&& 0< _0xf598x5?Math[_0xff99[243]](_0xf598x1b,_0xf598x5):_0xf598x1b)/ 2,_0xf598x16-= _0xf598x5+ 1):_0xf598x12== mxConstants[_0xff99[482]]&& (_0xf598x5= this[_0xff99[1343]]&& _0xf598x15&& 0< _0xf598x5?Math[_0xff99[243]](_0xf598x1b,_0xf598x5):_0xf598x1b,_0xf598x16-= _0xf598x5+ 2);for(_0xf598x5= 0;_0xf598x5< _0xf598x19[_0xff99[67]];_0xf598x5++){0< _0xf598x19[_0xf598x5][_0xff99[67]]&& 0< mxUtils[_0xff99[330]](_0xf598x19[_0xf598x5])[_0xff99[67]]&& (_0xf598x15= this[_0xff99[55]](_0xff99[963]),_0xf598x15[_0xff99[57]](_0xff99[235],this[_0xff99[1239]](_0xf598x2* _0xf598x13[_0xff99[255]])),_0xf598x15[_0xff99[57]](_0xff99[236],this[_0xff99[1239]](_0xf598x16* _0xf598x13[_0xff99[255]])),mxUtils[_0xff99[53]](_0xf598x15,_0xf598x19[_0xf598x5]),_0xf598x18[_0xff99[62]](_0xf598x15)),_0xf598x16+= _0xf598x1a};this[_0xff99[813]][_0xff99[62]](_0xf598x18);this[_0xff99[1444]](_0xf598x18,_0xf598x9,_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x1b,_0xf598xa,_0xf598x12,_0xf598x14)};mxSvgCanvas2D[_0xff99[202]][_0xff99[1441]]= function(_0xf598x2){var _0xf598x3=this[_0xff99[724]];_0xf598x2[_0xff99[57]](_0xff99[1334],_0xf598x3[_0xff99[665]]);(!this[_0xff99[1341]]|| _0xf598x3[_0xff99[486]]!= mxConstants[_0xff99[484]]) && _0xf598x2[_0xff99[57]](_0xff99[1445],_0xf598x3[_0xff99[486]]);(_0xf598x3[_0xff99[666]]& mxConstants[_0xff99[1410]])== mxConstants[_0xff99[1410]]&& _0xf598x2[_0xff99[57]](_0xff99[1446],_0xff99[1447]);(_0xf598x3[_0xff99[666]]& mxConstants[_0xff99[1412]])== mxConstants[_0xff99[1412]]&& _0xf598x2[_0xff99[57]](_0xff99[1448],_0xff99[1449]);(_0xf598x3[_0xff99[666]]& mxConstants[_0xff99[1414]])== mxConstants[_0xff99[1414]]&& _0xf598x2[_0xff99[57]](_0xff99[1450],_0xff99[355])};mxSvgCanvas2D[_0xff99[202]][_0xff99[1444]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa,_0xf598x12,_0xf598x13,_0xf598x14){var _0xf598x15=this[_0xff99[724]];if(null!= _0xf598x15[_0xff99[1261]]|| null!= _0xf598x15[_0xff99[1263]]){var _0xf598x16=null;_0xf598x14?(_0xf598x12== mxConstants[_0xff99[479]]?_0xf598x4-= _0xf598x9/ 2:_0xf598x12== mxConstants[_0xff99[480]]&& (_0xf598x4-= _0xf598x9),_0xf598x13== mxConstants[_0xff99[481]]?_0xf598x5-= _0xf598xa/ 2:_0xf598x13== mxConstants[_0xff99[482]]&& (_0xf598x5-= _0xf598xa),_0xf598x16= new mxRectangle((_0xf598x4+ 1)* _0xf598x15[_0xff99[255]],_0xf598x5* _0xf598x15[_0xff99[255]],(_0xf598x9- 2)* _0xf598x15[_0xff99[255]],(_0xf598xa+ 2)* _0xf598x15[_0xff99[255]])):null!= _0xf598x2[_0xff99[1451]]&& this[_0xff99[813]][_0xff99[295]]== document?(_0xf598x16= _0xf598x2[_0xff99[1451]](),_0xf598x3= mxClient[_0xff99[80]]&& mxClient[_0xff99[48]],_0xf598x16= new mxRectangle(_0xf598x16[_0xff99[235]],_0xf598x16[_0xff99[236]]+ (_0xf598x3?0:1),_0xf598x16[_0xff99[117]],_0xf598x16[_0xff99[119]]+ (_0xf598x3?1:0))):(_0xf598x16= document[_0xff99[55]](_0xff99[485]),_0xf598x16[_0xff99[124]][_0xff99[489]]= Math[_0xff99[488]](_0xf598x15[_0xff99[487]]* mxConstants[_0xff99[490]])+ _0xff99[168],_0xf598x16[_0xff99[124]][_0xff99[487]]= Math[_0xff99[488]](_0xf598x15[_0xff99[487]])+ _0xff99[168],_0xf598x16[_0xff99[124]][_0xff99[486]]= _0xf598x15[_0xff99[486]],_0xf598x16[_0xff99[124]][_0xff99[493]]= _0xff99[494],_0xf598x16[_0xff99[124]][_0xff99[491]]= _0xff99[492],_0xf598x16[_0xff99[124]][_0xff99[187]]= _0xff99[188],_0xf598x16[_0xff99[124]][_0xff99[495]]= mxClient[_0xff99[496]]?_0xff99[497]:_0xff99[498],_0xf598x16[_0xff99[124]][_0xff99[499]]= _0xff99[500],(_0xf598x15[_0xff99[666]]& mxConstants[_0xff99[1410]])== mxConstants[_0xff99[1410]]&& (_0xf598x16[_0xff99[124]][_0xff99[1452]]= _0xff99[1447]),(_0xf598x15[_0xff99[666]]& mxConstants[_0xff99[1412]])== mxConstants[_0xff99[1412]]&& (_0xf598x16[_0xff99[124]][_0xff99[666]]= _0xff99[1449]),_0xf598x3= mxUtils[_0xff99[321]](_0xf598x3,!1),_0xf598x16[_0xff99[339]]= _0xf598x3[_0xff99[230]](/\n/g,_0xff99[1453]),document[_0xff99[112]][_0xff99[62]](_0xf598x16),_0xf598x9= _0xf598x16[_0xff99[359]],_0xf598xa= _0xf598x16[_0xff99[167]],_0xf598x16[_0xff99[265]][_0xff99[266]](_0xf598x16),_0xf598x12== mxConstants[_0xff99[479]]?_0xf598x4-= _0xf598x9/ 2:_0xf598x12== mxConstants[_0xff99[480]]&& (_0xf598x4-= _0xf598x9),_0xf598x13== mxConstants[_0xff99[481]]?_0xf598x5-= _0xf598xa/ 2:_0xf598x13== mxConstants[_0xff99[482]]&& (_0xf598x5-= _0xf598xa),_0xf598x16= new mxRectangle((_0xf598x4+ 1)* _0xf598x15[_0xff99[255]],(_0xf598x5+ 2)* _0xf598x15[_0xff99[255]],_0xf598x9* _0xf598x15[_0xff99[255]],(_0xf598xa+ 1)* _0xf598x15[_0xff99[255]]));null!= _0xf598x16&& (_0xf598x3= this[_0xff99[55]](_0xff99[1319]),_0xf598x3[_0xff99[57]](_0xff99[1334],_0xf598x15[_0xff99[1261]]|| _0xff99[130]),_0xf598x3[_0xff99[57]](_0xff99[1336],_0xf598x15[_0xff99[1263]]|| _0xff99[130]),_0xf598x3[_0xff99[57]](_0xff99[235],Math[_0xff99[519]](_0xf598x16[_0xff99[235]]- 1)),_0xf598x3[_0xff99[57]](_0xff99[236],Math[_0xff99[519]](_0xf598x16[_0xff99[236]]- 1)),_0xf598x3[_0xff99[57]](_0xff99[117],Math[_0xff99[430]](_0xf598x16[_0xff99[117]]+ 2)),_0xf598x3[_0xff99[57]](_0xff99[119],Math[_0xff99[430]](_0xf598x16[_0xff99[119]])),_0xf598x15= null!= _0xf598x15[_0xff99[1263]]?Math[_0xff99[160]](1,this[_0xff99[1239]](_0xf598x15[_0xff99[255]])):0,_0xf598x3[_0xff99[57]](_0xff99[1382],_0xf598x15),this[_0xff99[813]][_0xff99[295]]== document&& 1== mxUtils[_0xff99[1454]](_0xf598x15,2)&& _0xf598x3[_0xff99[57]](_0xff99[535],_0xff99[1455]),_0xf598x2[_0xff99[950]](_0xf598x3,_0xf598x2[_0xff99[285]]))}};mxSvgCanvas2D[_0xff99[202]][_0xff99[1336]]= function(){this[_0xff99[1370]](!1,!0)};mxSvgCanvas2D[_0xff99[202]][_0xff99[1334]]= function(){this[_0xff99[1370]](!0,!1)};mxSvgCanvas2D[_0xff99[202]][_0xff99[1337]]= function(){this[_0xff99[1370]](!0,!0)};var mxVmlCanvas2D=function(_0xf598x2){mxAbstractCanvas2D[_0xff99[239]](this);this[_0xff99[813]]= _0xf598x2};mxUtils[_0xff99[1284]](mxVmlCanvas2D,mxAbstractCanvas2D);mxVmlCanvas2D[_0xff99[202]][_0xff99[252]]= null;mxVmlCanvas2D[_0xff99[202]][_0xff99[1285]]= !0;mxVmlCanvas2D[_0xff99[202]][_0xff99[1219]]= _0xff99[1456];mxVmlCanvas2D[_0xff99[202]][_0xff99[1221]]= _0xff99[1457];mxVmlCanvas2D[_0xff99[202]][_0xff99[1225]]= _0xff99[1458];mxVmlCanvas2D[_0xff99[202]][_0xff99[1227]]= _0xff99[235];mxVmlCanvas2D[_0xff99[202]][_0xff99[1459]]= _0xff99[110];mxVmlCanvas2D[_0xff99[202]][_0xff99[1460]]= 1;mxVmlCanvas2D[_0xff99[202]][_0xff99[1370]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=this[_0xff99[252]],_0xf598x5=this[_0xff99[724]];if(null!= _0xf598x4){if(_0xff99[253]== _0xf598x4[_0xff99[301]]){if(null!= this[_0xff99[1215]]&& 0< this[_0xff99[1215]][_0xff99[67]]){_0xf598x4[_0xff99[1215]]= this[_0xff99[1215]][_0xff99[234]](_0xff99[185])+ _0xff99[1461],_0xf598x4[_0xff99[124]][_0xff99[117]]= this[_0xff99[813]][_0xff99[124]][_0xff99[117]],_0xf598x4[_0xff99[124]][_0xff99[119]]= this[_0xff99[813]][_0xff99[124]][_0xff99[119]],_0xf598x4[_0xff99[1462]]= parseInt(_0xf598x4[_0xff99[124]][_0xff99[117]])+ _0xff99[185]+ parseInt(_0xf598x4[_0xff99[124]][_0xff99[119]])}else {return}};_0xf598x4[_0xff99[1463]]= this[_0xff99[1239]](Math[_0xff99[160]](1,_0xf598x5[_0xff99[610]]* _0xf598x5[_0xff99[255]]/ this[_0xff99[1460]]))+ _0xff99[168];_0xf598x5[_0xff99[639]]&& this[_0xff99[813]][_0xff99[62]](this[_0xff99[1375]](_0xf598x4,_0xf598x2&& null!= _0xf598x5[_0xff99[604]],_0xf598x3&& null!= _0xf598x5[_0xff99[608]]));_0xf598x3&& null!= _0xf598x5[_0xff99[608]]?(_0xf598x4[_0xff99[1464]]= _0xff99[128],_0xf598x4[_0xff99[1306]]= _0xf598x5[_0xff99[608]]):_0xf598x4[_0xff99[1464]]= _0xff99[308];_0xf598x4[_0xff99[62]](this[_0xff99[1465]]());_0xf598x2&& null!= _0xf598x5[_0xff99[604]]?_0xf598x4[_0xff99[62]](this[_0xff99[1466]]()):this[_0xff99[1229]]&& (_0xff99[253]!= _0xf598x4[_0xff99[301]]|| this[_0xff99[1215]][this[_0xff99[1215]][_0xff99[67]]- 1]== this[_0xff99[1227]])?_0xf598x4[_0xff99[62]](this[_0xff99[1467]]()):_0xf598x4[_0xff99[1468]]= _0xff99[308];this[_0xff99[813]][_0xff99[62]](_0xf598x4)}};mxVmlCanvas2D[_0xff99[202]][_0xff99[1467]]= function(){var _0xf598x2=document[_0xff99[55]](mxClient[_0xff99[463]]+ _0xff99[1469]);_0xf598x2[_0xff99[390]]= mxClient[_0xff99[88]]+ _0xff99[1470];_0xf598x2[_0xff99[60]]= _0xff99[1471];return _0xf598x2};mxVmlCanvas2D[_0xff99[202]][_0xff99[1466]]= function(){var _0xf598x2=this[_0xff99[724]],_0xf598x3=document[_0xff99[55]](mxClient[_0xff99[463]]+ _0xff99[1469]);_0xf598x3[_0xff99[352]]= _0xf598x2[_0xff99[604]];if(null!= _0xf598x2[_0xff99[606]]){_0xf598x3[_0xff99[60]]= _0xff99[1299];_0xf598x3[_0xff99[865]]= _0xff99[130];_0xf598x3[_0xff99[1472]]= _0xf598x2[_0xff99[606]];var _0xf598x4=180- _0xf598x2[_0xff99[603]],_0xf598x4=_0xf598x2[_0xff99[607]]== mxConstants[_0xff99[1359]]?_0xf598x4- (90+ (_0xff99[235]== this[_0xff99[813]][_0xff99[124]][_0xff99[1473]]?180:0)):_0xf598x2[_0xff99[607]]== mxConstants[_0xff99[1356]]?_0xf598x4+ (90+ (_0xff99[235]== this[_0xff99[813]][_0xff99[124]][_0xff99[1473]]?180:0)):_0xf598x2[_0xff99[607]]== mxConstants[_0xff99[1358]]?_0xf598x4- (180+ (_0xff99[236]== this[_0xff99[813]][_0xff99[124]][_0xff99[1473]]?-180:0)):_0xf598x4+ (_0xff99[236]== this[_0xff99[813]][_0xff99[124]][_0xff99[1473]]?-180:0);if(_0xff99[235]== this[_0xff99[813]][_0xff99[124]][_0xff99[1473]]|| _0xff99[236]== this[_0xff99[813]][_0xff99[124]][_0xff99[1473]]){_0xf598x4*= -1};_0xf598x3[_0xff99[1474]]= mxUtils[_0xff99[1454]](_0xf598x4,360);_0xf598x3[_0xff99[461]]= 100* _0xf598x2[_0xff99[1244]]* _0xf598x2[_0xff99[1247]]+ _0xff99[229];_0xf598x3[_0xff99[57]](mxClient[_0xff99[1475]]+ _0xff99[1476],100* _0xf598x2[_0xff99[1244]]* _0xf598x2[_0xff99[1248]]+ _0xff99[229])}else {1> _0xf598x2[_0xff99[1244]]&& (_0xf598x3[_0xff99[461]]= 100* _0xf598x2[_0xff99[1244]]+ _0xff99[229])};return _0xf598x3};mxVmlCanvas2D[_0xff99[202]][_0xff99[1465]]= function(){var _0xf598x2=this[_0xff99[724]],_0xf598x3=document[_0xff99[55]](mxClient[_0xff99[463]]+ _0xff99[1477]);_0xf598x3[_0xff99[1478]]= _0xf598x2[_0xff99[1254]]|| _0xff99[1232];_0xf598x3[_0xff99[1479]]= _0xf598x2[_0xff99[1256]]|| _0xff99[1233];_0xf598x3[_0xff99[1313]]= _0xf598x2[_0xff99[1258]]|| _0xff99[1480];1> _0xf598x2[_0xff99[1244]]&& (_0xf598x3[_0xff99[461]]= 100* _0xf598x2[_0xff99[1244]]+ _0xff99[229]);_0xf598x2[_0xff99[648]]&& (_0xf598x3[_0xff99[1481]]= this[_0xff99[1482]]());return _0xf598x3};mxVmlCanvas2D[_0xff99[202]][_0xff99[1482]]= function(){var _0xf598x2=_0xff99[1483];if(null!= this[_0xff99[724]][_0xff99[649]]){var _0xf598x3=this[_0xff99[724]][_0xff99[649]][_0xff99[224]](_0xff99[185]);0< _0xf598x3[_0xff99[67]]&& 1== _0xf598x3[0]&& (_0xf598x2= _0xff99[1484])};return _0xf598x2};mxVmlCanvas2D[_0xff99[202]][_0xff99[1375]]= function(_0xf598x2,_0xf598x3,_0xf598x4){var _0xf598x5=this[_0xff99[724]],_0xf598x9=-_0xf598x5[_0xff99[603]]* (Math[_0xff99[424]]/ 180),_0xf598xa=Math[_0xff99[426]](_0xf598x9),_0xf598x9=Math[_0xff99[427]](_0xf598x9),_0xf598x12=_0xf598x5[_0xff99[1273]]* _0xf598x5[_0xff99[255]],_0xf598x13=_0xf598x5[_0xff99[1274]]* _0xf598x5[_0xff99[255]];_0xff99[235]== this[_0xff99[813]][_0xff99[124]][_0xff99[1473]]?_0xf598x12*= -1:_0xff99[236]== this[_0xff99[813]][_0xff99[124]][_0xff99[1473]]&& (_0xf598x13*= -1);var _0xf598x14=_0xf598x2[_0xff99[511]](!0);_0xf598x14[_0xff99[124]][_0xff99[945]]= Math[_0xff99[488]](_0xf598x12* _0xf598xa- _0xf598x13* _0xf598x9)+ _0xff99[168];_0xf598x14[_0xff99[124]][_0xff99[953]]= Math[_0xff99[488]](_0xf598x12* _0xf598x9+ _0xf598x13* _0xf598xa)+ _0xff99[168];8== document[_0xff99[5]]&& (_0xf598x14[_0xff99[1463]]= _0xf598x2[_0xff99[1463]],_0xff99[253]== _0xf598x2[_0xff99[301]]&& (_0xf598x14[_0xff99[1215]]= this[_0xff99[1215]][_0xff99[234]](_0xff99[185])+ _0xff99[1461],_0xf598x14[_0xff99[124]][_0xff99[117]]= this[_0xff99[813]][_0xff99[124]][_0xff99[117]],_0xf598x14[_0xff99[124]][_0xff99[119]]= this[_0xff99[813]][_0xff99[124]][_0xff99[119]],_0xf598x14[_0xff99[1462]]= parseInt(_0xf598x2[_0xff99[124]][_0xff99[117]])+ _0xff99[185]+ parseInt(_0xf598x2[_0xff99[124]][_0xff99[119]])));_0xf598x4?(_0xf598x14[_0xff99[1306]]= _0xf598x5[_0xff99[1269]],_0xf598x14[_0xff99[62]](this[_0xff99[1485]]())):_0xf598x14[_0xff99[1464]]= _0xff99[308];_0xf598x3?_0xf598x14[_0xff99[62]](this[_0xff99[1486]]()):_0xf598x14[_0xff99[1468]]= _0xff99[308];return _0xf598x14};mxVmlCanvas2D[_0xff99[202]][_0xff99[1486]]= function(){var _0xf598x2=document[_0xff99[55]](mxClient[_0xff99[463]]+ _0xff99[1469]);_0xf598x2[_0xff99[352]]= this[_0xff99[724]][_0xff99[1269]];_0xf598x2[_0xff99[461]]= 100* this[_0xff99[724]][_0xff99[1244]]* this[_0xff99[724]][_0xff99[1271]]+ _0xff99[229];return _0xf598x2};mxVmlCanvas2D[_0xff99[202]][_0xff99[1485]]= function(){var _0xf598x2=this[_0xff99[1465]]();_0xf598x2[_0xff99[461]]= 100* this[_0xff99[724]][_0xff99[1244]]* this[_0xff99[724]][_0xff99[1271]]+ _0xff99[229];return _0xf598x2};mxVmlCanvas2D[_0xff99[202]][_0xff99[1294]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){_0xf598x3&& _0xf598x4?_0xf598x2+= 180:_0xf598x3?this[_0xff99[813]][_0xff99[124]][_0xff99[1473]]= _0xff99[235]:_0xf598x4&& (this[_0xff99[813]][_0xff99[124]][_0xff99[1473]]= _0xff99[236]);if(_0xf598x3?!_0xf598x4:_0xf598x4){_0xf598x2*= -1};this[_0xff99[813]][_0xff99[124]][_0xff99[603]]= _0xf598x2;this[_0xff99[724]][_0xff99[603]]+= _0xf598x2;this[_0xff99[724]][_0xff99[1395]]= _0xf598x5;this[_0xff99[724]][_0xff99[1396]]= _0xf598x9};mxVmlCanvas2D[_0xff99[202]][_0xff99[1275]]= function(){mxAbstractCanvas2D[_0xff99[202]][_0xff99[1275]][_0xff99[183]](this,arguments);this[_0xff99[252]]= document[_0xff99[55]](mxClient[_0xff99[463]]+ _0xff99[1487]);this[_0xff99[252]][_0xff99[124]][_0xff99[491]]= _0xff99[492]};mxVmlCanvas2D[_0xff99[202]][_0xff99[1278]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){var _0xf598x9=this[_0xff99[724]],_0xf598xa=(this[_0xff99[1217]]+ _0xf598x9[_0xff99[1126]])* _0xf598x9[_0xff99[255]],_0xf598x12=(this[_0xff99[1218]]+ _0xf598x9[_0xff99[1125]])* _0xf598x9[_0xff99[255]];_0xf598x2= (_0xf598x2+ _0xf598x9[_0xff99[1126]])* _0xf598x9[_0xff99[255]];_0xf598x3= (_0xf598x3+ _0xf598x9[_0xff99[1125]])* _0xf598x9[_0xff99[255]];_0xf598x4= (_0xf598x4+ _0xf598x9[_0xff99[1126]])* _0xf598x9[_0xff99[255]];_0xf598x5= (_0xf598x5+ _0xf598x9[_0xff99[1125]])* _0xf598x9[_0xff99[255]];var _0xf598x12=_0xf598x12+ 2/ 3* (_0xf598x3- _0xf598x12),_0xf598x13=_0xf598x4+ 2/ 3* (_0xf598x2- _0xf598x4);_0xf598x3= _0xf598x5+ 2/ 3* (_0xf598x3- _0xf598x5);this[_0xff99[1215]][_0xff99[207]](_0xff99[1488]+ this[_0xff99[1239]](_0xf598xa+ 2/ 3* (_0xf598x2- _0xf598xa))+ _0xff99[185]+ this[_0xff99[1239]](_0xf598x12)+ _0xff99[185]+ this[_0xff99[1239]](_0xf598x13)+ _0xff99[185]+ this[_0xff99[1239]](_0xf598x3)+ _0xff99[185]+ this[_0xff99[1239]](_0xf598x4)+ _0xff99[185]+ this[_0xff99[1239]](_0xf598x5));this[_0xff99[1217]]= _0xf598x4/ _0xf598x9[_0xff99[255]]- _0xf598x9[_0xff99[1126]];this[_0xff99[1218]]= _0xf598x5/ _0xf598x9[_0xff99[255]]- _0xf598x9[_0xff99[1125]]};mxVmlCanvas2D[_0xff99[202]][_0xff99[1489]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){var _0xf598xa=this[_0xff99[724]];_0xf598x2= document[_0xff99[55]](_0xf598x2);_0xf598x2[_0xff99[124]][_0xff99[491]]= _0xff99[492];_0xf598x2[_0xff99[124]][_0xff99[361]]= this[_0xff99[1239]]((_0xf598x3+ _0xf598xa[_0xff99[1126]])* _0xf598xa[_0xff99[255]])+ _0xff99[168];_0xf598x2[_0xff99[124]][_0xff99[125]]= this[_0xff99[1239]]((_0xf598x4+ _0xf598xa[_0xff99[1125]])* _0xf598xa[_0xff99[255]])+ _0xff99[168];_0xf598x2[_0xff99[124]][_0xff99[117]]= this[_0xff99[1239]](_0xf598x5* _0xf598xa[_0xff99[255]])+ _0xff99[168];_0xf598x2[_0xff99[124]][_0xff99[119]]= this[_0xff99[1239]](_0xf598x9* _0xf598xa[_0xff99[255]])+ _0xff99[168];return _0xf598x2};mxVmlCanvas2D[_0xff99[202]][_0xff99[1319]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){this[_0xff99[252]]= this[_0xff99[1489]](mxClient[_0xff99[463]]+ _0xff99[1490],_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5)};mxVmlCanvas2D[_0xff99[202]][_0xff99[1320]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa){this[_0xff99[252]]= this[_0xff99[1489]](mxClient[_0xff99[463]]+ _0xff99[1491],_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5);this[_0xff99[252]][_0xff99[57]](_0xff99[1492],Math[_0xff99[160]](100* _0xf598x9/ _0xf598x4,100* _0xf598xa/ _0xf598x5)+ _0xff99[229])};mxVmlCanvas2D[_0xff99[202]][_0xff99[680]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){this[_0xff99[252]]= this[_0xff99[1489]](mxClient[_0xff99[463]]+ _0xff99[1493],_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5)};mxVmlCanvas2D[_0xff99[202]][_0xff99[618]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa,_0xf598x12,_0xf598x13){var _0xf598x14=null;_0xf598xa?(_0xf598x14= this[_0xff99[1489]](mxClient[_0xff99[463]]+ _0xff99[1490],_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5),_0xf598x14[_0xff99[1464]]= _0xff99[308],_0xf598x2= document[_0xff99[55]](mxClient[_0xff99[463]]+ _0xff99[1469]),_0xf598x2[_0xff99[1322]]= _0xf598xa?_0xff99[1494]:_0xff99[1495],_0xf598x2[_0xff99[1294]]= _0xff99[128],_0xf598x2[_0xff99[60]]= _0xff99[1496],_0xf598x2[_0xff99[390]]= _0xf598x9,_0xf598x14[_0xff99[62]](_0xf598x2)):(_0xf598x14= this[_0xff99[1489]](mxClient[_0xff99[463]]+ _0xff99[464],_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5),_0xf598x14[_0xff99[390]]= _0xf598x9);_0xf598x12&& _0xf598x13?_0xf598x14[_0xff99[124]][_0xff99[603]]= _0xff99[1497]:_0xf598x12?_0xf598x14[_0xff99[124]][_0xff99[1473]]= _0xff99[235]:_0xf598x13&& (_0xf598x14[_0xff99[124]][_0xff99[1473]]= _0xff99[236]);1> this[_0xff99[724]][_0xff99[1244]]&& (_0xf598x14[_0xff99[124]][_0xff99[347]]+= _0xff99[459]+ 100* this[_0xff99[724]][_0xff99[1244]]+ _0xff99[460]);this[_0xff99[813]][_0xff99[62]](_0xf598x14)};mxVmlCanvas2D[_0xff99[202]][_0xff99[1404]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){_0xf598x4= document[_0xff99[55]](_0xff99[485]);var _0xf598x9=this[_0xff99[724]],_0xf598xa=_0xff99[110];null!= _0xf598x9[_0xff99[1261]]&& (_0xf598xa+= _0xff99[1418]+ _0xf598x9[_0xff99[1261]]+ _0xff99[471]);null!= _0xf598x9[_0xff99[1263]]&& (_0xf598xa+= _0xff99[1419]+ _0xf598x9[_0xff99[1263]]+ _0xff99[471]);mxUtils[_0xff99[1331]](_0xf598x2)?_0xf598x4[_0xff99[62]](_0xf598x2):0< _0xf598xa[_0xff99[67]]&& !_0xf598x5?(_0xf598x5= document[_0xff99[55]](_0xff99[485]),_0xf598x5[_0xff99[124]][_0xff99[103]]= _0xf598xa,_0xf598x5[_0xff99[124]][_0xff99[495]]= mxClient[_0xff99[496]]?_0xff99[497]:_0xff99[498],_0xf598x5[_0xff99[124]][_0xff99[499]]= _0xff99[500],_0xf598x5[_0xff99[339]]= _0xf598x2,_0xf598x4[_0xff99[62]](_0xf598x5)):(_0xf598x4[_0xff99[124]][_0xff99[103]]= _0xf598xa,_0xf598x4[_0xff99[339]]= _0xf598x2);_0xf598x2= _0xf598x4[_0xff99[124]];_0xf598x2[_0xff99[487]]= Math[_0xff99[488]](_0xf598x9[_0xff99[487]]/ this[_0xff99[1460]])+ _0xff99[168];_0xf598x2[_0xff99[486]]= _0xf598x9[_0xff99[486]];_0xf598x2[_0xff99[352]]= _0xf598x9[_0xff99[665]];_0xf598x2[_0xff99[123]]= _0xff99[125];_0xf598x2[_0xff99[1165]]= _0xf598x3|| _0xff99[361];_0xf598x2[_0xff99[489]]= Math[_0xff99[488]](_0xf598x9[_0xff99[487]]* mxConstants[_0xff99[490]]/ this[_0xff99[1460]])+ _0xff99[168];(_0xf598x9[_0xff99[666]]& mxConstants[_0xff99[1410]])== mxConstants[_0xff99[1410]]&& (_0xf598x2[_0xff99[1452]]= _0xff99[1447]);(_0xf598x9[_0xff99[666]]& mxConstants[_0xff99[1412]])== mxConstants[_0xff99[1412]]&& (_0xf598x2[_0xff99[666]]= _0xff99[1449]);(_0xf598x9[_0xff99[666]]& mxConstants[_0xff99[1414]])== mxConstants[_0xff99[1414]]&& (_0xf598x2[_0xff99[1498]]= _0xff99[355]);return _0xf598x4};mxVmlCanvas2D[_0xff99[202]][_0xff99[963]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa,_0xf598x12,_0xf598x13,_0xf598x14,_0xf598x15,_0xf598x16,_0xf598x17){if(this[_0xff99[1285]]&& null!= _0xf598x9){var _0xf598x18=this[_0xff99[724]];if(_0xff99[1428]== _0xf598x14){null!= _0xf598x18[_0xff99[603]]&& (_0xf598x3= this[_0xff99[1241]](_0xf598x2,_0xf598x3,_0xf598x18[_0xff99[603]],_0xf598x18[_0xff99[1395]],_0xf598x18[_0xff99[1396]]),_0xf598x2= _0xf598x3[_0xff99[235]],_0xf598x3= _0xf598x3[_0xff99[236]]);8== document[_0xff99[5]]?(_0xf598x2+= _0xf598x18[_0xff99[1126]],_0xf598x3+= _0xf598x18[_0xff99[1125]]):(_0xf598x2*= _0xf598x18[_0xff99[255]],_0xf598x3*= _0xf598x18[_0xff99[255]]);_0xf598x14= 8== document[_0xff99[5]]?document[_0xff99[55]](mxClient[_0xff99[463]]+ _0xff99[1499]):document[_0xff99[55]](_0xff99[485]);_0xf598x14[_0xff99[124]][_0xff99[491]]= _0xff99[492];_0xf598x14[_0xff99[124]][_0xff99[495]]= _0xff99[497];_0xf598x14[_0xff99[124]][_0xff99[361]]= this[_0xff99[1239]](_0xf598x2)+ _0xff99[168];_0xf598x14[_0xff99[124]][_0xff99[125]]= this[_0xff99[1239]](_0xf598x3)+ _0xff99[168];_0xf598x14[_0xff99[124]][_0xff99[499]]= _0xf598x18[_0xff99[255]];var _0xf598x19=document[_0xff99[55]](_0xff99[485]);_0xf598x19[_0xff99[124]][_0xff99[491]]= _0xff99[1500];_0xf598x19[_0xff99[124]][_0xff99[495]]= _0xff99[497];var _0xf598x1a=mxUtils[_0xff99[1501]](_0xf598xa,_0xf598x12),_0xf598x1b=_0xf598x1a[_0xff99[235]],_0xf598x1a=_0xf598x1a[_0xff99[236]];_0xf598x9= this[_0xff99[1404]](_0xf598x9,_0xf598xa,_0xf598x12,_0xf598x15);_0xf598xa= document[_0xff99[55]](_0xff99[485]);_0xf598x13?(!_0xf598x16&& 0< _0xf598x4 && (_0xf598x9[_0xff99[124]][_0xff99[117]]= Math[_0xff99[488]](_0xf598x4)+ _0xff99[168]),_0xf598x9[_0xff99[124]][_0xff99[493]]= _0xff99[1502]):_0xf598x9[_0xff99[124]][_0xff99[493]]= _0xff99[494];_0xf598x13= _0xf598x18[_0xff99[603]]+ (_0xf598x17|| 0);this[_0xff99[1216]]&& 0!= _0xf598x13?(_0xf598xa[_0xff99[124]][_0xff99[495]]= _0xff99[497],_0xf598xa[_0xff99[124]][_0xff99[499]]= _0xff99[500],_0xf598xa[_0xff99[62]](_0xf598x9),8== document[_0xff99[5]]&& _0xff99[529]!= this[_0xff99[813]][_0xff99[301]]?(_0xf598x19[_0xff99[62]](_0xf598xa),_0xf598x14[_0xff99[62]](_0xf598x19)):_0xf598x14[_0xff99[62]](_0xf598xa)):8== document[_0xff99[5]]?(_0xf598x19[_0xff99[62]](_0xf598x9),_0xf598x14[_0xff99[62]](_0xf598x19)):(_0xf598x9[_0xff99[124]][_0xff99[495]]= _0xff99[497],_0xf598x14[_0xff99[62]](_0xf598x9));_0xff99[529]!= this[_0xff99[813]][_0xff99[301]]?(_0xf598x17= document[_0xff99[55]](mxClient[_0xff99[463]]+ _0xff99[1490]),_0xf598x17[_0xff99[1464]]= _0xff99[308],_0xf598x17[_0xff99[1468]]= _0xff99[308],_0xf598x17[_0xff99[62]](_0xf598x14),this[_0xff99[813]][_0xff99[62]](_0xf598x17)):this[_0xff99[813]][_0xff99[62]](_0xf598x14);_0xf598x16?(_0xf598x9[_0xff99[124]][_0xff99[277]]= _0xff99[188],0< _0xf598x4&& (_0xf598x9[_0xff99[124]][_0xff99[117]]= Math[_0xff99[488]](_0xf598x4)+ _0xff99[168]),0< _0xf598x5&& 8== document[_0xff99[5]]&& (_0xf598x9[_0xff99[124]][_0xff99[1503]]= Math[_0xff99[488]](_0xf598x5)+ _0xff99[168])):_0xf598x15&& (_0xf598x9[_0xff99[124]][_0xff99[117]]= _0xf598x4+ _0xff99[168],0< _0xf598x5&& (_0xf598x9[_0xff99[124]][_0xff99[1503]]= Math[_0xff99[488]](_0xf598x5)+ _0xff99[168]));if(this[_0xff99[1216]]&& 0!= _0xf598x13){_0xf598x4= _0xf598x13* (Math[_0xff99[424]]/ 180);_0xf598x13= parseFloat(parseFloat(Math[_0xff99[426]](_0xf598x4))[_0xff99[1293]](8));_0xf598x17= parseFloat(parseFloat(Math[_0xff99[427]](-_0xf598x4))[_0xff99[1293]](8));_0xf598x4%= 2* Math[_0xff99[424]];0> _0xf598x4&& (_0xf598x4+= 2* Math[_0xff99[424]]);_0xf598x4%= Math[_0xff99[424]];_0xf598x4> Math[_0xff99[424]]/ 2&& (_0xf598x4= Math[_0xff99[424]]- _0xf598x4);_0xf598x12= Math[_0xff99[426]](_0xf598x4);var _0xf598x1c=Math[_0xff99[427]](_0xf598x4);8== document[_0xff99[5]]&& (_0xf598x9[_0xff99[124]][_0xff99[495]]= _0xff99[498],_0xf598xa[_0xff99[124]][_0xff99[495]]= _0xff99[498],_0xf598x19[_0xff99[124]][_0xff99[495]]= _0xff99[498]);_0xf598x9[_0xff99[124]][_0xff99[187]]= _0xff99[188];document[_0xff99[112]][_0xff99[62]](_0xf598x9);_0xf598x4= _0xf598x9[_0xff99[359]];_0xf598x19= _0xf598x9[_0xff99[167]];if(mxClient[_0xff99[496]]&& (_0xf598x16|| _0xf598x15)&& _0xf598x19> _0xf598x5){_0xf598x19= _0xf598x5,_0xf598x9[_0xff99[124]][_0xff99[119]]= _0xf598x19+ _0xff99[168]};_0xf598x5= _0xf598x19;_0xf598x16= (_0xf598x5- _0xf598x5* _0xf598x12+ _0xf598x4* -_0xf598x1c)/ 2- _0xf598x17* _0xf598x4* (_0xf598x1b+ 0.5)+ _0xf598x13* _0xf598x5* (_0xf598x1a+ 0.5);_0xf598x15= (_0xf598x4- _0xf598x4* _0xf598x12+ _0xf598x5* -_0xf598x1c)/ 2+ _0xf598x13* _0xf598x4* (_0xf598x1b+ 0.5)+ _0xf598x17* _0xf598x5* (_0xf598x1a+ 0.5);_0xff99[1504]== _0xf598x14[_0xff99[301]]&& _0xff99[529]== this[_0xff99[813]][_0xff99[301]]?(_0xf598x1b= document[_0xff99[55]](_0xff99[485]),_0xf598x1b[_0xff99[124]][_0xff99[495]]= _0xff99[498],_0xf598x1b[_0xff99[124]][_0xff99[491]]= _0xff99[492],_0xf598x1b[_0xff99[124]][_0xff99[361]]= this[_0xff99[1239]](_0xf598x2+ (_0xf598x15- _0xf598x4/ 2)* _0xf598x18[_0xff99[255]])+ _0xff99[168],_0xf598x1b[_0xff99[124]][_0xff99[125]]= this[_0xff99[1239]](_0xf598x3+ (_0xf598x16- _0xf598x5/ 2)* _0xf598x18[_0xff99[255]])+ _0xff99[168],_0xf598x14[_0xff99[265]][_0xff99[62]](_0xf598x1b),_0xf598x1b[_0xff99[62]](_0xf598x14)):(_0xf598x18= 8== document[_0xff99[5]]?1:_0xf598x18[_0xff99[255]],_0xf598x14[_0xff99[124]][_0xff99[361]]= this[_0xff99[1239]](_0xf598x2+ (_0xf598x15- _0xf598x4/ 2)* _0xf598x18)+ _0xff99[168],_0xf598x14[_0xff99[124]][_0xff99[125]]= this[_0xff99[1239]](_0xf598x3+ (_0xf598x16- _0xf598x5/ 2)* _0xf598x18)+ _0xff99[168]);_0xf598xa[_0xff99[124]][_0xff99[347]]= _0xff99[1505]+ _0xf598x13+ _0xff99[1506]+ _0xf598x17+ _0xff99[1507]+ -_0xf598x17+ _0xff99[1508]+ _0xf598x13+ _0xff99[1509];_0xf598xa[_0xff99[124]][_0xff99[1028]]= this[_0xff99[1459]];1> this[_0xff99[724]][_0xff99[1244]]&& (_0xf598xa[_0xff99[124]][_0xff99[347]]+= _0xff99[459]+ 100* this[_0xff99[724]][_0xff99[1244]]+ _0xff99[460]);_0xf598x9[_0xff99[124]][_0xff99[187]]= _0xff99[110];_0xf598xa[_0xff99[62]](_0xf598x9)}else {8!= document[_0xff99[5]]?(_0xf598x9[_0xff99[124]][_0xff99[123]]= _0xff99[125],1> this[_0xff99[724]][_0xff99[1244]]&& (_0xf598x14[_0xff99[124]][_0xff99[347]]= _0xff99[459]+ 100* this[_0xff99[724]][_0xff99[1244]]+ _0xff99[460]),_0xf598x18= _0xf598x9[_0xff99[265]],_0xf598x9[_0xff99[124]][_0xff99[187]]= _0xff99[188],document[_0xff99[112]][_0xff99[62]](_0xf598x9),_0xf598x4= _0xf598x9[_0xff99[359]],_0xf598x19= _0xf598x9[_0xff99[167]],mxClient[_0xff99[496]]&& (_0xf598x16&& _0xf598x19> _0xf598x5)&& (_0xf598x19= _0xf598x5,_0xf598x9[_0xff99[124]][_0xff99[119]]= _0xf598x19+ _0xff99[168]),_0xf598x5= _0xf598x19,_0xf598x9[_0xff99[124]][_0xff99[187]]= _0xff99[110],_0xf598x18[_0xff99[62]](_0xf598x9),_0xf598x14[_0xff99[124]][_0xff99[361]]= this[_0xff99[1239]](_0xf598x2+ _0xf598x4* _0xf598x1b* this[_0xff99[724]][_0xff99[255]])+ _0xff99[168],_0xf598x14[_0xff99[124]][_0xff99[125]]= this[_0xff99[1239]](_0xf598x3+ _0xf598x5* _0xf598x1a* this[_0xff99[724]][_0xff99[255]])+ _0xff99[168]):(1> this[_0xff99[724]][_0xff99[1244]]&& (_0xf598x9[_0xff99[124]][_0xff99[347]]= _0xff99[459]+ 100* this[_0xff99[724]][_0xff99[1244]]+ _0xff99[460]),_0xf598x19[_0xff99[124]][_0xff99[361]]= 100* _0xf598x1b+ _0xff99[229],_0xf598x19[_0xff99[124]][_0xff99[125]]= 100* _0xf598x1a+ _0xff99[229])}}else {this[_0xff99[1436]](_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,mxUtils[_0xff99[321]](_0xf598x9,!1),_0xf598xa,_0xf598x12,_0xf598x13,_0xf598x14,_0xf598x15,_0xf598x16,_0xf598x17)}}};mxVmlCanvas2D[_0xff99[202]][_0xff99[1436]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa,_0xf598x12,_0xf598x13,_0xf598x14,_0xf598x15,_0xf598x16,_0xf598x17){_0xf598x5= this[_0xff99[724]];_0xf598x2= (_0xf598x2+ _0xf598x5[_0xff99[1126]])* _0xf598x5[_0xff99[255]];_0xf598x3= (_0xf598x3+ _0xf598x5[_0xff99[1125]])* _0xf598x5[_0xff99[255]];_0xf598x4= document[_0xff99[55]](mxClient[_0xff99[463]]+ _0xff99[1487]);_0xf598x4[_0xff99[124]][_0xff99[117]]= _0xff99[942];_0xf598x4[_0xff99[124]][_0xff99[119]]= _0xff99[942];_0xf598x4[_0xff99[1464]]= _0xff99[308];_0xf598x15= document[_0xff99[55]](mxClient[_0xff99[463]]+ _0xff99[1469]);_0xf598x15[_0xff99[352]]= _0xf598x5[_0xff99[665]];_0xf598x15[_0xff99[461]]= 100* _0xf598x5[_0xff99[1244]]+ _0xff99[229];_0xf598x4[_0xff99[62]](_0xf598x15);_0xf598x15= document[_0xff99[55]](mxClient[_0xff99[463]]+ _0xff99[1510]);_0xf598x15[_0xff99[1511]]= _0xff99[128];_0xf598x15[_0xff99[6]]= _0xff99[1512]+ this[_0xff99[1239]](0)+ _0xff99[185]+ this[_0xff99[1239]](0)+ _0xff99[1513]+ this[_0xff99[1239]](1)+ _0xff99[185]+ this[_0xff99[1239]](0);_0xf598x4[_0xff99[62]](_0xf598x15);_0xf598x15= document[_0xff99[55]](mxClient[_0xff99[463]]+ _0xff99[1514]);_0xf598x15[_0xff99[124]][_0xff99[103]]= _0xff99[1515]+ _0xf598xa;_0xf598x15[_0xff99[124]][_0xff99[611]]= _0xf598xa;_0xf598x15[_0xff99[124]][_0xff99[486]]= _0xf598x5[_0xff99[486]];_0xf598x15[_0xff99[1516]]= _0xf598x9;_0xf598x15[_0xff99[747]]= _0xff99[128];_0xf598xa= Math[_0xff99[488]](_0xf598x5[_0xff99[487]]* _0xf598x5[_0xff99[255]]/ this[_0xff99[1460]]);_0xf598x15[_0xff99[124]][_0xff99[487]]= _0xf598xa+ _0xff99[168];(_0xf598x5[_0xff99[666]]& mxConstants[_0xff99[1410]])== mxConstants[_0xff99[1410]]&& (_0xf598x15[_0xff99[124]][_0xff99[1452]]= _0xff99[1447]);(_0xf598x5[_0xff99[666]]& mxConstants[_0xff99[1412]])== mxConstants[_0xff99[1412]]&& (_0xf598x15[_0xff99[124]][_0xff99[666]]= _0xff99[1449]);(_0xf598x5[_0xff99[666]]& mxConstants[_0xff99[1414]])== mxConstants[_0xff99[1414]]&& (_0xf598x15[_0xff99[124]][_0xff99[354]]= _0xff99[355]);_0xf598x9= _0xf598x9[_0xff99[224]](_0xff99[192]);_0xf598x5= _0xf598xa+ (_0xf598x9[_0xff99[67]]- 1)* _0xf598xa* mxConstants[_0xff99[490]];_0xf598xa= _0xf598x9= 0;_0xf598x12== mxConstants[_0xff99[482]]?_0xf598xa= -_0xf598x5/ 2:_0xf598x12!= mxConstants[_0xff99[481]]&& (_0xf598xa= _0xf598x5/ 2);null!= _0xf598x17&& (_0xf598x4[_0xff99[124]][_0xff99[603]]= _0xf598x17,_0xf598x12= _0xf598x17* (Math[_0xff99[424]]/ 180),_0xf598x9= Math[_0xff99[427]](_0xf598x12)* _0xf598xa,_0xf598xa*= Math[_0xff99[426]](_0xf598x12));_0xf598x4[_0xff99[62]](_0xf598x15);_0xf598x4[_0xff99[124]][_0xff99[361]]= this[_0xff99[1239]](_0xf598x2- _0xf598x9)+ _0xff99[168];_0xf598x4[_0xff99[124]][_0xff99[125]]= this[_0xff99[1239]](_0xf598x3+ _0xf598xa)+ _0xff99[168];this[_0xff99[813]][_0xff99[62]](_0xf598x4)};mxVmlCanvas2D[_0xff99[202]][_0xff99[1336]]= function(){this[_0xff99[1370]](!1,!0)};mxVmlCanvas2D[_0xff99[202]][_0xff99[1334]]= function(){this[_0xff99[1370]](!0,!1)};mxVmlCanvas2D[_0xff99[202]][_0xff99[1337]]= function(){this[_0xff99[1370]](!0,!0)};function mxGuide(_0xf598x2,_0xf598x3){this[_0xff99[1179]]= _0xf598x2;this[_0xff99[1517]](_0xf598x3)}mxGuide[_0xff99[202]][_0xff99[1179]]= null;mxGuide[_0xff99[202]][_0xff99[1214]]= null;mxGuide[_0xff99[202]][_0xff99[662]]= !0;mxGuide[_0xff99[202]][_0xff99[704]]= !0;mxGuide[_0xff99[202]][_0xff99[1518]]= null;mxGuide[_0xff99[202]][_0xff99[1519]]= null;mxGuide[_0xff99[202]][_0xff99[1517]]= function(_0xf598x2){this[_0xff99[1214]]= _0xf598x2};mxGuide[_0xff99[202]][_0xff99[1019]]= function(_0xf598x2){return !0};mxGuide[_0xff99[202]][_0xff99[1520]]= function(){return this[_0xff99[1179]][_0xff99[1020]]* this[_0xff99[1179]][_0xff99[441]][_0xff99[255]]/ 2};mxGuide[_0xff99[202]][_0xff99[1521]]= function(_0xf598x2){_0xf598x2= new mxPolyline([],mxConstants.GUIDE_COLOR,mxConstants.GUIDE_STROKEWIDTH);_0xf598x2[_0xff99[1522]]= !0;return _0xf598x2};mxGuide[_0xff99[202]][_0xff99[582]]= function(_0xf598x2,_0xf598x3,_0xf598x4){if(null!= this[_0xff99[1214]]&& (this[_0xff99[662]]|| this[_0xff99[704]])&& null!= _0xf598x2&& null!= _0xf598x3){var _0xf598x5=this[_0xff99[1179]][_0xff99[249]]()[_0xff99[513]],_0xf598x9=this[_0xff99[1179]][_0xff99[249]]()[_0xff99[255]],_0xf598xa=_0xf598x3[_0xff99[235]],_0xf598x12=_0xf598x3[_0xff99[236]],_0xf598x13=!1,_0xf598x14=!1,_0xf598x15=this[_0xff99[1520]](),_0xf598x16=_0xf598x15,_0xf598x17=_0xf598x15,_0xf598x15=_0xf598x2[_0xff99[238]]();_0xf598x15[_0xff99[235]]+= _0xf598x3[_0xff99[235]];_0xf598x15[_0xff99[236]]+= _0xf598x3[_0xff99[236]];var _0xf598x18=_0xf598x15[_0xff99[235]],_0xf598x19=_0xf598x15[_0xff99[235]]+ _0xf598x15[_0xff99[117]],_0xf598x1a=_0xf598x15[_0xff99[241]](),_0xf598x1b=_0xf598x15[_0xff99[236]],_0xf598x1c=_0xf598x15[_0xff99[236]]+ _0xf598x15[_0xff99[119]],_0xf598x1d=_0xf598x15[_0xff99[242]]();_0xf598x3= function(_0xf598x3){_0xf598x3+= this[_0xff99[1179]][_0xff99[1136]];var _0xf598x4=!1;Math[_0xff99[425]](_0xf598x3- _0xf598x1a)< _0xf598x16?(_0xf598xa= _0xf598x3- _0xf598x2[_0xff99[241]](),_0xf598x16= Math[_0xff99[425]](_0xf598x3- _0xf598x1a),_0xf598x4= !0):Math[_0xff99[425]](_0xf598x3- _0xf598x18)< _0xf598x16?(_0xf598xa= _0xf598x3- _0xf598x2[_0xff99[235]],_0xf598x16= Math[_0xff99[425]](_0xf598x3- _0xf598x18),_0xf598x4= !0):Math[_0xff99[425]](_0xf598x3- _0xf598x19)< _0xf598x16&& (_0xf598xa= _0xf598x3- _0xf598x2[_0xff99[235]]- _0xf598x2[_0xff99[117]],_0xf598x16= Math[_0xff99[425]](_0xf598x3- _0xf598x19),_0xf598x4= !0);if(_0xf598x4){null== this[_0xff99[1518]]&& (this[_0xff99[1518]]= this[_0xff99[1521]](!0),this[_0xff99[1518]][_0xff99[507]]= this[_0xff99[1179]][_0xff99[507]]!= mxConstants[_0xff99[508]]?mxConstants[_0xff99[1523]]:mxConstants[_0xff99[508]],this[_0xff99[1518]][_0xff99[1229]]= !1,this[_0xff99[1518]][_0xff99[176]](this[_0xff99[1179]][_0xff99[249]]()[_0xff99[1524]]()));var _0xf598x5=this[_0xff99[1179]][_0xff99[526]];_0xf598x3-= this[_0xff99[1179]][_0xff99[1136]];this[_0xff99[1518]][_0xff99[1525]]= [ new mxPoint(_0xf598x3,-this[_0xff99[1179]][_0xff99[1137]]), new mxPoint(_0xf598x3,_0xf598x5[_0xff99[191]]- 3- this[_0xff99[1179]][_0xff99[1137]])]};_0xf598x13= _0xf598x13|| _0xf598x4};for(var _0xf598x15=function(_0xf598x3){_0xf598x3+= this[_0xff99[1179]][_0xff99[1137]];var _0xf598x4=!1;Math[_0xff99[425]](_0xf598x3- _0xf598x1d)< _0xf598x17?(_0xf598x12= _0xf598x3- _0xf598x2[_0xff99[242]](),_0xf598x17= Math[_0xff99[425]](_0xf598x3- _0xf598x1d),_0xf598x4= !0):Math[_0xff99[425]](_0xf598x3- _0xf598x1b)< _0xf598x17?(_0xf598x12= _0xf598x3- _0xf598x2[_0xff99[236]],_0xf598x17= Math[_0xff99[425]](_0xf598x3- _0xf598x1b),_0xf598x4= !0):Math[_0xff99[425]](_0xf598x3- _0xf598x1c)< _0xf598x17&& (_0xf598x12= _0xf598x3- _0xf598x2[_0xff99[236]]- _0xf598x2[_0xff99[119]],_0xf598x17= Math[_0xff99[425]](_0xf598x3- _0xf598x1c),_0xf598x4= !0);if(_0xf598x4){null== this[_0xff99[1519]]&& (this[_0xff99[1519]]= this[_0xff99[1521]](!1),this[_0xff99[1519]][_0xff99[507]]= this[_0xff99[1179]][_0xff99[507]]!= mxConstants[_0xff99[508]]?mxConstants[_0xff99[1523]]:mxConstants[_0xff99[508]],this[_0xff99[1519]][_0xff99[1229]]= !1,this[_0xff99[1519]][_0xff99[176]](this[_0xff99[1179]][_0xff99[249]]()[_0xff99[1524]]()));var _0xf598x5=this[_0xff99[1179]][_0xff99[526]];_0xf598x3-= this[_0xff99[1179]][_0xff99[1137]];this[_0xff99[1519]][_0xff99[1525]]= [ new mxPoint(-this[_0xff99[1179]][_0xff99[1136]],_0xf598x3), new mxPoint(_0xf598x5[_0xff99[1526]]- 3- this[_0xff99[1179]][_0xff99[1136]],_0xf598x3)]};_0xf598x14= _0xf598x14|| _0xf598x4},_0xf598x1e=0;_0xf598x1e< this[_0xff99[1214]][_0xff99[67]];_0xf598x1e++){var _0xf598x1f=this[_0xff99[1214]][_0xf598x1e];null!= _0xf598x1f&& (this[_0xff99[662]]&& (_0xf598x3[_0xff99[239]](this,_0xf598x1f[_0xff99[241]]()),_0xf598x3[_0xff99[239]](this,_0xf598x1f[_0xff99[235]]),_0xf598x3[_0xff99[239]](this,_0xf598x1f[_0xff99[235]]+ _0xf598x1f[_0xff99[117]])),this[_0xff99[704]]&& (_0xf598x15[_0xff99[239]](this,_0xf598x1f[_0xff99[242]]()),_0xf598x15[_0xff99[239]](this,_0xf598x1f[_0xff99[236]]),_0xf598x15[_0xff99[239]](this,_0xf598x1f[_0xff99[236]]+ _0xf598x1f[_0xff99[119]])))};!_0xf598x13&& null!= this[_0xff99[1518]]?this[_0xff99[1518]][_0xff99[252]][_0xff99[124]][_0xff99[187]]= _0xff99[188]:null!= this[_0xff99[1518]]&& (this[_0xff99[1518]][_0xff99[252]][_0xff99[124]][_0xff99[187]]= _0xff99[189],this[_0xff99[1518]][_0xff99[258]]());!_0xf598x14&& null!= this[_0xff99[1519]]?this[_0xff99[1519]][_0xff99[252]][_0xff99[124]][_0xff99[187]]= _0xff99[188]:null!= this[_0xff99[1519]]&& (this[_0xff99[1519]][_0xff99[252]][_0xff99[124]][_0xff99[187]]= _0xff99[189],this[_0xff99[1519]][_0xff99[258]]());_0xf598x4&& (_0xf598x13|| (_0xf598x4= _0xf598x2[_0xff99[235]]- (this[_0xff99[1179]][_0xff99[1021]](_0xf598x2[_0xff99[235]]/ _0xf598x9- _0xf598x5[_0xff99[235]])+ _0xf598x5[_0xff99[235]])* _0xf598x9,_0xf598xa= this[_0xff99[1179]][_0xff99[1021]](_0xf598xa/ _0xf598x9)* _0xf598x9- _0xf598x4),_0xf598x14|| (_0xf598x5= _0xf598x2[_0xff99[236]]- (this[_0xff99[1179]][_0xff99[1021]](_0xf598x2[_0xff99[236]]/ _0xf598x9- _0xf598x5[_0xff99[236]])+ _0xf598x5[_0xff99[236]])* _0xf598x9,_0xf598x12= this[_0xff99[1179]][_0xff99[1021]](_0xf598x12/ _0xf598x9)* _0xf598x9- _0xf598x5));_0xf598x3= new mxPoint(_0xf598xa,_0xf598x12)};return _0xf598x3};mxGuide[_0xff99[202]][_0xff99[801]]= function(){null!= this[_0xff99[1518]]&& (this[_0xff99[1518]][_0xff99[252]][_0xff99[124]][_0xff99[187]]= _0xff99[188]);null!= this[_0xff99[1519]]&& (this[_0xff99[1519]][_0xff99[252]][_0xff99[124]][_0xff99[187]]= _0xff99[188])};mxGuide[_0xff99[202]][_0xff99[515]]= function(){null!= this[_0xff99[1518]]&& (this[_0xff99[1518]][_0xff99[515]](),this[_0xff99[1518]]= null);null!= this[_0xff99[1519]]&& (this[_0xff99[1519]][_0xff99[515]](),this[_0xff99[1519]]= null)};function mxStencil(_0xf598x2){this[_0xff99[1527]]= _0xf598x2;this[_0xff99[1528]]();this[_0xff99[1529]]()}mxStencil[_0xff99[1530]]= !1;mxStencil[_0xff99[202]][_0xff99[1527]]= null;mxStencil[_0xff99[202]][_0xff99[1531]]= null;mxStencil[_0xff99[202]][_0xff99[1322]]= null;mxStencil[_0xff99[202]][_0xff99[1532]]= null;mxStencil[_0xff99[202]][_0xff99[1533]]= null;mxStencil[_0xff99[202]][_0xff99[1534]]= null;mxStencil[_0xff99[202]][_0xff99[1535]]= null;mxStencil[_0xff99[202]][_0xff99[1307]]= null;mxStencil[_0xff99[202]][_0xff99[1528]]= function(){this[_0xff99[1535]]= this[_0xff99[1527]][_0xff99[64]](_0xff99[1536])[0];this[_0xff99[1534]]= this[_0xff99[1527]][_0xff99[64]](_0xff99[1537])[0];this[_0xff99[1532]]= Number(this[_0xff99[1527]][_0xff99[284]](_0xff99[1302])|| 100);this[_0xff99[1533]]= Number(this[_0xff99[1527]][_0xff99[284]](_0xff99[1303])|| 100);var _0xf598x2=this[_0xff99[1527]][_0xff99[284]](_0xff99[1322]);this[_0xff99[1322]]= null!= _0xf598x2?_0xf598x2:_0xff99[1538];_0xf598x2= this[_0xff99[1527]][_0xff99[284]](_0xff99[1307]);this[_0xff99[1307]]= null!= _0xf598x2?_0xf598x2:_0xff99[500]};mxStencil[_0xff99[202]][_0xff99[1529]]= function(){var _0xf598x2=this[_0xff99[1527]][_0xff99[64]](_0xff99[1539])[0];if(null!= _0xf598x2&& (_0xf598x2= mxUtils[_0xff99[1540]](_0xf598x2),null!= _0xf598x2&& 0< _0xf598x2[_0xff99[67]])){this[_0xff99[1531]]= [];for(var _0xf598x3=0;_0xf598x3< _0xf598x2[_0xff99[67]];_0xf598x3++){this[_0xff99[1531]][_0xff99[207]](this[_0xff99[1541]](_0xf598x2[_0xf598x3]))}}};mxStencil[_0xff99[202]][_0xff99[1541]]= function(_0xf598x2){var _0xf598x3=Number(_0xf598x2[_0xff99[284]](_0xff99[235])),_0xf598x4=Number(_0xf598x2[_0xff99[284]](_0xff99[236]));_0xf598x2= _0xff99[500]== _0xf598x2[_0xff99[284]](_0xff99[591]);return new mxConnectionConstraint( new mxPoint(_0xf598x3,_0xf598x4),_0xf598x2)};mxStencil[_0xff99[202]][_0xff99[1542]]= function(_0xf598x2,_0xf598x3,_0xf598x4){_0xf598x3= this[_0xff99[1543]](_0xf598x2,_0xf598x3,_0xf598x4);_0xf598x2= _0xf598x2[_0xff99[284]](_0xff99[1544]);if(mxStencil[_0xff99[1530]]&& null== _0xf598x2|| _0xff99[500]== _0xf598x2){_0xf598x3= mxResources[_0xff99[203]](_0xf598x3)};return _0xf598x3};mxStencil[_0xff99[202]][_0xff99[1543]]= function(_0xf598x2,_0xf598x3,_0xf598x4){_0xf598x3= _0xf598x2[_0xff99[284]](_0xf598x3);null== _0xf598x3&& (_0xf598x2= mxUtils[_0xff99[329]](_0xf598x2),null!= _0xf598x2&& (_0xf598x2= mxUtils[_0xff99[1545]](_0xf598x2),_0xff99[279]== typeof _0xf598x2&& (_0xf598x3= _0xf598x2(_0xf598x4))));return _0xf598x3};mxStencil[_0xff99[202]][_0xff99[1546]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa){this[_0xff99[1547]](_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa,this[_0xff99[1534]],!1);this[_0xff99[1547]](_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa,this[_0xff99[1535]],!0)};mxStencil[_0xff99[202]][_0xff99[1547]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa,_0xf598x12,_0xf598x13){if(null!= _0xf598x12){var _0xf598x14=mxUtils[_0xff99[433]](_0xf598x3[_0xff99[124]],mxConstants.STYLE_DIRECTION,null);_0xf598x4= this[_0xff99[1548]](_0xf598x3[_0xff99[124]],_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa,_0xf598x14);_0xf598x5= Math[_0xff99[243]](_0xf598x4[_0xff99[117]],_0xf598x4[_0xff99[119]]);_0xf598x5= _0xff99[1549]== this[_0xff99[1307]]?Number(mxUtils[_0xff99[1550]](_0xf598x3[_0xff99[124]],mxConstants.STYLE_STROKEWIDTH,1)):Number(this[_0xff99[1307]])* _0xf598x5;_0xf598x2[_0xff99[1250]](_0xf598x5);for(_0xf598x12= _0xf598x12[_0xff99[285]];null!= _0xf598x12;){_0xf598x12[_0xff99[288]]== mxConstants[_0xff99[289]]&& this[_0xff99[1551]](_0xf598x2,_0xf598x3,_0xf598x12,_0xf598x4,_0xf598x13),_0xf598x12= _0xf598x12[_0xff99[287]]}}};mxStencil[_0xff99[202]][_0xff99[1548]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa){_0xf598x2= _0xf598x3;_0xf598x3= _0xf598x5/ this[_0xff99[1532]];var _0xf598x12=_0xf598x9/ this[_0xff99[1533]];if(_0xf598xa= _0xff99[700]== _0xf598xa|| _0xff99[701]== _0xf598xa){_0xf598x12= _0xf598x5/ this[_0xff99[1533]];_0xf598x3= _0xf598x9/ this[_0xff99[1532]];var _0xf598x13=(_0xf598x5- _0xf598x9)/ 2;_0xf598x2+= _0xf598x13;_0xf598x4-= _0xf598x13};_0xff99[1552]== this[_0xff99[1322]]&& (_0xf598x3= _0xf598x12= Math[_0xff99[243]](_0xf598x3,_0xf598x12),_0xf598xa?(_0xf598x2+= (_0xf598x9- this[_0xff99[1532]]* _0xf598x3)/ 2,_0xf598x4+= (_0xf598x5- this[_0xff99[1533]]* _0xf598x12)/ 2):(_0xf598x2+= (_0xf598x5- this[_0xff99[1532]]* _0xf598x3)/ 2,_0xf598x4+= (_0xf598x9- this[_0xff99[1533]]* _0xf598x12)/ 2));return new mxRectangle(_0xf598x2,_0xf598x4,_0xf598x3,_0xf598x12)};mxStencil[_0xff99[202]][_0xff99[1551]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){var _0xf598xa=_0xf598x4[_0xff99[301]],_0xf598x12=_0xf598x5[_0xff99[235]],_0xf598x13=_0xf598x5[_0xff99[236]],_0xf598x14=_0xf598x5[_0xff99[117]],_0xf598x15=_0xf598x5[_0xff99[119]],_0xf598x16=Math[_0xff99[243]](_0xf598x14,_0xf598x15);if(_0xff99[815]== _0xf598xa){_0xf598x2[_0xff99[815]]()}else {if(_0xff99[1210]== _0xf598xa){_0xf598x2[_0xff99[1210]]()}else {if(_0xff99[1215]== _0xf598xa){_0xf598x2[_0xff99[1275]]();for(_0xf598x4= _0xf598x4[_0xff99[285]];null!= _0xf598x4;){_0xf598x4[_0xff99[288]]== mxConstants[_0xff99[289]]&& this[_0xff99[1551]](_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9),_0xf598x4= _0xf598x4[_0xff99[287]]}}else {if(_0xff99[268]== _0xf598xa){_0xf598x2[_0xff99[268]]()}else {if(_0xff99[582]== _0xf598xa){_0xf598x2[_0xff99[1276]](_0xf598x12+ Number(_0xf598x4[_0xff99[284]](_0xff99[235]))* _0xf598x14,_0xf598x13+ Number(_0xf598x4[_0xff99[284]](_0xff99[236]))* _0xf598x15)}else {if(_0xff99[683]== _0xf598xa){_0xf598x2[_0xff99[1277]](_0xf598x12+ Number(_0xf598x4[_0xff99[284]](_0xff99[235]))* _0xf598x14,_0xf598x13+ Number(_0xf598x4[_0xff99[284]](_0xff99[236]))* _0xf598x15)}else {if(_0xff99[1323]== _0xf598xa){_0xf598x2[_0xff99[1278]](_0xf598x12+ Number(_0xf598x4[_0xff99[284]](_0xff99[1324]))* _0xf598x14,_0xf598x13+ Number(_0xf598x4[_0xff99[284]](_0xff99[1325]))* _0xf598x15,_0xf598x12+ Number(_0xf598x4[_0xff99[284]](_0xff99[1326]))* _0xf598x14,_0xf598x13+ Number(_0xf598x4[_0xff99[284]](_0xff99[1327]))* _0xf598x15)}else {if(_0xff99[1328]== _0xf598xa){_0xf598x2[_0xff99[1279]](_0xf598x12+ Number(_0xf598x4[_0xff99[284]](_0xff99[1324]))* _0xf598x14,_0xf598x13+ Number(_0xf598x4[_0xff99[284]](_0xff99[1325]))* _0xf598x15,_0xf598x12+ Number(_0xf598x4[_0xff99[284]](_0xff99[1326]))* _0xf598x14,_0xf598x13+ Number(_0xf598x4[_0xff99[284]](_0xff99[1327]))* _0xf598x15,_0xf598x12+ Number(_0xf598x4[_0xff99[284]](_0xff99[1329]))* _0xf598x14,_0xf598x13+ Number(_0xf598x4[_0xff99[284]](_0xff99[1330]))* _0xf598x15)}else {if(_0xff99[1553]== _0xf598xa){_0xf598x2[_0xff99[1280]](Number(_0xf598x4[_0xff99[284]](_0xff99[1397]))* _0xf598x14,Number(_0xf598x4[_0xff99[284]](_0xff99[1398]))* _0xf598x15,Number(_0xf598x4[_0xff99[284]](_0xff99[1554])),Number(_0xf598x4[_0xff99[284]](_0xff99[1555])),Number(_0xf598x4[_0xff99[284]](_0xff99[1556])),_0xf598x12+ Number(_0xf598x4[_0xff99[284]](_0xff99[235]))* _0xf598x14,_0xf598x13+ Number(_0xf598x4[_0xff99[284]](_0xff99[236]))* _0xf598x15)}else {if(_0xff99[1319]== _0xf598xa){_0xf598x2[_0xff99[1319]](_0xf598x12+ Number(_0xf598x4[_0xff99[284]](_0xff99[235]))* _0xf598x14,_0xf598x13+ Number(_0xf598x4[_0xff99[284]](_0xff99[236]))* _0xf598x15,Number(_0xf598x4[_0xff99[284]](_0xff99[1302]))* _0xf598x14,Number(_0xf598x4[_0xff99[284]](_0xff99[1303]))* _0xf598x15)}else {if(_0xff99[1320]== _0xf598xa){_0xf598x3= _0xf598x4[_0xff99[284]](_0xff99[1492]),0== _0xf598x3&& (_0xf598x3= 100* mxConstants[_0xff99[1557]]),_0xf598x16= Number(_0xf598x4[_0xff99[284]](_0xff99[1302]))* _0xf598x14,_0xf598x5= Number(_0xf598x4[_0xff99[284]](_0xff99[1303]))* _0xf598x15,_0xf598x3= Number(_0xf598x3)/ 100,_0xf598x3= Math[_0xff99[243]](_0xf598x16* _0xf598x3,_0xf598x5* _0xf598x3),_0xf598x2[_0xff99[1320]](_0xf598x12+ Number(_0xf598x4[_0xff99[284]](_0xff99[235]))* _0xf598x14,_0xf598x13+ Number(_0xf598x4[_0xff99[284]](_0xff99[236]))* _0xf598x15,_0xf598x16,_0xf598x5,_0xf598x3,_0xf598x3)}else {if(_0xff99[680]== _0xf598xa){_0xf598x2[_0xff99[680]](_0xf598x12+ Number(_0xf598x4[_0xff99[284]](_0xff99[235]))* _0xf598x14,_0xf598x13+ Number(_0xf598x4[_0xff99[284]](_0xff99[236]))* _0xf598x15,Number(_0xf598x4[_0xff99[284]](_0xff99[1302]))* _0xf598x14,Number(_0xf598x4[_0xff99[284]](_0xff99[1303]))* _0xf598x15)}else {if(_0xff99[618]== _0xf598xa){_0xf598x3= this[_0xff99[1543]](_0xf598x4,_0xff99[390],_0xf598x3),_0xf598x2[_0xff99[618]](_0xf598x12+ Number(_0xf598x4[_0xff99[284]](_0xff99[235]))* _0xf598x14,_0xf598x13+ Number(_0xf598x4[_0xff99[284]](_0xff99[236]))* _0xf598x15,Number(_0xf598x4[_0xff99[284]](_0xff99[1302]))* _0xf598x14,Number(_0xf598x4[_0xff99[284]](_0xff99[1303]))* _0xf598x15,_0xf598x3,!1,_0xff99[500]== _0xf598x4[_0xff99[284]](_0xff99[623]),_0xff99[500]== _0xf598x4[_0xff99[284]](_0xff99[624]))}else {if(_0xff99[963]== _0xf598xa){_0xf598x16= this[_0xff99[1542]](_0xf598x4,_0xff99[1332],_0xf598x3);_0xf598x5= _0xff99[500]== _0xf598x4[_0xff99[284]](_0xff99[704])?-90:0;if(_0xff99[468]== _0xf598x4[_0xff99[284]](_0xff99[1558])){var _0xf598x17=_0xf598x3[_0xff99[603]],_0xf598x18=1== mxUtils[_0xff99[433]](_0xf598x3[_0xff99[124]],mxConstants.STYLE_FLIPH,0);_0xf598x3= 1== mxUtils[_0xff99[433]](_0xf598x3[_0xff99[124]],mxConstants.STYLE_FLIPV,0);_0xf598x5= _0xf598x18&& _0xf598x3?_0xf598x5- _0xf598x17:_0xf598x18|| _0xf598x3?_0xf598x5+ _0xf598x17:_0xf598x5- _0xf598x17};_0xf598x5-= _0xf598x4[_0xff99[284]](_0xff99[603]);_0xf598x2[_0xff99[963]](_0xf598x12+ Number(_0xf598x4[_0xff99[284]](_0xff99[235]))* _0xf598x14,_0xf598x13+ Number(_0xf598x4[_0xff99[284]](_0xff99[236]))* _0xf598x15,0,0,_0xf598x16,_0xf598x4[_0xff99[284]](_0xff99[611])|| _0xff99[361],_0xf598x4[_0xff99[284]](_0xff99[552])|| _0xff99[125],!1,_0xff99[110],!1,!1,_0xf598x5)}else {if(_0xff99[1559]== _0xf598xa){_0xf598x17= mxStencilRegistry[_0xff99[1560]](_0xf598x4[_0xff99[284]](_0xff99[298])),null!= _0xf598x17&& (_0xf598x12+= Number(_0xf598x4[_0xff99[284]](_0xff99[235]))* _0xf598x14,_0xf598x13+= Number(_0xf598x4[_0xff99[284]](_0xff99[236]))* _0xf598x15,_0xf598x16= Number(_0xf598x4[_0xff99[284]](_0xff99[1302]))* _0xf598x14,_0xf598x5= Number(_0xf598x4[_0xff99[284]](_0xff99[1303]))* _0xf598x15,_0xf598x17[_0xff99[1546]](_0xf598x2,_0xf598x3,_0xf598x12,_0xf598x13,_0xf598x16,_0xf598x5))}else {if(_0xff99[1338]== _0xf598xa){_0xf598x2[_0xff99[1337]]()}else {if(_0xff99[1334]== _0xf598xa){_0xf598x2[_0xff99[1334]]()}else {if(_0xff99[1336]== _0xf598xa){_0xf598x2[_0xff99[1336]]()}else {if(_0xff99[1307]== _0xf598xa){_0xf598x2[_0xff99[1250]](Number(_0xf598x4[_0xff99[284]](_0xff99[117]))* _0xf598x16)}else {if(_0xff99[648]== _0xf598xa){_0xf598x2[_0xff99[1251]](_0xff99[500]== _0xf598x4[_0xff99[284]](_0xff99[648]))}else {if(_0xff99[1308]== _0xf598xa){if(_0xf598x4= _0xf598x4[_0xff99[284]](_0xff99[1309]),null!= _0xf598x4){_0xf598x4= _0xf598x4[_0xff99[224]](_0xff99[185]);_0xf598x14= [];for(_0xf598x15= 0;_0xf598x15< _0xf598x4[_0xff99[67]];_0xf598x15++){0< _0xf598x4[_0xf598x15][_0xff99[67]]&& _0xf598x14[_0xff99[207]](Number(_0xf598x4[_0xf598x15])* _0xf598x16)};_0xf598x4= _0xf598x14[_0xff99[234]](_0xff99[185]);_0xf598x2[_0xff99[1252]](_0xf598x4)}}else {_0xff99[1306]== _0xf598xa?_0xf598x2[_0xff99[1249]](_0xf598x4[_0xff99[284]](_0xff99[352])):_0xff99[1310]== _0xf598xa?_0xf598x2[_0xff99[1253]](_0xf598x4[_0xff99[284]](_0xff99[1311])):_0xff99[1312]== _0xf598xa?_0xf598x2[_0xff99[1255]](_0xf598x4[_0xff99[284]](_0xff99[234])):_0xff99[1313]== _0xf598xa?_0xf598x2[_0xff99[1257]](Number(_0xf598x4[_0xff99[284]](_0xff99[1314]))):_0xff99[1298]== _0xf598xa?_0xf598x2[_0xff99[1245]](_0xf598x4[_0xff99[284]](_0xff99[352])):_0xff99[1244]== _0xf598xa?_0xf598x2[_0xff99[1243]](_0xf598x4[_0xff99[284]](_0xff99[1244])):_0xff99[1315]== _0xf598xa?_0xf598x2[_0xff99[1259]](_0xf598x4[_0xff99[284]](_0xff99[352])):_0xff99[1318]== _0xf598xa?_0xf598x2[_0xff99[1266]](_0xf598x4[_0xff99[284]](_0xff99[124])):_0xff99[1287]== _0xf598xa?_0xf598x2[_0xff99[1265]](_0xf598x4[_0xff99[284]](_0xff99[1288])):_0xff99[1289]== _0xf598xa&& _0xf598x2[_0xff99[1264]](Number(_0xf598x4[_0xff99[284]](_0xff99[803]))* _0xf598x16)}}}}}}}}}}}}}}}}}}}}};_0xf598x9&& (_0xff99[1338]== _0xf598xa|| _0xff99[1334]== _0xf598xa|| _0xff99[1336]== _0xf598xa)&& _0xf598x2[_0xff99[1267]](!1)};function mxShape(_0xf598x2){this[_0xff99[1561]]= _0xf598x2;this[_0xff99[1307]]= 1;this[_0xff99[603]]= 0;this[_0xff99[461]]= 100;this[_0xff99[624]]= this[_0xff99[623]]= !1}mxShape[_0xff99[202]][_0xff99[507]]= null;mxShape[_0xff99[202]][_0xff99[255]]= 1;mxShape[_0xff99[202]][_0xff99[1562]]= null;mxShape[_0xff99[202]][_0xff99[1525]]= null;mxShape[_0xff99[202]][_0xff99[252]]= null;mxShape[_0xff99[202]][_0xff99[124]]= null;mxShape[_0xff99[202]][_0xff99[124]]= null;mxShape[_0xff99[202]][_0xff99[1563]]= null;mxShape[_0xff99[202]][_0xff99[1561]]= null;mxShape[_0xff99[202]][_0xff99[1564]]= 6;mxShape[_0xff99[202]][_0xff99[1229]]= !0;mxShape[_0xff99[202]][_0xff99[1565]]= !1;mxShape[_0xff99[202]][_0xff99[1460]]= 1;mxShape[_0xff99[202]][_0xff99[176]]= function(_0xf598x2){null== this[_0xff99[252]]&& (this[_0xff99[252]]= this[_0xff99[385]](_0xf598x2),null!= _0xf598x2&& _0xf598x2[_0xff99[62]](this[_0xff99[252]]))};mxShape[_0xff99[202]][_0xff99[1566]]= function(){return !0};mxShape[_0xff99[202]][_0xff99[1567]]= function(){return !1};mxShape[_0xff99[202]][_0xff99[1568]]= function(){return 1== mxUtils[_0xff99[1454]](Math[_0xff99[160]](1,Math[_0xff99[488]](this[_0xff99[1307]]* this[_0xff99[255]])),2)?0.5:0};mxShape[_0xff99[202]][_0xff99[385]]= function(_0xf598x2){var _0xf598x3=null;return _0xf598x3= null!= _0xf598x2[_0xff99[538]]?this[_0xff99[1569]](_0xf598x2):8== document[_0xff99[5]]|| this[_0xff99[507]]== mxConstants[_0xff99[508]]|| this[_0xff99[507]]!= mxConstants[_0xff99[1523]]&& this[_0xff99[1567]]()?this[_0xff99[1570]](_0xf598x2):this[_0xff99[1571]](_0xf598x2)};mxShape[_0xff99[202]][_0xff99[1569]]= function(){return document[_0xff99[509]](mxConstants.NS_SVG,_0xff99[449])};mxShape[_0xff99[202]][_0xff99[1571]]= function(){var _0xf598x2=document[_0xff99[55]](mxClient[_0xff99[463]]+ _0xff99[1499]);_0xf598x2[_0xff99[124]][_0xff99[491]]= _0xff99[492];return _0xf598x2};mxShape[_0xff99[202]][_0xff99[1570]]= function(){var _0xf598x2=document[_0xff99[55]](_0xff99[485]);_0xf598x2[_0xff99[124]][_0xff99[491]]= _0xff99[492];return _0xf598x2};mxShape[_0xff99[202]][_0xff99[1572]]= function(){this[_0xff99[258]]()};mxShape[_0xff99[202]][_0xff99[258]]= function(){this[_0xff99[1573]]();this[_0xff99[1574]]()?(this[_0xff99[252]][_0xff99[124]][_0xff99[187]]= _0xff99[110],_0xff99[529]== this[_0xff99[252]][_0xff99[301]]&& this[_0xff99[1567]]()?this[_0xff99[1575]]():this[_0xff99[1576]](),this[_0xff99[1577]]()):(this[_0xff99[252]][_0xff99[124]][_0xff99[187]]= _0xff99[188],this[_0xff99[1563]]= null)};mxShape[_0xff99[202]][_0xff99[1573]]= function(){var _0xf598x2=this[_0xff99[1525]];if(null!= _0xf598x2&& 0< _0xf598x2[_0xff99[67]]&& null!= _0xf598x2[0]){this[_0xff99[1562]]= new mxRectangle(Number(_0xf598x2[0][_0xff99[235]]),Number(_0xf598x2[0][_0xff99[236]]),1,1);for(var _0xf598x3=1;_0xf598x3< this[_0xff99[1525]][_0xff99[67]];_0xf598x3++){null!= _0xf598x2[_0xf598x3]&& this[_0xff99[1562]][_0xff99[99]]( new mxRectangle(Number(_0xf598x2[_0xf598x3][_0xff99[235]]),Number(_0xf598x2[_0xf598x3][_0xff99[236]]),1,1))}}};mxShape[_0xff99[202]][_0xff99[1574]]= function(){return null!= this[_0xff99[1562]]&& !isNaN(this[_0xff99[1562]][_0xff99[235]])&& !isNaN(this[_0xff99[1562]][_0xff99[236]])&& !isNaN(this[_0xff99[1562]][_0xff99[117]])&& !isNaN(this[_0xff99[1562]][_0xff99[119]])&& 0< this[_0xff99[1562]][_0xff99[117]]&& 0< this[_0xff99[1562]][_0xff99[119]]};mxShape[_0xff99[202]][_0xff99[1578]]= function(){var _0xf598x2=document[_0xff99[55]](mxClient[_0xff99[463]]+ _0xff99[1499]);_0xf598x2[_0xff99[124]][_0xff99[491]]= _0xff99[492];_0xf598x2[_0xff99[124]][_0xff99[117]]= this[_0xff99[252]][_0xff99[124]][_0xff99[117]];_0xf598x2[_0xff99[124]][_0xff99[119]]= this[_0xff99[252]][_0xff99[124]][_0xff99[119]];return _0xf598x2};mxShape[_0xff99[202]][_0xff99[1576]]= function(){var _0xf598x2=this[_0xff99[1579]]();for(_0xf598x2[_0xff99[1229]]= this[_0xff99[1229]];this[_0xff99[252]][_0xff99[1580]]();){this[_0xff99[252]][_0xff99[266]](this[_0xff99[252]][_0xff99[1581]])};this[_0xff99[1209]](_0xf598x2);this[_0xff99[252]]!= _0xf598x2[_0xff99[813]]&& this[_0xff99[252]][_0xff99[1583]](_0xff99[1582],_0xf598x2[_0xff99[813]][_0xff99[342]]);_0xff99[529]== this[_0xff99[252]][_0xff99[301]]&& 8== document[_0xff99[5]]&& (this[_0xff99[252]][_0xff99[124]][_0xff99[347]]= _0xff99[110],(null== this[_0xff99[1561]]|| !this[_0xff99[1565]])&& mxUtils[_0xff99[1584]](this[_0xff99[252]]));this[_0xff99[1585]](_0xf598x2)};mxShape[_0xff99[202]][_0xff99[1579]]= function(){var _0xf598x2=null,_0xf598x3=null;if(null!= this[_0xff99[252]][_0xff99[538]]){_0xf598x2= new mxSvgCanvas2D(this[_0xff99[252]],!1),_0xf598x2[_0xff99[1345]]= this[_0xff99[1564]],_0xf598x2[_0xff99[1347]]= mxClient[_0xff99[133]]&& !mxClient[_0xff99[75]]&& !mxClient[_0xff99[76]],_0xf598x3= this[_0xff99[1568]](),0!= _0xf598x3?this[_0xff99[252]][_0xff99[57]](_0xff99[535],_0xff99[536]+ _0xf598x3+ _0xff99[537]+ _0xf598x3+ _0xff99[460]):this[_0xff99[252]][_0xff99[1390]](_0xff99[535])}else {this[_0xff99[1586]]();var _0xf598x4=Math[_0xff99[160]](1,Math[_0xff99[488]](this[_0xff99[1562]][_0xff99[117]])),_0xf598x5=Math[_0xff99[160]](1,Math[_0xff99[488]](this[_0xff99[1562]][_0xff99[119]])),_0xf598x3=8== document[_0xff99[5]]&& this[_0xff99[1566]]()?this[_0xff99[1578]]():this[_0xff99[252]],_0xf598x2= new mxVmlCanvas2D(_0xf598x3,!1);_0xff99[110]!= _0xf598x3[_0xff99[337]]&& (_0xf598x3[_0xff99[1462]]= _0xf598x4* this[_0xff99[1460]]+ _0xff99[537]+ _0xf598x5* this[_0xff99[1460]],_0xf598x2[_0xff99[255]](this[_0xff99[1460]]),_0xf598x2[_0xff99[1460]]= this[_0xff99[1460]]);_0xf598x3= this[_0xff99[255]];_0xf598x2[_0xff99[513]](-Math[_0xff99[488]](this[_0xff99[1562]][_0xff99[235]]/ _0xf598x3),-Math[_0xff99[488]](this[_0xff99[1562]][_0xff99[236]]/ _0xf598x3))};return _0xf598x2};mxShape[_0xff99[202]][_0xff99[1586]]= function(){this[_0xff99[252]][_0xff99[124]][_0xff99[361]]= Math[_0xff99[488]](this[_0xff99[1562]][_0xff99[235]])+ _0xff99[168];this[_0xff99[252]][_0xff99[124]][_0xff99[125]]= Math[_0xff99[488]](this[_0xff99[1562]][_0xff99[236]])+ _0xff99[168];var _0xf598x2=Math[_0xff99[160]](1,Math[_0xff99[488]](this[_0xff99[1562]][_0xff99[117]])),_0xf598x3=Math[_0xff99[160]](1,Math[_0xff99[488]](this[_0xff99[1562]][_0xff99[119]]));this[_0xff99[252]][_0xff99[124]][_0xff99[117]]= _0xf598x2+ _0xff99[168];this[_0xff99[252]][_0xff99[124]][_0xff99[119]]= _0xf598x3+ _0xff99[168];this[_0xff99[252]][_0xff99[124]][_0xff99[277]]= _0xff99[189]};mxShape[_0xff99[202]][_0xff99[1585]]= function(_0xf598x2){if(_0xf598x2 instanceof mxSvgCanvas2D){for(var _0xf598x3 in _0xf598x2[_0xff99[1339]]){var _0xf598x4=_0xf598x2[_0xff99[1339]][_0xf598x3];_0xf598x4[_0xff99[1587]]= (_0xf598x4[_0xff99[1587]]|| 0)+ 1};this[_0xff99[1589]](this[_0xff99[1588]]);this[_0xff99[1588]]= _0xf598x2[_0xff99[1339]]}};mxShape[_0xff99[202]][_0xff99[1209]]= function(_0xf598x2){var _0xf598x3=this[_0xff99[255]],_0xf598x4=this[_0xff99[1562]][_0xff99[235]]/ _0xf598x3,_0xf598x5=this[_0xff99[1562]][_0xff99[236]]/ _0xf598x3,_0xf598x9=this[_0xff99[1562]][_0xff99[117]]/ _0xf598x3,_0xf598xa=this[_0xff99[1562]][_0xff99[119]]/ _0xf598x3;if(this[_0xff99[1590]]()){var _0xf598x12=(_0xf598x9- _0xf598xa)/ 2,_0xf598x4=_0xf598x4+ _0xf598x12,_0xf598x5=_0xf598x5- _0xf598x12,_0xf598x12=_0xf598x9,_0xf598x9=_0xf598xa,_0xf598xa=_0xf598x12};this[_0xff99[1591]](_0xf598x2,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa);this[_0xff99[1592]](_0xf598x2,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa);if(null!= this[_0xff99[1561]]){this[_0xff99[1593]](_0xf598x2,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa)}else {if(_0xf598x2[_0xff99[1250]](this[_0xff99[1307]]),null!= this[_0xff99[1525]]){_0xf598x4= [];for(_0xf598x5= 0;_0xf598x5< this[_0xff99[1525]][_0xff99[67]];_0xf598x5++){_0xf598x4[_0xff99[207]]( new mxPoint(this[_0xff99[1525]][_0xf598x5][_0xff99[235]]/ _0xf598x3,this[_0xff99[1525]][_0xf598x5][_0xff99[236]]/ _0xf598x3))};this[_0xff99[1594]](_0xf598x2,_0xf598x4)}else {this[_0xff99[1595]](_0xf598x2,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa)}}};mxShape[_0xff99[202]][_0xff99[1592]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){var _0xf598xa=null;null!= this[_0xff99[124]]&& (_0xf598xa= this[_0xff99[124]][_0xff99[649]]);_0xf598x2[_0xff99[1243]](this[_0xff99[461]]/ 100);null!= this[_0xff99[1596]]&& _0xf598x2[_0xff99[1267]](this[_0xff99[1596]]);null!= this[_0xff99[1522]]&& _0xf598x2[_0xff99[1251]](this[_0xff99[1522]]);null!= _0xf598xa&& _0xf598x2[_0xff99[1252]](_0xf598xa);null!= this[_0xff99[1299]]?(_0xf598x3= this[_0xff99[1597]](_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9),_0xf598x2[_0xff99[1246]](this[_0xff99[1334]],this[_0xff99[1299]],_0xf598x3[_0xff99[235]],_0xf598x3[_0xff99[236]],_0xf598x3[_0xff99[117]],_0xf598x3[_0xff99[119]],this[_0xff99[607]])):_0xf598x2[_0xff99[1245]](this[_0xff99[1334]]);_0xf598x2[_0xff99[1249]](this[_0xff99[1336]])};mxShape[_0xff99[202]][_0xff99[1597]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){return new mxRectangle(_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9)};mxShape[_0xff99[202]][_0xff99[1591]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){_0xf598x2[_0xff99[255]](this[_0xff99[255]]);_0xf598x2[_0xff99[1294]](this[_0xff99[1598]](),this[_0xff99[623]],this[_0xff99[624]],_0xf598x3+ _0xf598x5/ 2,_0xf598x4+ _0xf598x9/ 2)};mxShape[_0xff99[202]][_0xff99[1593]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){this[_0xff99[1565]]&& (this[_0xff99[507]]== mxConstants[_0xff99[508]]?this[_0xff99[1599]](this[_0xff99[252]],_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9):8!= document[_0xff99[5]]&& this[_0xff99[1600]](this[_0xff99[252]]));this[_0xff99[1561]][_0xff99[1546]](_0xf598x2,this,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9)};mxShape[_0xff99[202]][_0xff99[1595]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){this[_0xff99[1601]](_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9);_0xf598x2[_0xff99[1267]](!1);this[_0xff99[1602]](_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9)};mxShape[_0xff99[202]][_0xff99[1601]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){};mxShape[_0xff99[202]][_0xff99[1602]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){};mxShape[_0xff99[202]][_0xff99[1594]]= function(_0xf598x2,_0xf598x3){};mxShape[_0xff99[202]][_0xff99[1603]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=mxUtils[_0xff99[433]](this[_0xff99[124]],mxConstants.STYLE_ARCSIZE,100* mxConstants[_0xff99[1557]])/ 100;return Math[_0xff99[243]](_0xf598x2* _0xf598x4,_0xf598x3* _0xf598x4)};mxShape[_0xff99[202]][_0xff99[1604]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa){var _0xf598x12=Math[_0xff99[430]](this[_0xff99[1307]]/ 2);_0xf598x2[_0xff99[1246]](_0xff99[1605],_0xff99[1605],_0xf598x3,_0xf598x4,_0xf598x5,0.6* _0xf598x9,_0xff99[701],0.9,0.1);_0xf598x2[_0xff99[1275]]();_0xf598xa+= 2* _0xf598x12;this[_0xff99[1606]]?(_0xf598x2[_0xff99[1276]](_0xf598x3- _0xf598x12+ _0xf598xa,_0xf598x4- _0xf598x12),_0xf598x2[_0xff99[1278]](_0xf598x3- _0xf598x12,_0xf598x4- _0xf598x12,_0xf598x3- _0xf598x12,_0xf598x4- _0xf598x12+ _0xf598xa),_0xf598x2[_0xff99[1277]](_0xf598x3- _0xf598x12,_0xf598x4+ 0.4* _0xf598x9),_0xf598x2[_0xff99[1278]](_0xf598x3+ 0.5* _0xf598x5,_0xf598x4+ 0.7* _0xf598x9,_0xf598x3+ _0xf598x5+ _0xf598x12,_0xf598x4+ 0.4* _0xf598x9),_0xf598x2[_0xff99[1277]](_0xf598x3+ _0xf598x5+ _0xf598x12,_0xf598x4- _0xf598x12+ _0xf598xa),_0xf598x2[_0xff99[1278]](_0xf598x3+ _0xf598x5+ _0xf598x12,_0xf598x4- _0xf598x12,_0xf598x3+ _0xf598x5+ _0xf598x12- _0xf598xa,_0xf598x4- _0xf598x12)):(_0xf598x2[_0xff99[1276]](_0xf598x3- _0xf598x12,_0xf598x4- _0xf598x12),_0xf598x2[_0xff99[1277]](_0xf598x3- _0xf598x12,_0xf598x4+ 0.4* _0xf598x9),_0xf598x2[_0xff99[1278]](_0xf598x3+ 0.5* _0xf598x5,_0xf598x4+ 0.7* _0xf598x9,_0xf598x3+ _0xf598x5+ _0xf598x12,_0xf598x4+ 0.4* _0xf598x9),_0xf598x2[_0xff99[1277]](_0xf598x3+ _0xf598x5+ _0xf598x12,_0xf598x4- _0xf598x12));_0xf598x2[_0xff99[268]]();_0xf598x2[_0xff99[1334]]()};mxShape[_0xff99[202]][_0xff99[183]]= function(_0xf598x2){this[_0xff99[724]]= _0xf598x2;this[_0xff99[124]]= _0xf598x2[_0xff99[124]];if(null!= this[_0xff99[124]]){this[_0xff99[1334]]= mxUtils[_0xff99[433]](this[_0xff99[124]],mxConstants.STYLE_FILLCOLOR,this[_0xff99[1334]]);this[_0xff99[1299]]= mxUtils[_0xff99[433]](this[_0xff99[124]],mxConstants.STYLE_GRADIENTCOLOR,this[_0xff99[1299]]);this[_0xff99[607]]= mxUtils[_0xff99[433]](this[_0xff99[124]],mxConstants.STYLE_GRADIENT_DIRECTION,this[_0xff99[607]]);this[_0xff99[461]]= mxUtils[_0xff99[433]](this[_0xff99[124]],mxConstants.STYLE_OPACITY,this[_0xff99[461]]);this[_0xff99[1336]]= mxUtils[_0xff99[433]](this[_0xff99[124]],mxConstants.STYLE_STROKECOLOR,this[_0xff99[1336]]);this[_0xff99[1307]]= mxUtils[_0xff99[1550]](this[_0xff99[124]],mxConstants.STYLE_STROKEWIDTH,this[_0xff99[1307]]);this[_0xff99[657]]= mxUtils[_0xff99[433]](this[_0xff99[124]],mxConstants.STYLE_SPACING,this[_0xff99[657]]);this[_0xff99[644]]= mxUtils[_0xff99[1550]](this[_0xff99[124]],mxConstants.STYLE_STARTSIZE,this[_0xff99[644]]);this[_0xff99[643]]= mxUtils[_0xff99[1550]](this[_0xff99[124]],mxConstants.STYLE_ENDSIZE,this[_0xff99[643]]);this[_0xff99[642]]= mxUtils[_0xff99[433]](this[_0xff99[124]],mxConstants.STYLE_STARTARROW,this[_0xff99[642]]);this[_0xff99[641]]= mxUtils[_0xff99[433]](this[_0xff99[124]],mxConstants.STYLE_ENDARROW,this[_0xff99[641]]);this[_0xff99[603]]= mxUtils[_0xff99[433]](this[_0xff99[124]],mxConstants.STYLE_ROTATION,this[_0xff99[603]]);this[_0xff99[663]]= mxUtils[_0xff99[433]](this[_0xff99[124]],mxConstants.STYLE_DIRECTION,this[_0xff99[663]]);this[_0xff99[623]]= 1== mxUtils[_0xff99[433]](this[_0xff99[124]],mxConstants.STYLE_FLIPH,0);this[_0xff99[624]]= 1== mxUtils[_0xff99[433]](this[_0xff99[124]],mxConstants.STYLE_FLIPV,0);null!= this[_0xff99[1561]]&& (this[_0xff99[623]]= 1== mxUtils[_0xff99[433]](this[_0xff99[124]],_0xff99[1607],0)|| this[_0xff99[623]],this[_0xff99[624]]= 1== mxUtils[_0xff99[433]](this[_0xff99[124]],_0xff99[1608],0)|| this[_0xff99[624]]);if(_0xff99[700]== this[_0xff99[663]]|| _0xff99[701]== this[_0xff99[663]]){_0xf598x2= this[_0xff99[623]],this[_0xff99[623]]= this[_0xff99[624]],this[_0xff99[624]]= _0xf598x2};this[_0xff99[1596]]= 1== mxUtils[_0xff99[433]](this[_0xff99[124]],mxConstants.STYLE_SHADOW,this[_0xff99[1596]]);this[_0xff99[1522]]= 1== mxUtils[_0xff99[433]](this[_0xff99[124]],mxConstants.STYLE_DASHED,this[_0xff99[1522]]);this[_0xff99[1606]]= 1== mxUtils[_0xff99[433]](this[_0xff99[124]],mxConstants.STYLE_ROUNDED,this[_0xff99[1606]]);this[_0xff99[617]]= 1== mxUtils[_0xff99[433]](this[_0xff99[124]],mxConstants.STYLE_GLASS,this[_0xff99[617]]);_0xff99[130]== this[_0xff99[1334]]&& (this[_0xff99[1334]]= null);_0xff99[130]== this[_0xff99[1299]]&& (this[_0xff99[1299]]= null);_0xff99[130]== this[_0xff99[1336]]&& (this[_0xff99[1336]]= null)}};mxShape[_0xff99[202]][_0xff99[1609]]= function(_0xf598x2){null== _0xf598x2&& (_0xf598x2= _0xff99[110]);this[_0xff99[270]]= _0xf598x2;null!= this[_0xff99[252]]&& (this[_0xff99[252]][_0xff99[124]][_0xff99[270]]= _0xf598x2)};mxShape[_0xff99[202]][_0xff99[1610]]= function(){return this[_0xff99[270]]};mxShape[_0xff99[202]][_0xff99[1577]]= function(){if(null!= this[_0xff99[1562]]){var _0xf598x2=this[_0xff99[1611]]();if(null!= _0xf598x2){this[_0xff99[1612]](_0xf598x2);var _0xf598x3=this[_0xff99[1598]]();0!= _0xf598x3&& (_0xf598x2= mxUtils[_0xff99[1613]](_0xf598x2,_0xf598x3));_0xf598x2[_0xff99[235]]= Math[_0xff99[519]](_0xf598x2[_0xff99[235]]);_0xf598x2[_0xff99[236]]= Math[_0xff99[519]](_0xf598x2[_0xff99[236]]);_0xf598x2[_0xff99[117]]= Math[_0xff99[430]](_0xf598x2[_0xff99[117]]);_0xf598x2[_0xff99[119]]= Math[_0xff99[430]](_0xf598x2[_0xff99[119]])};this[_0xff99[1563]]= _0xf598x2}};mxShape[_0xff99[202]][_0xff99[1611]]= function(){var _0xf598x2=this[_0xff99[1562]][_0xff99[238]]();if(this[_0xff99[1590]]()){var _0xf598x3=(_0xf598x2[_0xff99[117]]- _0xf598x2[_0xff99[119]])/ 2;_0xf598x2[_0xff99[235]]+= _0xf598x3;_0xf598x2[_0xff99[236]]-= _0xf598x3;_0xf598x3= _0xf598x2[_0xff99[117]];_0xf598x2[_0xff99[117]]= _0xf598x2[_0xff99[119]];_0xf598x2[_0xff99[119]]= _0xf598x3};return _0xf598x2};mxShape[_0xff99[202]][_0xff99[1612]]= function(_0xf598x2){this[_0xff99[1596]]&& (_0xf598x2[_0xff99[117]]+= Math[_0xff99[430]](mxConstants[_0xff99[1237]]* this[_0xff99[255]]),_0xf598x2[_0xff99[119]]+= Math[_0xff99[430]](mxConstants[_0xff99[1238]]* this[_0xff99[255]]));var _0xf598x3=Math[_0xff99[430]](this[_0xff99[1307]]* this[_0xff99[255]]);_0xf598x2[_0xff99[244]](Math[_0xff99[430]](_0xf598x3/ 2))};mxShape[_0xff99[202]][_0xff99[1590]]= function(){return null== this[_0xff99[1561]]&& (_0xff99[700]== this[_0xff99[663]]|| _0xff99[701]== this[_0xff99[663]])};mxShape[_0xff99[202]][_0xff99[1614]]= function(){return null!= this[_0xff99[603]]?this[_0xff99[603]]:0};mxShape[_0xff99[202]][_0xff99[1615]]= function(){var _0xf598x2=this[_0xff99[1614]]();1!= mxUtils[_0xff99[433]](this[_0xff99[124]],mxConstants.STYLE_HORIZONTAL,1)&& (_0xf598x2+= mxText[_0xff99[202]][_0xff99[1616]]);return _0xf598x2};mxShape[_0xff99[202]][_0xff99[1598]]= function(){var _0xf598x2=this[_0xff99[1614]]();null!= this[_0xff99[663]]&& (_0xff99[700]== this[_0xff99[663]]?_0xf598x2+= 270:_0xff99[703]== this[_0xff99[663]]?_0xf598x2+= 180:_0xff99[701]== this[_0xff99[663]]&& (_0xf598x2+= 90));return _0xf598x2};mxShape[_0xff99[202]][_0xff99[1599]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){_0xf598x2= document[_0xff99[509]](mxConstants.NS_SVG,_0xff99[1319]);_0xf598x2[_0xff99[57]](_0xff99[235],_0xf598x3);_0xf598x2[_0xff99[57]](_0xff99[236],_0xf598x4);_0xf598x2[_0xff99[57]](_0xff99[117],_0xf598x5);_0xf598x2[_0xff99[57]](_0xff99[119],_0xf598x9);_0xf598x2[_0xff99[57]](_0xff99[1334],_0xff99[130]);_0xf598x2[_0xff99[57]](_0xff99[1336],_0xff99[130]);_0xf598x2[_0xff99[57]](_0xff99[1377],_0xff99[1378]);this[_0xff99[252]][_0xff99[62]](_0xf598x2)};mxShape[_0xff99[202]][_0xff99[1600]]= function(_0xf598x2){_0xf598x2[_0xff99[124]][_0xff99[1617]]= _0xff99[1618]+ mxClient[_0xff99[88]]+ _0xff99[1619]};mxShape[_0xff99[202]][_0xff99[1589]]= function(_0xf598x2){if(null!= _0xf598x2){for(var _0xf598x3 in _0xf598x2){var _0xf598x4=_0xf598x2[_0xf598x3];_0xf598x4[_0xff99[1587]]= (_0xf598x4[_0xff99[1587]]|| 0)- 1;0== _0xf598x4[_0xff99[1587]]&& null!= _0xf598x4[_0xff99[265]]&& _0xf598x4[_0xff99[265]][_0xff99[266]](_0xf598x4)}}};mxShape[_0xff99[202]][_0xff99[515]]= function(){null!= this[_0xff99[252]]&& (mxEvent[_0xff99[762]](this[_0xff99[252]]),null!= this[_0xff99[252]][_0xff99[265]]&& this[_0xff99[252]][_0xff99[265]][_0xff99[266]](this[_0xff99[252]]),this[_0xff99[252]]= null);this[_0xff99[1589]](this[_0xff99[1588]]);this[_0xff99[1588]]= null};var mxStencilRegistry={stencils:[],addStencil:function(_0xf598x2,_0xf598x3){mxStencilRegistry[_0xff99[1620]][_0xf598x2]= _0xf598x3},getStencil:function(_0xf598x2){return mxStencilRegistry[_0xff99[1620]][_0xf598x2]}},mxMarker={markers:[],addMarker:function(_0xf598x2,_0xf598x3){mxMarker[_0xff99[1621]][_0xf598x2]= _0xf598x3},createMarker:function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa,_0xf598x12,_0xf598x13,_0xf598x14,_0xf598x15){var _0xf598x16=mxMarker[_0xff99[1621]][_0xf598x4];return null!= _0xf598x16?_0xf598x16(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa,_0xf598x12,_0xf598x13,_0xf598x14,_0xf598x15):null}};(function(){function _0xf598x2(_0xf598x2,_0xf598x3,_0xf598x9,_0xf598xa,_0xf598x12,_0xf598x13,_0xf598x14,_0xf598x15,_0xf598x16,_0xf598x17){_0xf598x3= 1.118* _0xf598x12* _0xf598x16;_0xf598x15= 1.118* _0xf598x13* _0xf598x16;_0xf598x12*= _0xf598x14+ _0xf598x16;_0xf598x13*= _0xf598x14+ _0xf598x16;var _0xf598x18=_0xf598xa[_0xff99[238]]();_0xf598x18[_0xff99[235]]-= _0xf598x3;_0xf598x18[_0xff99[236]]-= _0xf598x15;_0xf598x14= _0xf598x9!= mxConstants[_0xff99[1622]]?1:0.75;_0xf598xa[_0xff99[235]]+= -_0xf598x12* _0xf598x14 - _0xf598x3;_0xf598xa[_0xff99[236]]+= -_0xf598x13* _0xf598x14 - _0xf598x15;return function(){_0xf598x2[_0xff99[1275]]();_0xf598x2[_0xff99[1276]](_0xf598x18[_0xff99[235]],_0xf598x18[_0xff99[236]]);_0xf598x2[_0xff99[1277]](_0xf598x18[_0xff99[235]]- _0xf598x12- _0xf598x13/ 2,_0xf598x18[_0xff99[236]]- _0xf598x13+ _0xf598x12/ 2);_0xf598x9== mxConstants[_0xff99[1622]]&& _0xf598x2[_0xff99[1277]](_0xf598x18[_0xff99[235]]- 3* _0xf598x12/ 4,_0xf598x18[_0xff99[236]]- 3* _0xf598x13/ 4);_0xf598x2[_0xff99[1277]](_0xf598x18[_0xff99[235]]+ _0xf598x13/ 2- _0xf598x12,_0xf598x18[_0xff99[236]]- _0xf598x13- _0xf598x12/ 2);_0xf598x2[_0xff99[268]]();_0xf598x17?_0xf598x2[_0xff99[1337]]():_0xf598x2[_0xff99[1336]]()}}function _0xf598x3(_0xf598x2,_0xf598x3,_0xf598x9,_0xf598xa,_0xf598x12,_0xf598x13,_0xf598x14,_0xf598x15,_0xf598x16,_0xf598x17){_0xf598x15= _0xf598x9== mxConstants[_0xff99[1623]]?0.7071:0.9862;_0xf598x3= _0xf598x12* _0xf598x16* _0xf598x15;_0xf598x15*= _0xf598x13* _0xf598x16;_0xf598x12*= _0xf598x14+ _0xf598x16;_0xf598x13*= _0xf598x14+ _0xf598x16;var _0xf598x18=_0xf598xa[_0xff99[238]]();_0xf598x18[_0xff99[235]]-= _0xf598x3;_0xf598x18[_0xff99[236]]-= _0xf598x15;_0xf598xa[_0xff99[235]]+= -_0xf598x12- _0xf598x3;_0xf598xa[_0xff99[236]]+= -_0xf598x13- _0xf598x15;var _0xf598x19=_0xf598x9== mxConstants[_0xff99[1623]]?2:3.4;return function(){_0xf598x2[_0xff99[1275]]();_0xf598x2[_0xff99[1276]](_0xf598x18[_0xff99[235]],_0xf598x18[_0xff99[236]]);_0xf598x2[_0xff99[1277]](_0xf598x18[_0xff99[235]]- _0xf598x12/ 2- _0xf598x13/ _0xf598x19,_0xf598x18[_0xff99[236]]+ _0xf598x12/ _0xf598x19- _0xf598x13/ 2);_0xf598x2[_0xff99[1277]](_0xf598x18[_0xff99[235]]- _0xf598x12,_0xf598x18[_0xff99[236]]- _0xf598x13);_0xf598x2[_0xff99[1277]](_0xf598x18[_0xff99[235]]- _0xf598x12/ 2+ _0xf598x13/ _0xf598x19,_0xf598x18[_0xff99[236]]- _0xf598x13/ 2- _0xf598x12/ _0xf598x19);_0xf598x2[_0xff99[268]]();_0xf598x17?_0xf598x2[_0xff99[1337]]():_0xf598x2[_0xff99[1336]]()}}mxMarker[_0xff99[1624]](_0xff99[693],_0xf598x2);mxMarker[_0xff99[1624]](_0xff99[694],_0xf598x2);mxMarker[_0xff99[1624]](_0xff99[392],function(_0xf598x2,_0xf598x3,_0xf598x9,_0xf598xa,_0xf598x12,_0xf598x13,_0xf598x14,_0xf598x15,_0xf598x16,_0xf598x17){_0xf598x3= 1.118* _0xf598x12* _0xf598x16;_0xf598x9= 1.118* _0xf598x13* _0xf598x16;_0xf598x12*= _0xf598x14+ _0xf598x16;_0xf598x13*= _0xf598x14+ _0xf598x16;var _0xf598x18=_0xf598xa[_0xff99[238]]();_0xf598x18[_0xff99[235]]-= _0xf598x3;_0xf598x18[_0xff99[236]]-= _0xf598x9;_0xf598xa[_0xff99[235]]+= 2* -_0xf598x3;_0xf598xa[_0xff99[236]]+= 2* -_0xf598x9;return function(){_0xf598x2[_0xff99[1275]]();_0xf598x2[_0xff99[1276]](_0xf598x18[_0xff99[235]]- _0xf598x12- _0xf598x13/ 2,_0xf598x18[_0xff99[236]]- _0xf598x13+ _0xf598x12/ 2);_0xf598x2[_0xff99[1277]](_0xf598x18[_0xff99[235]],_0xf598x18[_0xff99[236]]);_0xf598x2[_0xff99[1277]](_0xf598x18[_0xff99[235]]+ _0xf598x13/ 2- _0xf598x12,_0xf598x18[_0xff99[236]]- _0xf598x13- _0xf598x12/ 2);_0xf598x2[_0xff99[1336]]()}});mxMarker[_0xff99[1624]](_0xff99[695],function(_0xf598x2,_0xf598x3,_0xf598x9,_0xf598xa,_0xf598x12,_0xf598x13,_0xf598x14,_0xf598x15,_0xf598x16,_0xf598x17){var _0xf598x18=_0xf598x14/ 2,_0xf598x19=_0xf598xa[_0xff99[238]]();_0xf598xa[_0xff99[235]]-= _0xf598x12* _0xf598x18;_0xf598xa[_0xff99[236]]-= _0xf598x13* _0xf598x18;return function(){_0xf598x2[_0xff99[680]](_0xf598x19[_0xff99[235]]- _0xf598x18,_0xf598x19[_0xff99[236]]- _0xf598x18,_0xf598x14,_0xf598x14);_0xf598x17?_0xf598x2[_0xff99[1337]]():_0xf598x2[_0xff99[1336]]()}});mxMarker[_0xff99[1624]](_0xff99[696],_0xf598x3);mxMarker[_0xff99[1624]](_0xff99[697],_0xf598x3)})();function mxActor(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){mxShape[_0xff99[239]](this);this[_0xff99[1562]]= _0xf598x2;this[_0xff99[1334]]= _0xf598x3;this[_0xff99[1336]]= _0xf598x4;this[_0xff99[1307]]= null!= _0xf598x5?_0xf598x5:1}mxUtils[_0xff99[1284]](mxActor,mxShape);mxActor[_0xff99[202]][_0xff99[1595]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){_0xf598x2[_0xff99[513]](_0xf598x3,_0xf598x4);_0xf598x2[_0xff99[1275]]();this[_0xff99[1625]](_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9);_0xf598x2[_0xff99[1337]]()};mxActor[_0xff99[202]][_0xff99[1625]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){_0xf598x3= _0xf598x5/ 3;_0xf598x2[_0xff99[1276]](0,_0xf598x9);_0xf598x2[_0xff99[1279]](0,3* _0xf598x9/ 5,0,2* _0xf598x9/ 5,_0xf598x5/ 2,2* _0xf598x9/ 5);_0xf598x2[_0xff99[1279]](_0xf598x5/ 2- _0xf598x3,2* _0xf598x9/ 5,_0xf598x5/ 2- _0xf598x3,0,_0xf598x5/ 2,0);_0xf598x2[_0xff99[1279]](_0xf598x5/ 2+ _0xf598x3,0,_0xf598x5/ 2+ _0xf598x3,2* _0xf598x9/ 5,_0xf598x5/ 2,2* _0xf598x9/ 5);_0xf598x2[_0xff99[1279]](_0xf598x5,2* _0xf598x9/ 5,_0xf598x5,3* _0xf598x9/ 5,_0xf598x5,_0xf598x9);_0xf598x2[_0xff99[268]]()};function mxCloud(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){mxActor[_0xff99[239]](this);this[_0xff99[1562]]= _0xf598x2;this[_0xff99[1334]]= _0xf598x3;this[_0xff99[1336]]= _0xf598x4;this[_0xff99[1307]]= null!= _0xf598x5?_0xf598x5:1}mxUtils[_0xff99[1284]](mxCloud,mxActor);mxCloud[_0xff99[202]][_0xff99[1625]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){_0xf598x2[_0xff99[1276]](0.25* _0xf598x5,0.25* _0xf598x9);_0xf598x2[_0xff99[1279]](0.05* _0xf598x5,0.25* _0xf598x9,0,0.5* _0xf598x9,0.16* _0xf598x5,0.55* _0xf598x9);_0xf598x2[_0xff99[1279]](0,0.66* _0xf598x9,0.18* _0xf598x5,0.9* _0xf598x9,0.31* _0xf598x5,0.8* _0xf598x9);_0xf598x2[_0xff99[1279]](0.4* _0xf598x5,_0xf598x9,0.7* _0xf598x5,_0xf598x9,0.8* _0xf598x5,0.8* _0xf598x9);_0xf598x2[_0xff99[1279]](_0xf598x5,0.8* _0xf598x9,_0xf598x5,0.6* _0xf598x9,0.875* _0xf598x5,0.5* _0xf598x9);_0xf598x2[_0xff99[1279]](_0xf598x5,0.3* _0xf598x9,0.8* _0xf598x5,0.1* _0xf598x9,0.625* _0xf598x5,0.2* _0xf598x9);_0xf598x2[_0xff99[1279]](0.5* _0xf598x5,0.05* _0xf598x9,0.3* _0xf598x5,0.05* _0xf598x9,0.25* _0xf598x5,0.25* _0xf598x9);_0xf598x2[_0xff99[268]]()};function mxRectangleShape(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){mxShape[_0xff99[239]](this);this[_0xff99[1562]]= _0xf598x2;this[_0xff99[1334]]= _0xf598x3;this[_0xff99[1336]]= _0xf598x4;this[_0xff99[1307]]= null!= _0xf598x5?_0xf598x5:1}mxUtils[_0xff99[1284]](mxRectangleShape,mxShape);mxRectangleShape[_0xff99[202]][_0xff99[1567]]= function(){return !this[_0xff99[1606]]&& !this[_0xff99[617]] && 0== this[_0xff99[603]]};mxRectangleShape[_0xff99[202]][_0xff99[1601]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){if(this[_0xff99[1606]]){var _0xf598xa=mxUtils[_0xff99[433]](this[_0xff99[124]],mxConstants.STYLE_ARCSIZE,100* mxConstants[_0xff99[1557]])/ 100,_0xf598xa=Math[_0xff99[243]](_0xf598x5* _0xf598xa,_0xf598x9* _0xf598xa);_0xf598x2[_0xff99[1320]](_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa,_0xf598xa)}else {_0xf598x2[_0xff99[1319]](_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9)};_0xf598x2[_0xff99[1337]]()};mxRectangleShape[_0xff99[202]][_0xff99[1602]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){this[_0xff99[617]]&& this[_0xff99[1604]](_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,this[_0xff99[1603]](_0xf598x5+ this[_0xff99[1307]],_0xf598x9+ this[_0xff99[1307]]))};mxRectangleShape[_0xff99[202]][_0xff99[1575]]= function(){this[_0xff99[1626]](this[_0xff99[252]]);this[_0xff99[1627]](this[_0xff99[252]]);this[_0xff99[1628]](this[_0xff99[252]])};mxRectangleShape[_0xff99[202]][_0xff99[1626]]= function(_0xf598x2){var _0xf598x3=9<= document[_0xff99[5]]?0:Math[_0xff99[430]](this[_0xff99[1307]]* this[_0xff99[255]]);_0xf598x2[_0xff99[124]][_0xff99[1629]]= Math[_0xff99[160]](1,_0xf598x3)+ _0xff99[168];_0xf598x2[_0xff99[124]][_0xff99[277]]= _0xff99[188];_0xf598x2[_0xff99[124]][_0xff99[361]]= Math[_0xff99[488]](this[_0xff99[1562]][_0xff99[235]]- _0xf598x3/ 2)+ _0xff99[168];_0xf598x2[_0xff99[124]][_0xff99[125]]= Math[_0xff99[488]](this[_0xff99[1562]][_0xff99[236]]- _0xf598x3/ 2)+ _0xff99[168];_0xff99[462]== document[_0xff99[135]]&& (_0xf598x3= -_0xf598x3);_0xf598x2[_0xff99[124]][_0xff99[117]]= Math[_0xff99[488]](Math[_0xff99[160]](0,this[_0xff99[1562]][_0xff99[117]]+ _0xf598x3))+ _0xff99[168];_0xf598x2[_0xff99[124]][_0xff99[119]]= Math[_0xff99[488]](Math[_0xff99[160]](0,this[_0xff99[1562]][_0xff99[119]]+ _0xf598x3))+ _0xff99[168]};mxRectangleShape[_0xff99[202]][_0xff99[1628]]= function(_0xf598x2){var _0xf598x3=this[_0xff99[1336]];null!= _0xf598x3&& _0xf598x3!= mxConstants[_0xff99[217]]?(_0xf598x2[_0xff99[124]][_0xff99[1630]]= _0xf598x3,this[_0xff99[1522]]?_0xf598x2[_0xff99[124]][_0xff99[465]]= _0xff99[648]:0< this[_0xff99[1307]]&& (_0xf598x2[_0xff99[124]][_0xff99[465]]= _0xff99[1631]),_0xf598x2[_0xff99[124]][_0xff99[1629]]= Math[_0xff99[160]](1,Math[_0xff99[430]](this[_0xff99[1307]]* this[_0xff99[255]]))+ _0xff99[168]):_0xf598x2[_0xff99[124]][_0xff99[1629]]= _0xff99[946];_0xf598x3= this[_0xff99[1334]];null!= _0xf598x3&& _0xf598x3!= mxConstants[_0xff99[217]]?(_0xf598x2[_0xff99[124]][_0xff99[1028]]= _0xf598x3,_0xf598x2[_0xff99[124]][_0xff99[1617]]= _0xff99[130]):this[_0xff99[1229]]?_0xf598x2[_0xff99[124]][_0xff99[1028]]= _0xff99[1373]:8== document[_0xff99[5]]?mxUtils[_0xff99[1584]](_0xf598x2):this[_0xff99[1600]](_0xf598x2)};mxRectangleShape[_0xff99[202]][_0xff99[1627]]= function(_0xf598x2){var _0xf598x3=_0xff99[110];100> this[_0xff99[461]]&& (_0xf598x3+= _0xff99[459]+ this[_0xff99[461]]+ _0xff99[460]);this[_0xff99[1596]]&& (_0xf598x3+= _0xff99[1632]+ Math[_0xff99[488]](mxConstants[_0xff99[1237]]* this[_0xff99[255]])+ _0xff99[1633]+ Math[_0xff99[488]](mxConstants[_0xff99[1238]]* this[_0xff99[255]])+ _0xff99[1634]+ mxConstants[_0xff99[1235]]+ _0xff99[1635]);if(this[_0xff99[1299]]){var _0xf598x4=this[_0xff99[1334]],_0xf598x5=this[_0xff99[1299]],_0xf598x9=_0xff99[468],_0xf598xa={east:0,south:1,west:2,north:3},_0xf598x12=null!= this[_0xff99[663]]?_0xf598xa[this[_0xff99[663]]]:0;null!= this[_0xff99[607]]&& (_0xf598x12= mxUtils[_0xff99[1454]](_0xf598x12+ _0xf598xa[this[_0xff99[607]]]- 1,4));1== _0xf598x12?(_0xf598x9= _0xff99[500],_0xf598xa= _0xf598x4,_0xf598x4= _0xf598x5,_0xf598x5= _0xf598xa):2== _0xf598x12?(_0xf598xa= _0xf598x4,_0xf598x4= _0xf598x5,_0xf598x5= _0xf598xa):3== _0xf598x12&& (_0xf598x9= _0xff99[500]);_0xf598x3+= _0xff99[1636]+ _0xf598x4+ _0xff99[1637]+ _0xf598x5+ _0xff99[1638]+ _0xf598x9+ _0xff99[1635]};_0xf598x2[_0xff99[124]][_0xff99[347]]= _0xf598x3};function mxEllipse(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){mxShape[_0xff99[239]](this);this[_0xff99[1562]]= _0xf598x2;this[_0xff99[1334]]= _0xf598x3;this[_0xff99[1336]]= _0xf598x4;this[_0xff99[1307]]= null!= _0xf598x5?_0xf598x5:1}mxUtils[_0xff99[1284]](mxEllipse,mxShape);mxEllipse[_0xff99[202]][_0xff99[1595]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){_0xf598x2[_0xff99[680]](_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9);_0xf598x2[_0xff99[1337]]()};function mxDoubleEllipse(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){mxShape[_0xff99[239]](this);this[_0xff99[1562]]= _0xf598x2;this[_0xff99[1334]]= _0xf598x3;this[_0xff99[1336]]= _0xf598x4;this[_0xff99[1307]]= null!= _0xf598x5?_0xf598x5:1}mxUtils[_0xff99[1284]](mxDoubleEllipse,mxShape);mxDoubleEllipse[_0xff99[202]][_0xff99[1460]]= 10;mxDoubleEllipse[_0xff99[202]][_0xff99[1601]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){_0xf598x2[_0xff99[680]](_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9);_0xf598x2[_0xff99[1337]]()};mxDoubleEllipse[_0xff99[202]][_0xff99[1602]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){var _0xf598xa=Math[_0xff99[243]](4,Math[_0xff99[243]](_0xf598x5/ 5,_0xf598x9/ 5));_0xf598x5-= 2* _0xf598xa;_0xf598x9-= 2* _0xf598xa;0< _0xf598x5&& 0< _0xf598x9&& _0xf598x2[_0xff99[680]](_0xf598x3+ _0xf598xa,_0xf598x4+ _0xf598xa,_0xf598x5,_0xf598x9);_0xf598x2[_0xff99[1336]]()};function mxRhombus(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){mxShape[_0xff99[239]](this);this[_0xff99[1562]]= _0xf598x2;this[_0xff99[1334]]= _0xf598x3;this[_0xff99[1336]]= _0xf598x4;this[_0xff99[1307]]= null!= _0xf598x5?_0xf598x5:1}mxUtils[_0xff99[1284]](mxRhombus,mxShape);mxRhombus[_0xff99[202]][_0xff99[1595]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){var _0xf598xa=_0xf598x5/ 2,_0xf598x12=_0xf598x9/ 2;_0xf598x2[_0xff99[1275]]();_0xf598x2[_0xff99[1276]](_0xf598x3+ _0xf598xa,_0xf598x4);_0xf598x2[_0xff99[1277]](_0xf598x3+ _0xf598x5,_0xf598x4+ _0xf598x12);_0xf598x2[_0xff99[1277]](_0xf598x3+ _0xf598xa,_0xf598x4+ _0xf598x9);_0xf598x2[_0xff99[1277]](_0xf598x3,_0xf598x4+ _0xf598x12);_0xf598x2[_0xff99[268]]();_0xf598x2[_0xff99[1337]]()};function mxPolyline(_0xf598x2,_0xf598x3,_0xf598x4){mxShape[_0xff99[239]](this);this[_0xff99[1525]]= _0xf598x2;this[_0xff99[1336]]= _0xf598x3;this[_0xff99[1307]]= null!= _0xf598x4?_0xf598x4:1}mxUtils[_0xff99[1284]](mxPolyline,mxShape);mxPolyline[_0xff99[202]][_0xff99[1614]]= function(){return 0};mxPolyline[_0xff99[202]][_0xff99[1594]]= function(_0xf598x2,_0xf598x3){this[_0xff99[1639]](_0xf598x2,_0xf598x3,this[_0xff99[1606]])};mxPolyline[_0xff99[202]][_0xff99[1639]]= function(_0xf598x2,_0xf598x3,_0xf598x4){var _0xf598x5=mxUtils[_0xff99[433]](this[_0xff99[124]],mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/ 2,_0xf598x9=_0xf598x3[0],_0xf598xa=_0xf598x3[_0xf598x3[_0xff99[67]]- 1];_0xf598x2[_0xff99[1275]]();_0xf598x2[_0xff99[1276]](_0xf598x9[_0xff99[235]],_0xf598x9[_0xff99[236]]);for(var _0xf598x12=1;_0xf598x12< _0xf598x3[_0xff99[67]]- 1;_0xf598x12++){var _0xf598x13=_0xf598x3[_0xf598x12],_0xf598x14=_0xf598x9[_0xff99[235]]- _0xf598x13[_0xff99[235]],_0xf598x9=_0xf598x9[_0xff99[236]]- _0xf598x13[_0xff99[236]];if(_0xf598x4&& _0xf598x12< _0xf598x3[_0xff99[67]]- 1&& (0!= _0xf598x14|| 0!= _0xf598x9)){var _0xf598x15=Math[_0xff99[428]](_0xf598x14* _0xf598x14+ _0xf598x9* _0xf598x9),_0xf598x14=_0xf598x14* Math[_0xff99[243]](_0xf598x5,_0xf598x15/ 2)/ _0xf598x15,_0xf598x9=_0xf598x9* Math[_0xff99[243]](_0xf598x5,_0xf598x15/ 2)/ _0xf598x15;_0xf598x2[_0xff99[1277]](_0xf598x13[_0xff99[235]]+ _0xf598x14,_0xf598x13[_0xff99[236]]+ _0xf598x9);_0xf598x9= _0xf598x3[_0xf598x12+ 1];_0xf598x14= _0xf598x9[_0xff99[235]]- _0xf598x13[_0xff99[235]];_0xf598x9= _0xf598x9[_0xff99[236]]- _0xf598x13[_0xff99[236]];_0xf598x15= Math[_0xff99[160]](1,Math[_0xff99[428]](_0xf598x14* _0xf598x14+ _0xf598x9* _0xf598x9));_0xf598x14= _0xf598x14* Math[_0xff99[243]](_0xf598x5,_0xf598x15/ 2)/ _0xf598x15;_0xf598x9= _0xf598x9* Math[_0xff99[243]](_0xf598x5,_0xf598x15/ 2)/ _0xf598x15;_0xf598x14= _0xf598x13[_0xff99[235]]+ _0xf598x14;_0xf598x9= _0xf598x13[_0xff99[236]]+ _0xf598x9;_0xf598x2[_0xff99[1278]](_0xf598x13[_0xff99[235]],_0xf598x13[_0xff99[236]],_0xf598x14,_0xf598x9);_0xf598x13= new mxPoint(_0xf598x14,_0xf598x9)}else {_0xf598x2[_0xff99[1277]](_0xf598x13[_0xff99[235]],_0xf598x13[_0xff99[236]])};_0xf598x9= _0xf598x13};_0xf598x2[_0xff99[1277]](_0xf598xa[_0xff99[235]],_0xf598xa[_0xff99[236]]);_0xf598x2[_0xff99[1336]]()};function mxArrow(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa,_0xf598x12){mxShape[_0xff99[239]](this);this[_0xff99[1525]]= _0xf598x2;this[_0xff99[1334]]= _0xf598x3;this[_0xff99[1336]]= _0xf598x4;this[_0xff99[1307]]= null!= _0xf598x5?_0xf598x5:1;this[_0xff99[1640]]= null!= _0xf598x9?_0xf598x9:mxConstants[_0xff99[1641]];this[_0xff99[657]]= null!= _0xf598xa?_0xf598xa:mxConstants[_0xff99[1642]];this[_0xff99[643]]= null!= _0xf598x12?_0xf598x12:mxConstants[_0xff99[1643]]}mxUtils[_0xff99[1284]](mxArrow,mxShape);mxArrow[_0xff99[202]][_0xff99[1594]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=mxConstants[_0xff99[1642]],_0xf598x5=mxConstants[_0xff99[1641]],_0xf598x9=mxConstants[_0xff99[1643]],_0xf598xa=_0xf598x3[0],_0xf598x12=_0xf598x3[_0xf598x3[_0xff99[67]]- 1],_0xf598x13=_0xf598x12[_0xff99[235]]- _0xf598xa[_0xff99[235]],_0xf598x14=_0xf598x12[_0xff99[236]]- _0xf598xa[_0xff99[236]],_0xf598x15=Math[_0xff99[428]](_0xf598x13* _0xf598x13+ _0xf598x14* _0xf598x14),_0xf598x16=_0xf598x15- 2* _0xf598x4- _0xf598x9,_0xf598x13=_0xf598x13/ _0xf598x15,_0xf598x14=_0xf598x14/ _0xf598x15,_0xf598x15=_0xf598x5* _0xf598x14/ 3,_0xf598x5=-_0xf598x5* _0xf598x13 / 3,_0xf598x9=_0xf598xa[_0xff99[235]]- _0xf598x15/ 2+ _0xf598x4* _0xf598x13,_0xf598xa=_0xf598xa[_0xff99[236]]- _0xf598x5/ 2+ _0xf598x4* _0xf598x14,_0xf598x17=_0xf598x9+ _0xf598x15,_0xf598x18=_0xf598xa+ _0xf598x5,_0xf598x19=_0xf598x17+ _0xf598x16* _0xf598x13,_0xf598x16=_0xf598x18+ _0xf598x16* _0xf598x14,_0xf598x1a=_0xf598x19+ _0xf598x15,_0xf598x1b=_0xf598x16+ _0xf598x5,_0xf598x1c=_0xf598x1a- 3* _0xf598x15,_0xf598x1d=_0xf598x1b- 3* _0xf598x5;_0xf598x2[_0xff99[1275]]();_0xf598x2[_0xff99[1276]](_0xf598x9,_0xf598xa);_0xf598x2[_0xff99[1277]](_0xf598x17,_0xf598x18);_0xf598x2[_0xff99[1277]](_0xf598x19,_0xf598x16);_0xf598x2[_0xff99[1277]](_0xf598x1a,_0xf598x1b);_0xf598x2[_0xff99[1277]](_0xf598x12[_0xff99[235]]- _0xf598x4* _0xf598x13,_0xf598x12[_0xff99[236]]- _0xf598x4* _0xf598x14);_0xf598x2[_0xff99[1277]](_0xf598x1c,_0xf598x1d);_0xf598x2[_0xff99[1277]](_0xf598x1c+ _0xf598x15,_0xf598x1d+ _0xf598x5);_0xf598x2[_0xff99[268]]();_0xf598x2[_0xff99[1337]]()};function mxText(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa,_0xf598x12,_0xf598x13,_0xf598x14,_0xf598x15,_0xf598x16,_0xf598x17,_0xf598x18,_0xf598x19,_0xf598x1a,_0xf598x1b,_0xf598x1c,_0xf598x1d,_0xf598x1e,_0xf598x1f){mxShape[_0xff99[239]](this);this[_0xff99[131]]= _0xf598x2;this[_0xff99[1562]]= _0xf598x3;this[_0xff99[352]]= null!= _0xf598x9?_0xf598x9:_0xff99[586];this[_0xff99[611]]= null!= _0xf598x4?_0xf598x4:_0xff99[110];this[_0xff99[552]]= null!= _0xf598x5?_0xf598x5:_0xff99[110];this[_0xff99[1288]]= null!= _0xf598xa?_0xf598xa:mxConstants[_0xff99[484]];this[_0xff99[803]]= null!= _0xf598x12?_0xf598x12:mxConstants[_0xff99[483]];this[_0xff99[666]]= null!= _0xf598x13?_0xf598x13:mxConstants[_0xff99[1644]];this[_0xff99[657]]= parseInt(_0xf598x14|| 2);this[_0xff99[658]]= this[_0xff99[657]]+ parseInt(_0xf598x15|| 0);this[_0xff99[661]]= this[_0xff99[657]]+ parseInt(_0xf598x16|| 0);this[_0xff99[660]]= this[_0xff99[657]]+ parseInt(_0xf598x17|| 0);this[_0xff99[659]]= this[_0xff99[657]]+ parseInt(_0xf598x18|| 0);this[_0xff99[662]]= null!= _0xf598x19?_0xf598x19:!0;this[_0xff99[1537]]= _0xf598x1a;this[_0xff99[467]]= _0xf598x1b;this[_0xff99[1333]]= null!= _0xf598x1c?_0xf598x1c:!1;this[_0xff99[1645]]= null!= _0xf598x1d?_0xf598x1d:!1;this[_0xff99[277]]= null!= _0xf598x1e?_0xf598x1e:_0xff99[189];this[_0xff99[629]]= null!= _0xf598x1f?_0xf598x1f:0;this[_0xff99[603]]= 0}mxUtils[_0xff99[1284]](mxText,mxShape);mxText[_0xff99[202]][_0xff99[1646]]= 0;mxText[_0xff99[202]][_0xff99[1647]]= 0;mxText[_0xff99[202]][_0xff99[1648]]= 0;mxText[_0xff99[202]][_0xff99[1649]]= 0;mxText[_0xff99[202]][_0xff99[1650]]= !0;mxText[_0xff99[202]][_0xff99[1616]]= -90;mxText[_0xff99[202]][_0xff99[1651]]= !0;mxText[_0xff99[202]][_0xff99[1652]]= !1;mxText[_0xff99[202]][_0xff99[1566]]= function(){return !1};mxText[_0xff99[202]][_0xff99[1567]]= function(){return 8!= document[_0xff99[5]]};mxText[_0xff99[202]][_0xff99[1568]]= function(){return 0};mxText[_0xff99[202]][_0xff99[1574]]= function(){return null!= this[_0xff99[1562]]&& !isNaN(this[_0xff99[1562]][_0xff99[235]])&& !isNaN(this[_0xff99[1562]][_0xff99[236]])&& !isNaN(this[_0xff99[1562]][_0xff99[117]])&& !isNaN(this[_0xff99[1562]][_0xff99[119]])};mxText[_0xff99[202]][_0xff99[1577]]= function(){var _0xf598x2=this[_0xff99[252]];8== document[_0xff99[5]]&& null!= _0xf598x2[_0xff99[285]]&& (_0xf598x2= _0xf598x2[_0xff99[285]],null!= _0xf598x2[_0xff99[285]]&& (_0xf598x2= _0xf598x2[_0xff99[285]]));this[_0xff99[1563]]= this[_0xff99[1562]][_0xff99[238]]();var _0xf598x3=this[_0xff99[1615]]();if(!this[_0xff99[1652]]&& null!= _0xf598x2 && _0xff99[1334]!= this[_0xff99[277]] && (!this[_0xff99[1645]]|| !this[_0xff99[1651]])){var _0xf598x4=null,_0xf598x5=null;if(null!= _0xf598x2[_0xff99[538]]){if(null!= _0xf598x2[_0xff99[285]]&& null!= _0xf598x2[_0xff99[285]][_0xff99[285]]&& _0xff99[1435]== _0xf598x2[_0xff99[285]][_0xff99[285]][_0xff99[301]]){_0xf598x2= _0xf598x2[_0xff99[285]][_0xff99[285]],_0xf598x4= this[_0xff99[1333]]?this[_0xff99[1562]][_0xff99[117]]:parseInt(_0xf598x2[_0xff99[284]](_0xff99[117]))* this[_0xff99[255]],_0xf598x5= parseInt(_0xf598x2[_0xff99[284]](_0xff99[119]))* this[_0xff99[255]]}else {_0xf598x3= _0xf598x2[_0xff99[1451]]();if(0== _0xf598x3[_0xff99[117]]&& 0== _0xf598x3[_0xff99[119]]){return};this[_0xff99[1563]]= new mxRectangle(_0xf598x3[_0xff99[235]],_0xf598x3[_0xff99[236]],_0xf598x3[_0xff99[117]],_0xf598x3[_0xff99[119]]);_0xf598x3= 0}}else {_0xf598x5= this[_0xff99[724]][_0xff99[441]][_0xff99[1653]],null!= this[_0xff99[359]]&& null!= this[_0xff99[167]]?(_0xf598x4= this[_0xff99[1333]]?this[_0xff99[1562]][_0xff99[117]]:this[_0xff99[359]]* this[_0xff99[255]],_0xf598x5= this[_0xff99[167]]* this[_0xff99[255]]):null!= _0xf598x5?(this[_0xff99[1441]](_0xf598x5),this[_0xff99[1654]](_0xf598x5),mxUtils[_0xff99[1331]](this[_0xff99[131]])?_0xf598x5[_0xff99[339]]= this[_0xff99[131]][_0xff99[342]]:(_0xf598x4= this[_0xff99[1650]]?this[_0xff99[131]][_0xff99[230]](/\n/g,_0xff99[1453]):this[_0xff99[131]],_0xf598x5[_0xff99[339]]= _0xf598x4),_0xf598x4= this[_0xff99[1333]]?this[_0xff99[1562]][_0xff99[117]]:_0xf598x5[_0xff99[359]]* this[_0xff99[255]],_0xf598x5= _0xf598x5[_0xff99[167]]* this[_0xff99[255]]):(_0xf598x4= this[_0xff99[1333]]?this[_0xff99[1562]][_0xff99[117]]:_0xf598x2[_0xff99[359]]* this[_0xff99[255]],_0xf598x5= _0xf598x2[_0xff99[167]]* this[_0xff99[255]])};null!= _0xf598x4&& null!= _0xf598x5&& (this[_0xff99[1563]]= new mxRectangle(this[_0xff99[1562]][_0xff99[235]]+ this[_0xff99[1655]][_0xff99[235]]* _0xf598x4,this[_0xff99[1562]][_0xff99[236]]+ this[_0xff99[1655]][_0xff99[236]]* _0xf598x5,_0xf598x4,_0xf598x5))}else {this[_0xff99[1563]][_0xff99[235]]+= this[_0xff99[1655]][_0xff99[235]]* this[_0xff99[1563]][_0xff99[117]],this[_0xff99[1563]][_0xff99[236]]+= this[_0xff99[1655]][_0xff99[236]]* this[_0xff99[1563]][_0xff99[119]]};null!= this[_0xff99[1563]]&& (0!= _0xf598x3&& (_0xf598x3= mxUtils[_0xff99[1613]](this[_0xff99[1563]],_0xf598x3),this[_0xff99[1563]][_0xff99[235]]= _0xf598x3[_0xff99[235]],this[_0xff99[1563]][_0xff99[236]]= _0xf598x3[_0xff99[236]],mxClient[_0xff99[496]]|| (this[_0xff99[1563]][_0xff99[117]]= _0xf598x3[_0xff99[117]],this[_0xff99[1563]][_0xff99[119]]= _0xf598x3[_0xff99[119]])),this[_0xff99[1563]][_0xff99[235]]= Math[_0xff99[519]](this[_0xff99[1563]][_0xff99[235]]),this[_0xff99[1563]][_0xff99[236]]= Math[_0xff99[519]](this[_0xff99[1563]][_0xff99[236]]),this[_0xff99[1563]][_0xff99[117]]= Math[_0xff99[430]](this[_0xff99[1563]][_0xff99[117]]),this[_0xff99[1563]][_0xff99[119]]= Math[_0xff99[430]](this[_0xff99[1563]][_0xff99[119]]))};mxText[_0xff99[202]][_0xff99[1598]]= function(){return 0};mxText[_0xff99[202]][_0xff99[1615]]= function(){return null!= this[_0xff99[724]]&& null!= this[_0xff99[724]][_0xff99[253]]?this[_0xff99[724]][_0xff99[253]][_0xff99[1615]]():0};mxText[_0xff99[202]][_0xff99[1590]]= function(){return !this[_0xff99[662]]&& null!= this[_0xff99[724]] && this[_0xff99[724]][_0xff99[441]][_0xff99[1179]][_0xff99[251]][_0xff99[1193]](this[_0xff99[724]][_0xff99[246]])};mxText[_0xff99[202]][_0xff99[1592]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){mxShape[_0xff99[202]][_0xff99[1592]][_0xff99[183]](this,arguments);_0xf598x2[_0xff99[1259]](this[_0xff99[352]]);_0xf598x2[_0xff99[1260]](this[_0xff99[1537]]);_0xf598x2[_0xff99[1262]](this[_0xff99[467]]);_0xf598x2[_0xff99[1265]](this[_0xff99[1288]]);_0xf598x2[_0xff99[1264]](this[_0xff99[803]]);_0xf598x2[_0xff99[1266]](this[_0xff99[666]])};mxText[_0xff99[202]][_0xff99[1586]]= function(){this[_0xff99[252]][_0xff99[124]][_0xff99[361]]= Math[_0xff99[488]](this[_0xff99[1562]][_0xff99[235]])+ _0xff99[168];this[_0xff99[252]][_0xff99[124]][_0xff99[125]]= Math[_0xff99[488]](this[_0xff99[1562]][_0xff99[236]])+ _0xff99[168];this[_0xff99[252]][_0xff99[124]][_0xff99[117]]= _0xff99[942];this[_0xff99[252]][_0xff99[124]][_0xff99[119]]= _0xff99[942];this[_0xff99[252]][_0xff99[124]][_0xff99[277]]= _0xff99[189]};mxText[_0xff99[202]][_0xff99[1209]]= function(_0xf598x2){var _0xf598x3=this[_0xff99[255]],_0xf598x4=this[_0xff99[1562]][_0xff99[235]]/ _0xf598x3,_0xf598x5=this[_0xff99[1562]][_0xff99[236]]/ _0xf598x3,_0xf598x9=this[_0xff99[1562]][_0xff99[117]]/ _0xf598x3,_0xf598x3=this[_0xff99[1562]][_0xff99[119]]/ _0xf598x3;this[_0xff99[1591]](_0xf598x2,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598x3);this[_0xff99[1592]](_0xf598x2,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598x3);var _0xf598xa=mxUtils[_0xff99[1331]](this[_0xff99[131]])|| this[_0xff99[507]]== mxConstants[_0xff99[1656]],_0xf598x12=_0xf598xa|| _0xf598x2 instanceof mxVmlCanvas2D?_0xff99[1428]:_0xff99[110],_0xf598x13=this[_0xff99[131]];!_0xf598xa&& _0xff99[1428]== _0xf598x12 && (_0xf598x13= mxUtils[_0xff99[321]](_0xf598x13,!1));_0xf598x13= !mxUtils[_0xff99[1331]](this[_0xff99[131]])&& this[_0xff99[1650]] && _0xff99[1428]== _0xf598x12?_0xf598x13[_0xff99[230]](/\n/g,_0xff99[1453]):_0xf598x13;_0xf598x2[_0xff99[963]](_0xf598x4,_0xf598x5,_0xf598x9,_0xf598x3,_0xf598x13,this[_0xff99[611]],this[_0xff99[552]],this[_0xff99[1333]],_0xf598x12,_0xff99[1334]== this[_0xff99[277]],this[_0xff99[1645]],this[_0xff99[1615]]())};mxText[_0xff99[202]][_0xff99[1575]]= function(){var _0xf598x2=this[_0xff99[252]][_0xff99[124]];_0xf598x2[_0xff99[461]]= 1> this[_0xff99[461]]?this[_0xff99[461]]:_0xff99[110];_0xf598x2[_0xff99[277]]= _0xff99[110];_0xf598x2[_0xff99[117]]= _0xff99[110];_0xf598x2[_0xff99[119]]= _0xff99[110];this[_0xff99[1441]](this[_0xff99[252]]);this[_0xff99[1654]](this[_0xff99[252]]);this[_0xff99[1657]]();this[_0xff99[167]]= this[_0xff99[359]]= null;null!= mxClient[_0xff99[73]]?this[_0xff99[1658]]():this[_0xff99[1659]]()};mxText[_0xff99[202]][_0xff99[1658]]= function(){var _0xf598x2=this[_0xff99[1615]](),_0xf598x3=this[_0xff99[252]][_0xff99[124]],_0xf598x4=this[_0xff99[1655]][_0xff99[235]],_0xf598x5=this[_0xff99[1655]][_0xff99[236]];0!= _0xf598x2?(_0xf598x3[mxClient[_0xff99[73]]+ _0xff99[1660]]= 100* -_0xf598x4+ _0xff99[1661]+ 100* -_0xf598x5+ _0xff99[229],_0xf598x3[mxClient[_0xff99[73]]+ _0xff99[1662]]= _0xff99[536]+ 100* _0xf598x4+ _0xff99[1663]+ 100* _0xf598x5+ _0xff99[1664]+ this[_0xff99[255]]+ _0xff99[1665]+ _0xf598x2+ _0xff99[1666]):(_0xf598x3[mxClient[_0xff99[73]]+ _0xff99[1660]]= _0xff99[1667],_0xf598x3[mxClient[_0xff99[73]]+ _0xff99[1662]]= _0xff99[1402]+ this[_0xff99[255]]+ _0xff99[1393]+ 100* _0xf598x4+ _0xff99[1663]+ 100* _0xf598x5+ _0xff99[1668]);_0xf598x3[_0xff99[361]]= Math[_0xff99[488]](this[_0xff99[1562]][_0xff99[235]])+ _0xff99[168];_0xf598x3[_0xff99[125]]= Math[_0xff99[488]](this[_0xff99[1562]][_0xff99[236]])+ _0xff99[168]};mxText[_0xff99[202]][_0xff99[1659]]= function(){var _0xf598x2=this[_0xff99[252]][_0xff99[124]],_0xf598x3=this[_0xff99[1655]][_0xff99[235]],_0xf598x4=this[_0xff99[1655]][_0xff99[236]],_0xf598x5=this[_0xff99[255]];_0xf598x2[_0xff99[347]]= _0xff99[110];var _0xf598x9=0,_0xf598xa=0,_0xf598x12=null!= this[_0xff99[724]]?this[_0xff99[724]][_0xff99[441]][_0xff99[1653]]:null;if(null!= _0xf598x12){_0xf598x12[_0xff99[124]][_0xff99[277]]= _0xff99[110];_0xf598x12[_0xff99[124]][_0xff99[119]]= _0xff99[110];_0xf598x12[_0xff99[124]][_0xff99[117]]= _0xff99[110];this[_0xff99[1441]](_0xf598x12);this[_0xff99[1654]](_0xf598x12);if(mxUtils[_0xff99[1331]](this[_0xff99[131]])){_0xf598x12[_0xff99[339]]= this[_0xff99[131]][_0xff99[342]]}else {var _0xf598x13=this[_0xff99[131]];this[_0xff99[507]]!= mxConstants[_0xff99[1656]]&& (_0xf598x13= mxUtils[_0xff99[321]](_0xf598x13,!1));_0xf598x13= this[_0xff99[1650]]?_0xf598x13[_0xff99[230]](/\n/g,_0xff99[1453]):_0xf598x13;_0xf598x12[_0xff99[339]]= _0xf598x13};_0xf598x9= _0xf598x12[_0xff99[359]]+ 2;_0xf598xa= _0xf598x12[_0xff99[167]]+ 2}else {_0xf598x9= this[_0xff99[252]][_0xff99[359]],_0xf598xa= this[_0xff99[252]][_0xff99[167]]+ 1};this[_0xff99[359]]= _0xf598x9;this[_0xff99[167]]= _0xf598xa;_0xf598x12= this[_0xff99[1562]][_0xff99[117]]/ _0xf598x5;_0xf598x13= this[_0xff99[1562]][_0xff99[119]]/ _0xf598x5;mxClient[_0xff99[496]]&& (this[_0xff99[1645]]|| _0xff99[1334]== this[_0xff99[277]])&& 0< _0xf598x13?(_0xf598x13= Math[_0xff99[243]](_0xf598x13,_0xf598xa),_0xf598x2[_0xff99[119]]= Math[_0xff99[488]](_0xf598x13+ 1)+ _0xff99[168]):_0xf598x13= _0xf598xa;_0xff99[1334]!= this[_0xff99[277]]&& (mxClient[_0xff99[496]]&& (this[_0xff99[1645]]|| this[_0xff99[1333]])&& 0< _0xf598x12?(_0xf598x12= Math[_0xff99[243]](_0xf598x12,_0xf598x9),_0xf598x2[_0xff99[117]]= Math[_0xff99[488]](_0xf598x12)+ _0xff99[168]):_0xf598x12= _0xf598x9);var _0xf598x13=_0xf598x13* _0xf598x5,_0xf598x12=_0xf598x12* _0xf598x5,_0xf598x9=this[_0xff99[1615]]()* (Math[_0xff99[424]]/ 180),_0xf598xa=parseFloat(parseFloat(Math[_0xff99[426]](_0xf598x9))[_0xff99[1293]](8)),_0xf598x14=parseFloat(parseFloat(Math[_0xff99[427]](-_0xf598x9))[_0xff99[1293]](8)),_0xf598x9=_0xf598x9% (2* Math[_0xff99[424]]);0> _0xf598x9&& (_0xf598x9+= 2* Math[_0xff99[424]]);_0xf598x9%= Math[_0xff99[424]];_0xf598x9> Math[_0xff99[424]]/ 2&& (_0xf598x9= Math[_0xff99[424]]- _0xf598x9);var _0xf598x15=Math[_0xff99[426]](_0xf598x9),_0xf598x16=Math[_0xff99[427]](-_0xf598x9),_0xf598x3=_0xf598x12* -(_0xf598x3+ 0.5),_0xf598x4=_0xf598x13* -(_0xf598x4+ 0.5),_0xf598x17=(_0xf598x13- _0xf598x13* _0xf598x15+ _0xf598x12* _0xf598x16)/ 2+ _0xf598x14* _0xf598x3- _0xf598xa* _0xf598x4;0!= _0xf598x9&& (_0xf598x2[_0xff99[347]]= _0xff99[1505]+ _0xf598xa+ _0xff99[1506]+ _0xf598x14+ _0xff99[1507]+ -_0xf598x14+ _0xff99[1508]+ _0xf598xa+ _0xff99[1509]);_0xf598x2[_0xff99[499]]= _0xf598x5;_0xf598x2[_0xff99[361]]= Math[_0xff99[488]](this[_0xff99[1562]][_0xff99[235]]+ ((_0xf598x12- _0xf598x12* _0xf598x15+ _0xf598x13* _0xf598x16)/ 2- _0xf598xa* _0xf598x3- _0xf598x14* _0xf598x4)- _0xf598x12/ 2)+ _0xff99[168];_0xf598x2[_0xff99[125]]= Math[_0xff99[488]](this[_0xff99[1562]][_0xff99[236]]+ _0xf598x17- _0xf598x13/ 2)+ _0xff99[168]};mxText[_0xff99[202]][_0xff99[1657]]= function(){if(mxUtils[_0xff99[1331]](this[_0xff99[131]])){this[_0xff99[252]][_0xff99[339]]= _0xff99[110],this[_0xff99[252]][_0xff99[62]](this[_0xff99[131]])}else {var _0xf598x2=this[_0xff99[131]];this[_0xff99[507]]!= mxConstants[_0xff99[1656]]&& (_0xf598x2= mxUtils[_0xff99[321]](_0xf598x2,!1));var _0xf598x2=this[_0xff99[1650]]?_0xf598x2[_0xff99[230]](/\n/g,_0xff99[1453]):_0xf598x2,_0xf598x3=null!= this[_0xff99[1537]]&& this[_0xff99[1537]]!= mxConstants[_0xff99[217]]?this[_0xff99[1537]]:null,_0xf598x4=null!= this[_0xff99[467]]&& this[_0xff99[467]]!= mxConstants[_0xff99[217]]?this[_0xff99[467]]:null;if(null!= _0xf598x3|| null!= _0xf598x4){if(_0xff99[1334]== this[_0xff99[277]]){null!= _0xf598x3&& (this[_0xff99[252]][_0xff99[124]][_0xff99[1028]]= _0xf598x3),null!= _0xf598x4&& (this[_0xff99[252]][_0xff99[124]][_0xff99[467]]= _0xff99[1669]+ _0xf598x4)}else {var _0xf598x5=_0xff99[110];null!= _0xf598x3&& (_0xf598x5+= _0xff99[1418]+ _0xf598x3+ _0xff99[471]);null!= _0xf598x4&& (_0xf598x5+= _0xff99[1419]+ _0xf598x4+ _0xff99[471]);_0xf598x2= _0xff99[1670]+ _0xf598x5+ _0xff99[1671]+ this[_0xff99[252]][_0xff99[124]][_0xff99[489]]+ _0xff99[1423]+ _0xf598x2+ _0xff99[1424];this[_0xff99[252]][_0xff99[124]][_0xff99[489]]= _0xff99[110]}};this[_0xff99[252]][_0xff99[339]]= _0xf598x2}};mxText[_0xff99[202]][_0xff99[1441]]= function(_0xf598x2){_0xf598x2= _0xf598x2[_0xff99[124]];_0xf598x2[_0xff99[489]]= Math[_0xff99[488]](this[_0xff99[803]]* mxConstants[_0xff99[490]])+ _0xff99[168];_0xf598x2[_0xff99[487]]= Math[_0xff99[488]](this[_0xff99[803]])+ _0xff99[168];_0xf598x2[_0xff99[486]]= this[_0xff99[1288]];_0xf598x2[_0xff99[123]]= _0xff99[125];_0xf598x2[_0xff99[352]]= this[_0xff99[352]];_0xf598x2[_0xff99[1452]]= (this[_0xff99[666]]& mxConstants[_0xff99[1410]])== mxConstants[_0xff99[1410]]?_0xff99[1447]:_0xff99[110];_0xf598x2[_0xff99[666]]= (this[_0xff99[666]]& mxConstants[_0xff99[1412]])== mxConstants[_0xff99[1412]]?_0xff99[1449]:_0xff99[110];_0xf598x2[_0xff99[1498]]= (this[_0xff99[666]]& mxConstants[_0xff99[1414]])== mxConstants[_0xff99[1414]]?_0xff99[355]:_0xff99[110];_0xf598x2[_0xff99[1165]]= this[_0xff99[611]]== mxConstants[_0xff99[479]]?_0xff99[698]:this[_0xff99[611]]== mxConstants[_0xff99[480]]?_0xff99[699]:_0xff99[361]};mxText[_0xff99[202]][_0xff99[1654]]= function(_0xf598x2){var _0xf598x3=Math[_0xff99[488]](this[_0xff99[1562]][_0xff99[117]]/ this[_0xff99[255]]),_0xf598x4=Math[_0xff99[488]](this[_0xff99[1562]][_0xff99[119]]/ this[_0xff99[255]]);_0xf598x2= _0xf598x2[_0xff99[124]];this[_0xff99[1645]]?(_0xf598x2[_0xff99[277]]= _0xff99[188],0< _0xf598x4&& (_0xf598x2[_0xff99[1503]]= _0xf598x4+ _0xff99[168]),0< _0xf598x3&& (_0xf598x2[_0xff99[117]]= _0xf598x3+ _0xff99[168])):_0xff99[1334]== this[_0xff99[277]]&& (_0xf598x2[_0xff99[117]]= _0xf598x3+ _0xff99[168],0< _0xf598x4&& (_0xf598x2[_0xff99[1503]]= _0xf598x4+ _0xff99[168]));this[_0xff99[1333]]?(!this[_0xff99[1645]]&& 0< _0xf598x3 && (_0xf598x2[_0xff99[117]]= _0xf598x3+ _0xff99[168]),_0xf598x2[_0xff99[493]]= _0xff99[1502]):_0xf598x2[_0xff99[493]]= _0xff99[494]};mxText[_0xff99[202]][_0xff99[1672]]= function(){this[_0xff99[1655]]= mxUtils[_0xff99[1501]](this[_0xff99[611]],this[_0xff99[552]])};mxText[_0xff99[202]][_0xff99[1673]]= function(){var _0xf598x2=0,_0xf598x3=0,_0xf598x2=this[_0xff99[611]]== mxConstants[_0xff99[479]]?(this[_0xff99[659]]- this[_0xff99[661]])/ 2:this[_0xff99[611]]== mxConstants[_0xff99[480]]?-this[_0xff99[661]]- this[_0xff99[1649]]:this[_0xff99[659]]+ this[_0xff99[1648]],_0xf598x3=this[_0xff99[552]]== mxConstants[_0xff99[481]]?(this[_0xff99[658]]- this[_0xff99[660]])/ 2:this[_0xff99[552]]== mxConstants[_0xff99[482]]?-this[_0xff99[660]]- this[_0xff99[1647]]:this[_0xff99[658]]+ this[_0xff99[1646]];return new mxPoint(_0xf598x2,_0xf598x3)};function mxTriangle(){mxActor[_0xff99[239]](this)}mxUtils[_0xff99[1284]](mxTriangle,mxActor);mxTriangle[_0xff99[202]][_0xff99[1625]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){_0xf598x2[_0xff99[1276]](0,0);_0xf598x2[_0xff99[1277]](_0xf598x5,0.5* _0xf598x9);_0xf598x2[_0xff99[1277]](0,_0xf598x9);_0xf598x2[_0xff99[268]]()};function mxHexagon(){mxActor[_0xff99[239]](this)}mxUtils[_0xff99[1284]](mxHexagon,mxActor);mxHexagon[_0xff99[202]][_0xff99[1625]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){_0xf598x2[_0xff99[1276]](0.25* _0xf598x5,0);_0xf598x2[_0xff99[1277]](0.75* _0xf598x5,0);_0xf598x2[_0xff99[1277]](_0xf598x5,0.5* _0xf598x9);_0xf598x2[_0xff99[1277]](0.75* _0xf598x5,_0xf598x9);_0xf598x2[_0xff99[1277]](0.25* _0xf598x5,_0xf598x9);_0xf598x2[_0xff99[1277]](0,0.5* _0xf598x9);_0xf598x2[_0xff99[268]]()};function mxLine(_0xf598x2,_0xf598x3,_0xf598x4){mxShape[_0xff99[239]](this);this[_0xff99[1562]]= _0xf598x2;this[_0xff99[1336]]= _0xf598x3;this[_0xff99[1307]]= null!= _0xf598x4?_0xf598x4:1}mxUtils[_0xff99[1284]](mxLine,mxShape);mxLine[_0xff99[202]][_0xff99[1595]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){_0xf598x4+= _0xf598x9/ 2;_0xf598x2[_0xff99[1275]]();_0xf598x2[_0xff99[1276]](_0xf598x3,_0xf598x4);_0xf598x2[_0xff99[1277]](_0xf598x3+ _0xf598x5,_0xf598x4);_0xf598x2[_0xff99[1336]]()};function mxImageShape(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){mxShape[_0xff99[239]](this);this[_0xff99[1562]]= _0xf598x2;this[_0xff99[618]]= _0xf598x3;this[_0xff99[1334]]= _0xf598x4;this[_0xff99[1336]]= _0xf598x5;this[_0xff99[1307]]= null!= _0xf598x9?_0xf598x9:1;this[_0xff99[639]]= !1}mxUtils[_0xff99[1284]](mxImageShape,mxRectangleShape);mxImageShape[_0xff99[202]][_0xff99[1674]]= !0;mxImageShape[_0xff99[202]][_0xff99[1568]]= function(){return !mxClient[_0xff99[80]]?0.5:0};mxImageShape[_0xff99[202]][_0xff99[183]]= function(_0xf598x2){mxShape[_0xff99[202]][_0xff99[183]][_0xff99[183]](this,arguments);this[_0xff99[1299]]= this[_0xff99[1336]]= this[_0xff99[1334]]= null;null!= this[_0xff99[124]]&& (this[_0xff99[1334]]= mxUtils[_0xff99[433]](this[_0xff99[124]],mxConstants.STYLE_IMAGE_BACKGROUND),this[_0xff99[1336]]= mxUtils[_0xff99[433]](this[_0xff99[124]],mxConstants.STYLE_IMAGE_BORDER),this[_0xff99[1674]]= 1== mxUtils[_0xff99[1550]](this[_0xff99[124]],mxConstants.STYLE_IMAGE_ASPECT,1),this[_0xff99[623]]= this[_0xff99[623]]|| 1== mxUtils[_0xff99[433]](this[_0xff99[124]],_0xff99[1675],0),this[_0xff99[624]]= this[_0xff99[624]]|| 1== mxUtils[_0xff99[433]](this[_0xff99[124]],_0xff99[1676],0))};mxImageShape[_0xff99[202]][_0xff99[1567]]= function(){return !this[_0xff99[1674]]};mxImageShape[_0xff99[202]][_0xff99[1570]]= function(){var _0xf598x2=document[_0xff99[55]](_0xff99[485]);_0xf598x2[_0xff99[124]][_0xff99[491]]= _0xff99[492];return _0xf598x2};mxImageShape[_0xff99[202]][_0xff99[1595]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){if(null!= this[_0xff99[618]]){var _0xf598xa=mxUtils[_0xff99[433]](this[_0xff99[124]],mxConstants.STYLE_IMAGE_BACKGROUND,null),_0xf598x12=mxUtils[_0xff99[433]](this[_0xff99[124]],mxConstants.STYLE_IMAGE_BORDER,null);if(null!= _0xf598xa|| null!= _0xf598x12){_0xf598x2[_0xff99[1245]](_0xf598xa),_0xf598x2[_0xff99[1249]](_0xf598x12),_0xf598x2[_0xff99[1319]](_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9),_0xf598x2[_0xff99[1337]]()};_0xf598x2[_0xff99[618]](_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,this[_0xff99[618]],this[_0xff99[1674]],!1,!1)}else {mxRectangleShape[_0xff99[202]][_0xff99[1601]][_0xff99[183]](this,arguments)}};mxImageShape[_0xff99[202]][_0xff99[1575]]= function(){this[_0xff99[252]][_0xff99[124]][_0xff99[361]]= Math[_0xff99[488]](this[_0xff99[1562]][_0xff99[235]])+ _0xff99[168];this[_0xff99[252]][_0xff99[124]][_0xff99[125]]= Math[_0xff99[488]](this[_0xff99[1562]][_0xff99[236]])+ _0xff99[168];this[_0xff99[252]][_0xff99[124]][_0xff99[117]]= Math[_0xff99[160]](0,Math[_0xff99[488]](this[_0xff99[1562]][_0xff99[117]]))+ _0xff99[168];this[_0xff99[252]][_0xff99[124]][_0xff99[119]]= Math[_0xff99[160]](0,Math[_0xff99[488]](this[_0xff99[1562]][_0xff99[119]]))+ _0xff99[168];this[_0xff99[252]][_0xff99[124]][_0xff99[1028]]= this[_0xff99[1334]]|| _0xff99[110];this[_0xff99[252]][_0xff99[124]][_0xff99[1630]]= this[_0xff99[1336]]|| _0xff99[110];this[_0xff99[252]][_0xff99[339]]= _0xff99[110];if(null!= this[_0xff99[618]]){var _0xf598x2=document[_0xff99[55]](mxClient[_0xff99[49]]|| null== mxClient[_0xff99[73]]&& 0!= this[_0xff99[603]]?mxClient[_0xff99[463]]+ _0xff99[464]:_0xff99[466]);_0xf598x2[_0xff99[124]][_0xff99[491]]= _0xff99[492];_0xf598x2[_0xff99[390]]= this[_0xff99[618]];var _0xf598x3=100> this[_0xff99[461]]?_0xff99[459]+ this[_0xff99[461]]+ _0xff99[460]:_0xff99[110];this[_0xff99[252]][_0xff99[124]][_0xff99[347]]= _0xf598x3;this[_0xff99[623]]&& this[_0xff99[624]]?_0xf598x3+= _0xff99[1677]:this[_0xff99[623]]?_0xf598x3+= _0xff99[1678]:this[_0xff99[624]]&& (_0xf598x3+= _0xff99[1679]);_0xf598x2[_0xff99[124]][_0xff99[347]]!= _0xf598x3&& (_0xf598x2[_0xff99[124]][_0xff99[347]]= _0xf598x3);_0xff99[618]== _0xf598x2[_0xff99[301]]?_0xf598x2[_0xff99[124]][_0xff99[603]]= this[_0xff99[603]]:_0xf598x2[_0xff99[124]][mxClient[_0xff99[73]]+ _0xff99[1662]]= _0xff99[1394]+ this[_0xff99[603]]+ _0xff99[1666];_0xf598x2[_0xff99[124]][_0xff99[117]]= this[_0xff99[252]][_0xff99[124]][_0xff99[117]];_0xf598x2[_0xff99[124]][_0xff99[119]]= this[_0xff99[252]][_0xff99[124]][_0xff99[119]];this[_0xff99[252]][_0xff99[124]][_0xff99[1617]]= _0xff99[110];this[_0xff99[252]][_0xff99[62]](_0xf598x2)}else {this[_0xff99[1600]](this[_0xff99[252]])}};function mxLabel(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){mxRectangleShape[_0xff99[239]](this,_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5)}mxUtils[_0xff99[1284]](mxLabel,mxRectangleShape);mxLabel[_0xff99[202]][_0xff99[1680]]= mxConstants[_0xff99[1681]];mxLabel[_0xff99[202]][_0xff99[657]]= 2;mxLabel[_0xff99[202]][_0xff99[1682]]= 10;mxLabel[_0xff99[202]][_0xff99[635]]= 2;mxLabel[_0xff99[202]][_0xff99[176]]= function(_0xf598x2){mxShape[_0xff99[202]][_0xff99[176]][_0xff99[183]](this,arguments);null!= this[_0xff99[632]]&& null!= this[_0xff99[630]]&& (this[_0xff99[1683]]= new this[_0xff99[630]],this[_0xff99[1683]][_0xff99[507]]= this[_0xff99[507]],this[_0xff99[1683]][_0xff99[1562]]= this[_0xff99[1562]],this[_0xff99[1683]][_0xff99[1334]]= this[_0xff99[632]],this[_0xff99[1683]][_0xff99[1336]]= this[_0xff99[632]],this[_0xff99[1683]][_0xff99[1299]]= this[_0xff99[634]],this[_0xff99[1683]][_0xff99[663]]= this[_0xff99[638]],this[_0xff99[1683]][_0xff99[176]](this[_0xff99[252]]))};mxLabel[_0xff99[202]][_0xff99[258]]= function(){null!= this[_0xff99[1683]]&& (this[_0xff99[1683]][_0xff99[1334]]= this[_0xff99[632]],this[_0xff99[1683]][_0xff99[1336]]= this[_0xff99[632]],this[_0xff99[1683]][_0xff99[1299]]= this[_0xff99[634]],this[_0xff99[1683]][_0xff99[663]]= this[_0xff99[638]]);mxShape[_0xff99[202]][_0xff99[258]][_0xff99[183]](this,arguments)};mxLabel[_0xff99[202]][_0xff99[1567]]= function(){return mxRectangleShape[_0xff99[202]][_0xff99[1567]][_0xff99[183]](this,arguments)&& null== this[_0xff99[632]]&& null== this[_0xff99[630]]};mxLabel[_0xff99[202]][_0xff99[1602]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){this[_0xff99[1684]](_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9);this[_0xff99[1685]](_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9);mxRectangleShape[_0xff99[202]][_0xff99[1602]][_0xff99[183]](this,arguments)};mxLabel[_0xff99[202]][_0xff99[1684]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){null!= this[_0xff99[618]]&& (_0xf598x3= this[_0xff99[1686]](_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9),_0xf598x2[_0xff99[618]](_0xf598x3[_0xff99[235]],_0xf598x3[_0xff99[236]],_0xf598x3[_0xff99[117]],_0xf598x3[_0xff99[119]],this[_0xff99[618]],!1,!1,!1))};mxLabel[_0xff99[202]][_0xff99[1686]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){var _0xf598x9=mxUtils[_0xff99[433]](this[_0xff99[124]],mxConstants.STYLE_IMAGE_ALIGN,mxConstants.ALIGN_LEFT),_0xf598xa=mxUtils[_0xff99[433]](this[_0xff99[124]],mxConstants.STYLE_IMAGE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE),_0xf598x12=mxUtils[_0xff99[1550]](this[_0xff99[124]],mxConstants.STYLE_IMAGE_WIDTH,mxConstants.DEFAULT_IMAGESIZE),_0xf598x13=mxUtils[_0xff99[1550]](this[_0xff99[124]],mxConstants.STYLE_IMAGE_HEIGHT,mxConstants.DEFAULT_IMAGESIZE),_0xf598x14=mxUtils[_0xff99[1550]](this[_0xff99[124]],mxConstants.STYLE_SPACING,this[_0xff99[657]])+ 5;_0xf598x2= _0xf598x9== mxConstants[_0xff99[479]]?_0xf598x2+ (_0xf598x4- _0xf598x12)/ 2:_0xf598x9== mxConstants[_0xff99[480]]?_0xf598x2+ (_0xf598x4- _0xf598x12- _0xf598x14):_0xf598x2+ _0xf598x14;_0xf598x3= _0xf598xa== mxConstants[_0xff99[1687]]?_0xf598x3+ _0xf598x14:_0xf598xa== mxConstants[_0xff99[482]]?_0xf598x3+ (_0xf598x5- _0xf598x13- _0xf598x14):_0xf598x3+ (_0xf598x5- _0xf598x13)/ 2;return new mxRectangle(_0xf598x2,_0xf598x3,_0xf598x12,_0xf598x13)};mxLabel[_0xff99[202]][_0xff99[1685]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){null!= this[_0xff99[1683]]?(this[_0xff99[1683]][_0xff99[1562]]= this[_0xff99[1688]](_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9),this[_0xff99[1683]][_0xff99[1209]](_0xf598x2)):null!= this[_0xff99[631]]&& (_0xf598x3= this[_0xff99[1688]](_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9),_0xf598x2[_0xff99[618]](_0xf598x3[_0xff99[235]],_0xf598x3[_0xff99[236]],_0xf598x3[_0xff99[117]],_0xf598x3[_0xff99[119]],this[_0xff99[631]],!1,!1,!1))};mxLabel[_0xff99[202]][_0xff99[1688]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){var _0xf598x9=mxUtils[_0xff99[433]](this[_0xff99[124]],mxConstants.STYLE_IMAGE_ALIGN,mxConstants.ALIGN_LEFT),_0xf598xa=mxUtils[_0xff99[433]](this[_0xff99[124]],mxConstants.STYLE_IMAGE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE),_0xf598x12=mxUtils[_0xff99[1550]](this[_0xff99[124]],mxConstants.STYLE_INDICATOR_WIDTH,this[_0xff99[1682]]),_0xf598x13=mxUtils[_0xff99[1550]](this[_0xff99[124]],mxConstants.STYLE_INDICATOR_HEIGHT,this[_0xff99[1682]]),_0xf598x14=this[_0xff99[657]]+ 5;_0xf598x2= _0xf598x9== mxConstants[_0xff99[480]]?_0xf598x2+ (_0xf598x4- _0xf598x12- _0xf598x14):_0xf598x9== mxConstants[_0xff99[479]]?_0xf598x2+ (_0xf598x4- _0xf598x12)/ 2:_0xf598x2+ _0xf598x14;_0xf598x3= _0xf598xa== mxConstants[_0xff99[482]]?_0xf598x3+ (_0xf598x5- _0xf598x13- _0xf598x14):_0xf598xa== mxConstants[_0xff99[1687]]?_0xf598x3+ _0xf598x14:_0xf598x3+ (_0xf598x5- _0xf598x13)/ 2;return new mxRectangle(_0xf598x2,_0xf598x3,_0xf598x12,_0xf598x13)};mxLabel[_0xff99[202]][_0xff99[1575]]= function(){for(mxRectangleShape[_0xff99[202]][_0xff99[1575]][_0xff99[183]](this,arguments);this[_0xff99[252]][_0xff99[1580]]();){this[_0xff99[252]][_0xff99[266]](this[_0xff99[252]][_0xff99[1581]])};if(null!= this[_0xff99[618]]){var _0xf598x2=document[_0xff99[55]](_0xff99[466]);_0xf598x2[_0xff99[124]][_0xff99[491]]= _0xff99[1500];_0xf598x2[_0xff99[57]](_0xff99[467],_0xff99[468]);var _0xf598x3=this[_0xff99[1686]](this[_0xff99[1562]][_0xff99[235]],this[_0xff99[1562]][_0xff99[236]],this[_0xff99[1562]][_0xff99[117]],this[_0xff99[1562]][_0xff99[119]]);_0xf598x3[_0xff99[235]]-= this[_0xff99[1562]][_0xff99[235]];_0xf598x3[_0xff99[236]]-= this[_0xff99[1562]][_0xff99[236]];_0xf598x2[_0xff99[124]][_0xff99[361]]= Math[_0xff99[488]](_0xf598x3[_0xff99[235]])+ _0xff99[168];_0xf598x2[_0xff99[124]][_0xff99[125]]= Math[_0xff99[488]](_0xf598x3[_0xff99[236]])+ _0xff99[168];_0xf598x2[_0xff99[124]][_0xff99[117]]= Math[_0xff99[488]](_0xf598x3[_0xff99[117]])+ _0xff99[168];_0xf598x2[_0xff99[124]][_0xff99[119]]= Math[_0xff99[488]](_0xf598x3[_0xff99[119]])+ _0xff99[168];_0xf598x2[_0xff99[390]]= this[_0xff99[618]];this[_0xff99[252]][_0xff99[62]](_0xf598x2)}};function mxCylinder(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){mxShape[_0xff99[239]](this);this[_0xff99[1562]]= _0xf598x2;this[_0xff99[1334]]= _0xf598x3;this[_0xff99[1336]]= _0xf598x4;this[_0xff99[1307]]= null!= _0xf598x5?_0xf598x5:1}mxUtils[_0xff99[1284]](mxCylinder,mxShape);mxCylinder[_0xff99[202]][_0xff99[1503]]= 40;mxCylinder[_0xff99[202]][_0xff99[1564]]= 0;mxCylinder[_0xff99[202]][_0xff99[1595]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){_0xf598x2[_0xff99[513]](_0xf598x3,_0xf598x4);_0xf598x2[_0xff99[1275]]();this[_0xff99[1625]](_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,!1);_0xf598x2[_0xff99[1337]]();_0xf598x2[_0xff99[1267]](!1);_0xf598x2[_0xff99[1275]]();this[_0xff99[1625]](_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,!0);_0xf598x2[_0xff99[1336]]()};mxCylinder[_0xff99[202]][_0xff99[1625]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa){_0xf598x3= Math[_0xff99[243]](this[_0xff99[1503]],Math[_0xff99[488]](_0xf598x9/ 5));if(_0xf598xa&& null!= this[_0xff99[1334]]|| !_0xf598xa&& null== this[_0xff99[1334]]){_0xf598x2[_0xff99[1276]](0,_0xf598x3),_0xf598x2[_0xff99[1279]](0,2* _0xf598x3,_0xf598x5,2* _0xf598x3,_0xf598x5,_0xf598x3),_0xf598xa|| (_0xf598x2[_0xff99[1336]](),_0xf598x2[_0xff99[1275]]())};_0xf598xa|| (_0xf598x2[_0xff99[1276]](0,_0xf598x3),_0xf598x2[_0xff99[1279]](0,-_0xf598x3/ 3,_0xf598x5,-_0xf598x3/ 3,_0xf598x5,_0xf598x3),_0xf598x2[_0xff99[1277]](_0xf598x5,_0xf598x9- _0xf598x3),_0xf598x2[_0xff99[1279]](_0xf598x5,_0xf598x9+ _0xf598x3/ 3,0,_0xf598x9+ _0xf598x3/ 3,0,_0xf598x9- _0xf598x3),_0xf598x2[_0xff99[268]]())};function mxConnector(_0xf598x2,_0xf598x3,_0xf598x4){mxPolyline[_0xff99[239]](this,_0xf598x2,_0xf598x3,_0xf598x4)}mxUtils[_0xff99[1284]](mxConnector,mxPolyline);mxConnector[_0xff99[202]][_0xff99[1594]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=this[_0xff99[1689]](_0xf598x2,_0xf598x3,!0),_0xf598x5=this[_0xff99[1689]](_0xf598x2,_0xf598x3,!1);null== this[_0xff99[124]]|| 1!= this[_0xff99[124]][mxConstants[_0xff99[1690]]]?this[_0xff99[1639]](_0xf598x2,_0xf598x3,this[_0xff99[1606]]):this[_0xff99[1691]](_0xf598x2,_0xf598x3);_0xf598x2[_0xff99[1245]](this[_0xff99[1336]]);_0xf598x2[_0xff99[1267]](!1);_0xf598x2[_0xff99[1251]](!1);null!= _0xf598x4&& _0xf598x4();null!= _0xf598x5&& _0xf598x5()};mxConnector[_0xff99[202]][_0xff99[1691]]= function(_0xf598x2,_0xf598x3){_0xf598x2[_0xff99[1275]]();var _0xf598x4=_0xf598x3[0],_0xf598x5=_0xf598x3[_0xff99[67]];_0xf598x2[_0xff99[1276]](_0xf598x4[_0xff99[235]],_0xf598x4[_0xff99[236]]);for(_0xf598x4= 1;_0xf598x4< _0xf598x5- 2;_0xf598x4++){var _0xf598x9=_0xf598x3[_0xf598x4],_0xf598xa=_0xf598x3[_0xf598x4+ 1];_0xf598x2[_0xff99[1278]](_0xf598x9[_0xff99[235]],_0xf598x9[_0xff99[236]],(_0xf598x9[_0xff99[235]]+ _0xf598xa[_0xff99[235]])/ 2,(_0xf598x9[_0xff99[236]]+ _0xf598xa[_0xff99[236]])/ 2)};_0xf598x9= _0xf598x3[_0xf598x5- 2];_0xf598xa= _0xf598x3[_0xf598x5- 1];_0xf598x2[_0xff99[1278]](_0xf598x9[_0xff99[235]],_0xf598x9[_0xff99[236]],_0xf598xa[_0xff99[235]],_0xf598xa[_0xff99[236]]);_0xf598x2[_0xff99[1336]]()};mxConnector[_0xff99[202]][_0xff99[1689]]= function(_0xf598x2,_0xf598x3,_0xf598x4){var _0xf598x5=_0xf598x3[_0xff99[67]],_0xf598x9=_0xf598x4?_0xf598x3[1]:_0xf598x3[_0xf598x5- 2];_0xf598x3= _0xf598x4?_0xf598x3[0]:_0xf598x3[_0xf598x5- 1];var _0xf598x5=_0xf598x3[_0xff99[235]]- _0xf598x9[_0xff99[235]],_0xf598xa=_0xf598x3[_0xff99[236]]- _0xf598x9[_0xff99[236]],_0xf598x12=Math[_0xff99[160]](1,Math[_0xff99[428]](_0xf598x5* _0xf598x5+ _0xf598xa* _0xf598xa)),_0xf598x9=_0xf598x5/ _0xf598x12,_0xf598x5=_0xf598xa/ _0xf598x12,_0xf598xa=mxUtils[_0xff99[1550]](this[_0xff99[124]],_0xf598x4?mxConstants[_0xff99[1692]]:mxConstants[_0xff99[1693]],mxConstants.DEFAULT_MARKERSIZE),_0xf598x12=mxUtils[_0xff99[433]](this[_0xff99[124]],_0xf598x4?mxConstants[_0xff99[1694]]:mxConstants[_0xff99[1695]]);return mxMarker[_0xff99[1689]](_0xf598x2,this,_0xf598x12,_0xf598x3,_0xf598x9,_0xf598x5,_0xf598xa,_0xf598x4,this[_0xff99[1307]],0!= this[_0xff99[124]][_0xf598x4?mxConstants[_0xff99[1696]]:mxConstants[_0xff99[1697]]])};mxConnector[_0xff99[202]][_0xff99[1612]]= function(_0xf598x2){mxShape[_0xff99[202]][_0xff99[1612]][_0xff99[183]](this,arguments);var _0xf598x3=0;mxUtils[_0xff99[433]](this[_0xff99[124]],mxConstants.STYLE_STARTARROW,mxConstants.NONE)!= mxConstants[_0xff99[217]]&& (_0xf598x3= mxUtils[_0xff99[1550]](this[_0xff99[124]],mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_MARKERSIZE)+ 1);mxUtils[_0xff99[433]](this[_0xff99[124]],mxConstants.STYLE_ENDARROW,mxConstants.NONE)!= mxConstants[_0xff99[217]]&& (_0xf598x3= Math[_0xff99[160]](_0xf598x3,mxUtils[_0xff99[1550]](this[_0xff99[124]],mxConstants.STYLE_ENDSIZE,mxConstants.DEFAULT_MARKERSIZE))+ 1);_0xf598x2[_0xff99[244]](Math[_0xff99[430]](_0xf598x3* this[_0xff99[255]]))};function mxSwimlane(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){mxShape[_0xff99[239]](this);this[_0xff99[1562]]= _0xf598x2;this[_0xff99[1334]]= _0xf598x3;this[_0xff99[1336]]= _0xf598x4;this[_0xff99[1307]]= null!= _0xf598x5?_0xf598x5:1}mxUtils[_0xff99[1284]](mxSwimlane,mxShape);mxSwimlane[_0xff99[202]][_0xff99[1680]]= 16;mxSwimlane[_0xff99[202]][_0xff99[1597]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){_0xf598x2= Math[_0xff99[243]](_0xf598x9,mxUtils[_0xff99[433]](this[_0xff99[124]],mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE));return new mxRectangle(_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x2)};mxSwimlane[_0xff99[202]][_0xff99[1614]]= function(){var _0xf598x2=mxShape[_0xff99[202]][_0xff99[1614]][_0xff99[183]](this,arguments);1!= mxUtils[_0xff99[433]](this[_0xff99[124]],mxConstants.STYLE_HORIZONTAL,1)&& (_0xf598x2+= mxText[_0xff99[202]][_0xff99[1616]]);return _0xf598x2};mxSwimlane[_0xff99[202]][_0xff99[1615]]= function(){return this[_0xff99[1614]]()};mxSwimlane[_0xff99[202]][_0xff99[1590]]= function(){return mxShape[_0xff99[202]][_0xff99[1590]][_0xff99[183]](this,arguments)|| 1!= mxUtils[_0xff99[433]](this[_0xff99[124]],mxConstants.STYLE_HORIZONTAL,1)};mxSwimlane[_0xff99[202]][_0xff99[1603]]= function(_0xf598x2,_0xf598x3,_0xf598x4){_0xf598x2= mxUtils[_0xff99[433]](this[_0xff99[124]],mxConstants.STYLE_ARCSIZE,100* mxConstants[_0xff99[1557]])/ 100;return 3* _0xf598x4* _0xf598x2};mxSwimlane[_0xff99[202]][_0xff99[1595]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){var _0xf598xa=Math[_0xff99[243]](_0xf598x9,mxUtils[_0xff99[433]](this[_0xff99[124]],mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE)),_0xf598x12=mxUtils[_0xff99[433]](this[_0xff99[124]],mxConstants.STYLE_SWIMLANE_FILLCOLOR,mxConstants.NONE),_0xf598x13=1== mxUtils[_0xff99[433]](this[_0xff99[124]],mxConstants.STYLE_SWIMLANE_LINE,1),_0xf598x14=0;_0xf598x2[_0xff99[513]](_0xf598x3,_0xf598x4);this[_0xff99[1606]]?(_0xf598x14= this[_0xff99[1603]](_0xf598x5,_0xf598x9,_0xf598xa),this[_0xff99[1698]](_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa,_0xf598x14,_0xf598x12,_0xf598x13)):this[_0xff99[1699]](_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa,_0xf598x12,_0xf598x13);_0xf598x12= mxUtils[_0xff99[433]](this[_0xff99[124]],mxConstants.STYLE_SEPARATORCOLOR,mxConstants.NONE);this[_0xff99[1700]](_0xf598x2,_0xf598x5,_0xf598xa,_0xf598x9,_0xf598x12);null!= this[_0xff99[618]]&& (_0xf598x9= this[_0xff99[1686]](_0xf598x3,_0xf598xa,_0xf598x5,_0xf598x9),_0xf598x2[_0xff99[618]](_0xf598x9[_0xff99[235]]- _0xf598x3,_0xf598x9[_0xff99[236]]- _0xf598x4,_0xf598x9[_0xff99[117]],_0xf598x9[_0xff99[119]],this[_0xff99[618]],!1,!1,!1));this[_0xff99[617]]&& (_0xf598x2[_0xff99[1267]](!1),this[_0xff99[1604]](_0xf598x2,0,0,_0xf598x5,_0xf598xa,_0xf598x14))};mxSwimlane[_0xff99[202]][_0xff99[1699]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa,_0xf598x12,_0xf598x13){_0xf598x12!= mxConstants[_0xff99[217]]&& (_0xf598x2[_0xff99[815]](),_0xf598x2[_0xff99[1245]](_0xf598x12),_0xf598x2[_0xff99[1319]](0,0,_0xf598x5,_0xf598x9),_0xf598x2[_0xff99[1337]](),_0xf598x2[_0xff99[1210]](),_0xf598x2[_0xff99[1267]](!1));_0xf598x2[_0xff99[1275]]();_0xf598x2[_0xff99[1276]](0,_0xf598xa);_0xf598x2[_0xff99[1277]](0,0);_0xf598x2[_0xff99[1277]](_0xf598x5,0);_0xf598x2[_0xff99[1277]](_0xf598x5,_0xf598xa);_0xf598x13&& _0xf598x2[_0xff99[268]]();_0xf598x2[_0xff99[1337]]();_0xf598xa< _0xf598x9&& _0xf598x12== mxConstants[_0xff99[217]]&& (_0xf598x2[_0xff99[1229]]= !1,_0xf598x2[_0xff99[1275]](),_0xf598x2[_0xff99[1276]](0,_0xf598xa),_0xf598x2[_0xff99[1277]](0,_0xf598x9),_0xf598x2[_0xff99[1277]](_0xf598x5,_0xf598x9),_0xf598x2[_0xff99[1277]](_0xf598x5,_0xf598xa),_0xf598x2[_0xff99[1336]]())};mxSwimlane[_0xff99[202]][_0xff99[1698]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa,_0xf598x12,_0xf598x13,_0xf598x14){_0xf598x13!= mxConstants[_0xff99[217]]&& (_0xf598x2[_0xff99[815]](),_0xf598x2[_0xff99[1245]](_0xf598x13),_0xf598x2[_0xff99[1320]](0,0,_0xf598x5,_0xf598x9,_0xf598x12,_0xf598x12),_0xf598x2[_0xff99[1337]](),_0xf598x2[_0xff99[1210]](),_0xf598x2[_0xff99[1267]](!1));_0xf598x2[_0xff99[1275]]();_0xf598x2[_0xff99[1276]](_0xf598x5,_0xf598xa);_0xf598x2[_0xff99[1277]](_0xf598x5,_0xf598x12);_0xf598x2[_0xff99[1278]](_0xf598x5,0,_0xf598x5- Math[_0xff99[243]](_0xf598x5/ 2,_0xf598x12),0);_0xf598x2[_0xff99[1277]](Math[_0xff99[243]](_0xf598x5/ 2,_0xf598x12),0);_0xf598x2[_0xff99[1278]](0,0,0,_0xf598x12);_0xf598x2[_0xff99[1277]](0,_0xf598xa);_0xf598x14&& _0xf598x2[_0xff99[268]]();_0xf598x2[_0xff99[1337]]();_0xf598xa< _0xf598x9&& _0xf598x13== mxConstants[_0xff99[217]]&& (_0xf598x2[_0xff99[1229]]= !1,_0xf598x2[_0xff99[1275]](),_0xf598x2[_0xff99[1276]](0,_0xf598xa),_0xf598x2[_0xff99[1277]](0,_0xf598x9- _0xf598x12),_0xf598x2[_0xff99[1278]](0,_0xf598x9,Math[_0xff99[243]](_0xf598x5/ 2,_0xf598x12),_0xf598x9),_0xf598x2[_0xff99[1277]](_0xf598x5- Math[_0xff99[243]](_0xf598x5/ 2,_0xf598x12),_0xf598x9),_0xf598x2[_0xff99[1278]](_0xf598x5,_0xf598x9,_0xf598x5,_0xf598x9- _0xf598x12),_0xf598x2[_0xff99[1277]](_0xf598x5,_0xf598xa),_0xf598x2[_0xff99[1336]]())};mxSwimlane[_0xff99[202]][_0xff99[1700]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){_0xf598x9!= mxConstants[_0xff99[217]]&& (_0xf598x2[_0xff99[1249]](_0xf598x9),_0xf598x2[_0xff99[1251]](!0),_0xf598x2[_0xff99[1275]](),_0xf598x2[_0xff99[1276]](_0xf598x3,_0xf598x4),_0xf598x2[_0xff99[1277]](_0xf598x3,_0xf598x5),_0xf598x2[_0xff99[1336]](),_0xf598x2[_0xff99[1251]](!1))};mxSwimlane[_0xff99[202]][_0xff99[1686]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){return new mxRectangle(_0xf598x2+ _0xf598x4- this[_0xff99[1680]],_0xf598x3,this[_0xff99[1680]],this[_0xff99[1680]])};function mxGraphLayout(_0xf598x2){this[_0xff99[1179]]= _0xf598x2}mxGraphLayout[_0xff99[202]][_0xff99[1179]]= null;mxGraphLayout[_0xff99[202]][_0xff99[1701]]= !0;mxGraphLayout[_0xff99[202]][_0xff99[1101]]= null;mxGraphLayout[_0xff99[202]][_0xff99[1702]]= function(_0xf598x2,_0xf598x3,_0xf598x4){};mxGraphLayout[_0xff99[202]][_0xff99[350]]= function(_0xf598x2){};mxGraphLayout[_0xff99[202]][_0xff99[1703]]= function(){return this[_0xff99[1179]]};mxGraphLayout[_0xff99[202]][_0xff99[1704]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){_0xf598x4= this[_0xff99[1179]][_0xff99[441]][_0xff99[248]](_0xf598x3);_0xf598x3= null!= _0xf598x4?_0xf598x4[_0xff99[124]]:this[_0xff99[1179]][_0xff99[1705]](_0xf598x3);return null!= _0xf598x3?_0xf598x3[_0xf598x2]:null};mxGraphLayout[_0xff99[1706]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){if(null!= _0xf598x4&& null!= _0xf598x2){_0xf598x3= null!= _0xf598x3?_0xf598x3:!0;_0xf598x9= _0xf598x9|| [];var _0xf598xa=mxCellPath[_0xff99[385]](_0xf598x2);if(null== _0xf598x9[_0xf598xa]&& (_0xf598x9[_0xf598xa]= _0xf598x2,_0xf598x5= _0xf598x4(_0xf598x2,_0xf598x5),null== _0xf598x5|| _0xf598x5)){if(_0xf598x5= this[_0xff99[1179]][_0xff99[251]][_0xff99[1707]](_0xf598x2),0< _0xf598x5){for(_0xf598xa= 0;_0xf598xa< _0xf598x5;_0xf598xa++){var _0xf598x12=this[_0xff99[1179]][_0xff99[251]][_0xff99[1708]](_0xf598x2,_0xf598xa),_0xf598x13=this[_0xff99[1179]][_0xff99[251]][_0xff99[1709]](_0xf598x12,!0)== _0xf598x2;if(!_0xf598x3|| _0xf598x13){_0xf598x13= this[_0xff99[1179]][_0xff99[441]][_0xff99[1710]](_0xf598x12,!_0xf598x13),this[_0xff99[1706]](_0xf598x13,_0xf598x3,_0xf598x4,_0xf598x12,_0xf598x9)}}}}}};mxGraphLayout[_0xff99[202]][_0xff99[1711]]= function(_0xf598x2){return this[_0xff99[1179]][_0xff99[1712]](_0xf598x2)};mxGraphLayout[_0xff99[202]][_0xff99[1713]]= function(_0xf598x2){return !this[_0xff99[1179]][_0xff99[502]]()[_0xff99[1193]](_0xf598x2)|| !this[_0xff99[1179]][_0xff99[1714]](_0xf598x2)};mxGraphLayout[_0xff99[202]][_0xff99[1715]]= function(_0xf598x2){var _0xf598x3=this[_0xff99[1179]][_0xff99[502]]();return !_0xf598x3[_0xff99[250]](_0xf598x2)|| !this[_0xff99[1179]][_0xff99[1714]](_0xf598x2) || null== _0xf598x3[_0xff99[1709]](_0xf598x2,!0) || null== _0xf598x3[_0xff99[1709]](_0xf598x2,!1)};mxGraphLayout[_0xff99[202]][_0xff99[1716]]= function(_0xf598x2,_0xf598x3){this[_0xff99[1179]][_0xff99[1717]](mxConstants.STYLE_NOEDGESTYLE,_0xf598x3?_0xff99[468]:_0xff99[500],[_0xf598x2])};mxGraphLayout[_0xff99[202]][_0xff99[1718]]= function(_0xf598x2,_0xf598x3){this[_0xff99[1179]][_0xff99[1717]](mxConstants.STYLE_ORTHOGONAL,_0xf598x3?_0xff99[500]:_0xff99[468],[_0xf598x2])};mxGraphLayout[_0xff99[202]][_0xff99[1719]]= function(_0xf598x2){var _0xf598x3= new mxPoint;if(null!= _0xf598x2&& _0xf598x2!= this[_0xff99[1101]]){var _0xf598x4=this[_0xff99[1179]][_0xff99[502]]();if(_0xf598x4[_0xff99[1720]](this[_0xff99[1101]],_0xf598x2)){for(var _0xf598x5=_0xf598x4[_0xff99[1721]](_0xf598x2);_0xf598x2!= this[_0xff99[1101]];){_0xf598x3[_0xff99[235]]+= _0xf598x5[_0xff99[235]],_0xf598x3[_0xff99[236]]+= _0xf598x5[_0xff99[236]],_0xf598x2= _0xf598x4[_0xff99[1197]](_0xf598x2),_0xf598x5= _0xf598x4[_0xff99[1721]](_0xf598x2)}}};return _0xf598x3};mxGraphLayout[_0xff99[202]][_0xff99[1722]]= function(_0xf598x2,_0xf598x3){if(null!= _0xf598x2){var _0xf598x4=this[_0xff99[1179]][_0xff99[251]],_0xf598x5=_0xf598x4[_0xff99[1721]](_0xf598x2);null== _0xf598x5?(_0xf598x5= new mxGeometry,_0xf598x5[_0xff99[1723]](!0)):_0xf598x5= _0xf598x5[_0xff99[238]]();if(null!= this[_0xff99[1101]]&& null!= _0xf598x3){for(var _0xf598x9=_0xf598x4[_0xff99[1197]](_0xf598x2),_0xf598x9=this[_0xff99[1719]](_0xf598x9),_0xf598xa=0;_0xf598xa< _0xf598x3[_0xff99[67]];_0xf598xa++){_0xf598x3[_0xf598xa][_0xff99[235]]-= _0xf598x9[_0xff99[235]],_0xf598x3[_0xf598xa][_0xff99[236]]-= _0xf598x9[_0xff99[236]]}};_0xf598x5[_0xff99[1525]]= _0xf598x3;_0xf598x4[_0xff99[1724]](_0xf598x2,_0xf598x5)}};mxGraphLayout[_0xff99[202]][_0xff99[1725]]= function(_0xf598x2,_0xf598x3,_0xf598x4){var _0xf598x5=this[_0xff99[1179]][_0xff99[502]](),_0xf598x9=_0xf598x5[_0xff99[1721]](_0xf598x2),_0xf598xa=null;if(null!= _0xf598x9){_0xf598xa= new mxRectangle(_0xf598x3,_0xf598x4,_0xf598x9[_0xff99[117]],_0xf598x9[_0xff99[119]]);if(this[_0xff99[1701]]){var _0xf598x12=this[_0xff99[1179]][_0xff99[249]]()[_0xff99[248]](_0xf598x2);if(null!= _0xf598x12&& null!= _0xf598x12[_0xff99[963]]&& null!= _0xf598x12[_0xff99[963]][_0xff99[1563]]){var _0xf598x13=this[_0xff99[1179]][_0xff99[249]]()[_0xff99[255]],_0xf598x14=_0xf598x12[_0xff99[963]][_0xff99[1563]];_0xf598x12[_0xff99[963]][_0xff99[1563]][_0xff99[235]]< _0xf598x12[_0xff99[235]]&& (_0xf598x3+= (_0xf598x12[_0xff99[235]]- _0xf598x14[_0xff99[235]])/ _0xf598x13,_0xf598xa[_0xff99[117]]= _0xf598x14[_0xff99[117]]);_0xf598x12[_0xff99[963]][_0xff99[1563]][_0xff99[236]]< _0xf598x12[_0xff99[236]]&& (_0xf598x4+= (_0xf598x12[_0xff99[236]]- _0xf598x14[_0xff99[236]])/ _0xf598x13,_0xf598xa[_0xff99[119]]= _0xf598x14[_0xff99[119]])}};null!= this[_0xff99[1101]]&& (_0xf598x12= _0xf598x5[_0xff99[1197]](_0xf598x2),null!= _0xf598x12&& _0xf598x12!= this[_0xff99[1101]]&& (_0xf598x12= this[_0xff99[1719]](_0xf598x12),_0xf598x3-= _0xf598x12[_0xff99[235]],_0xf598x4-= _0xf598x12[_0xff99[236]]));if(_0xf598x9[_0xff99[235]]!= _0xf598x3|| _0xf598x9[_0xff99[236]]!= _0xf598x4){_0xf598x9= _0xf598x9[_0xff99[238]](),_0xf598x9[_0xff99[235]]= _0xf598x3,_0xf598x9[_0xff99[236]]= _0xf598x4,_0xf598x5[_0xff99[1724]](_0xf598x2,_0xf598x9)}};return _0xf598xa};mxGraphLayout[_0xff99[202]][_0xff99[1726]]= function(_0xf598x2){var _0xf598x3=this[_0xff99[1179]][_0xff99[502]]()[_0xff99[1721]](_0xf598x2);if(this[_0xff99[1701]]){var _0xf598x4=this[_0xff99[1179]][_0xff99[249]]()[_0xff99[248]](_0xf598x2);if(null!= _0xf598x4&& null!= _0xf598x4[_0xff99[963]]&& null!= _0xf598x4[_0xff99[963]][_0xff99[1563]]){var _0xf598x5=this[_0xff99[1179]][_0xff99[249]]()[_0xff99[255]],_0xf598x9=_0xf598x4[_0xff99[963]][_0xff99[1563]],_0xf598xa=Math[_0xff99[160]](_0xf598x4[_0xff99[235]]- _0xf598x9[_0xff99[235]],0)/ _0xf598x5,_0xf598x12=Math[_0xff99[160]](_0xf598x4[_0xff99[236]]- _0xf598x9[_0xff99[236]],0)/ _0xf598x5,_0xf598x13=Math[_0xff99[160]](_0xf598x9[_0xff99[235]]+ _0xf598x9[_0xff99[117]]- (_0xf598x4[_0xff99[235]]+ _0xf598x4[_0xff99[117]]),0)/ _0xf598x5,_0xf598x4=Math[_0xff99[160]](_0xf598x9[_0xff99[236]]+ _0xf598x9[_0xff99[119]]- (_0xf598x4[_0xff99[236]]+ _0xf598x4[_0xff99[119]]),0)/ _0xf598x5,_0xf598x3= new mxRectangle(_0xf598x3[_0xff99[235]]- _0xf598xa,_0xf598x3[_0xff99[236]]- _0xf598x12,_0xf598x3[_0xff99[117]]+ _0xf598xa+ _0xf598x13,_0xf598x3[_0xff99[119]]+ _0xf598x12+ _0xf598x4)}};null!= this[_0xff99[1101]]&& (_0xf598x2= this[_0xff99[1179]][_0xff99[502]]()[_0xff99[1197]](_0xf598x2),_0xf598x3= _0xf598x3[_0xff99[238]](),null!= _0xf598x2&& _0xf598x2!= this[_0xff99[1101]]&& (_0xf598x2= this[_0xff99[1719]](_0xf598x2),_0xf598x3[_0xff99[235]]+= _0xf598x2[_0xff99[235]],_0xf598x3[_0xff99[236]]+= _0xf598x2[_0xff99[236]]));return new mxRectangle(_0xf598x3[_0xff99[235]],_0xf598x3[_0xff99[236]],_0xf598x3[_0xff99[117]],_0xf598x3[_0xff99[119]])};mxGraphLayout[_0xff99[202]][_0xff99[1727]]= function(_0xf598x2,_0xf598x3){this[_0xff99[1179]][_0xff99[502]]()[_0xff99[473]]();try{for(var _0xf598x4=_0xf598x2[_0xff99[67]]- 1;0<= _0xf598x4;_0xf598x4--){var _0xf598x5=_0xf598x2[_0xf598x4],_0xf598x9=this[_0xff99[1179]][_0xff99[1728]](_0xf598x5),_0xf598xa=this[_0xff99[1179]][_0xff99[1729]](_0xf598x9),_0xf598x12=this[_0xff99[1179]][_0xff99[1198]](_0xf598x5),_0xf598x13=0,_0xf598x14=0;if(this[_0xff99[1179]][_0xff99[1730]](_0xf598x5)){var _0xf598x15=this[_0xff99[1179]][_0xff99[1731]](_0xf598x5),_0xf598x13=_0xf598x15[_0xff99[117]],_0xf598x14=_0xf598x15[_0xff99[119]]};null!= _0xf598xa&& null!= _0xf598x12&& (_0xf598x12= _0xf598x12[_0xff99[238]](),_0xf598x12[_0xff99[235]]= _0xf598x12[_0xff99[235]]+ _0xf598xa[_0xff99[235]]- _0xf598x3- _0xf598x13,_0xf598x12[_0xff99[236]]= _0xf598x12[_0xff99[236]]+ _0xf598xa[_0xff99[236]]- _0xf598x3- _0xf598x14,_0xf598x12[_0xff99[117]]= _0xf598xa[_0xff99[117]]+ 2* _0xf598x3+ _0xf598x13,_0xf598x12[_0xff99[119]]= _0xf598xa[_0xff99[119]]+ 2* _0xf598x3+ _0xf598x14,this[_0xff99[1179]][_0xff99[502]]()[_0xff99[1724]](_0xf598x5,_0xf598x12),this[_0xff99[1179]][_0xff99[834]](_0xf598x9,_0xf598x3+ _0xf598x13- _0xf598xa[_0xff99[235]],_0xf598x3+ _0xf598x14- _0xf598xa[_0xff99[236]]))}}finally{this[_0xff99[1179]][_0xff99[502]]()[_0xff99[476]]()}};function mxStackLayout(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa){mxGraphLayout[_0xff99[239]](this,_0xf598x2);this[_0xff99[662]]= null!= _0xf598x3?_0xf598x3:!0;this[_0xff99[657]]= null!= _0xf598x4?_0xf598x4:0;this[_0xff99[1732]]= null!= _0xf598x5?_0xf598x5:0;this[_0xff99[1733]]= null!= _0xf598x9?_0xf598x9:0;this[_0xff99[467]]= null!= _0xf598xa?_0xf598xa:0}mxStackLayout[_0xff99[202]]= new mxGraphLayout;mxStackLayout[_0xff99[202]][_0xff99[196]]= mxStackLayout;mxStackLayout[_0xff99[202]][_0xff99[662]]= null;mxStackLayout[_0xff99[202]][_0xff99[657]]= null;mxStackLayout[_0xff99[202]][_0xff99[1732]]= null;mxStackLayout[_0xff99[202]][_0xff99[1733]]= null;mxStackLayout[_0xff99[202]][_0xff99[467]]= 0;mxStackLayout[_0xff99[202]][_0xff99[1734]]= !1;mxStackLayout[_0xff99[202]][_0xff99[1334]]= !1;mxStackLayout[_0xff99[202]][_0xff99[1735]]= !1;mxStackLayout[_0xff99[202]][_0xff99[1736]]= !1;mxStackLayout[_0xff99[202]][_0xff99[1333]]= null;mxStackLayout[_0xff99[202]][_0xff99[1737]]= function(){return this[_0xff99[662]]};mxStackLayout[_0xff99[202]][_0xff99[1702]]= function(_0xf598x2,_0xf598x3,_0xf598x4){var _0xf598x5=this[_0xff99[1179]][_0xff99[502]](),_0xf598x9=_0xf598x5[_0xff99[1197]](_0xf598x2),_0xf598xa=this[_0xff99[1737]]();if(null!= _0xf598x2&& null!= _0xf598x9){var _0xf598x12=0,_0xf598x13=0,_0xf598x14=_0xf598x5[_0xff99[262]](_0xf598x9);_0xf598x3= _0xf598xa?_0xf598x3:_0xf598x4;_0xf598x12= this[_0xff99[1179]][_0xff99[249]]()[_0xff99[248]](_0xf598x9);null!= _0xf598x12&& (_0xf598x3-= _0xf598xa?_0xf598x12[_0xff99[235]]:_0xf598x12[_0xff99[236]]);for(_0xf598x12= 0;_0xf598x12< _0xf598x14;_0xf598x12++){if(_0xf598x4= _0xf598x5[_0xff99[263]](_0xf598x9,_0xf598x12),_0xf598x4!= _0xf598x2&& (_0xf598x4= _0xf598x5[_0xff99[1721]](_0xf598x4),null!= _0xf598x4)){_0xf598x4= _0xf598xa?_0xf598x4[_0xff99[235]]+ _0xf598x4[_0xff99[117]]/ 2:_0xf598x4[_0xff99[236]]+ _0xf598x4[_0xff99[119]]/ 2;if(_0xf598x13< _0xf598x3&& _0xf598x4> _0xf598x3){break};_0xf598x13= _0xf598x4}};_0xf598xa= _0xf598x9[_0xff99[1738]](_0xf598x2);_0xf598xa= Math[_0xff99[160]](0,_0xf598x12- (_0xf598x12> _0xf598xa?1:0));_0xf598x5[_0xff99[99]](_0xf598x9,_0xf598x2,_0xf598xa)}};mxStackLayout[_0xff99[202]][_0xff99[1739]]= function(_0xf598x2){var _0xf598x3=this[_0xff99[1179]][_0xff99[502]](),_0xf598x4=_0xf598x3[_0xff99[1721]](_0xf598x2);if(null!= this[_0xff99[1179]][_0xff99[526]]&& (null== _0xf598x4&& _0xf598x3[_0xff99[1740]](_0xf598x2)|| _0xf598x2== this[_0xff99[1179]][_0xff99[249]]()[_0xff99[1741]])){_0xf598x4= new mxRectangle(0,0,this[_0xff99[1179]][_0xff99[526]][_0xff99[359]]- 1,this[_0xff99[1179]][_0xff99[526]][_0xff99[167]]- 1)};return _0xf598x4};mxStackLayout[_0xff99[202]][_0xff99[350]]= function(_0xf598x2){if(null!= _0xf598x2){var _0xf598x3=this[_0xff99[1737]](),_0xf598x4=this[_0xff99[1179]][_0xff99[502]](),_0xf598x5=this[_0xff99[1739]](_0xf598x2),_0xf598x9=0;null!= _0xf598x5&& (_0xf598x9= _0xf598x3?_0xf598x5[_0xff99[119]]:_0xf598x5[_0xff99[117]]);var _0xf598x9=_0xf598x9- (2* this[_0xff99[657]]+ 2* this[_0xff99[467]]),_0xf598xa=this[_0xff99[1732]]+ this[_0xff99[467]],_0xf598x12=this[_0xff99[1733]]+ this[_0xff99[467]];if(this[_0xff99[1179]][_0xff99[1730]](_0xf598x2)){var _0xf598x13=this[_0xff99[1179]][_0xff99[1705]](_0xf598x2),_0xf598x14=mxUtils[_0xff99[433]](_0xf598x13,mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE),_0xf598x13=mxUtils[_0xff99[433]](_0xf598x13,mxConstants.STYLE_HORIZONTAL,!0);_0xf598x3== _0xf598x13&& (_0xf598x9-= _0xf598x14);_0xf598x3?_0xf598x12+= _0xf598x14:_0xf598xa+= _0xf598x14};_0xf598x4[_0xff99[473]]();try{for(var _0xf598x14=0,_0xf598x13=null,_0xf598x15=_0xf598x4[_0xff99[262]](_0xf598x2),_0xf598x16=0;_0xf598x16< _0xf598x15;_0xf598x16++){var _0xf598x17=_0xf598x4[_0xff99[263]](_0xf598x2,_0xf598x16);if(!this[_0xff99[1713]](_0xf598x17)&& this[_0xff99[1711]](_0xf598x17)){var _0xf598x18=_0xf598x4[_0xff99[1721]](_0xf598x17);if(null!= _0xf598x18){_0xf598x18= _0xf598x18[_0xff99[238]]();if(null!= this[_0xff99[1333]]&& null!= _0xf598x13&& (_0xf598x3&& _0xf598x13[_0xff99[235]]+ _0xf598x13[_0xff99[117]]+ _0xf598x18[_0xff99[117]]+ 2* this[_0xff99[657]]> this[_0xff99[1333]]|| !_0xf598x3&& _0xf598x13[_0xff99[236]]+ _0xf598x13[_0xff99[119]]+ _0xf598x18[_0xff99[119]]+ 2* this[_0xff99[657]]> this[_0xff99[1333]])){_0xf598x13= null,_0xf598x3?_0xf598x12+= _0xf598x14+ this[_0xff99[657]]:_0xf598xa+= _0xf598x14+ this[_0xff99[657]],_0xf598x14= 0};_0xf598x14= Math[_0xff99[160]](_0xf598x14,_0xf598x3?_0xf598x18[_0xff99[119]]:_0xf598x18[_0xff99[117]]);null!= _0xf598x13?_0xf598x3?_0xf598x18[_0xff99[235]]= _0xf598x13[_0xff99[235]]+ _0xf598x13[_0xff99[117]]+ this[_0xff99[657]]:_0xf598x18[_0xff99[236]]= _0xf598x13[_0xff99[236]]+ _0xf598x13[_0xff99[119]]+ this[_0xff99[657]]:this[_0xff99[1734]]|| (_0xf598x3?_0xf598x18[_0xff99[235]]= _0xf598xa:_0xf598x18[_0xff99[236]]= _0xf598x12);_0xf598x3?_0xf598x18[_0xff99[236]]= _0xf598x12:_0xf598x18[_0xff99[235]]= _0xf598xa;this[_0xff99[1334]]&& 0< _0xf598x9&& (_0xf598x3?_0xf598x18[_0xff99[119]]= _0xf598x9:_0xf598x18[_0xff99[117]]= _0xf598x9);_0xf598x4[_0xff99[1724]](_0xf598x17,_0xf598x18);_0xf598x13= _0xf598x18}}};this[_0xff99[1735]]&& null!= _0xf598x5&& null!= _0xf598x13&& !this[_0xff99[1179]][_0xff99[1742]](_0xf598x2)?(_0xf598x5= _0xf598x5[_0xff99[238]](),_0xf598x3?_0xf598x5[_0xff99[117]]= _0xf598x13[_0xff99[235]]+ _0xf598x13[_0xff99[117]]+ this[_0xff99[657]]:_0xf598x5[_0xff99[119]]= _0xf598x13[_0xff99[236]]+ _0xf598x13[_0xff99[119]]+ this[_0xff99[657]],_0xf598x4[_0xff99[1724]](_0xf598x2,_0xf598x5)):this[_0xff99[1736]]&& (null!= _0xf598x5&& null!= _0xf598x13)&& (_0xf598x3?_0xf598x13[_0xff99[117]]= _0xf598x5[_0xff99[117]]- _0xf598x13[_0xff99[235]]- this[_0xff99[657]]:_0xf598x13[_0xff99[119]]= _0xf598x5[_0xff99[119]]- _0xf598x13[_0xff99[236]]- this[_0xff99[657]])}finally{_0xf598x4[_0xff99[476]]()}}};function mxPartitionLayout(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){mxGraphLayout[_0xff99[239]](this,_0xf598x2);this[_0xff99[662]]= null!= _0xf598x3?_0xf598x3:!0;this[_0xff99[657]]= _0xf598x4|| 0;this[_0xff99[467]]= _0xf598x5|| 0}mxPartitionLayout[_0xff99[202]]= new mxGraphLayout;mxPartitionLayout[_0xff99[202]][_0xff99[196]]= mxPartitionLayout;mxPartitionLayout[_0xff99[202]][_0xff99[662]]= null;mxPartitionLayout[_0xff99[202]][_0xff99[657]]= null;mxPartitionLayout[_0xff99[202]][_0xff99[467]]= null;mxPartitionLayout[_0xff99[202]][_0xff99[1743]]= !0;mxPartitionLayout[_0xff99[202]][_0xff99[1737]]= function(){return this[_0xff99[662]]};mxPartitionLayout[_0xff99[202]][_0xff99[1702]]= function(_0xf598x2,_0xf598x3,_0xf598x4){_0xf598x4= this[_0xff99[1179]][_0xff99[502]]();var _0xf598x5=_0xf598x4[_0xff99[1197]](_0xf598x2);if(null!= _0xf598x2&& null!= _0xf598x5){for(var _0xf598x9=0,_0xf598xa=0,_0xf598x12=_0xf598x4[_0xff99[262]](_0xf598x5),_0xf598x9=0;_0xf598x9< _0xf598x12;_0xf598x9++){var _0xf598x13=_0xf598x4[_0xff99[263]](_0xf598x5,_0xf598x9),_0xf598x13=this[_0xff99[1726]](_0xf598x13);if(null!= _0xf598x13){_0xf598x13= _0xf598x13[_0xff99[235]]+ _0xf598x13[_0xff99[117]]/ 2;if(_0xf598xa< _0xf598x3&& _0xf598x13> _0xf598x3){break};_0xf598xa= _0xf598x13}};_0xf598x3= _0xf598x5[_0xff99[1738]](_0xf598x2);_0xf598x3= Math[_0xff99[160]](0,_0xf598x9- (_0xf598x9> _0xf598x3?1:0));_0xf598x4[_0xff99[99]](_0xf598x5,_0xf598x2,_0xf598x3)}};mxPartitionLayout[_0xff99[202]][_0xff99[350]]= function(_0xf598x2){var _0xf598x3=this[_0xff99[1737]](),_0xf598x4=this[_0xff99[1179]][_0xff99[502]](),_0xf598x5=_0xf598x4[_0xff99[1721]](_0xf598x2);if(null!= this[_0xff99[1179]][_0xff99[526]]&& (null== _0xf598x5&& _0xf598x4[_0xff99[1740]](_0xf598x2)|| _0xf598x2== this[_0xff99[1179]][_0xff99[249]]()[_0xff99[1741]])){_0xf598x5= new mxRectangle(0,0,this[_0xff99[1179]][_0xff99[526]][_0xff99[359]]- 1,this[_0xff99[1179]][_0xff99[526]][_0xff99[167]]- 1)};if(null!= _0xf598x5){for(var _0xf598x9=[],_0xf598xa=_0xf598x4[_0xff99[262]](_0xf598x2),_0xf598x12=0;_0xf598x12< _0xf598xa;_0xf598x12++){var _0xf598x13=_0xf598x4[_0xff99[263]](_0xf598x2,_0xf598x12);!this[_0xff99[1713]](_0xf598x13)&& this[_0xff99[1711]](_0xf598x13) && _0xf598x9[_0xff99[207]](_0xf598x13)};_0xf598xa= _0xf598x9[_0xff99[67]];if(0< _0xf598xa){var _0xf598x14=this[_0xff99[467]],_0xf598x15=this[_0xff99[467]],_0xf598x16=_0xf598x3?_0xf598x5[_0xff99[119]]:_0xf598x5[_0xff99[117]],_0xf598x16=_0xf598x16- 2* this[_0xff99[467]];_0xf598x2= this[_0xff99[1179]][_0xff99[1730]](_0xf598x2)?this[_0xff99[1179]][_0xff99[1731]](_0xf598x2): new mxRectangle;_0xf598x16-= _0xf598x3?_0xf598x2[_0xff99[119]]:_0xf598x2[_0xff99[117]];_0xf598x14+= _0xf598x2[_0xff99[117]];_0xf598x15+= _0xf598x2[_0xff99[119]];_0xf598x2= this[_0xff99[467]]+ (_0xf598xa- 1)* this[_0xff99[657]];_0xf598x5= _0xf598x3?(_0xf598x5[_0xff99[117]]- _0xf598x14- _0xf598x2)/ _0xf598xa:(_0xf598x5[_0xff99[119]]- _0xf598x15- _0xf598x2)/ _0xf598xa;if(0< _0xf598x5){_0xf598x4[_0xff99[473]]();try{for(_0xf598x12= 0;_0xf598x12< _0xf598xa;_0xf598x12++){var _0xf598x13=_0xf598x9[_0xf598x12],_0xf598x17=_0xf598x4[_0xff99[1721]](_0xf598x13);null!= _0xf598x17&& (_0xf598x17= _0xf598x17[_0xff99[238]](),_0xf598x17[_0xff99[235]]= _0xf598x14,_0xf598x17[_0xff99[236]]= _0xf598x15,_0xf598x3?(this[_0xff99[1743]]&& (_0xf598x17[_0xff99[117]]= _0xf598x5,_0xf598x17[_0xff99[119]]= _0xf598x16),_0xf598x14+= _0xf598x5+ this[_0xff99[657]]):(this[_0xff99[1743]]&& (_0xf598x17[_0xff99[119]]= _0xf598x5,_0xf598x17[_0xff99[117]]= _0xf598x16),_0xf598x15+= _0xf598x5+ this[_0xff99[657]]),_0xf598x4[_0xff99[1724]](_0xf598x13,_0xf598x17))}}finally{_0xf598x4[_0xff99[476]]()}}}}};function mxCompactTreeLayout(_0xf598x2,_0xf598x3,_0xf598x4){mxGraphLayout[_0xff99[239]](this,_0xf598x2);this[_0xff99[662]]= null!= _0xf598x3?_0xf598x3:!0;this[_0xff99[1744]]= null!= _0xf598x4?_0xf598x4:!1}mxCompactTreeLayout[_0xff99[202]]= new mxGraphLayout;mxCompactTreeLayout[_0xff99[202]][_0xff99[196]]= mxCompactTreeLayout;mxCompactTreeLayout[_0xff99[202]][_0xff99[662]]= null;mxCompactTreeLayout[_0xff99[202]][_0xff99[1744]]= null;mxCompactTreeLayout[_0xff99[202]][_0xff99[1735]]= !0;mxCompactTreeLayout[_0xff99[202]][_0xff99[1745]]= 10;mxCompactTreeLayout[_0xff99[202]][_0xff99[1746]]= null;mxCompactTreeLayout[_0xff99[202]][_0xff99[1747]]= !1;mxCompactTreeLayout[_0xff99[202]][_0xff99[1748]]= 10;mxCompactTreeLayout[_0xff99[202]][_0xff99[1749]]= 20;mxCompactTreeLayout[_0xff99[202]][_0xff99[1750]]= !0;mxCompactTreeLayout[_0xff99[202]][_0xff99[1751]]= 5;mxCompactTreeLayout[_0xff99[202]][_0xff99[1752]]= 4;mxCompactTreeLayout[_0xff99[202]][_0xff99[1753]]= 8;mxCompactTreeLayout[_0xff99[202]][_0xff99[1754]]= 4;mxCompactTreeLayout[_0xff99[202]][_0xff99[1755]]= !0;mxCompactTreeLayout[_0xff99[202]][_0xff99[1713]]= function(_0xf598x2){return mxGraphLayout[_0xff99[202]][_0xff99[1713]][_0xff99[183]](this,arguments)|| 0== this[_0xff99[1179]][_0xff99[1756]](_0xf598x2)[_0xff99[67]]};mxCompactTreeLayout[_0xff99[202]][_0xff99[1737]]= function(){return this[_0xff99[662]]};mxCompactTreeLayout[_0xff99[202]][_0xff99[350]]= function(_0xf598x2,_0xf598x3){this[_0xff99[1101]]= _0xf598x2;var _0xf598x4=this[_0xff99[1179]][_0xff99[502]]();if(null== _0xf598x3){if(0< this[_0xff99[1179]][_0xff99[264]](_0xf598x2,_0xf598x4[_0xff99[1197]](_0xf598x2),this[_0xff99[1744]],!this[_0xff99[1744]],!1)[_0xff99[67]]){_0xf598x3= _0xf598x2}else {var _0xf598x5=this[_0xff99[1179]][_0xff99[1757]](_0xf598x2,!0,this[_0xff99[1744]]);if(0< _0xf598x5[_0xff99[67]]){for(var _0xf598x9=0;_0xf598x9< _0xf598x5[_0xff99[67]];_0xf598x9++){if(!this[_0xff99[1713]](_0xf598x5[_0xf598x9])&& 0< this[_0xff99[1179]][_0xff99[264]](_0xf598x5[_0xf598x9],null,this[_0xff99[1744]],!this[_0xff99[1744]],!1)[_0xff99[67]]){_0xf598x3= _0xf598x5[_0xf598x9];break}}}}};if(null!= _0xf598x3){this[_0xff99[1746]]= this[_0xff99[1735]]?{}:null;_0xf598x4[_0xff99[473]]();try{var _0xf598xa=this[_0xff99[1758]](_0xf598x3,_0xf598x2);if(null!= _0xf598xa){this[_0xff99[1759]](_0xf598xa);var _0xf598x12=this[_0xff99[1179]][_0xff99[1020]],_0xf598x5=_0xf598x12;if(!this[_0xff99[1747]]){var _0xf598x13=this[_0xff99[1726]](_0xf598x3);null!= _0xf598x13&& (_0xf598x12= _0xf598x13[_0xff99[235]],_0xf598x5= _0xf598x13[_0xff99[236]])};_0xf598x13= null;_0xf598x13= this[_0xff99[1737]]()?this[_0xff99[1760]](_0xf598xa,_0xf598x12,_0xf598x5):this[_0xff99[1761]](_0xf598xa,null,_0xf598x12,_0xf598x5);if(null!= _0xf598x13){var _0xf598x14=_0xf598x9= 0;0> _0xf598x13[_0xff99[235]]&& (_0xf598x9= Math[_0xff99[425]](_0xf598x12- _0xf598x13[_0xff99[235]]));0> _0xf598x13[_0xff99[236]]&& (_0xf598x14= Math[_0xff99[425]](_0xf598x5- _0xf598x13[_0xff99[236]]));(0!= _0xf598x9|| 0!= _0xf598x14)&& this[_0xff99[1762]](_0xf598xa,_0xf598x9,_0xf598x14);this[_0xff99[1735]]&& this[_0xff99[1763]]();this[_0xff99[1755]]&& this[_0xff99[1764]](_0xf598xa)}}}finally{_0xf598x4[_0xff99[476]]()}}};mxCompactTreeLayout[_0xff99[202]][_0xff99[1762]]= function(_0xf598x2,_0xf598x3,_0xf598x4){_0xf598x2[_0xff99[235]]+= _0xf598x3;_0xf598x2[_0xff99[236]]+= _0xf598x4;this[_0xff99[183]](_0xf598x2);for(_0xf598x2= _0xf598x2[_0xff99[247]];null!= _0xf598x2;){this[_0xff99[1762]](_0xf598x2,_0xf598x3,_0xf598x4),_0xf598x2= _0xf598x2[_0xff99[1765]]}};mxCompactTreeLayout[_0xff99[202]][_0xff99[1758]]= function(_0xf598x2,_0xf598x3,_0xf598x4){_0xf598x4= null!= _0xf598x4?_0xf598x4:[];var _0xf598x5=mxCellPath[_0xff99[385]](_0xf598x2),_0xf598x9=null;if(null!= _0xf598x2&& null== _0xf598x4[_0xf598x5]&& !this[_0xff99[1713]](_0xf598x2)){_0xf598x4[_0xf598x5]= _0xf598x2;var _0xf598x9=this[_0xff99[1766]](_0xf598x2),_0xf598x5=this[_0xff99[1179]][_0xff99[502]](),_0xf598xa=null;_0xf598x2= this[_0xff99[1179]][_0xff99[264]](_0xf598x2,_0xf598x3,this[_0xff99[1744]],!this[_0xff99[1744]],!1,!0);for(var _0xf598x12=this[_0xff99[1179]][_0xff99[249]](),_0xf598x13=0;_0xf598x13< _0xf598x2[_0xff99[67]];_0xf598x13++){var _0xf598x14=_0xf598x2[_0xf598x13];if(!this[_0xff99[1715]](_0xf598x14)){this[_0xff99[1750]]&& this[_0xff99[1722]](_0xf598x14,null);this[_0xff99[1755]]&& (this[_0xff99[1716]](_0xf598x14,!1),this[_0xff99[1722]](_0xf598x14,null));var _0xf598x15=_0xf598x12[_0xff99[248]](_0xf598x14),_0xf598x14=null!= _0xf598x15?_0xf598x15[_0xff99[1710]](this[_0xff99[1744]]):_0xf598x12[_0xff99[1710]](_0xf598x14,this[_0xff99[1744]]),_0xf598x15=this[_0xff99[1758]](_0xf598x14,_0xf598x3,_0xf598x4);null!= _0xf598x15&& null!= _0xf598x5[_0xff99[1721]](_0xf598x14)&& (null== _0xf598xa?_0xf598x9[_0xff99[247]]= _0xf598x15:_0xf598xa[_0xff99[1765]]= _0xf598x15,_0xf598xa= _0xf598x15)}}};return _0xf598x9};mxCompactTreeLayout[_0xff99[202]][_0xff99[1759]]= function(_0xf598x2){if(null!= _0xf598x2){for(var _0xf598x3=_0xf598x2[_0xff99[247]];null!= _0xf598x3;){this[_0xff99[1759]](_0xf598x3),_0xf598x3= _0xf598x3[_0xff99[1765]]};null!= _0xf598x2[_0xff99[247]]?this[_0xff99[1767]](_0xf598x2,this[_0xff99[234]](_0xf598x2)):this[_0xff99[1768]](_0xf598x2)}};mxCompactTreeLayout[_0xff99[202]][_0xff99[1760]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){_0xf598x2[_0xff99[235]]+= _0xf598x3+ _0xf598x2[_0xff99[1769]];_0xf598x2[_0xff99[236]]+= _0xf598x4+ _0xf598x2[_0xff99[1770]];_0xf598x5= this[_0xff99[183]](_0xf598x2,_0xf598x5);_0xf598x3= _0xf598x2[_0xff99[247]];if(null!= _0xf598x3){_0xf598x5= this[_0xff99[1760]](_0xf598x3,_0xf598x2[_0xff99[235]],_0xf598x2[_0xff99[236]],_0xf598x5);_0xf598x4= _0xf598x2[_0xff99[236]]+ _0xf598x3[_0xff99[1770]];for(var _0xf598x9=_0xf598x3[_0xff99[1765]];null!= _0xf598x9;){_0xf598x5= this[_0xff99[1760]](_0xf598x9,_0xf598x2[_0xff99[235]]+ _0xf598x3[_0xff99[1769]],_0xf598x4,_0xf598x5),_0xf598x4+= _0xf598x9[_0xff99[1770]],_0xf598x9= _0xf598x9[_0xff99[1765]]}};return _0xf598x5};mxCompactTreeLayout[_0xff99[202]][_0xff99[1761]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){_0xf598x2[_0xff99[235]]+= _0xf598x4+ _0xf598x2[_0xff99[1770]];_0xf598x2[_0xff99[236]]+= _0xf598x5+ _0xf598x2[_0xff99[1769]];_0xf598x9= this[_0xff99[183]](_0xf598x2,_0xf598x9);_0xf598x3= _0xf598x2[_0xff99[247]];if(null!= _0xf598x3){_0xf598x9= this[_0xff99[1761]](_0xf598x3,_0xf598x2,_0xf598x2[_0xff99[235]],_0xf598x2[_0xff99[236]],_0xf598x9);_0xf598x4= _0xf598x2[_0xff99[235]]+ _0xf598x3[_0xff99[1770]];for(_0xf598x5= _0xf598x3[_0xff99[1765]];null!= _0xf598x5;){_0xf598x9= this[_0xff99[1761]](_0xf598x5,_0xf598x2,_0xf598x4,_0xf598x2[_0xff99[236]]+ _0xf598x3[_0xff99[1769]],_0xf598x9),_0xf598x4+= _0xf598x5[_0xff99[1770]],_0xf598x5= _0xf598x5[_0xff99[1765]]}};return _0xf598x9};mxCompactTreeLayout[_0xff99[202]][_0xff99[1767]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=this[_0xff99[1749]]+ this[_0xff99[1748]],_0xf598x5=(_0xf598x3- _0xf598x2[_0xff99[117]])/ 2- this[_0xff99[1749]],_0xf598x9=_0xf598x5+ _0xf598x2[_0xff99[117]]+ 2* this[_0xff99[1749]]- _0xf598x3;_0xf598x2[_0xff99[247]][_0xff99[1769]]= _0xf598x4+ _0xf598x2[_0xff99[119]];_0xf598x2[_0xff99[247]][_0xff99[1770]]= _0xf598x9;_0xf598x2[_0xff99[1772]][_0xff99[1771]]= this[_0xff99[1773]](_0xf598x2[_0xff99[119]],0,this[_0xff99[1773]](_0xf598x4,_0xf598x9,_0xf598x2[_0xff99[1772]][_0xff99[1771]]));_0xf598x2[_0xff99[1772]][_0xff99[1774]]= this[_0xff99[1773]](_0xf598x2[_0xff99[119]],0,this[_0xff99[1773]](_0xf598x4,_0xf598x5,_0xf598x2[_0xff99[1772]][_0xff99[1774]]))};mxCompactTreeLayout[_0xff99[202]][_0xff99[1768]]= function(_0xf598x2){var _0xf598x3=2* this[_0xff99[1749]];_0xf598x2[_0xff99[1772]][_0xff99[1775]]= this[_0xff99[1773]](_0xf598x2[_0xff99[119]]+ _0xf598x3,0);_0xf598x2[_0xff99[1772]][_0xff99[1771]]= _0xf598x2[_0xff99[1772]][_0xff99[1775]];_0xf598x2[_0xff99[1772]][_0xff99[1776]]= this[_0xff99[1773]](0,-_0xf598x2[_0xff99[117]]- _0xf598x3);_0xf598x2[_0xff99[1772]][_0xff99[1774]]= this[_0xff99[1773]](_0xf598x2[_0xff99[119]]+ _0xf598x3,0,_0xf598x2[_0xff99[1772]][_0xff99[1776]])};mxCompactTreeLayout[_0xff99[202]][_0xff99[234]]= function(_0xf598x2){var _0xf598x3=2* this[_0xff99[1749]],_0xf598x4=_0xf598x2[_0xff99[247]];_0xf598x2[_0xff99[1772]]= _0xf598x4[_0xff99[1772]];for(var _0xf598x5=_0xf598x4[_0xff99[117]]+ _0xf598x3,_0xf598x9=_0xf598x5,_0xf598x4=_0xf598x4[_0xff99[1765]];null!= _0xf598x4;){var _0xf598xa=this[_0xff99[1777]](_0xf598x2[_0xff99[1772]],_0xf598x4[_0xff99[1772]]);_0xf598x4[_0xff99[1770]]= _0xf598xa+ _0xf598x5;_0xf598x4[_0xff99[1769]]= 0;_0xf598x5= _0xf598x4[_0xff99[117]]+ _0xf598x3;_0xf598x9+= _0xf598xa+ _0xf598x5;_0xf598x4= _0xf598x4[_0xff99[1765]]};return _0xf598x9};mxCompactTreeLayout[_0xff99[202]][_0xff99[1777]]= function(_0xf598x2,_0xf598x3){for(var _0xf598x4=0,_0xf598x5=0,_0xf598x9=0,_0xf598xa=_0xf598x2[_0xff99[1774]],_0xf598x12=_0xf598x3[_0xff99[1771]];null!= _0xf598x12&& null!= _0xf598xa;){var _0xf598x13=this[_0xff99[1368]](_0xf598x4,_0xf598x5,_0xf598x12[_0xff99[1126]],_0xf598x12[_0xff99[1125]],_0xf598xa[_0xff99[1126]],_0xf598xa[_0xff99[1125]]),_0xf598x5=_0xf598x5+ _0xf598x13,_0xf598x9=_0xf598x9+ _0xf598x13;_0xf598x4+ _0xf598x12[_0xff99[1126]]<= _0xf598xa[_0xff99[1126]]?(_0xf598x4+= _0xf598x12[_0xff99[1126]],_0xf598x5+= _0xf598x12[_0xff99[1125]],_0xf598x12= _0xf598x12[_0xff99[1765]]):(_0xf598x4-= _0xf598xa[_0xff99[1126]],_0xf598x5-= _0xf598xa[_0xff99[1125]],_0xf598xa= _0xf598xa[_0xff99[1765]])};null!= _0xf598x12?(_0xf598x4= this[_0xff99[1778]](_0xf598x2[_0xff99[1775]],0,0,_0xf598x12,_0xf598x4,_0xf598x5),_0xf598x2[_0xff99[1775]]= null!= _0xf598x4[_0xff99[1765]]?_0xf598x3[_0xff99[1775]]:_0xf598x4,_0xf598x2[_0xff99[1776]]= _0xf598x3[_0xff99[1776]]):(_0xf598x4= this[_0xff99[1778]](_0xf598x3[_0xff99[1776]],_0xf598x4,_0xf598x5,_0xf598xa,0,0),null== _0xf598x4[_0xff99[1765]]&& (_0xf598x2[_0xff99[1776]]= _0xf598x4));_0xf598x2[_0xff99[1774]]= _0xf598x3[_0xff99[1774]];return _0xf598x9};mxCompactTreeLayout[_0xff99[202]][_0xff99[1368]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa){var _0xf598x12=0;if(_0xf598x9<= _0xf598x2|| 0>= _0xf598x2+ _0xf598x4){return 0};_0xf598x12= 0< _0xf598x9* _0xf598x5- _0xf598x4* _0xf598xa?0> _0xf598x2?_0xf598x2* _0xf598x5/ _0xf598x4- _0xf598x3:0< _0xf598x2?_0xf598x2* _0xf598xa/ _0xf598x9- _0xf598x3:-_0xf598x3:_0xf598x9< _0xf598x2+ _0xf598x4?_0xf598xa- (_0xf598x3+ (_0xf598x9- _0xf598x2)* _0xf598x5/ _0xf598x4):_0xf598x9> _0xf598x2+ _0xf598x4?(_0xf598x4+ _0xf598x2)* _0xf598xa/ _0xf598x9- (_0xf598x3+ _0xf598x5):_0xf598xa- (_0xf598x3+ _0xf598x5);return 0< _0xf598x12?_0xf598x12:0};mxCompactTreeLayout[_0xff99[202]][_0xff99[1778]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa){_0xf598x3= _0xf598x9+ _0xf598x5[_0xff99[1126]]- _0xf598x3;_0xf598x9= _0xf598x9= 0;0== _0xf598x5[_0xff99[1126]]?_0xf598x9= _0xf598x5[_0xff99[1125]]:(_0xf598x9= _0xf598x3* _0xf598x5[_0xff99[1125]],_0xf598x9/= _0xf598x5[_0xff99[1126]]);_0xf598x3= this[_0xff99[1773]](_0xf598x3,_0xf598x9,_0xf598x5[_0xff99[1765]]);_0xf598x2[_0xff99[1765]]= this[_0xff99[1773]](0,_0xf598xa+ _0xf598x5[_0xff99[1125]]- _0xf598x9- _0xf598x4,_0xf598x3);return _0xf598x3};mxCompactTreeLayout[_0xff99[202]][_0xff99[1766]]= function(_0xf598x2){var _0xf598x3={};_0xf598x3[_0xff99[246]]= _0xf598x2;_0xf598x3[_0xff99[235]]= 0;_0xf598x3[_0xff99[236]]= 0;_0xf598x3[_0xff99[117]]= 0;_0xf598x3[_0xff99[119]]= 0;_0xf598x2= this[_0xff99[1726]](_0xf598x2);null!= _0xf598x2&& (this[_0xff99[1737]]()?(_0xf598x3[_0xff99[117]]= _0xf598x2[_0xff99[119]],_0xf598x3[_0xff99[119]]= _0xf598x2[_0xff99[117]]):(_0xf598x3[_0xff99[117]]= _0xf598x2[_0xff99[117]],_0xf598x3[_0xff99[119]]= _0xf598x2[_0xff99[119]]));_0xf598x3[_0xff99[1769]]= 0;_0xf598x3[_0xff99[1770]]= 0;_0xf598x3[_0xff99[1772]]= {};return _0xf598x3};mxCompactTreeLayout[_0xff99[202]][_0xff99[183]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=this[_0xff99[1179]][_0xff99[502]](),_0xf598x5=_0xf598x2[_0xff99[246]],_0xf598x9=_0xf598x4[_0xff99[1721]](_0xf598x5);null!= _0xf598x5&& null!= _0xf598x9&& (this[_0xff99[1711]](_0xf598x5)&& (_0xf598x9= this[_0xff99[1725]](_0xf598x5,_0xf598x2[_0xff99[235]],_0xf598x2[_0xff99[236]]),this[_0xff99[1735]]&& (_0xf598x4= _0xf598x4[_0xff99[1197]](_0xf598x5),_0xf598x5= mxCellPath[_0xff99[385]](_0xf598x4),null== this[_0xff99[1746]][_0xf598x5]&& (this[_0xff99[1746]][_0xf598x5]= _0xf598x4))),_0xf598x3= null== _0xf598x3? new mxRectangle(_0xf598x9[_0xff99[235]],_0xf598x9[_0xff99[236]],_0xf598x9[_0xff99[117]],_0xf598x9[_0xff99[119]]): new mxRectangle(Math[_0xff99[243]](_0xf598x3[_0xff99[235]],_0xf598x9[_0xff99[235]]),Math[_0xff99[243]](_0xf598x3[_0xff99[236]],_0xf598x9[_0xff99[236]]),Math[_0xff99[160]](_0xf598x3[_0xff99[235]]+ _0xf598x3[_0xff99[117]],_0xf598x9[_0xff99[235]]+ _0xf598x9[_0xff99[117]]),Math[_0xff99[160]](_0xf598x3[_0xff99[236]]+ _0xf598x3[_0xff99[119]],_0xf598x9[_0xff99[236]]+ _0xf598x9[_0xff99[119]])));return _0xf598x3};mxCompactTreeLayout[_0xff99[202]][_0xff99[1773]]= function(_0xf598x2,_0xf598x3,_0xf598x4){var _0xf598x5={};_0xf598x5[_0xff99[1126]]= _0xf598x2;_0xf598x5[_0xff99[1125]]= _0xf598x3;_0xf598x5[_0xff99[1765]]= _0xf598x4;return _0xf598x5};mxCompactTreeLayout[_0xff99[202]][_0xff99[1763]]= function(){var _0xf598x2=[],_0xf598x3;for(_0xf598x3 in this[_0xff99[1746]]){_0xf598x2[_0xff99[207]](this[_0xff99[1746]][_0xf598x3])};this[_0xff99[1727]](mxUtils[_0xff99[1779]](_0xf598x2,!0),this[_0xff99[1745]])};mxCompactTreeLayout[_0xff99[202]][_0xff99[1764]]= function(_0xf598x2){this[_0xff99[1780]](_0xf598x2);for(_0xf598x2= _0xf598x2[_0xff99[247]];null!= _0xf598x2;){this[_0xff99[1764]](_0xf598x2),_0xf598x2= _0xf598x2[_0xff99[1765]]}};mxCompactTreeLayout[_0xff99[202]][_0xff99[1780]]= function(_0xf598x2){for(var _0xf598x3=_0xf598x2[_0xff99[247]],_0xf598x4=_0xf598x2[_0xff99[246]],_0xf598x5=0,_0xf598x9=[];null!= _0xf598x3;){_0xf598x5++;var _0xf598xa=_0xf598x3[_0xff99[235]];this[_0xff99[662]]&& (_0xf598xa= _0xf598x3[_0xff99[236]]);_0xf598x9[_0xff99[207]]( new WeightedCellSorter(_0xf598x3,_0xf598xa));_0xf598x3= _0xf598x3[_0xff99[1765]]};_0xf598x9[_0xff99[470]](WeightedCellSorter[_0xff99[202]][_0xff99[469]]);var _0xf598xa=_0xf598x2[_0xff99[117]],_0xf598x12=(_0xf598x5+ 1)* this[_0xff99[1751]];_0xf598xa> _0xf598x12+ 2* this[_0xff99[1751]]&& (_0xf598xa-= 2* this[_0xff99[1751]]);_0xf598x2= _0xf598xa/ _0xf598x5;_0xf598x3= _0xf598x2/ 2;_0xf598xa> _0xf598x12+ 2* this[_0xff99[1751]]&& (_0xf598x3+= this[_0xff99[1751]]);for(var _0xf598xa=this[_0xff99[1753]]- this[_0xff99[1752]],_0xf598x12=0,_0xf598x13=this[_0xff99[1726]](_0xf598x4),_0xf598x14=0;_0xf598x14< _0xf598x9[_0xff99[67]];_0xf598x14++){for(var _0xf598x15=_0xf598x9[_0xf598x14][_0xff99[246]][_0xff99[246]],_0xf598x16=this[_0xff99[1726]](_0xf598x15),_0xf598x15=this[_0xff99[1179]][_0xff99[1781]](_0xf598x4,_0xf598x15,!1),_0xf598x17=[],_0xf598x18=0,_0xf598x19=0,_0xf598x1a=0;_0xf598x1a< _0xf598x15[_0xff99[67]];_0xf598x1a++){this[_0xff99[662]]?(_0xf598x18= _0xf598x13[_0xff99[235]]+ _0xf598x13[_0xff99[117]],_0xf598x19= _0xf598x13[_0xff99[236]]+ _0xf598x3,_0xf598x17[_0xff99[207]]( new mxPoint(_0xf598x18,_0xf598x19)),_0xf598x18= _0xf598x13[_0xff99[235]]+ _0xf598x13[_0xff99[117]]+ _0xf598xa,_0xf598x17[_0xff99[207]]( new mxPoint(_0xf598x18,_0xf598x19)),_0xf598x19= _0xf598x16[_0xff99[236]]+ _0xf598x16[_0xff99[119]]/ 2):(_0xf598x18= _0xf598x13[_0xff99[235]]+ _0xf598x3,_0xf598x19= _0xf598x13[_0xff99[236]]+ _0xf598x13[_0xff99[119]],_0xf598x17[_0xff99[207]]( new mxPoint(_0xf598x18,_0xf598x19)),_0xf598x19= _0xf598x13[_0xff99[236]]+ _0xf598x13[_0xff99[119]]+ _0xf598xa,_0xf598x17[_0xff99[207]]( new mxPoint(_0xf598x18,_0xf598x19)),_0xf598x18= _0xf598x16[_0xff99[235]]+ _0xf598x16[_0xff99[117]]/ 2),_0xf598x17[_0xff99[207]]( new mxPoint(_0xf598x18,_0xf598x19)),this[_0xff99[1722]](_0xf598x15[_0xf598x1a],_0xf598x17)};_0xf598x14< _0xf598x5/ 2?_0xf598xa+= this[_0xff99[1752]]:_0xf598x14> _0xf598x5/ 2&& (_0xf598xa-= this[_0xff99[1752]]);_0xf598x3+= _0xf598x2;_0xf598x12= Math[_0xff99[160]](_0xf598x12,_0xf598xa)}};function WeightedCellSorter(_0xf598x2,_0xf598x3){this[_0xff99[246]]= _0xf598x2;this[_0xff99[1782]]= _0xf598x3}WeightedCellSorter[_0xff99[202]][_0xff99[1782]]= 0;WeightedCellSorter[_0xff99[202]][_0xff99[1783]]= !1;WeightedCellSorter[_0xff99[202]][_0xff99[1784]]= !1;WeightedCellSorter[_0xff99[202]][_0xff99[1785]]= null;WeightedCellSorter[_0xff99[202]][_0xff99[246]]= null;WeightedCellSorter[_0xff99[202]][_0xff99[469]]= function(_0xf598x2,_0xf598x3){return null!= _0xf598x2&& null!= _0xf598x3?_0xf598x3[_0xff99[1782]]> _0xf598x2[_0xff99[1782]]?1:_0xf598x3[_0xff99[1782]]< _0xf598x2[_0xff99[1782]]?-1:_0xf598x3[_0xff99[1783]]?1:-1:0};function mxFastOrganicLayout(_0xf598x2){mxGraphLayout[_0xff99[239]](this,_0xf598x2)}mxFastOrganicLayout[_0xff99[202]]= new mxGraphLayout;mxFastOrganicLayout[_0xff99[202]][_0xff99[196]]= mxFastOrganicLayout;mxFastOrganicLayout[_0xff99[202]][_0xff99[1786]]= !0;mxFastOrganicLayout[_0xff99[202]][_0xff99[1750]]= !0;mxFastOrganicLayout[_0xff99[202]][_0xff99[1787]]= !0;mxFastOrganicLayout[_0xff99[202]][_0xff99[1788]]= 50;mxFastOrganicLayout[_0xff99[202]][_0xff99[1789]]= 0;mxFastOrganicLayout[_0xff99[202]][_0xff99[1790]]= 2;mxFastOrganicLayout[_0xff99[202]][_0xff99[1791]]= 500;mxFastOrganicLayout[_0xff99[202]][_0xff99[1792]]= 4;mxFastOrganicLayout[_0xff99[202]][_0xff99[1793]]= 200;mxFastOrganicLayout[_0xff99[202]][_0xff99[1794]]= 0;mxFastOrganicLayout[_0xff99[202]][_0xff99[1795]]= 0;mxFastOrganicLayout[_0xff99[202]][_0xff99[1796]]= 0;mxFastOrganicLayout[_0xff99[202]][_0xff99[1797]]= !0;mxFastOrganicLayout[_0xff99[202]][_0xff99[1713]]= function(_0xf598x2){return mxGraphLayout[_0xff99[202]][_0xff99[1713]][_0xff99[183]](this,arguments)|| 0== this[_0xff99[1179]][_0xff99[1756]](_0xf598x2)[_0xff99[67]]};mxFastOrganicLayout[_0xff99[202]][_0xff99[350]]= function(_0xf598x2){var _0xf598x3=this[_0xff99[1179]][_0xff99[502]]();this[_0xff99[1798]]= [];for(var _0xf598x4=this[_0xff99[1179]][_0xff99[1728]](_0xf598x2),_0xf598x5=0;_0xf598x5< _0xf598x4[_0xff99[67]];_0xf598x5++){this[_0xff99[1713]](_0xf598x4[_0xf598x5])|| this[_0xff99[1798]][_0xff99[207]](_0xf598x4[_0xf598x5])};var _0xf598x9=this[_0xff99[1786]]?this[_0xff99[1179]][_0xff99[441]][_0xff99[1799]](this[_0xff99[1798]]):null,_0xf598xa=this[_0xff99[1798]][_0xff99[67]];this[_0xff99[1800]]= [];this[_0xff99[1801]]= [];this[_0xff99[1802]]= [];this[_0xff99[1803]]= [];this[_0xff99[1804]]= [];this[_0xff99[1805]]= [];this[_0xff99[1806]]= [];this[_0xff99[1807]]= [];0.0010> this[_0xff99[1788]]&& (this[_0xff99[1788]]= 0.0010);this[_0xff99[1789]]= this[_0xff99[1788]]* this[_0xff99[1788]];for(_0xf598x5= 0;_0xf598x5< this[_0xff99[1798]][_0xff99[67]];_0xf598x5++){var _0xf598x12=this[_0xff99[1798]][_0xf598x5];this[_0xff99[1803]][_0xf598x5]= [];var _0xf598x13=mxCellPath[_0xff99[385]](_0xf598x12);this[_0xff99[1800]][_0xf598x13]= _0xf598x5;var _0xf598x14=this[_0xff99[1726]](_0xf598x12),_0xf598x15=_0xf598x14[_0xff99[117]],_0xf598x16=_0xf598x14[_0xff99[119]],_0xf598x17=_0xf598x14[_0xff99[235]],_0xf598x18=_0xf598x14[_0xff99[236]];this[_0xff99[1803]][_0xf598x5][0]= _0xf598x17+ _0xf598x15/ 2;this[_0xff99[1803]][_0xf598x5][1]= _0xf598x18+ _0xf598x16/ 2;this[_0xff99[1806]][_0xf598x5]= Math[_0xff99[243]](_0xf598x15,_0xf598x16);this[_0xff99[1807]][_0xf598x5]= this[_0xff99[1806]][_0xf598x5]* this[_0xff99[1806]][_0xf598x5]};_0xf598x3[_0xff99[473]]();try{for(_0xf598x5= 0;_0xf598x5< _0xf598xa;_0xf598x5++){this[_0xff99[1801]][_0xf598x5]= 0;this[_0xff99[1802]][_0xf598x5]= 0;this[_0xff99[1804]][_0xf598x5]= this[_0xff99[1711]](this[_0xff99[1798]][_0xf598x5]);var _0xf598x19=this[_0xff99[1179]][_0xff99[1756]](this[_0xff99[1798]][_0xf598x5],_0xf598x2),_0xf598x4=this[_0xff99[1179]][_0xff99[1808]](_0xf598x19,this[_0xff99[1798]][_0xf598x5]);this[_0xff99[1805]][_0xf598x5]= [];for(_0xf598x15= 0;_0xf598x15< _0xf598x4[_0xff99[67]];_0xf598x15++){this[_0xff99[1750]]&& this[_0xff99[1179]][_0xff99[1809]](_0xf598x19[_0xf598x15]);this[_0xff99[1787]]&& this[_0xff99[1716]](_0xf598x19[_0xf598x15],!1);var _0xf598x13=mxCellPath[_0xff99[385]](_0xf598x4[_0xf598x15]),_0xf598x1a=this[_0xff99[1800]][_0xf598x13];this[_0xff99[1805]][_0xf598x5][_0xf598x15]= null!= _0xf598x1a?_0xf598x1a:_0xf598x5}};this[_0xff99[1794]]= this[_0xff99[1793]];0== this[_0xff99[1795]]&& (this[_0xff99[1795]]= 20* Math[_0xff99[428]](_0xf598xa));for(this[_0xff99[1796]]= 0;this[_0xff99[1796]]< this[_0xff99[1795]];this[_0xff99[1796]]++){if(!this[_0xff99[1797]]){return};this[_0xff99[1810]]();this[_0xff99[1811]]();this[_0xff99[1812]]();this[_0xff99[1813]]()};_0xf598x2= _0xf598x4= null;for(_0xf598x5= 0;_0xf598x5< this[_0xff99[1798]][_0xff99[67]];_0xf598x5++){_0xf598x12= this[_0xff99[1798]][_0xf598x5],this[_0xff99[1711]](_0xf598x12)&& (_0xf598x14= this[_0xff99[1726]](_0xf598x12),null!= _0xf598x14&& (this[_0xff99[1803]][_0xf598x5][0]-= _0xf598x14[_0xff99[117]]/ 2,this[_0xff99[1803]][_0xf598x5][1]-= _0xf598x14[_0xff99[119]]/ 2,_0xf598x17= this[_0xff99[1179]][_0xff99[1021]](this[_0xff99[1803]][_0xf598x5][0]),_0xf598x18= this[_0xff99[1179]][_0xff99[1021]](this[_0xff99[1803]][_0xf598x5][1]),this[_0xff99[1725]](_0xf598x12,_0xf598x17,_0xf598x18),_0xf598x4= null== _0xf598x4?_0xf598x17:Math[_0xff99[243]](_0xf598x4,_0xf598x17),_0xf598x2= null== _0xf598x2?_0xf598x18:Math[_0xff99[243]](_0xf598x2,_0xf598x18)))};_0xf598x5= -(_0xf598x4|| 0)+ 1;_0xf598x12= -(_0xf598x2|| 0)+ 1;null!= _0xf598x9&& (_0xf598x5+= _0xf598x9[_0xff99[235]],_0xf598x12+= _0xf598x9[_0xff99[236]]);this[_0xff99[1179]][_0xff99[834]](this[_0xff99[1798]],_0xf598x5,_0xf598x12)}finally{_0xf598x3[_0xff99[476]]()}};mxFastOrganicLayout[_0xff99[202]][_0xff99[1812]]= function(){for(var _0xf598x2=0;_0xf598x2< this[_0xff99[1798]][_0xff99[67]];_0xf598x2++){if(this[_0xff99[1804]][_0xf598x2]){var _0xf598x3=Math[_0xff99[428]](this[_0xff99[1801]][_0xf598x2]* this[_0xff99[1801]][_0xf598x2]+ this[_0xff99[1802]][_0xf598x2]* this[_0xff99[1802]][_0xf598x2]);0.0010> _0xf598x3&& (_0xf598x3= 0.0010);var _0xf598x4=this[_0xff99[1801]][_0xf598x2]/ _0xf598x3* Math[_0xff99[243]](_0xf598x3,this[_0xff99[1794]]),_0xf598x3=this[_0xff99[1802]][_0xf598x2]/ _0xf598x3* Math[_0xff99[243]](_0xf598x3,this[_0xff99[1794]]);this[_0xff99[1801]][_0xf598x2]= 0;this[_0xff99[1802]][_0xf598x2]= 0;this[_0xff99[1803]][_0xf598x2][0]+= _0xf598x4;this[_0xff99[1803]][_0xf598x2][1]+= _0xf598x3}}};mxFastOrganicLayout[_0xff99[202]][_0xff99[1811]]= function(){for(var _0xf598x2=0;_0xf598x2< this[_0xff99[1798]][_0xff99[67]];_0xf598x2++){for(var _0xf598x3=0;_0xf598x3< this[_0xff99[1805]][_0xf598x2][_0xff99[67]];_0xf598x3++){var _0xf598x4=this[_0xff99[1805]][_0xf598x2][_0xf598x3];if(_0xf598x2!= _0xf598x4&& this[_0xff99[1804]][_0xf598x2]&& this[_0xff99[1804]][_0xf598x4]){var _0xf598x5=this[_0xff99[1803]][_0xf598x2][0]- this[_0xff99[1803]][_0xf598x4][0],_0xf598x9=this[_0xff99[1803]][_0xf598x2][1]- this[_0xff99[1803]][_0xf598x4][1],_0xf598xa=_0xf598x5* _0xf598x5+ _0xf598x9* _0xf598x9- this[_0xff99[1807]][_0xf598x2]- this[_0xff99[1807]][_0xf598x4];_0xf598xa< this[_0xff99[1792]]&& (_0xf598xa= this[_0xff99[1792]]);var _0xf598x12=Math[_0xff99[428]](_0xf598xa),_0xf598xa=_0xf598xa/ this[_0xff99[1788]],_0xf598x5=_0xf598x5/ _0xf598x12* _0xf598xa,_0xf598x9=_0xf598x9/ _0xf598x12* _0xf598xa;this[_0xff99[1801]][_0xf598x2]-= _0xf598x5;this[_0xff99[1802]][_0xf598x2]-= _0xf598x9;this[_0xff99[1801]][_0xf598x4]+= _0xf598x5;this[_0xff99[1802]][_0xf598x4]+= _0xf598x9}}}};mxFastOrganicLayout[_0xff99[202]][_0xff99[1810]]= function(){for(var _0xf598x2=this[_0xff99[1798]][_0xff99[67]],_0xf598x3=0;_0xf598x3< _0xf598x2;_0xf598x3++){for(var _0xf598x4=_0xf598x3;_0xf598x4< _0xf598x2;_0xf598x4++){if(!this[_0xff99[1797]]){return};if(_0xf598x4!= _0xf598x3&& this[_0xff99[1804]][_0xf598x3]&& this[_0xff99[1804]][_0xf598x4]){var _0xf598x5=this[_0xff99[1803]][_0xf598x3][0]- this[_0xff99[1803]][_0xf598x4][0],_0xf598x9=this[_0xff99[1803]][_0xf598x3][1]- this[_0xff99[1803]][_0xf598x4][1];0== _0xf598x5&& (_0xf598x5= 0.01+ Math[_0xff99[1814]]());0== _0xf598x9&& (_0xf598x9= 0.01+ Math[_0xff99[1814]]());var _0xf598xa=Math[_0xff99[428]](_0xf598x5* _0xf598x5+ _0xf598x9* _0xf598x9),_0xf598x12=_0xf598xa- this[_0xff99[1806]][_0xf598x3]- this[_0xff99[1806]][_0xf598x4];_0xf598x12> this[_0xff99[1791]]|| (_0xf598x12< this[_0xff99[1790]]&& (_0xf598x12= this[_0xff99[1790]]),_0xf598x12= this[_0xff99[1789]]/ _0xf598x12,_0xf598x5= _0xf598x5/ _0xf598xa* _0xf598x12,_0xf598x9= _0xf598x9/ _0xf598xa* _0xf598x12,this[_0xff99[1801]][_0xf598x3]+= _0xf598x5,this[_0xff99[1802]][_0xf598x3]+= _0xf598x9,this[_0xff99[1801]][_0xf598x4]-= _0xf598x5,this[_0xff99[1802]][_0xf598x4]-= _0xf598x9)}}}};mxFastOrganicLayout[_0xff99[202]][_0xff99[1813]]= function(){this[_0xff99[1794]]= this[_0xff99[1793]]* (1- this[_0xff99[1796]]/ this[_0xff99[1795]])};function mxCircleLayout(_0xf598x2,_0xf598x3){mxGraphLayout[_0xff99[239]](this,_0xf598x2);this[_0xff99[1806]]= null!= _0xf598x3?_0xf598x3:100}mxCircleLayout[_0xff99[202]]= new mxGraphLayout;mxCircleLayout[_0xff99[202]][_0xff99[196]]= mxCircleLayout;mxCircleLayout[_0xff99[202]][_0xff99[1806]]= null;mxCircleLayout[_0xff99[202]][_0xff99[1815]]= !1;mxCircleLayout[_0xff99[202]][_0xff99[1732]]= 0;mxCircleLayout[_0xff99[202]][_0xff99[1733]]= 0;mxCircleLayout[_0xff99[202]][_0xff99[1750]]= !0;mxCircleLayout[_0xff99[202]][_0xff99[1787]]= !0;mxCircleLayout[_0xff99[202]][_0xff99[350]]= function(_0xf598x2){var _0xf598x3=this[_0xff99[1179]][_0xff99[502]]();_0xf598x3[_0xff99[473]]();try{for(var _0xf598x4=0,_0xf598x5=null,_0xf598x9=null,_0xf598xa=[],_0xf598x12=_0xf598x3[_0xff99[262]](_0xf598x2),_0xf598x13=0;_0xf598x13< _0xf598x12;_0xf598x13++){var _0xf598x14=_0xf598x3[_0xff99[263]](_0xf598x2,_0xf598x13);if(this[_0xff99[1713]](_0xf598x14)){this[_0xff99[1715]](_0xf598x14)|| (this[_0xff99[1750]]&& this[_0xff99[1179]][_0xff99[1809]](_0xf598x14),this[_0xff99[1787]]&& this[_0xff99[1716]](_0xf598x14,!1))}else {_0xf598xa[_0xff99[207]](_0xf598x14);var _0xf598x15=this[_0xff99[1726]](_0xf598x14),_0xf598x5=null== _0xf598x5?_0xf598x15[_0xff99[236]]:Math[_0xff99[243]](_0xf598x5,_0xf598x15[_0xff99[236]]),_0xf598x9=null== _0xf598x9?_0xf598x15[_0xff99[235]]:Math[_0xff99[243]](_0xf598x9,_0xf598x15[_0xff99[235]]),_0xf598x4=Math[_0xff99[160]](_0xf598x4,Math[_0xff99[160]](_0xf598x15[_0xff99[117]],_0xf598x15[_0xff99[119]]))}};var _0xf598x16=this[_0xff99[1816]](_0xf598xa[_0xff99[67]],_0xf598x4);this[_0xff99[1815]]&& (_0xf598x9= this[_0xff99[1732]],_0xf598x5= this[_0xff99[1733]]);this[_0xff99[1817]](_0xf598xa,_0xf598x16,_0xf598x9,_0xf598x5)}finally{_0xf598x3[_0xff99[476]]()}};mxCircleLayout[_0xff99[202]][_0xff99[1816]]= function(_0xf598x2,_0xf598x3){return Math[_0xff99[160]](_0xf598x2* _0xf598x3/ Math[_0xff99[424]],this[_0xff99[1806]])};mxCircleLayout[_0xff99[202]][_0xff99[1817]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){for(var _0xf598x9=_0xf598x2[_0xff99[67]],_0xf598xa=2* Math[_0xff99[424]]/ _0xf598x9,_0xf598x12=0;_0xf598x12< _0xf598x9;_0xf598x12++){this[_0xff99[1711]](_0xf598x2[_0xf598x12])&& this[_0xff99[1725]](_0xf598x2[_0xf598x12],_0xf598x4+ _0xf598x3+ _0xf598x3* Math[_0xff99[427]](_0xf598x12* _0xf598xa),_0xf598x5+ _0xf598x3+ _0xf598x3* Math[_0xff99[426]](_0xf598x12* _0xf598xa))}};function mxParallelEdgeLayout(_0xf598x2){mxGraphLayout[_0xff99[239]](this,_0xf598x2)}mxParallelEdgeLayout[_0xff99[202]]= new mxGraphLayout;mxParallelEdgeLayout[_0xff99[202]][_0xff99[196]]= mxParallelEdgeLayout;mxParallelEdgeLayout[_0xff99[202]][_0xff99[657]]= 20;mxParallelEdgeLayout[_0xff99[202]][_0xff99[350]]= function(_0xf598x2){_0xf598x2= this[_0xff99[1818]](_0xf598x2);this[_0xff99[1179]][_0xff99[251]][_0xff99[473]]();try{for(var _0xf598x3 in _0xf598x2){var _0xf598x4=_0xf598x2[_0xf598x3];1< _0xf598x4[_0xff99[67]]&& this[_0xff99[1759]](_0xf598x4)}}finally{this[_0xff99[1179]][_0xff99[251]][_0xff99[476]]()}};mxParallelEdgeLayout[_0xff99[202]][_0xff99[1818]]= function(_0xf598x2){for(var _0xf598x3=this[_0xff99[1179]][_0xff99[502]](),_0xf598x4=[],_0xf598x5=_0xf598x3[_0xff99[262]](_0xf598x2),_0xf598x9=0;_0xf598x9< _0xf598x5;_0xf598x9++){var _0xf598xa=_0xf598x3[_0xff99[263]](_0xf598x2,_0xf598x9);if(!this[_0xff99[1715]](_0xf598xa)){var _0xf598x12=this[_0xff99[1819]](_0xf598xa);null!= _0xf598x12&& (null== _0xf598x4[_0xf598x12]&& (_0xf598x4[_0xf598x12]= []),_0xf598x4[_0xf598x12][_0xff99[207]](_0xf598xa))}};return _0xf598x4};mxParallelEdgeLayout[_0xff99[202]][_0xff99[1819]]= function(_0xf598x2){var _0xf598x3=this[_0xff99[1179]][_0xff99[249]](),_0xf598x4=_0xf598x3[_0xff99[248]](_0xf598x2),_0xf598x5=null!= _0xf598x4?_0xf598x4[_0xff99[1710]](!0):_0xf598x3[_0xff99[1710]](_0xf598x2,!0);_0xf598x2= null!= _0xf598x4?_0xf598x4[_0xff99[1710]](!1):_0xf598x3[_0xff99[1710]](_0xf598x2,!1);return null!= _0xf598x5&& null!= _0xf598x2?(_0xf598x5= mxCellPath[_0xff99[385]](_0xf598x5),_0xf598x2= mxCellPath[_0xff99[385]](_0xf598x2),_0xf598x5> _0xf598x2?_0xf598x2+ _0xff99[213]+ _0xf598x5:_0xf598x5+ _0xff99[213]+ _0xf598x2):null};mxParallelEdgeLayout[_0xff99[202]][_0xff99[1759]]= function(_0xf598x2){var _0xf598x3=_0xf598x2[0],_0xf598x4=this[_0xff99[1179]][_0xff99[502]](),_0xf598x5=_0xf598x4[_0xff99[1721]](_0xf598x4[_0xff99[1709]](_0xf598x3,!0)),_0xf598x9=_0xf598x4[_0xff99[1721]](_0xf598x4[_0xff99[1709]](_0xf598x3,!1));if(_0xf598x5== _0xf598x9){for(var _0xf598x3=_0xf598x5[_0xff99[235]]+ _0xf598x5[_0xff99[117]]+ this[_0xff99[657]],_0xf598x4=_0xf598x5[_0xff99[236]]+ _0xf598x5[_0xff99[119]]/ 2,_0xf598xa=0;_0xf598xa< _0xf598x2[_0xff99[67]];_0xf598xa++){this[_0xff99[1820]](_0xf598x2[_0xf598xa],_0xf598x3,_0xf598x4),_0xf598x3+= this[_0xff99[657]]}}else {if(null!= _0xf598x5&& null!= _0xf598x9){for(var _0xf598x3=_0xf598x5[_0xff99[235]]+ _0xf598x5[_0xff99[117]]/ 2,_0xf598x4=_0xf598x5[_0xff99[236]]+ _0xf598x5[_0xff99[119]]/ 2,_0xf598xa=_0xf598x9[_0xff99[235]]+ _0xf598x9[_0xff99[117]]/ 2- _0xf598x3,_0xf598x12=_0xf598x9[_0xff99[236]]+ _0xf598x9[_0xff99[119]]/ 2- _0xf598x4,_0xf598x9=Math[_0xff99[428]](_0xf598xa* _0xf598xa+ _0xf598x12* _0xf598x12),_0xf598x5=_0xf598x12* this[_0xff99[657]]/ _0xf598x9,_0xf598x9=_0xf598xa* this[_0xff99[657]]/ _0xf598x9,_0xf598x3=_0xf598x3+ _0xf598xa/ 2+ _0xf598x5* (_0xf598x2[_0xff99[67]]- 1)/ 2,_0xf598x4=_0xf598x4+ _0xf598x12/ 2- _0xf598x9* (_0xf598x2[_0xff99[67]]- 1)/ 2,_0xf598xa=0;_0xf598xa< _0xf598x2[_0xff99[67]];_0xf598xa++){this[_0xff99[1820]](_0xf598x2[_0xf598xa],_0xf598x3,_0xf598x4),_0xf598x3-= _0xf598x5,_0xf598x4+= _0xf598x9}}}};mxParallelEdgeLayout[_0xff99[202]][_0xff99[1820]]= function(_0xf598x2,_0xf598x3,_0xf598x4){this[_0xff99[1179]][_0xff99[1712]](_0xf598x2)&& this[_0xff99[1722]](_0xf598x2,[ new mxPoint(_0xf598x3,_0xf598x4)])};function mxCompositeLayout(_0xf598x2,_0xf598x3,_0xf598x4){mxGraphLayout[_0xff99[239]](this,_0xf598x2);this[_0xff99[1821]]= _0xf598x3;this[_0xff99[1822]]= _0xf598x4}mxCompositeLayout[_0xff99[202]]= new mxGraphLayout;mxCompositeLayout[_0xff99[202]][_0xff99[196]]= mxCompositeLayout;mxCompositeLayout[_0xff99[202]][_0xff99[1821]]= null;mxCompositeLayout[_0xff99[202]][_0xff99[1822]]= null;mxCompositeLayout[_0xff99[202]][_0xff99[1702]]= function(_0xf598x2,_0xf598x3,_0xf598x4){null!= this[_0xff99[1822]]?this[_0xff99[1822]][_0xff99[582]][_0xff99[183]](this[_0xff99[1822]],arguments):this[_0xff99[1821]][0][_0xff99[582]][_0xff99[183]](this[_0xff99[1821]][0],arguments)};mxCompositeLayout[_0xff99[202]][_0xff99[350]]= function(_0xf598x2){var _0xf598x3=this[_0xff99[1179]][_0xff99[502]]();_0xf598x3[_0xff99[473]]();try{for(var _0xf598x4=0;_0xf598x4< this[_0xff99[1821]][_0xff99[67]];_0xf598x4++){this[_0xff99[1821]][_0xf598x4][_0xff99[350]][_0xff99[183]](this[_0xff99[1821]][_0xf598x4],arguments)}}finally{_0xf598x3[_0xff99[476]]()}};function mxEdgeLabelLayout(_0xf598x2,_0xf598x3){mxGraphLayout[_0xff99[239]](this,_0xf598x2)}mxEdgeLabelLayout[_0xff99[202]]= new mxGraphLayout;mxEdgeLabelLayout[_0xff99[202]][_0xff99[196]]= mxEdgeLabelLayout;mxEdgeLabelLayout[_0xff99[202]][_0xff99[350]]= function(_0xf598x2){for(var _0xf598x3=this[_0xff99[1179]][_0xff99[441]],_0xf598x4=this[_0xff99[1179]][_0xff99[502]](),_0xf598x5=[],_0xf598x9=[],_0xf598xa=_0xf598x4[_0xff99[262]](_0xf598x2),_0xf598x12=0;_0xf598x12< _0xf598xa;_0xf598x12++){var _0xf598x13=_0xf598x4[_0xff99[263]](_0xf598x2,_0xf598x12),_0xf598x14=_0xf598x3[_0xff99[248]](_0xf598x13);null!= _0xf598x14&& (this[_0xff99[1713]](_0xf598x13)?this[_0xff99[1715]](_0xf598x13)|| _0xf598x5[_0xff99[207]](_0xf598x14):_0xf598x9[_0xff99[207]](_0xf598x14))};this[_0xff99[1823]](_0xf598x9,_0xf598x5)};mxEdgeLabelLayout[_0xff99[202]][_0xff99[1823]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=this[_0xff99[1179]][_0xff99[502]]();_0xf598x4[_0xff99[473]]();try{for(var _0xf598x5=0;_0xf598x5< _0xf598x3[_0xff99[67]];_0xf598x5++){var _0xf598x9=_0xf598x3[_0xf598x5];if(null!= _0xf598x9&& null!= _0xf598x9[_0xff99[963]]&& null!= _0xf598x9[_0xff99[963]][_0xff99[1563]]){for(var _0xf598xa=0;_0xf598xa< _0xf598x2[_0xff99[67]];_0xf598xa++){var _0xf598x12=_0xf598x2[_0xf598xa];null!= _0xf598x12&& this[_0xff99[1824]](_0xf598x9,_0xf598x12)}}}}finally{_0xf598x4[_0xff99[476]]()}};mxEdgeLabelLayout[_0xff99[202]][_0xff99[1824]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=this[_0xff99[1179]][_0xff99[502]](),_0xf598x5=_0xf598x2[_0xff99[963]][_0xff99[1563]];if(mxUtils[_0xff99[1825]](_0xf598x5,_0xf598x3)){var _0xf598x9=-_0xf598x5[_0xff99[236]]- _0xf598x5[_0xff99[119]] + _0xf598x3[_0xff99[236]],_0xf598xa=-_0xf598x5[_0xff99[236]]+ _0xf598x3[_0xff99[236]] + _0xf598x3[_0xff99[119]],_0xf598x9=Math[_0xff99[425]](_0xf598x9)< Math[_0xff99[425]](_0xf598xa)?_0xf598x9:_0xf598xa,_0xf598xa=-_0xf598x5[_0xff99[235]]- _0xf598x5[_0xff99[117]] + _0xf598x3[_0xff99[235]],_0xf598x5=-_0xf598x5[_0xff99[235]]+ _0xf598x3[_0xff99[235]] + _0xf598x3[_0xff99[117]],_0xf598x5=Math[_0xff99[425]](_0xf598xa)< Math[_0xff99[425]](_0xf598x5)?_0xf598xa:_0xf598x5;Math[_0xff99[425]](_0xf598x5)< Math[_0xff99[425]](_0xf598x9)?_0xf598x9= 0:_0xf598x5= 0;_0xf598xa= _0xf598x4[_0xff99[1721]](_0xf598x2[_0xff99[246]]);null!= _0xf598xa&& (_0xf598xa= _0xf598xa[_0xff99[238]](),null!= _0xf598xa[_0xff99[1368]]?(_0xf598xa[_0xff99[1368]][_0xff99[235]]+= _0xf598x5,_0xf598xa[_0xff99[1368]][_0xff99[236]]+= _0xf598x9):_0xf598xa[_0xff99[1368]]= new mxPoint(_0xf598x5,_0xf598x9),_0xf598x4[_0xff99[1724]](_0xf598x2[_0xff99[246]],_0xf598xa))}};function mxGraphAbstractHierarchyCell(){this[_0xff99[235]]= [];this[_0xff99[236]]= [];this[_0xff99[1826]]= []}mxGraphAbstractHierarchyCell[_0xff99[202]][_0xff99[1827]]= -1;mxGraphAbstractHierarchyCell[_0xff99[202]][_0xff99[1828]]= -1;mxGraphAbstractHierarchyCell[_0xff99[202]][_0xff99[235]]= null;mxGraphAbstractHierarchyCell[_0xff99[202]][_0xff99[236]]= null;mxGraphAbstractHierarchyCell[_0xff99[202]][_0xff99[117]]= 0;mxGraphAbstractHierarchyCell[_0xff99[202]][_0xff99[119]]= 0;mxGraphAbstractHierarchyCell[_0xff99[202]][_0xff99[1829]]= null;mxGraphAbstractHierarchyCell[_0xff99[202]][_0xff99[1830]]= null;mxGraphAbstractHierarchyCell[_0xff99[202]][_0xff99[1826]]= null;mxGraphAbstractHierarchyCell[_0xff99[202]][_0xff99[1831]]= function(_0xf598x2){return null};mxGraphAbstractHierarchyCell[_0xff99[202]][_0xff99[1832]]= function(_0xf598x2){return null};mxGraphAbstractHierarchyCell[_0xff99[202]][_0xff99[250]]= function(){return !1};mxGraphAbstractHierarchyCell[_0xff99[202]][_0xff99[1193]]= function(){return !1};mxGraphAbstractHierarchyCell[_0xff99[202]][_0xff99[1833]]= function(_0xf598x2){return null};mxGraphAbstractHierarchyCell[_0xff99[202]][_0xff99[1834]]= function(_0xf598x2,_0xf598x3){return null};mxGraphAbstractHierarchyCell[_0xff99[202]][_0xff99[1835]]= function(_0xf598x2,_0xf598x3){this[_0xff99[1193]]()?this[_0xff99[235]][0]= _0xf598x3:this[_0xff99[250]]()&& (this[_0xff99[235]][_0xf598x2- this[_0xff99[1828]]- 1]= _0xf598x3)};mxGraphAbstractHierarchyCell[_0xff99[202]][_0xff99[730]]= function(_0xf598x2){return this[_0xff99[1193]]()?this[_0xff99[235]][0]:this[_0xff99[250]]()?this[_0xff99[235]][_0xf598x2- this[_0xff99[1828]]- 1]:0};mxGraphAbstractHierarchyCell[_0xff99[202]][_0xff99[1836]]= function(_0xf598x2,_0xf598x3){this[_0xff99[1193]]()?this[_0xff99[236]][0]= _0xf598x3:this[_0xff99[250]]()&& (this[_0xff99[236]][_0xf598x2- this[_0xff99[1828]]- 1]= _0xf598x3)};function mxGraphHierarchyNode(_0xf598x2){mxGraphAbstractHierarchyCell[_0xff99[183]](this,arguments);this[_0xff99[246]]= _0xf598x2}mxGraphHierarchyNode[_0xff99[202]]= new mxGraphAbstractHierarchyCell;mxGraphHierarchyNode[_0xff99[202]][_0xff99[196]]= mxGraphHierarchyNode;mxGraphHierarchyNode[_0xff99[202]][_0xff99[246]]= null;mxGraphHierarchyNode[_0xff99[202]][_0xff99[1837]]= [];mxGraphHierarchyNode[_0xff99[202]][_0xff99[1838]]= [];mxGraphHierarchyNode[_0xff99[202]][_0xff99[1839]]= !1;mxGraphHierarchyNode[_0xff99[202]][_0xff99[1840]]= function(_0xf598x2){return this[_0xff99[1827]]};mxGraphHierarchyNode[_0xff99[202]][_0xff99[1831]]= function(_0xf598x2){if(null== this[_0xff99[1829]]){this[_0xff99[1829]]= [];this[_0xff99[1829]][0]= [];for(var _0xf598x3=0;_0xf598x3< this[_0xff99[1837]][_0xff99[67]];_0xf598x3++){var _0xf598x4=this[_0xff99[1837]][_0xf598x3];-1== _0xf598x4[_0xff99[1827]] || _0xf598x4[_0xff99[1827]]== _0xf598x2+ 1?this[_0xff99[1829]][0][_0xff99[207]](_0xf598x4[_0xff99[1097]]):this[_0xff99[1829]][0][_0xff99[207]](_0xf598x4)}};return this[_0xff99[1829]][0]};mxGraphHierarchyNode[_0xff99[202]][_0xff99[1832]]= function(_0xf598x2){if(null== this[_0xff99[1830]]){this[_0xff99[1830]]= [];this[_0xff99[1830]][0]= [];for(var _0xf598x3=0;_0xf598x3< this[_0xff99[1838]][_0xff99[67]];_0xf598x3++){var _0xf598x4=this[_0xff99[1838]][_0xf598x3];-1== _0xf598x4[_0xff99[1828]] || _0xf598x4[_0xff99[1828]]== _0xf598x2- 1?this[_0xff99[1830]][0][_0xff99[207]](_0xf598x4[_0xff99[772]]):this[_0xff99[1830]][0][_0xff99[207]](_0xf598x4)}};return this[_0xff99[1830]][0]};mxGraphHierarchyNode[_0xff99[202]][_0xff99[1193]]= function(){return !0};mxGraphHierarchyNode[_0xff99[202]][_0xff99[1833]]= function(_0xf598x2){return this[_0xff99[1826]][0]};mxGraphHierarchyNode[_0xff99[202]][_0xff99[1834]]= function(_0xf598x2,_0xf598x3){this[_0xff99[1826]][0]= _0xf598x3};mxGraphHierarchyNode[_0xff99[202]][_0xff99[1720]]= function(_0xf598x2){if(null!= _0xf598x2&& null!= this[_0xff99[1839]]&& null!= _0xf598x2[_0xff99[1839]]&& this[_0xff99[1839]][_0xff99[67]]< _0xf598x2[_0xff99[1839]][_0xff99[67]]){if(this[_0xff99[1839]]== _0xf598x2[_0xff99[1839]]){return !0};if(null== this[_0xff99[1839]]|| null== this[_0xff99[1839]]){return !1};for(var _0xf598x3=0;_0xf598x3< this[_0xff99[1839]][_0xff99[67]];_0xf598x3++){if(this[_0xff99[1839]][_0xf598x3]!= _0xf598x2[_0xff99[1839]][_0xf598x3]){return !1}};return !0};return !1};mxGraphHierarchyNode[_0xff99[202]][_0xff99[1841]]= function(){return this[_0xff99[246]]};function mxGraphHierarchyEdge(_0xf598x2){mxGraphAbstractHierarchyCell[_0xff99[183]](this,arguments);this[_0xff99[1842]]= _0xf598x2}mxGraphHierarchyEdge[_0xff99[202]]= new mxGraphAbstractHierarchyCell;mxGraphHierarchyEdge[_0xff99[202]][_0xff99[196]]= mxGraphHierarchyEdge;mxGraphHierarchyEdge[_0xff99[202]][_0xff99[1842]]= null;mxGraphHierarchyEdge[_0xff99[202]][_0xff99[1097]]= null;mxGraphHierarchyEdge[_0xff99[202]][_0xff99[772]]= null;mxGraphHierarchyEdge[_0xff99[202]][_0xff99[1843]]= !1;mxGraphHierarchyEdge[_0xff99[202]][_0xff99[1744]]= function(_0xf598x2){_0xf598x2= this[_0xff99[1097]];this[_0xff99[1097]]= this[_0xff99[772]];this[_0xff99[772]]= _0xf598x2;this[_0xff99[1843]]= !this[_0xff99[1843]]};mxGraphHierarchyEdge[_0xff99[202]][_0xff99[1831]]= function(_0xf598x2){if(null== this[_0xff99[1829]]){this[_0xff99[1829]]= [];for(var _0xf598x3=0;_0xf598x3< this[_0xff99[1826]][_0xff99[67]];_0xf598x3++){this[_0xff99[1829]][_0xf598x3]= [],_0xf598x3== this[_0xff99[1826]][_0xff99[67]]- 1?this[_0xff99[1829]][_0xf598x3][_0xff99[207]](this[_0xff99[1097]]):this[_0xff99[1829]][_0xf598x3][_0xff99[207]](this)}};return this[_0xff99[1829]][_0xf598x2- this[_0xff99[1828]]- 1]};mxGraphHierarchyEdge[_0xff99[202]][_0xff99[1832]]= function(_0xf598x2){if(null== this[_0xff99[1830]]){this[_0xff99[1830]]= [];for(var _0xf598x3=0;_0xf598x3< this[_0xff99[1826]][_0xff99[67]];_0xf598x3++){this[_0xff99[1830]][_0xf598x3]= [],0== _0xf598x3?this[_0xff99[1830]][_0xf598x3][_0xff99[207]](this[_0xff99[772]]):this[_0xff99[1830]][_0xf598x3][_0xff99[207]](this)}};return this[_0xff99[1830]][_0xf598x2- this[_0xff99[1828]]- 1]};mxGraphHierarchyEdge[_0xff99[202]][_0xff99[250]]= function(){return !0};mxGraphHierarchyEdge[_0xff99[202]][_0xff99[1833]]= function(_0xf598x2){return this[_0xff99[1826]][_0xf598x2- this[_0xff99[1828]]- 1]};mxGraphHierarchyEdge[_0xff99[202]][_0xff99[1834]]= function(_0xf598x2,_0xf598x3){this[_0xff99[1826]][_0xf598x2- this[_0xff99[1828]]- 1]= _0xf598x3};mxGraphHierarchyEdge[_0xff99[202]][_0xff99[1841]]= function(){return null!= this[_0xff99[1842]]&& 0< this[_0xff99[1842]][_0xff99[67]]?this[_0xff99[1842]][0]:null};function mxGraphHierarchyModel(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){_0xf598x2[_0xff99[1703]]();this[_0xff99[1844]]= _0xf598x9;this[_0xff99[1845]]= _0xf598x4;this[_0xff99[1101]]= _0xf598x5;this[_0xff99[1846]]= {};this[_0xff99[1847]]= {};this[_0xff99[1827]]= 0;_0xf598x4= [];null== _0xf598x3&& (_0xf598x3= this[_0xff99[1179]][_0xff99[1728]](_0xf598x5));this[_0xff99[1827]]= this[_0xff99[1848]];this[_0xff99[1849]](_0xf598x2,_0xf598x3,_0xf598x4);for(_0xf598x5= 0;_0xf598x5< _0xf598x3[_0xff99[67]];_0xf598x5++){_0xf598x9= _0xf598x4[_0xf598x5][_0xff99[1838]];for(var _0xf598xa=0;_0xf598xa< _0xf598x9[_0xff99[67]];_0xf598xa++){var _0xf598x12=_0xf598x9[_0xf598xa],_0xf598x13=_0xf598x12[_0xff99[1842]];if(null!= _0xf598x13&& 0< _0xf598x13[_0xff99[67]]){var _0xf598x13=_0xf598x13[0],_0xf598x14=_0xf598x2[_0xff99[1710]](_0xf598x13,!1),_0xf598x14=mxCellPath[_0xff99[385]](_0xf598x14),_0xf598x14=this[_0xff99[1846]][_0xf598x14];_0xf598x4[_0xf598x5]== _0xf598x14&& (_0xf598x14= _0xf598x2[_0xff99[1710]](_0xf598x13,!0),_0xf598x14= mxCellPath[_0xff99[385]](_0xf598x14),_0xf598x14= this[_0xff99[1846]][_0xf598x14]);null!= _0xf598x14&& _0xf598x4[_0xf598x5]!= _0xf598x14&& (_0xf598x12[_0xff99[772]]= _0xf598x14,0== _0xf598x14[_0xff99[1837]][_0xff99[67]]&& (_0xf598x14[_0xff99[1837]]= []),0> mxUtils[_0xff99[2]](_0xf598x14[_0xff99[1837]],_0xf598x12)&& _0xf598x14[_0xff99[1837]][_0xff99[207]](_0xf598x12))}};_0xf598x4[_0xf598x5][_0xff99[1826]][0]= 1}}mxGraphHierarchyModel[_0xff99[202]][_0xff99[1827]]= null;mxGraphHierarchyModel[_0xff99[202]][_0xff99[1846]]= null;mxGraphHierarchyModel[_0xff99[202]][_0xff99[1847]]= null;mxGraphHierarchyModel[_0xff99[202]][_0xff99[1850]]= null;mxGraphHierarchyModel[_0xff99[202]][_0xff99[1845]]= null;mxGraphHierarchyModel[_0xff99[202]][_0xff99[1101]]= null;mxGraphHierarchyModel[_0xff99[202]][_0xff99[1851]]= 0;mxGraphHierarchyModel[_0xff99[202]][_0xff99[1848]]= 1E8;mxGraphHierarchyModel[_0xff99[202]][_0xff99[1844]]= !1;mxGraphHierarchyModel[_0xff99[202]][_0xff99[1849]]= function(_0xf598x2,_0xf598x3,_0xf598x4){for(var _0xf598x5=_0xf598x2[_0xff99[1703]](),_0xf598x9=0;_0xf598x9< _0xf598x3[_0xff99[67]];_0xf598x9++){_0xf598x4[_0xf598x9]= new mxGraphHierarchyNode(_0xf598x3[_0xf598x9]);var _0xf598xa=mxCellPath[_0xff99[385]](_0xf598x3[_0xf598x9]);this[_0xff99[1846]][_0xf598xa]= _0xf598x4[_0xf598x9];_0xf598xa= _0xf598x2[_0xff99[264]](_0xf598x3[_0xf598x9]);_0xf598x4[_0xf598x9][_0xff99[1838]]= [];for(var _0xf598x12=0;_0xf598x12< _0xf598xa[_0xff99[67]];_0xf598x12++){var _0xf598x13=_0xf598x2[_0xff99[1710]](_0xf598xa[_0xf598x12],!1);if(_0xf598x13!= _0xf598x3[_0xf598x9]&& _0xf598x13!= _0xf598x3[_0xf598x9]&& _0xf598x2[_0xff99[1179]][_0xff99[251]][_0xff99[1193]](_0xf598x13)&& !_0xf598x2[_0xff99[1713]](_0xf598x13)){var _0xf598x14=_0xf598x2[_0xff99[1781]](_0xf598x3[_0xf598x9],_0xf598x13,!1),_0xf598x15=_0xf598x2[_0xff99[1781]](_0xf598x3[_0xf598x9],_0xf598x13,!0),_0xf598x13=mxCellPath[_0xff99[385]](_0xf598x14[0]);if(null!= _0xf598x14&& 0< _0xf598x14[_0xff99[67]]&& null== this[_0xff99[1847]][_0xf598x13]&& 2* _0xf598x15[_0xff99[67]]>= _0xf598x14[_0xff99[67]]){for(var _0xf598x15= new mxGraphHierarchyEdge(_0xf598x14),_0xf598x16=0;_0xf598x16< _0xf598x14[_0xff99[67]];_0xf598x16++){var _0xf598x17=_0xf598x14[_0xf598x16],_0xf598x13=mxCellPath[_0xff99[385]](_0xf598x17);this[_0xff99[1847]][_0xf598x13]= _0xf598x15;_0xf598x5[_0xff99[1809]](_0xf598x17);_0xf598x2[_0xff99[1787]]&& (_0xf598x2[_0xff99[1716]](_0xf598x17,!1),_0xf598x2[_0xff99[1718]](_0xf598x17,!0))};_0xf598x15[_0xff99[1097]]= _0xf598x4[_0xf598x9];0> mxUtils[_0xff99[2]](_0xf598x4[_0xf598x9][_0xff99[1838]],_0xf598x15)&& _0xf598x4[_0xf598x9][_0xff99[1838]][_0xff99[207]](_0xf598x15)}}};_0xf598x4[_0xf598x9][_0xff99[1826]][0]= 0}};mxGraphHierarchyModel[_0xff99[202]][_0xff99[1852]]= function(){var _0xf598x2=[];if(null!= this[_0xff99[1845]]){for(var _0xf598x3=0;_0xf598x3< this[_0xff99[1845]][_0xff99[67]];_0xf598x3++){var _0xf598x4=mxCellPath[_0xff99[385]](this[_0xff99[1845]][_0xf598x3]),_0xf598x4=this[_0xff99[1846]][_0xf598x4];null!= _0xf598x4&& _0xf598x2[_0xff99[207]](_0xf598x4)}};for(var _0xf598x5 in this[_0xff99[1846]]){_0xf598x4= this[_0xff99[1846]][_0xf598x5],_0xf598x4[_0xff99[1826]][0]= -1};for(var _0xf598x9=_0xf598x2[_0xff99[1853]]();0< _0xf598x2[_0xff99[67]];){var _0xf598x4=_0xf598x2[0],_0xf598xa,_0xf598x12;_0xf598xa= _0xf598x4[_0xff99[1837]];_0xf598x12= _0xf598x4[_0xff99[1838]];for(var _0xf598x13=!0,_0xf598x14=this[_0xff99[1848]],_0xf598x3=0;_0xf598x3< _0xf598xa[_0xff99[67]];_0xf598x3++){var _0xf598x15=_0xf598xa[_0xf598x3];if(5270620== _0xf598x15[_0xff99[1826]][0]){_0xf598x15= _0xf598x15[_0xff99[1097]],_0xf598x14= Math[_0xff99[243]](_0xf598x14,_0xf598x15[_0xff99[1826]][0]- 1)}else {_0xf598x13= !1;break}};if(_0xf598x13){_0xf598x4[_0xff99[1826]][0]= _0xf598x14;this[_0xff99[1827]]= Math[_0xff99[243]](this[_0xff99[1827]],_0xf598x14);if(null!= _0xf598x12){for(_0xf598x3= 0;_0xf598x3< _0xf598x12[_0xff99[67]];_0xf598x3++){_0xf598x15= _0xf598x12[_0xf598x3],_0xf598x15[_0xff99[1826]][0]= 5270620,_0xf598x15= _0xf598x15[_0xff99[772]],-1== _0xf598x15[_0xff99[1826]][0] && (_0xf598x2[_0xff99[207]](_0xf598x15),_0xf598x15[_0xff99[1826]][0]= -2)}};_0xf598x2[_0xff99[1115]]()}else {if(_0xf598x3= _0xf598x2[_0xff99[1115]](),_0xf598x2[_0xff99[207]](_0xf598x4),_0xf598x3== _0xf598x4&& 1== _0xf598x2[_0xff99[67]]){break}}};for(_0xf598x5 in this[_0xff99[1846]]){_0xf598x4= this[_0xff99[1846]][_0xf598x5],_0xf598x4[_0xff99[1826]][0]-= this[_0xff99[1827]]};for(_0xf598x3= 0;_0xf598x3< _0xf598x9[_0xff99[67]];_0xf598x3++){_0xf598x4= _0xf598x9[_0xf598x3];_0xf598x2= 0;_0xf598xa= _0xf598x4[_0xff99[1838]];for(_0xf598x5= 0;_0xf598x5< _0xf598xa[_0xff99[67]];_0xf598x5++){_0xf598x15= _0xf598xa[_0xf598x5],_0xf598x15= _0xf598x15[_0xff99[772]],_0xf598x4[_0xff99[1826]][0]= Math[_0xff99[160]](_0xf598x2,_0xf598x15[_0xff99[1826]][0]+ 1),_0xf598x2= _0xf598x4[_0xff99[1826]][0]}};this[_0xff99[1827]]= this[_0xff99[1848]]- this[_0xff99[1827]]};mxGraphHierarchyModel[_0xff99[202]][_0xff99[1854]]= function(){var _0xf598x2=[];this[_0xff99[1850]]= [];for(var _0xf598x3=0;_0xf598x3< this[_0xff99[1827]]+ 1;_0xf598x3++){_0xf598x2[_0xf598x3]= [],this[_0xff99[1850]][_0xf598x3]= _0xf598x2[_0xf598x3]};var _0xf598x4=null;if(null!= this[_0xff99[1845]]){for(var _0xf598x5=this[_0xff99[1845]],_0xf598x4=[],_0xf598x3=0;_0xf598x3< _0xf598x5[_0xff99[67]];_0xf598x3++){var _0xf598x9=mxCellPath[_0xff99[385]](_0xf598x5[_0xf598x3]);_0xf598x4[_0xf598x3]= this[_0xff99[1846]][_0xf598x9]}};this[_0xff99[209]](function(_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598x15){0== _0xf598x15&& (0> _0xf598x4[_0xff99[1827]]&& 0> _0xf598x4[_0xff99[1828]])&& (_0xf598x2[_0xf598x4[_0xff99[1826]][0]][_0xff99[207]](_0xf598x4),_0xf598x4[_0xff99[1827]]= _0xf598x4[_0xff99[1826]][0],_0xf598x4[_0xff99[1828]]= _0xf598x4[_0xff99[1826]][0],_0xf598x4[_0xff99[1826]][0]= _0xf598x2[_0xf598x4[_0xff99[1827]]][_0xff99[67]]- 1);if(null!= _0xf598x3&& null!= _0xf598x5&& 1< _0xf598x3[_0xff99[1827]]- _0xf598x4[_0xff99[1827]]){_0xf598x5[_0xff99[1827]]= _0xf598x3[_0xff99[1827]];_0xf598x5[_0xff99[1828]]= _0xf598x4[_0xff99[1827]];_0xf598x5[_0xff99[1826]]= [];_0xf598x5[_0xff99[235]]= [];_0xf598x5[_0xff99[236]]= [];for(_0xf598x3= _0xf598x5[_0xff99[1828]]+ 1;_0xf598x3< _0xf598x5[_0xff99[1827]];_0xf598x3++){_0xf598x2[_0xf598x3][_0xff99[207]](_0xf598x5),_0xf598x5[_0xff99[1834]](_0xf598x3,_0xf598x2[_0xf598x3][_0xff99[67]]- 1)}}},_0xf598x4,!1,null)};mxGraphHierarchyModel[_0xff99[202]][_0xff99[209]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){if(null!= _0xf598x3){for(var _0xf598x9=0;_0xf598x9< _0xf598x3[_0xff99[67]];_0xf598x9++){var _0xf598xa=_0xf598x3[_0xf598x9];null!= _0xf598xa&& (null== _0xf598x5&& (_0xf598x5= {}),_0xf598x4?(_0xf598xa[_0xff99[1839]]= [],_0xf598xa[_0xff99[1839]][0]= this[_0xff99[1851]],_0xf598xa[_0xff99[1839]][1]= _0xf598x9,this[_0xff99[1855]](null,_0xf598xa,null,_0xf598x2,_0xf598x5,_0xf598xa[_0xff99[1839]],_0xf598x9,0)):this[_0xff99[1758]](null,_0xf598xa,null,_0xf598x2,_0xf598x5,0))};this[_0xff99[1851]]++}};mxGraphHierarchyModel[_0xff99[202]][_0xff99[1758]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa){if(null!= _0xf598x3){var _0xf598x12=mxCellPath[_0xff99[385]](_0xf598x3[_0xff99[246]]);if(null== _0xf598x9[_0xf598x12]){_0xf598x9[_0xf598x12]= _0xf598x3;_0xf598x5(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598xa,0);_0xf598x2= _0xf598x3[_0xff99[1838]][_0xff99[1853]]();for(_0xf598x4= 0;_0xf598x4< _0xf598x2[_0xff99[67]];_0xf598x4++){_0xf598x12= _0xf598x2[_0xf598x4],this[_0xff99[1758]](_0xf598x3,_0xf598x12[_0xff99[772]],_0xf598x12,_0xf598x5,_0xf598x9,_0xf598xa+ 1)}}else {_0xf598x5(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598xa,1)}}};mxGraphHierarchyModel[_0xff99[202]][_0xff99[1855]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa,_0xf598x12,_0xf598x13){if(null!= _0xf598x3){if(null!= _0xf598x2&& (null== _0xf598x3[_0xff99[1839]]|| _0xf598x3[_0xff99[1839]][0]!= _0xf598x2[_0xff99[1839]][0])){_0xf598xa= _0xf598x2[_0xff99[1839]][_0xff99[67]]+ 1,_0xf598x3[_0xff99[1839]]= _0xf598x2[_0xff99[1839]][_0xff99[1853]](),_0xf598x3[_0xff99[1839]][_0xf598xa- 1]= _0xf598x12};_0xf598x12= mxCellPath[_0xff99[385]](_0xf598x3[_0xff99[246]]);if(null== _0xf598x9[_0xf598x12]){_0xf598x9[_0xf598x12]= _0xf598x3;_0xf598x5(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x13,0);_0xf598x2= _0xf598x3[_0xff99[1838]][_0xff99[1853]]();for(_0xf598x4= 0;_0xf598x4< _0xf598x2[_0xff99[67]];_0xf598x4++){_0xf598x12= _0xf598x2[_0xf598x4],this[_0xff99[1855]](_0xf598x3,_0xf598x12[_0xff99[772]],_0xf598x12,_0xf598x5,_0xf598x9,_0xf598x3[_0xff99[1839]],_0xf598x4,_0xf598x13+ 1)}}else {_0xf598x5(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x13,1)}}};function mxHierarchicalLayoutStage(){}mxHierarchicalLayoutStage[_0xff99[202]][_0xff99[350]]= function(_0xf598x2){};function mxMedianHybridCrossingReduction(_0xf598x2){this[_0xff99[1759]]= _0xf598x2}mxMedianHybridCrossingReduction[_0xff99[202]]= new mxHierarchicalLayoutStage;mxMedianHybridCrossingReduction[_0xff99[202]][_0xff99[196]]= mxMedianHybridCrossingReduction;mxMedianHybridCrossingReduction[_0xff99[202]][_0xff99[1759]]= null;mxMedianHybridCrossingReduction[_0xff99[202]][_0xff99[1795]]= 24;mxMedianHybridCrossingReduction[_0xff99[202]][_0xff99[1856]]= null;mxMedianHybridCrossingReduction[_0xff99[202]][_0xff99[1857]]= 0;mxMedianHybridCrossingReduction[_0xff99[202]][_0xff99[1858]]= 0;mxMedianHybridCrossingReduction[_0xff99[202]][_0xff99[1859]]= 2;mxMedianHybridCrossingReduction[_0xff99[202]][_0xff99[350]]= function(_0xf598x2){_0xf598x2= this[_0xff99[1759]][_0xff99[502]]();this[_0xff99[1856]]= [];for(var _0xf598x3=0;_0xf598x3< _0xf598x2[_0xff99[1850]][_0xff99[67]];_0xf598x3++){this[_0xff99[1856]][_0xf598x3]= _0xf598x2[_0xff99[1850]][_0xf598x3][_0xff99[1853]]()};for(var _0xf598x4=0,_0xf598x5=this[_0xff99[1860]](_0xf598x2),_0xf598x3=0;_0xf598x3< this[_0xff99[1795]]&& _0xf598x4< this[_0xff99[1859]];_0xf598x3++){this[_0xff99[1861]](_0xf598x3,_0xf598x2);this[_0xff99[1862]](_0xf598x3,_0xf598x2);var _0xf598x9=this[_0xff99[1860]](_0xf598x2);if(_0xf598x9< _0xf598x5){_0xf598x5= _0xf598x9;for(_0xf598x9= _0xf598x4= 0;_0xf598x9< this[_0xff99[1856]][_0xff99[67]];_0xf598x9++){for(var _0xf598xa=_0xf598x2[_0xff99[1850]][_0xf598x9],_0xf598x12=0;_0xf598x12< _0xf598xa[_0xff99[67]];_0xf598x12++){var _0xf598x13=_0xf598xa[_0xf598x12];this[_0xff99[1856]][_0xf598x9][_0xf598x13[_0xff99[1833]](_0xf598x9)]= _0xf598x13}}}else {_0xf598x4++;for(_0xf598x9= 0;_0xf598x9< this[_0xff99[1856]][_0xff99[67]];_0xf598x9++){_0xf598xa= _0xf598x2[_0xff99[1850]][_0xf598x9];for(_0xf598x12= 0;_0xf598x12< _0xf598xa[_0xff99[67]];_0xf598x12++){_0xf598x13= _0xf598xa[_0xf598x12],_0xf598x13[_0xff99[1834]](_0xf598x9,_0xf598x12)}}};if(0== _0xf598x5){break}};_0xf598x4= [];_0xf598x5= [];for(_0xf598x3= 0;_0xf598x3< _0xf598x2[_0xff99[1827]]+ 1;_0xf598x3++){_0xf598x5[_0xf598x3]= [],_0xf598x4[_0xf598x3]= _0xf598x5[_0xf598x3]};for(_0xf598x3= 0;_0xf598x3< this[_0xff99[1856]][_0xff99[67]];_0xf598x3++){for(_0xf598x9= 0;_0xf598x9< this[_0xff99[1856]][_0xf598x3][_0xff99[67]];_0xf598x9++){_0xf598x5[_0xf598x3][_0xff99[207]](this[_0xff99[1856]][_0xf598x3][_0xf598x9])}};_0xf598x2[_0xff99[1850]]= _0xf598x4};mxMedianHybridCrossingReduction[_0xff99[202]][_0xff99[1860]]= function(_0xf598x2){for(var _0xf598x3=_0xf598x2[_0xff99[1850]][_0xff99[67]],_0xf598x4=0,_0xf598x5=1;_0xf598x5< _0xf598x3;_0xf598x5++){_0xf598x4+= this[_0xff99[1863]](_0xf598x5,_0xf598x2)};return _0xf598x4};mxMedianHybridCrossingReduction[_0xff99[202]][_0xff99[1863]]= function(_0xf598x2,_0xf598x3){for(var _0xf598x4=0,_0xf598x5=_0xf598x3[_0xff99[1850]][_0xf598x2],_0xf598x9=_0xf598x5[_0xff99[67]],_0xf598xa=_0xf598x3[_0xff99[1850]][_0xf598x2- 1][_0xff99[67]],_0xf598x12=[],_0xf598x13=0;_0xf598x13< _0xf598x9;_0xf598x13++){_0xf598x12[_0xf598x13]= []};for(_0xf598x13= 0;_0xf598x13< _0xf598x5[_0xff99[67]];_0xf598x13++){for(var _0xf598x14=_0xf598x5[_0xf598x13],_0xf598x15=_0xf598x14[_0xff99[1833]](_0xf598x2),_0xf598x16=_0xf598x14[_0xff99[1832]](_0xf598x2),_0xf598x14=0;_0xf598x14< _0xf598x16[_0xff99[67]];_0xf598x14++){var _0xf598x17=_0xf598x16[_0xf598x14][_0xff99[1833]](_0xf598x2- 1);_0xf598x12[_0xf598x15][_0xf598x17]= 201207}};for(_0xf598x13= 0;_0xf598x13< _0xf598x9;_0xf598x13++){for(_0xf598x14= 0;_0xf598x14< _0xf598xa;_0xf598x14++){if(201207== _0xf598x12[_0xf598x13][_0xf598x14]){for(_0xf598x5= _0xf598x13+ 1;_0xf598x5< _0xf598x9;_0xf598x5++){for(_0xf598x15= 0;_0xf598x15< _0xf598x14;_0xf598x15++){201207== _0xf598x12[_0xf598x5][_0xf598x15]&& _0xf598x4++}};for(_0xf598x5= 0;_0xf598x5< _0xf598x13;_0xf598x5++){for(_0xf598x15= _0xf598x14+ 1;_0xf598x15< _0xf598xa;_0xf598x15++){201207== _0xf598x12[_0xf598x5][_0xf598x15]&& _0xf598x4++}}}}};return _0xf598x4/ 2};mxMedianHybridCrossingReduction[_0xff99[202]][_0xff99[1862]]= function(_0xf598x2,_0xf598x3){for(var _0xf598x4=!0,_0xf598x5=0;_0xf598x4&& 10> _0xf598x5++;){for(var _0xf598x9=1== _0xf598x2% 2&& 1== _0xf598x5% 2,_0xf598x4=!1,_0xf598xa=0;_0xf598xa< _0xf598x3[_0xff99[1850]][_0xff99[67]];_0xf598xa++){for(var _0xf598x12=_0xf598x3[_0xff99[1850]][_0xf598xa],_0xf598x13=[],_0xf598x14=0;_0xf598x14< _0xf598x12[_0xff99[67]];_0xf598x14++){var _0xf598x15=_0xf598x12[_0xf598x14],_0xf598x16=_0xf598x15[_0xff99[1833]](_0xf598xa);0> _0xf598x16&& (_0xf598x16= _0xf598x14);_0xf598x13[_0xf598x16]= _0xf598x15};for(var _0xf598x17=_0xf598x16= _0xf598x15= null,_0xf598x18=null,_0xf598x19=null,_0xf598x1a=null,_0xf598x1b=null,_0xf598x1c=null,_0xf598x1d=null,_0xf598x1e=null,_0xf598x14=0;_0xf598x14< _0xf598x12[_0xff99[67]]- 1;_0xf598x14++){if(0== _0xf598x14){for(var _0xf598x1d=_0xf598x13[_0xf598x14],_0xf598x15=_0xf598x1d[_0xff99[1831]](_0xf598xa),_0xf598x16=_0xf598x1d[_0xff99[1832]](_0xf598xa),_0xf598x19=[],_0xf598x1a=[],_0xf598x1f=0;_0xf598x1f< _0xf598x15[_0xff99[67]];_0xf598x1f++){_0xf598x19[_0xf598x1f]= _0xf598x15[_0xf598x1f][_0xff99[1833]](_0xf598xa+ 1)};for(_0xf598x1f= 0;_0xf598x1f< _0xf598x16[_0xff99[67]];_0xf598x1f++){_0xf598x1a[_0xf598x1f]= _0xf598x16[_0xf598x1f][_0xff99[1833]](_0xf598xa- 1)}}else {_0xf598x15= _0xf598x17,_0xf598x16= _0xf598x18,_0xf598x19= _0xf598x1b,_0xf598x1a= _0xf598x1c,_0xf598x1d= _0xf598x1e};_0xf598x1e= _0xf598x13[_0xf598x14+ 1];_0xf598x17= _0xf598x1e[_0xff99[1831]](_0xf598xa);_0xf598x18= _0xf598x1e[_0xff99[1832]](_0xf598xa);_0xf598x1b= [];_0xf598x1c= [];for(_0xf598x1f= 0;_0xf598x1f< _0xf598x17[_0xff99[67]];_0xf598x1f++){_0xf598x1b[_0xf598x1f]= _0xf598x17[_0xf598x1f][_0xff99[1833]](_0xf598xa+ 1)};for(_0xf598x1f= 0;_0xf598x1f< _0xf598x18[_0xff99[67]];_0xf598x1f++){_0xf598x1c[_0xf598x1f]= _0xf598x18[_0xf598x1f][_0xff99[1833]](_0xf598xa- 1)};for(var _0xf598x20=0,_0xf598x62=0,_0xf598x1f=0;_0xf598x1f< _0xf598x19[_0xff99[67]];_0xf598x1f++){for(var _0xf598x63=0;_0xf598x63< _0xf598x1b[_0xff99[67]];_0xf598x63++){_0xf598x19[_0xf598x1f]> _0xf598x1b[_0xf598x63]&& _0xf598x20++,_0xf598x19[_0xf598x1f]< _0xf598x1b[_0xf598x63]&& _0xf598x62++}};for(_0xf598x1f= 0;_0xf598x1f< _0xf598x1a[_0xff99[67]];_0xf598x1f++){for(_0xf598x63= 0;_0xf598x63< _0xf598x1c[_0xff99[67]];_0xf598x63++){_0xf598x1a[_0xf598x1f]> _0xf598x1c[_0xf598x63]&& _0xf598x20++,_0xf598x1a[_0xf598x1f]< _0xf598x1c[_0xf598x63]&& _0xf598x62++}};if(_0xf598x62< _0xf598x20|| _0xf598x62== _0xf598x20&& _0xf598x9){_0xf598x17= _0xf598x1d[_0xff99[1833]](_0xf598xa),_0xf598x1d[_0xff99[1834]](_0xf598xa,_0xf598x1e[_0xff99[1833]](_0xf598xa)),_0xf598x1e[_0xff99[1834]](_0xf598xa,_0xf598x17),_0xf598x17= _0xf598x15,_0xf598x18= _0xf598x16,_0xf598x1b= _0xf598x19,_0xf598x1c= _0xf598x1a,_0xf598x1e= _0xf598x1d,_0xf598x9|| (_0xf598x4= !0)}}}}};mxMedianHybridCrossingReduction[_0xff99[202]][_0xff99[1861]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=0== _0xf598x2% 2;if(_0xf598x4){for(var _0xf598x5=_0xf598x3[_0xff99[1827]]- 1;0<= _0xf598x5;_0xf598x5--){this[_0xff99[1864]](_0xf598x5,_0xf598x4)}}else {for(_0xf598x5= 1;_0xf598x5< _0xf598x3[_0xff99[1827]];_0xf598x5++){this[_0xff99[1864]](_0xf598x5,_0xf598x4)}}};mxMedianHybridCrossingReduction[_0xff99[202]][_0xff99[1864]]= function(_0xf598x2,_0xf598x3){for(var _0xf598x4=this[_0xff99[1856]][_0xf598x2][_0xff99[67]],_0xf598x5=[],_0xf598x9=[],_0xf598xa=0;_0xf598xa< _0xf598x4;_0xf598xa++){var _0xf598x12=this[_0xff99[1856]][_0xf598x2][_0xf598xa],_0xf598x13= new MedianCellSorter;_0xf598x13[_0xff99[246]]= _0xf598x12;var _0xf598x14;_0xf598x14= _0xf598x3?_0xf598x12[_0xff99[1831]](_0xf598x2):_0xf598x12[_0xff99[1832]](_0xf598x2);var _0xf598x15;_0xf598x15= _0xf598x3?_0xf598x2+ 1:_0xf598x2- 1;null!= _0xf598x14&& 0!= _0xf598x14[_0xff99[67]]?(_0xf598x13[_0xff99[1865]]= this[_0xff99[1865]](_0xf598x14,_0xf598x15),_0xf598x5[_0xff99[207]](_0xf598x13)):_0xf598x9[_0xf598x12[_0xff99[1833]](_0xf598x2)]= !0};_0xf598x5[_0xff99[470]](MedianCellSorter[_0xff99[202]][_0xff99[469]]);for(_0xf598xa= 0;_0xf598xa< _0xf598x4;_0xf598xa++){null== _0xf598x9[_0xf598xa]&& (_0xf598x12= _0xf598x5[_0xff99[1115]]()[_0xff99[246]],_0xf598x12[_0xff99[1834]](_0xf598x2,_0xf598xa))}};mxMedianHybridCrossingReduction[_0xff99[202]][_0xff99[1865]]= function(_0xf598x2,_0xf598x3){for(var _0xf598x4=[],_0xf598x5=0,_0xf598x9=0;_0xf598x9< _0xf598x2[_0xff99[67]];_0xf598x9++){var _0xf598xa=_0xf598x2[_0xf598x9];_0xf598x4[_0xf598x5++]= _0xf598xa[_0xff99[1833]](_0xf598x3)};_0xf598x4[_0xff99[470]](function(_0xf598x2,_0xf598x3){return _0xf598x2- _0xf598x3});if(1== _0xf598x5% 2){return _0xf598x4[Math[_0xff99[519]](_0xf598x5/ 2)]};if(2== _0xf598x5){return (_0xf598x4[0]+ _0xf598x4[1])/ 2};_0xf598x9= _0xf598x5/ 2;_0xf598xa= _0xf598x4[_0xf598x9- 1]- _0xf598x4[0];_0xf598x5= _0xf598x4[_0xf598x5- 1]- _0xf598x4[_0xf598x9];return (_0xf598x4[_0xf598x9- 1]* _0xf598x5+ _0xf598x4[_0xf598x9]* _0xf598xa)/ (_0xf598xa+ _0xf598x5)};function MedianCellSorter(){}MedianCellSorter[_0xff99[202]][_0xff99[1865]]= 0;MedianCellSorter[_0xff99[202]][_0xff99[246]]= !1;MedianCellSorter[_0xff99[202]][_0xff99[469]]= function(_0xf598x2,_0xf598x3){return null!= _0xf598x2&& null!= _0xf598x3?_0xf598x3[_0xff99[1865]]> _0xf598x2[_0xff99[1865]]?-1:_0xf598x3[_0xff99[1865]]< _0xf598x2[_0xff99[1865]]?1:0:0};function mxMinimumCycleRemover(_0xf598x2){this[_0xff99[1759]]= _0xf598x2}mxMinimumCycleRemover[_0xff99[202]]= new mxHierarchicalLayoutStage;mxMinimumCycleRemover[_0xff99[202]][_0xff99[196]]= mxMinimumCycleRemover;mxMinimumCycleRemover[_0xff99[202]][_0xff99[1759]]= null;mxMinimumCycleRemover[_0xff99[202]][_0xff99[350]]= function(_0xf598x2){var _0xf598x3=this[_0xff99[1759]][_0xff99[502]](),_0xf598x4={},_0xf598x5=mxUtils[_0xff99[238]](_0xf598x3[_0xff99[1846]],null,!0),_0xf598x9=null;if(null!= _0xf598x3[_0xff99[1845]]){var _0xf598xa=_0xf598x3[_0xff99[1845]],_0xf598x9=[];for(_0xf598x2= 0;_0xf598x2< _0xf598xa[_0xff99[67]];_0xf598x2++){var _0xf598x12=mxCellPath[_0xff99[385]](_0xf598xa[_0xf598x2]);_0xf598x9[_0xf598x2]= _0xf598x3[_0xff99[1846]][_0xf598x12]}};_0xf598x3[_0xff99[209]](function(_0xf598x2,_0xf598x3,_0xf598x9,_0xf598xa,_0xf598x12){_0xf598x3[_0xff99[1720]](_0xf598x2)&& (_0xf598x9[_0xff99[1744]](),mxUtils[_0xff99[205]](_0xf598x9,_0xf598x2[_0xff99[1838]]),_0xf598x2[_0xff99[1837]][_0xff99[207]](_0xf598x9),mxUtils[_0xff99[205]](_0xf598x9,_0xf598x3[_0xff99[1837]]),_0xf598x3[_0xff99[1838]][_0xff99[207]](_0xf598x9));_0xf598x2= mxCellPath[_0xff99[385]](_0xf598x3[_0xff99[246]]);_0xf598x4[_0xf598x2]= _0xf598x3;delete _0xf598x5[_0xf598x2]},_0xf598x9,!0,null);_0xf598x9= null;0< _0xf598x5[_0xff99[1866]]&& (_0xf598x9= mxUtils[_0xff99[238]](_0xf598x5,null,!0));_0xf598x2= mxUtils[_0xff99[238]](_0xf598x4,null,!0);_0xf598x3[_0xff99[209]](function(_0xf598x2,_0xf598x3,_0xf598x9,_0xf598xa,_0xf598x12){_0xf598x3[_0xff99[1720]](_0xf598x2)&& (_0xf598x9[_0xff99[1744]](),mxUtils[_0xff99[205]](_0xf598x9,_0xf598x2[_0xff99[1838]]),_0xf598x3[_0xff99[1838]][_0xff99[207]](_0xf598x9),_0xf598x2[_0xff99[1837]][_0xff99[207]](_0xf598x9),mxUtils[_0xff99[205]](_0xf598x9,_0xf598x3[_0xff99[1837]]));_0xf598x2= mxCellPath[_0xff99[385]](_0xf598x3[_0xff99[246]]);_0xf598x4[_0xf598x2]= _0xf598x3;delete _0xf598x5[_0xf598x2]},_0xf598x5,!0,_0xf598x2);_0xf598xa= this[_0xff99[1759]][_0xff99[1703]]();if(null!= _0xf598x9&& 0< _0xf598x9[_0xff99[67]]){_0xf598x3= _0xf598x3[_0xff99[1845]];for(_0xf598x2= 0;_0xf598x2< _0xf598x9[_0xff99[67]];_0xf598x2++){_0xf598x12= _0xf598x9[_0xf598x2][_0xff99[246]],0== _0xf598xa[_0xff99[1867]](_0xf598x12)[_0xff99[67]]&& _0xf598x3[_0xff99[207]](_0xf598x12)}}};function mxCoordinateAssignment(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa){this[_0xff99[1759]]= _0xf598x2;this[_0xff99[1868]]= _0xf598x3;this[_0xff99[1869]]= _0xf598x4;this[_0xff99[1870]]= _0xf598x5;this[_0xff99[1871]]= _0xf598x9;this[_0xff99[1872]]= _0xf598xa}var mxHierarchicalEdgeStyle={ORTHOGONAL:1,POLYLINE:2,STRAIGHT:3,CURVE:4};mxCoordinateAssignment[_0xff99[202]]= new mxHierarchicalLayoutStage;mxCoordinateAssignment[_0xff99[202]][_0xff99[196]]= mxCoordinateAssignment;mxCoordinateAssignment[_0xff99[202]][_0xff99[1759]]= null;mxCoordinateAssignment[_0xff99[202]][_0xff99[1868]]= 30;mxCoordinateAssignment[_0xff99[202]][_0xff99[1869]]= 100;mxCoordinateAssignment[_0xff99[202]][_0xff99[1872]]= 10;mxCoordinateAssignment[_0xff99[202]][_0xff99[1795]]= 8;mxCoordinateAssignment[_0xff99[202]][_0xff99[1751]]= 5;mxCoordinateAssignment[_0xff99[202]][_0xff99[1752]]= 2;mxCoordinateAssignment[_0xff99[202]][_0xff99[1753]]= 12;mxCoordinateAssignment[_0xff99[202]][_0xff99[1754]]= 4;mxCoordinateAssignment[_0xff99[202]][_0xff99[1873]]= null;mxCoordinateAssignment[_0xff99[202]][_0xff99[1870]]= mxConstants[_0xff99[1358]];mxCoordinateAssignment[_0xff99[202]][_0xff99[1871]]= null;mxCoordinateAssignment[_0xff99[202]][_0xff99[1874]]= null;mxCoordinateAssignment[_0xff99[202]][_0xff99[1875]]= null;mxCoordinateAssignment[_0xff99[202]][_0xff99[1876]]= null;mxCoordinateAssignment[_0xff99[202]][_0xff99[1877]]= null;mxCoordinateAssignment[_0xff99[202]][_0xff99[1878]]= null;mxCoordinateAssignment[_0xff99[202]][_0xff99[1879]]= null;mxCoordinateAssignment[_0xff99[202]][_0xff99[1880]]= null;mxCoordinateAssignment[_0xff99[202]][_0xff99[1881]]= null;mxCoordinateAssignment[_0xff99[202]][_0xff99[1882]]= !0;mxCoordinateAssignment[_0xff99[202]][_0xff99[675]]= mxHierarchicalEdgeStyle[_0xff99[1883]];mxCoordinateAssignment[_0xff99[202]][_0xff99[1884]]= null;mxCoordinateAssignment[_0xff99[202]][_0xff99[1885]]= null;mxCoordinateAssignment[_0xff99[202]][_0xff99[1745]]= 10;mxCoordinateAssignment[_0xff99[202]][_0xff99[1886]]= function(){var _0xf598x2=this[_0xff99[1759]][_0xff99[502]]();mxLog[_0xff99[539]]();mxLog[_0xff99[171]](_0xff99[1887]);for(var _0xf598x3=0;_0xf598x3< _0xf598x2[_0xff99[1850]][_0xff99[67]];_0xf598x3++){mxLog[_0xff99[53]](_0xff99[1888],_0xf598x3,_0xff99[1889]);for(var _0xf598x4=_0xf598x2[_0xff99[1850]][_0xf598x3],_0xf598x5=0;_0xf598x5< _0xf598x4[_0xff99[67]];_0xf598x5++){mxLog[_0xff99[53]](_0xf598x4[_0xf598x5][_0xff99[1833]](_0xf598x3),_0xff99[316])};mxLog[_0xff99[171]]()};mxLog[_0xff99[171]](_0xff99[1890])};mxCoordinateAssignment[_0xff99[202]][_0xff99[350]]= function(_0xf598x2){this[_0xff99[1873]]= [];_0xf598x2= this[_0xff99[1759]][_0xff99[502]]();this[_0xff99[1875]]= 0;this[_0xff99[1891]](this[_0xff99[1759]][_0xff99[1703]](),_0xf598x2);this[_0xff99[1882]]&& this[_0xff99[1892]](_0xf598x2);var _0xf598x3=1E8;if(this[_0xff99[1882]]){for(var _0xf598x4=0;_0xf598x4< this[_0xff99[1795]];_0xf598x4++){0!= _0xf598x4&& (this[_0xff99[1893]](_0xf598x4,_0xf598x2),this[_0xff99[1892]](_0xf598x2));if(this[_0xff99[1875]]< _0xf598x3){for(var _0xf598x5=0;_0xf598x5< _0xf598x2[_0xff99[1850]][_0xff99[67]];_0xf598x5++){for(var _0xf598x9=_0xf598x2[_0xff99[1850]][_0xf598x5],_0xf598xa=0;_0xf598xa< _0xf598x9[_0xff99[67]];_0xf598xa++){var _0xf598x12=_0xf598x9[_0xf598xa];_0xf598x12[_0xff99[1835]](_0xf598x5,_0xf598x12[_0xff99[1833]](_0xf598x5))}};_0xf598x3= this[_0xff99[1875]]}else {for(_0xf598x5= 0;_0xf598x5< _0xf598x2[_0xff99[1850]][_0xff99[67]];_0xf598x5++){_0xf598x9= _0xf598x2[_0xff99[1850]][_0xf598x5];for(_0xf598xa= 0;_0xf598xa< _0xf598x9[_0xff99[67]];_0xf598xa++){_0xf598x12= _0xf598x9[_0xf598xa],_0xf598x12[_0xff99[1834]](_0xf598x5,_0xf598x12[_0xff99[730]](_0xf598x5))}}};this[_0xff99[1894]](this[_0xff99[1759]][_0xff99[1703]](),_0xf598x2);this[_0xff99[1875]]= 0}};this[_0xff99[1895]](this[_0xff99[1759]][_0xff99[1703]](),_0xf598x2)};mxCoordinateAssignment[_0xff99[202]][_0xff99[1892]]= function(_0xf598x2){for(var _0xf598x3=[],_0xf598x4=[],_0xf598x5=[],_0xf598x9=0;_0xf598x9<= _0xf598x2[_0xff99[1827]];_0xf598x9++){_0xf598x5[_0xf598x9]= _0xf598x2[_0xff99[1850]][_0xf598x9];for(var _0xf598xa=0;_0xf598xa< _0xf598x5[_0xf598x9][_0xff99[67]];_0xf598xa++){var _0xf598x12=_0xf598x5[_0xf598x9][_0xf598xa],_0xf598x13= new WeightedCellSorter(_0xf598x12,_0xf598x9);_0xf598x13[_0xff99[1785]]= _0xf598xa;_0xf598x13[_0xff99[1784]]= !0;_0xf598x3[_0xff99[207]](_0xf598x13);_0xf598x12= mxCellPath[_0xff99[385]](_0xf598x12[_0xff99[1841]]());_0xf598x4[_0xf598x12]= _0xf598x13}};_0xf598x2= 10* _0xf598x3[_0xff99[67]];for(_0xf598xa= 0;0< _0xf598x3[_0xff99[67]]&& _0xf598xa<= _0xf598x2;){var _0xf598x13=_0xf598x3[_0xff99[1115]](),_0xf598x9=_0xf598x13[_0xff99[246]],_0xf598x14=_0xf598x13[_0xff99[1782]],_0xf598x15=parseInt(_0xf598x13[_0xff99[1785]]),_0xf598x12=_0xf598x9[_0xff99[1831]](_0xf598x14),_0xf598x16=_0xf598x9[_0xff99[1832]](_0xf598x14),_0xf598x17=_0xf598x12[_0xff99[67]],_0xf598x18=_0xf598x16[_0xff99[67]],_0xf598x19=this[_0xff99[1896]](_0xf598x12,_0xf598x14+ 1),_0xf598x1a=this[_0xff99[1896]](_0xf598x16,_0xf598x14- 1),_0xf598x1b=_0xf598x17+ _0xf598x18,_0xf598x1c=_0xf598x9[_0xff99[1833]](_0xf598x14),_0xf598x1d=_0xf598x1c;0< _0xf598x1b&& (_0xf598x1d= (_0xf598x19* _0xf598x17+ _0xf598x1a* _0xf598x18)/ _0xf598x1b);_0xf598x17= !1;_0xf598x1d< _0xf598x1c- 1?0== _0xf598x15?(_0xf598x9[_0xff99[1834]](_0xf598x14,_0xf598x1d),_0xf598x17= !0):(_0xf598x15= _0xf598x5[_0xf598x14][_0xf598x15- 1],_0xf598x1c= _0xf598x15[_0xff99[1833]](_0xf598x14),_0xf598x1c= _0xf598x1c+ _0xf598x15[_0xff99[117]]/ 2+ this[_0xff99[1868]]+ _0xf598x9[_0xff99[117]]/ 2,_0xf598x1c< _0xf598x1d?(_0xf598x9[_0xff99[1834]](_0xf598x14,_0xf598x1d),_0xf598x17= !0):_0xf598x1c< _0xf598x9[_0xff99[1833]](_0xf598x14)- 1&& (_0xf598x9[_0xff99[1834]](_0xf598x14,_0xf598x1c),_0xf598x17= !0)):_0xf598x1d> _0xf598x1c+ 1&& (_0xf598x15== _0xf598x5[_0xf598x14][_0xff99[67]]- 1?(_0xf598x9[_0xff99[1834]](_0xf598x14,_0xf598x1d),_0xf598x17= !0):(_0xf598x15= _0xf598x5[_0xf598x14][_0xf598x15+ 1],_0xf598x1c= _0xf598x15[_0xff99[1833]](_0xf598x14),_0xf598x1c= _0xf598x1c- _0xf598x15[_0xff99[117]]/ 2- this[_0xff99[1868]]- _0xf598x9[_0xff99[117]]/ 2,_0xf598x1c> _0xf598x1d?(_0xf598x9[_0xff99[1834]](_0xf598x14,_0xf598x1d),_0xf598x17= !0):_0xf598x1c> _0xf598x9[_0xff99[1833]](_0xf598x14)+ 1&& (_0xf598x9[_0xff99[1834]](_0xf598x14,_0xf598x1c),_0xf598x17= !0)));if(_0xf598x17){for(_0xf598x9= 0;_0xf598x9< _0xf598x12[_0xff99[67]];_0xf598x9++){_0xf598x14= _0xf598x12[_0xf598x9],_0xf598x14= mxCellPath[_0xff99[385]](_0xf598x14[_0xff99[1841]]()),_0xf598x14= _0xf598x4[_0xf598x14],null!= _0xf598x14&& !1== _0xf598x14[_0xff99[1784]]&& (_0xf598x14[_0xff99[1784]]= !0,_0xf598x3[_0xff99[207]](_0xf598x14))};for(_0xf598x9= 0;_0xf598x9< _0xf598x16[_0xff99[67]];_0xf598x9++){_0xf598x14= _0xf598x16[_0xf598x9],_0xf598x14= mxCellPath[_0xff99[385]](_0xf598x14[_0xff99[1841]]()),_0xf598x14= _0xf598x4[_0xf598x14],null!= _0xf598x14&& !1== _0xf598x14[_0xff99[1784]]&& (_0xf598x14[_0xff99[1784]]= !0,_0xf598x3[_0xff99[207]](_0xf598x14))}};_0xf598x13[_0xff99[1784]]= !1;_0xf598xa++}};mxCoordinateAssignment[_0xff99[202]][_0xff99[1893]]= function(_0xf598x2,_0xf598x3){if(0== _0xf598x2% 2){for(var _0xf598x4=_0xf598x3[_0xff99[1827]];0< _0xf598x4;_0xf598x4--){this[_0xff99[1897]](_0xf598x4- 1,_0xf598x3,_0xf598x4)}}else {for(_0xf598x4= 0;_0xf598x4< _0xf598x3[_0xff99[1827]]- 1;_0xf598x4++){this[_0xff99[1897]](_0xf598x4+ 1,_0xf598x3,_0xf598x4)}}};mxCoordinateAssignment[_0xff99[202]][_0xff99[1897]]= function(_0xf598x2,_0xf598x3,_0xf598x4){_0xf598x3= _0xf598x3[_0xff99[1850]][_0xf598x2];for(var _0xf598x5=[],_0xf598x9=[],_0xf598xa=0;_0xf598xa< _0xf598x3[_0xff99[67]];_0xf598xa++){var _0xf598x12=_0xf598x3[_0xf598xa];_0xf598x5[_0xf598xa]= new WeightedCellSorter;_0xf598x5[_0xf598xa][_0xff99[246]]= _0xf598x12;_0xf598x5[_0xf598xa][_0xff99[1785]]= _0xf598xa;var _0xf598x13=mxCellPath[_0xff99[385]](_0xf598x12[_0xff99[1841]]());_0xf598x9[_0xf598x13]= _0xf598x5[_0xf598xa];var _0xf598x14=null,_0xf598x14=_0xf598x4< _0xf598x2?_0xf598x12[_0xff99[1832]](_0xf598x2):_0xf598x12[_0xff99[1831]](_0xf598x2);_0xf598x5[_0xf598xa][_0xff99[1782]]= this[_0xff99[1898]](_0xf598x12,_0xf598x14)};_0xf598x5[_0xff99[470]](WeightedCellSorter[_0xff99[202]][_0xff99[469]]);for(_0xf598xa= 0;_0xf598xa< _0xf598x5[_0xff99[67]];_0xf598xa++){_0xf598x13= 0;_0xf598x12= _0xf598x5[_0xf598xa][_0xff99[246]];_0xf598x13= 0;_0xf598x14= _0xf598x4< _0xf598x2?_0xf598x12[_0xff99[1832]](_0xf598x2)[_0xff99[1853]]():_0xf598x12[_0xff99[1831]](_0xf598x2)[_0xff99[1853]]();null!= _0xf598x14&& (_0xf598x13= _0xf598x14[_0xff99[67]],_0xf598x13= 0< _0xf598x13?this[_0xff99[1896]](_0xf598x14,_0xf598x4):_0xf598x12[_0xff99[1833]](_0xf598x2));for(var _0xf598x15=0,_0xf598x14=-1E8,_0xf598x16=_0xf598x5[_0xf598xa][_0xff99[1785]]- 1;0<= _0xf598x16;){var _0xf598x17=mxCellPath[_0xff99[385]](_0xf598x3[_0xf598x16][_0xff99[1841]]()),_0xf598x17=_0xf598x9[_0xf598x17];if(null!= _0xf598x17){var _0xf598x18=_0xf598x17[_0xff99[246]];_0xf598x17[_0xff99[1784]]?(_0xf598x14= _0xf598x18[_0xff99[1833]](_0xf598x2)+ _0xf598x18[_0xff99[117]]/ 2+ this[_0xff99[1868]]+ _0xf598x15+ _0xf598x12[_0xff99[117]]/ 2,_0xf598x16= -1):(_0xf598x15+= _0xf598x18[_0xff99[117]]+ this[_0xff99[1868]],_0xf598x16--)}};_0xf598x15= 0;_0xf598x18= 1E8;for(_0xf598x16= _0xf598x5[_0xf598xa][_0xff99[1785]]+ 1;_0xf598x16< _0xf598x5[_0xff99[67]];){if(_0xf598x17= mxCellPath[_0xff99[385]](_0xf598x3[_0xf598x16][_0xff99[1841]]()),_0xf598x17= _0xf598x9[_0xf598x17],null!= _0xf598x17){var _0xf598x19=_0xf598x17[_0xff99[246]];_0xf598x17[_0xff99[1784]]?(_0xf598x18= _0xf598x19[_0xff99[1833]](_0xf598x2)- _0xf598x19[_0xff99[117]]/ 2- this[_0xff99[1868]]- _0xf598x15- _0xf598x12[_0xff99[117]]/ 2,_0xf598x16= _0xf598x5[_0xff99[67]]):(_0xf598x15+= _0xf598x19[_0xff99[117]]+ this[_0xff99[1868]],_0xf598x16++)}};_0xf598x13>= _0xf598x14&& _0xf598x13<= _0xf598x18?_0xf598x12[_0xff99[1834]](_0xf598x2,_0xf598x13):_0xf598x13< _0xf598x14?(_0xf598x12[_0xff99[1834]](_0xf598x2,_0xf598x14),this[_0xff99[1875]]+= _0xf598x14- _0xf598x13):_0xf598x13> _0xf598x18&& (_0xf598x12[_0xff99[1834]](_0xf598x2,_0xf598x18),this[_0xff99[1875]]+= _0xf598x13- _0xf598x18);_0xf598x5[_0xf598xa][_0xff99[1784]]= !0}};mxCoordinateAssignment[_0xff99[202]][_0xff99[1898]]= function(_0xf598x2,_0xf598x3){for(var _0xf598x4=0,_0xf598x5=0;_0xf598x5< _0xf598x3[_0xff99[67]];_0xf598x5++){var _0xf598x9=_0xf598x3[_0xf598x5];_0xf598x2[_0xff99[1193]]()&& _0xf598x9[_0xff99[1193]]()?_0xf598x4++:_0xf598x4= _0xf598x2[_0xff99[250]]()&& _0xf598x9[_0xff99[250]]()?_0xf598x4+ 8:_0xf598x4+ 2};return _0xf598x4};mxCoordinateAssignment[_0xff99[202]][_0xff99[1896]]= function(_0xf598x2,_0xf598x3){if(0== _0xf598x2[_0xff99[67]]){return 0};for(var _0xf598x4=[],_0xf598x5=0;_0xf598x5< _0xf598x2[_0xff99[67]];_0xf598x5++){_0xf598x4[_0xf598x5]= _0xf598x2[_0xf598x5][_0xff99[1833]](_0xf598x3)};_0xf598x4[_0xff99[470]](function(_0xf598x2,_0xf598x3){return _0xf598x2- _0xf598x3});if(1== _0xf598x2[_0xff99[67]]% 2){return _0xf598x4[Math[_0xff99[519]](_0xf598x2[_0xff99[67]]/ 2)]};_0xf598x5= _0xf598x2[_0xff99[67]]/ 2;return (_0xf598x4[_0xf598x5- 1]+ _0xf598x4[_0xf598x5])/ 2};mxCoordinateAssignment[_0xff99[202]][_0xff99[1891]]= function(_0xf598x2,_0xf598x3){this[_0xff99[1899]](_0xf598x2,_0xf598x3);for(var _0xf598x4=this[_0xff99[1876]];0<= _0xf598x4;_0xf598x4--){_0xf598x4< _0xf598x3[_0xff99[1827]]&& this[_0xff99[1900]](_0xf598x4,_0xf598x2,_0xf598x3)};for(_0xf598x4= this[_0xff99[1876]]+ 1;_0xf598x4<= _0xf598x3[_0xff99[1827]];_0xf598x4++){0< _0xf598x4&& this[_0xff99[1900]](_0xf598x4,_0xf598x2,_0xf598x3)}};mxCoordinateAssignment[_0xff99[202]][_0xff99[1900]]= function(_0xf598x2,_0xf598x3,_0xf598x4){_0xf598x3= _0xf598x4[_0xff99[1850]][_0xf598x2];_0xf598x4= 0;for(var _0xf598x5=this[_0xff99[1871]]+ (this[_0xff99[1879]]- this[_0xff99[1880]][_0xf598x2])/ 2,_0xf598x9=!1,_0xf598xa=0;_0xf598xa< _0xf598x3[_0xff99[67]];_0xf598xa++){var _0xf598x12=_0xf598x3[_0xf598xa];if(_0xf598x12[_0xff99[1193]]()){var _0xf598x13=this[_0xff99[1759]][_0xff99[1726]](_0xf598x12[_0xff99[246]]);null!= _0xf598x13?this[_0xff99[1870]]== mxConstants[_0xff99[1358]]|| this[_0xff99[1870]]== mxConstants[_0xff99[1354]]?(_0xf598x12[_0xff99[117]]= _0xf598x13[_0xff99[117]],_0xf598x12[_0xff99[119]]= _0xf598x13[_0xff99[119]]):(_0xf598x12[_0xff99[117]]= _0xf598x13[_0xff99[119]],_0xf598x12[_0xff99[119]]= _0xf598x13[_0xff99[117]]):_0xf598x9= !0;_0xf598x4= Math[_0xff99[160]](_0xf598x4,_0xf598x12[_0xff99[119]])}else {_0xf598x12[_0xff99[250]]()&& (_0xf598x13= 1,null!= _0xf598x12[_0xff99[1842]]?_0xf598x13= _0xf598x12[_0xff99[1842]][_0xff99[67]]:mxLog[_0xff99[283]](_0xff99[1901]),_0xf598x12[_0xff99[117]]= (_0xf598x13- 1)* this[_0xff99[1872]])};_0xf598x5+= _0xf598x12[_0xff99[117]]/ 2;_0xf598x12[_0xff99[1835]](_0xf598x2,_0xf598x5);_0xf598x12[_0xff99[1834]](_0xf598x2,_0xf598x5);_0xf598x5+= _0xf598x12[_0xff99[117]]/ 2;_0xf598x5+= this[_0xff99[1868]]};!0== _0xf598x9 && mxLog[_0xff99[283]](_0xff99[1902])};mxCoordinateAssignment[_0xff99[202]][_0xff99[1899]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=-this[_0xff99[1869]],_0xf598x5=0;this[_0xff99[1880]]= [];this[_0xff99[1881]]= [];for(var _0xf598x9=_0xf598x3[_0xff99[1827]];0<= _0xf598x9;_0xf598x9--){for(var _0xf598xa=0,_0xf598x12=_0xf598x3[_0xff99[1850]][_0xf598x9],_0xf598x13=this[_0xff99[1871]],_0xf598x14=!1,_0xf598x15=0;_0xf598x15< _0xf598x12[_0xff99[67]];_0xf598x15++){var _0xf598x16=_0xf598x12[_0xf598x15];if(_0xf598x16[_0xff99[1193]]()){var _0xf598x17=this[_0xff99[1759]][_0xff99[1726]](_0xf598x16[_0xff99[246]]);null!= _0xf598x17?this[_0xff99[1870]]== mxConstants[_0xff99[1358]]|| this[_0xff99[1870]]== mxConstants[_0xff99[1354]]?(_0xf598x16[_0xff99[117]]= _0xf598x17[_0xff99[117]],_0xf598x16[_0xff99[119]]= _0xf598x17[_0xff99[119]]):(_0xf598x16[_0xff99[117]]= _0xf598x17[_0xff99[119]],_0xf598x16[_0xff99[119]]= _0xf598x17[_0xff99[117]]):_0xf598x14= !0;_0xf598xa= Math[_0xff99[160]](_0xf598xa,_0xf598x16[_0xff99[119]])}else {_0xf598x16[_0xff99[250]]()&& (_0xf598x17= 1,null!= _0xf598x16[_0xff99[1842]]?_0xf598x17= _0xf598x16[_0xff99[1842]][_0xff99[67]]:mxLog[_0xff99[283]](_0xff99[1901]),_0xf598x16[_0xff99[117]]= (_0xf598x17- 1)* this[_0xff99[1872]])};_0xf598x13+= _0xf598x16[_0xff99[117]]/ 2;_0xf598x16[_0xff99[1835]](_0xf598x9,_0xf598x13);_0xf598x16[_0xff99[1834]](_0xf598x9,_0xf598x13);_0xf598x13+= _0xf598x16[_0xff99[117]]/ 2;_0xf598x13+= this[_0xff99[1868]];_0xf598x13> this[_0xff99[1879]]&& (this[_0xff99[1879]]= _0xf598x13,this[_0xff99[1876]]= _0xf598x9);this[_0xff99[1880]][_0xf598x9]= _0xf598x13};!0== _0xf598x14 && mxLog[_0xff99[283]](_0xff99[1902]);this[_0xff99[1881]][_0xf598x9]= _0xf598x4;_0xf598x13= _0xf598xa/ 2+ _0xf598x5/ 2+ this[_0xff99[1869]];_0xf598x5= _0xf598xa;_0xf598x4= this[_0xff99[1870]]== mxConstants[_0xff99[1358]]|| this[_0xff99[1870]]== mxConstants[_0xff99[1359]]?_0xf598x4+ _0xf598x13:_0xf598x4- _0xf598x13;for(_0xf598x15= 0;_0xf598x15< _0xf598x12[_0xff99[67]];_0xf598x15++){_0xf598x12[_0xf598x15][_0xff99[1836]](_0xf598x9,_0xf598x4)}}};mxCoordinateAssignment[_0xff99[202]][_0xff99[1894]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=_0xf598x3[_0xff99[1847]],_0xf598x5;for(_0xf598x5 in _0xf598x4){var _0xf598x9=_0xf598x4[_0xf598x5];if(!(1> _0xf598x9[_0xff99[1827]]- _0xf598x9[_0xff99[1828]]- 1)){for(var _0xf598xa=_0xf598x9[_0xff99[1833]](_0xf598x9[_0xff99[1828]]+ 1),_0xf598x12=!0,_0xf598x13=0,_0xf598x14=_0xf598x9[_0xff99[1828]]+ 2;_0xf598x14< _0xf598x9[_0xff99[1827]];_0xf598x14++){var _0xf598x15=_0xf598x9[_0xff99[1833]](_0xf598x14);_0xf598xa!= _0xf598x15?(_0xf598x12= !1,_0xf598xa= _0xf598x15):_0xf598x13++};if(!_0xf598x12){for(var _0xf598x12=_0xf598xa= 0,_0xf598x15=[],_0xf598x16=[],_0xf598x17=_0xf598x9[_0xff99[1833]](_0xf598x9[_0xff99[1828]]+ 1),_0xf598x14=_0xf598x9[_0xff99[1828]]+ 1;_0xf598x14< _0xf598x9[_0xff99[1827]]- 1;_0xf598x14++){var _0xf598x18=_0xf598x9[_0xff99[730]](_0xf598x14+ 1);_0xf598x17== _0xf598x18?(_0xf598x15[_0xf598x14- _0xf598x9[_0xff99[1828]]- 1]= _0xf598x17,_0xf598xa++):this[_0xff99[1903]](_0xf598x3,_0xf598x9,_0xf598x14+ 1,_0xf598x17)?(_0xf598x15[_0xf598x14- _0xf598x9[_0xff99[1828]]- 1]= _0xf598x17,_0xf598xa++):_0xf598x17= _0xf598x15[_0xf598x14- _0xf598x9[_0xff99[1828]]- 1]= _0xf598x18};_0xf598x17= _0xf598x9[_0xff99[730]](_0xf598x14);for(_0xf598x14= _0xf598x9[_0xff99[1827]]- 1;_0xf598x14> _0xf598x9[_0xff99[1828]]+ 1;_0xf598x14--){_0xf598x18= _0xf598x9[_0xff99[730]](_0xf598x14- 1),_0xf598x17== _0xf598x18?(_0xf598x16[_0xf598x14- _0xf598x9[_0xff99[1828]]- 2]= _0xf598x17,_0xf598x12++):this[_0xff99[1903]](_0xf598x3,_0xf598x9,_0xf598x14- 1,_0xf598x17)?(_0xf598x16[_0xf598x14- _0xf598x9[_0xff99[1828]]- 2]= _0xf598x17,_0xf598x12++):(_0xf598x16[_0xf598x14- _0xf598x9[_0xff99[1828]]- 2]= _0xf598x9[_0xff99[730]](_0xf598x14- 1),_0xf598x17= _0xf598x18)};if(_0xf598x12> _0xf598x13|| _0xf598xa> _0xf598x13){if(_0xf598x12>= _0xf598xa){for(_0xf598x14= _0xf598x9[_0xff99[1827]]- 2;_0xf598x14> _0xf598x9[_0xff99[1828]];_0xf598x14--){_0xf598x9[_0xff99[1835]](_0xf598x14,_0xf598x16[_0xf598x14- _0xf598x9[_0xff99[1828]]- 1])}}else {if(_0xf598xa> _0xf598x12){for(_0xf598x14= _0xf598x9[_0xff99[1828]]+ 2;_0xf598x14< _0xf598x9[_0xff99[1827]];_0xf598x14++){_0xf598x9[_0xff99[1835]](_0xf598x14,_0xf598x15[_0xf598x14- _0xf598x9[_0xff99[1828]]- 2])}}}}}}}};mxCoordinateAssignment[_0xff99[202]][_0xff99[1903]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){_0xf598x2= _0xf598x2[_0xff99[1850]][_0xf598x4];for(var _0xf598x9=-1,_0xf598xa=0;_0xf598xa< _0xf598x2[_0xff99[67]];_0xf598xa++){if(_0xf598x3== _0xf598x2[_0xf598xa]){_0xf598x9= _0xf598xa;break}};if(0> _0xf598x9){return !1};_0xf598xa= _0xf598x3[_0xff99[1833]](_0xf598x4);if(_0xf598x5< _0xf598xa){if(0== _0xf598x9){return !0};_0xf598x2= _0xf598x2[_0xf598x9- 1];_0xf598x4= _0xf598x2[_0xff99[1833]](_0xf598x4);_0xf598x4= _0xf598x4+ _0xf598x2[_0xff99[117]]/ 2+ this[_0xff99[1868]]+ _0xf598x3[_0xff99[117]]/ 2;if(!(_0xf598x4<= _0xf598x5)){return !1}}else {if(_0xf598x5> _0xf598xa){if(_0xf598x9== _0xf598x2[_0xff99[67]]- 1){return !0};_0xf598x2= _0xf598x2[_0xf598x9+ 1];_0xf598x4= _0xf598x2[_0xff99[1833]](_0xf598x4);_0xf598x4= _0xf598x4- _0xf598x2[_0xff99[117]]/ 2- this[_0xff99[1868]]- _0xf598x3[_0xff99[117]]/ 2;if(!(_0xf598x4>= _0xf598x5)){return !1}}};return !0};mxCoordinateAssignment[_0xff99[202]][_0xff99[1895]]= function(_0xf598x2,_0xf598x3){this[_0xff99[1877]]= [];this[_0xff99[1878]]= [];for(var _0xf598x4=0;_0xf598x4< _0xf598x3[_0xff99[1850]][_0xff99[67]];_0xf598x4++){this[_0xff99[1877]][_0xf598x4]= Number[_0xff99[1904]],this[_0xff99[1878]][_0xf598x4]= 0};_0xf598x4= null;this[_0xff99[1759]][_0xff99[1735]]&& (_0xf598x4= {});var _0xf598x5=_0xf598x3[_0xff99[1847]],_0xf598x9=_0xf598x3[_0xff99[1846]],_0xf598xa;for(_0xf598xa in _0xf598x9){var _0xf598x12=_0xf598x9[_0xf598xa];this[_0xff99[1725]](_0xf598x12);if(this[_0xff99[1759]][_0xff99[1735]]){var _0xf598x12=_0xf598x2[_0xff99[251]][_0xff99[1197]](_0xf598x12[_0xff99[246]]),_0xf598x13=mxCellPath[_0xff99[385]](_0xf598x12);null== _0xf598x4[_0xf598x13]&& (_0xf598x4[_0xf598x13]= _0xf598x12)}};this[_0xff99[1759]][_0xff99[1735]]&& null!= _0xf598x4&& this[_0xff99[1763]](_0xf598x4);(this[_0xff99[675]]== mxHierarchicalEdgeStyle[_0xff99[1905]]|| this[_0xff99[675]]== mxHierarchicalEdgeStyle[_0xff99[1883]]|| this[_0xff99[675]]== mxHierarchicalEdgeStyle[_0xff99[1906]])&& this[_0xff99[1764]](_0xf598x3);for(_0xf598xa in _0xf598x5){this[_0xff99[1907]](_0xf598x5[_0xf598xa])}};mxCoordinateAssignment[_0xff99[202]][_0xff99[1763]]= function(_0xf598x2){var _0xf598x3=[],_0xf598x4;for(_0xf598x4 in _0xf598x2){_0xf598x3[_0xff99[207]](_0xf598x2[_0xf598x4])};this[_0xff99[1759]][_0xff99[1727]](mxUtils[_0xff99[1779]](_0xf598x3,!0),this[_0xff99[1745]])};mxCoordinateAssignment[_0xff99[202]][_0xff99[1764]]= function(_0xf598x2){for(var _0xf598x3=0;_0xf598x3< _0xf598x2[_0xff99[1850]][_0xff99[67]];_0xf598x3++){for(var _0xf598x4=_0xf598x2[_0xff99[1850]][_0xf598x3],_0xf598x5=0;_0xf598x5< _0xf598x4[_0xff99[67]];_0xf598x5++){var _0xf598x9=_0xf598x4[_0xf598x5];if(_0xf598x9[_0xff99[1193]]()){for(var _0xf598xa=_0xf598x9[_0xff99[1832]](_0xf598x3),_0xf598x12=_0xf598x3- 1,_0xf598x13=0;2> _0xf598x13;_0xf598x13++){if(-1< _0xf598x12 && _0xf598x12< _0xf598x2[_0xff99[1850]][_0xff99[67]] && null!= _0xf598xa && 0< _0xf598xa[_0xff99[67]]){for(var _0xf598x14=[],_0xf598x15=0;_0xf598x15< _0xf598xa[_0xff99[67]];_0xf598x15++){var _0xf598x16= new WeightedCellSorter(_0xf598xa[_0xf598x15],_0xf598xa[_0xf598x15][_0xff99[730]](_0xf598x12));_0xf598x14[_0xff99[207]](_0xf598x16)};_0xf598x14[_0xff99[470]](WeightedCellSorter[_0xff99[202]][_0xff99[469]]);for(var _0xf598x16=_0xf598x9[_0xff99[235]][0]- _0xf598x9[_0xff99[117]]/ 2,_0xf598x17=_0xf598x16+ _0xf598x9[_0xff99[117]],_0xf598x18=_0xf598xa= 0,_0xf598x12=[],_0xf598x15=0;_0xf598x15< _0xf598x14[_0xff99[67]];_0xf598x15++){var _0xf598x19=_0xf598x14[_0xf598x15][_0xff99[246]],_0xf598x1a;if(_0xf598x19[_0xff99[1193]]()){_0xf598x1a= 0== _0xf598x13?_0xf598x9[_0xff99[1838]]:_0xf598x9[_0xff99[1837]];for(var _0xf598x1b=0;_0xf598x1b< _0xf598x1a[_0xff99[67]];_0xf598x1b++){if(_0xf598x1a[_0xf598x1b][_0xff99[1097]]== _0xf598x19|| _0xf598x1a[_0xf598x1b][_0xff99[772]]== _0xf598x19){_0xf598xa+= _0xf598x1a[_0xf598x1b][_0xff99[1842]][_0xff99[67]],_0xf598x18++,_0xf598x12[_0xff99[207]](_0xf598x1a[_0xf598x1b])}}}else {_0xf598xa+= _0xf598x19[_0xff99[1842]][_0xff99[67]],_0xf598x18++,_0xf598x12[_0xff99[207]](_0xf598x19)}};_0xf598x9[_0xff99[117]]> (_0xf598xa+ 1)* this[_0xff99[1751]]+ 2* this[_0xff99[1751]]&& (_0xf598x16+= this[_0xff99[1751]],_0xf598x17-= this[_0xff99[1751]]);_0xf598x14= (_0xf598x17- _0xf598x16)/ _0xf598xa;_0xf598x16+= _0xf598x14/ 2;_0xf598x17= this[_0xff99[1753]]- this[_0xff99[1752]];for(_0xf598x15= _0xf598x18= 0;_0xf598x15< _0xf598x12[_0xff99[67]];_0xf598x15++){_0xf598x19= _0xf598x12[_0xf598x15][_0xff99[1842]][_0xff99[67]];_0xf598x1b= mxCellPath[_0xff99[385]](_0xf598x12[_0xf598x15][_0xff99[1842]][0]);_0xf598x1a= this[_0xff99[1873]][_0xf598x1b];null== _0xf598x1a&& (_0xf598x1a= [],this[_0xff99[1873]][_0xf598x1b]= _0xf598x1a);_0xf598x15< _0xf598xa/ 2?_0xf598x17+= this[_0xff99[1752]]:_0xf598x15> _0xf598xa/ 2&& (_0xf598x17-= this[_0xff99[1752]]);for(_0xf598x1b= 0;_0xf598x1b< _0xf598x19;_0xf598x1b++){_0xf598x1a[4* _0xf598x1b+ 2* _0xf598x13]= _0xf598x16,_0xf598x16+= _0xf598x14,_0xf598x1a[4* _0xf598x1b+ 2* _0xf598x13+ 1]= _0xf598x17};_0xf598x18= Math[_0xff99[160]](_0xf598x18,_0xf598x17)}};_0xf598xa= _0xf598x9[_0xff99[1831]](_0xf598x3);_0xf598x12= _0xf598x3+ 1}}}}};mxCoordinateAssignment[_0xff99[202]][_0xff99[1907]]= function(_0xf598x2){var _0xf598x3=0;if(101207!= _0xf598x2[_0xff99[1826]][0]){var _0xf598x4=_0xf598x2[_0xff99[1827]],_0xf598x5=_0xf598x2[_0xff99[1828]];_0xf598x4== _0xf598x5&& (_0xf598x4= _0xf598x2[_0xff99[1097]][_0xff99[1827]],_0xf598x5= _0xf598x2[_0xff99[772]][_0xff99[1828]]);for(var _0xf598x9=0,_0xf598xa=mxCellPath[_0xff99[385]](_0xf598x2[_0xff99[1842]][0]),_0xf598xa=this[_0xff99[1873]][_0xf598xa],_0xf598x12=_0xf598x2[_0xff99[1843]]?_0xf598x2[_0xff99[772]][_0xff99[246]]:_0xf598x2[_0xff99[1097]][_0xff99[246]],_0xf598x13=this[_0xff99[1759]][_0xff99[1179]],_0xf598x14=0;_0xf598x14< _0xf598x2[_0xff99[1842]][_0xff99[67]];_0xf598x14++){var _0xf598x15=_0xf598x2[_0xff99[1842]][_0xf598x14],_0xf598x16=this[_0xff99[1759]][_0xff99[1710]](_0xf598x15,!0),_0xf598x17=_0xf598x13[_0xff99[251]][_0xff99[1709]](_0xf598x15,!0),_0xf598x18=[],_0xf598x19=_0xf598x2[_0xff99[1843]];_0xf598x16!= _0xf598x12&& (_0xf598x19= !_0xf598x19);if(null!= _0xf598xa){var _0xf598x1a=_0xf598x19?2:0,_0xf598x1b=_0xf598x19?this[_0xff99[1877]][_0xf598x5]:this[_0xff99[1878]][_0xf598x4],_0xf598x1c=_0xf598xa[4* _0xf598x9+ 1+ _0xf598x1a];_0xf598x19&& (_0xf598x1c= -_0xf598x1c);_0xf598x1b+= _0xf598x1c;_0xf598x1a= _0xf598xa[4* _0xf598x9+ _0xf598x1a];_0xf598x17= _0xf598x13[_0xff99[251]][_0xff99[1709]](_0xf598x15,!0);this[_0xff99[1759]][_0xff99[1908]](_0xf598x17)&& _0xf598x13[_0xff99[251]][_0xff99[1197]](_0xf598x17)== _0xf598x16&& (_0xf598x1a= _0xf598x13[_0xff99[441]][_0xff99[248]](_0xf598x17),_0xf598x1a= null!= _0xf598x1a?_0xf598x1a[_0xff99[235]]:_0xf598x16[_0xff99[256]][_0xff99[235]]+ _0xf598x2[_0xff99[1097]][_0xff99[117]]* _0xf598x17[_0xff99[256]][_0xff99[235]]);this[_0xff99[1870]]== mxConstants[_0xff99[1358]]|| this[_0xff99[1870]]== mxConstants[_0xff99[1354]]?(_0xf598x18[_0xff99[207]]( new mxPoint(_0xf598x1a,_0xf598x1b)),this[_0xff99[675]]== mxHierarchicalEdgeStyle[_0xff99[1906]]&& _0xf598x18[_0xff99[207]]( new mxPoint(_0xf598x1a,_0xf598x1b+ _0xf598x1c))):(_0xf598x18[_0xff99[207]]( new mxPoint(_0xf598x1b,_0xf598x1a)),this[_0xff99[675]]== mxHierarchicalEdgeStyle[_0xff99[1906]]&& _0xf598x18[_0xff99[207]]( new mxPoint(_0xf598x1b+ _0xf598x1c,_0xf598x1a)))};_0xf598x1a= _0xf598x2[_0xff99[235]][_0xff99[67]]- 1;_0xf598x1b= _0xf598x1c= -1;_0xf598x16= _0xf598x2[_0xff99[1827]]- 1;_0xf598x19&& (_0xf598x1a= 0,_0xf598x1c= _0xf598x2[_0xff99[235]][_0xff99[67]],_0xf598x1b= 1,_0xf598x16= _0xf598x2[_0xff99[1828]]+ 1);for(;_0xf598x2[_0xff99[1827]]!= _0xf598x2[_0xff99[1828]]&& _0xf598x1a!= _0xf598x1c;_0xf598x1a+= _0xf598x1b){var _0xf598x17=_0xf598x2[_0xff99[235]][_0xf598x1a]+ _0xf598x3,_0xf598x1d=(this[_0xff99[1877]][_0xf598x16]+ this[_0xff99[1878]][_0xf598x16+ 1])/ 2,_0xf598x1e=(this[_0xff99[1877]][_0xf598x16- 1]+ this[_0xff99[1878]][_0xf598x16])/ 2;if(_0xf598x19){var _0xf598x1f=_0xf598x1d,_0xf598x1d=_0xf598x1e,_0xf598x1e=_0xf598x1f};this[_0xff99[1870]]== mxConstants[_0xff99[1358]]|| this[_0xff99[1870]]== mxConstants[_0xff99[1354]]?(_0xf598x18[_0xff99[207]]( new mxPoint(_0xf598x17,_0xf598x1d)),_0xf598x18[_0xff99[207]]( new mxPoint(_0xf598x17,_0xf598x1e))):(_0xf598x18[_0xff99[207]]( new mxPoint(_0xf598x1d,_0xf598x17)),_0xf598x18[_0xff99[207]]( new mxPoint(_0xf598x1e,_0xf598x17)));this[_0xff99[1874]]= Math[_0xff99[160]](this[_0xff99[1874]],_0xf598x17);_0xf598x16+= _0xf598x1b};null!= _0xf598xa&& (_0xf598x1a= _0xf598x19?2:0,_0xf598x1b= _0xf598x19?this[_0xff99[1878]][_0xf598x4]:this[_0xff99[1877]][_0xf598x5],_0xf598x1c= _0xf598xa[4* _0xf598x9+ 3- _0xf598x1a],_0xf598x19&& (_0xf598x1c= -_0xf598x1c),_0xf598x1b-= _0xf598x1c,_0xf598x1a= _0xf598xa[4* _0xf598x9+ 2- _0xf598x1a],_0xf598x19= _0xf598x13[_0xff99[251]][_0xff99[1709]](_0xf598x15,!1),_0xf598x16= this[_0xff99[1759]][_0xff99[1710]](_0xf598x15,!1),this[_0xff99[1759]][_0xff99[1908]](_0xf598x19)&& _0xf598x13[_0xff99[251]][_0xff99[1197]](_0xf598x19)== _0xf598x16&& (_0xf598x1a= _0xf598x13[_0xff99[441]][_0xff99[248]](_0xf598x19),_0xf598x1a= null!= _0xf598x1a?_0xf598x1a[_0xff99[235]]:_0xf598x16[_0xff99[256]][_0xff99[235]]+ _0xf598x2[_0xff99[772]][_0xff99[117]]* _0xf598x19[_0xff99[256]][_0xff99[235]]),this[_0xff99[1870]]== mxConstants[_0xff99[1358]]|| this[_0xff99[1870]]== mxConstants[_0xff99[1354]]?(this[_0xff99[675]]== mxHierarchicalEdgeStyle[_0xff99[1906]]&& _0xf598x18[_0xff99[207]]( new mxPoint(_0xf598x1a,_0xf598x1b- _0xf598x1c)),_0xf598x18[_0xff99[207]]( new mxPoint(_0xf598x1a,_0xf598x1b))):(this[_0xff99[675]]== mxHierarchicalEdgeStyle[_0xff99[1906]]&& _0xf598x18[_0xff99[207]]( new mxPoint(_0xf598x1b- _0xf598x1c,_0xf598x1a)),_0xf598x18[_0xff99[207]]( new mxPoint(_0xf598x1b,_0xf598x1a))));_0xf598x2[_0xff99[1843]]&& this[_0xff99[1909]](_0xf598x2,_0xf598x15);this[_0xff99[1759]][_0xff99[1722]](_0xf598x15,_0xf598x18);_0xf598x3= 0== _0xf598x3?this[_0xff99[1872]]:0< _0xf598x3?-_0xf598x3:-_0xf598x3+ this[_0xff99[1872]];_0xf598x9++};_0xf598x2[_0xff99[1826]][0]= 101207}};mxCoordinateAssignment[_0xff99[202]][_0xff99[1725]]= function(_0xf598x2){var _0xf598x3=_0xf598x2[_0xff99[246]],_0xf598x4=_0xf598x2[_0xff99[235]][0]- _0xf598x2[_0xff99[117]]/ 2,_0xf598x5=_0xf598x2[_0xff99[236]][0]- _0xf598x2[_0xff99[119]]/ 2;this[_0xff99[1877]][_0xf598x2[_0xff99[1828]]]= Math[_0xff99[243]](this[_0xff99[1877]][_0xf598x2[_0xff99[1828]]],_0xf598x5);this[_0xff99[1878]][_0xf598x2[_0xff99[1828]]]= Math[_0xff99[160]](this[_0xff99[1878]][_0xf598x2[_0xff99[1828]]],_0xf598x5+ _0xf598x2[_0xff99[119]]);this[_0xff99[1870]]== mxConstants[_0xff99[1358]]|| this[_0xff99[1870]]== mxConstants[_0xff99[1354]]?this[_0xff99[1759]][_0xff99[1725]](_0xf598x3,_0xf598x4,_0xf598x5):this[_0xff99[1759]][_0xff99[1725]](_0xf598x3,_0xf598x5,_0xf598x4);this[_0xff99[1874]]= Math[_0xff99[160]](this[_0xff99[1874]],_0xf598x4+ _0xf598x2[_0xff99[117]])};mxCoordinateAssignment[_0xff99[202]][_0xff99[1909]]= function(_0xf598x2,_0xf598x3){};function WeightedCellSorter(_0xf598x2,_0xf598x3){this[_0xff99[246]]= _0xf598x2;this[_0xff99[1782]]= _0xf598x3}WeightedCellSorter[_0xff99[202]][_0xff99[1782]]= 0;WeightedCellSorter[_0xff99[202]][_0xff99[1783]]= !1;WeightedCellSorter[_0xff99[202]][_0xff99[1784]]= !1;WeightedCellSorter[_0xff99[202]][_0xff99[1785]]= null;WeightedCellSorter[_0xff99[202]][_0xff99[246]]= null;WeightedCellSorter[_0xff99[202]][_0xff99[469]]= function(_0xf598x2,_0xf598x3){return null!= _0xf598x2&& null!= _0xf598x3?_0xf598x3[_0xff99[1782]]> _0xf598x2[_0xff99[1782]]?-1:_0xf598x3[_0xff99[1782]]< _0xf598x2[_0xff99[1782]]?1:_0xf598x3[_0xff99[1783]]?-1:1:0};function mxHierarchicalLayout(_0xf598x2,_0xf598x3,_0xf598x4){mxGraphLayout[_0xff99[239]](this,_0xf598x2);this[_0xff99[1870]]= null!= _0xf598x3?_0xf598x3:mxConstants[_0xff99[1358]];this[_0xff99[1910]]= null!= _0xf598x4?_0xf598x4:!0}mxHierarchicalLayout[_0xff99[202]]= new mxGraphLayout;mxHierarchicalLayout[_0xff99[202]][_0xff99[196]]= mxHierarchicalLayout;mxHierarchicalLayout[_0xff99[202]][_0xff99[1845]]= null;mxHierarchicalLayout[_0xff99[202]][_0xff99[1735]]= !1;mxHierarchicalLayout[_0xff99[202]][_0xff99[1911]]= !1;mxHierarchicalLayout[_0xff99[202]][_0xff99[1912]]= 0;mxHierarchicalLayout[_0xff99[202]][_0xff99[1868]]= 30;mxHierarchicalLayout[_0xff99[202]][_0xff99[1869]]= 100;mxHierarchicalLayout[_0xff99[202]][_0xff99[1913]]= 60;mxHierarchicalLayout[_0xff99[202]][_0xff99[1872]]= 10;mxHierarchicalLayout[_0xff99[202]][_0xff99[1870]]= mxConstants[_0xff99[1358]];mxHierarchicalLayout[_0xff99[202]][_0xff99[1882]]= !0;mxHierarchicalLayout[_0xff99[202]][_0xff99[1844]]= !0;mxHierarchicalLayout[_0xff99[202]][_0xff99[1787]]= !0;mxHierarchicalLayout[_0xff99[202]][_0xff99[1914]]= !0;mxHierarchicalLayout[_0xff99[202]][_0xff99[251]]= null;mxHierarchicalLayout[_0xff99[202]][_0xff99[1915]]= null;mxHierarchicalLayout[_0xff99[202]][_0xff99[502]]= function(){return this[_0xff99[251]]};mxHierarchicalLayout[_0xff99[202]][_0xff99[350]]= function(_0xf598x2,_0xf598x3){this[_0xff99[1101]]= _0xf598x2;var _0xf598x4=this[_0xff99[1179]][_0xff99[251]];this[_0xff99[1915]]= {};if(!(null== _0xf598x3&& null== _0xf598x2)){if(null!= _0xf598x3&& null!= _0xf598x2){for(var _0xf598x5=[],_0xf598x9=0;_0xf598x9< _0xf598x3[_0xff99[67]];_0xf598x9++){_0xf598x4[_0xff99[1720]](_0xf598x2,_0xf598x3[_0xf598x9])&& _0xf598x5[_0xff99[207]](_0xf598x3[_0xf598x9])};this[_0xff99[1845]]= _0xf598x5}else {this[_0xff99[1845]]= _0xf598x3};_0xf598x4[_0xff99[473]]();try{this[_0xff99[1916]](_0xf598x2),this[_0xff99[1735]]&& !this[_0xff99[1179]][_0xff99[1742]](_0xf598x2)&& this[_0xff99[1179]][_0xff99[1917]]([_0xf598x2],this[_0xff99[1912]],this[_0xff99[1911]])}finally{_0xf598x4[_0xff99[476]]()}}};mxHierarchicalLayout[_0xff99[202]][_0xff99[1918]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=[];if(null!= _0xf598x2&& null!= _0xf598x3){var _0xf598x5=this[_0xff99[1179]][_0xff99[251]],_0xf598x9=null,_0xf598xa=-1E5,_0xf598x12;for(_0xf598x12 in _0xf598x3){var _0xf598x13=_0xf598x3[_0xf598x12];if(_0xf598x5[_0xff99[1193]](_0xf598x13)&& this[_0xff99[1179]][_0xff99[1714]](_0xf598x13)){for(var _0xf598x14=this[_0xff99[264]](_0xf598x13),_0xf598x15=0,_0xf598x16=0,_0xf598x17=0;_0xf598x17< _0xf598x14[_0xff99[67]];_0xf598x17++){this[_0xff99[1710]](_0xf598x14[_0xf598x17],!0)== _0xf598x13?_0xf598x15++:_0xf598x16++};0== _0xf598x16&& 0< _0xf598x15&& _0xf598x4[_0xff99[207]](_0xf598x13);_0xf598x14= _0xf598x15- _0xf598x16;_0xf598x14> _0xf598xa&& (_0xf598xa= _0xf598x14,_0xf598x9= _0xf598x13)}};0== _0xf598x4[_0xff99[67]]&& null!= _0xf598x9&& _0xf598x4[_0xff99[207]](_0xf598x9)};return _0xf598x4};mxHierarchicalLayout[_0xff99[202]][_0xff99[264]]= function(_0xf598x2){var _0xf598x3=mxCellPath[_0xff99[385]](_0xf598x2);if(null!= this[_0xff99[1915]][_0xf598x3]){return this[_0xff99[1915]][_0xf598x3]};for(var _0xf598x4=this[_0xff99[1179]][_0xff99[251]],_0xf598x5=[],_0xf598x9=this[_0xff99[1179]][_0xff99[1742]](_0xf598x2),_0xf598xa=_0xf598x4[_0xff99[262]](_0xf598x2),_0xf598x12=0;_0xf598x12< _0xf598xa;_0xf598x12++){var _0xf598x13=_0xf598x4[_0xff99[263]](_0xf598x2,_0xf598x12);if(this[_0xff99[1908]](_0xf598x13)){_0xf598x5= _0xf598x5[_0xff99[1919]](_0xf598x4[_0xff99[264]](_0xf598x13,!0,!0))}else {if(_0xf598x9|| !this[_0xff99[1179]][_0xff99[1714]](_0xf598x13)){_0xf598x5= _0xf598x5[_0xff99[1919]](_0xf598x4[_0xff99[264]](_0xf598x13,!0,!0))}}};_0xf598x5= _0xf598x5[_0xff99[1919]](_0xf598x4[_0xff99[264]](_0xf598x2,!0,!0));_0xf598x4= [];for(_0xf598x12= 0;_0xf598x12< _0xf598x5[_0xff99[67]];_0xf598x12++){_0xf598x9= this[_0xff99[1710]](_0xf598x5[_0xf598x12],!0),_0xf598xa= this[_0xff99[1710]](_0xf598x5[_0xf598x12],!1),(_0xf598x9== _0xf598xa|| _0xf598x9!= _0xf598xa&& (_0xf598xa== _0xf598x2&& (null== this[_0xff99[1101]]|| this[_0xff99[1179]][_0xff99[1920]](_0xf598x9,this[_0xff99[1101]],this[_0xff99[1914]]))|| _0xf598x9== _0xf598x2&& (null== this[_0xff99[1101]]|| this[_0xff99[1179]][_0xff99[1920]](_0xf598xa,this[_0xff99[1101]],this[_0xff99[1914]]))))&& _0xf598x4[_0xff99[207]](_0xf598x5[_0xf598x12])};return this[_0xff99[1915]][_0xf598x3]= _0xf598x4};mxHierarchicalLayout[_0xff99[202]][_0xff99[1710]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=this[_0xff99[1179]][_0xff99[441]][_0xff99[248]](_0xf598x2),_0xf598x4=null!= _0xf598x4?_0xf598x4[_0xff99[1710]](_0xf598x3):this[_0xff99[1179]][_0xff99[441]][_0xff99[1710]](_0xf598x2,_0xf598x3);this[_0xff99[1908]](_0xf598x4)&& (_0xf598x4= this[_0xff99[1179]][_0xff99[251]][_0xff99[1197]](_0xf598x4));return _0xf598x4};mxHierarchicalLayout[_0xff99[202]][_0xff99[1916]]= function(_0xf598x2){var _0xf598x3=[],_0xf598x4=[];if(null== this[_0xff99[1845]]&& null!= _0xf598x2){var _0xf598x5={};this[_0xff99[1921]](_0xf598x2,_0xf598x5);this[_0xff99[1845]]= [];var _0xf598x9=!0,_0xf598xa;for(_0xf598xa in _0xf598x5){if(null!= _0xf598x5[_0xf598xa]){_0xf598x9= !1;break}};for(;!_0xf598x9;){for(var _0xf598x12=this[_0xff99[1918]](_0xf598x2,_0xf598x5),_0xf598x9=0;_0xf598x9< _0xf598x12[_0xff99[67]];_0xf598x9++){var _0xf598x13=[];_0xf598x3[_0xff99[207]](_0xf598x13);this[_0xff99[1706]](_0xf598x12[_0xf598x9],!0,null,_0xf598x4,_0xf598x13,_0xf598x3,_0xf598x5)};for(_0xf598x9= 0;_0xf598x9< _0xf598x12[_0xff99[67]];_0xf598x9++){this[_0xff99[1845]][_0xff99[207]](_0xf598x12[_0xf598x9])};_0xf598x9= !0;for(_0xf598xa in _0xf598x5){if(null!= _0xf598x5[_0xf598xa]){_0xf598x9= !1;break}}}}else {for(_0xf598x9= 0;_0xf598x9< roots[_0xff99[67]];_0xf598x9++){_0xf598x13= [],_0xf598x3[_0xff99[207]](_0xf598x13),traverse(roots[_0xff99[203]](_0xf598x9),!0,null,_0xf598x4,_0xf598x13,_0xf598x3,null)}};for(_0xf598x9= _0xf598x4= 0;_0xf598x9< _0xf598x3[_0xff99[67]];_0xf598x9++){_0xf598x13= _0xf598x3[_0xf598x9];_0xf598x5= [];for(_0xf598xa in _0xf598x13){_0xf598x5[_0xff99[207]](_0xf598x13[_0xf598xa])};this[_0xff99[251]]= new mxGraphHierarchyModel(this,_0xf598x5,this[_0xff99[1845]],_0xf598x2,this[_0xff99[1844]]);this[_0xff99[1922]](_0xf598x2);this[_0xff99[1923]]();this[_0xff99[1924]](_0xf598x2);_0xf598x4= this[_0xff99[1925]](_0xf598x4,_0xf598x2)}};mxHierarchicalLayout[_0xff99[202]][_0xff99[1921]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=this[_0xff99[1179]][_0xff99[251]];_0xf598x4[_0xff99[1193]](_0xf598x2)&& (_0xf598x2!= this[_0xff99[1101]]&& this[_0xff99[1179]][_0xff99[1714]](_0xf598x2))&& (_0xf598x3[mxCellPath[_0xff99[385]](_0xf598x2)]= _0xf598x2);if(this[_0xff99[1914]]|| _0xf598x2== this[_0xff99[1101]]&& this[_0xff99[1179]][_0xff99[1714]](_0xf598x2)){for(var _0xf598x5=_0xf598x4[_0xff99[262]](_0xf598x2),_0xf598x9=0;_0xf598x9< _0xf598x5;_0xf598x9++){var _0xf598xa=_0xf598x4[_0xff99[263]](_0xf598x2,_0xf598x9);this[_0xff99[1908]](_0xf598xa)|| this[_0xff99[1921]](_0xf598xa,_0xf598x3)}}};mxHierarchicalLayout[_0xff99[202]][_0xff99[1908]]= function(_0xf598x2){return _0xf598x2[_0xff99[256]][_0xff99[1500]]?!0:!1};mxHierarchicalLayout[_0xff99[202]][_0xff99[1781]]= function(_0xf598x2,_0xf598x3,_0xf598x4){_0xf598x4= null!= _0xf598x4?_0xf598x4:!1;for(var _0xf598x5=this[_0xff99[264]](_0xf598x2),_0xf598x9=[],_0xf598xa=0;_0xf598xa< _0xf598x5[_0xff99[67]];_0xf598xa++){var _0xf598x12=this[_0xff99[1710]](_0xf598x5[_0xf598xa],!0),_0xf598x13=this[_0xff99[1710]](_0xf598x5[_0xf598xa],!1);(_0xf598x12== _0xf598x2&& _0xf598x13== _0xf598x3|| !_0xf598x4&& _0xf598x12== _0xf598x3 && _0xf598x13== _0xf598x2)&& _0xf598x9[_0xff99[207]](_0xf598x5[_0xf598xa])};return _0xf598x9};mxHierarchicalLayout[_0xff99[202]][_0xff99[1706]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa,_0xf598x12){if(null!= _0xf598x2&& null!= _0xf598x5){var _0xf598x13=mxCellPath[_0xff99[385]](_0xf598x2);if(null== _0xf598x5[_0xf598x13]&& (null== _0xf598x12|| null!= _0xf598x12[_0xf598x13])){null== _0xf598x9[_0xf598x13]&& (_0xf598x9[_0xf598x13]= _0xf598x2);null== _0xf598x5[_0xf598x13]&& (_0xf598x5[_0xf598x13]= _0xf598x2);delete _0xf598x12[_0xf598x13];var _0xf598x14=this[_0xff99[264]](_0xf598x2);for(_0xf598x4= 0;_0xf598x4< _0xf598x14[_0xff99[67]];_0xf598x4++){if(_0xf598x13= this[_0xff99[1710]](_0xf598x14[_0xf598x4],!0)== _0xf598x2,!_0xf598x3|| _0xf598x13){_0xf598x13= this[_0xff99[1710]](_0xf598x14[_0xf598x4],!_0xf598x13),_0xf598x9= this[_0xff99[1706]](_0xf598x13,_0xf598x3,_0xf598x14[_0xf598x4],_0xf598x5,_0xf598x9,_0xf598xa,_0xf598x12)}}}else {if(null== _0xf598x9[_0xf598x13]){for(_0xf598x4= 0;_0xf598x4< _0xf598xa[_0xff99[67]];_0xf598x4++){if(_0xf598x2= _0xf598xa[_0xf598x4],null!= _0xf598x2[_0xf598x13]){for(_0xf598x14 in _0xf598x9){_0xf598x2[_0xf598x14]= _0xf598x9[_0xf598x14]};_0xf598xa[_0xff99[1242]]();return _0xf598x2}}}}};return _0xf598x9};mxHierarchicalLayout[_0xff99[202]][_0xff99[1922]]= function(_0xf598x2){( new mxMinimumCycleRemover(this))[_0xff99[350]](_0xf598x2)};mxHierarchicalLayout[_0xff99[202]][_0xff99[1923]]= function(){this[_0xff99[251]][_0xff99[1852]]();this[_0xff99[251]][_0xff99[1854]]()};mxHierarchicalLayout[_0xff99[202]][_0xff99[1924]]= function(_0xf598x2){( new mxMedianHybridCrossingReduction(this))[_0xff99[350]](_0xf598x2)};mxHierarchicalLayout[_0xff99[202]][_0xff99[1925]]= function(_0xf598x2,_0xf598x3){var _0xf598x4= new mxCoordinateAssignment(this,this[_0xff99[1868]],this[_0xff99[1869]],this[_0xff99[1870]],_0xf598x2,this[_0xff99[1872]]);_0xf598x4[_0xff99[1882]]= this[_0xff99[1882]];_0xf598x4[_0xff99[350]](_0xf598x3);return _0xf598x4[_0xff99[1874]]+ this[_0xff99[1913]]};function mxGraphModel(_0xf598x2){this[_0xff99[1926]]= this[_0xff99[1096]]();null!= _0xf598x2?this[_0xff99[1927]](_0xf598x2):this[_0xff99[200]]()}mxGraphModel[_0xff99[202]]= new mxEventSource;mxGraphModel[_0xff99[202]][_0xff99[196]]= mxGraphModel;mxGraphModel[_0xff99[202]][_0xff99[813]]= null;mxGraphModel[_0xff99[202]][_0xff99[895]]= null;mxGraphModel[_0xff99[202]][_0xff99[1928]]= !0;mxGraphModel[_0xff99[202]][_0xff99[1929]]= !0;mxGraphModel[_0xff99[202]][_0xff99[1089]]= _0xff99[110];mxGraphModel[_0xff99[202]][_0xff99[1930]]= _0xff99[110];mxGraphModel[_0xff99[202]][_0xff99[1931]]= 0;mxGraphModel[_0xff99[202]][_0xff99[1926]]= null;mxGraphModel[_0xff99[202]][_0xff99[1932]]= 0;mxGraphModel[_0xff99[202]][_0xff99[1933]]= !1;mxGraphModel[_0xff99[202]][_0xff99[200]]= function(){this[_0xff99[1927]](this[_0xff99[1934]]())};mxGraphModel[_0xff99[202]][_0xff99[1935]]= function(){return this[_0xff99[1929]]};mxGraphModel[_0xff99[202]][_0xff99[1936]]= function(_0xf598x2){this[_0xff99[1929]]= _0xf598x2};mxGraphModel[_0xff99[202]][_0xff99[1934]]= function(){var _0xf598x2= new mxCell;_0xf598x2[_0xff99[1937]]( new mxCell);return _0xf598x2};mxGraphModel[_0xff99[202]][_0xff99[736]]= function(_0xf598x2){return null!= this[_0xff99[895]]?this[_0xff99[895]][_0xf598x2]:null};mxGraphModel[_0xff99[202]][_0xff99[1938]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=null;if(null!= _0xf598x2){for(var _0xf598x4=[],_0xf598x5=0;_0xf598x5< _0xf598x2[_0xff99[67]];_0xf598x5++){_0xf598x3(_0xf598x2[_0xf598x5])&& _0xf598x4[_0xff99[207]](_0xf598x2[_0xf598x5])}};return _0xf598x4};mxGraphModel[_0xff99[202]][_0xff99[1939]]= function(_0xf598x2){return this[_0xff99[1921]](null,_0xf598x2)};mxGraphModel[_0xff99[202]][_0xff99[1921]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=[];_0xf598x3= _0xf598x3|| this[_0xff99[501]]();(null== _0xf598x2|| _0xf598x2(_0xf598x3))&& _0xf598x4[_0xff99[207]](_0xf598x3);for(var _0xf598x5=this[_0xff99[262]](_0xf598x3),_0xf598x9=0;_0xf598x9< _0xf598x5;_0xf598x9++){var _0xf598xa=this[_0xff99[263]](_0xf598x3,_0xf598x9),_0xf598x4=_0xf598x4[_0xff99[1919]](this[_0xff99[1921]](_0xf598x2,_0xf598xa))};return _0xf598x4};mxGraphModel[_0xff99[202]][_0xff99[501]]= function(_0xf598x2){var _0xf598x3=_0xf598x2|| this[_0xff99[813]];if(null!= _0xf598x2){for(;null!= _0xf598x2;){_0xf598x3= _0xf598x2,_0xf598x2= this[_0xff99[1197]](_0xf598x2)}};return _0xf598x3};mxGraphModel[_0xff99[202]][_0xff99[1927]]= function(_0xf598x2){this[_0xff99[350]]( new mxRootChange(this,_0xf598x2));return _0xf598x2};mxGraphModel[_0xff99[202]][_0xff99[1940]]= function(_0xf598x2){var _0xf598x3=this[_0xff99[813]];this[_0xff99[813]]= _0xf598x2;this[_0xff99[1931]]= 0;this[_0xff99[895]]= null;this[_0xff99[1941]](_0xf598x2);return _0xf598x3};mxGraphModel[_0xff99[202]][_0xff99[1942]]= function(_0xf598x2){return null!= _0xf598x2&& this[_0xff99[813]]== _0xf598x2};mxGraphModel[_0xff99[202]][_0xff99[1740]]= function(_0xf598x2){return this[_0xff99[1942]](this[_0xff99[1197]](_0xf598x2))};mxGraphModel[_0xff99[202]][_0xff99[1720]]= function(_0xf598x2,_0xf598x3){for(;null!= _0xf598x3&& _0xf598x3!= _0xf598x2;){_0xf598x3= this[_0xff99[1197]](_0xf598x3)};return _0xf598x3== _0xf598x2};mxGraphModel[_0xff99[202]][_0xff99[442]]= function(_0xf598x2){return this[_0xff99[1720]](this[_0xff99[813]],_0xf598x2)};mxGraphModel[_0xff99[202]][_0xff99[1197]]= function(_0xf598x2){return null!= _0xf598x2?_0xf598x2[_0xff99[1197]]():null};mxGraphModel[_0xff99[202]][_0xff99[99]]= function(_0xf598x2,_0xf598x3,_0xf598x4){if(_0xf598x3!= _0xf598x2&& null!= _0xf598x2&& null!= _0xf598x3){null== _0xf598x4&& (_0xf598x4= this[_0xff99[262]](_0xf598x2));var _0xf598x5=_0xf598x2!= this[_0xff99[1197]](_0xf598x3);this[_0xff99[350]]( new mxChildChange(this,_0xf598x2,_0xf598x3,_0xf598x4));this[_0xff99[1928]]&& _0xf598x5&& this[_0xff99[1943]](_0xf598x3)};return _0xf598x3};mxGraphModel[_0xff99[202]][_0xff99[1941]]= function(_0xf598x2){if(null!= _0xf598x2){null== _0xf598x2[_0xff99[1103]]()&& this[_0xff99[1929]]&& _0xf598x2[_0xff99[1945]](this[_0xff99[1944]](_0xf598x2));if(null!= _0xf598x2[_0xff99[1103]]()){var _0xf598x3=this[_0xff99[736]](_0xf598x2[_0xff99[1103]]());if(_0xf598x3!= _0xf598x2){for(;null!= _0xf598x3;){_0xf598x2[_0xff99[1945]](this[_0xff99[1944]](_0xf598x2)),_0xf598x3= this[_0xff99[736]](_0xf598x2[_0xff99[1103]]())};null== this[_0xff99[895]]&& (this[_0xff99[895]]= {});this[_0xff99[895]][_0xf598x2[_0xff99[1103]]()]= _0xf598x2}};mxUtils[_0xff99[1946]](_0xf598x2[_0xff99[1103]]())&& (this[_0xff99[1931]]= Math[_0xff99[160]](this[_0xff99[1931]],_0xf598x2[_0xff99[1103]]()));for(var _0xf598x3=this[_0xff99[262]](_0xf598x2),_0xf598x4=0;_0xf598x4< _0xf598x3;_0xf598x4++){this[_0xff99[1941]](this[_0xff99[263]](_0xf598x2,_0xf598x4))}}};mxGraphModel[_0xff99[202]][_0xff99[1944]]= function(_0xf598x2){_0xf598x2= this[_0xff99[1931]];this[_0xff99[1931]]++;return this[_0xff99[1089]]+ _0xf598x2+ this[_0xff99[1930]]};mxGraphModel[_0xff99[202]][_0xff99[1943]]= function(_0xf598x2,_0xf598x3){_0xf598x3= _0xf598x3|| this[_0xff99[501]](_0xf598x2);for(var _0xf598x4=this[_0xff99[262]](_0xf598x2),_0xf598x5=0;_0xf598x5< _0xf598x4;_0xf598x5++){var _0xf598x9=this[_0xff99[263]](_0xf598x2,_0xf598x5);this[_0xff99[1943]](_0xf598x9,_0xf598x3)};_0xf598x9= this[_0xff99[1707]](_0xf598x2);_0xf598x4= [];for(_0xf598x5= 0;_0xf598x5< _0xf598x9;_0xf598x5++){_0xf598x4[_0xff99[207]](this[_0xff99[1708]](_0xf598x2,_0xf598x5))};for(_0xf598x5= 0;_0xf598x5< _0xf598x4[_0xff99[67]];_0xf598x5++){_0xf598x9= _0xf598x4[_0xf598x5],this[_0xff99[1720]](_0xf598x3,_0xf598x9)&& this[_0xff99[1947]](_0xf598x9,_0xf598x3)}};mxGraphModel[_0xff99[202]][_0xff99[1947]]= function(_0xf598x2,_0xf598x3){for(var _0xf598x4=this[_0xff99[1709]](_0xf598x2,!0),_0xf598x5=this[_0xff99[1709]](_0xf598x2,!1),_0xf598x9=null;null!= _0xf598x4&& !this[_0xff99[250]](_0xf598x4)&& null!= _0xf598x4[_0xff99[256]]&& _0xf598x4[_0xff99[256]][_0xff99[1500]];){_0xf598x4= this[_0xff99[1197]](_0xf598x4)};for(;null!= _0xf598x5&& !this[_0xff99[250]](_0xf598x5)&& null!= _0xf598x5[_0xff99[256]]&& _0xf598x5[_0xff99[256]][_0xff99[1500]];){_0xf598x5= this[_0xff99[1197]](_0xf598x5)};if(this[_0xff99[1720]](_0xf598x3,_0xf598x4)&& this[_0xff99[1720]](_0xf598x3,_0xf598x5)&& (_0xf598x9= _0xf598x4== _0xf598x5?this[_0xff99[1197]](_0xf598x4):this[_0xff99[1948]](_0xf598x4,_0xf598x5),null!= _0xf598x9&& (this[_0xff99[1197]](_0xf598x9)!= this[_0xff99[813]]|| this[_0xff99[1720]](_0xf598x9,_0xf598x2))&& this[_0xff99[1197]](_0xf598x2)!= _0xf598x9)){_0xf598x4= this[_0xff99[1721]](_0xf598x2);if(null!= _0xf598x4){var _0xf598xa=this[_0xff99[1949]](this[_0xff99[1197]](_0xf598x2)),_0xf598x12=this[_0xff99[1949]](_0xf598x9),_0xf598x5=_0xf598x12[_0xff99[235]]- _0xf598xa[_0xff99[235]],_0xf598xa=_0xf598x12[_0xff99[236]]- _0xf598xa[_0xff99[236]],_0xf598x4=_0xf598x4[_0xff99[238]]();_0xf598x4[_0xff99[513]](-_0xf598x5,-_0xf598xa);this[_0xff99[1724]](_0xf598x2,_0xf598x4)};this[_0xff99[99]](_0xf598x9,_0xf598x2,this[_0xff99[262]](_0xf598x9))}};mxGraphModel[_0xff99[202]][_0xff99[1949]]= function(_0xf598x2){var _0xf598x3=null;null!= _0xf598x2?(_0xf598x3= this[_0xff99[1949]](this[_0xff99[1197]](_0xf598x2)),this[_0xff99[250]](_0xf598x2)|| (_0xf598x2= this[_0xff99[1721]](_0xf598x2),null!= _0xf598x2&& (_0xf598x3[_0xff99[235]]+= _0xf598x2[_0xff99[235]],_0xf598x3[_0xff99[236]]+= _0xf598x2[_0xff99[236]]))):_0xf598x3= new mxPoint;return _0xf598x3};mxGraphModel[_0xff99[202]][_0xff99[1948]]= function(_0xf598x2,_0xf598x3){if(null!= _0xf598x2&& null!= _0xf598x3){var _0xf598x4=mxCellPath[_0xff99[385]](_0xf598x3);if(null!= _0xf598x4&& 0< _0xf598x4[_0xff99[67]]){var _0xf598x5=_0xf598x2,_0xf598x9=mxCellPath[_0xff99[385]](_0xf598x5);if(_0xf598x4[_0xff99[67]]< _0xf598x9[_0xff99[67]]){var _0xf598x5=_0xf598x3,_0xf598xa=_0xf598x9,_0xf598x9=_0xf598x4,_0xf598x4=_0xf598xa};for(;null!= _0xf598x5;){_0xf598xa= this[_0xff99[1197]](_0xf598x5);if(0== _0xf598x4[_0xff99[2]](_0xf598x9+ mxCellPath[_0xff99[1950]])&& null!= _0xf598xa){return _0xf598x5};_0xf598x9= mxCellPath[_0xff99[1951]](_0xf598x9);_0xf598x5= _0xf598xa}}};return null};mxGraphModel[_0xff99[202]][_0xff99[205]]= function(_0xf598x2){_0xf598x2== this[_0xff99[813]]?this[_0xff99[1927]](null):null!= this[_0xff99[1197]](_0xf598x2)&& this[_0xff99[350]]( new mxChildChange(this,null,_0xf598x2));return _0xf598x2};mxGraphModel[_0xff99[202]][_0xff99[1102]]= function(_0xf598x2){if(null!= _0xf598x2&& null!= this[_0xff99[895]]){for(var _0xf598x3=this[_0xff99[262]](_0xf598x2)- 1;0<= _0xf598x3;_0xf598x3--){this[_0xff99[1102]](this[_0xff99[263]](_0xf598x2,_0xf598x3))};null!= this[_0xff99[895]]&& null!= _0xf598x2[_0xff99[1103]]()&& delete this[_0xff99[895]][_0xf598x2[_0xff99[1103]]()]}};mxGraphModel[_0xff99[202]][_0xff99[1952]]= function(_0xf598x2,_0xf598x3,_0xf598x4){var _0xf598x5=this[_0xff99[1197]](_0xf598x2);null!= _0xf598x3?(_0xf598x3!= _0xf598x5|| _0xf598x5[_0xff99[1738]](_0xf598x2)!= _0xf598x4)&& _0xf598x3[_0xff99[1937]](_0xf598x2,_0xf598x4):null!= _0xf598x5&& (_0xf598x4= _0xf598x5[_0xff99[1738]](_0xf598x2),_0xf598x5[_0xff99[205]](_0xf598x4));!this[_0xff99[442]](_0xf598x5)&& null!= _0xf598x3?this[_0xff99[1941]](_0xf598x2):null== _0xf598x3&& this[_0xff99[1102]](_0xf598x2);return _0xf598x5};mxGraphModel[_0xff99[202]][_0xff99[262]]= function(_0xf598x2){return null!= _0xf598x2?_0xf598x2[_0xff99[262]]():0};mxGraphModel[_0xff99[202]][_0xff99[263]]= function(_0xf598x2,_0xf598x3){return null!= _0xf598x2?_0xf598x2[_0xff99[263]](_0xf598x3):null};mxGraphModel[_0xff99[202]][_0xff99[1953]]= function(_0xf598x2){return null!= _0xf598x2?_0xf598x2[_0xff99[1954]]:null};mxGraphModel[_0xff99[202]][_0xff99[1728]]= function(_0xf598x2){return this[_0xff99[1955]](_0xf598x2,!0,!1)};mxGraphModel[_0xff99[202]][_0xff99[1956]]= function(_0xf598x2){return this[_0xff99[1955]](_0xf598x2,!1,!0)};mxGraphModel[_0xff99[202]][_0xff99[1955]]= function(_0xf598x2,_0xf598x3,_0xf598x4){_0xf598x3= null!= _0xf598x3?_0xf598x3:!1;_0xf598x4= null!= _0xf598x4?_0xf598x4:!1;for(var _0xf598x5=this[_0xff99[262]](_0xf598x2),_0xf598x9=[],_0xf598xa=0;_0xf598xa< _0xf598x5;_0xf598xa++){var _0xf598x12=this[_0xff99[263]](_0xf598x2,_0xf598xa);(!_0xf598x4&& !_0xf598x3 || _0xf598x4&& this[_0xff99[250]](_0xf598x12) || _0xf598x3&& this[_0xff99[1193]](_0xf598x12)) && _0xf598x9[_0xff99[207]](_0xf598x12)};return _0xf598x9};mxGraphModel[_0xff99[202]][_0xff99[1709]]= function(_0xf598x2,_0xf598x3){return null!= _0xf598x2?_0xf598x2[_0xff99[1709]](_0xf598x3):null};mxGraphModel[_0xff99[202]][_0xff99[1957]]= function(_0xf598x2,_0xf598x3,_0xf598x4){var _0xf598x5=_0xf598x3!= this[_0xff99[1709]](_0xf598x2,_0xf598x4);this[_0xff99[350]]( new mxTerminalChange(this,_0xf598x2,_0xf598x3,_0xf598x4));this[_0xff99[1928]]&& _0xf598x5&& this[_0xff99[1947]](_0xf598x2,this[_0xff99[501]]());return _0xf598x3};mxGraphModel[_0xff99[202]][_0xff99[1958]]= function(_0xf598x2,_0xf598x3,_0xf598x4){this[_0xff99[473]]();try{this[_0xff99[1957]](_0xf598x2,_0xf598x3,!0),this[_0xff99[1957]](_0xf598x2,_0xf598x4,!1)}finally{this[_0xff99[476]]()}};mxGraphModel[_0xff99[202]][_0xff99[1959]]= function(_0xf598x2,_0xf598x3,_0xf598x4){var _0xf598x5=this[_0xff99[1709]](_0xf598x2,_0xf598x4);null!= _0xf598x3?_0xf598x3[_0xff99[1960]](_0xf598x2,_0xf598x4):null!= _0xf598x5&& _0xf598x5[_0xff99[1961]](_0xf598x2,_0xf598x4);return _0xf598x5};mxGraphModel[_0xff99[202]][_0xff99[1707]]= function(_0xf598x2){return null!= _0xf598x2?_0xf598x2[_0xff99[1707]]():0};mxGraphModel[_0xff99[202]][_0xff99[1708]]= function(_0xf598x2,_0xf598x3){return null!= _0xf598x2?_0xf598x2[_0xff99[1708]](_0xf598x3):null};mxGraphModel[_0xff99[202]][_0xff99[1962]]= function(_0xf598x2,_0xf598x3,_0xf598x4){for(var _0xf598x5=0,_0xf598x9=this[_0xff99[1707]](_0xf598x2),_0xf598xa=0;_0xf598xa< _0xf598x9;_0xf598xa++){var _0xf598x12=this[_0xff99[1708]](_0xf598x2,_0xf598xa);_0xf598x12!= _0xf598x4&& this[_0xff99[1709]](_0xf598x12,_0xf598x3)== _0xf598x2&& _0xf598x5++};return _0xf598x5};mxGraphModel[_0xff99[202]][_0xff99[1756]]= function(_0xf598x2){return this[_0xff99[264]](_0xf598x2,!0,!0,!1)};mxGraphModel[_0xff99[202]][_0xff99[1867]]= function(_0xf598x2){return this[_0xff99[264]](_0xf598x2,!0,!1,!1)};mxGraphModel[_0xff99[202]][_0xff99[1963]]= function(_0xf598x2){return this[_0xff99[264]](_0xf598x2,!1,!0,!1)};mxGraphModel[_0xff99[202]][_0xff99[264]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){_0xf598x3= null!= _0xf598x3?_0xf598x3:!0;_0xf598x4= null!= _0xf598x4?_0xf598x4:!0;_0xf598x5= null!= _0xf598x5?_0xf598x5:!0;for(var _0xf598x9=this[_0xff99[1707]](_0xf598x2),_0xf598xa=[],_0xf598x12=0;_0xf598x12< _0xf598x9;_0xf598x12++){var _0xf598x13=this[_0xff99[1708]](_0xf598x2,_0xf598x12),_0xf598x14=this[_0xff99[1709]](_0xf598x13,!0),_0xf598x15=this[_0xff99[1709]](_0xf598x13,!1);(_0xf598x5&& _0xf598x14== _0xf598x15|| _0xf598x14!= _0xf598x15&& (_0xf598x3&& _0xf598x15== _0xf598x2|| _0xf598x4&& _0xf598x14== _0xf598x2))&& _0xf598xa[_0xff99[207]](_0xf598x13)};return _0xf598xa};mxGraphModel[_0xff99[202]][_0xff99[1781]]= function(_0xf598x2,_0xf598x3,_0xf598x4){_0xf598x4= null!= _0xf598x4?_0xf598x4:!1;var _0xf598x5=this[_0xff99[1707]](_0xf598x2),_0xf598x9=this[_0xff99[1707]](_0xf598x3),_0xf598xa=_0xf598x2,_0xf598x12=_0xf598x5;_0xf598x9< _0xf598x5&& (_0xf598x12= _0xf598x9,_0xf598xa= _0xf598x3);_0xf598x5= [];for(_0xf598x9= 0;_0xf598x9< _0xf598x12;_0xf598x9++){var _0xf598x13=this[_0xff99[1708]](_0xf598xa,_0xf598x9),_0xf598x14=this[_0xff99[1709]](_0xf598x13,!0),_0xf598x15=this[_0xff99[1709]](_0xf598x13,!1),_0xf598x16=_0xf598x15== _0xf598x2&& _0xf598x14== _0xf598x3;(_0xf598x14== _0xf598x2&& _0xf598x15== _0xf598x3|| !_0xf598x4&& _0xf598x16)&& _0xf598x5[_0xff99[207]](_0xf598x13)};return _0xf598x5};mxGraphModel[_0xff99[202]][_0xff99[1808]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){_0xf598x4= null!= _0xf598x4?_0xf598x4:!0;_0xf598x5= null!= _0xf598x5?_0xf598x5:!0;var _0xf598x9=[];if(null!= _0xf598x2){for(var _0xf598xa=0;_0xf598xa< _0xf598x2[_0xff99[67]];_0xf598xa++){var _0xf598x12=this[_0xff99[1709]](_0xf598x2[_0xf598xa],!0),_0xf598x13=this[_0xff99[1709]](_0xf598x2[_0xf598xa],!1);_0xf598x12== _0xf598x3&& null!= _0xf598x13&& _0xf598x13!= _0xf598x3&& _0xf598x5?_0xf598x9[_0xff99[207]](_0xf598x13):_0xf598x13== _0xf598x3&& (null!= _0xf598x12&& _0xf598x12!= _0xf598x3&& _0xf598x4)&& _0xf598x9[_0xff99[207]](_0xf598x12)}};return _0xf598x9};mxGraphModel[_0xff99[202]][_0xff99[1964]]= function(_0xf598x2){for(var _0xf598x3=[],_0xf598x4=0;_0xf598x4< _0xf598x2[_0xff99[67]];_0xf598x4++){for(var _0xf598x5=_0xf598x2[_0xf598x4],_0xf598x9=!0,_0xf598xa=this[_0xff99[1197]](_0xf598x5);null!= _0xf598xa;){if(0<= mxUtils[_0xff99[2]](_0xf598x2,_0xf598xa)){_0xf598x9= !1;break};_0xf598xa= this[_0xff99[1197]](_0xf598xa)};_0xf598x9&& _0xf598x3[_0xff99[207]](_0xf598x5)};return _0xf598x3};mxGraphModel[_0xff99[202]][_0xff99[1193]]= function(_0xf598x2){return null!= _0xf598x2?_0xf598x2[_0xff99[1193]]():!1};mxGraphModel[_0xff99[202]][_0xff99[250]]= function(_0xf598x2){return null!= _0xf598x2?_0xf598x2[_0xff99[250]]():!1};mxGraphModel[_0xff99[202]][_0xff99[1965]]= function(_0xf598x2){return null!= _0xf598x2?_0xf598x2[_0xff99[1965]]():!1};mxGraphModel[_0xff99[202]][_0xff99[433]]= function(_0xf598x2){return null!= _0xf598x2?_0xf598x2[_0xff99[433]]():null};mxGraphModel[_0xff99[202]][_0xff99[1966]]= function(_0xf598x2,_0xf598x3){this[_0xff99[350]]( new mxValueChange(this,_0xf598x2,_0xf598x3));return _0xf598x3};mxGraphModel[_0xff99[202]][_0xff99[1967]]= function(_0xf598x2,_0xf598x3){return _0xf598x2[_0xff99[1968]](_0xf598x3)};mxGraphModel[_0xff99[202]][_0xff99[1721]]= function(_0xf598x2,_0xf598x3){return null!= _0xf598x2?_0xf598x2[_0xff99[1721]]():null};mxGraphModel[_0xff99[202]][_0xff99[1724]]= function(_0xf598x2,_0xf598x3){_0xf598x3!= this[_0xff99[1721]](_0xf598x2)&& this[_0xff99[350]]( new mxGeometryChange(this,_0xf598x2,_0xf598x3));return _0xf598x3};mxGraphModel[_0xff99[202]][_0xff99[1969]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=this[_0xff99[1721]](_0xf598x2);_0xf598x2[_0xff99[1724]](_0xf598x3);return _0xf598x4};mxGraphModel[_0xff99[202]][_0xff99[474]]= function(_0xf598x2){return null!= _0xf598x2?_0xf598x2[_0xff99[474]]():null};mxGraphModel[_0xff99[202]][_0xff99[475]]= function(_0xf598x2,_0xf598x3){_0xf598x3!= this[_0xff99[474]](_0xf598x2)&& this[_0xff99[350]]( new mxStyleChange(this,_0xf598x2,_0xf598x3));return _0xf598x3};mxGraphModel[_0xff99[202]][_0xff99[1970]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=this[_0xff99[474]](_0xf598x2);_0xf598x2[_0xff99[475]](_0xf598x3);return _0xf598x4};mxGraphModel[_0xff99[202]][_0xff99[1971]]= function(_0xf598x2){return null!= _0xf598x2?_0xf598x2[_0xff99[1971]]():!1};mxGraphModel[_0xff99[202]][_0xff99[1972]]= function(_0xf598x2,_0xf598x3){_0xf598x3!= this[_0xff99[1971]](_0xf598x2)&& this[_0xff99[350]]( new mxCollapseChange(this,_0xf598x2,_0xf598x3));return _0xf598x3};mxGraphModel[_0xff99[202]][_0xff99[1973]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=this[_0xff99[1971]](_0xf598x2);_0xf598x2[_0xff99[1972]](_0xf598x3);return _0xf598x4};mxGraphModel[_0xff99[202]][_0xff99[174]]= function(_0xf598x2){return null!= _0xf598x2?_0xf598x2[_0xff99[174]]():!1};mxGraphModel[_0xff99[202]][_0xff99[175]]= function(_0xf598x2,_0xf598x3){_0xf598x3!= this[_0xff99[174]](_0xf598x2)&& this[_0xff99[350]]( new mxVisibleChange(this,_0xf598x2,_0xf598x3));return _0xf598x3};mxGraphModel[_0xff99[202]][_0xff99[1974]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=this[_0xff99[174]](_0xf598x2);_0xf598x2[_0xff99[175]](_0xf598x3);return _0xf598x4};mxGraphModel[_0xff99[202]][_0xff99[350]]= function(_0xf598x2){_0xf598x2[_0xff99[350]]();this[_0xff99[473]]();this[_0xff99[1926]][_0xff99[99]](_0xf598x2);this[_0xff99[746]]( new mxEventObject(mxEvent.EXECUTE,_0xff99[826],_0xf598x2));this[_0xff99[746]]( new mxEventObject(mxEvent.EXECUTED,_0xff99[826],_0xf598x2));this[_0xff99[476]]()};mxGraphModel[_0xff99[202]][_0xff99[473]]= function(){this[_0xff99[1932]]++;this[_0xff99[746]]( new mxEventObject(mxEvent.BEGIN_UPDATE));1== this[_0xff99[1932]]&& this[_0xff99[746]]( new mxEventObject(mxEvent.START_EDIT))};mxGraphModel[_0xff99[202]][_0xff99[476]]= function(){this[_0xff99[1932]]--;0== this[_0xff99[1932]]&& this[_0xff99[746]]( new mxEventObject(mxEvent.END_EDIT));if(!this[_0xff99[1933]]){this[_0xff99[1933]]= 0== this[_0xff99[1932]];this[_0xff99[746]]( new mxEventObject(mxEvent.END_UPDATE,_0xff99[1061],this[_0xff99[1926]]));try{if(this[_0xff99[1933]]&& !this[_0xff99[1926]][_0xff99[1107]]()){this[_0xff99[746]]( new mxEventObject(mxEvent.BEFORE_UNDO,_0xff99[1061],this[_0xff99[1926]]));var _0xf598x2=this[_0xff99[1926]];this[_0xff99[1926]]= this[_0xff99[1096]]();_0xf598x2[_0xff99[827]]();this[_0xff99[746]]( new mxEventObject(mxEvent.UNDO,_0xff99[1061],_0xf598x2))}}finally{this[_0xff99[1933]]= !1}}};mxGraphModel[_0xff99[202]][_0xff99[1096]]= function(){var _0xf598x2= new mxUndoableEdit(this,!0);_0xf598x2[_0xff99[827]]= function(){_0xf598x2[_0xff99[1097]][_0xff99[746]]( new mxEventObject(mxEvent.CHANGE,_0xff99[1061],_0xf598x2,_0xff99[1065],_0xf598x2[_0xff99[1065]]));_0xf598x2[_0xff99[1097]][_0xff99[746]]( new mxEventObject(mxEvent.NOTIFY,_0xff99[1061],_0xf598x2,_0xff99[1065],_0xf598x2[_0xff99[1065]]))};return _0xf598x2};mxGraphModel[_0xff99[202]][_0xff99[1975]]= function(_0xf598x2,_0xf598x3,_0xf598x4){_0xf598x4= null!= _0xf598x4?_0xf598x4:!0;this[_0xff99[473]]();try{var _0xf598x5={};this[_0xff99[1976]](_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5);for(var _0xf598x9 in _0xf598x5){var _0xf598xa=_0xf598x5[_0xf598x9],_0xf598x12=this[_0xff99[1709]](_0xf598xa,!0);null!= _0xf598x12&& (_0xf598x12= _0xf598x5[mxCellPath[_0xff99[385]](_0xf598x12)],this[_0xff99[1957]](_0xf598xa,_0xf598x12,!0));_0xf598x12= this[_0xff99[1709]](_0xf598xa,!1);null!= _0xf598x12&& (_0xf598x12= _0xf598x5[mxCellPath[_0xff99[385]](_0xf598x12)],this[_0xff99[1957]](_0xf598xa,_0xf598x12,!1))}}finally{this[_0xff99[476]]()}};mxGraphModel[_0xff99[202]][_0xff99[1976]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){this[_0xff99[473]]();try{for(var _0xf598x9=_0xf598x2[_0xff99[262]](),_0xf598xa=0;_0xf598xa< _0xf598x9;_0xf598xa++){var _0xf598x12=_0xf598x2[_0xff99[263]](_0xf598xa);if(_0xff99[279]== typeof _0xf598x12[_0xff99[1103]]){var _0xf598x13=_0xf598x12[_0xff99[1103]](),_0xf598x14=null!= _0xf598x13&& (!this[_0xff99[250]](_0xf598x12)|| !_0xf598x4)?this[_0xff99[736]](_0xf598x13):null;if(null== _0xf598x14){var _0xf598x15=_0xf598x12[_0xff99[238]]();_0xf598x15[_0xff99[1945]](_0xf598x13);_0xf598x15[_0xff99[1957]](_0xf598x12[_0xff99[1709]](!0),!0);_0xf598x15[_0xff99[1957]](_0xf598x12[_0xff99[1709]](!1),!1);_0xf598x14= _0xf598x3[_0xff99[1937]](_0xf598x15);this[_0xff99[1941]](_0xf598x14)};_0xf598x5[mxCellPath[_0xff99[385]](_0xf598x12)]= _0xf598x14;this[_0xff99[1976]](_0xf598x12,_0xf598x14,_0xf598x4,_0xf598x5)}}}finally{this[_0xff99[476]]()}};mxGraphModel[_0xff99[202]][_0xff99[1977]]= function(_0xf598x2){var _0xf598x3=[];if(null!= _0xf598x2){for(var _0xf598x4={},_0xf598x5=0;_0xf598x5< _0xf598x2[_0xff99[67]];_0xf598x5++){var _0xf598x9=this[_0xff99[1197]](_0xf598x2[_0xf598x5]);if(null!= _0xf598x9){var _0xf598xa=mxCellPath[_0xff99[385]](_0xf598x9);null== _0xf598x4[_0xf598xa]&& (_0xf598x4[_0xf598xa]= _0xf598x9,_0xf598x3[_0xff99[207]](_0xf598x9))}}};return _0xf598x3};mxGraphModel[_0xff99[202]][_0xff99[1978]]= function(_0xf598x2){return null!= _0xf598x2?this[_0xff99[899]]([_0xf598x2],!0)[0]:null};mxGraphModel[_0xff99[202]][_0xff99[899]]= function(_0xf598x2,_0xf598x3){for(var _0xf598x4={},_0xf598x5=[],_0xf598x9=0;_0xf598x9< _0xf598x2[_0xff99[67]];_0xf598x9++){null!= _0xf598x2[_0xf598x9]?_0xf598x5[_0xff99[207]](this[_0xff99[1979]](_0xf598x2[_0xf598x9],_0xf598x4,_0xf598x3)):_0xf598x5[_0xff99[207]](null)};for(_0xf598x9= 0;_0xf598x9< _0xf598x5[_0xff99[67]];_0xf598x9++){null!= _0xf598x5[_0xf598x9]&& this[_0xff99[1980]](_0xf598x5[_0xf598x9],_0xf598x2[_0xf598x9],_0xf598x4)};return _0xf598x5};mxGraphModel[_0xff99[202]][_0xff99[1979]]= function(_0xf598x2,_0xf598x3,_0xf598x4){var _0xf598x5=this[_0xff99[1981]](_0xf598x2);_0xf598x3[mxObjectIdentity[_0xff99[203]](_0xf598x2)]= _0xf598x5;if(_0xf598x4){_0xf598x4= this[_0xff99[262]](_0xf598x2);for(var _0xf598x9=0;_0xf598x9< _0xf598x4;_0xf598x9++){var _0xf598xa=this[_0xff99[1979]](this[_0xff99[263]](_0xf598x2,_0xf598x9),_0xf598x3,!0);_0xf598x5[_0xff99[1937]](_0xf598xa)}};return _0xf598x5};mxGraphModel[_0xff99[202]][_0xff99[1981]]= function(_0xf598x2){return _0xf598x2[_0xff99[238]]()};mxGraphModel[_0xff99[202]][_0xff99[1980]]= function(_0xf598x2,_0xf598x3,_0xf598x4){var _0xf598x5=this[_0xff99[1709]](_0xf598x3,!0);null!= _0xf598x5&& (_0xf598x5= _0xf598x4[mxObjectIdentity[_0xff99[203]](_0xf598x5)],null!= _0xf598x5&& _0xf598x5[_0xff99[1960]](_0xf598x2,!0));_0xf598x5= this[_0xff99[1709]](_0xf598x3,!1);null!= _0xf598x5&& (_0xf598x5= _0xf598x4[mxObjectIdentity[_0xff99[203]](_0xf598x5)],null!= _0xf598x5&& _0xf598x5[_0xff99[1960]](_0xf598x2,!1));for(var _0xf598x5=this[_0xff99[262]](_0xf598x2),_0xf598x9=0;_0xf598x9< _0xf598x5;_0xf598x9++){this[_0xff99[1980]](this[_0xff99[263]](_0xf598x2,_0xf598x9),this[_0xff99[263]](_0xf598x3,_0xf598x9),_0xf598x4)}};function mxRootChange(_0xf598x2,_0xf598x3){this[_0xff99[251]]= _0xf598x2;this[_0xff99[257]]= this[_0xff99[813]]= _0xf598x3}mxRootChange[_0xff99[202]][_0xff99[350]]= function(){this[_0xff99[813]]= this[_0xff99[257]];this[_0xff99[257]]= this[_0xff99[251]][_0xff99[1940]](this[_0xff99[257]])};function mxChildChange(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){this[_0xff99[251]]= _0xf598x2;this[_0xff99[257]]= this[_0xff99[1101]]= _0xf598x3;this[_0xff99[247]]= _0xf598x4;this[_0xff99[1982]]= this[_0xff99[1983]]= _0xf598x5}mxChildChange[_0xff99[202]][_0xff99[350]]= function(){var _0xf598x2=this[_0xff99[251]][_0xff99[1197]](this[_0xff99[247]]),_0xf598x3=null!= _0xf598x2?_0xf598x2[_0xff99[1738]](this[_0xff99[247]]):0;null== this[_0xff99[257]]&& this[_0xff99[807]](this[_0xff99[247]],!1);_0xf598x2= this[_0xff99[251]][_0xff99[1952]](this[_0xff99[247]],this[_0xff99[257]],this[_0xff99[1982]]);null!= this[_0xff99[257]]&& this[_0xff99[807]](this[_0xff99[247]],!0);this[_0xff99[1101]]= this[_0xff99[257]];this[_0xff99[257]]= _0xf598x2;this[_0xff99[1983]]= this[_0xff99[1982]];this[_0xff99[1982]]= _0xf598x3};mxChildChange[_0xff99[202]][_0xff99[807]]= function(_0xf598x2,_0xf598x3){_0xf598x3= null!= _0xf598x3?_0xf598x3:!0;var _0xf598x4=_0xf598x2[_0xff99[1709]](!0),_0xf598x5=_0xf598x2[_0xff99[1709]](!1);null!= _0xf598x4&& (_0xf598x3?this[_0xff99[251]][_0xff99[1959]](_0xf598x2,_0xf598x4,!0):this[_0xff99[251]][_0xff99[1959]](_0xf598x2,null,!0));null!= _0xf598x5&& (_0xf598x3?this[_0xff99[251]][_0xff99[1959]](_0xf598x2,_0xf598x5,!1):this[_0xff99[251]][_0xff99[1959]](_0xf598x2,null,!1));_0xf598x2[_0xff99[1957]](_0xf598x4,!0);_0xf598x2[_0xff99[1957]](_0xf598x5,!1);_0xf598x4= this[_0xff99[251]][_0xff99[262]](_0xf598x2);for(_0xf598x5= 0;_0xf598x5< _0xf598x4;_0xf598x5++){this[_0xff99[807]](this[_0xff99[251]][_0xff99[263]](_0xf598x2,_0xf598x5),_0xf598x3)}};function mxTerminalChange(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){this[_0xff99[251]]= _0xf598x2;this[_0xff99[246]]= _0xf598x3;this[_0xff99[257]]= this[_0xff99[1984]]= _0xf598x4;this[_0xff99[1097]]= _0xf598x5}mxTerminalChange[_0xff99[202]][_0xff99[350]]= function(){this[_0xff99[1984]]= this[_0xff99[257]];this[_0xff99[257]]= this[_0xff99[251]][_0xff99[1959]](this[_0xff99[246]],this[_0xff99[257]],this[_0xff99[1097]])};function mxValueChange(_0xf598x2,_0xf598x3,_0xf598x4){this[_0xff99[251]]= _0xf598x2;this[_0xff99[246]]= _0xf598x3;this[_0xff99[257]]= this[_0xff99[131]]= _0xf598x4}mxValueChange[_0xff99[202]][_0xff99[350]]= function(){this[_0xff99[131]]= this[_0xff99[257]];this[_0xff99[257]]= this[_0xff99[251]][_0xff99[1967]](this[_0xff99[246]],this[_0xff99[257]])};function mxStyleChange(_0xf598x2,_0xf598x3,_0xf598x4){this[_0xff99[251]]= _0xf598x2;this[_0xff99[246]]= _0xf598x3;this[_0xff99[257]]= this[_0xff99[124]]= _0xf598x4}mxStyleChange[_0xff99[202]][_0xff99[350]]= function(){this[_0xff99[124]]= this[_0xff99[257]];this[_0xff99[257]]= this[_0xff99[251]][_0xff99[1970]](this[_0xff99[246]],this[_0xff99[257]])};function mxGeometryChange(_0xf598x2,_0xf598x3,_0xf598x4){this[_0xff99[251]]= _0xf598x2;this[_0xff99[246]]= _0xf598x3;this[_0xff99[257]]= this[_0xff99[256]]= _0xf598x4}mxGeometryChange[_0xff99[202]][_0xff99[350]]= function(){this[_0xff99[256]]= this[_0xff99[257]];this[_0xff99[257]]= this[_0xff99[251]][_0xff99[1969]](this[_0xff99[246]],this[_0xff99[257]])};function mxCollapseChange(_0xf598x2,_0xf598x3,_0xf598x4){this[_0xff99[251]]= _0xf598x2;this[_0xff99[246]]= _0xf598x3;this[_0xff99[257]]= this[_0xff99[1985]]= _0xf598x4}mxCollapseChange[_0xff99[202]][_0xff99[350]]= function(){this[_0xff99[1985]]= this[_0xff99[257]];this[_0xff99[257]]= this[_0xff99[251]][_0xff99[1973]](this[_0xff99[246]],this[_0xff99[257]])};function mxVisibleChange(_0xf598x2,_0xf598x3,_0xf598x4){this[_0xff99[251]]= _0xf598x2;this[_0xff99[246]]= _0xf598x3;this[_0xff99[257]]= this[_0xff99[189]]= _0xf598x4}mxVisibleChange[_0xff99[202]][_0xff99[350]]= function(){this[_0xff99[189]]= this[_0xff99[257]];this[_0xff99[257]]= this[_0xff99[251]][_0xff99[1974]](this[_0xff99[246]],this[_0xff99[257]])};function mxCellAttributeChange(_0xf598x2,_0xf598x3,_0xf598x4){this[_0xff99[246]]= _0xf598x2;this[_0xff99[1986]]= _0xf598x3;this[_0xff99[257]]= this[_0xff99[131]]= _0xf598x4}mxCellAttributeChange[_0xff99[202]][_0xff99[350]]= function(){var _0xf598x2=this[_0xff99[246]][_0xff99[284]](this[_0xff99[1986]]);null== this[_0xff99[257]]?this[_0xff99[246]][_0xff99[131]][_0xff99[1390]](this[_0xff99[1986]]):this[_0xff99[246]][_0xff99[57]](this[_0xff99[1986]],this[_0xff99[257]]);this[_0xff99[257]]= _0xf598x2};function mxCell(_0xf598x2,_0xf598x3,_0xf598x4){this[_0xff99[131]]= _0xf598x2;this[_0xff99[1724]](_0xf598x3);this[_0xff99[475]](_0xf598x4);if(null!= this[_0xff99[1987]]){this[_0xff99[1987]]()}}mxCell[_0xff99[202]][_0xff99[1363]]= null;mxCell[_0xff99[202]][_0xff99[131]]= null;mxCell[_0xff99[202]][_0xff99[256]]= null;mxCell[_0xff99[202]][_0xff99[124]]= null;mxCell[_0xff99[202]][_0xff99[1988]]= !1;mxCell[_0xff99[202]][_0xff99[1989]]= !1;mxCell[_0xff99[202]][_0xff99[1990]]= !0;mxCell[_0xff99[202]][_0xff99[189]]= !0;mxCell[_0xff99[202]][_0xff99[1985]]= !1;mxCell[_0xff99[202]][_0xff99[1101]]= null;mxCell[_0xff99[202]][_0xff99[1097]]= null;mxCell[_0xff99[202]][_0xff99[772]]= null;mxCell[_0xff99[202]][_0xff99[1954]]= null;mxCell[_0xff99[202]][_0xff99[1842]]= null;mxCell[_0xff99[202]][_0xff99[1991]]= _0xff99[1992][_0xff99[224]](_0xff99[185]);mxCell[_0xff99[202]][_0xff99[1103]]= function(){return this[_0xff99[1363]]};mxCell[_0xff99[202]][_0xff99[1945]]= function(_0xf598x2){this[_0xff99[1363]]= _0xf598x2};mxCell[_0xff99[202]][_0xff99[433]]= function(){return this[_0xff99[131]]};mxCell[_0xff99[202]][_0xff99[1966]]= function(_0xf598x2){this[_0xff99[131]]= _0xf598x2};mxCell[_0xff99[202]][_0xff99[1968]]= function(_0xf598x2){var _0xf598x3=this[_0xff99[433]]();this[_0xff99[1966]](_0xf598x2);return _0xf598x3};mxCell[_0xff99[202]][_0xff99[1721]]= function(){return this[_0xff99[256]]};mxCell[_0xff99[202]][_0xff99[1724]]= function(_0xf598x2){this[_0xff99[256]]= _0xf598x2};mxCell[_0xff99[202]][_0xff99[474]]= function(){return this[_0xff99[124]]};mxCell[_0xff99[202]][_0xff99[475]]= function(_0xf598x2){this[_0xff99[124]]= _0xf598x2};mxCell[_0xff99[202]][_0xff99[1193]]= function(){return this[_0xff99[1988]]};mxCell[_0xff99[202]][_0xff99[1993]]= function(_0xf598x2){this[_0xff99[1988]]= _0xf598x2};mxCell[_0xff99[202]][_0xff99[250]]= function(){return this[_0xff99[1989]]};mxCell[_0xff99[202]][_0xff99[1994]]= function(_0xf598x2){this[_0xff99[1989]]= _0xf598x2};mxCell[_0xff99[202]][_0xff99[1965]]= function(){return this[_0xff99[1990]]};mxCell[_0xff99[202]][_0xff99[1995]]= function(_0xf598x2){this[_0xff99[1990]]= _0xf598x2};mxCell[_0xff99[202]][_0xff99[174]]= function(){return this[_0xff99[189]]};mxCell[_0xff99[202]][_0xff99[175]]= function(_0xf598x2){this[_0xff99[189]]= _0xf598x2};mxCell[_0xff99[202]][_0xff99[1971]]= function(){return this[_0xff99[1985]]};mxCell[_0xff99[202]][_0xff99[1972]]= function(_0xf598x2){this[_0xff99[1985]]= _0xf598x2};mxCell[_0xff99[202]][_0xff99[1197]]= function(){return this[_0xff99[1101]]};mxCell[_0xff99[202]][_0xff99[1996]]= function(_0xf598x2){this[_0xff99[1101]]= _0xf598x2};mxCell[_0xff99[202]][_0xff99[1709]]= function(_0xf598x2){return _0xf598x2?this[_0xff99[1097]]:this[_0xff99[772]]};mxCell[_0xff99[202]][_0xff99[1957]]= function(_0xf598x2,_0xf598x3){_0xf598x3?this[_0xff99[1097]]= _0xf598x2:this[_0xff99[772]]= _0xf598x2;return _0xf598x2};mxCell[_0xff99[202]][_0xff99[262]]= function(){return null== this[_0xff99[1954]]?0:this[_0xff99[1954]][_0xff99[67]]};mxCell[_0xff99[202]][_0xff99[1738]]= function(_0xf598x2){return mxUtils[_0xff99[2]](this[_0xff99[1954]],_0xf598x2)};mxCell[_0xff99[202]][_0xff99[263]]= function(_0xf598x2){return null== this[_0xff99[1954]]?null:this[_0xff99[1954]][_0xf598x2]};mxCell[_0xff99[202]][_0xff99[1937]]= function(_0xf598x2,_0xf598x3){null!= _0xf598x2&& (null== _0xf598x3&& (_0xf598x3= this[_0xff99[262]](),_0xf598x2[_0xff99[1197]]()== this&& _0xf598x3--),_0xf598x2[_0xff99[1997]](),_0xf598x2[_0xff99[1996]](this),null== this[_0xff99[1954]]?(this[_0xff99[1954]]= [],this[_0xff99[1954]][_0xff99[207]](_0xf598x2)):this[_0xff99[1954]][_0xff99[300]](_0xf598x3,0,_0xf598x2));return _0xf598x2};mxCell[_0xff99[202]][_0xff99[205]]= function(_0xf598x2){var _0xf598x3=null;null!= this[_0xff99[1954]]&& 0<= _0xf598x2&& (_0xf598x3= this[_0xff99[263]](_0xf598x2),null!= _0xf598x3&& (this[_0xff99[1954]][_0xff99[300]](_0xf598x2,1),_0xf598x3[_0xff99[1996]](null)));return _0xf598x3};mxCell[_0xff99[202]][_0xff99[1997]]= function(){if(null!= this[_0xff99[1101]]){var _0xf598x2=this[_0xff99[1101]][_0xff99[1738]](this);this[_0xff99[1101]][_0xff99[205]](_0xf598x2)}};mxCell[_0xff99[202]][_0xff99[1707]]= function(){return null== this[_0xff99[1842]]?0:this[_0xff99[1842]][_0xff99[67]]};mxCell[_0xff99[202]][_0xff99[1998]]= function(_0xf598x2){return mxUtils[_0xff99[2]](this[_0xff99[1842]],_0xf598x2)};mxCell[_0xff99[202]][_0xff99[1708]]= function(_0xf598x2){return null== this[_0xff99[1842]]?null:this[_0xff99[1842]][_0xf598x2]};mxCell[_0xff99[202]][_0xff99[1960]]= function(_0xf598x2,_0xf598x3){if(null!= _0xf598x2&& (_0xf598x2[_0xff99[1999]](_0xf598x3),_0xf598x2[_0xff99[1957]](this,_0xf598x3),null== this[_0xff99[1842]]|| _0xf598x2[_0xff99[1709]](!_0xf598x3) != this|| 0> mxUtils[_0xff99[2]](this[_0xff99[1842]],_0xf598x2))){null== this[_0xff99[1842]]&& (this[_0xff99[1842]]= []),this[_0xff99[1842]][_0xff99[207]](_0xf598x2)};return _0xf598x2};mxCell[_0xff99[202]][_0xff99[1961]]= function(_0xf598x2,_0xf598x3){if(null!= _0xf598x2){if(_0xf598x2[_0xff99[1709]](!_0xf598x3) != this && null!= this[_0xff99[1842]]){var _0xf598x4=this[_0xff99[1998]](_0xf598x2);0<= _0xf598x4&& this[_0xff99[1842]][_0xff99[300]](_0xf598x4,1)};_0xf598x2[_0xff99[1957]](null,_0xf598x3)};return _0xf598x2};mxCell[_0xff99[202]][_0xff99[1999]]= function(_0xf598x2){var _0xf598x3=this[_0xff99[1709]](_0xf598x2);null!= _0xf598x3&& _0xf598x3[_0xff99[1961]](this,_0xf598x2)};mxCell[_0xff99[202]][_0xff99[284]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=this[_0xff99[433]]();return (null!= _0xf598x4&& _0xf598x4[_0xff99[288]]== mxConstants[_0xff99[289]]?_0xf598x4[_0xff99[284]](_0xf598x2):null)|| _0xf598x3};mxCell[_0xff99[202]][_0xff99[57]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=this[_0xff99[433]]();null!= _0xf598x4&& _0xf598x4[_0xff99[288]]== mxConstants[_0xff99[289]]&& _0xf598x4[_0xff99[57]](_0xf598x2,_0xf598x3)};mxCell[_0xff99[202]][_0xff99[238]]= function(){var _0xf598x2=mxUtils[_0xff99[238]](this,this[_0xff99[1991]]);_0xf598x2[_0xff99[1966]](this[_0xff99[2000]]());return _0xf598x2};mxCell[_0xff99[202]][_0xff99[2000]]= function(){var _0xf598x2=this[_0xff99[433]]();null!= _0xf598x2&& (_0xff99[279]== typeof _0xf598x2[_0xff99[238]]?_0xf598x2= _0xf598x2[_0xff99[238]]():isNaN(_0xf598x2[_0xff99[288]])|| (_0xf598x2= _0xf598x2[_0xff99[511]](!0)));return _0xf598x2};function mxGeometry(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){mxRectangle[_0xff99[239]](this,_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5)}mxGeometry[_0xff99[202]]= new mxRectangle;mxGeometry[_0xff99[202]][_0xff99[196]]= mxGeometry;mxGeometry[_0xff99[202]][_0xff99[2001]]= !0;mxGeometry[_0xff99[202]][_0xff99[2002]]= null;mxGeometry[_0xff99[202]][_0xff99[2003]]= null;mxGeometry[_0xff99[202]][_0xff99[2004]]= null;mxGeometry[_0xff99[202]][_0xff99[1525]]= null;mxGeometry[_0xff99[202]][_0xff99[1368]]= null;mxGeometry[_0xff99[202]][_0xff99[1500]]= !1;mxGeometry[_0xff99[202]][_0xff99[2005]]= function(){if(null!= this[_0xff99[2002]]){var _0xf598x2= new mxRectangle(this[_0xff99[235]],this[_0xff99[236]],this[_0xff99[117]],this[_0xff99[119]]);this[_0xff99[235]]= this[_0xff99[2002]][_0xff99[235]];this[_0xff99[236]]= this[_0xff99[2002]][_0xff99[236]];this[_0xff99[117]]= this[_0xff99[2002]][_0xff99[117]];this[_0xff99[119]]= this[_0xff99[2002]][_0xff99[119]];this[_0xff99[2002]]= _0xf598x2}};mxGeometry[_0xff99[202]][_0xff99[2006]]= function(_0xf598x2){return _0xf598x2?this[_0xff99[2003]]:this[_0xff99[2004]]};mxGeometry[_0xff99[202]][_0xff99[2007]]= function(_0xf598x2,_0xf598x3){_0xf598x3?this[_0xff99[2003]]= _0xf598x2:this[_0xff99[2004]]= _0xf598x2;return _0xf598x2};mxGeometry[_0xff99[202]][_0xff99[513]]= function(_0xf598x2,_0xf598x3){this[_0xff99[238]]();this[_0xff99[1500]]|| (this[_0xff99[235]]+= _0xf598x2,this[_0xff99[236]]+= _0xf598x3);null!= this[_0xff99[2003]]&& (this[_0xff99[2003]][_0xff99[235]]+= _0xf598x2,this[_0xff99[2003]][_0xff99[236]]+= _0xf598x3);null!= this[_0xff99[2004]]&& (this[_0xff99[2004]][_0xff99[235]]+= _0xf598x2,this[_0xff99[2004]][_0xff99[236]]+= _0xf598x3);if(this[_0xff99[2001]]&& null!= this[_0xff99[1525]]){for(var _0xf598x4=this[_0xff99[1525]][_0xff99[67]],_0xf598x5=0;_0xf598x5< _0xf598x4;_0xf598x5++){var _0xf598x9=this[_0xff99[1525]][_0xf598x5];null!= _0xf598x9&& (_0xf598x9[_0xff99[235]]+= _0xf598x2,_0xf598x9[_0xff99[236]]+= _0xf598x3)}}};var mxCellPath={PATH_SEPARATOR:_0xff99[87],create:function(_0xf598x2){var _0xf598x3=_0xff99[110];if(null!= _0xf598x2){for(var _0xf598x4=_0xf598x2[_0xff99[1197]]();null!= _0xf598x4;){_0xf598x3= _0xf598x4[_0xff99[1738]](_0xf598x2)+ mxCellPath[_0xff99[1950]]+ _0xf598x3,_0xf598x2= _0xf598x4,_0xf598x4= _0xf598x2[_0xff99[1197]]()}};_0xf598x2= _0xf598x3[_0xff99[67]];1< _0xf598x2&& (_0xf598x3= _0xf598x3[_0xff99[85]](0,_0xf598x2- 1));return _0xf598x3},getParentPath:function(_0xf598x2){if(null!= _0xf598x2){var _0xf598x3=_0xf598x2[_0xff99[1122]](mxCellPath.PATH_SEPARATOR);if(0<= _0xf598x3){return _0xf598x2[_0xff99[85]](0,_0xf598x3)};if(0< _0xf598x2[_0xff99[67]]){return _0xff99[110]}};return null},resolve:function(_0xf598x2,_0xf598x3){var _0xf598x4=_0xf598x2;if(null!= _0xf598x3){for(var _0xf598x5=_0xf598x3[_0xff99[224]](mxCellPath.PATH_SEPARATOR),_0xf598x9=0;_0xf598x9< _0xf598x5[_0xff99[67]];_0xf598x9++){_0xf598x4= _0xf598x4[_0xff99[263]](parseInt(_0xf598x5[_0xf598x9]))}};return _0xf598x4},compare:function(_0xf598x2,_0xf598x3){for(var _0xf598x4=Math[_0xff99[243]](_0xf598x2[_0xff99[67]],_0xf598x3[_0xff99[67]]),_0xf598x5=0,_0xf598x9=0;_0xf598x9< _0xf598x4;_0xf598x9++){if(_0xf598x2[_0xf598x9]!= _0xf598x3[_0xf598x9]){0== _0xf598x2[_0xf598x9][_0xff99[67]]|| 0== _0xf598x3[_0xf598x9][_0xff99[67]]?_0xf598x5= _0xf598x2[_0xf598x9]== _0xf598x3[_0xf598x9]?0:_0xf598x2[_0xf598x9]> _0xf598x3[_0xf598x9]?1:-1:(_0xf598x4= parseInt(_0xf598x2[_0xf598x9]),_0xf598x9= parseInt(_0xf598x3[_0xf598x9]),_0xf598x5= _0xf598x4== _0xf598x9?0:_0xf598x4> _0xf598x9?1:-1);break}};0== _0xf598x5&& (_0xf598x4= _0xf598x2[_0xff99[67]],_0xf598x9= _0xf598x3[_0xff99[67]],_0xf598x4!= _0xf598x9&& (_0xf598x5= _0xf598x4> _0xf598x9?1:-1));return _0xf598x5}},mxPerimeter={RectanglePerimeter:function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){_0xf598x3= _0xf598x2[_0xff99[241]]();var _0xf598x9=_0xf598x2[_0xff99[242]](),_0xf598xa=Math[_0xff99[429]](_0xf598x4[_0xff99[236]]- _0xf598x9,_0xf598x4[_0xff99[235]]- _0xf598x3),_0xf598x12= new mxPoint(0,0),_0xf598x13=Math[_0xff99[424]],_0xf598x14=Math[_0xff99[424]]/ 2- _0xf598xa,_0xf598x15=Math[_0xff99[429]](_0xf598x2[_0xff99[119]],_0xf598x2[_0xff99[117]]);_0xf598xa< -_0xf598x13+ _0xf598x15|| _0xf598xa> _0xf598x13- _0xf598x15?(_0xf598x12[_0xff99[235]]= _0xf598x2[_0xff99[235]],_0xf598x12[_0xff99[236]]= _0xf598x9- _0xf598x2[_0xff99[117]]* Math[_0xff99[2008]](_0xf598xa)/ 2):_0xf598xa< -_0xf598x15?(_0xf598x12[_0xff99[236]]= _0xf598x2[_0xff99[236]],_0xf598x12[_0xff99[235]]= _0xf598x3- _0xf598x2[_0xff99[119]]* Math[_0xff99[2008]](_0xf598x14)/ 2):_0xf598xa< _0xf598x15?(_0xf598x12[_0xff99[235]]= _0xf598x2[_0xff99[235]]+ _0xf598x2[_0xff99[117]],_0xf598x12[_0xff99[236]]= _0xf598x9+ _0xf598x2[_0xff99[117]]* Math[_0xff99[2008]](_0xf598xa)/ 2):(_0xf598x12[_0xff99[236]]= _0xf598x2[_0xff99[236]]+ _0xf598x2[_0xff99[119]],_0xf598x12[_0xff99[235]]= _0xf598x3+ _0xf598x2[_0xff99[119]]* Math[_0xff99[2008]](_0xf598x14)/ 2);_0xf598x5&& (_0xf598x4[_0xff99[235]]>= _0xf598x2[_0xff99[235]]&& _0xf598x4[_0xff99[235]]<= _0xf598x2[_0xff99[235]]+ _0xf598x2[_0xff99[117]]?_0xf598x12[_0xff99[235]]= _0xf598x4[_0xff99[235]]:_0xf598x4[_0xff99[236]]>= _0xf598x2[_0xff99[236]]&& _0xf598x4[_0xff99[236]]<= _0xf598x2[_0xff99[236]]+ _0xf598x2[_0xff99[119]]&& (_0xf598x12[_0xff99[236]]= _0xf598x4[_0xff99[236]]),_0xf598x4[_0xff99[235]]< _0xf598x2[_0xff99[235]]?_0xf598x12[_0xff99[235]]= _0xf598x2[_0xff99[235]]:_0xf598x4[_0xff99[235]]> _0xf598x2[_0xff99[235]]+ _0xf598x2[_0xff99[117]]&& (_0xf598x12[_0xff99[235]]= _0xf598x2[_0xff99[235]]+ _0xf598x2[_0xff99[117]]),_0xf598x4[_0xff99[236]]< _0xf598x2[_0xff99[236]]?_0xf598x12[_0xff99[236]]= _0xf598x2[_0xff99[236]]:_0xf598x4[_0xff99[236]]> _0xf598x2[_0xff99[236]]+ _0xf598x2[_0xff99[119]]&& (_0xf598x12[_0xff99[236]]= _0xf598x2[_0xff99[236]]+ _0xf598x2[_0xff99[119]]));return _0xf598x12},EllipsePerimeter:function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){var _0xf598x9=_0xf598x2[_0xff99[235]],_0xf598xa=_0xf598x2[_0xff99[236]],_0xf598x12=_0xf598x2[_0xff99[117]]/ 2,_0xf598x13=_0xf598x2[_0xff99[119]]/ 2,_0xf598x14=_0xf598x9+ _0xf598x12,_0xf598x15=_0xf598xa+ _0xf598x13;_0xf598x3= _0xf598x4[_0xff99[235]];_0xf598x4= _0xf598x4[_0xff99[236]];var _0xf598x16=parseInt(_0xf598x3- _0xf598x14),_0xf598x17=parseInt(_0xf598x4- _0xf598x15);if(0== _0xf598x16&& 0!= _0xf598x17){return new mxPoint(_0xf598x14,_0xf598x15+ _0xf598x13* _0xf598x17/ Math[_0xff99[425]](_0xf598x17))};if(0== _0xf598x16&& 0== _0xf598x17){return new mxPoint(_0xf598x3,_0xf598x4)};if(_0xf598x5){if(_0xf598x4>= _0xf598xa&& _0xf598x4<= _0xf598xa+ _0xf598x2[_0xff99[119]]){return _0xf598x2= _0xf598x4- _0xf598x15,_0xf598x2= Math[_0xff99[428]](_0xf598x12* _0xf598x12* (1- _0xf598x2* _0xf598x2/ (_0xf598x13* _0xf598x13)))|| 0,_0xf598x3<= _0xf598x9&& (_0xf598x2= -_0xf598x2), new mxPoint(_0xf598x14+ _0xf598x2,_0xf598x4)};if(_0xf598x3>= _0xf598x9&& _0xf598x3<= _0xf598x9+ _0xf598x2[_0xff99[117]]){return _0xf598x2= _0xf598x3- _0xf598x14,_0xf598x2= Math[_0xff99[428]](_0xf598x13* _0xf598x13* (1- _0xf598x2* _0xf598x2/ (_0xf598x12* _0xf598x12)))|| 0,_0xf598x4<= _0xf598xa&& (_0xf598x2= -_0xf598x2), new mxPoint(_0xf598x3,_0xf598x15+ _0xf598x2)}};_0xf598x9= _0xf598x17/ _0xf598x16;_0xf598x15-= _0xf598x9* _0xf598x14;_0xf598xa= _0xf598x12* _0xf598x12* _0xf598x9* _0xf598x9+ _0xf598x13* _0xf598x13;_0xf598x2= -2* _0xf598x14 * _0xf598xa;_0xf598x13= Math[_0xff99[428]](_0xf598x2* _0xf598x2- 4* _0xf598xa* (_0xf598x12* _0xf598x12* _0xf598x9* _0xf598x9* _0xf598x14* _0xf598x14+ _0xf598x13* _0xf598x13* _0xf598x14* _0xf598x14- _0xf598x12* _0xf598x12* _0xf598x13* _0xf598x13));_0xf598x12= (-_0xf598x2+ _0xf598x13) / (2* _0xf598xa);_0xf598x13= (-_0xf598x2- _0xf598x13) / (2* _0xf598xa);_0xf598x14= _0xf598x9* _0xf598x12+ _0xf598x15;_0xf598x15= _0xf598x9* _0xf598x13+ _0xf598x15;_0xf598x9= Math[_0xff99[428]](Math[_0xff99[2009]](_0xf598x12- _0xf598x3,2)+ Math[_0xff99[2009]](_0xf598x14- _0xf598x4,2));_0xf598x3= Math[_0xff99[428]](Math[_0xff99[2009]](_0xf598x13- _0xf598x3,2)+ Math[_0xff99[2009]](_0xf598x15- _0xf598x4,2));_0xf598xa= _0xf598x4= 0;_0xf598x9< _0xf598x3?(_0xf598x4= _0xf598x12,_0xf598xa= _0xf598x14):(_0xf598x4= _0xf598x13,_0xf598xa= _0xf598x15);return new mxPoint(_0xf598x4,_0xf598xa)},RhombusPerimeter:function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){_0xf598x3= _0xf598x2[_0xff99[235]];var _0xf598x9=_0xf598x2[_0xff99[236]],_0xf598xa=_0xf598x2[_0xff99[117]];_0xf598x2= _0xf598x2[_0xff99[119]];var _0xf598x12=_0xf598x3+ _0xf598xa/ 2,_0xf598x13=_0xf598x9+ _0xf598x2/ 2,_0xf598x14=_0xf598x4[_0xff99[235]];_0xf598x4= _0xf598x4[_0xff99[236]];if(_0xf598x12== _0xf598x14){return _0xf598x13> _0xf598x4? new mxPoint(_0xf598x12,_0xf598x9): new mxPoint(_0xf598x12,_0xf598x9+ _0xf598x2)};if(_0xf598x13== _0xf598x4){return _0xf598x12> _0xf598x14? new mxPoint(_0xf598x3,_0xf598x13): new mxPoint(_0xf598x3+ _0xf598xa,_0xf598x13)};var _0xf598x15=_0xf598x12,_0xf598x16=_0xf598x13;_0xf598x5&& (_0xf598x14>= _0xf598x3&& _0xf598x14<= _0xf598x3+ _0xf598xa?_0xf598x15= _0xf598x14:_0xf598x4>= _0xf598x9&& _0xf598x4<= _0xf598x9+ _0xf598x2&& (_0xf598x16= _0xf598x4));return _0xf598x14< _0xf598x12?_0xf598x4< _0xf598x13?mxUtils[_0xff99[2010]](_0xf598x14,_0xf598x4,_0xf598x15,_0xf598x16,_0xf598x12,_0xf598x9,_0xf598x3,_0xf598x13):mxUtils[_0xff99[2010]](_0xf598x14,_0xf598x4,_0xf598x15,_0xf598x16,_0xf598x12,_0xf598x9+ _0xf598x2,_0xf598x3,_0xf598x13):_0xf598x4< _0xf598x13?mxUtils[_0xff99[2010]](_0xf598x14,_0xf598x4,_0xf598x15,_0xf598x16,_0xf598x12,_0xf598x9,_0xf598x3+ _0xf598xa,_0xf598x13):mxUtils[_0xff99[2010]](_0xf598x14,_0xf598x4,_0xf598x15,_0xf598x16,_0xf598x12,_0xf598x9+ _0xf598x2,_0xf598x3+ _0xf598xa,_0xf598x13)},TrianglePerimeter:function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){_0xf598x3= null!= _0xf598x3?_0xf598x3[_0xff99[124]][mxConstants[_0xff99[2011]]]:null;var _0xf598x9=_0xf598x3== mxConstants[_0xff99[1358]]|| _0xf598x3== mxConstants[_0xff99[1354]],_0xf598xa=_0xf598x2[_0xff99[235]],_0xf598x12=_0xf598x2[_0xff99[236]],_0xf598x13=_0xf598x2[_0xff99[117]];_0xf598x2= _0xf598x2[_0xff99[119]];var _0xf598x14=_0xf598xa+ _0xf598x13/ 2,_0xf598x15=_0xf598x12+ _0xf598x2/ 2,_0xf598x16= new mxPoint(_0xf598xa,_0xf598x12),_0xf598x17= new mxPoint(_0xf598xa+ _0xf598x13,_0xf598x15),_0xf598x18= new mxPoint(_0xf598xa,_0xf598x12+ _0xf598x2);_0xf598x3== mxConstants[_0xff99[1358]]?(_0xf598x16= _0xf598x18,_0xf598x17= new mxPoint(_0xf598x14,_0xf598x12),_0xf598x18= new mxPoint(_0xf598xa+ _0xf598x13,_0xf598x12+ _0xf598x2)):_0xf598x3== mxConstants[_0xff99[1354]]?(_0xf598x17= new mxPoint(_0xf598x14,_0xf598x12+ _0xf598x2),_0xf598x18= new mxPoint(_0xf598xa+ _0xf598x13,_0xf598x12)):_0xf598x3== mxConstants[_0xff99[1359]]&& (_0xf598x16= new mxPoint(_0xf598xa+ _0xf598x13,_0xf598x12),_0xf598x17= new mxPoint(_0xf598xa,_0xf598x15),_0xf598x18= new mxPoint(_0xf598xa+ _0xf598x13,_0xf598x12+ _0xf598x2));var _0xf598x19=_0xf598x4[_0xff99[235]]- _0xf598x14,_0xf598x1a=_0xf598x4[_0xff99[236]]- _0xf598x15,_0xf598x19=_0xf598x9?Math[_0xff99[429]](_0xf598x19,_0xf598x1a):Math[_0xff99[429]](_0xf598x1a,_0xf598x19),_0xf598x1b=_0xf598x9?Math[_0xff99[429]](_0xf598x13,_0xf598x2):Math[_0xff99[429]](_0xf598x2,_0xf598x13),_0xf598x1a=!1,_0xf598x1a=_0xf598x3== mxConstants[_0xff99[1358]]|| _0xf598x3== mxConstants[_0xff99[1359]]?_0xf598x19> -_0xf598x1b&& _0xf598x19< _0xf598x1b:_0xf598x19< -Math[_0xff99[424]]+ _0xf598x1b|| _0xf598x19> Math[_0xff99[424]]- _0xf598x1b,_0xf598x1b=null;_0xf598x1a?_0xf598x1b= _0xf598x5&& (_0xf598x9&& _0xf598x4[_0xff99[235]]>= _0xf598x16[_0xff99[235]]&& _0xf598x4[_0xff99[235]]<= _0xf598x18[_0xff99[235]]|| !_0xf598x9&& _0xf598x4[_0xff99[236]]>= _0xf598x16[_0xff99[236]] && _0xf598x4[_0xff99[236]]<= _0xf598x18[_0xff99[236]])?_0xf598x9? new mxPoint(_0xf598x4[_0xff99[235]],_0xf598x16[_0xff99[236]]): new mxPoint(_0xf598x16[_0xff99[235]],_0xf598x4[_0xff99[236]]):_0xf598x3== mxConstants[_0xff99[1358]]? new mxPoint(_0xf598xa+ _0xf598x13/ 2+ _0xf598x2* Math[_0xff99[2008]](_0xf598x19)/ 2,_0xf598x12+ _0xf598x2):_0xf598x3== mxConstants[_0xff99[1354]]? new mxPoint(_0xf598xa+ _0xf598x13/ 2- _0xf598x2* Math[_0xff99[2008]](_0xf598x19)/ 2,_0xf598x12):_0xf598x3== mxConstants[_0xff99[1359]]? new mxPoint(_0xf598xa+ _0xf598x13,_0xf598x12+ _0xf598x2/ 2+ _0xf598x13* Math[_0xff99[2008]](_0xf598x19)/ 2): new mxPoint(_0xf598xa,_0xf598x12+ _0xf598x2/ 2- _0xf598x13* Math[_0xff99[2008]](_0xf598x19)/ 2):(_0xf598x5&& (_0xf598x5= new mxPoint(_0xf598x14,_0xf598x15),_0xf598x4[_0xff99[236]]>= _0xf598x12&& _0xf598x4[_0xff99[236]]<= _0xf598x12+ _0xf598x2?(_0xf598x5[_0xff99[235]]= _0xf598x9?_0xf598x14:_0xf598x3== mxConstants[_0xff99[1359]]?_0xf598xa+ _0xf598x13:_0xf598xa,_0xf598x5[_0xff99[236]]= _0xf598x4[_0xff99[236]]):_0xf598x4[_0xff99[235]]>= _0xf598xa&& _0xf598x4[_0xff99[235]]<= _0xf598xa+ _0xf598x13&& (_0xf598x5[_0xff99[235]]= _0xf598x4[_0xff99[235]],_0xf598x5[_0xff99[236]]= !_0xf598x9?_0xf598x15:_0xf598x3== mxConstants[_0xff99[1358]]?_0xf598x12+ _0xf598x2:_0xf598x12),_0xf598x14= _0xf598x5[_0xff99[235]],_0xf598x15= _0xf598x5[_0xff99[236]]),_0xf598x1b= _0xf598x9&& _0xf598x4[_0xff99[235]]<= _0xf598xa+ _0xf598x13/ 2|| !_0xf598x9&& _0xf598x4[_0xff99[236]]<= _0xf598x12+ _0xf598x2/ 2?mxUtils[_0xff99[2010]](_0xf598x4[_0xff99[235]],_0xf598x4[_0xff99[236]],_0xf598x14,_0xf598x15,_0xf598x16[_0xff99[235]],_0xf598x16[_0xff99[236]],_0xf598x17[_0xff99[235]],_0xf598x17[_0xff99[236]]):mxUtils[_0xff99[2010]](_0xf598x4[_0xff99[235]],_0xf598x4[_0xff99[236]],_0xf598x14,_0xf598x15,_0xf598x17[_0xff99[235]],_0xf598x17[_0xff99[236]],_0xf598x18[_0xff99[235]],_0xf598x18[_0xff99[236]]));null== _0xf598x1b&& (_0xf598x1b= new mxPoint(_0xf598x14,_0xf598x15));return _0xf598x1b}};function mxPrintPreview(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa,_0xf598x12,_0xf598x13,_0xf598x14){this[_0xff99[1179]]= _0xf598x2;this[_0xff99[255]]= null!= _0xf598x3?_0xf598x3:1/ _0xf598x2[_0xff99[2012]];this[_0xff99[467]]= null!= _0xf598x5?_0xf598x5:0;this[_0xff99[2013]]= null!= _0xf598x4?_0xf598x4:_0xf598x2[_0xff99[2013]];this[_0xff99[924]]= null!= _0xf598x13?_0xf598x13:_0xff99[2014];this[_0xff99[1732]]= null!= _0xf598x9?_0xf598x9:0;this[_0xff99[1733]]= null!= _0xf598xa?_0xf598xa:0;this[_0xff99[1630]]= _0xf598x12;this[_0xff99[2015]]= null!= _0xf598x14?_0xf598x14:!0}mxPrintPreview[_0xff99[202]][_0xff99[1179]]= null;mxPrintPreview[_0xff99[202]][_0xff99[2013]]= null;mxPrintPreview[_0xff99[202]][_0xff99[255]]= null;mxPrintPreview[_0xff99[202]][_0xff99[467]]= 0;mxPrintPreview[_0xff99[202]][_0xff99[1732]]= 0;mxPrintPreview[_0xff99[202]][_0xff99[1733]]= 0;mxPrintPreview[_0xff99[202]][_0xff99[2016]]= !0;mxPrintPreview[_0xff99[202]][_0xff99[2017]]= !1;mxPrintPreview[_0xff99[202]][_0xff99[1630]]= null;mxPrintPreview[_0xff99[202]][_0xff99[924]]= null;mxPrintPreview[_0xff99[202]][_0xff99[2015]]= null;mxPrintPreview[_0xff99[202]][_0xff99[2018]]= null;mxPrintPreview[_0xff99[202]][_0xff99[2019]]= 0;mxPrintPreview[_0xff99[202]][_0xff99[2020]]= function(){return this[_0xff99[2018]]};mxPrintPreview[_0xff99[202]][_0xff99[2021]]= function(){var _0xf598x2=_0xff99[110];8== document[_0xff99[5]]&& (_0xf598x2= _0xff99[2022]);return _0xf598x2};mxPrintPreview[_0xff99[202]][_0xff99[392]]= function(_0xf598x2){var _0xf598x3=this[_0xff99[1179]][_0xff99[259]][_0xff99[2023]],_0xf598x4=null;try{this[_0xff99[2017]]&& (this[_0xff99[1179]][_0xff99[259]][_0xff99[2023]]= function(_0xf598x2,_0xf598x3){_0xf598x3[_0xff99[176]](_0xf598x2[_0xff99[441]][_0xff99[2024]]())});if(null== this[_0xff99[2018]]){this[_0xff99[2018]]= window[_0xff99[392]]();var _0xf598x5=this[_0xff99[2018]][_0xff99[395]],_0xf598x9=this[_0xff99[2021]]();null!= _0xf598x9&& 0< _0xf598x9[_0xff99[67]]&& _0xf598x5[_0xff99[171]](_0xf598x9);_0xf598x5[_0xff99[171]](_0xff99[528]);_0xf598x5[_0xff99[171]](_0xff99[531]);this[_0xff99[2025]](_0xf598x5,_0xf598x2);_0xf598x5[_0xff99[171]](_0xff99[533]);_0xf598x5[_0xff99[171]](_0xff99[2026]);mxClient[_0xff99[54]](_0xff99[94],mxClient[_0xff99[86]]+ _0xff99[95],_0xf598x5);mxClient[_0xff99[47]]&& (_0xf598x5[_0xff99[100]][_0xff99[99]](_0xff99[6],_0xff99[97]),_0xf598x5[_0xff99[100]][_0xff99[99]](_0xff99[7],_0xff99[101]),_0xf598x5[_0xff99[102]]()[_0xff99[103]]= _0xff99[104],mxClient[_0xff99[54]](_0xff99[94],mxClient[_0xff99[86]]+ _0xff99[105],_0xf598x5));var _0xf598xa=this[_0xff99[1179]][_0xff99[517]]()[_0xff99[238]](),_0xf598x12=this[_0xff99[1179]][_0xff99[249]]()[_0xff99[518]](),_0xf598x13=_0xf598x12/ this[_0xff99[255]],_0xf598x14=this[_0xff99[1179]][_0xff99[249]]()[_0xff99[512]]();this[_0xff99[2016]]|| (this[_0xff99[1732]]= -_0xf598x14[_0xff99[235]]* this[_0xff99[255]],this[_0xff99[1733]]= -_0xf598x14[_0xff99[236]]* this[_0xff99[255]],_0xf598xa[_0xff99[117]]+= _0xf598xa[_0xff99[235]],_0xf598xa[_0xff99[119]]+= _0xf598xa[_0xff99[236]],_0xf598xa[_0xff99[235]]= 0,this[_0xff99[467]]= _0xf598xa[_0xff99[236]]= 0);_0xf598xa[_0xff99[117]]/= _0xf598x13;_0xf598xa[_0xff99[119]]/= _0xf598x13;var _0xf598x15=this[_0xff99[2013]][_0xff99[117]]- 2* this[_0xff99[467]],_0xf598x16=this[_0xff99[2013]][_0xff99[119]]- 2* this[_0xff99[467]],_0xf598x17=Math[_0xff99[160]](1,Math[_0xff99[430]]((_0xf598xa[_0xff99[117]]+ this[_0xff99[1732]])/ _0xf598x15)),_0xf598x18=Math[_0xff99[160]](1,Math[_0xff99[430]]((_0xf598xa[_0xff99[119]]+ this[_0xff99[1733]])/ _0xf598x16));this[_0xff99[2019]]= _0xf598x17* _0xf598x18;var _0xf598x19=mxUtils[_0xff99[885]](this,function(){if(this[_0xff99[2015]]&& (1< _0xf598x18|| 1< _0xf598x17)){var _0xf598x2=this[_0xff99[2027]](_0xf598x18,_0xf598x17);_0xf598x5[_0xff99[112]][_0xff99[62]](_0xf598x2);if(mxClient[_0xff99[80]]){_0xf598x2[_0xff99[124]][_0xff99[491]]= _0xff99[492];var _0xf598x3=function(){_0xf598x2[_0xff99[124]][_0xff99[125]]= _0xf598x5[_0xff99[112]][_0xff99[190]]+ 10+ _0xff99[168]};mxEvent[_0xff99[169]](this[_0xff99[2018]],_0xff99[276],function(_0xf598x2){_0xf598x3()});mxEvent[_0xff99[169]](this[_0xff99[2018]],_0xff99[129],function(_0xf598x2){_0xf598x3()})}}});_0xf598x2= function(_0xf598x2,_0xf598x3){null!= this[_0xff99[1630]]&& (_0xf598x2[_0xff99[124]][_0xff99[1630]]= this[_0xff99[1630]],_0xf598x2[_0xff99[124]][_0xff99[465]]= _0xff99[1631],_0xf598x2[_0xff99[124]][_0xff99[1629]]= _0xff99[942]);_0xf598x2[_0xff99[124]][_0xff99[1537]]= _0xff99[1391];_0xf598x3&& (_0xf598x2[_0xff99[124]][_0xff99[2028]]= _0xff99[2029]);mxClient[_0xff99[80]]?(_0xf598x5[_0xff99[171]](_0xf598x2[_0xff99[342]]),_0xf598x2[_0xff99[265]][_0xff99[266]](_0xf598x2)):(_0xf598x2[_0xff99[265]][_0xff99[266]](_0xf598x2),_0xf598x5[_0xff99[112]][_0xff99[62]](_0xf598x2));if(_0xf598x3){var _0xf598x4=_0xf598x5[_0xff99[55]](_0xff99[1054]);_0xf598x4[_0xff99[926]]= _0xff99[2030];_0xf598x5[_0xff99[112]][_0xff99[62]](_0xf598x4)}};var _0xf598x1a=this[_0xff99[2031]](this[_0xff99[2013]][_0xff99[117]],this[_0xff99[2013]][_0xff99[119]]);if(null!= _0xf598x1a){for(var _0xf598x1b=0;_0xf598x1b< _0xf598x1a[_0xff99[67]];_0xf598x1b++){_0xf598x2(_0xf598x1a[_0xf598x1b],!0)}};for(var _0xf598x1c=this[_0xff99[2032]](this[_0xff99[2013]][_0xff99[117]],this[_0xff99[2013]][_0xff99[119]]),_0xf598x1b=0;_0xf598x1b< _0xf598x18;_0xf598x1b++){for(var _0xf598x1d=_0xf598x1b* _0xf598x16/ this[_0xff99[255]]- this[_0xff99[1733]]/ this[_0xff99[255]]+ (_0xf598xa[_0xff99[236]]- _0xf598x14[_0xff99[236]]* _0xf598x12)/ _0xf598x12,_0xf598x1a=0;_0xf598x1a< _0xf598x17;_0xf598x1a++){if(null== this[_0xff99[2018]]){return null};var _0xf598x1e=_0xf598x1a* _0xf598x15/ this[_0xff99[255]]- this[_0xff99[1732]]/ this[_0xff99[255]]+ (_0xf598xa[_0xff99[235]]- _0xf598x14[_0xff99[235]]* _0xf598x12)/ _0xf598x12,_0xf598x1f=_0xf598x1b* _0xf598x17+ _0xf598x1a+ 1,_0xf598x4=this[_0xff99[2034]](this[_0xff99[2013]][_0xff99[117]],this[_0xff99[2013]][_0xff99[119]],mxUtils[_0xff99[885]](this,function(_0xf598x2){this[_0xff99[2033]](-_0xf598x1e,-_0xf598x1d,this[_0xff99[255]],_0xf598x1f,_0xf598x2)}));_0xf598x4[_0xff99[57]](_0xff99[1363],_0xff99[2035]+ _0xf598x1f);_0xf598x2(_0xf598x4,null!= _0xf598x1c|| _0xf598x1b< _0xf598x18- 1|| _0xf598x1a< _0xf598x17- 1)}};if(null!= _0xf598x1c){for(_0xf598x1b= 0;_0xf598x1b< _0xf598x1c[_0xff99[67]];_0xf598x1b++){_0xf598x2(_0xf598x1c[_0xf598x1b],_0xf598x1b< _0xf598x1c[_0xff99[67]])}};_0xf598x5[_0xff99[171]](_0xff99[527]);_0xf598x5[_0xff99[171]](_0xff99[534]);_0xf598x5[_0xff99[268]]();_0xf598x19();mxEvent[_0xff99[762]](_0xf598x5[_0xff99[112]])};this[_0xff99[2018]][_0xff99[393]]()}catch(y){null!= _0xf598x4&& null!= _0xf598x4[_0xff99[265]]&& _0xf598x4[_0xff99[265]][_0xff99[266]](_0xf598x4)}finally{this[_0xff99[1179]][_0xff99[259]][_0xff99[2023]]= _0xf598x3};return this[_0xff99[2018]]};mxPrintPreview[_0xff99[202]][_0xff99[2025]]= function(_0xf598x2,_0xf598x3){null!= this[_0xff99[924]]&& _0xf598x2[_0xff99[171]](_0xff99[2036]+ this[_0xff99[924]]+ _0xff99[2037]);_0xf598x2[_0xff99[171]](_0xff99[2038]);_0xf598x2[_0xff99[171]](_0xff99[2039]);_0xf598x2[_0xff99[171]](_0xff99[2040]);_0xf598x2[_0xff99[171]](_0xff99[2041]);_0xf598x2[_0xff99[171]](_0xff99[233]);_0xf598x2[_0xff99[171]](_0xff99[2042]);_0xf598x2[_0xff99[171]](_0xff99[2043]);_0xf598x2[_0xff99[171]](_0xff99[2044]);_0xf598x2[_0xff99[171]](_0xff99[2045]);_0xf598x2[_0xff99[171]](_0xff99[233]);null!= _0xf598x3&& _0xf598x2[_0xff99[171]](_0xf598x3);_0xf598x2[_0xff99[171]](_0xff99[2046])};mxPrintPreview[_0xff99[202]][_0xff99[2027]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=this[_0xff99[2018]][_0xff99[395]],_0xf598x5=_0xf598x4[_0xff99[55]](_0xff99[116]);_0xf598x5[_0xff99[926]]= _0xff99[2047];_0xf598x5[_0xff99[57]](_0xff99[467],_0xff99[468]);for(var _0xf598x9=_0xf598x4[_0xff99[55]](_0xff99[120]),_0xf598xa=0;_0xf598xa< _0xf598x2;_0xf598xa++){for(var _0xf598x12=_0xf598x4[_0xff99[55]](_0xff99[121]),_0xf598x13=0;_0xf598x13< _0xf598x3;_0xf598x13++){var _0xf598x14=_0xf598xa* _0xf598x3+ _0xf598x13+ 1,_0xf598x15=_0xf598x4[_0xff99[55]](_0xff99[122]);if(!mxClient[_0xff99[133]]|| mxClient[_0xff99[75]] || mxClient[_0xff99[76]]){var _0xf598x16=_0xf598x4[_0xff99[55]](_0xff99[2048]);_0xf598x16[_0xff99[57]](_0xff99[44],_0xff99[2049]+ _0xf598x14);mxUtils[_0xff99[53]](_0xf598x16,_0xf598x14,_0xf598x4);_0xf598x15[_0xff99[62]](_0xf598x16)}else {mxUtils[_0xff99[53]](_0xf598x15,_0xf598x14,_0xf598x4)};_0xf598x12[_0xff99[62]](_0xf598x15)};_0xf598x9[_0xff99[62]](_0xf598x12)};_0xf598x5[_0xff99[62]](_0xf598x9);return _0xf598x5};mxPrintPreview[_0xff99[202]][_0xff99[2034]]= function(_0xf598x2,_0xf598x3,_0xf598x4){var _0xf598x5=document[_0xff99[55]](_0xff99[485]);try{_0xf598x5[_0xff99[124]][_0xff99[117]]= _0xf598x2+ _0xff99[168];_0xf598x5[_0xff99[124]][_0xff99[119]]= _0xf598x3+ _0xff99[168];_0xf598x5[_0xff99[124]][_0xff99[277]]= _0xff99[188];_0xf598x5[_0xff99[124]][_0xff99[2050]]= _0xff99[1824];_0xf598x5[_0xff99[124]][_0xff99[491]]= _0xff99[1500];var _0xf598x9=document[_0xff99[55]](_0xff99[485]);_0xf598x9[_0xff99[124]][_0xff99[125]]= this[_0xff99[467]]+ _0xff99[168];_0xf598x9[_0xff99[124]][_0xff99[361]]= this[_0xff99[467]]+ _0xff99[168];_0xf598x9[_0xff99[124]][_0xff99[117]]= _0xf598x2- 2* this[_0xff99[467]]+ _0xff99[168];_0xf598x9[_0xff99[124]][_0xff99[119]]= _0xf598x3- 2* this[_0xff99[467]]+ _0xff99[168];_0xf598x9[_0xff99[124]][_0xff99[277]]= _0xff99[188];this[_0xff99[1179]][_0xff99[507]]== mxConstants[_0xff99[1523]]&& (_0xf598x9[_0xff99[124]][_0xff99[491]]= _0xff99[492]);_0xf598x5[_0xff99[62]](_0xf598x9);document[_0xff99[112]][_0xff99[62]](_0xf598x5);_0xf598x4(_0xf598x9)}catch(f){throw _0xf598x5[_0xff99[265]][_0xff99[266]](_0xf598x5),f};return _0xf598x5};mxPrintPreview[_0xff99[202]][_0xff99[2033]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){_0xf598x5= this[_0xff99[1179]][_0xff99[249]]();var _0xf598xa=this[_0xff99[1179]][_0xff99[526]];this[_0xff99[1179]][_0xff99[526]]= _0xf598x9;var _0xf598x12=_0xf598x5[_0xff99[2051]](),_0xf598x13=_0xf598x5[_0xff99[2052]](),_0xf598x14=_0xf598x5[_0xff99[2024]](),_0xf598x15=_0xf598x5[_0xff99[1524]]();this[_0xff99[1179]][_0xff99[507]]== mxConstants[_0xff99[508]]?_0xf598x5[_0xff99[1569]]():this[_0xff99[1179]][_0xff99[507]]== mxConstants[_0xff99[1523]]?_0xf598x5[_0xff99[1571]]():_0xf598x5[_0xff99[1570]]();var _0xf598x16=_0xf598x5[_0xff99[503]]();_0xf598x5[_0xff99[504]](!1);var _0xf598x17=this[_0xff99[1179]][_0xff99[994]]();this[_0xff99[1179]][_0xff99[995]](!1);var _0xf598x18=_0xf598x5[_0xff99[512]]();_0xf598x5[_0xff99[513]]= new mxPoint(_0xf598x2,_0xf598x3);_0xf598x2= null;try{var _0xf598x19=[this[_0xff99[1179]][_0xff99[502]]()[_0xff99[501]]()];_0xf598x2= new mxTemporaryCellStates(_0xf598x5,_0xf598x4,_0xf598x19)}finally{if(mxClient[_0xff99[80]]){_0xf598x5[_0xff99[506]][_0xff99[339]]= _0xff99[110]}else {for(_0xf598x4= _0xf598x9[_0xff99[285]];null!= _0xf598x4;){_0xf598x19= _0xf598x4[_0xff99[287]],_0xf598x3= _0xf598x4[_0xff99[301]][_0xff99[216]](),_0xff99[571]== _0xf598x3?(_0xf598x4[_0xff99[57]](_0xff99[117],parseInt(_0xf598x9[_0xff99[124]][_0xff99[117]])),_0xf598x4[_0xff99[57]](_0xff99[119],parseInt(_0xf598x9[_0xff99[124]][_0xff99[119]]))):_0xff99[583]!= _0xf598x4[_0xff99[124]][_0xff99[270]]&& _0xff99[116]!= _0xf598x3&& _0xf598x4[_0xff99[265]][_0xff99[266]](_0xf598x4),_0xf598x4= _0xf598x19}};_0xf598x5[_0xff99[506]][_0xff99[265]][_0xff99[266]](_0xf598x5[_0xff99[506]]);this[_0xff99[1179]][_0xff99[995]](_0xf598x17);this[_0xff99[1179]][_0xff99[526]]= _0xf598xa;_0xf598x5[_0xff99[510]]= _0xf598x12;_0xf598x5[_0xff99[2053]]= _0xf598x13;_0xf598x5[_0xff99[505]]= _0xf598x14;_0xf598x5[_0xff99[506]]= _0xf598x15;_0xf598x5[_0xff99[513]]= _0xf598x18;_0xf598x2[_0xff99[515]]();_0xf598x5[_0xff99[504]](_0xf598x16)}};mxPrintPreview[_0xff99[202]][_0xff99[2031]]= function(){return null};mxPrintPreview[_0xff99[202]][_0xff99[2032]]= function(){return null};mxPrintPreview[_0xff99[202]][_0xff99[540]]= function(){var _0xf598x2=this[_0xff99[392]]();null!= _0xf598x2&& _0xf598x2[_0xff99[540]]()};mxPrintPreview[_0xff99[202]][_0xff99[268]]= function(){null!= this[_0xff99[2018]]&& (this[_0xff99[2018]][_0xff99[268]](),this[_0xff99[2018]]= null)};function mxStylesheet(){this[_0xff99[2054]]= {};this[_0xff99[2056]](this[_0xff99[2055]]());this[_0xff99[2058]](this[_0xff99[2057]]())}mxStylesheet[_0xff99[202]][_0xff99[2055]]= function(){var _0xf598x2={};_0xf598x2[mxConstants[_0xff99[2059]]]= mxConstants[_0xff99[2060]];_0xf598x2[mxConstants[_0xff99[2061]]]= mxPerimeter[_0xff99[2062]];_0xf598x2[mxConstants[_0xff99[2063]]]= mxConstants[_0xff99[481]];_0xf598x2[mxConstants[_0xff99[2064]]]= mxConstants[_0xff99[479]];_0xf598x2[mxConstants[_0xff99[2065]]]= _0xff99[2066];_0xf598x2[mxConstants[_0xff99[2067]]]= _0xff99[2068];_0xf598x2[mxConstants[_0xff99[2069]]]= _0xff99[2070];return _0xf598x2};mxStylesheet[_0xff99[202]][_0xff99[2057]]= function(){var _0xf598x2={};_0xf598x2[mxConstants[_0xff99[2059]]]= mxConstants[_0xff99[2071]];_0xf598x2[mxConstants[_0xff99[1695]]]= mxConstants[_0xff99[1622]];_0xf598x2[mxConstants[_0xff99[2063]]]= mxConstants[_0xff99[481]];_0xf598x2[mxConstants[_0xff99[2064]]]= mxConstants[_0xff99[479]];_0xf598x2[mxConstants[_0xff99[2067]]]= _0xff99[2068];_0xf598x2[mxConstants[_0xff99[2069]]]= _0xff99[2072];return _0xf598x2};mxStylesheet[_0xff99[202]][_0xff99[2056]]= function(_0xf598x2){this[_0xff99[2074]](_0xff99[2073],_0xf598x2)};mxStylesheet[_0xff99[202]][_0xff99[2058]]= function(_0xf598x2){this[_0xff99[2074]](_0xff99[2075],_0xf598x2)};mxStylesheet[_0xff99[202]][_0xff99[2076]]= function(){return this[_0xff99[2054]][_0xff99[2073]]};mxStylesheet[_0xff99[202]][_0xff99[2077]]= function(){return this[_0xff99[2054]][_0xff99[2075]]};mxStylesheet[_0xff99[202]][_0xff99[2074]]= function(_0xf598x2,_0xf598x3){this[_0xff99[2054]][_0xf598x2]= _0xf598x3};mxStylesheet[_0xff99[202]][_0xff99[1705]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=_0xf598x3;if(null!= _0xf598x2&& 0< _0xf598x2[_0xff99[67]]){for(var _0xf598x5=_0xf598x2[_0xff99[224]](_0xff99[471]),_0xf598x4=null!= _0xf598x4&& _0xff99[471]!= _0xf598x2[_0xff99[225]](0)?mxUtils[_0xff99[238]](_0xf598x4):{},_0xf598x9=0;_0xf598x9< _0xf598x5[_0xff99[67]];_0xf598x9++){var _0xf598xa=_0xf598x5[_0xf598x9],_0xf598x12=_0xf598xa[_0xff99[2]](_0xff99[226]);if(0<= _0xf598x12){var _0xf598x13=_0xf598xa[_0xff99[85]](0,_0xf598x12),_0xf598xa=_0xf598xa[_0xff99[85]](_0xf598x12+ 1);_0xf598xa== mxConstants[_0xff99[217]]? delete _0xf598x4[_0xf598x13]:mxUtils[_0xff99[1946]](_0xf598xa)?_0xf598x4[_0xf598x13]= parseFloat(_0xf598xa):_0xf598x4[_0xf598x13]= _0xf598xa}else {if(_0xf598xa= this[_0xff99[2054]][_0xf598xa],null!= _0xf598xa){for(_0xf598x13 in _0xf598xa){_0xf598x4[_0xf598x13]= _0xf598xa[_0xf598x13]}}}}};return _0xf598x4};function mxCellState(_0xf598x2,_0xf598x3,_0xf598x4){this[_0xff99[441]]= _0xf598x2;this[_0xff99[246]]= _0xf598x3;this[_0xff99[124]]= _0xf598x4;this[_0xff99[2078]]= new mxPoint;this[_0xff99[2079]]= new mxPoint}mxCellState[_0xff99[202]]= new mxRectangle;mxCellState[_0xff99[202]][_0xff99[196]]= mxCellState;mxCellState[_0xff99[202]][_0xff99[441]]= null;mxCellState[_0xff99[202]][_0xff99[246]]= null;mxCellState[_0xff99[202]][_0xff99[124]]= null;mxCellState[_0xff99[202]][_0xff99[2080]]= !0;mxCellState[_0xff99[202]][_0xff99[2081]]= !1;mxCellState[_0xff99[202]][_0xff99[2082]]= !1;mxCellState[_0xff99[202]][_0xff99[2078]]= null;mxCellState[_0xff99[202]][_0xff99[439]]= null;mxCellState[_0xff99[202]][_0xff99[2079]]= null;mxCellState[_0xff99[202]][_0xff99[2083]]= null;mxCellState[_0xff99[202]][_0xff99[2084]]= null;mxCellState[_0xff99[202]][_0xff99[2085]]= 0;mxCellState[_0xff99[202]][_0xff99[67]]= 0;mxCellState[_0xff99[202]][_0xff99[2086]]= null;mxCellState[_0xff99[202]][_0xff99[253]]= null;mxCellState[_0xff99[202]][_0xff99[963]]= null;mxCellState[_0xff99[202]][_0xff99[2087]]= function(_0xf598x2,_0xf598x3){_0xf598x2= _0xf598x2|| 0;_0xf598x3= null!= _0xf598x3?_0xf598x3: new mxRectangle(this[_0xff99[235]],this[_0xff99[236]],this[_0xff99[117]],this[_0xff99[119]]);if(null!= this[_0xff99[253]]&& null!= this[_0xff99[253]][_0xff99[1561]]){var _0xf598x4=this[_0xff99[253]][_0xff99[1561]][_0xff99[1548]](this[_0xff99[124]],_0xf598x3[_0xff99[235]],_0xf598x3[_0xff99[236]],_0xf598x3[_0xff99[117]],_0xf598x3[_0xff99[119]]);_0xf598x3[_0xff99[235]]= _0xf598x4[_0xff99[235]];_0xf598x3[_0xff99[236]]= _0xf598x4[_0xff99[236]];_0xf598x3[_0xff99[117]]= this[_0xff99[253]][_0xff99[1561]][_0xff99[1532]]* _0xf598x4[_0xff99[117]];_0xf598x3[_0xff99[119]]= this[_0xff99[253]][_0xff99[1561]][_0xff99[1533]]* _0xf598x4[_0xff99[119]]};0!= _0xf598x2&& _0xf598x3[_0xff99[244]](_0xf598x2);return _0xf598x3};mxCellState[_0xff99[202]][_0xff99[2088]]= function(_0xf598x2,_0xf598x3){_0xf598x3?(null== this[_0xff99[439]]&& (this[_0xff99[439]]= []),0== this[_0xff99[439]][_0xff99[67]]?this[_0xff99[439]][_0xff99[207]](_0xf598x2):this[_0xff99[439]][0]= _0xf598x2):null== this[_0xff99[439]]?(this[_0xff99[439]]= [],this[_0xff99[439]][_0xff99[207]](null),this[_0xff99[439]][_0xff99[207]](_0xf598x2)):1== this[_0xff99[439]][_0xff99[67]]?this[_0xff99[439]][_0xff99[207]](_0xf598x2):this[_0xff99[439]][this[_0xff99[439]][_0xff99[67]]- 1]= _0xf598x2};mxCellState[_0xff99[202]][_0xff99[1609]]= function(_0xf598x2){null!= this[_0xff99[253]]&& this[_0xff99[253]][_0xff99[1609]](_0xf598x2);null!= this[_0xff99[963]]&& this[_0xff99[963]][_0xff99[1609]](_0xf598x2)};mxCellState[_0xff99[202]][_0xff99[1710]]= function(_0xf598x2){_0xf598x2= this[_0xff99[2089]](_0xf598x2);return null!= _0xf598x2?_0xf598x2[_0xff99[246]]:null};mxCellState[_0xff99[202]][_0xff99[2089]]= function(_0xf598x2){return _0xf598x2?this[_0xff99[2083]]:this[_0xff99[2084]]};mxCellState[_0xff99[202]][_0xff99[2090]]= function(_0xf598x2,_0xf598x3){_0xf598x3?this[_0xff99[2083]]= _0xf598x2:this[_0xff99[2084]]= _0xf598x2};mxCellState[_0xff99[202]][_0xff99[515]]= function(){this[_0xff99[441]][_0xff99[1179]][_0xff99[259]][_0xff99[515]](this)};mxCellState[_0xff99[202]][_0xff99[238]]= function(){var _0xf598x2= new mxCellState(this[_0xff99[441]],this[_0xff99[246]],this[_0xff99[124]]);if(null!= this[_0xff99[439]]){_0xf598x2[_0xff99[439]]= [];for(var _0xf598x3=0;_0xf598x3< this[_0xff99[439]][_0xff99[67]];_0xf598x3++){_0xf598x2[_0xff99[439]][_0xf598x3]= this[_0xff99[439]][_0xf598x3][_0xff99[238]]()}};null!= this[_0xff99[2078]]&& (_0xf598x2[_0xff99[2078]]= this[_0xff99[2078]][_0xff99[238]]());null!= this[_0xff99[2079]]&& (_0xf598x2[_0xff99[2079]]= this[_0xff99[2079]][_0xff99[238]]());null!= this[_0xff99[1563]]&& (_0xf598x2[_0xff99[1563]]= this[_0xff99[1563]][_0xff99[238]]());_0xf598x2[_0xff99[2085]]= this[_0xff99[2085]];_0xf598x2[_0xff99[2086]]= this[_0xff99[2086]];_0xf598x2[_0xff99[67]]= this[_0xff99[67]];_0xf598x2[_0xff99[235]]= this[_0xff99[235]];_0xf598x2[_0xff99[236]]= this[_0xff99[236]];_0xf598x2[_0xff99[117]]= this[_0xff99[117]];_0xf598x2[_0xff99[119]]= this[_0xff99[119]];return _0xf598x2};function mxGraphSelectionModel(_0xf598x2){this[_0xff99[1179]]= _0xf598x2;this[_0xff99[895]]= []}mxGraphSelectionModel[_0xff99[202]]= new mxEventSource;mxGraphSelectionModel[_0xff99[202]][_0xff99[196]]= mxGraphSelectionModel;mxGraphSelectionModel[_0xff99[202]][_0xff99[2091]]= _0xff99[130]!= mxClient[_0xff99[90]]?_0xff99[819]:_0xff99[110];mxGraphSelectionModel[_0xff99[202]][_0xff99[2092]]= _0xff99[130]!= mxClient[_0xff99[90]]?_0xff99[2093]:_0xff99[110];mxGraphSelectionModel[_0xff99[202]][_0xff99[1179]]= null;mxGraphSelectionModel[_0xff99[202]][_0xff99[2094]]= !1;mxGraphSelectionModel[_0xff99[202]][_0xff99[2095]]= function(){return this[_0xff99[2094]]};mxGraphSelectionModel[_0xff99[202]][_0xff99[2096]]= function(_0xf598x2){this[_0xff99[2094]]= _0xf598x2};mxGraphSelectionModel[_0xff99[202]][_0xff99[2097]]= function(_0xf598x2){return null!= _0xf598x2?0<= mxUtils[_0xff99[2]](this[_0xff99[895]],_0xf598x2):!1};mxGraphSelectionModel[_0xff99[202]][_0xff99[1107]]= function(){return 0== this[_0xff99[895]][_0xff99[67]]};mxGraphSelectionModel[_0xff99[202]][_0xff99[200]]= function(){this[_0xff99[2098]](null,this[_0xff99[895]])};mxGraphSelectionModel[_0xff99[202]][_0xff99[2099]]= function(_0xf598x2){null!= _0xf598x2&& this[_0xff99[2100]]([_0xf598x2])};mxGraphSelectionModel[_0xff99[202]][_0xff99[2100]]= function(_0xf598x2){if(null!= _0xf598x2){this[_0xff99[2094]]&& (_0xf598x2= [this[_0xff99[2101]](_0xf598x2)]);for(var _0xf598x3=[],_0xf598x4=0;_0xf598x4< _0xf598x2[_0xff99[67]];_0xf598x4++){this[_0xff99[1179]][_0xff99[2102]](_0xf598x2[_0xf598x4])&& _0xf598x3[_0xff99[207]](_0xf598x2[_0xf598x4])};this[_0xff99[2098]](_0xf598x3,this[_0xff99[895]])}};mxGraphSelectionModel[_0xff99[202]][_0xff99[2101]]= function(_0xf598x2){if(null!= _0xf598x2){for(var _0xf598x3=0;_0xf598x3< _0xf598x2[_0xff99[67]];_0xf598x3++){if(this[_0xff99[1179]][_0xff99[2102]](_0xf598x2[_0xf598x3])){return _0xf598x2[_0xf598x3]}}};return null};mxGraphSelectionModel[_0xff99[202]][_0xff99[2103]]= function(_0xf598x2){null!= _0xf598x2&& this[_0xff99[832]]([_0xf598x2])};mxGraphSelectionModel[_0xff99[202]][_0xff99[832]]= function(_0xf598x2){if(null!= _0xf598x2){var _0xf598x3=null;this[_0xff99[2094]]&& (_0xf598x3= this[_0xff99[895]],_0xf598x2= [this[_0xff99[2101]](_0xf598x2)]);for(var _0xf598x4=[],_0xf598x5=0;_0xf598x5< _0xf598x2[_0xff99[67]];_0xf598x5++){!this[_0xff99[2097]](_0xf598x2[_0xf598x5])&& this[_0xff99[1179]][_0xff99[2102]](_0xf598x2[_0xf598x5]) && _0xf598x4[_0xff99[207]](_0xf598x2[_0xf598x5])};this[_0xff99[2098]](_0xf598x4,_0xf598x3)}};mxGraphSelectionModel[_0xff99[202]][_0xff99[2104]]= function(_0xf598x2){null!= _0xf598x2&& this[_0xff99[842]]([_0xf598x2])};mxGraphSelectionModel[_0xff99[202]][_0xff99[842]]= function(_0xf598x2){if(null!= _0xf598x2){for(var _0xf598x3=[],_0xf598x4=0;_0xf598x4< _0xf598x2[_0xff99[67]];_0xf598x4++){this[_0xff99[2097]](_0xf598x2[_0xf598x4])&& _0xf598x3[_0xff99[207]](_0xf598x2[_0xf598x4])};this[_0xff99[2098]](null,_0xf598x3)}};mxGraphSelectionModel[_0xff99[202]][_0xff99[2098]]= function(_0xf598x2,_0xf598x3){if(null!= _0xf598x2&& 0< _0xf598x2[_0xff99[67]]&& null!= _0xf598x2[0]|| null!= _0xf598x3&& 0< _0xf598x3[_0xff99[67]]&& null!= _0xf598x3[0]){var _0xf598x4= new mxSelectionChange(this,_0xf598x2,_0xf598x3);_0xf598x4[_0xff99[350]]();var _0xf598x5= new mxUndoableEdit(this,!1);_0xf598x5[_0xff99[99]](_0xf598x4);this[_0xff99[746]]( new mxEventObject(mxEvent.UNDO,_0xff99[1061],_0xf598x5))}};mxGraphSelectionModel[_0xff99[202]][_0xff99[1941]]= function(_0xf598x2){null!= _0xf598x2&& !this[_0xff99[2097]](_0xf598x2)&& this[_0xff99[895]][_0xff99[207]](_0xf598x2)};mxGraphSelectionModel[_0xff99[202]][_0xff99[1102]]= function(_0xf598x2){null!= _0xf598x2&& (_0xf598x2= mxUtils[_0xff99[2]](this[_0xff99[895]],_0xf598x2),0<= _0xf598x2&& this[_0xff99[895]][_0xff99[300]](_0xf598x2,1))};function mxSelectionChange(_0xf598x2,_0xf598x3,_0xf598x4){this[_0xff99[2105]]= _0xf598x2;this[_0xff99[2106]]= null!= _0xf598x3?_0xf598x3[_0xff99[1853]]():null;this[_0xff99[2107]]= null!= _0xf598x4?_0xf598x4[_0xff99[1853]]():null}mxSelectionChange[_0xff99[202]][_0xff99[350]]= function(){var _0xf598x2=mxLog[_0xff99[2109]](_0xff99[2108]);window[_0xff99[879]]= mxResources[_0xff99[203]](this[_0xff99[2105]][_0xff99[2092]])|| this[_0xff99[2105]][_0xff99[2092]];if(null!= this[_0xff99[2107]]){for(var _0xf598x3=0;_0xf598x3< this[_0xff99[2107]][_0xff99[67]];_0xf598x3++){this[_0xff99[2105]][_0xff99[1102]](this[_0xff99[2107]][_0xf598x3])}};if(null!= this[_0xff99[2106]]){for(_0xf598x3= 0;_0xf598x3< this[_0xff99[2106]][_0xff99[67]];_0xf598x3++){this[_0xff99[2105]][_0xff99[1941]](this[_0xff99[2106]][_0xf598x3])}};_0xf598x3= this[_0xff99[2106]];this[_0xff99[2106]]= this[_0xff99[2107]];this[_0xff99[2107]]= _0xf598x3;window[_0xff99[879]]= mxResources[_0xff99[203]](this[_0xff99[2105]][_0xff99[2091]])|| this[_0xff99[2105]][_0xff99[2091]];mxLog[_0xff99[2110]](_0xff99[2108],_0xf598x2);this[_0xff99[2105]][_0xff99[746]]( new mxEventObject(mxEvent.CHANGE,_0xff99[2106],this[_0xff99[2106]],_0xff99[2107],this[_0xff99[2107]]))};function mxCellEditor(_0xf598x2){this[_0xff99[1179]]= _0xf598x2}mxCellEditor[_0xff99[202]][_0xff99[1179]]= null;mxCellEditor[_0xff99[202]][_0xff99[126]]= null;mxCellEditor[_0xff99[202]][_0xff99[2111]]= null;mxCellEditor[_0xff99[202]][_0xff99[2112]]= null;mxCellEditor[_0xff99[202]][_0xff99[2113]]= !1;mxCellEditor[_0xff99[202]][_0xff99[2114]]= !0;mxCellEditor[_0xff99[202]][_0xff99[2115]]= _0xff99[110];mxCellEditor[_0xff99[202]][_0xff99[2116]]= _0xff99[110];mxCellEditor[_0xff99[202]][_0xff99[176]]= function(){this[_0xff99[126]]= document[_0xff99[55]](_0xff99[126]);this[_0xff99[126]][_0xff99[926]]= _0xff99[2117];this[_0xff99[126]][_0xff99[124]][_0xff99[491]]= _0xff99[492];this[_0xff99[126]][_0xff99[124]][_0xff99[277]]= _0xff99[189];this[_0xff99[126]][_0xff99[57]](_0xff99[2118],_0xff99[2119]);this[_0xff99[126]][_0xff99[57]](_0xff99[969],_0xff99[2120]);mxClient[_0xff99[133]]&& (this[_0xff99[126]][_0xff99[124]][_0xff99[129]]= _0xff99[130]);mxEvent[_0xff99[169]](this[_0xff99[126]],_0xff99[2121],mxUtils[_0xff99[885]](this,function(_0xf598x2){this[_0xff99[2122]]()}));mxEvent[_0xff99[169]](this[_0xff99[126]],_0xff99[2123],mxUtils[_0xff99[885]](this,function(_0xf598x2){mxEvent[_0xff99[721]](_0xf598x2)|| (113== _0xf598x2[_0xff99[2124]]|| this[_0xff99[1179]][_0xff99[2125]]()&& 13== _0xf598x2[_0xff99[2124]]&& !mxEvent[_0xff99[775]](_0xf598x2)&& !mxEvent[_0xff99[774]](_0xf598x2)?(this[_0xff99[1179]][_0xff99[2126]](!1),mxEvent[_0xff99[722]](_0xf598x2)):27== _0xf598x2[_0xff99[2124]]?(this[_0xff99[1179]][_0xff99[2126]](!0),mxEvent[_0xff99[722]](_0xf598x2)):(this[_0xff99[2127]]&& (this[_0xff99[2127]]= !1,this[_0xff99[126]][_0xff99[131]]= _0xff99[110]),this[_0xff99[2128]](!0)))}));mxEvent[_0xff99[169]](this[_0xff99[126]],_0xff99[2129],mxUtils[_0xff99[885]](this,function(_0xf598x2){this[_0xff99[2114]]&& !mxEvent[_0xff99[721]](_0xf598x2)&& setTimeout(mxUtils[_0xff99[885]](this,function(){this[_0xff99[129]]()}),0)}))};mxCellEditor[_0xff99[202]][_0xff99[129]]= function(){if(null!= this[_0xff99[1653]]){var _0xf598x2=this[_0xff99[1179]][_0xff99[249]]()[_0xff99[248]](this[_0xff99[2111]]),_0xf598x3=this[_0xff99[1179]][_0xff99[2130]](_0xf598x2[_0xff99[246]]),_0xf598x4=this[_0xff99[1179]][_0xff99[2131]](_0xf598x2[_0xff99[246]]);if(this[_0xff99[1179]][_0xff99[502]]()[_0xff99[250]](_0xf598x2[_0xff99[246]])){this[_0xff99[1562]][_0xff99[235]]= _0xf598x2[_0xff99[2079]][_0xff99[235]],this[_0xff99[1562]][_0xff99[236]]= _0xf598x2[_0xff99[2079]][_0xff99[236]],this[_0xff99[1562]][_0xff99[117]]= 0,this[_0xff99[1562]][_0xff99[119]]= 0}else {if(null!= this[_0xff99[1562]]){this[_0xff99[1562]][_0xff99[235]]= _0xf598x2[_0xff99[235]];this[_0xff99[1562]][_0xff99[236]]= _0xf598x2[_0xff99[236]];this[_0xff99[1562]][_0xff99[117]]= _0xf598x2[_0xff99[117]];this[_0xff99[1562]][_0xff99[119]]= _0xf598x2[_0xff99[119]];var _0xf598x5=mxUtils[_0xff99[433]](_0xf598x2[_0xff99[124]],mxConstants.STYLE_LABEL_POSITION,mxConstants.ALIGN_CENTER);_0xf598x5== mxConstants[_0xff99[2132]]?this[_0xff99[1562]][_0xff99[235]]-= _0xf598x2[_0xff99[117]]:_0xf598x5== mxConstants[_0xff99[480]]&& (this[_0xff99[1562]][_0xff99[235]]+= _0xf598x2[_0xff99[117]]);_0xf598x5= mxUtils[_0xff99[433]](_0xf598x2[_0xff99[124]],mxConstants.STYLE_VERTICAL_LABEL_POSITION,mxConstants.ALIGN_MIDDLE);_0xf598x5== mxConstants[_0xff99[1687]]?this[_0xff99[1562]][_0xff99[236]]-= _0xf598x2[_0xff99[119]]:_0xf598x5== mxConstants[_0xff99[482]]&& (this[_0xff99[1562]][_0xff99[236]]+= _0xf598x2[_0xff99[119]])}};_0xf598x5= this[_0xff99[126]][_0xff99[131]];if(_0xff99[192]== _0xf598x5[_0xff99[225]](_0xf598x5[_0xff99[67]]- 1)|| _0xff99[110]== _0xf598x5){_0xf598x5+= _0xff99[544]};_0xf598x5= mxUtils[_0xff99[321]](_0xf598x5,!1);_0xf598x4?(this[_0xff99[1653]][_0xff99[124]][_0xff99[493]]= _0xff99[1502],this[_0xff99[1653]][_0xff99[124]][_0xff99[117]]= this[_0xff99[1562]][_0xff99[117]]+ _0xff99[168]):_0xf598x5= _0xf598x5[_0xff99[230]](/ /g,_0xff99[544]);_0xf598x5= _0xf598x5[_0xff99[230]](/\n/g,_0xff99[1453]);this[_0xff99[1653]][_0xff99[339]]= _0xf598x5;var _0xf598x5=this[_0xff99[1653]][_0xff99[359]]+ 30,_0xf598x9=this[_0xff99[1653]][_0xff99[167]]+ 16,_0xf598x5=Math[_0xff99[160]](_0xf598x5,40),_0xf598x9=Math[_0xff99[160]](_0xf598x9,20);_0xf598x3&& (_0xf598x5= Math[_0xff99[243]](this[_0xff99[1562]][_0xff99[117]]- 4,_0xf598x5),_0xf598x9= Math[_0xff99[243]](this[_0xff99[1562]][_0xff99[119]],_0xf598x9));var _0xf598xa=null!= _0xf598x2[_0xff99[963]]?_0xf598x2[_0xff99[963]][_0xff99[1655]]:null;null== _0xf598xa&& (_0xf598xa= mxUtils[_0xff99[433]](_0xf598x2[_0xff99[124]],mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER),_0xf598x2= mxUtils[_0xff99[433]](_0xf598x2[_0xff99[124]],mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE),_0xf598xa= mxUtils[_0xff99[1501]](_0xf598xa,_0xf598x2));if(null!= _0xf598xa){if(_0xf598x3|| !_0xf598x4){this[_0xff99[126]][_0xff99[124]][_0xff99[361]]= Math[_0xff99[160]](0,Math[_0xff99[488]](this[_0xff99[1562]][_0xff99[235]]- _0xf598xa[_0xff99[235]]* this[_0xff99[1562]][_0xff99[117]]+ _0xf598xa[_0xff99[235]]* _0xf598x5)- 3)+ _0xff99[168]};this[_0xff99[126]][_0xff99[124]][_0xff99[125]]= Math[_0xff99[160]](0,Math[_0xff99[488]](this[_0xff99[1562]][_0xff99[236]]- _0xf598xa[_0xff99[236]]* this[_0xff99[1562]][_0xff99[119]]+ _0xf598xa[_0xff99[236]]* _0xf598x9)+ 4)+ _0xff99[168]};if(_0xf598x3|| !_0xf598x4){this[_0xff99[126]][_0xff99[124]][_0xff99[117]]= _0xf598x5+ _0xff99[168]};this[_0xff99[126]][_0xff99[124]][_0xff99[119]]= _0xf598x9+ _0xff99[168]}};mxCellEditor[_0xff99[202]][_0xff99[2133]]= function(){return this[_0xff99[2113]]};mxCellEditor[_0xff99[202]][_0xff99[2128]]= function(_0xf598x2){this[_0xff99[2113]]= _0xf598x2};mxCellEditor[_0xff99[202]][_0xff99[2122]]= function(){this[_0xff99[2126]](!this[_0xff99[1179]][_0xff99[2134]]())};mxCellEditor[_0xff99[202]][_0xff99[855]]= function(_0xf598x2,_0xf598x3){null== this[_0xff99[126]]&& this[_0xff99[176]]();this[_0xff99[2126]](!0);var _0xf598x4=this[_0xff99[1179]][_0xff99[249]]()[_0xff99[248]](_0xf598x2);if(null!= _0xf598x4){this[_0xff99[2111]]= _0xf598x2;this[_0xff99[2112]]= _0xf598x3;this[_0xff99[2116]]= null;null!= _0xf598x4[_0xff99[963]]&& this[_0xff99[2135]](_0xf598x4)&& (this[_0xff99[2116]]= _0xf598x4[_0xff99[963]][_0xff99[252]],this[_0xff99[2116]][_0xff99[124]][_0xff99[187]]= _0xff99[188]);var _0xf598x5=this[_0xff99[1179]][_0xff99[249]]()[_0xff99[255]],_0xf598x5=mxUtils[_0xff99[433]](_0xf598x4[_0xff99[124]],mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE)* _0xf598x5,_0xf598x9=mxUtils[_0xff99[433]](_0xf598x4[_0xff99[124]],mxConstants.STYLE_FONTFAMILY,mxConstants.DEFAULT_FONTFAMILY),_0xf598xa=mxUtils[_0xff99[433]](_0xf598x4[_0xff99[124]],mxConstants.STYLE_FONTCOLOR,_0xff99[586]),_0xf598x12=mxUtils[_0xff99[433]](_0xf598x4[_0xff99[124]],mxConstants.STYLE_ALIGN,mxConstants.ALIGN_LEFT),_0xf598x13=(mxUtils[_0xff99[433]](_0xf598x4[_0xff99[124]],mxConstants.STYLE_FONTSTYLE,0)& mxConstants[_0xff99[1410]])== mxConstants[_0xff99[1410]],_0xf598x14=(mxUtils[_0xff99[433]](_0xf598x4[_0xff99[124]],mxConstants.STYLE_FONTSTYLE,0)& mxConstants[_0xff99[1412]])== mxConstants[_0xff99[1412]],_0xf598x15=(mxUtils[_0xff99[433]](_0xf598x4[_0xff99[124]],mxConstants.STYLE_FONTSTYLE,0)& mxConstants[_0xff99[1414]])== mxConstants[_0xff99[1414]];this[_0xff99[126]][_0xff99[124]][_0xff99[487]]= Math[_0xff99[488]](_0xf598x5)+ _0xff99[168];this[_0xff99[126]][_0xff99[124]][_0xff99[489]]= Math[_0xff99[488]](_0xf598x5* mxConstants[_0xff99[490]])+ _0xff99[168];this[_0xff99[126]][_0xff99[124]][_0xff99[486]]= _0xf598x9;this[_0xff99[126]][_0xff99[124]][_0xff99[1165]]= _0xf598x12;this[_0xff99[126]][_0xff99[124]][_0xff99[352]]= _0xf598xa;this[_0xff99[126]][_0xff99[124]][_0xff99[1452]]= _0xf598x13?_0xff99[1447]:_0xff99[1502];this[_0xff99[126]][_0xff99[124]][_0xff99[666]]= _0xf598x14?_0xff99[1449]:_0xff99[110];this[_0xff99[126]][_0xff99[124]][_0xff99[354]]= _0xf598x15?_0xff99[355]:_0xff99[110];this[_0xff99[126]][_0xff99[124]][_0xff99[277]]= _0xff99[278];this[_0xff99[126]][_0xff99[124]][_0xff99[2136]]= _0xff99[130];this[_0xff99[1562]]= _0xf598x5= this[_0xff99[2137]](_0xf598x4);this[_0xff99[126]][_0xff99[124]][_0xff99[361]]= _0xf598x5[_0xff99[235]]+ _0xff99[168];this[_0xff99[126]][_0xff99[124]][_0xff99[125]]= _0xf598x5[_0xff99[236]]+ _0xff99[168];this[_0xff99[126]][_0xff99[124]][_0xff99[117]]= _0xf598x5[_0xff99[117]]+ _0xff99[168];this[_0xff99[126]][_0xff99[124]][_0xff99[119]]= _0xf598x5[_0xff99[119]]+ _0xff99[168];this[_0xff99[126]][_0xff99[124]][_0xff99[931]]= 5;_0xf598x4= this[_0xff99[2138]](_0xf598x4,_0xf598x3);null== _0xf598x4|| 0== _0xf598x4[_0xff99[67]]?(_0xf598x4= this[_0xff99[2139]](),this[_0xff99[2127]]= !0):this[_0xff99[2127]]= !1;this[_0xff99[2128]](!1);this[_0xff99[126]][_0xff99[131]]= _0xf598x4;this[_0xff99[1179]][_0xff99[526]][_0xff99[62]](this[_0xff99[126]]);_0xff99[130]!= this[_0xff99[126]][_0xff99[124]][_0xff99[495]]&& (this[_0xff99[2114]]&& (this[_0xff99[1653]]= this[_0xff99[2140]](),document[_0xff99[112]][_0xff99[62]](this[_0xff99[1653]]),this[_0xff99[129]]()),this[_0xff99[126]][_0xff99[393]](),this[_0xff99[126]][_0xff99[804]]())}};mxCellEditor[_0xff99[202]][_0xff99[2140]]= function(){var _0xf598x2=document[_0xff99[55]](_0xff99[485]),_0xf598x3=_0xf598x2[_0xff99[124]];_0xf598x3[_0xff99[491]]= _0xff99[492];_0xf598x3[_0xff99[493]]= _0xff99[494];_0xf598x3[_0xff99[187]]= _0xff99[188];_0xf598x3[_0xff99[495]]= mxClient[_0xff99[496]]?_0xff99[497]:_0xff99[498];_0xf598x3[_0xff99[499]]= _0xff99[500];_0xf598x3[_0xff99[123]]= _0xff99[125];_0xf598x3[_0xff99[489]]= this[_0xff99[126]][_0xff99[124]][_0xff99[489]];_0xf598x3[_0xff99[487]]= this[_0xff99[126]][_0xff99[124]][_0xff99[487]];_0xf598x3[_0xff99[486]]= this[_0xff99[126]][_0xff99[124]][_0xff99[486]];_0xf598x3[_0xff99[1452]]= this[_0xff99[126]][_0xff99[124]][_0xff99[1452]];_0xf598x3[_0xff99[1165]]= this[_0xff99[126]][_0xff99[124]][_0xff99[1165]];_0xf598x3[_0xff99[666]]= this[_0xff99[126]][_0xff99[124]][_0xff99[666]];_0xf598x3[_0xff99[354]]= this[_0xff99[126]][_0xff99[124]][_0xff99[354]];return _0xf598x2};mxCellEditor[_0xff99[202]][_0xff99[2126]]= function(_0xf598x2){null!= this[_0xff99[2111]]&& (null!= this[_0xff99[2116]]&& (this[_0xff99[2116]][_0xff99[124]][_0xff99[187]]= _0xff99[189],this[_0xff99[2116]]= null),!_0xf598x2&& this[_0xff99[2133]]() && this[_0xff99[1179]][_0xff99[850]](this[_0xff99[2111]],this[_0xff99[2141]](),this[_0xff99[2112]]),null!= this[_0xff99[1653]]&& (document[_0xff99[112]][_0xff99[266]](this[_0xff99[1653]]),this[_0xff99[1653]]= null),this[_0xff99[1562]]= this[_0xff99[2112]]= this[_0xff99[2111]]= null,this[_0xff99[126]][_0xff99[2121]](),this[_0xff99[126]][_0xff99[265]][_0xff99[266]](this[_0xff99[126]]))};mxCellEditor[_0xff99[202]][_0xff99[2138]]= function(_0xf598x2,_0xf598x3){return this[_0xff99[1179]][_0xff99[2142]](_0xf598x2[_0xff99[246]],_0xf598x3)};mxCellEditor[_0xff99[202]][_0xff99[2141]]= function(){return this[_0xff99[126]][_0xff99[131]][_0xff99[230]](/\r/g,_0xff99[110])};mxCellEditor[_0xff99[202]][_0xff99[2135]]= function(_0xf598x2){return !0};mxCellEditor[_0xff99[202]][_0xff99[939]]= function(_0xf598x2){var _0xf598x3=this[_0xff99[1179]][_0xff99[249]]()[_0xff99[255]];return new mxRectangle(0,0,null== _0xf598x2[_0xff99[963]]?30:_0xf598x2[_0xff99[963]][_0xff99[803]]* _0xf598x3+ 20,_0xff99[361]== this[_0xff99[126]][_0xff99[124]][_0xff99[1165]]?120:40)};mxCellEditor[_0xff99[202]][_0xff99[2137]]= function(_0xf598x2){var _0xf598x3=this[_0xff99[1179]][_0xff99[502]]()[_0xff99[250]](_0xf598x2[_0xff99[246]]),_0xf598x4=this[_0xff99[1179]][_0xff99[249]]()[_0xff99[255]],_0xf598x5=this[_0xff99[939]](_0xf598x2),_0xf598x9=_0xf598x5[_0xff99[117]],_0xf598x5=_0xf598x5[_0xff99[119]],_0xf598xa=parseInt(_0xf598x2[_0xff99[124]][mxConstants[_0xff99[2143]]]|| 2)* _0xf598x4,_0xf598x12=parseInt(_0xf598x2[_0xff99[124]][mxConstants[_0xff99[2144]]]|| 0)* _0xf598x4+ _0xf598xa,_0xf598x13=parseInt(_0xf598x2[_0xff99[124]][mxConstants[_0xff99[2145]]]|| 0)* _0xf598x4+ _0xf598xa,_0xf598x14=parseInt(_0xf598x2[_0xff99[124]][mxConstants[_0xff99[2146]]]|| 0)* _0xf598x4+ _0xf598xa,_0xf598x4=parseInt(_0xf598x2[_0xff99[124]][mxConstants[_0xff99[2147]]]|| 0)* _0xf598x4+ _0xf598xa,_0xf598x13= new mxRectangle(_0xf598x2[_0xff99[235]],_0xf598x2[_0xff99[236]],Math[_0xff99[160]](_0xf598x9,_0xf598x2[_0xff99[117]]- _0xf598x4- _0xf598x13),Math[_0xff99[160]](_0xf598x5,_0xf598x2[_0xff99[119]]- _0xf598x12- _0xf598x14));_0xf598x3?(_0xf598x13[_0xff99[235]]= _0xf598x2[_0xff99[2079]][_0xff99[235]],_0xf598x13[_0xff99[236]]= _0xf598x2[_0xff99[2079]][_0xff99[236]],null!= _0xf598x2[_0xff99[963]]&& null!= _0xf598x2[_0xff99[963]][_0xff99[1563]]&& (0< _0xf598x2[_0xff99[963]][_0xff99[1563]][_0xff99[235]]&& (_0xf598x13[_0xff99[235]]= _0xf598x2[_0xff99[963]][_0xff99[1563]][_0xff99[235]]),0< _0xf598x2[_0xff99[963]][_0xff99[1563]][_0xff99[236]]&& (_0xf598x13[_0xff99[236]]= _0xf598x2[_0xff99[963]][_0xff99[1563]][_0xff99[236]]))):null!= _0xf598x2[_0xff99[963]]&& null!= _0xf598x2[_0xff99[963]][_0xff99[1563]]&& (_0xf598x13[_0xff99[235]]= Math[_0xff99[243]](_0xf598x13[_0xff99[235]],_0xf598x2[_0xff99[963]][_0xff99[1563]][_0xff99[235]]),_0xf598x13[_0xff99[236]]= Math[_0xff99[243]](_0xf598x13[_0xff99[236]],_0xf598x2[_0xff99[963]][_0xff99[1563]][_0xff99[236]]));_0xf598x13[_0xff99[235]]+= _0xf598x4;_0xf598x13[_0xff99[236]]+= _0xf598x12;null!= _0xf598x2[_0xff99[963]]&& null!= _0xf598x2[_0xff99[963]][_0xff99[1563]]&& (_0xf598x3?(_0xf598x13[_0xff99[117]]= Math[_0xff99[160]](_0xf598x9,_0xf598x2[_0xff99[963]][_0xff99[1563]][_0xff99[117]]),_0xf598x13[_0xff99[119]]= Math[_0xff99[160]](_0xf598x5,_0xf598x2[_0xff99[963]][_0xff99[1563]][_0xff99[119]])):(_0xf598x13[_0xff99[117]]= Math[_0xff99[160]](_0xf598x13[_0xff99[117]],_0xf598x2[_0xff99[963]][_0xff99[1563]][_0xff99[117]]),_0xf598x13[_0xff99[119]]= Math[_0xff99[160]](_0xf598x13[_0xff99[119]],_0xf598x2[_0xff99[963]][_0xff99[1563]][_0xff99[119]])));this[_0xff99[1179]][_0xff99[502]]()[_0xff99[1193]](_0xf598x2[_0xff99[246]])&& (_0xf598x3= mxUtils[_0xff99[433]](_0xf598x2[_0xff99[124]],mxConstants.STYLE_LABEL_POSITION,mxConstants.ALIGN_CENTER),_0xf598x3== mxConstants[_0xff99[2132]]?_0xf598x13[_0xff99[235]]-= _0xf598x2[_0xff99[117]]:_0xf598x3== mxConstants[_0xff99[480]]&& (_0xf598x13[_0xff99[235]]+= _0xf598x2[_0xff99[117]]),_0xf598x3= mxUtils[_0xff99[433]](_0xf598x2[_0xff99[124]],mxConstants.STYLE_VERTICAL_LABEL_POSITION,mxConstants.ALIGN_MIDDLE),_0xf598x3== mxConstants[_0xff99[1687]]?_0xf598x13[_0xff99[236]]-= _0xf598x2[_0xff99[119]]:_0xf598x3== mxConstants[_0xff99[482]]&& (_0xf598x13[_0xff99[236]]+= _0xf598x2[_0xff99[119]]));return _0xf598x13};mxCellEditor[_0xff99[202]][_0xff99[2139]]= function(_0xf598x2){return this[_0xff99[2115]]};mxCellEditor[_0xff99[202]][_0xff99[2148]]= function(){return this[_0xff99[2111]]};mxCellEditor[_0xff99[202]][_0xff99[515]]= function(){null!= this[_0xff99[126]]&& (mxEvent[_0xff99[762]](this[_0xff99[126]]),null!= this[_0xff99[126]][_0xff99[265]]&& this[_0xff99[126]][_0xff99[265]][_0xff99[266]](this[_0xff99[126]]),this[_0xff99[126]]= null)};function mxCellRenderer(){}mxCellRenderer[_0xff99[202]][_0xff99[2149]]= mxConnector;mxCellRenderer[_0xff99[202]][_0xff99[2150]]= mxRectangleShape;mxCellRenderer[_0xff99[202]][_0xff99[2151]]= mxText;mxCellRenderer[_0xff99[202]][_0xff99[2152]]= !0;mxCellRenderer[_0xff99[202]][_0xff99[2153]]= {};mxCellRenderer[_0xff99[2154]]= function(_0xf598x2,_0xf598x3){mxCellRenderer[_0xff99[202]][_0xff99[2153]][_0xf598x2]= _0xf598x3};mxCellRenderer[_0xff99[2154]](mxConstants.SHAPE_RECTANGLE,mxRectangleShape);mxCellRenderer[_0xff99[2154]](mxConstants.SHAPE_ELLIPSE,mxEllipse);mxCellRenderer[_0xff99[2154]](mxConstants.SHAPE_RHOMBUS,mxRhombus);mxCellRenderer[_0xff99[2154]](mxConstants.SHAPE_CYLINDER,mxCylinder);mxCellRenderer[_0xff99[2154]](mxConstants.SHAPE_CONNECTOR,mxConnector);mxCellRenderer[_0xff99[2154]](mxConstants.SHAPE_ACTOR,mxActor);mxCellRenderer[_0xff99[2154]](mxConstants.SHAPE_TRIANGLE,mxTriangle);mxCellRenderer[_0xff99[2154]](mxConstants.SHAPE_HEXAGON,mxHexagon);mxCellRenderer[_0xff99[2154]](mxConstants.SHAPE_CLOUD,mxCloud);mxCellRenderer[_0xff99[2154]](mxConstants.SHAPE_LINE,mxLine);mxCellRenderer[_0xff99[2154]](mxConstants.SHAPE_ARROW,mxArrow);mxCellRenderer[_0xff99[2154]](mxConstants.SHAPE_DOUBLE_ELLIPSE,mxDoubleEllipse);mxCellRenderer[_0xff99[2154]](mxConstants.SHAPE_SWIMLANE,mxSwimlane);mxCellRenderer[_0xff99[2154]](mxConstants.SHAPE_IMAGE,mxImageShape);mxCellRenderer[_0xff99[2154]](mxConstants.SHAPE_LABEL,mxLabel);mxCellRenderer[_0xff99[202]][_0xff99[2155]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=_0xf598x2[_0xff99[441]][_0xff99[1179]][_0xff99[502]]();if(null!= _0xf598x2[_0xff99[441]][_0xff99[1179]][_0xff99[526]]&& null== _0xf598x2[_0xff99[253]]&& _0xf598x2[_0xff99[246]]!= _0xf598x2[_0xff99[441]][_0xff99[1741]]&& (_0xf598x4[_0xff99[1193]](_0xf598x2[_0xff99[246]])|| _0xf598x4[_0xff99[250]](_0xf598x2[_0xff99[246]]))){if(this[_0xff99[2156]](_0xf598x2),null!= _0xf598x2[_0xff99[253]]&& (null== _0xf598x3|| _0xf598x3)){this[_0xff99[2157]](_0xf598x2),_0xf598x2[_0xff99[441]][_0xff99[1179]][_0xff99[2158]]|| _0xf598x4[_0xff99[250]](_0xf598x2[_0xff99[246]])?_0xf598x2[_0xff99[2081]]= !0:_0xf598x2[_0xff99[441]][_0xff99[1179]][_0xff99[2159]]&& null!= this[_0xff99[2160]]&& (this[_0xff99[2160]][_0xff99[265]]== _0xf598x2[_0xff99[253]][_0xff99[252]][_0xff99[265]]?this[_0xff99[2161]](_0xf598x2,this[_0xff99[2160]]):this[_0xff99[2160]]= null),_0xf598x2[_0xff99[253]][_0xff99[255]]= _0xf598x2[_0xff99[441]][_0xff99[255]],this[_0xff99[2162]](_0xf598x2),this[_0xff99[2163]](_0xf598x2)}}};mxCellRenderer[_0xff99[202]][_0xff99[2157]]= function(_0xf598x2){_0xf598x2[_0xff99[253]][_0xff99[176]](_0xf598x2[_0xff99[441]][_0xff99[2024]]())};mxCellRenderer[_0xff99[202]][_0xff99[2164]]= function(_0xf598x2,_0xf598x3){for(var _0xf598x4=null,_0xf598x5=_0xf598x2[_0xff99[441]][_0xff99[1179]],_0xf598x9=_0xf598x5[_0xff99[502]](),_0xf598xa=_0xf598x2[_0xff99[246]],_0xf598x12=_0xf598x9[_0xff99[1197]](_0xf598xa);null!= _0xf598x12&& null== _0xf598x4;){_0xf598x4= this[_0xff99[2165]](_0xf598x5,_0xf598x12,_0xf598xa,_0xf598x3),_0xf598xa= _0xf598x12,_0xf598x12= _0xf598x9[_0xff99[1197]](_0xf598xa)};return _0xf598x4};mxCellRenderer[_0xff99[202]][_0xff99[2165]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){var _0xf598x9=null,_0xf598xa=_0xf598x2[_0xff99[502]]();for(_0xf598x4= null!= _0xf598x4?_0xf598x3[_0xff99[1738]](_0xf598x4)- 1:_0xf598xa[_0xff99[262]](_0xf598x3)- 1;0<= _0xf598x4&& null== _0xf598x9;_0xf598x4--){_0xf598x9= this[_0xff99[2165]](_0xf598x2,_0xf598xa[_0xff99[263]](_0xf598x3,_0xf598x4),null,_0xf598x5)};if(null== _0xf598x9&& (_0xf598x9= _0xf598x2[_0xff99[441]][_0xff99[248]](_0xf598x3),null!= _0xf598x9&& (null== _0xf598x9[_0xff99[253]]|| null== _0xf598x9[_0xff99[253]][_0xff99[252]]|| _0xf598x9[_0xff99[253]][_0xff99[252]][_0xff99[265]]!= _0xf598x5))){_0xf598x9= null};return _0xf598x9};mxCellRenderer[_0xff99[202]][_0xff99[2166]]= function(_0xf598x2){var _0xf598x3=_0xf598x2[_0xff99[253]][_0xff99[252]][_0xff99[265]],_0xf598x4=this[_0xff99[2164]](_0xf598x2,_0xf598x3),_0xf598x5=_0xf598x3[_0xff99[285]];null!= _0xf598x4&& (_0xf598x5= _0xf598x4[_0xff99[253]][_0xff99[252]],null!= _0xf598x4[_0xff99[963]]&& (null!= _0xf598x4[_0xff99[963]][_0xff99[252]]&& _0xf598x4[_0xff99[963]][_0xff99[252]][_0xff99[265]]== _0xf598x3)&& (_0xf598x5= _0xf598x4[_0xff99[963]][_0xff99[252]]),_0xf598x5= _0xf598x5[_0xff99[287]]);this[_0xff99[2161]](_0xf598x2,_0xf598x5)};mxCellRenderer[_0xff99[202]][_0xff99[2167]]= function(_0xf598x2){var _0xf598x3=_0xf598x2[_0xff99[441]],_0xf598x4=_0xf598x3[_0xff99[1179]][_0xff99[502]]();if(_0xf598x3[_0xff99[1179]][_0xff99[2159]]){if(null== this[_0xff99[2160]]|| null== this[_0xff99[2160]][_0xff99[265]]|| this[_0xff99[2160]][_0xff99[265]]!= _0xf598x2[_0xff99[253]][_0xff99[252]][_0xff99[265]]){this[_0xff99[2160]]= _0xf598x2[_0xff99[253]][_0xff99[252]]}}else {if(_0xf598x3[_0xff99[1179]][_0xff99[2168]]){var _0xf598x5=_0xf598x2[_0xff99[253]][_0xff99[252]],_0xf598x9=_0xf598x5[_0xff99[265]],_0xf598x4=_0xf598x4[_0xff99[1197]](_0xf598x2[_0xff99[246]]),_0xf598x3=_0xf598x3[_0xff99[248]](_0xf598x4),_0xf598x9=null!= _0xf598x3&& null!= _0xf598x3[_0xff99[253]]&& null!= _0xf598x3[_0xff99[253]][_0xff99[252]]?_0xf598x3[_0xff99[253]][_0xff99[252]][_0xff99[287]]:_0xf598x9[_0xff99[285]];null!= _0xf598x9&& _0xf598x9!= _0xf598x5&& this[_0xff99[2161]](_0xf598x2,_0xf598x9)}}};mxCellRenderer[_0xff99[202]][_0xff99[2161]]= function(_0xf598x2,_0xf598x3){_0xf598x2[_0xff99[253]][_0xff99[252]][_0xff99[265]][_0xff99[950]](_0xf598x2[_0xff99[253]][_0xff99[252]],_0xf598x3);null!= _0xf598x2[_0xff99[963]]&& (null!= _0xf598x2[_0xff99[963]][_0xff99[252]]&& _0xf598x2[_0xff99[963]][_0xff99[252]][_0xff99[265]]== _0xf598x2[_0xff99[253]][_0xff99[252]][_0xff99[265]])&& _0xf598x2[_0xff99[253]][_0xff99[252]][_0xff99[265]][_0xff99[950]](_0xf598x2[_0xff99[963]][_0xff99[252]],_0xf598x2[_0xff99[253]][_0xff99[252]][_0xff99[287]])};mxCellRenderer[_0xff99[202]][_0xff99[2156]]= function(_0xf598x2){if(null!= _0xf598x2[_0xff99[124]]){var _0xf598x3=mxStencilRegistry[_0xff99[1560]](_0xf598x2[_0xff99[124]][mxConstants[_0xff99[2059]]]);null!= _0xf598x3?_0xf598x2[_0xff99[253]]= new mxShape(_0xf598x3):(_0xf598x3= this[_0xff99[2169]](_0xf598x2),_0xf598x2[_0xff99[253]]= new _0xf598x3);_0xf598x2[_0xff99[253]][_0xff99[1525]]= _0xf598x2[_0xff99[439]];_0xf598x2[_0xff99[253]][_0xff99[1562]]= new mxRectangle(_0xf598x2[_0xff99[235]],_0xf598x2[_0xff99[236]],_0xf598x2[_0xff99[117]],_0xf598x2[_0xff99[119]]);_0xf598x2[_0xff99[253]][_0xff99[507]]= _0xf598x2[_0xff99[441]][_0xff99[1179]][_0xff99[507]];this[_0xff99[2170]](_0xf598x2)}};mxCellRenderer[_0xff99[202]][_0xff99[2171]]= function(_0xf598x2){return null!= _0xf598x2?mxCellRenderer[_0xff99[202]][_0xff99[2153]][_0xf598x2]:null};mxCellRenderer[_0xff99[202]][_0xff99[2169]]= function(_0xf598x2){var _0xf598x3=this[_0xff99[2171]](_0xf598x2[_0xff99[124]][mxConstants[_0xff99[2059]]]);null== _0xf598x3&& (_0xf598x3= _0xf598x2[_0xff99[441]][_0xff99[1179]][_0xff99[502]]()[_0xff99[250]](_0xf598x2[_0xff99[246]])?this[_0xff99[2149]]:this[_0xff99[2150]]);return _0xf598x3};mxCellRenderer[_0xff99[202]][_0xff99[2170]]= function(_0xf598x2){_0xf598x2[_0xff99[253]][_0xff99[183]](_0xf598x2);_0xf598x2[_0xff99[253]][_0xff99[618]]= _0xf598x2[_0xff99[441]][_0xff99[1179]][_0xff99[1202]](_0xf598x2);_0xf598x2[_0xff99[253]][_0xff99[630]]= this[_0xff99[2171]](_0xf598x2[_0xff99[441]][_0xff99[1179]][_0xff99[2172]](_0xf598x2));_0xf598x2[_0xff99[253]][_0xff99[632]]= _0xf598x2[_0xff99[441]][_0xff99[1179]][_0xff99[2173]](_0xf598x2);_0xf598x2[_0xff99[253]][_0xff99[634]]= _0xf598x2[_0xff99[441]][_0xff99[1179]][_0xff99[2174]](_0xf598x2);_0xf598x2[_0xff99[253]][_0xff99[638]]= _0xf598x2[_0xff99[124]][mxConstants[_0xff99[2175]]];_0xf598x2[_0xff99[253]][_0xff99[631]]= _0xf598x2[_0xff99[441]][_0xff99[1179]][_0xff99[2176]](_0xf598x2);this[_0xff99[2177]](_0xf598x2)};mxCellRenderer[_0xff99[202]][_0xff99[2177]]= function(_0xf598x2){null!= _0xf598x2[_0xff99[253]]&& (this[_0xff99[2178]](_0xf598x2,_0xff99[632],mxConstants.STYLE_FILLCOLOR),this[_0xff99[2178]](_0xf598x2,_0xff99[634],mxConstants.STYLE_GRADIENTCOLOR),this[_0xff99[2178]](_0xf598x2,_0xff99[1334],mxConstants.STYLE_FILLCOLOR),this[_0xff99[2178]](_0xf598x2,_0xff99[1336],mxConstants.STYLE_STROKECOLOR),this[_0xff99[2178]](_0xf598x2,_0xff99[1299],mxConstants.STYLE_GRADIENTCOLOR))};mxCellRenderer[_0xff99[202]][_0xff99[2178]]= function(_0xf598x2,_0xf598x3,_0xf598x4){var _0xf598x5=_0xf598x2[_0xff99[253]][_0xf598x3],_0xf598x9=_0xf598x2[_0xff99[441]][_0xff99[1179]],_0xf598xa=null;_0xff99[1549]== _0xf598x5?_0xf598xa= _0xf598x9[_0xff99[251]][_0xff99[1197]](_0xf598x2[_0xff99[246]]):_0xff99[687]== _0xf598x5?(_0xf598xa= null!= _0xf598x9[_0xff99[251]][_0xff99[1709]](_0xf598x2[_0xff99[246]],!1)?_0xf598x9[_0xff99[251]][_0xff99[1709]](_0xf598x2[_0xff99[246]],!1):_0xf598x2[_0xff99[246]],_0xf598xa= _0xf598x9[_0xff99[2179]](_0xf598xa),_0xf598x4= _0xf598x9[_0xff99[2180]]):_0xff99[2181]== _0xf598x5&& (_0xf598x2[_0xff99[253]][_0xf598x3]= _0xf598x2[_0xff99[253]][_0xff99[632]]);null!= _0xf598xa&& (_0xf598x5= _0xf598x9[_0xff99[249]]()[_0xff99[248]](_0xf598xa),_0xf598x2[_0xff99[253]][_0xf598x3]= null,null!= _0xf598x5&& (_0xf598x2[_0xff99[253]][_0xf598x3]= null!= _0xf598x5[_0xff99[253]]&& _0xff99[632]!= _0xf598x3?_0xf598x5[_0xff99[253]][_0xf598x3]:_0xf598x5[_0xff99[124]][_0xf598x4]))};mxCellRenderer[_0xff99[202]][_0xff99[2182]]= function(_0xf598x2){return _0xf598x2[_0xff99[441]][_0xff99[1179]][_0xff99[2183]](_0xf598x2[_0xff99[246]])};mxCellRenderer[_0xff99[202]][_0xff99[2184]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=_0xf598x2[_0xff99[441]][_0xff99[1179]];_0xf598x4[_0xff99[502]]()[_0xff99[250]](_0xf598x2[_0xff99[246]]);if(0< _0xf598x2[_0xff99[124]][mxConstants[_0xff99[2185]]]|| null== _0xf598x2[_0xff99[124]][mxConstants[_0xff99[2185]]]){var _0xf598x5=_0xf598x4[_0xff99[2186]](_0xf598x2[_0xff99[246]])|| null!= _0xf598x3&& mxUtils[_0xff99[1331]](_0xf598x3);_0xf598x2[_0xff99[963]]= new this[_0xff99[2151]](_0xf598x3, new mxRectangle,_0xf598x2[_0xff99[124]][mxConstants[_0xff99[2064]]]|| mxConstants[_0xff99[479]],_0xf598x4[_0xff99[2187]](_0xf598x2),_0xf598x2[_0xff99[124]][mxConstants[_0xff99[2069]]],_0xf598x2[_0xff99[124]][mxConstants[_0xff99[2188]]],_0xf598x2[_0xff99[124]][mxConstants[_0xff99[2185]]],_0xf598x2[_0xff99[124]][mxConstants[_0xff99[2189]]],_0xf598x2[_0xff99[124]][mxConstants[_0xff99[2143]]],_0xf598x2[_0xff99[124]][mxConstants[_0xff99[2144]]],_0xf598x2[_0xff99[124]][mxConstants[_0xff99[2145]]],_0xf598x2[_0xff99[124]][mxConstants[_0xff99[2146]]],_0xf598x2[_0xff99[124]][mxConstants[_0xff99[2147]]],_0xf598x2[_0xff99[124]][mxConstants[_0xff99[2190]]],_0xf598x2[_0xff99[124]][mxConstants[_0xff99[2191]]],_0xf598x2[_0xff99[124]][mxConstants[_0xff99[2192]]],_0xf598x4[_0xff99[2131]](_0xf598x2[_0xff99[246]])&& _0xf598x4[_0xff99[2186]](_0xf598x2[_0xff99[246]]),_0xf598x4[_0xff99[2130]](_0xf598x2[_0xff99[246]]),_0xf598x2[_0xff99[124]][mxConstants[_0xff99[2193]]],_0xf598x2[_0xff99[124]][mxConstants[_0xff99[2194]]]);_0xf598x2[_0xff99[963]][_0xff99[461]]= mxUtils[_0xff99[433]](_0xf598x2[_0xff99[124]],mxConstants.STYLE_TEXT_OPACITY,100);_0xf598x2[_0xff99[963]][_0xff99[507]]= _0xf598x5?mxConstants[_0xff99[1656]]:_0xf598x2[_0xff99[441]][_0xff99[1179]][_0xff99[507]];_0xf598x2[_0xff99[963]][_0xff99[724]]= _0xf598x2;this[_0xff99[2195]](_0xf598x2);var _0xf598x9=!1,_0xf598xa=function(_0xf598x3){var _0xf598x5=_0xf598x2;if(mxClient[_0xff99[754]]|| _0xf598x9){_0xf598x5= mxEvent[_0xff99[731]](_0xf598x3),_0xf598x3= mxEvent[_0xff99[733]](_0xf598x3),_0xf598x3= mxUtils[_0xff99[2196]](_0xf598x4[_0xff99[526]],_0xf598x5,_0xf598x3),_0xf598x5= _0xf598x4[_0xff99[441]][_0xff99[248]](_0xf598x4[_0xff99[999]](_0xf598x3[_0xff99[235]],_0xf598x3[_0xff99[236]]))};return _0xf598x5};mxEvent[_0xff99[759]](_0xf598x2[_0xff99[963]][_0xff99[252]],mxUtils[_0xff99[885]](this,function(_0xf598x3){this[_0xff99[2197]](_0xf598x2,_0xf598x3)&& (_0xf598x4[_0xff99[758]](mxEvent.MOUSE_DOWN, new mxMouseEvent(_0xf598x3,_0xf598x2)),_0xf598x9= _0xf598x4[_0xff99[507]]!= mxConstants[_0xff99[508]]&& _0xff99[2198]== mxEvent[_0xff99[728]](_0xf598x3)[_0xff99[301]])}),mxUtils[_0xff99[885]](this,function(_0xf598x3){this[_0xff99[2197]](_0xf598x2,_0xf598x3)&& _0xf598x4[_0xff99[758]](mxEvent.MOUSE_MOVE, new mxMouseEvent(_0xf598x3,_0xf598xa(_0xf598x3)))}),mxUtils[_0xff99[885]](this,function(_0xf598x3){this[_0xff99[2197]](_0xf598x2,_0xf598x3)&& (_0xf598x4[_0xff99[758]](mxEvent.MOUSE_UP, new mxMouseEvent(_0xf598x3,_0xf598xa(_0xf598x3))),_0xf598x9= !1)}));mxEvent[_0xff99[169]](_0xf598x2[_0xff99[963]][_0xff99[252]],_0xff99[760],mxUtils[_0xff99[885]](this,function(_0xf598x3){this[_0xff99[2197]](_0xf598x2,_0xf598x3)&& (_0xf598x4[_0xff99[761]](_0xf598x3,_0xf598x2[_0xff99[246]]),mxEvent[_0xff99[722]](_0xf598x3))}))}};mxCellRenderer[_0xff99[202]][_0xff99[2195]]= function(_0xf598x2){var _0xf598x3=_0xf598x2[_0xff99[441]][_0xff99[1179]];_0xf598x2[_0xff99[963]][_0xff99[507]]!= mxConstants[_0xff99[508]]&& (mxClient[_0xff99[48]]&& mxClient[_0xff99[2199]]?_0xf598x2[_0xff99[963]][_0xff99[176]](_0xf598x3[_0xff99[526]]):mxUtils[_0xff99[458]](_0xf598x2[_0xff99[441]][_0xff99[2024]]())&& (null!= _0xf598x2[_0xff99[253]][_0xff99[685]]?_0xf598x2[_0xff99[963]][_0xff99[176]](_0xf598x2[_0xff99[253]][_0xff99[685]]):_0xf598x2[_0xff99[963]][_0xff99[176]](_0xf598x2[_0xff99[253]][_0xff99[252]])));null== _0xf598x2[_0xff99[963]][_0xff99[252]]&& (_0xf598x2[_0xff99[963]][_0xff99[176]](_0xf598x2[_0xff99[441]][_0xff99[2024]]()),null!= _0xf598x2[_0xff99[253]]&& null!= _0xf598x2[_0xff99[963]]&& _0xf598x2[_0xff99[253]][_0xff99[252]][_0xff99[265]][_0xff99[950]](_0xf598x2[_0xff99[963]][_0xff99[252]],_0xf598x2[_0xff99[253]][_0xff99[252]][_0xff99[287]]))};mxCellRenderer[_0xff99[202]][_0xff99[2162]]= function(_0xf598x2){var _0xf598x3=_0xf598x2[_0xff99[441]][_0xff99[1179]][_0xff99[2200]](_0xf598x2[_0xff99[246]]),_0xf598x4=null;if(null!= _0xf598x3){for(var _0xf598x4= new mxDictionary,_0xf598x5=0;_0xf598x5< _0xf598x3[_0xff99[67]];_0xf598x5++){var _0xf598x9=null!= _0xf598x2[_0xff99[1211]]?_0xf598x2[_0xff99[1211]][_0xff99[205]](_0xf598x3[_0xf598x5]):null;null== _0xf598x9&& (_0xf598x9= new mxImageShape( new mxRectangle,_0xf598x3[_0xf598x5][_0xff99[618]][_0xff99[390]]),_0xf598x9[_0xff99[507]]= _0xf598x2[_0xff99[441]][_0xff99[1179]][_0xff99[507]],_0xf598x9[_0xff99[1674]]= !1,_0xf598x9[_0xff99[2201]]= _0xf598x3[_0xf598x5],this[_0xff99[2023]](_0xf598x2,_0xf598x9),this[_0xff99[2202]](_0xf598x2,_0xf598x3[_0xf598x5],_0xf598x9),null!= _0xf598x3[_0xf598x5][_0xff99[270]]&& (_0xf598x9[_0xff99[252]][_0xff99[124]][_0xff99[270]]= _0xf598x3[_0xf598x5][_0xff99[270]]));_0xf598x4[_0xff99[204]](_0xf598x3[_0xf598x5],_0xf598x9)}};null!= _0xf598x2[_0xff99[1211]]&& _0xf598x2[_0xff99[1211]][_0xff99[209]](function(_0xf598x2,_0xf598x3){_0xf598x3[_0xff99[515]]()});_0xf598x2[_0xff99[1211]]= _0xf598x4};mxCellRenderer[_0xff99[202]][_0xff99[2023]]= function(_0xf598x2,_0xf598x3){_0xf598x3[_0xff99[176]](_0xf598x2[_0xff99[441]][_0xff99[1524]]())};mxCellRenderer[_0xff99[202]][_0xff99[2202]]= function(_0xf598x2,_0xf598x3,_0xf598x4){var _0xf598x5=_0xf598x2[_0xff99[441]][_0xff99[1179]];mxEvent[_0xff99[169]](_0xf598x4[_0xff99[252]],_0xff99[173],function(_0xf598x4){_0xf598x5[_0xff99[2203]]()&& _0xf598x5[_0xff99[2126]](!_0xf598x5[_0xff99[2134]]());_0xf598x3[_0xff99[746]]( new mxEventObject(mxEvent.CLICK,_0xff99[763],_0xf598x4,_0xff99[246],_0xf598x2[_0xff99[246]]))});mxEvent[_0xff99[759]](_0xf598x4[_0xff99[252]],function(_0xf598x2){mxEvent[_0xff99[722]](_0xf598x2)},function(_0xf598x3){_0xf598x5[_0xff99[758]](mxEvent.MOUSE_MOVE, new mxMouseEvent(_0xf598x3,_0xf598x2))});mxClient[_0xff99[754]]&& mxEvent[_0xff99[169]](_0xf598x4[_0xff99[252]],_0xff99[757],function(_0xf598x4){_0xf598x3[_0xff99[746]]( new mxEventObject(mxEvent.CLICK,_0xff99[763],_0xf598x4,_0xff99[246],_0xf598x2[_0xff99[246]]))})};mxCellRenderer[_0xff99[202]][_0xff99[2204]]= function(_0xf598x2){var _0xf598x3=_0xf598x2[_0xff99[441]][_0xff99[1179]],_0xf598x4=_0xf598x3[_0xff99[2205]](_0xf598x2);if(_0xf598x3[_0xff99[2206]]&& null!= _0xf598x4){if(null== _0xf598x2[_0xff99[2207]]){var _0xf598x5= new mxRectangle(0,0,_0xf598x4[_0xff99[117]],_0xf598x4[_0xff99[119]]);_0xf598x2[_0xff99[2207]]= new mxImageShape(_0xf598x5,_0xf598x4[_0xff99[390]]);_0xf598x2[_0xff99[2207]][_0xff99[1674]]= !1;_0xf598x2[_0xff99[2207]][_0xff99[507]]= _0xf598x3[_0xff99[507]];this[_0xff99[2208]](_0xf598x2,_0xf598x2[_0xff99[2207]],!0,function(_0xf598x4){if(_0xf598x3[_0xff99[994]]()){var _0xf598x5=!_0xf598x3[_0xff99[1742]](_0xf598x2[_0xff99[246]]);_0xf598x3[_0xff99[847]](_0xf598x5,!1,[_0xf598x2[_0xff99[246]]]);mxEvent[_0xff99[722]](_0xf598x4)}})}}else {null!= _0xf598x2[_0xff99[2207]]&& (_0xf598x2[_0xff99[2207]][_0xff99[515]](),_0xf598x2[_0xff99[2207]]= null)}};mxCellRenderer[_0xff99[202]][_0xff99[2208]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){var _0xf598x9=_0xf598x2[_0xff99[441]][_0xff99[1179]];_0xf598x9[_0xff99[2186]](_0xf598x2[_0xff99[246]])&& mxClient[_0xff99[2199]]&& _0xf598x9[_0xff99[507]]== mxConstants[_0xff99[508]]?(_0xf598x3[_0xff99[507]]= mxConstants[_0xff99[2209]],_0xf598x3[_0xff99[176]](_0xf598x9[_0xff99[526]]),_0xf598x3[_0xff99[252]][_0xff99[124]][_0xff99[931]]= 1):_0xf598x3[_0xff99[176]](_0xf598x2[_0xff99[441]][_0xff99[1524]]());_0xf598x3= _0xf598x3[_0xff99[2210]]|| _0xf598x3[_0xff99[252]];_0xf598x5&& (_0xf598x9[_0xff99[994]]()&& (_0xf598x3[_0xff99[124]][_0xff99[270]]= _0xff99[356]),mxEvent[_0xff99[169]](_0xf598x3,_0xff99[173],_0xf598x5));_0xf598x4&& mxEvent[_0xff99[759]](_0xf598x3,function(_0xf598x3){_0xf598x9[_0xff99[758]](mxEvent.MOUSE_DOWN, new mxMouseEvent(_0xf598x3,_0xf598x2));mxEvent[_0xff99[722]](_0xf598x3)},function(_0xf598x3){_0xf598x9[_0xff99[758]](mxEvent.MOUSE_MOVE, new mxMouseEvent(_0xf598x3,_0xf598x2))});return _0xf598x3};mxCellRenderer[_0xff99[202]][_0xff99[2211]]= function(_0xf598x2,_0xf598x3){return !0};mxCellRenderer[_0xff99[202]][_0xff99[2197]]= function(_0xf598x2,_0xf598x3){return !0};mxCellRenderer[_0xff99[202]][_0xff99[2163]]= function(_0xf598x2){var _0xf598x3=_0xf598x2[_0xff99[441]][_0xff99[1179]],_0xf598x4=function(_0xf598x4){var _0xf598x5=_0xf598x2;if(_0xf598x3[_0xff99[507]]!= mxConstants[_0xff99[508]]&& _0xff99[2198]== mxEvent[_0xff99[728]](_0xf598x4)[_0xff99[301]]|| mxClient[_0xff99[754]]){_0xf598x5= mxEvent[_0xff99[731]](_0xf598x4),_0xf598x4= mxEvent[_0xff99[733]](_0xf598x4),_0xf598x4= mxUtils[_0xff99[2196]](_0xf598x3[_0xff99[526]],_0xf598x5,_0xf598x4),_0xf598x5= _0xf598x3[_0xff99[441]][_0xff99[248]](_0xf598x3[_0xff99[999]](_0xf598x4[_0xff99[235]],_0xf598x4[_0xff99[236]]))};return _0xf598x5},_0xf598x5=!1;mxEvent[_0xff99[169]](_0xf598x2[_0xff99[253]][_0xff99[252]],_0xff99[2212],mxUtils[_0xff99[885]](this,function(_0xf598x2){_0xf598x3[_0xff99[2213]]= 0;_0xf598x5= !0;mxEvent[_0xff99[722]](_0xf598x2)}));mxEvent[_0xff99[759]](_0xf598x2[_0xff99[253]][_0xff99[252]],mxUtils[_0xff99[885]](this,function(_0xf598x4){this[_0xff99[2211]](_0xf598x2,_0xf598x4)&& !_0xf598x5?_0xf598x3[_0xff99[758]](mxEvent.MOUSE_DOWN, new mxMouseEvent(_0xf598x4,null!= _0xf598x2[_0xff99[253]]&& mxEvent[_0xff99[728]](_0xf598x4)== _0xf598x2[_0xff99[253]][_0xff99[905]]?null:_0xf598x2)):_0xf598x5&& mxEvent[_0xff99[722]](_0xf598x4)}),mxUtils[_0xff99[885]](this,function(_0xf598x9){this[_0xff99[2211]](_0xf598x2,_0xf598x9)&& !_0xf598x5?_0xf598x3[_0xff99[758]](mxEvent.MOUSE_MOVE, new mxMouseEvent(_0xf598x9,null!= _0xf598x2[_0xff99[253]]&& mxEvent[_0xff99[728]](_0xf598x9)== _0xf598x2[_0xff99[253]][_0xff99[905]]?null:_0xf598x4(_0xf598x9))):_0xf598x5&& mxEvent[_0xff99[722]](_0xf598x9)}),mxUtils[_0xff99[885]](this,function(_0xf598x9){this[_0xff99[2211]](_0xf598x2,_0xf598x9)&& !_0xf598x5?_0xf598x3[_0xff99[758]](mxEvent.MOUSE_UP, new mxMouseEvent(_0xf598x9,null!= _0xf598x2[_0xff99[253]]&& mxEvent[_0xff99[728]](_0xf598x9)== _0xf598x2[_0xff99[253]][_0xff99[905]]?null:_0xf598x4(_0xf598x9))):_0xf598x5&& mxEvent[_0xff99[722]](_0xf598x9)}));var _0xf598x9=mxClient[_0xff99[754]]?_0xff99[2214]:_0xff99[760];mxEvent[_0xff99[169]](_0xf598x2[_0xff99[253]][_0xff99[252]],_0xf598x9,mxUtils[_0xff99[885]](this,function(_0xf598x4){_0xf598x5= !1;_0xff99[2214]== _0xf598x9?(_0xf598x3[_0xff99[2213]]= 0,_0xf598x3[_0xff99[2215]]&& (_0xf598x3[_0xff99[2216]](_0xf598x2,_0xf598x4),mxEvent[_0xff99[722]](_0xf598x4))):this[_0xff99[2211]](_0xf598x2,_0xf598x4)&& (_0xf598x3[_0xff99[761]](_0xf598x4,null!= _0xf598x2[_0xff99[253]]&& mxEvent[_0xff99[728]](_0xf598x4)== _0xf598x2[_0xff99[253]][_0xff99[905]]?null:_0xf598x2[_0xff99[246]]),mxEvent[_0xff99[722]](_0xf598x4))}))};mxCellRenderer[_0xff99[202]][_0xff99[2217]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=this[_0xff99[2182]](_0xf598x2);if(null== _0xf598x2[_0xff99[963]]&& null!= _0xf598x4&& (mxUtils[_0xff99[1331]](_0xf598x4)|| 0< _0xf598x4[_0xff99[67]])){this[_0xff99[2184]](_0xf598x2,_0xf598x4)}else {if(null!= _0xf598x2[_0xff99[963]]&& (null== _0xf598x4|| 0== _0xf598x4[_0xff99[67]])){_0xf598x2[_0xff99[963]][_0xff99[515]](),_0xf598x2[_0xff99[963]]= null}};if(null!= _0xf598x2[_0xff99[963]]){var _0xf598x5=_0xf598x2[_0xff99[441]][_0xff99[1179]],_0xf598x9=_0xf598x5[_0xff99[2131]](_0xf598x2[_0xff99[246]]),_0xf598x5=_0xf598x5[_0xff99[2130]](_0xf598x2[_0xff99[246]]),_0xf598xa=this[_0xff99[2218]](_0xf598x2);if(_0xf598x3|| _0xf598x2[_0xff99[963]][_0xff99[131]]!= _0xf598x4|| _0xf598x2[_0xff99[963]][_0xff99[2131]]!= _0xf598x9|| _0xf598x2[_0xff99[963]][_0xff99[2219]]!= _0xf598x5|| _0xf598x2[_0xff99[963]][_0xff99[255]]!= _0xf598x2[_0xff99[441]][_0xff99[255]]|| !_0xf598x2[_0xff99[963]][_0xff99[1562]][_0xff99[237]](_0xf598xa)){_0xf598x2[_0xff99[963]][_0xff99[131]]= _0xf598x4,_0xf598x2[_0xff99[963]][_0xff99[1562]]= _0xf598xa,_0xf598x2[_0xff99[963]][_0xff99[255]]= this[_0xff99[2220]](_0xf598x2),_0xf598x2[_0xff99[963]][_0xff99[2131]]= _0xf598x9,_0xf598x2[_0xff99[963]][_0xff99[2219]]= _0xf598x5,_0xf598x2[_0xff99[963]][_0xff99[258]]()}}};mxCellRenderer[_0xff99[202]][_0xff99[2220]]= function(_0xf598x2){return _0xf598x2[_0xff99[441]][_0xff99[255]]};mxCellRenderer[_0xff99[202]][_0xff99[2218]]= function(_0xf598x2){var _0xf598x3=_0xf598x2[_0xff99[441]][_0xff99[1179]],_0xf598x4=_0xf598x2[_0xff99[441]][_0xff99[255]],_0xf598x5=_0xf598x3[_0xff99[502]]()[_0xff99[250]](_0xf598x2[_0xff99[246]]),_0xf598x9= new mxRectangle(_0xf598x2[_0xff99[2079]][_0xff99[235]],_0xf598x2[_0xff99[2079]][_0xff99[236]]);_0xf598x2[_0xff99[963]][_0xff99[1672]]();_0xf598x5?(_0xf598x5= _0xf598x2[_0xff99[963]][_0xff99[1673]](),_0xf598x9[_0xff99[235]]+= _0xf598x5[_0xff99[235]]* _0xf598x4,_0xf598x9[_0xff99[236]]+= _0xf598x5[_0xff99[236]]* _0xf598x4,_0xf598x3= _0xf598x3[_0xff99[1198]](_0xf598x2[_0xff99[246]]),null!= _0xf598x3&& (_0xf598x9[_0xff99[117]]= Math[_0xff99[160]](0,_0xf598x2[_0xff99[963]][_0xff99[1655]][_0xff99[235]]* _0xf598x3[_0xff99[117]]* _0xf598x4- _0xf598x2[_0xff99[963]][_0xff99[659]]* _0xf598x4- _0xf598x2[_0xff99[963]][_0xff99[661]]* _0xf598x4),_0xf598x9[_0xff99[119]]= Math[_0xff99[160]](0,_0xf598x2[_0xff99[963]][_0xff99[1655]][_0xff99[236]]* _0xf598x3[_0xff99[119]]* _0xf598x4- _0xf598x2[_0xff99[963]][_0xff99[658]]* _0xf598x4- _0xf598x2[_0xff99[963]][_0xff99[660]]* _0xf598x4))):(_0xf598x2[_0xff99[963]][_0xff99[1590]]()&& (_0xf598x5= _0xf598x9[_0xff99[235]],_0xf598x9[_0xff99[235]]= _0xf598x9[_0xff99[236]],_0xf598x9[_0xff99[236]]= _0xf598x5),_0xf598x9[_0xff99[235]]+= _0xf598x2[_0xff99[235]],_0xf598x9[_0xff99[236]]+= _0xf598x2[_0xff99[236]],_0xf598x9[_0xff99[117]]= Math[_0xff99[160]](1,_0xf598x2[_0xff99[117]]),_0xf598x9[_0xff99[119]]= Math[_0xff99[160]](1,_0xf598x2[_0xff99[119]]),_0xf598x3[_0xff99[1730]](_0xf598x2[_0xff99[246]])&& (_0xf598x3= _0xf598x3[_0xff99[1731]](_0xf598x2[_0xff99[246]]),0< _0xf598x3[_0xff99[117]]?(_0xf598x5= Math[_0xff99[243]](_0xf598x9[_0xff99[117]],_0xf598x3[_0xff99[117]]* _0xf598x4),_0xf598x2[_0xff99[253]][_0xff99[623]]&& (_0xf598x9[_0xff99[235]]+= _0xf598x9[_0xff99[117]]- _0xf598x5),_0xf598x9[_0xff99[117]]= _0xf598x5):0< _0xf598x3[_0xff99[119]]&& (_0xf598x5= Math[_0xff99[243]](_0xf598x9[_0xff99[119]],_0xf598x3[_0xff99[119]]* _0xf598x4),_0xf598x2[_0xff99[253]][_0xff99[624]]&& (_0xf598x9[_0xff99[236]]+= _0xf598x9[_0xff99[119]]- _0xf598x5),_0xf598x9[_0xff99[119]]= _0xf598x5)),this[_0xff99[2221]](_0xf598x2,_0xf598x9));return _0xf598x9};mxCellRenderer[_0xff99[202]][_0xff99[2221]]= function(_0xf598x2,_0xf598x3){if(_0xf598x2[_0xff99[963]][_0xff99[1590]]()){var _0xf598x4=(_0xf598x2[_0xff99[117]]- _0xf598x2[_0xff99[119]])/ 2;_0xf598x3[_0xff99[235]]+= _0xf598x4;_0xf598x3[_0xff99[236]]-= _0xf598x4;_0xf598x4= _0xf598x3[_0xff99[117]];_0xf598x3[_0xff99[117]]= _0xf598x3[_0xff99[119]];_0xf598x3[_0xff99[119]]= _0xf598x4};_0xf598x3[_0xff99[235]]-= _0xf598x2[_0xff99[963]][_0xff99[1655]][_0xff99[235]]* _0xf598x3[_0xff99[117]];_0xf598x3[_0xff99[236]]-= _0xf598x2[_0xff99[963]][_0xff99[1655]][_0xff99[236]]* _0xf598x3[_0xff99[119]];if(_0xff99[1334]!= _0xf598x2[_0xff99[124]][mxConstants[_0xff99[2193]]]){var _0xf598x4=_0xf598x2[_0xff99[441]][_0xff99[255]],_0xf598x5=_0xf598x2[_0xff99[963]][_0xff99[1673]]();_0xf598x3[_0xff99[235]]+= _0xf598x5[_0xff99[235]]* _0xf598x4;_0xf598x3[_0xff99[236]]+= _0xf598x5[_0xff99[236]]* _0xf598x4;_0xf598x3[_0xff99[117]]= Math[_0xff99[160]](0,_0xf598x3[_0xff99[117]]- _0xf598x2[_0xff99[963]][_0xff99[659]]* _0xf598x4- _0xf598x2[_0xff99[963]][_0xff99[661]]* _0xf598x4);_0xf598x3[_0xff99[119]]= Math[_0xff99[160]](0,_0xf598x3[_0xff99[119]]- _0xf598x2[_0xff99[963]][_0xff99[658]]* _0xf598x4- _0xf598x2[_0xff99[963]][_0xff99[660]]* _0xf598x4)};var _0xf598x9=_0xf598x2[_0xff99[963]][_0xff99[1615]]();if(0!= _0xf598x9&& (null!= _0xf598x2&& _0xf598x2[_0xff99[441]][_0xff99[1179]][_0xff99[251]][_0xff99[1193]](_0xf598x2[_0xff99[246]]))&& (_0xf598x4= _0xf598x2[_0xff99[241]](),_0xf598x5= _0xf598x2[_0xff99[242]](),_0xf598x3[_0xff99[235]]!= _0xf598x4|| _0xf598x3[_0xff99[236]]!= _0xf598x5)){_0xf598x9*= Math[_0xff99[424]]/ 180,pt= mxUtils[_0xff99[432]]( new mxPoint(_0xf598x3[_0xff99[235]],_0xf598x3[_0xff99[236]]),Math[_0xff99[426]](_0xf598x9),Math[_0xff99[427]](_0xf598x9), new mxPoint(_0xf598x4,_0xf598x5)),_0xf598x3[_0xff99[235]]= pt[_0xff99[235]],_0xf598x3[_0xff99[236]]= pt[_0xff99[236]]}};mxCellRenderer[_0xff99[202]][_0xff99[2222]]= function(_0xf598x2,_0xf598x3){this[_0xff99[2162]](_0xf598x2);if(null!= _0xf598x2[_0xff99[1211]]){var _0xf598x4=mxUtils[_0xff99[1454]](mxUtils[_0xff99[433]](_0xf598x2[_0xff99[124]],mxConstants.STYLE_ROTATION,0),90),_0xf598x5=mxUtils[_0xff99[431]](_0xf598x4),_0xf598x9=Math[_0xff99[426]](_0xf598x5),_0xf598xa=Math[_0xff99[427]](_0xf598x5);_0xf598x2[_0xff99[1211]][_0xff99[209]](function(_0xf598x5,_0xf598x13){var _0xf598x14=_0xf598x13[_0xff99[2201]][_0xff99[1799]](_0xf598x2);if(!_0xf598x2[_0xff99[441]][_0xff99[1179]][_0xff99[502]]()[_0xff99[250]](_0xf598x2[_0xff99[246]])&& null!= _0xf598x2[_0xff99[253]] && 0!= _0xf598x4){var _0xf598x15=_0xf598x14[_0xff99[241]](),_0xf598x16=_0xf598x14[_0xff99[242]](),_0xf598x16=mxUtils[_0xff99[432]]( new mxPoint(_0xf598x15,_0xf598x16),_0xf598x9,_0xf598xa, new mxPoint(_0xf598x2[_0xff99[241]](),_0xf598x2[_0xff99[242]]())),_0xf598x15=_0xf598x16[_0xff99[235]],_0xf598x16=_0xf598x16[_0xff99[236]];_0xf598x14[_0xff99[235]]= Math[_0xff99[488]](_0xf598x15- _0xf598x14[_0xff99[117]]/ 2);_0xf598x14[_0xff99[236]]= Math[_0xff99[488]](_0xf598x16- _0xf598x14[_0xff99[119]]/ 2)};if(_0xf598x3|| null== _0xf598x13[_0xff99[1562]]|| _0xf598x13[_0xff99[255]]!= _0xf598x2[_0xff99[441]][_0xff99[255]]|| !_0xf598x13[_0xff99[1562]][_0xff99[237]](_0xf598x14)){_0xf598x13[_0xff99[1562]]= _0xf598x14,_0xf598x13[_0xff99[255]]= _0xf598x2[_0xff99[441]][_0xff99[255]],_0xf598x13[_0xff99[258]]()}})}};mxCellRenderer[_0xff99[202]][_0xff99[2223]]= function(_0xf598x2,_0xf598x3){if(null!= _0xf598x2[_0xff99[2207]]){var _0xf598x4=this[_0xff99[2224]](_0xf598x2),_0xf598x5=this[_0xff99[2152]]?mxUtils[_0xff99[433]](_0xf598x2[_0xff99[124]],mxConstants.STYLE_ROTATION,0):_0xf598x2[_0xff99[253]][_0xff99[1615]](),_0xf598x9=_0xf598x2[_0xff99[441]][_0xff99[255]];if(_0xf598x3|| _0xf598x2[_0xff99[2207]][_0xff99[255]]!= _0xf598x9|| !_0xf598x2[_0xff99[2207]][_0xff99[1562]][_0xff99[237]](_0xf598x4)|| _0xf598x2[_0xff99[2207]][_0xff99[603]]!= _0xf598x5){_0xf598x2[_0xff99[2207]][_0xff99[603]]= _0xf598x5,_0xf598x2[_0xff99[2207]][_0xff99[1562]]= _0xf598x4,_0xf598x2[_0xff99[2207]][_0xff99[255]]= _0xf598x9,_0xf598x2[_0xff99[2207]][_0xff99[258]]()}}};mxCellRenderer[_0xff99[202]][_0xff99[2224]]= function(_0xf598x2){if(null!= _0xf598x2[_0xff99[2207]]){var _0xf598x3=_0xf598x2[_0xff99[2207]][_0xff99[255]],_0xf598x4=_0xf598x2[_0xff99[2207]][_0xff99[1562]][_0xff99[117]]/ _0xf598x3,_0xf598x3=_0xf598x2[_0xff99[2207]][_0xff99[1562]][_0xff99[119]]/ _0xf598x3,_0xf598x5=_0xf598x2[_0xff99[441]][_0xff99[255]],_0xf598x9=_0xf598x2[_0xff99[241]](),_0xf598xa=_0xf598x2[_0xff99[242]]();if(!_0xf598x2[_0xff99[441]][_0xff99[1179]][_0xff99[502]]()[_0xff99[250]](_0xf598x2[_0xff99[246]])&& (_0xf598x9= _0xf598x2[_0xff99[235]]+ _0xf598x4* _0xf598x5,_0xf598xa= _0xf598x2[_0xff99[236]]+ _0xf598x3* _0xf598x5,null!= _0xf598x2[_0xff99[253]])){var _0xf598x12=_0xf598x2[_0xff99[253]][_0xff99[1598]]();if(this[_0xff99[2152]]){_0xf598x12= mxUtils[_0xff99[433]](_0xf598x2[_0xff99[124]],mxConstants.STYLE_ROTATION,0)}else {if(_0xf598x2[_0xff99[253]][_0xff99[1590]]()){var _0xf598x13=(_0xf598x2[_0xff99[117]]- _0xf598x2[_0xff99[119]])/ 2,_0xf598x9=_0xf598x9+ _0xf598x13,_0xf598xa=_0xf598xa- _0xf598x13}};0!= _0xf598x12&& (_0xf598x13= mxUtils[_0xff99[431]](_0xf598x12),_0xf598x12= Math[_0xff99[426]](_0xf598x13),_0xf598x13= Math[_0xff99[427]](_0xf598x13),_0xf598xa= mxUtils[_0xff99[432]]( new mxPoint(_0xf598x9,_0xf598xa),_0xf598x12,_0xf598x13, new mxPoint(_0xf598x2[_0xff99[241]](),_0xf598x2[_0xff99[242]]())),_0xf598x9= _0xf598xa[_0xff99[235]],_0xf598xa= _0xf598xa[_0xff99[236]])};return _0xf598x2[_0xff99[441]][_0xff99[1179]][_0xff99[502]]()[_0xff99[250]](_0xf598x2[_0xff99[246]]), new mxRectangle(Math[_0xff99[488]](_0xf598x9- _0xf598x4/ 2* _0xf598x5),Math[_0xff99[488]](_0xf598xa- _0xf598x3/ 2* _0xf598x5),Math[_0xff99[488]](_0xf598x4* _0xf598x5),Math[_0xff99[488]](_0xf598x3* _0xf598x5))};return null};mxCellRenderer[_0xff99[202]][_0xff99[258]]= function(_0xf598x2,_0xf598x3,_0xf598x4){if(null!= _0xf598x2[_0xff99[253]]){var _0xf598x5=!1;_0xf598x2[_0xff99[441]][_0xff99[1179]][_0xff99[502]]()[_0xff99[250]](_0xf598x2[_0xff99[246]]);reconfigure= null!= _0xf598x3?_0xf598x3:!1;this[_0xff99[2204]](_0xf598x2);if(_0xf598x2[_0xff99[2082]]|| _0xf598x2[_0xff99[2081]]){_0xf598x2[_0xff99[441]][_0xff99[1179]][_0xff99[2158]]?this[_0xff99[2166]](_0xf598x2):this[_0xff99[2167]](_0xf598x2)};if(_0xf598x2[_0xff99[2082]]|| !mxUtils[_0xff99[2225]](_0xf598x2[_0xff99[253]][_0xff99[124]],_0xf598x2[_0xff99[124]])){this[_0xff99[2170]](_0xf598x2),_0xf598x3= !0};delete _0xf598x2[_0xff99[2081]];delete _0xf598x2[_0xff99[2082]];if(_0xf598x3|| null== _0xf598x2[_0xff99[253]][_0xff99[1562]]|| _0xf598x2[_0xff99[253]][_0xff99[255]]!= _0xf598x2[_0xff99[441]][_0xff99[255]]|| !_0xf598x2[_0xff99[253]][_0xff99[1562]][_0xff99[237]](_0xf598x2)|| !mxUtils[_0xff99[2226]](_0xf598x2[_0xff99[253]][_0xff99[1525]],_0xf598x2[_0xff99[439]])){_0xf598x5= !0,_0xf598x2[_0xff99[253]][_0xff99[1525]]= null!= _0xf598x2[_0xff99[439]]?_0xf598x2[_0xff99[439]][_0xff99[1853]]():null,_0xf598x2[_0xff99[253]][_0xff99[1562]]= new mxRectangle(_0xf598x2[_0xff99[235]],_0xf598x2[_0xff99[236]],_0xf598x2[_0xff99[117]],_0xf598x2[_0xff99[119]]),_0xf598x2[_0xff99[253]][_0xff99[255]]= _0xf598x2[_0xff99[441]][_0xff99[255]],null== _0xf598x4|| _0xf598x4?_0xf598x2[_0xff99[253]][_0xff99[258]]():_0xf598x2[_0xff99[253]][_0xff99[1577]]()};if(null== _0xf598x4|| _0xf598x4){this[_0xff99[2217]](_0xf598x2,_0xf598x5),this[_0xff99[2222]](_0xf598x2,_0xf598x5),this[_0xff99[2223]](_0xf598x2,_0xf598x5)}}};mxCellRenderer[_0xff99[202]][_0xff99[515]]= function(_0xf598x2){null!= _0xf598x2[_0xff99[253]]&& (null!= _0xf598x2[_0xff99[963]]&& (_0xf598x2[_0xff99[963]][_0xff99[515]](),_0xf598x2[_0xff99[963]]= null),null!= _0xf598x2[_0xff99[1211]]&& (_0xf598x2[_0xff99[1211]][_0xff99[209]](function(_0xf598x2,_0xf598x4){_0xf598x4[_0xff99[515]]()}),_0xf598x2[_0xff99[1211]]= null),null!= _0xf598x2[_0xff99[2207]]&& (_0xf598x2[_0xff99[2207]][_0xff99[515]](),_0xf598x2[_0xff99[2207]]= null),_0xf598x2[_0xff99[253]][_0xff99[515]](),_0xf598x2[_0xff99[253]]= null)};var mxEdgeStyle={EntityRelation:function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){var _0xf598xa=_0xf598x2[_0xff99[441]],_0xf598x12=_0xf598xa[_0xff99[1179]];_0xf598x5= mxUtils[_0xff99[433]](_0xf598x2[_0xff99[124]],mxConstants.STYLE_SEGMENT,mxConstants.ENTITY_SEGMENT)* _0xf598xa[_0xff99[255]];var _0xf598x13=_0xf598x2[_0xff99[439]],_0xf598x14=_0xf598x13[0],_0xf598x15=_0xf598x13[_0xf598x13[_0xff99[67]]- 1],_0xf598x13=!1;if(null!= _0xf598x14){_0xf598x3= new mxCellState,_0xf598x3[_0xff99[235]]= _0xf598x14[_0xff99[235]],_0xf598x3[_0xff99[236]]= _0xf598x14[_0xff99[236]]}else {if(null!= _0xf598x3){var _0xf598x16=mxUtils[_0xff99[2227]](_0xf598x3,_0xf598x2,!0,mxConstants.DIRECTION_MASK_NONE);_0xf598x16!= mxConstants[_0xff99[434]]?_0xf598x13= _0xf598x16== mxConstants[_0xff99[436]]:(_0xf598x14= _0xf598x12[_0xff99[1198]](_0xf598x3[_0xff99[246]]),_0xf598x14[_0xff99[1500]]?_0xf598x13= 0.5>= _0xf598x14[_0xff99[235]]:null!= _0xf598x4&& (_0xf598x13= _0xf598x4[_0xff99[235]]+ _0xf598x4[_0xff99[117]]< _0xf598x3[_0xff99[235]]))}else {return}};_0xf598x14= !0;null!= _0xf598x15?(_0xf598x4= new mxCellState,_0xf598x4[_0xff99[235]]= _0xf598x15[_0xff99[235]],_0xf598x4[_0xff99[236]]= _0xf598x15[_0xff99[236]]):null!= _0xf598x4&& (_0xf598x16= mxUtils[_0xff99[2227]](_0xf598x4,_0xf598x2,!1,mxConstants.DIRECTION_MASK_NONE),_0xf598x16!= mxConstants[_0xff99[434]]?_0xf598x14= _0xf598x16== mxConstants[_0xff99[436]]:(_0xf598x2= _0xf598x12[_0xff99[1198]](_0xf598x4[_0xff99[246]]),_0xf598x2[_0xff99[1500]]?_0xf598x14= 0.5>= _0xf598x2[_0xff99[235]]:null!= _0xf598x3&& (_0xf598x14= _0xf598x3[_0xff99[235]]+ _0xf598x3[_0xff99[117]]< _0xf598x4[_0xff99[235]])));null!= _0xf598x3&& null!= _0xf598x4&& (_0xf598x2= _0xf598x13?_0xf598x3[_0xff99[235]]:_0xf598x3[_0xff99[235]]+ _0xf598x3[_0xff99[117]],_0xf598x3= _0xf598xa[_0xff99[2228]](_0xf598x3),_0xf598x12= _0xf598x14?_0xf598x4[_0xff99[235]]:_0xf598x4[_0xff99[235]]+ _0xf598x4[_0xff99[117]],_0xf598x4= _0xf598xa[_0xff99[2228]](_0xf598x4),_0xf598xa= new mxPoint(_0xf598x2+ (_0xf598x13?-_0xf598x5:_0xf598x5),_0xf598x3),_0xf598x15= new mxPoint(_0xf598x12+ (_0xf598x14?-_0xf598x5:_0xf598x5),_0xf598x4),_0xf598x13== _0xf598x14?(_0xf598x5= _0xf598x13?Math[_0xff99[243]](_0xf598x2,_0xf598x12)- _0xf598x5:Math[_0xff99[160]](_0xf598x2,_0xf598x12)+ _0xf598x5,_0xf598x9[_0xff99[207]]( new mxPoint(_0xf598x5,_0xf598x3)),_0xf598x9[_0xff99[207]]( new mxPoint(_0xf598x5,_0xf598x4))):(_0xf598xa[_0xff99[235]]< _0xf598x15[_0xff99[235]]== _0xf598x13?(_0xf598x5= _0xf598x3+ (_0xf598x4- _0xf598x3)/ 2,_0xf598x9[_0xff99[207]](_0xf598xa),_0xf598x9[_0xff99[207]]( new mxPoint(_0xf598xa[_0xff99[235]],_0xf598x5)),_0xf598x9[_0xff99[207]]( new mxPoint(_0xf598x15[_0xff99[235]],_0xf598x5))):_0xf598x9[_0xff99[207]](_0xf598xa),_0xf598x9[_0xff99[207]](_0xf598x15)))},Loop:function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){if(null!= _0xf598x3){_0xf598x4= _0xf598x2[_0xff99[441]];var _0xf598xa=_0xf598x4[_0xff99[1179]];_0xf598x5= null!= _0xf598x5&& 0< _0xf598x5[_0xff99[67]]?_0xf598x5[0]:null;null!= _0xf598x5&& (_0xf598x5= _0xf598x4[_0xff99[2229]](_0xf598x2,_0xf598x5),mxUtils[_0xff99[442]](_0xf598x3,_0xf598x5[_0xff99[235]],_0xf598x5[_0xff99[236]])&& (_0xf598x5= null));var _0xf598x12=0,_0xf598x13=0,_0xf598x14=0,_0xf598x15=0,_0xf598xa=mxUtils[_0xff99[433]](_0xf598x2[_0xff99[124]],mxConstants.STYLE_SEGMENT,_0xf598xa[_0xff99[1020]])* _0xf598x4[_0xff99[255]];_0xf598x2= mxUtils[_0xff99[433]](_0xf598x2[_0xff99[124]],mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_WEST);_0xf598x2== mxConstants[_0xff99[1358]]|| _0xf598x2== mxConstants[_0xff99[1354]]?(_0xf598x12= _0xf598x4[_0xff99[2230]](_0xf598x3),_0xf598x13= _0xf598xa):(_0xf598x14= _0xf598x4[_0xff99[2228]](_0xf598x3),_0xf598x15= _0xf598xa);null== _0xf598x5|| _0xf598x5[_0xff99[235]]< _0xf598x3[_0xff99[235]]|| _0xf598x5[_0xff99[235]]> _0xf598x3[_0xff99[235]]+ _0xf598x3[_0xff99[117]]?null!= _0xf598x5?(_0xf598x12= _0xf598x5[_0xff99[235]],_0xf598x15= Math[_0xff99[160]](Math[_0xff99[425]](_0xf598x14- _0xf598x5[_0xff99[236]]),_0xf598x15)):_0xf598x2== mxConstants[_0xff99[1358]]?_0xf598x14= _0xf598x3[_0xff99[236]]- 2* _0xf598x13:_0xf598x2== mxConstants[_0xff99[1354]]?_0xf598x14= _0xf598x3[_0xff99[236]]+ _0xf598x3[_0xff99[119]]+ 2* _0xf598x13:_0xf598x12= _0xf598x2== mxConstants[_0xff99[1356]]?_0xf598x3[_0xff99[235]]- 2* _0xf598x15:_0xf598x3[_0xff99[235]]+ _0xf598x3[_0xff99[117]]+ 2* _0xf598x15:null!= _0xf598x5&& (_0xf598x12= _0xf598x4[_0xff99[2230]](_0xf598x3),_0xf598x13= Math[_0xff99[160]](Math[_0xff99[425]](_0xf598x12- _0xf598x5[_0xff99[235]]),_0xf598x15),_0xf598x14= _0xf598x5[_0xff99[236]],_0xf598x15= 0);_0xf598x9[_0xff99[207]]( new mxPoint(_0xf598x12- _0xf598x13,_0xf598x14- _0xf598x15));_0xf598x9[_0xff99[207]]( new mxPoint(_0xf598x12+ _0xf598x13,_0xf598x14+ _0xf598x15))}},ElbowConnector:function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){var _0xf598xa=null!= _0xf598x5&& 0< _0xf598x5[_0xff99[67]]?_0xf598x5[0]:null,_0xf598x12=!1,_0xf598x13=!1;if(null!= _0xf598x3&& null!= _0xf598x4){if(null!= _0xf598xa){var _0xf598x14=Math[_0xff99[243]](_0xf598x3[_0xff99[235]],_0xf598x4[_0xff99[235]]),_0xf598x15=Math[_0xff99[160]](_0xf598x3[_0xff99[235]]+ _0xf598x3[_0xff99[117]],_0xf598x4[_0xff99[235]]+ _0xf598x4[_0xff99[117]]),_0xf598x13=Math[_0xff99[243]](_0xf598x3[_0xff99[236]],_0xf598x4[_0xff99[236]]),_0xf598x16=Math[_0xff99[160]](_0xf598x3[_0xff99[236]]+ _0xf598x3[_0xff99[119]],_0xf598x4[_0xff99[236]]+ _0xf598x4[_0xff99[119]]),_0xf598xa=_0xf598x2[_0xff99[441]][_0xff99[2229]](_0xf598x2,_0xf598xa),_0xf598x12=_0xf598xa[_0xff99[236]]< _0xf598x13|| _0xf598xa[_0xff99[236]]> _0xf598x16,_0xf598x13=_0xf598xa[_0xff99[235]]< _0xf598x14|| _0xf598xa[_0xff99[235]]> _0xf598x15}else {_0xf598x14= Math[_0xff99[160]](_0xf598x3[_0xff99[235]],_0xf598x4[_0xff99[235]]),_0xf598x15= Math[_0xff99[243]](_0xf598x3[_0xff99[235]]+ _0xf598x3[_0xff99[117]],_0xf598x4[_0xff99[235]]+ _0xf598x4[_0xff99[117]]),_0xf598x12= _0xf598x14== _0xf598x15,_0xf598x12|| (_0xf598x13= Math[_0xff99[160]](_0xf598x3[_0xff99[236]],_0xf598x4[_0xff99[236]]),_0xf598x16= Math[_0xff99[243]](_0xf598x3[_0xff99[236]]+ _0xf598x3[_0xff99[119]],_0xf598x4[_0xff99[236]]+ _0xf598x4[_0xff99[119]]),_0xf598x13= _0xf598x13== _0xf598x16)}};!_0xf598x13&& (_0xf598x12|| _0xf598x2[_0xff99[124]][mxConstants[_0xff99[2231]]]== mxConstants[_0xff99[2232]])?mxEdgeStyle.TopToBottom(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9):mxEdgeStyle.SideToSide(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9)},SideToSide:function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){var _0xf598xa=_0xf598x2[_0xff99[441]];_0xf598x5= null!= _0xf598x5&& 0< _0xf598x5[_0xff99[67]]?_0xf598x5[0]:null;var _0xf598x12=_0xf598x2[_0xff99[439]],_0xf598x13=_0xf598x12[0],_0xf598x12=_0xf598x12[_0xf598x12[_0xff99[67]]- 1];null!= _0xf598x5&& (_0xf598x5= _0xf598xa[_0xff99[2229]](_0xf598x2,_0xf598x5));null!= _0xf598x13&& (_0xf598x3= new mxCellState,_0xf598x3[_0xff99[235]]= _0xf598x13[_0xff99[235]],_0xf598x3[_0xff99[236]]= _0xf598x13[_0xff99[236]]);null!= _0xf598x12&& (_0xf598x4= new mxCellState,_0xf598x4[_0xff99[235]]= _0xf598x12[_0xff99[235]],_0xf598x4[_0xff99[236]]= _0xf598x12[_0xff99[236]]);null!= _0xf598x3&& null!= _0xf598x4&& (_0xf598x2= Math[_0xff99[160]](_0xf598x3[_0xff99[235]],_0xf598x4[_0xff99[235]]),_0xf598x13= Math[_0xff99[243]](_0xf598x3[_0xff99[235]]+ _0xf598x3[_0xff99[117]],_0xf598x4[_0xff99[235]]+ _0xf598x4[_0xff99[117]]),_0xf598x2= null!= _0xf598x5?_0xf598x5[_0xff99[235]]:_0xf598x13+ (_0xf598x2- _0xf598x13)/ 2,_0xf598x13= _0xf598xa[_0xff99[2228]](_0xf598x3),_0xf598xa= _0xf598xa[_0xff99[2228]](_0xf598x4),null!= _0xf598x5&& (_0xf598x5[_0xff99[236]]>= _0xf598x3[_0xff99[236]]&& _0xf598x5[_0xff99[236]]<= _0xf598x3[_0xff99[236]]+ _0xf598x3[_0xff99[119]]&& (_0xf598x13= _0xf598x5[_0xff99[236]]),_0xf598x5[_0xff99[236]]>= _0xf598x4[_0xff99[236]]&& _0xf598x5[_0xff99[236]]<= _0xf598x4[_0xff99[236]]+ _0xf598x4[_0xff99[119]]&& (_0xf598xa= _0xf598x5[_0xff99[236]])),!mxUtils[_0xff99[442]](_0xf598x4,_0xf598x2,_0xf598x13)&& !mxUtils[_0xff99[442]](_0xf598x3,_0xf598x2,_0xf598x13) && _0xf598x9[_0xff99[207]]( new mxPoint(_0xf598x2,_0xf598x13)),!mxUtils[_0xff99[442]](_0xf598x4,_0xf598x2,_0xf598xa)&& !mxUtils[_0xff99[442]](_0xf598x3,_0xf598x2,_0xf598xa) && _0xf598x9[_0xff99[207]]( new mxPoint(_0xf598x2,_0xf598xa)),1== _0xf598x9[_0xff99[67]]&& (null!= _0xf598x5?!mxUtils[_0xff99[442]](_0xf598x4,_0xf598x2,_0xf598x5[_0xff99[236]])&& !mxUtils[_0xff99[442]](_0xf598x3,_0xf598x2,_0xf598x5[_0xff99[236]]) && _0xf598x9[_0xff99[207]]( new mxPoint(_0xf598x2,_0xf598x5[_0xff99[236]])):(_0xf598xa= Math[_0xff99[160]](_0xf598x3[_0xff99[236]],_0xf598x4[_0xff99[236]]),_0xf598x3= Math[_0xff99[243]](_0xf598x3[_0xff99[236]]+ _0xf598x3[_0xff99[119]],_0xf598x4[_0xff99[236]]+ _0xf598x4[_0xff99[119]]),_0xf598x9[_0xff99[207]]( new mxPoint(_0xf598x2,_0xf598xa+ (_0xf598x3- _0xf598xa)/ 2)))))},TopToBottom:function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){var _0xf598xa=_0xf598x2[_0xff99[441]];_0xf598x5= null!= _0xf598x5&& 0< _0xf598x5[_0xff99[67]]?_0xf598x5[0]:null;var _0xf598x12=_0xf598x2[_0xff99[439]],_0xf598x13=_0xf598x12[0],_0xf598x12=_0xf598x12[_0xf598x12[_0xff99[67]]- 1];null!= _0xf598x5&& (_0xf598x5= _0xf598xa[_0xff99[2229]](_0xf598x2,_0xf598x5));null!= _0xf598x13&& (_0xf598x3= new mxCellState,_0xf598x3[_0xff99[235]]= _0xf598x13[_0xff99[235]],_0xf598x3[_0xff99[236]]= _0xf598x13[_0xff99[236]]);null!= _0xf598x12&& (_0xf598x4= new mxCellState,_0xf598x4[_0xff99[235]]= _0xf598x12[_0xff99[235]],_0xf598x4[_0xff99[236]]= _0xf598x12[_0xff99[236]]);null!= _0xf598x3&& null!= _0xf598x4&& (_0xf598x13= Math[_0xff99[160]](_0xf598x3[_0xff99[236]],_0xf598x4[_0xff99[236]]),_0xf598x12= Math[_0xff99[243]](_0xf598x3[_0xff99[236]]+ _0xf598x3[_0xff99[119]],_0xf598x4[_0xff99[236]]+ _0xf598x4[_0xff99[119]]),_0xf598x2= _0xf598xa[_0xff99[2230]](_0xf598x3),null!= _0xf598x5&& (_0xf598x5[_0xff99[235]]>= _0xf598x3[_0xff99[235]]&& _0xf598x5[_0xff99[235]]<= _0xf598x3[_0xff99[235]]+ _0xf598x3[_0xff99[117]])&& (_0xf598x2= _0xf598x5[_0xff99[235]]),_0xf598x13= null!= _0xf598x5?_0xf598x5[_0xff99[236]]:_0xf598x12+ (_0xf598x13- _0xf598x12)/ 2,!mxUtils[_0xff99[442]](_0xf598x4,_0xf598x2,_0xf598x13)&& !mxUtils[_0xff99[442]](_0xf598x3,_0xf598x2,_0xf598x13) && _0xf598x9[_0xff99[207]]( new mxPoint(_0xf598x2,_0xf598x13)),_0xf598x2= null!= _0xf598x5&& _0xf598x5[_0xff99[235]]>= _0xf598x4[_0xff99[235]]&& _0xf598x5[_0xff99[235]]<= _0xf598x4[_0xff99[235]]+ _0xf598x4[_0xff99[117]]?_0xf598x5[_0xff99[235]]:_0xf598xa[_0xff99[2230]](_0xf598x4),!mxUtils[_0xff99[442]](_0xf598x4,_0xf598x2,_0xf598x13)&& !mxUtils[_0xff99[442]](_0xf598x3,_0xf598x2,_0xf598x13) && _0xf598x9[_0xff99[207]]( new mxPoint(_0xf598x2,_0xf598x13)),1== _0xf598x9[_0xff99[67]]&& (null!= _0xf598x5&& 1== _0xf598x9[_0xff99[67]]?!mxUtils[_0xff99[442]](_0xf598x4,_0xf598x5[_0xff99[235]],_0xf598x13)&& !mxUtils[_0xff99[442]](_0xf598x3,_0xf598x5[_0xff99[235]],_0xf598x13) && _0xf598x9[_0xff99[207]]( new mxPoint(_0xf598x5[_0xff99[235]],_0xf598x13)):(_0xf598xa= Math[_0xff99[160]](_0xf598x3[_0xff99[235]],_0xf598x4[_0xff99[235]]),_0xf598x3= Math[_0xff99[243]](_0xf598x3[_0xff99[235]]+ _0xf598x3[_0xff99[117]],_0xf598x4[_0xff99[235]]+ _0xf598x4[_0xff99[117]]),_0xf598x9[_0xff99[207]]( new mxPoint(_0xf598xa+ (_0xf598x3- _0xf598xa)/ 2,_0xf598x13)))))},SegmentConnector:function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){var _0xf598xa=_0xf598x2[_0xff99[439]],_0xf598x12=!0,_0xf598x13=null,_0xf598x14=_0xf598xa[0];null== _0xf598x14&& null!= _0xf598x3?_0xf598x14= new mxPoint(_0xf598x2[_0xff99[441]][_0xff99[2230]](_0xf598x3),_0xf598x2[_0xff99[441]][_0xff99[2228]](_0xf598x3)):null!= _0xf598x14&& (_0xf598x14= _0xf598x14[_0xff99[238]]());var _0xf598x15=_0xf598xa[_0xff99[67]]- 1;if(null!= _0xf598x5&& 0< _0xf598x5[_0xff99[67]]){for(var _0xf598x13=_0xf598x2[_0xff99[441]][_0xff99[2229]](_0xf598x2,_0xf598x5[0]),_0xf598x16=_0xf598x3,_0xf598x17=_0xf598xa[0],_0xf598x18=!1,_0xf598x19=!1,_0xf598x18=_0xf598x13,_0xf598x1a=_0xf598x5[_0xff99[67]],_0xf598x1b=0;2> _0xf598x1b;_0xf598x1b++){var _0xf598x1c=null!= _0xf598x17&& _0xf598x17[_0xff99[235]]== _0xf598x18[_0xff99[235]],_0xf598x1d=null!= _0xf598x17&& _0xf598x17[_0xff99[236]]== _0xf598x18[_0xff99[236]],_0xf598x1e=null!= _0xf598x16&& _0xf598x18[_0xff99[236]]>= _0xf598x16[_0xff99[236]]&& _0xf598x18[_0xff99[236]]<= _0xf598x16[_0xff99[236]]+ _0xf598x16[_0xff99[119]],_0xf598x16=null!= _0xf598x16&& _0xf598x18[_0xff99[235]]>= _0xf598x16[_0xff99[235]]&& _0xf598x18[_0xff99[235]]<= _0xf598x16[_0xff99[235]]+ _0xf598x16[_0xff99[117]],_0xf598x18=_0xf598x1d|| null== _0xf598x17&& _0xf598x1e,_0xf598x19=_0xf598x1c|| null== _0xf598x17&& _0xf598x16;if(null!= _0xf598x17&& !_0xf598x1d&& !_0xf598x1c&& (_0xf598x1e|| _0xf598x16)){_0xf598x12= _0xf598x1e?!1:!0;break};if(_0xf598x19|| _0xf598x18){_0xf598x12= _0xf598x18;1== _0xf598x1b&& (_0xf598x12= 0== _0xf598x5[_0xff99[67]]% 2?_0xf598x18:_0xf598x19);break};_0xf598x16= _0xf598x4;_0xf598x17= _0xf598xa[_0xf598x15];_0xf598x18= _0xf598x2[_0xff99[441]][_0xff99[2229]](_0xf598x2,_0xf598x5[_0xf598x1a- 1])};_0xf598x12&& (null!= _0xf598xa[0]&& _0xf598xa[0][_0xff99[236]]!= _0xf598x13[_0xff99[236]]|| null== _0xf598xa[0]&& null!= _0xf598x3&& (_0xf598x13[_0xff99[236]]< _0xf598x3[_0xff99[236]]|| _0xf598x13[_0xff99[236]]> _0xf598x3[_0xff99[236]]+ _0xf598x3[_0xff99[119]]))?_0xf598x9[_0xff99[207]]( new mxPoint(_0xf598x14[_0xff99[235]],_0xf598x13[_0xff99[236]])):!_0xf598x12&& (null!= _0xf598xa[0]&& _0xf598xa[0][_0xff99[235]]!= _0xf598x13[_0xff99[235]]|| null== _0xf598xa[0]&& null!= _0xf598x3&& (_0xf598x13[_0xff99[235]]< _0xf598x3[_0xff99[235]]|| _0xf598x13[_0xff99[235]]> _0xf598x3[_0xff99[235]]+ _0xf598x3[_0xff99[117]])) && _0xf598x9[_0xff99[207]]( new mxPoint(_0xf598x13[_0xff99[235]],_0xf598x14[_0xff99[236]]));_0xf598x12?_0xf598x14[_0xff99[236]]= _0xf598x13[_0xff99[236]]:_0xf598x14[_0xff99[235]]= _0xf598x13[_0xff99[235]];for(_0xf598x1b= 0;_0xf598x1b< _0xf598x5[_0xff99[67]];_0xf598x1b++){_0xf598x12= !_0xf598x12,_0xf598x13= _0xf598x2[_0xff99[441]][_0xff99[2229]](_0xf598x2,_0xf598x5[_0xf598x1b]),_0xf598x12?_0xf598x14[_0xff99[236]]= _0xf598x13[_0xff99[236]]:_0xf598x14[_0xff99[235]]= _0xf598x13[_0xff99[235]],_0xf598x9[_0xff99[207]](_0xf598x14[_0xff99[238]]())}}else {_0xf598x13= _0xf598x14,_0xf598x12= !0};_0xf598x14= _0xf598xa[_0xf598x15];null== _0xf598x14&& null!= _0xf598x4&& (_0xf598x14= new mxPoint(_0xf598x2[_0xff99[441]][_0xff99[2230]](_0xf598x4),_0xf598x2[_0xff99[441]][_0xff99[2228]](_0xf598x4)));_0xf598x12&& (null!= _0xf598xa[_0xf598x15]&& _0xf598xa[_0xf598x15][_0xff99[236]]!= _0xf598x13[_0xff99[236]]|| null== _0xf598xa[_0xf598x15]&& null!= _0xf598x4&& (_0xf598x13[_0xff99[236]]< _0xf598x4[_0xff99[236]]|| _0xf598x13[_0xff99[236]]> _0xf598x4[_0xff99[236]]+ _0xf598x4[_0xff99[119]]))?_0xf598x9[_0xff99[207]]( new mxPoint(_0xf598x14[_0xff99[235]],_0xf598x13[_0xff99[236]])):!_0xf598x12&& (null!= _0xf598xa[_0xf598x15]&& _0xf598xa[_0xf598x15][_0xff99[235]]!= _0xf598x13[_0xff99[235]]|| null== _0xf598xa[_0xf598x15]&& null!= _0xf598x4&& (_0xf598x13[_0xff99[235]]< _0xf598x4[_0xff99[235]]|| _0xf598x13[_0xff99[235]]> _0xf598x4[_0xff99[235]]+ _0xf598x4[_0xff99[117]])) && _0xf598x9[_0xff99[207]]( new mxPoint(_0xf598x13[_0xff99[235]],_0xf598x14[_0xff99[236]]));if(null== _0xf598xa[0]&& null!= _0xf598x3){for(;1< _0xf598x9[_0xff99[67]]&& mxUtils[_0xff99[442]](_0xf598x3,_0xf598x9[1][_0xff99[235]],_0xf598x9[1][_0xff99[236]]);){_0xf598x9= _0xf598x9[_0xff99[300]](1,1)}};if(null== _0xf598xa[_0xf598x15]&& null!= _0xf598x4){for(;1< _0xf598x9[_0xff99[67]]&& mxUtils[_0xff99[442]](_0xf598x4,_0xf598x9[_0xf598x9[_0xff99[67]]- 1][_0xff99[235]],_0xf598x9[_0xf598x9[_0xff99[67]]- 1][_0xff99[236]]);){_0xf598x9= _0xf598x9[_0xff99[300]](_0xf598x9[_0xff99[67]]- 1,1)}}},orthBuffer:10,dirVectors:[[-1,0],[0,-1],[1,0],[0,1],[-1,0],[0,-1],[1,0]],wayPoints1:[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],routePatterns:[[[513,2308,2081,2562],[513,1090,514,2184,2114,2561],[513,1090,514,2564,2184,2562],[513,2308,2561,1090,514,2568,2308]],[[514,1057,513,2308,2081,2562],[514,2184,2114,2561],[514,2184,2562,1057,513,2564,2184],[514,1057,513,2568,2308,2561]],[[1090,514,1057,513,2308,2081,2562],[2114,2561],[1090,2562,1057,513,2564,2184],[1090,514,1057,513,2308,2561,2568]],[[2081,2562],[1057,513,1090,514,2184,2114,2561],[1057,513,1090,514,2184,2562,2564],[1057,2561,1090,514,2568,2308]]],inlineRoutePatterns:[[null,[2114,2568],null,null],[null,[514,2081,2114,2568],null,null],[null,[2114,2561],null,null],[[2081,2562],[1057,2114,2568],[2184,2562],null]],vertexSeperations:[],limits:[[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0]],LEFT_MASK:32,TOP_MASK:64,RIGHT_MASK:128,BOTTOM_MASK:256,LEFT:1,TOP:2,RIGHT:4,BOTTOM:8,SIDE_MASK:480,CENTER_MASK:512,SOURCE_MASK:1024,TARGET_MASK:2048,VERTEX_MASK:3072,OrthConnector:function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){var _0xf598xa=_0xf598x2[_0xff99[441]][_0xff99[1179]],_0xf598x12=null== _0xf598x3?!1:_0xf598xa[_0xff99[502]]()[_0xff99[250]](_0xf598x3[_0xff99[246]]),_0xf598xa=null== _0xf598x4?!1:_0xf598xa[_0xff99[502]]()[_0xff99[250]](_0xf598x4[_0xff99[246]]);if(null!= _0xf598x5&& 0< _0xf598x5[_0xff99[67]]|| _0xf598x12|| _0xf598xa){mxEdgeStyle.SegmentConnector(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9)}else {_0xf598x5= _0xf598x2[_0xff99[439]];var _0xf598x13=_0xf598x5[0],_0xf598x14=_0xf598x5[_0xf598x5[_0xff99[67]]- 1];_0xf598x5= null!= _0xf598x3?_0xf598x3[_0xff99[235]]:_0xf598x13[_0xff99[235]];var _0xf598x12=null!= _0xf598x3?_0xf598x3[_0xff99[236]]:_0xf598x13[_0xff99[236]],_0xf598x15=null!= _0xf598x3?_0xf598x3[_0xff99[117]]:1,_0xf598x16=null!= _0xf598x3?_0xf598x3[_0xff99[119]]:1,_0xf598x17=null!= _0xf598x4?_0xf598x4[_0xff99[235]]:_0xf598x14[_0xff99[235]],_0xf598x18=null!= _0xf598x4?_0xf598x4[_0xff99[236]]:_0xf598x14[_0xff99[236]],_0xf598x19=null!= _0xf598x4?_0xf598x4[_0xff99[117]]:1,_0xf598x1a=null!= _0xf598x4?_0xf598x4[_0xff99[119]]:1,_0xf598xa=_0xf598x2[_0xff99[441]][_0xff99[255]]* mxEdgeStyle[_0xff99[2233]],_0xf598x1b=[mxConstants[_0xff99[2234]],mxConstants[_0xff99[2234]]];null!= _0xf598x3&& (_0xf598x1b[0]= mxUtils[_0xff99[2227]](_0xf598x3,_0xf598x2,!0,mxConstants.DIRECTION_MASK_ALL));null!= _0xf598x4&& (_0xf598x1b[1]= mxUtils[_0xff99[2227]](_0xf598x4,_0xf598x2,!1,mxConstants.DIRECTION_MASK_ALL));_0xf598x2= [0,0];_0xf598x5= [[_0xf598x5,_0xf598x12,_0xf598x15,_0xf598x16],[_0xf598x17,_0xf598x18,_0xf598x19,_0xf598x1a]];for(_0xf598x15= 0;2> _0xf598x15;_0xf598x15++){mxEdgeStyle[_0xff99[2235]][_0xf598x15][1]= _0xf598x5[_0xf598x15][0]- _0xf598xa,mxEdgeStyle[_0xff99[2235]][_0xf598x15][2]= _0xf598x5[_0xf598x15][1]- _0xf598xa,mxEdgeStyle[_0xff99[2235]][_0xf598x15][4]= _0xf598x5[_0xf598x15][0]+ _0xf598x5[_0xf598x15][2]+ _0xf598xa,mxEdgeStyle[_0xff99[2235]][_0xf598x15][8]= _0xf598x5[_0xf598x15][1]+ _0xf598x5[_0xf598x15][3]+ _0xf598xa};_0xf598x15= _0xf598x5[0][0]+ _0xf598x5[0][2]/ 2- (_0xf598x5[1][0]+ _0xf598x5[1][2]/ 2);_0xf598x16= _0xf598x5[0][1]+ _0xf598x5[0][3]/ 2- (_0xf598x5[1][1]+ _0xf598x5[1][3]/ 2);_0xf598x12= 0;0> _0xf598x15?_0xf598x12= 0> _0xf598x16?2:1:0>= _0xf598x16&& (_0xf598x12= 3,0== _0xf598x15&& (_0xf598x12= 2));_0xf598x16= null;null!= _0xf598x3&& (_0xf598x16= _0xf598x13);_0xf598x3= [[0.5,0.5],[0.5,0.5]];for(_0xf598x15= 0;2> _0xf598x15;_0xf598x15++){null!= _0xf598x16&& (_0xf598x3[_0xf598x15][0]= (_0xf598x16[_0xff99[235]]- _0xf598x5[_0xf598x15][0])/ _0xf598x5[_0xf598x15][2],0.01> _0xf598x3[_0xf598x15][0]?_0xf598x2[_0xf598x15]= mxConstants[_0xff99[436]]:0.99< _0xf598x3[_0xf598x15][0]&& (_0xf598x2[_0xf598x15]= mxConstants[_0xff99[438]]),_0xf598x3[_0xf598x15][1]= (_0xf598x16[_0xff99[236]]- _0xf598x5[_0xf598x15][1])/ _0xf598x5[_0xf598x15][3],0.01> _0xf598x3[_0xf598x15][1]?_0xf598x2[_0xf598x15]= mxConstants[_0xff99[435]]:0.99< _0xf598x3[_0xf598x15][1]&& (_0xf598x2[_0xf598x15]= mxConstants[_0xff99[437]])),_0xf598x16= null,null!= _0xf598x4&& (_0xf598x16= _0xf598x14)};_0xf598x15= _0xf598x5[0][1]- (_0xf598x5[1][1]+ _0xf598x5[1][3]);_0xf598x16= _0xf598x5[0][0]- (_0xf598x5[1][0]+ _0xf598x5[1][2]);_0xf598x17= _0xf598x5[1][1]- (_0xf598x5[0][1]+ _0xf598x5[0][3]);_0xf598x18= _0xf598x5[1][0]- (_0xf598x5[0][0]+ _0xf598x5[0][2]);mxEdgeStyle[_0xff99[2236]][1]= Math[_0xff99[160]](_0xf598x16- 2* _0xf598xa,0);mxEdgeStyle[_0xff99[2236]][2]= Math[_0xff99[160]](_0xf598x15- 2* _0xf598xa,0);mxEdgeStyle[_0xff99[2236]][4]= Math[_0xff99[160]](_0xf598x17- 2* _0xf598xa,0);mxEdgeStyle[_0xff99[2236]][3]= Math[_0xff99[160]](_0xf598x18- 2* _0xf598xa,0);_0xf598x4= [];_0xf598x13= [];_0xf598x14= [];_0xf598x13[0]= _0xf598x16>= _0xf598x18?mxConstants[_0xff99[436]]:mxConstants[_0xff99[438]];_0xf598x14[0]= _0xf598x15>= _0xf598x17?mxConstants[_0xff99[435]]:mxConstants[_0xff99[437]];_0xf598x13[1]= mxUtils[_0xff99[2237]](_0xf598x13[0]);_0xf598x14[1]= mxUtils[_0xff99[2237]](_0xf598x14[0]);_0xf598x16= _0xf598x16>= _0xf598x18?_0xf598x16:_0xf598x18;_0xf598x17= _0xf598x15>= _0xf598x17?_0xf598x15:_0xf598x17;_0xf598x18= [[0,0],[0,0]];_0xf598x19= !1;for(_0xf598x15= 0;2> _0xf598x15;_0xf598x15++){0== _0xf598x2[_0xf598x15]&& (0== (_0xf598x13[_0xf598x15]& _0xf598x1b[_0xf598x15])&& (_0xf598x13[_0xf598x15]= mxUtils[_0xff99[2237]](_0xf598x13[_0xf598x15])),0== (_0xf598x14[_0xf598x15]& _0xf598x1b[_0xf598x15])&& (_0xf598x14[_0xf598x15]= mxUtils[_0xff99[2237]](_0xf598x14[_0xf598x15])),_0xf598x18[_0xf598x15][0]= _0xf598x14[_0xf598x15],_0xf598x18[_0xf598x15][1]= _0xf598x13[_0xf598x15])};_0xf598x17> 2* _0xf598xa&& _0xf598x16> 2* _0xf598xa&& (0< (_0xf598x13[0]& _0xf598x1b[0])&& 0< (_0xf598x14[1]& _0xf598x1b[1])?(_0xf598x18[0][0]= _0xf598x13[0],_0xf598x18[0][1]= _0xf598x14[0],_0xf598x18[1][0]= _0xf598x14[1],_0xf598x18[1][1]= _0xf598x13[1],_0xf598x19= !0):0< (_0xf598x14[0]& _0xf598x1b[0])&& 0< (_0xf598x13[1]& _0xf598x1b[1])&& (_0xf598x18[0][0]= _0xf598x14[0],_0xf598x18[0][1]= _0xf598x13[0],_0xf598x18[1][0]= _0xf598x13[1],_0xf598x18[1][1]= _0xf598x14[1],_0xf598x19= !0));_0xf598x17> 2* _0xf598xa&& !_0xf598x19&& (_0xf598x18[0][0]= _0xf598x14[0],_0xf598x18[0][1]= _0xf598x13[0],_0xf598x18[1][0]= _0xf598x14[1],_0xf598x18[1][1]= _0xf598x13[1],_0xf598x19= !0);_0xf598x16> 2* _0xf598xa&& !_0xf598x19&& (_0xf598x18[0][0]= _0xf598x13[0],_0xf598x18[0][1]= _0xf598x14[0],_0xf598x18[1][0]= _0xf598x13[1],_0xf598x18[1][1]= _0xf598x14[1]);for(_0xf598x15= 0;2> _0xf598x15;_0xf598x15++){if(0== _0xf598x2[_0xf598x15]&& (0== (_0xf598x18[_0xf598x15][0]& _0xf598x1b[_0xf598x15])&& (_0xf598x18[_0xf598x15][0]= _0xf598x18[_0xf598x15][1]),_0xf598x4[_0xf598x15]= _0xf598x18[_0xf598x15][0]& _0xf598x1b[_0xf598x15],_0xf598x4[_0xf598x15]|= (_0xf598x18[_0xf598x15][1]& _0xf598x1b[_0xf598x15])<< 8,_0xf598x4[_0xf598x15]|= (_0xf598x18[1- _0xf598x15][_0xf598x15]& _0xf598x1b[_0xf598x15])<< 16,_0xf598x4[_0xf598x15]|= (_0xf598x18[1- _0xf598x15][1- _0xf598x15]& _0xf598x1b[_0xf598x15])<< 24,0== (_0xf598x4[_0xf598x15]& 15)&& (_0xf598x4[_0xf598x15]<<= 8),0== (_0xf598x4[_0xf598x15]& 3840)&& (_0xf598x4[_0xf598x15]= _0xf598x4[_0xf598x15]& 15| _0xf598x4[_0xf598x15]>> 8),0== (_0xf598x4[_0xf598x15]& 983040)&& (_0xf598x4[_0xf598x15]= _0xf598x4[_0xf598x15]& 65535| (_0xf598x4[_0xf598x15]& 251658240)>> 8),_0xf598x2[_0xf598x15]= _0xf598x4[_0xf598x15]& 15,_0xf598x1b[_0xf598x15]== mxConstants[_0xff99[436]]|| _0xf598x1b[_0xf598x15]== mxConstants[_0xff99[435]]|| _0xf598x1b[_0xf598x15]== mxConstants[_0xff99[438]]|| _0xf598x1b[_0xf598x15]== mxConstants[_0xff99[437]])){_0xf598x2[_0xf598x15]= _0xf598x1b[_0xf598x15]}};_0xf598x15= _0xf598x2[0]== mxConstants[_0xff99[438]]?3:_0xf598x2[0];_0xf598x1b= _0xf598x2[1]== mxConstants[_0xff99[438]]?3:_0xf598x2[1];_0xf598x15-= _0xf598x12;_0xf598x1b-= _0xf598x12;1> _0xf598x15&& (_0xf598x15+= 4);1> _0xf598x1b&& (_0xf598x1b+= 4);_0xf598x1b= mxEdgeStyle[_0xff99[2238]][_0xf598x15- 1][_0xf598x1b- 1];mxEdgeStyle[_0xff99[2239]][0][0]= _0xf598x5[0][0];mxEdgeStyle[_0xff99[2239]][0][1]= _0xf598x5[0][1];switch(_0xf598x2[0]){case mxConstants[_0xff99[436]]:mxEdgeStyle[_0xff99[2239]][0][0]-= _0xf598xa;mxEdgeStyle[_0xff99[2239]][0][1]+= _0xf598x3[0][1]* _0xf598x5[0][3];break;case mxConstants[_0xff99[437]]:mxEdgeStyle[_0xff99[2239]][0][0]+= _0xf598x3[0][0]* _0xf598x5[0][2];mxEdgeStyle[_0xff99[2239]][0][1]+= _0xf598x5[0][3]+ _0xf598xa;break;case mxConstants[_0xff99[438]]:mxEdgeStyle[_0xff99[2239]][0][0]+= _0xf598x5[0][2]+ _0xf598xa;mxEdgeStyle[_0xff99[2239]][0][1]+= _0xf598x3[0][1]* _0xf598x5[0][3];break;case mxConstants[_0xff99[435]]:mxEdgeStyle[_0xff99[2239]][0][0]+= _0xf598x3[0][0]* _0xf598x5[0][2],mxEdgeStyle[_0xff99[2239]][0][1]-= _0xf598xa};_0xf598xa= 0;_0xf598x13= _0xf598x4= 0< (_0xf598x2[0]& (mxConstants[_0xff99[438]]| mxConstants[_0xff99[436]]))?0:1;for(_0xf598x15= _0xf598x14= 0;_0xf598x15< _0xf598x1b[_0xff99[67]];_0xf598x15++){_0xf598x14= _0xf598x1b[_0xf598x15]& 15;_0xf598x1a= _0xf598x14== mxConstants[_0xff99[438]]?3:_0xf598x14;_0xf598x1a+= _0xf598x12;4< _0xf598x1a&& (_0xf598x1a-= 4);_0xf598x16= mxEdgeStyle[_0xff99[2240]][_0xf598x1a- 1];_0xf598x14= 0< _0xf598x1a% 2?0:1;_0xf598x14!= _0xf598x4&& (_0xf598xa++,mxEdgeStyle[_0xff99[2239]][_0xf598xa][0]= mxEdgeStyle[_0xff99[2239]][_0xf598xa- 1][0],mxEdgeStyle[_0xff99[2239]][_0xf598xa][1]= mxEdgeStyle[_0xff99[2239]][_0xf598xa- 1][1]);var _0xf598x1c=0< (_0xf598x1b[_0xf598x15]& mxEdgeStyle[_0xff99[2241]]),_0xf598x19=0< (_0xf598x1b[_0xf598x15]& mxEdgeStyle[_0xff99[2242]]),_0xf598x17=(_0xf598x1b[_0xf598x15]& mxEdgeStyle[_0xff99[2243]])>> 5,_0xf598x17=_0xf598x17<< _0xf598x12;15< _0xf598x17&& (_0xf598x17>>= 4);_0xf598x18= 0< (_0xf598x1b[_0xf598x15]& mxEdgeStyle[_0xff99[2244]]);(_0xf598x19|| _0xf598x1c)&& 9> _0xf598x17?(_0xf598x1a= 0,_0xf598x19= _0xf598x19?0:1,_0xf598x1a= _0xf598x18&& 0== _0xf598x14?_0xf598x5[_0xf598x19][0]+ _0xf598x3[_0xf598x19][0]* _0xf598x5[_0xf598x19][2]:_0xf598x18?_0xf598x5[_0xf598x19][1]+ _0xf598x3[_0xf598x19][1]* _0xf598x5[_0xf598x19][3]:mxEdgeStyle[_0xff99[2235]][_0xf598x19][_0xf598x17],0== _0xf598x14?(_0xf598x17= (_0xf598x1a- mxEdgeStyle[_0xff99[2239]][_0xf598xa][0])* _0xf598x16[0],0< _0xf598x17&& (mxEdgeStyle[_0xff99[2239]][_0xf598xa][0]+= _0xf598x16[0]* _0xf598x17)):(_0xf598x17= (_0xf598x1a- mxEdgeStyle[_0xff99[2239]][_0xf598xa][1])* _0xf598x16[1],0< _0xf598x17&& (mxEdgeStyle[_0xff99[2239]][_0xf598xa][1]+= _0xf598x16[1]* _0xf598x17))):_0xf598x18&& (mxEdgeStyle[_0xff99[2239]][_0xf598xa][0]+= _0xf598x16[0]* Math[_0xff99[425]](mxEdgeStyle[_0xff99[2236]][_0xf598x1a]/ 2),mxEdgeStyle[_0xff99[2239]][_0xf598xa][1]+= _0xf598x16[1]* Math[_0xff99[425]](mxEdgeStyle[_0xff99[2236]][_0xf598x1a]/ 2));0< _0xf598xa&& mxEdgeStyle[_0xff99[2239]][_0xf598xa][_0xf598x14]== mxEdgeStyle[_0xff99[2239]][_0xf598xa- 1][_0xf598x14]?_0xf598xa--:_0xf598x4= _0xf598x14};for(_0xf598x15= 0;_0xf598x15<= _0xf598xa&& !(_0xf598x15== _0xf598xa&& ((0< (_0xf598x2[1]& (mxConstants[_0xff99[438]]| mxConstants[_0xff99[436]]))?0:1)== _0xf598x13?0:1)!= (_0xf598xa+ 1)% 2);_0xf598x15++){_0xf598x9[_0xff99[207]]( new mxPoint(mxEdgeStyle[_0xff99[2239]][_0xf598x15][0],mxEdgeStyle[_0xff99[2239]][_0xf598x15][1]))}}},getRoutePattern:function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){var _0xf598x9=_0xf598x2[0]== mxConstants[_0xff99[438]]?3:_0xf598x2[0];_0xf598x2= _0xf598x2[1]== mxConstants[_0xff99[438]]?3:_0xf598x2[1];_0xf598x9-= _0xf598x3;_0xf598x2-= _0xf598x3;1> _0xf598x9&& (_0xf598x9+= 4);1> _0xf598x2&& (_0xf598x2+= 4);_0xf598x3= routePatterns[_0xf598x9- 1][_0xf598x2- 1];if(0== _0xf598x4|| 0== _0xf598x5){null!= inlineRoutePatterns[_0xf598x9- 1][_0xf598x2- 1]&& (_0xf598x3= inlineRoutePatterns[_0xf598x9- 1][_0xf598x2- 1])};return _0xf598x3}},mxStyleRegistry={values:[],putValue:function(_0xf598x2,_0xf598x3){mxStyleRegistry[_0xff99[2245]][_0xf598x2]= _0xf598x3},getValue:function(_0xf598x2){return mxStyleRegistry[_0xff99[2245]][_0xf598x2]},getName:function(_0xf598x2){for(var _0xf598x3 in mxStyleRegistry[_0xff99[2245]]){if(mxStyleRegistry[_0xff99[2245]][_0xf598x3]== _0xf598x2){return _0xf598x3}};return null}};mxStyleRegistry[_0xff99[2246]](mxConstants.EDGESTYLE_ELBOW,mxEdgeStyle.ElbowConnector);mxStyleRegistry[_0xff99[2246]](mxConstants.EDGESTYLE_ENTITY_RELATION,mxEdgeStyle.EntityRelation);mxStyleRegistry[_0xff99[2246]](mxConstants.EDGESTYLE_LOOP,mxEdgeStyle.Loop);mxStyleRegistry[_0xff99[2246]](mxConstants.EDGESTYLE_SIDETOSIDE,mxEdgeStyle.SideToSide);mxStyleRegistry[_0xff99[2246]](mxConstants.EDGESTYLE_TOPTOBOTTOM,mxEdgeStyle.TopToBottom);mxStyleRegistry[_0xff99[2246]](mxConstants.EDGESTYLE_ORTHOGONAL,mxEdgeStyle.OrthConnector);mxStyleRegistry[_0xff99[2246]](mxConstants.EDGESTYLE_SEGMENT,mxEdgeStyle.SegmentConnector);mxStyleRegistry[_0xff99[2246]](mxConstants.PERIMETER_ELLIPSE,mxPerimeter.EllipsePerimeter);mxStyleRegistry[_0xff99[2246]](mxConstants.PERIMETER_RECTANGLE,mxPerimeter.RectanglePerimeter);mxStyleRegistry[_0xff99[2246]](mxConstants.PERIMETER_RHOMBUS,mxPerimeter.RhombusPerimeter);mxStyleRegistry[_0xff99[2246]](mxConstants.PERIMETER_TRIANGLE,mxPerimeter.TrianglePerimeter);function mxGraphView(_0xf598x2){this[_0xff99[1179]]= _0xf598x2;this[_0xff99[513]]= new mxPoint;this[_0xff99[2247]]= new mxRectangle;this[_0xff99[1214]]= new mxDictionary}mxGraphView[_0xff99[202]]= new mxEventSource;mxGraphView[_0xff99[202]][_0xff99[196]]= mxGraphView;mxGraphView[_0xff99[202]][_0xff99[2248]]= new mxPoint;mxGraphView[_0xff99[202]][_0xff99[2091]]= _0xff99[130]!= mxClient[_0xff99[90]]?_0xff99[819]:_0xff99[110];mxGraphView[_0xff99[202]][_0xff99[2249]]= _0xff99[130]!= mxClient[_0xff99[90]]?_0xff99[2250]:_0xff99[110];mxGraphView[_0xff99[202]][_0xff99[2251]]= !1;mxGraphView[_0xff99[202]][_0xff99[2252]]= !0;mxGraphView[_0xff99[202]][_0xff99[2253]]= !0;mxGraphView[_0xff99[202]][_0xff99[2254]]= !0;mxGraphView[_0xff99[202]][_0xff99[1179]]= null;mxGraphView[_0xff99[202]][_0xff99[1741]]= null;mxGraphView[_0xff99[202]][_0xff99[2247]]= null;mxGraphView[_0xff99[202]][_0xff99[255]]= 1;mxGraphView[_0xff99[202]][_0xff99[513]]= null;mxGraphView[_0xff99[202]][_0xff99[2255]]= !1;mxGraphView[_0xff99[202]][_0xff99[517]]= function(){return this[_0xff99[2247]]};mxGraphView[_0xff99[202]][_0xff99[2256]]= function(_0xf598x2){this[_0xff99[2247]]= _0xf598x2};mxGraphView[_0xff99[202]][_0xff99[1799]]= function(_0xf598x2){var _0xf598x3=null;if(null!= _0xf598x2&& 0< _0xf598x2[_0xff99[67]]){for(var _0xf598x4=this[_0xff99[1179]][_0xff99[502]](),_0xf598x5=0;_0xf598x5< _0xf598x2[_0xff99[67]];_0xf598x5++){if(_0xf598x4[_0xff99[1193]](_0xf598x2[_0xf598x5])|| _0xf598x4[_0xff99[250]](_0xf598x2[_0xf598x5])){var _0xf598x9=this[_0xff99[248]](_0xf598x2[_0xf598x5]);null!= _0xf598x9&& (null== _0xf598x3?_0xf598x3= new mxRectangle(_0xf598x9[_0xff99[235]],_0xf598x9[_0xff99[236]],_0xf598x9[_0xff99[117]],_0xf598x9[_0xff99[119]]):_0xf598x3[_0xff99[99]](_0xf598x9))}}};return _0xf598x3};mxGraphView[_0xff99[202]][_0xff99[2257]]= function(_0xf598x2){if(this[_0xff99[1741]]!= _0xf598x2){var _0xf598x3= new mxCurrentRootChange(this,_0xf598x2);_0xf598x3[_0xff99[350]]();var _0xf598x4= new mxUndoableEdit(this,!1);_0xf598x4[_0xff99[99]](_0xf598x3);this[_0xff99[746]]( new mxEventObject(mxEvent.UNDO,_0xff99[1061],_0xf598x4));this[_0xff99[1179]][_0xff99[2258]]()};return _0xf598x2};mxGraphView[_0xff99[202]][_0xff99[829]]= function(_0xf598x2,_0xf598x3,_0xf598x4){var _0xf598x5=this[_0xff99[255]],_0xf598x9= new mxPoint(this[_0xff99[513]][_0xff99[235]],this[_0xff99[513]][_0xff99[236]]);if(this[_0xff99[255]]!= _0xf598x2|| this[_0xff99[513]][_0xff99[235]]!= _0xf598x3|| this[_0xff99[513]][_0xff99[236]]!= _0xf598x4){this[_0xff99[255]]= _0xf598x2,this[_0xff99[513]][_0xff99[235]]= _0xf598x3,this[_0xff99[513]][_0xff99[236]]= _0xf598x4,this[_0xff99[503]]()&& (this[_0xff99[2259]](),this[_0xff99[1179]][_0xff99[2258]]())};this[_0xff99[746]]( new mxEventObject(mxEvent.SCALE_AND_TRANSLATE,_0xff99[255],_0xf598x2,_0xff99[2260],_0xf598x5,_0xff99[513],this[_0xff99[513]],_0xff99[2261],_0xf598x9))};mxGraphView[_0xff99[202]][_0xff99[518]]= function(){return this[_0xff99[255]]};mxGraphView[_0xff99[202]][_0xff99[2262]]= function(_0xf598x2){var _0xf598x3=this[_0xff99[255]];this[_0xff99[255]]!= _0xf598x2&& (this[_0xff99[255]]= _0xf598x2,this[_0xff99[503]]()&& (this[_0xff99[2259]](),this[_0xff99[1179]][_0xff99[2258]]()));this[_0xff99[746]]( new mxEventObject(mxEvent.SCALE,_0xff99[255],_0xf598x2,_0xff99[2260],_0xf598x3))};mxGraphView[_0xff99[202]][_0xff99[512]]= function(){return this[_0xff99[513]]};mxGraphView[_0xff99[202]][_0xff99[1147]]= function(_0xf598x2,_0xf598x3){var _0xf598x4= new mxPoint(this[_0xff99[513]][_0xff99[235]],this[_0xff99[513]][_0xff99[236]]);if(this[_0xff99[513]][_0xff99[235]]!= _0xf598x2|| this[_0xff99[513]][_0xff99[236]]!= _0xf598x3){this[_0xff99[513]][_0xff99[235]]= _0xf598x2,this[_0xff99[513]][_0xff99[236]]= _0xf598x3,this[_0xff99[503]]()&& (this[_0xff99[2259]](),this[_0xff99[1179]][_0xff99[2258]]())};this[_0xff99[746]]( new mxEventObject(mxEvent.TRANSLATE,_0xff99[513],this[_0xff99[513]],_0xff99[2261],_0xf598x4))};mxGraphView[_0xff99[202]][_0xff99[802]]= function(){null!= this[_0xff99[1741]]&& this[_0xff99[200]]();this[_0xff99[2259]]()};mxGraphView[_0xff99[202]][_0xff99[2259]]= function(){this[_0xff99[2263]]();this[_0xff99[2264]]()};mxGraphView[_0xff99[202]][_0xff99[200]]= function(_0xf598x2,_0xf598x3,_0xf598x4){var _0xf598x5=this[_0xff99[1179]][_0xff99[502]]();_0xf598x2= _0xf598x2|| _0xf598x5[_0xff99[501]]();_0xf598x3= null!= _0xf598x3?_0xf598x3:!1;_0xf598x4= null!= _0xf598x4?_0xf598x4:!0;this[_0xff99[2265]](_0xf598x2);if(_0xf598x4&& (_0xf598x3|| _0xf598x2!= this[_0xff99[1741]])){_0xf598x4= _0xf598x5[_0xff99[262]](_0xf598x2);for(var _0xf598x9=0;_0xf598x9< _0xf598x4;_0xf598x9++){this[_0xff99[200]](_0xf598x5[_0xff99[263]](_0xf598x2,_0xf598x9),_0xf598x3)}}else {this[_0xff99[2263]](_0xf598x2)}};mxGraphView[_0xff99[202]][_0xff99[2263]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){var _0xf598x9=this[_0xff99[1179]][_0xff99[502]]();_0xf598x2= _0xf598x2|| _0xf598x9[_0xff99[501]]();_0xf598x3= null!= _0xf598x3?_0xf598x3:!0;_0xf598x4= null!= _0xf598x4?_0xf598x4:!0;_0xf598x5= null!= _0xf598x5?_0xf598x5:!1;var _0xf598xa=this[_0xff99[248]](_0xf598x2);null!= _0xf598xa&& (_0xf598xa[_0xff99[2080]]= !0,_0xf598x5&& (_0xf598xa[_0xff99[2082]]= !0));if(_0xf598x3){for(var _0xf598x12=_0xf598x9[_0xff99[262]](_0xf598x2),_0xf598xa=0;_0xf598xa< _0xf598x12;_0xf598xa++){var _0xf598x13=_0xf598x9[_0xff99[263]](_0xf598x2,_0xf598xa);this[_0xff99[2263]](_0xf598x13,_0xf598x3,_0xf598x4,_0xf598x5)}};if(_0xf598x4){_0xf598x5= _0xf598x9[_0xff99[1707]](_0xf598x2);for(_0xf598xa= 0;_0xf598xa< _0xf598x5;_0xf598xa++){this[_0xff99[2263]](_0xf598x9[_0xff99[1708]](_0xf598x2,_0xf598xa),_0xf598x3,_0xf598x4)}}};mxGraphView[_0xff99[202]][_0xff99[2264]]= function(_0xf598x2){var _0xf598x3=mxLog[_0xff99[2109]](_0xff99[2266]);window[_0xff99[879]]= mxResources[_0xff99[203]](this[_0xff99[2249]])|| this[_0xff99[2249]];var _0xf598x4=null;if(this[_0xff99[2253]]&& null!= this[_0xff99[510]]&& null== this[_0xff99[1653]]&& (8== document[_0xff99[5]]|| mxClient[_0xff99[496]])){_0xf598x4= this[_0xff99[510]][_0xff99[124]][_0xff99[495]];this[_0xff99[510]][_0xff99[124]][_0xff99[495]]= _0xff99[130];var _0xf598x5=document[_0xff99[55]](_0xff99[485]);_0xf598x5[_0xff99[124]][_0xff99[491]]= _0xff99[492];_0xf598x5[_0xff99[124]][_0xff99[493]]= _0xff99[494];_0xf598x5[_0xff99[124]][_0xff99[187]]= _0xff99[188];_0xf598x5[_0xff99[124]][_0xff99[495]]= mxClient[_0xff99[496]]?_0xff99[497]:_0xff99[498];_0xf598x5[_0xff99[124]][_0xff99[499]]= _0xff99[500];document[_0xff99[112]][_0xff99[62]](_0xf598x5);this[_0xff99[1653]]= _0xf598x5};_0xf598x2= _0xf598x2|| (null!= this[_0xff99[1741]]?this[_0xff99[1741]]:this[_0xff99[1179]][_0xff99[502]]()[_0xff99[501]]());this[_0xff99[2267]](null,_0xf598x2);_0xf598x2= this[_0xff99[2268]](null,_0xf598x2);null== _0xf598x2&& (_0xf598x2= new mxRectangle);this[_0xff99[2256]](_0xf598x2);this[_0xff99[2269]]();null!= _0xf598x4&& (this[_0xff99[510]][_0xff99[124]][_0xff99[495]]= _0xf598x4,document[_0xff99[112]][_0xff99[266]](this[_0xff99[1653]]),this[_0xff99[1653]]= null);window[_0xff99[879]]= mxResources[_0xff99[203]](this[_0xff99[2091]])|| this[_0xff99[2091]];mxLog[_0xff99[2110]](_0xff99[2266],_0xf598x3)};mxGraphView[_0xff99[202]][_0xff99[2270]]= function(_0xf598x2){return new mxRectangleShape(_0xf598x2,_0xff99[1391],_0xff99[586])};mxGraphView[_0xff99[202]][_0xff99[2269]]= function(){var _0xf598x2=this[_0xff99[1179]][_0xff99[2271]]();if(null!= _0xf598x2){if(null== this[_0xff99[1617]]|| this[_0xff99[1617]][_0xff99[618]]!= _0xf598x2[_0xff99[390]]){null!= this[_0xff99[1617]]&& this[_0xff99[1617]][_0xff99[515]]();var _0xf598x3= new mxRectangle(0,0,1,1);this[_0xff99[1617]]= new mxImageShape(_0xf598x3,_0xf598x2[_0xff99[390]]);this[_0xff99[1617]][_0xff99[507]]= this[_0xff99[1179]][_0xff99[507]];this[_0xff99[1617]][_0xff99[176]](this[_0xff99[2053]]);this[_0xff99[1617]][_0xff99[258]]()};this[_0xff99[2272]](this[_0xff99[1617]],_0xf598x2)}else {null!= this[_0xff99[1617]]&& (this[_0xff99[1617]][_0xff99[515]](),this[_0xff99[1617]]= null)};this[_0xff99[1179]][_0xff99[2273]]?(_0xf598x3= this[_0xff99[2274]](),null== this[_0xff99[2275]]?(this[_0xff99[2275]]= this[_0xff99[2270]](_0xf598x3),this[_0xff99[2275]][_0xff99[255]]= this[_0xff99[255]],this[_0xff99[2275]][_0xff99[1596]]= !0,this[_0xff99[2275]][_0xff99[507]]= this[_0xff99[1179]][_0xff99[507]],this[_0xff99[2275]][_0xff99[176]](this[_0xff99[2053]]),this[_0xff99[2275]][_0xff99[258]](),mxEvent[_0xff99[169]](this[_0xff99[2275]][_0xff99[252]],_0xff99[760],mxUtils[_0xff99[885]](this,function(_0xf598x2){this[_0xff99[1179]][_0xff99[761]](_0xf598x2)})),mxEvent[_0xff99[759]](this[_0xff99[2275]][_0xff99[252]],mxUtils[_0xff99[885]](this,function(_0xf598x2){this[_0xff99[1179]][_0xff99[758]](mxEvent.MOUSE_DOWN, new mxMouseEvent(_0xf598x2))}),mxUtils[_0xff99[885]](this,function(_0xf598x2){null!= this[_0xff99[1179]][_0xff99[2276]]&& this[_0xff99[1179]][_0xff99[2276]][_0xff99[2277]]()&& this[_0xff99[1179]][_0xff99[2276]][_0xff99[801]]();this[_0xff99[1179]][_0xff99[1009]]&& !mxEvent[_0xff99[721]](_0xf598x2)&& this[_0xff99[1179]][_0xff99[758]](mxEvent.MOUSE_MOVE, new mxMouseEvent(_0xf598x2))}),mxUtils[_0xff99[885]](this,function(_0xf598x2){this[_0xff99[1179]][_0xff99[758]](mxEvent.MOUSE_UP, new mxMouseEvent(_0xf598x2))}))):(this[_0xff99[2275]][_0xff99[255]]= this[_0xff99[255]],this[_0xff99[2275]][_0xff99[1562]]= _0xf598x3,this[_0xff99[2275]][_0xff99[258]]())):null!= this[_0xff99[2275]]&& (this[_0xff99[2275]][_0xff99[515]](),this[_0xff99[2275]]= null)};mxGraphView[_0xff99[202]][_0xff99[2274]]= function(){var _0xf598x2=this[_0xff99[1179]][_0xff99[2013]],_0xf598x3=this[_0xff99[255]]* this[_0xff99[1179]][_0xff99[2012]];return new mxRectangle(this[_0xff99[255]]* this[_0xff99[513]][_0xff99[235]],this[_0xff99[255]]* this[_0xff99[513]][_0xff99[236]],_0xf598x2[_0xff99[117]]* _0xf598x3,_0xf598x2[_0xff99[119]]* _0xf598x3)};mxGraphView[_0xff99[202]][_0xff99[2272]]= function(_0xf598x2,_0xf598x3){_0xf598x2[_0xff99[255]]= this[_0xff99[255]];_0xf598x2[_0xff99[1562]][_0xff99[235]]= this[_0xff99[255]]* this[_0xff99[513]][_0xff99[235]];_0xf598x2[_0xff99[1562]][_0xff99[236]]= this[_0xff99[255]]* this[_0xff99[513]][_0xff99[236]];_0xf598x2[_0xff99[1562]][_0xff99[117]]= this[_0xff99[255]]* _0xf598x3[_0xff99[117]];_0xf598x2[_0xff99[1562]][_0xff99[119]]= this[_0xff99[255]]* _0xf598x3[_0xff99[119]];_0xf598x2[_0xff99[258]]()};mxGraphView[_0xff99[202]][_0xff99[2267]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=this[_0xff99[1179]][_0xff99[502]](),_0xf598x5=this[_0xff99[248]](_0xf598x3,!0);if(null!= _0xf598x5&& _0xf598x5[_0xff99[2080]]){if(this[_0xff99[1179]][_0xff99[1714]](_0xf598x3)){if(_0xf598x3!= this[_0xff99[1741]]&& null!= _0xf598x2){_0xf598x5[_0xff99[2079]][_0xff99[235]]= 0;_0xf598x5[_0xff99[2079]][_0xff99[236]]= 0;_0xf598x5[_0xff99[2078]][_0xff99[235]]= _0xf598x2[_0xff99[2078]][_0xff99[235]];_0xf598x5[_0xff99[2078]][_0xff99[236]]= _0xf598x2[_0xff99[2078]][_0xff99[236]];var _0xf598x9=this[_0xff99[1179]][_0xff99[1198]](_0xf598x3);if(null!= _0xf598x9){if(!_0xf598x4[_0xff99[250]](_0xf598x3)){var _0xf598xa=_0xf598x9[_0xff99[1368]]|| this[_0xff99[2248]];_0xf598x9[_0xff99[1500]]?(_0xf598x5[_0xff99[2078]][_0xff99[235]]+= _0xf598x9[_0xff99[235]]* _0xf598x2[_0xff99[117]]/ this[_0xff99[255]]+ _0xf598xa[_0xff99[235]],_0xf598x5[_0xff99[2078]][_0xff99[236]]+= _0xf598x9[_0xff99[236]]* _0xf598x2[_0xff99[119]]/ this[_0xff99[255]]+ _0xf598xa[_0xff99[236]]):(_0xf598x5[_0xff99[2079]][_0xff99[235]]= this[_0xff99[255]]* _0xf598xa[_0xff99[235]],_0xf598x5[_0xff99[2079]][_0xff99[236]]= this[_0xff99[255]]* _0xf598xa[_0xff99[236]],_0xf598x5[_0xff99[2078]][_0xff99[235]]+= _0xf598x9[_0xff99[235]],_0xf598x5[_0xff99[2078]][_0xff99[236]]+= _0xf598x9[_0xff99[236]])};_0xf598x5[_0xff99[235]]= this[_0xff99[255]]* (this[_0xff99[513]][_0xff99[235]]+ _0xf598x5[_0xff99[2078]][_0xff99[235]]);_0xf598x5[_0xff99[236]]= this[_0xff99[255]]* (this[_0xff99[513]][_0xff99[236]]+ _0xf598x5[_0xff99[2078]][_0xff99[236]]);_0xf598x5[_0xff99[117]]= this[_0xff99[255]]* _0xf598x9[_0xff99[117]];_0xf598x5[_0xff99[119]]= this[_0xff99[255]]* _0xf598x9[_0xff99[119]];if(_0xf598x4[_0xff99[1193]](_0xf598x3)){if(_0xf598x9[_0xff99[1500]]&& (_0xf598xa= mxUtils[_0xff99[431]](_0xf598x2[_0xff99[124]][mxConstants[_0xff99[2278]]]|| _0xff99[468]),0!= _0xf598xa)){var _0xf598x9=Math[_0xff99[426]](_0xf598xa),_0xf598xa=Math[_0xff99[427]](_0xf598xa),_0xf598x12= new mxPoint(_0xf598x5[_0xff99[241]](),_0xf598x5[_0xff99[242]]()),_0xf598x13= new mxPoint(_0xf598x2[_0xff99[241]](),_0xf598x2[_0xff99[242]]()),_0xf598x9=mxUtils[_0xff99[432]](_0xf598x12,_0xf598x9,_0xf598xa,_0xf598x13);_0xf598x5[_0xff99[235]]= _0xf598x9[_0xff99[235]]- _0xf598x5[_0xff99[117]]/ 2;_0xf598x5[_0xff99[236]]= _0xf598x9[_0xff99[236]]- _0xf598x5[_0xff99[119]]/ 2};this[_0xff99[2279]](_0xf598x5)}}}}else {this[_0xff99[2265]](_0xf598x3)};_0xf598xa= this[_0xff99[1179]][_0xff99[2280]](_0xf598x3);null!= _0xf598xa&& (_0xf598x5[_0xff99[2078]][_0xff99[235]]+= _0xf598xa[_0xff99[235]],_0xf598x5[_0xff99[2078]][_0xff99[236]]+= _0xf598xa[_0xff99[236]])};if(null!= _0xf598x5&& (!this[_0xff99[1179]][_0xff99[1742]](_0xf598x3)|| _0xf598x3== this[_0xff99[1741]])){_0xf598x9= _0xf598x4[_0xff99[262]](_0xf598x3);for(_0xf598xa= 0;_0xf598xa< _0xf598x9;_0xf598xa++){_0xf598x12= _0xf598x4[_0xff99[263]](_0xf598x3,_0xf598xa),this[_0xff99[2267]](_0xf598x5,_0xf598x12)}}};mxGraphView[_0xff99[202]][_0xff99[2279]]= function(_0xf598x2){var _0xf598x3=mxUtils[_0xff99[433]](_0xf598x2[_0xff99[124]],mxConstants.STYLE_LABEL_POSITION,mxConstants.ALIGN_CENTER);_0xf598x3== mxConstants[_0xff99[2132]]?_0xf598x2[_0xff99[2079]][_0xff99[235]]-= _0xf598x2[_0xff99[117]]:_0xf598x3== mxConstants[_0xff99[480]]&& (_0xf598x2[_0xff99[2079]][_0xff99[235]]+= _0xf598x2[_0xff99[117]]);_0xf598x3= mxUtils[_0xff99[433]](_0xf598x2[_0xff99[124]],mxConstants.STYLE_VERTICAL_LABEL_POSITION,mxConstants.ALIGN_MIDDLE);_0xf598x3== mxConstants[_0xff99[1687]]?_0xf598x2[_0xff99[2079]][_0xff99[236]]-= _0xf598x2[_0xff99[119]]:_0xf598x3== mxConstants[_0xff99[482]]&& (_0xf598x2[_0xff99[2079]][_0xff99[236]]+= _0xf598x2[_0xff99[119]])};mxGraphView[_0xff99[202]][_0xff99[2268]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=this[_0xff99[1179]][_0xff99[502]](),_0xf598x5=this[_0xff99[248]](_0xf598x3),_0xf598x9=null;if(null!= _0xf598x5){if(_0xf598x5[_0xff99[2080]]){var _0xf598xa=this[_0xff99[1179]][_0xff99[1198]](_0xf598x3);if(null!= _0xf598xa&& _0xf598x4[_0xff99[250]](_0xf598x3)){var _0xf598x12=this[_0xff99[248]](this[_0xff99[1710]](_0xf598x3,!0));_0xf598x5[_0xff99[2090]](_0xf598x12,!0);if(null!= _0xf598x12&& _0xf598x4[_0xff99[250]](_0xf598x12[_0xff99[246]])&& !_0xf598x4[_0xff99[1720]](_0xf598x12[_0xff99[246]],_0xf598x3)){var _0xf598x13=this[_0xff99[248]](_0xf598x4[_0xff99[1197]](_0xf598x12[_0xff99[246]]));this[_0xff99[2268]](_0xf598x13,_0xf598x12[_0xff99[246]])};var _0xf598x14=this[_0xff99[248]](this[_0xff99[1710]](_0xf598x3,!1));_0xf598x5[_0xff99[2090]](_0xf598x14,!1);null!= _0xf598x14&& (_0xf598x4[_0xff99[250]](_0xf598x14[_0xff99[246]])&& !_0xf598x4[_0xff99[1720]](_0xf598x14[_0xff99[246]],_0xf598x3))&& (_0xf598x13= this[_0xff99[248]](_0xf598x4[_0xff99[1197]](_0xf598x14[_0xff99[246]])),this[_0xff99[2268]](_0xf598x13,_0xf598x14[_0xff99[246]]));this[_0xff99[2281]](_0xf598x5,_0xf598x12,_0xf598x14);this[_0xff99[2282]](_0xf598x5,_0xf598xa[_0xff99[1525]],_0xf598x12,_0xf598x14);this[_0xff99[2283]](_0xf598x5,_0xf598x12,_0xf598x14);this[_0xff99[2284]](_0xf598x5);this[_0xff99[2285]](_0xf598x5)}else {null!= _0xf598xa&& (_0xf598xa[_0xff99[1500]]&& null!= _0xf598x2&& _0xf598x4[_0xff99[250]](_0xf598x2[_0xff99[246]]))&& (_0xf598xa= this[_0xff99[245]](_0xf598x2,_0xf598xa),null!= _0xf598xa&& (_0xf598x5[_0xff99[235]]= _0xf598xa[_0xff99[235]],_0xf598x5[_0xff99[236]]= _0xf598xa[_0xff99[236]],_0xf598xa[_0xff99[235]]= _0xf598xa[_0xff99[235]]/ this[_0xff99[255]]- this[_0xff99[513]][_0xff99[235]],_0xf598xa[_0xff99[236]]= _0xf598xa[_0xff99[236]]/ this[_0xff99[255]]- this[_0xff99[513]][_0xff99[236]],_0xf598x5[_0xff99[2078]]= _0xf598xa,this[_0xff99[2286]](_0xf598x2,_0xf598x5)))};_0xf598x5[_0xff99[2080]]= !1;_0xf598x3!= this[_0xff99[1741]]&& this[_0xff99[1179]][_0xff99[259]][_0xff99[258]](_0xf598x5,!1,this[_0xff99[2287]]())};if(_0xf598x4[_0xff99[250]](_0xf598x3)|| _0xf598x4[_0xff99[1193]](_0xf598x3)){null!= _0xf598x5[_0xff99[253]]&& null!= _0xf598x5[_0xff99[253]][_0xff99[1563]]&& (_0xf598x9= _0xf598x5[_0xff99[253]][_0xff99[1563]][_0xff99[238]]()),null!= _0xf598x5[_0xff99[963]]&& !this[_0xff99[1179]][_0xff99[2130]](_0xf598x5[_0xff99[246]])&& null!= _0xf598x5[_0xff99[963]][_0xff99[1563]]&& (null!= _0xf598x9?_0xf598x9[_0xff99[99]](_0xf598x5[_0xff99[963]][_0xff99[1563]]):_0xf598x9= _0xf598x5[_0xff99[963]][_0xff99[1563]][_0xff99[238]]())}};if(null!= _0xf598x5&& (!this[_0xff99[1179]][_0xff99[1742]](_0xf598x3)|| _0xf598x3== this[_0xff99[1741]])){_0xf598xa= _0xf598x4[_0xff99[262]](_0xf598x3);for(_0xf598x12= 0;_0xf598x12< _0xf598xa;_0xf598x12++){_0xf598x13= _0xf598x4[_0xff99[263]](_0xf598x3,_0xf598x12),_0xf598x13= this[_0xff99[2268]](_0xf598x5,_0xf598x13),null!= _0xf598x13&& (null== _0xf598x9?_0xf598x9= _0xf598x13:_0xf598x9[_0xff99[99]](_0xf598x13))}};return _0xf598x9};mxGraphView[_0xff99[202]][_0xff99[2286]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=_0xf598x3[_0xff99[246]];if(!this[_0xff99[1179]][_0xff99[1742]](_0xf598x4)|| _0xf598x4== this[_0xff99[1741]]){for(var _0xf598x5=this[_0xff99[1179]][_0xff99[502]](),_0xf598x9=_0xf598x5[_0xff99[262]](_0xf598x4),_0xf598xa=0;_0xf598xa< _0xf598x9;_0xf598xa++){this[_0xff99[2267]](_0xf598x3,_0xf598x5[_0xff99[263]](_0xf598x4,_0xf598xa))}}};mxGraphView[_0xff99[202]][_0xff99[2281]]= function(_0xf598x2,_0xf598x3,_0xf598x4){this[_0xff99[2289]](_0xf598x2,_0xf598x3,!0,this[_0xff99[1179]][_0xff99[2288]](_0xf598x2,_0xf598x3,!0));this[_0xff99[2289]](_0xf598x2,_0xf598x4,!1,this[_0xff99[1179]][_0xff99[2288]](_0xf598x2,_0xf598x4,!1))};mxGraphView[_0xff99[202]][_0xff99[2289]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){var _0xf598x9=null;null!= _0xf598x5&& (_0xf598x9= this[_0xff99[1179]][_0xff99[2290]](_0xf598x3,_0xf598x5));if(null== _0xf598x9&& null== _0xf598x3){_0xf598x3= this[_0xff99[255]];_0xf598x5= this[_0xff99[513]];var _0xf598xa=_0xf598x2[_0xff99[2078]],_0xf598x9=this[_0xff99[1179]][_0xff99[1198]](_0xf598x2[_0xff99[246]])[_0xff99[2006]](_0xf598x4);null!= _0xf598x9&& (_0xf598x9= new mxPoint(_0xf598x3* (_0xf598x5[_0xff99[235]]+ _0xf598x9[_0xff99[235]]+ _0xf598xa[_0xff99[235]]),_0xf598x3* (_0xf598x5[_0xff99[236]]+ _0xf598x9[_0xff99[236]]+ _0xf598xa[_0xff99[236]])))};_0xf598x2[_0xff99[2088]](_0xf598x9,_0xf598x4)};mxGraphView[_0xff99[202]][_0xff99[2282]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){if(null!= _0xf598x2){var _0xf598x9=[];_0xf598x9[_0xff99[207]](_0xf598x2[_0xff99[439]][0]);var _0xf598xa=this[_0xff99[2291]](_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5);if(null!= _0xf598xa){_0xf598x4= this[_0xff99[2292]](_0xf598x2,_0xf598x4,!0),_0xf598x5= this[_0xff99[2292]](_0xf598x2,_0xf598x5,!1),_0xf598xa(_0xf598x2,_0xf598x4,_0xf598x5,_0xf598x3,_0xf598x9)}else {if(null!= _0xf598x3){for(_0xf598xa= 0;_0xf598xa< _0xf598x3[_0xff99[67]];_0xf598xa++){null!= _0xf598x3[_0xf598xa]&& (_0xf598x5= mxUtils[_0xff99[238]](_0xf598x3[_0xf598xa]),_0xf598x9[_0xff99[207]](this[_0xff99[2229]](_0xf598x2,_0xf598x5)))}}};_0xf598x3= _0xf598x2[_0xff99[439]];_0xf598x9[_0xff99[207]](_0xf598x3[_0xf598x3[_0xff99[67]]- 1]);_0xf598x2[_0xff99[439]]= _0xf598x9}};mxGraphView[_0xff99[202]][_0xff99[2229]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=_0xf598x2[_0xff99[2078]];return new mxPoint(this[_0xff99[255]]* (_0xf598x3[_0xff99[235]]+ this[_0xff99[513]][_0xff99[235]]+ _0xf598x4[_0xff99[235]]),this[_0xff99[255]]* (_0xf598x3[_0xff99[236]]+ this[_0xff99[513]][_0xff99[236]]+ _0xf598x4[_0xff99[236]]))};mxGraphView[_0xff99[202]][_0xff99[2291]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){_0xf598x2= null!= _0xf598x4&& _0xf598x4== _0xf598x5?mxUtils[_0xff99[433]](_0xf598x2[_0xff99[124]],mxConstants.STYLE_LOOP,this[_0xff99[1179]][_0xff99[2293]]):!mxUtils[_0xff99[433]](_0xf598x2[_0xff99[124]],mxConstants.STYLE_NOEDGESTYLE,!1)?_0xf598x2[_0xff99[124]][mxConstants[_0xff99[2294]]]:null;_0xff99[1516]== typeof _0xf598x2&& (_0xf598x3= mxStyleRegistry[_0xff99[433]](_0xf598x2),null== _0xf598x3&& this[_0xff99[2295]]()&& (_0xf598x3= mxUtils[_0xff99[1545]](_0xf598x2)),_0xf598x2= _0xf598x3);return _0xff99[279]== typeof _0xf598x2?_0xf598x2:null};mxGraphView[_0xff99[202]][_0xff99[2283]]= function(_0xf598x2,_0xf598x3,_0xf598x4){var _0xf598x5=_0xf598x2[_0xff99[439]],_0xf598x9=_0xf598x5[0];null== _0xf598x5[_0xf598x5[_0xff99[67]]- 1]&& null!= _0xf598x4&& this[_0xff99[2296]](_0xf598x2,_0xf598x4,_0xf598x3,!1);null== _0xf598x9&& null!= _0xf598x3&& this[_0xff99[2296]](_0xf598x2,_0xf598x3,_0xf598x4,!0)};mxGraphView[_0xff99[202]][_0xff99[2296]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){_0xf598x3= this[_0xff99[2292]](_0xf598x2,_0xf598x3,_0xf598x5);var _0xf598x9=this[_0xff99[2297]](_0xf598x2,_0xf598x4,_0xf598x5),_0xf598xa=this[_0xff99[1179]][_0xff99[2298]](_0xf598x2);_0xf598x4= mxUtils[_0xff99[431]](Number(_0xf598x3[_0xff99[124]][mxConstants[_0xff99[2278]]]|| _0xff99[468]));var _0xf598x12= new mxPoint(_0xf598x3[_0xff99[241]](),_0xf598x3[_0xff99[242]]());if(0!= _0xf598x4){var _0xf598x13=Math[_0xff99[426]](-_0xf598x4),_0xf598x14=Math[_0xff99[427]](-_0xf598x4),_0xf598x9=mxUtils[_0xff99[432]](_0xf598x9,_0xf598x13,_0xf598x14,_0xf598x12)};_0xf598x13= parseFloat(_0xf598x2[_0xff99[124]][mxConstants[_0xff99[2299]]]|| 0);_0xf598x13+= parseFloat(_0xf598x2[_0xff99[124]][_0xf598x5?mxConstants[_0xff99[2300]]:mxConstants[_0xff99[2301]]]|| 0);_0xf598x3= this[_0xff99[2302]](_0xf598x3,_0xf598x9,0== _0xf598x4&& _0xf598xa,_0xf598x13);0!= _0xf598x4&& (_0xf598x13= Math[_0xff99[426]](_0xf598x4),_0xf598x14= Math[_0xff99[427]](_0xf598x4),_0xf598x3= mxUtils[_0xff99[432]](_0xf598x3,_0xf598x13,_0xf598x14,_0xf598x12));_0xf598x2[_0xff99[2088]](_0xf598x3,_0xf598x5)};mxGraphView[_0xff99[202]][_0xff99[2292]]= function(_0xf598x2,_0xf598x3,_0xf598x4){_0xf598x2= mxUtils[_0xff99[433]](_0xf598x2[_0xff99[124]],_0xf598x4?mxConstants[_0xff99[2303]]:mxConstants[_0xff99[2304]]);null!= _0xf598x2&& (_0xf598x2= this[_0xff99[248]](this[_0xff99[1179]][_0xff99[502]]()[_0xff99[736]](_0xf598x2)),null!= _0xf598x2&& (_0xf598x3= _0xf598x2));return _0xf598x3};mxGraphView[_0xff99[202]][_0xff99[2302]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){var _0xf598x9=null;if(null!= _0xf598x2){var _0xf598xa=this[_0xff99[2305]](_0xf598x2);if(null!= _0xf598xa&& null!= _0xf598x3&& (_0xf598x5= this[_0xff99[2087]](_0xf598x2,_0xf598x5),0< _0xf598x5[_0xff99[117]]|| 0< _0xf598x5[_0xff99[119]])){_0xf598x9= _0xf598xa(_0xf598x5,_0xf598x2,_0xf598x3,_0xf598x4)};null== _0xf598x9&& (_0xf598x9= this[_0xff99[245]](_0xf598x2))};return _0xf598x9};mxGraphView[_0xff99[202]][_0xff99[2230]]= function(_0xf598x2){var _0xf598x3=null!= _0xf598x2[_0xff99[124]]?parseFloat(_0xf598x2[_0xff99[124]][mxConstants[_0xff99[2306]]])|| 0:0;return _0xf598x2[_0xff99[241]]()+ _0xf598x3* _0xf598x2[_0xff99[117]]};mxGraphView[_0xff99[202]][_0xff99[2228]]= function(_0xf598x2){var _0xf598x3=null!= _0xf598x2[_0xff99[124]]?parseFloat(_0xf598x2[_0xff99[124]][mxConstants[_0xff99[2307]]])|| 0:0;return _0xf598x2[_0xff99[242]]()+ _0xf598x3* _0xf598x2[_0xff99[119]]};mxGraphView[_0xff99[202]][_0xff99[2087]]= function(_0xf598x2,_0xf598x3){_0xf598x3= null!= _0xf598x3?_0xf598x3:0;null!= _0xf598x2&& (_0xf598x3+= parseFloat(_0xf598x2[_0xff99[124]][mxConstants[_0xff99[2299]]]|| 0));return _0xf598x2[_0xff99[2087]](_0xf598x3* this[_0xff99[255]])};mxGraphView[_0xff99[202]][_0xff99[2305]]= function(_0xf598x2){_0xf598x2= _0xf598x2[_0xff99[124]][mxConstants[_0xff99[2061]]];if(_0xff99[1516]== typeof _0xf598x2){var _0xf598x3=mxStyleRegistry[_0xff99[433]](_0xf598x2);null== _0xf598x3&& this[_0xff99[2295]]()&& (_0xf598x3= mxUtils[_0xff99[1545]](_0xf598x2));_0xf598x2= _0xf598x3};return _0xff99[279]== typeof _0xf598x2?_0xf598x2:null};mxGraphView[_0xff99[202]][_0xff99[2297]]= function(_0xf598x2,_0xf598x3,_0xf598x4){_0xf598x2= _0xf598x2[_0xff99[439]];var _0xf598x5=null;if(null!= _0xf598x2&& (_0xf598x4|| 2< _0xf598x2[_0xff99[67]]|| null== _0xf598x3)){_0xf598x5= _0xf598x2[_0xff99[67]],_0xf598x5= _0xf598x2[_0xf598x4?Math[_0xff99[243]](1,_0xf598x5- 1):Math[_0xff99[160]](0,_0xf598x5- 2)]};null== _0xf598x5&& null!= _0xf598x3&& (_0xf598x5= new mxPoint(_0xf598x3[_0xff99[241]](),_0xf598x3[_0xff99[242]]()));return _0xf598x5};mxGraphView[_0xff99[202]][_0xff99[1710]]= function(_0xf598x2,_0xf598x3){for(var _0xf598x4=this[_0xff99[1179]][_0xff99[502]](),_0xf598x5=_0xf598x4[_0xff99[1709]](_0xf598x2,_0xf598x3),_0xf598x9=_0xf598x5;null!= _0xf598x5&& _0xf598x5!= this[_0xff99[1741]];){if(!this[_0xff99[1179]][_0xff99[1714]](_0xf598x9)|| this[_0xff99[1179]][_0xff99[1742]](_0xf598x5)){_0xf598x9= _0xf598x5};_0xf598x5= _0xf598x4[_0xff99[1197]](_0xf598x5)};_0xf598x4[_0xff99[1197]](_0xf598x9)== _0xf598x4[_0xff99[501]]()&& (_0xf598x9= null);return _0xf598x9};mxGraphView[_0xff99[202]][_0xff99[2284]]= function(_0xf598x2){var _0xf598x3=_0xf598x2[_0xff99[439]];_0xf598x2[_0xff99[67]]= 0;if(null!= _0xf598x3&& 0< _0xf598x3[_0xff99[67]]){var _0xf598x4=_0xf598x3[0],_0xf598x5=_0xf598x3[_0xf598x3[_0xff99[67]]- 1];if(null== _0xf598x4|| null== _0xf598x5){_0xf598x2[_0xff99[246]]!= this[_0xff99[1741]]&& this[_0xff99[200]](_0xf598x2[_0xff99[246]],!0)}else {if(_0xf598x4[_0xff99[235]]!= _0xf598x5[_0xff99[235]]|| _0xf598x4[_0xff99[236]]!= _0xf598x5[_0xff99[236]]){var _0xf598x9=_0xf598x5[_0xff99[235]]- _0xf598x4[_0xff99[235]],_0xf598xa=_0xf598x5[_0xff99[236]]- _0xf598x4[_0xff99[236]];_0xf598x2[_0xff99[2085]]= Math[_0xff99[428]](_0xf598x9* _0xf598x9+ _0xf598xa* _0xf598xa)}else {_0xf598x2[_0xff99[2085]]= 0};var _0xf598x5=0,_0xf598x12=[],_0xf598xa=_0xf598x4;if(null!= _0xf598xa){for(var _0xf598x4=_0xf598xa[_0xff99[235]],_0xf598x13=_0xf598xa[_0xff99[236]],_0xf598x14=_0xf598x4,_0xf598x15=_0xf598x13,_0xf598x16=1;_0xf598x16< _0xf598x3[_0xff99[67]];_0xf598x16++){var _0xf598x17=_0xf598x3[_0xf598x16];null!= _0xf598x17&& (_0xf598x9= _0xf598xa[_0xff99[235]]- _0xf598x17[_0xff99[235]],_0xf598xa= _0xf598xa[_0xff99[236]]- _0xf598x17[_0xff99[236]],_0xf598x9= Math[_0xff99[428]](_0xf598x9* _0xf598x9+ _0xf598xa* _0xf598xa),_0xf598x12[_0xff99[207]](_0xf598x9),_0xf598x5+= _0xf598x9,_0xf598xa= _0xf598x17,_0xf598x4= Math[_0xff99[243]](_0xf598xa[_0xff99[235]],_0xf598x4),_0xf598x13= Math[_0xff99[243]](_0xf598xa[_0xff99[236]],_0xf598x13),_0xf598x14= Math[_0xff99[160]](_0xf598xa[_0xff99[235]],_0xf598x14),_0xf598x15= Math[_0xff99[160]](_0xf598xa[_0xff99[236]],_0xf598x15))};_0xf598x2[_0xff99[67]]= _0xf598x5;_0xf598x2[_0xff99[2086]]= _0xf598x12;_0xf598x2[_0xff99[235]]= _0xf598x4;_0xf598x2[_0xff99[236]]= _0xf598x13;_0xf598x2[_0xff99[117]]= Math[_0xff99[160]](1,_0xf598x14- _0xf598x4);_0xf598x2[_0xff99[119]]= Math[_0xff99[160]](1,_0xf598x15- _0xf598x13)}}}};mxGraphView[_0xff99[202]][_0xff99[245]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=_0xf598x2[_0xff99[241]](),_0xf598x5=_0xf598x2[_0xff99[242]]();if(null!= _0xf598x2[_0xff99[2086]]&& (null== _0xf598x3|| _0xf598x3[_0xff99[1500]])){for(var _0xf598x9=_0xf598x2[_0xff99[439]][_0xff99[67]],_0xf598xa=((null!= _0xf598x3?_0xf598x3[_0xff99[235]]/ 2:0)+ 0.5)* _0xf598x2[_0xff99[67]],_0xf598x12=_0xf598x2[_0xff99[2086]][0],_0xf598x13=0,_0xf598x14=1;_0xf598xa> _0xf598x13+ _0xf598x12&& _0xf598x14< _0xf598x9- 1;){_0xf598x13+= _0xf598x12,_0xf598x12= _0xf598x2[_0xff99[2086]][_0xf598x14++]};_0xf598x9= 0== _0xf598x12?0:(_0xf598xa- _0xf598x13)/ _0xf598x12;_0xf598xa= _0xf598x2[_0xff99[439]][_0xf598x14- 1];_0xf598x14= _0xf598x2[_0xff99[439]][_0xf598x14];if(null!= _0xf598xa&& null!= _0xf598x14){_0xf598x13= _0xf598x4= _0xf598x5= 0;if(null!= _0xf598x3){var _0xf598x5=_0xf598x3[_0xff99[236]],_0xf598x15=_0xf598x3[_0xff99[1368]];null!= _0xf598x15&& (_0xf598x4= _0xf598x15[_0xff99[235]],_0xf598x13= _0xf598x15[_0xff99[236]])};_0xf598x15= _0xf598x14[_0xff99[235]]- _0xf598xa[_0xff99[235]];_0xf598x14= _0xf598x14[_0xff99[236]]- _0xf598xa[_0xff99[236]];_0xf598x4= _0xf598xa[_0xff99[235]]+ _0xf598x15* _0xf598x9+ ((0== _0xf598x12?0:_0xf598x14/ _0xf598x12)* _0xf598x5+ _0xf598x4)* this[_0xff99[255]];_0xf598x5= _0xf598xa[_0xff99[236]]+ _0xf598x14* _0xf598x9- ((0== _0xf598x12?0:_0xf598x15/ _0xf598x12)* _0xf598x5- _0xf598x13)* this[_0xff99[255]]}}else {null!= _0xf598x3&& (_0xf598x15= _0xf598x3[_0xff99[1368]],null!= _0xf598x15&& (_0xf598x4+= _0xf598x15[_0xff99[235]],_0xf598x5+= _0xf598x15[_0xff99[236]]))};return new mxPoint(_0xf598x4,_0xf598x5)};mxGraphView[_0xff99[202]][_0xff99[2308]]= function(_0xf598x2,_0xf598x3,_0xf598x4){var _0xf598x5=this[_0xff99[1179]][_0xff99[502]]()[_0xff99[1721]](_0xf598x2[_0xff99[246]]);if(null!= _0xf598x5){var _0xf598x9=_0xf598x2[_0xff99[439]][_0xff99[67]];if(_0xf598x5[_0xff99[1500]]&& 1< _0xf598x9){for(var _0xf598x5=_0xf598x2[_0xff99[67]],_0xf598xa=_0xf598x2[_0xff99[2086]],_0xf598x12=_0xf598x2[_0xff99[439]][0],_0xf598x13=_0xf598x2[_0xff99[439]][1],_0xf598x14=mxUtils[_0xff99[440]](_0xf598x12[_0xff99[235]],_0xf598x12[_0xff99[236]],_0xf598x13[_0xff99[235]],_0xf598x13[_0xff99[236]],_0xf598x3,_0xf598x4),_0xf598x15=0,_0xf598x16=0,_0xf598x17=0,_0xf598x18=2;_0xf598x18< _0xf598x9;_0xf598x18++){_0xf598x16+= _0xf598xa[_0xf598x18- 2],_0xf598x13= _0xf598x2[_0xff99[439]][_0xf598x18],_0xf598x12= mxUtils[_0xff99[440]](_0xf598x12[_0xff99[235]],_0xf598x12[_0xff99[236]],_0xf598x13[_0xff99[235]],_0xf598x13[_0xff99[236]],_0xf598x3,_0xf598x4),_0xf598x12<= _0xf598x14&& (_0xf598x14= _0xf598x12,_0xf598x15= _0xf598x18- 1,_0xf598x17= _0xf598x16),_0xf598x12= _0xf598x13};_0xf598x9= _0xf598xa[_0xf598x15];_0xf598x12= _0xf598x2[_0xff99[439]][_0xf598x15];_0xf598x13= _0xf598x2[_0xff99[439]][_0xf598x15+ 1];_0xf598x14= _0xf598x13[_0xff99[235]];_0xf598xa= _0xf598x13[_0xff99[236]];_0xf598x2= _0xf598x12[_0xff99[235]]- _0xf598x14;_0xf598x15= _0xf598x12[_0xff99[236]]- _0xf598xa;_0xf598x14= _0xf598x3- _0xf598x14;_0xf598xa= _0xf598x4- _0xf598xa;_0xf598x14= _0xf598x2- _0xf598x14;_0xf598xa= _0xf598x15- _0xf598xa;_0xf598xa= _0xf598x14* _0xf598x2+ _0xf598xa* _0xf598x15;_0xf598x2= Math[_0xff99[428]](0>= _0xf598xa?0:_0xf598xa* _0xf598xa/ (_0xf598x2* _0xf598x2+ _0xf598x15* _0xf598x15));_0xf598x2> _0xf598x9&& (_0xf598x2= _0xf598x9);_0xf598x9= Math[_0xff99[428]](mxUtils[_0xff99[440]](_0xf598x12[_0xff99[235]],_0xf598x12[_0xff99[236]],_0xf598x13[_0xff99[235]],_0xf598x13[_0xff99[236]],_0xf598x3,_0xf598x4));-1== mxUtils[_0xff99[2309]](_0xf598x12[_0xff99[235]],_0xf598x12[_0xff99[236]],_0xf598x13[_0xff99[235]],_0xf598x13[_0xff99[236]],_0xf598x3,_0xf598x4) && (_0xf598x9= -_0xf598x9);return new mxPoint(-2* ((_0xf598x5/ 2- _0xf598x17- _0xf598x2)/ _0xf598x5),_0xf598x9/ this[_0xff99[255]])}};return new mxPoint};mxGraphView[_0xff99[202]][_0xff99[2285]]= function(_0xf598x2){var _0xf598x3=_0xf598x2[_0xff99[439]];_0xf598x2[_0xff99[2079]][_0xff99[235]]= _0xf598x2[_0xff99[241]]();_0xf598x2[_0xff99[2079]][_0xff99[236]]= _0xf598x2[_0xff99[242]]();if(null!= _0xf598x3&& 0< _0xf598x3[_0xff99[67]]&& null!= _0xf598x2[_0xff99[2086]]){var _0xf598x4=this[_0xff99[1179]][_0xff99[1198]](_0xf598x2[_0xff99[246]]);if(_0xf598x4[_0xff99[1500]]){var _0xf598x5=this[_0xff99[245]](_0xf598x2,_0xf598x4);null!= _0xf598x5&& (_0xf598x2[_0xff99[2079]]= _0xf598x5)}else {var _0xf598x5=_0xf598x3[0],_0xf598x9=_0xf598x3[_0xf598x3[_0xff99[67]]- 1];if(null!= _0xf598x5&& null!= _0xf598x9){var _0xf598x3=_0xf598x9[_0xff99[235]]- _0xf598x5[_0xff99[235]],_0xf598xa=_0xf598x9[_0xff99[236]]- _0xf598x5[_0xff99[236]],_0xf598x12=_0xf598x9= 0,_0xf598x4=_0xf598x4[_0xff99[1368]];null!= _0xf598x4&& (_0xf598x9= _0xf598x4[_0xff99[235]],_0xf598x12= _0xf598x4[_0xff99[236]]);_0xf598x4= _0xf598x5[_0xff99[236]]+ _0xf598xa/ 2+ _0xf598x12* this[_0xff99[255]];_0xf598x2[_0xff99[2079]][_0xff99[235]]= _0xf598x5[_0xff99[235]]+ _0xf598x3/ 2+ _0xf598x9* this[_0xff99[255]];_0xf598x2[_0xff99[2079]][_0xff99[236]]= _0xf598x4}}}};mxGraphView[_0xff99[202]][_0xff99[248]]= function(_0xf598x2,_0xf598x3){_0xf598x3= _0xf598x3|| !1;var _0xf598x4=null;null!= _0xf598x2&& (_0xf598x4= this[_0xff99[1214]][_0xff99[203]](_0xf598x2),this[_0xff99[1179]][_0xff99[1714]](_0xf598x2)&& (null== _0xf598x4&& _0xf598x3&& this[_0xff99[1179]][_0xff99[1714]](_0xf598x2)?(_0xf598x4= this[_0xff99[1230]](_0xf598x2),this[_0xff99[1214]][_0xff99[204]](_0xf598x2,_0xf598x4)):_0xf598x3&& (null!= _0xf598x4&& this[_0xff99[2255]])&& (_0xf598x4[_0xff99[124]]= this[_0xff99[1179]][_0xff99[1705]](_0xf598x2))));return _0xf598x4};mxGraphView[_0xff99[202]][_0xff99[2287]]= function(){return this[_0xff99[2254]]};mxGraphView[_0xff99[202]][_0xff99[2310]]= function(_0xf598x2){this[_0xff99[2254]]= _0xf598x2};mxGraphView[_0xff99[202]][_0xff99[2295]]= function(){return this[_0xff99[2251]]};mxGraphView[_0xff99[202]][_0xff99[2311]]= function(_0xf598x2){this[_0xff99[2251]]= _0xf598x2};mxGraphView[_0xff99[202]][_0xff99[2312]]= function(){return this[_0xff99[1214]]};mxGraphView[_0xff99[202]][_0xff99[1517]]= function(_0xf598x2){this[_0xff99[1214]]= _0xf598x2};mxGraphView[_0xff99[202]][_0xff99[2313]]= function(_0xf598x2){if(null== _0xf598x2){return this[_0xff99[1214]]};for(var _0xf598x3=[],_0xf598x4=0;_0xf598x4< _0xf598x2[_0xff99[67]];_0xf598x4++){var _0xf598x5=this[_0xff99[248]](_0xf598x2[_0xf598x4]);null!= _0xf598x5&& _0xf598x3[_0xff99[207]](_0xf598x5)};return _0xf598x3};mxGraphView[_0xff99[202]][_0xff99[2265]]= function(_0xf598x2){var _0xf598x3=null;null!= _0xf598x2&& (_0xf598x3= this[_0xff99[1214]][_0xff99[205]](_0xf598x2),null!= _0xf598x3&& (this[_0xff99[1179]][_0xff99[259]][_0xff99[515]](_0xf598x3),_0xf598x3[_0xff99[515]]()));return _0xf598x3};mxGraphView[_0xff99[202]][_0xff99[1230]]= function(_0xf598x2){var _0xf598x3=this[_0xff99[1179]][_0xff99[1705]](_0xf598x2);_0xf598x2= new mxCellState(this,_0xf598x2,_0xf598x3);this[_0xff99[1179]][_0xff99[259]][_0xff99[2155]](_0xf598x2,this[_0xff99[2287]]());return _0xf598x2};mxGraphView[_0xff99[202]][_0xff99[2051]]= function(){return this[_0xff99[510]]};mxGraphView[_0xff99[202]][_0xff99[2052]]= function(){return this[_0xff99[2053]]};mxGraphView[_0xff99[202]][_0xff99[2024]]= function(){return this[_0xff99[505]]};mxGraphView[_0xff99[202]][_0xff99[1524]]= function(){return this[_0xff99[506]]};mxGraphView[_0xff99[202]][_0xff99[2314]]= function(_0xf598x2){_0xf598x2= mxEvent[_0xff99[728]](_0xf598x2);return _0xf598x2== this[_0xff99[1179]][_0xff99[526]]|| _0xf598x2[_0xff99[265]]== this[_0xff99[2053]]|| null!= _0xf598x2[_0xff99[265]]&& _0xf598x2[_0xff99[265]][_0xff99[265]]== this[_0xff99[2053]]|| _0xf598x2== this[_0xff99[510]][_0xff99[265]]|| _0xf598x2== this[_0xff99[510]]|| _0xf598x2== this[_0xff99[2053]]|| _0xf598x2== this[_0xff99[505]]|| _0xf598x2== this[_0xff99[506]]};mxGraphView[_0xff99[202]][_0xff99[2315]]= function(_0xf598x2){var _0xf598x3=mxUtils[_0xff99[445]](this[_0xff99[1179]][_0xff99[526]]);_0xf598x2= new mxPoint(_0xf598x2[_0xff99[782]]- _0xf598x3[_0xff99[235]],_0xf598x2[_0xff99[784]]- _0xf598x3[_0xff99[236]]);var _0xf598x3=this[_0xff99[1179]][_0xff99[526]][_0xff99[359]],_0xf598x4=this[_0xff99[1179]][_0xff99[526]][_0xff99[159]];if(_0xf598x3> _0xf598x4&& _0xf598x2[_0xff99[235]]> _0xf598x4+ 2&& _0xf598x2[_0xff99[235]]<= _0xf598x3){return !0};_0xf598x3= this[_0xff99[1179]][_0xff99[526]][_0xff99[167]];_0xf598x4= this[_0xff99[1179]][_0xff99[526]][_0xff99[157]];return _0xf598x3> _0xf598x4&& _0xf598x2[_0xff99[236]]> _0xf598x4+ 2&& _0xf598x2[_0xff99[236]]<= _0xf598x3?!0:!1};mxGraphView[_0xff99[202]][_0xff99[176]]= function(){this[_0xff99[2163]]();var _0xf598x2=this[_0xff99[1179]];_0xf598x2[_0xff99[507]]== mxConstants[_0xff99[508]]?this[_0xff99[1569]]():_0xf598x2[_0xff99[507]]== mxConstants[_0xff99[1523]]?this[_0xff99[1571]]():this[_0xff99[1570]]()};mxGraphView[_0xff99[202]][_0xff99[2163]]= function(){var _0xf598x2=this[_0xff99[1179]],_0xf598x3=_0xf598x2[_0xff99[526]];if(null!= _0xf598x3){mxEvent[_0xff99[759]](_0xf598x3,mxUtils[_0xff99[885]](this,function(_0xf598x3){mxClient[_0xff99[754]]&& _0xf598x2[_0xff99[2203]]()&& _0xf598x2[_0xff99[2126]](!_0xf598x2[_0xff99[2134]]());this[_0xff99[2314]](_0xf598x3)&& (!mxClient[_0xff99[80]]&& !mxClient[_0xff99[76]] && !mxClient[_0xff99[71]] && !mxClient[_0xff99[75]] || !this[_0xff99[2315]](_0xf598x3))&& _0xf598x2[_0xff99[758]](mxEvent.MOUSE_DOWN, new mxMouseEvent(_0xf598x3))}),mxUtils[_0xff99[885]](this,function(_0xf598x3){this[_0xff99[2314]](_0xf598x3)&& _0xf598x2[_0xff99[758]](mxEvent.MOUSE_MOVE, new mxMouseEvent(_0xf598x3))}),mxUtils[_0xff99[885]](this,function(_0xf598x3){this[_0xff99[2314]](_0xf598x3)&& _0xf598x2[_0xff99[758]](mxEvent.MOUSE_UP, new mxMouseEvent(_0xf598x3))}));mxEvent[_0xff99[169]](_0xf598x3,_0xff99[760],mxUtils[_0xff99[885]](this,function(_0xf598x3){_0xf598x2[_0xff99[761]](_0xf598x3)}));var _0xf598x4=function(_0xf598x4){var _0xf598x9=null;mxClient[_0xff99[754]]&& (_0xf598x9= mxEvent[_0xff99[731]](_0xf598x4),_0xf598x4= mxEvent[_0xff99[733]](_0xf598x4),_0xf598x4= mxUtils[_0xff99[2196]](_0xf598x3,_0xf598x9,_0xf598x4),_0xf598x9= _0xf598x2[_0xff99[441]][_0xff99[248]](_0xf598x2[_0xff99[999]](_0xf598x4[_0xff99[235]],_0xf598x4[_0xff99[236]])));return _0xf598x9};_0xf598x2[_0xff99[1133]]({mouseDown:function(_0xf598x3,_0xf598x4){_0xf598x2[_0xff99[2316]][_0xff99[1032]]()},mouseMove:function(){},mouseUp:function(){}});this[_0xff99[2317]]= mxUtils[_0xff99[885]](this,function(_0xf598x3){null!= _0xf598x2[_0xff99[2276]]&& _0xf598x2[_0xff99[2276]][_0xff99[2277]]()&& _0xf598x2[_0xff99[2276]][_0xff99[801]]();this[_0xff99[2252]]&& (_0xf598x2[_0xff99[1009]]&& !mxEvent[_0xff99[721]](_0xf598x3))&& _0xf598x2[_0xff99[758]](mxEvent.MOUSE_MOVE, new mxMouseEvent(_0xf598x3,_0xf598x4(_0xf598x3)))});this[_0xff99[2318]]= mxUtils[_0xff99[885]](this,function(_0xf598x3){this[_0xff99[2252]]&& _0xf598x2[_0xff99[758]](mxEvent.MOUSE_UP, new mxMouseEvent(_0xf598x3))});mxEvent[_0xff99[759]](document,null,this[_0xff99[2317]],this[_0xff99[2318]])}};mxGraphView[_0xff99[202]][_0xff99[1570]]= function(){var _0xf598x2=this[_0xff99[1179]][_0xff99[526]];null!= _0xf598x2&& (this[_0xff99[510]]= this[_0xff99[2319]](_0xff99[118],_0xff99[118]),this[_0xff99[2053]]= this[_0xff99[2319]](_0xff99[942],_0xff99[942]),this[_0xff99[505]]= this[_0xff99[2319]](_0xff99[942],_0xff99[942]),this[_0xff99[506]]= this[_0xff99[2319]](_0xff99[942],_0xff99[942]),this[_0xff99[510]][_0xff99[62]](this[_0xff99[2053]]),this[_0xff99[510]][_0xff99[62]](this[_0xff99[505]]),this[_0xff99[510]][_0xff99[62]](this[_0xff99[506]]),_0xf598x2[_0xff99[62]](this[_0xff99[510]]),mxClient[_0xff99[496]]&& (_0xf598x2= mxUtils[_0xff99[885]](this,function(_0xf598x2){_0xf598x2= this[_0xff99[517]]();this[_0xff99[2320]](_0xf598x2[_0xff99[235]]+ _0xf598x2[_0xff99[117]]+ this[_0xff99[1179]][_0xff99[467]],_0xf598x2[_0xff99[236]]+ _0xf598x2[_0xff99[119]]+ this[_0xff99[1179]][_0xff99[467]])}),mxEvent[_0xff99[169]](window,_0xff99[129],_0xf598x2)))};mxGraphView[_0xff99[202]][_0xff99[2320]]= function(_0xf598x2,_0xf598x3){if(null!= this[_0xff99[1179]][_0xff99[526]]){var _0xf598x4=this[_0xff99[1179]][_0xff99[526]][_0xff99[167]];this[_0xff99[510]][_0xff99[124]][_0xff99[117]]= this[_0xff99[1179]][_0xff99[526]][_0xff99[359]]< _0xf598x2?_0xf598x2+ _0xff99[168]:_0xff99[118];this[_0xff99[510]][_0xff99[124]][_0xff99[119]]= _0xf598x4< _0xf598x3?_0xf598x3+ _0xff99[168]:_0xff99[118]}};mxGraphView[_0xff99[202]][_0xff99[2319]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=document[_0xff99[55]](_0xff99[529]);null!= _0xf598x2&& null!= _0xf598x3?(_0xf598x4[_0xff99[124]][_0xff99[491]]= _0xff99[492],_0xf598x4[_0xff99[124]][_0xff99[361]]= _0xff99[946],_0xf598x4[_0xff99[124]][_0xff99[125]]= _0xff99[946],_0xf598x4[_0xff99[124]][_0xff99[117]]= _0xf598x2,_0xf598x4[_0xff99[124]][_0xff99[119]]= _0xf598x3):_0xf598x4[_0xff99[124]][_0xff99[491]]= _0xff99[1500];return _0xf598x4};mxGraphView[_0xff99[202]][_0xff99[1571]]= function(){var _0xf598x2=this[_0xff99[1179]][_0xff99[526]];if(null!= _0xf598x2){var _0xf598x3=_0xf598x2[_0xff99[359]],_0xf598x4=_0xf598x2[_0xff99[167]];this[_0xff99[510]]= this[_0xff99[2321]](_0xf598x3,_0xf598x4);this[_0xff99[2053]]= this[_0xff99[2321]](_0xf598x3,_0xf598x4);this[_0xff99[505]]= this[_0xff99[2321]](_0xf598x3,_0xf598x4);this[_0xff99[506]]= this[_0xff99[2321]](_0xf598x3,_0xf598x4);this[_0xff99[510]][_0xff99[62]](this[_0xff99[2053]]);this[_0xff99[510]][_0xff99[62]](this[_0xff99[505]]);this[_0xff99[510]][_0xff99[62]](this[_0xff99[506]]);_0xf598x2[_0xff99[62]](this[_0xff99[510]])}};mxGraphView[_0xff99[202]][_0xff99[2321]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=document[_0xff99[55]](mxClient[_0xff99[463]]+ _0xff99[1499]);_0xf598x4[_0xff99[124]][_0xff99[491]]= _0xff99[492];_0xf598x4[_0xff99[124]][_0xff99[361]]= _0xff99[946];_0xf598x4[_0xff99[124]][_0xff99[125]]= _0xff99[946];_0xf598x4[_0xff99[124]][_0xff99[117]]= _0xf598x2+ _0xff99[168];_0xf598x4[_0xff99[124]][_0xff99[119]]= _0xf598x3+ _0xff99[168];_0xf598x4[_0xff99[57]](_0xff99[1462],_0xf598x2+ _0xff99[537]+ _0xf598x3);_0xf598x4[_0xff99[57]](_0xff99[2322],_0xff99[2323]);return _0xf598x4};mxGraphView[_0xff99[202]][_0xff99[1569]]= function(){var _0xf598x2=this[_0xff99[1179]][_0xff99[526]];this[_0xff99[510]]= document[_0xff99[509]](mxConstants.NS_SVG,_0xff99[449]);this[_0xff99[2053]]= document[_0xff99[509]](mxConstants.NS_SVG,_0xff99[449]);this[_0xff99[510]][_0xff99[62]](this[_0xff99[2053]]);this[_0xff99[505]]= document[_0xff99[509]](mxConstants.NS_SVG,_0xff99[449]);this[_0xff99[510]][_0xff99[62]](this[_0xff99[505]]);this[_0xff99[506]]= document[_0xff99[509]](mxConstants.NS_SVG,_0xff99[449]);this[_0xff99[510]][_0xff99[62]](this[_0xff99[506]]);var _0xf598x3=document[_0xff99[509]](mxConstants.NS_SVG,_0xff99[571]);_0xf598x3[_0xff99[124]][_0xff99[117]]= _0xff99[118];_0xf598x3[_0xff99[124]][_0xff99[119]]= _0xff99[118];_0xf598x3[_0xff99[124]][_0xff99[495]]= _0xff99[694];_0xf598x3[_0xff99[62]](this[_0xff99[510]]);null!= _0xf598x2&& (_0xf598x2[_0xff99[62]](_0xf598x3),_0xff99[2324]== mxUtils[_0xff99[275]](_0xf598x2)[_0xff99[491]]&& (_0xf598x2[_0xff99[124]][_0xff99[491]]= _0xff99[1500]))};mxGraphView[_0xff99[202]][_0xff99[515]]= function(){var _0xf598x2=null!= this[_0xff99[510]]?this[_0xff99[510]][_0xff99[538]]:null;null== _0xf598x2&& (_0xf598x2= this[_0xff99[510]]);null!= _0xf598x2&& null!= _0xf598x2[_0xff99[265]]&& (this[_0xff99[200]](this[_0xff99[1741]],!0),mxEvent[_0xff99[938]](document,null,this[_0xff99[2317]],this[_0xff99[2318]]),mxEvent[_0xff99[762]](this[_0xff99[1179]][_0xff99[526]]),_0xf598x2[_0xff99[265]][_0xff99[266]](_0xf598x2),this[_0xff99[506]]= this[_0xff99[505]]= this[_0xff99[2053]]= this[_0xff99[510]]= this[_0xff99[2318]]= this[_0xff99[2317]]= null)};function mxCurrentRootChange(_0xf598x2,_0xf598x3){this[_0xff99[441]]= _0xf598x2;this[_0xff99[257]]= this[_0xff99[813]]= _0xf598x3;this[_0xff99[2325]]= null== _0xf598x3;if(!this[_0xff99[2325]]){for(var _0xf598x4=this[_0xff99[441]][_0xff99[1741]],_0xf598x5=this[_0xff99[441]][_0xff99[1179]][_0xff99[502]]();null!= _0xf598x4;){if(_0xf598x4== _0xf598x3){this[_0xff99[2325]]= !0;break};_0xf598x4= _0xf598x5[_0xff99[1197]](_0xf598x4)}}}mxCurrentRootChange[_0xff99[202]][_0xff99[350]]= function(){var _0xf598x2=this[_0xff99[441]][_0xff99[1741]];this[_0xff99[441]][_0xff99[1741]]= this[_0xff99[257]];this[_0xff99[257]]= _0xf598x2;_0xf598x2= this[_0xff99[441]][_0xff99[1179]][_0xff99[2326]](this[_0xff99[441]][_0xff99[1741]]);null!= _0xf598x2&& (this[_0xff99[441]][_0xff99[513]]= new mxPoint(-_0xf598x2[_0xff99[235]],-_0xf598x2[_0xff99[236]]));this[_0xff99[441]][_0xff99[746]]( new mxEventObject(this[_0xff99[2325]]?mxEvent[_0xff99[2327]]:mxEvent[_0xff99[2328]],_0xff99[813],this[_0xff99[441]][_0xff99[1741]],_0xff99[257],this[_0xff99[257]]));this[_0xff99[2325]]?(this[_0xff99[441]][_0xff99[200]](this[_0xff99[441]][_0xff99[1741]],!0),this[_0xff99[441]][_0xff99[2264]]()):this[_0xff99[441]][_0xff99[802]]();this[_0xff99[2325]]= !this[_0xff99[2325]]};function mxGraph(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){this[_0xff99[2329]]= null;this[_0xff99[2330]]= _0xf598x4;this[_0xff99[507]]= mxClient[_0xff99[48]]?mxConstants[_0xff99[508]]:_0xf598x4== mxConstants[_0xff99[2331]]&& mxClient[_0xff99[47]]?mxConstants[_0xff99[1523]]:_0xf598x4== mxConstants[_0xff99[2332]]?mxConstants[_0xff99[1656]]:_0xf598x4== mxConstants[_0xff99[2333]]?mxConstants[_0xff99[2209]]:mxConstants[_0xff99[2334]];this[_0xff99[251]]= null!= _0xf598x3?_0xf598x3: new mxGraphModel;this[_0xff99[2335]]= [];this[_0xff99[2336]]= [];this[_0xff99[259]]= this[_0xff99[2337]]();this[_0xff99[2339]](this[_0xff99[2338]]());this[_0xff99[2341]](null!= _0xf598x5?_0xf598x5:this[_0xff99[2340]]());this[_0xff99[441]]= this[_0xff99[2342]]();this[_0xff99[2343]]= mxUtils[_0xff99[885]](this,function(_0xf598x2,_0xf598x3){this[_0xff99[1177]](_0xf598x3[_0xff99[720]](_0xff99[1061])[_0xff99[1065]])});this[_0xff99[251]][_0xff99[169]](mxEvent.CHANGE,this[_0xff99[2343]]);this[_0xff99[2344]]();null!= _0xf598x2&& this[_0xff99[176]](_0xf598x2);this[_0xff99[441]][_0xff99[2259]]()}mxLoadResources&& mxResources[_0xff99[99]](mxClient[_0xff99[86]]+ _0xff99[2345]);mxGraph[_0xff99[202]]= new mxEventSource;mxGraph[_0xff99[202]][_0xff99[196]]= mxGraph;mxGraph[_0xff99[202]][_0xff99[2346]]= [];mxGraph[_0xff99[202]][_0xff99[2329]]= null;mxGraph[_0xff99[202]][_0xff99[1009]]= !1;mxGraph[_0xff99[202]][_0xff99[251]]= null;mxGraph[_0xff99[202]][_0xff99[441]]= null;mxGraph[_0xff99[202]][_0xff99[94]]= null;mxGraph[_0xff99[202]][_0xff99[2105]]= null;mxGraph[_0xff99[202]][_0xff99[2347]]= null;mxGraph[_0xff99[202]][_0xff99[259]]= null;mxGraph[_0xff99[202]][_0xff99[2335]]= null;mxGraph[_0xff99[202]][_0xff99[2330]]= null;mxGraph[_0xff99[202]][_0xff99[507]]= null;mxGraph[_0xff99[202]][_0xff99[1020]]= 10;mxGraph[_0xff99[202]][_0xff99[991]]= !0;mxGraph[_0xff99[202]][_0xff99[2348]]= !0;mxGraph[_0xff99[202]][_0xff99[2349]]= !0;mxGraph[_0xff99[202]][_0xff99[2350]]= 700;mxGraph[_0xff99[202]][_0xff99[2351]]= 25;mxGraph[_0xff99[202]][_0xff99[2352]]= 0;mxGraph[_0xff99[202]][_0xff99[2352]]= 0;mxGraph[_0xff99[202]][_0xff99[2213]]= 0;mxGraph[_0xff99[202]][_0xff99[2215]]= !0;mxGraph[_0xff99[202]][_0xff99[2353]]= 4;mxGraph[_0xff99[202]][_0xff99[2354]]= 0.5;mxGraph[_0xff99[202]][_0xff99[2355]]= null;mxGraph[_0xff99[202]][_0xff99[2356]]= null;mxGraph[_0xff99[202]][_0xff99[1617]]= null;mxGraph[_0xff99[202]][_0xff99[2273]]= !1;mxGraph[_0xff99[202]][_0xff99[2357]]= !1;mxGraph[_0xff99[202]][_0xff99[2358]]= _0xff99[579];mxGraph[_0xff99[202]][_0xff99[2359]]= !0;mxGraph[_0xff99[202]][_0xff99[2360]]= 20;mxGraph[_0xff99[202]][_0xff99[2361]]= !1;mxGraph[_0xff99[202]][_0xff99[2013]]= mxConstants[_0xff99[516]];mxGraph[_0xff99[202]][_0xff99[2012]]= 1.5;mxGraph[_0xff99[202]][_0xff99[984]]= !0;mxGraph[_0xff99[202]][_0xff99[2362]]= !0;mxGraph[_0xff99[202]][_0xff99[2363]]= !0;mxGraph[_0xff99[202]][_0xff99[2364]]= !1;mxGraph[_0xff99[202]][_0xff99[2365]]= !0;mxGraph[_0xff99[202]][_0xff99[2366]]= !0;mxGraph[_0xff99[202]][_0xff99[2367]]= !0;mxGraph[_0xff99[202]][_0xff99[2368]]= !1;mxGraph[_0xff99[202]][_0xff99[2369]]= !0;mxGraph[_0xff99[202]][_0xff99[2206]]= !0;mxGraph[_0xff99[202]][_0xff99[2370]]= !0;mxGraph[_0xff99[202]][_0xff99[2371]]= !0;mxGraph[_0xff99[202]][_0xff99[2372]]= !0;mxGraph[_0xff99[202]][_0xff99[2373]]= !0;mxGraph[_0xff99[202]][_0xff99[2374]]= !1;mxGraph[_0xff99[202]][_0xff99[2375]]= !1;mxGraph[_0xff99[202]][_0xff99[2376]]= !0;mxGraph[_0xff99[202]][_0xff99[2377]]= !0;mxGraph[_0xff99[202]][_0xff99[2378]]= !0;mxGraph[_0xff99[202]][_0xff99[2379]]= !0;mxGraph[_0xff99[202]][_0xff99[2380]]= !0;mxGraph[_0xff99[202]][_0xff99[2381]]= !1;mxGraph[_0xff99[202]][_0xff99[1012]]= !0;mxGraph[_0xff99[202]][_0xff99[2382]]= !1;mxGraph[_0xff99[202]][_0xff99[2383]]= !1;mxGraph[_0xff99[202]][_0xff99[2384]]= !1;mxGraph[_0xff99[202]][_0xff99[1013]]= !0;mxGraph[_0xff99[202]][_0xff99[2385]]= null;mxGraph[_0xff99[202]][_0xff99[2386]]= null;mxGraph[_0xff99[202]][_0xff99[2387]]= null;mxGraph[_0xff99[202]][_0xff99[2388]]= null;mxGraph[_0xff99[202]][_0xff99[2389]]= !1;mxGraph[_0xff99[202]][_0xff99[467]]= 0;mxGraph[_0xff99[202]][_0xff99[2158]]= !0;mxGraph[_0xff99[202]][_0xff99[2159]]= !1;mxGraph[_0xff99[202]][_0xff99[2168]]= !0;mxGraph[_0xff99[202]][_0xff99[2390]]= !0;mxGraph[_0xff99[202]][_0xff99[2391]]= !0;mxGraph[_0xff99[202]][_0xff99[2392]]= !0;mxGraph[_0xff99[202]][_0xff99[2393]]= !0;mxGraph[_0xff99[202]][_0xff99[2394]]= !0;mxGraph[_0xff99[202]][_0xff99[2395]]= 1.2;mxGraph[_0xff99[202]][_0xff99[2396]]= !1;mxGraph[_0xff99[202]][_0xff99[2397]]= !0;mxGraph[_0xff99[202]][_0xff99[2398]]= !0;mxGraph[_0xff99[202]][_0xff99[2399]]= !1;mxGraph[_0xff99[202]][_0xff99[2400]]= !1;mxGraph[_0xff99[202]][_0xff99[2401]]= !0;mxGraph[_0xff99[202]][_0xff99[2402]]= !1;mxGraph[_0xff99[202]][_0xff99[2293]]= mxEdgeStyle[_0xff99[2403]];mxGraph[_0xff99[202]][_0xff99[2404]]= !0;mxGraph[_0xff99[202]][_0xff99[2405]]= !1;mxGraph[_0xff99[202]][_0xff99[2406]]= !0;mxGraph[_0xff99[202]][_0xff99[2407]]= !1;mxGraph[_0xff99[202]][_0xff99[2408]]= !0;mxGraph[_0xff99[202]][_0xff99[2409]]= !0;mxGraph[_0xff99[202]][_0xff99[2410]]= !1;mxGraph[_0xff99[202]][_0xff99[2411]]= !0;mxGraph[_0xff99[202]][_0xff99[2412]]= !0;mxGraph[_0xff99[202]][_0xff99[2180]]= mxConstants[_0xff99[2065]];mxGraph[_0xff99[202]][_0xff99[2336]]= null;mxGraph[_0xff99[202]][_0xff99[2413]]= 0.1;mxGraph[_0xff99[202]][_0xff99[2414]]= 8;mxGraph[_0xff99[202]][_0xff99[1136]]= 0;mxGraph[_0xff99[202]][_0xff99[1137]]= 0;mxGraph[_0xff99[202]][_0xff99[2415]]= new mxImage(mxClient[_0xff99[88]]+ _0xff99[2416],9,9);mxGraph[_0xff99[202]][_0xff99[2417]]= new mxImage(mxClient[_0xff99[88]]+ _0xff99[2418],9,9);mxGraph[_0xff99[202]][_0xff99[2419]]= new mxImage(_0xff99[2420],16,16);mxGraph[_0xff99[202]][_0xff99[2421]]= _0xff99[130]!= mxClient[_0xff99[90]]?_0xff99[2422]:_0xff99[110];mxGraph[_0xff99[202]][_0xff99[2423]]= _0xff99[130]!= mxClient[_0xff99[90]]?_0xff99[2424]:_0xff99[110];mxGraph[_0xff99[202]][_0xff99[2425]]= _0xff99[130]!= mxClient[_0xff99[90]]?_0xff99[2426]:_0xff99[110];mxGraph[_0xff99[202]][_0xff99[176]]= function(_0xf598x2){this[_0xff99[526]]= _0xf598x2;this[_0xff99[2347]]= this[_0xff99[2427]]();this[_0xff99[441]][_0xff99[176]]();this[_0xff99[2258]]();mxClient[_0xff99[80]]&& (mxEvent[_0xff99[169]](window,_0xff99[2428],mxUtils[_0xff99[885]](this,function(){this[_0xff99[515]]()})),mxEvent[_0xff99[169]](_0xf598x2,_0xff99[2429],mxUtils[_0xff99[885]](this,function(){return this[_0xff99[2203]]()})));8== document[_0xff99[5]]&& _0xf598x2[_0xff99[1583]](_0xff99[1582],_0xff99[2430])};mxGraph[_0xff99[202]][_0xff99[2344]]= function(_0xf598x2){this[_0xff99[2276]]= new mxTooltipHandler(this);this[_0xff99[2276]][_0xff99[995]](!1);this[_0xff99[2316]]= new mxPanningHandler(this);this[_0xff99[2316]][_0xff99[2431]]= !1;this[_0xff99[2432]]= new mxSelectionCellsHandler(this);this[_0xff99[2433]]= new mxConnectionHandler(this);this[_0xff99[2433]][_0xff99[995]](!1);this[_0xff99[1011]]= new mxGraphHandler(this)};mxGraph[_0xff99[202]][_0xff99[2338]]= function(){return new mxGraphSelectionModel(this)};mxGraph[_0xff99[202]][_0xff99[2340]]= function(){return new mxStylesheet};mxGraph[_0xff99[202]][_0xff99[2342]]= function(){return new mxGraphView(this)};mxGraph[_0xff99[202]][_0xff99[2337]]= function(){return new mxCellRenderer};mxGraph[_0xff99[202]][_0xff99[2427]]= function(){return new mxCellEditor(this)};mxGraph[_0xff99[202]][_0xff99[502]]= function(){return this[_0xff99[251]]};mxGraph[_0xff99[202]][_0xff99[249]]= function(){return this[_0xff99[441]]};mxGraph[_0xff99[202]][_0xff99[2434]]= function(){return this[_0xff99[94]]};mxGraph[_0xff99[202]][_0xff99[2341]]= function(_0xf598x2){this[_0xff99[94]]= _0xf598x2};mxGraph[_0xff99[202]][_0xff99[2435]]= function(){return this[_0xff99[2105]]};mxGraph[_0xff99[202]][_0xff99[2339]]= function(_0xf598x2){this[_0xff99[2105]]= _0xf598x2};mxGraph[_0xff99[202]][_0xff99[2436]]= function(_0xf598x2){for(var _0xf598x3=[],_0xf598x4=0;_0xf598x4< _0xf598x2[_0xff99[67]];_0xf598x4++){var _0xf598x5=_0xf598x2[_0xf598x4];if(_0xf598x5[_0xff99[196]]!= mxRootChange){var _0xf598x9=null;_0xf598x5 instanceof mxChildChange&& null== _0xf598x5[_0xff99[257]]?_0xf598x9= _0xf598x5[_0xff99[247]]:null!= _0xf598x5[_0xff99[246]]&& _0xf598x5[_0xff99[246]] instanceof mxCell&& (_0xf598x9= _0xf598x5[_0xff99[246]]);null!= _0xf598x9&& 0> mxUtils[_0xff99[2]](_0xf598x3,_0xf598x9)&& _0xf598x3[_0xff99[207]](_0xf598x9)}};return this[_0xff99[502]]()[_0xff99[1964]](_0xf598x3)};mxGraph[_0xff99[202]][_0xff99[1177]]= function(_0xf598x2){for(var _0xf598x3=0;_0xf598x3< _0xf598x2[_0xff99[67]];_0xf598x3++){this[_0xff99[2437]](_0xf598x2[_0xf598x3])};this[_0xff99[2439]](this[_0xff99[2438]](_0xf598x2));this[_0xff99[441]][_0xff99[2264]]();this[_0xff99[2258]]()};mxGraph[_0xff99[202]][_0xff99[2438]]= function(_0xf598x2){for(var _0xf598x3=[],_0xf598x4=0;_0xf598x4< _0xf598x2[_0xff99[67]];_0xf598x4++){var _0xf598x5=_0xf598x2[_0xf598x4];if(_0xf598x5 instanceof mxRootChange){break}else {_0xf598x5 instanceof mxChildChange?null!= _0xf598x5[_0xff99[257]]&& null== _0xf598x5[_0xff99[1101]]&& (_0xf598x3= _0xf598x3[_0xff99[1919]](this[_0xff99[251]][_0xff99[1939]](_0xf598x5[_0xff99[247]]))):_0xf598x5 instanceof mxVisibleChange&& (_0xf598x3= _0xf598x3[_0xff99[1919]](this[_0xff99[251]][_0xff99[1939]](_0xf598x5[_0xff99[246]])))}};return _0xf598x3};mxGraph[_0xff99[202]][_0xff99[2437]]= function(_0xf598x2){if(_0xf598x2 instanceof mxRootChange){this[_0xff99[2440]](),this[_0xff99[2441]](_0xf598x2[_0xff99[257]]),this[_0xff99[2398]]&& (this[_0xff99[441]][_0xff99[255]]= 1,this[_0xff99[441]][_0xff99[513]][_0xff99[235]]= 0,this[_0xff99[441]][_0xff99[513]][_0xff99[236]]= 0),this[_0xff99[746]]( new mxEventObject(mxEvent.ROOT))}else {if(_0xf598x2 instanceof mxChildChange){var _0xf598x3=this[_0xff99[251]][_0xff99[1197]](_0xf598x2[_0xff99[247]]);null!= _0xf598x3?this[_0xff99[441]][_0xff99[2263]](_0xf598x2[_0xff99[247]],!0,!1,null!= _0xf598x2[_0xff99[257]]):(this[_0xff99[2441]](_0xf598x2[_0xff99[247]]),this[_0xff99[441]][_0xff99[1741]]== _0xf598x2[_0xff99[247]]&& this[_0xff99[2442]]());_0xf598x3!= _0xf598x2[_0xff99[257]]&& (null!= _0xf598x3&& this[_0xff99[441]][_0xff99[2263]](_0xf598x3,!1,!1),null!= _0xf598x2[_0xff99[257]]&& this[_0xff99[441]][_0xff99[2263]](_0xf598x2[_0xff99[257]],!1,!1))}else {_0xf598x2 instanceof mxTerminalChange|| _0xf598x2 instanceof mxGeometryChange?this[_0xff99[441]][_0xff99[2263]](_0xf598x2[_0xff99[246]]):_0xf598x2 instanceof mxValueChange?this[_0xff99[441]][_0xff99[2263]](_0xf598x2[_0xff99[246]],!1,!1):_0xf598x2 instanceof mxStyleChange?(this[_0xff99[441]][_0xff99[2263]](_0xf598x2[_0xff99[246]],!0,!0,!1),this[_0xff99[441]][_0xff99[2265]](_0xf598x2[_0xff99[246]])):null!= _0xf598x2[_0xff99[246]]&& _0xf598x2[_0xff99[246]] instanceof mxCell&& this[_0xff99[2441]](_0xf598x2[_0xff99[246]])}}};mxGraph[_0xff99[202]][_0xff99[2441]]= function(_0xf598x2){for(var _0xf598x3=this[_0xff99[251]][_0xff99[262]](_0xf598x2),_0xf598x4=0;_0xf598x4< _0xf598x3;_0xf598x4++){this[_0xff99[2441]](this[_0xff99[251]][_0xff99[263]](_0xf598x2,_0xf598x4))};this[_0xff99[441]][_0xff99[2265]](_0xf598x2)};mxGraph[_0xff99[202]][_0xff99[2443]]= function(_0xf598x2,_0xf598x3){null== _0xf598x2[_0xff99[1211]]&& (_0xf598x2[_0xff99[1211]]= []);_0xf598x2[_0xff99[1211]][_0xff99[207]](_0xf598x3);var _0xf598x4=this[_0xff99[441]][_0xff99[248]](_0xf598x2);null!= _0xf598x4&& this[_0xff99[259]][_0xff99[258]](_0xf598x4);this[_0xff99[746]]( new mxEventObject(mxEvent.ADD_OVERLAY,_0xff99[246],_0xf598x2,_0xff99[2201],_0xf598x3));return _0xf598x3};mxGraph[_0xff99[202]][_0xff99[2200]]= function(_0xf598x2){return _0xf598x2[_0xff99[1211]]};mxGraph[_0xff99[202]][_0xff99[2444]]= function(_0xf598x2,_0xf598x3){if(null== _0xf598x3){this[_0xff99[2445]](_0xf598x2)}else {var _0xf598x4=mxUtils[_0xff99[2]](_0xf598x2[_0xff99[1211]],_0xf598x3);0<= _0xf598x4?(_0xf598x2[_0xff99[1211]][_0xff99[300]](_0xf598x4,1),0== _0xf598x2[_0xff99[1211]][_0xff99[67]]&& (_0xf598x2[_0xff99[1211]]= null),_0xf598x4= this[_0xff99[441]][_0xff99[248]](_0xf598x2),null!= _0xf598x4&& this[_0xff99[259]][_0xff99[258]](_0xf598x4),this[_0xff99[746]]( new mxEventObject(mxEvent.REMOVE_OVERLAY,_0xff99[246],_0xf598x2,_0xff99[2201],_0xf598x3))):_0xf598x3= null};return _0xf598x3};mxGraph[_0xff99[202]][_0xff99[2445]]= function(_0xf598x2){var _0xf598x3=_0xf598x2[_0xff99[1211]];if(null!= _0xf598x3){_0xf598x2[_0xff99[1211]]= null;var _0xf598x4=this[_0xff99[441]][_0xff99[248]](_0xf598x2);null!= _0xf598x4&& this[_0xff99[259]][_0xff99[258]](_0xf598x4);for(_0xf598x4= 0;_0xf598x4< _0xf598x3[_0xff99[67]];_0xf598x4++){this[_0xff99[746]]( new mxEventObject(mxEvent.REMOVE_OVERLAY,_0xff99[246],_0xf598x2,_0xff99[2201],_0xf598x3[_0xf598x4]))}};return _0xf598x3};mxGraph[_0xff99[202]][_0xff99[2446]]= function(_0xf598x2){_0xf598x2= null!= _0xf598x2?_0xf598x2:this[_0xff99[251]][_0xff99[501]]();this[_0xff99[2445]](_0xf598x2);for(var _0xf598x3=this[_0xff99[251]][_0xff99[262]](_0xf598x2),_0xf598x4=0;_0xf598x4< _0xf598x3;_0xf598x4++){var _0xf598x5=this[_0xff99[251]][_0xff99[263]](_0xf598x2,_0xf598x4);this[_0xff99[2446]](_0xf598x5)}};mxGraph[_0xff99[202]][_0xff99[2447]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){if(null!= _0xf598x3&& 0< _0xf598x3[_0xff99[67]]){return _0xf598x4= null!= _0xf598x4?_0xf598x4:this[_0xff99[2419]],_0xf598x3= new mxCellOverlay(_0xf598x4,_0xff99[2448]+ _0xf598x3+ _0xff99[2449]),_0xf598x5&& _0xf598x3[_0xff99[169]](mxEvent.CLICK,mxUtils[_0xff99[885]](this,function(_0xf598x3,_0xf598x4){this[_0xff99[994]]()&& this[_0xff99[2450]](_0xf598x2)})),this[_0xff99[2443]](_0xf598x2,_0xf598x3)};this[_0xff99[2445]](_0xf598x2);return null};mxGraph[_0xff99[202]][_0xff99[855]]= function(_0xf598x2){this[_0xff99[2451]](null,_0xf598x2)};mxGraph[_0xff99[202]][_0xff99[2451]]= function(_0xf598x2,_0xf598x3){null== _0xf598x2&& (_0xf598x2= this[_0xff99[2452]](),null!= _0xf598x2&& !this[_0xff99[2453]](_0xf598x2)&& (_0xf598x2= null));null!= _0xf598x2&& (this[_0xff99[746]]( new mxEventObject(mxEvent.START_EDITING,_0xff99[246],_0xf598x2,_0xff99[763],_0xf598x3)),this[_0xff99[2347]][_0xff99[855]](_0xf598x2,_0xf598x3))};mxGraph[_0xff99[202]][_0xff99[2142]]= function(_0xf598x2,_0xf598x3){return this[_0xff99[2454]](_0xf598x2)};mxGraph[_0xff99[202]][_0xff99[2126]]= function(_0xf598x2){this[_0xff99[2347]][_0xff99[2126]](_0xf598x2)};mxGraph[_0xff99[202]][_0xff99[850]]= function(_0xf598x2,_0xf598x3,_0xf598x4){this[_0xff99[251]][_0xff99[473]]();try{this[_0xff99[2456]](_0xf598x2,_0xf598x3,this[_0xff99[2455]](_0xf598x2)),this[_0xff99[746]]( new mxEventObject(mxEvent.LABEL_CHANGED,_0xff99[246],_0xf598x2,_0xff99[131],_0xf598x3,_0xff99[763],_0xf598x4))}finally{this[_0xff99[251]][_0xff99[476]]()};return _0xf598x2};mxGraph[_0xff99[202]][_0xff99[2456]]= function(_0xf598x2,_0xf598x3,_0xf598x4){this[_0xff99[251]][_0xff99[473]]();try{this[_0xff99[251]][_0xff99[1966]](_0xf598x2,_0xf598x3),_0xf598x4&& this[_0xff99[2457]](_0xf598x2,!1)}finally{this[_0xff99[251]][_0xff99[476]]()}};mxGraph[_0xff99[202]][_0xff99[859]]= function(_0xf598x2){this[_0xff99[2126]](!0);this[_0xff99[2433]][_0xff99[862]]();this[_0xff99[1011]][_0xff99[862]]();_0xf598x2= this[_0xff99[897]]();for(var _0xf598x3=0;_0xf598x3< _0xf598x2[_0xff99[67]];_0xf598x3++){var _0xf598x4=this[_0xff99[441]][_0xff99[248]](_0xf598x2[_0xf598x3]);null!= _0xf598x4&& null!= _0xf598x4[_0xff99[2458]]&& _0xf598x4[_0xff99[2458]][_0xff99[862]]()}};mxGraph[_0xff99[202]][_0xff99[173]]= function(_0xf598x2){var _0xf598x3=_0xf598x2[_0xff99[727]](),_0xf598x4=_0xf598x2[_0xff99[736]](),_0xf598x5= new mxEventObject(mxEvent.CLICK,_0xff99[763],_0xf598x3,_0xff99[246],_0xf598x4);_0xf598x2[_0xff99[721]]()&& _0xf598x5[_0xff99[722]]();this[_0xff99[746]](_0xf598x5);this[_0xff99[994]]()&& (!mxEvent[_0xff99[721]](_0xf598x3)&& !_0xf598x5[_0xff99[721]]())&& (null!= _0xf598x4?this[_0xff99[2459]](_0xf598x4,_0xf598x3):(_0xf598x4= null,this[_0xff99[2460]]()&& (_0xf598x4= this[_0xff99[2461]](_0xf598x2[_0xff99[734]](),_0xf598x2[_0xff99[735]]())),null!= _0xf598x4?this[_0xff99[2459]](_0xf598x4,_0xf598x3):this[_0xff99[2462]](_0xf598x3)|| this[_0xff99[2440]]()))};mxGraph[_0xff99[202]][_0xff99[761]]= function(_0xf598x2,_0xf598x3){var _0xf598x4= new mxEventObject(mxEvent.DOUBLE_CLICK,_0xff99[763],_0xf598x2,_0xff99[246],_0xf598x3);this[_0xff99[746]](_0xf598x4);this[_0xff99[994]]()&& (!mxEvent[_0xff99[721]](_0xf598x2)&& !_0xf598x4[_0xff99[721]]() && null!= _0xf598x3 && this[_0xff99[2453]](_0xf598x3))&& this[_0xff99[2451]](_0xf598x3,_0xf598x2)};mxGraph[_0xff99[202]][_0xff99[1014]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){if(!this[_0xff99[2382]]&& (this[_0xff99[2384]]|| mxUtils[_0xff99[1134]](this[_0xff99[526]]))){var _0xf598x9=this[_0xff99[526]];_0xf598x5= null!= _0xf598x5?_0xf598x5:20;if(_0xf598x2>= _0xf598x9[_0xff99[360]]&& _0xf598x3>= _0xf598x9[_0xff99[190]]&& _0xf598x2<= _0xf598x9[_0xff99[360]]+ _0xf598x9[_0xff99[159]]&& _0xf598x3<= _0xf598x9[_0xff99[190]]+ _0xf598x9[_0xff99[157]]){var _0xf598xa=_0xf598x9[_0xff99[360]]+ _0xf598x9[_0xff99[159]]- _0xf598x2;if(_0xf598xa< _0xf598x5){if(_0xf598x2= _0xf598x9[_0xff99[360]],_0xf598x9[_0xff99[360]]+= _0xf598x5- _0xf598xa,_0xf598x4&& _0xf598x2== _0xf598x9[_0xff99[360]]){if(this[_0xff99[507]]== mxConstants[_0xff99[508]]){_0xf598x2= this[_0xff99[441]][_0xff99[2024]]()[_0xff99[538]];var _0xf598x12=this[_0xff99[526]][_0xff99[1526]]+ _0xf598x5- _0xf598xa}else {_0xf598x12= Math[_0xff99[160]](_0xf598x9[_0xff99[159]],_0xf598x9[_0xff99[1526]])+ _0xf598x5- _0xf598xa,_0xf598x2= this[_0xff99[441]][_0xff99[2051]]()};_0xf598x2[_0xff99[124]][_0xff99[117]]= _0xf598x12+ _0xff99[168];_0xf598x9[_0xff99[360]]+= _0xf598x5- _0xf598xa}}else {_0xf598xa= _0xf598x2- _0xf598x9[_0xff99[360]],_0xf598xa< _0xf598x5&& (_0xf598x9[_0xff99[360]]-= _0xf598x5- _0xf598xa)};_0xf598xa= _0xf598x9[_0xff99[190]]+ _0xf598x9[_0xff99[157]]- _0xf598x3;_0xf598xa< _0xf598x5?(_0xf598x2= _0xf598x9[_0xff99[190]],_0xf598x9[_0xff99[190]]+= _0xf598x5- _0xf598xa,_0xf598x2== _0xf598x9[_0xff99[190]]&& _0xf598x4&& (this[_0xff99[507]]== mxConstants[_0xff99[508]]?(_0xf598x2= this[_0xff99[441]][_0xff99[2024]]()[_0xff99[538]],_0xf598x3= this[_0xff99[526]][_0xff99[191]]+ _0xf598x5- _0xf598xa):(_0xf598x3= Math[_0xff99[160]](_0xf598x9[_0xff99[157]],_0xf598x9[_0xff99[191]])+ _0xf598x5- _0xf598xa,_0xf598x2= this[_0xff99[441]][_0xff99[2051]]()),_0xf598x2[_0xff99[124]][_0xff99[119]]= _0xf598x3+ _0xff99[168],_0xf598x9[_0xff99[190]]+= _0xf598x5- _0xf598xa)):(_0xf598xa= _0xf598x3- _0xf598x9[_0xff99[190]],_0xf598xa< _0xf598x5&& (_0xf598x9[_0xff99[190]]-= _0xf598x5- _0xf598xa))}}else {this[_0xff99[2383]]&& !this[_0xff99[2316]][_0xff99[1124]]&& (null== this[_0xff99[2463]]&& (this[_0xff99[2463]]= this[_0xff99[2464]]()),this[_0xff99[2463]][_0xff99[1143]](_0xf598x2+ this[_0xff99[1136]],_0xf598x3+ this[_0xff99[1137]]))}};mxGraph[_0xff99[202]][_0xff99[2464]]= function(){return new mxPanningManager(this)};mxGraph[_0xff99[202]][_0xff99[2465]]= function(){function _0xf598x2(_0xf598x2){var _0xf598x3=0,_0xf598x3=_0xff99[2466]== _0xf598x2?2:_0xff99[2467]== _0xf598x2?4:_0xff99[2468]== _0xf598x2?6:parseInt(_0xf598x2);isNaN(_0xf598x3)&& (_0xf598x3= 0);return _0xf598x3}var _0xf598x3=mxUtils[_0xff99[275]](this[_0xff99[526]]),_0xf598x4= new mxRectangle;_0xf598x4[_0xff99[235]]= _0xf598x2(_0xf598x3[_0xff99[2469]])+ parseInt(_0xf598x3[_0xff99[357]]|| 0);_0xf598x4[_0xff99[236]]= _0xf598x2(_0xf598x3[_0xff99[2470]])+ parseInt(_0xf598x3[_0xff99[2471]]|| 0);_0xf598x4[_0xff99[117]]= _0xf598x2(_0xf598x3[_0xff99[2472]])+ parseInt(_0xf598x3[_0xff99[1164]]|| 0);_0xf598x4[_0xff99[119]]= _0xf598x2(_0xf598x3[_0xff99[2473]])+ parseInt(_0xf598x3[_0xff99[2474]]|| 0);return _0xf598x4};mxGraph[_0xff99[202]][_0xff99[2475]]= function(_0xf598x2,_0xf598x3,_0xf598x4){_0xf598x2= this[_0xff99[441]][_0xff99[255]];var _0xf598x5=this[_0xff99[441]][_0xff99[513]],_0xf598x9=this[_0xff99[2013]],_0xf598xa=_0xf598x2* this[_0xff99[2012]],_0xf598x9= new mxRectangle(0,0,_0xf598x9[_0xff99[117]]* _0xf598xa,_0xf598x9[_0xff99[119]]* _0xf598xa);_0xf598x3= this[_0xff99[2357]]?Math[_0xff99[430]](_0xf598x3/ _0xf598x9[_0xff99[117]]):1;_0xf598x4= this[_0xff99[2357]]?Math[_0xff99[430]](_0xf598x4/ _0xf598x9[_0xff99[119]]):1;return new mxRectangle(0,0,_0xf598x3* _0xf598x9[_0xff99[117]]+ 2+ _0xf598x5[_0xff99[235]]/ _0xf598x2,_0xf598x4* _0xf598x9[_0xff99[119]]+ 2+ _0xf598x5[_0xff99[236]]/ _0xf598x2)};mxGraph[_0xff99[202]][_0xff99[2258]]= function(){var _0xf598x2=this[_0xff99[517]]();if(null!= this[_0xff99[526]]){var _0xf598x3=this[_0xff99[2476]](),_0xf598x4=Math[_0xff99[160]](0,_0xf598x2[_0xff99[235]]+ _0xf598x2[_0xff99[117]]+ 1+ _0xf598x3),_0xf598x3=Math[_0xff99[160]](0,_0xf598x2[_0xff99[236]]+ _0xf598x2[_0xff99[119]]+ 1+ _0xf598x3);null!= this[_0xff99[2387]]&& (_0xf598x4= Math[_0xff99[160]](_0xf598x4,this[_0xff99[2387]][_0xff99[117]]),_0xf598x3= Math[_0xff99[160]](_0xf598x3,this[_0xff99[2387]][_0xff99[119]]));this[_0xff99[2389]]&& this[_0xff99[2477]](_0xf598x4,_0xf598x3);if(this[_0xff99[2361]]|| !mxClient[_0xff99[80]]&& this[_0xff99[2273]]){var _0xf598x5=this[_0xff99[2475]](_0xf598x2,_0xf598x4,_0xf598x3);null!= _0xf598x5&& (_0xf598x4= _0xf598x5[_0xff99[117]],_0xf598x3= _0xf598x5[_0xff99[119]])};null!= this[_0xff99[2386]]&& (_0xf598x4= Math[_0xff99[160]](_0xf598x4,this[_0xff99[2386]][_0xff99[117]]* this[_0xff99[441]][_0xff99[255]]),_0xf598x3= Math[_0xff99[160]](_0xf598x3,this[_0xff99[2386]][_0xff99[119]]* this[_0xff99[441]][_0xff99[255]]));_0xf598x4= Math[_0xff99[430]](_0xf598x4- 1);_0xf598x3= Math[_0xff99[430]](_0xf598x3- 1);this[_0xff99[507]]== mxConstants[_0xff99[508]]?(_0xf598x5= this[_0xff99[441]][_0xff99[2024]]()[_0xff99[538]],_0xf598x5[_0xff99[124]][_0xff99[2478]]= Math[_0xff99[160]](1,_0xf598x4)+ _0xff99[168],_0xf598x5[_0xff99[124]][_0xff99[2479]]= Math[_0xff99[160]](1,_0xf598x3)+ _0xff99[168],_0xf598x5[_0xff99[124]][_0xff99[117]]= _0xff99[118],_0xf598x5[_0xff99[124]][_0xff99[119]]= _0xff99[118]):mxClient[_0xff99[496]]?this[_0xff99[441]][_0xff99[2320]](Math[_0xff99[160]](1,_0xf598x4),Math[_0xff99[160]](1,_0xf598x3)):(this[_0xff99[441]][_0xff99[510]][_0xff99[124]][_0xff99[2478]]= Math[_0xff99[160]](1,_0xf598x4)+ _0xff99[168],this[_0xff99[441]][_0xff99[510]][_0xff99[124]][_0xff99[2479]]= Math[_0xff99[160]](1,_0xf598x3)+ _0xff99[168]);this[_0xff99[2480]](this[_0xff99[2357]],_0xf598x4- 1,_0xf598x3- 1)};this[_0xff99[746]]( new mxEventObject(mxEvent.SIZE,_0xff99[1562],_0xf598x2))};mxGraph[_0xff99[202]][_0xff99[2477]]= function(_0xf598x2,_0xf598x3){if(mxClient[_0xff99[80]]){if(mxClient[_0xff99[496]]){var _0xf598x4=this[_0xff99[2465]]();_0xf598x2+= Math[_0xff99[160]](2,_0xf598x4[_0xff99[235]]+ _0xf598x4[_0xff99[117]]+ 1);_0xf598x3+= Math[_0xff99[160]](2,_0xf598x4[_0xff99[236]]+ _0xf598x4[_0xff99[119]]+ 1)}else {9<= document[_0xff99[5]]?(_0xf598x2+= 3,_0xf598x3+= 5):(_0xf598x2+= 1,_0xf598x3+= 1)}}else {_0xf598x3+= 1};null!= this[_0xff99[2388]]&& (_0xf598x2= Math[_0xff99[243]](this[_0xff99[2388]][_0xff99[117]],_0xf598x2),_0xf598x3= Math[_0xff99[243]](this[_0xff99[2388]][_0xff99[119]],_0xf598x3));this[_0xff99[526]][_0xff99[124]][_0xff99[117]]= Math[_0xff99[430]](_0xf598x2)+ _0xff99[168];this[_0xff99[526]][_0xff99[124]][_0xff99[119]]= Math[_0xff99[430]](_0xf598x3)+ _0xff99[168]};mxGraph[_0xff99[202]][_0xff99[2480]]= function(_0xf598x2,_0xf598x3,_0xf598x4){var _0xf598x5=this[_0xff99[441]][_0xff99[255]],_0xf598x9=this[_0xff99[441]][_0xff99[513]],_0xf598xa=this[_0xff99[2013]],_0xf598x12=_0xf598x5* this[_0xff99[2012]],_0xf598x9= new mxRectangle(_0xf598x5* _0xf598x9[_0xff99[235]],_0xf598x5* _0xf598x9[_0xff99[236]],_0xf598xa[_0xff99[117]]* _0xf598x12,_0xf598xa[_0xff99[119]]* _0xf598x12);_0xf598x2= _0xf598x2&& Math[_0xff99[243]](_0xf598x9[_0xff99[117]],_0xf598x9[_0xff99[119]])> this[_0xff99[2360]];_0xf598x9[_0xff99[235]]= mxUtils[_0xff99[1454]](_0xf598x9[_0xff99[235]],_0xf598x9[_0xff99[117]]);_0xf598x9[_0xff99[236]]= mxUtils[_0xff99[1454]](_0xf598x9[_0xff99[236]],_0xf598x9[_0xff99[119]]);_0xf598xa= _0xf598x2?Math[_0xff99[430]]((_0xf598x3- _0xf598x9[_0xff99[235]])/ _0xf598x9[_0xff99[117]]):0;_0xf598x2= _0xf598x2?Math[_0xff99[430]]((_0xf598x4- _0xf598x9[_0xff99[236]])/ _0xf598x9[_0xff99[119]]):0;null== this[_0xff99[2481]]&& 0< _0xf598xa&& (this[_0xff99[2481]]= []);if(null!= this[_0xff99[2481]]){for(_0xf598x12= 0;_0xf598x12<= _0xf598xa;_0xf598x12++){var _0xf598x13=[ new mxPoint(_0xf598x9[_0xff99[235]]+ _0xf598x12* _0xf598x9[_0xff99[117]],1), new mxPoint(_0xf598x9[_0xff99[235]]+ _0xf598x12* _0xf598x9[_0xff99[117]],_0xf598x4)];null!= this[_0xff99[2481]][_0xf598x12]?(this[_0xff99[2481]][_0xf598x12][_0xff99[255]]= 1,this[_0xff99[2481]][_0xf598x12][_0xff99[1525]]= _0xf598x13,this[_0xff99[2481]][_0xf598x12][_0xff99[258]]()):(_0xf598x13= new mxPolyline(_0xf598x13,this[_0xff99[2358]],this[_0xff99[255]]),_0xf598x13[_0xff99[507]]= this[_0xff99[507]],_0xf598x13[_0xff99[1522]]= this[_0xff99[2359]],_0xf598x13[_0xff99[255]]= _0xf598x5,_0xf598x13[_0xff99[176]](this[_0xff99[441]][_0xff99[2053]]),_0xf598x13[_0xff99[258]](),this[_0xff99[2481]][_0xf598x12]= _0xf598x13)};for(_0xf598x12= _0xf598xa;_0xf598x12< this[_0xff99[2481]][_0xff99[67]];_0xf598x12++){this[_0xff99[2481]][_0xf598x12][_0xff99[515]]()};this[_0xff99[2481]][_0xff99[300]](_0xf598xa,this[_0xff99[2481]][_0xff99[67]]- _0xf598xa)};null== this[_0xff99[2482]]&& 0< _0xf598x2&& (this[_0xff99[2482]]= []);if(null!= this[_0xff99[2482]]){for(_0xf598x12= 0;_0xf598x12<= _0xf598x2;_0xf598x12++){_0xf598x13= [ new mxPoint(1,_0xf598x9[_0xff99[236]]+ _0xf598x12* _0xf598x9[_0xff99[119]]), new mxPoint(_0xf598x3,_0xf598x9[_0xff99[236]]+ _0xf598x12* _0xf598x9[_0xff99[119]])],null!= this[_0xff99[2482]][_0xf598x12]?(this[_0xff99[2482]][_0xf598x12][_0xff99[255]]= 1,this[_0xff99[2482]][_0xf598x12][_0xff99[1525]]= _0xf598x13,this[_0xff99[2482]][_0xf598x12][_0xff99[258]]()):(_0xf598x13= new mxPolyline(_0xf598x13,this[_0xff99[2358]],_0xf598x5),_0xf598x13[_0xff99[507]]= this[_0xff99[507]],_0xf598x13[_0xff99[1522]]= this[_0xff99[2359]],_0xf598x13[_0xff99[255]]= _0xf598x5,_0xf598x13[_0xff99[176]](this[_0xff99[441]][_0xff99[2053]]),_0xf598x13[_0xff99[258]](),this[_0xff99[2482]][_0xf598x12]= _0xf598x13)};for(_0xf598x12= _0xf598x2;_0xf598x12< this[_0xff99[2482]][_0xff99[67]];_0xf598x12++){this[_0xff99[2482]][_0xf598x12][_0xff99[515]]()};this[_0xff99[2482]][_0xff99[300]](_0xf598x2,this[_0xff99[2482]][_0xff99[67]]- _0xf598x2)}};mxGraph[_0xff99[202]][_0xff99[1705]]= function(_0xf598x2){var _0xf598x3=this[_0xff99[251]][_0xff99[474]](_0xf598x2),_0xf598x4=null,_0xf598x4=this[_0xff99[251]][_0xff99[250]](_0xf598x2)?this[_0xff99[94]][_0xff99[2077]]():this[_0xff99[94]][_0xff99[2076]]();null!= _0xf598x3&& (_0xf598x4= this[_0xff99[2483]](this[_0xff99[94]][_0xff99[1705]](_0xf598x3,_0xf598x4)));null== _0xf598x4&& (_0xf598x4= mxGraph[_0xff99[202]][_0xff99[2346]]);return _0xf598x4};mxGraph[_0xff99[202]][_0xff99[2483]]= function(_0xf598x2){if(null!= _0xf598x2){var _0xf598x3=_0xf598x2[mxConstants[_0xff99[2484]]],_0xf598x4=this[_0xff99[2485]](_0xf598x3);null!= _0xf598x4?_0xf598x2[mxConstants[_0xff99[2484]]]= _0xf598x4:_0xf598x4= _0xf598x3;null!= _0xf598x4&& _0xff99[2486]== _0xf598x4[_0xff99[85]](0,11)&& (_0xf598x3= _0xf598x4[_0xff99[2]](_0xff99[537]),0< _0xf598x3&& (_0xf598x4= _0xf598x4[_0xff99[85]](0,_0xf598x3)+ _0xff99[2487]+ _0xf598x4[_0xff99[85]](_0xf598x3+ 1)),_0xf598x2[mxConstants[_0xff99[2484]]]= _0xf598x4)};return _0xf598x2};mxGraph[_0xff99[202]][_0xff99[2488]]= function(_0xf598x2,_0xf598x3){_0xf598x3= _0xf598x3|| this[_0xff99[897]]();if(null!= _0xf598x3){this[_0xff99[251]][_0xff99[473]]();try{for(var _0xf598x4=0;_0xf598x4< _0xf598x3[_0xff99[67]];_0xf598x4++){this[_0xff99[251]][_0xff99[475]](_0xf598x3[_0xf598x4],_0xf598x2)}}finally{this[_0xff99[251]][_0xff99[476]]()}}};mxGraph[_0xff99[202]][_0xff99[2489]]= function(_0xf598x2,_0xf598x3,_0xf598x4){_0xf598x4= _0xf598x4|| this[_0xff99[2452]]();this[_0xff99[2490]](_0xf598x2,_0xf598x3,[_0xf598x4])};mxGraph[_0xff99[202]][_0xff99[2490]]= function(_0xf598x2,_0xf598x3,_0xf598x4){_0xf598x3= null!= _0xf598x3?_0xf598x3:!1;_0xf598x4= _0xf598x4|| this[_0xff99[897]]();if(null!= _0xf598x4&& 0< _0xf598x4[_0xff99[67]]){var _0xf598x5=this[_0xff99[441]][_0xff99[248]](_0xf598x4[0]),_0xf598x5=null!= _0xf598x5?_0xf598x5[_0xff99[124]]:this[_0xff99[1705]](_0xf598x4[0]);null!= _0xf598x5&& (_0xf598x3= mxUtils[_0xff99[433]](_0xf598x5,_0xf598x2,_0xf598x3)?0:1,this[_0xff99[1717]](_0xf598x2,_0xf598x3,_0xf598x4))}};mxGraph[_0xff99[202]][_0xff99[1717]]= function(_0xf598x2,_0xf598x3,_0xf598x4){_0xf598x4= _0xf598x4|| this[_0xff99[897]]();mxUtils[_0xff99[1717]](this[_0xff99[251]],_0xf598x4,_0xf598x2,_0xf598x3)};mxGraph[_0xff99[202]][_0xff99[2491]]= function(_0xf598x2,_0xf598x3,_0xf598x4){this[_0xff99[2492]](_0xf598x2,_0xf598x3,null,_0xf598x4)};mxGraph[_0xff99[202]][_0xff99[2492]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){_0xf598x5= _0xf598x5|| this[_0xff99[897]]();if(null!= _0xf598x5&& 0< _0xf598x5[_0xff99[67]]){if(null== _0xf598x4){var _0xf598x9=this[_0xff99[441]][_0xff99[248]](_0xf598x5[0]),_0xf598x9=null!= _0xf598x9?_0xf598x9[_0xff99[124]]:this[_0xff99[1705]](_0xf598x5[0]);null!= _0xf598x9&& (_0xf598x4= (parseInt(_0xf598x9[_0xf598x2]|| 0)& _0xf598x3)!= _0xf598x3)};mxUtils[_0xff99[2492]](this[_0xff99[251]],_0xf598x5,_0xf598x2,_0xf598x3,_0xf598x4)}};mxGraph[_0xff99[202]][_0xff99[849]]= function(_0xf598x2,_0xf598x3,_0xf598x4){null== _0xf598x3&& (_0xf598x3= this[_0xff99[897]]());if(null!= _0xf598x3&& 1< _0xf598x3[_0xff99[67]]){if(null== _0xf598x4){for(var _0xf598x5=0;_0xf598x5< _0xf598x3[_0xff99[67]];_0xf598x5++){var _0xf598x9=this[_0xff99[1198]](_0xf598x3[_0xf598x5]);if(null!= _0xf598x9&& !this[_0xff99[251]][_0xff99[250]](_0xf598x3[_0xf598x5])){if(null== _0xf598x4){if(_0xf598x2== mxConstants[_0xff99[479]]){_0xf598x4= _0xf598x9[_0xff99[235]]+ _0xf598x9[_0xff99[117]]/ 2;break}else {if(_0xf598x2== mxConstants[_0xff99[480]]){_0xf598x4= _0xf598x9[_0xff99[235]]+ _0xf598x9[_0xff99[117]]}else {if(_0xf598x2== mxConstants[_0xff99[1687]]){_0xf598x4= _0xf598x9[_0xff99[236]]}else {if(_0xf598x2== mxConstants[_0xff99[481]]){_0xf598x4= _0xf598x9[_0xff99[236]]+ _0xf598x9[_0xff99[119]]/ 2;break}else {_0xf598x4= _0xf598x2== mxConstants[_0xff99[482]]?_0xf598x9[_0xff99[236]]+ _0xf598x9[_0xff99[119]]:_0xf598x9[_0xff99[235]]}}}}}else {_0xf598x4= _0xf598x2== mxConstants[_0xff99[480]]?Math[_0xff99[160]](_0xf598x4,_0xf598x9[_0xff99[235]]+ _0xf598x9[_0xff99[117]]):_0xf598x2== mxConstants[_0xff99[1687]]?Math[_0xff99[243]](_0xf598x4,_0xf598x9[_0xff99[236]]):_0xf598x2== mxConstants[_0xff99[482]]?Math[_0xff99[160]](_0xf598x4,_0xf598x9[_0xff99[236]]+ _0xf598x9[_0xff99[119]]):Math[_0xff99[243]](_0xf598x4,_0xf598x9[_0xff99[235]])}}}};if(null!= _0xf598x4){this[_0xff99[251]][_0xff99[473]]();try{for(_0xf598x5= 0;_0xf598x5< _0xf598x3[_0xff99[67]];_0xf598x5++){_0xf598x9= this[_0xff99[1198]](_0xf598x3[_0xf598x5]),null!= _0xf598x9&& !this[_0xff99[251]][_0xff99[250]](_0xf598x3[_0xf598x5])&& (_0xf598x9= _0xf598x9[_0xff99[238]](),_0xf598x2== mxConstants[_0xff99[479]]?_0xf598x9[_0xff99[235]]= _0xf598x4- _0xf598x9[_0xff99[117]]/ 2:_0xf598x2== mxConstants[_0xff99[480]]?_0xf598x9[_0xff99[235]]= _0xf598x4- _0xf598x9[_0xff99[117]]:_0xf598x2== mxConstants[_0xff99[1687]]?_0xf598x9[_0xff99[236]]= _0xf598x4:_0xf598x2== mxConstants[_0xff99[481]]?_0xf598x9[_0xff99[236]]= _0xf598x4- _0xf598x9[_0xff99[119]]/ 2:_0xf598x2== mxConstants[_0xff99[482]]?_0xf598x9[_0xff99[236]]= _0xf598x4- _0xf598x9[_0xff99[119]]:_0xf598x9[_0xff99[235]]= _0xf598x4,this[_0xff99[251]][_0xff99[1724]](_0xf598x3[_0xf598x5],_0xf598x9))};this[_0xff99[746]]( new mxEventObject(mxEvent.ALIGN_CELLS,_0xff99[611],_0xf598x2,_0xff99[895],_0xf598x3))}finally{this[_0xff99[251]][_0xff99[476]]()}}};return _0xf598x3};mxGraph[_0xff99[202]][_0xff99[854]]= function(_0xf598x2){if(null!= _0xf598x2&& null!= this[_0xff99[2356]]){this[_0xff99[251]][_0xff99[473]]();try{var _0xf598x3=this[_0xff99[251]][_0xff99[474]](_0xf598x2);null== _0xf598x3|| 0== _0xf598x3[_0xff99[67]]?this[_0xff99[251]][_0xff99[475]](_0xf598x2,this[_0xff99[2356]]):this[_0xff99[251]][_0xff99[475]](_0xf598x2,null);this[_0xff99[1809]](_0xf598x2);this[_0xff99[746]]( new mxEventObject(mxEvent.FLIP_EDGE,_0xff99[1989],_0xf598x2))}finally{this[_0xff99[251]][_0xff99[476]]()}};return _0xf598x2};mxGraph[_0xff99[202]][_0xff99[2493]]= function(_0xf598x2){this[_0xff99[2336]][_0xff99[207]](_0xf598x2)};mxGraph[_0xff99[202]][_0xff99[2494]]= function(_0xf598x2){for(var _0xf598x3=[],_0xf598x4=0;_0xf598x4< this[_0xff99[2336]][_0xff99[67]];_0xf598x4++){this[_0xff99[2336]][_0xf598x4]!= _0xf598x2&& _0xf598x3[_0xff99[207]](this[_0xff99[2336]][_0xf598x4])};this[_0xff99[2336]]= _0xf598x3};mxGraph[_0xff99[202]][_0xff99[2485]]= function(_0xf598x2){if(null!= _0xf598x2){for(var _0xf598x3=0;_0xf598x3< this[_0xff99[2336]][_0xff99[67]];_0xf598x3++){var _0xf598x4=this[_0xff99[2336]][_0xf598x3][_0xff99[1202]](_0xf598x2);if(null!= _0xf598x4){return _0xf598x4}}};return null};mxGraph[_0xff99[202]][_0xff99[840]]= function(_0xf598x2,_0xf598x3){null== _0xf598x3&& (_0xf598x3= mxUtils[_0xff99[1779]](this[_0xff99[897]](),!0));this[_0xff99[251]][_0xff99[473]]();try{this[_0xff99[841]](_0xf598x3,_0xf598x2),this[_0xff99[746]]( new mxEventObject(mxEvent.ORDER_CELLS,_0xff99[2495],_0xf598x2,_0xff99[895],_0xf598x3))}finally{this[_0xff99[251]][_0xff99[476]]()};return _0xf598x3};mxGraph[_0xff99[202]][_0xff99[841]]= function(_0xf598x2,_0xf598x3){if(null!= _0xf598x2){this[_0xff99[251]][_0xff99[473]]();try{for(var _0xf598x4=0;_0xf598x4< _0xf598x2[_0xff99[67]];_0xf598x4++){var _0xf598x5=this[_0xff99[251]][_0xff99[1197]](_0xf598x2[_0xf598x4]);_0xf598x3?this[_0xff99[251]][_0xff99[99]](_0xf598x5,_0xf598x2[_0xf598x4],_0xf598x4):this[_0xff99[251]][_0xff99[99]](_0xf598x5,_0xf598x2[_0xf598x4],this[_0xff99[251]][_0xff99[262]](_0xf598x5)- 1)};this[_0xff99[746]]( new mxEventObject(mxEvent.CELLS_ORDERED,_0xff99[2495],_0xf598x3,_0xff99[895],_0xf598x2))}finally{this[_0xff99[251]][_0xff99[476]]()}}};mxGraph[_0xff99[202]][_0xff99[844]]= function(_0xf598x2,_0xf598x3,_0xf598x4){null== _0xf598x4&& (_0xf598x4= mxUtils[_0xff99[1779]](this[_0xff99[897]](),!0));_0xf598x4= this[_0xff99[2496]](_0xf598x4);null== _0xf598x2&& (_0xf598x2= this[_0xff99[2497]](_0xf598x4));var _0xf598x5=this[_0xff99[2498]](_0xf598x2,_0xf598x4,_0xf598x3);if(0< _0xf598x4[_0xff99[67]]&& null!= _0xf598x5){var _0xf598x9=this[_0xff99[251]][_0xff99[1197]](_0xf598x2);null== _0xf598x9&& (_0xf598x9= this[_0xff99[251]][_0xff99[1197]](_0xf598x4[0]));this[_0xff99[251]][_0xff99[473]]();try{null== this[_0xff99[1198]](_0xf598x2)&& this[_0xff99[251]][_0xff99[1724]](_0xf598x2, new mxGeometry);var _0xf598xa=this[_0xff99[251]][_0xff99[262]](_0xf598x9);this[_0xff99[833]]([_0xf598x2],_0xf598x9,_0xf598xa,null,null,!1);_0xf598xa= this[_0xff99[251]][_0xff99[262]](_0xf598x2);this[_0xff99[833]](_0xf598x4,_0xf598x2,_0xf598xa,null,null,!1,!1);this[_0xff99[835]](_0xf598x4,-_0xf598x5[_0xff99[235]],-_0xf598x5[_0xff99[236]],!1,!0);this[_0xff99[837]]([_0xf598x2],[_0xf598x5]);this[_0xff99[746]]( new mxEventObject(mxEvent.GROUP_CELLS,_0xff99[1504],_0xf598x2,_0xff99[467],_0xf598x3,_0xff99[895],_0xf598x4))}finally{this[_0xff99[251]][_0xff99[476]]()}};return _0xf598x2};mxGraph[_0xff99[202]][_0xff99[2496]]= function(_0xf598x2){var _0xf598x3=[];if(null!= _0xf598x2&& 0< _0xf598x2[_0xff99[67]]){var _0xf598x4=this[_0xff99[251]][_0xff99[1197]](_0xf598x2[0]);_0xf598x3[_0xff99[207]](_0xf598x2[0]);for(var _0xf598x5=1;_0xf598x5< _0xf598x2[_0xff99[67]];_0xf598x5++){this[_0xff99[251]][_0xff99[1197]](_0xf598x2[_0xf598x5])== _0xf598x4&& _0xf598x3[_0xff99[207]](_0xf598x2[_0xf598x5])}};return _0xf598x3};mxGraph[_0xff99[202]][_0xff99[2498]]= function(_0xf598x2,_0xf598x3,_0xf598x4){_0xf598x3= this[_0xff99[1729]](_0xf598x3);null!= _0xf598x3&& (this[_0xff99[1730]](_0xf598x2)&& (_0xf598x2= this[_0xff99[1731]](_0xf598x2),_0xf598x3[_0xff99[235]]-= _0xf598x2[_0xff99[117]],_0xf598x3[_0xff99[236]]-= _0xf598x2[_0xff99[119]],_0xf598x3[_0xff99[117]]+= _0xf598x2[_0xff99[117]],_0xf598x3[_0xff99[119]]+= _0xf598x2[_0xff99[119]]),_0xf598x3[_0xff99[235]]-= _0xf598x4,_0xf598x3[_0xff99[236]]-= _0xf598x4,_0xf598x3[_0xff99[117]]+= 2* _0xf598x4,_0xf598x3[_0xff99[119]]+= 2* _0xf598x4);return _0xf598x3};mxGraph[_0xff99[202]][_0xff99[2497]]= function(_0xf598x2){_0xf598x2= new mxCell(_0xff99[110]);_0xf598x2[_0xff99[1993]](!0);_0xf598x2[_0xff99[1995]](!1);return _0xf598x2};mxGraph[_0xff99[202]][_0xff99[845]]= function(_0xf598x2){var _0xf598x3=[];if(null== _0xf598x2){_0xf598x2= this[_0xff99[897]]();for(var _0xf598x4=[],_0xf598x5=0;_0xf598x5< _0xf598x2[_0xff99[67]];_0xf598x5++){0< this[_0xff99[251]][_0xff99[262]](_0xf598x2[_0xf598x5])&& _0xf598x4[_0xff99[207]](_0xf598x2[_0xf598x5])};_0xf598x2= _0xf598x4};if(null!= _0xf598x2&& 0< _0xf598x2[_0xff99[67]]){this[_0xff99[251]][_0xff99[473]]();try{for(_0xf598x5= 0;_0xf598x5< _0xf598x2[_0xff99[67]];_0xf598x5++){var _0xf598x9=this[_0xff99[251]][_0xff99[1953]](_0xf598x2[_0xf598x5]);if(null!= _0xf598x9&& 0< _0xf598x9[_0xff99[67]]){var _0xf598x9=_0xf598x9[_0xff99[1853]](),_0xf598xa=this[_0xff99[251]][_0xff99[1197]](_0xf598x2[_0xf598x5]),_0xf598x12=this[_0xff99[251]][_0xff99[262]](_0xf598xa);this[_0xff99[833]](_0xf598x9,_0xf598xa,_0xf598x12,null,null,!0);_0xf598x3= _0xf598x3[_0xff99[1919]](_0xf598x9)}};this[_0xff99[843]](this[_0xff99[2499]](_0xf598x2));this[_0xff99[746]]( new mxEventObject(mxEvent.UNGROUP_CELLS,_0xff99[895],_0xf598x2))}finally{this[_0xff99[251]][_0xff99[476]]()}};return _0xf598x3};mxGraph[_0xff99[202]][_0xff99[846]]= function(_0xf598x2){null== _0xf598x2&& (_0xf598x2= this[_0xff99[897]]());this[_0xff99[251]][_0xff99[473]]();try{var _0xf598x3=this[_0xff99[902]](),_0xf598x4=this[_0xff99[251]][_0xff99[262]](_0xf598x3);this[_0xff99[833]](_0xf598x2,_0xf598x3,_0xf598x4,null,null,!0);this[_0xff99[746]]( new mxEventObject(mxEvent.REMOVE_CELLS_FROM_PARENT,_0xff99[895],_0xf598x2))}finally{this[_0xff99[251]][_0xff99[476]]()};return _0xf598x2};mxGraph[_0xff99[202]][_0xff99[1917]]= function(_0xf598x2,_0xf598x3,_0xf598x4){null== _0xf598x2&& (_0xf598x2= this[_0xff99[897]]());_0xf598x3= null!= _0xf598x3?_0xf598x3:0;_0xf598x4= null!= _0xf598x4?_0xf598x4:!1;this[_0xff99[251]][_0xff99[473]]();try{for(var _0xf598x5=0;_0xf598x5< _0xf598x2[_0xff99[67]];_0xf598x5++){var _0xf598x9=this[_0xff99[1198]](_0xf598x2[_0xf598x5]);if(null!= _0xf598x9){var _0xf598xa=this[_0xff99[1955]](_0xf598x2[_0xf598x5]);if(null!= _0xf598xa&& 0< _0xf598xa[_0xff99[67]]){var _0xf598x12=this[_0xff99[1729]](_0xf598xa);if(0< _0xf598x12[_0xff99[117]]&& 0< _0xf598x12[_0xff99[119]]){var _0xf598x13=this[_0xff99[1730]](_0xf598x2[_0xf598x5])?this[_0xff99[1731]](_0xf598x2[_0xf598x5]): new mxRectangle,_0xf598x9=_0xf598x9[_0xff99[238]]();_0xf598x4&& (_0xf598x9[_0xff99[235]]+= _0xf598x12[_0xff99[235]]- _0xf598x13[_0xff99[117]]- _0xf598x3,_0xf598x9[_0xff99[236]]+= _0xf598x12[_0xff99[236]]- _0xf598x13[_0xff99[119]]- _0xf598x3);_0xf598x9[_0xff99[117]]= _0xf598x12[_0xff99[117]]+ _0xf598x13[_0xff99[117]]+ 2* _0xf598x3;_0xf598x9[_0xff99[119]]= _0xf598x12[_0xff99[119]]+ _0xf598x13[_0xff99[119]]+ 2* _0xf598x3;this[_0xff99[251]][_0xff99[1724]](_0xf598x2[_0xf598x5],_0xf598x9);this[_0xff99[834]](_0xf598xa,-_0xf598x12[_0xff99[235]]+ _0xf598x13[_0xff99[117]] + _0xf598x3,-_0xf598x12[_0xff99[236]]+ _0xf598x13[_0xff99[119]] + _0xf598x3)}}}}}finally{this[_0xff99[251]][_0xff99[476]]()};return _0xf598x2};mxGraph[_0xff99[202]][_0xff99[899]]= function(_0xf598x2,_0xf598x3){_0xf598x3= null!= _0xf598x3?_0xf598x3:!0;var _0xf598x4=null;if(null!= _0xf598x2){for(var _0xf598x5={},_0xf598x4=[],_0xf598x9=0;_0xf598x9< _0xf598x2[_0xff99[67]];_0xf598x9++){var _0xf598xa=mxCellPath[_0xff99[385]](_0xf598x2[_0xf598x9]);_0xf598x5[_0xf598xa]= _0xf598x2[_0xf598x9];_0xf598x4[_0xff99[207]](_0xf598x2[_0xf598x9])};if(0< _0xf598x4[_0xff99[67]]){for(var _0xf598xa=this[_0xff99[441]][_0xff99[255]],_0xf598x12=this[_0xff99[441]][_0xff99[513]],_0xf598x4=this[_0xff99[251]][_0xff99[899]](_0xf598x2,!0),_0xf598x9=0;_0xf598x9< _0xf598x2[_0xff99[67]];_0xf598x9++){if(!_0xf598x3&& this[_0xff99[251]][_0xff99[250]](_0xf598x4[_0xf598x9]) && null!= this[_0xff99[2500]](_0xf598x4[_0xf598x9],this[_0xff99[251]][_0xff99[1709]](_0xf598x4[_0xf598x9],!0),this[_0xff99[251]][_0xff99[1709]](_0xf598x4[_0xf598x9],!1))){_0xf598x4[_0xf598x9]= null}else {var _0xf598x13=this[_0xff99[251]][_0xff99[1721]](_0xf598x4[_0xf598x9]);if(null!= _0xf598x13){var _0xf598x14=this[_0xff99[441]][_0xff99[248]](_0xf598x2[_0xf598x9]),_0xf598x15=this[_0xff99[441]][_0xff99[248]](this[_0xff99[251]][_0xff99[1197]](_0xf598x2[_0xf598x9]));if(null!= _0xf598x14&& null!= _0xf598x15){var _0xf598x16=_0xf598x15[_0xff99[2078]][_0xff99[235]],_0xf598x15=_0xf598x15[_0xff99[2078]][_0xff99[236]];if(this[_0xff99[251]][_0xff99[250]](_0xf598x4[_0xf598x9])){for(var _0xf598x14=_0xf598x14[_0xff99[439]],_0xf598x17=this[_0xff99[251]][_0xff99[1709]](_0xf598x2[_0xf598x9],!0),_0xf598x18=mxCellPath[_0xff99[385]](_0xf598x17);null!= _0xf598x17&& null== _0xf598x5[_0xf598x18];){_0xf598x17= this[_0xff99[251]][_0xff99[1197]](_0xf598x17),_0xf598x18= mxCellPath[_0xff99[385]](_0xf598x17)};null== _0xf598x17&& _0xf598x13[_0xff99[2007]]( new mxPoint(_0xf598x14[0][_0xff99[235]]/ _0xf598xa- _0xf598x12[_0xff99[235]],_0xf598x14[0][_0xff99[236]]/ _0xf598xa- _0xf598x12[_0xff99[236]]),!0);_0xf598x17= this[_0xff99[251]][_0xff99[1709]](_0xf598x2[_0xf598x9],!1);for(_0xf598x18= mxCellPath[_0xff99[385]](_0xf598x17);null!= _0xf598x17&& null== _0xf598x5[_0xf598x18];){_0xf598x17= this[_0xff99[251]][_0xff99[1197]](_0xf598x17),_0xf598x18= mxCellPath[_0xff99[385]](_0xf598x17)};null== _0xf598x17&& (_0xf598x17= _0xf598x14[_0xff99[67]]- 1,_0xf598x13[_0xff99[2007]]( new mxPoint(_0xf598x14[_0xf598x17][_0xff99[235]]/ _0xf598xa- _0xf598x12[_0xff99[235]],_0xf598x14[_0xf598x17][_0xff99[236]]/ _0xf598xa- _0xf598x12[_0xff99[236]]),!1));_0xf598x13= _0xf598x13[_0xff99[1525]];if(null!= _0xf598x13){for(_0xf598x14= 0;_0xf598x14< _0xf598x13[_0xff99[67]];_0xf598x14++){_0xf598x13[_0xf598x14][_0xff99[235]]+= _0xf598x16,_0xf598x13[_0xf598x14][_0xff99[236]]+= _0xf598x15}}}else {_0xf598x13[_0xff99[235]]+= _0xf598x16,_0xf598x13[_0xff99[236]]+= _0xf598x15}}}}}}else {_0xf598x4= []}};return _0xf598x4};mxGraph[_0xff99[202]][_0xff99[2501]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa,_0xf598x12,_0xf598x13,_0xf598x14){_0xf598x3= this[_0xff99[2502]](_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa,_0xf598x12,_0xf598x13,_0xf598x14);return this[_0xff99[2103]](_0xf598x3,_0xf598x2)};mxGraph[_0xff99[202]][_0xff99[2502]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa,_0xf598x12,_0xf598x13,_0xf598x14){_0xf598x2= new mxGeometry(_0xf598x5,_0xf598x9,_0xf598xa,_0xf598x12);_0xf598x2[_0xff99[1500]]= null!= _0xf598x14?_0xf598x14:!1;_0xf598x4= new mxCell(_0xf598x4,_0xf598x2,_0xf598x13);_0xf598x4[_0xff99[1945]](_0xf598x3);_0xf598x4[_0xff99[1993]](!0);_0xf598x4[_0xff99[1995]](!0);return _0xf598x4};mxGraph[_0xff99[202]][_0xff99[1960]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa){_0xf598x3= this[_0xff99[2503]](_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa);return this[_0xff99[2504]](_0xf598x3,_0xf598x2,_0xf598x5,_0xf598x9)};mxGraph[_0xff99[202]][_0xff99[2503]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa){_0xf598x2= new mxCell(_0xf598x4, new mxGeometry,_0xf598xa);_0xf598x2[_0xff99[1945]](_0xf598x3);_0xf598x2[_0xff99[1994]](!0);_0xf598x2[_0xff99[256]][_0xff99[1500]]= !0;return _0xf598x2};mxGraph[_0xff99[202]][_0xff99[2504]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){return this[_0xff99[2103]](_0xf598x2,_0xf598x3,_0xf598x9,_0xf598x4,_0xf598x5)};mxGraph[_0xff99[202]][_0xff99[2103]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){return this[_0xff99[832]]([_0xf598x2],_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9)[0]};mxGraph[_0xff99[202]][_0xff99[832]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){null== _0xf598x3&& (_0xf598x3= this[_0xff99[902]]());null== _0xf598x4&& (_0xf598x4= this[_0xff99[251]][_0xff99[262]](_0xf598x3));this[_0xff99[251]][_0xff99[473]]();try{this[_0xff99[833]](_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,!1,!0),this[_0xff99[746]]( new mxEventObject(mxEvent.ADD_CELLS,_0xff99[895],_0xf598x2,_0xff99[1101],_0xf598x3,_0xff99[1983],_0xf598x4,_0xff99[1097],_0xf598x5,_0xff99[772],_0xf598x9))}finally{this[_0xff99[251]][_0xff99[476]]()};return _0xf598x2};mxGraph[_0xff99[202]][_0xff99[833]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa,_0xf598x12){if(null!= _0xf598x2&& null!= _0xf598x3&& null!= _0xf598x4){this[_0xff99[251]][_0xff99[473]]();try{for(var _0xf598x13=_0xf598xa?this[_0xff99[441]][_0xff99[248]](_0xf598x3):null,_0xf598x14=null!= _0xf598x13?_0xf598x13[_0xff99[2078]]:null,_0xf598x15= new mxPoint(0,0),_0xf598x13=0;_0xf598x13< _0xf598x2[_0xff99[67]];_0xf598x13++){if(null== _0xf598x2[_0xf598x13]){_0xf598x4--}else {var _0xf598x16=this[_0xff99[251]][_0xff99[1197]](_0xf598x2[_0xf598x13]);if(null!= _0xf598x14&& _0xf598x2[_0xf598x13]!= _0xf598x3&& _0xf598x3!= _0xf598x16){var _0xf598x17=this[_0xff99[441]][_0xff99[248]](_0xf598x16),_0xf598x18=null!= _0xf598x17?_0xf598x17[_0xff99[2078]]:_0xf598x15,_0xf598x19=this[_0xff99[251]][_0xff99[1721]](_0xf598x2[_0xf598x13]);if(null!= _0xf598x19){var _0xf598x1a=_0xf598x18[_0xff99[235]]- _0xf598x14[_0xff99[235]],_0xf598x1b=_0xf598x18[_0xff99[236]]- _0xf598x14[_0xff99[236]],_0xf598x19=_0xf598x19[_0xff99[238]]();_0xf598x19[_0xff99[513]](_0xf598x1a,_0xf598x1b);!_0xf598x19[_0xff99[1500]]&& (this[_0xff99[251]][_0xff99[1193]](_0xf598x2[_0xf598x13])&& !this[_0xff99[2505]]()) && (_0xf598x19[_0xff99[235]]= Math[_0xff99[160]](0,_0xf598x19[_0xff99[235]]),_0xf598x19[_0xff99[236]]= Math[_0xff99[160]](0,_0xf598x19[_0xff99[236]]));this[_0xff99[251]][_0xff99[1724]](_0xf598x2[_0xf598x13],_0xf598x19)}};_0xf598x3== _0xf598x16&& _0xf598x4+ _0xf598x13> this[_0xff99[251]][_0xff99[262]](_0xf598x3)&& _0xf598x4--;this[_0xff99[251]][_0xff99[99]](_0xf598x3,_0xf598x2[_0xf598x13],_0xf598x4+ _0xf598x13);this[_0xff99[2506]]()&& this[_0xff99[2507]](_0xf598x2[_0xf598x13])&& this[_0xff99[2508]](_0xf598x2[_0xf598x13]);(null== _0xf598x12|| _0xf598x12)&& this[_0xff99[2509]](_0xf598x2[_0xf598x13]);null!= _0xf598x5&& this[_0xff99[852]](_0xf598x2[_0xf598x13],_0xf598x5,!0);null!= _0xf598x9&& this[_0xff99[852]](_0xf598x2[_0xf598x13],_0xf598x9,!1)}};this[_0xff99[746]]( new mxEventObject(mxEvent.CELLS_ADDED,_0xff99[895],_0xf598x2,_0xff99[1101],_0xf598x3,_0xff99[1983],_0xf598x4,_0xff99[1097],_0xf598x5,_0xff99[772],_0xf598x9,_0xff99[492],_0xf598xa))}finally{this[_0xff99[251]][_0xff99[476]]()}}};mxGraph[_0xff99[202]][_0xff99[842]]= function(_0xf598x2,_0xf598x3){_0xf598x3= null!= _0xf598x3?_0xf598x3:!0;null== _0xf598x2&& (_0xf598x2= this[_0xff99[2510]](this[_0xff99[897]]()));_0xf598x3&& (_0xf598x2= this[_0xff99[2510]](this[_0xff99[2499]](_0xf598x2)));this[_0xff99[251]][_0xff99[473]]();try{this[_0xff99[843]](_0xf598x2),this[_0xff99[746]]( new mxEventObject(mxEvent.REMOVE_CELLS,_0xff99[895],_0xf598x2,_0xff99[2511],_0xf598x3))}finally{this[_0xff99[251]][_0xff99[476]]()};return _0xf598x2};mxGraph[_0xff99[202]][_0xff99[843]]= function(_0xf598x2){if(null!= _0xf598x2&& 0< _0xf598x2[_0xff99[67]]){var _0xf598x3=this[_0xff99[441]][_0xff99[255]],_0xf598x4=this[_0xff99[441]][_0xff99[513]];this[_0xff99[251]][_0xff99[473]]();try{for(var _0xf598x5={},_0xf598x9=0;_0xf598x9< _0xf598x2[_0xff99[67]];_0xf598x9++){var _0xf598xa=mxCellPath[_0xff99[385]](_0xf598x2[_0xf598x9]);_0xf598x5[_0xf598xa]= _0xf598x2[_0xf598x9]};for(_0xf598x9= 0;_0xf598x9< _0xf598x2[_0xff99[67]];_0xf598x9++){for(var _0xf598x12=this[_0xff99[1756]](_0xf598x2[_0xf598x9]),_0xf598x13=0;_0xf598x13< _0xf598x12[_0xff99[67]];_0xf598x13++){if(_0xf598xa= mxCellPath[_0xff99[385]](_0xf598x12[_0xf598x13]),null== _0xf598x5[_0xf598xa]){var _0xf598x14=this[_0xff99[251]][_0xff99[1721]](_0xf598x12[_0xf598x13]);if(null!= _0xf598x14){var _0xf598x15=this[_0xff99[441]][_0xff99[248]](_0xf598x12[_0xf598x13]);if(null!= _0xf598x15){var _0xf598x14=_0xf598x14[_0xff99[238]](),_0xf598x16=_0xf598x15[_0xff99[1710]](!0) == _0xf598x2[_0xf598x9],_0xf598x17=_0xf598x15[_0xff99[439]],_0xf598x18=_0xf598x16?0:_0xf598x17[_0xff99[67]]- 1;_0xf598x14[_0xff99[2007]]( new mxPoint(_0xf598x17[_0xf598x18][_0xff99[235]]/ _0xf598x3- _0xf598x4[_0xff99[235]],_0xf598x17[_0xf598x18][_0xff99[236]]/ _0xf598x3- _0xf598x4[_0xff99[236]]),_0xf598x16);this[_0xff99[251]][_0xff99[1957]](_0xf598x12[_0xf598x13],null,_0xf598x16);this[_0xff99[251]][_0xff99[1724]](_0xf598x12[_0xf598x13],_0xf598x14)}}}};this[_0xff99[251]][_0xff99[205]](_0xf598x2[_0xf598x9])};this[_0xff99[746]]( new mxEventObject(mxEvent.CELLS_REMOVED,_0xff99[895],_0xf598x2))}finally{this[_0xff99[251]][_0xff99[476]]()}}};mxGraph[_0xff99[202]][_0xff99[853]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){_0xf598x5= _0xf598x5|| 0;_0xf598x9= _0xf598x9|| 0;null== _0xf598x4&& (_0xf598x4= this[_0xff99[899]]([_0xf598x2])[0]);var _0xf598xa=this[_0xff99[251]][_0xff99[1197]](_0xf598x2),_0xf598x12=this[_0xff99[251]][_0xff99[1709]](_0xf598x2,!0);this[_0xff99[251]][_0xff99[473]]();try{this[_0xff99[835]](_0xf598x3,_0xf598x5,_0xf598x9,!1,!1),this[_0xff99[833]](_0xf598x3,_0xf598xa,this[_0xff99[251]][_0xff99[262]](_0xf598xa),null,null,!0),this[_0xff99[833]]([_0xf598x4],_0xf598xa,this[_0xff99[251]][_0xff99[262]](_0xf598xa),_0xf598x12,_0xf598x3[0],!1),this[_0xff99[852]](_0xf598x2,_0xf598x3[0],!0),this[_0xff99[746]]( new mxEventObject(mxEvent.SPLIT_EDGE,_0xff99[1989],_0xf598x2,_0xff99[895],_0xf598x3,_0xff99[2512],_0xf598x4,_0xff99[1126],_0xf598x5,_0xff99[1125],_0xf598x9))}finally{this[_0xff99[251]][_0xff99[476]]()};return _0xf598x4};mxGraph[_0xff99[202]][_0xff99[838]]= function(_0xf598x2,_0xf598x3,_0xf598x4){null== _0xf598x3&& (_0xf598x3= this[_0xff99[897]]());_0xf598x4&& (_0xf598x3= this[_0xff99[2499]](_0xf598x3));this[_0xff99[251]][_0xff99[473]]();try{this[_0xff99[839]](_0xf598x3,_0xf598x2),this[_0xff99[746]]( new mxEventObject(mxEvent.TOGGLE_CELLS,_0xff99[539],_0xf598x2,_0xff99[895],_0xf598x3,_0xff99[2511],_0xf598x4))}finally{this[_0xff99[251]][_0xff99[476]]()};return _0xf598x3};mxGraph[_0xff99[202]][_0xff99[839]]= function(_0xf598x2,_0xf598x3){if(null!= _0xf598x2&& 0< _0xf598x2[_0xff99[67]]){this[_0xff99[251]][_0xff99[473]]();try{for(var _0xf598x4=0;_0xf598x4< _0xf598x2[_0xff99[67]];_0xf598x4++){this[_0xff99[251]][_0xff99[175]](_0xf598x2[_0xf598x4],_0xf598x3)}}finally{this[_0xff99[251]][_0xff99[476]]()}}};mxGraph[_0xff99[202]][_0xff99[847]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){_0xf598x3= null!= _0xf598x3?_0xf598x3:!1;null== _0xf598x4&& (_0xf598x4= this[_0xff99[2513]](this[_0xff99[897]](),_0xf598x2));this[_0xff99[2126]](!1);this[_0xff99[251]][_0xff99[473]]();try{this[_0xff99[848]](_0xf598x4,_0xf598x2,_0xf598x3,_0xf598x5),this[_0xff99[746]]( new mxEventObject(mxEvent.FOLD_CELLS,_0xff99[2514],_0xf598x2,_0xff99[2515],_0xf598x3,_0xff99[895],_0xf598x4))}finally{this[_0xff99[251]][_0xff99[476]]()};return _0xf598x4};mxGraph[_0xff99[202]][_0xff99[848]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){if(null!= _0xf598x2&& 0< _0xf598x2[_0xff99[67]]){this[_0xff99[251]][_0xff99[473]]();try{for(var _0xf598x9=0;_0xf598x9< _0xf598x2[_0xff99[67]];_0xf598x9++){if((!_0xf598x5|| this[_0xff99[2516]](_0xf598x2[_0xf598x9],_0xf598x3)) && _0xf598x3!= this[_0xff99[1742]](_0xf598x2[_0xf598x9])){if(this[_0xff99[251]][_0xff99[1972]](_0xf598x2[_0xf598x9],_0xf598x3),this[_0xff99[2517]](_0xf598x2[_0xf598x9],_0xf598x3),this[_0xff99[2507]](_0xf598x2[_0xf598x9])&& this[_0xff99[2508]](_0xf598x2[_0xf598x9]),_0xf598x4){var _0xf598xa=this[_0xff99[251]][_0xff99[1953]](_0xf598x2[_0xf598x9]);this[_0xff99[847]](_0xf598xa,_0xf598x3,_0xf598x4)}}};this[_0xff99[746]]( new mxEventObject(mxEvent.CELLS_FOLDED,_0xff99[895],_0xf598x2,_0xff99[2514],_0xf598x3,_0xff99[2515],_0xf598x4))}finally{this[_0xff99[251]][_0xff99[476]]()}}};mxGraph[_0xff99[202]][_0xff99[2517]]= function(_0xf598x2,_0xf598x3){if(null!= _0xf598x2){var _0xf598x4=this[_0xff99[251]][_0xff99[1721]](_0xf598x2);null!= _0xf598x4&& (_0xf598x4= _0xf598x4[_0xff99[238]](),this[_0xff99[2518]](_0xf598x2,_0xf598x4,_0xf598x3),_0xf598x4[_0xff99[2005]](),this[_0xff99[251]][_0xff99[1724]](_0xf598x2,_0xf598x4))}};mxGraph[_0xff99[202]][_0xff99[2518]]= function(_0xf598x2,_0xf598x3,_0xf598x4){if(null!= _0xf598x2&& null!= _0xf598x3){_0xf598x4= this[_0xff99[441]][_0xff99[248]](_0xf598x2);_0xf598x4= null!= _0xf598x4?_0xf598x4[_0xff99[124]]:this[_0xff99[1705]](_0xf598x2);if(null== _0xf598x3[_0xff99[2002]]){var _0xf598x5=_0xf598x3;this[_0xff99[2394]]&& (_0xf598x2= this[_0xff99[2519]](_0xf598x2),null!= _0xf598x2&& (_0xf598x5= _0xf598x2,_0xf598x2= mxUtils[_0xff99[433]](_0xf598x4,mxConstants.STYLE_STARTSIZE),0< _0xf598x2&& (_0xf598x5[_0xff99[119]]= Math[_0xff99[160]](_0xf598x5[_0xff99[119]],_0xf598x2))));_0xf598x3[_0xff99[2002]]= new mxRectangle(0,0,_0xf598x5[_0xff99[117]],_0xf598x5[_0xff99[119]])};if(null!= _0xf598x3[_0xff99[2002]]){_0xf598x3[_0xff99[2002]][_0xff99[235]]= _0xf598x3[_0xff99[235]];_0xf598x3[_0xff99[2002]][_0xff99[236]]= _0xf598x3[_0xff99[236]];var _0xf598x9=mxUtils[_0xff99[431]](_0xf598x4[mxConstants[_0xff99[2278]]]|| _0xff99[468]);0!= _0xf598x9&& (_0xf598x2= _0xf598x3[_0xff99[2002]][_0xff99[241]]()- _0xf598x3[_0xff99[241]](),_0xf598x4= _0xf598x3[_0xff99[2002]][_0xff99[242]]()- _0xf598x3[_0xff99[242]](),_0xf598x5= Math[_0xff99[426]](_0xf598x9),_0xf598x9= Math[_0xff99[427]](_0xf598x9),_0xf598x3[_0xff99[2002]][_0xff99[235]]+= _0xf598x5* _0xf598x2- _0xf598x9* _0xf598x4- _0xf598x2,_0xf598x3[_0xff99[2002]][_0xff99[236]]+= _0xf598x9* _0xf598x2+ _0xf598x5* _0xf598x4- _0xf598x4)}}};mxGraph[_0xff99[202]][_0xff99[2499]]= function(_0xf598x2){var _0xf598x3=_0xf598x2[_0xff99[1853]]();return _0xf598x3= _0xf598x3[_0xff99[1919]](this[_0xff99[2520]](_0xf598x2))};mxGraph[_0xff99[202]][_0xff99[2520]]= function(_0xf598x2){var _0xf598x3=[];if(null!= _0xf598x2){for(var _0xf598x4=0;_0xf598x4< _0xf598x2[_0xff99[67]];_0xf598x4++){for(var _0xf598x5=this[_0xff99[251]][_0xff99[1707]](_0xf598x2[_0xf598x4]),_0xf598x9=0;_0xf598x9< _0xf598x5;_0xf598x9++){_0xf598x3[_0xff99[207]](this[_0xff99[251]][_0xff99[1708]](_0xf598x2[_0xf598x4],_0xf598x9))};_0xf598x5= this[_0xff99[251]][_0xff99[1953]](_0xf598x2[_0xf598x4]);_0xf598x3= _0xf598x3[_0xff99[1919]](this[_0xff99[2520]](_0xf598x5))}};return _0xf598x3};mxGraph[_0xff99[202]][_0xff99[858]]= function(_0xf598x2,_0xf598x3){_0xf598x3= null!= _0xf598x3?_0xf598x3:!1;this[_0xff99[251]][_0xff99[473]]();try{this[_0xff99[2457]](_0xf598x2,_0xf598x3),this[_0xff99[746]]( new mxEventObject(mxEvent.UPDATE_CELL_SIZE,_0xff99[246],_0xf598x2,_0xff99[2521],_0xf598x3))}finally{this[_0xff99[251]][_0xff99[476]]()};return _0xf598x2};mxGraph[_0xff99[202]][_0xff99[2457]]= function(_0xf598x2,_0xf598x3){if(null!= _0xf598x2){this[_0xff99[251]][_0xff99[473]]();try{var _0xf598x4=this[_0xff99[2519]](_0xf598x2),_0xf598x5=this[_0xff99[251]][_0xff99[1721]](_0xf598x2);if(null!= _0xf598x4&& null!= _0xf598x5){var _0xf598x9=this[_0xff99[1742]](_0xf598x2),_0xf598x5=_0xf598x5[_0xff99[238]]();if(this[_0xff99[1730]](_0xf598x2)){var _0xf598xa=this[_0xff99[441]][_0xff99[248]](_0xf598x2),_0xf598x12=null!= _0xf598xa?_0xf598xa[_0xff99[124]]:this[_0xff99[1705]](_0xf598x2),_0xf598x13=this[_0xff99[251]][_0xff99[474]](_0xf598x2);null== _0xf598x13&& (_0xf598x13= _0xff99[110]);mxUtils[_0xff99[433]](_0xf598x12,mxConstants.STYLE_HORIZONTAL,!0)?(_0xf598x13= mxUtils[_0xff99[475]](_0xf598x13,mxConstants.STYLE_STARTSIZE,_0xf598x4[_0xff99[119]]+ 8),_0xf598x9&& (_0xf598x5[_0xff99[119]]= _0xf598x4[_0xff99[119]]+ 8),_0xf598x5[_0xff99[117]]= _0xf598x4[_0xff99[117]]):(_0xf598x13= mxUtils[_0xff99[475]](_0xf598x13,mxConstants.STYLE_STARTSIZE,_0xf598x4[_0xff99[117]]+ 8),_0xf598x9&& (_0xf598x5[_0xff99[117]]= _0xf598x4[_0xff99[117]]+ 8),_0xf598x5[_0xff99[119]]= _0xf598x4[_0xff99[119]]);this[_0xff99[251]][_0xff99[475]](_0xf598x2,_0xf598x13)}else {_0xf598x5[_0xff99[117]]= _0xf598x4[_0xff99[117]],_0xf598x5[_0xff99[119]]= _0xf598x4[_0xff99[119]]};if(!_0xf598x3&& !_0xf598x9){var _0xf598x14=this[_0xff99[441]][_0xff99[1799]](this[_0xff99[251]][_0xff99[1953]](_0xf598x2));if(null!= _0xf598x14){var _0xf598x15=this[_0xff99[441]][_0xff99[513]],_0xf598x16=this[_0xff99[441]][_0xff99[255]],_0xf598x17=(_0xf598x14[_0xff99[236]]+ _0xf598x14[_0xff99[119]])/ _0xf598x16- _0xf598x5[_0xff99[236]]- _0xf598x15[_0xff99[236]];_0xf598x5[_0xff99[117]]= Math[_0xff99[160]](_0xf598x5[_0xff99[117]],(_0xf598x14[_0xff99[235]]+ _0xf598x14[_0xff99[117]])/ _0xf598x16- _0xf598x5[_0xff99[235]]- _0xf598x15[_0xff99[235]]);_0xf598x5[_0xff99[119]]= Math[_0xff99[160]](_0xf598x5[_0xff99[119]],_0xf598x17)}};this[_0xff99[837]]([_0xf598x2],[_0xf598x5])}}finally{this[_0xff99[251]][_0xff99[476]]()}}};mxGraph[_0xff99[202]][_0xff99[2519]]= function(_0xf598x2){var _0xf598x3=null;if(null!= _0xf598x2){var _0xf598x4=this[_0xff99[441]][_0xff99[248]](_0xf598x2),_0xf598x5=null!= _0xf598x4?_0xf598x4[_0xff99[124]]:this[_0xff99[1705]](_0xf598x2);if(null!= _0xf598x5&& !this[_0xff99[251]][_0xff99[250]](_0xf598x2)){var _0xf598x9=_0xf598x5[mxConstants[_0xff99[2185]]]|| mxConstants[_0xff99[483]],_0xf598xa=0,_0xf598x3=0;if((null!= this[_0xff99[1202]](_0xf598x4)|| null!= _0xf598x5[mxConstants[_0xff99[2484]]])&& _0xf598x5[mxConstants[_0xff99[2059]]]== mxConstants[_0xff99[2522]]){_0xf598x5[mxConstants[_0xff99[2063]]]== mxConstants[_0xff99[481]]&& (_0xf598xa+= parseFloat(_0xf598x5[mxConstants[_0xff99[2523]]])|| mxLabel[_0xff99[202]][_0xff99[1680]]),_0xf598x5[mxConstants[_0xff99[2064]]]!= mxConstants[_0xff99[479]]&& (_0xf598x3+= parseFloat(_0xf598x5[mxConstants[_0xff99[2524]]])|| mxLabel[_0xff99[202]][_0xff99[1680]])};_0xf598xa+= 2* (_0xf598x5[mxConstants[_0xff99[2143]]]|| 0);_0xf598xa+= _0xf598x5[mxConstants[_0xff99[2147]]]|| 0;_0xf598xa+= _0xf598x5[mxConstants[_0xff99[2145]]]|| 0;_0xf598x3+= 2* (_0xf598x5[mxConstants[_0xff99[2143]]]|| 0);_0xf598x3+= _0xf598x5[mxConstants[_0xff99[2144]]]|| 0;_0xf598x3+= _0xf598x5[mxConstants[_0xff99[2146]]]|| 0;_0xf598x4= this[_0xff99[2205]](_0xf598x4);null!= _0xf598x4&& (_0xf598xa+= _0xf598x4[_0xff99[117]]+ 8);_0xf598x4= this[_0xff99[2183]](_0xf598x2);null!= _0xf598x4&& 0< _0xf598x4[_0xff99[67]]?(this[_0xff99[2186]](_0xf598x2)|| (_0xf598x4= _0xf598x4[_0xff99[230]](/\n/g,_0xff99[545])),_0xf598x9= mxUtils[_0xff99[2525]](_0xf598x4,_0xf598x9,_0xf598x5[mxConstants[_0xff99[2188]]]),_0xf598x2= _0xf598x9[_0xff99[117]]+ _0xf598xa,_0xf598x3= _0xf598x9[_0xff99[119]]+ _0xf598x3,mxUtils[_0xff99[433]](_0xf598x5,mxConstants.STYLE_HORIZONTAL,!0)|| (_0xf598x5= _0xf598x3,_0xf598x3= _0xf598x2,_0xf598x2= _0xf598x5),this[_0xff99[991]]&& (_0xf598x2= this[_0xff99[1021]](_0xf598x2+ this[_0xff99[1020]]/ 2),_0xf598x3= this[_0xff99[1021]](_0xf598x3+ this[_0xff99[1020]]/ 2)),_0xf598x3= new mxRectangle(0,0,_0xf598x2,_0xf598x3)):(_0xf598x5= 4* this[_0xff99[1020]],_0xf598x3= new mxRectangle(0,0,_0xf598x5,_0xf598x5))}};return _0xf598x3};mxGraph[_0xff99[202]][_0xff99[2216]]= function(_0xf598x2,_0xf598x3){if(0.2< Math[_0xff99[425]](1- _0xf598x3[_0xff99[255]])){var _0xf598x4=this[_0xff99[441]][_0xff99[255]],_0xf598x5=this[_0xff99[441]][_0xff99[513]],_0xf598x9=_0xf598x2[_0xff99[117]]* _0xf598x3[_0xff99[255]],_0xf598xa=_0xf598x2[_0xff99[119]]* _0xf598x3[_0xff99[255]],_0xf598x12=_0xf598x2[_0xff99[236]]- (_0xf598xa- _0xf598x2[_0xff99[119]])/ 2,_0xf598x4= new mxRectangle(this[_0xff99[1021]]((_0xf598x2[_0xff99[235]]- (_0xf598x9- _0xf598x2[_0xff99[117]])/ 2)/ _0xf598x4)- _0xf598x5[_0xff99[235]],this[_0xff99[1021]](_0xf598x12/ _0xf598x4)- _0xf598x5[_0xff99[236]],this[_0xff99[1021]](_0xf598x9/ _0xf598x4),this[_0xff99[1021]](_0xf598xa/ _0xf598x4));this[_0xff99[2526]](_0xf598x2[_0xff99[246]],_0xf598x4)}};mxGraph[_0xff99[202]][_0xff99[2526]]= function(_0xf598x2,_0xf598x3){return this[_0xff99[836]]([_0xf598x2],[_0xf598x3])[0]};mxGraph[_0xff99[202]][_0xff99[836]]= function(_0xf598x2,_0xf598x3){this[_0xff99[251]][_0xff99[473]]();try{this[_0xff99[837]](_0xf598x2,_0xf598x3),this[_0xff99[746]]( new mxEventObject(mxEvent.RESIZE_CELLS,_0xff99[895],_0xf598x2,_0xff99[1562],_0xf598x3))}finally{this[_0xff99[251]][_0xff99[476]]()};return _0xf598x2};mxGraph[_0xff99[202]][_0xff99[837]]= function(_0xf598x2,_0xf598x3){if(null!= _0xf598x2&& null!= _0xf598x3&& _0xf598x2[_0xff99[67]]== _0xf598x3[_0xff99[67]]){this[_0xff99[251]][_0xff99[473]]();try{for(var _0xf598x4=0;_0xf598x4< _0xf598x2[_0xff99[67]];_0xf598x4++){var _0xf598x5=_0xf598x3[_0xf598x4],_0xf598x9=this[_0xff99[251]][_0xff99[1721]](_0xf598x2[_0xf598x4]);if(null!= _0xf598x9&& (_0xf598x9[_0xff99[235]]!= _0xf598x5[_0xff99[235]]|| _0xf598x9[_0xff99[236]]!= _0xf598x5[_0xff99[236]]|| _0xf598x9[_0xff99[117]]!= _0xf598x5[_0xff99[117]]|| _0xf598x9[_0xff99[119]]!= _0xf598x5[_0xff99[119]])){_0xf598x9= _0xf598x9[_0xff99[238]]();if(_0xf598x9[_0xff99[1500]]){var _0xf598xa=_0xf598x9[_0xff99[1368]];null!= _0xf598xa&& (_0xf598xa[_0xff99[235]]+= _0xf598x5[_0xff99[235]]- _0xf598x9[_0xff99[235]],_0xf598xa[_0xff99[236]]+= _0xf598x5[_0xff99[236]]- _0xf598x9[_0xff99[236]])}else {_0xf598x9[_0xff99[235]]= _0xf598x5[_0xff99[235]],_0xf598x9[_0xff99[236]]= _0xf598x5[_0xff99[236]]};_0xf598x9[_0xff99[117]]= _0xf598x5[_0xff99[117]];_0xf598x9[_0xff99[119]]= _0xf598x5[_0xff99[119]];!_0xf598x9[_0xff99[1500]]&& (this[_0xff99[251]][_0xff99[1193]](_0xf598x2[_0xf598x4])&& !this[_0xff99[2505]]()) && (_0xf598x9[_0xff99[235]]= Math[_0xff99[160]](0,_0xf598x9[_0xff99[235]]),_0xf598x9[_0xff99[236]]= Math[_0xff99[160]](0,_0xf598x9[_0xff99[236]]));this[_0xff99[251]][_0xff99[1724]](_0xf598x2[_0xf598x4],_0xf598x9);this[_0xff99[2507]](_0xf598x2[_0xf598x4])&& this[_0xff99[2508]](_0xf598x2[_0xf598x4])}};this[_0xff99[2399]]&& this[_0xff99[1750]](_0xf598x2);this[_0xff99[746]]( new mxEventObject(mxEvent.CELLS_RESIZED,_0xff99[895],_0xf598x2,_0xff99[1562],_0xf598x3))}finally{this[_0xff99[251]][_0xff99[476]]()}}};mxGraph[_0xff99[202]][_0xff99[2508]]= function(_0xf598x2){if(null!= _0xf598x2){var _0xf598x3=this[_0xff99[251]][_0xff99[1197]](_0xf598x2),_0xf598x4=this[_0xff99[251]][_0xff99[1721]](_0xf598x3);if(null!= _0xf598x3&& (null!= _0xf598x4&& !this[_0xff99[1742]](_0xf598x3))&& (_0xf598x2= this[_0xff99[251]][_0xff99[1721]](_0xf598x2),null!= _0xf598x2&& (_0xf598x4[_0xff99[117]]< _0xf598x2[_0xff99[235]]+ _0xf598x2[_0xff99[117]]|| _0xf598x4[_0xff99[119]]< _0xf598x2[_0xff99[236]]+ _0xf598x2[_0xff99[119]]))){_0xf598x4= _0xf598x4[_0xff99[238]](),_0xf598x4[_0xff99[117]]= Math[_0xff99[160]](_0xf598x4[_0xff99[117]],_0xf598x2[_0xff99[235]]+ _0xf598x2[_0xff99[117]]),_0xf598x4[_0xff99[119]]= Math[_0xff99[160]](_0xf598x4[_0xff99[119]],_0xf598x2[_0xff99[236]]+ _0xf598x2[_0xff99[119]]),this[_0xff99[837]]([_0xf598x3],[_0xf598x4])}}};mxGraph[_0xff99[202]][_0xff99[903]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){return this[_0xff99[834]](_0xf598x2,_0xf598x3,_0xf598x4,!0,_0xf598x5,_0xf598x9)};mxGraph[_0xff99[202]][_0xff99[834]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa){_0xf598x3= null!= _0xf598x3?_0xf598x3:0;_0xf598x4= null!= _0xf598x4?_0xf598x4:0;_0xf598x5= null!= _0xf598x5?_0xf598x5:!1;if(null!= _0xf598x2&& (0!= _0xf598x3|| 0!= _0xf598x4|| _0xf598x5|| null!= _0xf598x9)){this[_0xff99[251]][_0xff99[473]]();try{_0xf598x5&& (_0xf598x2= this[_0xff99[899]](_0xf598x2,this[_0xff99[2527]]()),null== _0xf598x9&& (_0xf598x9= this[_0xff99[902]]()));var _0xf598x12=this[_0xff99[2505]]();null!= _0xf598x9&& this[_0xff99[2528]](!0);this[_0xff99[835]](_0xf598x2,_0xf598x3,_0xf598x4,!_0xf598x5&& this[_0xff99[2529]]() && this[_0xff99[2530]](),null== _0xf598x9);this[_0xff99[2528]](_0xf598x12);if(null!= _0xf598x9){var _0xf598x13=this[_0xff99[251]][_0xff99[262]](_0xf598x9);this[_0xff99[833]](_0xf598x2,_0xf598x9,_0xf598x13,null,null,!0)};this[_0xff99[746]]( new mxEventObject(mxEvent.MOVE_CELLS,_0xff99[895],_0xf598x2,_0xff99[1126],_0xf598x3,_0xff99[1125],_0xf598x4,_0xff99[238],_0xf598x5,_0xff99[772],_0xf598x9,_0xff99[763],_0xf598xa))}finally{this[_0xff99[251]][_0xff99[476]]()}};return _0xf598x2};mxGraph[_0xff99[202]][_0xff99[835]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){if(null!= _0xf598x2&& (0!= _0xf598x3|| 0!= _0xf598x4)){this[_0xff99[251]][_0xff99[473]]();try{_0xf598x5&& this[_0xff99[2531]](_0xf598x2);for(var _0xf598xa=0;_0xf598xa< _0xf598x2[_0xff99[67]];_0xf598xa++){this[_0xff99[2532]](_0xf598x2[_0xf598xa],_0xf598x3,_0xf598x4),_0xf598x9&& this[_0xff99[2509]](_0xf598x2[_0xf598xa])};this[_0xff99[2400]]&& this[_0xff99[1750]](_0xf598x2);this[_0xff99[746]]( new mxEventObject(mxEvent.CELLS_MOVED,_0xff99[895],_0xf598x2,_0xff99[1126],_0xf598x4,_0xff99[1125],_0xf598x4,_0xff99[808],_0xf598x5))}finally{this[_0xff99[251]][_0xff99[476]]()}}};mxGraph[_0xff99[202]][_0xff99[2532]]= function(_0xf598x2,_0xf598x3,_0xf598x4){var _0xf598x5=this[_0xff99[251]][_0xff99[1721]](_0xf598x2);null!= _0xf598x5&& (_0xf598x5= _0xf598x5[_0xff99[238]](),_0xf598x5[_0xff99[513]](_0xf598x3,_0xf598x4),!_0xf598x5[_0xff99[1500]]&& (this[_0xff99[251]][_0xff99[1193]](_0xf598x2)&& !this[_0xff99[2505]]()) && (_0xf598x5[_0xff99[235]]= Math[_0xff99[160]](0,_0xf598x5[_0xff99[235]]),_0xf598x5[_0xff99[236]]= Math[_0xff99[160]](0,_0xf598x5[_0xff99[236]])),_0xf598x5[_0xff99[1500]]&& !this[_0xff99[251]][_0xff99[250]](_0xf598x2)&& (null== _0xf598x5[_0xff99[1368]]?_0xf598x5[_0xff99[1368]]= new mxPoint(_0xf598x3,_0xf598x4):(_0xf598x5[_0xff99[1368]][_0xff99[235]]+= _0xf598x3,_0xf598x5[_0xff99[1368]][_0xff99[236]]+= _0xf598x4)),this[_0xff99[251]][_0xff99[1724]](_0xf598x2,_0xf598x5))};mxGraph[_0xff99[202]][_0xff99[2533]]= function(_0xf598x2){if(null!= _0xf598x2&& !this[_0xff99[251]][_0xff99[250]](_0xf598x2)){var _0xf598x3=this[_0xff99[251]][_0xff99[1197]](_0xf598x2);if(_0xf598x3== this[_0xff99[902]]()|| _0xf598x3== this[_0xff99[2534]]()){return this[_0xff99[2535]]()};if(null!= _0xf598x3&& _0xf598x3!= this[_0xff99[902]]()){var _0xf598x4=this[_0xff99[251]][_0xff99[1721]](_0xf598x3);if(null!= _0xf598x4){var _0xf598x5=_0xf598x2= 0,_0xf598x9=_0xf598x4[_0xff99[117]],_0xf598x4=_0xf598x4[_0xff99[119]];this[_0xff99[1730]](_0xf598x3)&& (_0xf598x3= this[_0xff99[1731]](_0xf598x3),_0xf598x2= _0xf598x3[_0xff99[117]],_0xf598x9-= _0xf598x3[_0xff99[117]],_0xf598x5= _0xf598x3[_0xff99[119]],_0xf598x4-= _0xf598x3[_0xff99[119]]);return new mxRectangle(_0xf598x2,_0xf598x5,_0xf598x9,_0xf598x4)}}};return null};mxGraph[_0xff99[202]][_0xff99[2535]]= function(){return this[_0xff99[2385]]};mxGraph[_0xff99[202]][_0xff99[2509]]= function(_0xf598x2){if(null!= _0xf598x2){var _0xf598x3=this[_0xff99[251]][_0xff99[1721]](_0xf598x2),_0xf598x4=this[_0xff99[2536]](_0xf598x2)?this[_0xff99[2533]](_0xf598x2):this[_0xff99[2535]]();if(null!= _0xf598x3&& null!= _0xf598x4&& !_0xf598x3[_0xff99[1500]]&& (_0xf598x3[_0xff99[235]]< _0xf598x4[_0xff99[235]]|| _0xf598x3[_0xff99[236]]< _0xf598x4[_0xff99[236]]|| _0xf598x4[_0xff99[117]]< _0xf598x3[_0xff99[235]]+ _0xf598x3[_0xff99[117]]|| _0xf598x4[_0xff99[119]]< _0xf598x3[_0xff99[236]]+ _0xf598x3[_0xff99[119]])){_0xf598x2= this[_0xff99[2537]](_0xf598x2),0< _0xf598x4[_0xff99[117]]&& (_0xf598x3[_0xff99[235]]= Math[_0xff99[243]](_0xf598x3[_0xff99[235]],_0xf598x4[_0xff99[235]]+ _0xf598x4[_0xff99[117]]- (1- _0xf598x2)* _0xf598x3[_0xff99[117]])),0< _0xf598x4[_0xff99[119]]&& (_0xf598x3[_0xff99[236]]= Math[_0xff99[243]](_0xf598x3[_0xff99[236]],_0xf598x4[_0xff99[236]]+ _0xf598x4[_0xff99[119]]- (1- _0xf598x2)* _0xf598x3[_0xff99[119]])),_0xf598x3[_0xff99[235]]= Math[_0xff99[160]](_0xf598x3[_0xff99[235]],_0xf598x4[_0xff99[235]]- _0xf598x3[_0xff99[117]]* _0xf598x2),_0xf598x3[_0xff99[236]]= Math[_0xff99[160]](_0xf598x3[_0xff99[236]],_0xf598x4[_0xff99[236]]- _0xf598x3[_0xff99[119]]* _0xf598x2)}}};mxGraph[_0xff99[202]][_0xff99[1750]]= function(_0xf598x2){if(null!= _0xf598x2){for(var _0xf598x3={},_0xf598x4=0;_0xf598x4< _0xf598x2[_0xff99[67]];_0xf598x4++){var _0xf598x5=mxCellPath[_0xff99[385]](_0xf598x2[_0xf598x4]);_0xf598x3[_0xf598x5]= _0xf598x2[_0xf598x4]};this[_0xff99[251]][_0xff99[473]]();try{for(_0xf598x4= 0;_0xf598x4< _0xf598x2[_0xff99[67]];_0xf598x4++){var _0xf598x9=this[_0xff99[251]][_0xff99[264]](_0xf598x2[_0xf598x4]);if(null!= _0xf598x9){for(_0xf598x5= 0;_0xf598x5< _0xf598x9[_0xff99[67]];_0xf598x5++){var _0xf598xa=this[_0xff99[441]][_0xff99[248]](_0xf598x9[_0xf598x5]),_0xf598x12=null!= _0xf598xa?_0xf598xa[_0xff99[1710]](!0):this[_0xff99[441]][_0xff99[1710]](_0xf598x9[_0xf598x5],!0),_0xf598x13=null!= _0xf598xa?_0xf598xa[_0xff99[1710]](!1):this[_0xff99[441]][_0xff99[1710]](_0xf598x9[_0xf598x5],!1),_0xf598x14=mxCellPath[_0xff99[385]](_0xf598x12),_0xf598x15=mxCellPath[_0xff99[385]](_0xf598x13);(null== _0xf598x3[_0xf598x14]|| null== _0xf598x3[_0xf598x15])&& this[_0xff99[1809]](_0xf598x9[_0xf598x5])}};this[_0xff99[1750]](this[_0xff99[251]][_0xff99[1953]](_0xf598x2[_0xf598x4]))}}finally{this[_0xff99[251]][_0xff99[476]]()}}};mxGraph[_0xff99[202]][_0xff99[1809]]= function(_0xf598x2){var _0xf598x3=this[_0xff99[251]][_0xff99[1721]](_0xf598x2);null!= _0xf598x3&& (null!= _0xf598x3[_0xff99[1525]]&& 0< _0xf598x3[_0xff99[1525]][_0xff99[67]])&& (_0xf598x3= _0xf598x3[_0xff99[238]](),_0xf598x3[_0xff99[1525]]= [],this[_0xff99[251]][_0xff99[1724]](_0xf598x2,_0xf598x3));return _0xf598x2};mxGraph[_0xff99[202]][_0xff99[2538]]= function(_0xf598x2,_0xf598x3){return null!= _0xf598x2&& null!= _0xf598x2[_0xff99[253]]&& null!= _0xf598x2[_0xff99[253]][_0xff99[1561]]?_0xf598x2[_0xff99[253]][_0xff99[1561]][_0xff99[1531]]:null};mxGraph[_0xff99[202]][_0xff99[2288]]= function(_0xf598x2,_0xf598x3,_0xf598x4){_0xf598x3= null;var _0xf598x5=_0xf598x2[_0xff99[124]][_0xf598x4?mxConstants[_0xff99[2539]]:mxConstants[_0xff99[2540]]];if(null!= _0xf598x5){var _0xf598x9=_0xf598x2[_0xff99[124]][_0xf598x4?mxConstants[_0xff99[2541]]:mxConstants[_0xff99[2542]]];null!= _0xf598x9&& (_0xf598x3= new mxPoint(parseFloat(_0xf598x5),parseFloat(_0xf598x9)))};_0xf598x5= !1;null!= _0xf598x3&& (_0xf598x5= mxUtils[_0xff99[433]](_0xf598x2[_0xff99[124]],_0xf598x4?mxConstants[_0xff99[2543]]:mxConstants[_0xff99[2544]],!0));return new mxConnectionConstraint(_0xf598x3,_0xf598x5)};mxGraph[_0xff99[202]][_0xff99[2545]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){if(null!= _0xf598x5){this[_0xff99[251]][_0xff99[473]]();try{null== _0xf598x5|| null== _0xf598x5[_0xff99[2546]]?(this[_0xff99[1717]](_0xf598x4?mxConstants[_0xff99[2539]]:mxConstants[_0xff99[2540]],null,[_0xf598x2]),this[_0xff99[1717]](_0xf598x4?mxConstants[_0xff99[2541]]:mxConstants[_0xff99[2542]],null,[_0xf598x2]),this[_0xff99[1717]](_0xf598x4?mxConstants[_0xff99[2543]]:mxConstants[_0xff99[2544]],null,[_0xf598x2])):null!= _0xf598x5[_0xff99[2546]]&& (this[_0xff99[1717]](_0xf598x4?mxConstants[_0xff99[2539]]:mxConstants[_0xff99[2540]],_0xf598x5[_0xff99[2546]][_0xff99[235]],[_0xf598x2]),this[_0xff99[1717]](_0xf598x4?mxConstants[_0xff99[2541]]:mxConstants[_0xff99[2542]],_0xf598x5[_0xff99[2546]][_0xff99[236]],[_0xf598x2]),_0xf598x5[_0xff99[591]]?this[_0xff99[1717]](_0xf598x4?mxConstants[_0xff99[2543]]:mxConstants[_0xff99[2544]],null,[_0xf598x2]):this[_0xff99[1717]](_0xf598x4?mxConstants[_0xff99[2543]]:mxConstants[_0xff99[2544]],_0xff99[468],[_0xf598x2]))}finally{this[_0xff99[251]][_0xff99[476]]()}}};mxGraph[_0xff99[202]][_0xff99[2290]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=null;if(null!= _0xf598x2){var _0xf598x5=this[_0xff99[441]][_0xff99[2087]](_0xf598x2),_0xf598x9= new mxPoint(_0xf598x5[_0xff99[241]](),_0xf598x5[_0xff99[242]]()),_0xf598xa=_0xf598x2[_0xff99[124]][mxConstants[_0xff99[2011]]],_0xf598x12=0;if(null!= _0xf598xa&& (_0xff99[700]== _0xf598xa?_0xf598x12+= 270:_0xff99[703]== _0xf598xa?_0xf598x12+= 180:_0xff99[701]== _0xf598xa&& (_0xf598x12+= 90),_0xff99[700]== _0xf598xa|| _0xff99[701]== _0xf598xa)){_0xf598x5[_0xff99[235]]+= _0xf598x5[_0xff99[117]]/ 2- _0xf598x5[_0xff99[119]]/ 2;_0xf598x5[_0xff99[236]]+= _0xf598x5[_0xff99[119]]/ 2- _0xf598x5[_0xff99[117]]/ 2;var _0xf598x13=_0xf598x5[_0xff99[117]];_0xf598x5[_0xff99[117]]= _0xf598x5[_0xff99[119]];_0xf598x5[_0xff99[119]]= _0xf598x13};if(null!= _0xf598x3[_0xff99[2546]]){var _0xf598x14=_0xf598x4= 1,_0xf598x15=0,_0xf598x16=0;if(this[_0xff99[502]]()[_0xff99[1193]](_0xf598x2[_0xff99[246]])){var _0xf598x17=_0xf598x2[_0xff99[124]][mxConstants[_0xff99[2547]]],_0xf598x18=_0xf598x2[_0xff99[124]][mxConstants[_0xff99[2548]]];null!= _0xf598x2[_0xff99[253]][_0xff99[1561]]&& (_0xf598x17= 1== mxUtils[_0xff99[433]](_0xf598x2[_0xff99[124]],_0xff99[1607],0)|| _0xf598x17,_0xf598x18= 1== mxUtils[_0xff99[433]](_0xf598x2[_0xff99[124]],_0xff99[1608],0)|| _0xf598x18);if(_0xff99[700]== _0xf598xa|| _0xff99[701]== _0xf598xa){_0xf598x13= _0xf598x17,_0xf598x17= _0xf598x18,_0xf598x18= _0xf598x13};_0xf598x17&& (_0xf598x4= -1,_0xf598x15= -_0xf598x5[_0xff99[117]]);_0xf598x18&& (_0xf598x14= -1,_0xf598x16= -_0xf598x5[_0xff99[119]])};_0xf598x4= new mxPoint(_0xf598x5[_0xff99[235]]+ _0xf598x3[_0xff99[2546]][_0xff99[235]]* _0xf598x5[_0xff99[117]]* _0xf598x4- _0xf598x15,_0xf598x5[_0xff99[236]]+ _0xf598x3[_0xff99[2546]][_0xff99[236]]* _0xf598x5[_0xff99[119]]* _0xf598x14- _0xf598x16)};_0xf598xa= _0xf598x2[_0xff99[124]][mxConstants[_0xff99[2278]]]|| 0;_0xf598x3[_0xff99[591]]?(0!= _0xf598x12&& null!= _0xf598x4&& (_0xf598x13= _0xf598x5= 0,90== _0xf598x12?_0xf598x13= 1:180== _0xf598x12?_0xf598x5= -1:270== _0xf598xa&& (_0xf598x13= -1),_0xf598x4= mxUtils[_0xff99[432]](_0xf598x4,_0xf598x5,_0xf598x13,_0xf598x9)),null!= _0xf598x4&& _0xf598x3[_0xff99[591]]&& (_0xf598x4= this[_0xff99[441]][_0xff99[2302]](_0xf598x2,_0xf598x4,!1))):_0xf598xa+= _0xf598x12;0!= _0xf598xa&& null!= _0xf598x4&& (_0xf598x12= mxUtils[_0xff99[431]](_0xf598xa),_0xf598x5= Math[_0xff99[426]](_0xf598x12),_0xf598x13= Math[_0xff99[427]](_0xf598x12),_0xf598x4= mxUtils[_0xff99[432]](_0xf598x4,_0xf598x5,_0xf598x13,_0xf598x9))};return _0xf598x4};mxGraph[_0xff99[202]][_0xff99[851]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){this[_0xff99[251]][_0xff99[473]]();try{var _0xf598x9=this[_0xff99[251]][_0xff99[1709]](_0xf598x2,_0xf598x4);this[_0xff99[852]](_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5);this[_0xff99[746]]( new mxEventObject(mxEvent.CONNECT_CELL,_0xff99[1989],_0xf598x2,_0xff99[1984],_0xf598x3,_0xff99[1097],_0xf598x4,_0xff99[257],_0xf598x9))}finally{this[_0xff99[251]][_0xff99[476]]()};return _0xf598x2};mxGraph[_0xff99[202]][_0xff99[852]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){if(null!= _0xf598x2){this[_0xff99[251]][_0xff99[473]]();try{var _0xf598x9=this[_0xff99[251]][_0xff99[1709]](_0xf598x2,_0xf598x4);this[_0xff99[2545]](_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5);this[_0xff99[2549]]()&& (_0xf598x5= null,this[_0xff99[1908]](_0xf598x3)&& (_0xf598x5= _0xf598x3[_0xff99[1103]](),_0xf598x3= this[_0xff99[2550]](_0xf598x3,_0xf598x4)),this[_0xff99[1717]](_0xf598x4?mxConstants[_0xff99[2303]]:mxConstants[_0xff99[2304]],_0xf598x5,[_0xf598x2]));this[_0xff99[251]][_0xff99[1957]](_0xf598x2,_0xf598x3,_0xf598x4);this[_0xff99[2401]]&& this[_0xff99[1809]](_0xf598x2);this[_0xff99[746]]( new mxEventObject(mxEvent.CELL_CONNECTED,_0xff99[1989],_0xf598x2,_0xff99[1984],_0xf598x3,_0xff99[1097],_0xf598x4,_0xff99[257],_0xf598x9))}finally{this[_0xff99[251]][_0xff99[476]]()}}};mxGraph[_0xff99[202]][_0xff99[2531]]= function(_0xf598x2){if(null!= _0xf598x2){this[_0xff99[251]][_0xff99[473]]();try{for(var _0xf598x3=this[_0xff99[441]][_0xff99[255]],_0xf598x4=this[_0xff99[441]][_0xff99[513]],_0xf598x5={},_0xf598x9=0;_0xf598x9< _0xf598x2[_0xff99[67]];_0xf598x9++){var _0xf598xa=mxCellPath[_0xff99[385]](_0xf598x2[_0xf598x9]);_0xf598x5[_0xf598xa]= _0xf598x2[_0xf598x9]};for(_0xf598x9= 0;_0xf598x9< _0xf598x2[_0xff99[67]];_0xf598x9++){if(this[_0xff99[251]][_0xff99[250]](_0xf598x2[_0xf598x9])){var _0xf598x12=this[_0xff99[251]][_0xff99[1721]](_0xf598x2[_0xf598x9]);if(null!= _0xf598x12){var _0xf598x13=this[_0xff99[441]][_0xff99[248]](_0xf598x2[_0xf598x9]),_0xf598x14=this[_0xff99[441]][_0xff99[248]](this[_0xff99[251]][_0xff99[1197]](_0xf598x2[_0xf598x9]));if(null!= _0xf598x13&& null!= _0xf598x14){var _0xf598x12=_0xf598x12[_0xff99[238]](),_0xf598x15=-_0xf598x14[_0xff99[2078]][_0xff99[235]],_0xf598x16=-_0xf598x14[_0xff99[2078]][_0xff99[236]],_0xf598x17=_0xf598x13[_0xff99[439]],_0xf598x18=this[_0xff99[251]][_0xff99[1709]](_0xf598x2[_0xf598x9],!0);if(null!= _0xf598x18&& this[_0xff99[2551]](_0xf598x2[_0xf598x9],_0xf598x18,!0)){for(var _0xf598x19=mxCellPath[_0xff99[385]](_0xf598x18);null!= _0xf598x18&& null== _0xf598x5[_0xf598x19];){_0xf598x18= this[_0xff99[251]][_0xff99[1197]](_0xf598x18),_0xf598x19= mxCellPath[_0xff99[385]](_0xf598x18)};null== _0xf598x18&& (_0xf598x12[_0xff99[2007]]( new mxPoint(_0xf598x17[0][_0xff99[235]]/ _0xf598x3- _0xf598x4[_0xff99[235]]+ _0xf598x15,_0xf598x17[0][_0xff99[236]]/ _0xf598x3- _0xf598x4[_0xff99[236]]+ _0xf598x16),!0),this[_0xff99[251]][_0xff99[1957]](_0xf598x2[_0xf598x9],null,!0))};var _0xf598x1a=this[_0xff99[251]][_0xff99[1709]](_0xf598x2[_0xf598x9],!1);if(null!= _0xf598x1a&& this[_0xff99[2551]](_0xf598x2[_0xf598x9],_0xf598x1a,!1)){for(var _0xf598x1b=mxCellPath[_0xff99[385]](_0xf598x1a);null!= _0xf598x1a&& null== _0xf598x5[_0xf598x1b];){_0xf598x1a= this[_0xff99[251]][_0xff99[1197]](_0xf598x1a),_0xf598x1b= mxCellPath[_0xff99[385]](_0xf598x1a)};if(null== _0xf598x1a){var _0xf598x1c=_0xf598x17[_0xff99[67]]- 1;_0xf598x12[_0xff99[2007]]( new mxPoint(_0xf598x17[_0xf598x1c][_0xff99[235]]/ _0xf598x3- _0xf598x4[_0xff99[235]]+ _0xf598x15,_0xf598x17[_0xf598x1c][_0xff99[236]]/ _0xf598x3- _0xf598x4[_0xff99[236]]+ _0xf598x16),!1);this[_0xff99[251]][_0xff99[1957]](_0xf598x2[_0xf598x9],null,!1)}};this[_0xff99[251]][_0xff99[1724]](_0xf598x2[_0xf598x9],_0xf598x12)}}}}}finally{this[_0xff99[251]][_0xff99[476]]()}}};mxGraph[_0xff99[202]][_0xff99[2534]]= function(){return this[_0xff99[441]][_0xff99[1741]]};mxGraph[_0xff99[202]][_0xff99[2326]]= function(_0xf598x2){return null};mxGraph[_0xff99[202]][_0xff99[1908]]= function(_0xf598x2){return !1};mxGraph[_0xff99[202]][_0xff99[2550]]= function(_0xf598x2,_0xf598x3){return this[_0xff99[251]][_0xff99[1197]](_0xf598x2)};mxGraph[_0xff99[202]][_0xff99[2280]]= function(_0xf598x2){return null};mxGraph[_0xff99[202]][_0xff99[2552]]= function(_0xf598x2){_0xf598x2= _0xf598x2|| this[_0xff99[2452]]();null!= _0xf598x2&& this[_0xff99[2553]](_0xf598x2)&& (this[_0xff99[441]][_0xff99[2257]](_0xf598x2),this[_0xff99[2440]]())};mxGraph[_0xff99[202]][_0xff99[2554]]= function(){var _0xf598x2=this[_0xff99[251]][_0xff99[501]](),_0xf598x3=this[_0xff99[2534]]();if(null!= _0xf598x3){for(var _0xf598x4=this[_0xff99[251]][_0xff99[1197]](_0xf598x3);_0xf598x4!= _0xf598x2&& !this[_0xff99[2553]](_0xf598x4)&& this[_0xff99[251]][_0xff99[1197]](_0xf598x4)!= _0xf598x2;){_0xf598x4= this[_0xff99[251]][_0xff99[1197]](_0xf598x4)};_0xf598x4== _0xf598x2|| this[_0xff99[251]][_0xff99[1197]](_0xf598x4)== _0xf598x2?this[_0xff99[441]][_0xff99[2257]](null):this[_0xff99[441]][_0xff99[2257]](_0xf598x4);null!= this[_0xff99[441]][_0xff99[248]](_0xf598x3)&& this[_0xff99[2450]](_0xf598x3)}};mxGraph[_0xff99[202]][_0xff99[2442]]= function(){var _0xf598x2=this[_0xff99[2534]]();null!= _0xf598x2&& (this[_0xff99[441]][_0xff99[2257]](null),null!= this[_0xff99[441]][_0xff99[248]](_0xf598x2)&& this[_0xff99[2450]](_0xf598x2))};mxGraph[_0xff99[202]][_0xff99[2553]]= function(_0xf598x2){return null!= _0xf598x2};mxGraph[_0xff99[202]][_0xff99[517]]= function(){return this[_0xff99[441]][_0xff99[517]]()};mxGraph[_0xff99[202]][_0xff99[2555]]= function(_0xf598x2,_0xf598x3,_0xf598x4){var _0xf598x5=[_0xf598x2];_0xf598x3&& (_0xf598x5= _0xf598x5[_0xff99[1919]](this[_0xff99[251]][_0xff99[264]](_0xf598x2)));_0xf598x5= this[_0xff99[441]][_0xff99[1799]](_0xf598x5);if(_0xf598x4){_0xf598x4= this[_0xff99[251]][_0xff99[262]](_0xf598x2);for(var _0xf598x9=0;_0xf598x9< _0xf598x4;_0xf598x9++){var _0xf598xa=this[_0xff99[2555]](this[_0xff99[251]][_0xff99[263]](_0xf598x2,_0xf598x9),_0xf598x3,!0);null!= _0xf598x5?_0xf598x5[_0xff99[99]](_0xf598xa):_0xf598x5= _0xf598xa}};return _0xf598x5};mxGraph[_0xff99[202]][_0xff99[1729]]= function(_0xf598x2,_0xf598x3){_0xf598x3= null!= _0xf598x3?_0xf598x3:!1;var _0xf598x4=null;if(null!= _0xf598x2){for(var _0xf598x5=0;_0xf598x5< _0xf598x2[_0xff99[67]];_0xf598x5++){if(_0xf598x3|| this[_0xff99[251]][_0xff99[1193]](_0xf598x2[_0xf598x5])){var _0xf598x9=this[_0xff99[1198]](_0xf598x2[_0xf598x5]);if(null!= _0xf598x9){var _0xf598xa=_0xf598x9[_0xff99[1525]];if(null!= _0xf598xa&& 0< _0xf598xa[_0xff99[67]]){for(var _0xf598x12= new mxRectangle(_0xf598xa[0][_0xff99[235]],_0xf598xa[0][_0xff99[236]],0,0),_0xf598x13=function(_0xf598x2){null!= _0xf598x2&& _0xf598x12[_0xff99[99]]( new mxRectangle(_0xf598x2[_0xff99[235]],_0xf598x2[_0xff99[236]],0,0))},_0xf598x14=1;_0xf598x14< _0xf598xa[_0xff99[67]];_0xf598x14++){_0xf598x13(_0xf598xa[_0xf598x14])};_0xf598x13(_0xf598x9[_0xff99[2006]](!0));_0xf598x13(_0xf598x9[_0xff99[2006]](!1))};null== _0xf598x4?_0xf598x4= new mxRectangle(_0xf598x9[_0xff99[235]],_0xf598x9[_0xff99[236]],_0xf598x9[_0xff99[117]],_0xf598x9[_0xff99[119]]):_0xf598x4[_0xff99[99]](_0xf598x9)}}}};return _0xf598x4};mxGraph[_0xff99[202]][_0xff99[802]]= function(_0xf598x2){this[_0xff99[441]][_0xff99[200]](_0xf598x2,null== _0xf598x2);this[_0xff99[441]][_0xff99[2264]]();this[_0xff99[2258]]();this[_0xff99[746]]( new mxEventObject(mxEvent.REFRESH))};mxGraph[_0xff99[202]][_0xff99[1021]]= function(_0xf598x2){this[_0xff99[991]]&& (_0xf598x2= Math[_0xff99[488]](_0xf598x2/ this[_0xff99[1020]])* this[_0xff99[1020]]);return _0xf598x2};mxGraph[_0xff99[202]][_0xff99[1135]]= function(_0xf598x2,_0xf598x3){if(this[_0xff99[2365]]&& mxUtils[_0xff99[1134]](this[_0xff99[526]])){this[_0xff99[526]][_0xff99[360]]= -_0xf598x2,this[_0xff99[526]][_0xff99[190]]= -_0xf598x3}else {var _0xf598x4=this[_0xff99[441]][_0xff99[2051]]();if(this[_0xff99[507]]== mxConstants[_0xff99[508]]){if(0== _0xf598x2&& 0== _0xf598x3){if(mxClient[_0xff99[80]]?_0xf598x4[_0xff99[57]](_0xff99[535],_0xff99[536]+ _0xf598x2+ _0xff99[537]+ _0xf598x3+ _0xff99[460]):_0xf598x4[_0xff99[1390]](_0xff99[535]),null!= this[_0xff99[2556]]){for(var _0xf598x5=this[_0xff99[2556]][_0xff99[285]];null!= _0xf598x5;){var _0xf598x9=_0xf598x5[_0xff99[287]];this[_0xff99[526]][_0xff99[62]](_0xf598x5);_0xf598x5= _0xf598x9};this[_0xff99[2556]][_0xff99[265]][_0xff99[266]](this[_0xff99[2556]]);this[_0xff99[2556]]= null;this[_0xff99[526]][_0xff99[62]](_0xf598x4[_0xff99[265]]);for(_0xf598x5= this[_0xff99[2557]][_0xff99[285]];null!= _0xf598x5;){_0xf598x9= _0xf598x5[_0xff99[287]],this[_0xff99[526]][_0xff99[62]](_0xf598x5),_0xf598x5= _0xf598x9};this[_0xff99[2557]][_0xff99[265]][_0xff99[266]](this[_0xff99[2557]]);this[_0xff99[2557]]= null}}else {_0xf598x4[_0xff99[57]](_0xff99[535],_0xff99[536]+ _0xf598x2+ _0xff99[537]+ _0xf598x3+ _0xff99[460]);if(null== this[_0xff99[2556]]){this[_0xff99[2556]]= document[_0xff99[55]](_0xff99[485]);this[_0xff99[2556]][_0xff99[124]][_0xff99[491]]= _0xff99[492];this[_0xff99[2556]][_0xff99[124]][_0xff99[277]]= _0xff99[189];this[_0xff99[2557]]= document[_0xff99[55]](_0xff99[485]);this[_0xff99[2557]][_0xff99[124]][_0xff99[491]]= _0xff99[492];this[_0xff99[2557]][_0xff99[124]][_0xff99[277]]= _0xff99[189];for(var _0xf598xa=this[_0xff99[2556]],_0xf598x5=this[_0xff99[526]][_0xff99[285]];null!= _0xf598x5;){_0xf598x9= _0xf598x5[_0xff99[287]],_0xf598x5!= _0xf598x4[_0xff99[265]]?_0xf598xa[_0xff99[62]](_0xf598x5):_0xf598xa= this[_0xff99[2557]],_0xf598x5= _0xf598x9};this[_0xff99[526]][_0xff99[950]](this[_0xff99[2556]],_0xf598x4[_0xff99[265]]);this[_0xff99[526]][_0xff99[62]](this[_0xff99[2557]])};this[_0xff99[2556]][_0xff99[124]][_0xff99[361]]= _0xf598x2+ _0xff99[168];this[_0xff99[2556]][_0xff99[124]][_0xff99[125]]= _0xf598x3+ _0xff99[168];this[_0xff99[2557]][_0xff99[124]][_0xff99[361]]= _0xf598x2+ _0xff99[168];this[_0xff99[2557]][_0xff99[124]][_0xff99[125]]= _0xf598x3+ _0xff99[168]}}else {_0xf598x4[_0xff99[124]][_0xff99[361]]= _0xf598x2+ _0xff99[168],_0xf598x4[_0xff99[124]][_0xff99[125]]= _0xf598x3+ _0xff99[168]};this[_0xff99[1136]]= _0xf598x2;this[_0xff99[1137]]= _0xf598x3;this[_0xff99[746]]( new mxEventObject(mxEvent.PAN))}};mxGraph[_0xff99[202]][_0xff99[2558]]= function(){this[_0xff99[499]](this[_0xff99[2395]])};mxGraph[_0xff99[202]][_0xff99[2559]]= function(){this[_0xff99[499]](1/ this[_0xff99[2395]])};mxGraph[_0xff99[202]][_0xff99[2560]]= function(){1== this[_0xff99[441]][_0xff99[255]]?this[_0xff99[441]][_0xff99[1147]](0,0):(this[_0xff99[441]][_0xff99[513]][_0xff99[235]]= 0,this[_0xff99[441]][_0xff99[513]][_0xff99[236]]= 0,this[_0xff99[441]][_0xff99[2262]](1))};mxGraph[_0xff99[202]][_0xff99[2561]]= function(_0xf598x2,_0xf598x3){this[_0xff99[499]](_0xf598x2/ this[_0xff99[441]][_0xff99[255]],_0xf598x3)};mxGraph[_0xff99[202]][_0xff99[499]]= function(_0xf598x2,_0xf598x3){_0xf598x3= null!= _0xf598x3?_0xf598x3:this[_0xff99[2397]];var _0xf598x4=this[_0xff99[441]][_0xff99[255]]* _0xf598x2,_0xf598x5=this[_0xff99[441]][_0xff99[248]](this[_0xff99[2452]]());if(this[_0xff99[2396]]&& null!= _0xf598x5){_0xf598x5= new mxRectangle(_0xf598x5[_0xff99[235]]* _0xf598x2,_0xf598x5[_0xff99[236]]* _0xf598x2,_0xf598x5[_0xff99[117]]* _0xf598x2,_0xf598x5[_0xff99[119]]* _0xf598x2),this[_0xff99[441]][_0xff99[255]]= _0xf598x4,this[_0xff99[2562]](_0xf598x5)|| (this[_0xff99[441]][_0xff99[2259]](),this[_0xff99[441]][_0xff99[2262]](_0xf598x4))}else {if(_0xf598x3&& !mxUtils[_0xff99[1134]](this[_0xff99[526]])){var _0xf598x5=this[_0xff99[526]][_0xff99[359]],_0xf598x9=this[_0xff99[526]][_0xff99[167]];if(1< _0xf598x2){var _0xf598xa=(_0xf598x2- 1)/ (2* _0xf598x4),_0xf598x5=_0xf598x5* -_0xf598xa,_0xf598x9=_0xf598x9* -_0xf598xa}else {_0xf598xa= (1/ _0xf598x2- 1)/ (2* this[_0xff99[441]][_0xff99[255]]),_0xf598x5*= _0xf598xa,_0xf598x9*= _0xf598xa};this[_0xff99[441]][_0xff99[829]](_0xf598x4,this[_0xff99[441]][_0xff99[513]][_0xff99[235]]+ _0xf598x5,this[_0xff99[441]][_0xff99[513]][_0xff99[236]]+ _0xf598x9)}else {this[_0xff99[441]][_0xff99[2262]](_0xf598x4),mxUtils[_0xff99[1134]](this[_0xff99[526]])&& (_0xf598x9= _0xf598x5= 0,_0xf598x3&& (_0xf598x5= this[_0xff99[526]][_0xff99[359]]* (_0xf598x2- 1)/ 2,_0xf598x9= this[_0xff99[526]][_0xff99[167]]* (_0xf598x2- 1)/ 2),this[_0xff99[526]][_0xff99[360]]= Math[_0xff99[488]](this[_0xff99[526]][_0xff99[360]]* _0xf598x2+ _0xf598x5),this[_0xff99[526]][_0xff99[190]]= Math[_0xff99[488]](this[_0xff99[526]][_0xff99[190]]* _0xf598x2+ _0xf598x9))}}};mxGraph[_0xff99[202]][_0xff99[2563]]= function(_0xf598x2){var _0xf598x3=this[_0xff99[526]][_0xff99[159]]/ _0xf598x2[_0xff99[117]]/ (this[_0xff99[526]][_0xff99[157]]/ _0xf598x2[_0xff99[119]]);_0xf598x2[_0xff99[235]]= Math[_0xff99[160]](0,_0xf598x2[_0xff99[235]]);_0xf598x2[_0xff99[236]]= Math[_0xff99[160]](0,_0xf598x2[_0xff99[236]]);var _0xf598x4=Math[_0xff99[243]](this[_0xff99[526]][_0xff99[1526]],_0xf598x2[_0xff99[235]]+ _0xf598x2[_0xff99[117]]),_0xf598x5=Math[_0xff99[243]](this[_0xff99[526]][_0xff99[191]],_0xf598x2[_0xff99[236]]+ _0xf598x2[_0xff99[119]]);_0xf598x2[_0xff99[117]]= _0xf598x4- _0xf598x2[_0xff99[235]];_0xf598x2[_0xff99[119]]= _0xf598x5- _0xf598x2[_0xff99[236]];1> _0xf598x3?(_0xf598x3= _0xf598x2[_0xff99[119]]/ _0xf598x3,_0xf598x4= (_0xf598x3- _0xf598x2[_0xff99[119]])/ 2,_0xf598x2[_0xff99[119]]= _0xf598x3,_0xf598x3= Math[_0xff99[243]](_0xf598x2[_0xff99[236]],_0xf598x4),_0xf598x2[_0xff99[236]]-= _0xf598x3,_0xf598x5= Math[_0xff99[243]](this[_0xff99[526]][_0xff99[191]],_0xf598x2[_0xff99[236]]+ _0xf598x2[_0xff99[119]]),_0xf598x2[_0xff99[119]]= _0xf598x5- _0xf598x2[_0xff99[236]]):(_0xf598x3*= _0xf598x2[_0xff99[117]],_0xf598x4= (_0xf598x3- _0xf598x2[_0xff99[117]])/ 2,_0xf598x2[_0xff99[117]]= _0xf598x3,_0xf598x3= Math[_0xff99[243]](_0xf598x2[_0xff99[235]],_0xf598x4),_0xf598x2[_0xff99[235]]-= _0xf598x3,_0xf598x4= Math[_0xff99[243]](this[_0xff99[526]][_0xff99[1526]],_0xf598x2[_0xff99[235]]+ _0xf598x2[_0xff99[117]]),_0xf598x2[_0xff99[117]]= _0xf598x4- _0xf598x2[_0xff99[235]]);_0xf598x3= this[_0xff99[526]][_0xff99[159]]/ _0xf598x2[_0xff99[117]];_0xf598x4= this[_0xff99[441]][_0xff99[255]]* _0xf598x3;mxUtils[_0xff99[1134]](this[_0xff99[526]])?(this[_0xff99[441]][_0xff99[2262]](_0xf598x4),this[_0xff99[526]][_0xff99[360]]= Math[_0xff99[488]](_0xf598x2[_0xff99[235]]* _0xf598x3),this[_0xff99[526]][_0xff99[190]]= Math[_0xff99[488]](_0xf598x2[_0xff99[236]]* _0xf598x3)):this[_0xff99[441]][_0xff99[829]](_0xf598x4,this[_0xff99[441]][_0xff99[513]][_0xff99[235]]- _0xf598x2[_0xff99[235]]/ this[_0xff99[441]][_0xff99[255]],this[_0xff99[441]][_0xff99[513]][_0xff99[236]]- _0xf598x2[_0xff99[236]]/ this[_0xff99[441]][_0xff99[255]])};mxGraph[_0xff99[202]][_0xff99[933]]= function(_0xf598x2,_0xf598x3){if(null!= this[_0xff99[526]]){_0xf598x2= null!= _0xf598x2?_0xf598x2:0;_0xf598x3= null!= _0xf598x3?_0xf598x3:!1;var _0xf598x4=this[_0xff99[526]][_0xff99[159]],_0xf598x5=this[_0xff99[526]][_0xff99[157]],_0xf598x9=this[_0xff99[441]][_0xff99[517]]();_0xf598x3&& (null!= _0xf598x9[_0xff99[235]]&& null!= _0xf598x9[_0xff99[236]])&& (_0xf598x9[_0xff99[117]]+= _0xf598x9[_0xff99[235]],_0xf598x9[_0xff99[119]]+= _0xf598x9[_0xff99[236]],_0xf598x9[_0xff99[235]]= 0,_0xf598x9[_0xff99[236]]= 0);var _0xf598xa=this[_0xff99[441]][_0xff99[255]],_0xf598x12=_0xf598x9[_0xff99[117]]/ _0xf598xa,_0xf598x13=_0xf598x9[_0xff99[119]]/ _0xf598xa;null!= this[_0xff99[1617]]&& (_0xf598x12= Math[_0xff99[160]](_0xf598x12,this[_0xff99[1617]][_0xff99[117]]- _0xf598x9[_0xff99[235]]/ _0xf598xa),_0xf598x13= Math[_0xff99[160]](_0xf598x13,this[_0xff99[1617]][_0xff99[119]]- _0xf598x9[_0xff99[236]]/ _0xf598xa));var _0xf598x14=_0xf598x3?_0xf598x2:2* _0xf598x2,_0xf598x4=Math[_0xff99[519]](100* Math[_0xff99[243]](_0xf598x4/ (_0xf598x12+ _0xf598x14),_0xf598x5/ (_0xf598x13+ _0xf598x14)))/ 100;null!= this[_0xff99[2413]]&& (_0xf598x4= Math[_0xff99[160]](_0xf598x4,this[_0xff99[2413]]));null!= this[_0xff99[2414]]&& (_0xf598x4= Math[_0xff99[243]](_0xf598x4,this[_0xff99[2414]]));_0xf598x3?this[_0xff99[441]][_0xff99[255]]!= _0xf598x4&& this[_0xff99[441]][_0xff99[2262]](_0xf598x4):mxUtils[_0xff99[1134]](this[_0xff99[526]])?(this[_0xff99[441]][_0xff99[2262]](_0xf598x4),null!= _0xf598x9[_0xff99[235]]&& (this[_0xff99[526]][_0xff99[360]]= Math[_0xff99[488]](_0xf598x9[_0xff99[235]]/ _0xf598xa)* _0xf598x4- _0xf598x2- Math[_0xff99[160]](0,(this[_0xff99[526]][_0xff99[159]]- _0xf598x12* _0xf598x4)/ 2)),null!= _0xf598x9[_0xff99[236]]&& (this[_0xff99[526]][_0xff99[190]]= Math[_0xff99[488]](_0xf598x9[_0xff99[236]]/ _0xf598xa)* _0xf598x4- _0xf598x2- Math[_0xff99[160]](0,(this[_0xff99[526]][_0xff99[157]]- _0xf598x13* _0xf598x4)/ 2))):this[_0xff99[441]][_0xff99[829]](_0xf598x4,null!= _0xf598x9[_0xff99[235]]?Math[_0xff99[519]](this[_0xff99[441]][_0xff99[513]][_0xff99[235]]- _0xf598x9[_0xff99[235]]/ _0xf598xa+ _0xf598x2+ 1):_0xf598x2,null!= _0xf598x9[_0xff99[236]]?Math[_0xff99[519]](this[_0xff99[441]][_0xff99[513]][_0xff99[236]]- _0xf598x9[_0xff99[236]]/ _0xf598xa+ _0xf598x2+ 1):_0xf598x2)};return this[_0xff99[441]][_0xff99[255]]};mxGraph[_0xff99[202]][_0xff99[2564]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=-this[_0xff99[441]][_0xff99[513]][_0xff99[235]],_0xf598x5=-this[_0xff99[441]][_0xff99[513]][_0xff99[236]],_0xf598x9=this[_0xff99[441]][_0xff99[248]](_0xf598x2);null!= _0xf598x9&& (_0xf598x4= new mxRectangle(_0xf598x4+ _0xf598x9[_0xff99[235]],_0xf598x5+ _0xf598x9[_0xff99[236]],_0xf598x9[_0xff99[117]],_0xf598x9[_0xff99[119]]),_0xf598x3&& null!= this[_0xff99[526]]&& (_0xf598x5= this[_0xff99[526]][_0xff99[159]],_0xf598x9= this[_0xff99[526]][_0xff99[157]],_0xf598x4[_0xff99[235]]= _0xf598x4[_0xff99[241]]()- _0xf598x5/ 2,_0xf598x4[_0xff99[117]]= _0xf598x5,_0xf598x4[_0xff99[236]]= _0xf598x4[_0xff99[242]]()- _0xf598x9/ 2,_0xf598x4[_0xff99[119]]= _0xf598x9),this[_0xff99[2562]](_0xf598x4)&& this[_0xff99[441]][_0xff99[1147]](this[_0xff99[441]][_0xff99[513]][_0xff99[235]],this[_0xff99[441]][_0xff99[513]][_0xff99[236]]))};mxGraph[_0xff99[202]][_0xff99[2562]]= function(_0xf598x2){var _0xf598x3=!1;if(null!= _0xf598x2){var _0xf598x4=this[_0xff99[526]][_0xff99[359]],_0xf598x5=this[_0xff99[526]][_0xff99[167]],_0xf598x9=Math[_0xff99[243]](_0xf598x4,_0xf598x2[_0xff99[117]]),_0xf598xa=Math[_0xff99[243]](_0xf598x5,_0xf598x2[_0xff99[119]]);if(mxUtils[_0xff99[1134]](this[_0xff99[526]])){_0xf598x4= this[_0xff99[526]];_0xf598x2[_0xff99[235]]+= this[_0xff99[441]][_0xff99[513]][_0xff99[235]];_0xf598x2[_0xff99[236]]+= this[_0xff99[441]][_0xff99[513]][_0xff99[236]];var _0xf598x12=_0xf598x4[_0xff99[360]]- _0xf598x2[_0xff99[235]],_0xf598x5=Math[_0xff99[160]](_0xf598x12- _0xf598x4[_0xff99[360]],0);0< _0xf598x12?_0xf598x4[_0xff99[360]]-= _0xf598x12+ 2:(_0xf598x12= _0xf598x2[_0xff99[235]]+ _0xf598x9- _0xf598x4[_0xff99[360]]- _0xf598x4[_0xff99[159]],0< _0xf598x12&& (_0xf598x4[_0xff99[360]]+= _0xf598x12+ 2));_0xf598x9= _0xf598x4[_0xff99[190]]- _0xf598x2[_0xff99[236]];_0xf598x12= Math[_0xff99[160]](0,_0xf598x9- _0xf598x4[_0xff99[190]]);0< _0xf598x9?_0xf598x4[_0xff99[190]]-= _0xf598x9+ 2:(_0xf598x9= _0xf598x2[_0xff99[236]]+ _0xf598xa- _0xf598x4[_0xff99[190]]- _0xf598x4[_0xff99[157]],0< _0xf598x9&& (_0xf598x4[_0xff99[190]]+= _0xf598x9+ 2));!this[_0xff99[2365]]&& (0!= _0xf598x5|| 0!= _0xf598x12) && this[_0xff99[441]][_0xff99[1147]](_0xf598x5,_0xf598x12)}else {var _0xf598x12=-this[_0xff99[441]][_0xff99[513]][_0xff99[235]],_0xf598x13=-this[_0xff99[441]][_0xff99[513]][_0xff99[236]],_0xf598x14=this[_0xff99[441]][_0xff99[255]];_0xf598x2[_0xff99[235]]+ _0xf598x9> _0xf598x12+ _0xf598x4&& (this[_0xff99[441]][_0xff99[513]][_0xff99[235]]-= (_0xf598x2[_0xff99[235]]+ _0xf598x9- _0xf598x4- _0xf598x12)/ _0xf598x14,_0xf598x3= !0);_0xf598x2[_0xff99[236]]+ _0xf598xa> _0xf598x13+ _0xf598x5&& (this[_0xff99[441]][_0xff99[513]][_0xff99[236]]-= (_0xf598x2[_0xff99[236]]+ _0xf598xa- _0xf598x5- _0xf598x13)/ _0xf598x14,_0xf598x3= !0);_0xf598x2[_0xff99[235]]< _0xf598x12&& (this[_0xff99[441]][_0xff99[513]][_0xff99[235]]+= (_0xf598x12- _0xf598x2[_0xff99[235]])/ _0xf598x14,_0xf598x3= !0);_0xf598x2[_0xff99[236]]< _0xf598x13&& (this[_0xff99[441]][_0xff99[513]][_0xff99[236]]+= (_0xf598x13- _0xf598x2[_0xff99[236]])/ _0xf598x14,_0xf598x3= !0);_0xf598x3&& (this[_0xff99[441]][_0xff99[802]](),null!= this[_0xff99[2432]]&& this[_0xff99[2432]][_0xff99[802]]())}};return _0xf598x3};mxGraph[_0xff99[202]][_0xff99[1198]]= function(_0xf598x2){return this[_0xff99[251]][_0xff99[1721]](_0xf598x2)};mxGraph[_0xff99[202]][_0xff99[1714]]= function(_0xf598x2){return this[_0xff99[251]][_0xff99[174]](_0xf598x2)};mxGraph[_0xff99[202]][_0xff99[1742]]= function(_0xf598x2){return this[_0xff99[251]][_0xff99[1971]](_0xf598x2)};mxGraph[_0xff99[202]][_0xff99[2565]]= function(_0xf598x2){return this[_0xff99[251]][_0xff99[1965]](_0xf598x2)};mxGraph[_0xff99[202]][_0xff99[2298]]= function(_0xf598x2){var _0xf598x3=_0xf598x2[_0xff99[124]][mxConstants[_0xff99[2566]]];if(null!= _0xf598x3){return _0xf598x3};_0xf598x2= this[_0xff99[441]][_0xff99[2291]](_0xf598x2);return _0xf598x2== mxEdgeStyle[_0xff99[2567]]|| _0xf598x2== mxEdgeStyle[_0xff99[2568]]|| _0xf598x2== mxEdgeStyle[_0xff99[2569]]|| _0xf598x2== mxEdgeStyle[_0xff99[2570]]|| _0xf598x2== mxEdgeStyle[_0xff99[2571]]|| _0xf598x2== mxEdgeStyle[_0xff99[2572]]};mxGraph[_0xff99[202]][_0xff99[2573]]= function(_0xf598x2){var _0xf598x3=_0xf598x2[_0xff99[2089]](!0);_0xf598x2= _0xf598x2[_0xff99[2089]](!1);return null!= _0xf598x3&& _0xf598x3== _0xf598x2};mxGraph[_0xff99[202]][_0xff99[2574]]= function(_0xf598x2){return mxEvent[_0xff99[775]](_0xf598x2)};mxGraph[_0xff99[202]][_0xff99[2462]]= function(_0xf598x2){return mxClient[_0xff99[2575]]?mxEvent[_0xff99[2576]](_0xf598x2):mxEvent[_0xff99[775]](_0xf598x2)};mxGraph[_0xff99[202]][_0xff99[1018]]= function(_0xf598x2){return null!= _0xf598x2&& !mxEvent[_0xff99[2577]](_0xf598x2)};mxGraph[_0xff99[202]][_0xff99[2578]]= function(_0xf598x2){return mxEvent[_0xff99[774]](_0xf598x2)};mxGraph[_0xff99[202]][_0xff99[2579]]= function(_0xf598x2){return mxEvent[_0xff99[2577]](_0xf598x2)};mxGraph[_0xff99[202]][_0xff99[2580]]= function(_0xf598x2){mxUtils[_0xff99[150]](_0xf598x2)};mxGraph[_0xff99[202]][_0xff99[2581]]= function(_0xf598x2,_0xf598x3,_0xf598x4){return null== this[_0xff99[2500]](_0xf598x2,_0xf598x3,_0xf598x4)};mxGraph[_0xff99[202]][_0xff99[2500]]= function(_0xf598x2,_0xf598x3,_0xf598x4){if(null!= _0xf598x2&& !this[_0xff99[2530]]()&& (null== _0xf598x3|| null== _0xf598x4)){return _0xff99[110]};if(null!= _0xf598x2&& null== this[_0xff99[251]][_0xff99[1709]](_0xf598x2,!0)&& null== this[_0xff99[251]][_0xff99[1709]](_0xf598x2,!1)){return null};if(!this[_0xff99[2402]]&& _0xf598x3== _0xf598x4&& null!= _0xf598x3 || !this[_0xff99[2582]](_0xf598x3,_0xf598x4)){return _0xff99[110]};if(null!= _0xf598x3&& null!= _0xf598x4){var _0xf598x5=_0xff99[110];if(!this[_0xff99[2404]]){var _0xf598x9=this[_0xff99[251]][_0xff99[1781]](_0xf598x3,_0xf598x4,!0);if(1< _0xf598x9[_0xff99[67]]|| 1== _0xf598x9[_0xff99[67]]&& _0xf598x9[0]!= _0xf598x2){_0xf598x5+= (mxResources[_0xff99[203]](this[_0xff99[2421]])|| this[_0xff99[2421]])+ _0xff99[192]}};var _0xf598x9=this[_0xff99[251]][_0xff99[1962]](_0xf598x3,!0,_0xf598x2),_0xf598xa=this[_0xff99[251]][_0xff99[1962]](_0xf598x4,!1,_0xf598x2);if(null!= this[_0xff99[2335]]){for(var _0xf598x12=0;_0xf598x12< this[_0xff99[2335]][_0xff99[67]];_0xf598x12++){var _0xf598x13=this[_0xff99[2335]][_0xf598x12][_0xff99[2583]](this,_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x9,_0xf598xa);null!= _0xf598x13&& (_0xf598x5+= _0xf598x13)}};_0xf598x13= this[_0xff99[2584]](_0xf598x2,_0xf598x3,_0xf598x4);null!= _0xf598x13&& (_0xf598x5+= _0xf598x13);return 0< _0xf598x5[_0xff99[67]]?_0xf598x5:null};return this[_0xff99[2406]]?null:_0xff99[110]};mxGraph[_0xff99[202]][_0xff99[2584]]= function(_0xf598x2,_0xf598x3,_0xf598x4){return null};mxGraph[_0xff99[202]][_0xff99[2585]]= function(_0xf598x2,_0xf598x3){_0xf598x2= null!= _0xf598x2?_0xf598x2:this[_0xff99[251]][_0xff99[501]]();_0xf598x3= null!= _0xf598x3?_0xf598x3:{};for(var _0xf598x4=!0,_0xf598x5=this[_0xff99[251]][_0xff99[262]](_0xf598x2),_0xf598x9=0;_0xf598x9< _0xf598x5;_0xf598x9++){var _0xf598xa=this[_0xff99[251]][_0xff99[263]](_0xf598x2,_0xf598x9),_0xf598x12=_0xf598x3;this[_0xff99[2553]](_0xf598xa)&& (_0xf598x12= {});_0xf598x12= this[_0xff99[2585]](_0xf598xa,_0xf598x12);null!= _0xf598x12?this[_0xff99[2447]](_0xf598xa,_0xf598x12[_0xff99[230]](/\n/g,_0xff99[545])):this[_0xff99[2447]](_0xf598xa,null);_0xf598x4= _0xf598x4&& null== _0xf598x12};_0xf598x5= _0xff99[110];this[_0xff99[1742]](_0xf598x2)&& !_0xf598x4&& (_0xf598x5+= (mxResources[_0xff99[203]](this[_0xff99[2423]])|| this[_0xff99[2423]])+ _0xff99[192]);_0xf598x5= this[_0xff99[251]][_0xff99[250]](_0xf598x2)?_0xf598x5+ (this[_0xff99[2500]](_0xf598x2,this[_0xff99[251]][_0xff99[1709]](_0xf598x2,!0),this[_0xff99[251]][_0xff99[1709]](_0xf598x2,!1))|| _0xff99[110]):_0xf598x5+ (this[_0xff99[2586]](_0xf598x2)|| _0xff99[110]);_0xf598x9= this[_0xff99[2587]](_0xf598x2,_0xf598x3);null!= _0xf598x9&& (_0xf598x5+= _0xf598x9);null== this[_0xff99[251]][_0xff99[1197]](_0xf598x2)&& this[_0xff99[441]][_0xff99[2264]]();return 0< _0xf598x5[_0xff99[67]]|| !_0xf598x4?_0xf598x5:null};mxGraph[_0xff99[202]][_0xff99[2586]]= function(_0xf598x2){var _0xf598x3=this[_0xff99[251]][_0xff99[1962]](_0xf598x2,!0),_0xf598x4=this[_0xff99[251]][_0xff99[1962]](_0xf598x2,!1);_0xf598x2= this[_0xff99[251]][_0xff99[433]](_0xf598x2);var _0xf598x5=_0xff99[110];if(null!= this[_0xff99[2335]]){for(var _0xf598x9=0;_0xf598x9< this[_0xff99[2335]][_0xff99[67]];_0xf598x9++){var _0xf598xa=this[_0xff99[2335]][_0xf598x9];if(_0xf598xa[_0xff99[1097]]&& mxUtils[_0xff99[1331]](_0xf598x2,_0xf598xa[_0xff99[60]],_0xf598xa[_0xff99[2588]],_0xf598xa[_0xff99[131]])&& (0== _0xf598xa[_0xff99[160]]&& 0< _0xf598x3|| 1== _0xf598xa[_0xff99[243]]&& 0== _0xf598x3|| 1== _0xf598xa[_0xff99[160]]&& 1< _0xf598x3)){_0xf598x5+= _0xf598xa[_0xff99[2589]]+ _0xff99[192]}else {if(!_0xf598xa[_0xff99[1097]]&& mxUtils[_0xff99[1331]](_0xf598x2,_0xf598xa[_0xff99[60]],_0xf598xa[_0xff99[2588]],_0xf598xa[_0xff99[131]]) && (0== _0xf598xa[_0xff99[160]]&& 0< _0xf598x4|| 1== _0xf598xa[_0xff99[243]]&& 0== _0xf598x4|| 1== _0xf598xa[_0xff99[160]]&& 1< _0xf598x4)){_0xf598x5+= _0xf598xa[_0xff99[2589]]+ _0xff99[192]}}}};return 0< _0xf598x5[_0xff99[67]]?_0xf598x5:null};mxGraph[_0xff99[202]][_0xff99[2587]]= function(_0xf598x2,_0xf598x3){return null};mxGraph[_0xff99[202]][_0xff99[2271]]= function(){return this[_0xff99[1617]]};mxGraph[_0xff99[202]][_0xff99[2590]]= function(_0xf598x2){this[_0xff99[1617]]= _0xf598x2};mxGraph[_0xff99[202]][_0xff99[2205]]= function(_0xf598x2){if(null!= _0xf598x2&& this[_0xff99[2206]]&& !this[_0xff99[502]]()[_0xff99[250]](_0xf598x2[_0xff99[246]])){var _0xf598x3=this[_0xff99[1742]](_0xf598x2[_0xff99[246]]);if(this[_0xff99[2516]](_0xf598x2[_0xff99[246]],!_0xf598x3)){return _0xf598x3?this[_0xff99[2415]]:this[_0xff99[2417]]}};return null};mxGraph[_0xff99[202]][_0xff99[2454]]= function(_0xf598x2){_0xf598x2= this[_0xff99[251]][_0xff99[433]](_0xf598x2);if(null!= _0xf598x2){if(mxUtils[_0xff99[1331]](_0xf598x2)){return _0xf598x2[_0xff99[301]]};if(_0xff99[279]== typeof _0xf598x2[_0xff99[2591]]){return _0xf598x2.toString()}};return _0xff99[110]};mxGraph[_0xff99[202]][_0xff99[2183]]= function(_0xf598x2){var _0xf598x3=_0xff99[110];if(this[_0xff99[2409]]&& null!= _0xf598x2){var _0xf598x4=this[_0xff99[441]][_0xff99[248]](_0xf598x2),_0xf598x4=null!= _0xf598x4?_0xf598x4[_0xff99[124]]:this[_0xff99[1705]](_0xf598x2);mxUtils[_0xff99[433]](_0xf598x4,mxConstants.STYLE_NOLABEL,!1)|| (_0xf598x3= this[_0xff99[2454]](_0xf598x2))};return _0xf598x3};mxGraph[_0xff99[202]][_0xff99[2186]]= function(_0xf598x2){return this[_0xff99[2592]]()};mxGraph[_0xff99[202]][_0xff99[2592]]= function(){return this[_0xff99[2410]]};mxGraph[_0xff99[202]][_0xff99[2593]]= function(_0xf598x2){this[_0xff99[2410]]= _0xf598x2};mxGraph[_0xff99[202]][_0xff99[2131]]= function(_0xf598x2){var _0xf598x3=this[_0xff99[441]][_0xff99[248]](_0xf598x2);_0xf598x2= null!= _0xf598x3?_0xf598x3[_0xff99[124]]:this[_0xff99[1705]](_0xf598x2);return null!= _0xf598x2?_0xff99[1333]== _0xf598x2[mxConstants[_0xff99[2594]]]:!1};mxGraph[_0xff99[202]][_0xff99[2130]]= function(_0xf598x2){var _0xf598x3=this[_0xff99[441]][_0xff99[248]](_0xf598x2);_0xf598x2= null!= _0xf598x3?_0xf598x3[_0xff99[124]]:this[_0xff99[1705]](_0xf598x2);return null!= _0xf598x2?_0xff99[188]== _0xf598x2[mxConstants[_0xff99[2193]]]:!1};mxGraph[_0xff99[202]][_0xff99[2595]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){var _0xf598x9=null;if(null!= _0xf598x2){if(null!= _0xf598x2[_0xff99[2207]]&& (_0xf598x3== _0xf598x2[_0xff99[2207]][_0xff99[252]]|| _0xf598x3[_0xff99[265]]== _0xf598x2[_0xff99[2207]][_0xff99[252]])){_0xf598x9= this[_0xff99[2425]],_0xf598x9= mxResources[_0xff99[203]](_0xf598x9)|| _0xf598x9};null== _0xf598x9&& null!= _0xf598x2[_0xff99[1211]]&& _0xf598x2[_0xff99[1211]][_0xff99[209]](function(_0xf598x2,_0xf598x4){if(null== _0xf598x9&& (_0xf598x3== _0xf598x4[_0xff99[252]]|| _0xf598x3[_0xff99[265]]== _0xf598x4[_0xff99[252]])){_0xf598x9= _0xf598x4[_0xff99[2201]].toString()}});null== _0xf598x9&& (_0xf598x4= this[_0xff99[2432]][_0xff99[2596]](_0xf598x2[_0xff99[246]]),null!= _0xf598x4&& _0xff99[279]== typeof _0xf598x4[_0xff99[2597]]&& (_0xf598x9= _0xf598x4[_0xff99[2597]](_0xf598x3)));null== _0xf598x9&& (_0xf598x9= this[_0xff99[2598]](_0xf598x2[_0xff99[246]]))};return _0xf598x9};mxGraph[_0xff99[202]][_0xff99[2598]]= function(_0xf598x2){var _0xf598x3=null;return _0xf598x3= null!= _0xf598x2&& null!= _0xf598x2[_0xff99[2595]]?_0xf598x2[_0xff99[2595]]():this[_0xff99[2454]](_0xf598x2)};mxGraph[_0xff99[202]][_0xff99[2599]]= function(_0xf598x2){return null};mxGraph[_0xff99[202]][_0xff99[1731]]= function(_0xf598x2){var _0xf598x3= new mxRectangle,_0xf598x4=this[_0xff99[441]][_0xff99[248]](_0xf598x2);_0xf598x2= null!= _0xf598x4?_0xf598x4[_0xff99[124]]:this[_0xff99[1705]](_0xf598x2);null!= _0xf598x2&& (_0xf598x4= parseInt(mxUtils[_0xff99[433]](_0xf598x2,mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE)),mxUtils[_0xff99[433]](_0xf598x2,mxConstants.STYLE_HORIZONTAL,!0)?_0xf598x3[_0xff99[119]]= _0xf598x4:_0xf598x3[_0xff99[117]]= _0xf598x4);return _0xf598x3};mxGraph[_0xff99[202]][_0xff99[1202]]= function(_0xf598x2){return null!= _0xf598x2&& null!= _0xf598x2[_0xff99[124]]?_0xf598x2[_0xff99[124]][mxConstants[_0xff99[2484]]]:null};mxGraph[_0xff99[202]][_0xff99[2187]]= function(_0xf598x2){return null!= _0xf598x2&& null!= _0xf598x2[_0xff99[124]]?_0xf598x2[_0xff99[124]][mxConstants[_0xff99[2063]]]|| mxConstants[_0xff99[481]]:null};mxGraph[_0xff99[202]][_0xff99[2173]]= function(_0xf598x2){return null!= _0xf598x2&& null!= _0xf598x2[_0xff99[124]]?_0xf598x2[_0xff99[124]][mxConstants[_0xff99[2600]]]:null};mxGraph[_0xff99[202]][_0xff99[2174]]= function(_0xf598x2){return null!= _0xf598x2&& null!= _0xf598x2[_0xff99[124]]?_0xf598x2[_0xff99[124]][mxConstants[_0xff99[2601]]]:null};mxGraph[_0xff99[202]][_0xff99[2172]]= function(_0xf598x2){return null!= _0xf598x2&& null!= _0xf598x2[_0xff99[124]]?_0xf598x2[_0xff99[124]][mxConstants[_0xff99[2602]]]:null};mxGraph[_0xff99[202]][_0xff99[2176]]= function(_0xf598x2){return null!= _0xf598x2&& null!= _0xf598x2[_0xff99[124]]?_0xf598x2[_0xff99[124]][mxConstants[_0xff99[2603]]]:null};mxGraph[_0xff99[202]][_0xff99[2476]]= function(){return this[_0xff99[467]]};mxGraph[_0xff99[202]][_0xff99[2604]]= function(_0xf598x2){this[_0xff99[467]]= _0xf598x2};mxGraph[_0xff99[202]][_0xff99[1730]]= function(_0xf598x2){if(null!= _0xf598x2&& this[_0xff99[251]][_0xff99[1197]](_0xf598x2)!= this[_0xff99[251]][_0xff99[501]]()){var _0xf598x3=this[_0xff99[441]][_0xff99[248]](_0xf598x2),_0xf598x3=null!= _0xf598x3?_0xf598x3[_0xff99[124]]:this[_0xff99[1705]](_0xf598x2);if(null!= _0xf598x3&& !this[_0xff99[251]][_0xff99[250]](_0xf598x2)){return _0xf598x3[mxConstants[_0xff99[2059]]]== mxConstants[_0xff99[2605]]}};return !1};mxGraph[_0xff99[202]][_0xff99[2606]]= function(){return this[_0xff99[2389]]};mxGraph[_0xff99[202]][_0xff99[2607]]= function(_0xf598x2){this[_0xff99[2389]]= _0xf598x2};mxGraph[_0xff99[202]][_0xff99[994]]= function(){return this[_0xff99[984]]};mxGraph[_0xff99[202]][_0xff99[995]]= function(_0xf598x2){this[_0xff99[984]]= _0xf598x2};mxGraph[_0xff99[202]][_0xff99[2608]]= function(){return this[_0xff99[2362]]};mxGraph[_0xff99[202]][_0xff99[2609]]= function(_0xf598x2){this[_0xff99[2362]]= _0xf598x2};mxGraph[_0xff99[202]][_0xff99[2134]]= function(){return this[_0xff99[2363]]};mxGraph[_0xff99[202]][_0xff99[2610]]= function(_0xf598x2){this[_0xff99[2363]]= _0xf598x2};mxGraph[_0xff99[202]][_0xff99[2125]]= function(){return this[_0xff99[2364]]};mxGraph[_0xff99[202]][_0xff99[2611]]= function(_0xf598x2){this[_0xff99[2364]]= _0xf598x2};mxGraph[_0xff99[202]][_0xff99[2612]]= function(_0xf598x2){var _0xf598x3=this[_0xff99[251]][_0xff99[1721]](_0xf598x2);return this[_0xff99[2613]]()|| null!= _0xf598x3&& this[_0xff99[251]][_0xff99[1193]](_0xf598x2)&& _0xf598x3[_0xff99[1500]]};mxGraph[_0xff99[202]][_0xff99[2613]]= function(){return this[_0xff99[2368]]};mxGraph[_0xff99[202]][_0xff99[2614]]= function(_0xf598x2){this[_0xff99[2368]]= _0xf598x2};mxGraph[_0xff99[202]][_0xff99[2615]]= function(_0xf598x2){return this[_0xff99[251]][_0xff99[1938]](_0xf598x2,mxUtils[_0xff99[885]](this,function(_0xf598x2){return this[_0xff99[2616]](_0xf598x2)}))};mxGraph[_0xff99[202]][_0xff99[2616]]= function(_0xf598x2){var _0xf598x3=this[_0xff99[441]][_0xff99[248]](_0xf598x2);_0xf598x2= null!= _0xf598x3?_0xf598x3[_0xff99[124]]:this[_0xff99[1705]](_0xf598x2);return this[_0xff99[2617]]()&& 0!= _0xf598x2[mxConstants[_0xff99[2618]]]};mxGraph[_0xff99[202]][_0xff99[2617]]= function(){return this[_0xff99[2369]]};mxGraph[_0xff99[202]][_0xff99[2619]]= function(_0xf598x2){this[_0xff99[2369]]= _0xf598x2};mxGraph[_0xff99[202]][_0xff99[898]]= function(_0xf598x2){return this[_0xff99[251]][_0xff99[1938]](_0xf598x2,mxUtils[_0xff99[885]](this,function(_0xf598x2){return this[_0xff99[2620]](_0xf598x2)}))};mxGraph[_0xff99[202]][_0xff99[2620]]= function(_0xf598x2){return this[_0xff99[2366]]};mxGraph[_0xff99[202]][_0xff99[900]]= function(_0xf598x2){return this[_0xff99[251]][_0xff99[1938]](_0xf598x2,mxUtils[_0xff99[885]](this,function(_0xf598x2){return this[_0xff99[2621]](_0xf598x2)}))};mxGraph[_0xff99[202]][_0xff99[2621]]= function(_0xf598x2){return this[_0xff99[2367]]};mxGraph[_0xff99[202]][_0xff99[2102]]= function(_0xf598x2){return this[_0xff99[2622]]()};mxGraph[_0xff99[202]][_0xff99[2622]]= function(){return this[_0xff99[2379]]};mxGraph[_0xff99[202]][_0xff99[2623]]= function(_0xf598x2){this[_0xff99[2379]]= _0xf598x2};mxGraph[_0xff99[202]][_0xff99[2510]]= function(_0xf598x2){return this[_0xff99[251]][_0xff99[1938]](_0xf598x2,mxUtils[_0xff99[885]](this,function(_0xf598x2){return this[_0xff99[2624]](_0xf598x2)}))};mxGraph[_0xff99[202]][_0xff99[2624]]= function(_0xf598x2){var _0xf598x3=this[_0xff99[441]][_0xff99[248]](_0xf598x2);_0xf598x2= null!= _0xf598x3?_0xf598x3[_0xff99[124]]:this[_0xff99[1705]](_0xf598x2);return this[_0xff99[2625]]()&& 0!= _0xf598x2[mxConstants[_0xff99[2626]]]};mxGraph[_0xff99[202]][_0xff99[2625]]= function(){return this[_0xff99[2371]]};mxGraph[_0xff99[202]][_0xff99[2627]]= function(_0xf598x2){this[_0xff99[2371]]= _0xf598x2};mxGraph[_0xff99[202]][_0xff99[2628]]= function(_0xf598x2){return !this[_0xff99[2612]](_0xf598x2)&& (this[_0xff99[251]][_0xff99[250]](_0xf598x2)&& this[_0xff99[2373]]|| this[_0xff99[251]][_0xff99[1193]](_0xf598x2)&& this[_0xff99[2374]])};mxGraph[_0xff99[202]][_0xff99[2629]]= function(_0xf598x2){return this[_0xff99[251]][_0xff99[1938]](_0xf598x2,mxUtils[_0xff99[885]](this,function(_0xf598x2){return this[_0xff99[1712]](_0xf598x2)}))};mxGraph[_0xff99[202]][_0xff99[1712]]= function(_0xf598x2){var _0xf598x3=this[_0xff99[441]][_0xff99[248]](_0xf598x2),_0xf598x3=null!= _0xf598x3?_0xf598x3[_0xff99[124]]:this[_0xff99[1705]](_0xf598x2);return this[_0xff99[2630]]()&& !this[_0xff99[2612]](_0xf598x2)&& 0!= _0xf598x3[mxConstants[_0xff99[2631]]]};mxGraph[_0xff99[202]][_0xff99[2630]]= function(){return this[_0xff99[2372]]};mxGraph[_0xff99[202]][_0xff99[2632]]= function(_0xf598x2){this[_0xff99[2372]]= _0xf598x2};mxGraph[_0xff99[202]][_0xff99[997]]= function(){return this[_0xff99[991]]};mxGraph[_0xff99[202]][_0xff99[998]]= function(_0xf598x2){this[_0xff99[991]]= _0xf598x2};mxGraph[_0xff99[202]][_0xff99[2549]]= function(){return this[_0xff99[2348]]};mxGraph[_0xff99[202]][_0xff99[2633]]= function(_0xf598x2){this[_0xff99[2348]]= _0xf598x2};mxGraph[_0xff99[202]][_0xff99[2634]]= function(){return this[_0xff99[1020]]};mxGraph[_0xff99[202]][_0xff99[2635]]= function(_0xf598x2){this[_0xff99[1020]]= _0xf598x2};mxGraph[_0xff99[202]][_0xff99[2636]]= function(){return this[_0xff99[2353]]};mxGraph[_0xff99[202]][_0xff99[2637]]= function(_0xf598x2){this[_0xff99[2353]]= _0xf598x2};mxGraph[_0xff99[202]][_0xff99[2638]]= function(){return this[_0xff99[2374]]};mxGraph[_0xff99[202]][_0xff99[2639]]= function(_0xf598x2){this[_0xff99[2374]]= _0xf598x2};mxGraph[_0xff99[202]][_0xff99[2640]]= function(){return this[_0xff99[2373]]};mxGraph[_0xff99[202]][_0xff99[2641]]= function(_0xf598x2){this[_0xff99[2373]]= _0xf598x2};mxGraph[_0xff99[202]][_0xff99[2642]]= function(){return this[_0xff99[2412]]};mxGraph[_0xff99[202]][_0xff99[2643]]= function(_0xf598x2){this[_0xff99[2412]]= _0xf598x2};mxGraph[_0xff99[202]][_0xff99[2460]]= function(){return this[_0xff99[2411]]};mxGraph[_0xff99[202]][_0xff99[2644]]= function(_0xf598x2){this[_0xff99[2411]]= _0xf598x2};mxGraph[_0xff99[202]][_0xff99[2645]]= function(){return this[_0xff99[2404]]};mxGraph[_0xff99[202]][_0xff99[2646]]= function(_0xf598x2){this[_0xff99[2404]]= _0xf598x2};mxGraph[_0xff99[202]][_0xff99[2647]]= function(){return this[_0xff99[2402]]};mxGraph[_0xff99[202]][_0xff99[2648]]= function(_0xf598x2){this[_0xff99[2406]]= _0xf598x2};mxGraph[_0xff99[202]][_0xff99[2530]]= function(){return this[_0xff99[2406]]};mxGraph[_0xff99[202]][_0xff99[2649]]= function(_0xf598x2){this[_0xff99[2405]]= _0xf598x2};mxGraph[_0xff99[202]][_0xff99[2650]]= function(){return this[_0xff99[2405]]};mxGraph[_0xff99[202]][_0xff99[2651]]= function(_0xf598x2){this[_0xff99[2407]]= _0xf598x2};mxGraph[_0xff99[202]][_0xff99[2527]]= function(){return this[_0xff99[2407]]};mxGraph[_0xff99[202]][_0xff99[2652]]= function(_0xf598x2){this[_0xff99[2402]]= _0xf598x2};mxGraph[_0xff99[202]][_0xff99[2529]]= function(){return this[_0xff99[2408]]};mxGraph[_0xff99[202]][_0xff99[2653]]= function(_0xf598x2){this[_0xff99[2408]]= _0xf598x2};mxGraph[_0xff99[202]][_0xff99[1015]]= function(){return this[_0xff99[2375]]};mxGraph[_0xff99[202]][_0xff99[2654]]= function(_0xf598x2){this[_0xff99[2375]]= _0xf598x2};mxGraph[_0xff99[202]][_0xff99[2655]]= function(){return this[_0xff99[2376]]};mxGraph[_0xff99[202]][_0xff99[2656]]= function(_0xf598x2){this[_0xff99[2376]]= _0xf598x2};mxGraph[_0xff99[202]][_0xff99[2657]]= function(_0xf598x2){var _0xf598x3=this[_0xff99[441]][_0xff99[248]](_0xf598x2),_0xf598x3=null!= _0xf598x3?_0xf598x3[_0xff99[124]]:this[_0xff99[1705]](_0xf598x2);return this[_0xff99[2658]]()&& !this[_0xff99[2612]](_0xf598x2)&& 0!= _0xf598x3[mxConstants[_0xff99[2659]]]};mxGraph[_0xff99[202]][_0xff99[2658]]= function(){return this[_0xff99[2377]]};mxGraph[_0xff99[202]][_0xff99[2660]]= function(_0xf598x2){this[_0xff99[2377]]= _0xf598x2};mxGraph[_0xff99[202]][_0xff99[2661]]= function(_0xf598x2,_0xf598x3){return !0};mxGraph[_0xff99[202]][_0xff99[2662]]= function(_0xf598x2){var _0xf598x3=this[_0xff99[441]][_0xff99[248]](_0xf598x2),_0xf598x3=null!= _0xf598x3?_0xf598x3[_0xff99[124]]:this[_0xff99[1705]](_0xf598x2);return this[_0xff99[2663]]()&& !this[_0xff99[2612]](_0xf598x2)&& 0!= _0xf598x3[mxConstants[_0xff99[2664]]]};mxGraph[_0xff99[202]][_0xff99[2663]]= function(){return this[_0xff99[2378]]};mxGraph[_0xff99[202]][_0xff99[2665]]= function(_0xf598x2){this[_0xff99[2378]]= _0xf598x2};mxGraph[_0xff99[202]][_0xff99[2453]]= function(_0xf598x2){var _0xf598x3=this[_0xff99[441]][_0xff99[248]](_0xf598x2),_0xf598x3=null!= _0xf598x3?_0xf598x3[_0xff99[124]]:this[_0xff99[1705]](_0xf598x2);return this[_0xff99[2666]]()&& !this[_0xff99[2612]](_0xf598x2)&& 0!= _0xf598x3[mxConstants[_0xff99[2667]]]};mxGraph[_0xff99[202]][_0xff99[2666]]= function(){return this[_0xff99[2370]]};mxGraph[_0xff99[202]][_0xff99[2668]]= function(_0xf598x2){this[_0xff99[2370]]= _0xf598x2};mxGraph[_0xff99[202]][_0xff99[2551]]= function(_0xf598x2,_0xf598x3,_0xf598x4){return this[_0xff99[2669]]()&& !this[_0xff99[2612]](_0xf598x2)};mxGraph[_0xff99[202]][_0xff99[2669]]= function(){return this[_0xff99[2380]]};mxGraph[_0xff99[202]][_0xff99[2670]]= function(_0xf598x2){this[_0xff99[2380]]= _0xf598x2};mxGraph[_0xff99[202]][_0xff99[2671]]= function(_0xf598x2){return null== _0xf598x2&& this[_0xff99[2406]]|| null!= _0xf598x2&& (!this[_0xff99[251]][_0xff99[250]](_0xf598x2)|| this[_0xff99[2405]])&& this[_0xff99[2565]](_0xf598x2)};mxGraph[_0xff99[202]][_0xff99[2672]]= function(_0xf598x2){return this[_0xff99[2671]](_0xf598x2)};mxGraph[_0xff99[202]][_0xff99[2582]]= function(_0xf598x2,_0xf598x3){return this[_0xff99[2671]](_0xf598x2)&& this[_0xff99[2672]](_0xf598x3)};mxGraph[_0xff99[202]][_0xff99[1995]]= function(_0xf598x2){this[_0xff99[2433]][_0xff99[995]](_0xf598x2)};mxGraph[_0xff99[202]][_0xff99[1965]]= function(_0xf598x2){return this[_0xff99[2433]][_0xff99[994]]()};mxGraph[_0xff99[202]][_0xff99[2673]]= function(_0xf598x2){this[_0xff99[2276]][_0xff99[995]](_0xf598x2)};mxGraph[_0xff99[202]][_0xff99[2674]]= function(_0xf598x2){this[_0xff99[2316]][_0xff99[2431]]= _0xf598x2};mxGraph[_0xff99[202]][_0xff99[2203]]= function(_0xf598x2){if(null!= this[_0xff99[2347]]){var _0xf598x3=this[_0xff99[2347]][_0xff99[2148]]();return null== _0xf598x2?null!= _0xf598x3:_0xf598x2== _0xf598x3};return !1};mxGraph[_0xff99[202]][_0xff99[2455]]= function(_0xf598x2){var _0xf598x3=this[_0xff99[441]][_0xff99[248]](_0xf598x2);_0xf598x2= null!= _0xf598x3?_0xf598x3[_0xff99[124]]:this[_0xff99[1705]](_0xf598x2);return this[_0xff99[2675]]()|| 1== _0xf598x2[mxConstants[_0xff99[2676]]]};mxGraph[_0xff99[202]][_0xff99[2675]]= function(){return this[_0xff99[2381]]};mxGraph[_0xff99[202]][_0xff99[2677]]= function(_0xf598x2){this[_0xff99[2381]]= _0xf598x2};mxGraph[_0xff99[202]][_0xff99[2507]]= function(_0xf598x2){return !this[_0xff99[502]]()[_0xff99[250]](_0xf598x2)&& this[_0xff99[2678]]()};mxGraph[_0xff99[202]][_0xff99[2678]]= function(){return this[_0xff99[2392]]};mxGraph[_0xff99[202]][_0xff99[2679]]= function(_0xf598x2){this[_0xff99[2392]]= _0xf598x2};mxGraph[_0xff99[202]][_0xff99[2506]]= function(){return this[_0xff99[2393]]};mxGraph[_0xff99[202]][_0xff99[2680]]= function(_0xf598x2){this[_0xff99[2393]]= _0xf598x2};mxGraph[_0xff99[202]][_0xff99[2536]]= function(_0xf598x2){return this[_0xff99[2681]]()&& !this[_0xff99[502]]()[_0xff99[250]](this[_0xff99[502]]()[_0xff99[1197]](_0xf598x2))};mxGraph[_0xff99[202]][_0xff99[2681]]= function(){return this[_0xff99[2391]]};mxGraph[_0xff99[202]][_0xff99[2682]]= function(_0xf598x2){this[_0xff99[2391]]= _0xf598x2};mxGraph[_0xff99[202]][_0xff99[2505]]= function(){return this[_0xff99[2390]]};mxGraph[_0xff99[202]][_0xff99[2528]]= function(_0xf598x2){this[_0xff99[2390]]= _0xf598x2};mxGraph[_0xff99[202]][_0xff99[2537]]= function(_0xf598x2){return this[_0xff99[2683]](_0xf598x2)?this[_0xff99[2354]]:0};mxGraph[_0xff99[202]][_0xff99[2683]]= function(_0xf598x2){return !1};mxGraph[_0xff99[202]][_0xff99[2513]]= function(_0xf598x2,_0xf598x3){return this[_0xff99[251]][_0xff99[1938]](_0xf598x2,mxUtils[_0xff99[885]](this,function(_0xf598x2){return this[_0xff99[2516]](_0xf598x2,_0xf598x3)}))};mxGraph[_0xff99[202]][_0xff99[2516]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=this[_0xff99[441]][_0xff99[248]](_0xf598x2),_0xf598x4=null!= _0xf598x4?_0xf598x4[_0xff99[124]]:this[_0xff99[1705]](_0xf598x2);return 0< this[_0xff99[251]][_0xff99[262]](_0xf598x2)&& 0!= _0xf598x4[mxConstants[_0xff99[2684]]]};mxGraph[_0xff99[202]][_0xff99[2685]]= function(_0xf598x2,_0xf598x3,_0xf598x4){return null!= _0xf598x2&& (this[_0xff99[2655]]()&& this[_0xff99[2686]](_0xf598x2,_0xf598x3,_0xf598x4)|| !this[_0xff99[251]][_0xff99[250]](_0xf598x2)&& (this[_0xff99[1730]](_0xf598x2)|| 0< this[_0xff99[251]][_0xff99[262]](_0xf598x2)&& !this[_0xff99[1742]](_0xf598x2)))};mxGraph[_0xff99[202]][_0xff99[2686]]= function(_0xf598x2,_0xf598x3,_0xf598x4){return this[_0xff99[251]][_0xff99[250]](_0xf598x2)&& null!= _0xf598x3&& 1== _0xf598x3[_0xff99[67]]&& this[_0xff99[2565]](_0xf598x3[0])&& null== this[_0xff99[2500]](_0xf598x2,this[_0xff99[251]][_0xff99[1709]](_0xf598x2,!0),_0xf598x3[0])?(_0xf598x4= this[_0xff99[251]][_0xff99[1709]](_0xf598x2,!0),_0xf598x2= this[_0xff99[251]][_0xff99[1709]](_0xf598x2,!1),!this[_0xff99[251]][_0xff99[1720]](_0xf598x3[0],_0xf598x4)&& !this[_0xff99[251]][_0xff99[1720]](_0xf598x3[0],_0xf598x2)):!1};mxGraph[_0xff99[202]][_0xff99[564]]= function(_0xf598x2,_0xf598x3,_0xf598x4){if(!this[_0xff99[2642]]()){for(var _0xf598x5=0;_0xf598x5< _0xf598x2[_0xff99[67]];_0xf598x5++){if(this[_0xff99[1730]](_0xf598x2[_0xf598x5])){return null}}};_0xf598x5= mxUtils[_0xff99[2196]](this[_0xff99[526]],mxEvent[_0xff99[731]](_0xf598x3),mxEvent[_0xff99[733]](_0xf598x3));_0xf598x5[_0xff99[235]]-= this[_0xff99[1136]];_0xf598x5[_0xff99[236]]-= this[_0xff99[1137]];_0xf598x5= this[_0xff99[2461]](_0xf598x5[_0xff99[235]],_0xf598x5[_0xff99[236]]);if(null== _0xf598x4){_0xf598x4= _0xf598x5}else {if(null!= _0xf598x5){for(var _0xf598x9=this[_0xff99[251]][_0xff99[1197]](_0xf598x5);null!= _0xf598x9&& this[_0xff99[1730]](_0xf598x9)&& _0xf598x9!= _0xf598x4;){_0xf598x9= this[_0xff99[251]][_0xff99[1197]](_0xf598x9)};_0xf598x9== _0xf598x4&& (_0xf598x4= _0xf598x5)}};for(;null!= _0xf598x4&& !this[_0xff99[2685]](_0xf598x4,_0xf598x2,_0xf598x3)&& !this[_0xff99[251]][_0xff99[1740]](_0xf598x4);){_0xf598x4= this[_0xff99[251]][_0xff99[1197]](_0xf598x4)};return !this[_0xff99[251]][_0xff99[1740]](_0xf598x4)&& 0> mxUtils[_0xff99[2]](_0xf598x2,_0xf598x4)?_0xf598x4:null};mxGraph[_0xff99[202]][_0xff99[902]]= function(){var _0xf598x2=this[_0xff99[2355]];null== _0xf598x2&& (_0xf598x2= this[_0xff99[2534]](),null== _0xf598x2&& (_0xf598x2= this[_0xff99[251]][_0xff99[501]](),_0xf598x2= this[_0xff99[251]][_0xff99[263]](_0xf598x2,0)));return _0xf598x2};mxGraph[_0xff99[202]][_0xff99[2687]]= function(_0xf598x2){this[_0xff99[2355]]= _0xf598x2};mxGraph[_0xff99[202]][_0xff99[2179]]= function(_0xf598x2){for(;null!= _0xf598x2&& !this[_0xff99[1730]](_0xf598x2);){_0xf598x2= this[_0xff99[251]][_0xff99[1197]](_0xf598x2)};return _0xf598x2};mxGraph[_0xff99[202]][_0xff99[2461]]= function(_0xf598x2,_0xf598x3,_0xf598x4){_0xf598x4= _0xf598x4|| this[_0xff99[902]]();if(null!= _0xf598x4){for(var _0xf598x5=this[_0xff99[251]][_0xff99[262]](_0xf598x4),_0xf598x9=0;_0xf598x9< _0xf598x5;_0xf598x9++){var _0xf598xa=this[_0xff99[251]][_0xff99[263]](_0xf598x4,_0xf598x9),_0xf598x12=this[_0xff99[2461]](_0xf598x2,_0xf598x3,_0xf598xa);if(null!= _0xf598x12){return _0xf598x12};if(this[_0xff99[1730]](_0xf598xa)&& (_0xf598x12= this[_0xff99[441]][_0xff99[248]](_0xf598xa),this[_0xff99[1825]](_0xf598x12,_0xf598x2,_0xf598x3))){return _0xf598xa}}};return null};mxGraph[_0xff99[202]][_0xff99[999]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){_0xf598x5= null!= _0xf598x5?_0xf598x5:!0;_0xf598x9= null!= _0xf598x9?_0xf598x9:!0;_0xf598x4= null!= _0xf598x4?_0xf598x4:this[_0xff99[902]]();if(null!= _0xf598x4){for(var _0xf598xa=this[_0xff99[251]][_0xff99[262]](_0xf598x4)- 1;0<= _0xf598xa;_0xf598xa--){var _0xf598x12=this[_0xff99[251]][_0xff99[263]](_0xf598x4,_0xf598xa),_0xf598x13=this[_0xff99[999]](_0xf598x2,_0xf598x3,_0xf598x12,_0xf598x5,_0xf598x9);if(null!= _0xf598x13){return _0xf598x13};if(this[_0xff99[1714]](_0xf598x12)&& (_0xf598x9&& this[_0xff99[251]][_0xff99[250]](_0xf598x12)|| _0xf598x5&& this[_0xff99[251]][_0xff99[1193]](_0xf598x12))){if(_0xf598x13= this[_0xff99[441]][_0xff99[248]](_0xf598x12),this[_0xff99[1825]](_0xf598x13,_0xf598x2,_0xf598x3)){return _0xf598x12}}}};return null};mxGraph[_0xff99[202]][_0xff99[1825]]= function(_0xf598x2,_0xf598x3,_0xf598x4){if(null!= _0xf598x2){var _0xf598x5=_0xf598x2[_0xff99[439]];if(null!= _0xf598x5){_0xf598x2= this[_0xff99[2353]]* this[_0xff99[2353]];for(var _0xf598x9=_0xf598x5[0],_0xf598xa=1;_0xf598xa< _0xf598x5[_0xff99[67]];_0xf598xa++){var _0xf598x12=_0xf598x5[_0xf598xa];if(mxUtils[_0xff99[440]](_0xf598x9[_0xff99[235]],_0xf598x9[_0xff99[236]],_0xf598x12[_0xff99[235]],_0xf598x12[_0xff99[236]],_0xf598x3,_0xf598x4)<= _0xf598x2){return !0};_0xf598x9= _0xf598x12}}else {if(_0xf598x9= mxUtils[_0xff99[431]](mxUtils[_0xff99[433]](_0xf598x2[_0xff99[124]],mxConstants.STYLE_ROTATION)|| 0),0!= _0xf598x9&& (_0xf598x5= Math[_0xff99[426]](-_0xf598x9),_0xf598x9= Math[_0xff99[427]](-_0xf598x9),_0xf598xa= new mxPoint(_0xf598x2[_0xff99[241]](),_0xf598x2[_0xff99[242]]()),_0xf598x9= mxUtils[_0xff99[432]]( new mxPoint(_0xf598x3,_0xf598x4),_0xf598x5,_0xf598x9,_0xf598xa),_0xf598x3= _0xf598x9[_0xff99[235]],_0xf598x4= _0xf598x9[_0xff99[236]]),mxUtils[_0xff99[442]](_0xf598x2,_0xf598x3,_0xf598x4)){return !0}}};return !1};mxGraph[_0xff99[202]][_0xff99[2688]]= function(_0xf598x2,_0xf598x3,_0xf598x4){var _0xf598x5=this[_0xff99[249]]()[_0xff99[248]](_0xf598x2);_0xf598x2= this[_0xff99[1731]](_0xf598x2);if(null!= _0xf598x5){var _0xf598x9=this[_0xff99[249]]()[_0xff99[518]]();_0xf598x3-= _0xf598x5[_0xff99[235]];_0xf598x4-= _0xf598x5[_0xff99[236]];if(0< _0xf598x2[_0xff99[117]]&& 0< _0xf598x3&& _0xf598x3> _0xf598x2[_0xff99[117]]* _0xf598x9|| 0< _0xf598x2[_0xff99[119]]&& 0< _0xf598x4&& _0xf598x4> _0xf598x2[_0xff99[119]]* _0xf598x9){return !0}};return !1};mxGraph[_0xff99[202]][_0xff99[1728]]= function(_0xf598x2){return this[_0xff99[1955]](_0xf598x2,!0,!1)};mxGraph[_0xff99[202]][_0xff99[1956]]= function(_0xf598x2){return this[_0xff99[1955]](_0xf598x2,!1,!0)};mxGraph[_0xff99[202]][_0xff99[1955]]= function(_0xf598x2,_0xf598x3,_0xf598x4){_0xf598x2= null!= _0xf598x2?_0xf598x2:this[_0xff99[902]]();_0xf598x2= this[_0xff99[251]][_0xff99[1955]](_0xf598x2,null!= _0xf598x3?_0xf598x3:!1,null!= _0xf598x4?_0xf598x4:!1);_0xf598x3= [];for(_0xf598x4= 0;_0xf598x4< _0xf598x2[_0xff99[67]];_0xf598x4++){this[_0xff99[1714]](_0xf598x2[_0xf598x4])&& _0xf598x3[_0xff99[207]](_0xf598x2[_0xf598x4])};return _0xf598x3};mxGraph[_0xff99[202]][_0xff99[1756]]= function(_0xf598x2,_0xf598x3){return this[_0xff99[264]](_0xf598x2,_0xf598x3,!0,!0,!1)};mxGraph[_0xff99[202]][_0xff99[1867]]= function(_0xf598x2,_0xf598x3){return this[_0xff99[264]](_0xf598x2,_0xf598x3,!0,!1,!1)};mxGraph[_0xff99[202]][_0xff99[1963]]= function(_0xf598x2,_0xf598x3){return this[_0xff99[264]](_0xf598x2,_0xf598x3,!1,!0,!1)};mxGraph[_0xff99[202]][_0xff99[264]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa){_0xf598x4= null!= _0xf598x4?_0xf598x4:!0;_0xf598x5= null!= _0xf598x5?_0xf598x5:!0;_0xf598x9= null!= _0xf598x9?_0xf598x9:!0;_0xf598xa= null!= _0xf598xa?_0xf598xa:!1;for(var _0xf598x12=[],_0xf598x13=this[_0xff99[1742]](_0xf598x2),_0xf598x14=this[_0xff99[251]][_0xff99[262]](_0xf598x2),_0xf598x15=0;_0xf598x15< _0xf598x14;_0xf598x15++){var _0xf598x16=this[_0xff99[251]][_0xff99[263]](_0xf598x2,_0xf598x15);if(_0xf598x13|| !this[_0xff99[1714]](_0xf598x16)){_0xf598x12= _0xf598x12[_0xff99[1919]](this[_0xff99[251]][_0xff99[264]](_0xf598x16,_0xf598x4,_0xf598x5))}};_0xf598x12= _0xf598x12[_0xff99[1919]](this[_0xff99[251]][_0xff99[264]](_0xf598x2,_0xf598x4,_0xf598x5));_0xf598x13= [];for(_0xf598x15= 0;_0xf598x15< _0xf598x12[_0xff99[67]];_0xf598x15++){_0xf598x16= this[_0xff99[441]][_0xff99[248]](_0xf598x12[_0xf598x15]),_0xf598x14= null!= _0xf598x16?_0xf598x16[_0xff99[1710]](!0):this[_0xff99[441]][_0xff99[1710]](_0xf598x12[_0xf598x15],!0),_0xf598x16= null!= _0xf598x16?_0xf598x16[_0xff99[1710]](!1):this[_0xff99[441]][_0xff99[1710]](_0xf598x12[_0xf598x15],!1),(_0xf598x9&& _0xf598x14== _0xf598x16|| _0xf598x14!= _0xf598x16&& (_0xf598x4&& _0xf598x16== _0xf598x2&& (null== _0xf598x3|| this[_0xff99[1920]](_0xf598x14,_0xf598x3,_0xf598xa))|| _0xf598x5&& _0xf598x14== _0xf598x2&& (null== _0xf598x3|| this[_0xff99[1920]](_0xf598x16,_0xf598x3,_0xf598xa))))&& _0xf598x13[_0xff99[207]](_0xf598x12[_0xf598x15])};return _0xf598x13};mxGraph[_0xff99[202]][_0xff99[1920]]= function(_0xf598x2,_0xf598x3,_0xf598x4){return _0xf598x4?this[_0xff99[251]][_0xff99[1720]](_0xf598x3,_0xf598x2):this[_0xff99[251]][_0xff99[1197]](_0xf598x2)== _0xf598x3};mxGraph[_0xff99[202]][_0xff99[1808]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){_0xf598x4= null!= _0xf598x4?_0xf598x4:!0;_0xf598x5= null!= _0xf598x5?_0xf598x5:!0;var _0xf598x9=[],_0xf598xa={};if(null!= _0xf598x2){for(var _0xf598x12=0;_0xf598x12< _0xf598x2[_0xff99[67]];_0xf598x12++){var _0xf598x13=this[_0xff99[441]][_0xff99[248]](_0xf598x2[_0xf598x12]),_0xf598x14=null!= _0xf598x13?_0xf598x13[_0xff99[1710]](!0):this[_0xff99[441]][_0xff99[1710]](_0xf598x2[_0xf598x12],!0),_0xf598x13=null!= _0xf598x13?_0xf598x13[_0xff99[1710]](!1):this[_0xff99[441]][_0xff99[1710]](_0xf598x2[_0xf598x12],!1);if(_0xf598x14== _0xf598x3&& null!= _0xf598x13&& _0xf598x13!= _0xf598x3&& _0xf598x5){var _0xf598x15=mxCellPath[_0xff99[385]](_0xf598x13);null== _0xf598xa[_0xf598x15]&& (_0xf598xa[_0xf598x15]= _0xf598x13,_0xf598x9[_0xff99[207]](_0xf598x13))}else {_0xf598x13== _0xf598x3&& (null!= _0xf598x14&& _0xf598x14!= _0xf598x3&& _0xf598x4)&& (_0xf598x15= mxCellPath[_0xff99[385]](_0xf598x14),null== _0xf598xa[_0xf598x15]&& (_0xf598xa[_0xf598x15]= _0xf598x14,_0xf598x9[_0xff99[207]](_0xf598x14)))}}};return _0xf598x9};mxGraph[_0xff99[202]][_0xff99[1781]]= function(_0xf598x2,_0xf598x3,_0xf598x4){_0xf598x4= null!= _0xf598x4?_0xf598x4:!1;for(var _0xf598x5=this[_0xff99[264]](_0xf598x2),_0xf598x9=[],_0xf598xa=0;_0xf598xa< _0xf598x5[_0xff99[67]];_0xf598xa++){var _0xf598x12=this[_0xff99[441]][_0xff99[248]](_0xf598x5[_0xf598xa]),_0xf598x13=null!= _0xf598x12?_0xf598x12[_0xff99[1710]](!0):this[_0xff99[441]][_0xff99[1710]](_0xf598x5[_0xf598xa],!0),_0xf598x12=null!= _0xf598x12?_0xf598x12[_0xff99[1710]](!1):this[_0xff99[441]][_0xff99[1710]](_0xf598x5[_0xf598xa],!1);(_0xf598x13== _0xf598x2&& _0xf598x12== _0xf598x3|| !_0xf598x4&& _0xf598x13== _0xf598x3 && _0xf598x12== _0xf598x2)&& _0xf598x9[_0xff99[207]](_0xf598x5[_0xf598xa])};return _0xf598x9};mxGraph[_0xff99[202]][_0xff99[2689]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=mxUtils[_0xff99[2196]](this[_0xff99[526]],mxEvent[_0xff99[731]](_0xf598x2),mxEvent[_0xff99[733]](_0xf598x2)),_0xf598x5=this[_0xff99[441]][_0xff99[255]],_0xf598x9=this[_0xff99[441]][_0xff99[513]],_0xf598xa=!1!= _0xf598x3?this[_0xff99[1020]]/ 2:0;_0xf598x4[_0xff99[235]]= this[_0xff99[1021]](_0xf598x4[_0xff99[235]]/ _0xf598x5- _0xf598x9[_0xff99[235]]- _0xf598xa);_0xf598x4[_0xff99[236]]= this[_0xff99[1021]](_0xf598x4[_0xff99[236]]/ _0xf598x5- _0xf598x9[_0xff99[236]]- _0xf598xa);return _0xf598x4};mxGraph[_0xff99[202]][_0xff99[2690]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa){_0xf598xa= null!= _0xf598xa?_0xf598xa:[];if(0< _0xf598x4|| 0< _0xf598x5){var _0xf598x12=_0xf598x2+ _0xf598x4,_0xf598x13=_0xf598x3+ _0xf598x5;_0xf598x9= _0xf598x9|| this[_0xff99[902]]();if(null!= _0xf598x9){for(var _0xf598x14=this[_0xff99[251]][_0xff99[262]](_0xf598x9),_0xf598x15=0;_0xf598x15< _0xf598x14;_0xf598x15++){var _0xf598x16=this[_0xff99[251]][_0xff99[263]](_0xf598x9,_0xf598x15),_0xf598x17=this[_0xff99[441]][_0xff99[248]](_0xf598x16);if(this[_0xff99[1714]](_0xf598x16)&& null!= _0xf598x17){var _0xf598x18=_0xf598x17,_0xf598x17=mxUtils[_0xff99[433]](_0xf598x17[_0xff99[124]],mxConstants.STYLE_ROTATION)|| 0;0!= _0xf598x17&& (_0xf598x18= mxUtils[_0xff99[1613]](_0xf598x18,_0xf598x17));_0xf598x18[_0xff99[235]]>= _0xf598x2&& _0xf598x18[_0xff99[236]]+ _0xf598x18[_0xff99[119]]<= _0xf598x13&& _0xf598x18[_0xff99[236]]>= _0xf598x3&& _0xf598x18[_0xff99[235]]+ _0xf598x18[_0xff99[117]]<= _0xf598x12?_0xf598xa[_0xff99[207]](_0xf598x16):this[_0xff99[2690]](_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x16,_0xf598xa)}}}};return _0xf598xa};mxGraph[_0xff99[202]][_0xff99[2691]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){var _0xf598xa=[];if(_0xf598x5|| _0xf598x9){if(null== _0xf598x4&& (_0xf598x4= this[_0xff99[902]]()),null!= _0xf598x4){for(var _0xf598x12=this[_0xff99[251]][_0xff99[262]](_0xf598x4),_0xf598x13=0;_0xf598x13< _0xf598x12;_0xf598x13++){var _0xf598x14=this[_0xff99[251]][_0xff99[263]](_0xf598x4,_0xf598x13),_0xf598x15=this[_0xff99[441]][_0xff99[248]](_0xf598x14);this[_0xff99[1714]](_0xf598x14)&& null!= _0xf598x15&& (!_0xf598x5|| _0xf598x15[_0xff99[235]]>= _0xf598x2)&& (!_0xf598x9|| _0xf598x15[_0xff99[236]]>= _0xf598x3)&& _0xf598xa[_0xff99[207]](_0xf598x14)}}};return _0xf598xa};mxGraph[_0xff99[202]][_0xff99[1757]]= function(_0xf598x2,_0xf598x3,_0xf598x4){_0xf598x3= null!= _0xf598x3?_0xf598x3:!1;_0xf598x4= null!= _0xf598x4?_0xf598x4:!1;var _0xf598x5=[];if(null!= _0xf598x2){for(var _0xf598x9=this[_0xff99[502]](),_0xf598xa=_0xf598x9[_0xff99[262]](_0xf598x2),_0xf598x12=null,_0xf598x13=0,_0xf598x14=0;_0xf598x14< _0xf598xa;_0xf598x14++){var _0xf598x15=_0xf598x9[_0xff99[263]](_0xf598x2,_0xf598x14);if(this[_0xff99[251]][_0xff99[1193]](_0xf598x15)&& this[_0xff99[1714]](_0xf598x15)){for(var _0xf598x16=this[_0xff99[1756]](_0xf598x15,_0xf598x3?_0xf598x2:null),_0xf598x17=0,_0xf598x18=0,_0xf598x19=0;_0xf598x19< _0xf598x16[_0xff99[67]];_0xf598x19++){this[_0xff99[441]][_0xff99[1710]](_0xf598x16[_0xf598x19],!0)== _0xf598x15?_0xf598x17++:_0xf598x18++};(_0xf598x4&& 0== _0xf598x17&& 0< _0xf598x18|| !_0xf598x4&& 0== _0xf598x18 && 0< _0xf598x17)&& _0xf598x5[_0xff99[207]](_0xf598x15);_0xf598x16= _0xf598x4?_0xf598x18- _0xf598x17:_0xf598x17- _0xf598x18;_0xf598x16> _0xf598x13&& (_0xf598x13= _0xf598x16,_0xf598x12= _0xf598x15)}};0== _0xf598x5[_0xff99[67]]&& null!= _0xf598x12&& _0xf598x5[_0xff99[207]](_0xf598x12)};return _0xf598x5};mxGraph[_0xff99[202]][_0xff99[1706]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){if(null!= _0xf598x4&& null!= _0xf598x2){_0xf598x3= null!= _0xf598x3?_0xf598x3:!0;_0xf598x9= _0xf598x9|| [];var _0xf598xa=mxCellPath[_0xff99[385]](_0xf598x2);if(null== _0xf598x9[_0xf598xa]&& (_0xf598x9[_0xf598xa]= _0xf598x2,_0xf598x5= _0xf598x4(_0xf598x2,_0xf598x5),null== _0xf598x5|| _0xf598x5)){if(_0xf598x5= this[_0xff99[251]][_0xff99[1707]](_0xf598x2),0< _0xf598x5){for(_0xf598xa= 0;_0xf598xa< _0xf598x5;_0xf598xa++){var _0xf598x12=this[_0xff99[251]][_0xff99[1708]](_0xf598x2,_0xf598xa),_0xf598x13=this[_0xff99[251]][_0xff99[1709]](_0xf598x12,!0)== _0xf598x2;if(!_0xf598x3|| _0xf598x13){_0xf598x13= this[_0xff99[251]][_0xff99[1709]](_0xf598x12,!_0xf598x13),this[_0xff99[1706]](_0xf598x13,_0xf598x3,_0xf598x4,_0xf598x12,_0xf598x9)}}}}}};mxGraph[_0xff99[202]][_0xff99[2692]]= function(_0xf598x2){return this[_0xff99[2435]]()[_0xff99[2097]](_0xf598x2)};mxGraph[_0xff99[202]][_0xff99[2693]]= function(){return this[_0xff99[2435]]()[_0xff99[1107]]()};mxGraph[_0xff99[202]][_0xff99[2440]]= function(){return this[_0xff99[2435]]()[_0xff99[200]]()};mxGraph[_0xff99[202]][_0xff99[2694]]= function(){return this[_0xff99[2435]]()[_0xff99[895]][_0xff99[67]]};mxGraph[_0xff99[202]][_0xff99[2452]]= function(){return this[_0xff99[2435]]()[_0xff99[895]][0]};mxGraph[_0xff99[202]][_0xff99[897]]= function(){return this[_0xff99[2435]]()[_0xff99[895]][_0xff99[1853]]()};mxGraph[_0xff99[202]][_0xff99[2450]]= function(_0xf598x2){this[_0xff99[2435]]()[_0xff99[2099]](_0xf598x2)};mxGraph[_0xff99[202]][_0xff99[904]]= function(_0xf598x2){this[_0xff99[2435]]()[_0xff99[2100]](_0xf598x2)};mxGraph[_0xff99[202]][_0xff99[2695]]= function(_0xf598x2){this[_0xff99[2435]]()[_0xff99[2103]](_0xf598x2)};mxGraph[_0xff99[202]][_0xff99[2696]]= function(_0xf598x2){this[_0xff99[2435]]()[_0xff99[832]](_0xf598x2)};mxGraph[_0xff99[202]][_0xff99[2697]]= function(_0xf598x2){this[_0xff99[2435]]()[_0xff99[2104]](_0xf598x2)};mxGraph[_0xff99[202]][_0xff99[2439]]= function(_0xf598x2){this[_0xff99[2435]]()[_0xff99[842]](_0xf598x2)};mxGraph[_0xff99[202]][_0xff99[2698]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=this[_0xff99[2690]](_0xf598x2[_0xff99[235]],_0xf598x2[_0xff99[236]],_0xf598x2[_0xff99[117]],_0xf598x2[_0xff99[119]]);this[_0xff99[2699]](_0xf598x4,_0xf598x3);return _0xf598x4};mxGraph[_0xff99[202]][_0xff99[2700]]= function(){this[_0xff99[2701]](!0)};mxGraph[_0xff99[202]][_0xff99[2702]]= function(){this[_0xff99[2701]]()};mxGraph[_0xff99[202]][_0xff99[2703]]= function(){this[_0xff99[2701]](!1,!0)};mxGraph[_0xff99[202]][_0xff99[2704]]= function(){this[_0xff99[2701]](!1,!1,!0)};mxGraph[_0xff99[202]][_0xff99[2701]]= function(_0xf598x2,_0xf598x3,_0xf598x4){var _0xf598x5=this[_0xff99[2105]],_0xf598x9=0< _0xf598x5[_0xff99[895]][_0xff99[67]]?_0xf598x5[_0xff99[895]][0]:null;1< _0xf598x5[_0xff99[895]][_0xff99[67]]&& _0xf598x5[_0xff99[200]]();var _0xf598x5=null!= _0xf598x9?this[_0xff99[251]][_0xff99[1197]](_0xf598x9):this[_0xff99[902]](),_0xf598xa=this[_0xff99[251]][_0xff99[262]](_0xf598x5);null== _0xf598x9&& 0< _0xf598xa?(_0xf598x2= this[_0xff99[251]][_0xff99[263]](_0xf598x5,0),this[_0xff99[2450]](_0xf598x2)):(null== _0xf598x9|| _0xf598x3)&& null!= this[_0xff99[441]][_0xff99[248]](_0xf598x5)&& null!= this[_0xff99[251]][_0xff99[1721]](_0xf598x5)?this[_0xff99[2534]]()!= _0xf598x5&& this[_0xff99[2450]](_0xf598x5):null!= _0xf598x9&& _0xf598x4?0< this[_0xff99[251]][_0xff99[262]](_0xf598x9)&& (_0xf598x2= this[_0xff99[251]][_0xff99[263]](_0xf598x9,0),this[_0xff99[2450]](_0xf598x2)):0< _0xf598xa&& (_0xf598x3= _0xf598x5[_0xff99[1738]](_0xf598x9),_0xf598x2?(_0xf598x3++,_0xf598x2= this[_0xff99[251]][_0xff99[263]](_0xf598x5,_0xf598x3% _0xf598xa)):(_0xf598x3--,_0xf598x2= this[_0xff99[251]][_0xff99[263]](_0xf598x5,0> _0xf598x3?_0xf598xa- 1:_0xf598x3)),this[_0xff99[2450]](_0xf598x2))};mxGraph[_0xff99[202]][_0xff99[2705]]= function(_0xf598x2){_0xf598x2= _0xf598x2|| this[_0xff99[902]]();_0xf598x2= this[_0xff99[251]][_0xff99[1953]](_0xf598x2);null!= _0xf598x2&& this[_0xff99[904]](_0xf598x2)};mxGraph[_0xff99[202]][_0xff99[2706]]= function(_0xf598x2){this[_0xff99[2707]](!0,!1,_0xf598x2)};mxGraph[_0xff99[202]][_0xff99[2708]]= function(_0xf598x2){this[_0xff99[2707]](!1,!0,_0xf598x2)};mxGraph[_0xff99[202]][_0xff99[2707]]= function(_0xf598x2,_0xf598x3,_0xf598x4){_0xf598x4= _0xf598x4|| this[_0xff99[902]]();var _0xf598x5=mxUtils[_0xff99[885]](this,function(_0xf598x4){return null!= this[_0xff99[441]][_0xff99[248]](_0xf598x4)&& 0== this[_0xff99[251]][_0xff99[262]](_0xf598x4)&& (this[_0xff99[251]][_0xff99[1193]](_0xf598x4)&& _0xf598x2|| this[_0xff99[251]][_0xff99[250]](_0xf598x4)&& _0xf598x3)});_0xf598x4= this[_0xff99[251]][_0xff99[1921]](_0xf598x5,_0xf598x4);this[_0xff99[904]](_0xf598x4)};mxGraph[_0xff99[202]][_0xff99[2459]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=this[_0xff99[2692]](_0xf598x2);this[_0xff99[2462]](_0xf598x3)?_0xf598x4?this[_0xff99[2697]](_0xf598x2):this[_0xff99[2695]](_0xf598x2):(!_0xf598x4|| 1!= this[_0xff99[2694]]()) && this[_0xff99[2450]](_0xf598x2)};mxGraph[_0xff99[202]][_0xff99[2699]]= function(_0xf598x2,_0xf598x3){this[_0xff99[2462]](_0xf598x3)?this[_0xff99[2696]](_0xf598x2):this[_0xff99[904]](_0xf598x2)};mxGraph[_0xff99[202]][_0xff99[2709]]= function(_0xf598x2){var _0xf598x3=null;null!= _0xf598x2&& (this[_0xff99[251]][_0xff99[250]](_0xf598x2[_0xff99[246]])?(_0xf598x3= this[_0xff99[441]][_0xff99[2291]](_0xf598x2),_0xf598x3= this[_0xff99[2573]](_0xf598x2)|| _0xf598x3== mxEdgeStyle[_0xff99[2568]]|| _0xf598x3== mxEdgeStyle[_0xff99[2569]]|| _0xf598x3== mxEdgeStyle[_0xff99[2570]]? new mxElbowEdgeHandler(_0xf598x2):_0xf598x3== mxEdgeStyle[_0xff99[2567]]|| _0xf598x3== mxEdgeStyle[_0xff99[2572]]? new mxEdgeSegmentHandler(_0xf598x2): new mxEdgeHandler(_0xf598x2)):_0xf598x3= new mxVertexHandler(_0xf598x2));return _0xf598x3};mxGraph[_0xff99[202]][_0xff99[1133]]= function(_0xf598x2){null== this[_0xff99[2329]]&& (this[_0xff99[2329]]= []);this[_0xff99[2329]][_0xff99[207]](_0xf598x2)};mxGraph[_0xff99[202]][_0xff99[1148]]= function(_0xf598x2){if(null!= this[_0xff99[2329]]){for(var _0xf598x3=0;_0xf598x3< this[_0xff99[2329]][_0xff99[67]];_0xf598x3++){if(this[_0xff99[2329]][_0xf598x3]== _0xf598x2){this[_0xff99[2329]][_0xff99[300]](_0xf598x3,1);break}}}};mxGraph[_0xff99[202]][_0xff99[2710]]= function(_0xf598x2){if(null== _0xf598x2[_0xff99[725]]|| null== _0xf598x2[_0xff99[726]]){var _0xf598x3=mxUtils[_0xff99[2196]](this[_0xff99[526]],_0xf598x2[_0xff99[730]](),_0xf598x2[_0xff99[732]]());_0xf598x2[_0xff99[725]]= _0xf598x3[_0xff99[235]]- this[_0xff99[1136]];_0xf598x2[_0xff99[726]]= _0xf598x3[_0xff99[236]]- this[_0xff99[1137]]}};mxGraph[_0xff99[202]][_0xff99[758]]= function(_0xf598x2,_0xf598x3,_0xf598x4){null== _0xf598x4&& (_0xf598x4= this);this[_0xff99[2710]](_0xf598x3);_0xf598x2== mxEvent[_0xff99[2711]]&& (this[_0xff99[1009]]= !0);if(mxClient[_0xff99[754]]&& this[_0xff99[2349]]&& _0xf598x2== mxEvent[_0xff99[2711]]){var _0xf598x5=( new Date)[_0xff99[178]]();_0xf598x5- this[_0xff99[2213]]< this[_0xff99[2350]]&& Math[_0xff99[425]](this[_0xff99[2712]]- _0xf598x3[_0xff99[730]]())< this[_0xff99[2351]]&& Math[_0xff99[425]](this[_0xff99[2352]]- _0xf598x3[_0xff99[732]]())< this[_0xff99[2351]]?(this[_0xff99[2213]]= 0,this[_0xff99[761]](_0xf598x3[_0xff99[727]](),_0xf598x3[_0xff99[736]]()),_0xf598x3[_0xff99[727]]()[_0xff99[786]]= !0):(this[_0xff99[2712]]= _0xf598x3[_0xff99[730]](),this[_0xff99[2352]]= _0xf598x3[_0xff99[732]](),this[_0xff99[2213]]= _0xf598x5)};_0xf598x5= 2!= _0xf598x3[_0xff99[727]]()[_0xff99[764]];if(mxClient[_0xff99[80]]&& _0xff99[462]== document[_0xff99[135]]){if(null!= this[_0xff99[2713]]&& Math[_0xff99[425]](this[_0xff99[2713]]- _0xf598x3[_0xff99[730]]())> this[_0xff99[2351]]|| null!= this[_0xff99[2714]]&& Math[_0xff99[425]](this[_0xff99[2714]]- _0xf598x3[_0xff99[732]]())> this[_0xff99[2351]]){_0xf598x5= !0};_0xf598x2== mxEvent[_0xff99[2715]]&& (this[_0xff99[2713]]= _0xf598x3[_0xff99[730]](),this[_0xff99[2714]]= _0xf598x3[_0xff99[732]]())};if((_0xf598x2!= mxEvent[_0xff99[2715]]|| this[_0xff99[1009]])&& _0xf598x5){if(_0xf598x2== mxEvent[_0xff99[2715]]&& (this[_0xff99[1009]]= !1),!this[_0xff99[2203]]()&& (mxClient[_0xff99[71]]|| mxClient[_0xff99[75]]|| mxClient[_0xff99[76]]|| mxClient[_0xff99[80]]&& mxClient[_0xff99[48]]|| _0xf598x3[_0xff99[727]]()[_0xff99[772]]!= this[_0xff99[526]])){_0xf598x2== mxEvent[_0xff99[2716]]&& (this[_0xff99[1009]]&& this[_0xff99[1012]])&& this[_0xff99[1014]](_0xf598x3[_0xff99[734]](),_0xf598x3[_0xff99[735]](),this[_0xff99[1013]]);if(null!= this[_0xff99[2329]]){_0xf598x4= [_0xf598x4,_0xf598x3];_0xf598x3[_0xff99[727]]()[_0xff99[739]]= !0;for(_0xf598x5= 0;_0xf598x5< this[_0xff99[2329]][_0xff99[67]];_0xf598x5++){var _0xf598x9=this[_0xff99[2329]][_0xf598x5];_0xf598x2== mxEvent[_0xff99[2711]]?_0xf598x9[_0xff99[787]][_0xff99[183]](_0xf598x9,_0xf598x4):_0xf598x2== mxEvent[_0xff99[2716]]?_0xf598x9[_0xff99[788]][_0xff99[183]](_0xf598x9,_0xf598x4):_0xf598x2== mxEvent[_0xff99[2715]]&& _0xf598x9[_0xff99[789]][_0xff99[183]](_0xf598x9,_0xf598x4)}};_0xf598x2== mxEvent[_0xff99[2715]]&& this[_0xff99[173]](_0xf598x3)}}else {_0xf598x2== mxEvent[_0xff99[2715]]&& (this[_0xff99[1009]]= !1)}};mxGraph[_0xff99[202]][_0xff99[515]]= function(){this[_0xff99[2717]]|| (this[_0xff99[2717]]= !0,null!= this[_0xff99[2276]]&& this[_0xff99[2276]][_0xff99[515]](),null!= this[_0xff99[2432]]&& this[_0xff99[2432]][_0xff99[515]](),null!= this[_0xff99[2316]]&& this[_0xff99[2316]][_0xff99[515]](),null!= this[_0xff99[2433]]&& this[_0xff99[2433]][_0xff99[515]](),null!= this[_0xff99[1011]]&& this[_0xff99[1011]][_0xff99[515]](),null!= this[_0xff99[2347]]&& this[_0xff99[2347]][_0xff99[515]](),null!= this[_0xff99[441]]&& this[_0xff99[441]][_0xff99[515]](),null!= this[_0xff99[251]]&& null!= this[_0xff99[2343]]&& (this[_0xff99[251]][_0xff99[745]](this[_0xff99[2343]]),this[_0xff99[2343]]= null),this[_0xff99[526]]= null)};function mxCellOverlay(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa){this[_0xff99[618]]= _0xf598x2;this[_0xff99[2718]]= _0xf598x3;this[_0xff99[611]]= null!= _0xf598x4?_0xf598x4:this[_0xff99[611]];this[_0xff99[123]]= null!= _0xf598x5?_0xf598x5:this[_0xff99[123]];this[_0xff99[1368]]= null!= _0xf598x9?_0xf598x9: new mxPoint;this[_0xff99[270]]= null!= _0xf598xa?_0xf598xa:_0xff99[2719]}mxCellOverlay[_0xff99[202]]= new mxEventSource;mxCellOverlay[_0xff99[202]][_0xff99[196]]= mxCellOverlay;mxCellOverlay[_0xff99[202]][_0xff99[618]]= null;mxCellOverlay[_0xff99[202]][_0xff99[2718]]= null;mxCellOverlay[_0xff99[202]][_0xff99[611]]= mxConstants[_0xff99[480]];mxCellOverlay[_0xff99[202]][_0xff99[123]]= mxConstants[_0xff99[482]];mxCellOverlay[_0xff99[202]][_0xff99[1368]]= null;mxCellOverlay[_0xff99[202]][_0xff99[270]]= null;mxCellOverlay[_0xff99[202]][_0xff99[2354]]= 0.5;mxCellOverlay[_0xff99[202]][_0xff99[1799]]= function(_0xf598x2){var _0xf598x3=_0xf598x2[_0xff99[441]][_0xff99[1179]][_0xff99[502]]()[_0xff99[250]](_0xf598x2[_0xff99[246]]),_0xf598x4=_0xf598x2[_0xff99[441]][_0xff99[255]],_0xf598x5=null,_0xf598x9=this[_0xff99[618]][_0xff99[117]],_0xf598xa=this[_0xff99[618]][_0xff99[119]];_0xf598x3?(_0xf598x3= _0xf598x2[_0xff99[439]],1== _0xf598x3[_0xff99[67]]% 2?_0xf598x5= _0xf598x3[Math[_0xff99[519]](_0xf598x3[_0xff99[67]]/ 2)]:(_0xf598x5= _0xf598x3[_0xff99[67]]/ 2,_0xf598x2= _0xf598x3[_0xf598x5- 1],_0xf598x3= _0xf598x3[_0xf598x5],_0xf598x5= new mxPoint(_0xf598x2[_0xff99[235]]+ (_0xf598x3[_0xff99[235]]- _0xf598x2[_0xff99[235]])/ 2,_0xf598x2[_0xff99[236]]+ (_0xf598x3[_0xff99[236]]- _0xf598x2[_0xff99[236]])/ 2))):(_0xf598x5= new mxPoint,_0xf598x5[_0xff99[235]]= this[_0xff99[611]]== mxConstants[_0xff99[2132]]?_0xf598x2[_0xff99[235]]:this[_0xff99[611]]== mxConstants[_0xff99[479]]?_0xf598x2[_0xff99[235]]+ _0xf598x2[_0xff99[117]]/ 2:_0xf598x2[_0xff99[235]]+ _0xf598x2[_0xff99[117]],_0xf598x5[_0xff99[236]]= this[_0xff99[123]]== mxConstants[_0xff99[1687]]?_0xf598x2[_0xff99[236]]:this[_0xff99[123]]== mxConstants[_0xff99[481]]?_0xf598x2[_0xff99[236]]+ _0xf598x2[_0xff99[119]]/ 2:_0xf598x2[_0xff99[236]]+ _0xf598x2[_0xff99[119]]);return new mxRectangle(Math[_0xff99[488]](_0xf598x5[_0xff99[235]]- (_0xf598x9* this[_0xff99[2354]]- this[_0xff99[1368]][_0xff99[235]])* _0xf598x4),Math[_0xff99[488]](_0xf598x5[_0xff99[236]]- (_0xf598xa* this[_0xff99[2354]]- this[_0xff99[1368]][_0xff99[236]])* _0xf598x4),_0xf598x9* _0xf598x4,_0xf598xa* _0xf598x4)};mxCellOverlay[_0xff99[202]][_0xff99[2591]]= function(){return this[_0xff99[2718]]};function mxOutline(_0xf598x2,_0xf598x3){this[_0xff99[1097]]= _0xf598x2;null!= _0xf598x3&& this[_0xff99[176]](_0xf598x3)}mxOutline[_0xff99[202]][_0xff99[1097]]= null;mxOutline[_0xff99[202]][_0xff99[2136]]= null;mxOutline[_0xff99[202]][_0xff99[2720]]= mxConstants[_0xff99[2333]];mxOutline[_0xff99[202]][_0xff99[984]]= !0;mxOutline[_0xff99[202]][_0xff99[2721]]= !0;mxOutline[_0xff99[202]][_0xff99[467]]= 10;mxOutline[_0xff99[202]][_0xff99[2722]]= 8;mxOutline[_0xff99[202]][_0xff99[2723]]= !1;mxOutline[_0xff99[202]][_0xff99[2724]]= null;mxOutline[_0xff99[202]][_0xff99[1063]]= !1;mxOutline[_0xff99[202]][_0xff99[176]]= function(_0xf598x2){this[_0xff99[2136]]= new mxGraph(_0xf598x2,this[_0xff99[1097]][_0xff99[502]](),this[_0xff99[2720]],this[_0xff99[1097]][_0xff99[2434]]());this[_0xff99[2136]][_0xff99[2206]]= !1;this[_0xff99[2136]][_0xff99[1012]]= !1;var _0xf598x3=this[_0xff99[2136]][_0xff99[1177]];this[_0xff99[2136]][_0xff99[1177]]= mxUtils[_0xff99[885]](this,function(_0xf598x2){!this[_0xff99[1063]]&& null!= this[_0xff99[2136]] && _0xf598x3[_0xff99[183]](this[_0xff99[2136]],arguments)});mxClient[_0xff99[48]]&& (_0xf598x2= this[_0xff99[2136]][_0xff99[249]]()[_0xff99[2051]]()[_0xff99[265]],_0xf598x2[_0xff99[57]](_0xff99[2725],_0xff99[2726]),_0xf598x2[_0xff99[57]](_0xff99[2727],_0xff99[2726]));this[_0xff99[2136]][_0xff99[2409]]= !1;this[_0xff99[2136]][_0xff99[995]](!1);this[_0xff99[2728]]= mxUtils[_0xff99[885]](this,function(_0xf598x2,_0xf598x3){!this[_0xff99[1063]]&& !this[_0xff99[1124]] && this[_0xff99[2729]]()});this[_0xff99[1097]][_0xff99[502]]()[_0xff99[169]](mxEvent.CHANGE,this[_0xff99[2728]]);this[_0xff99[2136]][_0xff99[1133]](this);_0xf598x2= this[_0xff99[1097]][_0xff99[249]]();_0xf598x2[_0xff99[169]](mxEvent.SCALE,this[_0xff99[2728]]);_0xf598x2[_0xff99[169]](mxEvent.TRANSLATE,this[_0xff99[2728]]);_0xf598x2[_0xff99[169]](mxEvent.SCALE_AND_TRANSLATE,this[_0xff99[2728]]);_0xf598x2[_0xff99[169]](mxEvent.DOWN,this[_0xff99[2728]]);_0xf598x2[_0xff99[169]](mxEvent.UP,this[_0xff99[2728]]);mxEvent[_0xff99[169]](this[_0xff99[1097]][_0xff99[526]],_0xff99[276],this[_0xff99[2728]]);this[_0xff99[2730]]= mxUtils[_0xff99[885]](this,function(_0xf598x2){this[_0xff99[2723]]&& this[_0xff99[2728]][_0xff99[183]](this,arguments)});this[_0xff99[1097]][_0xff99[169]](mxEvent.PAN,this[_0xff99[2730]]);this[_0xff99[2731]]= mxUtils[_0xff99[885]](this,function(_0xf598x2){this[_0xff99[2136]][_0xff99[2341]](this[_0xff99[1097]][_0xff99[2434]]());this[_0xff99[2136]][_0xff99[802]]()});this[_0xff99[1097]][_0xff99[169]](mxEvent.REFRESH,this[_0xff99[2731]]);this[_0xff99[1562]]= new mxRectangle(0,0,0,0);this[_0xff99[2732]]= new mxRectangleShape(this[_0xff99[1562]],null,mxConstants.OUTLINE_COLOR,mxConstants.OUTLINE_STROKEWIDTH);this[_0xff99[2732]][_0xff99[507]]= this[_0xff99[2136]][_0xff99[507]]!= mxConstants[_0xff99[508]]?mxConstants[_0xff99[1523]]:mxConstants[_0xff99[508]];this[_0xff99[2732]][_0xff99[176]](this[_0xff99[2136]][_0xff99[249]]()[_0xff99[1524]]());mxEvent[_0xff99[2733]](this[_0xff99[2732]][_0xff99[252]],this[_0xff99[2136]]);this[_0xff99[2732]][_0xff99[252]][_0xff99[124]][_0xff99[1537]]= _0xff99[110];this[_0xff99[2734]]= this[_0xff99[2735]]();this[_0xff99[2734]][_0xff99[176]](this[_0xff99[2136]][_0xff99[249]]()[_0xff99[1524]]());this[_0xff99[984]]&& (this[_0xff99[2734]][_0xff99[252]][_0xff99[124]][_0xff99[270]]= _0xff99[356]);mxEvent[_0xff99[169]](this[_0xff99[2734]][_0xff99[252]],mxClient[_0xff99[754]]?_0xff99[755]:_0xff99[751],mxUtils[_0xff99[885]](this,function(_0xf598x2){this[_0xff99[2136]][_0xff99[758]](mxEvent.MOUSE_DOWN, new mxMouseEvent(_0xf598x2))}));this[_0xff99[2732]][_0xff99[252]][_0xff99[124]][_0xff99[495]]= this[_0xff99[2721]]?_0xff99[110]:_0xff99[130];this[_0xff99[2734]][_0xff99[252]][_0xff99[124]][_0xff99[495]]= this[_0xff99[2732]][_0xff99[252]][_0xff99[124]][_0xff99[495]];this[_0xff99[2732]][_0xff99[252]][_0xff99[124]][_0xff99[270]]= _0xff99[582];this[_0xff99[2729]](!1)};mxOutline[_0xff99[202]][_0xff99[994]]= function(){return this[_0xff99[984]]};mxOutline[_0xff99[202]][_0xff99[995]]= function(_0xf598x2){this[_0xff99[984]]= _0xf598x2};mxOutline[_0xff99[202]][_0xff99[2736]]= function(_0xf598x2){this[_0xff99[2734]][_0xff99[252]][_0xff99[124]][_0xff99[187]]= _0xf598x2?_0xff99[189]:_0xff99[188]};mxOutline[_0xff99[202]][_0xff99[802]]= function(){this[_0xff99[2729]](!0)};mxOutline[_0xff99[202]][_0xff99[2735]]= function(){var _0xf598x2=null!= this[_0xff99[2724]]? new mxImageShape( new mxRectangle(0,0,this[_0xff99[2724]][_0xff99[117]],this[_0xff99[2724]][_0xff99[119]]),this[_0xff99[2724]][_0xff99[390]]): new mxRectangleShape( new mxRectangle(0,0,this[_0xff99[2722]],this[_0xff99[2722]]),mxConstants.OUTLINE_HANDLE_FILLCOLOR,mxConstants.OUTLINE_HANDLE_STROKECOLOR);_0xf598x2[_0xff99[507]]= this[_0xff99[2136]][_0xff99[507]];return _0xf598x2};mxOutline[_0xff99[202]][_0xff99[2737]]= function(){return new mxRectangle(0,0,this[_0xff99[1097]][_0xff99[526]][_0xff99[1526]],this[_0xff99[1097]][_0xff99[526]][_0xff99[191]])};mxOutline[_0xff99[202]][_0xff99[2738]]= function(_0xf598x2){return null};mxOutline[_0xff99[202]][_0xff99[2729]]= function(_0xf598x2){if(null!= this[_0xff99[1097]]){var _0xf598x3=this[_0xff99[1097]][_0xff99[441]][_0xff99[255]],_0xf598x4=this[_0xff99[1097]][_0xff99[517]](),_0xf598x4= new mxRectangle(_0xf598x4[_0xff99[235]]/ _0xf598x3+ this[_0xff99[1097]][_0xff99[1136]],_0xf598x4[_0xff99[236]]/ _0xf598x3+ this[_0xff99[1097]][_0xff99[1137]],_0xf598x4[_0xff99[117]]/ _0xf598x3,_0xf598x4[_0xff99[119]]/ _0xf598x3),_0xf598x5= new mxRectangle(0,0,this[_0xff99[1097]][_0xff99[526]][_0xff99[159]]/ _0xf598x3,this[_0xff99[1097]][_0xff99[526]][_0xff99[157]]/ _0xf598x3),_0xf598x9=_0xf598x4[_0xff99[238]]();_0xf598x9[_0xff99[99]](_0xf598x5);var _0xf598xa=this[_0xff99[2737]](),_0xf598x5=Math[_0xff99[160]](_0xf598xa[_0xff99[117]]/ _0xf598x3,_0xf598x9[_0xff99[117]]),_0xf598x3=Math[_0xff99[160]](_0xf598xa[_0xff99[119]]/ _0xf598x3,_0xf598x9[_0xff99[119]]),_0xf598x9=Math[_0xff99[160]](0,this[_0xff99[2136]][_0xff99[526]][_0xff99[159]]- this[_0xff99[467]]),_0xf598xa=Math[_0xff99[160]](0,this[_0xff99[2136]][_0xff99[526]][_0xff99[157]]- this[_0xff99[467]]),_0xf598x9=Math[_0xff99[243]](_0xf598x9/ _0xf598x5,_0xf598xa/ _0xf598x3);if(0< _0xf598x9){this[_0xff99[2136]][_0xff99[249]]()[_0xff99[255]]!= _0xf598x9&& (this[_0xff99[2136]][_0xff99[249]]()[_0xff99[255]]= _0xf598x9,_0xf598x2= !0);_0xf598x5= this[_0xff99[2136]][_0xff99[249]]();_0xf598x5[_0xff99[1741]]!= this[_0xff99[1097]][_0xff99[249]]()[_0xff99[1741]]&& _0xf598x5[_0xff99[2257]](this[_0xff99[1097]][_0xff99[249]]()[_0xff99[1741]]);var _0xf598x3=this[_0xff99[1097]][_0xff99[441]][_0xff99[513]],_0xf598xa=_0xf598x3[_0xff99[235]]+ this[_0xff99[1097]][_0xff99[1136]],_0xf598x12=_0xf598x3[_0xff99[236]]+ this[_0xff99[1097]][_0xff99[1137]],_0xf598x9=this[_0xff99[2738]](_0xf598x9);null!= _0xf598x9&& (_0xf598xa+= _0xf598x9[_0xff99[235]],_0xf598x12+= _0xf598x9[_0xff99[236]]);0> _0xf598x4[_0xff99[235]]&& (_0xf598xa-= _0xf598x4[_0xff99[235]]);0> _0xf598x4[_0xff99[236]]&& (_0xf598x12-= _0xf598x4[_0xff99[236]]);if(_0xf598x5[_0xff99[513]][_0xff99[235]]!= _0xf598xa|| _0xf598x5[_0xff99[513]][_0xff99[236]]!= _0xf598x12){_0xf598x5[_0xff99[513]][_0xff99[235]]= _0xf598xa,_0xf598x5[_0xff99[513]][_0xff99[236]]= _0xf598x12,_0xf598x2= !0};var _0xf598x4=_0xf598x5[_0xff99[513]],_0xf598x9=this[_0xff99[1097]][_0xff99[249]]()[_0xff99[255]],_0xf598xa=_0xf598x9/ _0xf598x5[_0xff99[255]],_0xf598x12=1/ _0xf598x5[_0xff99[255]],_0xf598x13=this[_0xff99[1097]][_0xff99[526]];this[_0xff99[1562]]= new mxRectangle((_0xf598x4[_0xff99[235]]- _0xf598x3[_0xff99[235]]- this[_0xff99[1097]][_0xff99[1136]])/ _0xf598x12,(_0xf598x4[_0xff99[236]]- _0xf598x3[_0xff99[236]]- this[_0xff99[1097]][_0xff99[1137]])/ _0xf598x12,_0xf598x13[_0xff99[159]]/ _0xf598xa,_0xf598x13[_0xff99[157]]/ _0xf598xa);this[_0xff99[1562]][_0xff99[235]]+= this[_0xff99[1097]][_0xff99[526]][_0xff99[360]]* _0xf598x5[_0xff99[255]]/ _0xf598x9;this[_0xff99[1562]][_0xff99[236]]+= this[_0xff99[1097]][_0xff99[526]][_0xff99[190]]* _0xf598x5[_0xff99[255]]/ _0xf598x9;_0xf598x4= this[_0xff99[2732]][_0xff99[1562]];if(_0xf598x4[_0xff99[235]]!= this[_0xff99[1562]][_0xff99[235]]|| _0xf598x4[_0xff99[236]]!= this[_0xff99[1562]][_0xff99[236]]|| _0xf598x4[_0xff99[117]]!= this[_0xff99[1562]][_0xff99[117]]|| _0xf598x4[_0xff99[119]]!= this[_0xff99[1562]][_0xff99[119]]){this[_0xff99[2732]][_0xff99[1562]]= this[_0xff99[1562]],this[_0xff99[2732]][_0xff99[258]]()};_0xf598x4= this[_0xff99[2734]][_0xff99[1562]];_0xf598x5= new mxRectangle(this[_0xff99[1562]][_0xff99[235]]+ this[_0xff99[1562]][_0xff99[117]]- _0xf598x4[_0xff99[117]]/ 2,this[_0xff99[1562]][_0xff99[236]]+ this[_0xff99[1562]][_0xff99[119]]- _0xf598x4[_0xff99[119]]/ 2,_0xf598x4[_0xff99[117]],_0xf598x4[_0xff99[119]]);if(_0xf598x4[_0xff99[235]]!= _0xf598x5[_0xff99[235]]|| _0xf598x4[_0xff99[236]]!= _0xf598x5[_0xff99[236]]|| _0xf598x4[_0xff99[117]]!= _0xf598x5[_0xff99[117]]|| _0xf598x4[_0xff99[119]]!= _0xf598x5[_0xff99[119]]){this[_0xff99[2734]][_0xff99[1562]]= _0xf598x5,_0xff99[188]!= this[_0xff99[2734]][_0xff99[252]][_0xff99[124]][_0xff99[187]]&& this[_0xff99[2734]][_0xff99[258]]()};_0xf598x2&& this[_0xff99[2136]][_0xff99[441]][_0xff99[2259]]()}}};mxOutline[_0xff99[202]][_0xff99[787]]= function(_0xf598x2,_0xf598x3){this[_0xff99[984]]&& this[_0xff99[2721]]&& (this[_0xff99[499]]= _0xf598x3[_0xff99[729]](this[_0xff99[2734]]),this[_0xff99[2739]]= _0xf598x3[_0xff99[730]](),this[_0xff99[2740]]= _0xf598x3[_0xff99[732]](),this[_0xff99[1124]]= !0,this[_0xff99[1097]][_0xff99[2365]]&& mxUtils[_0xff99[1134]](this[_0xff99[1097]][_0xff99[526]])?(this[_0xff99[2741]]= this[_0xff99[1097]][_0xff99[526]][_0xff99[360]],this[_0xff99[2742]]= this[_0xff99[1097]][_0xff99[526]][_0xff99[190]]):this[_0xff99[2742]]= this[_0xff99[2741]]= 0);_0xf598x3[_0xff99[722]]()};mxOutline[_0xff99[202]][_0xff99[788]]= function(_0xf598x2,_0xf598x3){if(this[_0xff99[1124]]){this[_0xff99[2732]][_0xff99[252]][_0xff99[124]][_0xff99[495]]= this[_0xff99[2721]]?_0xff99[110]:_0xff99[130];this[_0xff99[2734]][_0xff99[252]][_0xff99[124]][_0xff99[495]]= this[_0xff99[2732]][_0xff99[252]][_0xff99[124]][_0xff99[495]];var _0xf598x4=_0xf598x3[_0xff99[730]]()- this[_0xff99[2739]],_0xf598x5=_0xf598x3[_0xff99[732]]()- this[_0xff99[2740]],_0xf598x9=null;if(this[_0xff99[499]]){_0xf598x9= this[_0xff99[1097]][_0xff99[526]],_0xf598x5= _0xf598x4/ (_0xf598x9[_0xff99[159]]/ _0xf598x9[_0xff99[157]]),_0xf598x9= new mxRectangle(this[_0xff99[1562]][_0xff99[235]],this[_0xff99[1562]][_0xff99[236]],Math[_0xff99[160]](1,this[_0xff99[1562]][_0xff99[117]]+ _0xf598x4),Math[_0xff99[160]](1,this[_0xff99[1562]][_0xff99[119]]+ _0xf598x5)),this[_0xff99[2732]][_0xff99[1562]]= _0xf598x9,this[_0xff99[2732]][_0xff99[258]]()}else {var _0xf598xa=this[_0xff99[2136]][_0xff99[249]]()[_0xff99[255]],_0xf598x9= new mxRectangle(this[_0xff99[1562]][_0xff99[235]]+ _0xf598x4,this[_0xff99[1562]][_0xff99[236]]+ _0xf598x5,this[_0xff99[1562]][_0xff99[117]],this[_0xff99[1562]][_0xff99[119]]);this[_0xff99[2732]][_0xff99[1562]]= _0xf598x9;this[_0xff99[2732]][_0xff99[258]]();_0xf598x4= _0xf598x4/ _0xf598xa* this[_0xff99[1097]][_0xff99[249]]()[_0xff99[255]];_0xf598x5= _0xf598x5/ _0xf598xa* this[_0xff99[1097]][_0xff99[249]]()[_0xff99[255]];this[_0xff99[1097]][_0xff99[1135]](-_0xf598x4- this[_0xff99[2741]],-_0xf598x5- this[_0xff99[2742]])};_0xf598x4= this[_0xff99[2734]][_0xff99[1562]];this[_0xff99[2734]][_0xff99[1562]]= new mxRectangle(_0xf598x9[_0xff99[235]]+ _0xf598x9[_0xff99[117]]- _0xf598x4[_0xff99[117]]/ 2,_0xf598x9[_0xff99[236]]+ _0xf598x9[_0xff99[119]]- _0xf598x4[_0xff99[119]]/ 2,_0xf598x4[_0xff99[117]],_0xf598x4[_0xff99[119]]);_0xff99[188]!= this[_0xff99[2734]][_0xff99[252]][_0xff99[124]][_0xff99[187]]&& this[_0xff99[2734]][_0xff99[258]]();_0xf598x3[_0xff99[722]]()}};mxOutline[_0xff99[202]][_0xff99[789]]= function(_0xf598x2,_0xf598x3){if(this[_0xff99[1124]]){var _0xf598x4=_0xf598x3[_0xff99[730]]()- this[_0xff99[2739]],_0xf598x5=_0xf598x3[_0xff99[732]]()- this[_0xff99[2740]];if(0< Math[_0xff99[425]](_0xf598x4)|| 0< Math[_0xff99[425]](_0xf598x5)){if(this[_0xff99[499]]){var _0xf598x5=this[_0xff99[2732]][_0xff99[1562]][_0xff99[117]],_0xf598x9=this[_0xff99[1097]][_0xff99[249]]()[_0xff99[255]];this[_0xff99[1097]][_0xff99[2561]](_0xf598x9- _0xf598x4* _0xf598x9/ _0xf598x5,!1)}else {if(!this[_0xff99[1097]][_0xff99[2365]]|| !mxUtils[_0xff99[1134]](this[_0xff99[1097]][_0xff99[526]])){this[_0xff99[1097]][_0xff99[1135]](0,0),_0xf598x4/= this[_0xff99[2136]][_0xff99[249]]()[_0xff99[255]],_0xf598x5/= this[_0xff99[2136]][_0xff99[249]]()[_0xff99[255]],_0xf598x9= this[_0xff99[1097]][_0xff99[249]]()[_0xff99[513]],this[_0xff99[1097]][_0xff99[249]]()[_0xff99[1147]](_0xf598x9[_0xff99[235]]- _0xf598x4,_0xf598x9[_0xff99[236]]- _0xf598x5)}};this[_0xff99[2729]]();_0xf598x3[_0xff99[722]]()};this[_0xff99[1983]]= null;this[_0xff99[1124]]= !1}};mxOutline[_0xff99[202]][_0xff99[515]]= function(){null!= this[_0xff99[1097]]&& (this[_0xff99[1097]][_0xff99[745]](this[_0xff99[2730]]),this[_0xff99[1097]][_0xff99[745]](this[_0xff99[2731]]),this[_0xff99[1097]][_0xff99[502]]()[_0xff99[745]](this[_0xff99[2728]]),this[_0xff99[1097]][_0xff99[249]]()[_0xff99[745]](this[_0xff99[2728]]),mxEvent[_0xff99[169]](this[_0xff99[1097]][_0xff99[526]],_0xff99[276],this[_0xff99[2728]]),this[_0xff99[1097]]= null);null!= this[_0xff99[2136]]&& (this[_0xff99[2136]][_0xff99[1148]](this),this[_0xff99[2136]][_0xff99[515]](),this[_0xff99[2136]]= null);null!= this[_0xff99[2732]]&& (this[_0xff99[2732]][_0xff99[515]](),this[_0xff99[2732]]= null);null!= this[_0xff99[2734]]&& (this[_0xff99[2734]][_0xff99[515]](),this[_0xff99[2734]]= null)};function mxMultiplicity(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa,_0xf598x12,_0xf598x13,_0xf598x14,_0xf598x15){this[_0xff99[1097]]= _0xf598x2;this[_0xff99[60]]= _0xf598x3;this[_0xff99[2588]]= _0xf598x4;this[_0xff99[131]]= _0xf598x5;this[_0xff99[243]]= null!= _0xf598x9?_0xf598x9:0;this[_0xff99[160]]= null!= _0xf598xa?_0xf598xa:_0xff99[2743];this[_0xff99[2744]]= _0xf598x12;this[_0xff99[2589]]= mxResources[_0xff99[203]](_0xf598x13)|| _0xf598x13;this[_0xff99[2745]]= mxResources[_0xff99[203]](_0xf598x14)|| _0xf598x14;this[_0xff99[2746]]= null!= _0xf598x15?_0xf598x15:!0}mxMultiplicity[_0xff99[202]][_0xff99[60]]= null;mxMultiplicity[_0xff99[202]][_0xff99[2588]]= null;mxMultiplicity[_0xff99[202]][_0xff99[131]]= null;mxMultiplicity[_0xff99[202]][_0xff99[1097]]= null;mxMultiplicity[_0xff99[202]][_0xff99[243]]= null;mxMultiplicity[_0xff99[202]][_0xff99[160]]= null;mxMultiplicity[_0xff99[202]][_0xff99[2744]]= null;mxMultiplicity[_0xff99[202]][_0xff99[2746]]= !0;mxMultiplicity[_0xff99[202]][_0xff99[2589]]= null;mxMultiplicity[_0xff99[202]][_0xff99[2745]]= null;mxMultiplicity[_0xff99[202]][_0xff99[2583]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa){var _0xf598x12=_0xff99[110];if(this[_0xff99[1097]]&& this[_0xff99[2747]](_0xf598x2,_0xf598x4,_0xf598x3)|| !this[_0xff99[1097]]&& this[_0xff99[2747]](_0xf598x2,_0xf598x5,_0xf598x3)){if(null!= this[_0xff99[2589]]&& (this[_0xff99[1097]]&& (0== this[_0xff99[160]]|| _0xf598x9>= this[_0xff99[160]])|| !this[_0xff99[1097]]&& (0== this[_0xff99[160]]|| _0xf598xa>= this[_0xff99[160]]))){_0xf598x12+= this[_0xff99[2589]]+ _0xff99[192]};null!= this[_0xff99[2744]]&& (null!= this[_0xff99[2745]]&& 0< this[_0xff99[2744]][_0xff99[67]])&& (this[_0xff99[2748]](_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5)|| (_0xf598x12+= this[_0xff99[2745]]+ _0xff99[192]))};return 0< _0xf598x12[_0xff99[67]]?_0xf598x12:null};mxMultiplicity[_0xff99[202]][_0xff99[2748]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){_0xf598x3= _0xf598x2[_0xff99[251]][_0xff99[433]](_0xf598x4);_0xf598x5= _0xf598x2[_0xff99[251]][_0xff99[433]](_0xf598x5);_0xf598x4= !this[_0xff99[2746]];for(var _0xf598x9=this[_0xff99[2744]],_0xf598xa=0;_0xf598xa< _0xf598x9[_0xff99[67]];_0xf598xa++){if(this[_0xff99[1097]]&& this[_0xff99[2749]](_0xf598x2,_0xf598x5,_0xf598x9[_0xf598xa])){_0xf598x4= this[_0xff99[2746]];break}else {if(!this[_0xff99[1097]]&& this[_0xff99[2749]](_0xf598x2,_0xf598x3,_0xf598x9[_0xf598xa])){_0xf598x4= this[_0xff99[2746]];break}}};return _0xf598x4};mxMultiplicity[_0xff99[202]][_0xff99[2747]]= function(_0xf598x2,_0xf598x3,_0xf598x4){_0xf598x3= _0xf598x2[_0xff99[251]][_0xff99[433]](_0xf598x3);return this[_0xff99[2749]](_0xf598x2,_0xf598x3,this[_0xff99[60]],this[_0xff99[2588]],this[_0xff99[131]])};mxMultiplicity[_0xff99[202]][_0xff99[2749]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){return null!= _0xf598x3?isNaN(_0xf598x3[_0xff99[288]])?_0xf598x3== _0xf598x4:mxUtils[_0xff99[1331]](_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9):!1};function mxLayoutManager(_0xf598x2){this[_0xff99[2750]]= mxUtils[_0xff99[885]](this,function(_0xf598x2,_0xf598x4){this[_0xff99[994]]()&& this[_0xff99[823]](_0xf598x4[_0xff99[720]](_0xff99[1061]))});this[_0xff99[2317]]= mxUtils[_0xff99[885]](this,function(_0xf598x2,_0xf598x4){this[_0xff99[994]]()&& this[_0xff99[835]](_0xf598x4[_0xff99[720]](_0xff99[895]),_0xf598x4[_0xff99[720]](_0xff99[763]))});this[_0xff99[1178]](_0xf598x2)}mxLayoutManager[_0xff99[202]]= new mxEventSource;mxLayoutManager[_0xff99[202]][_0xff99[196]]= mxLayoutManager;mxLayoutManager[_0xff99[202]][_0xff99[1179]]= null;mxLayoutManager[_0xff99[202]][_0xff99[2751]]= !0;mxLayoutManager[_0xff99[202]][_0xff99[984]]= !0;mxLayoutManager[_0xff99[202]][_0xff99[2728]]= null;mxLayoutManager[_0xff99[202]][_0xff99[2317]]= null;mxLayoutManager[_0xff99[202]][_0xff99[994]]= function(){return this[_0xff99[984]]};mxLayoutManager[_0xff99[202]][_0xff99[995]]= function(_0xf598x2){this[_0xff99[984]]= _0xf598x2};mxLayoutManager[_0xff99[202]][_0xff99[2752]]= function(){return this[_0xff99[2751]]};mxLayoutManager[_0xff99[202]][_0xff99[2753]]= function(_0xf598x2){this[_0xff99[2751]]= _0xf598x2};mxLayoutManager[_0xff99[202]][_0xff99[1703]]= function(){return this[_0xff99[1179]]};mxLayoutManager[_0xff99[202]][_0xff99[1178]]= function(_0xf598x2){if(null!= this[_0xff99[1179]]){var _0xf598x3=this[_0xff99[1179]][_0xff99[502]]();_0xf598x3[_0xff99[745]](this[_0xff99[2750]]);this[_0xff99[1179]][_0xff99[745]](this[_0xff99[2317]])};this[_0xff99[1179]]= _0xf598x2;null!= this[_0xff99[1179]]&& (_0xf598x3= this[_0xff99[1179]][_0xff99[502]](),_0xf598x3[_0xff99[169]](mxEvent.BEFORE_UNDO,this[_0xff99[2750]]),this[_0xff99[1179]][_0xff99[169]](mxEvent.MOVE_CELLS,this[_0xff99[2317]]))};mxLayoutManager[_0xff99[202]][_0xff99[2754]]= function(_0xf598x2){return null};mxLayoutManager[_0xff99[202]][_0xff99[823]]= function(_0xf598x2){_0xf598x2= this[_0xff99[2755]](_0xf598x2[_0xff99[1065]]);var _0xf598x3=this[_0xff99[1703]]()[_0xff99[502]]();if(this[_0xff99[2752]]()){for(var _0xf598x4=_0xf598x3[_0xff99[1977]](_0xf598x2);0< _0xf598x4[_0xff99[67]];){_0xf598x2= _0xf598x2[_0xff99[1919]](_0xf598x4),_0xf598x4= _0xf598x3[_0xff99[1977]](_0xf598x4)}};this[_0xff99[828]](mxUtils[_0xff99[1779]](_0xf598x2,!1))};mxLayoutManager[_0xff99[202]][_0xff99[835]]= function(_0xf598x2,_0xf598x3){if(null!= _0xf598x2&& null!= _0xf598x3){for(var _0xf598x4=mxUtils[_0xff99[2196]](this[_0xff99[1703]]()[_0xff99[526]],mxEvent[_0xff99[731]](_0xf598x3),mxEvent[_0xff99[733]](_0xf598x3)),_0xf598x5=this[_0xff99[1703]]()[_0xff99[502]](),_0xf598x9=0;_0xf598x9< _0xf598x2[_0xff99[67]];_0xf598x9++){var _0xf598xa=this[_0xff99[2754]](_0xf598x5[_0xff99[1197]](_0xf598x2[_0xf598x9]));null!= _0xf598xa&& _0xf598xa[_0xff99[1702]](_0xf598x2[_0xf598x9],_0xf598x4[_0xff99[235]],_0xf598x4[_0xff99[236]])}}};mxLayoutManager[_0xff99[202]][_0xff99[2755]]= function(_0xf598x2){for(var _0xf598x3=[],_0xf598x4={},_0xf598x5=0;_0xf598x5< _0xf598x2[_0xff99[67]];_0xf598x5++){var _0xf598x9=_0xf598x2[_0xf598x5];if(_0xf598x9 instanceof mxRootChange){return []};for(var _0xf598x9=this[_0xff99[2756]](_0xf598x9),_0xf598xa=0;_0xf598xa< _0xf598x9[_0xff99[67]];_0xf598xa++){if(null!= _0xf598x9[_0xf598xa]){var _0xf598x12=mxCellPath[_0xff99[385]](_0xf598x9[_0xf598xa]);null== _0xf598x4[_0xf598x12]&& (_0xf598x4[_0xf598x12]= _0xf598x9[_0xf598xa],_0xf598x3[_0xff99[207]](_0xf598x9[_0xf598xa]))}}};return _0xf598x3};mxLayoutManager[_0xff99[202]][_0xff99[2756]]= function(_0xf598x2){var _0xf598x3=this[_0xff99[1703]]()[_0xff99[502]]();return _0xf598x2 instanceof mxChildChange?[_0xf598x2[_0xff99[247]],_0xf598x2[_0xff99[257]],_0xf598x3[_0xff99[1197]](_0xf598x2[_0xff99[247]])]:_0xf598x2 instanceof mxTerminalChange|| _0xf598x2 instanceof mxGeometryChange?[_0xf598x2[_0xff99[246]],_0xf598x3[_0xff99[1197]](_0xf598x2[_0xff99[246]])]:[]};mxLayoutManager[_0xff99[202]][_0xff99[828]]= function(_0xf598x2){if(0< _0xf598x2[_0xff99[67]]){var _0xf598x3=this[_0xff99[1703]]()[_0xff99[502]]();_0xf598x3[_0xff99[473]]();try{for(var _0xf598x4=null,_0xf598x5=0;_0xf598x5< _0xf598x2[_0xff99[67]];_0xf598x5++){_0xf598x2[_0xf598x5]!= _0xf598x3[_0xff99[501]]()&& _0xf598x2[_0xf598x5]!= _0xf598x4&& (_0xf598x4= _0xf598x2[_0xf598x5],this[_0xff99[2757]](this[_0xff99[2754]](_0xf598x4),_0xf598x4))};this[_0xff99[746]]( new mxEventObject(mxEvent.LAYOUT_CELLS,_0xff99[895],_0xf598x2))}finally{_0xf598x3[_0xff99[476]]()}}};mxLayoutManager[_0xff99[202]][_0xff99[2757]]= function(_0xf598x2,_0xf598x3){null!= _0xf598x2&& null!= _0xf598x3&& _0xf598x2[_0xff99[350]](_0xf598x3)};mxLayoutManager[_0xff99[202]][_0xff99[515]]= function(){this[_0xff99[1178]](null)};function mxSpaceManager(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){this[_0xff99[2758]]= mxUtils[_0xff99[885]](this,function(_0xf598x2,_0xf598x3){this[_0xff99[994]]()&& this[_0xff99[837]](_0xf598x3[_0xff99[720]](_0xff99[895]))});this[_0xff99[2759]]= mxUtils[_0xff99[885]](this,function(_0xf598x2,_0xf598x3){this[_0xff99[994]]()&& this[_0xff99[837]](_0xf598x3[_0xff99[720]](_0xff99[895]))});this[_0xff99[2760]]= null!= _0xf598x3?_0xf598x3:!0;this[_0xff99[2761]]= null!= _0xf598x4?_0xf598x4:!0;this[_0xff99[2392]]= null!= _0xf598x5?_0xf598x5:!0;this[_0xff99[1178]](_0xf598x2)}mxSpaceManager[_0xff99[202]]= new mxEventSource;mxSpaceManager[_0xff99[202]][_0xff99[196]]= mxSpaceManager;mxSpaceManager[_0xff99[202]][_0xff99[1179]]= null;mxSpaceManager[_0xff99[202]][_0xff99[984]]= !0;mxSpaceManager[_0xff99[202]][_0xff99[2760]]= !0;mxSpaceManager[_0xff99[202]][_0xff99[2761]]= !0;mxSpaceManager[_0xff99[202]][_0xff99[2392]]= !0;mxSpaceManager[_0xff99[202]][_0xff99[2758]]= null;mxSpaceManager[_0xff99[202]][_0xff99[2759]]= null;mxSpaceManager[_0xff99[202]][_0xff99[2762]]= function(_0xf598x2){return !this[_0xff99[1703]]()[_0xff99[502]]()[_0xff99[1193]](_0xf598x2)};mxSpaceManager[_0xff99[202]][_0xff99[2763]]= function(_0xf598x2){return this[_0xff99[1703]]()[_0xff99[502]]()[_0xff99[1193]](_0xf598x2)&& this[_0xff99[1703]]()[_0xff99[1712]](_0xf598x2)};mxSpaceManager[_0xff99[202]][_0xff99[994]]= function(){return this[_0xff99[984]]};mxSpaceManager[_0xff99[202]][_0xff99[995]]= function(_0xf598x2){this[_0xff99[984]]= _0xf598x2};mxSpaceManager[_0xff99[202]][_0xff99[2764]]= function(){return this[_0xff99[2760]]};mxSpaceManager[_0xff99[202]][_0xff99[2765]]= function(_0xf598x2){this[_0xff99[2760]]= _0xf598x2};mxSpaceManager[_0xff99[202]][_0xff99[2766]]= function(){return this[_0xff99[2761]]};mxSpaceManager[_0xff99[202]][_0xff99[2767]]= function(_0xf598x2){this[_0xff99[2761]]= _0xf598x2};mxSpaceManager[_0xff99[202]][_0xff99[2678]]= function(){return this[_0xff99[2392]]};mxSpaceManager[_0xff99[202]][_0xff99[2679]]= function(_0xf598x2){this[_0xff99[2392]]= _0xf598x2};mxSpaceManager[_0xff99[202]][_0xff99[1703]]= function(){return this[_0xff99[1179]]};mxSpaceManager[_0xff99[202]][_0xff99[1178]]= function(_0xf598x2){null!= this[_0xff99[1179]]&& (this[_0xff99[1179]][_0xff99[745]](this[_0xff99[2758]]),this[_0xff99[1179]][_0xff99[745]](this[_0xff99[2759]]));this[_0xff99[1179]]= _0xf598x2;null!= this[_0xff99[1179]]&& (this[_0xff99[1179]][_0xff99[169]](mxEvent.RESIZE_CELLS,this[_0xff99[2758]]),this[_0xff99[1179]][_0xff99[169]](mxEvent.FOLD_CELLS,this[_0xff99[2759]]))};mxSpaceManager[_0xff99[202]][_0xff99[837]]= function(_0xf598x2){if(null!= _0xf598x2){var _0xf598x3=this[_0xff99[1179]][_0xff99[502]]();_0xf598x3[_0xff99[473]]();try{for(var _0xf598x4=0;_0xf598x4< _0xf598x2[_0xff99[67]];_0xf598x4++){if(!this[_0xff99[2762]](_0xf598x2[_0xf598x4])){this[_0xff99[2768]](_0xf598x2[_0xf598x4]);break}}}finally{_0xf598x3[_0xff99[476]]()}}};mxSpaceManager[_0xff99[202]][_0xff99[2768]]= function(_0xf598x2){var _0xf598x3=this[_0xff99[1703]](),_0xf598x4=_0xf598x3[_0xff99[249]](),_0xf598x5=_0xf598x3[_0xff99[502]](),_0xf598x9=_0xf598x4[_0xff99[248]](_0xf598x2),_0xf598xa=_0xf598x4[_0xff99[248]](_0xf598x5[_0xff99[1197]](_0xf598x2));if(null!= _0xf598x9&& null!= _0xf598xa){var _0xf598x12=this[_0xff99[2769]](_0xf598x9),_0xf598x13=_0xf598x5[_0xff99[1721]](_0xf598x2);if(null!= _0xf598x12&& null!= _0xf598x13){var _0xf598x14=_0xf598x4[_0xff99[513]],_0xf598x15=_0xf598x4[_0xff99[255]],_0xf598x4=_0xf598x9[_0xff99[235]]- _0xf598xa[_0xff99[2078]][_0xff99[235]]- _0xf598x14[_0xff99[235]]* _0xf598x15,_0xf598xa=_0xf598x9[_0xff99[236]]- _0xf598xa[_0xff99[2078]][_0xff99[236]]- _0xf598x14[_0xff99[236]]* _0xf598x15,_0xf598x14=_0xf598x9[_0xff99[235]]+ _0xf598x9[_0xff99[117]],_0xf598x16=_0xf598x9[_0xff99[236]]+ _0xf598x9[_0xff99[119]],_0xf598x17=_0xf598x9[_0xff99[117]]- _0xf598x13[_0xff99[117]]* _0xf598x15+ _0xf598x4- _0xf598x13[_0xff99[235]]* _0xf598x15,_0xf598x18=_0xf598x9[_0xff99[119]]- _0xf598x13[_0xff99[119]]* _0xf598x15+ _0xf598xa- _0xf598x13[_0xff99[236]]* _0xf598x15,_0xf598x19=1- _0xf598x13[_0xff99[117]]* _0xf598x15/ _0xf598x9[_0xff99[117]],_0xf598x9=1- _0xf598x13[_0xff99[119]]* _0xf598x15/ _0xf598x9[_0xff99[119]];_0xf598x5[_0xff99[473]]();try{for(_0xf598x13= 0;_0xf598x13< _0xf598x12[_0xff99[67]];_0xf598x13++){_0xf598x12[_0xf598x13]!= _0xf598x2&& this[_0xff99[2763]](_0xf598x12[_0xf598x13])&& this[_0xff99[2770]](_0xf598x12[_0xf598x13],_0xf598x17,_0xf598x18,_0xf598x4,_0xf598xa,_0xf598x14,_0xf598x16,_0xf598x19,_0xf598x9,this[_0xff99[2678]]()&& _0xf598x3[_0xff99[2507]](_0xf598x12[_0xf598x13]))}}finally{_0xf598x5[_0xff99[476]]()}}}};mxSpaceManager[_0xff99[202]][_0xff99[2770]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa,_0xf598x12,_0xf598x13,_0xf598x14,_0xf598x15){_0xf598x5= this[_0xff99[1703]]();var _0xf598x16=_0xf598x5[_0xff99[249]]()[_0xff99[248]](_0xf598x2);if(null!= _0xf598x16){var _0xf598x17=_0xf598x5[_0xff99[502]](),_0xf598x18=_0xf598x17[_0xff99[1721]](_0xf598x2);if(null!= _0xf598x18){_0xf598x17[_0xff99[473]]();try{if(this[_0xff99[2764]]()){if(_0xf598x16[_0xff99[235]]>= _0xf598xa){_0xf598x18= _0xf598x18[_0xff99[238]](),_0xf598x18[_0xff99[513]](-_0xf598x3,0)}else {var _0xf598x19=Math[_0xff99[160]](0,_0xf598x16[_0xff99[235]]- x0),_0xf598x18=_0xf598x18[_0xff99[238]]();_0xf598x18[_0xff99[513]](-_0xf598x13* _0xf598x19,0)}};if(this[_0xff99[2766]]()){if(_0xf598x16[_0xff99[236]]>= _0xf598x12){_0xf598x18= _0xf598x18[_0xff99[238]](),_0xf598x18[_0xff99[513]](0,-_0xf598x4)}else {var _0xf598x1a=Math[_0xff99[160]](0,_0xf598x16[_0xff99[236]]- _0xf598x9),_0xf598x18=_0xf598x18[_0xff99[238]]();_0xf598x18[_0xff99[513]](0,-_0xf598x14* _0xf598x1a)}};_0xf598x18!= _0xf598x17[_0xff99[1721]](_0xf598x2)&& (_0xf598x17[_0xff99[1724]](_0xf598x2,_0xf598x18),_0xf598x15&& _0xf598x5[_0xff99[2508]](_0xf598x2))}finally{_0xf598x17[_0xff99[476]]()}}}};mxSpaceManager[_0xff99[202]][_0xff99[2769]]= function(_0xf598x2){var _0xf598x3=this[_0xff99[1703]](),_0xf598x4=_0xf598x3[_0xff99[502]]()[_0xff99[1197]](_0xf598x2[_0xff99[246]]),_0xf598x5=this[_0xff99[2766]](),_0xf598x9=this[_0xff99[2764]]();return _0xf598x3[_0xff99[2691]](_0xf598x2[_0xff99[235]]+ (_0xf598x5?0:_0xf598x2[_0xff99[117]]),_0xf598x2[_0xff99[236]]+ (_0xf598x5&& _0xf598x9?0:_0xf598x2[_0xff99[119]]),_0xf598x4,_0xf598x9,_0xf598x5)};mxSpaceManager[_0xff99[202]][_0xff99[515]]= function(){this[_0xff99[1178]](null)};function mxSwimlaneManager(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){this[_0xff99[662]]= null!= _0xf598x3?_0xf598x3:!0;this[_0xff99[2771]]= null!= _0xf598x4?_0xf598x4:!0;this[_0xff99[2772]]= null!= _0xf598x5?_0xf598x5:!0;this[_0xff99[2773]]= mxUtils[_0xff99[885]](this,function(_0xf598x2,_0xf598x3){this[_0xff99[994]]()&& this[_0xff99[2774]]()&& this[_0xff99[833]](_0xf598x3[_0xff99[720]](_0xff99[895]))});this[_0xff99[2758]]= mxUtils[_0xff99[885]](this,function(_0xf598x2,_0xf598x3){this[_0xff99[994]]()&& this[_0xff99[2775]]()&& this[_0xff99[837]](_0xf598x3[_0xff99[720]](_0xff99[895]))});this[_0xff99[1178]](_0xf598x2)}mxSwimlaneManager[_0xff99[202]]= new mxEventSource;mxSwimlaneManager[_0xff99[202]][_0xff99[196]]= mxSwimlaneManager;mxSwimlaneManager[_0xff99[202]][_0xff99[1179]]= null;mxSwimlaneManager[_0xff99[202]][_0xff99[984]]= !0;mxSwimlaneManager[_0xff99[202]][_0xff99[662]]= !0;mxSwimlaneManager[_0xff99[202]][_0xff99[2771]]= !0;mxSwimlaneManager[_0xff99[202]][_0xff99[2772]]= !0;mxSwimlaneManager[_0xff99[202]][_0xff99[2773]]= null;mxSwimlaneManager[_0xff99[202]][_0xff99[2758]]= null;mxSwimlaneManager[_0xff99[202]][_0xff99[994]]= function(){return this[_0xff99[984]]};mxSwimlaneManager[_0xff99[202]][_0xff99[995]]= function(_0xf598x2){this[_0xff99[984]]= _0xf598x2};mxSwimlaneManager[_0xff99[202]][_0xff99[1737]]= function(){return this[_0xff99[662]]};mxSwimlaneManager[_0xff99[202]][_0xff99[2776]]= function(_0xf598x2){this[_0xff99[662]]= _0xf598x2};mxSwimlaneManager[_0xff99[202]][_0xff99[2774]]= function(){return this[_0xff99[2771]]};mxSwimlaneManager[_0xff99[202]][_0xff99[2777]]= function(_0xf598x2){this[_0xff99[2771]]= _0xf598x2};mxSwimlaneManager[_0xff99[202]][_0xff99[2775]]= function(){return this[_0xff99[2772]]};mxSwimlaneManager[_0xff99[202]][_0xff99[2778]]= function(_0xf598x2){this[_0xff99[2772]]= _0xf598x2};mxSwimlaneManager[_0xff99[202]][_0xff99[1703]]= function(){return this[_0xff99[1179]]};mxSwimlaneManager[_0xff99[202]][_0xff99[1178]]= function(_0xf598x2){null!= this[_0xff99[1179]]&& (this[_0xff99[1179]][_0xff99[745]](this[_0xff99[2773]]),this[_0xff99[1179]][_0xff99[745]](this[_0xff99[2758]]));this[_0xff99[1179]]= _0xf598x2;null!= this[_0xff99[1179]]&& (this[_0xff99[1179]][_0xff99[169]](mxEvent.ADD_CELLS,this[_0xff99[2773]]),this[_0xff99[1179]][_0xff99[169]](mxEvent.CELLS_RESIZED,this[_0xff99[2758]]))};mxSwimlaneManager[_0xff99[202]][_0xff99[2779]]= function(_0xf598x2){return !this[_0xff99[1703]]()[_0xff99[1730]](_0xf598x2)};mxSwimlaneManager[_0xff99[202]][_0xff99[2780]]= function(_0xf598x2){if(this[_0xff99[1179]][_0xff99[1730]](_0xf598x2)){var _0xf598x3=this[_0xff99[1179]][_0xff99[441]][_0xff99[248]](_0xf598x2);_0xf598x2= null!= _0xf598x3?_0xf598x3[_0xff99[124]]:this[_0xff99[1179]][_0xff99[1705]](_0xf598x2);return 1== mxUtils[_0xff99[433]](_0xf598x2,mxConstants.STYLE_HORIZONTAL,1)};return !this[_0xff99[1737]]()};mxSwimlaneManager[_0xff99[202]][_0xff99[833]]= function(_0xf598x2){if(null!= _0xf598x2){var _0xf598x3=this[_0xff99[1703]]()[_0xff99[502]]();_0xf598x3[_0xff99[473]]();try{for(var _0xf598x4=0;_0xf598x4< _0xf598x2[_0xff99[67]];_0xf598x4++){this[_0xff99[2779]](_0xf598x2[_0xf598x4])|| this[_0xff99[2781]](_0xf598x2[_0xf598x4])}}finally{_0xf598x3[_0xff99[476]]()}}};mxSwimlaneManager[_0xff99[202]][_0xff99[2781]]= function(_0xf598x2){for(var _0xf598x3=this[_0xff99[1703]]()[_0xff99[502]](),_0xf598x4=_0xf598x3[_0xff99[1197]](_0xf598x2),_0xf598x5=_0xf598x3[_0xff99[262]](_0xf598x4),_0xf598x9=null,_0xf598xa=0;_0xf598xa< _0xf598x5;_0xf598xa++){var _0xf598x12=_0xf598x3[_0xff99[263]](_0xf598x4,_0xf598xa);if(_0xf598x12!= _0xf598x2&& !this[_0xff99[2779]](_0xf598x12)&& (_0xf598x9= _0xf598x3[_0xff99[1721]](_0xf598x12),null!= _0xf598x9)){break}};null!= _0xf598x9&& this[_0xff99[2782]](_0xf598x2,_0xf598x9[_0xff99[117]],_0xf598x9[_0xff99[119]])};mxSwimlaneManager[_0xff99[202]][_0xff99[837]]= function(_0xf598x2){if(null!= _0xf598x2){var _0xf598x3=this[_0xff99[1703]]()[_0xff99[502]]();_0xf598x3[_0xff99[473]]();try{for(var _0xf598x4=0;_0xf598x4< _0xf598x2[_0xff99[67]];_0xf598x4++){if(!this[_0xff99[2779]](_0xf598x2[_0xf598x4])){var _0xf598x5=_0xf598x3[_0xff99[1721]](_0xf598x2[_0xf598x4]);if(null!= _0xf598x5){for(var _0xf598x9= new mxRectangle(0,0,_0xf598x5[_0xff99[117]],_0xf598x5[_0xff99[119]]),_0xf598xa=_0xf598x2[_0xf598x4],_0xf598x12=_0xf598xa;null!= _0xf598x12;){var _0xf598xa=_0xf598x12,_0xf598x12=_0xf598x3[_0xff99[1197]](_0xf598x12),_0xf598x13=this[_0xff99[1179]][_0xff99[1730]](_0xf598x12)?this[_0xff99[1179]][_0xff99[1731]](_0xf598x12): new mxRectangle;_0xf598x9[_0xff99[117]]+= _0xf598x13[_0xff99[117]];_0xf598x9[_0xff99[119]]+= _0xf598x13[_0xff99[119]]};this[_0xff99[2782]](_0xf598xa,_0xf598x9[_0xff99[117]],_0xf598x9[_0xff99[119]])}}}}finally{_0xf598x3[_0xff99[476]]()}}};mxSwimlaneManager[_0xff99[202]][_0xff99[2782]]= function(_0xf598x2,_0xf598x3,_0xf598x4){var _0xf598x5=this[_0xff99[1703]]()[_0xff99[502]]();_0xf598x5[_0xff99[473]]();try{if(!this[_0xff99[2779]](_0xf598x2)){var _0xf598x9=_0xf598x5[_0xff99[1721]](_0xf598x2);if(null!= _0xf598x9){var _0xf598xa=this[_0xff99[2780]](_0xf598x2);if(_0xf598xa&& _0xf598x9[_0xff99[119]]!= _0xf598x4|| !_0xf598xa&& _0xf598x9[_0xff99[117]]!= _0xf598x3){_0xf598x9= _0xf598x9[_0xff99[238]](),_0xf598xa?_0xf598x9[_0xff99[119]]= _0xf598x4:_0xf598x9[_0xff99[117]]= _0xf598x3,_0xf598x5[_0xff99[1724]](_0xf598x2,_0xf598x9)}}};var _0xf598x12=this[_0xff99[1179]][_0xff99[1730]](_0xf598x2)?this[_0xff99[1179]][_0xff99[1731]](_0xf598x2): new mxRectangle;_0xf598x3-= _0xf598x12[_0xff99[117]];_0xf598x4-= _0xf598x12[_0xff99[119]];for(var _0xf598x13=_0xf598x5[_0xff99[262]](_0xf598x2),_0xf598x9=0;_0xf598x9< _0xf598x13;_0xf598x9++){var _0xf598x14=_0xf598x5[_0xff99[263]](_0xf598x2,_0xf598x9);this[_0xff99[2782]](_0xf598x14,_0xf598x3,_0xf598x4)}}finally{_0xf598x5[_0xff99[476]]()}};mxSwimlaneManager[_0xff99[202]][_0xff99[515]]= function(){this[_0xff99[1178]](null)};function mxTemporaryCellStates(_0xf598x2,_0xf598x3,_0xf598x4){this[_0xff99[441]]= _0xf598x2;_0xf598x3= null!= _0xf598x3?_0xf598x3:1;this[_0xff99[2783]]= _0xf598x2[_0xff99[517]]();this[_0xff99[2784]]= _0xf598x2[_0xff99[2312]]();this[_0xff99[2785]]= _0xf598x2[_0xff99[518]]();_0xf598x2[_0xff99[1517]]( new mxDictionary);_0xf598x2[_0xff99[2262]](_0xf598x3);if(null!= _0xf598x4){_0xf598x3= _0xf598x2[_0xff99[1230]]( new mxCell);for(var _0xf598x5=0;_0xf598x5< _0xf598x4[_0xff99[67]];_0xf598x5++){_0xf598x2[_0xff99[2267]](_0xf598x3,_0xf598x4[_0xf598x5])};for(var _0xf598x9=null,_0xf598x5=0;_0xf598x5< _0xf598x4[_0xff99[67]];_0xf598x5++){var _0xf598xa=_0xf598x2[_0xff99[2268]](_0xf598x3,_0xf598x4[_0xf598x5]);null== _0xf598x9?_0xf598x9= _0xf598xa:_0xf598x9[_0xff99[99]](_0xf598xa)};null== _0xf598x9&& (_0xf598x9= new mxRectangle);_0xf598x2[_0xff99[2256]](_0xf598x9)}}mxTemporaryCellStates[_0xff99[202]][_0xff99[441]]= null;mxTemporaryCellStates[_0xff99[202]][_0xff99[2784]]= null;mxTemporaryCellStates[_0xff99[202]][_0xff99[2783]]= null;mxTemporaryCellStates[_0xff99[202]][_0xff99[2785]]= null;mxTemporaryCellStates[_0xff99[202]][_0xff99[515]]= function(){this[_0xff99[441]][_0xff99[2262]](this[_0xff99[2785]]);this[_0xff99[441]][_0xff99[1517]](this[_0xff99[2784]]);this[_0xff99[441]][_0xff99[2256]](this[_0xff99[2783]])};function mxCellStatePreview(_0xf598x2){this[_0xff99[1179]]= _0xf598x2;this[_0xff99[2786]]= {}}mxCellStatePreview[_0xff99[202]][_0xff99[1179]]= null;mxCellStatePreview[_0xff99[202]][_0xff99[2786]]= null;mxCellStatePreview[_0xff99[202]][_0xff99[2787]]= 0;mxCellStatePreview[_0xff99[202]][_0xff99[1107]]= function(){return 0== this[_0xff99[2787]]};mxCellStatePreview[_0xff99[202]][_0xff99[1194]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){_0xf598x5= null!= _0xf598x5?_0xf598x5:!0;_0xf598x9= null!= _0xf598x9?_0xf598x9:!0;var _0xf598xa=mxCellPath[_0xff99[385]](_0xf598x2[_0xff99[246]]),_0xf598x12=this[_0xff99[2786]][_0xf598xa];null== _0xf598x12?(_0xf598x12= new mxPoint(_0xf598x3,_0xf598x4),this[_0xff99[2786]][_0xf598xa]= _0xf598x12,this[_0xff99[2787]]++):_0xf598x5?(_0xf598x12[_0xff99[2788]]+= _0xf598x3,_0xf598x12[_0xff99[2789]]+= _0xf598x4):(_0xf598x12[_0xff99[2788]]= _0xf598x3,_0xf598x12[_0xff99[2789]]= _0xf598x4);_0xf598x9&& this[_0xff99[2790]](_0xf598x2);return _0xf598x12};mxCellStatePreview[_0xff99[202]][_0xff99[539]]= function(_0xf598x2){var _0xf598x3=this[_0xff99[1179]][_0xff99[502]](),_0xf598x4=_0xf598x3[_0xff99[501]](),_0xf598x5;for(_0xf598x5 in this[_0xff99[2786]]){var _0xf598x9=mxCellPath[_0xff99[2791]](_0xf598x4,_0xf598x5),_0xf598xa=this[_0xff99[1179]][_0xff99[441]][_0xff99[248]](_0xf598x9),_0xf598x12=this[_0xff99[2786]][_0xf598x5],_0xf598x9=this[_0xff99[1179]][_0xff99[441]][_0xff99[248]](_0xf598x3[_0xff99[1197]](_0xf598x9));this[_0xff99[2792]](_0xf598x9,_0xf598xa,_0xf598x12[_0xff99[235]],_0xf598x12[_0xff99[236]])};for(_0xf598x5 in this[_0xff99[2786]]){_0xf598x9= mxCellPath[_0xff99[2791]](_0xf598x4,_0xf598x5),_0xf598xa= this[_0xff99[1179]][_0xff99[441]][_0xff99[248]](_0xf598x9),_0xf598x12= this[_0xff99[2786]][_0xf598x5],_0xf598x9= this[_0xff99[1179]][_0xff99[441]][_0xff99[248]](_0xf598x3[_0xff99[1197]](_0xf598x9)),this[_0xff99[2793]](_0xf598x9,_0xf598xa,_0xf598x12[_0xff99[235]],_0xf598x12[_0xff99[236]],_0xf598x2)}};mxCellStatePreview[_0xff99[202]][_0xff99[2792]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){if(null!= _0xf598x3){var _0xf598x9=this[_0xff99[1179]][_0xff99[502]]();if(_0xf598x9[_0xff99[1193]](_0xf598x3[_0xff99[246]])){_0xf598x3[_0xff99[2080]]= !0;this[_0xff99[1179]][_0xff99[441]][_0xff99[2267]](_0xf598x2,_0xf598x3[_0xff99[246]]);_0xf598x2= _0xf598x9[_0xff99[1721]](_0xf598x3[_0xff99[246]]);var _0xf598xa=mxCellPath[_0xff99[385]](_0xf598x3[_0xff99[246]]);if((0!= _0xf598x4|| 0!= _0xf598x5)&& null!= _0xf598x2&& (!_0xf598x2[_0xff99[1500]]|| null!= this[_0xff99[2786]][_0xf598xa])){_0xf598x3[_0xff99[235]]+= _0xf598x4,_0xf598x3[_0xff99[236]]+= _0xf598x5}};_0xf598x2= _0xf598x9[_0xff99[262]](_0xf598x3[_0xff99[246]]);for(_0xf598xa= 0;_0xf598xa< _0xf598x2;_0xf598xa++){this[_0xff99[2792]](_0xf598x3,this[_0xff99[1179]][_0xff99[441]][_0xff99[248]](_0xf598x9[_0xff99[263]](_0xf598x3[_0xff99[246]],_0xf598xa)),_0xf598x4,_0xf598x5)}}};mxCellStatePreview[_0xff99[202]][_0xff99[2793]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){if(null!= _0xf598x3){_0xf598x3[_0xff99[2080]]= !0;this[_0xff99[1179]][_0xff99[441]][_0xff99[2268]](_0xf598x2,_0xf598x3[_0xff99[246]]);var _0xf598xa=mxCellPath[_0xff99[385]](_0xf598x3[_0xff99[246]]),_0xf598x12=this[_0xff99[1179]][_0xff99[502]](),_0xf598x13=this[_0xff99[1179]][_0xff99[1198]](_0xf598x3[_0xff99[246]]);if((0!= _0xf598x4|| 0!= _0xf598x5)&& null!= _0xf598x13&& _0xf598x13[_0xff99[1500]]&& _0xf598x12[_0xff99[1193]](_0xf598x3[_0xff99[246]])&& (null== _0xf598x2|| _0xf598x12[_0xff99[1193]](_0xf598x2[_0xff99[246]])|| null!= this[_0xff99[2786]][_0xf598xa])){_0xf598x3[_0xff99[235]]+= _0xf598x4,_0xf598x3[_0xff99[236]]+= _0xf598x5,this[_0xff99[1179]][_0xff99[259]][_0xff99[258]](_0xf598x3)};null!= _0xf598x9&& _0xf598x9(_0xf598x3);_0xf598x2= _0xf598x12[_0xff99[262]](_0xf598x3[_0xff99[246]]);for(_0xf598xa= 0;_0xf598xa< _0xf598x2;_0xf598xa++){this[_0xff99[2793]](_0xf598x3,this[_0xff99[1179]][_0xff99[441]][_0xff99[248]](_0xf598x12[_0xff99[263]](_0xf598x3[_0xff99[246]],_0xf598xa)),_0xf598x4,_0xf598x5,_0xf598x9)}}};mxCellStatePreview[_0xff99[202]][_0xff99[2790]]= function(_0xf598x2){for(var _0xf598x3=this[_0xff99[1179]][_0xff99[502]](),_0xf598x4=_0xf598x3[_0xff99[1707]](_0xf598x2[_0xff99[246]]),_0xf598x5=0;_0xf598x5< _0xf598x4;_0xf598x5++){var _0xf598x9=this[_0xff99[1179]][_0xff99[441]][_0xff99[248]](_0xf598x3[_0xff99[1708]](_0xf598x2[_0xff99[246]],_0xf598x5));null!= _0xf598x9&& this[_0xff99[1194]](_0xf598x9,0,0)}};function mxConnectionConstraint(_0xf598x2,_0xf598x3){this[_0xff99[2546]]= _0xf598x2;this[_0xff99[591]]= null!= _0xf598x3?_0xf598x3:!0}mxConnectionConstraint[_0xff99[202]][_0xff99[2546]]= null;mxConnectionConstraint[_0xff99[202]][_0xff99[591]]= null;function mxGraphHandler(_0xf598x2){this[_0xff99[1179]]= _0xf598x2;this[_0xff99[1179]][_0xff99[1133]](this);this[_0xff99[2730]]= mxUtils[_0xff99[885]](this,function(){this[_0xff99[2794]]()});this[_0xff99[1179]][_0xff99[169]](mxEvent.PAN,this[_0xff99[2730]])}mxGraphHandler[_0xff99[202]][_0xff99[1179]]= null;mxGraphHandler[_0xff99[202]][_0xff99[2795]]= mxClient[_0xff99[80]]?20:50;mxGraphHandler[_0xff99[202]][_0xff99[984]]= !0;mxGraphHandler[_0xff99[202]][_0xff99[2796]]= !0;mxGraphHandler[_0xff99[202]][_0xff99[2797]]= !0;mxGraphHandler[_0xff99[202]][_0xff99[2798]]= !0;mxGraphHandler[_0xff99[202]][_0xff99[990]]= !1;mxGraphHandler[_0xff99[202]][_0xff99[2799]]= null;mxGraphHandler[_0xff99[202]][_0xff99[2800]]= null;mxGraphHandler[_0xff99[202]][_0xff99[2801]]= null;mxGraphHandler[_0xff99[202]][_0xff99[2802]]= !0;mxGraphHandler[_0xff99[202]][_0xff99[2803]]= !0;mxGraphHandler[_0xff99[202]][_0xff99[846]]= !0;mxGraphHandler[_0xff99[202]][_0xff99[2804]]= !1;mxGraphHandler[_0xff99[202]][_0xff99[2805]]= !0;mxGraphHandler[_0xff99[202]][_0xff99[923]]= 6;mxGraphHandler[_0xff99[202]][_0xff99[2806]]= _0xff99[586];mxGraphHandler[_0xff99[202]][_0xff99[2807]]= !1;mxGraphHandler[_0xff99[202]][_0xff99[253]]= null;mxGraphHandler[_0xff99[202]][_0xff99[2808]]= !1;mxGraphHandler[_0xff99[202]][_0xff99[2809]]= !0;mxGraphHandler[_0xff99[202]][_0xff99[994]]= function(){return this[_0xff99[984]]};mxGraphHandler[_0xff99[202]][_0xff99[995]]= function(_0xf598x2){this[_0xff99[984]]= _0xf598x2};mxGraphHandler[_0xff99[202]][_0xff99[2810]]= function(){return this[_0xff99[2797]]};mxGraphHandler[_0xff99[202]][_0xff99[2811]]= function(_0xf598x2){this[_0xff99[2797]]= _0xf598x2};mxGraphHandler[_0xff99[202]][_0xff99[2812]]= function(){return this[_0xff99[2798]]};mxGraphHandler[_0xff99[202]][_0xff99[2813]]= function(_0xf598x2){this[_0xff99[2798]]= _0xf598x2};mxGraphHandler[_0xff99[202]][_0xff99[2814]]= function(){return this[_0xff99[2803]]};mxGraphHandler[_0xff99[202]][_0xff99[2815]]= function(_0xf598x2){this[_0xff99[2803]]= _0xf598x2};mxGraphHandler[_0xff99[202]][_0xff99[2816]]= function(){return this[_0xff99[846]]};mxGraphHandler[_0xff99[202]][_0xff99[2817]]= function(_0xf598x2){this[_0xff99[846]]= _0xf598x2};mxGraphHandler[_0xff99[202]][_0xff99[2818]]= function(_0xf598x2){return _0xf598x2[_0xff99[736]]()};mxGraphHandler[_0xff99[202]][_0xff99[2819]]= function(_0xf598x2){return this[_0xff99[1179]][_0xff99[2692]](_0xf598x2)};mxGraphHandler[_0xff99[202]][_0xff99[787]]= function(_0xf598x2,_0xf598x3){if(!_0xf598x3[_0xff99[721]]()&& this[_0xff99[994]]() && this[_0xff99[1179]][_0xff99[994]]() && !this[_0xff99[1179]][_0xff99[2579]](_0xf598x3[_0xff99[727]]()) && null!= _0xf598x3[_0xff99[248]]()){var _0xf598x4=this[_0xff99[2818]](_0xf598x3);this[_0xff99[246]]= null;this[_0xff99[2820]]= this[_0xff99[2819]](_0xf598x4);this[_0xff99[2814]]()&& !this[_0xff99[2820]]&& this[_0xff99[1179]][_0xff99[2459]](_0xf598x4,_0xf598x3[_0xff99[727]]());if(this[_0xff99[2812]]()){var _0xf598x5=this[_0xff99[1179]][_0xff99[251]],_0xf598x9=_0xf598x5[_0xff99[1721]](_0xf598x4);this[_0xff99[1179]][_0xff99[1712]](_0xf598x4)&& (!_0xf598x5[_0xff99[250]](_0xf598x4)|| 1< this[_0xff99[1179]][_0xff99[2694]]() || null!= _0xf598x9[_0xff99[1525]]&& 0< _0xf598x9[_0xff99[1525]][_0xff99[67]] || null== _0xf598x5[_0xff99[1709]](_0xf598x4,!0) || null== _0xf598x5[_0xff99[1709]](_0xf598x4,!1) || this[_0xff99[1179]][_0xff99[2406]] || this[_0xff99[1179]][_0xff99[2574]](_0xf598x3[_0xff99[727]]())&& this[_0xff99[1179]][_0xff99[2617]]())&& this[_0xff99[861]](_0xf598x4,_0xf598x3[_0xff99[730]](),_0xf598x3[_0xff99[732]]());this[_0xff99[2821]]= !0;!mxClient[_0xff99[75]]&& !mxClient[_0xff99[76]] || _0xff99[2822]!= _0xf598x3[_0xff99[728]]()[_0xff99[301]]?_0xf598x3[_0xff99[722]]():mxClient[_0xff99[75]]&& _0xff99[2822]== _0xf598x3[_0xff99[728]]()[_0xff99[301]]&& (this[_0xff99[2821]]= !1,this[_0xff99[2823]]= null)}}};mxGraphHandler[_0xff99[202]][_0xff99[1010]]= function(){var _0xf598x2=this[_0xff99[1179]][_0xff99[902]](),_0xf598x3=this[_0xff99[1179]][_0xff99[502]](),_0xf598x4=mxUtils[_0xff99[885]](this,function(_0xf598x2){return null!= this[_0xff99[1179]][_0xff99[441]][_0xff99[248]](_0xf598x2)&& _0xf598x3[_0xff99[1193]](_0xf598x2)&& null!= _0xf598x3[_0xff99[1721]](_0xf598x2)&& !_0xf598x3[_0xff99[1721]](_0xf598x2)[_0xff99[1500]]});return this[_0xff99[1179]][_0xff99[441]][_0xff99[2313]](_0xf598x3[_0xff99[1921]](_0xf598x4,_0xf598x2))};mxGraphHandler[_0xff99[202]][_0xff99[2690]]= function(_0xf598x2){return !this[_0xff99[2820]]&& this[_0xff99[1179]][_0xff99[1712]](_0xf598x2)?[_0xf598x2]:this[_0xff99[1179]][_0xff99[2629]](this[_0xff99[1179]][_0xff99[897]]())};mxGraphHandler[_0xff99[202]][_0xff99[2824]]= function(_0xf598x2){_0xf598x2= this[_0xff99[1613]](_0xf598x2);null!= _0xf598x2&& (_0xf598x2[_0xff99[244]](-1,-1),_0xf598x2[_0xff99[117]]< this[_0xff99[923]]&& (_0xf598x2[_0xff99[235]]-= (this[_0xff99[923]]- _0xf598x2[_0xff99[117]])/ 2,_0xf598x2[_0xff99[117]]= this[_0xff99[923]]),_0xf598x2[_0xff99[119]]< this[_0xff99[923]]&& (_0xf598x2[_0xff99[236]]-= (this[_0xff99[923]]- _0xf598x2[_0xff99[119]])/ 2,_0xf598x2[_0xff99[119]]= this[_0xff99[923]]));return _0xf598x2};mxGraphHandler[_0xff99[202]][_0xff99[1613]]= function(_0xf598x2){var _0xf598x3=null;if(null!= _0xf598x2&& 0< _0xf598x2[_0xff99[67]]){for(var _0xf598x4=this[_0xff99[1179]][_0xff99[502]](),_0xf598x5=0;_0xf598x5< _0xf598x2[_0xff99[67]];_0xf598x5++){if(_0xf598x4[_0xff99[1193]](_0xf598x2[_0xf598x5])|| _0xf598x4[_0xff99[250]](_0xf598x2[_0xf598x5])){var _0xf598x9=this[_0xff99[1179]][_0xff99[441]][_0xff99[248]](_0xf598x2[_0xf598x5]);if(null!= _0xf598x9){var _0xf598xa=_0xf598x9;_0xf598x4[_0xff99[1193]](_0xf598x2[_0xf598x5])&& (null!= _0xf598x9[_0xff99[253]]&& null!= _0xf598x9[_0xff99[253]][_0xff99[1563]])&& (_0xf598xa= _0xf598x9[_0xff99[253]][_0xff99[1563]]);null== _0xf598x3?_0xf598x3= new mxRectangle(_0xf598xa[_0xff99[235]],_0xf598xa[_0xff99[236]],_0xf598xa[_0xff99[117]],_0xf598xa[_0xff99[119]]):_0xf598x3[_0xff99[99]](_0xf598xa)}}}};return _0xf598x3};mxGraphHandler[_0xff99[202]][_0xff99[2825]]= function(_0xf598x2){_0xf598x2= new mxRectangleShape(_0xf598x2,null,this[_0xff99[2806]]);_0xf598x2[_0xff99[1522]]= !0;this[_0xff99[2807]]?(_0xf598x2[_0xff99[507]]= mxConstants[_0xff99[1656]],_0xf598x2[_0xff99[176]](this[_0xff99[1179]][_0xff99[526]])):(_0xf598x2[_0xff99[507]]= this[_0xff99[1179]][_0xff99[507]]!= mxConstants[_0xff99[508]]?mxConstants[_0xff99[1523]]:mxConstants[_0xff99[508]],_0xf598x2[_0xff99[176]](this[_0xff99[1179]][_0xff99[249]]()[_0xff99[1524]]()),_0xf598x2[_0xff99[1229]]= !1);return _0xf598x2};mxGraphHandler[_0xff99[202]][_0xff99[861]]= function(_0xf598x2,_0xf598x3,_0xf598x4){this[_0xff99[246]]= _0xf598x2;this[_0xff99[2823]]= mxUtils[_0xff99[2196]](this[_0xff99[1179]][_0xff99[526]],_0xf598x3,_0xf598x4);this[_0xff99[895]]= this[_0xff99[2690]](this[_0xff99[246]]);this[_0xff99[1562]]= this[_0xff99[1179]][_0xff99[249]]()[_0xff99[1799]](this[_0xff99[895]]);this[_0xff99[2826]]= this[_0xff99[2824]](this[_0xff99[895]]);this[_0xff99[990]]&& (this[_0xff99[2799]]= new mxGuide(this[_0xff99[1179]],this[_0xff99[1010]]()))};mxGraphHandler[_0xff99[202]][_0xff99[2827]]= function(_0xf598x2){return null!= this[_0xff99[2799]]?this[_0xff99[2799]][_0xff99[1019]](_0xf598x2[_0xff99[727]]()):!0};mxGraphHandler[_0xff99[202]][_0xff99[1021]]= function(_0xf598x2){var _0xf598x3=this[_0xff99[2808]]?this[_0xff99[1179]][_0xff99[441]][_0xff99[255]]:1;_0xf598x2[_0xff99[235]]= this[_0xff99[1179]][_0xff99[1021]](_0xf598x2[_0xff99[235]]/ _0xf598x3)* _0xf598x3;_0xf598x2[_0xff99[236]]= this[_0xff99[1179]][_0xff99[1021]](_0xf598x2[_0xff99[236]]/ _0xf598x3)* _0xf598x3;return _0xf598x2};mxGraphHandler[_0xff99[202]][_0xff99[788]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=this[_0xff99[1179]];if(!_0xf598x3[_0xff99[721]]()&& _0xf598x4[_0xff99[1009]] && null!= this[_0xff99[246]] && null!= this[_0xff99[2823]] && null!= this[_0xff99[1562]]){var _0xf598x5=mxUtils[_0xff99[2196]](_0xf598x4[_0xff99[526]],_0xf598x3[_0xff99[730]](),_0xf598x3[_0xff99[732]]()),_0xf598x9=_0xf598x5[_0xff99[235]]- this[_0xff99[2823]][_0xff99[235]],_0xf598xa=_0xf598x5[_0xff99[236]]- this[_0xff99[2823]][_0xff99[236]],_0xf598x5=_0xf598x4[_0xff99[2353]];if(null!= this[_0xff99[253]]|| Math[_0xff99[425]](_0xf598x9)> _0xf598x5|| Math[_0xff99[425]](_0xf598xa)> _0xf598x5){null== this[_0xff99[1016]]&& (this[_0xff99[1016]]= new mxCellHighlight(this[_0xff99[1179]],mxConstants.DROP_TARGET_COLOR,3));null== this[_0xff99[253]]&& (this[_0xff99[253]]= this[_0xff99[2825]](this[_0xff99[1562]]));var _0xf598x12=_0xf598x4[_0xff99[1018]](_0xf598x3[_0xff99[727]]()),_0xf598x5=!0;if(null!= this[_0xff99[2799]]&& this[_0xff99[2827]](_0xf598x3)){_0xf598xa= this[_0xff99[2799]][_0xff99[582]](this[_0xff99[1562]], new mxPoint(_0xf598x9,_0xf598xa),_0xf598x12),_0xf598x5= !1,_0xf598x9= _0xf598xa[_0xff99[235]],_0xf598xa= _0xf598xa[_0xff99[236]]}else {if(_0xf598x12){var _0xf598x13=_0xf598x4[_0xff99[249]]()[_0xff99[513]],_0xf598x14=_0xf598x4[_0xff99[249]]()[_0xff99[255]],_0xf598x12=this[_0xff99[1562]][_0xff99[235]]- (_0xf598x4[_0xff99[1021]](this[_0xff99[1562]][_0xff99[235]]/ _0xf598x14- _0xf598x13[_0xff99[235]])+ _0xf598x13[_0xff99[235]])* _0xf598x14,_0xf598x13=this[_0xff99[1562]][_0xff99[236]]- (_0xf598x4[_0xff99[1021]](this[_0xff99[1562]][_0xff99[236]]/ _0xf598x14- _0xf598x13[_0xff99[236]])+ _0xf598x13[_0xff99[236]])* _0xf598x14,_0xf598xa=this[_0xff99[1021]]( new mxPoint(_0xf598x9,_0xf598xa)),_0xf598x9=_0xf598xa[_0xff99[235]]- _0xf598x12,_0xf598xa=_0xf598xa[_0xff99[236]]- _0xf598x13}};null!= this[_0xff99[2799]]&& _0xf598x5&& this[_0xff99[2799]][_0xff99[801]]();_0xf598x4[_0xff99[2578]](_0xf598x3[_0xff99[727]]())&& (Math[_0xff99[425]](_0xf598x9)> Math[_0xff99[425]](_0xf598xa)?_0xf598xa= 0:_0xf598x9= 0);this[_0xff99[2800]]= _0xf598x9;this[_0xff99[2801]]= _0xf598xa;this[_0xff99[2794]]();_0xf598x5= null;_0xf598xa= _0xf598x3[_0xff99[736]]();_0xf598x4[_0xff99[1015]]()&& this[_0xff99[2796]]&& (_0xf598x5= _0xf598x4[_0xff99[564]](this[_0xff99[895]],_0xf598x3[_0xff99[727]](),_0xf598xa));_0xf598x12= _0xf598x5;for(_0xf598x13= _0xf598x4[_0xff99[502]]();null!= _0xf598x12&& _0xf598x12!= this[_0xff99[895]][0];){_0xf598x12= _0xf598x13[_0xff99[1197]](_0xf598x12)};var _0xf598x14=_0xf598x4[_0xff99[2574]](_0xf598x3[_0xff99[727]]())&& _0xf598x4[_0xff99[2617]]()&& this[_0xff99[2810]](),_0xf598x9=_0xf598x4[_0xff99[249]]()[_0xff99[248]](_0xf598x5),_0xf598x15=!1;null!= _0xf598x9&& null== _0xf598x12&& (_0xf598x13[_0xff99[1197]](this[_0xff99[246]])!= _0xf598x5|| _0xf598x14)?(this[_0xff99[772]]!= _0xf598x5&& (this[_0xff99[772]]= _0xf598x5,this[_0xff99[2828]](mxConstants.DROP_TARGET_COLOR)),_0xf598x15= !0):(this[_0xff99[772]]= null,this[_0xff99[2804]]&& (null!= _0xf598xa&& 1== this[_0xff99[895]][_0xff99[67]]&& _0xf598x4[_0xff99[502]]()[_0xff99[1193]](_0xf598xa)&& _0xf598x4[_0xff99[2565]](_0xf598xa))&& (_0xf598x9= _0xf598x4[_0xff99[249]]()[_0xff99[248]](_0xf598xa),null!= _0xf598x9&& (_0xf598x4= null== _0xf598x4[_0xff99[2500]](null,this[_0xff99[246]],_0xf598xa)?mxConstants[_0xff99[2829]]:mxConstants[_0xff99[2830]],this[_0xff99[2828]](_0xf598x4),_0xf598x15= !0)));null!= _0xf598x9&& _0xf598x15?this[_0xff99[1016]][_0xff99[1016]](_0xf598x9):this[_0xff99[1016]][_0xff99[801]]()};_0xf598x3[_0xff99[722]]();mxEvent[_0xff99[722]](_0xf598x3[_0xff99[727]]())}else {if((this[_0xff99[2812]]()|| this[_0xff99[2810]]())&& this[_0xff99[2802]]&& !_0xf598x3[_0xff99[721]]()&& null!= _0xf598x3[_0xff99[248]]()&& !_0xf598x4[_0xff99[1009]]){_0xf598x9= _0xf598x4[_0xff99[2599]](_0xf598x3[_0xff99[736]]()),null== _0xf598x9&& (_0xf598x4[_0xff99[994]]()&& _0xf598x4[_0xff99[1712]](_0xf598x3[_0xff99[736]]()))&& (_0xf598x9= _0xf598x4[_0xff99[502]]()[_0xff99[250]](_0xf598x3[_0xff99[736]]())?mxConstants[_0xff99[2831]]:mxConstants[_0xff99[2832]]),_0xf598x3[_0xff99[248]]()[_0xff99[1609]](_0xf598x9),_0xf598x3[_0xff99[722]]()}}};mxGraphHandler[_0xff99[202]][_0xff99[2794]]= function(){null!= this[_0xff99[253]]&& (this[_0xff99[253]][_0xff99[1562]]= new mxRectangle(Math[_0xff99[488]](this[_0xff99[2826]][_0xff99[235]]+ this[_0xff99[2800]]- this[_0xff99[1179]][_0xff99[1136]]),Math[_0xff99[488]](this[_0xff99[2826]][_0xff99[236]]+ this[_0xff99[2801]]- this[_0xff99[1179]][_0xff99[1137]]),this[_0xff99[2826]][_0xff99[117]],this[_0xff99[2826]][_0xff99[119]]),this[_0xff99[253]][_0xff99[258]]())};mxGraphHandler[_0xff99[202]][_0xff99[2828]]= function(_0xf598x2){null!= this[_0xff99[1016]]&& this[_0xff99[1016]][_0xff99[2828]](_0xf598x2)};mxGraphHandler[_0xff99[202]][_0xff99[789]]= function(_0xf598x2,_0xf598x3){if(!_0xf598x3[_0xff99[721]]()){var _0xf598x4=this[_0xff99[1179]];if(null!= this[_0xff99[246]]&& null!= this[_0xff99[2823]]&& null!= this[_0xff99[253]]&& null!= this[_0xff99[2800]]&& null!= this[_0xff99[2801]]){var _0xf598x5=_0xf598x4[_0xff99[249]]()[_0xff99[255]],_0xf598x9=_0xf598x4[_0xff99[2574]](_0xf598x3[_0xff99[727]]())&& _0xf598x4[_0xff99[2617]]()&& this[_0xff99[2810]](),_0xf598xa=this[_0xff99[2800]]/ _0xf598x5,_0xf598x5=this[_0xff99[2801]]/ _0xf598x5,_0xf598x12=_0xf598x3[_0xff99[736]]();this[_0xff99[2804]]&& null== this[_0xff99[772]]&& null!= _0xf598x12&& _0xf598x4[_0xff99[502]]()[_0xff99[1193]](_0xf598x12)&& _0xf598x4[_0xff99[2565]](_0xf598x12)&& _0xf598x4[_0xff99[2581]](null,this[_0xff99[246]],_0xf598x12)?_0xf598x4[_0xff99[2433]][_0xff99[807]](this[_0xff99[246]],_0xf598x12,_0xf598x3[_0xff99[727]]()):(_0xf598x12= this[_0xff99[772]],_0xf598x4[_0xff99[2655]]()&& _0xf598x4[_0xff99[2686]](_0xf598x12,this[_0xff99[895]],_0xf598x3[_0xff99[727]]())?_0xf598x4[_0xff99[853]](_0xf598x12,this[_0xff99[895]],null,_0xf598xa,_0xf598x5):this[_0xff99[834]](this[_0xff99[895]],_0xf598xa,_0xf598x5,_0xf598x9,this[_0xff99[772]],_0xf598x3[_0xff99[727]]()))}else {this[_0xff99[2814]]()&& (this[_0xff99[2820]]&& null!= this[_0xff99[246]])&& this[_0xff99[2833]](_0xf598x3)}};this[_0xff99[2821]]&& _0xf598x3[_0xff99[722]]();this[_0xff99[862]]()};mxGraphHandler[_0xff99[202]][_0xff99[2833]]= function(_0xf598x2){this[_0xff99[1179]][_0xff99[2459]](this[_0xff99[246]],_0xf598x2[_0xff99[727]]())};mxGraphHandler[_0xff99[202]][_0xff99[862]]= function(){this[_0xff99[2834]]();this[_0xff99[2820]]= this[_0xff99[2821]]= !1;this[_0xff99[772]]= this[_0xff99[246]]= this[_0xff99[2823]]= this[_0xff99[2835]]= this[_0xff99[2801]]= this[_0xff99[2800]]= null};mxGraphHandler[_0xff99[202]][_0xff99[2836]]= function(_0xf598x2,_0xf598x3,_0xf598x4){if(this[_0xff99[1179]][_0xff99[502]]()[_0xff99[1193]](_0xf598x2)){_0xf598x2= this[_0xff99[1179]][_0xff99[249]]()[_0xff99[248]](_0xf598x2);_0xf598x4= mxUtils[_0xff99[2196]](this[_0xff99[1179]][_0xff99[526]],mxEvent[_0xff99[731]](_0xf598x4),mxEvent[_0xff99[733]](_0xf598x4));var _0xf598x5=mxUtils[_0xff99[431]](mxUtils[_0xff99[433]](_0xf598x2[_0xff99[124]],mxConstants.STYLE_ROTATION)|| 0);if(0!= _0xf598x5){_0xf598x3= Math[_0xff99[426]](-_0xf598x5);var _0xf598x5=Math[_0xff99[427]](-_0xf598x5),_0xf598x9= new mxPoint(_0xf598x2[_0xff99[241]](),_0xf598x2[_0xff99[242]]());_0xf598x4= mxUtils[_0xff99[432]](_0xf598x4,_0xf598x3,_0xf598x5,_0xf598x9)};return null!= _0xf598x2&& !mxUtils[_0xff99[442]](_0xf598x2,_0xf598x4[_0xff99[235]],_0xf598x4[_0xff99[236]])};return !1};mxGraphHandler[_0xff99[202]][_0xff99[834]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa){_0xf598x5&& (_0xf598x2= this[_0xff99[1179]][_0xff99[2615]](_0xf598x2));null== _0xf598x9&& (this[_0xff99[2816]]()&& this[_0xff99[2836]](this[_0xff99[1179]][_0xff99[502]]()[_0xff99[1197]](this[_0xff99[246]]),_0xf598x2,_0xf598xa))&& (_0xf598x9= this[_0xff99[1179]][_0xff99[902]]());_0xf598x2= this[_0xff99[1179]][_0xff99[834]](_0xf598x2,_0xf598x3- this[_0xff99[1179]][_0xff99[1136]]/ this[_0xff99[1179]][_0xff99[441]][_0xff99[255]],_0xf598x4- this[_0xff99[1179]][_0xff99[1137]]/ this[_0xff99[1179]][_0xff99[441]][_0xff99[255]],_0xf598x5,_0xf598x9,_0xf598xa);this[_0xff99[2814]]()&& this[_0xff99[2805]]&& this[_0xff99[1179]][_0xff99[2564]](_0xf598x2[0]);_0xf598x5&& this[_0xff99[1179]][_0xff99[904]](_0xf598x2)};mxGraphHandler[_0xff99[202]][_0xff99[2834]]= function(){null!= this[_0xff99[253]]&& (this[_0xff99[253]][_0xff99[515]](),this[_0xff99[253]]= null);null!= this[_0xff99[2799]]&& (this[_0xff99[2799]][_0xff99[515]](),this[_0xff99[2799]]= null);null!= this[_0xff99[1016]]&& (this[_0xff99[1016]][_0xff99[515]](),this[_0xff99[1016]]= null)};mxGraphHandler[_0xff99[202]][_0xff99[515]]= function(){this[_0xff99[1179]][_0xff99[1148]](this);this[_0xff99[1179]][_0xff99[745]](this[_0xff99[2730]]);this[_0xff99[2834]]()};function mxPanningHandler(_0xf598x2,_0xf598x3){null!= _0xf598x2&& (this[_0xff99[1179]]= _0xf598x2,this[_0xff99[1033]]= _0xf598x3,this[_0xff99[1179]][_0xff99[1133]](this),this[_0xff99[176]]())}mxPanningHandler[_0xff99[202]]= new mxPopupMenu;mxPanningHandler[_0xff99[202]][_0xff99[196]]= mxPanningHandler;mxPanningHandler[_0xff99[202]][_0xff99[1179]]= null;mxPanningHandler[_0xff99[202]][_0xff99[2837]]= null;mxPanningHandler[_0xff99[202]][_0xff99[2838]]= null;mxPanningHandler[_0xff99[202]][_0xff99[2839]]= !0;mxPanningHandler[_0xff99[202]][_0xff99[2840]]= !1;mxPanningHandler[_0xff99[202]][_0xff99[2841]]= !0;mxPanningHandler[_0xff99[202]][_0xff99[2842]]= !0;mxPanningHandler[_0xff99[202]][_0xff99[2843]]= !1;mxPanningHandler[_0xff99[202]][_0xff99[2844]]= !0;mxPanningHandler[_0xff99[202]][_0xff99[2845]]= !1;mxPanningHandler[_0xff99[202]][_0xff99[2431]]= !0;mxPanningHandler[_0xff99[202]][_0xff99[2846]]= function(){return this[_0xff99[2431]]};mxPanningHandler[_0xff99[202]][_0xff99[2847]]= function(_0xf598x2){this[_0xff99[2431]]= _0xf598x2};mxPanningHandler[_0xff99[202]][_0xff99[176]]= function(){mxPopupMenu[_0xff99[202]][_0xff99[176]][_0xff99[183]](this);mxEvent[_0xff99[169]](this[_0xff99[485]],mxClient[_0xff99[754]]?_0xff99[756]:_0xff99[752],mxUtils[_0xff99[885]](this,function(_0xf598x2){this[_0xff99[1179]][_0xff99[2276]][_0xff99[801]]()}))};mxPanningHandler[_0xff99[202]][_0xff99[2848]]= function(_0xf598x2){var _0xf598x3=_0xf598x2[_0xff99[727]]();return this[_0xff99[2840]]&& (this[_0xff99[2843]]|| null== _0xf598x2[_0xff99[248]]())&& mxEvent[_0xff99[1158]](_0xf598x3)|| mxEvent[_0xff99[775]](_0xf598x3)&& mxEvent[_0xff99[774]](_0xf598x3)|| this[_0xff99[2839]]&& mxEvent[_0xff99[737]](_0xf598x3)};mxPanningHandler[_0xff99[202]][_0xff99[787]]= function(_0xf598x2,_0xf598x3){if(!_0xf598x3[_0xff99[721]]()&& this[_0xff99[994]]()){this[_0xff99[1032]]();this[_0xff99[2741]]= -this[_0xff99[1179]][_0xff99[526]][_0xff99[360]];this[_0xff99[2742]]= -this[_0xff99[1179]][_0xff99[526]][_0xff99[190]];var _0xf598x4=mxUtils[_0xff99[2196]](this[_0xff99[1179]][_0xff99[526]],_0xf598x3[_0xff99[730]](),_0xf598x3[_0xff99[732]]());this[_0xff99[2837]]= _0xf598x4[_0xff99[235]];this[_0xff99[2838]]= _0xf598x4[_0xff99[236]];this[_0xff99[2849]]= this[_0xff99[737]](_0xf598x3);this[_0xff99[2850]]= this[_0xff99[2846]]()&& this[_0xff99[2848]](_0xf598x3);this[_0xff99[2739]]= _0xf598x3[_0xff99[730]]();this[_0xff99[2740]]= _0xf598x3[_0xff99[732]]();this[_0xff99[2850]]&& this[_0xff99[2851]](_0xf598x3)}};mxPanningHandler[_0xff99[202]][_0xff99[2851]]= function(_0xf598x2){_0xf598x2[_0xff99[722]]()};mxPanningHandler[_0xff99[202]][_0xff99[788]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=_0xf598x3[_0xff99[730]]()- this[_0xff99[2739]],_0xf598x5=_0xf598x3[_0xff99[732]]()- this[_0xff99[2740]];if(this[_0xff99[1124]]){this[_0xff99[2844]]&& (this[_0xff99[2845]]&& (_0xf598x4= this[_0xff99[1179]][_0xff99[1021]](_0xf598x4),_0xf598x5= this[_0xff99[1179]][_0xff99[1021]](_0xf598x5)),this[_0xff99[1179]][_0xff99[1135]](_0xf598x4+ this[_0xff99[2741]],_0xf598x5+ this[_0xff99[2742]])),this[_0xff99[746]]( new mxEventObject(mxEvent.PAN,_0xff99[763],_0xf598x3)),_0xf598x3[_0xff99[722]]()}else {if(this[_0xff99[2850]]){var _0xf598x9=this[_0xff99[1124]];this[_0xff99[1124]]= Math[_0xff99[425]](_0xf598x4)> this[_0xff99[1179]][_0xff99[2353]]|| Math[_0xff99[425]](_0xf598x5)> this[_0xff99[1179]][_0xff99[2353]];!_0xf598x9&& this[_0xff99[1124]] && this[_0xff99[746]]( new mxEventObject(mxEvent.PAN_START,_0xff99[763],_0xf598x3))}}};mxPanningHandler[_0xff99[202]][_0xff99[789]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=Math[_0xff99[425]](_0xf598x3[_0xff99[730]]()- this[_0xff99[2739]]),_0xf598x5=Math[_0xff99[425]](_0xf598x3[_0xff99[732]]()- this[_0xff99[2740]]);if(this[_0xff99[1124]]){if(!this[_0xff99[1179]][_0xff99[2365]]|| !mxUtils[_0xff99[1134]](this[_0xff99[1179]][_0xff99[526]])){_0xf598x4= _0xf598x3[_0xff99[730]]()- this[_0xff99[2739]];_0xf598x5= _0xf598x3[_0xff99[732]]()- this[_0xff99[2740]];this[_0xff99[2845]]&& (_0xf598x4= this[_0xff99[1179]][_0xff99[1021]](_0xf598x4),_0xf598x5= this[_0xff99[1179]][_0xff99[1021]](_0xf598x5));var _0xf598x9=this[_0xff99[1179]][_0xff99[249]]()[_0xff99[255]],_0xf598xa=this[_0xff99[1179]][_0xff99[249]]()[_0xff99[513]];this[_0xff99[1179]][_0xff99[1135]](0,0);this[_0xff99[1135]](_0xf598xa[_0xff99[235]]+ _0xf598x4/ _0xf598x9,_0xf598xa[_0xff99[236]]+ _0xf598x5/ _0xf598x9)};this[_0xff99[1124]]= !1;this[_0xff99[746]]( new mxEventObject(mxEvent.PAN_END,_0xff99[763],_0xf598x3));_0xf598x3[_0xff99[722]]()}else {this[_0xff99[2849]]&& (_0xf598x4< this[_0xff99[1179]][_0xff99[2353]]&& _0xf598x5< this[_0xff99[1179]][_0xff99[2353]])&& (_0xf598x4= this[_0xff99[2852]](_0xf598x3),this[_0xff99[1179]][_0xff99[994]]()&& this[_0xff99[2841]]&& null!= _0xf598x4&& !this[_0xff99[1179]][_0xff99[2692]](_0xf598x4)?this[_0xff99[1179]][_0xff99[2450]](_0xf598x4):this[_0xff99[2842]]&& null== _0xf598x4&& this[_0xff99[1179]][_0xff99[2440]](),this[_0xff99[1179]][_0xff99[2276]][_0xff99[801]](),_0xf598x5= mxUtils[_0xff99[444]](),_0xf598x5= new mxPoint(_0xf598x3[_0xff99[730]]()+ _0xf598x5[_0xff99[235]],_0xf598x3[_0xff99[732]]()+ _0xf598x5[_0xff99[236]]),this[_0xff99[152]](_0xf598x5[_0xff99[235]]+ 1,_0xf598x5[_0xff99[236]]+ 1,_0xf598x4,_0xf598x3[_0xff99[727]]()),_0xf598x3[_0xff99[722]]())};this[_0xff99[2849]]= this[_0xff99[2850]]= !1};mxPanningHandler[_0xff99[202]][_0xff99[2852]]= function(_0xf598x2){return _0xf598x2[_0xff99[736]]()};mxPanningHandler[_0xff99[202]][_0xff99[1135]]= function(_0xf598x2,_0xf598x3){this[_0xff99[1179]][_0xff99[249]]()[_0xff99[1147]](_0xf598x2,_0xf598x3)};mxPanningHandler[_0xff99[202]][_0xff99[515]]= function(){this[_0xff99[1179]][_0xff99[1148]](this);mxPopupMenu[_0xff99[202]][_0xff99[515]][_0xff99[183]](this)};function mxCellMarker(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){mxEventSource[_0xff99[239]](this);null!= _0xf598x2&& (this[_0xff99[1179]]= _0xf598x2,this[_0xff99[2853]]= null!= _0xf598x3?_0xf598x3:mxConstants[_0xff99[2854]],this[_0xff99[2855]]= null!= _0xf598x3?_0xf598x4:mxConstants[_0xff99[2856]],this[_0xff99[2857]]= null!= _0xf598x5?_0xf598x5:mxConstants[_0xff99[2858]],this[_0xff99[1016]]= new mxCellHighlight(_0xf598x2))}mxUtils[_0xff99[1284]](mxCellMarker,mxEventSource);mxCellMarker[_0xff99[202]][_0xff99[1179]]= null;mxCellMarker[_0xff99[202]][_0xff99[984]]= !0;mxCellMarker[_0xff99[202]][_0xff99[2857]]= mxConstants[_0xff99[2858]];mxCellMarker[_0xff99[202]][_0xff99[2859]]= !1;mxCellMarker[_0xff99[202]][_0xff99[2853]]= null;mxCellMarker[_0xff99[202]][_0xff99[2855]]= null;mxCellMarker[_0xff99[202]][_0xff99[2860]]= null;mxCellMarker[_0xff99[202]][_0xff99[2861]]= null;mxCellMarker[_0xff99[202]][_0xff99[2862]]= null;mxCellMarker[_0xff99[202]][_0xff99[995]]= function(_0xf598x2){this[_0xff99[984]]= _0xf598x2};mxCellMarker[_0xff99[202]][_0xff99[994]]= function(){return this[_0xff99[984]]};mxCellMarker[_0xff99[202]][_0xff99[2863]]= function(_0xf598x2){this[_0xff99[2857]]= _0xf598x2};mxCellMarker[_0xff99[202]][_0xff99[2864]]= function(){return this[_0xff99[2857]]};mxCellMarker[_0xff99[202]][_0xff99[2865]]= function(_0xf598x2){this[_0xff99[2859]]= _0xf598x2};mxCellMarker[_0xff99[202]][_0xff99[2866]]= function(){return this[_0xff99[2859]]};mxCellMarker[_0xff99[202]][_0xff99[2867]]= function(){return null!= this[_0xff99[2861]]};mxCellMarker[_0xff99[202]][_0xff99[2868]]= function(){return this[_0xff99[2861]]};mxCellMarker[_0xff99[202]][_0xff99[2869]]= function(){return this[_0xff99[2862]]};mxCellMarker[_0xff99[202]][_0xff99[862]]= function(){this[_0xff99[2861]]= null;null!= this[_0xff99[2862]]&& (this[_0xff99[2862]]= null,this[_0xff99[2870]]())};mxCellMarker[_0xff99[202]][_0xff99[2871]]= function(_0xf598x2){var _0xf598x3=null;if(this[_0xff99[994]]()){var _0xf598x3=this[_0xff99[248]](_0xf598x2),_0xf598x4=null!= _0xf598x3?this[_0xff99[2872]](_0xf598x3):!1;_0xf598x2= this[_0xff99[2873]](_0xf598x2[_0xff99[727]](),_0xf598x3,_0xf598x4);this[_0xff99[2861]]= _0xf598x4?_0xf598x3:null;if(_0xf598x3!= this[_0xff99[2862]]|| _0xf598x2!= this[_0xff99[2860]]){this[_0xff99[2860]]= _0xf598x2,null!= _0xf598x3&& null!= this[_0xff99[2860]]?(this[_0xff99[2862]]= _0xf598x3,this[_0xff99[811]]()):null!= this[_0xff99[2862]]&& (this[_0xff99[2862]]= null,this[_0xff99[2870]]())}};return _0xf598x3};mxCellMarker[_0xff99[202]][_0xff99[2874]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=this[_0xff99[1179]][_0xff99[249]]()[_0xff99[248]](_0xf598x2);null!= _0xf598x4&& (this[_0xff99[2860]]= null!= _0xf598x3?_0xf598x3:this[_0xff99[2853]],this[_0xff99[2862]]= _0xf598x4,this[_0xff99[811]]())};mxCellMarker[_0xff99[202]][_0xff99[811]]= function(){this[_0xff99[1016]][_0xff99[2828]](this[_0xff99[2860]]);this[_0xff99[1016]][_0xff99[1016]](this[_0xff99[2862]]);this[_0xff99[746]]( new mxEventObject(mxEvent.MARK,_0xff99[724],this[_0xff99[2862]]))};mxCellMarker[_0xff99[202]][_0xff99[2870]]= function(){this[_0xff99[811]]()};mxCellMarker[_0xff99[202]][_0xff99[2872]]= function(_0xf598x2){return !0};mxCellMarker[_0xff99[202]][_0xff99[2873]]= function(_0xf598x2,_0xf598x3,_0xf598x4){return _0xf598x4?this[_0xff99[2853]]:this[_0xff99[2855]]};mxCellMarker[_0xff99[202]][_0xff99[248]]= function(_0xf598x2){var _0xf598x3=this[_0xff99[1179]][_0xff99[249]]();cell= this[_0xff99[736]](_0xf598x2);_0xf598x3= this[_0xff99[2875]](_0xf598x3[_0xff99[248]](cell));return null!= _0xf598x3&& this[_0xff99[1825]](_0xf598x3,_0xf598x2)?_0xf598x3:null};mxCellMarker[_0xff99[202]][_0xff99[736]]= function(_0xf598x2){return _0xf598x2[_0xff99[736]]()};mxCellMarker[_0xff99[202]][_0xff99[2875]]= function(_0xf598x2){return _0xf598x2};mxCellMarker[_0xff99[202]][_0xff99[1825]]= function(_0xf598x2,_0xf598x3){return this[_0xff99[2859]]?mxUtils[_0xff99[2876]](_0xf598x2,_0xf598x3[_0xff99[734]](),_0xf598x3[_0xff99[735]](),this[_0xff99[2857]],mxConstants.MIN_HOTSPOT_SIZE,mxConstants.MAX_HOTSPOT_SIZE):!0};mxCellMarker[_0xff99[202]][_0xff99[515]]= function(){this[_0xff99[1179]][_0xff99[249]]()[_0xff99[745]](this[_0xff99[2877]]);this[_0xff99[1179]][_0xff99[502]]()[_0xff99[745]](this[_0xff99[2877]]);this[_0xff99[1016]][_0xff99[515]]()};function mxSelectionCellsHandler(_0xf598x2){mxEventSource[_0xff99[239]](this);this[_0xff99[1179]]= _0xf598x2;this[_0xff99[2878]]= new mxDictionary;this[_0xff99[1179]][_0xff99[1133]](this);this[_0xff99[2731]]= mxUtils[_0xff99[885]](this,function(_0xf598x2,_0xf598x4){this[_0xff99[994]]()&& this[_0xff99[802]]()});this[_0xff99[1179]][_0xff99[2435]]()[_0xff99[169]](mxEvent.CHANGE,this[_0xff99[2731]]);this[_0xff99[1179]][_0xff99[502]]()[_0xff99[169]](mxEvent.CHANGE,this[_0xff99[2731]]);this[_0xff99[1179]][_0xff99[249]]()[_0xff99[169]](mxEvent.SCALE,this[_0xff99[2731]]);this[_0xff99[1179]][_0xff99[249]]()[_0xff99[169]](mxEvent.TRANSLATE,this[_0xff99[2731]]);this[_0xff99[1179]][_0xff99[249]]()[_0xff99[169]](mxEvent.SCALE_AND_TRANSLATE,this[_0xff99[2731]]);this[_0xff99[1179]][_0xff99[249]]()[_0xff99[169]](mxEvent.DOWN,this[_0xff99[2731]]);this[_0xff99[1179]][_0xff99[249]]()[_0xff99[169]](mxEvent.UP,this[_0xff99[2731]])}mxUtils[_0xff99[1284]](mxSelectionCellsHandler,mxEventSource);mxSelectionCellsHandler[_0xff99[202]][_0xff99[1179]]= null;mxSelectionCellsHandler[_0xff99[202]][_0xff99[984]]= !0;mxSelectionCellsHandler[_0xff99[202]][_0xff99[2731]]= null;mxSelectionCellsHandler[_0xff99[202]][_0xff99[2879]]= 100;mxSelectionCellsHandler[_0xff99[202]][_0xff99[2878]]= null;mxSelectionCellsHandler[_0xff99[202]][_0xff99[994]]= function(){return this[_0xff99[984]]};mxSelectionCellsHandler[_0xff99[202]][_0xff99[995]]= function(_0xf598x2){this[_0xff99[984]]= _0xf598x2};mxSelectionCellsHandler[_0xff99[202]][_0xff99[2596]]= function(_0xf598x2){return this[_0xff99[2878]][_0xff99[203]](_0xf598x2)};mxSelectionCellsHandler[_0xff99[202]][_0xff99[862]]= function(){this[_0xff99[2878]][_0xff99[209]](function(_0xf598x2,_0xf598x3){_0xf598x3[_0xff99[862]][_0xff99[183]](_0xf598x3)})};mxSelectionCellsHandler[_0xff99[202]][_0xff99[802]]= function(){var _0xf598x2=this[_0xff99[2878]];this[_0xff99[2878]]= new mxDictionary;for(var _0xf598x3=this[_0xff99[1179]][_0xff99[897]](),_0xf598x4=0;_0xf598x4< _0xf598x3[_0xff99[67]];_0xf598x4++){var _0xf598x5=this[_0xff99[1179]][_0xff99[441]][_0xff99[248]](_0xf598x3[_0xf598x4]);if(null!= _0xf598x5){var _0xf598x9=_0xf598x2[_0xff99[205]](_0xf598x3[_0xf598x4]);null!= _0xf598x9&& (_0xf598x9[_0xff99[724]]!= _0xf598x5?(_0xf598x9[_0xff99[515]](),_0xf598x9= null):_0xf598x9[_0xff99[258]]());null== _0xf598x9&& (_0xf598x9= this[_0xff99[1179]][_0xff99[2709]](_0xf598x5),this[_0xff99[746]]( new mxEventObject(mxEvent.ADD,_0xff99[724],_0xf598x5)));null!= _0xf598x9&& this[_0xff99[2878]][_0xff99[204]](_0xf598x3[_0xf598x4],_0xf598x9)}};_0xf598x2[_0xff99[209]](mxUtils[_0xff99[885]](this,function(_0xf598x2,_0xf598x3){this[_0xff99[746]]( new mxEventObject(mxEvent.REMOVE,_0xff99[724],_0xf598x3[_0xff99[724]]));_0xf598x3[_0xff99[515]]()}))};mxSelectionCellsHandler[_0xff99[202]][_0xff99[787]]= function(_0xf598x2,_0xf598x3){if(this[_0xff99[1179]][_0xff99[994]]()&& this[_0xff99[994]]()){var _0xf598x4=[_0xf598x2,_0xf598x3];this[_0xff99[2878]][_0xff99[209]](function(_0xf598x2,_0xf598x3){_0xf598x3[_0xff99[787]][_0xff99[183]](_0xf598x3,_0xf598x4)})}};mxSelectionCellsHandler[_0xff99[202]][_0xff99[788]]= function(_0xf598x2,_0xf598x3){if(this[_0xff99[1179]][_0xff99[994]]()&& this[_0xff99[994]]()){var _0xf598x4=[_0xf598x2,_0xf598x3];this[_0xff99[2878]][_0xff99[209]](function(_0xf598x2,_0xf598x3){_0xf598x3[_0xff99[788]][_0xff99[183]](_0xf598x3,_0xf598x4)})}};mxSelectionCellsHandler[_0xff99[202]][_0xff99[789]]= function(_0xf598x2,_0xf598x3){if(this[_0xff99[1179]][_0xff99[994]]()&& this[_0xff99[994]]()){var _0xf598x4=[_0xf598x2,_0xf598x3];this[_0xff99[2878]][_0xff99[209]](function(_0xf598x2,_0xf598x3){_0xf598x3[_0xff99[789]][_0xff99[183]](_0xf598x3,_0xf598x4)})}};mxSelectionCellsHandler[_0xff99[202]][_0xff99[515]]= function(){this[_0xff99[1179]][_0xff99[1148]](this);null!= this[_0xff99[2731]]&& (this[_0xff99[1179]][_0xff99[2435]]()[_0xff99[745]](this[_0xff99[2731]]),this[_0xff99[1179]][_0xff99[502]]()[_0xff99[745]](this[_0xff99[2731]]),this[_0xff99[1179]][_0xff99[249]]()[_0xff99[745]](this[_0xff99[2731]]),this[_0xff99[2731]]= null)};function mxConnectionHandler(_0xf598x2,_0xf598x3){mxEventSource[_0xff99[239]](this);null!= _0xf598x2&& (this[_0xff99[1179]]= _0xf598x2,this[_0xff99[1033]]= _0xf598x3,this[_0xff99[176]]())}mxUtils[_0xff99[1284]](mxConnectionHandler,mxEventSource);mxConnectionHandler[_0xff99[202]][_0xff99[1179]]= null;mxConnectionHandler[_0xff99[202]][_0xff99[1033]]= !0;mxConnectionHandler[_0xff99[202]][_0xff99[2880]]= !1;mxConnectionHandler[_0xff99[202]][_0xff99[2881]]= !1;mxConnectionHandler[_0xff99[202]][_0xff99[2882]]= null;mxConnectionHandler[_0xff99[202]][_0xff99[2883]]= !1;mxConnectionHandler[_0xff99[202]][_0xff99[984]]= !0;mxConnectionHandler[_0xff99[202]][_0xff99[804]]= !0;mxConnectionHandler[_0xff99[202]][_0xff99[2884]]= !1;mxConnectionHandler[_0xff99[202]][_0xff99[2885]]= null;mxConnectionHandler[_0xff99[202]][_0xff99[2886]]= null;mxConnectionHandler[_0xff99[202]][_0xff99[267]]= null;mxConnectionHandler[_0xff99[202]][_0xff99[2887]]= !1;mxConnectionHandler[_0xff99[202]][_0xff99[2888]]= !0;mxConnectionHandler[_0xff99[202]][_0xff99[2889]]= 500;mxConnectionHandler[_0xff99[202]][_0xff99[2890]]= !1;mxConnectionHandler[_0xff99[202]][_0xff99[2891]]= !1;mxConnectionHandler[_0xff99[202]][_0xff99[2892]]= 4;mxConnectionHandler[_0xff99[202]][_0xff99[2893]]= 0;mxConnectionHandler[_0xff99[202]][_0xff99[2894]]= 0;mxConnectionHandler[_0xff99[202]][_0xff99[2895]]= !1;mxConnectionHandler[_0xff99[202]][_0xff99[2823]]= null;mxConnectionHandler[_0xff99[202]][_0xff99[2896]]= new mxPoint(0,mxConstants.TOOLTIP_VERTICAL_OFFSET);mxConnectionHandler[_0xff99[202]][_0xff99[2897]]= null;mxConnectionHandler[_0xff99[202]][_0xff99[1176]]= null;mxConnectionHandler[_0xff99[202]][_0xff99[2898]]= null;mxConnectionHandler[_0xff99[202]][_0xff99[2899]]= 0;mxConnectionHandler[_0xff99[202]][_0xff99[2900]]= mxClient[_0xff99[47]];mxConnectionHandler[_0xff99[202]][_0xff99[994]]= function(){return this[_0xff99[984]]};mxConnectionHandler[_0xff99[202]][_0xff99[995]]= function(_0xf598x2){this[_0xff99[984]]= _0xf598x2};mxConnectionHandler[_0xff99[202]][_0xff99[2901]]= function(){return this[_0xff99[2884]]};mxConnectionHandler[_0xff99[202]][_0xff99[2902]]= function(_0xf598x2){this[_0xff99[2884]]= _0xf598x2};mxConnectionHandler[_0xff99[202]][_0xff99[2156]]= function(){var _0xf598x2= new mxPolyline([],mxConstants.INVALID_COLOR);_0xf598x2[_0xff99[507]]= this[_0xff99[1179]][_0xff99[507]]!= mxConstants[_0xff99[508]]?mxConstants[_0xff99[1523]]:mxConstants[_0xff99[508]];_0xf598x2[_0xff99[176]](this[_0xff99[1179]][_0xff99[249]]()[_0xff99[1524]]());_0xf598x2[_0xff99[1564]]= 0;_0xf598x2[_0xff99[1229]]= !1;_0xf598x2[_0xff99[1522]]= !0;if(this[_0xff99[1179]][_0xff99[507]]== mxConstants[_0xff99[508]]){_0xf598x2[_0xff99[252]][_0xff99[57]](_0xff99[1377],_0xff99[130])}else {var _0xf598x3=mxUtils[_0xff99[885]](this,function(_0xf598x2){_0xf598x2= mxUtils[_0xff99[2196]](this[_0xff99[1179]][_0xff99[526]],mxEvent[_0xff99[731]](_0xf598x2),mxEvent[_0xff99[733]](_0xf598x2));return this[_0xff99[1179]][_0xff99[441]][_0xff99[248]](this[_0xff99[1179]][_0xff99[999]](_0xf598x2[_0xff99[235]],_0xf598x2[_0xff99[236]]))});mxEvent[_0xff99[2733]](_0xf598x2[_0xff99[252]],this[_0xff99[1179]],_0xf598x3)};return _0xf598x2};mxConnectionHandler[_0xff99[202]][_0xff99[176]]= function(){this[_0xff99[1179]][_0xff99[1133]](this);this[_0xff99[2885]]= this[_0xff99[1689]]();this[_0xff99[2886]]= new mxConstraintHandler(this[_0xff99[1179]]);this[_0xff99[1176]]= mxUtils[_0xff99[885]](this,function(_0xf598x2){null!= this[_0xff99[2903]]&& (this[_0xff99[2903]]= this[_0xff99[1179]][_0xff99[249]]()[_0xff99[248]](this[_0xff99[2903]][_0xff99[246]]));null!= this[_0xff99[2903]]?this[_0xff99[2905]](this[_0xff99[2904]],this[_0xff99[2903]]):(this[_0xff99[2906]](this[_0xff99[2904]]),this[_0xff99[257]]= null);this[_0xff99[2886]][_0xff99[862]]()});this[_0xff99[1179]][_0xff99[502]]()[_0xff99[169]](mxEvent.CHANGE,this[_0xff99[1176]]);this[_0xff99[1179]][_0xff99[249]]()[_0xff99[169]](mxEvent.SCALE,this[_0xff99[1176]]);this[_0xff99[1179]][_0xff99[249]]()[_0xff99[169]](mxEvent.TRANSLATE,this[_0xff99[1176]]);this[_0xff99[1179]][_0xff99[249]]()[_0xff99[169]](mxEvent.SCALE_AND_TRANSLATE,this[_0xff99[1176]]);this[_0xff99[2898]]= mxUtils[_0xff99[885]](this,function(_0xf598x2){this[_0xff99[2906]](this[_0xff99[2904]])});this[_0xff99[1179]][_0xff99[169]](mxEvent.START_EDITING,this[_0xff99[2898]]);this[_0xff99[1179]][_0xff99[249]]()[_0xff99[169]](mxEvent.DOWN,this[_0xff99[2898]]);this[_0xff99[1179]][_0xff99[249]]()[_0xff99[169]](mxEvent.UP,this[_0xff99[2898]])};mxConnectionHandler[_0xff99[202]][_0xff99[2907]]= function(_0xf598x2){return !0};mxConnectionHandler[_0xff99[202]][_0xff99[1689]]= function(){var _0xf598x2= new mxCellMarker(this[_0xff99[1179]]);_0xf598x2[_0xff99[2859]]= !0;_0xf598x2[_0xff99[736]]= mxUtils[_0xff99[885]](this,function(_0xf598x3,_0xf598x4){_0xf598x4= mxCellMarker[_0xff99[202]][_0xff99[736]][_0xff99[183]](_0xf598x2,arguments);this[_0xff99[267]]= null;if(!this[_0xff99[2907]](_0xf598x4)){return null};null!= _0xf598x4?this[_0xff99[2908]]()?null!= this[_0xff99[257]]&& (this[_0xff99[267]]= this[_0xff99[2909]](this[_0xff99[257]][_0xff99[246]],_0xf598x4),null!= this[_0xff99[267]]&& 0== this[_0xff99[267]][_0xff99[67]]&& (_0xf598x4= null,this[_0xff99[2901]]()&& (this[_0xff99[267]]= null))):this[_0xff99[2671]](_0xf598x4)|| (_0xf598x4= null):this[_0xff99[2908]]()&& (!this[_0xff99[2901]]()&& !this[_0xff99[1179]][_0xff99[2406]])&& (this[_0xff99[267]]= _0xff99[110]);return _0xf598x4});_0xf598x2[_0xff99[2872]]= mxUtils[_0xff99[885]](this,function(_0xf598x3){return this[_0xff99[2908]]()?null== this[_0xff99[267]]:mxCellMarker[_0xff99[202]][_0xff99[2872]][_0xff99[183]](_0xf598x2,arguments)});_0xf598x2[_0xff99[2873]]= mxUtils[_0xff99[885]](this,function(_0xf598x3,_0xf598x4,_0xf598x5){return null== this[_0xff99[2882]]|| this[_0xff99[2908]]()?mxCellMarker[_0xff99[202]][_0xff99[2873]][_0xff99[183]](_0xf598x2,arguments):null});_0xf598x2[_0xff99[1825]]= mxUtils[_0xff99[885]](this,function(_0xf598x3,_0xf598x4){return null!= this[_0xff99[2882]]|| this[_0xff99[2908]]()?!0:mxCellMarker[_0xff99[202]][_0xff99[1825]][_0xff99[183]](_0xf598x2,arguments)});return _0xf598x2};mxConnectionHandler[_0xff99[202]][_0xff99[861]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){this[_0xff99[257]]= _0xf598x2;this[_0xff99[2823]]= new mxPoint(_0xf598x3,_0xf598x4);this[_0xff99[2897]]= null!= _0xf598x5?_0xf598x5:this[_0xff99[2910]](null);this[_0xff99[2885]][_0xff99[2860]]= this[_0xff99[2885]][_0xff99[2853]];this[_0xff99[2885]][_0xff99[2862]]= _0xf598x2;this[_0xff99[2885]][_0xff99[811]]();this[_0xff99[746]]( new mxEventObject(mxEvent.START,_0xff99[724],this[_0xff99[257]]))};mxConnectionHandler[_0xff99[202]][_0xff99[2908]]= function(){return null!= this[_0xff99[2823]]&& null!= this[_0xff99[253]]};mxConnectionHandler[_0xff99[202]][_0xff99[2671]]= function(_0xf598x2){return this[_0xff99[1179]][_0xff99[2671]](_0xf598x2)};mxConnectionHandler[_0xff99[202]][_0xff99[2672]]= function(_0xf598x2){return !0};mxConnectionHandler[_0xff99[202]][_0xff99[2909]]= function(_0xf598x2,_0xf598x3){return !this[_0xff99[2672]](_0xf598x3)?_0xff99[110]:this[_0xff99[1179]][_0xff99[2500]](null,_0xf598x2,_0xf598x3)};mxConnectionHandler[_0xff99[202]][_0xff99[2911]]= function(_0xf598x2){return this[_0xff99[2882]]};mxConnectionHandler[_0xff99[202]][_0xff99[2912]]= function(_0xf598x2){return null!= _0xf598x2[_0xff99[963]]&& _0xf598x2[_0xff99[963]][_0xff99[252]][_0xff99[265]]== this[_0xff99[1179]][_0xff99[526]]?!0:this[_0xff99[2880]]};mxConnectionHandler[_0xff99[202]][_0xff99[2913]]= function(_0xf598x2){var _0xf598x3=this[_0xff99[2911]](_0xf598x2);if(null!= _0xf598x3&& null!= _0xf598x2){this[_0xff99[2903]]= _0xf598x2;var _0xf598x4=[],_0xf598x5= new mxRectangle(0,0,_0xf598x3[_0xff99[117]],_0xf598x3[_0xff99[119]]),_0xf598x9= new mxImageShape(_0xf598x5,_0xf598x3[_0xff99[390]],null,null,0);_0xf598x9[_0xff99[1674]]= !1;this[_0xff99[2912]](_0xf598x2)?(_0xf598x9[_0xff99[507]]= mxConstants[_0xff99[1656]],_0xf598x9[_0xff99[176]](this[_0xff99[1179]][_0xff99[526]])):(_0xf598x9[_0xff99[507]]= this[_0xff99[1179]][_0xff99[507]]== mxConstants[_0xff99[508]]?mxConstants[_0xff99[508]]:mxConstants[_0xff99[1523]],_0xf598x9[_0xff99[176]](this[_0xff99[1179]][_0xff99[249]]()[_0xff99[1524]]()),this[_0xff99[2881]]&& null!= _0xf598x9[_0xff99[252]][_0xff99[328]]&& _0xf598x9[_0xff99[252]][_0xff99[265]][_0xff99[950]](_0xf598x9[_0xff99[252]],_0xf598x9[_0xff99[252]][_0xff99[265]][_0xff99[285]]));_0xf598x9[_0xff99[252]][_0xff99[124]][_0xff99[270]]= mxConstants[_0xff99[2914]];var _0xf598xa=mxUtils[_0xff99[885]](this,function(){return null!= this[_0xff99[2915]]?this[_0xff99[2915]]:_0xf598x2}),_0xf598x3=mxUtils[_0xff99[885]](this,function(_0xf598x2){mxEvent[_0xff99[721]](_0xf598x2)|| (this[_0xff99[2916]]= _0xf598x9,this[_0xff99[1179]][_0xff99[758]](mxEvent.MOUSE_DOWN, new mxMouseEvent(_0xf598x2,_0xf598xa())))});mxEvent[_0xff99[2733]](_0xf598x9[_0xff99[252]],this[_0xff99[1179]],_0xf598xa,_0xf598x3);_0xf598x4[_0xff99[207]](_0xf598x9);this[_0xff99[2905]](_0xf598x4,this[_0xff99[2903]]);return _0xf598x4};return null};mxConnectionHandler[_0xff99[202]][_0xff99[2905]]= function(_0xf598x2,_0xf598x3){if(null!= _0xf598x2&& null!= _0xf598x2[0]&& null!= _0xf598x3){var _0xf598x4=this[_0xff99[2917]](_0xf598x2[0],_0xf598x3);_0xf598x2[0][_0xff99[1562]][_0xff99[235]]= _0xf598x4[_0xff99[235]];_0xf598x2[0][_0xff99[1562]][_0xff99[236]]= _0xf598x4[_0xff99[236]];_0xf598x2[0][_0xff99[258]]()}};mxConnectionHandler[_0xff99[202]][_0xff99[2917]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=this[_0xff99[1179]][_0xff99[249]]()[_0xff99[255]],_0xf598x5=_0xf598x3[_0xff99[241]](),_0xf598x9=_0xf598x3[_0xff99[242]]();if(this[_0xff99[1179]][_0xff99[1730]](_0xf598x3[_0xff99[246]])){var _0xf598xa=this[_0xff99[1179]][_0xff99[1731]](_0xf598x3[_0xff99[246]]),_0xf598x5=0!= _0xf598xa[_0xff99[117]]?_0xf598x3[_0xff99[235]]+ _0xf598xa[_0xff99[117]]* _0xf598x4/ 2:_0xf598x5,_0xf598x9=0!= _0xf598xa[_0xff99[119]]?_0xf598x3[_0xff99[236]]+ _0xf598xa[_0xff99[119]]* _0xf598x4/ 2:_0xf598x9,_0xf598xa=mxUtils[_0xff99[431]](mxUtils[_0xff99[433]](_0xf598x3[_0xff99[124]],mxConstants.STYLE_ROTATION)|| 0);if(0!= _0xf598xa){var _0xf598x4=Math[_0xff99[426]](_0xf598xa),_0xf598xa=Math[_0xff99[427]](_0xf598xa),_0xf598x12= new mxPoint(_0xf598x3[_0xff99[241]](),_0xf598x3[_0xff99[242]]()),_0xf598x9=mxUtils[_0xff99[432]]( new mxPoint(_0xf598x5,_0xf598x9),_0xf598x4,_0xf598xa,_0xf598x12),_0xf598x5=_0xf598x9[_0xff99[235]],_0xf598x9=_0xf598x9[_0xff99[236]]}};return new mxPoint(_0xf598x5- _0xf598x2[_0xff99[1562]][_0xff99[117]]/ 2,_0xf598x9- _0xf598x2[_0xff99[1562]][_0xff99[119]]/ 2)};mxConnectionHandler[_0xff99[202]][_0xff99[2906]]= function(_0xf598x2){if(null!= _0xf598x2){this[_0xff99[2903]]= null;for(var _0xf598x3=0;_0xf598x3< _0xf598x2[_0xff99[67]];_0xf598x3++){_0xf598x2[_0xf598x3][_0xff99[515]]()}}};mxConnectionHandler[_0xff99[202]][_0xff99[2918]]= function(_0xf598x2){return !this[_0xff99[1179]][_0xff99[2579]](_0xf598x2[_0xff99[727]]())&& (null!= this[_0xff99[2886]][_0xff99[2919]]&& null!= this[_0xff99[2886]][_0xff99[2920]]|| null!= this[_0xff99[257]]&& null== this[_0xff99[267]]&& (null== this[_0xff99[2904]]|| null!= this[_0xff99[2904]]&& null!= this[_0xff99[2916]]))};mxConnectionHandler[_0xff99[202]][_0xff99[787]]= function(_0xf598x2,_0xf598x3){this[_0xff99[2899]]++;if(this[_0xff99[994]]()&& this[_0xff99[1179]][_0xff99[994]]()&& !_0xf598x3[_0xff99[721]]()&& !this[_0xff99[2908]]()&& this[_0xff99[2918]](_0xf598x3)){null!= this[_0xff99[2886]][_0xff99[2920]]&& null!= this[_0xff99[2886]][_0xff99[2919]]&& null!= this[_0xff99[2886]][_0xff99[987]]?(this[_0xff99[2921]]= this[_0xff99[2886]][_0xff99[2920]],this[_0xff99[257]]= this[_0xff99[2886]][_0xff99[2919]],this[_0xff99[2823]]= this[_0xff99[2886]][_0xff99[987]][_0xff99[238]]()):this[_0xff99[2823]]= new mxPoint(_0xf598x3[_0xff99[734]](),_0xf598x3[_0xff99[735]]());this[_0xff99[2897]]= this[_0xff99[2910]](_0xf598x3);this[_0xff99[2899]]= 1;this[_0xff99[2887]]&& null== this[_0xff99[253]]&& (this[_0xff99[2922]]= null,this[_0xff99[253]]= this[_0xff99[2156]]());if(null== this[_0xff99[257]]&& null!= this[_0xff99[2897]]){var _0xf598x4=this[_0xff99[1179]][_0xff99[2689]](_0xf598x3[_0xff99[727]]());this[_0xff99[2897]][_0xff99[246]][_0xff99[256]][_0xff99[2007]](_0xf598x4,!0)};this[_0xff99[746]]( new mxEventObject(mxEvent.START,_0xff99[724],this[_0xff99[257]]));_0xf598x3[_0xff99[722]]()}else {if(mxClient[_0xff99[754]]&& this[_0xff99[2888]]&& !this[_0xff99[2890]]&& this[_0xff99[994]]()&& this[_0xff99[1179]][_0xff99[994]]()&& !this[_0xff99[2908]]()){this[_0xff99[2890]]= !0;this[_0xff99[2893]]= _0xf598x3[_0xff99[730]]();this[_0xff99[2894]]= _0xf598x3[_0xff99[732]]();var _0xf598x5=this[_0xff99[1179]][_0xff99[441]][_0xff99[248]](this[_0xff99[2885]][_0xff99[736]](_0xf598x3));this[_0xff99[2923]]&& window[_0xff99[2924]](this[_0xff99[2923]]);this[_0xff99[2923]]= window[_0xff99[261]](mxUtils[_0xff99[885]](this,function(){this[_0xff99[2891]]&& this[_0xff99[2925]](_0xf598x3,_0xf598x5);this[_0xff99[2891]]= this[_0xff99[2890]]= !1}),this[_0xff99[2889]]);this[_0xff99[2891]]= !0}};this[_0xff99[2926]]= this[_0xff99[2916]];this[_0xff99[2916]]= null};mxConnectionHandler[_0xff99[202]][_0xff99[2925]]= function(_0xf598x2,_0xf598x3){null!= _0xf598x3&& (this[_0xff99[2885]][_0xff99[2860]]= this[_0xff99[2885]][_0xff99[2853]],this[_0xff99[2885]][_0xff99[2862]]= _0xf598x3,this[_0xff99[2885]][_0xff99[811]](),this[_0xff99[2823]]= new mxPoint(_0xf598x2[_0xff99[734]](),_0xf598x2[_0xff99[735]]()),this[_0xff99[2897]]= this[_0xff99[2910]](_0xf598x2),this[_0xff99[257]]= _0xf598x3,this[_0xff99[746]]( new mxEventObject(mxEvent.START,_0xff99[724],this[_0xff99[257]])))};mxConnectionHandler[_0xff99[202]][_0xff99[2927]]= function(_0xf598x2){return !this[_0xff99[1179]][_0xff99[1712]](_0xf598x2[_0xff99[246]])};mxConnectionHandler[_0xff99[202]][_0xff99[2910]]= function(_0xf598x2){return null};mxConnectionHandler[_0xff99[202]][_0xff99[2928]]= function(_0xf598x2){var _0xf598x3=this[_0xff99[2885]][_0xff99[2871]](_0xf598x2);this[_0xff99[2886]][_0xff99[2729]](_0xf598x2,null== this[_0xff99[2823]]);this[_0xff99[2915]]= _0xf598x3};mxConnectionHandler[_0xff99[202]][_0xff99[2929]]= function(_0xf598x2){var _0xf598x3=this[_0xff99[1179]][_0xff99[249]]()[_0xff99[518]](),_0xf598x4=this[_0xff99[1179]][_0xff99[249]]()[_0xff99[512]]();_0xf598x2[_0xff99[235]]= _0xf598x2[_0xff99[235]]/ _0xf598x3- _0xf598x4[_0xff99[235]];_0xf598x2[_0xff99[236]]= _0xf598x2[_0xff99[236]]/ _0xf598x3- _0xf598x4[_0xff99[236]]};mxConnectionHandler[_0xff99[202]][_0xff99[788]]= function(_0xf598x2,_0xf598x3){this[_0xff99[2891]]&& (this[_0xff99[2891]]= Math[_0xff99[425]](this[_0xff99[2893]]- _0xf598x3[_0xff99[730]]())< this[_0xff99[2892]]&& Math[_0xff99[425]](this[_0xff99[2894]]- _0xf598x3[_0xff99[732]]())< this[_0xff99[2892]]);if(!_0xf598x3[_0xff99[721]]()&& (this[_0xff99[2895]]|| null!= this[_0xff99[2823]]|| !this[_0xff99[1179]][_0xff99[1009]])){!this[_0xff99[994]]()&& null!= this[_0xff99[2915]] && (this[_0xff99[2906]](this[_0xff99[2904]]),this[_0xff99[2915]]= null);(null!= this[_0xff99[2823]]|| this[_0xff99[994]]()&& this[_0xff99[1179]][_0xff99[994]]())&& this[_0xff99[2928]](_0xf598x3);if(null!= this[_0xff99[2823]]){var _0xf598x4=this[_0xff99[1179]][_0xff99[249]]()[_0xff99[255]],_0xf598x4= new mxPoint(this[_0xff99[1179]][_0xff99[1021]](_0xf598x3[_0xff99[734]]()/ _0xf598x4)* _0xf598x4,this[_0xff99[1179]][_0xff99[1021]](_0xf598x3[_0xff99[735]]()/ _0xf598x4)* _0xf598x4),_0xf598x5=null,_0xf598x9=_0xf598x4;null!= this[_0xff99[2886]][_0xff99[2920]]&& (null!= this[_0xff99[2886]][_0xff99[2919]]&& null!= this[_0xff99[2886]][_0xff99[987]])&& (_0xf598x5= this[_0xff99[2886]][_0xff99[2920]],_0xf598x9= this[_0xff99[2886]][_0xff99[987]][_0xff99[238]]());var _0xf598xa=this[_0xff99[2823]];if(null!= this[_0xff99[2926]]){var _0xf598x12=this[_0xff99[2926]][_0xff99[1562]][_0xff99[117]],_0xf598x13=this[_0xff99[2926]][_0xff99[1562]][_0xff99[119]];null!= this[_0xff99[2915]]&& this[_0xff99[2883]]?(_0xf598x12= this[_0xff99[2917]](this[_0xff99[2926]],this[_0xff99[2915]]),this[_0xff99[2926]][_0xff99[1562]][_0xff99[235]]= _0xf598x12[_0xff99[235]],this[_0xff99[2926]][_0xff99[1562]][_0xff99[236]]= _0xf598x12[_0xff99[236]]):(_0xf598x12= new mxRectangle(_0xf598x3[_0xff99[734]]()+ this[_0xff99[2896]][_0xff99[235]],_0xf598x3[_0xff99[735]]()+ this[_0xff99[2896]][_0xff99[236]],_0xf598x12,_0xf598x13),this[_0xff99[2926]][_0xff99[1562]]= _0xf598x12);this[_0xff99[2926]][_0xff99[258]]()};if(null!= this[_0xff99[2897]]){this[_0xff99[2897]][_0xff99[439]]= [null,null!= this[_0xff99[2915]]?null:_0xf598x9];this[_0xff99[1179]][_0xff99[441]][_0xff99[2289]](this[_0xff99[2897]],this[_0xff99[257]],!0,this[_0xff99[2921]]);null!= this[_0xff99[2915]]&& (null== _0xf598x5&& (_0xf598x5= this[_0xff99[1179]][_0xff99[2288]](this[_0xff99[2897]],this[_0xff99[257]],!1)),this[_0xff99[2897]][_0xff99[2088]](null,!1),this[_0xff99[1179]][_0xff99[441]][_0xff99[2289]](this[_0xff99[2897]],this[_0xff99[2915]],!1,_0xf598x5));_0xf598xa= null;if(null!= this[_0xff99[2922]]){_0xf598xa= [];for(_0xf598x9= 0;_0xf598x9< this[_0xff99[2922]][_0xff99[67]];_0xf598x9++){_0xf598x5= this[_0xff99[2922]][_0xf598x9][_0xff99[238]](),this[_0xff99[2929]](_0xf598x5),_0xf598xa[_0xf598x9]= _0xf598x5}};this[_0xff99[1179]][_0xff99[441]][_0xff99[2282]](this[_0xff99[2897]],_0xf598xa,this[_0xff99[257]],this[_0xff99[2915]]);this[_0xff99[1179]][_0xff99[441]][_0xff99[2283]](this[_0xff99[2897]],this[_0xff99[257]],this[_0xff99[2915]]);_0xf598x9= this[_0xff99[2897]][_0xff99[439]][this[_0xff99[2897]][_0xff99[439]][_0xff99[67]]- 1];_0xf598xa= this[_0xff99[2897]][_0xff99[439]][0]}else {null!= this[_0xff99[2915]]&& null== this[_0xff99[2886]][_0xff99[2920]]&& (_0xf598x12= this[_0xff99[2930]](this[_0xff99[2915]],_0xf598x3),null!= _0xf598x12&& (_0xf598x9= _0xf598x12)),null== this[_0xff99[2921]]&& null!= this[_0xff99[257]]&& (_0xf598x12= this[_0xff99[2931]](this[_0xff99[257]],null!= this[_0xff99[2922]]&& 0< this[_0xff99[2922]][_0xff99[67]]?this[_0xff99[2922]][0]:_0xf598x9,_0xf598x3),null!= _0xf598x12&& (_0xf598xa= _0xf598x12))};if(null== this[_0xff99[2915]]&& this[_0xff99[2900]]){_0xf598x12= _0xf598xa;null!= this[_0xff99[2897]]&& 2< this[_0xff99[2897]][_0xff99[439]][_0xff99[67]]&& (_0xf598x5= this[_0xff99[2897]][_0xff99[439]][this[_0xff99[2897]][_0xff99[439]][_0xff99[67]]- 2],null!= _0xf598x5&& (_0xf598x12= _0xf598x5));_0xf598x5= _0xf598x9[_0xff99[235]]- _0xf598x12[_0xff99[235]];_0xf598x12= _0xf598x9[_0xff99[236]]- _0xf598x12[_0xff99[236]];_0xf598x13= Math[_0xff99[428]](_0xf598x5* _0xf598x5+ _0xf598x12* _0xf598x12);if(0== _0xf598x13){return};_0xf598x9[_0xff99[235]]-= 4* _0xf598x5/ _0xf598x13;_0xf598x9[_0xff99[236]]-= 4* _0xf598x12/ _0xf598x13};if(null== this[_0xff99[253]]&& (_0xf598x5= Math[_0xff99[425]](_0xf598x4[_0xff99[235]]- this[_0xff99[2823]][_0xff99[235]]),_0xf598x12= Math[_0xff99[425]](_0xf598x4[_0xff99[236]]- this[_0xff99[2823]][_0xff99[236]]),_0xf598x5> this[_0xff99[1179]][_0xff99[2353]]|| _0xf598x12> this[_0xff99[1179]][_0xff99[2353]])){this[_0xff99[253]]= this[_0xff99[2156]](),this[_0xff99[2928]](_0xf598x3)};null!= this[_0xff99[253]]&& (null!= this[_0xff99[2897]]?this[_0xff99[253]][_0xff99[1525]]= this[_0xff99[2897]][_0xff99[439]]:(_0xf598x4= [_0xf598xa],null!= this[_0xff99[2922]]&& (_0xf598x4= _0xf598x4[_0xff99[1919]](this[_0xff99[2922]])),_0xf598x4[_0xff99[207]](_0xf598x9),this[_0xff99[253]][_0xff99[1525]]= _0xf598x4),this[_0xff99[2932]]());mxEvent[_0xff99[722]](_0xf598x3[_0xff99[727]]());_0xf598x3[_0xff99[722]]()}else {!this[_0xff99[994]]()|| !this[_0xff99[1179]][_0xff99[994]]()?this[_0xff99[2886]][_0xff99[862]]():this[_0xff99[257]]!= this[_0xff99[2915]]&& null== this[_0xff99[2897]]?(this[_0xff99[2906]](this[_0xff99[2904]]),this[_0xff99[2904]]= null,null!= this[_0xff99[2915]]&& null== this[_0xff99[267]]&& (this[_0xff99[2904]]= this[_0xff99[2913]](this[_0xff99[2915]]),null== this[_0xff99[2904]]&& (this[_0xff99[2915]][_0xff99[1609]](mxConstants.CURSOR_CONNECT),_0xf598x3[_0xff99[722]]())),this[_0xff99[257]]= this[_0xff99[2915]]):this[_0xff99[257]]== this[_0xff99[2915]]&& (null!= this[_0xff99[2915]]&& null== this[_0xff99[2904]]&& !this[_0xff99[1179]][_0xff99[1009]])&& _0xf598x3[_0xff99[722]]()};null!= this[_0xff99[2886]][_0xff99[2920]]&& this[_0xff99[2885]][_0xff99[862]]();if(!this[_0xff99[1179]][_0xff99[1009]]&& null!= this[_0xff99[2915]] && null!= this[_0xff99[2904]]){_0xf598x4= !1;_0xf598xa= _0xf598x3[_0xff99[728]]();for(_0xf598x9= 0;_0xf598x9< this[_0xff99[2904]][_0xff99[67]]&& !_0xf598x4;_0xf598x9++){_0xf598x4= _0xf598xa== this[_0xff99[2904]][_0xf598x9][_0xff99[252]]|| _0xf598xa[_0xff99[265]]== this[_0xff99[2904]][_0xf598x9][_0xff99[252]]};_0xf598x4|| this[_0xff99[2933]](this[_0xff99[2915]],this[_0xff99[2904]],_0xf598x3)}}else {this[_0xff99[2886]][_0xff99[862]]()}};mxConnectionHandler[_0xff99[202]][_0xff99[2930]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=null,_0xf598x5=_0xf598x2[_0xff99[441]],_0xf598x9=_0xf598x5[_0xff99[2305]](_0xf598x2);if(null!= _0xf598x9){var _0xf598xa=null!= this[_0xff99[2922]]&& 0< this[_0xff99[2922]][_0xff99[67]]?this[_0xff99[2922]][this[_0xff99[2922]][_0xff99[67]]- 1]: new mxPoint(this[_0xff99[257]][_0xff99[241]](),this[_0xff99[257]][_0xff99[242]]()),_0xf598x5=_0xf598x9(_0xf598x5[_0xff99[2087]](_0xf598x2),this[_0xff99[2897]],_0xf598xa,!1);null!= _0xf598x5&& (_0xf598x4= _0xf598x5)}else {_0xf598x4= new mxPoint(_0xf598x2[_0xff99[241]](),_0xf598x2[_0xff99[242]]())};return _0xf598x4};mxConnectionHandler[_0xff99[202]][_0xff99[2931]]= function(_0xf598x2,_0xf598x3,_0xf598x4){_0xf598x4= null;var _0xf598x5=_0xf598x2[_0xff99[441]],_0xf598x9=_0xf598x5[_0xff99[2305]](_0xf598x2),_0xf598xa= new mxPoint(_0xf598x2[_0xff99[241]](),_0xf598x2[_0xff99[242]]());if(null!= _0xf598x9){var _0xf598x12=mxUtils[_0xff99[433]](_0xf598x2[_0xff99[124]],mxConstants.STYLE_ROTATION,0),_0xf598x13=-_0xf598x12* (Math[_0xff99[424]]/ 180);0!= _0xf598x12&& (_0xf598x3= mxUtils[_0xff99[432]]( new mxPoint(_0xf598x3[_0xff99[235]],_0xf598x3[_0xff99[236]]),Math[_0xff99[426]](_0xf598x13),Math[_0xff99[427]](_0xf598x13),_0xf598xa));_0xf598x2= _0xf598x9(_0xf598x5[_0xff99[2087]](_0xf598x2),_0xf598x2,_0xf598x3,!1);null!= _0xf598x2&& (0!= _0xf598x12&& (_0xf598x2= mxUtils[_0xff99[432]]( new mxPoint(_0xf598x2[_0xff99[235]],_0xf598x2[_0xff99[236]]),Math[_0xff99[426]](-_0xf598x13),Math[_0xff99[427]](-_0xf598x13),_0xf598xa)),_0xf598x4= _0xf598x2)}else {_0xf598x4= _0xf598xa};return _0xf598x4};mxConnectionHandler[_0xff99[202]][_0xff99[2933]]= function(_0xf598x2,_0xf598x3,_0xf598x4){};mxConnectionHandler[_0xff99[202]][_0xff99[2934]]= function(_0xf598x2){return null!= _0xf598x2[_0xff99[248]]()};mxConnectionHandler[_0xff99[202]][_0xff99[2935]]= function(_0xf598x2){var _0xf598x3=mxUtils[_0xff99[2196]](this[_0xff99[1179]][_0xff99[526]],_0xf598x2[_0xff99[730]](),_0xf598x2[_0xff99[732]]()),_0xf598x4=Math[_0xff99[425]](_0xf598x3[_0xff99[235]]- this[_0xff99[2823]][_0xff99[235]]),_0xf598x3=Math[_0xff99[425]](_0xf598x3[_0xff99[236]]- this[_0xff99[2823]][_0xff99[236]]);if(null!= this[_0xff99[2922]]|| 1< this[_0xff99[2899]]&& (_0xf598x4> this[_0xff99[1179]][_0xff99[2353]]|| _0xf598x3> this[_0xff99[1179]][_0xff99[2353]])){null== this[_0xff99[2922]]&& (this[_0xff99[2922]]= []),_0xf598x4= this[_0xff99[1179]][_0xff99[441]][_0xff99[255]],_0xf598x3= new mxPoint(this[_0xff99[1179]][_0xff99[1021]](_0xf598x2[_0xff99[734]]()/ _0xf598x4)* _0xf598x4,this[_0xff99[1179]][_0xff99[1021]](_0xf598x2[_0xff99[735]]()/ _0xf598x4)* _0xf598x4),this[_0xff99[2922]][_0xff99[207]](_0xf598x3)}};mxConnectionHandler[_0xff99[202]][_0xff99[789]]= function(_0xf598x2,_0xf598x3){if(!_0xf598x3[_0xff99[721]]()&& this[_0xff99[2908]]()){if(this[_0xff99[2887]]&& !this[_0xff99[2934]](_0xf598x3)){this[_0xff99[2935]](_0xf598x3);_0xf598x3[_0xff99[722]]();return};if(null== this[_0xff99[267]]){var _0xf598x4=null!= this[_0xff99[257]]?this[_0xff99[257]][_0xff99[246]]:null,_0xf598x5=null;null!= this[_0xff99[2886]][_0xff99[2920]]&& null!= this[_0xff99[2886]][_0xff99[2919]]&& (_0xf598x5= this[_0xff99[2886]][_0xff99[2919]][_0xff99[246]]);null== _0xf598x5&& this[_0xff99[2885]][_0xff99[2867]]()&& (_0xf598x5= this[_0xff99[2885]][_0xff99[2861]][_0xff99[246]]);this[_0xff99[807]](_0xf598x4,_0xf598x5,_0xf598x3[_0xff99[727]](),_0xf598x3[_0xff99[736]]())}else {null!= this[_0xff99[257]]&& (null!= this[_0xff99[2885]][_0xff99[2861]]&& this[_0xff99[257]][_0xff99[246]]== this[_0xff99[2885]][_0xff99[2861]][_0xff99[246]])&& this[_0xff99[1179]][_0xff99[2459]](this[_0xff99[2885]][_0xff99[1097]],evt),0< this[_0xff99[267]][_0xff99[67]]&& this[_0xff99[1179]][_0xff99[2580]](this[_0xff99[267]])};this[_0xff99[2906]](this[_0xff99[2904]]);_0xf598x3[_0xff99[722]]()};null!= this[_0xff99[2823]]&& this[_0xff99[862]]();this[_0xff99[2891]]= this[_0xff99[2890]]= !1};mxConnectionHandler[_0xff99[202]][_0xff99[862]]= function(){null!= this[_0xff99[253]]&& (this[_0xff99[253]][_0xff99[515]](),this[_0xff99[253]]= null);this[_0xff99[2906]](this[_0xff99[2904]]);this[_0xff99[2904]]= null;this[_0xff99[2885]][_0xff99[862]]();this[_0xff99[2886]][_0xff99[862]]();this[_0xff99[2921]]= this[_0xff99[267]]= this[_0xff99[257]]= this[_0xff99[2897]]= this[_0xff99[2926]]= null;this[_0xff99[2899]]= 0;this[_0xff99[2916]]= this[_0xff99[2823]]= null;this[_0xff99[746]]( new mxEventObject(mxEvent.RESET))};mxConnectionHandler[_0xff99[202]][_0xff99[2932]]= function(){var _0xf598x2=null== this[_0xff99[267]];this[_0xff99[253]][_0xff99[1307]]= this[_0xff99[2936]](_0xf598x2);_0xf598x2= this[_0xff99[2937]](_0xf598x2);this[_0xff99[253]][_0xff99[1336]]= _0xf598x2;this[_0xff99[253]][_0xff99[258]]()};mxConnectionHandler[_0xff99[202]][_0xff99[2937]]= function(_0xf598x2){return _0xf598x2?mxConstants[_0xff99[2829]]:mxConstants[_0xff99[2938]]};mxConnectionHandler[_0xff99[202]][_0xff99[2936]]= function(_0xf598x2){return _0xf598x2?3:1};mxConnectionHandler[_0xff99[202]][_0xff99[807]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){if(null!= _0xf598x3|| this[_0xff99[2901]]()|| this[_0xff99[1179]][_0xff99[2406]]){var _0xf598x9=this[_0xff99[1179]][_0xff99[502]](),_0xf598xa=null;_0xf598x9[_0xff99[473]]();try{if(null!= _0xf598x2&& (null== _0xf598x3&& this[_0xff99[2901]]())&& (_0xf598x3= this[_0xff99[2939]](_0xf598x4,_0xf598x2),null!= _0xf598x3)){_0xf598x5= this[_0xff99[1179]][_0xff99[564]]([_0xf598x3],_0xf598x4,_0xf598x5);if(null== _0xf598x5|| !this[_0xff99[1179]][_0xff99[502]]()[_0xff99[250]](_0xf598x5)){var _0xf598x12=this[_0xff99[1179]][_0xff99[249]]()[_0xff99[248]](_0xf598x5);if(null!= _0xf598x12){var _0xf598x13=_0xf598x9[_0xff99[1721]](_0xf598x3);_0xf598x13[_0xff99[235]]-= _0xf598x12[_0xff99[2078]][_0xff99[235]];_0xf598x13[_0xff99[236]]-= _0xf598x12[_0xff99[2078]][_0xff99[236]]}}else {_0xf598x5= this[_0xff99[1179]][_0xff99[902]]()};this[_0xff99[1179]][_0xff99[2103]](_0xf598x3,_0xf598x5)};var _0xf598x14=this[_0xff99[1179]][_0xff99[902]]();null!= _0xf598x2&& (null!= _0xf598x3&& _0xf598x9[_0xff99[1197]](_0xf598x2)== _0xf598x9[_0xff99[1197]](_0xf598x3)&& _0xf598x9[_0xff99[1197]](_0xf598x9[_0xff99[1197]](_0xf598x2))!= _0xf598x9[_0xff99[501]]())&& (_0xf598x14= _0xf598x9[_0xff99[1197]](_0xf598x2),null!= _0xf598x2[_0xff99[256]]&& _0xf598x2[_0xff99[256]][_0xff99[1500]]&& (null!= _0xf598x3[_0xff99[256]]&& _0xf598x3[_0xff99[256]][_0xff99[1500]])&& (_0xf598x14= _0xf598x9[_0xff99[1197]](_0xf598x14)));_0xf598x13= _0xf598x12= null;null!= this[_0xff99[2897]]&& (_0xf598x12= this[_0xff99[2897]][_0xff99[246]][_0xff99[131]],_0xf598x13= this[_0xff99[2897]][_0xff99[246]][_0xff99[124]]);_0xf598xa= this[_0xff99[1960]](_0xf598x14,null,_0xf598x12,_0xf598x2,_0xf598x3,_0xf598x13);if(null!= _0xf598xa){this[_0xff99[1179]][_0xff99[2545]](_0xf598xa,_0xf598x2,!0,this[_0xff99[2921]]);this[_0xff99[1179]][_0xff99[2545]](_0xf598xa,_0xf598x3,!1,this[_0xff99[2886]][_0xff99[2920]]);null!= this[_0xff99[2897]]&& _0xf598x9[_0xff99[1724]](_0xf598xa,this[_0xff99[2897]][_0xff99[246]][_0xff99[256]]);var _0xf598x15=_0xf598x9[_0xff99[1721]](_0xf598xa);null== _0xf598x15&& (_0xf598x15= new mxGeometry,_0xf598x15[_0xff99[1500]]= !0,_0xf598x9[_0xff99[1724]](_0xf598xa,_0xf598x15));if(null!= this[_0xff99[2922]]&& 0< this[_0xff99[2922]][_0xff99[67]]){var _0xf598x16=this[_0xff99[1179]][_0xff99[441]][_0xff99[255]],_0xf598x17=this[_0xff99[1179]][_0xff99[441]][_0xff99[513]];_0xf598x15[_0xff99[1525]]= [];for(_0xf598x2= 0;_0xf598x2< this[_0xff99[2922]][_0xff99[67]];_0xf598x2++){var _0xf598x18=this[_0xff99[2922]][_0xf598x2];_0xf598x15[_0xff99[1525]][_0xff99[207]]( new mxPoint(_0xf598x18[_0xff99[235]]/ _0xf598x16- _0xf598x17[_0xff99[235]],_0xf598x18[_0xff99[236]]/ _0xf598x16- _0xf598x17[_0xff99[236]]))}};null== _0xf598x3&& (_0xf598x18= this[_0xff99[1179]][_0xff99[2689]](_0xf598x4,!1),_0xf598x18[_0xff99[235]]-= this[_0xff99[1179]][_0xff99[1136]]/ this[_0xff99[1179]][_0xff99[441]][_0xff99[255]],_0xf598x18[_0xff99[236]]-= this[_0xff99[1179]][_0xff99[1137]]/ this[_0xff99[1179]][_0xff99[441]][_0xff99[255]],_0xf598x15[_0xff99[2007]](_0xf598x18,!1));this[_0xff99[746]]( new mxEventObject(mxEvent.CONNECT,_0xff99[246],_0xf598xa,_0xff99[763],_0xf598x4,_0xff99[772],_0xf598x5))}}catch(q){mxLog[_0xff99[539]](),mxLog[_0xff99[143]](q[_0xff99[281]])}finally{_0xf598x9[_0xff99[476]]()};this[_0xff99[804]]&& this[_0xff99[2707]](_0xf598xa,_0xf598x3)}};mxConnectionHandler[_0xff99[202]][_0xff99[2707]]= function(_0xf598x2,_0xf598x3){this[_0xff99[1179]][_0xff99[2450]](_0xf598x2)};mxConnectionHandler[_0xff99[202]][_0xff99[1960]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa){if(null== this[_0xff99[1033]]){return this[_0xff99[1179]][_0xff99[1960]](_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa)};_0xf598x3= this[_0xff99[2503]](_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa);return _0xf598x3= this[_0xff99[1179]][_0xff99[2504]](_0xf598x3,_0xf598x2,_0xf598x5,_0xf598x9)};mxConnectionHandler[_0xff99[202]][_0xff99[2939]]= function(_0xf598x2,_0xf598x3){for(var _0xf598x4=this[_0xff99[1179]][_0xff99[1198]](_0xf598x3);null!= _0xf598x4&& _0xf598x4[_0xff99[1500]];){_0xf598x3= this[_0xff99[1179]][_0xff99[502]]()[_0xff99[1197]](_0xf598x3),_0xf598x4= this[_0xff99[1179]][_0xff99[1198]](_0xf598x3)};var _0xf598x5=this[_0xff99[1179]][_0xff99[899]]([_0xf598x3])[0],_0xf598x4=this[_0xff99[1179]][_0xff99[502]]()[_0xff99[1721]](_0xf598x5);if(null!= _0xf598x4){var _0xf598x9=this[_0xff99[1179]][_0xff99[2689]](_0xf598x2);_0xf598x4[_0xff99[235]]= this[_0xff99[1179]][_0xff99[1021]](_0xf598x9[_0xff99[235]]- _0xf598x4[_0xff99[117]]/ 2)- this[_0xff99[1179]][_0xff99[1136]]/ this[_0xff99[1179]][_0xff99[441]][_0xff99[255]];_0xf598x4[_0xff99[236]]= this[_0xff99[1179]][_0xff99[1021]](_0xf598x9[_0xff99[236]]- _0xf598x4[_0xff99[119]]/ 2)- this[_0xff99[1179]][_0xff99[1137]]/ this[_0xff99[1179]][_0xff99[441]][_0xff99[255]];if(null!= this[_0xff99[2823]]){var _0xf598xa=this[_0xff99[1179]][_0xff99[441]][_0xff99[248]](_0xf598x3);if(null!= _0xf598xa){var _0xf598x12=this[_0xff99[2940]]();Math[_0xff99[425]](this[_0xff99[1179]][_0xff99[1021]](this[_0xff99[2823]][_0xff99[235]])- this[_0xff99[1179]][_0xff99[1021]](_0xf598x9[_0xff99[235]]))<= _0xf598x12?_0xf598x4[_0xff99[235]]= _0xf598xa[_0xff99[235]]:Math[_0xff99[425]](this[_0xff99[1179]][_0xff99[1021]](this[_0xff99[2823]][_0xff99[236]])- this[_0xff99[1179]][_0xff99[1021]](_0xf598x9[_0xff99[236]]))<= _0xf598x12&& (_0xf598x4[_0xff99[236]]= _0xf598xa[_0xff99[236]])}}};return _0xf598x5};mxConnectionHandler[_0xff99[202]][_0xff99[2940]]= function(){return this[_0xff99[1179]][_0xff99[997]]()?this[_0xff99[1179]][_0xff99[1020]]:this[_0xff99[1179]][_0xff99[2353]]};mxConnectionHandler[_0xff99[202]][_0xff99[2503]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){var _0xf598x9=null;null!= this[_0xff99[1033]]&& (_0xf598x9= this[_0xff99[1033]](_0xf598x3,_0xf598x4,_0xf598x5));null== _0xf598x9&& (_0xf598x9= new mxCell(_0xf598x2|| _0xff99[110]),_0xf598x9[_0xff99[1994]](!0),_0xf598x9[_0xff99[475]](_0xf598x5),_0xf598x2= new mxGeometry,_0xf598x2[_0xff99[1500]]= !0,_0xf598x9[_0xff99[1724]](_0xf598x2));return _0xf598x9};mxConnectionHandler[_0xff99[202]][_0xff99[515]]= function(){this[_0xff99[1179]][_0xff99[1148]](this);null!= this[_0xff99[253]]&& (this[_0xff99[253]][_0xff99[515]](),this[_0xff99[253]]= null);null!= this[_0xff99[2885]]&& (this[_0xff99[2885]][_0xff99[515]](),this[_0xff99[2885]]= null);null!= this[_0xff99[2886]]&& (this[_0xff99[2886]][_0xff99[515]](),this[_0xff99[2886]]= null);null!= this[_0xff99[1176]]&& (this[_0xff99[1179]][_0xff99[502]]()[_0xff99[745]](this[_0xff99[1176]]),this[_0xff99[1179]][_0xff99[249]]()[_0xff99[745]](this[_0xff99[1176]]),this[_0xff99[1176]]= null);null!= this[_0xff99[2898]]&& (this[_0xff99[1179]][_0xff99[745]](this[_0xff99[2898]]),this[_0xff99[1179]][_0xff99[249]]()[_0xff99[745]](this[_0xff99[2898]]),this[_0xff99[2898]]= null)};function mxConstraintHandler(_0xf598x2){this[_0xff99[1179]]= _0xf598x2}mxConstraintHandler[_0xff99[202]][_0xff99[2941]]= new mxImage(mxClient[_0xff99[88]]+ _0xff99[2942],5,5);mxConstraintHandler[_0xff99[202]][_0xff99[1179]]= null;mxConstraintHandler[_0xff99[202]][_0xff99[984]]= !0;mxConstraintHandler[_0xff99[202]][_0xff99[2943]]= mxConstants[_0xff99[2854]];mxConstraintHandler[_0xff99[202]][_0xff99[994]]= function(){return this[_0xff99[984]]};mxConstraintHandler[_0xff99[202]][_0xff99[995]]= function(_0xf598x2){this[_0xff99[984]]= _0xf598x2};mxConstraintHandler[_0xff99[202]][_0xff99[862]]= function(){if(null!= this[_0xff99[2944]]){for(var _0xf598x2=0;_0xf598x2< this[_0xff99[2944]][_0xff99[67]];_0xf598x2++){this[_0xff99[2944]][_0xf598x2][_0xff99[515]]()};this[_0xff99[2944]]= null};null!= this[_0xff99[2945]]&& (this[_0xff99[2945]][_0xff99[515]](),this[_0xff99[2945]]= null);this[_0xff99[2946]]= this[_0xff99[2919]]= this[_0xff99[987]]= this[_0xff99[2947]]= this[_0xff99[2920]]= null};mxConstraintHandler[_0xff99[202]][_0xff99[2636]]= function(){return this[_0xff99[1179]][_0xff99[2636]]()};mxConstraintHandler[_0xff99[202]][_0xff99[2948]]= function(_0xf598x2,_0xf598x3,_0xf598x4){return this[_0xff99[2941]]};mxConstraintHandler[_0xff99[202]][_0xff99[2949]]= function(_0xf598x2,_0xf598x3){return !1};mxConstraintHandler[_0xff99[202]][_0xff99[2729]]= function(_0xf598x2,_0xf598x3){if(this[_0xff99[994]]()&& !this[_0xff99[2949]](_0xf598x2)){var _0xf598x4=this[_0xff99[2636]](),_0xf598x5= new mxRectangle(_0xf598x2[_0xff99[734]]()- _0xf598x4,_0xf598x2[_0xff99[735]]()- _0xf598x4,2* _0xf598x4,2* _0xf598x4),_0xf598x9=null!= _0xf598x2[_0xff99[736]]()?this[_0xff99[1179]][_0xff99[2565]](_0xf598x2[_0xff99[736]]()):!1;if(null== this[_0xff99[2947]]|| !mxUtils[_0xff99[1825]](this[_0xff99[2947]],_0xf598x5)|| null!= _0xf598x2[_0xff99[248]]()&& null!= this[_0xff99[2919]]&& _0xf598x9){if(this[_0xff99[2947]]= null,_0xf598x2[_0xff99[248]]()!= this[_0xff99[2919]]){if(this[_0xff99[2919]]= null,this[_0xff99[1531]]= null!= _0xf598x2[_0xff99[248]]()&& _0xf598x9?this[_0xff99[1179]][_0xff99[2538]](_0xf598x2[_0xff99[248]](),_0xf598x3):null,null!= this[_0xff99[1531]]){this[_0xff99[2919]]= _0xf598x2[_0xff99[248]]();this[_0xff99[2947]]= new mxRectangle(_0xf598x2[_0xff99[248]]()[_0xff99[235]],_0xf598x2[_0xff99[248]]()[_0xff99[236]],_0xf598x2[_0xff99[248]]()[_0xff99[117]],_0xf598x2[_0xff99[248]]()[_0xff99[119]]);if(null!= this[_0xff99[2944]]){for(_0xf598x9= 0;_0xf598x9< this[_0xff99[2944]][_0xff99[67]];_0xf598x9++){this[_0xff99[2944]][_0xf598x9][_0xff99[515]]()};this[_0xff99[2946]]= this[_0xff99[2944]]= null};this[_0xff99[2944]]= [];this[_0xff99[2946]]= [];for(_0xf598x9= 0;_0xf598x9< this[_0xff99[1531]][_0xff99[67]];_0xf598x9++){var _0xf598xa=this[_0xff99[1179]][_0xff99[2290]](_0xf598x2[_0xff99[248]](),this[_0xff99[1531]][_0xf598x9]),_0xf598x12=this[_0xff99[2948]](_0xf598x2[_0xff99[248]](),this[_0xff99[1531]][_0xf598x9],_0xf598xa),_0xf598x13=_0xf598x12[_0xff99[390]],_0xf598x12= new mxRectangle(_0xf598xa[_0xff99[235]]- _0xf598x12[_0xff99[117]]/ 2,_0xf598xa[_0xff99[236]]- _0xf598x12[_0xff99[119]]/ 2,_0xf598x12[_0xff99[117]],_0xf598x12[_0xff99[119]]),_0xf598x12= new mxImageShape(_0xf598x12,_0xf598x13);_0xf598x12[_0xff99[507]]= this[_0xff99[1179]][_0xff99[507]]!= mxConstants[_0xff99[508]]?mxConstants[_0xff99[2334]]:mxConstants[_0xff99[508]];_0xf598x12[_0xff99[1674]]= !1;_0xf598x12[_0xff99[176]](this[_0xff99[1179]][_0xff99[249]]()[_0xff99[1524]]());null!= _0xf598x12[_0xff99[252]][_0xff99[328]]&& _0xf598x12[_0xff99[252]][_0xff99[265]][_0xff99[950]](_0xf598x12[_0xff99[252]],_0xf598x12[_0xff99[252]][_0xff99[265]][_0xff99[285]]);_0xf598x13= mxUtils[_0xff99[885]](this,function(){return null!= this[_0xff99[2919]]?this[_0xff99[2919]]:_0xf598x2[_0xff99[248]]()});_0xf598x12[_0xff99[258]]();mxEvent[_0xff99[2733]](_0xf598x12[_0xff99[252]],this[_0xff99[1179]],_0xf598x13);this[_0xff99[2947]][_0xff99[99]](_0xf598x12[_0xff99[1562]]);this[_0xff99[2944]][_0xff99[207]](_0xf598x12);this[_0xff99[2946]][_0xff99[207]](_0xf598xa)};this[_0xff99[2947]][_0xff99[244]](_0xf598x4)}else {if(null!= this[_0xff99[2944]]){null!= this[_0xff99[2945]]&& (this[_0xff99[2945]][_0xff99[515]](),this[_0xff99[2945]]= null);for(_0xf598x9= 0;_0xf598x9< this[_0xff99[2944]][_0xff99[67]];_0xf598x9++){this[_0xff99[2944]][_0xf598x9][_0xff99[515]]()};this[_0xff99[2946]]= this[_0xff99[2944]]= null}}}};this[_0xff99[987]]= this[_0xff99[2920]]= null;if(null!= this[_0xff99[2944]]&& null!= this[_0xff99[1531]]&& (null== _0xf598x2[_0xff99[248]]()|| this[_0xff99[2919]]== _0xf598x2[_0xff99[248]]())){for(_0xf598x9= 0;_0xf598x9< this[_0xff99[2944]][_0xff99[67]];_0xf598x9++){if(mxUtils[_0xff99[1825]](this[_0xff99[2944]][_0xf598x9][_0xff99[1562]],_0xf598x5)){this[_0xff99[2920]]= this[_0xff99[1531]][_0xf598x9];this[_0xff99[987]]= this[_0xff99[2946]][_0xf598x9];_0xf598x4= this[_0xff99[2944]][_0xf598x9][_0xff99[1562]][_0xff99[238]]();_0xf598x4[_0xff99[244]](mxClient[_0xff99[80]]?3:2);mxClient[_0xff99[80]]&& (_0xf598x4[_0xff99[117]]-= 1,_0xf598x4[_0xff99[119]]-= 1);null== this[_0xff99[2945]]?(_0xf598x4= new mxRectangleShape(_0xf598x4,null,this[_0xff99[2943]],3),_0xf598x4[_0xff99[507]]= this[_0xff99[1179]][_0xff99[507]]== mxConstants[_0xff99[508]]?mxConstants[_0xff99[508]]:mxConstants[_0xff99[1523]],_0xf598x4[_0xff99[176]](this[_0xff99[1179]][_0xff99[249]]()[_0xff99[1524]]()),this[_0xff99[2945]]= _0xf598x4,_0xf598x13= mxUtils[_0xff99[885]](this,function(){return null!= this[_0xff99[2919]]?this[_0xff99[2919]]:_0xf598x2[_0xff99[248]]()}),mxEvent[_0xff99[2733]](_0xf598x4[_0xff99[252]],this[_0xff99[1179]],_0xf598x13)):(this[_0xff99[2945]][_0xff99[1562]]= _0xf598x4,this[_0xff99[2945]][_0xff99[258]]());break}}};null== this[_0xff99[2920]]&& null!= this[_0xff99[2945]]&& (this[_0xff99[2945]][_0xff99[515]](),this[_0xff99[2945]]= null)}};mxConstraintHandler[_0xff99[202]][_0xff99[515]]= function(){this[_0xff99[862]]()};function mxRubberband(_0xf598x2){null!= _0xf598x2&& (this[_0xff99[1179]]= _0xf598x2,this[_0xff99[1179]][_0xff99[1133]](this),this[_0xff99[2730]]= mxUtils[_0xff99[885]](this,function(){this[_0xff99[2950]]()}),this[_0xff99[1179]][_0xff99[169]](mxEvent.PAN,this[_0xff99[2730]]),mxClient[_0xff99[80]]&& mxEvent[_0xff99[169]](window,_0xff99[2428],mxUtils[_0xff99[885]](this,function(){this[_0xff99[515]]()})))}mxRubberband[_0xff99[202]][_0xff99[2951]]= 20;mxRubberband[_0xff99[202]][_0xff99[984]]= !0;mxRubberband[_0xff99[202]][_0xff99[485]]= null;mxRubberband[_0xff99[202]][_0xff99[2952]]= null;mxRubberband[_0xff99[202]][_0xff99[2953]]= 0;mxRubberband[_0xff99[202]][_0xff99[2954]]= 0;mxRubberband[_0xff99[202]][_0xff99[994]]= function(){return this[_0xff99[984]]};mxRubberband[_0xff99[202]][_0xff99[995]]= function(_0xf598x2){this[_0xff99[984]]= _0xf598x2};mxRubberband[_0xff99[202]][_0xff99[787]]= function(_0xf598x2,_0xf598x3){if(!_0xf598x3[_0xff99[721]]()&& this[_0xff99[994]]() && this[_0xff99[1179]][_0xff99[994]]() && (this[_0xff99[1179]][_0xff99[2579]](_0xf598x3[_0xff99[727]]())|| null== _0xf598x3[_0xff99[248]]())){var _0xf598x4=mxUtils[_0xff99[445]](this[_0xff99[1179]][_0xff99[526]]),_0xf598x5=mxUtils[_0xff99[444]](this[_0xff99[1179]][_0xff99[526]]);_0xf598x5[_0xff99[235]]-= _0xf598x4[_0xff99[235]];_0xf598x5[_0xff99[236]]-= _0xf598x4[_0xff99[236]];this[_0xff99[861]](_0xf598x3[_0xff99[730]]()+ _0xf598x5[_0xff99[235]],_0xf598x3[_0xff99[732]]()+ _0xf598x5[_0xff99[236]]);if(mxClient[_0xff99[133]]&& !mxClient[_0xff99[75]]&& !mxClient[_0xff99[76]]){var _0xf598x9=this[_0xff99[1179]][_0xff99[526]],_0xf598xa=function(_0xf598x2){_0xf598x2= new mxMouseEvent(_0xf598x2);var _0xf598x3=mxUtils[_0xff99[2196]](_0xf598x9,_0xf598x2[_0xff99[730]](),_0xf598x2[_0xff99[732]]());_0xf598x2[_0xff99[725]]= _0xf598x3[_0xff99[235]];_0xf598x2[_0xff99[726]]= _0xf598x3[_0xff99[236]];return _0xf598x2};this[_0xff99[2955]]= mxUtils[_0xff99[885]](this,function(_0xf598x2){this[_0xff99[788]](this[_0xff99[1179]],_0xf598xa(_0xf598x2))});this[_0xff99[981]]= mxUtils[_0xff99[885]](this,function(_0xf598x2){this[_0xff99[789]](this[_0xff99[1179]],_0xf598xa(_0xf598x2))});mxEvent[_0xff99[169]](document,_0xff99[752],this[_0xff99[2955]]);mxEvent[_0xff99[169]](document,_0xff99[753],this[_0xff99[981]])};_0xf598x3[_0xff99[722]](!1)}};mxRubberband[_0xff99[202]][_0xff99[861]]= function(_0xf598x2,_0xf598x3){this[_0xff99[2823]]= new mxPoint(_0xf598x2,_0xf598x3)};mxRubberband[_0xff99[202]][_0xff99[788]]= function(_0xf598x2,_0xf598x3){if(!_0xf598x3[_0xff99[721]]()&& null!= this[_0xff99[2823]]){var _0xf598x4=mxUtils[_0xff99[444]](this[_0xff99[1179]][_0xff99[526]]),_0xf598x5=mxUtils[_0xff99[445]](this[_0xff99[1179]][_0xff99[526]]);_0xf598x4[_0xff99[235]]-= _0xf598x5[_0xff99[235]];_0xf598x4[_0xff99[236]]-= _0xf598x5[_0xff99[236]];var _0xf598x5=_0xf598x3[_0xff99[730]]()+ _0xf598x4[_0xff99[235]],_0xf598x4=_0xf598x3[_0xff99[732]]()+ _0xf598x4[_0xff99[236]],_0xf598x9=this[_0xff99[2823]][_0xff99[235]]- _0xf598x5,_0xf598xa=this[_0xff99[2823]][_0xff99[236]]- _0xf598x4,_0xf598x12=this[_0xff99[1179]][_0xff99[2353]];if(null!= this[_0xff99[485]]|| Math[_0xff99[425]](_0xf598x9)> _0xf598x12|| Math[_0xff99[425]](_0xf598xa)> _0xf598x12){null== this[_0xff99[485]]&& (this[_0xff99[485]]= this[_0xff99[2156]]()),mxUtils[_0xff99[2440]](),this[_0xff99[2729]](_0xf598x5,_0xf598x4),_0xf598x3[_0xff99[722]]()}}};mxRubberband[_0xff99[202]][_0xff99[2156]]= function(){null== this[_0xff99[2952]]&& (this[_0xff99[2952]]= document[_0xff99[55]](_0xff99[485]),this[_0xff99[2952]][_0xff99[926]]= _0xff99[2956],mxUtils[_0xff99[254]](this[_0xff99[2952]],this[_0xff99[2951]]));this[_0xff99[1179]][_0xff99[526]][_0xff99[62]](this[_0xff99[2952]]);return this[_0xff99[2952]]};mxRubberband[_0xff99[202]][_0xff99[789]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=null!= this[_0xff99[485]];this[_0xff99[862]]();_0xf598x4&& (_0xf598x4= new mxRectangle(this[_0xff99[235]],this[_0xff99[236]],this[_0xff99[117]],this[_0xff99[119]]),this[_0xff99[1179]][_0xff99[2698]](_0xf598x4,_0xf598x3[_0xff99[727]]()),_0xf598x3[_0xff99[722]]())};mxRubberband[_0xff99[202]][_0xff99[862]]= function(){null!= this[_0xff99[485]]&& this[_0xff99[485]][_0xff99[265]][_0xff99[266]](this[_0xff99[485]]);null!= this[_0xff99[2955]]&& (mxEvent[_0xff99[745]](document,_0xff99[752],this[_0xff99[2955]]),this[_0xff99[2955]]= null);null!= this[_0xff99[981]]&& (mxEvent[_0xff99[745]](document,_0xff99[753],this[_0xff99[981]]),this[_0xff99[981]]= null);this[_0xff99[2954]]= this[_0xff99[2953]]= 0;this[_0xff99[485]]= this[_0xff99[2823]]= null};mxRubberband[_0xff99[202]][_0xff99[2729]]= function(_0xf598x2,_0xf598x3){this[_0xff99[2953]]= _0xf598x2;this[_0xff99[2954]]= _0xf598x3;this[_0xff99[2950]]()};mxRubberband[_0xff99[202]][_0xff99[2950]]= function(){if(null!= this[_0xff99[485]]){var _0xf598x2=this[_0xff99[2953]]- this[_0xff99[1179]][_0xff99[1136]],_0xf598x3=this[_0xff99[2954]]- this[_0xff99[1179]][_0xff99[1137]];this[_0xff99[235]]= Math[_0xff99[243]](this[_0xff99[2823]][_0xff99[235]],_0xf598x2);this[_0xff99[236]]= Math[_0xff99[243]](this[_0xff99[2823]][_0xff99[236]],_0xf598x3);this[_0xff99[117]]= Math[_0xff99[160]](this[_0xff99[2823]][_0xff99[235]],_0xf598x2)- this[_0xff99[235]];this[_0xff99[119]]= Math[_0xff99[160]](this[_0xff99[2823]][_0xff99[236]],_0xf598x3)- this[_0xff99[236]];_0xf598x2= mxClient[_0xff99[47]]?this[_0xff99[1179]][_0xff99[1137]]:0;this[_0xff99[485]][_0xff99[124]][_0xff99[361]]= this[_0xff99[235]]+ (mxClient[_0xff99[47]]?this[_0xff99[1179]][_0xff99[1136]]:0)+ _0xff99[168];this[_0xff99[485]][_0xff99[124]][_0xff99[125]]= this[_0xff99[236]]+ _0xf598x2+ _0xff99[168];this[_0xff99[485]][_0xff99[124]][_0xff99[117]]= Math[_0xff99[160]](1,this[_0xff99[117]])+ _0xff99[168];this[_0xff99[485]][_0xff99[124]][_0xff99[119]]= Math[_0xff99[160]](1,this[_0xff99[119]])+ _0xff99[168]}};mxRubberband[_0xff99[202]][_0xff99[515]]= function(){this[_0xff99[2717]]|| (this[_0xff99[2717]]= !0,this[_0xff99[1179]][_0xff99[1148]](this),this[_0xff99[1179]][_0xff99[745]](this[_0xff99[2730]]),this[_0xff99[862]](),null!= this[_0xff99[2952]]&& (this[_0xff99[2952]]= null))};function mxVertexHandler(_0xf598x2){null!= _0xf598x2&& (this[_0xff99[724]]= _0xf598x2,this[_0xff99[176]]())}mxVertexHandler[_0xff99[202]][_0xff99[1179]]= null;mxVertexHandler[_0xff99[202]][_0xff99[724]]= null;mxVertexHandler[_0xff99[202]][_0xff99[2957]]= !1;mxVertexHandler[_0xff99[202]][_0xff99[1983]]= null;mxVertexHandler[_0xff99[202]][_0xff99[2958]]= !0;mxVertexHandler[_0xff99[202]][_0xff99[2959]]= null;mxVertexHandler[_0xff99[202]][_0xff99[2353]]= 0;mxVertexHandler[_0xff99[202]][_0xff99[2809]]= !1;mxVertexHandler[_0xff99[202]][_0xff99[2960]]= !0;mxVertexHandler[_0xff99[202]][_0xff99[176]]= function(){this[_0xff99[1179]]= this[_0xff99[724]][_0xff99[441]][_0xff99[1179]];this[_0xff99[2961]]= this[_0xff99[2962]](this[_0xff99[724]]);this[_0xff99[1562]]= new mxRectangle(this[_0xff99[2961]][_0xff99[235]],this[_0xff99[2961]][_0xff99[236]],this[_0xff99[2961]][_0xff99[117]],this[_0xff99[2961]][_0xff99[119]]);this[_0xff99[2732]]= this[_0xff99[2963]](this[_0xff99[1562]]);this[_0xff99[2732]][_0xff99[507]]= this[_0xff99[1179]][_0xff99[507]]!= mxConstants[_0xff99[508]]?mxConstants[_0xff99[1523]]:mxConstants[_0xff99[508]];this[_0xff99[2732]][_0xff99[1229]]= !1;this[_0xff99[2732]][_0xff99[176]](this[_0xff99[1179]][_0xff99[249]]()[_0xff99[1524]]());this[_0xff99[1179]][_0xff99[1712]](this[_0xff99[724]][_0xff99[246]])&& (this[_0xff99[2732]][_0xff99[252]][_0xff99[124]][_0xff99[270]]= mxConstants[_0xff99[2832]]);mxEvent[_0xff99[2733]](this[_0xff99[2732]][_0xff99[252]],this[_0xff99[1179]],this[_0xff99[724]]);if(0>= mxGraphHandler[_0xff99[202]][_0xff99[2795]]|| this[_0xff99[1179]][_0xff99[2694]]()< mxGraphHandler[_0xff99[202]][_0xff99[2795]]){var _0xf598x2=this[_0xff99[1179]][_0xff99[2657]](this[_0xff99[724]][_0xff99[246]]);this[_0xff99[2964]]= [];if(_0xf598x2|| this[_0xff99[1179]][_0xff99[2628]](this[_0xff99[724]][_0xff99[246]])&& 2<= this[_0xff99[724]][_0xff99[117]]&& 2<= this[_0xff99[724]][_0xff99[119]]){var _0xf598x3=0;_0xf598x2&& (this[_0xff99[2957]]|| (this[_0xff99[2964]][_0xff99[207]](this[_0xff99[2735]](_0xff99[936],_0xf598x3++)),this[_0xff99[2964]][_0xff99[207]](this[_0xff99[2735]](_0xff99[2965],_0xf598x3++)),this[_0xff99[2964]][_0xff99[207]](this[_0xff99[2735]](_0xff99[2966],_0xf598x3++)),this[_0xff99[2964]][_0xff99[207]](this[_0xff99[2735]](_0xff99[2967],_0xf598x3++)),this[_0xff99[2964]][_0xff99[207]](this[_0xff99[2735]](_0xff99[2968],_0xf598x3++)),this[_0xff99[2964]][_0xff99[207]](this[_0xff99[2735]](_0xff99[2969],_0xf598x3++)),this[_0xff99[2964]][_0xff99[207]](this[_0xff99[2735]](_0xff99[2970],_0xf598x3++))),this[_0xff99[2964]][_0xff99[207]](this[_0xff99[2735]](_0xff99[2971],_0xf598x3++)));_0xf598x2= this[_0xff99[1179]][_0xff99[251]][_0xff99[1721]](this[_0xff99[724]][_0xff99[246]]);null!= _0xf598x2&& (!_0xf598x2[_0xff99[1500]]&& !this[_0xff99[1179]][_0xff99[1730]](this[_0xff99[724]][_0xff99[246]]) && this[_0xff99[1179]][_0xff99[2628]](this[_0xff99[724]][_0xff99[246]]))&& (this[_0xff99[2972]]= this[_0xff99[2735]](mxConstants.CURSOR_LABEL_HANDLE,mxEvent.LABEL_HANDLE,mxConstants.LABEL_HANDLE_SIZE,mxConstants.LABEL_HANDLE_FILLCOLOR),this[_0xff99[2964]][_0xff99[207]](this[_0xff99[2972]]))}else {this[_0xff99[1179]][_0xff99[1712]](this[_0xff99[724]][_0xff99[246]])&& (!this[_0xff99[1179]][_0xff99[2657]](this[_0xff99[724]][_0xff99[246]])&& 2> this[_0xff99[724]][_0xff99[117]] && 2> this[_0xff99[724]][_0xff99[119]])&& (this[_0xff99[2972]]= this[_0xff99[2735]](mxConstants.CURSOR_MOVABLE_VERTEX,null,null,mxConstants.LABEL_HANDLE_FILLCOLOR),this[_0xff99[2964]][_0xff99[207]](this[_0xff99[2972]]))}};if(this[_0xff99[2809]]&& (0>= mxGraphHandler[_0xff99[202]][_0xff99[2795]]|| this[_0xff99[1179]][_0xff99[2694]]()< mxGraphHandler[_0xff99[202]][_0xff99[2795]])){this[_0xff99[2973]]= this[_0xff99[2735]](_0xff99[356],mxEvent.ROTATION_HANDLE,mxConstants[_0xff99[2974]]+ 3,mxConstants.HANDLE_FILLCOLOR),this[_0xff99[2964]][_0xff99[207]](this[_0xff99[2973]])};this[_0xff99[258]]()};mxVertexHandler[_0xff99[202]][_0xff99[2962]]= function(_0xf598x2){return new mxRectangle(Math[_0xff99[488]](_0xf598x2[_0xff99[235]]),Math[_0xff99[488]](_0xf598x2[_0xff99[236]]),Math[_0xff99[488]](_0xf598x2[_0xff99[117]]),Math[_0xff99[488]](_0xf598x2[_0xff99[119]]))};mxVertexHandler[_0xff99[202]][_0xff99[2963]]= function(_0xf598x2){_0xf598x2= new mxRectangleShape(_0xf598x2,null,this[_0xff99[2975]]());_0xf598x2[_0xff99[1307]]= this[_0xff99[2976]]();_0xf598x2[_0xff99[1522]]= this[_0xff99[2977]]();return _0xf598x2};mxVertexHandler[_0xff99[202]][_0xff99[2975]]= function(){return mxConstants[_0xff99[2978]]};mxVertexHandler[_0xff99[202]][_0xff99[2976]]= function(){return mxConstants[_0xff99[2979]]};mxVertexHandler[_0xff99[202]][_0xff99[2977]]= function(){return mxConstants[_0xff99[2980]]};mxVertexHandler[_0xff99[202]][_0xff99[2735]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){_0xf598x4= _0xf598x4|| mxConstants[_0xff99[2974]];_0xf598x4= new mxRectangle(0,0,_0xf598x4,_0xf598x4);_0xf598x5= this[_0xff99[2981]](_0xf598x4,_0xf598x3,_0xf598x5);_0xf598x5[_0xff99[1567]]()&& null!= this[_0xff99[724]][_0xff99[963]]&& this[_0xff99[724]][_0xff99[963]][_0xff99[252]][_0xff99[265]]== this[_0xff99[1179]][_0xff99[526]]?(_0xf598x5[_0xff99[1562]][_0xff99[119]]-= 1,_0xf598x5[_0xff99[1562]][_0xff99[117]]-= 1,_0xf598x5[_0xff99[507]]= mxConstants[_0xff99[1656]],_0xf598x5[_0xff99[176]](this[_0xff99[1179]][_0xff99[526]])):(_0xf598x5[_0xff99[507]]= this[_0xff99[1179]][_0xff99[507]]!= mxConstants[_0xff99[508]]?mxConstants[_0xff99[2334]]:mxConstants[_0xff99[508]],_0xf598x5[_0xff99[176]](this[_0xff99[1179]][_0xff99[249]]()[_0xff99[1524]]()));mxEvent[_0xff99[2733]](_0xf598x5[_0xff99[252]],this[_0xff99[1179]],this[_0xff99[724]]);this[_0xff99[1179]][_0xff99[994]]()&& (_0xf598x5[_0xff99[252]][_0xff99[124]][_0xff99[270]]= _0xf598x2);this[_0xff99[2982]](_0xf598x3)|| (_0xf598x5[_0xff99[252]][_0xff99[124]][_0xff99[187]]= _0xff99[188]);return _0xf598x5};mxVertexHandler[_0xff99[202]][_0xff99[2982]]= function(_0xf598x2){return !0};mxVertexHandler[_0xff99[202]][_0xff99[2981]]= function(_0xf598x2,_0xf598x3,_0xf598x4){return null!= this[_0xff99[2959]]?(_0xf598x2[_0xff99[117]]= this[_0xff99[2959]][_0xff99[117]],_0xf598x2[_0xff99[119]]= this[_0xff99[2959]][_0xff99[119]], new mxImageShape(_0xf598x2,this[_0xff99[2959]][_0xff99[390]])):_0xf598x3== mxEvent[_0xff99[2983]]? new mxEllipse(_0xf598x2,_0xf598x4|| mxConstants[_0xff99[2984]],mxConstants.HANDLE_STROKECOLOR): new mxRectangleShape(_0xf598x2,_0xf598x4|| mxConstants[_0xff99[2984]],mxConstants.HANDLE_STROKECOLOR)};mxVertexHandler[_0xff99[202]][_0xff99[2985]]= function(_0xf598x2,_0xf598x3,_0xf598x4){null!= _0xf598x2&& (_0xf598x2[_0xff99[1562]][_0xff99[235]]= Math[_0xff99[488]](_0xf598x3- _0xf598x2[_0xff99[1562]][_0xff99[117]]/ 2),_0xf598x2[_0xff99[1562]][_0xff99[236]]= Math[_0xff99[488]](_0xf598x4- _0xf598x2[_0xff99[1562]][_0xff99[119]]/ 2),_0xf598x2[_0xff99[258]]())};mxVertexHandler[_0xff99[202]][_0xff99[2986]]= function(_0xf598x2){if(_0xf598x2[_0xff99[729]](this[_0xff99[2973]])){return mxEvent[_0xff99[2983]]};if(_0xf598x2[_0xff99[729]](this[_0xff99[2972]])){return mxEvent[_0xff99[2987]]};if(null!= this[_0xff99[2964]]){for(var _0xf598x3=this[_0xff99[2353]],_0xf598x3=this[_0xff99[2958]]&& (mxClient[_0xff99[80]]|| 0< _0xf598x3)? new mxRectangle(_0xf598x2[_0xff99[734]]()- _0xf598x3,_0xf598x2[_0xff99[735]]()- _0xf598x3,2* _0xf598x3,2* _0xf598x3):null,_0xf598x4=0;_0xf598x4< this[_0xff99[2964]][_0xff99[67]];_0xf598x4++){if(_0xf598x2[_0xff99[729]](this[_0xff99[2964]][_0xf598x4])|| null!= _0xf598x3&& mxUtils[_0xff99[1825]](this[_0xff99[2964]][_0xf598x4][_0xff99[1562]],_0xf598x3)){return _0xf598x4}}};return null};mxVertexHandler[_0xff99[202]][_0xff99[787]]= function(_0xf598x2,_0xf598x3){if(!_0xf598x3[_0xff99[721]]()&& this[_0xff99[1179]][_0xff99[994]]() && !this[_0xff99[1179]][_0xff99[2579]](_0xf598x3[_0xff99[727]]()) && (0< this[_0xff99[2353]]|| _0xf598x3[_0xff99[248]]()== this[_0xff99[724]])){var _0xf598x4=this[_0xff99[2986]](_0xf598x3);null!= _0xf598x4&& (this[_0xff99[861]](_0xf598x3[_0xff99[730]](),_0xf598x3[_0xff99[732]](),_0xf598x4),_0xf598x3[_0xff99[722]]())}};mxVertexHandler[_0xff99[202]][_0xff99[861]]= function(_0xf598x2,_0xf598x3,_0xf598x4){_0xf598x2= mxUtils[_0xff99[2196]](this[_0xff99[1179]][_0xff99[526]],_0xf598x2,_0xf598x3);this[_0xff99[2739]]= _0xf598x2[_0xff99[235]];this[_0xff99[2740]]= _0xf598x2[_0xff99[236]];this[_0xff99[1983]]= _0xf598x4;this[_0xff99[2732]][_0xff99[252]][_0xff99[124]][_0xff99[495]]= _0xf598x4== mxEvent[_0xff99[2983]]?_0xff99[497]:_0xff99[130];this[_0xff99[2988]]= this[_0xff99[2963]](this[_0xff99[1562]]);!(mxClient[_0xff99[48]]&& 0!= Number(this[_0xff99[724]][_0xff99[124]][mxConstants[_0xff99[2278]]]|| _0xff99[468]))&& null!= this[_0xff99[724]][_0xff99[963]] && this[_0xff99[724]][_0xff99[963]][_0xff99[252]][_0xff99[265]]== this[_0xff99[1179]][_0xff99[526]]?(this[_0xff99[2988]][_0xff99[507]]= mxConstants[_0xff99[1656]],this[_0xff99[2988]][_0xff99[176]](this[_0xff99[1179]][_0xff99[526]])):(this[_0xff99[2988]][_0xff99[507]]= this[_0xff99[1179]][_0xff99[507]]!= mxConstants[_0xff99[508]]?mxConstants[_0xff99[1523]]:mxConstants[_0xff99[508]],this[_0xff99[2988]][_0xff99[176]](this[_0xff99[1179]][_0xff99[441]][_0xff99[1524]]()))};mxVertexHandler[_0xff99[202]][_0xff99[788]]= function(_0xf598x2,_0xf598x3){if(!_0xf598x3[_0xff99[721]]()&& null!= this[_0xff99[1983]]){var _0xf598x4= new mxPoint(_0xf598x3[_0xff99[734]](),_0xf598x3[_0xff99[735]]()),_0xf598x5=this[_0xff99[1179]][_0xff99[1018]](_0xf598x3[_0xff99[727]]()),_0xf598x9=this[_0xff99[1179]][_0xff99[249]]()[_0xff99[255]];if(this[_0xff99[1983]]== mxEvent[_0xff99[2987]]){_0xf598x5&& (_0xf598x4[_0xff99[235]]= this[_0xff99[1179]][_0xff99[1021]](_0xf598x4[_0xff99[235]]/ _0xf598x9)* _0xf598x9,_0xf598x4[_0xff99[236]]= this[_0xff99[1179]][_0xff99[1021]](_0xf598x4[_0xff99[236]]/ _0xf598x9)* _0xf598x9),this[_0xff99[2985]](this[_0xff99[2964]][this[_0xff99[2964]][_0xff99[67]]- 1],_0xf598x4[_0xff99[235]],_0xf598x4[_0xff99[236]])}else {if(this[_0xff99[1983]]== mxEvent[_0xff99[2983]]){var _0xf598xa=this[_0xff99[724]][_0xff99[235]]+ this[_0xff99[724]][_0xff99[117]]/ 2- _0xf598x4[_0xff99[235]],_0xf598x12=this[_0xff99[724]][_0xff99[236]]+ this[_0xff99[724]][_0xff99[119]]/ 2- _0xf598x4[_0xff99[236]];this[_0xff99[2989]]= 0!= _0xf598xa?180* Math[_0xff99[2990]](_0xf598x12/ _0xf598xa)/ Math[_0xff99[424]]+ 90:0> _0xf598x12?180:0;0< _0xf598xa&& (this[_0xff99[2989]]-= 180);this[_0xff99[2960]]&& (_0xf598xa= _0xf598x4[_0xff99[235]]- this[_0xff99[724]][_0xff99[241]](),_0xf598x12= _0xf598x4[_0xff99[236]]- this[_0xff99[724]][_0xff99[242]](),_0xf598xa= Math[_0xff99[425]](Math[_0xff99[428]](_0xf598xa* _0xf598xa+ _0xf598x12* _0xf598x12)- this[_0xff99[724]][_0xff99[119]]/ 2- 20),_0xf598xa= Math[_0xff99[160]](1,5* Math[_0xff99[243]](3,Math[_0xff99[160]](0,Math[_0xff99[488]](80/ Math[_0xff99[425]](_0xf598xa))))),this[_0xff99[2989]]= Math[_0xff99[488]](this[_0xff99[2989]]/ _0xf598xa)* _0xf598xa);this[_0xff99[2732]][_0xff99[603]]= this[_0xff99[2989]];this[_0xff99[2732]][_0xff99[258]]()}else {var _0xf598x13=mxUtils[_0xff99[431]](this[_0xff99[724]][_0xff99[124]][mxConstants[_0xff99[2278]]]|| _0xff99[468]),_0xf598x14=Math[_0xff99[426]](-_0xf598x13),_0xf598x15=Math[_0xff99[427]](-_0xf598x13),_0xf598x16= new mxPoint(this[_0xff99[724]][_0xff99[241]](),this[_0xff99[724]][_0xff99[242]]()),_0xf598xa=_0xf598x4[_0xff99[235]]- this[_0xff99[2739]],_0xf598x12=_0xf598x4[_0xff99[236]]- this[_0xff99[2740]],_0xf598x4=this[_0xff99[1179]][_0xff99[441]][_0xff99[513]],_0xf598x17=_0xf598x15* _0xf598xa+ _0xf598x14* _0xf598x12,_0xf598xa=_0xf598x14* _0xf598xa- _0xf598x15* _0xf598x12;this[_0xff99[1562]]= this[_0xff99[2991]](this[_0xff99[2961]],_0xf598xa,_0xf598x17,this[_0xff99[1983]],_0xf598x5,_0xf598x9,_0xf598x4);_0xf598x14= Math[_0xff99[426]](_0xf598x13);_0xf598x15= Math[_0xff99[427]](_0xf598x13);_0xf598x12= new mxPoint(this[_0xff99[1562]][_0xff99[241]](),this[_0xff99[1562]][_0xff99[242]]());_0xf598xa= _0xf598x12[_0xff99[235]]- _0xf598x16[_0xff99[235]];_0xf598x12= _0xf598x12[_0xff99[236]]- _0xf598x16[_0xff99[236]];_0xf598x16= _0xf598x15* _0xf598xa+ _0xf598x14* _0xf598x12- _0xf598x12;this[_0xff99[1562]][_0xff99[235]]+= _0xf598x14* _0xf598xa- _0xf598x15* _0xf598x12- _0xf598xa;this[_0xff99[1562]][_0xff99[236]]+= _0xf598x16;this[_0xff99[2932]]()}};_0xf598x3[_0xff99[722]]()}else {null!= this[_0xff99[2986]](_0xf598x3)&& _0xf598x3[_0xff99[722]](!1)}};mxVertexHandler[_0xff99[202]][_0xff99[789]]= function(_0xf598x2,_0xf598x3){if(!_0xf598x3[_0xff99[721]]()&& null!= this[_0xff99[1983]] && null!= this[_0xff99[724]]){var _0xf598x4= new mxPoint(_0xf598x3[_0xff99[734]](),_0xf598x3[_0xff99[735]]());this[_0xff99[1179]][_0xff99[502]]()[_0xff99[473]]();try{if(this[_0xff99[1983]]== mxEvent[_0xff99[2983]]){null!= this[_0xff99[2989]]&& this[_0xff99[2992]](this[_0xff99[724]][_0xff99[246]],this[_0xff99[2989]]- (this[_0xff99[724]][_0xff99[124]][mxConstants[_0xff99[2278]]]|| 0))}else {var _0xf598x5=this[_0xff99[1179]][_0xff99[1018]](_0xf598x3[_0xff99[727]]()),_0xf598x9=mxUtils[_0xff99[431]](this[_0xff99[724]][_0xff99[124]][mxConstants[_0xff99[2278]]]|| _0xff99[468]),_0xf598xa=Math[_0xff99[426]](-_0xf598x9),_0xf598x12=Math[_0xff99[427]](-_0xf598x9),_0xf598x13=_0xf598x4[_0xff99[235]]- this[_0xff99[2739]],_0xf598x14=_0xf598x4[_0xff99[236]]- this[_0xff99[2740]],_0xf598x4=_0xf598x12* _0xf598x13+ _0xf598xa* _0xf598x14,_0xf598x13=_0xf598xa* _0xf598x13- _0xf598x12* _0xf598x14,_0xf598x14=_0xf598x4,_0xf598x15=this[_0xff99[1179]][_0xff99[441]][_0xff99[255]];this[_0xff99[2526]](this[_0xff99[724]][_0xff99[246]],_0xf598x13/ _0xf598x15,_0xf598x14/ _0xf598x15,this[_0xff99[1983]],_0xf598x5)}}finally{this[_0xff99[1179]][_0xff99[502]]()[_0xff99[476]]()};this[_0xff99[862]]();_0xf598x3[_0xff99[722]]()}};mxVertexHandler[_0xff99[202]][_0xff99[2992]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=this[_0xff99[1179]][_0xff99[502]]();if(_0xf598x4[_0xff99[1193]](_0xf598x2)){var _0xf598x5=_0xf598x2== this[_0xff99[724]]?this[_0xff99[724]]:this[_0xff99[1179]][_0xff99[441]][_0xff99[248]](_0xf598x2);null!= _0xf598x5&& this[_0xff99[1179]][_0xff99[1717]](mxConstants.STYLE_ROTATION,(_0xf598x5[_0xff99[124]][mxConstants[_0xff99[2278]]]|| 0)+ _0xf598x3,[_0xf598x2]);if(this[_0xff99[724]][_0xff99[246]]!= _0xf598x2&& (_0xf598x5= this[_0xff99[1179]][_0xff99[1198]](_0xf598x2),null!= _0xf598x5&& !_0xf598x5[_0xff99[1500]])){if(0!= _0xf598x3){var _0xf598x9=this[_0xff99[1179]][_0xff99[502]]()[_0xff99[1197]](_0xf598x2),_0xf598xa=this[_0xff99[1179]][_0xff99[1198]](_0xf598x9);if(!_0xf598x5[_0xff99[1500]]&& null!= _0xf598xa){var _0xf598x12=mxUtils[_0xff99[431]](_0xf598x3),_0xf598x9=Math[_0xff99[426]](_0xf598x12),_0xf598x12=Math[_0xff99[427]](_0xf598x12),_0xf598x13= new mxPoint(_0xf598x5[_0xff99[241]](),_0xf598x5[_0xff99[242]]()),_0xf598xa= new mxPoint(_0xf598xa[_0xff99[117]]/ 2,_0xf598xa[_0xff99[119]]/ 2),_0xf598x9=mxUtils[_0xff99[432]](_0xf598x13,_0xf598x9,_0xf598x12,_0xf598xa),_0xf598x5=_0xf598x5[_0xff99[238]]();_0xf598x5[_0xff99[235]]= _0xf598x9[_0xff99[235]]- _0xf598x5[_0xff99[117]]/ 2;_0xf598x5[_0xff99[236]]= _0xf598x9[_0xff99[236]]- _0xf598x5[_0xff99[119]]/ 2;_0xf598x4[_0xff99[1724]](_0xf598x2,_0xf598x5)}}else {_0xf598x5= _0xf598x5[_0xff99[238]](),_0xf598x5[_0xff99[235]]+= dx,_0xf598x5[_0xff99[236]]+= dy,_0xf598x4[_0xff99[1724]](_0xf598x2,_0xf598x5)}};_0xf598x5= _0xf598x4[_0xff99[262]](_0xf598x2);for(_0xf598x9= 0;_0xf598x9< _0xf598x5;_0xf598x9++){this[_0xff99[2992]](_0xf598x4[_0xff99[263]](_0xf598x2,_0xf598x9),_0xf598x3)}}};mxVertexHandler[_0xff99[202]][_0xff99[862]]= function(){this[_0xff99[1983]]= this[_0xff99[2989]]= null;null!= this[_0xff99[2988]]&& (this[_0xff99[2988]][_0xff99[515]](),this[_0xff99[2988]]= null);null!= this[_0xff99[2732]]&& (this[_0xff99[2732]][_0xff99[252]][_0xff99[124]][_0xff99[495]]= _0xff99[497],this[_0xff99[2961]]= this[_0xff99[2962]](this[_0xff99[724]]),this[_0xff99[1562]]= new mxRectangle(this[_0xff99[2961]][_0xff99[235]],this[_0xff99[2961]][_0xff99[236]],this[_0xff99[2961]][_0xff99[117]],this[_0xff99[2961]][_0xff99[119]]),this[_0xff99[2932]]())};mxVertexHandler[_0xff99[202]][_0xff99[2526]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){var _0xf598xa=this[_0xff99[1179]][_0xff99[251]][_0xff99[1721]](_0xf598x2);if(null!= _0xf598xa){if(_0xf598x5== mxEvent[_0xff99[2987]]){_0xf598x5= this[_0xff99[1179]][_0xff99[441]][_0xff99[255]],_0xf598x3= (this[_0xff99[2972]][_0xff99[1562]][_0xff99[241]]()- this[_0xff99[2739]])/ _0xf598x5,_0xf598x4= (this[_0xff99[2972]][_0xff99[1562]][_0xff99[242]]()- this[_0xff99[2740]])/ _0xf598x5,_0xf598xa= _0xf598xa[_0xff99[238]](),null== _0xf598xa[_0xff99[1368]]?_0xf598xa[_0xff99[1368]]= new mxPoint(_0xf598x3,_0xf598x4):(_0xf598xa[_0xff99[1368]][_0xff99[235]]+= _0xf598x3,_0xf598xa[_0xff99[1368]][_0xff99[236]]+= _0xf598x4),this[_0xff99[1179]][_0xff99[251]][_0xff99[1724]](_0xf598x2,_0xf598xa)}else {_0xf598x5= this[_0xff99[2991]](_0xf598xa,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,1, new mxPoint(0,0));var _0xf598x12=mxUtils[_0xff99[431]](this[_0xff99[724]][_0xff99[124]][mxConstants[_0xff99[2278]]]|| _0xff99[468]);if(0!= _0xf598x12){_0xf598x3= _0xf598x5[_0xff99[241]]()- _0xf598xa[_0xff99[241]]();_0xf598x4= _0xf598x5[_0xff99[242]]()- _0xf598xa[_0xff99[242]]();_0xf598x9= Math[_0xff99[426]](_0xf598x12);var _0xf598x13=Math[_0xff99[427]](_0xf598x12),_0xf598x12=_0xf598x9* _0xf598x3- _0xf598x13* _0xf598x4- _0xf598x3;_0xf598x3= _0xf598x13* _0xf598x3+ _0xf598x9* _0xf598x4- _0xf598x4;_0xf598x4= _0xf598x5[_0xff99[235]]- _0xf598xa[_0xff99[235]];var _0xf598x14=_0xf598x5[_0xff99[236]]- _0xf598xa[_0xff99[236]],_0xf598x15=_0xf598x9* _0xf598x4- _0xf598x13* _0xf598x14;_0xf598x9= _0xf598x13* _0xf598x4+ _0xf598x9* _0xf598x14;_0xf598x5[_0xff99[235]]+= _0xf598x12;_0xf598x5[_0xff99[236]]+= _0xf598x3;if(!this[_0xff99[1179]][_0xff99[1742]](_0xf598x2)&& (0!= _0xf598x12|| 0!= _0xf598x3)){_0xf598x4= _0xf598xa[_0xff99[235]]- _0xf598x5[_0xff99[235]]+ _0xf598x15,_0xf598x14= _0xf598xa[_0xff99[236]]- _0xf598x5[_0xff99[236]]+ _0xf598x9,this[_0xff99[2993]](_0xf598x2,_0xf598x4,_0xf598x14)}};this[_0xff99[1179]][_0xff99[2526]](_0xf598x2,_0xf598x5)}}};mxVertexHandler[_0xff99[202]][_0xff99[2993]]= function(_0xf598x2,_0xf598x3,_0xf598x4){for(var _0xf598x5=this[_0xff99[1179]][_0xff99[502]](),_0xf598x9=_0xf598x5[_0xff99[262]](_0xf598x2),_0xf598xa=0;_0xf598xa< _0xf598x9;_0xf598xa++){var _0xf598x12=_0xf598x5[_0xff99[263]](_0xf598x2,_0xf598xa);if(_0xf598x5[_0xff99[1193]](_0xf598x12)){var _0xf598x13=this[_0xff99[1179]][_0xff99[1198]](_0xf598x12);null!= _0xf598x13&& !_0xf598x13[_0xff99[1500]]&& (_0xf598x13= _0xf598x13[_0xff99[238]](),_0xf598x13[_0xff99[235]]+= _0xf598x3,_0xf598x13[_0xff99[236]]+= _0xf598x4,_0xf598x5[_0xff99[1724]](_0xf598x12,_0xf598x13))}}};mxVertexHandler[_0xff99[202]][_0xff99[2991]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa,_0xf598x12){if(this[_0xff99[2957]]){_0xf598x12= _0xf598x2[_0xff99[235]]+ _0xf598x2[_0xff99[117]]+ _0xf598x3;var _0xf598x13=_0xf598x2[_0xff99[236]]+ _0xf598x2[_0xff99[119]]+ _0xf598x4;_0xf598x9&& (_0xf598x12= this[_0xff99[1179]][_0xff99[1021]](_0xf598x12/ _0xf598xa)* _0xf598xa,_0xf598x13= this[_0xff99[1179]][_0xff99[1021]](_0xf598x13/ _0xf598xa)* _0xf598xa);_0xf598xa= new mxRectangle(_0xf598x2[_0xff99[235]],_0xf598x2[_0xff99[236]],0,0);_0xf598xa[_0xff99[99]]( new mxRectangle(_0xf598x12,_0xf598x13,0,0));return _0xf598xa};var _0xf598x13=_0xf598x2[_0xff99[235]]- _0xf598x12[_0xff99[235]]* _0xf598xa,_0xf598x14=_0xf598x13+ _0xf598x2[_0xff99[117]],_0xf598x15=_0xf598x2[_0xff99[236]]- _0xf598x12[_0xff99[236]]* _0xf598xa;_0xf598x2= _0xf598x15+ _0xf598x2[_0xff99[119]];4< _0xf598x5?(_0xf598x2+= _0xf598x4,_0xf598x9&& (_0xf598x2= this[_0xff99[1179]][_0xff99[1021]](_0xf598x2/ _0xf598xa)* _0xf598xa)):3> _0xf598x5&& (_0xf598x15+= _0xf598x4,_0xf598x9&& (_0xf598x15= this[_0xff99[1179]][_0xff99[1021]](_0xf598x15/ _0xf598xa)* _0xf598xa));if(0== _0xf598x5|| 3== _0xf598x5|| 5== _0xf598x5){_0xf598x13+= _0xf598x3,_0xf598x9&& (_0xf598x13= this[_0xff99[1179]][_0xff99[1021]](_0xf598x13/ _0xf598xa)* _0xf598xa)}else {if(2== _0xf598x5|| 4== _0xf598x5|| 7== _0xf598x5){_0xf598x14+= _0xf598x3,_0xf598x9&& (_0xf598x14= this[_0xff99[1179]][_0xff99[1021]](_0xf598x14/ _0xf598xa)* _0xf598xa)}};_0xf598x9= _0xf598x14- _0xf598x13;_0xf598x2-= _0xf598x15;0> _0xf598x9&& (_0xf598x13+= _0xf598x9,_0xf598x9= Math[_0xff99[425]](_0xf598x9));0> _0xf598x2&& (_0xf598x15+= _0xf598x2,_0xf598x2= Math[_0xff99[425]](_0xf598x2));return new mxRectangle(_0xf598x13+ _0xf598x12[_0xff99[235]]* _0xf598xa,_0xf598x15+ _0xf598x12[_0xff99[236]]* _0xf598xa,_0xf598x9,_0xf598x2)};mxVertexHandler[_0xff99[202]][_0xff99[258]]= function(){this[_0xff99[2961]]= this[_0xff99[2962]](this[_0xff99[724]]);this[_0xff99[1562]]= new mxRectangle(this[_0xff99[724]][_0xff99[235]],this[_0xff99[724]][_0xff99[236]],this[_0xff99[724]][_0xff99[117]],this[_0xff99[724]][_0xff99[119]]);var _0xf598x2=this[_0xff99[724]];if(null!= this[_0xff99[2964]]){var _0xf598x3=_0xf598x2[_0xff99[235]]+ _0xf598x2[_0xff99[117]],_0xf598x4=_0xf598x2[_0xff99[236]]+ _0xf598x2[_0xff99[119]];if(this[_0xff99[2957]]){this[_0xff99[2985]](this[_0xff99[2964]][0],_0xf598x3,_0xf598x4)}else {var _0xf598x5=_0xf598x2[_0xff99[235]]+ _0xf598x2[_0xff99[117]]/ 2,_0xf598x9=_0xf598x2[_0xff99[236]]+ _0xf598x2[_0xff99[119]]/ 2;if(1< this[_0xff99[2964]][_0xff99[67]]){var _0xf598xa=mxUtils[_0xff99[431]](_0xf598x2[_0xff99[124]][mxConstants[_0xff99[2278]]]|| _0xff99[468]),_0xf598x12=Math[_0xff99[426]](_0xf598xa),_0xf598xa=Math[_0xff99[427]](_0xf598xa),_0xf598x13= new mxPoint(_0xf598x2[_0xff99[241]](),_0xf598x2[_0xff99[242]]()),_0xf598x14=mxUtils[_0xff99[432]]( new mxPoint(_0xf598x2[_0xff99[235]],_0xf598x2[_0xff99[236]]),_0xf598x12,_0xf598xa,_0xf598x13);this[_0xff99[2985]](this[_0xff99[2964]][0],_0xf598x14[_0xff99[235]],_0xf598x14[_0xff99[236]]);_0xf598x14[_0xff99[235]]= _0xf598x5;_0xf598x14[_0xff99[236]]= _0xf598x2[_0xff99[236]];_0xf598x14= mxUtils[_0xff99[432]](_0xf598x14,_0xf598x12,_0xf598xa,_0xf598x13);this[_0xff99[2985]](this[_0xff99[2964]][1],_0xf598x14[_0xff99[235]],_0xf598x14[_0xff99[236]]);_0xf598x14[_0xff99[235]]= _0xf598x3;_0xf598x14[_0xff99[236]]= _0xf598x2[_0xff99[236]];_0xf598x14= mxUtils[_0xff99[432]](_0xf598x14,_0xf598x12,_0xf598xa,_0xf598x13);this[_0xff99[2985]](this[_0xff99[2964]][2],_0xf598x14[_0xff99[235]],_0xf598x14[_0xff99[236]]);_0xf598x14[_0xff99[235]]= _0xf598x2[_0xff99[235]];_0xf598x14[_0xff99[236]]= _0xf598x9;_0xf598x14= mxUtils[_0xff99[432]](_0xf598x14,_0xf598x12,_0xf598xa,_0xf598x13);this[_0xff99[2985]](this[_0xff99[2964]][3],_0xf598x14[_0xff99[235]],_0xf598x14[_0xff99[236]]);_0xf598x14[_0xff99[235]]= _0xf598x3;_0xf598x14[_0xff99[236]]= _0xf598x9;_0xf598x14= mxUtils[_0xff99[432]](_0xf598x14,_0xf598x12,_0xf598xa,_0xf598x13);this[_0xff99[2985]](this[_0xff99[2964]][4],_0xf598x14[_0xff99[235]],_0xf598x14[_0xff99[236]]);_0xf598x14[_0xff99[235]]= _0xf598x2[_0xff99[235]];_0xf598x14[_0xff99[236]]= _0xf598x4;_0xf598x14= mxUtils[_0xff99[432]](_0xf598x14,_0xf598x12,_0xf598xa,_0xf598x13);this[_0xff99[2985]](this[_0xff99[2964]][5],_0xf598x14[_0xff99[235]],_0xf598x14[_0xff99[236]]);_0xf598x14[_0xff99[235]]= _0xf598x5;_0xf598x14[_0xff99[236]]= _0xf598x4;_0xf598x14= mxUtils[_0xff99[432]](_0xf598x14,_0xf598x12,_0xf598xa,_0xf598x13);this[_0xff99[2985]](this[_0xff99[2964]][6],_0xf598x14[_0xff99[235]],_0xf598x14[_0xff99[236]]);_0xf598x14[_0xff99[235]]= _0xf598x3;_0xf598x14[_0xff99[236]]= _0xf598x4;_0xf598x14= mxUtils[_0xff99[432]](_0xf598x14,_0xf598x12,_0xf598xa,_0xf598x13);this[_0xff99[2985]](this[_0xff99[2964]][7],_0xf598x14[_0xff99[235]],_0xf598x14[_0xff99[236]]);this[_0xff99[2985]](this[_0xff99[2964]][8],_0xf598x5+ _0xf598x2[_0xff99[2079]][_0xff99[235]],_0xf598x9+ _0xf598x2[_0xff99[2079]][_0xff99[236]])}else {2<= this[_0xff99[724]][_0xff99[117]]&& 2<= this[_0xff99[724]][_0xff99[119]]?this[_0xff99[2985]](this[_0xff99[2964]][0],_0xf598x5+ _0xf598x2[_0xff99[2079]][_0xff99[235]],_0xf598x9+ _0xf598x2[_0xff99[2079]][_0xff99[236]]):this[_0xff99[2985]](this[_0xff99[2964]][0],_0xf598x2[_0xff99[235]],_0xf598x2[_0xff99[236]])}}};null!= this[_0xff99[2973]]&& (_0xf598xa= mxUtils[_0xff99[431]](this[_0xff99[724]][_0xff99[124]][mxConstants[_0xff99[2278]]]|| _0xff99[468]),_0xf598x12= Math[_0xff99[426]](_0xf598xa),_0xf598xa= Math[_0xff99[427]](_0xf598xa),_0xf598x13= new mxPoint(this[_0xff99[724]][_0xff99[241]](),this[_0xff99[724]][_0xff99[242]]()),_0xf598x14= mxUtils[_0xff99[432]]( new mxPoint(_0xf598x2[_0xff99[235]]+ _0xf598x2[_0xff99[117]]/ 2,_0xf598x2[_0xff99[236]]- 16),_0xf598x12,_0xf598xa,_0xf598x13),this[_0xff99[2985]](this[_0xff99[2973]],_0xf598x14[_0xff99[235]],_0xf598x14[_0xff99[236]]));this[_0xff99[2732]][_0xff99[603]]= Number(this[_0xff99[724]][_0xff99[124]][mxConstants[_0xff99[2278]]]|| _0xff99[468]);this[_0xff99[2932]]()};mxVertexHandler[_0xff99[202]][_0xff99[2932]]= function(){null!= this[_0xff99[2988]]&& (this[_0xff99[2988]][_0xff99[1562]]= this[_0xff99[1562]],this[_0xff99[2988]][_0xff99[252]][_0xff99[265]]== this[_0xff99[1179]][_0xff99[526]]&& (this[_0xff99[2988]][_0xff99[1562]][_0xff99[117]]= Math[_0xff99[160]](0,this[_0xff99[2988]][_0xff99[1562]][_0xff99[117]]- 1),this[_0xff99[2988]][_0xff99[1562]][_0xff99[119]]= Math[_0xff99[160]](0,this[_0xff99[2988]][_0xff99[1562]][_0xff99[119]]- 1)),this[_0xff99[2988]][_0xff99[603]]= Number(this[_0xff99[724]][_0xff99[124]][mxConstants[_0xff99[2278]]]|| _0xff99[468]),this[_0xff99[2988]][_0xff99[258]]());this[_0xff99[2732]][_0xff99[1562]]= this[_0xff99[1562]];this[_0xff99[2732]][_0xff99[258]]()};mxVertexHandler[_0xff99[202]][_0xff99[515]]= function(){null!= this[_0xff99[2988]]&& (this[_0xff99[2988]][_0xff99[515]](),this[_0xff99[2988]]= null);this[_0xff99[2732]][_0xff99[515]]();this[_0xff99[2972]]= this[_0xff99[2732]]= null;if(null!= this[_0xff99[2964]]){for(var _0xf598x2=0;_0xf598x2< this[_0xff99[2964]][_0xff99[67]];_0xf598x2++){this[_0xff99[2964]][_0xf598x2][_0xff99[515]](),this[_0xff99[2964]][_0xf598x2]= null}}};function mxEdgeHandler(_0xf598x2){null!= _0xf598x2&& (this[_0xff99[724]]= _0xf598x2,this[_0xff99[176]]())}mxEdgeHandler[_0xff99[202]][_0xff99[1179]]= null;mxEdgeHandler[_0xff99[202]][_0xff99[724]]= null;mxEdgeHandler[_0xff99[202]][_0xff99[2885]]= null;mxEdgeHandler[_0xff99[202]][_0xff99[2886]]= null;mxEdgeHandler[_0xff99[202]][_0xff99[267]]= null;mxEdgeHandler[_0xff99[202]][_0xff99[253]]= null;mxEdgeHandler[_0xff99[202]][_0xff99[2994]]= null;mxEdgeHandler[_0xff99[202]][_0xff99[2972]]= null;mxEdgeHandler[_0xff99[202]][_0xff99[2797]]= !0;mxEdgeHandler[_0xff99[202]][_0xff99[2771]]= !1;mxEdgeHandler[_0xff99[202]][_0xff99[2995]]= !1;mxEdgeHandler[_0xff99[202]][_0xff99[574]]= !1;mxEdgeHandler[_0xff99[202]][_0xff99[2958]]= !0;mxEdgeHandler[_0xff99[202]][_0xff99[2996]]= !1;mxEdgeHandler[_0xff99[202]][_0xff99[2959]]= null;mxEdgeHandler[_0xff99[202]][_0xff99[2353]]= 0;mxEdgeHandler[_0xff99[202]][_0xff99[176]]= function(){this[_0xff99[1179]]= this[_0xff99[724]][_0xff99[441]][_0xff99[1179]];this[_0xff99[2885]]= this[_0xff99[1689]]();this[_0xff99[2886]]= new mxConstraintHandler(this[_0xff99[1179]]);this[_0xff99[1525]]= [];this[_0xff99[2997]]= this[_0xff99[2998]](this[_0xff99[724]]);this[_0xff99[253]]= this[_0xff99[2963]](this[_0xff99[2997]]);this[_0xff99[253]][_0xff99[507]]= this[_0xff99[1179]][_0xff99[507]]!= mxConstants[_0xff99[508]]?mxConstants[_0xff99[2334]]:mxConstants[_0xff99[508]];this[_0xff99[253]][_0xff99[176]](this[_0xff99[1179]][_0xff99[249]]()[_0xff99[1524]]());this[_0xff99[253]][_0xff99[1564]]= 0;this[_0xff99[253]][_0xff99[252]][_0xff99[124]][_0xff99[270]]= mxConstants[_0xff99[2831]];mxEvent[_0xff99[169]](this[_0xff99[253]][_0xff99[252]],_0xff99[760],mxUtils[_0xff99[885]](this,function(_0xf598x2){this[_0xff99[1179]][_0xff99[761]](_0xf598x2,this[_0xff99[724]][_0xff99[246]])}));mxEvent[_0xff99[759]](this[_0xff99[253]][_0xff99[252]],mxUtils[_0xff99[885]](this,function(_0xf598x2){this[_0xff99[2771]]&& this[_0xff99[2999]](_0xf598x2)?this[_0xff99[3000]](this[_0xff99[724]],_0xf598x2):this[_0xff99[1179]][_0xff99[758]](mxEvent.MOUSE_DOWN, new mxMouseEvent(_0xf598x2,this[_0xff99[724]]))}),mxUtils[_0xff99[885]](this,function(_0xf598x2){var _0xf598x4=this[_0xff99[724]][_0xff99[246]];if(null!= this[_0xff99[1983]]){var _0xf598x5=mxUtils[_0xff99[2196]](this[_0xff99[1179]][_0xff99[526]],mxEvent[_0xff99[731]](_0xf598x2),mxEvent[_0xff99[733]](_0xf598x2)),_0xf598x4=this[_0xff99[1179]][_0xff99[999]](_0xf598x5[_0xff99[235]],_0xf598x5[_0xff99[236]]);this[_0xff99[1179]][_0xff99[1730]](_0xf598x4)&& this[_0xff99[1179]][_0xff99[2688]](_0xf598x4,_0xf598x5[_0xff99[235]],_0xf598x5[_0xff99[236]])&& (_0xf598x4= null)};this[_0xff99[1179]][_0xff99[758]](mxEvent.MOUSE_MOVE, new mxMouseEvent(_0xf598x2,this[_0xff99[1179]][_0xff99[249]]()[_0xff99[248]](_0xf598x4)))}),mxUtils[_0xff99[885]](this,function(_0xf598x2){this[_0xff99[1179]][_0xff99[758]](mxEvent.MOUSE_UP, new mxMouseEvent(_0xf598x2,this[_0xff99[724]]))}));this[_0xff99[574]]= null!= this[_0xff99[724]][_0xff99[963]]&& this[_0xff99[724]][_0xff99[963]][_0xff99[252]][_0xff99[265]]== this[_0xff99[1179]][_0xff99[526]];if(!this[_0xff99[574]]){var _0xf598x2=this[_0xff99[724]][_0xff99[2089]](!0);null!= _0xf598x2&& (this[_0xff99[574]]= null!= _0xf598x2[_0xff99[963]]&& _0xf598x2[_0xff99[963]][_0xff99[252]][_0xff99[265]]== this[_0xff99[1179]][_0xff99[526]]);this[_0xff99[574]]|| (_0xf598x2= this[_0xff99[724]][_0xff99[2089]](!1),null!= _0xf598x2&& (this[_0xff99[574]]= null!= _0xf598x2[_0xff99[963]]&& _0xf598x2[_0xff99[963]][_0xff99[252]][_0xff99[265]]== this[_0xff99[1179]][_0xff99[526]]))};if(this[_0xff99[1179]][_0xff99[2694]]()< mxGraphHandler[_0xff99[202]][_0xff99[2795]]|| 0>= mxGraphHandler[_0xff99[202]][_0xff99[2795]]){this[_0xff99[2994]]= this[_0xff99[3001]]()};this[_0xff99[685]]= new mxPoint(this[_0xff99[724]][_0xff99[2079]][_0xff99[235]],this[_0xff99[724]][_0xff99[2079]][_0xff99[236]]);this[_0xff99[2972]]= new mxRectangleShape( new mxRectangle,mxConstants.LABEL_HANDLE_FILLCOLOR,mxConstants.HANDLE_STROKECOLOR);this[_0xff99[2972]][_0xff99[1229]]= !1;this[_0xff99[3002]](this[_0xff99[2972]]);this[_0xff99[2972]][_0xff99[252]][_0xff99[124]][_0xff99[270]]= mxConstants[_0xff99[3003]];mxEvent[_0xff99[2733]](this[_0xff99[2972]][_0xff99[252]],this[_0xff99[1179]],this[_0xff99[724]]);this[_0xff99[258]]()};mxEdgeHandler[_0xff99[202]][_0xff99[2999]]= function(_0xf598x2){return mxEvent[_0xff99[774]](_0xf598x2)};mxEdgeHandler[_0xff99[202]][_0xff99[3004]]= function(_0xf598x2){return mxEvent[_0xff99[774]](_0xf598x2)};mxEdgeHandler[_0xff99[202]][_0xff99[2998]]= function(_0xf598x2){return _0xf598x2[_0xff99[439]]};mxEdgeHandler[_0xff99[202]][_0xff99[2963]]= function(_0xf598x2){_0xf598x2= new mxPolyline(_0xf598x2,this[_0xff99[2975]]());_0xf598x2[_0xff99[1307]]= this[_0xff99[2976]]();_0xf598x2[_0xff99[1522]]= this[_0xff99[2977]]();return _0xf598x2};mxEdgeHandler[_0xff99[202]][_0xff99[2975]]= function(){return mxConstants[_0xff99[3005]]};mxEdgeHandler[_0xff99[202]][_0xff99[2976]]= function(){return mxConstants[_0xff99[3006]]};mxEdgeHandler[_0xff99[202]][_0xff99[2977]]= function(){return mxConstants[_0xff99[3007]]};mxEdgeHandler[_0xff99[202]][_0xff99[2907]]= function(_0xf598x2){return !0};mxEdgeHandler[_0xff99[202]][_0xff99[1689]]= function(){var _0xf598x2= new mxCellMarker(this[_0xff99[1179]]),_0xf598x3=this;_0xf598x2[_0xff99[736]]= function(_0xf598x2){var _0xf598x5=mxCellMarker[_0xff99[202]][_0xff99[736]][_0xff99[183]](this,arguments);if(!_0xf598x3[_0xff99[2907]](_0xf598x5)){return null};var _0xf598x9=_0xf598x3[_0xff99[1179]][_0xff99[502]]();if(_0xf598x5== _0xf598x3[_0xff99[724]][_0xff99[246]]|| null!= _0xf598x5&& !_0xf598x3[_0xff99[1179]][_0xff99[2405]]&& _0xf598x9[_0xff99[250]](_0xf598x5)){_0xf598x5= null};return _0xf598x5};_0xf598x2[_0xff99[2872]]= function(_0xf598x2){var _0xf598x5=_0xf598x3[_0xff99[1179]][_0xff99[502]](),_0xf598x5=_0xf598x3[_0xff99[1179]][_0xff99[441]][_0xff99[2292]](_0xf598x2,_0xf598x3[_0xff99[1179]][_0xff99[441]][_0xff99[248]](_0xf598x5[_0xff99[1709]](_0xf598x3[_0xff99[724]][_0xff99[246]],!_0xf598x3[_0xff99[729]])),!_0xf598x3[_0xff99[729]]),_0xf598x5=null!= _0xf598x5?_0xf598x5[_0xff99[246]]:null;_0xf598x3[_0xff99[267]]= _0xf598x3[_0xff99[2909]](_0xf598x3[_0xff99[729]]?_0xf598x2[_0xff99[246]]:_0xf598x5,_0xf598x3[_0xff99[729]]?_0xf598x5:_0xf598x2[_0xff99[246]]);return null== _0xf598x3[_0xff99[267]]};return _0xf598x2};mxEdgeHandler[_0xff99[202]][_0xff99[2909]]= function(_0xf598x2,_0xf598x3){return this[_0xff99[1179]][_0xff99[2500]](this[_0xff99[724]][_0xff99[246]],_0xf598x2,_0xf598x3)};mxEdgeHandler[_0xff99[202]][_0xff99[3001]]= function(){for(var _0xf598x2=this[_0xff99[724]][_0xff99[246]],_0xf598x3=[],_0xf598x4=0;_0xf598x4< this[_0xff99[2997]][_0xff99[67]];_0xf598x4++){if(this[_0xff99[3008]](_0xf598x4)){var _0xf598x5=_0xf598x4== this[_0xff99[2997]][_0xff99[67]]- 1;if((_0xf598x5= 0== _0xf598x4|| _0xf598x5)|| this[_0xff99[1179]][_0xff99[2662]](_0xf598x2)){var _0xf598x9=this[_0xff99[3009]](_0xf598x4);this[_0xff99[3002]](_0xf598x9);mxClient[_0xff99[754]]&& _0xf598x9[_0xff99[252]][_0xff99[57]](_0xff99[1377],_0xff99[130]);if(this[_0xff99[3010]](_0xf598x4)){if(mxClient[_0xff99[754]]){var _0xf598xa=mxUtils[_0xff99[885]](this,function(_0xf598x2){_0xf598x2= mxUtils[_0xff99[2196]](this[_0xff99[1179]][_0xff99[526]],mxEvent[_0xff99[731]](_0xf598x2),mxEvent[_0xff99[733]](_0xf598x2));return this[_0xff99[1179]][_0xff99[441]][_0xff99[248]](this[_0xff99[1179]][_0xff99[999]](_0xf598x2[_0xff99[235]],_0xf598x2[_0xff99[236]]))});mxEvent[_0xff99[2733]](_0xf598x9[_0xff99[252]],this[_0xff99[1179]],_0xf598xa)}else {_0xf598x9[_0xff99[252]][_0xff99[124]][_0xff99[270]]= mxConstants[_0xff99[3011]],mxEvent[_0xff99[2733]](_0xf598x9[_0xff99[252]],this[_0xff99[1179]],this[_0xff99[724]])}};_0xf598x3[_0xff99[207]](_0xf598x9);_0xf598x5|| (this[_0xff99[1525]][_0xff99[207]]( new mxPoint(0,0)),_0xf598x9[_0xff99[252]][_0xff99[124]][_0xff99[187]]= _0xff99[188])}}};return _0xf598x3};mxEdgeHandler[_0xff99[202]][_0xff99[3010]]= function(_0xf598x2){return !0};mxEdgeHandler[_0xff99[202]][_0xff99[3008]]= function(_0xf598x2){return !0};mxEdgeHandler[_0xff99[202]][_0xff99[3009]]= function(_0xf598x2){if(null!= this[_0xff99[2959]]){return new mxImageShape( new mxRectangle(0,0,this[_0xff99[2959]][_0xff99[117]],this[_0xff99[2959]][_0xff99[119]]),this[_0xff99[2959]][_0xff99[390]])};_0xf598x2= mxConstants[_0xff99[2974]];this[_0xff99[574]]&& (_0xf598x2-= 1);return new mxRectangleShape( new mxRectangle(0,0,_0xf598x2,_0xf598x2),mxConstants.HANDLE_FILLCOLOR,mxConstants.HANDLE_STROKECOLOR)};mxEdgeHandler[_0xff99[202]][_0xff99[3002]]= function(_0xf598x2){this[_0xff99[574]]?(_0xf598x2[_0xff99[507]]= mxConstants[_0xff99[1656]],_0xf598x2[_0xff99[176]](this[_0xff99[1179]][_0xff99[526]])):(_0xf598x2[_0xff99[507]]= this[_0xff99[1179]][_0xff99[507]]!= mxConstants[_0xff99[508]]?mxConstants[_0xff99[2334]]:mxConstants[_0xff99[508]],_0xf598x2[_0xff99[176]](this[_0xff99[1179]][_0xff99[249]]()[_0xff99[1524]]()))};mxEdgeHandler[_0xff99[202]][_0xff99[2986]]= function(_0xf598x2){if(null!= this[_0xff99[2994]]){for(var _0xf598x3=this[_0xff99[2353]],_0xf598x3=this[_0xff99[2958]]&& (mxClient[_0xff99[80]]|| 0< _0xf598x3)? new mxRectangle(_0xf598x2[_0xff99[734]]()- _0xf598x3,_0xf598x2[_0xff99[735]]()- _0xf598x3,2* _0xf598x3,2* _0xf598x3):null,_0xf598x4=0;_0xf598x4< this[_0xff99[2994]][_0xff99[67]];_0xf598x4++){if((_0xf598x2[_0xff99[729]](this[_0xff99[2994]][_0xf598x4])|| null!= _0xf598x3&& mxUtils[_0xff99[1825]](this[_0xff99[2994]][_0xf598x4][_0xff99[1562]],_0xf598x3))&& _0xff99[188]!= this[_0xff99[2994]][_0xf598x4][_0xff99[252]][_0xff99[124]][_0xff99[187]]){return _0xf598x4}}};if(_0xf598x2[_0xff99[729]](this[_0xff99[2972]])&& _0xff99[188]!= this[_0xff99[2972]][_0xff99[252]][_0xff99[124]][_0xff99[187]]|| _0xf598x2[_0xff99[729]](this[_0xff99[724]][_0xff99[963]])){if(!mxClient[_0xff99[75]]&& !mxClient[_0xff99[76]] || _0xff99[2822]!= _0xf598x2[_0xff99[728]]()[_0xff99[301]]){return mxEvent[_0xff99[2987]]}};return null};mxEdgeHandler[_0xff99[202]][_0xff99[787]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=null,_0xf598x4=this[_0xff99[2986]](_0xf598x3);null!= _0xf598x4&& (!_0xf598x3[_0xff99[721]]()&& this[_0xff99[1179]][_0xff99[994]]() && !this[_0xff99[1179]][_0xff99[2579]](_0xf598x3[_0xff99[727]]()))&& (this[_0xff99[2995]]&& this[_0xff99[3004]](_0xf598x3[_0xff99[727]]())?this[_0xff99[3012]](this[_0xff99[724]],_0xf598x4):(_0xf598x4!= mxEvent[_0xff99[2987]]|| this[_0xff99[1179]][_0xff99[2628]](_0xf598x3[_0xff99[736]]()))&& this[_0xff99[861]](_0xf598x3[_0xff99[730]](),_0xf598x3[_0xff99[732]](),_0xf598x4),_0xf598x3[_0xff99[722]]())};mxEdgeHandler[_0xff99[202]][_0xff99[861]]= function(_0xf598x2,_0xf598x3,_0xf598x4){this[_0xff99[2739]]= _0xf598x2;this[_0xff99[2740]]= _0xf598x3;this[_0xff99[729]]= null== this[_0xff99[2994]]?!1:0== _0xf598x4;this[_0xff99[3013]]= null== this[_0xff99[2994]]?!1:_0xf598x4== this[_0xff99[2994]][_0xff99[67]]- 1;this[_0xff99[3014]]= _0xf598x4== mxEvent[_0xff99[2987]];if(this[_0xff99[729]]|| this[_0xff99[3013]]){if(_0xf598x2= this[_0xff99[724]][_0xff99[246]],_0xf598x3= this[_0xff99[1179]][_0xff99[251]][_0xff99[1709]](_0xf598x2,this[_0xff99[729]]),null== _0xf598x3&& this[_0xff99[1179]][_0xff99[2661]](_0xf598x2,this[_0xff99[729]])|| null!= _0xf598x3&& this[_0xff99[1179]][_0xff99[2551]](_0xf598x2,_0xf598x3,this[_0xff99[729]])){this[_0xff99[1983]]= _0xf598x4}}else {this[_0xff99[1983]]= _0xf598x4}};mxEdgeHandler[_0xff99[202]][_0xff99[3015]]= function(_0xf598x2,_0xf598x3){return this[_0xff99[724]][_0xff99[238]]()};mxEdgeHandler[_0xff99[202]][_0xff99[3016]]= function(){return this[_0xff99[1179]][_0xff99[1020]]* this[_0xff99[1179]][_0xff99[441]][_0xff99[255]]/ 2};mxEdgeHandler[_0xff99[202]][_0xff99[2689]]= function(_0xf598x2){var _0xf598x3= new mxPoint(_0xf598x2[_0xff99[734]](),_0xf598x2[_0xff99[735]]()),_0xf598x4=this[_0xff99[3016]](),_0xf598x5=this[_0xff99[1179]][_0xff99[249]](),_0xf598x9=!1,_0xf598xa=!1;if(this[_0xff99[2996]]&& 0< _0xf598x4){var _0xf598x12=function(_0xf598x2){if(null!= _0xf598x2){var _0xf598x5=_0xf598x2[_0xff99[235]];Math[_0xff99[425]](_0xf598x3[_0xff99[235]]- _0xf598x5)< _0xf598x4&& (_0xf598x3[_0xff99[235]]= _0xf598x5,_0xf598x9= !0);_0xf598x2= _0xf598x2[_0xff99[236]];Math[_0xff99[425]](_0xf598x3[_0xff99[236]]- _0xf598x2)< _0xf598x4&& (_0xf598x3[_0xff99[236]]= _0xf598x2,_0xf598xa= !0)}},_0xf598x13=function(_0xf598x2){null!= _0xf598x2&& _0xf598x12[_0xff99[239]](this, new mxPoint(_0xf598x5[_0xff99[2230]](_0xf598x2),_0xf598x5[_0xff99[2228]](_0xf598x2)))};_0xf598x13[_0xff99[239]](this,this[_0xff99[724]][_0xff99[2089]](!0));_0xf598x13[_0xff99[239]](this,this[_0xff99[724]][_0xff99[2089]](!1));if(null!= this[_0xff99[2997]]){for(_0xf598x13= 0;_0xf598x13< this[_0xff99[2997]];_0xf598x13++){_0xf598x13!= this[_0xff99[1983]]&& _0xf598x12[_0xff99[239]](this,this[_0xff99[2997]][_0xf598x13])}}};this[_0xff99[1179]][_0xff99[1018]](_0xf598x2[_0xff99[727]]())&& (_0xf598x2= _0xf598x5[_0xff99[255]],_0xf598x13= _0xf598x5[_0xff99[513]],_0xf598x9|| (_0xf598x3[_0xff99[235]]= (this[_0xff99[1179]][_0xff99[1021]](_0xf598x3[_0xff99[235]]/ _0xf598x2- _0xf598x13[_0xff99[235]])+ _0xf598x13[_0xff99[235]])* _0xf598x2),_0xf598xa|| (_0xf598x3[_0xff99[236]]= (this[_0xff99[1179]][_0xff99[1021]](_0xf598x3[_0xff99[236]]/ _0xf598x2- _0xf598x13[_0xff99[236]])+ _0xf598x13[_0xff99[236]])* _0xf598x2));return _0xf598x3};mxEdgeHandler[_0xff99[202]][_0xff99[3017]]= function(_0xf598x2){this[_0xff99[2886]][_0xff99[2729]](_0xf598x2,this[_0xff99[729]]);this[_0xff99[2885]][_0xff99[2871]](_0xf598x2);_0xf598x2= this[_0xff99[2885]][_0xff99[2868]]();var _0xf598x3=null;null!= this[_0xff99[2886]][_0xff99[2919]]&& null!= this[_0xff99[2886]][_0xff99[2920]]&& this[_0xff99[2885]][_0xff99[862]]();null!= _0xf598x2?_0xf598x3= _0xf598x2:null!= this[_0xff99[2886]][_0xff99[2920]]&& null!= this[_0xff99[2886]][_0xff99[2919]]&& (_0xf598x3= this[_0xff99[2886]][_0xff99[2919]]);return _0xf598x3};mxEdgeHandler[_0xff99[202]][_0xff99[3018]]= function(_0xf598x2){var _0xf598x3=this[_0xff99[1179]][_0xff99[1198]](this[_0xff99[724]][_0xff99[246]]),_0xf598x3=null!= _0xf598x3[_0xff99[1525]]?_0xf598x3[_0xff99[1525]][_0xff99[1853]]():null;!this[_0xff99[729]]&& !this[_0xff99[3013]]?(this[_0xff99[2196]](_0xf598x2,!1),null== _0xf598x3?_0xf598x3= [_0xf598x2]:_0xf598x3[this[_0xff99[1983]]- 1]= _0xf598x2):this[_0xff99[1179]][_0xff99[2401]]&& (_0xf598x3= null);return _0xf598x3};mxEdgeHandler[_0xff99[202]][_0xff99[3019]]= function(_0xf598x2,_0xf598x3,_0xf598x4){var _0xf598x5=this[_0xff99[729]]?_0xf598x4:this[_0xff99[724]][_0xff99[2089]](!0),_0xf598x9=this[_0xff99[3013]]?_0xf598x4:this[_0xff99[724]][_0xff99[2089]](!1),_0xf598xa=this[_0xff99[1179]][_0xff99[2288]](_0xf598x2,_0xf598x5,!0),_0xf598x12=this[_0xff99[1179]][_0xff99[2288]](_0xf598x2,_0xf598x9,!1),_0xf598x13=this[_0xff99[2886]][_0xff99[2920]];null== _0xf598x13&& (_0xf598x13= new mxConnectionConstraint);this[_0xff99[729]]?_0xf598xa= _0xf598x13:this[_0xff99[3013]]&& (_0xf598x12= _0xf598x13);(!this[_0xff99[729]]|| null!= _0xf598x5) && _0xf598x2[_0xff99[441]][_0xff99[2289]](_0xf598x2,_0xf598x5,!0,_0xf598xa);(!this[_0xff99[3013]]|| null!= _0xf598x9) && _0xf598x2[_0xff99[441]][_0xff99[2289]](_0xf598x2,_0xf598x9,!1,_0xf598x12);if((this[_0xff99[729]]|| this[_0xff99[3013]])&& null== _0xf598x4){_0xf598x2[_0xff99[2088]](_0xf598x3,this[_0xff99[729]]),null== this[_0xff99[2885]][_0xff99[2869]]()&& (this[_0xff99[267]]= this[_0xff99[1179]][_0xff99[2406]]?null:_0xff99[110])};_0xf598x2[_0xff99[441]][_0xff99[2282]](_0xf598x2,this[_0xff99[1525]],_0xf598x5,_0xf598x9);_0xf598x2[_0xff99[441]][_0xff99[2283]](_0xf598x2,_0xf598x5,_0xf598x9)};mxEdgeHandler[_0xff99[202]][_0xff99[788]]= function(_0xf598x2,_0xf598x3){if(null!= this[_0xff99[1983]]&& null!= this[_0xff99[2885]]){var _0xf598x4=this[_0xff99[2689]](_0xf598x3);if(this[_0xff99[3014]]){this[_0xff99[685]][_0xff99[235]]= _0xf598x4[_0xff99[235]],this[_0xff99[685]][_0xff99[236]]= _0xf598x4[_0xff99[236]]}else {this[_0xff99[1525]]= this[_0xff99[3018]](_0xf598x4);var _0xf598x5=this[_0xff99[729]]|| this[_0xff99[3013]]?this[_0xff99[3017]](_0xf598x3):null,_0xf598x9=this[_0xff99[3015]](_0xf598x4,null!= _0xf598x5?_0xf598x5[_0xff99[246]]:null);this[_0xff99[3019]](_0xf598x9,_0xf598x4,_0xf598x5);this[_0xff99[3020]](null== this[_0xff99[267]]?this[_0xff99[2885]][_0xff99[2853]]:this[_0xff99[2885]][_0xff99[2855]]);this[_0xff99[2997]]= _0xf598x9[_0xff99[439]];this[_0xff99[1124]]= !0};this[_0xff99[2932]]();mxEvent[_0xff99[722]](_0xf598x3[_0xff99[727]]());_0xf598x3[_0xff99[722]]()}else {mxClient[_0xff99[80]]&& null!= this[_0xff99[2986]](_0xf598x3)&& _0xf598x3[_0xff99[722]](!1)}};mxEdgeHandler[_0xff99[202]][_0xff99[789]]= function(_0xf598x2,_0xf598x3){if(null!= this[_0xff99[1983]]&& null!= this[_0xff99[2885]]){var _0xf598x4=this[_0xff99[724]][_0xff99[246]];if(_0xf598x3[_0xff99[730]]()!= this[_0xff99[2739]]|| _0xf598x3[_0xff99[732]]()!= this[_0xff99[2740]]){if(null!= this[_0xff99[267]]){0< this[_0xff99[267]][_0xff99[67]]&& this[_0xff99[1179]][_0xff99[2580]](this[_0xff99[267]])}else {if(this[_0xff99[3014]]){this[_0xff99[3021]](this[_0xff99[724]],this[_0xff99[685]][_0xff99[235]],this[_0xff99[685]][_0xff99[236]])}else {if(this[_0xff99[729]]|| this[_0xff99[3013]]){var _0xf598x5=null;null!= this[_0xff99[2886]][_0xff99[2920]]&& null!= this[_0xff99[2886]][_0xff99[2919]]&& (_0xf598x5= this[_0xff99[2886]][_0xff99[2919]][_0xff99[246]]);null== _0xf598x5&& this[_0xff99[2885]][_0xff99[2867]]()&& (_0xf598x5= this[_0xff99[2885]][_0xff99[2861]][_0xff99[246]]);if(null!= _0xf598x5){_0xf598x4= this[_0xff99[807]](_0xf598x4,_0xf598x5,this[_0xff99[729]],this[_0xff99[1179]][_0xff99[2574]](_0xf598x3[_0xff99[727]]())&& this[_0xff99[2797]]&& this[_0xff99[1179]][_0xff99[2617]](),_0xf598x3)}else {if(this[_0xff99[1179]][_0xff99[2530]]()){_0xf598x5= this[_0xff99[2997]][this[_0xff99[729]]?0:this[_0xff99[2997]][_0xff99[67]]- 1];_0xf598x5[_0xff99[235]]= _0xf598x5[_0xff99[235]]/ this[_0xff99[1179]][_0xff99[441]][_0xff99[255]]- this[_0xff99[1179]][_0xff99[441]][_0xff99[513]][_0xff99[235]];_0xf598x5[_0xff99[236]]= _0xf598x5[_0xff99[236]]/ this[_0xff99[1179]][_0xff99[441]][_0xff99[255]]- this[_0xff99[1179]][_0xff99[441]][_0xff99[513]][_0xff99[236]];var _0xf598x9=this[_0xff99[1179]][_0xff99[249]]()[_0xff99[248]](this[_0xff99[1179]][_0xff99[502]]()[_0xff99[1197]](_0xf598x4));null!= _0xf598x9&& (_0xf598x5[_0xff99[235]]-= _0xf598x9[_0xff99[2078]][_0xff99[235]],_0xf598x5[_0xff99[236]]-= _0xf598x9[_0xff99[2078]][_0xff99[236]]);_0xf598x5[_0xff99[235]]-= this[_0xff99[1179]][_0xff99[1136]]/ this[_0xff99[1179]][_0xff99[441]][_0xff99[255]];_0xf598x5[_0xff99[236]]-= this[_0xff99[1179]][_0xff99[1137]]/ this[_0xff99[1179]][_0xff99[441]][_0xff99[255]];this[_0xff99[3022]](_0xf598x4,_0xf598x5,this[_0xff99[729]])}}}else {this[_0xff99[1124]]?this[_0xff99[3023]](_0xf598x4,this[_0xff99[1525]]):(this[_0xff99[1179]][_0xff99[249]]()[_0xff99[2263]](this[_0xff99[724]][_0xff99[246]]),this[_0xff99[1179]][_0xff99[249]]()[_0xff99[2259]](this[_0xff99[724]][_0xff99[246]]))}}}};null!= this[_0xff99[2885]]&& (this[_0xff99[862]](),_0xf598x4!= this[_0xff99[724]][_0xff99[246]]&& this[_0xff99[1179]][_0xff99[2450]](_0xf598x4));_0xf598x3[_0xff99[722]]()}};mxEdgeHandler[_0xff99[202]][_0xff99[862]]= function(){this[_0xff99[1525]]= this[_0xff99[685]]= this[_0xff99[1983]]= this[_0xff99[267]]= null;this[_0xff99[3013]]= this[_0xff99[729]]= this[_0xff99[3014]]= this[_0xff99[1124]]= !1;this[_0xff99[2885]][_0xff99[862]]();this[_0xff99[2886]][_0xff99[862]]();this[_0xff99[3020]](mxConstants.EDGE_SELECTION_COLOR);this[_0xff99[258]]()};mxEdgeHandler[_0xff99[202]][_0xff99[3020]]= function(_0xf598x2){null!= this[_0xff99[253]]&& (this[_0xff99[253]][_0xff99[1336]]= _0xf598x2)};mxEdgeHandler[_0xff99[202]][_0xff99[2196]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=this[_0xff99[1179]][_0xff99[249]]()[_0xff99[518]](),_0xf598x5=this[_0xff99[1179]][_0xff99[249]]()[_0xff99[512]]();_0xf598x3&& (_0xf598x2[_0xff99[235]]= this[_0xff99[1179]][_0xff99[1021]](_0xf598x2[_0xff99[235]]),_0xf598x2[_0xff99[236]]= this[_0xff99[1179]][_0xff99[1021]](_0xf598x2[_0xff99[236]]));_0xf598x2[_0xff99[235]]= Math[_0xff99[488]](_0xf598x2[_0xff99[235]]/ _0xf598x4- _0xf598x5[_0xff99[235]]);_0xf598x2[_0xff99[236]]= Math[_0xff99[488]](_0xf598x2[_0xff99[236]]/ _0xf598x4- _0xf598x5[_0xff99[236]]);_0xf598x4= this[_0xff99[1179]][_0xff99[249]]()[_0xff99[248]](this[_0xff99[1179]][_0xff99[502]]()[_0xff99[1197]](this[_0xff99[724]][_0xff99[246]]));null!= _0xf598x4&& (_0xf598x2[_0xff99[235]]-= _0xf598x4[_0xff99[2078]][_0xff99[235]],_0xf598x2[_0xff99[236]]-= _0xf598x4[_0xff99[2078]][_0xff99[236]]);return _0xf598x2};mxEdgeHandler[_0xff99[202]][_0xff99[3021]]= function(_0xf598x2,_0xf598x3,_0xf598x4){var _0xf598x5=this[_0xff99[1179]][_0xff99[502]](),_0xf598x9=_0xf598x5[_0xff99[1721]](_0xf598x2[_0xff99[246]]);if(null!= _0xf598x9){var _0xf598x9=_0xf598x9[_0xff99[238]](),_0xf598xa=this[_0xff99[1179]][_0xff99[249]]()[_0xff99[2308]](_0xf598x2,_0xf598x3,_0xf598x4);_0xf598x9[_0xff99[235]]= _0xf598xa[_0xff99[235]];_0xf598x9[_0xff99[236]]= _0xf598xa[_0xff99[236]];var _0xf598x12=this[_0xff99[1179]][_0xff99[249]]()[_0xff99[255]];_0xf598x9[_0xff99[1368]]= new mxPoint(0,0);_0xf598xa= this[_0xff99[1179]][_0xff99[441]][_0xff99[245]](_0xf598x2,_0xf598x9);_0xf598x9[_0xff99[1368]]= new mxPoint((_0xf598x3- _0xf598xa[_0xff99[235]])/ _0xf598x12,(_0xf598x4- _0xf598xa[_0xff99[236]])/ _0xf598x12);_0xf598x5[_0xff99[1724]](_0xf598x2[_0xff99[246]],_0xf598x9)}};mxEdgeHandler[_0xff99[202]][_0xff99[807]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){_0xf598x9= this[_0xff99[1179]][_0xff99[502]]();var _0xf598xa=_0xf598x9[_0xff99[1197]](_0xf598x2);_0xf598x9[_0xff99[473]]();try{if(_0xf598x5){var _0xf598x12=_0xf598x2[_0xff99[238]]();_0xf598x9[_0xff99[99]](_0xf598xa,_0xf598x12,_0xf598x9[_0xff99[262]](_0xf598xa));var _0xf598x13=_0xf598x9[_0xff99[1709]](_0xf598x2,!_0xf598x4);this[_0xff99[1179]][_0xff99[851]](_0xf598x12,_0xf598x13,!_0xf598x4);_0xf598x2= _0xf598x12};var _0xf598x14=this[_0xff99[2886]][_0xff99[2920]];null== _0xf598x14&& (_0xf598x14= new mxConnectionConstraint);this[_0xff99[1179]][_0xff99[851]](_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x14)}finally{_0xf598x9[_0xff99[476]]()};return _0xf598x2};mxEdgeHandler[_0xff99[202]][_0xff99[3022]]= function(_0xf598x2,_0xf598x3,_0xf598x4){var _0xf598x5=this[_0xff99[1179]][_0xff99[502]](),_0xf598x9=_0xf598x5[_0xff99[1721]](_0xf598x2);if(null!= _0xf598x9){_0xf598x5[_0xff99[473]]();try{_0xf598x9= _0xf598x9[_0xff99[238]](),_0xf598x9[_0xff99[2007]](_0xf598x3,_0xf598x4),_0xf598x5[_0xff99[1724]](_0xf598x2,_0xf598x9),this[_0xff99[1179]][_0xff99[851]](_0xf598x2,null,_0xf598x4, new mxConnectionConstraint)}finally{_0xf598x5[_0xff99[476]]()}}};mxEdgeHandler[_0xff99[202]][_0xff99[3023]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=this[_0xff99[1179]][_0xff99[502]](),_0xf598x5=_0xf598x4[_0xff99[1721]](_0xf598x2);null!= _0xf598x5&& (_0xf598x5= _0xf598x5[_0xff99[238]](),_0xf598x5[_0xff99[1525]]= _0xf598x3,_0xf598x4[_0xff99[1724]](_0xf598x2,_0xf598x5))};mxEdgeHandler[_0xff99[202]][_0xff99[3000]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=mxUtils[_0xff99[2196]](this[_0xff99[1179]][_0xff99[526]],mxEvent[_0xff99[731]](_0xf598x3),mxEvent[_0xff99[733]](_0xf598x3)),_0xf598x5=this[_0xff99[1179]][_0xff99[1018]](_0xf598x3);this[_0xff99[2196]](_0xf598x4,_0xf598x5);this[_0xff99[3024]](_0xf598x2,_0xf598x4[_0xff99[235]],_0xf598x4[_0xff99[236]]);mxEvent[_0xff99[722]](_0xf598x3)};mxEdgeHandler[_0xff99[202]][_0xff99[3024]]= function(_0xf598x2,_0xf598x3,_0xf598x4){var _0xf598x5=this[_0xff99[1179]][_0xff99[1198]](_0xf598x2[_0xff99[246]]);_0xf598x3= new mxPoint(_0xf598x3,_0xf598x4);if(null!= _0xf598x5){_0xf598x5= _0xf598x5[_0xff99[238]]();_0xf598x4= this[_0xff99[1179]][_0xff99[441]][_0xff99[513]];var _0xf598x9=this[_0xff99[1179]][_0xff99[441]][_0xff99[255]];_0xf598x4= mxUtils[_0xff99[3025]](_0xf598x2,(_0xf598x3[_0xff99[235]]+ _0xf598x4[_0xff99[235]])* _0xf598x9,(_0xf598x3[_0xff99[236]]+ _0xf598x4[_0xff99[236]])* _0xf598x9);null== _0xf598x5[_0xff99[1525]]?_0xf598x5[_0xff99[1525]]= [_0xf598x3]:_0xf598x5[_0xff99[1525]][_0xff99[300]](_0xf598x4,0,_0xf598x3);this[_0xff99[1179]][_0xff99[502]]()[_0xff99[1724]](_0xf598x2[_0xff99[246]],_0xf598x5);this[_0xff99[515]]();this[_0xff99[176]]()}};mxEdgeHandler[_0xff99[202]][_0xff99[3012]]= function(_0xf598x2,_0xf598x3){if(0< _0xf598x3&& _0xf598x3< this[_0xff99[2997]][_0xff99[67]]- 1){var _0xf598x4=this[_0xff99[1179]][_0xff99[1198]](this[_0xff99[724]][_0xff99[246]]);null!= _0xf598x4&& null!= _0xf598x4[_0xff99[1525]]&& (_0xf598x4= _0xf598x4[_0xff99[238]](),_0xf598x4[_0xff99[1525]][_0xff99[300]](_0xf598x3- 1,1),this[_0xff99[1179]][_0xff99[502]]()[_0xff99[1724]](_0xf598x2[_0xff99[246]],_0xf598x4),this[_0xff99[515]](),this[_0xff99[176]]())}};mxEdgeHandler[_0xff99[202]][_0xff99[3026]]= function(_0xf598x2){_0xf598x2= 0== _0xf598x2;var _0xf598x3=this[_0xff99[724]][_0xff99[246]],_0xf598x4=this[_0xff99[1179]][_0xff99[502]]()[_0xff99[1709]](_0xf598x3,_0xf598x2),_0xf598x5=mxConstants[_0xff99[2984]];null!= _0xf598x4&& !this[_0xff99[1179]][_0xff99[2551]](_0xf598x3,_0xf598x4,_0xf598x2)|| null== _0xf598x4&& !this[_0xff99[1179]][_0xff99[2661]](_0xf598x3,_0xf598x2)?_0xf598x5= mxConstants[_0xff99[3027]]:null!= _0xf598x4&& this[_0xff99[1179]][_0xff99[2551]](_0xf598x3,_0xf598x4,_0xf598x2)&& (_0xf598x5= mxConstants[_0xff99[3028]]);return _0xf598x5};mxEdgeHandler[_0xff99[202]][_0xff99[258]]= function(){this[_0xff99[2997]]= this[_0xff99[724]][_0xff99[439]][_0xff99[1853]]();var _0xf598x2=this[_0xff99[724]][_0xff99[246]],_0xf598x3=mxConstants[_0xff99[3029]];this[_0xff99[685]]= new mxPoint(this[_0xff99[724]][_0xff99[2079]][_0xff99[235]],this[_0xff99[724]][_0xff99[2079]][_0xff99[236]]);this[_0xff99[2972]][_0xff99[1562]]= new mxRectangle(Math[_0xff99[488]](this[_0xff99[685]][_0xff99[235]]- _0xf598x3/ 2),Math[_0xff99[488]](this[_0xff99[685]][_0xff99[236]]- _0xf598x3/ 2),_0xf598x3,_0xf598x3);this[_0xff99[2972]][_0xff99[258]]();_0xf598x3= this[_0xff99[1179]][_0xff99[2183]](_0xf598x2);null!= _0xf598x3&& 0< _0xf598x3[_0xff99[67]]&& this[_0xff99[1179]][_0xff99[2628]](_0xf598x2)?this[_0xff99[2972]][_0xff99[252]][_0xff99[124]][_0xff99[187]]= _0xff99[189]:this[_0xff99[2972]][_0xff99[252]][_0xff99[124]][_0xff99[187]]= _0xff99[188];if(null!= this[_0xff99[2994]]&& 0< this[_0xff99[2994]][_0xff99[67]]){var _0xf598x4=this[_0xff99[2997]][_0xff99[67]]- 1,_0xf598x2=this[_0xff99[2997]][0],_0xf598x5=this[_0xff99[2997]][0][_0xff99[236]],_0xf598x3=this[_0xff99[2994]][0][_0xff99[1562]];this[_0xff99[2994]][0][_0xff99[1562]]= new mxRectangle(Math[_0xff99[488]](this[_0xff99[2997]][0][_0xff99[235]]- _0xf598x3[_0xff99[117]]/ 2),Math[_0xff99[488]](_0xf598x5- _0xf598x3[_0xff99[119]]/ 2),_0xf598x3[_0xff99[117]],_0xf598x3[_0xff99[119]]);this[_0xff99[2994]][0][_0xff99[1334]]= this[_0xff99[3026]](0);this[_0xff99[2994]][0][_0xff99[258]]();var _0xf598x5=this[_0xff99[2997]][_0xf598x4],_0xf598x9=this[_0xff99[2997]][_0xf598x4][_0xff99[235]],_0xf598x4=this[_0xff99[2997]][_0xf598x4][_0xff99[236]],_0xf598xa=this[_0xff99[2994]][_0xff99[67]]- 1,_0xf598x3=this[_0xff99[2994]][_0xf598xa][_0xff99[1562]];this[_0xff99[2994]][_0xf598xa][_0xff99[1562]]= new mxRectangle(Math[_0xff99[488]](_0xf598x9- _0xf598x3[_0xff99[117]]/ 2),Math[_0xff99[488]](_0xf598x4- _0xf598x3[_0xff99[119]]/ 2),_0xf598x3[_0xff99[117]],_0xf598x3[_0xff99[119]]);this[_0xff99[2994]][_0xf598xa][_0xff99[1334]]= this[_0xff99[3026]](_0xf598xa);this[_0xff99[2994]][_0xf598xa][_0xff99[258]]();this[_0xff99[3030]](_0xf598x2,_0xf598x5)};this[_0xff99[2932]]()};mxEdgeHandler[_0xff99[202]][_0xff99[3030]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=this[_0xff99[1179]][_0xff99[502]]()[_0xff99[1721]](this[_0xff99[724]][_0xff99[246]])[_0xff99[1525]];if(null!= _0xf598x4){null== this[_0xff99[1525]]&& (this[_0xff99[1525]]= []);for(var _0xf598x5=1;_0xf598x5< this[_0xff99[2994]][_0xff99[67]]- 1;_0xf598x5++){if(null!= this[_0xff99[2994]][_0xf598x5]){if(null!= this[_0xff99[2997]][_0xf598x5]){var _0xf598x9=this[_0xff99[2997]][_0xf598x5][_0xff99[235]],_0xf598xa=this[_0xff99[2997]][_0xf598x5][_0xff99[236]],_0xf598x12=this[_0xff99[2994]][_0xf598x5][_0xff99[1562]];this[_0xff99[2994]][_0xf598x5][_0xff99[252]][_0xff99[124]][_0xff99[187]]= _0xff99[189];this[_0xff99[2994]][_0xf598x5][_0xff99[1562]]= new mxRectangle(Math[_0xff99[488]](_0xf598x9- _0xf598x12[_0xff99[117]]/ 2),Math[_0xff99[488]](_0xf598xa- _0xf598x12[_0xff99[119]]/ 2),_0xf598x12[_0xff99[117]],_0xf598x12[_0xff99[119]]);this[_0xff99[2994]][_0xf598x5][_0xff99[258]]();this[_0xff99[1525]][_0xf598x5- 1]= _0xf598x4[_0xf598x5- 1]}else {this[_0xff99[2994]][_0xf598x5][_0xff99[515]](),this[_0xff99[2994]][_0xf598x5]= null}}}}};mxEdgeHandler[_0xff99[202]][_0xff99[2932]]= function(){if(this[_0xff99[3014]]){var _0xf598x2=mxConstants[_0xff99[3029]],_0xf598x2= new mxRectangle(Math[_0xff99[488]](this[_0xff99[685]][_0xff99[235]]- _0xf598x2/ 2),Math[_0xff99[488]](this[_0xff99[685]][_0xff99[236]]- _0xf598x2/ 2),_0xf598x2,_0xf598x2);this[_0xff99[2972]][_0xff99[1562]]= _0xf598x2;this[_0xff99[2972]][_0xff99[258]]()}else {this[_0xff99[253]][_0xff99[1525]]= this[_0xff99[2997]],this[_0xff99[253]][_0xff99[258]]()}};mxEdgeHandler[_0xff99[202]][_0xff99[515]]= function(){null!= this[_0xff99[2885]]&& (this[_0xff99[2885]][_0xff99[515]](),this[_0xff99[2885]]= null);null!= this[_0xff99[253]]&& (this[_0xff99[253]][_0xff99[515]](),this[_0xff99[253]]= null);null!= this[_0xff99[2972]]&& (this[_0xff99[2972]][_0xff99[515]](),this[_0xff99[2972]]= null);null!= this[_0xff99[2886]]&& (this[_0xff99[2886]][_0xff99[515]](),this[_0xff99[2886]]= null);if(null!= this[_0xff99[2994]]){for(var _0xf598x2=0;_0xf598x2< this[_0xff99[2994]][_0xff99[67]];_0xf598x2++){null!= this[_0xff99[2994]][_0xf598x2]&& (this[_0xff99[2994]][_0xf598x2][_0xff99[515]](),this[_0xff99[2994]][_0xf598x2]= null)}}};function mxElbowEdgeHandler(_0xf598x2){mxEdgeHandler[_0xff99[239]](this,_0xf598x2)}mxUtils[_0xff99[1284]](mxElbowEdgeHandler,mxEdgeHandler);mxElbowEdgeHandler[_0xff99[202]]= new mxEdgeHandler;mxElbowEdgeHandler[_0xff99[202]][_0xff99[196]]= mxElbowEdgeHandler;mxElbowEdgeHandler[_0xff99[202]][_0xff99[3031]]= !0;mxElbowEdgeHandler[_0xff99[202]][_0xff99[3032]]= _0xff99[130]!= mxClient[_0xff99[90]]?_0xff99[3033]:_0xff99[110];mxElbowEdgeHandler[_0xff99[202]][_0xff99[3001]]= function(){var _0xf598x2=[],_0xf598x3=this[_0xff99[3009]](0);this[_0xff99[3002]](_0xf598x3);_0xf598x3[_0xff99[252]][_0xff99[124]][_0xff99[270]]= mxConstants[_0xff99[3011]];mxEvent[_0xff99[2733]](_0xf598x3[_0xff99[252]],this[_0xff99[1179]],this[_0xff99[724]]);_0xf598x2[_0xff99[207]](_0xf598x3);mxClient[_0xff99[754]]&& _0xf598x3[_0xff99[252]][_0xff99[57]](_0xff99[1377],_0xff99[130]);_0xf598x2[_0xff99[207]](this[_0xff99[3034]]());this[_0xff99[1525]][_0xff99[207]]( new mxPoint(0,0));_0xf598x3= this[_0xff99[3009]](2);this[_0xff99[3002]](_0xf598x3);_0xf598x3[_0xff99[252]][_0xff99[124]][_0xff99[270]]= mxConstants[_0xff99[3011]];mxEvent[_0xff99[2733]](_0xf598x3[_0xff99[252]],this[_0xff99[1179]],this[_0xff99[724]]);_0xf598x2[_0xff99[207]](_0xf598x3);mxClient[_0xff99[754]]&& _0xf598x3[_0xff99[252]][_0xff99[57]](_0xff99[1377],_0xff99[130]);return _0xf598x2};mxElbowEdgeHandler[_0xff99[202]][_0xff99[3034]]= function(){var _0xf598x2=this[_0xff99[3009]]();this[_0xff99[3002]](_0xf598x2);var _0xf598x3=this[_0xff99[3035]]();_0xf598x2[_0xff99[252]][_0xff99[124]][_0xff99[270]]= _0xf598x3;_0xf598x3= mxUtils[_0xff99[885]](this,function(_0xf598x2){!mxEvent[_0xff99[721]](_0xf598x2)&& this[_0xff99[3031]] && (this[_0xff99[1179]][_0xff99[854]](this[_0xff99[724]][_0xff99[246]],_0xf598x2),mxEvent[_0xff99[722]](_0xf598x2))});mxEvent[_0xff99[2733]](_0xf598x2[_0xff99[252]],this[_0xff99[1179]],this[_0xff99[724]],null,null,null,_0xf598x3);this[_0xff99[1179]][_0xff99[2662]](this[_0xff99[724]][_0xff99[246]])|| (_0xf598x2[_0xff99[252]][_0xff99[124]][_0xff99[495]]= _0xff99[130]);return _0xf598x2};mxElbowEdgeHandler[_0xff99[202]][_0xff99[3035]]= function(){return this[_0xff99[724]][_0xff99[124]][mxConstants[_0xff99[2294]]]== mxEdgeStyle[_0xff99[2570]]|| this[_0xff99[724]][_0xff99[124]][mxConstants[_0xff99[2294]]]== mxConstants[_0xff99[3036]]|| (this[_0xff99[724]][_0xff99[124]][mxConstants[_0xff99[2294]]]== mxEdgeStyle[_0xff99[2568]]|| this[_0xff99[724]][_0xff99[124]][mxConstants[_0xff99[2294]]]== mxConstants[_0xff99[3037]])&& this[_0xff99[724]][_0xff99[124]][mxConstants[_0xff99[2231]]]== mxConstants[_0xff99[2232]]?_0xff99[3038]:_0xff99[3039]};mxElbowEdgeHandler[_0xff99[202]][_0xff99[2597]]= function(_0xf598x2){var _0xf598x3=null;if(null!= this[_0xff99[2994]]&& null!= this[_0xff99[2994]][1]&& (_0xf598x2== this[_0xff99[2994]][1][_0xff99[252]]|| _0xf598x2[_0xff99[265]]== this[_0xff99[2994]][1][_0xff99[252]])){_0xf598x3= this[_0xff99[3032]],_0xf598x3= mxResources[_0xff99[203]](_0xf598x3)|| _0xf598x3};return _0xf598x3};mxElbowEdgeHandler[_0xff99[202]][_0xff99[2196]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=this[_0xff99[1179]][_0xff99[249]]()[_0xff99[518]](),_0xf598x5=this[_0xff99[1179]][_0xff99[249]]()[_0xff99[512]](),_0xf598x9=this[_0xff99[724]][_0xff99[2078]];_0xf598x3&& (_0xf598x2[_0xff99[235]]= this[_0xff99[1179]][_0xff99[1021]](_0xf598x2[_0xff99[235]]),_0xf598x2[_0xff99[236]]= this[_0xff99[1179]][_0xff99[1021]](_0xf598x2[_0xff99[236]]));_0xf598x2[_0xff99[235]]= Math[_0xff99[488]](_0xf598x2[_0xff99[235]]/ _0xf598x4- _0xf598x5[_0xff99[235]]- _0xf598x9[_0xff99[235]]);_0xf598x2[_0xff99[236]]= Math[_0xff99[488]](_0xf598x2[_0xff99[236]]/ _0xf598x4- _0xf598x5[_0xff99[236]]- _0xf598x9[_0xff99[236]])};mxElbowEdgeHandler[_0xff99[202]][_0xff99[3030]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=this[_0xff99[1179]][_0xff99[502]]()[_0xff99[1721]](this[_0xff99[724]][_0xff99[246]])[_0xff99[1525]],_0xf598x4=null!= _0xf598x4?_0xf598x4[0]:null,_0xf598x4=null== _0xf598x4? new mxPoint(_0xf598x2[_0xff99[235]]+ (_0xf598x3[_0xff99[235]]- _0xf598x2[_0xff99[235]])/ 2,_0xf598x2[_0xff99[236]]+ (_0xf598x3[_0xff99[236]]- _0xf598x2[_0xff99[236]])/ 2): new mxPoint(this[_0xff99[1179]][_0xff99[249]]()[_0xff99[255]]* (_0xf598x4[_0xff99[235]]+ this[_0xff99[1179]][_0xff99[249]]()[_0xff99[513]][_0xff99[235]]+ this[_0xff99[724]][_0xff99[2078]][_0xff99[235]]),this[_0xff99[1179]][_0xff99[249]]()[_0xff99[255]]* (_0xf598x4[_0xff99[236]]+ this[_0xff99[1179]][_0xff99[249]]()[_0xff99[513]][_0xff99[236]]+ this[_0xff99[724]][_0xff99[2078]][_0xff99[236]])),_0xf598x5=this[_0xff99[2994]][1][_0xff99[1562]],_0xf598x9=_0xf598x5[_0xff99[117]],_0xf598x5=_0xf598x5[_0xff99[119]];null== this[_0xff99[2959]]&& (_0xf598x5= _0xf598x9= mxConstants[_0xff99[2974]]);var _0xf598xa= new mxRectangle(Math[_0xff99[488]](_0xf598x4[_0xff99[235]]- _0xf598x9/ 2),Math[_0xff99[488]](_0xf598x4[_0xff99[236]]- _0xf598x5/ 2),_0xf598x9,_0xf598x5);null== this[_0xff99[2959]]&& (_0xff99[188]!= this[_0xff99[2972]][_0xff99[252]][_0xff99[124]][_0xff99[187]]&& mxUtils[_0xff99[1825]](_0xf598xa,this[_0xff99[2972]][_0xff99[1562]]))&& (_0xf598x9+= 3,_0xf598x5+= 3,_0xf598xa= new mxRectangle(Math[_0xff99[488]](_0xf598x4[_0xff99[235]]- _0xf598x9/ 2),Math[_0xff99[488]](_0xf598x4[_0xff99[236]]- _0xf598x5/ 2),_0xf598x9,_0xf598x5));this[_0xff99[2994]][1][_0xff99[1562]]= _0xf598xa;this[_0xff99[2994]][1][_0xff99[258]]()};function mxEdgeSegmentHandler(_0xf598x2){mxEdgeHandler[_0xff99[239]](this,_0xf598x2)}mxUtils[_0xff99[1284]](mxEdgeSegmentHandler,mxEdgeHandler);mxEdgeSegmentHandler[_0xff99[202]]= new mxElbowEdgeHandler;mxEdgeSegmentHandler[_0xff99[202]][_0xff99[196]]= mxEdgeSegmentHandler;mxEdgeSegmentHandler[_0xff99[202]][_0xff99[3018]]= function(_0xf598x2){if(this[_0xff99[729]]|| this[_0xff99[3013]]){return mxElbowEdgeHandler[_0xff99[202]][_0xff99[3018]][_0xff99[183]](this,arguments)};this[_0xff99[2196]](_0xf598x2,!1);var _0xf598x3=this[_0xff99[724]][_0xff99[439]],_0xf598x4=_0xf598x3[0][_0xff99[238]]();this[_0xff99[2196]](_0xf598x4,!1);for(var _0xf598x5=[],_0xf598x9=1;_0xf598x9< _0xf598x3[_0xff99[67]];_0xf598x9++){var _0xf598xa=_0xf598x3[_0xf598x9][_0xff99[238]]();this[_0xff99[2196]](_0xf598xa,!1);_0xf598x9== this[_0xff99[1983]]&& (_0xf598x4[_0xff99[235]]== _0xf598xa[_0xff99[235]]?(_0xf598x4[_0xff99[235]]= _0xf598x2[_0xff99[235]],_0xf598xa[_0xff99[235]]= _0xf598x2[_0xff99[235]]):(_0xf598x4[_0xff99[236]]= _0xf598x2[_0xff99[236]],_0xf598xa[_0xff99[236]]= _0xf598x2[_0xff99[236]]));_0xf598x9< _0xf598x3[_0xff99[67]]- 1&& _0xf598x5[_0xff99[207]](_0xf598xa);_0xf598x4= _0xf598xa};if(1== _0xf598x5[_0xff99[67]]){if(_0xf598x4= this[_0xff99[724]][_0xff99[441]],_0xf598x9= this[_0xff99[724]][_0xff99[2089]](!0),_0xf598xa= this[_0xff99[724]][_0xff99[2089]](!1),null!= _0xf598xa& null!= _0xf598x9){var _0xf598x12=this[_0xff99[724]][_0xff99[2078]][_0xff99[235]],_0xf598x13=this[_0xff99[724]][_0xff99[2078]][_0xff99[236]];mxUtils[_0xff99[442]](_0xf598xa,_0xf598x5[0][_0xff99[235]]+ _0xf598x12,_0xf598x5[0][_0xff99[236]]+ _0xf598x13)?_0xf598x3[1][_0xff99[236]]== _0xf598x3[2][_0xff99[236]]?_0xf598x5[0][_0xff99[236]]= _0xf598x4[_0xff99[2228]](_0xf598x9)- _0xf598x13:_0xf598x5[0][_0xff99[235]]= _0xf598x4[_0xff99[2230]](_0xf598x9)- _0xf598x12:mxUtils[_0xff99[442]](_0xf598x9,_0xf598x5[0][_0xff99[235]]+ _0xf598x12,_0xf598x5[0][_0xff99[236]]+ _0xf598x13)&& (_0xf598x3[1][_0xff99[236]]== _0xf598x3[0][_0xff99[236]]?_0xf598x5[0][_0xff99[236]]= _0xf598x4[_0xff99[2228]](_0xf598xa)- _0xf598x13:_0xf598x5[0][_0xff99[235]]= _0xf598x4[_0xff99[2230]](_0xf598xa)- _0xf598x12)}}else {0== _0xf598x5[_0xff99[67]]&& (_0xf598x5= [_0xf598x2])};return _0xf598x5};mxEdgeSegmentHandler[_0xff99[202]][_0xff99[3001]]= function(){var _0xf598x2=[],_0xf598x3=this[_0xff99[3009]](0);this[_0xff99[3002]](_0xf598x3);_0xf598x3[_0xff99[252]][_0xff99[124]][_0xff99[270]]= mxConstants[_0xff99[3011]];mxEvent[_0xff99[2733]](_0xf598x3[_0xff99[252]],this[_0xff99[1179]],this[_0xff99[724]]);_0xf598x2[_0xff99[207]](_0xf598x3);mxClient[_0xff99[754]]&& _0xf598x3[_0xff99[252]][_0xff99[57]](_0xff99[1377],_0xff99[130]);var _0xf598x4=this[_0xff99[724]][_0xff99[439]];if(this[_0xff99[1179]][_0xff99[2662]](this[_0xff99[724]][_0xff99[246]])){null== this[_0xff99[1525]]&& (this[_0xff99[1525]]= []);for(var _0xf598x5=0;_0xf598x5< _0xf598x4[_0xff99[67]]- 1;_0xf598x5++){_0xf598x3= this[_0xff99[3034]](),_0xf598x2[_0xff99[207]](_0xf598x3),_0xf598x3[_0xff99[252]][_0xff99[124]][_0xff99[270]]= 0== _0xf598x4[_0xf598x5][_0xff99[235]]- _0xf598x4[_0xf598x5+ 1][_0xff99[235]]?_0xff99[3039]:_0xff99[3038],this[_0xff99[1525]][_0xff99[207]]( new mxPoint(0,0)),mxClient[_0xff99[754]]&& _0xf598x3[_0xff99[252]][_0xff99[57]](_0xff99[1377],_0xff99[130])}};_0xf598x3= this[_0xff99[3009]](_0xf598x4[_0xff99[67]]);this[_0xff99[3002]](_0xf598x3);_0xf598x3[_0xff99[252]][_0xff99[124]][_0xff99[270]]= mxConstants[_0xff99[3011]];mxEvent[_0xff99[2733]](_0xf598x3[_0xff99[252]],this[_0xff99[1179]],this[_0xff99[724]]);_0xf598x2[_0xff99[207]](_0xf598x3);mxClient[_0xff99[754]]&& _0xf598x3[_0xff99[252]][_0xff99[57]](_0xff99[1377],_0xff99[130]);return _0xf598x2};mxEdgeSegmentHandler[_0xff99[202]][_0xff99[258]]= function(){this[_0xff99[802]]();mxEdgeHandler[_0xff99[202]][_0xff99[258]][_0xff99[183]](this,arguments)};mxEdgeSegmentHandler[_0xff99[202]][_0xff99[802]]= function(){if(null!= this[_0xff99[2994]]){for(var _0xf598x2=0;_0xf598x2< this[_0xff99[2994]][_0xff99[67]];_0xf598x2++){null!= this[_0xff99[2994]][_0xf598x2]&& (this[_0xff99[2994]][_0xf598x2][_0xff99[515]](),this[_0xff99[2994]][_0xf598x2]= null)};this[_0xff99[2994]]= this[_0xff99[3001]]()}};mxEdgeSegmentHandler[_0xff99[202]][_0xff99[3030]]= function(_0xf598x2,_0xf598x3){if(this[_0xff99[1179]][_0xff99[2662]](this[_0xff99[724]][_0xff99[246]])){var _0xf598x4=mxConstants[_0xff99[2974]],_0xf598x5=this[_0xff99[724]][_0xff99[439]];if(null!= _0xf598x5&& 1< _0xf598x5[_0xff99[67]]){for(var _0xf598x9=0;_0xf598x9< this[_0xff99[724]][_0xff99[439]][_0xff99[67]]- 1;_0xf598x9++){if(null!= this[_0xff99[2994]][_0xf598x9+ 1]){_0xf598x2= _0xf598x5[_0xf598x9];_0xf598x3= _0xf598x5[_0xf598x9+ 1];var _0xf598xa= new mxPoint(_0xf598x2[_0xff99[235]]+ (_0xf598x3[_0xff99[235]]- _0xf598x2[_0xff99[235]])/ 2,_0xf598x2[_0xff99[236]]+ (_0xf598x3[_0xff99[236]]- _0xf598x2[_0xff99[236]])/ 2);this[_0xff99[2994]][_0xf598x9+ 1][_0xff99[1562]]= new mxRectangle(Math[_0xff99[488]](_0xf598xa[_0xff99[235]]- _0xf598x4/ 2),Math[_0xff99[488]](_0xf598xa[_0xff99[236]]- _0xf598x4/ 2),_0xf598x4,_0xf598x4);this[_0xff99[2994]][_0xf598x9+ 1][_0xff99[258]]()}}}}};mxEdgeSegmentHandler[_0xff99[202]][_0xff99[3023]]= function(_0xf598x2,_0xf598x3){_0xf598x3= [];var _0xf598x4=this[_0xff99[2997]];if(1< _0xf598x4[_0xff99[67]]){for(var _0xf598x5=_0xf598x4[0],_0xf598x9=_0xf598x4[1],_0xf598xa=2;_0xf598xa< _0xf598x4[_0xff99[67]];_0xf598xa++){var _0xf598x12=_0xf598x4[_0xf598xa];if((Math[_0xff99[488]](_0xf598x5[_0xff99[235]])!= Math[_0xff99[488]](_0xf598x9[_0xff99[235]])|| Math[_0xff99[488]](_0xf598x9[_0xff99[235]])!= Math[_0xff99[488]](_0xf598x12[_0xff99[235]]))&& (Math[_0xff99[488]](_0xf598x5[_0xff99[236]])!= Math[_0xff99[488]](_0xf598x9[_0xff99[236]])|| Math[_0xff99[488]](_0xf598x9[_0xff99[236]])!= Math[_0xff99[488]](_0xf598x12[_0xff99[236]]))){_0xf598x5= _0xf598x9,_0xf598x9= _0xf598x9[_0xff99[238]](),this[_0xff99[2196]](_0xf598x9,!1),_0xf598x3[_0xff99[207]](_0xf598x9)};_0xf598x9= _0xf598x12}};mxElbowEdgeHandler[_0xff99[202]][_0xff99[3023]][_0xff99[183]](this,arguments)};function mxKeyHandler(_0xf598x2,_0xf598x3){null!= _0xf598x2&& (this[_0xff99[1179]]= _0xf598x2,this[_0xff99[772]]= _0xf598x3|| document[_0xff99[158]],this[_0xff99[3040]]= [],this[_0xff99[3041]]= [],this[_0xff99[3042]]= [],this[_0xff99[3043]]= [],mxEvent[_0xff99[169]](this[_0xff99[772]],_0xff99[2123],mxUtils[_0xff99[885]](this,function(_0xf598x2){this[_0xff99[3044]](_0xf598x2)})),mxClient[_0xff99[80]]&& mxEvent[_0xff99[169]](window,_0xff99[2428],mxUtils[_0xff99[885]](this,function(){this[_0xff99[515]]()})))}mxKeyHandler[_0xff99[202]][_0xff99[1179]]= null;mxKeyHandler[_0xff99[202]][_0xff99[772]]= null;mxKeyHandler[_0xff99[202]][_0xff99[3040]]= null;mxKeyHandler[_0xff99[202]][_0xff99[3041]]= null;mxKeyHandler[_0xff99[202]][_0xff99[3042]]= null;mxKeyHandler[_0xff99[202]][_0xff99[3043]]= null;mxKeyHandler[_0xff99[202]][_0xff99[984]]= !0;mxKeyHandler[_0xff99[202]][_0xff99[994]]= function(){return this[_0xff99[984]]};mxKeyHandler[_0xff99[202]][_0xff99[995]]= function(_0xf598x2){this[_0xff99[984]]= _0xf598x2};mxKeyHandler[_0xff99[202]][_0xff99[3045]]= function(_0xf598x2,_0xf598x3){this[_0xff99[3040]][_0xf598x2]= _0xf598x3};mxKeyHandler[_0xff99[202]][_0xff99[3046]]= function(_0xf598x2,_0xf598x3){this[_0xff99[3041]][_0xf598x2]= _0xf598x3};mxKeyHandler[_0xff99[202]][_0xff99[3047]]= function(_0xf598x2,_0xf598x3){this[_0xff99[3042]][_0xf598x2]= _0xf598x3};mxKeyHandler[_0xff99[202]][_0xff99[3048]]= function(_0xf598x2,_0xf598x3){this[_0xff99[3043]][_0xf598x2]= _0xf598x3};mxKeyHandler[_0xff99[202]][_0xff99[775]]= function(_0xf598x2){return mxEvent[_0xff99[775]](_0xf598x2)};mxKeyHandler[_0xff99[202]][_0xff99[3049]]= function(_0xf598x2){return null!= _0xf598x2?this[_0xff99[775]](_0xf598x2)?mxEvent[_0xff99[774]](_0xf598x2)?this[_0xff99[3043]][_0xf598x2[_0xff99[2124]]]:this[_0xff99[3042]][_0xf598x2[_0xff99[2124]]]:mxEvent[_0xff99[774]](_0xf598x2)?this[_0xff99[3041]][_0xf598x2[_0xff99[2124]]]:this[_0xff99[3040]][_0xf598x2[_0xff99[2124]]]:null};mxKeyHandler[_0xff99[202]][_0xff99[3050]]= function(_0xf598x2){_0xf598x2= mxEvent[_0xff99[728]](_0xf598x2);if(_0xf598x2== this[_0xff99[772]]|| _0xf598x2[_0xff99[265]]== this[_0xff99[772]]|| null!= this[_0xff99[1179]][_0xff99[2347]]&& _0xf598x2== this[_0xff99[1179]][_0xff99[2347]][_0xff99[126]]){return !0};for(;null!= _0xf598x2;){if(_0xf598x2== this[_0xff99[1179]][_0xff99[526]]){return !0};_0xf598x2= _0xf598x2[_0xff99[265]]};return !1};mxKeyHandler[_0xff99[202]][_0xff99[3044]]= function(_0xf598x2){if(this[_0xff99[1179]][_0xff99[994]]()&& !mxEvent[_0xff99[721]](_0xf598x2)&& this[_0xff99[3050]](_0xf598x2)&& this[_0xff99[994]]()){if(27== _0xf598x2[_0xff99[2124]]){this[_0xff99[859]](_0xf598x2)}else {if(!this[_0xff99[1179]][_0xff99[2203]]()){var _0xf598x3=this[_0xff99[3049]](_0xf598x2);null!= _0xf598x3&& (_0xf598x3(_0xf598x2),mxEvent[_0xff99[722]](_0xf598x2))}}}};mxKeyHandler[_0xff99[202]][_0xff99[859]]= function(_0xf598x2){this[_0xff99[1179]][_0xff99[2608]]()&& this[_0xff99[1179]][_0xff99[859]](_0xf598x2)};mxKeyHandler[_0xff99[202]][_0xff99[515]]= function(){this[_0xff99[772]]= null};function mxTooltipHandler(_0xf598x2,_0xf598x3){null!= _0xf598x2&& (this[_0xff99[1179]]= _0xf598x2,this[_0xff99[1140]]= _0xf598x3|| 500,this[_0xff99[1179]][_0xff99[1133]](this))}mxTooltipHandler[_0xff99[202]][_0xff99[931]]= 10005;mxTooltipHandler[_0xff99[202]][_0xff99[1179]]= null;mxTooltipHandler[_0xff99[202]][_0xff99[1140]]= null;mxTooltipHandler[_0xff99[202]][_0xff99[3051]]= !1;mxTooltipHandler[_0xff99[202]][_0xff99[984]]= !0;mxTooltipHandler[_0xff99[202]][_0xff99[994]]= function(){return this[_0xff99[984]]};mxTooltipHandler[_0xff99[202]][_0xff99[995]]= function(_0xf598x2){this[_0xff99[984]]= _0xf598x2};mxTooltipHandler[_0xff99[202]][_0xff99[2277]]= function(){return this[_0xff99[3051]]};mxTooltipHandler[_0xff99[202]][_0xff99[3052]]= function(_0xf598x2){this[_0xff99[3051]]= _0xf598x2};mxTooltipHandler[_0xff99[202]][_0xff99[176]]= function(){null!= document[_0xff99[112]]&& (this[_0xff99[485]]= document[_0xff99[55]](_0xff99[485]),this[_0xff99[485]][_0xff99[926]]= _0xff99[3053],this[_0xff99[485]][_0xff99[124]][_0xff99[187]]= _0xff99[188],this[_0xff99[485]][_0xff99[124]][_0xff99[931]]= this[_0xff99[931]],document[_0xff99[112]][_0xff99[62]](this[_0xff99[485]]),mxEvent[_0xff99[169]](this[_0xff99[485]],_0xff99[751],mxUtils[_0xff99[885]](this,function(_0xf598x2){this[_0xff99[3054]]()})))};mxTooltipHandler[_0xff99[202]][_0xff99[787]]= function(_0xf598x2,_0xf598x3){this[_0xff99[862]](_0xf598x3,!1);this[_0xff99[3054]]()};mxTooltipHandler[_0xff99[202]][_0xff99[788]]= function(_0xf598x2,_0xf598x3){if(_0xf598x3[_0xff99[730]]()!= this[_0xff99[1217]]|| _0xf598x3[_0xff99[732]]()!= this[_0xff99[1218]]){this[_0xff99[862]](_0xf598x3,!0),(this[_0xff99[2277]]()|| _0xf598x3[_0xff99[248]]()!= this[_0xff99[724]]|| _0xf598x3[_0xff99[728]]()!= this[_0xff99[252]]&& (!this[_0xff99[3055]]|| null!= _0xf598x3[_0xff99[248]]()&& this[_0xff99[3055]]== (_0xf598x3[_0xff99[729]](_0xf598x3[_0xff99[248]]()[_0xff99[253]])|| !_0xf598x3[_0xff99[729]](_0xf598x3[_0xff99[248]]()[_0xff99[963]]))))&& this[_0xff99[3054]]()};this[_0xff99[1217]]= _0xf598x3[_0xff99[730]]();this[_0xff99[1218]]= _0xf598x3[_0xff99[732]]()};mxTooltipHandler[_0xff99[202]][_0xff99[789]]= function(_0xf598x2,_0xf598x3){this[_0xff99[862]](_0xf598x3,!0);this[_0xff99[3054]]()};mxTooltipHandler[_0xff99[202]][_0xff99[3056]]= function(){null!= this[_0xff99[1123]]&& (window[_0xff99[2924]](this[_0xff99[1123]]),this[_0xff99[1123]]= null)};mxTooltipHandler[_0xff99[202]][_0xff99[862]]= function(_0xf598x2,_0xf598x3){this[_0xff99[3056]]();if(_0xf598x3&& this[_0xff99[994]]()&& null!= _0xf598x2[_0xff99[248]]()&& (null== this[_0xff99[485]]|| _0xff99[188]== this[_0xff99[485]][_0xff99[124]][_0xff99[187]])){var _0xf598x4=_0xf598x2[_0xff99[248]](),_0xf598x5=_0xf598x2[_0xff99[728]](),_0xf598x9=_0xf598x2[_0xff99[730]](),_0xf598xa=_0xf598x2[_0xff99[732]](),_0xf598x12=_0xf598x2[_0xff99[729]](_0xf598x4[_0xff99[253]])|| _0xf598x2[_0xff99[729]](_0xf598x4[_0xff99[963]]);this[_0xff99[1123]]= window[_0xff99[261]](mxUtils[_0xff99[885]](this,function(){if(!this[_0xff99[1179]][_0xff99[2203]]()&& !this[_0xff99[1179]][_0xff99[2316]][_0xff99[1031]]()){var _0xf598x2=this[_0xff99[1179]][_0xff99[2595]](_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa);this[_0xff99[539]](_0xf598x2,_0xf598x9,_0xf598xa);this[_0xff99[724]]= _0xf598x4;this[_0xff99[252]]= _0xf598x5;this[_0xff99[3055]]= _0xf598x12}}),this[_0xff99[1140]])}};mxTooltipHandler[_0xff99[202]][_0xff99[801]]= function(){this[_0xff99[3056]]();this[_0xff99[3054]]()};mxTooltipHandler[_0xff99[202]][_0xff99[3054]]= function(){null!= this[_0xff99[485]]&& (this[_0xff99[485]][_0xff99[124]][_0xff99[187]]= _0xff99[188])};mxTooltipHandler[_0xff99[202]][_0xff99[539]]= function(_0xf598x2,_0xf598x3,_0xf598x4){if(null!= _0xf598x2&& 0< _0xf598x2[_0xff99[67]]){null== this[_0xff99[485]]&& this[_0xff99[176]]();var _0xf598x5=mxUtils[_0xff99[444]]();this[_0xff99[485]][_0xff99[124]][_0xff99[361]]= _0xf598x3+ _0xf598x5[_0xff99[235]]+ _0xff99[168];this[_0xff99[485]][_0xff99[124]][_0xff99[125]]= _0xf598x4+ mxConstants[_0xff99[560]]+ _0xf598x5[_0xff99[236]]+ _0xff99[168];mxUtils[_0xff99[1331]](_0xf598x2)?(this[_0xff99[485]][_0xff99[339]]= _0xff99[110],this[_0xff99[485]][_0xff99[62]](_0xf598x2)):this[_0xff99[485]][_0xff99[339]]= _0xf598x2[_0xff99[230]](/\n/g,_0xff99[545]);this[_0xff99[485]][_0xff99[124]][_0xff99[187]]= _0xff99[110];mxUtils[_0xff99[933]](this[_0xff99[485]])}};mxTooltipHandler[_0xff99[202]][_0xff99[515]]= function(){this[_0xff99[1179]][_0xff99[1148]](this);mxEvent[_0xff99[762]](this[_0xff99[485]]);null!= this[_0xff99[485]]&& null!= this[_0xff99[485]][_0xff99[265]]&& this[_0xff99[485]][_0xff99[265]][_0xff99[266]](this[_0xff99[485]]);this[_0xff99[485]]= null};function mxCellTracker(_0xf598x2,_0xf598x3,_0xf598x4){mxCellMarker[_0xff99[239]](this,_0xf598x2,_0xf598x3);this[_0xff99[1179]][_0xff99[1133]](this);null!= _0xf598x4&& (this[_0xff99[736]]= _0xf598x4);mxClient[_0xff99[80]]&& mxEvent[_0xff99[169]](window,_0xff99[2428],mxUtils[_0xff99[885]](this,function(){this[_0xff99[515]]()}))}mxUtils[_0xff99[1284]](mxCellTracker,mxCellMarker);mxCellTracker[_0xff99[202]][_0xff99[787]]= function(_0xf598x2,_0xf598x3){};mxCellTracker[_0xff99[202]][_0xff99[788]]= function(_0xf598x2,_0xf598x3){this[_0xff99[994]]()&& this[_0xff99[2871]](_0xf598x3)};mxCellTracker[_0xff99[202]][_0xff99[789]]= function(_0xf598x2,_0xf598x3){this[_0xff99[862]]()};mxCellTracker[_0xff99[202]][_0xff99[515]]= function(){this[_0xff99[2717]]|| (this[_0xff99[2717]]= !0,this[_0xff99[1179]][_0xff99[1148]](this),mxCellMarker[_0xff99[202]][_0xff99[515]][_0xff99[183]](this))};function mxCellHighlight(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){null!= _0xf598x2&& (this[_0xff99[1179]]= _0xf598x2,this[_0xff99[2943]]= null!= _0xf598x3?_0xf598x3:mxConstants[_0xff99[2854]],this[_0xff99[610]]= null!= _0xf598x4?_0xf598x4:mxConstants[_0xff99[3057]],this[_0xff99[648]]= null!= _0xf598x5?_0xf598x5:!1,this[_0xff99[3058]]= mxUtils[_0xff99[885]](this,function(){this[_0xff99[2950]]()}),this[_0xff99[1179]][_0xff99[249]]()[_0xff99[169]](mxEvent.SCALE,this[_0xff99[3058]]),this[_0xff99[1179]][_0xff99[249]]()[_0xff99[169]](mxEvent.TRANSLATE,this[_0xff99[3058]]),this[_0xff99[1179]][_0xff99[249]]()[_0xff99[169]](mxEvent.SCALE_AND_TRANSLATE,this[_0xff99[3058]]),this[_0xff99[1179]][_0xff99[502]]()[_0xff99[169]](mxEvent.CHANGE,this[_0xff99[3058]]),this[_0xff99[2877]]= mxUtils[_0xff99[885]](this,function(){this[_0xff99[801]]()}),this[_0xff99[1179]][_0xff99[249]]()[_0xff99[169]](mxEvent.DOWN,this[_0xff99[2877]]),this[_0xff99[1179]][_0xff99[249]]()[_0xff99[169]](mxEvent.UP,this[_0xff99[2877]]))}mxCellHighlight[_0xff99[202]][_0xff99[3059]]= !1;mxCellHighlight[_0xff99[202]][_0xff99[1179]]= !0;mxCellHighlight[_0xff99[202]][_0xff99[724]]= null;mxCellHighlight[_0xff99[202]][_0xff99[657]]= 2;mxCellHighlight[_0xff99[202]][_0xff99[2877]]= null;mxCellHighlight[_0xff99[202]][_0xff99[2828]]= function(_0xf598x2){this[_0xff99[2943]]= _0xf598x2;null!= this[_0xff99[253]]&& (this[_0xff99[253]][_0xff99[1336]]= _0xf598x2)};mxCellHighlight[_0xff99[202]][_0xff99[3060]]= function(){this[_0xff99[253]]= this[_0xff99[2156]]();this[_0xff99[2950]]();!this[_0xff99[3059]]&& this[_0xff99[253]][_0xff99[252]][_0xff99[265]][_0xff99[285]]!= this[_0xff99[253]][_0xff99[252]] && this[_0xff99[253]][_0xff99[252]][_0xff99[265]][_0xff99[950]](this[_0xff99[253]][_0xff99[252]],this[_0xff99[253]][_0xff99[252]][_0xff99[265]][_0xff99[285]])};mxCellHighlight[_0xff99[202]][_0xff99[2156]]= function(){var _0xf598x2=null,_0xf598x2=this[_0xff99[1179]][_0xff99[251]][_0xff99[250]](this[_0xff99[724]][_0xff99[246]])? new mxPolyline(this[_0xff99[724]][_0xff99[439]],this[_0xff99[2943]],this[_0xff99[610]]): new mxRectangleShape( new mxRectangle,null,this[_0xff99[2943]],this[_0xff99[610]]);_0xf598x2[_0xff99[507]]= this[_0xff99[1179]][_0xff99[507]]!= mxConstants[_0xff99[508]]?mxConstants[_0xff99[1523]]:mxConstants[_0xff99[508]];_0xf598x2[_0xff99[176]](this[_0xff99[1179]][_0xff99[249]]()[_0xff99[1524]]());mxEvent[_0xff99[2733]](_0xf598x2[_0xff99[252]],this[_0xff99[1179]],this[_0xff99[724]]);_0xf598x2[_0xff99[1564]]= 0;_0xf598x2[_0xff99[1229]]= !1;_0xf598x2[_0xff99[1522]]= this[_0xff99[648]];return _0xf598x2};mxCellHighlight[_0xff99[202]][_0xff99[2950]]= function(){if(null!= this[_0xff99[724]]&& null!= this[_0xff99[253]]){var _0xf598x2=0;this[_0xff99[1179]][_0xff99[251]][_0xff99[250]](this[_0xff99[724]][_0xff99[246]])?this[_0xff99[253]][_0xff99[1525]]= this[_0xff99[724]][_0xff99[439]]:(this[_0xff99[253]][_0xff99[1562]]= new mxRectangle(this[_0xff99[724]][_0xff99[235]]- this[_0xff99[657]],this[_0xff99[724]][_0xff99[236]]- this[_0xff99[657]],this[_0xff99[724]][_0xff99[117]]+ 2* this[_0xff99[657]],this[_0xff99[724]][_0xff99[119]]+ 2* this[_0xff99[657]]),_0xf598x2= Number(this[_0xff99[724]][_0xff99[124]][mxConstants[_0xff99[2278]]]|| _0xff99[468]));null!= this[_0xff99[724]][_0xff99[253]]&& this[_0xff99[253]][_0xff99[1609]](this[_0xff99[724]][_0xff99[253]][_0xff99[1610]]());0!= _0xf598x2&& (this[_0xff99[253]][_0xff99[603]]= _0xf598x2);this[_0xff99[253]][_0xff99[258]]()}};mxCellHighlight[_0xff99[202]][_0xff99[801]]= function(){this[_0xff99[1016]](null)};mxCellHighlight[_0xff99[202]][_0xff99[1016]]= function(_0xf598x2){this[_0xff99[724]]!= _0xf598x2&& (null!= this[_0xff99[253]]&& (this[_0xff99[253]][_0xff99[515]](),this[_0xff99[253]]= null),this[_0xff99[724]]= _0xf598x2,null!= this[_0xff99[724]]&& this[_0xff99[3060]]())};mxCellHighlight[_0xff99[202]][_0xff99[515]]= function(){this[_0xff99[1179]][_0xff99[249]]()[_0xff99[745]](this[_0xff99[3058]]);this[_0xff99[1179]][_0xff99[502]]()[_0xff99[745]](this[_0xff99[3058]]);this[_0xff99[1179]][_0xff99[249]]()[_0xff99[745]](this[_0xff99[2877]]);this[_0xff99[1179]][_0xff99[502]]()[_0xff99[745]](this[_0xff99[2877]]);null!= this[_0xff99[253]]&& (this[_0xff99[253]][_0xff99[515]](),this[_0xff99[253]]= null)};function mxDefaultKeyHandler(_0xf598x2){if(null!= _0xf598x2){this[_0xff99[3061]]= _0xf598x2;this[_0xff99[2458]]= new mxKeyHandler(_0xf598x2[_0xff99[1179]]);var _0xf598x3=this[_0xff99[2458]][_0xff99[859]];this[_0xff99[2458]][_0xff99[859]]= function(_0xf598x4){_0xf598x3[_0xff99[183]](this,arguments);_0xf598x2[_0xff99[3062]]();_0xf598x2[_0xff99[746]]( new mxEventObject(mxEvent.ESCAPE,_0xff99[763],_0xf598x4))}}}mxDefaultKeyHandler[_0xff99[202]][_0xff99[3061]]= null;mxDefaultKeyHandler[_0xff99[202]][_0xff99[2458]]= null;mxDefaultKeyHandler[_0xff99[202]][_0xff99[3063]]= function(_0xf598x2,_0xf598x3,_0xf598x4){var _0xf598x5=mxUtils[_0xff99[885]](this,function(){this[_0xff99[3061]][_0xff99[350]](_0xf598x3)});_0xf598x4?this[_0xff99[2458]][_0xff99[3047]](_0xf598x2,_0xf598x5):this[_0xff99[2458]][_0xff99[3045]](_0xf598x2,_0xf598x5)};mxDefaultKeyHandler[_0xff99[202]][_0xff99[515]]= function(){this[_0xff99[2458]][_0xff99[515]]();this[_0xff99[2458]]= null};function mxDefaultPopupMenu(_0xf598x2){this[_0xff99[3064]]= _0xf598x2}mxDefaultPopupMenu[_0xff99[202]][_0xff99[88]]= null;mxDefaultPopupMenu[_0xff99[202]][_0xff99[3064]]= null;mxDefaultPopupMenu[_0xff99[202]][_0xff99[3065]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){if(null!= this[_0xff99[3064]]){var _0xf598x9=this[_0xff99[3066]](_0xf598x2,_0xf598x4,_0xf598x5);this[_0xff99[3067]](_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,this[_0xff99[3064]][_0xff99[285]],null)}};mxDefaultPopupMenu[_0xff99[202]][_0xff99[3067]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa,_0xf598x12){for(var _0xf598x13=!1;null!= _0xf598xa;){if(_0xff99[99]== _0xf598xa[_0xff99[301]]){var _0xf598x14=_0xf598xa[_0xff99[284]](_0xff99[3068]);if(null== _0xf598x14|| _0xf598x9[_0xf598x14]){var _0xf598x14=_0xf598xa[_0xff99[284]](_0xff99[3069]),_0xf598x14=mxResources[_0xff99[203]](_0xf598x14)|| _0xf598x14,_0xf598x15=mxUtils[_0xff99[1545]](mxUtils[_0xff99[329]](_0xf598xa)),_0xf598x16=_0xf598xa[_0xff99[284]](_0xff99[892]),_0xf598x17=_0xf598xa[_0xff99[284]](_0xff99[2916]),_0xf598x18=_0xf598xa[_0xff99[284]](_0xff99[3070]);_0xf598x13&& (_0xf598x3[_0xff99[1051]](_0xf598x12),_0xf598x13= !1);null!= _0xf598x17&& this[_0xff99[88]]&& (_0xf598x17= this[_0xff99[88]]+ _0xf598x17);_0xf598x14= this[_0xff99[3071]](_0xf598x3,_0xf598x2,_0xf598x14,_0xf598x17,_0xf598x15,_0xf598x16,_0xf598x4,_0xf598x12,_0xf598x18);this[_0xff99[3067]](_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa[_0xff99[285]],_0xf598x14)}}else {_0xff99[3072]== _0xf598xa[_0xff99[301]]&& (_0xf598x13= !0)};_0xf598xa= _0xf598xa[_0xff99[287]]}};mxDefaultPopupMenu[_0xff99[202]][_0xff99[3071]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa,_0xf598x12,_0xf598x13,_0xf598x14){return _0xf598x2[_0xff99[1025]](_0xf598x4,_0xf598x5,function(_0xf598x2){_0xff99[279]== typeof _0xf598x9&& _0xf598x9[_0xff99[239]](_0xf598x3,_0xf598x3,_0xf598x12,_0xf598x2);null!= _0xf598xa&& _0xf598x3[_0xff99[350]](_0xf598xa,_0xf598x12,_0xf598x2)},_0xf598x13,_0xf598x14)};mxDefaultPopupMenu[_0xff99[202]][_0xff99[3066]]= function(_0xf598x2,_0xf598x3,_0xf598x4){var _0xf598x5=_0xf598x2[_0xff99[1179]][_0xff99[502]](),_0xf598x9=_0xf598x5[_0xff99[262]](_0xf598x3),_0xf598xa=[];_0xf598xa[_0xff99[3073]]= null== _0xf598x3;_0xf598xa[_0xff99[3074]]= 1< _0xf598x2[_0xff99[1179]][_0xff99[2694]]();_0xf598xa[_0xff99[3075]]= _0xf598x5[_0xff99[501]]()!= _0xf598x5[_0xff99[1197]](_0xf598x2[_0xff99[1179]][_0xff99[902]]());_0xf598xa[_0xff99[246]]= null!= _0xf598x3;_0xf598x5= null!= _0xf598x3&& 1== _0xf598x2[_0xff99[1179]][_0xff99[2694]]();_0xf598xa[_0xff99[3076]]= _0xf598x5&& 0< _0xf598x9;_0xf598xa[_0xff99[3077]]= _0xf598x5&& _0xf598x2[_0xff99[1179]][_0xff99[2516]](_0xf598x3,!1);_0xf598xa[_0xff99[3078]]= _0xf598x5&& _0xf598x2[_0xff99[1179]][_0xff99[2516]](_0xf598x3,!0);_0xf598xa[_0xff99[3079]]= _0xf598x5&& _0xf598x2[_0xff99[1179]][_0xff99[2553]](_0xf598x3);_0xf598xa[_0xff99[3080]]= _0xf598xa[_0xff99[3079]]&& 0== _0xf598x9;_0xf598xa[_0xff99[687]]= _0xf598x5&& _0xf598x2[_0xff99[1179]][_0xff99[1730]](_0xf598x3);_0xf598x9= this[_0xff99[3064]][_0xff99[64]](_0xff99[3081]);for(_0xf598x5= 0;_0xf598x5< _0xf598x9[_0xff99[67]];_0xf598x5++){var _0xf598x12=mxUtils[_0xff99[1545]](mxUtils[_0xff99[329]](_0xf598x9[_0xf598x5])),_0xf598x13=_0xf598x9[_0xf598x5][_0xff99[284]](_0xff99[298]);null!= _0xf598x13&& _0xff99[279]== typeof _0xf598x12&& (_0xf598xa[_0xf598x13]= _0xf598x12(_0xf598x2,_0xf598x3,_0xf598x4))};return _0xf598xa};function mxDefaultToolbar(_0xf598x2,_0xf598x3){this[_0xff99[3061]]= _0xf598x3;null!= _0xf598x2&& null!= _0xf598x3&& this[_0xff99[176]](_0xf598x2)}mxDefaultToolbar[_0xff99[202]][_0xff99[3061]]= null;mxDefaultToolbar[_0xff99[202]][_0xff99[3082]]= null;mxDefaultToolbar[_0xff99[202]][_0xff99[2877]]= null;mxDefaultToolbar[_0xff99[202]][_0xff99[657]]= 4;mxDefaultToolbar[_0xff99[202]][_0xff99[2804]]= !1;mxDefaultToolbar[_0xff99[202]][_0xff99[176]]= function(_0xf598x2){null!= _0xf598x2&& (this[_0xff99[3082]]= new mxToolbar(_0xf598x2),this[_0xff99[3082]][_0xff99[169]](mxEvent.SELECT,mxUtils[_0xff99[885]](this,function(_0xf598x2,_0xf598x4){var _0xf598x5=_0xf598x4[_0xff99[720]](_0xff99[279]);this[_0xff99[3061]][_0xff99[3083]]= null!= _0xf598x5?mxUtils[_0xff99[885]](this,function(){_0xf598x5[_0xff99[183]](this,arguments);this[_0xff99[3082]][_0xff99[1050]]()}):null})),this[_0xff99[2877]]= mxUtils[_0xff99[885]](this,function(){null!= this[_0xff99[3082]]&& this[_0xff99[3082]][_0xff99[1050]](!0)}),this[_0xff99[3061]][_0xff99[1179]][_0xff99[169]](mxEvent.DOUBLE_CLICK,this[_0xff99[2877]]),this[_0xff99[3061]][_0xff99[169]](mxEvent.ESCAPE,this[_0xff99[2877]]))};mxDefaultToolbar[_0xff99[202]][_0xff99[1025]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){var _0xf598x9=mxUtils[_0xff99[885]](this,function(){null!= _0xf598x4&& 0< _0xf598x4[_0xff99[67]]&& this[_0xff99[3061]][_0xff99[350]](_0xf598x4)});return this[_0xff99[3082]][_0xff99[1025]](_0xf598x2,_0xf598x3,_0xf598x9,_0xf598x5)};mxDefaultToolbar[_0xff99[202]][_0xff99[1051]]= function(_0xf598x2){_0xf598x2= _0xf598x2|| mxClient[_0xff99[88]]+ _0xff99[3084];this[_0xff99[3082]][_0xff99[1051]](_0xf598x2)};mxDefaultToolbar[_0xff99[202]][_0xff99[970]]= function(){return this[_0xff99[3082]][_0xff99[970]]()};mxDefaultToolbar[_0xff99[202]][_0xff99[1038]]= function(_0xf598x2){return this[_0xff99[3082]][_0xff99[1038]](_0xf598x2)};mxDefaultToolbar[_0xff99[202]][_0xff99[3085]]= function(_0xf598x2,_0xf598x3,_0xf598x4){var _0xf598x5=mxUtils[_0xff99[885]](this,function(){this[_0xff99[3061]][_0xff99[350]](_0xf598x4)});this[_0xff99[972]](_0xf598x2,_0xf598x3,_0xf598x5)};mxDefaultToolbar[_0xff99[202]][_0xff99[972]]= function(_0xf598x2,_0xf598x3,_0xf598x4){return this[_0xff99[3082]][_0xff99[972]](_0xf598x2,_0xf598x3,_0xf598x4)};mxDefaultToolbar[_0xff99[202]][_0xff99[1048]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){var _0xf598xa=mxUtils[_0xff99[885]](this,function(){this[_0xff99[3061]][_0xff99[3086]](_0xf598x4);null!= _0xf598x9&& _0xf598x9(this[_0xff99[3061]])});return this[_0xff99[3082]][_0xff99[1042]](_0xf598x2,_0xf598x3,_0xf598xa,_0xf598x5)};mxDefaultToolbar[_0xff99[202]][_0xff99[3087]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9,_0xf598xa){var _0xf598x12=function(){return _0xff99[279]== typeof _0xf598x4?_0xf598x4():null!= _0xf598x4?_0xf598x4[_0xff99[238]]():null},_0xf598x13=mxUtils[_0xff99[885]](this,function(_0xf598x2,_0xf598x3){_0xff99[279]== typeof _0xf598x9?_0xf598x9(this[_0xff99[3061]],_0xf598x12(),_0xf598x2,_0xf598x3):this[_0xff99[1008]](_0xf598x12(),_0xf598x2,_0xf598x3);this[_0xff99[3082]][_0xff99[1050]]();mxEvent[_0xff99[722]](_0xf598x2)});_0xf598x2= this[_0xff99[3082]][_0xff99[1048]](_0xf598x2,_0xf598x3,_0xf598x13,_0xf598x5,null,_0xf598xa);this[_0xff99[3088]](_0xf598x2,function(_0xf598x2,_0xf598x3,_0xf598x4){_0xf598x13(_0xf598x3,_0xf598x4)});return _0xf598x2};mxDefaultToolbar[_0xff99[202]][_0xff99[1008]]= function(_0xf598x2,_0xf598x3,_0xf598x4){var _0xf598x5=this[_0xff99[3061]][_0xff99[1179]],_0xf598x9=_0xf598x5[_0xff99[502]]();if(null== _0xf598x4|| _0xf598x9[_0xff99[250]](_0xf598x4)|| !this[_0xff99[2804]]|| !_0xf598x5[_0xff99[2565]](_0xf598x4)){for(;null!= _0xf598x4&& !_0xf598x5[_0xff99[2685]](_0xf598x4,[_0xf598x2],_0xf598x3);){_0xf598x4= _0xf598x9[_0xff99[1197]](_0xf598x4)};this[_0xff99[1937]](_0xf598x2,_0xf598x3,_0xf598x4)}else {this[_0xff99[807]](_0xf598x2,_0xf598x3,_0xf598x4)}};mxDefaultToolbar[_0xff99[202]][_0xff99[1937]]= function(_0xf598x2,_0xf598x3,_0xf598x4){var _0xf598x5=this[_0xff99[3061]][_0xff99[1179]];if(_0xf598x5[_0xff99[2621]](_0xf598x2)){var _0xf598x9=mxEvent[_0xff99[731]](_0xf598x3),_0xf598xa=mxEvent[_0xff99[733]](_0xf598x3),_0xf598x9=mxUtils[_0xff99[2196]](_0xf598x5[_0xff99[526]],_0xf598x9,_0xf598xa);return _0xf598x5[_0xff99[2655]]()&& _0xf598x5[_0xff99[2686]](_0xf598x4,[_0xf598x2],_0xf598x3)?_0xf598x5[_0xff99[853]](_0xf598x4,[_0xf598x2],null,_0xf598x9[_0xff99[235]],_0xf598x9[_0xff99[236]]):this[_0xff99[3061]][_0xff99[817]](_0xf598x4,_0xf598x2,_0xf598x9[_0xff99[235]],_0xf598x9[_0xff99[236]])};return null};mxDefaultToolbar[_0xff99[202]][_0xff99[807]]= function(_0xf598x2,_0xf598x3,_0xf598x4){_0xf598x3= this[_0xff99[3061]][_0xff99[1179]];var _0xf598x5=_0xf598x3[_0xff99[502]]();if(null!= _0xf598x4&& _0xf598x3[_0xff99[2565]](_0xf598x2)&& _0xf598x3[_0xff99[2581]](null,_0xf598x4,_0xf598x2)){var _0xf598x9=null;_0xf598x5[_0xff99[473]]();try{var _0xf598xa=_0xf598x5[_0xff99[1721]](_0xf598x4),_0xf598x12=_0xf598x5[_0xff99[1721]](_0xf598x2)[_0xff99[238]]();_0xf598x12[_0xff99[235]]= _0xf598xa[_0xff99[235]]+ (_0xf598xa[_0xff99[117]]- _0xf598x12[_0xff99[117]])/ 2;_0xf598x12[_0xff99[236]]= _0xf598xa[_0xff99[236]]+ (_0xf598xa[_0xff99[119]]- _0xf598x12[_0xff99[119]])/ 2;var _0xf598x13=this[_0xff99[657]]* _0xf598x3[_0xff99[1020]],_0xf598x14=20* _0xf598x5[_0xff99[1962]](_0xf598x4,!0);this[_0xff99[3061]][_0xff99[3089]]?_0xf598x12[_0xff99[235]]+= (_0xf598x12[_0xff99[117]]+ _0xf598xa[_0xff99[117]])/ 2+ _0xf598x13+ _0xf598x14:_0xf598x12[_0xff99[236]]+= (_0xf598x12[_0xff99[119]]+ _0xf598xa[_0xff99[119]])/ 2+ _0xf598x13+ _0xf598x14;_0xf598x2[_0xff99[1724]](_0xf598x12);var _0xf598x15=_0xf598x5[_0xff99[1197]](_0xf598x4);_0xf598x3[_0xff99[2103]](_0xf598x2,_0xf598x15);_0xf598x3[_0xff99[2509]](_0xf598x2);_0xf598x9= this[_0xff99[3061]][_0xff99[2503]](_0xf598x4,_0xf598x2);if(null== _0xf598x5[_0xff99[1721]](_0xf598x9)){var _0xf598x16= new mxGeometry;_0xf598x16[_0xff99[1500]]= !0;_0xf598x5[_0xff99[1724]](_0xf598x9,_0xf598x16)};_0xf598x3[_0xff99[2504]](_0xf598x9,_0xf598x15,_0xf598x4,_0xf598x2)}finally{_0xf598x5[_0xff99[476]]()};_0xf598x3[_0xff99[904]]([_0xf598x2,_0xf598x9]);_0xf598x3[_0xff99[2564]](_0xf598x2)}};mxDefaultToolbar[_0xff99[202]][_0xff99[3088]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=document[_0xff99[55]](_0xff99[466]);_0xf598x4[_0xff99[57]](_0xff99[390],_0xf598x2[_0xff99[284]](_0xff99[390]));var _0xf598x5=mxUtils[_0xff99[885]](this,function(_0xf598x9){_0xf598x4[_0xff99[124]][_0xff99[117]]= 2* _0xf598x2[_0xff99[359]]+ _0xff99[168];_0xf598x4[_0xff99[124]][_0xff99[119]]= 2* _0xf598x2[_0xff99[167]]+ _0xff99[168];mxUtils[_0xff99[3090]](_0xf598x2,this[_0xff99[3061]][_0xff99[1179]],_0xf598x3,_0xf598x4);mxEvent[_0xff99[745]](_0xf598x4,_0xff99[219],_0xf598x5)});mxClient[_0xff99[80]]?_0xf598x5():mxEvent[_0xff99[169]](_0xf598x4,_0xff99[219],_0xf598x5)};mxDefaultToolbar[_0xff99[202]][_0xff99[515]]= function(){null!= this[_0xff99[2877]]&& (this[_0xff99[3061]][_0xff99[1179]][_0xff99[745]](_0xff99[760],this[_0xff99[2877]]),this[_0xff99[3061]][_0xff99[745]](_0xff99[859],this[_0xff99[2877]]),this[_0xff99[2877]]= null);null!= this[_0xff99[3082]]&& (this[_0xff99[3082]][_0xff99[515]](),this[_0xff99[3082]]= null)};function mxEditor(_0xf598x2){this[_0xff99[3091]]= [];this[_0xff99[3092]]();if(null!= document[_0xff99[112]]){this[_0xff99[3093]]= [];this[_0xff99[3094]]= new mxDefaultPopupMenu;this[_0xff99[3095]]= new mxUndoManager;this[_0xff99[1179]]= this[_0xff99[3096]]();this[_0xff99[3082]]= this[_0xff99[3097]]();this[_0xff99[3098]]= new mxDefaultKeyHandler(this);this[_0xff99[3099]](_0xf598x2);this[_0xff99[1179]][_0xff99[2180]]= this[_0xff99[3100]];!mxClient[_0xff99[3101]]&& null!= this[_0xff99[1056]] && (this[_0xff99[812]]= this[_0xff99[3102]]());if(null!= this[_0xff99[1987]]){this[_0xff99[1987]]()};mxClient[_0xff99[80]]&& mxEvent[_0xff99[169]](window,_0xff99[2428],mxUtils[_0xff99[885]](this,function(){this[_0xff99[515]]()}))}}mxLoadResources&& mxResources[_0xff99[99]](mxClient[_0xff99[86]]+ _0xff99[3103]);mxEditor[_0xff99[202]]= new mxEventSource;mxEditor[_0xff99[202]][_0xff99[196]]= mxEditor;mxEditor[_0xff99[202]][_0xff99[3104]]= _0xff99[130]!= mxClient[_0xff99[90]]?_0xff99[3105]:_0xff99[110];mxEditor[_0xff99[202]][_0xff99[3106]]= _0xff99[130]!= mxClient[_0xff99[90]]?_0xff99[3107]:_0xff99[110];mxEditor[_0xff99[202]][_0xff99[3108]]= _0xff99[130]!= mxClient[_0xff99[90]]?_0xff99[3109]:_0xff99[110];mxEditor[_0xff99[202]][_0xff99[3110]]= _0xff99[130]!= mxClient[_0xff99[90]]?_0xff99[716]:_0xff99[110];mxEditor[_0xff99[202]][_0xff99[3111]]= _0xff99[130]!= mxClient[_0xff99[90]]?_0xff99[3112]:_0xff99[110];mxEditor[_0xff99[202]][_0xff99[3113]]= _0xff99[130]!= mxClient[_0xff99[90]]?_0xff99[2719]:_0xff99[110];mxEditor[_0xff99[202]][_0xff99[3114]]= _0xff99[130]!= mxClient[_0xff99[90]]?_0xff99[2136]:_0xff99[110];mxEditor[_0xff99[202]][_0xff99[2136]]= null;mxEditor[_0xff99[202]][_0xff99[1179]]= null;mxEditor[_0xff99[202]][_0xff99[2720]]= null;mxEditor[_0xff99[202]][_0xff99[3082]]= null;mxEditor[_0xff99[202]][_0xff99[812]]= null;mxEditor[_0xff99[202]][_0xff99[879]]= null;mxEditor[_0xff99[202]][_0xff99[3094]]= null;mxEditor[_0xff99[202]][_0xff99[3095]]= null;mxEditor[_0xff99[202]][_0xff99[3098]]= null;mxEditor[_0xff99[202]][_0xff99[3091]]= null;mxEditor[_0xff99[202]][_0xff99[3115]]= _0xff99[1061];mxEditor[_0xff99[202]][_0xff99[3116]]= !1;mxEditor[_0xff99[202]][_0xff99[1157]]= !0;mxEditor[_0xff99[202]][_0xff99[3083]]= null;mxEditor[_0xff99[202]][_0xff99[3117]]= !1;mxEditor[_0xff99[202]][_0xff99[3118]]= null;mxEditor[_0xff99[202]][_0xff99[2075]]= null;mxEditor[_0xff99[202]][_0xff99[3119]]= null;mxEditor[_0xff99[202]][_0xff99[3120]]= null;mxEditor[_0xff99[202]][_0xff99[3121]]= null;mxEditor[_0xff99[202]][_0xff99[3122]]= null;mxEditor[_0xff99[202]][_0xff99[1069]]= _0xff99[336];mxEditor[_0xff99[202]][_0xff99[3123]]= _0xff99[338];mxEditor[_0xff99[202]][_0xff99[1070]]= !0;mxEditor[_0xff99[202]][_0xff99[3124]]= null;mxEditor[_0xff99[202]][_0xff99[3125]]= null;mxEditor[_0xff99[202]][_0xff99[1056]]= null;mxEditor[_0xff99[202]][_0xff99[1058]]= null;mxEditor[_0xff99[202]][_0xff99[1057]]= null;mxEditor[_0xff99[202]][_0xff99[3089]]= !1;mxEditor[_0xff99[202]][_0xff99[3126]]= !1;mxEditor[_0xff99[202]][_0xff99[3127]]= 0;mxEditor[_0xff99[202]][_0xff99[3128]]= !1;mxEditor[_0xff99[202]][_0xff99[3129]]= !1;mxEditor[_0xff99[202]][_0xff99[3093]]= null;mxEditor[_0xff99[202]][_0xff99[3130]]= 0;mxEditor[_0xff99[202]][_0xff99[3100]]= _0xff99[604];mxEditor[_0xff99[202]][_0xff99[3112]]= null;mxEditor[_0xff99[202]][_0xff99[3131]]= null;mxEditor[_0xff99[202]][_0xff99[3132]]= 20;mxEditor[_0xff99[202]][_0xff99[2719]]= null;mxEditor[_0xff99[202]][_0xff99[3133]]= null;mxEditor[_0xff99[202]][_0xff99[3134]]= null;mxEditor[_0xff99[202]][_0xff99[3135]]= 300;mxEditor[_0xff99[202]][_0xff99[3136]]= 260;mxEditor[_0xff99[202]][_0xff99[3137]]= 240;mxEditor[_0xff99[202]][_0xff99[3138]]= null;mxEditor[_0xff99[202]][_0xff99[3139]]= !1;mxEditor[_0xff99[202]][_0xff99[3140]]= !1;mxEditor[_0xff99[202]][_0xff99[2113]]= !1;mxEditor[_0xff99[202]][_0xff99[2133]]= function(){return this[_0xff99[2113]]};mxEditor[_0xff99[202]][_0xff99[2128]]= function(_0xf598x2){this[_0xff99[2113]]= _0xf598x2};mxEditor[_0xff99[202]][_0xff99[3092]]= function(){this[_0xff99[3071]](_0xff99[815],function(_0xf598x2){_0xf598x2[_0xff99[815]]()});this[_0xff99[3071]](_0xff99[540],function(_0xf598x2){( new mxPrintPreview(_0xf598x2[_0xff99[1179]],1))[_0xff99[392]]()});this[_0xff99[3071]](_0xff99[539],function(_0xf598x2){mxUtils[_0xff99[539]](_0xf598x2[_0xff99[1179]],null,10,10)});this[_0xff99[3071]](_0xff99[3141],function(_0xf598x2){var _0xf598x3=_0xf598x2[_0xff99[3142]]();if(null== _0xf598x3|| mxClient[_0xff99[3101]]){_0xf598x2[_0xff99[350]](_0xff99[539])}else {var _0xf598x4=mxUtils[_0xff99[3143]](_0xf598x2[_0xff99[1179]],1),_0xf598x4=mxUtils[_0xff99[875]](_0xf598x4,_0xff99[192]);mxUtils[_0xff99[894]](_0xf598x3,_0xf598x2[_0xff99[3123]]+ _0xff99[226]+ encodeURIComponent(_0xf598x4),document,_0xff99[3144])}});this[_0xff99[3071]](_0xff99[802],function(_0xf598x2){_0xf598x2[_0xff99[1179]][_0xff99[802]]()});this[_0xff99[3071]](_0xff99[3145],function(_0xf598x2){_0xf598x2[_0xff99[1179]][_0xff99[994]]()&& mxClipboard[_0xff99[3145]](_0xf598x2[_0xff99[1179]])});this[_0xff99[3071]](_0xff99[149],function(_0xf598x2){_0xf598x2[_0xff99[1179]][_0xff99[994]]()&& mxClipboard[_0xff99[149]](_0xf598x2[_0xff99[1179]])});this[_0xff99[3071]](_0xff99[3146],function(_0xf598x2){_0xf598x2[_0xff99[1179]][_0xff99[994]]()&& mxClipboard[_0xff99[3146]](_0xf598x2[_0xff99[1179]])});this[_0xff99[3071]](_0xff99[3147],function(_0xf598x2){_0xf598x2[_0xff99[1179]][_0xff99[994]]()&& _0xf598x2[_0xff99[1179]][_0xff99[842]]()});this[_0xff99[3071]](_0xff99[1504],function(_0xf598x2){_0xf598x2[_0xff99[1179]][_0xff99[994]]()&& _0xf598x2[_0xff99[1179]][_0xff99[2450]](_0xf598x2[_0xff99[844]]())});this[_0xff99[3071]](_0xff99[3148],function(_0xf598x2){_0xf598x2[_0xff99[1179]][_0xff99[994]]()&& _0xf598x2[_0xff99[1179]][_0xff99[904]](_0xf598x2[_0xff99[1179]][_0xff99[845]]())});this[_0xff99[3071]](_0xff99[1997],function(_0xf598x2){_0xf598x2[_0xff99[1179]][_0xff99[994]]()&& _0xf598x2[_0xff99[1179]][_0xff99[846]]()});this[_0xff99[3071]](_0xff99[824],function(_0xf598x2){_0xf598x2[_0xff99[1179]][_0xff99[994]]()&& _0xf598x2[_0xff99[824]]()});this[_0xff99[3071]](_0xff99[825],function(_0xf598x2){_0xf598x2[_0xff99[1179]][_0xff99[994]]()&& _0xf598x2[_0xff99[825]]()});this[_0xff99[3071]](_0xff99[2558],function(_0xf598x2){_0xf598x2[_0xff99[1179]][_0xff99[2558]]()});this[_0xff99[3071]](_0xff99[2559],function(_0xf598x2){_0xf598x2[_0xff99[1179]][_0xff99[2559]]()});this[_0xff99[3071]](_0xff99[3149],function(_0xf598x2){_0xf598x2[_0xff99[1179]][_0xff99[2560]]()});this[_0xff99[3071]](_0xff99[933],function(_0xf598x2){_0xf598x2[_0xff99[1179]][_0xff99[933]]()});this[_0xff99[3071]](_0xff99[3150],function(_0xf598x2,_0xf598x3){_0xf598x2[_0xff99[3150]](_0xf598x3)});this[_0xff99[3071]](_0xff99[2705],function(_0xf598x2){_0xf598x2[_0xff99[1179]][_0xff99[994]]()&& _0xf598x2[_0xff99[1179]][_0xff99[2705]]()});this[_0xff99[3071]](_0xff99[3151],function(_0xf598x2){_0xf598x2[_0xff99[1179]][_0xff99[994]]()&& _0xf598x2[_0xff99[1179]][_0xff99[2440]]()});this[_0xff99[3071]](_0xff99[2706],function(_0xf598x2){_0xf598x2[_0xff99[1179]][_0xff99[994]]()&& _0xf598x2[_0xff99[1179]][_0xff99[2706]]()});this[_0xff99[3071]](_0xff99[2708],function(_0xf598x2){_0xf598x2[_0xff99[1179]][_0xff99[994]]()&& _0xf598x2[_0xff99[1179]][_0xff99[2708]]()});this[_0xff99[3071]](_0xff99[1061],function(_0xf598x2,_0xf598x3){_0xf598x2[_0xff99[1179]][_0xff99[994]]()&& _0xf598x2[_0xff99[1179]][_0xff99[2453]](_0xf598x3)&& _0xf598x2[_0xff99[1179]][_0xff99[2451]](_0xf598x3)});this[_0xff99[3071]](_0xff99[3152],function(_0xf598x2,_0xf598x3){_0xf598x2[_0xff99[1179]][_0xff99[994]]()&& _0xf598x2[_0xff99[1179]][_0xff99[840]](!0)});this[_0xff99[3071]](_0xff99[3153],function(_0xf598x2,_0xf598x3){_0xf598x2[_0xff99[1179]][_0xff99[994]]()&& _0xf598x2[_0xff99[1179]][_0xff99[840]](!1)});this[_0xff99[3071]](_0xff99[2552],function(_0xf598x2,_0xf598x3){_0xf598x2[_0xff99[1179]][_0xff99[2552]](_0xf598x3)});this[_0xff99[3071]](_0xff99[2554],function(_0xf598x2){_0xf598x2[_0xff99[1179]][_0xff99[2554]]()});this[_0xff99[3071]](_0xff99[2442],function(_0xf598x2){_0xf598x2[_0xff99[1179]][_0xff99[2442]]()});this[_0xff99[3071]](_0xff99[3154],function(_0xf598x2){_0xf598x2[_0xff99[1179]][_0xff99[994]]()&& _0xf598x2[_0xff99[1179]][_0xff99[2702]]()});this[_0xff99[3071]](_0xff99[3155],function(_0xf598x2){_0xf598x2[_0xff99[1179]][_0xff99[994]]()&& _0xf598x2[_0xff99[1179]][_0xff99[2700]]()});this[_0xff99[3071]](_0xff99[3156],function(_0xf598x2){_0xf598x2[_0xff99[1179]][_0xff99[994]]()&& _0xf598x2[_0xff99[1179]][_0xff99[2703]]()});this[_0xff99[3071]](_0xff99[3157],function(_0xf598x2){_0xf598x2[_0xff99[1179]][_0xff99[994]]()&& _0xf598x2[_0xff99[1179]][_0xff99[2704]]()});this[_0xff99[3071]](_0xff99[2514],function(_0xf598x2){_0xf598x2[_0xff99[1179]][_0xff99[994]]()&& _0xf598x2[_0xff99[1179]][_0xff99[847]](!0)});this[_0xff99[3071]](_0xff99[3158],function(_0xf598x2){if(_0xf598x2[_0xff99[1179]][_0xff99[994]]()){var _0xf598x3=_0xf598x2[_0xff99[1179]][_0xff99[1728]]();_0xf598x2[_0xff99[1179]][_0xff99[847]](!0,!1,_0xf598x3)}});this[_0xff99[3071]](_0xff99[3159],function(_0xf598x2){_0xf598x2[_0xff99[1179]][_0xff99[994]]()&& _0xf598x2[_0xff99[1179]][_0xff99[847]](!1)});this[_0xff99[3071]](_0xff99[3160],function(_0xf598x2){if(_0xf598x2[_0xff99[1179]][_0xff99[994]]()){var _0xf598x3=_0xf598x2[_0xff99[1179]][_0xff99[1728]]();_0xf598x2[_0xff99[1179]][_0xff99[847]](!1,!1,_0xf598x3)}});this[_0xff99[3071]](_0xff99[1447],function(_0xf598x2){_0xf598x2[_0xff99[1179]][_0xff99[994]]()&& _0xf598x2[_0xff99[1179]][_0xff99[2491]](mxConstants.STYLE_FONTSTYLE,mxConstants.FONT_BOLD)});this[_0xff99[3071]](_0xff99[1449],function(_0xf598x2){_0xf598x2[_0xff99[1179]][_0xff99[994]]()&& _0xf598x2[_0xff99[1179]][_0xff99[2491]](mxConstants.STYLE_FONTSTYLE,mxConstants.FONT_ITALIC)});this[_0xff99[3071]](_0xff99[355],function(_0xf598x2){_0xf598x2[_0xff99[1179]][_0xff99[994]]()&& _0xf598x2[_0xff99[1179]][_0xff99[2491]](mxConstants.STYLE_FONTSTYLE,mxConstants.FONT_UNDERLINE)});this[_0xff99[3071]](_0xff99[639],function(_0xf598x2){_0xf598x2[_0xff99[1179]][_0xff99[994]]()&& _0xf598x2[_0xff99[1179]][_0xff99[2491]](mxConstants.STYLE_FONTSTYLE,mxConstants.FONT_SHADOW)});this[_0xff99[3071]](_0xff99[3161],function(_0xf598x2){_0xf598x2[_0xff99[1179]][_0xff99[994]]()&& _0xf598x2[_0xff99[1179]][_0xff99[849]](mxConstants.ALIGN_LEFT)});this[_0xff99[3071]](_0xff99[3162],function(_0xf598x2){_0xf598x2[_0xff99[1179]][_0xff99[994]]()&& _0xf598x2[_0xff99[1179]][_0xff99[849]](mxConstants.ALIGN_CENTER)});this[_0xff99[3071]](_0xff99[3163],function(_0xf598x2){_0xf598x2[_0xff99[1179]][_0xff99[994]]()&& _0xf598x2[_0xff99[1179]][_0xff99[849]](mxConstants.ALIGN_RIGHT)});this[_0xff99[3071]](_0xff99[3164],function(_0xf598x2){_0xf598x2[_0xff99[1179]][_0xff99[994]]()&& _0xf598x2[_0xff99[1179]][_0xff99[849]](mxConstants.ALIGN_TOP)});this[_0xff99[3071]](_0xff99[3165],function(_0xf598x2){_0xf598x2[_0xff99[1179]][_0xff99[994]]()&& _0xf598x2[_0xff99[1179]][_0xff99[849]](mxConstants.ALIGN_MIDDLE)});this[_0xff99[3071]](_0xff99[3166],function(_0xf598x2){_0xf598x2[_0xff99[1179]][_0xff99[994]]()&& _0xf598x2[_0xff99[1179]][_0xff99[849]](mxConstants.ALIGN_BOTTOM)});this[_0xff99[3071]](_0xff99[3167],function(_0xf598x2){_0xf598x2[_0xff99[1179]][_0xff99[1717]](mxConstants.STYLE_ALIGN,mxConstants.ALIGN_LEFT)});this[_0xff99[3071]](_0xff99[3168],function(_0xf598x2){_0xf598x2[_0xff99[1179]][_0xff99[994]]()&& _0xf598x2[_0xff99[1179]][_0xff99[1717]](mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER)});this[_0xff99[3071]](_0xff99[3169],function(_0xf598x2){_0xf598x2[_0xff99[1179]][_0xff99[994]]()&& _0xf598x2[_0xff99[1179]][_0xff99[1717]](mxConstants.STYLE_ALIGN,mxConstants.ALIGN_RIGHT)});this[_0xff99[3071]](_0xff99[3170],function(_0xf598x2){_0xf598x2[_0xff99[1179]][_0xff99[994]]()&& _0xf598x2[_0xff99[1179]][_0xff99[1717]](mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_TOP)});this[_0xff99[3071]](_0xff99[3171],function(_0xf598x2){_0xf598x2[_0xff99[1179]][_0xff99[994]]()&& _0xf598x2[_0xff99[1179]][_0xff99[1717]](mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE)});this[_0xff99[3071]](_0xff99[3172],function(_0xf598x2){_0xf598x2[_0xff99[1179]][_0xff99[994]]()&& _0xf598x2[_0xff99[1179]][_0xff99[1717]](mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_BOTTOM)});this[_0xff99[3071]](_0xff99[499],function(_0xf598x2){var _0xf598x3=100* _0xf598x2[_0xff99[1179]][_0xff99[249]]()[_0xff99[255]],_0xf598x3=parseFloat(mxUtils[_0xff99[3173]](mxResources[_0xff99[203]](_0xf598x2[_0xff99[3104]])|| _0xf598x2[_0xff99[3104]],_0xf598x3))/ 100;isNaN(_0xf598x3)|| _0xf598x2[_0xff99[1179]][_0xff99[249]]()[_0xff99[2262]](_0xf598x3)});this[_0xff99[3071]](_0xff99[3174],function(_0xf598x2){null!= _0xf598x2[_0xff99[3112]]?_0xf598x2[_0xff99[3112]][_0xff99[175]](!_0xf598x2[_0xff99[3112]][_0xff99[174]]()):_0xf598x2[_0xff99[3175]]()});this[_0xff99[3071]](_0xff99[3176],function(_0xf598x2){null!= _0xf598x2[_0xff99[2719]]?_0xf598x2[_0xff99[2719]][_0xff99[175]](!_0xf598x2[_0xff99[2719]][_0xff99[174]]()):_0xf598x2[_0xff99[3177]]()});this[_0xff99[3071]](_0xff99[3178],function(_0xf598x2){null== _0xf598x2[_0xff99[2136]]?_0xf598x2[_0xff99[3179]]():_0xf598x2[_0xff99[2136]][_0xff99[175]](!_0xf598x2[_0xff99[2136]][_0xff99[174]]())});this[_0xff99[3071]](_0xff99[3180],function(_0xf598x2){mxLog[_0xff99[175]](!mxLog[_0xff99[174]]())})};mxEditor[_0xff99[202]][_0xff99[3102]]= function(){var _0xf598x2=mxUtils[_0xff99[885]](this,function(_0xf598x2){this[_0xff99[746]]( new mxEventObject(mxEvent.SESSION,_0xff99[812],_0xf598x2))});return this[_0xff99[807]](this[_0xff99[1056]],this[_0xff99[1057]],this[_0xff99[1058]],_0xf598x2)};mxEditor[_0xff99[202]][_0xff99[3099]]= function(_0xf598x2){null!= _0xf598x2&& (( new mxCodec(_0xf598x2[_0xff99[295]]))[_0xff99[1093]](_0xf598x2,this),this[_0xff99[3181]]())};mxEditor[_0xff99[202]][_0xff99[3182]]= function(){document[_0xff99[3183]]= _0xff99[3184]};mxEditor[_0xff99[202]][_0xff99[3181]]= function(){this[_0xff99[1184]]= ( new Date)[_0xff99[178]]();this[_0xff99[3095]][_0xff99[200]]();this[_0xff99[1183]]= 0;this[_0xff99[2128]](!1)};mxEditor[_0xff99[202]][_0xff99[3071]]= function(_0xf598x2,_0xf598x3){this[_0xff99[3091]][_0xf598x2]= _0xf598x3};mxEditor[_0xff99[202]][_0xff99[350]]= function(_0xf598x2,_0xf598x3,_0xf598x4){var _0xf598x5=this[_0xff99[3091]][_0xf598x2];if(null!= _0xf598x5){try{var _0xf598x9=arguments;_0xf598x9[0]= this;_0xf598x5[_0xff99[183]](this,_0xf598x9)}catch(f){throw mxUtils[_0xff99[267]](_0xff99[3185]+ _0xf598x2+ _0xff99[3186]+ f[_0xff99[281]],280,!0),f}}else {mxUtils[_0xff99[267]](_0xff99[3187]+ _0xf598x2,280,!0)}};mxEditor[_0xff99[202]][_0xff99[3188]]= function(_0xf598x2,_0xf598x3){this[_0xff99[3118]][_0xf598x2]= _0xf598x3};mxEditor[_0xff99[202]][_0xff99[3189]]= function(_0xf598x2){return this[_0xff99[3118]][_0xf598x2]};mxEditor[_0xff99[202]][_0xff99[3096]]= function(){var _0xf598x2= new mxGraph(null,null,this[_0xff99[2720]]);_0xf598x2[_0xff99[2673]](!0);_0xf598x2[_0xff99[2674]](!0);this[_0xff99[3190]](_0xf598x2);this[_0xff99[3191]](_0xf598x2);this[_0xff99[3192]](_0xf598x2);this[_0xff99[3193]](_0xf598x2);this[_0xff99[3194]](_0xf598x2);_0xf598x2[_0xff99[2316]][_0xff99[1033]]= mxUtils[_0xff99[885]](this,function(_0xf598x2,_0xf598x4,_0xf598x5){return this[_0xff99[3195]](_0xf598x2,_0xf598x4,_0xf598x5)});_0xf598x2[_0xff99[2433]][_0xff99[1033]]= mxUtils[_0xff99[885]](this,function(_0xf598x2,_0xf598x4){return this[_0xff99[2503]](_0xf598x2,_0xf598x4)});this[_0xff99[3196]](_0xf598x2);this[_0xff99[3197]](_0xf598x2);return _0xf598x2};mxEditor[_0xff99[202]][_0xff99[3196]]= function(_0xf598x2){_0xf598x2= new mxSwimlaneManager(_0xf598x2,!1);_0xf598x2[_0xff99[1737]]= mxUtils[_0xff99[885]](this,function(){return this[_0xff99[3089]]});_0xf598x2[_0xff99[994]]= mxUtils[_0xff99[885]](this,function(){return this[_0xff99[3128]]});return _0xf598x2};mxEditor[_0xff99[202]][_0xff99[3197]]= function(_0xf598x2){var _0xf598x3= new mxLayoutManager(_0xf598x2),_0xf598x4=this;_0xf598x3[_0xff99[2754]]= function(_0xf598x3){var _0xf598x9=null,_0xf598xa=_0xf598x4[_0xff99[1179]][_0xff99[502]]();if(null!= _0xf598xa[_0xff99[1197]](_0xf598x3)){if(_0xf598x4[_0xff99[3129]]&& _0xf598x2[_0xff99[1730]](_0xf598x3)){null== _0xf598x4[_0xff99[3198]]&& (_0xf598x4[_0xff99[3198]]= _0xf598x4[_0xff99[3199]]()),_0xf598x9= _0xf598x4[_0xff99[3198]]}else {if(_0xf598x4[_0xff99[3126]]&& (_0xf598x2[_0xff99[2553]](_0xf598x3)|| null== _0xf598xa[_0xff99[1197]](_0xf598xa[_0xff99[1197]](_0xf598x3)))){null== _0xf598x4[_0xff99[3200]]&& (_0xf598x4[_0xff99[3200]]= _0xf598x4[_0xff99[3201]]()),_0xf598x9= _0xf598x4[_0xff99[3200]]}}};return _0xf598x9};return _0xf598x3};mxEditor[_0xff99[202]][_0xff99[3202]]= function(_0xf598x2){null== this[_0xff99[1179]][_0xff99[526]]&& (this[_0xff99[1179]][_0xff99[176]](_0xf598x2),this[_0xff99[3203]]= new mxRubberband(this[_0xff99[1179]]),this[_0xff99[1157]]&& mxEvent[_0xff99[1157]](_0xf598x2),mxClient[_0xff99[496]]&& new mxDivResizer(_0xf598x2))};mxEditor[_0xff99[202]][_0xff99[3190]]= function(_0xf598x2){_0xf598x2[_0xff99[169]](mxEvent.DOUBLE_CLICK,mxUtils[_0xff99[885]](this,function(_0xf598x3,_0xf598x4){var _0xf598x5=_0xf598x4[_0xff99[720]](_0xff99[246]);null!= _0xf598x5&& (_0xf598x2[_0xff99[994]]()&& null!= this[_0xff99[3115]])&& (this[_0xff99[350]](this[_0xff99[3115]],_0xf598x5),_0xf598x4[_0xff99[722]]())}))};mxEditor[_0xff99[202]][_0xff99[3191]]= function(_0xf598x2){var _0xf598x3=mxUtils[_0xff99[885]](this,function(_0xf598x2,_0xf598x3){var _0xf598x9=_0xf598x3[_0xff99[720]](_0xff99[1061]);this[_0xff99[3095]][_0xff99[1114]](_0xf598x9)});_0xf598x2[_0xff99[502]]()[_0xff99[169]](mxEvent.UNDO,_0xf598x3);_0xf598x2[_0xff99[249]]()[_0xff99[169]](mxEvent.UNDO,_0xf598x3);_0xf598x3= function(_0xf598x3,_0xf598x5){var _0xf598x9=_0xf598x5[_0xff99[720]](_0xff99[1061])[_0xff99[1065]];_0xf598x2[_0xff99[904]](_0xf598x2[_0xff99[2436]](_0xf598x9))};this[_0xff99[3095]][_0xff99[169]](mxEvent.UNDO,_0xf598x3);this[_0xff99[3095]][_0xff99[169]](mxEvent.REDO,_0xf598x3)};mxEditor[_0xff99[202]][_0xff99[3192]]= function(_0xf598x2){var _0xf598x3=mxUtils[_0xff99[885]](this,function(_0xf598x2){this[_0xff99[746]]( new mxEventObject(mxEvent.ROOT))});_0xf598x2[_0xff99[249]]()[_0xff99[169]](mxEvent.DOWN,_0xf598x3);_0xf598x2[_0xff99[249]]()[_0xff99[169]](mxEvent.UP,_0xf598x3)};mxEditor[_0xff99[202]][_0xff99[3193]]= function(_0xf598x2){var _0xf598x3=mxUtils[_0xff99[885]](this,function(_0xf598x3,_0xf598x5){this[_0xff99[2128]](!0);!0== this[_0xff99[3140]] && _0xf598x2[_0xff99[2585]]();for(var _0xf598x9=_0xf598x5[_0xff99[720]](_0xff99[1061])[_0xff99[1065]],_0xf598xa=0;_0xf598xa< _0xf598x9[_0xff99[67]];_0xf598xa++){var _0xf598x12=_0xf598x9[_0xf598xa];if(_0xf598x12 instanceof mxRootChange|| _0xf598x12 instanceof mxValueChange&& _0xf598x12[_0xff99[246]]== this[_0xff99[1179]][_0xff99[251]][_0xff99[813]]|| _0xf598x12 instanceof mxCellAttributeChange&& _0xf598x12[_0xff99[246]]== this[_0xff99[1179]][_0xff99[251]][_0xff99[813]]){this[_0xff99[746]]( new mxEventObject(mxEvent.ROOT));break}}});_0xf598x2[_0xff99[502]]()[_0xff99[169]](mxEvent.CHANGE,_0xf598x3)};mxEditor[_0xff99[202]][_0xff99[3194]]= function(_0xf598x2){var _0xf598x3=this;_0xf598x2[_0xff99[1133]]({mouseDown:function(_0xf598x2,_0xf598x5){if(null!= _0xf598x3[_0xff99[3083]]&& !_0xf598x5[_0xff99[737]]()&& (_0xf598x3[_0xff99[3117]]|| null== _0xf598x5[_0xff99[248]]())){_0xf598x3[_0xff99[1179]][_0xff99[2440]](),_0xf598x3[_0xff99[3083]](_0xf598x5[_0xff99[727]](),_0xf598x5[_0xff99[736]]()),this[_0xff99[1142]]= !0,_0xf598x5[_0xff99[722]]()}},mouseMove:function(_0xf598x2,_0xf598x3){this[_0xff99[1142]]&& _0xf598x3[_0xff99[722]]()},mouseUp:function(_0xf598x2,_0xf598x3){this[_0xff99[1142]]&& (this[_0xff99[1142]]= !1,_0xf598x3[_0xff99[722]]())}})};mxEditor[_0xff99[202]][_0xff99[3201]]= function(){var _0xf598x2=this[_0xff99[1179]][_0xff99[1020]],_0xf598x3= new mxStackLayout(this[_0xff99[1179]],!this[_0xff99[3089]],this[_0xff99[3127]],2* _0xf598x2,2* _0xf598x2);_0xf598x3[_0xff99[1713]]= function(_0xf598x2){return !_0xf598x3[_0xff99[1179]][_0xff99[1730]](_0xf598x2)};return _0xf598x3};mxEditor[_0xff99[202]][_0xff99[3199]]= function(){return new mxCompactTreeLayout(this[_0xff99[1179]],this[_0xff99[3089]])};mxEditor[_0xff99[202]][_0xff99[3097]]= function(){return new mxDefaultToolbar(null,this)};mxEditor[_0xff99[202]][_0xff99[3204]]= function(_0xf598x2){this[_0xff99[3082]][_0xff99[176]](_0xf598x2);mxClient[_0xff99[496]]&& new mxDivResizer(_0xf598x2)};mxEditor[_0xff99[202]][_0xff99[3205]]= function(_0xf598x2){null== this[_0xff99[879]]&& (this[_0xff99[879]]= _0xf598x2,this[_0xff99[169]](mxEvent.SAVE,mxUtils[_0xff99[885]](this,function(){var _0xf598x2=( new Date)[_0xff99[3206]]();this[_0xff99[3207]]((mxResources[_0xff99[203]](this[_0xff99[3106]])|| this[_0xff99[3106]])+ _0xff99[3186]+ _0xf598x2)})),this[_0xff99[169]](mxEvent.OPEN,mxUtils[_0xff99[885]](this,function(){this[_0xff99[3207]]((mxResources[_0xff99[203]](this[_0xff99[3108]])|| this[_0xff99[3108]])+ _0xff99[3186]+ this[_0xff99[3122]])})),mxClient[_0xff99[496]]&& new mxDivResizer(_0xf598x2))};mxEditor[_0xff99[202]][_0xff99[3207]]= function(_0xf598x2){null!= this[_0xff99[879]]&& null!= _0xf598x2&& (this[_0xff99[879]][_0xff99[339]]= _0xf598x2)};mxEditor[_0xff99[202]][_0xff99[3208]]= function(_0xf598x2){this[_0xff99[169]](mxEvent.ROOT,mxUtils[_0xff99[885]](this,function(_0xf598x3){_0xf598x2[_0xff99[339]]= this[_0xff99[3209]]()}));mxClient[_0xff99[496]]&& new mxDivResizer(_0xf598x2)};mxEditor[_0xff99[202]][_0xff99[3210]]= function(_0xf598x2,_0xf598x3){null!= _0xf598x2&& ( new mxCompactTreeLayout(this[_0xff99[1179]],_0xf598x3))[_0xff99[350]](_0xf598x2)};mxEditor[_0xff99[202]][_0xff99[3209]]= function(){for(var _0xf598x2=_0xff99[110],_0xf598x3=this[_0xff99[1179]],_0xf598x4=_0xf598x3[_0xff99[2534]]();null!= _0xf598x4&& null!= _0xf598x3[_0xff99[502]]()[_0xff99[1197]](_0xf598x3[_0xff99[502]]()[_0xff99[1197]](_0xf598x4));){_0xf598x3[_0xff99[2553]](_0xf598x4)&& (_0xf598x2= _0xff99[3211]+ _0xf598x3[_0xff99[2454]](_0xf598x4)+ _0xf598x2),_0xf598x4= _0xf598x3[_0xff99[502]]()[_0xff99[1197]](_0xf598x4)};return this[_0xff99[3212]]()+ _0xf598x2};mxEditor[_0xff99[202]][_0xff99[3212]]= function(){var _0xf598x2=this[_0xff99[1179]][_0xff99[502]]()[_0xff99[501]]();return this[_0xff99[1179]][_0xff99[2454]](_0xf598x2)};mxEditor[_0xff99[202]][_0xff99[824]]= function(){this[_0xff99[3095]][_0xff99[824]]()};mxEditor[_0xff99[202]][_0xff99[825]]= function(){this[_0xff99[3095]][_0xff99[825]]()};mxEditor[_0xff99[202]][_0xff99[844]]= function(){var _0xf598x2=null!= this[_0xff99[3121]]?this[_0xff99[3121]]:this[_0xff99[1179]][_0xff99[1020]];return this[_0xff99[1179]][_0xff99[844]](this[_0xff99[3213]](),_0xf598x2)};mxEditor[_0xff99[202]][_0xff99[3213]]= function(){return this[_0xff99[1179]][_0xff99[502]]()[_0xff99[1978]](this[_0xff99[3120]])};mxEditor[_0xff99[202]][_0xff99[392]]= function(_0xf598x2){if(null!= _0xf598x2){var _0xf598x3=mxUtils[_0xff99[219]](_0xf598x2)[_0xff99[875]]();this[_0xff99[3214]](_0xf598x3[_0xff99[158]]);this[_0xff99[3122]]= _0xf598x2;this[_0xff99[746]]( new mxEventObject(mxEvent.OPEN,_0xff99[3122],_0xf598x2))}};mxEditor[_0xff99[202]][_0xff99[3214]]= function(_0xf598x2){( new mxCodec(_0xf598x2[_0xff99[295]]))[_0xff99[1093]](_0xf598x2,this[_0xff99[1179]][_0xff99[502]]());this[_0xff99[3181]]()};mxEditor[_0xff99[202]][_0xff99[815]]= function(_0xf598x2,_0xf598x3){_0xf598x2= _0xf598x2|| this[_0xff99[3215]]();if(null!= _0xf598x2&& 0< _0xf598x2[_0xff99[67]]){var _0xf598x4=this[_0xff99[3216]](_0xf598x3);this[_0xff99[3217]](_0xf598x2,_0xf598x4);this[_0xff99[2128]](!1)};this[_0xff99[746]]( new mxEventObject(mxEvent.SAVE,_0xff99[863],_0xf598x2))};mxEditor[_0xff99[202]][_0xff99[3217]]= function(_0xf598x2,_0xf598x3){this[_0xff99[1070]]&& (_0xf598x3= encodeURIComponent(_0xf598x3));mxUtils[_0xff99[814]](_0xf598x2,this[_0xff99[3123]]+ _0xff99[226]+ _0xf598x3,mxUtils[_0xff99[885]](this,function(_0xf598x4){this[_0xff99[746]]( new mxEventObject(mxEvent.POST,_0xff99[870],_0xf598x4,_0xff99[863],_0xf598x2,_0xff99[410],_0xf598x3))}))};mxEditor[_0xff99[202]][_0xff99[3216]]= function(_0xf598x2){_0xf598x2= null!= _0xf598x2?_0xf598x2:this[_0xff99[1069]];var _0xf598x3=( new mxCodec)[_0xff99[514]](this[_0xff99[1179]][_0xff99[502]]());return mxUtils[_0xff99[875]](_0xf598x3,_0xf598x2)};mxEditor[_0xff99[202]][_0xff99[3215]]= function(){return this[_0xff99[3124]]};mxEditor[_0xff99[202]][_0xff99[3142]]= function(){return this[_0xff99[3125]]};mxEditor[_0xff99[202]][_0xff99[807]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){var _0xf598x9=null;mxClient[_0xff99[3101]]|| (_0xf598x9= new mxSession(this[_0xff99[1179]][_0xff99[502]](),_0xf598x2,_0xf598x3,_0xf598x4),_0xf598x9[_0xff99[169]](mxEvent.RECEIVE,mxUtils[_0xff99[885]](this,function(_0xf598x2,_0xf598x3){null!= _0xf598x3[_0xff99[720]](_0xff99[252])[_0xff99[284]](_0xff99[1088])&& this[_0xff99[3181]]()})),_0xf598x9[_0xff99[169]](mxEvent.DISCONNECT,_0xf598x5),_0xf598x9[_0xff99[169]](mxEvent.CONNECT,_0xf598x5),_0xf598x9[_0xff99[169]](mxEvent.NOTIFY,_0xf598x5),_0xf598x9[_0xff99[169]](mxEvent.GET,_0xf598x5),_0xf598x9[_0xff99[861]]());return _0xf598x9};mxEditor[_0xff99[202]][_0xff99[3218]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=this[_0xff99[1179]][_0xff99[2434]]()[_0xff99[2054]][_0xf598x3];this[_0xff99[1179]][_0xff99[249]]()[_0xff99[2434]]()[_0xff99[2074]](_0xf598x3,this[_0xff99[1179]][_0xff99[2434]]()[_0xff99[2054]][_0xf598x2]);this[_0xff99[1179]][_0xff99[2434]]()[_0xff99[2074]](_0xf598x2,_0xf598x4);this[_0xff99[1179]][_0xff99[802]]()};mxEditor[_0xff99[202]][_0xff99[3150]]= function(_0xf598x2){_0xf598x2= _0xf598x2|| this[_0xff99[1179]][_0xff99[2452]]();null== _0xf598x2&& (_0xf598x2= this[_0xff99[1179]][_0xff99[2534]](),null== _0xf598x2&& (_0xf598x2= this[_0xff99[1179]][_0xff99[502]]()[_0xff99[501]]()));if(null!= _0xf598x2){this[_0xff99[1179]][_0xff99[2126]](!0);var _0xf598x3=mxUtils[_0xff99[445]](this[_0xff99[1179]][_0xff99[526]]),_0xf598x4=_0xf598x3[_0xff99[235]]+ 10,_0xf598x3=_0xf598x3[_0xff99[236]];if(null!= this[_0xff99[716]]&& !this[_0xff99[3139]]){_0xf598x4= this[_0xff99[716]][_0xff99[730]](),_0xf598x3= this[_0xff99[716]][_0xff99[732]]()}else {var _0xf598x5=this[_0xff99[1179]][_0xff99[2555]](_0xf598x2);null!= _0xf598x5&& (_0xf598x4+= _0xf598x5[_0xff99[235]]+ Math[_0xff99[243]](200,_0xf598x5[_0xff99[117]]),_0xf598x3+= _0xf598x5[_0xff99[236]])};this[_0xff99[3062]]();_0xf598x2= this[_0xff99[3219]](_0xf598x2);null!= _0xf598x2&& (this[_0xff99[716]]= new mxWindow(mxResources[_0xff99[203]](this[_0xff99[3110]])|| this[_0xff99[3110]],_0xf598x2,_0xf598x4,_0xf598x3,this[_0xff99[3137]],this[_0xff99[3138]],!1),this[_0xff99[716]][_0xff99[175]](!0))}};mxEditor[_0xff99[202]][_0xff99[3220]]= function(){return null!= this[_0xff99[716]]};mxEditor[_0xff99[202]][_0xff99[3219]]= function(_0xf598x2){var _0xf598x3=this[_0xff99[1179]][_0xff99[502]](),_0xf598x4=_0xf598x3[_0xff99[433]](_0xf598x2);if(mxUtils[_0xff99[1331]](_0xf598x4)){var _0xf598x5= new mxForm(_0xff99[716]);_0xf598x5[_0xff99[961]](_0xff99[3222],_0xf598x2[_0xff99[1103]]())[_0xff99[57]](_0xff99[3221],_0xff99[128]);var _0xf598x9=null,_0xf598xa=null,_0xf598x12=null,_0xf598x13=null,_0xf598x14=null;_0xf598x3[_0xff99[1193]](_0xf598x2)&& (_0xf598x9= _0xf598x3[_0xff99[1721]](_0xf598x2),null!= _0xf598x9&& (_0xf598xa= _0xf598x5[_0xff99[961]](_0xff99[125],_0xf598x9[_0xff99[236]]),_0xf598x12= _0xf598x5[_0xff99[961]](_0xff99[361],_0xf598x9[_0xff99[235]]),_0xf598x13= _0xf598x5[_0xff99[961]](_0xff99[117],_0xf598x9[_0xff99[117]]),_0xf598x14= _0xf598x5[_0xff99[961]](_0xff99[119],_0xf598x9[_0xff99[119]])));for(var _0xf598x15=_0xf598x3[_0xff99[474]](_0xf598x2),_0xf598x16=_0xf598x5[_0xff99[961]](_0xff99[3223],_0xf598x15|| _0xff99[110]),_0xf598x17=_0xf598x4[_0xff99[320]],_0xf598x18=[],_0xf598x4=0;_0xf598x4< _0xf598x17[_0xff99[67]];_0xf598x4++){_0xf598x18[_0xf598x4]= _0xf598x5[_0xff99[968]](_0xf598x17[_0xf598x4][_0xff99[301]],_0xf598x17[_0xf598x4][_0xff99[318]],_0xff99[685]== _0xf598x17[_0xf598x4][_0xff99[301]]?4:2)};_0xf598x4= mxUtils[_0xff99[885]](this,function(){this[_0xff99[3062]]();_0xf598x3[_0xff99[473]]();try{null!= _0xf598x9&& (_0xf598x9= _0xf598x9[_0xff99[238]](),_0xf598x9[_0xff99[235]]= parseFloat(_0xf598x12[_0xff99[131]]),_0xf598x9[_0xff99[236]]= parseFloat(_0xf598xa[_0xff99[131]]),_0xf598x9[_0xff99[117]]= parseFloat(_0xf598x13[_0xff99[131]]),_0xf598x9[_0xff99[119]]= parseFloat(_0xf598x14[_0xff99[131]]),_0xf598x3[_0xff99[1724]](_0xf598x2,_0xf598x9));0< _0xf598x16[_0xff99[131]][_0xff99[67]]?_0xf598x3[_0xff99[475]](_0xf598x2,_0xf598x16[_0xff99[131]]):_0xf598x3[_0xff99[475]](_0xf598x2,null);for(var _0xf598x4=0;_0xf598x4< _0xf598x17[_0xff99[67]];_0xf598x4++){var _0xf598x5= new mxCellAttributeChange(_0xf598x2,_0xf598x17[_0xf598x4][_0xff99[301]],_0xf598x18[_0xf598x4][_0xff99[131]]);_0xf598x3[_0xff99[350]](_0xf598x5)};this[_0xff99[1179]][_0xff99[2455]](_0xf598x2)&& this[_0xff99[1179]][_0xff99[858]](_0xf598x2)}finally{_0xf598x3[_0xff99[476]]()}});_0xf598x15= mxUtils[_0xff99[885]](this,function(){this[_0xff99[3062]]()});_0xf598x5[_0xff99[956]](_0xf598x4,_0xf598x15);return _0xf598x5[_0xff99[116]]};return null};mxEditor[_0xff99[202]][_0xff99[3062]]= function(){null!= this[_0xff99[716]]&& (this[_0xff99[716]][_0xff99[515]](),this[_0xff99[716]]= null)};mxEditor[_0xff99[202]][_0xff99[3175]]= function(){if(null== this[_0xff99[3112]]){var _0xf598x2=document[_0xff99[55]](_0xff99[485]);_0xf598x2[_0xff99[124]][_0xff99[549]]= _0xff99[952];_0xf598x2[_0xff99[124]][_0xff99[357]]= _0xff99[550];var _0xf598x3=document[_0xff99[112]][_0xff99[159]],_0xf598x3= new mxWindow(mxResources[_0xff99[203]](this[_0xff99[3111]])|| this[_0xff99[3111]],_0xf598x2,_0xf598x3- 220,this[_0xff99[3132]],200);_0xf598x3[_0xff99[164]](!0);_0xf598x3[_0xff99[165]]= !1;var _0xf598x4=mxUtils[_0xff99[885]](this,function(_0xf598x3){mxEvent[_0xff99[762]](_0xf598x2);_0xf598x2[_0xff99[339]]= _0xff99[110];this[_0xff99[3224]](_0xf598x2)});this[_0xff99[1179]][_0xff99[502]]()[_0xff99[169]](mxEvent.CHANGE,_0xf598x4);this[_0xff99[1179]][_0xff99[2435]]()[_0xff99[169]](mxEvent.CHANGE,_0xf598x4);this[_0xff99[1179]][_0xff99[169]](mxEvent.ROOT,_0xf598x4);null!= this[_0xff99[3131]]&& _0xf598x3[_0xff99[951]](this[_0xff99[3131]]);this[_0xff99[3112]]= _0xf598x3;this[_0xff99[3224]](_0xf598x2)};this[_0xff99[3112]][_0xff99[175]](!0)};mxEditor[_0xff99[202]][_0xff99[3225]]= function(_0xf598x2){null!= this[_0xff99[3112]]&& (_0xf598x2= this[_0xff99[3112]][_0xff99[905]],mxEvent[_0xff99[762]](_0xf598x2),_0xf598x2[_0xff99[339]]= _0xff99[110],this[_0xff99[3224]](_0xf598x2))};mxEditor[_0xff99[202]][_0xff99[3224]]= function(_0xf598x2){};mxEditor[_0xff99[202]][_0xff99[3177]]= function(_0xf598x2){if(null== this[_0xff99[2719]]){var _0xf598x3=document[_0xff99[55]](_0xff99[389]);_0xf598x3[_0xff99[57]](_0xff99[390],mxResources[_0xff99[203]](_0xff99[3134])|| this[_0xff99[3134]]);_0xf598x3[_0xff99[57]](_0xff99[119],_0xff99[118]);_0xf598x3[_0xff99[57]](_0xff99[117],_0xff99[118]);_0xf598x3[_0xff99[57]](_0xff99[3226],_0xff99[468]);_0xf598x3[_0xff99[124]][_0xff99[1028]]= _0xff99[1391];_0xf598x2= document[_0xff99[112]][_0xff99[159]];var _0xf598x4=document[_0xff99[112]][_0xff99[157]]|| document[_0xff99[158]][_0xff99[157]],_0xf598x5= new mxWindow(mxResources[_0xff99[203]](this[_0xff99[3113]])|| this[_0xff99[3113]],_0xf598x3,(_0xf598x2- this[_0xff99[3135]])/ 2,(_0xf598x4- this[_0xff99[3136]])/ 3,this[_0xff99[3135]],this[_0xff99[3136]]);_0xf598x5[_0xff99[161]](!0);_0xf598x5[_0xff99[164]](!0);_0xf598x5[_0xff99[165]]= !1;_0xf598x5[_0xff99[163]](!0);null!= this[_0xff99[3133]]&& _0xf598x5[_0xff99[951]](this[_0xff99[3133]]);mxClient[_0xff99[133]]&& (_0xf598x2= function(_0xf598x2){_0xf598x3[_0xff99[57]](_0xff99[119],_0xf598x5[_0xff99[485]][_0xff99[167]]- 26+ _0xff99[168])},_0xf598x5[_0xff99[169]](mxEvent.RESIZE_END,_0xf598x2),_0xf598x5[_0xff99[169]](mxEvent.MAXIMIZE,_0xf598x2),_0xf598x5[_0xff99[169]](mxEvent.NORMALIZE,_0xf598x2),_0xf598x5[_0xff99[169]](mxEvent.SHOW,_0xf598x2));this[_0xff99[2719]]= _0xf598x5};this[_0xff99[2719]][_0xff99[175]](!0)};mxEditor[_0xff99[202]][_0xff99[3179]]= function(){if(null== this[_0xff99[2136]]){var _0xf598x2=document[_0xff99[55]](_0xff99[485]);_0xf598x2[_0xff99[124]][_0xff99[277]]= _0xff99[188];_0xf598x2[_0xff99[124]][_0xff99[117]]= _0xff99[118];_0xf598x2[_0xff99[124]][_0xff99[119]]= _0xff99[118];_0xf598x2[_0xff99[124]][_0xff99[1537]]= _0xff99[1391];_0xf598x2[_0xff99[124]][_0xff99[270]]= _0xff99[582];var _0xf598x3= new mxWindow(mxResources[_0xff99[203]](this[_0xff99[3114]])|| this[_0xff99[3114]],_0xf598x2,600,480,200,200,!1),_0xf598x4= new mxOutline(this[_0xff99[1179]],_0xf598x2);_0xf598x3[_0xff99[164]](!0);_0xf598x3[_0xff99[163]](!0);_0xf598x3[_0xff99[165]]= !1;_0xf598x3[_0xff99[169]](mxEvent.RESIZE_END,function(){_0xf598x4[_0xff99[2729]]()});this[_0xff99[2136]]= _0xf598x3;this[_0xff99[2136]][_0xff99[2136]]= _0xf598x4};this[_0xff99[2136]][_0xff99[175]](!0);this[_0xff99[2136]][_0xff99[2136]][_0xff99[2729]](!0)};mxEditor[_0xff99[202]][_0xff99[3086]]= function(_0xf598x2){_0xff99[804]== _0xf598x2?(this[_0xff99[1179]][_0xff99[2316]][_0xff99[2840]]= !1,this[_0xff99[1179]][_0xff99[1995]](!1)):_0xff99[807]== _0xf598x2?(this[_0xff99[1179]][_0xff99[2316]][_0xff99[2840]]= !1,this[_0xff99[1179]][_0xff99[1995]](!0)):_0xff99[796]== _0xf598x2&& (this[_0xff99[1179]][_0xff99[2316]][_0xff99[2840]]= !0,this[_0xff99[1179]][_0xff99[1995]](!1))};mxEditor[_0xff99[202]][_0xff99[3195]]= function(_0xf598x2,_0xf598x3,_0xf598x4){this[_0xff99[3094]][_0xff99[3065]](this,_0xf598x2,_0xf598x3,_0xf598x4)};mxEditor[_0xff99[202]][_0xff99[2503]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=null;if(null!= this[_0xff99[2075]]){_0xf598x4= this[_0xff99[1179]][_0xff99[502]]()[_0xff99[1978]](this[_0xff99[2075]])}else {_0xf598x4= new mxCell(_0xff99[110]);_0xf598x4[_0xff99[1994]](!0);var _0xf598x5= new mxGeometry;_0xf598x5[_0xff99[1500]]= !0;_0xf598x4[_0xff99[1724]](_0xf598x5)};_0xf598x5= this[_0xff99[2291]]();null!= _0xf598x5&& _0xf598x4[_0xff99[475]](_0xf598x5);return _0xf598x4};mxEditor[_0xff99[202]][_0xff99[2291]]= function(){return this[_0xff99[3119]]};mxEditor[_0xff99[202]][_0xff99[3227]]= function(_0xf598x2){return null!= this[_0xff99[3093]]&& 0< this[_0xff99[3093]][_0xff99[67]]&& this[_0xff99[1179]][_0xff99[1730]](_0xf598x2)?this[_0xff99[3093]][this[_0xff99[3130]]++ % this[_0xff99[3093]][_0xff99[67]]]:null};mxEditor[_0xff99[202]][_0xff99[3228]]= function(_0xf598x2){if(null!= this[_0xff99[3100]]){var _0xf598x3=this[_0xff99[3227]](_0xf598x2);null!= _0xf598x3&& _0xf598x2[_0xff99[475]](_0xf598x2[_0xff99[474]]()+ _0xff99[471]+ this[_0xff99[3100]]+ _0xff99[226]+ _0xf598x3)}};mxEditor[_0xff99[202]][_0xff99[817]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){for(var _0xf598x9=this[_0xff99[1179]][_0xff99[502]]();null!= _0xf598x2&& !this[_0xff99[1179]][_0xff99[2685]](_0xf598x2);){_0xf598x2= _0xf598x9[_0xff99[1197]](_0xf598x2)};_0xf598x2= null!= _0xf598x2?_0xf598x2:this[_0xff99[1179]][_0xff99[2461]](_0xf598x4,_0xf598x5);var _0xf598xa=this[_0xff99[1179]][_0xff99[249]]()[_0xff99[255]],_0xf598x12=_0xf598x9[_0xff99[1721]](_0xf598x3),_0xf598x13=_0xf598x9[_0xff99[1721]](_0xf598x2);if(this[_0xff99[1179]][_0xff99[1730]](_0xf598x3)&& !this[_0xff99[1179]][_0xff99[2412]]){_0xf598x2= null}else {if(null== _0xf598x2&& this[_0xff99[3116]]){return null};if(null!= _0xf598x2&& null!= _0xf598x13){var _0xf598x14=this[_0xff99[1179]][_0xff99[249]]()[_0xff99[248]](_0xf598x2);if(null!= _0xf598x14){if(_0xf598x4-= _0xf598x14[_0xff99[2078]][_0xff99[235]]* _0xf598xa,_0xf598x5-= _0xf598x14[_0xff99[2078]][_0xff99[236]]* _0xf598xa,this[_0xff99[1179]][_0xff99[3229]]){var _0xf598x13=_0xf598x12[_0xff99[117]],_0xf598x15=_0xf598x12[_0xff99[119]],_0xf598x16=_0xf598x14[_0xff99[235]]+ _0xf598x14[_0xff99[117]];_0xf598x4+ _0xf598x13> _0xf598x16&& (_0xf598x4-= _0xf598x4+ _0xf598x13- _0xf598x16);_0xf598x16= _0xf598x14[_0xff99[236]]+ _0xf598x14[_0xff99[119]];_0xf598x5+ _0xf598x15> _0xf598x16&& (_0xf598x5-= _0xf598x5+ _0xf598x15- _0xf598x16)}}else {null!= _0xf598x13&& (_0xf598x4-= _0xf598x13[_0xff99[235]]* _0xf598xa,_0xf598x5-= _0xf598x13[_0xff99[236]]* _0xf598xa)}}};_0xf598x12= _0xf598x12[_0xff99[238]]();_0xf598x12[_0xff99[235]]= this[_0xff99[1179]][_0xff99[1021]](_0xf598x4/ _0xf598xa- this[_0xff99[1179]][_0xff99[249]]()[_0xff99[513]][_0xff99[235]]- this[_0xff99[1179]][_0xff99[1020]]/ 2);_0xf598x12[_0xff99[236]]= this[_0xff99[1179]][_0xff99[1021]](_0xf598x5/ _0xf598xa- this[_0xff99[1179]][_0xff99[249]]()[_0xff99[513]][_0xff99[236]]- this[_0xff99[1179]][_0xff99[1020]]/ 2);_0xf598x3[_0xff99[1724]](_0xf598x12);null== _0xf598x2&& (_0xf598x2= this[_0xff99[1179]][_0xff99[902]]());this[_0xff99[3228]](_0xf598x3);this[_0xff99[746]]( new mxEventObject(mxEvent.BEFORE_ADD_VERTEX,_0xff99[1988],_0xf598x3,_0xff99[1101],_0xf598x2));_0xf598x9[_0xff99[473]]();try{_0xf598x3= this[_0xff99[1179]][_0xff99[2103]](_0xf598x3,_0xf598x2),null!= _0xf598x3&& (this[_0xff99[1179]][_0xff99[2509]](_0xf598x3),this[_0xff99[746]]( new mxEventObject(mxEvent.ADD_VERTEX,_0xff99[1988],_0xf598x3)))}finally{_0xf598x9[_0xff99[476]]()};null!= _0xf598x3&& (this[_0xff99[1179]][_0xff99[2450]](_0xf598x3),this[_0xff99[1179]][_0xff99[2564]](_0xf598x3),this[_0xff99[746]]( new mxEventObject(mxEvent.AFTER_ADD_VERTEX,_0xff99[1988],_0xf598x3)));return _0xf598x3};mxEditor[_0xff99[202]][_0xff99[515]]= function(){this[_0xff99[2717]]|| (this[_0xff99[2717]]= !0,null!= this[_0xff99[3112]]&& this[_0xff99[3112]][_0xff99[515]](),null!= this[_0xff99[2136]]&& this[_0xff99[2136]][_0xff99[515]](),null!= this[_0xff99[716]]&& this[_0xff99[716]][_0xff99[515]](),null!= this[_0xff99[3098]]&& this[_0xff99[3098]][_0xff99[515]](),null!= this[_0xff99[3203]]&& this[_0xff99[3203]][_0xff99[515]](),null!= this[_0xff99[3082]]&& this[_0xff99[3082]][_0xff99[515]](),null!= this[_0xff99[1179]]&& this[_0xff99[1179]][_0xff99[515]](),this[_0xff99[3118]]= this[_0xff99[879]]= null)};var mxCodecRegistry={codecs:[],aliases:[],register:function(_0xf598x2){if(null!= _0xf598x2){var _0xf598x3=_0xf598x2[_0xff99[718]]();mxCodecRegistry[_0xff99[3230]][_0xf598x3]= _0xf598x2;var _0xf598x4=mxUtils[_0xff99[197]](_0xf598x2[_0xff99[3231]][_0xff99[196]]);_0xf598x4!= _0xf598x3&& mxCodecRegistry[_0xff99[3232]](_0xf598x4,_0xf598x3)};return _0xf598x2},addAlias:function(_0xf598x2,_0xf598x3){mxCodecRegistry[_0xff99[3233]][_0xf598x2]= _0xf598x3},getCodec:function(_0xf598x2){var _0xf598x3=null;if(null!= _0xf598x2){var _0xf598x3=mxUtils[_0xff99[197]](_0xf598x2),_0xf598x4=mxCodecRegistry[_0xff99[3233]][_0xf598x3];null!= _0xf598x4&& (_0xf598x3= _0xf598x4);_0xf598x3= mxCodecRegistry[_0xff99[3230]][_0xf598x3];if(null== _0xf598x3){try{_0xf598x3= new mxObjectCodec( new _0xf598x2),mxCodecRegistry[_0xff99[3234]](_0xf598x3)}catch(d){}}};return _0xf598x3}};function mxCodec(_0xf598x2){this[_0xff99[395]]= _0xf598x2|| mxUtils[_0xff99[306]]();this[_0xff99[68]]= []}mxCodec[_0xff99[202]][_0xff99[395]]= null;mxCodec[_0xff99[202]][_0xff99[68]]= null;mxCodec[_0xff99[202]][_0xff99[3235]]= !1;mxCodec[_0xff99[202]][_0xff99[1104]]= function(_0xf598x2,_0xf598x3){return this[_0xff99[68]][_0xf598x2]= _0xf598x3};mxCodec[_0xff99[202]][_0xff99[3236]]= function(_0xf598x2){var _0xf598x3=null;null!= _0xf598x2&& (_0xf598x3= this[_0xff99[68]][_0xf598x2],null== _0xf598x3&& (_0xf598x3= this[_0xff99[1060]](_0xf598x2),null== _0xf598x3&& (_0xf598x2= this[_0xff99[1362]](_0xf598x2),null!= _0xf598x2&& (_0xf598x3= this[_0xff99[1093]](_0xf598x2)))));return _0xf598x3};mxCodec[_0xff99[202]][_0xff99[1060]]= function(_0xf598x2){return null};mxCodec[_0xff99[202]][_0xff99[1362]]= function(_0xf598x2,_0xf598x3){return mxUtils[_0xff99[290]](this[_0xff99[395]][_0xff99[158]],null!= _0xf598x3?_0xf598x3:_0xff99[1363],_0xf598x2)};mxCodec[_0xff99[202]][_0xff99[1103]]= function(_0xf598x2){var _0xf598x3=null;null!= _0xf598x2&& (_0xf598x3= this[_0xff99[3237]](_0xf598x2),null== _0xf598x3&& _0xf598x2 instanceof mxCell&& (_0xf598x3= _0xf598x2[_0xff99[1103]](),null== _0xf598x3&& (_0xf598x3= mxCellPath[_0xff99[385]](_0xf598x2),0== _0xf598x3[_0xff99[67]]&& (_0xf598x3= _0xff99[813]))));return _0xf598x3};mxCodec[_0xff99[202]][_0xff99[3237]]= function(_0xf598x2){return null};mxCodec[_0xff99[202]][_0xff99[514]]= function(_0xf598x2){var _0xf598x3=null;if(null!= _0xf598x2&& null!= _0xf598x2[_0xff99[196]]){var _0xf598x4=mxCodecRegistry[_0xff99[3238]](_0xf598x2[_0xff99[196]]);null!= _0xf598x4?_0xf598x3= _0xf598x4[_0xff99[514]](this,_0xf598x2):mxUtils[_0xff99[1331]](_0xf598x2)?_0xf598x3= mxClient[_0xff99[80]]?_0xf598x2[_0xff99[511]](!0):this[_0xff99[395]][_0xff99[3239]](_0xf598x2,!0):mxLog[_0xff99[283]](_0xff99[3240]+ mxUtils[_0xff99[197]](_0xf598x2[_0xff99[196]]))};return _0xf598x3};mxCodec[_0xff99[202]][_0xff99[1093]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=null;if(null!= _0xf598x2&& _0xf598x2[_0xff99[288]]== mxConstants[_0xff99[289]]){var _0xf598x5=null;try{_0xf598x5= eval(_0xf598x2[_0xff99[301]])}catch(e){};try{var _0xf598xa=mxCodecRegistry[_0xff99[3238]](_0xf598x5);null!= _0xf598xa?_0xf598x4= _0xf598xa[_0xff99[1093]](this,_0xf598x2,_0xf598x3):(_0xf598x4= _0xf598x2[_0xff99[511]](!0),_0xf598x4[_0xff99[1390]](_0xff99[3069]))}catch(g){mxLog[_0xff99[143]](_0xff99[3241]+ _0xf598x2[_0xff99[301]]+ _0xff99[3186]+ g[_0xff99[281]])}};return _0xf598x4};mxCodec[_0xff99[202]][_0xff99[3242]]= function(_0xf598x2,_0xf598x3,_0xf598x4){_0xf598x3[_0xff99[62]](this[_0xff99[514]](_0xf598x2));if(null== _0xf598x4|| _0xf598x4){_0xf598x4= _0xf598x2[_0xff99[262]]();for(var _0xf598x5=0;_0xf598x5< _0xf598x4;_0xf598x5++){this[_0xff99[3242]](_0xf598x2[_0xff99[263]](_0xf598x5),_0xf598x3)}}};mxCodec[_0xff99[202]][_0xff99[3243]]= function(_0xf598x2){return null!= _0xf598x2&& _0xff99[279]== typeof _0xf598x2[_0xff99[3243]]?_0xf598x2[_0xff99[3243]]():!1};mxCodec[_0xff99[202]][_0xff99[3244]]= function(_0xf598x2,_0xf598x3){_0xf598x3= null!= _0xf598x3?_0xf598x3:!0;var _0xf598x4=null;if(null!= _0xf598x2&& _0xf598x2[_0xff99[288]]== mxConstants[_0xff99[289]]){_0xf598x4= mxCodecRegistry[_0xff99[3238]](_0xf598x2[_0xff99[301]]);if(!this[_0xff99[3243]](_0xf598x4)){for(var _0xf598x5=_0xf598x2[_0xff99[285]];null!= _0xf598x5&& !this[_0xff99[3243]](_0xf598x4);){_0xf598x4= mxCodecRegistry[_0xff99[3238]](_0xf598x5[_0xff99[301]]),_0xf598x5= _0xf598x5[_0xff99[287]]}};this[_0xff99[3243]](_0xf598x4)|| (_0xf598x4= mxCodecRegistry[_0xff99[3238]](mxCell));_0xf598x4= _0xf598x4[_0xff99[1093]](this,_0xf598x2);_0xf598x3&& this[_0xff99[3245]](_0xf598x4)};return _0xf598x4};mxCodec[_0xff99[202]][_0xff99[3245]]= function(_0xf598x2){var _0xf598x3=_0xf598x2[_0xff99[1101]],_0xf598x4=_0xf598x2[_0xff99[1709]](!0),_0xf598x5=_0xf598x2[_0xff99[1709]](!1);_0xf598x2[_0xff99[1957]](null,!1);_0xf598x2[_0xff99[1957]](null,!0);_0xf598x2[_0xff99[1101]]= null;null!= _0xf598x3&& _0xf598x3[_0xff99[1937]](_0xf598x2);null!= _0xf598x4&& _0xf598x4[_0xff99[1960]](_0xf598x2,!0);null!= _0xf598x5&& _0xf598x5[_0xff99[1960]](_0xf598x2,!1)};mxCodec[_0xff99[202]][_0xff99[57]]= function(_0xf598x2,_0xf598x3,_0xf598x4){null!= _0xf598x3&& null!= _0xf598x4&& _0xf598x2[_0xff99[57]](_0xf598x3,_0xf598x4)};function mxObjectCodec(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){this[_0xff99[3231]]= _0xf598x2;this[_0xff99[3246]]= null!= _0xf598x3?_0xf598x3:[];this[_0xff99[3247]]= null!= _0xf598x4?_0xf598x4:[];this[_0xff99[3248]]= null!= _0xf598x5?_0xf598x5:[];this[_0xff99[3249]]= {};for(var _0xf598x9 in this[_0xff99[3248]]){this[_0xff99[3249]][this[_0xff99[3248]][_0xf598x9]]= _0xf598x9}}mxObjectCodec[_0xff99[202]][_0xff99[3231]]= null;mxObjectCodec[_0xff99[202]][_0xff99[3246]]= null;mxObjectCodec[_0xff99[202]][_0xff99[3247]]= null;mxObjectCodec[_0xff99[202]][_0xff99[3248]]= null;mxObjectCodec[_0xff99[202]][_0xff99[3249]]= null;mxObjectCodec[_0xff99[202]][_0xff99[718]]= function(){return mxUtils[_0xff99[197]](this[_0xff99[3231]][_0xff99[196]])};mxObjectCodec[_0xff99[202]][_0xff99[3250]]= function(){return new this[_0xff99[3231]][_0xff99[196]]};mxObjectCodec[_0xff99[202]][_0xff99[3251]]= function(_0xf598x2){if(null!= _0xf598x2){var _0xf598x3=this[_0xff99[3249]][_0xf598x2];null!= _0xf598x3&& (_0xf598x2= _0xf598x3)};return _0xf598x2};mxObjectCodec[_0xff99[202]][_0xff99[3252]]= function(_0xf598x2){if(null!= _0xf598x2){var _0xf598x3=this[_0xff99[3248]][_0xf598x2];null!= _0xf598x3&& (_0xf598x2= _0xf598x3)};return _0xf598x2};mxObjectCodec[_0xff99[202]][_0xff99[3253]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){return _0xf598x3== mxObjectIdentity[_0xff99[195]]|| 0<= mxUtils[_0xff99[2]](this[_0xff99[3246]],_0xf598x3)};mxObjectCodec[_0xff99[202]][_0xff99[3254]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){return 0<= mxUtils[_0xff99[2]](this[_0xff99[3247]],_0xf598x3)};mxObjectCodec[_0xff99[202]][_0xff99[514]]= function(_0xf598x2,_0xf598x3){var _0xf598x4=_0xf598x2[_0xff99[395]][_0xff99[55]](this[_0xff99[718]]());_0xf598x3= this[_0xff99[3255]](_0xf598x2,_0xf598x3,_0xf598x4);this[_0xff99[3256]](_0xf598x2,_0xf598x3,_0xf598x4);return this[_0xff99[3257]](_0xf598x2,_0xf598x3,_0xf598x4)};mxObjectCodec[_0xff99[202]][_0xff99[3256]]= function(_0xf598x2,_0xf598x3,_0xf598x4){_0xf598x2[_0xff99[57]](_0xf598x4,_0xff99[1363],_0xf598x2[_0xff99[1103]](_0xf598x3));for(var _0xf598x5 in _0xf598x3){var _0xf598x9=_0xf598x5,_0xf598xa=_0xf598x3[_0xf598x9];null!= _0xf598xa&& !this[_0xff99[3253]](_0xf598x3,_0xf598x9,_0xf598xa,!0)&& (mxUtils[_0xff99[1946]](_0xf598x9)&& (_0xf598x9= null),this[_0xff99[3258]](_0xf598x2,_0xf598x3,_0xf598x9,_0xf598xa,_0xf598x4))}};mxObjectCodec[_0xff99[202]][_0xff99[3258]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){if(null!= _0xf598x5){if(this[_0xff99[3254]](_0xf598x3,_0xf598x4,_0xf598x5,!0)){var _0xf598xa=_0xf598x2[_0xff99[1103]](_0xf598x5);if(null== _0xf598xa){mxLog[_0xff99[283]](_0xff99[3259]+ this[_0xff99[718]]()+ _0xff99[87]+ _0xf598x4+ _0xff99[226]+ _0xf598x5);return};_0xf598x5= _0xf598xa};_0xf598xa= this[_0xff99[3231]][_0xf598x4];if(null== _0xf598x4|| _0xf598x2[_0xff99[3235]]|| _0xf598xa!= _0xf598x5){_0xf598x4= this[_0xff99[3252]](_0xf598x4),this[_0xff99[3260]](_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9)}}};mxObjectCodec[_0xff99[202]][_0xff99[3260]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){_0xff99[194]!= typeof _0xf598x5?this[_0xff99[3261]](_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9):this[_0xff99[3262]](_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9)};mxObjectCodec[_0xff99[202]][_0xff99[3261]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){_0xf598x5= this[_0xff99[3263]](_0xf598x5);null== _0xf598x4?(_0xf598x3= _0xf598x2[_0xff99[395]][_0xff99[55]](_0xff99[99]),_0xff99[279]== typeof _0xf598x5?_0xf598x3[_0xff99[62]](_0xf598x2[_0xff99[395]][_0xff99[344]](_0xf598x5)):_0xf598x2[_0xff99[57]](_0xf598x3,_0xff99[131],_0xf598x5),_0xf598x9[_0xff99[62]](_0xf598x3)):_0xff99[279]!= typeof _0xf598x5&& _0xf598x2[_0xff99[57]](_0xf598x9,_0xf598x4,_0xf598x5)};mxObjectCodec[_0xff99[202]][_0xff99[3262]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5,_0xf598x9){_0xf598x2= _0xf598x2[_0xff99[514]](_0xf598x5);null!= _0xf598x2?(null!= _0xf598x4&& _0xf598x2[_0xff99[57]](_0xff99[3069],_0xf598x4),_0xf598x9[_0xff99[62]](_0xf598x2)):mxLog[_0xff99[283]](_0xff99[3264]+ this[_0xff99[718]]()+ _0xff99[87]+ _0xf598x4+ _0xff99[3186]+ _0xf598x5)};mxObjectCodec[_0xff99[202]][_0xff99[3263]]= function(_0xf598x2){if(_0xff99[82]== typeof _0xf598x2[_0xff99[67]]&& (!0== _0xf598x2 || !1== _0xf598x2)){_0xf598x2= !0== _0xf598x2?_0xff99[500]:_0xff99[468]};return _0xf598x2};mxObjectCodec[_0xff99[202]][_0xff99[3265]]= function(_0xf598x2){mxUtils[_0xff99[1946]](_0xf598x2)&& (_0xf598x2= parseFloat(_0xf598x2));return _0xf598x2};mxObjectCodec[_0xff99[202]][_0xff99[3255]]= function(_0xf598x2,_0xf598x3,_0xf598x4){return _0xf598x3};mxObjectCodec[_0xff99[202]][_0xff99[3257]]= function(_0xf598x2,_0xf598x3,_0xf598x4){return _0xf598x4};mxObjectCodec[_0xff99[202]][_0xff99[1093]]= function(_0xf598x2,_0xf598x3,_0xf598x4){var _0xf598x5=_0xf598x3[_0xff99[284]](_0xff99[1363]),_0xf598x9=_0xf598x2[_0xff99[68]][_0xf598x5];null== _0xf598x9&& (_0xf598x9= _0xf598x4|| this[_0xff99[3250]](),null!= _0xf598x5&& _0xf598x2[_0xff99[1104]](_0xf598x5,_0xf598x9));_0xf598x3= this[_0xff99[3266]](_0xf598x2,_0xf598x3,_0xf598x9);this[_0xff99[3267]](_0xf598x2,_0xf598x3,_0xf598x9);return this[_0xff99[3268]](_0xf598x2,_0xf598x3,_0xf598x9)};mxObjectCodec[_0xff99[202]][_0xff99[3267]]= function(_0xf598x2,_0xf598x3,_0xf598x4){null!= _0xf598x3&& (this[_0xff99[3269]](_0xf598x2,_0xf598x3,_0xf598x4),this[_0xff99[3270]](_0xf598x2,_0xf598x3,_0xf598x4))};mxObjectCodec[_0xff99[202]][_0xff99[3269]]= function(_0xf598x2,_0xf598x3,_0xf598x4){_0xf598x3= _0xf598x3[_0xff99[320]];if(null!= _0xf598x3){for(var _0xf598x5=0;_0xf598x5< _0xf598x3[_0xff99[67]];_0xf598x5++){this[_0xff99[3271]](_0xf598x2,_0xf598x3[_0xf598x5],_0xf598x4)}}};mxObjectCodec[_0xff99[202]][_0xff99[3271]]= function(_0xf598x2,_0xf598x3,_0xf598x4){var _0xf598x5=_0xf598x3[_0xff99[301]];if(_0xff99[3069]!= _0xf598x5&& _0xff99[1363]!= _0xf598x5){_0xf598x3= this[_0xff99[3265]](_0xf598x3[_0xff99[318]]);var _0xf598x9=this[_0xff99[3251]](_0xf598x5);if(this[_0xff99[3254]](_0xf598x4,_0xf598x9,_0xf598x3,!1)){_0xf598x2= _0xf598x2[_0xff99[3236]](_0xf598x3);if(null== _0xf598x2){mxLog[_0xff99[283]](_0xff99[3272]+ this[_0xff99[718]]()+ _0xff99[87]+ _0xf598x5+ _0xff99[226]+ _0xf598x3);return};_0xf598x3= _0xf598x2};this[_0xff99[3253]](_0xf598x4,_0xf598x5,_0xf598x3,!1)|| (_0xf598x4[_0xf598x5]= _0xf598x3)}};mxObjectCodec[_0xff99[202]][_0xff99[3270]]= function(_0xf598x2,_0xf598x3,_0xf598x4){for(_0xf598x3= _0xf598x3[_0xff99[285]];null!= _0xf598x3;){var _0xf598x5=_0xf598x3[_0xff99[287]];_0xf598x3[_0xff99[288]]== mxConstants[_0xff99[289]]&& !this[_0xff99[3273]](_0xf598x2,_0xf598x3,_0xf598x4)&& this[_0xff99[3274]](_0xf598x2,_0xf598x3,_0xf598x4);_0xf598x3= _0xf598x5}};mxObjectCodec[_0xff99[202]][_0xff99[3274]]= function(_0xf598x2,_0xf598x3,_0xf598x4){var _0xf598x5=this[_0xff99[3251]](_0xf598x3[_0xff99[284]](_0xff99[3069]));if(null== _0xf598x5|| !this[_0xff99[3253]](_0xf598x4,_0xf598x5,_0xf598x3,!1)){var _0xf598x9=this[_0xff99[3275]](_0xf598x4,_0xf598x5,_0xf598x3),_0xf598xa=null;_0xff99[99]== _0xf598x3[_0xff99[301]]?(_0xf598xa= _0xf598x3[_0xff99[284]](_0xff99[131]),null== _0xf598xa&& (_0xf598xa= mxUtils[_0xff99[1545]](mxUtils[_0xff99[329]](_0xf598x3)))):_0xf598xa= _0xf598x2[_0xff99[1093]](_0xf598x3,_0xf598x9);this[_0xff99[3276]](_0xf598x4,_0xf598x5,_0xf598xa,_0xf598x9)}};mxObjectCodec[_0xff99[202]][_0xff99[3275]]= function(_0xf598x2,_0xf598x3,_0xf598x4){_0xf598x2= _0xf598x2[_0xf598x3];_0xf598x2 instanceof Array&& 0< _0xf598x2[_0xff99[67]]&& (_0xf598x2= null);return _0xf598x2};mxObjectCodec[_0xff99[202]][_0xff99[3276]]= function(_0xf598x2,_0xf598x3,_0xf598x4,_0xf598x5){null!= _0xf598x4&& _0xf598x4!= _0xf598x5&& (null!= _0xf598x3&& 0< _0xf598x3[_0xff99[67]]?_0xf598x2[_0xf598x3]= _0xf598x4:_0xf598x2[_0xff99[207]](_0xf598x4))};mxObjectCodec[_0xff99[202]][_0xff99[3273]]= function(_0xf598x2,_0xf598x3,_0xf598x4){if(_0xff99[3277]== _0xf598x3[_0xff99[301]]){_0xf598x3= _0xf598x3[_0xff99[284]](_0xff99[298]);if(null!= _0xf598x3){try{var _0xf598x5=mxUtils[_0xff99[219]](_0xf598x3)[_0xff99[874]]();null!= _0xf598x5&& _0xf598x2[_0xff99[1093]](_0xf598x5,_0xf598x4)}catch(e){}};return !0};return !1};mxObjectCodec[_0xff99[202]][_0xff99[3266]]= function(_0xf598x2,_0xf598x3,_0xf598x4){return _0xf598x3};mxObjectCodec[_0xff99[202]][_0xff99[3268]]= function(_0xf598x2,_0xf598x3,_0xf598x4){return _0xf598x4};mxCodecRegistry[_0xff99[3234]](function(){var _0xf598x2= new mxObjectCodec( new mxCell,[_0xff99[1954],_0xff99[1842],_0xff99[1211],_0xff99[1991]],[_0xff99[1101],_0xff99[1097],_0xff99[772]]);_0xf598x2[_0xff99[3243]]= function(){return !0};_0xf598x2[_0xff99[3253]]= function(_0xf598x2,_0xf598x4,_0xf598x5,_0xf598x9){return mxObjectCodec[_0xff99[202]][_0xff99[3253]][_0xff99[183]](this,arguments)|| _0xf598x9&& _0xff99[131]== _0xf598x4&& _0xf598x5[_0xff99[288]]== mxConstants[_0xff99[289]]};_0xf598x2[_0xff99[3257]]= function(_0xf598x2,_0xf598x4,_0xf598x5){if(null!= _0xf598x4[_0xff99[131]]&& _0xf598x4[_0xff99[131]][_0xff99[288]]== mxConstants[_0xff99[289]]){var _0xf598x9=_0xf598x5;_0xf598x5= mxClient[_0xff99[80]]?_0xf598x4[_0xff99[131]][_0xff99[511]](!0):_0xf598x2[_0xff99[395]][_0xff99[3239]](_0xf598x4[_0xff99[131]],!0);_0xf598x5[_0xff99[62]](_0xf598x9);_0xf598x2= _0xf598x9[_0xff99[284]](_0xff99[1363]);_0xf598x5[_0xff99[57]](_0xff99[1363],_0xf598x2);_0xf598x9[_0xff99[1390]](_0xff99[1363])};return _0xf598x5};_0xf598x2[_0xff99[3266]]= function(_0xf598x2,_0xf598x4,_0xf598x5){var _0xf598x9=_0xf598x4,_0xf598xa=this[_0xff99[718]]();_0xf598x4[_0xff99[301]]!= _0xf598xa?(_0xf598x9= _0xf598x4[_0xff99[64]](_0xf598xa)[0],null!= _0xf598x9&& _0xf598x9[_0xff99[265]]== _0xf598x4?(mxUtils[_0xff99[3278]](_0xf598x9,!0),mxUtils[_0xff99[3278]](_0xf598x9,!1),_0xf598x9[_0xff99[265]][_0xff99[266]](_0xf598x9)):_0xf598x9= null,_0xf598x5[_0xff99[131]]= _0xf598x4[_0xff99[511]](!0),_0xf598x4= _0xf598x5[_0xff99[131]][_0xff99[284]](_0xff99[1363]),null!= _0xf598x4&& (_0xf598x5[_0xff99[1945]](_0xf598x4),_0xf598x5[_0xff99[131]][_0xff99[1390]](_0xff99[1363]))):_0xf598x5[_0xff99[1945]](_0xf598x4[_0xff99[284]](_0xff99[1363]));if(null!= _0xf598x9){for(_0xf598x4= 0;_0xf598x4< this[_0xff99[3247]][_0xff99[67]];_0xf598x4++){var _0xf598xa=this[_0xff99[3247]][_0xf598x4],_0xf598x12=_0xf598x9[_0xff99[284]](_0xf598xa);if(null!= _0xf598x12){_0xf598x9[_0xff99[1390]](_0xf598xa);var _0xf598x13=_0xf598x2[_0xff99[68]][_0xf598x12]|| _0xf598x2[_0xff99[1060]](_0xf598x12);null== _0xf598x13&& (_0xf598x12= _0xf598x2[_0xff99[1362]](_0xf598x12),null!= _0xf598x12&& (_0xf598x13= (mxCodecRegistry[_0xff99[3230]][_0xf598x12[_0xff99[301]]]|| this)[_0xff99[1093]](_0xf598x2,_0xf598x12)));_0xf598x5[_0xf598xa]= _0xf598x13}}};return _0xf598x9};return _0xf598x2}());mxCodecRegistry[_0xff99[3234]](function(){var _0xf598x2= new mxObjectCodec( new mxGraphModel);_0xf598x2[_0xff99[3256]]= function(_0xf598x2,_0xf598x4,_0xf598x5){var _0xf598x9=_0xf598x2[_0xff99[395]][_0xff99[55]](_0xff99[813]);_0xf598x2[_0xff99[3242]](_0xf598x4[_0xff99[501]](),_0xf598x9);_0xf598x5[_0xff99[62]](_0xf598x9)};_0xf598x2[_0xff99[3274]]= function(_0xf598x2,_0xf598x4,_0xf598x5){_0xff99[813]== _0xf598x4[_0xff99[301]]?this[_0xff99[3279]](_0xf598x2,_0xf598x4,_0xf598x5):mxObjectCodec[_0xff99[202]][_0xff99[3274]][_0xff99[183]](this,arguments)};_0xf598x2[_0xff99[3279]]= function(_0xf598x2,_0xf598x4,_0xf598x5){var _0xf598x9=null;for(_0xf598x4= _0xf598x4[_0xff99[285]];null!= _0xf598x4;){var _0xf598xa=_0xf598x2[_0xff99[3244]](_0xf598x4);null!= _0xf598xa&& null== _0xf598xa[_0xff99[1197]]()&& (_0xf598x9= _0xf598xa);_0xf598x4= _0xf598x4[_0xff99[287]]};null!= _0xf598x9&& _0xf598x5[_0xff99[1927]](_0xf598x9)};return _0xf598x2}());mxCodecRegistry[_0xff99[3234]](function(){var _0xf598x2= new mxObjectCodec( new mxRootChange,[_0xff99[251],_0xff99[257],_0xff99[813]]);_0xf598x2[_0xff99[3257]]= function(_0xf598x2,_0xf598x4,_0xf598x5){_0xf598x2[_0xff99[3242]](_0xf598x4[_0xff99[813]],_0xf598x5);return _0xf598x5};_0xf598x2[_0xff99[3266]]= function(_0xf598x2,_0xf598x4,_0xf598x5){if(null!= _0xf598x4[_0xff99[285]]&& _0xf598x4[_0xff99[285]][_0xff99[288]]== mxConstants[_0xff99[289]]){_0xf598x4= _0xf598x4[_0xff99[511]](!0);var _0xf598x9=_0xf598x4[_0xff99[285]];_0xf598x5[_0xff99[813]]= _0xf598x2[_0xff99[3244]](_0xf598x9,!1);_0xf598x5= _0xf598x9[_0xff99[287]];_0xf598x9[_0xff99[265]][_0xff99[266]](_0xf598x9);for(_0xf598x9= _0xf598x5;null!= _0xf598x9;){_0xf598x5= _0xf598x9[_0xff99[287]],_0xf598x2[_0xff99[3244]](_0xf598x9),_0xf598x9[_0xff99[265]][_0xff99[266]](_0xf598x9),_0xf598x9= _0xf598x5}};return _0xf598x4};_0xf598x2[_0xff99[3268]]= function(_0xf598x2,_0xf598x4,_0xf598x5){_0xf598x5[_0xff99[257]]= _0xf598x5[_0xff99[813]];return _0xf598x5};return _0xf598x2}());mxCodecRegistry[_0xff99[3234]](function(){var _0xf598x2= new mxObjectCodec( new mxChildChange,[_0xff99[251],_0xff99[247],_0xff99[1982]],[_0xff99[1101],_0xff99[257]]);_0xf598x2[_0xff99[3254]]= function(_0xf598x2,_0xf598x4,_0xf598x5,_0xf598x9){return _0xff99[247]== _0xf598x4&& (null!= _0xf598x2[_0xff99[257]]|| !_0xf598x9)?!0:0<= mxUtils[_0xff99[2]](this[_0xff99[3247]],_0xf598x4)};_0xf598x2[_0xff99[3257]]= function(_0xf598x2,_0xf598x4,_0xf598x5){this[_0xff99[3254]](_0xf598x4,_0xff99[247],_0xf598x4[_0xff99[247]],!0)?_0xf598x5[_0xff99[57]](_0xff99[247],_0xf598x2[_0xff99[1103]](_0xf598x4[_0xff99[247]])):_0xf598x2[_0xff99[3242]](_0xf598x4[_0xff99[247]],_0xf598x5);return _0xf598x5};_0xf598x2[_0xff99[3266]]= function(_0xf598x2,_0xf598x4,_0xf598x5){if(null!= _0xf598x4[_0xff99[285]]&& _0xf598x4[_0xff99[285]][_0xff99[288]]== mxConstants[_0xff99[289]]){_0xf598x4= _0xf598x4[_0xff99[511]](!0);var _0xf598x9=_0xf598x4[_0xff99[285]];_0xf598x5[_0xff99[247]]= _0xf598x2[_0xff99[3244]](_0xf598x9,!1);_0xf598x5= _0xf598x9[_0xff99[287]];_0xf598x9[_0xff99[265]][_0xff99[266]](_0xf598x9);for(_0xf598x9= _0xf598x5;null!= _0xf598x9;){_0xf598x5= _0xf598x9[_0xff99[287]];if(_0xf598x9[_0xff99[288]]== mxConstants[_0xff99[289]]){var _0xf598xa=_0xf598x9[_0xff99[284]](_0xff99[1363]);null== _0xf598x2[_0xff99[1060]](_0xf598xa)&& _0xf598x2[_0xff99[3244]](_0xf598x9)};_0xf598x9[_0xff99[265]][_0xff99[266]](_0xf598x9);_0xf598x9= _0xf598x5}}else {_0xf598x9= _0xf598x4[_0xff99[284]](_0xff99[247]),_0xf598x5[_0xff99[247]]= _0xf598x2[_0xff99[3236]](_0xf598x9)};return _0xf598x4};_0xf598x2[_0xff99[3268]]= function(_0xf598x2,_0xf598x4,_0xf598x5){_0xf598x5[_0xff99[247]][_0xff99[1101]]= _0xf598x5[_0xff99[257]];_0xf598x5[_0xff99[257]]= _0xf598x5[_0xff99[1101]];_0xf598x5[_0xff99[1982]]= _0xf598x5[_0xff99[1983]];return _0xf598x5};return _0xf598x2}());mxCodecRegistry[_0xff99[3234]](function(){var _0xf598x2= new mxObjectCodec( new mxTerminalChange,[_0xff99[251],_0xff99[257]],[_0xff99[246],_0xff99[1984]]);_0xf598x2[_0xff99[3268]]= function(_0xf598x2,_0xf598x4,_0xf598x5){_0xf598x5[_0xff99[257]]= _0xf598x5[_0xff99[1984]];return _0xf598x5};return _0xf598x2}());var mxGenericChangeCodec=function(_0xf598x2,_0xf598x3){var _0xf598x4= new mxObjectCodec(_0xf598x2,[_0xff99[251],_0xff99[257]],[_0xff99[246]]);_0xf598x4[_0xff99[3268]]= function(_0xf598x2,_0xf598x4,_0xf598xa){mxUtils[_0xff99[1331]](_0xf598xa[_0xff99[246]])&& (_0xf598xa[_0xff99[246]]= _0xf598x2[_0xff99[3244]](_0xf598xa[_0xff99[246]],!1));_0xf598xa[_0xff99[257]]= _0xf598xa[_0xf598x3];return _0xf598xa};return _0xf598x4};mxCodecRegistry[_0xff99[3234]](mxGenericChangeCodec( new mxValueChange,_0xff99[131]));mxCodecRegistry[_0xff99[3234]](mxGenericChangeCodec( new mxStyleChange,_0xff99[124]));mxCodecRegistry[_0xff99[3234]](mxGenericChangeCodec( new mxGeometryChange,_0xff99[256]));mxCodecRegistry[_0xff99[3234]](mxGenericChangeCodec( new mxCollapseChange,_0xff99[1985]));mxCodecRegistry[_0xff99[3234]](mxGenericChangeCodec( new mxVisibleChange,_0xff99[189]));mxCodecRegistry[_0xff99[3234]](mxGenericChangeCodec( new mxCellAttributeChange,_0xff99[131]));mxCodecRegistry[_0xff99[3234]](function(){return new mxObjectCodec( new mxGraph,_0xff99[3280][_0xff99[224]](_0xff99[185]))}());mxCodecRegistry[_0xff99[3234]](function(){var _0xf598x2= new mxObjectCodec( new mxGraphView);_0xf598x2[_0xff99[514]]= function(_0xf598x2,_0xf598x4){return this[_0xff99[3242]](_0xf598x2,_0xf598x4,_0xf598x4[_0xff99[1179]][_0xff99[502]]()[_0xff99[501]]())};_0xf598x2[_0xff99[3242]]= function(_0xf598x2,_0xf598x4,_0xf598x5){var _0xf598x9=_0xf598x4[_0xff99[1179]][_0xff99[502]](),_0xf598xa=_0xf598x4[_0xff99[248]](_0xf598x5),_0xf598x12=_0xf598x9[_0xff99[1197]](_0xf598x5);if(null== _0xf598x12|| null!= _0xf598xa){var _0xf598x13=_0xf598x9[_0xff99[262]](_0xf598x5),_0xf598x14=_0xf598x4[_0xff99[1179]][_0xff99[1198]](_0xf598x5),_0xf598x15=null;_0xf598x12== _0xf598x9[_0xff99[501]]()?_0xf598x15= _0xff99[3281]:null== _0xf598x12?_0xf598x15= _0xff99[1179]:_0xf598x9[_0xff99[250]](_0xf598x5)?_0xf598x15= _0xff99[1989]:0< _0xf598x13&& null!= _0xf598x14?_0xf598x15= _0xff99[1504]:_0xf598x9[_0xff99[1193]](_0xf598x5)&& (_0xf598x15= _0xff99[1988]);if(null!= _0xf598x15){var _0xf598x16=_0xf598x2[_0xff99[395]][_0xff99[55]](_0xf598x15);null!= _0xf598x4[_0xff99[1179]][_0xff99[2183]](_0xf598x5)&& (_0xf598x16[_0xff99[57]](_0xff99[685],_0xf598x4[_0xff99[1179]][_0xff99[2183]](_0xf598x5)),_0xf598x4[_0xff99[1179]][_0xff99[2186]](_0xf598x5)&& _0xf598x16[_0xff99[57]](_0xff99[1428],!0));if(null== _0xf598x12){var _0xf598x17=_0xf598x4[_0xff99[517]]();null!= _0xf598x17&& (_0xf598x16[_0xff99[57]](_0xff99[235],Math[_0xff99[488]](_0xf598x17[_0xff99[235]])),_0xf598x16[_0xff99[57]](_0xff99[236],Math[_0xff99[488]](_0xf598x17[_0xff99[236]])),_0xf598x16[_0xff99[57]](_0xff99[117],Math[_0xff99[488]](_0xf598x17[_0xff99[117]])),_0xf598x16[_0xff99[57]](_0xff99[119],Math[_0xff99[488]](_0xf598x17[_0xff99[119]])));_0xf598x16[_0xff99[57]](_0xff99[255],_0xf598x4[_0xff99[255]])}else {if(null!= _0xf598xa&& null!= _0xf598x14){for(_0xf598x17 in _0xf598xa[_0xff99[124]]){_0xf598x12= _0xf598xa[_0xff99[124]][_0xf598x17],_0xff99[279]== typeof _0xf598x12&& _0xff99[194]== typeof _0xf598x12&& (_0xf598x12= mxStyleRegistry[_0xff99[718]](_0xf598x12)),null!= _0xf598x12&& (_0xff99[279]!= typeof _0xf598x12&& _0xff99[194]!= typeof _0xf598x12)&& _0xf598x16[_0xff99[57]](_0xf598x17,_0xf598x12)};_0xf598x12= _0xf598xa[_0xff99[439]];if(null!= _0xf598x12&& 0< _0xf598x12[_0xff99[67]]){_0xf598x14= Math[_0xff99[488]](_0xf598x12[0][_0xff99[235]])+ _0xff99[537]+ Math[_0xff99[488]](_0xf598x12[0][_0xff99[236]]);for(_0xf598x17= 1;_0xf598x17< _0xf598x12[_0xff99[67]];_0xf598x17++){_0xf598x14+= _0xff99[185]+ Math[_0xff99[488]](_0xf598x12[_0xf598x17][_0xff99[235]])+ _0xff99[537]+ Math[_0xff99[488]](_0xf598x12[_0xf598x17][_0xff99[236]])};_0xf598x16[_0xff99[57]](_0xff99[1525],_0xf598x14)}else {_0xf598x16[_0xff99[57]](_0xff99[235],Math[_0xff99[488]](_0xf598xa[_0xff99[235]])),_0xf598x16[_0xff99[57]](_0xff99[236],Math[_0xff99[488]](_0xf598xa[_0xff99[236]])),_0xf598x16[_0xff99[57]](_0xff99[117],Math[_0xff99[488]](_0xf598xa[_0xff99[117]])),_0xf598x16[_0xff99[57]](_0xff99[119],Math[_0xff99[488]](_0xf598xa[_0xff99[119]]))};_0xf598x17= _0xf598xa[_0xff99[2079]];null!= _0xf598x17&& (0!= _0xf598x17[_0xff99[235]]&& _0xf598x16[_0xff99[57]](_0xff99[1126],Math[_0xff99[488]](_0xf598x17[_0xff99[235]])),0!= _0xf598x17[_0xff99[236]]&& _0xf598x16[_0xff99[57]](_0xff99[1125],Math[_0xff99[488]](_0xf598x17[_0xff99[236]])))}};for(_0xf598x17= 0;_0xf598x17< _0xf598x13;_0xf598x17++){_0xf598xa= this[_0xff99[3242]](_0xf598x2,_0xf598x4,_0xf598x9[_0xff99[263]](_0xf598x5,_0xf598x17)),null!= _0xf598xa&& _0xf598x16[_0xff99[62]](_0xf598xa)}}};return _0xf598x16};return _0xf598x2}());mxCodecRegistry[_0xff99[3234]](function(){var _0xf598x2= new mxObjectCodec( new mxStylesheet);_0xf598x2[_0xff99[514]]= function(_0xf598x2,_0xf598x4){var _0xf598x5=_0xf598x2[_0xff99[395]][_0xff99[55]](this[_0xff99[718]]()),_0xf598x9;for(_0xf598x9 in _0xf598x4[_0xff99[2054]]){var _0xf598xa=_0xf598x4[_0xff99[2054]][_0xf598x9],_0xf598x12=_0xf598x2[_0xff99[395]][_0xff99[55]](_0xff99[99]);if(null!= _0xf598x9){_0xf598x12[_0xff99[57]](_0xff99[3069],_0xf598x9);for(var _0xf598x13 in _0xf598xa){var _0xf598x14=this[_0xff99[3282]](_0xf598x13,_0xf598xa[_0xf598x13]);if(null!= _0xf598x14){var _0xf598x15=_0xf598x2[_0xff99[395]][_0xff99[55]](_0xff99[99]);_0xf598x15[_0xff99[57]](_0xff99[131],_0xf598x14);_0xf598x15[_0xff99[57]](_0xff99[3069],_0xf598x13);_0xf598x12[_0xff99[62]](_0xf598x15)}};0< _0xf598x12[_0xff99[271]][_0xff99[67]]&& _0xf598x5[_0xff99[62]](_0xf598x12)}};return _0xf598x5};_0xf598x2[_0xff99[3282]]= function(_0xf598x2,_0xf598x4){var _0xf598x5= typeof _0xf598x4;_0xff99[279]== _0xf598x5?_0xf598x4= mxStyleRegistry[_0xff99[718]](style[j]):_0xff99[194]== _0xf598x5&& (_0xf598x4= null);return _0xf598x4};_0xf598x2[_0xff99[1093]]= function(_0xf598x2,_0xf598x4,_0xf598x5){_0xf598x5= _0xf598x5|| new this[_0xff99[3231]][_0xff99[196]];var _0xf598x9=_0xf598x4[_0xff99[284]](_0xff99[1363]);null!= _0xf598x9&& (_0xf598x2[_0xff99[68]][_0xf598x9]= _0xf598x5);for(_0xf598x4= _0xf598x4[_0xff99[285]];null!= _0xf598x4;){if(!this[_0xff99[3273]](_0xf598x2,_0xf598x4,_0xf598x5)&& _0xff99[99]== _0xf598x4[_0xff99[301]] && (_0xf598x9= _0xf598x4[_0xff99[284]](_0xff99[3069]),null!= _0xf598x9)){var _0xf598xa=_0xf598x4[_0xff99[284]](_0xff99[1284]),_0xf598x12=null!= _0xf598xa?mxUtils[_0xff99[238]](_0xf598x5[_0xff99[2054]][_0xf598xa]):null;null== _0xf598x12&& (null!= _0xf598xa&& mxLog[_0xff99[283]](_0xff99[3283]+ _0xf598xa+ _0xff99[3284]),_0xf598x12= {});for(_0xf598xa= _0xf598x4[_0xff99[285]];null!= _0xf598xa;){if(_0xf598xa[_0xff99[288]]== mxConstants[_0xff99[289]]){var _0xf598x13=_0xf598xa[_0xff99[284]](_0xff99[3069]);if(_0xff99[99]== _0xf598xa[_0xff99[301]]){var _0xf598x14=mxUtils[_0xff99[329]](_0xf598xa),_0xf598x15=null;null!= _0xf598x14&& 0< _0xf598x14[_0xff99[67]]?_0xf598x15= mxUtils[_0xff99[1545]](_0xf598x14):(_0xf598x15= _0xf598xa[_0xff99[284]](_0xff99[131]),mxUtils[_0xff99[1946]](_0xf598x15)&& (_0xf598x15= parseFloat(_0xf598x15)));null!= _0xf598x15&& (_0xf598x12[_0xf598x13]= _0xf598x15)}else {_0xff99[205]== _0xf598xa[_0xff99[301]]&& delete _0xf598x12[_0xf598x13]}};_0xf598xa= _0xf598xa[_0xff99[287]]};_0xf598x5[_0xff99[2074]](_0xf598x9,_0xf598x12)};_0xf598x4= _0xf598x4[_0xff99[287]]};return _0xf598x5};return _0xf598x2}());mxCodecRegistry[_0xff99[3234]](function(){var _0xf598x2= new mxObjectCodec( new mxDefaultKeyHandler);_0xf598x2[_0xff99[514]]= function(_0xf598x2,_0xf598x4){return null};_0xf598x2[_0xff99[1093]]= function(_0xf598x2,_0xf598x4,_0xf598x5){if(null!= _0xf598x5){for(_0xf598x4= _0xf598x4[_0xff99[285]];null!= _0xf598x4;){if(!this[_0xff99[3273]](_0xf598x2,_0xf598x4,_0xf598x5)&& _0xff99[99]== _0xf598x4[_0xff99[301]]){var _0xf598x9=_0xf598x4[_0xff99[284]](_0xff99[3069]),_0xf598xa=_0xf598x4[_0xff99[284]](_0xff99[892]),_0xf598x12=_0xf598x4[_0xff99[284]](_0xff99[2207]);_0xf598x5[_0xff99[3063]](_0xf598x9,_0xf598xa,_0xf598x12)};_0xf598x4= _0xf598x4[_0xff99[287]]}};return _0xf598x5};return _0xf598x2}());mxCodecRegistry[_0xff99[3234]](function(){var _0xf598x2= new mxObjectCodec( new mxDefaultToolbar);_0xf598x2[_0xff99[514]]= function(_0xf598x2,_0xf598x4){return null};_0xf598x2[_0xff99[1093]]= function(_0xf598x2,_0xf598x4,_0xf598x5){if(null!= _0xf598x5){var _0xf598x9=_0xf598x5[_0xff99[3061]];for(_0xf598x4= _0xf598x4[_0xff99[285]];null!= _0xf598x4;){if(_0xf598x4[_0xff99[288]]== mxConstants[_0xff99[289]]&& !this[_0xff99[3273]](_0xf598x2,_0xf598x4,_0xf598x5)){if(_0xff99[3072]== _0xf598x4[_0xff99[301]]){_0xf598x5[_0xff99[1051]]()}else {if(_0xff99[345]== _0xf598x4[_0xff99[301]]){_0xf598x5[_0xff99[3082]][_0xff99[1052]]()}else {if(_0xff99[1054]== _0xf598x4[_0xff99[301]]){_0xf598x5[_0xff99[3082]][_0xff99[1053]]()}else {if(_0xff99[99]== _0xf598x4[_0xff99[301]]){var _0xf598xa=_0xf598x4[_0xff99[284]](_0xff99[3069]),_0xf598xa=mxResources[_0xff99[203]](_0xf598xa)|| _0xf598xa,_0xf598x12=_0xf598x4[_0xff99[284]](_0xff99[2916]),_0xf598x13=_0xf598x4[_0xff99[284]](_0xff99[3285]),_0xf598x14=_0xf598x4[_0xff99[284]](_0xff99[892]),_0xf598x15=_0xf598x4[_0xff99[284]](_0xff99[3286]),_0xf598x16=_0xf598x4[_0xff99[284]](_0xff99[3231]),_0xf598x17=_0xff99[468]!= _0xf598x4[_0xff99[284]](_0xff99[3287]),_0xf598x18=mxUtils[_0xff99[329]](_0xf598x4),_0xf598x19=null;if(null!= _0xf598x14){_0xf598x19= _0xf598x5[_0xff99[1025]](_0xf598xa,_0xf598x12,_0xf598x14,_0xf598x13)}else {if(null!= _0xf598x15){var _0xf598x1a=mxUtils[_0xff99[1545]](_0xf598x18),_0xf598x19=_0xf598x5[_0xff99[1048]](_0xf598xa,_0xf598x12,_0xf598x15,_0xf598x13,_0xf598x1a)}else {if(null!= _0xf598x16|| null!= _0xf598x18&& 0< _0xf598x18[_0xff99[67]]){_0xf598x19= _0xf598x9[_0xff99[3118]][_0xf598x16],_0xf598x16= _0xf598x4[_0xff99[284]](_0xff99[124]),null!= _0xf598x19&& null!= _0xf598x16&& (_0xf598x19= _0xf598x19[_0xff99[238]](),_0xf598x19[_0xff99[475]](_0xf598x16)),_0xf598x16= null,null!= _0xf598x18&& 0< _0xf598x18[_0xff99[67]]&& (_0xf598x16= mxUtils[_0xff99[1545]](_0xf598x18)),_0xf598x19= _0xf598x5[_0xff99[3087]](_0xf598xa,_0xf598x12,_0xf598x19,_0xf598x13,_0xf598x16,_0xf598x17)}else {if(_0xf598x13= mxUtils[_0xff99[1540]](_0xf598x4),0< _0xf598x13[_0xff99[67]]){if(null== _0xf598x12){_0xf598x16= _0xf598x5[_0xff99[1038]](_0xf598xa);for(_0xf598xa= 0;_0xf598xa< _0xf598x13[_0xff99[67]];_0xf598xa++){_0xf598x17= _0xf598x13[_0xf598xa],_0xff99[3072]== _0xf598x17[_0xff99[301]]?_0xf598x5[_0xff99[972]](_0xf598x16,_0xff99[3288]):_0xff99[99]== _0xf598x17[_0xff99[301]]&& (_0xf598x12= _0xf598x17[_0xff99[284]](_0xff99[3069]),_0xf598x17= _0xf598x17[_0xff99[284]](_0xff99[892]),_0xf598x5[_0xff99[3085]](_0xf598x16,_0xf598x12,_0xf598x17))}}else {var _0xf598x1b=null,_0xf598x1c=_0xf598x5[_0xff99[3087]](_0xf598xa,_0xf598x12,function(){var _0xf598x2=_0xf598x9[_0xff99[3118]][_0xf598x1b[_0xff99[131]]];if(null!= _0xf598x2){var _0xf598x2=_0xf598x2[_0xff99[238]](),_0xf598x3=_0xf598x1b[_0xff99[1040]][_0xf598x1b[_0xff99[1039]]][_0xff99[3289]];null!= _0xf598x3&& _0xf598x2[_0xff99[475]](_0xf598x3);return _0xf598x2};mxLog[_0xff99[283]](_0xff99[3290]+ _0xf598x2+ _0xff99[3291]);return null},null,null,_0xf598x17),_0xf598x1b=_0xf598x5[_0xff99[970]]();mxEvent[_0xff99[169]](_0xf598x1b,_0xff99[826],function(){_0xf598x5[_0xff99[3082]][_0xff99[1047]](_0xf598x1c,function(_0xf598x2){_0xf598x2= mxUtils[_0xff99[2196]](_0xf598x9[_0xff99[1179]][_0xff99[526]],mxEvent[_0xff99[731]](_0xf598x2),mxEvent[_0xff99[733]](_0xf598x2));return _0xf598x9[_0xff99[817]](null,_0xf598x1a(),_0xf598x2[_0xff99[235]],_0xf598x2[_0xff99[236]])});_0xf598x5[_0xff99[3082]][_0xff99[1023]]= !1});for(_0xf598xa= 0;_0xf598xa< _0xf598x13[_0xff99[67]];_0xf598xa++){_0xf598x17= _0xf598x13[_0xf598xa],_0xff99[3072]== _0xf598x17[_0xff99[301]]?_0xf598x5[_0xff99[972]](_0xf598x1b,_0xff99[3288]):_0xff99[99]== _0xf598x17[_0xff99[301]]&& (_0xf598x12= _0xf598x17[_0xff99[284]](_0xff99[3069]),_0xf598x18= _0xf598x17[_0xff99[284]](_0xff99[3231]),_0xf598x5[_0xff99[972]](_0xf598x1b,_0xf598x12,_0xf598x18|| _0xf598x16)[_0xff99[3289]]= _0xf598x17[_0xff99[284]](_0xff99[124]))}}}}}};null!= _0xf598x19&& (_0xf598x16= _0xf598x4[_0xff99[284]](_0xff99[1363]),null!= _0xf598x16&& 0< _0xf598x16[_0xff99[67]]&& _0xf598x19[_0xff99[57]](_0xff99[1363],_0xf598x16))}}}}};_0xf598x4= _0xf598x4[_0xff99[287]]}};return _0xf598x5};return _0xf598x2}());mxCodecRegistry[_0xff99[3234]](function(){var _0xf598x2= new mxObjectCodec( new mxDefaultPopupMenu);_0xf598x2[_0xff99[514]]= function(_0xf598x2,_0xf598x4){return null};_0xf598x2[_0xff99[1093]]= function(_0xf598x2,_0xf598x4,_0xf598x5){var _0xf598x9=_0xf598x4[_0xff99[64]](_0xff99[3277])[0];null!= _0xf598x9?this[_0xff99[3273]](_0xf598x2,_0xf598x9,_0xf598x5):null!= _0xf598x5&& (_0xf598x5[_0xff99[3064]]= _0xf598x4);return _0xf598x5};return _0xf598x2}());mxCodecRegistry[_0xff99[3234]](function(){var _0xf598x2= new mxObjectCodec( new mxEditor,_0xff99[3292][_0xff99[224]](_0xff99[185]));_0xf598x2[_0xff99[3268]]= function(_0xf598x2,_0xf598x4,_0xf598x5){_0xf598x2= _0xf598x4[_0xff99[284]](_0xff99[2075]);null!= _0xf598x2&& (_0xf598x4[_0xff99[1390]](_0xff99[2075]),_0xf598x5[_0xff99[2075]]= _0xf598x5[_0xff99[3118]][_0xf598x2]);_0xf598x2= _0xf598x4[_0xff99[284]](_0xff99[3120]);null!= _0xf598x2&& (_0xf598x4[_0xff99[1390]](_0xff99[3120]),_0xf598x5[_0xff99[3120]]= _0xf598x5[_0xff99[3118]][_0xf598x2]);return _0xf598x5};_0xf598x2[_0xff99[3274]]= function(_0xf598x2,_0xf598x4,_0xf598x5){if(_0xff99[3293]== _0xf598x4[_0xff99[301]]){if(_0xff99[3118]== _0xf598x4[_0xff99[284]](_0xff99[3069])){this[_0xff99[3294]](_0xf598x2,_0xf598x4,_0xf598x5);return}}else {if(_0xff99[3295]== _0xf598x4[_0xff99[301]]){this[_0xff99[3296]](_0xf598x2,_0xf598x4,_0xf598x5);return}};mxObjectCodec[_0xff99[202]][_0xff99[3274]][_0xff99[183]](this,arguments)};_0xf598x2[_0xff99[3296]]= function(_0xf598x2,_0xf598x4,_0xf598x5){for(_0xf598x2= _0xf598x4[_0xff99[285]];null!= _0xf598x2;){if(_0xff99[99]== _0xf598x2[_0xff99[301]]){_0xf598x4= _0xf598x2[_0xff99[284]](_0xff99[3069]);var _0xf598x9=_0xf598x2[_0xff99[284]](_0xff99[980]),_0xf598xa=_0xf598x2[_0xff99[284]](_0xff99[124]),_0xf598x12=null;if(null!= _0xf598x9){_0xf598x12= document[_0xff99[1362]](_0xf598x9),null!= _0xf598x12&& null!= _0xf598xa&& (_0xf598x12[_0xff99[124]][_0xff99[103]]+= _0xff99[471]+ _0xf598xa)}else {var _0xf598x9=parseInt(_0xf598x2[_0xff99[284]](_0xff99[235])),_0xf598x13=parseInt(_0xf598x2[_0xff99[284]](_0xff99[236])),_0xf598x14=_0xf598x2[_0xff99[284]](_0xff99[117]),_0xf598x15=_0xf598x2[_0xff99[284]](_0xff99[119]),_0xf598x12=document[_0xff99[55]](_0xff99[485]);_0xf598x12[_0xff99[124]][_0xff99[103]]= _0xf598xa;( new mxWindow(mxResources[_0xff99[203]](_0xf598x4)|| _0xf598x4,_0xf598x12,_0xf598x9,_0xf598x13,_0xf598x14,_0xf598x15,!1,!0))[_0xff99[175]](!0)};_0xff99[1179]== _0xf598x4?_0xf598x5[_0xff99[3202]](_0xf598x12):_0xff99[3082]== _0xf598x4?_0xf598x5[_0xff99[3204]](_0xf598x12):_0xff99[924]== _0xf598x4?_0xf598x5[_0xff99[3208]](_0xf598x12):_0xff99[879]== _0xf598x4?_0xf598x5[_0xff99[3205]](_0xf598x12):_0xff99[201]== _0xf598x4&& _0xf598x5[_0xff99[3297]](_0xf598x12)}else {_0xff99[3298]== _0xf598x2[_0xff99[301]]?mxResources[_0xff99[99]](_0xf598x2[_0xff99[284]](_0xff99[3299])):_0xff99[94]== _0xf598x2[_0xff99[301]]&& mxClient[_0xff99[54]](_0xff99[94],_0xf598x2[_0xff99[284]](_0xff99[298]))};_0xf598x2= _0xf598x2[_0xff99[287]]}};_0xf598x2[_0xff99[3294]]= function(_0xf598x2,_0xf598x4,_0xf598x5){null== _0xf598x5[_0xff99[3118]]&& (_0xf598x5[_0xff99[3118]]= []);_0xf598x4= mxUtils[_0xff99[1540]](_0xf598x4);for(var _0xf598x9=0;_0xf598x9< _0xf598x4[_0xff99[67]];_0xf598x9++){for(var _0xf598xa=_0xf598x4[_0xf598x9][_0xff99[284]](_0xff99[3069]),_0xf598x12=_0xf598x4[_0xf598x9][_0xff99[285]];null!= _0xf598x12&& 1!= _0xf598x12[_0xff99[288]];){_0xf598x12= _0xf598x12[_0xff99[287]]};null!= _0xf598x12&& (_0xf598x5[_0xff99[3118]][_0xf598xa]= _0xf598x2[_0xff99[3244]](_0xf598x12))}};return _0xf598x2}()) \ No newline at end of file +var _0x5b48=["\x32\x2E\x30\x2E\x30\x2E\x30","\x4D\x53\x49\x45","\x69\x6E\x64\x65\x78\x4F\x66","\x75\x73\x65\x72\x41\x67\x65\x6E\x74","\x4D\x53\x49\x45\x20\x36","\x64\x6F\x63\x75\x6D\x65\x6E\x74\x4D\x6F\x64\x65","\x76","\x6F","\x4D\x6F\x7A\x69\x6C\x6C\x61\x2F","\x4F\x70\x65\x72\x61\x2F","\x50\x72\x65\x73\x74\x6F\x2F\x32\x2E\x34\x2E","\x50\x72\x65\x73\x74\x6F\x2F\x32\x2E\x33\x2E","\x50\x72\x65\x73\x74\x6F\x2F\x32\x2E\x32\x2E","\x50\x72\x65\x73\x74\x6F\x2F\x32\x2E\x31\x2E","\x50\x72\x65\x73\x74\x6F\x2F\x32\x2E\x30\x2E","\x50\x72\x65\x73\x74\x6F\x2F\x31\x2E","\x41\x70\x70\x6C\x65\x57\x65\x62\x4B\x69\x74\x2F","\x43\x68\x72\x6F\x6D\x65\x2F","\x46\x69\x72\x65\x66\x6F\x78\x2F","\x46\x69\x72\x65\x66\x6F\x78\x2F\x31\x2E","\x46\x69\x72\x65\x66\x6F\x78\x2F\x32\x2E","\x49\x63\x65\x77\x65\x61\x73\x65\x6C\x2F","\x49\x63\x65\x77\x65\x61\x73\x65\x6C\x2F\x31\x2E","\x49\x63\x65\x77\x65\x61\x73\x65\x6C\x2F\x32\x2E","\x53\x65\x61\x4D\x6F\x6E\x6B\x65\x79\x2F","\x53\x65\x61\x4D\x6F\x6E\x6B\x65\x79\x2F\x31\x2E","\x49\x63\x65\x61\x70\x65\x2F","\x49\x63\x65\x61\x70\x65\x2F\x31\x2E","\x53\x65\x61\x6D\x6F\x6E\x6B\x65\x79\x2F","\x47\x61\x6C\x65\x6F\x6E\x2F","\x45\x70\x69\x70\x68\x61\x6E\x79\x2F","\x47\x65\x63\x6B\x6F\x2F","\x43\x61\x6D\x69\x6E\x6F\x2F\x31\x2E","\x45\x70\x69\x70\x68\x61\x6E\x79\x2F\x32\x2E","\x4D\x6F\x7A\x69\x6C\x6C\x61\x2F\x32\x2E","\x4D\x49\x43\x52\x4F\x53\x4F\x46\x54\x20\x49\x4E\x54\x45\x52\x4E\x45\x54\x20\x45\x58\x50\x4C\x4F\x52\x45\x52","\x74\x6F\x55\x70\x70\x65\x72\x43\x61\x73\x65","\x61\x70\x70\x4E\x61\x6D\x65","\x4D\x41\x43\x49\x4E\x54\x4F\x53\x48","\x49\x50\x41\x44","\x49\x50\x4F\x44","\x49\x50\x48\x4F\x4E\x45","\x41\x4E\x44\x52\x4F\x49\x44","\x68\x74\x74\x70\x3A\x2F\x2F","\x68\x72\x65\x66","\x6C\x6F\x63\x61\x74\x69\x6F\x6E","\x68\x74\x74\x70\x73\x3A\x2F\x2F","\x49\x53\x5F\x56\x4D\x4C","\x49\x53\x5F\x53\x56\x47","\x49\x53\x5F\x49\x45\x36","\x3C\x6C\x69\x6E\x6B\x20\x72\x65\x6C\x3D\x22","\x22\x20\x68\x72\x65\x66\x3D\x22","\x22\x20\x63\x68\x61\x72\x73\x65\x74\x3D\x22\x49\x53\x4F\x2D\x38\x38\x35\x39\x2D\x31\x22\x20\x74\x79\x70\x65\x3D\x22\x74\x65\x78\x74\x2F\x63\x73\x73\x22\x2F\x3E","\x77\x72\x69\x74\x65","\x6C\x69\x6E\x6B","\x63\x72\x65\x61\x74\x65\x45\x6C\x65\x6D\x65\x6E\x74","\x72\x65\x6C","\x73\x65\x74\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x63\x68\x61\x72\x73\x65\x74","\x49\x53\x4F\x2D\x38\x38\x35\x39\x2D\x31","\x74\x79\x70\x65","\x74\x65\x78\x74\x2F\x63\x73\x73","\x61\x70\x70\x65\x6E\x64\x43\x68\x69\x6C\x64","\x68\x65\x61\x64","\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x73\x42\x79\x54\x61\x67\x4E\x61\x6D\x65","\x3C\x73\x63\x72\x69\x70\x74\x20\x73\x72\x63\x3D\x22","\x22\x3E\x3C\x2F\x73\x63\x72\x69\x70\x74\x3E","\x6C\x65\x6E\x67\x74\x68","\x6F\x62\x6A\x65\x63\x74\x73","\x6D\x78\x4C\x69\x73\x74\x65\x6E\x65\x72\x4C\x69\x73\x74","\x72\x65\x6D\x6F\x76\x65\x41\x6C\x6C\x4C\x69\x73\x74\x65\x6E\x65\x72\x73","\x49\x53\x5F\x4F\x50","\x49\x53\x5F\x4F\x54","\x43\x53\x53\x5F\x50\x52\x45\x46\x49\x58","\x4F","\x49\x53\x5F\x53\x46","\x49\x53\x5F\x47\x43","\x57\x65\x62\x6B\x69\x74","\x49\x53\x5F\x4D\x54","\x4D\x6F\x7A","\x49\x53\x5F\x49\x45","\x6D\x73","\x75\x6E\x64\x65\x66\x69\x6E\x65\x64","\x2E\x74\x78\x74","\x2F","\x73\x75\x62\x73\x74\x72\x69\x6E\x67","\x62\x61\x73\x65\x50\x61\x74\x68","\x2E","\x69\x6D\x61\x67\x65\x42\x61\x73\x65\x50\x61\x74\x68","\x2F\x69\x6D\x61\x67\x65\x73","\x6C\x61\x6E\x67\x75\x61\x67\x65","\x75\x73\x65\x72\x4C\x61\x6E\x67\x75\x61\x67\x65","\x64\x65\x66\x61\x75\x6C\x74\x4C\x61\x6E\x67\x75\x61\x67\x65","\x65\x6E","\x73\x74\x79\x6C\x65\x73\x68\x65\x65\x74","\x2F\x63\x73\x73\x2F\x63\x6F\x6D\x6D\x6F\x6E\x2E\x63\x73\x73","\x6C\x61\x6E\x67\x75\x61\x67\x65\x73","\x75\x72\x6E\x3A\x73\x63\x68\x65\x6D\x61\x73\x2D\x6D\x69\x63\x72\x6F\x73\x6F\x66\x74\x2D\x63\x6F\x6D\x3A\x76\x6D\x6C","\x23\x64\x65\x66\x61\x75\x6C\x74\x23\x56\x4D\x4C","\x61\x64\x64","\x6E\x61\x6D\x65\x73\x70\x61\x63\x65\x73","\x75\x72\x6E\x3A\x73\x63\x68\x65\x6D\x61\x73\x2D\x6D\x69\x63\x72\x6F\x73\x6F\x66\x74\x2D\x63\x6F\x6D\x3A\x6F\x66\x66\x69\x63\x65\x3A\x6F\x66\x66\x69\x63\x65","\x63\x72\x65\x61\x74\x65\x53\x74\x79\x6C\x65\x53\x68\x65\x65\x74","\x63\x73\x73\x54\x65\x78\x74","\x76\x5C\x3A\x2A\x7B\x62\x65\x68\x61\x76\x69\x6F\x72\x3A\x75\x72\x6C\x28\x23\x64\x65\x66\x61\x75\x6C\x74\x23\x56\x4D\x4C\x29\x7D\x6F\x5C\x3A\x2A\x7B\x62\x65\x68\x61\x76\x69\x6F\x72\x3A\x75\x72\x6C\x28\x23\x64\x65\x66\x61\x75\x6C\x74\x23\x56\x4D\x4C\x29\x7D","\x2F\x63\x73\x73\x2F\x65\x78\x70\x6C\x6F\x72\x65\x72\x2E\x63\x73\x73","\x6F\x6E\x75\x6E\x6C\x6F\x61\x64","\x64\x69\x73\x70\x6F\x73\x65","\x61\x74\x74\x61\x63\x68\x45\x76\x65\x6E\x74","\x43\x6F\x6E\x73\x6F\x6C\x65","","\x77\x69\x6E\x64\x6F\x77","\x62\x6F\x64\x79","\x63\x6F\x6E\x73\x6F\x6C\x65\x4E\x61\x6D\x65","\x20\x2D\x20\x6D\x78\x47\x72\x61\x70\x68\x20","\x56\x45\x52\x53\x49\x4F\x4E","\x74\x61\x62\x6C\x65","\x77\x69\x64\x74\x68","\x31\x30\x30\x25","\x68\x65\x69\x67\x68\x74","\x74\x62\x6F\x64\x79","\x74\x72","\x74\x64","\x76\x65\x72\x74\x69\x63\x61\x6C\x41\x6C\x69\x67\x6E","\x73\x74\x79\x6C\x65","\x74\x6F\x70","\x74\x65\x78\x74\x61\x72\x65\x61","\x72\x65\x61\x64\x4F\x6E\x6C\x79","\x74\x72\x75\x65","\x72\x65\x73\x69\x7A\x65","\x6E\x6F\x6E\x65","\x76\x61\x6C\x75\x65","\x62\x75\x66\x66\x65\x72","\x49\x53\x5F\x4E\x53","\x42\x61\x63\x6B\x43\x6F\x6D\x70\x61\x74","\x63\x6F\x6D\x70\x61\x74\x4D\x6F\x64\x65","\x39\x39\x25","\x33\x30\x70\x78","\x49\x6E\x66\x6F","\x69\x6E\x66\x6F","\x61\x64\x64\x42\x75\x74\x74\x6F\x6E","\x44\x4F\x4D","\x67\x65\x74\x49\x6E\x6E\x65\x72\x48\x74\x6D\x6C","\x64\x65\x62\x75\x67","\x54\x72\x61\x63\x65","\x54\x52\x41\x43\x45","\x54\x72\x61\x63\x69\x6E\x67\x20\x65\x6E\x61\x62\x6C\x65\x64","\x54\x72\x61\x63\x69\x6E\x67\x20\x64\x69\x73\x61\x62\x6C\x65\x64","\x43\x6F\x70\x79","\x63\x6F\x70\x79","\x61\x6C\x65\x72\x74","\x53\x68\x6F\x77","\x70\x6F\x70\x75\x70","\x43\x6C\x65\x61\x72","\x6E\x75\x6D\x62\x65\x72","\x69\x6E\x6E\x65\x72\x57\x69\x64\x74\x68","\x69\x6E\x6E\x65\x72\x48\x65\x69\x67\x68\x74","\x63\x6C\x69\x65\x6E\x74\x48\x65\x69\x67\x68\x74","\x64\x6F\x63\x75\x6D\x65\x6E\x74\x45\x6C\x65\x6D\x65\x6E\x74","\x63\x6C\x69\x65\x6E\x74\x57\x69\x64\x74\x68","\x6D\x61\x78","\x73\x65\x74\x4D\x61\x78\x69\x6D\x69\x7A\x61\x62\x6C\x65","\x73\x65\x74\x53\x63\x72\x6F\x6C\x6C\x61\x62\x6C\x65","\x73\x65\x74\x52\x65\x73\x69\x7A\x61\x62\x6C\x65","\x73\x65\x74\x43\x6C\x6F\x73\x61\x62\x6C\x65","\x64\x65\x73\x74\x72\x6F\x79\x4F\x6E\x43\x6C\x6F\x73\x65","\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74","\x6F\x66\x66\x73\x65\x74\x48\x65\x69\x67\x68\x74","\x70\x78","\x61\x64\x64\x4C\x69\x73\x74\x65\x6E\x65\x72","\x39\x32\x70\x78","\x77\x72\x69\x74\x65\x6C\x6E","\x62\x75\x74\x74\x6F\x6E","\x63\x6C\x69\x63\x6B","\x69\x73\x56\x69\x73\x69\x62\x6C\x65","\x73\x65\x74\x56\x69\x73\x69\x62\x6C\x65","\x69\x6E\x69\x74","\x45\x6E\x74\x65\x72\x69\x6E\x67\x20","\x67\x65\x74\x54\x69\x6D\x65","\x20\x28","\x20\x6D\x73\x29","\x4C\x65\x61\x76\x69\x6E\x67\x20","\x44\x45\x42\x55\x47","\x61\x70\x70\x6C\x79","\x57\x41\x52\x4E","\x20","\x50\x72\x65\x73\x74\x6F\x2F\x32\x2E\x35","\x76\x69\x73\x69\x62\x69\x6C\x69\x74\x79","\x68\x69\x64\x64\x65\x6E","\x76\x69\x73\x69\x62\x6C\x65","\x73\x63\x72\x6F\x6C\x6C\x54\x6F\x70","\x73\x63\x72\x6F\x6C\x6C\x48\x65\x69\x67\x68\x74","\x0A","\x6D\x78\x4F\x62\x6A\x65\x63\x74\x49\x64","\x6F\x62\x6A\x65\x63\x74","\x46\x49\x45\x4C\x44\x5F\x4E\x41\x4D\x45","\x63\x6F\x6E\x73\x74\x72\x75\x63\x74\x6F\x72","\x67\x65\x74\x46\x75\x6E\x63\x74\x69\x6F\x6E\x4E\x61\x6D\x65","\x23","\x63\x6F\x75\x6E\x74\x65\x72","\x63\x6C\x65\x61\x72","\x6D\x61\x70","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x67\x65\x74","\x70\x75\x74","\x72\x65\x6D\x6F\x76\x65","\x67\x65\x74\x4B\x65\x79\x73","\x70\x75\x73\x68","\x67\x65\x74\x56\x61\x6C\x75\x65\x73","\x76\x69\x73\x69\x74","\x6C\x6F\x61\x64\x44\x65\x66\x61\x75\x6C\x74\x42\x75\x6E\x64\x6C\x65","\x69\x73\x4C\x61\x6E\x67\x75\x61\x67\x65\x53\x75\x70\x70\x6F\x72\x74\x65\x64","\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x2D","\x6C\x6F\x61\x64\x53\x70\x65\x63\x69\x61\x6C\x42\x75\x6E\x64\x6C\x65","\x5F","\x74\x6F\x4C\x6F\x77\x65\x72\x43\x61\x73\x65","\x4E\x4F\x4E\x45","\x67\x65\x74\x44\x65\x66\x61\x75\x6C\x74\x42\x75\x6E\x64\x6C\x65","\x6C\x6F\x61\x64","\x69\x73\x52\x65\x61\x64\x79","\x67\x65\x74\x54\x65\x78\x74","\x70\x61\x72\x73\x65","\x67\x65\x74\x53\x70\x65\x63\x69\x61\x6C\x42\x75\x6E\x64\x6C\x65","\x73\x70\x6C\x69\x74","\x63\x68\x61\x72\x41\x74","\x3D","\x63\x68\x61\x72\x43\x6F\x64\x65\x41\x74","\x72\x65\x73\x6F\x75\x72\x63\x65\x73\x45\x6E\x63\x6F\x64\x65\x64","\x25","\x72\x65\x70\x6C\x61\x63\x65","\x72\x65\x73\x6F\x75\x72\x63\x65\x73","\x7B","\x7D","\x6A\x6F\x69\x6E","\x78","\x79","\x65\x71\x75\x61\x6C\x73","\x63\x6C\x6F\x6E\x65","\x63\x61\x6C\x6C","\x73\x65\x74\x52\x65\x63\x74","\x67\x65\x74\x43\x65\x6E\x74\x65\x72\x58","\x67\x65\x74\x43\x65\x6E\x74\x65\x72\x59","\x6D\x69\x6E","\x67\x72\x6F\x77","\x67\x65\x74\x50\x6F\x69\x6E\x74","\x63\x65\x6C\x6C","\x63\x68\x69\x6C\x64","\x67\x65\x74\x53\x74\x61\x74\x65","\x67\x65\x74\x56\x69\x65\x77","\x69\x73\x45\x64\x67\x65","\x6D\x6F\x64\x65\x6C","\x6E\x6F\x64\x65","\x73\x68\x61\x70\x65","\x73\x65\x74\x4F\x70\x61\x63\x69\x74\x79","\x73\x63\x61\x6C\x65","\x67\x65\x6F\x6D\x65\x74\x72\x79","\x70\x72\x65\x76\x69\x6F\x75\x73","\x72\x65\x64\x72\x61\x77","\x63\x65\x6C\x6C\x52\x65\x6E\x64\x65\x72\x65\x72","\x63\x61\x73\x63\x61\x64\x65\x4F\x70\x61\x63\x69\x74\x79","\x73\x65\x74\x54\x69\x6D\x65\x6F\x75\x74","\x67\x65\x74\x43\x68\x69\x6C\x64\x43\x6F\x75\x6E\x74","\x67\x65\x74\x43\x68\x69\x6C\x64\x41\x74","\x67\x65\x74\x45\x64\x67\x65\x73","\x70\x61\x72\x65\x6E\x74\x4E\x6F\x64\x65","\x72\x65\x6D\x6F\x76\x65\x43\x68\x69\x6C\x64","\x65\x72\x72\x6F\x72","\x63\x6C\x6F\x73\x65","\x2F\x65\x72\x72\x6F\x72\x2E\x67\x69\x66","\x63\x75\x72\x73\x6F\x72","\x63\x68\x69\x6C\x64\x4E\x6F\x64\x65\x73","\x72\x65\x6D\x6F\x76\x65\x43\x75\x72\x73\x6F\x72\x73","\x63\x75\x72\x72\x65\x6E\x74\x53\x74\x79\x6C\x65","\x67\x65\x74\x43\x6F\x6D\x70\x75\x74\x65\x64\x53\x74\x79\x6C\x65","\x67\x65\x74\x43\x75\x72\x72\x65\x6E\x74\x53\x74\x79\x6C\x65","\x73\x63\x72\x6F\x6C\x6C","\x6F\x76\x65\x72\x66\x6C\x6F\x77","\x61\x75\x74\x6F","\x66\x75\x6E\x63\x74\x69\x6F\x6E","\x76\x61\x72\x20\x5F\x6D\x78\x4A\x61\x76\x61\x53\x63\x72\x69\x70\x74\x45\x78\x70\x72\x65\x73\x73\x69\x6F\x6E\x3D","\x6D\x65\x73\x73\x61\x67\x65","\x20\x77\x68\x69\x6C\x65\x20\x65\x76\x61\x6C\x75\x61\x74\x69\x6E\x67\x20","\x77\x61\x72\x6E","\x67\x65\x74\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x66\x69\x72\x73\x74\x43\x68\x69\x6C\x64","\x66\x69\x6E\x64\x4E\x6F\x64\x65","\x6E\x65\x78\x74\x53\x69\x62\x6C\x69\x6E\x67","\x6E\x6F\x64\x65\x54\x79\x70\x65","\x4E\x4F\x44\x45\x54\x59\x50\x45\x5F\x45\x4C\x45\x4D\x45\x4E\x54","\x66\x69\x6E\x64\x4E\x6F\x64\x65\x42\x79\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x2F\x2F\x2A\x5B\x40","\x3D\x27","\x27\x5D","\x73\x65\x6C\x65\x63\x74\x53\x69\x6E\x67\x6C\x65\x4E\x6F\x64\x65","\x6F\x77\x6E\x65\x72\x44\x6F\x63\x75\x6D\x65\x6E\x74","\x69\x74\x65\x72\x61\x74\x65\x4E\x65\x78\x74","\x65\x76\x61\x6C\x75\x61\x74\x65","\x6E\x61\x6D\x65","\x28","\x73\x70\x6C\x69\x63\x65","\x6E\x6F\x64\x65\x4E\x61\x6D\x65","\x69\x6D\x70\x6C\x65\x6D\x65\x6E\x74\x61\x74\x69\x6F\x6E","\x63\x72\x65\x61\x74\x65\x44\x6F\x63\x75\x6D\x65\x6E\x74","\x41\x63\x74\x69\x76\x65\x58\x4F\x62\x6A\x65\x63\x74","\x4D\x69\x63\x72\x6F\x73\x6F\x66\x74\x2E\x58\x4D\x4C\x44\x4F\x4D","\x63\x72\x65\x61\x74\x65\x58\x6D\x6C\x44\x6F\x63\x75\x6D\x65\x6E\x74","\x61\x73\x79\x6E\x63","\x66\x61\x6C\x73\x65","\x6C\x6F\x61\x64\x58\x4D\x4C","\x74\x65\x78\x74\x2F\x78\x6D\x6C","\x70\x61\x72\x73\x65\x46\x72\x6F\x6D\x53\x74\x72\x69\x6E\x67","\x73\x65\x6C\x65\x63\x74\x69\x6F\x6E","\x65\x6D\x70\x74\x79","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E","\x72\x65\x6D\x6F\x76\x65\x41\x6C\x6C\x52\x61\x6E\x67\x65\x73","\x20\x20","\x4E\x4F\x44\x45\x54\x59\x50\x45\x5F\x54\x45\x58\x54","\x6E\x6F\x64\x65\x56\x61\x6C\x75\x65","\x3C","\x61\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x68\x74\x6D\x6C\x45\x6E\x74\x69\x74\x69\x65\x73","\x3D\x22","\x22","\x3E\x0A","\x67\x65\x74\x50\x72\x65\x74\x74\x79\x58\x6D\x6C","\x3C\x2F","\x2F\x3E\x0A","\x70\x72\x65\x76\x69\x6F\x75\x73\x53\x69\x62\x6C\x69\x6E\x67","\x67\x65\x74\x54\x65\x78\x74\x43\x6F\x6E\x74\x65\x6E\x74","\x74\x72\x69\x6D","\x26\x61\x6D\x70\x3B","\x26\x71\x75\x6F\x74\x3B","\x26\x23\x33\x39\x3B","\x26\x6C\x74\x3B","\x26\x67\x74\x3B","\x26\x23\x78\x61\x3B","\x74\x61\x67\x55\x72\x6E","\x78\x6D\x6C","\x69\x6E\x6E\x65\x72\x48\x54\x4D\x4C","\x73\x65\x72\x69\x61\x6C\x69\x7A\x65\x54\x6F\x53\x74\x72\x69\x6E\x67","\x3E","\x6F\x75\x74\x65\x72\x48\x54\x4D\x4C","\x2F\x3E","\x63\x72\x65\x61\x74\x65\x54\x65\x78\x74\x4E\x6F\x64\x65","\x62\x72","\x70","\x66\x69\x6C\x74\x65\x72","\x70\x72\x6F\x67\x69\x64\x3A\x44\x58\x49\x6D\x61\x67\x65\x54\x72\x61\x6E\x73\x66\x6F\x72\x6D\x2E\x4D\x69\x63\x72\x6F\x73\x6F\x66\x74\x2E\x41\x6C\x70\x68\x61\x49\x6D\x61\x67\x65\x4C\x6F\x61\x64\x65\x72\x28\x73\x72\x63\x3D\x27","\x2F\x74\x72\x61\x6E\x73\x70\x61\x72\x65\x6E\x74\x2E\x67\x69\x66\x27\x2C\x20\x73\x69\x7A\x69\x6E\x67\x4D\x65\x74\x68\x6F\x64\x3D\x27\x73\x63\x61\x6C\x65\x27\x29","\x65\x78\x65\x63\x75\x74\x65","\x73\x70\x61\x6E","\x63\x6F\x6C\x6F\x72","\x62\x6C\x75\x65","\x74\x65\x78\x74\x44\x65\x63\x6F\x72\x61\x74\x69\x6F\x6E","\x75\x6E\x64\x65\x72\x6C\x69\x6E\x65","\x70\x6F\x69\x6E\x74\x65\x72","\x70\x61\x64\x64\x69\x6E\x67\x4C\x65\x66\x74","\x6F\x66\x66\x73\x65\x74\x4C\x65\x66\x74","\x6F\x66\x66\x73\x65\x74\x57\x69\x64\x74\x68","\x73\x63\x72\x6F\x6C\x6C\x4C\x65\x66\x74","\x6C\x65\x66\x74","\x6F\x66\x66\x73\x65\x74\x54\x6F\x70","\x55\x6E\x69\x76\x65\x72\x73\x61\x6C\x58\x50\x43\x6F\x6E\x6E\x65\x63\x74","\x65\x6E\x61\x62\x6C\x65\x50\x72\x69\x76\x69\x6C\x65\x67\x65","\x50\x72\x69\x76\x69\x6C\x65\x67\x65\x4D\x61\x6E\x61\x67\x65\x72","\x73\x65\x63\x75\x72\x69\x74\x79","\x50\x65\x72\x6D\x69\x73\x73\x69\x6F\x6E\x20\x74\x6F\x20\x72\x65\x61\x64\x20\x66\x69\x6C\x65\x20\x64\x65\x6E\x69\x65\x64\x2E","\x6E\x73\x49\x4C\x6F\x63\x61\x6C\x46\x69\x6C\x65","\x69\x6E\x74\x65\x72\x66\x61\x63\x65\x73","\x63\x72\x65\x61\x74\x65\x49\x6E\x73\x74\x61\x6E\x63\x65","\x40\x6D\x6F\x7A\x69\x6C\x6C\x61\x2E\x6F\x72\x67\x2F\x66\x69\x6C\x65\x2F\x6C\x6F\x63\x61\x6C\x3B\x31","\x63\x6C\x61\x73\x73\x65\x73","\x69\x6E\x69\x74\x57\x69\x74\x68\x50\x61\x74\x68","\x65\x78\x69\x73\x74\x73","\x46\x69\x6C\x65\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64\x2E","\x6E\x73\x49\x46\x69\x6C\x65\x49\x6E\x70\x75\x74\x53\x74\x72\x65\x61\x6D","\x40\x6D\x6F\x7A\x69\x6C\x6C\x61\x2E\x6F\x72\x67\x2F\x6E\x65\x74\x77\x6F\x72\x6B\x2F\x66\x69\x6C\x65\x2D\x69\x6E\x70\x75\x74\x2D\x73\x74\x72\x65\x61\x6D\x3B\x31","\x6E\x73\x49\x53\x63\x72\x69\x70\x74\x61\x62\x6C\x65\x49\x6E\x70\x75\x74\x53\x74\x72\x65\x61\x6D","\x40\x6D\x6F\x7A\x69\x6C\x6C\x61\x2E\x6F\x72\x67\x2F\x73\x63\x72\x69\x70\x74\x61\x62\x6C\x65\x69\x6E\x70\x75\x74\x73\x74\x72\x65\x61\x6D\x3B\x31","\x61\x76\x61\x69\x6C\x61\x62\x6C\x65","\x72\x65\x61\x64","\x53\x63\x72\x69\x70\x74\x69\x6E\x67\x2E\x46\x69\x6C\x65\x53\x79\x73\x74\x65\x6D\x4F\x62\x6A\x65\x63\x74","\x72\x65\x61\x64\x41\x6C\x6C","\x50\x65\x72\x6D\x69\x73\x73\x69\x6F\x6E\x20\x74\x6F\x20\x77\x72\x69\x74\x65\x20\x66\x69\x6C\x65\x20\x64\x65\x6E\x69\x65\x64\x2E","\x63\x72\x65\x61\x74\x65","\x6E\x73\x49\x46\x69\x6C\x65\x4F\x75\x74\x70\x75\x74\x53\x74\x72\x65\x61\x6D","\x40\x6D\x6F\x7A\x69\x6C\x6C\x61\x2E\x6F\x72\x67\x2F\x6E\x65\x74\x77\x6F\x72\x6B\x2F\x66\x69\x6C\x65\x2D\x6F\x75\x74\x70\x75\x74\x2D\x73\x74\x72\x65\x61\x6D\x3B\x31","\x66\x6C\x75\x73\x68","\x69\x66\x72\x61\x6D\x65","\x73\x72\x63","\x63\x6F\x6E\x74\x65\x6E\x74\x44\x6F\x63\x75\x6D\x65\x6E\x74","\x6F\x70\x65\x6E","\x66\x6F\x63\x75\x73","\x50\x65\x72\x6D\x69\x73\x73\x69\x6F\x6E\x20\x74\x6F\x20\x73\x61\x76\x65\x20\x64\x6F\x63\x75\x6D\x65\x6E\x74\x20\x64\x65\x6E\x69\x65\x64\x2E","\x64\x6F\x63\x75\x6D\x65\x6E\x74","\x63\x6F\x6E\x74\x65\x6E\x74\x57\x69\x6E\x64\x6F\x77","\x53\x61\x76\x65\x41\x73","\x65\x78\x65\x63\x43\x6F\x6D\x6D\x61\x6E\x64","\x63\x6C\x69\x70\x62\x6F\x61\x72\x64\x44\x61\x74\x61","\x54\x65\x78\x74","\x73\x65\x74\x44\x61\x74\x61","\x6E\x73\x49\x43\x6C\x69\x70\x62\x6F\x61\x72\x64","\x40\x6D\x6F\x7A\x69\x6C\x6C\x61\x2E\x6F\x72\x67\x2F\x77\x69\x64\x67\x65\x74\x2F\x63\x6C\x69\x70\x62\x6F\x61\x72\x64\x3B\x31","\x6E\x73\x49\x54\x72\x61\x6E\x73\x66\x65\x72\x61\x62\x6C\x65","\x40\x6D\x6F\x7A\x69\x6C\x6C\x61\x2E\x6F\x72\x67\x2F\x77\x69\x64\x67\x65\x74\x2F\x74\x72\x61\x6E\x73\x66\x65\x72\x61\x62\x6C\x65\x3B\x31","\x74\x65\x78\x74\x2F\x75\x6E\x69\x63\x6F\x64\x65","\x61\x64\x64\x44\x61\x74\x61\x46\x6C\x61\x76\x6F\x72","\x6E\x73\x49\x53\x75\x70\x70\x6F\x72\x74\x73\x53\x74\x72\x69\x6E\x67","\x40\x6D\x6F\x7A\x69\x6C\x6C\x61\x2E\x6F\x72\x67\x2F\x73\x75\x70\x70\x6F\x72\x74\x73\x2D\x73\x74\x72\x69\x6E\x67\x3B\x31","\x64\x61\x74\x61","\x73\x65\x74\x54\x72\x61\x6E\x73\x66\x65\x72\x44\x61\x74\x61","\x6B\x47\x6C\x6F\x62\x61\x6C\x43\x6C\x69\x70\x62\x6F\x61\x72\x64","\x47\x45\x54","\x73\x65\x6E\x64","\x73\x69\x6D\x75\x6C\x61\x74\x65","\x6F\x6E\x72\x65\x61\x64\x79\x73\x74\x61\x74\x65\x63\x68\x61\x6E\x67\x65","\x72\x65\x61\x64\x79\x53\x74\x61\x74\x65","\x61\x64\x64\x45\x76\x65\x6E\x74\x4C\x69\x73\x74\x65\x6E\x65\x72","\x20\x3D\x20\x5B\x6E\x75\x6C\x6C\x5D\x0A","\x20\x3D\x3E\x20\x5B\x46\x75\x6E\x63\x74\x69\x6F\x6E\x5D\x0A","\x20\x3D\x3E\x20\x5B","\x5D\x0A","\x20\x3D\x20","\x50\x49","\x61\x62\x73","\x63\x6F\x73","\x73\x69\x6E","\x73\x71\x72\x74","\x61\x74\x61\x6E\x32","\x63\x65\x69\x6C","\x74\x6F\x52\x61\x64\x69\x61\x6E\x73","\x67\x65\x74\x52\x6F\x74\x61\x74\x65\x64\x50\x6F\x69\x6E\x74","\x67\x65\x74\x56\x61\x6C\x75\x65","\x44\x49\x52\x45\x43\x54\x49\x4F\x4E\x5F\x4D\x41\x53\x4B\x5F\x4E\x4F\x4E\x45","\x44\x49\x52\x45\x43\x54\x49\x4F\x4E\x5F\x4D\x41\x53\x4B\x5F\x4E\x4F\x52\x54\x48","\x44\x49\x52\x45\x43\x54\x49\x4F\x4E\x5F\x4D\x41\x53\x4B\x5F\x57\x45\x53\x54","\x44\x49\x52\x45\x43\x54\x49\x4F\x4E\x5F\x4D\x41\x53\x4B\x5F\x53\x4F\x55\x54\x48","\x44\x49\x52\x45\x43\x54\x49\x4F\x4E\x5F\x4D\x41\x53\x4B\x5F\x45\x41\x53\x54","\x61\x62\x73\x6F\x6C\x75\x74\x65\x50\x6F\x69\x6E\x74\x73","\x70\x74\x53\x65\x67\x44\x69\x73\x74\x53\x71","\x76\x69\x65\x77","\x63\x6F\x6E\x74\x61\x69\x6E\x73","\x6F\x66\x66\x73\x65\x74\x50\x61\x72\x65\x6E\x74","\x67\x65\x74\x53\x63\x72\x6F\x6C\x6C\x4F\x72\x69\x67\x69\x6E","\x67\x65\x74\x4F\x66\x66\x73\x65\x74","\x5E\x5B","\x5C\x73","\x5D\x2B","\x67","\x5B","\x5D\x2B\x24","\x72\x74\x72\x69\x6D","\x6C\x74\x72\x69\x6D","\x30\x78","\x30\x58","\x61\x6E\x69\x6D\x61\x74\x65\x43\x68\x61\x6E\x67\x65\x73","\x66\x61\x64\x65\x4F\x75\x74","\x69\x73\x56\x6D\x6C","\x61\x6C\x70\x68\x61\x28\x6F\x70\x61\x63\x69\x74\x79\x3D","\x29","\x6F\x70\x61\x63\x69\x74\x79","\x43\x53\x53\x31\x43\x6F\x6D\x70\x61\x74","\x56\x4D\x4C\x5F\x50\x52\x45\x46\x49\x58","\x3A\x69\x6D\x61\x67\x65","\x62\x6F\x72\x64\x65\x72\x53\x74\x79\x6C\x65","\x69\x6D\x67","\x62\x6F\x72\x64\x65\x72","\x30","\x63\x6F\x6D\x70\x61\x72\x65","\x73\x6F\x72\x74","\x3B","\x69\x6E\x64\x65\x78\x4F\x66\x53\x74\x79\x6C\x65\x6E\x61\x6D\x65","\x62\x65\x67\x69\x6E\x55\x70\x64\x61\x74\x65","\x67\x65\x74\x53\x74\x79\x6C\x65","\x73\x65\x74\x53\x74\x79\x6C\x65","\x65\x6E\x64\x55\x70\x64\x61\x74\x65","\x73\x65\x74\x53\x74\x79\x6C\x65\x46\x6C\x61\x67","\x3D\x30","\x41\x4C\x49\x47\x4E\x5F\x43\x45\x4E\x54\x45\x52","\x41\x4C\x49\x47\x4E\x5F\x52\x49\x47\x48\x54","\x41\x4C\x49\x47\x4E\x5F\x4D\x49\x44\x44\x4C\x45","\x41\x4C\x49\x47\x4E\x5F\x42\x4F\x54\x54\x4F\x4D","\x44\x45\x46\x41\x55\x4C\x54\x5F\x46\x4F\x4E\x54\x53\x49\x5A\x45","\x44\x45\x46\x41\x55\x4C\x54\x5F\x46\x4F\x4E\x54\x46\x41\x4D\x49\x4C\x59","\x64\x69\x76","\x66\x6F\x6E\x74\x46\x61\x6D\x69\x6C\x79","\x66\x6F\x6E\x74\x53\x69\x7A\x65","\x72\x6F\x75\x6E\x64","\x6C\x69\x6E\x65\x48\x65\x69\x67\x68\x74","\x4C\x49\x4E\x45\x5F\x48\x45\x49\x47\x48\x54","\x70\x6F\x73\x69\x74\x69\x6F\x6E","\x61\x62\x73\x6F\x6C\x75\x74\x65","\x77\x68\x69\x74\x65\x53\x70\x61\x63\x65","\x6E\x6F\x77\x72\x61\x70","\x64\x69\x73\x70\x6C\x61\x79","\x49\x53\x5F\x51\x55\x49\x52\x4B\x53","\x69\x6E\x6C\x69\x6E\x65","\x69\x6E\x6C\x69\x6E\x65\x2D\x62\x6C\x6F\x63\x6B","\x7A\x6F\x6F\x6D","\x31","\x67\x65\x74\x52\x6F\x6F\x74","\x67\x65\x74\x4D\x6F\x64\x65\x6C","\x69\x73\x45\x76\x65\x6E\x74\x73\x45\x6E\x61\x62\x6C\x65\x64","\x73\x65\x74\x45\x76\x65\x6E\x74\x73\x45\x6E\x61\x62\x6C\x65\x64","\x64\x72\x61\x77\x50\x61\x6E\x65","\x6F\x76\x65\x72\x6C\x61\x79\x50\x61\x6E\x65","\x64\x69\x61\x6C\x65\x63\x74","\x44\x49\x41\x4C\x45\x43\x54\x5F\x53\x56\x47","\x63\x72\x65\x61\x74\x65\x45\x6C\x65\x6D\x65\x6E\x74\x4E\x53","\x63\x61\x6E\x76\x61\x73","\x63\x6C\x6F\x6E\x65\x4E\x6F\x64\x65","\x67\x65\x74\x54\x72\x61\x6E\x73\x6C\x61\x74\x65","\x74\x72\x61\x6E\x73\x6C\x61\x74\x65","\x65\x6E\x63\x6F\x64\x65","\x64\x65\x73\x74\x72\x6F\x79","\x50\x41\x47\x45\x5F\x46\x4F\x52\x4D\x41\x54\x5F\x41\x34\x5F\x50\x4F\x52\x54\x52\x41\x49\x54","\x67\x65\x74\x47\x72\x61\x70\x68\x42\x6F\x75\x6E\x64\x73","\x67\x65\x74\x53\x63\x61\x6C\x65","\x66\x6C\x6F\x6F\x72","\x3C\x68\x74\x6D\x6C\x3E\x3C\x68\x65\x61\x64\x3E","\x62\x61\x73\x65","\x3C\x73\x74\x79\x6C\x65\x3E","\x73\x74\x79\x6C\x65\x53\x68\x65\x65\x74\x73","\x3C\x2F\x73\x74\x79\x6C\x65\x3E\x3C\x2F\x68\x65\x61\x64\x3E","\x3C\x62\x6F\x64\x79\x3E","\x63\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x3C\x2F\x62\x6F\x64\x79\x3E","\x3C\x68\x74\x6D\x6C\x3E","\x44\x49\x56","\x3C\x68\x74\x6D\x6C","\x3C\x68\x65\x61\x64\x3E","\x67\x65\x74\x4F\x75\x74\x65\x72\x48\x74\x6D\x6C","\x3C\x2F\x68\x65\x61\x64\x3E","\x3C\x2F\x68\x74\x6D\x6C\x3E","\x74\x72\x61\x6E\x73\x66\x6F\x72\x6D","\x74\x72\x61\x6E\x73\x6C\x61\x74\x65\x28","\x2C","\x6F\x77\x6E\x65\x72\x53\x56\x47\x45\x6C\x65\x6D\x65\x6E\x74","\x73\x68\x6F\x77","\x70\x72\x69\x6E\x74","\x36\x33\x36\x70\x78","\x34\x36\x30\x70\x78","\x70\x72\x65","\x26\x6E\x62\x73\x70\x3B","\x3C\x62\x72\x3E","\x50\x6F\x70\x75\x70\x20\x57\x69\x6E\x64\x6F\x77","\x3C\x70\x72\x65\x3E","\x3C\x2F\x70\x72\x65","\x70\x61\x64\x64\x69\x6E\x67","\x32\x30\x70\x78","\x65\x72\x72\x6F\x72\x49\x6D\x61\x67\x65","\x76\x61\x6C\x69\x67\x6E","\x62\x6F\x74\x74\x6F\x6D","\x6D\x69\x64\x64\x6C\x65","\xA0","\x65\x72\x72\x6F\x72\x52\x65\x73\x6F\x75\x72\x63\x65","\x66\x6C\x6F\x61\x74\x3A\x72\x69\x67\x68\x74","\x63\x6C\x6F\x73\x65\x52\x65\x73\x6F\x75\x72\x63\x65","\x64\x72\x61\x67\x4F\x66\x66\x73\x65\x74","\x54\x4F\x4F\x4C\x54\x49\x50\x5F\x56\x45\x52\x54\x49\x43\x41\x4C\x5F\x4F\x46\x46\x53\x45\x54","\x61\x75\x74\x6F\x73\x63\x72\x6F\x6C\x6C","\x73\x65\x74\x47\x75\x69\x64\x65\x73\x45\x6E\x61\x62\x6C\x65\x64","\x68\x69\x67\x68\x6C\x69\x67\x68\x74\x44\x72\x6F\x70\x54\x61\x72\x67\x65\x74\x73","\x67\x65\x74\x44\x72\x6F\x70\x54\x61\x72\x67\x65\x74","\x67\x65\x74\x47\x72\x61\x70\x68\x46\x6F\x72\x45\x76\x65\x6E\x74","\x63\x72\x65\x61\x74\x65\x44\x72\x61\x67\x45\x6C\x65\x6D\x65\x6E\x74","\x63\x72\x65\x61\x74\x65\x50\x72\x65\x76\x69\x65\x77\x45\x6C\x65\x6D\x65\x6E\x74","\x65\x78\x61\x63\x74","\x66\x61\x73\x74\x65\x72","\x66\x61\x73\x74\x65\x73\x74","\x73\x76\x67","\x76\x6D\x6C","\x6D\x69\x78\x65\x64\x48\x74\x6D\x6C","\x70\x72\x65\x66\x65\x72\x48\x74\x6D\x6C","\x73\x74\x72\x69\x63\x74\x48\x74\x6D\x6C","\x68\x74\x74\x70\x3A\x2F\x2F\x77\x77\x77\x2E\x77\x33\x2E\x6F\x72\x67\x2F\x32\x30\x30\x30\x2F\x73\x76\x67","\x68\x74\x74\x70\x3A\x2F\x2F\x77\x77\x77\x2E\x77\x33\x2E\x6F\x72\x67\x2F\x31\x39\x39\x39\x2F\x78\x68\x74\x6D\x6C","\x68\x74\x74\x70\x3A\x2F\x2F\x77\x77\x77\x2E\x77\x33\x2E\x6F\x72\x67\x2F\x31\x39\x39\x39\x2F\x78\x6C\x69\x6E\x6B","\x67\x72\x61\x79","\x23\x30\x30\x46\x46\x30\x30","\x23\x46\x46\x30\x30\x30\x30","\x6D\x6F\x76\x65","\x64\x65\x66\x61\x75\x6C\x74","\x23\x30\x30\x30\x30\x46\x46","\x23\x30\x30\x39\x39\x46\x46","\x62\x6C\x61\x63\x6B","\x79\x65\x6C\x6C\x6F\x77","\x23\x30\x30\x46\x46\x46\x46","\x23\x30\x30\x33\x33\x46\x46","\x41\x72\x69\x61\x6C\x2C\x48\x65\x6C\x76\x65\x74\x69\x63\x61","\x70\x65\x72\x69\x6D\x65\x74\x65\x72","\x73\x6F\x75\x72\x63\x65\x50\x6F\x72\x74","\x74\x61\x72\x67\x65\x74\x50\x6F\x72\x74","\x70\x6F\x72\x74\x43\x6F\x6E\x73\x74\x72\x61\x69\x6E\x74","\x74\x65\x78\x74\x4F\x70\x61\x63\x69\x74\x79","\x6F\x72\x74\x68\x6F\x67\x6F\x6E\x61\x6C","\x65\x78\x69\x74\x58","\x65\x78\x69\x74\x59","\x65\x78\x69\x74\x50\x65\x72\x69\x6D\x65\x74\x65\x72","\x65\x6E\x74\x72\x79\x58","\x65\x6E\x74\x72\x79\x59","\x65\x6E\x74\x72\x79\x50\x65\x72\x69\x6D\x65\x74\x65\x72","\x72\x6F\x74\x61\x74\x69\x6F\x6E","\x66\x69\x6C\x6C\x43\x6F\x6C\x6F\x72","\x73\x77\x69\x6D\x6C\x61\x6E\x65\x46\x69\x6C\x6C\x43\x6F\x6C\x6F\x72","\x67\x72\x61\x64\x69\x65\x6E\x74\x43\x6F\x6C\x6F\x72","\x67\x72\x61\x64\x69\x65\x6E\x74\x44\x69\x72\x65\x63\x74\x69\x6F\x6E","\x73\x74\x72\x6F\x6B\x65\x43\x6F\x6C\x6F\x72","\x73\x65\x70\x61\x72\x61\x74\x6F\x72\x43\x6F\x6C\x6F\x72","\x73\x74\x72\x6F\x6B\x65\x57\x69\x64\x74\x68","\x61\x6C\x69\x67\x6E","\x6C\x61\x62\x65\x6C\x50\x6F\x73\x69\x74\x69\x6F\x6E","\x76\x65\x72\x74\x69\x63\x61\x6C\x4C\x61\x62\x65\x6C\x50\x6F\x73\x69\x74\x69\x6F\x6E","\x69\x6D\x61\x67\x65\x41\x73\x70\x65\x63\x74","\x69\x6D\x61\x67\x65\x41\x6C\x69\x67\x6E","\x69\x6D\x61\x67\x65\x56\x65\x72\x74\x69\x63\x61\x6C\x41\x6C\x69\x67\x6E","\x67\x6C\x61\x73\x73","\x69\x6D\x61\x67\x65","\x69\x6D\x61\x67\x65\x57\x69\x64\x74\x68","\x69\x6D\x61\x67\x65\x48\x65\x69\x67\x68\x74","\x69\x6D\x61\x67\x65\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64","\x69\x6D\x61\x67\x65\x42\x6F\x72\x64\x65\x72","\x66\x6C\x69\x70\x48","\x66\x6C\x69\x70\x56","\x6E\x6F\x4C\x61\x62\x65\x6C","\x6E\x6F\x45\x64\x67\x65\x53\x74\x79\x6C\x65","\x6C\x61\x62\x65\x6C\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x43\x6F\x6C\x6F\x72","\x6C\x61\x62\x65\x6C\x42\x6F\x72\x64\x65\x72\x43\x6F\x6C\x6F\x72","\x6C\x61\x62\x65\x6C\x50\x61\x64\x64\x69\x6E\x67","\x69\x6E\x64\x69\x63\x61\x74\x6F\x72\x53\x68\x61\x70\x65","\x69\x6E\x64\x69\x63\x61\x74\x6F\x72\x49\x6D\x61\x67\x65","\x69\x6E\x64\x69\x63\x61\x74\x6F\x72\x43\x6F\x6C\x6F\x72","\x69\x6E\x64\x69\x63\x61\x74\x6F\x72\x53\x74\x72\x6F\x6B\x65\x43\x6F\x6C\x6F\x72","\x69\x6E\x64\x69\x63\x61\x74\x6F\x72\x47\x72\x61\x64\x69\x65\x6E\x74\x43\x6F\x6C\x6F\x72","\x69\x6E\x64\x69\x63\x61\x74\x6F\x72\x53\x70\x61\x63\x69\x6E\x67","\x69\x6E\x64\x69\x63\x61\x74\x6F\x72\x57\x69\x64\x74\x68","\x69\x6E\x64\x69\x63\x61\x74\x6F\x72\x48\x65\x69\x67\x68\x74","\x69\x6E\x64\x69\x63\x61\x74\x6F\x72\x44\x69\x72\x65\x63\x74\x69\x6F\x6E","\x73\x68\x61\x64\x6F\x77","\x73\x65\x67\x6D\x65\x6E\x74","\x65\x6E\x64\x41\x72\x72\x6F\x77","\x73\x74\x61\x72\x74\x41\x72\x72\x6F\x77","\x65\x6E\x64\x53\x69\x7A\x65","\x73\x74\x61\x72\x74\x53\x69\x7A\x65","\x73\x77\x69\x6D\x6C\x61\x6E\x65\x4C\x69\x6E\x65","\x65\x6E\x64\x46\x69\x6C\x6C","\x73\x74\x61\x72\x74\x46\x69\x6C\x6C","\x64\x61\x73\x68\x65\x64","\x64\x61\x73\x68\x50\x61\x74\x74\x65\x72\x6E","\x72\x6F\x75\x6E\x64\x65\x64","\x63\x75\x72\x76\x65\x64","\x61\x72\x63\x53\x69\x7A\x65","\x73\x6D\x6F\x6F\x74\x68","\x73\x6F\x75\x72\x63\x65\x50\x65\x72\x69\x6D\x65\x74\x65\x72\x53\x70\x61\x63\x69\x6E\x67","\x74\x61\x72\x67\x65\x74\x50\x65\x72\x69\x6D\x65\x74\x65\x72\x53\x70\x61\x63\x69\x6E\x67","\x70\x65\x72\x69\x6D\x65\x74\x65\x72\x53\x70\x61\x63\x69\x6E\x67","\x73\x70\x61\x63\x69\x6E\x67","\x73\x70\x61\x63\x69\x6E\x67\x54\x6F\x70","\x73\x70\x61\x63\x69\x6E\x67\x4C\x65\x66\x74","\x73\x70\x61\x63\x69\x6E\x67\x42\x6F\x74\x74\x6F\x6D","\x73\x70\x61\x63\x69\x6E\x67\x52\x69\x67\x68\x74","\x68\x6F\x72\x69\x7A\x6F\x6E\x74\x61\x6C","\x64\x69\x72\x65\x63\x74\x69\x6F\x6E","\x65\x6C\x62\x6F\x77","\x66\x6F\x6E\x74\x43\x6F\x6C\x6F\x72","\x66\x6F\x6E\x74\x53\x74\x79\x6C\x65","\x61\x75\x74\x6F\x73\x69\x7A\x65","\x66\x6F\x6C\x64\x61\x62\x6C\x65","\x65\x64\x69\x74\x61\x62\x6C\x65","\x62\x65\x6E\x64\x61\x62\x6C\x65","\x6D\x6F\x76\x61\x62\x6C\x65","\x72\x65\x73\x69\x7A\x61\x62\x6C\x65","\x63\x6C\x6F\x6E\x65\x61\x62\x6C\x65","\x64\x65\x6C\x65\x74\x61\x62\x6C\x65","\x65\x64\x67\x65\x53\x74\x79\x6C\x65","\x6C\x6F\x6F\x70\x53\x74\x79\x6C\x65","\x72\x6F\x75\x74\x69\x6E\x67\x43\x65\x6E\x74\x65\x72\x58","\x72\x6F\x75\x74\x69\x6E\x67\x43\x65\x6E\x74\x65\x72\x59","\x72\x65\x63\x74\x61\x6E\x67\x6C\x65","\x65\x6C\x6C\x69\x70\x73\x65","\x64\x6F\x75\x62\x6C\x65\x45\x6C\x6C\x69\x70\x73\x65","\x72\x68\x6F\x6D\x62\x75\x73","\x6C\x69\x6E\x65","\x61\x72\x72\x6F\x77","\x6C\x61\x62\x65\x6C","\x63\x79\x6C\x69\x6E\x64\x65\x72","\x73\x77\x69\x6D\x6C\x61\x6E\x65","\x63\x6F\x6E\x6E\x65\x63\x74\x6F\x72","\x61\x63\x74\x6F\x72","\x63\x6C\x6F\x75\x64","\x74\x72\x69\x61\x6E\x67\x6C\x65","\x68\x65\x78\x61\x67\x6F\x6E","\x63\x6C\x61\x73\x73\x69\x63","\x62\x6C\x6F\x63\x6B","\x6F\x76\x61\x6C","\x64\x69\x61\x6D\x6F\x6E\x64","\x64\x69\x61\x6D\x6F\x6E\x64\x54\x68\x69\x6E","\x63\x65\x6E\x74\x65\x72","\x72\x69\x67\x68\x74","\x6E\x6F\x72\x74\x68","\x73\x6F\x75\x74\x68","\x65\x61\x73\x74","\x77\x65\x73\x74","\x76\x65\x72\x74\x69\x63\x61\x6C","\x65\x6C\x62\x6F\x77\x45\x64\x67\x65\x53\x74\x79\x6C\x65","\x65\x6E\x74\x69\x74\x79\x52\x65\x6C\x61\x74\x69\x6F\x6E\x45\x64\x67\x65\x53\x74\x79\x6C\x65","\x6C\x6F\x6F\x70\x45\x64\x67\x65\x53\x74\x79\x6C\x65","\x73\x69\x64\x65\x54\x6F\x53\x69\x64\x65\x45\x64\x67\x65\x53\x74\x79\x6C\x65","\x74\x6F\x70\x54\x6F\x42\x6F\x74\x74\x6F\x6D\x45\x64\x67\x65\x53\x74\x79\x6C\x65","\x6F\x72\x74\x68\x6F\x67\x6F\x6E\x61\x6C\x45\x64\x67\x65\x53\x74\x79\x6C\x65","\x73\x65\x67\x6D\x65\x6E\x74\x45\x64\x67\x65\x53\x74\x79\x6C\x65","\x65\x6C\x6C\x69\x70\x73\x65\x50\x65\x72\x69\x6D\x65\x74\x65\x72","\x72\x65\x63\x74\x61\x6E\x67\x6C\x65\x50\x65\x72\x69\x6D\x65\x74\x65\x72","\x72\x68\x6F\x6D\x62\x75\x73\x50\x65\x72\x69\x6D\x65\x74\x65\x72","\x74\x72\x69\x61\x6E\x67\x6C\x65\x50\x65\x72\x69\x6D\x65\x74\x65\x72","\x70\x72\x6F\x70\x65\x72\x74\x69\x65\x73","\x63\x6F\x6E\x73\x75\x6D\x65\x64","\x67\x65\x74\x4E\x61\x6D\x65","\x67\x65\x74\x50\x72\x6F\x70\x65\x72\x74\x69\x65\x73","\x67\x65\x74\x50\x72\x6F\x70\x65\x72\x74\x79","\x69\x73\x43\x6F\x6E\x73\x75\x6D\x65\x64","\x63\x6F\x6E\x73\x75\x6D\x65","\x65\x76\x74","\x73\x74\x61\x74\x65","\x67\x72\x61\x70\x68\x58","\x67\x72\x61\x70\x68\x59","\x67\x65\x74\x45\x76\x65\x6E\x74","\x67\x65\x74\x53\x6F\x75\x72\x63\x65","\x69\x73\x53\x6F\x75\x72\x63\x65","\x67\x65\x74\x58","\x67\x65\x74\x43\x6C\x69\x65\x6E\x74\x58","\x67\x65\x74\x59","\x67\x65\x74\x43\x6C\x69\x65\x6E\x74\x59","\x67\x65\x74\x47\x72\x61\x70\x68\x58","\x67\x65\x74\x47\x72\x61\x70\x68\x59","\x67\x65\x74\x43\x65\x6C\x6C","\x69\x73\x50\x6F\x70\x75\x70\x54\x72\x69\x67\x67\x65\x72","\x70\x72\x65\x76\x65\x6E\x74\x44\x65\x66\x61\x75\x6C\x74","\x72\x65\x74\x75\x72\x6E\x56\x61\x6C\x75\x65","\x73\x65\x74\x45\x76\x65\x6E\x74\x53\x6F\x75\x72\x63\x65","\x65\x76\x65\x6E\x74\x4C\x69\x73\x74\x65\x6E\x65\x72\x73","\x65\x76\x65\x6E\x74\x73\x45\x6E\x61\x62\x6C\x65\x64","\x65\x76\x65\x6E\x74\x53\x6F\x75\x72\x63\x65","\x67\x65\x74\x45\x76\x65\x6E\x74\x53\x6F\x75\x72\x63\x65","\x72\x65\x6D\x6F\x76\x65\x4C\x69\x73\x74\x65\x6E\x65\x72","\x66\x69\x72\x65\x45\x76\x65\x6E\x74","\x6F\x6E","\x66","\x72\x65\x6D\x6F\x76\x65\x45\x76\x65\x6E\x74\x4C\x69\x73\x74\x65\x6E\x65\x72","\x64\x65\x74\x61\x63\x68\x45\x76\x65\x6E\x74","\x6D\x6F\x75\x73\x65\x64\x6F\x77\x6E","\x6D\x6F\x75\x73\x65\x6D\x6F\x76\x65","\x6D\x6F\x75\x73\x65\x75\x70","\x49\x53\x5F\x54\x4F\x55\x43\x48","\x74\x6F\x75\x63\x68\x73\x74\x61\x72\x74","\x74\x6F\x75\x63\x68\x6D\x6F\x76\x65","\x74\x6F\x75\x63\x68\x65\x6E\x64","\x66\x69\x72\x65\x4D\x6F\x75\x73\x65\x45\x76\x65\x6E\x74","\x61\x64\x64\x47\x65\x73\x74\x75\x72\x65\x4C\x69\x73\x74\x65\x6E\x65\x72\x73","\x64\x62\x6C\x63\x6C\x69\x63\x6B","\x64\x62\x6C\x43\x6C\x69\x63\x6B","\x72\x65\x6C\x65\x61\x73\x65","\x65\x76\x65\x6E\x74","\x64\x65\x74\x61\x69\x6C","\x77\x68\x65\x65\x6C\x44\x65\x6C\x74\x61","\x6D\x6F\x75\x73\x65\x77\x68\x65\x65\x6C","\x44\x4F\x4D\x4D\x6F\x75\x73\x65\x53\x63\x72\x6F\x6C\x6C","\x63\x6F\x6E\x74\x65\x78\x74\x6D\x65\x6E\x75","\x6F\x6E\x63\x6F\x6E\x74\x65\x78\x74\x6D\x65\x6E\x75","\x72\x65\x74\x75\x72\x6E\x20\x66\x61\x6C\x73\x65\x3B","\x73\x72\x63\x45\x6C\x65\x6D\x65\x6E\x74","\x74\x61\x72\x67\x65\x74","\x69\x73\x52\x69\x67\x68\x74\x4D\x6F\x75\x73\x65\x42\x75\x74\x74\x6F\x6E","\x69\x73\x53\x68\x69\x66\x74\x44\x6F\x77\x6E","\x69\x73\x43\x6F\x6E\x74\x72\x6F\x6C\x44\x6F\x77\x6E","\x73\x68\x69\x66\x74\x4B\x65\x79","\x61\x6C\x74\x4B\x65\x79","\x63\x74\x72\x6C\x4B\x65\x79","\x6D\x65\x74\x61\x4B\x65\x79","\x74\x6F\x75\x63\x68\x65\x73","\x63\x68\x61\x6E\x67\x65\x64\x54\x6F\x75\x63\x68\x65\x73","\x63\x6C\x69\x65\x6E\x74\x58","\x67\x65\x74\x4D\x61\x69\x6E\x45\x76\x65\x6E\x74","\x63\x6C\x69\x65\x6E\x74\x59","\x73\x74\x6F\x70\x50\x72\x6F\x70\x61\x67\x61\x74\x69\x6F\x6E","\x63\x61\x6E\x63\x65\x6C\x42\x75\x62\x62\x6C\x65","\x6D\x6F\x75\x73\x65\x44\x6F\x77\x6E","\x6D\x6F\x75\x73\x65\x4D\x6F\x76\x65","\x6D\x6F\x75\x73\x65\x55\x70","\x61\x63\x74\x69\x76\x61\x74\x65","\x72\x65\x73\x69\x7A\x65\x53\x74\x61\x72\x74","\x72\x65\x73\x69\x7A\x65\x45\x6E\x64","\x6D\x6F\x76\x65\x53\x74\x61\x72\x74","\x6D\x6F\x76\x65\x45\x6E\x64","\x70\x61\x6E\x53\x74\x61\x72\x74","\x70\x61\x6E","\x70\x61\x6E\x45\x6E\x64","\x6D\x69\x6E\x69\x6D\x69\x7A\x65","\x6E\x6F\x72\x6D\x61\x6C\x69\x7A\x65","\x6D\x61\x78\x69\x6D\x69\x7A\x65","\x68\x69\x64\x65","\x72\x65\x66\x72\x65\x73\x68","\x73\x69\x7A\x65","\x73\x65\x6C\x65\x63\x74","\x66\x69\x72\x65\x64","\x72\x65\x63\x65\x69\x76\x65","\x63\x6F\x6E\x6E\x65\x63\x74","\x64\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74","\x73\x75\x73\x70\x65\x6E\x64","\x72\x65\x73\x75\x6D\x65","\x6D\x61\x72\x6B","\x73\x65\x73\x73\x69\x6F\x6E","\x72\x6F\x6F\x74","\x70\x6F\x73\x74","\x73\x61\x76\x65","\x62\x65\x66\x6F\x72\x65\x41\x64\x64\x56\x65\x72\x74\x65\x78","\x61\x64\x64\x56\x65\x72\x74\x65\x78","\x61\x66\x74\x65\x72\x41\x64\x64\x56\x65\x72\x74\x65\x78","\x64\x6F\x6E\x65","\x65\x78\x65\x63\x75\x74\x65\x64","\x73\x74\x61\x72\x74\x45\x64\x69\x74","\x65\x6E\x64\x45\x64\x69\x74","\x62\x65\x66\x6F\x72\x65\x55\x6E\x64\x6F","\x75\x6E\x64\x6F","\x72\x65\x64\x6F","\x63\x68\x61\x6E\x67\x65","\x6E\x6F\x74\x69\x66\x79","\x6C\x61\x79\x6F\x75\x74\x43\x65\x6C\x6C\x73","\x73\x63\x61\x6C\x65\x41\x6E\x64\x54\x72\x61\x6E\x73\x6C\x61\x74\x65","\x75\x70","\x64\x6F\x77\x6E","\x61\x64\x64\x43\x65\x6C\x6C\x73","\x63\x65\x6C\x6C\x73\x41\x64\x64\x65\x64","\x6D\x6F\x76\x65\x43\x65\x6C\x6C\x73","\x63\x65\x6C\x6C\x73\x4D\x6F\x76\x65\x64","\x72\x65\x73\x69\x7A\x65\x43\x65\x6C\x6C\x73","\x63\x65\x6C\x6C\x73\x52\x65\x73\x69\x7A\x65\x64","\x74\x6F\x67\x67\x6C\x65\x43\x65\x6C\x6C\x73","\x63\x65\x6C\x6C\x73\x54\x6F\x67\x67\x6C\x65\x64","\x6F\x72\x64\x65\x72\x43\x65\x6C\x6C\x73","\x63\x65\x6C\x6C\x73\x4F\x72\x64\x65\x72\x65\x64","\x72\x65\x6D\x6F\x76\x65\x43\x65\x6C\x6C\x73","\x63\x65\x6C\x6C\x73\x52\x65\x6D\x6F\x76\x65\x64","\x67\x72\x6F\x75\x70\x43\x65\x6C\x6C\x73","\x75\x6E\x67\x72\x6F\x75\x70\x43\x65\x6C\x6C\x73","\x72\x65\x6D\x6F\x76\x65\x43\x65\x6C\x6C\x73\x46\x72\x6F\x6D\x50\x61\x72\x65\x6E\x74","\x66\x6F\x6C\x64\x43\x65\x6C\x6C\x73","\x63\x65\x6C\x6C\x73\x46\x6F\x6C\x64\x65\x64","\x61\x6C\x69\x67\x6E\x43\x65\x6C\x6C\x73","\x6C\x61\x62\x65\x6C\x43\x68\x61\x6E\x67\x65\x64","\x63\x6F\x6E\x6E\x65\x63\x74\x43\x65\x6C\x6C","\x63\x65\x6C\x6C\x43\x6F\x6E\x6E\x65\x63\x74\x65\x64","\x73\x70\x6C\x69\x74\x45\x64\x67\x65","\x66\x6C\x69\x70\x45\x64\x67\x65","\x73\x74\x61\x72\x74\x45\x64\x69\x74\x69\x6E\x67","\x61\x64\x64\x4F\x76\x65\x72\x6C\x61\x79","\x72\x65\x6D\x6F\x76\x65\x4F\x76\x65\x72\x6C\x61\x79","\x75\x70\x64\x61\x74\x65\x43\x65\x6C\x6C\x53\x69\x7A\x65","\x65\x73\x63\x61\x70\x65","\x64\x6F\x75\x62\x6C\x65\x43\x6C\x69\x63\x6B","\x73\x74\x61\x72\x74","\x72\x65\x73\x65\x74","\x75\x72\x6C","\x70\x61\x72\x61\x6D\x73","\x6D\x65\x74\x68\x6F\x64","\x50\x4F\x53\x54","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x70\x61\x73\x73\x77\x6F\x72\x64","\x62\x69\x6E\x61\x72\x79","\x72\x65\x71\x75\x65\x73\x74","\x69\x73\x42\x69\x6E\x61\x72\x79","\x73\x65\x74\x42\x69\x6E\x61\x72\x79","\x72\x65\x73\x70\x6F\x6E\x73\x65\x54\x65\x78\x74","\x67\x65\x74\x44\x6F\x63\x75\x6D\x65\x6E\x74\x45\x6C\x65\x6D\x65\x6E\x74","\x67\x65\x74\x58\x6D\x6C","\x72\x65\x73\x70\x6F\x6E\x73\x65\x58\x4D\x4C","\x70\x61\x72\x73\x65\x58\x6D\x6C","\x67\x65\x74\x53\x74\x61\x74\x75\x73","\x73\x74\x61\x74\x75\x73","\x58\x4D\x4C\x48\x74\x74\x70\x52\x65\x71\x75\x65\x73\x74","\x6F\x76\x65\x72\x72\x69\x64\x65\x4D\x69\x6D\x65\x54\x79\x70\x65","\x74\x65\x78\x74\x2F\x70\x6C\x61\x69\x6E\x3B\x20\x63\x68\x61\x72\x73\x65\x74\x3D\x78\x2D\x75\x73\x65\x72\x2D\x64\x65\x66\x69\x6E\x65\x64","\x4D\x69\x63\x72\x6F\x73\x6F\x66\x74\x2E\x58\x4D\x4C\x48\x54\x54\x50","\x6F\x6E\x72\x65\x61\x64\x79\x73\x74\x61\x74\x65\x63\x68\x61\x61\x6E\x67\x65","\x62\x69\x6E\x64","\x73\x65\x74\x52\x65\x71\x75\x65\x73\x74\x48\x65\x61\x64\x65\x72\x73","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2F\x78\x2D\x77\x77\x77\x2D\x66\x6F\x72\x6D\x2D\x75\x72\x6C\x65\x6E\x63\x6F\x64\x65\x64","\x73\x65\x74\x52\x65\x71\x75\x65\x73\x74\x48\x65\x61\x64\x65\x72","\x6F\x6E\x62\x65\x66\x6F\x72\x65\x75\x6E\x6C\x6F\x61\x64","\x66\x6F\x72\x6D","\x61\x63\x74\x69\x6F\x6E","\x26","\x73\x75\x62\x6D\x69\x74","\x63\x65\x6C\x6C\x73","\x69\x6E\x73\x65\x72\x74\x43\x6F\x75\x6E\x74","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C\x73","\x67\x65\x74\x45\x78\x70\x6F\x72\x74\x61\x62\x6C\x65\x43\x65\x6C\x6C\x73","\x63\x6C\x6F\x6E\x65\x43\x65\x6C\x6C\x73","\x67\x65\x74\x49\x6D\x70\x6F\x72\x74\x61\x62\x6C\x65\x43\x65\x6C\x6C\x73","\x53\x54\x45\x50\x53\x49\x5A\x45","\x67\x65\x74\x44\x65\x66\x61\x75\x6C\x74\x50\x61\x72\x65\x6E\x74","\x69\x6D\x70\x6F\x72\x74\x43\x65\x6C\x6C\x73","\x73\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C\x73","\x63\x6F\x6E\x74\x65\x6E\x74","\x69\x6E\x73\x74\x61\x6C\x6C\x4D\x61\x78\x69\x6D\x69\x7A\x65\x48\x61\x6E\x64\x6C\x65\x72","\x69\x6E\x73\x74\x61\x6C\x6C\x4D\x69\x6E\x69\x6D\x69\x7A\x65\x48\x61\x6E\x64\x6C\x65\x72","\x69\x6E\x73\x74\x61\x6C\x6C\x43\x6C\x6F\x73\x65\x48\x61\x6E\x64\x6C\x65\x72","\x73\x65\x74\x4D\x69\x6E\x69\x6D\x69\x7A\x61\x62\x6C\x65","\x73\x65\x74\x54\x69\x74\x6C\x65","\x69\x6E\x73\x74\x61\x6C\x6C\x4D\x6F\x76\x65\x48\x61\x6E\x64\x6C\x65\x72","\x72\x65\x70\x6C\x61\x63\x65\x43\x68\x69\x6C\x64","\x63\x6C\x6F\x73\x65\x49\x6D\x61\x67\x65","\x2F\x63\x6C\x6F\x73\x65\x2E\x67\x69\x66","\x6D\x69\x6E\x69\x6D\x69\x7A\x65\x49\x6D\x61\x67\x65","\x2F\x6D\x69\x6E\x69\x6D\x69\x7A\x65\x2E\x67\x69\x66","\x6E\x6F\x72\x6D\x61\x6C\x69\x7A\x65\x49\x6D\x61\x67\x65","\x2F\x6E\x6F\x72\x6D\x61\x6C\x69\x7A\x65\x2E\x67\x69\x66","\x6D\x61\x78\x69\x6D\x69\x7A\x65\x49\x6D\x61\x67\x65","\x2F\x6D\x61\x78\x69\x6D\x69\x7A\x65\x2E\x67\x69\x66","\x72\x65\x73\x69\x7A\x65\x49\x6D\x61\x67\x65","\x2F\x72\x65\x73\x69\x7A\x65\x2E\x67\x69\x66","\x6D\x69\x6E\x69\x6D\x75\x6D\x53\x69\x7A\x65","\x74\x69\x74\x6C\x65","\x6D\x78\x57\x69\x6E\x64\x6F\x77","\x63\x6C\x61\x73\x73\x4E\x61\x6D\x65","\x54\x69\x74\x6C\x65","\x50\x61\x6E\x65","\x63\x6F\x6E\x74\x65\x6E\x74\x57\x72\x61\x70\x70\x65\x72","\x61\x63\x74\x69\x76\x65\x57\x69\x6E\x64\x6F\x77","\x7A\x49\x6E\x64\x65\x78","\x70\x72\x65\x76\x69\x6F\x75\x73\x57\x69\x6E\x64\x6F\x77","\x66\x69\x74","\x69\x73\x52\x65\x73\x69\x7A\x61\x62\x6C\x65","\x32\x70\x78","\x6E\x77\x2D\x72\x65\x73\x69\x7A\x65","\x73\x65\x74\x53\x69\x7A\x65","\x72\x65\x6D\x6F\x76\x65\x47\x65\x73\x74\x75\x72\x65\x4C\x69\x73\x74\x65\x6E\x65\x72\x73","\x67\x65\x74\x4D\x69\x6E\x69\x6D\x75\x6D\x53\x69\x7A\x65","\x4D\x69\x6E\x69\x6D\x69\x7A\x65","\x6D\x61\x72\x67\x69\x6E\x52\x69\x67\x68\x74","\x31\x70\x78","\x4E\x6F\x72\x6D\x61\x6C\x69\x7A\x65","\x4D\x61\x78\x69\x6D\x69\x7A\x65","\x6D\x61\x72\x67\x69\x6E\x4C\x65\x66\x74","\x30\x70\x78","\x73\x65\x74\x4C\x6F\x63\x61\x74\x69\x6F\x6E","\x63\x6C\x6F\x73\x65\x49\x6D\x67","\x43\x6C\x6F\x73\x65","\x69\x6E\x73\x65\x72\x74\x42\x65\x66\x6F\x72\x65","\x73\x65\x74\x49\x6D\x61\x67\x65","\x34\x70\x78","\x6D\x61\x72\x67\x69\x6E\x54\x6F\x70","\x2D\x32\x70\x78","\x67\x65\x74\x54\x61\x62\x6C\x65","\x61\x64\x64\x42\x75\x74\x74\x6F\x6E\x73","\x6F\x6B","\x4F\x4B","\x63\x61\x6E\x63\x65\x6C","\x43\x61\x6E\x63\x65\x6C","\x61\x64\x64\x54\x65\x78\x74","\x69\x6E\x70\x75\x74","\x74\x65\x78\x74","\x61\x64\x64\x46\x69\x65\x6C\x64","\x61\x64\x64\x43\x68\x65\x63\x6B\x62\x6F\x78","\x63\x68\x65\x63\x6B\x62\x6F\x78","\x63\x68\x65\x63\x6B\x65\x64","\x61\x64\x64\x54\x65\x78\x74\x61\x72\x65\x61","\x72\x6F\x77\x73","\x61\x64\x64\x43\x6F\x6D\x62\x6F","\x6D\x75\x6C\x74\x69\x70\x6C\x65","\x61\x64\x64\x4F\x70\x74\x69\x6F\x6E","\x6F\x70\x74\x69\x6F\x6E","\x73\x65\x6C\x65\x63\x74\x65\x64","\x72\x65\x73\x69\x7A\x65\x57\x69\x64\x74\x68","\x72\x65\x73\x69\x7A\x65\x48\x65\x69\x67\x68\x74","\x68\x61\x6E\x64\x6C\x69\x6E\x67\x52\x65\x73\x69\x7A\x65","\x67\x65\x74\x44\x6F\x63\x75\x6D\x65\x6E\x74\x57\x69\x64\x74\x68","\x67\x65\x74\x44\x6F\x63\x75\x6D\x65\x6E\x74\x48\x65\x69\x67\x68\x74","\x65\x6C\x65\x6D\x65\x6E\x74","\x64\x72\x6F\x70\x48\x61\x6E\x64\x6C\x65\x72","\x64\x72\x61\x67\x45\x6C\x65\x6D\x65\x6E\x74","\x70\x72\x65\x76\x69\x65\x77\x45\x6C\x65\x6D\x65\x6E\x74","\x65\x6E\x61\x62\x6C\x65\x64","\x63\x75\x72\x72\x65\x6E\x74\x47\x72\x61\x70\x68","\x63\x75\x72\x72\x65\x6E\x74\x44\x72\x6F\x70\x54\x61\x72\x67\x65\x74","\x63\x75\x72\x72\x65\x6E\x74\x50\x6F\x69\x6E\x74","\x63\x75\x72\x72\x65\x6E\x74\x47\x75\x69\x64\x65","\x63\x75\x72\x72\x65\x6E\x74\x48\x69\x67\x68\x6C\x69\x67\x68\x74","\x67\x75\x69\x64\x65\x73\x45\x6E\x61\x62\x6C\x65\x64","\x67\x72\x69\x64\x45\x6E\x61\x62\x6C\x65\x64","\x64\x72\x61\x67\x45\x6C\x65\x6D\x65\x6E\x74\x5A\x49\x6E\x64\x65\x78","\x64\x72\x61\x67\x45\x6C\x65\x6D\x65\x6E\x74\x4F\x70\x61\x63\x69\x74\x79","\x69\x73\x45\x6E\x61\x62\x6C\x65\x64","\x73\x65\x74\x45\x6E\x61\x62\x6C\x65\x64","\x69\x73\x47\x75\x69\x64\x65\x73\x45\x6E\x61\x62\x6C\x65\x64","\x69\x73\x47\x72\x69\x64\x45\x6E\x61\x62\x6C\x65\x64","\x73\x65\x74\x47\x72\x69\x64\x45\x6E\x61\x62\x6C\x65\x64","\x67\x65\x74\x43\x65\x6C\x6C\x41\x74","\x6D\x6F\x75\x73\x65\x4D\x6F\x76\x65\x48\x61\x6E\x64\x6C\x65\x72","\x73\x74\x61\x72\x74\x44\x72\x61\x67","\x6D\x6F\x75\x73\x65\x55\x70\x48\x61\x6E\x64\x6C\x65\x72","\x73\x74\x6F\x70\x44\x72\x61\x67","\x67\x72\x61\x70\x68\x43\x6F\x6E\x74\x61\x69\x6E\x73\x45\x76\x65\x6E\x74","\x64\x72\x61\x67\x45\x78\x69\x74","\x64\x72\x61\x67\x45\x6E\x74\x65\x72","\x64\x72\x61\x67\x4F\x76\x65\x72","\x64\x72\x6F\x70","\x69\x73\x4D\x6F\x75\x73\x65\x44\x6F\x77\x6E","\x67\x65\x74\x47\x75\x69\x64\x65\x53\x74\x61\x74\x65\x73","\x67\x72\x61\x70\x68\x48\x61\x6E\x64\x6C\x65\x72","\x61\x75\x74\x6F\x53\x63\x72\x6F\x6C\x6C","\x61\x75\x74\x6F\x45\x78\x74\x65\x6E\x64","\x73\x63\x72\x6F\x6C\x6C\x50\x6F\x69\x6E\x74\x54\x6F\x56\x69\x73\x69\x62\x6C\x65","\x69\x73\x44\x72\x6F\x70\x45\x6E\x61\x62\x6C\x65\x64","\x68\x69\x67\x68\x6C\x69\x67\x68\x74","\x33","\x69\x73\x47\x72\x69\x64\x45\x6E\x61\x62\x6C\x65\x64\x45\x76\x65\x6E\x74","\x69\x73\x45\x6E\x61\x62\x6C\x65\x64\x46\x6F\x72\x45\x76\x65\x6E\x74","\x67\x72\x69\x64\x53\x69\x7A\x65","\x73\x6E\x61\x70","\x70\x72\x65\x76\x69\x65\x77\x4F\x66\x66\x73\x65\x74","\x6E\x6F\x52\x65\x73\x65\x74","\x75\x70\x64\x61\x74\x65\x44\x65\x66\x61\x75\x6C\x74\x4D\x6F\x64\x65","\x61\x64\x64\x49\x74\x65\x6D","\x6D\x78\x54\x6F\x6F\x6C\x62\x61\x72\x4D\x6F\x64\x65","\x6D\x78\x54\x6F\x6F\x6C\x62\x61\x72\x49\x74\x65\x6D","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x43\x6F\x6C\x6F\x72","\x6D\x65\x6E\x75","\x63\x75\x72\x72\x65\x6E\x74\x49\x6D\x67","\x69\x73\x4D\x65\x6E\x75\x53\x68\x6F\x77\x69\x6E\x67","\x68\x69\x64\x65\x4D\x65\x6E\x75","\x66\x61\x63\x74\x6F\x72\x79\x4D\x65\x74\x68\x6F\x64","\x53\x65\x6C\x65\x63\x74\x65\x64","\x6D\x6F\x75\x73\x65\x6F\x75\x74","\x6D\x78\x54\x6F\x6F\x6C\x62\x61\x72\x43\x6F\x6D\x62\x6F\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x6D\x78\x54\x6F\x6F\x6C\x62\x61\x72\x43\x6F\x6D\x62\x6F","\x61\x64\x64\x41\x63\x74\x69\x6F\x6E\x43\x6F\x6D\x62\x6F","\x73\x65\x6C\x65\x63\x74\x65\x64\x49\x6E\x64\x65\x78","\x6F\x70\x74\x69\x6F\x6E\x73","\x66\x75\x6E\x63\x74","\x61\x64\x64\x53\x77\x69\x74\x63\x68\x4D\x6F\x64\x65","\x69\x6E\x69\x74\x69\x61\x6C\x43\x6C\x61\x73\x73\x4E\x61\x6D\x65","\x61\x6C\x74\x49\x63\x6F\x6E","\x73\x65\x6C\x65\x63\x74\x65\x64\x4D\x6F\x64\x65","\x64\x65\x66\x61\x75\x6C\x74\x4D\x6F\x64\x65","\x73\x65\x6C\x65\x63\x74\x4D\x6F\x64\x65","\x61\x64\x64\x4D\x6F\x64\x65","\x64\x65\x66\x61\x75\x6C\x74\x46\x75\x6E\x63\x74\x69\x6F\x6E","\x72\x65\x73\x65\x74\x4D\x6F\x64\x65","\x61\x64\x64\x53\x65\x70\x61\x72\x61\x74\x6F\x72","\x61\x64\x64\x42\x72\x65\x61\x6B","\x61\x64\x64\x4C\x69\x6E\x65","\x68\x72","\x36\x70\x78","\x75\x72\x6C\x49\x6E\x69\x74","\x75\x72\x6C\x50\x6F\x6C\x6C","\x75\x72\x6C\x4E\x6F\x74\x69\x66\x79","\x63\x6F\x64\x65\x63","\x6C\x6F\x6F\x6B\x75\x70","\x65\x64\x69\x74","\x63\x6F\x6E\x6E\x65\x63\x74\x65\x64","\x73\x75\x73\x70\x65\x6E\x64\x65\x64","\x3C\x65\x64\x69\x74\x3E","\x63\x68\x61\x6E\x67\x65\x73","\x75\x6E\x64\x6F\x6E\x65","\x65\x6E\x63\x6F\x64\x65\x43\x68\x61\x6E\x67\x65\x73","\x3C\x2F\x65\x64\x69\x74\x3E","\x6C\x69\x6E\x65\x66\x65\x65\x64","\x65\x73\x63\x61\x70\x65\x50\x6F\x73\x74\x44\x61\x74\x61","\x73\x69\x67\x6E\x69\x66\x69\x63\x61\x6E\x74\x52\x65\x6D\x6F\x74\x65\x43\x68\x61\x6E\x67\x65\x73","\x73\x65\x6E\x74","\x72\x65\x63\x65\x69\x76\x65\x64","\x70\x6F\x6C\x6C\x69\x6E\x67","\x70\x6F\x6C\x6C","\x73\x74\x6F\x70","\x72\x65\x61\x73\x6F\x6E","\x6D\x78\x53\x65\x73\x73\x69\x6F\x6E\x2E\x6E\x6F\x74\x69\x66\x79\x3A\x20","\x20\x78\x6D\x6C\x3D","\x3C\x6D\x65\x73\x73\x61\x67\x65\x3E\x3C\x64\x65\x6C\x74\x61\x3E","\x3C\x2F\x64\x65\x6C\x74\x61\x3E\x3C\x2F\x6D\x65\x73\x73\x61\x67\x65\x3E","\x78\x6D\x6C\x3D","\x69\x73\x56\x61\x6C\x69\x64\x52\x65\x73\x70\x6F\x6E\x73\x65","\x49\x6E\x76\x61\x6C\x69\x64\x20\x72\x65\x73\x70\x6F\x6E\x73\x65\x3A\x20","\x52\x65\x73\x70\x6F\x6E\x73\x65\x20\x6E\x6F\x74\x20\x72\x65\x61\x64\x79","\x54\x72\x61\x6E\x73\x6D\x69\x73\x73\x69\x6F\x6E\x20\x65\x72\x72\x6F\x72","\x3C\x3F\x70\x68\x70","\x6E\x61\x6D\x65\x73\x70\x61\x63\x65","\x70\x72\x65\x66\x69\x78","\x70\x72\x6F\x63\x65\x73\x73\x53\x74\x61\x74\x65","\x64\x65\x6C\x74\x61","\x70\x72\x6F\x63\x65\x73\x73\x44\x65\x6C\x74\x61","\x64\x65\x63\x6F\x64\x65","\x70\x72\x6F\x63\x65\x73\x73\x45\x64\x69\x74","\x64\x65\x63\x6F\x64\x65\x43\x68\x61\x6E\x67\x65\x73","\x63\x72\x65\x61\x74\x65\x55\x6E\x64\x6F\x61\x62\x6C\x65\x45\x64\x69\x74","\x73\x6F\x75\x72\x63\x65","\x64\x65\x63\x6F\x64\x65\x43\x68\x61\x6E\x67\x65","\x6D\x78\x52\x6F\x6F\x74\x43\x68\x61\x6E\x67\x65","\x6D\x78\x43\x68\x69\x6C\x64\x43\x68\x61\x6E\x67\x65","\x70\x61\x72\x65\x6E\x74","\x63\x65\x6C\x6C\x52\x65\x6D\x6F\x76\x65\x64","\x67\x65\x74\x49\x64","\x70\x75\x74\x4F\x62\x6A\x65\x63\x74","\x73\x69\x67\x6E\x69\x66\x69\x63\x61\x6E\x74","\x72\x65\x64\x6F\x6E\x65","\x69\x73\x45\x6D\x70\x74\x79","\x69\x73\x53\x69\x67\x6E\x69\x66\x69\x63\x61\x6E\x74","\x64\x69\x65","\x68\x69\x73\x74\x6F\x72\x79","\x69\x6E\x64\x65\x78\x4F\x66\x4E\x65\x78\x74\x41\x64\x64","\x63\x61\x6E\x55\x6E\x64\x6F","\x63\x61\x6E\x52\x65\x64\x6F","\x75\x6E\x64\x6F\x61\x62\x6C\x65\x45\x64\x69\x74\x48\x61\x70\x70\x65\x6E\x65\x64","\x73\x68\x69\x66\x74","\x64\x61\x74\x61\x3A\x69\x6D\x61\x67\x65","\x69\x73\x52\x65\x6C\x61\x74\x69\x76\x65\x55\x72\x6C","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x2F\x2F","\x68\x6F\x73\x74","\x70\x61\x74\x68\x6E\x61\x6D\x65","\x6C\x61\x73\x74\x49\x6E\x64\x65\x78\x4F\x66","\x74\x68\x72\x65\x61\x64","\x61\x63\x74\x69\x76\x65","\x64\x79","\x64\x78","\x74\x30\x79","\x74\x30\x78","\x74\x64\x79","\x74\x64\x78","\x73\x63\x72\x6F\x6C\x6C\x62\x61\x72\x73","\x6D\x6F\x75\x73\x65\x4C\x69\x73\x74\x65\x6E\x65\x72","\x61\x64\x64\x4D\x6F\x75\x73\x65\x4C\x69\x73\x74\x65\x6E\x65\x72","\x68\x61\x73\x53\x63\x72\x6F\x6C\x6C\x62\x61\x72\x73","\x70\x61\x6E\x47\x72\x61\x70\x68","\x70\x61\x6E\x44\x78","\x70\x61\x6E\x44\x79","\x67\x65\x74\x44\x78","\x67\x65\x74\x44\x79","\x64\x65\x6C\x61\x79","\x73\x65\x74\x49\x6E\x74\x65\x72\x76\x61\x6C","\x69\x73\x41\x63\x74\x69\x76\x65","\x70\x61\x6E\x54\x6F","\x68\x61\x6E\x64\x6C\x65\x4D\x6F\x75\x73\x65\x4F\x75\x74","\x64\x61\x6D\x70\x65\x72","\x63\x6C\x65\x61\x72\x49\x6E\x74\x65\x72\x76\x61\x6C","\x73\x65\x74\x54\x72\x61\x6E\x73\x6C\x61\x74\x65","\x72\x65\x6D\x6F\x76\x65\x4D\x6F\x75\x73\x65\x4C\x69\x73\x74\x65\x6E\x65\x72","\x73\x75\x62\x6D\x65\x6E\x75\x49\x6D\x61\x67\x65","\x2F\x73\x75\x62\x6D\x65\x6E\x75\x2E\x67\x69\x66","\x75\x73\x65\x4C\x65\x66\x74\x42\x75\x74\x74\x6F\x6E\x46\x6F\x72\x50\x6F\x70\x75\x70","\x69\x74\x65\x6D\x43\x6F\x75\x6E\x74","\x61\x75\x74\x6F\x45\x78\x70\x61\x6E\x64","\x73\x6D\x61\x72\x74\x53\x65\x70\x61\x72\x61\x74\x6F\x72\x73","\x6C\x61\x62\x65\x6C\x73","\x6D\x78\x50\x6F\x70\x75\x70\x4D\x65\x6E\x75","\x64\x69\x73\x61\x62\x6C\x65\x43\x6F\x6E\x74\x65\x78\x74\x4D\x65\x6E\x75","\x69\x73\x4C\x65\x66\x74\x4D\x6F\x75\x73\x65\x42\x75\x74\x74\x6F\x6E","\x77\x69\x6C\x6C\x41\x64\x64\x53\x65\x70\x61\x72\x61\x74\x6F\x72","\x63\x6F\x6E\x74\x61\x69\x6E\x73\x49\x74\x65\x6D\x73","\x6D\x78\x50\x6F\x70\x75\x70\x4D\x65\x6E\x75\x49\x74\x65\x6D","\x6D\x78\x50\x6F\x70\x75\x70\x4D\x65\x6E\x75\x49\x63\x6F\x6E","\x20\x64\x69\x73\x61\x62\x6C\x65\x64","\x70\x61\x64\x64\x69\x6E\x67\x52\x69\x67\x68\x74","\x74\x65\x78\x74\x41\x6C\x69\x67\x6E","\x63\x72\x65\x61\x74\x65\x53\x75\x62\x6D\x65\x6E\x75","\x65\x76\x65\x6E\x74\x52\x65\x63\x65\x69\x76\x65\x72","\x61\x63\x74\x69\x76\x65\x52\x6F\x77","\x68\x69\x64\x65\x53\x75\x62\x6D\x65\x6E\x75","\x73\x68\x6F\x77\x53\x75\x62\x6D\x65\x6E\x75","\x6D\x78\x50\x6F\x70\x75\x70\x4D\x65\x6E\x75\x49\x74\x65\x6D\x48\x6F\x76\x65\x72","\x30\x20\x30\x20\x30\x20\x30\x70\x78","\x63\x6F\x6C\x53\x70\x61\x6E","\x32","\x73\x68\x6F\x77\x4D\x65\x6E\x75","\x63\x68\x61\x6E\x67\x65\x48\x61\x6E\x64\x6C\x65\x72","\x67\x72\x61\x70\x68\x4D\x6F\x64\x65\x6C\x43\x68\x61\x6E\x67\x65\x64","\x73\x65\x74\x47\x72\x61\x70\x68","\x67\x72\x61\x70\x68","\x61\x75\x74\x6F\x53\x61\x76\x65\x44\x65\x6C\x61\x79","\x61\x75\x74\x6F\x53\x61\x76\x65\x54\x68\x72\x6F\x74\x74\x6C\x65","\x61\x75\x74\x6F\x53\x61\x76\x65\x54\x68\x72\x65\x73\x68\x6F\x6C\x64","\x69\x67\x6E\x6F\x72\x65\x64\x43\x68\x61\x6E\x67\x65\x73","\x6C\x61\x73\x74\x53\x6E\x61\x70\x73\x68\x6F\x74","\x73\x74\x61\x72\x74\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E","\x75\x70\x64\x61\x74\x65\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E","\x73\x74\x6F\x70\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E","\x73\x74\x65\x70\x73","\x65\x61\x73\x65","\x73\x74\x65\x70","\x61\x6E\x69\x6D\x61\x74\x65\x43\x65\x6C\x6C","\x67\x65\x74\x44\x65\x6C\x74\x61","\x69\x73\x56\x65\x72\x74\x65\x78","\x6D\x6F\x76\x65\x53\x74\x61\x74\x65","\x73\x74\x6F\x70\x52\x65\x63\x75\x72\x73\x69\x6F\x6E","\x67\x65\x74\x4F\x72\x69\x67\x69\x6E\x46\x6F\x72\x43\x65\x6C\x6C","\x67\x65\x74\x50\x61\x72\x65\x6E\x74","\x67\x65\x74\x43\x65\x6C\x6C\x47\x65\x6F\x6D\x65\x74\x72\x79","\x69\x6D\x61\x67\x65\x73","\x61\x6C\x74","\x70\x75\x74\x49\x6D\x61\x67\x65","\x67\x65\x74\x49\x6D\x61\x67\x65","\x66\x61\x6C\x6C\x62\x61\x63\x6B","\x69\x6E\x63\x6C\x75\x64\x65\x4F\x76\x65\x72\x6C\x61\x79\x73","\x64\x72\x61\x77\x53\x74\x61\x74\x65","\x64\x72\x61\x77\x43\x65\x6C\x6C\x53\x74\x61\x74\x65","\x76\x69\x73\x69\x74\x53\x74\x61\x74\x65\x73\x52\x65\x63\x75\x72\x73\x69\x76\x65","\x64\x72\x61\x77\x4F\x76\x65\x72\x6C\x61\x79\x73","\x70\x61\x69\x6E\x74","\x72\x65\x73\x74\x6F\x72\x65","\x6F\x76\x65\x72\x6C\x61\x79\x73","\x63\x6F\x6E\x76\x65\x72\x74\x65\x72","\x63\x72\x65\x61\x74\x65\x55\x72\x6C\x43\x6F\x6E\x76\x65\x72\x74\x65\x72","\x73\x74\x61\x74\x65\x73","\x70\x61\x74\x68","\x72\x6F\x74\x61\x74\x65\x48\x74\x6D\x6C","\x6C\x61\x73\x74\x58","\x6C\x61\x73\x74\x59","\x6D\x6F\x76\x65\x4F\x70","\x4D","\x6C\x69\x6E\x65\x4F\x70","\x4C","\x71\x75\x61\x64\x4F\x70","\x51","\x63\x75\x72\x76\x65\x4F\x70","\x43","\x63\x6C\x6F\x73\x65\x4F\x70","\x5A","\x70\x6F\x69\x6E\x74\x65\x72\x45\x76\x65\x6E\x74\x73","\x63\x72\x65\x61\x74\x65\x53\x74\x61\x74\x65","\x33\x20\x33","\x66\x6C\x61\x74","\x6D\x69\x74\x65\x72","\x23\x30\x30\x30\x30\x30\x30","\x53\x48\x41\x44\x4F\x57\x43\x4F\x4C\x4F\x52","\x53\x48\x41\x44\x4F\x57\x5F\x4F\x50\x41\x43\x49\x54\x59","\x53\x48\x41\x44\x4F\x57\x5F\x4F\x46\x46\x53\x45\x54\x5F\x58","\x53\x48\x41\x44\x4F\x57\x5F\x4F\x46\x46\x53\x45\x54\x5F\x59","\x66\x6F\x72\x6D\x61\x74","\x61\x64\x64\x4F\x70","\x72\x6F\x74\x61\x74\x65\x50\x6F\x69\x6E\x74","\x70\x6F\x70","\x73\x65\x74\x41\x6C\x70\x68\x61","\x61\x6C\x70\x68\x61","\x73\x65\x74\x46\x69\x6C\x6C\x43\x6F\x6C\x6F\x72","\x73\x65\x74\x47\x72\x61\x64\x69\x65\x6E\x74","\x66\x69\x6C\x6C\x41\x6C\x70\x68\x61","\x67\x72\x61\x64\x69\x65\x6E\x74\x41\x6C\x70\x68\x61","\x73\x65\x74\x53\x74\x72\x6F\x6B\x65\x43\x6F\x6C\x6F\x72","\x73\x65\x74\x53\x74\x72\x6F\x6B\x65\x57\x69\x64\x74\x68","\x73\x65\x74\x44\x61\x73\x68\x65\x64","\x73\x65\x74\x44\x61\x73\x68\x50\x61\x74\x74\x65\x72\x6E","\x73\x65\x74\x4C\x69\x6E\x65\x43\x61\x70","\x6C\x69\x6E\x65\x43\x61\x70","\x73\x65\x74\x4C\x69\x6E\x65\x4A\x6F\x69\x6E","\x6C\x69\x6E\x65\x4A\x6F\x69\x6E","\x73\x65\x74\x4D\x69\x74\x65\x72\x4C\x69\x6D\x69\x74","\x6D\x69\x74\x65\x72\x4C\x69\x6D\x69\x74","\x73\x65\x74\x46\x6F\x6E\x74\x43\x6F\x6C\x6F\x72","\x73\x65\x74\x46\x6F\x6E\x74\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x43\x6F\x6C\x6F\x72","\x66\x6F\x6E\x74\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x43\x6F\x6C\x6F\x72","\x73\x65\x74\x46\x6F\x6E\x74\x42\x6F\x72\x64\x65\x72\x43\x6F\x6C\x6F\x72","\x66\x6F\x6E\x74\x42\x6F\x72\x64\x65\x72\x43\x6F\x6C\x6F\x72","\x73\x65\x74\x46\x6F\x6E\x74\x53\x69\x7A\x65","\x73\x65\x74\x46\x6F\x6E\x74\x46\x61\x6D\x69\x6C\x79","\x73\x65\x74\x46\x6F\x6E\x74\x53\x74\x79\x6C\x65","\x73\x65\x74\x53\x68\x61\x64\x6F\x77","\x73\x65\x74\x53\x68\x61\x64\x6F\x77\x43\x6F\x6C\x6F\x72","\x73\x68\x61\x64\x6F\x77\x43\x6F\x6C\x6F\x72","\x73\x65\x74\x53\x68\x61\x64\x6F\x77\x41\x6C\x70\x68\x61","\x73\x68\x61\x64\x6F\x77\x41\x6C\x70\x68\x61","\x73\x65\x74\x53\x68\x61\x64\x6F\x77\x4F\x66\x66\x73\x65\x74","\x73\x68\x61\x64\x6F\x77\x44\x78","\x73\x68\x61\x64\x6F\x77\x44\x79","\x62\x65\x67\x69\x6E","\x6D\x6F\x76\x65\x54\x6F","\x6C\x69\x6E\x65\x54\x6F","\x71\x75\x61\x64\x54\x6F","\x63\x75\x72\x76\x65\x54\x6F","\x61\x72\x63\x54\x6F","\x61\x72\x63\x54\x6F\x43\x75\x72\x76\x65\x73","\x65\x6E\x64","\x77\x72\x69\x74\x65\x44\x65\x66\x61\x75\x6C\x74\x73","\x65\x78\x74\x65\x6E\x64","\x74\x65\x78\x74\x45\x6E\x61\x62\x6C\x65\x64","\x63\x6F\x6D\x70\x72\x65\x73\x73\x65\x64","\x66\x6F\x6E\x74\x66\x61\x6D\x69\x6C\x79","\x66\x61\x6D\x69\x6C\x79","\x66\x6F\x6E\x74\x73\x69\x7A\x65","\x73\x68\x61\x64\x6F\x77\x63\x6F\x6C\x6F\x72","\x73\x68\x61\x64\x6F\x77\x61\x6C\x70\x68\x61","\x73\x68\x61\x64\x6F\x77\x6F\x66\x66\x73\x65\x74","\x74\x6F\x46\x69\x78\x65\x64","\x72\x6F\x74\x61\x74\x65","\x74\x68\x65\x74\x61","\x63\x78","\x63\x79","\x66\x69\x6C\x6C\x63\x6F\x6C\x6F\x72","\x67\x72\x61\x64\x69\x65\x6E\x74","\x63\x31","\x63\x32","\x77","\x68","\x61\x6C\x70\x68\x61\x31","\x61\x6C\x70\x68\x61\x32","\x73\x74\x72\x6F\x6B\x65\x63\x6F\x6C\x6F\x72","\x73\x74\x72\x6F\x6B\x65\x77\x69\x64\x74\x68","\x64\x61\x73\x68\x70\x61\x74\x74\x65\x72\x6E","\x70\x61\x74\x74\x65\x72\x6E","\x6C\x69\x6E\x65\x63\x61\x70","\x63\x61\x70","\x6C\x69\x6E\x65\x6A\x6F\x69\x6E","\x6D\x69\x74\x65\x72\x6C\x69\x6D\x69\x74","\x6C\x69\x6D\x69\x74","\x66\x6F\x6E\x74\x63\x6F\x6C\x6F\x72","\x66\x6F\x6E\x74\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x63\x6F\x6C\x6F\x72","\x66\x6F\x6E\x74\x62\x6F\x72\x64\x65\x72\x63\x6F\x6C\x6F\x72","\x66\x6F\x6E\x74\x73\x74\x79\x6C\x65","\x72\x65\x63\x74","\x72\x6F\x75\x6E\x64\x72\x65\x63\x74","\x63\x6F\x6E\x76\x65\x72\x74","\x61\x73\x70\x65\x63\x74","\x71\x75\x61\x64","\x78\x31","\x79\x31","\x78\x32","\x79\x32","\x63\x75\x72\x76\x65","\x78\x33","\x79\x33","\x69\x73\x4E\x6F\x64\x65","\x73\x74\x72","\x77\x72\x61\x70","\x66\x69\x6C\x6C","\x63\x6C\x69\x70","\x73\x74\x72\x6F\x6B\x65","\x66\x69\x6C\x6C\x41\x6E\x64\x53\x74\x72\x6F\x6B\x65","\x66\x69\x6C\x6C\x73\x74\x72\x6F\x6B\x65","\x67\x72\x61\x64\x69\x65\x6E\x74\x73","\x64\x65\x66\x73","\x73\x74\x79\x6C\x65\x45\x6E\x61\x62\x6C\x65\x64","\x63\x72\x65\x61\x74\x65\x53\x74\x79\x6C\x65","\x6D\x61\x74\x63\x68\x48\x74\x6D\x6C\x41\x6C\x69\x67\x6E\x6D\x65\x6E\x74","\x66\x6F\x45\x6E\x61\x62\x6C\x65\x64","\x73\x74\x72\x6F\x6B\x65\x54\x6F\x6C\x65\x72\x61\x6E\x63\x65","\x72\x65\x66\x43\x6F\x75\x6E\x74","\x62\x6C\x6F\x63\x6B\x49\x6D\x61\x67\x65\x50\x6F\x69\x6E\x74\x65\x72\x45\x76\x65\x6E\x74\x73","\x73\x76\x67\x7B\x66\x6F\x6E\x74\x2D\x66\x61\x6D\x69\x6C\x79\x3A","\x3B\x66\x6F\x6E\x74\x2D\x73\x69\x7A\x65\x3A","\x3B\x66\x69\x6C\x6C\x3A\x6E\x6F\x6E\x65\x3B\x73\x74\x72\x6F\x6B\x65\x2D\x6D\x69\x74\x65\x72\x6C\x69\x6D\x69\x74\x3A\x31\x30\x7D","\x4E\x53\x5F\x53\x56\x47","\x78\x6D\x6C\x6E\x73","\x63\x72\x65\x61\x74\x65\x47\x72\x61\x64\x69\x65\x6E\x74\x49\x64","\x44\x49\x52\x45\x43\x54\x49\x4F\x4E\x5F\x53\x4F\x55\x54\x48","\x73","\x44\x49\x52\x45\x43\x54\x49\x4F\x4E\x5F\x45\x41\x53\x54","\x65","\x44\x49\x52\x45\x43\x54\x49\x4F\x4E\x5F\x4E\x4F\x52\x54\x48","\x44\x49\x52\x45\x43\x54\x49\x4F\x4E\x5F\x57\x45\x53\x54","\x6D\x78\x2D\x67\x72\x61\x64\x69\x65\x6E\x74\x2D","\x67\x65\x74\x53\x76\x67\x47\x72\x61\x64\x69\x65\x6E\x74","\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x42\x79\x49\x64","\x69\x64","\x63\x72\x65\x61\x74\x65\x53\x76\x67\x47\x72\x61\x64\x69\x65\x6E\x74","\x6C\x69\x6E\x65\x61\x72\x47\x72\x61\x64\x69\x65\x6E\x74","\x30\x25","\x3B\x73\x74\x6F\x70\x2D\x6F\x70\x61\x63\x69\x74\x79\x3A","\x6F\x66\x66\x73\x65\x74","\x73\x74\x6F\x70\x2D\x63\x6F\x6C\x6F\x72\x3A","\x61\x64\x64\x4E\x6F\x64\x65","\x64","\x75\x70\x64\x61\x74\x65\x46\x69\x6C\x6C","\x74\x72\x61\x6E\x73\x70\x61\x72\x65\x6E\x74","\x75\x70\x64\x61\x74\x65\x53\x74\x72\x6F\x6B\x65","\x63\x72\x65\x61\x74\x65\x53\x68\x61\x64\x6F\x77","\x63\x72\x65\x61\x74\x65\x54\x6F\x6C\x65\x72\x61\x6E\x63\x65","\x70\x6F\x69\x6E\x74\x65\x72\x2D\x65\x76\x65\x6E\x74\x73","\x61\x6C\x6C","\x66\x69\x6C\x6C\x2D\x6F\x70\x61\x63\x69\x74\x79","\x75\x72\x6C\x28\x23","\x73\x74\x72\x6F\x6B\x65\x2D\x6F\x70\x61\x63\x69\x74\x79","\x73\x74\x72\x6F\x6B\x65\x2D\x77\x69\x64\x74\x68","\x75\x70\x64\x61\x74\x65\x53\x74\x72\x6F\x6B\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x73\x74\x72\x6F\x6B\x65\x2D\x64\x61\x73\x68\x61\x72\x72\x61\x79","\x63\x72\x65\x61\x74\x65\x44\x61\x73\x68\x50\x61\x74\x74\x65\x72\x6E","\x73\x74\x72\x6F\x6B\x65\x2D\x6C\x69\x6E\x65\x6A\x6F\x69\x6E","\x62\x75\x74\x74","\x73\x74\x72\x6F\x6B\x65\x2D\x6C\x69\x6E\x65\x63\x61\x70","\x73\x74\x72\x6F\x6B\x65\x2D\x6D\x69\x74\x65\x72\x6C\x69\x6D\x69\x74","\x72\x65\x6D\x6F\x76\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x77\x68\x69\x74\x65","\x29\x73\x63\x61\x6C\x65\x28","\x29\x74\x72\x61\x6E\x73\x6C\x61\x74\x65\x28","\x72\x6F\x74\x61\x74\x65\x28","\x72\x6F\x74\x61\x74\x69\x6F\x6E\x43\x78","\x72\x6F\x74\x61\x74\x69\x6F\x6E\x43\x79","\x72\x78","\x72\x79","\x73\x65\x74\x41\x74\x74\x72\x69\x62\x75\x74\x65\x4E\x53","\x78\x6C\x69\x6E\x6B\x3A\x68\x72\x65\x66","\x70\x72\x65\x73\x65\x72\x76\x65\x41\x73\x70\x65\x63\x74\x52\x61\x74\x69\x6F","\x73\x63\x61\x6C\x65\x28","\x70\x6F\x69\x6E\x74\x65\x72\x2D\x65\x76\x65\x6E\x74\x73\x3A\x6E\x6F\x6E\x65","\x63\x72\x65\x61\x74\x65\x44\x69\x76","\x64\x69\x73\x70\x6C\x61\x79\x3A\x69\x6E\x6C\x69\x6E\x65\x2D\x62\x6C\x6F\x63\x6B\x3B\x66\x6F\x6E\x74\x2D\x73\x69\x7A\x65\x3A","\x70\x78\x3B\x66\x6F\x6E\x74\x2D\x66\x61\x6D\x69\x6C\x79\x3A","\x3B\x63\x6F\x6C\x6F\x72\x3A","\x3B\x6C\x69\x6E\x65\x2D\x68\x65\x69\x67\x68\x74\x3A","\x70\x78\x3B","\x46\x4F\x4E\x54\x5F\x42\x4F\x4C\x44","\x66\x6F\x6E\x74\x2D\x77\x65\x69\x67\x68\x74\x3A\x62\x6F\x6C\x64\x3B","\x46\x4F\x4E\x54\x5F\x49\x54\x41\x4C\x49\x43","\x66\x6F\x6E\x74\x2D\x73\x74\x79\x6C\x65\x3A\x69\x74\x61\x6C\x69\x63\x3B","\x46\x4F\x4E\x54\x5F\x55\x4E\x44\x45\x52\x4C\x49\x4E\x45","\x66\x6F\x6E\x74\x2D\x64\x65\x63\x6F\x72\x61\x74\x69\x6F\x6E\x3A\x75\x6E\x64\x65\x72\x6C\x69\x6E\x65\x3B","\x74\x65\x78\x74\x2D\x61\x6C\x69\x67\x6E\x3A\x63\x65\x6E\x74\x65\x72\x3B","\x74\x65\x78\x74\x2D\x61\x6C\x69\x67\x6E\x3A\x72\x69\x67\x68\x74\x3B","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x2D\x63\x6F\x6C\x6F\x72\x3A","\x62\x6F\x72\x64\x65\x72\x3A\x31\x70\x78\x20\x73\x6F\x6C\x69\x64\x20","\x26\x61\x6D\x70\x3B\x67\x74\x3B","\x26\x61\x6D\x70\x3B\x6C\x74\x3B","\x3C\x64\x69\x76\x20\x78\x6D\x6C\x6E\x73\x3D\x22\x68\x74\x74\x70\x3A\x2F\x2F\x77\x77\x77\x2E\x77\x33\x2E\x6F\x72\x67\x2F\x31\x39\x39\x39\x2F\x78\x68\x74\x6D\x6C\x22\x20\x73\x74\x79\x6C\x65\x3D\x22\x64\x69\x73\x70\x6C\x61\x79\x3A\x69\x6E\x6C\x69\x6E\x65\x2D\x62\x6C\x6F\x63\x6B\x3B","\x22\x3E","\x3C\x2F\x64\x69\x76\x3E","\x3C\x68\x72\x20\x2F\x3E","\x3C\x62\x72\x20\x2F\x3E","\x3C\x64\x69\x76\x20\x78\x6D\x6C\x6E\x73\x3D\x22\x68\x74\x74\x70\x3A\x2F\x2F\x77\x77\x77\x2E\x77\x33\x2E\x6F\x72\x67\x2F\x31\x39\x39\x39\x2F\x78\x68\x74\x6D\x6C\x22\x20\x73\x74\x79\x6C\x65\x3D\x22","\x68\x74\x6D\x6C","\x76\x65\x72\x74\x69\x63\x61\x6C\x2D\x61\x6C\x69\x67\x6E\x3A\x74\x6F\x70\x3B","\x6F\x76\x65\x72\x66\x6C\x6F\x77\x3A\x68\x69\x64\x64\x65\x6E\x3B","\x6D\x61\x78\x2D\x68\x65\x69\x67\x68\x74\x3A","\x77\x69\x64\x74\x68\x3A","\x77\x68\x69\x74\x65\x2D\x73\x70\x61\x63\x65\x3A\x6E\x6F\x72\x6D\x61\x6C\x3B","\x77\x68\x69\x74\x65\x2D\x73\x70\x61\x63\x65\x3A\x6E\x6F\x77\x72\x61\x70\x3B","\x66\x6F\x72\x65\x69\x67\x6E\x4F\x62\x6A\x65\x63\x74","\x70\x6C\x61\x69\x6E\x54\x65\x78\x74","\x63\x72\x65\x61\x74\x65\x43\x6C\x69\x70","\x6D\x78\x2D\x63\x6C\x69\x70\x2D","\x63\x6C\x69\x70\x50\x61\x74\x68","\x63\x6C\x69\x70\x2D\x70\x61\x74\x68","\x75\x70\x64\x61\x74\x65\x46\x6F\x6E\x74","\x74\x65\x78\x74\x2D\x61\x6E\x63\x68\x6F\x72","\x66\x6F\x6E\x74\x2D\x73\x69\x7A\x65","\x61\x64\x64\x54\x65\x78\x74\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64","\x66\x6F\x6E\x74\x2D\x66\x61\x6D\x69\x6C\x79","\x66\x6F\x6E\x74\x2D\x77\x65\x69\x67\x68\x74","\x62\x6F\x6C\x64","\x66\x6F\x6E\x74\x2D\x73\x74\x79\x6C\x65","\x69\x74\x61\x6C\x69\x63","\x74\x65\x78\x74\x2D\x64\x65\x63\x6F\x72\x61\x74\x69\x6F\x6E","\x67\x65\x74\x42\x42\x6F\x78","\x66\x6F\x6E\x74\x57\x65\x69\x67\x68\x74","\x3C\x62\x72\x2F\x3E","\x6D\x6F\x64","\x74\x72\x61\x6E\x73\x6C\x61\x74\x65\x28\x30\x2E\x35\x2C\x20\x30\x2E\x35\x29","\x6D","\x6C","\x63","\x72\x6F\x74\x61\x74\x65\x64\x48\x74\x6D\x6C\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64","\x76\x6D\x6C\x53\x63\x61\x6C\x65","\x20\x65","\x63\x6F\x6F\x72\x64\x73\x69\x7A\x65","\x73\x74\x72\x6F\x6B\x65\x77\x65\x69\x67\x68\x74","\x73\x74\x72\x6F\x6B\x65\x64","\x63\x72\x65\x61\x74\x65\x53\x74\x72\x6F\x6B\x65","\x63\x72\x65\x61\x74\x65\x46\x69\x6C\x6C","\x63\x72\x65\x61\x74\x65\x54\x72\x61\x6E\x73\x70\x61\x72\x65\x6E\x74\x46\x69\x6C\x6C","\x66\x69\x6C\x6C\x65\x64","\x3A\x66\x69\x6C\x6C","\x2F\x74\x72\x61\x6E\x73\x70\x61\x72\x65\x6E\x74\x2E\x67\x69\x66","\x74\x69\x6C\x65","\x63\x6F\x6C\x6F\x72\x32","\x66\x6C\x69\x70","\x61\x6E\x67\x6C\x65","\x4F\x46\x46\x49\x43\x45\x5F\x50\x52\x45\x46\x49\x58","\x3A\x6F\x70\x61\x63\x69\x74\x79\x32","\x3A\x73\x74\x72\x6F\x6B\x65","\x65\x6E\x64\x63\x61\x70","\x6A\x6F\x69\x6E\x73\x74\x79\x6C\x65","\x31\x30","\x64\x61\x73\x68\x73\x74\x79\x6C\x65","\x67\x65\x74\x56\x6D\x6C\x44\x61\x73\x68\x53\x74\x79\x6C\x65","\x64\x61\x73\x68","\x30\x20\x32","\x63\x72\x65\x61\x74\x65\x53\x68\x61\x64\x6F\x77\x53\x74\x72\x6F\x6B\x65","\x63\x72\x65\x61\x74\x65\x53\x68\x61\x64\x6F\x77\x46\x69\x6C\x6C","\x3A\x73\x68\x61\x70\x65","\x63\x20","\x63\x72\x65\x61\x74\x65\x52\x65\x63\x74","\x3A\x72\x65\x63\x74","\x3A\x72\x6F\x75\x6E\x64\x72\x65\x63\x74","\x61\x72\x63\x73\x69\x7A\x65","\x3A\x6F\x76\x61\x6C","\x61\x74\x6D\x6F\x73\x74","\x69\x67\x6E\x6F\x72\x65","\x66\x72\x61\x6D\x65","\x31\x38\x30","\x66\x6F\x6E\x74\x44\x65\x63\x6F\x72\x61\x74\x69\x6F\x6E","\x3A\x67\x72\x6F\x75\x70","\x72\x65\x6C\x61\x74\x69\x76\x65","\x67\x65\x74\x41\x6C\x69\x67\x6E\x6D\x65\x6E\x74\x41\x73\x50\x6F\x69\x6E\x74","\x6E\x6F\x72\x6D\x61\x6C","\x6D\x61\x78\x48\x65\x69\x67\x68\x74","\x67\x72\x6F\x75\x70","\x70\x72\x6F\x67\x69\x64\x3A\x44\x58\x49\x6D\x61\x67\x65\x54\x72\x61\x6E\x73\x66\x6F\x72\x6D\x2E\x4D\x69\x63\x72\x6F\x73\x6F\x66\x74\x2E\x4D\x61\x74\x72\x69\x78\x28\x4D\x31\x31\x3D","\x2C\x20\x4D\x31\x32\x3D","\x2C\x20\x4D\x32\x31\x3D","\x2C\x20\x4D\x32\x32\x3D","\x2C\x20\x73\x69\x7A\x69\x6E\x67\x4D\x65\x74\x68\x6F\x64\x3D\x27\x61\x75\x74\x6F\x20\x65\x78\x70\x61\x6E\x64\x27\x29","\x3A\x70\x61\x74\x68","\x74\x65\x78\x74\x70\x61\x74\x68\x6F\x6B","\x6D\x20","\x20\x6C\x20","\x3A\x74\x65\x78\x74\x70\x61\x74\x68","\x76\x2D\x74\x65\x78\x74\x2D\x61\x6C\x69\x67\x6E\x3A","\x73\x74\x72\x69\x6E\x67","\x73\x65\x74\x53\x74\x61\x74\x65\x73","\x67\x75\x69\x64\x65\x58","\x67\x75\x69\x64\x65\x59","\x67\x65\x74\x47\x75\x69\x64\x65\x54\x6F\x6C\x65\x72\x61\x6E\x63\x65","\x63\x72\x65\x61\x74\x65\x47\x75\x69\x64\x65\x53\x68\x61\x70\x65","\x69\x73\x44\x61\x73\x68\x65\x64","\x44\x49\x41\x4C\x45\x43\x54\x5F\x56\x4D\x4C","\x67\x65\x74\x4F\x76\x65\x72\x6C\x61\x79\x50\x61\x6E\x65","\x70\x6F\x69\x6E\x74\x73","\x73\x63\x72\x6F\x6C\x6C\x57\x69\x64\x74\x68","\x64\x65\x73\x63","\x70\x61\x72\x73\x65\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x70\x61\x72\x73\x65\x43\x6F\x6E\x73\x74\x72\x61\x69\x6E\x74\x73","\x64\x65\x66\x61\x75\x6C\x74\x4C\x6F\x63\x61\x6C\x69\x7A\x65\x64","\x63\x6F\x6E\x73\x74\x72\x61\x69\x6E\x74\x73","\x77\x30","\x68\x30","\x62\x67\x4E\x6F\x64\x65","\x66\x67\x4E\x6F\x64\x65","\x66\x6F\x72\x65\x67\x72\x6F\x75\x6E\x64","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64","\x76\x61\x72\x69\x61\x62\x6C\x65","\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73","\x67\x65\x74\x43\x68\x69\x6C\x64\x4E\x6F\x64\x65\x73","\x70\x61\x72\x73\x65\x43\x6F\x6E\x73\x74\x72\x61\x69\x6E\x74","\x65\x76\x61\x6C\x75\x61\x74\x65\x54\x65\x78\x74\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x65\x76\x61\x6C\x75\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x6C\x6F\x63\x61\x6C\x69\x7A\x65\x64","\x65\x76\x61\x6C","\x64\x72\x61\x77\x53\x68\x61\x70\x65","\x64\x72\x61\x77\x43\x68\x69\x6C\x64\x72\x65\x6E","\x63\x6F\x6D\x70\x75\x74\x65\x41\x73\x70\x65\x63\x74","\x69\x6E\x68\x65\x72\x69\x74","\x67\x65\x74\x4E\x75\x6D\x62\x65\x72","\x64\x72\x61\x77\x4E\x6F\x64\x65","\x66\x69\x78\x65\x64","\x61\x72\x63","\x78\x2D\x61\x78\x69\x73\x2D\x72\x6F\x74\x61\x74\x69\x6F\x6E","\x6C\x61\x72\x67\x65\x2D\x61\x72\x63\x2D\x66\x6C\x61\x67","\x73\x77\x65\x65\x70\x2D\x66\x6C\x61\x67","\x52\x45\x43\x54\x41\x4E\x47\x4C\x45\x5F\x52\x4F\x55\x4E\x44\x49\x4E\x47\x5F\x46\x41\x43\x54\x4F\x52","\x61\x6C\x69\x67\x6E\x2D\x73\x68\x61\x70\x65","\x69\x6E\x63\x6C\x75\x64\x65\x2D\x73\x68\x61\x70\x65","\x67\x65\x74\x53\x74\x65\x6E\x63\x69\x6C","\x73\x74\x65\x6E\x63\x69\x6C","\x62\x6F\x75\x6E\x64\x73","\x62\x6F\x75\x6E\x64\x69\x6E\x67\x42\x6F\x78","\x73\x76\x67\x53\x74\x72\x6F\x6B\x65\x54\x6F\x6C\x65\x72\x61\x6E\x63\x65","\x73\x74\x65\x6E\x63\x69\x6C\x50\x6F\x69\x6E\x74\x65\x72\x45\x76\x65\x6E\x74\x73","\x69\x73\x50\x61\x72\x73\x65\x56\x6D\x6C","\x69\x73\x48\x74\x6D\x6C\x41\x6C\x6C\x6F\x77\x65\x64","\x67\x65\x74\x53\x76\x67\x53\x63\x72\x65\x65\x6E\x4F\x66\x66\x73\x65\x74","\x63\x72\x65\x61\x74\x65\x53\x76\x67","\x63\x72\x65\x61\x74\x65\x48\x74\x6D\x6C","\x63\x72\x65\x61\x74\x65\x56\x6D\x6C","\x72\x65\x63\x6F\x6E\x66\x69\x67\x75\x72\x65","\x75\x70\x64\x61\x74\x65\x42\x6F\x75\x6E\x64\x73\x46\x72\x6F\x6D\x50\x6F\x69\x6E\x74\x73","\x63\x68\x65\x63\x6B\x42\x6F\x75\x6E\x64\x73","\x72\x65\x64\x72\x61\x77\x48\x74\x6D\x6C\x53\x68\x61\x70\x65","\x72\x65\x64\x72\x61\x77\x53\x68\x61\x70\x65","\x75\x70\x64\x61\x74\x65\x42\x6F\x75\x6E\x64\x69\x6E\x67\x42\x6F\x78","\x63\x72\x65\x61\x74\x65\x56\x6D\x6C\x47\x72\x6F\x75\x70","\x63\x72\x65\x61\x74\x65\x43\x61\x6E\x76\x61\x73","\x68\x61\x73\x43\x68\x69\x6C\x64\x4E\x6F\x64\x65\x73","\x6C\x61\x73\x74\x43\x68\x69\x6C\x64","\x62\x65\x66\x6F\x72\x65\x65\x6E\x64","\x69\x6E\x73\x65\x72\x74\x41\x64\x6A\x61\x63\x65\x6E\x74\x48\x54\x4D\x4C","\x61\x64\x64\x54\x72\x61\x6E\x73\x70\x61\x72\x65\x6E\x74\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x46\x69\x6C\x74\x65\x72","\x64\x65\x73\x74\x72\x6F\x79\x43\x61\x6E\x76\x61\x73","\x75\x70\x64\x61\x74\x65\x56\x6D\x6C\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x6D\x78\x52\x65\x66\x43\x6F\x75\x6E\x74","\x6F\x6C\x64\x47\x72\x61\x64\x69\x65\x6E\x74\x73","\x72\x65\x6C\x65\x61\x73\x65\x53\x76\x67\x47\x72\x61\x64\x69\x65\x6E\x74\x73","\x69\x73\x50\x61\x69\x6E\x74\x42\x6F\x75\x6E\x64\x73\x49\x6E\x76\x65\x72\x74\x65\x64","\x75\x70\x64\x61\x74\x65\x54\x72\x61\x6E\x73\x66\x6F\x72\x6D","\x63\x6F\x6E\x66\x69\x67\x75\x72\x65\x43\x61\x6E\x76\x61\x73","\x70\x61\x69\x6E\x74\x53\x74\x65\x6E\x63\x69\x6C\x53\x68\x61\x70\x65","\x70\x61\x69\x6E\x74\x45\x64\x67\x65\x53\x68\x61\x70\x65","\x70\x61\x69\x6E\x74\x56\x65\x72\x74\x65\x78\x53\x68\x61\x70\x65","\x69\x73\x53\x68\x61\x64\x6F\x77","\x67\x65\x74\x47\x72\x61\x64\x69\x65\x6E\x74\x42\x6F\x75\x6E\x64\x73","\x67\x65\x74\x53\x68\x61\x70\x65\x52\x6F\x74\x61\x74\x69\x6F\x6E","\x61\x64\x64\x54\x72\x61\x6E\x73\x70\x61\x72\x65\x6E\x74\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x52\x65\x63\x74\x61\x6E\x67\x6C\x65","\x73\x65\x74\x54\x72\x61\x6E\x73\x70\x61\x72\x65\x6E\x74\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x49\x6D\x61\x67\x65","\x70\x61\x69\x6E\x74\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64","\x70\x61\x69\x6E\x74\x46\x6F\x72\x65\x67\x72\x6F\x75\x6E\x64","\x67\x65\x74\x41\x72\x63\x53\x69\x7A\x65","\x70\x61\x69\x6E\x74\x47\x6C\x61\x73\x73\x45\x66\x66\x65\x63\x74","\x23\x66\x66\x66\x66\x66\x66","\x69\x73\x52\x6F\x75\x6E\x64\x65\x64","\x73\x74\x65\x6E\x63\x69\x6C\x46\x6C\x69\x70\x48","\x73\x74\x65\x6E\x63\x69\x6C\x46\x6C\x69\x70\x56","\x73\x65\x74\x43\x75\x72\x73\x6F\x72","\x67\x65\x74\x43\x75\x72\x73\x6F\x72","\x63\x72\x65\x61\x74\x65\x42\x6F\x75\x6E\x64\x69\x6E\x67\x42\x6F\x78","\x61\x75\x67\x6D\x65\x6E\x74\x42\x6F\x75\x6E\x64\x69\x6E\x67\x42\x6F\x78","\x67\x65\x74\x42\x6F\x75\x6E\x64\x69\x6E\x67\x42\x6F\x78","\x67\x65\x74\x52\x6F\x74\x61\x74\x69\x6F\x6E","\x67\x65\x74\x54\x65\x78\x74\x52\x6F\x74\x61\x74\x69\x6F\x6E","\x76\x65\x72\x74\x69\x63\x61\x6C\x54\x65\x78\x74\x52\x6F\x74\x61\x74\x69\x6F\x6E","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x49\x6D\x61\x67\x65","\x75\x72\x6C\x28\x27","\x2F\x74\x72\x61\x6E\x73\x70\x61\x72\x65\x6E\x74\x2E\x67\x69\x66\x27\x29","\x73\x74\x65\x6E\x63\x69\x6C\x73","\x6D\x61\x72\x6B\x65\x72\x73","\x41\x52\x52\x4F\x57\x5F\x43\x4C\x41\x53\x53\x49\x43","\x41\x52\x52\x4F\x57\x5F\x44\x49\x41\x4D\x4F\x4E\x44","\x61\x64\x64\x4D\x61\x72\x6B\x65\x72","\x72\x65\x64\x72\x61\x77\x50\x61\x74\x68","\x75\x70\x64\x61\x74\x65\x48\x74\x6D\x6C\x42\x6F\x75\x6E\x64\x73","\x75\x70\x64\x61\x74\x65\x48\x74\x6D\x6C\x46\x69\x6C\x74\x65\x72\x73","\x75\x70\x64\x61\x74\x65\x48\x74\x6D\x6C\x43\x6F\x6C\x6F\x72\x73","\x62\x6F\x72\x64\x65\x72\x57\x69\x64\x74\x68","\x62\x6F\x72\x64\x65\x72\x43\x6F\x6C\x6F\x72","\x73\x6F\x6C\x69\x64","\x70\x72\x6F\x67\x69\x64\x3A\x44\x58\x49\x6D\x61\x67\x65\x54\x72\x61\x6E\x73\x66\x6F\x72\x6D\x2E\x4D\x69\x63\x72\x6F\x73\x6F\x66\x74\x2E\x64\x72\x6F\x70\x53\x68\x61\x64\x6F\x77\x20\x28\x4F\x66\x66\x58\x3D\x27","\x27\x2C\x20\x4F\x66\x66\x59\x3D\x27","\x27\x2C\x20\x43\x6F\x6C\x6F\x72\x3D\x27","\x27\x29","\x70\x72\x6F\x67\x69\x64\x3A\x44\x58\x49\x6D\x61\x67\x65\x54\x72\x61\x6E\x73\x66\x6F\x72\x6D\x2E\x4D\x69\x63\x72\x6F\x73\x6F\x66\x74\x2E\x67\x72\x61\x64\x69\x65\x6E\x74\x28\x73\x74\x61\x72\x74\x43\x6F\x6C\x6F\x72\x53\x74\x72\x3D\x27","\x27\x2C\x20\x65\x6E\x64\x43\x6F\x6C\x6F\x72\x53\x74\x72\x3D\x27","\x27\x2C\x20\x67\x72\x61\x64\x69\x65\x6E\x74\x54\x79\x70\x65\x3D\x27","\x70\x61\x69\x6E\x74\x4C\x69\x6E\x65","\x61\x72\x72\x6F\x77\x57\x69\x64\x74\x68","\x41\x52\x52\x4F\x57\x5F\x57\x49\x44\x54\x48","\x41\x52\x52\x4F\x57\x5F\x53\x50\x41\x43\x49\x4E\x47","\x41\x52\x52\x4F\x57\x5F\x53\x49\x5A\x45","\x44\x45\x46\x41\x55\x4C\x54\x5F\x46\x4F\x4E\x54\x53\x54\x59\x4C\x45","\x63\x6C\x69\x70\x70\x65\x64","\x62\x61\x73\x65\x53\x70\x61\x63\x69\x6E\x67\x54\x6F\x70","\x62\x61\x73\x65\x53\x70\x61\x63\x69\x6E\x67\x42\x6F\x74\x74\x6F\x6D","\x62\x61\x73\x65\x53\x70\x61\x63\x69\x6E\x67\x4C\x65\x66\x74","\x62\x61\x73\x65\x53\x70\x61\x63\x69\x6E\x67\x52\x69\x67\x68\x74","\x72\x65\x70\x6C\x61\x63\x65\x4C\x69\x6E\x65\x66\x65\x65\x64\x73","\x69\x67\x6E\x6F\x72\x65\x43\x6C\x69\x70\x70\x65\x64\x53\x74\x72\x69\x6E\x67\x53\x69\x7A\x65","\x69\x67\x6E\x6F\x72\x65\x53\x74\x72\x69\x6E\x67\x53\x69\x7A\x65","\x74\x65\x78\x74\x44\x69\x76","\x75\x70\x64\x61\x74\x65\x53\x69\x7A\x65","\x6D\x61\x72\x67\x69\x6E","\x44\x49\x41\x4C\x45\x43\x54\x5F\x53\x54\x52\x49\x43\x54\x48\x54\x4D\x4C","\x75\x70\x64\x61\x74\x65\x56\x61\x6C\x75\x65","\x75\x70\x64\x61\x74\x65\x48\x74\x6D\x6C\x54\x72\x61\x6E\x73\x66\x6F\x72\x6D","\x75\x70\x64\x61\x74\x65\x48\x74\x6D\x6C\x46\x69\x6C\x74\x65\x72","\x54\x72\x61\x6E\x73\x66\x6F\x72\x6D\x4F\x72\x69\x67\x69\x6E","\x25\x20","\x54\x72\x61\x6E\x73\x66\x6F\x72\x6D","\x25\x2C","\x25\x29\x73\x63\x61\x6C\x65\x28","\x29\x20\x72\x6F\x74\x61\x74\x65\x28","\x64\x65\x67\x29","\x30\x25\x20\x30\x25","\x25\x29","\x31\x70\x78\x20\x73\x6F\x6C\x69\x64\x20","\x3C\x64\x69\x76\x20\x73\x74\x79\x6C\x65\x3D\x22\x7A\x6F\x6F\x6D\x3A\x31\x3B","\x64\x69\x73\x70\x6C\x61\x79\x3A\x69\x6E\x6C\x69\x6E\x65\x2D\x62\x6C\x6F\x63\x6B\x3B\x5F\x64\x69\x73\x70\x6C\x61\x79\x3A\x69\x6E\x6C\x69\x6E\x65\x3B\x70\x61\x64\x64\x69\x6E\x67\x2D\x62\x6F\x74\x74\x6F\x6D\x3A\x31\x70\x78\x3B\x70\x61\x64\x64\x69\x6E\x67\x2D\x72\x69\x67\x68\x74\x3A\x31\x70\x78\x3B\x6C\x69\x6E\x65\x2D\x68\x65\x69\x67\x68\x74\x3A","\x75\x70\x64\x61\x74\x65\x4D\x61\x72\x67\x69\x6E","\x67\x65\x74\x53\x70\x61\x63\x69\x6E\x67","\x70\x72\x65\x73\x65\x72\x76\x65\x49\x6D\x61\x67\x65\x41\x73\x70\x65\x63\x74","\x69\x6D\x61\x67\x65\x46\x6C\x69\x70\x48","\x69\x6D\x61\x67\x65\x46\x6C\x69\x70\x56","\x70\x72\x6F\x67\x69\x64\x3A\x44\x58\x49\x6D\x61\x67\x65\x54\x72\x61\x6E\x73\x66\x6F\x72\x6D\x2E\x4D\x69\x63\x72\x6F\x73\x6F\x66\x74\x2E\x42\x61\x73\x69\x63\x49\x6D\x61\x67\x65\x28\x72\x6F\x74\x61\x74\x69\x6F\x6E\x3D\x32\x29","\x70\x72\x6F\x67\x69\x64\x3A\x44\x58\x49\x6D\x61\x67\x65\x54\x72\x61\x6E\x73\x66\x6F\x72\x6D\x2E\x4D\x69\x63\x72\x6F\x73\x6F\x66\x74\x2E\x42\x61\x73\x69\x63\x49\x6D\x61\x67\x65\x28\x6D\x69\x72\x72\x6F\x72\x3D\x31\x29","\x70\x72\x6F\x67\x69\x64\x3A\x44\x58\x49\x6D\x61\x67\x65\x54\x72\x61\x6E\x73\x66\x6F\x72\x6D\x2E\x4D\x69\x63\x72\x6F\x73\x6F\x66\x74\x2E\x42\x61\x73\x69\x63\x49\x6D\x61\x67\x65\x28\x72\x6F\x74\x61\x74\x69\x6F\x6E\x3D\x32\x2C\x20\x6D\x69\x72\x72\x6F\x72\x3D\x31\x29","\x69\x6D\x61\x67\x65\x53\x69\x7A\x65","\x44\x45\x46\x41\x55\x4C\x54\x5F\x49\x4D\x41\x47\x45\x53\x49\x5A\x45","\x69\x6E\x64\x69\x63\x61\x74\x6F\x72\x53\x69\x7A\x65","\x69\x6E\x64\x69\x63\x61\x74\x6F\x72","\x70\x61\x69\x6E\x74\x49\x6D\x61\x67\x65","\x70\x61\x69\x6E\x74\x49\x6E\x64\x69\x63\x61\x74\x6F\x72","\x67\x65\x74\x49\x6D\x61\x67\x65\x42\x6F\x75\x6E\x64\x73","\x41\x4C\x49\x47\x4E\x5F\x54\x4F\x50","\x67\x65\x74\x49\x6E\x64\x69\x63\x61\x74\x6F\x72\x42\x6F\x75\x6E\x64\x73","\x63\x72\x65\x61\x74\x65\x4D\x61\x72\x6B\x65\x72","\x53\x54\x59\x4C\x45\x5F\x43\x55\x52\x56\x45\x44","\x70\x61\x69\x6E\x74\x43\x75\x72\x76\x65\x64\x4C\x69\x6E\x65","\x53\x54\x59\x4C\x45\x5F\x53\x54\x41\x52\x54\x53\x49\x5A\x45","\x53\x54\x59\x4C\x45\x5F\x45\x4E\x44\x53\x49\x5A\x45","\x53\x54\x59\x4C\x45\x5F\x53\x54\x41\x52\x54\x41\x52\x52\x4F\x57","\x53\x54\x59\x4C\x45\x5F\x45\x4E\x44\x41\x52\x52\x4F\x57","\x53\x54\x59\x4C\x45\x5F\x53\x54\x41\x52\x54\x46\x49\x4C\x4C","\x53\x54\x59\x4C\x45\x5F\x45\x4E\x44\x46\x49\x4C\x4C","\x70\x61\x69\x6E\x74\x52\x6F\x75\x6E\x64\x65\x64\x53\x77\x69\x6D\x6C\x61\x6E\x65","\x70\x61\x69\x6E\x74\x53\x77\x69\x6D\x6C\x61\x6E\x65","\x70\x61\x69\x6E\x74\x53\x65\x70\x61\x72\x61\x74\x6F\x72","\x75\x73\x65\x42\x6F\x75\x6E\x64\x69\x6E\x67\x42\x6F\x78","\x6D\x6F\x76\x65\x43\x65\x6C\x6C","\x67\x65\x74\x47\x72\x61\x70\x68","\x67\x65\x74\x43\x6F\x6E\x73\x74\x72\x61\x69\x6E\x74","\x67\x65\x74\x43\x65\x6C\x6C\x53\x74\x79\x6C\x65","\x74\x72\x61\x76\x65\x72\x73\x65","\x67\x65\x74\x45\x64\x67\x65\x43\x6F\x75\x6E\x74","\x67\x65\x74\x45\x64\x67\x65\x41\x74","\x67\x65\x74\x54\x65\x72\x6D\x69\x6E\x61\x6C","\x67\x65\x74\x56\x69\x73\x69\x62\x6C\x65\x54\x65\x72\x6D\x69\x6E\x61\x6C","\x69\x73\x56\x65\x72\x74\x65\x78\x4D\x6F\x76\x61\x62\x6C\x65","\x69\x73\x43\x65\x6C\x6C\x4D\x6F\x76\x61\x62\x6C\x65","\x69\x73\x56\x65\x72\x74\x65\x78\x49\x67\x6E\x6F\x72\x65\x64","\x69\x73\x43\x65\x6C\x6C\x56\x69\x73\x69\x62\x6C\x65","\x69\x73\x45\x64\x67\x65\x49\x67\x6E\x6F\x72\x65\x64","\x73\x65\x74\x45\x64\x67\x65\x53\x74\x79\x6C\x65\x45\x6E\x61\x62\x6C\x65\x64","\x73\x65\x74\x43\x65\x6C\x6C\x53\x74\x79\x6C\x65\x73","\x73\x65\x74\x4F\x72\x74\x68\x6F\x67\x6F\x6E\x61\x6C\x45\x64\x67\x65","\x67\x65\x74\x50\x61\x72\x65\x6E\x74\x4F\x66\x66\x73\x65\x74","\x69\x73\x41\x6E\x63\x65\x73\x74\x6F\x72","\x67\x65\x74\x47\x65\x6F\x6D\x65\x74\x72\x79","\x73\x65\x74\x45\x64\x67\x65\x50\x6F\x69\x6E\x74\x73","\x73\x65\x74\x52\x65\x6C\x61\x74\x69\x76\x65","\x73\x65\x74\x47\x65\x6F\x6D\x65\x74\x72\x79","\x73\x65\x74\x56\x65\x72\x74\x65\x78\x4C\x6F\x63\x61\x74\x69\x6F\x6E","\x67\x65\x74\x56\x65\x72\x74\x65\x78\x42\x6F\x75\x6E\x64\x73","\x61\x72\x72\x61\x6E\x67\x65\x47\x72\x6F\x75\x70\x73","\x67\x65\x74\x43\x68\x69\x6C\x64\x56\x65\x72\x74\x69\x63\x65\x73","\x67\x65\x74\x42\x6F\x75\x6E\x64\x69\x6E\x67\x42\x6F\x78\x46\x72\x6F\x6D\x47\x65\x6F\x6D\x65\x74\x72\x79","\x69\x73\x53\x77\x69\x6D\x6C\x61\x6E\x65","\x67\x65\x74\x53\x74\x61\x72\x74\x53\x69\x7A\x65","\x78\x30","\x79\x30","\x6B\x65\x65\x70\x46\x69\x72\x73\x74\x4C\x6F\x63\x61\x74\x69\x6F\x6E","\x72\x65\x73\x69\x7A\x65\x50\x61\x72\x65\x6E\x74","\x72\x65\x73\x69\x7A\x65\x4C\x61\x73\x74","\x69\x73\x48\x6F\x72\x69\x7A\x6F\x6E\x74\x61\x6C","\x67\x65\x74\x49\x6E\x64\x65\x78","\x67\x65\x74\x50\x61\x72\x65\x6E\x74\x53\x69\x7A\x65","\x69\x73\x4C\x61\x79\x65\x72","\x63\x75\x72\x72\x65\x6E\x74\x52\x6F\x6F\x74","\x69\x73\x43\x65\x6C\x6C\x43\x6F\x6C\x6C\x61\x70\x73\x65\x64","\x72\x65\x73\x69\x7A\x65\x56\x65\x72\x74\x69\x63\x65\x73","\x69\x6E\x76\x65\x72\x74","\x67\x72\x6F\x75\x70\x50\x61\x64\x64\x69\x6E\x67","\x70\x61\x72\x65\x6E\x74\x73\x43\x68\x61\x6E\x67\x65\x64","\x6D\x6F\x76\x65\x54\x72\x65\x65","\x6C\x65\x76\x65\x6C\x44\x69\x73\x74\x61\x6E\x63\x65","\x6E\x6F\x64\x65\x44\x69\x73\x74\x61\x6E\x63\x65","\x72\x65\x73\x65\x74\x45\x64\x67\x65\x73","\x70\x72\x65\x66\x48\x6F\x7A\x45\x64\x67\x65\x53\x65\x70","\x70\x72\x65\x66\x56\x65\x72\x74\x45\x64\x67\x65\x4F\x66\x66","\x6D\x69\x6E\x45\x64\x67\x65\x4A\x65\x74\x74\x79","\x63\x68\x61\x6E\x6E\x65\x6C\x42\x75\x66\x66\x65\x72","\x65\x64\x67\x65\x52\x6F\x75\x74\x69\x6E\x67","\x67\x65\x74\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73","\x66\x69\x6E\x64\x54\x72\x65\x65\x52\x6F\x6F\x74\x73","\x64\x66\x73","\x6C\x61\x79\x6F\x75\x74","\x68\x6F\x72\x69\x7A\x6F\x6E\x74\x61\x6C\x4C\x61\x79\x6F\x75\x74","\x76\x65\x72\x74\x69\x63\x61\x6C\x4C\x61\x79\x6F\x75\x74","\x6D\x6F\x76\x65\x4E\x6F\x64\x65","\x61\x64\x6A\x75\x73\x74\x50\x61\x72\x65\x6E\x74\x73","\x6C\x6F\x63\x61\x6C\x45\x64\x67\x65\x50\x72\x6F\x63\x65\x73\x73\x69\x6E\x67","\x6E\x65\x78\x74","\x63\x72\x65\x61\x74\x65\x4E\x6F\x64\x65","\x61\x74\x74\x61\x63\x68\x50\x61\x72\x65\x6E\x74","\x6C\x61\x79\x6F\x75\x74\x4C\x65\x61\x66","\x6F\x66\x66\x73\x65\x74\x58","\x6F\x66\x66\x73\x65\x74\x59","\x75\x70\x70\x65\x72\x48\x65\x61\x64","\x63\x6F\x6E\x74\x6F\x75\x72","\x63\x72\x65\x61\x74\x65\x4C\x69\x6E\x65","\x6C\x6F\x77\x65\x72\x48\x65\x61\x64","\x75\x70\x70\x65\x72\x54\x61\x69\x6C","\x6C\x6F\x77\x65\x72\x54\x61\x69\x6C","\x6D\x65\x72\x67\x65","\x62\x72\x69\x64\x67\x65","\x73\x6F\x72\x74\x43\x65\x6C\x6C\x73","\x70\x72\x6F\x63\x65\x73\x73\x4E\x6F\x64\x65\x4F\x75\x74\x67\x6F\x69\x6E\x67","\x67\x65\x74\x45\x64\x67\x65\x73\x42\x65\x74\x77\x65\x65\x6E","\x77\x65\x69\x67\x68\x74\x65\x64\x56\x61\x6C\x75\x65","\x6E\x75\x64\x67\x65","\x76\x69\x73\x69\x74\x65\x64","\x72\x61\x6E\x6B\x49\x6E\x64\x65\x78","\x75\x73\x65\x49\x6E\x70\x75\x74\x4F\x72\x69\x67\x69\x6E","\x64\x69\x73\x61\x62\x6C\x65\x45\x64\x67\x65\x53\x74\x79\x6C\x65","\x66\x6F\x72\x63\x65\x43\x6F\x6E\x73\x74\x61\x6E\x74","\x66\x6F\x72\x63\x65\x43\x6F\x6E\x73\x74\x61\x6E\x74\x53\x71\x75\x61\x72\x65\x64","\x6D\x69\x6E\x44\x69\x73\x74\x61\x6E\x63\x65\x4C\x69\x6D\x69\x74","\x6D\x61\x78\x44\x69\x73\x74\x61\x6E\x63\x65\x4C\x69\x6D\x69\x74","\x6D\x69\x6E\x44\x69\x73\x74\x61\x6E\x63\x65\x4C\x69\x6D\x69\x74\x53\x71\x75\x61\x72\x65\x64","\x69\x6E\x69\x74\x69\x61\x6C\x54\x65\x6D\x70","\x74\x65\x6D\x70\x65\x72\x61\x74\x75\x72\x65","\x6D\x61\x78\x49\x74\x65\x72\x61\x74\x69\x6F\x6E\x73","\x69\x74\x65\x72\x61\x74\x69\x6F\x6E","\x61\x6C\x6C\x6F\x77\x65\x64\x54\x6F\x52\x75\x6E","\x76\x65\x72\x74\x65\x78\x41\x72\x72\x61\x79","\x67\x65\x74\x42\x6F\x75\x6E\x64\x73","\x69\x6E\x64\x69\x63\x65\x73","\x64\x69\x73\x70\x58","\x64\x69\x73\x70\x59","\x63\x65\x6C\x6C\x4C\x6F\x63\x61\x74\x69\x6F\x6E","\x69\x73\x4D\x6F\x76\x65\x61\x62\x6C\x65","\x6E\x65\x69\x67\x68\x62\x6F\x75\x72\x73","\x72\x61\x64\x69\x75\x73","\x72\x61\x64\x69\x75\x73\x53\x71\x75\x61\x72\x65\x64","\x67\x65\x74\x4F\x70\x70\x6F\x73\x69\x74\x65\x73","\x72\x65\x73\x65\x74\x45\x64\x67\x65","\x63\x61\x6C\x63\x52\x65\x70\x75\x6C\x73\x69\x6F\x6E","\x63\x61\x6C\x63\x41\x74\x74\x72\x61\x63\x74\x69\x6F\x6E","\x63\x61\x6C\x63\x50\x6F\x73\x69\x74\x69\x6F\x6E\x73","\x72\x65\x64\x75\x63\x65\x54\x65\x6D\x70\x65\x72\x61\x74\x75\x72\x65","\x72\x61\x6E\x64\x6F\x6D","\x6D\x6F\x76\x65\x43\x69\x72\x63\x6C\x65","\x67\x65\x74\x52\x61\x64\x69\x75\x73","\x63\x69\x72\x63\x6C\x65","\x66\x69\x6E\x64\x50\x61\x72\x61\x6C\x6C\x65\x6C\x73","\x67\x65\x74\x45\x64\x67\x65\x49\x64","\x72\x6F\x75\x74\x65","\x6C\x61\x79\x6F\x75\x74\x73","\x6D\x61\x73\x74\x65\x72","\x70\x6C\x61\x63\x65\x4C\x61\x62\x65\x6C\x73","\x61\x76\x6F\x69\x64","\x69\x6E\x74\x65\x72\x73\x65\x63\x74\x73","\x74\x65\x6D\x70","\x6D\x61\x78\x52\x61\x6E\x6B","\x6D\x69\x6E\x52\x61\x6E\x6B","\x6E\x65\x78\x74\x4C\x61\x79\x65\x72\x43\x6F\x6E\x6E\x65\x63\x74\x65\x64\x43\x65\x6C\x6C\x73","\x70\x72\x65\x76\x69\x6F\x75\x73\x4C\x61\x79\x65\x72\x43\x6F\x6E\x6E\x65\x63\x74\x65\x64\x43\x65\x6C\x6C\x73","\x67\x65\x74\x4E\x65\x78\x74\x4C\x61\x79\x65\x72\x43\x6F\x6E\x6E\x65\x63\x74\x65\x64\x43\x65\x6C\x6C\x73","\x67\x65\x74\x50\x72\x65\x76\x69\x6F\x75\x73\x4C\x61\x79\x65\x72\x43\x6F\x6E\x6E\x65\x63\x74\x65\x64\x43\x65\x6C\x6C\x73","\x67\x65\x74\x47\x65\x6E\x65\x72\x61\x6C\x50\x75\x72\x70\x6F\x73\x65\x56\x61\x72\x69\x61\x62\x6C\x65","\x73\x65\x74\x47\x65\x6E\x65\x72\x61\x6C\x50\x75\x72\x70\x6F\x73\x65\x56\x61\x72\x69\x61\x62\x6C\x65","\x73\x65\x74\x58","\x73\x65\x74\x59","\x63\x6F\x6E\x6E\x65\x63\x74\x73\x41\x73\x54\x61\x72\x67\x65\x74","\x63\x6F\x6E\x6E\x65\x63\x74\x73\x41\x73\x53\x6F\x75\x72\x63\x65","\x68\x61\x73\x68\x43\x6F\x64\x65","\x67\x65\x74\x52\x61\x6E\x6B\x56\x61\x6C\x75\x65","\x67\x65\x74\x43\x6F\x72\x65\x43\x65\x6C\x6C","\x65\x64\x67\x65\x73","\x69\x73\x52\x65\x76\x65\x72\x73\x65\x64","\x74\x69\x67\x68\x74\x65\x6E\x54\x6F\x53\x6F\x75\x72\x63\x65","\x72\x6F\x6F\x74\x73","\x76\x65\x72\x74\x65\x78\x4D\x61\x70\x70\x65\x72","\x65\x64\x67\x65\x4D\x61\x70\x70\x65\x72","\x53\x4F\x55\x52\x43\x45\x53\x43\x41\x4E\x53\x54\x41\x52\x54\x52\x41\x4E\x4B","\x63\x72\x65\x61\x74\x65\x49\x6E\x74\x65\x72\x6E\x61\x6C\x43\x65\x6C\x6C\x73","\x72\x61\x6E\x6B\x73","\x64\x66\x73\x43\x6F\x75\x6E\x74","\x69\x6E\x69\x74\x69\x61\x6C\x52\x61\x6E\x6B","\x73\x6C\x69\x63\x65","\x66\x69\x78\x52\x61\x6E\x6B\x73","\x65\x78\x74\x65\x6E\x64\x65\x64\x44\x66\x73","\x6E\x65\x73\x74\x65\x64\x42\x65\x73\x74\x52\x61\x6E\x6B\x73","\x63\x75\x72\x72\x65\x6E\x74\x42\x65\x73\x74\x43\x72\x6F\x73\x73\x69\x6E\x67\x73","\x69\x74\x65\x72\x61\x74\x69\x6F\x6E\x73\x57\x69\x74\x68\x6F\x75\x74\x49\x6D\x70\x72\x6F\x76\x65\x6D\x65\x6E\x74","\x6D\x61\x78\x4E\x6F\x49\x6D\x70\x72\x6F\x76\x65\x6D\x65\x6E\x74\x49\x74\x65\x72\x61\x74\x69\x6F\x6E\x73","\x63\x61\x6C\x63\x75\x6C\x61\x74\x65\x43\x72\x6F\x73\x73\x69\x6E\x67\x73","\x77\x65\x69\x67\x68\x74\x65\x64\x4D\x65\x64\x69\x61\x6E","\x74\x72\x61\x6E\x73\x70\x6F\x73\x65","\x63\x61\x6C\x63\x75\x6C\x61\x74\x65\x52\x61\x6E\x6B\x43\x72\x6F\x73\x73\x69\x6E\x67","\x6D\x65\x64\x69\x61\x6E\x52\x61\x6E\x6B","\x6D\x65\x64\x69\x61\x6E\x56\x61\x6C\x75\x65","\x6C\x65\x6E\x74\x68","\x67\x65\x74\x49\x6E\x63\x6F\x6D\x69\x6E\x67\x45\x64\x67\x65\x73","\x69\x6E\x74\x72\x61\x43\x65\x6C\x6C\x53\x70\x61\x63\x69\x6E\x67","\x69\x6E\x74\x65\x72\x52\x61\x6E\x6B\x43\x65\x6C\x6C\x53\x70\x61\x63\x69\x6E\x67","\x6F\x72\x69\x65\x6E\x74\x61\x74\x69\x6F\x6E","\x69\x6E\x69\x74\x69\x61\x6C\x58","\x70\x61\x72\x61\x6C\x6C\x65\x6C\x45\x64\x67\x65\x53\x70\x61\x63\x69\x6E\x67","\x6A\x65\x74\x74\x79\x50\x6F\x73\x69\x74\x69\x6F\x6E\x73","\x6C\x69\x6D\x69\x74\x58","\x63\x75\x72\x72\x65\x6E\x74\x58\x44\x65\x6C\x74\x61","\x77\x69\x64\x65\x73\x74\x52\x61\x6E\x6B","\x72\x61\x6E\x6B\x54\x6F\x70\x59","\x72\x61\x6E\x6B\x42\x6F\x74\x74\x6F\x6D\x59","\x77\x69\x64\x65\x73\x74\x52\x61\x6E\x6B\x56\x61\x6C\x75\x65","\x72\x61\x6E\x6B\x57\x69\x64\x74\x68\x73","\x72\x61\x6E\x6B\x59","\x66\x69\x6E\x65\x54\x75\x6E\x69\x6E\x67","\x50\x4F\x4C\x59\x4C\x49\x4E\x45","\x6E\x65\x78\x74\x4C\x61\x79\x65\x72\x43\x6F\x6E\x6E\x65\x63\x74\x65\x64\x43\x61\x63\x68\x65","\x70\x72\x65\x76\x69\x6F\x75\x73\x4C\x61\x79\x65\x72\x43\x6F\x6E\x6E\x65\x63\x74\x65\x64\x43\x61\x63\x68\x65","\x70\x72\x69\x6E\x74\x53\x74\x61\x74\x75\x73","\x3D\x3D\x3D\x3D\x3D\x3D\x43\x6F\x6F\x72\x64\x20\x61\x73\x73\x69\x67\x6E\x6D\x65\x6E\x74\x20\x64\x65\x62\x75\x67\x3D\x3D\x3D\x3D\x3D\x3D\x3D","\x52\x61\x6E\x6B\x20","\x20\x3A\x20","\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D","\x69\x6E\x69\x74\x69\x61\x6C\x43\x6F\x6F\x72\x64\x73","\x6D\x69\x6E\x4E\x6F\x64\x65","\x6D\x65\x64\x69\x61\x6E\x50\x6F\x73","\x6D\x69\x6E\x50\x61\x74\x68","\x73\x65\x74\x43\x65\x6C\x6C\x4C\x6F\x63\x61\x74\x69\x6F\x6E\x73","\x6D\x65\x64\x69\x61\x6E\x58\x56\x61\x6C\x75\x65","\x72\x61\x6E\x6B\x4D\x65\x64\x69\x61\x6E\x50\x6F\x73\x69\x74\x69\x6F\x6E","\x63\x61\x6C\x63\x75\x6C\x61\x74\x65\x64\x57\x65\x69\x67\x68\x74\x65\x64\x56\x61\x6C\x75\x65","\x63\x61\x6C\x63\x75\x6C\x61\x74\x65\x57\x69\x64\x65\x73\x74\x52\x61\x6E\x6B","\x72\x61\x6E\x6B\x43\x6F\x6F\x72\x64\x69\x6E\x61\x74\x65\x73","\x65\x64\x67\x65\x2E\x65\x64\x67\x65\x73\x20\x69\x73\x20\x6E\x75\x6C\x6C","\x41\x74\x20\x6C\x65\x61\x73\x74\x20\x6F\x6E\x65\x20\x63\x65\x6C\x6C\x20\x68\x61\x73\x20\x6E\x6F\x20\x62\x6F\x75\x6E\x64\x73","\x72\x65\x70\x6F\x73\x69\x74\x69\x6F\x6E\x56\x61\x6C\x69\x64","\x4D\x41\x58\x5F\x56\x41\x4C\x55\x45","\x4F\x52\x54\x48\x4F\x47\x4F\x4E\x41\x4C","\x43\x55\x52\x56\x45","\x73\x65\x74\x45\x64\x67\x65\x50\x6F\x73\x69\x74\x69\x6F\x6E","\x69\x73\x50\x6F\x72\x74","\x70\x72\x6F\x63\x65\x73\x73\x52\x65\x76\x65\x72\x73\x65\x64\x45\x64\x67\x65","\x64\x65\x74\x65\x72\x6D\x69\x6E\x69\x73\x74\x69\x63","\x6D\x6F\x76\x65\x50\x61\x72\x65\x6E\x74","\x70\x61\x72\x65\x6E\x74\x42\x6F\x72\x64\x65\x72","\x69\x6E\x74\x65\x72\x48\x69\x65\x72\x61\x72\x63\x68\x79\x53\x70\x61\x63\x69\x6E\x67","\x74\x72\x61\x76\x65\x72\x73\x65\x41\x6E\x63\x65\x73\x74\x6F\x72\x73","\x65\x64\x67\x65\x73\x43\x61\x63\x68\x65","\x72\x75\x6E","\x75\x70\x64\x61\x74\x65\x47\x72\x6F\x75\x70\x42\x6F\x75\x6E\x64\x73","\x66\x69\x6E\x64\x52\x6F\x6F\x74\x73","\x63\x6F\x6E\x63\x61\x74","\x69\x73\x56\x61\x6C\x69\x64\x41\x6E\x63\x65\x73\x74\x6F\x72","\x66\x69\x6C\x74\x65\x72\x44\x65\x73\x63\x65\x6E\x64\x61\x6E\x74\x73","\x63\x79\x63\x6C\x65\x53\x74\x61\x67\x65","\x6C\x61\x79\x65\x72\x69\x6E\x67\x53\x74\x61\x67\x65","\x63\x72\x6F\x73\x73\x69\x6E\x67\x53\x74\x61\x67\x65","\x70\x6C\x61\x63\x65\x6D\x65\x6E\x74\x53\x74\x61\x67\x65","\x63\x75\x72\x72\x65\x6E\x74\x45\x64\x69\x74","\x73\x65\x74\x52\x6F\x6F\x74","\x6D\x61\x69\x6E\x74\x61\x69\x6E\x45\x64\x67\x65\x50\x61\x72\x65\x6E\x74","\x63\x72\x65\x61\x74\x65\x49\x64\x73","\x70\x6F\x73\x74\x66\x69\x78","\x6E\x65\x78\x74\x49\x64","\x75\x70\x64\x61\x74\x65\x4C\x65\x76\x65\x6C","\x65\x6E\x64\x69\x6E\x67\x55\x70\x64\x61\x74\x65","\x63\x72\x65\x61\x74\x65\x52\x6F\x6F\x74","\x69\x73\x43\x72\x65\x61\x74\x65\x49\x64\x73","\x73\x65\x74\x43\x72\x65\x61\x74\x65\x49\x64\x73","\x69\x6E\x73\x65\x72\x74","\x66\x69\x6C\x74\x65\x72\x43\x65\x6C\x6C\x73","\x67\x65\x74\x44\x65\x73\x63\x65\x6E\x64\x61\x6E\x74\x73","\x72\x6F\x6F\x74\x43\x68\x61\x6E\x67\x65\x64","\x63\x65\x6C\x6C\x41\x64\x64\x65\x64","\x69\x73\x52\x6F\x6F\x74","\x75\x70\x64\x61\x74\x65\x45\x64\x67\x65\x50\x61\x72\x65\x6E\x74\x73","\x63\x72\x65\x61\x74\x65\x49\x64","\x73\x65\x74\x49\x64","\x69\x73\x4E\x75\x6D\x65\x72\x69\x63","\x75\x70\x64\x61\x74\x65\x45\x64\x67\x65\x50\x61\x72\x65\x6E\x74","\x67\x65\x74\x4E\x65\x61\x72\x65\x73\x74\x43\x6F\x6D\x6D\x6F\x6E\x41\x6E\x63\x65\x73\x74\x6F\x72","\x67\x65\x74\x4F\x72\x69\x67\x69\x6E","\x50\x41\x54\x48\x5F\x53\x45\x50\x41\x52\x41\x54\x4F\x52","\x67\x65\x74\x50\x61\x72\x65\x6E\x74\x50\x61\x74\x68","\x70\x61\x72\x65\x6E\x74\x46\x6F\x72\x43\x65\x6C\x6C\x43\x68\x61\x6E\x67\x65\x64","\x67\x65\x74\x43\x68\x69\x6C\x64\x72\x65\x6E","\x63\x68\x69\x6C\x64\x72\x65\x6E","\x67\x65\x74\x43\x68\x69\x6C\x64\x43\x65\x6C\x6C\x73","\x67\x65\x74\x43\x68\x69\x6C\x64\x45\x64\x67\x65\x73","\x73\x65\x74\x54\x65\x72\x6D\x69\x6E\x61\x6C","\x73\x65\x74\x54\x65\x72\x6D\x69\x6E\x61\x6C\x73","\x74\x65\x72\x6D\x69\x6E\x61\x6C\x46\x6F\x72\x43\x65\x6C\x6C\x43\x68\x61\x6E\x67\x65\x64","\x69\x6E\x73\x65\x72\x74\x45\x64\x67\x65","\x72\x65\x6D\x6F\x76\x65\x45\x64\x67\x65","\x67\x65\x74\x44\x69\x72\x65\x63\x74\x65\x64\x45\x64\x67\x65\x43\x6F\x75\x6E\x74","\x67\x65\x74\x4F\x75\x74\x67\x6F\x69\x6E\x67\x45\x64\x67\x65\x73","\x67\x65\x74\x54\x6F\x70\x6D\x6F\x73\x74\x43\x65\x6C\x6C\x73","\x69\x73\x43\x6F\x6E\x6E\x65\x63\x74\x61\x62\x6C\x65","\x73\x65\x74\x56\x61\x6C\x75\x65","\x76\x61\x6C\x75\x65\x46\x6F\x72\x43\x65\x6C\x6C\x43\x68\x61\x6E\x67\x65\x64","\x76\x61\x6C\x75\x65\x43\x68\x61\x6E\x67\x65\x64","\x67\x65\x6F\x6D\x65\x74\x72\x79\x46\x6F\x72\x43\x65\x6C\x6C\x43\x68\x61\x6E\x67\x65\x64","\x73\x74\x79\x6C\x65\x46\x6F\x72\x43\x65\x6C\x6C\x43\x68\x61\x6E\x67\x65\x64","\x69\x73\x43\x6F\x6C\x6C\x61\x70\x73\x65\x64","\x73\x65\x74\x43\x6F\x6C\x6C\x61\x70\x73\x65\x64","\x63\x6F\x6C\x6C\x61\x70\x73\x65\x64\x53\x74\x61\x74\x65\x46\x6F\x72\x43\x65\x6C\x6C\x43\x68\x61\x6E\x67\x65\x64","\x76\x69\x73\x69\x62\x6C\x65\x53\x74\x61\x74\x65\x46\x6F\x72\x43\x65\x6C\x6C\x43\x68\x61\x6E\x67\x65\x64","\x6D\x65\x72\x67\x65\x43\x68\x69\x6C\x64\x72\x65\x6E","\x6D\x65\x72\x67\x65\x43\x68\x69\x6C\x64\x72\x65\x6E\x49\x6D\x70\x6C","\x67\x65\x74\x50\x61\x72\x65\x6E\x74\x73","\x63\x6C\x6F\x6E\x65\x43\x65\x6C\x6C","\x63\x6C\x6F\x6E\x65\x43\x65\x6C\x6C\x49\x6D\x70\x6C","\x72\x65\x73\x74\x6F\x72\x65\x43\x6C\x6F\x6E\x65","\x63\x65\x6C\x6C\x43\x6C\x6F\x6E\x65\x64","\x70\x72\x65\x76\x69\x6F\x75\x73\x49\x6E\x64\x65\x78","\x69\x6E\x64\x65\x78","\x74\x65\x72\x6D\x69\x6E\x61\x6C","\x63\x6F\x6C\x6C\x61\x70\x73\x65\x64","\x61\x74\x74\x72\x69\x62\x75\x74\x65","\x6F\x6E\x49\x6E\x69\x74","\x76\x65\x72\x74\x65\x78","\x65\x64\x67\x65","\x63\x6F\x6E\x6E\x65\x63\x74\x61\x62\x6C\x65","\x6D\x78\x54\x72\x61\x6E\x73\x69\x65\x6E\x74","\x69\x64\x20\x76\x61\x6C\x75\x65\x20\x70\x61\x72\x65\x6E\x74\x20\x73\x6F\x75\x72\x63\x65\x20\x74\x61\x72\x67\x65\x74\x20\x63\x68\x69\x6C\x64\x72\x65\x6E\x20\x65\x64\x67\x65\x73","\x73\x65\x74\x56\x65\x72\x74\x65\x78","\x73\x65\x74\x45\x64\x67\x65","\x73\x65\x74\x43\x6F\x6E\x6E\x65\x63\x74\x61\x62\x6C\x65","\x73\x65\x74\x50\x61\x72\x65\x6E\x74","\x72\x65\x6D\x6F\x76\x65\x46\x72\x6F\x6D\x50\x61\x72\x65\x6E\x74","\x67\x65\x74\x45\x64\x67\x65\x49\x6E\x64\x65\x78","\x72\x65\x6D\x6F\x76\x65\x46\x72\x6F\x6D\x54\x65\x72\x6D\x69\x6E\x61\x6C","\x63\x6C\x6F\x6E\x65\x56\x61\x6C\x75\x65","\x54\x52\x41\x4E\x53\x4C\x41\x54\x45\x5F\x43\x4F\x4E\x54\x52\x4F\x4C\x5F\x50\x4F\x49\x4E\x54\x53","\x61\x6C\x74\x65\x72\x6E\x61\x74\x65\x42\x6F\x75\x6E\x64\x73","\x73\x6F\x75\x72\x63\x65\x50\x6F\x69\x6E\x74","\x74\x61\x72\x67\x65\x74\x50\x6F\x69\x6E\x74","\x73\x77\x61\x70","\x67\x65\x74\x54\x65\x72\x6D\x69\x6E\x61\x6C\x50\x6F\x69\x6E\x74","\x73\x65\x74\x54\x65\x72\x6D\x69\x6E\x61\x6C\x50\x6F\x69\x6E\x74","\x74\x61\x6E","\x70\x6F\x77","\x69\x6E\x74\x65\x72\x73\x65\x63\x74\x69\x6F\x6E","\x53\x54\x59\x4C\x45\x5F\x44\x49\x52\x45\x43\x54\x49\x4F\x4E","\x70\x61\x67\x65\x53\x63\x61\x6C\x65","\x70\x61\x67\x65\x46\x6F\x72\x6D\x61\x74","\x50\x72\x69\x6E\x74\x65\x72\x2D\x66\x72\x69\x65\x6E\x64\x6C\x79\x20\x76\x65\x72\x73\x69\x6F\x6E","\x70\x61\x67\x65\x53\x65\x6C\x65\x63\x74\x6F\x72","\x61\x75\x74\x6F\x4F\x72\x69\x67\x69\x6E","\x70\x72\x69\x6E\x74\x4F\x76\x65\x72\x6C\x61\x79\x73","\x77\x6E\x64","\x70\x61\x67\x65\x43\x6F\x75\x6E\x74","\x67\x65\x74\x57\x69\x6E\x64\x6F\x77","\x67\x65\x74\x44\x6F\x63\x74\x79\x70\x65","\x3C\x6D\x65\x74\x61\x20\x68\x74\x74\x70\x2D\x65\x71\x75\x69\x76\x3D\x22\x58\x2D\x55\x41\x2D\x43\x6F\x6D\x70\x61\x74\x69\x62\x6C\x65\x22\x20\x63\x6F\x6E\x74\x65\x6E\x74\x3D\x22\x49\x45\x3D\x38\x22\x3E","\x69\x6E\x69\x74\x69\x61\x6C\x69\x7A\x65\x4F\x76\x65\x72\x6C\x61\x79","\x67\x65\x74\x44\x72\x61\x77\x50\x61\x6E\x65","\x77\x72\x69\x74\x65\x48\x65\x61\x64","\x3C\x62\x6F\x64\x79\x20\x63\x6C\x61\x73\x73\x3D\x22\x6D\x78\x50\x61\x67\x65\x22\x3E","\x63\x72\x65\x61\x74\x65\x50\x61\x67\x65\x53\x65\x6C\x65\x63\x74\x6F\x72","\x70\x61\x67\x65\x42\x72\x65\x61\x6B\x41\x66\x74\x65\x72","\x61\x6C\x77\x61\x79\x73","\x6D\x78\x50\x61\x67\x65\x42\x72\x65\x61\x6B","\x67\x65\x74\x43\x6F\x76\x65\x72\x50\x61\x67\x65\x73","\x67\x65\x74\x41\x70\x70\x65\x6E\x64\x69\x63\x65\x73","\x61\x64\x64\x47\x72\x61\x70\x68\x46\x72\x61\x67\x6D\x65\x6E\x74","\x72\x65\x6E\x64\x65\x72\x50\x61\x67\x65","\x6D\x78\x50\x61\x67\x65\x2D","\x3C\x74\x69\x74\x6C\x65\x3E","\x3C\x2F\x74\x69\x74\x6C\x65\x3E","\x3C\x73\x74\x79\x6C\x65\x20\x74\x79\x70\x65\x3D\x22\x74\x65\x78\x74\x2F\x63\x73\x73\x22\x3E","\x40\x6D\x65\x64\x69\x61\x20\x70\x72\x69\x6E\x74\x20\x7B","\x20\x20\x74\x61\x62\x6C\x65\x2E\x6D\x78\x50\x61\x67\x65\x53\x65\x6C\x65\x63\x74\x6F\x72\x20\x7B\x20\x64\x69\x73\x70\x6C\x61\x79\x3A\x20\x6E\x6F\x6E\x65\x3B\x20\x7D","\x20\x20\x68\x72\x2E\x6D\x78\x50\x61\x67\x65\x42\x72\x65\x61\x6B\x20\x7B\x20\x64\x69\x73\x70\x6C\x61\x79\x3A\x20\x6E\x6F\x6E\x65\x3B\x20\x7D","\x40\x6D\x65\x64\x69\x61\x20\x73\x63\x72\x65\x65\x6E\x20\x7B","\x20\x20\x74\x61\x62\x6C\x65\x2E\x6D\x78\x50\x61\x67\x65\x53\x65\x6C\x65\x63\x74\x6F\x72\x20\x7B\x20\x70\x6F\x73\x69\x74\x69\x6F\x6E\x3A\x20\x66\x69\x78\x65\x64\x3B\x20\x72\x69\x67\x68\x74\x3A\x20\x31\x30\x70\x78\x3B\x20\x74\x6F\x70\x3A\x20\x31\x30\x70\x78\x3B\x66\x6F\x6E\x74\x2D\x66\x61\x6D\x69\x6C\x79\x3A\x20\x41\x72\x69\x61\x6C\x3B\x20\x66\x6F\x6E\x74\x2D\x73\x69\x7A\x65\x3A\x31\x30\x70\x74\x3B\x20\x62\x6F\x72\x64\x65\x72\x3A\x20\x73\x6F\x6C\x69\x64\x20\x31\x70\x78\x20\x64\x61\x72\x6B\x67\x72\x61\x79\x3B\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x3A\x20\x77\x68\x69\x74\x65\x3B\x20\x62\x6F\x72\x64\x65\x72\x2D\x63\x6F\x6C\x6C\x61\x70\x73\x65\x3A\x63\x6F\x6C\x6C\x61\x70\x73\x65\x3B\x20\x7D","\x20\x20\x74\x61\x62\x6C\x65\x2E\x6D\x78\x50\x61\x67\x65\x53\x65\x6C\x65\x63\x74\x6F\x72\x20\x74\x64\x20\x7B\x20\x62\x6F\x72\x64\x65\x72\x3A\x20\x73\x6F\x6C\x69\x64\x20\x31\x70\x78\x20\x67\x72\x61\x79\x3B\x20\x70\x61\x64\x64\x69\x6E\x67\x3A\x34\x70\x78\x3B\x20\x7D","\x20\x20\x62\x6F\x64\x79\x2E\x6D\x78\x50\x61\x67\x65\x20\x7B\x20\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x3A\x20\x67\x72\x61\x79\x3B\x20\x7D","\x3C\x2F\x73\x74\x79\x6C\x65\x3E","\x6D\x78\x50\x61\x67\x65\x53\x65\x6C\x65\x63\x74\x6F\x72","\x61","\x23\x6D\x78\x50\x61\x67\x65\x2D","\x70\x61\x67\x65\x42\x72\x65\x61\x6B\x49\x6E\x73\x69\x64\x65","\x67\x65\x74\x43\x61\x6E\x76\x61\x73","\x67\x65\x74\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x50\x61\x6E\x65","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x50\x61\x6E\x65","\x73\x74\x79\x6C\x65\x73","\x63\x72\x65\x61\x74\x65\x44\x65\x66\x61\x75\x6C\x74\x56\x65\x72\x74\x65\x78\x53\x74\x79\x6C\x65","\x70\x75\x74\x44\x65\x66\x61\x75\x6C\x74\x56\x65\x72\x74\x65\x78\x53\x74\x79\x6C\x65","\x63\x72\x65\x61\x74\x65\x44\x65\x66\x61\x75\x6C\x74\x45\x64\x67\x65\x53\x74\x79\x6C\x65","\x70\x75\x74\x44\x65\x66\x61\x75\x6C\x74\x45\x64\x67\x65\x53\x74\x79\x6C\x65","\x53\x54\x59\x4C\x45\x5F\x53\x48\x41\x50\x45","\x53\x48\x41\x50\x45\x5F\x52\x45\x43\x54\x41\x4E\x47\x4C\x45","\x53\x54\x59\x4C\x45\x5F\x50\x45\x52\x49\x4D\x45\x54\x45\x52","\x52\x65\x63\x74\x61\x6E\x67\x6C\x65\x50\x65\x72\x69\x6D\x65\x74\x65\x72","\x53\x54\x59\x4C\x45\x5F\x56\x45\x52\x54\x49\x43\x41\x4C\x5F\x41\x4C\x49\x47\x4E","\x53\x54\x59\x4C\x45\x5F\x41\x4C\x49\x47\x4E","\x53\x54\x59\x4C\x45\x5F\x46\x49\x4C\x4C\x43\x4F\x4C\x4F\x52","\x23\x43\x33\x44\x39\x46\x46","\x53\x54\x59\x4C\x45\x5F\x53\x54\x52\x4F\x4B\x45\x43\x4F\x4C\x4F\x52","\x23\x36\x34\x38\x32\x42\x39","\x53\x54\x59\x4C\x45\x5F\x46\x4F\x4E\x54\x43\x4F\x4C\x4F\x52","\x23\x37\x37\x34\x34\x30\x30","\x53\x48\x41\x50\x45\x5F\x43\x4F\x4E\x4E\x45\x43\x54\x4F\x52","\x23\x34\x34\x36\x32\x39\x39","\x64\x65\x66\x61\x75\x6C\x74\x56\x65\x72\x74\x65\x78","\x70\x75\x74\x43\x65\x6C\x6C\x53\x74\x79\x6C\x65","\x64\x65\x66\x61\x75\x6C\x74\x45\x64\x67\x65","\x67\x65\x74\x44\x65\x66\x61\x75\x6C\x74\x56\x65\x72\x74\x65\x78\x53\x74\x79\x6C\x65","\x67\x65\x74\x44\x65\x66\x61\x75\x6C\x74\x45\x64\x67\x65\x53\x74\x79\x6C\x65","\x6F\x72\x69\x67\x69\x6E","\x61\x62\x73\x6F\x6C\x75\x74\x65\x4F\x66\x66\x73\x65\x74","\x69\x6E\x76\x61\x6C\x69\x64","\x69\x6E\x76\x61\x6C\x69\x64\x4F\x72\x64\x65\x72","\x6F\x72\x64\x65\x72\x43\x68\x61\x6E\x67\x65\x64","\x76\x69\x73\x69\x62\x6C\x65\x53\x6F\x75\x72\x63\x65\x53\x74\x61\x74\x65","\x76\x69\x73\x69\x62\x6C\x65\x54\x61\x72\x67\x65\x74\x53\x74\x61\x74\x65","\x74\x65\x72\x6D\x69\x6E\x61\x6C\x44\x69\x73\x74\x61\x6E\x63\x65","\x73\x65\x67\x6D\x65\x6E\x74\x73","\x67\x65\x74\x50\x65\x72\x69\x6D\x65\x74\x65\x72\x42\x6F\x75\x6E\x64\x73","\x73\x65\x74\x41\x62\x73\x6F\x6C\x75\x74\x65\x54\x65\x72\x6D\x69\x6E\x61\x6C\x50\x6F\x69\x6E\x74","\x67\x65\x74\x56\x69\x73\x69\x62\x6C\x65\x54\x65\x72\x6D\x69\x6E\x61\x6C\x53\x74\x61\x74\x65","\x73\x65\x74\x56\x69\x73\x69\x62\x6C\x65\x54\x65\x72\x6D\x69\x6E\x61\x6C\x53\x74\x61\x74\x65","\x64\x6F\x6E\x65\x52\x65\x73\x6F\x75\x72\x63\x65","\x75\x70\x64\x61\x74\x69\x6E\x67\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x52\x65\x73\x6F\x75\x72\x63\x65","\x75\x70\x64\x61\x74\x69\x6E\x67\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E","\x73\x69\x6E\x67\x6C\x65\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E","\x69\x73\x53\x69\x6E\x67\x6C\x65\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E","\x73\x65\x74\x53\x69\x6E\x67\x6C\x65\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E","\x69\x73\x53\x65\x6C\x65\x63\x74\x65\x64","\x63\x68\x61\x6E\x67\x65\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E","\x73\x65\x74\x43\x65\x6C\x6C","\x73\x65\x74\x43\x65\x6C\x6C\x73","\x67\x65\x74\x46\x69\x72\x73\x74\x53\x65\x6C\x65\x63\x74\x61\x62\x6C\x65\x43\x65\x6C\x6C","\x69\x73\x43\x65\x6C\x6C\x53\x65\x6C\x65\x63\x74\x61\x62\x6C\x65","\x61\x64\x64\x43\x65\x6C\x6C","\x72\x65\x6D\x6F\x76\x65\x43\x65\x6C\x6C","\x73\x65\x6C\x65\x63\x74\x69\x6F\x6E\x4D\x6F\x64\x65\x6C","\x61\x64\x64\x65\x64","\x72\x65\x6D\x6F\x76\x65\x64","\x6D\x78\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x68\x61\x6E\x67\x65\x2E\x65\x78\x65\x63\x75\x74\x65","\x65\x6E\x74\x65\x72","\x6C\x65\x61\x76\x65","\x65\x64\x69\x74\x69\x6E\x67\x43\x65\x6C\x6C","\x74\x72\x69\x67\x67\x65\x72","\x6D\x6F\x64\x69\x66\x69\x65\x64","\x61\x75\x74\x6F\x53\x69\x7A\x65","\x65\x6D\x70\x74\x79\x4C\x61\x62\x65\x6C\x54\x65\x78\x74","\x74\x65\x78\x74\x4E\x6F\x64\x65","\x6D\x78\x43\x65\x6C\x6C\x45\x64\x69\x74\x6F\x72","\x63\x6F\x6C\x73","\x32\x30","\x34","\x62\x6C\x75\x72","\x66\x6F\x63\x75\x73\x4C\x6F\x73\x74","\x6B\x65\x79\x64\x6F\x77\x6E","\x6B\x65\x79\x43\x6F\x64\x65","\x69\x73\x45\x6E\x74\x65\x72\x53\x74\x6F\x70\x73\x43\x65\x6C\x6C\x45\x64\x69\x74\x69\x6E\x67","\x73\x74\x6F\x70\x45\x64\x69\x74\x69\x6E\x67","\x63\x6C\x65\x61\x72\x4F\x6E\x43\x68\x61\x6E\x67\x65","\x73\x65\x74\x4D\x6F\x64\x69\x66\x69\x65\x64","\x6B\x65\x79\x70\x72\x65\x73\x73","\x69\x73\x4C\x61\x62\x65\x6C\x43\x6C\x69\x70\x70\x65\x64","\x69\x73\x57\x72\x61\x70\x70\x69\x6E\x67","\x41\x4C\x49\x47\x4E\x5F\x4C\x45\x46\x54","\x69\x73\x4D\x6F\x64\x69\x66\x69\x65\x64","\x69\x73\x49\x6E\x76\x6F\x6B\x65\x73\x53\x74\x6F\x70\x43\x65\x6C\x6C\x45\x64\x69\x74\x69\x6E\x67","\x69\x73\x48\x69\x64\x65\x4C\x61\x62\x65\x6C","\x6F\x75\x74\x6C\x69\x6E\x65","\x67\x65\x74\x45\x64\x69\x74\x6F\x72\x42\x6F\x75\x6E\x64\x73","\x67\x65\x74\x49\x6E\x69\x74\x69\x61\x6C\x56\x61\x6C\x75\x65","\x67\x65\x74\x45\x6D\x70\x74\x79\x4C\x61\x62\x65\x6C\x54\x65\x78\x74","\x63\x72\x65\x61\x74\x65\x54\x65\x78\x74\x44\x69\x76","\x67\x65\x74\x43\x75\x72\x72\x65\x6E\x74\x56\x61\x6C\x75\x65","\x67\x65\x74\x45\x64\x69\x74\x69\x6E\x67\x56\x61\x6C\x75\x65","\x53\x54\x59\x4C\x45\x5F\x53\x50\x41\x43\x49\x4E\x47","\x53\x54\x59\x4C\x45\x5F\x53\x50\x41\x43\x49\x4E\x47\x5F\x54\x4F\x50","\x53\x54\x59\x4C\x45\x5F\x53\x50\x41\x43\x49\x4E\x47\x5F\x52\x49\x47\x48\x54","\x53\x54\x59\x4C\x45\x5F\x53\x50\x41\x43\x49\x4E\x47\x5F\x42\x4F\x54\x54\x4F\x4D","\x53\x54\x59\x4C\x45\x5F\x53\x50\x41\x43\x49\x4E\x47\x5F\x4C\x45\x46\x54","\x67\x65\x74\x45\x64\x69\x74\x69\x6E\x67\x43\x65\x6C\x6C","\x64\x65\x66\x61\x75\x6C\x74\x45\x64\x67\x65\x53\x68\x61\x70\x65","\x64\x65\x66\x61\x75\x6C\x74\x56\x65\x72\x74\x65\x78\x53\x68\x61\x70\x65","\x64\x65\x66\x61\x75\x6C\x74\x54\x65\x78\x74\x53\x68\x61\x70\x65","\x6C\x65\x67\x61\x63\x79\x43\x6F\x6E\x74\x72\x6F\x6C\x50\x6F\x73\x69\x74\x69\x6F\x6E","\x64\x65\x66\x61\x75\x6C\x74\x53\x68\x61\x70\x65\x73","\x72\x65\x67\x69\x73\x74\x65\x72\x53\x68\x61\x70\x65","\x69\x6E\x69\x74\x69\x61\x6C\x69\x7A\x65","\x63\x72\x65\x61\x74\x65\x53\x68\x61\x70\x65","\x69\x6E\x69\x74\x69\x61\x6C\x69\x7A\x65\x53\x68\x61\x70\x65","\x6F\x72\x64\x65\x72\x65\x64","\x6B\x65\x65\x70\x45\x64\x67\x65\x73\x49\x6E\x46\x6F\x72\x65\x67\x72\x6F\x75\x6E\x64","\x66\x69\x72\x73\x74\x45\x64\x67\x65","\x69\x6E\x73\x65\x72\x74\x53\x74\x61\x74\x65","\x63\x72\x65\x61\x74\x65\x43\x65\x6C\x6C\x4F\x76\x65\x72\x6C\x61\x79\x73","\x69\x6E\x73\x74\x61\x6C\x6C\x4C\x69\x73\x74\x65\x6E\x65\x72\x73","\x67\x65\x74\x50\x72\x65\x76\x69\x6F\x75\x73\x53\x74\x61\x74\x65\x49\x6E\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x66\x69\x6E\x64\x50\x72\x65\x76\x69\x6F\x75\x73\x53\x74\x61\x74\x65\x49\x6E\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x6F\x72\x64\x65\x72","\x6F\x72\x64\x65\x72\x45\x64\x67\x65","\x6B\x65\x65\x70\x45\x64\x67\x65\x73\x49\x6E\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64","\x67\x65\x74\x53\x68\x61\x70\x65\x43\x6F\x6E\x73\x74\x72\x75\x63\x74\x6F\x72","\x63\x6F\x6E\x66\x69\x67\x75\x72\x65\x53\x68\x61\x70\x65","\x67\x65\x74\x53\x68\x61\x70\x65","\x67\x65\x74\x49\x6E\x64\x69\x63\x61\x74\x6F\x72\x53\x68\x61\x70\x65","\x67\x65\x74\x49\x6E\x64\x69\x63\x61\x74\x6F\x72\x43\x6F\x6C\x6F\x72","\x67\x65\x74\x49\x6E\x64\x69\x63\x61\x74\x6F\x72\x47\x72\x61\x64\x69\x65\x6E\x74\x43\x6F\x6C\x6F\x72","\x53\x54\x59\x4C\x45\x5F\x49\x4E\x44\x49\x43\x41\x54\x4F\x52\x5F\x44\x49\x52\x45\x43\x54\x49\x4F\x4E","\x67\x65\x74\x49\x6E\x64\x69\x63\x61\x74\x6F\x72\x49\x6D\x61\x67\x65","\x70\x6F\x73\x74\x43\x6F\x6E\x66\x69\x67\x75\x72\x65\x53\x68\x61\x70\x65","\x72\x65\x73\x6F\x6C\x76\x65\x43\x6F\x6C\x6F\x72","\x67\x65\x74\x53\x77\x69\x6D\x6C\x61\x6E\x65","\x73\x77\x69\x6D\x6C\x61\x6E\x65\x49\x6E\x64\x69\x63\x61\x74\x6F\x72\x43\x6F\x6C\x6F\x72\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x69\x6E\x64\x69\x63\x61\x74\x65\x64","\x67\x65\x74\x4C\x61\x62\x65\x6C\x56\x61\x6C\x75\x65","\x67\x65\x74\x4C\x61\x62\x65\x6C","\x63\x72\x65\x61\x74\x65\x4C\x61\x62\x65\x6C","\x53\x54\x59\x4C\x45\x5F\x46\x4F\x4E\x54\x53\x49\x5A\x45","\x69\x73\x48\x74\x6D\x6C\x4C\x61\x62\x65\x6C","\x67\x65\x74\x56\x65\x72\x74\x69\x63\x61\x6C\x41\x6C\x69\x67\x6E","\x53\x54\x59\x4C\x45\x5F\x46\x4F\x4E\x54\x46\x41\x4D\x49\x4C\x59","\x53\x54\x59\x4C\x45\x5F\x46\x4F\x4E\x54\x53\x54\x59\x4C\x45","\x53\x54\x59\x4C\x45\x5F\x48\x4F\x52\x49\x5A\x4F\x4E\x54\x41\x4C","\x53\x54\x59\x4C\x45\x5F\x4C\x41\x42\x45\x4C\x5F\x42\x41\x43\x4B\x47\x52\x4F\x55\x4E\x44\x43\x4F\x4C\x4F\x52","\x53\x54\x59\x4C\x45\x5F\x4C\x41\x42\x45\x4C\x5F\x42\x4F\x52\x44\x45\x52\x43\x4F\x4C\x4F\x52","\x53\x54\x59\x4C\x45\x5F\x4F\x56\x45\x52\x46\x4C\x4F\x57","\x53\x54\x59\x4C\x45\x5F\x4C\x41\x42\x45\x4C\x5F\x50\x41\x44\x44\x49\x4E\x47","\x69\x6E\x69\x74\x69\x61\x6C\x69\x7A\x65\x4C\x61\x62\x65\x6C","\x63\x6F\x6E\x76\x65\x72\x74\x50\x6F\x69\x6E\x74","\x69\x73\x4C\x61\x62\x65\x6C\x45\x76\x65\x6E\x74","\x49\x4D\x47","\x4E\x4F\x5F\x46\x4F","\x67\x65\x74\x43\x65\x6C\x6C\x4F\x76\x65\x72\x6C\x61\x79\x73","\x6F\x76\x65\x72\x6C\x61\x79","\x69\x6E\x73\x74\x61\x6C\x6C\x43\x65\x6C\x6C\x4F\x76\x65\x72\x6C\x61\x79\x4C\x69\x73\x74\x65\x6E\x65\x72\x73","\x69\x73\x45\x64\x69\x74\x69\x6E\x67","\x63\x72\x65\x61\x74\x65\x43\x6F\x6E\x74\x72\x6F\x6C","\x67\x65\x74\x46\x6F\x6C\x64\x69\x6E\x67\x49\x6D\x61\x67\x65","\x66\x6F\x6C\x64\x69\x6E\x67\x45\x6E\x61\x62\x6C\x65\x64","\x63\x6F\x6E\x74\x72\x6F\x6C","\x69\x6E\x69\x74\x43\x6F\x6E\x74\x72\x6F\x6C","\x44\x49\x41\x4C\x45\x43\x54\x5F\x50\x52\x45\x46\x45\x52\x48\x54\x4D\x4C","\x69\x6E\x6E\x65\x72\x4E\x6F\x64\x65","\x69\x73\x53\x68\x61\x70\x65\x45\x76\x65\x6E\x74","\x67\x65\x73\x74\x75\x72\x65\x73\x74\x61\x72\x74","\x6C\x61\x73\x74\x54\x6F\x75\x63\x68\x54\x69\x6D\x65","\x67\x65\x73\x74\x75\x72\x65\x65\x6E\x64","\x67\x65\x73\x74\x75\x72\x65\x45\x6E\x61\x62\x6C\x65\x64","\x68\x61\x6E\x64\x6C\x65\x47\x65\x73\x74\x75\x72\x65","\x72\x65\x64\x72\x61\x77\x4C\x61\x62\x65\x6C","\x67\x65\x74\x4C\x61\x62\x65\x6C\x42\x6F\x75\x6E\x64\x73","\x69\x73\x43\x6C\x69\x70\x70\x69\x6E\x67","\x67\x65\x74\x54\x65\x78\x74\x53\x63\x61\x6C\x65","\x72\x6F\x74\x61\x74\x65\x4C\x61\x62\x65\x6C\x42\x6F\x75\x6E\x64\x73","\x72\x65\x64\x72\x61\x77\x43\x65\x6C\x6C\x4F\x76\x65\x72\x6C\x61\x79\x73","\x72\x65\x64\x72\x61\x77\x43\x6F\x6E\x74\x72\x6F\x6C","\x67\x65\x74\x43\x6F\x6E\x74\x72\x6F\x6C\x42\x6F\x75\x6E\x64\x73","\x65\x71\x75\x61\x6C\x45\x6E\x74\x72\x69\x65\x73","\x65\x71\x75\x61\x6C\x50\x6F\x69\x6E\x74\x73","\x67\x65\x74\x50\x6F\x72\x74\x43\x6F\x6E\x73\x74\x72\x61\x69\x6E\x74\x73","\x67\x65\x74\x52\x6F\x75\x74\x69\x6E\x67\x43\x65\x6E\x74\x65\x72\x59","\x74\x72\x61\x6E\x73\x66\x6F\x72\x6D\x43\x6F\x6E\x74\x72\x6F\x6C\x50\x6F\x69\x6E\x74","\x67\x65\x74\x52\x6F\x75\x74\x69\x6E\x67\x43\x65\x6E\x74\x65\x72\x58","\x53\x54\x59\x4C\x45\x5F\x45\x4C\x42\x4F\x57","\x45\x4C\x42\x4F\x57\x5F\x56\x45\x52\x54\x49\x43\x41\x4C","\x6F\x72\x74\x68\x42\x75\x66\x66\x65\x72","\x44\x49\x52\x45\x43\x54\x49\x4F\x4E\x5F\x4D\x41\x53\x4B\x5F\x41\x4C\x4C","\x6C\x69\x6D\x69\x74\x73","\x76\x65\x72\x74\x65\x78\x53\x65\x70\x65\x72\x61\x74\x69\x6F\x6E\x73","\x72\x65\x76\x65\x72\x73\x65\x50\x6F\x72\x74\x43\x6F\x6E\x73\x74\x72\x61\x69\x6E\x74\x73","\x72\x6F\x75\x74\x65\x50\x61\x74\x74\x65\x72\x6E\x73","\x77\x61\x79\x50\x6F\x69\x6E\x74\x73\x31","\x64\x69\x72\x56\x65\x63\x74\x6F\x72\x73","\x54\x41\x52\x47\x45\x54\x5F\x4D\x41\x53\x4B","\x53\x4F\x55\x52\x43\x45\x5F\x4D\x41\x53\x4B","\x53\x49\x44\x45\x5F\x4D\x41\x53\x4B","\x43\x45\x4E\x54\x45\x52\x5F\x4D\x41\x53\x4B","\x76\x61\x6C\x75\x65\x73","\x70\x75\x74\x56\x61\x6C\x75\x65","\x67\x72\x61\x70\x68\x42\x6F\x75\x6E\x64\x73","\x45\x4D\x50\x54\x59\x5F\x50\x4F\x49\x4E\x54","\x75\x70\x64\x61\x74\x69\x6E\x67\x44\x6F\x63\x75\x6D\x65\x6E\x74\x52\x65\x73\x6F\x75\x72\x63\x65","\x75\x70\x64\x61\x74\x69\x6E\x67\x44\x6F\x63\x75\x6D\x65\x6E\x74","\x61\x6C\x6C\x6F\x77\x45\x76\x61\x6C","\x63\x61\x70\x74\x75\x72\x65\x44\x6F\x63\x75\x6D\x65\x6E\x74\x47\x65\x73\x74\x75\x72\x65","\x6F\x70\x74\x69\x6D\x69\x7A\x65\x56\x6D\x6C\x52\x65\x66\x6C\x6F\x77\x73","\x72\x65\x6E\x64\x65\x72\x69\x6E\x67","\x75\x70\x64\x61\x74\x65\x53\x74\x79\x6C\x65","\x73\x65\x74\x47\x72\x61\x70\x68\x42\x6F\x75\x6E\x64\x73","\x73\x65\x74\x43\x75\x72\x72\x65\x6E\x74\x52\x6F\x6F\x74","\x73\x69\x7A\x65\x44\x69\x64\x43\x68\x61\x6E\x67\x65","\x72\x65\x76\x61\x6C\x69\x64\x61\x74\x65","\x70\x72\x65\x76\x69\x6F\x75\x73\x53\x63\x61\x6C\x65","\x70\x72\x65\x76\x69\x6F\x75\x73\x54\x72\x61\x6E\x73\x6C\x61\x74\x65","\x73\x65\x74\x53\x63\x61\x6C\x65","\x69\x6E\x76\x61\x6C\x69\x64\x61\x74\x65","\x76\x61\x6C\x69\x64\x61\x74\x65","\x72\x65\x6D\x6F\x76\x65\x53\x74\x61\x74\x65","\x6D\x78\x47\x72\x61\x70\x68\x56\x69\x65\x77\x2E\x76\x61\x6C\x69\x64\x61\x74\x65","\x76\x61\x6C\x69\x64\x61\x74\x65\x42\x6F\x75\x6E\x64\x73","\x76\x61\x6C\x69\x64\x61\x74\x65\x50\x6F\x69\x6E\x74\x73","\x76\x61\x6C\x69\x64\x61\x74\x65\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64","\x63\x72\x65\x61\x74\x65\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x50\x61\x67\x65\x53\x68\x61\x70\x65","\x67\x65\x74\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x49\x6D\x61\x67\x65","\x72\x65\x64\x72\x61\x77\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x49\x6D\x61\x67\x65","\x70\x61\x67\x65\x56\x69\x73\x69\x62\x6C\x65","\x67\x65\x74\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x50\x61\x67\x65\x42\x6F\x75\x6E\x64\x73","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x50\x61\x67\x65\x53\x68\x61\x70\x65","\x74\x6F\x6F\x6C\x74\x69\x70\x48\x61\x6E\x64\x6C\x65\x72","\x69\x73\x48\x69\x64\x65\x4F\x6E\x48\x6F\x76\x65\x72","\x53\x54\x59\x4C\x45\x5F\x52\x4F\x54\x41\x54\x49\x4F\x4E","\x75\x70\x64\x61\x74\x65\x56\x65\x72\x74\x65\x78\x4C\x61\x62\x65\x6C\x4F\x66\x66\x73\x65\x74","\x67\x65\x74\x43\x68\x69\x6C\x64\x4F\x66\x66\x73\x65\x74\x46\x6F\x72\x43\x65\x6C\x6C","\x75\x70\x64\x61\x74\x65\x46\x69\x78\x65\x64\x54\x65\x72\x6D\x69\x6E\x61\x6C\x50\x6F\x69\x6E\x74\x73","\x75\x70\x64\x61\x74\x65\x50\x6F\x69\x6E\x74\x73","\x75\x70\x64\x61\x74\x65\x46\x6C\x6F\x61\x74\x69\x6E\x67\x54\x65\x72\x6D\x69\x6E\x61\x6C\x50\x6F\x69\x6E\x74\x73","\x75\x70\x64\x61\x74\x65\x45\x64\x67\x65\x42\x6F\x75\x6E\x64\x73","\x75\x70\x64\x61\x74\x65\x45\x64\x67\x65\x4C\x61\x62\x65\x6C\x4F\x66\x66\x73\x65\x74","\x63\x68\x69\x6C\x64\x4D\x6F\x76\x65\x64","\x69\x73\x52\x65\x6E\x64\x65\x72\x69\x6E\x67","\x67\x65\x74\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x43\x6F\x6E\x73\x74\x72\x61\x69\x6E\x74","\x75\x70\x64\x61\x74\x65\x46\x69\x78\x65\x64\x54\x65\x72\x6D\x69\x6E\x61\x6C\x50\x6F\x69\x6E\x74","\x67\x65\x74\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x50\x6F\x69\x6E\x74","\x67\x65\x74\x45\x64\x67\x65\x53\x74\x79\x6C\x65","\x67\x65\x74\x54\x65\x72\x6D\x69\x6E\x61\x6C\x50\x6F\x72\x74","\x64\x65\x66\x61\x75\x6C\x74\x4C\x6F\x6F\x70\x53\x74\x79\x6C\x65","\x53\x54\x59\x4C\x45\x5F\x45\x44\x47\x45","\x69\x73\x41\x6C\x6C\x6F\x77\x45\x76\x61\x6C","\x75\x70\x64\x61\x74\x65\x46\x6C\x6F\x61\x74\x69\x6E\x67\x54\x65\x72\x6D\x69\x6E\x61\x6C\x50\x6F\x69\x6E\x74","\x67\x65\x74\x4E\x65\x78\x74\x50\x6F\x69\x6E\x74","\x69\x73\x4F\x72\x74\x68\x6F\x67\x6F\x6E\x61\x6C","\x53\x54\x59\x4C\x45\x5F\x50\x45\x52\x49\x4D\x45\x54\x45\x52\x5F\x53\x50\x41\x43\x49\x4E\x47","\x53\x54\x59\x4C\x45\x5F\x53\x4F\x55\x52\x43\x45\x5F\x50\x45\x52\x49\x4D\x45\x54\x45\x52\x5F\x53\x50\x41\x43\x49\x4E\x47","\x53\x54\x59\x4C\x45\x5F\x54\x41\x52\x47\x45\x54\x5F\x50\x45\x52\x49\x4D\x45\x54\x45\x52\x5F\x53\x50\x41\x43\x49\x4E\x47","\x67\x65\x74\x50\x65\x72\x69\x6D\x65\x74\x65\x72\x50\x6F\x69\x6E\x74","\x53\x54\x59\x4C\x45\x5F\x53\x4F\x55\x52\x43\x45\x5F\x50\x4F\x52\x54","\x53\x54\x59\x4C\x45\x5F\x54\x41\x52\x47\x45\x54\x5F\x50\x4F\x52\x54","\x67\x65\x74\x50\x65\x72\x69\x6D\x65\x74\x65\x72\x46\x75\x6E\x63\x74\x69\x6F\x6E","\x53\x54\x59\x4C\x45\x5F\x52\x4F\x55\x54\x49\x4E\x47\x5F\x43\x45\x4E\x54\x45\x52\x5F\x58","\x53\x54\x59\x4C\x45\x5F\x52\x4F\x55\x54\x49\x4E\x47\x5F\x43\x45\x4E\x54\x45\x52\x5F\x59","\x67\x65\x74\x52\x65\x6C\x61\x74\x69\x76\x65\x50\x6F\x69\x6E\x74","\x72\x65\x6C\x61\x74\x69\x76\x65\x43\x63\x77","\x73\x65\x74\x52\x65\x6E\x64\x65\x72\x69\x6E\x67","\x73\x65\x74\x41\x6C\x6C\x6F\x77\x45\x76\x61\x6C","\x67\x65\x74\x53\x74\x61\x74\x65\x73","\x67\x65\x74\x43\x65\x6C\x6C\x53\x74\x61\x74\x65\x73","\x69\x73\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72\x45\x76\x65\x6E\x74","\x69\x73\x53\x63\x72\x6F\x6C\x6C\x45\x76\x65\x6E\x74","\x70\x61\x6E\x6E\x69\x6E\x67\x48\x61\x6E\x64\x6C\x65\x72","\x6D\x6F\x76\x65\x48\x61\x6E\x64\x6C\x65\x72","\x65\x6E\x64\x48\x61\x6E\x64\x6C\x65\x72","\x63\x72\x65\x61\x74\x65\x48\x74\x6D\x6C\x50\x61\x6E\x65","\x75\x70\x64\x61\x74\x65\x48\x74\x6D\x6C\x43\x61\x6E\x76\x61\x73\x53\x69\x7A\x65","\x63\x72\x65\x61\x74\x65\x56\x6D\x6C\x50\x61\x6E\x65","\x63\x6F\x6F\x72\x64\x6F\x72\x69\x67\x69\x6E","\x30\x2C\x30","\x73\x74\x61\x74\x69\x63","\x69\x73\x55\x70","\x67\x65\x74\x54\x72\x61\x6E\x73\x6C\x61\x74\x65\x46\x6F\x72\x52\x6F\x6F\x74","\x55\x50","\x44\x4F\x57\x4E","\x6D\x6F\x75\x73\x65\x4C\x69\x73\x74\x65\x6E\x65\x72\x73","\x72\x65\x6E\x64\x65\x72\x48\x69\x6E\x74","\x52\x45\x4E\x44\x45\x52\x49\x4E\x47\x5F\x48\x49\x4E\x54\x5F\x45\x58\x41\x43\x54","\x52\x45\x4E\x44\x45\x52\x49\x4E\x47\x5F\x48\x49\x4E\x54\x5F\x46\x41\x53\x54\x45\x53\x54","\x52\x45\x4E\x44\x45\x52\x49\x4E\x47\x5F\x48\x49\x4E\x54\x5F\x46\x41\x53\x54\x45\x52","\x44\x49\x41\x4C\x45\x43\x54\x5F\x4D\x49\x58\x45\x44\x48\x54\x4D\x4C","\x6D\x75\x6C\x74\x69\x70\x6C\x69\x63\x69\x74\x69\x65\x73","\x69\x6D\x61\x67\x65\x42\x75\x6E\x64\x6C\x65\x73","\x63\x72\x65\x61\x74\x65\x43\x65\x6C\x6C\x52\x65\x6E\x64\x65\x72\x65\x72","\x63\x72\x65\x61\x74\x65\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x4D\x6F\x64\x65\x6C","\x73\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x4D\x6F\x64\x65\x6C","\x63\x72\x65\x61\x74\x65\x53\x74\x79\x6C\x65\x73\x68\x65\x65\x74","\x73\x65\x74\x53\x74\x79\x6C\x65\x73\x68\x65\x65\x74","\x63\x72\x65\x61\x74\x65\x47\x72\x61\x70\x68\x56\x69\x65\x77","\x67\x72\x61\x70\x68\x4D\x6F\x64\x65\x6C\x43\x68\x61\x6E\x67\x65\x4C\x69\x73\x74\x65\x6E\x65\x72","\x63\x72\x65\x61\x74\x65\x48\x61\x6E\x64\x6C\x65\x72\x73","\x2F\x72\x65\x73\x6F\x75\x72\x63\x65\x73\x2F\x67\x72\x61\x70\x68","\x45\x4D\x50\x54\x59\x5F\x41\x52\x52\x41\x59","\x63\x65\x6C\x6C\x45\x64\x69\x74\x6F\x72","\x70\x6F\x72\x74\x73\x45\x6E\x61\x62\x6C\x65\x64","\x64\x6F\x75\x62\x6C\x65\x54\x61\x70\x45\x6E\x61\x62\x6C\x65\x64","\x64\x6F\x75\x62\x6C\x65\x54\x61\x70\x54\x69\x6D\x65\x6F\x75\x74","\x64\x6F\x75\x62\x6C\x65\x54\x61\x70\x54\x6F\x6C\x65\x72\x61\x6E\x63\x65","\x6C\x61\x73\x74\x54\x6F\x75\x63\x68\x59","\x74\x6F\x6C\x65\x72\x61\x6E\x63\x65","\x64\x65\x66\x61\x75\x6C\x74\x4F\x76\x65\x72\x6C\x61\x70","\x64\x65\x66\x61\x75\x6C\x74\x50\x61\x72\x65\x6E\x74","\x61\x6C\x74\x65\x72\x6E\x61\x74\x65\x45\x64\x67\x65\x53\x74\x79\x6C\x65","\x70\x61\x67\x65\x42\x72\x65\x61\x6B\x73\x56\x69\x73\x69\x62\x6C\x65","\x70\x61\x67\x65\x42\x72\x65\x61\x6B\x43\x6F\x6C\x6F\x72","\x70\x61\x67\x65\x42\x72\x65\x61\x6B\x44\x61\x73\x68\x65\x64","\x6D\x69\x6E\x50\x61\x67\x65\x42\x72\x65\x61\x6B\x44\x69\x73\x74","\x70\x72\x65\x66\x65\x72\x50\x61\x67\x65\x53\x69\x7A\x65","\x65\x73\x63\x61\x70\x65\x45\x6E\x61\x62\x6C\x65\x64","\x69\x6E\x76\x6F\x6B\x65\x73\x53\x74\x6F\x70\x43\x65\x6C\x6C\x45\x64\x69\x74\x69\x6E\x67","\x65\x6E\x74\x65\x72\x53\x74\x6F\x70\x73\x43\x65\x6C\x6C\x45\x64\x69\x74\x69\x6E\x67","\x75\x73\x65\x53\x63\x72\x6F\x6C\x6C\x62\x61\x72\x73\x46\x6F\x72\x50\x61\x6E\x6E\x69\x6E\x67","\x65\x78\x70\x6F\x72\x74\x45\x6E\x61\x62\x6C\x65\x64","\x69\x6D\x70\x6F\x72\x74\x45\x6E\x61\x62\x6C\x65\x64","\x63\x65\x6C\x6C\x73\x4C\x6F\x63\x6B\x65\x64","\x63\x65\x6C\x6C\x73\x43\x6C\x6F\x6E\x65\x61\x62\x6C\x65","\x63\x65\x6C\x6C\x73\x45\x64\x69\x74\x61\x62\x6C\x65","\x63\x65\x6C\x6C\x73\x44\x65\x6C\x65\x74\x61\x62\x6C\x65","\x63\x65\x6C\x6C\x73\x4D\x6F\x76\x61\x62\x6C\x65","\x65\x64\x67\x65\x4C\x61\x62\x65\x6C\x73\x4D\x6F\x76\x61\x62\x6C\x65","\x76\x65\x72\x74\x65\x78\x4C\x61\x62\x65\x6C\x73\x4D\x6F\x76\x61\x62\x6C\x65","\x64\x72\x6F\x70\x45\x6E\x61\x62\x6C\x65\x64","\x73\x70\x6C\x69\x74\x45\x6E\x61\x62\x6C\x65\x64","\x63\x65\x6C\x6C\x73\x52\x65\x73\x69\x7A\x61\x62\x6C\x65","\x63\x65\x6C\x6C\x73\x42\x65\x6E\x64\x61\x62\x6C\x65","\x63\x65\x6C\x6C\x73\x53\x65\x6C\x65\x63\x74\x61\x62\x6C\x65","\x63\x65\x6C\x6C\x73\x44\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74\x61\x62\x6C\x65","\x61\x75\x74\x6F\x53\x69\x7A\x65\x43\x65\x6C\x6C\x73","\x74\x69\x6D\x65\x72\x41\x75\x74\x6F\x53\x63\x72\x6F\x6C\x6C","\x61\x6C\x6C\x6F\x77\x41\x75\x74\x6F\x50\x61\x6E\x6E\x69\x6E\x67","\x69\x67\x6E\x6F\x72\x65\x53\x63\x72\x6F\x6C\x6C\x62\x61\x72\x73","\x6D\x61\x78\x69\x6D\x75\x6D\x47\x72\x61\x70\x68\x42\x6F\x75\x6E\x64\x73","\x6D\x69\x6E\x69\x6D\x75\x6D\x47\x72\x61\x70\x68\x53\x69\x7A\x65","\x6D\x69\x6E\x69\x6D\x75\x6D\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72\x53\x69\x7A\x65","\x6D\x61\x78\x69\x6D\x75\x6D\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72\x53\x69\x7A\x65","\x72\x65\x73\x69\x7A\x65\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x61\x6C\x6C\x6F\x77\x4E\x65\x67\x61\x74\x69\x76\x65\x43\x6F\x6F\x72\x64\x69\x6E\x61\x74\x65\x73","\x63\x6F\x6E\x73\x74\x72\x61\x69\x6E\x43\x68\x69\x6C\x64\x72\x65\x6E","\x65\x78\x74\x65\x6E\x64\x50\x61\x72\x65\x6E\x74\x73","\x65\x78\x74\x65\x6E\x64\x50\x61\x72\x65\x6E\x74\x73\x4F\x6E\x41\x64\x64","\x63\x6F\x6C\x6C\x61\x70\x73\x65\x54\x6F\x50\x72\x65\x66\x65\x72\x72\x65\x64\x53\x69\x7A\x65","\x7A\x6F\x6F\x6D\x46\x61\x63\x74\x6F\x72","\x6B\x65\x65\x70\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x56\x69\x73\x69\x62\x6C\x65\x4F\x6E\x5A\x6F\x6F\x6D","\x63\x65\x6E\x74\x65\x72\x5A\x6F\x6F\x6D","\x72\x65\x73\x65\x74\x56\x69\x65\x77\x4F\x6E\x52\x6F\x6F\x74\x43\x68\x61\x6E\x67\x65","\x72\x65\x73\x65\x74\x45\x64\x67\x65\x73\x4F\x6E\x52\x65\x73\x69\x7A\x65","\x72\x65\x73\x65\x74\x45\x64\x67\x65\x73\x4F\x6E\x4D\x6F\x76\x65","\x72\x65\x73\x65\x74\x45\x64\x67\x65\x73\x4F\x6E\x43\x6F\x6E\x6E\x65\x63\x74","\x61\x6C\x6C\x6F\x77\x4C\x6F\x6F\x70\x73","\x4C\x6F\x6F\x70","\x6D\x75\x6C\x74\x69\x67\x72\x61\x70\x68","\x63\x6F\x6E\x6E\x65\x63\x74\x61\x62\x6C\x65\x45\x64\x67\x65\x73","\x61\x6C\x6C\x6F\x77\x44\x61\x6E\x67\x6C\x69\x6E\x67\x45\x64\x67\x65\x73","\x63\x6C\x6F\x6E\x65\x49\x6E\x76\x61\x6C\x69\x64\x45\x64\x67\x65\x73","\x64\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74\x4F\x6E\x4D\x6F\x76\x65","\x6C\x61\x62\x65\x6C\x73\x56\x69\x73\x69\x62\x6C\x65","\x68\x74\x6D\x6C\x4C\x61\x62\x65\x6C\x73","\x73\x77\x69\x6D\x6C\x61\x6E\x65\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x45\x6E\x61\x62\x6C\x65\x64","\x73\x77\x69\x6D\x6C\x61\x6E\x65\x4E\x65\x73\x74\x69\x6E\x67","\x6D\x69\x6E\x46\x69\x74\x53\x63\x61\x6C\x65","\x6D\x61\x78\x46\x69\x74\x53\x63\x61\x6C\x65","\x63\x6F\x6C\x6C\x61\x70\x73\x65\x64\x49\x6D\x61\x67\x65","\x2F\x63\x6F\x6C\x6C\x61\x70\x73\x65\x64\x2E\x67\x69\x66","\x65\x78\x70\x61\x6E\x64\x65\x64\x49\x6D\x61\x67\x65","\x2F\x65\x78\x70\x61\x6E\x64\x65\x64\x2E\x67\x69\x66","\x77\x61\x72\x6E\x69\x6E\x67\x49\x6D\x61\x67\x65","\x2F\x61\x73\x73\x65\x74\x73\x2F\x70\x6C\x75\x67\x69\x6E\x73\x2F\x6D\x78\x67\x72\x61\x70\x68\x2F\x69\x6D\x61\x67\x65\x73\x2F\x77\x61\x72\x6E\x69\x6E\x67\x2E\x67\x69\x66","\x61\x6C\x72\x65\x61\x64\x79\x43\x6F\x6E\x6E\x65\x63\x74\x65\x64\x52\x65\x73\x6F\x75\x72\x63\x65","\x61\x6C\x72\x65\x61\x64\x79\x43\x6F\x6E\x6E\x65\x63\x74\x65\x64","\x63\x6F\x6E\x74\x61\x69\x6E\x73\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E\x45\x72\x72\x6F\x72\x73\x52\x65\x73\x6F\x75\x72\x63\x65","\x63\x6F\x6E\x74\x61\x69\x6E\x73\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E\x45\x72\x72\x6F\x72\x73","\x63\x6F\x6C\x6C\x61\x70\x73\x65\x45\x78\x70\x61\x6E\x64\x52\x65\x73\x6F\x75\x72\x63\x65","\x63\x6F\x6C\x6C\x61\x70\x73\x65\x2D\x65\x78\x70\x61\x6E\x64","\x63\x72\x65\x61\x74\x65\x43\x65\x6C\x6C\x45\x64\x69\x74\x6F\x72","\x75\x6E\x6C\x6F\x61\x64","\x73\x65\x6C\x65\x63\x74\x73\x74\x61\x72\x74","\x3C\x76\x3A\x67\x72\x6F\x75\x70\x20\x73\x74\x79\x6C\x65\x3D\x22\x44\x49\x53\x50\x4C\x41\x59\x3A\x20\x6E\x6F\x6E\x65\x3B\x22\x3E\x3C\x2F\x76\x3A\x67\x72\x6F\x75\x70\x3E","\x70\x61\x6E\x6E\x69\x6E\x67\x45\x6E\x61\x62\x6C\x65\x64","\x73\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C\x73\x48\x61\x6E\x64\x6C\x65\x72","\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x48\x61\x6E\x64\x6C\x65\x72","\x67\x65\x74\x53\x74\x79\x6C\x65\x73\x68\x65\x65\x74","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x4D\x6F\x64\x65\x6C","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C\x73\x46\x6F\x72\x43\x68\x61\x6E\x67\x65\x73","\x70\x72\x6F\x63\x65\x73\x73\x43\x68\x61\x6E\x67\x65","\x67\x65\x74\x52\x65\x6D\x6F\x76\x65\x64\x43\x65\x6C\x6C\x73\x46\x6F\x72\x43\x68\x61\x6E\x67\x65\x73","\x72\x65\x6D\x6F\x76\x65\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C\x73","\x63\x6C\x65\x61\x72\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E","\x72\x65\x6D\x6F\x76\x65\x53\x74\x61\x74\x65\x46\x6F\x72\x43\x65\x6C\x6C","\x68\x6F\x6D\x65","\x61\x64\x64\x43\x65\x6C\x6C\x4F\x76\x65\x72\x6C\x61\x79","\x72\x65\x6D\x6F\x76\x65\x43\x65\x6C\x6C\x4F\x76\x65\x72\x6C\x61\x79","\x72\x65\x6D\x6F\x76\x65\x43\x65\x6C\x6C\x4F\x76\x65\x72\x6C\x61\x79\x73","\x63\x6C\x65\x61\x72\x43\x65\x6C\x6C\x4F\x76\x65\x72\x6C\x61\x79\x73","\x73\x65\x74\x43\x65\x6C\x6C\x57\x61\x72\x6E\x69\x6E\x67","\x3C\x66\x6F\x6E\x74\x20\x63\x6F\x6C\x6F\x72\x3D\x72\x65\x64\x3E","\x3C\x2F\x66\x6F\x6E\x74\x3E","\x73\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C","\x73\x74\x61\x72\x74\x45\x64\x69\x74\x69\x6E\x67\x41\x74\x43\x65\x6C\x6C","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C","\x69\x73\x43\x65\x6C\x6C\x45\x64\x69\x74\x61\x62\x6C\x65","\x63\x6F\x6E\x76\x65\x72\x74\x56\x61\x6C\x75\x65\x54\x6F\x53\x74\x72\x69\x6E\x67","\x69\x73\x41\x75\x74\x6F\x53\x69\x7A\x65\x43\x65\x6C\x6C","\x63\x65\x6C\x6C\x4C\x61\x62\x65\x6C\x43\x68\x61\x6E\x67\x65\x64","\x63\x65\x6C\x6C\x53\x69\x7A\x65\x55\x70\x64\x61\x74\x65\x64","\x68\x61\x6E\x64\x6C\x65\x72","\x73\x65\x6C\x65\x63\x74\x43\x65\x6C\x6C\x46\x6F\x72\x45\x76\x65\x6E\x74","\x69\x73\x53\x77\x69\x6D\x6C\x61\x6E\x65\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x45\x6E\x61\x62\x6C\x65\x64","\x67\x65\x74\x53\x77\x69\x6D\x6C\x61\x6E\x65\x41\x74","\x69\x73\x54\x6F\x67\x67\x6C\x65\x45\x76\x65\x6E\x74","\x70\x61\x6E\x6E\x69\x6E\x67\x4D\x61\x6E\x61\x67\x65\x72","\x63\x72\x65\x61\x74\x65\x50\x61\x6E\x6E\x69\x6E\x67\x4D\x61\x6E\x61\x67\x65\x72","\x67\x65\x74\x42\x6F\x72\x64\x65\x72\x53\x69\x7A\x65\x73","\x74\x68\x69\x6E","\x6D\x65\x64\x69\x75\x6D","\x74\x68\x69\x63\x6B","\x62\x6F\x72\x64\x65\x72\x4C\x65\x66\x74\x57\x69\x64\x74\x68","\x62\x6F\x72\x64\x65\x72\x54\x6F\x70\x57\x69\x64\x74\x68","\x70\x61\x64\x64\x69\x6E\x67\x54\x6F\x70","\x62\x6F\x72\x64\x65\x72\x52\x69\x67\x68\x74\x57\x69\x64\x74\x68","\x62\x6F\x72\x64\x65\x72\x42\x6F\x74\x74\x6F\x6D\x57\x69\x64\x74\x68","\x70\x61\x64\x64\x69\x6E\x67\x42\x6F\x74\x74\x6F\x6D","\x67\x65\x74\x50\x72\x65\x66\x65\x72\x72\x65\x64\x50\x61\x67\x65\x53\x69\x7A\x65","\x67\x65\x74\x42\x6F\x72\x64\x65\x72","\x64\x6F\x52\x65\x73\x69\x7A\x65\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x6D\x69\x6E\x57\x69\x64\x74\x68","\x6D\x69\x6E\x48\x65\x69\x67\x68\x74","\x75\x70\x64\x61\x74\x65\x50\x61\x67\x65\x42\x72\x65\x61\x6B\x73","\x68\x6F\x72\x69\x7A\x6F\x6E\x74\x61\x6C\x50\x61\x67\x65\x42\x72\x65\x61\x6B\x73","\x76\x65\x72\x74\x69\x63\x61\x6C\x50\x61\x67\x65\x42\x72\x65\x61\x6B\x73","\x70\x6F\x73\x74\x50\x72\x6F\x63\x65\x73\x73\x43\x65\x6C\x6C\x53\x74\x79\x6C\x65","\x53\x54\x59\x4C\x45\x5F\x49\x4D\x41\x47\x45","\x67\x65\x74\x49\x6D\x61\x67\x65\x46\x72\x6F\x6D\x42\x75\x6E\x64\x6C\x65\x73","\x64\x61\x74\x61\x3A\x69\x6D\x61\x67\x65\x2F","\x3B\x62\x61\x73\x65\x36\x34\x2C","\x73\x65\x74\x43\x65\x6C\x6C\x53\x74\x79\x6C\x65","\x74\x6F\x67\x67\x6C\x65\x43\x65\x6C\x6C\x53\x74\x79\x6C\x65","\x74\x6F\x67\x67\x6C\x65\x43\x65\x6C\x6C\x53\x74\x79\x6C\x65\x73","\x74\x6F\x67\x67\x6C\x65\x43\x65\x6C\x6C\x53\x74\x79\x6C\x65\x46\x6C\x61\x67\x73","\x73\x65\x74\x43\x65\x6C\x6C\x53\x74\x79\x6C\x65\x46\x6C\x61\x67\x73","\x61\x64\x64\x49\x6D\x61\x67\x65\x42\x75\x6E\x64\x6C\x65","\x72\x65\x6D\x6F\x76\x65\x49\x6D\x61\x67\x65\x42\x75\x6E\x64\x6C\x65","\x62\x61\x63\x6B","\x67\x65\x74\x43\x65\x6C\x6C\x73\x46\x6F\x72\x47\x72\x6F\x75\x70","\x63\x72\x65\x61\x74\x65\x47\x72\x6F\x75\x70\x43\x65\x6C\x6C","\x67\x65\x74\x42\x6F\x75\x6E\x64\x73\x46\x6F\x72\x47\x72\x6F\x75\x70","\x61\x64\x64\x41\x6C\x6C\x45\x64\x67\x65\x73","\x67\x65\x74\x45\x64\x67\x65\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E\x45\x72\x72\x6F\x72","\x69\x6E\x73\x65\x72\x74\x56\x65\x72\x74\x65\x78","\x63\x72\x65\x61\x74\x65\x56\x65\x72\x74\x65\x78","\x63\x72\x65\x61\x74\x65\x45\x64\x67\x65","\x61\x64\x64\x45\x64\x67\x65","\x69\x73\x41\x6C\x6C\x6F\x77\x4E\x65\x67\x61\x74\x69\x76\x65\x43\x6F\x6F\x72\x64\x69\x6E\x61\x74\x65\x73","\x69\x73\x45\x78\x74\x65\x6E\x64\x50\x61\x72\x65\x6E\x74\x73\x4F\x6E\x41\x64\x64","\x69\x73\x45\x78\x74\x65\x6E\x64\x50\x61\x72\x65\x6E\x74","\x65\x78\x74\x65\x6E\x64\x50\x61\x72\x65\x6E\x74","\x63\x6F\x6E\x73\x74\x72\x61\x69\x6E\x43\x68\x69\x6C\x64","\x67\x65\x74\x44\x65\x6C\x65\x74\x61\x62\x6C\x65\x43\x65\x6C\x6C\x73","\x69\x6E\x63\x6C\x75\x64\x65\x45\x64\x67\x65\x73","\x6E\x65\x77\x45\x64\x67\x65","\x67\x65\x74\x46\x6F\x6C\x64\x61\x62\x6C\x65\x43\x65\x6C\x6C\x73","\x63\x6F\x6C\x6C\x61\x70\x73\x65","\x72\x65\x63\x75\x72\x73\x65","\x69\x73\x43\x65\x6C\x6C\x46\x6F\x6C\x64\x61\x62\x6C\x65","\x73\x77\x61\x70\x42\x6F\x75\x6E\x64\x73","\x75\x70\x64\x61\x74\x65\x41\x6C\x74\x65\x72\x6E\x61\x74\x65\x42\x6F\x75\x6E\x64\x73","\x67\x65\x74\x50\x72\x65\x66\x65\x72\x72\x65\x64\x53\x69\x7A\x65\x46\x6F\x72\x43\x65\x6C\x6C","\x67\x65\x74\x41\x6C\x6C\x45\x64\x67\x65\x73","\x69\x67\x6E\x6F\x72\x65\x43\x68\x69\x6C\x64\x72\x65\x6E","\x53\x48\x41\x50\x45\x5F\x4C\x41\x42\x45\x4C","\x53\x54\x59\x4C\x45\x5F\x49\x4D\x41\x47\x45\x5F\x57\x49\x44\x54\x48","\x53\x54\x59\x4C\x45\x5F\x49\x4D\x41\x47\x45\x5F\x48\x45\x49\x47\x48\x54","\x67\x65\x74\x53\x69\x7A\x65\x46\x6F\x72\x53\x74\x72\x69\x6E\x67","\x72\x65\x73\x69\x7A\x65\x43\x65\x6C\x6C","\x69\x73\x43\x6C\x6F\x6E\x65\x49\x6E\x76\x61\x6C\x69\x64\x45\x64\x67\x65\x73","\x73\x65\x74\x41\x6C\x6C\x6F\x77\x4E\x65\x67\x61\x74\x69\x76\x65\x43\x6F\x6F\x72\x64\x69\x6E\x61\x74\x65\x73","\x69\x73\x44\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74\x4F\x6E\x4D\x6F\x76\x65","\x69\x73\x41\x6C\x6C\x6F\x77\x44\x61\x6E\x67\x6C\x69\x6E\x67\x45\x64\x67\x65\x73","\x64\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74\x47\x72\x61\x70\x68","\x74\x72\x61\x6E\x73\x6C\x61\x74\x65\x43\x65\x6C\x6C","\x67\x65\x74\x43\x65\x6C\x6C\x43\x6F\x6E\x74\x61\x69\x6E\x6D\x65\x6E\x74\x41\x72\x65\x61","\x67\x65\x74\x43\x75\x72\x72\x65\x6E\x74\x52\x6F\x6F\x74","\x67\x65\x74\x4D\x61\x78\x69\x6D\x75\x6D\x47\x72\x61\x70\x68\x42\x6F\x75\x6E\x64\x73","\x69\x73\x43\x6F\x6E\x73\x74\x72\x61\x69\x6E\x43\x68\x69\x6C\x64","\x67\x65\x74\x4F\x76\x65\x72\x6C\x61\x70","\x67\x65\x74\x41\x6C\x6C\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x43\x6F\x6E\x73\x74\x72\x61\x69\x6E\x74\x73","\x53\x54\x59\x4C\x45\x5F\x45\x58\x49\x54\x5F\x58","\x53\x54\x59\x4C\x45\x5F\x45\x4E\x54\x52\x59\x5F\x58","\x53\x54\x59\x4C\x45\x5F\x45\x58\x49\x54\x5F\x59","\x53\x54\x59\x4C\x45\x5F\x45\x4E\x54\x52\x59\x5F\x59","\x53\x54\x59\x4C\x45\x5F\x45\x58\x49\x54\x5F\x50\x45\x52\x49\x4D\x45\x54\x45\x52","\x53\x54\x59\x4C\x45\x5F\x45\x4E\x54\x52\x59\x5F\x50\x45\x52\x49\x4D\x45\x54\x45\x52","\x73\x65\x74\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x43\x6F\x6E\x73\x74\x72\x61\x69\x6E\x74","\x70\x6F\x69\x6E\x74","\x53\x54\x59\x4C\x45\x5F\x46\x4C\x49\x50\x48","\x53\x54\x59\x4C\x45\x5F\x46\x4C\x49\x50\x56","\x69\x73\x50\x6F\x72\x74\x73\x45\x6E\x61\x62\x6C\x65\x64","\x67\x65\x74\x54\x65\x72\x6D\x69\x6E\x61\x6C\x46\x6F\x72\x50\x6F\x72\x74","\x69\x73\x43\x65\x6C\x6C\x44\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74\x61\x62\x6C\x65","\x65\x6E\x74\x65\x72\x47\x72\x6F\x75\x70","\x69\x73\x56\x61\x6C\x69\x64\x52\x6F\x6F\x74","\x65\x78\x69\x74\x47\x72\x6F\x75\x70","\x67\x65\x74\x43\x65\x6C\x6C\x42\x6F\x75\x6E\x64\x73","\x73\x68\x69\x66\x74\x50\x72\x65\x76\x69\x65\x77\x31","\x73\x68\x69\x66\x74\x50\x72\x65\x76\x69\x65\x77\x32","\x7A\x6F\x6F\x6D\x49\x6E","\x7A\x6F\x6F\x6D\x4F\x75\x74","\x7A\x6F\x6F\x6D\x41\x63\x74\x75\x61\x6C","\x7A\x6F\x6F\x6D\x54\x6F","\x73\x63\x72\x6F\x6C\x6C\x52\x65\x63\x74\x54\x6F\x56\x69\x73\x69\x62\x6C\x65","\x7A\x6F\x6F\x6D\x54\x6F\x52\x65\x63\x74","\x73\x63\x72\x6F\x6C\x6C\x43\x65\x6C\x6C\x54\x6F\x56\x69\x73\x69\x62\x6C\x65","\x69\x73\x43\x65\x6C\x6C\x43\x6F\x6E\x6E\x65\x63\x74\x61\x62\x6C\x65","\x53\x54\x59\x4C\x45\x5F\x4F\x52\x54\x48\x4F\x47\x4F\x4E\x41\x4C","\x53\x65\x67\x6D\x65\x6E\x74\x43\x6F\x6E\x6E\x65\x63\x74\x6F\x72","\x45\x6C\x62\x6F\x77\x43\x6F\x6E\x6E\x65\x63\x74\x6F\x72","\x53\x69\x64\x65\x54\x6F\x53\x69\x64\x65","\x54\x6F\x70\x54\x6F\x42\x6F\x74\x74\x6F\x6D","\x45\x6E\x74\x69\x74\x79\x52\x65\x6C\x61\x74\x69\x6F\x6E","\x4F\x72\x74\x68\x43\x6F\x6E\x6E\x65\x63\x74\x6F\x72","\x69\x73\x4C\x6F\x6F\x70","\x69\x73\x43\x6C\x6F\x6E\x65\x45\x76\x65\x6E\x74","\x49\x53\x5F\x4D\x41\x43","\x69\x73\x4D\x65\x74\x61\x44\x6F\x77\x6E","\x69\x73\x41\x6C\x74\x44\x6F\x77\x6E","\x69\x73\x43\x6F\x6E\x73\x74\x72\x61\x69\x6E\x65\x64\x45\x76\x65\x6E\x74","\x69\x73\x46\x6F\x72\x63\x65\x4D\x61\x72\x71\x75\x65\x65\x45\x76\x65\x6E\x74","\x76\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E\x41\x6C\x65\x72\x74","\x69\x73\x45\x64\x67\x65\x56\x61\x6C\x69\x64","\x69\x73\x56\x61\x6C\x69\x64\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E","\x63\x68\x65\x63\x6B","\x76\x61\x6C\x69\x64\x61\x74\x65\x45\x64\x67\x65","\x76\x61\x6C\x69\x64\x61\x74\x65\x47\x72\x61\x70\x68","\x67\x65\x74\x43\x65\x6C\x6C\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E\x45\x72\x72\x6F\x72","\x76\x61\x6C\x69\x64\x61\x74\x65\x43\x65\x6C\x6C","\x61\x74\x74\x72","\x63\x6F\x75\x6E\x74\x45\x72\x72\x6F\x72","\x73\x65\x74\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x49\x6D\x61\x67\x65","\x74\x6F\x53\x74\x72\x69\x6E\x67","\x69\x73\x48\x74\x6D\x6C\x4C\x61\x62\x65\x6C\x73","\x73\x65\x74\x48\x74\x6D\x6C\x4C\x61\x62\x65\x6C\x73","\x53\x54\x59\x4C\x45\x5F\x57\x48\x49\x54\x45\x5F\x53\x50\x41\x43\x45","\x67\x65\x74\x54\x6F\x6F\x6C\x74\x69\x70","\x67\x65\x74\x48\x61\x6E\x64\x6C\x65\x72","\x67\x65\x74\x54\x6F\x6F\x6C\x74\x69\x70\x46\x6F\x72\x4E\x6F\x64\x65","\x67\x65\x74\x54\x6F\x6F\x6C\x74\x69\x70\x46\x6F\x72\x43\x65\x6C\x6C","\x67\x65\x74\x43\x75\x72\x73\x6F\x72\x46\x6F\x72\x43\x65\x6C\x6C","\x53\x54\x59\x4C\x45\x5F\x49\x4E\x44\x49\x43\x41\x54\x4F\x52\x5F\x43\x4F\x4C\x4F\x52","\x53\x54\x59\x4C\x45\x5F\x49\x4E\x44\x49\x43\x41\x54\x4F\x52\x5F\x47\x52\x41\x44\x49\x45\x4E\x54\x43\x4F\x4C\x4F\x52","\x53\x54\x59\x4C\x45\x5F\x49\x4E\x44\x49\x43\x41\x54\x4F\x52\x5F\x53\x48\x41\x50\x45","\x53\x54\x59\x4C\x45\x5F\x49\x4E\x44\x49\x43\x41\x54\x4F\x52\x5F\x49\x4D\x41\x47\x45","\x73\x65\x74\x42\x6F\x72\x64\x65\x72","\x53\x48\x41\x50\x45\x5F\x53\x57\x49\x4D\x4C\x41\x4E\x45","\x69\x73\x52\x65\x73\x69\x7A\x65\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x73\x65\x74\x52\x65\x73\x69\x7A\x65\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x69\x73\x45\x73\x63\x61\x70\x65\x45\x6E\x61\x62\x6C\x65\x64","\x73\x65\x74\x45\x73\x63\x61\x70\x65\x45\x6E\x61\x62\x6C\x65\x64","\x73\x65\x74\x49\x6E\x76\x6F\x6B\x65\x73\x53\x74\x6F\x70\x43\x65\x6C\x6C\x45\x64\x69\x74\x69\x6E\x67","\x73\x65\x74\x45\x6E\x74\x65\x72\x53\x74\x6F\x70\x73\x43\x65\x6C\x6C\x45\x64\x69\x74\x69\x6E\x67","\x69\x73\x43\x65\x6C\x6C\x4C\x6F\x63\x6B\x65\x64","\x69\x73\x43\x65\x6C\x6C\x73\x4C\x6F\x63\x6B\x65\x64","\x73\x65\x74\x43\x65\x6C\x6C\x73\x4C\x6F\x63\x6B\x65\x64","\x67\x65\x74\x43\x6C\x6F\x6E\x65\x61\x62\x6C\x65\x43\x65\x6C\x6C\x73","\x69\x73\x43\x65\x6C\x6C\x43\x6C\x6F\x6E\x65\x61\x62\x6C\x65","\x69\x73\x43\x65\x6C\x6C\x73\x43\x6C\x6F\x6E\x65\x61\x62\x6C\x65","\x53\x54\x59\x4C\x45\x5F\x43\x4C\x4F\x4E\x45\x41\x42\x4C\x45","\x73\x65\x74\x43\x65\x6C\x6C\x73\x43\x6C\x6F\x6E\x65\x61\x62\x6C\x65","\x63\x61\x6E\x45\x78\x70\x6F\x72\x74\x43\x65\x6C\x6C","\x63\x61\x6E\x49\x6D\x70\x6F\x72\x74\x43\x65\x6C\x6C","\x69\x73\x43\x65\x6C\x6C\x73\x53\x65\x6C\x65\x63\x74\x61\x62\x6C\x65","\x73\x65\x74\x43\x65\x6C\x6C\x73\x53\x65\x6C\x65\x63\x74\x61\x62\x6C\x65","\x69\x73\x43\x65\x6C\x6C\x44\x65\x6C\x65\x74\x61\x62\x6C\x65","\x69\x73\x43\x65\x6C\x6C\x73\x44\x65\x6C\x65\x74\x61\x62\x6C\x65","\x53\x54\x59\x4C\x45\x5F\x44\x45\x4C\x45\x54\x41\x42\x4C\x45","\x73\x65\x74\x43\x65\x6C\x6C\x73\x44\x65\x6C\x65\x74\x61\x62\x6C\x65","\x69\x73\x4C\x61\x62\x65\x6C\x4D\x6F\x76\x61\x62\x6C\x65","\x67\x65\x74\x4D\x6F\x76\x61\x62\x6C\x65\x43\x65\x6C\x6C\x73","\x69\x73\x43\x65\x6C\x6C\x73\x4D\x6F\x76\x61\x62\x6C\x65","\x53\x54\x59\x4C\x45\x5F\x4D\x4F\x56\x41\x42\x4C\x45","\x73\x65\x74\x43\x65\x6C\x6C\x73\x4D\x6F\x76\x61\x62\x6C\x65","\x73\x65\x74\x50\x6F\x72\x74\x73\x45\x6E\x61\x62\x6C\x65\x64","\x67\x65\x74\x47\x72\x69\x64\x53\x69\x7A\x65","\x73\x65\x74\x47\x72\x69\x64\x53\x69\x7A\x65","\x67\x65\x74\x54\x6F\x6C\x65\x72\x61\x6E\x63\x65","\x73\x65\x74\x54\x6F\x6C\x65\x72\x61\x6E\x63\x65","\x69\x73\x56\x65\x72\x74\x65\x78\x4C\x61\x62\x65\x6C\x73\x4D\x6F\x76\x61\x62\x6C\x65","\x73\x65\x74\x56\x65\x72\x74\x65\x78\x4C\x61\x62\x65\x6C\x73\x4D\x6F\x76\x61\x62\x6C\x65","\x69\x73\x45\x64\x67\x65\x4C\x61\x62\x65\x6C\x73\x4D\x6F\x76\x61\x62\x6C\x65","\x73\x65\x74\x45\x64\x67\x65\x4C\x61\x62\x65\x6C\x73\x4D\x6F\x76\x61\x62\x6C\x65","\x69\x73\x53\x77\x69\x6D\x6C\x61\x6E\x65\x4E\x65\x73\x74\x69\x6E\x67","\x73\x65\x74\x53\x77\x69\x6D\x6C\x61\x6E\x65\x4E\x65\x73\x74\x69\x6E\x67","\x73\x65\x74\x53\x77\x69\x6D\x6C\x61\x6E\x65\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x45\x6E\x61\x62\x6C\x65\x64","\x69\x73\x4D\x75\x6C\x74\x69\x67\x72\x61\x70\x68","\x73\x65\x74\x4D\x75\x6C\x74\x69\x67\x72\x61\x70\x68","\x69\x73\x41\x6C\x6C\x6F\x77\x4C\x6F\x6F\x70\x73","\x73\x65\x74\x41\x6C\x6C\x6F\x77\x44\x61\x6E\x67\x6C\x69\x6E\x67\x45\x64\x67\x65\x73","\x73\x65\x74\x43\x6F\x6E\x6E\x65\x63\x74\x61\x62\x6C\x65\x45\x64\x67\x65\x73","\x69\x73\x43\x6F\x6E\x6E\x65\x63\x74\x61\x62\x6C\x65\x45\x64\x67\x65\x73","\x73\x65\x74\x43\x6C\x6F\x6E\x65\x49\x6E\x76\x61\x6C\x69\x64\x45\x64\x67\x65\x73","\x73\x65\x74\x41\x6C\x6C\x6F\x77\x4C\x6F\x6F\x70\x73","\x73\x65\x74\x44\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74\x4F\x6E\x4D\x6F\x76\x65","\x73\x65\x74\x44\x72\x6F\x70\x45\x6E\x61\x62\x6C\x65\x64","\x69\x73\x53\x70\x6C\x69\x74\x45\x6E\x61\x62\x6C\x65\x64","\x73\x65\x74\x53\x70\x6C\x69\x74\x45\x6E\x61\x62\x6C\x65\x64","\x69\x73\x43\x65\x6C\x6C\x52\x65\x73\x69\x7A\x61\x62\x6C\x65","\x69\x73\x43\x65\x6C\x6C\x73\x52\x65\x73\x69\x7A\x61\x62\x6C\x65","\x53\x54\x59\x4C\x45\x5F\x52\x45\x53\x49\x5A\x41\x42\x4C\x45","\x73\x65\x74\x43\x65\x6C\x6C\x73\x52\x65\x73\x69\x7A\x61\x62\x6C\x65","\x69\x73\x54\x65\x72\x6D\x69\x6E\x61\x6C\x50\x6F\x69\x6E\x74\x4D\x6F\x76\x61\x62\x6C\x65","\x69\x73\x43\x65\x6C\x6C\x42\x65\x6E\x64\x61\x62\x6C\x65","\x69\x73\x43\x65\x6C\x6C\x73\x42\x65\x6E\x64\x61\x62\x6C\x65","\x53\x54\x59\x4C\x45\x5F\x42\x45\x4E\x44\x41\x42\x4C\x45","\x73\x65\x74\x43\x65\x6C\x6C\x73\x42\x65\x6E\x64\x61\x62\x6C\x65","\x69\x73\x43\x65\x6C\x6C\x73\x45\x64\x69\x74\x61\x62\x6C\x65","\x53\x54\x59\x4C\x45\x5F\x45\x44\x49\x54\x41\x42\x4C\x45","\x73\x65\x74\x43\x65\x6C\x6C\x73\x45\x64\x69\x74\x61\x62\x6C\x65","\x69\x73\x43\x65\x6C\x6C\x73\x44\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74\x61\x62\x6C\x65","\x73\x65\x74\x43\x65\x6C\x6C\x73\x44\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74\x61\x62\x6C\x65","\x69\x73\x56\x61\x6C\x69\x64\x53\x6F\x75\x72\x63\x65","\x69\x73\x56\x61\x6C\x69\x64\x54\x61\x72\x67\x65\x74","\x73\x65\x74\x54\x6F\x6F\x6C\x74\x69\x70\x73","\x73\x65\x74\x50\x61\x6E\x6E\x69\x6E\x67","\x69\x73\x41\x75\x74\x6F\x53\x69\x7A\x65\x43\x65\x6C\x6C\x73","\x53\x54\x59\x4C\x45\x5F\x41\x55\x54\x4F\x53\x49\x5A\x45","\x73\x65\x74\x41\x75\x74\x6F\x53\x69\x7A\x65\x43\x65\x6C\x6C\x73","\x69\x73\x45\x78\x74\x65\x6E\x64\x50\x61\x72\x65\x6E\x74\x73","\x73\x65\x74\x45\x78\x74\x65\x6E\x64\x50\x61\x72\x65\x6E\x74\x73","\x73\x65\x74\x45\x78\x74\x65\x6E\x64\x50\x61\x72\x65\x6E\x74\x73\x4F\x6E\x41\x64\x64","\x69\x73\x43\x6F\x6E\x73\x74\x72\x61\x69\x6E\x43\x68\x69\x6C\x64\x72\x65\x6E","\x73\x65\x74\x43\x6F\x6E\x73\x74\x72\x61\x69\x6E\x43\x68\x69\x6C\x64\x72\x65\x6E","\x69\x73\x41\x6C\x6C\x6F\x77\x4F\x76\x65\x72\x6C\x61\x70\x50\x61\x72\x65\x6E\x74","\x53\x54\x59\x4C\x45\x5F\x46\x4F\x4C\x44\x41\x42\x4C\x45","\x69\x73\x56\x61\x6C\x69\x64\x44\x72\x6F\x70\x54\x61\x72\x67\x65\x74","\x69\x73\x53\x70\x6C\x69\x74\x54\x61\x72\x67\x65\x74","\x73\x65\x74\x44\x65\x66\x61\x75\x6C\x74\x50\x61\x72\x65\x6E\x74","\x68\x69\x74\x73\x53\x77\x69\x6D\x6C\x61\x6E\x65\x43\x6F\x6E\x74\x65\x6E\x74","\x67\x65\x74\x50\x6F\x69\x6E\x74\x46\x6F\x72\x45\x76\x65\x6E\x74","\x67\x65\x74\x43\x65\x6C\x6C\x73","\x67\x65\x74\x43\x65\x6C\x6C\x73\x42\x65\x79\x6F\x6E\x64","\x69\x73\x43\x65\x6C\x6C\x53\x65\x6C\x65\x63\x74\x65\x64","\x69\x73\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x45\x6D\x70\x74\x79","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x6F\x75\x6E\x74","\x61\x64\x64\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C","\x61\x64\x64\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C\x73","\x72\x65\x6D\x6F\x76\x65\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C","\x73\x65\x6C\x65\x63\x74\x52\x65\x67\x69\x6F\x6E","\x73\x65\x6C\x65\x63\x74\x43\x65\x6C\x6C\x73\x46\x6F\x72\x45\x76\x65\x6E\x74","\x73\x65\x6C\x65\x63\x74\x4E\x65\x78\x74\x43\x65\x6C\x6C","\x73\x65\x6C\x65\x63\x74\x43\x65\x6C\x6C","\x73\x65\x6C\x65\x63\x74\x50\x72\x65\x76\x69\x6F\x75\x73\x43\x65\x6C\x6C","\x73\x65\x6C\x65\x63\x74\x50\x61\x72\x65\x6E\x74\x43\x65\x6C\x6C","\x73\x65\x6C\x65\x63\x74\x43\x68\x69\x6C\x64\x43\x65\x6C\x6C","\x73\x65\x6C\x65\x63\x74\x41\x6C\x6C","\x73\x65\x6C\x65\x63\x74\x56\x65\x72\x74\x69\x63\x65\x73","\x73\x65\x6C\x65\x63\x74\x43\x65\x6C\x6C\x73","\x73\x65\x6C\x65\x63\x74\x45\x64\x67\x65\x73","\x63\x72\x65\x61\x74\x65\x48\x61\x6E\x64\x6C\x65\x72","\x75\x70\x64\x61\x74\x65\x4D\x6F\x75\x73\x65\x45\x76\x65\x6E\x74","\x4D\x4F\x55\x53\x45\x5F\x44\x4F\x57\x4E","\x6C\x61\x73\x74\x54\x6F\x75\x63\x68\x58","\x6C\x61\x73\x74\x4D\x6F\x75\x73\x65\x58","\x6C\x61\x73\x74\x4D\x6F\x75\x73\x65\x59","\x4D\x4F\x55\x53\x45\x5F\x55\x50","\x4D\x4F\x55\x53\x45\x5F\x4D\x4F\x56\x45","\x64\x65\x73\x74\x72\x6F\x79\x65\x64","\x74\x6F\x6F\x6C\x74\x69\x70","\x68\x65\x6C\x70","\x67\x72\x61\x70\x68\x52\x65\x6E\x64\x65\x72\x48\x69\x6E\x74","\x73\x68\x6F\x77\x56\x69\x65\x77\x70\x6F\x72\x74","\x73\x69\x7A\x65\x72\x53\x69\x7A\x65","\x75\x70\x64\x61\x74\x65\x4F\x6E\x50\x61\x6E","\x73\x69\x7A\x65\x72\x49\x6D\x61\x67\x65","\x73\x68\x61\x70\x65\x2D\x72\x65\x6E\x64\x65\x72\x69\x6E\x67","\x6F\x70\x74\x69\x6D\x69\x7A\x65\x53\x70\x65\x65\x64","\x69\x6D\x61\x67\x65\x2D\x72\x65\x6E\x64\x65\x72\x69\x6E\x67","\x75\x70\x64\x61\x74\x65\x48\x61\x6E\x64\x6C\x65\x72","\x75\x70\x64\x61\x74\x65","\x70\x61\x6E\x48\x61\x6E\x64\x6C\x65\x72","\x72\x65\x66\x72\x65\x73\x68\x48\x61\x6E\x64\x6C\x65\x72","\x73\x65\x6C\x65\x63\x74\x69\x6F\x6E\x42\x6F\x72\x64\x65\x72","\x72\x65\x64\x69\x72\x65\x63\x74\x4D\x6F\x75\x73\x65\x45\x76\x65\x6E\x74\x73","\x73\x69\x7A\x65\x72","\x63\x72\x65\x61\x74\x65\x53\x69\x7A\x65\x72","\x73\x65\x74\x5A\x6F\x6F\x6D\x45\x6E\x61\x62\x6C\x65\x64","\x67\x65\x74\x53\x6F\x75\x72\x63\x65\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72\x53\x69\x7A\x65","\x67\x65\x74\x4F\x75\x74\x6C\x69\x6E\x65\x4F\x66\x66\x73\x65\x74","\x73\x74\x61\x72\x74\x58","\x73\x74\x61\x72\x74\x59","\x64\x78\x30","\x64\x79\x30","\x6E","\x76\x61\x6C\x69\x64\x4E\x65\x69\x67\x68\x62\x6F\x72\x73","\x74\x79\x70\x65\x45\x72\x72\x6F\x72","\x76\x61\x6C\x69\x64\x4E\x65\x69\x67\x68\x62\x6F\x72\x73\x41\x6C\x6C\x6F\x77\x65\x64","\x63\x68\x65\x63\x6B\x54\x65\x72\x6D\x69\x6E\x61\x6C","\x63\x68\x65\x63\x6B\x4E\x65\x69\x67\x68\x62\x6F\x72\x73","\x63\x68\x65\x63\x6B\x54\x79\x70\x65","\x75\x6E\x64\x6F\x48\x61\x6E\x64\x6C\x65\x72","\x62\x75\x62\x62\x6C\x69\x6E\x67","\x69\x73\x42\x75\x62\x62\x6C\x69\x6E\x67","\x73\x65\x74\x42\x75\x62\x62\x6C\x69\x6E\x67","\x67\x65\x74\x4C\x61\x79\x6F\x75\x74","\x67\x65\x74\x43\x65\x6C\x6C\x73\x46\x6F\x72\x43\x68\x61\x6E\x67\x65\x73","\x67\x65\x74\x43\x65\x6C\x6C\x73\x46\x6F\x72\x43\x68\x61\x6E\x67\x65","\x65\x78\x65\x63\x75\x74\x65\x4C\x61\x79\x6F\x75\x74","\x72\x65\x73\x69\x7A\x65\x48\x61\x6E\x64\x6C\x65\x72","\x66\x6F\x6C\x64\x48\x61\x6E\x64\x6C\x65\x72","\x73\x68\x69\x66\x74\x52\x69\x67\x68\x74\x77\x61\x72\x64\x73","\x73\x68\x69\x66\x74\x44\x6F\x77\x6E\x77\x61\x72\x64\x73","\x69\x73\x43\x65\x6C\x6C\x49\x67\x6E\x6F\x72\x65\x64","\x69\x73\x43\x65\x6C\x6C\x53\x68\x69\x66\x74\x61\x62\x6C\x65","\x69\x73\x53\x68\x69\x66\x74\x52\x69\x67\x68\x74\x77\x61\x72\x64\x73","\x73\x65\x74\x53\x68\x69\x66\x74\x52\x69\x67\x68\x74\x77\x61\x72\x64\x73","\x69\x73\x53\x68\x69\x66\x74\x44\x6F\x77\x6E\x77\x61\x72\x64\x73","\x73\x65\x74\x53\x68\x69\x66\x74\x44\x6F\x77\x6E\x77\x61\x72\x64\x73","\x63\x65\x6C\x6C\x52\x65\x73\x69\x7A\x65\x64","\x67\x65\x74\x43\x65\x6C\x6C\x73\x54\x6F\x53\x68\x69\x66\x74","\x73\x68\x69\x66\x74\x43\x65\x6C\x6C","\x61\x64\x64\x45\x6E\x61\x62\x6C\x65\x64","\x72\x65\x73\x69\x7A\x65\x45\x6E\x61\x62\x6C\x65\x64","\x61\x64\x64\x48\x61\x6E\x64\x6C\x65\x72","\x69\x73\x41\x64\x64\x45\x6E\x61\x62\x6C\x65\x64","\x69\x73\x52\x65\x73\x69\x7A\x65\x45\x6E\x61\x62\x6C\x65\x64","\x73\x65\x74\x48\x6F\x72\x69\x7A\x6F\x6E\x74\x61\x6C","\x73\x65\x74\x41\x64\x64\x45\x6E\x61\x62\x6C\x65\x64","\x73\x65\x74\x52\x65\x73\x69\x7A\x65\x45\x6E\x61\x62\x6C\x65\x64","\x69\x73\x53\x77\x69\x6D\x6C\x61\x6E\x65\x49\x67\x6E\x6F\x72\x65\x64","\x69\x73\x43\x65\x6C\x6C\x48\x6F\x72\x69\x7A\x6F\x6E\x74\x61\x6C","\x73\x77\x69\x6D\x6C\x61\x6E\x65\x41\x64\x64\x65\x64","\x72\x65\x73\x69\x7A\x65\x53\x77\x69\x6D\x6C\x61\x6E\x65","\x6F\x6C\x64\x42\x6F\x75\x6E\x64\x73","\x6F\x6C\x64\x53\x74\x61\x74\x65\x73","\x6F\x6C\x64\x53\x63\x61\x6C\x65","\x64\x65\x6C\x74\x61\x73","\x63\x6F\x75\x6E\x74","\x58","\x59","\x61\x64\x64\x45\x64\x67\x65\x73","\x72\x65\x73\x6F\x6C\x76\x65","\x74\x72\x61\x6E\x73\x6C\x61\x74\x65\x53\x74\x61\x74\x65","\x72\x65\x76\x61\x6C\x69\x64\x61\x74\x65\x53\x74\x61\x74\x65","\x75\x70\x64\x61\x74\x65\x50\x72\x65\x76\x69\x65\x77\x53\x68\x61\x70\x65","\x6D\x61\x78\x43\x65\x6C\x6C\x73","\x68\x69\x67\x68\x6C\x69\x67\x68\x74\x45\x6E\x61\x62\x6C\x65\x64","\x63\x6C\x6F\x6E\x65\x45\x6E\x61\x62\x6C\x65\x64","\x6D\x6F\x76\x65\x45\x6E\x61\x62\x6C\x65\x64","\x67\x75\x69\x64\x65","\x63\x75\x72\x72\x65\x6E\x74\x44\x78","\x63\x75\x72\x72\x65\x6E\x74\x44\x79","\x75\x70\x64\x61\x74\x65\x43\x75\x72\x73\x6F\x72","\x73\x65\x6C\x65\x63\x74\x45\x6E\x61\x62\x6C\x65\x64","\x63\x6F\x6E\x6E\x65\x63\x74\x4F\x6E\x44\x72\x6F\x70","\x73\x63\x72\x6F\x6C\x6C\x4F\x6E\x4D\x6F\x76\x65","\x70\x72\x65\x76\x69\x65\x77\x43\x6F\x6C\x6F\x72","\x68\x74\x6D\x6C\x50\x72\x65\x76\x69\x65\x77","\x73\x63\x61\x6C\x65\x47\x72\x69\x64","\x72\x6F\x74\x61\x74\x69\x6F\x6E\x45\x6E\x61\x62\x6C\x65\x64","\x69\x73\x43\x6C\x6F\x6E\x65\x45\x6E\x61\x62\x6C\x65\x64","\x73\x65\x74\x43\x6C\x6F\x6E\x65\x45\x6E\x61\x62\x6C\x65\x64","\x69\x73\x4D\x6F\x76\x65\x45\x6E\x61\x62\x6C\x65\x64","\x73\x65\x74\x4D\x6F\x76\x65\x45\x6E\x61\x62\x6C\x65\x64","\x69\x73\x53\x65\x6C\x65\x63\x74\x45\x6E\x61\x62\x6C\x65\x64","\x73\x65\x74\x53\x65\x6C\x65\x63\x74\x45\x6E\x61\x62\x6C\x65\x64","\x69\x73\x52\x65\x6D\x6F\x76\x65\x43\x65\x6C\x6C\x73\x46\x72\x6F\x6D\x50\x61\x72\x65\x6E\x74","\x73\x65\x74\x52\x65\x6D\x6F\x76\x65\x43\x65\x6C\x6C\x73\x46\x72\x6F\x6D\x50\x61\x72\x65\x6E\x74","\x67\x65\x74\x49\x6E\x69\x74\x69\x61\x6C\x43\x65\x6C\x6C\x46\x6F\x72\x45\x76\x65\x6E\x74","\x69\x73\x44\x65\x6C\x61\x79\x65\x64\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E","\x64\x65\x6C\x61\x79\x65\x64\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E","\x63\x65\x6C\x6C\x57\x61\x73\x43\x6C\x69\x63\x6B\x65\x64","\x53\x45\x4C\x45\x43\x54","\x66\x69\x72\x73\x74","\x67\x65\x74\x50\x72\x65\x76\x69\x65\x77\x42\x6F\x75\x6E\x64\x73","\x63\x72\x65\x61\x74\x65\x50\x72\x65\x76\x69\x65\x77\x53\x68\x61\x70\x65","\x70\x42\x6F\x75\x6E\x64\x73","\x75\x73\x65\x47\x75\x69\x64\x65\x73\x46\x6F\x72\x45\x76\x65\x6E\x74","\x73\x65\x74\x48\x69\x67\x68\x6C\x69\x67\x68\x74\x43\x6F\x6C\x6F\x72","\x56\x41\x4C\x49\x44\x5F\x43\x4F\x4C\x4F\x52","\x49\x4E\x56\x41\x4C\x49\x44\x5F\x43\x4F\x4E\x4E\x45\x43\x54\x5F\x54\x41\x52\x47\x45\x54\x5F\x43\x4F\x4C\x4F\x52","\x43\x55\x52\x53\x4F\x52\x5F\x4D\x4F\x56\x41\x42\x4C\x45\x5F\x45\x44\x47\x45","\x43\x55\x52\x53\x4F\x52\x5F\x4D\x4F\x56\x41\x42\x4C\x45\x5F\x56\x45\x52\x54\x45\x58","\x73\x65\x6C\x65\x63\x74\x44\x65\x6C\x61\x79\x65\x64","\x64\x65\x73\x74\x72\x6F\x79\x53\x68\x61\x70\x65\x73","\x67\x75\x69\x64\x65\x73","\x73\x68\x6F\x75\x6C\x64\x52\x65\x6D\x6F\x76\x65\x43\x65\x6C\x6C\x73\x46\x72\x6F\x6D\x50\x61\x72\x65\x6E\x74","\x74\x72\x69\x67\x67\x65\x72\x58","\x74\x72\x69\x67\x67\x65\x72\x59","\x75\x73\x65\x50\x6F\x70\x75\x70\x54\x72\x69\x67\x67\x65\x72","\x75\x73\x65\x4C\x65\x66\x74\x42\x75\x74\x74\x6F\x6E\x46\x6F\x72\x50\x61\x6E\x6E\x69\x6E\x67","\x73\x65\x6C\x65\x63\x74\x4F\x6E\x50\x6F\x70\x75\x70","\x63\x6C\x65\x61\x72\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x4F\x6E\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64","\x69\x67\x6E\x6F\x72\x65\x43\x65\x6C\x6C","\x70\x72\x65\x76\x69\x65\x77\x45\x6E\x61\x62\x6C\x65\x64","\x75\x73\x65\x47\x72\x69\x64","\x69\x73\x50\x61\x6E\x6E\x69\x6E\x67\x45\x6E\x61\x62\x6C\x65\x64","\x73\x65\x74\x50\x61\x6E\x6E\x69\x6E\x67\x45\x6E\x61\x62\x6C\x65\x64","\x69\x73\x50\x61\x6E\x6E\x69\x6E\x67\x54\x72\x69\x67\x67\x65\x72","\x70\x6F\x70\x75\x70\x54\x72\x69\x67\x67\x65\x72","\x70\x61\x6E\x6E\x69\x6E\x67\x54\x72\x69\x67\x67\x65\x72","\x63\x6F\x6E\x73\x75\x6D\x65\x50\x61\x6E\x6E\x69\x6E\x67\x54\x72\x69\x67\x67\x65\x72","\x67\x65\x74\x43\x65\x6C\x6C\x46\x6F\x72\x50\x6F\x70\x75\x70\x45\x76\x65\x6E\x74","\x76\x61\x6C\x69\x64\x43\x6F\x6C\x6F\x72","\x44\x45\x46\x41\x55\x4C\x54\x5F\x56\x41\x4C\x49\x44\x5F\x43\x4F\x4C\x4F\x52","\x69\x6E\x76\x61\x6C\x69\x64\x43\x6F\x6C\x6F\x72","\x44\x45\x46\x41\x55\x4C\x54\x5F\x49\x4E\x56\x41\x4C\x49\x44\x5F\x43\x4F\x4C\x4F\x52","\x68\x6F\x74\x73\x70\x6F\x74","\x44\x45\x46\x41\x55\x4C\x54\x5F\x48\x4F\x54\x53\x50\x4F\x54","\x68\x6F\x74\x73\x70\x6F\x74\x45\x6E\x61\x62\x6C\x65\x64","\x63\x75\x72\x72\x65\x6E\x74\x43\x6F\x6C\x6F\x72","\x76\x61\x6C\x69\x64\x53\x74\x61\x74\x65","\x6D\x61\x72\x6B\x65\x64\x53\x74\x61\x74\x65","\x73\x65\x74\x48\x6F\x74\x73\x70\x6F\x74","\x67\x65\x74\x48\x6F\x74\x73\x70\x6F\x74","\x73\x65\x74\x48\x6F\x74\x73\x70\x6F\x74\x45\x6E\x61\x62\x6C\x65\x64","\x69\x73\x48\x6F\x74\x73\x70\x6F\x74\x45\x6E\x61\x62\x6C\x65\x64","\x68\x61\x73\x56\x61\x6C\x69\x64\x53\x74\x61\x74\x65","\x67\x65\x74\x56\x61\x6C\x69\x64\x53\x74\x61\x74\x65","\x67\x65\x74\x4D\x61\x72\x6B\x65\x64\x53\x74\x61\x74\x65","\x75\x6E\x6D\x61\x72\x6B","\x70\x72\x6F\x63\x65\x73\x73","\x69\x73\x56\x61\x6C\x69\x64\x53\x74\x61\x74\x65","\x67\x65\x74\x4D\x61\x72\x6B\x65\x72\x43\x6F\x6C\x6F\x72","\x6D\x61\x72\x6B\x43\x65\x6C\x6C","\x67\x65\x74\x53\x74\x61\x74\x65\x54\x6F\x4D\x61\x72\x6B","\x69\x6E\x74\x65\x72\x73\x65\x63\x74\x73\x48\x6F\x74\x73\x70\x6F\x74","\x72\x65\x73\x65\x74\x48\x61\x6E\x64\x6C\x65\x72","\x68\x61\x6E\x64\x6C\x65\x72\x73","\x6D\x61\x78\x48\x61\x6E\x64\x6C\x65\x72\x73","\x6D\x6F\x76\x65\x49\x63\x6F\x6E\x46\x72\x6F\x6E\x74","\x6D\x6F\x76\x65\x49\x63\x6F\x6E\x42\x61\x63\x6B","\x63\x6F\x6E\x6E\x65\x63\x74\x49\x6D\x61\x67\x65","\x74\x61\x72\x67\x65\x74\x43\x6F\x6E\x6E\x65\x63\x74\x49\x6D\x61\x67\x65","\x63\x72\x65\x61\x74\x65\x54\x61\x72\x67\x65\x74","\x6D\x61\x72\x6B\x65\x72","\x63\x6F\x6E\x73\x74\x72\x61\x69\x6E\x74\x48\x61\x6E\x64\x6C\x65\x72","\x77\x61\x79\x70\x6F\x69\x6E\x74\x73\x45\x6E\x61\x62\x6C\x65\x64","\x74\x61\x70\x41\x6E\x64\x48\x6F\x6C\x64\x45\x6E\x61\x62\x6C\x65\x64","\x74\x61\x70\x41\x6E\x64\x48\x6F\x6C\x64\x44\x65\x6C\x61\x79","\x74\x61\x70\x41\x6E\x64\x48\x6F\x6C\x64\x49\x6E\x50\x72\x6F\x67\x72\x65\x73\x73","\x74\x61\x70\x41\x6E\x64\x48\x6F\x6C\x64\x56\x61\x6C\x69\x64","\x74\x61\x70\x41\x6E\x64\x48\x6F\x6C\x64\x54\x6F\x6C\x65\x72\x61\x6E\x63\x65","\x69\x6E\x69\x74\x69\x61\x6C\x54\x6F\x75\x63\x68\x58","\x69\x6E\x69\x74\x69\x61\x6C\x54\x6F\x75\x63\x68\x59","\x69\x67\x6E\x6F\x72\x65\x4D\x6F\x75\x73\x65\x44\x6F\x77\x6E","\x63\x6F\x6E\x6E\x65\x63\x74\x49\x63\x6F\x6E\x4F\x66\x66\x73\x65\x74","\x65\x64\x67\x65\x53\x74\x61\x74\x65","\x64\x72\x69\x6C\x6C\x48\x61\x6E\x64\x6C\x65\x72","\x6D\x6F\x75\x73\x65\x44\x6F\x77\x6E\x43\x6F\x75\x6E\x74\x65\x72","\x6D\x6F\x76\x65\x50\x72\x65\x76\x69\x65\x77\x41\x77\x61\x79","\x69\x73\x43\x72\x65\x61\x74\x65\x54\x61\x72\x67\x65\x74","\x73\x65\x74\x43\x72\x65\x61\x74\x65\x54\x61\x72\x67\x65\x74","\x69\x63\x6F\x6E\x53\x74\x61\x74\x65","\x69\x63\x6F\x6E\x73","\x72\x65\x64\x72\x61\x77\x49\x63\x6F\x6E\x73","\x64\x65\x73\x74\x72\x6F\x79\x49\x63\x6F\x6E\x73","\x69\x73\x43\x6F\x6E\x6E\x65\x63\x74\x61\x62\x6C\x65\x43\x65\x6C\x6C","\x69\x73\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6E\x67","\x76\x61\x6C\x69\x64\x61\x74\x65\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E","\x63\x72\x65\x61\x74\x65\x45\x64\x67\x65\x53\x74\x61\x74\x65","\x67\x65\x74\x43\x6F\x6E\x6E\x65\x63\x74\x49\x6D\x61\x67\x65","\x69\x73\x4D\x6F\x76\x65\x49\x63\x6F\x6E\x54\x6F\x46\x72\x6F\x6E\x74\x46\x6F\x72\x53\x74\x61\x74\x65","\x63\x72\x65\x61\x74\x65\x49\x63\x6F\x6E\x73","\x43\x55\x52\x53\x4F\x52\x5F\x43\x4F\x4E\x4E\x45\x43\x54","\x63\x75\x72\x72\x65\x6E\x74\x53\x74\x61\x74\x65","\x69\x63\x6F\x6E","\x67\x65\x74\x49\x63\x6F\x6E\x50\x6F\x73\x69\x74\x69\x6F\x6E","\x69\x73\x53\x74\x61\x72\x74\x45\x76\x65\x6E\x74","\x63\x75\x72\x72\x65\x6E\x74\x46\x6F\x63\x75\x73","\x63\x75\x72\x72\x65\x6E\x74\x43\x6F\x6E\x73\x74\x72\x61\x69\x6E\x74","\x73\x6F\x75\x72\x63\x65\x43\x6F\x6E\x73\x74\x72\x61\x69\x6E\x74","\x77\x61\x79\x70\x6F\x69\x6E\x74\x73","\x74\x61\x70\x41\x6E\x64\x48\x6F\x6C\x64\x54\x68\x72\x65\x61\x64","\x63\x6C\x65\x61\x72\x54\x69\x6D\x65\x6F\x75\x74","\x74\x61\x70\x41\x6E\x64\x48\x6F\x6C\x64","\x73\x65\x6C\x65\x63\x74\x65\x64\x49\x63\x6F\x6E","\x69\x73\x49\x6D\x6D\x65\x64\x69\x61\x74\x65\x43\x6F\x6E\x6E\x65\x63\x74\x53\x6F\x75\x72\x63\x65","\x75\x70\x64\x61\x74\x65\x43\x75\x72\x72\x65\x6E\x74\x53\x74\x61\x74\x65","\x63\x6F\x6E\x76\x65\x72\x74\x57\x61\x79\x70\x6F\x69\x6E\x74","\x67\x65\x74\x54\x61\x72\x67\x65\x74\x50\x65\x72\x69\x6D\x65\x74\x65\x72\x50\x6F\x69\x6E\x74","\x67\x65\x74\x53\x6F\x75\x72\x63\x65\x50\x65\x72\x69\x6D\x65\x74\x65\x72\x50\x6F\x69\x6E\x74","\x64\x72\x61\x77\x50\x72\x65\x76\x69\x65\x77","\x75\x70\x64\x61\x74\x65\x49\x63\x6F\x6E\x73","\x69\x73\x53\x74\x6F\x70\x45\x76\x65\x6E\x74","\x61\x64\x64\x57\x61\x79\x70\x6F\x69\x6E\x74\x46\x6F\x72\x45\x76\x65\x6E\x74","\x67\x65\x74\x45\x64\x67\x65\x57\x69\x64\x74\x68","\x67\x65\x74\x45\x64\x67\x65\x43\x6F\x6C\x6F\x72","\x49\x4E\x56\x41\x4C\x49\x44\x5F\x43\x4F\x4C\x4F\x52","\x63\x72\x65\x61\x74\x65\x54\x61\x72\x67\x65\x74\x56\x65\x72\x74\x65\x78","\x67\x65\x74\x41\x6C\x69\x67\x6E\x6D\x65\x6E\x74\x54\x6F\x6C\x65\x72\x61\x6E\x63\x65","\x70\x6F\x69\x6E\x74\x49\x6D\x61\x67\x65","\x2F\x70\x6F\x69\x6E\x74\x2E\x67\x69\x66","\x68\x69\x67\x68\x6C\x69\x67\x68\x74\x43\x6F\x6C\x6F\x72","\x66\x6F\x63\x75\x73\x49\x63\x6F\x6E\x73","\x66\x6F\x63\x75\x73\x48\x69\x67\x68\x6C\x69\x67\x68\x74","\x66\x6F\x63\x75\x73\x50\x6F\x69\x6E\x74\x73","\x63\x75\x72\x72\x65\x6E\x74\x46\x6F\x63\x75\x73\x41\x72\x65\x61","\x67\x65\x74\x49\x6D\x61\x67\x65\x46\x6F\x72\x43\x6F\x6E\x73\x74\x72\x61\x69\x6E\x74","\x69\x73\x45\x76\x65\x6E\x74\x49\x67\x6E\x6F\x72\x65\x64","\x72\x65\x70\x61\x69\x6E\x74","\x64\x65\x66\x61\x75\x6C\x74\x4F\x70\x61\x63\x69\x74\x79","\x73\x68\x61\x72\x65\x64\x44\x69\x76","\x63\x75\x72\x72\x65\x6E\x74\x58","\x63\x75\x72\x72\x65\x6E\x74\x59","\x64\x72\x61\x67\x48\x61\x6E\x64\x6C\x65\x72","\x6D\x78\x52\x75\x62\x62\x65\x72\x62\x61\x6E\x64","\x73\x69\x6E\x67\x6C\x65\x53\x69\x7A\x65\x72","\x61\x6C\x6C\x6F\x77\x48\x61\x6E\x64\x6C\x65\x42\x6F\x75\x6E\x64\x73\x43\x68\x65\x63\x6B","\x68\x61\x6E\x64\x6C\x65\x49\x6D\x61\x67\x65","\x72\x6F\x74\x61\x74\x69\x6F\x6E\x52\x61\x73\x74\x65\x72","\x73\x65\x6C\x65\x63\x74\x69\x6F\x6E\x42\x6F\x75\x6E\x64\x73","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x42\x6F\x75\x6E\x64\x73","\x63\x72\x65\x61\x74\x65\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x53\x68\x61\x70\x65","\x73\x69\x7A\x65\x72\x73","\x6E\x2D\x72\x65\x73\x69\x7A\x65","\x6E\x65\x2D\x72\x65\x73\x69\x7A\x65","\x77\x2D\x72\x65\x73\x69\x7A\x65","\x65\x2D\x72\x65\x73\x69\x7A\x65","\x73\x77\x2D\x72\x65\x73\x69\x7A\x65","\x73\x2D\x72\x65\x73\x69\x7A\x65","\x73\x65\x2D\x72\x65\x73\x69\x7A\x65","\x6C\x61\x62\x65\x6C\x53\x68\x61\x70\x65","\x72\x6F\x74\x61\x74\x69\x6F\x6E\x53\x68\x61\x70\x65","\x48\x41\x4E\x44\x4C\x45\x5F\x53\x49\x5A\x45","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x6F\x6C\x6F\x72","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x53\x74\x72\x6F\x6B\x65\x57\x69\x64\x74\x68","\x69\x73\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x44\x61\x73\x68\x65\x64","\x56\x45\x52\x54\x45\x58\x5F\x53\x45\x4C\x45\x43\x54\x49\x4F\x4E\x5F\x43\x4F\x4C\x4F\x52","\x56\x45\x52\x54\x45\x58\x5F\x53\x45\x4C\x45\x43\x54\x49\x4F\x4E\x5F\x53\x54\x52\x4F\x4B\x45\x57\x49\x44\x54\x48","\x56\x45\x52\x54\x45\x58\x5F\x53\x45\x4C\x45\x43\x54\x49\x4F\x4E\x5F\x44\x41\x53\x48\x45\x44","\x63\x72\x65\x61\x74\x65\x53\x69\x7A\x65\x72\x53\x68\x61\x70\x65","\x69\x73\x53\x69\x7A\x65\x72\x56\x69\x73\x69\x62\x6C\x65","\x52\x4F\x54\x41\x54\x49\x4F\x4E\x5F\x48\x41\x4E\x44\x4C\x45","\x48\x41\x4E\x44\x4C\x45\x5F\x46\x49\x4C\x4C\x43\x4F\x4C\x4F\x52","\x6D\x6F\x76\x65\x53\x69\x7A\x65\x72\x54\x6F","\x67\x65\x74\x48\x61\x6E\x64\x6C\x65\x46\x6F\x72\x45\x76\x65\x6E\x74","\x4C\x41\x42\x45\x4C\x5F\x48\x41\x4E\x44\x4C\x45","\x70\x72\x65\x76\x69\x65\x77","\x63\x75\x72\x72\x65\x6E\x74\x41\x6C\x70\x68\x61","\x61\x74\x61\x6E","\x75\x6E\x69\x6F\x6E","\x72\x6F\x74\x61\x74\x65\x43\x65\x6C\x6C","\x6D\x6F\x76\x65\x43\x68\x69\x6C\x64\x72\x65\x6E","\x62\x65\x6E\x64\x73","\x72\x65\x6D\x6F\x76\x65\x45\x6E\x61\x62\x6C\x65\x64","\x73\x6E\x61\x70\x54\x6F\x54\x65\x72\x6D\x69\x6E\x61\x6C\x73","\x61\x62\x73\x70\x6F\x69\x6E\x74\x73","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x50\x6F\x69\x6E\x74\x73","\x69\x73\x41\x64\x64\x50\x6F\x69\x6E\x74\x45\x76\x65\x6E\x74","\x61\x64\x64\x50\x6F\x69\x6E\x74","\x63\x72\x65\x61\x74\x65\x42\x65\x6E\x64\x73","\x69\x6E\x69\x74\x42\x65\x6E\x64","\x43\x55\x52\x53\x4F\x52\x5F\x4C\x41\x42\x45\x4C\x5F\x48\x41\x4E\x44\x4C\x45","\x69\x73\x52\x65\x6D\x6F\x76\x65\x50\x6F\x69\x6E\x74\x45\x76\x65\x6E\x74","\x45\x44\x47\x45\x5F\x53\x45\x4C\x45\x43\x54\x49\x4F\x4E\x5F\x43\x4F\x4C\x4F\x52","\x45\x44\x47\x45\x5F\x53\x45\x4C\x45\x43\x54\x49\x4F\x4E\x5F\x53\x54\x52\x4F\x4B\x45\x57\x49\x44\x54\x48","\x45\x44\x47\x45\x5F\x53\x45\x4C\x45\x43\x54\x49\x4F\x4E\x5F\x44\x41\x53\x48\x45\x44","\x69\x73\x48\x61\x6E\x64\x6C\x65\x56\x69\x73\x69\x62\x6C\x65","\x63\x72\x65\x61\x74\x65\x48\x61\x6E\x64\x6C\x65\x53\x68\x61\x70\x65","\x69\x73\x48\x61\x6E\x64\x6C\x65\x45\x6E\x61\x62\x6C\x65\x64","\x43\x55\x52\x53\x4F\x52\x5F\x42\x45\x4E\x44\x5F\x48\x41\x4E\x44\x4C\x45","\x72\x65\x6D\x6F\x76\x65\x50\x6F\x69\x6E\x74","\x69\x73\x54\x61\x72\x67\x65\x74","\x69\x73\x4C\x61\x62\x65\x6C","\x63\x6C\x6F\x6E\x65\x50\x72\x65\x76\x69\x65\x77\x53\x74\x61\x74\x65","\x67\x65\x74\x53\x6E\x61\x70\x54\x6F\x54\x65\x72\x6D\x69\x6E\x61\x6C\x54\x6F\x6C\x65\x72\x61\x6E\x63\x65","\x67\x65\x74\x50\x72\x65\x76\x69\x65\x77\x54\x65\x72\x6D\x69\x6E\x61\x6C\x53\x74\x61\x74\x65","\x67\x65\x74\x50\x72\x65\x76\x69\x65\x77\x50\x6F\x69\x6E\x74\x73","\x75\x70\x64\x61\x74\x65\x50\x72\x65\x76\x69\x65\x77\x53\x74\x61\x74\x65","\x73\x65\x74\x50\x72\x65\x76\x69\x65\x77\x43\x6F\x6C\x6F\x72","\x6D\x6F\x76\x65\x4C\x61\x62\x65\x6C","\x63\x68\x61\x6E\x67\x65\x54\x65\x72\x6D\x69\x6E\x61\x6C\x50\x6F\x69\x6E\x74","\x63\x68\x61\x6E\x67\x65\x50\x6F\x69\x6E\x74\x73","\x61\x64\x64\x50\x6F\x69\x6E\x74\x41\x74","\x66\x69\x6E\x64\x4E\x65\x61\x72\x65\x73\x74\x53\x65\x67\x6D\x65\x6E\x74","\x67\x65\x74\x48\x61\x6E\x64\x6C\x65\x46\x69\x6C\x6C\x43\x6F\x6C\x6F\x72","\x4C\x4F\x43\x4B\x45\x44\x5F\x48\x41\x4E\x44\x4C\x45\x5F\x46\x49\x4C\x4C\x43\x4F\x4C\x4F\x52","\x43\x4F\x4E\x4E\x45\x43\x54\x5F\x48\x41\x4E\x44\x4C\x45\x5F\x46\x49\x4C\x4C\x43\x4F\x4C\x4F\x52","\x4C\x41\x42\x45\x4C\x5F\x48\x41\x4E\x44\x4C\x45\x5F\x53\x49\x5A\x45","\x72\x65\x64\x72\x61\x77\x49\x6E\x6E\x65\x72\x42\x65\x6E\x64\x73","\x66\x6C\x69\x70\x45\x6E\x61\x62\x6C\x65\x64","\x64\x6F\x75\x62\x6C\x65\x43\x6C\x69\x63\x6B\x4F\x72\x69\x65\x6E\x74\x61\x74\x69\x6F\x6E\x52\x65\x73\x6F\x75\x72\x63\x65","\x64\x6F\x75\x62\x6C\x65\x43\x6C\x69\x63\x6B\x4F\x72\x69\x65\x6E\x74\x61\x74\x69\x6F\x6E","\x63\x72\x65\x61\x74\x65\x56\x69\x72\x74\x75\x61\x6C\x42\x65\x6E\x64","\x67\x65\x74\x43\x75\x72\x73\x6F\x72\x46\x6F\x72\x42\x65\x6E\x64","\x45\x44\x47\x45\x53\x54\x59\x4C\x45\x5F\x54\x4F\x50\x54\x4F\x42\x4F\x54\x54\x4F\x4D","\x45\x44\x47\x45\x53\x54\x59\x4C\x45\x5F\x45\x4C\x42\x4F\x57","\x72\x6F\x77\x2D\x72\x65\x73\x69\x7A\x65","\x63\x6F\x6C\x2D\x72\x65\x73\x69\x7A\x65","\x6E\x6F\x72\x6D\x61\x6C\x4B\x65\x79\x73","\x73\x68\x69\x66\x74\x4B\x65\x79\x73","\x63\x6F\x6E\x74\x72\x6F\x6C\x4B\x65\x79\x73","\x63\x6F\x6E\x74\x72\x6F\x6C\x53\x68\x69\x66\x74\x4B\x65\x79\x73","\x6B\x65\x79\x44\x6F\x77\x6E","\x62\x69\x6E\x64\x4B\x65\x79","\x62\x69\x6E\x64\x53\x68\x69\x66\x74\x4B\x65\x79","\x62\x69\x6E\x64\x43\x6F\x6E\x74\x72\x6F\x6C\x4B\x65\x79","\x62\x69\x6E\x64\x43\x6F\x6E\x74\x72\x6F\x6C\x53\x68\x69\x66\x74\x4B\x65\x79","\x67\x65\x74\x46\x75\x6E\x63\x74\x69\x6F\x6E","\x69\x73\x47\x72\x61\x70\x68\x45\x76\x65\x6E\x74","\x68\x69\x64\x65\x4F\x6E\x48\x6F\x76\x65\x72","\x73\x65\x74\x48\x69\x64\x65\x4F\x6E\x48\x6F\x76\x65\x72","\x6D\x78\x54\x6F\x6F\x6C\x74\x69\x70","\x68\x69\x64\x65\x54\x6F\x6F\x6C\x74\x69\x70","\x73\x74\x61\x74\x65\x53\x6F\x75\x72\x63\x65","\x72\x65\x73\x65\x74\x54\x69\x6D\x65\x72","\x48\x49\x47\x48\x4C\x49\x47\x48\x54\x5F\x53\x54\x52\x4F\x4B\x45\x57\x49\x44\x54\x48","\x72\x65\x70\x61\x69\x6E\x74\x48\x61\x6E\x64\x6C\x65\x72","\x6B\x65\x65\x70\x4F\x6E\x54\x6F\x70","\x64\x72\x61\x77\x48\x69\x67\x68\x6C\x69\x67\x68\x74","\x65\x64\x69\x74\x6F\x72","\x68\x69\x64\x65\x50\x72\x6F\x70\x65\x72\x74\x69\x65\x73","\x62\x69\x6E\x64\x41\x63\x74\x69\x6F\x6E","\x63\x6F\x6E\x66\x69\x67","\x63\x72\x65\x61\x74\x65\x4D\x65\x6E\x75","\x63\x72\x65\x61\x74\x65\x43\x6F\x6E\x64\x69\x74\x69\x6F\x6E\x73","\x61\x64\x64\x49\x74\x65\x6D\x73","\x69\x66","\x61\x73","\x69\x63\x6F\x6E\x43\x6C\x73","\x61\x64\x64\x41\x63\x74\x69\x6F\x6E","\x73\x65\x70\x61\x72\x61\x74\x6F\x72","\x6E\x6F\x63\x65\x6C\x6C","\x6E\x63\x65\x6C\x6C\x73","\x6E\x6F\x74\x52\x6F\x6F\x74","\x6E\x6F\x6E\x45\x6D\x70\x74\x79","\x65\x78\x70\x61\x6E\x64\x61\x62\x6C\x65","\x63\x6F\x6C\x6C\x61\x70\x73\x61\x62\x6C\x65","\x76\x61\x6C\x69\x64\x52\x6F\x6F\x74","\x65\x6D\x70\x74\x79\x56\x61\x6C\x69\x64\x52\x6F\x6F\x74","\x63\x6F\x6E\x64\x69\x74\x69\x6F\x6E","\x74\x6F\x6F\x6C\x62\x61\x72","\x69\x6E\x73\x65\x72\x74\x46\x75\x6E\x63\x74\x69\x6F\x6E","\x2F\x73\x65\x70\x61\x72\x61\x74\x6F\x72\x2E\x67\x69\x66","\x61\x64\x64\x41\x63\x74\x69\x6F\x6E\x4F\x70\x74\x69\x6F\x6E","\x73\x65\x74\x4D\x6F\x64\x65","\x61\x64\x64\x50\x72\x6F\x74\x6F\x74\x79\x70\x65","\x69\x6E\x73\x74\x61\x6C\x6C\x44\x72\x6F\x70\x48\x61\x6E\x64\x6C\x65\x72","\x68\x6F\x72\x69\x7A\x6F\x6E\x74\x61\x6C\x46\x6C\x6F\x77","\x6D\x61\x6B\x65\x44\x72\x61\x67\x67\x61\x62\x6C\x65","\x61\x63\x74\x69\x6F\x6E\x73","\x61\x64\x64\x41\x63\x74\x69\x6F\x6E\x73","\x63\x79\x63\x6C\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x56\x61\x6C\x75\x65\x73","\x70\x6F\x70\x75\x70\x48\x61\x6E\x64\x6C\x65\x72","\x75\x6E\x64\x6F\x4D\x61\x6E\x61\x67\x65\x72","\x63\x72\x65\x61\x74\x65\x47\x72\x61\x70\x68","\x63\x72\x65\x61\x74\x65\x54\x6F\x6F\x6C\x62\x61\x72","\x6B\x65\x79\x48\x61\x6E\x64\x6C\x65\x72","\x63\x6F\x6E\x66\x69\x67\x75\x72\x65","\x63\x79\x63\x6C\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x4E\x61\x6D\x65","\x49\x53\x5F\x4C\x4F\x43\x41\x4C","\x63\x72\x65\x61\x74\x65\x53\x65\x73\x73\x69\x6F\x6E","\x2F\x72\x65\x73\x6F\x75\x72\x63\x65\x73\x2F\x65\x64\x69\x74\x6F\x72","\x61\x73\x6B\x5A\x6F\x6F\x6D\x52\x65\x73\x6F\x75\x72\x63\x65","\x61\x73\x6B\x5A\x6F\x6F\x6D","\x6C\x61\x73\x74\x53\x61\x76\x65\x64\x52\x65\x73\x6F\x75\x72\x63\x65","\x6C\x61\x73\x74\x53\x61\x76\x65\x64","\x63\x75\x72\x72\x65\x6E\x74\x46\x69\x6C\x65\x52\x65\x73\x6F\x75\x72\x63\x65","\x63\x75\x72\x72\x65\x6E\x74\x46\x69\x6C\x65","\x70\x72\x6F\x70\x65\x72\x74\x69\x65\x73\x52\x65\x73\x6F\x75\x72\x63\x65","\x74\x61\x73\x6B\x73\x52\x65\x73\x6F\x75\x72\x63\x65","\x74\x61\x73\x6B\x73","\x68\x65\x6C\x70\x52\x65\x73\x6F\x75\x72\x63\x65","\x6F\x75\x74\x6C\x69\x6E\x65\x52\x65\x73\x6F\x75\x72\x63\x65","\x64\x62\x6C\x43\x6C\x69\x63\x6B\x41\x63\x74\x69\x6F\x6E","\x73\x77\x69\x6D\x6C\x61\x6E\x65\x52\x65\x71\x75\x69\x72\x65\x64","\x66\x6F\x72\x63\x65\x64\x49\x6E\x73\x65\x72\x74\x69\x6E\x67","\x74\x65\x6D\x70\x6C\x61\x74\x65\x73","\x64\x65\x66\x61\x75\x6C\x74\x45\x64\x67\x65\x53\x74\x79\x6C\x65","\x64\x65\x66\x61\x75\x6C\x74\x47\x72\x6F\x75\x70","\x67\x72\x6F\x75\x70\x42\x6F\x72\x64\x65\x72\x53\x69\x7A\x65","\x66\x69\x6C\x65\x6E\x61\x6D\x65","\x70\x6F\x73\x74\x50\x61\x72\x61\x6D\x65\x74\x65\x72\x4E\x61\x6D\x65","\x75\x72\x6C\x50\x6F\x73\x74","\x75\x72\x6C\x49\x6D\x61\x67\x65","\x6C\x61\x79\x6F\x75\x74\x44\x69\x61\x67\x72\x61\x6D","\x73\x77\x69\x6D\x6C\x61\x6E\x65\x53\x70\x61\x63\x69\x6E\x67","\x6D\x61\x69\x6E\x74\x61\x69\x6E\x53\x77\x69\x6D\x6C\x61\x6E\x65\x73","\x6C\x61\x79\x6F\x75\x74\x53\x77\x69\x6D\x6C\x61\x6E\x65\x73","\x63\x79\x63\x6C\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x49\x6E\x64\x65\x78","\x74\x61\x73\x6B\x73\x57\x69\x6E\x64\x6F\x77\x49\x6D\x61\x67\x65","\x74\x61\x73\x6B\x73\x54\x6F\x70","\x68\x65\x6C\x70\x57\x69\x6E\x64\x6F\x77\x49\x6D\x61\x67\x65","\x75\x72\x6C\x48\x65\x6C\x70","\x68\x65\x6C\x70\x57\x69\x64\x74\x68","\x68\x65\x6C\x70\x48\x65\x69\x67\x68\x74","\x70\x72\x6F\x70\x65\x72\x74\x69\x65\x73\x57\x69\x64\x74\x68","\x70\x72\x6F\x70\x65\x72\x74\x69\x65\x73\x48\x65\x69\x67\x68\x74","\x6D\x6F\x76\x65\x50\x72\x6F\x70\x65\x72\x74\x69\x65\x73\x44\x69\x61\x6C\x6F\x67","\x76\x61\x6C\x69\x64\x61\x74\x69\x6E\x67","\x65\x78\x70\x6F\x72\x74\x49\x6D\x61\x67\x65","\x67\x65\x74\x55\x72\x6C\x49\x6D\x61\x67\x65","\x67\x65\x74\x56\x69\x65\x77\x58\x6D\x6C","\x5F\x62\x6C\x61\x6E\x6B","\x63\x75\x74","\x70\x61\x73\x74\x65","\x64\x65\x6C\x65\x74\x65","\x75\x6E\x67\x72\x6F\x75\x70","\x61\x63\x74\x75\x61\x6C\x53\x69\x7A\x65","\x73\x68\x6F\x77\x50\x72\x6F\x70\x65\x72\x74\x69\x65\x73","\x73\x65\x6C\x65\x63\x74\x4E\x6F\x6E\x65","\x74\x6F\x42\x61\x63\x6B","\x74\x6F\x46\x72\x6F\x6E\x74","\x73\x65\x6C\x65\x63\x74\x50\x72\x65\x76\x69\x6F\x75\x73","\x73\x65\x6C\x65\x63\x74\x4E\x65\x78\x74","\x73\x65\x6C\x65\x63\x74\x50\x61\x72\x65\x6E\x74","\x73\x65\x6C\x65\x63\x74\x43\x68\x69\x6C\x64","\x63\x6F\x6C\x6C\x61\x70\x73\x65\x41\x6C\x6C","\x65\x78\x70\x61\x6E\x64","\x65\x78\x70\x61\x6E\x64\x41\x6C\x6C","\x61\x6C\x69\x67\x6E\x43\x65\x6C\x6C\x73\x4C\x65\x66\x74","\x61\x6C\x69\x67\x6E\x43\x65\x6C\x6C\x73\x43\x65\x6E\x74\x65\x72","\x61\x6C\x69\x67\x6E\x43\x65\x6C\x6C\x73\x52\x69\x67\x68\x74","\x61\x6C\x69\x67\x6E\x43\x65\x6C\x6C\x73\x54\x6F\x70","\x61\x6C\x69\x67\x6E\x43\x65\x6C\x6C\x73\x4D\x69\x64\x64\x6C\x65","\x61\x6C\x69\x67\x6E\x43\x65\x6C\x6C\x73\x42\x6F\x74\x74\x6F\x6D","\x61\x6C\x69\x67\x6E\x46\x6F\x6E\x74\x4C\x65\x66\x74","\x61\x6C\x69\x67\x6E\x46\x6F\x6E\x74\x43\x65\x6E\x74\x65\x72","\x61\x6C\x69\x67\x6E\x46\x6F\x6E\x74\x52\x69\x67\x68\x74","\x61\x6C\x69\x67\x6E\x46\x6F\x6E\x74\x54\x6F\x70","\x61\x6C\x69\x67\x6E\x46\x6F\x6E\x74\x4D\x69\x64\x64\x6C\x65","\x61\x6C\x69\x67\x6E\x46\x6F\x6E\x74\x42\x6F\x74\x74\x6F\x6D","\x70\x72\x6F\x6D\x70\x74","\x74\x6F\x67\x67\x6C\x65\x54\x61\x73\x6B\x73","\x73\x68\x6F\x77\x54\x61\x73\x6B\x73","\x74\x6F\x67\x67\x6C\x65\x48\x65\x6C\x70","\x73\x68\x6F\x77\x48\x65\x6C\x70","\x74\x6F\x67\x67\x6C\x65\x4F\x75\x74\x6C\x69\x6E\x65","\x73\x68\x6F\x77\x4F\x75\x74\x6C\x69\x6E\x65","\x74\x6F\x67\x67\x6C\x65\x43\x6F\x6E\x73\x6F\x6C\x65","\x72\x65\x73\x65\x74\x48\x69\x73\x74\x6F\x72\x79","\x72\x65\x73\x65\x74\x46\x69\x72\x73\x74\x54\x69\x6D\x65","\x63\x6F\x6F\x6B\x69\x65","\x6D\x78\x67\x72\x61\x70\x68\x3D\x73\x65\x65\x6E\x3B\x20\x65\x78\x70\x69\x72\x65\x73\x3D\x46\x72\x69\x2C\x20\x32\x37\x20\x4A\x75\x6C\x20\x32\x30\x30\x31\x20\x30\x32\x3A\x34\x37\x3A\x31\x31\x20\x55\x54\x43\x3B\x20\x70\x61\x74\x68\x3D\x2F","\x43\x61\x6E\x6E\x6F\x74\x20\x65\x78\x65\x63\x75\x74\x65\x20","\x3A\x20","\x43\x61\x6E\x6E\x6F\x74\x20\x66\x69\x6E\x64\x20\x61\x63\x74\x69\x6F\x6E\x20","\x61\x64\x64\x54\x65\x6D\x70\x6C\x61\x74\x65","\x67\x65\x74\x54\x65\x6D\x70\x6C\x61\x74\x65","\x69\x6E\x73\x74\x61\x6C\x6C\x44\x62\x6C\x43\x6C\x69\x63\x6B\x48\x61\x6E\x64\x6C\x65\x72","\x69\x6E\x73\x74\x61\x6C\x6C\x55\x6E\x64\x6F\x48\x61\x6E\x64\x6C\x65\x72","\x69\x6E\x73\x74\x61\x6C\x6C\x44\x72\x69\x6C\x6C\x48\x61\x6E\x64\x6C\x65\x72","\x69\x6E\x73\x74\x61\x6C\x6C\x43\x68\x61\x6E\x67\x65\x48\x61\x6E\x64\x6C\x65\x72","\x69\x6E\x73\x74\x61\x6C\x6C\x49\x6E\x73\x65\x72\x74\x48\x61\x6E\x64\x6C\x65\x72","\x63\x72\x65\x61\x74\x65\x50\x6F\x70\x75\x70\x4D\x65\x6E\x75","\x63\x72\x65\x61\x74\x65\x53\x77\x69\x6D\x6C\x61\x6E\x65\x4D\x61\x6E\x61\x67\x65\x72","\x63\x72\x65\x61\x74\x65\x4C\x61\x79\x6F\x75\x74\x4D\x61\x6E\x61\x67\x65\x72","\x73\x77\x69\x6D\x6C\x61\x6E\x65\x4C\x61\x79\x6F\x75\x74","\x63\x72\x65\x61\x74\x65\x53\x77\x69\x6D\x6C\x61\x6E\x65\x4C\x61\x79\x6F\x75\x74","\x64\x69\x61\x67\x72\x61\x6D\x4C\x61\x79\x6F\x75\x74","\x63\x72\x65\x61\x74\x65\x44\x69\x61\x67\x72\x61\x6D\x4C\x61\x79\x6F\x75\x74","\x73\x65\x74\x47\x72\x61\x70\x68\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x72\x75\x62\x62\x65\x72\x62\x61\x6E\x64","\x73\x65\x74\x54\x6F\x6F\x6C\x62\x61\x72\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x73\x65\x74\x53\x74\x61\x74\x75\x73\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x74\x6F\x4C\x6F\x63\x61\x6C\x65\x53\x74\x72\x69\x6E\x67","\x73\x65\x74\x53\x74\x61\x74\x75\x73","\x73\x65\x74\x54\x69\x74\x6C\x65\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x67\x65\x74\x54\x69\x74\x6C\x65","\x74\x72\x65\x65\x4C\x61\x79\x6F\x75\x74","\x20\x3E\x20","\x67\x65\x74\x52\x6F\x6F\x74\x54\x69\x74\x6C\x65","\x63\x72\x65\x61\x74\x65\x47\x72\x6F\x75\x70","\x72\x65\x61\x64\x47\x72\x61\x70\x68\x4D\x6F\x64\x65\x6C","\x67\x65\x74\x55\x72\x6C\x50\x6F\x73\x74","\x77\x72\x69\x74\x65\x47\x72\x61\x70\x68\x4D\x6F\x64\x65\x6C","\x70\x6F\x73\x74\x44\x69\x61\x67\x72\x61\x6D","\x73\x77\x61\x70\x53\x74\x79\x6C\x65\x73","\x63\x72\x65\x61\x74\x65\x50\x72\x6F\x70\x65\x72\x74\x69\x65\x73","\x69\x73\x50\x72\x6F\x70\x65\x72\x74\x69\x65\x73\x56\x69\x73\x69\x62\x6C\x65","\x72\x65\x61\x64\x6F\x6E\x6C\x79","\x49\x44","\x53\x74\x79\x6C\x65","\x63\x72\x65\x61\x74\x65\x54\x61\x73\x6B\x73","\x72\x65\x66\x72\x65\x73\x68\x54\x61\x73\x6B\x73","\x66\x72\x61\x6D\x65\x42\x6F\x72\x64\x65\x72","\x63\x6F\x6E\x73\x75\x6D\x65\x43\x79\x63\x6C\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x63\x79\x63\x6C\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x69\x73\x43\x6F\x6E\x73\x74\x72\x61\x69\x6E\x65\x64\x4D\x6F\x76\x69\x6E\x67","\x63\x6F\x64\x65\x63\x73","\x74\x65\x6D\x70\x6C\x61\x74\x65","\x61\x64\x64\x41\x6C\x69\x61\x73","\x61\x6C\x69\x61\x73\x65\x73","\x72\x65\x67\x69\x73\x74\x65\x72","\x65\x6E\x63\x6F\x64\x65\x44\x65\x66\x61\x75\x6C\x74\x73","\x67\x65\x74\x4F\x62\x6A\x65\x63\x74","\x72\x65\x66\x65\x72\x65\x6E\x63\x65","\x67\x65\x74\x43\x6F\x64\x65\x63","\x69\x6D\x70\x6F\x72\x74\x4E\x6F\x64\x65","\x6D\x78\x43\x6F\x64\x65\x63\x2E\x65\x6E\x63\x6F\x64\x65\x3A\x20\x4E\x6F\x20\x63\x6F\x64\x65\x63\x20\x66\x6F\x72\x20","\x43\x61\x6E\x6E\x6F\x74\x20\x64\x65\x63\x6F\x64\x65\x20","\x65\x6E\x63\x6F\x64\x65\x43\x65\x6C\x6C","\x69\x73\x43\x65\x6C\x6C\x43\x6F\x64\x65\x63","\x64\x65\x63\x6F\x64\x65\x43\x65\x6C\x6C","\x69\x6E\x73\x65\x72\x74\x49\x6E\x74\x6F\x47\x72\x61\x70\x68","\x65\x78\x63\x6C\x75\x64\x65","\x69\x64\x72\x65\x66\x73","\x6D\x61\x70\x70\x69\x6E\x67","\x72\x65\x76\x65\x72\x73\x65","\x63\x6C\x6F\x6E\x65\x54\x65\x6D\x70\x6C\x61\x74\x65","\x67\x65\x74\x46\x69\x65\x6C\x64\x4E\x61\x6D\x65","\x67\x65\x74\x41\x74\x74\x72\x69\x62\x75\x74\x65\x4E\x61\x6D\x65","\x69\x73\x45\x78\x63\x6C\x75\x64\x65\x64","\x69\x73\x52\x65\x66\x65\x72\x65\x6E\x63\x65","\x62\x65\x66\x6F\x72\x65\x45\x6E\x63\x6F\x64\x65","\x65\x6E\x63\x6F\x64\x65\x4F\x62\x6A\x65\x63\x74","\x61\x66\x74\x65\x72\x45\x6E\x63\x6F\x64\x65","\x65\x6E\x63\x6F\x64\x65\x56\x61\x6C\x75\x65","\x6D\x78\x4F\x62\x6A\x65\x63\x74\x43\x6F\x64\x65\x63\x2E\x65\x6E\x63\x6F\x64\x65\x3A\x20\x4E\x6F\x20\x49\x44\x20\x66\x6F\x72\x20","\x77\x72\x69\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x77\x72\x69\x74\x65\x50\x72\x69\x6D\x69\x74\x69\x76\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x77\x72\x69\x74\x65\x43\x6F\x6D\x70\x6C\x65\x78\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x63\x6F\x6E\x76\x65\x72\x74\x56\x61\x6C\x75\x65\x54\x6F\x58\x6D\x6C","\x6D\x78\x4F\x62\x6A\x65\x63\x74\x43\x6F\x64\x65\x63\x2E\x65\x6E\x63\x6F\x64\x65\x3A\x20\x4E\x6F\x20\x6E\x6F\x64\x65\x20\x66\x6F\x72\x20","\x63\x6F\x6E\x76\x65\x72\x74\x56\x61\x6C\x75\x65\x46\x72\x6F\x6D\x58\x6D\x6C","\x62\x65\x66\x6F\x72\x65\x44\x65\x63\x6F\x64\x65","\x64\x65\x63\x6F\x64\x65\x4E\x6F\x64\x65","\x61\x66\x74\x65\x72\x44\x65\x63\x6F\x64\x65","\x64\x65\x63\x6F\x64\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x64\x65\x63\x6F\x64\x65\x43\x68\x69\x6C\x64\x72\x65\x6E","\x64\x65\x63\x6F\x64\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x6D\x78\x4F\x62\x6A\x65\x63\x74\x43\x6F\x64\x65\x63\x2E\x64\x65\x63\x6F\x64\x65\x3A\x20\x4E\x6F\x20\x6F\x62\x6A\x65\x63\x74\x20\x66\x6F\x72\x20","\x70\x72\x6F\x63\x65\x73\x73\x49\x6E\x63\x6C\x75\x64\x65","\x64\x65\x63\x6F\x64\x65\x43\x68\x69\x6C\x64","\x67\x65\x74\x46\x69\x65\x6C\x64\x54\x65\x6D\x70\x6C\x61\x74\x65","\x61\x64\x64\x4F\x62\x6A\x65\x63\x74\x56\x61\x6C\x75\x65","\x69\x6E\x63\x6C\x75\x64\x65","\x72\x65\x6D\x6F\x76\x65\x57\x68\x69\x74\x65\x73\x70\x61\x63\x65","\x64\x65\x63\x6F\x64\x65\x52\x6F\x6F\x74","\x67\x72\x61\x70\x68\x4C\x69\x73\x74\x65\x6E\x65\x72\x73\x20\x65\x76\x65\x6E\x74\x4C\x69\x73\x74\x65\x6E\x65\x72\x73\x20\x76\x69\x65\x77\x20\x63\x6F\x6E\x74\x61\x69\x6E\x65\x72\x20\x63\x65\x6C\x6C\x52\x65\x6E\x64\x65\x72\x65\x72\x20\x65\x64\x69\x74\x6F\x72\x20\x73\x65\x6C\x65\x63\x74\x69\x6F\x6E","\x6C\x61\x79\x65\x72","\x67\x65\x74\x53\x74\x72\x69\x6E\x67\x56\x61\x6C\x75\x65","\x6D\x78\x53\x74\x79\x6C\x65\x73\x68\x65\x65\x74\x43\x6F\x64\x65\x63\x2E\x64\x65\x63\x6F\x64\x65\x3A\x20\x73\x74\x79\x6C\x65\x73\x68\x65\x65\x74\x20","\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64\x20\x74\x6F\x20\x65\x78\x74\x65\x6E\x64","\x70\x72\x65\x73\x73\x65\x64\x49\x63\x6F\x6E","\x6D\x6F\x64\x65","\x74\x6F\x67\x67\x6C\x65","\x2D\x2D\x2D","\x63\x65\x6C\x6C\x53\x74\x79\x6C\x65","\x54\x65\x6D\x70\x6C\x61\x74\x65\x20","\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x6D\x6F\x64\x69\x66\x69\x65\x64\x20\x6C\x61\x73\x74\x53\x6E\x61\x70\x73\x68\x6F\x74\x20\x69\x67\x6E\x6F\x72\x65\x64\x43\x68\x61\x6E\x67\x65\x73\x20\x75\x6E\x64\x6F\x4D\x61\x6E\x61\x67\x65\x72\x20\x67\x72\x61\x70\x68\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72\x20\x74\x6F\x6F\x6C\x62\x61\x72\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x41\x72\x72\x61\x79","\x64\x65\x63\x6F\x64\x65\x54\x65\x6D\x70\x6C\x61\x74\x65\x73","\x75\x69","\x64\x65\x63\x6F\x64\x65\x55\x69","\x73\x65\x74\x4D\x61\x70\x43\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x72\x65\x73\x6F\x75\x72\x63\x65","\x62\x61\x73\x65\x6E\x61\x6D\x65"];var mxClient={VERSION:_0x5b48[0],IS_IE:0<= navigator[_0x5b48[3]][_0x5b48[2]](_0x5b48[1]),IS_IE6:0<= navigator[_0x5b48[3]][_0x5b48[2]](_0x5b48[4]),IS_QUIRKS:0<= navigator[_0x5b48[3]][_0x5b48[2]](_0x5b48[1])&& (null== document[_0x5b48[5]]|| 5== document[_0x5b48[5]]),VML_PREFIX:_0x5b48[6],OFFICE_PREFIX:_0x5b48[7],IS_NS:0<= navigator[_0x5b48[3]][_0x5b48[2]](_0x5b48[8])&& 0> navigator[_0x5b48[3]][_0x5b48[2]](_0x5b48[1]),IS_OP:0<= navigator[_0x5b48[3]][_0x5b48[2]](_0x5b48[9]),IS_OT:0> navigator[_0x5b48[3]][_0x5b48[2]](_0x5b48[10])&& 0> navigator[_0x5b48[3]][_0x5b48[2]](_0x5b48[11])&& 0> navigator[_0x5b48[3]][_0x5b48[2]](_0x5b48[12])&& 0> navigator[_0x5b48[3]][_0x5b48[2]](_0x5b48[13])&& 0> navigator[_0x5b48[3]][_0x5b48[2]](_0x5b48[14])&& 0> navigator[_0x5b48[3]][_0x5b48[2]](_0x5b48[15]),IS_SF:0<= navigator[_0x5b48[3]][_0x5b48[2]](_0x5b48[16])&& 0> navigator[_0x5b48[3]][_0x5b48[2]](_0x5b48[17]),IS_GC:0<= navigator[_0x5b48[3]][_0x5b48[2]](_0x5b48[17]),IS_MT:0<= navigator[_0x5b48[3]][_0x5b48[2]](_0x5b48[18])&& 0> navigator[_0x5b48[3]][_0x5b48[2]](_0x5b48[19])&& 0> navigator[_0x5b48[3]][_0x5b48[2]](_0x5b48[20])|| 0<= navigator[_0x5b48[3]][_0x5b48[2]](_0x5b48[21])&& 0> navigator[_0x5b48[3]][_0x5b48[2]](_0x5b48[22])&& 0> navigator[_0x5b48[3]][_0x5b48[2]](_0x5b48[23])|| 0<= navigator[_0x5b48[3]][_0x5b48[2]](_0x5b48[24])&& 0> navigator[_0x5b48[3]][_0x5b48[2]](_0x5b48[25])|| 0<= navigator[_0x5b48[3]][_0x5b48[2]](_0x5b48[26])&& 0> navigator[_0x5b48[3]][_0x5b48[2]](_0x5b48[27]),IS_SVG:0<= navigator[_0x5b48[3]][_0x5b48[2]](_0x5b48[18])|| 0<= navigator[_0x5b48[3]][_0x5b48[2]](_0x5b48[21])|| 0<= navigator[_0x5b48[3]][_0x5b48[2]](_0x5b48[28])|| 0<= navigator[_0x5b48[3]][_0x5b48[2]](_0x5b48[26])|| 0<= navigator[_0x5b48[3]][_0x5b48[2]](_0x5b48[29])|| 0<= navigator[_0x5b48[3]][_0x5b48[2]](_0x5b48[30])|| 0<= navigator[_0x5b48[3]][_0x5b48[2]](_0x5b48[16])|| 0<= navigator[_0x5b48[3]][_0x5b48[2]](_0x5b48[31])|| 0<= navigator[_0x5b48[3]][_0x5b48[2]](_0x5b48[9]),NO_FO:0<= navigator[_0x5b48[3]][_0x5b48[2]](_0x5b48[19])|| 0<= navigator[_0x5b48[3]][_0x5b48[2]](_0x5b48[22])|| 0<= navigator[_0x5b48[3]][_0x5b48[2]](_0x5b48[20])|| 0<= navigator[_0x5b48[3]][_0x5b48[2]](_0x5b48[23])|| 0<= navigator[_0x5b48[3]][_0x5b48[2]](_0x5b48[25])|| 0<= navigator[_0x5b48[3]][_0x5b48[2]](_0x5b48[27])|| 0<= navigator[_0x5b48[3]][_0x5b48[2]](_0x5b48[32])|| 0<= navigator[_0x5b48[3]][_0x5b48[2]](_0x5b48[33])|| 0<= navigator[_0x5b48[3]][_0x5b48[2]](_0x5b48[9])|| 0<= navigator[_0x5b48[3]][_0x5b48[2]](_0x5b48[1])|| 0<= navigator[_0x5b48[3]][_0x5b48[2]](_0x5b48[34]),IS_VML:_0x5b48[35]== navigator[_0x5b48[37]][_0x5b48[36]](),IS_MAC:0< navigator[_0x5b48[3]][_0x5b48[36]]()[_0x5b48[2]](_0x5b48[38]),IS_TOUCH:0< navigator[_0x5b48[3]][_0x5b48[36]]()[_0x5b48[2]](_0x5b48[39])|| 0< navigator[_0x5b48[3]][_0x5b48[36]]()[_0x5b48[2]](_0x5b48[40])|| 0< navigator[_0x5b48[3]][_0x5b48[36]]()[_0x5b48[2]](_0x5b48[41])|| 0< navigator[_0x5b48[3]][_0x5b48[36]]()[_0x5b48[2]](_0x5b48[42]),IS_LOCAL:0> document[_0x5b48[45]][_0x5b48[44]][_0x5b48[2]](_0x5b48[43])&& 0> document[_0x5b48[45]][_0x5b48[44]][_0x5b48[2]](_0x5b48[46]),isBrowserSupported:function(){return mxClient[_0x5b48[47]]|| mxClient[_0x5b48[48]]},link:function(_0x43b0x2,_0x43b0x3,_0x43b0x4){_0x43b0x4= _0x43b0x4|| document;if(mxClient[_0x5b48[49]]){_0x43b0x4[_0x5b48[53]](_0x5b48[50]+ _0x43b0x2+ _0x5b48[51]+ _0x43b0x3+ _0x5b48[52])}else {var _0x43b0x5=_0x43b0x4[_0x5b48[55]](_0x5b48[54]);_0x43b0x5[_0x5b48[57]](_0x5b48[56],_0x43b0x2);_0x43b0x5[_0x5b48[57]](_0x5b48[44],_0x43b0x3);_0x43b0x5[_0x5b48[57]](_0x5b48[58],_0x5b48[59]);_0x43b0x5[_0x5b48[57]](_0x5b48[60],_0x5b48[61]);_0x43b0x4[_0x5b48[64]](_0x5b48[63])[0][_0x5b48[62]](_0x43b0x5)}},include:function(_0x43b0x2){document[_0x5b48[53]](_0x5b48[65]+ _0x43b0x2+ _0x5b48[66])},dispose:function(){for(var _0x43b0x2=0;_0x43b0x2< mxEvent[_0x5b48[68]][_0x5b48[67]];_0x43b0x2++){null!= mxEvent[_0x5b48[68]][_0x43b0x2][_0x5b48[69]]&& mxEvent[_0x5b48[70]](mxEvent[_0x5b48[68]][_0x43b0x2])}}};mxClient[_0x5b48[71]]&& mxClient[_0x5b48[72]]?mxClient[_0x5b48[73]]= _0x5b48[74]:mxClient[_0x5b48[75]]|| mxClient[_0x5b48[76]]?mxClient[_0x5b48[73]]= _0x5b48[77]:mxClient[_0x5b48[78]]?mxClient[_0x5b48[73]]= _0x5b48[79]:mxClient[_0x5b48[80]]&& 9<= document[_0x5b48[5]]&& (mxClient[_0x5b48[73]]= _0x5b48[81]);_0x5b48[82]== typeof mxLoadResources&& (mxLoadResources= !0);_0x5b48[82]== typeof mxResourceExtension&& (mxResourceExtension= _0x5b48[83]);_0x5b48[82]== typeof mxLoadStylesheets&& (mxLoadStylesheets= !0);_0x5b48[82]!= typeof mxBasePath&& 0< mxBasePath[_0x5b48[67]]?(_0x5b48[84]== mxBasePath[_0x5b48[85]](mxBasePath[_0x5b48[67]]- 1)&& (mxBasePath= mxBasePath[_0x5b48[85]](0,mxBasePath[_0x5b48[67]]- 1)),mxClient[_0x5b48[86]]= mxBasePath):mxClient[_0x5b48[86]]= _0x5b48[87];_0x5b48[82]!= typeof mxImageBasePath&& 0< mxImageBasePath[_0x5b48[67]]?(_0x5b48[84]== mxImageBasePath[_0x5b48[85]](mxImageBasePath[_0x5b48[67]]- 1)&& (mxImageBasePath= mxImageBasePath[_0x5b48[85]](0,mxImageBasePath[_0x5b48[67]]- 1)),mxClient[_0x5b48[88]]= mxImageBasePath):mxClient[_0x5b48[88]]= mxClient[_0x5b48[86]]+ _0x5b48[89];mxClient[_0x5b48[90]]= _0x5b48[82]!= typeof mxLanguage?mxLanguage:mxClient[_0x5b48[80]]?navigator[_0x5b48[91]]:navigator[_0x5b48[90]];mxClient[_0x5b48[92]]= _0x5b48[82]!= typeof mxDefaultLanguage?mxDefaultLanguage:_0x5b48[93];mxLoadStylesheets&& mxClient[_0x5b48[54]](_0x5b48[94],mxClient[_0x5b48[86]]+ _0x5b48[95]);_0x5b48[82]!= typeof mxLanguages&& (mxClient[_0x5b48[96]]= mxLanguages);if(mxClient[_0x5b48[80]]){if(9<= document[_0x5b48[5]]){mxClient[_0x5b48[47]]= !1,mxClient[_0x5b48[48]]= !0}else {8== document[_0x5b48[5]]?(document[_0x5b48[100]][_0x5b48[99]](mxClient.VML_PREFIX,_0x5b48[97],_0x5b48[98]),document[_0x5b48[100]][_0x5b48[99]](mxClient.OFFICE_PREFIX,_0x5b48[101],_0x5b48[98])):(document[_0x5b48[100]][_0x5b48[99]](mxClient.VML_PREFIX,_0x5b48[97]),document[_0x5b48[100]][_0x5b48[99]](mxClient.OFFICE_PREFIX,_0x5b48[101]));var ss=document[_0x5b48[102]]();ss[_0x5b48[103]]= _0x5b48[104];mxLoadStylesheets&& mxClient[_0x5b48[54]](_0x5b48[94],mxClient[_0x5b48[86]]+ _0x5b48[105])};window[_0x5b48[108]](_0x5b48[106],mxClient[_0x5b48[107]])};var mxLog={consoleName:_0x5b48[109],TRACE:!1,DEBUG:!0,WARN:!0,buffer:_0x5b48[110],init:function(){if(null== mxLog[_0x5b48[111]]&& null!= document[_0x5b48[112]]){var _0x43b0x2=mxLog[_0x5b48[113]]+ _0x5b48[114]+ mxClient[_0x5b48[115]],_0x43b0x3=document[_0x5b48[55]](_0x5b48[116]);_0x43b0x3[_0x5b48[57]](_0x5b48[117],_0x5b48[118]);_0x43b0x3[_0x5b48[57]](_0x5b48[119],_0x5b48[118]);var _0x43b0x4=document[_0x5b48[55]](_0x5b48[120]),_0x43b0x5=document[_0x5b48[55]](_0x5b48[121]),_0x43b0x9=document[_0x5b48[55]](_0x5b48[122]);_0x43b0x9[_0x5b48[124]][_0x5b48[123]]= _0x5b48[125];mxLog[_0x5b48[126]]= document[_0x5b48[55]](_0x5b48[126]);mxLog[_0x5b48[126]][_0x5b48[57]](_0x5b48[127],_0x5b48[128]);mxLog[_0x5b48[126]][_0x5b48[124]][_0x5b48[119]]= _0x5b48[118];mxLog[_0x5b48[126]][_0x5b48[124]][_0x5b48[129]]= _0x5b48[130];mxLog[_0x5b48[126]][_0x5b48[131]]= mxLog[_0x5b48[132]];mxLog[_0x5b48[126]][_0x5b48[124]][_0x5b48[117]]= mxClient[_0x5b48[133]]&& _0x5b48[134]!= document[_0x5b48[135]]?_0x5b48[136]:_0x5b48[118];_0x43b0x9[_0x5b48[62]](mxLog[_0x5b48[126]]);_0x43b0x5[_0x5b48[62]](_0x43b0x9);_0x43b0x4[_0x5b48[62]](_0x43b0x5);_0x43b0x5= document[_0x5b48[55]](_0x5b48[121]);mxLog[_0x5b48[122]]= document[_0x5b48[55]](_0x5b48[122]);mxLog[_0x5b48[122]][_0x5b48[124]][_0x5b48[123]]= _0x5b48[125];mxLog[_0x5b48[122]][_0x5b48[57]](_0x5b48[119],_0x5b48[137]);_0x43b0x5[_0x5b48[62]](mxLog[_0x5b48[122]]);_0x43b0x4[_0x5b48[62]](_0x43b0x5);_0x43b0x3[_0x5b48[62]](_0x43b0x4);mxLog[_0x5b48[140]](_0x5b48[138],function(_0x43b0x2){mxLog[_0x5b48[139]]()});mxLog[_0x5b48[140]](_0x5b48[141],function(_0x43b0x2){_0x43b0x2= mxUtils[_0x5b48[142]](document[_0x5b48[112]]);mxLog[_0x5b48[143]](_0x43b0x2)});mxLog[_0x5b48[140]](_0x5b48[144],function(_0x43b0x2){mxLog[_0x5b48[145]]= !mxLog[_0x5b48[145]];mxLog[_0x5b48[145]]?mxLog[_0x5b48[143]](_0x5b48[146]):mxLog[_0x5b48[143]](_0x5b48[147])});mxLog[_0x5b48[140]](_0x5b48[148],function(_0x43b0x2){try{mxUtils[_0x5b48[149]](mxLog[_0x5b48[126]][_0x5b48[131]])}catch(_0x43b0x3){mxUtils[_0x5b48[150]](_0x43b0x3)}});mxLog[_0x5b48[140]](_0x5b48[151],function(_0x43b0x2){try{mxUtils[_0x5b48[152]](mxLog[_0x5b48[126]][_0x5b48[131]])}catch(_0x43b0x3){mxUtils[_0x5b48[150]](_0x43b0x3)}});mxLog[_0x5b48[140]](_0x5b48[153],function(_0x43b0x2){mxLog[_0x5b48[126]][_0x5b48[131]]= _0x5b48[110]});_0x43b0x5= _0x43b0x4= 0;_0x5b48[154]=== typeof window[_0x5b48[155]]?(_0x43b0x4= window[_0x5b48[156]],_0x43b0x5= window[_0x5b48[155]]):(_0x43b0x4= document[_0x5b48[158]][_0x5b48[157]]|| document[_0x5b48[112]][_0x5b48[157]],_0x43b0x5= document[_0x5b48[112]][_0x5b48[159]]);mxLog[_0x5b48[111]]= new mxWindow(_0x43b0x2,_0x43b0x3,Math[_0x5b48[160]](0,_0x43b0x5- 320),Math[_0x5b48[160]](0,_0x43b0x4- 210),300,160);mxLog[_0x5b48[111]][_0x5b48[161]](!0);mxLog[_0x5b48[111]][_0x5b48[162]](!1);mxLog[_0x5b48[111]][_0x5b48[163]](!0);mxLog[_0x5b48[111]][_0x5b48[164]](!0);mxLog[_0x5b48[111]][_0x5b48[165]]= !1;if((mxClient[_0x5b48[133]]|| mxClient[_0x5b48[80]])&& !mxClient[_0x5b48[76]]&& !mxClient[_0x5b48[75]]&& _0x5b48[134]!= document[_0x5b48[135]]){var _0x43b0xa=mxLog[_0x5b48[111]][_0x5b48[166]](),_0x43b0x2=function(_0x43b0x2,_0x43b0x3){mxLog[_0x5b48[126]][_0x5b48[124]][_0x5b48[119]]= Math[_0x5b48[160]](0,_0x43b0xa[_0x5b48[167]]- 70)+ _0x5b48[168]};mxLog[_0x5b48[111]][_0x5b48[169]](mxEvent.RESIZE_END,_0x43b0x2);mxLog[_0x5b48[111]][_0x5b48[169]](mxEvent.MAXIMIZE,_0x43b0x2);mxLog[_0x5b48[111]][_0x5b48[169]](mxEvent.NORMALIZE,_0x43b0x2);mxLog[_0x5b48[126]][_0x5b48[124]][_0x5b48[119]]= _0x5b48[170]}}},info:function(){mxLog[_0x5b48[171]](mxUtils.toString(navigator))},addButton:function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=document[_0x5b48[55]](_0x5b48[172]);mxUtils[_0x5b48[53]](_0x43b0x4,_0x43b0x2);mxEvent[_0x5b48[169]](_0x43b0x4,_0x5b48[173],_0x43b0x3);mxLog[_0x5b48[122]][_0x5b48[62]](_0x43b0x4)},isVisible:function(){return null!= mxLog[_0x5b48[111]]?mxLog[_0x5b48[111]][_0x5b48[174]]():!1},show:function(){mxLog[_0x5b48[175]](!0)},setVisible:function(_0x43b0x2){null== mxLog[_0x5b48[111]]&& mxLog[_0x5b48[176]]();null!= mxLog[_0x5b48[111]]&& mxLog[_0x5b48[111]][_0x5b48[175]](_0x43b0x2)},enter:function(_0x43b0x2){if(mxLog[_0x5b48[145]]){return mxLog[_0x5b48[171]](_0x5b48[177]+ _0x43b0x2),( new Date)[_0x5b48[178]]()}},leave:function(_0x43b0x2,_0x43b0x3){if(mxLog[_0x5b48[145]]){var _0x43b0x4=0!= _0x43b0x3?_0x5b48[179]+ (( new Date)[_0x5b48[178]]()- _0x43b0x3)+ _0x5b48[180]:_0x5b48[110];mxLog[_0x5b48[171]](_0x5b48[181]+ _0x43b0x2+ _0x43b0x4)}},debug:function(){mxLog[_0x5b48[182]]&& mxLog[_0x5b48[171]][_0x5b48[183]](this,arguments)},warn:function(){mxLog[_0x5b48[184]]&& mxLog[_0x5b48[171]][_0x5b48[183]](this,arguments)},write:function(){for(var _0x43b0x2=_0x5b48[110],_0x43b0x3=0;_0x43b0x3< arguments[_0x5b48[67]];_0x43b0x3++){_0x43b0x2+= arguments[_0x43b0x3],_0x43b0x3< arguments[_0x5b48[67]]- 1&& (_0x43b0x2+= _0x5b48[185])};null!= mxLog[_0x5b48[126]]?(mxLog[_0x5b48[126]][_0x5b48[131]]+= _0x43b0x2,0<= navigator[_0x5b48[3]][_0x5b48[2]](_0x5b48[186])&& (mxLog[_0x5b48[126]][_0x5b48[124]][_0x5b48[187]]= _0x5b48[188],mxLog[_0x5b48[126]][_0x5b48[124]][_0x5b48[187]]= _0x5b48[189]),mxLog[_0x5b48[126]][_0x5b48[190]]= mxLog[_0x5b48[126]][_0x5b48[191]]):mxLog[_0x5b48[132]]+= _0x43b0x2},writeln:function(){for(var _0x43b0x2=_0x5b48[110],_0x43b0x3=0;_0x43b0x3< arguments[_0x5b48[67]];_0x43b0x3++){_0x43b0x2+= arguments[_0x43b0x3],_0x43b0x3< arguments[_0x5b48[67]]- 1&& (_0x43b0x2+= _0x5b48[185])};mxLog[_0x5b48[53]](_0x43b0x2+ _0x5b48[192])}},mxObjectIdentity={FIELD_NAME:_0x5b48[193],counter:0,get:function(_0x43b0x2){if(_0x5b48[194]== typeof _0x43b0x2&& null== _0x43b0x2[mxObjectIdentity[_0x5b48[195]]]){var _0x43b0x3=mxUtils[_0x5b48[197]](_0x43b0x2[_0x5b48[196]]);_0x43b0x2[mxObjectIdentity[_0x5b48[195]]]= _0x43b0x3+ _0x5b48[198]+ mxObjectIdentity[_0x5b48[199]]++};return _0x43b0x2[mxObjectIdentity[_0x5b48[195]]]},clear:function(_0x43b0x2){_0x5b48[194]== typeof _0x43b0x2&& delete _0x43b0x2[mxObjectIdentity[_0x5b48[195]]]}};function mxDictionary(){this[_0x5b48[200]]()}mxDictionary[_0x5b48[202]][_0x5b48[201]]= null;mxDictionary[_0x5b48[202]][_0x5b48[200]]= function(){this[_0x5b48[201]]= {}};mxDictionary[_0x5b48[202]][_0x5b48[203]]= function(_0x43b0x2){_0x43b0x2= mxObjectIdentity[_0x5b48[203]](_0x43b0x2);return this[_0x5b48[201]][_0x43b0x2]};mxDictionary[_0x5b48[202]][_0x5b48[204]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=mxObjectIdentity[_0x5b48[203]](_0x43b0x2),_0x43b0x5=this[_0x5b48[201]][_0x43b0x4];this[_0x5b48[201]][_0x43b0x4]= _0x43b0x3;return _0x43b0x5};mxDictionary[_0x5b48[202]][_0x5b48[205]]= function(_0x43b0x2){_0x43b0x2= mxObjectIdentity[_0x5b48[203]](_0x43b0x2);var _0x43b0x3=this[_0x5b48[201]][_0x43b0x2];delete this[_0x5b48[201]][_0x43b0x2];return _0x43b0x3};mxDictionary[_0x5b48[202]][_0x5b48[206]]= function(){var _0x43b0x2=[],_0x43b0x3;for(_0x43b0x3 in this[_0x5b48[201]]){_0x43b0x2[_0x5b48[207]](_0x43b0x3)};return _0x43b0x2};mxDictionary[_0x5b48[202]][_0x5b48[208]]= function(){var _0x43b0x2=[],_0x43b0x3;for(_0x43b0x3 in this[_0x5b48[201]]){_0x43b0x2[_0x5b48[207]](this[_0x5b48[201]][_0x43b0x3])};return _0x43b0x2};mxDictionary[_0x5b48[202]][_0x5b48[209]]= function(_0x43b0x2){for(var _0x43b0x3 in this[_0x5b48[201]]){_0x43b0x2(_0x43b0x3,this[_0x5b48[201]][_0x43b0x3])}};var mxResources={resources:[],extension:mxResourceExtension,resourcesEncoded:!1,loadDefaultBundle:!0,loadSpecialBundle:!0,isLanguageSupported:function(_0x43b0x2){return null!= mxClient[_0x5b48[96]]?0<= mxUtils[_0x5b48[2]](mxClient[_0x5b48[96]],_0x43b0x2):!0},getDefaultBundle:function(_0x43b0x2,_0x43b0x3){return mxResources[_0x5b48[210]]|| !mxResources[_0x5b48[211]](_0x43b0x3)?_0x43b0x2+ mxResources[_0x5b48[212]]:null},getSpecialBundle:function(_0x43b0x2,_0x43b0x3){if(null== mxClient[_0x5b48[96]]|| !this[_0x5b48[211]](_0x43b0x3)){var _0x43b0x4=_0x43b0x3[_0x5b48[2]](_0x5b48[213]);0< _0x43b0x4&& (_0x43b0x3= _0x43b0x3[_0x5b48[85]](0,_0x43b0x4))};return mxResources[_0x5b48[214]]&& mxResources[_0x5b48[211]](_0x43b0x3)&& _0x43b0x3!= mxClient[_0x5b48[92]]?_0x43b0x2+ _0x5b48[215]+ _0x43b0x3+ mxResources[_0x5b48[212]]:null},add:function(_0x43b0x2,_0x43b0x3){_0x43b0x3= null!= _0x43b0x3?_0x43b0x3:mxClient[_0x5b48[90]][_0x5b48[216]]();if(_0x43b0x3!= mxConstants[_0x5b48[217]]){var _0x43b0x4=mxResources[_0x5b48[218]](_0x43b0x2,_0x43b0x3);if(null!= _0x43b0x4){try{var _0x43b0x5=mxUtils[_0x5b48[219]](_0x43b0x4);_0x43b0x5[_0x5b48[220]]()&& mxResources[_0x5b48[222]](_0x43b0x5[_0x5b48[221]]())}catch(e){}};_0x43b0x4= mxResources[_0x5b48[223]](_0x43b0x2,_0x43b0x3);if(null!= _0x43b0x4){try{_0x43b0x5= mxUtils[_0x5b48[219]](_0x43b0x4),_0x43b0x5[_0x5b48[220]]()&& mxResources[_0x5b48[222]](_0x43b0x5[_0x5b48[221]]())}catch(f){}}}},parse:function(_0x43b0x2){if(null!= _0x43b0x2){_0x43b0x2= _0x43b0x2[_0x5b48[224]](_0x5b48[192]);for(var _0x43b0x3=0;_0x43b0x3< _0x43b0x2[_0x5b48[67]];_0x43b0x3++){if(_0x5b48[198]!= _0x43b0x2[_0x43b0x3][_0x5b48[225]](0)){var _0x43b0x4=_0x43b0x2[_0x43b0x3][_0x5b48[2]](_0x5b48[226]);if(0< _0x43b0x4){var _0x43b0x5=_0x43b0x2[_0x43b0x3][_0x5b48[85]](0,_0x43b0x4),_0x43b0x9=_0x43b0x2[_0x43b0x3][_0x5b48[67]];13== _0x43b0x2[_0x43b0x3][_0x5b48[227]](_0x43b0x9- 1)&& _0x43b0x9--;_0x43b0x4= _0x43b0x2[_0x43b0x3][_0x5b48[85]](_0x43b0x4+ 1,_0x43b0x9);this[_0x5b48[228]]?(_0x43b0x4= _0x43b0x4[_0x5b48[230]](/\\(?=u[a-fA-F\d]{4})/g,_0x5b48[229]),mxResources[_0x5b48[231]][_0x43b0x5]= unescape(_0x43b0x4)):mxResources[_0x5b48[231]][_0x43b0x5]= _0x43b0x4}}}}},get:function(_0x43b0x2,_0x43b0x3,_0x43b0x4){_0x43b0x2= mxResources[_0x5b48[231]][_0x43b0x2];null== _0x43b0x2&& (_0x43b0x2= _0x43b0x4);if(null!= _0x43b0x2&& null!= _0x43b0x3){_0x43b0x4= [];for(var _0x43b0x5=null,_0x43b0x9=0;_0x43b0x9< _0x43b0x2[_0x5b48[67]];_0x43b0x9++){var _0x43b0xa=_0x43b0x2[_0x5b48[225]](_0x43b0x9);_0x5b48[232]== _0x43b0xa?_0x43b0x5= _0x5b48[110]:null!= _0x43b0x5&& _0x5b48[233]== _0x43b0xa?(_0x43b0x5= parseInt(_0x43b0x5)- 1,0<= _0x43b0x5&& _0x43b0x5< _0x43b0x3[_0x5b48[67]]&& _0x43b0x4[_0x5b48[207]](_0x43b0x3[_0x43b0x5]),_0x43b0x5= null):null!= _0x43b0x5?_0x43b0x5+= _0x43b0xa:_0x43b0x4[_0x5b48[207]](_0x43b0xa)};_0x43b0x2= _0x43b0x4[_0x5b48[234]](_0x5b48[110])};return _0x43b0x2}};function mxPoint(_0x43b0x2,_0x43b0x3){this[_0x5b48[235]]= null!= _0x43b0x2?_0x43b0x2:0;this[_0x5b48[236]]= null!= _0x43b0x3?_0x43b0x3:0}mxPoint[_0x5b48[202]][_0x5b48[235]]= null;mxPoint[_0x5b48[202]][_0x5b48[236]]= null;mxPoint[_0x5b48[202]][_0x5b48[237]]= function(_0x43b0x2){return _0x43b0x2[_0x5b48[235]]== this[_0x5b48[235]]&& _0x43b0x2[_0x5b48[236]]== this[_0x5b48[236]]};mxPoint[_0x5b48[202]][_0x5b48[238]]= function(){return mxUtils[_0x5b48[238]](this)};function mxRectangle(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){mxPoint[_0x5b48[239]](this,_0x43b0x2,_0x43b0x3);this[_0x5b48[117]]= null!= _0x43b0x4?_0x43b0x4:0;this[_0x5b48[119]]= null!= _0x43b0x5?_0x43b0x5:0}mxRectangle[_0x5b48[202]]= new mxPoint;mxRectangle[_0x5b48[202]][_0x5b48[196]]= mxRectangle;mxRectangle[_0x5b48[202]][_0x5b48[117]]= null;mxRectangle[_0x5b48[202]][_0x5b48[119]]= null;mxRectangle[_0x5b48[202]][_0x5b48[240]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){this[_0x5b48[235]]= _0x43b0x2;this[_0x5b48[236]]= _0x43b0x3;this[_0x5b48[117]]= _0x43b0x4;this[_0x5b48[119]]= _0x43b0x5};mxRectangle[_0x5b48[202]][_0x5b48[241]]= function(){return this[_0x5b48[235]]+ this[_0x5b48[117]]/ 2};mxRectangle[_0x5b48[202]][_0x5b48[242]]= function(){return this[_0x5b48[236]]+ this[_0x5b48[119]]/ 2};mxRectangle[_0x5b48[202]][_0x5b48[99]]= function(_0x43b0x2){if(null!= _0x43b0x2){var _0x43b0x3=Math[_0x5b48[243]](this[_0x5b48[235]],_0x43b0x2[_0x5b48[235]]),_0x43b0x4=Math[_0x5b48[243]](this[_0x5b48[236]],_0x43b0x2[_0x5b48[236]]),_0x43b0x5=Math[_0x5b48[160]](this[_0x5b48[235]]+ this[_0x5b48[117]],_0x43b0x2[_0x5b48[235]]+ _0x43b0x2[_0x5b48[117]]);_0x43b0x2= Math[_0x5b48[160]](this[_0x5b48[236]]+ this[_0x5b48[119]],_0x43b0x2[_0x5b48[236]]+ _0x43b0x2[_0x5b48[119]]);this[_0x5b48[235]]= _0x43b0x3;this[_0x5b48[236]]= _0x43b0x4;this[_0x5b48[117]]= _0x43b0x5- _0x43b0x3;this[_0x5b48[119]]= _0x43b0x2- _0x43b0x4}};mxRectangle[_0x5b48[202]][_0x5b48[244]]= function(_0x43b0x2){this[_0x5b48[235]]-= _0x43b0x2;this[_0x5b48[236]]-= _0x43b0x2;this[_0x5b48[117]]+= 2* _0x43b0x2;this[_0x5b48[119]]+= 2* _0x43b0x2};mxRectangle[_0x5b48[202]][_0x5b48[245]]= function(){return new mxPoint(this[_0x5b48[235]],this[_0x5b48[236]])};mxRectangle[_0x5b48[202]][_0x5b48[237]]= function(_0x43b0x2){return _0x43b0x2[_0x5b48[235]]== this[_0x5b48[235]]&& _0x43b0x2[_0x5b48[236]]== this[_0x5b48[236]]&& _0x43b0x2[_0x5b48[117]]== this[_0x5b48[117]]&& _0x43b0x2[_0x5b48[119]]== this[_0x5b48[119]]};var mxEffects={animateChanges:function(_0x43b0x2,_0x43b0x3,_0x43b0x4){var _0x43b0x5=0,_0x43b0x9=function(){for(var _0x43b0x12=!1,_0x43b0x13=0;_0x43b0x13< _0x43b0x3[_0x5b48[67]];_0x43b0x13++){var _0x43b0x14=_0x43b0x3[_0x43b0x13];if(_0x43b0x14 instanceof mxGeometryChange|| _0x43b0x14 instanceof mxTerminalChange|| _0x43b0x14 instanceof mxValueChange|| _0x43b0x14 instanceof mxChildChange|| _0x43b0x14 instanceof mxStyleChange){var _0x43b0x15=_0x43b0x2[_0x5b48[249]]()[_0x5b48[248]](_0x43b0x14[_0x5b48[246]]|| _0x43b0x14[_0x5b48[247]],!1);if(null!= _0x43b0x15){if(_0x43b0x12= !0,_0x43b0x14[_0x5b48[196]]!= mxGeometryChange|| _0x43b0x2[_0x5b48[251]][_0x5b48[250]](_0x43b0x14[_0x5b48[246]])){mxUtils[_0x5b48[254]](_0x43b0x15[_0x5b48[253]][_0x5b48[252]],100* _0x43b0x5/ 10)}else {var _0x43b0x16=_0x43b0x2[_0x5b48[249]]()[_0x5b48[255]],_0x43b0x17=(_0x43b0x14[_0x5b48[256]][_0x5b48[235]]- _0x43b0x14[_0x5b48[257]][_0x5b48[235]])* _0x43b0x16,_0x43b0x18=(_0x43b0x14[_0x5b48[256]][_0x5b48[236]]- _0x43b0x14[_0x5b48[257]][_0x5b48[236]])* _0x43b0x16,_0x43b0x19=(_0x43b0x14[_0x5b48[256]][_0x5b48[117]]- _0x43b0x14[_0x5b48[257]][_0x5b48[117]])* _0x43b0x16,_0x43b0x16=(_0x43b0x14[_0x5b48[256]][_0x5b48[119]]- _0x43b0x14[_0x5b48[257]][_0x5b48[119]])* _0x43b0x16;0== _0x43b0x5?(_0x43b0x15[_0x5b48[235]]-= _0x43b0x17,_0x43b0x15[_0x5b48[236]]-= _0x43b0x18,_0x43b0x15[_0x5b48[117]]-= _0x43b0x19,_0x43b0x15[_0x5b48[119]]-= _0x43b0x16):(_0x43b0x15[_0x5b48[235]]+= _0x43b0x17/ 10,_0x43b0x15[_0x5b48[236]]+= _0x43b0x18/ 10,_0x43b0x15[_0x5b48[117]]+= _0x43b0x19/ 10,_0x43b0x15[_0x5b48[119]]+= _0x43b0x16/ 10);_0x43b0x2[_0x5b48[259]][_0x5b48[258]](_0x43b0x15);mxEffects[_0x5b48[260]](_0x43b0x2,_0x43b0x14[_0x5b48[246]],100* _0x43b0x5/ 10)}}}};10> _0x43b0x5&& _0x43b0x12?(_0x43b0x5++,window[_0x5b48[261]](_0x43b0x9,_0x43b0xa)):null!= _0x43b0x4&& _0x43b0x4()},_0x43b0xa=30;_0x43b0x9()},cascadeOpacity:function(_0x43b0x2,_0x43b0x3,_0x43b0x4){for(var _0x43b0x5=_0x43b0x2[_0x5b48[251]][_0x5b48[262]](_0x43b0x3),_0x43b0x9=0;_0x43b0x9< _0x43b0x5;_0x43b0x9++){var _0x43b0xa=_0x43b0x2[_0x5b48[251]][_0x5b48[263]](_0x43b0x3,_0x43b0x9),_0x43b0x12=_0x43b0x2[_0x5b48[249]]()[_0x5b48[248]](_0x43b0xa);null!= _0x43b0x12&& (mxUtils[_0x5b48[254]](_0x43b0x12[_0x5b48[253]][_0x5b48[252]],_0x43b0x4),mxEffects[_0x5b48[260]](_0x43b0x2,_0x43b0xa,_0x43b0x4))};_0x43b0x3= _0x43b0x2[_0x5b48[251]][_0x5b48[264]](_0x43b0x3);if(null!= _0x43b0x3){for(_0x43b0x9= 0;_0x43b0x9< _0x43b0x3[_0x5b48[67]];_0x43b0x9++){_0x43b0x5= _0x43b0x2[_0x5b48[249]]()[_0x5b48[248]](_0x43b0x3[_0x43b0x9]),null!= _0x43b0x5&& mxUtils[_0x5b48[254]](_0x43b0x5[_0x5b48[253]][_0x5b48[252]],_0x43b0x4)}}},fadeOut:function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa){_0x43b0x5= _0x43b0x5|| 40;_0x43b0x9= _0x43b0x9|| 30;var _0x43b0x12=_0x43b0x3|| 100;mxUtils[_0x5b48[254]](_0x43b0x2,_0x43b0x12);if(_0x43b0xa|| null== _0x43b0xa){var _0x43b0x13=function(){_0x43b0x12= Math[_0x5b48[160]](_0x43b0x12- _0x43b0x5,0);mxUtils[_0x5b48[254]](_0x43b0x2,_0x43b0x12);0< _0x43b0x12?window[_0x5b48[261]](_0x43b0x13,_0x43b0x9):(_0x43b0x2[_0x5b48[124]][_0x5b48[187]]= _0x5b48[188],_0x43b0x4&& _0x43b0x2[_0x5b48[265]]&& _0x43b0x2[_0x5b48[265]][_0x5b48[266]](_0x43b0x2))};window[_0x5b48[261]](_0x43b0x13,_0x43b0x9)}else {_0x43b0x2[_0x5b48[124]][_0x5b48[187]]= _0x5b48[188],_0x43b0x4&& _0x43b0x2[_0x5b48[265]]&& _0x43b0x2[_0x5b48[265]][_0x5b48[266]](_0x43b0x2)}}},mxUtils={errorResource:_0x5b48[130]!= mxClient[_0x5b48[90]]?_0x5b48[267]:_0x5b48[110],closeResource:_0x5b48[130]!= mxClient[_0x5b48[90]]?_0x5b48[268]:_0x5b48[110],errorImage:mxClient[_0x5b48[88]]+ _0x5b48[269],removeCursors:function(_0x43b0x2){null!= _0x43b0x2[_0x5b48[124]]&& (_0x43b0x2[_0x5b48[124]][_0x5b48[270]]= _0x5b48[110]);_0x43b0x2= _0x43b0x2[_0x5b48[271]];if(null!= _0x43b0x2){for(var _0x43b0x3=_0x43b0x2[_0x5b48[67]],_0x43b0x4=0;_0x43b0x4< _0x43b0x3;_0x43b0x4+= 1){mxUtils[_0x5b48[272]](_0x43b0x2[_0x43b0x4])}}},getCurrentStyle:function(){return mxClient[_0x5b48[80]]?function(_0x43b0x2){return null!= _0x43b0x2?_0x43b0x2[_0x5b48[273]]:null}:function(_0x43b0x2){return null!= _0x43b0x2?window[_0x5b48[274]](_0x43b0x2,_0x5b48[110]):null}}(),hasScrollbars:function(_0x43b0x2){_0x43b0x2= mxUtils[_0x5b48[275]](_0x43b0x2);return null!= _0x43b0x2&& (_0x5b48[276]== _0x43b0x2[_0x5b48[277]]|| _0x5b48[278]== _0x43b0x2[_0x5b48[277]])},bind:function(_0x43b0x2,_0x43b0x3){return function(){return _0x43b0x3[_0x5b48[183]](_0x43b0x2,arguments)}},eval:function(_0x43b0x2){var _0x43b0x3=null;if(0<= _0x43b0x2[_0x5b48[2]](_0x5b48[279])){try{eval(_0x5b48[280]+ _0x43b0x2),_0x43b0x3= _mxJavaScriptExpression,_mxJavaScriptExpression= null}catch(c){mxLog[_0x5b48[283]](c[_0x5b48[281]]+ _0x5b48[282]+ _0x43b0x2)}}else {try{_0x43b0x3= eval(_0x43b0x2)}catch(d){mxLog[_0x5b48[283]](d[_0x5b48[281]]+ _0x5b48[282]+ _0x43b0x2)}};return _0x43b0x3},findNode:function(_0x43b0x2,_0x43b0x3,_0x43b0x4){var _0x43b0x5=_0x43b0x2[_0x5b48[284]](_0x43b0x3);if(null!= _0x43b0x5&& _0x43b0x5== _0x43b0x4){return _0x43b0x2};for(_0x43b0x2= _0x43b0x2[_0x5b48[285]];null!= _0x43b0x2;){_0x43b0x5= mxUtils[_0x5b48[286]](_0x43b0x2,_0x43b0x3,_0x43b0x4);if(null!= _0x43b0x5){return _0x43b0x5};_0x43b0x2= _0x43b0x2[_0x5b48[287]]};return null},findNodeByAttribute:function(){return 9<= document[_0x5b48[5]]?function(_0x43b0x2,_0x43b0x3,_0x43b0x4){var _0x43b0x5=null;if(null!= _0x43b0x2){if(_0x43b0x2[_0x5b48[288]]== mxConstants[_0x5b48[289]]&& _0x43b0x2[_0x5b48[284]](_0x43b0x3)== _0x43b0x4){_0x43b0x5= _0x43b0x2}else {for(_0x43b0x2= _0x43b0x2[_0x5b48[285]];null!= _0x43b0x2&& null== _0x43b0x5;){_0x43b0x5= mxUtils[_0x5b48[290]](_0x43b0x2,_0x43b0x3,_0x43b0x4),_0x43b0x2= _0x43b0x2[_0x5b48[287]]}}};return _0x43b0x5}:mxClient[_0x5b48[80]]?function(_0x43b0x2,_0x43b0x3,_0x43b0x4){return null== _0x43b0x2?null:_0x43b0x2[_0x5b48[295]][_0x5b48[294]](_0x5b48[291]+ _0x43b0x3+ _0x5b48[292]+ _0x43b0x4+ _0x5b48[293])}:function(_0x43b0x2,_0x43b0x3,_0x43b0x4){return null== _0x43b0x2?null:_0x43b0x2[_0x5b48[295]][_0x5b48[297]](_0x5b48[291]+ _0x43b0x3+ _0x5b48[292]+ _0x43b0x4+ _0x5b48[293],_0x43b0x2[_0x5b48[295]],null,XPathResult.ANY_TYPE,null)[_0x5b48[296]]()}}(),getFunctionName:function(_0x43b0x2){var _0x43b0x3=null;if(null!= _0x43b0x2){if(null!= _0x43b0x2[_0x5b48[298]]){_0x43b0x3= _0x43b0x2[_0x5b48[298]]}else {_0x43b0x2= _0x43b0x2.toString();for(_0x43b0x3= 9;_0x5b48[185]== _0x43b0x2[_0x5b48[225]](_0x43b0x3);){_0x43b0x3++};var _0x43b0x4=_0x43b0x2[_0x5b48[2]](_0x5b48[299],_0x43b0x3),_0x43b0x3=_0x43b0x2[_0x5b48[85]](_0x43b0x3,_0x43b0x4)}};return _0x43b0x3},indexOf:function(_0x43b0x2,_0x43b0x3){if(null!= _0x43b0x2&& null!= _0x43b0x3){for(var _0x43b0x4=0;_0x43b0x4< _0x43b0x2[_0x5b48[67]];_0x43b0x4++){if(_0x43b0x2[_0x43b0x4]== _0x43b0x3){return _0x43b0x4}}};return -1},remove:function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=null;if(_0x5b48[194]== typeof _0x43b0x3){for(var _0x43b0x5=mxUtils[_0x5b48[2]](_0x43b0x3,_0x43b0x2);0<= _0x43b0x5;){_0x43b0x3[_0x5b48[300]](_0x43b0x5,1),_0x43b0x4= _0x43b0x2,_0x43b0x5= mxUtils[_0x5b48[2]](_0x43b0x3,_0x43b0x2)}};for(var _0x43b0x9 in _0x43b0x3){_0x43b0x3[_0x43b0x9]== _0x43b0x2&& ( delete _0x43b0x3[_0x43b0x9],_0x43b0x4= _0x43b0x2)};return _0x43b0x4},isNode:function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){return null!= _0x43b0x2&& !isNaN(_0x43b0x2[_0x5b48[288]])&& (null== _0x43b0x3|| _0x43b0x2[_0x5b48[301]][_0x5b48[216]]()== _0x43b0x3[_0x5b48[216]]())?null== _0x43b0x4|| _0x43b0x2[_0x5b48[284]](_0x43b0x4)== _0x43b0x5:!1},getChildNodes:function(_0x43b0x2,_0x43b0x3){_0x43b0x3= _0x43b0x3|| mxConstants[_0x5b48[289]];for(var _0x43b0x4=[],_0x43b0x5=_0x43b0x2[_0x5b48[285]];null!= _0x43b0x5;){_0x43b0x5[_0x5b48[288]]== _0x43b0x3&& _0x43b0x4[_0x5b48[207]](_0x43b0x5),_0x43b0x5= _0x43b0x5[_0x5b48[287]]};return _0x43b0x4},createXmlDocument:function(){var _0x43b0x2=null;document[_0x5b48[302]]&& document[_0x5b48[302]][_0x5b48[303]]?_0x43b0x2= document[_0x5b48[302]][_0x5b48[303]](_0x5b48[110],_0x5b48[110],null):window[_0x5b48[304]]&& (_0x43b0x2= new ActiveXObject(_0x5b48[305]));return _0x43b0x2},parseXml:function(){return mxClient[_0x5b48[80]]&& (_0x5b48[82]=== typeof document[_0x5b48[5]]|| 9> document[_0x5b48[5]])?function(_0x43b0x2){var _0x43b0x3=mxUtils[_0x5b48[306]]();_0x43b0x3[_0x5b48[307]]= _0x5b48[308];_0x43b0x3[_0x5b48[309]](_0x43b0x2);return _0x43b0x3}:function(_0x43b0x2){return ( new DOMParser)[_0x5b48[311]](_0x43b0x2,_0x5b48[310])}}(),clearSelection:function(){if(document[_0x5b48[312]]){return function(){document[_0x5b48[312]][_0x5b48[313]]()}};if(window[_0x5b48[314]]){return function(){window[_0x5b48[314]]()[_0x5b48[315]]()}}}(),getPrettyXml:function(_0x43b0x2,_0x43b0x3,_0x43b0x4){var _0x43b0x5=[];if(null!= _0x43b0x2){if(_0x43b0x3= _0x43b0x3|| _0x5b48[316],_0x43b0x4= _0x43b0x4|| _0x5b48[110],_0x43b0x2[_0x5b48[288]]== mxConstants[_0x5b48[317]]){_0x43b0x5[_0x5b48[207]](_0x43b0x2[_0x5b48[318]])}else {_0x43b0x5[_0x5b48[207]](_0x43b0x4+ _0x5b48[319]+ _0x43b0x2[_0x5b48[301]]);var _0x43b0x9=_0x43b0x2[_0x5b48[320]];if(null!= _0x43b0x9){for(var _0x43b0xa=0;_0x43b0xa< _0x43b0x9[_0x5b48[67]];_0x43b0xa++){var _0x43b0x12=mxUtils[_0x5b48[321]](_0x43b0x9[_0x43b0xa][_0x5b48[318]]);_0x43b0x5[_0x5b48[207]](_0x5b48[185]+ _0x43b0x9[_0x43b0xa][_0x5b48[301]]+ _0x5b48[322]+ _0x43b0x12+ _0x5b48[323])}};_0x43b0x9= _0x43b0x2[_0x5b48[285]];if(null!= _0x43b0x9){for(_0x43b0x5[_0x5b48[207]](_0x5b48[324]);null!= _0x43b0x9;){_0x43b0x5[_0x5b48[207]](mxUtils[_0x5b48[325]](_0x43b0x9,_0x43b0x3,_0x43b0x4+ _0x43b0x3)),_0x43b0x9= _0x43b0x9[_0x5b48[287]]};_0x43b0x5[_0x5b48[207]](_0x43b0x4+ _0x5b48[326]+ _0x43b0x2[_0x5b48[301]]+ _0x5b48[324])}else {_0x43b0x5[_0x5b48[207]](_0x5b48[327])}}};return _0x43b0x5[_0x5b48[234]](_0x5b48[110])},removeWhitespace:function(_0x43b0x2,_0x43b0x3){for(var _0x43b0x4=_0x43b0x3?_0x43b0x2[_0x5b48[328]]:_0x43b0x2[_0x5b48[287]];null!= _0x43b0x4&& _0x43b0x4[_0x5b48[288]]== mxConstants[_0x5b48[317]];){var _0x43b0x5=_0x43b0x3?_0x43b0x4[_0x5b48[328]]:_0x43b0x4[_0x5b48[287]],_0x43b0x9=mxUtils[_0x5b48[329]](_0x43b0x4);0== mxUtils[_0x5b48[330]](_0x43b0x9)[_0x5b48[67]]&& _0x43b0x4[_0x5b48[265]][_0x5b48[266]](_0x43b0x4);_0x43b0x4= _0x43b0x5}},htmlEntities:function(_0x43b0x2,_0x43b0x3){_0x43b0x2= (_0x43b0x2|| _0x5b48[110])[_0x5b48[230]](/&/g,_0x5b48[331]);_0x43b0x2= _0x43b0x2[_0x5b48[230]](/"/g,_0x5b48[332]);_0x43b0x2= _0x43b0x2[_0x5b48[230]](/\'/g,_0x5b48[333]);_0x43b0x2= _0x43b0x2[_0x5b48[230]](/</g,_0x5b48[334]);_0x43b0x2= _0x43b0x2[_0x5b48[230]](/>/g,_0x5b48[335]);if(null== _0x43b0x3|| _0x43b0x3){_0x43b0x2= _0x43b0x2[_0x5b48[230]](/\n/g,_0x5b48[336])};return _0x43b0x2},isVml:function(_0x43b0x2){return null!= _0x43b0x2&& _0x5b48[97]== _0x43b0x2[_0x5b48[337]]},getXml:function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=_0x5b48[110];null!= _0x43b0x2&& (_0x43b0x4= _0x43b0x2[_0x5b48[338]],_0x43b0x4= null== _0x43b0x4?_0x43b0x2[_0x5b48[339]]?_0x43b0x2[_0x5b48[339]]:( new XMLSerializer)[_0x5b48[340]](_0x43b0x2):_0x43b0x4[_0x5b48[230]](/\r\n\t[\t]*/g,_0x5b48[110])[_0x5b48[230]](/>\r\n/g,_0x5b48[341])[_0x5b48[230]](/\r\n/g,_0x5b48[192]));return _0x43b0x4= _0x43b0x4[_0x5b48[230]](/\n/g,_0x43b0x3|| _0x5b48[336])},getTextContent:function(_0x43b0x2){var _0x43b0x3=_0x5b48[110];null!= _0x43b0x2&& (null!= _0x43b0x2[_0x5b48[285]]&& (_0x43b0x2= _0x43b0x2[_0x5b48[285]]),_0x43b0x3= _0x43b0x2[_0x5b48[318]]|| _0x5b48[110]);return _0x43b0x3},getInnerHtml:function(){return mxClient[_0x5b48[80]]?function(_0x43b0x2){return null!= _0x43b0x2?_0x43b0x2[_0x5b48[339]]:_0x5b48[110]}:function(_0x43b0x2){return null!= _0x43b0x2?( new XMLSerializer)[_0x5b48[340]](_0x43b0x2):_0x5b48[110]}}(),getOuterHtml:function(){return mxClient[_0x5b48[80]]?function(_0x43b0x2){if(null!= _0x43b0x2){if(null!= _0x43b0x2[_0x5b48[342]]){return _0x43b0x2[_0x5b48[342]]};var _0x43b0x3=[];_0x43b0x3[_0x5b48[207]](_0x5b48[319]+ _0x43b0x2[_0x5b48[301]]);var _0x43b0x4=_0x43b0x2[_0x5b48[320]];if(null!= _0x43b0x4){for(var _0x43b0x5=0;_0x43b0x5< _0x43b0x4[_0x5b48[67]];_0x43b0x5++){var _0x43b0x9=_0x43b0x4[_0x43b0x5][_0x5b48[318]];null!= _0x43b0x9&& 0< _0x43b0x9[_0x5b48[67]]&& (_0x43b0x3[_0x5b48[207]](_0x5b48[185]),_0x43b0x3[_0x5b48[207]](_0x43b0x4[_0x43b0x5][_0x5b48[301]]),_0x43b0x3[_0x5b48[207]](_0x5b48[322]),_0x43b0x3[_0x5b48[207]](_0x43b0x9),_0x43b0x3[_0x5b48[207]](_0x5b48[323]))}};0== _0x43b0x2[_0x5b48[339]][_0x5b48[67]]?_0x43b0x3[_0x5b48[207]](_0x5b48[343]):(_0x43b0x3[_0x5b48[207]](_0x5b48[341]),_0x43b0x3[_0x5b48[207]](_0x43b0x2[_0x5b48[339]]),_0x43b0x3[_0x5b48[207]](_0x5b48[326]+ _0x43b0x2[_0x5b48[301]]+ _0x5b48[341]));return _0x43b0x3[_0x5b48[234]](_0x5b48[110])};return _0x5b48[110]}:function(_0x43b0x2){return null!= _0x43b0x2?( new XMLSerializer)[_0x5b48[340]](_0x43b0x2):_0x5b48[110]}}(),write:function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=_0x43b0x2[_0x5b48[295]][_0x5b48[344]](_0x43b0x3);null!= _0x43b0x2&& _0x43b0x2[_0x5b48[62]](_0x43b0x4);return _0x43b0x4},writeln:function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=_0x43b0x2[_0x5b48[295]][_0x5b48[344]](_0x43b0x3);null!= _0x43b0x2&& (_0x43b0x2[_0x5b48[62]](_0x43b0x4),_0x43b0x2[_0x5b48[62]](document[_0x5b48[55]](_0x5b48[345])));return _0x43b0x4},br:function(_0x43b0x2,_0x43b0x3){_0x43b0x3= _0x43b0x3|| 1;for(var _0x43b0x4=null,_0x43b0x5=0;_0x43b0x5< _0x43b0x3;_0x43b0x5++){null!= _0x43b0x2&& (_0x43b0x4= _0x43b0x2[_0x5b48[295]][_0x5b48[55]](_0x5b48[345]),_0x43b0x2[_0x5b48[62]](_0x43b0x4))};return _0x43b0x4},button:function(_0x43b0x2,_0x43b0x3,_0x43b0x4){_0x43b0x4= null!= _0x43b0x4?_0x43b0x4:document;_0x43b0x4= _0x43b0x4[_0x5b48[55]](_0x5b48[172]);mxUtils[_0x5b48[53]](_0x43b0x4,_0x43b0x2);mxEvent[_0x5b48[169]](_0x43b0x4,_0x5b48[173],function(_0x43b0x2){_0x43b0x3(_0x43b0x2)});return _0x43b0x4},para:function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=document[_0x5b48[55]](_0x5b48[346]);mxUtils[_0x5b48[53]](_0x43b0x4,_0x43b0x3);null!= _0x43b0x2&& _0x43b0x2[_0x5b48[62]](_0x43b0x4);return _0x43b0x4},addTransparentBackgroundFilter:function(_0x43b0x2){_0x43b0x2[_0x5b48[124]][_0x5b48[347]]+= _0x5b48[348]+ mxClient[_0x5b48[88]]+ _0x5b48[349]},linkAction:function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){return mxUtils[_0x5b48[54]](_0x43b0x2,_0x43b0x3,function(){_0x43b0x4[_0x5b48[350]](_0x43b0x5)},_0x43b0x9)},linkInvoke:function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa){return mxUtils[_0x5b48[54]](_0x43b0x2,_0x43b0x3,function(){_0x43b0x4[_0x43b0x5](_0x43b0x9)},_0x43b0xa)},link:function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){var _0x43b0x9=document[_0x5b48[55]](_0x5b48[351]);_0x43b0x9[_0x5b48[124]][_0x5b48[352]]= _0x5b48[353];_0x43b0x9[_0x5b48[124]][_0x5b48[354]]= _0x5b48[355];_0x43b0x9[_0x5b48[124]][_0x5b48[270]]= _0x5b48[356];null!= _0x43b0x5&& (_0x43b0x9[_0x5b48[124]][_0x5b48[357]]= _0x43b0x5+ _0x5b48[168]);mxEvent[_0x5b48[169]](_0x43b0x9,_0x5b48[173],_0x43b0x4);mxUtils[_0x5b48[53]](_0x43b0x9,_0x43b0x3);null!= _0x43b0x2&& _0x43b0x2[_0x5b48[62]](_0x43b0x9);return _0x43b0x9},fit:function(_0x43b0x2){var _0x43b0x3=parseInt(_0x43b0x2[_0x5b48[358]]),_0x43b0x4=parseInt(_0x43b0x2[_0x5b48[359]]),_0x43b0x5=document[_0x5b48[112]],_0x43b0x9=document[_0x5b48[158]],_0x43b0xa=(_0x43b0x5[_0x5b48[360]]|| _0x43b0x9[_0x5b48[360]])+ (_0x43b0x5[_0x5b48[159]]|| _0x43b0x9[_0x5b48[159]]);_0x43b0x3+ _0x43b0x4> _0x43b0xa&& (_0x43b0x2[_0x5b48[124]][_0x5b48[361]]= Math[_0x5b48[160]](_0x43b0x5[_0x5b48[360]]|| _0x43b0x9[_0x5b48[360]],_0x43b0xa- _0x43b0x4)+ _0x5b48[168]);_0x43b0x3= parseInt(_0x43b0x2[_0x5b48[362]]);_0x43b0x4= parseInt(_0x43b0x2[_0x5b48[167]]);_0x43b0xa= (_0x43b0x5[_0x5b48[190]]|| _0x43b0x9[_0x5b48[190]])+ Math[_0x5b48[160]](_0x43b0x5[_0x5b48[157]]|| 0,_0x43b0x9[_0x5b48[157]]);_0x43b0x3+ _0x43b0x4> _0x43b0xa&& (_0x43b0x2[_0x5b48[124]][_0x5b48[125]]= Math[_0x5b48[160]](_0x43b0x5[_0x5b48[190]]|| _0x43b0x9[_0x5b48[190]],_0x43b0xa- _0x43b0x4)+ _0x5b48[168])},open:function(_0x43b0x2){if(mxClient[_0x5b48[133]]){try{netscape[_0x5b48[366]][_0x5b48[365]][_0x5b48[364]](_0x5b48[363])}catch(b){return mxUtils[_0x5b48[150]](_0x5b48[367]),_0x5b48[110]};var _0x43b0x4=Components[_0x5b48[372]][_0x5b48[371]][_0x5b48[370]](Components[_0x5b48[369]][_0x5b48[368]]);_0x43b0x4[_0x5b48[373]](_0x43b0x2);if(!_0x43b0x4[_0x5b48[374]]()){return mxUtils[_0x5b48[150]](_0x5b48[375]),_0x5b48[110]};_0x43b0x2= Components[_0x5b48[372]][_0x5b48[377]][_0x5b48[370]](Components[_0x5b48[369]][_0x5b48[376]]);_0x43b0x2[_0x5b48[176]](_0x43b0x4,1,4,null);_0x43b0x4= Components[_0x5b48[372]][_0x5b48[379]][_0x5b48[370]](Components[_0x5b48[369]][_0x5b48[378]]);_0x43b0x4[_0x5b48[176]](_0x43b0x2);return _0x43b0x4[_0x5b48[381]](_0x43b0x4[_0x5b48[380]]())};_0x43b0x4= ( new ActiveXObject(_0x5b48[382])).OpenTextFile(_0x43b0x2,1);_0x43b0x2= _0x43b0x4[_0x5b48[383]]();_0x43b0x4[_0x5b48[268]]();return _0x43b0x2},save:function(_0x43b0x2,_0x43b0x3){if(mxClient[_0x5b48[133]]){try{netscape[_0x5b48[366]][_0x5b48[365]][_0x5b48[364]](_0x5b48[363])}catch(c){mxUtils[_0x5b48[150]](_0x5b48[384]);return};var _0x43b0x5=Components[_0x5b48[372]][_0x5b48[371]][_0x5b48[370]](Components[_0x5b48[369]][_0x5b48[368]]);_0x43b0x5[_0x5b48[373]](_0x43b0x2);_0x43b0x5[_0x5b48[374]]()|| _0x43b0x5[_0x5b48[385]](0,420);var _0x43b0x9=Components[_0x5b48[372]][_0x5b48[387]][_0x5b48[370]](Components[_0x5b48[369]][_0x5b48[386]]);_0x43b0x9[_0x5b48[176]](_0x43b0x5,34,4,null);_0x43b0x9[_0x5b48[53]](_0x43b0x3,_0x43b0x3[_0x5b48[67]]);_0x43b0x9[_0x5b48[388]]();_0x43b0x9[_0x5b48[268]]()}else {_0x43b0x5= ( new ActiveXObject(_0x5b48[382])).CreateTextFile(_0x43b0x2,!0),_0x43b0x5.Write(_0x43b0x3),_0x43b0x5.Close()}},saveAs:function(_0x43b0x2){var _0x43b0x3=document[_0x5b48[55]](_0x5b48[389]);_0x43b0x3[_0x5b48[57]](_0x5b48[390],_0x5b48[110]);_0x43b0x3[_0x5b48[124]][_0x5b48[187]]= _0x5b48[188];document[_0x5b48[112]][_0x5b48[62]](_0x43b0x3);try{if(mxClient[_0x5b48[133]]){var _0x43b0x4=_0x43b0x3[_0x5b48[391]];_0x43b0x4[_0x5b48[392]]();_0x43b0x4[_0x5b48[53]](_0x43b0x2);_0x43b0x4[_0x5b48[268]]();try{netscape[_0x5b48[366]][_0x5b48[365]][_0x5b48[364]](_0x5b48[363]),_0x43b0x3[_0x5b48[393]](),saveDocument(_0x43b0x4)}catch(d){mxUtils[_0x5b48[150]](_0x5b48[394])}}else {_0x43b0x4= _0x43b0x3[_0x5b48[396]][_0x5b48[395]],_0x43b0x4[_0x5b48[53]](_0x43b0x2),_0x43b0x4[_0x5b48[398]](_0x5b48[397],!1,document[_0x5b48[45]])}}finally{document[_0x5b48[112]][_0x5b48[266]](_0x43b0x3)}},copy:function(_0x43b0x2){if(window[_0x5b48[399]]){window[_0x5b48[399]][_0x5b48[401]](_0x5b48[400],_0x43b0x2)}else {netscape[_0x5b48[366]][_0x5b48[365]][_0x5b48[364]](_0x5b48[363]);var _0x43b0x3=Components[_0x5b48[372]][_0x5b48[403]][_0x5b48[370]](Components[_0x5b48[369]][_0x5b48[402]]);if(_0x43b0x3){var _0x43b0x4=Components[_0x5b48[372]][_0x5b48[405]][_0x5b48[370]](Components[_0x5b48[369]][_0x5b48[404]]);if(_0x43b0x4){_0x43b0x4[_0x5b48[407]](_0x5b48[406]);var _0x43b0x5=Components[_0x5b48[372]][_0x5b48[409]][_0x5b48[370]](Components[_0x5b48[369]][_0x5b48[408]]);_0x43b0x5[_0x5b48[410]]= _0x43b0x2;_0x43b0x4[_0x5b48[411]](_0x5b48[406],_0x43b0x5,2* _0x43b0x2[_0x5b48[67]]);_0x43b0x3[_0x5b48[401]](_0x43b0x4,null,Components[_0x5b48[369]][_0x5b48[402]][_0x5b48[412]])}}}},load:function(_0x43b0x2){_0x43b0x2= new mxXmlRequest(_0x43b0x2,null,_0x5b48[413],!1);_0x43b0x2[_0x5b48[414]]();return _0x43b0x2},get:function(_0x43b0x2,_0x43b0x3,_0x43b0x4){return ( new mxXmlRequest(_0x43b0x2,null,_0x5b48[413]))[_0x5b48[414]](_0x43b0x3,_0x43b0x4)},post:function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){return ( new mxXmlRequest(_0x43b0x2,_0x43b0x3))[_0x5b48[414]](_0x43b0x4,_0x43b0x5)},submit:function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){return ( new mxXmlRequest(_0x43b0x2,_0x43b0x3))[_0x5b48[415]](_0x43b0x4,_0x43b0x5)},loadInto:function(_0x43b0x2,_0x43b0x3,_0x43b0x4){mxClient[_0x5b48[80]]?_0x43b0x3[_0x5b48[416]]= function(){4== _0x43b0x3[_0x5b48[417]]&& _0x43b0x4()}:_0x43b0x3[_0x5b48[418]](_0x5b48[219],_0x43b0x4,!1);_0x43b0x3[_0x5b48[219]](_0x43b0x2)},getValue:function(_0x43b0x2,_0x43b0x3,_0x43b0x4){_0x43b0x2= null!= _0x43b0x2?_0x43b0x2[_0x43b0x3]:null;null== _0x43b0x2&& (_0x43b0x2= _0x43b0x4);return _0x43b0x2},getNumber:function(_0x43b0x2,_0x43b0x3,_0x43b0x4){_0x43b0x2= null!= _0x43b0x2?_0x43b0x2[_0x43b0x3]:null;null== _0x43b0x2&& (_0x43b0x2= _0x43b0x4|| 0);return Number(_0x43b0x2)},getColor:function(_0x43b0x2,_0x43b0x3,_0x43b0x4){_0x43b0x2= null!= _0x43b0x2?_0x43b0x2[_0x43b0x3]:null;null== _0x43b0x2?_0x43b0x2= _0x43b0x4:_0x43b0x2== mxConstants[_0x5b48[217]]&& (_0x43b0x2= null);return _0x43b0x2},clone:function(_0x43b0x2,_0x43b0x3,_0x43b0x4){_0x43b0x4= null!= _0x43b0x4?_0x43b0x4:!1;var _0x43b0x5=null;if(null!= _0x43b0x2&& _0x5b48[279]== typeof _0x43b0x2[_0x5b48[196]]){var _0x43b0x5= new _0x43b0x2[_0x5b48[196]],_0x43b0x9;for(_0x43b0x9 in _0x43b0x2){if(_0x43b0x9!= mxObjectIdentity[_0x5b48[195]]&& (null== _0x43b0x3|| 0> mxUtils[_0x5b48[2]](_0x43b0x3,_0x43b0x9))){_0x43b0x5[_0x43b0x9]= !_0x43b0x4&& _0x5b48[194]== typeof _0x43b0x2[_0x43b0x9]?mxUtils[_0x5b48[238]](_0x43b0x2[_0x43b0x9]):_0x43b0x2[_0x43b0x9]}}};return _0x43b0x5},equalPoints:function(_0x43b0x2,_0x43b0x3){if(null== _0x43b0x2&& null!= _0x43b0x3|| null!= _0x43b0x2&& null== _0x43b0x3|| null!= _0x43b0x2&& null!= _0x43b0x3&& _0x43b0x2[_0x5b48[67]]!= _0x43b0x3[_0x5b48[67]]){return !1};if(null!= _0x43b0x2&& null!= _0x43b0x3){for(var _0x43b0x4=0;_0x43b0x4< _0x43b0x2[_0x5b48[67]];_0x43b0x4++){if(_0x43b0x2[_0x43b0x4]== _0x43b0x3[_0x43b0x4]|| null!= _0x43b0x2[_0x43b0x4]&& !_0x43b0x2[_0x43b0x4][_0x5b48[237]](_0x43b0x3[_0x43b0x4])){return !1}}};return !0},equalEntries:function(_0x43b0x2,_0x43b0x3){if(null== _0x43b0x2&& null!= _0x43b0x3|| null!= _0x43b0x2&& null== _0x43b0x3|| null!= _0x43b0x2&& null!= _0x43b0x3&& _0x43b0x2[_0x5b48[67]]!= _0x43b0x3[_0x5b48[67]]){return !1};if(null!= _0x43b0x2&& null!= _0x43b0x3){for(var _0x43b0x4 in _0x43b0x2){if(_0x43b0x2[_0x43b0x4]!= _0x43b0x3[_0x43b0x4]){return !1}}};return !0},extend:function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=function(){};_0x43b0x4[_0x5b48[202]]= _0x43b0x3[_0x5b48[202]];_0x43b0x2[_0x5b48[202]]= new _0x43b0x4;_0x43b0x2[_0x5b48[202]][_0x5b48[196]]= _0x43b0x2},toString:function(_0x43b0x2){var _0x43b0x3=_0x5b48[110],_0x43b0x4;for(_0x43b0x4 in _0x43b0x2){try{if(null== _0x43b0x2[_0x43b0x4]){_0x43b0x3+= _0x43b0x4+ _0x5b48[419]}else {if(_0x5b48[279]== typeof _0x43b0x2[_0x43b0x4]){_0x43b0x3+= _0x43b0x4+ _0x5b48[420]}else {if(_0x5b48[194]== typeof _0x43b0x2[_0x43b0x4]){var _0x43b0x5=mxUtils[_0x5b48[197]](_0x43b0x2[_0x43b0x4][_0x5b48[196]]),_0x43b0x3=_0x43b0x3+ (_0x43b0x4+ _0x5b48[421]+ _0x43b0x5+ _0x5b48[422])}else {_0x43b0x3+= _0x43b0x4+ _0x5b48[423]+ _0x43b0x2[_0x43b0x4]+ _0x5b48[192]}}}}catch(e){_0x43b0x3+= _0x43b0x4+ _0x5b48[226]+ e[_0x5b48[281]]}};return _0x43b0x3},toRadians:function(_0x43b0x2){return Math[_0x5b48[424]]* _0x43b0x2/ 180},arcToCurves:function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa,_0x43b0x12,_0x43b0x13,_0x43b0x14){_0x43b0x13-= _0x43b0x2;_0x43b0x14-= _0x43b0x3;if(0=== _0x43b0x4|| 0=== _0x43b0x5){return _0x43b0x18};_0x43b0x4= Math[_0x5b48[425]](_0x43b0x4);_0x43b0x5= Math[_0x5b48[425]](_0x43b0x5);var _0x43b0x15=-_0x43b0x13/ 2,_0x43b0x16=-_0x43b0x14/ 2,_0x43b0x17=Math[_0x5b48[426]](_0x43b0x9* Math[_0x5b48[424]]/ 180),_0x43b0x18=Math[_0x5b48[427]](_0x43b0x9* Math[_0x5b48[424]]/ 180);_0x43b0x9= _0x43b0x17* _0x43b0x15+ _0x43b0x18* _0x43b0x16;var _0x43b0x15=-1* _0x43b0x18 * _0x43b0x15 + _0x43b0x17* _0x43b0x16,_0x43b0x16=_0x43b0x9* _0x43b0x9,_0x43b0x19=_0x43b0x15* _0x43b0x15,_0x43b0x1a=_0x43b0x4* _0x43b0x4,_0x43b0x1b=_0x43b0x5* _0x43b0x5,_0x43b0x1c=_0x43b0x16/ _0x43b0x1a+ _0x43b0x19/ _0x43b0x1b;1< _0x43b0x1c?(_0x43b0x4*= Math[_0x5b48[428]](_0x43b0x1c),_0x43b0x5*= Math[_0x5b48[428]](_0x43b0x1c),_0x43b0xa= 0):(_0x43b0x1c= 1,_0x43b0xa=== _0x43b0x12&& (_0x43b0x1c= -1),_0x43b0xa= _0x43b0x1c* Math[_0x5b48[428]]((_0x43b0x1a* _0x43b0x1b- _0x43b0x1a* _0x43b0x19- _0x43b0x1b* _0x43b0x16)/ (_0x43b0x1a* _0x43b0x19+ _0x43b0x1b* _0x43b0x16)));_0x43b0x16= _0x43b0xa* _0x43b0x4* _0x43b0x15/ _0x43b0x5;_0x43b0x19= -1* _0x43b0xa * _0x43b0x5 * _0x43b0x9 / _0x43b0x4;_0x43b0x13= _0x43b0x17* _0x43b0x16- _0x43b0x18* _0x43b0x19+ _0x43b0x13/ 2;_0x43b0x14= _0x43b0x18* _0x43b0x16+ _0x43b0x17* _0x43b0x19+ _0x43b0x14/ 2;_0x43b0x1a= Math[_0x5b48[429]]((_0x43b0x15- _0x43b0x19)/ _0x43b0x5,(_0x43b0x9- _0x43b0x16)/ _0x43b0x4)- Math[_0x5b48[429]](0,1);_0x43b0xa= 0<= _0x43b0x1a?_0x43b0x1a:2* Math[_0x5b48[424]]+ _0x43b0x1a;_0x43b0x1a= Math[_0x5b48[429]]((-_0x43b0x15- _0x43b0x19) / _0x43b0x5,(-_0x43b0x9- _0x43b0x16) / _0x43b0x4) - Math[_0x5b48[429]]((_0x43b0x15- _0x43b0x19)/ _0x43b0x5,(_0x43b0x9- _0x43b0x16)/ _0x43b0x4);_0x43b0x9= 0<= _0x43b0x1a?_0x43b0x1a:2* Math[_0x5b48[424]]+ _0x43b0x1a;0== _0x43b0x12&& 0< _0x43b0x9?_0x43b0x9-= 2* Math[_0x5b48[424]]:0!= _0x43b0x12&& 0> _0x43b0x9&& (_0x43b0x9+= 2* Math[_0x5b48[424]]);_0x43b0x12= 2* _0x43b0x9/ Math[_0x5b48[424]];_0x43b0x12= Math[_0x5b48[430]](0> _0x43b0x12?-1* _0x43b0x12:_0x43b0x12);_0x43b0x9/= _0x43b0x12;_0x43b0x15= 8/ 3* Math[_0x5b48[427]](_0x43b0x9/ 4)* Math[_0x5b48[427]](_0x43b0x9/ 4)/ Math[_0x5b48[427]](_0x43b0x9/ 2);_0x43b0x16= _0x43b0x17* _0x43b0x4;_0x43b0x17*= _0x43b0x5;_0x43b0x4*= _0x43b0x18;_0x43b0x5*= _0x43b0x18;for(var _0x43b0x1d=Math[_0x5b48[426]](_0x43b0xa),_0x43b0x1e=Math[_0x5b48[427]](_0x43b0xa),_0x43b0x19=-_0x43b0x15* (_0x43b0x16* _0x43b0x1e+ _0x43b0x5* _0x43b0x1d),_0x43b0x1a=-_0x43b0x15* (_0x43b0x4* _0x43b0x1e- _0x43b0x17* _0x43b0x1d),_0x43b0x1c=_0x43b0x1b= 0,_0x43b0x18=[],_0x43b0x1f=0;_0x43b0x1f< _0x43b0x12;++_0x43b0x1f){_0x43b0xa+= _0x43b0x9;var _0x43b0x1d=Math[_0x5b48[426]](_0x43b0xa),_0x43b0x1e=Math[_0x5b48[427]](_0x43b0xa),_0x43b0x1b=_0x43b0x16* _0x43b0x1d- _0x43b0x5* _0x43b0x1e+ _0x43b0x13,_0x43b0x1c=_0x43b0x4* _0x43b0x1d+ _0x43b0x17* _0x43b0x1e+ _0x43b0x14,_0x43b0x20=-_0x43b0x15* (_0x43b0x16* _0x43b0x1e+ _0x43b0x5* _0x43b0x1d),_0x43b0x1d=-_0x43b0x15* (_0x43b0x4* _0x43b0x1e- _0x43b0x17* _0x43b0x1d),_0x43b0x1e=6* _0x43b0x1f;_0x43b0x18[_0x43b0x1e]= Number(_0x43b0x19+ _0x43b0x2);_0x43b0x18[_0x43b0x1e+ 1]= Number(_0x43b0x1a+ _0x43b0x3);_0x43b0x18[_0x43b0x1e+ 2]= Number(_0x43b0x1b- _0x43b0x20+ _0x43b0x2);_0x43b0x18[_0x43b0x1e+ 3]= Number(_0x43b0x1c- _0x43b0x1d+ _0x43b0x3);_0x43b0x18[_0x43b0x1e+ 4]= Number(_0x43b0x1b+ _0x43b0x2);_0x43b0x18[_0x43b0x1e+ 5]= Number(_0x43b0x1c+ _0x43b0x3);_0x43b0x19= _0x43b0x1b+ _0x43b0x20;_0x43b0x1a= _0x43b0x1c+ _0x43b0x1d};return _0x43b0x18},getBoundingBox:function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=null;if(null!= _0x43b0x2&& null!= _0x43b0x3&& 0!= _0x43b0x3){var _0x43b0x5=mxUtils[_0x5b48[431]](_0x43b0x3),_0x43b0x4=Math[_0x5b48[426]](_0x43b0x5),_0x43b0x9=Math[_0x5b48[427]](_0x43b0x5),_0x43b0xa= new mxPoint(_0x43b0x2[_0x5b48[235]]+ _0x43b0x2[_0x5b48[117]]/ 2,_0x43b0x2[_0x5b48[236]]+ _0x43b0x2[_0x5b48[119]]/ 2),_0x43b0x12= new mxPoint(_0x43b0x2[_0x5b48[235]],_0x43b0x2[_0x5b48[236]]),_0x43b0x5= new mxPoint(_0x43b0x2[_0x5b48[235]]+ _0x43b0x2[_0x5b48[117]],_0x43b0x2[_0x5b48[236]]),_0x43b0x13= new mxPoint(_0x43b0x5[_0x5b48[235]],_0x43b0x2[_0x5b48[236]]+ _0x43b0x2[_0x5b48[119]]),_0x43b0x14= new mxPoint(_0x43b0x2[_0x5b48[235]],_0x43b0x13[_0x5b48[236]]),_0x43b0x12=mxUtils[_0x5b48[432]](_0x43b0x12,_0x43b0x4,_0x43b0x9,_0x43b0xa),_0x43b0x5=mxUtils[_0x5b48[432]](_0x43b0x5,_0x43b0x4,_0x43b0x9,_0x43b0xa),_0x43b0x13=mxUtils[_0x5b48[432]](_0x43b0x13,_0x43b0x4,_0x43b0x9,_0x43b0xa),_0x43b0x14=mxUtils[_0x5b48[432]](_0x43b0x14,_0x43b0x4,_0x43b0x9,_0x43b0xa),_0x43b0x4= new mxRectangle(_0x43b0x12[_0x5b48[235]],_0x43b0x12[_0x5b48[236]],0,0);_0x43b0x4[_0x5b48[99]]( new mxRectangle(_0x43b0x5[_0x5b48[235]],_0x43b0x5[_0x5b48[236]],0,0));_0x43b0x4[_0x5b48[99]]( new mxRectangle(_0x43b0x13[_0x5b48[235]],_0x43b0x13[_0x5b48[236]],0,0));_0x43b0x4[_0x5b48[99]]( new mxRectangle(_0x43b0x14[_0x5b48[235]],_0x43b0x14[_0x5b48[236]],0,0))};return _0x43b0x4},getRotatedPoint:function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){_0x43b0x5= null!= _0x43b0x5?_0x43b0x5: new mxPoint;var _0x43b0x9=_0x43b0x2[_0x5b48[235]]- _0x43b0x5[_0x5b48[235]];_0x43b0x2= _0x43b0x2[_0x5b48[236]]- _0x43b0x5[_0x5b48[236]];return new mxPoint(_0x43b0x9* _0x43b0x3- _0x43b0x2* _0x43b0x4+ _0x43b0x5[_0x5b48[235]],_0x43b0x2* _0x43b0x3+ _0x43b0x9* _0x43b0x4+ _0x43b0x5[_0x5b48[236]])},getPortConstraints:function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){_0x43b0x2= mxUtils[_0x5b48[433]](_0x43b0x2[_0x5b48[124]],mxConstants.STYLE_PORT_CONSTRAINT,null);if(null== _0x43b0x2){return _0x43b0x5};_0x43b0x5= _0x43b0x2.toString();_0x43b0x2= mxConstants[_0x5b48[434]];0<= _0x43b0x5[_0x5b48[2]](mxConstants.DIRECTION_NORTH)&& (_0x43b0x2|= mxConstants[_0x5b48[435]]);0<= _0x43b0x5[_0x5b48[2]](mxConstants.DIRECTION_WEST)&& (_0x43b0x2|= mxConstants[_0x5b48[436]]);0<= _0x43b0x5[_0x5b48[2]](mxConstants.DIRECTION_SOUTH)&& (_0x43b0x2|= mxConstants[_0x5b48[437]]);0<= _0x43b0x5[_0x5b48[2]](mxConstants.DIRECTION_EAST)&& (_0x43b0x2|= mxConstants[_0x5b48[438]]);return _0x43b0x2},reversePortConstraints:function(_0x43b0x2){var _0x43b0x3=0,_0x43b0x3=(_0x43b0x2& mxConstants[_0x5b48[436]])<< 3,_0x43b0x3=_0x43b0x3| (_0x43b0x2& mxConstants[_0x5b48[435]])<< 1,_0x43b0x3=_0x43b0x3| (_0x43b0x2& mxConstants[_0x5b48[437]])>> 1;return _0x43b0x3|= (_0x43b0x2& mxConstants[_0x5b48[438]])>> 3},findNearestSegment:function(_0x43b0x2,_0x43b0x3,_0x43b0x4){var _0x43b0x5=-1;if(0< _0x43b0x2[_0x5b48[439]][_0x5b48[67]]){for(var _0x43b0x9=_0x43b0x2[_0x5b48[439]][0],_0x43b0xa=null,_0x43b0x12=1;_0x43b0x12< _0x43b0x2[_0x5b48[439]][_0x5b48[67]];_0x43b0x12++){var _0x43b0x13=_0x43b0x2[_0x5b48[439]][_0x43b0x12],_0x43b0x9=mxUtils[_0x5b48[440]](_0x43b0x9[_0x5b48[235]],_0x43b0x9[_0x5b48[236]],_0x43b0x13[_0x5b48[235]],_0x43b0x13[_0x5b48[236]],_0x43b0x3,_0x43b0x4);if(null== _0x43b0xa|| _0x43b0x9< _0x43b0xa){_0x43b0xa= _0x43b0x9,_0x43b0x5= _0x43b0x12- 1};_0x43b0x9= _0x43b0x13}};return _0x43b0x5},rectangleIntersectsSegment:function(_0x43b0x2,_0x43b0x3,_0x43b0x4){var _0x43b0x5=_0x43b0x2[_0x5b48[236]],_0x43b0x9=_0x43b0x2[_0x5b48[235]],_0x43b0xa=_0x43b0x5+ _0x43b0x2[_0x5b48[119]],_0x43b0x12=_0x43b0x9+ _0x43b0x2[_0x5b48[117]];_0x43b0x2= _0x43b0x3[_0x5b48[235]];var _0x43b0x13=_0x43b0x4[_0x5b48[235]];_0x43b0x3[_0x5b48[235]]> _0x43b0x4[_0x5b48[235]]&& (_0x43b0x2= _0x43b0x4[_0x5b48[235]],_0x43b0x13= _0x43b0x3[_0x5b48[235]]);_0x43b0x13> _0x43b0x12&& (_0x43b0x13= _0x43b0x12);_0x43b0x2< _0x43b0x9&& (_0x43b0x2= _0x43b0x9);if(_0x43b0x2> _0x43b0x13){return !1};var _0x43b0x9=_0x43b0x3[_0x5b48[236]],_0x43b0x12=_0x43b0x4[_0x5b48[236]],_0x43b0x14=_0x43b0x4[_0x5b48[235]]- _0x43b0x3[_0x5b48[235]];1E-7< Math[_0x5b48[425]](_0x43b0x14)&& (_0x43b0x4= (_0x43b0x4[_0x5b48[236]]- _0x43b0x3[_0x5b48[236]])/ _0x43b0x14,_0x43b0x3= _0x43b0x3[_0x5b48[236]]- _0x43b0x4* _0x43b0x3[_0x5b48[235]],_0x43b0x9= _0x43b0x4* _0x43b0x2+ _0x43b0x3,_0x43b0x12= _0x43b0x4* _0x43b0x13+ _0x43b0x3);_0x43b0x9> _0x43b0x12&& (_0x43b0x3= _0x43b0x12,_0x43b0x12= _0x43b0x9,_0x43b0x9= _0x43b0x3);_0x43b0x12> _0x43b0xa&& (_0x43b0x12= _0x43b0xa);_0x43b0x9< _0x43b0x5&& (_0x43b0x9= _0x43b0x5);return _0x43b0x9> _0x43b0x12?!1:!0},contains:function(_0x43b0x2,_0x43b0x3,_0x43b0x4){return _0x43b0x2[_0x5b48[235]]<= _0x43b0x3&& _0x43b0x2[_0x5b48[235]]+ _0x43b0x2[_0x5b48[117]]>= _0x43b0x3&& _0x43b0x2[_0x5b48[236]]<= _0x43b0x4&& _0x43b0x2[_0x5b48[236]]+ _0x43b0x2[_0x5b48[119]]>= _0x43b0x4},intersects:function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=_0x43b0x2[_0x5b48[117]],_0x43b0x5=_0x43b0x2[_0x5b48[119]],_0x43b0x9=_0x43b0x3[_0x5b48[117]],_0x43b0xa=_0x43b0x3[_0x5b48[119]];if(0>= _0x43b0x9|| 0>= _0x43b0xa|| 0>= _0x43b0x4|| 0>= _0x43b0x5){return !1};var _0x43b0x12=_0x43b0x2[_0x5b48[235]],_0x43b0x13=_0x43b0x2[_0x5b48[236]],_0x43b0x14=_0x43b0x3[_0x5b48[235]],_0x43b0x15=_0x43b0x3[_0x5b48[236]],_0x43b0x9=_0x43b0x9+ _0x43b0x14,_0x43b0xa=_0x43b0xa+ _0x43b0x15,_0x43b0x4=_0x43b0x4+ _0x43b0x12,_0x43b0x5=_0x43b0x5+ _0x43b0x13;return (_0x43b0x9< _0x43b0x14|| _0x43b0x9> _0x43b0x12)&& (_0x43b0xa< _0x43b0x15|| _0x43b0xa> _0x43b0x13)&& (_0x43b0x4< _0x43b0x12|| _0x43b0x4> _0x43b0x14)&& (_0x43b0x5< _0x43b0x13|| _0x43b0x5> _0x43b0x15)},intersectsHotspot:function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa){_0x43b0x5= null!= _0x43b0x5?_0x43b0x5:1;_0x43b0x9= null!= _0x43b0x9?_0x43b0x9:0;_0x43b0xa= null!= _0x43b0xa?_0x43b0xa:0;if(0< _0x43b0x5){var _0x43b0x12=_0x43b0x2[_0x5b48[241]](),_0x43b0x13=_0x43b0x2[_0x5b48[242]](),_0x43b0x14=_0x43b0x2[_0x5b48[117]],_0x43b0x15=_0x43b0x2[_0x5b48[119]],_0x43b0x16=mxUtils[_0x5b48[433]](_0x43b0x2[_0x5b48[124]],mxConstants.STYLE_STARTSIZE)* _0x43b0x2[_0x5b48[441]][_0x5b48[255]];0< _0x43b0x16&& (mxUtils[_0x5b48[433]](_0x43b0x2[_0x5b48[124]],mxConstants.STYLE_HORIZONTAL,!0)?(_0x43b0x13= _0x43b0x2[_0x5b48[236]]+ _0x43b0x16/ 2,_0x43b0x15= _0x43b0x16):(_0x43b0x12= _0x43b0x2[_0x5b48[235]]+ _0x43b0x16/ 2,_0x43b0x14= _0x43b0x16));_0x43b0x14= Math[_0x5b48[160]](_0x43b0x9,_0x43b0x14* _0x43b0x5);_0x43b0x15= Math[_0x5b48[160]](_0x43b0x9,_0x43b0x15* _0x43b0x5);0< _0x43b0xa&& (_0x43b0x14= Math[_0x5b48[243]](_0x43b0x14,_0x43b0xa),_0x43b0x15= Math[_0x5b48[243]](_0x43b0x15,_0x43b0xa));_0x43b0x5= new mxRectangle(_0x43b0x12- _0x43b0x14/ 2,_0x43b0x13- _0x43b0x15/ 2,_0x43b0x14,_0x43b0x15);_0x43b0x12= mxUtils[_0x5b48[431]](mxUtils[_0x5b48[433]](_0x43b0x2[_0x5b48[124]],mxConstants.STYLE_ROTATION)|| 0);0!= _0x43b0x12&& (_0x43b0x9= Math[_0x5b48[426]](-_0x43b0x12),_0x43b0xa= Math[_0x5b48[427]](-_0x43b0x12),_0x43b0x12= new mxPoint(_0x43b0x2[_0x5b48[241]](),_0x43b0x2[_0x5b48[242]]()),_0x43b0x2= mxUtils[_0x5b48[432]]( new mxPoint(_0x43b0x3,_0x43b0x4),_0x43b0x9,_0x43b0xa,_0x43b0x12),_0x43b0x3= _0x43b0x2[_0x5b48[235]],_0x43b0x4= _0x43b0x2[_0x5b48[236]]);return mxUtils[_0x5b48[442]](_0x43b0x5,_0x43b0x3,_0x43b0x4)};return !0},getOffset:function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=0,_0x43b0x5=0;if(null!= _0x43b0x3&& _0x43b0x3){var _0x43b0x9=document[_0x5b48[112]],_0x43b0xa=document[_0x5b48[158]],_0x43b0x4=_0x43b0x4+ (_0x43b0x9[_0x5b48[360]]|| _0x43b0xa[_0x5b48[360]]),_0x43b0x5=_0x43b0x5+ (_0x43b0x9[_0x5b48[190]]|| _0x43b0xa[_0x5b48[190]])};for(;_0x43b0x2[_0x5b48[443]];){_0x43b0x4+= _0x43b0x2[_0x5b48[358]],_0x43b0x5+= _0x43b0x2[_0x5b48[362]],_0x43b0x2= _0x43b0x2[_0x5b48[443]]};return new mxPoint(_0x43b0x4,_0x43b0x5)},getScrollOrigin:function(_0x43b0x2){for(var _0x43b0x3=document[_0x5b48[112]],_0x43b0x4=document[_0x5b48[158]],_0x43b0x5= new mxPoint(_0x43b0x3[_0x5b48[360]]|| _0x43b0x4[_0x5b48[360]],_0x43b0x3[_0x5b48[190]]|| _0x43b0x4[_0x5b48[190]]);null!= _0x43b0x2&& _0x43b0x2!= _0x43b0x3&& _0x43b0x2!= _0x43b0x4;){!isNaN(_0x43b0x2[_0x5b48[360]])&& !isNaN(_0x43b0x2[_0x5b48[190]]) && (_0x43b0x5[_0x5b48[235]]+= _0x43b0x2[_0x5b48[360]],_0x43b0x5[_0x5b48[236]]+= _0x43b0x2[_0x5b48[190]]),_0x43b0x2= _0x43b0x2[_0x5b48[265]]};return _0x43b0x5},convertPoint:function(_0x43b0x2,_0x43b0x3,_0x43b0x4){var _0x43b0x5=mxUtils[_0x5b48[444]](_0x43b0x2);_0x43b0x2= mxUtils[_0x5b48[445]](_0x43b0x2);_0x43b0x2[_0x5b48[235]]-= _0x43b0x5[_0x5b48[235]];_0x43b0x2[_0x5b48[236]]-= _0x43b0x5[_0x5b48[236]];return new mxPoint(_0x43b0x3- _0x43b0x2[_0x5b48[235]],_0x43b0x4- _0x43b0x2[_0x5b48[236]])},ltrim:function(_0x43b0x2,_0x43b0x3){return _0x43b0x2[_0x5b48[230]](RegExp(_0x5b48[446]+ (_0x43b0x3|| _0x5b48[447])+ _0x5b48[448],_0x5b48[449]),_0x5b48[110])},rtrim:function(_0x43b0x2,_0x43b0x3){return _0x43b0x2[_0x5b48[230]](RegExp(_0x5b48[450]+ (_0x43b0x3|| _0x5b48[447])+ _0x5b48[451],_0x5b48[449]),_0x5b48[110])},trim:function(_0x43b0x2,_0x43b0x3){return mxUtils[_0x5b48[453]](mxUtils[_0x5b48[452]](_0x43b0x2,_0x43b0x3),_0x43b0x3)},isNumeric:function(_0x43b0x2){return null!= _0x43b0x2&& (null== _0x43b0x2[_0x5b48[67]]|| 0< _0x43b0x2[_0x5b48[67]]&& 0> _0x43b0x2[_0x5b48[2]](_0x5b48[454])&& 0> _0x43b0x2[_0x5b48[2]](_0x5b48[455]))&& !isNaN(_0x43b0x2)},mod:function(_0x43b0x2,_0x43b0x3){return (_0x43b0x2% _0x43b0x3+ _0x43b0x3)% _0x43b0x3},intersection:function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa,_0x43b0x12,_0x43b0x13){var _0x43b0x14=(_0x43b0x13- _0x43b0xa)* (_0x43b0x4- _0x43b0x2)- (_0x43b0x12- _0x43b0x9)* (_0x43b0x5- _0x43b0x3);_0x43b0x12= ((_0x43b0x12- _0x43b0x9)* (_0x43b0x3- _0x43b0xa)- (_0x43b0x13- _0x43b0xa)* (_0x43b0x2- _0x43b0x9))/ _0x43b0x14;_0x43b0x9= ((_0x43b0x4- _0x43b0x2)* (_0x43b0x3- _0x43b0xa)- (_0x43b0x5- _0x43b0x3)* (_0x43b0x2- _0x43b0x9))/ _0x43b0x14;return 0<= _0x43b0x12&& 1>= _0x43b0x12&& 0<= _0x43b0x9&& 1>= _0x43b0x9? new mxPoint(_0x43b0x2+ _0x43b0x12* (_0x43b0x4- _0x43b0x2),_0x43b0x3+ _0x43b0x12* (_0x43b0x5- _0x43b0x3)):null},ptSegDistSq:function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa){_0x43b0x4-= _0x43b0x2;_0x43b0x5-= _0x43b0x3;_0x43b0x9-= _0x43b0x2;_0x43b0xa-= _0x43b0x3;0>= _0x43b0x9* _0x43b0x4+ _0x43b0xa* _0x43b0x5?_0x43b0x4= 0:(_0x43b0x9= _0x43b0x4- _0x43b0x9,_0x43b0xa= _0x43b0x5- _0x43b0xa,_0x43b0x2= _0x43b0x9* _0x43b0x4+ _0x43b0xa* _0x43b0x5,_0x43b0x4= 0>= _0x43b0x2?0:_0x43b0x2* _0x43b0x2/ (_0x43b0x4* _0x43b0x4+ _0x43b0x5* _0x43b0x5));_0x43b0x9= _0x43b0x9* _0x43b0x9+ _0x43b0xa* _0x43b0xa- _0x43b0x4;0> _0x43b0x9&& (_0x43b0x9= 0);return _0x43b0x9},relativeCcw:function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa){_0x43b0x4-= _0x43b0x2;_0x43b0x5-= _0x43b0x3;_0x43b0x9-= _0x43b0x2;_0x43b0xa-= _0x43b0x3;_0x43b0x2= _0x43b0x9* _0x43b0x5- _0x43b0xa* _0x43b0x4;0== _0x43b0x2&& (_0x43b0x2= _0x43b0x9* _0x43b0x4+ _0x43b0xa* _0x43b0x5,0< _0x43b0x2&& (_0x43b0x2= (_0x43b0x9- _0x43b0x4)* _0x43b0x4+ (_0x43b0xa- _0x43b0x5)* _0x43b0x5,0> _0x43b0x2&& (_0x43b0x2= 0)));return 0> _0x43b0x2?-1:0< _0x43b0x2?1:0},animateChanges:function(_0x43b0x2,_0x43b0x3){mxEffects[_0x5b48[456]][_0x5b48[183]](this,arguments)},cascadeOpacity:function(_0x43b0x2,_0x43b0x3,_0x43b0x4){mxEffects[_0x5b48[260]][_0x5b48[183]](this,arguments)},fadeOut:function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa){mxEffects[_0x5b48[457]][_0x5b48[183]](this,arguments)},setOpacity:function(_0x43b0x2,_0x43b0x3){mxUtils[_0x5b48[458]](_0x43b0x2)?_0x43b0x2[_0x5b48[124]][_0x5b48[347]]= 100<= _0x43b0x3?null:_0x5b48[459]+ _0x43b0x3/ 5+ _0x5b48[460]:mxClient[_0x5b48[80]]&& (_0x5b48[82]=== typeof document[_0x5b48[5]]|| 9> document[_0x5b48[5]])?_0x43b0x2[_0x5b48[124]][_0x5b48[347]]= 100<= _0x43b0x3?null:_0x5b48[459]+ _0x43b0x3+ _0x5b48[460]:_0x43b0x2[_0x5b48[124]][_0x5b48[461]]= _0x43b0x3/ 100},createImage:function(_0x43b0x2){var _0x43b0x3=null;mxClient[_0x5b48[49]]&& _0x5b48[462]!= document[_0x5b48[135]]?(_0x43b0x3= document[_0x5b48[55]](mxClient[_0x5b48[463]]+ _0x5b48[464]),_0x43b0x3[_0x5b48[57]](_0x5b48[390],_0x43b0x2),_0x43b0x3[_0x5b48[124]][_0x5b48[465]]= _0x5b48[130]):(_0x43b0x3= document[_0x5b48[55]](_0x5b48[466]),_0x43b0x3[_0x5b48[57]](_0x5b48[390],_0x43b0x2),_0x43b0x3[_0x5b48[57]](_0x5b48[467],_0x5b48[468]));return _0x43b0x3},sortCells:function(_0x43b0x2,_0x43b0x3){_0x43b0x3= null!= _0x43b0x3?_0x43b0x3:!0;var _0x43b0x4= new mxDictionary;_0x43b0x2[_0x5b48[470]](function(_0x43b0x2,_0x43b0x9){var _0x43b0xa=_0x43b0x4[_0x5b48[203]](_0x43b0x2);null== _0x43b0xa&& (_0x43b0xa= mxCellPath[_0x5b48[385]](_0x43b0x2)[_0x5b48[224]](mxCellPath.PATH_SEPARATOR),_0x43b0x4[_0x5b48[204]](_0x43b0x2,_0x43b0xa));var _0x43b0x12=_0x43b0x4[_0x5b48[203]](_0x43b0x9);null== _0x43b0x12&& (_0x43b0x12= mxCellPath[_0x5b48[385]](_0x43b0x9)[_0x5b48[224]](mxCellPath.PATH_SEPARATOR),_0x43b0x4[_0x5b48[204]](_0x43b0x9,_0x43b0x12));_0x43b0xa= mxCellPath[_0x5b48[469]](_0x43b0xa,_0x43b0x12);return 0== _0x43b0xa?0:0< _0x43b0xa== _0x43b0x3?1:-1});return _0x43b0x2},getStylename:function(_0x43b0x2){return null!= _0x43b0x2&& (_0x43b0x2= _0x43b0x2[_0x5b48[224]](_0x5b48[471])[0],0> _0x43b0x2[_0x5b48[2]](_0x5b48[226]))?_0x43b0x2:_0x5b48[110]},getStylenames:function(_0x43b0x2){var _0x43b0x3=[];if(null!= _0x43b0x2){_0x43b0x2= _0x43b0x2[_0x5b48[224]](_0x5b48[471]);for(var _0x43b0x4=0;_0x43b0x4< _0x43b0x2[_0x5b48[67]];_0x43b0x4++){0> _0x43b0x2[_0x43b0x4][_0x5b48[2]](_0x5b48[226])&& _0x43b0x3[_0x5b48[207]](_0x43b0x2[_0x43b0x4])}};return _0x43b0x3},indexOfStylename:function(_0x43b0x2,_0x43b0x3){if(null!= _0x43b0x2&& null!= _0x43b0x3){for(var _0x43b0x4=_0x43b0x2[_0x5b48[224]](_0x5b48[471]),_0x43b0x5=0,_0x43b0x9=0;_0x43b0x9< _0x43b0x4[_0x5b48[67]];_0x43b0x9++){if(_0x43b0x4[_0x43b0x9]== _0x43b0x3){return _0x43b0x5};_0x43b0x5+= _0x43b0x4[_0x43b0x9][_0x5b48[67]]+ 1}};return -1},addStylename:function(_0x43b0x2,_0x43b0x3){0> mxUtils[_0x5b48[472]](_0x43b0x2,_0x43b0x3)&& (null== _0x43b0x2?_0x43b0x2= _0x5b48[110]:0< _0x43b0x2[_0x5b48[67]]&& _0x5b48[471]!= _0x43b0x2[_0x5b48[225]](_0x43b0x2[_0x5b48[67]]- 1)&& (_0x43b0x2+= _0x5b48[471]),_0x43b0x2+= _0x43b0x3);return _0x43b0x2},removeStylename:function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=[];if(null!= _0x43b0x2){for(var _0x43b0x5=_0x43b0x2[_0x5b48[224]](_0x5b48[471]),_0x43b0x9=0;_0x43b0x9< _0x43b0x5[_0x5b48[67]];_0x43b0x9++){_0x43b0x5[_0x43b0x9]!= _0x43b0x3&& _0x43b0x4[_0x5b48[207]](_0x43b0x5[_0x43b0x9])}};return _0x43b0x4[_0x5b48[234]](_0x5b48[471])},removeAllStylenames:function(_0x43b0x2){var _0x43b0x3=[];if(null!= _0x43b0x2){_0x43b0x2= _0x43b0x2[_0x5b48[224]](_0x5b48[471]);for(var _0x43b0x4=0;_0x43b0x4< _0x43b0x2[_0x5b48[67]];_0x43b0x4++){0<= _0x43b0x2[_0x43b0x4][_0x5b48[2]](_0x5b48[226])&& _0x43b0x3[_0x5b48[207]](_0x43b0x2[_0x43b0x4])}};return _0x43b0x3[_0x5b48[234]](_0x5b48[471])},setCellStyles:function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){if(null!= _0x43b0x3&& 0< _0x43b0x3[_0x5b48[67]]){_0x43b0x2[_0x5b48[473]]();try{for(var _0x43b0x9=0;_0x43b0x9< _0x43b0x3[_0x5b48[67]];_0x43b0x9++){if(null!= _0x43b0x3[_0x43b0x9]){var _0x43b0xa=mxUtils[_0x5b48[475]](_0x43b0x2[_0x5b48[474]](_0x43b0x3[_0x43b0x9]),_0x43b0x4,_0x43b0x5);_0x43b0x2[_0x5b48[475]](_0x43b0x3[_0x43b0x9],_0x43b0xa)}}}finally{_0x43b0x2[_0x5b48[476]]()}}},setStyle:function(_0x43b0x2,_0x43b0x3,_0x43b0x4){var _0x43b0x5=null!= _0x43b0x4&& (_0x5b48[82]== typeof _0x43b0x4[_0x5b48[67]]|| 0< _0x43b0x4[_0x5b48[67]]);if(null== _0x43b0x2|| 0== _0x43b0x2[_0x5b48[67]]){_0x43b0x5&& (_0x43b0x2= _0x43b0x3+ _0x5b48[226]+ _0x43b0x4)}else {var _0x43b0x9=_0x43b0x2[_0x5b48[2]](_0x43b0x3+ _0x5b48[226]);0> _0x43b0x9?_0x43b0x5&& (_0x43b0x5= _0x5b48[471]== _0x43b0x2[_0x5b48[225]](_0x43b0x2[_0x5b48[67]]- 1)?_0x5b48[110]:_0x5b48[471],_0x43b0x2= _0x43b0x2+ _0x43b0x5+ _0x43b0x3+ _0x5b48[226]+ _0x43b0x4):(_0x43b0x3= _0x43b0x5?_0x43b0x3+ _0x5b48[226]+ _0x43b0x4:_0x5b48[110],_0x43b0x4= _0x43b0x2[_0x5b48[2]](_0x5b48[471],_0x43b0x9),_0x43b0x5|| _0x43b0x4++,_0x43b0x2= _0x43b0x2[_0x5b48[85]](0,_0x43b0x9)+ _0x43b0x3+ (_0x43b0x4> _0x43b0x9?_0x43b0x2[_0x5b48[85]](_0x43b0x4):_0x5b48[110]))};return _0x43b0x2},setCellStyleFlags:function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){if(null!= _0x43b0x3&& 0< _0x43b0x3[_0x5b48[67]]){_0x43b0x2[_0x5b48[473]]();try{for(var _0x43b0xa=0;_0x43b0xa< _0x43b0x3[_0x5b48[67]];_0x43b0xa++){if(null!= _0x43b0x3[_0x43b0xa]){var _0x43b0x12=mxUtils[_0x5b48[477]](_0x43b0x2[_0x5b48[474]](_0x43b0x3[_0x43b0xa]),_0x43b0x4,_0x43b0x5,_0x43b0x9);_0x43b0x2[_0x5b48[475]](_0x43b0x3[_0x43b0xa],_0x43b0x12)}}}finally{_0x43b0x2[_0x5b48[476]]()}}},setStyleFlag:function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){if(null== _0x43b0x2|| 0== _0x43b0x2[_0x5b48[67]]){_0x43b0x2= _0x43b0x5|| null== _0x43b0x5?_0x43b0x3+ _0x5b48[226]+ _0x43b0x4:_0x43b0x3+ _0x5b48[478]}else {var _0x43b0x9=_0x43b0x2[_0x5b48[2]](_0x43b0x3+ _0x5b48[226]);if(0> _0x43b0x9){_0x43b0x9= _0x5b48[471]== _0x43b0x2[_0x5b48[225]](_0x43b0x2[_0x5b48[67]]- 1)?_0x5b48[110]:_0x5b48[471],_0x43b0x2= _0x43b0x5|| null== _0x43b0x5?_0x43b0x2+ _0x43b0x9+ _0x43b0x3+ _0x5b48[226]+ _0x43b0x4:_0x43b0x2+ _0x43b0x9+ _0x43b0x3+ _0x5b48[478]}else {var _0x43b0xa=_0x43b0x2[_0x5b48[2]](_0x5b48[471],_0x43b0x9),_0x43b0x12=_0x5b48[110],_0x43b0x12=0> _0x43b0xa?_0x43b0x2[_0x5b48[85]](_0x43b0x9+ _0x43b0x3[_0x5b48[67]]+ 1):_0x43b0x2[_0x5b48[85]](_0x43b0x9+ _0x43b0x3[_0x5b48[67]]+ 1,_0x43b0xa),_0x43b0x12=null== _0x43b0x5?parseInt(_0x43b0x12)^ _0x43b0x4:_0x43b0x5?parseInt(_0x43b0x12)| _0x43b0x4:parseInt(_0x43b0x12)& ~_0x43b0x4;_0x43b0x2= _0x43b0x2[_0x5b48[85]](0,_0x43b0x9)+ _0x43b0x3+ _0x5b48[226]+ _0x43b0x12+ (0<= _0x43b0xa?_0x43b0x2[_0x5b48[85]](_0x43b0xa):_0x5b48[110])}};return _0x43b0x2},getAlignmentAsPoint:function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=0,_0x43b0x5=0;_0x43b0x2== mxConstants[_0x5b48[479]]?_0x43b0x4= -0.5:_0x43b0x2== mxConstants[_0x5b48[480]]&& (_0x43b0x4= -1);_0x43b0x3== mxConstants[_0x5b48[481]]?_0x43b0x5= -0.5:_0x43b0x3== mxConstants[_0x5b48[482]]&& (_0x43b0x5= -1);return new mxPoint(_0x43b0x4,_0x43b0x5)},getSizeForString:function(_0x43b0x2,_0x43b0x3,_0x43b0x4){_0x43b0x3= null!= _0x43b0x3?_0x43b0x3:mxConstants[_0x5b48[483]];_0x43b0x4= null!= _0x43b0x4?_0x43b0x4:mxConstants[_0x5b48[484]];var _0x43b0x5=document[_0x5b48[55]](_0x5b48[485]);_0x43b0x5[_0x5b48[124]][_0x5b48[486]]= _0x43b0x4;_0x43b0x5[_0x5b48[124]][_0x5b48[487]]= Math[_0x5b48[488]](_0x43b0x3)+ _0x5b48[168];_0x43b0x5[_0x5b48[124]][_0x5b48[489]]= Math[_0x5b48[488]](_0x43b0x3* mxConstants[_0x5b48[490]])+ _0x5b48[168];_0x43b0x5[_0x5b48[124]][_0x5b48[491]]= _0x5b48[492];_0x43b0x5[_0x5b48[124]][_0x5b48[493]]= _0x5b48[494];_0x43b0x5[_0x5b48[124]][_0x5b48[187]]= _0x5b48[188];_0x43b0x5[_0x5b48[124]][_0x5b48[495]]= mxClient[_0x5b48[496]]?_0x5b48[497]:_0x5b48[498];_0x43b0x5[_0x5b48[124]][_0x5b48[499]]= _0x5b48[500];_0x43b0x5[_0x5b48[339]]= _0x43b0x2;document[_0x5b48[112]][_0x5b48[62]](_0x43b0x5);_0x43b0x2= new mxRectangle(0,0,_0x43b0x5[_0x5b48[359]],_0x43b0x5[_0x5b48[167]]);document[_0x5b48[112]][_0x5b48[266]](_0x43b0x5);return _0x43b0x2},getViewXml:function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){_0x43b0x5= null!= _0x43b0x5?_0x43b0x5:0;_0x43b0x9= null!= _0x43b0x9?_0x43b0x9:0;_0x43b0x3= null!= _0x43b0x3?_0x43b0x3:1;null== _0x43b0x4&& (_0x43b0x4= [_0x43b0x2[_0x5b48[502]]()[_0x5b48[501]]()]);var _0x43b0xa=_0x43b0x2[_0x5b48[249]](),_0x43b0x12=null,_0x43b0x13=_0x43b0xa[_0x5b48[503]]();_0x43b0xa[_0x5b48[504]](!1);var _0x43b0x14=_0x43b0xa[_0x5b48[505]],_0x43b0x15=_0x43b0xa[_0x5b48[506]];_0x43b0x2[_0x5b48[507]]== mxConstants[_0x5b48[508]]?(_0x43b0xa[_0x5b48[505]]= document[_0x5b48[509]](mxConstants.NS_SVG,_0x5b48[449]),_0x43b0xa[_0x5b48[510]][_0x5b48[62]](_0x43b0xa[_0x5b48[505]]),_0x43b0xa[_0x5b48[506]]= document[_0x5b48[509]](mxConstants.NS_SVG,_0x5b48[449])):(_0x43b0xa[_0x5b48[505]]= _0x43b0xa[_0x5b48[505]][_0x5b48[511]](!1),_0x43b0xa[_0x5b48[510]][_0x5b48[62]](_0x43b0xa[_0x5b48[505]]),_0x43b0xa[_0x5b48[506]]= _0x43b0xa[_0x5b48[506]][_0x5b48[511]](!1));_0x43b0xa[_0x5b48[510]][_0x5b48[62]](_0x43b0xa[_0x5b48[506]]);var _0x43b0x16=_0x43b0xa[_0x5b48[512]]();_0x43b0xa[_0x5b48[513]]= new mxPoint(_0x43b0x5,_0x43b0x9);_0x43b0x3= new mxTemporaryCellStates(_0x43b0x2[_0x5b48[249]](),_0x43b0x3,_0x43b0x4);try{_0x43b0x12= ( new mxCodec)[_0x5b48[514]](_0x43b0x2[_0x5b48[249]]())}finally{_0x43b0x3[_0x5b48[515]](),_0x43b0xa[_0x5b48[513]]= _0x43b0x16,_0x43b0xa[_0x5b48[510]][_0x5b48[266]](_0x43b0xa[_0x5b48[505]]),_0x43b0xa[_0x5b48[510]][_0x5b48[266]](_0x43b0xa[_0x5b48[506]]),_0x43b0xa[_0x5b48[505]]= _0x43b0x14,_0x43b0xa[_0x5b48[506]]= _0x43b0x15,_0x43b0xa[_0x5b48[504]](_0x43b0x13)};return _0x43b0x12},getScaleForPageCount:function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){if(1> _0x43b0x2){return 1};_0x43b0x4= null!= _0x43b0x4?_0x43b0x4:mxConstants[_0x5b48[516]];_0x43b0x5= null!= _0x43b0x5?_0x43b0x5:0;var _0x43b0x9=_0x43b0x4[_0x5b48[117]]- 2* _0x43b0x5;_0x43b0x4= _0x43b0x4[_0x5b48[119]]- 2* _0x43b0x5;_0x43b0x5= _0x43b0x3[_0x5b48[517]]()[_0x5b48[238]]();_0x43b0x3= _0x43b0x3[_0x5b48[249]]()[_0x5b48[518]]();_0x43b0x5[_0x5b48[117]]/= _0x43b0x3;_0x43b0x5[_0x5b48[119]]/= _0x43b0x3;_0x43b0x3= _0x43b0x5[_0x5b48[117]];_0x43b0x4= _0x43b0x3/ _0x43b0x5[_0x5b48[119]]/ (_0x43b0x9/ _0x43b0x4);_0x43b0x5= Math[_0x5b48[428]](_0x43b0x2);var _0x43b0xa=Math[_0x5b48[428]](_0x43b0x4);_0x43b0x4= _0x43b0x5* _0x43b0xa;_0x43b0x5/= _0x43b0xa;if(1> _0x43b0x4&& _0x43b0x5> _0x43b0x2){var _0x43b0x12=_0x43b0x5/ _0x43b0x2;_0x43b0x5= _0x43b0x2;_0x43b0x4/= _0x43b0x12};1> _0x43b0x5&& _0x43b0x4> _0x43b0x2&& (_0x43b0x12= _0x43b0x4/ _0x43b0x2,_0x43b0x4= _0x43b0x2,_0x43b0x5/= _0x43b0x12);_0x43b0x12= Math[_0x5b48[430]](_0x43b0x4)* Math[_0x5b48[430]](_0x43b0x5);for(_0x43b0xa= 0;_0x43b0x12> _0x43b0x2;){var _0x43b0x12=Math[_0x5b48[519]](_0x43b0x4)/ _0x43b0x4,_0x43b0x13=Math[_0x5b48[519]](_0x43b0x5)/ _0x43b0x5;1== _0x43b0x12&& (_0x43b0x12= Math[_0x5b48[519]](_0x43b0x4- 1)/ _0x43b0x4);1== _0x43b0x13&& (_0x43b0x13= Math[_0x5b48[519]](_0x43b0x5- 1)/ _0x43b0x5);_0x43b0x12= _0x43b0x12> _0x43b0x13?_0x43b0x12:_0x43b0x13;_0x43b0x4*= _0x43b0x12;_0x43b0x5*= _0x43b0x12;_0x43b0x12= Math[_0x5b48[430]](_0x43b0x4)* Math[_0x5b48[430]](_0x43b0x5);_0x43b0xa++;if(10< _0x43b0xa){break}};return 0.99999* (_0x43b0x9* _0x43b0x4/ _0x43b0x3)},show:function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){_0x43b0x4= null!= _0x43b0x4?_0x43b0x4:0;_0x43b0x5= null!= _0x43b0x5?_0x43b0x5:0;null== _0x43b0x3?_0x43b0x3= window[_0x5b48[392]]()[_0x5b48[395]]:_0x43b0x3[_0x5b48[392]]();var _0x43b0x9=_0x43b0x2[_0x5b48[517]]();_0x43b0x4= -_0x43b0x9[_0x5b48[235]]+ _0x43b0x4;_0x43b0x5= -_0x43b0x9[_0x5b48[236]]+ _0x43b0x5;if(mxClient[_0x5b48[80]]){for(var _0x43b0x9=_0x5b48[520],_0x43b0xa=document[_0x5b48[64]](_0x5b48[521]),_0x43b0x12=0;_0x43b0x12< _0x43b0xa[_0x5b48[67]];_0x43b0x12++){_0x43b0x9+= _0x43b0xa[_0x43b0x12][_0x5b48[342]]};_0x43b0x9+= _0x5b48[522];for(_0x43b0x12= 0;_0x43b0x12< document[_0x5b48[523]][_0x5b48[67]];_0x43b0x12++){try{_0x43b0x9+= document[_0x5b48[523]](_0x43b0x12)[_0x5b48[103]]}catch(h){}};_0x43b0x9+= _0x5b48[524];_0x43b0x9+= _0x5b48[525];_0x43b0x9+= _0x43b0x2[_0x5b48[526]][_0x5b48[339]];_0x43b0x9+= _0x5b48[527];_0x43b0x9+= _0x5b48[528];_0x43b0x3[_0x5b48[171]](_0x43b0x9);_0x43b0x3[_0x5b48[268]]();_0x43b0x2= _0x43b0x3[_0x5b48[112]][_0x5b48[64]](_0x5b48[529])[0];null!= _0x43b0x2&& (_0x43b0x2[_0x5b48[124]][_0x5b48[491]]= _0x5b48[492],_0x43b0x2[_0x5b48[124]][_0x5b48[361]]= _0x43b0x4+ _0x5b48[168],_0x43b0x2[_0x5b48[124]][_0x5b48[125]]= _0x43b0x5+ _0x5b48[168])}else {_0x43b0x3[_0x5b48[171]](_0x5b48[530]);_0x43b0x3[_0x5b48[171]](_0x5b48[531]);_0x43b0xa= document[_0x5b48[64]](_0x5b48[521]);for(_0x43b0x12= 0;_0x43b0x12< _0x43b0xa[_0x5b48[67]];_0x43b0x12++){_0x43b0x3[_0x5b48[171]](mxUtils[_0x5b48[532]](_0x43b0xa[_0x43b0x12]))};_0x43b0xa= document[_0x5b48[64]](_0x5b48[54]);for(_0x43b0x12= 0;_0x43b0x12< _0x43b0xa[_0x5b48[67]];_0x43b0x12++){_0x43b0x3[_0x5b48[171]](mxUtils[_0x5b48[532]](_0x43b0xa[_0x43b0x12]))};_0x43b0xa= document[_0x5b48[64]](_0x5b48[124]);for(_0x43b0x12= 0;_0x43b0x12< _0x43b0xa[_0x5b48[67]];_0x43b0x12++){_0x43b0x3[_0x5b48[171]](mxUtils[_0x5b48[532]](_0x43b0xa[_0x43b0x12]))};_0x43b0x3[_0x5b48[171]](_0x5b48[533]);_0x43b0x3[_0x5b48[171]](_0x5b48[534]);_0x43b0x3[_0x5b48[268]]();null== _0x43b0x3[_0x5b48[112]]&& _0x43b0x3[_0x5b48[158]][_0x5b48[62]](_0x43b0x3[_0x5b48[55]](_0x5b48[112]));_0x43b0x3[_0x5b48[112]][_0x5b48[124]][_0x5b48[277]]= _0x5b48[278];for(_0x43b0x2= _0x43b0x2[_0x5b48[526]][_0x5b48[285]];null!= _0x43b0x2;){_0x43b0x12= _0x43b0x2[_0x5b48[511]](!0),_0x43b0x3[_0x5b48[112]][_0x5b48[62]](_0x43b0x12),_0x43b0x2= _0x43b0x2[_0x5b48[287]]};_0x43b0x2= _0x43b0x3[_0x5b48[64]](_0x5b48[449])[0];null!= _0x43b0x2&& (_0x43b0x2[_0x5b48[57]](_0x5b48[535],_0x5b48[536]+ _0x43b0x4+ _0x5b48[537]+ _0x43b0x5+ _0x5b48[460]),_0x43b0x4= _0x43b0x2[_0x5b48[538]],_0x43b0x4[_0x5b48[57]](_0x5b48[117],_0x43b0x9[_0x5b48[117]]+ Math[_0x5b48[160]](_0x43b0x9[_0x5b48[235]],0)+ 3),_0x43b0x4[_0x5b48[57]](_0x5b48[119],_0x43b0x9[_0x5b48[119]]+ Math[_0x5b48[160]](_0x43b0x9[_0x5b48[236]],0)+ 3))};mxUtils[_0x5b48[272]](_0x43b0x3[_0x5b48[112]]);return _0x43b0x3},printScreen:function(_0x43b0x2){var _0x43b0x3=window[_0x5b48[392]]();mxUtils[_0x5b48[539]](_0x43b0x2,_0x43b0x3[_0x5b48[395]]);_0x43b0x2= function(){_0x43b0x3[_0x5b48[393]]();_0x43b0x3[_0x5b48[540]]();_0x43b0x3[_0x5b48[268]]()};mxClient[_0x5b48[76]]?_0x43b0x3[_0x5b48[261]](_0x43b0x2,500):_0x43b0x2()},popup:function(_0x43b0x2,_0x43b0x3){if(_0x43b0x3){var _0x43b0x4=document[_0x5b48[55]](_0x5b48[485]);_0x43b0x4[_0x5b48[124]][_0x5b48[277]]= _0x5b48[276];_0x43b0x4[_0x5b48[124]][_0x5b48[117]]= _0x5b48[541];_0x43b0x4[_0x5b48[124]][_0x5b48[119]]= _0x5b48[542];var _0x43b0x5=document[_0x5b48[55]](_0x5b48[543]);_0x43b0x5[_0x5b48[339]]= mxUtils[_0x5b48[321]](_0x43b0x2,!1)[_0x5b48[230]](/\n/g,_0x5b48[545])[_0x5b48[230]](/ /g,_0x5b48[544]);_0x43b0x4[_0x5b48[62]](_0x43b0x5);_0x43b0x4= new mxWindow(_0x5b48[546],_0x43b0x4,document[_0x5b48[112]][_0x5b48[159]]/ 2- 320,(document[_0x5b48[112]][_0x5b48[157]]|| document[_0x5b48[158]][_0x5b48[157]])/ 2- 240,640,480,!1,!0);_0x43b0x4[_0x5b48[164]](!0);_0x43b0x4[_0x5b48[175]](!0)}else {mxClient[_0x5b48[133]]?(_0x43b0x4= window[_0x5b48[392]](),_0x43b0x4[_0x5b48[395]][_0x5b48[171]](_0x5b48[547]+ mxUtils[_0x5b48[321]](_0x43b0x2)+ _0x5b48[548]),_0x43b0x4[_0x5b48[395]][_0x5b48[268]]()):(_0x43b0x4= window[_0x5b48[392]](),_0x43b0x5= _0x43b0x4[_0x5b48[395]][_0x5b48[55]](_0x5b48[543]),_0x43b0x5[_0x5b48[339]]= mxUtils[_0x5b48[321]](_0x43b0x2,!1)[_0x5b48[230]](/\n/g,_0x5b48[545])[_0x5b48[230]](/ /g,_0x5b48[544]),_0x43b0x4[_0x5b48[395]][_0x5b48[112]][_0x5b48[62]](_0x43b0x5))}},alert:function(_0x43b0x2){alert(_0x43b0x2)},prompt:function(_0x43b0x2,_0x43b0x3){return prompt(_0x43b0x2,_0x43b0x3)},confirm:function(_0x43b0x2){return confirm(_0x43b0x2)},error:function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){var _0x43b0x9=document[_0x5b48[55]](_0x5b48[485]);_0x43b0x9[_0x5b48[124]][_0x5b48[549]]= _0x5b48[550];var _0x43b0xa=document[_0x5b48[55]](_0x5b48[466]);_0x43b0xa[_0x5b48[57]](_0x5b48[390],_0x43b0x5|| mxUtils[_0x5b48[551]]);_0x43b0xa[_0x5b48[57]](_0x5b48[552],_0x5b48[553]);_0x43b0xa[_0x5b48[124]][_0x5b48[123]]= _0x5b48[554];_0x43b0x9[_0x5b48[62]](_0x43b0xa);_0x43b0x9[_0x5b48[62]](document[_0x5b48[344]](_0x5b48[555]));_0x43b0x9[_0x5b48[62]](document[_0x5b48[344]](_0x5b48[555]));_0x43b0x9[_0x5b48[62]](document[_0x5b48[344]](_0x5b48[555]));mxUtils[_0x5b48[53]](_0x43b0x9,_0x43b0x2);_0x43b0x2= document[_0x5b48[112]][_0x5b48[159]];_0x43b0x5= document[_0x5b48[112]][_0x5b48[157]]|| document[_0x5b48[158]][_0x5b48[157]];var _0x43b0x12= new mxWindow(mxResources[_0x5b48[203]](mxUtils[_0x5b48[556]])|| mxUtils[_0x5b48[556]],_0x43b0x9,(_0x43b0x2- _0x43b0x3)/ 2,_0x43b0x5/ 4,_0x43b0x3,null,!1,!0);_0x43b0x4&& (mxUtils[_0x5b48[345]](_0x43b0x9),_0x43b0x3= document[_0x5b48[55]](_0x5b48[346]),_0x43b0x4= document[_0x5b48[55]](_0x5b48[172]),mxClient[_0x5b48[80]]?_0x43b0x4[_0x5b48[124]][_0x5b48[103]]= _0x5b48[557]:_0x43b0x4[_0x5b48[57]](_0x5b48[124],_0x5b48[557]),mxEvent[_0x5b48[169]](_0x43b0x4,_0x5b48[173],function(_0x43b0x2){_0x43b0x12[_0x5b48[515]]()}),mxUtils[_0x5b48[53]](_0x43b0x4,mxResources[_0x5b48[203]](mxUtils[_0x5b48[558]])|| mxUtils[_0x5b48[558]]),_0x43b0x3[_0x5b48[62]](_0x43b0x4),_0x43b0x9[_0x5b48[62]](_0x43b0x3),mxUtils[_0x5b48[345]](_0x43b0x9),_0x43b0x12[_0x5b48[164]](!0));_0x43b0x12[_0x5b48[175]](!0);return _0x43b0x12},makeDraggable:function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa,_0x43b0x12,_0x43b0x13,_0x43b0x14,_0x43b0x15){_0x43b0x2= new mxDragSource(_0x43b0x2,_0x43b0x4);_0x43b0x2[_0x5b48[559]]= new mxPoint(null!= _0x43b0x9?_0x43b0x9:0,null!= _0x43b0xa?_0x43b0xa:mxConstants[_0x5b48[560]]);_0x43b0x2[_0x5b48[561]]= _0x43b0x12;_0x43b0x2[_0x5b48[562]](!1);null!= _0x43b0x14&& (_0x43b0x2[_0x5b48[563]]= _0x43b0x14);null!= _0x43b0x15&& (_0x43b0x2[_0x5b48[564]]= _0x43b0x15);_0x43b0x2[_0x5b48[565]]= function(_0x43b0x2){return _0x5b48[279]== typeof _0x43b0x3?_0x43b0x3(_0x43b0x2):_0x43b0x3};null!= _0x43b0x5&& (_0x43b0x2[_0x5b48[566]]= function(){return _0x43b0x5[_0x5b48[511]](!0)},_0x43b0x13&& (_0x43b0x2[_0x5b48[567]]= function(_0x43b0x2){var _0x43b0x3=_0x43b0x5[_0x5b48[511]](!0),_0x43b0x4=parseInt(_0x43b0x3[_0x5b48[124]][_0x5b48[117]]),_0x43b0x9=parseInt(_0x43b0x3[_0x5b48[124]][_0x5b48[119]]);_0x43b0x3[_0x5b48[124]][_0x5b48[117]]= Math[_0x5b48[488]](_0x43b0x4* _0x43b0x2[_0x5b48[441]][_0x5b48[255]])+ _0x5b48[168];_0x43b0x3[_0x5b48[124]][_0x5b48[119]]= Math[_0x5b48[488]](_0x43b0x9* _0x43b0x2[_0x5b48[441]][_0x5b48[255]])+ _0x5b48[168];return _0x43b0x3}));return _0x43b0x2}},mxConstants={DEFAULT_HOTSPOT:0.3,MIN_HOTSPOT_SIZE:8,MAX_HOTSPOT_SIZE:0,RENDERING_HINT_EXACT:_0x5b48[568],RENDERING_HINT_FASTER:_0x5b48[569],RENDERING_HINT_FASTEST:_0x5b48[570],DIALECT_SVG:_0x5b48[571],DIALECT_VML:_0x5b48[572],DIALECT_MIXEDHTML:_0x5b48[573],DIALECT_PREFERHTML:_0x5b48[574],DIALECT_STRICTHTML:_0x5b48[575],NS_SVG:_0x5b48[576],NS_XHTML:_0x5b48[577],NS_XLINK:_0x5b48[578],SHADOWCOLOR:_0x5b48[579],SHADOW_OFFSET_X:2,SHADOW_OFFSET_Y:3,SHADOW_OPACITY:1,NODETYPE_ELEMENT:1,NODETYPE_ATTRIBUTE:2,NODETYPE_TEXT:3,NODETYPE_CDATA:4,NODETYPE_ENTITY_REFERENCE:5,NODETYPE_ENTITY:6,NODETYPE_PROCESSING_INSTRUCTION:7,NODETYPE_COMMENT:8,NODETYPE_DOCUMENT:9,NODETYPE_DOCUMENTTYPE:10,NODETYPE_DOCUMENT_FRAGMENT:11,NODETYPE_NOTATION:12,TOOLTIP_VERTICAL_OFFSET:16,DEFAULT_VALID_COLOR:_0x5b48[580],DEFAULT_INVALID_COLOR:_0x5b48[581],HIGHLIGHT_STROKEWIDTH:3,CURSOR_MOVABLE_VERTEX:_0x5b48[582],CURSOR_MOVABLE_EDGE:_0x5b48[582],CURSOR_LABEL_HANDLE:_0x5b48[583],CURSOR_BEND_HANDLE:_0x5b48[356],CURSOR_CONNECT:_0x5b48[356],HIGHLIGHT_COLOR:_0x5b48[580],CONNECT_TARGET_COLOR:_0x5b48[584],INVALID_CONNECT_TARGET_COLOR:_0x5b48[581],DROP_TARGET_COLOR:_0x5b48[584],VALID_COLOR:_0x5b48[580],INVALID_COLOR:_0x5b48[581],EDGE_SELECTION_COLOR:_0x5b48[580],VERTEX_SELECTION_COLOR:_0x5b48[580],VERTEX_SELECTION_STROKEWIDTH:1,EDGE_SELECTION_STROKEWIDTH:1,VERTEX_SELECTION_DASHED:!0,EDGE_SELECTION_DASHED:!0,GUIDE_COLOR:_0x5b48[581],GUIDE_STROKEWIDTH:1,OUTLINE_COLOR:_0x5b48[585],OUTLINE_STROKEWIDTH:mxClient[_0x5b48[80]]?2:3,HANDLE_SIZE:7,LABEL_HANDLE_SIZE:4,HANDLE_FILLCOLOR:_0x5b48[580],HANDLE_STROKECOLOR:_0x5b48[586],LABEL_HANDLE_FILLCOLOR:_0x5b48[587],CONNECT_HANDLE_FILLCOLOR:_0x5b48[584],LOCKED_HANDLE_FILLCOLOR:_0x5b48[581],OUTLINE_HANDLE_FILLCOLOR:_0x5b48[588],OUTLINE_HANDLE_STROKECOLOR:_0x5b48[589],DEFAULT_FONTFAMILY:_0x5b48[590],DEFAULT_FONTSIZE:11,LINE_HEIGHT:1.2,DEFAULT_FONTSTYLE:0,DEFAULT_STARTSIZE:40,DEFAULT_MARKERSIZE:6,DEFAULT_IMAGESIZE:24,ENTITY_SEGMENT:30,RECTANGLE_ROUNDING_FACTOR:0.15,LINE_ARCSIZE:20,ARROW_SPACING:10,ARROW_WIDTH:30,ARROW_SIZE:30,PAGE_FORMAT_A4_PORTRAIT: new mxRectangle(0,0,826,1169),PAGE_FORMAT_A4_LANDSCAPE: new mxRectangle(0,0,1169,826),PAGE_FORMAT_LETTER_PORTRAIT: new mxRectangle(0,0,850,1100),PAGE_FORMAT_LETTER_LANDSCAPE: new mxRectangle(0,0,1100,850),NONE:_0x5b48[130],STYLE_PERIMETER:_0x5b48[591],STYLE_SOURCE_PORT:_0x5b48[592],STYLE_TARGET_PORT:_0x5b48[593],STYLE_PORT_CONSTRAINT:_0x5b48[594],STYLE_OPACITY:_0x5b48[461],STYLE_TEXT_OPACITY:_0x5b48[595],STYLE_OVERFLOW:_0x5b48[277],STYLE_ORTHOGONAL:_0x5b48[596],STYLE_EXIT_X:_0x5b48[597],STYLE_EXIT_Y:_0x5b48[598],STYLE_EXIT_PERIMETER:_0x5b48[599],STYLE_ENTRY_X:_0x5b48[600],STYLE_ENTRY_Y:_0x5b48[601],STYLE_ENTRY_PERIMETER:_0x5b48[602],STYLE_WHITE_SPACE:_0x5b48[493],STYLE_ROTATION:_0x5b48[603],STYLE_FILLCOLOR:_0x5b48[604],STYLE_SWIMLANE_FILLCOLOR:_0x5b48[605],STYLE_GRADIENTCOLOR:_0x5b48[606],STYLE_GRADIENT_DIRECTION:_0x5b48[607],STYLE_STROKECOLOR:_0x5b48[608],STYLE_SEPARATORCOLOR:_0x5b48[609],STYLE_STROKEWIDTH:_0x5b48[610],STYLE_ALIGN:_0x5b48[611],STYLE_VERTICAL_ALIGN:_0x5b48[123],STYLE_LABEL_POSITION:_0x5b48[612],STYLE_VERTICAL_LABEL_POSITION:_0x5b48[613],STYLE_IMAGE_ASPECT:_0x5b48[614],STYLE_IMAGE_ALIGN:_0x5b48[615],STYLE_IMAGE_VERTICAL_ALIGN:_0x5b48[616],STYLE_GLASS:_0x5b48[617],STYLE_IMAGE:_0x5b48[618],STYLE_IMAGE_WIDTH:_0x5b48[619],STYLE_IMAGE_HEIGHT:_0x5b48[620],STYLE_IMAGE_BACKGROUND:_0x5b48[621],STYLE_IMAGE_BORDER:_0x5b48[622],STYLE_FLIPH:_0x5b48[623],STYLE_FLIPV:_0x5b48[624],STYLE_NOLABEL:_0x5b48[625],STYLE_NOEDGESTYLE:_0x5b48[626],STYLE_LABEL_BACKGROUNDCOLOR:_0x5b48[627],STYLE_LABEL_BORDERCOLOR:_0x5b48[628],STYLE_LABEL_PADDING:_0x5b48[629],STYLE_INDICATOR_SHAPE:_0x5b48[630],STYLE_INDICATOR_IMAGE:_0x5b48[631],STYLE_INDICATOR_COLOR:_0x5b48[632],STYLE_INDICATOR_STROKECOLOR:_0x5b48[633],STYLE_INDICATOR_GRADIENTCOLOR:_0x5b48[634],STYLE_INDICATOR_SPACING:_0x5b48[635],STYLE_INDICATOR_WIDTH:_0x5b48[636],STYLE_INDICATOR_HEIGHT:_0x5b48[637],STYLE_INDICATOR_DIRECTION:_0x5b48[638],STYLE_SHADOW:_0x5b48[639],STYLE_SEGMENT:_0x5b48[640],STYLE_ENDARROW:_0x5b48[641],STYLE_STARTARROW:_0x5b48[642],STYLE_ENDSIZE:_0x5b48[643],STYLE_STARTSIZE:_0x5b48[644],STYLE_SWIMLANE_LINE:_0x5b48[645],STYLE_ENDFILL:_0x5b48[646],STYLE_STARTFILL:_0x5b48[647],STYLE_DASHED:_0x5b48[648],STYLE_DASH_PATTERN:_0x5b48[649],STYLE_ROUNDED:_0x5b48[650],STYLE_CURVED:_0x5b48[651],STYLE_ARCSIZE:_0x5b48[652],STYLE_SMOOTH:_0x5b48[653],STYLE_SOURCE_PERIMETER_SPACING:_0x5b48[654],STYLE_TARGET_PERIMETER_SPACING:_0x5b48[655],STYLE_PERIMETER_SPACING:_0x5b48[656],STYLE_SPACING:_0x5b48[657],STYLE_SPACING_TOP:_0x5b48[658],STYLE_SPACING_LEFT:_0x5b48[659],STYLE_SPACING_BOTTOM:_0x5b48[660],STYLE_SPACING_RIGHT:_0x5b48[661],STYLE_HORIZONTAL:_0x5b48[662],STYLE_DIRECTION:_0x5b48[663],STYLE_ELBOW:_0x5b48[664],STYLE_FONTCOLOR:_0x5b48[665],STYLE_FONTFAMILY:_0x5b48[486],STYLE_FONTSIZE:_0x5b48[487],STYLE_FONTSTYLE:_0x5b48[666],STYLE_AUTOSIZE:_0x5b48[667],STYLE_FOLDABLE:_0x5b48[668],STYLE_EDITABLE:_0x5b48[669],STYLE_BENDABLE:_0x5b48[670],STYLE_MOVABLE:_0x5b48[671],STYLE_RESIZABLE:_0x5b48[672],STYLE_CLONEABLE:_0x5b48[673],STYLE_DELETABLE:_0x5b48[674],STYLE_SHAPE:_0x5b48[253],STYLE_EDGE:_0x5b48[675],STYLE_LOOP:_0x5b48[676],STYLE_ROUTING_CENTER_X:_0x5b48[677],STYLE_ROUTING_CENTER_Y:_0x5b48[678],FONT_BOLD:1,FONT_ITALIC:2,FONT_UNDERLINE:4,FONT_SHADOW:8,SHAPE_RECTANGLE:_0x5b48[679],SHAPE_ELLIPSE:_0x5b48[680],SHAPE_DOUBLE_ELLIPSE:_0x5b48[681],SHAPE_RHOMBUS:_0x5b48[682],SHAPE_LINE:_0x5b48[683],SHAPE_IMAGE:_0x5b48[618],SHAPE_ARROW:_0x5b48[684],SHAPE_LABEL:_0x5b48[685],SHAPE_CYLINDER:_0x5b48[686],SHAPE_SWIMLANE:_0x5b48[687],SHAPE_CONNECTOR:_0x5b48[688],SHAPE_ACTOR:_0x5b48[689],SHAPE_CLOUD:_0x5b48[690],SHAPE_TRIANGLE:_0x5b48[691],SHAPE_HEXAGON:_0x5b48[692],ARROW_CLASSIC:_0x5b48[693],ARROW_BLOCK:_0x5b48[694],ARROW_OPEN:_0x5b48[392],ARROW_OVAL:_0x5b48[695],ARROW_DIAMOND:_0x5b48[696],ARROW_DIAMOND_THIN:_0x5b48[697],ALIGN_LEFT:_0x5b48[361],ALIGN_CENTER:_0x5b48[698],ALIGN_RIGHT:_0x5b48[699],ALIGN_TOP:_0x5b48[125],ALIGN_MIDDLE:_0x5b48[554],ALIGN_BOTTOM:_0x5b48[553],DIRECTION_NORTH:_0x5b48[700],DIRECTION_SOUTH:_0x5b48[701],DIRECTION_EAST:_0x5b48[702],DIRECTION_WEST:_0x5b48[703],DIRECTION_MASK_NONE:0,DIRECTION_MASK_WEST:1,DIRECTION_MASK_NORTH:2,DIRECTION_MASK_SOUTH:4,DIRECTION_MASK_EAST:8,DIRECTION_MASK_ALL:15,ELBOW_VERTICAL:_0x5b48[704],ELBOW_HORIZONTAL:_0x5b48[662],EDGESTYLE_ELBOW:_0x5b48[705],EDGESTYLE_ENTITY_RELATION:_0x5b48[706],EDGESTYLE_LOOP:_0x5b48[707],EDGESTYLE_SIDETOSIDE:_0x5b48[708],EDGESTYLE_TOPTOBOTTOM:_0x5b48[709],EDGESTYLE_ORTHOGONAL:_0x5b48[710],EDGESTYLE_SEGMENT:_0x5b48[711],PERIMETER_ELLIPSE:_0x5b48[712],PERIMETER_RECTANGLE:_0x5b48[713],PERIMETER_RHOMBUS:_0x5b48[714],PERIMETER_TRIANGLE:_0x5b48[715]};function mxEventObject(_0x43b0x2){this[_0x5b48[298]]= _0x43b0x2;this[_0x5b48[716]]= [];for(var _0x43b0x3=1;_0x43b0x3< arguments[_0x5b48[67]];_0x43b0x3+= 2){null!= arguments[_0x43b0x3+ 1]&& (this[_0x5b48[716]][arguments[_0x43b0x3]]= arguments[_0x43b0x3+ 1])}}mxEventObject[_0x5b48[202]][_0x5b48[298]]= null;mxEventObject[_0x5b48[202]][_0x5b48[716]]= null;mxEventObject[_0x5b48[202]][_0x5b48[717]]= !1;mxEventObject[_0x5b48[202]][_0x5b48[718]]= function(){return this[_0x5b48[298]]};mxEventObject[_0x5b48[202]][_0x5b48[719]]= function(){return this[_0x5b48[716]]};mxEventObject[_0x5b48[202]][_0x5b48[720]]= function(_0x43b0x2){return this[_0x5b48[716]][_0x43b0x2]};mxEventObject[_0x5b48[202]][_0x5b48[721]]= function(){return this[_0x5b48[717]]};mxEventObject[_0x5b48[202]][_0x5b48[722]]= function(){this[_0x5b48[717]]= !0};function mxMouseEvent(_0x43b0x2,_0x43b0x3){this[_0x5b48[723]]= _0x43b0x2;this[_0x5b48[724]]= _0x43b0x3}mxMouseEvent[_0x5b48[202]][_0x5b48[717]]= !1;mxMouseEvent[_0x5b48[202]][_0x5b48[723]]= null;mxMouseEvent[_0x5b48[202]][_0x5b48[725]]= null;mxMouseEvent[_0x5b48[202]][_0x5b48[726]]= null;mxMouseEvent[_0x5b48[202]][_0x5b48[724]]= null;mxMouseEvent[_0x5b48[202]][_0x5b48[727]]= function(){return this[_0x5b48[723]]};mxMouseEvent[_0x5b48[202]][_0x5b48[728]]= function(){return mxEvent[_0x5b48[728]](this[_0x5b48[723]])};mxMouseEvent[_0x5b48[202]][_0x5b48[729]]= function(_0x43b0x2){if(null!= _0x43b0x2){for(var _0x43b0x3=this[_0x5b48[728]]();null!= _0x43b0x3;){if(_0x43b0x3== _0x43b0x2[_0x5b48[252]]){return !0};_0x43b0x3= _0x43b0x3[_0x5b48[265]]}};return !1};mxMouseEvent[_0x5b48[202]][_0x5b48[730]]= function(){return mxEvent[_0x5b48[731]](this[_0x5b48[727]]())};mxMouseEvent[_0x5b48[202]][_0x5b48[732]]= function(){return mxEvent[_0x5b48[733]](this[_0x5b48[727]]())};mxMouseEvent[_0x5b48[202]][_0x5b48[734]]= function(){return this[_0x5b48[725]]};mxMouseEvent[_0x5b48[202]][_0x5b48[735]]= function(){return this[_0x5b48[726]]};mxMouseEvent[_0x5b48[202]][_0x5b48[248]]= function(){return this[_0x5b48[724]]};mxMouseEvent[_0x5b48[202]][_0x5b48[736]]= function(){var _0x43b0x2=this[_0x5b48[248]]();return null!= _0x43b0x2?_0x43b0x2[_0x5b48[246]]:null};mxMouseEvent[_0x5b48[202]][_0x5b48[737]]= function(){return mxEvent[_0x5b48[737]](this[_0x5b48[727]]())};mxMouseEvent[_0x5b48[202]][_0x5b48[721]]= function(){return this[_0x5b48[717]]};mxMouseEvent[_0x5b48[202]][_0x5b48[722]]= function(_0x43b0x2){(null!= _0x43b0x2?_0x43b0x2:1)&& this[_0x5b48[723]][_0x5b48[738]]&& this[_0x5b48[723]][_0x5b48[738]]();this[_0x5b48[723]][_0x5b48[739]]= !1;this[_0x5b48[717]]= !0};function mxEventSource(_0x43b0x2){this[_0x5b48[740]](_0x43b0x2)}mxEventSource[_0x5b48[202]][_0x5b48[741]]= null;mxEventSource[_0x5b48[202]][_0x5b48[742]]= !0;mxEventSource[_0x5b48[202]][_0x5b48[743]]= null;mxEventSource[_0x5b48[202]][_0x5b48[503]]= function(){return this[_0x5b48[742]]};mxEventSource[_0x5b48[202]][_0x5b48[504]]= function(_0x43b0x2){this[_0x5b48[742]]= _0x43b0x2};mxEventSource[_0x5b48[202]][_0x5b48[744]]= function(){return this[_0x5b48[743]]};mxEventSource[_0x5b48[202]][_0x5b48[740]]= function(_0x43b0x2){this[_0x5b48[743]]= _0x43b0x2};mxEventSource[_0x5b48[202]][_0x5b48[169]]= function(_0x43b0x2,_0x43b0x3){null== this[_0x5b48[741]]&& (this[_0x5b48[741]]= []);this[_0x5b48[741]][_0x5b48[207]](_0x43b0x2);this[_0x5b48[741]][_0x5b48[207]](_0x43b0x3)};mxEventSource[_0x5b48[202]][_0x5b48[745]]= function(_0x43b0x2){if(null!= this[_0x5b48[741]]){for(var _0x43b0x3=0;_0x43b0x3< this[_0x5b48[741]][_0x5b48[67]];){this[_0x5b48[741]][_0x43b0x3+ 1]== _0x43b0x2?this[_0x5b48[741]][_0x5b48[300]](_0x43b0x3,2):_0x43b0x3+= 2}}};mxEventSource[_0x5b48[202]][_0x5b48[746]]= function(_0x43b0x2,_0x43b0x3){if(null!= this[_0x5b48[741]]&& this[_0x5b48[503]]()){null== _0x43b0x2&& (_0x43b0x2= new mxEventObject);null== _0x43b0x3&& (_0x43b0x3= this[_0x5b48[744]]());null== _0x43b0x3&& (_0x43b0x3= this);for(var _0x43b0x4=[_0x43b0x3,_0x43b0x2],_0x43b0x5=0;_0x43b0x5< this[_0x5b48[741]][_0x5b48[67]];_0x43b0x5+= 2){var _0x43b0x9=this[_0x5b48[741]][_0x43b0x5];(null== _0x43b0x9|| _0x43b0x9== _0x43b0x2[_0x5b48[718]]())&& this[_0x5b48[741]][_0x43b0x5+ 1][_0x5b48[183]](this,_0x43b0x4)}}};var mxEvent={objects:[],addListener:function(){var _0x43b0x2=function(_0x43b0x2,_0x43b0x4,_0x43b0x5){null== _0x43b0x2[_0x5b48[69]]&& (_0x43b0x2[_0x5b48[69]]= [],mxEvent[_0x5b48[68]][_0x5b48[207]](_0x43b0x2));_0x43b0x2[_0x5b48[69]][_0x5b48[207]]({name:_0x43b0x4,f:_0x43b0x5})};return window[_0x5b48[418]]?function(_0x43b0x3,_0x43b0x4,_0x43b0x5){_0x43b0x3[_0x5b48[418]](_0x43b0x4,_0x43b0x5,!1);_0x43b0x2(_0x43b0x3,_0x43b0x4,_0x43b0x5)}:function(_0x43b0x3,_0x43b0x4,_0x43b0x5){_0x43b0x3[_0x5b48[108]](_0x5b48[747]+ _0x43b0x4,_0x43b0x5);_0x43b0x2(_0x43b0x3,_0x43b0x4,_0x43b0x5)}}(),removeListener:function(){var _0x43b0x2=function(_0x43b0x2,_0x43b0x4,_0x43b0x5){if(null!= _0x43b0x2[_0x5b48[69]]){_0x43b0x4= _0x43b0x2[_0x5b48[69]][_0x5b48[67]];for(var _0x43b0x9=0;_0x43b0x9< _0x43b0x4;_0x43b0x9++){if(_0x43b0x2[_0x5b48[69]][_0x43b0x9][_0x5b48[748]]== _0x43b0x5){_0x43b0x2[_0x5b48[69]][_0x5b48[300]](_0x43b0x9,1);break}};0== _0x43b0x2[_0x5b48[69]][_0x5b48[67]]&& (_0x43b0x2[_0x5b48[69]]= null)}};return window[_0x5b48[749]]?function(_0x43b0x3,_0x43b0x4,_0x43b0x5){_0x43b0x3[_0x5b48[749]](_0x43b0x4,_0x43b0x5,!1);_0x43b0x2(_0x43b0x3,_0x43b0x4,_0x43b0x5)}:function(_0x43b0x3,_0x43b0x4,_0x43b0x5){_0x43b0x3[_0x5b48[750]](_0x5b48[747]+ _0x43b0x4,_0x43b0x5);_0x43b0x2(_0x43b0x3,_0x43b0x4,_0x43b0x5)}}(),removeAllListeners:function(_0x43b0x2){var _0x43b0x3=_0x43b0x2[_0x5b48[69]];if(null!= _0x43b0x3){for(;0< _0x43b0x3[_0x5b48[67]];){var _0x43b0x4=_0x43b0x3[0];mxEvent[_0x5b48[745]](_0x43b0x2,_0x43b0x4[_0x5b48[298]],_0x43b0x4[_0x5b48[748]])}}},addGestureListeners:function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){null!= _0x43b0x3&& mxEvent[_0x5b48[169]](_0x43b0x2,_0x5b48[751],_0x43b0x3);null!= _0x43b0x4&& mxEvent[_0x5b48[169]](_0x43b0x2,_0x5b48[752],_0x43b0x4);null!= _0x43b0x5&& mxEvent[_0x5b48[169]](_0x43b0x2,_0x5b48[753],_0x43b0x5);mxClient[_0x5b48[754]]&& (null!= _0x43b0x3&& mxEvent[_0x5b48[169]](_0x43b0x2,_0x5b48[755],_0x43b0x3),null!= _0x43b0x4&& mxEvent[_0x5b48[169]](_0x43b0x2,_0x5b48[756],_0x43b0x4),null!= _0x43b0x5&& mxEvent[_0x5b48[169]](_0x43b0x2,_0x5b48[757],_0x43b0x5))},removeGestureListeners:function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){null!= _0x43b0x3&& mxEvent[_0x5b48[745]](_0x43b0x2,_0x5b48[751],_0x43b0x3);null!= _0x43b0x4&& mxEvent[_0x5b48[745]](_0x43b0x2,_0x5b48[752],_0x43b0x4);null!= _0x43b0x5&& mxEvent[_0x5b48[745]](_0x43b0x2,_0x5b48[753],_0x43b0x5);mxClient[_0x5b48[754]]&& (null!= _0x43b0x3&& mxEvent[_0x5b48[745]](_0x43b0x2,_0x5b48[755],_0x43b0x3),null!= _0x43b0x4&& mxEvent[_0x5b48[745]](_0x43b0x2,_0x5b48[756],_0x43b0x4),null!= _0x43b0x5&& mxEvent[_0x5b48[745]](_0x43b0x2,_0x5b48[757],_0x43b0x5))},redirectMouseEvents:function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa,_0x43b0x12){var _0x43b0x13=function(_0x43b0x2){return _0x5b48[279]== typeof _0x43b0x4?_0x43b0x4(_0x43b0x2):_0x43b0x4};mxEvent[_0x5b48[759]](_0x43b0x2,function(_0x43b0x2){null!= _0x43b0x5?_0x43b0x5(_0x43b0x2):mxEvent[_0x5b48[721]](_0x43b0x2)|| _0x43b0x3[_0x5b48[758]](mxEvent.MOUSE_DOWN, new mxMouseEvent(_0x43b0x2,_0x43b0x13(_0x43b0x2)))},function(_0x43b0x2){null!= _0x43b0x9?_0x43b0x9(_0x43b0x2):mxEvent[_0x5b48[721]](_0x43b0x2)|| _0x43b0x3[_0x5b48[758]](mxEvent.MOUSE_MOVE, new mxMouseEvent(_0x43b0x2,_0x43b0x13(_0x43b0x2)))},function(_0x43b0x2){null!= _0x43b0xa?_0x43b0xa(_0x43b0x2):mxEvent[_0x5b48[721]](_0x43b0x2)|| _0x43b0x3[_0x5b48[758]](mxEvent.MOUSE_UP, new mxMouseEvent(_0x43b0x2,_0x43b0x13(_0x43b0x2)))});mxEvent[_0x5b48[169]](_0x43b0x2,_0x5b48[760],function(_0x43b0x2){if(null!= _0x43b0x12){_0x43b0x12(_0x43b0x2)}else {if(!mxEvent[_0x5b48[721]](_0x43b0x2)){var _0x43b0x4=_0x43b0x13(_0x43b0x2);_0x43b0x3[_0x5b48[761]](_0x43b0x2,null!= _0x43b0x4?_0x43b0x4[_0x5b48[246]]:null)}}})},release:function(_0x43b0x2){if(null!= _0x43b0x2&& (mxEvent[_0x5b48[70]](_0x43b0x2),_0x43b0x2= _0x43b0x2[_0x5b48[271]],null!= _0x43b0x2)){for(var _0x43b0x3=_0x43b0x2[_0x5b48[67]],_0x43b0x4=0;_0x43b0x4< _0x43b0x3;_0x43b0x4+= 1){mxEvent[_0x5b48[762]](_0x43b0x2[_0x43b0x4])}}},addMouseWheelListener:function(_0x43b0x2){if(null!= _0x43b0x2){var _0x43b0x3=function(_0x43b0x3){null== _0x43b0x3&& (_0x43b0x3= window[_0x5b48[763]]);var _0x43b0x5=0,_0x43b0x5=mxClient[_0x5b48[133]]&& !mxClient[_0x5b48[75]]&& !mxClient[_0x5b48[76]]?-_0x43b0x3[_0x5b48[764]]/ 2:_0x43b0x3[_0x5b48[765]]/ 120;0!= _0x43b0x5&& _0x43b0x2(_0x43b0x3,0< _0x43b0x5)};mxClient[_0x5b48[133]]?mxEvent[_0x5b48[169]](window,mxClient[_0x5b48[75]]|| mxClient[_0x5b48[76]]?_0x5b48[766]:_0x5b48[767],_0x43b0x3):mxEvent[_0x5b48[169]](document,_0x5b48[766],_0x43b0x3)}},disableContextMenu:function(){return mxClient[_0x5b48[80]]&& (_0x5b48[82]=== typeof document[_0x5b48[5]]|| 9> document[_0x5b48[5]])?function(_0x43b0x2){mxEvent[_0x5b48[169]](_0x43b0x2,_0x5b48[768],function(){return !1})}:function(_0x43b0x2){_0x43b0x2[_0x5b48[57]](_0x5b48[769],_0x5b48[770])}}(),getSource:function(_0x43b0x2){return null!= _0x43b0x2[_0x5b48[771]]?_0x43b0x2[_0x5b48[771]]:_0x43b0x2[_0x5b48[772]]},isConsumed:function(_0x43b0x2){return null!= _0x43b0x2[_0x5b48[721]]&& _0x43b0x2[_0x5b48[721]]},isLeftMouseButton:function(_0x43b0x2){return _0x43b0x2[_0x5b48[172]]== (mxClient[_0x5b48[80]]&& (_0x5b48[82]=== typeof document[_0x5b48[5]]|| 9> document[_0x5b48[5]])?1:0)},isRightMouseButton:function(_0x43b0x2){return 2== _0x43b0x2[_0x5b48[172]]},isPopupTrigger:function(_0x43b0x2){return mxEvent[_0x5b48[773]](_0x43b0x2)|| mxEvent[_0x5b48[774]](_0x43b0x2)&& !mxEvent[_0x5b48[775]](_0x43b0x2)},isShiftDown:function(_0x43b0x2){return null!= _0x43b0x2?_0x43b0x2[_0x5b48[776]]:!1},isAltDown:function(_0x43b0x2){return null!= _0x43b0x2?_0x43b0x2[_0x5b48[777]]:!1},isControlDown:function(_0x43b0x2){return null!= _0x43b0x2?_0x43b0x2[_0x5b48[778]]:!1},isMetaDown:function(_0x43b0x2){return null!= _0x43b0x2?_0x43b0x2[_0x5b48[779]]:!1},getMainEvent:function(_0x43b0x2){(_0x5b48[755]== _0x43b0x2[_0x5b48[60]]|| _0x5b48[756]== _0x43b0x2[_0x5b48[60]])&& null!= _0x43b0x2[_0x5b48[780]]&& null!= _0x43b0x2[_0x5b48[780]][0]?_0x43b0x2= _0x43b0x2[_0x5b48[780]][0]:_0x5b48[757]== _0x43b0x2[_0x5b48[60]]&& (null!= _0x43b0x2[_0x5b48[781]]&& null!= _0x43b0x2[_0x5b48[781]][0])&& (_0x43b0x2= _0x43b0x2[_0x5b48[781]][0]);return _0x43b0x2},getClientX:function(_0x43b0x2){return mxEvent[_0x5b48[783]](_0x43b0x2)[_0x5b48[782]]},getClientY:function(_0x43b0x2){return mxEvent[_0x5b48[783]](_0x43b0x2)[_0x5b48[784]]},consume:function(_0x43b0x2,_0x43b0x3,_0x43b0x4){_0x43b0x4= null!= _0x43b0x4?_0x43b0x4:!0;if(null!= _0x43b0x3?_0x43b0x3:1){_0x43b0x2[_0x5b48[738]]?(_0x43b0x4&& _0x43b0x2[_0x5b48[785]](),_0x43b0x2[_0x5b48[738]]()):_0x43b0x4&& (_0x43b0x2[_0x5b48[786]]= !0)};_0x43b0x2[_0x5b48[721]]= !0;_0x43b0x2[_0x5b48[739]]= !1},LABEL_HANDLE:-1,ROTATION_HANDLE:-2,MOUSE_DOWN:_0x5b48[787],MOUSE_MOVE:_0x5b48[788],MOUSE_UP:_0x5b48[789],ACTIVATE:_0x5b48[790],RESIZE_START:_0x5b48[791],RESIZE:_0x5b48[129],RESIZE_END:_0x5b48[792],MOVE_START:_0x5b48[793],MOVE:_0x5b48[582],MOVE_END:_0x5b48[794],PAN_START:_0x5b48[795],PAN:_0x5b48[796],PAN_END:_0x5b48[797],MINIMIZE:_0x5b48[798],NORMALIZE:_0x5b48[799],MAXIMIZE:_0x5b48[800],HIDE:_0x5b48[801],SHOW:_0x5b48[539],CLOSE:_0x5b48[268],DESTROY:_0x5b48[515],REFRESH:_0x5b48[802],SIZE:_0x5b48[803],SELECT:_0x5b48[804],FIRED:_0x5b48[805],GET:_0x5b48[203],RECEIVE:_0x5b48[806],CONNECT:_0x5b48[807],DISCONNECT:_0x5b48[808],SUSPEND:_0x5b48[809],RESUME:_0x5b48[810],MARK:_0x5b48[811],SESSION:_0x5b48[812],ROOT:_0x5b48[813],POST:_0x5b48[814],OPEN:_0x5b48[392],SAVE:_0x5b48[815],BEFORE_ADD_VERTEX:_0x5b48[816],ADD_VERTEX:_0x5b48[817],AFTER_ADD_VERTEX:_0x5b48[818],DONE:_0x5b48[819],EXECUTE:_0x5b48[350],EXECUTED:_0x5b48[820],BEGIN_UPDATE:_0x5b48[473],START_EDIT:_0x5b48[821],END_UPDATE:_0x5b48[476],END_EDIT:_0x5b48[822],BEFORE_UNDO:_0x5b48[823],UNDO:_0x5b48[824],REDO:_0x5b48[825],CHANGE:_0x5b48[826],NOTIFY:_0x5b48[827],LAYOUT_CELLS:_0x5b48[828],CLICK:_0x5b48[173],SCALE:_0x5b48[255],TRANSLATE:_0x5b48[513],SCALE_AND_TRANSLATE:_0x5b48[829],UP:_0x5b48[830],DOWN:_0x5b48[831],ADD:_0x5b48[99],REMOVE:_0x5b48[205],CLEAR:_0x5b48[200],ADD_CELLS:_0x5b48[832],CELLS_ADDED:_0x5b48[833],MOVE_CELLS:_0x5b48[834],CELLS_MOVED:_0x5b48[835],RESIZE_CELLS:_0x5b48[836],CELLS_RESIZED:_0x5b48[837],TOGGLE_CELLS:_0x5b48[838],CELLS_TOGGLED:_0x5b48[839],ORDER_CELLS:_0x5b48[840],CELLS_ORDERED:_0x5b48[841],REMOVE_CELLS:_0x5b48[842],CELLS_REMOVED:_0x5b48[843],GROUP_CELLS:_0x5b48[844],UNGROUP_CELLS:_0x5b48[845],REMOVE_CELLS_FROM_PARENT:_0x5b48[846],FOLD_CELLS:_0x5b48[847],CELLS_FOLDED:_0x5b48[848],ALIGN_CELLS:_0x5b48[849],LABEL_CHANGED:_0x5b48[850],CONNECT_CELL:_0x5b48[851],CELL_CONNECTED:_0x5b48[852],SPLIT_EDGE:_0x5b48[853],FLIP_EDGE:_0x5b48[854],START_EDITING:_0x5b48[855],ADD_OVERLAY:_0x5b48[856],REMOVE_OVERLAY:_0x5b48[857],UPDATE_CELL_SIZE:_0x5b48[858],ESCAPE:_0x5b48[859],CLICK:_0x5b48[173],DOUBLE_CLICK:_0x5b48[860],START:_0x5b48[861],RESET:_0x5b48[862]};function mxXmlRequest(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa){this[_0x5b48[863]]= _0x43b0x2;this[_0x5b48[864]]= _0x43b0x3;this[_0x5b48[865]]= _0x43b0x4|| _0x5b48[866];this[_0x5b48[307]]= null!= _0x43b0x5?_0x43b0x5:!0;this[_0x5b48[867]]= _0x43b0x9;this[_0x5b48[868]]= _0x43b0xa}mxXmlRequest[_0x5b48[202]][_0x5b48[863]]= null;mxXmlRequest[_0x5b48[202]][_0x5b48[864]]= null;mxXmlRequest[_0x5b48[202]][_0x5b48[865]]= null;mxXmlRequest[_0x5b48[202]][_0x5b48[307]]= null;mxXmlRequest[_0x5b48[202]][_0x5b48[869]]= !1;mxXmlRequest[_0x5b48[202]][_0x5b48[867]]= null;mxXmlRequest[_0x5b48[202]][_0x5b48[868]]= null;mxXmlRequest[_0x5b48[202]][_0x5b48[870]]= null;mxXmlRequest[_0x5b48[202]][_0x5b48[871]]= function(){return this[_0x5b48[869]]};mxXmlRequest[_0x5b48[202]][_0x5b48[872]]= function(_0x43b0x2){this[_0x5b48[869]]= _0x43b0x2};mxXmlRequest[_0x5b48[202]][_0x5b48[221]]= function(){return this[_0x5b48[870]][_0x5b48[873]]};mxXmlRequest[_0x5b48[202]][_0x5b48[220]]= function(){return 4== this[_0x5b48[870]][_0x5b48[417]]};mxXmlRequest[_0x5b48[202]][_0x5b48[874]]= function(){var _0x43b0x2=this[_0x5b48[875]]();return null!= _0x43b0x2?_0x43b0x2[_0x5b48[158]]:null};mxXmlRequest[_0x5b48[202]][_0x5b48[875]]= function(){var _0x43b0x2=this[_0x5b48[870]][_0x5b48[876]];if(9<= document[_0x5b48[5]]|| null== _0x43b0x2|| null== _0x43b0x2[_0x5b48[158]]){_0x43b0x2= mxUtils[_0x5b48[877]](this[_0x5b48[870]][_0x5b48[873]])};return _0x43b0x2};mxXmlRequest[_0x5b48[202]][_0x5b48[221]]= function(){return this[_0x5b48[870]][_0x5b48[873]]};mxXmlRequest[_0x5b48[202]][_0x5b48[878]]= function(){return this[_0x5b48[870]][_0x5b48[879]]};mxXmlRequest[_0x5b48[202]][_0x5b48[385]]= function(){if(window[_0x5b48[880]]){return function(){var _0x43b0x2= new XMLHttpRequest;this[_0x5b48[871]]()&& _0x43b0x2[_0x5b48[881]]&& _0x43b0x2[_0x5b48[881]](_0x5b48[882]);return _0x43b0x2}};if(_0x5b48[82]!= typeof ActiveXObject){return function(){return new ActiveXObject(_0x5b48[883])}}}();mxXmlRequest[_0x5b48[202]][_0x5b48[414]]= function(_0x43b0x2,_0x43b0x3){this[_0x5b48[870]]= this[_0x5b48[385]]();null!= this[_0x5b48[870]]&& (null!= _0x43b0x2&& (this[_0x5b48[870]][_0x5b48[416]]= mxUtils[_0x5b48[885]](this,function(){this[_0x5b48[220]]()&& (_0x43b0x2(this),this[_0x5b48[884]]= null)})),this[_0x5b48[870]][_0x5b48[392]](this[_0x5b48[865]],this[_0x5b48[863]],this[_0x5b48[307]],this[_0x5b48[867]],this[_0x5b48[868]]),this[_0x5b48[886]](this[_0x5b48[870]],this[_0x5b48[864]]),this[_0x5b48[870]][_0x5b48[414]](this[_0x5b48[864]]))};mxXmlRequest[_0x5b48[202]][_0x5b48[886]]= function(_0x43b0x2,_0x43b0x3){null!= _0x43b0x3&& _0x43b0x2[_0x5b48[889]](_0x5b48[887],_0x5b48[888])};mxXmlRequest[_0x5b48[202]][_0x5b48[415]]= function(_0x43b0x2,_0x43b0x3){_0x43b0x2= _0x43b0x2|| document;var _0x43b0x4=null;_0x43b0x2== document&& (_0x43b0x4= window[_0x5b48[890]],window[_0x5b48[890]]= null);var _0x43b0x5=_0x43b0x2[_0x5b48[55]](_0x5b48[891]);_0x43b0x5[_0x5b48[57]](_0x5b48[865],this[_0x5b48[865]]);_0x43b0x5[_0x5b48[57]](_0x5b48[892],this[_0x5b48[863]]);null!= _0x43b0x3&& _0x43b0x5[_0x5b48[57]](_0x5b48[772],_0x43b0x3);_0x43b0x5[_0x5b48[124]][_0x5b48[495]]= _0x5b48[130];_0x43b0x5[_0x5b48[124]][_0x5b48[187]]= _0x5b48[188];for(var _0x43b0x9=0< this[_0x5b48[864]][_0x5b48[2]](_0x5b48[893])?this[_0x5b48[864]][_0x5b48[224]](_0x5b48[893]):this[_0x5b48[864]][_0x5b48[224]](),_0x43b0xa=0;_0x43b0xa< _0x43b0x9[_0x5b48[67]];_0x43b0xa++){var _0x43b0x12=_0x43b0x9[_0x43b0xa][_0x5b48[2]](_0x5b48[226]);if(0< _0x43b0x12){var _0x43b0x13=_0x43b0x9[_0x43b0xa][_0x5b48[85]](0,_0x43b0x12),_0x43b0x14=_0x43b0x9[_0x43b0xa][_0x5b48[85]](_0x43b0x12+ 1),_0x43b0x12=_0x43b0x2[_0x5b48[55]](_0x5b48[126]);_0x43b0x12[_0x5b48[57]](_0x5b48[298],_0x43b0x13);_0x43b0x14= _0x43b0x14[_0x5b48[230]](/\n/g,_0x5b48[336]);_0x43b0x13= _0x43b0x2[_0x5b48[344]](_0x43b0x14);_0x43b0x12[_0x5b48[62]](_0x43b0x13);_0x43b0x5[_0x5b48[62]](_0x43b0x12)}};_0x43b0x2[_0x5b48[112]][_0x5b48[62]](_0x43b0x5);_0x43b0x5[_0x5b48[894]]();_0x43b0x2[_0x5b48[112]][_0x5b48[266]](_0x43b0x5);null!= _0x43b0x4&& (window[_0x5b48[890]]= _0x43b0x4)};var mxClipboard={STEPSIZE:10,insertCount:1,cells:null,isEmpty:function(){return null== mxClipboard[_0x5b48[895]]},cut:function(_0x43b0x2,_0x43b0x3){_0x43b0x3= mxClipboard[_0x5b48[149]](_0x43b0x2,_0x43b0x3);mxClipboard[_0x5b48[896]]= 0;mxClipboard[_0x5b48[842]](_0x43b0x2,_0x43b0x3);return _0x43b0x3},removeCells:function(_0x43b0x2,_0x43b0x3){_0x43b0x2[_0x5b48[842]](_0x43b0x3)},copy:function(_0x43b0x2,_0x43b0x3){_0x43b0x3= _0x43b0x3|| _0x43b0x2[_0x5b48[897]]();var _0x43b0x4=_0x43b0x2[_0x5b48[898]](_0x43b0x3);mxClipboard[_0x5b48[896]]= 1;mxClipboard[_0x5b48[895]]= _0x43b0x2[_0x5b48[899]](_0x43b0x4);return _0x43b0x4},paste:function(_0x43b0x2){if(null!= mxClipboard[_0x5b48[895]]){var _0x43b0x3=_0x43b0x2[_0x5b48[900]](mxClipboard[_0x5b48[895]]),_0x43b0x4=mxClipboard[_0x5b48[896]]* mxClipboard[_0x5b48[901]],_0x43b0x5=_0x43b0x2[_0x5b48[902]](),_0x43b0x3=_0x43b0x2[_0x5b48[903]](_0x43b0x3,_0x43b0x4,_0x43b0x4,_0x43b0x5);mxClipboard[_0x5b48[896]]++;_0x43b0x2[_0x5b48[904]](_0x43b0x3)}}};function mxWindow(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa,_0x43b0x12,_0x43b0x13,_0x43b0x14,_0x43b0x15){null!= _0x43b0x3&& (_0x43b0x12= null!= _0x43b0x12?_0x43b0x12:!0,this[_0x5b48[905]]= _0x43b0x3,this[_0x5b48[176]](_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa,_0x43b0x15),this[_0x5b48[906]](),this[_0x5b48[907]](),this[_0x5b48[908]](),this[_0x5b48[909]](_0x43b0x12),this[_0x5b48[910]](_0x43b0x2),(null== _0x43b0x13|| _0x43b0x13)&& this[_0x5b48[911]](),null!= _0x43b0x14&& null!= _0x43b0x14[_0x5b48[265]]?_0x43b0x14[_0x5b48[265]][_0x5b48[912]](this[_0x5b48[485]],_0x43b0x14):document[_0x5b48[112]][_0x5b48[62]](this[_0x5b48[485]]))}mxWindow[_0x5b48[202]]= new mxEventSource;mxWindow[_0x5b48[202]][_0x5b48[196]]= mxWindow;mxWindow[_0x5b48[202]][_0x5b48[913]]= mxClient[_0x5b48[88]]+ _0x5b48[914];mxWindow[_0x5b48[202]][_0x5b48[915]]= mxClient[_0x5b48[88]]+ _0x5b48[916];mxWindow[_0x5b48[202]][_0x5b48[917]]= mxClient[_0x5b48[88]]+ _0x5b48[918];mxWindow[_0x5b48[202]][_0x5b48[919]]= mxClient[_0x5b48[88]]+ _0x5b48[920];mxWindow[_0x5b48[202]][_0x5b48[921]]= mxClient[_0x5b48[88]]+ _0x5b48[922];mxWindow[_0x5b48[202]][_0x5b48[189]]= !1;mxWindow[_0x5b48[202]][_0x5b48[905]]= !1;mxWindow[_0x5b48[202]][_0x5b48[923]]= new mxRectangle(0,0,50,40);mxWindow[_0x5b48[202]][_0x5b48[924]]= !1;mxWindow[_0x5b48[202]][_0x5b48[905]]= !1;mxWindow[_0x5b48[202]][_0x5b48[165]]= !0;mxWindow[_0x5b48[202]][_0x5b48[176]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){_0x43b0x9= null!= _0x43b0x9?_0x43b0x9:_0x5b48[925];this[_0x5b48[485]]= document[_0x5b48[55]](_0x5b48[485]);this[_0x5b48[485]][_0x5b48[926]]= _0x43b0x9;this[_0x5b48[485]][_0x5b48[124]][_0x5b48[361]]= _0x43b0x2+ _0x5b48[168];this[_0x5b48[485]][_0x5b48[124]][_0x5b48[125]]= _0x43b0x3+ _0x5b48[168];this[_0x5b48[116]]= document[_0x5b48[55]](_0x5b48[116]);this[_0x5b48[116]][_0x5b48[926]]= _0x43b0x9;null!= _0x43b0x4&& (mxClient[_0x5b48[80]]|| (this[_0x5b48[485]][_0x5b48[124]][_0x5b48[117]]= _0x43b0x4+ _0x5b48[168]),this[_0x5b48[116]][_0x5b48[124]][_0x5b48[117]]= _0x43b0x4+ _0x5b48[168]);null!= _0x43b0x5&& (mxClient[_0x5b48[80]]|| (this[_0x5b48[485]][_0x5b48[124]][_0x5b48[119]]= _0x43b0x5+ _0x5b48[168]),this[_0x5b48[116]][_0x5b48[124]][_0x5b48[119]]= _0x43b0x5+ _0x5b48[168]);_0x43b0x2= document[_0x5b48[55]](_0x5b48[120]);_0x43b0x3= document[_0x5b48[55]](_0x5b48[121]);this[_0x5b48[924]]= document[_0x5b48[55]](_0x5b48[122]);this[_0x5b48[924]][_0x5b48[926]]= _0x43b0x9+ _0x5b48[927];_0x43b0x3[_0x5b48[62]](this[_0x5b48[924]]);_0x43b0x2[_0x5b48[62]](_0x43b0x3);_0x43b0x3= document[_0x5b48[55]](_0x5b48[121]);this[_0x5b48[122]]= document[_0x5b48[55]](_0x5b48[122]);this[_0x5b48[122]][_0x5b48[926]]= _0x43b0x9+ _0x5b48[928];this[_0x5b48[929]]= document[_0x5b48[55]](_0x5b48[485]);this[_0x5b48[929]][_0x5b48[926]]= _0x43b0x9+ _0x5b48[928];this[_0x5b48[929]][_0x5b48[124]][_0x5b48[117]]= _0x5b48[118];this[_0x5b48[929]][_0x5b48[62]](this[_0x5b48[905]]);if(mxClient[_0x5b48[80]]|| _0x5b48[529]!= this[_0x5b48[905]][_0x5b48[301]][_0x5b48[36]]()){this[_0x5b48[929]][_0x5b48[124]][_0x5b48[119]]= _0x5b48[118]};this[_0x5b48[122]][_0x5b48[62]](this[_0x5b48[929]]);_0x43b0x3[_0x5b48[62]](this[_0x5b48[122]]);_0x43b0x2[_0x5b48[62]](_0x43b0x3);this[_0x5b48[116]][_0x5b48[62]](_0x43b0x2);this[_0x5b48[485]][_0x5b48[62]](this[_0x5b48[116]]);_0x43b0x9= mxUtils[_0x5b48[885]](this,function(_0x43b0x2){this[_0x5b48[790]]()});mxEvent[_0x5b48[169]](this[_0x5b48[924]],_0x5b48[751],_0x43b0x9);mxEvent[_0x5b48[169]](this[_0x5b48[116]],_0x5b48[751],_0x43b0x9);mxClient[_0x5b48[754]]&& (mxEvent[_0x5b48[169]](this[_0x5b48[924]],_0x5b48[755],_0x43b0x9),mxEvent[_0x5b48[169]](this[_0x5b48[116]],_0x5b48[755],_0x43b0x9));this[_0x5b48[801]]()};mxWindow[_0x5b48[202]][_0x5b48[910]]= function(_0x43b0x2){for(var _0x43b0x3=this[_0x5b48[924]][_0x5b48[285]];null!= _0x43b0x3;){var _0x43b0x4=_0x43b0x3[_0x5b48[287]];_0x43b0x3[_0x5b48[288]]== mxConstants[_0x5b48[317]]&& _0x43b0x3[_0x5b48[265]][_0x5b48[266]](_0x43b0x3);_0x43b0x3= _0x43b0x4};mxUtils[_0x5b48[53]](this[_0x5b48[924]],_0x43b0x2|| _0x5b48[110])};mxWindow[_0x5b48[202]][_0x5b48[162]]= function(_0x43b0x2){0> navigator[_0x5b48[3]][_0x5b48[2]](_0x5b48[186])&& (this[_0x5b48[929]][_0x5b48[124]][_0x5b48[277]]= _0x43b0x2?_0x5b48[278]:_0x5b48[188])};mxWindow[_0x5b48[202]][_0x5b48[790]]= function(){if(mxWindow[_0x5b48[930]]!= this){var _0x43b0x2=mxUtils[_0x5b48[275]](this[_0x5b48[166]]()),_0x43b0x2=null!= _0x43b0x2?_0x43b0x2[_0x5b48[931]]:3;if(mxWindow[_0x5b48[930]]){var _0x43b0x3=mxWindow[_0x5b48[930]][_0x5b48[166]]();null!= _0x43b0x3&& null!= _0x43b0x3[_0x5b48[124]]&& (_0x43b0x3[_0x5b48[124]][_0x5b48[931]]= _0x43b0x2)};_0x43b0x3= mxWindow[_0x5b48[930]];this[_0x5b48[166]]()[_0x5b48[124]][_0x5b48[931]]= parseInt(_0x43b0x2)+ 1;mxWindow[_0x5b48[930]]= this;this[_0x5b48[746]]( new mxEventObject(mxEvent.ACTIVATE,_0x5b48[932],_0x43b0x3))}};mxWindow[_0x5b48[202]][_0x5b48[166]]= function(){return this[_0x5b48[485]]};mxWindow[_0x5b48[202]][_0x5b48[933]]= function(){mxUtils[_0x5b48[933]](this[_0x5b48[485]])};mxWindow[_0x5b48[202]][_0x5b48[934]]= function(){return null!= this[_0x5b48[129]]?_0x5b48[130]!= this[_0x5b48[129]][_0x5b48[124]][_0x5b48[495]]:!1};mxWindow[_0x5b48[202]][_0x5b48[163]]= function(_0x43b0x2){_0x43b0x2?null== this[_0x5b48[129]]?(this[_0x5b48[129]]= document[_0x5b48[55]](_0x5b48[466]),this[_0x5b48[129]][_0x5b48[124]][_0x5b48[491]]= _0x5b48[492],this[_0x5b48[129]][_0x5b48[124]][_0x5b48[553]]= _0x5b48[935],this[_0x5b48[129]][_0x5b48[124]][_0x5b48[699]]= _0x5b48[935],this[_0x5b48[129]][_0x5b48[57]](_0x5b48[390],mxClient[_0x5b48[88]]+ _0x5b48[922]),this[_0x5b48[129]][_0x5b48[124]][_0x5b48[270]]= _0x5b48[936],mxEvent[_0x5b48[759]](this[_0x5b48[129]],mxUtils[_0x5b48[885]](this,function(_0x43b0x2){this[_0x5b48[790]]();var _0x43b0x4=mxEvent[_0x5b48[731]](_0x43b0x2),_0x43b0x5=mxEvent[_0x5b48[733]](_0x43b0x2),_0x43b0x9=this[_0x5b48[485]][_0x5b48[359]],_0x43b0xa=this[_0x5b48[485]][_0x5b48[167]],_0x43b0x12=mxUtils[_0x5b48[885]](this,function(_0x43b0x2){var _0x43b0x3=mxEvent[_0x5b48[731]](_0x43b0x2)- _0x43b0x4,_0x43b0x12=mxEvent[_0x5b48[733]](_0x43b0x2)- _0x43b0x5;this[_0x5b48[937]](_0x43b0x9+ _0x43b0x3,_0x43b0xa+ _0x43b0x12);this[_0x5b48[746]]( new mxEventObject(mxEvent.RESIZE,_0x5b48[763],_0x43b0x2));mxEvent[_0x5b48[722]](_0x43b0x2)}),_0x43b0x13=mxUtils[_0x5b48[885]](this,function(_0x43b0x2){mxEvent[_0x5b48[938]](document,null,_0x43b0x12,_0x43b0x13);this[_0x5b48[746]]( new mxEventObject(mxEvent.RESIZE_END,_0x5b48[763],_0x43b0x2));mxEvent[_0x5b48[722]](_0x43b0x2)});mxEvent[_0x5b48[759]](document,null,_0x43b0x12,_0x43b0x13);this[_0x5b48[746]]( new mxEventObject(mxEvent.RESIZE_START,_0x5b48[763],_0x43b0x2));mxEvent[_0x5b48[722]](_0x43b0x2)}),null,null),this[_0x5b48[485]][_0x5b48[62]](this[_0x5b48[129]])):this[_0x5b48[129]][_0x5b48[124]][_0x5b48[495]]= _0x5b48[497]:null!= this[_0x5b48[129]]&& (this[_0x5b48[129]][_0x5b48[124]][_0x5b48[495]]= _0x5b48[130])};mxWindow[_0x5b48[202]][_0x5b48[937]]= function(_0x43b0x2,_0x43b0x3){_0x43b0x2= Math[_0x5b48[160]](this[_0x5b48[923]][_0x5b48[117]],_0x43b0x2);_0x43b0x3= Math[_0x5b48[160]](this[_0x5b48[923]][_0x5b48[119]],_0x43b0x3);mxClient[_0x5b48[80]]|| (this[_0x5b48[485]][_0x5b48[124]][_0x5b48[117]]= _0x43b0x2+ _0x5b48[168],this[_0x5b48[485]][_0x5b48[124]][_0x5b48[119]]= _0x43b0x3+ _0x5b48[168]);this[_0x5b48[116]][_0x5b48[124]][_0x5b48[117]]= _0x43b0x2+ _0x5b48[168];this[_0x5b48[116]][_0x5b48[124]][_0x5b48[119]]= _0x43b0x3+ _0x5b48[168];mxClient[_0x5b48[80]]|| (this[_0x5b48[929]][_0x5b48[124]][_0x5b48[119]]= this[_0x5b48[485]][_0x5b48[167]]- this[_0x5b48[924]][_0x5b48[167]]- 2+ _0x5b48[168])};mxWindow[_0x5b48[202]][_0x5b48[909]]= function(_0x43b0x2){this[_0x5b48[798]][_0x5b48[124]][_0x5b48[495]]= _0x43b0x2?_0x5b48[110]:_0x5b48[130]};mxWindow[_0x5b48[202]][_0x5b48[939]]= function(){return new mxRectangle(0,0,0,this[_0x5b48[924]][_0x5b48[167]])};mxWindow[_0x5b48[202]][_0x5b48[907]]= function(){this[_0x5b48[798]]= document[_0x5b48[55]](_0x5b48[466]);this[_0x5b48[798]][_0x5b48[57]](_0x5b48[390],this[_0x5b48[915]]);this[_0x5b48[798]][_0x5b48[57]](_0x5b48[611],_0x5b48[699]);this[_0x5b48[798]][_0x5b48[57]](_0x5b48[924],_0x5b48[940]);this[_0x5b48[798]][_0x5b48[124]][_0x5b48[270]]= _0x5b48[356];this[_0x5b48[798]][_0x5b48[124]][_0x5b48[941]]= _0x5b48[942];this[_0x5b48[798]][_0x5b48[124]][_0x5b48[495]]= _0x5b48[130];this[_0x5b48[924]][_0x5b48[62]](this[_0x5b48[798]]);var _0x43b0x2=!1,_0x43b0x3=null,_0x43b0x4=null,_0x43b0x5=mxUtils[_0x5b48[885]](this,function(_0x43b0x5){this[_0x5b48[790]]();if(_0x43b0x2){_0x43b0x2= !1,this[_0x5b48[798]][_0x5b48[57]](_0x5b48[390],this[_0x5b48[915]]),this[_0x5b48[798]][_0x5b48[57]](_0x5b48[924],_0x5b48[940]),this[_0x5b48[929]][_0x5b48[124]][_0x5b48[495]]= _0x5b48[110],this[_0x5b48[800]][_0x5b48[124]][_0x5b48[495]]= _0x43b0x3,mxClient[_0x5b48[80]]|| (this[_0x5b48[485]][_0x5b48[124]][_0x5b48[119]]= _0x43b0x4),this[_0x5b48[116]][_0x5b48[124]][_0x5b48[119]]= _0x43b0x4,null!= this[_0x5b48[129]]&& (this[_0x5b48[129]][_0x5b48[124]][_0x5b48[187]]= _0x5b48[110]),this[_0x5b48[746]]( new mxEventObject(mxEvent.NORMALIZE,_0x5b48[763],_0x43b0x5))}else {_0x43b0x2= !0;this[_0x5b48[798]][_0x5b48[57]](_0x5b48[390],this[_0x5b48[917]]);this[_0x5b48[798]][_0x5b48[57]](_0x5b48[924],_0x5b48[943]);this[_0x5b48[929]][_0x5b48[124]][_0x5b48[495]]= _0x5b48[130];_0x43b0x3= this[_0x5b48[800]][_0x5b48[124]][_0x5b48[495]];this[_0x5b48[800]][_0x5b48[124]][_0x5b48[495]]= _0x5b48[130];_0x43b0x4= this[_0x5b48[116]][_0x5b48[124]][_0x5b48[119]];var _0x43b0xa=this[_0x5b48[939]]();0< _0x43b0xa[_0x5b48[119]]&& (mxClient[_0x5b48[80]]|| (this[_0x5b48[485]][_0x5b48[124]][_0x5b48[119]]= _0x43b0xa[_0x5b48[119]]+ _0x5b48[168]),this[_0x5b48[116]][_0x5b48[124]][_0x5b48[119]]= _0x43b0xa[_0x5b48[119]]+ _0x5b48[168]);0< _0x43b0xa[_0x5b48[117]]&& (mxClient[_0x5b48[80]]|| (this[_0x5b48[485]][_0x5b48[124]][_0x5b48[117]]= _0x43b0xa[_0x5b48[117]]+ _0x5b48[168]),this[_0x5b48[116]][_0x5b48[124]][_0x5b48[117]]= _0x43b0xa[_0x5b48[117]]+ _0x5b48[168]);null!= this[_0x5b48[129]]&& (this[_0x5b48[129]][_0x5b48[124]][_0x5b48[187]]= _0x5b48[188]);this[_0x5b48[746]]( new mxEventObject(mxEvent.MINIMIZE,_0x5b48[763],_0x43b0x5))};mxEvent[_0x5b48[722]](_0x43b0x5)});mxEvent[_0x5b48[169]](this[_0x5b48[798]],_0x5b48[751],_0x43b0x5);mxClient[_0x5b48[754]]&& mxEvent[_0x5b48[169]](this[_0x5b48[798]],_0x5b48[755],_0x43b0x5)};mxWindow[_0x5b48[202]][_0x5b48[161]]= function(_0x43b0x2){this[_0x5b48[800]][_0x5b48[124]][_0x5b48[495]]= _0x43b0x2?_0x5b48[110]:_0x5b48[130]};mxWindow[_0x5b48[202]][_0x5b48[906]]= function(){this[_0x5b48[800]]= document[_0x5b48[55]](_0x5b48[466]);this[_0x5b48[800]][_0x5b48[57]](_0x5b48[390],this[_0x5b48[919]]);this[_0x5b48[800]][_0x5b48[57]](_0x5b48[611],_0x5b48[699]);this[_0x5b48[800]][_0x5b48[57]](_0x5b48[924],_0x5b48[944]);this[_0x5b48[800]][_0x5b48[124]][_0x5b48[270]]= _0x5b48[583];this[_0x5b48[800]][_0x5b48[124]][_0x5b48[945]]= _0x5b48[942];this[_0x5b48[800]][_0x5b48[124]][_0x5b48[270]]= _0x5b48[356];this[_0x5b48[800]][_0x5b48[124]][_0x5b48[495]]= _0x5b48[130];this[_0x5b48[924]][_0x5b48[62]](this[_0x5b48[800]]);var _0x43b0x2=!1,_0x43b0x3=null,_0x43b0x4=null,_0x43b0x5=null,_0x43b0x9=null,_0x43b0xa=mxUtils[_0x5b48[885]](this,function(_0x43b0xa){this[_0x5b48[790]]();if(_0x5b48[130]!= this[_0x5b48[800]][_0x5b48[124]][_0x5b48[495]]){if(_0x43b0x2){_0x43b0x2= !1;this[_0x5b48[800]][_0x5b48[57]](_0x5b48[390],this[_0x5b48[919]]);this[_0x5b48[800]][_0x5b48[57]](_0x5b48[924],_0x5b48[944]);this[_0x5b48[929]][_0x5b48[124]][_0x5b48[495]]= _0x5b48[110];this[_0x5b48[798]][_0x5b48[124]][_0x5b48[187]]= _0x5b48[110];this[_0x5b48[485]][_0x5b48[124]][_0x5b48[361]]= _0x43b0x3+ _0x5b48[168];this[_0x5b48[485]][_0x5b48[124]][_0x5b48[125]]= _0x43b0x4+ _0x5b48[168];if(!mxClient[_0x5b48[80]]&& (this[_0x5b48[485]][_0x5b48[124]][_0x5b48[119]]= _0x43b0x5,this[_0x5b48[485]][_0x5b48[124]][_0x5b48[117]]= _0x43b0x9,_0x43b0x13= mxUtils[_0x5b48[275]](this[_0x5b48[929]]),_0x5b48[278]== _0x43b0x13[_0x5b48[277]]|| null!= this[_0x5b48[129]])){this[_0x5b48[929]][_0x5b48[124]][_0x5b48[119]]= this[_0x5b48[485]][_0x5b48[167]]- this[_0x5b48[924]][_0x5b48[167]]- 2+ _0x5b48[168]};this[_0x5b48[116]][_0x5b48[124]][_0x5b48[119]]= _0x43b0x5;this[_0x5b48[116]][_0x5b48[124]][_0x5b48[117]]= _0x43b0x9;null!= this[_0x5b48[129]]&& (this[_0x5b48[129]][_0x5b48[124]][_0x5b48[187]]= _0x5b48[110]);this[_0x5b48[746]]( new mxEventObject(mxEvent.NORMALIZE,_0x5b48[763],_0x43b0xa))}else {_0x43b0x2= !0;this[_0x5b48[800]][_0x5b48[57]](_0x5b48[390],this[_0x5b48[917]]);this[_0x5b48[800]][_0x5b48[57]](_0x5b48[924],_0x5b48[943]);this[_0x5b48[929]][_0x5b48[124]][_0x5b48[495]]= _0x5b48[110];this[_0x5b48[798]][_0x5b48[124]][_0x5b48[187]]= _0x5b48[188];_0x43b0x3= parseInt(this[_0x5b48[485]][_0x5b48[124]][_0x5b48[361]]);_0x43b0x4= parseInt(this[_0x5b48[485]][_0x5b48[124]][_0x5b48[125]]);_0x43b0x5= this[_0x5b48[116]][_0x5b48[124]][_0x5b48[119]];_0x43b0x9= this[_0x5b48[116]][_0x5b48[124]][_0x5b48[117]];this[_0x5b48[485]][_0x5b48[124]][_0x5b48[361]]= _0x5b48[946];this[_0x5b48[485]][_0x5b48[124]][_0x5b48[125]]= _0x5b48[946];mxClient[_0x5b48[80]]|| (this[_0x5b48[485]][_0x5b48[124]][_0x5b48[119]]= document[_0x5b48[112]][_0x5b48[157]]- 2+ _0x5b48[168],this[_0x5b48[485]][_0x5b48[124]][_0x5b48[117]]= document[_0x5b48[112]][_0x5b48[159]]- 2+ _0x5b48[168]);this[_0x5b48[116]][_0x5b48[124]][_0x5b48[117]]= document[_0x5b48[112]][_0x5b48[159]]- 2+ _0x5b48[168];this[_0x5b48[116]][_0x5b48[124]][_0x5b48[119]]= document[_0x5b48[112]][_0x5b48[157]]- 2+ _0x5b48[168];null!= this[_0x5b48[129]]&& (this[_0x5b48[129]][_0x5b48[124]][_0x5b48[187]]= _0x5b48[188]);if(!mxClient[_0x5b48[80]]){var _0x43b0x13=mxUtils[_0x5b48[275]](this[_0x5b48[929]]);if(_0x5b48[278]== _0x43b0x13[_0x5b48[277]]|| null!= this[_0x5b48[129]]){this[_0x5b48[929]][_0x5b48[124]][_0x5b48[119]]= this[_0x5b48[485]][_0x5b48[167]]- this[_0x5b48[924]][_0x5b48[167]]- 2+ _0x5b48[168]}};this[_0x5b48[746]]( new mxEventObject(mxEvent.MAXIMIZE,_0x5b48[763],_0x43b0xa))};mxEvent[_0x5b48[722]](_0x43b0xa)}});mxEvent[_0x5b48[759]](this[_0x5b48[800]],_0x43b0xa);mxEvent[_0x5b48[169]](this[_0x5b48[924]],_0x5b48[760],_0x43b0xa)};mxWindow[_0x5b48[202]][_0x5b48[911]]= function(){this[_0x5b48[924]][_0x5b48[124]][_0x5b48[270]]= _0x5b48[582];mxEvent[_0x5b48[759]](this[_0x5b48[924]],mxUtils[_0x5b48[885]](this,function(_0x43b0x2){var _0x43b0x3=mxEvent[_0x5b48[731]](_0x43b0x2),_0x43b0x4=mxEvent[_0x5b48[733]](_0x43b0x2),_0x43b0x5=this[_0x5b48[730]](),_0x43b0x9=this[_0x5b48[732]](),_0x43b0xa=mxUtils[_0x5b48[885]](this,function(_0x43b0x2){var _0x43b0xa=mxEvent[_0x5b48[731]](_0x43b0x2)- _0x43b0x3,_0x43b0x12=mxEvent[_0x5b48[733]](_0x43b0x2)- _0x43b0x4;this[_0x5b48[947]](_0x43b0x5+ _0x43b0xa,_0x43b0x9+ _0x43b0x12);this[_0x5b48[746]]( new mxEventObject(mxEvent.MOVE,_0x5b48[763],_0x43b0x2));mxEvent[_0x5b48[722]](_0x43b0x2)}),_0x43b0x12=mxUtils[_0x5b48[885]](this,function(_0x43b0x2){mxEvent[_0x5b48[938]](document,null,_0x43b0xa,_0x43b0x12);this[_0x5b48[746]]( new mxEventObject(mxEvent.MOVE_END,_0x5b48[763],_0x43b0x2));mxEvent[_0x5b48[722]](_0x43b0x2)});mxEvent[_0x5b48[759]](document,null,_0x43b0xa,_0x43b0x12);this[_0x5b48[746]]( new mxEventObject(mxEvent.MOVE_START,_0x5b48[763],_0x43b0x2));mxEvent[_0x5b48[722]](_0x43b0x2)}))};mxWindow[_0x5b48[202]][_0x5b48[947]]= function(_0x43b0x2,_0x43b0x3){this[_0x5b48[485]][_0x5b48[124]][_0x5b48[361]]= _0x43b0x2+ _0x5b48[168];this[_0x5b48[485]][_0x5b48[124]][_0x5b48[125]]= _0x43b0x3+ _0x5b48[168]};mxWindow[_0x5b48[202]][_0x5b48[730]]= function(){return parseInt(this[_0x5b48[485]][_0x5b48[124]][_0x5b48[361]])};mxWindow[_0x5b48[202]][_0x5b48[732]]= function(){return parseInt(this[_0x5b48[485]][_0x5b48[124]][_0x5b48[125]])};mxWindow[_0x5b48[202]][_0x5b48[908]]= function(){this[_0x5b48[948]]= document[_0x5b48[55]](_0x5b48[466]);this[_0x5b48[948]][_0x5b48[57]](_0x5b48[390],this[_0x5b48[913]]);this[_0x5b48[948]][_0x5b48[57]](_0x5b48[611],_0x5b48[699]);this[_0x5b48[948]][_0x5b48[57]](_0x5b48[924],_0x5b48[949]);this[_0x5b48[948]][_0x5b48[124]][_0x5b48[945]]= _0x5b48[935];this[_0x5b48[948]][_0x5b48[124]][_0x5b48[270]]= _0x5b48[356];this[_0x5b48[948]][_0x5b48[124]][_0x5b48[495]]= _0x5b48[130];this[_0x5b48[924]][_0x5b48[950]](this[_0x5b48[948]],this[_0x5b48[924]][_0x5b48[285]]);mxEvent[_0x5b48[759]](this[_0x5b48[948]],mxUtils[_0x5b48[885]](this,function(_0x43b0x2){this[_0x5b48[746]]( new mxEventObject(mxEvent.CLOSE,_0x5b48[763],_0x43b0x2));this[_0x5b48[165]]?this[_0x5b48[515]]():this[_0x5b48[175]](!1);mxEvent[_0x5b48[722]](_0x43b0x2)}))};mxWindow[_0x5b48[202]][_0x5b48[951]]= function(_0x43b0x2){this[_0x5b48[618]]= document[_0x5b48[55]](_0x5b48[466]);this[_0x5b48[618]][_0x5b48[57]](_0x5b48[390],_0x43b0x2);this[_0x5b48[618]][_0x5b48[57]](_0x5b48[611],_0x5b48[361]);this[_0x5b48[618]][_0x5b48[124]][_0x5b48[941]]= _0x5b48[952];this[_0x5b48[618]][_0x5b48[124]][_0x5b48[945]]= _0x5b48[946];this[_0x5b48[618]][_0x5b48[124]][_0x5b48[953]]= _0x5b48[954];this[_0x5b48[924]][_0x5b48[950]](this[_0x5b48[618]],this[_0x5b48[924]][_0x5b48[285]])};mxWindow[_0x5b48[202]][_0x5b48[164]]= function(_0x43b0x2){this[_0x5b48[948]][_0x5b48[124]][_0x5b48[495]]= _0x43b0x2?_0x5b48[110]:_0x5b48[130]};mxWindow[_0x5b48[202]][_0x5b48[174]]= function(){return null!= this[_0x5b48[485]]?_0x5b48[188]!= this[_0x5b48[485]][_0x5b48[124]][_0x5b48[187]]:!1};mxWindow[_0x5b48[202]][_0x5b48[175]]= function(_0x43b0x2){null!= this[_0x5b48[485]]&& this[_0x5b48[174]]()!= _0x43b0x2&& (_0x43b0x2?this[_0x5b48[539]]():this[_0x5b48[801]]())};mxWindow[_0x5b48[202]][_0x5b48[539]]= function(){this[_0x5b48[485]][_0x5b48[124]][_0x5b48[187]]= _0x5b48[110];this[_0x5b48[790]]();var _0x43b0x2=mxUtils[_0x5b48[275]](this[_0x5b48[929]]);if(!mxClient[_0x5b48[80]]&& (_0x5b48[278]== _0x43b0x2[_0x5b48[277]]|| null!= this[_0x5b48[129]])){this[_0x5b48[929]][_0x5b48[124]][_0x5b48[119]]= this[_0x5b48[485]][_0x5b48[167]]- this[_0x5b48[924]][_0x5b48[167]]- 2+ _0x5b48[168]};this[_0x5b48[746]]( new mxEventObject(mxEvent.SHOW))};mxWindow[_0x5b48[202]][_0x5b48[801]]= function(){this[_0x5b48[485]][_0x5b48[124]][_0x5b48[187]]= _0x5b48[188];this[_0x5b48[746]]( new mxEventObject(mxEvent.HIDE))};mxWindow[_0x5b48[202]][_0x5b48[515]]= function(){this[_0x5b48[746]]( new mxEventObject(mxEvent.DESTROY));null!= this[_0x5b48[485]]&& (mxEvent[_0x5b48[762]](this[_0x5b48[485]]),this[_0x5b48[485]][_0x5b48[265]][_0x5b48[266]](this[_0x5b48[485]]),this[_0x5b48[485]]= null);this[_0x5b48[929]]= this[_0x5b48[905]]= this[_0x5b48[924]]= null};function mxForm(_0x43b0x2){this[_0x5b48[116]]= document[_0x5b48[55]](_0x5b48[116]);this[_0x5b48[116]][_0x5b48[926]]= _0x43b0x2;this[_0x5b48[112]]= document[_0x5b48[55]](_0x5b48[120]);this[_0x5b48[116]][_0x5b48[62]](this[_0x5b48[112]])}mxForm[_0x5b48[202]][_0x5b48[116]]= null;mxForm[_0x5b48[202]][_0x5b48[112]]= !1;mxForm[_0x5b48[202]][_0x5b48[955]]= function(){return this[_0x5b48[116]]};mxForm[_0x5b48[202]][_0x5b48[956]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=document[_0x5b48[55]](_0x5b48[121]),_0x43b0x5=document[_0x5b48[55]](_0x5b48[122]);_0x43b0x4[_0x5b48[62]](_0x43b0x5);var _0x43b0x5=document[_0x5b48[55]](_0x5b48[122]),_0x43b0x9=document[_0x5b48[55]](_0x5b48[172]);mxUtils[_0x5b48[53]](_0x43b0x9,mxResources[_0x5b48[203]](_0x5b48[957])|| _0x5b48[958]);_0x43b0x5[_0x5b48[62]](_0x43b0x9);mxEvent[_0x5b48[169]](_0x43b0x9,_0x5b48[173],function(){_0x43b0x2()});_0x43b0x9= document[_0x5b48[55]](_0x5b48[172]);mxUtils[_0x5b48[53]](_0x43b0x9,mxResources[_0x5b48[203]](_0x5b48[959])|| _0x5b48[960]);_0x43b0x5[_0x5b48[62]](_0x43b0x9);mxEvent[_0x5b48[169]](_0x43b0x9,_0x5b48[173],function(){_0x43b0x3()});_0x43b0x4[_0x5b48[62]](_0x43b0x5);this[_0x5b48[112]][_0x5b48[62]](_0x43b0x4)};mxForm[_0x5b48[202]][_0x5b48[961]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=document[_0x5b48[55]](_0x5b48[962]);_0x43b0x4[_0x5b48[57]](_0x5b48[60],_0x5b48[963]);_0x43b0x4[_0x5b48[131]]= _0x43b0x3;return this[_0x5b48[964]](_0x43b0x2,_0x43b0x4)};mxForm[_0x5b48[202]][_0x5b48[965]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=document[_0x5b48[55]](_0x5b48[962]);_0x43b0x4[_0x5b48[57]](_0x5b48[60],_0x5b48[966]);this[_0x5b48[964]](_0x43b0x2,_0x43b0x4);_0x43b0x3&& (_0x43b0x4[_0x5b48[967]]= !0);return _0x43b0x4};mxForm[_0x5b48[202]][_0x5b48[968]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){var _0x43b0x5=document[_0x5b48[55]](_0x5b48[126]);mxClient[_0x5b48[133]]&& _0x43b0x4--;_0x43b0x5[_0x5b48[57]](_0x5b48[969],_0x43b0x4|| 2);_0x43b0x5[_0x5b48[131]]= _0x43b0x3;return this[_0x5b48[964]](_0x43b0x2,_0x43b0x5)};mxForm[_0x5b48[202]][_0x5b48[970]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){var _0x43b0x5=document[_0x5b48[55]](_0x5b48[804]);null!= _0x43b0x4&& _0x43b0x5[_0x5b48[57]](_0x5b48[803],_0x43b0x4);_0x43b0x3&& _0x43b0x5[_0x5b48[57]](_0x5b48[971],_0x5b48[128]);return this[_0x5b48[964]](_0x43b0x2,_0x43b0x5)};mxForm[_0x5b48[202]][_0x5b48[972]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){var _0x43b0x9=document[_0x5b48[55]](_0x5b48[973]);mxUtils[_0x5b48[171]](_0x43b0x9,_0x43b0x3);_0x43b0x9[_0x5b48[57]](_0x5b48[131],_0x43b0x4);_0x43b0x5&& _0x43b0x9[_0x5b48[57]](_0x5b48[974],_0x43b0x5);_0x43b0x2[_0x5b48[62]](_0x43b0x9)};mxForm[_0x5b48[202]][_0x5b48[964]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=document[_0x5b48[55]](_0x5b48[121]),_0x43b0x5=document[_0x5b48[55]](_0x5b48[122]);mxUtils[_0x5b48[53]](_0x43b0x5,_0x43b0x2);_0x43b0x4[_0x5b48[62]](_0x43b0x5);_0x43b0x5= document[_0x5b48[55]](_0x5b48[122]);_0x43b0x5[_0x5b48[62]](_0x43b0x3);_0x43b0x4[_0x5b48[62]](_0x43b0x5);this[_0x5b48[112]][_0x5b48[62]](_0x43b0x4);return _0x43b0x3};function mxImage(_0x43b0x2,_0x43b0x3,_0x43b0x4){this[_0x5b48[390]]= _0x43b0x2;this[_0x5b48[117]]= _0x43b0x3;this[_0x5b48[119]]= _0x43b0x4}mxImage[_0x5b48[202]][_0x5b48[390]]= null;mxImage[_0x5b48[202]][_0x5b48[117]]= null;mxImage[_0x5b48[202]][_0x5b48[119]]= null;function mxDivResizer(_0x43b0x2,_0x43b0x3){if(_0x5b48[485]== _0x43b0x2[_0x5b48[301]][_0x5b48[216]]()){null== _0x43b0x3&& (_0x43b0x3= window);this[_0x5b48[485]]= _0x43b0x2;var _0x43b0x4=mxUtils[_0x5b48[275]](_0x43b0x2);null!= _0x43b0x4&& (this[_0x5b48[975]]= _0x5b48[278]== _0x43b0x4[_0x5b48[117]],this[_0x5b48[976]]= _0x5b48[278]== _0x43b0x4[_0x5b48[119]]);mxEvent[_0x5b48[169]](_0x43b0x3,_0x5b48[129],mxUtils[_0x5b48[885]](this,function(_0x43b0x2){this[_0x5b48[977]]|| (this[_0x5b48[977]]= !0,this[_0x5b48[129]](),this[_0x5b48[977]]= !1)}));this[_0x5b48[129]]()}}mxDivResizer[_0x5b48[202]][_0x5b48[975]]= !0;mxDivResizer[_0x5b48[202]][_0x5b48[976]]= !0;mxDivResizer[_0x5b48[202]][_0x5b48[977]]= !1;mxDivResizer[_0x5b48[202]][_0x5b48[129]]= function(){var _0x43b0x2=this[_0x5b48[978]](),_0x43b0x3=this[_0x5b48[979]](),_0x43b0x4=parseInt(this[_0x5b48[485]][_0x5b48[124]][_0x5b48[361]]),_0x43b0x5=parseInt(this[_0x5b48[485]][_0x5b48[124]][_0x5b48[699]]),_0x43b0x9=parseInt(this[_0x5b48[485]][_0x5b48[124]][_0x5b48[125]]),_0x43b0xa=parseInt(this[_0x5b48[485]][_0x5b48[124]][_0x5b48[553]]);this[_0x5b48[975]]&& (!isNaN(_0x43b0x4)&& !isNaN(_0x43b0x5) && 0<= _0x43b0x4 && 0<= _0x43b0x5 && 0< _0x43b0x2- _0x43b0x5- _0x43b0x4)&& (this[_0x5b48[485]][_0x5b48[124]][_0x5b48[117]]= _0x43b0x2- _0x43b0x5- _0x43b0x4+ _0x5b48[168]);this[_0x5b48[976]]&& (!isNaN(_0x43b0x9)&& !isNaN(_0x43b0xa) && 0<= _0x43b0x9 && 0<= _0x43b0xa && 0< _0x43b0x3- _0x43b0x9- _0x43b0xa)&& (this[_0x5b48[485]][_0x5b48[124]][_0x5b48[119]]= _0x43b0x3- _0x43b0x9- _0x43b0xa+ _0x5b48[168])};mxDivResizer[_0x5b48[202]][_0x5b48[978]]= function(){return document[_0x5b48[112]][_0x5b48[159]]};mxDivResizer[_0x5b48[202]][_0x5b48[979]]= function(){return document[_0x5b48[112]][_0x5b48[157]]};function mxDragSource(_0x43b0x2,_0x43b0x3){this[_0x5b48[980]]= _0x43b0x2;this[_0x5b48[981]]= _0x43b0x3;mxEvent[_0x5b48[759]](_0x43b0x2,mxUtils[_0x5b48[885]](this,this[_0x5b48[787]]))}mxDragSource[_0x5b48[202]][_0x5b48[980]]= null;mxDragSource[_0x5b48[202]][_0x5b48[981]]= null;mxDragSource[_0x5b48[202]][_0x5b48[559]]= null;mxDragSource[_0x5b48[202]][_0x5b48[982]]= null;mxDragSource[_0x5b48[202]][_0x5b48[983]]= null;mxDragSource[_0x5b48[202]][_0x5b48[984]]= !0;mxDragSource[_0x5b48[202]][_0x5b48[985]]= null;mxDragSource[_0x5b48[202]][_0x5b48[986]]= null;mxDragSource[_0x5b48[202]][_0x5b48[987]]= null;mxDragSource[_0x5b48[202]][_0x5b48[988]]= null;mxDragSource[_0x5b48[202]][_0x5b48[989]]= null;mxDragSource[_0x5b48[202]][_0x5b48[561]]= !0;mxDragSource[_0x5b48[202]][_0x5b48[990]]= !0;mxDragSource[_0x5b48[202]][_0x5b48[991]]= !0;mxDragSource[_0x5b48[202]][_0x5b48[563]]= !0;mxDragSource[_0x5b48[202]][_0x5b48[992]]= 100;mxDragSource[_0x5b48[202]][_0x5b48[993]]= 70;mxDragSource[_0x5b48[202]][_0x5b48[994]]= function(){return this[_0x5b48[984]]};mxDragSource[_0x5b48[202]][_0x5b48[995]]= function(_0x43b0x2){this[_0x5b48[984]]= _0x43b0x2};mxDragSource[_0x5b48[202]][_0x5b48[996]]= function(){return this[_0x5b48[990]]};mxDragSource[_0x5b48[202]][_0x5b48[562]]= function(_0x43b0x2){this[_0x5b48[990]]= _0x43b0x2};mxDragSource[_0x5b48[202]][_0x5b48[997]]= function(){return this[_0x5b48[991]]};mxDragSource[_0x5b48[202]][_0x5b48[998]]= function(_0x43b0x2){this[_0x5b48[991]]= _0x43b0x2};mxDragSource[_0x5b48[202]][_0x5b48[565]]= function(_0x43b0x2){return null};mxDragSource[_0x5b48[202]][_0x5b48[564]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){return _0x43b0x2[_0x5b48[999]](_0x43b0x3,_0x43b0x4)};mxDragSource[_0x5b48[202]][_0x5b48[566]]= function(_0x43b0x2){return this[_0x5b48[980]][_0x5b48[511]](!0)};mxDragSource[_0x5b48[202]][_0x5b48[567]]= function(_0x43b0x2){return null};mxDragSource[_0x5b48[202]][_0x5b48[787]]= function(_0x43b0x2){this[_0x5b48[984]]&& (!mxEvent[_0x5b48[721]](_0x43b0x2)&& null== this[_0x5b48[1000]])&& (this[_0x5b48[1001]](_0x43b0x2),this[_0x5b48[1000]]= mxUtils[_0x5b48[885]](this,this[_0x5b48[788]]),this[_0x5b48[1002]]= mxUtils[_0x5b48[885]](this,this[_0x5b48[789]]),mxEvent[_0x5b48[759]](document,null,this[_0x5b48[1000]],this[_0x5b48[1002]]),mxEvent[_0x5b48[722]](_0x43b0x2,!0,!1))};mxDragSource[_0x5b48[202]][_0x5b48[1001]]= function(_0x43b0x2){this[_0x5b48[982]]= this[_0x5b48[566]](_0x43b0x2);this[_0x5b48[982]][_0x5b48[124]][_0x5b48[491]]= _0x5b48[492];this[_0x5b48[982]][_0x5b48[124]][_0x5b48[931]]= this[_0x5b48[992]];mxUtils[_0x5b48[254]](this[_0x5b48[982]],this[_0x5b48[993]])};mxDragSource[_0x5b48[202]][_0x5b48[1003]]= function(_0x43b0x2){null!= this[_0x5b48[982]]&& (null!= this[_0x5b48[982]][_0x5b48[265]]&& this[_0x5b48[982]][_0x5b48[265]][_0x5b48[266]](this[_0x5b48[982]]),this[_0x5b48[982]]= null)};mxDragSource[_0x5b48[202]][_0x5b48[1004]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=mxEvent[_0x5b48[731]](_0x43b0x3),_0x43b0x5=mxEvent[_0x5b48[733]](_0x43b0x3),_0x43b0x9=mxUtils[_0x5b48[445]](_0x43b0x2[_0x5b48[526]]),_0x43b0xa=mxUtils[_0x5b48[444]]();return _0x43b0x4>= _0x43b0x9[_0x5b48[235]]- _0x43b0xa[_0x5b48[235]]&& _0x43b0x5>= _0x43b0x9[_0x5b48[236]]- _0x43b0xa[_0x5b48[236]]&& _0x43b0x4<= _0x43b0x9[_0x5b48[235]]- _0x43b0xa[_0x5b48[235]]+ _0x43b0x2[_0x5b48[526]][_0x5b48[359]]&& _0x43b0x5<= _0x43b0x9[_0x5b48[236]]- _0x43b0xa[_0x5b48[236]]+ _0x43b0x2[_0x5b48[526]][_0x5b48[167]]};mxDragSource[_0x5b48[202]][_0x5b48[788]]= function(_0x43b0x2){var _0x43b0x3=this[_0x5b48[565]](_0x43b0x2);null!= _0x43b0x3&& !this[_0x5b48[1004]](_0x43b0x3,_0x43b0x2)&& (_0x43b0x3= null);_0x43b0x3!= this[_0x5b48[985]]&& (null!= this[_0x5b48[985]]&& this[_0x5b48[1005]](this[_0x5b48[985]]),this[_0x5b48[985]]= _0x43b0x3,null!= this[_0x5b48[985]]&& this[_0x5b48[1006]](this[_0x5b48[985]]));null!= this[_0x5b48[985]]&& this[_0x5b48[1007]](this[_0x5b48[985]],_0x43b0x2);if(null!= this[_0x5b48[982]]&& (null== this[_0x5b48[983]]|| _0x5b48[189]!= this[_0x5b48[983]][_0x5b48[124]][_0x5b48[187]])){var _0x43b0x3=mxEvent[_0x5b48[731]](_0x43b0x2),_0x43b0x4=mxEvent[_0x5b48[733]](_0x43b0x2);null== this[_0x5b48[982]][_0x5b48[265]]&& document[_0x5b48[112]][_0x5b48[62]](this[_0x5b48[982]]);this[_0x5b48[982]][_0x5b48[124]][_0x5b48[187]]= _0x5b48[189];null!= this[_0x5b48[559]]&& (_0x43b0x3+= this[_0x5b48[559]][_0x5b48[235]],_0x43b0x4+= this[_0x5b48[559]][_0x5b48[236]]);_0x43b0x3+= document[_0x5b48[112]][_0x5b48[360]]|| document[_0x5b48[158]][_0x5b48[360]];_0x43b0x4+= document[_0x5b48[112]][_0x5b48[190]]|| document[_0x5b48[158]][_0x5b48[190]];this[_0x5b48[982]][_0x5b48[124]][_0x5b48[361]]= _0x43b0x3+ _0x5b48[168];this[_0x5b48[982]][_0x5b48[124]][_0x5b48[125]]= _0x43b0x4+ _0x5b48[168]}else {null!= this[_0x5b48[982]]&& (this[_0x5b48[982]][_0x5b48[124]][_0x5b48[187]]= _0x5b48[188])};mxEvent[_0x5b48[722]](_0x43b0x2)};mxDragSource[_0x5b48[202]][_0x5b48[789]]= function(_0x43b0x2){if(null!= this[_0x5b48[985]]){if(null!= this[_0x5b48[987]]&& (null== this[_0x5b48[983]]|| _0x5b48[188]!= this[_0x5b48[983]][_0x5b48[124]][_0x5b48[187]])){var _0x43b0x3=this[_0x5b48[985]][_0x5b48[441]][_0x5b48[255]],_0x43b0x4=this[_0x5b48[985]][_0x5b48[441]][_0x5b48[513]];this[_0x5b48[1008]](this[_0x5b48[985]],_0x43b0x2,this[_0x5b48[986]],this[_0x5b48[987]][_0x5b48[235]]/ _0x43b0x3- _0x43b0x4[_0x5b48[235]],this[_0x5b48[987]][_0x5b48[236]]/ _0x43b0x3- _0x43b0x4[_0x5b48[236]])};this[_0x5b48[1005]](this[_0x5b48[985]])};this[_0x5b48[1003]](_0x43b0x2);mxEvent[_0x5b48[938]](document,null,this[_0x5b48[1000]],this[_0x5b48[1002]]);this[_0x5b48[985]]= this[_0x5b48[1002]]= this[_0x5b48[1000]]= null;mxEvent[_0x5b48[722]](_0x43b0x2)};mxDragSource[_0x5b48[202]][_0x5b48[1006]]= function(_0x43b0x2){_0x43b0x2[_0x5b48[1009]]= !0;this[_0x5b48[983]]= this[_0x5b48[567]](_0x43b0x2);this[_0x5b48[996]]()&& null!= this[_0x5b48[983]]&& (this[_0x5b48[988]]= new mxGuide(_0x43b0x2,_0x43b0x2[_0x5b48[1011]][_0x5b48[1010]]()));this[_0x5b48[563]]&& (this[_0x5b48[989]]= new mxCellHighlight(_0x43b0x2,mxConstants.DROP_TARGET_COLOR))};mxDragSource[_0x5b48[202]][_0x5b48[1005]]= function(_0x43b0x2){this[_0x5b48[987]]= this[_0x5b48[986]]= null;_0x43b0x2[_0x5b48[1009]]= !1;null!= this[_0x5b48[983]]&& (null!= this[_0x5b48[983]][_0x5b48[265]]&& this[_0x5b48[983]][_0x5b48[265]][_0x5b48[266]](this[_0x5b48[983]]),this[_0x5b48[983]]= null);null!= this[_0x5b48[988]]&& (this[_0x5b48[988]][_0x5b48[515]](),this[_0x5b48[988]]= null);null!= this[_0x5b48[989]]&& (this[_0x5b48[989]][_0x5b48[515]](),this[_0x5b48[989]]= null)};mxDragSource[_0x5b48[202]][_0x5b48[1007]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=mxUtils[_0x5b48[445]](_0x43b0x2[_0x5b48[526]]),_0x43b0x5=mxUtils[_0x5b48[444]](_0x43b0x2[_0x5b48[526]]),_0x43b0x9=mxEvent[_0x5b48[731]](_0x43b0x3)- _0x43b0x4[_0x5b48[235]]+ _0x43b0x5[_0x5b48[235]],_0x43b0x4=mxEvent[_0x5b48[733]](_0x43b0x3)- _0x43b0x4[_0x5b48[236]]+ _0x43b0x5[_0x5b48[236]];_0x43b0x2[_0x5b48[1012]]&& (null== this[_0x5b48[561]]|| this[_0x5b48[561]])&& _0x43b0x2[_0x5b48[1014]](_0x43b0x9,_0x43b0x4,_0x43b0x2[_0x5b48[1013]]);null!= this[_0x5b48[989]]&& _0x43b0x2[_0x5b48[1015]]()&& (this[_0x5b48[986]]= this[_0x5b48[564]](_0x43b0x2,_0x43b0x9,_0x43b0x4),_0x43b0x5= _0x43b0x2[_0x5b48[249]]()[_0x5b48[248]](this[_0x5b48[986]]),this[_0x5b48[989]][_0x5b48[1016]](_0x43b0x5));if(null!= this[_0x5b48[983]]){null== this[_0x5b48[983]][_0x5b48[265]]&& (_0x43b0x2[_0x5b48[526]][_0x5b48[62]](this[_0x5b48[983]]),this[_0x5b48[983]][_0x5b48[124]][_0x5b48[931]]= _0x5b48[1017],this[_0x5b48[983]][_0x5b48[124]][_0x5b48[491]]= _0x5b48[492]);var _0x43b0x5=this[_0x5b48[997]]()&& _0x43b0x2[_0x5b48[1018]](_0x43b0x3),_0x43b0xa=!0;if(null!= this[_0x5b48[988]]&& this[_0x5b48[988]][_0x5b48[1019]](_0x43b0x3)){var _0x43b0xa=parseInt(this[_0x5b48[983]][_0x5b48[124]][_0x5b48[117]]),_0x43b0x12=parseInt(this[_0x5b48[983]][_0x5b48[124]][_0x5b48[119]]),_0x43b0xa= new mxRectangle(0,0,_0x43b0xa,_0x43b0x12),_0x43b0x4= new mxPoint(_0x43b0x9,_0x43b0x4),_0x43b0x4=this[_0x5b48[988]][_0x5b48[582]](_0x43b0xa,_0x43b0x4,_0x43b0x5),_0x43b0xa=!1,_0x43b0x9=_0x43b0x4[_0x5b48[235]],_0x43b0x4=_0x43b0x4[_0x5b48[236]]}else {if(_0x43b0x5){var _0x43b0x5=_0x43b0x2[_0x5b48[441]][_0x5b48[255]],_0x43b0x12=_0x43b0x2[_0x5b48[441]][_0x5b48[513]],_0x43b0x13=_0x43b0x2[_0x5b48[1020]]/ 2,_0x43b0x9=(_0x43b0x2[_0x5b48[1021]](_0x43b0x9/ _0x43b0x5- _0x43b0x12[_0x5b48[235]]- _0x43b0x13)+ _0x43b0x12[_0x5b48[235]])* _0x43b0x5,_0x43b0x4=(_0x43b0x2[_0x5b48[1021]](_0x43b0x4/ _0x43b0x5- _0x43b0x12[_0x5b48[236]]- _0x43b0x13)+ _0x43b0x12[_0x5b48[236]])* _0x43b0x5}};null!= this[_0x5b48[988]]&& _0x43b0xa&& this[_0x5b48[988]][_0x5b48[801]]();null!= this[_0x5b48[1022]]&& (_0x43b0x9+= this[_0x5b48[1022]][_0x5b48[235]],_0x43b0x4+= this[_0x5b48[1022]][_0x5b48[236]]);this[_0x5b48[983]][_0x5b48[124]][_0x5b48[361]]= Math[_0x5b48[488]](_0x43b0x9)+ _0x5b48[168];this[_0x5b48[983]][_0x5b48[124]][_0x5b48[125]]= Math[_0x5b48[488]](_0x43b0x4)+ _0x5b48[168];this[_0x5b48[983]][_0x5b48[124]][_0x5b48[187]]= _0x5b48[189]};this[_0x5b48[987]]= new mxPoint(_0x43b0x9,_0x43b0x4)};mxDragSource[_0x5b48[202]][_0x5b48[1008]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){this[_0x5b48[981]](_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9);_0x43b0x2[_0x5b48[526]][_0x5b48[393]]()};function mxToolbar(_0x43b0x2){this[_0x5b48[526]]= _0x43b0x2}mxToolbar[_0x5b48[202]]= new mxEventSource;mxToolbar[_0x5b48[202]][_0x5b48[196]]= mxToolbar;mxToolbar[_0x5b48[202]][_0x5b48[526]]= null;mxToolbar[_0x5b48[202]][_0x5b48[984]]= !0;mxToolbar[_0x5b48[202]][_0x5b48[1023]]= !1;mxToolbar[_0x5b48[202]][_0x5b48[1024]]= !0;mxToolbar[_0x5b48[202]][_0x5b48[1025]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa){var _0x43b0x12=document[_0x5b48[55]](null!= _0x43b0x3?_0x5b48[466]:_0x5b48[172]),_0x43b0x13=_0x43b0x9|| (null!= _0x43b0xa?_0x5b48[1026]:_0x5b48[1027]);_0x43b0x12[_0x5b48[926]]= _0x43b0x13;_0x43b0x12[_0x5b48[57]](_0x5b48[390],_0x43b0x3);null!= _0x43b0x2&& (null!= _0x43b0x3?_0x43b0x12[_0x5b48[57]](_0x5b48[924],_0x43b0x2):mxUtils[_0x5b48[53]](_0x43b0x12,_0x43b0x2));this[_0x5b48[526]][_0x5b48[62]](_0x43b0x12);null!= _0x43b0x4&& (mxEvent[_0x5b48[169]](_0x43b0x12,_0x5b48[173],_0x43b0x4),mxClient[_0x5b48[754]]&& mxEvent[_0x5b48[169]](_0x43b0x12,_0x5b48[757],_0x43b0x4));_0x43b0x2= mxUtils[_0x5b48[885]](this,function(_0x43b0x2){null!= _0x43b0x5?_0x43b0x12[_0x5b48[57]](_0x5b48[390],_0x43b0x3):_0x43b0x12[_0x5b48[124]][_0x5b48[1028]]= _0x5b48[110]});mxEvent[_0x5b48[759]](_0x43b0x12,mxUtils[_0x5b48[885]](this,function(_0x43b0x2){null!= _0x43b0x5?_0x43b0x12[_0x5b48[57]](_0x5b48[390],_0x43b0x5):_0x43b0x12[_0x5b48[124]][_0x5b48[1028]]= _0x5b48[579];if(null!= _0x43b0xa){null== this[_0x5b48[1029]]&& (this[_0x5b48[1029]]= new mxPopupMenu,this[_0x5b48[1029]][_0x5b48[176]]());var _0x43b0x3=this[_0x5b48[1030]];this[_0x5b48[1029]][_0x5b48[1031]]()&& this[_0x5b48[1029]][_0x5b48[1032]]();_0x43b0x3!= _0x43b0x12&& (this[_0x5b48[1030]]= _0x43b0x12,this[_0x5b48[1029]][_0x5b48[1033]]= _0x43b0xa,_0x43b0x3= new mxPoint(_0x43b0x12[_0x5b48[358]],_0x43b0x12[_0x5b48[362]]+ _0x43b0x12[_0x5b48[167]]),this[_0x5b48[1029]][_0x5b48[152]](_0x43b0x3[_0x5b48[235]],_0x43b0x3[_0x5b48[236]],null,_0x43b0x2),this[_0x5b48[1029]][_0x5b48[1031]]()&& (_0x43b0x12[_0x5b48[926]]= _0x43b0x13+ _0x5b48[1034],this[_0x5b48[1029]][_0x5b48[1032]]= function(){mxPopupMenu[_0x5b48[202]][_0x5b48[1032]][_0x5b48[183]](this);_0x43b0x12[_0x5b48[926]]= _0x43b0x13;this[_0x5b48[1030]]= null}))}}),null,_0x43b0x2);mxEvent[_0x5b48[169]](_0x43b0x12,_0x5b48[1035],_0x43b0x2);return _0x43b0x12};mxToolbar[_0x5b48[202]][_0x5b48[970]]= function(_0x43b0x2){var _0x43b0x3=document[_0x5b48[55]](_0x5b48[485]);_0x43b0x3[_0x5b48[124]][_0x5b48[495]]= _0x5b48[497];_0x43b0x3[_0x5b48[926]]= _0x5b48[1036];var _0x43b0x4=document[_0x5b48[55]](_0x5b48[804]);_0x43b0x4[_0x5b48[926]]= _0x43b0x2|| _0x5b48[1037];_0x43b0x3[_0x5b48[62]](_0x43b0x4);this[_0x5b48[526]][_0x5b48[62]](_0x43b0x3);return _0x43b0x4};mxToolbar[_0x5b48[202]][_0x5b48[1038]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=document[_0x5b48[55]](_0x5b48[804]);_0x43b0x4[_0x5b48[926]]= _0x43b0x3|| _0x5b48[1037];this[_0x5b48[972]](_0x43b0x4,_0x43b0x2,null);mxEvent[_0x5b48[169]](_0x43b0x4,_0x5b48[826],function(_0x43b0x2){var _0x43b0x3=_0x43b0x4[_0x5b48[1040]][_0x43b0x4[_0x5b48[1039]]];_0x43b0x4[_0x5b48[1039]]= 0;null!= _0x43b0x3[_0x5b48[1041]]&& _0x43b0x3[_0x5b48[1041]](_0x43b0x2)});this[_0x5b48[526]][_0x5b48[62]](_0x43b0x4);return _0x43b0x4};mxToolbar[_0x5b48[202]][_0x5b48[972]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){var _0x43b0x5=document[_0x5b48[55]](_0x5b48[973]);mxUtils[_0x5b48[171]](_0x43b0x5,_0x43b0x3);_0x5b48[279]== typeof _0x43b0x4?_0x43b0x5[_0x5b48[1041]]= _0x43b0x4:_0x43b0x5[_0x5b48[57]](_0x5b48[131],_0x43b0x4);_0x43b0x2[_0x5b48[62]](_0x43b0x5);return _0x43b0x5};mxToolbar[_0x5b48[202]][_0x5b48[1042]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){var _0x43b0xa=document[_0x5b48[55]](_0x5b48[466]);_0x43b0xa[_0x5b48[1043]]= _0x43b0x9|| _0x5b48[1026];_0x43b0xa[_0x5b48[926]]= _0x43b0xa[_0x5b48[1043]];_0x43b0xa[_0x5b48[57]](_0x5b48[390],_0x43b0x3);_0x43b0xa[_0x5b48[1044]]= _0x43b0x5;null!= _0x43b0x2&& _0x43b0xa[_0x5b48[57]](_0x5b48[924],_0x43b0x2);mxEvent[_0x5b48[169]](_0x43b0xa,_0x5b48[173],mxUtils[_0x5b48[885]](this,function(_0x43b0x2){_0x43b0x2= this[_0x5b48[1045]][_0x5b48[1044]];null!= _0x43b0x2?(this[_0x5b48[1045]][_0x5b48[1044]]= this[_0x5b48[1045]][_0x5b48[284]](_0x5b48[390]),this[_0x5b48[1045]][_0x5b48[57]](_0x5b48[390],_0x43b0x2)):this[_0x5b48[1045]][_0x5b48[926]]= this[_0x5b48[1045]][_0x5b48[1043]];this[_0x5b48[1024]]&& (this[_0x5b48[1046]]= _0x43b0xa);this[_0x5b48[1045]]= _0x43b0xa;_0x43b0x2= _0x43b0xa[_0x5b48[1044]];null!= _0x43b0x2?(_0x43b0xa[_0x5b48[1044]]= _0x43b0xa[_0x5b48[284]](_0x5b48[390]),_0x43b0xa[_0x5b48[57]](_0x5b48[390],_0x43b0x2)):_0x43b0xa[_0x5b48[926]]= _0x43b0xa[_0x5b48[1043]]+ _0x5b48[1034];this[_0x5b48[746]]( new mxEventObject(mxEvent.SELECT));_0x43b0x4()}));this[_0x5b48[526]][_0x5b48[62]](_0x43b0xa);null== this[_0x5b48[1046]]&& (this[_0x5b48[1046]]= _0x43b0xa,this[_0x5b48[1047]](_0x43b0xa),_0x43b0x4());return _0x43b0xa};mxToolbar[_0x5b48[202]][_0x5b48[1048]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa){_0x43b0xa= null!= _0x43b0xa?_0x43b0xa:!0;var _0x43b0x12=document[_0x5b48[55]](null!= _0x43b0x3?_0x5b48[466]:_0x5b48[172]);_0x43b0x12[_0x5b48[1043]]= _0x43b0x9|| _0x5b48[1026];_0x43b0x12[_0x5b48[926]]= _0x43b0x12[_0x5b48[1043]];_0x43b0x12[_0x5b48[57]](_0x5b48[390],_0x43b0x3);_0x43b0x12[_0x5b48[1044]]= _0x43b0x5;null!= _0x43b0x2&& _0x43b0x12[_0x5b48[57]](_0x5b48[924],_0x43b0x2);this[_0x5b48[984]]&& _0x43b0xa&& (mxEvent[_0x5b48[169]](_0x43b0x12,_0x5b48[173],mxUtils[_0x5b48[885]](this,function(_0x43b0x2){this[_0x5b48[1047]](_0x43b0x12,_0x43b0x4);this[_0x5b48[1023]]= !1})),mxEvent[_0x5b48[169]](_0x43b0x12,_0x5b48[760],mxUtils[_0x5b48[885]](this,function(_0x43b0x2){this[_0x5b48[1047]](_0x43b0x12,_0x43b0x4);this[_0x5b48[1023]]= !0})),null== this[_0x5b48[1046]]&& (this[_0x5b48[1046]]= _0x43b0x12,this[_0x5b48[1049]]= _0x43b0x4,this[_0x5b48[1047]](_0x43b0x12,_0x43b0x4)));this[_0x5b48[526]][_0x5b48[62]](_0x43b0x12);return _0x43b0x12};mxToolbar[_0x5b48[202]][_0x5b48[1047]]= function(_0x43b0x2,_0x43b0x3){if(this[_0x5b48[1045]]!= _0x43b0x2){if(null!= this[_0x5b48[1045]]){var _0x43b0x4=this[_0x5b48[1045]][_0x5b48[1044]];null!= _0x43b0x4?(this[_0x5b48[1045]][_0x5b48[1044]]= this[_0x5b48[1045]][_0x5b48[284]](_0x5b48[390]),this[_0x5b48[1045]][_0x5b48[57]](_0x5b48[390],_0x43b0x4)):this[_0x5b48[1045]][_0x5b48[926]]= this[_0x5b48[1045]][_0x5b48[1043]]};this[_0x5b48[1045]]= _0x43b0x2;_0x43b0x4= this[_0x5b48[1045]][_0x5b48[1044]];null!= _0x43b0x4?(this[_0x5b48[1045]][_0x5b48[1044]]= this[_0x5b48[1045]][_0x5b48[284]](_0x5b48[390]),this[_0x5b48[1045]][_0x5b48[57]](_0x5b48[390],_0x43b0x4)):this[_0x5b48[1045]][_0x5b48[926]]= this[_0x5b48[1045]][_0x5b48[1043]]+ _0x5b48[1034];this[_0x5b48[746]]( new mxEventObject(mxEvent.SELECT,_0x5b48[279],_0x43b0x3))}};mxToolbar[_0x5b48[202]][_0x5b48[1050]]= function(_0x43b0x2){(_0x43b0x2|| !this[_0x5b48[1023]])&& this[_0x5b48[1045]]!= this[_0x5b48[1046]]&& this[_0x5b48[1047]](this[_0x5b48[1046]],this[_0x5b48[1049]])};mxToolbar[_0x5b48[202]][_0x5b48[1051]]= function(_0x43b0x2){return this[_0x5b48[1025]](null,_0x43b0x2,null)};mxToolbar[_0x5b48[202]][_0x5b48[1052]]= function(){mxUtils[_0x5b48[345]](this[_0x5b48[526]])};mxToolbar[_0x5b48[202]][_0x5b48[1053]]= function(){var _0x43b0x2=document[_0x5b48[55]](_0x5b48[1054]);_0x43b0x2[_0x5b48[124]][_0x5b48[941]]= _0x5b48[1055];_0x43b0x2[_0x5b48[57]](_0x5b48[803],_0x5b48[500]);this[_0x5b48[526]][_0x5b48[62]](_0x43b0x2)};mxToolbar[_0x5b48[202]][_0x5b48[515]]= function(){mxEvent[_0x5b48[762]](this[_0x5b48[526]]);this[_0x5b48[1045]]= this[_0x5b48[1049]]= this[_0x5b48[1046]]= this[_0x5b48[526]]= null;null!= this[_0x5b48[1029]]&& this[_0x5b48[1029]][_0x5b48[515]]()};function mxSession(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){this[_0x5b48[251]]= _0x43b0x2;this[_0x5b48[1056]]= _0x43b0x3;this[_0x5b48[1057]]= _0x43b0x4;this[_0x5b48[1058]]= _0x43b0x5;null!= _0x43b0x2&& (this[_0x5b48[1059]]= new mxCodec,this[_0x5b48[1059]][_0x5b48[1060]]= function(_0x43b0x3){return _0x43b0x2[_0x5b48[736]](_0x43b0x3)});_0x43b0x2[_0x5b48[169]](mxEvent.NOTIFY,mxUtils[_0x5b48[885]](this,function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=_0x43b0x3[_0x5b48[720]](_0x5b48[1061]);(null!= _0x43b0x4&& this[_0x5b48[143]]|| this[_0x5b48[1062]]&& !this[_0x5b48[1063]])&& this[_0x5b48[827]](_0x5b48[1064]+ this[_0x5b48[1067]](_0x43b0x4[_0x5b48[1065]],_0x43b0x4[_0x5b48[1066]])+ _0x5b48[1068])}))}mxSession[_0x5b48[202]]= new mxEventSource;mxSession[_0x5b48[202]][_0x5b48[196]]= mxSession;mxSession[_0x5b48[202]][_0x5b48[251]]= null;mxSession[_0x5b48[202]][_0x5b48[1056]]= null;mxSession[_0x5b48[202]][_0x5b48[1057]]= null;mxSession[_0x5b48[202]][_0x5b48[1058]]= null;mxSession[_0x5b48[202]][_0x5b48[1059]]= null;mxSession[_0x5b48[202]][_0x5b48[1069]]= _0x5b48[336];mxSession[_0x5b48[202]][_0x5b48[1070]]= !0;mxSession[_0x5b48[202]][_0x5b48[1071]]= !0;mxSession[_0x5b48[202]][_0x5b48[1072]]= 0;mxSession[_0x5b48[202]][_0x5b48[1073]]= 0;mxSession[_0x5b48[202]][_0x5b48[143]]= !1;mxSession[_0x5b48[202]][_0x5b48[1062]]= !1;mxSession[_0x5b48[202]][_0x5b48[1063]]= !1;mxSession[_0x5b48[202]][_0x5b48[1074]]= !1;mxSession[_0x5b48[202]][_0x5b48[861]]= function(){this[_0x5b48[143]]?(this[_0x5b48[1062]]= !0,this[_0x5b48[746]]( new mxEventObject(mxEvent.CONNECT))):this[_0x5b48[1062]]|| this[_0x5b48[203]](this[_0x5b48[1056]],mxUtils[_0x5b48[885]](this,function(_0x43b0x2){this[_0x5b48[1062]]= !0;this[_0x5b48[746]]( new mxEventObject(mxEvent.CONNECT));this[_0x5b48[1075]]()}))};mxSession[_0x5b48[202]][_0x5b48[809]]= function(){this[_0x5b48[1062]]&& !this[_0x5b48[1063]]&& (this[_0x5b48[1063]]= !0,this[_0x5b48[746]]( new mxEventObject(mxEvent.SUSPEND)))};mxSession[_0x5b48[202]][_0x5b48[810]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){this[_0x5b48[1062]]&& this[_0x5b48[1063]]&& (this[_0x5b48[1063]]= !1,this[_0x5b48[746]]( new mxEventObject(mxEvent.RESUME)),this[_0x5b48[1074]]|| this[_0x5b48[1075]]())};mxSession[_0x5b48[202]][_0x5b48[1076]]= function(_0x43b0x2){this[_0x5b48[1062]]&& (this[_0x5b48[1062]]= !1);this[_0x5b48[746]]( new mxEventObject(mxEvent.DISCONNECT,_0x5b48[1077],_0x43b0x2))};mxSession[_0x5b48[202]][_0x5b48[1075]]= function(){this[_0x5b48[1062]]&& !this[_0x5b48[1063]]&& null!= this[_0x5b48[1057]]?(this[_0x5b48[1074]]= !0,this[_0x5b48[203]](this[_0x5b48[1057]],mxUtils[_0x5b48[885]](this,function(){this[_0x5b48[1075]]()}))):this[_0x5b48[1074]]= !1};mxSession[_0x5b48[202]][_0x5b48[827]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){null!= _0x43b0x2&& 0< _0x43b0x2[_0x5b48[67]]&& (null!= this[_0x5b48[1058]]&& (this[_0x5b48[143]]?(mxLog[_0x5b48[539]](),mxLog[_0x5b48[143]](_0x5b48[1078]+ this[_0x5b48[1058]]+ _0x5b48[1079]+ _0x43b0x2)):(_0x43b0x2= _0x5b48[1080]+ _0x43b0x2+ _0x5b48[1081],this[_0x5b48[1070]]&& (_0x43b0x2= encodeURIComponent(_0x43b0x2)),mxUtils[_0x5b48[814]](this[_0x5b48[1058]],_0x5b48[1082]+ _0x43b0x2,_0x43b0x3,_0x43b0x4))),this[_0x5b48[1072]]+= _0x43b0x2[_0x5b48[67]],this[_0x5b48[746]]( new mxEventObject(mxEvent.NOTIFY,_0x5b48[863],this[_0x5b48[1058]],_0x5b48[338],_0x43b0x2)))};mxSession[_0x5b48[202]][_0x5b48[203]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){if(_0x5b48[82]!= typeof mxUtils){var _0x43b0x5=mxUtils[_0x5b48[885]](this,function(_0x43b0x2){null!= _0x43b0x4?_0x43b0x4(_0x43b0x2):this[_0x5b48[1076]](_0x43b0x2)});mxUtils[_0x5b48[203]](_0x43b0x2,mxUtils[_0x5b48[885]](this,function(_0x43b0x4){if(_0x5b48[82]!= typeof mxUtils){if(_0x43b0x4[_0x5b48[220]]()&& 404!= _0x43b0x4[_0x5b48[878]]()){if(this[_0x5b48[1073]]+= _0x43b0x4[_0x5b48[221]]()[_0x5b48[67]],this[_0x5b48[746]]( new mxEventObject(mxEvent.GET,_0x5b48[863],_0x43b0x2,_0x5b48[870],_0x43b0x4)),this[_0x5b48[1083]](_0x43b0x4)){if(0< _0x43b0x4[_0x5b48[221]]()[_0x5b48[67]]){var _0x43b0xa=_0x43b0x4[_0x5b48[874]]();null== _0x43b0xa?_0x43b0x5(_0x5b48[1084]+ _0x43b0x4[_0x5b48[221]]()):this[_0x5b48[806]](_0x43b0xa)};null!= _0x43b0x3&& _0x43b0x3(_0x43b0x4)}}else {_0x43b0x5(_0x5b48[1085])}}}),function(_0x43b0x2){_0x43b0x5(_0x5b48[1086])})}};mxSession[_0x5b48[202]][_0x5b48[1083]]= function(_0x43b0x2){return 0> _0x43b0x2[_0x5b48[221]]()[_0x5b48[2]](_0x5b48[1087])};mxSession[_0x5b48[202]][_0x5b48[1067]]= function(_0x43b0x2,_0x43b0x3){for(var _0x43b0x4=_0x5b48[110],_0x43b0x5=_0x43b0x3?-1:1,_0x43b0x9=_0x43b0x3?_0x43b0x2[_0x5b48[67]]- 1:0;0<= _0x43b0x9&& _0x43b0x9< _0x43b0x2[_0x5b48[67]];_0x43b0x9+= _0x43b0x5){var _0x43b0xa=this[_0x5b48[1059]][_0x5b48[514]](_0x43b0x2[_0x43b0x9]),_0x43b0x4=_0x43b0x4+ mxUtils[_0x5b48[875]](_0x43b0xa,this[_0x5b48[1069]])};return _0x43b0x4};mxSession[_0x5b48[202]][_0x5b48[806]]= function(_0x43b0x2){if(null!= _0x43b0x2&& _0x43b0x2[_0x5b48[288]]== mxConstants[_0x5b48[289]]){var _0x43b0x3=_0x43b0x2[_0x5b48[284]](_0x5b48[1088]);null!= _0x43b0x3&& (this[_0x5b48[251]][_0x5b48[1089]]= _0x43b0x3+ _0x5b48[213]);for(_0x43b0x3= _0x43b0x2[_0x5b48[285]];null!= _0x43b0x3;){var _0x43b0x4=_0x43b0x3[_0x5b48[301]][_0x5b48[216]]();_0x5b48[724]== _0x43b0x4?this[_0x5b48[1090]](_0x43b0x3):_0x5b48[1091]== _0x43b0x4&& this[_0x5b48[1092]](_0x43b0x3);_0x43b0x3= _0x43b0x3[_0x5b48[287]]};this[_0x5b48[746]]( new mxEventObject(mxEvent.RECEIVE,_0x5b48[252],_0x43b0x2))}};mxSession[_0x5b48[202]][_0x5b48[1090]]= function(_0x43b0x2){( new mxCodec(_0x43b0x2[_0x5b48[295]]))[_0x5b48[1093]](_0x43b0x2[_0x5b48[285]],this[_0x5b48[251]])};mxSession[_0x5b48[202]][_0x5b48[1092]]= function(_0x43b0x2){for(_0x43b0x2= _0x43b0x2[_0x5b48[285]];null!= _0x43b0x2;){_0x5b48[1061]== _0x43b0x2[_0x5b48[301]]&& this[_0x5b48[1094]](_0x43b0x2),_0x43b0x2= _0x43b0x2[_0x5b48[287]]}};mxSession[_0x5b48[202]][_0x5b48[1094]]= function(_0x43b0x2){_0x43b0x2= this[_0x5b48[1095]](_0x43b0x2);if(0< _0x43b0x2[_0x5b48[67]]){var _0x43b0x3=this[_0x5b48[1096]](_0x43b0x2);this[_0x5b48[251]][_0x5b48[746]]( new mxEventObject(mxEvent.CHANGE,_0x5b48[1061],_0x43b0x3,_0x5b48[1065],_0x43b0x2));this[_0x5b48[251]][_0x5b48[746]]( new mxEventObject(mxEvent.UNDO,_0x5b48[1061],_0x43b0x3));this[_0x5b48[746]]( new mxEventObject(mxEvent.FIRED,_0x5b48[1061],_0x43b0x3))}};mxSession[_0x5b48[202]][_0x5b48[1096]]= function(_0x43b0x2){var _0x43b0x3= new mxUndoableEdit(this[_0x5b48[251]],this[_0x5b48[1071]]);_0x43b0x3[_0x5b48[1065]]= _0x43b0x2;_0x43b0x3[_0x5b48[827]]= function(){_0x43b0x3[_0x5b48[1097]][_0x5b48[746]]( new mxEventObject(mxEvent.CHANGE,_0x5b48[1061],_0x43b0x3,_0x5b48[1065],_0x43b0x3[_0x5b48[1065]]));_0x43b0x3[_0x5b48[1097]][_0x5b48[746]]( new mxEventObject(mxEvent.NOTIFY,_0x5b48[1061],_0x43b0x3,_0x5b48[1065],_0x43b0x3[_0x5b48[1065]]))};return _0x43b0x3};mxSession[_0x5b48[202]][_0x5b48[1095]]= function(_0x43b0x2){this[_0x5b48[1059]][_0x5b48[395]]= _0x43b0x2[_0x5b48[295]];var _0x43b0x3=[];for(_0x43b0x2= _0x43b0x2[_0x5b48[285]];null!= _0x43b0x2;){var _0x43b0x4=this[_0x5b48[1098]](_0x43b0x2);null!= _0x43b0x4&& _0x43b0x3[_0x5b48[207]](_0x43b0x4);_0x43b0x2= _0x43b0x2[_0x5b48[287]]};return _0x43b0x3};mxSession[_0x5b48[202]][_0x5b48[1098]]= function(_0x43b0x2){var _0x43b0x3=null;_0x43b0x2[_0x5b48[288]]== mxConstants[_0x5b48[289]]&& (_0x43b0x3= _0x5b48[1099]== _0x43b0x2[_0x5b48[301]]?( new mxCodec(_0x43b0x2[_0x5b48[295]]))[_0x5b48[1093]](_0x43b0x2):this[_0x5b48[1059]][_0x5b48[1093]](_0x43b0x2),null!= _0x43b0x3&& (_0x43b0x3[_0x5b48[251]]= this[_0x5b48[251]],_0x43b0x3[_0x5b48[350]](),_0x5b48[1100]== _0x43b0x2[_0x5b48[301]]&& null== _0x43b0x3[_0x5b48[1101]]&& this[_0x5b48[1102]](_0x43b0x3[_0x5b48[247]])));return _0x43b0x3};mxSession[_0x5b48[202]][_0x5b48[1102]]= function(_0x43b0x2,_0x43b0x3){this[_0x5b48[1059]][_0x5b48[1104]](_0x43b0x2[_0x5b48[1103]](),_0x43b0x2);for(var _0x43b0x4=this[_0x5b48[251]][_0x5b48[262]](_0x43b0x2),_0x43b0x5=0;_0x43b0x5< _0x43b0x4;_0x43b0x5++){this[_0x5b48[1102]](this[_0x5b48[251]][_0x5b48[263]](_0x43b0x2,_0x43b0x5))}};function mxUndoableEdit(_0x43b0x2,_0x43b0x3){this[_0x5b48[1097]]= _0x43b0x2;this[_0x5b48[1065]]= [];this[_0x5b48[1105]]= null!= _0x43b0x3?_0x43b0x3:!0}mxUndoableEdit[_0x5b48[202]][_0x5b48[1097]]= null;mxUndoableEdit[_0x5b48[202]][_0x5b48[1065]]= null;mxUndoableEdit[_0x5b48[202]][_0x5b48[1105]]= null;mxUndoableEdit[_0x5b48[202]][_0x5b48[1066]]= !1;mxUndoableEdit[_0x5b48[202]][_0x5b48[1106]]= !1;mxUndoableEdit[_0x5b48[202]][_0x5b48[1107]]= function(){return 0== this[_0x5b48[1065]][_0x5b48[67]]};mxUndoableEdit[_0x5b48[202]][_0x5b48[1108]]= function(){return this[_0x5b48[1105]]};mxUndoableEdit[_0x5b48[202]][_0x5b48[99]]= function(_0x43b0x2){this[_0x5b48[1065]][_0x5b48[207]](_0x43b0x2)};mxUndoableEdit[_0x5b48[202]][_0x5b48[827]]= function(){};mxUndoableEdit[_0x5b48[202]][_0x5b48[1109]]= function(){};mxUndoableEdit[_0x5b48[202]][_0x5b48[824]]= function(){if(!this[_0x5b48[1066]]){this[_0x5b48[1097]][_0x5b48[746]]( new mxEventObject(mxEvent.START_EDIT));for(var _0x43b0x2=this[_0x5b48[1065]][_0x5b48[67]]- 1;0<= _0x43b0x2;_0x43b0x2--){var _0x43b0x3=this[_0x5b48[1065]][_0x43b0x2];null!= _0x43b0x3[_0x5b48[350]]?_0x43b0x3[_0x5b48[350]]():null!= _0x43b0x3[_0x5b48[824]]&& _0x43b0x3[_0x5b48[824]]();this[_0x5b48[1097]][_0x5b48[746]]( new mxEventObject(mxEvent.EXECUTED,_0x5b48[826],_0x43b0x3))};this[_0x5b48[1066]]= !0;this[_0x5b48[1106]]= !1;this[_0x5b48[1097]][_0x5b48[746]]( new mxEventObject(mxEvent.END_EDIT))};this[_0x5b48[827]]()};mxUndoableEdit[_0x5b48[202]][_0x5b48[825]]= function(){if(!this[_0x5b48[1106]]){this[_0x5b48[1097]][_0x5b48[746]]( new mxEventObject(mxEvent.START_EDIT));for(var _0x43b0x2=this[_0x5b48[1065]][_0x5b48[67]],_0x43b0x3=0;_0x43b0x3< _0x43b0x2;_0x43b0x3++){var _0x43b0x4=this[_0x5b48[1065]][_0x43b0x3];null!= _0x43b0x4[_0x5b48[350]]?_0x43b0x4[_0x5b48[350]]():null!= _0x43b0x4[_0x5b48[825]]&& _0x43b0x4[_0x5b48[825]]();this[_0x5b48[1097]][_0x5b48[746]]( new mxEventObject(mxEvent.EXECUTED,_0x5b48[826],_0x43b0x4))};this[_0x5b48[1066]]= !1;this[_0x5b48[1106]]= !0;this[_0x5b48[1097]][_0x5b48[746]]( new mxEventObject(mxEvent.END_EDIT))};this[_0x5b48[827]]()};function mxUndoManager(_0x43b0x2){this[_0x5b48[803]]= null!= _0x43b0x2?_0x43b0x2:100;this[_0x5b48[200]]()}mxUndoManager[_0x5b48[202]]= new mxEventSource;mxUndoManager[_0x5b48[202]][_0x5b48[196]]= mxUndoManager;mxUndoManager[_0x5b48[202]][_0x5b48[803]]= null;mxUndoManager[_0x5b48[202]][_0x5b48[1110]]= null;mxUndoManager[_0x5b48[202]][_0x5b48[1111]]= 0;mxUndoManager[_0x5b48[202]][_0x5b48[1107]]= function(){return 0== this[_0x5b48[1110]][_0x5b48[67]]};mxUndoManager[_0x5b48[202]][_0x5b48[200]]= function(){this[_0x5b48[1110]]= [];this[_0x5b48[1111]]= 0;this[_0x5b48[746]]( new mxEventObject(mxEvent.CLEAR))};mxUndoManager[_0x5b48[202]][_0x5b48[1112]]= function(){return 0< this[_0x5b48[1111]]};mxUndoManager[_0x5b48[202]][_0x5b48[824]]= function(){for(;0< this[_0x5b48[1111]];){var _0x43b0x2=this[_0x5b48[1110]][--this[_0x5b48[1111]]];_0x43b0x2[_0x5b48[824]]();if(_0x43b0x2[_0x5b48[1108]]()){this[_0x5b48[746]]( new mxEventObject(mxEvent.UNDO,_0x5b48[1061],_0x43b0x2));break}}};mxUndoManager[_0x5b48[202]][_0x5b48[1113]]= function(){return this[_0x5b48[1111]]< this[_0x5b48[1110]][_0x5b48[67]]};mxUndoManager[_0x5b48[202]][_0x5b48[825]]= function(){for(var _0x43b0x2=this[_0x5b48[1110]][_0x5b48[67]];this[_0x5b48[1111]]< _0x43b0x2;){var _0x43b0x3=this[_0x5b48[1110]][this[_0x5b48[1111]]++];_0x43b0x3[_0x5b48[825]]();if(_0x43b0x3[_0x5b48[1108]]()){this[_0x5b48[746]]( new mxEventObject(mxEvent.REDO,_0x5b48[1061],_0x43b0x3));break}}};mxUndoManager[_0x5b48[202]][_0x5b48[1114]]= function(_0x43b0x2){this[_0x5b48[330]]();0< this[_0x5b48[803]]&& this[_0x5b48[803]]== this[_0x5b48[1110]][_0x5b48[67]]&& this[_0x5b48[1110]][_0x5b48[1115]]();this[_0x5b48[1110]][_0x5b48[207]](_0x43b0x2);this[_0x5b48[1111]]= this[_0x5b48[1110]][_0x5b48[67]];this[_0x5b48[746]]( new mxEventObject(mxEvent.ADD,_0x5b48[1061],_0x43b0x2))};mxUndoManager[_0x5b48[202]][_0x5b48[330]]= function(){if(this[_0x5b48[1110]][_0x5b48[67]]> this[_0x5b48[1111]]){for(var _0x43b0x2=this[_0x5b48[1110]][_0x5b48[300]](this[_0x5b48[1111]],this[_0x5b48[1110]][_0x5b48[67]]- this[_0x5b48[1111]]),_0x43b0x3=0;_0x43b0x3< _0x43b0x2[_0x5b48[67]];_0x43b0x3++){_0x43b0x2[_0x43b0x3][_0x5b48[1109]]()}}};var mxUrlConverter=function(_0x43b0x2){var _0x43b0x3=!0,_0x43b0x4=null,_0x43b0x5=null;return {isEnabled:function(){return _0x43b0x3},setEnabled:function(_0x43b0x2){_0x43b0x3= _0x43b0x2},getBaseUrl:function(){return _0x43b0x4},setBaseUrl:function(_0x43b0x2){_0x43b0x4= _0x43b0x2},getBaseDomain:function(){return _0x43b0x4},setBaseDomain:function(_0x43b0x2){_0x43b0x4= _0x43b0x2},isRelativeUrl:function(_0x43b0x2){return _0x5b48[43]!= _0x43b0x2[_0x5b48[85]](0,7)&& _0x5b48[46]!= _0x43b0x2[_0x5b48[85]](0,8)&& _0x5b48[1116]!= _0x43b0x2[_0x5b48[85]](0,10)},convert:function(_0x43b0x2){if(_0x43b0x3&& this[_0x5b48[1117]](_0x43b0x2)){if(null== _0x43b0x4){_0x43b0x5= location[_0x5b48[1118]]+ _0x5b48[1119]+ location[_0x5b48[1120]];_0x43b0x4= _0x43b0x5+ location[_0x5b48[1121]];var _0x43b0xa=_0x43b0x4[_0x5b48[1122]](_0x5b48[84]);0< _0x43b0xa&& (_0x43b0x4= _0x43b0x4[_0x5b48[85]](0,_0x43b0xa+ 1))};_0x43b0x2= _0x5b48[84]== _0x43b0x2[_0x5b48[225]](0)?_0x43b0x5+ _0x43b0x2:_0x43b0x4+ _0x43b0x2};return _0x43b0x2}}};function mxPanningManager(_0x43b0x2){this[_0x5b48[1123]]= null;this[_0x5b48[1124]]= !1;this[_0x5b48[1125]]= this[_0x5b48[1126]]= this[_0x5b48[1127]]= this[_0x5b48[1128]]= this[_0x5b48[1129]]= this[_0x5b48[1130]]= 0;this[_0x5b48[1131]]= !1;this[_0x5b48[190]]= this[_0x5b48[360]]= 0;this[_0x5b48[1132]]= {mouseDown:function(_0x43b0x2,_0x43b0x3){},mouseMove:function(_0x43b0x2,_0x43b0x3){},mouseUp:mxUtils[_0x5b48[885]](this,function(_0x43b0x2,_0x43b0x3){this[_0x5b48[1124]]&& this[_0x5b48[1076]]()})};_0x43b0x2[_0x5b48[1133]](this[_0x5b48[1132]]);mxEvent[_0x5b48[169]](document,_0x5b48[753],mxUtils[_0x5b48[885]](this,function(){this[_0x5b48[1124]]&& this[_0x5b48[1076]]()}));var _0x43b0x3=mxUtils[_0x5b48[885]](this,function(){this[_0x5b48[1131]]= mxUtils[_0x5b48[1134]](_0x43b0x2[_0x5b48[526]]);this[_0x5b48[360]]= _0x43b0x2[_0x5b48[526]][_0x5b48[360]];this[_0x5b48[190]]= _0x43b0x2[_0x5b48[526]][_0x5b48[190]];return window[_0x5b48[1141]](mxUtils[_0x5b48[885]](this,function(){this[_0x5b48[1130]]-= this[_0x5b48[1126]];this[_0x5b48[1129]]-= this[_0x5b48[1125]];if(this[_0x5b48[1131]]){var _0x43b0x3=-_0x43b0x2[_0x5b48[526]][_0x5b48[360]]- Math[_0x5b48[430]](this[_0x5b48[1126]]),_0x43b0x5=-_0x43b0x2[_0x5b48[526]][_0x5b48[190]]- Math[_0x5b48[430]](this[_0x5b48[1125]]);_0x43b0x2[_0x5b48[1135]](_0x43b0x3,_0x43b0x5);_0x43b0x2[_0x5b48[1136]]= this[_0x5b48[360]]- _0x43b0x2[_0x5b48[526]][_0x5b48[360]];_0x43b0x2[_0x5b48[1137]]= this[_0x5b48[190]]- _0x43b0x2[_0x5b48[526]][_0x5b48[190]];_0x43b0x2[_0x5b48[746]]( new mxEventObject(mxEvent.PAN))}else {_0x43b0x2[_0x5b48[1135]](this[_0x5b48[1138]](),this[_0x5b48[1139]]())}}),this[_0x5b48[1140]])});this[_0x5b48[1142]]= function(){return active};this[_0x5b48[1138]]= function(){return Math[_0x5b48[488]](this[_0x5b48[1130]])};this[_0x5b48[1139]]= function(){return Math[_0x5b48[488]](this[_0x5b48[1129]])};this[_0x5b48[861]]= function(){this[_0x5b48[1128]]= _0x43b0x2[_0x5b48[441]][_0x5b48[513]][_0x5b48[235]];this[_0x5b48[1127]]= _0x43b0x2[_0x5b48[441]][_0x5b48[513]][_0x5b48[236]];this[_0x5b48[1124]]= !0};this[_0x5b48[1143]]= function(_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa){this[_0x5b48[1124]]|| this[_0x5b48[861]]();this[_0x5b48[360]]= _0x43b0x2[_0x5b48[526]][_0x5b48[360]];this[_0x5b48[190]]= _0x43b0x2[_0x5b48[526]][_0x5b48[190]];_0x43b0xa= null!= _0x43b0xa?_0x43b0xa:0;var _0x43b0x12=_0x43b0x2[_0x5b48[526]];this[_0x5b48[1126]]= _0x43b0x4+ (null!= _0x43b0x9?_0x43b0x9:0)- _0x43b0x12[_0x5b48[360]]- _0x43b0x12[_0x5b48[159]];0> this[_0x5b48[1126]]&& Math[_0x5b48[425]](this[_0x5b48[1126]])< this[_0x5b48[467]]?this[_0x5b48[1126]]= this[_0x5b48[467]]+ this[_0x5b48[1126]]:this[_0x5b48[1126]]= this[_0x5b48[1144]]?Math[_0x5b48[160]](this[_0x5b48[1126]],0):0;0== this[_0x5b48[1126]]&& (this[_0x5b48[1126]]= _0x43b0x4- _0x43b0x12[_0x5b48[360]],this[_0x5b48[1126]]= 0< this[_0x5b48[1126]]&& this[_0x5b48[1126]]< this[_0x5b48[467]]?this[_0x5b48[1126]]- this[_0x5b48[467]]:this[_0x5b48[1144]]?Math[_0x5b48[243]](0,this[_0x5b48[1126]]):0);this[_0x5b48[1125]]= _0x43b0x5+ _0x43b0xa- _0x43b0x12[_0x5b48[190]]- _0x43b0x12[_0x5b48[157]];0> this[_0x5b48[1125]]&& Math[_0x5b48[425]](this[_0x5b48[1125]])< this[_0x5b48[467]]?this[_0x5b48[1125]]= this[_0x5b48[467]]+ this[_0x5b48[1125]]:this[_0x5b48[1125]]= this[_0x5b48[1144]]?Math[_0x5b48[160]](this[_0x5b48[1125]],0):0;0== this[_0x5b48[1125]]&& (this[_0x5b48[1125]]= _0x43b0x5- _0x43b0x12[_0x5b48[190]],this[_0x5b48[1125]]= 0< this[_0x5b48[1125]]&& this[_0x5b48[1125]]< this[_0x5b48[467]]?this[_0x5b48[1125]]- this[_0x5b48[467]]:this[_0x5b48[1144]]?Math[_0x5b48[243]](0,this[_0x5b48[1125]]):0);0!= this[_0x5b48[1126]]|| 0!= this[_0x5b48[1125]]?(this[_0x5b48[1126]]*= this[_0x5b48[1145]],this[_0x5b48[1125]]*= this[_0x5b48[1145]],null== this[_0x5b48[1123]]&& (this[_0x5b48[1123]]= _0x43b0x3())):null!= this[_0x5b48[1123]]&& (window[_0x5b48[1146]](this[_0x5b48[1123]]),this[_0x5b48[1123]]= null)};this[_0x5b48[1076]]= function(){if(this[_0x5b48[1124]]){if(this[_0x5b48[1124]]= !1,null!= this[_0x5b48[1123]]&& (window[_0x5b48[1146]](this[_0x5b48[1123]]),this[_0x5b48[1123]]= null),this[_0x5b48[1129]]= this[_0x5b48[1130]]= 0,this[_0x5b48[1131]]){_0x43b0x2[_0x5b48[1136]]= 0,_0x43b0x2[_0x5b48[1137]]= 0,_0x43b0x2[_0x5b48[746]]( new mxEventObject(mxEvent.PAN))}else {var _0x43b0x3=_0x43b0x2[_0x5b48[1136]],_0x43b0x5=_0x43b0x2[_0x5b48[1137]];if(0!= _0x43b0x3|| 0!= _0x43b0x5){_0x43b0x2[_0x5b48[1135]](0,0),_0x43b0x2[_0x5b48[441]][_0x5b48[1147]](this[_0x5b48[1128]]+ _0x43b0x3/ _0x43b0x2[_0x5b48[441]][_0x5b48[255]],this[_0x5b48[1127]]+ _0x43b0x5/ _0x43b0x2[_0x5b48[441]][_0x5b48[255]])}}}};this[_0x5b48[515]]= function(){_0x43b0x2[_0x5b48[1148]](this[_0x5b48[1132]])}}mxPanningManager[_0x5b48[202]][_0x5b48[1145]]= 1/ 6;mxPanningManager[_0x5b48[202]][_0x5b48[1140]]= 10;mxPanningManager[_0x5b48[202]][_0x5b48[1144]]= !0;mxPanningManager[_0x5b48[202]][_0x5b48[467]]= 0;function mxPopupMenu(_0x43b0x2){this[_0x5b48[1033]]= _0x43b0x2;null!= _0x43b0x2&& this[_0x5b48[176]]()}mxPopupMenu[_0x5b48[202]]= new mxEventSource;mxPopupMenu[_0x5b48[202]][_0x5b48[196]]= mxPopupMenu;mxPopupMenu[_0x5b48[202]][_0x5b48[1149]]= mxClient[_0x5b48[88]]+ _0x5b48[1150];mxPopupMenu[_0x5b48[202]][_0x5b48[931]]= 10006;mxPopupMenu[_0x5b48[202]][_0x5b48[1033]]= null;mxPopupMenu[_0x5b48[202]][_0x5b48[1151]]= !1;mxPopupMenu[_0x5b48[202]][_0x5b48[984]]= !0;mxPopupMenu[_0x5b48[202]][_0x5b48[1152]]= 0;mxPopupMenu[_0x5b48[202]][_0x5b48[1153]]= !1;mxPopupMenu[_0x5b48[202]][_0x5b48[1154]]= !1;mxPopupMenu[_0x5b48[202]][_0x5b48[1155]]= !0;mxPopupMenu[_0x5b48[202]][_0x5b48[176]]= function(){this[_0x5b48[116]]= document[_0x5b48[55]](_0x5b48[116]);this[_0x5b48[116]][_0x5b48[926]]= _0x5b48[1156];this[_0x5b48[120]]= document[_0x5b48[55]](_0x5b48[120]);this[_0x5b48[116]][_0x5b48[62]](this[_0x5b48[120]]);this[_0x5b48[485]]= document[_0x5b48[55]](_0x5b48[485]);this[_0x5b48[485]][_0x5b48[926]]= _0x5b48[1156];this[_0x5b48[485]][_0x5b48[124]][_0x5b48[495]]= _0x5b48[497];this[_0x5b48[485]][_0x5b48[124]][_0x5b48[931]]= this[_0x5b48[931]];this[_0x5b48[485]][_0x5b48[62]](this[_0x5b48[116]]);mxEvent[_0x5b48[1157]](this[_0x5b48[485]])};mxPopupMenu[_0x5b48[202]][_0x5b48[994]]= function(){return this[_0x5b48[984]]};mxPopupMenu[_0x5b48[202]][_0x5b48[995]]= function(_0x43b0x2){this[_0x5b48[984]]= _0x43b0x2};mxPopupMenu[_0x5b48[202]][_0x5b48[737]]= function(_0x43b0x2){return _0x43b0x2[_0x5b48[737]]()|| this[_0x5b48[1151]]&& mxEvent[_0x5b48[1158]](_0x43b0x2[_0x5b48[727]]())};mxPopupMenu[_0x5b48[202]][_0x5b48[1025]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa){_0x43b0x5= _0x43b0x5|| this;this[_0x5b48[1152]]++;_0x43b0x5[_0x5b48[1159]]&& (_0x43b0x5[_0x5b48[1160]]&& this[_0x5b48[1051]](_0x43b0x5,!0),_0x43b0x5[_0x5b48[1159]]= !1);_0x43b0x5[_0x5b48[1160]]= !0;var _0x43b0x12=document[_0x5b48[55]](_0x5b48[121]);_0x43b0x12[_0x5b48[926]]= _0x5b48[1161];var _0x43b0x13=document[_0x5b48[55]](_0x5b48[122]);_0x43b0x13[_0x5b48[926]]= _0x5b48[1162];null!= _0x43b0x3?(_0x43b0x9= document[_0x5b48[55]](_0x5b48[466]),_0x43b0x9[_0x5b48[390]]= _0x43b0x3,_0x43b0x13[_0x5b48[62]](_0x43b0x9)):null!= _0x43b0x9&& (_0x43b0x3= document[_0x5b48[55]](_0x5b48[485]),_0x43b0x3[_0x5b48[926]]= _0x43b0x9,_0x43b0x13[_0x5b48[62]](_0x43b0x3));_0x43b0x12[_0x5b48[62]](_0x43b0x13);this[_0x5b48[1155]]&& (_0x43b0x13= document[_0x5b48[55]](_0x5b48[122]),_0x43b0x13[_0x5b48[926]]= _0x5b48[1161]+ (null!= _0x43b0xa&& !_0x43b0xa?_0x5b48[1163]:_0x5b48[110]),mxUtils[_0x5b48[53]](_0x43b0x13,_0x43b0x2),_0x43b0x13[_0x5b48[611]]= _0x5b48[361],_0x43b0x12[_0x5b48[62]](_0x43b0x13),_0x43b0x2= document[_0x5b48[55]](_0x5b48[122]),_0x43b0x2[_0x5b48[926]]= _0x5b48[1161]+ (null!= _0x43b0xa&& !_0x43b0xa?_0x5b48[1163]:_0x5b48[110]),_0x43b0x2[_0x5b48[124]][_0x5b48[1164]]= _0x5b48[1055],_0x43b0x2[_0x5b48[124]][_0x5b48[1165]]= _0x5b48[699],_0x43b0x12[_0x5b48[62]](_0x43b0x2),null== _0x43b0x5[_0x5b48[485]]&& this[_0x5b48[1166]](_0x43b0x5));_0x43b0x5[_0x5b48[120]][_0x5b48[62]](_0x43b0x12);if(null== _0x43b0xa|| _0x43b0xa){mxEvent[_0x5b48[759]](_0x43b0x12,mxUtils[_0x5b48[885]](this,function(_0x43b0x2){this[_0x5b48[1167]]= _0x43b0x12;_0x43b0x5[_0x5b48[1168]]!= _0x43b0x12&& _0x43b0x5[_0x5b48[1168]]!= _0x43b0x5&& (null!= _0x43b0x5[_0x5b48[1168]]&& null!= _0x43b0x5[_0x5b48[1168]][_0x5b48[485]][_0x5b48[265]]&& this[_0x5b48[1169]](_0x43b0x5),null!= _0x43b0x12[_0x5b48[485]]&& (this[_0x5b48[1170]](_0x43b0x5,_0x43b0x12),_0x43b0x5[_0x5b48[1168]]= _0x43b0x12));mxEvent[_0x5b48[722]](_0x43b0x2)}),mxUtils[_0x5b48[885]](this,function(_0x43b0x2){_0x43b0x5[_0x5b48[1168]]!= _0x43b0x12&& _0x43b0x5[_0x5b48[1168]]!= _0x43b0x5&& (null!= _0x43b0x5[_0x5b48[1168]]&& null!= _0x43b0x5[_0x5b48[1168]][_0x5b48[485]][_0x5b48[265]]&& this[_0x5b48[1169]](_0x43b0x5),this[_0x5b48[1153]]&& null!= _0x43b0x12[_0x5b48[485]]&& (this[_0x5b48[1170]](_0x43b0x5,_0x43b0x12),_0x43b0x5[_0x5b48[1168]]= _0x43b0x12));_0x43b0x12[_0x5b48[926]]= _0x5b48[1171]}),mxUtils[_0x5b48[885]](this,function(_0x43b0x2){this[_0x5b48[1167]]== _0x43b0x12&& (_0x43b0x5[_0x5b48[1168]]!= _0x43b0x12&& this[_0x5b48[1032]](),null!= _0x43b0x4&& _0x43b0x4(_0x43b0x2));this[_0x5b48[1167]]= null;mxEvent[_0x5b48[722]](_0x43b0x2)})),mxEvent[_0x5b48[169]](_0x43b0x12,_0x5b48[1035],mxUtils[_0x5b48[885]](this,function(_0x43b0x2){_0x43b0x12[_0x5b48[926]]= _0x5b48[1161]}))};return _0x43b0x12};mxPopupMenu[_0x5b48[202]][_0x5b48[1166]]= function(_0x43b0x2){_0x43b0x2[_0x5b48[116]]= document[_0x5b48[55]](_0x5b48[116]);_0x43b0x2[_0x5b48[116]][_0x5b48[926]]= _0x5b48[1156];_0x43b0x2[_0x5b48[120]]= document[_0x5b48[55]](_0x5b48[120]);_0x43b0x2[_0x5b48[116]][_0x5b48[62]](_0x43b0x2[_0x5b48[120]]);_0x43b0x2[_0x5b48[485]]= document[_0x5b48[55]](_0x5b48[485]);_0x43b0x2[_0x5b48[485]][_0x5b48[926]]= _0x5b48[1156];_0x43b0x2[_0x5b48[485]][_0x5b48[124]][_0x5b48[491]]= _0x5b48[492];_0x43b0x2[_0x5b48[485]][_0x5b48[124]][_0x5b48[495]]= _0x5b48[497];_0x43b0x2[_0x5b48[485]][_0x5b48[124]][_0x5b48[931]]= this[_0x5b48[931]];_0x43b0x2[_0x5b48[485]][_0x5b48[62]](_0x43b0x2[_0x5b48[116]]);var _0x43b0x3=document[_0x5b48[55]](_0x5b48[466]);_0x43b0x3[_0x5b48[57]](_0x5b48[390],this[_0x5b48[1149]]);td= _0x43b0x2[_0x5b48[285]][_0x5b48[287]][_0x5b48[287]];td[_0x5b48[62]](_0x43b0x3)};mxPopupMenu[_0x5b48[202]][_0x5b48[1170]]= function(_0x43b0x2,_0x43b0x3){if(null!= _0x43b0x3[_0x5b48[485]]){_0x43b0x3[_0x5b48[485]][_0x5b48[124]][_0x5b48[361]]= _0x43b0x2[_0x5b48[485]][_0x5b48[358]]+ _0x43b0x3[_0x5b48[358]]+ _0x43b0x3[_0x5b48[359]]- 1+ _0x5b48[168];_0x43b0x3[_0x5b48[485]][_0x5b48[124]][_0x5b48[125]]= _0x43b0x2[_0x5b48[485]][_0x5b48[362]]+ _0x43b0x3[_0x5b48[362]]+ _0x5b48[168];document[_0x5b48[112]][_0x5b48[62]](_0x43b0x3[_0x5b48[485]]);var _0x43b0x4=parseInt(_0x43b0x3[_0x5b48[485]][_0x5b48[358]]),_0x43b0x5=parseInt(_0x43b0x3[_0x5b48[485]][_0x5b48[359]]),_0x43b0x9=document[_0x5b48[112]],_0x43b0xa=document[_0x5b48[158]];if(_0x43b0x4+ _0x43b0x5> (_0x43b0x9[_0x5b48[360]]|| _0x43b0xa[_0x5b48[360]])+ (_0x43b0x9[_0x5b48[159]]|| _0x43b0xa[_0x5b48[159]])){_0x43b0x3[_0x5b48[485]][_0x5b48[124]][_0x5b48[361]]= _0x43b0x2[_0x5b48[485]][_0x5b48[358]]- _0x43b0x5+ (mxClient[_0x5b48[80]]?6:-6)+ _0x5b48[168]};mxUtils[_0x5b48[933]](_0x43b0x3[_0x5b48[485]])}};mxPopupMenu[_0x5b48[202]][_0x5b48[1051]]= function(_0x43b0x2,_0x43b0x3){_0x43b0x2= _0x43b0x2|| this;if(this[_0x5b48[1154]]&& !_0x43b0x3){_0x43b0x2[_0x5b48[1159]]= !0}else {if(null!= _0x43b0x2[_0x5b48[120]]){_0x43b0x2[_0x5b48[1159]]= !1;var _0x43b0x4=document[_0x5b48[55]](_0x5b48[121]),_0x43b0x5=document[_0x5b48[55]](_0x5b48[122]);_0x43b0x5[_0x5b48[926]]= _0x5b48[1162];_0x43b0x5[_0x5b48[124]][_0x5b48[549]]= _0x5b48[1172];_0x43b0x4[_0x5b48[62]](_0x43b0x5);_0x43b0x5= document[_0x5b48[55]](_0x5b48[122]);_0x43b0x5[_0x5b48[124]][_0x5b48[549]]= _0x5b48[1172];_0x43b0x5[_0x5b48[57]](_0x5b48[1173],_0x5b48[1174]);var _0x43b0x9=document[_0x5b48[55]](_0x5b48[1054]);_0x43b0x9[_0x5b48[57]](_0x5b48[803],_0x5b48[500]);_0x43b0x5[_0x5b48[62]](_0x43b0x9);_0x43b0x4[_0x5b48[62]](_0x43b0x5);_0x43b0x2[_0x5b48[120]][_0x5b48[62]](_0x43b0x4)}}};mxPopupMenu[_0x5b48[202]][_0x5b48[152]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){if(null!= this[_0x5b48[485]]&& null!= this[_0x5b48[120]]&& null!= this[_0x5b48[1033]]){this[_0x5b48[485]][_0x5b48[124]][_0x5b48[361]]= _0x43b0x2+ _0x5b48[168];for(this[_0x5b48[485]][_0x5b48[124]][_0x5b48[125]]= _0x43b0x3+ _0x5b48[168];null!= this[_0x5b48[120]][_0x5b48[285]];){mxEvent[_0x5b48[762]](this[_0x5b48[120]][_0x5b48[285]]),this[_0x5b48[120]][_0x5b48[266]](this[_0x5b48[120]][_0x5b48[285]])};this[_0x5b48[1152]]= 0;this[_0x5b48[1033]](this,_0x43b0x4,_0x43b0x5);0< this[_0x5b48[1152]]&& (this[_0x5b48[1175]](),this[_0x5b48[746]]( new mxEventObject(mxEvent.SHOW)))}};mxPopupMenu[_0x5b48[202]][_0x5b48[1031]]= function(){return null!= this[_0x5b48[485]]&& this[_0x5b48[485]][_0x5b48[265]]== document[_0x5b48[112]]};mxPopupMenu[_0x5b48[202]][_0x5b48[1175]]= function(){9<= document[_0x5b48[5]]&& (this[_0x5b48[485]][_0x5b48[124]][_0x5b48[347]]= _0x5b48[130]);document[_0x5b48[112]][_0x5b48[62]](this[_0x5b48[485]]);mxUtils[_0x5b48[933]](this[_0x5b48[485]])};mxPopupMenu[_0x5b48[202]][_0x5b48[1032]]= function(){null!= this[_0x5b48[485]]&& (null!= this[_0x5b48[485]][_0x5b48[265]]&& this[_0x5b48[485]][_0x5b48[265]][_0x5b48[266]](this[_0x5b48[485]]),this[_0x5b48[1169]](this),this[_0x5b48[1160]]= !1)};mxPopupMenu[_0x5b48[202]][_0x5b48[1169]]= function(_0x43b0x2){null!= _0x43b0x2[_0x5b48[1168]]&& (this[_0x5b48[1169]](_0x43b0x2[_0x5b48[1168]]),null!= _0x43b0x2[_0x5b48[1168]][_0x5b48[485]][_0x5b48[265]]&& _0x43b0x2[_0x5b48[1168]][_0x5b48[485]][_0x5b48[265]][_0x5b48[266]](_0x43b0x2[_0x5b48[1168]][_0x5b48[485]]),_0x43b0x2[_0x5b48[1168]]= null)};mxPopupMenu[_0x5b48[202]][_0x5b48[515]]= function(){null!= this[_0x5b48[485]]&& (mxEvent[_0x5b48[762]](this[_0x5b48[485]]),null!= this[_0x5b48[485]][_0x5b48[265]]&& this[_0x5b48[485]][_0x5b48[265]][_0x5b48[266]](this[_0x5b48[485]]),this[_0x5b48[485]]= null)};function mxAutoSaveManager(_0x43b0x2){this[_0x5b48[1176]]= mxUtils[_0x5b48[885]](this,function(_0x43b0x2,_0x43b0x4){this[_0x5b48[994]]()&& this[_0x5b48[1177]](_0x43b0x4[_0x5b48[720]](_0x5b48[1061])[_0x5b48[1065]])});this[_0x5b48[1178]](_0x43b0x2)}mxAutoSaveManager[_0x5b48[202]]= new mxEventSource;mxAutoSaveManager[_0x5b48[202]][_0x5b48[196]]= mxAutoSaveManager;mxAutoSaveManager[_0x5b48[202]][_0x5b48[1179]]= null;mxAutoSaveManager[_0x5b48[202]][_0x5b48[1180]]= 10;mxAutoSaveManager[_0x5b48[202]][_0x5b48[1181]]= 2;mxAutoSaveManager[_0x5b48[202]][_0x5b48[1182]]= 5;mxAutoSaveManager[_0x5b48[202]][_0x5b48[1183]]= 0;mxAutoSaveManager[_0x5b48[202]][_0x5b48[1184]]= 0;mxAutoSaveManager[_0x5b48[202]][_0x5b48[984]]= !0;mxAutoSaveManager[_0x5b48[202]][_0x5b48[1176]]= null;mxAutoSaveManager[_0x5b48[202]][_0x5b48[994]]= function(){return this[_0x5b48[984]]};mxAutoSaveManager[_0x5b48[202]][_0x5b48[995]]= function(_0x43b0x2){this[_0x5b48[984]]= _0x43b0x2};mxAutoSaveManager[_0x5b48[202]][_0x5b48[1178]]= function(_0x43b0x2){null!= this[_0x5b48[1179]]&& this[_0x5b48[1179]][_0x5b48[502]]()[_0x5b48[745]](this[_0x5b48[1176]]);this[_0x5b48[1179]]= _0x43b0x2;null!= this[_0x5b48[1179]]&& this[_0x5b48[1179]][_0x5b48[502]]()[_0x5b48[169]](mxEvent.CHANGE,this[_0x5b48[1176]])};mxAutoSaveManager[_0x5b48[202]][_0x5b48[815]]= function(){};mxAutoSaveManager[_0x5b48[202]][_0x5b48[1177]]= function(_0x43b0x2){_0x43b0x2= (( new Date)[_0x5b48[178]]()- this[_0x5b48[1184]])/ 1E3;_0x43b0x2> this[_0x5b48[1180]]|| this[_0x5b48[1183]]>= this[_0x5b48[1182]]&& _0x43b0x2> this[_0x5b48[1181]]?(this[_0x5b48[815]](),this[_0x5b48[862]]()):this[_0x5b48[1183]]++};mxAutoSaveManager[_0x5b48[202]][_0x5b48[862]]= function(){this[_0x5b48[1184]]= ( new Date)[_0x5b48[178]]();this[_0x5b48[1183]]= 0};mxAutoSaveManager[_0x5b48[202]][_0x5b48[515]]= function(){this[_0x5b48[1178]](null)};function mxAnimation(_0x43b0x2){this[_0x5b48[1140]]= null!= _0x43b0x2?_0x43b0x2:20}mxAnimation[_0x5b48[202]]= new mxEventSource;mxAnimation[_0x5b48[202]][_0x5b48[196]]= mxAnimation;mxAnimation[_0x5b48[202]][_0x5b48[1140]]= null;mxAnimation[_0x5b48[202]][_0x5b48[1123]]= null;mxAnimation[_0x5b48[202]][_0x5b48[1185]]= function(){null== this[_0x5b48[1123]]&& (this[_0x5b48[1123]]= window[_0x5b48[1141]](mxUtils[_0x5b48[885]](this,this[_0x5b48[1186]]),this[_0x5b48[1140]]))};mxAnimation[_0x5b48[202]][_0x5b48[1186]]= function(){this[_0x5b48[746]]( new mxEventObject(mxEvent.EXECUTE))};mxAnimation[_0x5b48[202]][_0x5b48[1187]]= function(){null!= this[_0x5b48[1123]]&& (window[_0x5b48[1146]](this[_0x5b48[1123]]),this[_0x5b48[1123]]= null,this[_0x5b48[746]]( new mxEventObject(mxEvent.DONE)))};function mxMorphing(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){mxAnimation[_0x5b48[239]](this,_0x43b0x5);this[_0x5b48[1179]]= _0x43b0x2;this[_0x5b48[1188]]= null!= _0x43b0x3?_0x43b0x3:6;this[_0x5b48[1189]]= null!= _0x43b0x4?_0x43b0x4:1.5}mxMorphing[_0x5b48[202]]= new mxAnimation;mxMorphing[_0x5b48[202]][_0x5b48[196]]= mxMorphing;mxMorphing[_0x5b48[202]][_0x5b48[1179]]= null;mxMorphing[_0x5b48[202]][_0x5b48[1188]]= null;mxMorphing[_0x5b48[202]][_0x5b48[1190]]= 0;mxMorphing[_0x5b48[202]][_0x5b48[1189]]= null;mxMorphing[_0x5b48[202]][_0x5b48[895]]= null;mxMorphing[_0x5b48[202]][_0x5b48[1186]]= function(){var _0x43b0x2= new mxCellStatePreview(this[_0x5b48[1179]]);if(null!= this[_0x5b48[895]]){for(var _0x43b0x3=0;_0x43b0x3< this[_0x5b48[895]][_0x5b48[67]];_0x43b0x3++){this[_0x5b48[1191]](cells[_0x43b0x3],_0x43b0x2,!1)}}else {this[_0x5b48[1191]](this[_0x5b48[1179]][_0x5b48[502]]()[_0x5b48[501]](),_0x43b0x2,!0)};this[_0x5b48[539]](_0x43b0x2);(_0x43b0x2[_0x5b48[1107]]()|| this[_0x5b48[1190]]++ >= this[_0x5b48[1188]])&& this[_0x5b48[1187]]()};mxMorphing[_0x5b48[202]][_0x5b48[539]]= function(_0x43b0x2){_0x43b0x2[_0x5b48[539]]()};mxMorphing[_0x5b48[202]][_0x5b48[1191]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){var _0x43b0x5=this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[248]](_0x43b0x2),_0x43b0x9=null;if(null!= _0x43b0x5&& (_0x43b0x9= this[_0x5b48[1192]](_0x43b0x5),this[_0x5b48[1179]][_0x5b48[502]]()[_0x5b48[1193]](_0x43b0x2)&& (0!= _0x43b0x9[_0x5b48[235]]|| 0!= _0x43b0x9[_0x5b48[236]]))){var _0x43b0xa=this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[512]](),_0x43b0x12=this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[518]]();_0x43b0x9[_0x5b48[235]]+= _0x43b0xa[_0x5b48[235]]* _0x43b0x12;_0x43b0x9[_0x5b48[236]]+= _0x43b0xa[_0x5b48[236]]* _0x43b0x12;_0x43b0x3[_0x5b48[1194]](_0x43b0x5,-_0x43b0x9[_0x5b48[235]]/ this[_0x5b48[1189]],-_0x43b0x9[_0x5b48[236]]/ this[_0x5b48[1189]])};if(_0x43b0x4&& !this[_0x5b48[1195]](_0x43b0x5,_0x43b0x9)){_0x43b0x5= this[_0x5b48[1179]][_0x5b48[502]]()[_0x5b48[262]](_0x43b0x2);for(_0x43b0x9= 0;_0x43b0x9< _0x43b0x5;_0x43b0x9++){this[_0x5b48[1191]](this[_0x5b48[1179]][_0x5b48[502]]()[_0x5b48[263]](_0x43b0x2,_0x43b0x9),_0x43b0x3,_0x43b0x4)}}};mxMorphing[_0x5b48[202]][_0x5b48[1195]]= function(_0x43b0x2,_0x43b0x3){return null!= _0x43b0x3&& (0!= _0x43b0x3[_0x5b48[235]]|| 0!= _0x43b0x3[_0x5b48[236]])};mxMorphing[_0x5b48[202]][_0x5b48[1192]]= function(_0x43b0x2){var _0x43b0x3=this[_0x5b48[1196]](_0x43b0x2[_0x5b48[246]]),_0x43b0x4=this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[512]](),_0x43b0x5=this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[518]]();_0x43b0x2= new mxPoint(_0x43b0x2[_0x5b48[235]]/ _0x43b0x5- _0x43b0x4[_0x5b48[235]],_0x43b0x2[_0x5b48[236]]/ _0x43b0x5- _0x43b0x4[_0x5b48[236]]);return new mxPoint((_0x43b0x3[_0x5b48[235]]- _0x43b0x2[_0x5b48[235]])* _0x43b0x5,(_0x43b0x3[_0x5b48[236]]- _0x43b0x2[_0x5b48[236]])* _0x43b0x5)};mxMorphing[_0x5b48[202]][_0x5b48[1196]]= function(_0x43b0x2){var _0x43b0x3=null;null!= _0x43b0x2&& (_0x43b0x3= this[_0x5b48[1196]](this[_0x5b48[1179]][_0x5b48[502]]()[_0x5b48[1197]](_0x43b0x2)),_0x43b0x2= this[_0x5b48[1179]][_0x5b48[1198]](_0x43b0x2),null!= _0x43b0x2&& (_0x43b0x3[_0x5b48[235]]+= _0x43b0x2[_0x5b48[235]],_0x43b0x3[_0x5b48[236]]+= _0x43b0x2[_0x5b48[236]]));null== _0x43b0x3&& (_0x43b0x3= this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[512]](),_0x43b0x3= new mxPoint(-_0x43b0x3[_0x5b48[235]],-_0x43b0x3[_0x5b48[236]]));return _0x43b0x3};function mxImageBundle(_0x43b0x2){this[_0x5b48[1199]]= [];this[_0x5b48[1200]]= null!= _0x43b0x2?_0x43b0x2:!1}mxImageBundle[_0x5b48[202]][_0x5b48[1199]]= null;mxImageBundle[_0x5b48[202]][_0x5b48[1199]]= null;mxImageBundle[_0x5b48[202]][_0x5b48[1201]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){this[_0x5b48[1199]][_0x43b0x2]= {value:_0x43b0x3,fallback:_0x43b0x4}};mxImageBundle[_0x5b48[202]][_0x5b48[1202]]= function(_0x43b0x2){var _0x43b0x3=null;null!= _0x43b0x2&& (_0x43b0x2= this[_0x5b48[1199]][_0x43b0x2],null!= _0x43b0x2&& (_0x43b0x3= this[_0x5b48[1200]]?_0x43b0x2[_0x5b48[1203]]:_0x43b0x2[_0x5b48[131]]));return _0x43b0x3};function mxImageExport(){}mxImageExport[_0x5b48[202]][_0x5b48[1204]]= !1;mxImageExport[_0x5b48[202]][_0x5b48[1205]]= function(_0x43b0x2,_0x43b0x3){null!= _0x43b0x2&& (this[_0x5b48[1207]](_0x43b0x2,_0x43b0x3,this[_0x5b48[1206]]),this[_0x5b48[1204]]&& this[_0x5b48[1207]](_0x43b0x2,_0x43b0x3,this[_0x5b48[1208]]))};mxImageExport[_0x5b48[202]][_0x5b48[1207]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){if(null!= _0x43b0x2){_0x43b0x4(_0x43b0x2,_0x43b0x3);for(var _0x43b0x5=_0x43b0x2[_0x5b48[441]][_0x5b48[1179]],_0x43b0x9=_0x43b0x5[_0x5b48[251]][_0x5b48[262]](_0x43b0x2[_0x5b48[246]]),_0x43b0xa=0;_0x43b0xa< _0x43b0x9;_0x43b0xa++){var _0x43b0x12=_0x43b0x5[_0x5b48[441]][_0x5b48[248]](_0x43b0x5[_0x5b48[251]][_0x5b48[263]](_0x43b0x2[_0x5b48[246]],_0x43b0xa));this[_0x5b48[1207]](_0x43b0x12,_0x43b0x3,_0x43b0x4)}}};mxImageExport[_0x5b48[202]][_0x5b48[1206]]= function(_0x43b0x2,_0x43b0x3){_0x43b0x2[_0x5b48[253]] instanceof mxShape&& (_0x43b0x3[_0x5b48[815]](),_0x43b0x2[_0x5b48[253]][_0x5b48[1209]](_0x43b0x3),_0x43b0x3[_0x5b48[1210]]());null!= _0x43b0x2[_0x5b48[963]]&& (_0x43b0x3[_0x5b48[815]](),_0x43b0x2[_0x5b48[963]][_0x5b48[1209]](_0x43b0x3),_0x43b0x3[_0x5b48[1210]]())};mxImageExport[_0x5b48[202]][_0x5b48[1208]]= function(_0x43b0x2,_0x43b0x3){null!= _0x43b0x2[_0x5b48[1211]]&& _0x43b0x2[_0x5b48[1211]][_0x5b48[209]](function(_0x43b0x2,_0x43b0x5){_0x43b0x5 instanceof mxShape&& _0x43b0x5[_0x5b48[1209]](_0x43b0x3)})};function mxAbstractCanvas2D(){this[_0x5b48[1212]]= this[_0x5b48[1213]]();this[_0x5b48[862]]()}mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[724]]= null;mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1214]]= null;mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1215]]= null;mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1216]]= !0;mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1217]]= 0;mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1218]]= 0;mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1219]]= _0x5b48[1220];mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1221]]= _0x5b48[1222];mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1223]]= _0x5b48[1224];mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1225]]= _0x5b48[1226];mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1227]]= _0x5b48[1228];mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1229]]= !1;mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1213]]= function(){return new mxUrlConverter};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[862]]= function(){this[_0x5b48[724]]= this[_0x5b48[1230]]();this[_0x5b48[1214]]= []};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1230]]= function(){return {dx:0,dy:0,scale:1,alpha:1,fillColor:null,fillAlpha:1,gradientColor:null,gradientAlpha:1,gradientDirection:null,strokeColor:null,strokeWidth:1,dashed:!1,dashPattern:_0x5b48[1231],lineCap:_0x5b48[1232],lineJoin:_0x5b48[1233],miterLimit:10,fontColor:_0x5b48[1234],fontBackgroundColor:null,fontBorderColor:null,fontSize:mxConstants[_0x5b48[483]],fontFamily:mxConstants[_0x5b48[484]],fontStyle:0,shadow:!1,shadowColor:mxConstants[_0x5b48[1235]],shadowAlpha:mxConstants[_0x5b48[1236]],shadowDx:mxConstants[_0x5b48[1237]],shadowDy:mxConstants[_0x5b48[1238]],rotation:0,rotationCx:0,rotationCy:0}};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1239]]= function(_0x43b0x2){return Math[_0x5b48[488]](parseFloat(_0x43b0x2))};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1240]]= function(){if(null!= this[_0x5b48[1215]]&& (this[_0x5b48[1215]][_0x5b48[207]](arguments[0]),2< arguments[_0x5b48[67]])){for(var _0x43b0x2=this[_0x5b48[724]],_0x43b0x3=2;_0x43b0x3< arguments[_0x5b48[67]];_0x43b0x3+= 2){this[_0x5b48[1217]]= arguments[_0x43b0x3- 1],this[_0x5b48[1218]]= arguments[_0x43b0x3],this[_0x5b48[1215]][_0x5b48[207]](this[_0x5b48[1239]]((this[_0x5b48[1217]]+ _0x43b0x2[_0x5b48[1126]])* _0x43b0x2[_0x5b48[255]])),this[_0x5b48[1215]][_0x5b48[207]](this[_0x5b48[1239]]((this[_0x5b48[1218]]+ _0x43b0x2[_0x5b48[1125]])* _0x43b0x2[_0x5b48[255]]))}}};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1241]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){_0x43b0x4*= Math[_0x5b48[424]]/ 180;return mxUtils[_0x5b48[432]]( new mxPoint(_0x43b0x2,_0x43b0x3),Math[_0x5b48[426]](_0x43b0x4),Math[_0x5b48[427]](_0x43b0x4), new mxPoint(_0x43b0x5,_0x43b0x9))};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[815]]= function(){this[_0x5b48[1214]][_0x5b48[207]](this[_0x5b48[724]]);this[_0x5b48[724]]= mxUtils[_0x5b48[238]](this[_0x5b48[724]])};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1210]]= function(){this[_0x5b48[724]]= this[_0x5b48[1214]][_0x5b48[1242]]()};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[255]]= function(_0x43b0x2){this[_0x5b48[724]][_0x5b48[255]]*= _0x43b0x2;this[_0x5b48[724]][_0x5b48[610]]*= _0x43b0x2};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[513]]= function(_0x43b0x2,_0x43b0x3){this[_0x5b48[724]][_0x5b48[1126]]+= _0x43b0x2;this[_0x5b48[724]][_0x5b48[1125]]+= _0x43b0x3};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1243]]= function(_0x43b0x2){this[_0x5b48[724]][_0x5b48[1244]]= _0x43b0x2};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1245]]= function(_0x43b0x2){_0x43b0x2== mxConstants[_0x5b48[217]]&& (_0x43b0x2= null);this[_0x5b48[724]][_0x5b48[604]]= _0x43b0x2;this[_0x5b48[724]][_0x5b48[606]]= null};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1246]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa,_0x43b0x12,_0x43b0x13,_0x43b0x14){_0x43b0x4= this[_0x5b48[724]];_0x43b0x4[_0x5b48[604]]= _0x43b0x2;_0x43b0x4[_0x5b48[1247]]= null!= _0x43b0x13?_0x43b0x13:1;_0x43b0x4[_0x5b48[606]]= _0x43b0x3;_0x43b0x4[_0x5b48[1248]]= null!= _0x43b0x14?_0x43b0x14:1;_0x43b0x4[_0x5b48[607]]= _0x43b0x12};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1249]]= function(_0x43b0x2){_0x43b0x2== mxConstants[_0x5b48[217]]&& (_0x43b0x2= null);this[_0x5b48[724]][_0x5b48[608]]= _0x43b0x2};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1250]]= function(_0x43b0x2){this[_0x5b48[724]][_0x5b48[610]]= _0x43b0x2};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1251]]= function(_0x43b0x2){this[_0x5b48[724]][_0x5b48[648]]= _0x43b0x2};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1252]]= function(_0x43b0x2){this[_0x5b48[724]][_0x5b48[649]]= _0x43b0x2};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1253]]= function(_0x43b0x2){this[_0x5b48[724]][_0x5b48[1254]]= _0x43b0x2};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1255]]= function(_0x43b0x2){this[_0x5b48[724]][_0x5b48[1256]]= _0x43b0x2};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1257]]= function(_0x43b0x2){this[_0x5b48[724]][_0x5b48[1258]]= _0x43b0x2};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1259]]= function(_0x43b0x2){_0x43b0x2== mxConstants[_0x5b48[217]]&& (_0x43b0x2= null);this[_0x5b48[724]][_0x5b48[665]]= _0x43b0x2};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1260]]= function(_0x43b0x2){_0x43b0x2== mxConstants[_0x5b48[217]]&& (_0x43b0x2= null);this[_0x5b48[724]][_0x5b48[1261]]= _0x43b0x2};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1262]]= function(_0x43b0x2){_0x43b0x2== mxConstants[_0x5b48[217]]&& (_0x43b0x2= null);this[_0x5b48[724]][_0x5b48[1263]]= _0x43b0x2};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1264]]= function(_0x43b0x2){this[_0x5b48[724]][_0x5b48[487]]= _0x43b0x2};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1265]]= function(_0x43b0x2){this[_0x5b48[724]][_0x5b48[486]]= _0x43b0x2};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1266]]= function(_0x43b0x2){null== _0x43b0x2&& (_0x43b0x2= 0);this[_0x5b48[724]][_0x5b48[666]]= _0x43b0x2};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1267]]= function(_0x43b0x2){this[_0x5b48[724]][_0x5b48[639]]= _0x43b0x2};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1268]]= function(_0x43b0x2){_0x43b0x2== mxConstants[_0x5b48[217]]&& (_0x43b0x2= null);this[_0x5b48[724]][_0x5b48[1269]]= _0x43b0x2};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1270]]= function(_0x43b0x2){this[_0x5b48[724]][_0x5b48[1271]]= _0x43b0x2};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1272]]= function(_0x43b0x2,_0x43b0x3){this[_0x5b48[724]][_0x5b48[1273]]= _0x43b0x2;this[_0x5b48[724]][_0x5b48[1274]]= _0x43b0x3};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1275]]= function(){this[_0x5b48[1218]]= this[_0x5b48[1217]]= 0;this[_0x5b48[1215]]= []};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1276]]= function(_0x43b0x2,_0x43b0x3){this[_0x5b48[1240]](this[_0x5b48[1219]],_0x43b0x2,_0x43b0x3)};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1277]]= function(_0x43b0x2,_0x43b0x3){this[_0x5b48[1240]](this[_0x5b48[1221]],_0x43b0x2,_0x43b0x3)};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1278]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){this[_0x5b48[1240]](this[_0x5b48[1223]],_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5)};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1279]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa){this[_0x5b48[1240]](this[_0x5b48[1225]],_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa)};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1280]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa,_0x43b0x12){_0x43b0x2= mxUtils[_0x5b48[1281]](this[_0x5b48[1217]],this[_0x5b48[1218]],_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa,_0x43b0x12);for(_0x43b0x3= 0;_0x43b0x3< _0x43b0x2[_0x5b48[67]];_0x43b0x3+= 6){this[_0x5b48[1279]](_0x43b0x2[_0x43b0x3],_0x43b0x2[_0x43b0x3+ 1],_0x43b0x2[_0x43b0x3+ 2],_0x43b0x2[_0x43b0x3+ 3],_0x43b0x2[_0x43b0x3+ 4],_0x43b0x2[_0x43b0x3+ 5])}};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[268]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa){this[_0x5b48[1240]](this[_0x5b48[1227]])};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1282]]= function(){};function mxXmlCanvas2D(_0x43b0x2){mxAbstractCanvas2D[_0x5b48[239]](this);this[_0x5b48[813]]= _0x43b0x2;this[_0x5b48[1283]]()}mxUtils[_0x5b48[1284]](mxXmlCanvas2D,mxAbstractCanvas2D);mxXmlCanvas2D[_0x5b48[202]][_0x5b48[1285]]= !0;mxXmlCanvas2D[_0x5b48[202]][_0x5b48[1286]]= !0;mxXmlCanvas2D[_0x5b48[202]][_0x5b48[1283]]= function(){var _0x43b0x2;_0x43b0x2= this[_0x5b48[55]](_0x5b48[1287]);_0x43b0x2[_0x5b48[57]](_0x5b48[1288],mxConstants.DEFAULT_FONTFAMILY);this[_0x5b48[813]][_0x5b48[62]](_0x43b0x2);_0x43b0x2= this[_0x5b48[55]](_0x5b48[1289]);_0x43b0x2[_0x5b48[57]](_0x5b48[803],mxConstants.DEFAULT_FONTSIZE);this[_0x5b48[813]][_0x5b48[62]](_0x43b0x2);_0x43b0x2= this[_0x5b48[55]](_0x5b48[1290]);_0x43b0x2[_0x5b48[57]](_0x5b48[352],mxConstants.SHADOWCOLOR);this[_0x5b48[813]][_0x5b48[62]](_0x43b0x2);_0x43b0x2= this[_0x5b48[55]](_0x5b48[1291]);_0x43b0x2[_0x5b48[57]](_0x5b48[1244],mxConstants.SHADOW_OPACITY);this[_0x5b48[813]][_0x5b48[62]](_0x43b0x2);_0x43b0x2= this[_0x5b48[55]](_0x5b48[1292]);_0x43b0x2[_0x5b48[57]](_0x5b48[1126],mxConstants.SHADOW_OFFSET_X);_0x43b0x2[_0x5b48[57]](_0x5b48[1125],mxConstants.SHADOW_OFFSET_Y);this[_0x5b48[813]][_0x5b48[62]](_0x43b0x2)};mxXmlCanvas2D[_0x5b48[202]][_0x5b48[1239]]= function(_0x43b0x2){return parseFloat(parseFloat(_0x43b0x2)[_0x5b48[1293]](2))};mxXmlCanvas2D[_0x5b48[202]][_0x5b48[55]]= function(_0x43b0x2){return this[_0x5b48[813]][_0x5b48[295]][_0x5b48[55]](_0x43b0x2)};mxXmlCanvas2D[_0x5b48[202]][_0x5b48[815]]= function(){this[_0x5b48[1286]]&& mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[815]][_0x5b48[183]](this,arguments);this[_0x5b48[813]][_0x5b48[62]](this[_0x5b48[55]](_0x5b48[815]))};mxXmlCanvas2D[_0x5b48[202]][_0x5b48[1210]]= function(){this[_0x5b48[1286]]&& mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1210]][_0x5b48[183]](this,arguments);this[_0x5b48[813]][_0x5b48[62]](this[_0x5b48[55]](_0x5b48[1210]))};mxXmlCanvas2D[_0x5b48[202]][_0x5b48[255]]= function(_0x43b0x2){if(this[_0x5b48[1286]]){if(this[_0x5b48[724]][_0x5b48[255]]== _0x43b0x2){return};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1243]][_0x5b48[183]](this,arguments)};var _0x43b0x3=this[_0x5b48[55]](_0x5b48[255]);_0x43b0x3[_0x5b48[57]](_0x5b48[255],_0x43b0x2);this[_0x5b48[813]][_0x5b48[62]](_0x43b0x3)};mxXmlCanvas2D[_0x5b48[202]][_0x5b48[513]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=this[_0x5b48[55]](_0x5b48[513]);_0x43b0x4[_0x5b48[57]](_0x5b48[1126],this[_0x5b48[1239]](_0x43b0x2));_0x43b0x4[_0x5b48[57]](_0x5b48[1125],this[_0x5b48[1239]](_0x43b0x3));this[_0x5b48[813]][_0x5b48[62]](_0x43b0x4)};mxXmlCanvas2D[_0x5b48[202]][_0x5b48[1294]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){var _0x43b0xa=this[_0x5b48[55]](_0x5b48[1294]);if(0!= _0x43b0x2|| _0x43b0x3|| _0x43b0x4){_0x43b0xa[_0x5b48[57]](_0x5b48[1295],this[_0x5b48[1239]](_0x43b0x2)),_0x43b0xa[_0x5b48[57]](_0x5b48[623],_0x43b0x3?_0x5b48[500]:_0x5b48[468]),_0x43b0xa[_0x5b48[57]](_0x5b48[624],_0x43b0x4?_0x5b48[500]:_0x5b48[468]),_0x43b0xa[_0x5b48[57]](_0x5b48[1296],this[_0x5b48[1239]](_0x43b0x5)),_0x43b0xa[_0x5b48[57]](_0x5b48[1297],this[_0x5b48[1239]](_0x43b0x9)),this[_0x5b48[813]][_0x5b48[62]](_0x43b0xa)}};mxXmlCanvas2D[_0x5b48[202]][_0x5b48[1243]]= function(_0x43b0x2){if(this[_0x5b48[1286]]){if(this[_0x5b48[724]][_0x5b48[1244]]== _0x43b0x2){return};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1243]][_0x5b48[183]](this,arguments)};var _0x43b0x3=this[_0x5b48[55]](_0x5b48[1244]);_0x43b0x3[_0x5b48[57]](_0x5b48[1244],this[_0x5b48[1239]](_0x43b0x2));this[_0x5b48[813]][_0x5b48[62]](_0x43b0x3)};mxXmlCanvas2D[_0x5b48[202]][_0x5b48[1245]]= function(_0x43b0x2){_0x43b0x2== mxConstants[_0x5b48[217]]&& (_0x43b0x2= null);if(this[_0x5b48[1286]]){if(this[_0x5b48[724]][_0x5b48[604]]== _0x43b0x2){return};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1245]][_0x5b48[183]](this,arguments)};var _0x43b0x3=this[_0x5b48[55]](_0x5b48[1298]);_0x43b0x3[_0x5b48[57]](_0x5b48[352],null!= _0x43b0x2?_0x43b0x2:mxConstants[_0x5b48[217]]);this[_0x5b48[813]][_0x5b48[62]](_0x43b0x3)};mxXmlCanvas2D[_0x5b48[202]][_0x5b48[1246]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa,_0x43b0x12,_0x43b0x13,_0x43b0x14){if(null!= _0x43b0x2&& null!= _0x43b0x3){mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1246]][_0x5b48[183]](this,arguments);var _0x43b0x15=this[_0x5b48[55]](_0x5b48[1299]);_0x43b0x15[_0x5b48[57]](_0x5b48[1300],_0x43b0x2);_0x43b0x15[_0x5b48[57]](_0x5b48[1301],_0x43b0x3);_0x43b0x15[_0x5b48[57]](_0x5b48[235],this[_0x5b48[1239]](_0x43b0x4));_0x43b0x15[_0x5b48[57]](_0x5b48[236],this[_0x5b48[1239]](_0x43b0x5));_0x43b0x15[_0x5b48[57]](_0x5b48[1302],this[_0x5b48[1239]](_0x43b0x9));_0x43b0x15[_0x5b48[57]](_0x5b48[1303],this[_0x5b48[1239]](_0x43b0xa));null!= _0x43b0x12&& _0x43b0x15[_0x5b48[57]](_0x5b48[663],_0x43b0x12);null!= _0x43b0x13&& _0x43b0x15[_0x5b48[57]](_0x5b48[1304],_0x43b0x13);null!= _0x43b0x14&& _0x43b0x15[_0x5b48[57]](_0x5b48[1305],_0x43b0x14);this[_0x5b48[813]][_0x5b48[62]](_0x43b0x15)}};mxXmlCanvas2D[_0x5b48[202]][_0x5b48[1249]]= function(_0x43b0x2){_0x43b0x2== mxConstants[_0x5b48[217]]&& (_0x43b0x2= null);if(this[_0x5b48[1286]]){if(this[_0x5b48[724]][_0x5b48[608]]== _0x43b0x2){return};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1249]][_0x5b48[183]](this,arguments)};var _0x43b0x3=this[_0x5b48[55]](_0x5b48[1306]);_0x43b0x3[_0x5b48[57]](_0x5b48[352],null!= _0x43b0x2?_0x43b0x2:mxConstants[_0x5b48[217]]);this[_0x5b48[813]][_0x5b48[62]](_0x43b0x3)};mxXmlCanvas2D[_0x5b48[202]][_0x5b48[1250]]= function(_0x43b0x2){if(this[_0x5b48[1286]]){if(this[_0x5b48[724]][_0x5b48[610]]== _0x43b0x2){return};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1250]][_0x5b48[183]](this,arguments)};var _0x43b0x3=this[_0x5b48[55]](_0x5b48[1307]);_0x43b0x3[_0x5b48[57]](_0x5b48[117],this[_0x5b48[1239]](_0x43b0x2));this[_0x5b48[813]][_0x5b48[62]](_0x43b0x3)};mxXmlCanvas2D[_0x5b48[202]][_0x5b48[1251]]= function(_0x43b0x2){if(this[_0x5b48[1286]]){if(this[_0x5b48[724]][_0x5b48[648]]== _0x43b0x2){return};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1251]][_0x5b48[183]](this,arguments)};var _0x43b0x3=this[_0x5b48[55]](_0x5b48[648]);_0x43b0x3[_0x5b48[57]](_0x5b48[648],_0x43b0x2?_0x5b48[500]:_0x5b48[468]);this[_0x5b48[813]][_0x5b48[62]](_0x43b0x3)};mxXmlCanvas2D[_0x5b48[202]][_0x5b48[1252]]= function(_0x43b0x2){if(this[_0x5b48[1286]]){if(this[_0x5b48[724]][_0x5b48[649]]== _0x43b0x2){return};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1252]][_0x5b48[183]](this,arguments)};var _0x43b0x3=this[_0x5b48[55]](_0x5b48[1308]);_0x43b0x3[_0x5b48[57]](_0x5b48[1309],_0x43b0x2);this[_0x5b48[813]][_0x5b48[62]](_0x43b0x3)};mxXmlCanvas2D[_0x5b48[202]][_0x5b48[1253]]= function(_0x43b0x2){if(this[_0x5b48[1286]]){if(this[_0x5b48[724]][_0x5b48[1254]]== _0x43b0x2){return};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1253]][_0x5b48[183]](this,arguments)};var _0x43b0x3=this[_0x5b48[55]](_0x5b48[1310]);_0x43b0x3[_0x5b48[57]](_0x5b48[1311],_0x43b0x2);this[_0x5b48[813]][_0x5b48[62]](_0x43b0x3)};mxXmlCanvas2D[_0x5b48[202]][_0x5b48[1255]]= function(_0x43b0x2){if(this[_0x5b48[1286]]){if(this[_0x5b48[724]][_0x5b48[1256]]== _0x43b0x2){return};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1255]][_0x5b48[183]](this,arguments)};var _0x43b0x3=this[_0x5b48[55]](_0x5b48[1312]);_0x43b0x3[_0x5b48[57]](_0x5b48[234],_0x43b0x2);this[_0x5b48[813]][_0x5b48[62]](_0x43b0x3)};mxXmlCanvas2D[_0x5b48[202]][_0x5b48[1257]]= function(_0x43b0x2){if(this[_0x5b48[1286]]){if(this[_0x5b48[724]][_0x5b48[1258]]== _0x43b0x2){return};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1257]][_0x5b48[183]](this,arguments)};var _0x43b0x3=this[_0x5b48[55]](_0x5b48[1313]);_0x43b0x3[_0x5b48[57]](_0x5b48[1314],_0x43b0x2);this[_0x5b48[813]][_0x5b48[62]](_0x43b0x3)};mxXmlCanvas2D[_0x5b48[202]][_0x5b48[1259]]= function(_0x43b0x2){if(this[_0x5b48[1285]]){_0x43b0x2== mxConstants[_0x5b48[217]]&& (_0x43b0x2= null);if(this[_0x5b48[1286]]){if(this[_0x5b48[724]][_0x5b48[665]]== _0x43b0x2){return};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1259]][_0x5b48[183]](this,arguments)};var _0x43b0x3=this[_0x5b48[55]](_0x5b48[1315]);_0x43b0x3[_0x5b48[57]](_0x5b48[352],null!= _0x43b0x2?_0x43b0x2:mxConstants[_0x5b48[217]]);this[_0x5b48[813]][_0x5b48[62]](_0x43b0x3)}};mxXmlCanvas2D[_0x5b48[202]][_0x5b48[1260]]= function(_0x43b0x2){if(this[_0x5b48[1285]]){_0x43b0x2== mxConstants[_0x5b48[217]]&& (_0x43b0x2= null);if(this[_0x5b48[1286]]){if(this[_0x5b48[724]][_0x5b48[1261]]== _0x43b0x2){return};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1260]][_0x5b48[183]](this,arguments)};var _0x43b0x3=this[_0x5b48[55]](_0x5b48[1316]);_0x43b0x3[_0x5b48[57]](_0x5b48[352],null!= _0x43b0x2?_0x43b0x2:mxConstants[_0x5b48[217]]);this[_0x5b48[813]][_0x5b48[62]](_0x43b0x3)}};mxXmlCanvas2D[_0x5b48[202]][_0x5b48[1262]]= function(_0x43b0x2){if(this[_0x5b48[1285]]){_0x43b0x2== mxConstants[_0x5b48[217]]&& (_0x43b0x2= null);if(this[_0x5b48[1286]]){if(this[_0x5b48[724]][_0x5b48[1263]]== _0x43b0x2){return};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1262]][_0x5b48[183]](this,arguments)};var _0x43b0x3=this[_0x5b48[55]](_0x5b48[1317]);_0x43b0x3[_0x5b48[57]](_0x5b48[352],null!= _0x43b0x2?_0x43b0x2:mxConstants[_0x5b48[217]]);this[_0x5b48[813]][_0x5b48[62]](_0x43b0x3)}};mxXmlCanvas2D[_0x5b48[202]][_0x5b48[1264]]= function(_0x43b0x2){if(this[_0x5b48[1285]]){if(this[_0x5b48[1286]]){if(this[_0x5b48[724]][_0x5b48[487]]== _0x43b0x2){return};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1264]][_0x5b48[183]](this,arguments)};var _0x43b0x3=this[_0x5b48[55]](_0x5b48[1289]);_0x43b0x3[_0x5b48[57]](_0x5b48[803],_0x43b0x2);this[_0x5b48[813]][_0x5b48[62]](_0x43b0x3)}};mxXmlCanvas2D[_0x5b48[202]][_0x5b48[1265]]= function(_0x43b0x2){if(this[_0x5b48[1285]]){if(this[_0x5b48[1286]]){if(this[_0x5b48[724]][_0x5b48[486]]== _0x43b0x2){return};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1265]][_0x5b48[183]](this,arguments)};var _0x43b0x3=this[_0x5b48[55]](_0x5b48[1287]);_0x43b0x3[_0x5b48[57]](_0x5b48[1288],_0x43b0x2);this[_0x5b48[813]][_0x5b48[62]](_0x43b0x3)}};mxXmlCanvas2D[_0x5b48[202]][_0x5b48[1266]]= function(_0x43b0x2){if(this[_0x5b48[1285]]){null== _0x43b0x2&& (_0x43b0x2= 0);if(this[_0x5b48[1286]]){if(this[_0x5b48[724]][_0x5b48[666]]== _0x43b0x2){return};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1266]][_0x5b48[183]](this,arguments)};var _0x43b0x3=this[_0x5b48[55]](_0x5b48[1318]);_0x43b0x3[_0x5b48[57]](_0x5b48[124],_0x43b0x2);this[_0x5b48[813]][_0x5b48[62]](_0x43b0x3)}};mxXmlCanvas2D[_0x5b48[202]][_0x5b48[1267]]= function(_0x43b0x2){if(this[_0x5b48[1286]]){if(this[_0x5b48[724]][_0x5b48[639]]== _0x43b0x2){return};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1267]][_0x5b48[183]](this,arguments)};var _0x43b0x3=this[_0x5b48[55]](_0x5b48[639]);_0x43b0x3[_0x5b48[57]](_0x5b48[984],_0x43b0x2?_0x5b48[500]:_0x5b48[468]);this[_0x5b48[813]][_0x5b48[62]](_0x43b0x3)};mxXmlCanvas2D[_0x5b48[202]][_0x5b48[1268]]= function(_0x43b0x2){if(this[_0x5b48[1286]]){_0x43b0x2== mxConstants[_0x5b48[217]]&& (_0x43b0x2= null);if(this[_0x5b48[724]][_0x5b48[1269]]== _0x43b0x2){return};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1268]][_0x5b48[183]](this,arguments)};var _0x43b0x3=this[_0x5b48[55]](_0x5b48[1290]);_0x43b0x3[_0x5b48[57]](_0x5b48[352],null!= _0x43b0x2?_0x43b0x2:mxConstants[_0x5b48[217]]);this[_0x5b48[813]][_0x5b48[62]](_0x43b0x3)};mxXmlCanvas2D[_0x5b48[202]][_0x5b48[1270]]= function(_0x43b0x2){if(this[_0x5b48[1286]]){if(this[_0x5b48[724]][_0x5b48[1271]]== _0x43b0x2){return};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1270]][_0x5b48[183]](this,arguments)};var _0x43b0x3=this[_0x5b48[55]](_0x5b48[1291]);_0x43b0x3[_0x5b48[57]](_0x5b48[1244],_0x43b0x2);this[_0x5b48[813]][_0x5b48[62]](_0x43b0x3)};mxXmlCanvas2D[_0x5b48[202]][_0x5b48[1272]]= function(_0x43b0x2,_0x43b0x3){if(this[_0x5b48[1286]]){if(this[_0x5b48[724]][_0x5b48[1273]]== _0x43b0x2&& this[_0x5b48[724]][_0x5b48[1274]]== _0x43b0x3){return};mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1272]][_0x5b48[183]](this,arguments)};var _0x43b0x4=this[_0x5b48[55]](_0x5b48[1292]);_0x43b0x4[_0x5b48[57]](_0x5b48[1126],_0x43b0x2);_0x43b0x4[_0x5b48[57]](_0x5b48[1125],_0x43b0x3);this[_0x5b48[813]][_0x5b48[62]](_0x43b0x4)};mxXmlCanvas2D[_0x5b48[202]][_0x5b48[1319]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){var _0x43b0x9=this[_0x5b48[55]](_0x5b48[1319]);_0x43b0x9[_0x5b48[57]](_0x5b48[235],this[_0x5b48[1239]](_0x43b0x2));_0x43b0x9[_0x5b48[57]](_0x5b48[236],this[_0x5b48[1239]](_0x43b0x3));_0x43b0x9[_0x5b48[57]](_0x5b48[1302],this[_0x5b48[1239]](_0x43b0x4));_0x43b0x9[_0x5b48[57]](_0x5b48[1303],this[_0x5b48[1239]](_0x43b0x5));this[_0x5b48[813]][_0x5b48[62]](_0x43b0x9)};mxXmlCanvas2D[_0x5b48[202]][_0x5b48[1320]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa){var _0x43b0x12=this[_0x5b48[55]](_0x5b48[1320]);_0x43b0x12[_0x5b48[57]](_0x5b48[235],this[_0x5b48[1239]](_0x43b0x2));_0x43b0x12[_0x5b48[57]](_0x5b48[236],this[_0x5b48[1239]](_0x43b0x3));_0x43b0x12[_0x5b48[57]](_0x5b48[1302],this[_0x5b48[1239]](_0x43b0x4));_0x43b0x12[_0x5b48[57]](_0x5b48[1303],this[_0x5b48[1239]](_0x43b0x5));_0x43b0x12[_0x5b48[57]](_0x5b48[1126],this[_0x5b48[1239]](_0x43b0x9));_0x43b0x12[_0x5b48[57]](_0x5b48[1125],this[_0x5b48[1239]](_0x43b0xa));this[_0x5b48[813]][_0x5b48[62]](_0x43b0x12)};mxXmlCanvas2D[_0x5b48[202]][_0x5b48[680]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){var _0x43b0x9=this[_0x5b48[55]](_0x5b48[680]);_0x43b0x9[_0x5b48[57]](_0x5b48[235],this[_0x5b48[1239]](_0x43b0x2));_0x43b0x9[_0x5b48[57]](_0x5b48[236],this[_0x5b48[1239]](_0x43b0x3));_0x43b0x9[_0x5b48[57]](_0x5b48[1302],this[_0x5b48[1239]](_0x43b0x4));_0x43b0x9[_0x5b48[57]](_0x5b48[1303],this[_0x5b48[1239]](_0x43b0x5));this[_0x5b48[813]][_0x5b48[62]](_0x43b0x9)};mxXmlCanvas2D[_0x5b48[202]][_0x5b48[618]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa,_0x43b0x12,_0x43b0x13){_0x43b0x9= this[_0x5b48[1212]][_0x5b48[1321]](_0x43b0x9);var _0x43b0x14=this[_0x5b48[55]](_0x5b48[618]);_0x43b0x14[_0x5b48[57]](_0x5b48[235],this[_0x5b48[1239]](_0x43b0x2));_0x43b0x14[_0x5b48[57]](_0x5b48[236],this[_0x5b48[1239]](_0x43b0x3));_0x43b0x14[_0x5b48[57]](_0x5b48[1302],this[_0x5b48[1239]](_0x43b0x4));_0x43b0x14[_0x5b48[57]](_0x5b48[1303],this[_0x5b48[1239]](_0x43b0x5));_0x43b0x14[_0x5b48[57]](_0x5b48[390],_0x43b0x9);_0x43b0x14[_0x5b48[57]](_0x5b48[1322],_0x43b0xa?_0x5b48[500]:_0x5b48[468]);_0x43b0x14[_0x5b48[57]](_0x5b48[623],_0x43b0x12?_0x5b48[500]:_0x5b48[468]);_0x43b0x14[_0x5b48[57]](_0x5b48[624],_0x43b0x13?_0x5b48[500]:_0x5b48[468]);this[_0x5b48[813]][_0x5b48[62]](_0x43b0x14)};mxXmlCanvas2D[_0x5b48[202]][_0x5b48[1275]]= function(){this[_0x5b48[813]][_0x5b48[62]](this[_0x5b48[55]](_0x5b48[1275]));this[_0x5b48[1218]]= this[_0x5b48[1217]]= 0};mxXmlCanvas2D[_0x5b48[202]][_0x5b48[1276]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=this[_0x5b48[55]](_0x5b48[582]);_0x43b0x4[_0x5b48[57]](_0x5b48[235],this[_0x5b48[1239]](_0x43b0x2));_0x43b0x4[_0x5b48[57]](_0x5b48[236],this[_0x5b48[1239]](_0x43b0x3));this[_0x5b48[813]][_0x5b48[62]](_0x43b0x4);this[_0x5b48[1217]]= _0x43b0x2;this[_0x5b48[1218]]= _0x43b0x3};mxXmlCanvas2D[_0x5b48[202]][_0x5b48[1277]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=this[_0x5b48[55]](_0x5b48[683]);_0x43b0x4[_0x5b48[57]](_0x5b48[235],this[_0x5b48[1239]](_0x43b0x2));_0x43b0x4[_0x5b48[57]](_0x5b48[236],this[_0x5b48[1239]](_0x43b0x3));this[_0x5b48[813]][_0x5b48[62]](_0x43b0x4);this[_0x5b48[1217]]= _0x43b0x2;this[_0x5b48[1218]]= _0x43b0x3};mxXmlCanvas2D[_0x5b48[202]][_0x5b48[1278]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){var _0x43b0x9=this[_0x5b48[55]](_0x5b48[1323]);_0x43b0x9[_0x5b48[57]](_0x5b48[1324],this[_0x5b48[1239]](_0x43b0x2));_0x43b0x9[_0x5b48[57]](_0x5b48[1325],this[_0x5b48[1239]](_0x43b0x3));_0x43b0x9[_0x5b48[57]](_0x5b48[1326],this[_0x5b48[1239]](_0x43b0x4));_0x43b0x9[_0x5b48[57]](_0x5b48[1327],this[_0x5b48[1239]](_0x43b0x5));this[_0x5b48[813]][_0x5b48[62]](_0x43b0x9);this[_0x5b48[1217]]= _0x43b0x4;this[_0x5b48[1218]]= _0x43b0x5};mxXmlCanvas2D[_0x5b48[202]][_0x5b48[1279]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa){var _0x43b0x12=this[_0x5b48[55]](_0x5b48[1328]);_0x43b0x12[_0x5b48[57]](_0x5b48[1324],this[_0x5b48[1239]](_0x43b0x2));_0x43b0x12[_0x5b48[57]](_0x5b48[1325],this[_0x5b48[1239]](_0x43b0x3));_0x43b0x12[_0x5b48[57]](_0x5b48[1326],this[_0x5b48[1239]](_0x43b0x4));_0x43b0x12[_0x5b48[57]](_0x5b48[1327],this[_0x5b48[1239]](_0x43b0x5));_0x43b0x12[_0x5b48[57]](_0x5b48[1329],this[_0x5b48[1239]](_0x43b0x9));_0x43b0x12[_0x5b48[57]](_0x5b48[1330],this[_0x5b48[1239]](_0x43b0xa));this[_0x5b48[813]][_0x5b48[62]](_0x43b0x12);this[_0x5b48[1217]]= _0x43b0x9;this[_0x5b48[1218]]= _0x43b0xa};mxXmlCanvas2D[_0x5b48[202]][_0x5b48[268]]= function(){this[_0x5b48[813]][_0x5b48[62]](this[_0x5b48[55]](_0x5b48[268]))};mxXmlCanvas2D[_0x5b48[202]][_0x5b48[963]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa,_0x43b0x12,_0x43b0x13,_0x43b0x14,_0x43b0x15,_0x43b0x16,_0x43b0x17){if(this[_0x5b48[1285]]&& null!= _0x43b0x9){mxUtils[_0x5b48[1331]](_0x43b0x9)&& (_0x43b0x9= mxUtils[_0x5b48[532]](_0x43b0x9));var _0x43b0x18=this[_0x5b48[55]](_0x5b48[963]);_0x43b0x18[_0x5b48[57]](_0x5b48[235],this[_0x5b48[1239]](_0x43b0x2));_0x43b0x18[_0x5b48[57]](_0x5b48[236],this[_0x5b48[1239]](_0x43b0x3));_0x43b0x18[_0x5b48[57]](_0x5b48[1302],this[_0x5b48[1239]](_0x43b0x4));_0x43b0x18[_0x5b48[57]](_0x5b48[1303],this[_0x5b48[1239]](_0x43b0x5));_0x43b0x18[_0x5b48[57]](_0x5b48[1332],_0x43b0x9);null!= _0x43b0xa&& _0x43b0x18[_0x5b48[57]](_0x5b48[611],_0x43b0xa);null!= _0x43b0x12&& _0x43b0x18[_0x5b48[57]](_0x5b48[552],_0x43b0x12);_0x43b0x18[_0x5b48[57]](_0x5b48[1333],_0x43b0x13?_0x5b48[500]:_0x5b48[468]);null== _0x43b0x14&& (_0x43b0x14= _0x5b48[110]);_0x43b0x18[_0x5b48[57]](_0x5b48[1239],_0x43b0x14);null!= _0x43b0x15&& _0x43b0x18[_0x5b48[57]](_0x5b48[1334],_0x43b0x15?_0x5b48[500]:_0x5b48[468]);null!= _0x43b0x16&& _0x43b0x18[_0x5b48[57]](_0x5b48[1335],_0x43b0x16?_0x5b48[500]:_0x5b48[468]);null!= _0x43b0x17&& _0x43b0x18[_0x5b48[57]](_0x5b48[603],_0x43b0x17);this[_0x5b48[813]][_0x5b48[62]](_0x43b0x18)}};mxXmlCanvas2D[_0x5b48[202]][_0x5b48[1336]]= function(){this[_0x5b48[813]][_0x5b48[62]](this[_0x5b48[55]](_0x5b48[1336]))};mxXmlCanvas2D[_0x5b48[202]][_0x5b48[1334]]= function(){this[_0x5b48[813]][_0x5b48[62]](this[_0x5b48[55]](_0x5b48[1334]))};mxXmlCanvas2D[_0x5b48[202]][_0x5b48[1337]]= function(){this[_0x5b48[813]][_0x5b48[62]](this[_0x5b48[55]](_0x5b48[1338]))};function mxSvgCanvas2D(_0x43b0x2,_0x43b0x3){mxAbstractCanvas2D[_0x5b48[239]](this);this[_0x5b48[813]]= _0x43b0x2;this[_0x5b48[1339]]= [];this[_0x5b48[1340]]= null;this[_0x5b48[1341]]= null!= _0x43b0x3?_0x43b0x3:!1;var _0x43b0x4=null;if(_0x43b0x2[_0x5b48[295]]!= document){for(_0x43b0x4= _0x43b0x2;null!= _0x43b0x4&& _0x5b48[571]!= _0x43b0x4[_0x5b48[301]];){_0x43b0x4= _0x43b0x4[_0x5b48[265]]}};null!= _0x43b0x4&& (0< _0x43b0x4[_0x5b48[64]](_0x5b48[1340])[_0x5b48[67]]&& (this[_0x5b48[1340]]= _0x43b0x4[_0x5b48[64]](_0x5b48[1340])[0]),null== this[_0x5b48[1340]]&& (this[_0x5b48[1340]]= this[_0x5b48[55]](_0x5b48[1340]),null!= _0x43b0x4[_0x5b48[285]]?_0x43b0x4[_0x5b48[950]](this[_0x5b48[1340]],_0x43b0x4[_0x5b48[285]]):_0x43b0x4[_0x5b48[62]](this[_0x5b48[1340]])),this[_0x5b48[1341]]&& this[_0x5b48[1340]][_0x5b48[62]](this[_0x5b48[1342]]()))}mxUtils[_0x5b48[1284]](mxSvgCanvas2D,mxAbstractCanvas2D);mxSvgCanvas2D[_0x5b48[202]][_0x5b48[252]]= null;mxSvgCanvas2D[_0x5b48[202]][_0x5b48[1343]]= !0;mxSvgCanvas2D[_0x5b48[202]][_0x5b48[1285]]= !0;mxSvgCanvas2D[_0x5b48[202]][_0x5b48[1344]]= !0;mxSvgCanvas2D[_0x5b48[202]][_0x5b48[1345]]= 0;mxSvgCanvas2D[_0x5b48[202]][_0x5b48[1346]]= 0;mxSvgCanvas2D[_0x5b48[202]][_0x5b48[1347]]= !1;mxSvgCanvas2D[_0x5b48[202]][_0x5b48[862]]= function(){mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[862]][_0x5b48[183]](this,arguments);this[_0x5b48[1339]]= []};mxSvgCanvas2D[_0x5b48[202]][_0x5b48[1342]]= function(_0x43b0x2){_0x43b0x2= this[_0x5b48[55]](_0x5b48[124]);_0x43b0x2[_0x5b48[57]](_0x5b48[60],_0x5b48[61]);mxUtils[_0x5b48[53]](_0x43b0x2,_0x5b48[1348]+ mxConstants[_0x5b48[484]]+ _0x5b48[1349]+ mxConstants[_0x5b48[483]]+ _0x5b48[1350]);return _0x43b0x2};mxSvgCanvas2D[_0x5b48[202]][_0x5b48[55]]= function(_0x43b0x2,_0x43b0x3){if(null!= this[_0x5b48[813]][_0x5b48[295]][_0x5b48[509]]){return this[_0x5b48[813]][_0x5b48[295]][_0x5b48[509]](_0x43b0x3|| mxConstants[_0x5b48[1351]],_0x43b0x2)};var _0x43b0x4=this[_0x5b48[813]][_0x5b48[295]][_0x5b48[55]](_0x43b0x2);null!= _0x43b0x3&& _0x43b0x4[_0x5b48[57]](_0x5b48[1352],_0x43b0x3);return _0x43b0x4};mxSvgCanvas2D[_0x5b48[202]][_0x5b48[1353]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){_0x5b48[198]== _0x43b0x2[_0x5b48[225]](0)&& (_0x43b0x2= _0x43b0x2[_0x5b48[85]](1));_0x5b48[198]== _0x43b0x3[_0x5b48[225]](0)&& (_0x43b0x3= _0x43b0x3[_0x5b48[85]](1));_0x43b0x2= _0x43b0x2[_0x5b48[216]]()+ _0x5b48[213]+ _0x43b0x4;_0x43b0x3= _0x43b0x3[_0x5b48[216]]()+ _0x5b48[213]+ _0x43b0x5;_0x43b0x4= null;null== _0x43b0x9|| _0x43b0x9== mxConstants[_0x5b48[1354]]?_0x43b0x4= _0x5b48[1355]:_0x43b0x9== mxConstants[_0x5b48[1356]]?_0x43b0x4= _0x5b48[1357]:(_0x43b0x5= _0x43b0x2,_0x43b0x2= _0x43b0x3,_0x43b0x3= _0x43b0x5,_0x43b0x9== mxConstants[_0x5b48[1358]]?_0x43b0x4= _0x5b48[1355]:_0x43b0x9== mxConstants[_0x5b48[1359]]&& (_0x43b0x4= _0x5b48[1357]));return _0x5b48[1360]+ _0x43b0x2+ _0x5b48[213]+ _0x43b0x3+ _0x5b48[213]+ _0x43b0x4};mxSvgCanvas2D[_0x5b48[202]][_0x5b48[1361]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){var _0x43b0xa=this[_0x5b48[1353]](_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9),_0x43b0x12=this[_0x5b48[1339]][_0x43b0xa];if(null== _0x43b0x12){var _0x43b0x13=this[_0x5b48[813]][_0x5b48[538]],_0x43b0x14=0,_0x43b0x15=_0x43b0xa+ _0x5b48[213]+ _0x43b0x14;if(null!= _0x43b0x13){for(_0x43b0x12= _0x43b0x13[_0x5b48[295]][_0x5b48[1362]](_0x43b0x15);null!= _0x43b0x12&& _0x43b0x12[_0x5b48[538]]!= _0x43b0x13;){_0x43b0x15= _0x43b0xa+ _0x5b48[213]+ _0x43b0x14++,_0x43b0x12= _0x43b0x13[_0x5b48[295]][_0x5b48[1362]](_0x43b0x15)}}else {_0x43b0x15= _0x5b48[1363]+ ++this[_0x5b48[1346]]};null== _0x43b0x12&& (_0x43b0x12= this[_0x5b48[1364]](_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9),_0x43b0x12[_0x5b48[57]](_0x5b48[1363],_0x43b0x15),null!= this[_0x5b48[1340]]?this[_0x5b48[1340]][_0x5b48[62]](_0x43b0x12):_0x43b0x13[_0x5b48[62]](_0x43b0x12));this[_0x5b48[1339]][_0x43b0xa]= _0x43b0x12};return _0x43b0x12[_0x5b48[284]](_0x5b48[1363])};mxSvgCanvas2D[_0x5b48[202]][_0x5b48[1364]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){var _0x43b0xa=this[_0x5b48[55]](_0x5b48[1365]);_0x43b0xa[_0x5b48[57]](_0x5b48[1324],_0x5b48[1366]);_0x43b0xa[_0x5b48[57]](_0x5b48[1325],_0x5b48[1366]);_0x43b0xa[_0x5b48[57]](_0x5b48[1326],_0x5b48[1366]);_0x43b0xa[_0x5b48[57]](_0x5b48[1327],_0x5b48[1366]);null== _0x43b0x9|| _0x43b0x9== mxConstants[_0x5b48[1354]]?_0x43b0xa[_0x5b48[57]](_0x5b48[1327],_0x5b48[118]):_0x43b0x9== mxConstants[_0x5b48[1356]]?_0x43b0xa[_0x5b48[57]](_0x5b48[1326],_0x5b48[118]):_0x43b0x9== mxConstants[_0x5b48[1358]]?_0x43b0xa[_0x5b48[57]](_0x5b48[1325],_0x5b48[118]):_0x43b0x9== mxConstants[_0x5b48[1359]]&& _0x43b0xa[_0x5b48[57]](_0x5b48[1324],_0x5b48[118]);_0x43b0x4= 1> _0x43b0x4?_0x5b48[1367]+ _0x43b0x4:_0x5b48[110];_0x43b0x9= this[_0x5b48[55]](_0x5b48[1076]);_0x43b0x9[_0x5b48[57]](_0x5b48[1368],_0x5b48[1366]);_0x43b0x9[_0x5b48[57]](_0x5b48[124],_0x5b48[1369]+ _0x43b0x2+ _0x43b0x4);_0x43b0xa[_0x5b48[62]](_0x43b0x9);_0x43b0x4= 1> _0x43b0x5?_0x5b48[1367]+ _0x43b0x5:_0x5b48[110];_0x43b0x9= this[_0x5b48[55]](_0x5b48[1076]);_0x43b0x9[_0x5b48[57]](_0x5b48[1368],_0x5b48[118]);_0x43b0x9[_0x5b48[57]](_0x5b48[124],_0x5b48[1369]+ _0x43b0x3+ _0x43b0x4);_0x43b0xa[_0x5b48[62]](_0x43b0x9);return _0x43b0xa};mxSvgCanvas2D[_0x5b48[202]][_0x5b48[1370]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=this[_0x5b48[252]],_0x43b0x5=this[_0x5b48[724]];if(null!= _0x43b0x4){if(_0x5b48[1215]== _0x43b0x4[_0x5b48[301]]){if(null!= this[_0x5b48[1215]]&& 0< this[_0x5b48[1215]][_0x5b48[67]]){_0x43b0x4[_0x5b48[57]](_0x5b48[1371],this[_0x5b48[1215]][_0x5b48[234]](_0x5b48[185]))}else {return}};_0x43b0x2&& null!= _0x43b0x5[_0x5b48[604]]?this[_0x5b48[1372]]():this[_0x5b48[1341]]|| (_0x5b48[680]== _0x43b0x4[_0x5b48[301]]&& mxClient[_0x5b48[133]]&& !mxClient[_0x5b48[76]]&& !mxClient[_0x5b48[75]]?_0x43b0x4[_0x5b48[57]](_0x5b48[1334],_0x5b48[1373]):_0x43b0x4[_0x5b48[57]](_0x5b48[1334],_0x5b48[130]),_0x43b0x2= !1);_0x43b0x3&& null!= _0x43b0x5[_0x5b48[608]]?this[_0x5b48[1374]]():this[_0x5b48[1341]]|| _0x43b0x4[_0x5b48[57]](_0x5b48[1336],_0x5b48[130]);null!= _0x43b0x5[_0x5b48[535]]&& 0< _0x43b0x5[_0x5b48[535]][_0x5b48[67]]&& _0x43b0x4[_0x5b48[57]](_0x5b48[535],_0x43b0x5[_0x5b48[535]]);_0x43b0x5[_0x5b48[639]]&& this[_0x5b48[813]][_0x5b48[62]](this[_0x5b48[1375]](_0x43b0x4));0< this[_0x5b48[1345]]&& !_0x43b0x2&& this[_0x5b48[813]][_0x5b48[62]](this[_0x5b48[1376]](_0x43b0x4));this[_0x5b48[1229]]&& (_0x5b48[1215]!= _0x43b0x4[_0x5b48[301]]|| this[_0x5b48[1215]][this[_0x5b48[1215]][_0x5b48[67]]- 1]== this[_0x5b48[1227]])&& _0x43b0x4[_0x5b48[57]](_0x5b48[1377],_0x5b48[1378]);this[_0x5b48[813]][_0x5b48[62]](_0x43b0x4)}};mxSvgCanvas2D[_0x5b48[202]][_0x5b48[1372]]= function(){var _0x43b0x2=this[_0x5b48[724]];1> _0x43b0x2[_0x5b48[1244]]&& this[_0x5b48[252]][_0x5b48[57]](_0x5b48[1379],_0x43b0x2[_0x5b48[1244]]);null!= _0x43b0x2[_0x5b48[604]]&& (null!= _0x43b0x2[_0x5b48[606]]?(_0x43b0x2= this[_0x5b48[1361]](_0x43b0x2[_0x5b48[604]],_0x43b0x2[_0x5b48[606]],_0x43b0x2[_0x5b48[1247]],_0x43b0x2[_0x5b48[1248]],_0x43b0x2[_0x5b48[607]]),this[_0x5b48[252]][_0x5b48[57]](_0x5b48[1334],_0x5b48[1380]+ _0x43b0x2+ _0x5b48[460])):this[_0x5b48[252]][_0x5b48[57]](_0x5b48[1334],_0x43b0x2[_0x5b48[604]][_0x5b48[216]]()))};mxSvgCanvas2D[_0x5b48[202]][_0x5b48[1374]]= function(){var _0x43b0x2=this[_0x5b48[724]];this[_0x5b48[252]][_0x5b48[57]](_0x5b48[1336],_0x43b0x2[_0x5b48[608]][_0x5b48[216]]());1> _0x43b0x2[_0x5b48[1244]]&& this[_0x5b48[252]][_0x5b48[57]](_0x5b48[1381],_0x43b0x2[_0x5b48[1244]]);var _0x43b0x3=Math[_0x5b48[160]](1,this[_0x5b48[1239]](_0x43b0x2[_0x5b48[610]]* _0x43b0x2[_0x5b48[255]]));1!= _0x43b0x3&& this[_0x5b48[252]][_0x5b48[57]](_0x5b48[1382],_0x43b0x3);_0x5b48[1215]== this[_0x5b48[252]][_0x5b48[301]]&& this[_0x5b48[1383]]();_0x43b0x2[_0x5b48[648]]&& this[_0x5b48[252]][_0x5b48[57]](_0x5b48[1384],this[_0x5b48[1385]](_0x43b0x3))};mxSvgCanvas2D[_0x5b48[202]][_0x5b48[1383]]= function(){var _0x43b0x2=this[_0x5b48[724]];null!= _0x43b0x2[_0x5b48[1256]]&& _0x5b48[1233]!= _0x43b0x2[_0x5b48[1256]]&& this[_0x5b48[252]][_0x5b48[57]](_0x5b48[1386],_0x43b0x2[_0x5b48[1256]]);if(null!= _0x43b0x2[_0x5b48[1254]]){var _0x43b0x3=_0x43b0x2[_0x5b48[1254]];_0x5b48[1232]== _0x43b0x3&& (_0x43b0x3= _0x5b48[1387]);_0x5b48[1387]!= _0x43b0x3&& this[_0x5b48[252]][_0x5b48[57]](_0x5b48[1388],_0x43b0x3)};null!= _0x43b0x2[_0x5b48[1258]]&& (!this[_0x5b48[1341]]|| 10!= _0x43b0x2[_0x5b48[1258]])&& this[_0x5b48[252]][_0x5b48[57]](_0x5b48[1389],_0x43b0x2[_0x5b48[1258]])};mxSvgCanvas2D[_0x5b48[202]][_0x5b48[1385]]= function(_0x43b0x2){var _0x43b0x3=this[_0x5b48[724]][_0x5b48[649]][_0x5b48[224]](_0x5b48[185]),_0x43b0x4=[];if(0< _0x43b0x3[_0x5b48[67]]){for(var _0x43b0x5=0;_0x43b0x5< _0x43b0x3[_0x5b48[67]];_0x43b0x5++){_0x43b0x4[_0x43b0x5]= Number(_0x43b0x3[_0x43b0x5])* _0x43b0x2}};return _0x43b0x4[_0x5b48[234]](_0x5b48[185])};mxSvgCanvas2D[_0x5b48[202]][_0x5b48[1376]]= function(_0x43b0x2){_0x43b0x2= _0x43b0x2[_0x5b48[511]](!0);var _0x43b0x3=parseFloat(_0x43b0x2[_0x5b48[284]](_0x5b48[1382])|| 1)+ this[_0x5b48[1345]];_0x43b0x2[_0x5b48[57]](_0x5b48[1377],_0x5b48[1336]);_0x43b0x2[_0x5b48[57]](_0x5b48[187],_0x5b48[188]);_0x43b0x2[_0x5b48[1390]](_0x5b48[1384]);_0x43b0x2[_0x5b48[57]](_0x5b48[1382],_0x43b0x3);_0x43b0x2[_0x5b48[57]](_0x5b48[1334],_0x5b48[130]);_0x43b0x2[_0x5b48[57]](_0x5b48[1336],mxClient[_0x5b48[71]]?_0x5b48[130]:_0x5b48[1391]);return _0x43b0x2};mxSvgCanvas2D[_0x5b48[202]][_0x5b48[1375]]= function(_0x43b0x2){_0x43b0x2= _0x43b0x2[_0x5b48[511]](!0);var _0x43b0x3=this[_0x5b48[724]];_0x5b48[130]!= _0x43b0x2[_0x5b48[284]](_0x5b48[1334])&& _0x43b0x2[_0x5b48[57]](_0x5b48[1334],_0x43b0x3[_0x5b48[1269]]);_0x5b48[130]!= _0x43b0x2[_0x5b48[284]](_0x5b48[1336])&& _0x43b0x2[_0x5b48[57]](_0x5b48[1336],_0x43b0x3[_0x5b48[1269]]);_0x43b0x2[_0x5b48[57]](_0x5b48[535],_0x5b48[536]+ this[_0x5b48[1239]](_0x43b0x3[_0x5b48[1273]]* _0x43b0x3[_0x5b48[255]])+ _0x5b48[537]+ this[_0x5b48[1239]](_0x43b0x3[_0x5b48[1274]]* _0x43b0x3[_0x5b48[255]])+ _0x5b48[460]+ (_0x43b0x3[_0x5b48[535]]|| _0x5b48[110]));_0x43b0x2[_0x5b48[57]](_0x5b48[461],_0x43b0x3[_0x5b48[1271]]);return _0x43b0x2};mxSvgCanvas2D[_0x5b48[202]][_0x5b48[1294]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){if(0!= _0x43b0x2|| _0x43b0x3|| _0x43b0x4){var _0x43b0xa=this[_0x5b48[724]];_0x43b0x5+= _0x43b0xa[_0x5b48[1126]];_0x43b0x9+= _0x43b0xa[_0x5b48[1125]];_0x43b0x5*= _0x43b0xa[_0x5b48[255]];_0x43b0x9*= _0x43b0xa[_0x5b48[255]];_0x43b0xa[_0x5b48[535]]= _0x43b0xa[_0x5b48[535]]|| _0x5b48[110];if(_0x43b0x3&& _0x43b0x4){_0x43b0x2+= 180}else {if(_0x43b0x3^ _0x43b0x4){var _0x43b0x12=_0x43b0x3?_0x43b0x5:0,_0x43b0x13=_0x43b0x3?-1:1,_0x43b0x14=_0x43b0x4?_0x43b0x9:0,_0x43b0x15=_0x43b0x4?-1:1;_0x43b0xa[_0x5b48[535]]+= _0x5b48[536]+ this[_0x5b48[1239]](_0x43b0x12)+ _0x5b48[537]+ this[_0x5b48[1239]](_0x43b0x14)+ _0x5b48[1392]+ this[_0x5b48[1239]](_0x43b0x13)+ _0x5b48[537]+ this[_0x5b48[1239]](_0x43b0x15)+ _0x5b48[1393]+ this[_0x5b48[1239]](-_0x43b0x12)+ _0x5b48[537]+ this[_0x5b48[1239]](-_0x43b0x14)+ _0x5b48[460]}};if(_0x43b0x3?!_0x43b0x4:_0x43b0x4){_0x43b0x2*= -1};0!= _0x43b0x2&& (_0x43b0xa[_0x5b48[535]]+= _0x5b48[1394]+ this[_0x5b48[1239]](_0x43b0x2)+ _0x5b48[537]+ this[_0x5b48[1239]](_0x43b0x5)+ _0x5b48[537]+ this[_0x5b48[1239]](_0x43b0x9)+ _0x5b48[460]);_0x43b0xa[_0x5b48[603]]+= _0x43b0x2;_0x43b0xa[_0x5b48[1395]]= _0x43b0x5;_0x43b0xa[_0x5b48[1396]]= _0x43b0x9}};mxSvgCanvas2D[_0x5b48[202]][_0x5b48[1275]]= function(){mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1275]][_0x5b48[183]](this,arguments);this[_0x5b48[252]]= this[_0x5b48[55]](_0x5b48[1215])};mxSvgCanvas2D[_0x5b48[202]][_0x5b48[1319]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){var _0x43b0x9=this[_0x5b48[724]],_0x43b0xa=this[_0x5b48[55]](_0x5b48[1319]);_0x43b0xa[_0x5b48[57]](_0x5b48[235],this[_0x5b48[1239]]((_0x43b0x2+ _0x43b0x9[_0x5b48[1126]])* _0x43b0x9[_0x5b48[255]]));_0x43b0xa[_0x5b48[57]](_0x5b48[236],this[_0x5b48[1239]]((_0x43b0x3+ _0x43b0x9[_0x5b48[1125]])* _0x43b0x9[_0x5b48[255]]));_0x43b0xa[_0x5b48[57]](_0x5b48[117],this[_0x5b48[1239]](_0x43b0x4* _0x43b0x9[_0x5b48[255]]));_0x43b0xa[_0x5b48[57]](_0x5b48[119],this[_0x5b48[1239]](_0x43b0x5* _0x43b0x9[_0x5b48[255]]));this[_0x5b48[252]]= _0x43b0xa};mxSvgCanvas2D[_0x5b48[202]][_0x5b48[1320]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa){this[_0x5b48[1319]](_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5);0< _0x43b0x9&& this[_0x5b48[252]][_0x5b48[57]](_0x5b48[1397],this[_0x5b48[1239]](_0x43b0x9* this[_0x5b48[724]][_0x5b48[255]]));0< _0x43b0xa&& this[_0x5b48[252]][_0x5b48[57]](_0x5b48[1398],this[_0x5b48[1239]](_0x43b0xa* this[_0x5b48[724]][_0x5b48[255]]))};mxSvgCanvas2D[_0x5b48[202]][_0x5b48[680]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){var _0x43b0x9=this[_0x5b48[724]],_0x43b0xa=this[_0x5b48[55]](_0x5b48[680]);_0x43b0xa[_0x5b48[57]](_0x5b48[1296],Math[_0x5b48[488]]((_0x43b0x2+ _0x43b0x4/ 2+ _0x43b0x9[_0x5b48[1126]])* _0x43b0x9[_0x5b48[255]]));_0x43b0xa[_0x5b48[57]](_0x5b48[1297],Math[_0x5b48[488]]((_0x43b0x3+ _0x43b0x5/ 2+ _0x43b0x9[_0x5b48[1125]])* _0x43b0x9[_0x5b48[255]]));_0x43b0xa[_0x5b48[57]](_0x5b48[1397],_0x43b0x4/ 2* _0x43b0x9[_0x5b48[255]]);_0x43b0xa[_0x5b48[57]](_0x5b48[1398],_0x43b0x5/ 2* _0x43b0x9[_0x5b48[255]]);this[_0x5b48[252]]= _0x43b0xa};mxSvgCanvas2D[_0x5b48[202]][_0x5b48[618]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa,_0x43b0x12,_0x43b0x13){_0x43b0x9= this[_0x5b48[1212]][_0x5b48[1321]](_0x43b0x9);_0x43b0xa= null!= _0x43b0xa?_0x43b0xa:!0;_0x43b0x12= null!= _0x43b0x12?_0x43b0x12:!1;_0x43b0x13= null!= _0x43b0x13?_0x43b0x13:!1;var _0x43b0x14=this[_0x5b48[724]];_0x43b0x2+= _0x43b0x14[_0x5b48[1126]];_0x43b0x3+= _0x43b0x14[_0x5b48[1125]];var _0x43b0x15=this[_0x5b48[55]](_0x5b48[618]);_0x43b0x15[_0x5b48[57]](_0x5b48[235],this[_0x5b48[1239]](_0x43b0x2* _0x43b0x14[_0x5b48[255]]));_0x43b0x15[_0x5b48[57]](_0x5b48[236],this[_0x5b48[1239]](_0x43b0x3* _0x43b0x14[_0x5b48[255]]));_0x43b0x15[_0x5b48[57]](_0x5b48[117],this[_0x5b48[1239]](_0x43b0x4* _0x43b0x14[_0x5b48[255]]));_0x43b0x15[_0x5b48[57]](_0x5b48[119],this[_0x5b48[1239]](_0x43b0x5* _0x43b0x14[_0x5b48[255]]));null== _0x43b0x15[_0x5b48[1399]]?_0x43b0x15[_0x5b48[57]](_0x5b48[1400],_0x43b0x9):_0x43b0x15[_0x5b48[1399]](mxConstants.NS_XLINK,_0x5b48[44],_0x43b0x9);_0x43b0xa|| _0x43b0x15[_0x5b48[57]](_0x5b48[1401],_0x5b48[130]);1> _0x43b0x14[_0x5b48[1244]]&& _0x43b0x15[_0x5b48[57]](_0x5b48[461],_0x43b0x14[_0x5b48[1244]]);_0x43b0x9= this[_0x5b48[724]][_0x5b48[535]]|| _0x5b48[110];if(_0x43b0x12|| _0x43b0x13){var _0x43b0x16=_0x43b0xa= 1,_0x43b0x17=0,_0x43b0x18=0;_0x43b0x12&& (_0x43b0xa= -1,_0x43b0x17= -_0x43b0x4- 2* _0x43b0x2);_0x43b0x13&& (_0x43b0x16= -1,_0x43b0x18= -_0x43b0x5- 2* _0x43b0x3);_0x43b0x9+= _0x5b48[1402]+ _0x43b0xa+ _0x5b48[537]+ _0x43b0x16+ _0x5b48[1393]+ _0x43b0x17+ _0x5b48[537]+ _0x43b0x18+ _0x5b48[460]};0< _0x43b0x9[_0x5b48[67]]&& _0x43b0x15[_0x5b48[57]](_0x5b48[535],_0x43b0x9);this[_0x5b48[813]][_0x5b48[62]](_0x43b0x15);this[_0x5b48[1347]]&& (_0x43b0x15[_0x5b48[57]](_0x5b48[124],_0x5b48[1403]),_0x43b0x15= this[_0x5b48[55]](_0x5b48[1319]),_0x43b0x15[_0x5b48[57]](_0x5b48[187],_0x5b48[188]),_0x43b0x15[_0x5b48[57]](_0x5b48[1377],_0x5b48[1334]),_0x43b0x15[_0x5b48[57]](_0x5b48[235],this[_0x5b48[1239]](_0x43b0x2* _0x43b0x14[_0x5b48[255]])),_0x43b0x15[_0x5b48[57]](_0x5b48[236],this[_0x5b48[1239]](_0x43b0x3* _0x43b0x14[_0x5b48[255]])),_0x43b0x15[_0x5b48[57]](_0x5b48[117],this[_0x5b48[1239]](_0x43b0x4* _0x43b0x14[_0x5b48[255]])),_0x43b0x15[_0x5b48[57]](_0x5b48[119],this[_0x5b48[1239]](_0x43b0x5* _0x43b0x14[_0x5b48[255]])),this[_0x5b48[813]][_0x5b48[62]](_0x43b0x15))};mxSvgCanvas2D[_0x5b48[202]][_0x5b48[1404]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){_0x43b0x4= this[_0x5b48[724]];_0x43b0x5= _0x5b48[1405]+ Math[_0x5b48[488]](_0x43b0x4[_0x5b48[487]])+ _0x5b48[1406]+ _0x43b0x4[_0x5b48[486]]+ _0x5b48[1407]+ _0x43b0x4[_0x5b48[665]]+ _0x5b48[1408]+ Math[_0x5b48[488]](_0x43b0x4[_0x5b48[487]]* mxConstants[_0x5b48[490]])+ _0x5b48[1409]+ _0x43b0x5;(_0x43b0x4[_0x5b48[666]]& mxConstants[_0x5b48[1410]])== mxConstants[_0x5b48[1410]]&& (_0x43b0x5+= _0x5b48[1411]);(_0x43b0x4[_0x5b48[666]]& mxConstants[_0x5b48[1412]])== mxConstants[_0x5b48[1412]]&& (_0x43b0x5+= _0x5b48[1413]);(_0x43b0x4[_0x5b48[666]]& mxConstants[_0x5b48[1414]])== mxConstants[_0x5b48[1414]]&& (_0x43b0x5+= _0x5b48[1415]);_0x43b0x3== mxConstants[_0x5b48[479]]?_0x43b0x5+= _0x5b48[1416]:_0x43b0x3== mxConstants[_0x5b48[480]]&& (_0x43b0x5+= _0x5b48[1417]);_0x43b0x3= _0x5b48[110];null!= _0x43b0x4[_0x5b48[1261]]&& (_0x43b0x3+= _0x5b48[1418]+ _0x43b0x4[_0x5b48[1261]]+ _0x5b48[471]);null!= _0x43b0x4[_0x5b48[1263]]&& (_0x43b0x3+= _0x5b48[1419]+ _0x43b0x4[_0x5b48[1263]]+ _0x5b48[471]);mxUtils[_0x5b48[1331]](_0x43b0x2)|| (_0x43b0x4= document[_0x5b48[55]](_0x5b48[126]),_0x43b0x4[_0x5b48[339]]= _0x43b0x2[_0x5b48[230]](/</g,_0x5b48[1421])[_0x5b48[230]](/>/g,_0x5b48[1420])[_0x5b48[230]](/</g,_0x5b48[334])[_0x5b48[230]](/>/g,_0x5b48[335]),_0x43b0x2= _0x43b0x4[_0x5b48[131]],_0x43b0x9?_0x43b0x5+= _0x43b0x3:0< _0x43b0x3[_0x5b48[67]]&& (_0x43b0x2= _0x5b48[1422]+ _0x43b0x3+ _0x5b48[1423]+ _0x43b0x2+ _0x5b48[1424]));if(!mxClient[_0x5b48[80]]&& document[_0x5b48[509]]){return _0x43b0x9= document[_0x5b48[509]](_0x5b48[577],_0x5b48[485]),_0x43b0x9[_0x5b48[57]](_0x5b48[124],_0x43b0x5),mxUtils[_0x5b48[1331]](_0x43b0x2)?this[_0x5b48[813]][_0x5b48[295]]!= document?_0x43b0x9[_0x5b48[62]](_0x43b0x2[_0x5b48[511]](!0)):_0x43b0x9[_0x5b48[62]](_0x43b0x2):_0x43b0x9[_0x5b48[339]]= _0x43b0x2,_0x43b0x9};mxUtils[_0x5b48[1331]](_0x43b0x2)&& this[_0x5b48[813]][_0x5b48[295]]!= document&& (_0x43b0x2= _0x43b0x2[_0x5b48[342]]);_0x43b0x2= _0x43b0x2[_0x5b48[230]](/<br>/g,_0x5b48[1426])[_0x5b48[230]](/<hr>/g,_0x5b48[1425]);return mxUtils[_0x5b48[877]](_0x5b48[1427]+ _0x43b0x5+ _0x5b48[1423]+ _0x43b0x2+ _0x5b48[1424])[_0x5b48[158]]};mxSvgCanvas2D[_0x5b48[202]][_0x5b48[963]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa,_0x43b0x12,_0x43b0x13,_0x43b0x14,_0x43b0x15,_0x43b0x16,_0x43b0x17){if(this[_0x5b48[1285]]&& null!= _0x43b0x9){_0x43b0x17= null!= _0x43b0x17?_0x43b0x17:0;var _0x43b0x18=this[_0x5b48[724]];_0x43b0x2+= _0x43b0x18[_0x5b48[1126]];_0x43b0x3+= _0x43b0x18[_0x5b48[1125]];if(this[_0x5b48[1344]]&& _0x5b48[1428]== _0x43b0x14){var _0x43b0x19=_0x5b48[1429];_0x43b0x16?(_0x43b0x19+= _0x5b48[1430],0< _0x43b0x5&& (_0x43b0x19+= _0x5b48[1431]+ Math[_0x5b48[488]](_0x43b0x5)+ _0x5b48[1409]),0< _0x43b0x4&& (_0x43b0x19+= _0x5b48[1432]+ Math[_0x5b48[488]](_0x43b0x4)+ _0x5b48[1409])):_0x43b0x15&& (_0x43b0x19+= _0x5b48[1432]+ Math[_0x5b48[488]](_0x43b0x4)+ _0x5b48[1409],0< _0x43b0x5&& (_0x43b0x19+= _0x5b48[1431]+ Math[_0x5b48[488]](_0x43b0x5)+ _0x5b48[1409]));_0x43b0x13?(!_0x43b0x16&& 0< _0x43b0x4 && (_0x43b0x19+= _0x5b48[1432]+ Math[_0x5b48[488]](_0x43b0x4)+ _0x5b48[1409]),_0x43b0x19+= _0x5b48[1433]):_0x43b0x19+= _0x5b48[1434];_0x43b0x13= this[_0x5b48[55]](_0x5b48[449]);1> _0x43b0x18[_0x5b48[1244]]&& _0x43b0x13[_0x5b48[57]](_0x5b48[461],_0x43b0x18[_0x5b48[1244]]);_0x43b0x14= this[_0x5b48[55]](_0x5b48[1435]);_0x43b0x14[_0x5b48[57]](_0x5b48[1377],_0x5b48[1378]);_0x43b0x19= this[_0x5b48[1404]](_0x43b0x9,_0x43b0xa,_0x43b0x12,_0x43b0x19,_0x43b0x15);if(null!= _0x43b0x19){_0x43b0x13[_0x5b48[62]](_0x43b0x14);this[_0x5b48[813]][_0x5b48[62]](_0x43b0x13);var _0x43b0x1a=0;if(mxClient[_0x5b48[80]]&& !mxClient[_0x5b48[48]]){var _0x43b0x1b=document[_0x5b48[55]](_0x5b48[485]);_0x43b0x1b[_0x5b48[124]][_0x5b48[103]]= _0x43b0x19[_0x5b48[284]](_0x5b48[124]);_0x43b0x1b[_0x5b48[124]][_0x5b48[495]]= mxClient[_0x5b48[496]]?_0x5b48[497]:_0x5b48[498];_0x43b0x1b[_0x5b48[124]][_0x5b48[187]]= _0x5b48[188];_0x43b0x1b[_0x5b48[339]]= mxUtils[_0x5b48[1331]](_0x43b0x9)?_0x43b0x9[_0x5b48[342]]:_0x43b0x9;document[_0x5b48[112]][_0x5b48[62]](_0x43b0x1b);_0x43b0x1a= _0x43b0x1b[_0x5b48[359]];_0x43b0x5= mxClient[_0x5b48[496]]&& 0< _0x43b0x5&& _0x43b0x16?Math[_0x5b48[243]](_0x43b0x5,_0x43b0x1b[_0x5b48[167]]+ 2):_0x43b0x1b[_0x5b48[167]];_0x43b0x1b[_0x5b48[265]][_0x5b48[266]](_0x43b0x1b);_0x43b0x14[_0x5b48[62]](_0x43b0x19)}else {this[_0x5b48[813]][_0x5b48[295]]!= document?(_0x43b0x19[_0x5b48[124]][_0x5b48[187]]= _0x5b48[188],document[_0x5b48[112]][_0x5b48[62]](_0x43b0x19),_0x43b0x1a= _0x43b0x19[_0x5b48[359]],_0x43b0x5= _0x43b0x19[_0x5b48[167]],_0x43b0x14[_0x5b48[62]](_0x43b0x19),_0x43b0x19[_0x5b48[124]][_0x5b48[187]]= _0x5b48[110]):(_0x43b0x14[_0x5b48[62]](_0x43b0x19),_0x43b0x1a= _0x43b0x19[_0x5b48[359]],_0x43b0x5= _0x43b0x19[_0x5b48[167]])};_0x43b0x4= _0x43b0x15?Math[_0x5b48[160]](_0x43b0x4,_0x43b0x1a):_0x43b0x1a;1> _0x43b0x18[_0x5b48[1244]]&& _0x43b0x13[_0x5b48[57]](_0x5b48[461],_0x43b0x18[_0x5b48[1244]]);_0x43b0x15= _0x43b0x9= 0;_0x43b0xa== mxConstants[_0x5b48[479]]?_0x43b0x9-= _0x43b0x4/ 2:_0x43b0xa== mxConstants[_0x5b48[480]]&& (_0x43b0x9-= _0x43b0x4);_0x43b0x2+= _0x43b0x9;_0x43b0x12== mxConstants[_0x5b48[481]]?_0x43b0x15-= _0x43b0x5/ 2:_0x43b0x12== mxConstants[_0x5b48[482]]&& (_0x43b0x15-= _0x43b0x5);_0x43b0x3+= _0x43b0x15;_0x43b0xa= 1!= _0x43b0x18[_0x5b48[255]]?_0x5b48[1402]+ _0x43b0x18[_0x5b48[255]]+ _0x5b48[460]:_0x5b48[110];0!= _0x43b0x18[_0x5b48[603]]&& this[_0x5b48[1216]]?(_0x43b0xa+= _0x5b48[1394]+ _0x43b0x18[_0x5b48[603]]+ _0x5b48[537]+ _0x43b0x4/ 2+ _0x5b48[537]+ _0x43b0x5/ 2+ _0x5b48[460],_0x43b0x3= this[_0x5b48[1241]]((_0x43b0x2+ _0x43b0x4/ 2)* _0x43b0x18[_0x5b48[255]],(_0x43b0x3+ _0x43b0x5/ 2)* _0x43b0x18[_0x5b48[255]],_0x43b0x18[_0x5b48[603]],_0x43b0x18[_0x5b48[1395]],_0x43b0x18[_0x5b48[1396]]),_0x43b0x2= _0x43b0x3[_0x5b48[235]]- _0x43b0x4* _0x43b0x18[_0x5b48[255]]/ 2,_0x43b0x3= _0x43b0x3[_0x5b48[236]]- _0x43b0x5* _0x43b0x18[_0x5b48[255]]/ 2):(_0x43b0x2*= _0x43b0x18[_0x5b48[255]],_0x43b0x3*= _0x43b0x18[_0x5b48[255]]);0!= _0x43b0x17&& (_0x43b0xa+= _0x5b48[1394]+ _0x43b0x17+ _0x5b48[537]+ -_0x43b0x9+ _0x5b48[537]+ -_0x43b0x15+ _0x5b48[460]);_0x43b0x13[_0x5b48[57]](_0x5b48[535],_0x5b48[536]+ Math[_0x5b48[488]](_0x43b0x2)+ _0x5b48[537]+ Math[_0x5b48[488]](_0x43b0x3)+ _0x5b48[460]+ _0x43b0xa);_0x43b0x14[_0x5b48[57]](_0x5b48[117],Math[_0x5b48[488]](Math[_0x5b48[160]](1,_0x43b0x4)));_0x43b0x14[_0x5b48[57]](_0x5b48[119],Math[_0x5b48[488]](Math[_0x5b48[160]](1,_0x43b0x5)))}}else {this[_0x5b48[1436]](_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa,_0x43b0x12,_0x43b0x13,_0x43b0x15,_0x43b0x16,_0x43b0x17)}}};mxSvgCanvas2D[_0x5b48[202]][_0x5b48[1437]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){_0x43b0x2= Math[_0x5b48[488]](_0x43b0x2);_0x43b0x3= Math[_0x5b48[488]](_0x43b0x3);_0x43b0x4= Math[_0x5b48[488]](_0x43b0x4);_0x43b0x5= Math[_0x5b48[488]](_0x43b0x5);for(var _0x43b0x9=_0x5b48[1438]+ _0x43b0x2+ _0x5b48[213]+ _0x43b0x3+ _0x5b48[213]+ _0x43b0x4+ _0x5b48[213]+ _0x43b0x5,_0x43b0xa=0,_0x43b0x12=_0x43b0x9+ _0x5b48[213]+ _0x43b0xa;null!= document[_0x5b48[1362]](_0x43b0x12);){_0x43b0x12= _0x43b0x9+ _0x5b48[213]+ ++_0x43b0xa};clip= this[_0x5b48[55]](_0x5b48[1439]);clip[_0x5b48[57]](_0x5b48[1363],_0x43b0x12);_0x43b0x9= this[_0x5b48[55]](_0x5b48[1319]);_0x43b0x9[_0x5b48[57]](_0x5b48[235],_0x43b0x2);_0x43b0x9[_0x5b48[57]](_0x5b48[236],_0x43b0x3);_0x43b0x9[_0x5b48[57]](_0x5b48[117],_0x43b0x4);_0x43b0x9[_0x5b48[57]](_0x5b48[119],_0x43b0x5);clip[_0x5b48[62]](_0x43b0x9);return clip};mxSvgCanvas2D[_0x5b48[202]][_0x5b48[1436]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa,_0x43b0x12,_0x43b0x13,_0x43b0x14,_0x43b0x15,_0x43b0x16){_0x43b0x16= null!= _0x43b0x16?_0x43b0x16:0;_0x43b0x13= this[_0x5b48[724]];var _0x43b0x17=Math[_0x5b48[488]](_0x43b0x13[_0x5b48[487]]),_0x43b0x18=this[_0x5b48[55]](_0x5b48[449]),_0x43b0x19=_0x43b0x13[_0x5b48[535]]|| _0x5b48[110];0!= _0x43b0x16&& (_0x43b0x19+= _0x5b48[1394]+ _0x43b0x16+ _0x5b48[537]+ this[_0x5b48[1239]](_0x43b0x2* _0x43b0x13[_0x5b48[255]])+ _0x5b48[537]+ this[_0x5b48[1239]](_0x43b0x3* _0x43b0x13[_0x5b48[255]])+ _0x5b48[460]);if(_0x43b0x15&& 0< _0x43b0x4&& 0< _0x43b0x5){var _0x43b0x1a=_0x43b0x2;_0x43b0x16= _0x43b0x3;_0x43b0xa== mxConstants[_0x5b48[479]]?_0x43b0x1a-= _0x43b0x4/ 2:_0x43b0xa== mxConstants[_0x5b48[480]]&& (_0x43b0x1a-= _0x43b0x4);_0x43b0x12== mxConstants[_0x5b48[481]]?_0x43b0x16-= _0x43b0x5/ 2:_0x43b0x12== mxConstants[_0x5b48[482]]&& (_0x43b0x16-= _0x43b0x5);_0x43b0x16= this[_0x5b48[1437]](_0x43b0x1a* _0x43b0x13[_0x5b48[255]]- 2,_0x43b0x16* _0x43b0x13[_0x5b48[255]]- 2,_0x43b0x4* _0x43b0x13[_0x5b48[255]]+ 4,_0x43b0x5* _0x43b0x13[_0x5b48[255]]+ 4);null!= this[_0x5b48[1340]]?this[_0x5b48[1340]][_0x5b48[62]](_0x43b0x16):this[_0x5b48[813]][_0x5b48[62]](_0x43b0x16);_0x43b0x18[_0x5b48[57]](_0x5b48[1440],_0x5b48[1380]+ _0x43b0x16[_0x5b48[284]](_0x5b48[1363])+ _0x5b48[460])};this[_0x5b48[1441]](_0x43b0x18,_0x43b0xa);_0x43b0x16= _0x43b0xa== mxConstants[_0x5b48[480]]?_0x5b48[1282]:_0x43b0xa== mxConstants[_0x5b48[479]]?_0x5b48[554]:_0x5b48[861];_0x5b48[861]!= _0x43b0x16&& _0x43b0x18[_0x5b48[57]](_0x5b48[1442],_0x43b0x16);(!this[_0x5b48[1341]]|| _0x43b0x17!= mxConstants[_0x5b48[483]]) && _0x43b0x18[_0x5b48[57]](_0x5b48[1443],Math[_0x5b48[488]](_0x43b0x17* _0x43b0x13[_0x5b48[255]])+ _0x5b48[168]);0< _0x43b0x19[_0x5b48[67]]&& _0x43b0x18[_0x5b48[57]](_0x5b48[535],_0x43b0x19);1> _0x43b0x13[_0x5b48[1244]]&& _0x43b0x18[_0x5b48[57]](_0x5b48[461],_0x43b0x13[_0x5b48[1244]]);var _0x43b0x19=_0x43b0x9[_0x5b48[224]](_0x5b48[192]),_0x43b0x1a=Math[_0x5b48[488]](_0x43b0x17* mxConstants[_0x5b48[490]]),_0x43b0x1b=_0x43b0x17+ (_0x43b0x19[_0x5b48[67]]- 1)* _0x43b0x1a;_0x43b0x16= _0x43b0x3+ _0x43b0x17- 1;_0x43b0x12== mxConstants[_0x5b48[481]]?(_0x43b0x5= (this[_0x5b48[1343]]&& _0x43b0x15&& 0< _0x43b0x5?Math[_0x5b48[243]](_0x43b0x1b,_0x43b0x5):_0x43b0x1b)/ 2,_0x43b0x16-= _0x43b0x5+ 1):_0x43b0x12== mxConstants[_0x5b48[482]]&& (_0x43b0x5= this[_0x5b48[1343]]&& _0x43b0x15&& 0< _0x43b0x5?Math[_0x5b48[243]](_0x43b0x1b,_0x43b0x5):_0x43b0x1b,_0x43b0x16-= _0x43b0x5+ 2);for(_0x43b0x5= 0;_0x43b0x5< _0x43b0x19[_0x5b48[67]];_0x43b0x5++){0< _0x43b0x19[_0x43b0x5][_0x5b48[67]]&& 0< mxUtils[_0x5b48[330]](_0x43b0x19[_0x43b0x5])[_0x5b48[67]]&& (_0x43b0x15= this[_0x5b48[55]](_0x5b48[963]),_0x43b0x15[_0x5b48[57]](_0x5b48[235],this[_0x5b48[1239]](_0x43b0x2* _0x43b0x13[_0x5b48[255]])),_0x43b0x15[_0x5b48[57]](_0x5b48[236],this[_0x5b48[1239]](_0x43b0x16* _0x43b0x13[_0x5b48[255]])),mxUtils[_0x5b48[53]](_0x43b0x15,_0x43b0x19[_0x43b0x5]),_0x43b0x18[_0x5b48[62]](_0x43b0x15)),_0x43b0x16+= _0x43b0x1a};this[_0x5b48[813]][_0x5b48[62]](_0x43b0x18);this[_0x5b48[1444]](_0x43b0x18,_0x43b0x9,_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x1b,_0x43b0xa,_0x43b0x12,_0x43b0x14)};mxSvgCanvas2D[_0x5b48[202]][_0x5b48[1441]]= function(_0x43b0x2){var _0x43b0x3=this[_0x5b48[724]];_0x43b0x2[_0x5b48[57]](_0x5b48[1334],_0x43b0x3[_0x5b48[665]]);(!this[_0x5b48[1341]]|| _0x43b0x3[_0x5b48[486]]!= mxConstants[_0x5b48[484]]) && _0x43b0x2[_0x5b48[57]](_0x5b48[1445],_0x43b0x3[_0x5b48[486]]);(_0x43b0x3[_0x5b48[666]]& mxConstants[_0x5b48[1410]])== mxConstants[_0x5b48[1410]]&& _0x43b0x2[_0x5b48[57]](_0x5b48[1446],_0x5b48[1447]);(_0x43b0x3[_0x5b48[666]]& mxConstants[_0x5b48[1412]])== mxConstants[_0x5b48[1412]]&& _0x43b0x2[_0x5b48[57]](_0x5b48[1448],_0x5b48[1449]);(_0x43b0x3[_0x5b48[666]]& mxConstants[_0x5b48[1414]])== mxConstants[_0x5b48[1414]]&& _0x43b0x2[_0x5b48[57]](_0x5b48[1450],_0x5b48[355])};mxSvgCanvas2D[_0x5b48[202]][_0x5b48[1444]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa,_0x43b0x12,_0x43b0x13,_0x43b0x14){var _0x43b0x15=this[_0x5b48[724]];if(null!= _0x43b0x15[_0x5b48[1261]]|| null!= _0x43b0x15[_0x5b48[1263]]){var _0x43b0x16=null;_0x43b0x14?(_0x43b0x12== mxConstants[_0x5b48[479]]?_0x43b0x4-= _0x43b0x9/ 2:_0x43b0x12== mxConstants[_0x5b48[480]]&& (_0x43b0x4-= _0x43b0x9),_0x43b0x13== mxConstants[_0x5b48[481]]?_0x43b0x5-= _0x43b0xa/ 2:_0x43b0x13== mxConstants[_0x5b48[482]]&& (_0x43b0x5-= _0x43b0xa),_0x43b0x16= new mxRectangle((_0x43b0x4+ 1)* _0x43b0x15[_0x5b48[255]],_0x43b0x5* _0x43b0x15[_0x5b48[255]],(_0x43b0x9- 2)* _0x43b0x15[_0x5b48[255]],(_0x43b0xa+ 2)* _0x43b0x15[_0x5b48[255]])):null!= _0x43b0x2[_0x5b48[1451]]&& this[_0x5b48[813]][_0x5b48[295]]== document?(_0x43b0x16= _0x43b0x2[_0x5b48[1451]](),_0x43b0x3= mxClient[_0x5b48[80]]&& mxClient[_0x5b48[48]],_0x43b0x16= new mxRectangle(_0x43b0x16[_0x5b48[235]],_0x43b0x16[_0x5b48[236]]+ (_0x43b0x3?0:1),_0x43b0x16[_0x5b48[117]],_0x43b0x16[_0x5b48[119]]+ (_0x43b0x3?1:0))):(_0x43b0x16= document[_0x5b48[55]](_0x5b48[485]),_0x43b0x16[_0x5b48[124]][_0x5b48[489]]= Math[_0x5b48[488]](_0x43b0x15[_0x5b48[487]]* mxConstants[_0x5b48[490]])+ _0x5b48[168],_0x43b0x16[_0x5b48[124]][_0x5b48[487]]= Math[_0x5b48[488]](_0x43b0x15[_0x5b48[487]])+ _0x5b48[168],_0x43b0x16[_0x5b48[124]][_0x5b48[486]]= _0x43b0x15[_0x5b48[486]],_0x43b0x16[_0x5b48[124]][_0x5b48[493]]= _0x5b48[494],_0x43b0x16[_0x5b48[124]][_0x5b48[491]]= _0x5b48[492],_0x43b0x16[_0x5b48[124]][_0x5b48[187]]= _0x5b48[188],_0x43b0x16[_0x5b48[124]][_0x5b48[495]]= mxClient[_0x5b48[496]]?_0x5b48[497]:_0x5b48[498],_0x43b0x16[_0x5b48[124]][_0x5b48[499]]= _0x5b48[500],(_0x43b0x15[_0x5b48[666]]& mxConstants[_0x5b48[1410]])== mxConstants[_0x5b48[1410]]&& (_0x43b0x16[_0x5b48[124]][_0x5b48[1452]]= _0x5b48[1447]),(_0x43b0x15[_0x5b48[666]]& mxConstants[_0x5b48[1412]])== mxConstants[_0x5b48[1412]]&& (_0x43b0x16[_0x5b48[124]][_0x5b48[666]]= _0x5b48[1449]),_0x43b0x3= mxUtils[_0x5b48[321]](_0x43b0x3,!1),_0x43b0x16[_0x5b48[339]]= _0x43b0x3[_0x5b48[230]](/\n/g,_0x5b48[1453]),document[_0x5b48[112]][_0x5b48[62]](_0x43b0x16),_0x43b0x9= _0x43b0x16[_0x5b48[359]],_0x43b0xa= _0x43b0x16[_0x5b48[167]],_0x43b0x16[_0x5b48[265]][_0x5b48[266]](_0x43b0x16),_0x43b0x12== mxConstants[_0x5b48[479]]?_0x43b0x4-= _0x43b0x9/ 2:_0x43b0x12== mxConstants[_0x5b48[480]]&& (_0x43b0x4-= _0x43b0x9),_0x43b0x13== mxConstants[_0x5b48[481]]?_0x43b0x5-= _0x43b0xa/ 2:_0x43b0x13== mxConstants[_0x5b48[482]]&& (_0x43b0x5-= _0x43b0xa),_0x43b0x16= new mxRectangle((_0x43b0x4+ 1)* _0x43b0x15[_0x5b48[255]],(_0x43b0x5+ 2)* _0x43b0x15[_0x5b48[255]],_0x43b0x9* _0x43b0x15[_0x5b48[255]],(_0x43b0xa+ 1)* _0x43b0x15[_0x5b48[255]]));null!= _0x43b0x16&& (_0x43b0x3= this[_0x5b48[55]](_0x5b48[1319]),_0x43b0x3[_0x5b48[57]](_0x5b48[1334],_0x43b0x15[_0x5b48[1261]]|| _0x5b48[130]),_0x43b0x3[_0x5b48[57]](_0x5b48[1336],_0x43b0x15[_0x5b48[1263]]|| _0x5b48[130]),_0x43b0x3[_0x5b48[57]](_0x5b48[235],Math[_0x5b48[519]](_0x43b0x16[_0x5b48[235]]- 1)),_0x43b0x3[_0x5b48[57]](_0x5b48[236],Math[_0x5b48[519]](_0x43b0x16[_0x5b48[236]]- 1)),_0x43b0x3[_0x5b48[57]](_0x5b48[117],Math[_0x5b48[430]](_0x43b0x16[_0x5b48[117]]+ 2)),_0x43b0x3[_0x5b48[57]](_0x5b48[119],Math[_0x5b48[430]](_0x43b0x16[_0x5b48[119]])),_0x43b0x15= null!= _0x43b0x15[_0x5b48[1263]]?Math[_0x5b48[160]](1,this[_0x5b48[1239]](_0x43b0x15[_0x5b48[255]])):0,_0x43b0x3[_0x5b48[57]](_0x5b48[1382],_0x43b0x15),this[_0x5b48[813]][_0x5b48[295]]== document&& 1== mxUtils[_0x5b48[1454]](_0x43b0x15,2)&& _0x43b0x3[_0x5b48[57]](_0x5b48[535],_0x5b48[1455]),_0x43b0x2[_0x5b48[950]](_0x43b0x3,_0x43b0x2[_0x5b48[285]]))}};mxSvgCanvas2D[_0x5b48[202]][_0x5b48[1336]]= function(){this[_0x5b48[1370]](!1,!0)};mxSvgCanvas2D[_0x5b48[202]][_0x5b48[1334]]= function(){this[_0x5b48[1370]](!0,!1)};mxSvgCanvas2D[_0x5b48[202]][_0x5b48[1337]]= function(){this[_0x5b48[1370]](!0,!0)};var mxVmlCanvas2D=function(_0x43b0x2){mxAbstractCanvas2D[_0x5b48[239]](this);this[_0x5b48[813]]= _0x43b0x2};mxUtils[_0x5b48[1284]](mxVmlCanvas2D,mxAbstractCanvas2D);mxVmlCanvas2D[_0x5b48[202]][_0x5b48[252]]= null;mxVmlCanvas2D[_0x5b48[202]][_0x5b48[1285]]= !0;mxVmlCanvas2D[_0x5b48[202]][_0x5b48[1219]]= _0x5b48[1456];mxVmlCanvas2D[_0x5b48[202]][_0x5b48[1221]]= _0x5b48[1457];mxVmlCanvas2D[_0x5b48[202]][_0x5b48[1225]]= _0x5b48[1458];mxVmlCanvas2D[_0x5b48[202]][_0x5b48[1227]]= _0x5b48[235];mxVmlCanvas2D[_0x5b48[202]][_0x5b48[1459]]= _0x5b48[110];mxVmlCanvas2D[_0x5b48[202]][_0x5b48[1460]]= 1;mxVmlCanvas2D[_0x5b48[202]][_0x5b48[1370]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=this[_0x5b48[252]],_0x43b0x5=this[_0x5b48[724]];if(null!= _0x43b0x4){if(_0x5b48[253]== _0x43b0x4[_0x5b48[301]]){if(null!= this[_0x5b48[1215]]&& 0< this[_0x5b48[1215]][_0x5b48[67]]){_0x43b0x4[_0x5b48[1215]]= this[_0x5b48[1215]][_0x5b48[234]](_0x5b48[185])+ _0x5b48[1461],_0x43b0x4[_0x5b48[124]][_0x5b48[117]]= this[_0x5b48[813]][_0x5b48[124]][_0x5b48[117]],_0x43b0x4[_0x5b48[124]][_0x5b48[119]]= this[_0x5b48[813]][_0x5b48[124]][_0x5b48[119]],_0x43b0x4[_0x5b48[1462]]= parseInt(_0x43b0x4[_0x5b48[124]][_0x5b48[117]])+ _0x5b48[185]+ parseInt(_0x43b0x4[_0x5b48[124]][_0x5b48[119]])}else {return}};_0x43b0x4[_0x5b48[1463]]= this[_0x5b48[1239]](Math[_0x5b48[160]](1,_0x43b0x5[_0x5b48[610]]* _0x43b0x5[_0x5b48[255]]/ this[_0x5b48[1460]]))+ _0x5b48[168];_0x43b0x5[_0x5b48[639]]&& this[_0x5b48[813]][_0x5b48[62]](this[_0x5b48[1375]](_0x43b0x4,_0x43b0x2&& null!= _0x43b0x5[_0x5b48[604]],_0x43b0x3&& null!= _0x43b0x5[_0x5b48[608]]));_0x43b0x3&& null!= _0x43b0x5[_0x5b48[608]]?(_0x43b0x4[_0x5b48[1464]]= _0x5b48[128],_0x43b0x4[_0x5b48[1306]]= _0x43b0x5[_0x5b48[608]]):_0x43b0x4[_0x5b48[1464]]= _0x5b48[308];_0x43b0x4[_0x5b48[62]](this[_0x5b48[1465]]());_0x43b0x2&& null!= _0x43b0x5[_0x5b48[604]]?_0x43b0x4[_0x5b48[62]](this[_0x5b48[1466]]()):this[_0x5b48[1229]]&& (_0x5b48[253]!= _0x43b0x4[_0x5b48[301]]|| this[_0x5b48[1215]][this[_0x5b48[1215]][_0x5b48[67]]- 1]== this[_0x5b48[1227]])?_0x43b0x4[_0x5b48[62]](this[_0x5b48[1467]]()):_0x43b0x4[_0x5b48[1468]]= _0x5b48[308];this[_0x5b48[813]][_0x5b48[62]](_0x43b0x4)}};mxVmlCanvas2D[_0x5b48[202]][_0x5b48[1467]]= function(){var _0x43b0x2=document[_0x5b48[55]](mxClient[_0x5b48[463]]+ _0x5b48[1469]);_0x43b0x2[_0x5b48[390]]= mxClient[_0x5b48[88]]+ _0x5b48[1470];_0x43b0x2[_0x5b48[60]]= _0x5b48[1471];return _0x43b0x2};mxVmlCanvas2D[_0x5b48[202]][_0x5b48[1466]]= function(){var _0x43b0x2=this[_0x5b48[724]],_0x43b0x3=document[_0x5b48[55]](mxClient[_0x5b48[463]]+ _0x5b48[1469]);_0x43b0x3[_0x5b48[352]]= _0x43b0x2[_0x5b48[604]];if(null!= _0x43b0x2[_0x5b48[606]]){_0x43b0x3[_0x5b48[60]]= _0x5b48[1299];_0x43b0x3[_0x5b48[865]]= _0x5b48[130];_0x43b0x3[_0x5b48[1472]]= _0x43b0x2[_0x5b48[606]];var _0x43b0x4=180- _0x43b0x2[_0x5b48[603]],_0x43b0x4=_0x43b0x2[_0x5b48[607]]== mxConstants[_0x5b48[1359]]?_0x43b0x4- (90+ (_0x5b48[235]== this[_0x5b48[813]][_0x5b48[124]][_0x5b48[1473]]?180:0)):_0x43b0x2[_0x5b48[607]]== mxConstants[_0x5b48[1356]]?_0x43b0x4+ (90+ (_0x5b48[235]== this[_0x5b48[813]][_0x5b48[124]][_0x5b48[1473]]?180:0)):_0x43b0x2[_0x5b48[607]]== mxConstants[_0x5b48[1358]]?_0x43b0x4- (180+ (_0x5b48[236]== this[_0x5b48[813]][_0x5b48[124]][_0x5b48[1473]]?-180:0)):_0x43b0x4+ (_0x5b48[236]== this[_0x5b48[813]][_0x5b48[124]][_0x5b48[1473]]?-180:0);if(_0x5b48[235]== this[_0x5b48[813]][_0x5b48[124]][_0x5b48[1473]]|| _0x5b48[236]== this[_0x5b48[813]][_0x5b48[124]][_0x5b48[1473]]){_0x43b0x4*= -1};_0x43b0x3[_0x5b48[1474]]= mxUtils[_0x5b48[1454]](_0x43b0x4,360);_0x43b0x3[_0x5b48[461]]= 100* _0x43b0x2[_0x5b48[1244]]* _0x43b0x2[_0x5b48[1247]]+ _0x5b48[229];_0x43b0x3[_0x5b48[57]](mxClient[_0x5b48[1475]]+ _0x5b48[1476],100* _0x43b0x2[_0x5b48[1244]]* _0x43b0x2[_0x5b48[1248]]+ _0x5b48[229])}else {1> _0x43b0x2[_0x5b48[1244]]&& (_0x43b0x3[_0x5b48[461]]= 100* _0x43b0x2[_0x5b48[1244]]+ _0x5b48[229])};return _0x43b0x3};mxVmlCanvas2D[_0x5b48[202]][_0x5b48[1465]]= function(){var _0x43b0x2=this[_0x5b48[724]],_0x43b0x3=document[_0x5b48[55]](mxClient[_0x5b48[463]]+ _0x5b48[1477]);_0x43b0x3[_0x5b48[1478]]= _0x43b0x2[_0x5b48[1254]]|| _0x5b48[1232];_0x43b0x3[_0x5b48[1479]]= _0x43b0x2[_0x5b48[1256]]|| _0x5b48[1233];_0x43b0x3[_0x5b48[1313]]= _0x43b0x2[_0x5b48[1258]]|| _0x5b48[1480];1> _0x43b0x2[_0x5b48[1244]]&& (_0x43b0x3[_0x5b48[461]]= 100* _0x43b0x2[_0x5b48[1244]]+ _0x5b48[229]);_0x43b0x2[_0x5b48[648]]&& (_0x43b0x3[_0x5b48[1481]]= this[_0x5b48[1482]]());return _0x43b0x3};mxVmlCanvas2D[_0x5b48[202]][_0x5b48[1482]]= function(){var _0x43b0x2=_0x5b48[1483];if(null!= this[_0x5b48[724]][_0x5b48[649]]){var _0x43b0x3=this[_0x5b48[724]][_0x5b48[649]][_0x5b48[224]](_0x5b48[185]);0< _0x43b0x3[_0x5b48[67]]&& 1== _0x43b0x3[0]&& (_0x43b0x2= _0x5b48[1484])};return _0x43b0x2};mxVmlCanvas2D[_0x5b48[202]][_0x5b48[1375]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){var _0x43b0x5=this[_0x5b48[724]],_0x43b0x9=-_0x43b0x5[_0x5b48[603]]* (Math[_0x5b48[424]]/ 180),_0x43b0xa=Math[_0x5b48[426]](_0x43b0x9),_0x43b0x9=Math[_0x5b48[427]](_0x43b0x9),_0x43b0x12=_0x43b0x5[_0x5b48[1273]]* _0x43b0x5[_0x5b48[255]],_0x43b0x13=_0x43b0x5[_0x5b48[1274]]* _0x43b0x5[_0x5b48[255]];_0x5b48[235]== this[_0x5b48[813]][_0x5b48[124]][_0x5b48[1473]]?_0x43b0x12*= -1:_0x5b48[236]== this[_0x5b48[813]][_0x5b48[124]][_0x5b48[1473]]&& (_0x43b0x13*= -1);var _0x43b0x14=_0x43b0x2[_0x5b48[511]](!0);_0x43b0x14[_0x5b48[124]][_0x5b48[945]]= Math[_0x5b48[488]](_0x43b0x12* _0x43b0xa- _0x43b0x13* _0x43b0x9)+ _0x5b48[168];_0x43b0x14[_0x5b48[124]][_0x5b48[953]]= Math[_0x5b48[488]](_0x43b0x12* _0x43b0x9+ _0x43b0x13* _0x43b0xa)+ _0x5b48[168];8== document[_0x5b48[5]]&& (_0x43b0x14[_0x5b48[1463]]= _0x43b0x2[_0x5b48[1463]],_0x5b48[253]== _0x43b0x2[_0x5b48[301]]&& (_0x43b0x14[_0x5b48[1215]]= this[_0x5b48[1215]][_0x5b48[234]](_0x5b48[185])+ _0x5b48[1461],_0x43b0x14[_0x5b48[124]][_0x5b48[117]]= this[_0x5b48[813]][_0x5b48[124]][_0x5b48[117]],_0x43b0x14[_0x5b48[124]][_0x5b48[119]]= this[_0x5b48[813]][_0x5b48[124]][_0x5b48[119]],_0x43b0x14[_0x5b48[1462]]= parseInt(_0x43b0x2[_0x5b48[124]][_0x5b48[117]])+ _0x5b48[185]+ parseInt(_0x43b0x2[_0x5b48[124]][_0x5b48[119]])));_0x43b0x4?(_0x43b0x14[_0x5b48[1306]]= _0x43b0x5[_0x5b48[1269]],_0x43b0x14[_0x5b48[62]](this[_0x5b48[1485]]())):_0x43b0x14[_0x5b48[1464]]= _0x5b48[308];_0x43b0x3?_0x43b0x14[_0x5b48[62]](this[_0x5b48[1486]]()):_0x43b0x14[_0x5b48[1468]]= _0x5b48[308];return _0x43b0x14};mxVmlCanvas2D[_0x5b48[202]][_0x5b48[1486]]= function(){var _0x43b0x2=document[_0x5b48[55]](mxClient[_0x5b48[463]]+ _0x5b48[1469]);_0x43b0x2[_0x5b48[352]]= this[_0x5b48[724]][_0x5b48[1269]];_0x43b0x2[_0x5b48[461]]= 100* this[_0x5b48[724]][_0x5b48[1244]]* this[_0x5b48[724]][_0x5b48[1271]]+ _0x5b48[229];return _0x43b0x2};mxVmlCanvas2D[_0x5b48[202]][_0x5b48[1485]]= function(){var _0x43b0x2=this[_0x5b48[1465]]();_0x43b0x2[_0x5b48[461]]= 100* this[_0x5b48[724]][_0x5b48[1244]]* this[_0x5b48[724]][_0x5b48[1271]]+ _0x5b48[229];return _0x43b0x2};mxVmlCanvas2D[_0x5b48[202]][_0x5b48[1294]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){_0x43b0x3&& _0x43b0x4?_0x43b0x2+= 180:_0x43b0x3?this[_0x5b48[813]][_0x5b48[124]][_0x5b48[1473]]= _0x5b48[235]:_0x43b0x4&& (this[_0x5b48[813]][_0x5b48[124]][_0x5b48[1473]]= _0x5b48[236]);if(_0x43b0x3?!_0x43b0x4:_0x43b0x4){_0x43b0x2*= -1};this[_0x5b48[813]][_0x5b48[124]][_0x5b48[603]]= _0x43b0x2;this[_0x5b48[724]][_0x5b48[603]]+= _0x43b0x2;this[_0x5b48[724]][_0x5b48[1395]]= _0x43b0x5;this[_0x5b48[724]][_0x5b48[1396]]= _0x43b0x9};mxVmlCanvas2D[_0x5b48[202]][_0x5b48[1275]]= function(){mxAbstractCanvas2D[_0x5b48[202]][_0x5b48[1275]][_0x5b48[183]](this,arguments);this[_0x5b48[252]]= document[_0x5b48[55]](mxClient[_0x5b48[463]]+ _0x5b48[1487]);this[_0x5b48[252]][_0x5b48[124]][_0x5b48[491]]= _0x5b48[492]};mxVmlCanvas2D[_0x5b48[202]][_0x5b48[1278]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){var _0x43b0x9=this[_0x5b48[724]],_0x43b0xa=(this[_0x5b48[1217]]+ _0x43b0x9[_0x5b48[1126]])* _0x43b0x9[_0x5b48[255]],_0x43b0x12=(this[_0x5b48[1218]]+ _0x43b0x9[_0x5b48[1125]])* _0x43b0x9[_0x5b48[255]];_0x43b0x2= (_0x43b0x2+ _0x43b0x9[_0x5b48[1126]])* _0x43b0x9[_0x5b48[255]];_0x43b0x3= (_0x43b0x3+ _0x43b0x9[_0x5b48[1125]])* _0x43b0x9[_0x5b48[255]];_0x43b0x4= (_0x43b0x4+ _0x43b0x9[_0x5b48[1126]])* _0x43b0x9[_0x5b48[255]];_0x43b0x5= (_0x43b0x5+ _0x43b0x9[_0x5b48[1125]])* _0x43b0x9[_0x5b48[255]];var _0x43b0x12=_0x43b0x12+ 2/ 3* (_0x43b0x3- _0x43b0x12),_0x43b0x13=_0x43b0x4+ 2/ 3* (_0x43b0x2- _0x43b0x4);_0x43b0x3= _0x43b0x5+ 2/ 3* (_0x43b0x3- _0x43b0x5);this[_0x5b48[1215]][_0x5b48[207]](_0x5b48[1488]+ this[_0x5b48[1239]](_0x43b0xa+ 2/ 3* (_0x43b0x2- _0x43b0xa))+ _0x5b48[185]+ this[_0x5b48[1239]](_0x43b0x12)+ _0x5b48[185]+ this[_0x5b48[1239]](_0x43b0x13)+ _0x5b48[185]+ this[_0x5b48[1239]](_0x43b0x3)+ _0x5b48[185]+ this[_0x5b48[1239]](_0x43b0x4)+ _0x5b48[185]+ this[_0x5b48[1239]](_0x43b0x5));this[_0x5b48[1217]]= _0x43b0x4/ _0x43b0x9[_0x5b48[255]]- _0x43b0x9[_0x5b48[1126]];this[_0x5b48[1218]]= _0x43b0x5/ _0x43b0x9[_0x5b48[255]]- _0x43b0x9[_0x5b48[1125]]};mxVmlCanvas2D[_0x5b48[202]][_0x5b48[1489]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){var _0x43b0xa=this[_0x5b48[724]];_0x43b0x2= document[_0x5b48[55]](_0x43b0x2);_0x43b0x2[_0x5b48[124]][_0x5b48[491]]= _0x5b48[492];_0x43b0x2[_0x5b48[124]][_0x5b48[361]]= this[_0x5b48[1239]]((_0x43b0x3+ _0x43b0xa[_0x5b48[1126]])* _0x43b0xa[_0x5b48[255]])+ _0x5b48[168];_0x43b0x2[_0x5b48[124]][_0x5b48[125]]= this[_0x5b48[1239]]((_0x43b0x4+ _0x43b0xa[_0x5b48[1125]])* _0x43b0xa[_0x5b48[255]])+ _0x5b48[168];_0x43b0x2[_0x5b48[124]][_0x5b48[117]]= this[_0x5b48[1239]](_0x43b0x5* _0x43b0xa[_0x5b48[255]])+ _0x5b48[168];_0x43b0x2[_0x5b48[124]][_0x5b48[119]]= this[_0x5b48[1239]](_0x43b0x9* _0x43b0xa[_0x5b48[255]])+ _0x5b48[168];return _0x43b0x2};mxVmlCanvas2D[_0x5b48[202]][_0x5b48[1319]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){this[_0x5b48[252]]= this[_0x5b48[1489]](mxClient[_0x5b48[463]]+ _0x5b48[1490],_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5)};mxVmlCanvas2D[_0x5b48[202]][_0x5b48[1320]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa){this[_0x5b48[252]]= this[_0x5b48[1489]](mxClient[_0x5b48[463]]+ _0x5b48[1491],_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5);this[_0x5b48[252]][_0x5b48[57]](_0x5b48[1492],Math[_0x5b48[160]](100* _0x43b0x9/ _0x43b0x4,100* _0x43b0xa/ _0x43b0x5)+ _0x5b48[229])};mxVmlCanvas2D[_0x5b48[202]][_0x5b48[680]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){this[_0x5b48[252]]= this[_0x5b48[1489]](mxClient[_0x5b48[463]]+ _0x5b48[1493],_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5)};mxVmlCanvas2D[_0x5b48[202]][_0x5b48[618]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa,_0x43b0x12,_0x43b0x13){var _0x43b0x14=null;_0x43b0xa?(_0x43b0x14= this[_0x5b48[1489]](mxClient[_0x5b48[463]]+ _0x5b48[1490],_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5),_0x43b0x14[_0x5b48[1464]]= _0x5b48[308],_0x43b0x2= document[_0x5b48[55]](mxClient[_0x5b48[463]]+ _0x5b48[1469]),_0x43b0x2[_0x5b48[1322]]= _0x43b0xa?_0x5b48[1494]:_0x5b48[1495],_0x43b0x2[_0x5b48[1294]]= _0x5b48[128],_0x43b0x2[_0x5b48[60]]= _0x5b48[1496],_0x43b0x2[_0x5b48[390]]= _0x43b0x9,_0x43b0x14[_0x5b48[62]](_0x43b0x2)):(_0x43b0x14= this[_0x5b48[1489]](mxClient[_0x5b48[463]]+ _0x5b48[464],_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5),_0x43b0x14[_0x5b48[390]]= _0x43b0x9);_0x43b0x12&& _0x43b0x13?_0x43b0x14[_0x5b48[124]][_0x5b48[603]]= _0x5b48[1497]:_0x43b0x12?_0x43b0x14[_0x5b48[124]][_0x5b48[1473]]= _0x5b48[235]:_0x43b0x13&& (_0x43b0x14[_0x5b48[124]][_0x5b48[1473]]= _0x5b48[236]);1> this[_0x5b48[724]][_0x5b48[1244]]&& (_0x43b0x14[_0x5b48[124]][_0x5b48[347]]+= _0x5b48[459]+ 100* this[_0x5b48[724]][_0x5b48[1244]]+ _0x5b48[460]);this[_0x5b48[813]][_0x5b48[62]](_0x43b0x14)};mxVmlCanvas2D[_0x5b48[202]][_0x5b48[1404]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){_0x43b0x4= document[_0x5b48[55]](_0x5b48[485]);var _0x43b0x9=this[_0x5b48[724]],_0x43b0xa=_0x5b48[110];null!= _0x43b0x9[_0x5b48[1261]]&& (_0x43b0xa+= _0x5b48[1418]+ _0x43b0x9[_0x5b48[1261]]+ _0x5b48[471]);null!= _0x43b0x9[_0x5b48[1263]]&& (_0x43b0xa+= _0x5b48[1419]+ _0x43b0x9[_0x5b48[1263]]+ _0x5b48[471]);mxUtils[_0x5b48[1331]](_0x43b0x2)?_0x43b0x4[_0x5b48[62]](_0x43b0x2):0< _0x43b0xa[_0x5b48[67]]&& !_0x43b0x5?(_0x43b0x5= document[_0x5b48[55]](_0x5b48[485]),_0x43b0x5[_0x5b48[124]][_0x5b48[103]]= _0x43b0xa,_0x43b0x5[_0x5b48[124]][_0x5b48[495]]= mxClient[_0x5b48[496]]?_0x5b48[497]:_0x5b48[498],_0x43b0x5[_0x5b48[124]][_0x5b48[499]]= _0x5b48[500],_0x43b0x5[_0x5b48[339]]= _0x43b0x2,_0x43b0x4[_0x5b48[62]](_0x43b0x5)):(_0x43b0x4[_0x5b48[124]][_0x5b48[103]]= _0x43b0xa,_0x43b0x4[_0x5b48[339]]= _0x43b0x2);_0x43b0x2= _0x43b0x4[_0x5b48[124]];_0x43b0x2[_0x5b48[487]]= Math[_0x5b48[488]](_0x43b0x9[_0x5b48[487]]/ this[_0x5b48[1460]])+ _0x5b48[168];_0x43b0x2[_0x5b48[486]]= _0x43b0x9[_0x5b48[486]];_0x43b0x2[_0x5b48[352]]= _0x43b0x9[_0x5b48[665]];_0x43b0x2[_0x5b48[123]]= _0x5b48[125];_0x43b0x2[_0x5b48[1165]]= _0x43b0x3|| _0x5b48[361];_0x43b0x2[_0x5b48[489]]= Math[_0x5b48[488]](_0x43b0x9[_0x5b48[487]]* mxConstants[_0x5b48[490]]/ this[_0x5b48[1460]])+ _0x5b48[168];(_0x43b0x9[_0x5b48[666]]& mxConstants[_0x5b48[1410]])== mxConstants[_0x5b48[1410]]&& (_0x43b0x2[_0x5b48[1452]]= _0x5b48[1447]);(_0x43b0x9[_0x5b48[666]]& mxConstants[_0x5b48[1412]])== mxConstants[_0x5b48[1412]]&& (_0x43b0x2[_0x5b48[666]]= _0x5b48[1449]);(_0x43b0x9[_0x5b48[666]]& mxConstants[_0x5b48[1414]])== mxConstants[_0x5b48[1414]]&& (_0x43b0x2[_0x5b48[1498]]= _0x5b48[355]);return _0x43b0x4};mxVmlCanvas2D[_0x5b48[202]][_0x5b48[963]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa,_0x43b0x12,_0x43b0x13,_0x43b0x14,_0x43b0x15,_0x43b0x16,_0x43b0x17){if(this[_0x5b48[1285]]&& null!= _0x43b0x9){var _0x43b0x18=this[_0x5b48[724]];if(_0x5b48[1428]== _0x43b0x14){null!= _0x43b0x18[_0x5b48[603]]&& (_0x43b0x3= this[_0x5b48[1241]](_0x43b0x2,_0x43b0x3,_0x43b0x18[_0x5b48[603]],_0x43b0x18[_0x5b48[1395]],_0x43b0x18[_0x5b48[1396]]),_0x43b0x2= _0x43b0x3[_0x5b48[235]],_0x43b0x3= _0x43b0x3[_0x5b48[236]]);8== document[_0x5b48[5]]?(_0x43b0x2+= _0x43b0x18[_0x5b48[1126]],_0x43b0x3+= _0x43b0x18[_0x5b48[1125]]):(_0x43b0x2*= _0x43b0x18[_0x5b48[255]],_0x43b0x3*= _0x43b0x18[_0x5b48[255]]);_0x43b0x14= 8== document[_0x5b48[5]]?document[_0x5b48[55]](mxClient[_0x5b48[463]]+ _0x5b48[1499]):document[_0x5b48[55]](_0x5b48[485]);_0x43b0x14[_0x5b48[124]][_0x5b48[491]]= _0x5b48[492];_0x43b0x14[_0x5b48[124]][_0x5b48[495]]= _0x5b48[497];_0x43b0x14[_0x5b48[124]][_0x5b48[361]]= this[_0x5b48[1239]](_0x43b0x2)+ _0x5b48[168];_0x43b0x14[_0x5b48[124]][_0x5b48[125]]= this[_0x5b48[1239]](_0x43b0x3)+ _0x5b48[168];_0x43b0x14[_0x5b48[124]][_0x5b48[499]]= _0x43b0x18[_0x5b48[255]];var _0x43b0x19=document[_0x5b48[55]](_0x5b48[485]);_0x43b0x19[_0x5b48[124]][_0x5b48[491]]= _0x5b48[1500];_0x43b0x19[_0x5b48[124]][_0x5b48[495]]= _0x5b48[497];var _0x43b0x1a=mxUtils[_0x5b48[1501]](_0x43b0xa,_0x43b0x12),_0x43b0x1b=_0x43b0x1a[_0x5b48[235]],_0x43b0x1a=_0x43b0x1a[_0x5b48[236]];_0x43b0x9= this[_0x5b48[1404]](_0x43b0x9,_0x43b0xa,_0x43b0x12,_0x43b0x15);_0x43b0xa= document[_0x5b48[55]](_0x5b48[485]);_0x43b0x13?(!_0x43b0x16&& 0< _0x43b0x4 && (_0x43b0x9[_0x5b48[124]][_0x5b48[117]]= Math[_0x5b48[488]](_0x43b0x4)+ _0x5b48[168]),_0x43b0x9[_0x5b48[124]][_0x5b48[493]]= _0x5b48[1502]):_0x43b0x9[_0x5b48[124]][_0x5b48[493]]= _0x5b48[494];_0x43b0x13= _0x43b0x18[_0x5b48[603]]+ (_0x43b0x17|| 0);this[_0x5b48[1216]]&& 0!= _0x43b0x13?(_0x43b0xa[_0x5b48[124]][_0x5b48[495]]= _0x5b48[497],_0x43b0xa[_0x5b48[124]][_0x5b48[499]]= _0x5b48[500],_0x43b0xa[_0x5b48[62]](_0x43b0x9),8== document[_0x5b48[5]]&& _0x5b48[529]!= this[_0x5b48[813]][_0x5b48[301]]?(_0x43b0x19[_0x5b48[62]](_0x43b0xa),_0x43b0x14[_0x5b48[62]](_0x43b0x19)):_0x43b0x14[_0x5b48[62]](_0x43b0xa)):8== document[_0x5b48[5]]?(_0x43b0x19[_0x5b48[62]](_0x43b0x9),_0x43b0x14[_0x5b48[62]](_0x43b0x19)):(_0x43b0x9[_0x5b48[124]][_0x5b48[495]]= _0x5b48[497],_0x43b0x14[_0x5b48[62]](_0x43b0x9));_0x5b48[529]!= this[_0x5b48[813]][_0x5b48[301]]?(_0x43b0x17= document[_0x5b48[55]](mxClient[_0x5b48[463]]+ _0x5b48[1490]),_0x43b0x17[_0x5b48[1464]]= _0x5b48[308],_0x43b0x17[_0x5b48[1468]]= _0x5b48[308],_0x43b0x17[_0x5b48[62]](_0x43b0x14),this[_0x5b48[813]][_0x5b48[62]](_0x43b0x17)):this[_0x5b48[813]][_0x5b48[62]](_0x43b0x14);_0x43b0x16?(_0x43b0x9[_0x5b48[124]][_0x5b48[277]]= _0x5b48[188],0< _0x43b0x4&& (_0x43b0x9[_0x5b48[124]][_0x5b48[117]]= Math[_0x5b48[488]](_0x43b0x4)+ _0x5b48[168]),0< _0x43b0x5&& 8== document[_0x5b48[5]]&& (_0x43b0x9[_0x5b48[124]][_0x5b48[1503]]= Math[_0x5b48[488]](_0x43b0x5)+ _0x5b48[168])):_0x43b0x15&& (_0x43b0x9[_0x5b48[124]][_0x5b48[117]]= _0x43b0x4+ _0x5b48[168],0< _0x43b0x5&& (_0x43b0x9[_0x5b48[124]][_0x5b48[1503]]= Math[_0x5b48[488]](_0x43b0x5)+ _0x5b48[168]));if(this[_0x5b48[1216]]&& 0!= _0x43b0x13){_0x43b0x4= _0x43b0x13* (Math[_0x5b48[424]]/ 180);_0x43b0x13= parseFloat(parseFloat(Math[_0x5b48[426]](_0x43b0x4))[_0x5b48[1293]](8));_0x43b0x17= parseFloat(parseFloat(Math[_0x5b48[427]](-_0x43b0x4))[_0x5b48[1293]](8));_0x43b0x4%= 2* Math[_0x5b48[424]];0> _0x43b0x4&& (_0x43b0x4+= 2* Math[_0x5b48[424]]);_0x43b0x4%= Math[_0x5b48[424]];_0x43b0x4> Math[_0x5b48[424]]/ 2&& (_0x43b0x4= Math[_0x5b48[424]]- _0x43b0x4);_0x43b0x12= Math[_0x5b48[426]](_0x43b0x4);var _0x43b0x1c=Math[_0x5b48[427]](_0x43b0x4);8== document[_0x5b48[5]]&& (_0x43b0x9[_0x5b48[124]][_0x5b48[495]]= _0x5b48[498],_0x43b0xa[_0x5b48[124]][_0x5b48[495]]= _0x5b48[498],_0x43b0x19[_0x5b48[124]][_0x5b48[495]]= _0x5b48[498]);_0x43b0x9[_0x5b48[124]][_0x5b48[187]]= _0x5b48[188];document[_0x5b48[112]][_0x5b48[62]](_0x43b0x9);_0x43b0x4= _0x43b0x9[_0x5b48[359]];_0x43b0x19= _0x43b0x9[_0x5b48[167]];if(mxClient[_0x5b48[496]]&& (_0x43b0x16|| _0x43b0x15)&& _0x43b0x19> _0x43b0x5){_0x43b0x19= _0x43b0x5,_0x43b0x9[_0x5b48[124]][_0x5b48[119]]= _0x43b0x19+ _0x5b48[168]};_0x43b0x5= _0x43b0x19;_0x43b0x16= (_0x43b0x5- _0x43b0x5* _0x43b0x12+ _0x43b0x4* -_0x43b0x1c)/ 2- _0x43b0x17* _0x43b0x4* (_0x43b0x1b+ 0.5)+ _0x43b0x13* _0x43b0x5* (_0x43b0x1a+ 0.5);_0x43b0x15= (_0x43b0x4- _0x43b0x4* _0x43b0x12+ _0x43b0x5* -_0x43b0x1c)/ 2+ _0x43b0x13* _0x43b0x4* (_0x43b0x1b+ 0.5)+ _0x43b0x17* _0x43b0x5* (_0x43b0x1a+ 0.5);_0x5b48[1504]== _0x43b0x14[_0x5b48[301]]&& _0x5b48[529]== this[_0x5b48[813]][_0x5b48[301]]?(_0x43b0x1b= document[_0x5b48[55]](_0x5b48[485]),_0x43b0x1b[_0x5b48[124]][_0x5b48[495]]= _0x5b48[498],_0x43b0x1b[_0x5b48[124]][_0x5b48[491]]= _0x5b48[492],_0x43b0x1b[_0x5b48[124]][_0x5b48[361]]= this[_0x5b48[1239]](_0x43b0x2+ (_0x43b0x15- _0x43b0x4/ 2)* _0x43b0x18[_0x5b48[255]])+ _0x5b48[168],_0x43b0x1b[_0x5b48[124]][_0x5b48[125]]= this[_0x5b48[1239]](_0x43b0x3+ (_0x43b0x16- _0x43b0x5/ 2)* _0x43b0x18[_0x5b48[255]])+ _0x5b48[168],_0x43b0x14[_0x5b48[265]][_0x5b48[62]](_0x43b0x1b),_0x43b0x1b[_0x5b48[62]](_0x43b0x14)):(_0x43b0x18= 8== document[_0x5b48[5]]?1:_0x43b0x18[_0x5b48[255]],_0x43b0x14[_0x5b48[124]][_0x5b48[361]]= this[_0x5b48[1239]](_0x43b0x2+ (_0x43b0x15- _0x43b0x4/ 2)* _0x43b0x18)+ _0x5b48[168],_0x43b0x14[_0x5b48[124]][_0x5b48[125]]= this[_0x5b48[1239]](_0x43b0x3+ (_0x43b0x16- _0x43b0x5/ 2)* _0x43b0x18)+ _0x5b48[168]);_0x43b0xa[_0x5b48[124]][_0x5b48[347]]= _0x5b48[1505]+ _0x43b0x13+ _0x5b48[1506]+ _0x43b0x17+ _0x5b48[1507]+ -_0x43b0x17+ _0x5b48[1508]+ _0x43b0x13+ _0x5b48[1509];_0x43b0xa[_0x5b48[124]][_0x5b48[1028]]= this[_0x5b48[1459]];1> this[_0x5b48[724]][_0x5b48[1244]]&& (_0x43b0xa[_0x5b48[124]][_0x5b48[347]]+= _0x5b48[459]+ 100* this[_0x5b48[724]][_0x5b48[1244]]+ _0x5b48[460]);_0x43b0x9[_0x5b48[124]][_0x5b48[187]]= _0x5b48[110];_0x43b0xa[_0x5b48[62]](_0x43b0x9)}else {8!= document[_0x5b48[5]]?(_0x43b0x9[_0x5b48[124]][_0x5b48[123]]= _0x5b48[125],1> this[_0x5b48[724]][_0x5b48[1244]]&& (_0x43b0x14[_0x5b48[124]][_0x5b48[347]]= _0x5b48[459]+ 100* this[_0x5b48[724]][_0x5b48[1244]]+ _0x5b48[460]),_0x43b0x18= _0x43b0x9[_0x5b48[265]],_0x43b0x9[_0x5b48[124]][_0x5b48[187]]= _0x5b48[188],document[_0x5b48[112]][_0x5b48[62]](_0x43b0x9),_0x43b0x4= _0x43b0x9[_0x5b48[359]],_0x43b0x19= _0x43b0x9[_0x5b48[167]],mxClient[_0x5b48[496]]&& (_0x43b0x16&& _0x43b0x19> _0x43b0x5)&& (_0x43b0x19= _0x43b0x5,_0x43b0x9[_0x5b48[124]][_0x5b48[119]]= _0x43b0x19+ _0x5b48[168]),_0x43b0x5= _0x43b0x19,_0x43b0x9[_0x5b48[124]][_0x5b48[187]]= _0x5b48[110],_0x43b0x18[_0x5b48[62]](_0x43b0x9),_0x43b0x14[_0x5b48[124]][_0x5b48[361]]= this[_0x5b48[1239]](_0x43b0x2+ _0x43b0x4* _0x43b0x1b* this[_0x5b48[724]][_0x5b48[255]])+ _0x5b48[168],_0x43b0x14[_0x5b48[124]][_0x5b48[125]]= this[_0x5b48[1239]](_0x43b0x3+ _0x43b0x5* _0x43b0x1a* this[_0x5b48[724]][_0x5b48[255]])+ _0x5b48[168]):(1> this[_0x5b48[724]][_0x5b48[1244]]&& (_0x43b0x9[_0x5b48[124]][_0x5b48[347]]= _0x5b48[459]+ 100* this[_0x5b48[724]][_0x5b48[1244]]+ _0x5b48[460]),_0x43b0x19[_0x5b48[124]][_0x5b48[361]]= 100* _0x43b0x1b+ _0x5b48[229],_0x43b0x19[_0x5b48[124]][_0x5b48[125]]= 100* _0x43b0x1a+ _0x5b48[229])}}else {this[_0x5b48[1436]](_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,mxUtils[_0x5b48[321]](_0x43b0x9,!1),_0x43b0xa,_0x43b0x12,_0x43b0x13,_0x43b0x14,_0x43b0x15,_0x43b0x16,_0x43b0x17)}}};mxVmlCanvas2D[_0x5b48[202]][_0x5b48[1436]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa,_0x43b0x12,_0x43b0x13,_0x43b0x14,_0x43b0x15,_0x43b0x16,_0x43b0x17){_0x43b0x5= this[_0x5b48[724]];_0x43b0x2= (_0x43b0x2+ _0x43b0x5[_0x5b48[1126]])* _0x43b0x5[_0x5b48[255]];_0x43b0x3= (_0x43b0x3+ _0x43b0x5[_0x5b48[1125]])* _0x43b0x5[_0x5b48[255]];_0x43b0x4= document[_0x5b48[55]](mxClient[_0x5b48[463]]+ _0x5b48[1487]);_0x43b0x4[_0x5b48[124]][_0x5b48[117]]= _0x5b48[942];_0x43b0x4[_0x5b48[124]][_0x5b48[119]]= _0x5b48[942];_0x43b0x4[_0x5b48[1464]]= _0x5b48[308];_0x43b0x15= document[_0x5b48[55]](mxClient[_0x5b48[463]]+ _0x5b48[1469]);_0x43b0x15[_0x5b48[352]]= _0x43b0x5[_0x5b48[665]];_0x43b0x15[_0x5b48[461]]= 100* _0x43b0x5[_0x5b48[1244]]+ _0x5b48[229];_0x43b0x4[_0x5b48[62]](_0x43b0x15);_0x43b0x15= document[_0x5b48[55]](mxClient[_0x5b48[463]]+ _0x5b48[1510]);_0x43b0x15[_0x5b48[1511]]= _0x5b48[128];_0x43b0x15[_0x5b48[6]]= _0x5b48[1512]+ this[_0x5b48[1239]](0)+ _0x5b48[185]+ this[_0x5b48[1239]](0)+ _0x5b48[1513]+ this[_0x5b48[1239]](1)+ _0x5b48[185]+ this[_0x5b48[1239]](0);_0x43b0x4[_0x5b48[62]](_0x43b0x15);_0x43b0x15= document[_0x5b48[55]](mxClient[_0x5b48[463]]+ _0x5b48[1514]);_0x43b0x15[_0x5b48[124]][_0x5b48[103]]= _0x5b48[1515]+ _0x43b0xa;_0x43b0x15[_0x5b48[124]][_0x5b48[611]]= _0x43b0xa;_0x43b0x15[_0x5b48[124]][_0x5b48[486]]= _0x43b0x5[_0x5b48[486]];_0x43b0x15[_0x5b48[1516]]= _0x43b0x9;_0x43b0x15[_0x5b48[747]]= _0x5b48[128];_0x43b0xa= Math[_0x5b48[488]](_0x43b0x5[_0x5b48[487]]* _0x43b0x5[_0x5b48[255]]/ this[_0x5b48[1460]]);_0x43b0x15[_0x5b48[124]][_0x5b48[487]]= _0x43b0xa+ _0x5b48[168];(_0x43b0x5[_0x5b48[666]]& mxConstants[_0x5b48[1410]])== mxConstants[_0x5b48[1410]]&& (_0x43b0x15[_0x5b48[124]][_0x5b48[1452]]= _0x5b48[1447]);(_0x43b0x5[_0x5b48[666]]& mxConstants[_0x5b48[1412]])== mxConstants[_0x5b48[1412]]&& (_0x43b0x15[_0x5b48[124]][_0x5b48[666]]= _0x5b48[1449]);(_0x43b0x5[_0x5b48[666]]& mxConstants[_0x5b48[1414]])== mxConstants[_0x5b48[1414]]&& (_0x43b0x15[_0x5b48[124]][_0x5b48[354]]= _0x5b48[355]);_0x43b0x9= _0x43b0x9[_0x5b48[224]](_0x5b48[192]);_0x43b0x5= _0x43b0xa+ (_0x43b0x9[_0x5b48[67]]- 1)* _0x43b0xa* mxConstants[_0x5b48[490]];_0x43b0xa= _0x43b0x9= 0;_0x43b0x12== mxConstants[_0x5b48[482]]?_0x43b0xa= -_0x43b0x5/ 2:_0x43b0x12!= mxConstants[_0x5b48[481]]&& (_0x43b0xa= _0x43b0x5/ 2);null!= _0x43b0x17&& (_0x43b0x4[_0x5b48[124]][_0x5b48[603]]= _0x43b0x17,_0x43b0x12= _0x43b0x17* (Math[_0x5b48[424]]/ 180),_0x43b0x9= Math[_0x5b48[427]](_0x43b0x12)* _0x43b0xa,_0x43b0xa*= Math[_0x5b48[426]](_0x43b0x12));_0x43b0x4[_0x5b48[62]](_0x43b0x15);_0x43b0x4[_0x5b48[124]][_0x5b48[361]]= this[_0x5b48[1239]](_0x43b0x2- _0x43b0x9)+ _0x5b48[168];_0x43b0x4[_0x5b48[124]][_0x5b48[125]]= this[_0x5b48[1239]](_0x43b0x3+ _0x43b0xa)+ _0x5b48[168];this[_0x5b48[813]][_0x5b48[62]](_0x43b0x4)};mxVmlCanvas2D[_0x5b48[202]][_0x5b48[1336]]= function(){this[_0x5b48[1370]](!1,!0)};mxVmlCanvas2D[_0x5b48[202]][_0x5b48[1334]]= function(){this[_0x5b48[1370]](!0,!1)};mxVmlCanvas2D[_0x5b48[202]][_0x5b48[1337]]= function(){this[_0x5b48[1370]](!0,!0)};function mxGuide(_0x43b0x2,_0x43b0x3){this[_0x5b48[1179]]= _0x43b0x2;this[_0x5b48[1517]](_0x43b0x3)}mxGuide[_0x5b48[202]][_0x5b48[1179]]= null;mxGuide[_0x5b48[202]][_0x5b48[1214]]= null;mxGuide[_0x5b48[202]][_0x5b48[662]]= !0;mxGuide[_0x5b48[202]][_0x5b48[704]]= !0;mxGuide[_0x5b48[202]][_0x5b48[1518]]= null;mxGuide[_0x5b48[202]][_0x5b48[1519]]= null;mxGuide[_0x5b48[202]][_0x5b48[1517]]= function(_0x43b0x2){this[_0x5b48[1214]]= _0x43b0x2};mxGuide[_0x5b48[202]][_0x5b48[1019]]= function(_0x43b0x2){return !0};mxGuide[_0x5b48[202]][_0x5b48[1520]]= function(){return this[_0x5b48[1179]][_0x5b48[1020]]* this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[255]]/ 2};mxGuide[_0x5b48[202]][_0x5b48[1521]]= function(_0x43b0x2){_0x43b0x2= new mxPolyline([],mxConstants.GUIDE_COLOR,mxConstants.GUIDE_STROKEWIDTH);_0x43b0x2[_0x5b48[1522]]= !0;return _0x43b0x2};mxGuide[_0x5b48[202]][_0x5b48[582]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){if(null!= this[_0x5b48[1214]]&& (this[_0x5b48[662]]|| this[_0x5b48[704]])&& null!= _0x43b0x2&& null!= _0x43b0x3){var _0x43b0x5=this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[513]],_0x43b0x9=this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[255]],_0x43b0xa=_0x43b0x3[_0x5b48[235]],_0x43b0x12=_0x43b0x3[_0x5b48[236]],_0x43b0x13=!1,_0x43b0x14=!1,_0x43b0x15=this[_0x5b48[1520]](),_0x43b0x16=_0x43b0x15,_0x43b0x17=_0x43b0x15,_0x43b0x15=_0x43b0x2[_0x5b48[238]]();_0x43b0x15[_0x5b48[235]]+= _0x43b0x3[_0x5b48[235]];_0x43b0x15[_0x5b48[236]]+= _0x43b0x3[_0x5b48[236]];var _0x43b0x18=_0x43b0x15[_0x5b48[235]],_0x43b0x19=_0x43b0x15[_0x5b48[235]]+ _0x43b0x15[_0x5b48[117]],_0x43b0x1a=_0x43b0x15[_0x5b48[241]](),_0x43b0x1b=_0x43b0x15[_0x5b48[236]],_0x43b0x1c=_0x43b0x15[_0x5b48[236]]+ _0x43b0x15[_0x5b48[119]],_0x43b0x1d=_0x43b0x15[_0x5b48[242]]();_0x43b0x3= function(_0x43b0x3){_0x43b0x3+= this[_0x5b48[1179]][_0x5b48[1136]];var _0x43b0x4=!1;Math[_0x5b48[425]](_0x43b0x3- _0x43b0x1a)< _0x43b0x16?(_0x43b0xa= _0x43b0x3- _0x43b0x2[_0x5b48[241]](),_0x43b0x16= Math[_0x5b48[425]](_0x43b0x3- _0x43b0x1a),_0x43b0x4= !0):Math[_0x5b48[425]](_0x43b0x3- _0x43b0x18)< _0x43b0x16?(_0x43b0xa= _0x43b0x3- _0x43b0x2[_0x5b48[235]],_0x43b0x16= Math[_0x5b48[425]](_0x43b0x3- _0x43b0x18),_0x43b0x4= !0):Math[_0x5b48[425]](_0x43b0x3- _0x43b0x19)< _0x43b0x16&& (_0x43b0xa= _0x43b0x3- _0x43b0x2[_0x5b48[235]]- _0x43b0x2[_0x5b48[117]],_0x43b0x16= Math[_0x5b48[425]](_0x43b0x3- _0x43b0x19),_0x43b0x4= !0);if(_0x43b0x4){null== this[_0x5b48[1518]]&& (this[_0x5b48[1518]]= this[_0x5b48[1521]](!0),this[_0x5b48[1518]][_0x5b48[507]]= this[_0x5b48[1179]][_0x5b48[507]]!= mxConstants[_0x5b48[508]]?mxConstants[_0x5b48[1523]]:mxConstants[_0x5b48[508]],this[_0x5b48[1518]][_0x5b48[1229]]= !1,this[_0x5b48[1518]][_0x5b48[176]](this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[1524]]()));var _0x43b0x5=this[_0x5b48[1179]][_0x5b48[526]];_0x43b0x3-= this[_0x5b48[1179]][_0x5b48[1136]];this[_0x5b48[1518]][_0x5b48[1525]]= [ new mxPoint(_0x43b0x3,-this[_0x5b48[1179]][_0x5b48[1137]]), new mxPoint(_0x43b0x3,_0x43b0x5[_0x5b48[191]]- 3- this[_0x5b48[1179]][_0x5b48[1137]])]};_0x43b0x13= _0x43b0x13|| _0x43b0x4};for(var _0x43b0x15=function(_0x43b0x3){_0x43b0x3+= this[_0x5b48[1179]][_0x5b48[1137]];var _0x43b0x4=!1;Math[_0x5b48[425]](_0x43b0x3- _0x43b0x1d)< _0x43b0x17?(_0x43b0x12= _0x43b0x3- _0x43b0x2[_0x5b48[242]](),_0x43b0x17= Math[_0x5b48[425]](_0x43b0x3- _0x43b0x1d),_0x43b0x4= !0):Math[_0x5b48[425]](_0x43b0x3- _0x43b0x1b)< _0x43b0x17?(_0x43b0x12= _0x43b0x3- _0x43b0x2[_0x5b48[236]],_0x43b0x17= Math[_0x5b48[425]](_0x43b0x3- _0x43b0x1b),_0x43b0x4= !0):Math[_0x5b48[425]](_0x43b0x3- _0x43b0x1c)< _0x43b0x17&& (_0x43b0x12= _0x43b0x3- _0x43b0x2[_0x5b48[236]]- _0x43b0x2[_0x5b48[119]],_0x43b0x17= Math[_0x5b48[425]](_0x43b0x3- _0x43b0x1c),_0x43b0x4= !0);if(_0x43b0x4){null== this[_0x5b48[1519]]&& (this[_0x5b48[1519]]= this[_0x5b48[1521]](!1),this[_0x5b48[1519]][_0x5b48[507]]= this[_0x5b48[1179]][_0x5b48[507]]!= mxConstants[_0x5b48[508]]?mxConstants[_0x5b48[1523]]:mxConstants[_0x5b48[508]],this[_0x5b48[1519]][_0x5b48[1229]]= !1,this[_0x5b48[1519]][_0x5b48[176]](this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[1524]]()));var _0x43b0x5=this[_0x5b48[1179]][_0x5b48[526]];_0x43b0x3-= this[_0x5b48[1179]][_0x5b48[1137]];this[_0x5b48[1519]][_0x5b48[1525]]= [ new mxPoint(-this[_0x5b48[1179]][_0x5b48[1136]],_0x43b0x3), new mxPoint(_0x43b0x5[_0x5b48[1526]]- 3- this[_0x5b48[1179]][_0x5b48[1136]],_0x43b0x3)]};_0x43b0x14= _0x43b0x14|| _0x43b0x4},_0x43b0x1e=0;_0x43b0x1e< this[_0x5b48[1214]][_0x5b48[67]];_0x43b0x1e++){var _0x43b0x1f=this[_0x5b48[1214]][_0x43b0x1e];null!= _0x43b0x1f&& (this[_0x5b48[662]]&& (_0x43b0x3[_0x5b48[239]](this,_0x43b0x1f[_0x5b48[241]]()),_0x43b0x3[_0x5b48[239]](this,_0x43b0x1f[_0x5b48[235]]),_0x43b0x3[_0x5b48[239]](this,_0x43b0x1f[_0x5b48[235]]+ _0x43b0x1f[_0x5b48[117]])),this[_0x5b48[704]]&& (_0x43b0x15[_0x5b48[239]](this,_0x43b0x1f[_0x5b48[242]]()),_0x43b0x15[_0x5b48[239]](this,_0x43b0x1f[_0x5b48[236]]),_0x43b0x15[_0x5b48[239]](this,_0x43b0x1f[_0x5b48[236]]+ _0x43b0x1f[_0x5b48[119]])))};!_0x43b0x13&& null!= this[_0x5b48[1518]]?this[_0x5b48[1518]][_0x5b48[252]][_0x5b48[124]][_0x5b48[187]]= _0x5b48[188]:null!= this[_0x5b48[1518]]&& (this[_0x5b48[1518]][_0x5b48[252]][_0x5b48[124]][_0x5b48[187]]= _0x5b48[189],this[_0x5b48[1518]][_0x5b48[258]]());!_0x43b0x14&& null!= this[_0x5b48[1519]]?this[_0x5b48[1519]][_0x5b48[252]][_0x5b48[124]][_0x5b48[187]]= _0x5b48[188]:null!= this[_0x5b48[1519]]&& (this[_0x5b48[1519]][_0x5b48[252]][_0x5b48[124]][_0x5b48[187]]= _0x5b48[189],this[_0x5b48[1519]][_0x5b48[258]]());_0x43b0x4&& (_0x43b0x13|| (_0x43b0x4= _0x43b0x2[_0x5b48[235]]- (this[_0x5b48[1179]][_0x5b48[1021]](_0x43b0x2[_0x5b48[235]]/ _0x43b0x9- _0x43b0x5[_0x5b48[235]])+ _0x43b0x5[_0x5b48[235]])* _0x43b0x9,_0x43b0xa= this[_0x5b48[1179]][_0x5b48[1021]](_0x43b0xa/ _0x43b0x9)* _0x43b0x9- _0x43b0x4),_0x43b0x14|| (_0x43b0x5= _0x43b0x2[_0x5b48[236]]- (this[_0x5b48[1179]][_0x5b48[1021]](_0x43b0x2[_0x5b48[236]]/ _0x43b0x9- _0x43b0x5[_0x5b48[236]])+ _0x43b0x5[_0x5b48[236]])* _0x43b0x9,_0x43b0x12= this[_0x5b48[1179]][_0x5b48[1021]](_0x43b0x12/ _0x43b0x9)* _0x43b0x9- _0x43b0x5));_0x43b0x3= new mxPoint(_0x43b0xa,_0x43b0x12)};return _0x43b0x3};mxGuide[_0x5b48[202]][_0x5b48[801]]= function(){null!= this[_0x5b48[1518]]&& (this[_0x5b48[1518]][_0x5b48[252]][_0x5b48[124]][_0x5b48[187]]= _0x5b48[188]);null!= this[_0x5b48[1519]]&& (this[_0x5b48[1519]][_0x5b48[252]][_0x5b48[124]][_0x5b48[187]]= _0x5b48[188])};mxGuide[_0x5b48[202]][_0x5b48[515]]= function(){null!= this[_0x5b48[1518]]&& (this[_0x5b48[1518]][_0x5b48[515]](),this[_0x5b48[1518]]= null);null!= this[_0x5b48[1519]]&& (this[_0x5b48[1519]][_0x5b48[515]](),this[_0x5b48[1519]]= null)};function mxStencil(_0x43b0x2){this[_0x5b48[1527]]= _0x43b0x2;this[_0x5b48[1528]]();this[_0x5b48[1529]]()}mxStencil[_0x5b48[1530]]= !1;mxStencil[_0x5b48[202]][_0x5b48[1527]]= null;mxStencil[_0x5b48[202]][_0x5b48[1531]]= null;mxStencil[_0x5b48[202]][_0x5b48[1322]]= null;mxStencil[_0x5b48[202]][_0x5b48[1532]]= null;mxStencil[_0x5b48[202]][_0x5b48[1533]]= null;mxStencil[_0x5b48[202]][_0x5b48[1534]]= null;mxStencil[_0x5b48[202]][_0x5b48[1535]]= null;mxStencil[_0x5b48[202]][_0x5b48[1307]]= null;mxStencil[_0x5b48[202]][_0x5b48[1528]]= function(){this[_0x5b48[1535]]= this[_0x5b48[1527]][_0x5b48[64]](_0x5b48[1536])[0];this[_0x5b48[1534]]= this[_0x5b48[1527]][_0x5b48[64]](_0x5b48[1537])[0];this[_0x5b48[1532]]= Number(this[_0x5b48[1527]][_0x5b48[284]](_0x5b48[1302])|| 100);this[_0x5b48[1533]]= Number(this[_0x5b48[1527]][_0x5b48[284]](_0x5b48[1303])|| 100);var _0x43b0x2=this[_0x5b48[1527]][_0x5b48[284]](_0x5b48[1322]);this[_0x5b48[1322]]= null!= _0x43b0x2?_0x43b0x2:_0x5b48[1538];_0x43b0x2= this[_0x5b48[1527]][_0x5b48[284]](_0x5b48[1307]);this[_0x5b48[1307]]= null!= _0x43b0x2?_0x43b0x2:_0x5b48[500]};mxStencil[_0x5b48[202]][_0x5b48[1529]]= function(){var _0x43b0x2=this[_0x5b48[1527]][_0x5b48[64]](_0x5b48[1539])[0];if(null!= _0x43b0x2&& (_0x43b0x2= mxUtils[_0x5b48[1540]](_0x43b0x2),null!= _0x43b0x2&& 0< _0x43b0x2[_0x5b48[67]])){this[_0x5b48[1531]]= [];for(var _0x43b0x3=0;_0x43b0x3< _0x43b0x2[_0x5b48[67]];_0x43b0x3++){this[_0x5b48[1531]][_0x5b48[207]](this[_0x5b48[1541]](_0x43b0x2[_0x43b0x3]))}}};mxStencil[_0x5b48[202]][_0x5b48[1541]]= function(_0x43b0x2){var _0x43b0x3=Number(_0x43b0x2[_0x5b48[284]](_0x5b48[235])),_0x43b0x4=Number(_0x43b0x2[_0x5b48[284]](_0x5b48[236]));_0x43b0x2= _0x5b48[500]== _0x43b0x2[_0x5b48[284]](_0x5b48[591]);return new mxConnectionConstraint( new mxPoint(_0x43b0x3,_0x43b0x4),_0x43b0x2)};mxStencil[_0x5b48[202]][_0x5b48[1542]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){_0x43b0x3= this[_0x5b48[1543]](_0x43b0x2,_0x43b0x3,_0x43b0x4);_0x43b0x2= _0x43b0x2[_0x5b48[284]](_0x5b48[1544]);if(mxStencil[_0x5b48[1530]]&& null== _0x43b0x2|| _0x5b48[500]== _0x43b0x2){_0x43b0x3= mxResources[_0x5b48[203]](_0x43b0x3)};return _0x43b0x3};mxStencil[_0x5b48[202]][_0x5b48[1543]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){_0x43b0x3= _0x43b0x2[_0x5b48[284]](_0x43b0x3);null== _0x43b0x3&& (_0x43b0x2= mxUtils[_0x5b48[329]](_0x43b0x2),null!= _0x43b0x2&& (_0x43b0x2= mxUtils[_0x5b48[1545]](_0x43b0x2),_0x5b48[279]== typeof _0x43b0x2&& (_0x43b0x3= _0x43b0x2(_0x43b0x4))));return _0x43b0x3};mxStencil[_0x5b48[202]][_0x5b48[1546]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa){this[_0x5b48[1547]](_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa,this[_0x5b48[1534]],!1);this[_0x5b48[1547]](_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa,this[_0x5b48[1535]],!0)};mxStencil[_0x5b48[202]][_0x5b48[1547]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa,_0x43b0x12,_0x43b0x13){if(null!= _0x43b0x12){var _0x43b0x14=mxUtils[_0x5b48[433]](_0x43b0x3[_0x5b48[124]],mxConstants.STYLE_DIRECTION,null);_0x43b0x4= this[_0x5b48[1548]](_0x43b0x3[_0x5b48[124]],_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa,_0x43b0x14);_0x43b0x5= Math[_0x5b48[243]](_0x43b0x4[_0x5b48[117]],_0x43b0x4[_0x5b48[119]]);_0x43b0x5= _0x5b48[1549]== this[_0x5b48[1307]]?Number(mxUtils[_0x5b48[1550]](_0x43b0x3[_0x5b48[124]],mxConstants.STYLE_STROKEWIDTH,1)):Number(this[_0x5b48[1307]])* _0x43b0x5;_0x43b0x2[_0x5b48[1250]](_0x43b0x5);for(_0x43b0x12= _0x43b0x12[_0x5b48[285]];null!= _0x43b0x12;){_0x43b0x12[_0x5b48[288]]== mxConstants[_0x5b48[289]]&& this[_0x5b48[1551]](_0x43b0x2,_0x43b0x3,_0x43b0x12,_0x43b0x4,_0x43b0x13),_0x43b0x12= _0x43b0x12[_0x5b48[287]]}}};mxStencil[_0x5b48[202]][_0x5b48[1548]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa){_0x43b0x2= _0x43b0x3;_0x43b0x3= _0x43b0x5/ this[_0x5b48[1532]];var _0x43b0x12=_0x43b0x9/ this[_0x5b48[1533]];if(_0x43b0xa= _0x5b48[700]== _0x43b0xa|| _0x5b48[701]== _0x43b0xa){_0x43b0x12= _0x43b0x5/ this[_0x5b48[1533]];_0x43b0x3= _0x43b0x9/ this[_0x5b48[1532]];var _0x43b0x13=(_0x43b0x5- _0x43b0x9)/ 2;_0x43b0x2+= _0x43b0x13;_0x43b0x4-= _0x43b0x13};_0x5b48[1552]== this[_0x5b48[1322]]&& (_0x43b0x3= _0x43b0x12= Math[_0x5b48[243]](_0x43b0x3,_0x43b0x12),_0x43b0xa?(_0x43b0x2+= (_0x43b0x9- this[_0x5b48[1532]]* _0x43b0x3)/ 2,_0x43b0x4+= (_0x43b0x5- this[_0x5b48[1533]]* _0x43b0x12)/ 2):(_0x43b0x2+= (_0x43b0x5- this[_0x5b48[1532]]* _0x43b0x3)/ 2,_0x43b0x4+= (_0x43b0x9- this[_0x5b48[1533]]* _0x43b0x12)/ 2));return new mxRectangle(_0x43b0x2,_0x43b0x4,_0x43b0x3,_0x43b0x12)};mxStencil[_0x5b48[202]][_0x5b48[1551]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){var _0x43b0xa=_0x43b0x4[_0x5b48[301]],_0x43b0x12=_0x43b0x5[_0x5b48[235]],_0x43b0x13=_0x43b0x5[_0x5b48[236]],_0x43b0x14=_0x43b0x5[_0x5b48[117]],_0x43b0x15=_0x43b0x5[_0x5b48[119]],_0x43b0x16=Math[_0x5b48[243]](_0x43b0x14,_0x43b0x15);if(_0x5b48[815]== _0x43b0xa){_0x43b0x2[_0x5b48[815]]()}else {if(_0x5b48[1210]== _0x43b0xa){_0x43b0x2[_0x5b48[1210]]()}else {if(_0x5b48[1215]== _0x43b0xa){_0x43b0x2[_0x5b48[1275]]();for(_0x43b0x4= _0x43b0x4[_0x5b48[285]];null!= _0x43b0x4;){_0x43b0x4[_0x5b48[288]]== mxConstants[_0x5b48[289]]&& this[_0x5b48[1551]](_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9),_0x43b0x4= _0x43b0x4[_0x5b48[287]]}}else {if(_0x5b48[268]== _0x43b0xa){_0x43b0x2[_0x5b48[268]]()}else {if(_0x5b48[582]== _0x43b0xa){_0x43b0x2[_0x5b48[1276]](_0x43b0x12+ Number(_0x43b0x4[_0x5b48[284]](_0x5b48[235]))* _0x43b0x14,_0x43b0x13+ Number(_0x43b0x4[_0x5b48[284]](_0x5b48[236]))* _0x43b0x15)}else {if(_0x5b48[683]== _0x43b0xa){_0x43b0x2[_0x5b48[1277]](_0x43b0x12+ Number(_0x43b0x4[_0x5b48[284]](_0x5b48[235]))* _0x43b0x14,_0x43b0x13+ Number(_0x43b0x4[_0x5b48[284]](_0x5b48[236]))* _0x43b0x15)}else {if(_0x5b48[1323]== _0x43b0xa){_0x43b0x2[_0x5b48[1278]](_0x43b0x12+ Number(_0x43b0x4[_0x5b48[284]](_0x5b48[1324]))* _0x43b0x14,_0x43b0x13+ Number(_0x43b0x4[_0x5b48[284]](_0x5b48[1325]))* _0x43b0x15,_0x43b0x12+ Number(_0x43b0x4[_0x5b48[284]](_0x5b48[1326]))* _0x43b0x14,_0x43b0x13+ Number(_0x43b0x4[_0x5b48[284]](_0x5b48[1327]))* _0x43b0x15)}else {if(_0x5b48[1328]== _0x43b0xa){_0x43b0x2[_0x5b48[1279]](_0x43b0x12+ Number(_0x43b0x4[_0x5b48[284]](_0x5b48[1324]))* _0x43b0x14,_0x43b0x13+ Number(_0x43b0x4[_0x5b48[284]](_0x5b48[1325]))* _0x43b0x15,_0x43b0x12+ Number(_0x43b0x4[_0x5b48[284]](_0x5b48[1326]))* _0x43b0x14,_0x43b0x13+ Number(_0x43b0x4[_0x5b48[284]](_0x5b48[1327]))* _0x43b0x15,_0x43b0x12+ Number(_0x43b0x4[_0x5b48[284]](_0x5b48[1329]))* _0x43b0x14,_0x43b0x13+ Number(_0x43b0x4[_0x5b48[284]](_0x5b48[1330]))* _0x43b0x15)}else {if(_0x5b48[1553]== _0x43b0xa){_0x43b0x2[_0x5b48[1280]](Number(_0x43b0x4[_0x5b48[284]](_0x5b48[1397]))* _0x43b0x14,Number(_0x43b0x4[_0x5b48[284]](_0x5b48[1398]))* _0x43b0x15,Number(_0x43b0x4[_0x5b48[284]](_0x5b48[1554])),Number(_0x43b0x4[_0x5b48[284]](_0x5b48[1555])),Number(_0x43b0x4[_0x5b48[284]](_0x5b48[1556])),_0x43b0x12+ Number(_0x43b0x4[_0x5b48[284]](_0x5b48[235]))* _0x43b0x14,_0x43b0x13+ Number(_0x43b0x4[_0x5b48[284]](_0x5b48[236]))* _0x43b0x15)}else {if(_0x5b48[1319]== _0x43b0xa){_0x43b0x2[_0x5b48[1319]](_0x43b0x12+ Number(_0x43b0x4[_0x5b48[284]](_0x5b48[235]))* _0x43b0x14,_0x43b0x13+ Number(_0x43b0x4[_0x5b48[284]](_0x5b48[236]))* _0x43b0x15,Number(_0x43b0x4[_0x5b48[284]](_0x5b48[1302]))* _0x43b0x14,Number(_0x43b0x4[_0x5b48[284]](_0x5b48[1303]))* _0x43b0x15)}else {if(_0x5b48[1320]== _0x43b0xa){_0x43b0x3= _0x43b0x4[_0x5b48[284]](_0x5b48[1492]),0== _0x43b0x3&& (_0x43b0x3= 100* mxConstants[_0x5b48[1557]]),_0x43b0x16= Number(_0x43b0x4[_0x5b48[284]](_0x5b48[1302]))* _0x43b0x14,_0x43b0x5= Number(_0x43b0x4[_0x5b48[284]](_0x5b48[1303]))* _0x43b0x15,_0x43b0x3= Number(_0x43b0x3)/ 100,_0x43b0x3= Math[_0x5b48[243]](_0x43b0x16* _0x43b0x3,_0x43b0x5* _0x43b0x3),_0x43b0x2[_0x5b48[1320]](_0x43b0x12+ Number(_0x43b0x4[_0x5b48[284]](_0x5b48[235]))* _0x43b0x14,_0x43b0x13+ Number(_0x43b0x4[_0x5b48[284]](_0x5b48[236]))* _0x43b0x15,_0x43b0x16,_0x43b0x5,_0x43b0x3,_0x43b0x3)}else {if(_0x5b48[680]== _0x43b0xa){_0x43b0x2[_0x5b48[680]](_0x43b0x12+ Number(_0x43b0x4[_0x5b48[284]](_0x5b48[235]))* _0x43b0x14,_0x43b0x13+ Number(_0x43b0x4[_0x5b48[284]](_0x5b48[236]))* _0x43b0x15,Number(_0x43b0x4[_0x5b48[284]](_0x5b48[1302]))* _0x43b0x14,Number(_0x43b0x4[_0x5b48[284]](_0x5b48[1303]))* _0x43b0x15)}else {if(_0x5b48[618]== _0x43b0xa){_0x43b0x3= this[_0x5b48[1543]](_0x43b0x4,_0x5b48[390],_0x43b0x3),_0x43b0x2[_0x5b48[618]](_0x43b0x12+ Number(_0x43b0x4[_0x5b48[284]](_0x5b48[235]))* _0x43b0x14,_0x43b0x13+ Number(_0x43b0x4[_0x5b48[284]](_0x5b48[236]))* _0x43b0x15,Number(_0x43b0x4[_0x5b48[284]](_0x5b48[1302]))* _0x43b0x14,Number(_0x43b0x4[_0x5b48[284]](_0x5b48[1303]))* _0x43b0x15,_0x43b0x3,!1,_0x5b48[500]== _0x43b0x4[_0x5b48[284]](_0x5b48[623]),_0x5b48[500]== _0x43b0x4[_0x5b48[284]](_0x5b48[624]))}else {if(_0x5b48[963]== _0x43b0xa){_0x43b0x16= this[_0x5b48[1542]](_0x43b0x4,_0x5b48[1332],_0x43b0x3);_0x43b0x5= _0x5b48[500]== _0x43b0x4[_0x5b48[284]](_0x5b48[704])?-90:0;if(_0x5b48[468]== _0x43b0x4[_0x5b48[284]](_0x5b48[1558])){var _0x43b0x17=_0x43b0x3[_0x5b48[603]],_0x43b0x18=1== mxUtils[_0x5b48[433]](_0x43b0x3[_0x5b48[124]],mxConstants.STYLE_FLIPH,0);_0x43b0x3= 1== mxUtils[_0x5b48[433]](_0x43b0x3[_0x5b48[124]],mxConstants.STYLE_FLIPV,0);_0x43b0x5= _0x43b0x18&& _0x43b0x3?_0x43b0x5- _0x43b0x17:_0x43b0x18|| _0x43b0x3?_0x43b0x5+ _0x43b0x17:_0x43b0x5- _0x43b0x17};_0x43b0x5-= _0x43b0x4[_0x5b48[284]](_0x5b48[603]);_0x43b0x2[_0x5b48[963]](_0x43b0x12+ Number(_0x43b0x4[_0x5b48[284]](_0x5b48[235]))* _0x43b0x14,_0x43b0x13+ Number(_0x43b0x4[_0x5b48[284]](_0x5b48[236]))* _0x43b0x15,0,0,_0x43b0x16,_0x43b0x4[_0x5b48[284]](_0x5b48[611])|| _0x5b48[361],_0x43b0x4[_0x5b48[284]](_0x5b48[552])|| _0x5b48[125],!1,_0x5b48[110],!1,!1,_0x43b0x5)}else {if(_0x5b48[1559]== _0x43b0xa){_0x43b0x17= mxStencilRegistry[_0x5b48[1560]](_0x43b0x4[_0x5b48[284]](_0x5b48[298])),null!= _0x43b0x17&& (_0x43b0x12+= Number(_0x43b0x4[_0x5b48[284]](_0x5b48[235]))* _0x43b0x14,_0x43b0x13+= Number(_0x43b0x4[_0x5b48[284]](_0x5b48[236]))* _0x43b0x15,_0x43b0x16= Number(_0x43b0x4[_0x5b48[284]](_0x5b48[1302]))* _0x43b0x14,_0x43b0x5= Number(_0x43b0x4[_0x5b48[284]](_0x5b48[1303]))* _0x43b0x15,_0x43b0x17[_0x5b48[1546]](_0x43b0x2,_0x43b0x3,_0x43b0x12,_0x43b0x13,_0x43b0x16,_0x43b0x5))}else {if(_0x5b48[1338]== _0x43b0xa){_0x43b0x2[_0x5b48[1337]]()}else {if(_0x5b48[1334]== _0x43b0xa){_0x43b0x2[_0x5b48[1334]]()}else {if(_0x5b48[1336]== _0x43b0xa){_0x43b0x2[_0x5b48[1336]]()}else {if(_0x5b48[1307]== _0x43b0xa){_0x43b0x2[_0x5b48[1250]](Number(_0x43b0x4[_0x5b48[284]](_0x5b48[117]))* _0x43b0x16)}else {if(_0x5b48[648]== _0x43b0xa){_0x43b0x2[_0x5b48[1251]](_0x5b48[500]== _0x43b0x4[_0x5b48[284]](_0x5b48[648]))}else {if(_0x5b48[1308]== _0x43b0xa){if(_0x43b0x4= _0x43b0x4[_0x5b48[284]](_0x5b48[1309]),null!= _0x43b0x4){_0x43b0x4= _0x43b0x4[_0x5b48[224]](_0x5b48[185]);_0x43b0x14= [];for(_0x43b0x15= 0;_0x43b0x15< _0x43b0x4[_0x5b48[67]];_0x43b0x15++){0< _0x43b0x4[_0x43b0x15][_0x5b48[67]]&& _0x43b0x14[_0x5b48[207]](Number(_0x43b0x4[_0x43b0x15])* _0x43b0x16)};_0x43b0x4= _0x43b0x14[_0x5b48[234]](_0x5b48[185]);_0x43b0x2[_0x5b48[1252]](_0x43b0x4)}}else {_0x5b48[1306]== _0x43b0xa?_0x43b0x2[_0x5b48[1249]](_0x43b0x4[_0x5b48[284]](_0x5b48[352])):_0x5b48[1310]== _0x43b0xa?_0x43b0x2[_0x5b48[1253]](_0x43b0x4[_0x5b48[284]](_0x5b48[1311])):_0x5b48[1312]== _0x43b0xa?_0x43b0x2[_0x5b48[1255]](_0x43b0x4[_0x5b48[284]](_0x5b48[234])):_0x5b48[1313]== _0x43b0xa?_0x43b0x2[_0x5b48[1257]](Number(_0x43b0x4[_0x5b48[284]](_0x5b48[1314]))):_0x5b48[1298]== _0x43b0xa?_0x43b0x2[_0x5b48[1245]](_0x43b0x4[_0x5b48[284]](_0x5b48[352])):_0x5b48[1244]== _0x43b0xa?_0x43b0x2[_0x5b48[1243]](_0x43b0x4[_0x5b48[284]](_0x5b48[1244])):_0x5b48[1315]== _0x43b0xa?_0x43b0x2[_0x5b48[1259]](_0x43b0x4[_0x5b48[284]](_0x5b48[352])):_0x5b48[1318]== _0x43b0xa?_0x43b0x2[_0x5b48[1266]](_0x43b0x4[_0x5b48[284]](_0x5b48[124])):_0x5b48[1287]== _0x43b0xa?_0x43b0x2[_0x5b48[1265]](_0x43b0x4[_0x5b48[284]](_0x5b48[1288])):_0x5b48[1289]== _0x43b0xa&& _0x43b0x2[_0x5b48[1264]](Number(_0x43b0x4[_0x5b48[284]](_0x5b48[803]))* _0x43b0x16)}}}}}}}}}}}}}}}}}}}}};_0x43b0x9&& (_0x5b48[1338]== _0x43b0xa|| _0x5b48[1334]== _0x43b0xa|| _0x5b48[1336]== _0x43b0xa)&& _0x43b0x2[_0x5b48[1267]](!1)};function mxShape(_0x43b0x2){this[_0x5b48[1561]]= _0x43b0x2;this[_0x5b48[1307]]= 1;this[_0x5b48[603]]= 0;this[_0x5b48[461]]= 100;this[_0x5b48[624]]= this[_0x5b48[623]]= !1}mxShape[_0x5b48[202]][_0x5b48[507]]= null;mxShape[_0x5b48[202]][_0x5b48[255]]= 1;mxShape[_0x5b48[202]][_0x5b48[1562]]= null;mxShape[_0x5b48[202]][_0x5b48[1525]]= null;mxShape[_0x5b48[202]][_0x5b48[252]]= null;mxShape[_0x5b48[202]][_0x5b48[124]]= null;mxShape[_0x5b48[202]][_0x5b48[124]]= null;mxShape[_0x5b48[202]][_0x5b48[1563]]= null;mxShape[_0x5b48[202]][_0x5b48[1561]]= null;mxShape[_0x5b48[202]][_0x5b48[1564]]= 6;mxShape[_0x5b48[202]][_0x5b48[1229]]= !0;mxShape[_0x5b48[202]][_0x5b48[1565]]= !1;mxShape[_0x5b48[202]][_0x5b48[1460]]= 1;mxShape[_0x5b48[202]][_0x5b48[176]]= function(_0x43b0x2){null== this[_0x5b48[252]]&& (this[_0x5b48[252]]= this[_0x5b48[385]](_0x43b0x2),null!= _0x43b0x2&& _0x43b0x2[_0x5b48[62]](this[_0x5b48[252]]))};mxShape[_0x5b48[202]][_0x5b48[1566]]= function(){return !0};mxShape[_0x5b48[202]][_0x5b48[1567]]= function(){return !1};mxShape[_0x5b48[202]][_0x5b48[1568]]= function(){return 1== mxUtils[_0x5b48[1454]](Math[_0x5b48[160]](1,Math[_0x5b48[488]](this[_0x5b48[1307]]* this[_0x5b48[255]])),2)?0.5:0};mxShape[_0x5b48[202]][_0x5b48[385]]= function(_0x43b0x2){var _0x43b0x3=null;return _0x43b0x3= null!= _0x43b0x2[_0x5b48[538]]?this[_0x5b48[1569]](_0x43b0x2):8== document[_0x5b48[5]]|| this[_0x5b48[507]]== mxConstants[_0x5b48[508]]|| this[_0x5b48[507]]!= mxConstants[_0x5b48[1523]]&& this[_0x5b48[1567]]()?this[_0x5b48[1570]](_0x43b0x2):this[_0x5b48[1571]](_0x43b0x2)};mxShape[_0x5b48[202]][_0x5b48[1569]]= function(){return document[_0x5b48[509]](mxConstants.NS_SVG,_0x5b48[449])};mxShape[_0x5b48[202]][_0x5b48[1571]]= function(){var _0x43b0x2=document[_0x5b48[55]](mxClient[_0x5b48[463]]+ _0x5b48[1499]);_0x43b0x2[_0x5b48[124]][_0x5b48[491]]= _0x5b48[492];return _0x43b0x2};mxShape[_0x5b48[202]][_0x5b48[1570]]= function(){var _0x43b0x2=document[_0x5b48[55]](_0x5b48[485]);_0x43b0x2[_0x5b48[124]][_0x5b48[491]]= _0x5b48[492];return _0x43b0x2};mxShape[_0x5b48[202]][_0x5b48[1572]]= function(){this[_0x5b48[258]]()};mxShape[_0x5b48[202]][_0x5b48[258]]= function(){this[_0x5b48[1573]]();this[_0x5b48[1574]]()?(this[_0x5b48[252]][_0x5b48[124]][_0x5b48[187]]= _0x5b48[110],_0x5b48[529]== this[_0x5b48[252]][_0x5b48[301]]&& this[_0x5b48[1567]]()?this[_0x5b48[1575]]():this[_0x5b48[1576]](),this[_0x5b48[1577]]()):(this[_0x5b48[252]][_0x5b48[124]][_0x5b48[187]]= _0x5b48[188],this[_0x5b48[1563]]= null)};mxShape[_0x5b48[202]][_0x5b48[1573]]= function(){var _0x43b0x2=this[_0x5b48[1525]];if(null!= _0x43b0x2&& 0< _0x43b0x2[_0x5b48[67]]&& null!= _0x43b0x2[0]){this[_0x5b48[1562]]= new mxRectangle(Number(_0x43b0x2[0][_0x5b48[235]]),Number(_0x43b0x2[0][_0x5b48[236]]),1,1);for(var _0x43b0x3=1;_0x43b0x3< this[_0x5b48[1525]][_0x5b48[67]];_0x43b0x3++){null!= _0x43b0x2[_0x43b0x3]&& this[_0x5b48[1562]][_0x5b48[99]]( new mxRectangle(Number(_0x43b0x2[_0x43b0x3][_0x5b48[235]]),Number(_0x43b0x2[_0x43b0x3][_0x5b48[236]]),1,1))}}};mxShape[_0x5b48[202]][_0x5b48[1574]]= function(){return null!= this[_0x5b48[1562]]&& !isNaN(this[_0x5b48[1562]][_0x5b48[235]])&& !isNaN(this[_0x5b48[1562]][_0x5b48[236]])&& !isNaN(this[_0x5b48[1562]][_0x5b48[117]])&& !isNaN(this[_0x5b48[1562]][_0x5b48[119]])&& 0< this[_0x5b48[1562]][_0x5b48[117]]&& 0< this[_0x5b48[1562]][_0x5b48[119]]};mxShape[_0x5b48[202]][_0x5b48[1578]]= function(){var _0x43b0x2=document[_0x5b48[55]](mxClient[_0x5b48[463]]+ _0x5b48[1499]);_0x43b0x2[_0x5b48[124]][_0x5b48[491]]= _0x5b48[492];_0x43b0x2[_0x5b48[124]][_0x5b48[117]]= this[_0x5b48[252]][_0x5b48[124]][_0x5b48[117]];_0x43b0x2[_0x5b48[124]][_0x5b48[119]]= this[_0x5b48[252]][_0x5b48[124]][_0x5b48[119]];return _0x43b0x2};mxShape[_0x5b48[202]][_0x5b48[1576]]= function(){var _0x43b0x2=this[_0x5b48[1579]]();for(_0x43b0x2[_0x5b48[1229]]= this[_0x5b48[1229]];this[_0x5b48[252]][_0x5b48[1580]]();){this[_0x5b48[252]][_0x5b48[266]](this[_0x5b48[252]][_0x5b48[1581]])};this[_0x5b48[1209]](_0x43b0x2);this[_0x5b48[252]]!= _0x43b0x2[_0x5b48[813]]&& this[_0x5b48[252]][_0x5b48[1583]](_0x5b48[1582],_0x43b0x2[_0x5b48[813]][_0x5b48[342]]);_0x5b48[529]== this[_0x5b48[252]][_0x5b48[301]]&& 8== document[_0x5b48[5]]&& (this[_0x5b48[252]][_0x5b48[124]][_0x5b48[347]]= _0x5b48[110],(null== this[_0x5b48[1561]]|| !this[_0x5b48[1565]])&& mxUtils[_0x5b48[1584]](this[_0x5b48[252]]));this[_0x5b48[1585]](_0x43b0x2)};mxShape[_0x5b48[202]][_0x5b48[1579]]= function(){var _0x43b0x2=null,_0x43b0x3=null;if(null!= this[_0x5b48[252]][_0x5b48[538]]){_0x43b0x2= new mxSvgCanvas2D(this[_0x5b48[252]],!1),_0x43b0x2[_0x5b48[1345]]= this[_0x5b48[1564]],_0x43b0x2[_0x5b48[1347]]= mxClient[_0x5b48[133]]&& !mxClient[_0x5b48[75]]&& !mxClient[_0x5b48[76]],_0x43b0x3= this[_0x5b48[1568]](),0!= _0x43b0x3?this[_0x5b48[252]][_0x5b48[57]](_0x5b48[535],_0x5b48[536]+ _0x43b0x3+ _0x5b48[537]+ _0x43b0x3+ _0x5b48[460]):this[_0x5b48[252]][_0x5b48[1390]](_0x5b48[535])}else {this[_0x5b48[1586]]();var _0x43b0x4=Math[_0x5b48[160]](1,Math[_0x5b48[488]](this[_0x5b48[1562]][_0x5b48[117]])),_0x43b0x5=Math[_0x5b48[160]](1,Math[_0x5b48[488]](this[_0x5b48[1562]][_0x5b48[119]])),_0x43b0x3=8== document[_0x5b48[5]]&& this[_0x5b48[1566]]()?this[_0x5b48[1578]]():this[_0x5b48[252]],_0x43b0x2= new mxVmlCanvas2D(_0x43b0x3,!1);_0x5b48[110]!= _0x43b0x3[_0x5b48[337]]&& (_0x43b0x3[_0x5b48[1462]]= _0x43b0x4* this[_0x5b48[1460]]+ _0x5b48[537]+ _0x43b0x5* this[_0x5b48[1460]],_0x43b0x2[_0x5b48[255]](this[_0x5b48[1460]]),_0x43b0x2[_0x5b48[1460]]= this[_0x5b48[1460]]);_0x43b0x3= this[_0x5b48[255]];_0x43b0x2[_0x5b48[513]](-Math[_0x5b48[488]](this[_0x5b48[1562]][_0x5b48[235]]/ _0x43b0x3),-Math[_0x5b48[488]](this[_0x5b48[1562]][_0x5b48[236]]/ _0x43b0x3))};return _0x43b0x2};mxShape[_0x5b48[202]][_0x5b48[1586]]= function(){this[_0x5b48[252]][_0x5b48[124]][_0x5b48[361]]= Math[_0x5b48[488]](this[_0x5b48[1562]][_0x5b48[235]])+ _0x5b48[168];this[_0x5b48[252]][_0x5b48[124]][_0x5b48[125]]= Math[_0x5b48[488]](this[_0x5b48[1562]][_0x5b48[236]])+ _0x5b48[168];var _0x43b0x2=Math[_0x5b48[160]](1,Math[_0x5b48[488]](this[_0x5b48[1562]][_0x5b48[117]])),_0x43b0x3=Math[_0x5b48[160]](1,Math[_0x5b48[488]](this[_0x5b48[1562]][_0x5b48[119]]));this[_0x5b48[252]][_0x5b48[124]][_0x5b48[117]]= _0x43b0x2+ _0x5b48[168];this[_0x5b48[252]][_0x5b48[124]][_0x5b48[119]]= _0x43b0x3+ _0x5b48[168];this[_0x5b48[252]][_0x5b48[124]][_0x5b48[277]]= _0x5b48[189]};mxShape[_0x5b48[202]][_0x5b48[1585]]= function(_0x43b0x2){if(_0x43b0x2 instanceof mxSvgCanvas2D){for(var _0x43b0x3 in _0x43b0x2[_0x5b48[1339]]){var _0x43b0x4=_0x43b0x2[_0x5b48[1339]][_0x43b0x3];_0x43b0x4[_0x5b48[1587]]= (_0x43b0x4[_0x5b48[1587]]|| 0)+ 1};this[_0x5b48[1589]](this[_0x5b48[1588]]);this[_0x5b48[1588]]= _0x43b0x2[_0x5b48[1339]]}};mxShape[_0x5b48[202]][_0x5b48[1209]]= function(_0x43b0x2){var _0x43b0x3=this[_0x5b48[255]],_0x43b0x4=this[_0x5b48[1562]][_0x5b48[235]]/ _0x43b0x3,_0x43b0x5=this[_0x5b48[1562]][_0x5b48[236]]/ _0x43b0x3,_0x43b0x9=this[_0x5b48[1562]][_0x5b48[117]]/ _0x43b0x3,_0x43b0xa=this[_0x5b48[1562]][_0x5b48[119]]/ _0x43b0x3;if(this[_0x5b48[1590]]()){var _0x43b0x12=(_0x43b0x9- _0x43b0xa)/ 2,_0x43b0x4=_0x43b0x4+ _0x43b0x12,_0x43b0x5=_0x43b0x5- _0x43b0x12,_0x43b0x12=_0x43b0x9,_0x43b0x9=_0x43b0xa,_0x43b0xa=_0x43b0x12};this[_0x5b48[1591]](_0x43b0x2,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa);this[_0x5b48[1592]](_0x43b0x2,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa);if(null!= this[_0x5b48[1561]]){this[_0x5b48[1593]](_0x43b0x2,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa)}else {if(_0x43b0x2[_0x5b48[1250]](this[_0x5b48[1307]]),null!= this[_0x5b48[1525]]){_0x43b0x4= [];for(_0x43b0x5= 0;_0x43b0x5< this[_0x5b48[1525]][_0x5b48[67]];_0x43b0x5++){_0x43b0x4[_0x5b48[207]]( new mxPoint(this[_0x5b48[1525]][_0x43b0x5][_0x5b48[235]]/ _0x43b0x3,this[_0x5b48[1525]][_0x43b0x5][_0x5b48[236]]/ _0x43b0x3))};this[_0x5b48[1594]](_0x43b0x2,_0x43b0x4)}else {this[_0x5b48[1595]](_0x43b0x2,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa)}}};mxShape[_0x5b48[202]][_0x5b48[1592]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){var _0x43b0xa=null;null!= this[_0x5b48[124]]&& (_0x43b0xa= this[_0x5b48[124]][_0x5b48[649]]);_0x43b0x2[_0x5b48[1243]](this[_0x5b48[461]]/ 100);null!= this[_0x5b48[1596]]&& _0x43b0x2[_0x5b48[1267]](this[_0x5b48[1596]]);null!= this[_0x5b48[1522]]&& _0x43b0x2[_0x5b48[1251]](this[_0x5b48[1522]]);null!= _0x43b0xa&& _0x43b0x2[_0x5b48[1252]](_0x43b0xa);null!= this[_0x5b48[1299]]?(_0x43b0x3= this[_0x5b48[1597]](_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9),_0x43b0x2[_0x5b48[1246]](this[_0x5b48[1334]],this[_0x5b48[1299]],_0x43b0x3[_0x5b48[235]],_0x43b0x3[_0x5b48[236]],_0x43b0x3[_0x5b48[117]],_0x43b0x3[_0x5b48[119]],this[_0x5b48[607]])):_0x43b0x2[_0x5b48[1245]](this[_0x5b48[1334]]);_0x43b0x2[_0x5b48[1249]](this[_0x5b48[1336]])};mxShape[_0x5b48[202]][_0x5b48[1597]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){return new mxRectangle(_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9)};mxShape[_0x5b48[202]][_0x5b48[1591]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){_0x43b0x2[_0x5b48[255]](this[_0x5b48[255]]);_0x43b0x2[_0x5b48[1294]](this[_0x5b48[1598]](),this[_0x5b48[623]],this[_0x5b48[624]],_0x43b0x3+ _0x43b0x5/ 2,_0x43b0x4+ _0x43b0x9/ 2)};mxShape[_0x5b48[202]][_0x5b48[1593]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){this[_0x5b48[1565]]&& (this[_0x5b48[507]]== mxConstants[_0x5b48[508]]?this[_0x5b48[1599]](this[_0x5b48[252]],_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9):8!= document[_0x5b48[5]]&& this[_0x5b48[1600]](this[_0x5b48[252]]));this[_0x5b48[1561]][_0x5b48[1546]](_0x43b0x2,this,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9)};mxShape[_0x5b48[202]][_0x5b48[1595]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){this[_0x5b48[1601]](_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9);_0x43b0x2[_0x5b48[1267]](!1);this[_0x5b48[1602]](_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9)};mxShape[_0x5b48[202]][_0x5b48[1601]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){};mxShape[_0x5b48[202]][_0x5b48[1602]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){};mxShape[_0x5b48[202]][_0x5b48[1594]]= function(_0x43b0x2,_0x43b0x3){};mxShape[_0x5b48[202]][_0x5b48[1603]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=mxUtils[_0x5b48[433]](this[_0x5b48[124]],mxConstants.STYLE_ARCSIZE,100* mxConstants[_0x5b48[1557]])/ 100;return Math[_0x5b48[243]](_0x43b0x2* _0x43b0x4,_0x43b0x3* _0x43b0x4)};mxShape[_0x5b48[202]][_0x5b48[1604]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa){var _0x43b0x12=Math[_0x5b48[430]](this[_0x5b48[1307]]/ 2);_0x43b0x2[_0x5b48[1246]](_0x5b48[1605],_0x5b48[1605],_0x43b0x3,_0x43b0x4,_0x43b0x5,0.6* _0x43b0x9,_0x5b48[701],0.9,0.1);_0x43b0x2[_0x5b48[1275]]();_0x43b0xa+= 2* _0x43b0x12;this[_0x5b48[1606]]?(_0x43b0x2[_0x5b48[1276]](_0x43b0x3- _0x43b0x12+ _0x43b0xa,_0x43b0x4- _0x43b0x12),_0x43b0x2[_0x5b48[1278]](_0x43b0x3- _0x43b0x12,_0x43b0x4- _0x43b0x12,_0x43b0x3- _0x43b0x12,_0x43b0x4- _0x43b0x12+ _0x43b0xa),_0x43b0x2[_0x5b48[1277]](_0x43b0x3- _0x43b0x12,_0x43b0x4+ 0.4* _0x43b0x9),_0x43b0x2[_0x5b48[1278]](_0x43b0x3+ 0.5* _0x43b0x5,_0x43b0x4+ 0.7* _0x43b0x9,_0x43b0x3+ _0x43b0x5+ _0x43b0x12,_0x43b0x4+ 0.4* _0x43b0x9),_0x43b0x2[_0x5b48[1277]](_0x43b0x3+ _0x43b0x5+ _0x43b0x12,_0x43b0x4- _0x43b0x12+ _0x43b0xa),_0x43b0x2[_0x5b48[1278]](_0x43b0x3+ _0x43b0x5+ _0x43b0x12,_0x43b0x4- _0x43b0x12,_0x43b0x3+ _0x43b0x5+ _0x43b0x12- _0x43b0xa,_0x43b0x4- _0x43b0x12)):(_0x43b0x2[_0x5b48[1276]](_0x43b0x3- _0x43b0x12,_0x43b0x4- _0x43b0x12),_0x43b0x2[_0x5b48[1277]](_0x43b0x3- _0x43b0x12,_0x43b0x4+ 0.4* _0x43b0x9),_0x43b0x2[_0x5b48[1278]](_0x43b0x3+ 0.5* _0x43b0x5,_0x43b0x4+ 0.7* _0x43b0x9,_0x43b0x3+ _0x43b0x5+ _0x43b0x12,_0x43b0x4+ 0.4* _0x43b0x9),_0x43b0x2[_0x5b48[1277]](_0x43b0x3+ _0x43b0x5+ _0x43b0x12,_0x43b0x4- _0x43b0x12));_0x43b0x2[_0x5b48[268]]();_0x43b0x2[_0x5b48[1334]]()};mxShape[_0x5b48[202]][_0x5b48[183]]= function(_0x43b0x2){this[_0x5b48[724]]= _0x43b0x2;this[_0x5b48[124]]= _0x43b0x2[_0x5b48[124]];if(null!= this[_0x5b48[124]]){this[_0x5b48[1334]]= mxUtils[_0x5b48[433]](this[_0x5b48[124]],mxConstants.STYLE_FILLCOLOR,this[_0x5b48[1334]]);this[_0x5b48[1299]]= mxUtils[_0x5b48[433]](this[_0x5b48[124]],mxConstants.STYLE_GRADIENTCOLOR,this[_0x5b48[1299]]);this[_0x5b48[607]]= mxUtils[_0x5b48[433]](this[_0x5b48[124]],mxConstants.STYLE_GRADIENT_DIRECTION,this[_0x5b48[607]]);this[_0x5b48[461]]= mxUtils[_0x5b48[433]](this[_0x5b48[124]],mxConstants.STYLE_OPACITY,this[_0x5b48[461]]);this[_0x5b48[1336]]= mxUtils[_0x5b48[433]](this[_0x5b48[124]],mxConstants.STYLE_STROKECOLOR,this[_0x5b48[1336]]);this[_0x5b48[1307]]= mxUtils[_0x5b48[1550]](this[_0x5b48[124]],mxConstants.STYLE_STROKEWIDTH,this[_0x5b48[1307]]);this[_0x5b48[657]]= mxUtils[_0x5b48[433]](this[_0x5b48[124]],mxConstants.STYLE_SPACING,this[_0x5b48[657]]);this[_0x5b48[644]]= mxUtils[_0x5b48[1550]](this[_0x5b48[124]],mxConstants.STYLE_STARTSIZE,this[_0x5b48[644]]);this[_0x5b48[643]]= mxUtils[_0x5b48[1550]](this[_0x5b48[124]],mxConstants.STYLE_ENDSIZE,this[_0x5b48[643]]);this[_0x5b48[642]]= mxUtils[_0x5b48[433]](this[_0x5b48[124]],mxConstants.STYLE_STARTARROW,this[_0x5b48[642]]);this[_0x5b48[641]]= mxUtils[_0x5b48[433]](this[_0x5b48[124]],mxConstants.STYLE_ENDARROW,this[_0x5b48[641]]);this[_0x5b48[603]]= mxUtils[_0x5b48[433]](this[_0x5b48[124]],mxConstants.STYLE_ROTATION,this[_0x5b48[603]]);this[_0x5b48[663]]= mxUtils[_0x5b48[433]](this[_0x5b48[124]],mxConstants.STYLE_DIRECTION,this[_0x5b48[663]]);this[_0x5b48[623]]= 1== mxUtils[_0x5b48[433]](this[_0x5b48[124]],mxConstants.STYLE_FLIPH,0);this[_0x5b48[624]]= 1== mxUtils[_0x5b48[433]](this[_0x5b48[124]],mxConstants.STYLE_FLIPV,0);null!= this[_0x5b48[1561]]&& (this[_0x5b48[623]]= 1== mxUtils[_0x5b48[433]](this[_0x5b48[124]],_0x5b48[1607],0)|| this[_0x5b48[623]],this[_0x5b48[624]]= 1== mxUtils[_0x5b48[433]](this[_0x5b48[124]],_0x5b48[1608],0)|| this[_0x5b48[624]]);if(_0x5b48[700]== this[_0x5b48[663]]|| _0x5b48[701]== this[_0x5b48[663]]){_0x43b0x2= this[_0x5b48[623]],this[_0x5b48[623]]= this[_0x5b48[624]],this[_0x5b48[624]]= _0x43b0x2};this[_0x5b48[1596]]= 1== mxUtils[_0x5b48[433]](this[_0x5b48[124]],mxConstants.STYLE_SHADOW,this[_0x5b48[1596]]);this[_0x5b48[1522]]= 1== mxUtils[_0x5b48[433]](this[_0x5b48[124]],mxConstants.STYLE_DASHED,this[_0x5b48[1522]]);this[_0x5b48[1606]]= 1== mxUtils[_0x5b48[433]](this[_0x5b48[124]],mxConstants.STYLE_ROUNDED,this[_0x5b48[1606]]);this[_0x5b48[617]]= 1== mxUtils[_0x5b48[433]](this[_0x5b48[124]],mxConstants.STYLE_GLASS,this[_0x5b48[617]]);_0x5b48[130]== this[_0x5b48[1334]]&& (this[_0x5b48[1334]]= null);_0x5b48[130]== this[_0x5b48[1299]]&& (this[_0x5b48[1299]]= null);_0x5b48[130]== this[_0x5b48[1336]]&& (this[_0x5b48[1336]]= null)}};mxShape[_0x5b48[202]][_0x5b48[1609]]= function(_0x43b0x2){null== _0x43b0x2&& (_0x43b0x2= _0x5b48[110]);this[_0x5b48[270]]= _0x43b0x2;null!= this[_0x5b48[252]]&& (this[_0x5b48[252]][_0x5b48[124]][_0x5b48[270]]= _0x43b0x2)};mxShape[_0x5b48[202]][_0x5b48[1610]]= function(){return this[_0x5b48[270]]};mxShape[_0x5b48[202]][_0x5b48[1577]]= function(){if(null!= this[_0x5b48[1562]]){var _0x43b0x2=this[_0x5b48[1611]]();if(null!= _0x43b0x2){this[_0x5b48[1612]](_0x43b0x2);var _0x43b0x3=this[_0x5b48[1598]]();0!= _0x43b0x3&& (_0x43b0x2= mxUtils[_0x5b48[1613]](_0x43b0x2,_0x43b0x3));_0x43b0x2[_0x5b48[235]]= Math[_0x5b48[519]](_0x43b0x2[_0x5b48[235]]);_0x43b0x2[_0x5b48[236]]= Math[_0x5b48[519]](_0x43b0x2[_0x5b48[236]]);_0x43b0x2[_0x5b48[117]]= Math[_0x5b48[430]](_0x43b0x2[_0x5b48[117]]);_0x43b0x2[_0x5b48[119]]= Math[_0x5b48[430]](_0x43b0x2[_0x5b48[119]])};this[_0x5b48[1563]]= _0x43b0x2}};mxShape[_0x5b48[202]][_0x5b48[1611]]= function(){var _0x43b0x2=this[_0x5b48[1562]][_0x5b48[238]]();if(this[_0x5b48[1590]]()){var _0x43b0x3=(_0x43b0x2[_0x5b48[117]]- _0x43b0x2[_0x5b48[119]])/ 2;_0x43b0x2[_0x5b48[235]]+= _0x43b0x3;_0x43b0x2[_0x5b48[236]]-= _0x43b0x3;_0x43b0x3= _0x43b0x2[_0x5b48[117]];_0x43b0x2[_0x5b48[117]]= _0x43b0x2[_0x5b48[119]];_0x43b0x2[_0x5b48[119]]= _0x43b0x3};return _0x43b0x2};mxShape[_0x5b48[202]][_0x5b48[1612]]= function(_0x43b0x2){this[_0x5b48[1596]]&& (_0x43b0x2[_0x5b48[117]]+= Math[_0x5b48[430]](mxConstants[_0x5b48[1237]]* this[_0x5b48[255]]),_0x43b0x2[_0x5b48[119]]+= Math[_0x5b48[430]](mxConstants[_0x5b48[1238]]* this[_0x5b48[255]]));var _0x43b0x3=Math[_0x5b48[430]](this[_0x5b48[1307]]* this[_0x5b48[255]]);_0x43b0x2[_0x5b48[244]](Math[_0x5b48[430]](_0x43b0x3/ 2))};mxShape[_0x5b48[202]][_0x5b48[1590]]= function(){return null== this[_0x5b48[1561]]&& (_0x5b48[700]== this[_0x5b48[663]]|| _0x5b48[701]== this[_0x5b48[663]])};mxShape[_0x5b48[202]][_0x5b48[1614]]= function(){return null!= this[_0x5b48[603]]?this[_0x5b48[603]]:0};mxShape[_0x5b48[202]][_0x5b48[1615]]= function(){var _0x43b0x2=this[_0x5b48[1614]]();1!= mxUtils[_0x5b48[433]](this[_0x5b48[124]],mxConstants.STYLE_HORIZONTAL,1)&& (_0x43b0x2+= mxText[_0x5b48[202]][_0x5b48[1616]]);return _0x43b0x2};mxShape[_0x5b48[202]][_0x5b48[1598]]= function(){var _0x43b0x2=this[_0x5b48[1614]]();null!= this[_0x5b48[663]]&& (_0x5b48[700]== this[_0x5b48[663]]?_0x43b0x2+= 270:_0x5b48[703]== this[_0x5b48[663]]?_0x43b0x2+= 180:_0x5b48[701]== this[_0x5b48[663]]&& (_0x43b0x2+= 90));return _0x43b0x2};mxShape[_0x5b48[202]][_0x5b48[1599]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){_0x43b0x2= document[_0x5b48[509]](mxConstants.NS_SVG,_0x5b48[1319]);_0x43b0x2[_0x5b48[57]](_0x5b48[235],_0x43b0x3);_0x43b0x2[_0x5b48[57]](_0x5b48[236],_0x43b0x4);_0x43b0x2[_0x5b48[57]](_0x5b48[117],_0x43b0x5);_0x43b0x2[_0x5b48[57]](_0x5b48[119],_0x43b0x9);_0x43b0x2[_0x5b48[57]](_0x5b48[1334],_0x5b48[130]);_0x43b0x2[_0x5b48[57]](_0x5b48[1336],_0x5b48[130]);_0x43b0x2[_0x5b48[57]](_0x5b48[1377],_0x5b48[1378]);this[_0x5b48[252]][_0x5b48[62]](_0x43b0x2)};mxShape[_0x5b48[202]][_0x5b48[1600]]= function(_0x43b0x2){_0x43b0x2[_0x5b48[124]][_0x5b48[1617]]= _0x5b48[1618]+ mxClient[_0x5b48[88]]+ _0x5b48[1619]};mxShape[_0x5b48[202]][_0x5b48[1589]]= function(_0x43b0x2){if(null!= _0x43b0x2){for(var _0x43b0x3 in _0x43b0x2){var _0x43b0x4=_0x43b0x2[_0x43b0x3];_0x43b0x4[_0x5b48[1587]]= (_0x43b0x4[_0x5b48[1587]]|| 0)- 1;0== _0x43b0x4[_0x5b48[1587]]&& null!= _0x43b0x4[_0x5b48[265]]&& _0x43b0x4[_0x5b48[265]][_0x5b48[266]](_0x43b0x4)}}};mxShape[_0x5b48[202]][_0x5b48[515]]= function(){null!= this[_0x5b48[252]]&& (mxEvent[_0x5b48[762]](this[_0x5b48[252]]),null!= this[_0x5b48[252]][_0x5b48[265]]&& this[_0x5b48[252]][_0x5b48[265]][_0x5b48[266]](this[_0x5b48[252]]),this[_0x5b48[252]]= null);this[_0x5b48[1589]](this[_0x5b48[1588]]);this[_0x5b48[1588]]= null};var mxStencilRegistry={stencils:[],addStencil:function(_0x43b0x2,_0x43b0x3){mxStencilRegistry[_0x5b48[1620]][_0x43b0x2]= _0x43b0x3},getStencil:function(_0x43b0x2){return mxStencilRegistry[_0x5b48[1620]][_0x43b0x2]}},mxMarker={markers:[],addMarker:function(_0x43b0x2,_0x43b0x3){mxMarker[_0x5b48[1621]][_0x43b0x2]= _0x43b0x3},createMarker:function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa,_0x43b0x12,_0x43b0x13,_0x43b0x14,_0x43b0x15){var _0x43b0x16=mxMarker[_0x5b48[1621]][_0x43b0x4];return null!= _0x43b0x16?_0x43b0x16(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa,_0x43b0x12,_0x43b0x13,_0x43b0x14,_0x43b0x15):null}};(function(){function _0x43b0x2(_0x43b0x2,_0x43b0x3,_0x43b0x9,_0x43b0xa,_0x43b0x12,_0x43b0x13,_0x43b0x14,_0x43b0x15,_0x43b0x16,_0x43b0x17){_0x43b0x3= 1.118* _0x43b0x12* _0x43b0x16;_0x43b0x15= 1.118* _0x43b0x13* _0x43b0x16;_0x43b0x12*= _0x43b0x14+ _0x43b0x16;_0x43b0x13*= _0x43b0x14+ _0x43b0x16;var _0x43b0x18=_0x43b0xa[_0x5b48[238]]();_0x43b0x18[_0x5b48[235]]-= _0x43b0x3;_0x43b0x18[_0x5b48[236]]-= _0x43b0x15;_0x43b0x14= _0x43b0x9!= mxConstants[_0x5b48[1622]]?1:0.75;_0x43b0xa[_0x5b48[235]]+= -_0x43b0x12* _0x43b0x14 - _0x43b0x3;_0x43b0xa[_0x5b48[236]]+= -_0x43b0x13* _0x43b0x14 - _0x43b0x15;return function(){_0x43b0x2[_0x5b48[1275]]();_0x43b0x2[_0x5b48[1276]](_0x43b0x18[_0x5b48[235]],_0x43b0x18[_0x5b48[236]]);_0x43b0x2[_0x5b48[1277]](_0x43b0x18[_0x5b48[235]]- _0x43b0x12- _0x43b0x13/ 2,_0x43b0x18[_0x5b48[236]]- _0x43b0x13+ _0x43b0x12/ 2);_0x43b0x9== mxConstants[_0x5b48[1622]]&& _0x43b0x2[_0x5b48[1277]](_0x43b0x18[_0x5b48[235]]- 3* _0x43b0x12/ 4,_0x43b0x18[_0x5b48[236]]- 3* _0x43b0x13/ 4);_0x43b0x2[_0x5b48[1277]](_0x43b0x18[_0x5b48[235]]+ _0x43b0x13/ 2- _0x43b0x12,_0x43b0x18[_0x5b48[236]]- _0x43b0x13- _0x43b0x12/ 2);_0x43b0x2[_0x5b48[268]]();_0x43b0x17?_0x43b0x2[_0x5b48[1337]]():_0x43b0x2[_0x5b48[1336]]()}}function _0x43b0x3(_0x43b0x2,_0x43b0x3,_0x43b0x9,_0x43b0xa,_0x43b0x12,_0x43b0x13,_0x43b0x14,_0x43b0x15,_0x43b0x16,_0x43b0x17){_0x43b0x15= _0x43b0x9== mxConstants[_0x5b48[1623]]?0.7071:0.9862;_0x43b0x3= _0x43b0x12* _0x43b0x16* _0x43b0x15;_0x43b0x15*= _0x43b0x13* _0x43b0x16;_0x43b0x12*= _0x43b0x14+ _0x43b0x16;_0x43b0x13*= _0x43b0x14+ _0x43b0x16;var _0x43b0x18=_0x43b0xa[_0x5b48[238]]();_0x43b0x18[_0x5b48[235]]-= _0x43b0x3;_0x43b0x18[_0x5b48[236]]-= _0x43b0x15;_0x43b0xa[_0x5b48[235]]+= -_0x43b0x12- _0x43b0x3;_0x43b0xa[_0x5b48[236]]+= -_0x43b0x13- _0x43b0x15;var _0x43b0x19=_0x43b0x9== mxConstants[_0x5b48[1623]]?2:3.4;return function(){_0x43b0x2[_0x5b48[1275]]();_0x43b0x2[_0x5b48[1276]](_0x43b0x18[_0x5b48[235]],_0x43b0x18[_0x5b48[236]]);_0x43b0x2[_0x5b48[1277]](_0x43b0x18[_0x5b48[235]]- _0x43b0x12/ 2- _0x43b0x13/ _0x43b0x19,_0x43b0x18[_0x5b48[236]]+ _0x43b0x12/ _0x43b0x19- _0x43b0x13/ 2);_0x43b0x2[_0x5b48[1277]](_0x43b0x18[_0x5b48[235]]- _0x43b0x12,_0x43b0x18[_0x5b48[236]]- _0x43b0x13);_0x43b0x2[_0x5b48[1277]](_0x43b0x18[_0x5b48[235]]- _0x43b0x12/ 2+ _0x43b0x13/ _0x43b0x19,_0x43b0x18[_0x5b48[236]]- _0x43b0x13/ 2- _0x43b0x12/ _0x43b0x19);_0x43b0x2[_0x5b48[268]]();_0x43b0x17?_0x43b0x2[_0x5b48[1337]]():_0x43b0x2[_0x5b48[1336]]()}}mxMarker[_0x5b48[1624]](_0x5b48[693],_0x43b0x2);mxMarker[_0x5b48[1624]](_0x5b48[694],_0x43b0x2);mxMarker[_0x5b48[1624]](_0x5b48[392],function(_0x43b0x2,_0x43b0x3,_0x43b0x9,_0x43b0xa,_0x43b0x12,_0x43b0x13,_0x43b0x14,_0x43b0x15,_0x43b0x16,_0x43b0x17){_0x43b0x3= 1.118* _0x43b0x12* _0x43b0x16;_0x43b0x9= 1.118* _0x43b0x13* _0x43b0x16;_0x43b0x12*= _0x43b0x14+ _0x43b0x16;_0x43b0x13*= _0x43b0x14+ _0x43b0x16;var _0x43b0x18=_0x43b0xa[_0x5b48[238]]();_0x43b0x18[_0x5b48[235]]-= _0x43b0x3;_0x43b0x18[_0x5b48[236]]-= _0x43b0x9;_0x43b0xa[_0x5b48[235]]+= 2* -_0x43b0x3;_0x43b0xa[_0x5b48[236]]+= 2* -_0x43b0x9;return function(){_0x43b0x2[_0x5b48[1275]]();_0x43b0x2[_0x5b48[1276]](_0x43b0x18[_0x5b48[235]]- _0x43b0x12- _0x43b0x13/ 2,_0x43b0x18[_0x5b48[236]]- _0x43b0x13+ _0x43b0x12/ 2);_0x43b0x2[_0x5b48[1277]](_0x43b0x18[_0x5b48[235]],_0x43b0x18[_0x5b48[236]]);_0x43b0x2[_0x5b48[1277]](_0x43b0x18[_0x5b48[235]]+ _0x43b0x13/ 2- _0x43b0x12,_0x43b0x18[_0x5b48[236]]- _0x43b0x13- _0x43b0x12/ 2);_0x43b0x2[_0x5b48[1336]]()}});mxMarker[_0x5b48[1624]](_0x5b48[695],function(_0x43b0x2,_0x43b0x3,_0x43b0x9,_0x43b0xa,_0x43b0x12,_0x43b0x13,_0x43b0x14,_0x43b0x15,_0x43b0x16,_0x43b0x17){var _0x43b0x18=_0x43b0x14/ 2,_0x43b0x19=_0x43b0xa[_0x5b48[238]]();_0x43b0xa[_0x5b48[235]]-= _0x43b0x12* _0x43b0x18;_0x43b0xa[_0x5b48[236]]-= _0x43b0x13* _0x43b0x18;return function(){_0x43b0x2[_0x5b48[680]](_0x43b0x19[_0x5b48[235]]- _0x43b0x18,_0x43b0x19[_0x5b48[236]]- _0x43b0x18,_0x43b0x14,_0x43b0x14);_0x43b0x17?_0x43b0x2[_0x5b48[1337]]():_0x43b0x2[_0x5b48[1336]]()}});mxMarker[_0x5b48[1624]](_0x5b48[696],_0x43b0x3);mxMarker[_0x5b48[1624]](_0x5b48[697],_0x43b0x3)})();function mxActor(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){mxShape[_0x5b48[239]](this);this[_0x5b48[1562]]= _0x43b0x2;this[_0x5b48[1334]]= _0x43b0x3;this[_0x5b48[1336]]= _0x43b0x4;this[_0x5b48[1307]]= null!= _0x43b0x5?_0x43b0x5:1}mxUtils[_0x5b48[1284]](mxActor,mxShape);mxActor[_0x5b48[202]][_0x5b48[1595]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){_0x43b0x2[_0x5b48[513]](_0x43b0x3,_0x43b0x4);_0x43b0x2[_0x5b48[1275]]();this[_0x5b48[1625]](_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9);_0x43b0x2[_0x5b48[1337]]()};mxActor[_0x5b48[202]][_0x5b48[1625]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){_0x43b0x3= _0x43b0x5/ 3;_0x43b0x2[_0x5b48[1276]](0,_0x43b0x9);_0x43b0x2[_0x5b48[1279]](0,3* _0x43b0x9/ 5,0,2* _0x43b0x9/ 5,_0x43b0x5/ 2,2* _0x43b0x9/ 5);_0x43b0x2[_0x5b48[1279]](_0x43b0x5/ 2- _0x43b0x3,2* _0x43b0x9/ 5,_0x43b0x5/ 2- _0x43b0x3,0,_0x43b0x5/ 2,0);_0x43b0x2[_0x5b48[1279]](_0x43b0x5/ 2+ _0x43b0x3,0,_0x43b0x5/ 2+ _0x43b0x3,2* _0x43b0x9/ 5,_0x43b0x5/ 2,2* _0x43b0x9/ 5);_0x43b0x2[_0x5b48[1279]](_0x43b0x5,2* _0x43b0x9/ 5,_0x43b0x5,3* _0x43b0x9/ 5,_0x43b0x5,_0x43b0x9);_0x43b0x2[_0x5b48[268]]()};function mxCloud(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){mxActor[_0x5b48[239]](this);this[_0x5b48[1562]]= _0x43b0x2;this[_0x5b48[1334]]= _0x43b0x3;this[_0x5b48[1336]]= _0x43b0x4;this[_0x5b48[1307]]= null!= _0x43b0x5?_0x43b0x5:1}mxUtils[_0x5b48[1284]](mxCloud,mxActor);mxCloud[_0x5b48[202]][_0x5b48[1625]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){_0x43b0x2[_0x5b48[1276]](0.25* _0x43b0x5,0.25* _0x43b0x9);_0x43b0x2[_0x5b48[1279]](0.05* _0x43b0x5,0.25* _0x43b0x9,0,0.5* _0x43b0x9,0.16* _0x43b0x5,0.55* _0x43b0x9);_0x43b0x2[_0x5b48[1279]](0,0.66* _0x43b0x9,0.18* _0x43b0x5,0.9* _0x43b0x9,0.31* _0x43b0x5,0.8* _0x43b0x9);_0x43b0x2[_0x5b48[1279]](0.4* _0x43b0x5,_0x43b0x9,0.7* _0x43b0x5,_0x43b0x9,0.8* _0x43b0x5,0.8* _0x43b0x9);_0x43b0x2[_0x5b48[1279]](_0x43b0x5,0.8* _0x43b0x9,_0x43b0x5,0.6* _0x43b0x9,0.875* _0x43b0x5,0.5* _0x43b0x9);_0x43b0x2[_0x5b48[1279]](_0x43b0x5,0.3* _0x43b0x9,0.8* _0x43b0x5,0.1* _0x43b0x9,0.625* _0x43b0x5,0.2* _0x43b0x9);_0x43b0x2[_0x5b48[1279]](0.5* _0x43b0x5,0.05* _0x43b0x9,0.3* _0x43b0x5,0.05* _0x43b0x9,0.25* _0x43b0x5,0.25* _0x43b0x9);_0x43b0x2[_0x5b48[268]]()};function mxRectangleShape(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){mxShape[_0x5b48[239]](this);this[_0x5b48[1562]]= _0x43b0x2;this[_0x5b48[1334]]= _0x43b0x3;this[_0x5b48[1336]]= _0x43b0x4;this[_0x5b48[1307]]= null!= _0x43b0x5?_0x43b0x5:1}mxUtils[_0x5b48[1284]](mxRectangleShape,mxShape);mxRectangleShape[_0x5b48[202]][_0x5b48[1567]]= function(){return !this[_0x5b48[1606]]&& !this[_0x5b48[617]] && 0== this[_0x5b48[603]]};mxRectangleShape[_0x5b48[202]][_0x5b48[1601]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){if(this[_0x5b48[1606]]){var _0x43b0xa=mxUtils[_0x5b48[433]](this[_0x5b48[124]],mxConstants.STYLE_ARCSIZE,100* mxConstants[_0x5b48[1557]])/ 100,_0x43b0xa=Math[_0x5b48[243]](_0x43b0x5* _0x43b0xa,_0x43b0x9* _0x43b0xa);_0x43b0x2[_0x5b48[1320]](_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa,_0x43b0xa)}else {_0x43b0x2[_0x5b48[1319]](_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9)};_0x43b0x2[_0x5b48[1337]]()};mxRectangleShape[_0x5b48[202]][_0x5b48[1602]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){this[_0x5b48[617]]&& this[_0x5b48[1604]](_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,this[_0x5b48[1603]](_0x43b0x5+ this[_0x5b48[1307]],_0x43b0x9+ this[_0x5b48[1307]]))};mxRectangleShape[_0x5b48[202]][_0x5b48[1575]]= function(){this[_0x5b48[1626]](this[_0x5b48[252]]);this[_0x5b48[1627]](this[_0x5b48[252]]);this[_0x5b48[1628]](this[_0x5b48[252]])};mxRectangleShape[_0x5b48[202]][_0x5b48[1626]]= function(_0x43b0x2){var _0x43b0x3=9<= document[_0x5b48[5]]?0:Math[_0x5b48[430]](this[_0x5b48[1307]]* this[_0x5b48[255]]);_0x43b0x2[_0x5b48[124]][_0x5b48[1629]]= Math[_0x5b48[160]](1,_0x43b0x3)+ _0x5b48[168];_0x43b0x2[_0x5b48[124]][_0x5b48[277]]= _0x5b48[188];_0x43b0x2[_0x5b48[124]][_0x5b48[361]]= Math[_0x5b48[488]](this[_0x5b48[1562]][_0x5b48[235]]- _0x43b0x3/ 2)+ _0x5b48[168];_0x43b0x2[_0x5b48[124]][_0x5b48[125]]= Math[_0x5b48[488]](this[_0x5b48[1562]][_0x5b48[236]]- _0x43b0x3/ 2)+ _0x5b48[168];_0x5b48[462]== document[_0x5b48[135]]&& (_0x43b0x3= -_0x43b0x3);_0x43b0x2[_0x5b48[124]][_0x5b48[117]]= Math[_0x5b48[488]](Math[_0x5b48[160]](0,this[_0x5b48[1562]][_0x5b48[117]]+ _0x43b0x3))+ _0x5b48[168];_0x43b0x2[_0x5b48[124]][_0x5b48[119]]= Math[_0x5b48[488]](Math[_0x5b48[160]](0,this[_0x5b48[1562]][_0x5b48[119]]+ _0x43b0x3))+ _0x5b48[168]};mxRectangleShape[_0x5b48[202]][_0x5b48[1628]]= function(_0x43b0x2){var _0x43b0x3=this[_0x5b48[1336]];null!= _0x43b0x3&& _0x43b0x3!= mxConstants[_0x5b48[217]]?(_0x43b0x2[_0x5b48[124]][_0x5b48[1630]]= _0x43b0x3,this[_0x5b48[1522]]?_0x43b0x2[_0x5b48[124]][_0x5b48[465]]= _0x5b48[648]:0< this[_0x5b48[1307]]&& (_0x43b0x2[_0x5b48[124]][_0x5b48[465]]= _0x5b48[1631]),_0x43b0x2[_0x5b48[124]][_0x5b48[1629]]= Math[_0x5b48[160]](1,Math[_0x5b48[430]](this[_0x5b48[1307]]* this[_0x5b48[255]]))+ _0x5b48[168]):_0x43b0x2[_0x5b48[124]][_0x5b48[1629]]= _0x5b48[946];_0x43b0x3= this[_0x5b48[1334]];null!= _0x43b0x3&& _0x43b0x3!= mxConstants[_0x5b48[217]]?(_0x43b0x2[_0x5b48[124]][_0x5b48[1028]]= _0x43b0x3,_0x43b0x2[_0x5b48[124]][_0x5b48[1617]]= _0x5b48[130]):this[_0x5b48[1229]]?_0x43b0x2[_0x5b48[124]][_0x5b48[1028]]= _0x5b48[1373]:8== document[_0x5b48[5]]?mxUtils[_0x5b48[1584]](_0x43b0x2):this[_0x5b48[1600]](_0x43b0x2)};mxRectangleShape[_0x5b48[202]][_0x5b48[1627]]= function(_0x43b0x2){var _0x43b0x3=_0x5b48[110];100> this[_0x5b48[461]]&& (_0x43b0x3+= _0x5b48[459]+ this[_0x5b48[461]]+ _0x5b48[460]);this[_0x5b48[1596]]&& (_0x43b0x3+= _0x5b48[1632]+ Math[_0x5b48[488]](mxConstants[_0x5b48[1237]]* this[_0x5b48[255]])+ _0x5b48[1633]+ Math[_0x5b48[488]](mxConstants[_0x5b48[1238]]* this[_0x5b48[255]])+ _0x5b48[1634]+ mxConstants[_0x5b48[1235]]+ _0x5b48[1635]);if(this[_0x5b48[1299]]){var _0x43b0x4=this[_0x5b48[1334]],_0x43b0x5=this[_0x5b48[1299]],_0x43b0x9=_0x5b48[468],_0x43b0xa={east:0,south:1,west:2,north:3},_0x43b0x12=null!= this[_0x5b48[663]]?_0x43b0xa[this[_0x5b48[663]]]:0;null!= this[_0x5b48[607]]&& (_0x43b0x12= mxUtils[_0x5b48[1454]](_0x43b0x12+ _0x43b0xa[this[_0x5b48[607]]]- 1,4));1== _0x43b0x12?(_0x43b0x9= _0x5b48[500],_0x43b0xa= _0x43b0x4,_0x43b0x4= _0x43b0x5,_0x43b0x5= _0x43b0xa):2== _0x43b0x12?(_0x43b0xa= _0x43b0x4,_0x43b0x4= _0x43b0x5,_0x43b0x5= _0x43b0xa):3== _0x43b0x12&& (_0x43b0x9= _0x5b48[500]);_0x43b0x3+= _0x5b48[1636]+ _0x43b0x4+ _0x5b48[1637]+ _0x43b0x5+ _0x5b48[1638]+ _0x43b0x9+ _0x5b48[1635]};_0x43b0x2[_0x5b48[124]][_0x5b48[347]]= _0x43b0x3};function mxEllipse(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){mxShape[_0x5b48[239]](this);this[_0x5b48[1562]]= _0x43b0x2;this[_0x5b48[1334]]= _0x43b0x3;this[_0x5b48[1336]]= _0x43b0x4;this[_0x5b48[1307]]= null!= _0x43b0x5?_0x43b0x5:1}mxUtils[_0x5b48[1284]](mxEllipse,mxShape);mxEllipse[_0x5b48[202]][_0x5b48[1595]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){_0x43b0x2[_0x5b48[680]](_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9);_0x43b0x2[_0x5b48[1337]]()};function mxDoubleEllipse(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){mxShape[_0x5b48[239]](this);this[_0x5b48[1562]]= _0x43b0x2;this[_0x5b48[1334]]= _0x43b0x3;this[_0x5b48[1336]]= _0x43b0x4;this[_0x5b48[1307]]= null!= _0x43b0x5?_0x43b0x5:1}mxUtils[_0x5b48[1284]](mxDoubleEllipse,mxShape);mxDoubleEllipse[_0x5b48[202]][_0x5b48[1460]]= 10;mxDoubleEllipse[_0x5b48[202]][_0x5b48[1601]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){_0x43b0x2[_0x5b48[680]](_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9);_0x43b0x2[_0x5b48[1337]]()};mxDoubleEllipse[_0x5b48[202]][_0x5b48[1602]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){var _0x43b0xa=Math[_0x5b48[243]](4,Math[_0x5b48[243]](_0x43b0x5/ 5,_0x43b0x9/ 5));_0x43b0x5-= 2* _0x43b0xa;_0x43b0x9-= 2* _0x43b0xa;0< _0x43b0x5&& 0< _0x43b0x9&& _0x43b0x2[_0x5b48[680]](_0x43b0x3+ _0x43b0xa,_0x43b0x4+ _0x43b0xa,_0x43b0x5,_0x43b0x9);_0x43b0x2[_0x5b48[1336]]()};function mxRhombus(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){mxShape[_0x5b48[239]](this);this[_0x5b48[1562]]= _0x43b0x2;this[_0x5b48[1334]]= _0x43b0x3;this[_0x5b48[1336]]= _0x43b0x4;this[_0x5b48[1307]]= null!= _0x43b0x5?_0x43b0x5:1}mxUtils[_0x5b48[1284]](mxRhombus,mxShape);mxRhombus[_0x5b48[202]][_0x5b48[1595]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){var _0x43b0xa=_0x43b0x5/ 2,_0x43b0x12=_0x43b0x9/ 2;_0x43b0x2[_0x5b48[1275]]();_0x43b0x2[_0x5b48[1276]](_0x43b0x3+ _0x43b0xa,_0x43b0x4);_0x43b0x2[_0x5b48[1277]](_0x43b0x3+ _0x43b0x5,_0x43b0x4+ _0x43b0x12);_0x43b0x2[_0x5b48[1277]](_0x43b0x3+ _0x43b0xa,_0x43b0x4+ _0x43b0x9);_0x43b0x2[_0x5b48[1277]](_0x43b0x3,_0x43b0x4+ _0x43b0x12);_0x43b0x2[_0x5b48[268]]();_0x43b0x2[_0x5b48[1337]]()};function mxPolyline(_0x43b0x2,_0x43b0x3,_0x43b0x4){mxShape[_0x5b48[239]](this);this[_0x5b48[1525]]= _0x43b0x2;this[_0x5b48[1336]]= _0x43b0x3;this[_0x5b48[1307]]= null!= _0x43b0x4?_0x43b0x4:1}mxUtils[_0x5b48[1284]](mxPolyline,mxShape);mxPolyline[_0x5b48[202]][_0x5b48[1614]]= function(){return 0};mxPolyline[_0x5b48[202]][_0x5b48[1594]]= function(_0x43b0x2,_0x43b0x3){this[_0x5b48[1639]](_0x43b0x2,_0x43b0x3,this[_0x5b48[1606]])};mxPolyline[_0x5b48[202]][_0x5b48[1639]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){var _0x43b0x5=mxUtils[_0x5b48[433]](this[_0x5b48[124]],mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/ 2,_0x43b0x9=_0x43b0x3[0],_0x43b0xa=_0x43b0x3[_0x43b0x3[_0x5b48[67]]- 1];_0x43b0x2[_0x5b48[1275]]();_0x43b0x2[_0x5b48[1276]](_0x43b0x9[_0x5b48[235]],_0x43b0x9[_0x5b48[236]]);for(var _0x43b0x12=1;_0x43b0x12< _0x43b0x3[_0x5b48[67]]- 1;_0x43b0x12++){var _0x43b0x13=_0x43b0x3[_0x43b0x12],_0x43b0x14=_0x43b0x9[_0x5b48[235]]- _0x43b0x13[_0x5b48[235]],_0x43b0x9=_0x43b0x9[_0x5b48[236]]- _0x43b0x13[_0x5b48[236]];if(_0x43b0x4&& _0x43b0x12< _0x43b0x3[_0x5b48[67]]- 1&& (0!= _0x43b0x14|| 0!= _0x43b0x9)){var _0x43b0x15=Math[_0x5b48[428]](_0x43b0x14* _0x43b0x14+ _0x43b0x9* _0x43b0x9),_0x43b0x14=_0x43b0x14* Math[_0x5b48[243]](_0x43b0x5,_0x43b0x15/ 2)/ _0x43b0x15,_0x43b0x9=_0x43b0x9* Math[_0x5b48[243]](_0x43b0x5,_0x43b0x15/ 2)/ _0x43b0x15;_0x43b0x2[_0x5b48[1277]](_0x43b0x13[_0x5b48[235]]+ _0x43b0x14,_0x43b0x13[_0x5b48[236]]+ _0x43b0x9);_0x43b0x9= _0x43b0x3[_0x43b0x12+ 1];_0x43b0x14= _0x43b0x9[_0x5b48[235]]- _0x43b0x13[_0x5b48[235]];_0x43b0x9= _0x43b0x9[_0x5b48[236]]- _0x43b0x13[_0x5b48[236]];_0x43b0x15= Math[_0x5b48[160]](1,Math[_0x5b48[428]](_0x43b0x14* _0x43b0x14+ _0x43b0x9* _0x43b0x9));_0x43b0x14= _0x43b0x14* Math[_0x5b48[243]](_0x43b0x5,_0x43b0x15/ 2)/ _0x43b0x15;_0x43b0x9= _0x43b0x9* Math[_0x5b48[243]](_0x43b0x5,_0x43b0x15/ 2)/ _0x43b0x15;_0x43b0x14= _0x43b0x13[_0x5b48[235]]+ _0x43b0x14;_0x43b0x9= _0x43b0x13[_0x5b48[236]]+ _0x43b0x9;_0x43b0x2[_0x5b48[1278]](_0x43b0x13[_0x5b48[235]],_0x43b0x13[_0x5b48[236]],_0x43b0x14,_0x43b0x9);_0x43b0x13= new mxPoint(_0x43b0x14,_0x43b0x9)}else {_0x43b0x2[_0x5b48[1277]](_0x43b0x13[_0x5b48[235]],_0x43b0x13[_0x5b48[236]])};_0x43b0x9= _0x43b0x13};_0x43b0x2[_0x5b48[1277]](_0x43b0xa[_0x5b48[235]],_0x43b0xa[_0x5b48[236]]);_0x43b0x2[_0x5b48[1336]]()};function mxArrow(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa,_0x43b0x12){mxShape[_0x5b48[239]](this);this[_0x5b48[1525]]= _0x43b0x2;this[_0x5b48[1334]]= _0x43b0x3;this[_0x5b48[1336]]= _0x43b0x4;this[_0x5b48[1307]]= null!= _0x43b0x5?_0x43b0x5:1;this[_0x5b48[1640]]= null!= _0x43b0x9?_0x43b0x9:mxConstants[_0x5b48[1641]];this[_0x5b48[657]]= null!= _0x43b0xa?_0x43b0xa:mxConstants[_0x5b48[1642]];this[_0x5b48[643]]= null!= _0x43b0x12?_0x43b0x12:mxConstants[_0x5b48[1643]]}mxUtils[_0x5b48[1284]](mxArrow,mxShape);mxArrow[_0x5b48[202]][_0x5b48[1594]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=mxConstants[_0x5b48[1642]],_0x43b0x5=mxConstants[_0x5b48[1641]],_0x43b0x9=mxConstants[_0x5b48[1643]],_0x43b0xa=_0x43b0x3[0],_0x43b0x12=_0x43b0x3[_0x43b0x3[_0x5b48[67]]- 1],_0x43b0x13=_0x43b0x12[_0x5b48[235]]- _0x43b0xa[_0x5b48[235]],_0x43b0x14=_0x43b0x12[_0x5b48[236]]- _0x43b0xa[_0x5b48[236]],_0x43b0x15=Math[_0x5b48[428]](_0x43b0x13* _0x43b0x13+ _0x43b0x14* _0x43b0x14),_0x43b0x16=_0x43b0x15- 2* _0x43b0x4- _0x43b0x9,_0x43b0x13=_0x43b0x13/ _0x43b0x15,_0x43b0x14=_0x43b0x14/ _0x43b0x15,_0x43b0x15=_0x43b0x5* _0x43b0x14/ 3,_0x43b0x5=-_0x43b0x5* _0x43b0x13 / 3,_0x43b0x9=_0x43b0xa[_0x5b48[235]]- _0x43b0x15/ 2+ _0x43b0x4* _0x43b0x13,_0x43b0xa=_0x43b0xa[_0x5b48[236]]- _0x43b0x5/ 2+ _0x43b0x4* _0x43b0x14,_0x43b0x17=_0x43b0x9+ _0x43b0x15,_0x43b0x18=_0x43b0xa+ _0x43b0x5,_0x43b0x19=_0x43b0x17+ _0x43b0x16* _0x43b0x13,_0x43b0x16=_0x43b0x18+ _0x43b0x16* _0x43b0x14,_0x43b0x1a=_0x43b0x19+ _0x43b0x15,_0x43b0x1b=_0x43b0x16+ _0x43b0x5,_0x43b0x1c=_0x43b0x1a- 3* _0x43b0x15,_0x43b0x1d=_0x43b0x1b- 3* _0x43b0x5;_0x43b0x2[_0x5b48[1275]]();_0x43b0x2[_0x5b48[1276]](_0x43b0x9,_0x43b0xa);_0x43b0x2[_0x5b48[1277]](_0x43b0x17,_0x43b0x18);_0x43b0x2[_0x5b48[1277]](_0x43b0x19,_0x43b0x16);_0x43b0x2[_0x5b48[1277]](_0x43b0x1a,_0x43b0x1b);_0x43b0x2[_0x5b48[1277]](_0x43b0x12[_0x5b48[235]]- _0x43b0x4* _0x43b0x13,_0x43b0x12[_0x5b48[236]]- _0x43b0x4* _0x43b0x14);_0x43b0x2[_0x5b48[1277]](_0x43b0x1c,_0x43b0x1d);_0x43b0x2[_0x5b48[1277]](_0x43b0x1c+ _0x43b0x15,_0x43b0x1d+ _0x43b0x5);_0x43b0x2[_0x5b48[268]]();_0x43b0x2[_0x5b48[1337]]()};function mxText(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa,_0x43b0x12,_0x43b0x13,_0x43b0x14,_0x43b0x15,_0x43b0x16,_0x43b0x17,_0x43b0x18,_0x43b0x19,_0x43b0x1a,_0x43b0x1b,_0x43b0x1c,_0x43b0x1d,_0x43b0x1e,_0x43b0x1f){mxShape[_0x5b48[239]](this);this[_0x5b48[131]]= _0x43b0x2;this[_0x5b48[1562]]= _0x43b0x3;this[_0x5b48[352]]= null!= _0x43b0x9?_0x43b0x9:_0x5b48[586];this[_0x5b48[611]]= null!= _0x43b0x4?_0x43b0x4:_0x5b48[110];this[_0x5b48[552]]= null!= _0x43b0x5?_0x43b0x5:_0x5b48[110];this[_0x5b48[1288]]= null!= _0x43b0xa?_0x43b0xa:mxConstants[_0x5b48[484]];this[_0x5b48[803]]= null!= _0x43b0x12?_0x43b0x12:mxConstants[_0x5b48[483]];this[_0x5b48[666]]= null!= _0x43b0x13?_0x43b0x13:mxConstants[_0x5b48[1644]];this[_0x5b48[657]]= parseInt(_0x43b0x14|| 2);this[_0x5b48[658]]= this[_0x5b48[657]]+ parseInt(_0x43b0x15|| 0);this[_0x5b48[661]]= this[_0x5b48[657]]+ parseInt(_0x43b0x16|| 0);this[_0x5b48[660]]= this[_0x5b48[657]]+ parseInt(_0x43b0x17|| 0);this[_0x5b48[659]]= this[_0x5b48[657]]+ parseInt(_0x43b0x18|| 0);this[_0x5b48[662]]= null!= _0x43b0x19?_0x43b0x19:!0;this[_0x5b48[1537]]= _0x43b0x1a;this[_0x5b48[467]]= _0x43b0x1b;this[_0x5b48[1333]]= null!= _0x43b0x1c?_0x43b0x1c:!1;this[_0x5b48[1645]]= null!= _0x43b0x1d?_0x43b0x1d:!1;this[_0x5b48[277]]= null!= _0x43b0x1e?_0x43b0x1e:_0x5b48[189];this[_0x5b48[629]]= null!= _0x43b0x1f?_0x43b0x1f:0;this[_0x5b48[603]]= 0}mxUtils[_0x5b48[1284]](mxText,mxShape);mxText[_0x5b48[202]][_0x5b48[1646]]= 0;mxText[_0x5b48[202]][_0x5b48[1647]]= 0;mxText[_0x5b48[202]][_0x5b48[1648]]= 0;mxText[_0x5b48[202]][_0x5b48[1649]]= 0;mxText[_0x5b48[202]][_0x5b48[1650]]= !0;mxText[_0x5b48[202]][_0x5b48[1616]]= -90;mxText[_0x5b48[202]][_0x5b48[1651]]= !0;mxText[_0x5b48[202]][_0x5b48[1652]]= !1;mxText[_0x5b48[202]][_0x5b48[1566]]= function(){return !1};mxText[_0x5b48[202]][_0x5b48[1567]]= function(){return 8!= document[_0x5b48[5]]};mxText[_0x5b48[202]][_0x5b48[1568]]= function(){return 0};mxText[_0x5b48[202]][_0x5b48[1574]]= function(){return null!= this[_0x5b48[1562]]&& !isNaN(this[_0x5b48[1562]][_0x5b48[235]])&& !isNaN(this[_0x5b48[1562]][_0x5b48[236]])&& !isNaN(this[_0x5b48[1562]][_0x5b48[117]])&& !isNaN(this[_0x5b48[1562]][_0x5b48[119]])};mxText[_0x5b48[202]][_0x5b48[1577]]= function(){var _0x43b0x2=this[_0x5b48[252]];8== document[_0x5b48[5]]&& null!= _0x43b0x2[_0x5b48[285]]&& (_0x43b0x2= _0x43b0x2[_0x5b48[285]],null!= _0x43b0x2[_0x5b48[285]]&& (_0x43b0x2= _0x43b0x2[_0x5b48[285]]));this[_0x5b48[1563]]= this[_0x5b48[1562]][_0x5b48[238]]();var _0x43b0x3=this[_0x5b48[1615]]();if(!this[_0x5b48[1652]]&& null!= _0x43b0x2 && _0x5b48[1334]!= this[_0x5b48[277]] && (!this[_0x5b48[1645]]|| !this[_0x5b48[1651]])){var _0x43b0x4=null,_0x43b0x5=null;if(null!= _0x43b0x2[_0x5b48[538]]){if(null!= _0x43b0x2[_0x5b48[285]]&& null!= _0x43b0x2[_0x5b48[285]][_0x5b48[285]]&& _0x5b48[1435]== _0x43b0x2[_0x5b48[285]][_0x5b48[285]][_0x5b48[301]]){_0x43b0x2= _0x43b0x2[_0x5b48[285]][_0x5b48[285]],_0x43b0x4= this[_0x5b48[1333]]?this[_0x5b48[1562]][_0x5b48[117]]:parseInt(_0x43b0x2[_0x5b48[284]](_0x5b48[117]))* this[_0x5b48[255]],_0x43b0x5= parseInt(_0x43b0x2[_0x5b48[284]](_0x5b48[119]))* this[_0x5b48[255]]}else {_0x43b0x3= _0x43b0x2[_0x5b48[1451]]();if(0== _0x43b0x3[_0x5b48[117]]&& 0== _0x43b0x3[_0x5b48[119]]){return};this[_0x5b48[1563]]= new mxRectangle(_0x43b0x3[_0x5b48[235]],_0x43b0x3[_0x5b48[236]],_0x43b0x3[_0x5b48[117]],_0x43b0x3[_0x5b48[119]]);_0x43b0x3= 0}}else {_0x43b0x5= this[_0x5b48[724]][_0x5b48[441]][_0x5b48[1653]],null!= this[_0x5b48[359]]&& null!= this[_0x5b48[167]]?(_0x43b0x4= this[_0x5b48[1333]]?this[_0x5b48[1562]][_0x5b48[117]]:this[_0x5b48[359]]* this[_0x5b48[255]],_0x43b0x5= this[_0x5b48[167]]* this[_0x5b48[255]]):null!= _0x43b0x5?(this[_0x5b48[1441]](_0x43b0x5),this[_0x5b48[1654]](_0x43b0x5),mxUtils[_0x5b48[1331]](this[_0x5b48[131]])?_0x43b0x5[_0x5b48[339]]= this[_0x5b48[131]][_0x5b48[342]]:(_0x43b0x4= this[_0x5b48[1650]]?this[_0x5b48[131]][_0x5b48[230]](/\n/g,_0x5b48[1453]):this[_0x5b48[131]],_0x43b0x5[_0x5b48[339]]= _0x43b0x4),_0x43b0x4= this[_0x5b48[1333]]?this[_0x5b48[1562]][_0x5b48[117]]:_0x43b0x5[_0x5b48[359]]* this[_0x5b48[255]],_0x43b0x5= _0x43b0x5[_0x5b48[167]]* this[_0x5b48[255]]):(_0x43b0x4= this[_0x5b48[1333]]?this[_0x5b48[1562]][_0x5b48[117]]:_0x43b0x2[_0x5b48[359]]* this[_0x5b48[255]],_0x43b0x5= _0x43b0x2[_0x5b48[167]]* this[_0x5b48[255]])};null!= _0x43b0x4&& null!= _0x43b0x5&& (this[_0x5b48[1563]]= new mxRectangle(this[_0x5b48[1562]][_0x5b48[235]]+ this[_0x5b48[1655]][_0x5b48[235]]* _0x43b0x4,this[_0x5b48[1562]][_0x5b48[236]]+ this[_0x5b48[1655]][_0x5b48[236]]* _0x43b0x5,_0x43b0x4,_0x43b0x5))}else {this[_0x5b48[1563]][_0x5b48[235]]+= this[_0x5b48[1655]][_0x5b48[235]]* this[_0x5b48[1563]][_0x5b48[117]],this[_0x5b48[1563]][_0x5b48[236]]+= this[_0x5b48[1655]][_0x5b48[236]]* this[_0x5b48[1563]][_0x5b48[119]]};null!= this[_0x5b48[1563]]&& (0!= _0x43b0x3&& (_0x43b0x3= mxUtils[_0x5b48[1613]](this[_0x5b48[1563]],_0x43b0x3),this[_0x5b48[1563]][_0x5b48[235]]= _0x43b0x3[_0x5b48[235]],this[_0x5b48[1563]][_0x5b48[236]]= _0x43b0x3[_0x5b48[236]],mxClient[_0x5b48[496]]|| (this[_0x5b48[1563]][_0x5b48[117]]= _0x43b0x3[_0x5b48[117]],this[_0x5b48[1563]][_0x5b48[119]]= _0x43b0x3[_0x5b48[119]])),this[_0x5b48[1563]][_0x5b48[235]]= Math[_0x5b48[519]](this[_0x5b48[1563]][_0x5b48[235]]),this[_0x5b48[1563]][_0x5b48[236]]= Math[_0x5b48[519]](this[_0x5b48[1563]][_0x5b48[236]]),this[_0x5b48[1563]][_0x5b48[117]]= Math[_0x5b48[430]](this[_0x5b48[1563]][_0x5b48[117]]),this[_0x5b48[1563]][_0x5b48[119]]= Math[_0x5b48[430]](this[_0x5b48[1563]][_0x5b48[119]]))};mxText[_0x5b48[202]][_0x5b48[1598]]= function(){return 0};mxText[_0x5b48[202]][_0x5b48[1615]]= function(){return null!= this[_0x5b48[724]]&& null!= this[_0x5b48[724]][_0x5b48[253]]?this[_0x5b48[724]][_0x5b48[253]][_0x5b48[1615]]():0};mxText[_0x5b48[202]][_0x5b48[1590]]= function(){return !this[_0x5b48[662]]&& null!= this[_0x5b48[724]] && this[_0x5b48[724]][_0x5b48[441]][_0x5b48[1179]][_0x5b48[251]][_0x5b48[1193]](this[_0x5b48[724]][_0x5b48[246]])};mxText[_0x5b48[202]][_0x5b48[1592]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){mxShape[_0x5b48[202]][_0x5b48[1592]][_0x5b48[183]](this,arguments);_0x43b0x2[_0x5b48[1259]](this[_0x5b48[352]]);_0x43b0x2[_0x5b48[1260]](this[_0x5b48[1537]]);_0x43b0x2[_0x5b48[1262]](this[_0x5b48[467]]);_0x43b0x2[_0x5b48[1265]](this[_0x5b48[1288]]);_0x43b0x2[_0x5b48[1264]](this[_0x5b48[803]]);_0x43b0x2[_0x5b48[1266]](this[_0x5b48[666]])};mxText[_0x5b48[202]][_0x5b48[1586]]= function(){this[_0x5b48[252]][_0x5b48[124]][_0x5b48[361]]= Math[_0x5b48[488]](this[_0x5b48[1562]][_0x5b48[235]])+ _0x5b48[168];this[_0x5b48[252]][_0x5b48[124]][_0x5b48[125]]= Math[_0x5b48[488]](this[_0x5b48[1562]][_0x5b48[236]])+ _0x5b48[168];this[_0x5b48[252]][_0x5b48[124]][_0x5b48[117]]= _0x5b48[942];this[_0x5b48[252]][_0x5b48[124]][_0x5b48[119]]= _0x5b48[942];this[_0x5b48[252]][_0x5b48[124]][_0x5b48[277]]= _0x5b48[189]};mxText[_0x5b48[202]][_0x5b48[1209]]= function(_0x43b0x2){var _0x43b0x3=this[_0x5b48[255]],_0x43b0x4=this[_0x5b48[1562]][_0x5b48[235]]/ _0x43b0x3,_0x43b0x5=this[_0x5b48[1562]][_0x5b48[236]]/ _0x43b0x3,_0x43b0x9=this[_0x5b48[1562]][_0x5b48[117]]/ _0x43b0x3,_0x43b0x3=this[_0x5b48[1562]][_0x5b48[119]]/ _0x43b0x3;this[_0x5b48[1591]](_0x43b0x2,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0x3);this[_0x5b48[1592]](_0x43b0x2,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0x3);var _0x43b0xa=mxUtils[_0x5b48[1331]](this[_0x5b48[131]])|| this[_0x5b48[507]]== mxConstants[_0x5b48[1656]],_0x43b0x12=_0x43b0xa|| _0x43b0x2 instanceof mxVmlCanvas2D?_0x5b48[1428]:_0x5b48[110],_0x43b0x13=this[_0x5b48[131]];!_0x43b0xa&& _0x5b48[1428]== _0x43b0x12 && (_0x43b0x13= mxUtils[_0x5b48[321]](_0x43b0x13,!1));_0x43b0x13= !mxUtils[_0x5b48[1331]](this[_0x5b48[131]])&& this[_0x5b48[1650]] && _0x5b48[1428]== _0x43b0x12?_0x43b0x13[_0x5b48[230]](/\n/g,_0x5b48[1453]):_0x43b0x13;_0x43b0x2[_0x5b48[963]](_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0x3,_0x43b0x13,this[_0x5b48[611]],this[_0x5b48[552]],this[_0x5b48[1333]],_0x43b0x12,_0x5b48[1334]== this[_0x5b48[277]],this[_0x5b48[1645]],this[_0x5b48[1615]]())};mxText[_0x5b48[202]][_0x5b48[1575]]= function(){var _0x43b0x2=this[_0x5b48[252]][_0x5b48[124]];_0x43b0x2[_0x5b48[461]]= 1> this[_0x5b48[461]]?this[_0x5b48[461]]:_0x5b48[110];_0x43b0x2[_0x5b48[277]]= _0x5b48[110];_0x43b0x2[_0x5b48[117]]= _0x5b48[110];_0x43b0x2[_0x5b48[119]]= _0x5b48[110];this[_0x5b48[1441]](this[_0x5b48[252]]);this[_0x5b48[1654]](this[_0x5b48[252]]);this[_0x5b48[1657]]();this[_0x5b48[167]]= this[_0x5b48[359]]= null;null!= mxClient[_0x5b48[73]]?this[_0x5b48[1658]]():this[_0x5b48[1659]]()};mxText[_0x5b48[202]][_0x5b48[1658]]= function(){var _0x43b0x2=this[_0x5b48[1615]](),_0x43b0x3=this[_0x5b48[252]][_0x5b48[124]],_0x43b0x4=this[_0x5b48[1655]][_0x5b48[235]],_0x43b0x5=this[_0x5b48[1655]][_0x5b48[236]];0!= _0x43b0x2?(_0x43b0x3[mxClient[_0x5b48[73]]+ _0x5b48[1660]]= 100* -_0x43b0x4+ _0x5b48[1661]+ 100* -_0x43b0x5+ _0x5b48[229],_0x43b0x3[mxClient[_0x5b48[73]]+ _0x5b48[1662]]= _0x5b48[536]+ 100* _0x43b0x4+ _0x5b48[1663]+ 100* _0x43b0x5+ _0x5b48[1664]+ this[_0x5b48[255]]+ _0x5b48[1665]+ _0x43b0x2+ _0x5b48[1666]):(_0x43b0x3[mxClient[_0x5b48[73]]+ _0x5b48[1660]]= _0x5b48[1667],_0x43b0x3[mxClient[_0x5b48[73]]+ _0x5b48[1662]]= _0x5b48[1402]+ this[_0x5b48[255]]+ _0x5b48[1393]+ 100* _0x43b0x4+ _0x5b48[1663]+ 100* _0x43b0x5+ _0x5b48[1668]);_0x43b0x3[_0x5b48[361]]= Math[_0x5b48[488]](this[_0x5b48[1562]][_0x5b48[235]])+ _0x5b48[168];_0x43b0x3[_0x5b48[125]]= Math[_0x5b48[488]](this[_0x5b48[1562]][_0x5b48[236]])+ _0x5b48[168]};mxText[_0x5b48[202]][_0x5b48[1659]]= function(){var _0x43b0x2=this[_0x5b48[252]][_0x5b48[124]],_0x43b0x3=this[_0x5b48[1655]][_0x5b48[235]],_0x43b0x4=this[_0x5b48[1655]][_0x5b48[236]],_0x43b0x5=this[_0x5b48[255]];_0x43b0x2[_0x5b48[347]]= _0x5b48[110];var _0x43b0x9=0,_0x43b0xa=0,_0x43b0x12=null!= this[_0x5b48[724]]?this[_0x5b48[724]][_0x5b48[441]][_0x5b48[1653]]:null;if(null!= _0x43b0x12){_0x43b0x12[_0x5b48[124]][_0x5b48[277]]= _0x5b48[110];_0x43b0x12[_0x5b48[124]][_0x5b48[119]]= _0x5b48[110];_0x43b0x12[_0x5b48[124]][_0x5b48[117]]= _0x5b48[110];this[_0x5b48[1441]](_0x43b0x12);this[_0x5b48[1654]](_0x43b0x12);if(mxUtils[_0x5b48[1331]](this[_0x5b48[131]])){_0x43b0x12[_0x5b48[339]]= this[_0x5b48[131]][_0x5b48[342]]}else {var _0x43b0x13=this[_0x5b48[131]];this[_0x5b48[507]]!= mxConstants[_0x5b48[1656]]&& (_0x43b0x13= mxUtils[_0x5b48[321]](_0x43b0x13,!1));_0x43b0x13= this[_0x5b48[1650]]?_0x43b0x13[_0x5b48[230]](/\n/g,_0x5b48[1453]):_0x43b0x13;_0x43b0x12[_0x5b48[339]]= _0x43b0x13};_0x43b0x9= _0x43b0x12[_0x5b48[359]]+ 2;_0x43b0xa= _0x43b0x12[_0x5b48[167]]+ 2}else {_0x43b0x9= this[_0x5b48[252]][_0x5b48[359]],_0x43b0xa= this[_0x5b48[252]][_0x5b48[167]]+ 1};this[_0x5b48[359]]= _0x43b0x9;this[_0x5b48[167]]= _0x43b0xa;_0x43b0x12= this[_0x5b48[1562]][_0x5b48[117]]/ _0x43b0x5;_0x43b0x13= this[_0x5b48[1562]][_0x5b48[119]]/ _0x43b0x5;mxClient[_0x5b48[496]]&& (this[_0x5b48[1645]]|| _0x5b48[1334]== this[_0x5b48[277]])&& 0< _0x43b0x13?(_0x43b0x13= Math[_0x5b48[243]](_0x43b0x13,_0x43b0xa),_0x43b0x2[_0x5b48[119]]= Math[_0x5b48[488]](_0x43b0x13+ 1)+ _0x5b48[168]):_0x43b0x13= _0x43b0xa;_0x5b48[1334]!= this[_0x5b48[277]]&& (mxClient[_0x5b48[496]]&& (this[_0x5b48[1645]]|| this[_0x5b48[1333]])&& 0< _0x43b0x12?(_0x43b0x12= Math[_0x5b48[243]](_0x43b0x12,_0x43b0x9),_0x43b0x2[_0x5b48[117]]= Math[_0x5b48[488]](_0x43b0x12)+ _0x5b48[168]):_0x43b0x12= _0x43b0x9);var _0x43b0x13=_0x43b0x13* _0x43b0x5,_0x43b0x12=_0x43b0x12* _0x43b0x5,_0x43b0x9=this[_0x5b48[1615]]()* (Math[_0x5b48[424]]/ 180),_0x43b0xa=parseFloat(parseFloat(Math[_0x5b48[426]](_0x43b0x9))[_0x5b48[1293]](8)),_0x43b0x14=parseFloat(parseFloat(Math[_0x5b48[427]](-_0x43b0x9))[_0x5b48[1293]](8)),_0x43b0x9=_0x43b0x9% (2* Math[_0x5b48[424]]);0> _0x43b0x9&& (_0x43b0x9+= 2* Math[_0x5b48[424]]);_0x43b0x9%= Math[_0x5b48[424]];_0x43b0x9> Math[_0x5b48[424]]/ 2&& (_0x43b0x9= Math[_0x5b48[424]]- _0x43b0x9);var _0x43b0x15=Math[_0x5b48[426]](_0x43b0x9),_0x43b0x16=Math[_0x5b48[427]](-_0x43b0x9),_0x43b0x3=_0x43b0x12* -(_0x43b0x3+ 0.5),_0x43b0x4=_0x43b0x13* -(_0x43b0x4+ 0.5),_0x43b0x17=(_0x43b0x13- _0x43b0x13* _0x43b0x15+ _0x43b0x12* _0x43b0x16)/ 2+ _0x43b0x14* _0x43b0x3- _0x43b0xa* _0x43b0x4;0!= _0x43b0x9&& (_0x43b0x2[_0x5b48[347]]= _0x5b48[1505]+ _0x43b0xa+ _0x5b48[1506]+ _0x43b0x14+ _0x5b48[1507]+ -_0x43b0x14+ _0x5b48[1508]+ _0x43b0xa+ _0x5b48[1509]);_0x43b0x2[_0x5b48[499]]= _0x43b0x5;_0x43b0x2[_0x5b48[361]]= Math[_0x5b48[488]](this[_0x5b48[1562]][_0x5b48[235]]+ ((_0x43b0x12- _0x43b0x12* _0x43b0x15+ _0x43b0x13* _0x43b0x16)/ 2- _0x43b0xa* _0x43b0x3- _0x43b0x14* _0x43b0x4)- _0x43b0x12/ 2)+ _0x5b48[168];_0x43b0x2[_0x5b48[125]]= Math[_0x5b48[488]](this[_0x5b48[1562]][_0x5b48[236]]+ _0x43b0x17- _0x43b0x13/ 2)+ _0x5b48[168]};mxText[_0x5b48[202]][_0x5b48[1657]]= function(){if(mxUtils[_0x5b48[1331]](this[_0x5b48[131]])){this[_0x5b48[252]][_0x5b48[339]]= _0x5b48[110],this[_0x5b48[252]][_0x5b48[62]](this[_0x5b48[131]])}else {var _0x43b0x2=this[_0x5b48[131]];this[_0x5b48[507]]!= mxConstants[_0x5b48[1656]]&& (_0x43b0x2= mxUtils[_0x5b48[321]](_0x43b0x2,!1));var _0x43b0x2=this[_0x5b48[1650]]?_0x43b0x2[_0x5b48[230]](/\n/g,_0x5b48[1453]):_0x43b0x2,_0x43b0x3=null!= this[_0x5b48[1537]]&& this[_0x5b48[1537]]!= mxConstants[_0x5b48[217]]?this[_0x5b48[1537]]:null,_0x43b0x4=null!= this[_0x5b48[467]]&& this[_0x5b48[467]]!= mxConstants[_0x5b48[217]]?this[_0x5b48[467]]:null;if(null!= _0x43b0x3|| null!= _0x43b0x4){if(_0x5b48[1334]== this[_0x5b48[277]]){null!= _0x43b0x3&& (this[_0x5b48[252]][_0x5b48[124]][_0x5b48[1028]]= _0x43b0x3),null!= _0x43b0x4&& (this[_0x5b48[252]][_0x5b48[124]][_0x5b48[467]]= _0x5b48[1669]+ _0x43b0x4)}else {var _0x43b0x5=_0x5b48[110];null!= _0x43b0x3&& (_0x43b0x5+= _0x5b48[1418]+ _0x43b0x3+ _0x5b48[471]);null!= _0x43b0x4&& (_0x43b0x5+= _0x5b48[1419]+ _0x43b0x4+ _0x5b48[471]);_0x43b0x2= _0x5b48[1670]+ _0x43b0x5+ _0x5b48[1671]+ this[_0x5b48[252]][_0x5b48[124]][_0x5b48[489]]+ _0x5b48[1423]+ _0x43b0x2+ _0x5b48[1424];this[_0x5b48[252]][_0x5b48[124]][_0x5b48[489]]= _0x5b48[110]}};this[_0x5b48[252]][_0x5b48[339]]= _0x43b0x2}};mxText[_0x5b48[202]][_0x5b48[1441]]= function(_0x43b0x2){_0x43b0x2= _0x43b0x2[_0x5b48[124]];_0x43b0x2[_0x5b48[489]]= Math[_0x5b48[488]](this[_0x5b48[803]]* mxConstants[_0x5b48[490]])+ _0x5b48[168];_0x43b0x2[_0x5b48[487]]= Math[_0x5b48[488]](this[_0x5b48[803]])+ _0x5b48[168];_0x43b0x2[_0x5b48[486]]= this[_0x5b48[1288]];_0x43b0x2[_0x5b48[123]]= _0x5b48[125];_0x43b0x2[_0x5b48[352]]= this[_0x5b48[352]];_0x43b0x2[_0x5b48[1452]]= (this[_0x5b48[666]]& mxConstants[_0x5b48[1410]])== mxConstants[_0x5b48[1410]]?_0x5b48[1447]:_0x5b48[110];_0x43b0x2[_0x5b48[666]]= (this[_0x5b48[666]]& mxConstants[_0x5b48[1412]])== mxConstants[_0x5b48[1412]]?_0x5b48[1449]:_0x5b48[110];_0x43b0x2[_0x5b48[1498]]= (this[_0x5b48[666]]& mxConstants[_0x5b48[1414]])== mxConstants[_0x5b48[1414]]?_0x5b48[355]:_0x5b48[110];_0x43b0x2[_0x5b48[1165]]= this[_0x5b48[611]]== mxConstants[_0x5b48[479]]?_0x5b48[698]:this[_0x5b48[611]]== mxConstants[_0x5b48[480]]?_0x5b48[699]:_0x5b48[361]};mxText[_0x5b48[202]][_0x5b48[1654]]= function(_0x43b0x2){var _0x43b0x3=Math[_0x5b48[488]](this[_0x5b48[1562]][_0x5b48[117]]/ this[_0x5b48[255]]),_0x43b0x4=Math[_0x5b48[488]](this[_0x5b48[1562]][_0x5b48[119]]/ this[_0x5b48[255]]);_0x43b0x2= _0x43b0x2[_0x5b48[124]];this[_0x5b48[1645]]?(_0x43b0x2[_0x5b48[277]]= _0x5b48[188],0< _0x43b0x4&& (_0x43b0x2[_0x5b48[1503]]= _0x43b0x4+ _0x5b48[168]),0< _0x43b0x3&& (_0x43b0x2[_0x5b48[117]]= _0x43b0x3+ _0x5b48[168])):_0x5b48[1334]== this[_0x5b48[277]]&& (_0x43b0x2[_0x5b48[117]]= _0x43b0x3+ _0x5b48[168],0< _0x43b0x4&& (_0x43b0x2[_0x5b48[1503]]= _0x43b0x4+ _0x5b48[168]));this[_0x5b48[1333]]?(!this[_0x5b48[1645]]&& 0< _0x43b0x3 && (_0x43b0x2[_0x5b48[117]]= _0x43b0x3+ _0x5b48[168]),_0x43b0x2[_0x5b48[493]]= _0x5b48[1502]):_0x43b0x2[_0x5b48[493]]= _0x5b48[494]};mxText[_0x5b48[202]][_0x5b48[1672]]= function(){this[_0x5b48[1655]]= mxUtils[_0x5b48[1501]](this[_0x5b48[611]],this[_0x5b48[552]])};mxText[_0x5b48[202]][_0x5b48[1673]]= function(){var _0x43b0x2=0,_0x43b0x3=0,_0x43b0x2=this[_0x5b48[611]]== mxConstants[_0x5b48[479]]?(this[_0x5b48[659]]- this[_0x5b48[661]])/ 2:this[_0x5b48[611]]== mxConstants[_0x5b48[480]]?-this[_0x5b48[661]]- this[_0x5b48[1649]]:this[_0x5b48[659]]+ this[_0x5b48[1648]],_0x43b0x3=this[_0x5b48[552]]== mxConstants[_0x5b48[481]]?(this[_0x5b48[658]]- this[_0x5b48[660]])/ 2:this[_0x5b48[552]]== mxConstants[_0x5b48[482]]?-this[_0x5b48[660]]- this[_0x5b48[1647]]:this[_0x5b48[658]]+ this[_0x5b48[1646]];return new mxPoint(_0x43b0x2,_0x43b0x3)};function mxTriangle(){mxActor[_0x5b48[239]](this)}mxUtils[_0x5b48[1284]](mxTriangle,mxActor);mxTriangle[_0x5b48[202]][_0x5b48[1625]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){_0x43b0x2[_0x5b48[1276]](0,0);_0x43b0x2[_0x5b48[1277]](_0x43b0x5,0.5* _0x43b0x9);_0x43b0x2[_0x5b48[1277]](0,_0x43b0x9);_0x43b0x2[_0x5b48[268]]()};function mxHexagon(){mxActor[_0x5b48[239]](this)}mxUtils[_0x5b48[1284]](mxHexagon,mxActor);mxHexagon[_0x5b48[202]][_0x5b48[1625]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){_0x43b0x2[_0x5b48[1276]](0.25* _0x43b0x5,0);_0x43b0x2[_0x5b48[1277]](0.75* _0x43b0x5,0);_0x43b0x2[_0x5b48[1277]](_0x43b0x5,0.5* _0x43b0x9);_0x43b0x2[_0x5b48[1277]](0.75* _0x43b0x5,_0x43b0x9);_0x43b0x2[_0x5b48[1277]](0.25* _0x43b0x5,_0x43b0x9);_0x43b0x2[_0x5b48[1277]](0,0.5* _0x43b0x9);_0x43b0x2[_0x5b48[268]]()};function mxLine(_0x43b0x2,_0x43b0x3,_0x43b0x4){mxShape[_0x5b48[239]](this);this[_0x5b48[1562]]= _0x43b0x2;this[_0x5b48[1336]]= _0x43b0x3;this[_0x5b48[1307]]= null!= _0x43b0x4?_0x43b0x4:1}mxUtils[_0x5b48[1284]](mxLine,mxShape);mxLine[_0x5b48[202]][_0x5b48[1595]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){_0x43b0x4+= _0x43b0x9/ 2;_0x43b0x2[_0x5b48[1275]]();_0x43b0x2[_0x5b48[1276]](_0x43b0x3,_0x43b0x4);_0x43b0x2[_0x5b48[1277]](_0x43b0x3+ _0x43b0x5,_0x43b0x4);_0x43b0x2[_0x5b48[1336]]()};function mxImageShape(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){mxShape[_0x5b48[239]](this);this[_0x5b48[1562]]= _0x43b0x2;this[_0x5b48[618]]= _0x43b0x3;this[_0x5b48[1334]]= _0x43b0x4;this[_0x5b48[1336]]= _0x43b0x5;this[_0x5b48[1307]]= null!= _0x43b0x9?_0x43b0x9:1;this[_0x5b48[639]]= !1}mxUtils[_0x5b48[1284]](mxImageShape,mxRectangleShape);mxImageShape[_0x5b48[202]][_0x5b48[1674]]= !0;mxImageShape[_0x5b48[202]][_0x5b48[1568]]= function(){return !mxClient[_0x5b48[80]]?0.5:0};mxImageShape[_0x5b48[202]][_0x5b48[183]]= function(_0x43b0x2){mxShape[_0x5b48[202]][_0x5b48[183]][_0x5b48[183]](this,arguments);this[_0x5b48[1299]]= this[_0x5b48[1336]]= this[_0x5b48[1334]]= null;null!= this[_0x5b48[124]]&& (this[_0x5b48[1334]]= mxUtils[_0x5b48[433]](this[_0x5b48[124]],mxConstants.STYLE_IMAGE_BACKGROUND),this[_0x5b48[1336]]= mxUtils[_0x5b48[433]](this[_0x5b48[124]],mxConstants.STYLE_IMAGE_BORDER),this[_0x5b48[1674]]= 1== mxUtils[_0x5b48[1550]](this[_0x5b48[124]],mxConstants.STYLE_IMAGE_ASPECT,1),this[_0x5b48[623]]= this[_0x5b48[623]]|| 1== mxUtils[_0x5b48[433]](this[_0x5b48[124]],_0x5b48[1675],0),this[_0x5b48[624]]= this[_0x5b48[624]]|| 1== mxUtils[_0x5b48[433]](this[_0x5b48[124]],_0x5b48[1676],0))};mxImageShape[_0x5b48[202]][_0x5b48[1567]]= function(){return !this[_0x5b48[1674]]};mxImageShape[_0x5b48[202]][_0x5b48[1570]]= function(){var _0x43b0x2=document[_0x5b48[55]](_0x5b48[485]);_0x43b0x2[_0x5b48[124]][_0x5b48[491]]= _0x5b48[492];return _0x43b0x2};mxImageShape[_0x5b48[202]][_0x5b48[1595]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){if(null!= this[_0x5b48[618]]){var _0x43b0xa=mxUtils[_0x5b48[433]](this[_0x5b48[124]],mxConstants.STYLE_IMAGE_BACKGROUND,null),_0x43b0x12=mxUtils[_0x5b48[433]](this[_0x5b48[124]],mxConstants.STYLE_IMAGE_BORDER,null);if(null!= _0x43b0xa|| null!= _0x43b0x12){_0x43b0x2[_0x5b48[1245]](_0x43b0xa),_0x43b0x2[_0x5b48[1249]](_0x43b0x12),_0x43b0x2[_0x5b48[1319]](_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9),_0x43b0x2[_0x5b48[1337]]()};_0x43b0x2[_0x5b48[618]](_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,this[_0x5b48[618]],this[_0x5b48[1674]],!1,!1)}else {mxRectangleShape[_0x5b48[202]][_0x5b48[1601]][_0x5b48[183]](this,arguments)}};mxImageShape[_0x5b48[202]][_0x5b48[1575]]= function(){this[_0x5b48[252]][_0x5b48[124]][_0x5b48[361]]= Math[_0x5b48[488]](this[_0x5b48[1562]][_0x5b48[235]])+ _0x5b48[168];this[_0x5b48[252]][_0x5b48[124]][_0x5b48[125]]= Math[_0x5b48[488]](this[_0x5b48[1562]][_0x5b48[236]])+ _0x5b48[168];this[_0x5b48[252]][_0x5b48[124]][_0x5b48[117]]= Math[_0x5b48[160]](0,Math[_0x5b48[488]](this[_0x5b48[1562]][_0x5b48[117]]))+ _0x5b48[168];this[_0x5b48[252]][_0x5b48[124]][_0x5b48[119]]= Math[_0x5b48[160]](0,Math[_0x5b48[488]](this[_0x5b48[1562]][_0x5b48[119]]))+ _0x5b48[168];this[_0x5b48[252]][_0x5b48[124]][_0x5b48[1028]]= this[_0x5b48[1334]]|| _0x5b48[110];this[_0x5b48[252]][_0x5b48[124]][_0x5b48[1630]]= this[_0x5b48[1336]]|| _0x5b48[110];this[_0x5b48[252]][_0x5b48[339]]= _0x5b48[110];if(null!= this[_0x5b48[618]]){var _0x43b0x2=document[_0x5b48[55]](mxClient[_0x5b48[49]]|| null== mxClient[_0x5b48[73]]&& 0!= this[_0x5b48[603]]?mxClient[_0x5b48[463]]+ _0x5b48[464]:_0x5b48[466]);_0x43b0x2[_0x5b48[124]][_0x5b48[491]]= _0x5b48[492];_0x43b0x2[_0x5b48[390]]= this[_0x5b48[618]];var _0x43b0x3=100> this[_0x5b48[461]]?_0x5b48[459]+ this[_0x5b48[461]]+ _0x5b48[460]:_0x5b48[110];this[_0x5b48[252]][_0x5b48[124]][_0x5b48[347]]= _0x43b0x3;this[_0x5b48[623]]&& this[_0x5b48[624]]?_0x43b0x3+= _0x5b48[1677]:this[_0x5b48[623]]?_0x43b0x3+= _0x5b48[1678]:this[_0x5b48[624]]&& (_0x43b0x3+= _0x5b48[1679]);_0x43b0x2[_0x5b48[124]][_0x5b48[347]]!= _0x43b0x3&& (_0x43b0x2[_0x5b48[124]][_0x5b48[347]]= _0x43b0x3);_0x5b48[618]== _0x43b0x2[_0x5b48[301]]?_0x43b0x2[_0x5b48[124]][_0x5b48[603]]= this[_0x5b48[603]]:_0x43b0x2[_0x5b48[124]][mxClient[_0x5b48[73]]+ _0x5b48[1662]]= _0x5b48[1394]+ this[_0x5b48[603]]+ _0x5b48[1666];_0x43b0x2[_0x5b48[124]][_0x5b48[117]]= this[_0x5b48[252]][_0x5b48[124]][_0x5b48[117]];_0x43b0x2[_0x5b48[124]][_0x5b48[119]]= this[_0x5b48[252]][_0x5b48[124]][_0x5b48[119]];this[_0x5b48[252]][_0x5b48[124]][_0x5b48[1617]]= _0x5b48[110];this[_0x5b48[252]][_0x5b48[62]](_0x43b0x2)}else {this[_0x5b48[1600]](this[_0x5b48[252]])}};function mxLabel(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){mxRectangleShape[_0x5b48[239]](this,_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5)}mxUtils[_0x5b48[1284]](mxLabel,mxRectangleShape);mxLabel[_0x5b48[202]][_0x5b48[1680]]= mxConstants[_0x5b48[1681]];mxLabel[_0x5b48[202]][_0x5b48[657]]= 2;mxLabel[_0x5b48[202]][_0x5b48[1682]]= 10;mxLabel[_0x5b48[202]][_0x5b48[635]]= 2;mxLabel[_0x5b48[202]][_0x5b48[176]]= function(_0x43b0x2){mxShape[_0x5b48[202]][_0x5b48[176]][_0x5b48[183]](this,arguments);null!= this[_0x5b48[632]]&& null!= this[_0x5b48[630]]&& (this[_0x5b48[1683]]= new this[_0x5b48[630]],this[_0x5b48[1683]][_0x5b48[507]]= this[_0x5b48[507]],this[_0x5b48[1683]][_0x5b48[1562]]= this[_0x5b48[1562]],this[_0x5b48[1683]][_0x5b48[1334]]= this[_0x5b48[632]],this[_0x5b48[1683]][_0x5b48[1336]]= this[_0x5b48[632]],this[_0x5b48[1683]][_0x5b48[1299]]= this[_0x5b48[634]],this[_0x5b48[1683]][_0x5b48[663]]= this[_0x5b48[638]],this[_0x5b48[1683]][_0x5b48[176]](this[_0x5b48[252]]))};mxLabel[_0x5b48[202]][_0x5b48[258]]= function(){null!= this[_0x5b48[1683]]&& (this[_0x5b48[1683]][_0x5b48[1334]]= this[_0x5b48[632]],this[_0x5b48[1683]][_0x5b48[1336]]= this[_0x5b48[632]],this[_0x5b48[1683]][_0x5b48[1299]]= this[_0x5b48[634]],this[_0x5b48[1683]][_0x5b48[663]]= this[_0x5b48[638]]);mxShape[_0x5b48[202]][_0x5b48[258]][_0x5b48[183]](this,arguments)};mxLabel[_0x5b48[202]][_0x5b48[1567]]= function(){return mxRectangleShape[_0x5b48[202]][_0x5b48[1567]][_0x5b48[183]](this,arguments)&& null== this[_0x5b48[632]]&& null== this[_0x5b48[630]]};mxLabel[_0x5b48[202]][_0x5b48[1602]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){this[_0x5b48[1684]](_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9);this[_0x5b48[1685]](_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9);mxRectangleShape[_0x5b48[202]][_0x5b48[1602]][_0x5b48[183]](this,arguments)};mxLabel[_0x5b48[202]][_0x5b48[1684]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){null!= this[_0x5b48[618]]&& (_0x43b0x3= this[_0x5b48[1686]](_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9),_0x43b0x2[_0x5b48[618]](_0x43b0x3[_0x5b48[235]],_0x43b0x3[_0x5b48[236]],_0x43b0x3[_0x5b48[117]],_0x43b0x3[_0x5b48[119]],this[_0x5b48[618]],!1,!1,!1))};mxLabel[_0x5b48[202]][_0x5b48[1686]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){var _0x43b0x9=mxUtils[_0x5b48[433]](this[_0x5b48[124]],mxConstants.STYLE_IMAGE_ALIGN,mxConstants.ALIGN_LEFT),_0x43b0xa=mxUtils[_0x5b48[433]](this[_0x5b48[124]],mxConstants.STYLE_IMAGE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE),_0x43b0x12=mxUtils[_0x5b48[1550]](this[_0x5b48[124]],mxConstants.STYLE_IMAGE_WIDTH,mxConstants.DEFAULT_IMAGESIZE),_0x43b0x13=mxUtils[_0x5b48[1550]](this[_0x5b48[124]],mxConstants.STYLE_IMAGE_HEIGHT,mxConstants.DEFAULT_IMAGESIZE),_0x43b0x14=mxUtils[_0x5b48[1550]](this[_0x5b48[124]],mxConstants.STYLE_SPACING,this[_0x5b48[657]])+ 5;_0x43b0x2= _0x43b0x9== mxConstants[_0x5b48[479]]?_0x43b0x2+ (_0x43b0x4- _0x43b0x12)/ 2:_0x43b0x9== mxConstants[_0x5b48[480]]?_0x43b0x2+ (_0x43b0x4- _0x43b0x12- _0x43b0x14):_0x43b0x2+ _0x43b0x14;_0x43b0x3= _0x43b0xa== mxConstants[_0x5b48[1687]]?_0x43b0x3+ _0x43b0x14:_0x43b0xa== mxConstants[_0x5b48[482]]?_0x43b0x3+ (_0x43b0x5- _0x43b0x13- _0x43b0x14):_0x43b0x3+ (_0x43b0x5- _0x43b0x13)/ 2;return new mxRectangle(_0x43b0x2,_0x43b0x3,_0x43b0x12,_0x43b0x13)};mxLabel[_0x5b48[202]][_0x5b48[1685]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){null!= this[_0x5b48[1683]]?(this[_0x5b48[1683]][_0x5b48[1562]]= this[_0x5b48[1688]](_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9),this[_0x5b48[1683]][_0x5b48[1209]](_0x43b0x2)):null!= this[_0x5b48[631]]&& (_0x43b0x3= this[_0x5b48[1688]](_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9),_0x43b0x2[_0x5b48[618]](_0x43b0x3[_0x5b48[235]],_0x43b0x3[_0x5b48[236]],_0x43b0x3[_0x5b48[117]],_0x43b0x3[_0x5b48[119]],this[_0x5b48[631]],!1,!1,!1))};mxLabel[_0x5b48[202]][_0x5b48[1688]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){var _0x43b0x9=mxUtils[_0x5b48[433]](this[_0x5b48[124]],mxConstants.STYLE_IMAGE_ALIGN,mxConstants.ALIGN_LEFT),_0x43b0xa=mxUtils[_0x5b48[433]](this[_0x5b48[124]],mxConstants.STYLE_IMAGE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE),_0x43b0x12=mxUtils[_0x5b48[1550]](this[_0x5b48[124]],mxConstants.STYLE_INDICATOR_WIDTH,this[_0x5b48[1682]]),_0x43b0x13=mxUtils[_0x5b48[1550]](this[_0x5b48[124]],mxConstants.STYLE_INDICATOR_HEIGHT,this[_0x5b48[1682]]),_0x43b0x14=this[_0x5b48[657]]+ 5;_0x43b0x2= _0x43b0x9== mxConstants[_0x5b48[480]]?_0x43b0x2+ (_0x43b0x4- _0x43b0x12- _0x43b0x14):_0x43b0x9== mxConstants[_0x5b48[479]]?_0x43b0x2+ (_0x43b0x4- _0x43b0x12)/ 2:_0x43b0x2+ _0x43b0x14;_0x43b0x3= _0x43b0xa== mxConstants[_0x5b48[482]]?_0x43b0x3+ (_0x43b0x5- _0x43b0x13- _0x43b0x14):_0x43b0xa== mxConstants[_0x5b48[1687]]?_0x43b0x3+ _0x43b0x14:_0x43b0x3+ (_0x43b0x5- _0x43b0x13)/ 2;return new mxRectangle(_0x43b0x2,_0x43b0x3,_0x43b0x12,_0x43b0x13)};mxLabel[_0x5b48[202]][_0x5b48[1575]]= function(){for(mxRectangleShape[_0x5b48[202]][_0x5b48[1575]][_0x5b48[183]](this,arguments);this[_0x5b48[252]][_0x5b48[1580]]();){this[_0x5b48[252]][_0x5b48[266]](this[_0x5b48[252]][_0x5b48[1581]])};if(null!= this[_0x5b48[618]]){var _0x43b0x2=document[_0x5b48[55]](_0x5b48[466]);_0x43b0x2[_0x5b48[124]][_0x5b48[491]]= _0x5b48[1500];_0x43b0x2[_0x5b48[57]](_0x5b48[467],_0x5b48[468]);var _0x43b0x3=this[_0x5b48[1686]](this[_0x5b48[1562]][_0x5b48[235]],this[_0x5b48[1562]][_0x5b48[236]],this[_0x5b48[1562]][_0x5b48[117]],this[_0x5b48[1562]][_0x5b48[119]]);_0x43b0x3[_0x5b48[235]]-= this[_0x5b48[1562]][_0x5b48[235]];_0x43b0x3[_0x5b48[236]]-= this[_0x5b48[1562]][_0x5b48[236]];_0x43b0x2[_0x5b48[124]][_0x5b48[361]]= Math[_0x5b48[488]](_0x43b0x3[_0x5b48[235]])+ _0x5b48[168];_0x43b0x2[_0x5b48[124]][_0x5b48[125]]= Math[_0x5b48[488]](_0x43b0x3[_0x5b48[236]])+ _0x5b48[168];_0x43b0x2[_0x5b48[124]][_0x5b48[117]]= Math[_0x5b48[488]](_0x43b0x3[_0x5b48[117]])+ _0x5b48[168];_0x43b0x2[_0x5b48[124]][_0x5b48[119]]= Math[_0x5b48[488]](_0x43b0x3[_0x5b48[119]])+ _0x5b48[168];_0x43b0x2[_0x5b48[390]]= this[_0x5b48[618]];this[_0x5b48[252]][_0x5b48[62]](_0x43b0x2)}};function mxCylinder(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){mxShape[_0x5b48[239]](this);this[_0x5b48[1562]]= _0x43b0x2;this[_0x5b48[1334]]= _0x43b0x3;this[_0x5b48[1336]]= _0x43b0x4;this[_0x5b48[1307]]= null!= _0x43b0x5?_0x43b0x5:1}mxUtils[_0x5b48[1284]](mxCylinder,mxShape);mxCylinder[_0x5b48[202]][_0x5b48[1503]]= 40;mxCylinder[_0x5b48[202]][_0x5b48[1564]]= 0;mxCylinder[_0x5b48[202]][_0x5b48[1595]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){_0x43b0x2[_0x5b48[513]](_0x43b0x3,_0x43b0x4);_0x43b0x2[_0x5b48[1275]]();this[_0x5b48[1625]](_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,!1);_0x43b0x2[_0x5b48[1337]]();_0x43b0x2[_0x5b48[1267]](!1);_0x43b0x2[_0x5b48[1275]]();this[_0x5b48[1625]](_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,!0);_0x43b0x2[_0x5b48[1336]]()};mxCylinder[_0x5b48[202]][_0x5b48[1625]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa){_0x43b0x3= Math[_0x5b48[243]](this[_0x5b48[1503]],Math[_0x5b48[488]](_0x43b0x9/ 5));if(_0x43b0xa&& null!= this[_0x5b48[1334]]|| !_0x43b0xa&& null== this[_0x5b48[1334]]){_0x43b0x2[_0x5b48[1276]](0,_0x43b0x3),_0x43b0x2[_0x5b48[1279]](0,2* _0x43b0x3,_0x43b0x5,2* _0x43b0x3,_0x43b0x5,_0x43b0x3),_0x43b0xa|| (_0x43b0x2[_0x5b48[1336]](),_0x43b0x2[_0x5b48[1275]]())};_0x43b0xa|| (_0x43b0x2[_0x5b48[1276]](0,_0x43b0x3),_0x43b0x2[_0x5b48[1279]](0,-_0x43b0x3/ 3,_0x43b0x5,-_0x43b0x3/ 3,_0x43b0x5,_0x43b0x3),_0x43b0x2[_0x5b48[1277]](_0x43b0x5,_0x43b0x9- _0x43b0x3),_0x43b0x2[_0x5b48[1279]](_0x43b0x5,_0x43b0x9+ _0x43b0x3/ 3,0,_0x43b0x9+ _0x43b0x3/ 3,0,_0x43b0x9- _0x43b0x3),_0x43b0x2[_0x5b48[268]]())};function mxConnector(_0x43b0x2,_0x43b0x3,_0x43b0x4){mxPolyline[_0x5b48[239]](this,_0x43b0x2,_0x43b0x3,_0x43b0x4)}mxUtils[_0x5b48[1284]](mxConnector,mxPolyline);mxConnector[_0x5b48[202]][_0x5b48[1594]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=this[_0x5b48[1689]](_0x43b0x2,_0x43b0x3,!0),_0x43b0x5=this[_0x5b48[1689]](_0x43b0x2,_0x43b0x3,!1);null== this[_0x5b48[124]]|| 1!= this[_0x5b48[124]][mxConstants[_0x5b48[1690]]]?this[_0x5b48[1639]](_0x43b0x2,_0x43b0x3,this[_0x5b48[1606]]):this[_0x5b48[1691]](_0x43b0x2,_0x43b0x3);_0x43b0x2[_0x5b48[1245]](this[_0x5b48[1336]]);_0x43b0x2[_0x5b48[1267]](!1);_0x43b0x2[_0x5b48[1251]](!1);null!= _0x43b0x4&& _0x43b0x4();null!= _0x43b0x5&& _0x43b0x5()};mxConnector[_0x5b48[202]][_0x5b48[1691]]= function(_0x43b0x2,_0x43b0x3){_0x43b0x2[_0x5b48[1275]]();var _0x43b0x4=_0x43b0x3[0],_0x43b0x5=_0x43b0x3[_0x5b48[67]];_0x43b0x2[_0x5b48[1276]](_0x43b0x4[_0x5b48[235]],_0x43b0x4[_0x5b48[236]]);for(_0x43b0x4= 1;_0x43b0x4< _0x43b0x5- 2;_0x43b0x4++){var _0x43b0x9=_0x43b0x3[_0x43b0x4],_0x43b0xa=_0x43b0x3[_0x43b0x4+ 1];_0x43b0x2[_0x5b48[1278]](_0x43b0x9[_0x5b48[235]],_0x43b0x9[_0x5b48[236]],(_0x43b0x9[_0x5b48[235]]+ _0x43b0xa[_0x5b48[235]])/ 2,(_0x43b0x9[_0x5b48[236]]+ _0x43b0xa[_0x5b48[236]])/ 2)};_0x43b0x9= _0x43b0x3[_0x43b0x5- 2];_0x43b0xa= _0x43b0x3[_0x43b0x5- 1];_0x43b0x2[_0x5b48[1278]](_0x43b0x9[_0x5b48[235]],_0x43b0x9[_0x5b48[236]],_0x43b0xa[_0x5b48[235]],_0x43b0xa[_0x5b48[236]]);_0x43b0x2[_0x5b48[1336]]()};mxConnector[_0x5b48[202]][_0x5b48[1689]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){var _0x43b0x5=_0x43b0x3[_0x5b48[67]],_0x43b0x9=_0x43b0x4?_0x43b0x3[1]:_0x43b0x3[_0x43b0x5- 2];_0x43b0x3= _0x43b0x4?_0x43b0x3[0]:_0x43b0x3[_0x43b0x5- 1];var _0x43b0x5=_0x43b0x3[_0x5b48[235]]- _0x43b0x9[_0x5b48[235]],_0x43b0xa=_0x43b0x3[_0x5b48[236]]- _0x43b0x9[_0x5b48[236]],_0x43b0x12=Math[_0x5b48[160]](1,Math[_0x5b48[428]](_0x43b0x5* _0x43b0x5+ _0x43b0xa* _0x43b0xa)),_0x43b0x9=_0x43b0x5/ _0x43b0x12,_0x43b0x5=_0x43b0xa/ _0x43b0x12,_0x43b0xa=mxUtils[_0x5b48[1550]](this[_0x5b48[124]],_0x43b0x4?mxConstants[_0x5b48[1692]]:mxConstants[_0x5b48[1693]],mxConstants.DEFAULT_MARKERSIZE),_0x43b0x12=mxUtils[_0x5b48[433]](this[_0x5b48[124]],_0x43b0x4?mxConstants[_0x5b48[1694]]:mxConstants[_0x5b48[1695]]);return mxMarker[_0x5b48[1689]](_0x43b0x2,this,_0x43b0x12,_0x43b0x3,_0x43b0x9,_0x43b0x5,_0x43b0xa,_0x43b0x4,this[_0x5b48[1307]],0!= this[_0x5b48[124]][_0x43b0x4?mxConstants[_0x5b48[1696]]:mxConstants[_0x5b48[1697]]])};mxConnector[_0x5b48[202]][_0x5b48[1612]]= function(_0x43b0x2){mxShape[_0x5b48[202]][_0x5b48[1612]][_0x5b48[183]](this,arguments);var _0x43b0x3=0;mxUtils[_0x5b48[433]](this[_0x5b48[124]],mxConstants.STYLE_STARTARROW,mxConstants.NONE)!= mxConstants[_0x5b48[217]]&& (_0x43b0x3= mxUtils[_0x5b48[1550]](this[_0x5b48[124]],mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_MARKERSIZE)+ 1);mxUtils[_0x5b48[433]](this[_0x5b48[124]],mxConstants.STYLE_ENDARROW,mxConstants.NONE)!= mxConstants[_0x5b48[217]]&& (_0x43b0x3= Math[_0x5b48[160]](_0x43b0x3,mxUtils[_0x5b48[1550]](this[_0x5b48[124]],mxConstants.STYLE_ENDSIZE,mxConstants.DEFAULT_MARKERSIZE))+ 1);_0x43b0x2[_0x5b48[244]](Math[_0x5b48[430]](_0x43b0x3* this[_0x5b48[255]]))};function mxSwimlane(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){mxShape[_0x5b48[239]](this);this[_0x5b48[1562]]= _0x43b0x2;this[_0x5b48[1334]]= _0x43b0x3;this[_0x5b48[1336]]= _0x43b0x4;this[_0x5b48[1307]]= null!= _0x43b0x5?_0x43b0x5:1}mxUtils[_0x5b48[1284]](mxSwimlane,mxShape);mxSwimlane[_0x5b48[202]][_0x5b48[1680]]= 16;mxSwimlane[_0x5b48[202]][_0x5b48[1597]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){_0x43b0x2= Math[_0x5b48[243]](_0x43b0x9,mxUtils[_0x5b48[433]](this[_0x5b48[124]],mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE));return new mxRectangle(_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x2)};mxSwimlane[_0x5b48[202]][_0x5b48[1614]]= function(){var _0x43b0x2=mxShape[_0x5b48[202]][_0x5b48[1614]][_0x5b48[183]](this,arguments);1!= mxUtils[_0x5b48[433]](this[_0x5b48[124]],mxConstants.STYLE_HORIZONTAL,1)&& (_0x43b0x2+= mxText[_0x5b48[202]][_0x5b48[1616]]);return _0x43b0x2};mxSwimlane[_0x5b48[202]][_0x5b48[1615]]= function(){return this[_0x5b48[1614]]()};mxSwimlane[_0x5b48[202]][_0x5b48[1590]]= function(){return mxShape[_0x5b48[202]][_0x5b48[1590]][_0x5b48[183]](this,arguments)|| 1!= mxUtils[_0x5b48[433]](this[_0x5b48[124]],mxConstants.STYLE_HORIZONTAL,1)};mxSwimlane[_0x5b48[202]][_0x5b48[1603]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){_0x43b0x2= mxUtils[_0x5b48[433]](this[_0x5b48[124]],mxConstants.STYLE_ARCSIZE,100* mxConstants[_0x5b48[1557]])/ 100;return 3* _0x43b0x4* _0x43b0x2};mxSwimlane[_0x5b48[202]][_0x5b48[1595]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){var _0x43b0xa=Math[_0x5b48[243]](_0x43b0x9,mxUtils[_0x5b48[433]](this[_0x5b48[124]],mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE)),_0x43b0x12=mxUtils[_0x5b48[433]](this[_0x5b48[124]],mxConstants.STYLE_SWIMLANE_FILLCOLOR,mxConstants.NONE),_0x43b0x13=1== mxUtils[_0x5b48[433]](this[_0x5b48[124]],mxConstants.STYLE_SWIMLANE_LINE,1),_0x43b0x14=0;_0x43b0x2[_0x5b48[513]](_0x43b0x3,_0x43b0x4);this[_0x5b48[1606]]?(_0x43b0x14= this[_0x5b48[1603]](_0x43b0x5,_0x43b0x9,_0x43b0xa),this[_0x5b48[1698]](_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa,_0x43b0x14,_0x43b0x12,_0x43b0x13)):this[_0x5b48[1699]](_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa,_0x43b0x12,_0x43b0x13);_0x43b0x12= mxUtils[_0x5b48[433]](this[_0x5b48[124]],mxConstants.STYLE_SEPARATORCOLOR,mxConstants.NONE);this[_0x5b48[1700]](_0x43b0x2,_0x43b0x5,_0x43b0xa,_0x43b0x9,_0x43b0x12);null!= this[_0x5b48[618]]&& (_0x43b0x9= this[_0x5b48[1686]](_0x43b0x3,_0x43b0xa,_0x43b0x5,_0x43b0x9),_0x43b0x2[_0x5b48[618]](_0x43b0x9[_0x5b48[235]]- _0x43b0x3,_0x43b0x9[_0x5b48[236]]- _0x43b0x4,_0x43b0x9[_0x5b48[117]],_0x43b0x9[_0x5b48[119]],this[_0x5b48[618]],!1,!1,!1));this[_0x5b48[617]]&& (_0x43b0x2[_0x5b48[1267]](!1),this[_0x5b48[1604]](_0x43b0x2,0,0,_0x43b0x5,_0x43b0xa,_0x43b0x14))};mxSwimlane[_0x5b48[202]][_0x5b48[1699]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa,_0x43b0x12,_0x43b0x13){_0x43b0x12!= mxConstants[_0x5b48[217]]&& (_0x43b0x2[_0x5b48[815]](),_0x43b0x2[_0x5b48[1245]](_0x43b0x12),_0x43b0x2[_0x5b48[1319]](0,0,_0x43b0x5,_0x43b0x9),_0x43b0x2[_0x5b48[1337]](),_0x43b0x2[_0x5b48[1210]](),_0x43b0x2[_0x5b48[1267]](!1));_0x43b0x2[_0x5b48[1275]]();_0x43b0x2[_0x5b48[1276]](0,_0x43b0xa);_0x43b0x2[_0x5b48[1277]](0,0);_0x43b0x2[_0x5b48[1277]](_0x43b0x5,0);_0x43b0x2[_0x5b48[1277]](_0x43b0x5,_0x43b0xa);_0x43b0x13&& _0x43b0x2[_0x5b48[268]]();_0x43b0x2[_0x5b48[1337]]();_0x43b0xa< _0x43b0x9&& _0x43b0x12== mxConstants[_0x5b48[217]]&& (_0x43b0x2[_0x5b48[1229]]= !1,_0x43b0x2[_0x5b48[1275]](),_0x43b0x2[_0x5b48[1276]](0,_0x43b0xa),_0x43b0x2[_0x5b48[1277]](0,_0x43b0x9),_0x43b0x2[_0x5b48[1277]](_0x43b0x5,_0x43b0x9),_0x43b0x2[_0x5b48[1277]](_0x43b0x5,_0x43b0xa),_0x43b0x2[_0x5b48[1336]]())};mxSwimlane[_0x5b48[202]][_0x5b48[1698]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa,_0x43b0x12,_0x43b0x13,_0x43b0x14){_0x43b0x13!= mxConstants[_0x5b48[217]]&& (_0x43b0x2[_0x5b48[815]](),_0x43b0x2[_0x5b48[1245]](_0x43b0x13),_0x43b0x2[_0x5b48[1320]](0,0,_0x43b0x5,_0x43b0x9,_0x43b0x12,_0x43b0x12),_0x43b0x2[_0x5b48[1337]](),_0x43b0x2[_0x5b48[1210]](),_0x43b0x2[_0x5b48[1267]](!1));_0x43b0x2[_0x5b48[1275]]();_0x43b0x2[_0x5b48[1276]](_0x43b0x5,_0x43b0xa);_0x43b0x2[_0x5b48[1277]](_0x43b0x5,_0x43b0x12);_0x43b0x2[_0x5b48[1278]](_0x43b0x5,0,_0x43b0x5- Math[_0x5b48[243]](_0x43b0x5/ 2,_0x43b0x12),0);_0x43b0x2[_0x5b48[1277]](Math[_0x5b48[243]](_0x43b0x5/ 2,_0x43b0x12),0);_0x43b0x2[_0x5b48[1278]](0,0,0,_0x43b0x12);_0x43b0x2[_0x5b48[1277]](0,_0x43b0xa);_0x43b0x14&& _0x43b0x2[_0x5b48[268]]();_0x43b0x2[_0x5b48[1337]]();_0x43b0xa< _0x43b0x9&& _0x43b0x13== mxConstants[_0x5b48[217]]&& (_0x43b0x2[_0x5b48[1229]]= !1,_0x43b0x2[_0x5b48[1275]](),_0x43b0x2[_0x5b48[1276]](0,_0x43b0xa),_0x43b0x2[_0x5b48[1277]](0,_0x43b0x9- _0x43b0x12),_0x43b0x2[_0x5b48[1278]](0,_0x43b0x9,Math[_0x5b48[243]](_0x43b0x5/ 2,_0x43b0x12),_0x43b0x9),_0x43b0x2[_0x5b48[1277]](_0x43b0x5- Math[_0x5b48[243]](_0x43b0x5/ 2,_0x43b0x12),_0x43b0x9),_0x43b0x2[_0x5b48[1278]](_0x43b0x5,_0x43b0x9,_0x43b0x5,_0x43b0x9- _0x43b0x12),_0x43b0x2[_0x5b48[1277]](_0x43b0x5,_0x43b0xa),_0x43b0x2[_0x5b48[1336]]())};mxSwimlane[_0x5b48[202]][_0x5b48[1700]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){_0x43b0x9!= mxConstants[_0x5b48[217]]&& (_0x43b0x2[_0x5b48[1249]](_0x43b0x9),_0x43b0x2[_0x5b48[1251]](!0),_0x43b0x2[_0x5b48[1275]](),_0x43b0x2[_0x5b48[1276]](_0x43b0x3,_0x43b0x4),_0x43b0x2[_0x5b48[1277]](_0x43b0x3,_0x43b0x5),_0x43b0x2[_0x5b48[1336]](),_0x43b0x2[_0x5b48[1251]](!1))};mxSwimlane[_0x5b48[202]][_0x5b48[1686]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){return new mxRectangle(_0x43b0x2+ _0x43b0x4- this[_0x5b48[1680]],_0x43b0x3,this[_0x5b48[1680]],this[_0x5b48[1680]])};function mxGraphLayout(_0x43b0x2){this[_0x5b48[1179]]= _0x43b0x2}mxGraphLayout[_0x5b48[202]][_0x5b48[1179]]= null;mxGraphLayout[_0x5b48[202]][_0x5b48[1701]]= !0;mxGraphLayout[_0x5b48[202]][_0x5b48[1101]]= null;mxGraphLayout[_0x5b48[202]][_0x5b48[1702]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){};mxGraphLayout[_0x5b48[202]][_0x5b48[350]]= function(_0x43b0x2){};mxGraphLayout[_0x5b48[202]][_0x5b48[1703]]= function(){return this[_0x5b48[1179]]};mxGraphLayout[_0x5b48[202]][_0x5b48[1704]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){_0x43b0x4= this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[248]](_0x43b0x3);_0x43b0x3= null!= _0x43b0x4?_0x43b0x4[_0x5b48[124]]:this[_0x5b48[1179]][_0x5b48[1705]](_0x43b0x3);return null!= _0x43b0x3?_0x43b0x3[_0x43b0x2]:null};mxGraphLayout[_0x5b48[1706]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){if(null!= _0x43b0x4&& null!= _0x43b0x2){_0x43b0x3= null!= _0x43b0x3?_0x43b0x3:!0;_0x43b0x9= _0x43b0x9|| [];var _0x43b0xa=mxCellPath[_0x5b48[385]](_0x43b0x2);if(null== _0x43b0x9[_0x43b0xa]&& (_0x43b0x9[_0x43b0xa]= _0x43b0x2,_0x43b0x5= _0x43b0x4(_0x43b0x2,_0x43b0x5),null== _0x43b0x5|| _0x43b0x5)){if(_0x43b0x5= this[_0x5b48[1179]][_0x5b48[251]][_0x5b48[1707]](_0x43b0x2),0< _0x43b0x5){for(_0x43b0xa= 0;_0x43b0xa< _0x43b0x5;_0x43b0xa++){var _0x43b0x12=this[_0x5b48[1179]][_0x5b48[251]][_0x5b48[1708]](_0x43b0x2,_0x43b0xa),_0x43b0x13=this[_0x5b48[1179]][_0x5b48[251]][_0x5b48[1709]](_0x43b0x12,!0)== _0x43b0x2;if(!_0x43b0x3|| _0x43b0x13){_0x43b0x13= this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[1710]](_0x43b0x12,!_0x43b0x13),this[_0x5b48[1706]](_0x43b0x13,_0x43b0x3,_0x43b0x4,_0x43b0x12,_0x43b0x9)}}}}}};mxGraphLayout[_0x5b48[202]][_0x5b48[1711]]= function(_0x43b0x2){return this[_0x5b48[1179]][_0x5b48[1712]](_0x43b0x2)};mxGraphLayout[_0x5b48[202]][_0x5b48[1713]]= function(_0x43b0x2){return !this[_0x5b48[1179]][_0x5b48[502]]()[_0x5b48[1193]](_0x43b0x2)|| !this[_0x5b48[1179]][_0x5b48[1714]](_0x43b0x2)};mxGraphLayout[_0x5b48[202]][_0x5b48[1715]]= function(_0x43b0x2){var _0x43b0x3=this[_0x5b48[1179]][_0x5b48[502]]();return !_0x43b0x3[_0x5b48[250]](_0x43b0x2)|| !this[_0x5b48[1179]][_0x5b48[1714]](_0x43b0x2) || null== _0x43b0x3[_0x5b48[1709]](_0x43b0x2,!0) || null== _0x43b0x3[_0x5b48[1709]](_0x43b0x2,!1)};mxGraphLayout[_0x5b48[202]][_0x5b48[1716]]= function(_0x43b0x2,_0x43b0x3){this[_0x5b48[1179]][_0x5b48[1717]](mxConstants.STYLE_NOEDGESTYLE,_0x43b0x3?_0x5b48[468]:_0x5b48[500],[_0x43b0x2])};mxGraphLayout[_0x5b48[202]][_0x5b48[1718]]= function(_0x43b0x2,_0x43b0x3){this[_0x5b48[1179]][_0x5b48[1717]](mxConstants.STYLE_ORTHOGONAL,_0x43b0x3?_0x5b48[500]:_0x5b48[468],[_0x43b0x2])};mxGraphLayout[_0x5b48[202]][_0x5b48[1719]]= function(_0x43b0x2){var _0x43b0x3= new mxPoint;if(null!= _0x43b0x2&& _0x43b0x2!= this[_0x5b48[1101]]){var _0x43b0x4=this[_0x5b48[1179]][_0x5b48[502]]();if(_0x43b0x4[_0x5b48[1720]](this[_0x5b48[1101]],_0x43b0x2)){for(var _0x43b0x5=_0x43b0x4[_0x5b48[1721]](_0x43b0x2);_0x43b0x2!= this[_0x5b48[1101]];){_0x43b0x3[_0x5b48[235]]+= _0x43b0x5[_0x5b48[235]],_0x43b0x3[_0x5b48[236]]+= _0x43b0x5[_0x5b48[236]],_0x43b0x2= _0x43b0x4[_0x5b48[1197]](_0x43b0x2),_0x43b0x5= _0x43b0x4[_0x5b48[1721]](_0x43b0x2)}}};return _0x43b0x3};mxGraphLayout[_0x5b48[202]][_0x5b48[1722]]= function(_0x43b0x2,_0x43b0x3){if(null!= _0x43b0x2){var _0x43b0x4=this[_0x5b48[1179]][_0x5b48[251]],_0x43b0x5=_0x43b0x4[_0x5b48[1721]](_0x43b0x2);null== _0x43b0x5?(_0x43b0x5= new mxGeometry,_0x43b0x5[_0x5b48[1723]](!0)):_0x43b0x5= _0x43b0x5[_0x5b48[238]]();if(null!= this[_0x5b48[1101]]&& null!= _0x43b0x3){for(var _0x43b0x9=_0x43b0x4[_0x5b48[1197]](_0x43b0x2),_0x43b0x9=this[_0x5b48[1719]](_0x43b0x9),_0x43b0xa=0;_0x43b0xa< _0x43b0x3[_0x5b48[67]];_0x43b0xa++){_0x43b0x3[_0x43b0xa][_0x5b48[235]]-= _0x43b0x9[_0x5b48[235]],_0x43b0x3[_0x43b0xa][_0x5b48[236]]-= _0x43b0x9[_0x5b48[236]]}};_0x43b0x5[_0x5b48[1525]]= _0x43b0x3;_0x43b0x4[_0x5b48[1724]](_0x43b0x2,_0x43b0x5)}};mxGraphLayout[_0x5b48[202]][_0x5b48[1725]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){var _0x43b0x5=this[_0x5b48[1179]][_0x5b48[502]](),_0x43b0x9=_0x43b0x5[_0x5b48[1721]](_0x43b0x2),_0x43b0xa=null;if(null!= _0x43b0x9){_0x43b0xa= new mxRectangle(_0x43b0x3,_0x43b0x4,_0x43b0x9[_0x5b48[117]],_0x43b0x9[_0x5b48[119]]);if(this[_0x5b48[1701]]){var _0x43b0x12=this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[248]](_0x43b0x2);if(null!= _0x43b0x12&& null!= _0x43b0x12[_0x5b48[963]]&& null!= _0x43b0x12[_0x5b48[963]][_0x5b48[1563]]){var _0x43b0x13=this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[255]],_0x43b0x14=_0x43b0x12[_0x5b48[963]][_0x5b48[1563]];_0x43b0x12[_0x5b48[963]][_0x5b48[1563]][_0x5b48[235]]< _0x43b0x12[_0x5b48[235]]&& (_0x43b0x3+= (_0x43b0x12[_0x5b48[235]]- _0x43b0x14[_0x5b48[235]])/ _0x43b0x13,_0x43b0xa[_0x5b48[117]]= _0x43b0x14[_0x5b48[117]]);_0x43b0x12[_0x5b48[963]][_0x5b48[1563]][_0x5b48[236]]< _0x43b0x12[_0x5b48[236]]&& (_0x43b0x4+= (_0x43b0x12[_0x5b48[236]]- _0x43b0x14[_0x5b48[236]])/ _0x43b0x13,_0x43b0xa[_0x5b48[119]]= _0x43b0x14[_0x5b48[119]])}};null!= this[_0x5b48[1101]]&& (_0x43b0x12= _0x43b0x5[_0x5b48[1197]](_0x43b0x2),null!= _0x43b0x12&& _0x43b0x12!= this[_0x5b48[1101]]&& (_0x43b0x12= this[_0x5b48[1719]](_0x43b0x12),_0x43b0x3-= _0x43b0x12[_0x5b48[235]],_0x43b0x4-= _0x43b0x12[_0x5b48[236]]));if(_0x43b0x9[_0x5b48[235]]!= _0x43b0x3|| _0x43b0x9[_0x5b48[236]]!= _0x43b0x4){_0x43b0x9= _0x43b0x9[_0x5b48[238]](),_0x43b0x9[_0x5b48[235]]= _0x43b0x3,_0x43b0x9[_0x5b48[236]]= _0x43b0x4,_0x43b0x5[_0x5b48[1724]](_0x43b0x2,_0x43b0x9)}};return _0x43b0xa};mxGraphLayout[_0x5b48[202]][_0x5b48[1726]]= function(_0x43b0x2){var _0x43b0x3=this[_0x5b48[1179]][_0x5b48[502]]()[_0x5b48[1721]](_0x43b0x2);if(this[_0x5b48[1701]]){var _0x43b0x4=this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[248]](_0x43b0x2);if(null!= _0x43b0x4&& null!= _0x43b0x4[_0x5b48[963]]&& null!= _0x43b0x4[_0x5b48[963]][_0x5b48[1563]]){var _0x43b0x5=this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[255]],_0x43b0x9=_0x43b0x4[_0x5b48[963]][_0x5b48[1563]],_0x43b0xa=Math[_0x5b48[160]](_0x43b0x4[_0x5b48[235]]- _0x43b0x9[_0x5b48[235]],0)/ _0x43b0x5,_0x43b0x12=Math[_0x5b48[160]](_0x43b0x4[_0x5b48[236]]- _0x43b0x9[_0x5b48[236]],0)/ _0x43b0x5,_0x43b0x13=Math[_0x5b48[160]](_0x43b0x9[_0x5b48[235]]+ _0x43b0x9[_0x5b48[117]]- (_0x43b0x4[_0x5b48[235]]+ _0x43b0x4[_0x5b48[117]]),0)/ _0x43b0x5,_0x43b0x4=Math[_0x5b48[160]](_0x43b0x9[_0x5b48[236]]+ _0x43b0x9[_0x5b48[119]]- (_0x43b0x4[_0x5b48[236]]+ _0x43b0x4[_0x5b48[119]]),0)/ _0x43b0x5,_0x43b0x3= new mxRectangle(_0x43b0x3[_0x5b48[235]]- _0x43b0xa,_0x43b0x3[_0x5b48[236]]- _0x43b0x12,_0x43b0x3[_0x5b48[117]]+ _0x43b0xa+ _0x43b0x13,_0x43b0x3[_0x5b48[119]]+ _0x43b0x12+ _0x43b0x4)}};null!= this[_0x5b48[1101]]&& (_0x43b0x2= this[_0x5b48[1179]][_0x5b48[502]]()[_0x5b48[1197]](_0x43b0x2),_0x43b0x3= _0x43b0x3[_0x5b48[238]](),null!= _0x43b0x2&& _0x43b0x2!= this[_0x5b48[1101]]&& (_0x43b0x2= this[_0x5b48[1719]](_0x43b0x2),_0x43b0x3[_0x5b48[235]]+= _0x43b0x2[_0x5b48[235]],_0x43b0x3[_0x5b48[236]]+= _0x43b0x2[_0x5b48[236]]));return new mxRectangle(_0x43b0x3[_0x5b48[235]],_0x43b0x3[_0x5b48[236]],_0x43b0x3[_0x5b48[117]],_0x43b0x3[_0x5b48[119]])};mxGraphLayout[_0x5b48[202]][_0x5b48[1727]]= function(_0x43b0x2,_0x43b0x3){this[_0x5b48[1179]][_0x5b48[502]]()[_0x5b48[473]]();try{for(var _0x43b0x4=_0x43b0x2[_0x5b48[67]]- 1;0<= _0x43b0x4;_0x43b0x4--){var _0x43b0x5=_0x43b0x2[_0x43b0x4],_0x43b0x9=this[_0x5b48[1179]][_0x5b48[1728]](_0x43b0x5),_0x43b0xa=this[_0x5b48[1179]][_0x5b48[1729]](_0x43b0x9),_0x43b0x12=this[_0x5b48[1179]][_0x5b48[1198]](_0x43b0x5),_0x43b0x13=0,_0x43b0x14=0;if(this[_0x5b48[1179]][_0x5b48[1730]](_0x43b0x5)){var _0x43b0x15=this[_0x5b48[1179]][_0x5b48[1731]](_0x43b0x5),_0x43b0x13=_0x43b0x15[_0x5b48[117]],_0x43b0x14=_0x43b0x15[_0x5b48[119]]};null!= _0x43b0xa&& null!= _0x43b0x12&& (_0x43b0x12= _0x43b0x12[_0x5b48[238]](),_0x43b0x12[_0x5b48[235]]= _0x43b0x12[_0x5b48[235]]+ _0x43b0xa[_0x5b48[235]]- _0x43b0x3- _0x43b0x13,_0x43b0x12[_0x5b48[236]]= _0x43b0x12[_0x5b48[236]]+ _0x43b0xa[_0x5b48[236]]- _0x43b0x3- _0x43b0x14,_0x43b0x12[_0x5b48[117]]= _0x43b0xa[_0x5b48[117]]+ 2* _0x43b0x3+ _0x43b0x13,_0x43b0x12[_0x5b48[119]]= _0x43b0xa[_0x5b48[119]]+ 2* _0x43b0x3+ _0x43b0x14,this[_0x5b48[1179]][_0x5b48[502]]()[_0x5b48[1724]](_0x43b0x5,_0x43b0x12),this[_0x5b48[1179]][_0x5b48[834]](_0x43b0x9,_0x43b0x3+ _0x43b0x13- _0x43b0xa[_0x5b48[235]],_0x43b0x3+ _0x43b0x14- _0x43b0xa[_0x5b48[236]]))}}finally{this[_0x5b48[1179]][_0x5b48[502]]()[_0x5b48[476]]()}};function mxStackLayout(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa){mxGraphLayout[_0x5b48[239]](this,_0x43b0x2);this[_0x5b48[662]]= null!= _0x43b0x3?_0x43b0x3:!0;this[_0x5b48[657]]= null!= _0x43b0x4?_0x43b0x4:0;this[_0x5b48[1732]]= null!= _0x43b0x5?_0x43b0x5:0;this[_0x5b48[1733]]= null!= _0x43b0x9?_0x43b0x9:0;this[_0x5b48[467]]= null!= _0x43b0xa?_0x43b0xa:0}mxStackLayout[_0x5b48[202]]= new mxGraphLayout;mxStackLayout[_0x5b48[202]][_0x5b48[196]]= mxStackLayout;mxStackLayout[_0x5b48[202]][_0x5b48[662]]= null;mxStackLayout[_0x5b48[202]][_0x5b48[657]]= null;mxStackLayout[_0x5b48[202]][_0x5b48[1732]]= null;mxStackLayout[_0x5b48[202]][_0x5b48[1733]]= null;mxStackLayout[_0x5b48[202]][_0x5b48[467]]= 0;mxStackLayout[_0x5b48[202]][_0x5b48[1734]]= !1;mxStackLayout[_0x5b48[202]][_0x5b48[1334]]= !1;mxStackLayout[_0x5b48[202]][_0x5b48[1735]]= !1;mxStackLayout[_0x5b48[202]][_0x5b48[1736]]= !1;mxStackLayout[_0x5b48[202]][_0x5b48[1333]]= null;mxStackLayout[_0x5b48[202]][_0x5b48[1737]]= function(){return this[_0x5b48[662]]};mxStackLayout[_0x5b48[202]][_0x5b48[1702]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){var _0x43b0x5=this[_0x5b48[1179]][_0x5b48[502]](),_0x43b0x9=_0x43b0x5[_0x5b48[1197]](_0x43b0x2),_0x43b0xa=this[_0x5b48[1737]]();if(null!= _0x43b0x2&& null!= _0x43b0x9){var _0x43b0x12=0,_0x43b0x13=0,_0x43b0x14=_0x43b0x5[_0x5b48[262]](_0x43b0x9);_0x43b0x3= _0x43b0xa?_0x43b0x3:_0x43b0x4;_0x43b0x12= this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[248]](_0x43b0x9);null!= _0x43b0x12&& (_0x43b0x3-= _0x43b0xa?_0x43b0x12[_0x5b48[235]]:_0x43b0x12[_0x5b48[236]]);for(_0x43b0x12= 0;_0x43b0x12< _0x43b0x14;_0x43b0x12++){if(_0x43b0x4= _0x43b0x5[_0x5b48[263]](_0x43b0x9,_0x43b0x12),_0x43b0x4!= _0x43b0x2&& (_0x43b0x4= _0x43b0x5[_0x5b48[1721]](_0x43b0x4),null!= _0x43b0x4)){_0x43b0x4= _0x43b0xa?_0x43b0x4[_0x5b48[235]]+ _0x43b0x4[_0x5b48[117]]/ 2:_0x43b0x4[_0x5b48[236]]+ _0x43b0x4[_0x5b48[119]]/ 2;if(_0x43b0x13< _0x43b0x3&& _0x43b0x4> _0x43b0x3){break};_0x43b0x13= _0x43b0x4}};_0x43b0xa= _0x43b0x9[_0x5b48[1738]](_0x43b0x2);_0x43b0xa= Math[_0x5b48[160]](0,_0x43b0x12- (_0x43b0x12> _0x43b0xa?1:0));_0x43b0x5[_0x5b48[99]](_0x43b0x9,_0x43b0x2,_0x43b0xa)}};mxStackLayout[_0x5b48[202]][_0x5b48[1739]]= function(_0x43b0x2){var _0x43b0x3=this[_0x5b48[1179]][_0x5b48[502]](),_0x43b0x4=_0x43b0x3[_0x5b48[1721]](_0x43b0x2);if(null!= this[_0x5b48[1179]][_0x5b48[526]]&& (null== _0x43b0x4&& _0x43b0x3[_0x5b48[1740]](_0x43b0x2)|| _0x43b0x2== this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[1741]])){_0x43b0x4= new mxRectangle(0,0,this[_0x5b48[1179]][_0x5b48[526]][_0x5b48[359]]- 1,this[_0x5b48[1179]][_0x5b48[526]][_0x5b48[167]]- 1)};return _0x43b0x4};mxStackLayout[_0x5b48[202]][_0x5b48[350]]= function(_0x43b0x2){if(null!= _0x43b0x2){var _0x43b0x3=this[_0x5b48[1737]](),_0x43b0x4=this[_0x5b48[1179]][_0x5b48[502]](),_0x43b0x5=this[_0x5b48[1739]](_0x43b0x2),_0x43b0x9=0;null!= _0x43b0x5&& (_0x43b0x9= _0x43b0x3?_0x43b0x5[_0x5b48[119]]:_0x43b0x5[_0x5b48[117]]);var _0x43b0x9=_0x43b0x9- (2* this[_0x5b48[657]]+ 2* this[_0x5b48[467]]),_0x43b0xa=this[_0x5b48[1732]]+ this[_0x5b48[467]],_0x43b0x12=this[_0x5b48[1733]]+ this[_0x5b48[467]];if(this[_0x5b48[1179]][_0x5b48[1730]](_0x43b0x2)){var _0x43b0x13=this[_0x5b48[1179]][_0x5b48[1705]](_0x43b0x2),_0x43b0x14=mxUtils[_0x5b48[433]](_0x43b0x13,mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE),_0x43b0x13=mxUtils[_0x5b48[433]](_0x43b0x13,mxConstants.STYLE_HORIZONTAL,!0);_0x43b0x3== _0x43b0x13&& (_0x43b0x9-= _0x43b0x14);_0x43b0x3?_0x43b0x12+= _0x43b0x14:_0x43b0xa+= _0x43b0x14};_0x43b0x4[_0x5b48[473]]();try{for(var _0x43b0x14=0,_0x43b0x13=null,_0x43b0x15=_0x43b0x4[_0x5b48[262]](_0x43b0x2),_0x43b0x16=0;_0x43b0x16< _0x43b0x15;_0x43b0x16++){var _0x43b0x17=_0x43b0x4[_0x5b48[263]](_0x43b0x2,_0x43b0x16);if(!this[_0x5b48[1713]](_0x43b0x17)&& this[_0x5b48[1711]](_0x43b0x17)){var _0x43b0x18=_0x43b0x4[_0x5b48[1721]](_0x43b0x17);if(null!= _0x43b0x18){_0x43b0x18= _0x43b0x18[_0x5b48[238]]();if(null!= this[_0x5b48[1333]]&& null!= _0x43b0x13&& (_0x43b0x3&& _0x43b0x13[_0x5b48[235]]+ _0x43b0x13[_0x5b48[117]]+ _0x43b0x18[_0x5b48[117]]+ 2* this[_0x5b48[657]]> this[_0x5b48[1333]]|| !_0x43b0x3&& _0x43b0x13[_0x5b48[236]]+ _0x43b0x13[_0x5b48[119]]+ _0x43b0x18[_0x5b48[119]]+ 2* this[_0x5b48[657]]> this[_0x5b48[1333]])){_0x43b0x13= null,_0x43b0x3?_0x43b0x12+= _0x43b0x14+ this[_0x5b48[657]]:_0x43b0xa+= _0x43b0x14+ this[_0x5b48[657]],_0x43b0x14= 0};_0x43b0x14= Math[_0x5b48[160]](_0x43b0x14,_0x43b0x3?_0x43b0x18[_0x5b48[119]]:_0x43b0x18[_0x5b48[117]]);null!= _0x43b0x13?_0x43b0x3?_0x43b0x18[_0x5b48[235]]= _0x43b0x13[_0x5b48[235]]+ _0x43b0x13[_0x5b48[117]]+ this[_0x5b48[657]]:_0x43b0x18[_0x5b48[236]]= _0x43b0x13[_0x5b48[236]]+ _0x43b0x13[_0x5b48[119]]+ this[_0x5b48[657]]:this[_0x5b48[1734]]|| (_0x43b0x3?_0x43b0x18[_0x5b48[235]]= _0x43b0xa:_0x43b0x18[_0x5b48[236]]= _0x43b0x12);_0x43b0x3?_0x43b0x18[_0x5b48[236]]= _0x43b0x12:_0x43b0x18[_0x5b48[235]]= _0x43b0xa;this[_0x5b48[1334]]&& 0< _0x43b0x9&& (_0x43b0x3?_0x43b0x18[_0x5b48[119]]= _0x43b0x9:_0x43b0x18[_0x5b48[117]]= _0x43b0x9);_0x43b0x4[_0x5b48[1724]](_0x43b0x17,_0x43b0x18);_0x43b0x13= _0x43b0x18}}};this[_0x5b48[1735]]&& null!= _0x43b0x5&& null!= _0x43b0x13&& !this[_0x5b48[1179]][_0x5b48[1742]](_0x43b0x2)?(_0x43b0x5= _0x43b0x5[_0x5b48[238]](),_0x43b0x3?_0x43b0x5[_0x5b48[117]]= _0x43b0x13[_0x5b48[235]]+ _0x43b0x13[_0x5b48[117]]+ this[_0x5b48[657]]:_0x43b0x5[_0x5b48[119]]= _0x43b0x13[_0x5b48[236]]+ _0x43b0x13[_0x5b48[119]]+ this[_0x5b48[657]],_0x43b0x4[_0x5b48[1724]](_0x43b0x2,_0x43b0x5)):this[_0x5b48[1736]]&& (null!= _0x43b0x5&& null!= _0x43b0x13)&& (_0x43b0x3?_0x43b0x13[_0x5b48[117]]= _0x43b0x5[_0x5b48[117]]- _0x43b0x13[_0x5b48[235]]- this[_0x5b48[657]]:_0x43b0x13[_0x5b48[119]]= _0x43b0x5[_0x5b48[119]]- _0x43b0x13[_0x5b48[236]]- this[_0x5b48[657]])}finally{_0x43b0x4[_0x5b48[476]]()}}};function mxPartitionLayout(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){mxGraphLayout[_0x5b48[239]](this,_0x43b0x2);this[_0x5b48[662]]= null!= _0x43b0x3?_0x43b0x3:!0;this[_0x5b48[657]]= _0x43b0x4|| 0;this[_0x5b48[467]]= _0x43b0x5|| 0}mxPartitionLayout[_0x5b48[202]]= new mxGraphLayout;mxPartitionLayout[_0x5b48[202]][_0x5b48[196]]= mxPartitionLayout;mxPartitionLayout[_0x5b48[202]][_0x5b48[662]]= null;mxPartitionLayout[_0x5b48[202]][_0x5b48[657]]= null;mxPartitionLayout[_0x5b48[202]][_0x5b48[467]]= null;mxPartitionLayout[_0x5b48[202]][_0x5b48[1743]]= !0;mxPartitionLayout[_0x5b48[202]][_0x5b48[1737]]= function(){return this[_0x5b48[662]]};mxPartitionLayout[_0x5b48[202]][_0x5b48[1702]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){_0x43b0x4= this[_0x5b48[1179]][_0x5b48[502]]();var _0x43b0x5=_0x43b0x4[_0x5b48[1197]](_0x43b0x2);if(null!= _0x43b0x2&& null!= _0x43b0x5){for(var _0x43b0x9=0,_0x43b0xa=0,_0x43b0x12=_0x43b0x4[_0x5b48[262]](_0x43b0x5),_0x43b0x9=0;_0x43b0x9< _0x43b0x12;_0x43b0x9++){var _0x43b0x13=_0x43b0x4[_0x5b48[263]](_0x43b0x5,_0x43b0x9),_0x43b0x13=this[_0x5b48[1726]](_0x43b0x13);if(null!= _0x43b0x13){_0x43b0x13= _0x43b0x13[_0x5b48[235]]+ _0x43b0x13[_0x5b48[117]]/ 2;if(_0x43b0xa< _0x43b0x3&& _0x43b0x13> _0x43b0x3){break};_0x43b0xa= _0x43b0x13}};_0x43b0x3= _0x43b0x5[_0x5b48[1738]](_0x43b0x2);_0x43b0x3= Math[_0x5b48[160]](0,_0x43b0x9- (_0x43b0x9> _0x43b0x3?1:0));_0x43b0x4[_0x5b48[99]](_0x43b0x5,_0x43b0x2,_0x43b0x3)}};mxPartitionLayout[_0x5b48[202]][_0x5b48[350]]= function(_0x43b0x2){var _0x43b0x3=this[_0x5b48[1737]](),_0x43b0x4=this[_0x5b48[1179]][_0x5b48[502]](),_0x43b0x5=_0x43b0x4[_0x5b48[1721]](_0x43b0x2);if(null!= this[_0x5b48[1179]][_0x5b48[526]]&& (null== _0x43b0x5&& _0x43b0x4[_0x5b48[1740]](_0x43b0x2)|| _0x43b0x2== this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[1741]])){_0x43b0x5= new mxRectangle(0,0,this[_0x5b48[1179]][_0x5b48[526]][_0x5b48[359]]- 1,this[_0x5b48[1179]][_0x5b48[526]][_0x5b48[167]]- 1)};if(null!= _0x43b0x5){for(var _0x43b0x9=[],_0x43b0xa=_0x43b0x4[_0x5b48[262]](_0x43b0x2),_0x43b0x12=0;_0x43b0x12< _0x43b0xa;_0x43b0x12++){var _0x43b0x13=_0x43b0x4[_0x5b48[263]](_0x43b0x2,_0x43b0x12);!this[_0x5b48[1713]](_0x43b0x13)&& this[_0x5b48[1711]](_0x43b0x13) && _0x43b0x9[_0x5b48[207]](_0x43b0x13)};_0x43b0xa= _0x43b0x9[_0x5b48[67]];if(0< _0x43b0xa){var _0x43b0x14=this[_0x5b48[467]],_0x43b0x15=this[_0x5b48[467]],_0x43b0x16=_0x43b0x3?_0x43b0x5[_0x5b48[119]]:_0x43b0x5[_0x5b48[117]],_0x43b0x16=_0x43b0x16- 2* this[_0x5b48[467]];_0x43b0x2= this[_0x5b48[1179]][_0x5b48[1730]](_0x43b0x2)?this[_0x5b48[1179]][_0x5b48[1731]](_0x43b0x2): new mxRectangle;_0x43b0x16-= _0x43b0x3?_0x43b0x2[_0x5b48[119]]:_0x43b0x2[_0x5b48[117]];_0x43b0x14+= _0x43b0x2[_0x5b48[117]];_0x43b0x15+= _0x43b0x2[_0x5b48[119]];_0x43b0x2= this[_0x5b48[467]]+ (_0x43b0xa- 1)* this[_0x5b48[657]];_0x43b0x5= _0x43b0x3?(_0x43b0x5[_0x5b48[117]]- _0x43b0x14- _0x43b0x2)/ _0x43b0xa:(_0x43b0x5[_0x5b48[119]]- _0x43b0x15- _0x43b0x2)/ _0x43b0xa;if(0< _0x43b0x5){_0x43b0x4[_0x5b48[473]]();try{for(_0x43b0x12= 0;_0x43b0x12< _0x43b0xa;_0x43b0x12++){var _0x43b0x13=_0x43b0x9[_0x43b0x12],_0x43b0x17=_0x43b0x4[_0x5b48[1721]](_0x43b0x13);null!= _0x43b0x17&& (_0x43b0x17= _0x43b0x17[_0x5b48[238]](),_0x43b0x17[_0x5b48[235]]= _0x43b0x14,_0x43b0x17[_0x5b48[236]]= _0x43b0x15,_0x43b0x3?(this[_0x5b48[1743]]&& (_0x43b0x17[_0x5b48[117]]= _0x43b0x5,_0x43b0x17[_0x5b48[119]]= _0x43b0x16),_0x43b0x14+= _0x43b0x5+ this[_0x5b48[657]]):(this[_0x5b48[1743]]&& (_0x43b0x17[_0x5b48[119]]= _0x43b0x5,_0x43b0x17[_0x5b48[117]]= _0x43b0x16),_0x43b0x15+= _0x43b0x5+ this[_0x5b48[657]]),_0x43b0x4[_0x5b48[1724]](_0x43b0x13,_0x43b0x17))}}finally{_0x43b0x4[_0x5b48[476]]()}}}}};function mxCompactTreeLayout(_0x43b0x2,_0x43b0x3,_0x43b0x4){mxGraphLayout[_0x5b48[239]](this,_0x43b0x2);this[_0x5b48[662]]= null!= _0x43b0x3?_0x43b0x3:!0;this[_0x5b48[1744]]= null!= _0x43b0x4?_0x43b0x4:!1}mxCompactTreeLayout[_0x5b48[202]]= new mxGraphLayout;mxCompactTreeLayout[_0x5b48[202]][_0x5b48[196]]= mxCompactTreeLayout;mxCompactTreeLayout[_0x5b48[202]][_0x5b48[662]]= null;mxCompactTreeLayout[_0x5b48[202]][_0x5b48[1744]]= null;mxCompactTreeLayout[_0x5b48[202]][_0x5b48[1735]]= !0;mxCompactTreeLayout[_0x5b48[202]][_0x5b48[1745]]= 10;mxCompactTreeLayout[_0x5b48[202]][_0x5b48[1746]]= null;mxCompactTreeLayout[_0x5b48[202]][_0x5b48[1747]]= !1;mxCompactTreeLayout[_0x5b48[202]][_0x5b48[1748]]= 10;mxCompactTreeLayout[_0x5b48[202]][_0x5b48[1749]]= 20;mxCompactTreeLayout[_0x5b48[202]][_0x5b48[1750]]= !0;mxCompactTreeLayout[_0x5b48[202]][_0x5b48[1751]]= 5;mxCompactTreeLayout[_0x5b48[202]][_0x5b48[1752]]= 4;mxCompactTreeLayout[_0x5b48[202]][_0x5b48[1753]]= 8;mxCompactTreeLayout[_0x5b48[202]][_0x5b48[1754]]= 4;mxCompactTreeLayout[_0x5b48[202]][_0x5b48[1755]]= !0;mxCompactTreeLayout[_0x5b48[202]][_0x5b48[1713]]= function(_0x43b0x2){return mxGraphLayout[_0x5b48[202]][_0x5b48[1713]][_0x5b48[183]](this,arguments)|| 0== this[_0x5b48[1179]][_0x5b48[1756]](_0x43b0x2)[_0x5b48[67]]};mxCompactTreeLayout[_0x5b48[202]][_0x5b48[1737]]= function(){return this[_0x5b48[662]]};mxCompactTreeLayout[_0x5b48[202]][_0x5b48[350]]= function(_0x43b0x2,_0x43b0x3){this[_0x5b48[1101]]= _0x43b0x2;var _0x43b0x4=this[_0x5b48[1179]][_0x5b48[502]]();if(null== _0x43b0x3){if(0< this[_0x5b48[1179]][_0x5b48[264]](_0x43b0x2,_0x43b0x4[_0x5b48[1197]](_0x43b0x2),this[_0x5b48[1744]],!this[_0x5b48[1744]],!1)[_0x5b48[67]]){_0x43b0x3= _0x43b0x2}else {var _0x43b0x5=this[_0x5b48[1179]][_0x5b48[1757]](_0x43b0x2,!0,this[_0x5b48[1744]]);if(0< _0x43b0x5[_0x5b48[67]]){for(var _0x43b0x9=0;_0x43b0x9< _0x43b0x5[_0x5b48[67]];_0x43b0x9++){if(!this[_0x5b48[1713]](_0x43b0x5[_0x43b0x9])&& 0< this[_0x5b48[1179]][_0x5b48[264]](_0x43b0x5[_0x43b0x9],null,this[_0x5b48[1744]],!this[_0x5b48[1744]],!1)[_0x5b48[67]]){_0x43b0x3= _0x43b0x5[_0x43b0x9];break}}}}};if(null!= _0x43b0x3){this[_0x5b48[1746]]= this[_0x5b48[1735]]?{}:null;_0x43b0x4[_0x5b48[473]]();try{var _0x43b0xa=this[_0x5b48[1758]](_0x43b0x3,_0x43b0x2);if(null!= _0x43b0xa){this[_0x5b48[1759]](_0x43b0xa);var _0x43b0x12=this[_0x5b48[1179]][_0x5b48[1020]],_0x43b0x5=_0x43b0x12;if(!this[_0x5b48[1747]]){var _0x43b0x13=this[_0x5b48[1726]](_0x43b0x3);null!= _0x43b0x13&& (_0x43b0x12= _0x43b0x13[_0x5b48[235]],_0x43b0x5= _0x43b0x13[_0x5b48[236]])};_0x43b0x13= null;_0x43b0x13= this[_0x5b48[1737]]()?this[_0x5b48[1760]](_0x43b0xa,_0x43b0x12,_0x43b0x5):this[_0x5b48[1761]](_0x43b0xa,null,_0x43b0x12,_0x43b0x5);if(null!= _0x43b0x13){var _0x43b0x14=_0x43b0x9= 0;0> _0x43b0x13[_0x5b48[235]]&& (_0x43b0x9= Math[_0x5b48[425]](_0x43b0x12- _0x43b0x13[_0x5b48[235]]));0> _0x43b0x13[_0x5b48[236]]&& (_0x43b0x14= Math[_0x5b48[425]](_0x43b0x5- _0x43b0x13[_0x5b48[236]]));(0!= _0x43b0x9|| 0!= _0x43b0x14)&& this[_0x5b48[1762]](_0x43b0xa,_0x43b0x9,_0x43b0x14);this[_0x5b48[1735]]&& this[_0x5b48[1763]]();this[_0x5b48[1755]]&& this[_0x5b48[1764]](_0x43b0xa)}}}finally{_0x43b0x4[_0x5b48[476]]()}}};mxCompactTreeLayout[_0x5b48[202]][_0x5b48[1762]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){_0x43b0x2[_0x5b48[235]]+= _0x43b0x3;_0x43b0x2[_0x5b48[236]]+= _0x43b0x4;this[_0x5b48[183]](_0x43b0x2);for(_0x43b0x2= _0x43b0x2[_0x5b48[247]];null!= _0x43b0x2;){this[_0x5b48[1762]](_0x43b0x2,_0x43b0x3,_0x43b0x4),_0x43b0x2= _0x43b0x2[_0x5b48[1765]]}};mxCompactTreeLayout[_0x5b48[202]][_0x5b48[1758]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){_0x43b0x4= null!= _0x43b0x4?_0x43b0x4:[];var _0x43b0x5=mxCellPath[_0x5b48[385]](_0x43b0x2),_0x43b0x9=null;if(null!= _0x43b0x2&& null== _0x43b0x4[_0x43b0x5]&& !this[_0x5b48[1713]](_0x43b0x2)){_0x43b0x4[_0x43b0x5]= _0x43b0x2;var _0x43b0x9=this[_0x5b48[1766]](_0x43b0x2),_0x43b0x5=this[_0x5b48[1179]][_0x5b48[502]](),_0x43b0xa=null;_0x43b0x2= this[_0x5b48[1179]][_0x5b48[264]](_0x43b0x2,_0x43b0x3,this[_0x5b48[1744]],!this[_0x5b48[1744]],!1,!0);for(var _0x43b0x12=this[_0x5b48[1179]][_0x5b48[249]](),_0x43b0x13=0;_0x43b0x13< _0x43b0x2[_0x5b48[67]];_0x43b0x13++){var _0x43b0x14=_0x43b0x2[_0x43b0x13];if(!this[_0x5b48[1715]](_0x43b0x14)){this[_0x5b48[1750]]&& this[_0x5b48[1722]](_0x43b0x14,null);this[_0x5b48[1755]]&& (this[_0x5b48[1716]](_0x43b0x14,!1),this[_0x5b48[1722]](_0x43b0x14,null));var _0x43b0x15=_0x43b0x12[_0x5b48[248]](_0x43b0x14),_0x43b0x14=null!= _0x43b0x15?_0x43b0x15[_0x5b48[1710]](this[_0x5b48[1744]]):_0x43b0x12[_0x5b48[1710]](_0x43b0x14,this[_0x5b48[1744]]),_0x43b0x15=this[_0x5b48[1758]](_0x43b0x14,_0x43b0x3,_0x43b0x4);null!= _0x43b0x15&& null!= _0x43b0x5[_0x5b48[1721]](_0x43b0x14)&& (null== _0x43b0xa?_0x43b0x9[_0x5b48[247]]= _0x43b0x15:_0x43b0xa[_0x5b48[1765]]= _0x43b0x15,_0x43b0xa= _0x43b0x15)}}};return _0x43b0x9};mxCompactTreeLayout[_0x5b48[202]][_0x5b48[1759]]= function(_0x43b0x2){if(null!= _0x43b0x2){for(var _0x43b0x3=_0x43b0x2[_0x5b48[247]];null!= _0x43b0x3;){this[_0x5b48[1759]](_0x43b0x3),_0x43b0x3= _0x43b0x3[_0x5b48[1765]]};null!= _0x43b0x2[_0x5b48[247]]?this[_0x5b48[1767]](_0x43b0x2,this[_0x5b48[234]](_0x43b0x2)):this[_0x5b48[1768]](_0x43b0x2)}};mxCompactTreeLayout[_0x5b48[202]][_0x5b48[1760]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){_0x43b0x2[_0x5b48[235]]+= _0x43b0x3+ _0x43b0x2[_0x5b48[1769]];_0x43b0x2[_0x5b48[236]]+= _0x43b0x4+ _0x43b0x2[_0x5b48[1770]];_0x43b0x5= this[_0x5b48[183]](_0x43b0x2,_0x43b0x5);_0x43b0x3= _0x43b0x2[_0x5b48[247]];if(null!= _0x43b0x3){_0x43b0x5= this[_0x5b48[1760]](_0x43b0x3,_0x43b0x2[_0x5b48[235]],_0x43b0x2[_0x5b48[236]],_0x43b0x5);_0x43b0x4= _0x43b0x2[_0x5b48[236]]+ _0x43b0x3[_0x5b48[1770]];for(var _0x43b0x9=_0x43b0x3[_0x5b48[1765]];null!= _0x43b0x9;){_0x43b0x5= this[_0x5b48[1760]](_0x43b0x9,_0x43b0x2[_0x5b48[235]]+ _0x43b0x3[_0x5b48[1769]],_0x43b0x4,_0x43b0x5),_0x43b0x4+= _0x43b0x9[_0x5b48[1770]],_0x43b0x9= _0x43b0x9[_0x5b48[1765]]}};return _0x43b0x5};mxCompactTreeLayout[_0x5b48[202]][_0x5b48[1761]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){_0x43b0x2[_0x5b48[235]]+= _0x43b0x4+ _0x43b0x2[_0x5b48[1770]];_0x43b0x2[_0x5b48[236]]+= _0x43b0x5+ _0x43b0x2[_0x5b48[1769]];_0x43b0x9= this[_0x5b48[183]](_0x43b0x2,_0x43b0x9);_0x43b0x3= _0x43b0x2[_0x5b48[247]];if(null!= _0x43b0x3){_0x43b0x9= this[_0x5b48[1761]](_0x43b0x3,_0x43b0x2,_0x43b0x2[_0x5b48[235]],_0x43b0x2[_0x5b48[236]],_0x43b0x9);_0x43b0x4= _0x43b0x2[_0x5b48[235]]+ _0x43b0x3[_0x5b48[1770]];for(_0x43b0x5= _0x43b0x3[_0x5b48[1765]];null!= _0x43b0x5;){_0x43b0x9= this[_0x5b48[1761]](_0x43b0x5,_0x43b0x2,_0x43b0x4,_0x43b0x2[_0x5b48[236]]+ _0x43b0x3[_0x5b48[1769]],_0x43b0x9),_0x43b0x4+= _0x43b0x5[_0x5b48[1770]],_0x43b0x5= _0x43b0x5[_0x5b48[1765]]}};return _0x43b0x9};mxCompactTreeLayout[_0x5b48[202]][_0x5b48[1767]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=this[_0x5b48[1749]]+ this[_0x5b48[1748]],_0x43b0x5=(_0x43b0x3- _0x43b0x2[_0x5b48[117]])/ 2- this[_0x5b48[1749]],_0x43b0x9=_0x43b0x5+ _0x43b0x2[_0x5b48[117]]+ 2* this[_0x5b48[1749]]- _0x43b0x3;_0x43b0x2[_0x5b48[247]][_0x5b48[1769]]= _0x43b0x4+ _0x43b0x2[_0x5b48[119]];_0x43b0x2[_0x5b48[247]][_0x5b48[1770]]= _0x43b0x9;_0x43b0x2[_0x5b48[1772]][_0x5b48[1771]]= this[_0x5b48[1773]](_0x43b0x2[_0x5b48[119]],0,this[_0x5b48[1773]](_0x43b0x4,_0x43b0x9,_0x43b0x2[_0x5b48[1772]][_0x5b48[1771]]));_0x43b0x2[_0x5b48[1772]][_0x5b48[1774]]= this[_0x5b48[1773]](_0x43b0x2[_0x5b48[119]],0,this[_0x5b48[1773]](_0x43b0x4,_0x43b0x5,_0x43b0x2[_0x5b48[1772]][_0x5b48[1774]]))};mxCompactTreeLayout[_0x5b48[202]][_0x5b48[1768]]= function(_0x43b0x2){var _0x43b0x3=2* this[_0x5b48[1749]];_0x43b0x2[_0x5b48[1772]][_0x5b48[1775]]= this[_0x5b48[1773]](_0x43b0x2[_0x5b48[119]]+ _0x43b0x3,0);_0x43b0x2[_0x5b48[1772]][_0x5b48[1771]]= _0x43b0x2[_0x5b48[1772]][_0x5b48[1775]];_0x43b0x2[_0x5b48[1772]][_0x5b48[1776]]= this[_0x5b48[1773]](0,-_0x43b0x2[_0x5b48[117]]- _0x43b0x3);_0x43b0x2[_0x5b48[1772]][_0x5b48[1774]]= this[_0x5b48[1773]](_0x43b0x2[_0x5b48[119]]+ _0x43b0x3,0,_0x43b0x2[_0x5b48[1772]][_0x5b48[1776]])};mxCompactTreeLayout[_0x5b48[202]][_0x5b48[234]]= function(_0x43b0x2){var _0x43b0x3=2* this[_0x5b48[1749]],_0x43b0x4=_0x43b0x2[_0x5b48[247]];_0x43b0x2[_0x5b48[1772]]= _0x43b0x4[_0x5b48[1772]];for(var _0x43b0x5=_0x43b0x4[_0x5b48[117]]+ _0x43b0x3,_0x43b0x9=_0x43b0x5,_0x43b0x4=_0x43b0x4[_0x5b48[1765]];null!= _0x43b0x4;){var _0x43b0xa=this[_0x5b48[1777]](_0x43b0x2[_0x5b48[1772]],_0x43b0x4[_0x5b48[1772]]);_0x43b0x4[_0x5b48[1770]]= _0x43b0xa+ _0x43b0x5;_0x43b0x4[_0x5b48[1769]]= 0;_0x43b0x5= _0x43b0x4[_0x5b48[117]]+ _0x43b0x3;_0x43b0x9+= _0x43b0xa+ _0x43b0x5;_0x43b0x4= _0x43b0x4[_0x5b48[1765]]};return _0x43b0x9};mxCompactTreeLayout[_0x5b48[202]][_0x5b48[1777]]= function(_0x43b0x2,_0x43b0x3){for(var _0x43b0x4=0,_0x43b0x5=0,_0x43b0x9=0,_0x43b0xa=_0x43b0x2[_0x5b48[1774]],_0x43b0x12=_0x43b0x3[_0x5b48[1771]];null!= _0x43b0x12&& null!= _0x43b0xa;){var _0x43b0x13=this[_0x5b48[1368]](_0x43b0x4,_0x43b0x5,_0x43b0x12[_0x5b48[1126]],_0x43b0x12[_0x5b48[1125]],_0x43b0xa[_0x5b48[1126]],_0x43b0xa[_0x5b48[1125]]),_0x43b0x5=_0x43b0x5+ _0x43b0x13,_0x43b0x9=_0x43b0x9+ _0x43b0x13;_0x43b0x4+ _0x43b0x12[_0x5b48[1126]]<= _0x43b0xa[_0x5b48[1126]]?(_0x43b0x4+= _0x43b0x12[_0x5b48[1126]],_0x43b0x5+= _0x43b0x12[_0x5b48[1125]],_0x43b0x12= _0x43b0x12[_0x5b48[1765]]):(_0x43b0x4-= _0x43b0xa[_0x5b48[1126]],_0x43b0x5-= _0x43b0xa[_0x5b48[1125]],_0x43b0xa= _0x43b0xa[_0x5b48[1765]])};null!= _0x43b0x12?(_0x43b0x4= this[_0x5b48[1778]](_0x43b0x2[_0x5b48[1775]],0,0,_0x43b0x12,_0x43b0x4,_0x43b0x5),_0x43b0x2[_0x5b48[1775]]= null!= _0x43b0x4[_0x5b48[1765]]?_0x43b0x3[_0x5b48[1775]]:_0x43b0x4,_0x43b0x2[_0x5b48[1776]]= _0x43b0x3[_0x5b48[1776]]):(_0x43b0x4= this[_0x5b48[1778]](_0x43b0x3[_0x5b48[1776]],_0x43b0x4,_0x43b0x5,_0x43b0xa,0,0),null== _0x43b0x4[_0x5b48[1765]]&& (_0x43b0x2[_0x5b48[1776]]= _0x43b0x4));_0x43b0x2[_0x5b48[1774]]= _0x43b0x3[_0x5b48[1774]];return _0x43b0x9};mxCompactTreeLayout[_0x5b48[202]][_0x5b48[1368]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa){var _0x43b0x12=0;if(_0x43b0x9<= _0x43b0x2|| 0>= _0x43b0x2+ _0x43b0x4){return 0};_0x43b0x12= 0< _0x43b0x9* _0x43b0x5- _0x43b0x4* _0x43b0xa?0> _0x43b0x2?_0x43b0x2* _0x43b0x5/ _0x43b0x4- _0x43b0x3:0< _0x43b0x2?_0x43b0x2* _0x43b0xa/ _0x43b0x9- _0x43b0x3:-_0x43b0x3:_0x43b0x9< _0x43b0x2+ _0x43b0x4?_0x43b0xa- (_0x43b0x3+ (_0x43b0x9- _0x43b0x2)* _0x43b0x5/ _0x43b0x4):_0x43b0x9> _0x43b0x2+ _0x43b0x4?(_0x43b0x4+ _0x43b0x2)* _0x43b0xa/ _0x43b0x9- (_0x43b0x3+ _0x43b0x5):_0x43b0xa- (_0x43b0x3+ _0x43b0x5);return 0< _0x43b0x12?_0x43b0x12:0};mxCompactTreeLayout[_0x5b48[202]][_0x5b48[1778]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa){_0x43b0x3= _0x43b0x9+ _0x43b0x5[_0x5b48[1126]]- _0x43b0x3;_0x43b0x9= _0x43b0x9= 0;0== _0x43b0x5[_0x5b48[1126]]?_0x43b0x9= _0x43b0x5[_0x5b48[1125]]:(_0x43b0x9= _0x43b0x3* _0x43b0x5[_0x5b48[1125]],_0x43b0x9/= _0x43b0x5[_0x5b48[1126]]);_0x43b0x3= this[_0x5b48[1773]](_0x43b0x3,_0x43b0x9,_0x43b0x5[_0x5b48[1765]]);_0x43b0x2[_0x5b48[1765]]= this[_0x5b48[1773]](0,_0x43b0xa+ _0x43b0x5[_0x5b48[1125]]- _0x43b0x9- _0x43b0x4,_0x43b0x3);return _0x43b0x3};mxCompactTreeLayout[_0x5b48[202]][_0x5b48[1766]]= function(_0x43b0x2){var _0x43b0x3={};_0x43b0x3[_0x5b48[246]]= _0x43b0x2;_0x43b0x3[_0x5b48[235]]= 0;_0x43b0x3[_0x5b48[236]]= 0;_0x43b0x3[_0x5b48[117]]= 0;_0x43b0x3[_0x5b48[119]]= 0;_0x43b0x2= this[_0x5b48[1726]](_0x43b0x2);null!= _0x43b0x2&& (this[_0x5b48[1737]]()?(_0x43b0x3[_0x5b48[117]]= _0x43b0x2[_0x5b48[119]],_0x43b0x3[_0x5b48[119]]= _0x43b0x2[_0x5b48[117]]):(_0x43b0x3[_0x5b48[117]]= _0x43b0x2[_0x5b48[117]],_0x43b0x3[_0x5b48[119]]= _0x43b0x2[_0x5b48[119]]));_0x43b0x3[_0x5b48[1769]]= 0;_0x43b0x3[_0x5b48[1770]]= 0;_0x43b0x3[_0x5b48[1772]]= {};return _0x43b0x3};mxCompactTreeLayout[_0x5b48[202]][_0x5b48[183]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=this[_0x5b48[1179]][_0x5b48[502]](),_0x43b0x5=_0x43b0x2[_0x5b48[246]],_0x43b0x9=_0x43b0x4[_0x5b48[1721]](_0x43b0x5);null!= _0x43b0x5&& null!= _0x43b0x9&& (this[_0x5b48[1711]](_0x43b0x5)&& (_0x43b0x9= this[_0x5b48[1725]](_0x43b0x5,_0x43b0x2[_0x5b48[235]],_0x43b0x2[_0x5b48[236]]),this[_0x5b48[1735]]&& (_0x43b0x4= _0x43b0x4[_0x5b48[1197]](_0x43b0x5),_0x43b0x5= mxCellPath[_0x5b48[385]](_0x43b0x4),null== this[_0x5b48[1746]][_0x43b0x5]&& (this[_0x5b48[1746]][_0x43b0x5]= _0x43b0x4))),_0x43b0x3= null== _0x43b0x3? new mxRectangle(_0x43b0x9[_0x5b48[235]],_0x43b0x9[_0x5b48[236]],_0x43b0x9[_0x5b48[117]],_0x43b0x9[_0x5b48[119]]): new mxRectangle(Math[_0x5b48[243]](_0x43b0x3[_0x5b48[235]],_0x43b0x9[_0x5b48[235]]),Math[_0x5b48[243]](_0x43b0x3[_0x5b48[236]],_0x43b0x9[_0x5b48[236]]),Math[_0x5b48[160]](_0x43b0x3[_0x5b48[235]]+ _0x43b0x3[_0x5b48[117]],_0x43b0x9[_0x5b48[235]]+ _0x43b0x9[_0x5b48[117]]),Math[_0x5b48[160]](_0x43b0x3[_0x5b48[236]]+ _0x43b0x3[_0x5b48[119]],_0x43b0x9[_0x5b48[236]]+ _0x43b0x9[_0x5b48[119]])));return _0x43b0x3};mxCompactTreeLayout[_0x5b48[202]][_0x5b48[1773]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){var _0x43b0x5={};_0x43b0x5[_0x5b48[1126]]= _0x43b0x2;_0x43b0x5[_0x5b48[1125]]= _0x43b0x3;_0x43b0x5[_0x5b48[1765]]= _0x43b0x4;return _0x43b0x5};mxCompactTreeLayout[_0x5b48[202]][_0x5b48[1763]]= function(){var _0x43b0x2=[],_0x43b0x3;for(_0x43b0x3 in this[_0x5b48[1746]]){_0x43b0x2[_0x5b48[207]](this[_0x5b48[1746]][_0x43b0x3])};this[_0x5b48[1727]](mxUtils[_0x5b48[1779]](_0x43b0x2,!0),this[_0x5b48[1745]])};mxCompactTreeLayout[_0x5b48[202]][_0x5b48[1764]]= function(_0x43b0x2){this[_0x5b48[1780]](_0x43b0x2);for(_0x43b0x2= _0x43b0x2[_0x5b48[247]];null!= _0x43b0x2;){this[_0x5b48[1764]](_0x43b0x2),_0x43b0x2= _0x43b0x2[_0x5b48[1765]]}};mxCompactTreeLayout[_0x5b48[202]][_0x5b48[1780]]= function(_0x43b0x2){for(var _0x43b0x3=_0x43b0x2[_0x5b48[247]],_0x43b0x4=_0x43b0x2[_0x5b48[246]],_0x43b0x5=0,_0x43b0x9=[];null!= _0x43b0x3;){_0x43b0x5++;var _0x43b0xa=_0x43b0x3[_0x5b48[235]];this[_0x5b48[662]]&& (_0x43b0xa= _0x43b0x3[_0x5b48[236]]);_0x43b0x9[_0x5b48[207]]( new WeightedCellSorter(_0x43b0x3,_0x43b0xa));_0x43b0x3= _0x43b0x3[_0x5b48[1765]]};_0x43b0x9[_0x5b48[470]](WeightedCellSorter[_0x5b48[202]][_0x5b48[469]]);var _0x43b0xa=_0x43b0x2[_0x5b48[117]],_0x43b0x12=(_0x43b0x5+ 1)* this[_0x5b48[1751]];_0x43b0xa> _0x43b0x12+ 2* this[_0x5b48[1751]]&& (_0x43b0xa-= 2* this[_0x5b48[1751]]);_0x43b0x2= _0x43b0xa/ _0x43b0x5;_0x43b0x3= _0x43b0x2/ 2;_0x43b0xa> _0x43b0x12+ 2* this[_0x5b48[1751]]&& (_0x43b0x3+= this[_0x5b48[1751]]);for(var _0x43b0xa=this[_0x5b48[1753]]- this[_0x5b48[1752]],_0x43b0x12=0,_0x43b0x13=this[_0x5b48[1726]](_0x43b0x4),_0x43b0x14=0;_0x43b0x14< _0x43b0x9[_0x5b48[67]];_0x43b0x14++){for(var _0x43b0x15=_0x43b0x9[_0x43b0x14][_0x5b48[246]][_0x5b48[246]],_0x43b0x16=this[_0x5b48[1726]](_0x43b0x15),_0x43b0x15=this[_0x5b48[1179]][_0x5b48[1781]](_0x43b0x4,_0x43b0x15,!1),_0x43b0x17=[],_0x43b0x18=0,_0x43b0x19=0,_0x43b0x1a=0;_0x43b0x1a< _0x43b0x15[_0x5b48[67]];_0x43b0x1a++){this[_0x5b48[662]]?(_0x43b0x18= _0x43b0x13[_0x5b48[235]]+ _0x43b0x13[_0x5b48[117]],_0x43b0x19= _0x43b0x13[_0x5b48[236]]+ _0x43b0x3,_0x43b0x17[_0x5b48[207]]( new mxPoint(_0x43b0x18,_0x43b0x19)),_0x43b0x18= _0x43b0x13[_0x5b48[235]]+ _0x43b0x13[_0x5b48[117]]+ _0x43b0xa,_0x43b0x17[_0x5b48[207]]( new mxPoint(_0x43b0x18,_0x43b0x19)),_0x43b0x19= _0x43b0x16[_0x5b48[236]]+ _0x43b0x16[_0x5b48[119]]/ 2):(_0x43b0x18= _0x43b0x13[_0x5b48[235]]+ _0x43b0x3,_0x43b0x19= _0x43b0x13[_0x5b48[236]]+ _0x43b0x13[_0x5b48[119]],_0x43b0x17[_0x5b48[207]]( new mxPoint(_0x43b0x18,_0x43b0x19)),_0x43b0x19= _0x43b0x13[_0x5b48[236]]+ _0x43b0x13[_0x5b48[119]]+ _0x43b0xa,_0x43b0x17[_0x5b48[207]]( new mxPoint(_0x43b0x18,_0x43b0x19)),_0x43b0x18= _0x43b0x16[_0x5b48[235]]+ _0x43b0x16[_0x5b48[117]]/ 2),_0x43b0x17[_0x5b48[207]]( new mxPoint(_0x43b0x18,_0x43b0x19)),this[_0x5b48[1722]](_0x43b0x15[_0x43b0x1a],_0x43b0x17)};_0x43b0x14< _0x43b0x5/ 2?_0x43b0xa+= this[_0x5b48[1752]]:_0x43b0x14> _0x43b0x5/ 2&& (_0x43b0xa-= this[_0x5b48[1752]]);_0x43b0x3+= _0x43b0x2;_0x43b0x12= Math[_0x5b48[160]](_0x43b0x12,_0x43b0xa)}};function WeightedCellSorter(_0x43b0x2,_0x43b0x3){this[_0x5b48[246]]= _0x43b0x2;this[_0x5b48[1782]]= _0x43b0x3}WeightedCellSorter[_0x5b48[202]][_0x5b48[1782]]= 0;WeightedCellSorter[_0x5b48[202]][_0x5b48[1783]]= !1;WeightedCellSorter[_0x5b48[202]][_0x5b48[1784]]= !1;WeightedCellSorter[_0x5b48[202]][_0x5b48[1785]]= null;WeightedCellSorter[_0x5b48[202]][_0x5b48[246]]= null;WeightedCellSorter[_0x5b48[202]][_0x5b48[469]]= function(_0x43b0x2,_0x43b0x3){return null!= _0x43b0x2&& null!= _0x43b0x3?_0x43b0x3[_0x5b48[1782]]> _0x43b0x2[_0x5b48[1782]]?1:_0x43b0x3[_0x5b48[1782]]< _0x43b0x2[_0x5b48[1782]]?-1:_0x43b0x3[_0x5b48[1783]]?1:-1:0};function mxFastOrganicLayout(_0x43b0x2){mxGraphLayout[_0x5b48[239]](this,_0x43b0x2)}mxFastOrganicLayout[_0x5b48[202]]= new mxGraphLayout;mxFastOrganicLayout[_0x5b48[202]][_0x5b48[196]]= mxFastOrganicLayout;mxFastOrganicLayout[_0x5b48[202]][_0x5b48[1786]]= !0;mxFastOrganicLayout[_0x5b48[202]][_0x5b48[1750]]= !0;mxFastOrganicLayout[_0x5b48[202]][_0x5b48[1787]]= !0;mxFastOrganicLayout[_0x5b48[202]][_0x5b48[1788]]= 50;mxFastOrganicLayout[_0x5b48[202]][_0x5b48[1789]]= 0;mxFastOrganicLayout[_0x5b48[202]][_0x5b48[1790]]= 2;mxFastOrganicLayout[_0x5b48[202]][_0x5b48[1791]]= 500;mxFastOrganicLayout[_0x5b48[202]][_0x5b48[1792]]= 4;mxFastOrganicLayout[_0x5b48[202]][_0x5b48[1793]]= 200;mxFastOrganicLayout[_0x5b48[202]][_0x5b48[1794]]= 0;mxFastOrganicLayout[_0x5b48[202]][_0x5b48[1795]]= 0;mxFastOrganicLayout[_0x5b48[202]][_0x5b48[1796]]= 0;mxFastOrganicLayout[_0x5b48[202]][_0x5b48[1797]]= !0;mxFastOrganicLayout[_0x5b48[202]][_0x5b48[1713]]= function(_0x43b0x2){return mxGraphLayout[_0x5b48[202]][_0x5b48[1713]][_0x5b48[183]](this,arguments)|| 0== this[_0x5b48[1179]][_0x5b48[1756]](_0x43b0x2)[_0x5b48[67]]};mxFastOrganicLayout[_0x5b48[202]][_0x5b48[350]]= function(_0x43b0x2){var _0x43b0x3=this[_0x5b48[1179]][_0x5b48[502]]();this[_0x5b48[1798]]= [];for(var _0x43b0x4=this[_0x5b48[1179]][_0x5b48[1728]](_0x43b0x2),_0x43b0x5=0;_0x43b0x5< _0x43b0x4[_0x5b48[67]];_0x43b0x5++){this[_0x5b48[1713]](_0x43b0x4[_0x43b0x5])|| this[_0x5b48[1798]][_0x5b48[207]](_0x43b0x4[_0x43b0x5])};var _0x43b0x9=this[_0x5b48[1786]]?this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[1799]](this[_0x5b48[1798]]):null,_0x43b0xa=this[_0x5b48[1798]][_0x5b48[67]];this[_0x5b48[1800]]= [];this[_0x5b48[1801]]= [];this[_0x5b48[1802]]= [];this[_0x5b48[1803]]= [];this[_0x5b48[1804]]= [];this[_0x5b48[1805]]= [];this[_0x5b48[1806]]= [];this[_0x5b48[1807]]= [];0.0010> this[_0x5b48[1788]]&& (this[_0x5b48[1788]]= 0.0010);this[_0x5b48[1789]]= this[_0x5b48[1788]]* this[_0x5b48[1788]];for(_0x43b0x5= 0;_0x43b0x5< this[_0x5b48[1798]][_0x5b48[67]];_0x43b0x5++){var _0x43b0x12=this[_0x5b48[1798]][_0x43b0x5];this[_0x5b48[1803]][_0x43b0x5]= [];var _0x43b0x13=mxCellPath[_0x5b48[385]](_0x43b0x12);this[_0x5b48[1800]][_0x43b0x13]= _0x43b0x5;var _0x43b0x14=this[_0x5b48[1726]](_0x43b0x12),_0x43b0x15=_0x43b0x14[_0x5b48[117]],_0x43b0x16=_0x43b0x14[_0x5b48[119]],_0x43b0x17=_0x43b0x14[_0x5b48[235]],_0x43b0x18=_0x43b0x14[_0x5b48[236]];this[_0x5b48[1803]][_0x43b0x5][0]= _0x43b0x17+ _0x43b0x15/ 2;this[_0x5b48[1803]][_0x43b0x5][1]= _0x43b0x18+ _0x43b0x16/ 2;this[_0x5b48[1806]][_0x43b0x5]= Math[_0x5b48[243]](_0x43b0x15,_0x43b0x16);this[_0x5b48[1807]][_0x43b0x5]= this[_0x5b48[1806]][_0x43b0x5]* this[_0x5b48[1806]][_0x43b0x5]};_0x43b0x3[_0x5b48[473]]();try{for(_0x43b0x5= 0;_0x43b0x5< _0x43b0xa;_0x43b0x5++){this[_0x5b48[1801]][_0x43b0x5]= 0;this[_0x5b48[1802]][_0x43b0x5]= 0;this[_0x5b48[1804]][_0x43b0x5]= this[_0x5b48[1711]](this[_0x5b48[1798]][_0x43b0x5]);var _0x43b0x19=this[_0x5b48[1179]][_0x5b48[1756]](this[_0x5b48[1798]][_0x43b0x5],_0x43b0x2),_0x43b0x4=this[_0x5b48[1179]][_0x5b48[1808]](_0x43b0x19,this[_0x5b48[1798]][_0x43b0x5]);this[_0x5b48[1805]][_0x43b0x5]= [];for(_0x43b0x15= 0;_0x43b0x15< _0x43b0x4[_0x5b48[67]];_0x43b0x15++){this[_0x5b48[1750]]&& this[_0x5b48[1179]][_0x5b48[1809]](_0x43b0x19[_0x43b0x15]);this[_0x5b48[1787]]&& this[_0x5b48[1716]](_0x43b0x19[_0x43b0x15],!1);var _0x43b0x13=mxCellPath[_0x5b48[385]](_0x43b0x4[_0x43b0x15]),_0x43b0x1a=this[_0x5b48[1800]][_0x43b0x13];this[_0x5b48[1805]][_0x43b0x5][_0x43b0x15]= null!= _0x43b0x1a?_0x43b0x1a:_0x43b0x5}};this[_0x5b48[1794]]= this[_0x5b48[1793]];0== this[_0x5b48[1795]]&& (this[_0x5b48[1795]]= 20* Math[_0x5b48[428]](_0x43b0xa));for(this[_0x5b48[1796]]= 0;this[_0x5b48[1796]]< this[_0x5b48[1795]];this[_0x5b48[1796]]++){if(!this[_0x5b48[1797]]){return};this[_0x5b48[1810]]();this[_0x5b48[1811]]();this[_0x5b48[1812]]();this[_0x5b48[1813]]()};_0x43b0x2= _0x43b0x4= null;for(_0x43b0x5= 0;_0x43b0x5< this[_0x5b48[1798]][_0x5b48[67]];_0x43b0x5++){_0x43b0x12= this[_0x5b48[1798]][_0x43b0x5],this[_0x5b48[1711]](_0x43b0x12)&& (_0x43b0x14= this[_0x5b48[1726]](_0x43b0x12),null!= _0x43b0x14&& (this[_0x5b48[1803]][_0x43b0x5][0]-= _0x43b0x14[_0x5b48[117]]/ 2,this[_0x5b48[1803]][_0x43b0x5][1]-= _0x43b0x14[_0x5b48[119]]/ 2,_0x43b0x17= this[_0x5b48[1179]][_0x5b48[1021]](this[_0x5b48[1803]][_0x43b0x5][0]),_0x43b0x18= this[_0x5b48[1179]][_0x5b48[1021]](this[_0x5b48[1803]][_0x43b0x5][1]),this[_0x5b48[1725]](_0x43b0x12,_0x43b0x17,_0x43b0x18),_0x43b0x4= null== _0x43b0x4?_0x43b0x17:Math[_0x5b48[243]](_0x43b0x4,_0x43b0x17),_0x43b0x2= null== _0x43b0x2?_0x43b0x18:Math[_0x5b48[243]](_0x43b0x2,_0x43b0x18)))};_0x43b0x5= -(_0x43b0x4|| 0)+ 1;_0x43b0x12= -(_0x43b0x2|| 0)+ 1;null!= _0x43b0x9&& (_0x43b0x5+= _0x43b0x9[_0x5b48[235]],_0x43b0x12+= _0x43b0x9[_0x5b48[236]]);this[_0x5b48[1179]][_0x5b48[834]](this[_0x5b48[1798]],_0x43b0x5,_0x43b0x12)}finally{_0x43b0x3[_0x5b48[476]]()}};mxFastOrganicLayout[_0x5b48[202]][_0x5b48[1812]]= function(){for(var _0x43b0x2=0;_0x43b0x2< this[_0x5b48[1798]][_0x5b48[67]];_0x43b0x2++){if(this[_0x5b48[1804]][_0x43b0x2]){var _0x43b0x3=Math[_0x5b48[428]](this[_0x5b48[1801]][_0x43b0x2]* this[_0x5b48[1801]][_0x43b0x2]+ this[_0x5b48[1802]][_0x43b0x2]* this[_0x5b48[1802]][_0x43b0x2]);0.0010> _0x43b0x3&& (_0x43b0x3= 0.0010);var _0x43b0x4=this[_0x5b48[1801]][_0x43b0x2]/ _0x43b0x3* Math[_0x5b48[243]](_0x43b0x3,this[_0x5b48[1794]]),_0x43b0x3=this[_0x5b48[1802]][_0x43b0x2]/ _0x43b0x3* Math[_0x5b48[243]](_0x43b0x3,this[_0x5b48[1794]]);this[_0x5b48[1801]][_0x43b0x2]= 0;this[_0x5b48[1802]][_0x43b0x2]= 0;this[_0x5b48[1803]][_0x43b0x2][0]+= _0x43b0x4;this[_0x5b48[1803]][_0x43b0x2][1]+= _0x43b0x3}}};mxFastOrganicLayout[_0x5b48[202]][_0x5b48[1811]]= function(){for(var _0x43b0x2=0;_0x43b0x2< this[_0x5b48[1798]][_0x5b48[67]];_0x43b0x2++){for(var _0x43b0x3=0;_0x43b0x3< this[_0x5b48[1805]][_0x43b0x2][_0x5b48[67]];_0x43b0x3++){var _0x43b0x4=this[_0x5b48[1805]][_0x43b0x2][_0x43b0x3];if(_0x43b0x2!= _0x43b0x4&& this[_0x5b48[1804]][_0x43b0x2]&& this[_0x5b48[1804]][_0x43b0x4]){var _0x43b0x5=this[_0x5b48[1803]][_0x43b0x2][0]- this[_0x5b48[1803]][_0x43b0x4][0],_0x43b0x9=this[_0x5b48[1803]][_0x43b0x2][1]- this[_0x5b48[1803]][_0x43b0x4][1],_0x43b0xa=_0x43b0x5* _0x43b0x5+ _0x43b0x9* _0x43b0x9- this[_0x5b48[1807]][_0x43b0x2]- this[_0x5b48[1807]][_0x43b0x4];_0x43b0xa< this[_0x5b48[1792]]&& (_0x43b0xa= this[_0x5b48[1792]]);var _0x43b0x12=Math[_0x5b48[428]](_0x43b0xa),_0x43b0xa=_0x43b0xa/ this[_0x5b48[1788]],_0x43b0x5=_0x43b0x5/ _0x43b0x12* _0x43b0xa,_0x43b0x9=_0x43b0x9/ _0x43b0x12* _0x43b0xa;this[_0x5b48[1801]][_0x43b0x2]-= _0x43b0x5;this[_0x5b48[1802]][_0x43b0x2]-= _0x43b0x9;this[_0x5b48[1801]][_0x43b0x4]+= _0x43b0x5;this[_0x5b48[1802]][_0x43b0x4]+= _0x43b0x9}}}};mxFastOrganicLayout[_0x5b48[202]][_0x5b48[1810]]= function(){for(var _0x43b0x2=this[_0x5b48[1798]][_0x5b48[67]],_0x43b0x3=0;_0x43b0x3< _0x43b0x2;_0x43b0x3++){for(var _0x43b0x4=_0x43b0x3;_0x43b0x4< _0x43b0x2;_0x43b0x4++){if(!this[_0x5b48[1797]]){return};if(_0x43b0x4!= _0x43b0x3&& this[_0x5b48[1804]][_0x43b0x3]&& this[_0x5b48[1804]][_0x43b0x4]){var _0x43b0x5=this[_0x5b48[1803]][_0x43b0x3][0]- this[_0x5b48[1803]][_0x43b0x4][0],_0x43b0x9=this[_0x5b48[1803]][_0x43b0x3][1]- this[_0x5b48[1803]][_0x43b0x4][1];0== _0x43b0x5&& (_0x43b0x5= 0.01+ Math[_0x5b48[1814]]());0== _0x43b0x9&& (_0x43b0x9= 0.01+ Math[_0x5b48[1814]]());var _0x43b0xa=Math[_0x5b48[428]](_0x43b0x5* _0x43b0x5+ _0x43b0x9* _0x43b0x9),_0x43b0x12=_0x43b0xa- this[_0x5b48[1806]][_0x43b0x3]- this[_0x5b48[1806]][_0x43b0x4];_0x43b0x12> this[_0x5b48[1791]]|| (_0x43b0x12< this[_0x5b48[1790]]&& (_0x43b0x12= this[_0x5b48[1790]]),_0x43b0x12= this[_0x5b48[1789]]/ _0x43b0x12,_0x43b0x5= _0x43b0x5/ _0x43b0xa* _0x43b0x12,_0x43b0x9= _0x43b0x9/ _0x43b0xa* _0x43b0x12,this[_0x5b48[1801]][_0x43b0x3]+= _0x43b0x5,this[_0x5b48[1802]][_0x43b0x3]+= _0x43b0x9,this[_0x5b48[1801]][_0x43b0x4]-= _0x43b0x5,this[_0x5b48[1802]][_0x43b0x4]-= _0x43b0x9)}}}};mxFastOrganicLayout[_0x5b48[202]][_0x5b48[1813]]= function(){this[_0x5b48[1794]]= this[_0x5b48[1793]]* (1- this[_0x5b48[1796]]/ this[_0x5b48[1795]])};function mxCircleLayout(_0x43b0x2,_0x43b0x3){mxGraphLayout[_0x5b48[239]](this,_0x43b0x2);this[_0x5b48[1806]]= null!= _0x43b0x3?_0x43b0x3:100}mxCircleLayout[_0x5b48[202]]= new mxGraphLayout;mxCircleLayout[_0x5b48[202]][_0x5b48[196]]= mxCircleLayout;mxCircleLayout[_0x5b48[202]][_0x5b48[1806]]= null;mxCircleLayout[_0x5b48[202]][_0x5b48[1815]]= !1;mxCircleLayout[_0x5b48[202]][_0x5b48[1732]]= 0;mxCircleLayout[_0x5b48[202]][_0x5b48[1733]]= 0;mxCircleLayout[_0x5b48[202]][_0x5b48[1750]]= !0;mxCircleLayout[_0x5b48[202]][_0x5b48[1787]]= !0;mxCircleLayout[_0x5b48[202]][_0x5b48[350]]= function(_0x43b0x2){var _0x43b0x3=this[_0x5b48[1179]][_0x5b48[502]]();_0x43b0x3[_0x5b48[473]]();try{for(var _0x43b0x4=0,_0x43b0x5=null,_0x43b0x9=null,_0x43b0xa=[],_0x43b0x12=_0x43b0x3[_0x5b48[262]](_0x43b0x2),_0x43b0x13=0;_0x43b0x13< _0x43b0x12;_0x43b0x13++){var _0x43b0x14=_0x43b0x3[_0x5b48[263]](_0x43b0x2,_0x43b0x13);if(this[_0x5b48[1713]](_0x43b0x14)){this[_0x5b48[1715]](_0x43b0x14)|| (this[_0x5b48[1750]]&& this[_0x5b48[1179]][_0x5b48[1809]](_0x43b0x14),this[_0x5b48[1787]]&& this[_0x5b48[1716]](_0x43b0x14,!1))}else {_0x43b0xa[_0x5b48[207]](_0x43b0x14);var _0x43b0x15=this[_0x5b48[1726]](_0x43b0x14),_0x43b0x5=null== _0x43b0x5?_0x43b0x15[_0x5b48[236]]:Math[_0x5b48[243]](_0x43b0x5,_0x43b0x15[_0x5b48[236]]),_0x43b0x9=null== _0x43b0x9?_0x43b0x15[_0x5b48[235]]:Math[_0x5b48[243]](_0x43b0x9,_0x43b0x15[_0x5b48[235]]),_0x43b0x4=Math[_0x5b48[160]](_0x43b0x4,Math[_0x5b48[160]](_0x43b0x15[_0x5b48[117]],_0x43b0x15[_0x5b48[119]]))}};var _0x43b0x16=this[_0x5b48[1816]](_0x43b0xa[_0x5b48[67]],_0x43b0x4);this[_0x5b48[1815]]&& (_0x43b0x9= this[_0x5b48[1732]],_0x43b0x5= this[_0x5b48[1733]]);this[_0x5b48[1817]](_0x43b0xa,_0x43b0x16,_0x43b0x9,_0x43b0x5)}finally{_0x43b0x3[_0x5b48[476]]()}};mxCircleLayout[_0x5b48[202]][_0x5b48[1816]]= function(_0x43b0x2,_0x43b0x3){return Math[_0x5b48[160]](_0x43b0x2* _0x43b0x3/ Math[_0x5b48[424]],this[_0x5b48[1806]])};mxCircleLayout[_0x5b48[202]][_0x5b48[1817]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){for(var _0x43b0x9=_0x43b0x2[_0x5b48[67]],_0x43b0xa=2* Math[_0x5b48[424]]/ _0x43b0x9,_0x43b0x12=0;_0x43b0x12< _0x43b0x9;_0x43b0x12++){this[_0x5b48[1711]](_0x43b0x2[_0x43b0x12])&& this[_0x5b48[1725]](_0x43b0x2[_0x43b0x12],_0x43b0x4+ _0x43b0x3+ _0x43b0x3* Math[_0x5b48[427]](_0x43b0x12* _0x43b0xa),_0x43b0x5+ _0x43b0x3+ _0x43b0x3* Math[_0x5b48[426]](_0x43b0x12* _0x43b0xa))}};function mxParallelEdgeLayout(_0x43b0x2){mxGraphLayout[_0x5b48[239]](this,_0x43b0x2)}mxParallelEdgeLayout[_0x5b48[202]]= new mxGraphLayout;mxParallelEdgeLayout[_0x5b48[202]][_0x5b48[196]]= mxParallelEdgeLayout;mxParallelEdgeLayout[_0x5b48[202]][_0x5b48[657]]= 20;mxParallelEdgeLayout[_0x5b48[202]][_0x5b48[350]]= function(_0x43b0x2){_0x43b0x2= this[_0x5b48[1818]](_0x43b0x2);this[_0x5b48[1179]][_0x5b48[251]][_0x5b48[473]]();try{for(var _0x43b0x3 in _0x43b0x2){var _0x43b0x4=_0x43b0x2[_0x43b0x3];1< _0x43b0x4[_0x5b48[67]]&& this[_0x5b48[1759]](_0x43b0x4)}}finally{this[_0x5b48[1179]][_0x5b48[251]][_0x5b48[476]]()}};mxParallelEdgeLayout[_0x5b48[202]][_0x5b48[1818]]= function(_0x43b0x2){for(var _0x43b0x3=this[_0x5b48[1179]][_0x5b48[502]](),_0x43b0x4=[],_0x43b0x5=_0x43b0x3[_0x5b48[262]](_0x43b0x2),_0x43b0x9=0;_0x43b0x9< _0x43b0x5;_0x43b0x9++){var _0x43b0xa=_0x43b0x3[_0x5b48[263]](_0x43b0x2,_0x43b0x9);if(!this[_0x5b48[1715]](_0x43b0xa)){var _0x43b0x12=this[_0x5b48[1819]](_0x43b0xa);null!= _0x43b0x12&& (null== _0x43b0x4[_0x43b0x12]&& (_0x43b0x4[_0x43b0x12]= []),_0x43b0x4[_0x43b0x12][_0x5b48[207]](_0x43b0xa))}};return _0x43b0x4};mxParallelEdgeLayout[_0x5b48[202]][_0x5b48[1819]]= function(_0x43b0x2){var _0x43b0x3=this[_0x5b48[1179]][_0x5b48[249]](),_0x43b0x4=_0x43b0x3[_0x5b48[248]](_0x43b0x2),_0x43b0x5=null!= _0x43b0x4?_0x43b0x4[_0x5b48[1710]](!0):_0x43b0x3[_0x5b48[1710]](_0x43b0x2,!0);_0x43b0x2= null!= _0x43b0x4?_0x43b0x4[_0x5b48[1710]](!1):_0x43b0x3[_0x5b48[1710]](_0x43b0x2,!1);return null!= _0x43b0x5&& null!= _0x43b0x2?(_0x43b0x5= mxCellPath[_0x5b48[385]](_0x43b0x5),_0x43b0x2= mxCellPath[_0x5b48[385]](_0x43b0x2),_0x43b0x5> _0x43b0x2?_0x43b0x2+ _0x5b48[213]+ _0x43b0x5:_0x43b0x5+ _0x5b48[213]+ _0x43b0x2):null};mxParallelEdgeLayout[_0x5b48[202]][_0x5b48[1759]]= function(_0x43b0x2){var _0x43b0x3=_0x43b0x2[0],_0x43b0x4=this[_0x5b48[1179]][_0x5b48[502]](),_0x43b0x5=_0x43b0x4[_0x5b48[1721]](_0x43b0x4[_0x5b48[1709]](_0x43b0x3,!0)),_0x43b0x9=_0x43b0x4[_0x5b48[1721]](_0x43b0x4[_0x5b48[1709]](_0x43b0x3,!1));if(_0x43b0x5== _0x43b0x9){for(var _0x43b0x3=_0x43b0x5[_0x5b48[235]]+ _0x43b0x5[_0x5b48[117]]+ this[_0x5b48[657]],_0x43b0x4=_0x43b0x5[_0x5b48[236]]+ _0x43b0x5[_0x5b48[119]]/ 2,_0x43b0xa=0;_0x43b0xa< _0x43b0x2[_0x5b48[67]];_0x43b0xa++){this[_0x5b48[1820]](_0x43b0x2[_0x43b0xa],_0x43b0x3,_0x43b0x4),_0x43b0x3+= this[_0x5b48[657]]}}else {if(null!= _0x43b0x5&& null!= _0x43b0x9){for(var _0x43b0x3=_0x43b0x5[_0x5b48[235]]+ _0x43b0x5[_0x5b48[117]]/ 2,_0x43b0x4=_0x43b0x5[_0x5b48[236]]+ _0x43b0x5[_0x5b48[119]]/ 2,_0x43b0xa=_0x43b0x9[_0x5b48[235]]+ _0x43b0x9[_0x5b48[117]]/ 2- _0x43b0x3,_0x43b0x12=_0x43b0x9[_0x5b48[236]]+ _0x43b0x9[_0x5b48[119]]/ 2- _0x43b0x4,_0x43b0x9=Math[_0x5b48[428]](_0x43b0xa* _0x43b0xa+ _0x43b0x12* _0x43b0x12),_0x43b0x5=_0x43b0x12* this[_0x5b48[657]]/ _0x43b0x9,_0x43b0x9=_0x43b0xa* this[_0x5b48[657]]/ _0x43b0x9,_0x43b0x3=_0x43b0x3+ _0x43b0xa/ 2+ _0x43b0x5* (_0x43b0x2[_0x5b48[67]]- 1)/ 2,_0x43b0x4=_0x43b0x4+ _0x43b0x12/ 2- _0x43b0x9* (_0x43b0x2[_0x5b48[67]]- 1)/ 2,_0x43b0xa=0;_0x43b0xa< _0x43b0x2[_0x5b48[67]];_0x43b0xa++){this[_0x5b48[1820]](_0x43b0x2[_0x43b0xa],_0x43b0x3,_0x43b0x4),_0x43b0x3-= _0x43b0x5,_0x43b0x4+= _0x43b0x9}}}};mxParallelEdgeLayout[_0x5b48[202]][_0x5b48[1820]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){this[_0x5b48[1179]][_0x5b48[1712]](_0x43b0x2)&& this[_0x5b48[1722]](_0x43b0x2,[ new mxPoint(_0x43b0x3,_0x43b0x4)])};function mxCompositeLayout(_0x43b0x2,_0x43b0x3,_0x43b0x4){mxGraphLayout[_0x5b48[239]](this,_0x43b0x2);this[_0x5b48[1821]]= _0x43b0x3;this[_0x5b48[1822]]= _0x43b0x4}mxCompositeLayout[_0x5b48[202]]= new mxGraphLayout;mxCompositeLayout[_0x5b48[202]][_0x5b48[196]]= mxCompositeLayout;mxCompositeLayout[_0x5b48[202]][_0x5b48[1821]]= null;mxCompositeLayout[_0x5b48[202]][_0x5b48[1822]]= null;mxCompositeLayout[_0x5b48[202]][_0x5b48[1702]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){null!= this[_0x5b48[1822]]?this[_0x5b48[1822]][_0x5b48[582]][_0x5b48[183]](this[_0x5b48[1822]],arguments):this[_0x5b48[1821]][0][_0x5b48[582]][_0x5b48[183]](this[_0x5b48[1821]][0],arguments)};mxCompositeLayout[_0x5b48[202]][_0x5b48[350]]= function(_0x43b0x2){var _0x43b0x3=this[_0x5b48[1179]][_0x5b48[502]]();_0x43b0x3[_0x5b48[473]]();try{for(var _0x43b0x4=0;_0x43b0x4< this[_0x5b48[1821]][_0x5b48[67]];_0x43b0x4++){this[_0x5b48[1821]][_0x43b0x4][_0x5b48[350]][_0x5b48[183]](this[_0x5b48[1821]][_0x43b0x4],arguments)}}finally{_0x43b0x3[_0x5b48[476]]()}};function mxEdgeLabelLayout(_0x43b0x2,_0x43b0x3){mxGraphLayout[_0x5b48[239]](this,_0x43b0x2)}mxEdgeLabelLayout[_0x5b48[202]]= new mxGraphLayout;mxEdgeLabelLayout[_0x5b48[202]][_0x5b48[196]]= mxEdgeLabelLayout;mxEdgeLabelLayout[_0x5b48[202]][_0x5b48[350]]= function(_0x43b0x2){for(var _0x43b0x3=this[_0x5b48[1179]][_0x5b48[441]],_0x43b0x4=this[_0x5b48[1179]][_0x5b48[502]](),_0x43b0x5=[],_0x43b0x9=[],_0x43b0xa=_0x43b0x4[_0x5b48[262]](_0x43b0x2),_0x43b0x12=0;_0x43b0x12< _0x43b0xa;_0x43b0x12++){var _0x43b0x13=_0x43b0x4[_0x5b48[263]](_0x43b0x2,_0x43b0x12),_0x43b0x14=_0x43b0x3[_0x5b48[248]](_0x43b0x13);null!= _0x43b0x14&& (this[_0x5b48[1713]](_0x43b0x13)?this[_0x5b48[1715]](_0x43b0x13)|| _0x43b0x5[_0x5b48[207]](_0x43b0x14):_0x43b0x9[_0x5b48[207]](_0x43b0x14))};this[_0x5b48[1823]](_0x43b0x9,_0x43b0x5)};mxEdgeLabelLayout[_0x5b48[202]][_0x5b48[1823]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=this[_0x5b48[1179]][_0x5b48[502]]();_0x43b0x4[_0x5b48[473]]();try{for(var _0x43b0x5=0;_0x43b0x5< _0x43b0x3[_0x5b48[67]];_0x43b0x5++){var _0x43b0x9=_0x43b0x3[_0x43b0x5];if(null!= _0x43b0x9&& null!= _0x43b0x9[_0x5b48[963]]&& null!= _0x43b0x9[_0x5b48[963]][_0x5b48[1563]]){for(var _0x43b0xa=0;_0x43b0xa< _0x43b0x2[_0x5b48[67]];_0x43b0xa++){var _0x43b0x12=_0x43b0x2[_0x43b0xa];null!= _0x43b0x12&& this[_0x5b48[1824]](_0x43b0x9,_0x43b0x12)}}}}finally{_0x43b0x4[_0x5b48[476]]()}};mxEdgeLabelLayout[_0x5b48[202]][_0x5b48[1824]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=this[_0x5b48[1179]][_0x5b48[502]](),_0x43b0x5=_0x43b0x2[_0x5b48[963]][_0x5b48[1563]];if(mxUtils[_0x5b48[1825]](_0x43b0x5,_0x43b0x3)){var _0x43b0x9=-_0x43b0x5[_0x5b48[236]]- _0x43b0x5[_0x5b48[119]] + _0x43b0x3[_0x5b48[236]],_0x43b0xa=-_0x43b0x5[_0x5b48[236]]+ _0x43b0x3[_0x5b48[236]] + _0x43b0x3[_0x5b48[119]],_0x43b0x9=Math[_0x5b48[425]](_0x43b0x9)< Math[_0x5b48[425]](_0x43b0xa)?_0x43b0x9:_0x43b0xa,_0x43b0xa=-_0x43b0x5[_0x5b48[235]]- _0x43b0x5[_0x5b48[117]] + _0x43b0x3[_0x5b48[235]],_0x43b0x5=-_0x43b0x5[_0x5b48[235]]+ _0x43b0x3[_0x5b48[235]] + _0x43b0x3[_0x5b48[117]],_0x43b0x5=Math[_0x5b48[425]](_0x43b0xa)< Math[_0x5b48[425]](_0x43b0x5)?_0x43b0xa:_0x43b0x5;Math[_0x5b48[425]](_0x43b0x5)< Math[_0x5b48[425]](_0x43b0x9)?_0x43b0x9= 0:_0x43b0x5= 0;_0x43b0xa= _0x43b0x4[_0x5b48[1721]](_0x43b0x2[_0x5b48[246]]);null!= _0x43b0xa&& (_0x43b0xa= _0x43b0xa[_0x5b48[238]](),null!= _0x43b0xa[_0x5b48[1368]]?(_0x43b0xa[_0x5b48[1368]][_0x5b48[235]]+= _0x43b0x5,_0x43b0xa[_0x5b48[1368]][_0x5b48[236]]+= _0x43b0x9):_0x43b0xa[_0x5b48[1368]]= new mxPoint(_0x43b0x5,_0x43b0x9),_0x43b0x4[_0x5b48[1724]](_0x43b0x2[_0x5b48[246]],_0x43b0xa))}};function mxGraphAbstractHierarchyCell(){this[_0x5b48[235]]= [];this[_0x5b48[236]]= [];this[_0x5b48[1826]]= []}mxGraphAbstractHierarchyCell[_0x5b48[202]][_0x5b48[1827]]= -1;mxGraphAbstractHierarchyCell[_0x5b48[202]][_0x5b48[1828]]= -1;mxGraphAbstractHierarchyCell[_0x5b48[202]][_0x5b48[235]]= null;mxGraphAbstractHierarchyCell[_0x5b48[202]][_0x5b48[236]]= null;mxGraphAbstractHierarchyCell[_0x5b48[202]][_0x5b48[117]]= 0;mxGraphAbstractHierarchyCell[_0x5b48[202]][_0x5b48[119]]= 0;mxGraphAbstractHierarchyCell[_0x5b48[202]][_0x5b48[1829]]= null;mxGraphAbstractHierarchyCell[_0x5b48[202]][_0x5b48[1830]]= null;mxGraphAbstractHierarchyCell[_0x5b48[202]][_0x5b48[1826]]= null;mxGraphAbstractHierarchyCell[_0x5b48[202]][_0x5b48[1831]]= function(_0x43b0x2){return null};mxGraphAbstractHierarchyCell[_0x5b48[202]][_0x5b48[1832]]= function(_0x43b0x2){return null};mxGraphAbstractHierarchyCell[_0x5b48[202]][_0x5b48[250]]= function(){return !1};mxGraphAbstractHierarchyCell[_0x5b48[202]][_0x5b48[1193]]= function(){return !1};mxGraphAbstractHierarchyCell[_0x5b48[202]][_0x5b48[1833]]= function(_0x43b0x2){return null};mxGraphAbstractHierarchyCell[_0x5b48[202]][_0x5b48[1834]]= function(_0x43b0x2,_0x43b0x3){return null};mxGraphAbstractHierarchyCell[_0x5b48[202]][_0x5b48[1835]]= function(_0x43b0x2,_0x43b0x3){this[_0x5b48[1193]]()?this[_0x5b48[235]][0]= _0x43b0x3:this[_0x5b48[250]]()&& (this[_0x5b48[235]][_0x43b0x2- this[_0x5b48[1828]]- 1]= _0x43b0x3)};mxGraphAbstractHierarchyCell[_0x5b48[202]][_0x5b48[730]]= function(_0x43b0x2){return this[_0x5b48[1193]]()?this[_0x5b48[235]][0]:this[_0x5b48[250]]()?this[_0x5b48[235]][_0x43b0x2- this[_0x5b48[1828]]- 1]:0};mxGraphAbstractHierarchyCell[_0x5b48[202]][_0x5b48[1836]]= function(_0x43b0x2,_0x43b0x3){this[_0x5b48[1193]]()?this[_0x5b48[236]][0]= _0x43b0x3:this[_0x5b48[250]]()&& (this[_0x5b48[236]][_0x43b0x2- this[_0x5b48[1828]]- 1]= _0x43b0x3)};function mxGraphHierarchyNode(_0x43b0x2){mxGraphAbstractHierarchyCell[_0x5b48[183]](this,arguments);this[_0x5b48[246]]= _0x43b0x2}mxGraphHierarchyNode[_0x5b48[202]]= new mxGraphAbstractHierarchyCell;mxGraphHierarchyNode[_0x5b48[202]][_0x5b48[196]]= mxGraphHierarchyNode;mxGraphHierarchyNode[_0x5b48[202]][_0x5b48[246]]= null;mxGraphHierarchyNode[_0x5b48[202]][_0x5b48[1837]]= [];mxGraphHierarchyNode[_0x5b48[202]][_0x5b48[1838]]= [];mxGraphHierarchyNode[_0x5b48[202]][_0x5b48[1839]]= !1;mxGraphHierarchyNode[_0x5b48[202]][_0x5b48[1840]]= function(_0x43b0x2){return this[_0x5b48[1827]]};mxGraphHierarchyNode[_0x5b48[202]][_0x5b48[1831]]= function(_0x43b0x2){if(null== this[_0x5b48[1829]]){this[_0x5b48[1829]]= [];this[_0x5b48[1829]][0]= [];for(var _0x43b0x3=0;_0x43b0x3< this[_0x5b48[1837]][_0x5b48[67]];_0x43b0x3++){var _0x43b0x4=this[_0x5b48[1837]][_0x43b0x3];-1== _0x43b0x4[_0x5b48[1827]] || _0x43b0x4[_0x5b48[1827]]== _0x43b0x2+ 1?this[_0x5b48[1829]][0][_0x5b48[207]](_0x43b0x4[_0x5b48[1097]]):this[_0x5b48[1829]][0][_0x5b48[207]](_0x43b0x4)}};return this[_0x5b48[1829]][0]};mxGraphHierarchyNode[_0x5b48[202]][_0x5b48[1832]]= function(_0x43b0x2){if(null== this[_0x5b48[1830]]){this[_0x5b48[1830]]= [];this[_0x5b48[1830]][0]= [];for(var _0x43b0x3=0;_0x43b0x3< this[_0x5b48[1838]][_0x5b48[67]];_0x43b0x3++){var _0x43b0x4=this[_0x5b48[1838]][_0x43b0x3];-1== _0x43b0x4[_0x5b48[1828]] || _0x43b0x4[_0x5b48[1828]]== _0x43b0x2- 1?this[_0x5b48[1830]][0][_0x5b48[207]](_0x43b0x4[_0x5b48[772]]):this[_0x5b48[1830]][0][_0x5b48[207]](_0x43b0x4)}};return this[_0x5b48[1830]][0]};mxGraphHierarchyNode[_0x5b48[202]][_0x5b48[1193]]= function(){return !0};mxGraphHierarchyNode[_0x5b48[202]][_0x5b48[1833]]= function(_0x43b0x2){return this[_0x5b48[1826]][0]};mxGraphHierarchyNode[_0x5b48[202]][_0x5b48[1834]]= function(_0x43b0x2,_0x43b0x3){this[_0x5b48[1826]][0]= _0x43b0x3};mxGraphHierarchyNode[_0x5b48[202]][_0x5b48[1720]]= function(_0x43b0x2){if(null!= _0x43b0x2&& null!= this[_0x5b48[1839]]&& null!= _0x43b0x2[_0x5b48[1839]]&& this[_0x5b48[1839]][_0x5b48[67]]< _0x43b0x2[_0x5b48[1839]][_0x5b48[67]]){if(this[_0x5b48[1839]]== _0x43b0x2[_0x5b48[1839]]){return !0};if(null== this[_0x5b48[1839]]|| null== this[_0x5b48[1839]]){return !1};for(var _0x43b0x3=0;_0x43b0x3< this[_0x5b48[1839]][_0x5b48[67]];_0x43b0x3++){if(this[_0x5b48[1839]][_0x43b0x3]!= _0x43b0x2[_0x5b48[1839]][_0x43b0x3]){return !1}};return !0};return !1};mxGraphHierarchyNode[_0x5b48[202]][_0x5b48[1841]]= function(){return this[_0x5b48[246]]};function mxGraphHierarchyEdge(_0x43b0x2){mxGraphAbstractHierarchyCell[_0x5b48[183]](this,arguments);this[_0x5b48[1842]]= _0x43b0x2}mxGraphHierarchyEdge[_0x5b48[202]]= new mxGraphAbstractHierarchyCell;mxGraphHierarchyEdge[_0x5b48[202]][_0x5b48[196]]= mxGraphHierarchyEdge;mxGraphHierarchyEdge[_0x5b48[202]][_0x5b48[1842]]= null;mxGraphHierarchyEdge[_0x5b48[202]][_0x5b48[1097]]= null;mxGraphHierarchyEdge[_0x5b48[202]][_0x5b48[772]]= null;mxGraphHierarchyEdge[_0x5b48[202]][_0x5b48[1843]]= !1;mxGraphHierarchyEdge[_0x5b48[202]][_0x5b48[1744]]= function(_0x43b0x2){_0x43b0x2= this[_0x5b48[1097]];this[_0x5b48[1097]]= this[_0x5b48[772]];this[_0x5b48[772]]= _0x43b0x2;this[_0x5b48[1843]]= !this[_0x5b48[1843]]};mxGraphHierarchyEdge[_0x5b48[202]][_0x5b48[1831]]= function(_0x43b0x2){if(null== this[_0x5b48[1829]]){this[_0x5b48[1829]]= [];for(var _0x43b0x3=0;_0x43b0x3< this[_0x5b48[1826]][_0x5b48[67]];_0x43b0x3++){this[_0x5b48[1829]][_0x43b0x3]= [],_0x43b0x3== this[_0x5b48[1826]][_0x5b48[67]]- 1?this[_0x5b48[1829]][_0x43b0x3][_0x5b48[207]](this[_0x5b48[1097]]):this[_0x5b48[1829]][_0x43b0x3][_0x5b48[207]](this)}};return this[_0x5b48[1829]][_0x43b0x2- this[_0x5b48[1828]]- 1]};mxGraphHierarchyEdge[_0x5b48[202]][_0x5b48[1832]]= function(_0x43b0x2){if(null== this[_0x5b48[1830]]){this[_0x5b48[1830]]= [];for(var _0x43b0x3=0;_0x43b0x3< this[_0x5b48[1826]][_0x5b48[67]];_0x43b0x3++){this[_0x5b48[1830]][_0x43b0x3]= [],0== _0x43b0x3?this[_0x5b48[1830]][_0x43b0x3][_0x5b48[207]](this[_0x5b48[772]]):this[_0x5b48[1830]][_0x43b0x3][_0x5b48[207]](this)}};return this[_0x5b48[1830]][_0x43b0x2- this[_0x5b48[1828]]- 1]};mxGraphHierarchyEdge[_0x5b48[202]][_0x5b48[250]]= function(){return !0};mxGraphHierarchyEdge[_0x5b48[202]][_0x5b48[1833]]= function(_0x43b0x2){return this[_0x5b48[1826]][_0x43b0x2- this[_0x5b48[1828]]- 1]};mxGraphHierarchyEdge[_0x5b48[202]][_0x5b48[1834]]= function(_0x43b0x2,_0x43b0x3){this[_0x5b48[1826]][_0x43b0x2- this[_0x5b48[1828]]- 1]= _0x43b0x3};mxGraphHierarchyEdge[_0x5b48[202]][_0x5b48[1841]]= function(){return null!= this[_0x5b48[1842]]&& 0< this[_0x5b48[1842]][_0x5b48[67]]?this[_0x5b48[1842]][0]:null};function mxGraphHierarchyModel(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){_0x43b0x2[_0x5b48[1703]]();this[_0x5b48[1844]]= _0x43b0x9;this[_0x5b48[1845]]= _0x43b0x4;this[_0x5b48[1101]]= _0x43b0x5;this[_0x5b48[1846]]= {};this[_0x5b48[1847]]= {};this[_0x5b48[1827]]= 0;_0x43b0x4= [];null== _0x43b0x3&& (_0x43b0x3= this[_0x5b48[1179]][_0x5b48[1728]](_0x43b0x5));this[_0x5b48[1827]]= this[_0x5b48[1848]];this[_0x5b48[1849]](_0x43b0x2,_0x43b0x3,_0x43b0x4);for(_0x43b0x5= 0;_0x43b0x5< _0x43b0x3[_0x5b48[67]];_0x43b0x5++){_0x43b0x9= _0x43b0x4[_0x43b0x5][_0x5b48[1838]];for(var _0x43b0xa=0;_0x43b0xa< _0x43b0x9[_0x5b48[67]];_0x43b0xa++){var _0x43b0x12=_0x43b0x9[_0x43b0xa],_0x43b0x13=_0x43b0x12[_0x5b48[1842]];if(null!= _0x43b0x13&& 0< _0x43b0x13[_0x5b48[67]]){var _0x43b0x13=_0x43b0x13[0],_0x43b0x14=_0x43b0x2[_0x5b48[1710]](_0x43b0x13,!1),_0x43b0x14=mxCellPath[_0x5b48[385]](_0x43b0x14),_0x43b0x14=this[_0x5b48[1846]][_0x43b0x14];_0x43b0x4[_0x43b0x5]== _0x43b0x14&& (_0x43b0x14= _0x43b0x2[_0x5b48[1710]](_0x43b0x13,!0),_0x43b0x14= mxCellPath[_0x5b48[385]](_0x43b0x14),_0x43b0x14= this[_0x5b48[1846]][_0x43b0x14]);null!= _0x43b0x14&& _0x43b0x4[_0x43b0x5]!= _0x43b0x14&& (_0x43b0x12[_0x5b48[772]]= _0x43b0x14,0== _0x43b0x14[_0x5b48[1837]][_0x5b48[67]]&& (_0x43b0x14[_0x5b48[1837]]= []),0> mxUtils[_0x5b48[2]](_0x43b0x14[_0x5b48[1837]],_0x43b0x12)&& _0x43b0x14[_0x5b48[1837]][_0x5b48[207]](_0x43b0x12))}};_0x43b0x4[_0x43b0x5][_0x5b48[1826]][0]= 1}}mxGraphHierarchyModel[_0x5b48[202]][_0x5b48[1827]]= null;mxGraphHierarchyModel[_0x5b48[202]][_0x5b48[1846]]= null;mxGraphHierarchyModel[_0x5b48[202]][_0x5b48[1847]]= null;mxGraphHierarchyModel[_0x5b48[202]][_0x5b48[1850]]= null;mxGraphHierarchyModel[_0x5b48[202]][_0x5b48[1845]]= null;mxGraphHierarchyModel[_0x5b48[202]][_0x5b48[1101]]= null;mxGraphHierarchyModel[_0x5b48[202]][_0x5b48[1851]]= 0;mxGraphHierarchyModel[_0x5b48[202]][_0x5b48[1848]]= 1E8;mxGraphHierarchyModel[_0x5b48[202]][_0x5b48[1844]]= !1;mxGraphHierarchyModel[_0x5b48[202]][_0x5b48[1849]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){for(var _0x43b0x5=_0x43b0x2[_0x5b48[1703]](),_0x43b0x9=0;_0x43b0x9< _0x43b0x3[_0x5b48[67]];_0x43b0x9++){_0x43b0x4[_0x43b0x9]= new mxGraphHierarchyNode(_0x43b0x3[_0x43b0x9]);var _0x43b0xa=mxCellPath[_0x5b48[385]](_0x43b0x3[_0x43b0x9]);this[_0x5b48[1846]][_0x43b0xa]= _0x43b0x4[_0x43b0x9];_0x43b0xa= _0x43b0x2[_0x5b48[264]](_0x43b0x3[_0x43b0x9]);_0x43b0x4[_0x43b0x9][_0x5b48[1838]]= [];for(var _0x43b0x12=0;_0x43b0x12< _0x43b0xa[_0x5b48[67]];_0x43b0x12++){var _0x43b0x13=_0x43b0x2[_0x5b48[1710]](_0x43b0xa[_0x43b0x12],!1);if(_0x43b0x13!= _0x43b0x3[_0x43b0x9]&& _0x43b0x13!= _0x43b0x3[_0x43b0x9]&& _0x43b0x2[_0x5b48[1179]][_0x5b48[251]][_0x5b48[1193]](_0x43b0x13)&& !_0x43b0x2[_0x5b48[1713]](_0x43b0x13)){var _0x43b0x14=_0x43b0x2[_0x5b48[1781]](_0x43b0x3[_0x43b0x9],_0x43b0x13,!1),_0x43b0x15=_0x43b0x2[_0x5b48[1781]](_0x43b0x3[_0x43b0x9],_0x43b0x13,!0),_0x43b0x13=mxCellPath[_0x5b48[385]](_0x43b0x14[0]);if(null!= _0x43b0x14&& 0< _0x43b0x14[_0x5b48[67]]&& null== this[_0x5b48[1847]][_0x43b0x13]&& 2* _0x43b0x15[_0x5b48[67]]>= _0x43b0x14[_0x5b48[67]]){for(var _0x43b0x15= new mxGraphHierarchyEdge(_0x43b0x14),_0x43b0x16=0;_0x43b0x16< _0x43b0x14[_0x5b48[67]];_0x43b0x16++){var _0x43b0x17=_0x43b0x14[_0x43b0x16],_0x43b0x13=mxCellPath[_0x5b48[385]](_0x43b0x17);this[_0x5b48[1847]][_0x43b0x13]= _0x43b0x15;_0x43b0x5[_0x5b48[1809]](_0x43b0x17);_0x43b0x2[_0x5b48[1787]]&& (_0x43b0x2[_0x5b48[1716]](_0x43b0x17,!1),_0x43b0x2[_0x5b48[1718]](_0x43b0x17,!0))};_0x43b0x15[_0x5b48[1097]]= _0x43b0x4[_0x43b0x9];0> mxUtils[_0x5b48[2]](_0x43b0x4[_0x43b0x9][_0x5b48[1838]],_0x43b0x15)&& _0x43b0x4[_0x43b0x9][_0x5b48[1838]][_0x5b48[207]](_0x43b0x15)}}};_0x43b0x4[_0x43b0x9][_0x5b48[1826]][0]= 0}};mxGraphHierarchyModel[_0x5b48[202]][_0x5b48[1852]]= function(){var _0x43b0x2=[];if(null!= this[_0x5b48[1845]]){for(var _0x43b0x3=0;_0x43b0x3< this[_0x5b48[1845]][_0x5b48[67]];_0x43b0x3++){var _0x43b0x4=mxCellPath[_0x5b48[385]](this[_0x5b48[1845]][_0x43b0x3]),_0x43b0x4=this[_0x5b48[1846]][_0x43b0x4];null!= _0x43b0x4&& _0x43b0x2[_0x5b48[207]](_0x43b0x4)}};for(var _0x43b0x5 in this[_0x5b48[1846]]){_0x43b0x4= this[_0x5b48[1846]][_0x43b0x5],_0x43b0x4[_0x5b48[1826]][0]= -1};for(var _0x43b0x9=_0x43b0x2[_0x5b48[1853]]();0< _0x43b0x2[_0x5b48[67]];){var _0x43b0x4=_0x43b0x2[0],_0x43b0xa,_0x43b0x12;_0x43b0xa= _0x43b0x4[_0x5b48[1837]];_0x43b0x12= _0x43b0x4[_0x5b48[1838]];for(var _0x43b0x13=!0,_0x43b0x14=this[_0x5b48[1848]],_0x43b0x3=0;_0x43b0x3< _0x43b0xa[_0x5b48[67]];_0x43b0x3++){var _0x43b0x15=_0x43b0xa[_0x43b0x3];if(5270620== _0x43b0x15[_0x5b48[1826]][0]){_0x43b0x15= _0x43b0x15[_0x5b48[1097]],_0x43b0x14= Math[_0x5b48[243]](_0x43b0x14,_0x43b0x15[_0x5b48[1826]][0]- 1)}else {_0x43b0x13= !1;break}};if(_0x43b0x13){_0x43b0x4[_0x5b48[1826]][0]= _0x43b0x14;this[_0x5b48[1827]]= Math[_0x5b48[243]](this[_0x5b48[1827]],_0x43b0x14);if(null!= _0x43b0x12){for(_0x43b0x3= 0;_0x43b0x3< _0x43b0x12[_0x5b48[67]];_0x43b0x3++){_0x43b0x15= _0x43b0x12[_0x43b0x3],_0x43b0x15[_0x5b48[1826]][0]= 5270620,_0x43b0x15= _0x43b0x15[_0x5b48[772]],-1== _0x43b0x15[_0x5b48[1826]][0] && (_0x43b0x2[_0x5b48[207]](_0x43b0x15),_0x43b0x15[_0x5b48[1826]][0]= -2)}};_0x43b0x2[_0x5b48[1115]]()}else {if(_0x43b0x3= _0x43b0x2[_0x5b48[1115]](),_0x43b0x2[_0x5b48[207]](_0x43b0x4),_0x43b0x3== _0x43b0x4&& 1== _0x43b0x2[_0x5b48[67]]){break}}};for(_0x43b0x5 in this[_0x5b48[1846]]){_0x43b0x4= this[_0x5b48[1846]][_0x43b0x5],_0x43b0x4[_0x5b48[1826]][0]-= this[_0x5b48[1827]]};for(_0x43b0x3= 0;_0x43b0x3< _0x43b0x9[_0x5b48[67]];_0x43b0x3++){_0x43b0x4= _0x43b0x9[_0x43b0x3];_0x43b0x2= 0;_0x43b0xa= _0x43b0x4[_0x5b48[1838]];for(_0x43b0x5= 0;_0x43b0x5< _0x43b0xa[_0x5b48[67]];_0x43b0x5++){_0x43b0x15= _0x43b0xa[_0x43b0x5],_0x43b0x15= _0x43b0x15[_0x5b48[772]],_0x43b0x4[_0x5b48[1826]][0]= Math[_0x5b48[160]](_0x43b0x2,_0x43b0x15[_0x5b48[1826]][0]+ 1),_0x43b0x2= _0x43b0x4[_0x5b48[1826]][0]}};this[_0x5b48[1827]]= this[_0x5b48[1848]]- this[_0x5b48[1827]]};mxGraphHierarchyModel[_0x5b48[202]][_0x5b48[1854]]= function(){var _0x43b0x2=[];this[_0x5b48[1850]]= [];for(var _0x43b0x3=0;_0x43b0x3< this[_0x5b48[1827]]+ 1;_0x43b0x3++){_0x43b0x2[_0x43b0x3]= [],this[_0x5b48[1850]][_0x43b0x3]= _0x43b0x2[_0x43b0x3]};var _0x43b0x4=null;if(null!= this[_0x5b48[1845]]){for(var _0x43b0x5=this[_0x5b48[1845]],_0x43b0x4=[],_0x43b0x3=0;_0x43b0x3< _0x43b0x5[_0x5b48[67]];_0x43b0x3++){var _0x43b0x9=mxCellPath[_0x5b48[385]](_0x43b0x5[_0x43b0x3]);_0x43b0x4[_0x43b0x3]= this[_0x5b48[1846]][_0x43b0x9]}};this[_0x5b48[209]](function(_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0x15){0== _0x43b0x15&& (0> _0x43b0x4[_0x5b48[1827]]&& 0> _0x43b0x4[_0x5b48[1828]])&& (_0x43b0x2[_0x43b0x4[_0x5b48[1826]][0]][_0x5b48[207]](_0x43b0x4),_0x43b0x4[_0x5b48[1827]]= _0x43b0x4[_0x5b48[1826]][0],_0x43b0x4[_0x5b48[1828]]= _0x43b0x4[_0x5b48[1826]][0],_0x43b0x4[_0x5b48[1826]][0]= _0x43b0x2[_0x43b0x4[_0x5b48[1827]]][_0x5b48[67]]- 1);if(null!= _0x43b0x3&& null!= _0x43b0x5&& 1< _0x43b0x3[_0x5b48[1827]]- _0x43b0x4[_0x5b48[1827]]){_0x43b0x5[_0x5b48[1827]]= _0x43b0x3[_0x5b48[1827]];_0x43b0x5[_0x5b48[1828]]= _0x43b0x4[_0x5b48[1827]];_0x43b0x5[_0x5b48[1826]]= [];_0x43b0x5[_0x5b48[235]]= [];_0x43b0x5[_0x5b48[236]]= [];for(_0x43b0x3= _0x43b0x5[_0x5b48[1828]]+ 1;_0x43b0x3< _0x43b0x5[_0x5b48[1827]];_0x43b0x3++){_0x43b0x2[_0x43b0x3][_0x5b48[207]](_0x43b0x5),_0x43b0x5[_0x5b48[1834]](_0x43b0x3,_0x43b0x2[_0x43b0x3][_0x5b48[67]]- 1)}}},_0x43b0x4,!1,null)};mxGraphHierarchyModel[_0x5b48[202]][_0x5b48[209]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){if(null!= _0x43b0x3){for(var _0x43b0x9=0;_0x43b0x9< _0x43b0x3[_0x5b48[67]];_0x43b0x9++){var _0x43b0xa=_0x43b0x3[_0x43b0x9];null!= _0x43b0xa&& (null== _0x43b0x5&& (_0x43b0x5= {}),_0x43b0x4?(_0x43b0xa[_0x5b48[1839]]= [],_0x43b0xa[_0x5b48[1839]][0]= this[_0x5b48[1851]],_0x43b0xa[_0x5b48[1839]][1]= _0x43b0x9,this[_0x5b48[1855]](null,_0x43b0xa,null,_0x43b0x2,_0x43b0x5,_0x43b0xa[_0x5b48[1839]],_0x43b0x9,0)):this[_0x5b48[1758]](null,_0x43b0xa,null,_0x43b0x2,_0x43b0x5,0))};this[_0x5b48[1851]]++}};mxGraphHierarchyModel[_0x5b48[202]][_0x5b48[1758]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa){if(null!= _0x43b0x3){var _0x43b0x12=mxCellPath[_0x5b48[385]](_0x43b0x3[_0x5b48[246]]);if(null== _0x43b0x9[_0x43b0x12]){_0x43b0x9[_0x43b0x12]= _0x43b0x3;_0x43b0x5(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0xa,0);_0x43b0x2= _0x43b0x3[_0x5b48[1838]][_0x5b48[1853]]();for(_0x43b0x4= 0;_0x43b0x4< _0x43b0x2[_0x5b48[67]];_0x43b0x4++){_0x43b0x12= _0x43b0x2[_0x43b0x4],this[_0x5b48[1758]](_0x43b0x3,_0x43b0x12[_0x5b48[772]],_0x43b0x12,_0x43b0x5,_0x43b0x9,_0x43b0xa+ 1)}}else {_0x43b0x5(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0xa,1)}}};mxGraphHierarchyModel[_0x5b48[202]][_0x5b48[1855]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa,_0x43b0x12,_0x43b0x13){if(null!= _0x43b0x3){if(null!= _0x43b0x2&& (null== _0x43b0x3[_0x5b48[1839]]|| _0x43b0x3[_0x5b48[1839]][0]!= _0x43b0x2[_0x5b48[1839]][0])){_0x43b0xa= _0x43b0x2[_0x5b48[1839]][_0x5b48[67]]+ 1,_0x43b0x3[_0x5b48[1839]]= _0x43b0x2[_0x5b48[1839]][_0x5b48[1853]](),_0x43b0x3[_0x5b48[1839]][_0x43b0xa- 1]= _0x43b0x12};_0x43b0x12= mxCellPath[_0x5b48[385]](_0x43b0x3[_0x5b48[246]]);if(null== _0x43b0x9[_0x43b0x12]){_0x43b0x9[_0x43b0x12]= _0x43b0x3;_0x43b0x5(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x13,0);_0x43b0x2= _0x43b0x3[_0x5b48[1838]][_0x5b48[1853]]();for(_0x43b0x4= 0;_0x43b0x4< _0x43b0x2[_0x5b48[67]];_0x43b0x4++){_0x43b0x12= _0x43b0x2[_0x43b0x4],this[_0x5b48[1855]](_0x43b0x3,_0x43b0x12[_0x5b48[772]],_0x43b0x12,_0x43b0x5,_0x43b0x9,_0x43b0x3[_0x5b48[1839]],_0x43b0x4,_0x43b0x13+ 1)}}else {_0x43b0x5(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x13,1)}}};function mxHierarchicalLayoutStage(){}mxHierarchicalLayoutStage[_0x5b48[202]][_0x5b48[350]]= function(_0x43b0x2){};function mxMedianHybridCrossingReduction(_0x43b0x2){this[_0x5b48[1759]]= _0x43b0x2}mxMedianHybridCrossingReduction[_0x5b48[202]]= new mxHierarchicalLayoutStage;mxMedianHybridCrossingReduction[_0x5b48[202]][_0x5b48[196]]= mxMedianHybridCrossingReduction;mxMedianHybridCrossingReduction[_0x5b48[202]][_0x5b48[1759]]= null;mxMedianHybridCrossingReduction[_0x5b48[202]][_0x5b48[1795]]= 24;mxMedianHybridCrossingReduction[_0x5b48[202]][_0x5b48[1856]]= null;mxMedianHybridCrossingReduction[_0x5b48[202]][_0x5b48[1857]]= 0;mxMedianHybridCrossingReduction[_0x5b48[202]][_0x5b48[1858]]= 0;mxMedianHybridCrossingReduction[_0x5b48[202]][_0x5b48[1859]]= 2;mxMedianHybridCrossingReduction[_0x5b48[202]][_0x5b48[350]]= function(_0x43b0x2){_0x43b0x2= this[_0x5b48[1759]][_0x5b48[502]]();this[_0x5b48[1856]]= [];for(var _0x43b0x3=0;_0x43b0x3< _0x43b0x2[_0x5b48[1850]][_0x5b48[67]];_0x43b0x3++){this[_0x5b48[1856]][_0x43b0x3]= _0x43b0x2[_0x5b48[1850]][_0x43b0x3][_0x5b48[1853]]()};for(var _0x43b0x4=0,_0x43b0x5=this[_0x5b48[1860]](_0x43b0x2),_0x43b0x3=0;_0x43b0x3< this[_0x5b48[1795]]&& _0x43b0x4< this[_0x5b48[1859]];_0x43b0x3++){this[_0x5b48[1861]](_0x43b0x3,_0x43b0x2);this[_0x5b48[1862]](_0x43b0x3,_0x43b0x2);var _0x43b0x9=this[_0x5b48[1860]](_0x43b0x2);if(_0x43b0x9< _0x43b0x5){_0x43b0x5= _0x43b0x9;for(_0x43b0x9= _0x43b0x4= 0;_0x43b0x9< this[_0x5b48[1856]][_0x5b48[67]];_0x43b0x9++){for(var _0x43b0xa=_0x43b0x2[_0x5b48[1850]][_0x43b0x9],_0x43b0x12=0;_0x43b0x12< _0x43b0xa[_0x5b48[67]];_0x43b0x12++){var _0x43b0x13=_0x43b0xa[_0x43b0x12];this[_0x5b48[1856]][_0x43b0x9][_0x43b0x13[_0x5b48[1833]](_0x43b0x9)]= _0x43b0x13}}}else {_0x43b0x4++;for(_0x43b0x9= 0;_0x43b0x9< this[_0x5b48[1856]][_0x5b48[67]];_0x43b0x9++){_0x43b0xa= _0x43b0x2[_0x5b48[1850]][_0x43b0x9];for(_0x43b0x12= 0;_0x43b0x12< _0x43b0xa[_0x5b48[67]];_0x43b0x12++){_0x43b0x13= _0x43b0xa[_0x43b0x12],_0x43b0x13[_0x5b48[1834]](_0x43b0x9,_0x43b0x12)}}};if(0== _0x43b0x5){break}};_0x43b0x4= [];_0x43b0x5= [];for(_0x43b0x3= 0;_0x43b0x3< _0x43b0x2[_0x5b48[1827]]+ 1;_0x43b0x3++){_0x43b0x5[_0x43b0x3]= [],_0x43b0x4[_0x43b0x3]= _0x43b0x5[_0x43b0x3]};for(_0x43b0x3= 0;_0x43b0x3< this[_0x5b48[1856]][_0x5b48[67]];_0x43b0x3++){for(_0x43b0x9= 0;_0x43b0x9< this[_0x5b48[1856]][_0x43b0x3][_0x5b48[67]];_0x43b0x9++){_0x43b0x5[_0x43b0x3][_0x5b48[207]](this[_0x5b48[1856]][_0x43b0x3][_0x43b0x9])}};_0x43b0x2[_0x5b48[1850]]= _0x43b0x4};mxMedianHybridCrossingReduction[_0x5b48[202]][_0x5b48[1860]]= function(_0x43b0x2){for(var _0x43b0x3=_0x43b0x2[_0x5b48[1850]][_0x5b48[67]],_0x43b0x4=0,_0x43b0x5=1;_0x43b0x5< _0x43b0x3;_0x43b0x5++){_0x43b0x4+= this[_0x5b48[1863]](_0x43b0x5,_0x43b0x2)};return _0x43b0x4};mxMedianHybridCrossingReduction[_0x5b48[202]][_0x5b48[1863]]= function(_0x43b0x2,_0x43b0x3){for(var _0x43b0x4=0,_0x43b0x5=_0x43b0x3[_0x5b48[1850]][_0x43b0x2],_0x43b0x9=_0x43b0x5[_0x5b48[67]],_0x43b0xa=_0x43b0x3[_0x5b48[1850]][_0x43b0x2- 1][_0x5b48[67]],_0x43b0x12=[],_0x43b0x13=0;_0x43b0x13< _0x43b0x9;_0x43b0x13++){_0x43b0x12[_0x43b0x13]= []};for(_0x43b0x13= 0;_0x43b0x13< _0x43b0x5[_0x5b48[67]];_0x43b0x13++){for(var _0x43b0x14=_0x43b0x5[_0x43b0x13],_0x43b0x15=_0x43b0x14[_0x5b48[1833]](_0x43b0x2),_0x43b0x16=_0x43b0x14[_0x5b48[1832]](_0x43b0x2),_0x43b0x14=0;_0x43b0x14< _0x43b0x16[_0x5b48[67]];_0x43b0x14++){var _0x43b0x17=_0x43b0x16[_0x43b0x14][_0x5b48[1833]](_0x43b0x2- 1);_0x43b0x12[_0x43b0x15][_0x43b0x17]= 201207}};for(_0x43b0x13= 0;_0x43b0x13< _0x43b0x9;_0x43b0x13++){for(_0x43b0x14= 0;_0x43b0x14< _0x43b0xa;_0x43b0x14++){if(201207== _0x43b0x12[_0x43b0x13][_0x43b0x14]){for(_0x43b0x5= _0x43b0x13+ 1;_0x43b0x5< _0x43b0x9;_0x43b0x5++){for(_0x43b0x15= 0;_0x43b0x15< _0x43b0x14;_0x43b0x15++){201207== _0x43b0x12[_0x43b0x5][_0x43b0x15]&& _0x43b0x4++}};for(_0x43b0x5= 0;_0x43b0x5< _0x43b0x13;_0x43b0x5++){for(_0x43b0x15= _0x43b0x14+ 1;_0x43b0x15< _0x43b0xa;_0x43b0x15++){201207== _0x43b0x12[_0x43b0x5][_0x43b0x15]&& _0x43b0x4++}}}}};return _0x43b0x4/ 2};mxMedianHybridCrossingReduction[_0x5b48[202]][_0x5b48[1862]]= function(_0x43b0x2,_0x43b0x3){for(var _0x43b0x4=!0,_0x43b0x5=0;_0x43b0x4&& 10> _0x43b0x5++;){for(var _0x43b0x9=1== _0x43b0x2% 2&& 1== _0x43b0x5% 2,_0x43b0x4=!1,_0x43b0xa=0;_0x43b0xa< _0x43b0x3[_0x5b48[1850]][_0x5b48[67]];_0x43b0xa++){for(var _0x43b0x12=_0x43b0x3[_0x5b48[1850]][_0x43b0xa],_0x43b0x13=[],_0x43b0x14=0;_0x43b0x14< _0x43b0x12[_0x5b48[67]];_0x43b0x14++){var _0x43b0x15=_0x43b0x12[_0x43b0x14],_0x43b0x16=_0x43b0x15[_0x5b48[1833]](_0x43b0xa);0> _0x43b0x16&& (_0x43b0x16= _0x43b0x14);_0x43b0x13[_0x43b0x16]= _0x43b0x15};for(var _0x43b0x17=_0x43b0x16= _0x43b0x15= null,_0x43b0x18=null,_0x43b0x19=null,_0x43b0x1a=null,_0x43b0x1b=null,_0x43b0x1c=null,_0x43b0x1d=null,_0x43b0x1e=null,_0x43b0x14=0;_0x43b0x14< _0x43b0x12[_0x5b48[67]]- 1;_0x43b0x14++){if(0== _0x43b0x14){for(var _0x43b0x1d=_0x43b0x13[_0x43b0x14],_0x43b0x15=_0x43b0x1d[_0x5b48[1831]](_0x43b0xa),_0x43b0x16=_0x43b0x1d[_0x5b48[1832]](_0x43b0xa),_0x43b0x19=[],_0x43b0x1a=[],_0x43b0x1f=0;_0x43b0x1f< _0x43b0x15[_0x5b48[67]];_0x43b0x1f++){_0x43b0x19[_0x43b0x1f]= _0x43b0x15[_0x43b0x1f][_0x5b48[1833]](_0x43b0xa+ 1)};for(_0x43b0x1f= 0;_0x43b0x1f< _0x43b0x16[_0x5b48[67]];_0x43b0x1f++){_0x43b0x1a[_0x43b0x1f]= _0x43b0x16[_0x43b0x1f][_0x5b48[1833]](_0x43b0xa- 1)}}else {_0x43b0x15= _0x43b0x17,_0x43b0x16= _0x43b0x18,_0x43b0x19= _0x43b0x1b,_0x43b0x1a= _0x43b0x1c,_0x43b0x1d= _0x43b0x1e};_0x43b0x1e= _0x43b0x13[_0x43b0x14+ 1];_0x43b0x17= _0x43b0x1e[_0x5b48[1831]](_0x43b0xa);_0x43b0x18= _0x43b0x1e[_0x5b48[1832]](_0x43b0xa);_0x43b0x1b= [];_0x43b0x1c= [];for(_0x43b0x1f= 0;_0x43b0x1f< _0x43b0x17[_0x5b48[67]];_0x43b0x1f++){_0x43b0x1b[_0x43b0x1f]= _0x43b0x17[_0x43b0x1f][_0x5b48[1833]](_0x43b0xa+ 1)};for(_0x43b0x1f= 0;_0x43b0x1f< _0x43b0x18[_0x5b48[67]];_0x43b0x1f++){_0x43b0x1c[_0x43b0x1f]= _0x43b0x18[_0x43b0x1f][_0x5b48[1833]](_0x43b0xa- 1)};for(var _0x43b0x20=0,_0x43b0x62=0,_0x43b0x1f=0;_0x43b0x1f< _0x43b0x19[_0x5b48[67]];_0x43b0x1f++){for(var _0x43b0x63=0;_0x43b0x63< _0x43b0x1b[_0x5b48[67]];_0x43b0x63++){_0x43b0x19[_0x43b0x1f]> _0x43b0x1b[_0x43b0x63]&& _0x43b0x20++,_0x43b0x19[_0x43b0x1f]< _0x43b0x1b[_0x43b0x63]&& _0x43b0x62++}};for(_0x43b0x1f= 0;_0x43b0x1f< _0x43b0x1a[_0x5b48[67]];_0x43b0x1f++){for(_0x43b0x63= 0;_0x43b0x63< _0x43b0x1c[_0x5b48[67]];_0x43b0x63++){_0x43b0x1a[_0x43b0x1f]> _0x43b0x1c[_0x43b0x63]&& _0x43b0x20++,_0x43b0x1a[_0x43b0x1f]< _0x43b0x1c[_0x43b0x63]&& _0x43b0x62++}};if(_0x43b0x62< _0x43b0x20|| _0x43b0x62== _0x43b0x20&& _0x43b0x9){_0x43b0x17= _0x43b0x1d[_0x5b48[1833]](_0x43b0xa),_0x43b0x1d[_0x5b48[1834]](_0x43b0xa,_0x43b0x1e[_0x5b48[1833]](_0x43b0xa)),_0x43b0x1e[_0x5b48[1834]](_0x43b0xa,_0x43b0x17),_0x43b0x17= _0x43b0x15,_0x43b0x18= _0x43b0x16,_0x43b0x1b= _0x43b0x19,_0x43b0x1c= _0x43b0x1a,_0x43b0x1e= _0x43b0x1d,_0x43b0x9|| (_0x43b0x4= !0)}}}}};mxMedianHybridCrossingReduction[_0x5b48[202]][_0x5b48[1861]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=0== _0x43b0x2% 2;if(_0x43b0x4){for(var _0x43b0x5=_0x43b0x3[_0x5b48[1827]]- 1;0<= _0x43b0x5;_0x43b0x5--){this[_0x5b48[1864]](_0x43b0x5,_0x43b0x4)}}else {for(_0x43b0x5= 1;_0x43b0x5< _0x43b0x3[_0x5b48[1827]];_0x43b0x5++){this[_0x5b48[1864]](_0x43b0x5,_0x43b0x4)}}};mxMedianHybridCrossingReduction[_0x5b48[202]][_0x5b48[1864]]= function(_0x43b0x2,_0x43b0x3){for(var _0x43b0x4=this[_0x5b48[1856]][_0x43b0x2][_0x5b48[67]],_0x43b0x5=[],_0x43b0x9=[],_0x43b0xa=0;_0x43b0xa< _0x43b0x4;_0x43b0xa++){var _0x43b0x12=this[_0x5b48[1856]][_0x43b0x2][_0x43b0xa],_0x43b0x13= new MedianCellSorter;_0x43b0x13[_0x5b48[246]]= _0x43b0x12;var _0x43b0x14;_0x43b0x14= _0x43b0x3?_0x43b0x12[_0x5b48[1831]](_0x43b0x2):_0x43b0x12[_0x5b48[1832]](_0x43b0x2);var _0x43b0x15;_0x43b0x15= _0x43b0x3?_0x43b0x2+ 1:_0x43b0x2- 1;null!= _0x43b0x14&& 0!= _0x43b0x14[_0x5b48[67]]?(_0x43b0x13[_0x5b48[1865]]= this[_0x5b48[1865]](_0x43b0x14,_0x43b0x15),_0x43b0x5[_0x5b48[207]](_0x43b0x13)):_0x43b0x9[_0x43b0x12[_0x5b48[1833]](_0x43b0x2)]= !0};_0x43b0x5[_0x5b48[470]](MedianCellSorter[_0x5b48[202]][_0x5b48[469]]);for(_0x43b0xa= 0;_0x43b0xa< _0x43b0x4;_0x43b0xa++){null== _0x43b0x9[_0x43b0xa]&& (_0x43b0x12= _0x43b0x5[_0x5b48[1115]]()[_0x5b48[246]],_0x43b0x12[_0x5b48[1834]](_0x43b0x2,_0x43b0xa))}};mxMedianHybridCrossingReduction[_0x5b48[202]][_0x5b48[1865]]= function(_0x43b0x2,_0x43b0x3){for(var _0x43b0x4=[],_0x43b0x5=0,_0x43b0x9=0;_0x43b0x9< _0x43b0x2[_0x5b48[67]];_0x43b0x9++){var _0x43b0xa=_0x43b0x2[_0x43b0x9];_0x43b0x4[_0x43b0x5++]= _0x43b0xa[_0x5b48[1833]](_0x43b0x3)};_0x43b0x4[_0x5b48[470]](function(_0x43b0x2,_0x43b0x3){return _0x43b0x2- _0x43b0x3});if(1== _0x43b0x5% 2){return _0x43b0x4[Math[_0x5b48[519]](_0x43b0x5/ 2)]};if(2== _0x43b0x5){return (_0x43b0x4[0]+ _0x43b0x4[1])/ 2};_0x43b0x9= _0x43b0x5/ 2;_0x43b0xa= _0x43b0x4[_0x43b0x9- 1]- _0x43b0x4[0];_0x43b0x5= _0x43b0x4[_0x43b0x5- 1]- _0x43b0x4[_0x43b0x9];return (_0x43b0x4[_0x43b0x9- 1]* _0x43b0x5+ _0x43b0x4[_0x43b0x9]* _0x43b0xa)/ (_0x43b0xa+ _0x43b0x5)};function MedianCellSorter(){}MedianCellSorter[_0x5b48[202]][_0x5b48[1865]]= 0;MedianCellSorter[_0x5b48[202]][_0x5b48[246]]= !1;MedianCellSorter[_0x5b48[202]][_0x5b48[469]]= function(_0x43b0x2,_0x43b0x3){return null!= _0x43b0x2&& null!= _0x43b0x3?_0x43b0x3[_0x5b48[1865]]> _0x43b0x2[_0x5b48[1865]]?-1:_0x43b0x3[_0x5b48[1865]]< _0x43b0x2[_0x5b48[1865]]?1:0:0};function mxMinimumCycleRemover(_0x43b0x2){this[_0x5b48[1759]]= _0x43b0x2}mxMinimumCycleRemover[_0x5b48[202]]= new mxHierarchicalLayoutStage;mxMinimumCycleRemover[_0x5b48[202]][_0x5b48[196]]= mxMinimumCycleRemover;mxMinimumCycleRemover[_0x5b48[202]][_0x5b48[1759]]= null;mxMinimumCycleRemover[_0x5b48[202]][_0x5b48[350]]= function(_0x43b0x2){var _0x43b0x3=this[_0x5b48[1759]][_0x5b48[502]](),_0x43b0x4={},_0x43b0x5=mxUtils[_0x5b48[238]](_0x43b0x3[_0x5b48[1846]],null,!0),_0x43b0x9=null;if(null!= _0x43b0x3[_0x5b48[1845]]){var _0x43b0xa=_0x43b0x3[_0x5b48[1845]],_0x43b0x9=[];for(_0x43b0x2= 0;_0x43b0x2< _0x43b0xa[_0x5b48[67]];_0x43b0x2++){var _0x43b0x12=mxCellPath[_0x5b48[385]](_0x43b0xa[_0x43b0x2]);_0x43b0x9[_0x43b0x2]= _0x43b0x3[_0x5b48[1846]][_0x43b0x12]}};_0x43b0x3[_0x5b48[209]](function(_0x43b0x2,_0x43b0x3,_0x43b0x9,_0x43b0xa,_0x43b0x12){_0x43b0x3[_0x5b48[1720]](_0x43b0x2)&& (_0x43b0x9[_0x5b48[1744]](),mxUtils[_0x5b48[205]](_0x43b0x9,_0x43b0x2[_0x5b48[1838]]),_0x43b0x2[_0x5b48[1837]][_0x5b48[207]](_0x43b0x9),mxUtils[_0x5b48[205]](_0x43b0x9,_0x43b0x3[_0x5b48[1837]]),_0x43b0x3[_0x5b48[1838]][_0x5b48[207]](_0x43b0x9));_0x43b0x2= mxCellPath[_0x5b48[385]](_0x43b0x3[_0x5b48[246]]);_0x43b0x4[_0x43b0x2]= _0x43b0x3;delete _0x43b0x5[_0x43b0x2]},_0x43b0x9,!0,null);_0x43b0x9= null;0< _0x43b0x5[_0x5b48[1866]]&& (_0x43b0x9= mxUtils[_0x5b48[238]](_0x43b0x5,null,!0));_0x43b0x2= mxUtils[_0x5b48[238]](_0x43b0x4,null,!0);_0x43b0x3[_0x5b48[209]](function(_0x43b0x2,_0x43b0x3,_0x43b0x9,_0x43b0xa,_0x43b0x12){_0x43b0x3[_0x5b48[1720]](_0x43b0x2)&& (_0x43b0x9[_0x5b48[1744]](),mxUtils[_0x5b48[205]](_0x43b0x9,_0x43b0x2[_0x5b48[1838]]),_0x43b0x3[_0x5b48[1838]][_0x5b48[207]](_0x43b0x9),_0x43b0x2[_0x5b48[1837]][_0x5b48[207]](_0x43b0x9),mxUtils[_0x5b48[205]](_0x43b0x9,_0x43b0x3[_0x5b48[1837]]));_0x43b0x2= mxCellPath[_0x5b48[385]](_0x43b0x3[_0x5b48[246]]);_0x43b0x4[_0x43b0x2]= _0x43b0x3;delete _0x43b0x5[_0x43b0x2]},_0x43b0x5,!0,_0x43b0x2);_0x43b0xa= this[_0x5b48[1759]][_0x5b48[1703]]();if(null!= _0x43b0x9&& 0< _0x43b0x9[_0x5b48[67]]){_0x43b0x3= _0x43b0x3[_0x5b48[1845]];for(_0x43b0x2= 0;_0x43b0x2< _0x43b0x9[_0x5b48[67]];_0x43b0x2++){_0x43b0x12= _0x43b0x9[_0x43b0x2][_0x5b48[246]],0== _0x43b0xa[_0x5b48[1867]](_0x43b0x12)[_0x5b48[67]]&& _0x43b0x3[_0x5b48[207]](_0x43b0x12)}}};function mxCoordinateAssignment(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa){this[_0x5b48[1759]]= _0x43b0x2;this[_0x5b48[1868]]= _0x43b0x3;this[_0x5b48[1869]]= _0x43b0x4;this[_0x5b48[1870]]= _0x43b0x5;this[_0x5b48[1871]]= _0x43b0x9;this[_0x5b48[1872]]= _0x43b0xa}var mxHierarchicalEdgeStyle={ORTHOGONAL:1,POLYLINE:2,STRAIGHT:3,CURVE:4};mxCoordinateAssignment[_0x5b48[202]]= new mxHierarchicalLayoutStage;mxCoordinateAssignment[_0x5b48[202]][_0x5b48[196]]= mxCoordinateAssignment;mxCoordinateAssignment[_0x5b48[202]][_0x5b48[1759]]= null;mxCoordinateAssignment[_0x5b48[202]][_0x5b48[1868]]= 30;mxCoordinateAssignment[_0x5b48[202]][_0x5b48[1869]]= 100;mxCoordinateAssignment[_0x5b48[202]][_0x5b48[1872]]= 10;mxCoordinateAssignment[_0x5b48[202]][_0x5b48[1795]]= 8;mxCoordinateAssignment[_0x5b48[202]][_0x5b48[1751]]= 5;mxCoordinateAssignment[_0x5b48[202]][_0x5b48[1752]]= 2;mxCoordinateAssignment[_0x5b48[202]][_0x5b48[1753]]= 12;mxCoordinateAssignment[_0x5b48[202]][_0x5b48[1754]]= 4;mxCoordinateAssignment[_0x5b48[202]][_0x5b48[1873]]= null;mxCoordinateAssignment[_0x5b48[202]][_0x5b48[1870]]= mxConstants[_0x5b48[1358]];mxCoordinateAssignment[_0x5b48[202]][_0x5b48[1871]]= null;mxCoordinateAssignment[_0x5b48[202]][_0x5b48[1874]]= null;mxCoordinateAssignment[_0x5b48[202]][_0x5b48[1875]]= null;mxCoordinateAssignment[_0x5b48[202]][_0x5b48[1876]]= null;mxCoordinateAssignment[_0x5b48[202]][_0x5b48[1877]]= null;mxCoordinateAssignment[_0x5b48[202]][_0x5b48[1878]]= null;mxCoordinateAssignment[_0x5b48[202]][_0x5b48[1879]]= null;mxCoordinateAssignment[_0x5b48[202]][_0x5b48[1880]]= null;mxCoordinateAssignment[_0x5b48[202]][_0x5b48[1881]]= null;mxCoordinateAssignment[_0x5b48[202]][_0x5b48[1882]]= !0;mxCoordinateAssignment[_0x5b48[202]][_0x5b48[675]]= mxHierarchicalEdgeStyle[_0x5b48[1883]];mxCoordinateAssignment[_0x5b48[202]][_0x5b48[1884]]= null;mxCoordinateAssignment[_0x5b48[202]][_0x5b48[1885]]= null;mxCoordinateAssignment[_0x5b48[202]][_0x5b48[1745]]= 10;mxCoordinateAssignment[_0x5b48[202]][_0x5b48[1886]]= function(){var _0x43b0x2=this[_0x5b48[1759]][_0x5b48[502]]();mxLog[_0x5b48[539]]();mxLog[_0x5b48[171]](_0x5b48[1887]);for(var _0x43b0x3=0;_0x43b0x3< _0x43b0x2[_0x5b48[1850]][_0x5b48[67]];_0x43b0x3++){mxLog[_0x5b48[53]](_0x5b48[1888],_0x43b0x3,_0x5b48[1889]);for(var _0x43b0x4=_0x43b0x2[_0x5b48[1850]][_0x43b0x3],_0x43b0x5=0;_0x43b0x5< _0x43b0x4[_0x5b48[67]];_0x43b0x5++){mxLog[_0x5b48[53]](_0x43b0x4[_0x43b0x5][_0x5b48[1833]](_0x43b0x3),_0x5b48[316])};mxLog[_0x5b48[171]]()};mxLog[_0x5b48[171]](_0x5b48[1890])};mxCoordinateAssignment[_0x5b48[202]][_0x5b48[350]]= function(_0x43b0x2){this[_0x5b48[1873]]= [];_0x43b0x2= this[_0x5b48[1759]][_0x5b48[502]]();this[_0x5b48[1875]]= 0;this[_0x5b48[1891]](this[_0x5b48[1759]][_0x5b48[1703]](),_0x43b0x2);this[_0x5b48[1882]]&& this[_0x5b48[1892]](_0x43b0x2);var _0x43b0x3=1E8;if(this[_0x5b48[1882]]){for(var _0x43b0x4=0;_0x43b0x4< this[_0x5b48[1795]];_0x43b0x4++){0!= _0x43b0x4&& (this[_0x5b48[1893]](_0x43b0x4,_0x43b0x2),this[_0x5b48[1892]](_0x43b0x2));if(this[_0x5b48[1875]]< _0x43b0x3){for(var _0x43b0x5=0;_0x43b0x5< _0x43b0x2[_0x5b48[1850]][_0x5b48[67]];_0x43b0x5++){for(var _0x43b0x9=_0x43b0x2[_0x5b48[1850]][_0x43b0x5],_0x43b0xa=0;_0x43b0xa< _0x43b0x9[_0x5b48[67]];_0x43b0xa++){var _0x43b0x12=_0x43b0x9[_0x43b0xa];_0x43b0x12[_0x5b48[1835]](_0x43b0x5,_0x43b0x12[_0x5b48[1833]](_0x43b0x5))}};_0x43b0x3= this[_0x5b48[1875]]}else {for(_0x43b0x5= 0;_0x43b0x5< _0x43b0x2[_0x5b48[1850]][_0x5b48[67]];_0x43b0x5++){_0x43b0x9= _0x43b0x2[_0x5b48[1850]][_0x43b0x5];for(_0x43b0xa= 0;_0x43b0xa< _0x43b0x9[_0x5b48[67]];_0x43b0xa++){_0x43b0x12= _0x43b0x9[_0x43b0xa],_0x43b0x12[_0x5b48[1834]](_0x43b0x5,_0x43b0x12[_0x5b48[730]](_0x43b0x5))}}};this[_0x5b48[1894]](this[_0x5b48[1759]][_0x5b48[1703]](),_0x43b0x2);this[_0x5b48[1875]]= 0}};this[_0x5b48[1895]](this[_0x5b48[1759]][_0x5b48[1703]](),_0x43b0x2)};mxCoordinateAssignment[_0x5b48[202]][_0x5b48[1892]]= function(_0x43b0x2){for(var _0x43b0x3=[],_0x43b0x4=[],_0x43b0x5=[],_0x43b0x9=0;_0x43b0x9<= _0x43b0x2[_0x5b48[1827]];_0x43b0x9++){_0x43b0x5[_0x43b0x9]= _0x43b0x2[_0x5b48[1850]][_0x43b0x9];for(var _0x43b0xa=0;_0x43b0xa< _0x43b0x5[_0x43b0x9][_0x5b48[67]];_0x43b0xa++){var _0x43b0x12=_0x43b0x5[_0x43b0x9][_0x43b0xa],_0x43b0x13= new WeightedCellSorter(_0x43b0x12,_0x43b0x9);_0x43b0x13[_0x5b48[1785]]= _0x43b0xa;_0x43b0x13[_0x5b48[1784]]= !0;_0x43b0x3[_0x5b48[207]](_0x43b0x13);_0x43b0x12= mxCellPath[_0x5b48[385]](_0x43b0x12[_0x5b48[1841]]());_0x43b0x4[_0x43b0x12]= _0x43b0x13}};_0x43b0x2= 10* _0x43b0x3[_0x5b48[67]];for(_0x43b0xa= 0;0< _0x43b0x3[_0x5b48[67]]&& _0x43b0xa<= _0x43b0x2;){var _0x43b0x13=_0x43b0x3[_0x5b48[1115]](),_0x43b0x9=_0x43b0x13[_0x5b48[246]],_0x43b0x14=_0x43b0x13[_0x5b48[1782]],_0x43b0x15=parseInt(_0x43b0x13[_0x5b48[1785]]),_0x43b0x12=_0x43b0x9[_0x5b48[1831]](_0x43b0x14),_0x43b0x16=_0x43b0x9[_0x5b48[1832]](_0x43b0x14),_0x43b0x17=_0x43b0x12[_0x5b48[67]],_0x43b0x18=_0x43b0x16[_0x5b48[67]],_0x43b0x19=this[_0x5b48[1896]](_0x43b0x12,_0x43b0x14+ 1),_0x43b0x1a=this[_0x5b48[1896]](_0x43b0x16,_0x43b0x14- 1),_0x43b0x1b=_0x43b0x17+ _0x43b0x18,_0x43b0x1c=_0x43b0x9[_0x5b48[1833]](_0x43b0x14),_0x43b0x1d=_0x43b0x1c;0< _0x43b0x1b&& (_0x43b0x1d= (_0x43b0x19* _0x43b0x17+ _0x43b0x1a* _0x43b0x18)/ _0x43b0x1b);_0x43b0x17= !1;_0x43b0x1d< _0x43b0x1c- 1?0== _0x43b0x15?(_0x43b0x9[_0x5b48[1834]](_0x43b0x14,_0x43b0x1d),_0x43b0x17= !0):(_0x43b0x15= _0x43b0x5[_0x43b0x14][_0x43b0x15- 1],_0x43b0x1c= _0x43b0x15[_0x5b48[1833]](_0x43b0x14),_0x43b0x1c= _0x43b0x1c+ _0x43b0x15[_0x5b48[117]]/ 2+ this[_0x5b48[1868]]+ _0x43b0x9[_0x5b48[117]]/ 2,_0x43b0x1c< _0x43b0x1d?(_0x43b0x9[_0x5b48[1834]](_0x43b0x14,_0x43b0x1d),_0x43b0x17= !0):_0x43b0x1c< _0x43b0x9[_0x5b48[1833]](_0x43b0x14)- 1&& (_0x43b0x9[_0x5b48[1834]](_0x43b0x14,_0x43b0x1c),_0x43b0x17= !0)):_0x43b0x1d> _0x43b0x1c+ 1&& (_0x43b0x15== _0x43b0x5[_0x43b0x14][_0x5b48[67]]- 1?(_0x43b0x9[_0x5b48[1834]](_0x43b0x14,_0x43b0x1d),_0x43b0x17= !0):(_0x43b0x15= _0x43b0x5[_0x43b0x14][_0x43b0x15+ 1],_0x43b0x1c= _0x43b0x15[_0x5b48[1833]](_0x43b0x14),_0x43b0x1c= _0x43b0x1c- _0x43b0x15[_0x5b48[117]]/ 2- this[_0x5b48[1868]]- _0x43b0x9[_0x5b48[117]]/ 2,_0x43b0x1c> _0x43b0x1d?(_0x43b0x9[_0x5b48[1834]](_0x43b0x14,_0x43b0x1d),_0x43b0x17= !0):_0x43b0x1c> _0x43b0x9[_0x5b48[1833]](_0x43b0x14)+ 1&& (_0x43b0x9[_0x5b48[1834]](_0x43b0x14,_0x43b0x1c),_0x43b0x17= !0)));if(_0x43b0x17){for(_0x43b0x9= 0;_0x43b0x9< _0x43b0x12[_0x5b48[67]];_0x43b0x9++){_0x43b0x14= _0x43b0x12[_0x43b0x9],_0x43b0x14= mxCellPath[_0x5b48[385]](_0x43b0x14[_0x5b48[1841]]()),_0x43b0x14= _0x43b0x4[_0x43b0x14],null!= _0x43b0x14&& !1== _0x43b0x14[_0x5b48[1784]]&& (_0x43b0x14[_0x5b48[1784]]= !0,_0x43b0x3[_0x5b48[207]](_0x43b0x14))};for(_0x43b0x9= 0;_0x43b0x9< _0x43b0x16[_0x5b48[67]];_0x43b0x9++){_0x43b0x14= _0x43b0x16[_0x43b0x9],_0x43b0x14= mxCellPath[_0x5b48[385]](_0x43b0x14[_0x5b48[1841]]()),_0x43b0x14= _0x43b0x4[_0x43b0x14],null!= _0x43b0x14&& !1== _0x43b0x14[_0x5b48[1784]]&& (_0x43b0x14[_0x5b48[1784]]= !0,_0x43b0x3[_0x5b48[207]](_0x43b0x14))}};_0x43b0x13[_0x5b48[1784]]= !1;_0x43b0xa++}};mxCoordinateAssignment[_0x5b48[202]][_0x5b48[1893]]= function(_0x43b0x2,_0x43b0x3){if(0== _0x43b0x2% 2){for(var _0x43b0x4=_0x43b0x3[_0x5b48[1827]];0< _0x43b0x4;_0x43b0x4--){this[_0x5b48[1897]](_0x43b0x4- 1,_0x43b0x3,_0x43b0x4)}}else {for(_0x43b0x4= 0;_0x43b0x4< _0x43b0x3[_0x5b48[1827]]- 1;_0x43b0x4++){this[_0x5b48[1897]](_0x43b0x4+ 1,_0x43b0x3,_0x43b0x4)}}};mxCoordinateAssignment[_0x5b48[202]][_0x5b48[1897]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){_0x43b0x3= _0x43b0x3[_0x5b48[1850]][_0x43b0x2];for(var _0x43b0x5=[],_0x43b0x9=[],_0x43b0xa=0;_0x43b0xa< _0x43b0x3[_0x5b48[67]];_0x43b0xa++){var _0x43b0x12=_0x43b0x3[_0x43b0xa];_0x43b0x5[_0x43b0xa]= new WeightedCellSorter;_0x43b0x5[_0x43b0xa][_0x5b48[246]]= _0x43b0x12;_0x43b0x5[_0x43b0xa][_0x5b48[1785]]= _0x43b0xa;var _0x43b0x13=mxCellPath[_0x5b48[385]](_0x43b0x12[_0x5b48[1841]]());_0x43b0x9[_0x43b0x13]= _0x43b0x5[_0x43b0xa];var _0x43b0x14=null,_0x43b0x14=_0x43b0x4< _0x43b0x2?_0x43b0x12[_0x5b48[1832]](_0x43b0x2):_0x43b0x12[_0x5b48[1831]](_0x43b0x2);_0x43b0x5[_0x43b0xa][_0x5b48[1782]]= this[_0x5b48[1898]](_0x43b0x12,_0x43b0x14)};_0x43b0x5[_0x5b48[470]](WeightedCellSorter[_0x5b48[202]][_0x5b48[469]]);for(_0x43b0xa= 0;_0x43b0xa< _0x43b0x5[_0x5b48[67]];_0x43b0xa++){_0x43b0x13= 0;_0x43b0x12= _0x43b0x5[_0x43b0xa][_0x5b48[246]];_0x43b0x13= 0;_0x43b0x14= _0x43b0x4< _0x43b0x2?_0x43b0x12[_0x5b48[1832]](_0x43b0x2)[_0x5b48[1853]]():_0x43b0x12[_0x5b48[1831]](_0x43b0x2)[_0x5b48[1853]]();null!= _0x43b0x14&& (_0x43b0x13= _0x43b0x14[_0x5b48[67]],_0x43b0x13= 0< _0x43b0x13?this[_0x5b48[1896]](_0x43b0x14,_0x43b0x4):_0x43b0x12[_0x5b48[1833]](_0x43b0x2));for(var _0x43b0x15=0,_0x43b0x14=-1E8,_0x43b0x16=_0x43b0x5[_0x43b0xa][_0x5b48[1785]]- 1;0<= _0x43b0x16;){var _0x43b0x17=mxCellPath[_0x5b48[385]](_0x43b0x3[_0x43b0x16][_0x5b48[1841]]()),_0x43b0x17=_0x43b0x9[_0x43b0x17];if(null!= _0x43b0x17){var _0x43b0x18=_0x43b0x17[_0x5b48[246]];_0x43b0x17[_0x5b48[1784]]?(_0x43b0x14= _0x43b0x18[_0x5b48[1833]](_0x43b0x2)+ _0x43b0x18[_0x5b48[117]]/ 2+ this[_0x5b48[1868]]+ _0x43b0x15+ _0x43b0x12[_0x5b48[117]]/ 2,_0x43b0x16= -1):(_0x43b0x15+= _0x43b0x18[_0x5b48[117]]+ this[_0x5b48[1868]],_0x43b0x16--)}};_0x43b0x15= 0;_0x43b0x18= 1E8;for(_0x43b0x16= _0x43b0x5[_0x43b0xa][_0x5b48[1785]]+ 1;_0x43b0x16< _0x43b0x5[_0x5b48[67]];){if(_0x43b0x17= mxCellPath[_0x5b48[385]](_0x43b0x3[_0x43b0x16][_0x5b48[1841]]()),_0x43b0x17= _0x43b0x9[_0x43b0x17],null!= _0x43b0x17){var _0x43b0x19=_0x43b0x17[_0x5b48[246]];_0x43b0x17[_0x5b48[1784]]?(_0x43b0x18= _0x43b0x19[_0x5b48[1833]](_0x43b0x2)- _0x43b0x19[_0x5b48[117]]/ 2- this[_0x5b48[1868]]- _0x43b0x15- _0x43b0x12[_0x5b48[117]]/ 2,_0x43b0x16= _0x43b0x5[_0x5b48[67]]):(_0x43b0x15+= _0x43b0x19[_0x5b48[117]]+ this[_0x5b48[1868]],_0x43b0x16++)}};_0x43b0x13>= _0x43b0x14&& _0x43b0x13<= _0x43b0x18?_0x43b0x12[_0x5b48[1834]](_0x43b0x2,_0x43b0x13):_0x43b0x13< _0x43b0x14?(_0x43b0x12[_0x5b48[1834]](_0x43b0x2,_0x43b0x14),this[_0x5b48[1875]]+= _0x43b0x14- _0x43b0x13):_0x43b0x13> _0x43b0x18&& (_0x43b0x12[_0x5b48[1834]](_0x43b0x2,_0x43b0x18),this[_0x5b48[1875]]+= _0x43b0x13- _0x43b0x18);_0x43b0x5[_0x43b0xa][_0x5b48[1784]]= !0}};mxCoordinateAssignment[_0x5b48[202]][_0x5b48[1898]]= function(_0x43b0x2,_0x43b0x3){for(var _0x43b0x4=0,_0x43b0x5=0;_0x43b0x5< _0x43b0x3[_0x5b48[67]];_0x43b0x5++){var _0x43b0x9=_0x43b0x3[_0x43b0x5];_0x43b0x2[_0x5b48[1193]]()&& _0x43b0x9[_0x5b48[1193]]()?_0x43b0x4++:_0x43b0x4= _0x43b0x2[_0x5b48[250]]()&& _0x43b0x9[_0x5b48[250]]()?_0x43b0x4+ 8:_0x43b0x4+ 2};return _0x43b0x4};mxCoordinateAssignment[_0x5b48[202]][_0x5b48[1896]]= function(_0x43b0x2,_0x43b0x3){if(0== _0x43b0x2[_0x5b48[67]]){return 0};for(var _0x43b0x4=[],_0x43b0x5=0;_0x43b0x5< _0x43b0x2[_0x5b48[67]];_0x43b0x5++){_0x43b0x4[_0x43b0x5]= _0x43b0x2[_0x43b0x5][_0x5b48[1833]](_0x43b0x3)};_0x43b0x4[_0x5b48[470]](function(_0x43b0x2,_0x43b0x3){return _0x43b0x2- _0x43b0x3});if(1== _0x43b0x2[_0x5b48[67]]% 2){return _0x43b0x4[Math[_0x5b48[519]](_0x43b0x2[_0x5b48[67]]/ 2)]};_0x43b0x5= _0x43b0x2[_0x5b48[67]]/ 2;return (_0x43b0x4[_0x43b0x5- 1]+ _0x43b0x4[_0x43b0x5])/ 2};mxCoordinateAssignment[_0x5b48[202]][_0x5b48[1891]]= function(_0x43b0x2,_0x43b0x3){this[_0x5b48[1899]](_0x43b0x2,_0x43b0x3);for(var _0x43b0x4=this[_0x5b48[1876]];0<= _0x43b0x4;_0x43b0x4--){_0x43b0x4< _0x43b0x3[_0x5b48[1827]]&& this[_0x5b48[1900]](_0x43b0x4,_0x43b0x2,_0x43b0x3)};for(_0x43b0x4= this[_0x5b48[1876]]+ 1;_0x43b0x4<= _0x43b0x3[_0x5b48[1827]];_0x43b0x4++){0< _0x43b0x4&& this[_0x5b48[1900]](_0x43b0x4,_0x43b0x2,_0x43b0x3)}};mxCoordinateAssignment[_0x5b48[202]][_0x5b48[1900]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){_0x43b0x3= _0x43b0x4[_0x5b48[1850]][_0x43b0x2];_0x43b0x4= 0;for(var _0x43b0x5=this[_0x5b48[1871]]+ (this[_0x5b48[1879]]- this[_0x5b48[1880]][_0x43b0x2])/ 2,_0x43b0x9=!1,_0x43b0xa=0;_0x43b0xa< _0x43b0x3[_0x5b48[67]];_0x43b0xa++){var _0x43b0x12=_0x43b0x3[_0x43b0xa];if(_0x43b0x12[_0x5b48[1193]]()){var _0x43b0x13=this[_0x5b48[1759]][_0x5b48[1726]](_0x43b0x12[_0x5b48[246]]);null!= _0x43b0x13?this[_0x5b48[1870]]== mxConstants[_0x5b48[1358]]|| this[_0x5b48[1870]]== mxConstants[_0x5b48[1354]]?(_0x43b0x12[_0x5b48[117]]= _0x43b0x13[_0x5b48[117]],_0x43b0x12[_0x5b48[119]]= _0x43b0x13[_0x5b48[119]]):(_0x43b0x12[_0x5b48[117]]= _0x43b0x13[_0x5b48[119]],_0x43b0x12[_0x5b48[119]]= _0x43b0x13[_0x5b48[117]]):_0x43b0x9= !0;_0x43b0x4= Math[_0x5b48[160]](_0x43b0x4,_0x43b0x12[_0x5b48[119]])}else {_0x43b0x12[_0x5b48[250]]()&& (_0x43b0x13= 1,null!= _0x43b0x12[_0x5b48[1842]]?_0x43b0x13= _0x43b0x12[_0x5b48[1842]][_0x5b48[67]]:mxLog[_0x5b48[283]](_0x5b48[1901]),_0x43b0x12[_0x5b48[117]]= (_0x43b0x13- 1)* this[_0x5b48[1872]])};_0x43b0x5+= _0x43b0x12[_0x5b48[117]]/ 2;_0x43b0x12[_0x5b48[1835]](_0x43b0x2,_0x43b0x5);_0x43b0x12[_0x5b48[1834]](_0x43b0x2,_0x43b0x5);_0x43b0x5+= _0x43b0x12[_0x5b48[117]]/ 2;_0x43b0x5+= this[_0x5b48[1868]]};!0== _0x43b0x9 && mxLog[_0x5b48[283]](_0x5b48[1902])};mxCoordinateAssignment[_0x5b48[202]][_0x5b48[1899]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=-this[_0x5b48[1869]],_0x43b0x5=0;this[_0x5b48[1880]]= [];this[_0x5b48[1881]]= [];for(var _0x43b0x9=_0x43b0x3[_0x5b48[1827]];0<= _0x43b0x9;_0x43b0x9--){for(var _0x43b0xa=0,_0x43b0x12=_0x43b0x3[_0x5b48[1850]][_0x43b0x9],_0x43b0x13=this[_0x5b48[1871]],_0x43b0x14=!1,_0x43b0x15=0;_0x43b0x15< _0x43b0x12[_0x5b48[67]];_0x43b0x15++){var _0x43b0x16=_0x43b0x12[_0x43b0x15];if(_0x43b0x16[_0x5b48[1193]]()){var _0x43b0x17=this[_0x5b48[1759]][_0x5b48[1726]](_0x43b0x16[_0x5b48[246]]);null!= _0x43b0x17?this[_0x5b48[1870]]== mxConstants[_0x5b48[1358]]|| this[_0x5b48[1870]]== mxConstants[_0x5b48[1354]]?(_0x43b0x16[_0x5b48[117]]= _0x43b0x17[_0x5b48[117]],_0x43b0x16[_0x5b48[119]]= _0x43b0x17[_0x5b48[119]]):(_0x43b0x16[_0x5b48[117]]= _0x43b0x17[_0x5b48[119]],_0x43b0x16[_0x5b48[119]]= _0x43b0x17[_0x5b48[117]]):_0x43b0x14= !0;_0x43b0xa= Math[_0x5b48[160]](_0x43b0xa,_0x43b0x16[_0x5b48[119]])}else {_0x43b0x16[_0x5b48[250]]()&& (_0x43b0x17= 1,null!= _0x43b0x16[_0x5b48[1842]]?_0x43b0x17= _0x43b0x16[_0x5b48[1842]][_0x5b48[67]]:mxLog[_0x5b48[283]](_0x5b48[1901]),_0x43b0x16[_0x5b48[117]]= (_0x43b0x17- 1)* this[_0x5b48[1872]])};_0x43b0x13+= _0x43b0x16[_0x5b48[117]]/ 2;_0x43b0x16[_0x5b48[1835]](_0x43b0x9,_0x43b0x13);_0x43b0x16[_0x5b48[1834]](_0x43b0x9,_0x43b0x13);_0x43b0x13+= _0x43b0x16[_0x5b48[117]]/ 2;_0x43b0x13+= this[_0x5b48[1868]];_0x43b0x13> this[_0x5b48[1879]]&& (this[_0x5b48[1879]]= _0x43b0x13,this[_0x5b48[1876]]= _0x43b0x9);this[_0x5b48[1880]][_0x43b0x9]= _0x43b0x13};!0== _0x43b0x14 && mxLog[_0x5b48[283]](_0x5b48[1902]);this[_0x5b48[1881]][_0x43b0x9]= _0x43b0x4;_0x43b0x13= _0x43b0xa/ 2+ _0x43b0x5/ 2+ this[_0x5b48[1869]];_0x43b0x5= _0x43b0xa;_0x43b0x4= this[_0x5b48[1870]]== mxConstants[_0x5b48[1358]]|| this[_0x5b48[1870]]== mxConstants[_0x5b48[1359]]?_0x43b0x4+ _0x43b0x13:_0x43b0x4- _0x43b0x13;for(_0x43b0x15= 0;_0x43b0x15< _0x43b0x12[_0x5b48[67]];_0x43b0x15++){_0x43b0x12[_0x43b0x15][_0x5b48[1836]](_0x43b0x9,_0x43b0x4)}}};mxCoordinateAssignment[_0x5b48[202]][_0x5b48[1894]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=_0x43b0x3[_0x5b48[1847]],_0x43b0x5;for(_0x43b0x5 in _0x43b0x4){var _0x43b0x9=_0x43b0x4[_0x43b0x5];if(!(1> _0x43b0x9[_0x5b48[1827]]- _0x43b0x9[_0x5b48[1828]]- 1)){for(var _0x43b0xa=_0x43b0x9[_0x5b48[1833]](_0x43b0x9[_0x5b48[1828]]+ 1),_0x43b0x12=!0,_0x43b0x13=0,_0x43b0x14=_0x43b0x9[_0x5b48[1828]]+ 2;_0x43b0x14< _0x43b0x9[_0x5b48[1827]];_0x43b0x14++){var _0x43b0x15=_0x43b0x9[_0x5b48[1833]](_0x43b0x14);_0x43b0xa!= _0x43b0x15?(_0x43b0x12= !1,_0x43b0xa= _0x43b0x15):_0x43b0x13++};if(!_0x43b0x12){for(var _0x43b0x12=_0x43b0xa= 0,_0x43b0x15=[],_0x43b0x16=[],_0x43b0x17=_0x43b0x9[_0x5b48[1833]](_0x43b0x9[_0x5b48[1828]]+ 1),_0x43b0x14=_0x43b0x9[_0x5b48[1828]]+ 1;_0x43b0x14< _0x43b0x9[_0x5b48[1827]]- 1;_0x43b0x14++){var _0x43b0x18=_0x43b0x9[_0x5b48[730]](_0x43b0x14+ 1);_0x43b0x17== _0x43b0x18?(_0x43b0x15[_0x43b0x14- _0x43b0x9[_0x5b48[1828]]- 1]= _0x43b0x17,_0x43b0xa++):this[_0x5b48[1903]](_0x43b0x3,_0x43b0x9,_0x43b0x14+ 1,_0x43b0x17)?(_0x43b0x15[_0x43b0x14- _0x43b0x9[_0x5b48[1828]]- 1]= _0x43b0x17,_0x43b0xa++):_0x43b0x17= _0x43b0x15[_0x43b0x14- _0x43b0x9[_0x5b48[1828]]- 1]= _0x43b0x18};_0x43b0x17= _0x43b0x9[_0x5b48[730]](_0x43b0x14);for(_0x43b0x14= _0x43b0x9[_0x5b48[1827]]- 1;_0x43b0x14> _0x43b0x9[_0x5b48[1828]]+ 1;_0x43b0x14--){_0x43b0x18= _0x43b0x9[_0x5b48[730]](_0x43b0x14- 1),_0x43b0x17== _0x43b0x18?(_0x43b0x16[_0x43b0x14- _0x43b0x9[_0x5b48[1828]]- 2]= _0x43b0x17,_0x43b0x12++):this[_0x5b48[1903]](_0x43b0x3,_0x43b0x9,_0x43b0x14- 1,_0x43b0x17)?(_0x43b0x16[_0x43b0x14- _0x43b0x9[_0x5b48[1828]]- 2]= _0x43b0x17,_0x43b0x12++):(_0x43b0x16[_0x43b0x14- _0x43b0x9[_0x5b48[1828]]- 2]= _0x43b0x9[_0x5b48[730]](_0x43b0x14- 1),_0x43b0x17= _0x43b0x18)};if(_0x43b0x12> _0x43b0x13|| _0x43b0xa> _0x43b0x13){if(_0x43b0x12>= _0x43b0xa){for(_0x43b0x14= _0x43b0x9[_0x5b48[1827]]- 2;_0x43b0x14> _0x43b0x9[_0x5b48[1828]];_0x43b0x14--){_0x43b0x9[_0x5b48[1835]](_0x43b0x14,_0x43b0x16[_0x43b0x14- _0x43b0x9[_0x5b48[1828]]- 1])}}else {if(_0x43b0xa> _0x43b0x12){for(_0x43b0x14= _0x43b0x9[_0x5b48[1828]]+ 2;_0x43b0x14< _0x43b0x9[_0x5b48[1827]];_0x43b0x14++){_0x43b0x9[_0x5b48[1835]](_0x43b0x14,_0x43b0x15[_0x43b0x14- _0x43b0x9[_0x5b48[1828]]- 2])}}}}}}}};mxCoordinateAssignment[_0x5b48[202]][_0x5b48[1903]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){_0x43b0x2= _0x43b0x2[_0x5b48[1850]][_0x43b0x4];for(var _0x43b0x9=-1,_0x43b0xa=0;_0x43b0xa< _0x43b0x2[_0x5b48[67]];_0x43b0xa++){if(_0x43b0x3== _0x43b0x2[_0x43b0xa]){_0x43b0x9= _0x43b0xa;break}};if(0> _0x43b0x9){return !1};_0x43b0xa= _0x43b0x3[_0x5b48[1833]](_0x43b0x4);if(_0x43b0x5< _0x43b0xa){if(0== _0x43b0x9){return !0};_0x43b0x2= _0x43b0x2[_0x43b0x9- 1];_0x43b0x4= _0x43b0x2[_0x5b48[1833]](_0x43b0x4);_0x43b0x4= _0x43b0x4+ _0x43b0x2[_0x5b48[117]]/ 2+ this[_0x5b48[1868]]+ _0x43b0x3[_0x5b48[117]]/ 2;if(!(_0x43b0x4<= _0x43b0x5)){return !1}}else {if(_0x43b0x5> _0x43b0xa){if(_0x43b0x9== _0x43b0x2[_0x5b48[67]]- 1){return !0};_0x43b0x2= _0x43b0x2[_0x43b0x9+ 1];_0x43b0x4= _0x43b0x2[_0x5b48[1833]](_0x43b0x4);_0x43b0x4= _0x43b0x4- _0x43b0x2[_0x5b48[117]]/ 2- this[_0x5b48[1868]]- _0x43b0x3[_0x5b48[117]]/ 2;if(!(_0x43b0x4>= _0x43b0x5)){return !1}}};return !0};mxCoordinateAssignment[_0x5b48[202]][_0x5b48[1895]]= function(_0x43b0x2,_0x43b0x3){this[_0x5b48[1877]]= [];this[_0x5b48[1878]]= [];for(var _0x43b0x4=0;_0x43b0x4< _0x43b0x3[_0x5b48[1850]][_0x5b48[67]];_0x43b0x4++){this[_0x5b48[1877]][_0x43b0x4]= Number[_0x5b48[1904]],this[_0x5b48[1878]][_0x43b0x4]= 0};_0x43b0x4= null;this[_0x5b48[1759]][_0x5b48[1735]]&& (_0x43b0x4= {});var _0x43b0x5=_0x43b0x3[_0x5b48[1847]],_0x43b0x9=_0x43b0x3[_0x5b48[1846]],_0x43b0xa;for(_0x43b0xa in _0x43b0x9){var _0x43b0x12=_0x43b0x9[_0x43b0xa];this[_0x5b48[1725]](_0x43b0x12);if(this[_0x5b48[1759]][_0x5b48[1735]]){var _0x43b0x12=_0x43b0x2[_0x5b48[251]][_0x5b48[1197]](_0x43b0x12[_0x5b48[246]]),_0x43b0x13=mxCellPath[_0x5b48[385]](_0x43b0x12);null== _0x43b0x4[_0x43b0x13]&& (_0x43b0x4[_0x43b0x13]= _0x43b0x12)}};this[_0x5b48[1759]][_0x5b48[1735]]&& null!= _0x43b0x4&& this[_0x5b48[1763]](_0x43b0x4);(this[_0x5b48[675]]== mxHierarchicalEdgeStyle[_0x5b48[1905]]|| this[_0x5b48[675]]== mxHierarchicalEdgeStyle[_0x5b48[1883]]|| this[_0x5b48[675]]== mxHierarchicalEdgeStyle[_0x5b48[1906]])&& this[_0x5b48[1764]](_0x43b0x3);for(_0x43b0xa in _0x43b0x5){this[_0x5b48[1907]](_0x43b0x5[_0x43b0xa])}};mxCoordinateAssignment[_0x5b48[202]][_0x5b48[1763]]= function(_0x43b0x2){var _0x43b0x3=[],_0x43b0x4;for(_0x43b0x4 in _0x43b0x2){_0x43b0x3[_0x5b48[207]](_0x43b0x2[_0x43b0x4])};this[_0x5b48[1759]][_0x5b48[1727]](mxUtils[_0x5b48[1779]](_0x43b0x3,!0),this[_0x5b48[1745]])};mxCoordinateAssignment[_0x5b48[202]][_0x5b48[1764]]= function(_0x43b0x2){for(var _0x43b0x3=0;_0x43b0x3< _0x43b0x2[_0x5b48[1850]][_0x5b48[67]];_0x43b0x3++){for(var _0x43b0x4=_0x43b0x2[_0x5b48[1850]][_0x43b0x3],_0x43b0x5=0;_0x43b0x5< _0x43b0x4[_0x5b48[67]];_0x43b0x5++){var _0x43b0x9=_0x43b0x4[_0x43b0x5];if(_0x43b0x9[_0x5b48[1193]]()){for(var _0x43b0xa=_0x43b0x9[_0x5b48[1832]](_0x43b0x3),_0x43b0x12=_0x43b0x3- 1,_0x43b0x13=0;2> _0x43b0x13;_0x43b0x13++){if(-1< _0x43b0x12 && _0x43b0x12< _0x43b0x2[_0x5b48[1850]][_0x5b48[67]] && null!= _0x43b0xa && 0< _0x43b0xa[_0x5b48[67]]){for(var _0x43b0x14=[],_0x43b0x15=0;_0x43b0x15< _0x43b0xa[_0x5b48[67]];_0x43b0x15++){var _0x43b0x16= new WeightedCellSorter(_0x43b0xa[_0x43b0x15],_0x43b0xa[_0x43b0x15][_0x5b48[730]](_0x43b0x12));_0x43b0x14[_0x5b48[207]](_0x43b0x16)};_0x43b0x14[_0x5b48[470]](WeightedCellSorter[_0x5b48[202]][_0x5b48[469]]);for(var _0x43b0x16=_0x43b0x9[_0x5b48[235]][0]- _0x43b0x9[_0x5b48[117]]/ 2,_0x43b0x17=_0x43b0x16+ _0x43b0x9[_0x5b48[117]],_0x43b0x18=_0x43b0xa= 0,_0x43b0x12=[],_0x43b0x15=0;_0x43b0x15< _0x43b0x14[_0x5b48[67]];_0x43b0x15++){var _0x43b0x19=_0x43b0x14[_0x43b0x15][_0x5b48[246]],_0x43b0x1a;if(_0x43b0x19[_0x5b48[1193]]()){_0x43b0x1a= 0== _0x43b0x13?_0x43b0x9[_0x5b48[1838]]:_0x43b0x9[_0x5b48[1837]];for(var _0x43b0x1b=0;_0x43b0x1b< _0x43b0x1a[_0x5b48[67]];_0x43b0x1b++){if(_0x43b0x1a[_0x43b0x1b][_0x5b48[1097]]== _0x43b0x19|| _0x43b0x1a[_0x43b0x1b][_0x5b48[772]]== _0x43b0x19){_0x43b0xa+= _0x43b0x1a[_0x43b0x1b][_0x5b48[1842]][_0x5b48[67]],_0x43b0x18++,_0x43b0x12[_0x5b48[207]](_0x43b0x1a[_0x43b0x1b])}}}else {_0x43b0xa+= _0x43b0x19[_0x5b48[1842]][_0x5b48[67]],_0x43b0x18++,_0x43b0x12[_0x5b48[207]](_0x43b0x19)}};_0x43b0x9[_0x5b48[117]]> (_0x43b0xa+ 1)* this[_0x5b48[1751]]+ 2* this[_0x5b48[1751]]&& (_0x43b0x16+= this[_0x5b48[1751]],_0x43b0x17-= this[_0x5b48[1751]]);_0x43b0x14= (_0x43b0x17- _0x43b0x16)/ _0x43b0xa;_0x43b0x16+= _0x43b0x14/ 2;_0x43b0x17= this[_0x5b48[1753]]- this[_0x5b48[1752]];for(_0x43b0x15= _0x43b0x18= 0;_0x43b0x15< _0x43b0x12[_0x5b48[67]];_0x43b0x15++){_0x43b0x19= _0x43b0x12[_0x43b0x15][_0x5b48[1842]][_0x5b48[67]];_0x43b0x1b= mxCellPath[_0x5b48[385]](_0x43b0x12[_0x43b0x15][_0x5b48[1842]][0]);_0x43b0x1a= this[_0x5b48[1873]][_0x43b0x1b];null== _0x43b0x1a&& (_0x43b0x1a= [],this[_0x5b48[1873]][_0x43b0x1b]= _0x43b0x1a);_0x43b0x15< _0x43b0xa/ 2?_0x43b0x17+= this[_0x5b48[1752]]:_0x43b0x15> _0x43b0xa/ 2&& (_0x43b0x17-= this[_0x5b48[1752]]);for(_0x43b0x1b= 0;_0x43b0x1b< _0x43b0x19;_0x43b0x1b++){_0x43b0x1a[4* _0x43b0x1b+ 2* _0x43b0x13]= _0x43b0x16,_0x43b0x16+= _0x43b0x14,_0x43b0x1a[4* _0x43b0x1b+ 2* _0x43b0x13+ 1]= _0x43b0x17};_0x43b0x18= Math[_0x5b48[160]](_0x43b0x18,_0x43b0x17)}};_0x43b0xa= _0x43b0x9[_0x5b48[1831]](_0x43b0x3);_0x43b0x12= _0x43b0x3+ 1}}}}};mxCoordinateAssignment[_0x5b48[202]][_0x5b48[1907]]= function(_0x43b0x2){var _0x43b0x3=0;if(101207!= _0x43b0x2[_0x5b48[1826]][0]){var _0x43b0x4=_0x43b0x2[_0x5b48[1827]],_0x43b0x5=_0x43b0x2[_0x5b48[1828]];_0x43b0x4== _0x43b0x5&& (_0x43b0x4= _0x43b0x2[_0x5b48[1097]][_0x5b48[1827]],_0x43b0x5= _0x43b0x2[_0x5b48[772]][_0x5b48[1828]]);for(var _0x43b0x9=0,_0x43b0xa=mxCellPath[_0x5b48[385]](_0x43b0x2[_0x5b48[1842]][0]),_0x43b0xa=this[_0x5b48[1873]][_0x43b0xa],_0x43b0x12=_0x43b0x2[_0x5b48[1843]]?_0x43b0x2[_0x5b48[772]][_0x5b48[246]]:_0x43b0x2[_0x5b48[1097]][_0x5b48[246]],_0x43b0x13=this[_0x5b48[1759]][_0x5b48[1179]],_0x43b0x14=0;_0x43b0x14< _0x43b0x2[_0x5b48[1842]][_0x5b48[67]];_0x43b0x14++){var _0x43b0x15=_0x43b0x2[_0x5b48[1842]][_0x43b0x14],_0x43b0x16=this[_0x5b48[1759]][_0x5b48[1710]](_0x43b0x15,!0),_0x43b0x17=_0x43b0x13[_0x5b48[251]][_0x5b48[1709]](_0x43b0x15,!0),_0x43b0x18=[],_0x43b0x19=_0x43b0x2[_0x5b48[1843]];_0x43b0x16!= _0x43b0x12&& (_0x43b0x19= !_0x43b0x19);if(null!= _0x43b0xa){var _0x43b0x1a=_0x43b0x19?2:0,_0x43b0x1b=_0x43b0x19?this[_0x5b48[1877]][_0x43b0x5]:this[_0x5b48[1878]][_0x43b0x4],_0x43b0x1c=_0x43b0xa[4* _0x43b0x9+ 1+ _0x43b0x1a];_0x43b0x19&& (_0x43b0x1c= -_0x43b0x1c);_0x43b0x1b+= _0x43b0x1c;_0x43b0x1a= _0x43b0xa[4* _0x43b0x9+ _0x43b0x1a];_0x43b0x17= _0x43b0x13[_0x5b48[251]][_0x5b48[1709]](_0x43b0x15,!0);this[_0x5b48[1759]][_0x5b48[1908]](_0x43b0x17)&& _0x43b0x13[_0x5b48[251]][_0x5b48[1197]](_0x43b0x17)== _0x43b0x16&& (_0x43b0x1a= _0x43b0x13[_0x5b48[441]][_0x5b48[248]](_0x43b0x17),_0x43b0x1a= null!= _0x43b0x1a?_0x43b0x1a[_0x5b48[235]]:_0x43b0x16[_0x5b48[256]][_0x5b48[235]]+ _0x43b0x2[_0x5b48[1097]][_0x5b48[117]]* _0x43b0x17[_0x5b48[256]][_0x5b48[235]]);this[_0x5b48[1870]]== mxConstants[_0x5b48[1358]]|| this[_0x5b48[1870]]== mxConstants[_0x5b48[1354]]?(_0x43b0x18[_0x5b48[207]]( new mxPoint(_0x43b0x1a,_0x43b0x1b)),this[_0x5b48[675]]== mxHierarchicalEdgeStyle[_0x5b48[1906]]&& _0x43b0x18[_0x5b48[207]]( new mxPoint(_0x43b0x1a,_0x43b0x1b+ _0x43b0x1c))):(_0x43b0x18[_0x5b48[207]]( new mxPoint(_0x43b0x1b,_0x43b0x1a)),this[_0x5b48[675]]== mxHierarchicalEdgeStyle[_0x5b48[1906]]&& _0x43b0x18[_0x5b48[207]]( new mxPoint(_0x43b0x1b+ _0x43b0x1c,_0x43b0x1a)))};_0x43b0x1a= _0x43b0x2[_0x5b48[235]][_0x5b48[67]]- 1;_0x43b0x1b= _0x43b0x1c= -1;_0x43b0x16= _0x43b0x2[_0x5b48[1827]]- 1;_0x43b0x19&& (_0x43b0x1a= 0,_0x43b0x1c= _0x43b0x2[_0x5b48[235]][_0x5b48[67]],_0x43b0x1b= 1,_0x43b0x16= _0x43b0x2[_0x5b48[1828]]+ 1);for(;_0x43b0x2[_0x5b48[1827]]!= _0x43b0x2[_0x5b48[1828]]&& _0x43b0x1a!= _0x43b0x1c;_0x43b0x1a+= _0x43b0x1b){var _0x43b0x17=_0x43b0x2[_0x5b48[235]][_0x43b0x1a]+ _0x43b0x3,_0x43b0x1d=(this[_0x5b48[1877]][_0x43b0x16]+ this[_0x5b48[1878]][_0x43b0x16+ 1])/ 2,_0x43b0x1e=(this[_0x5b48[1877]][_0x43b0x16- 1]+ this[_0x5b48[1878]][_0x43b0x16])/ 2;if(_0x43b0x19){var _0x43b0x1f=_0x43b0x1d,_0x43b0x1d=_0x43b0x1e,_0x43b0x1e=_0x43b0x1f};this[_0x5b48[1870]]== mxConstants[_0x5b48[1358]]|| this[_0x5b48[1870]]== mxConstants[_0x5b48[1354]]?(_0x43b0x18[_0x5b48[207]]( new mxPoint(_0x43b0x17,_0x43b0x1d)),_0x43b0x18[_0x5b48[207]]( new mxPoint(_0x43b0x17,_0x43b0x1e))):(_0x43b0x18[_0x5b48[207]]( new mxPoint(_0x43b0x1d,_0x43b0x17)),_0x43b0x18[_0x5b48[207]]( new mxPoint(_0x43b0x1e,_0x43b0x17)));this[_0x5b48[1874]]= Math[_0x5b48[160]](this[_0x5b48[1874]],_0x43b0x17);_0x43b0x16+= _0x43b0x1b};null!= _0x43b0xa&& (_0x43b0x1a= _0x43b0x19?2:0,_0x43b0x1b= _0x43b0x19?this[_0x5b48[1878]][_0x43b0x4]:this[_0x5b48[1877]][_0x43b0x5],_0x43b0x1c= _0x43b0xa[4* _0x43b0x9+ 3- _0x43b0x1a],_0x43b0x19&& (_0x43b0x1c= -_0x43b0x1c),_0x43b0x1b-= _0x43b0x1c,_0x43b0x1a= _0x43b0xa[4* _0x43b0x9+ 2- _0x43b0x1a],_0x43b0x19= _0x43b0x13[_0x5b48[251]][_0x5b48[1709]](_0x43b0x15,!1),_0x43b0x16= this[_0x5b48[1759]][_0x5b48[1710]](_0x43b0x15,!1),this[_0x5b48[1759]][_0x5b48[1908]](_0x43b0x19)&& _0x43b0x13[_0x5b48[251]][_0x5b48[1197]](_0x43b0x19)== _0x43b0x16&& (_0x43b0x1a= _0x43b0x13[_0x5b48[441]][_0x5b48[248]](_0x43b0x19),_0x43b0x1a= null!= _0x43b0x1a?_0x43b0x1a[_0x5b48[235]]:_0x43b0x16[_0x5b48[256]][_0x5b48[235]]+ _0x43b0x2[_0x5b48[772]][_0x5b48[117]]* _0x43b0x19[_0x5b48[256]][_0x5b48[235]]),this[_0x5b48[1870]]== mxConstants[_0x5b48[1358]]|| this[_0x5b48[1870]]== mxConstants[_0x5b48[1354]]?(this[_0x5b48[675]]== mxHierarchicalEdgeStyle[_0x5b48[1906]]&& _0x43b0x18[_0x5b48[207]]( new mxPoint(_0x43b0x1a,_0x43b0x1b- _0x43b0x1c)),_0x43b0x18[_0x5b48[207]]( new mxPoint(_0x43b0x1a,_0x43b0x1b))):(this[_0x5b48[675]]== mxHierarchicalEdgeStyle[_0x5b48[1906]]&& _0x43b0x18[_0x5b48[207]]( new mxPoint(_0x43b0x1b- _0x43b0x1c,_0x43b0x1a)),_0x43b0x18[_0x5b48[207]]( new mxPoint(_0x43b0x1b,_0x43b0x1a))));_0x43b0x2[_0x5b48[1843]]&& this[_0x5b48[1909]](_0x43b0x2,_0x43b0x15);this[_0x5b48[1759]][_0x5b48[1722]](_0x43b0x15,_0x43b0x18);_0x43b0x3= 0== _0x43b0x3?this[_0x5b48[1872]]:0< _0x43b0x3?-_0x43b0x3:-_0x43b0x3+ this[_0x5b48[1872]];_0x43b0x9++};_0x43b0x2[_0x5b48[1826]][0]= 101207}};mxCoordinateAssignment[_0x5b48[202]][_0x5b48[1725]]= function(_0x43b0x2){var _0x43b0x3=_0x43b0x2[_0x5b48[246]],_0x43b0x4=_0x43b0x2[_0x5b48[235]][0]- _0x43b0x2[_0x5b48[117]]/ 2,_0x43b0x5=_0x43b0x2[_0x5b48[236]][0]- _0x43b0x2[_0x5b48[119]]/ 2;this[_0x5b48[1877]][_0x43b0x2[_0x5b48[1828]]]= Math[_0x5b48[243]](this[_0x5b48[1877]][_0x43b0x2[_0x5b48[1828]]],_0x43b0x5);this[_0x5b48[1878]][_0x43b0x2[_0x5b48[1828]]]= Math[_0x5b48[160]](this[_0x5b48[1878]][_0x43b0x2[_0x5b48[1828]]],_0x43b0x5+ _0x43b0x2[_0x5b48[119]]);this[_0x5b48[1870]]== mxConstants[_0x5b48[1358]]|| this[_0x5b48[1870]]== mxConstants[_0x5b48[1354]]?this[_0x5b48[1759]][_0x5b48[1725]](_0x43b0x3,_0x43b0x4,_0x43b0x5):this[_0x5b48[1759]][_0x5b48[1725]](_0x43b0x3,_0x43b0x5,_0x43b0x4);this[_0x5b48[1874]]= Math[_0x5b48[160]](this[_0x5b48[1874]],_0x43b0x4+ _0x43b0x2[_0x5b48[117]])};mxCoordinateAssignment[_0x5b48[202]][_0x5b48[1909]]= function(_0x43b0x2,_0x43b0x3){};function WeightedCellSorter(_0x43b0x2,_0x43b0x3){this[_0x5b48[246]]= _0x43b0x2;this[_0x5b48[1782]]= _0x43b0x3}WeightedCellSorter[_0x5b48[202]][_0x5b48[1782]]= 0;WeightedCellSorter[_0x5b48[202]][_0x5b48[1783]]= !1;WeightedCellSorter[_0x5b48[202]][_0x5b48[1784]]= !1;WeightedCellSorter[_0x5b48[202]][_0x5b48[1785]]= null;WeightedCellSorter[_0x5b48[202]][_0x5b48[246]]= null;WeightedCellSorter[_0x5b48[202]][_0x5b48[469]]= function(_0x43b0x2,_0x43b0x3){return null!= _0x43b0x2&& null!= _0x43b0x3?_0x43b0x3[_0x5b48[1782]]> _0x43b0x2[_0x5b48[1782]]?-1:_0x43b0x3[_0x5b48[1782]]< _0x43b0x2[_0x5b48[1782]]?1:_0x43b0x3[_0x5b48[1783]]?-1:1:0};function mxHierarchicalLayout(_0x43b0x2,_0x43b0x3,_0x43b0x4){mxGraphLayout[_0x5b48[239]](this,_0x43b0x2);this[_0x5b48[1870]]= null!= _0x43b0x3?_0x43b0x3:mxConstants[_0x5b48[1358]];this[_0x5b48[1910]]= null!= _0x43b0x4?_0x43b0x4:!0}mxHierarchicalLayout[_0x5b48[202]]= new mxGraphLayout;mxHierarchicalLayout[_0x5b48[202]][_0x5b48[196]]= mxHierarchicalLayout;mxHierarchicalLayout[_0x5b48[202]][_0x5b48[1845]]= null;mxHierarchicalLayout[_0x5b48[202]][_0x5b48[1735]]= !1;mxHierarchicalLayout[_0x5b48[202]][_0x5b48[1911]]= !1;mxHierarchicalLayout[_0x5b48[202]][_0x5b48[1912]]= 0;mxHierarchicalLayout[_0x5b48[202]][_0x5b48[1868]]= 30;mxHierarchicalLayout[_0x5b48[202]][_0x5b48[1869]]= 100;mxHierarchicalLayout[_0x5b48[202]][_0x5b48[1913]]= 60;mxHierarchicalLayout[_0x5b48[202]][_0x5b48[1872]]= 10;mxHierarchicalLayout[_0x5b48[202]][_0x5b48[1870]]= mxConstants[_0x5b48[1358]];mxHierarchicalLayout[_0x5b48[202]][_0x5b48[1882]]= !0;mxHierarchicalLayout[_0x5b48[202]][_0x5b48[1844]]= !0;mxHierarchicalLayout[_0x5b48[202]][_0x5b48[1787]]= !0;mxHierarchicalLayout[_0x5b48[202]][_0x5b48[1914]]= !0;mxHierarchicalLayout[_0x5b48[202]][_0x5b48[251]]= null;mxHierarchicalLayout[_0x5b48[202]][_0x5b48[1915]]= null;mxHierarchicalLayout[_0x5b48[202]][_0x5b48[502]]= function(){return this[_0x5b48[251]]};mxHierarchicalLayout[_0x5b48[202]][_0x5b48[350]]= function(_0x43b0x2,_0x43b0x3){this[_0x5b48[1101]]= _0x43b0x2;var _0x43b0x4=this[_0x5b48[1179]][_0x5b48[251]];this[_0x5b48[1915]]= {};if(!(null== _0x43b0x3&& null== _0x43b0x2)){if(null!= _0x43b0x3&& null!= _0x43b0x2){for(var _0x43b0x5=[],_0x43b0x9=0;_0x43b0x9< _0x43b0x3[_0x5b48[67]];_0x43b0x9++){_0x43b0x4[_0x5b48[1720]](_0x43b0x2,_0x43b0x3[_0x43b0x9])&& _0x43b0x5[_0x5b48[207]](_0x43b0x3[_0x43b0x9])};this[_0x5b48[1845]]= _0x43b0x5}else {this[_0x5b48[1845]]= _0x43b0x3};_0x43b0x4[_0x5b48[473]]();try{this[_0x5b48[1916]](_0x43b0x2),this[_0x5b48[1735]]&& !this[_0x5b48[1179]][_0x5b48[1742]](_0x43b0x2)&& this[_0x5b48[1179]][_0x5b48[1917]]([_0x43b0x2],this[_0x5b48[1912]],this[_0x5b48[1911]])}finally{_0x43b0x4[_0x5b48[476]]()}}};mxHierarchicalLayout[_0x5b48[202]][_0x5b48[1918]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=[];if(null!= _0x43b0x2&& null!= _0x43b0x3){var _0x43b0x5=this[_0x5b48[1179]][_0x5b48[251]],_0x43b0x9=null,_0x43b0xa=-1E5,_0x43b0x12;for(_0x43b0x12 in _0x43b0x3){var _0x43b0x13=_0x43b0x3[_0x43b0x12];if(_0x43b0x5[_0x5b48[1193]](_0x43b0x13)&& this[_0x5b48[1179]][_0x5b48[1714]](_0x43b0x13)){for(var _0x43b0x14=this[_0x5b48[264]](_0x43b0x13),_0x43b0x15=0,_0x43b0x16=0,_0x43b0x17=0;_0x43b0x17< _0x43b0x14[_0x5b48[67]];_0x43b0x17++){this[_0x5b48[1710]](_0x43b0x14[_0x43b0x17],!0)== _0x43b0x13?_0x43b0x15++:_0x43b0x16++};0== _0x43b0x16&& 0< _0x43b0x15&& _0x43b0x4[_0x5b48[207]](_0x43b0x13);_0x43b0x14= _0x43b0x15- _0x43b0x16;_0x43b0x14> _0x43b0xa&& (_0x43b0xa= _0x43b0x14,_0x43b0x9= _0x43b0x13)}};0== _0x43b0x4[_0x5b48[67]]&& null!= _0x43b0x9&& _0x43b0x4[_0x5b48[207]](_0x43b0x9)};return _0x43b0x4};mxHierarchicalLayout[_0x5b48[202]][_0x5b48[264]]= function(_0x43b0x2){var _0x43b0x3=mxCellPath[_0x5b48[385]](_0x43b0x2);if(null!= this[_0x5b48[1915]][_0x43b0x3]){return this[_0x5b48[1915]][_0x43b0x3]};for(var _0x43b0x4=this[_0x5b48[1179]][_0x5b48[251]],_0x43b0x5=[],_0x43b0x9=this[_0x5b48[1179]][_0x5b48[1742]](_0x43b0x2),_0x43b0xa=_0x43b0x4[_0x5b48[262]](_0x43b0x2),_0x43b0x12=0;_0x43b0x12< _0x43b0xa;_0x43b0x12++){var _0x43b0x13=_0x43b0x4[_0x5b48[263]](_0x43b0x2,_0x43b0x12);if(this[_0x5b48[1908]](_0x43b0x13)){_0x43b0x5= _0x43b0x5[_0x5b48[1919]](_0x43b0x4[_0x5b48[264]](_0x43b0x13,!0,!0))}else {if(_0x43b0x9|| !this[_0x5b48[1179]][_0x5b48[1714]](_0x43b0x13)){_0x43b0x5= _0x43b0x5[_0x5b48[1919]](_0x43b0x4[_0x5b48[264]](_0x43b0x13,!0,!0))}}};_0x43b0x5= _0x43b0x5[_0x5b48[1919]](_0x43b0x4[_0x5b48[264]](_0x43b0x2,!0,!0));_0x43b0x4= [];for(_0x43b0x12= 0;_0x43b0x12< _0x43b0x5[_0x5b48[67]];_0x43b0x12++){_0x43b0x9= this[_0x5b48[1710]](_0x43b0x5[_0x43b0x12],!0),_0x43b0xa= this[_0x5b48[1710]](_0x43b0x5[_0x43b0x12],!1),(_0x43b0x9== _0x43b0xa|| _0x43b0x9!= _0x43b0xa&& (_0x43b0xa== _0x43b0x2&& (null== this[_0x5b48[1101]]|| this[_0x5b48[1179]][_0x5b48[1920]](_0x43b0x9,this[_0x5b48[1101]],this[_0x5b48[1914]]))|| _0x43b0x9== _0x43b0x2&& (null== this[_0x5b48[1101]]|| this[_0x5b48[1179]][_0x5b48[1920]](_0x43b0xa,this[_0x5b48[1101]],this[_0x5b48[1914]]))))&& _0x43b0x4[_0x5b48[207]](_0x43b0x5[_0x43b0x12])};return this[_0x5b48[1915]][_0x43b0x3]= _0x43b0x4};mxHierarchicalLayout[_0x5b48[202]][_0x5b48[1710]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[248]](_0x43b0x2),_0x43b0x4=null!= _0x43b0x4?_0x43b0x4[_0x5b48[1710]](_0x43b0x3):this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[1710]](_0x43b0x2,_0x43b0x3);this[_0x5b48[1908]](_0x43b0x4)&& (_0x43b0x4= this[_0x5b48[1179]][_0x5b48[251]][_0x5b48[1197]](_0x43b0x4));return _0x43b0x4};mxHierarchicalLayout[_0x5b48[202]][_0x5b48[1916]]= function(_0x43b0x2){var _0x43b0x3=[],_0x43b0x4=[];if(null== this[_0x5b48[1845]]&& null!= _0x43b0x2){var _0x43b0x5={};this[_0x5b48[1921]](_0x43b0x2,_0x43b0x5);this[_0x5b48[1845]]= [];var _0x43b0x9=!0,_0x43b0xa;for(_0x43b0xa in _0x43b0x5){if(null!= _0x43b0x5[_0x43b0xa]){_0x43b0x9= !1;break}};for(;!_0x43b0x9;){for(var _0x43b0x12=this[_0x5b48[1918]](_0x43b0x2,_0x43b0x5),_0x43b0x9=0;_0x43b0x9< _0x43b0x12[_0x5b48[67]];_0x43b0x9++){var _0x43b0x13=[];_0x43b0x3[_0x5b48[207]](_0x43b0x13);this[_0x5b48[1706]](_0x43b0x12[_0x43b0x9],!0,null,_0x43b0x4,_0x43b0x13,_0x43b0x3,_0x43b0x5)};for(_0x43b0x9= 0;_0x43b0x9< _0x43b0x12[_0x5b48[67]];_0x43b0x9++){this[_0x5b48[1845]][_0x5b48[207]](_0x43b0x12[_0x43b0x9])};_0x43b0x9= !0;for(_0x43b0xa in _0x43b0x5){if(null!= _0x43b0x5[_0x43b0xa]){_0x43b0x9= !1;break}}}}else {for(_0x43b0x9= 0;_0x43b0x9< roots[_0x5b48[67]];_0x43b0x9++){_0x43b0x13= [],_0x43b0x3[_0x5b48[207]](_0x43b0x13),traverse(roots[_0x5b48[203]](_0x43b0x9),!0,null,_0x43b0x4,_0x43b0x13,_0x43b0x3,null)}};for(_0x43b0x9= _0x43b0x4= 0;_0x43b0x9< _0x43b0x3[_0x5b48[67]];_0x43b0x9++){_0x43b0x13= _0x43b0x3[_0x43b0x9];_0x43b0x5= [];for(_0x43b0xa in _0x43b0x13){_0x43b0x5[_0x5b48[207]](_0x43b0x13[_0x43b0xa])};this[_0x5b48[251]]= new mxGraphHierarchyModel(this,_0x43b0x5,this[_0x5b48[1845]],_0x43b0x2,this[_0x5b48[1844]]);this[_0x5b48[1922]](_0x43b0x2);this[_0x5b48[1923]]();this[_0x5b48[1924]](_0x43b0x2);_0x43b0x4= this[_0x5b48[1925]](_0x43b0x4,_0x43b0x2)}};mxHierarchicalLayout[_0x5b48[202]][_0x5b48[1921]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=this[_0x5b48[1179]][_0x5b48[251]];_0x43b0x4[_0x5b48[1193]](_0x43b0x2)&& (_0x43b0x2!= this[_0x5b48[1101]]&& this[_0x5b48[1179]][_0x5b48[1714]](_0x43b0x2))&& (_0x43b0x3[mxCellPath[_0x5b48[385]](_0x43b0x2)]= _0x43b0x2);if(this[_0x5b48[1914]]|| _0x43b0x2== this[_0x5b48[1101]]&& this[_0x5b48[1179]][_0x5b48[1714]](_0x43b0x2)){for(var _0x43b0x5=_0x43b0x4[_0x5b48[262]](_0x43b0x2),_0x43b0x9=0;_0x43b0x9< _0x43b0x5;_0x43b0x9++){var _0x43b0xa=_0x43b0x4[_0x5b48[263]](_0x43b0x2,_0x43b0x9);this[_0x5b48[1908]](_0x43b0xa)|| this[_0x5b48[1921]](_0x43b0xa,_0x43b0x3)}}};mxHierarchicalLayout[_0x5b48[202]][_0x5b48[1908]]= function(_0x43b0x2){return _0x43b0x2[_0x5b48[256]][_0x5b48[1500]]?!0:!1};mxHierarchicalLayout[_0x5b48[202]][_0x5b48[1781]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){_0x43b0x4= null!= _0x43b0x4?_0x43b0x4:!1;for(var _0x43b0x5=this[_0x5b48[264]](_0x43b0x2),_0x43b0x9=[],_0x43b0xa=0;_0x43b0xa< _0x43b0x5[_0x5b48[67]];_0x43b0xa++){var _0x43b0x12=this[_0x5b48[1710]](_0x43b0x5[_0x43b0xa],!0),_0x43b0x13=this[_0x5b48[1710]](_0x43b0x5[_0x43b0xa],!1);(_0x43b0x12== _0x43b0x2&& _0x43b0x13== _0x43b0x3|| !_0x43b0x4&& _0x43b0x12== _0x43b0x3 && _0x43b0x13== _0x43b0x2)&& _0x43b0x9[_0x5b48[207]](_0x43b0x5[_0x43b0xa])};return _0x43b0x9};mxHierarchicalLayout[_0x5b48[202]][_0x5b48[1706]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa,_0x43b0x12){if(null!= _0x43b0x2&& null!= _0x43b0x5){var _0x43b0x13=mxCellPath[_0x5b48[385]](_0x43b0x2);if(null== _0x43b0x5[_0x43b0x13]&& (null== _0x43b0x12|| null!= _0x43b0x12[_0x43b0x13])){null== _0x43b0x9[_0x43b0x13]&& (_0x43b0x9[_0x43b0x13]= _0x43b0x2);null== _0x43b0x5[_0x43b0x13]&& (_0x43b0x5[_0x43b0x13]= _0x43b0x2);delete _0x43b0x12[_0x43b0x13];var _0x43b0x14=this[_0x5b48[264]](_0x43b0x2);for(_0x43b0x4= 0;_0x43b0x4< _0x43b0x14[_0x5b48[67]];_0x43b0x4++){if(_0x43b0x13= this[_0x5b48[1710]](_0x43b0x14[_0x43b0x4],!0)== _0x43b0x2,!_0x43b0x3|| _0x43b0x13){_0x43b0x13= this[_0x5b48[1710]](_0x43b0x14[_0x43b0x4],!_0x43b0x13),_0x43b0x9= this[_0x5b48[1706]](_0x43b0x13,_0x43b0x3,_0x43b0x14[_0x43b0x4],_0x43b0x5,_0x43b0x9,_0x43b0xa,_0x43b0x12)}}}else {if(null== _0x43b0x9[_0x43b0x13]){for(_0x43b0x4= 0;_0x43b0x4< _0x43b0xa[_0x5b48[67]];_0x43b0x4++){if(_0x43b0x2= _0x43b0xa[_0x43b0x4],null!= _0x43b0x2[_0x43b0x13]){for(_0x43b0x14 in _0x43b0x9){_0x43b0x2[_0x43b0x14]= _0x43b0x9[_0x43b0x14]};_0x43b0xa[_0x5b48[1242]]();return _0x43b0x2}}}}};return _0x43b0x9};mxHierarchicalLayout[_0x5b48[202]][_0x5b48[1922]]= function(_0x43b0x2){( new mxMinimumCycleRemover(this))[_0x5b48[350]](_0x43b0x2)};mxHierarchicalLayout[_0x5b48[202]][_0x5b48[1923]]= function(){this[_0x5b48[251]][_0x5b48[1852]]();this[_0x5b48[251]][_0x5b48[1854]]()};mxHierarchicalLayout[_0x5b48[202]][_0x5b48[1924]]= function(_0x43b0x2){( new mxMedianHybridCrossingReduction(this))[_0x5b48[350]](_0x43b0x2)};mxHierarchicalLayout[_0x5b48[202]][_0x5b48[1925]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4= new mxCoordinateAssignment(this,this[_0x5b48[1868]],this[_0x5b48[1869]],this[_0x5b48[1870]],_0x43b0x2,this[_0x5b48[1872]]);_0x43b0x4[_0x5b48[1882]]= this[_0x5b48[1882]];_0x43b0x4[_0x5b48[350]](_0x43b0x3);return _0x43b0x4[_0x5b48[1874]]+ this[_0x5b48[1913]]};function mxGraphModel(_0x43b0x2){this[_0x5b48[1926]]= this[_0x5b48[1096]]();null!= _0x43b0x2?this[_0x5b48[1927]](_0x43b0x2):this[_0x5b48[200]]()}mxGraphModel[_0x5b48[202]]= new mxEventSource;mxGraphModel[_0x5b48[202]][_0x5b48[196]]= mxGraphModel;mxGraphModel[_0x5b48[202]][_0x5b48[813]]= null;mxGraphModel[_0x5b48[202]][_0x5b48[895]]= null;mxGraphModel[_0x5b48[202]][_0x5b48[1928]]= !0;mxGraphModel[_0x5b48[202]][_0x5b48[1929]]= !0;mxGraphModel[_0x5b48[202]][_0x5b48[1089]]= _0x5b48[110];mxGraphModel[_0x5b48[202]][_0x5b48[1930]]= _0x5b48[110];mxGraphModel[_0x5b48[202]][_0x5b48[1931]]= 0;mxGraphModel[_0x5b48[202]][_0x5b48[1926]]= null;mxGraphModel[_0x5b48[202]][_0x5b48[1932]]= 0;mxGraphModel[_0x5b48[202]][_0x5b48[1933]]= !1;mxGraphModel[_0x5b48[202]][_0x5b48[200]]= function(){this[_0x5b48[1927]](this[_0x5b48[1934]]())};mxGraphModel[_0x5b48[202]][_0x5b48[1935]]= function(){return this[_0x5b48[1929]]};mxGraphModel[_0x5b48[202]][_0x5b48[1936]]= function(_0x43b0x2){this[_0x5b48[1929]]= _0x43b0x2};mxGraphModel[_0x5b48[202]][_0x5b48[1934]]= function(){var _0x43b0x2= new mxCell;_0x43b0x2[_0x5b48[1937]]( new mxCell);return _0x43b0x2};mxGraphModel[_0x5b48[202]][_0x5b48[736]]= function(_0x43b0x2){return null!= this[_0x5b48[895]]?this[_0x5b48[895]][_0x43b0x2]:null};mxGraphModel[_0x5b48[202]][_0x5b48[1938]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=null;if(null!= _0x43b0x2){for(var _0x43b0x4=[],_0x43b0x5=0;_0x43b0x5< _0x43b0x2[_0x5b48[67]];_0x43b0x5++){_0x43b0x3(_0x43b0x2[_0x43b0x5])&& _0x43b0x4[_0x5b48[207]](_0x43b0x2[_0x43b0x5])}};return _0x43b0x4};mxGraphModel[_0x5b48[202]][_0x5b48[1939]]= function(_0x43b0x2){return this[_0x5b48[1921]](null,_0x43b0x2)};mxGraphModel[_0x5b48[202]][_0x5b48[1921]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=[];_0x43b0x3= _0x43b0x3|| this[_0x5b48[501]]();(null== _0x43b0x2|| _0x43b0x2(_0x43b0x3))&& _0x43b0x4[_0x5b48[207]](_0x43b0x3);for(var _0x43b0x5=this[_0x5b48[262]](_0x43b0x3),_0x43b0x9=0;_0x43b0x9< _0x43b0x5;_0x43b0x9++){var _0x43b0xa=this[_0x5b48[263]](_0x43b0x3,_0x43b0x9),_0x43b0x4=_0x43b0x4[_0x5b48[1919]](this[_0x5b48[1921]](_0x43b0x2,_0x43b0xa))};return _0x43b0x4};mxGraphModel[_0x5b48[202]][_0x5b48[501]]= function(_0x43b0x2){var _0x43b0x3=_0x43b0x2|| this[_0x5b48[813]];if(null!= _0x43b0x2){for(;null!= _0x43b0x2;){_0x43b0x3= _0x43b0x2,_0x43b0x2= this[_0x5b48[1197]](_0x43b0x2)}};return _0x43b0x3};mxGraphModel[_0x5b48[202]][_0x5b48[1927]]= function(_0x43b0x2){this[_0x5b48[350]]( new mxRootChange(this,_0x43b0x2));return _0x43b0x2};mxGraphModel[_0x5b48[202]][_0x5b48[1940]]= function(_0x43b0x2){var _0x43b0x3=this[_0x5b48[813]];this[_0x5b48[813]]= _0x43b0x2;this[_0x5b48[1931]]= 0;this[_0x5b48[895]]= null;this[_0x5b48[1941]](_0x43b0x2);return _0x43b0x3};mxGraphModel[_0x5b48[202]][_0x5b48[1942]]= function(_0x43b0x2){return null!= _0x43b0x2&& this[_0x5b48[813]]== _0x43b0x2};mxGraphModel[_0x5b48[202]][_0x5b48[1740]]= function(_0x43b0x2){return this[_0x5b48[1942]](this[_0x5b48[1197]](_0x43b0x2))};mxGraphModel[_0x5b48[202]][_0x5b48[1720]]= function(_0x43b0x2,_0x43b0x3){for(;null!= _0x43b0x3&& _0x43b0x3!= _0x43b0x2;){_0x43b0x3= this[_0x5b48[1197]](_0x43b0x3)};return _0x43b0x3== _0x43b0x2};mxGraphModel[_0x5b48[202]][_0x5b48[442]]= function(_0x43b0x2){return this[_0x5b48[1720]](this[_0x5b48[813]],_0x43b0x2)};mxGraphModel[_0x5b48[202]][_0x5b48[1197]]= function(_0x43b0x2){return null!= _0x43b0x2?_0x43b0x2[_0x5b48[1197]]():null};mxGraphModel[_0x5b48[202]][_0x5b48[99]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){if(_0x43b0x3!= _0x43b0x2&& null!= _0x43b0x2&& null!= _0x43b0x3){null== _0x43b0x4&& (_0x43b0x4= this[_0x5b48[262]](_0x43b0x2));var _0x43b0x5=_0x43b0x2!= this[_0x5b48[1197]](_0x43b0x3);this[_0x5b48[350]]( new mxChildChange(this,_0x43b0x2,_0x43b0x3,_0x43b0x4));this[_0x5b48[1928]]&& _0x43b0x5&& this[_0x5b48[1943]](_0x43b0x3)};return _0x43b0x3};mxGraphModel[_0x5b48[202]][_0x5b48[1941]]= function(_0x43b0x2){if(null!= _0x43b0x2){null== _0x43b0x2[_0x5b48[1103]]()&& this[_0x5b48[1929]]&& _0x43b0x2[_0x5b48[1945]](this[_0x5b48[1944]](_0x43b0x2));if(null!= _0x43b0x2[_0x5b48[1103]]()){var _0x43b0x3=this[_0x5b48[736]](_0x43b0x2[_0x5b48[1103]]());if(_0x43b0x3!= _0x43b0x2){for(;null!= _0x43b0x3;){_0x43b0x2[_0x5b48[1945]](this[_0x5b48[1944]](_0x43b0x2)),_0x43b0x3= this[_0x5b48[736]](_0x43b0x2[_0x5b48[1103]]())};null== this[_0x5b48[895]]&& (this[_0x5b48[895]]= {});this[_0x5b48[895]][_0x43b0x2[_0x5b48[1103]]()]= _0x43b0x2}};mxUtils[_0x5b48[1946]](_0x43b0x2[_0x5b48[1103]]())&& (this[_0x5b48[1931]]= Math[_0x5b48[160]](this[_0x5b48[1931]],_0x43b0x2[_0x5b48[1103]]()));for(var _0x43b0x3=this[_0x5b48[262]](_0x43b0x2),_0x43b0x4=0;_0x43b0x4< _0x43b0x3;_0x43b0x4++){this[_0x5b48[1941]](this[_0x5b48[263]](_0x43b0x2,_0x43b0x4))}}};mxGraphModel[_0x5b48[202]][_0x5b48[1944]]= function(_0x43b0x2){_0x43b0x2= this[_0x5b48[1931]];this[_0x5b48[1931]]++;return this[_0x5b48[1089]]+ _0x43b0x2+ this[_0x5b48[1930]]};mxGraphModel[_0x5b48[202]][_0x5b48[1943]]= function(_0x43b0x2,_0x43b0x3){_0x43b0x3= _0x43b0x3|| this[_0x5b48[501]](_0x43b0x2);for(var _0x43b0x4=this[_0x5b48[262]](_0x43b0x2),_0x43b0x5=0;_0x43b0x5< _0x43b0x4;_0x43b0x5++){var _0x43b0x9=this[_0x5b48[263]](_0x43b0x2,_0x43b0x5);this[_0x5b48[1943]](_0x43b0x9,_0x43b0x3)};_0x43b0x9= this[_0x5b48[1707]](_0x43b0x2);_0x43b0x4= [];for(_0x43b0x5= 0;_0x43b0x5< _0x43b0x9;_0x43b0x5++){_0x43b0x4[_0x5b48[207]](this[_0x5b48[1708]](_0x43b0x2,_0x43b0x5))};for(_0x43b0x5= 0;_0x43b0x5< _0x43b0x4[_0x5b48[67]];_0x43b0x5++){_0x43b0x9= _0x43b0x4[_0x43b0x5],this[_0x5b48[1720]](_0x43b0x3,_0x43b0x9)&& this[_0x5b48[1947]](_0x43b0x9,_0x43b0x3)}};mxGraphModel[_0x5b48[202]][_0x5b48[1947]]= function(_0x43b0x2,_0x43b0x3){for(var _0x43b0x4=this[_0x5b48[1709]](_0x43b0x2,!0),_0x43b0x5=this[_0x5b48[1709]](_0x43b0x2,!1),_0x43b0x9=null;null!= _0x43b0x4&& !this[_0x5b48[250]](_0x43b0x4)&& null!= _0x43b0x4[_0x5b48[256]]&& _0x43b0x4[_0x5b48[256]][_0x5b48[1500]];){_0x43b0x4= this[_0x5b48[1197]](_0x43b0x4)};for(;null!= _0x43b0x5&& !this[_0x5b48[250]](_0x43b0x5)&& null!= _0x43b0x5[_0x5b48[256]]&& _0x43b0x5[_0x5b48[256]][_0x5b48[1500]];){_0x43b0x5= this[_0x5b48[1197]](_0x43b0x5)};if(this[_0x5b48[1720]](_0x43b0x3,_0x43b0x4)&& this[_0x5b48[1720]](_0x43b0x3,_0x43b0x5)&& (_0x43b0x9= _0x43b0x4== _0x43b0x5?this[_0x5b48[1197]](_0x43b0x4):this[_0x5b48[1948]](_0x43b0x4,_0x43b0x5),null!= _0x43b0x9&& (this[_0x5b48[1197]](_0x43b0x9)!= this[_0x5b48[813]]|| this[_0x5b48[1720]](_0x43b0x9,_0x43b0x2))&& this[_0x5b48[1197]](_0x43b0x2)!= _0x43b0x9)){_0x43b0x4= this[_0x5b48[1721]](_0x43b0x2);if(null!= _0x43b0x4){var _0x43b0xa=this[_0x5b48[1949]](this[_0x5b48[1197]](_0x43b0x2)),_0x43b0x12=this[_0x5b48[1949]](_0x43b0x9),_0x43b0x5=_0x43b0x12[_0x5b48[235]]- _0x43b0xa[_0x5b48[235]],_0x43b0xa=_0x43b0x12[_0x5b48[236]]- _0x43b0xa[_0x5b48[236]],_0x43b0x4=_0x43b0x4[_0x5b48[238]]();_0x43b0x4[_0x5b48[513]](-_0x43b0x5,-_0x43b0xa);this[_0x5b48[1724]](_0x43b0x2,_0x43b0x4)};this[_0x5b48[99]](_0x43b0x9,_0x43b0x2,this[_0x5b48[262]](_0x43b0x9))}};mxGraphModel[_0x5b48[202]][_0x5b48[1949]]= function(_0x43b0x2){var _0x43b0x3=null;null!= _0x43b0x2?(_0x43b0x3= this[_0x5b48[1949]](this[_0x5b48[1197]](_0x43b0x2)),this[_0x5b48[250]](_0x43b0x2)|| (_0x43b0x2= this[_0x5b48[1721]](_0x43b0x2),null!= _0x43b0x2&& (_0x43b0x3[_0x5b48[235]]+= _0x43b0x2[_0x5b48[235]],_0x43b0x3[_0x5b48[236]]+= _0x43b0x2[_0x5b48[236]]))):_0x43b0x3= new mxPoint;return _0x43b0x3};mxGraphModel[_0x5b48[202]][_0x5b48[1948]]= function(_0x43b0x2,_0x43b0x3){if(null!= _0x43b0x2&& null!= _0x43b0x3){var _0x43b0x4=mxCellPath[_0x5b48[385]](_0x43b0x3);if(null!= _0x43b0x4&& 0< _0x43b0x4[_0x5b48[67]]){var _0x43b0x5=_0x43b0x2,_0x43b0x9=mxCellPath[_0x5b48[385]](_0x43b0x5);if(_0x43b0x4[_0x5b48[67]]< _0x43b0x9[_0x5b48[67]]){var _0x43b0x5=_0x43b0x3,_0x43b0xa=_0x43b0x9,_0x43b0x9=_0x43b0x4,_0x43b0x4=_0x43b0xa};for(;null!= _0x43b0x5;){_0x43b0xa= this[_0x5b48[1197]](_0x43b0x5);if(0== _0x43b0x4[_0x5b48[2]](_0x43b0x9+ mxCellPath[_0x5b48[1950]])&& null!= _0x43b0xa){return _0x43b0x5};_0x43b0x9= mxCellPath[_0x5b48[1951]](_0x43b0x9);_0x43b0x5= _0x43b0xa}}};return null};mxGraphModel[_0x5b48[202]][_0x5b48[205]]= function(_0x43b0x2){_0x43b0x2== this[_0x5b48[813]]?this[_0x5b48[1927]](null):null!= this[_0x5b48[1197]](_0x43b0x2)&& this[_0x5b48[350]]( new mxChildChange(this,null,_0x43b0x2));return _0x43b0x2};mxGraphModel[_0x5b48[202]][_0x5b48[1102]]= function(_0x43b0x2){if(null!= _0x43b0x2&& null!= this[_0x5b48[895]]){for(var _0x43b0x3=this[_0x5b48[262]](_0x43b0x2)- 1;0<= _0x43b0x3;_0x43b0x3--){this[_0x5b48[1102]](this[_0x5b48[263]](_0x43b0x2,_0x43b0x3))};null!= this[_0x5b48[895]]&& null!= _0x43b0x2[_0x5b48[1103]]()&& delete this[_0x5b48[895]][_0x43b0x2[_0x5b48[1103]]()]}};mxGraphModel[_0x5b48[202]][_0x5b48[1952]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){var _0x43b0x5=this[_0x5b48[1197]](_0x43b0x2);null!= _0x43b0x3?(_0x43b0x3!= _0x43b0x5|| _0x43b0x5[_0x5b48[1738]](_0x43b0x2)!= _0x43b0x4)&& _0x43b0x3[_0x5b48[1937]](_0x43b0x2,_0x43b0x4):null!= _0x43b0x5&& (_0x43b0x4= _0x43b0x5[_0x5b48[1738]](_0x43b0x2),_0x43b0x5[_0x5b48[205]](_0x43b0x4));!this[_0x5b48[442]](_0x43b0x5)&& null!= _0x43b0x3?this[_0x5b48[1941]](_0x43b0x2):null== _0x43b0x3&& this[_0x5b48[1102]](_0x43b0x2);return _0x43b0x5};mxGraphModel[_0x5b48[202]][_0x5b48[262]]= function(_0x43b0x2){return null!= _0x43b0x2?_0x43b0x2[_0x5b48[262]]():0};mxGraphModel[_0x5b48[202]][_0x5b48[263]]= function(_0x43b0x2,_0x43b0x3){return null!= _0x43b0x2?_0x43b0x2[_0x5b48[263]](_0x43b0x3):null};mxGraphModel[_0x5b48[202]][_0x5b48[1953]]= function(_0x43b0x2){return null!= _0x43b0x2?_0x43b0x2[_0x5b48[1954]]:null};mxGraphModel[_0x5b48[202]][_0x5b48[1728]]= function(_0x43b0x2){return this[_0x5b48[1955]](_0x43b0x2,!0,!1)};mxGraphModel[_0x5b48[202]][_0x5b48[1956]]= function(_0x43b0x2){return this[_0x5b48[1955]](_0x43b0x2,!1,!0)};mxGraphModel[_0x5b48[202]][_0x5b48[1955]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){_0x43b0x3= null!= _0x43b0x3?_0x43b0x3:!1;_0x43b0x4= null!= _0x43b0x4?_0x43b0x4:!1;for(var _0x43b0x5=this[_0x5b48[262]](_0x43b0x2),_0x43b0x9=[],_0x43b0xa=0;_0x43b0xa< _0x43b0x5;_0x43b0xa++){var _0x43b0x12=this[_0x5b48[263]](_0x43b0x2,_0x43b0xa);(!_0x43b0x4&& !_0x43b0x3 || _0x43b0x4&& this[_0x5b48[250]](_0x43b0x12) || _0x43b0x3&& this[_0x5b48[1193]](_0x43b0x12)) && _0x43b0x9[_0x5b48[207]](_0x43b0x12)};return _0x43b0x9};mxGraphModel[_0x5b48[202]][_0x5b48[1709]]= function(_0x43b0x2,_0x43b0x3){return null!= _0x43b0x2?_0x43b0x2[_0x5b48[1709]](_0x43b0x3):null};mxGraphModel[_0x5b48[202]][_0x5b48[1957]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){var _0x43b0x5=_0x43b0x3!= this[_0x5b48[1709]](_0x43b0x2,_0x43b0x4);this[_0x5b48[350]]( new mxTerminalChange(this,_0x43b0x2,_0x43b0x3,_0x43b0x4));this[_0x5b48[1928]]&& _0x43b0x5&& this[_0x5b48[1947]](_0x43b0x2,this[_0x5b48[501]]());return _0x43b0x3};mxGraphModel[_0x5b48[202]][_0x5b48[1958]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){this[_0x5b48[473]]();try{this[_0x5b48[1957]](_0x43b0x2,_0x43b0x3,!0),this[_0x5b48[1957]](_0x43b0x2,_0x43b0x4,!1)}finally{this[_0x5b48[476]]()}};mxGraphModel[_0x5b48[202]][_0x5b48[1959]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){var _0x43b0x5=this[_0x5b48[1709]](_0x43b0x2,_0x43b0x4);null!= _0x43b0x3?_0x43b0x3[_0x5b48[1960]](_0x43b0x2,_0x43b0x4):null!= _0x43b0x5&& _0x43b0x5[_0x5b48[1961]](_0x43b0x2,_0x43b0x4);return _0x43b0x5};mxGraphModel[_0x5b48[202]][_0x5b48[1707]]= function(_0x43b0x2){return null!= _0x43b0x2?_0x43b0x2[_0x5b48[1707]]():0};mxGraphModel[_0x5b48[202]][_0x5b48[1708]]= function(_0x43b0x2,_0x43b0x3){return null!= _0x43b0x2?_0x43b0x2[_0x5b48[1708]](_0x43b0x3):null};mxGraphModel[_0x5b48[202]][_0x5b48[1962]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){for(var _0x43b0x5=0,_0x43b0x9=this[_0x5b48[1707]](_0x43b0x2),_0x43b0xa=0;_0x43b0xa< _0x43b0x9;_0x43b0xa++){var _0x43b0x12=this[_0x5b48[1708]](_0x43b0x2,_0x43b0xa);_0x43b0x12!= _0x43b0x4&& this[_0x5b48[1709]](_0x43b0x12,_0x43b0x3)== _0x43b0x2&& _0x43b0x5++};return _0x43b0x5};mxGraphModel[_0x5b48[202]][_0x5b48[1756]]= function(_0x43b0x2){return this[_0x5b48[264]](_0x43b0x2,!0,!0,!1)};mxGraphModel[_0x5b48[202]][_0x5b48[1867]]= function(_0x43b0x2){return this[_0x5b48[264]](_0x43b0x2,!0,!1,!1)};mxGraphModel[_0x5b48[202]][_0x5b48[1963]]= function(_0x43b0x2){return this[_0x5b48[264]](_0x43b0x2,!1,!0,!1)};mxGraphModel[_0x5b48[202]][_0x5b48[264]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){_0x43b0x3= null!= _0x43b0x3?_0x43b0x3:!0;_0x43b0x4= null!= _0x43b0x4?_0x43b0x4:!0;_0x43b0x5= null!= _0x43b0x5?_0x43b0x5:!0;for(var _0x43b0x9=this[_0x5b48[1707]](_0x43b0x2),_0x43b0xa=[],_0x43b0x12=0;_0x43b0x12< _0x43b0x9;_0x43b0x12++){var _0x43b0x13=this[_0x5b48[1708]](_0x43b0x2,_0x43b0x12),_0x43b0x14=this[_0x5b48[1709]](_0x43b0x13,!0),_0x43b0x15=this[_0x5b48[1709]](_0x43b0x13,!1);(_0x43b0x5&& _0x43b0x14== _0x43b0x15|| _0x43b0x14!= _0x43b0x15&& (_0x43b0x3&& _0x43b0x15== _0x43b0x2|| _0x43b0x4&& _0x43b0x14== _0x43b0x2))&& _0x43b0xa[_0x5b48[207]](_0x43b0x13)};return _0x43b0xa};mxGraphModel[_0x5b48[202]][_0x5b48[1781]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){_0x43b0x4= null!= _0x43b0x4?_0x43b0x4:!1;var _0x43b0x5=this[_0x5b48[1707]](_0x43b0x2),_0x43b0x9=this[_0x5b48[1707]](_0x43b0x3),_0x43b0xa=_0x43b0x2,_0x43b0x12=_0x43b0x5;_0x43b0x9< _0x43b0x5&& (_0x43b0x12= _0x43b0x9,_0x43b0xa= _0x43b0x3);_0x43b0x5= [];for(_0x43b0x9= 0;_0x43b0x9< _0x43b0x12;_0x43b0x9++){var _0x43b0x13=this[_0x5b48[1708]](_0x43b0xa,_0x43b0x9),_0x43b0x14=this[_0x5b48[1709]](_0x43b0x13,!0),_0x43b0x15=this[_0x5b48[1709]](_0x43b0x13,!1),_0x43b0x16=_0x43b0x15== _0x43b0x2&& _0x43b0x14== _0x43b0x3;(_0x43b0x14== _0x43b0x2&& _0x43b0x15== _0x43b0x3|| !_0x43b0x4&& _0x43b0x16)&& _0x43b0x5[_0x5b48[207]](_0x43b0x13)};return _0x43b0x5};mxGraphModel[_0x5b48[202]][_0x5b48[1808]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){_0x43b0x4= null!= _0x43b0x4?_0x43b0x4:!0;_0x43b0x5= null!= _0x43b0x5?_0x43b0x5:!0;var _0x43b0x9=[];if(null!= _0x43b0x2){for(var _0x43b0xa=0;_0x43b0xa< _0x43b0x2[_0x5b48[67]];_0x43b0xa++){var _0x43b0x12=this[_0x5b48[1709]](_0x43b0x2[_0x43b0xa],!0),_0x43b0x13=this[_0x5b48[1709]](_0x43b0x2[_0x43b0xa],!1);_0x43b0x12== _0x43b0x3&& null!= _0x43b0x13&& _0x43b0x13!= _0x43b0x3&& _0x43b0x5?_0x43b0x9[_0x5b48[207]](_0x43b0x13):_0x43b0x13== _0x43b0x3&& (null!= _0x43b0x12&& _0x43b0x12!= _0x43b0x3&& _0x43b0x4)&& _0x43b0x9[_0x5b48[207]](_0x43b0x12)}};return _0x43b0x9};mxGraphModel[_0x5b48[202]][_0x5b48[1964]]= function(_0x43b0x2){for(var _0x43b0x3=[],_0x43b0x4=0;_0x43b0x4< _0x43b0x2[_0x5b48[67]];_0x43b0x4++){for(var _0x43b0x5=_0x43b0x2[_0x43b0x4],_0x43b0x9=!0,_0x43b0xa=this[_0x5b48[1197]](_0x43b0x5);null!= _0x43b0xa;){if(0<= mxUtils[_0x5b48[2]](_0x43b0x2,_0x43b0xa)){_0x43b0x9= !1;break};_0x43b0xa= this[_0x5b48[1197]](_0x43b0xa)};_0x43b0x9&& _0x43b0x3[_0x5b48[207]](_0x43b0x5)};return _0x43b0x3};mxGraphModel[_0x5b48[202]][_0x5b48[1193]]= function(_0x43b0x2){return null!= _0x43b0x2?_0x43b0x2[_0x5b48[1193]]():!1};mxGraphModel[_0x5b48[202]][_0x5b48[250]]= function(_0x43b0x2){return null!= _0x43b0x2?_0x43b0x2[_0x5b48[250]]():!1};mxGraphModel[_0x5b48[202]][_0x5b48[1965]]= function(_0x43b0x2){return null!= _0x43b0x2?_0x43b0x2[_0x5b48[1965]]():!1};mxGraphModel[_0x5b48[202]][_0x5b48[433]]= function(_0x43b0x2){return null!= _0x43b0x2?_0x43b0x2[_0x5b48[433]]():null};mxGraphModel[_0x5b48[202]][_0x5b48[1966]]= function(_0x43b0x2,_0x43b0x3){this[_0x5b48[350]]( new mxValueChange(this,_0x43b0x2,_0x43b0x3));return _0x43b0x3};mxGraphModel[_0x5b48[202]][_0x5b48[1967]]= function(_0x43b0x2,_0x43b0x3){return _0x43b0x2[_0x5b48[1968]](_0x43b0x3)};mxGraphModel[_0x5b48[202]][_0x5b48[1721]]= function(_0x43b0x2,_0x43b0x3){return null!= _0x43b0x2?_0x43b0x2[_0x5b48[1721]]():null};mxGraphModel[_0x5b48[202]][_0x5b48[1724]]= function(_0x43b0x2,_0x43b0x3){_0x43b0x3!= this[_0x5b48[1721]](_0x43b0x2)&& this[_0x5b48[350]]( new mxGeometryChange(this,_0x43b0x2,_0x43b0x3));return _0x43b0x3};mxGraphModel[_0x5b48[202]][_0x5b48[1969]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=this[_0x5b48[1721]](_0x43b0x2);_0x43b0x2[_0x5b48[1724]](_0x43b0x3);return _0x43b0x4};mxGraphModel[_0x5b48[202]][_0x5b48[474]]= function(_0x43b0x2){return null!= _0x43b0x2?_0x43b0x2[_0x5b48[474]]():null};mxGraphModel[_0x5b48[202]][_0x5b48[475]]= function(_0x43b0x2,_0x43b0x3){_0x43b0x3!= this[_0x5b48[474]](_0x43b0x2)&& this[_0x5b48[350]]( new mxStyleChange(this,_0x43b0x2,_0x43b0x3));return _0x43b0x3};mxGraphModel[_0x5b48[202]][_0x5b48[1970]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=this[_0x5b48[474]](_0x43b0x2);_0x43b0x2[_0x5b48[475]](_0x43b0x3);return _0x43b0x4};mxGraphModel[_0x5b48[202]][_0x5b48[1971]]= function(_0x43b0x2){return null!= _0x43b0x2?_0x43b0x2[_0x5b48[1971]]():!1};mxGraphModel[_0x5b48[202]][_0x5b48[1972]]= function(_0x43b0x2,_0x43b0x3){_0x43b0x3!= this[_0x5b48[1971]](_0x43b0x2)&& this[_0x5b48[350]]( new mxCollapseChange(this,_0x43b0x2,_0x43b0x3));return _0x43b0x3};mxGraphModel[_0x5b48[202]][_0x5b48[1973]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=this[_0x5b48[1971]](_0x43b0x2);_0x43b0x2[_0x5b48[1972]](_0x43b0x3);return _0x43b0x4};mxGraphModel[_0x5b48[202]][_0x5b48[174]]= function(_0x43b0x2){return null!= _0x43b0x2?_0x43b0x2[_0x5b48[174]]():!1};mxGraphModel[_0x5b48[202]][_0x5b48[175]]= function(_0x43b0x2,_0x43b0x3){_0x43b0x3!= this[_0x5b48[174]](_0x43b0x2)&& this[_0x5b48[350]]( new mxVisibleChange(this,_0x43b0x2,_0x43b0x3));return _0x43b0x3};mxGraphModel[_0x5b48[202]][_0x5b48[1974]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=this[_0x5b48[174]](_0x43b0x2);_0x43b0x2[_0x5b48[175]](_0x43b0x3);return _0x43b0x4};mxGraphModel[_0x5b48[202]][_0x5b48[350]]= function(_0x43b0x2){_0x43b0x2[_0x5b48[350]]();this[_0x5b48[473]]();this[_0x5b48[1926]][_0x5b48[99]](_0x43b0x2);this[_0x5b48[746]]( new mxEventObject(mxEvent.EXECUTE,_0x5b48[826],_0x43b0x2));this[_0x5b48[746]]( new mxEventObject(mxEvent.EXECUTED,_0x5b48[826],_0x43b0x2));this[_0x5b48[476]]()};mxGraphModel[_0x5b48[202]][_0x5b48[473]]= function(){this[_0x5b48[1932]]++;this[_0x5b48[746]]( new mxEventObject(mxEvent.BEGIN_UPDATE));1== this[_0x5b48[1932]]&& this[_0x5b48[746]]( new mxEventObject(mxEvent.START_EDIT))};mxGraphModel[_0x5b48[202]][_0x5b48[476]]= function(){this[_0x5b48[1932]]--;0== this[_0x5b48[1932]]&& this[_0x5b48[746]]( new mxEventObject(mxEvent.END_EDIT));if(!this[_0x5b48[1933]]){this[_0x5b48[1933]]= 0== this[_0x5b48[1932]];this[_0x5b48[746]]( new mxEventObject(mxEvent.END_UPDATE,_0x5b48[1061],this[_0x5b48[1926]]));try{if(this[_0x5b48[1933]]&& !this[_0x5b48[1926]][_0x5b48[1107]]()){this[_0x5b48[746]]( new mxEventObject(mxEvent.BEFORE_UNDO,_0x5b48[1061],this[_0x5b48[1926]]));var _0x43b0x2=this[_0x5b48[1926]];this[_0x5b48[1926]]= this[_0x5b48[1096]]();_0x43b0x2[_0x5b48[827]]();this[_0x5b48[746]]( new mxEventObject(mxEvent.UNDO,_0x5b48[1061],_0x43b0x2))}}finally{this[_0x5b48[1933]]= !1}}};mxGraphModel[_0x5b48[202]][_0x5b48[1096]]= function(){var _0x43b0x2= new mxUndoableEdit(this,!0);_0x43b0x2[_0x5b48[827]]= function(){_0x43b0x2[_0x5b48[1097]][_0x5b48[746]]( new mxEventObject(mxEvent.CHANGE,_0x5b48[1061],_0x43b0x2,_0x5b48[1065],_0x43b0x2[_0x5b48[1065]]));_0x43b0x2[_0x5b48[1097]][_0x5b48[746]]( new mxEventObject(mxEvent.NOTIFY,_0x5b48[1061],_0x43b0x2,_0x5b48[1065],_0x43b0x2[_0x5b48[1065]]))};return _0x43b0x2};mxGraphModel[_0x5b48[202]][_0x5b48[1975]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){_0x43b0x4= null!= _0x43b0x4?_0x43b0x4:!0;this[_0x5b48[473]]();try{var _0x43b0x5={};this[_0x5b48[1976]](_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5);for(var _0x43b0x9 in _0x43b0x5){var _0x43b0xa=_0x43b0x5[_0x43b0x9],_0x43b0x12=this[_0x5b48[1709]](_0x43b0xa,!0);null!= _0x43b0x12&& (_0x43b0x12= _0x43b0x5[mxCellPath[_0x5b48[385]](_0x43b0x12)],this[_0x5b48[1957]](_0x43b0xa,_0x43b0x12,!0));_0x43b0x12= this[_0x5b48[1709]](_0x43b0xa,!1);null!= _0x43b0x12&& (_0x43b0x12= _0x43b0x5[mxCellPath[_0x5b48[385]](_0x43b0x12)],this[_0x5b48[1957]](_0x43b0xa,_0x43b0x12,!1))}}finally{this[_0x5b48[476]]()}};mxGraphModel[_0x5b48[202]][_0x5b48[1976]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){this[_0x5b48[473]]();try{for(var _0x43b0x9=_0x43b0x2[_0x5b48[262]](),_0x43b0xa=0;_0x43b0xa< _0x43b0x9;_0x43b0xa++){var _0x43b0x12=_0x43b0x2[_0x5b48[263]](_0x43b0xa);if(_0x5b48[279]== typeof _0x43b0x12[_0x5b48[1103]]){var _0x43b0x13=_0x43b0x12[_0x5b48[1103]](),_0x43b0x14=null!= _0x43b0x13&& (!this[_0x5b48[250]](_0x43b0x12)|| !_0x43b0x4)?this[_0x5b48[736]](_0x43b0x13):null;if(null== _0x43b0x14){var _0x43b0x15=_0x43b0x12[_0x5b48[238]]();_0x43b0x15[_0x5b48[1945]](_0x43b0x13);_0x43b0x15[_0x5b48[1957]](_0x43b0x12[_0x5b48[1709]](!0),!0);_0x43b0x15[_0x5b48[1957]](_0x43b0x12[_0x5b48[1709]](!1),!1);_0x43b0x14= _0x43b0x3[_0x5b48[1937]](_0x43b0x15);this[_0x5b48[1941]](_0x43b0x14)};_0x43b0x5[mxCellPath[_0x5b48[385]](_0x43b0x12)]= _0x43b0x14;this[_0x5b48[1976]](_0x43b0x12,_0x43b0x14,_0x43b0x4,_0x43b0x5)}}}finally{this[_0x5b48[476]]()}};mxGraphModel[_0x5b48[202]][_0x5b48[1977]]= function(_0x43b0x2){var _0x43b0x3=[];if(null!= _0x43b0x2){for(var _0x43b0x4={},_0x43b0x5=0;_0x43b0x5< _0x43b0x2[_0x5b48[67]];_0x43b0x5++){var _0x43b0x9=this[_0x5b48[1197]](_0x43b0x2[_0x43b0x5]);if(null!= _0x43b0x9){var _0x43b0xa=mxCellPath[_0x5b48[385]](_0x43b0x9);null== _0x43b0x4[_0x43b0xa]&& (_0x43b0x4[_0x43b0xa]= _0x43b0x9,_0x43b0x3[_0x5b48[207]](_0x43b0x9))}}};return _0x43b0x3};mxGraphModel[_0x5b48[202]][_0x5b48[1978]]= function(_0x43b0x2){return null!= _0x43b0x2?this[_0x5b48[899]]([_0x43b0x2],!0)[0]:null};mxGraphModel[_0x5b48[202]][_0x5b48[899]]= function(_0x43b0x2,_0x43b0x3){for(var _0x43b0x4={},_0x43b0x5=[],_0x43b0x9=0;_0x43b0x9< _0x43b0x2[_0x5b48[67]];_0x43b0x9++){null!= _0x43b0x2[_0x43b0x9]?_0x43b0x5[_0x5b48[207]](this[_0x5b48[1979]](_0x43b0x2[_0x43b0x9],_0x43b0x4,_0x43b0x3)):_0x43b0x5[_0x5b48[207]](null)};for(_0x43b0x9= 0;_0x43b0x9< _0x43b0x5[_0x5b48[67]];_0x43b0x9++){null!= _0x43b0x5[_0x43b0x9]&& this[_0x5b48[1980]](_0x43b0x5[_0x43b0x9],_0x43b0x2[_0x43b0x9],_0x43b0x4)};return _0x43b0x5};mxGraphModel[_0x5b48[202]][_0x5b48[1979]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){var _0x43b0x5=this[_0x5b48[1981]](_0x43b0x2);_0x43b0x3[mxObjectIdentity[_0x5b48[203]](_0x43b0x2)]= _0x43b0x5;if(_0x43b0x4){_0x43b0x4= this[_0x5b48[262]](_0x43b0x2);for(var _0x43b0x9=0;_0x43b0x9< _0x43b0x4;_0x43b0x9++){var _0x43b0xa=this[_0x5b48[1979]](this[_0x5b48[263]](_0x43b0x2,_0x43b0x9),_0x43b0x3,!0);_0x43b0x5[_0x5b48[1937]](_0x43b0xa)}};return _0x43b0x5};mxGraphModel[_0x5b48[202]][_0x5b48[1981]]= function(_0x43b0x2){return _0x43b0x2[_0x5b48[238]]()};mxGraphModel[_0x5b48[202]][_0x5b48[1980]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){var _0x43b0x5=this[_0x5b48[1709]](_0x43b0x3,!0);null!= _0x43b0x5&& (_0x43b0x5= _0x43b0x4[mxObjectIdentity[_0x5b48[203]](_0x43b0x5)],null!= _0x43b0x5&& _0x43b0x5[_0x5b48[1960]](_0x43b0x2,!0));_0x43b0x5= this[_0x5b48[1709]](_0x43b0x3,!1);null!= _0x43b0x5&& (_0x43b0x5= _0x43b0x4[mxObjectIdentity[_0x5b48[203]](_0x43b0x5)],null!= _0x43b0x5&& _0x43b0x5[_0x5b48[1960]](_0x43b0x2,!1));for(var _0x43b0x5=this[_0x5b48[262]](_0x43b0x2),_0x43b0x9=0;_0x43b0x9< _0x43b0x5;_0x43b0x9++){this[_0x5b48[1980]](this[_0x5b48[263]](_0x43b0x2,_0x43b0x9),this[_0x5b48[263]](_0x43b0x3,_0x43b0x9),_0x43b0x4)}};function mxRootChange(_0x43b0x2,_0x43b0x3){this[_0x5b48[251]]= _0x43b0x2;this[_0x5b48[257]]= this[_0x5b48[813]]= _0x43b0x3}mxRootChange[_0x5b48[202]][_0x5b48[350]]= function(){this[_0x5b48[813]]= this[_0x5b48[257]];this[_0x5b48[257]]= this[_0x5b48[251]][_0x5b48[1940]](this[_0x5b48[257]])};function mxChildChange(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){this[_0x5b48[251]]= _0x43b0x2;this[_0x5b48[257]]= this[_0x5b48[1101]]= _0x43b0x3;this[_0x5b48[247]]= _0x43b0x4;this[_0x5b48[1982]]= this[_0x5b48[1983]]= _0x43b0x5}mxChildChange[_0x5b48[202]][_0x5b48[350]]= function(){var _0x43b0x2=this[_0x5b48[251]][_0x5b48[1197]](this[_0x5b48[247]]),_0x43b0x3=null!= _0x43b0x2?_0x43b0x2[_0x5b48[1738]](this[_0x5b48[247]]):0;null== this[_0x5b48[257]]&& this[_0x5b48[807]](this[_0x5b48[247]],!1);_0x43b0x2= this[_0x5b48[251]][_0x5b48[1952]](this[_0x5b48[247]],this[_0x5b48[257]],this[_0x5b48[1982]]);null!= this[_0x5b48[257]]&& this[_0x5b48[807]](this[_0x5b48[247]],!0);this[_0x5b48[1101]]= this[_0x5b48[257]];this[_0x5b48[257]]= _0x43b0x2;this[_0x5b48[1983]]= this[_0x5b48[1982]];this[_0x5b48[1982]]= _0x43b0x3};mxChildChange[_0x5b48[202]][_0x5b48[807]]= function(_0x43b0x2,_0x43b0x3){_0x43b0x3= null!= _0x43b0x3?_0x43b0x3:!0;var _0x43b0x4=_0x43b0x2[_0x5b48[1709]](!0),_0x43b0x5=_0x43b0x2[_0x5b48[1709]](!1);null!= _0x43b0x4&& (_0x43b0x3?this[_0x5b48[251]][_0x5b48[1959]](_0x43b0x2,_0x43b0x4,!0):this[_0x5b48[251]][_0x5b48[1959]](_0x43b0x2,null,!0));null!= _0x43b0x5&& (_0x43b0x3?this[_0x5b48[251]][_0x5b48[1959]](_0x43b0x2,_0x43b0x5,!1):this[_0x5b48[251]][_0x5b48[1959]](_0x43b0x2,null,!1));_0x43b0x2[_0x5b48[1957]](_0x43b0x4,!0);_0x43b0x2[_0x5b48[1957]](_0x43b0x5,!1);_0x43b0x4= this[_0x5b48[251]][_0x5b48[262]](_0x43b0x2);for(_0x43b0x5= 0;_0x43b0x5< _0x43b0x4;_0x43b0x5++){this[_0x5b48[807]](this[_0x5b48[251]][_0x5b48[263]](_0x43b0x2,_0x43b0x5),_0x43b0x3)}};function mxTerminalChange(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){this[_0x5b48[251]]= _0x43b0x2;this[_0x5b48[246]]= _0x43b0x3;this[_0x5b48[257]]= this[_0x5b48[1984]]= _0x43b0x4;this[_0x5b48[1097]]= _0x43b0x5}mxTerminalChange[_0x5b48[202]][_0x5b48[350]]= function(){this[_0x5b48[1984]]= this[_0x5b48[257]];this[_0x5b48[257]]= this[_0x5b48[251]][_0x5b48[1959]](this[_0x5b48[246]],this[_0x5b48[257]],this[_0x5b48[1097]])};function mxValueChange(_0x43b0x2,_0x43b0x3,_0x43b0x4){this[_0x5b48[251]]= _0x43b0x2;this[_0x5b48[246]]= _0x43b0x3;this[_0x5b48[257]]= this[_0x5b48[131]]= _0x43b0x4}mxValueChange[_0x5b48[202]][_0x5b48[350]]= function(){this[_0x5b48[131]]= this[_0x5b48[257]];this[_0x5b48[257]]= this[_0x5b48[251]][_0x5b48[1967]](this[_0x5b48[246]],this[_0x5b48[257]])};function mxStyleChange(_0x43b0x2,_0x43b0x3,_0x43b0x4){this[_0x5b48[251]]= _0x43b0x2;this[_0x5b48[246]]= _0x43b0x3;this[_0x5b48[257]]= this[_0x5b48[124]]= _0x43b0x4}mxStyleChange[_0x5b48[202]][_0x5b48[350]]= function(){this[_0x5b48[124]]= this[_0x5b48[257]];this[_0x5b48[257]]= this[_0x5b48[251]][_0x5b48[1970]](this[_0x5b48[246]],this[_0x5b48[257]])};function mxGeometryChange(_0x43b0x2,_0x43b0x3,_0x43b0x4){this[_0x5b48[251]]= _0x43b0x2;this[_0x5b48[246]]= _0x43b0x3;this[_0x5b48[257]]= this[_0x5b48[256]]= _0x43b0x4}mxGeometryChange[_0x5b48[202]][_0x5b48[350]]= function(){this[_0x5b48[256]]= this[_0x5b48[257]];this[_0x5b48[257]]= this[_0x5b48[251]][_0x5b48[1969]](this[_0x5b48[246]],this[_0x5b48[257]])};function mxCollapseChange(_0x43b0x2,_0x43b0x3,_0x43b0x4){this[_0x5b48[251]]= _0x43b0x2;this[_0x5b48[246]]= _0x43b0x3;this[_0x5b48[257]]= this[_0x5b48[1985]]= _0x43b0x4}mxCollapseChange[_0x5b48[202]][_0x5b48[350]]= function(){this[_0x5b48[1985]]= this[_0x5b48[257]];this[_0x5b48[257]]= this[_0x5b48[251]][_0x5b48[1973]](this[_0x5b48[246]],this[_0x5b48[257]])};function mxVisibleChange(_0x43b0x2,_0x43b0x3,_0x43b0x4){this[_0x5b48[251]]= _0x43b0x2;this[_0x5b48[246]]= _0x43b0x3;this[_0x5b48[257]]= this[_0x5b48[189]]= _0x43b0x4}mxVisibleChange[_0x5b48[202]][_0x5b48[350]]= function(){this[_0x5b48[189]]= this[_0x5b48[257]];this[_0x5b48[257]]= this[_0x5b48[251]][_0x5b48[1974]](this[_0x5b48[246]],this[_0x5b48[257]])};function mxCellAttributeChange(_0x43b0x2,_0x43b0x3,_0x43b0x4){this[_0x5b48[246]]= _0x43b0x2;this[_0x5b48[1986]]= _0x43b0x3;this[_0x5b48[257]]= this[_0x5b48[131]]= _0x43b0x4}mxCellAttributeChange[_0x5b48[202]][_0x5b48[350]]= function(){var _0x43b0x2=this[_0x5b48[246]][_0x5b48[284]](this[_0x5b48[1986]]);null== this[_0x5b48[257]]?this[_0x5b48[246]][_0x5b48[131]][_0x5b48[1390]](this[_0x5b48[1986]]):this[_0x5b48[246]][_0x5b48[57]](this[_0x5b48[1986]],this[_0x5b48[257]]);this[_0x5b48[257]]= _0x43b0x2};function mxCell(_0x43b0x2,_0x43b0x3,_0x43b0x4){this[_0x5b48[131]]= _0x43b0x2;this[_0x5b48[1724]](_0x43b0x3);this[_0x5b48[475]](_0x43b0x4);if(null!= this[_0x5b48[1987]]){this[_0x5b48[1987]]()}}mxCell[_0x5b48[202]][_0x5b48[1363]]= null;mxCell[_0x5b48[202]][_0x5b48[131]]= null;mxCell[_0x5b48[202]][_0x5b48[256]]= null;mxCell[_0x5b48[202]][_0x5b48[124]]= null;mxCell[_0x5b48[202]][_0x5b48[1988]]= !1;mxCell[_0x5b48[202]][_0x5b48[1989]]= !1;mxCell[_0x5b48[202]][_0x5b48[1990]]= !0;mxCell[_0x5b48[202]][_0x5b48[189]]= !0;mxCell[_0x5b48[202]][_0x5b48[1985]]= !1;mxCell[_0x5b48[202]][_0x5b48[1101]]= null;mxCell[_0x5b48[202]][_0x5b48[1097]]= null;mxCell[_0x5b48[202]][_0x5b48[772]]= null;mxCell[_0x5b48[202]][_0x5b48[1954]]= null;mxCell[_0x5b48[202]][_0x5b48[1842]]= null;mxCell[_0x5b48[202]][_0x5b48[1991]]= _0x5b48[1992][_0x5b48[224]](_0x5b48[185]);mxCell[_0x5b48[202]][_0x5b48[1103]]= function(){return this[_0x5b48[1363]]};mxCell[_0x5b48[202]][_0x5b48[1945]]= function(_0x43b0x2){this[_0x5b48[1363]]= _0x43b0x2};mxCell[_0x5b48[202]][_0x5b48[433]]= function(){return this[_0x5b48[131]]};mxCell[_0x5b48[202]][_0x5b48[1966]]= function(_0x43b0x2){this[_0x5b48[131]]= _0x43b0x2};mxCell[_0x5b48[202]][_0x5b48[1968]]= function(_0x43b0x2){var _0x43b0x3=this[_0x5b48[433]]();this[_0x5b48[1966]](_0x43b0x2);return _0x43b0x3};mxCell[_0x5b48[202]][_0x5b48[1721]]= function(){return this[_0x5b48[256]]};mxCell[_0x5b48[202]][_0x5b48[1724]]= function(_0x43b0x2){this[_0x5b48[256]]= _0x43b0x2};mxCell[_0x5b48[202]][_0x5b48[474]]= function(){return this[_0x5b48[124]]};mxCell[_0x5b48[202]][_0x5b48[475]]= function(_0x43b0x2){this[_0x5b48[124]]= _0x43b0x2};mxCell[_0x5b48[202]][_0x5b48[1193]]= function(){return this[_0x5b48[1988]]};mxCell[_0x5b48[202]][_0x5b48[1993]]= function(_0x43b0x2){this[_0x5b48[1988]]= _0x43b0x2};mxCell[_0x5b48[202]][_0x5b48[250]]= function(){return this[_0x5b48[1989]]};mxCell[_0x5b48[202]][_0x5b48[1994]]= function(_0x43b0x2){this[_0x5b48[1989]]= _0x43b0x2};mxCell[_0x5b48[202]][_0x5b48[1965]]= function(){return this[_0x5b48[1990]]};mxCell[_0x5b48[202]][_0x5b48[1995]]= function(_0x43b0x2){this[_0x5b48[1990]]= _0x43b0x2};mxCell[_0x5b48[202]][_0x5b48[174]]= function(){return this[_0x5b48[189]]};mxCell[_0x5b48[202]][_0x5b48[175]]= function(_0x43b0x2){this[_0x5b48[189]]= _0x43b0x2};mxCell[_0x5b48[202]][_0x5b48[1971]]= function(){return this[_0x5b48[1985]]};mxCell[_0x5b48[202]][_0x5b48[1972]]= function(_0x43b0x2){this[_0x5b48[1985]]= _0x43b0x2};mxCell[_0x5b48[202]][_0x5b48[1197]]= function(){return this[_0x5b48[1101]]};mxCell[_0x5b48[202]][_0x5b48[1996]]= function(_0x43b0x2){this[_0x5b48[1101]]= _0x43b0x2};mxCell[_0x5b48[202]][_0x5b48[1709]]= function(_0x43b0x2){return _0x43b0x2?this[_0x5b48[1097]]:this[_0x5b48[772]]};mxCell[_0x5b48[202]][_0x5b48[1957]]= function(_0x43b0x2,_0x43b0x3){_0x43b0x3?this[_0x5b48[1097]]= _0x43b0x2:this[_0x5b48[772]]= _0x43b0x2;return _0x43b0x2};mxCell[_0x5b48[202]][_0x5b48[262]]= function(){return null== this[_0x5b48[1954]]?0:this[_0x5b48[1954]][_0x5b48[67]]};mxCell[_0x5b48[202]][_0x5b48[1738]]= function(_0x43b0x2){return mxUtils[_0x5b48[2]](this[_0x5b48[1954]],_0x43b0x2)};mxCell[_0x5b48[202]][_0x5b48[263]]= function(_0x43b0x2){return null== this[_0x5b48[1954]]?null:this[_0x5b48[1954]][_0x43b0x2]};mxCell[_0x5b48[202]][_0x5b48[1937]]= function(_0x43b0x2,_0x43b0x3){null!= _0x43b0x2&& (null== _0x43b0x3&& (_0x43b0x3= this[_0x5b48[262]](),_0x43b0x2[_0x5b48[1197]]()== this&& _0x43b0x3--),_0x43b0x2[_0x5b48[1997]](),_0x43b0x2[_0x5b48[1996]](this),null== this[_0x5b48[1954]]?(this[_0x5b48[1954]]= [],this[_0x5b48[1954]][_0x5b48[207]](_0x43b0x2)):this[_0x5b48[1954]][_0x5b48[300]](_0x43b0x3,0,_0x43b0x2));return _0x43b0x2};mxCell[_0x5b48[202]][_0x5b48[205]]= function(_0x43b0x2){var _0x43b0x3=null;null!= this[_0x5b48[1954]]&& 0<= _0x43b0x2&& (_0x43b0x3= this[_0x5b48[263]](_0x43b0x2),null!= _0x43b0x3&& (this[_0x5b48[1954]][_0x5b48[300]](_0x43b0x2,1),_0x43b0x3[_0x5b48[1996]](null)));return _0x43b0x3};mxCell[_0x5b48[202]][_0x5b48[1997]]= function(){if(null!= this[_0x5b48[1101]]){var _0x43b0x2=this[_0x5b48[1101]][_0x5b48[1738]](this);this[_0x5b48[1101]][_0x5b48[205]](_0x43b0x2)}};mxCell[_0x5b48[202]][_0x5b48[1707]]= function(){return null== this[_0x5b48[1842]]?0:this[_0x5b48[1842]][_0x5b48[67]]};mxCell[_0x5b48[202]][_0x5b48[1998]]= function(_0x43b0x2){return mxUtils[_0x5b48[2]](this[_0x5b48[1842]],_0x43b0x2)};mxCell[_0x5b48[202]][_0x5b48[1708]]= function(_0x43b0x2){return null== this[_0x5b48[1842]]?null:this[_0x5b48[1842]][_0x43b0x2]};mxCell[_0x5b48[202]][_0x5b48[1960]]= function(_0x43b0x2,_0x43b0x3){if(null!= _0x43b0x2&& (_0x43b0x2[_0x5b48[1999]](_0x43b0x3),_0x43b0x2[_0x5b48[1957]](this,_0x43b0x3),null== this[_0x5b48[1842]]|| _0x43b0x2[_0x5b48[1709]](!_0x43b0x3) != this|| 0> mxUtils[_0x5b48[2]](this[_0x5b48[1842]],_0x43b0x2))){null== this[_0x5b48[1842]]&& (this[_0x5b48[1842]]= []),this[_0x5b48[1842]][_0x5b48[207]](_0x43b0x2)};return _0x43b0x2};mxCell[_0x5b48[202]][_0x5b48[1961]]= function(_0x43b0x2,_0x43b0x3){if(null!= _0x43b0x2){if(_0x43b0x2[_0x5b48[1709]](!_0x43b0x3) != this && null!= this[_0x5b48[1842]]){var _0x43b0x4=this[_0x5b48[1998]](_0x43b0x2);0<= _0x43b0x4&& this[_0x5b48[1842]][_0x5b48[300]](_0x43b0x4,1)};_0x43b0x2[_0x5b48[1957]](null,_0x43b0x3)};return _0x43b0x2};mxCell[_0x5b48[202]][_0x5b48[1999]]= function(_0x43b0x2){var _0x43b0x3=this[_0x5b48[1709]](_0x43b0x2);null!= _0x43b0x3&& _0x43b0x3[_0x5b48[1961]](this,_0x43b0x2)};mxCell[_0x5b48[202]][_0x5b48[284]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=this[_0x5b48[433]]();return (null!= _0x43b0x4&& _0x43b0x4[_0x5b48[288]]== mxConstants[_0x5b48[289]]?_0x43b0x4[_0x5b48[284]](_0x43b0x2):null)|| _0x43b0x3};mxCell[_0x5b48[202]][_0x5b48[57]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=this[_0x5b48[433]]();null!= _0x43b0x4&& _0x43b0x4[_0x5b48[288]]== mxConstants[_0x5b48[289]]&& _0x43b0x4[_0x5b48[57]](_0x43b0x2,_0x43b0x3)};mxCell[_0x5b48[202]][_0x5b48[238]]= function(){var _0x43b0x2=mxUtils[_0x5b48[238]](this,this[_0x5b48[1991]]);_0x43b0x2[_0x5b48[1966]](this[_0x5b48[2000]]());return _0x43b0x2};mxCell[_0x5b48[202]][_0x5b48[2000]]= function(){var _0x43b0x2=this[_0x5b48[433]]();null!= _0x43b0x2&& (_0x5b48[279]== typeof _0x43b0x2[_0x5b48[238]]?_0x43b0x2= _0x43b0x2[_0x5b48[238]]():isNaN(_0x43b0x2[_0x5b48[288]])|| (_0x43b0x2= _0x43b0x2[_0x5b48[511]](!0)));return _0x43b0x2};function mxGeometry(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){mxRectangle[_0x5b48[239]](this,_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5)}mxGeometry[_0x5b48[202]]= new mxRectangle;mxGeometry[_0x5b48[202]][_0x5b48[196]]= mxGeometry;mxGeometry[_0x5b48[202]][_0x5b48[2001]]= !0;mxGeometry[_0x5b48[202]][_0x5b48[2002]]= null;mxGeometry[_0x5b48[202]][_0x5b48[2003]]= null;mxGeometry[_0x5b48[202]][_0x5b48[2004]]= null;mxGeometry[_0x5b48[202]][_0x5b48[1525]]= null;mxGeometry[_0x5b48[202]][_0x5b48[1368]]= null;mxGeometry[_0x5b48[202]][_0x5b48[1500]]= !1;mxGeometry[_0x5b48[202]][_0x5b48[2005]]= function(){if(null!= this[_0x5b48[2002]]){var _0x43b0x2= new mxRectangle(this[_0x5b48[235]],this[_0x5b48[236]],this[_0x5b48[117]],this[_0x5b48[119]]);this[_0x5b48[235]]= this[_0x5b48[2002]][_0x5b48[235]];this[_0x5b48[236]]= this[_0x5b48[2002]][_0x5b48[236]];this[_0x5b48[117]]= this[_0x5b48[2002]][_0x5b48[117]];this[_0x5b48[119]]= this[_0x5b48[2002]][_0x5b48[119]];this[_0x5b48[2002]]= _0x43b0x2}};mxGeometry[_0x5b48[202]][_0x5b48[2006]]= function(_0x43b0x2){return _0x43b0x2?this[_0x5b48[2003]]:this[_0x5b48[2004]]};mxGeometry[_0x5b48[202]][_0x5b48[2007]]= function(_0x43b0x2,_0x43b0x3){_0x43b0x3?this[_0x5b48[2003]]= _0x43b0x2:this[_0x5b48[2004]]= _0x43b0x2;return _0x43b0x2};mxGeometry[_0x5b48[202]][_0x5b48[513]]= function(_0x43b0x2,_0x43b0x3){this[_0x5b48[238]]();this[_0x5b48[1500]]|| (this[_0x5b48[235]]+= _0x43b0x2,this[_0x5b48[236]]+= _0x43b0x3);null!= this[_0x5b48[2003]]&& (this[_0x5b48[2003]][_0x5b48[235]]+= _0x43b0x2,this[_0x5b48[2003]][_0x5b48[236]]+= _0x43b0x3);null!= this[_0x5b48[2004]]&& (this[_0x5b48[2004]][_0x5b48[235]]+= _0x43b0x2,this[_0x5b48[2004]][_0x5b48[236]]+= _0x43b0x3);if(this[_0x5b48[2001]]&& null!= this[_0x5b48[1525]]){for(var _0x43b0x4=this[_0x5b48[1525]][_0x5b48[67]],_0x43b0x5=0;_0x43b0x5< _0x43b0x4;_0x43b0x5++){var _0x43b0x9=this[_0x5b48[1525]][_0x43b0x5];null!= _0x43b0x9&& (_0x43b0x9[_0x5b48[235]]+= _0x43b0x2,_0x43b0x9[_0x5b48[236]]+= _0x43b0x3)}}};var mxCellPath={PATH_SEPARATOR:_0x5b48[87],create:function(_0x43b0x2){var _0x43b0x3=_0x5b48[110];if(null!= _0x43b0x2){for(var _0x43b0x4=_0x43b0x2[_0x5b48[1197]]();null!= _0x43b0x4;){_0x43b0x3= _0x43b0x4[_0x5b48[1738]](_0x43b0x2)+ mxCellPath[_0x5b48[1950]]+ _0x43b0x3,_0x43b0x2= _0x43b0x4,_0x43b0x4= _0x43b0x2[_0x5b48[1197]]()}};_0x43b0x2= _0x43b0x3[_0x5b48[67]];1< _0x43b0x2&& (_0x43b0x3= _0x43b0x3[_0x5b48[85]](0,_0x43b0x2- 1));return _0x43b0x3},getParentPath:function(_0x43b0x2){if(null!= _0x43b0x2){var _0x43b0x3=_0x43b0x2[_0x5b48[1122]](mxCellPath.PATH_SEPARATOR);if(0<= _0x43b0x3){return _0x43b0x2[_0x5b48[85]](0,_0x43b0x3)};if(0< _0x43b0x2[_0x5b48[67]]){return _0x5b48[110]}};return null},resolve:function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=_0x43b0x2;if(null!= _0x43b0x3){for(var _0x43b0x5=_0x43b0x3[_0x5b48[224]](mxCellPath.PATH_SEPARATOR),_0x43b0x9=0;_0x43b0x9< _0x43b0x5[_0x5b48[67]];_0x43b0x9++){_0x43b0x4= _0x43b0x4[_0x5b48[263]](parseInt(_0x43b0x5[_0x43b0x9]))}};return _0x43b0x4},compare:function(_0x43b0x2,_0x43b0x3){for(var _0x43b0x4=Math[_0x5b48[243]](_0x43b0x2[_0x5b48[67]],_0x43b0x3[_0x5b48[67]]),_0x43b0x5=0,_0x43b0x9=0;_0x43b0x9< _0x43b0x4;_0x43b0x9++){if(_0x43b0x2[_0x43b0x9]!= _0x43b0x3[_0x43b0x9]){0== _0x43b0x2[_0x43b0x9][_0x5b48[67]]|| 0== _0x43b0x3[_0x43b0x9][_0x5b48[67]]?_0x43b0x5= _0x43b0x2[_0x43b0x9]== _0x43b0x3[_0x43b0x9]?0:_0x43b0x2[_0x43b0x9]> _0x43b0x3[_0x43b0x9]?1:-1:(_0x43b0x4= parseInt(_0x43b0x2[_0x43b0x9]),_0x43b0x9= parseInt(_0x43b0x3[_0x43b0x9]),_0x43b0x5= _0x43b0x4== _0x43b0x9?0:_0x43b0x4> _0x43b0x9?1:-1);break}};0== _0x43b0x5&& (_0x43b0x4= _0x43b0x2[_0x5b48[67]],_0x43b0x9= _0x43b0x3[_0x5b48[67]],_0x43b0x4!= _0x43b0x9&& (_0x43b0x5= _0x43b0x4> _0x43b0x9?1:-1));return _0x43b0x5}},mxPerimeter={RectanglePerimeter:function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){_0x43b0x3= _0x43b0x2[_0x5b48[241]]();var _0x43b0x9=_0x43b0x2[_0x5b48[242]](),_0x43b0xa=Math[_0x5b48[429]](_0x43b0x4[_0x5b48[236]]- _0x43b0x9,_0x43b0x4[_0x5b48[235]]- _0x43b0x3),_0x43b0x12= new mxPoint(0,0),_0x43b0x13=Math[_0x5b48[424]],_0x43b0x14=Math[_0x5b48[424]]/ 2- _0x43b0xa,_0x43b0x15=Math[_0x5b48[429]](_0x43b0x2[_0x5b48[119]],_0x43b0x2[_0x5b48[117]]);_0x43b0xa< -_0x43b0x13+ _0x43b0x15|| _0x43b0xa> _0x43b0x13- _0x43b0x15?(_0x43b0x12[_0x5b48[235]]= _0x43b0x2[_0x5b48[235]],_0x43b0x12[_0x5b48[236]]= _0x43b0x9- _0x43b0x2[_0x5b48[117]]* Math[_0x5b48[2008]](_0x43b0xa)/ 2):_0x43b0xa< -_0x43b0x15?(_0x43b0x12[_0x5b48[236]]= _0x43b0x2[_0x5b48[236]],_0x43b0x12[_0x5b48[235]]= _0x43b0x3- _0x43b0x2[_0x5b48[119]]* Math[_0x5b48[2008]](_0x43b0x14)/ 2):_0x43b0xa< _0x43b0x15?(_0x43b0x12[_0x5b48[235]]= _0x43b0x2[_0x5b48[235]]+ _0x43b0x2[_0x5b48[117]],_0x43b0x12[_0x5b48[236]]= _0x43b0x9+ _0x43b0x2[_0x5b48[117]]* Math[_0x5b48[2008]](_0x43b0xa)/ 2):(_0x43b0x12[_0x5b48[236]]= _0x43b0x2[_0x5b48[236]]+ _0x43b0x2[_0x5b48[119]],_0x43b0x12[_0x5b48[235]]= _0x43b0x3+ _0x43b0x2[_0x5b48[119]]* Math[_0x5b48[2008]](_0x43b0x14)/ 2);_0x43b0x5&& (_0x43b0x4[_0x5b48[235]]>= _0x43b0x2[_0x5b48[235]]&& _0x43b0x4[_0x5b48[235]]<= _0x43b0x2[_0x5b48[235]]+ _0x43b0x2[_0x5b48[117]]?_0x43b0x12[_0x5b48[235]]= _0x43b0x4[_0x5b48[235]]:_0x43b0x4[_0x5b48[236]]>= _0x43b0x2[_0x5b48[236]]&& _0x43b0x4[_0x5b48[236]]<= _0x43b0x2[_0x5b48[236]]+ _0x43b0x2[_0x5b48[119]]&& (_0x43b0x12[_0x5b48[236]]= _0x43b0x4[_0x5b48[236]]),_0x43b0x4[_0x5b48[235]]< _0x43b0x2[_0x5b48[235]]?_0x43b0x12[_0x5b48[235]]= _0x43b0x2[_0x5b48[235]]:_0x43b0x4[_0x5b48[235]]> _0x43b0x2[_0x5b48[235]]+ _0x43b0x2[_0x5b48[117]]&& (_0x43b0x12[_0x5b48[235]]= _0x43b0x2[_0x5b48[235]]+ _0x43b0x2[_0x5b48[117]]),_0x43b0x4[_0x5b48[236]]< _0x43b0x2[_0x5b48[236]]?_0x43b0x12[_0x5b48[236]]= _0x43b0x2[_0x5b48[236]]:_0x43b0x4[_0x5b48[236]]> _0x43b0x2[_0x5b48[236]]+ _0x43b0x2[_0x5b48[119]]&& (_0x43b0x12[_0x5b48[236]]= _0x43b0x2[_0x5b48[236]]+ _0x43b0x2[_0x5b48[119]]));return _0x43b0x12},EllipsePerimeter:function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){var _0x43b0x9=_0x43b0x2[_0x5b48[235]],_0x43b0xa=_0x43b0x2[_0x5b48[236]],_0x43b0x12=_0x43b0x2[_0x5b48[117]]/ 2,_0x43b0x13=_0x43b0x2[_0x5b48[119]]/ 2,_0x43b0x14=_0x43b0x9+ _0x43b0x12,_0x43b0x15=_0x43b0xa+ _0x43b0x13;_0x43b0x3= _0x43b0x4[_0x5b48[235]];_0x43b0x4= _0x43b0x4[_0x5b48[236]];var _0x43b0x16=parseInt(_0x43b0x3- _0x43b0x14),_0x43b0x17=parseInt(_0x43b0x4- _0x43b0x15);if(0== _0x43b0x16&& 0!= _0x43b0x17){return new mxPoint(_0x43b0x14,_0x43b0x15+ _0x43b0x13* _0x43b0x17/ Math[_0x5b48[425]](_0x43b0x17))};if(0== _0x43b0x16&& 0== _0x43b0x17){return new mxPoint(_0x43b0x3,_0x43b0x4)};if(_0x43b0x5){if(_0x43b0x4>= _0x43b0xa&& _0x43b0x4<= _0x43b0xa+ _0x43b0x2[_0x5b48[119]]){return _0x43b0x2= _0x43b0x4- _0x43b0x15,_0x43b0x2= Math[_0x5b48[428]](_0x43b0x12* _0x43b0x12* (1- _0x43b0x2* _0x43b0x2/ (_0x43b0x13* _0x43b0x13)))|| 0,_0x43b0x3<= _0x43b0x9&& (_0x43b0x2= -_0x43b0x2), new mxPoint(_0x43b0x14+ _0x43b0x2,_0x43b0x4)};if(_0x43b0x3>= _0x43b0x9&& _0x43b0x3<= _0x43b0x9+ _0x43b0x2[_0x5b48[117]]){return _0x43b0x2= _0x43b0x3- _0x43b0x14,_0x43b0x2= Math[_0x5b48[428]](_0x43b0x13* _0x43b0x13* (1- _0x43b0x2* _0x43b0x2/ (_0x43b0x12* _0x43b0x12)))|| 0,_0x43b0x4<= _0x43b0xa&& (_0x43b0x2= -_0x43b0x2), new mxPoint(_0x43b0x3,_0x43b0x15+ _0x43b0x2)}};_0x43b0x9= _0x43b0x17/ _0x43b0x16;_0x43b0x15-= _0x43b0x9* _0x43b0x14;_0x43b0xa= _0x43b0x12* _0x43b0x12* _0x43b0x9* _0x43b0x9+ _0x43b0x13* _0x43b0x13;_0x43b0x2= -2* _0x43b0x14 * _0x43b0xa;_0x43b0x13= Math[_0x5b48[428]](_0x43b0x2* _0x43b0x2- 4* _0x43b0xa* (_0x43b0x12* _0x43b0x12* _0x43b0x9* _0x43b0x9* _0x43b0x14* _0x43b0x14+ _0x43b0x13* _0x43b0x13* _0x43b0x14* _0x43b0x14- _0x43b0x12* _0x43b0x12* _0x43b0x13* _0x43b0x13));_0x43b0x12= (-_0x43b0x2+ _0x43b0x13) / (2* _0x43b0xa);_0x43b0x13= (-_0x43b0x2- _0x43b0x13) / (2* _0x43b0xa);_0x43b0x14= _0x43b0x9* _0x43b0x12+ _0x43b0x15;_0x43b0x15= _0x43b0x9* _0x43b0x13+ _0x43b0x15;_0x43b0x9= Math[_0x5b48[428]](Math[_0x5b48[2009]](_0x43b0x12- _0x43b0x3,2)+ Math[_0x5b48[2009]](_0x43b0x14- _0x43b0x4,2));_0x43b0x3= Math[_0x5b48[428]](Math[_0x5b48[2009]](_0x43b0x13- _0x43b0x3,2)+ Math[_0x5b48[2009]](_0x43b0x15- _0x43b0x4,2));_0x43b0xa= _0x43b0x4= 0;_0x43b0x9< _0x43b0x3?(_0x43b0x4= _0x43b0x12,_0x43b0xa= _0x43b0x14):(_0x43b0x4= _0x43b0x13,_0x43b0xa= _0x43b0x15);return new mxPoint(_0x43b0x4,_0x43b0xa)},RhombusPerimeter:function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){_0x43b0x3= _0x43b0x2[_0x5b48[235]];var _0x43b0x9=_0x43b0x2[_0x5b48[236]],_0x43b0xa=_0x43b0x2[_0x5b48[117]];_0x43b0x2= _0x43b0x2[_0x5b48[119]];var _0x43b0x12=_0x43b0x3+ _0x43b0xa/ 2,_0x43b0x13=_0x43b0x9+ _0x43b0x2/ 2,_0x43b0x14=_0x43b0x4[_0x5b48[235]];_0x43b0x4= _0x43b0x4[_0x5b48[236]];if(_0x43b0x12== _0x43b0x14){return _0x43b0x13> _0x43b0x4? new mxPoint(_0x43b0x12,_0x43b0x9): new mxPoint(_0x43b0x12,_0x43b0x9+ _0x43b0x2)};if(_0x43b0x13== _0x43b0x4){return _0x43b0x12> _0x43b0x14? new mxPoint(_0x43b0x3,_0x43b0x13): new mxPoint(_0x43b0x3+ _0x43b0xa,_0x43b0x13)};var _0x43b0x15=_0x43b0x12,_0x43b0x16=_0x43b0x13;_0x43b0x5&& (_0x43b0x14>= _0x43b0x3&& _0x43b0x14<= _0x43b0x3+ _0x43b0xa?_0x43b0x15= _0x43b0x14:_0x43b0x4>= _0x43b0x9&& _0x43b0x4<= _0x43b0x9+ _0x43b0x2&& (_0x43b0x16= _0x43b0x4));return _0x43b0x14< _0x43b0x12?_0x43b0x4< _0x43b0x13?mxUtils[_0x5b48[2010]](_0x43b0x14,_0x43b0x4,_0x43b0x15,_0x43b0x16,_0x43b0x12,_0x43b0x9,_0x43b0x3,_0x43b0x13):mxUtils[_0x5b48[2010]](_0x43b0x14,_0x43b0x4,_0x43b0x15,_0x43b0x16,_0x43b0x12,_0x43b0x9+ _0x43b0x2,_0x43b0x3,_0x43b0x13):_0x43b0x4< _0x43b0x13?mxUtils[_0x5b48[2010]](_0x43b0x14,_0x43b0x4,_0x43b0x15,_0x43b0x16,_0x43b0x12,_0x43b0x9,_0x43b0x3+ _0x43b0xa,_0x43b0x13):mxUtils[_0x5b48[2010]](_0x43b0x14,_0x43b0x4,_0x43b0x15,_0x43b0x16,_0x43b0x12,_0x43b0x9+ _0x43b0x2,_0x43b0x3+ _0x43b0xa,_0x43b0x13)},TrianglePerimeter:function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){_0x43b0x3= null!= _0x43b0x3?_0x43b0x3[_0x5b48[124]][mxConstants[_0x5b48[2011]]]:null;var _0x43b0x9=_0x43b0x3== mxConstants[_0x5b48[1358]]|| _0x43b0x3== mxConstants[_0x5b48[1354]],_0x43b0xa=_0x43b0x2[_0x5b48[235]],_0x43b0x12=_0x43b0x2[_0x5b48[236]],_0x43b0x13=_0x43b0x2[_0x5b48[117]];_0x43b0x2= _0x43b0x2[_0x5b48[119]];var _0x43b0x14=_0x43b0xa+ _0x43b0x13/ 2,_0x43b0x15=_0x43b0x12+ _0x43b0x2/ 2,_0x43b0x16= new mxPoint(_0x43b0xa,_0x43b0x12),_0x43b0x17= new mxPoint(_0x43b0xa+ _0x43b0x13,_0x43b0x15),_0x43b0x18= new mxPoint(_0x43b0xa,_0x43b0x12+ _0x43b0x2);_0x43b0x3== mxConstants[_0x5b48[1358]]?(_0x43b0x16= _0x43b0x18,_0x43b0x17= new mxPoint(_0x43b0x14,_0x43b0x12),_0x43b0x18= new mxPoint(_0x43b0xa+ _0x43b0x13,_0x43b0x12+ _0x43b0x2)):_0x43b0x3== mxConstants[_0x5b48[1354]]?(_0x43b0x17= new mxPoint(_0x43b0x14,_0x43b0x12+ _0x43b0x2),_0x43b0x18= new mxPoint(_0x43b0xa+ _0x43b0x13,_0x43b0x12)):_0x43b0x3== mxConstants[_0x5b48[1359]]&& (_0x43b0x16= new mxPoint(_0x43b0xa+ _0x43b0x13,_0x43b0x12),_0x43b0x17= new mxPoint(_0x43b0xa,_0x43b0x15),_0x43b0x18= new mxPoint(_0x43b0xa+ _0x43b0x13,_0x43b0x12+ _0x43b0x2));var _0x43b0x19=_0x43b0x4[_0x5b48[235]]- _0x43b0x14,_0x43b0x1a=_0x43b0x4[_0x5b48[236]]- _0x43b0x15,_0x43b0x19=_0x43b0x9?Math[_0x5b48[429]](_0x43b0x19,_0x43b0x1a):Math[_0x5b48[429]](_0x43b0x1a,_0x43b0x19),_0x43b0x1b=_0x43b0x9?Math[_0x5b48[429]](_0x43b0x13,_0x43b0x2):Math[_0x5b48[429]](_0x43b0x2,_0x43b0x13),_0x43b0x1a=!1,_0x43b0x1a=_0x43b0x3== mxConstants[_0x5b48[1358]]|| _0x43b0x3== mxConstants[_0x5b48[1359]]?_0x43b0x19> -_0x43b0x1b&& _0x43b0x19< _0x43b0x1b:_0x43b0x19< -Math[_0x5b48[424]]+ _0x43b0x1b|| _0x43b0x19> Math[_0x5b48[424]]- _0x43b0x1b,_0x43b0x1b=null;_0x43b0x1a?_0x43b0x1b= _0x43b0x5&& (_0x43b0x9&& _0x43b0x4[_0x5b48[235]]>= _0x43b0x16[_0x5b48[235]]&& _0x43b0x4[_0x5b48[235]]<= _0x43b0x18[_0x5b48[235]]|| !_0x43b0x9&& _0x43b0x4[_0x5b48[236]]>= _0x43b0x16[_0x5b48[236]] && _0x43b0x4[_0x5b48[236]]<= _0x43b0x18[_0x5b48[236]])?_0x43b0x9? new mxPoint(_0x43b0x4[_0x5b48[235]],_0x43b0x16[_0x5b48[236]]): new mxPoint(_0x43b0x16[_0x5b48[235]],_0x43b0x4[_0x5b48[236]]):_0x43b0x3== mxConstants[_0x5b48[1358]]? new mxPoint(_0x43b0xa+ _0x43b0x13/ 2+ _0x43b0x2* Math[_0x5b48[2008]](_0x43b0x19)/ 2,_0x43b0x12+ _0x43b0x2):_0x43b0x3== mxConstants[_0x5b48[1354]]? new mxPoint(_0x43b0xa+ _0x43b0x13/ 2- _0x43b0x2* Math[_0x5b48[2008]](_0x43b0x19)/ 2,_0x43b0x12):_0x43b0x3== mxConstants[_0x5b48[1359]]? new mxPoint(_0x43b0xa+ _0x43b0x13,_0x43b0x12+ _0x43b0x2/ 2+ _0x43b0x13* Math[_0x5b48[2008]](_0x43b0x19)/ 2): new mxPoint(_0x43b0xa,_0x43b0x12+ _0x43b0x2/ 2- _0x43b0x13* Math[_0x5b48[2008]](_0x43b0x19)/ 2):(_0x43b0x5&& (_0x43b0x5= new mxPoint(_0x43b0x14,_0x43b0x15),_0x43b0x4[_0x5b48[236]]>= _0x43b0x12&& _0x43b0x4[_0x5b48[236]]<= _0x43b0x12+ _0x43b0x2?(_0x43b0x5[_0x5b48[235]]= _0x43b0x9?_0x43b0x14:_0x43b0x3== mxConstants[_0x5b48[1359]]?_0x43b0xa+ _0x43b0x13:_0x43b0xa,_0x43b0x5[_0x5b48[236]]= _0x43b0x4[_0x5b48[236]]):_0x43b0x4[_0x5b48[235]]>= _0x43b0xa&& _0x43b0x4[_0x5b48[235]]<= _0x43b0xa+ _0x43b0x13&& (_0x43b0x5[_0x5b48[235]]= _0x43b0x4[_0x5b48[235]],_0x43b0x5[_0x5b48[236]]= !_0x43b0x9?_0x43b0x15:_0x43b0x3== mxConstants[_0x5b48[1358]]?_0x43b0x12+ _0x43b0x2:_0x43b0x12),_0x43b0x14= _0x43b0x5[_0x5b48[235]],_0x43b0x15= _0x43b0x5[_0x5b48[236]]),_0x43b0x1b= _0x43b0x9&& _0x43b0x4[_0x5b48[235]]<= _0x43b0xa+ _0x43b0x13/ 2|| !_0x43b0x9&& _0x43b0x4[_0x5b48[236]]<= _0x43b0x12+ _0x43b0x2/ 2?mxUtils[_0x5b48[2010]](_0x43b0x4[_0x5b48[235]],_0x43b0x4[_0x5b48[236]],_0x43b0x14,_0x43b0x15,_0x43b0x16[_0x5b48[235]],_0x43b0x16[_0x5b48[236]],_0x43b0x17[_0x5b48[235]],_0x43b0x17[_0x5b48[236]]):mxUtils[_0x5b48[2010]](_0x43b0x4[_0x5b48[235]],_0x43b0x4[_0x5b48[236]],_0x43b0x14,_0x43b0x15,_0x43b0x17[_0x5b48[235]],_0x43b0x17[_0x5b48[236]],_0x43b0x18[_0x5b48[235]],_0x43b0x18[_0x5b48[236]]));null== _0x43b0x1b&& (_0x43b0x1b= new mxPoint(_0x43b0x14,_0x43b0x15));return _0x43b0x1b}};function mxPrintPreview(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa,_0x43b0x12,_0x43b0x13,_0x43b0x14){this[_0x5b48[1179]]= _0x43b0x2;this[_0x5b48[255]]= null!= _0x43b0x3?_0x43b0x3:1/ _0x43b0x2[_0x5b48[2012]];this[_0x5b48[467]]= null!= _0x43b0x5?_0x43b0x5:0;this[_0x5b48[2013]]= null!= _0x43b0x4?_0x43b0x4:_0x43b0x2[_0x5b48[2013]];this[_0x5b48[924]]= null!= _0x43b0x13?_0x43b0x13:_0x5b48[2014];this[_0x5b48[1732]]= null!= _0x43b0x9?_0x43b0x9:0;this[_0x5b48[1733]]= null!= _0x43b0xa?_0x43b0xa:0;this[_0x5b48[1630]]= _0x43b0x12;this[_0x5b48[2015]]= null!= _0x43b0x14?_0x43b0x14:!0}mxPrintPreview[_0x5b48[202]][_0x5b48[1179]]= null;mxPrintPreview[_0x5b48[202]][_0x5b48[2013]]= null;mxPrintPreview[_0x5b48[202]][_0x5b48[255]]= null;mxPrintPreview[_0x5b48[202]][_0x5b48[467]]= 0;mxPrintPreview[_0x5b48[202]][_0x5b48[1732]]= 0;mxPrintPreview[_0x5b48[202]][_0x5b48[1733]]= 0;mxPrintPreview[_0x5b48[202]][_0x5b48[2016]]= !0;mxPrintPreview[_0x5b48[202]][_0x5b48[2017]]= !1;mxPrintPreview[_0x5b48[202]][_0x5b48[1630]]= null;mxPrintPreview[_0x5b48[202]][_0x5b48[924]]= null;mxPrintPreview[_0x5b48[202]][_0x5b48[2015]]= null;mxPrintPreview[_0x5b48[202]][_0x5b48[2018]]= null;mxPrintPreview[_0x5b48[202]][_0x5b48[2019]]= 0;mxPrintPreview[_0x5b48[202]][_0x5b48[2020]]= function(){return this[_0x5b48[2018]]};mxPrintPreview[_0x5b48[202]][_0x5b48[2021]]= function(){var _0x43b0x2=_0x5b48[110];8== document[_0x5b48[5]]&& (_0x43b0x2= _0x5b48[2022]);return _0x43b0x2};mxPrintPreview[_0x5b48[202]][_0x5b48[392]]= function(_0x43b0x2){var _0x43b0x3=this[_0x5b48[1179]][_0x5b48[259]][_0x5b48[2023]],_0x43b0x4=null;try{this[_0x5b48[2017]]&& (this[_0x5b48[1179]][_0x5b48[259]][_0x5b48[2023]]= function(_0x43b0x2,_0x43b0x3){_0x43b0x3[_0x5b48[176]](_0x43b0x2[_0x5b48[441]][_0x5b48[2024]]())});if(null== this[_0x5b48[2018]]){this[_0x5b48[2018]]= window[_0x5b48[392]]();var _0x43b0x5=this[_0x5b48[2018]][_0x5b48[395]],_0x43b0x9=this[_0x5b48[2021]]();null!= _0x43b0x9&& 0< _0x43b0x9[_0x5b48[67]]&& _0x43b0x5[_0x5b48[171]](_0x43b0x9);_0x43b0x5[_0x5b48[171]](_0x5b48[528]);_0x43b0x5[_0x5b48[171]](_0x5b48[531]);this[_0x5b48[2025]](_0x43b0x5,_0x43b0x2);_0x43b0x5[_0x5b48[171]](_0x5b48[533]);_0x43b0x5[_0x5b48[171]](_0x5b48[2026]);mxClient[_0x5b48[54]](_0x5b48[94],mxClient[_0x5b48[86]]+ _0x5b48[95],_0x43b0x5);mxClient[_0x5b48[47]]&& (_0x43b0x5[_0x5b48[100]][_0x5b48[99]](_0x5b48[6],_0x5b48[97]),_0x43b0x5[_0x5b48[100]][_0x5b48[99]](_0x5b48[7],_0x5b48[101]),_0x43b0x5[_0x5b48[102]]()[_0x5b48[103]]= _0x5b48[104],mxClient[_0x5b48[54]](_0x5b48[94],mxClient[_0x5b48[86]]+ _0x5b48[105],_0x43b0x5));var _0x43b0xa=this[_0x5b48[1179]][_0x5b48[517]]()[_0x5b48[238]](),_0x43b0x12=this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[518]](),_0x43b0x13=_0x43b0x12/ this[_0x5b48[255]],_0x43b0x14=this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[512]]();this[_0x5b48[2016]]|| (this[_0x5b48[1732]]= -_0x43b0x14[_0x5b48[235]]* this[_0x5b48[255]],this[_0x5b48[1733]]= -_0x43b0x14[_0x5b48[236]]* this[_0x5b48[255]],_0x43b0xa[_0x5b48[117]]+= _0x43b0xa[_0x5b48[235]],_0x43b0xa[_0x5b48[119]]+= _0x43b0xa[_0x5b48[236]],_0x43b0xa[_0x5b48[235]]= 0,this[_0x5b48[467]]= _0x43b0xa[_0x5b48[236]]= 0);_0x43b0xa[_0x5b48[117]]/= _0x43b0x13;_0x43b0xa[_0x5b48[119]]/= _0x43b0x13;var _0x43b0x15=this[_0x5b48[2013]][_0x5b48[117]]- 2* this[_0x5b48[467]],_0x43b0x16=this[_0x5b48[2013]][_0x5b48[119]]- 2* this[_0x5b48[467]],_0x43b0x17=Math[_0x5b48[160]](1,Math[_0x5b48[430]]((_0x43b0xa[_0x5b48[117]]+ this[_0x5b48[1732]])/ _0x43b0x15)),_0x43b0x18=Math[_0x5b48[160]](1,Math[_0x5b48[430]]((_0x43b0xa[_0x5b48[119]]+ this[_0x5b48[1733]])/ _0x43b0x16));this[_0x5b48[2019]]= _0x43b0x17* _0x43b0x18;var _0x43b0x19=mxUtils[_0x5b48[885]](this,function(){if(this[_0x5b48[2015]]&& (1< _0x43b0x18|| 1< _0x43b0x17)){var _0x43b0x2=this[_0x5b48[2027]](_0x43b0x18,_0x43b0x17);_0x43b0x5[_0x5b48[112]][_0x5b48[62]](_0x43b0x2);if(mxClient[_0x5b48[80]]){_0x43b0x2[_0x5b48[124]][_0x5b48[491]]= _0x5b48[492];var _0x43b0x3=function(){_0x43b0x2[_0x5b48[124]][_0x5b48[125]]= _0x43b0x5[_0x5b48[112]][_0x5b48[190]]+ 10+ _0x5b48[168]};mxEvent[_0x5b48[169]](this[_0x5b48[2018]],_0x5b48[276],function(_0x43b0x2){_0x43b0x3()});mxEvent[_0x5b48[169]](this[_0x5b48[2018]],_0x5b48[129],function(_0x43b0x2){_0x43b0x3()})}}});_0x43b0x2= function(_0x43b0x2,_0x43b0x3){null!= this[_0x5b48[1630]]&& (_0x43b0x2[_0x5b48[124]][_0x5b48[1630]]= this[_0x5b48[1630]],_0x43b0x2[_0x5b48[124]][_0x5b48[465]]= _0x5b48[1631],_0x43b0x2[_0x5b48[124]][_0x5b48[1629]]= _0x5b48[942]);_0x43b0x2[_0x5b48[124]][_0x5b48[1537]]= _0x5b48[1391];_0x43b0x3&& (_0x43b0x2[_0x5b48[124]][_0x5b48[2028]]= _0x5b48[2029]);mxClient[_0x5b48[80]]?(_0x43b0x5[_0x5b48[171]](_0x43b0x2[_0x5b48[342]]),_0x43b0x2[_0x5b48[265]][_0x5b48[266]](_0x43b0x2)):(_0x43b0x2[_0x5b48[265]][_0x5b48[266]](_0x43b0x2),_0x43b0x5[_0x5b48[112]][_0x5b48[62]](_0x43b0x2));if(_0x43b0x3){var _0x43b0x4=_0x43b0x5[_0x5b48[55]](_0x5b48[1054]);_0x43b0x4[_0x5b48[926]]= _0x5b48[2030];_0x43b0x5[_0x5b48[112]][_0x5b48[62]](_0x43b0x4)}};var _0x43b0x1a=this[_0x5b48[2031]](this[_0x5b48[2013]][_0x5b48[117]],this[_0x5b48[2013]][_0x5b48[119]]);if(null!= _0x43b0x1a){for(var _0x43b0x1b=0;_0x43b0x1b< _0x43b0x1a[_0x5b48[67]];_0x43b0x1b++){_0x43b0x2(_0x43b0x1a[_0x43b0x1b],!0)}};for(var _0x43b0x1c=this[_0x5b48[2032]](this[_0x5b48[2013]][_0x5b48[117]],this[_0x5b48[2013]][_0x5b48[119]]),_0x43b0x1b=0;_0x43b0x1b< _0x43b0x18;_0x43b0x1b++){for(var _0x43b0x1d=_0x43b0x1b* _0x43b0x16/ this[_0x5b48[255]]- this[_0x5b48[1733]]/ this[_0x5b48[255]]+ (_0x43b0xa[_0x5b48[236]]- _0x43b0x14[_0x5b48[236]]* _0x43b0x12)/ _0x43b0x12,_0x43b0x1a=0;_0x43b0x1a< _0x43b0x17;_0x43b0x1a++){if(null== this[_0x5b48[2018]]){return null};var _0x43b0x1e=_0x43b0x1a* _0x43b0x15/ this[_0x5b48[255]]- this[_0x5b48[1732]]/ this[_0x5b48[255]]+ (_0x43b0xa[_0x5b48[235]]- _0x43b0x14[_0x5b48[235]]* _0x43b0x12)/ _0x43b0x12,_0x43b0x1f=_0x43b0x1b* _0x43b0x17+ _0x43b0x1a+ 1,_0x43b0x4=this[_0x5b48[2034]](this[_0x5b48[2013]][_0x5b48[117]],this[_0x5b48[2013]][_0x5b48[119]],mxUtils[_0x5b48[885]](this,function(_0x43b0x2){this[_0x5b48[2033]](-_0x43b0x1e,-_0x43b0x1d,this[_0x5b48[255]],_0x43b0x1f,_0x43b0x2)}));_0x43b0x4[_0x5b48[57]](_0x5b48[1363],_0x5b48[2035]+ _0x43b0x1f);_0x43b0x2(_0x43b0x4,null!= _0x43b0x1c|| _0x43b0x1b< _0x43b0x18- 1|| _0x43b0x1a< _0x43b0x17- 1)}};if(null!= _0x43b0x1c){for(_0x43b0x1b= 0;_0x43b0x1b< _0x43b0x1c[_0x5b48[67]];_0x43b0x1b++){_0x43b0x2(_0x43b0x1c[_0x43b0x1b],_0x43b0x1b< _0x43b0x1c[_0x5b48[67]])}};_0x43b0x5[_0x5b48[171]](_0x5b48[527]);_0x43b0x5[_0x5b48[171]](_0x5b48[534]);_0x43b0x5[_0x5b48[268]]();_0x43b0x19();mxEvent[_0x5b48[762]](_0x43b0x5[_0x5b48[112]])};this[_0x5b48[2018]][_0x5b48[393]]()}catch(y){null!= _0x43b0x4&& null!= _0x43b0x4[_0x5b48[265]]&& _0x43b0x4[_0x5b48[265]][_0x5b48[266]](_0x43b0x4)}finally{this[_0x5b48[1179]][_0x5b48[259]][_0x5b48[2023]]= _0x43b0x3};return this[_0x5b48[2018]]};mxPrintPreview[_0x5b48[202]][_0x5b48[2025]]= function(_0x43b0x2,_0x43b0x3){null!= this[_0x5b48[924]]&& _0x43b0x2[_0x5b48[171]](_0x5b48[2036]+ this[_0x5b48[924]]+ _0x5b48[2037]);_0x43b0x2[_0x5b48[171]](_0x5b48[2038]);_0x43b0x2[_0x5b48[171]](_0x5b48[2039]);_0x43b0x2[_0x5b48[171]](_0x5b48[2040]);_0x43b0x2[_0x5b48[171]](_0x5b48[2041]);_0x43b0x2[_0x5b48[171]](_0x5b48[233]);_0x43b0x2[_0x5b48[171]](_0x5b48[2042]);_0x43b0x2[_0x5b48[171]](_0x5b48[2043]);_0x43b0x2[_0x5b48[171]](_0x5b48[2044]);_0x43b0x2[_0x5b48[171]](_0x5b48[2045]);_0x43b0x2[_0x5b48[171]](_0x5b48[233]);null!= _0x43b0x3&& _0x43b0x2[_0x5b48[171]](_0x43b0x3);_0x43b0x2[_0x5b48[171]](_0x5b48[2046])};mxPrintPreview[_0x5b48[202]][_0x5b48[2027]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=this[_0x5b48[2018]][_0x5b48[395]],_0x43b0x5=_0x43b0x4[_0x5b48[55]](_0x5b48[116]);_0x43b0x5[_0x5b48[926]]= _0x5b48[2047];_0x43b0x5[_0x5b48[57]](_0x5b48[467],_0x5b48[468]);for(var _0x43b0x9=_0x43b0x4[_0x5b48[55]](_0x5b48[120]),_0x43b0xa=0;_0x43b0xa< _0x43b0x2;_0x43b0xa++){for(var _0x43b0x12=_0x43b0x4[_0x5b48[55]](_0x5b48[121]),_0x43b0x13=0;_0x43b0x13< _0x43b0x3;_0x43b0x13++){var _0x43b0x14=_0x43b0xa* _0x43b0x3+ _0x43b0x13+ 1,_0x43b0x15=_0x43b0x4[_0x5b48[55]](_0x5b48[122]);if(!mxClient[_0x5b48[133]]|| mxClient[_0x5b48[75]] || mxClient[_0x5b48[76]]){var _0x43b0x16=_0x43b0x4[_0x5b48[55]](_0x5b48[2048]);_0x43b0x16[_0x5b48[57]](_0x5b48[44],_0x5b48[2049]+ _0x43b0x14);mxUtils[_0x5b48[53]](_0x43b0x16,_0x43b0x14,_0x43b0x4);_0x43b0x15[_0x5b48[62]](_0x43b0x16)}else {mxUtils[_0x5b48[53]](_0x43b0x15,_0x43b0x14,_0x43b0x4)};_0x43b0x12[_0x5b48[62]](_0x43b0x15)};_0x43b0x9[_0x5b48[62]](_0x43b0x12)};_0x43b0x5[_0x5b48[62]](_0x43b0x9);return _0x43b0x5};mxPrintPreview[_0x5b48[202]][_0x5b48[2034]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){var _0x43b0x5=document[_0x5b48[55]](_0x5b48[485]);try{_0x43b0x5[_0x5b48[124]][_0x5b48[117]]= _0x43b0x2+ _0x5b48[168];_0x43b0x5[_0x5b48[124]][_0x5b48[119]]= _0x43b0x3+ _0x5b48[168];_0x43b0x5[_0x5b48[124]][_0x5b48[277]]= _0x5b48[188];_0x43b0x5[_0x5b48[124]][_0x5b48[2050]]= _0x5b48[1824];_0x43b0x5[_0x5b48[124]][_0x5b48[491]]= _0x5b48[1500];var _0x43b0x9=document[_0x5b48[55]](_0x5b48[485]);_0x43b0x9[_0x5b48[124]][_0x5b48[125]]= this[_0x5b48[467]]+ _0x5b48[168];_0x43b0x9[_0x5b48[124]][_0x5b48[361]]= this[_0x5b48[467]]+ _0x5b48[168];_0x43b0x9[_0x5b48[124]][_0x5b48[117]]= _0x43b0x2- 2* this[_0x5b48[467]]+ _0x5b48[168];_0x43b0x9[_0x5b48[124]][_0x5b48[119]]= _0x43b0x3- 2* this[_0x5b48[467]]+ _0x5b48[168];_0x43b0x9[_0x5b48[124]][_0x5b48[277]]= _0x5b48[188];this[_0x5b48[1179]][_0x5b48[507]]== mxConstants[_0x5b48[1523]]&& (_0x43b0x9[_0x5b48[124]][_0x5b48[491]]= _0x5b48[492]);_0x43b0x5[_0x5b48[62]](_0x43b0x9);document[_0x5b48[112]][_0x5b48[62]](_0x43b0x5);_0x43b0x4(_0x43b0x9)}catch(f){throw _0x43b0x5[_0x5b48[265]][_0x5b48[266]](_0x43b0x5),f};return _0x43b0x5};mxPrintPreview[_0x5b48[202]][_0x5b48[2033]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){_0x43b0x5= this[_0x5b48[1179]][_0x5b48[249]]();var _0x43b0xa=this[_0x5b48[1179]][_0x5b48[526]];this[_0x5b48[1179]][_0x5b48[526]]= _0x43b0x9;var _0x43b0x12=_0x43b0x5[_0x5b48[2051]](),_0x43b0x13=_0x43b0x5[_0x5b48[2052]](),_0x43b0x14=_0x43b0x5[_0x5b48[2024]](),_0x43b0x15=_0x43b0x5[_0x5b48[1524]]();this[_0x5b48[1179]][_0x5b48[507]]== mxConstants[_0x5b48[508]]?_0x43b0x5[_0x5b48[1569]]():this[_0x5b48[1179]][_0x5b48[507]]== mxConstants[_0x5b48[1523]]?_0x43b0x5[_0x5b48[1571]]():_0x43b0x5[_0x5b48[1570]]();var _0x43b0x16=_0x43b0x5[_0x5b48[503]]();_0x43b0x5[_0x5b48[504]](!1);var _0x43b0x17=this[_0x5b48[1179]][_0x5b48[994]]();this[_0x5b48[1179]][_0x5b48[995]](!1);var _0x43b0x18=_0x43b0x5[_0x5b48[512]]();_0x43b0x5[_0x5b48[513]]= new mxPoint(_0x43b0x2,_0x43b0x3);_0x43b0x2= null;try{var _0x43b0x19=[this[_0x5b48[1179]][_0x5b48[502]]()[_0x5b48[501]]()];_0x43b0x2= new mxTemporaryCellStates(_0x43b0x5,_0x43b0x4,_0x43b0x19)}finally{if(mxClient[_0x5b48[80]]){_0x43b0x5[_0x5b48[506]][_0x5b48[339]]= _0x5b48[110]}else {for(_0x43b0x4= _0x43b0x9[_0x5b48[285]];null!= _0x43b0x4;){_0x43b0x19= _0x43b0x4[_0x5b48[287]],_0x43b0x3= _0x43b0x4[_0x5b48[301]][_0x5b48[216]](),_0x5b48[571]== _0x43b0x3?(_0x43b0x4[_0x5b48[57]](_0x5b48[117],parseInt(_0x43b0x9[_0x5b48[124]][_0x5b48[117]])),_0x43b0x4[_0x5b48[57]](_0x5b48[119],parseInt(_0x43b0x9[_0x5b48[124]][_0x5b48[119]]))):_0x5b48[583]!= _0x43b0x4[_0x5b48[124]][_0x5b48[270]]&& _0x5b48[116]!= _0x43b0x3&& _0x43b0x4[_0x5b48[265]][_0x5b48[266]](_0x43b0x4),_0x43b0x4= _0x43b0x19}};_0x43b0x5[_0x5b48[506]][_0x5b48[265]][_0x5b48[266]](_0x43b0x5[_0x5b48[506]]);this[_0x5b48[1179]][_0x5b48[995]](_0x43b0x17);this[_0x5b48[1179]][_0x5b48[526]]= _0x43b0xa;_0x43b0x5[_0x5b48[510]]= _0x43b0x12;_0x43b0x5[_0x5b48[2053]]= _0x43b0x13;_0x43b0x5[_0x5b48[505]]= _0x43b0x14;_0x43b0x5[_0x5b48[506]]= _0x43b0x15;_0x43b0x5[_0x5b48[513]]= _0x43b0x18;_0x43b0x2[_0x5b48[515]]();_0x43b0x5[_0x5b48[504]](_0x43b0x16)}};mxPrintPreview[_0x5b48[202]][_0x5b48[2031]]= function(){return null};mxPrintPreview[_0x5b48[202]][_0x5b48[2032]]= function(){return null};mxPrintPreview[_0x5b48[202]][_0x5b48[540]]= function(){var _0x43b0x2=this[_0x5b48[392]]();null!= _0x43b0x2&& _0x43b0x2[_0x5b48[540]]()};mxPrintPreview[_0x5b48[202]][_0x5b48[268]]= function(){null!= this[_0x5b48[2018]]&& (this[_0x5b48[2018]][_0x5b48[268]](),this[_0x5b48[2018]]= null)};function mxStylesheet(){this[_0x5b48[2054]]= {};this[_0x5b48[2056]](this[_0x5b48[2055]]());this[_0x5b48[2058]](this[_0x5b48[2057]]())}mxStylesheet[_0x5b48[202]][_0x5b48[2055]]= function(){var _0x43b0x2={};_0x43b0x2[mxConstants[_0x5b48[2059]]]= mxConstants[_0x5b48[2060]];_0x43b0x2[mxConstants[_0x5b48[2061]]]= mxPerimeter[_0x5b48[2062]];_0x43b0x2[mxConstants[_0x5b48[2063]]]= mxConstants[_0x5b48[481]];_0x43b0x2[mxConstants[_0x5b48[2064]]]= mxConstants[_0x5b48[479]];_0x43b0x2[mxConstants[_0x5b48[2065]]]= _0x5b48[2066];_0x43b0x2[mxConstants[_0x5b48[2067]]]= _0x5b48[2068];_0x43b0x2[mxConstants[_0x5b48[2069]]]= _0x5b48[2070];return _0x43b0x2};mxStylesheet[_0x5b48[202]][_0x5b48[2057]]= function(){var _0x43b0x2={};_0x43b0x2[mxConstants[_0x5b48[2059]]]= mxConstants[_0x5b48[2071]];_0x43b0x2[mxConstants[_0x5b48[1695]]]= mxConstants[_0x5b48[1622]];_0x43b0x2[mxConstants[_0x5b48[2063]]]= mxConstants[_0x5b48[481]];_0x43b0x2[mxConstants[_0x5b48[2064]]]= mxConstants[_0x5b48[479]];_0x43b0x2[mxConstants[_0x5b48[2067]]]= _0x5b48[2068];_0x43b0x2[mxConstants[_0x5b48[2069]]]= _0x5b48[2072];return _0x43b0x2};mxStylesheet[_0x5b48[202]][_0x5b48[2056]]= function(_0x43b0x2){this[_0x5b48[2074]](_0x5b48[2073],_0x43b0x2)};mxStylesheet[_0x5b48[202]][_0x5b48[2058]]= function(_0x43b0x2){this[_0x5b48[2074]](_0x5b48[2075],_0x43b0x2)};mxStylesheet[_0x5b48[202]][_0x5b48[2076]]= function(){return this[_0x5b48[2054]][_0x5b48[2073]]};mxStylesheet[_0x5b48[202]][_0x5b48[2077]]= function(){return this[_0x5b48[2054]][_0x5b48[2075]]};mxStylesheet[_0x5b48[202]][_0x5b48[2074]]= function(_0x43b0x2,_0x43b0x3){this[_0x5b48[2054]][_0x43b0x2]= _0x43b0x3};mxStylesheet[_0x5b48[202]][_0x5b48[1705]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=_0x43b0x3;if(null!= _0x43b0x2&& 0< _0x43b0x2[_0x5b48[67]]){for(var _0x43b0x5=_0x43b0x2[_0x5b48[224]](_0x5b48[471]),_0x43b0x4=null!= _0x43b0x4&& _0x5b48[471]!= _0x43b0x2[_0x5b48[225]](0)?mxUtils[_0x5b48[238]](_0x43b0x4):{},_0x43b0x9=0;_0x43b0x9< _0x43b0x5[_0x5b48[67]];_0x43b0x9++){var _0x43b0xa=_0x43b0x5[_0x43b0x9],_0x43b0x12=_0x43b0xa[_0x5b48[2]](_0x5b48[226]);if(0<= _0x43b0x12){var _0x43b0x13=_0x43b0xa[_0x5b48[85]](0,_0x43b0x12),_0x43b0xa=_0x43b0xa[_0x5b48[85]](_0x43b0x12+ 1);_0x43b0xa== mxConstants[_0x5b48[217]]? delete _0x43b0x4[_0x43b0x13]:mxUtils[_0x5b48[1946]](_0x43b0xa)?_0x43b0x4[_0x43b0x13]= parseFloat(_0x43b0xa):_0x43b0x4[_0x43b0x13]= _0x43b0xa}else {if(_0x43b0xa= this[_0x5b48[2054]][_0x43b0xa],null!= _0x43b0xa){for(_0x43b0x13 in _0x43b0xa){_0x43b0x4[_0x43b0x13]= _0x43b0xa[_0x43b0x13]}}}}};return _0x43b0x4};function mxCellState(_0x43b0x2,_0x43b0x3,_0x43b0x4){this[_0x5b48[441]]= _0x43b0x2;this[_0x5b48[246]]= _0x43b0x3;this[_0x5b48[124]]= _0x43b0x4;this[_0x5b48[2078]]= new mxPoint;this[_0x5b48[2079]]= new mxPoint}mxCellState[_0x5b48[202]]= new mxRectangle;mxCellState[_0x5b48[202]][_0x5b48[196]]= mxCellState;mxCellState[_0x5b48[202]][_0x5b48[441]]= null;mxCellState[_0x5b48[202]][_0x5b48[246]]= null;mxCellState[_0x5b48[202]][_0x5b48[124]]= null;mxCellState[_0x5b48[202]][_0x5b48[2080]]= !0;mxCellState[_0x5b48[202]][_0x5b48[2081]]= !1;mxCellState[_0x5b48[202]][_0x5b48[2082]]= !1;mxCellState[_0x5b48[202]][_0x5b48[2078]]= null;mxCellState[_0x5b48[202]][_0x5b48[439]]= null;mxCellState[_0x5b48[202]][_0x5b48[2079]]= null;mxCellState[_0x5b48[202]][_0x5b48[2083]]= null;mxCellState[_0x5b48[202]][_0x5b48[2084]]= null;mxCellState[_0x5b48[202]][_0x5b48[2085]]= 0;mxCellState[_0x5b48[202]][_0x5b48[67]]= 0;mxCellState[_0x5b48[202]][_0x5b48[2086]]= null;mxCellState[_0x5b48[202]][_0x5b48[253]]= null;mxCellState[_0x5b48[202]][_0x5b48[963]]= null;mxCellState[_0x5b48[202]][_0x5b48[2087]]= function(_0x43b0x2,_0x43b0x3){_0x43b0x2= _0x43b0x2|| 0;_0x43b0x3= null!= _0x43b0x3?_0x43b0x3: new mxRectangle(this[_0x5b48[235]],this[_0x5b48[236]],this[_0x5b48[117]],this[_0x5b48[119]]);if(null!= this[_0x5b48[253]]&& null!= this[_0x5b48[253]][_0x5b48[1561]]){var _0x43b0x4=this[_0x5b48[253]][_0x5b48[1561]][_0x5b48[1548]](this[_0x5b48[124]],_0x43b0x3[_0x5b48[235]],_0x43b0x3[_0x5b48[236]],_0x43b0x3[_0x5b48[117]],_0x43b0x3[_0x5b48[119]]);_0x43b0x3[_0x5b48[235]]= _0x43b0x4[_0x5b48[235]];_0x43b0x3[_0x5b48[236]]= _0x43b0x4[_0x5b48[236]];_0x43b0x3[_0x5b48[117]]= this[_0x5b48[253]][_0x5b48[1561]][_0x5b48[1532]]* _0x43b0x4[_0x5b48[117]];_0x43b0x3[_0x5b48[119]]= this[_0x5b48[253]][_0x5b48[1561]][_0x5b48[1533]]* _0x43b0x4[_0x5b48[119]]};0!= _0x43b0x2&& _0x43b0x3[_0x5b48[244]](_0x43b0x2);return _0x43b0x3};mxCellState[_0x5b48[202]][_0x5b48[2088]]= function(_0x43b0x2,_0x43b0x3){_0x43b0x3?(null== this[_0x5b48[439]]&& (this[_0x5b48[439]]= []),0== this[_0x5b48[439]][_0x5b48[67]]?this[_0x5b48[439]][_0x5b48[207]](_0x43b0x2):this[_0x5b48[439]][0]= _0x43b0x2):null== this[_0x5b48[439]]?(this[_0x5b48[439]]= [],this[_0x5b48[439]][_0x5b48[207]](null),this[_0x5b48[439]][_0x5b48[207]](_0x43b0x2)):1== this[_0x5b48[439]][_0x5b48[67]]?this[_0x5b48[439]][_0x5b48[207]](_0x43b0x2):this[_0x5b48[439]][this[_0x5b48[439]][_0x5b48[67]]- 1]= _0x43b0x2};mxCellState[_0x5b48[202]][_0x5b48[1609]]= function(_0x43b0x2){null!= this[_0x5b48[253]]&& this[_0x5b48[253]][_0x5b48[1609]](_0x43b0x2);null!= this[_0x5b48[963]]&& this[_0x5b48[963]][_0x5b48[1609]](_0x43b0x2)};mxCellState[_0x5b48[202]][_0x5b48[1710]]= function(_0x43b0x2){_0x43b0x2= this[_0x5b48[2089]](_0x43b0x2);return null!= _0x43b0x2?_0x43b0x2[_0x5b48[246]]:null};mxCellState[_0x5b48[202]][_0x5b48[2089]]= function(_0x43b0x2){return _0x43b0x2?this[_0x5b48[2083]]:this[_0x5b48[2084]]};mxCellState[_0x5b48[202]][_0x5b48[2090]]= function(_0x43b0x2,_0x43b0x3){_0x43b0x3?this[_0x5b48[2083]]= _0x43b0x2:this[_0x5b48[2084]]= _0x43b0x2};mxCellState[_0x5b48[202]][_0x5b48[515]]= function(){this[_0x5b48[441]][_0x5b48[1179]][_0x5b48[259]][_0x5b48[515]](this)};mxCellState[_0x5b48[202]][_0x5b48[238]]= function(){var _0x43b0x2= new mxCellState(this[_0x5b48[441]],this[_0x5b48[246]],this[_0x5b48[124]]);if(null!= this[_0x5b48[439]]){_0x43b0x2[_0x5b48[439]]= [];for(var _0x43b0x3=0;_0x43b0x3< this[_0x5b48[439]][_0x5b48[67]];_0x43b0x3++){_0x43b0x2[_0x5b48[439]][_0x43b0x3]= this[_0x5b48[439]][_0x43b0x3][_0x5b48[238]]()}};null!= this[_0x5b48[2078]]&& (_0x43b0x2[_0x5b48[2078]]= this[_0x5b48[2078]][_0x5b48[238]]());null!= this[_0x5b48[2079]]&& (_0x43b0x2[_0x5b48[2079]]= this[_0x5b48[2079]][_0x5b48[238]]());null!= this[_0x5b48[1563]]&& (_0x43b0x2[_0x5b48[1563]]= this[_0x5b48[1563]][_0x5b48[238]]());_0x43b0x2[_0x5b48[2085]]= this[_0x5b48[2085]];_0x43b0x2[_0x5b48[2086]]= this[_0x5b48[2086]];_0x43b0x2[_0x5b48[67]]= this[_0x5b48[67]];_0x43b0x2[_0x5b48[235]]= this[_0x5b48[235]];_0x43b0x2[_0x5b48[236]]= this[_0x5b48[236]];_0x43b0x2[_0x5b48[117]]= this[_0x5b48[117]];_0x43b0x2[_0x5b48[119]]= this[_0x5b48[119]];return _0x43b0x2};function mxGraphSelectionModel(_0x43b0x2){this[_0x5b48[1179]]= _0x43b0x2;this[_0x5b48[895]]= []}mxGraphSelectionModel[_0x5b48[202]]= new mxEventSource;mxGraphSelectionModel[_0x5b48[202]][_0x5b48[196]]= mxGraphSelectionModel;mxGraphSelectionModel[_0x5b48[202]][_0x5b48[2091]]= _0x5b48[130]!= mxClient[_0x5b48[90]]?_0x5b48[819]:_0x5b48[110];mxGraphSelectionModel[_0x5b48[202]][_0x5b48[2092]]= _0x5b48[130]!= mxClient[_0x5b48[90]]?_0x5b48[2093]:_0x5b48[110];mxGraphSelectionModel[_0x5b48[202]][_0x5b48[1179]]= null;mxGraphSelectionModel[_0x5b48[202]][_0x5b48[2094]]= !1;mxGraphSelectionModel[_0x5b48[202]][_0x5b48[2095]]= function(){return this[_0x5b48[2094]]};mxGraphSelectionModel[_0x5b48[202]][_0x5b48[2096]]= function(_0x43b0x2){this[_0x5b48[2094]]= _0x43b0x2};mxGraphSelectionModel[_0x5b48[202]][_0x5b48[2097]]= function(_0x43b0x2){return null!= _0x43b0x2?0<= mxUtils[_0x5b48[2]](this[_0x5b48[895]],_0x43b0x2):!1};mxGraphSelectionModel[_0x5b48[202]][_0x5b48[1107]]= function(){return 0== this[_0x5b48[895]][_0x5b48[67]]};mxGraphSelectionModel[_0x5b48[202]][_0x5b48[200]]= function(){this[_0x5b48[2098]](null,this[_0x5b48[895]])};mxGraphSelectionModel[_0x5b48[202]][_0x5b48[2099]]= function(_0x43b0x2){null!= _0x43b0x2&& this[_0x5b48[2100]]([_0x43b0x2])};mxGraphSelectionModel[_0x5b48[202]][_0x5b48[2100]]= function(_0x43b0x2){if(null!= _0x43b0x2){this[_0x5b48[2094]]&& (_0x43b0x2= [this[_0x5b48[2101]](_0x43b0x2)]);for(var _0x43b0x3=[],_0x43b0x4=0;_0x43b0x4< _0x43b0x2[_0x5b48[67]];_0x43b0x4++){this[_0x5b48[1179]][_0x5b48[2102]](_0x43b0x2[_0x43b0x4])&& _0x43b0x3[_0x5b48[207]](_0x43b0x2[_0x43b0x4])};this[_0x5b48[2098]](_0x43b0x3,this[_0x5b48[895]])}};mxGraphSelectionModel[_0x5b48[202]][_0x5b48[2101]]= function(_0x43b0x2){if(null!= _0x43b0x2){for(var _0x43b0x3=0;_0x43b0x3< _0x43b0x2[_0x5b48[67]];_0x43b0x3++){if(this[_0x5b48[1179]][_0x5b48[2102]](_0x43b0x2[_0x43b0x3])){return _0x43b0x2[_0x43b0x3]}}};return null};mxGraphSelectionModel[_0x5b48[202]][_0x5b48[2103]]= function(_0x43b0x2){null!= _0x43b0x2&& this[_0x5b48[832]]([_0x43b0x2])};mxGraphSelectionModel[_0x5b48[202]][_0x5b48[832]]= function(_0x43b0x2){if(null!= _0x43b0x2){var _0x43b0x3=null;this[_0x5b48[2094]]&& (_0x43b0x3= this[_0x5b48[895]],_0x43b0x2= [this[_0x5b48[2101]](_0x43b0x2)]);for(var _0x43b0x4=[],_0x43b0x5=0;_0x43b0x5< _0x43b0x2[_0x5b48[67]];_0x43b0x5++){!this[_0x5b48[2097]](_0x43b0x2[_0x43b0x5])&& this[_0x5b48[1179]][_0x5b48[2102]](_0x43b0x2[_0x43b0x5]) && _0x43b0x4[_0x5b48[207]](_0x43b0x2[_0x43b0x5])};this[_0x5b48[2098]](_0x43b0x4,_0x43b0x3)}};mxGraphSelectionModel[_0x5b48[202]][_0x5b48[2104]]= function(_0x43b0x2){null!= _0x43b0x2&& this[_0x5b48[842]]([_0x43b0x2])};mxGraphSelectionModel[_0x5b48[202]][_0x5b48[842]]= function(_0x43b0x2){if(null!= _0x43b0x2){for(var _0x43b0x3=[],_0x43b0x4=0;_0x43b0x4< _0x43b0x2[_0x5b48[67]];_0x43b0x4++){this[_0x5b48[2097]](_0x43b0x2[_0x43b0x4])&& _0x43b0x3[_0x5b48[207]](_0x43b0x2[_0x43b0x4])};this[_0x5b48[2098]](null,_0x43b0x3)}};mxGraphSelectionModel[_0x5b48[202]][_0x5b48[2098]]= function(_0x43b0x2,_0x43b0x3){if(null!= _0x43b0x2&& 0< _0x43b0x2[_0x5b48[67]]&& null!= _0x43b0x2[0]|| null!= _0x43b0x3&& 0< _0x43b0x3[_0x5b48[67]]&& null!= _0x43b0x3[0]){var _0x43b0x4= new mxSelectionChange(this,_0x43b0x2,_0x43b0x3);_0x43b0x4[_0x5b48[350]]();var _0x43b0x5= new mxUndoableEdit(this,!1);_0x43b0x5[_0x5b48[99]](_0x43b0x4);this[_0x5b48[746]]( new mxEventObject(mxEvent.UNDO,_0x5b48[1061],_0x43b0x5))}};mxGraphSelectionModel[_0x5b48[202]][_0x5b48[1941]]= function(_0x43b0x2){null!= _0x43b0x2&& !this[_0x5b48[2097]](_0x43b0x2)&& this[_0x5b48[895]][_0x5b48[207]](_0x43b0x2)};mxGraphSelectionModel[_0x5b48[202]][_0x5b48[1102]]= function(_0x43b0x2){null!= _0x43b0x2&& (_0x43b0x2= mxUtils[_0x5b48[2]](this[_0x5b48[895]],_0x43b0x2),0<= _0x43b0x2&& this[_0x5b48[895]][_0x5b48[300]](_0x43b0x2,1))};function mxSelectionChange(_0x43b0x2,_0x43b0x3,_0x43b0x4){this[_0x5b48[2105]]= _0x43b0x2;this[_0x5b48[2106]]= null!= _0x43b0x3?_0x43b0x3[_0x5b48[1853]]():null;this[_0x5b48[2107]]= null!= _0x43b0x4?_0x43b0x4[_0x5b48[1853]]():null}mxSelectionChange[_0x5b48[202]][_0x5b48[350]]= function(){var _0x43b0x2=mxLog[_0x5b48[2109]](_0x5b48[2108]);window[_0x5b48[879]]= mxResources[_0x5b48[203]](this[_0x5b48[2105]][_0x5b48[2092]])|| this[_0x5b48[2105]][_0x5b48[2092]];if(null!= this[_0x5b48[2107]]){for(var _0x43b0x3=0;_0x43b0x3< this[_0x5b48[2107]][_0x5b48[67]];_0x43b0x3++){this[_0x5b48[2105]][_0x5b48[1102]](this[_0x5b48[2107]][_0x43b0x3])}};if(null!= this[_0x5b48[2106]]){for(_0x43b0x3= 0;_0x43b0x3< this[_0x5b48[2106]][_0x5b48[67]];_0x43b0x3++){this[_0x5b48[2105]][_0x5b48[1941]](this[_0x5b48[2106]][_0x43b0x3])}};_0x43b0x3= this[_0x5b48[2106]];this[_0x5b48[2106]]= this[_0x5b48[2107]];this[_0x5b48[2107]]= _0x43b0x3;window[_0x5b48[879]]= mxResources[_0x5b48[203]](this[_0x5b48[2105]][_0x5b48[2091]])|| this[_0x5b48[2105]][_0x5b48[2091]];mxLog[_0x5b48[2110]](_0x5b48[2108],_0x43b0x2);this[_0x5b48[2105]][_0x5b48[746]]( new mxEventObject(mxEvent.CHANGE,_0x5b48[2106],this[_0x5b48[2106]],_0x5b48[2107],this[_0x5b48[2107]]))};function mxCellEditor(_0x43b0x2){this[_0x5b48[1179]]= _0x43b0x2}mxCellEditor[_0x5b48[202]][_0x5b48[1179]]= null;mxCellEditor[_0x5b48[202]][_0x5b48[126]]= null;mxCellEditor[_0x5b48[202]][_0x5b48[2111]]= null;mxCellEditor[_0x5b48[202]][_0x5b48[2112]]= null;mxCellEditor[_0x5b48[202]][_0x5b48[2113]]= !1;mxCellEditor[_0x5b48[202]][_0x5b48[2114]]= !0;mxCellEditor[_0x5b48[202]][_0x5b48[2115]]= _0x5b48[110];mxCellEditor[_0x5b48[202]][_0x5b48[2116]]= _0x5b48[110];mxCellEditor[_0x5b48[202]][_0x5b48[176]]= function(){this[_0x5b48[126]]= document[_0x5b48[55]](_0x5b48[126]);this[_0x5b48[126]][_0x5b48[926]]= _0x5b48[2117];this[_0x5b48[126]][_0x5b48[124]][_0x5b48[491]]= _0x5b48[492];this[_0x5b48[126]][_0x5b48[124]][_0x5b48[277]]= _0x5b48[189];this[_0x5b48[126]][_0x5b48[57]](_0x5b48[2118],_0x5b48[2119]);this[_0x5b48[126]][_0x5b48[57]](_0x5b48[969],_0x5b48[2120]);mxClient[_0x5b48[133]]&& (this[_0x5b48[126]][_0x5b48[124]][_0x5b48[129]]= _0x5b48[130]);mxEvent[_0x5b48[169]](this[_0x5b48[126]],_0x5b48[2121],mxUtils[_0x5b48[885]](this,function(_0x43b0x2){this[_0x5b48[2122]]()}));mxEvent[_0x5b48[169]](this[_0x5b48[126]],_0x5b48[2123],mxUtils[_0x5b48[885]](this,function(_0x43b0x2){mxEvent[_0x5b48[721]](_0x43b0x2)|| (113== _0x43b0x2[_0x5b48[2124]]|| this[_0x5b48[1179]][_0x5b48[2125]]()&& 13== _0x43b0x2[_0x5b48[2124]]&& !mxEvent[_0x5b48[775]](_0x43b0x2)&& !mxEvent[_0x5b48[774]](_0x43b0x2)?(this[_0x5b48[1179]][_0x5b48[2126]](!1),mxEvent[_0x5b48[722]](_0x43b0x2)):27== _0x43b0x2[_0x5b48[2124]]?(this[_0x5b48[1179]][_0x5b48[2126]](!0),mxEvent[_0x5b48[722]](_0x43b0x2)):(this[_0x5b48[2127]]&& (this[_0x5b48[2127]]= !1,this[_0x5b48[126]][_0x5b48[131]]= _0x5b48[110]),this[_0x5b48[2128]](!0)))}));mxEvent[_0x5b48[169]](this[_0x5b48[126]],_0x5b48[2129],mxUtils[_0x5b48[885]](this,function(_0x43b0x2){this[_0x5b48[2114]]&& !mxEvent[_0x5b48[721]](_0x43b0x2)&& setTimeout(mxUtils[_0x5b48[885]](this,function(){this[_0x5b48[129]]()}),0)}))};mxCellEditor[_0x5b48[202]][_0x5b48[129]]= function(){if(null!= this[_0x5b48[1653]]){var _0x43b0x2=this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[248]](this[_0x5b48[2111]]),_0x43b0x3=this[_0x5b48[1179]][_0x5b48[2130]](_0x43b0x2[_0x5b48[246]]),_0x43b0x4=this[_0x5b48[1179]][_0x5b48[2131]](_0x43b0x2[_0x5b48[246]]);if(this[_0x5b48[1179]][_0x5b48[502]]()[_0x5b48[250]](_0x43b0x2[_0x5b48[246]])){this[_0x5b48[1562]][_0x5b48[235]]= _0x43b0x2[_0x5b48[2079]][_0x5b48[235]],this[_0x5b48[1562]][_0x5b48[236]]= _0x43b0x2[_0x5b48[2079]][_0x5b48[236]],this[_0x5b48[1562]][_0x5b48[117]]= 0,this[_0x5b48[1562]][_0x5b48[119]]= 0}else {if(null!= this[_0x5b48[1562]]){this[_0x5b48[1562]][_0x5b48[235]]= _0x43b0x2[_0x5b48[235]];this[_0x5b48[1562]][_0x5b48[236]]= _0x43b0x2[_0x5b48[236]];this[_0x5b48[1562]][_0x5b48[117]]= _0x43b0x2[_0x5b48[117]];this[_0x5b48[1562]][_0x5b48[119]]= _0x43b0x2[_0x5b48[119]];var _0x43b0x5=mxUtils[_0x5b48[433]](_0x43b0x2[_0x5b48[124]],mxConstants.STYLE_LABEL_POSITION,mxConstants.ALIGN_CENTER);_0x43b0x5== mxConstants[_0x5b48[2132]]?this[_0x5b48[1562]][_0x5b48[235]]-= _0x43b0x2[_0x5b48[117]]:_0x43b0x5== mxConstants[_0x5b48[480]]&& (this[_0x5b48[1562]][_0x5b48[235]]+= _0x43b0x2[_0x5b48[117]]);_0x43b0x5= mxUtils[_0x5b48[433]](_0x43b0x2[_0x5b48[124]],mxConstants.STYLE_VERTICAL_LABEL_POSITION,mxConstants.ALIGN_MIDDLE);_0x43b0x5== mxConstants[_0x5b48[1687]]?this[_0x5b48[1562]][_0x5b48[236]]-= _0x43b0x2[_0x5b48[119]]:_0x43b0x5== mxConstants[_0x5b48[482]]&& (this[_0x5b48[1562]][_0x5b48[236]]+= _0x43b0x2[_0x5b48[119]])}};_0x43b0x5= this[_0x5b48[126]][_0x5b48[131]];if(_0x5b48[192]== _0x43b0x5[_0x5b48[225]](_0x43b0x5[_0x5b48[67]]- 1)|| _0x5b48[110]== _0x43b0x5){_0x43b0x5+= _0x5b48[544]};_0x43b0x5= mxUtils[_0x5b48[321]](_0x43b0x5,!1);_0x43b0x4?(this[_0x5b48[1653]][_0x5b48[124]][_0x5b48[493]]= _0x5b48[1502],this[_0x5b48[1653]][_0x5b48[124]][_0x5b48[117]]= this[_0x5b48[1562]][_0x5b48[117]]+ _0x5b48[168]):_0x43b0x5= _0x43b0x5[_0x5b48[230]](/ /g,_0x5b48[544]);_0x43b0x5= _0x43b0x5[_0x5b48[230]](/\n/g,_0x5b48[1453]);this[_0x5b48[1653]][_0x5b48[339]]= _0x43b0x5;var _0x43b0x5=this[_0x5b48[1653]][_0x5b48[359]]+ 30,_0x43b0x9=this[_0x5b48[1653]][_0x5b48[167]]+ 16,_0x43b0x5=Math[_0x5b48[160]](_0x43b0x5,40),_0x43b0x9=Math[_0x5b48[160]](_0x43b0x9,20);_0x43b0x3&& (_0x43b0x5= Math[_0x5b48[243]](this[_0x5b48[1562]][_0x5b48[117]]- 4,_0x43b0x5),_0x43b0x9= Math[_0x5b48[243]](this[_0x5b48[1562]][_0x5b48[119]],_0x43b0x9));var _0x43b0xa=null!= _0x43b0x2[_0x5b48[963]]?_0x43b0x2[_0x5b48[963]][_0x5b48[1655]]:null;null== _0x43b0xa&& (_0x43b0xa= mxUtils[_0x5b48[433]](_0x43b0x2[_0x5b48[124]],mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER),_0x43b0x2= mxUtils[_0x5b48[433]](_0x43b0x2[_0x5b48[124]],mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE),_0x43b0xa= mxUtils[_0x5b48[1501]](_0x43b0xa,_0x43b0x2));if(null!= _0x43b0xa){if(_0x43b0x3|| !_0x43b0x4){this[_0x5b48[126]][_0x5b48[124]][_0x5b48[361]]= Math[_0x5b48[160]](0,Math[_0x5b48[488]](this[_0x5b48[1562]][_0x5b48[235]]- _0x43b0xa[_0x5b48[235]]* this[_0x5b48[1562]][_0x5b48[117]]+ _0x43b0xa[_0x5b48[235]]* _0x43b0x5)- 3)+ _0x5b48[168]};this[_0x5b48[126]][_0x5b48[124]][_0x5b48[125]]= Math[_0x5b48[160]](0,Math[_0x5b48[488]](this[_0x5b48[1562]][_0x5b48[236]]- _0x43b0xa[_0x5b48[236]]* this[_0x5b48[1562]][_0x5b48[119]]+ _0x43b0xa[_0x5b48[236]]* _0x43b0x9)+ 4)+ _0x5b48[168]};if(_0x43b0x3|| !_0x43b0x4){this[_0x5b48[126]][_0x5b48[124]][_0x5b48[117]]= _0x43b0x5+ _0x5b48[168]};this[_0x5b48[126]][_0x5b48[124]][_0x5b48[119]]= _0x43b0x9+ _0x5b48[168]}};mxCellEditor[_0x5b48[202]][_0x5b48[2133]]= function(){return this[_0x5b48[2113]]};mxCellEditor[_0x5b48[202]][_0x5b48[2128]]= function(_0x43b0x2){this[_0x5b48[2113]]= _0x43b0x2};mxCellEditor[_0x5b48[202]][_0x5b48[2122]]= function(){this[_0x5b48[2126]](!this[_0x5b48[1179]][_0x5b48[2134]]())};mxCellEditor[_0x5b48[202]][_0x5b48[855]]= function(_0x43b0x2,_0x43b0x3){null== this[_0x5b48[126]]&& this[_0x5b48[176]]();this[_0x5b48[2126]](!0);var _0x43b0x4=this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[248]](_0x43b0x2);if(null!= _0x43b0x4){this[_0x5b48[2111]]= _0x43b0x2;this[_0x5b48[2112]]= _0x43b0x3;this[_0x5b48[2116]]= null;null!= _0x43b0x4[_0x5b48[963]]&& this[_0x5b48[2135]](_0x43b0x4)&& (this[_0x5b48[2116]]= _0x43b0x4[_0x5b48[963]][_0x5b48[252]],this[_0x5b48[2116]][_0x5b48[124]][_0x5b48[187]]= _0x5b48[188]);var _0x43b0x5=this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[255]],_0x43b0x5=mxUtils[_0x5b48[433]](_0x43b0x4[_0x5b48[124]],mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE)* _0x43b0x5,_0x43b0x9=mxUtils[_0x5b48[433]](_0x43b0x4[_0x5b48[124]],mxConstants.STYLE_FONTFAMILY,mxConstants.DEFAULT_FONTFAMILY),_0x43b0xa=mxUtils[_0x5b48[433]](_0x43b0x4[_0x5b48[124]],mxConstants.STYLE_FONTCOLOR,_0x5b48[586]),_0x43b0x12=mxUtils[_0x5b48[433]](_0x43b0x4[_0x5b48[124]],mxConstants.STYLE_ALIGN,mxConstants.ALIGN_LEFT),_0x43b0x13=(mxUtils[_0x5b48[433]](_0x43b0x4[_0x5b48[124]],mxConstants.STYLE_FONTSTYLE,0)& mxConstants[_0x5b48[1410]])== mxConstants[_0x5b48[1410]],_0x43b0x14=(mxUtils[_0x5b48[433]](_0x43b0x4[_0x5b48[124]],mxConstants.STYLE_FONTSTYLE,0)& mxConstants[_0x5b48[1412]])== mxConstants[_0x5b48[1412]],_0x43b0x15=(mxUtils[_0x5b48[433]](_0x43b0x4[_0x5b48[124]],mxConstants.STYLE_FONTSTYLE,0)& mxConstants[_0x5b48[1414]])== mxConstants[_0x5b48[1414]];this[_0x5b48[126]][_0x5b48[124]][_0x5b48[487]]= Math[_0x5b48[488]](_0x43b0x5)+ _0x5b48[168];this[_0x5b48[126]][_0x5b48[124]][_0x5b48[489]]= Math[_0x5b48[488]](_0x43b0x5* mxConstants[_0x5b48[490]])+ _0x5b48[168];this[_0x5b48[126]][_0x5b48[124]][_0x5b48[486]]= _0x43b0x9;this[_0x5b48[126]][_0x5b48[124]][_0x5b48[1165]]= _0x43b0x12;this[_0x5b48[126]][_0x5b48[124]][_0x5b48[352]]= _0x43b0xa;this[_0x5b48[126]][_0x5b48[124]][_0x5b48[1452]]= _0x43b0x13?_0x5b48[1447]:_0x5b48[1502];this[_0x5b48[126]][_0x5b48[124]][_0x5b48[666]]= _0x43b0x14?_0x5b48[1449]:_0x5b48[110];this[_0x5b48[126]][_0x5b48[124]][_0x5b48[354]]= _0x43b0x15?_0x5b48[355]:_0x5b48[110];this[_0x5b48[126]][_0x5b48[124]][_0x5b48[277]]= _0x5b48[278];this[_0x5b48[126]][_0x5b48[124]][_0x5b48[2136]]= _0x5b48[130];this[_0x5b48[1562]]= _0x43b0x5= this[_0x5b48[2137]](_0x43b0x4);this[_0x5b48[126]][_0x5b48[124]][_0x5b48[361]]= _0x43b0x5[_0x5b48[235]]+ _0x5b48[168];this[_0x5b48[126]][_0x5b48[124]][_0x5b48[125]]= _0x43b0x5[_0x5b48[236]]+ _0x5b48[168];this[_0x5b48[126]][_0x5b48[124]][_0x5b48[117]]= _0x43b0x5[_0x5b48[117]]+ _0x5b48[168];this[_0x5b48[126]][_0x5b48[124]][_0x5b48[119]]= _0x43b0x5[_0x5b48[119]]+ _0x5b48[168];this[_0x5b48[126]][_0x5b48[124]][_0x5b48[931]]= 5;_0x43b0x4= this[_0x5b48[2138]](_0x43b0x4,_0x43b0x3);null== _0x43b0x4|| 0== _0x43b0x4[_0x5b48[67]]?(_0x43b0x4= this[_0x5b48[2139]](),this[_0x5b48[2127]]= !0):this[_0x5b48[2127]]= !1;this[_0x5b48[2128]](!1);this[_0x5b48[126]][_0x5b48[131]]= _0x43b0x4;this[_0x5b48[1179]][_0x5b48[526]][_0x5b48[62]](this[_0x5b48[126]]);_0x5b48[130]!= this[_0x5b48[126]][_0x5b48[124]][_0x5b48[495]]&& (this[_0x5b48[2114]]&& (this[_0x5b48[1653]]= this[_0x5b48[2140]](),document[_0x5b48[112]][_0x5b48[62]](this[_0x5b48[1653]]),this[_0x5b48[129]]()),this[_0x5b48[126]][_0x5b48[393]](),this[_0x5b48[126]][_0x5b48[804]]())}};mxCellEditor[_0x5b48[202]][_0x5b48[2140]]= function(){var _0x43b0x2=document[_0x5b48[55]](_0x5b48[485]),_0x43b0x3=_0x43b0x2[_0x5b48[124]];_0x43b0x3[_0x5b48[491]]= _0x5b48[492];_0x43b0x3[_0x5b48[493]]= _0x5b48[494];_0x43b0x3[_0x5b48[187]]= _0x5b48[188];_0x43b0x3[_0x5b48[495]]= mxClient[_0x5b48[496]]?_0x5b48[497]:_0x5b48[498];_0x43b0x3[_0x5b48[499]]= _0x5b48[500];_0x43b0x3[_0x5b48[123]]= _0x5b48[125];_0x43b0x3[_0x5b48[489]]= this[_0x5b48[126]][_0x5b48[124]][_0x5b48[489]];_0x43b0x3[_0x5b48[487]]= this[_0x5b48[126]][_0x5b48[124]][_0x5b48[487]];_0x43b0x3[_0x5b48[486]]= this[_0x5b48[126]][_0x5b48[124]][_0x5b48[486]];_0x43b0x3[_0x5b48[1452]]= this[_0x5b48[126]][_0x5b48[124]][_0x5b48[1452]];_0x43b0x3[_0x5b48[1165]]= this[_0x5b48[126]][_0x5b48[124]][_0x5b48[1165]];_0x43b0x3[_0x5b48[666]]= this[_0x5b48[126]][_0x5b48[124]][_0x5b48[666]];_0x43b0x3[_0x5b48[354]]= this[_0x5b48[126]][_0x5b48[124]][_0x5b48[354]];return _0x43b0x2};mxCellEditor[_0x5b48[202]][_0x5b48[2126]]= function(_0x43b0x2){null!= this[_0x5b48[2111]]&& (null!= this[_0x5b48[2116]]&& (this[_0x5b48[2116]][_0x5b48[124]][_0x5b48[187]]= _0x5b48[189],this[_0x5b48[2116]]= null),!_0x43b0x2&& this[_0x5b48[2133]]() && this[_0x5b48[1179]][_0x5b48[850]](this[_0x5b48[2111]],this[_0x5b48[2141]](),this[_0x5b48[2112]]),null!= this[_0x5b48[1653]]&& (document[_0x5b48[112]][_0x5b48[266]](this[_0x5b48[1653]]),this[_0x5b48[1653]]= null),this[_0x5b48[1562]]= this[_0x5b48[2112]]= this[_0x5b48[2111]]= null,this[_0x5b48[126]][_0x5b48[2121]](),this[_0x5b48[126]][_0x5b48[265]][_0x5b48[266]](this[_0x5b48[126]]))};mxCellEditor[_0x5b48[202]][_0x5b48[2138]]= function(_0x43b0x2,_0x43b0x3){return this[_0x5b48[1179]][_0x5b48[2142]](_0x43b0x2[_0x5b48[246]],_0x43b0x3)};mxCellEditor[_0x5b48[202]][_0x5b48[2141]]= function(){return this[_0x5b48[126]][_0x5b48[131]][_0x5b48[230]](/\r/g,_0x5b48[110])};mxCellEditor[_0x5b48[202]][_0x5b48[2135]]= function(_0x43b0x2){return !0};mxCellEditor[_0x5b48[202]][_0x5b48[939]]= function(_0x43b0x2){var _0x43b0x3=this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[255]];return new mxRectangle(0,0,null== _0x43b0x2[_0x5b48[963]]?30:_0x43b0x2[_0x5b48[963]][_0x5b48[803]]* _0x43b0x3+ 20,_0x5b48[361]== this[_0x5b48[126]][_0x5b48[124]][_0x5b48[1165]]?120:40)};mxCellEditor[_0x5b48[202]][_0x5b48[2137]]= function(_0x43b0x2){var _0x43b0x3=this[_0x5b48[1179]][_0x5b48[502]]()[_0x5b48[250]](_0x43b0x2[_0x5b48[246]]),_0x43b0x4=this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[255]],_0x43b0x5=this[_0x5b48[939]](_0x43b0x2),_0x43b0x9=_0x43b0x5[_0x5b48[117]],_0x43b0x5=_0x43b0x5[_0x5b48[119]],_0x43b0xa=parseInt(_0x43b0x2[_0x5b48[124]][mxConstants[_0x5b48[2143]]]|| 2)* _0x43b0x4,_0x43b0x12=parseInt(_0x43b0x2[_0x5b48[124]][mxConstants[_0x5b48[2144]]]|| 0)* _0x43b0x4+ _0x43b0xa,_0x43b0x13=parseInt(_0x43b0x2[_0x5b48[124]][mxConstants[_0x5b48[2145]]]|| 0)* _0x43b0x4+ _0x43b0xa,_0x43b0x14=parseInt(_0x43b0x2[_0x5b48[124]][mxConstants[_0x5b48[2146]]]|| 0)* _0x43b0x4+ _0x43b0xa,_0x43b0x4=parseInt(_0x43b0x2[_0x5b48[124]][mxConstants[_0x5b48[2147]]]|| 0)* _0x43b0x4+ _0x43b0xa,_0x43b0x13= new mxRectangle(_0x43b0x2[_0x5b48[235]],_0x43b0x2[_0x5b48[236]],Math[_0x5b48[160]](_0x43b0x9,_0x43b0x2[_0x5b48[117]]- _0x43b0x4- _0x43b0x13),Math[_0x5b48[160]](_0x43b0x5,_0x43b0x2[_0x5b48[119]]- _0x43b0x12- _0x43b0x14));_0x43b0x3?(_0x43b0x13[_0x5b48[235]]= _0x43b0x2[_0x5b48[2079]][_0x5b48[235]],_0x43b0x13[_0x5b48[236]]= _0x43b0x2[_0x5b48[2079]][_0x5b48[236]],null!= _0x43b0x2[_0x5b48[963]]&& null!= _0x43b0x2[_0x5b48[963]][_0x5b48[1563]]&& (0< _0x43b0x2[_0x5b48[963]][_0x5b48[1563]][_0x5b48[235]]&& (_0x43b0x13[_0x5b48[235]]= _0x43b0x2[_0x5b48[963]][_0x5b48[1563]][_0x5b48[235]]),0< _0x43b0x2[_0x5b48[963]][_0x5b48[1563]][_0x5b48[236]]&& (_0x43b0x13[_0x5b48[236]]= _0x43b0x2[_0x5b48[963]][_0x5b48[1563]][_0x5b48[236]]))):null!= _0x43b0x2[_0x5b48[963]]&& null!= _0x43b0x2[_0x5b48[963]][_0x5b48[1563]]&& (_0x43b0x13[_0x5b48[235]]= Math[_0x5b48[243]](_0x43b0x13[_0x5b48[235]],_0x43b0x2[_0x5b48[963]][_0x5b48[1563]][_0x5b48[235]]),_0x43b0x13[_0x5b48[236]]= Math[_0x5b48[243]](_0x43b0x13[_0x5b48[236]],_0x43b0x2[_0x5b48[963]][_0x5b48[1563]][_0x5b48[236]]));_0x43b0x13[_0x5b48[235]]+= _0x43b0x4;_0x43b0x13[_0x5b48[236]]+= _0x43b0x12;null!= _0x43b0x2[_0x5b48[963]]&& null!= _0x43b0x2[_0x5b48[963]][_0x5b48[1563]]&& (_0x43b0x3?(_0x43b0x13[_0x5b48[117]]= Math[_0x5b48[160]](_0x43b0x9,_0x43b0x2[_0x5b48[963]][_0x5b48[1563]][_0x5b48[117]]),_0x43b0x13[_0x5b48[119]]= Math[_0x5b48[160]](_0x43b0x5,_0x43b0x2[_0x5b48[963]][_0x5b48[1563]][_0x5b48[119]])):(_0x43b0x13[_0x5b48[117]]= Math[_0x5b48[160]](_0x43b0x13[_0x5b48[117]],_0x43b0x2[_0x5b48[963]][_0x5b48[1563]][_0x5b48[117]]),_0x43b0x13[_0x5b48[119]]= Math[_0x5b48[160]](_0x43b0x13[_0x5b48[119]],_0x43b0x2[_0x5b48[963]][_0x5b48[1563]][_0x5b48[119]])));this[_0x5b48[1179]][_0x5b48[502]]()[_0x5b48[1193]](_0x43b0x2[_0x5b48[246]])&& (_0x43b0x3= mxUtils[_0x5b48[433]](_0x43b0x2[_0x5b48[124]],mxConstants.STYLE_LABEL_POSITION,mxConstants.ALIGN_CENTER),_0x43b0x3== mxConstants[_0x5b48[2132]]?_0x43b0x13[_0x5b48[235]]-= _0x43b0x2[_0x5b48[117]]:_0x43b0x3== mxConstants[_0x5b48[480]]&& (_0x43b0x13[_0x5b48[235]]+= _0x43b0x2[_0x5b48[117]]),_0x43b0x3= mxUtils[_0x5b48[433]](_0x43b0x2[_0x5b48[124]],mxConstants.STYLE_VERTICAL_LABEL_POSITION,mxConstants.ALIGN_MIDDLE),_0x43b0x3== mxConstants[_0x5b48[1687]]?_0x43b0x13[_0x5b48[236]]-= _0x43b0x2[_0x5b48[119]]:_0x43b0x3== mxConstants[_0x5b48[482]]&& (_0x43b0x13[_0x5b48[236]]+= _0x43b0x2[_0x5b48[119]]));return _0x43b0x13};mxCellEditor[_0x5b48[202]][_0x5b48[2139]]= function(_0x43b0x2){return this[_0x5b48[2115]]};mxCellEditor[_0x5b48[202]][_0x5b48[2148]]= function(){return this[_0x5b48[2111]]};mxCellEditor[_0x5b48[202]][_0x5b48[515]]= function(){null!= this[_0x5b48[126]]&& (mxEvent[_0x5b48[762]](this[_0x5b48[126]]),null!= this[_0x5b48[126]][_0x5b48[265]]&& this[_0x5b48[126]][_0x5b48[265]][_0x5b48[266]](this[_0x5b48[126]]),this[_0x5b48[126]]= null)};function mxCellRenderer(){}mxCellRenderer[_0x5b48[202]][_0x5b48[2149]]= mxConnector;mxCellRenderer[_0x5b48[202]][_0x5b48[2150]]= mxRectangleShape;mxCellRenderer[_0x5b48[202]][_0x5b48[2151]]= mxText;mxCellRenderer[_0x5b48[202]][_0x5b48[2152]]= !0;mxCellRenderer[_0x5b48[202]][_0x5b48[2153]]= {};mxCellRenderer[_0x5b48[2154]]= function(_0x43b0x2,_0x43b0x3){mxCellRenderer[_0x5b48[202]][_0x5b48[2153]][_0x43b0x2]= _0x43b0x3};mxCellRenderer[_0x5b48[2154]](mxConstants.SHAPE_RECTANGLE,mxRectangleShape);mxCellRenderer[_0x5b48[2154]](mxConstants.SHAPE_ELLIPSE,mxEllipse);mxCellRenderer[_0x5b48[2154]](mxConstants.SHAPE_RHOMBUS,mxRhombus);mxCellRenderer[_0x5b48[2154]](mxConstants.SHAPE_CYLINDER,mxCylinder);mxCellRenderer[_0x5b48[2154]](mxConstants.SHAPE_CONNECTOR,mxConnector);mxCellRenderer[_0x5b48[2154]](mxConstants.SHAPE_ACTOR,mxActor);mxCellRenderer[_0x5b48[2154]](mxConstants.SHAPE_TRIANGLE,mxTriangle);mxCellRenderer[_0x5b48[2154]](mxConstants.SHAPE_HEXAGON,mxHexagon);mxCellRenderer[_0x5b48[2154]](mxConstants.SHAPE_CLOUD,mxCloud);mxCellRenderer[_0x5b48[2154]](mxConstants.SHAPE_LINE,mxLine);mxCellRenderer[_0x5b48[2154]](mxConstants.SHAPE_ARROW,mxArrow);mxCellRenderer[_0x5b48[2154]](mxConstants.SHAPE_DOUBLE_ELLIPSE,mxDoubleEllipse);mxCellRenderer[_0x5b48[2154]](mxConstants.SHAPE_SWIMLANE,mxSwimlane);mxCellRenderer[_0x5b48[2154]](mxConstants.SHAPE_IMAGE,mxImageShape);mxCellRenderer[_0x5b48[2154]](mxConstants.SHAPE_LABEL,mxLabel);mxCellRenderer[_0x5b48[202]][_0x5b48[2155]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=_0x43b0x2[_0x5b48[441]][_0x5b48[1179]][_0x5b48[502]]();if(null!= _0x43b0x2[_0x5b48[441]][_0x5b48[1179]][_0x5b48[526]]&& null== _0x43b0x2[_0x5b48[253]]&& _0x43b0x2[_0x5b48[246]]!= _0x43b0x2[_0x5b48[441]][_0x5b48[1741]]&& (_0x43b0x4[_0x5b48[1193]](_0x43b0x2[_0x5b48[246]])|| _0x43b0x4[_0x5b48[250]](_0x43b0x2[_0x5b48[246]]))){if(this[_0x5b48[2156]](_0x43b0x2),null!= _0x43b0x2[_0x5b48[253]]&& (null== _0x43b0x3|| _0x43b0x3)){this[_0x5b48[2157]](_0x43b0x2),_0x43b0x2[_0x5b48[441]][_0x5b48[1179]][_0x5b48[2158]]|| _0x43b0x4[_0x5b48[250]](_0x43b0x2[_0x5b48[246]])?_0x43b0x2[_0x5b48[2081]]= !0:_0x43b0x2[_0x5b48[441]][_0x5b48[1179]][_0x5b48[2159]]&& null!= this[_0x5b48[2160]]&& (this[_0x5b48[2160]][_0x5b48[265]]== _0x43b0x2[_0x5b48[253]][_0x5b48[252]][_0x5b48[265]]?this[_0x5b48[2161]](_0x43b0x2,this[_0x5b48[2160]]):this[_0x5b48[2160]]= null),_0x43b0x2[_0x5b48[253]][_0x5b48[255]]= _0x43b0x2[_0x5b48[441]][_0x5b48[255]],this[_0x5b48[2162]](_0x43b0x2),this[_0x5b48[2163]](_0x43b0x2)}}};mxCellRenderer[_0x5b48[202]][_0x5b48[2157]]= function(_0x43b0x2){_0x43b0x2[_0x5b48[253]][_0x5b48[176]](_0x43b0x2[_0x5b48[441]][_0x5b48[2024]]())};mxCellRenderer[_0x5b48[202]][_0x5b48[2164]]= function(_0x43b0x2,_0x43b0x3){for(var _0x43b0x4=null,_0x43b0x5=_0x43b0x2[_0x5b48[441]][_0x5b48[1179]],_0x43b0x9=_0x43b0x5[_0x5b48[502]](),_0x43b0xa=_0x43b0x2[_0x5b48[246]],_0x43b0x12=_0x43b0x9[_0x5b48[1197]](_0x43b0xa);null!= _0x43b0x12&& null== _0x43b0x4;){_0x43b0x4= this[_0x5b48[2165]](_0x43b0x5,_0x43b0x12,_0x43b0xa,_0x43b0x3),_0x43b0xa= _0x43b0x12,_0x43b0x12= _0x43b0x9[_0x5b48[1197]](_0x43b0xa)};return _0x43b0x4};mxCellRenderer[_0x5b48[202]][_0x5b48[2165]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){var _0x43b0x9=null,_0x43b0xa=_0x43b0x2[_0x5b48[502]]();for(_0x43b0x4= null!= _0x43b0x4?_0x43b0x3[_0x5b48[1738]](_0x43b0x4)- 1:_0x43b0xa[_0x5b48[262]](_0x43b0x3)- 1;0<= _0x43b0x4&& null== _0x43b0x9;_0x43b0x4--){_0x43b0x9= this[_0x5b48[2165]](_0x43b0x2,_0x43b0xa[_0x5b48[263]](_0x43b0x3,_0x43b0x4),null,_0x43b0x5)};if(null== _0x43b0x9&& (_0x43b0x9= _0x43b0x2[_0x5b48[441]][_0x5b48[248]](_0x43b0x3),null!= _0x43b0x9&& (null== _0x43b0x9[_0x5b48[253]]|| null== _0x43b0x9[_0x5b48[253]][_0x5b48[252]]|| _0x43b0x9[_0x5b48[253]][_0x5b48[252]][_0x5b48[265]]!= _0x43b0x5))){_0x43b0x9= null};return _0x43b0x9};mxCellRenderer[_0x5b48[202]][_0x5b48[2166]]= function(_0x43b0x2){var _0x43b0x3=_0x43b0x2[_0x5b48[253]][_0x5b48[252]][_0x5b48[265]],_0x43b0x4=this[_0x5b48[2164]](_0x43b0x2,_0x43b0x3),_0x43b0x5=_0x43b0x3[_0x5b48[285]];null!= _0x43b0x4&& (_0x43b0x5= _0x43b0x4[_0x5b48[253]][_0x5b48[252]],null!= _0x43b0x4[_0x5b48[963]]&& (null!= _0x43b0x4[_0x5b48[963]][_0x5b48[252]]&& _0x43b0x4[_0x5b48[963]][_0x5b48[252]][_0x5b48[265]]== _0x43b0x3)&& (_0x43b0x5= _0x43b0x4[_0x5b48[963]][_0x5b48[252]]),_0x43b0x5= _0x43b0x5[_0x5b48[287]]);this[_0x5b48[2161]](_0x43b0x2,_0x43b0x5)};mxCellRenderer[_0x5b48[202]][_0x5b48[2167]]= function(_0x43b0x2){var _0x43b0x3=_0x43b0x2[_0x5b48[441]],_0x43b0x4=_0x43b0x3[_0x5b48[1179]][_0x5b48[502]]();if(_0x43b0x3[_0x5b48[1179]][_0x5b48[2159]]){if(null== this[_0x5b48[2160]]|| null== this[_0x5b48[2160]][_0x5b48[265]]|| this[_0x5b48[2160]][_0x5b48[265]]!= _0x43b0x2[_0x5b48[253]][_0x5b48[252]][_0x5b48[265]]){this[_0x5b48[2160]]= _0x43b0x2[_0x5b48[253]][_0x5b48[252]]}}else {if(_0x43b0x3[_0x5b48[1179]][_0x5b48[2168]]){var _0x43b0x5=_0x43b0x2[_0x5b48[253]][_0x5b48[252]],_0x43b0x9=_0x43b0x5[_0x5b48[265]],_0x43b0x4=_0x43b0x4[_0x5b48[1197]](_0x43b0x2[_0x5b48[246]]),_0x43b0x3=_0x43b0x3[_0x5b48[248]](_0x43b0x4),_0x43b0x9=null!= _0x43b0x3&& null!= _0x43b0x3[_0x5b48[253]]&& null!= _0x43b0x3[_0x5b48[253]][_0x5b48[252]]?_0x43b0x3[_0x5b48[253]][_0x5b48[252]][_0x5b48[287]]:_0x43b0x9[_0x5b48[285]];null!= _0x43b0x9&& _0x43b0x9!= _0x43b0x5&& this[_0x5b48[2161]](_0x43b0x2,_0x43b0x9)}}};mxCellRenderer[_0x5b48[202]][_0x5b48[2161]]= function(_0x43b0x2,_0x43b0x3){_0x43b0x2[_0x5b48[253]][_0x5b48[252]][_0x5b48[265]][_0x5b48[950]](_0x43b0x2[_0x5b48[253]][_0x5b48[252]],_0x43b0x3);null!= _0x43b0x2[_0x5b48[963]]&& (null!= _0x43b0x2[_0x5b48[963]][_0x5b48[252]]&& _0x43b0x2[_0x5b48[963]][_0x5b48[252]][_0x5b48[265]]== _0x43b0x2[_0x5b48[253]][_0x5b48[252]][_0x5b48[265]])&& _0x43b0x2[_0x5b48[253]][_0x5b48[252]][_0x5b48[265]][_0x5b48[950]](_0x43b0x2[_0x5b48[963]][_0x5b48[252]],_0x43b0x2[_0x5b48[253]][_0x5b48[252]][_0x5b48[287]])};mxCellRenderer[_0x5b48[202]][_0x5b48[2156]]= function(_0x43b0x2){if(null!= _0x43b0x2[_0x5b48[124]]){var _0x43b0x3=mxStencilRegistry[_0x5b48[1560]](_0x43b0x2[_0x5b48[124]][mxConstants[_0x5b48[2059]]]);null!= _0x43b0x3?_0x43b0x2[_0x5b48[253]]= new mxShape(_0x43b0x3):(_0x43b0x3= this[_0x5b48[2169]](_0x43b0x2),_0x43b0x2[_0x5b48[253]]= new _0x43b0x3);_0x43b0x2[_0x5b48[253]][_0x5b48[1525]]= _0x43b0x2[_0x5b48[439]];_0x43b0x2[_0x5b48[253]][_0x5b48[1562]]= new mxRectangle(_0x43b0x2[_0x5b48[235]],_0x43b0x2[_0x5b48[236]],_0x43b0x2[_0x5b48[117]],_0x43b0x2[_0x5b48[119]]);_0x43b0x2[_0x5b48[253]][_0x5b48[507]]= _0x43b0x2[_0x5b48[441]][_0x5b48[1179]][_0x5b48[507]];this[_0x5b48[2170]](_0x43b0x2)}};mxCellRenderer[_0x5b48[202]][_0x5b48[2171]]= function(_0x43b0x2){return null!= _0x43b0x2?mxCellRenderer[_0x5b48[202]][_0x5b48[2153]][_0x43b0x2]:null};mxCellRenderer[_0x5b48[202]][_0x5b48[2169]]= function(_0x43b0x2){var _0x43b0x3=this[_0x5b48[2171]](_0x43b0x2[_0x5b48[124]][mxConstants[_0x5b48[2059]]]);null== _0x43b0x3&& (_0x43b0x3= _0x43b0x2[_0x5b48[441]][_0x5b48[1179]][_0x5b48[502]]()[_0x5b48[250]](_0x43b0x2[_0x5b48[246]])?this[_0x5b48[2149]]:this[_0x5b48[2150]]);return _0x43b0x3};mxCellRenderer[_0x5b48[202]][_0x5b48[2170]]= function(_0x43b0x2){_0x43b0x2[_0x5b48[253]][_0x5b48[183]](_0x43b0x2);_0x43b0x2[_0x5b48[253]][_0x5b48[618]]= _0x43b0x2[_0x5b48[441]][_0x5b48[1179]][_0x5b48[1202]](_0x43b0x2);_0x43b0x2[_0x5b48[253]][_0x5b48[630]]= this[_0x5b48[2171]](_0x43b0x2[_0x5b48[441]][_0x5b48[1179]][_0x5b48[2172]](_0x43b0x2));_0x43b0x2[_0x5b48[253]][_0x5b48[632]]= _0x43b0x2[_0x5b48[441]][_0x5b48[1179]][_0x5b48[2173]](_0x43b0x2);_0x43b0x2[_0x5b48[253]][_0x5b48[634]]= _0x43b0x2[_0x5b48[441]][_0x5b48[1179]][_0x5b48[2174]](_0x43b0x2);_0x43b0x2[_0x5b48[253]][_0x5b48[638]]= _0x43b0x2[_0x5b48[124]][mxConstants[_0x5b48[2175]]];_0x43b0x2[_0x5b48[253]][_0x5b48[631]]= _0x43b0x2[_0x5b48[441]][_0x5b48[1179]][_0x5b48[2176]](_0x43b0x2);this[_0x5b48[2177]](_0x43b0x2)};mxCellRenderer[_0x5b48[202]][_0x5b48[2177]]= function(_0x43b0x2){null!= _0x43b0x2[_0x5b48[253]]&& (this[_0x5b48[2178]](_0x43b0x2,_0x5b48[632],mxConstants.STYLE_FILLCOLOR),this[_0x5b48[2178]](_0x43b0x2,_0x5b48[634],mxConstants.STYLE_GRADIENTCOLOR),this[_0x5b48[2178]](_0x43b0x2,_0x5b48[1334],mxConstants.STYLE_FILLCOLOR),this[_0x5b48[2178]](_0x43b0x2,_0x5b48[1336],mxConstants.STYLE_STROKECOLOR),this[_0x5b48[2178]](_0x43b0x2,_0x5b48[1299],mxConstants.STYLE_GRADIENTCOLOR))};mxCellRenderer[_0x5b48[202]][_0x5b48[2178]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){var _0x43b0x5=_0x43b0x2[_0x5b48[253]][_0x43b0x3],_0x43b0x9=_0x43b0x2[_0x5b48[441]][_0x5b48[1179]],_0x43b0xa=null;_0x5b48[1549]== _0x43b0x5?_0x43b0xa= _0x43b0x9[_0x5b48[251]][_0x5b48[1197]](_0x43b0x2[_0x5b48[246]]):_0x5b48[687]== _0x43b0x5?(_0x43b0xa= null!= _0x43b0x9[_0x5b48[251]][_0x5b48[1709]](_0x43b0x2[_0x5b48[246]],!1)?_0x43b0x9[_0x5b48[251]][_0x5b48[1709]](_0x43b0x2[_0x5b48[246]],!1):_0x43b0x2[_0x5b48[246]],_0x43b0xa= _0x43b0x9[_0x5b48[2179]](_0x43b0xa),_0x43b0x4= _0x43b0x9[_0x5b48[2180]]):_0x5b48[2181]== _0x43b0x5&& (_0x43b0x2[_0x5b48[253]][_0x43b0x3]= _0x43b0x2[_0x5b48[253]][_0x5b48[632]]);null!= _0x43b0xa&& (_0x43b0x5= _0x43b0x9[_0x5b48[249]]()[_0x5b48[248]](_0x43b0xa),_0x43b0x2[_0x5b48[253]][_0x43b0x3]= null,null!= _0x43b0x5&& (_0x43b0x2[_0x5b48[253]][_0x43b0x3]= null!= _0x43b0x5[_0x5b48[253]]&& _0x5b48[632]!= _0x43b0x3?_0x43b0x5[_0x5b48[253]][_0x43b0x3]:_0x43b0x5[_0x5b48[124]][_0x43b0x4]))};mxCellRenderer[_0x5b48[202]][_0x5b48[2182]]= function(_0x43b0x2){return _0x43b0x2[_0x5b48[441]][_0x5b48[1179]][_0x5b48[2183]](_0x43b0x2[_0x5b48[246]])};mxCellRenderer[_0x5b48[202]][_0x5b48[2184]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=_0x43b0x2[_0x5b48[441]][_0x5b48[1179]];_0x43b0x4[_0x5b48[502]]()[_0x5b48[250]](_0x43b0x2[_0x5b48[246]]);if(0< _0x43b0x2[_0x5b48[124]][mxConstants[_0x5b48[2185]]]|| null== _0x43b0x2[_0x5b48[124]][mxConstants[_0x5b48[2185]]]){var _0x43b0x5=_0x43b0x4[_0x5b48[2186]](_0x43b0x2[_0x5b48[246]])|| null!= _0x43b0x3&& mxUtils[_0x5b48[1331]](_0x43b0x3);_0x43b0x2[_0x5b48[963]]= new this[_0x5b48[2151]](_0x43b0x3, new mxRectangle,_0x43b0x2[_0x5b48[124]][mxConstants[_0x5b48[2064]]]|| mxConstants[_0x5b48[479]],_0x43b0x4[_0x5b48[2187]](_0x43b0x2),_0x43b0x2[_0x5b48[124]][mxConstants[_0x5b48[2069]]],_0x43b0x2[_0x5b48[124]][mxConstants[_0x5b48[2188]]],_0x43b0x2[_0x5b48[124]][mxConstants[_0x5b48[2185]]],_0x43b0x2[_0x5b48[124]][mxConstants[_0x5b48[2189]]],_0x43b0x2[_0x5b48[124]][mxConstants[_0x5b48[2143]]],_0x43b0x2[_0x5b48[124]][mxConstants[_0x5b48[2144]]],_0x43b0x2[_0x5b48[124]][mxConstants[_0x5b48[2145]]],_0x43b0x2[_0x5b48[124]][mxConstants[_0x5b48[2146]]],_0x43b0x2[_0x5b48[124]][mxConstants[_0x5b48[2147]]],_0x43b0x2[_0x5b48[124]][mxConstants[_0x5b48[2190]]],_0x43b0x2[_0x5b48[124]][mxConstants[_0x5b48[2191]]],_0x43b0x2[_0x5b48[124]][mxConstants[_0x5b48[2192]]],_0x43b0x4[_0x5b48[2131]](_0x43b0x2[_0x5b48[246]])&& _0x43b0x4[_0x5b48[2186]](_0x43b0x2[_0x5b48[246]]),_0x43b0x4[_0x5b48[2130]](_0x43b0x2[_0x5b48[246]]),_0x43b0x2[_0x5b48[124]][mxConstants[_0x5b48[2193]]],_0x43b0x2[_0x5b48[124]][mxConstants[_0x5b48[2194]]]);_0x43b0x2[_0x5b48[963]][_0x5b48[461]]= mxUtils[_0x5b48[433]](_0x43b0x2[_0x5b48[124]],mxConstants.STYLE_TEXT_OPACITY,100);_0x43b0x2[_0x5b48[963]][_0x5b48[507]]= _0x43b0x5?mxConstants[_0x5b48[1656]]:_0x43b0x2[_0x5b48[441]][_0x5b48[1179]][_0x5b48[507]];_0x43b0x2[_0x5b48[963]][_0x5b48[724]]= _0x43b0x2;this[_0x5b48[2195]](_0x43b0x2);var _0x43b0x9=!1,_0x43b0xa=function(_0x43b0x3){var _0x43b0x5=_0x43b0x2;if(mxClient[_0x5b48[754]]|| _0x43b0x9){_0x43b0x5= mxEvent[_0x5b48[731]](_0x43b0x3),_0x43b0x3= mxEvent[_0x5b48[733]](_0x43b0x3),_0x43b0x3= mxUtils[_0x5b48[2196]](_0x43b0x4[_0x5b48[526]],_0x43b0x5,_0x43b0x3),_0x43b0x5= _0x43b0x4[_0x5b48[441]][_0x5b48[248]](_0x43b0x4[_0x5b48[999]](_0x43b0x3[_0x5b48[235]],_0x43b0x3[_0x5b48[236]]))};return _0x43b0x5};mxEvent[_0x5b48[759]](_0x43b0x2[_0x5b48[963]][_0x5b48[252]],mxUtils[_0x5b48[885]](this,function(_0x43b0x3){this[_0x5b48[2197]](_0x43b0x2,_0x43b0x3)&& (_0x43b0x4[_0x5b48[758]](mxEvent.MOUSE_DOWN, new mxMouseEvent(_0x43b0x3,_0x43b0x2)),_0x43b0x9= _0x43b0x4[_0x5b48[507]]!= mxConstants[_0x5b48[508]]&& _0x5b48[2198]== mxEvent[_0x5b48[728]](_0x43b0x3)[_0x5b48[301]])}),mxUtils[_0x5b48[885]](this,function(_0x43b0x3){this[_0x5b48[2197]](_0x43b0x2,_0x43b0x3)&& _0x43b0x4[_0x5b48[758]](mxEvent.MOUSE_MOVE, new mxMouseEvent(_0x43b0x3,_0x43b0xa(_0x43b0x3)))}),mxUtils[_0x5b48[885]](this,function(_0x43b0x3){this[_0x5b48[2197]](_0x43b0x2,_0x43b0x3)&& (_0x43b0x4[_0x5b48[758]](mxEvent.MOUSE_UP, new mxMouseEvent(_0x43b0x3,_0x43b0xa(_0x43b0x3))),_0x43b0x9= !1)}));mxEvent[_0x5b48[169]](_0x43b0x2[_0x5b48[963]][_0x5b48[252]],_0x5b48[760],mxUtils[_0x5b48[885]](this,function(_0x43b0x3){this[_0x5b48[2197]](_0x43b0x2,_0x43b0x3)&& (_0x43b0x4[_0x5b48[761]](_0x43b0x3,_0x43b0x2[_0x5b48[246]]),mxEvent[_0x5b48[722]](_0x43b0x3))}))}};mxCellRenderer[_0x5b48[202]][_0x5b48[2195]]= function(_0x43b0x2){var _0x43b0x3=_0x43b0x2[_0x5b48[441]][_0x5b48[1179]];_0x43b0x2[_0x5b48[963]][_0x5b48[507]]!= mxConstants[_0x5b48[508]]&& (mxClient[_0x5b48[48]]&& mxClient[_0x5b48[2199]]?_0x43b0x2[_0x5b48[963]][_0x5b48[176]](_0x43b0x3[_0x5b48[526]]):mxUtils[_0x5b48[458]](_0x43b0x2[_0x5b48[441]][_0x5b48[2024]]())&& (null!= _0x43b0x2[_0x5b48[253]][_0x5b48[685]]?_0x43b0x2[_0x5b48[963]][_0x5b48[176]](_0x43b0x2[_0x5b48[253]][_0x5b48[685]]):_0x43b0x2[_0x5b48[963]][_0x5b48[176]](_0x43b0x2[_0x5b48[253]][_0x5b48[252]])));null== _0x43b0x2[_0x5b48[963]][_0x5b48[252]]&& (_0x43b0x2[_0x5b48[963]][_0x5b48[176]](_0x43b0x2[_0x5b48[441]][_0x5b48[2024]]()),null!= _0x43b0x2[_0x5b48[253]]&& null!= _0x43b0x2[_0x5b48[963]]&& _0x43b0x2[_0x5b48[253]][_0x5b48[252]][_0x5b48[265]][_0x5b48[950]](_0x43b0x2[_0x5b48[963]][_0x5b48[252]],_0x43b0x2[_0x5b48[253]][_0x5b48[252]][_0x5b48[287]]))};mxCellRenderer[_0x5b48[202]][_0x5b48[2162]]= function(_0x43b0x2){var _0x43b0x3=_0x43b0x2[_0x5b48[441]][_0x5b48[1179]][_0x5b48[2200]](_0x43b0x2[_0x5b48[246]]),_0x43b0x4=null;if(null!= _0x43b0x3){for(var _0x43b0x4= new mxDictionary,_0x43b0x5=0;_0x43b0x5< _0x43b0x3[_0x5b48[67]];_0x43b0x5++){var _0x43b0x9=null!= _0x43b0x2[_0x5b48[1211]]?_0x43b0x2[_0x5b48[1211]][_0x5b48[205]](_0x43b0x3[_0x43b0x5]):null;null== _0x43b0x9&& (_0x43b0x9= new mxImageShape( new mxRectangle,_0x43b0x3[_0x43b0x5][_0x5b48[618]][_0x5b48[390]]),_0x43b0x9[_0x5b48[507]]= _0x43b0x2[_0x5b48[441]][_0x5b48[1179]][_0x5b48[507]],_0x43b0x9[_0x5b48[1674]]= !1,_0x43b0x9[_0x5b48[2201]]= _0x43b0x3[_0x43b0x5],this[_0x5b48[2023]](_0x43b0x2,_0x43b0x9),this[_0x5b48[2202]](_0x43b0x2,_0x43b0x3[_0x43b0x5],_0x43b0x9),null!= _0x43b0x3[_0x43b0x5][_0x5b48[270]]&& (_0x43b0x9[_0x5b48[252]][_0x5b48[124]][_0x5b48[270]]= _0x43b0x3[_0x43b0x5][_0x5b48[270]]));_0x43b0x4[_0x5b48[204]](_0x43b0x3[_0x43b0x5],_0x43b0x9)}};null!= _0x43b0x2[_0x5b48[1211]]&& _0x43b0x2[_0x5b48[1211]][_0x5b48[209]](function(_0x43b0x2,_0x43b0x3){_0x43b0x3[_0x5b48[515]]()});_0x43b0x2[_0x5b48[1211]]= _0x43b0x4};mxCellRenderer[_0x5b48[202]][_0x5b48[2023]]= function(_0x43b0x2,_0x43b0x3){_0x43b0x3[_0x5b48[176]](_0x43b0x2[_0x5b48[441]][_0x5b48[1524]]())};mxCellRenderer[_0x5b48[202]][_0x5b48[2202]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){var _0x43b0x5=_0x43b0x2[_0x5b48[441]][_0x5b48[1179]];mxEvent[_0x5b48[169]](_0x43b0x4[_0x5b48[252]],_0x5b48[173],function(_0x43b0x4){_0x43b0x5[_0x5b48[2203]]()&& _0x43b0x5[_0x5b48[2126]](!_0x43b0x5[_0x5b48[2134]]());_0x43b0x3[_0x5b48[746]]( new mxEventObject(mxEvent.CLICK,_0x5b48[763],_0x43b0x4,_0x5b48[246],_0x43b0x2[_0x5b48[246]]))});mxEvent[_0x5b48[759]](_0x43b0x4[_0x5b48[252]],function(_0x43b0x2){mxEvent[_0x5b48[722]](_0x43b0x2)},function(_0x43b0x3){_0x43b0x5[_0x5b48[758]](mxEvent.MOUSE_MOVE, new mxMouseEvent(_0x43b0x3,_0x43b0x2))});mxClient[_0x5b48[754]]&& mxEvent[_0x5b48[169]](_0x43b0x4[_0x5b48[252]],_0x5b48[757],function(_0x43b0x4){_0x43b0x3[_0x5b48[746]]( new mxEventObject(mxEvent.CLICK,_0x5b48[763],_0x43b0x4,_0x5b48[246],_0x43b0x2[_0x5b48[246]]))})};mxCellRenderer[_0x5b48[202]][_0x5b48[2204]]= function(_0x43b0x2){var _0x43b0x3=_0x43b0x2[_0x5b48[441]][_0x5b48[1179]],_0x43b0x4=_0x43b0x3[_0x5b48[2205]](_0x43b0x2);if(_0x43b0x3[_0x5b48[2206]]&& null!= _0x43b0x4){if(null== _0x43b0x2[_0x5b48[2207]]){var _0x43b0x5= new mxRectangle(0,0,_0x43b0x4[_0x5b48[117]],_0x43b0x4[_0x5b48[119]]);_0x43b0x2[_0x5b48[2207]]= new mxImageShape(_0x43b0x5,_0x43b0x4[_0x5b48[390]]);_0x43b0x2[_0x5b48[2207]][_0x5b48[1674]]= !1;_0x43b0x2[_0x5b48[2207]][_0x5b48[507]]= _0x43b0x3[_0x5b48[507]];this[_0x5b48[2208]](_0x43b0x2,_0x43b0x2[_0x5b48[2207]],!0,function(_0x43b0x4){if(_0x43b0x3[_0x5b48[994]]()){var _0x43b0x5=!_0x43b0x3[_0x5b48[1742]](_0x43b0x2[_0x5b48[246]]);_0x43b0x3[_0x5b48[847]](_0x43b0x5,!1,[_0x43b0x2[_0x5b48[246]]]);mxEvent[_0x5b48[722]](_0x43b0x4)}})}}else {null!= _0x43b0x2[_0x5b48[2207]]&& (_0x43b0x2[_0x5b48[2207]][_0x5b48[515]](),_0x43b0x2[_0x5b48[2207]]= null)}};mxCellRenderer[_0x5b48[202]][_0x5b48[2208]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){var _0x43b0x9=_0x43b0x2[_0x5b48[441]][_0x5b48[1179]];_0x43b0x9[_0x5b48[2186]](_0x43b0x2[_0x5b48[246]])&& mxClient[_0x5b48[2199]]&& _0x43b0x9[_0x5b48[507]]== mxConstants[_0x5b48[508]]?(_0x43b0x3[_0x5b48[507]]= mxConstants[_0x5b48[2209]],_0x43b0x3[_0x5b48[176]](_0x43b0x9[_0x5b48[526]]),_0x43b0x3[_0x5b48[252]][_0x5b48[124]][_0x5b48[931]]= 1):_0x43b0x3[_0x5b48[176]](_0x43b0x2[_0x5b48[441]][_0x5b48[1524]]());_0x43b0x3= _0x43b0x3[_0x5b48[2210]]|| _0x43b0x3[_0x5b48[252]];_0x43b0x5&& (_0x43b0x9[_0x5b48[994]]()&& (_0x43b0x3[_0x5b48[124]][_0x5b48[270]]= _0x5b48[356]),mxEvent[_0x5b48[169]](_0x43b0x3,_0x5b48[173],_0x43b0x5));_0x43b0x4&& mxEvent[_0x5b48[759]](_0x43b0x3,function(_0x43b0x3){_0x43b0x9[_0x5b48[758]](mxEvent.MOUSE_DOWN, new mxMouseEvent(_0x43b0x3,_0x43b0x2));mxEvent[_0x5b48[722]](_0x43b0x3)},function(_0x43b0x3){_0x43b0x9[_0x5b48[758]](mxEvent.MOUSE_MOVE, new mxMouseEvent(_0x43b0x3,_0x43b0x2))});return _0x43b0x3};mxCellRenderer[_0x5b48[202]][_0x5b48[2211]]= function(_0x43b0x2,_0x43b0x3){return !0};mxCellRenderer[_0x5b48[202]][_0x5b48[2197]]= function(_0x43b0x2,_0x43b0x3){return !0};mxCellRenderer[_0x5b48[202]][_0x5b48[2163]]= function(_0x43b0x2){var _0x43b0x3=_0x43b0x2[_0x5b48[441]][_0x5b48[1179]],_0x43b0x4=function(_0x43b0x4){var _0x43b0x5=_0x43b0x2;if(_0x43b0x3[_0x5b48[507]]!= mxConstants[_0x5b48[508]]&& _0x5b48[2198]== mxEvent[_0x5b48[728]](_0x43b0x4)[_0x5b48[301]]|| mxClient[_0x5b48[754]]){_0x43b0x5= mxEvent[_0x5b48[731]](_0x43b0x4),_0x43b0x4= mxEvent[_0x5b48[733]](_0x43b0x4),_0x43b0x4= mxUtils[_0x5b48[2196]](_0x43b0x3[_0x5b48[526]],_0x43b0x5,_0x43b0x4),_0x43b0x5= _0x43b0x3[_0x5b48[441]][_0x5b48[248]](_0x43b0x3[_0x5b48[999]](_0x43b0x4[_0x5b48[235]],_0x43b0x4[_0x5b48[236]]))};return _0x43b0x5},_0x43b0x5=!1;mxEvent[_0x5b48[169]](_0x43b0x2[_0x5b48[253]][_0x5b48[252]],_0x5b48[2212],mxUtils[_0x5b48[885]](this,function(_0x43b0x2){_0x43b0x3[_0x5b48[2213]]= 0;_0x43b0x5= !0;mxEvent[_0x5b48[722]](_0x43b0x2)}));mxEvent[_0x5b48[759]](_0x43b0x2[_0x5b48[253]][_0x5b48[252]],mxUtils[_0x5b48[885]](this,function(_0x43b0x4){this[_0x5b48[2211]](_0x43b0x2,_0x43b0x4)&& !_0x43b0x5?_0x43b0x3[_0x5b48[758]](mxEvent.MOUSE_DOWN, new mxMouseEvent(_0x43b0x4,null!= _0x43b0x2[_0x5b48[253]]&& mxEvent[_0x5b48[728]](_0x43b0x4)== _0x43b0x2[_0x5b48[253]][_0x5b48[905]]?null:_0x43b0x2)):_0x43b0x5&& mxEvent[_0x5b48[722]](_0x43b0x4)}),mxUtils[_0x5b48[885]](this,function(_0x43b0x9){this[_0x5b48[2211]](_0x43b0x2,_0x43b0x9)&& !_0x43b0x5?_0x43b0x3[_0x5b48[758]](mxEvent.MOUSE_MOVE, new mxMouseEvent(_0x43b0x9,null!= _0x43b0x2[_0x5b48[253]]&& mxEvent[_0x5b48[728]](_0x43b0x9)== _0x43b0x2[_0x5b48[253]][_0x5b48[905]]?null:_0x43b0x4(_0x43b0x9))):_0x43b0x5&& mxEvent[_0x5b48[722]](_0x43b0x9)}),mxUtils[_0x5b48[885]](this,function(_0x43b0x9){this[_0x5b48[2211]](_0x43b0x2,_0x43b0x9)&& !_0x43b0x5?_0x43b0x3[_0x5b48[758]](mxEvent.MOUSE_UP, new mxMouseEvent(_0x43b0x9,null!= _0x43b0x2[_0x5b48[253]]&& mxEvent[_0x5b48[728]](_0x43b0x9)== _0x43b0x2[_0x5b48[253]][_0x5b48[905]]?null:_0x43b0x4(_0x43b0x9))):_0x43b0x5&& mxEvent[_0x5b48[722]](_0x43b0x9)}));var _0x43b0x9=mxClient[_0x5b48[754]]?_0x5b48[2214]:_0x5b48[760];mxEvent[_0x5b48[169]](_0x43b0x2[_0x5b48[253]][_0x5b48[252]],_0x43b0x9,mxUtils[_0x5b48[885]](this,function(_0x43b0x4){_0x43b0x5= !1;_0x5b48[2214]== _0x43b0x9?(_0x43b0x3[_0x5b48[2213]]= 0,_0x43b0x3[_0x5b48[2215]]&& (_0x43b0x3[_0x5b48[2216]](_0x43b0x2,_0x43b0x4),mxEvent[_0x5b48[722]](_0x43b0x4))):this[_0x5b48[2211]](_0x43b0x2,_0x43b0x4)&& (_0x43b0x3[_0x5b48[761]](_0x43b0x4,null!= _0x43b0x2[_0x5b48[253]]&& mxEvent[_0x5b48[728]](_0x43b0x4)== _0x43b0x2[_0x5b48[253]][_0x5b48[905]]?null:_0x43b0x2[_0x5b48[246]]),mxEvent[_0x5b48[722]](_0x43b0x4))}))};mxCellRenderer[_0x5b48[202]][_0x5b48[2217]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=this[_0x5b48[2182]](_0x43b0x2);if(null== _0x43b0x2[_0x5b48[963]]&& null!= _0x43b0x4&& (mxUtils[_0x5b48[1331]](_0x43b0x4)|| 0< _0x43b0x4[_0x5b48[67]])){this[_0x5b48[2184]](_0x43b0x2,_0x43b0x4)}else {if(null!= _0x43b0x2[_0x5b48[963]]&& (null== _0x43b0x4|| 0== _0x43b0x4[_0x5b48[67]])){_0x43b0x2[_0x5b48[963]][_0x5b48[515]](),_0x43b0x2[_0x5b48[963]]= null}};if(null!= _0x43b0x2[_0x5b48[963]]){var _0x43b0x5=_0x43b0x2[_0x5b48[441]][_0x5b48[1179]],_0x43b0x9=_0x43b0x5[_0x5b48[2131]](_0x43b0x2[_0x5b48[246]]),_0x43b0x5=_0x43b0x5[_0x5b48[2130]](_0x43b0x2[_0x5b48[246]]),_0x43b0xa=this[_0x5b48[2218]](_0x43b0x2);if(_0x43b0x3|| _0x43b0x2[_0x5b48[963]][_0x5b48[131]]!= _0x43b0x4|| _0x43b0x2[_0x5b48[963]][_0x5b48[2131]]!= _0x43b0x9|| _0x43b0x2[_0x5b48[963]][_0x5b48[2219]]!= _0x43b0x5|| _0x43b0x2[_0x5b48[963]][_0x5b48[255]]!= _0x43b0x2[_0x5b48[441]][_0x5b48[255]]|| !_0x43b0x2[_0x5b48[963]][_0x5b48[1562]][_0x5b48[237]](_0x43b0xa)){_0x43b0x2[_0x5b48[963]][_0x5b48[131]]= _0x43b0x4,_0x43b0x2[_0x5b48[963]][_0x5b48[1562]]= _0x43b0xa,_0x43b0x2[_0x5b48[963]][_0x5b48[255]]= this[_0x5b48[2220]](_0x43b0x2),_0x43b0x2[_0x5b48[963]][_0x5b48[2131]]= _0x43b0x9,_0x43b0x2[_0x5b48[963]][_0x5b48[2219]]= _0x43b0x5,_0x43b0x2[_0x5b48[963]][_0x5b48[258]]()}}};mxCellRenderer[_0x5b48[202]][_0x5b48[2220]]= function(_0x43b0x2){return _0x43b0x2[_0x5b48[441]][_0x5b48[255]]};mxCellRenderer[_0x5b48[202]][_0x5b48[2218]]= function(_0x43b0x2){var _0x43b0x3=_0x43b0x2[_0x5b48[441]][_0x5b48[1179]],_0x43b0x4=_0x43b0x2[_0x5b48[441]][_0x5b48[255]],_0x43b0x5=_0x43b0x3[_0x5b48[502]]()[_0x5b48[250]](_0x43b0x2[_0x5b48[246]]),_0x43b0x9= new mxRectangle(_0x43b0x2[_0x5b48[2079]][_0x5b48[235]],_0x43b0x2[_0x5b48[2079]][_0x5b48[236]]);_0x43b0x2[_0x5b48[963]][_0x5b48[1672]]();_0x43b0x5?(_0x43b0x5= _0x43b0x2[_0x5b48[963]][_0x5b48[1673]](),_0x43b0x9[_0x5b48[235]]+= _0x43b0x5[_0x5b48[235]]* _0x43b0x4,_0x43b0x9[_0x5b48[236]]+= _0x43b0x5[_0x5b48[236]]* _0x43b0x4,_0x43b0x3= _0x43b0x3[_0x5b48[1198]](_0x43b0x2[_0x5b48[246]]),null!= _0x43b0x3&& (_0x43b0x9[_0x5b48[117]]= Math[_0x5b48[160]](0,_0x43b0x2[_0x5b48[963]][_0x5b48[1655]][_0x5b48[235]]* _0x43b0x3[_0x5b48[117]]* _0x43b0x4- _0x43b0x2[_0x5b48[963]][_0x5b48[659]]* _0x43b0x4- _0x43b0x2[_0x5b48[963]][_0x5b48[661]]* _0x43b0x4),_0x43b0x9[_0x5b48[119]]= Math[_0x5b48[160]](0,_0x43b0x2[_0x5b48[963]][_0x5b48[1655]][_0x5b48[236]]* _0x43b0x3[_0x5b48[119]]* _0x43b0x4- _0x43b0x2[_0x5b48[963]][_0x5b48[658]]* _0x43b0x4- _0x43b0x2[_0x5b48[963]][_0x5b48[660]]* _0x43b0x4))):(_0x43b0x2[_0x5b48[963]][_0x5b48[1590]]()&& (_0x43b0x5= _0x43b0x9[_0x5b48[235]],_0x43b0x9[_0x5b48[235]]= _0x43b0x9[_0x5b48[236]],_0x43b0x9[_0x5b48[236]]= _0x43b0x5),_0x43b0x9[_0x5b48[235]]+= _0x43b0x2[_0x5b48[235]],_0x43b0x9[_0x5b48[236]]+= _0x43b0x2[_0x5b48[236]],_0x43b0x9[_0x5b48[117]]= Math[_0x5b48[160]](1,_0x43b0x2[_0x5b48[117]]),_0x43b0x9[_0x5b48[119]]= Math[_0x5b48[160]](1,_0x43b0x2[_0x5b48[119]]),_0x43b0x3[_0x5b48[1730]](_0x43b0x2[_0x5b48[246]])&& (_0x43b0x3= _0x43b0x3[_0x5b48[1731]](_0x43b0x2[_0x5b48[246]]),0< _0x43b0x3[_0x5b48[117]]?(_0x43b0x5= Math[_0x5b48[243]](_0x43b0x9[_0x5b48[117]],_0x43b0x3[_0x5b48[117]]* _0x43b0x4),_0x43b0x2[_0x5b48[253]][_0x5b48[623]]&& (_0x43b0x9[_0x5b48[235]]+= _0x43b0x9[_0x5b48[117]]- _0x43b0x5),_0x43b0x9[_0x5b48[117]]= _0x43b0x5):0< _0x43b0x3[_0x5b48[119]]&& (_0x43b0x5= Math[_0x5b48[243]](_0x43b0x9[_0x5b48[119]],_0x43b0x3[_0x5b48[119]]* _0x43b0x4),_0x43b0x2[_0x5b48[253]][_0x5b48[624]]&& (_0x43b0x9[_0x5b48[236]]+= _0x43b0x9[_0x5b48[119]]- _0x43b0x5),_0x43b0x9[_0x5b48[119]]= _0x43b0x5)),this[_0x5b48[2221]](_0x43b0x2,_0x43b0x9));return _0x43b0x9};mxCellRenderer[_0x5b48[202]][_0x5b48[2221]]= function(_0x43b0x2,_0x43b0x3){if(_0x43b0x2[_0x5b48[963]][_0x5b48[1590]]()){var _0x43b0x4=(_0x43b0x2[_0x5b48[117]]- _0x43b0x2[_0x5b48[119]])/ 2;_0x43b0x3[_0x5b48[235]]+= _0x43b0x4;_0x43b0x3[_0x5b48[236]]-= _0x43b0x4;_0x43b0x4= _0x43b0x3[_0x5b48[117]];_0x43b0x3[_0x5b48[117]]= _0x43b0x3[_0x5b48[119]];_0x43b0x3[_0x5b48[119]]= _0x43b0x4};_0x43b0x3[_0x5b48[235]]-= _0x43b0x2[_0x5b48[963]][_0x5b48[1655]][_0x5b48[235]]* _0x43b0x3[_0x5b48[117]];_0x43b0x3[_0x5b48[236]]-= _0x43b0x2[_0x5b48[963]][_0x5b48[1655]][_0x5b48[236]]* _0x43b0x3[_0x5b48[119]];if(_0x5b48[1334]!= _0x43b0x2[_0x5b48[124]][mxConstants[_0x5b48[2193]]]){var _0x43b0x4=_0x43b0x2[_0x5b48[441]][_0x5b48[255]],_0x43b0x5=_0x43b0x2[_0x5b48[963]][_0x5b48[1673]]();_0x43b0x3[_0x5b48[235]]+= _0x43b0x5[_0x5b48[235]]* _0x43b0x4;_0x43b0x3[_0x5b48[236]]+= _0x43b0x5[_0x5b48[236]]* _0x43b0x4;_0x43b0x3[_0x5b48[117]]= Math[_0x5b48[160]](0,_0x43b0x3[_0x5b48[117]]- _0x43b0x2[_0x5b48[963]][_0x5b48[659]]* _0x43b0x4- _0x43b0x2[_0x5b48[963]][_0x5b48[661]]* _0x43b0x4);_0x43b0x3[_0x5b48[119]]= Math[_0x5b48[160]](0,_0x43b0x3[_0x5b48[119]]- _0x43b0x2[_0x5b48[963]][_0x5b48[658]]* _0x43b0x4- _0x43b0x2[_0x5b48[963]][_0x5b48[660]]* _0x43b0x4)};var _0x43b0x9=_0x43b0x2[_0x5b48[963]][_0x5b48[1615]]();if(0!= _0x43b0x9&& (null!= _0x43b0x2&& _0x43b0x2[_0x5b48[441]][_0x5b48[1179]][_0x5b48[251]][_0x5b48[1193]](_0x43b0x2[_0x5b48[246]]))&& (_0x43b0x4= _0x43b0x2[_0x5b48[241]](),_0x43b0x5= _0x43b0x2[_0x5b48[242]](),_0x43b0x3[_0x5b48[235]]!= _0x43b0x4|| _0x43b0x3[_0x5b48[236]]!= _0x43b0x5)){_0x43b0x9*= Math[_0x5b48[424]]/ 180,pt= mxUtils[_0x5b48[432]]( new mxPoint(_0x43b0x3[_0x5b48[235]],_0x43b0x3[_0x5b48[236]]),Math[_0x5b48[426]](_0x43b0x9),Math[_0x5b48[427]](_0x43b0x9), new mxPoint(_0x43b0x4,_0x43b0x5)),_0x43b0x3[_0x5b48[235]]= pt[_0x5b48[235]],_0x43b0x3[_0x5b48[236]]= pt[_0x5b48[236]]}};mxCellRenderer[_0x5b48[202]][_0x5b48[2222]]= function(_0x43b0x2,_0x43b0x3){this[_0x5b48[2162]](_0x43b0x2);if(null!= _0x43b0x2[_0x5b48[1211]]){var _0x43b0x4=mxUtils[_0x5b48[1454]](mxUtils[_0x5b48[433]](_0x43b0x2[_0x5b48[124]],mxConstants.STYLE_ROTATION,0),90),_0x43b0x5=mxUtils[_0x5b48[431]](_0x43b0x4),_0x43b0x9=Math[_0x5b48[426]](_0x43b0x5),_0x43b0xa=Math[_0x5b48[427]](_0x43b0x5);_0x43b0x2[_0x5b48[1211]][_0x5b48[209]](function(_0x43b0x5,_0x43b0x13){var _0x43b0x14=_0x43b0x13[_0x5b48[2201]][_0x5b48[1799]](_0x43b0x2);if(!_0x43b0x2[_0x5b48[441]][_0x5b48[1179]][_0x5b48[502]]()[_0x5b48[250]](_0x43b0x2[_0x5b48[246]])&& null!= _0x43b0x2[_0x5b48[253]] && 0!= _0x43b0x4){var _0x43b0x15=_0x43b0x14[_0x5b48[241]](),_0x43b0x16=_0x43b0x14[_0x5b48[242]](),_0x43b0x16=mxUtils[_0x5b48[432]]( new mxPoint(_0x43b0x15,_0x43b0x16),_0x43b0x9,_0x43b0xa, new mxPoint(_0x43b0x2[_0x5b48[241]](),_0x43b0x2[_0x5b48[242]]())),_0x43b0x15=_0x43b0x16[_0x5b48[235]],_0x43b0x16=_0x43b0x16[_0x5b48[236]];_0x43b0x14[_0x5b48[235]]= Math[_0x5b48[488]](_0x43b0x15- _0x43b0x14[_0x5b48[117]]/ 2);_0x43b0x14[_0x5b48[236]]= Math[_0x5b48[488]](_0x43b0x16- _0x43b0x14[_0x5b48[119]]/ 2)};if(_0x43b0x3|| null== _0x43b0x13[_0x5b48[1562]]|| _0x43b0x13[_0x5b48[255]]!= _0x43b0x2[_0x5b48[441]][_0x5b48[255]]|| !_0x43b0x13[_0x5b48[1562]][_0x5b48[237]](_0x43b0x14)){_0x43b0x13[_0x5b48[1562]]= _0x43b0x14,_0x43b0x13[_0x5b48[255]]= _0x43b0x2[_0x5b48[441]][_0x5b48[255]],_0x43b0x13[_0x5b48[258]]()}})}};mxCellRenderer[_0x5b48[202]][_0x5b48[2223]]= function(_0x43b0x2,_0x43b0x3){if(null!= _0x43b0x2[_0x5b48[2207]]){var _0x43b0x4=this[_0x5b48[2224]](_0x43b0x2),_0x43b0x5=this[_0x5b48[2152]]?mxUtils[_0x5b48[433]](_0x43b0x2[_0x5b48[124]],mxConstants.STYLE_ROTATION,0):_0x43b0x2[_0x5b48[253]][_0x5b48[1615]](),_0x43b0x9=_0x43b0x2[_0x5b48[441]][_0x5b48[255]];if(_0x43b0x3|| _0x43b0x2[_0x5b48[2207]][_0x5b48[255]]!= _0x43b0x9|| !_0x43b0x2[_0x5b48[2207]][_0x5b48[1562]][_0x5b48[237]](_0x43b0x4)|| _0x43b0x2[_0x5b48[2207]][_0x5b48[603]]!= _0x43b0x5){_0x43b0x2[_0x5b48[2207]][_0x5b48[603]]= _0x43b0x5,_0x43b0x2[_0x5b48[2207]][_0x5b48[1562]]= _0x43b0x4,_0x43b0x2[_0x5b48[2207]][_0x5b48[255]]= _0x43b0x9,_0x43b0x2[_0x5b48[2207]][_0x5b48[258]]()}}};mxCellRenderer[_0x5b48[202]][_0x5b48[2224]]= function(_0x43b0x2){if(null!= _0x43b0x2[_0x5b48[2207]]){var _0x43b0x3=_0x43b0x2[_0x5b48[2207]][_0x5b48[255]],_0x43b0x4=_0x43b0x2[_0x5b48[2207]][_0x5b48[1562]][_0x5b48[117]]/ _0x43b0x3,_0x43b0x3=_0x43b0x2[_0x5b48[2207]][_0x5b48[1562]][_0x5b48[119]]/ _0x43b0x3,_0x43b0x5=_0x43b0x2[_0x5b48[441]][_0x5b48[255]],_0x43b0x9=_0x43b0x2[_0x5b48[241]](),_0x43b0xa=_0x43b0x2[_0x5b48[242]]();if(!_0x43b0x2[_0x5b48[441]][_0x5b48[1179]][_0x5b48[502]]()[_0x5b48[250]](_0x43b0x2[_0x5b48[246]])&& (_0x43b0x9= _0x43b0x2[_0x5b48[235]]+ _0x43b0x4* _0x43b0x5,_0x43b0xa= _0x43b0x2[_0x5b48[236]]+ _0x43b0x3* _0x43b0x5,null!= _0x43b0x2[_0x5b48[253]])){var _0x43b0x12=_0x43b0x2[_0x5b48[253]][_0x5b48[1598]]();if(this[_0x5b48[2152]]){_0x43b0x12= mxUtils[_0x5b48[433]](_0x43b0x2[_0x5b48[124]],mxConstants.STYLE_ROTATION,0)}else {if(_0x43b0x2[_0x5b48[253]][_0x5b48[1590]]()){var _0x43b0x13=(_0x43b0x2[_0x5b48[117]]- _0x43b0x2[_0x5b48[119]])/ 2,_0x43b0x9=_0x43b0x9+ _0x43b0x13,_0x43b0xa=_0x43b0xa- _0x43b0x13}};0!= _0x43b0x12&& (_0x43b0x13= mxUtils[_0x5b48[431]](_0x43b0x12),_0x43b0x12= Math[_0x5b48[426]](_0x43b0x13),_0x43b0x13= Math[_0x5b48[427]](_0x43b0x13),_0x43b0xa= mxUtils[_0x5b48[432]]( new mxPoint(_0x43b0x9,_0x43b0xa),_0x43b0x12,_0x43b0x13, new mxPoint(_0x43b0x2[_0x5b48[241]](),_0x43b0x2[_0x5b48[242]]())),_0x43b0x9= _0x43b0xa[_0x5b48[235]],_0x43b0xa= _0x43b0xa[_0x5b48[236]])};return _0x43b0x2[_0x5b48[441]][_0x5b48[1179]][_0x5b48[502]]()[_0x5b48[250]](_0x43b0x2[_0x5b48[246]]), new mxRectangle(Math[_0x5b48[488]](_0x43b0x9- _0x43b0x4/ 2* _0x43b0x5),Math[_0x5b48[488]](_0x43b0xa- _0x43b0x3/ 2* _0x43b0x5),Math[_0x5b48[488]](_0x43b0x4* _0x43b0x5),Math[_0x5b48[488]](_0x43b0x3* _0x43b0x5))};return null};mxCellRenderer[_0x5b48[202]][_0x5b48[258]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){if(null!= _0x43b0x2[_0x5b48[253]]){var _0x43b0x5=!1;_0x43b0x2[_0x5b48[441]][_0x5b48[1179]][_0x5b48[502]]()[_0x5b48[250]](_0x43b0x2[_0x5b48[246]]);reconfigure= null!= _0x43b0x3?_0x43b0x3:!1;this[_0x5b48[2204]](_0x43b0x2);if(_0x43b0x2[_0x5b48[2082]]|| _0x43b0x2[_0x5b48[2081]]){_0x43b0x2[_0x5b48[441]][_0x5b48[1179]][_0x5b48[2158]]?this[_0x5b48[2166]](_0x43b0x2):this[_0x5b48[2167]](_0x43b0x2)};if(_0x43b0x2[_0x5b48[2082]]|| !mxUtils[_0x5b48[2225]](_0x43b0x2[_0x5b48[253]][_0x5b48[124]],_0x43b0x2[_0x5b48[124]])){this[_0x5b48[2170]](_0x43b0x2),_0x43b0x3= !0};delete _0x43b0x2[_0x5b48[2081]];delete _0x43b0x2[_0x5b48[2082]];if(_0x43b0x3|| null== _0x43b0x2[_0x5b48[253]][_0x5b48[1562]]|| _0x43b0x2[_0x5b48[253]][_0x5b48[255]]!= _0x43b0x2[_0x5b48[441]][_0x5b48[255]]|| !_0x43b0x2[_0x5b48[253]][_0x5b48[1562]][_0x5b48[237]](_0x43b0x2)|| !mxUtils[_0x5b48[2226]](_0x43b0x2[_0x5b48[253]][_0x5b48[1525]],_0x43b0x2[_0x5b48[439]])){_0x43b0x5= !0,_0x43b0x2[_0x5b48[253]][_0x5b48[1525]]= null!= _0x43b0x2[_0x5b48[439]]?_0x43b0x2[_0x5b48[439]][_0x5b48[1853]]():null,_0x43b0x2[_0x5b48[253]][_0x5b48[1562]]= new mxRectangle(_0x43b0x2[_0x5b48[235]],_0x43b0x2[_0x5b48[236]],_0x43b0x2[_0x5b48[117]],_0x43b0x2[_0x5b48[119]]),_0x43b0x2[_0x5b48[253]][_0x5b48[255]]= _0x43b0x2[_0x5b48[441]][_0x5b48[255]],null== _0x43b0x4|| _0x43b0x4?_0x43b0x2[_0x5b48[253]][_0x5b48[258]]():_0x43b0x2[_0x5b48[253]][_0x5b48[1577]]()};if(null== _0x43b0x4|| _0x43b0x4){this[_0x5b48[2217]](_0x43b0x2,_0x43b0x5),this[_0x5b48[2222]](_0x43b0x2,_0x43b0x5),this[_0x5b48[2223]](_0x43b0x2,_0x43b0x5)}}};mxCellRenderer[_0x5b48[202]][_0x5b48[515]]= function(_0x43b0x2){null!= _0x43b0x2[_0x5b48[253]]&& (null!= _0x43b0x2[_0x5b48[963]]&& (_0x43b0x2[_0x5b48[963]][_0x5b48[515]](),_0x43b0x2[_0x5b48[963]]= null),null!= _0x43b0x2[_0x5b48[1211]]&& (_0x43b0x2[_0x5b48[1211]][_0x5b48[209]](function(_0x43b0x2,_0x43b0x4){_0x43b0x4[_0x5b48[515]]()}),_0x43b0x2[_0x5b48[1211]]= null),null!= _0x43b0x2[_0x5b48[2207]]&& (_0x43b0x2[_0x5b48[2207]][_0x5b48[515]](),_0x43b0x2[_0x5b48[2207]]= null),_0x43b0x2[_0x5b48[253]][_0x5b48[515]](),_0x43b0x2[_0x5b48[253]]= null)};var mxEdgeStyle={EntityRelation:function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){var _0x43b0xa=_0x43b0x2[_0x5b48[441]],_0x43b0x12=_0x43b0xa[_0x5b48[1179]];_0x43b0x5= mxUtils[_0x5b48[433]](_0x43b0x2[_0x5b48[124]],mxConstants.STYLE_SEGMENT,mxConstants.ENTITY_SEGMENT)* _0x43b0xa[_0x5b48[255]];var _0x43b0x13=_0x43b0x2[_0x5b48[439]],_0x43b0x14=_0x43b0x13[0],_0x43b0x15=_0x43b0x13[_0x43b0x13[_0x5b48[67]]- 1],_0x43b0x13=!1;if(null!= _0x43b0x14){_0x43b0x3= new mxCellState,_0x43b0x3[_0x5b48[235]]= _0x43b0x14[_0x5b48[235]],_0x43b0x3[_0x5b48[236]]= _0x43b0x14[_0x5b48[236]]}else {if(null!= _0x43b0x3){var _0x43b0x16=mxUtils[_0x5b48[2227]](_0x43b0x3,_0x43b0x2,!0,mxConstants.DIRECTION_MASK_NONE);_0x43b0x16!= mxConstants[_0x5b48[434]]?_0x43b0x13= _0x43b0x16== mxConstants[_0x5b48[436]]:(_0x43b0x14= _0x43b0x12[_0x5b48[1198]](_0x43b0x3[_0x5b48[246]]),_0x43b0x14[_0x5b48[1500]]?_0x43b0x13= 0.5>= _0x43b0x14[_0x5b48[235]]:null!= _0x43b0x4&& (_0x43b0x13= _0x43b0x4[_0x5b48[235]]+ _0x43b0x4[_0x5b48[117]]< _0x43b0x3[_0x5b48[235]]))}else {return}};_0x43b0x14= !0;null!= _0x43b0x15?(_0x43b0x4= new mxCellState,_0x43b0x4[_0x5b48[235]]= _0x43b0x15[_0x5b48[235]],_0x43b0x4[_0x5b48[236]]= _0x43b0x15[_0x5b48[236]]):null!= _0x43b0x4&& (_0x43b0x16= mxUtils[_0x5b48[2227]](_0x43b0x4,_0x43b0x2,!1,mxConstants.DIRECTION_MASK_NONE),_0x43b0x16!= mxConstants[_0x5b48[434]]?_0x43b0x14= _0x43b0x16== mxConstants[_0x5b48[436]]:(_0x43b0x2= _0x43b0x12[_0x5b48[1198]](_0x43b0x4[_0x5b48[246]]),_0x43b0x2[_0x5b48[1500]]?_0x43b0x14= 0.5>= _0x43b0x2[_0x5b48[235]]:null!= _0x43b0x3&& (_0x43b0x14= _0x43b0x3[_0x5b48[235]]+ _0x43b0x3[_0x5b48[117]]< _0x43b0x4[_0x5b48[235]])));null!= _0x43b0x3&& null!= _0x43b0x4&& (_0x43b0x2= _0x43b0x13?_0x43b0x3[_0x5b48[235]]:_0x43b0x3[_0x5b48[235]]+ _0x43b0x3[_0x5b48[117]],_0x43b0x3= _0x43b0xa[_0x5b48[2228]](_0x43b0x3),_0x43b0x12= _0x43b0x14?_0x43b0x4[_0x5b48[235]]:_0x43b0x4[_0x5b48[235]]+ _0x43b0x4[_0x5b48[117]],_0x43b0x4= _0x43b0xa[_0x5b48[2228]](_0x43b0x4),_0x43b0xa= new mxPoint(_0x43b0x2+ (_0x43b0x13?-_0x43b0x5:_0x43b0x5),_0x43b0x3),_0x43b0x15= new mxPoint(_0x43b0x12+ (_0x43b0x14?-_0x43b0x5:_0x43b0x5),_0x43b0x4),_0x43b0x13== _0x43b0x14?(_0x43b0x5= _0x43b0x13?Math[_0x5b48[243]](_0x43b0x2,_0x43b0x12)- _0x43b0x5:Math[_0x5b48[160]](_0x43b0x2,_0x43b0x12)+ _0x43b0x5,_0x43b0x9[_0x5b48[207]]( new mxPoint(_0x43b0x5,_0x43b0x3)),_0x43b0x9[_0x5b48[207]]( new mxPoint(_0x43b0x5,_0x43b0x4))):(_0x43b0xa[_0x5b48[235]]< _0x43b0x15[_0x5b48[235]]== _0x43b0x13?(_0x43b0x5= _0x43b0x3+ (_0x43b0x4- _0x43b0x3)/ 2,_0x43b0x9[_0x5b48[207]](_0x43b0xa),_0x43b0x9[_0x5b48[207]]( new mxPoint(_0x43b0xa[_0x5b48[235]],_0x43b0x5)),_0x43b0x9[_0x5b48[207]]( new mxPoint(_0x43b0x15[_0x5b48[235]],_0x43b0x5))):_0x43b0x9[_0x5b48[207]](_0x43b0xa),_0x43b0x9[_0x5b48[207]](_0x43b0x15)))},Loop:function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){if(null!= _0x43b0x3){_0x43b0x4= _0x43b0x2[_0x5b48[441]];var _0x43b0xa=_0x43b0x4[_0x5b48[1179]];_0x43b0x5= null!= _0x43b0x5&& 0< _0x43b0x5[_0x5b48[67]]?_0x43b0x5[0]:null;null!= _0x43b0x5&& (_0x43b0x5= _0x43b0x4[_0x5b48[2229]](_0x43b0x2,_0x43b0x5),mxUtils[_0x5b48[442]](_0x43b0x3,_0x43b0x5[_0x5b48[235]],_0x43b0x5[_0x5b48[236]])&& (_0x43b0x5= null));var _0x43b0x12=0,_0x43b0x13=0,_0x43b0x14=0,_0x43b0x15=0,_0x43b0xa=mxUtils[_0x5b48[433]](_0x43b0x2[_0x5b48[124]],mxConstants.STYLE_SEGMENT,_0x43b0xa[_0x5b48[1020]])* _0x43b0x4[_0x5b48[255]];_0x43b0x2= mxUtils[_0x5b48[433]](_0x43b0x2[_0x5b48[124]],mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_WEST);_0x43b0x2== mxConstants[_0x5b48[1358]]|| _0x43b0x2== mxConstants[_0x5b48[1354]]?(_0x43b0x12= _0x43b0x4[_0x5b48[2230]](_0x43b0x3),_0x43b0x13= _0x43b0xa):(_0x43b0x14= _0x43b0x4[_0x5b48[2228]](_0x43b0x3),_0x43b0x15= _0x43b0xa);null== _0x43b0x5|| _0x43b0x5[_0x5b48[235]]< _0x43b0x3[_0x5b48[235]]|| _0x43b0x5[_0x5b48[235]]> _0x43b0x3[_0x5b48[235]]+ _0x43b0x3[_0x5b48[117]]?null!= _0x43b0x5?(_0x43b0x12= _0x43b0x5[_0x5b48[235]],_0x43b0x15= Math[_0x5b48[160]](Math[_0x5b48[425]](_0x43b0x14- _0x43b0x5[_0x5b48[236]]),_0x43b0x15)):_0x43b0x2== mxConstants[_0x5b48[1358]]?_0x43b0x14= _0x43b0x3[_0x5b48[236]]- 2* _0x43b0x13:_0x43b0x2== mxConstants[_0x5b48[1354]]?_0x43b0x14= _0x43b0x3[_0x5b48[236]]+ _0x43b0x3[_0x5b48[119]]+ 2* _0x43b0x13:_0x43b0x12= _0x43b0x2== mxConstants[_0x5b48[1356]]?_0x43b0x3[_0x5b48[235]]- 2* _0x43b0x15:_0x43b0x3[_0x5b48[235]]+ _0x43b0x3[_0x5b48[117]]+ 2* _0x43b0x15:null!= _0x43b0x5&& (_0x43b0x12= _0x43b0x4[_0x5b48[2230]](_0x43b0x3),_0x43b0x13= Math[_0x5b48[160]](Math[_0x5b48[425]](_0x43b0x12- _0x43b0x5[_0x5b48[235]]),_0x43b0x15),_0x43b0x14= _0x43b0x5[_0x5b48[236]],_0x43b0x15= 0);_0x43b0x9[_0x5b48[207]]( new mxPoint(_0x43b0x12- _0x43b0x13,_0x43b0x14- _0x43b0x15));_0x43b0x9[_0x5b48[207]]( new mxPoint(_0x43b0x12+ _0x43b0x13,_0x43b0x14+ _0x43b0x15))}},ElbowConnector:function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){var _0x43b0xa=null!= _0x43b0x5&& 0< _0x43b0x5[_0x5b48[67]]?_0x43b0x5[0]:null,_0x43b0x12=!1,_0x43b0x13=!1;if(null!= _0x43b0x3&& null!= _0x43b0x4){if(null!= _0x43b0xa){var _0x43b0x14=Math[_0x5b48[243]](_0x43b0x3[_0x5b48[235]],_0x43b0x4[_0x5b48[235]]),_0x43b0x15=Math[_0x5b48[160]](_0x43b0x3[_0x5b48[235]]+ _0x43b0x3[_0x5b48[117]],_0x43b0x4[_0x5b48[235]]+ _0x43b0x4[_0x5b48[117]]),_0x43b0x13=Math[_0x5b48[243]](_0x43b0x3[_0x5b48[236]],_0x43b0x4[_0x5b48[236]]),_0x43b0x16=Math[_0x5b48[160]](_0x43b0x3[_0x5b48[236]]+ _0x43b0x3[_0x5b48[119]],_0x43b0x4[_0x5b48[236]]+ _0x43b0x4[_0x5b48[119]]),_0x43b0xa=_0x43b0x2[_0x5b48[441]][_0x5b48[2229]](_0x43b0x2,_0x43b0xa),_0x43b0x12=_0x43b0xa[_0x5b48[236]]< _0x43b0x13|| _0x43b0xa[_0x5b48[236]]> _0x43b0x16,_0x43b0x13=_0x43b0xa[_0x5b48[235]]< _0x43b0x14|| _0x43b0xa[_0x5b48[235]]> _0x43b0x15}else {_0x43b0x14= Math[_0x5b48[160]](_0x43b0x3[_0x5b48[235]],_0x43b0x4[_0x5b48[235]]),_0x43b0x15= Math[_0x5b48[243]](_0x43b0x3[_0x5b48[235]]+ _0x43b0x3[_0x5b48[117]],_0x43b0x4[_0x5b48[235]]+ _0x43b0x4[_0x5b48[117]]),_0x43b0x12= _0x43b0x14== _0x43b0x15,_0x43b0x12|| (_0x43b0x13= Math[_0x5b48[160]](_0x43b0x3[_0x5b48[236]],_0x43b0x4[_0x5b48[236]]),_0x43b0x16= Math[_0x5b48[243]](_0x43b0x3[_0x5b48[236]]+ _0x43b0x3[_0x5b48[119]],_0x43b0x4[_0x5b48[236]]+ _0x43b0x4[_0x5b48[119]]),_0x43b0x13= _0x43b0x13== _0x43b0x16)}};!_0x43b0x13&& (_0x43b0x12|| _0x43b0x2[_0x5b48[124]][mxConstants[_0x5b48[2231]]]== mxConstants[_0x5b48[2232]])?mxEdgeStyle.TopToBottom(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9):mxEdgeStyle.SideToSide(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9)},SideToSide:function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){var _0x43b0xa=_0x43b0x2[_0x5b48[441]];_0x43b0x5= null!= _0x43b0x5&& 0< _0x43b0x5[_0x5b48[67]]?_0x43b0x5[0]:null;var _0x43b0x12=_0x43b0x2[_0x5b48[439]],_0x43b0x13=_0x43b0x12[0],_0x43b0x12=_0x43b0x12[_0x43b0x12[_0x5b48[67]]- 1];null!= _0x43b0x5&& (_0x43b0x5= _0x43b0xa[_0x5b48[2229]](_0x43b0x2,_0x43b0x5));null!= _0x43b0x13&& (_0x43b0x3= new mxCellState,_0x43b0x3[_0x5b48[235]]= _0x43b0x13[_0x5b48[235]],_0x43b0x3[_0x5b48[236]]= _0x43b0x13[_0x5b48[236]]);null!= _0x43b0x12&& (_0x43b0x4= new mxCellState,_0x43b0x4[_0x5b48[235]]= _0x43b0x12[_0x5b48[235]],_0x43b0x4[_0x5b48[236]]= _0x43b0x12[_0x5b48[236]]);null!= _0x43b0x3&& null!= _0x43b0x4&& (_0x43b0x2= Math[_0x5b48[160]](_0x43b0x3[_0x5b48[235]],_0x43b0x4[_0x5b48[235]]),_0x43b0x13= Math[_0x5b48[243]](_0x43b0x3[_0x5b48[235]]+ _0x43b0x3[_0x5b48[117]],_0x43b0x4[_0x5b48[235]]+ _0x43b0x4[_0x5b48[117]]),_0x43b0x2= null!= _0x43b0x5?_0x43b0x5[_0x5b48[235]]:_0x43b0x13+ (_0x43b0x2- _0x43b0x13)/ 2,_0x43b0x13= _0x43b0xa[_0x5b48[2228]](_0x43b0x3),_0x43b0xa= _0x43b0xa[_0x5b48[2228]](_0x43b0x4),null!= _0x43b0x5&& (_0x43b0x5[_0x5b48[236]]>= _0x43b0x3[_0x5b48[236]]&& _0x43b0x5[_0x5b48[236]]<= _0x43b0x3[_0x5b48[236]]+ _0x43b0x3[_0x5b48[119]]&& (_0x43b0x13= _0x43b0x5[_0x5b48[236]]),_0x43b0x5[_0x5b48[236]]>= _0x43b0x4[_0x5b48[236]]&& _0x43b0x5[_0x5b48[236]]<= _0x43b0x4[_0x5b48[236]]+ _0x43b0x4[_0x5b48[119]]&& (_0x43b0xa= _0x43b0x5[_0x5b48[236]])),!mxUtils[_0x5b48[442]](_0x43b0x4,_0x43b0x2,_0x43b0x13)&& !mxUtils[_0x5b48[442]](_0x43b0x3,_0x43b0x2,_0x43b0x13) && _0x43b0x9[_0x5b48[207]]( new mxPoint(_0x43b0x2,_0x43b0x13)),!mxUtils[_0x5b48[442]](_0x43b0x4,_0x43b0x2,_0x43b0xa)&& !mxUtils[_0x5b48[442]](_0x43b0x3,_0x43b0x2,_0x43b0xa) && _0x43b0x9[_0x5b48[207]]( new mxPoint(_0x43b0x2,_0x43b0xa)),1== _0x43b0x9[_0x5b48[67]]&& (null!= _0x43b0x5?!mxUtils[_0x5b48[442]](_0x43b0x4,_0x43b0x2,_0x43b0x5[_0x5b48[236]])&& !mxUtils[_0x5b48[442]](_0x43b0x3,_0x43b0x2,_0x43b0x5[_0x5b48[236]]) && _0x43b0x9[_0x5b48[207]]( new mxPoint(_0x43b0x2,_0x43b0x5[_0x5b48[236]])):(_0x43b0xa= Math[_0x5b48[160]](_0x43b0x3[_0x5b48[236]],_0x43b0x4[_0x5b48[236]]),_0x43b0x3= Math[_0x5b48[243]](_0x43b0x3[_0x5b48[236]]+ _0x43b0x3[_0x5b48[119]],_0x43b0x4[_0x5b48[236]]+ _0x43b0x4[_0x5b48[119]]),_0x43b0x9[_0x5b48[207]]( new mxPoint(_0x43b0x2,_0x43b0xa+ (_0x43b0x3- _0x43b0xa)/ 2)))))},TopToBottom:function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){var _0x43b0xa=_0x43b0x2[_0x5b48[441]];_0x43b0x5= null!= _0x43b0x5&& 0< _0x43b0x5[_0x5b48[67]]?_0x43b0x5[0]:null;var _0x43b0x12=_0x43b0x2[_0x5b48[439]],_0x43b0x13=_0x43b0x12[0],_0x43b0x12=_0x43b0x12[_0x43b0x12[_0x5b48[67]]- 1];null!= _0x43b0x5&& (_0x43b0x5= _0x43b0xa[_0x5b48[2229]](_0x43b0x2,_0x43b0x5));null!= _0x43b0x13&& (_0x43b0x3= new mxCellState,_0x43b0x3[_0x5b48[235]]= _0x43b0x13[_0x5b48[235]],_0x43b0x3[_0x5b48[236]]= _0x43b0x13[_0x5b48[236]]);null!= _0x43b0x12&& (_0x43b0x4= new mxCellState,_0x43b0x4[_0x5b48[235]]= _0x43b0x12[_0x5b48[235]],_0x43b0x4[_0x5b48[236]]= _0x43b0x12[_0x5b48[236]]);null!= _0x43b0x3&& null!= _0x43b0x4&& (_0x43b0x13= Math[_0x5b48[160]](_0x43b0x3[_0x5b48[236]],_0x43b0x4[_0x5b48[236]]),_0x43b0x12= Math[_0x5b48[243]](_0x43b0x3[_0x5b48[236]]+ _0x43b0x3[_0x5b48[119]],_0x43b0x4[_0x5b48[236]]+ _0x43b0x4[_0x5b48[119]]),_0x43b0x2= _0x43b0xa[_0x5b48[2230]](_0x43b0x3),null!= _0x43b0x5&& (_0x43b0x5[_0x5b48[235]]>= _0x43b0x3[_0x5b48[235]]&& _0x43b0x5[_0x5b48[235]]<= _0x43b0x3[_0x5b48[235]]+ _0x43b0x3[_0x5b48[117]])&& (_0x43b0x2= _0x43b0x5[_0x5b48[235]]),_0x43b0x13= null!= _0x43b0x5?_0x43b0x5[_0x5b48[236]]:_0x43b0x12+ (_0x43b0x13- _0x43b0x12)/ 2,!mxUtils[_0x5b48[442]](_0x43b0x4,_0x43b0x2,_0x43b0x13)&& !mxUtils[_0x5b48[442]](_0x43b0x3,_0x43b0x2,_0x43b0x13) && _0x43b0x9[_0x5b48[207]]( new mxPoint(_0x43b0x2,_0x43b0x13)),_0x43b0x2= null!= _0x43b0x5&& _0x43b0x5[_0x5b48[235]]>= _0x43b0x4[_0x5b48[235]]&& _0x43b0x5[_0x5b48[235]]<= _0x43b0x4[_0x5b48[235]]+ _0x43b0x4[_0x5b48[117]]?_0x43b0x5[_0x5b48[235]]:_0x43b0xa[_0x5b48[2230]](_0x43b0x4),!mxUtils[_0x5b48[442]](_0x43b0x4,_0x43b0x2,_0x43b0x13)&& !mxUtils[_0x5b48[442]](_0x43b0x3,_0x43b0x2,_0x43b0x13) && _0x43b0x9[_0x5b48[207]]( new mxPoint(_0x43b0x2,_0x43b0x13)),1== _0x43b0x9[_0x5b48[67]]&& (null!= _0x43b0x5&& 1== _0x43b0x9[_0x5b48[67]]?!mxUtils[_0x5b48[442]](_0x43b0x4,_0x43b0x5[_0x5b48[235]],_0x43b0x13)&& !mxUtils[_0x5b48[442]](_0x43b0x3,_0x43b0x5[_0x5b48[235]],_0x43b0x13) && _0x43b0x9[_0x5b48[207]]( new mxPoint(_0x43b0x5[_0x5b48[235]],_0x43b0x13)):(_0x43b0xa= Math[_0x5b48[160]](_0x43b0x3[_0x5b48[235]],_0x43b0x4[_0x5b48[235]]),_0x43b0x3= Math[_0x5b48[243]](_0x43b0x3[_0x5b48[235]]+ _0x43b0x3[_0x5b48[117]],_0x43b0x4[_0x5b48[235]]+ _0x43b0x4[_0x5b48[117]]),_0x43b0x9[_0x5b48[207]]( new mxPoint(_0x43b0xa+ (_0x43b0x3- _0x43b0xa)/ 2,_0x43b0x13)))))},SegmentConnector:function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){var _0x43b0xa=_0x43b0x2[_0x5b48[439]],_0x43b0x12=!0,_0x43b0x13=null,_0x43b0x14=_0x43b0xa[0];null== _0x43b0x14&& null!= _0x43b0x3?_0x43b0x14= new mxPoint(_0x43b0x2[_0x5b48[441]][_0x5b48[2230]](_0x43b0x3),_0x43b0x2[_0x5b48[441]][_0x5b48[2228]](_0x43b0x3)):null!= _0x43b0x14&& (_0x43b0x14= _0x43b0x14[_0x5b48[238]]());var _0x43b0x15=_0x43b0xa[_0x5b48[67]]- 1;if(null!= _0x43b0x5&& 0< _0x43b0x5[_0x5b48[67]]){for(var _0x43b0x13=_0x43b0x2[_0x5b48[441]][_0x5b48[2229]](_0x43b0x2,_0x43b0x5[0]),_0x43b0x16=_0x43b0x3,_0x43b0x17=_0x43b0xa[0],_0x43b0x18=!1,_0x43b0x19=!1,_0x43b0x18=_0x43b0x13,_0x43b0x1a=_0x43b0x5[_0x5b48[67]],_0x43b0x1b=0;2> _0x43b0x1b;_0x43b0x1b++){var _0x43b0x1c=null!= _0x43b0x17&& _0x43b0x17[_0x5b48[235]]== _0x43b0x18[_0x5b48[235]],_0x43b0x1d=null!= _0x43b0x17&& _0x43b0x17[_0x5b48[236]]== _0x43b0x18[_0x5b48[236]],_0x43b0x1e=null!= _0x43b0x16&& _0x43b0x18[_0x5b48[236]]>= _0x43b0x16[_0x5b48[236]]&& _0x43b0x18[_0x5b48[236]]<= _0x43b0x16[_0x5b48[236]]+ _0x43b0x16[_0x5b48[119]],_0x43b0x16=null!= _0x43b0x16&& _0x43b0x18[_0x5b48[235]]>= _0x43b0x16[_0x5b48[235]]&& _0x43b0x18[_0x5b48[235]]<= _0x43b0x16[_0x5b48[235]]+ _0x43b0x16[_0x5b48[117]],_0x43b0x18=_0x43b0x1d|| null== _0x43b0x17&& _0x43b0x1e,_0x43b0x19=_0x43b0x1c|| null== _0x43b0x17&& _0x43b0x16;if(null!= _0x43b0x17&& !_0x43b0x1d&& !_0x43b0x1c&& (_0x43b0x1e|| _0x43b0x16)){_0x43b0x12= _0x43b0x1e?!1:!0;break};if(_0x43b0x19|| _0x43b0x18){_0x43b0x12= _0x43b0x18;1== _0x43b0x1b&& (_0x43b0x12= 0== _0x43b0x5[_0x5b48[67]]% 2?_0x43b0x18:_0x43b0x19);break};_0x43b0x16= _0x43b0x4;_0x43b0x17= _0x43b0xa[_0x43b0x15];_0x43b0x18= _0x43b0x2[_0x5b48[441]][_0x5b48[2229]](_0x43b0x2,_0x43b0x5[_0x43b0x1a- 1])};_0x43b0x12&& (null!= _0x43b0xa[0]&& _0x43b0xa[0][_0x5b48[236]]!= _0x43b0x13[_0x5b48[236]]|| null== _0x43b0xa[0]&& null!= _0x43b0x3&& (_0x43b0x13[_0x5b48[236]]< _0x43b0x3[_0x5b48[236]]|| _0x43b0x13[_0x5b48[236]]> _0x43b0x3[_0x5b48[236]]+ _0x43b0x3[_0x5b48[119]]))?_0x43b0x9[_0x5b48[207]]( new mxPoint(_0x43b0x14[_0x5b48[235]],_0x43b0x13[_0x5b48[236]])):!_0x43b0x12&& (null!= _0x43b0xa[0]&& _0x43b0xa[0][_0x5b48[235]]!= _0x43b0x13[_0x5b48[235]]|| null== _0x43b0xa[0]&& null!= _0x43b0x3&& (_0x43b0x13[_0x5b48[235]]< _0x43b0x3[_0x5b48[235]]|| _0x43b0x13[_0x5b48[235]]> _0x43b0x3[_0x5b48[235]]+ _0x43b0x3[_0x5b48[117]])) && _0x43b0x9[_0x5b48[207]]( new mxPoint(_0x43b0x13[_0x5b48[235]],_0x43b0x14[_0x5b48[236]]));_0x43b0x12?_0x43b0x14[_0x5b48[236]]= _0x43b0x13[_0x5b48[236]]:_0x43b0x14[_0x5b48[235]]= _0x43b0x13[_0x5b48[235]];for(_0x43b0x1b= 0;_0x43b0x1b< _0x43b0x5[_0x5b48[67]];_0x43b0x1b++){_0x43b0x12= !_0x43b0x12,_0x43b0x13= _0x43b0x2[_0x5b48[441]][_0x5b48[2229]](_0x43b0x2,_0x43b0x5[_0x43b0x1b]),_0x43b0x12?_0x43b0x14[_0x5b48[236]]= _0x43b0x13[_0x5b48[236]]:_0x43b0x14[_0x5b48[235]]= _0x43b0x13[_0x5b48[235]],_0x43b0x9[_0x5b48[207]](_0x43b0x14[_0x5b48[238]]())}}else {_0x43b0x13= _0x43b0x14,_0x43b0x12= !0};_0x43b0x14= _0x43b0xa[_0x43b0x15];null== _0x43b0x14&& null!= _0x43b0x4&& (_0x43b0x14= new mxPoint(_0x43b0x2[_0x5b48[441]][_0x5b48[2230]](_0x43b0x4),_0x43b0x2[_0x5b48[441]][_0x5b48[2228]](_0x43b0x4)));_0x43b0x12&& (null!= _0x43b0xa[_0x43b0x15]&& _0x43b0xa[_0x43b0x15][_0x5b48[236]]!= _0x43b0x13[_0x5b48[236]]|| null== _0x43b0xa[_0x43b0x15]&& null!= _0x43b0x4&& (_0x43b0x13[_0x5b48[236]]< _0x43b0x4[_0x5b48[236]]|| _0x43b0x13[_0x5b48[236]]> _0x43b0x4[_0x5b48[236]]+ _0x43b0x4[_0x5b48[119]]))?_0x43b0x9[_0x5b48[207]]( new mxPoint(_0x43b0x14[_0x5b48[235]],_0x43b0x13[_0x5b48[236]])):!_0x43b0x12&& (null!= _0x43b0xa[_0x43b0x15]&& _0x43b0xa[_0x43b0x15][_0x5b48[235]]!= _0x43b0x13[_0x5b48[235]]|| null== _0x43b0xa[_0x43b0x15]&& null!= _0x43b0x4&& (_0x43b0x13[_0x5b48[235]]< _0x43b0x4[_0x5b48[235]]|| _0x43b0x13[_0x5b48[235]]> _0x43b0x4[_0x5b48[235]]+ _0x43b0x4[_0x5b48[117]])) && _0x43b0x9[_0x5b48[207]]( new mxPoint(_0x43b0x13[_0x5b48[235]],_0x43b0x14[_0x5b48[236]]));if(null== _0x43b0xa[0]&& null!= _0x43b0x3){for(;1< _0x43b0x9[_0x5b48[67]]&& mxUtils[_0x5b48[442]](_0x43b0x3,_0x43b0x9[1][_0x5b48[235]],_0x43b0x9[1][_0x5b48[236]]);){_0x43b0x9= _0x43b0x9[_0x5b48[300]](1,1)}};if(null== _0x43b0xa[_0x43b0x15]&& null!= _0x43b0x4){for(;1< _0x43b0x9[_0x5b48[67]]&& mxUtils[_0x5b48[442]](_0x43b0x4,_0x43b0x9[_0x43b0x9[_0x5b48[67]]- 1][_0x5b48[235]],_0x43b0x9[_0x43b0x9[_0x5b48[67]]- 1][_0x5b48[236]]);){_0x43b0x9= _0x43b0x9[_0x5b48[300]](_0x43b0x9[_0x5b48[67]]- 1,1)}}},orthBuffer:10,dirVectors:[[-1,0],[0,-1],[1,0],[0,1],[-1,0],[0,-1],[1,0]],wayPoints1:[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],routePatterns:[[[513,2308,2081,2562],[513,1090,514,2184,2114,2561],[513,1090,514,2564,2184,2562],[513,2308,2561,1090,514,2568,2308]],[[514,1057,513,2308,2081,2562],[514,2184,2114,2561],[514,2184,2562,1057,513,2564,2184],[514,1057,513,2568,2308,2561]],[[1090,514,1057,513,2308,2081,2562],[2114,2561],[1090,2562,1057,513,2564,2184],[1090,514,1057,513,2308,2561,2568]],[[2081,2562],[1057,513,1090,514,2184,2114,2561],[1057,513,1090,514,2184,2562,2564],[1057,2561,1090,514,2568,2308]]],inlineRoutePatterns:[[null,[2114,2568],null,null],[null,[514,2081,2114,2568],null,null],[null,[2114,2561],null,null],[[2081,2562],[1057,2114,2568],[2184,2562],null]],vertexSeperations:[],limits:[[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0]],LEFT_MASK:32,TOP_MASK:64,RIGHT_MASK:128,BOTTOM_MASK:256,LEFT:1,TOP:2,RIGHT:4,BOTTOM:8,SIDE_MASK:480,CENTER_MASK:512,SOURCE_MASK:1024,TARGET_MASK:2048,VERTEX_MASK:3072,OrthConnector:function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){var _0x43b0xa=_0x43b0x2[_0x5b48[441]][_0x5b48[1179]],_0x43b0x12=null== _0x43b0x3?!1:_0x43b0xa[_0x5b48[502]]()[_0x5b48[250]](_0x43b0x3[_0x5b48[246]]),_0x43b0xa=null== _0x43b0x4?!1:_0x43b0xa[_0x5b48[502]]()[_0x5b48[250]](_0x43b0x4[_0x5b48[246]]);if(null!= _0x43b0x5&& 0< _0x43b0x5[_0x5b48[67]]|| _0x43b0x12|| _0x43b0xa){mxEdgeStyle.SegmentConnector(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9)}else {_0x43b0x5= _0x43b0x2[_0x5b48[439]];var _0x43b0x13=_0x43b0x5[0],_0x43b0x14=_0x43b0x5[_0x43b0x5[_0x5b48[67]]- 1];_0x43b0x5= null!= _0x43b0x3?_0x43b0x3[_0x5b48[235]]:_0x43b0x13[_0x5b48[235]];var _0x43b0x12=null!= _0x43b0x3?_0x43b0x3[_0x5b48[236]]:_0x43b0x13[_0x5b48[236]],_0x43b0x15=null!= _0x43b0x3?_0x43b0x3[_0x5b48[117]]:1,_0x43b0x16=null!= _0x43b0x3?_0x43b0x3[_0x5b48[119]]:1,_0x43b0x17=null!= _0x43b0x4?_0x43b0x4[_0x5b48[235]]:_0x43b0x14[_0x5b48[235]],_0x43b0x18=null!= _0x43b0x4?_0x43b0x4[_0x5b48[236]]:_0x43b0x14[_0x5b48[236]],_0x43b0x19=null!= _0x43b0x4?_0x43b0x4[_0x5b48[117]]:1,_0x43b0x1a=null!= _0x43b0x4?_0x43b0x4[_0x5b48[119]]:1,_0x43b0xa=_0x43b0x2[_0x5b48[441]][_0x5b48[255]]* mxEdgeStyle[_0x5b48[2233]],_0x43b0x1b=[mxConstants[_0x5b48[2234]],mxConstants[_0x5b48[2234]]];null!= _0x43b0x3&& (_0x43b0x1b[0]= mxUtils[_0x5b48[2227]](_0x43b0x3,_0x43b0x2,!0,mxConstants.DIRECTION_MASK_ALL));null!= _0x43b0x4&& (_0x43b0x1b[1]= mxUtils[_0x5b48[2227]](_0x43b0x4,_0x43b0x2,!1,mxConstants.DIRECTION_MASK_ALL));_0x43b0x2= [0,0];_0x43b0x5= [[_0x43b0x5,_0x43b0x12,_0x43b0x15,_0x43b0x16],[_0x43b0x17,_0x43b0x18,_0x43b0x19,_0x43b0x1a]];for(_0x43b0x15= 0;2> _0x43b0x15;_0x43b0x15++){mxEdgeStyle[_0x5b48[2235]][_0x43b0x15][1]= _0x43b0x5[_0x43b0x15][0]- _0x43b0xa,mxEdgeStyle[_0x5b48[2235]][_0x43b0x15][2]= _0x43b0x5[_0x43b0x15][1]- _0x43b0xa,mxEdgeStyle[_0x5b48[2235]][_0x43b0x15][4]= _0x43b0x5[_0x43b0x15][0]+ _0x43b0x5[_0x43b0x15][2]+ _0x43b0xa,mxEdgeStyle[_0x5b48[2235]][_0x43b0x15][8]= _0x43b0x5[_0x43b0x15][1]+ _0x43b0x5[_0x43b0x15][3]+ _0x43b0xa};_0x43b0x15= _0x43b0x5[0][0]+ _0x43b0x5[0][2]/ 2- (_0x43b0x5[1][0]+ _0x43b0x5[1][2]/ 2);_0x43b0x16= _0x43b0x5[0][1]+ _0x43b0x5[0][3]/ 2- (_0x43b0x5[1][1]+ _0x43b0x5[1][3]/ 2);_0x43b0x12= 0;0> _0x43b0x15?_0x43b0x12= 0> _0x43b0x16?2:1:0>= _0x43b0x16&& (_0x43b0x12= 3,0== _0x43b0x15&& (_0x43b0x12= 2));_0x43b0x16= null;null!= _0x43b0x3&& (_0x43b0x16= _0x43b0x13);_0x43b0x3= [[0.5,0.5],[0.5,0.5]];for(_0x43b0x15= 0;2> _0x43b0x15;_0x43b0x15++){null!= _0x43b0x16&& (_0x43b0x3[_0x43b0x15][0]= (_0x43b0x16[_0x5b48[235]]- _0x43b0x5[_0x43b0x15][0])/ _0x43b0x5[_0x43b0x15][2],0.01> _0x43b0x3[_0x43b0x15][0]?_0x43b0x2[_0x43b0x15]= mxConstants[_0x5b48[436]]:0.99< _0x43b0x3[_0x43b0x15][0]&& (_0x43b0x2[_0x43b0x15]= mxConstants[_0x5b48[438]]),_0x43b0x3[_0x43b0x15][1]= (_0x43b0x16[_0x5b48[236]]- _0x43b0x5[_0x43b0x15][1])/ _0x43b0x5[_0x43b0x15][3],0.01> _0x43b0x3[_0x43b0x15][1]?_0x43b0x2[_0x43b0x15]= mxConstants[_0x5b48[435]]:0.99< _0x43b0x3[_0x43b0x15][1]&& (_0x43b0x2[_0x43b0x15]= mxConstants[_0x5b48[437]])),_0x43b0x16= null,null!= _0x43b0x4&& (_0x43b0x16= _0x43b0x14)};_0x43b0x15= _0x43b0x5[0][1]- (_0x43b0x5[1][1]+ _0x43b0x5[1][3]);_0x43b0x16= _0x43b0x5[0][0]- (_0x43b0x5[1][0]+ _0x43b0x5[1][2]);_0x43b0x17= _0x43b0x5[1][1]- (_0x43b0x5[0][1]+ _0x43b0x5[0][3]);_0x43b0x18= _0x43b0x5[1][0]- (_0x43b0x5[0][0]+ _0x43b0x5[0][2]);mxEdgeStyle[_0x5b48[2236]][1]= Math[_0x5b48[160]](_0x43b0x16- 2* _0x43b0xa,0);mxEdgeStyle[_0x5b48[2236]][2]= Math[_0x5b48[160]](_0x43b0x15- 2* _0x43b0xa,0);mxEdgeStyle[_0x5b48[2236]][4]= Math[_0x5b48[160]](_0x43b0x17- 2* _0x43b0xa,0);mxEdgeStyle[_0x5b48[2236]][3]= Math[_0x5b48[160]](_0x43b0x18- 2* _0x43b0xa,0);_0x43b0x4= [];_0x43b0x13= [];_0x43b0x14= [];_0x43b0x13[0]= _0x43b0x16>= _0x43b0x18?mxConstants[_0x5b48[436]]:mxConstants[_0x5b48[438]];_0x43b0x14[0]= _0x43b0x15>= _0x43b0x17?mxConstants[_0x5b48[435]]:mxConstants[_0x5b48[437]];_0x43b0x13[1]= mxUtils[_0x5b48[2237]](_0x43b0x13[0]);_0x43b0x14[1]= mxUtils[_0x5b48[2237]](_0x43b0x14[0]);_0x43b0x16= _0x43b0x16>= _0x43b0x18?_0x43b0x16:_0x43b0x18;_0x43b0x17= _0x43b0x15>= _0x43b0x17?_0x43b0x15:_0x43b0x17;_0x43b0x18= [[0,0],[0,0]];_0x43b0x19= !1;for(_0x43b0x15= 0;2> _0x43b0x15;_0x43b0x15++){0== _0x43b0x2[_0x43b0x15]&& (0== (_0x43b0x13[_0x43b0x15]& _0x43b0x1b[_0x43b0x15])&& (_0x43b0x13[_0x43b0x15]= mxUtils[_0x5b48[2237]](_0x43b0x13[_0x43b0x15])),0== (_0x43b0x14[_0x43b0x15]& _0x43b0x1b[_0x43b0x15])&& (_0x43b0x14[_0x43b0x15]= mxUtils[_0x5b48[2237]](_0x43b0x14[_0x43b0x15])),_0x43b0x18[_0x43b0x15][0]= _0x43b0x14[_0x43b0x15],_0x43b0x18[_0x43b0x15][1]= _0x43b0x13[_0x43b0x15])};_0x43b0x17> 2* _0x43b0xa&& _0x43b0x16> 2* _0x43b0xa&& (0< (_0x43b0x13[0]& _0x43b0x1b[0])&& 0< (_0x43b0x14[1]& _0x43b0x1b[1])?(_0x43b0x18[0][0]= _0x43b0x13[0],_0x43b0x18[0][1]= _0x43b0x14[0],_0x43b0x18[1][0]= _0x43b0x14[1],_0x43b0x18[1][1]= _0x43b0x13[1],_0x43b0x19= !0):0< (_0x43b0x14[0]& _0x43b0x1b[0])&& 0< (_0x43b0x13[1]& _0x43b0x1b[1])&& (_0x43b0x18[0][0]= _0x43b0x14[0],_0x43b0x18[0][1]= _0x43b0x13[0],_0x43b0x18[1][0]= _0x43b0x13[1],_0x43b0x18[1][1]= _0x43b0x14[1],_0x43b0x19= !0));_0x43b0x17> 2* _0x43b0xa&& !_0x43b0x19&& (_0x43b0x18[0][0]= _0x43b0x14[0],_0x43b0x18[0][1]= _0x43b0x13[0],_0x43b0x18[1][0]= _0x43b0x14[1],_0x43b0x18[1][1]= _0x43b0x13[1],_0x43b0x19= !0);_0x43b0x16> 2* _0x43b0xa&& !_0x43b0x19&& (_0x43b0x18[0][0]= _0x43b0x13[0],_0x43b0x18[0][1]= _0x43b0x14[0],_0x43b0x18[1][0]= _0x43b0x13[1],_0x43b0x18[1][1]= _0x43b0x14[1]);for(_0x43b0x15= 0;2> _0x43b0x15;_0x43b0x15++){if(0== _0x43b0x2[_0x43b0x15]&& (0== (_0x43b0x18[_0x43b0x15][0]& _0x43b0x1b[_0x43b0x15])&& (_0x43b0x18[_0x43b0x15][0]= _0x43b0x18[_0x43b0x15][1]),_0x43b0x4[_0x43b0x15]= _0x43b0x18[_0x43b0x15][0]& _0x43b0x1b[_0x43b0x15],_0x43b0x4[_0x43b0x15]|= (_0x43b0x18[_0x43b0x15][1]& _0x43b0x1b[_0x43b0x15])<< 8,_0x43b0x4[_0x43b0x15]|= (_0x43b0x18[1- _0x43b0x15][_0x43b0x15]& _0x43b0x1b[_0x43b0x15])<< 16,_0x43b0x4[_0x43b0x15]|= (_0x43b0x18[1- _0x43b0x15][1- _0x43b0x15]& _0x43b0x1b[_0x43b0x15])<< 24,0== (_0x43b0x4[_0x43b0x15]& 15)&& (_0x43b0x4[_0x43b0x15]<<= 8),0== (_0x43b0x4[_0x43b0x15]& 3840)&& (_0x43b0x4[_0x43b0x15]= _0x43b0x4[_0x43b0x15]& 15| _0x43b0x4[_0x43b0x15]>> 8),0== (_0x43b0x4[_0x43b0x15]& 983040)&& (_0x43b0x4[_0x43b0x15]= _0x43b0x4[_0x43b0x15]& 65535| (_0x43b0x4[_0x43b0x15]& 251658240)>> 8),_0x43b0x2[_0x43b0x15]= _0x43b0x4[_0x43b0x15]& 15,_0x43b0x1b[_0x43b0x15]== mxConstants[_0x5b48[436]]|| _0x43b0x1b[_0x43b0x15]== mxConstants[_0x5b48[435]]|| _0x43b0x1b[_0x43b0x15]== mxConstants[_0x5b48[438]]|| _0x43b0x1b[_0x43b0x15]== mxConstants[_0x5b48[437]])){_0x43b0x2[_0x43b0x15]= _0x43b0x1b[_0x43b0x15]}};_0x43b0x15= _0x43b0x2[0]== mxConstants[_0x5b48[438]]?3:_0x43b0x2[0];_0x43b0x1b= _0x43b0x2[1]== mxConstants[_0x5b48[438]]?3:_0x43b0x2[1];_0x43b0x15-= _0x43b0x12;_0x43b0x1b-= _0x43b0x12;1> _0x43b0x15&& (_0x43b0x15+= 4);1> _0x43b0x1b&& (_0x43b0x1b+= 4);_0x43b0x1b= mxEdgeStyle[_0x5b48[2238]][_0x43b0x15- 1][_0x43b0x1b- 1];mxEdgeStyle[_0x5b48[2239]][0][0]= _0x43b0x5[0][0];mxEdgeStyle[_0x5b48[2239]][0][1]= _0x43b0x5[0][1];switch(_0x43b0x2[0]){case mxConstants[_0x5b48[436]]:mxEdgeStyle[_0x5b48[2239]][0][0]-= _0x43b0xa;mxEdgeStyle[_0x5b48[2239]][0][1]+= _0x43b0x3[0][1]* _0x43b0x5[0][3];break;case mxConstants[_0x5b48[437]]:mxEdgeStyle[_0x5b48[2239]][0][0]+= _0x43b0x3[0][0]* _0x43b0x5[0][2];mxEdgeStyle[_0x5b48[2239]][0][1]+= _0x43b0x5[0][3]+ _0x43b0xa;break;case mxConstants[_0x5b48[438]]:mxEdgeStyle[_0x5b48[2239]][0][0]+= _0x43b0x5[0][2]+ _0x43b0xa;mxEdgeStyle[_0x5b48[2239]][0][1]+= _0x43b0x3[0][1]* _0x43b0x5[0][3];break;case mxConstants[_0x5b48[435]]:mxEdgeStyle[_0x5b48[2239]][0][0]+= _0x43b0x3[0][0]* _0x43b0x5[0][2],mxEdgeStyle[_0x5b48[2239]][0][1]-= _0x43b0xa};_0x43b0xa= 0;_0x43b0x13= _0x43b0x4= 0< (_0x43b0x2[0]& (mxConstants[_0x5b48[438]]| mxConstants[_0x5b48[436]]))?0:1;for(_0x43b0x15= _0x43b0x14= 0;_0x43b0x15< _0x43b0x1b[_0x5b48[67]];_0x43b0x15++){_0x43b0x14= _0x43b0x1b[_0x43b0x15]& 15;_0x43b0x1a= _0x43b0x14== mxConstants[_0x5b48[438]]?3:_0x43b0x14;_0x43b0x1a+= _0x43b0x12;4< _0x43b0x1a&& (_0x43b0x1a-= 4);_0x43b0x16= mxEdgeStyle[_0x5b48[2240]][_0x43b0x1a- 1];_0x43b0x14= 0< _0x43b0x1a% 2?0:1;_0x43b0x14!= _0x43b0x4&& (_0x43b0xa++,mxEdgeStyle[_0x5b48[2239]][_0x43b0xa][0]= mxEdgeStyle[_0x5b48[2239]][_0x43b0xa- 1][0],mxEdgeStyle[_0x5b48[2239]][_0x43b0xa][1]= mxEdgeStyle[_0x5b48[2239]][_0x43b0xa- 1][1]);var _0x43b0x1c=0< (_0x43b0x1b[_0x43b0x15]& mxEdgeStyle[_0x5b48[2241]]),_0x43b0x19=0< (_0x43b0x1b[_0x43b0x15]& mxEdgeStyle[_0x5b48[2242]]),_0x43b0x17=(_0x43b0x1b[_0x43b0x15]& mxEdgeStyle[_0x5b48[2243]])>> 5,_0x43b0x17=_0x43b0x17<< _0x43b0x12;15< _0x43b0x17&& (_0x43b0x17>>= 4);_0x43b0x18= 0< (_0x43b0x1b[_0x43b0x15]& mxEdgeStyle[_0x5b48[2244]]);(_0x43b0x19|| _0x43b0x1c)&& 9> _0x43b0x17?(_0x43b0x1a= 0,_0x43b0x19= _0x43b0x19?0:1,_0x43b0x1a= _0x43b0x18&& 0== _0x43b0x14?_0x43b0x5[_0x43b0x19][0]+ _0x43b0x3[_0x43b0x19][0]* _0x43b0x5[_0x43b0x19][2]:_0x43b0x18?_0x43b0x5[_0x43b0x19][1]+ _0x43b0x3[_0x43b0x19][1]* _0x43b0x5[_0x43b0x19][3]:mxEdgeStyle[_0x5b48[2235]][_0x43b0x19][_0x43b0x17],0== _0x43b0x14?(_0x43b0x17= (_0x43b0x1a- mxEdgeStyle[_0x5b48[2239]][_0x43b0xa][0])* _0x43b0x16[0],0< _0x43b0x17&& (mxEdgeStyle[_0x5b48[2239]][_0x43b0xa][0]+= _0x43b0x16[0]* _0x43b0x17)):(_0x43b0x17= (_0x43b0x1a- mxEdgeStyle[_0x5b48[2239]][_0x43b0xa][1])* _0x43b0x16[1],0< _0x43b0x17&& (mxEdgeStyle[_0x5b48[2239]][_0x43b0xa][1]+= _0x43b0x16[1]* _0x43b0x17))):_0x43b0x18&& (mxEdgeStyle[_0x5b48[2239]][_0x43b0xa][0]+= _0x43b0x16[0]* Math[_0x5b48[425]](mxEdgeStyle[_0x5b48[2236]][_0x43b0x1a]/ 2),mxEdgeStyle[_0x5b48[2239]][_0x43b0xa][1]+= _0x43b0x16[1]* Math[_0x5b48[425]](mxEdgeStyle[_0x5b48[2236]][_0x43b0x1a]/ 2));0< _0x43b0xa&& mxEdgeStyle[_0x5b48[2239]][_0x43b0xa][_0x43b0x14]== mxEdgeStyle[_0x5b48[2239]][_0x43b0xa- 1][_0x43b0x14]?_0x43b0xa--:_0x43b0x4= _0x43b0x14};for(_0x43b0x15= 0;_0x43b0x15<= _0x43b0xa&& !(_0x43b0x15== _0x43b0xa&& ((0< (_0x43b0x2[1]& (mxConstants[_0x5b48[438]]| mxConstants[_0x5b48[436]]))?0:1)== _0x43b0x13?0:1)!= (_0x43b0xa+ 1)% 2);_0x43b0x15++){_0x43b0x9[_0x5b48[207]]( new mxPoint(mxEdgeStyle[_0x5b48[2239]][_0x43b0x15][0],mxEdgeStyle[_0x5b48[2239]][_0x43b0x15][1]))}}},getRoutePattern:function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){var _0x43b0x9=_0x43b0x2[0]== mxConstants[_0x5b48[438]]?3:_0x43b0x2[0];_0x43b0x2= _0x43b0x2[1]== mxConstants[_0x5b48[438]]?3:_0x43b0x2[1];_0x43b0x9-= _0x43b0x3;_0x43b0x2-= _0x43b0x3;1> _0x43b0x9&& (_0x43b0x9+= 4);1> _0x43b0x2&& (_0x43b0x2+= 4);_0x43b0x3= routePatterns[_0x43b0x9- 1][_0x43b0x2- 1];if(0== _0x43b0x4|| 0== _0x43b0x5){null!= inlineRoutePatterns[_0x43b0x9- 1][_0x43b0x2- 1]&& (_0x43b0x3= inlineRoutePatterns[_0x43b0x9- 1][_0x43b0x2- 1])};return _0x43b0x3}},mxStyleRegistry={values:[],putValue:function(_0x43b0x2,_0x43b0x3){mxStyleRegistry[_0x5b48[2245]][_0x43b0x2]= _0x43b0x3},getValue:function(_0x43b0x2){return mxStyleRegistry[_0x5b48[2245]][_0x43b0x2]},getName:function(_0x43b0x2){for(var _0x43b0x3 in mxStyleRegistry[_0x5b48[2245]]){if(mxStyleRegistry[_0x5b48[2245]][_0x43b0x3]== _0x43b0x2){return _0x43b0x3}};return null}};mxStyleRegistry[_0x5b48[2246]](mxConstants.EDGESTYLE_ELBOW,mxEdgeStyle.ElbowConnector);mxStyleRegistry[_0x5b48[2246]](mxConstants.EDGESTYLE_ENTITY_RELATION,mxEdgeStyle.EntityRelation);mxStyleRegistry[_0x5b48[2246]](mxConstants.EDGESTYLE_LOOP,mxEdgeStyle.Loop);mxStyleRegistry[_0x5b48[2246]](mxConstants.EDGESTYLE_SIDETOSIDE,mxEdgeStyle.SideToSide);mxStyleRegistry[_0x5b48[2246]](mxConstants.EDGESTYLE_TOPTOBOTTOM,mxEdgeStyle.TopToBottom);mxStyleRegistry[_0x5b48[2246]](mxConstants.EDGESTYLE_ORTHOGONAL,mxEdgeStyle.OrthConnector);mxStyleRegistry[_0x5b48[2246]](mxConstants.EDGESTYLE_SEGMENT,mxEdgeStyle.SegmentConnector);mxStyleRegistry[_0x5b48[2246]](mxConstants.PERIMETER_ELLIPSE,mxPerimeter.EllipsePerimeter);mxStyleRegistry[_0x5b48[2246]](mxConstants.PERIMETER_RECTANGLE,mxPerimeter.RectanglePerimeter);mxStyleRegistry[_0x5b48[2246]](mxConstants.PERIMETER_RHOMBUS,mxPerimeter.RhombusPerimeter);mxStyleRegistry[_0x5b48[2246]](mxConstants.PERIMETER_TRIANGLE,mxPerimeter.TrianglePerimeter);function mxGraphView(_0x43b0x2){this[_0x5b48[1179]]= _0x43b0x2;this[_0x5b48[513]]= new mxPoint;this[_0x5b48[2247]]= new mxRectangle;this[_0x5b48[1214]]= new mxDictionary}mxGraphView[_0x5b48[202]]= new mxEventSource;mxGraphView[_0x5b48[202]][_0x5b48[196]]= mxGraphView;mxGraphView[_0x5b48[202]][_0x5b48[2248]]= new mxPoint;mxGraphView[_0x5b48[202]][_0x5b48[2091]]= _0x5b48[130]!= mxClient[_0x5b48[90]]?_0x5b48[819]:_0x5b48[110];mxGraphView[_0x5b48[202]][_0x5b48[2249]]= _0x5b48[130]!= mxClient[_0x5b48[90]]?_0x5b48[2250]:_0x5b48[110];mxGraphView[_0x5b48[202]][_0x5b48[2251]]= !1;mxGraphView[_0x5b48[202]][_0x5b48[2252]]= !0;mxGraphView[_0x5b48[202]][_0x5b48[2253]]= !0;mxGraphView[_0x5b48[202]][_0x5b48[2254]]= !0;mxGraphView[_0x5b48[202]][_0x5b48[1179]]= null;mxGraphView[_0x5b48[202]][_0x5b48[1741]]= null;mxGraphView[_0x5b48[202]][_0x5b48[2247]]= null;mxGraphView[_0x5b48[202]][_0x5b48[255]]= 1;mxGraphView[_0x5b48[202]][_0x5b48[513]]= null;mxGraphView[_0x5b48[202]][_0x5b48[2255]]= !1;mxGraphView[_0x5b48[202]][_0x5b48[517]]= function(){return this[_0x5b48[2247]]};mxGraphView[_0x5b48[202]][_0x5b48[2256]]= function(_0x43b0x2){this[_0x5b48[2247]]= _0x43b0x2};mxGraphView[_0x5b48[202]][_0x5b48[1799]]= function(_0x43b0x2){var _0x43b0x3=null;if(null!= _0x43b0x2&& 0< _0x43b0x2[_0x5b48[67]]){for(var _0x43b0x4=this[_0x5b48[1179]][_0x5b48[502]](),_0x43b0x5=0;_0x43b0x5< _0x43b0x2[_0x5b48[67]];_0x43b0x5++){if(_0x43b0x4[_0x5b48[1193]](_0x43b0x2[_0x43b0x5])|| _0x43b0x4[_0x5b48[250]](_0x43b0x2[_0x43b0x5])){var _0x43b0x9=this[_0x5b48[248]](_0x43b0x2[_0x43b0x5]);null!= _0x43b0x9&& (null== _0x43b0x3?_0x43b0x3= new mxRectangle(_0x43b0x9[_0x5b48[235]],_0x43b0x9[_0x5b48[236]],_0x43b0x9[_0x5b48[117]],_0x43b0x9[_0x5b48[119]]):_0x43b0x3[_0x5b48[99]](_0x43b0x9))}}};return _0x43b0x3};mxGraphView[_0x5b48[202]][_0x5b48[2257]]= function(_0x43b0x2){if(this[_0x5b48[1741]]!= _0x43b0x2){var _0x43b0x3= new mxCurrentRootChange(this,_0x43b0x2);_0x43b0x3[_0x5b48[350]]();var _0x43b0x4= new mxUndoableEdit(this,!1);_0x43b0x4[_0x5b48[99]](_0x43b0x3);this[_0x5b48[746]]( new mxEventObject(mxEvent.UNDO,_0x5b48[1061],_0x43b0x4));this[_0x5b48[1179]][_0x5b48[2258]]()};return _0x43b0x2};mxGraphView[_0x5b48[202]][_0x5b48[829]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){var _0x43b0x5=this[_0x5b48[255]],_0x43b0x9= new mxPoint(this[_0x5b48[513]][_0x5b48[235]],this[_0x5b48[513]][_0x5b48[236]]);if(this[_0x5b48[255]]!= _0x43b0x2|| this[_0x5b48[513]][_0x5b48[235]]!= _0x43b0x3|| this[_0x5b48[513]][_0x5b48[236]]!= _0x43b0x4){this[_0x5b48[255]]= _0x43b0x2,this[_0x5b48[513]][_0x5b48[235]]= _0x43b0x3,this[_0x5b48[513]][_0x5b48[236]]= _0x43b0x4,this[_0x5b48[503]]()&& (this[_0x5b48[2259]](),this[_0x5b48[1179]][_0x5b48[2258]]())};this[_0x5b48[746]]( new mxEventObject(mxEvent.SCALE_AND_TRANSLATE,_0x5b48[255],_0x43b0x2,_0x5b48[2260],_0x43b0x5,_0x5b48[513],this[_0x5b48[513]],_0x5b48[2261],_0x43b0x9))};mxGraphView[_0x5b48[202]][_0x5b48[518]]= function(){return this[_0x5b48[255]]};mxGraphView[_0x5b48[202]][_0x5b48[2262]]= function(_0x43b0x2){var _0x43b0x3=this[_0x5b48[255]];this[_0x5b48[255]]!= _0x43b0x2&& (this[_0x5b48[255]]= _0x43b0x2,this[_0x5b48[503]]()&& (this[_0x5b48[2259]](),this[_0x5b48[1179]][_0x5b48[2258]]()));this[_0x5b48[746]]( new mxEventObject(mxEvent.SCALE,_0x5b48[255],_0x43b0x2,_0x5b48[2260],_0x43b0x3))};mxGraphView[_0x5b48[202]][_0x5b48[512]]= function(){return this[_0x5b48[513]]};mxGraphView[_0x5b48[202]][_0x5b48[1147]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4= new mxPoint(this[_0x5b48[513]][_0x5b48[235]],this[_0x5b48[513]][_0x5b48[236]]);if(this[_0x5b48[513]][_0x5b48[235]]!= _0x43b0x2|| this[_0x5b48[513]][_0x5b48[236]]!= _0x43b0x3){this[_0x5b48[513]][_0x5b48[235]]= _0x43b0x2,this[_0x5b48[513]][_0x5b48[236]]= _0x43b0x3,this[_0x5b48[503]]()&& (this[_0x5b48[2259]](),this[_0x5b48[1179]][_0x5b48[2258]]())};this[_0x5b48[746]]( new mxEventObject(mxEvent.TRANSLATE,_0x5b48[513],this[_0x5b48[513]],_0x5b48[2261],_0x43b0x4))};mxGraphView[_0x5b48[202]][_0x5b48[802]]= function(){null!= this[_0x5b48[1741]]&& this[_0x5b48[200]]();this[_0x5b48[2259]]()};mxGraphView[_0x5b48[202]][_0x5b48[2259]]= function(){this[_0x5b48[2263]]();this[_0x5b48[2264]]()};mxGraphView[_0x5b48[202]][_0x5b48[200]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){var _0x43b0x5=this[_0x5b48[1179]][_0x5b48[502]]();_0x43b0x2= _0x43b0x2|| _0x43b0x5[_0x5b48[501]]();_0x43b0x3= null!= _0x43b0x3?_0x43b0x3:!1;_0x43b0x4= null!= _0x43b0x4?_0x43b0x4:!0;this[_0x5b48[2265]](_0x43b0x2);if(_0x43b0x4&& (_0x43b0x3|| _0x43b0x2!= this[_0x5b48[1741]])){_0x43b0x4= _0x43b0x5[_0x5b48[262]](_0x43b0x2);for(var _0x43b0x9=0;_0x43b0x9< _0x43b0x4;_0x43b0x9++){this[_0x5b48[200]](_0x43b0x5[_0x5b48[263]](_0x43b0x2,_0x43b0x9),_0x43b0x3)}}else {this[_0x5b48[2263]](_0x43b0x2)}};mxGraphView[_0x5b48[202]][_0x5b48[2263]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){var _0x43b0x9=this[_0x5b48[1179]][_0x5b48[502]]();_0x43b0x2= _0x43b0x2|| _0x43b0x9[_0x5b48[501]]();_0x43b0x3= null!= _0x43b0x3?_0x43b0x3:!0;_0x43b0x4= null!= _0x43b0x4?_0x43b0x4:!0;_0x43b0x5= null!= _0x43b0x5?_0x43b0x5:!1;var _0x43b0xa=this[_0x5b48[248]](_0x43b0x2);null!= _0x43b0xa&& (_0x43b0xa[_0x5b48[2080]]= !0,_0x43b0x5&& (_0x43b0xa[_0x5b48[2082]]= !0));if(_0x43b0x3){for(var _0x43b0x12=_0x43b0x9[_0x5b48[262]](_0x43b0x2),_0x43b0xa=0;_0x43b0xa< _0x43b0x12;_0x43b0xa++){var _0x43b0x13=_0x43b0x9[_0x5b48[263]](_0x43b0x2,_0x43b0xa);this[_0x5b48[2263]](_0x43b0x13,_0x43b0x3,_0x43b0x4,_0x43b0x5)}};if(_0x43b0x4){_0x43b0x5= _0x43b0x9[_0x5b48[1707]](_0x43b0x2);for(_0x43b0xa= 0;_0x43b0xa< _0x43b0x5;_0x43b0xa++){this[_0x5b48[2263]](_0x43b0x9[_0x5b48[1708]](_0x43b0x2,_0x43b0xa),_0x43b0x3,_0x43b0x4)}}};mxGraphView[_0x5b48[202]][_0x5b48[2264]]= function(_0x43b0x2){var _0x43b0x3=mxLog[_0x5b48[2109]](_0x5b48[2266]);window[_0x5b48[879]]= mxResources[_0x5b48[203]](this[_0x5b48[2249]])|| this[_0x5b48[2249]];var _0x43b0x4=null;if(this[_0x5b48[2253]]&& null!= this[_0x5b48[510]]&& null== this[_0x5b48[1653]]&& (8== document[_0x5b48[5]]|| mxClient[_0x5b48[496]])){_0x43b0x4= this[_0x5b48[510]][_0x5b48[124]][_0x5b48[495]];this[_0x5b48[510]][_0x5b48[124]][_0x5b48[495]]= _0x5b48[130];var _0x43b0x5=document[_0x5b48[55]](_0x5b48[485]);_0x43b0x5[_0x5b48[124]][_0x5b48[491]]= _0x5b48[492];_0x43b0x5[_0x5b48[124]][_0x5b48[493]]= _0x5b48[494];_0x43b0x5[_0x5b48[124]][_0x5b48[187]]= _0x5b48[188];_0x43b0x5[_0x5b48[124]][_0x5b48[495]]= mxClient[_0x5b48[496]]?_0x5b48[497]:_0x5b48[498];_0x43b0x5[_0x5b48[124]][_0x5b48[499]]= _0x5b48[500];document[_0x5b48[112]][_0x5b48[62]](_0x43b0x5);this[_0x5b48[1653]]= _0x43b0x5};_0x43b0x2= _0x43b0x2|| (null!= this[_0x5b48[1741]]?this[_0x5b48[1741]]:this[_0x5b48[1179]][_0x5b48[502]]()[_0x5b48[501]]());this[_0x5b48[2267]](null,_0x43b0x2);_0x43b0x2= this[_0x5b48[2268]](null,_0x43b0x2);null== _0x43b0x2&& (_0x43b0x2= new mxRectangle);this[_0x5b48[2256]](_0x43b0x2);this[_0x5b48[2269]]();null!= _0x43b0x4&& (this[_0x5b48[510]][_0x5b48[124]][_0x5b48[495]]= _0x43b0x4,document[_0x5b48[112]][_0x5b48[266]](this[_0x5b48[1653]]),this[_0x5b48[1653]]= null);window[_0x5b48[879]]= mxResources[_0x5b48[203]](this[_0x5b48[2091]])|| this[_0x5b48[2091]];mxLog[_0x5b48[2110]](_0x5b48[2266],_0x43b0x3)};mxGraphView[_0x5b48[202]][_0x5b48[2270]]= function(_0x43b0x2){return new mxRectangleShape(_0x43b0x2,_0x5b48[1391],_0x5b48[586])};mxGraphView[_0x5b48[202]][_0x5b48[2269]]= function(){var _0x43b0x2=this[_0x5b48[1179]][_0x5b48[2271]]();if(null!= _0x43b0x2){if(null== this[_0x5b48[1617]]|| this[_0x5b48[1617]][_0x5b48[618]]!= _0x43b0x2[_0x5b48[390]]){null!= this[_0x5b48[1617]]&& this[_0x5b48[1617]][_0x5b48[515]]();var _0x43b0x3= new mxRectangle(0,0,1,1);this[_0x5b48[1617]]= new mxImageShape(_0x43b0x3,_0x43b0x2[_0x5b48[390]]);this[_0x5b48[1617]][_0x5b48[507]]= this[_0x5b48[1179]][_0x5b48[507]];this[_0x5b48[1617]][_0x5b48[176]](this[_0x5b48[2053]]);this[_0x5b48[1617]][_0x5b48[258]]()};this[_0x5b48[2272]](this[_0x5b48[1617]],_0x43b0x2)}else {null!= this[_0x5b48[1617]]&& (this[_0x5b48[1617]][_0x5b48[515]](),this[_0x5b48[1617]]= null)};this[_0x5b48[1179]][_0x5b48[2273]]?(_0x43b0x3= this[_0x5b48[2274]](),null== this[_0x5b48[2275]]?(this[_0x5b48[2275]]= this[_0x5b48[2270]](_0x43b0x3),this[_0x5b48[2275]][_0x5b48[255]]= this[_0x5b48[255]],this[_0x5b48[2275]][_0x5b48[1596]]= !0,this[_0x5b48[2275]][_0x5b48[507]]= this[_0x5b48[1179]][_0x5b48[507]],this[_0x5b48[2275]][_0x5b48[176]](this[_0x5b48[2053]]),this[_0x5b48[2275]][_0x5b48[258]](),mxEvent[_0x5b48[169]](this[_0x5b48[2275]][_0x5b48[252]],_0x5b48[760],mxUtils[_0x5b48[885]](this,function(_0x43b0x2){this[_0x5b48[1179]][_0x5b48[761]](_0x43b0x2)})),mxEvent[_0x5b48[759]](this[_0x5b48[2275]][_0x5b48[252]],mxUtils[_0x5b48[885]](this,function(_0x43b0x2){this[_0x5b48[1179]][_0x5b48[758]](mxEvent.MOUSE_DOWN, new mxMouseEvent(_0x43b0x2))}),mxUtils[_0x5b48[885]](this,function(_0x43b0x2){null!= this[_0x5b48[1179]][_0x5b48[2276]]&& this[_0x5b48[1179]][_0x5b48[2276]][_0x5b48[2277]]()&& this[_0x5b48[1179]][_0x5b48[2276]][_0x5b48[801]]();this[_0x5b48[1179]][_0x5b48[1009]]&& !mxEvent[_0x5b48[721]](_0x43b0x2)&& this[_0x5b48[1179]][_0x5b48[758]](mxEvent.MOUSE_MOVE, new mxMouseEvent(_0x43b0x2))}),mxUtils[_0x5b48[885]](this,function(_0x43b0x2){this[_0x5b48[1179]][_0x5b48[758]](mxEvent.MOUSE_UP, new mxMouseEvent(_0x43b0x2))}))):(this[_0x5b48[2275]][_0x5b48[255]]= this[_0x5b48[255]],this[_0x5b48[2275]][_0x5b48[1562]]= _0x43b0x3,this[_0x5b48[2275]][_0x5b48[258]]())):null!= this[_0x5b48[2275]]&& (this[_0x5b48[2275]][_0x5b48[515]](),this[_0x5b48[2275]]= null)};mxGraphView[_0x5b48[202]][_0x5b48[2274]]= function(){var _0x43b0x2=this[_0x5b48[1179]][_0x5b48[2013]],_0x43b0x3=this[_0x5b48[255]]* this[_0x5b48[1179]][_0x5b48[2012]];return new mxRectangle(this[_0x5b48[255]]* this[_0x5b48[513]][_0x5b48[235]],this[_0x5b48[255]]* this[_0x5b48[513]][_0x5b48[236]],_0x43b0x2[_0x5b48[117]]* _0x43b0x3,_0x43b0x2[_0x5b48[119]]* _0x43b0x3)};mxGraphView[_0x5b48[202]][_0x5b48[2272]]= function(_0x43b0x2,_0x43b0x3){_0x43b0x2[_0x5b48[255]]= this[_0x5b48[255]];_0x43b0x2[_0x5b48[1562]][_0x5b48[235]]= this[_0x5b48[255]]* this[_0x5b48[513]][_0x5b48[235]];_0x43b0x2[_0x5b48[1562]][_0x5b48[236]]= this[_0x5b48[255]]* this[_0x5b48[513]][_0x5b48[236]];_0x43b0x2[_0x5b48[1562]][_0x5b48[117]]= this[_0x5b48[255]]* _0x43b0x3[_0x5b48[117]];_0x43b0x2[_0x5b48[1562]][_0x5b48[119]]= this[_0x5b48[255]]* _0x43b0x3[_0x5b48[119]];_0x43b0x2[_0x5b48[258]]()};mxGraphView[_0x5b48[202]][_0x5b48[2267]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=this[_0x5b48[1179]][_0x5b48[502]](),_0x43b0x5=this[_0x5b48[248]](_0x43b0x3,!0);if(null!= _0x43b0x5&& _0x43b0x5[_0x5b48[2080]]){if(this[_0x5b48[1179]][_0x5b48[1714]](_0x43b0x3)){if(_0x43b0x3!= this[_0x5b48[1741]]&& null!= _0x43b0x2){_0x43b0x5[_0x5b48[2079]][_0x5b48[235]]= 0;_0x43b0x5[_0x5b48[2079]][_0x5b48[236]]= 0;_0x43b0x5[_0x5b48[2078]][_0x5b48[235]]= _0x43b0x2[_0x5b48[2078]][_0x5b48[235]];_0x43b0x5[_0x5b48[2078]][_0x5b48[236]]= _0x43b0x2[_0x5b48[2078]][_0x5b48[236]];var _0x43b0x9=this[_0x5b48[1179]][_0x5b48[1198]](_0x43b0x3);if(null!= _0x43b0x9){if(!_0x43b0x4[_0x5b48[250]](_0x43b0x3)){var _0x43b0xa=_0x43b0x9[_0x5b48[1368]]|| this[_0x5b48[2248]];_0x43b0x9[_0x5b48[1500]]?(_0x43b0x5[_0x5b48[2078]][_0x5b48[235]]+= _0x43b0x9[_0x5b48[235]]* _0x43b0x2[_0x5b48[117]]/ this[_0x5b48[255]]+ _0x43b0xa[_0x5b48[235]],_0x43b0x5[_0x5b48[2078]][_0x5b48[236]]+= _0x43b0x9[_0x5b48[236]]* _0x43b0x2[_0x5b48[119]]/ this[_0x5b48[255]]+ _0x43b0xa[_0x5b48[236]]):(_0x43b0x5[_0x5b48[2079]][_0x5b48[235]]= this[_0x5b48[255]]* _0x43b0xa[_0x5b48[235]],_0x43b0x5[_0x5b48[2079]][_0x5b48[236]]= this[_0x5b48[255]]* _0x43b0xa[_0x5b48[236]],_0x43b0x5[_0x5b48[2078]][_0x5b48[235]]+= _0x43b0x9[_0x5b48[235]],_0x43b0x5[_0x5b48[2078]][_0x5b48[236]]+= _0x43b0x9[_0x5b48[236]])};_0x43b0x5[_0x5b48[235]]= this[_0x5b48[255]]* (this[_0x5b48[513]][_0x5b48[235]]+ _0x43b0x5[_0x5b48[2078]][_0x5b48[235]]);_0x43b0x5[_0x5b48[236]]= this[_0x5b48[255]]* (this[_0x5b48[513]][_0x5b48[236]]+ _0x43b0x5[_0x5b48[2078]][_0x5b48[236]]);_0x43b0x5[_0x5b48[117]]= this[_0x5b48[255]]* _0x43b0x9[_0x5b48[117]];_0x43b0x5[_0x5b48[119]]= this[_0x5b48[255]]* _0x43b0x9[_0x5b48[119]];if(_0x43b0x4[_0x5b48[1193]](_0x43b0x3)){if(_0x43b0x9[_0x5b48[1500]]&& (_0x43b0xa= mxUtils[_0x5b48[431]](_0x43b0x2[_0x5b48[124]][mxConstants[_0x5b48[2278]]]|| _0x5b48[468]),0!= _0x43b0xa)){var _0x43b0x9=Math[_0x5b48[426]](_0x43b0xa),_0x43b0xa=Math[_0x5b48[427]](_0x43b0xa),_0x43b0x12= new mxPoint(_0x43b0x5[_0x5b48[241]](),_0x43b0x5[_0x5b48[242]]()),_0x43b0x13= new mxPoint(_0x43b0x2[_0x5b48[241]](),_0x43b0x2[_0x5b48[242]]()),_0x43b0x9=mxUtils[_0x5b48[432]](_0x43b0x12,_0x43b0x9,_0x43b0xa,_0x43b0x13);_0x43b0x5[_0x5b48[235]]= _0x43b0x9[_0x5b48[235]]- _0x43b0x5[_0x5b48[117]]/ 2;_0x43b0x5[_0x5b48[236]]= _0x43b0x9[_0x5b48[236]]- _0x43b0x5[_0x5b48[119]]/ 2};this[_0x5b48[2279]](_0x43b0x5)}}}}else {this[_0x5b48[2265]](_0x43b0x3)};_0x43b0xa= this[_0x5b48[1179]][_0x5b48[2280]](_0x43b0x3);null!= _0x43b0xa&& (_0x43b0x5[_0x5b48[2078]][_0x5b48[235]]+= _0x43b0xa[_0x5b48[235]],_0x43b0x5[_0x5b48[2078]][_0x5b48[236]]+= _0x43b0xa[_0x5b48[236]])};if(null!= _0x43b0x5&& (!this[_0x5b48[1179]][_0x5b48[1742]](_0x43b0x3)|| _0x43b0x3== this[_0x5b48[1741]])){_0x43b0x9= _0x43b0x4[_0x5b48[262]](_0x43b0x3);for(_0x43b0xa= 0;_0x43b0xa< _0x43b0x9;_0x43b0xa++){_0x43b0x12= _0x43b0x4[_0x5b48[263]](_0x43b0x3,_0x43b0xa),this[_0x5b48[2267]](_0x43b0x5,_0x43b0x12)}}};mxGraphView[_0x5b48[202]][_0x5b48[2279]]= function(_0x43b0x2){var _0x43b0x3=mxUtils[_0x5b48[433]](_0x43b0x2[_0x5b48[124]],mxConstants.STYLE_LABEL_POSITION,mxConstants.ALIGN_CENTER);_0x43b0x3== mxConstants[_0x5b48[2132]]?_0x43b0x2[_0x5b48[2079]][_0x5b48[235]]-= _0x43b0x2[_0x5b48[117]]:_0x43b0x3== mxConstants[_0x5b48[480]]&& (_0x43b0x2[_0x5b48[2079]][_0x5b48[235]]+= _0x43b0x2[_0x5b48[117]]);_0x43b0x3= mxUtils[_0x5b48[433]](_0x43b0x2[_0x5b48[124]],mxConstants.STYLE_VERTICAL_LABEL_POSITION,mxConstants.ALIGN_MIDDLE);_0x43b0x3== mxConstants[_0x5b48[1687]]?_0x43b0x2[_0x5b48[2079]][_0x5b48[236]]-= _0x43b0x2[_0x5b48[119]]:_0x43b0x3== mxConstants[_0x5b48[482]]&& (_0x43b0x2[_0x5b48[2079]][_0x5b48[236]]+= _0x43b0x2[_0x5b48[119]])};mxGraphView[_0x5b48[202]][_0x5b48[2268]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=this[_0x5b48[1179]][_0x5b48[502]](),_0x43b0x5=this[_0x5b48[248]](_0x43b0x3),_0x43b0x9=null;if(null!= _0x43b0x5){if(_0x43b0x5[_0x5b48[2080]]){var _0x43b0xa=this[_0x5b48[1179]][_0x5b48[1198]](_0x43b0x3);if(null!= _0x43b0xa&& _0x43b0x4[_0x5b48[250]](_0x43b0x3)){var _0x43b0x12=this[_0x5b48[248]](this[_0x5b48[1710]](_0x43b0x3,!0));_0x43b0x5[_0x5b48[2090]](_0x43b0x12,!0);if(null!= _0x43b0x12&& _0x43b0x4[_0x5b48[250]](_0x43b0x12[_0x5b48[246]])&& !_0x43b0x4[_0x5b48[1720]](_0x43b0x12[_0x5b48[246]],_0x43b0x3)){var _0x43b0x13=this[_0x5b48[248]](_0x43b0x4[_0x5b48[1197]](_0x43b0x12[_0x5b48[246]]));this[_0x5b48[2268]](_0x43b0x13,_0x43b0x12[_0x5b48[246]])};var _0x43b0x14=this[_0x5b48[248]](this[_0x5b48[1710]](_0x43b0x3,!1));_0x43b0x5[_0x5b48[2090]](_0x43b0x14,!1);null!= _0x43b0x14&& (_0x43b0x4[_0x5b48[250]](_0x43b0x14[_0x5b48[246]])&& !_0x43b0x4[_0x5b48[1720]](_0x43b0x14[_0x5b48[246]],_0x43b0x3))&& (_0x43b0x13= this[_0x5b48[248]](_0x43b0x4[_0x5b48[1197]](_0x43b0x14[_0x5b48[246]])),this[_0x5b48[2268]](_0x43b0x13,_0x43b0x14[_0x5b48[246]]));this[_0x5b48[2281]](_0x43b0x5,_0x43b0x12,_0x43b0x14);this[_0x5b48[2282]](_0x43b0x5,_0x43b0xa[_0x5b48[1525]],_0x43b0x12,_0x43b0x14);this[_0x5b48[2283]](_0x43b0x5,_0x43b0x12,_0x43b0x14);this[_0x5b48[2284]](_0x43b0x5);this[_0x5b48[2285]](_0x43b0x5)}else {null!= _0x43b0xa&& (_0x43b0xa[_0x5b48[1500]]&& null!= _0x43b0x2&& _0x43b0x4[_0x5b48[250]](_0x43b0x2[_0x5b48[246]]))&& (_0x43b0xa= this[_0x5b48[245]](_0x43b0x2,_0x43b0xa),null!= _0x43b0xa&& (_0x43b0x5[_0x5b48[235]]= _0x43b0xa[_0x5b48[235]],_0x43b0x5[_0x5b48[236]]= _0x43b0xa[_0x5b48[236]],_0x43b0xa[_0x5b48[235]]= _0x43b0xa[_0x5b48[235]]/ this[_0x5b48[255]]- this[_0x5b48[513]][_0x5b48[235]],_0x43b0xa[_0x5b48[236]]= _0x43b0xa[_0x5b48[236]]/ this[_0x5b48[255]]- this[_0x5b48[513]][_0x5b48[236]],_0x43b0x5[_0x5b48[2078]]= _0x43b0xa,this[_0x5b48[2286]](_0x43b0x2,_0x43b0x5)))};_0x43b0x5[_0x5b48[2080]]= !1;_0x43b0x3!= this[_0x5b48[1741]]&& this[_0x5b48[1179]][_0x5b48[259]][_0x5b48[258]](_0x43b0x5,!1,this[_0x5b48[2287]]())};if(_0x43b0x4[_0x5b48[250]](_0x43b0x3)|| _0x43b0x4[_0x5b48[1193]](_0x43b0x3)){null!= _0x43b0x5[_0x5b48[253]]&& null!= _0x43b0x5[_0x5b48[253]][_0x5b48[1563]]&& (_0x43b0x9= _0x43b0x5[_0x5b48[253]][_0x5b48[1563]][_0x5b48[238]]()),null!= _0x43b0x5[_0x5b48[963]]&& !this[_0x5b48[1179]][_0x5b48[2130]](_0x43b0x5[_0x5b48[246]])&& null!= _0x43b0x5[_0x5b48[963]][_0x5b48[1563]]&& (null!= _0x43b0x9?_0x43b0x9[_0x5b48[99]](_0x43b0x5[_0x5b48[963]][_0x5b48[1563]]):_0x43b0x9= _0x43b0x5[_0x5b48[963]][_0x5b48[1563]][_0x5b48[238]]())}};if(null!= _0x43b0x5&& (!this[_0x5b48[1179]][_0x5b48[1742]](_0x43b0x3)|| _0x43b0x3== this[_0x5b48[1741]])){_0x43b0xa= _0x43b0x4[_0x5b48[262]](_0x43b0x3);for(_0x43b0x12= 0;_0x43b0x12< _0x43b0xa;_0x43b0x12++){_0x43b0x13= _0x43b0x4[_0x5b48[263]](_0x43b0x3,_0x43b0x12),_0x43b0x13= this[_0x5b48[2268]](_0x43b0x5,_0x43b0x13),null!= _0x43b0x13&& (null== _0x43b0x9?_0x43b0x9= _0x43b0x13:_0x43b0x9[_0x5b48[99]](_0x43b0x13))}};return _0x43b0x9};mxGraphView[_0x5b48[202]][_0x5b48[2286]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=_0x43b0x3[_0x5b48[246]];if(!this[_0x5b48[1179]][_0x5b48[1742]](_0x43b0x4)|| _0x43b0x4== this[_0x5b48[1741]]){for(var _0x43b0x5=this[_0x5b48[1179]][_0x5b48[502]](),_0x43b0x9=_0x43b0x5[_0x5b48[262]](_0x43b0x4),_0x43b0xa=0;_0x43b0xa< _0x43b0x9;_0x43b0xa++){this[_0x5b48[2267]](_0x43b0x3,_0x43b0x5[_0x5b48[263]](_0x43b0x4,_0x43b0xa))}}};mxGraphView[_0x5b48[202]][_0x5b48[2281]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){this[_0x5b48[2289]](_0x43b0x2,_0x43b0x3,!0,this[_0x5b48[1179]][_0x5b48[2288]](_0x43b0x2,_0x43b0x3,!0));this[_0x5b48[2289]](_0x43b0x2,_0x43b0x4,!1,this[_0x5b48[1179]][_0x5b48[2288]](_0x43b0x2,_0x43b0x4,!1))};mxGraphView[_0x5b48[202]][_0x5b48[2289]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){var _0x43b0x9=null;null!= _0x43b0x5&& (_0x43b0x9= this[_0x5b48[1179]][_0x5b48[2290]](_0x43b0x3,_0x43b0x5));if(null== _0x43b0x9&& null== _0x43b0x3){_0x43b0x3= this[_0x5b48[255]];_0x43b0x5= this[_0x5b48[513]];var _0x43b0xa=_0x43b0x2[_0x5b48[2078]],_0x43b0x9=this[_0x5b48[1179]][_0x5b48[1198]](_0x43b0x2[_0x5b48[246]])[_0x5b48[2006]](_0x43b0x4);null!= _0x43b0x9&& (_0x43b0x9= new mxPoint(_0x43b0x3* (_0x43b0x5[_0x5b48[235]]+ _0x43b0x9[_0x5b48[235]]+ _0x43b0xa[_0x5b48[235]]),_0x43b0x3* (_0x43b0x5[_0x5b48[236]]+ _0x43b0x9[_0x5b48[236]]+ _0x43b0xa[_0x5b48[236]])))};_0x43b0x2[_0x5b48[2088]](_0x43b0x9,_0x43b0x4)};mxGraphView[_0x5b48[202]][_0x5b48[2282]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){if(null!= _0x43b0x2){var _0x43b0x9=[];_0x43b0x9[_0x5b48[207]](_0x43b0x2[_0x5b48[439]][0]);var _0x43b0xa=this[_0x5b48[2291]](_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5);if(null!= _0x43b0xa){_0x43b0x4= this[_0x5b48[2292]](_0x43b0x2,_0x43b0x4,!0),_0x43b0x5= this[_0x5b48[2292]](_0x43b0x2,_0x43b0x5,!1),_0x43b0xa(_0x43b0x2,_0x43b0x4,_0x43b0x5,_0x43b0x3,_0x43b0x9)}else {if(null!= _0x43b0x3){for(_0x43b0xa= 0;_0x43b0xa< _0x43b0x3[_0x5b48[67]];_0x43b0xa++){null!= _0x43b0x3[_0x43b0xa]&& (_0x43b0x5= mxUtils[_0x5b48[238]](_0x43b0x3[_0x43b0xa]),_0x43b0x9[_0x5b48[207]](this[_0x5b48[2229]](_0x43b0x2,_0x43b0x5)))}}};_0x43b0x3= _0x43b0x2[_0x5b48[439]];_0x43b0x9[_0x5b48[207]](_0x43b0x3[_0x43b0x3[_0x5b48[67]]- 1]);_0x43b0x2[_0x5b48[439]]= _0x43b0x9}};mxGraphView[_0x5b48[202]][_0x5b48[2229]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=_0x43b0x2[_0x5b48[2078]];return new mxPoint(this[_0x5b48[255]]* (_0x43b0x3[_0x5b48[235]]+ this[_0x5b48[513]][_0x5b48[235]]+ _0x43b0x4[_0x5b48[235]]),this[_0x5b48[255]]* (_0x43b0x3[_0x5b48[236]]+ this[_0x5b48[513]][_0x5b48[236]]+ _0x43b0x4[_0x5b48[236]]))};mxGraphView[_0x5b48[202]][_0x5b48[2291]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){_0x43b0x2= null!= _0x43b0x4&& _0x43b0x4== _0x43b0x5?mxUtils[_0x5b48[433]](_0x43b0x2[_0x5b48[124]],mxConstants.STYLE_LOOP,this[_0x5b48[1179]][_0x5b48[2293]]):!mxUtils[_0x5b48[433]](_0x43b0x2[_0x5b48[124]],mxConstants.STYLE_NOEDGESTYLE,!1)?_0x43b0x2[_0x5b48[124]][mxConstants[_0x5b48[2294]]]:null;_0x5b48[1516]== typeof _0x43b0x2&& (_0x43b0x3= mxStyleRegistry[_0x5b48[433]](_0x43b0x2),null== _0x43b0x3&& this[_0x5b48[2295]]()&& (_0x43b0x3= mxUtils[_0x5b48[1545]](_0x43b0x2)),_0x43b0x2= _0x43b0x3);return _0x5b48[279]== typeof _0x43b0x2?_0x43b0x2:null};mxGraphView[_0x5b48[202]][_0x5b48[2283]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){var _0x43b0x5=_0x43b0x2[_0x5b48[439]],_0x43b0x9=_0x43b0x5[0];null== _0x43b0x5[_0x43b0x5[_0x5b48[67]]- 1]&& null!= _0x43b0x4&& this[_0x5b48[2296]](_0x43b0x2,_0x43b0x4,_0x43b0x3,!1);null== _0x43b0x9&& null!= _0x43b0x3&& this[_0x5b48[2296]](_0x43b0x2,_0x43b0x3,_0x43b0x4,!0)};mxGraphView[_0x5b48[202]][_0x5b48[2296]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){_0x43b0x3= this[_0x5b48[2292]](_0x43b0x2,_0x43b0x3,_0x43b0x5);var _0x43b0x9=this[_0x5b48[2297]](_0x43b0x2,_0x43b0x4,_0x43b0x5),_0x43b0xa=this[_0x5b48[1179]][_0x5b48[2298]](_0x43b0x2);_0x43b0x4= mxUtils[_0x5b48[431]](Number(_0x43b0x3[_0x5b48[124]][mxConstants[_0x5b48[2278]]]|| _0x5b48[468]));var _0x43b0x12= new mxPoint(_0x43b0x3[_0x5b48[241]](),_0x43b0x3[_0x5b48[242]]());if(0!= _0x43b0x4){var _0x43b0x13=Math[_0x5b48[426]](-_0x43b0x4),_0x43b0x14=Math[_0x5b48[427]](-_0x43b0x4),_0x43b0x9=mxUtils[_0x5b48[432]](_0x43b0x9,_0x43b0x13,_0x43b0x14,_0x43b0x12)};_0x43b0x13= parseFloat(_0x43b0x2[_0x5b48[124]][mxConstants[_0x5b48[2299]]]|| 0);_0x43b0x13+= parseFloat(_0x43b0x2[_0x5b48[124]][_0x43b0x5?mxConstants[_0x5b48[2300]]:mxConstants[_0x5b48[2301]]]|| 0);_0x43b0x3= this[_0x5b48[2302]](_0x43b0x3,_0x43b0x9,0== _0x43b0x4&& _0x43b0xa,_0x43b0x13);0!= _0x43b0x4&& (_0x43b0x13= Math[_0x5b48[426]](_0x43b0x4),_0x43b0x14= Math[_0x5b48[427]](_0x43b0x4),_0x43b0x3= mxUtils[_0x5b48[432]](_0x43b0x3,_0x43b0x13,_0x43b0x14,_0x43b0x12));_0x43b0x2[_0x5b48[2088]](_0x43b0x3,_0x43b0x5)};mxGraphView[_0x5b48[202]][_0x5b48[2292]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){_0x43b0x2= mxUtils[_0x5b48[433]](_0x43b0x2[_0x5b48[124]],_0x43b0x4?mxConstants[_0x5b48[2303]]:mxConstants[_0x5b48[2304]]);null!= _0x43b0x2&& (_0x43b0x2= this[_0x5b48[248]](this[_0x5b48[1179]][_0x5b48[502]]()[_0x5b48[736]](_0x43b0x2)),null!= _0x43b0x2&& (_0x43b0x3= _0x43b0x2));return _0x43b0x3};mxGraphView[_0x5b48[202]][_0x5b48[2302]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){var _0x43b0x9=null;if(null!= _0x43b0x2){var _0x43b0xa=this[_0x5b48[2305]](_0x43b0x2);if(null!= _0x43b0xa&& null!= _0x43b0x3&& (_0x43b0x5= this[_0x5b48[2087]](_0x43b0x2,_0x43b0x5),0< _0x43b0x5[_0x5b48[117]]|| 0< _0x43b0x5[_0x5b48[119]])){_0x43b0x9= _0x43b0xa(_0x43b0x5,_0x43b0x2,_0x43b0x3,_0x43b0x4)};null== _0x43b0x9&& (_0x43b0x9= this[_0x5b48[245]](_0x43b0x2))};return _0x43b0x9};mxGraphView[_0x5b48[202]][_0x5b48[2230]]= function(_0x43b0x2){var _0x43b0x3=null!= _0x43b0x2[_0x5b48[124]]?parseFloat(_0x43b0x2[_0x5b48[124]][mxConstants[_0x5b48[2306]]])|| 0:0;return _0x43b0x2[_0x5b48[241]]()+ _0x43b0x3* _0x43b0x2[_0x5b48[117]]};mxGraphView[_0x5b48[202]][_0x5b48[2228]]= function(_0x43b0x2){var _0x43b0x3=null!= _0x43b0x2[_0x5b48[124]]?parseFloat(_0x43b0x2[_0x5b48[124]][mxConstants[_0x5b48[2307]]])|| 0:0;return _0x43b0x2[_0x5b48[242]]()+ _0x43b0x3* _0x43b0x2[_0x5b48[119]]};mxGraphView[_0x5b48[202]][_0x5b48[2087]]= function(_0x43b0x2,_0x43b0x3){_0x43b0x3= null!= _0x43b0x3?_0x43b0x3:0;null!= _0x43b0x2&& (_0x43b0x3+= parseFloat(_0x43b0x2[_0x5b48[124]][mxConstants[_0x5b48[2299]]]|| 0));return _0x43b0x2[_0x5b48[2087]](_0x43b0x3* this[_0x5b48[255]])};mxGraphView[_0x5b48[202]][_0x5b48[2305]]= function(_0x43b0x2){_0x43b0x2= _0x43b0x2[_0x5b48[124]][mxConstants[_0x5b48[2061]]];if(_0x5b48[1516]== typeof _0x43b0x2){var _0x43b0x3=mxStyleRegistry[_0x5b48[433]](_0x43b0x2);null== _0x43b0x3&& this[_0x5b48[2295]]()&& (_0x43b0x3= mxUtils[_0x5b48[1545]](_0x43b0x2));_0x43b0x2= _0x43b0x3};return _0x5b48[279]== typeof _0x43b0x2?_0x43b0x2:null};mxGraphView[_0x5b48[202]][_0x5b48[2297]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){_0x43b0x2= _0x43b0x2[_0x5b48[439]];var _0x43b0x5=null;if(null!= _0x43b0x2&& (_0x43b0x4|| 2< _0x43b0x2[_0x5b48[67]]|| null== _0x43b0x3)){_0x43b0x5= _0x43b0x2[_0x5b48[67]],_0x43b0x5= _0x43b0x2[_0x43b0x4?Math[_0x5b48[243]](1,_0x43b0x5- 1):Math[_0x5b48[160]](0,_0x43b0x5- 2)]};null== _0x43b0x5&& null!= _0x43b0x3&& (_0x43b0x5= new mxPoint(_0x43b0x3[_0x5b48[241]](),_0x43b0x3[_0x5b48[242]]()));return _0x43b0x5};mxGraphView[_0x5b48[202]][_0x5b48[1710]]= function(_0x43b0x2,_0x43b0x3){for(var _0x43b0x4=this[_0x5b48[1179]][_0x5b48[502]](),_0x43b0x5=_0x43b0x4[_0x5b48[1709]](_0x43b0x2,_0x43b0x3),_0x43b0x9=_0x43b0x5;null!= _0x43b0x5&& _0x43b0x5!= this[_0x5b48[1741]];){if(!this[_0x5b48[1179]][_0x5b48[1714]](_0x43b0x9)|| this[_0x5b48[1179]][_0x5b48[1742]](_0x43b0x5)){_0x43b0x9= _0x43b0x5};_0x43b0x5= _0x43b0x4[_0x5b48[1197]](_0x43b0x5)};_0x43b0x4[_0x5b48[1197]](_0x43b0x9)== _0x43b0x4[_0x5b48[501]]()&& (_0x43b0x9= null);return _0x43b0x9};mxGraphView[_0x5b48[202]][_0x5b48[2284]]= function(_0x43b0x2){var _0x43b0x3=_0x43b0x2[_0x5b48[439]];_0x43b0x2[_0x5b48[67]]= 0;if(null!= _0x43b0x3&& 0< _0x43b0x3[_0x5b48[67]]){var _0x43b0x4=_0x43b0x3[0],_0x43b0x5=_0x43b0x3[_0x43b0x3[_0x5b48[67]]- 1];if(null== _0x43b0x4|| null== _0x43b0x5){_0x43b0x2[_0x5b48[246]]!= this[_0x5b48[1741]]&& this[_0x5b48[200]](_0x43b0x2[_0x5b48[246]],!0)}else {if(_0x43b0x4[_0x5b48[235]]!= _0x43b0x5[_0x5b48[235]]|| _0x43b0x4[_0x5b48[236]]!= _0x43b0x5[_0x5b48[236]]){var _0x43b0x9=_0x43b0x5[_0x5b48[235]]- _0x43b0x4[_0x5b48[235]],_0x43b0xa=_0x43b0x5[_0x5b48[236]]- _0x43b0x4[_0x5b48[236]];_0x43b0x2[_0x5b48[2085]]= Math[_0x5b48[428]](_0x43b0x9* _0x43b0x9+ _0x43b0xa* _0x43b0xa)}else {_0x43b0x2[_0x5b48[2085]]= 0};var _0x43b0x5=0,_0x43b0x12=[],_0x43b0xa=_0x43b0x4;if(null!= _0x43b0xa){for(var _0x43b0x4=_0x43b0xa[_0x5b48[235]],_0x43b0x13=_0x43b0xa[_0x5b48[236]],_0x43b0x14=_0x43b0x4,_0x43b0x15=_0x43b0x13,_0x43b0x16=1;_0x43b0x16< _0x43b0x3[_0x5b48[67]];_0x43b0x16++){var _0x43b0x17=_0x43b0x3[_0x43b0x16];null!= _0x43b0x17&& (_0x43b0x9= _0x43b0xa[_0x5b48[235]]- _0x43b0x17[_0x5b48[235]],_0x43b0xa= _0x43b0xa[_0x5b48[236]]- _0x43b0x17[_0x5b48[236]],_0x43b0x9= Math[_0x5b48[428]](_0x43b0x9* _0x43b0x9+ _0x43b0xa* _0x43b0xa),_0x43b0x12[_0x5b48[207]](_0x43b0x9),_0x43b0x5+= _0x43b0x9,_0x43b0xa= _0x43b0x17,_0x43b0x4= Math[_0x5b48[243]](_0x43b0xa[_0x5b48[235]],_0x43b0x4),_0x43b0x13= Math[_0x5b48[243]](_0x43b0xa[_0x5b48[236]],_0x43b0x13),_0x43b0x14= Math[_0x5b48[160]](_0x43b0xa[_0x5b48[235]],_0x43b0x14),_0x43b0x15= Math[_0x5b48[160]](_0x43b0xa[_0x5b48[236]],_0x43b0x15))};_0x43b0x2[_0x5b48[67]]= _0x43b0x5;_0x43b0x2[_0x5b48[2086]]= _0x43b0x12;_0x43b0x2[_0x5b48[235]]= _0x43b0x4;_0x43b0x2[_0x5b48[236]]= _0x43b0x13;_0x43b0x2[_0x5b48[117]]= Math[_0x5b48[160]](1,_0x43b0x14- _0x43b0x4);_0x43b0x2[_0x5b48[119]]= Math[_0x5b48[160]](1,_0x43b0x15- _0x43b0x13)}}}};mxGraphView[_0x5b48[202]][_0x5b48[245]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=_0x43b0x2[_0x5b48[241]](),_0x43b0x5=_0x43b0x2[_0x5b48[242]]();if(null!= _0x43b0x2[_0x5b48[2086]]&& (null== _0x43b0x3|| _0x43b0x3[_0x5b48[1500]])){for(var _0x43b0x9=_0x43b0x2[_0x5b48[439]][_0x5b48[67]],_0x43b0xa=((null!= _0x43b0x3?_0x43b0x3[_0x5b48[235]]/ 2:0)+ 0.5)* _0x43b0x2[_0x5b48[67]],_0x43b0x12=_0x43b0x2[_0x5b48[2086]][0],_0x43b0x13=0,_0x43b0x14=1;_0x43b0xa> _0x43b0x13+ _0x43b0x12&& _0x43b0x14< _0x43b0x9- 1;){_0x43b0x13+= _0x43b0x12,_0x43b0x12= _0x43b0x2[_0x5b48[2086]][_0x43b0x14++]};_0x43b0x9= 0== _0x43b0x12?0:(_0x43b0xa- _0x43b0x13)/ _0x43b0x12;_0x43b0xa= _0x43b0x2[_0x5b48[439]][_0x43b0x14- 1];_0x43b0x14= _0x43b0x2[_0x5b48[439]][_0x43b0x14];if(null!= _0x43b0xa&& null!= _0x43b0x14){_0x43b0x13= _0x43b0x4= _0x43b0x5= 0;if(null!= _0x43b0x3){var _0x43b0x5=_0x43b0x3[_0x5b48[236]],_0x43b0x15=_0x43b0x3[_0x5b48[1368]];null!= _0x43b0x15&& (_0x43b0x4= _0x43b0x15[_0x5b48[235]],_0x43b0x13= _0x43b0x15[_0x5b48[236]])};_0x43b0x15= _0x43b0x14[_0x5b48[235]]- _0x43b0xa[_0x5b48[235]];_0x43b0x14= _0x43b0x14[_0x5b48[236]]- _0x43b0xa[_0x5b48[236]];_0x43b0x4= _0x43b0xa[_0x5b48[235]]+ _0x43b0x15* _0x43b0x9+ ((0== _0x43b0x12?0:_0x43b0x14/ _0x43b0x12)* _0x43b0x5+ _0x43b0x4)* this[_0x5b48[255]];_0x43b0x5= _0x43b0xa[_0x5b48[236]]+ _0x43b0x14* _0x43b0x9- ((0== _0x43b0x12?0:_0x43b0x15/ _0x43b0x12)* _0x43b0x5- _0x43b0x13)* this[_0x5b48[255]]}}else {null!= _0x43b0x3&& (_0x43b0x15= _0x43b0x3[_0x5b48[1368]],null!= _0x43b0x15&& (_0x43b0x4+= _0x43b0x15[_0x5b48[235]],_0x43b0x5+= _0x43b0x15[_0x5b48[236]]))};return new mxPoint(_0x43b0x4,_0x43b0x5)};mxGraphView[_0x5b48[202]][_0x5b48[2308]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){var _0x43b0x5=this[_0x5b48[1179]][_0x5b48[502]]()[_0x5b48[1721]](_0x43b0x2[_0x5b48[246]]);if(null!= _0x43b0x5){var _0x43b0x9=_0x43b0x2[_0x5b48[439]][_0x5b48[67]];if(_0x43b0x5[_0x5b48[1500]]&& 1< _0x43b0x9){for(var _0x43b0x5=_0x43b0x2[_0x5b48[67]],_0x43b0xa=_0x43b0x2[_0x5b48[2086]],_0x43b0x12=_0x43b0x2[_0x5b48[439]][0],_0x43b0x13=_0x43b0x2[_0x5b48[439]][1],_0x43b0x14=mxUtils[_0x5b48[440]](_0x43b0x12[_0x5b48[235]],_0x43b0x12[_0x5b48[236]],_0x43b0x13[_0x5b48[235]],_0x43b0x13[_0x5b48[236]],_0x43b0x3,_0x43b0x4),_0x43b0x15=0,_0x43b0x16=0,_0x43b0x17=0,_0x43b0x18=2;_0x43b0x18< _0x43b0x9;_0x43b0x18++){_0x43b0x16+= _0x43b0xa[_0x43b0x18- 2],_0x43b0x13= _0x43b0x2[_0x5b48[439]][_0x43b0x18],_0x43b0x12= mxUtils[_0x5b48[440]](_0x43b0x12[_0x5b48[235]],_0x43b0x12[_0x5b48[236]],_0x43b0x13[_0x5b48[235]],_0x43b0x13[_0x5b48[236]],_0x43b0x3,_0x43b0x4),_0x43b0x12<= _0x43b0x14&& (_0x43b0x14= _0x43b0x12,_0x43b0x15= _0x43b0x18- 1,_0x43b0x17= _0x43b0x16),_0x43b0x12= _0x43b0x13};_0x43b0x9= _0x43b0xa[_0x43b0x15];_0x43b0x12= _0x43b0x2[_0x5b48[439]][_0x43b0x15];_0x43b0x13= _0x43b0x2[_0x5b48[439]][_0x43b0x15+ 1];_0x43b0x14= _0x43b0x13[_0x5b48[235]];_0x43b0xa= _0x43b0x13[_0x5b48[236]];_0x43b0x2= _0x43b0x12[_0x5b48[235]]- _0x43b0x14;_0x43b0x15= _0x43b0x12[_0x5b48[236]]- _0x43b0xa;_0x43b0x14= _0x43b0x3- _0x43b0x14;_0x43b0xa= _0x43b0x4- _0x43b0xa;_0x43b0x14= _0x43b0x2- _0x43b0x14;_0x43b0xa= _0x43b0x15- _0x43b0xa;_0x43b0xa= _0x43b0x14* _0x43b0x2+ _0x43b0xa* _0x43b0x15;_0x43b0x2= Math[_0x5b48[428]](0>= _0x43b0xa?0:_0x43b0xa* _0x43b0xa/ (_0x43b0x2* _0x43b0x2+ _0x43b0x15* _0x43b0x15));_0x43b0x2> _0x43b0x9&& (_0x43b0x2= _0x43b0x9);_0x43b0x9= Math[_0x5b48[428]](mxUtils[_0x5b48[440]](_0x43b0x12[_0x5b48[235]],_0x43b0x12[_0x5b48[236]],_0x43b0x13[_0x5b48[235]],_0x43b0x13[_0x5b48[236]],_0x43b0x3,_0x43b0x4));-1== mxUtils[_0x5b48[2309]](_0x43b0x12[_0x5b48[235]],_0x43b0x12[_0x5b48[236]],_0x43b0x13[_0x5b48[235]],_0x43b0x13[_0x5b48[236]],_0x43b0x3,_0x43b0x4) && (_0x43b0x9= -_0x43b0x9);return new mxPoint(-2* ((_0x43b0x5/ 2- _0x43b0x17- _0x43b0x2)/ _0x43b0x5),_0x43b0x9/ this[_0x5b48[255]])}};return new mxPoint};mxGraphView[_0x5b48[202]][_0x5b48[2285]]= function(_0x43b0x2){var _0x43b0x3=_0x43b0x2[_0x5b48[439]];_0x43b0x2[_0x5b48[2079]][_0x5b48[235]]= _0x43b0x2[_0x5b48[241]]();_0x43b0x2[_0x5b48[2079]][_0x5b48[236]]= _0x43b0x2[_0x5b48[242]]();if(null!= _0x43b0x3&& 0< _0x43b0x3[_0x5b48[67]]&& null!= _0x43b0x2[_0x5b48[2086]]){var _0x43b0x4=this[_0x5b48[1179]][_0x5b48[1198]](_0x43b0x2[_0x5b48[246]]);if(_0x43b0x4[_0x5b48[1500]]){var _0x43b0x5=this[_0x5b48[245]](_0x43b0x2,_0x43b0x4);null!= _0x43b0x5&& (_0x43b0x2[_0x5b48[2079]]= _0x43b0x5)}else {var _0x43b0x5=_0x43b0x3[0],_0x43b0x9=_0x43b0x3[_0x43b0x3[_0x5b48[67]]- 1];if(null!= _0x43b0x5&& null!= _0x43b0x9){var _0x43b0x3=_0x43b0x9[_0x5b48[235]]- _0x43b0x5[_0x5b48[235]],_0x43b0xa=_0x43b0x9[_0x5b48[236]]- _0x43b0x5[_0x5b48[236]],_0x43b0x12=_0x43b0x9= 0,_0x43b0x4=_0x43b0x4[_0x5b48[1368]];null!= _0x43b0x4&& (_0x43b0x9= _0x43b0x4[_0x5b48[235]],_0x43b0x12= _0x43b0x4[_0x5b48[236]]);_0x43b0x4= _0x43b0x5[_0x5b48[236]]+ _0x43b0xa/ 2+ _0x43b0x12* this[_0x5b48[255]];_0x43b0x2[_0x5b48[2079]][_0x5b48[235]]= _0x43b0x5[_0x5b48[235]]+ _0x43b0x3/ 2+ _0x43b0x9* this[_0x5b48[255]];_0x43b0x2[_0x5b48[2079]][_0x5b48[236]]= _0x43b0x4}}}};mxGraphView[_0x5b48[202]][_0x5b48[248]]= function(_0x43b0x2,_0x43b0x3){_0x43b0x3= _0x43b0x3|| !1;var _0x43b0x4=null;null!= _0x43b0x2&& (_0x43b0x4= this[_0x5b48[1214]][_0x5b48[203]](_0x43b0x2),this[_0x5b48[1179]][_0x5b48[1714]](_0x43b0x2)&& (null== _0x43b0x4&& _0x43b0x3&& this[_0x5b48[1179]][_0x5b48[1714]](_0x43b0x2)?(_0x43b0x4= this[_0x5b48[1230]](_0x43b0x2),this[_0x5b48[1214]][_0x5b48[204]](_0x43b0x2,_0x43b0x4)):_0x43b0x3&& (null!= _0x43b0x4&& this[_0x5b48[2255]])&& (_0x43b0x4[_0x5b48[124]]= this[_0x5b48[1179]][_0x5b48[1705]](_0x43b0x2))));return _0x43b0x4};mxGraphView[_0x5b48[202]][_0x5b48[2287]]= function(){return this[_0x5b48[2254]]};mxGraphView[_0x5b48[202]][_0x5b48[2310]]= function(_0x43b0x2){this[_0x5b48[2254]]= _0x43b0x2};mxGraphView[_0x5b48[202]][_0x5b48[2295]]= function(){return this[_0x5b48[2251]]};mxGraphView[_0x5b48[202]][_0x5b48[2311]]= function(_0x43b0x2){this[_0x5b48[2251]]= _0x43b0x2};mxGraphView[_0x5b48[202]][_0x5b48[2312]]= function(){return this[_0x5b48[1214]]};mxGraphView[_0x5b48[202]][_0x5b48[1517]]= function(_0x43b0x2){this[_0x5b48[1214]]= _0x43b0x2};mxGraphView[_0x5b48[202]][_0x5b48[2313]]= function(_0x43b0x2){if(null== _0x43b0x2){return this[_0x5b48[1214]]};for(var _0x43b0x3=[],_0x43b0x4=0;_0x43b0x4< _0x43b0x2[_0x5b48[67]];_0x43b0x4++){var _0x43b0x5=this[_0x5b48[248]](_0x43b0x2[_0x43b0x4]);null!= _0x43b0x5&& _0x43b0x3[_0x5b48[207]](_0x43b0x5)};return _0x43b0x3};mxGraphView[_0x5b48[202]][_0x5b48[2265]]= function(_0x43b0x2){var _0x43b0x3=null;null!= _0x43b0x2&& (_0x43b0x3= this[_0x5b48[1214]][_0x5b48[205]](_0x43b0x2),null!= _0x43b0x3&& (this[_0x5b48[1179]][_0x5b48[259]][_0x5b48[515]](_0x43b0x3),_0x43b0x3[_0x5b48[515]]()));return _0x43b0x3};mxGraphView[_0x5b48[202]][_0x5b48[1230]]= function(_0x43b0x2){var _0x43b0x3=this[_0x5b48[1179]][_0x5b48[1705]](_0x43b0x2);_0x43b0x2= new mxCellState(this,_0x43b0x2,_0x43b0x3);this[_0x5b48[1179]][_0x5b48[259]][_0x5b48[2155]](_0x43b0x2,this[_0x5b48[2287]]());return _0x43b0x2};mxGraphView[_0x5b48[202]][_0x5b48[2051]]= function(){return this[_0x5b48[510]]};mxGraphView[_0x5b48[202]][_0x5b48[2052]]= function(){return this[_0x5b48[2053]]};mxGraphView[_0x5b48[202]][_0x5b48[2024]]= function(){return this[_0x5b48[505]]};mxGraphView[_0x5b48[202]][_0x5b48[1524]]= function(){return this[_0x5b48[506]]};mxGraphView[_0x5b48[202]][_0x5b48[2314]]= function(_0x43b0x2){_0x43b0x2= mxEvent[_0x5b48[728]](_0x43b0x2);return _0x43b0x2== this[_0x5b48[1179]][_0x5b48[526]]|| _0x43b0x2[_0x5b48[265]]== this[_0x5b48[2053]]|| null!= _0x43b0x2[_0x5b48[265]]&& _0x43b0x2[_0x5b48[265]][_0x5b48[265]]== this[_0x5b48[2053]]|| _0x43b0x2== this[_0x5b48[510]][_0x5b48[265]]|| _0x43b0x2== this[_0x5b48[510]]|| _0x43b0x2== this[_0x5b48[2053]]|| _0x43b0x2== this[_0x5b48[505]]|| _0x43b0x2== this[_0x5b48[506]]};mxGraphView[_0x5b48[202]][_0x5b48[2315]]= function(_0x43b0x2){var _0x43b0x3=mxUtils[_0x5b48[445]](this[_0x5b48[1179]][_0x5b48[526]]);_0x43b0x2= new mxPoint(_0x43b0x2[_0x5b48[782]]- _0x43b0x3[_0x5b48[235]],_0x43b0x2[_0x5b48[784]]- _0x43b0x3[_0x5b48[236]]);var _0x43b0x3=this[_0x5b48[1179]][_0x5b48[526]][_0x5b48[359]],_0x43b0x4=this[_0x5b48[1179]][_0x5b48[526]][_0x5b48[159]];if(_0x43b0x3> _0x43b0x4&& _0x43b0x2[_0x5b48[235]]> _0x43b0x4+ 2&& _0x43b0x2[_0x5b48[235]]<= _0x43b0x3){return !0};_0x43b0x3= this[_0x5b48[1179]][_0x5b48[526]][_0x5b48[167]];_0x43b0x4= this[_0x5b48[1179]][_0x5b48[526]][_0x5b48[157]];return _0x43b0x3> _0x43b0x4&& _0x43b0x2[_0x5b48[236]]> _0x43b0x4+ 2&& _0x43b0x2[_0x5b48[236]]<= _0x43b0x3?!0:!1};mxGraphView[_0x5b48[202]][_0x5b48[176]]= function(){this[_0x5b48[2163]]();var _0x43b0x2=this[_0x5b48[1179]];_0x43b0x2[_0x5b48[507]]== mxConstants[_0x5b48[508]]?this[_0x5b48[1569]]():_0x43b0x2[_0x5b48[507]]== mxConstants[_0x5b48[1523]]?this[_0x5b48[1571]]():this[_0x5b48[1570]]()};mxGraphView[_0x5b48[202]][_0x5b48[2163]]= function(){var _0x43b0x2=this[_0x5b48[1179]],_0x43b0x3=_0x43b0x2[_0x5b48[526]];if(null!= _0x43b0x3){mxEvent[_0x5b48[759]](_0x43b0x3,mxUtils[_0x5b48[885]](this,function(_0x43b0x3){mxClient[_0x5b48[754]]&& _0x43b0x2[_0x5b48[2203]]()&& _0x43b0x2[_0x5b48[2126]](!_0x43b0x2[_0x5b48[2134]]());this[_0x5b48[2314]](_0x43b0x3)&& (!mxClient[_0x5b48[80]]&& !mxClient[_0x5b48[76]] && !mxClient[_0x5b48[71]] && !mxClient[_0x5b48[75]] || !this[_0x5b48[2315]](_0x43b0x3))&& _0x43b0x2[_0x5b48[758]](mxEvent.MOUSE_DOWN, new mxMouseEvent(_0x43b0x3))}),mxUtils[_0x5b48[885]](this,function(_0x43b0x3){this[_0x5b48[2314]](_0x43b0x3)&& _0x43b0x2[_0x5b48[758]](mxEvent.MOUSE_MOVE, new mxMouseEvent(_0x43b0x3))}),mxUtils[_0x5b48[885]](this,function(_0x43b0x3){this[_0x5b48[2314]](_0x43b0x3)&& _0x43b0x2[_0x5b48[758]](mxEvent.MOUSE_UP, new mxMouseEvent(_0x43b0x3))}));mxEvent[_0x5b48[169]](_0x43b0x3,_0x5b48[760],mxUtils[_0x5b48[885]](this,function(_0x43b0x3){_0x43b0x2[_0x5b48[761]](_0x43b0x3)}));var _0x43b0x4=function(_0x43b0x4){var _0x43b0x9=null;mxClient[_0x5b48[754]]&& (_0x43b0x9= mxEvent[_0x5b48[731]](_0x43b0x4),_0x43b0x4= mxEvent[_0x5b48[733]](_0x43b0x4),_0x43b0x4= mxUtils[_0x5b48[2196]](_0x43b0x3,_0x43b0x9,_0x43b0x4),_0x43b0x9= _0x43b0x2[_0x5b48[441]][_0x5b48[248]](_0x43b0x2[_0x5b48[999]](_0x43b0x4[_0x5b48[235]],_0x43b0x4[_0x5b48[236]])));return _0x43b0x9};_0x43b0x2[_0x5b48[1133]]({mouseDown:function(_0x43b0x3,_0x43b0x4){_0x43b0x2[_0x5b48[2316]][_0x5b48[1032]]()},mouseMove:function(){},mouseUp:function(){}});this[_0x5b48[2317]]= mxUtils[_0x5b48[885]](this,function(_0x43b0x3){null!= _0x43b0x2[_0x5b48[2276]]&& _0x43b0x2[_0x5b48[2276]][_0x5b48[2277]]()&& _0x43b0x2[_0x5b48[2276]][_0x5b48[801]]();this[_0x5b48[2252]]&& (_0x43b0x2[_0x5b48[1009]]&& !mxEvent[_0x5b48[721]](_0x43b0x3))&& _0x43b0x2[_0x5b48[758]](mxEvent.MOUSE_MOVE, new mxMouseEvent(_0x43b0x3,_0x43b0x4(_0x43b0x3)))});this[_0x5b48[2318]]= mxUtils[_0x5b48[885]](this,function(_0x43b0x3){this[_0x5b48[2252]]&& _0x43b0x2[_0x5b48[758]](mxEvent.MOUSE_UP, new mxMouseEvent(_0x43b0x3))});mxEvent[_0x5b48[759]](document,null,this[_0x5b48[2317]],this[_0x5b48[2318]])}};mxGraphView[_0x5b48[202]][_0x5b48[1570]]= function(){var _0x43b0x2=this[_0x5b48[1179]][_0x5b48[526]];null!= _0x43b0x2&& (this[_0x5b48[510]]= this[_0x5b48[2319]](_0x5b48[118],_0x5b48[118]),this[_0x5b48[2053]]= this[_0x5b48[2319]](_0x5b48[942],_0x5b48[942]),this[_0x5b48[505]]= this[_0x5b48[2319]](_0x5b48[942],_0x5b48[942]),this[_0x5b48[506]]= this[_0x5b48[2319]](_0x5b48[942],_0x5b48[942]),this[_0x5b48[510]][_0x5b48[62]](this[_0x5b48[2053]]),this[_0x5b48[510]][_0x5b48[62]](this[_0x5b48[505]]),this[_0x5b48[510]][_0x5b48[62]](this[_0x5b48[506]]),_0x43b0x2[_0x5b48[62]](this[_0x5b48[510]]),mxClient[_0x5b48[496]]&& (_0x43b0x2= mxUtils[_0x5b48[885]](this,function(_0x43b0x2){_0x43b0x2= this[_0x5b48[517]]();this[_0x5b48[2320]](_0x43b0x2[_0x5b48[235]]+ _0x43b0x2[_0x5b48[117]]+ this[_0x5b48[1179]][_0x5b48[467]],_0x43b0x2[_0x5b48[236]]+ _0x43b0x2[_0x5b48[119]]+ this[_0x5b48[1179]][_0x5b48[467]])}),mxEvent[_0x5b48[169]](window,_0x5b48[129],_0x43b0x2)))};mxGraphView[_0x5b48[202]][_0x5b48[2320]]= function(_0x43b0x2,_0x43b0x3){if(null!= this[_0x5b48[1179]][_0x5b48[526]]){var _0x43b0x4=this[_0x5b48[1179]][_0x5b48[526]][_0x5b48[167]];this[_0x5b48[510]][_0x5b48[124]][_0x5b48[117]]= this[_0x5b48[1179]][_0x5b48[526]][_0x5b48[359]]< _0x43b0x2?_0x43b0x2+ _0x5b48[168]:_0x5b48[118];this[_0x5b48[510]][_0x5b48[124]][_0x5b48[119]]= _0x43b0x4< _0x43b0x3?_0x43b0x3+ _0x5b48[168]:_0x5b48[118]}};mxGraphView[_0x5b48[202]][_0x5b48[2319]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=document[_0x5b48[55]](_0x5b48[529]);null!= _0x43b0x2&& null!= _0x43b0x3?(_0x43b0x4[_0x5b48[124]][_0x5b48[491]]= _0x5b48[492],_0x43b0x4[_0x5b48[124]][_0x5b48[361]]= _0x5b48[946],_0x43b0x4[_0x5b48[124]][_0x5b48[125]]= _0x5b48[946],_0x43b0x4[_0x5b48[124]][_0x5b48[117]]= _0x43b0x2,_0x43b0x4[_0x5b48[124]][_0x5b48[119]]= _0x43b0x3):_0x43b0x4[_0x5b48[124]][_0x5b48[491]]= _0x5b48[1500];return _0x43b0x4};mxGraphView[_0x5b48[202]][_0x5b48[1571]]= function(){var _0x43b0x2=this[_0x5b48[1179]][_0x5b48[526]];if(null!= _0x43b0x2){var _0x43b0x3=_0x43b0x2[_0x5b48[359]],_0x43b0x4=_0x43b0x2[_0x5b48[167]];this[_0x5b48[510]]= this[_0x5b48[2321]](_0x43b0x3,_0x43b0x4);this[_0x5b48[2053]]= this[_0x5b48[2321]](_0x43b0x3,_0x43b0x4);this[_0x5b48[505]]= this[_0x5b48[2321]](_0x43b0x3,_0x43b0x4);this[_0x5b48[506]]= this[_0x5b48[2321]](_0x43b0x3,_0x43b0x4);this[_0x5b48[510]][_0x5b48[62]](this[_0x5b48[2053]]);this[_0x5b48[510]][_0x5b48[62]](this[_0x5b48[505]]);this[_0x5b48[510]][_0x5b48[62]](this[_0x5b48[506]]);_0x43b0x2[_0x5b48[62]](this[_0x5b48[510]])}};mxGraphView[_0x5b48[202]][_0x5b48[2321]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=document[_0x5b48[55]](mxClient[_0x5b48[463]]+ _0x5b48[1499]);_0x43b0x4[_0x5b48[124]][_0x5b48[491]]= _0x5b48[492];_0x43b0x4[_0x5b48[124]][_0x5b48[361]]= _0x5b48[946];_0x43b0x4[_0x5b48[124]][_0x5b48[125]]= _0x5b48[946];_0x43b0x4[_0x5b48[124]][_0x5b48[117]]= _0x43b0x2+ _0x5b48[168];_0x43b0x4[_0x5b48[124]][_0x5b48[119]]= _0x43b0x3+ _0x5b48[168];_0x43b0x4[_0x5b48[57]](_0x5b48[1462],_0x43b0x2+ _0x5b48[537]+ _0x43b0x3);_0x43b0x4[_0x5b48[57]](_0x5b48[2322],_0x5b48[2323]);return _0x43b0x4};mxGraphView[_0x5b48[202]][_0x5b48[1569]]= function(){var _0x43b0x2=this[_0x5b48[1179]][_0x5b48[526]];this[_0x5b48[510]]= document[_0x5b48[509]](mxConstants.NS_SVG,_0x5b48[449]);this[_0x5b48[2053]]= document[_0x5b48[509]](mxConstants.NS_SVG,_0x5b48[449]);this[_0x5b48[510]][_0x5b48[62]](this[_0x5b48[2053]]);this[_0x5b48[505]]= document[_0x5b48[509]](mxConstants.NS_SVG,_0x5b48[449]);this[_0x5b48[510]][_0x5b48[62]](this[_0x5b48[505]]);this[_0x5b48[506]]= document[_0x5b48[509]](mxConstants.NS_SVG,_0x5b48[449]);this[_0x5b48[510]][_0x5b48[62]](this[_0x5b48[506]]);var _0x43b0x3=document[_0x5b48[509]](mxConstants.NS_SVG,_0x5b48[571]);_0x43b0x3[_0x5b48[124]][_0x5b48[117]]= _0x5b48[118];_0x43b0x3[_0x5b48[124]][_0x5b48[119]]= _0x5b48[118];_0x43b0x3[_0x5b48[124]][_0x5b48[495]]= _0x5b48[694];_0x43b0x3[_0x5b48[62]](this[_0x5b48[510]]);null!= _0x43b0x2&& (_0x43b0x2[_0x5b48[62]](_0x43b0x3),_0x5b48[2324]== mxUtils[_0x5b48[275]](_0x43b0x2)[_0x5b48[491]]&& (_0x43b0x2[_0x5b48[124]][_0x5b48[491]]= _0x5b48[1500]))};mxGraphView[_0x5b48[202]][_0x5b48[515]]= function(){var _0x43b0x2=null!= this[_0x5b48[510]]?this[_0x5b48[510]][_0x5b48[538]]:null;null== _0x43b0x2&& (_0x43b0x2= this[_0x5b48[510]]);null!= _0x43b0x2&& null!= _0x43b0x2[_0x5b48[265]]&& (this[_0x5b48[200]](this[_0x5b48[1741]],!0),mxEvent[_0x5b48[938]](document,null,this[_0x5b48[2317]],this[_0x5b48[2318]]),mxEvent[_0x5b48[762]](this[_0x5b48[1179]][_0x5b48[526]]),_0x43b0x2[_0x5b48[265]][_0x5b48[266]](_0x43b0x2),this[_0x5b48[506]]= this[_0x5b48[505]]= this[_0x5b48[2053]]= this[_0x5b48[510]]= this[_0x5b48[2318]]= this[_0x5b48[2317]]= null)};function mxCurrentRootChange(_0x43b0x2,_0x43b0x3){this[_0x5b48[441]]= _0x43b0x2;this[_0x5b48[257]]= this[_0x5b48[813]]= _0x43b0x3;this[_0x5b48[2325]]= null== _0x43b0x3;if(!this[_0x5b48[2325]]){for(var _0x43b0x4=this[_0x5b48[441]][_0x5b48[1741]],_0x43b0x5=this[_0x5b48[441]][_0x5b48[1179]][_0x5b48[502]]();null!= _0x43b0x4;){if(_0x43b0x4== _0x43b0x3){this[_0x5b48[2325]]= !0;break};_0x43b0x4= _0x43b0x5[_0x5b48[1197]](_0x43b0x4)}}}mxCurrentRootChange[_0x5b48[202]][_0x5b48[350]]= function(){var _0x43b0x2=this[_0x5b48[441]][_0x5b48[1741]];this[_0x5b48[441]][_0x5b48[1741]]= this[_0x5b48[257]];this[_0x5b48[257]]= _0x43b0x2;_0x43b0x2= this[_0x5b48[441]][_0x5b48[1179]][_0x5b48[2326]](this[_0x5b48[441]][_0x5b48[1741]]);null!= _0x43b0x2&& (this[_0x5b48[441]][_0x5b48[513]]= new mxPoint(-_0x43b0x2[_0x5b48[235]],-_0x43b0x2[_0x5b48[236]]));this[_0x5b48[441]][_0x5b48[746]]( new mxEventObject(this[_0x5b48[2325]]?mxEvent[_0x5b48[2327]]:mxEvent[_0x5b48[2328]],_0x5b48[813],this[_0x5b48[441]][_0x5b48[1741]],_0x5b48[257],this[_0x5b48[257]]));this[_0x5b48[2325]]?(this[_0x5b48[441]][_0x5b48[200]](this[_0x5b48[441]][_0x5b48[1741]],!0),this[_0x5b48[441]][_0x5b48[2264]]()):this[_0x5b48[441]][_0x5b48[802]]();this[_0x5b48[2325]]= !this[_0x5b48[2325]]};function mxGraph(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){this[_0x5b48[2329]]= null;this[_0x5b48[2330]]= _0x43b0x4;this[_0x5b48[507]]= mxClient[_0x5b48[48]]?mxConstants[_0x5b48[508]]:_0x43b0x4== mxConstants[_0x5b48[2331]]&& mxClient[_0x5b48[47]]?mxConstants[_0x5b48[1523]]:_0x43b0x4== mxConstants[_0x5b48[2332]]?mxConstants[_0x5b48[1656]]:_0x43b0x4== mxConstants[_0x5b48[2333]]?mxConstants[_0x5b48[2209]]:mxConstants[_0x5b48[2334]];this[_0x5b48[251]]= null!= _0x43b0x3?_0x43b0x3: new mxGraphModel;this[_0x5b48[2335]]= [];this[_0x5b48[2336]]= [];this[_0x5b48[259]]= this[_0x5b48[2337]]();this[_0x5b48[2339]](this[_0x5b48[2338]]());this[_0x5b48[2341]](null!= _0x43b0x5?_0x43b0x5:this[_0x5b48[2340]]());this[_0x5b48[441]]= this[_0x5b48[2342]]();this[_0x5b48[2343]]= mxUtils[_0x5b48[885]](this,function(_0x43b0x2,_0x43b0x3){this[_0x5b48[1177]](_0x43b0x3[_0x5b48[720]](_0x5b48[1061])[_0x5b48[1065]])});this[_0x5b48[251]][_0x5b48[169]](mxEvent.CHANGE,this[_0x5b48[2343]]);this[_0x5b48[2344]]();null!= _0x43b0x2&& this[_0x5b48[176]](_0x43b0x2);this[_0x5b48[441]][_0x5b48[2259]]()}mxLoadResources&& mxResources[_0x5b48[99]](mxClient[_0x5b48[86]]+ _0x5b48[2345]);mxGraph[_0x5b48[202]]= new mxEventSource;mxGraph[_0x5b48[202]][_0x5b48[196]]= mxGraph;mxGraph[_0x5b48[202]][_0x5b48[2346]]= [];mxGraph[_0x5b48[202]][_0x5b48[2329]]= null;mxGraph[_0x5b48[202]][_0x5b48[1009]]= !1;mxGraph[_0x5b48[202]][_0x5b48[251]]= null;mxGraph[_0x5b48[202]][_0x5b48[441]]= null;mxGraph[_0x5b48[202]][_0x5b48[94]]= null;mxGraph[_0x5b48[202]][_0x5b48[2105]]= null;mxGraph[_0x5b48[202]][_0x5b48[2347]]= null;mxGraph[_0x5b48[202]][_0x5b48[259]]= null;mxGraph[_0x5b48[202]][_0x5b48[2335]]= null;mxGraph[_0x5b48[202]][_0x5b48[2330]]= null;mxGraph[_0x5b48[202]][_0x5b48[507]]= null;mxGraph[_0x5b48[202]][_0x5b48[1020]]= 10;mxGraph[_0x5b48[202]][_0x5b48[991]]= !0;mxGraph[_0x5b48[202]][_0x5b48[2348]]= !0;mxGraph[_0x5b48[202]][_0x5b48[2349]]= !0;mxGraph[_0x5b48[202]][_0x5b48[2350]]= 700;mxGraph[_0x5b48[202]][_0x5b48[2351]]= 25;mxGraph[_0x5b48[202]][_0x5b48[2352]]= 0;mxGraph[_0x5b48[202]][_0x5b48[2352]]= 0;mxGraph[_0x5b48[202]][_0x5b48[2213]]= 0;mxGraph[_0x5b48[202]][_0x5b48[2215]]= !0;mxGraph[_0x5b48[202]][_0x5b48[2353]]= 4;mxGraph[_0x5b48[202]][_0x5b48[2354]]= 0.5;mxGraph[_0x5b48[202]][_0x5b48[2355]]= null;mxGraph[_0x5b48[202]][_0x5b48[2356]]= null;mxGraph[_0x5b48[202]][_0x5b48[1617]]= null;mxGraph[_0x5b48[202]][_0x5b48[2273]]= !1;mxGraph[_0x5b48[202]][_0x5b48[2357]]= !1;mxGraph[_0x5b48[202]][_0x5b48[2358]]= _0x5b48[579];mxGraph[_0x5b48[202]][_0x5b48[2359]]= !0;mxGraph[_0x5b48[202]][_0x5b48[2360]]= 20;mxGraph[_0x5b48[202]][_0x5b48[2361]]= !1;mxGraph[_0x5b48[202]][_0x5b48[2013]]= mxConstants[_0x5b48[516]];mxGraph[_0x5b48[202]][_0x5b48[2012]]= 1.5;mxGraph[_0x5b48[202]][_0x5b48[984]]= !0;mxGraph[_0x5b48[202]][_0x5b48[2362]]= !0;mxGraph[_0x5b48[202]][_0x5b48[2363]]= !0;mxGraph[_0x5b48[202]][_0x5b48[2364]]= !1;mxGraph[_0x5b48[202]][_0x5b48[2365]]= !0;mxGraph[_0x5b48[202]][_0x5b48[2366]]= !0;mxGraph[_0x5b48[202]][_0x5b48[2367]]= !0;mxGraph[_0x5b48[202]][_0x5b48[2368]]= !1;mxGraph[_0x5b48[202]][_0x5b48[2369]]= !0;mxGraph[_0x5b48[202]][_0x5b48[2206]]= !0;mxGraph[_0x5b48[202]][_0x5b48[2370]]= !0;mxGraph[_0x5b48[202]][_0x5b48[2371]]= !0;mxGraph[_0x5b48[202]][_0x5b48[2372]]= !0;mxGraph[_0x5b48[202]][_0x5b48[2373]]= !0;mxGraph[_0x5b48[202]][_0x5b48[2374]]= !1;mxGraph[_0x5b48[202]][_0x5b48[2375]]= !1;mxGraph[_0x5b48[202]][_0x5b48[2376]]= !0;mxGraph[_0x5b48[202]][_0x5b48[2377]]= !0;mxGraph[_0x5b48[202]][_0x5b48[2378]]= !0;mxGraph[_0x5b48[202]][_0x5b48[2379]]= !0;mxGraph[_0x5b48[202]][_0x5b48[2380]]= !0;mxGraph[_0x5b48[202]][_0x5b48[2381]]= !1;mxGraph[_0x5b48[202]][_0x5b48[1012]]= !0;mxGraph[_0x5b48[202]][_0x5b48[2382]]= !1;mxGraph[_0x5b48[202]][_0x5b48[2383]]= !1;mxGraph[_0x5b48[202]][_0x5b48[2384]]= !1;mxGraph[_0x5b48[202]][_0x5b48[1013]]= !0;mxGraph[_0x5b48[202]][_0x5b48[2385]]= null;mxGraph[_0x5b48[202]][_0x5b48[2386]]= null;mxGraph[_0x5b48[202]][_0x5b48[2387]]= null;mxGraph[_0x5b48[202]][_0x5b48[2388]]= null;mxGraph[_0x5b48[202]][_0x5b48[2389]]= !1;mxGraph[_0x5b48[202]][_0x5b48[467]]= 0;mxGraph[_0x5b48[202]][_0x5b48[2158]]= !0;mxGraph[_0x5b48[202]][_0x5b48[2159]]= !1;mxGraph[_0x5b48[202]][_0x5b48[2168]]= !0;mxGraph[_0x5b48[202]][_0x5b48[2390]]= !0;mxGraph[_0x5b48[202]][_0x5b48[2391]]= !0;mxGraph[_0x5b48[202]][_0x5b48[2392]]= !0;mxGraph[_0x5b48[202]][_0x5b48[2393]]= !0;mxGraph[_0x5b48[202]][_0x5b48[2394]]= !0;mxGraph[_0x5b48[202]][_0x5b48[2395]]= 1.2;mxGraph[_0x5b48[202]][_0x5b48[2396]]= !1;mxGraph[_0x5b48[202]][_0x5b48[2397]]= !0;mxGraph[_0x5b48[202]][_0x5b48[2398]]= !0;mxGraph[_0x5b48[202]][_0x5b48[2399]]= !1;mxGraph[_0x5b48[202]][_0x5b48[2400]]= !1;mxGraph[_0x5b48[202]][_0x5b48[2401]]= !0;mxGraph[_0x5b48[202]][_0x5b48[2402]]= !1;mxGraph[_0x5b48[202]][_0x5b48[2293]]= mxEdgeStyle[_0x5b48[2403]];mxGraph[_0x5b48[202]][_0x5b48[2404]]= !0;mxGraph[_0x5b48[202]][_0x5b48[2405]]= !1;mxGraph[_0x5b48[202]][_0x5b48[2406]]= !0;mxGraph[_0x5b48[202]][_0x5b48[2407]]= !1;mxGraph[_0x5b48[202]][_0x5b48[2408]]= !0;mxGraph[_0x5b48[202]][_0x5b48[2409]]= !0;mxGraph[_0x5b48[202]][_0x5b48[2410]]= !1;mxGraph[_0x5b48[202]][_0x5b48[2411]]= !0;mxGraph[_0x5b48[202]][_0x5b48[2412]]= !0;mxGraph[_0x5b48[202]][_0x5b48[2180]]= mxConstants[_0x5b48[2065]];mxGraph[_0x5b48[202]][_0x5b48[2336]]= null;mxGraph[_0x5b48[202]][_0x5b48[2413]]= 0.1;mxGraph[_0x5b48[202]][_0x5b48[2414]]= 8;mxGraph[_0x5b48[202]][_0x5b48[1136]]= 0;mxGraph[_0x5b48[202]][_0x5b48[1137]]= 0;mxGraph[_0x5b48[202]][_0x5b48[2415]]= new mxImage(mxClient[_0x5b48[88]]+ _0x5b48[2416],9,9);mxGraph[_0x5b48[202]][_0x5b48[2417]]= new mxImage(mxClient[_0x5b48[88]]+ _0x5b48[2418],9,9);mxGraph[_0x5b48[202]][_0x5b48[2419]]= new mxImage(_0x5b48[2420],16,16);mxGraph[_0x5b48[202]][_0x5b48[2421]]= _0x5b48[130]!= mxClient[_0x5b48[90]]?_0x5b48[2422]:_0x5b48[110];mxGraph[_0x5b48[202]][_0x5b48[2423]]= _0x5b48[130]!= mxClient[_0x5b48[90]]?_0x5b48[2424]:_0x5b48[110];mxGraph[_0x5b48[202]][_0x5b48[2425]]= _0x5b48[130]!= mxClient[_0x5b48[90]]?_0x5b48[2426]:_0x5b48[110];mxGraph[_0x5b48[202]][_0x5b48[176]]= function(_0x43b0x2){this[_0x5b48[526]]= _0x43b0x2;this[_0x5b48[2347]]= this[_0x5b48[2427]]();this[_0x5b48[441]][_0x5b48[176]]();this[_0x5b48[2258]]();mxClient[_0x5b48[80]]&& (mxEvent[_0x5b48[169]](window,_0x5b48[2428],mxUtils[_0x5b48[885]](this,function(){this[_0x5b48[515]]()})),mxEvent[_0x5b48[169]](_0x43b0x2,_0x5b48[2429],mxUtils[_0x5b48[885]](this,function(){return this[_0x5b48[2203]]()})));8== document[_0x5b48[5]]&& _0x43b0x2[_0x5b48[1583]](_0x5b48[1582],_0x5b48[2430])};mxGraph[_0x5b48[202]][_0x5b48[2344]]= function(_0x43b0x2){this[_0x5b48[2276]]= new mxTooltipHandler(this);this[_0x5b48[2276]][_0x5b48[995]](!1);this[_0x5b48[2316]]= new mxPanningHandler(this);this[_0x5b48[2316]][_0x5b48[2431]]= !1;this[_0x5b48[2432]]= new mxSelectionCellsHandler(this);this[_0x5b48[2433]]= new mxConnectionHandler(this);this[_0x5b48[2433]][_0x5b48[995]](!1);this[_0x5b48[1011]]= new mxGraphHandler(this)};mxGraph[_0x5b48[202]][_0x5b48[2338]]= function(){return new mxGraphSelectionModel(this)};mxGraph[_0x5b48[202]][_0x5b48[2340]]= function(){return new mxStylesheet};mxGraph[_0x5b48[202]][_0x5b48[2342]]= function(){return new mxGraphView(this)};mxGraph[_0x5b48[202]][_0x5b48[2337]]= function(){return new mxCellRenderer};mxGraph[_0x5b48[202]][_0x5b48[2427]]= function(){return new mxCellEditor(this)};mxGraph[_0x5b48[202]][_0x5b48[502]]= function(){return this[_0x5b48[251]]};mxGraph[_0x5b48[202]][_0x5b48[249]]= function(){return this[_0x5b48[441]]};mxGraph[_0x5b48[202]][_0x5b48[2434]]= function(){return this[_0x5b48[94]]};mxGraph[_0x5b48[202]][_0x5b48[2341]]= function(_0x43b0x2){this[_0x5b48[94]]= _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[2435]]= function(){return this[_0x5b48[2105]]};mxGraph[_0x5b48[202]][_0x5b48[2339]]= function(_0x43b0x2){this[_0x5b48[2105]]= _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[2436]]= function(_0x43b0x2){for(var _0x43b0x3=[],_0x43b0x4=0;_0x43b0x4< _0x43b0x2[_0x5b48[67]];_0x43b0x4++){var _0x43b0x5=_0x43b0x2[_0x43b0x4];if(_0x43b0x5[_0x5b48[196]]!= mxRootChange){var _0x43b0x9=null;_0x43b0x5 instanceof mxChildChange&& null== _0x43b0x5[_0x5b48[257]]?_0x43b0x9= _0x43b0x5[_0x5b48[247]]:null!= _0x43b0x5[_0x5b48[246]]&& _0x43b0x5[_0x5b48[246]] instanceof mxCell&& (_0x43b0x9= _0x43b0x5[_0x5b48[246]]);null!= _0x43b0x9&& 0> mxUtils[_0x5b48[2]](_0x43b0x3,_0x43b0x9)&& _0x43b0x3[_0x5b48[207]](_0x43b0x9)}};return this[_0x5b48[502]]()[_0x5b48[1964]](_0x43b0x3)};mxGraph[_0x5b48[202]][_0x5b48[1177]]= function(_0x43b0x2){for(var _0x43b0x3=0;_0x43b0x3< _0x43b0x2[_0x5b48[67]];_0x43b0x3++){this[_0x5b48[2437]](_0x43b0x2[_0x43b0x3])};this[_0x5b48[2439]](this[_0x5b48[2438]](_0x43b0x2));this[_0x5b48[441]][_0x5b48[2264]]();this[_0x5b48[2258]]()};mxGraph[_0x5b48[202]][_0x5b48[2438]]= function(_0x43b0x2){for(var _0x43b0x3=[],_0x43b0x4=0;_0x43b0x4< _0x43b0x2[_0x5b48[67]];_0x43b0x4++){var _0x43b0x5=_0x43b0x2[_0x43b0x4];if(_0x43b0x5 instanceof mxRootChange){break}else {_0x43b0x5 instanceof mxChildChange?null!= _0x43b0x5[_0x5b48[257]]&& null== _0x43b0x5[_0x5b48[1101]]&& (_0x43b0x3= _0x43b0x3[_0x5b48[1919]](this[_0x5b48[251]][_0x5b48[1939]](_0x43b0x5[_0x5b48[247]]))):_0x43b0x5 instanceof mxVisibleChange&& (_0x43b0x3= _0x43b0x3[_0x5b48[1919]](this[_0x5b48[251]][_0x5b48[1939]](_0x43b0x5[_0x5b48[246]])))}};return _0x43b0x3};mxGraph[_0x5b48[202]][_0x5b48[2437]]= function(_0x43b0x2){if(_0x43b0x2 instanceof mxRootChange){this[_0x5b48[2440]](),this[_0x5b48[2441]](_0x43b0x2[_0x5b48[257]]),this[_0x5b48[2398]]&& (this[_0x5b48[441]][_0x5b48[255]]= 1,this[_0x5b48[441]][_0x5b48[513]][_0x5b48[235]]= 0,this[_0x5b48[441]][_0x5b48[513]][_0x5b48[236]]= 0),this[_0x5b48[746]]( new mxEventObject(mxEvent.ROOT))}else {if(_0x43b0x2 instanceof mxChildChange){var _0x43b0x3=this[_0x5b48[251]][_0x5b48[1197]](_0x43b0x2[_0x5b48[247]]);null!= _0x43b0x3?this[_0x5b48[441]][_0x5b48[2263]](_0x43b0x2[_0x5b48[247]],!0,!1,null!= _0x43b0x2[_0x5b48[257]]):(this[_0x5b48[2441]](_0x43b0x2[_0x5b48[247]]),this[_0x5b48[441]][_0x5b48[1741]]== _0x43b0x2[_0x5b48[247]]&& this[_0x5b48[2442]]());_0x43b0x3!= _0x43b0x2[_0x5b48[257]]&& (null!= _0x43b0x3&& this[_0x5b48[441]][_0x5b48[2263]](_0x43b0x3,!1,!1),null!= _0x43b0x2[_0x5b48[257]]&& this[_0x5b48[441]][_0x5b48[2263]](_0x43b0x2[_0x5b48[257]],!1,!1))}else {_0x43b0x2 instanceof mxTerminalChange|| _0x43b0x2 instanceof mxGeometryChange?this[_0x5b48[441]][_0x5b48[2263]](_0x43b0x2[_0x5b48[246]]):_0x43b0x2 instanceof mxValueChange?this[_0x5b48[441]][_0x5b48[2263]](_0x43b0x2[_0x5b48[246]],!1,!1):_0x43b0x2 instanceof mxStyleChange?(this[_0x5b48[441]][_0x5b48[2263]](_0x43b0x2[_0x5b48[246]],!0,!0,!1),this[_0x5b48[441]][_0x5b48[2265]](_0x43b0x2[_0x5b48[246]])):null!= _0x43b0x2[_0x5b48[246]]&& _0x43b0x2[_0x5b48[246]] instanceof mxCell&& this[_0x5b48[2441]](_0x43b0x2[_0x5b48[246]])}}};mxGraph[_0x5b48[202]][_0x5b48[2441]]= function(_0x43b0x2){for(var _0x43b0x3=this[_0x5b48[251]][_0x5b48[262]](_0x43b0x2),_0x43b0x4=0;_0x43b0x4< _0x43b0x3;_0x43b0x4++){this[_0x5b48[2441]](this[_0x5b48[251]][_0x5b48[263]](_0x43b0x2,_0x43b0x4))};this[_0x5b48[441]][_0x5b48[2265]](_0x43b0x2)};mxGraph[_0x5b48[202]][_0x5b48[2443]]= function(_0x43b0x2,_0x43b0x3){null== _0x43b0x2[_0x5b48[1211]]&& (_0x43b0x2[_0x5b48[1211]]= []);_0x43b0x2[_0x5b48[1211]][_0x5b48[207]](_0x43b0x3);var _0x43b0x4=this[_0x5b48[441]][_0x5b48[248]](_0x43b0x2);null!= _0x43b0x4&& this[_0x5b48[259]][_0x5b48[258]](_0x43b0x4);this[_0x5b48[746]]( new mxEventObject(mxEvent.ADD_OVERLAY,_0x5b48[246],_0x43b0x2,_0x5b48[2201],_0x43b0x3));return _0x43b0x3};mxGraph[_0x5b48[202]][_0x5b48[2200]]= function(_0x43b0x2){return _0x43b0x2[_0x5b48[1211]]};mxGraph[_0x5b48[202]][_0x5b48[2444]]= function(_0x43b0x2,_0x43b0x3){if(null== _0x43b0x3){this[_0x5b48[2445]](_0x43b0x2)}else {var _0x43b0x4=mxUtils[_0x5b48[2]](_0x43b0x2[_0x5b48[1211]],_0x43b0x3);0<= _0x43b0x4?(_0x43b0x2[_0x5b48[1211]][_0x5b48[300]](_0x43b0x4,1),0== _0x43b0x2[_0x5b48[1211]][_0x5b48[67]]&& (_0x43b0x2[_0x5b48[1211]]= null),_0x43b0x4= this[_0x5b48[441]][_0x5b48[248]](_0x43b0x2),null!= _0x43b0x4&& this[_0x5b48[259]][_0x5b48[258]](_0x43b0x4),this[_0x5b48[746]]( new mxEventObject(mxEvent.REMOVE_OVERLAY,_0x5b48[246],_0x43b0x2,_0x5b48[2201],_0x43b0x3))):_0x43b0x3= null};return _0x43b0x3};mxGraph[_0x5b48[202]][_0x5b48[2445]]= function(_0x43b0x2){var _0x43b0x3=_0x43b0x2[_0x5b48[1211]];if(null!= _0x43b0x3){_0x43b0x2[_0x5b48[1211]]= null;var _0x43b0x4=this[_0x5b48[441]][_0x5b48[248]](_0x43b0x2);null!= _0x43b0x4&& this[_0x5b48[259]][_0x5b48[258]](_0x43b0x4);for(_0x43b0x4= 0;_0x43b0x4< _0x43b0x3[_0x5b48[67]];_0x43b0x4++){this[_0x5b48[746]]( new mxEventObject(mxEvent.REMOVE_OVERLAY,_0x5b48[246],_0x43b0x2,_0x5b48[2201],_0x43b0x3[_0x43b0x4]))}};return _0x43b0x3};mxGraph[_0x5b48[202]][_0x5b48[2446]]= function(_0x43b0x2){_0x43b0x2= null!= _0x43b0x2?_0x43b0x2:this[_0x5b48[251]][_0x5b48[501]]();this[_0x5b48[2445]](_0x43b0x2);for(var _0x43b0x3=this[_0x5b48[251]][_0x5b48[262]](_0x43b0x2),_0x43b0x4=0;_0x43b0x4< _0x43b0x3;_0x43b0x4++){var _0x43b0x5=this[_0x5b48[251]][_0x5b48[263]](_0x43b0x2,_0x43b0x4);this[_0x5b48[2446]](_0x43b0x5)}};mxGraph[_0x5b48[202]][_0x5b48[2447]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){if(null!= _0x43b0x3&& 0< _0x43b0x3[_0x5b48[67]]){return _0x43b0x4= null!= _0x43b0x4?_0x43b0x4:this[_0x5b48[2419]],_0x43b0x3= new mxCellOverlay(_0x43b0x4,_0x5b48[2448]+ _0x43b0x3+ _0x5b48[2449]),_0x43b0x5&& _0x43b0x3[_0x5b48[169]](mxEvent.CLICK,mxUtils[_0x5b48[885]](this,function(_0x43b0x3,_0x43b0x4){this[_0x5b48[994]]()&& this[_0x5b48[2450]](_0x43b0x2)})),this[_0x5b48[2443]](_0x43b0x2,_0x43b0x3)};this[_0x5b48[2445]](_0x43b0x2);return null};mxGraph[_0x5b48[202]][_0x5b48[855]]= function(_0x43b0x2){this[_0x5b48[2451]](null,_0x43b0x2)};mxGraph[_0x5b48[202]][_0x5b48[2451]]= function(_0x43b0x2,_0x43b0x3){null== _0x43b0x2&& (_0x43b0x2= this[_0x5b48[2452]](),null!= _0x43b0x2&& !this[_0x5b48[2453]](_0x43b0x2)&& (_0x43b0x2= null));null!= _0x43b0x2&& (this[_0x5b48[746]]( new mxEventObject(mxEvent.START_EDITING,_0x5b48[246],_0x43b0x2,_0x5b48[763],_0x43b0x3)),this[_0x5b48[2347]][_0x5b48[855]](_0x43b0x2,_0x43b0x3))};mxGraph[_0x5b48[202]][_0x5b48[2142]]= function(_0x43b0x2,_0x43b0x3){return this[_0x5b48[2454]](_0x43b0x2)};mxGraph[_0x5b48[202]][_0x5b48[2126]]= function(_0x43b0x2){this[_0x5b48[2347]][_0x5b48[2126]](_0x43b0x2)};mxGraph[_0x5b48[202]][_0x5b48[850]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){this[_0x5b48[251]][_0x5b48[473]]();try{this[_0x5b48[2456]](_0x43b0x2,_0x43b0x3,this[_0x5b48[2455]](_0x43b0x2)),this[_0x5b48[746]]( new mxEventObject(mxEvent.LABEL_CHANGED,_0x5b48[246],_0x43b0x2,_0x5b48[131],_0x43b0x3,_0x5b48[763],_0x43b0x4))}finally{this[_0x5b48[251]][_0x5b48[476]]()};return _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[2456]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){this[_0x5b48[251]][_0x5b48[473]]();try{this[_0x5b48[251]][_0x5b48[1966]](_0x43b0x2,_0x43b0x3),_0x43b0x4&& this[_0x5b48[2457]](_0x43b0x2,!1)}finally{this[_0x5b48[251]][_0x5b48[476]]()}};mxGraph[_0x5b48[202]][_0x5b48[859]]= function(_0x43b0x2){this[_0x5b48[2126]](!0);this[_0x5b48[2433]][_0x5b48[862]]();this[_0x5b48[1011]][_0x5b48[862]]();_0x43b0x2= this[_0x5b48[897]]();for(var _0x43b0x3=0;_0x43b0x3< _0x43b0x2[_0x5b48[67]];_0x43b0x3++){var _0x43b0x4=this[_0x5b48[441]][_0x5b48[248]](_0x43b0x2[_0x43b0x3]);null!= _0x43b0x4&& null!= _0x43b0x4[_0x5b48[2458]]&& _0x43b0x4[_0x5b48[2458]][_0x5b48[862]]()}};mxGraph[_0x5b48[202]][_0x5b48[173]]= function(_0x43b0x2){var _0x43b0x3=_0x43b0x2[_0x5b48[727]](),_0x43b0x4=_0x43b0x2[_0x5b48[736]](),_0x43b0x5= new mxEventObject(mxEvent.CLICK,_0x5b48[763],_0x43b0x3,_0x5b48[246],_0x43b0x4);_0x43b0x2[_0x5b48[721]]()&& _0x43b0x5[_0x5b48[722]]();this[_0x5b48[746]](_0x43b0x5);this[_0x5b48[994]]()&& (!mxEvent[_0x5b48[721]](_0x43b0x3)&& !_0x43b0x5[_0x5b48[721]]())&& (null!= _0x43b0x4?this[_0x5b48[2459]](_0x43b0x4,_0x43b0x3):(_0x43b0x4= null,this[_0x5b48[2460]]()&& (_0x43b0x4= this[_0x5b48[2461]](_0x43b0x2[_0x5b48[734]](),_0x43b0x2[_0x5b48[735]]())),null!= _0x43b0x4?this[_0x5b48[2459]](_0x43b0x4,_0x43b0x3):this[_0x5b48[2462]](_0x43b0x3)|| this[_0x5b48[2440]]()))};mxGraph[_0x5b48[202]][_0x5b48[761]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4= new mxEventObject(mxEvent.DOUBLE_CLICK,_0x5b48[763],_0x43b0x2,_0x5b48[246],_0x43b0x3);this[_0x5b48[746]](_0x43b0x4);this[_0x5b48[994]]()&& (!mxEvent[_0x5b48[721]](_0x43b0x2)&& !_0x43b0x4[_0x5b48[721]]() && null!= _0x43b0x3 && this[_0x5b48[2453]](_0x43b0x3))&& this[_0x5b48[2451]](_0x43b0x3,_0x43b0x2)};mxGraph[_0x5b48[202]][_0x5b48[1014]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){if(!this[_0x5b48[2382]]&& (this[_0x5b48[2384]]|| mxUtils[_0x5b48[1134]](this[_0x5b48[526]]))){var _0x43b0x9=this[_0x5b48[526]];_0x43b0x5= null!= _0x43b0x5?_0x43b0x5:20;if(_0x43b0x2>= _0x43b0x9[_0x5b48[360]]&& _0x43b0x3>= _0x43b0x9[_0x5b48[190]]&& _0x43b0x2<= _0x43b0x9[_0x5b48[360]]+ _0x43b0x9[_0x5b48[159]]&& _0x43b0x3<= _0x43b0x9[_0x5b48[190]]+ _0x43b0x9[_0x5b48[157]]){var _0x43b0xa=_0x43b0x9[_0x5b48[360]]+ _0x43b0x9[_0x5b48[159]]- _0x43b0x2;if(_0x43b0xa< _0x43b0x5){if(_0x43b0x2= _0x43b0x9[_0x5b48[360]],_0x43b0x9[_0x5b48[360]]+= _0x43b0x5- _0x43b0xa,_0x43b0x4&& _0x43b0x2== _0x43b0x9[_0x5b48[360]]){if(this[_0x5b48[507]]== mxConstants[_0x5b48[508]]){_0x43b0x2= this[_0x5b48[441]][_0x5b48[2024]]()[_0x5b48[538]];var _0x43b0x12=this[_0x5b48[526]][_0x5b48[1526]]+ _0x43b0x5- _0x43b0xa}else {_0x43b0x12= Math[_0x5b48[160]](_0x43b0x9[_0x5b48[159]],_0x43b0x9[_0x5b48[1526]])+ _0x43b0x5- _0x43b0xa,_0x43b0x2= this[_0x5b48[441]][_0x5b48[2051]]()};_0x43b0x2[_0x5b48[124]][_0x5b48[117]]= _0x43b0x12+ _0x5b48[168];_0x43b0x9[_0x5b48[360]]+= _0x43b0x5- _0x43b0xa}}else {_0x43b0xa= _0x43b0x2- _0x43b0x9[_0x5b48[360]],_0x43b0xa< _0x43b0x5&& (_0x43b0x9[_0x5b48[360]]-= _0x43b0x5- _0x43b0xa)};_0x43b0xa= _0x43b0x9[_0x5b48[190]]+ _0x43b0x9[_0x5b48[157]]- _0x43b0x3;_0x43b0xa< _0x43b0x5?(_0x43b0x2= _0x43b0x9[_0x5b48[190]],_0x43b0x9[_0x5b48[190]]+= _0x43b0x5- _0x43b0xa,_0x43b0x2== _0x43b0x9[_0x5b48[190]]&& _0x43b0x4&& (this[_0x5b48[507]]== mxConstants[_0x5b48[508]]?(_0x43b0x2= this[_0x5b48[441]][_0x5b48[2024]]()[_0x5b48[538]],_0x43b0x3= this[_0x5b48[526]][_0x5b48[191]]+ _0x43b0x5- _0x43b0xa):(_0x43b0x3= Math[_0x5b48[160]](_0x43b0x9[_0x5b48[157]],_0x43b0x9[_0x5b48[191]])+ _0x43b0x5- _0x43b0xa,_0x43b0x2= this[_0x5b48[441]][_0x5b48[2051]]()),_0x43b0x2[_0x5b48[124]][_0x5b48[119]]= _0x43b0x3+ _0x5b48[168],_0x43b0x9[_0x5b48[190]]+= _0x43b0x5- _0x43b0xa)):(_0x43b0xa= _0x43b0x3- _0x43b0x9[_0x5b48[190]],_0x43b0xa< _0x43b0x5&& (_0x43b0x9[_0x5b48[190]]-= _0x43b0x5- _0x43b0xa))}}else {this[_0x5b48[2383]]&& !this[_0x5b48[2316]][_0x5b48[1124]]&& (null== this[_0x5b48[2463]]&& (this[_0x5b48[2463]]= this[_0x5b48[2464]]()),this[_0x5b48[2463]][_0x5b48[1143]](_0x43b0x2+ this[_0x5b48[1136]],_0x43b0x3+ this[_0x5b48[1137]]))}};mxGraph[_0x5b48[202]][_0x5b48[2464]]= function(){return new mxPanningManager(this)};mxGraph[_0x5b48[202]][_0x5b48[2465]]= function(){function _0x43b0x2(_0x43b0x2){var _0x43b0x3=0,_0x43b0x3=_0x5b48[2466]== _0x43b0x2?2:_0x5b48[2467]== _0x43b0x2?4:_0x5b48[2468]== _0x43b0x2?6:parseInt(_0x43b0x2);isNaN(_0x43b0x3)&& (_0x43b0x3= 0);return _0x43b0x3}var _0x43b0x3=mxUtils[_0x5b48[275]](this[_0x5b48[526]]),_0x43b0x4= new mxRectangle;_0x43b0x4[_0x5b48[235]]= _0x43b0x2(_0x43b0x3[_0x5b48[2469]])+ parseInt(_0x43b0x3[_0x5b48[357]]|| 0);_0x43b0x4[_0x5b48[236]]= _0x43b0x2(_0x43b0x3[_0x5b48[2470]])+ parseInt(_0x43b0x3[_0x5b48[2471]]|| 0);_0x43b0x4[_0x5b48[117]]= _0x43b0x2(_0x43b0x3[_0x5b48[2472]])+ parseInt(_0x43b0x3[_0x5b48[1164]]|| 0);_0x43b0x4[_0x5b48[119]]= _0x43b0x2(_0x43b0x3[_0x5b48[2473]])+ parseInt(_0x43b0x3[_0x5b48[2474]]|| 0);return _0x43b0x4};mxGraph[_0x5b48[202]][_0x5b48[2475]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){_0x43b0x2= this[_0x5b48[441]][_0x5b48[255]];var _0x43b0x5=this[_0x5b48[441]][_0x5b48[513]],_0x43b0x9=this[_0x5b48[2013]],_0x43b0xa=_0x43b0x2* this[_0x5b48[2012]],_0x43b0x9= new mxRectangle(0,0,_0x43b0x9[_0x5b48[117]]* _0x43b0xa,_0x43b0x9[_0x5b48[119]]* _0x43b0xa);_0x43b0x3= this[_0x5b48[2357]]?Math[_0x5b48[430]](_0x43b0x3/ _0x43b0x9[_0x5b48[117]]):1;_0x43b0x4= this[_0x5b48[2357]]?Math[_0x5b48[430]](_0x43b0x4/ _0x43b0x9[_0x5b48[119]]):1;return new mxRectangle(0,0,_0x43b0x3* _0x43b0x9[_0x5b48[117]]+ 2+ _0x43b0x5[_0x5b48[235]]/ _0x43b0x2,_0x43b0x4* _0x43b0x9[_0x5b48[119]]+ 2+ _0x43b0x5[_0x5b48[236]]/ _0x43b0x2)};mxGraph[_0x5b48[202]][_0x5b48[2258]]= function(){var _0x43b0x2=this[_0x5b48[517]]();if(null!= this[_0x5b48[526]]){var _0x43b0x3=this[_0x5b48[2476]](),_0x43b0x4=Math[_0x5b48[160]](0,_0x43b0x2[_0x5b48[235]]+ _0x43b0x2[_0x5b48[117]]+ 1+ _0x43b0x3),_0x43b0x3=Math[_0x5b48[160]](0,_0x43b0x2[_0x5b48[236]]+ _0x43b0x2[_0x5b48[119]]+ 1+ _0x43b0x3);null!= this[_0x5b48[2387]]&& (_0x43b0x4= Math[_0x5b48[160]](_0x43b0x4,this[_0x5b48[2387]][_0x5b48[117]]),_0x43b0x3= Math[_0x5b48[160]](_0x43b0x3,this[_0x5b48[2387]][_0x5b48[119]]));this[_0x5b48[2389]]&& this[_0x5b48[2477]](_0x43b0x4,_0x43b0x3);if(this[_0x5b48[2361]]|| !mxClient[_0x5b48[80]]&& this[_0x5b48[2273]]){var _0x43b0x5=this[_0x5b48[2475]](_0x43b0x2,_0x43b0x4,_0x43b0x3);null!= _0x43b0x5&& (_0x43b0x4= _0x43b0x5[_0x5b48[117]],_0x43b0x3= _0x43b0x5[_0x5b48[119]])};null!= this[_0x5b48[2386]]&& (_0x43b0x4= Math[_0x5b48[160]](_0x43b0x4,this[_0x5b48[2386]][_0x5b48[117]]* this[_0x5b48[441]][_0x5b48[255]]),_0x43b0x3= Math[_0x5b48[160]](_0x43b0x3,this[_0x5b48[2386]][_0x5b48[119]]* this[_0x5b48[441]][_0x5b48[255]]));_0x43b0x4= Math[_0x5b48[430]](_0x43b0x4- 1);_0x43b0x3= Math[_0x5b48[430]](_0x43b0x3- 1);this[_0x5b48[507]]== mxConstants[_0x5b48[508]]?(_0x43b0x5= this[_0x5b48[441]][_0x5b48[2024]]()[_0x5b48[538]],_0x43b0x5[_0x5b48[124]][_0x5b48[2478]]= Math[_0x5b48[160]](1,_0x43b0x4)+ _0x5b48[168],_0x43b0x5[_0x5b48[124]][_0x5b48[2479]]= Math[_0x5b48[160]](1,_0x43b0x3)+ _0x5b48[168],_0x43b0x5[_0x5b48[124]][_0x5b48[117]]= _0x5b48[118],_0x43b0x5[_0x5b48[124]][_0x5b48[119]]= _0x5b48[118]):mxClient[_0x5b48[496]]?this[_0x5b48[441]][_0x5b48[2320]](Math[_0x5b48[160]](1,_0x43b0x4),Math[_0x5b48[160]](1,_0x43b0x3)):(this[_0x5b48[441]][_0x5b48[510]][_0x5b48[124]][_0x5b48[2478]]= Math[_0x5b48[160]](1,_0x43b0x4)+ _0x5b48[168],this[_0x5b48[441]][_0x5b48[510]][_0x5b48[124]][_0x5b48[2479]]= Math[_0x5b48[160]](1,_0x43b0x3)+ _0x5b48[168]);this[_0x5b48[2480]](this[_0x5b48[2357]],_0x43b0x4- 1,_0x43b0x3- 1)};this[_0x5b48[746]]( new mxEventObject(mxEvent.SIZE,_0x5b48[1562],_0x43b0x2))};mxGraph[_0x5b48[202]][_0x5b48[2477]]= function(_0x43b0x2,_0x43b0x3){if(mxClient[_0x5b48[80]]){if(mxClient[_0x5b48[496]]){var _0x43b0x4=this[_0x5b48[2465]]();_0x43b0x2+= Math[_0x5b48[160]](2,_0x43b0x4[_0x5b48[235]]+ _0x43b0x4[_0x5b48[117]]+ 1);_0x43b0x3+= Math[_0x5b48[160]](2,_0x43b0x4[_0x5b48[236]]+ _0x43b0x4[_0x5b48[119]]+ 1)}else {9<= document[_0x5b48[5]]?(_0x43b0x2+= 3,_0x43b0x3+= 5):(_0x43b0x2+= 1,_0x43b0x3+= 1)}}else {_0x43b0x3+= 1};null!= this[_0x5b48[2388]]&& (_0x43b0x2= Math[_0x5b48[243]](this[_0x5b48[2388]][_0x5b48[117]],_0x43b0x2),_0x43b0x3= Math[_0x5b48[243]](this[_0x5b48[2388]][_0x5b48[119]],_0x43b0x3));this[_0x5b48[526]][_0x5b48[124]][_0x5b48[117]]= Math[_0x5b48[430]](_0x43b0x2)+ _0x5b48[168];this[_0x5b48[526]][_0x5b48[124]][_0x5b48[119]]= Math[_0x5b48[430]](_0x43b0x3)+ _0x5b48[168]};mxGraph[_0x5b48[202]][_0x5b48[2480]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){var _0x43b0x5=this[_0x5b48[441]][_0x5b48[255]],_0x43b0x9=this[_0x5b48[441]][_0x5b48[513]],_0x43b0xa=this[_0x5b48[2013]],_0x43b0x12=_0x43b0x5* this[_0x5b48[2012]],_0x43b0x9= new mxRectangle(_0x43b0x5* _0x43b0x9[_0x5b48[235]],_0x43b0x5* _0x43b0x9[_0x5b48[236]],_0x43b0xa[_0x5b48[117]]* _0x43b0x12,_0x43b0xa[_0x5b48[119]]* _0x43b0x12);_0x43b0x2= _0x43b0x2&& Math[_0x5b48[243]](_0x43b0x9[_0x5b48[117]],_0x43b0x9[_0x5b48[119]])> this[_0x5b48[2360]];_0x43b0x9[_0x5b48[235]]= mxUtils[_0x5b48[1454]](_0x43b0x9[_0x5b48[235]],_0x43b0x9[_0x5b48[117]]);_0x43b0x9[_0x5b48[236]]= mxUtils[_0x5b48[1454]](_0x43b0x9[_0x5b48[236]],_0x43b0x9[_0x5b48[119]]);_0x43b0xa= _0x43b0x2?Math[_0x5b48[430]]((_0x43b0x3- _0x43b0x9[_0x5b48[235]])/ _0x43b0x9[_0x5b48[117]]):0;_0x43b0x2= _0x43b0x2?Math[_0x5b48[430]]((_0x43b0x4- _0x43b0x9[_0x5b48[236]])/ _0x43b0x9[_0x5b48[119]]):0;null== this[_0x5b48[2481]]&& 0< _0x43b0xa&& (this[_0x5b48[2481]]= []);if(null!= this[_0x5b48[2481]]){for(_0x43b0x12= 0;_0x43b0x12<= _0x43b0xa;_0x43b0x12++){var _0x43b0x13=[ new mxPoint(_0x43b0x9[_0x5b48[235]]+ _0x43b0x12* _0x43b0x9[_0x5b48[117]],1), new mxPoint(_0x43b0x9[_0x5b48[235]]+ _0x43b0x12* _0x43b0x9[_0x5b48[117]],_0x43b0x4)];null!= this[_0x5b48[2481]][_0x43b0x12]?(this[_0x5b48[2481]][_0x43b0x12][_0x5b48[255]]= 1,this[_0x5b48[2481]][_0x43b0x12][_0x5b48[1525]]= _0x43b0x13,this[_0x5b48[2481]][_0x43b0x12][_0x5b48[258]]()):(_0x43b0x13= new mxPolyline(_0x43b0x13,this[_0x5b48[2358]],this[_0x5b48[255]]),_0x43b0x13[_0x5b48[507]]= this[_0x5b48[507]],_0x43b0x13[_0x5b48[1522]]= this[_0x5b48[2359]],_0x43b0x13[_0x5b48[255]]= _0x43b0x5,_0x43b0x13[_0x5b48[176]](this[_0x5b48[441]][_0x5b48[2053]]),_0x43b0x13[_0x5b48[258]](),this[_0x5b48[2481]][_0x43b0x12]= _0x43b0x13)};for(_0x43b0x12= _0x43b0xa;_0x43b0x12< this[_0x5b48[2481]][_0x5b48[67]];_0x43b0x12++){this[_0x5b48[2481]][_0x43b0x12][_0x5b48[515]]()};this[_0x5b48[2481]][_0x5b48[300]](_0x43b0xa,this[_0x5b48[2481]][_0x5b48[67]]- _0x43b0xa)};null== this[_0x5b48[2482]]&& 0< _0x43b0x2&& (this[_0x5b48[2482]]= []);if(null!= this[_0x5b48[2482]]){for(_0x43b0x12= 0;_0x43b0x12<= _0x43b0x2;_0x43b0x12++){_0x43b0x13= [ new mxPoint(1,_0x43b0x9[_0x5b48[236]]+ _0x43b0x12* _0x43b0x9[_0x5b48[119]]), new mxPoint(_0x43b0x3,_0x43b0x9[_0x5b48[236]]+ _0x43b0x12* _0x43b0x9[_0x5b48[119]])],null!= this[_0x5b48[2482]][_0x43b0x12]?(this[_0x5b48[2482]][_0x43b0x12][_0x5b48[255]]= 1,this[_0x5b48[2482]][_0x43b0x12][_0x5b48[1525]]= _0x43b0x13,this[_0x5b48[2482]][_0x43b0x12][_0x5b48[258]]()):(_0x43b0x13= new mxPolyline(_0x43b0x13,this[_0x5b48[2358]],_0x43b0x5),_0x43b0x13[_0x5b48[507]]= this[_0x5b48[507]],_0x43b0x13[_0x5b48[1522]]= this[_0x5b48[2359]],_0x43b0x13[_0x5b48[255]]= _0x43b0x5,_0x43b0x13[_0x5b48[176]](this[_0x5b48[441]][_0x5b48[2053]]),_0x43b0x13[_0x5b48[258]](),this[_0x5b48[2482]][_0x43b0x12]= _0x43b0x13)};for(_0x43b0x12= _0x43b0x2;_0x43b0x12< this[_0x5b48[2482]][_0x5b48[67]];_0x43b0x12++){this[_0x5b48[2482]][_0x43b0x12][_0x5b48[515]]()};this[_0x5b48[2482]][_0x5b48[300]](_0x43b0x2,this[_0x5b48[2482]][_0x5b48[67]]- _0x43b0x2)}};mxGraph[_0x5b48[202]][_0x5b48[1705]]= function(_0x43b0x2){var _0x43b0x3=this[_0x5b48[251]][_0x5b48[474]](_0x43b0x2),_0x43b0x4=null,_0x43b0x4=this[_0x5b48[251]][_0x5b48[250]](_0x43b0x2)?this[_0x5b48[94]][_0x5b48[2077]]():this[_0x5b48[94]][_0x5b48[2076]]();null!= _0x43b0x3&& (_0x43b0x4= this[_0x5b48[2483]](this[_0x5b48[94]][_0x5b48[1705]](_0x43b0x3,_0x43b0x4)));null== _0x43b0x4&& (_0x43b0x4= mxGraph[_0x5b48[202]][_0x5b48[2346]]);return _0x43b0x4};mxGraph[_0x5b48[202]][_0x5b48[2483]]= function(_0x43b0x2){if(null!= _0x43b0x2){var _0x43b0x3=_0x43b0x2[mxConstants[_0x5b48[2484]]],_0x43b0x4=this[_0x5b48[2485]](_0x43b0x3);null!= _0x43b0x4?_0x43b0x2[mxConstants[_0x5b48[2484]]]= _0x43b0x4:_0x43b0x4= _0x43b0x3;null!= _0x43b0x4&& _0x5b48[2486]== _0x43b0x4[_0x5b48[85]](0,11)&& (_0x43b0x3= _0x43b0x4[_0x5b48[2]](_0x5b48[537]),0< _0x43b0x3&& (_0x43b0x4= _0x43b0x4[_0x5b48[85]](0,_0x43b0x3)+ _0x5b48[2487]+ _0x43b0x4[_0x5b48[85]](_0x43b0x3+ 1)),_0x43b0x2[mxConstants[_0x5b48[2484]]]= _0x43b0x4)};return _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[2488]]= function(_0x43b0x2,_0x43b0x3){_0x43b0x3= _0x43b0x3|| this[_0x5b48[897]]();if(null!= _0x43b0x3){this[_0x5b48[251]][_0x5b48[473]]();try{for(var _0x43b0x4=0;_0x43b0x4< _0x43b0x3[_0x5b48[67]];_0x43b0x4++){this[_0x5b48[251]][_0x5b48[475]](_0x43b0x3[_0x43b0x4],_0x43b0x2)}}finally{this[_0x5b48[251]][_0x5b48[476]]()}}};mxGraph[_0x5b48[202]][_0x5b48[2489]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){_0x43b0x4= _0x43b0x4|| this[_0x5b48[2452]]();this[_0x5b48[2490]](_0x43b0x2,_0x43b0x3,[_0x43b0x4])};mxGraph[_0x5b48[202]][_0x5b48[2490]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){_0x43b0x3= null!= _0x43b0x3?_0x43b0x3:!1;_0x43b0x4= _0x43b0x4|| this[_0x5b48[897]]();if(null!= _0x43b0x4&& 0< _0x43b0x4[_0x5b48[67]]){var _0x43b0x5=this[_0x5b48[441]][_0x5b48[248]](_0x43b0x4[0]),_0x43b0x5=null!= _0x43b0x5?_0x43b0x5[_0x5b48[124]]:this[_0x5b48[1705]](_0x43b0x4[0]);null!= _0x43b0x5&& (_0x43b0x3= mxUtils[_0x5b48[433]](_0x43b0x5,_0x43b0x2,_0x43b0x3)?0:1,this[_0x5b48[1717]](_0x43b0x2,_0x43b0x3,_0x43b0x4))}};mxGraph[_0x5b48[202]][_0x5b48[1717]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){_0x43b0x4= _0x43b0x4|| this[_0x5b48[897]]();mxUtils[_0x5b48[1717]](this[_0x5b48[251]],_0x43b0x4,_0x43b0x2,_0x43b0x3)};mxGraph[_0x5b48[202]][_0x5b48[2491]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){this[_0x5b48[2492]](_0x43b0x2,_0x43b0x3,null,_0x43b0x4)};mxGraph[_0x5b48[202]][_0x5b48[2492]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){_0x43b0x5= _0x43b0x5|| this[_0x5b48[897]]();if(null!= _0x43b0x5&& 0< _0x43b0x5[_0x5b48[67]]){if(null== _0x43b0x4){var _0x43b0x9=this[_0x5b48[441]][_0x5b48[248]](_0x43b0x5[0]),_0x43b0x9=null!= _0x43b0x9?_0x43b0x9[_0x5b48[124]]:this[_0x5b48[1705]](_0x43b0x5[0]);null!= _0x43b0x9&& (_0x43b0x4= (parseInt(_0x43b0x9[_0x43b0x2]|| 0)& _0x43b0x3)!= _0x43b0x3)};mxUtils[_0x5b48[2492]](this[_0x5b48[251]],_0x43b0x5,_0x43b0x2,_0x43b0x3,_0x43b0x4)}};mxGraph[_0x5b48[202]][_0x5b48[849]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){null== _0x43b0x3&& (_0x43b0x3= this[_0x5b48[897]]());if(null!= _0x43b0x3&& 1< _0x43b0x3[_0x5b48[67]]){if(null== _0x43b0x4){for(var _0x43b0x5=0;_0x43b0x5< _0x43b0x3[_0x5b48[67]];_0x43b0x5++){var _0x43b0x9=this[_0x5b48[1198]](_0x43b0x3[_0x43b0x5]);if(null!= _0x43b0x9&& !this[_0x5b48[251]][_0x5b48[250]](_0x43b0x3[_0x43b0x5])){if(null== _0x43b0x4){if(_0x43b0x2== mxConstants[_0x5b48[479]]){_0x43b0x4= _0x43b0x9[_0x5b48[235]]+ _0x43b0x9[_0x5b48[117]]/ 2;break}else {if(_0x43b0x2== mxConstants[_0x5b48[480]]){_0x43b0x4= _0x43b0x9[_0x5b48[235]]+ _0x43b0x9[_0x5b48[117]]}else {if(_0x43b0x2== mxConstants[_0x5b48[1687]]){_0x43b0x4= _0x43b0x9[_0x5b48[236]]}else {if(_0x43b0x2== mxConstants[_0x5b48[481]]){_0x43b0x4= _0x43b0x9[_0x5b48[236]]+ _0x43b0x9[_0x5b48[119]]/ 2;break}else {_0x43b0x4= _0x43b0x2== mxConstants[_0x5b48[482]]?_0x43b0x9[_0x5b48[236]]+ _0x43b0x9[_0x5b48[119]]:_0x43b0x9[_0x5b48[235]]}}}}}else {_0x43b0x4= _0x43b0x2== mxConstants[_0x5b48[480]]?Math[_0x5b48[160]](_0x43b0x4,_0x43b0x9[_0x5b48[235]]+ _0x43b0x9[_0x5b48[117]]):_0x43b0x2== mxConstants[_0x5b48[1687]]?Math[_0x5b48[243]](_0x43b0x4,_0x43b0x9[_0x5b48[236]]):_0x43b0x2== mxConstants[_0x5b48[482]]?Math[_0x5b48[160]](_0x43b0x4,_0x43b0x9[_0x5b48[236]]+ _0x43b0x9[_0x5b48[119]]):Math[_0x5b48[243]](_0x43b0x4,_0x43b0x9[_0x5b48[235]])}}}};if(null!= _0x43b0x4){this[_0x5b48[251]][_0x5b48[473]]();try{for(_0x43b0x5= 0;_0x43b0x5< _0x43b0x3[_0x5b48[67]];_0x43b0x5++){_0x43b0x9= this[_0x5b48[1198]](_0x43b0x3[_0x43b0x5]),null!= _0x43b0x9&& !this[_0x5b48[251]][_0x5b48[250]](_0x43b0x3[_0x43b0x5])&& (_0x43b0x9= _0x43b0x9[_0x5b48[238]](),_0x43b0x2== mxConstants[_0x5b48[479]]?_0x43b0x9[_0x5b48[235]]= _0x43b0x4- _0x43b0x9[_0x5b48[117]]/ 2:_0x43b0x2== mxConstants[_0x5b48[480]]?_0x43b0x9[_0x5b48[235]]= _0x43b0x4- _0x43b0x9[_0x5b48[117]]:_0x43b0x2== mxConstants[_0x5b48[1687]]?_0x43b0x9[_0x5b48[236]]= _0x43b0x4:_0x43b0x2== mxConstants[_0x5b48[481]]?_0x43b0x9[_0x5b48[236]]= _0x43b0x4- _0x43b0x9[_0x5b48[119]]/ 2:_0x43b0x2== mxConstants[_0x5b48[482]]?_0x43b0x9[_0x5b48[236]]= _0x43b0x4- _0x43b0x9[_0x5b48[119]]:_0x43b0x9[_0x5b48[235]]= _0x43b0x4,this[_0x5b48[251]][_0x5b48[1724]](_0x43b0x3[_0x43b0x5],_0x43b0x9))};this[_0x5b48[746]]( new mxEventObject(mxEvent.ALIGN_CELLS,_0x5b48[611],_0x43b0x2,_0x5b48[895],_0x43b0x3))}finally{this[_0x5b48[251]][_0x5b48[476]]()}}};return _0x43b0x3};mxGraph[_0x5b48[202]][_0x5b48[854]]= function(_0x43b0x2){if(null!= _0x43b0x2&& null!= this[_0x5b48[2356]]){this[_0x5b48[251]][_0x5b48[473]]();try{var _0x43b0x3=this[_0x5b48[251]][_0x5b48[474]](_0x43b0x2);null== _0x43b0x3|| 0== _0x43b0x3[_0x5b48[67]]?this[_0x5b48[251]][_0x5b48[475]](_0x43b0x2,this[_0x5b48[2356]]):this[_0x5b48[251]][_0x5b48[475]](_0x43b0x2,null);this[_0x5b48[1809]](_0x43b0x2);this[_0x5b48[746]]( new mxEventObject(mxEvent.FLIP_EDGE,_0x5b48[1989],_0x43b0x2))}finally{this[_0x5b48[251]][_0x5b48[476]]()}};return _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[2493]]= function(_0x43b0x2){this[_0x5b48[2336]][_0x5b48[207]](_0x43b0x2)};mxGraph[_0x5b48[202]][_0x5b48[2494]]= function(_0x43b0x2){for(var _0x43b0x3=[],_0x43b0x4=0;_0x43b0x4< this[_0x5b48[2336]][_0x5b48[67]];_0x43b0x4++){this[_0x5b48[2336]][_0x43b0x4]!= _0x43b0x2&& _0x43b0x3[_0x5b48[207]](this[_0x5b48[2336]][_0x43b0x4])};this[_0x5b48[2336]]= _0x43b0x3};mxGraph[_0x5b48[202]][_0x5b48[2485]]= function(_0x43b0x2){if(null!= _0x43b0x2){for(var _0x43b0x3=0;_0x43b0x3< this[_0x5b48[2336]][_0x5b48[67]];_0x43b0x3++){var _0x43b0x4=this[_0x5b48[2336]][_0x43b0x3][_0x5b48[1202]](_0x43b0x2);if(null!= _0x43b0x4){return _0x43b0x4}}};return null};mxGraph[_0x5b48[202]][_0x5b48[840]]= function(_0x43b0x2,_0x43b0x3){null== _0x43b0x3&& (_0x43b0x3= mxUtils[_0x5b48[1779]](this[_0x5b48[897]](),!0));this[_0x5b48[251]][_0x5b48[473]]();try{this[_0x5b48[841]](_0x43b0x3,_0x43b0x2),this[_0x5b48[746]]( new mxEventObject(mxEvent.ORDER_CELLS,_0x5b48[2495],_0x43b0x2,_0x5b48[895],_0x43b0x3))}finally{this[_0x5b48[251]][_0x5b48[476]]()};return _0x43b0x3};mxGraph[_0x5b48[202]][_0x5b48[841]]= function(_0x43b0x2,_0x43b0x3){if(null!= _0x43b0x2){this[_0x5b48[251]][_0x5b48[473]]();try{for(var _0x43b0x4=0;_0x43b0x4< _0x43b0x2[_0x5b48[67]];_0x43b0x4++){var _0x43b0x5=this[_0x5b48[251]][_0x5b48[1197]](_0x43b0x2[_0x43b0x4]);_0x43b0x3?this[_0x5b48[251]][_0x5b48[99]](_0x43b0x5,_0x43b0x2[_0x43b0x4],_0x43b0x4):this[_0x5b48[251]][_0x5b48[99]](_0x43b0x5,_0x43b0x2[_0x43b0x4],this[_0x5b48[251]][_0x5b48[262]](_0x43b0x5)- 1)};this[_0x5b48[746]]( new mxEventObject(mxEvent.CELLS_ORDERED,_0x5b48[2495],_0x43b0x3,_0x5b48[895],_0x43b0x2))}finally{this[_0x5b48[251]][_0x5b48[476]]()}}};mxGraph[_0x5b48[202]][_0x5b48[844]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){null== _0x43b0x4&& (_0x43b0x4= mxUtils[_0x5b48[1779]](this[_0x5b48[897]](),!0));_0x43b0x4= this[_0x5b48[2496]](_0x43b0x4);null== _0x43b0x2&& (_0x43b0x2= this[_0x5b48[2497]](_0x43b0x4));var _0x43b0x5=this[_0x5b48[2498]](_0x43b0x2,_0x43b0x4,_0x43b0x3);if(0< _0x43b0x4[_0x5b48[67]]&& null!= _0x43b0x5){var _0x43b0x9=this[_0x5b48[251]][_0x5b48[1197]](_0x43b0x2);null== _0x43b0x9&& (_0x43b0x9= this[_0x5b48[251]][_0x5b48[1197]](_0x43b0x4[0]));this[_0x5b48[251]][_0x5b48[473]]();try{null== this[_0x5b48[1198]](_0x43b0x2)&& this[_0x5b48[251]][_0x5b48[1724]](_0x43b0x2, new mxGeometry);var _0x43b0xa=this[_0x5b48[251]][_0x5b48[262]](_0x43b0x9);this[_0x5b48[833]]([_0x43b0x2],_0x43b0x9,_0x43b0xa,null,null,!1);_0x43b0xa= this[_0x5b48[251]][_0x5b48[262]](_0x43b0x2);this[_0x5b48[833]](_0x43b0x4,_0x43b0x2,_0x43b0xa,null,null,!1,!1);this[_0x5b48[835]](_0x43b0x4,-_0x43b0x5[_0x5b48[235]],-_0x43b0x5[_0x5b48[236]],!1,!0);this[_0x5b48[837]]([_0x43b0x2],[_0x43b0x5]);this[_0x5b48[746]]( new mxEventObject(mxEvent.GROUP_CELLS,_0x5b48[1504],_0x43b0x2,_0x5b48[467],_0x43b0x3,_0x5b48[895],_0x43b0x4))}finally{this[_0x5b48[251]][_0x5b48[476]]()}};return _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[2496]]= function(_0x43b0x2){var _0x43b0x3=[];if(null!= _0x43b0x2&& 0< _0x43b0x2[_0x5b48[67]]){var _0x43b0x4=this[_0x5b48[251]][_0x5b48[1197]](_0x43b0x2[0]);_0x43b0x3[_0x5b48[207]](_0x43b0x2[0]);for(var _0x43b0x5=1;_0x43b0x5< _0x43b0x2[_0x5b48[67]];_0x43b0x5++){this[_0x5b48[251]][_0x5b48[1197]](_0x43b0x2[_0x43b0x5])== _0x43b0x4&& _0x43b0x3[_0x5b48[207]](_0x43b0x2[_0x43b0x5])}};return _0x43b0x3};mxGraph[_0x5b48[202]][_0x5b48[2498]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){_0x43b0x3= this[_0x5b48[1729]](_0x43b0x3);null!= _0x43b0x3&& (this[_0x5b48[1730]](_0x43b0x2)&& (_0x43b0x2= this[_0x5b48[1731]](_0x43b0x2),_0x43b0x3[_0x5b48[235]]-= _0x43b0x2[_0x5b48[117]],_0x43b0x3[_0x5b48[236]]-= _0x43b0x2[_0x5b48[119]],_0x43b0x3[_0x5b48[117]]+= _0x43b0x2[_0x5b48[117]],_0x43b0x3[_0x5b48[119]]+= _0x43b0x2[_0x5b48[119]]),_0x43b0x3[_0x5b48[235]]-= _0x43b0x4,_0x43b0x3[_0x5b48[236]]-= _0x43b0x4,_0x43b0x3[_0x5b48[117]]+= 2* _0x43b0x4,_0x43b0x3[_0x5b48[119]]+= 2* _0x43b0x4);return _0x43b0x3};mxGraph[_0x5b48[202]][_0x5b48[2497]]= function(_0x43b0x2){_0x43b0x2= new mxCell(_0x5b48[110]);_0x43b0x2[_0x5b48[1993]](!0);_0x43b0x2[_0x5b48[1995]](!1);return _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[845]]= function(_0x43b0x2){var _0x43b0x3=[];if(null== _0x43b0x2){_0x43b0x2= this[_0x5b48[897]]();for(var _0x43b0x4=[],_0x43b0x5=0;_0x43b0x5< _0x43b0x2[_0x5b48[67]];_0x43b0x5++){0< this[_0x5b48[251]][_0x5b48[262]](_0x43b0x2[_0x43b0x5])&& _0x43b0x4[_0x5b48[207]](_0x43b0x2[_0x43b0x5])};_0x43b0x2= _0x43b0x4};if(null!= _0x43b0x2&& 0< _0x43b0x2[_0x5b48[67]]){this[_0x5b48[251]][_0x5b48[473]]();try{for(_0x43b0x5= 0;_0x43b0x5< _0x43b0x2[_0x5b48[67]];_0x43b0x5++){var _0x43b0x9=this[_0x5b48[251]][_0x5b48[1953]](_0x43b0x2[_0x43b0x5]);if(null!= _0x43b0x9&& 0< _0x43b0x9[_0x5b48[67]]){var _0x43b0x9=_0x43b0x9[_0x5b48[1853]](),_0x43b0xa=this[_0x5b48[251]][_0x5b48[1197]](_0x43b0x2[_0x43b0x5]),_0x43b0x12=this[_0x5b48[251]][_0x5b48[262]](_0x43b0xa);this[_0x5b48[833]](_0x43b0x9,_0x43b0xa,_0x43b0x12,null,null,!0);_0x43b0x3= _0x43b0x3[_0x5b48[1919]](_0x43b0x9)}};this[_0x5b48[843]](this[_0x5b48[2499]](_0x43b0x2));this[_0x5b48[746]]( new mxEventObject(mxEvent.UNGROUP_CELLS,_0x5b48[895],_0x43b0x2))}finally{this[_0x5b48[251]][_0x5b48[476]]()}};return _0x43b0x3};mxGraph[_0x5b48[202]][_0x5b48[846]]= function(_0x43b0x2){null== _0x43b0x2&& (_0x43b0x2= this[_0x5b48[897]]());this[_0x5b48[251]][_0x5b48[473]]();try{var _0x43b0x3=this[_0x5b48[902]](),_0x43b0x4=this[_0x5b48[251]][_0x5b48[262]](_0x43b0x3);this[_0x5b48[833]](_0x43b0x2,_0x43b0x3,_0x43b0x4,null,null,!0);this[_0x5b48[746]]( new mxEventObject(mxEvent.REMOVE_CELLS_FROM_PARENT,_0x5b48[895],_0x43b0x2))}finally{this[_0x5b48[251]][_0x5b48[476]]()};return _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[1917]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){null== _0x43b0x2&& (_0x43b0x2= this[_0x5b48[897]]());_0x43b0x3= null!= _0x43b0x3?_0x43b0x3:0;_0x43b0x4= null!= _0x43b0x4?_0x43b0x4:!1;this[_0x5b48[251]][_0x5b48[473]]();try{for(var _0x43b0x5=0;_0x43b0x5< _0x43b0x2[_0x5b48[67]];_0x43b0x5++){var _0x43b0x9=this[_0x5b48[1198]](_0x43b0x2[_0x43b0x5]);if(null!= _0x43b0x9){var _0x43b0xa=this[_0x5b48[1955]](_0x43b0x2[_0x43b0x5]);if(null!= _0x43b0xa&& 0< _0x43b0xa[_0x5b48[67]]){var _0x43b0x12=this[_0x5b48[1729]](_0x43b0xa);if(0< _0x43b0x12[_0x5b48[117]]&& 0< _0x43b0x12[_0x5b48[119]]){var _0x43b0x13=this[_0x5b48[1730]](_0x43b0x2[_0x43b0x5])?this[_0x5b48[1731]](_0x43b0x2[_0x43b0x5]): new mxRectangle,_0x43b0x9=_0x43b0x9[_0x5b48[238]]();_0x43b0x4&& (_0x43b0x9[_0x5b48[235]]+= _0x43b0x12[_0x5b48[235]]- _0x43b0x13[_0x5b48[117]]- _0x43b0x3,_0x43b0x9[_0x5b48[236]]+= _0x43b0x12[_0x5b48[236]]- _0x43b0x13[_0x5b48[119]]- _0x43b0x3);_0x43b0x9[_0x5b48[117]]= _0x43b0x12[_0x5b48[117]]+ _0x43b0x13[_0x5b48[117]]+ 2* _0x43b0x3;_0x43b0x9[_0x5b48[119]]= _0x43b0x12[_0x5b48[119]]+ _0x43b0x13[_0x5b48[119]]+ 2* _0x43b0x3;this[_0x5b48[251]][_0x5b48[1724]](_0x43b0x2[_0x43b0x5],_0x43b0x9);this[_0x5b48[834]](_0x43b0xa,-_0x43b0x12[_0x5b48[235]]+ _0x43b0x13[_0x5b48[117]] + _0x43b0x3,-_0x43b0x12[_0x5b48[236]]+ _0x43b0x13[_0x5b48[119]] + _0x43b0x3)}}}}}finally{this[_0x5b48[251]][_0x5b48[476]]()};return _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[899]]= function(_0x43b0x2,_0x43b0x3){_0x43b0x3= null!= _0x43b0x3?_0x43b0x3:!0;var _0x43b0x4=null;if(null!= _0x43b0x2){for(var _0x43b0x5={},_0x43b0x4=[],_0x43b0x9=0;_0x43b0x9< _0x43b0x2[_0x5b48[67]];_0x43b0x9++){var _0x43b0xa=mxCellPath[_0x5b48[385]](_0x43b0x2[_0x43b0x9]);_0x43b0x5[_0x43b0xa]= _0x43b0x2[_0x43b0x9];_0x43b0x4[_0x5b48[207]](_0x43b0x2[_0x43b0x9])};if(0< _0x43b0x4[_0x5b48[67]]){for(var _0x43b0xa=this[_0x5b48[441]][_0x5b48[255]],_0x43b0x12=this[_0x5b48[441]][_0x5b48[513]],_0x43b0x4=this[_0x5b48[251]][_0x5b48[899]](_0x43b0x2,!0),_0x43b0x9=0;_0x43b0x9< _0x43b0x2[_0x5b48[67]];_0x43b0x9++){if(!_0x43b0x3&& this[_0x5b48[251]][_0x5b48[250]](_0x43b0x4[_0x43b0x9]) && null!= this[_0x5b48[2500]](_0x43b0x4[_0x43b0x9],this[_0x5b48[251]][_0x5b48[1709]](_0x43b0x4[_0x43b0x9],!0),this[_0x5b48[251]][_0x5b48[1709]](_0x43b0x4[_0x43b0x9],!1))){_0x43b0x4[_0x43b0x9]= null}else {var _0x43b0x13=this[_0x5b48[251]][_0x5b48[1721]](_0x43b0x4[_0x43b0x9]);if(null!= _0x43b0x13){var _0x43b0x14=this[_0x5b48[441]][_0x5b48[248]](_0x43b0x2[_0x43b0x9]),_0x43b0x15=this[_0x5b48[441]][_0x5b48[248]](this[_0x5b48[251]][_0x5b48[1197]](_0x43b0x2[_0x43b0x9]));if(null!= _0x43b0x14&& null!= _0x43b0x15){var _0x43b0x16=_0x43b0x15[_0x5b48[2078]][_0x5b48[235]],_0x43b0x15=_0x43b0x15[_0x5b48[2078]][_0x5b48[236]];if(this[_0x5b48[251]][_0x5b48[250]](_0x43b0x4[_0x43b0x9])){for(var _0x43b0x14=_0x43b0x14[_0x5b48[439]],_0x43b0x17=this[_0x5b48[251]][_0x5b48[1709]](_0x43b0x2[_0x43b0x9],!0),_0x43b0x18=mxCellPath[_0x5b48[385]](_0x43b0x17);null!= _0x43b0x17&& null== _0x43b0x5[_0x43b0x18];){_0x43b0x17= this[_0x5b48[251]][_0x5b48[1197]](_0x43b0x17),_0x43b0x18= mxCellPath[_0x5b48[385]](_0x43b0x17)};null== _0x43b0x17&& _0x43b0x13[_0x5b48[2007]]( new mxPoint(_0x43b0x14[0][_0x5b48[235]]/ _0x43b0xa- _0x43b0x12[_0x5b48[235]],_0x43b0x14[0][_0x5b48[236]]/ _0x43b0xa- _0x43b0x12[_0x5b48[236]]),!0);_0x43b0x17= this[_0x5b48[251]][_0x5b48[1709]](_0x43b0x2[_0x43b0x9],!1);for(_0x43b0x18= mxCellPath[_0x5b48[385]](_0x43b0x17);null!= _0x43b0x17&& null== _0x43b0x5[_0x43b0x18];){_0x43b0x17= this[_0x5b48[251]][_0x5b48[1197]](_0x43b0x17),_0x43b0x18= mxCellPath[_0x5b48[385]](_0x43b0x17)};null== _0x43b0x17&& (_0x43b0x17= _0x43b0x14[_0x5b48[67]]- 1,_0x43b0x13[_0x5b48[2007]]( new mxPoint(_0x43b0x14[_0x43b0x17][_0x5b48[235]]/ _0x43b0xa- _0x43b0x12[_0x5b48[235]],_0x43b0x14[_0x43b0x17][_0x5b48[236]]/ _0x43b0xa- _0x43b0x12[_0x5b48[236]]),!1));_0x43b0x13= _0x43b0x13[_0x5b48[1525]];if(null!= _0x43b0x13){for(_0x43b0x14= 0;_0x43b0x14< _0x43b0x13[_0x5b48[67]];_0x43b0x14++){_0x43b0x13[_0x43b0x14][_0x5b48[235]]+= _0x43b0x16,_0x43b0x13[_0x43b0x14][_0x5b48[236]]+= _0x43b0x15}}}else {_0x43b0x13[_0x5b48[235]]+= _0x43b0x16,_0x43b0x13[_0x5b48[236]]+= _0x43b0x15}}}}}}else {_0x43b0x4= []}};return _0x43b0x4};mxGraph[_0x5b48[202]][_0x5b48[2501]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa,_0x43b0x12,_0x43b0x13,_0x43b0x14){_0x43b0x3= this[_0x5b48[2502]](_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa,_0x43b0x12,_0x43b0x13,_0x43b0x14);return this[_0x5b48[2103]](_0x43b0x3,_0x43b0x2)};mxGraph[_0x5b48[202]][_0x5b48[2502]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa,_0x43b0x12,_0x43b0x13,_0x43b0x14){_0x43b0x2= new mxGeometry(_0x43b0x5,_0x43b0x9,_0x43b0xa,_0x43b0x12);_0x43b0x2[_0x5b48[1500]]= null!= _0x43b0x14?_0x43b0x14:!1;_0x43b0x4= new mxCell(_0x43b0x4,_0x43b0x2,_0x43b0x13);_0x43b0x4[_0x5b48[1945]](_0x43b0x3);_0x43b0x4[_0x5b48[1993]](!0);_0x43b0x4[_0x5b48[1995]](!0);return _0x43b0x4};mxGraph[_0x5b48[202]][_0x5b48[1960]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa){_0x43b0x3= this[_0x5b48[2503]](_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa);return this[_0x5b48[2504]](_0x43b0x3,_0x43b0x2,_0x43b0x5,_0x43b0x9)};mxGraph[_0x5b48[202]][_0x5b48[2503]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa){_0x43b0x2= new mxCell(_0x43b0x4, new mxGeometry,_0x43b0xa);_0x43b0x2[_0x5b48[1945]](_0x43b0x3);_0x43b0x2[_0x5b48[1994]](!0);_0x43b0x2[_0x5b48[256]][_0x5b48[1500]]= !0;return _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[2504]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){return this[_0x5b48[2103]](_0x43b0x2,_0x43b0x3,_0x43b0x9,_0x43b0x4,_0x43b0x5)};mxGraph[_0x5b48[202]][_0x5b48[2103]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){return this[_0x5b48[832]]([_0x43b0x2],_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9)[0]};mxGraph[_0x5b48[202]][_0x5b48[832]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){null== _0x43b0x3&& (_0x43b0x3= this[_0x5b48[902]]());null== _0x43b0x4&& (_0x43b0x4= this[_0x5b48[251]][_0x5b48[262]](_0x43b0x3));this[_0x5b48[251]][_0x5b48[473]]();try{this[_0x5b48[833]](_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,!1,!0),this[_0x5b48[746]]( new mxEventObject(mxEvent.ADD_CELLS,_0x5b48[895],_0x43b0x2,_0x5b48[1101],_0x43b0x3,_0x5b48[1983],_0x43b0x4,_0x5b48[1097],_0x43b0x5,_0x5b48[772],_0x43b0x9))}finally{this[_0x5b48[251]][_0x5b48[476]]()};return _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[833]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa,_0x43b0x12){if(null!= _0x43b0x2&& null!= _0x43b0x3&& null!= _0x43b0x4){this[_0x5b48[251]][_0x5b48[473]]();try{for(var _0x43b0x13=_0x43b0xa?this[_0x5b48[441]][_0x5b48[248]](_0x43b0x3):null,_0x43b0x14=null!= _0x43b0x13?_0x43b0x13[_0x5b48[2078]]:null,_0x43b0x15= new mxPoint(0,0),_0x43b0x13=0;_0x43b0x13< _0x43b0x2[_0x5b48[67]];_0x43b0x13++){if(null== _0x43b0x2[_0x43b0x13]){_0x43b0x4--}else {var _0x43b0x16=this[_0x5b48[251]][_0x5b48[1197]](_0x43b0x2[_0x43b0x13]);if(null!= _0x43b0x14&& _0x43b0x2[_0x43b0x13]!= _0x43b0x3&& _0x43b0x3!= _0x43b0x16){var _0x43b0x17=this[_0x5b48[441]][_0x5b48[248]](_0x43b0x16),_0x43b0x18=null!= _0x43b0x17?_0x43b0x17[_0x5b48[2078]]:_0x43b0x15,_0x43b0x19=this[_0x5b48[251]][_0x5b48[1721]](_0x43b0x2[_0x43b0x13]);if(null!= _0x43b0x19){var _0x43b0x1a=_0x43b0x18[_0x5b48[235]]- _0x43b0x14[_0x5b48[235]],_0x43b0x1b=_0x43b0x18[_0x5b48[236]]- _0x43b0x14[_0x5b48[236]],_0x43b0x19=_0x43b0x19[_0x5b48[238]]();_0x43b0x19[_0x5b48[513]](_0x43b0x1a,_0x43b0x1b);!_0x43b0x19[_0x5b48[1500]]&& (this[_0x5b48[251]][_0x5b48[1193]](_0x43b0x2[_0x43b0x13])&& !this[_0x5b48[2505]]()) && (_0x43b0x19[_0x5b48[235]]= Math[_0x5b48[160]](0,_0x43b0x19[_0x5b48[235]]),_0x43b0x19[_0x5b48[236]]= Math[_0x5b48[160]](0,_0x43b0x19[_0x5b48[236]]));this[_0x5b48[251]][_0x5b48[1724]](_0x43b0x2[_0x43b0x13],_0x43b0x19)}};_0x43b0x3== _0x43b0x16&& _0x43b0x4+ _0x43b0x13> this[_0x5b48[251]][_0x5b48[262]](_0x43b0x3)&& _0x43b0x4--;this[_0x5b48[251]][_0x5b48[99]](_0x43b0x3,_0x43b0x2[_0x43b0x13],_0x43b0x4+ _0x43b0x13);this[_0x5b48[2506]]()&& this[_0x5b48[2507]](_0x43b0x2[_0x43b0x13])&& this[_0x5b48[2508]](_0x43b0x2[_0x43b0x13]);(null== _0x43b0x12|| _0x43b0x12)&& this[_0x5b48[2509]](_0x43b0x2[_0x43b0x13]);null!= _0x43b0x5&& this[_0x5b48[852]](_0x43b0x2[_0x43b0x13],_0x43b0x5,!0);null!= _0x43b0x9&& this[_0x5b48[852]](_0x43b0x2[_0x43b0x13],_0x43b0x9,!1)}};this[_0x5b48[746]]( new mxEventObject(mxEvent.CELLS_ADDED,_0x5b48[895],_0x43b0x2,_0x5b48[1101],_0x43b0x3,_0x5b48[1983],_0x43b0x4,_0x5b48[1097],_0x43b0x5,_0x5b48[772],_0x43b0x9,_0x5b48[492],_0x43b0xa))}finally{this[_0x5b48[251]][_0x5b48[476]]()}}};mxGraph[_0x5b48[202]][_0x5b48[842]]= function(_0x43b0x2,_0x43b0x3){_0x43b0x3= null!= _0x43b0x3?_0x43b0x3:!0;null== _0x43b0x2&& (_0x43b0x2= this[_0x5b48[2510]](this[_0x5b48[897]]()));_0x43b0x3&& (_0x43b0x2= this[_0x5b48[2510]](this[_0x5b48[2499]](_0x43b0x2)));this[_0x5b48[251]][_0x5b48[473]]();try{this[_0x5b48[843]](_0x43b0x2),this[_0x5b48[746]]( new mxEventObject(mxEvent.REMOVE_CELLS,_0x5b48[895],_0x43b0x2,_0x5b48[2511],_0x43b0x3))}finally{this[_0x5b48[251]][_0x5b48[476]]()};return _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[843]]= function(_0x43b0x2){if(null!= _0x43b0x2&& 0< _0x43b0x2[_0x5b48[67]]){var _0x43b0x3=this[_0x5b48[441]][_0x5b48[255]],_0x43b0x4=this[_0x5b48[441]][_0x5b48[513]];this[_0x5b48[251]][_0x5b48[473]]();try{for(var _0x43b0x5={},_0x43b0x9=0;_0x43b0x9< _0x43b0x2[_0x5b48[67]];_0x43b0x9++){var _0x43b0xa=mxCellPath[_0x5b48[385]](_0x43b0x2[_0x43b0x9]);_0x43b0x5[_0x43b0xa]= _0x43b0x2[_0x43b0x9]};for(_0x43b0x9= 0;_0x43b0x9< _0x43b0x2[_0x5b48[67]];_0x43b0x9++){for(var _0x43b0x12=this[_0x5b48[1756]](_0x43b0x2[_0x43b0x9]),_0x43b0x13=0;_0x43b0x13< _0x43b0x12[_0x5b48[67]];_0x43b0x13++){if(_0x43b0xa= mxCellPath[_0x5b48[385]](_0x43b0x12[_0x43b0x13]),null== _0x43b0x5[_0x43b0xa]){var _0x43b0x14=this[_0x5b48[251]][_0x5b48[1721]](_0x43b0x12[_0x43b0x13]);if(null!= _0x43b0x14){var _0x43b0x15=this[_0x5b48[441]][_0x5b48[248]](_0x43b0x12[_0x43b0x13]);if(null!= _0x43b0x15){var _0x43b0x14=_0x43b0x14[_0x5b48[238]](),_0x43b0x16=_0x43b0x15[_0x5b48[1710]](!0) == _0x43b0x2[_0x43b0x9],_0x43b0x17=_0x43b0x15[_0x5b48[439]],_0x43b0x18=_0x43b0x16?0:_0x43b0x17[_0x5b48[67]]- 1;_0x43b0x14[_0x5b48[2007]]( new mxPoint(_0x43b0x17[_0x43b0x18][_0x5b48[235]]/ _0x43b0x3- _0x43b0x4[_0x5b48[235]],_0x43b0x17[_0x43b0x18][_0x5b48[236]]/ _0x43b0x3- _0x43b0x4[_0x5b48[236]]),_0x43b0x16);this[_0x5b48[251]][_0x5b48[1957]](_0x43b0x12[_0x43b0x13],null,_0x43b0x16);this[_0x5b48[251]][_0x5b48[1724]](_0x43b0x12[_0x43b0x13],_0x43b0x14)}}}};this[_0x5b48[251]][_0x5b48[205]](_0x43b0x2[_0x43b0x9])};this[_0x5b48[746]]( new mxEventObject(mxEvent.CELLS_REMOVED,_0x5b48[895],_0x43b0x2))}finally{this[_0x5b48[251]][_0x5b48[476]]()}}};mxGraph[_0x5b48[202]][_0x5b48[853]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){_0x43b0x5= _0x43b0x5|| 0;_0x43b0x9= _0x43b0x9|| 0;null== _0x43b0x4&& (_0x43b0x4= this[_0x5b48[899]]([_0x43b0x2])[0]);var _0x43b0xa=this[_0x5b48[251]][_0x5b48[1197]](_0x43b0x2),_0x43b0x12=this[_0x5b48[251]][_0x5b48[1709]](_0x43b0x2,!0);this[_0x5b48[251]][_0x5b48[473]]();try{this[_0x5b48[835]](_0x43b0x3,_0x43b0x5,_0x43b0x9,!1,!1),this[_0x5b48[833]](_0x43b0x3,_0x43b0xa,this[_0x5b48[251]][_0x5b48[262]](_0x43b0xa),null,null,!0),this[_0x5b48[833]]([_0x43b0x4],_0x43b0xa,this[_0x5b48[251]][_0x5b48[262]](_0x43b0xa),_0x43b0x12,_0x43b0x3[0],!1),this[_0x5b48[852]](_0x43b0x2,_0x43b0x3[0],!0),this[_0x5b48[746]]( new mxEventObject(mxEvent.SPLIT_EDGE,_0x5b48[1989],_0x43b0x2,_0x5b48[895],_0x43b0x3,_0x5b48[2512],_0x43b0x4,_0x5b48[1126],_0x43b0x5,_0x5b48[1125],_0x43b0x9))}finally{this[_0x5b48[251]][_0x5b48[476]]()};return _0x43b0x4};mxGraph[_0x5b48[202]][_0x5b48[838]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){null== _0x43b0x3&& (_0x43b0x3= this[_0x5b48[897]]());_0x43b0x4&& (_0x43b0x3= this[_0x5b48[2499]](_0x43b0x3));this[_0x5b48[251]][_0x5b48[473]]();try{this[_0x5b48[839]](_0x43b0x3,_0x43b0x2),this[_0x5b48[746]]( new mxEventObject(mxEvent.TOGGLE_CELLS,_0x5b48[539],_0x43b0x2,_0x5b48[895],_0x43b0x3,_0x5b48[2511],_0x43b0x4))}finally{this[_0x5b48[251]][_0x5b48[476]]()};return _0x43b0x3};mxGraph[_0x5b48[202]][_0x5b48[839]]= function(_0x43b0x2,_0x43b0x3){if(null!= _0x43b0x2&& 0< _0x43b0x2[_0x5b48[67]]){this[_0x5b48[251]][_0x5b48[473]]();try{for(var _0x43b0x4=0;_0x43b0x4< _0x43b0x2[_0x5b48[67]];_0x43b0x4++){this[_0x5b48[251]][_0x5b48[175]](_0x43b0x2[_0x43b0x4],_0x43b0x3)}}finally{this[_0x5b48[251]][_0x5b48[476]]()}}};mxGraph[_0x5b48[202]][_0x5b48[847]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){_0x43b0x3= null!= _0x43b0x3?_0x43b0x3:!1;null== _0x43b0x4&& (_0x43b0x4= this[_0x5b48[2513]](this[_0x5b48[897]](),_0x43b0x2));this[_0x5b48[2126]](!1);this[_0x5b48[251]][_0x5b48[473]]();try{this[_0x5b48[848]](_0x43b0x4,_0x43b0x2,_0x43b0x3,_0x43b0x5),this[_0x5b48[746]]( new mxEventObject(mxEvent.FOLD_CELLS,_0x5b48[2514],_0x43b0x2,_0x5b48[2515],_0x43b0x3,_0x5b48[895],_0x43b0x4))}finally{this[_0x5b48[251]][_0x5b48[476]]()};return _0x43b0x4};mxGraph[_0x5b48[202]][_0x5b48[848]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){if(null!= _0x43b0x2&& 0< _0x43b0x2[_0x5b48[67]]){this[_0x5b48[251]][_0x5b48[473]]();try{for(var _0x43b0x9=0;_0x43b0x9< _0x43b0x2[_0x5b48[67]];_0x43b0x9++){if((!_0x43b0x5|| this[_0x5b48[2516]](_0x43b0x2[_0x43b0x9],_0x43b0x3)) && _0x43b0x3!= this[_0x5b48[1742]](_0x43b0x2[_0x43b0x9])){if(this[_0x5b48[251]][_0x5b48[1972]](_0x43b0x2[_0x43b0x9],_0x43b0x3),this[_0x5b48[2517]](_0x43b0x2[_0x43b0x9],_0x43b0x3),this[_0x5b48[2507]](_0x43b0x2[_0x43b0x9])&& this[_0x5b48[2508]](_0x43b0x2[_0x43b0x9]),_0x43b0x4){var _0x43b0xa=this[_0x5b48[251]][_0x5b48[1953]](_0x43b0x2[_0x43b0x9]);this[_0x5b48[847]](_0x43b0xa,_0x43b0x3,_0x43b0x4)}}};this[_0x5b48[746]]( new mxEventObject(mxEvent.CELLS_FOLDED,_0x5b48[895],_0x43b0x2,_0x5b48[2514],_0x43b0x3,_0x5b48[2515],_0x43b0x4))}finally{this[_0x5b48[251]][_0x5b48[476]]()}}};mxGraph[_0x5b48[202]][_0x5b48[2517]]= function(_0x43b0x2,_0x43b0x3){if(null!= _0x43b0x2){var _0x43b0x4=this[_0x5b48[251]][_0x5b48[1721]](_0x43b0x2);null!= _0x43b0x4&& (_0x43b0x4= _0x43b0x4[_0x5b48[238]](),this[_0x5b48[2518]](_0x43b0x2,_0x43b0x4,_0x43b0x3),_0x43b0x4[_0x5b48[2005]](),this[_0x5b48[251]][_0x5b48[1724]](_0x43b0x2,_0x43b0x4))}};mxGraph[_0x5b48[202]][_0x5b48[2518]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){if(null!= _0x43b0x2&& null!= _0x43b0x3){_0x43b0x4= this[_0x5b48[441]][_0x5b48[248]](_0x43b0x2);_0x43b0x4= null!= _0x43b0x4?_0x43b0x4[_0x5b48[124]]:this[_0x5b48[1705]](_0x43b0x2);if(null== _0x43b0x3[_0x5b48[2002]]){var _0x43b0x5=_0x43b0x3;this[_0x5b48[2394]]&& (_0x43b0x2= this[_0x5b48[2519]](_0x43b0x2),null!= _0x43b0x2&& (_0x43b0x5= _0x43b0x2,_0x43b0x2= mxUtils[_0x5b48[433]](_0x43b0x4,mxConstants.STYLE_STARTSIZE),0< _0x43b0x2&& (_0x43b0x5[_0x5b48[119]]= Math[_0x5b48[160]](_0x43b0x5[_0x5b48[119]],_0x43b0x2))));_0x43b0x3[_0x5b48[2002]]= new mxRectangle(0,0,_0x43b0x5[_0x5b48[117]],_0x43b0x5[_0x5b48[119]])};if(null!= _0x43b0x3[_0x5b48[2002]]){_0x43b0x3[_0x5b48[2002]][_0x5b48[235]]= _0x43b0x3[_0x5b48[235]];_0x43b0x3[_0x5b48[2002]][_0x5b48[236]]= _0x43b0x3[_0x5b48[236]];var _0x43b0x9=mxUtils[_0x5b48[431]](_0x43b0x4[mxConstants[_0x5b48[2278]]]|| _0x5b48[468]);0!= _0x43b0x9&& (_0x43b0x2= _0x43b0x3[_0x5b48[2002]][_0x5b48[241]]()- _0x43b0x3[_0x5b48[241]](),_0x43b0x4= _0x43b0x3[_0x5b48[2002]][_0x5b48[242]]()- _0x43b0x3[_0x5b48[242]](),_0x43b0x5= Math[_0x5b48[426]](_0x43b0x9),_0x43b0x9= Math[_0x5b48[427]](_0x43b0x9),_0x43b0x3[_0x5b48[2002]][_0x5b48[235]]+= _0x43b0x5* _0x43b0x2- _0x43b0x9* _0x43b0x4- _0x43b0x2,_0x43b0x3[_0x5b48[2002]][_0x5b48[236]]+= _0x43b0x9* _0x43b0x2+ _0x43b0x5* _0x43b0x4- _0x43b0x4)}}};mxGraph[_0x5b48[202]][_0x5b48[2499]]= function(_0x43b0x2){var _0x43b0x3=_0x43b0x2[_0x5b48[1853]]();return _0x43b0x3= _0x43b0x3[_0x5b48[1919]](this[_0x5b48[2520]](_0x43b0x2))};mxGraph[_0x5b48[202]][_0x5b48[2520]]= function(_0x43b0x2){var _0x43b0x3=[];if(null!= _0x43b0x2){for(var _0x43b0x4=0;_0x43b0x4< _0x43b0x2[_0x5b48[67]];_0x43b0x4++){for(var _0x43b0x5=this[_0x5b48[251]][_0x5b48[1707]](_0x43b0x2[_0x43b0x4]),_0x43b0x9=0;_0x43b0x9< _0x43b0x5;_0x43b0x9++){_0x43b0x3[_0x5b48[207]](this[_0x5b48[251]][_0x5b48[1708]](_0x43b0x2[_0x43b0x4],_0x43b0x9))};_0x43b0x5= this[_0x5b48[251]][_0x5b48[1953]](_0x43b0x2[_0x43b0x4]);_0x43b0x3= _0x43b0x3[_0x5b48[1919]](this[_0x5b48[2520]](_0x43b0x5))}};return _0x43b0x3};mxGraph[_0x5b48[202]][_0x5b48[858]]= function(_0x43b0x2,_0x43b0x3){_0x43b0x3= null!= _0x43b0x3?_0x43b0x3:!1;this[_0x5b48[251]][_0x5b48[473]]();try{this[_0x5b48[2457]](_0x43b0x2,_0x43b0x3),this[_0x5b48[746]]( new mxEventObject(mxEvent.UPDATE_CELL_SIZE,_0x5b48[246],_0x43b0x2,_0x5b48[2521],_0x43b0x3))}finally{this[_0x5b48[251]][_0x5b48[476]]()};return _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[2457]]= function(_0x43b0x2,_0x43b0x3){if(null!= _0x43b0x2){this[_0x5b48[251]][_0x5b48[473]]();try{var _0x43b0x4=this[_0x5b48[2519]](_0x43b0x2),_0x43b0x5=this[_0x5b48[251]][_0x5b48[1721]](_0x43b0x2);if(null!= _0x43b0x4&& null!= _0x43b0x5){var _0x43b0x9=this[_0x5b48[1742]](_0x43b0x2),_0x43b0x5=_0x43b0x5[_0x5b48[238]]();if(this[_0x5b48[1730]](_0x43b0x2)){var _0x43b0xa=this[_0x5b48[441]][_0x5b48[248]](_0x43b0x2),_0x43b0x12=null!= _0x43b0xa?_0x43b0xa[_0x5b48[124]]:this[_0x5b48[1705]](_0x43b0x2),_0x43b0x13=this[_0x5b48[251]][_0x5b48[474]](_0x43b0x2);null== _0x43b0x13&& (_0x43b0x13= _0x5b48[110]);mxUtils[_0x5b48[433]](_0x43b0x12,mxConstants.STYLE_HORIZONTAL,!0)?(_0x43b0x13= mxUtils[_0x5b48[475]](_0x43b0x13,mxConstants.STYLE_STARTSIZE,_0x43b0x4[_0x5b48[119]]+ 8),_0x43b0x9&& (_0x43b0x5[_0x5b48[119]]= _0x43b0x4[_0x5b48[119]]+ 8),_0x43b0x5[_0x5b48[117]]= _0x43b0x4[_0x5b48[117]]):(_0x43b0x13= mxUtils[_0x5b48[475]](_0x43b0x13,mxConstants.STYLE_STARTSIZE,_0x43b0x4[_0x5b48[117]]+ 8),_0x43b0x9&& (_0x43b0x5[_0x5b48[117]]= _0x43b0x4[_0x5b48[117]]+ 8),_0x43b0x5[_0x5b48[119]]= _0x43b0x4[_0x5b48[119]]);this[_0x5b48[251]][_0x5b48[475]](_0x43b0x2,_0x43b0x13)}else {_0x43b0x5[_0x5b48[117]]= _0x43b0x4[_0x5b48[117]],_0x43b0x5[_0x5b48[119]]= _0x43b0x4[_0x5b48[119]]};if(!_0x43b0x3&& !_0x43b0x9){var _0x43b0x14=this[_0x5b48[441]][_0x5b48[1799]](this[_0x5b48[251]][_0x5b48[1953]](_0x43b0x2));if(null!= _0x43b0x14){var _0x43b0x15=this[_0x5b48[441]][_0x5b48[513]],_0x43b0x16=this[_0x5b48[441]][_0x5b48[255]],_0x43b0x17=(_0x43b0x14[_0x5b48[236]]+ _0x43b0x14[_0x5b48[119]])/ _0x43b0x16- _0x43b0x5[_0x5b48[236]]- _0x43b0x15[_0x5b48[236]];_0x43b0x5[_0x5b48[117]]= Math[_0x5b48[160]](_0x43b0x5[_0x5b48[117]],(_0x43b0x14[_0x5b48[235]]+ _0x43b0x14[_0x5b48[117]])/ _0x43b0x16- _0x43b0x5[_0x5b48[235]]- _0x43b0x15[_0x5b48[235]]);_0x43b0x5[_0x5b48[119]]= Math[_0x5b48[160]](_0x43b0x5[_0x5b48[119]],_0x43b0x17)}};this[_0x5b48[837]]([_0x43b0x2],[_0x43b0x5])}}finally{this[_0x5b48[251]][_0x5b48[476]]()}}};mxGraph[_0x5b48[202]][_0x5b48[2519]]= function(_0x43b0x2){var _0x43b0x3=null;if(null!= _0x43b0x2){var _0x43b0x4=this[_0x5b48[441]][_0x5b48[248]](_0x43b0x2),_0x43b0x5=null!= _0x43b0x4?_0x43b0x4[_0x5b48[124]]:this[_0x5b48[1705]](_0x43b0x2);if(null!= _0x43b0x5&& !this[_0x5b48[251]][_0x5b48[250]](_0x43b0x2)){var _0x43b0x9=_0x43b0x5[mxConstants[_0x5b48[2185]]]|| mxConstants[_0x5b48[483]],_0x43b0xa=0,_0x43b0x3=0;if((null!= this[_0x5b48[1202]](_0x43b0x4)|| null!= _0x43b0x5[mxConstants[_0x5b48[2484]]])&& _0x43b0x5[mxConstants[_0x5b48[2059]]]== mxConstants[_0x5b48[2522]]){_0x43b0x5[mxConstants[_0x5b48[2063]]]== mxConstants[_0x5b48[481]]&& (_0x43b0xa+= parseFloat(_0x43b0x5[mxConstants[_0x5b48[2523]]])|| mxLabel[_0x5b48[202]][_0x5b48[1680]]),_0x43b0x5[mxConstants[_0x5b48[2064]]]!= mxConstants[_0x5b48[479]]&& (_0x43b0x3+= parseFloat(_0x43b0x5[mxConstants[_0x5b48[2524]]])|| mxLabel[_0x5b48[202]][_0x5b48[1680]])};_0x43b0xa+= 2* (_0x43b0x5[mxConstants[_0x5b48[2143]]]|| 0);_0x43b0xa+= _0x43b0x5[mxConstants[_0x5b48[2147]]]|| 0;_0x43b0xa+= _0x43b0x5[mxConstants[_0x5b48[2145]]]|| 0;_0x43b0x3+= 2* (_0x43b0x5[mxConstants[_0x5b48[2143]]]|| 0);_0x43b0x3+= _0x43b0x5[mxConstants[_0x5b48[2144]]]|| 0;_0x43b0x3+= _0x43b0x5[mxConstants[_0x5b48[2146]]]|| 0;_0x43b0x4= this[_0x5b48[2205]](_0x43b0x4);null!= _0x43b0x4&& (_0x43b0xa+= _0x43b0x4[_0x5b48[117]]+ 8);_0x43b0x4= this[_0x5b48[2183]](_0x43b0x2);null!= _0x43b0x4&& 0< _0x43b0x4[_0x5b48[67]]?(this[_0x5b48[2186]](_0x43b0x2)|| (_0x43b0x4= _0x43b0x4[_0x5b48[230]](/\n/g,_0x5b48[545])),_0x43b0x9= mxUtils[_0x5b48[2525]](_0x43b0x4,_0x43b0x9,_0x43b0x5[mxConstants[_0x5b48[2188]]]),_0x43b0x2= _0x43b0x9[_0x5b48[117]]+ _0x43b0xa,_0x43b0x3= _0x43b0x9[_0x5b48[119]]+ _0x43b0x3,mxUtils[_0x5b48[433]](_0x43b0x5,mxConstants.STYLE_HORIZONTAL,!0)|| (_0x43b0x5= _0x43b0x3,_0x43b0x3= _0x43b0x2,_0x43b0x2= _0x43b0x5),this[_0x5b48[991]]&& (_0x43b0x2= this[_0x5b48[1021]](_0x43b0x2+ this[_0x5b48[1020]]/ 2),_0x43b0x3= this[_0x5b48[1021]](_0x43b0x3+ this[_0x5b48[1020]]/ 2)),_0x43b0x3= new mxRectangle(0,0,_0x43b0x2,_0x43b0x3)):(_0x43b0x5= 4* this[_0x5b48[1020]],_0x43b0x3= new mxRectangle(0,0,_0x43b0x5,_0x43b0x5))}};return _0x43b0x3};mxGraph[_0x5b48[202]][_0x5b48[2216]]= function(_0x43b0x2,_0x43b0x3){if(0.2< Math[_0x5b48[425]](1- _0x43b0x3[_0x5b48[255]])){var _0x43b0x4=this[_0x5b48[441]][_0x5b48[255]],_0x43b0x5=this[_0x5b48[441]][_0x5b48[513]],_0x43b0x9=_0x43b0x2[_0x5b48[117]]* _0x43b0x3[_0x5b48[255]],_0x43b0xa=_0x43b0x2[_0x5b48[119]]* _0x43b0x3[_0x5b48[255]],_0x43b0x12=_0x43b0x2[_0x5b48[236]]- (_0x43b0xa- _0x43b0x2[_0x5b48[119]])/ 2,_0x43b0x4= new mxRectangle(this[_0x5b48[1021]]((_0x43b0x2[_0x5b48[235]]- (_0x43b0x9- _0x43b0x2[_0x5b48[117]])/ 2)/ _0x43b0x4)- _0x43b0x5[_0x5b48[235]],this[_0x5b48[1021]](_0x43b0x12/ _0x43b0x4)- _0x43b0x5[_0x5b48[236]],this[_0x5b48[1021]](_0x43b0x9/ _0x43b0x4),this[_0x5b48[1021]](_0x43b0xa/ _0x43b0x4));this[_0x5b48[2526]](_0x43b0x2[_0x5b48[246]],_0x43b0x4)}};mxGraph[_0x5b48[202]][_0x5b48[2526]]= function(_0x43b0x2,_0x43b0x3){return this[_0x5b48[836]]([_0x43b0x2],[_0x43b0x3])[0]};mxGraph[_0x5b48[202]][_0x5b48[836]]= function(_0x43b0x2,_0x43b0x3){this[_0x5b48[251]][_0x5b48[473]]();try{this[_0x5b48[837]](_0x43b0x2,_0x43b0x3),this[_0x5b48[746]]( new mxEventObject(mxEvent.RESIZE_CELLS,_0x5b48[895],_0x43b0x2,_0x5b48[1562],_0x43b0x3))}finally{this[_0x5b48[251]][_0x5b48[476]]()};return _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[837]]= function(_0x43b0x2,_0x43b0x3){if(null!= _0x43b0x2&& null!= _0x43b0x3&& _0x43b0x2[_0x5b48[67]]== _0x43b0x3[_0x5b48[67]]){this[_0x5b48[251]][_0x5b48[473]]();try{for(var _0x43b0x4=0;_0x43b0x4< _0x43b0x2[_0x5b48[67]];_0x43b0x4++){var _0x43b0x5=_0x43b0x3[_0x43b0x4],_0x43b0x9=this[_0x5b48[251]][_0x5b48[1721]](_0x43b0x2[_0x43b0x4]);if(null!= _0x43b0x9&& (_0x43b0x9[_0x5b48[235]]!= _0x43b0x5[_0x5b48[235]]|| _0x43b0x9[_0x5b48[236]]!= _0x43b0x5[_0x5b48[236]]|| _0x43b0x9[_0x5b48[117]]!= _0x43b0x5[_0x5b48[117]]|| _0x43b0x9[_0x5b48[119]]!= _0x43b0x5[_0x5b48[119]])){_0x43b0x9= _0x43b0x9[_0x5b48[238]]();if(_0x43b0x9[_0x5b48[1500]]){var _0x43b0xa=_0x43b0x9[_0x5b48[1368]];null!= _0x43b0xa&& (_0x43b0xa[_0x5b48[235]]+= _0x43b0x5[_0x5b48[235]]- _0x43b0x9[_0x5b48[235]],_0x43b0xa[_0x5b48[236]]+= _0x43b0x5[_0x5b48[236]]- _0x43b0x9[_0x5b48[236]])}else {_0x43b0x9[_0x5b48[235]]= _0x43b0x5[_0x5b48[235]],_0x43b0x9[_0x5b48[236]]= _0x43b0x5[_0x5b48[236]]};_0x43b0x9[_0x5b48[117]]= _0x43b0x5[_0x5b48[117]];_0x43b0x9[_0x5b48[119]]= _0x43b0x5[_0x5b48[119]];!_0x43b0x9[_0x5b48[1500]]&& (this[_0x5b48[251]][_0x5b48[1193]](_0x43b0x2[_0x43b0x4])&& !this[_0x5b48[2505]]()) && (_0x43b0x9[_0x5b48[235]]= Math[_0x5b48[160]](0,_0x43b0x9[_0x5b48[235]]),_0x43b0x9[_0x5b48[236]]= Math[_0x5b48[160]](0,_0x43b0x9[_0x5b48[236]]));this[_0x5b48[251]][_0x5b48[1724]](_0x43b0x2[_0x43b0x4],_0x43b0x9);this[_0x5b48[2507]](_0x43b0x2[_0x43b0x4])&& this[_0x5b48[2508]](_0x43b0x2[_0x43b0x4])}};this[_0x5b48[2399]]&& this[_0x5b48[1750]](_0x43b0x2);this[_0x5b48[746]]( new mxEventObject(mxEvent.CELLS_RESIZED,_0x5b48[895],_0x43b0x2,_0x5b48[1562],_0x43b0x3))}finally{this[_0x5b48[251]][_0x5b48[476]]()}}};mxGraph[_0x5b48[202]][_0x5b48[2508]]= function(_0x43b0x2){if(null!= _0x43b0x2){var _0x43b0x3=this[_0x5b48[251]][_0x5b48[1197]](_0x43b0x2),_0x43b0x4=this[_0x5b48[251]][_0x5b48[1721]](_0x43b0x3);if(null!= _0x43b0x3&& (null!= _0x43b0x4&& !this[_0x5b48[1742]](_0x43b0x3))&& (_0x43b0x2= this[_0x5b48[251]][_0x5b48[1721]](_0x43b0x2),null!= _0x43b0x2&& (_0x43b0x4[_0x5b48[117]]< _0x43b0x2[_0x5b48[235]]+ _0x43b0x2[_0x5b48[117]]|| _0x43b0x4[_0x5b48[119]]< _0x43b0x2[_0x5b48[236]]+ _0x43b0x2[_0x5b48[119]]))){_0x43b0x4= _0x43b0x4[_0x5b48[238]](),_0x43b0x4[_0x5b48[117]]= Math[_0x5b48[160]](_0x43b0x4[_0x5b48[117]],_0x43b0x2[_0x5b48[235]]+ _0x43b0x2[_0x5b48[117]]),_0x43b0x4[_0x5b48[119]]= Math[_0x5b48[160]](_0x43b0x4[_0x5b48[119]],_0x43b0x2[_0x5b48[236]]+ _0x43b0x2[_0x5b48[119]]),this[_0x5b48[837]]([_0x43b0x3],[_0x43b0x4])}}};mxGraph[_0x5b48[202]][_0x5b48[903]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){return this[_0x5b48[834]](_0x43b0x2,_0x43b0x3,_0x43b0x4,!0,_0x43b0x5,_0x43b0x9)};mxGraph[_0x5b48[202]][_0x5b48[834]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa){_0x43b0x3= null!= _0x43b0x3?_0x43b0x3:0;_0x43b0x4= null!= _0x43b0x4?_0x43b0x4:0;_0x43b0x5= null!= _0x43b0x5?_0x43b0x5:!1;if(null!= _0x43b0x2&& (0!= _0x43b0x3|| 0!= _0x43b0x4|| _0x43b0x5|| null!= _0x43b0x9)){this[_0x5b48[251]][_0x5b48[473]]();try{_0x43b0x5&& (_0x43b0x2= this[_0x5b48[899]](_0x43b0x2,this[_0x5b48[2527]]()),null== _0x43b0x9&& (_0x43b0x9= this[_0x5b48[902]]()));var _0x43b0x12=this[_0x5b48[2505]]();null!= _0x43b0x9&& this[_0x5b48[2528]](!0);this[_0x5b48[835]](_0x43b0x2,_0x43b0x3,_0x43b0x4,!_0x43b0x5&& this[_0x5b48[2529]]() && this[_0x5b48[2530]](),null== _0x43b0x9);this[_0x5b48[2528]](_0x43b0x12);if(null!= _0x43b0x9){var _0x43b0x13=this[_0x5b48[251]][_0x5b48[262]](_0x43b0x9);this[_0x5b48[833]](_0x43b0x2,_0x43b0x9,_0x43b0x13,null,null,!0)};this[_0x5b48[746]]( new mxEventObject(mxEvent.MOVE_CELLS,_0x5b48[895],_0x43b0x2,_0x5b48[1126],_0x43b0x3,_0x5b48[1125],_0x43b0x4,_0x5b48[238],_0x43b0x5,_0x5b48[772],_0x43b0x9,_0x5b48[763],_0x43b0xa))}finally{this[_0x5b48[251]][_0x5b48[476]]()}};return _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[835]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){if(null!= _0x43b0x2&& (0!= _0x43b0x3|| 0!= _0x43b0x4)){this[_0x5b48[251]][_0x5b48[473]]();try{_0x43b0x5&& this[_0x5b48[2531]](_0x43b0x2);for(var _0x43b0xa=0;_0x43b0xa< _0x43b0x2[_0x5b48[67]];_0x43b0xa++){this[_0x5b48[2532]](_0x43b0x2[_0x43b0xa],_0x43b0x3,_0x43b0x4),_0x43b0x9&& this[_0x5b48[2509]](_0x43b0x2[_0x43b0xa])};this[_0x5b48[2400]]&& this[_0x5b48[1750]](_0x43b0x2);this[_0x5b48[746]]( new mxEventObject(mxEvent.CELLS_MOVED,_0x5b48[895],_0x43b0x2,_0x5b48[1126],_0x43b0x4,_0x5b48[1125],_0x43b0x4,_0x5b48[808],_0x43b0x5))}finally{this[_0x5b48[251]][_0x5b48[476]]()}}};mxGraph[_0x5b48[202]][_0x5b48[2532]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){var _0x43b0x5=this[_0x5b48[251]][_0x5b48[1721]](_0x43b0x2);null!= _0x43b0x5&& (_0x43b0x5= _0x43b0x5[_0x5b48[238]](),_0x43b0x5[_0x5b48[513]](_0x43b0x3,_0x43b0x4),!_0x43b0x5[_0x5b48[1500]]&& (this[_0x5b48[251]][_0x5b48[1193]](_0x43b0x2)&& !this[_0x5b48[2505]]()) && (_0x43b0x5[_0x5b48[235]]= Math[_0x5b48[160]](0,_0x43b0x5[_0x5b48[235]]),_0x43b0x5[_0x5b48[236]]= Math[_0x5b48[160]](0,_0x43b0x5[_0x5b48[236]])),_0x43b0x5[_0x5b48[1500]]&& !this[_0x5b48[251]][_0x5b48[250]](_0x43b0x2)&& (null== _0x43b0x5[_0x5b48[1368]]?_0x43b0x5[_0x5b48[1368]]= new mxPoint(_0x43b0x3,_0x43b0x4):(_0x43b0x5[_0x5b48[1368]][_0x5b48[235]]+= _0x43b0x3,_0x43b0x5[_0x5b48[1368]][_0x5b48[236]]+= _0x43b0x4)),this[_0x5b48[251]][_0x5b48[1724]](_0x43b0x2,_0x43b0x5))};mxGraph[_0x5b48[202]][_0x5b48[2533]]= function(_0x43b0x2){if(null!= _0x43b0x2&& !this[_0x5b48[251]][_0x5b48[250]](_0x43b0x2)){var _0x43b0x3=this[_0x5b48[251]][_0x5b48[1197]](_0x43b0x2);if(_0x43b0x3== this[_0x5b48[902]]()|| _0x43b0x3== this[_0x5b48[2534]]()){return this[_0x5b48[2535]]()};if(null!= _0x43b0x3&& _0x43b0x3!= this[_0x5b48[902]]()){var _0x43b0x4=this[_0x5b48[251]][_0x5b48[1721]](_0x43b0x3);if(null!= _0x43b0x4){var _0x43b0x5=_0x43b0x2= 0,_0x43b0x9=_0x43b0x4[_0x5b48[117]],_0x43b0x4=_0x43b0x4[_0x5b48[119]];this[_0x5b48[1730]](_0x43b0x3)&& (_0x43b0x3= this[_0x5b48[1731]](_0x43b0x3),_0x43b0x2= _0x43b0x3[_0x5b48[117]],_0x43b0x9-= _0x43b0x3[_0x5b48[117]],_0x43b0x5= _0x43b0x3[_0x5b48[119]],_0x43b0x4-= _0x43b0x3[_0x5b48[119]]);return new mxRectangle(_0x43b0x2,_0x43b0x5,_0x43b0x9,_0x43b0x4)}}};return null};mxGraph[_0x5b48[202]][_0x5b48[2535]]= function(){return this[_0x5b48[2385]]};mxGraph[_0x5b48[202]][_0x5b48[2509]]= function(_0x43b0x2){if(null!= _0x43b0x2){var _0x43b0x3=this[_0x5b48[251]][_0x5b48[1721]](_0x43b0x2),_0x43b0x4=this[_0x5b48[2536]](_0x43b0x2)?this[_0x5b48[2533]](_0x43b0x2):this[_0x5b48[2535]]();if(null!= _0x43b0x3&& null!= _0x43b0x4&& !_0x43b0x3[_0x5b48[1500]]&& (_0x43b0x3[_0x5b48[235]]< _0x43b0x4[_0x5b48[235]]|| _0x43b0x3[_0x5b48[236]]< _0x43b0x4[_0x5b48[236]]|| _0x43b0x4[_0x5b48[117]]< _0x43b0x3[_0x5b48[235]]+ _0x43b0x3[_0x5b48[117]]|| _0x43b0x4[_0x5b48[119]]< _0x43b0x3[_0x5b48[236]]+ _0x43b0x3[_0x5b48[119]])){_0x43b0x2= this[_0x5b48[2537]](_0x43b0x2),0< _0x43b0x4[_0x5b48[117]]&& (_0x43b0x3[_0x5b48[235]]= Math[_0x5b48[243]](_0x43b0x3[_0x5b48[235]],_0x43b0x4[_0x5b48[235]]+ _0x43b0x4[_0x5b48[117]]- (1- _0x43b0x2)* _0x43b0x3[_0x5b48[117]])),0< _0x43b0x4[_0x5b48[119]]&& (_0x43b0x3[_0x5b48[236]]= Math[_0x5b48[243]](_0x43b0x3[_0x5b48[236]],_0x43b0x4[_0x5b48[236]]+ _0x43b0x4[_0x5b48[119]]- (1- _0x43b0x2)* _0x43b0x3[_0x5b48[119]])),_0x43b0x3[_0x5b48[235]]= Math[_0x5b48[160]](_0x43b0x3[_0x5b48[235]],_0x43b0x4[_0x5b48[235]]- _0x43b0x3[_0x5b48[117]]* _0x43b0x2),_0x43b0x3[_0x5b48[236]]= Math[_0x5b48[160]](_0x43b0x3[_0x5b48[236]],_0x43b0x4[_0x5b48[236]]- _0x43b0x3[_0x5b48[119]]* _0x43b0x2)}}};mxGraph[_0x5b48[202]][_0x5b48[1750]]= function(_0x43b0x2){if(null!= _0x43b0x2){for(var _0x43b0x3={},_0x43b0x4=0;_0x43b0x4< _0x43b0x2[_0x5b48[67]];_0x43b0x4++){var _0x43b0x5=mxCellPath[_0x5b48[385]](_0x43b0x2[_0x43b0x4]);_0x43b0x3[_0x43b0x5]= _0x43b0x2[_0x43b0x4]};this[_0x5b48[251]][_0x5b48[473]]();try{for(_0x43b0x4= 0;_0x43b0x4< _0x43b0x2[_0x5b48[67]];_0x43b0x4++){var _0x43b0x9=this[_0x5b48[251]][_0x5b48[264]](_0x43b0x2[_0x43b0x4]);if(null!= _0x43b0x9){for(_0x43b0x5= 0;_0x43b0x5< _0x43b0x9[_0x5b48[67]];_0x43b0x5++){var _0x43b0xa=this[_0x5b48[441]][_0x5b48[248]](_0x43b0x9[_0x43b0x5]),_0x43b0x12=null!= _0x43b0xa?_0x43b0xa[_0x5b48[1710]](!0):this[_0x5b48[441]][_0x5b48[1710]](_0x43b0x9[_0x43b0x5],!0),_0x43b0x13=null!= _0x43b0xa?_0x43b0xa[_0x5b48[1710]](!1):this[_0x5b48[441]][_0x5b48[1710]](_0x43b0x9[_0x43b0x5],!1),_0x43b0x14=mxCellPath[_0x5b48[385]](_0x43b0x12),_0x43b0x15=mxCellPath[_0x5b48[385]](_0x43b0x13);(null== _0x43b0x3[_0x43b0x14]|| null== _0x43b0x3[_0x43b0x15])&& this[_0x5b48[1809]](_0x43b0x9[_0x43b0x5])}};this[_0x5b48[1750]](this[_0x5b48[251]][_0x5b48[1953]](_0x43b0x2[_0x43b0x4]))}}finally{this[_0x5b48[251]][_0x5b48[476]]()}}};mxGraph[_0x5b48[202]][_0x5b48[1809]]= function(_0x43b0x2){var _0x43b0x3=this[_0x5b48[251]][_0x5b48[1721]](_0x43b0x2);null!= _0x43b0x3&& (null!= _0x43b0x3[_0x5b48[1525]]&& 0< _0x43b0x3[_0x5b48[1525]][_0x5b48[67]])&& (_0x43b0x3= _0x43b0x3[_0x5b48[238]](),_0x43b0x3[_0x5b48[1525]]= [],this[_0x5b48[251]][_0x5b48[1724]](_0x43b0x2,_0x43b0x3));return _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[2538]]= function(_0x43b0x2,_0x43b0x3){return null!= _0x43b0x2&& null!= _0x43b0x2[_0x5b48[253]]&& null!= _0x43b0x2[_0x5b48[253]][_0x5b48[1561]]?_0x43b0x2[_0x5b48[253]][_0x5b48[1561]][_0x5b48[1531]]:null};mxGraph[_0x5b48[202]][_0x5b48[2288]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){_0x43b0x3= null;var _0x43b0x5=_0x43b0x2[_0x5b48[124]][_0x43b0x4?mxConstants[_0x5b48[2539]]:mxConstants[_0x5b48[2540]]];if(null!= _0x43b0x5){var _0x43b0x9=_0x43b0x2[_0x5b48[124]][_0x43b0x4?mxConstants[_0x5b48[2541]]:mxConstants[_0x5b48[2542]]];null!= _0x43b0x9&& (_0x43b0x3= new mxPoint(parseFloat(_0x43b0x5),parseFloat(_0x43b0x9)))};_0x43b0x5= !1;null!= _0x43b0x3&& (_0x43b0x5= mxUtils[_0x5b48[433]](_0x43b0x2[_0x5b48[124]],_0x43b0x4?mxConstants[_0x5b48[2543]]:mxConstants[_0x5b48[2544]],!0));return new mxConnectionConstraint(_0x43b0x3,_0x43b0x5)};mxGraph[_0x5b48[202]][_0x5b48[2545]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){if(null!= _0x43b0x5){this[_0x5b48[251]][_0x5b48[473]]();try{null== _0x43b0x5|| null== _0x43b0x5[_0x5b48[2546]]?(this[_0x5b48[1717]](_0x43b0x4?mxConstants[_0x5b48[2539]]:mxConstants[_0x5b48[2540]],null,[_0x43b0x2]),this[_0x5b48[1717]](_0x43b0x4?mxConstants[_0x5b48[2541]]:mxConstants[_0x5b48[2542]],null,[_0x43b0x2]),this[_0x5b48[1717]](_0x43b0x4?mxConstants[_0x5b48[2543]]:mxConstants[_0x5b48[2544]],null,[_0x43b0x2])):null!= _0x43b0x5[_0x5b48[2546]]&& (this[_0x5b48[1717]](_0x43b0x4?mxConstants[_0x5b48[2539]]:mxConstants[_0x5b48[2540]],_0x43b0x5[_0x5b48[2546]][_0x5b48[235]],[_0x43b0x2]),this[_0x5b48[1717]](_0x43b0x4?mxConstants[_0x5b48[2541]]:mxConstants[_0x5b48[2542]],_0x43b0x5[_0x5b48[2546]][_0x5b48[236]],[_0x43b0x2]),_0x43b0x5[_0x5b48[591]]?this[_0x5b48[1717]](_0x43b0x4?mxConstants[_0x5b48[2543]]:mxConstants[_0x5b48[2544]],null,[_0x43b0x2]):this[_0x5b48[1717]](_0x43b0x4?mxConstants[_0x5b48[2543]]:mxConstants[_0x5b48[2544]],_0x5b48[468],[_0x43b0x2]))}finally{this[_0x5b48[251]][_0x5b48[476]]()}}};mxGraph[_0x5b48[202]][_0x5b48[2290]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=null;if(null!= _0x43b0x2){var _0x43b0x5=this[_0x5b48[441]][_0x5b48[2087]](_0x43b0x2),_0x43b0x9= new mxPoint(_0x43b0x5[_0x5b48[241]](),_0x43b0x5[_0x5b48[242]]()),_0x43b0xa=_0x43b0x2[_0x5b48[124]][mxConstants[_0x5b48[2011]]],_0x43b0x12=0;if(null!= _0x43b0xa&& (_0x5b48[700]== _0x43b0xa?_0x43b0x12+= 270:_0x5b48[703]== _0x43b0xa?_0x43b0x12+= 180:_0x5b48[701]== _0x43b0xa&& (_0x43b0x12+= 90),_0x5b48[700]== _0x43b0xa|| _0x5b48[701]== _0x43b0xa)){_0x43b0x5[_0x5b48[235]]+= _0x43b0x5[_0x5b48[117]]/ 2- _0x43b0x5[_0x5b48[119]]/ 2;_0x43b0x5[_0x5b48[236]]+= _0x43b0x5[_0x5b48[119]]/ 2- _0x43b0x5[_0x5b48[117]]/ 2;var _0x43b0x13=_0x43b0x5[_0x5b48[117]];_0x43b0x5[_0x5b48[117]]= _0x43b0x5[_0x5b48[119]];_0x43b0x5[_0x5b48[119]]= _0x43b0x13};if(null!= _0x43b0x3[_0x5b48[2546]]){var _0x43b0x14=_0x43b0x4= 1,_0x43b0x15=0,_0x43b0x16=0;if(this[_0x5b48[502]]()[_0x5b48[1193]](_0x43b0x2[_0x5b48[246]])){var _0x43b0x17=_0x43b0x2[_0x5b48[124]][mxConstants[_0x5b48[2547]]],_0x43b0x18=_0x43b0x2[_0x5b48[124]][mxConstants[_0x5b48[2548]]];null!= _0x43b0x2[_0x5b48[253]][_0x5b48[1561]]&& (_0x43b0x17= 1== mxUtils[_0x5b48[433]](_0x43b0x2[_0x5b48[124]],_0x5b48[1607],0)|| _0x43b0x17,_0x43b0x18= 1== mxUtils[_0x5b48[433]](_0x43b0x2[_0x5b48[124]],_0x5b48[1608],0)|| _0x43b0x18);if(_0x5b48[700]== _0x43b0xa|| _0x5b48[701]== _0x43b0xa){_0x43b0x13= _0x43b0x17,_0x43b0x17= _0x43b0x18,_0x43b0x18= _0x43b0x13};_0x43b0x17&& (_0x43b0x4= -1,_0x43b0x15= -_0x43b0x5[_0x5b48[117]]);_0x43b0x18&& (_0x43b0x14= -1,_0x43b0x16= -_0x43b0x5[_0x5b48[119]])};_0x43b0x4= new mxPoint(_0x43b0x5[_0x5b48[235]]+ _0x43b0x3[_0x5b48[2546]][_0x5b48[235]]* _0x43b0x5[_0x5b48[117]]* _0x43b0x4- _0x43b0x15,_0x43b0x5[_0x5b48[236]]+ _0x43b0x3[_0x5b48[2546]][_0x5b48[236]]* _0x43b0x5[_0x5b48[119]]* _0x43b0x14- _0x43b0x16)};_0x43b0xa= _0x43b0x2[_0x5b48[124]][mxConstants[_0x5b48[2278]]]|| 0;_0x43b0x3[_0x5b48[591]]?(0!= _0x43b0x12&& null!= _0x43b0x4&& (_0x43b0x13= _0x43b0x5= 0,90== _0x43b0x12?_0x43b0x13= 1:180== _0x43b0x12?_0x43b0x5= -1:270== _0x43b0xa&& (_0x43b0x13= -1),_0x43b0x4= mxUtils[_0x5b48[432]](_0x43b0x4,_0x43b0x5,_0x43b0x13,_0x43b0x9)),null!= _0x43b0x4&& _0x43b0x3[_0x5b48[591]]&& (_0x43b0x4= this[_0x5b48[441]][_0x5b48[2302]](_0x43b0x2,_0x43b0x4,!1))):_0x43b0xa+= _0x43b0x12;0!= _0x43b0xa&& null!= _0x43b0x4&& (_0x43b0x12= mxUtils[_0x5b48[431]](_0x43b0xa),_0x43b0x5= Math[_0x5b48[426]](_0x43b0x12),_0x43b0x13= Math[_0x5b48[427]](_0x43b0x12),_0x43b0x4= mxUtils[_0x5b48[432]](_0x43b0x4,_0x43b0x5,_0x43b0x13,_0x43b0x9))};return _0x43b0x4};mxGraph[_0x5b48[202]][_0x5b48[851]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){this[_0x5b48[251]][_0x5b48[473]]();try{var _0x43b0x9=this[_0x5b48[251]][_0x5b48[1709]](_0x43b0x2,_0x43b0x4);this[_0x5b48[852]](_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5);this[_0x5b48[746]]( new mxEventObject(mxEvent.CONNECT_CELL,_0x5b48[1989],_0x43b0x2,_0x5b48[1984],_0x43b0x3,_0x5b48[1097],_0x43b0x4,_0x5b48[257],_0x43b0x9))}finally{this[_0x5b48[251]][_0x5b48[476]]()};return _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[852]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){if(null!= _0x43b0x2){this[_0x5b48[251]][_0x5b48[473]]();try{var _0x43b0x9=this[_0x5b48[251]][_0x5b48[1709]](_0x43b0x2,_0x43b0x4);this[_0x5b48[2545]](_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5);this[_0x5b48[2549]]()&& (_0x43b0x5= null,this[_0x5b48[1908]](_0x43b0x3)&& (_0x43b0x5= _0x43b0x3[_0x5b48[1103]](),_0x43b0x3= this[_0x5b48[2550]](_0x43b0x3,_0x43b0x4)),this[_0x5b48[1717]](_0x43b0x4?mxConstants[_0x5b48[2303]]:mxConstants[_0x5b48[2304]],_0x43b0x5,[_0x43b0x2]));this[_0x5b48[251]][_0x5b48[1957]](_0x43b0x2,_0x43b0x3,_0x43b0x4);this[_0x5b48[2401]]&& this[_0x5b48[1809]](_0x43b0x2);this[_0x5b48[746]]( new mxEventObject(mxEvent.CELL_CONNECTED,_0x5b48[1989],_0x43b0x2,_0x5b48[1984],_0x43b0x3,_0x5b48[1097],_0x43b0x4,_0x5b48[257],_0x43b0x9))}finally{this[_0x5b48[251]][_0x5b48[476]]()}}};mxGraph[_0x5b48[202]][_0x5b48[2531]]= function(_0x43b0x2){if(null!= _0x43b0x2){this[_0x5b48[251]][_0x5b48[473]]();try{for(var _0x43b0x3=this[_0x5b48[441]][_0x5b48[255]],_0x43b0x4=this[_0x5b48[441]][_0x5b48[513]],_0x43b0x5={},_0x43b0x9=0;_0x43b0x9< _0x43b0x2[_0x5b48[67]];_0x43b0x9++){var _0x43b0xa=mxCellPath[_0x5b48[385]](_0x43b0x2[_0x43b0x9]);_0x43b0x5[_0x43b0xa]= _0x43b0x2[_0x43b0x9]};for(_0x43b0x9= 0;_0x43b0x9< _0x43b0x2[_0x5b48[67]];_0x43b0x9++){if(this[_0x5b48[251]][_0x5b48[250]](_0x43b0x2[_0x43b0x9])){var _0x43b0x12=this[_0x5b48[251]][_0x5b48[1721]](_0x43b0x2[_0x43b0x9]);if(null!= _0x43b0x12){var _0x43b0x13=this[_0x5b48[441]][_0x5b48[248]](_0x43b0x2[_0x43b0x9]),_0x43b0x14=this[_0x5b48[441]][_0x5b48[248]](this[_0x5b48[251]][_0x5b48[1197]](_0x43b0x2[_0x43b0x9]));if(null!= _0x43b0x13&& null!= _0x43b0x14){var _0x43b0x12=_0x43b0x12[_0x5b48[238]](),_0x43b0x15=-_0x43b0x14[_0x5b48[2078]][_0x5b48[235]],_0x43b0x16=-_0x43b0x14[_0x5b48[2078]][_0x5b48[236]],_0x43b0x17=_0x43b0x13[_0x5b48[439]],_0x43b0x18=this[_0x5b48[251]][_0x5b48[1709]](_0x43b0x2[_0x43b0x9],!0);if(null!= _0x43b0x18&& this[_0x5b48[2551]](_0x43b0x2[_0x43b0x9],_0x43b0x18,!0)){for(var _0x43b0x19=mxCellPath[_0x5b48[385]](_0x43b0x18);null!= _0x43b0x18&& null== _0x43b0x5[_0x43b0x19];){_0x43b0x18= this[_0x5b48[251]][_0x5b48[1197]](_0x43b0x18),_0x43b0x19= mxCellPath[_0x5b48[385]](_0x43b0x18)};null== _0x43b0x18&& (_0x43b0x12[_0x5b48[2007]]( new mxPoint(_0x43b0x17[0][_0x5b48[235]]/ _0x43b0x3- _0x43b0x4[_0x5b48[235]]+ _0x43b0x15,_0x43b0x17[0][_0x5b48[236]]/ _0x43b0x3- _0x43b0x4[_0x5b48[236]]+ _0x43b0x16),!0),this[_0x5b48[251]][_0x5b48[1957]](_0x43b0x2[_0x43b0x9],null,!0))};var _0x43b0x1a=this[_0x5b48[251]][_0x5b48[1709]](_0x43b0x2[_0x43b0x9],!1);if(null!= _0x43b0x1a&& this[_0x5b48[2551]](_0x43b0x2[_0x43b0x9],_0x43b0x1a,!1)){for(var _0x43b0x1b=mxCellPath[_0x5b48[385]](_0x43b0x1a);null!= _0x43b0x1a&& null== _0x43b0x5[_0x43b0x1b];){_0x43b0x1a= this[_0x5b48[251]][_0x5b48[1197]](_0x43b0x1a),_0x43b0x1b= mxCellPath[_0x5b48[385]](_0x43b0x1a)};if(null== _0x43b0x1a){var _0x43b0x1c=_0x43b0x17[_0x5b48[67]]- 1;_0x43b0x12[_0x5b48[2007]]( new mxPoint(_0x43b0x17[_0x43b0x1c][_0x5b48[235]]/ _0x43b0x3- _0x43b0x4[_0x5b48[235]]+ _0x43b0x15,_0x43b0x17[_0x43b0x1c][_0x5b48[236]]/ _0x43b0x3- _0x43b0x4[_0x5b48[236]]+ _0x43b0x16),!1);this[_0x5b48[251]][_0x5b48[1957]](_0x43b0x2[_0x43b0x9],null,!1)}};this[_0x5b48[251]][_0x5b48[1724]](_0x43b0x2[_0x43b0x9],_0x43b0x12)}}}}}finally{this[_0x5b48[251]][_0x5b48[476]]()}}};mxGraph[_0x5b48[202]][_0x5b48[2534]]= function(){return this[_0x5b48[441]][_0x5b48[1741]]};mxGraph[_0x5b48[202]][_0x5b48[2326]]= function(_0x43b0x2){return null};mxGraph[_0x5b48[202]][_0x5b48[1908]]= function(_0x43b0x2){return !1};mxGraph[_0x5b48[202]][_0x5b48[2550]]= function(_0x43b0x2,_0x43b0x3){return this[_0x5b48[251]][_0x5b48[1197]](_0x43b0x2)};mxGraph[_0x5b48[202]][_0x5b48[2280]]= function(_0x43b0x2){return null};mxGraph[_0x5b48[202]][_0x5b48[2552]]= function(_0x43b0x2){_0x43b0x2= _0x43b0x2|| this[_0x5b48[2452]]();null!= _0x43b0x2&& this[_0x5b48[2553]](_0x43b0x2)&& (this[_0x5b48[441]][_0x5b48[2257]](_0x43b0x2),this[_0x5b48[2440]]())};mxGraph[_0x5b48[202]][_0x5b48[2554]]= function(){var _0x43b0x2=this[_0x5b48[251]][_0x5b48[501]](),_0x43b0x3=this[_0x5b48[2534]]();if(null!= _0x43b0x3){for(var _0x43b0x4=this[_0x5b48[251]][_0x5b48[1197]](_0x43b0x3);_0x43b0x4!= _0x43b0x2&& !this[_0x5b48[2553]](_0x43b0x4)&& this[_0x5b48[251]][_0x5b48[1197]](_0x43b0x4)!= _0x43b0x2;){_0x43b0x4= this[_0x5b48[251]][_0x5b48[1197]](_0x43b0x4)};_0x43b0x4== _0x43b0x2|| this[_0x5b48[251]][_0x5b48[1197]](_0x43b0x4)== _0x43b0x2?this[_0x5b48[441]][_0x5b48[2257]](null):this[_0x5b48[441]][_0x5b48[2257]](_0x43b0x4);null!= this[_0x5b48[441]][_0x5b48[248]](_0x43b0x3)&& this[_0x5b48[2450]](_0x43b0x3)}};mxGraph[_0x5b48[202]][_0x5b48[2442]]= function(){var _0x43b0x2=this[_0x5b48[2534]]();null!= _0x43b0x2&& (this[_0x5b48[441]][_0x5b48[2257]](null),null!= this[_0x5b48[441]][_0x5b48[248]](_0x43b0x2)&& this[_0x5b48[2450]](_0x43b0x2))};mxGraph[_0x5b48[202]][_0x5b48[2553]]= function(_0x43b0x2){return null!= _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[517]]= function(){return this[_0x5b48[441]][_0x5b48[517]]()};mxGraph[_0x5b48[202]][_0x5b48[2555]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){var _0x43b0x5=[_0x43b0x2];_0x43b0x3&& (_0x43b0x5= _0x43b0x5[_0x5b48[1919]](this[_0x5b48[251]][_0x5b48[264]](_0x43b0x2)));_0x43b0x5= this[_0x5b48[441]][_0x5b48[1799]](_0x43b0x5);if(_0x43b0x4){_0x43b0x4= this[_0x5b48[251]][_0x5b48[262]](_0x43b0x2);for(var _0x43b0x9=0;_0x43b0x9< _0x43b0x4;_0x43b0x9++){var _0x43b0xa=this[_0x5b48[2555]](this[_0x5b48[251]][_0x5b48[263]](_0x43b0x2,_0x43b0x9),_0x43b0x3,!0);null!= _0x43b0x5?_0x43b0x5[_0x5b48[99]](_0x43b0xa):_0x43b0x5= _0x43b0xa}};return _0x43b0x5};mxGraph[_0x5b48[202]][_0x5b48[1729]]= function(_0x43b0x2,_0x43b0x3){_0x43b0x3= null!= _0x43b0x3?_0x43b0x3:!1;var _0x43b0x4=null;if(null!= _0x43b0x2){for(var _0x43b0x5=0;_0x43b0x5< _0x43b0x2[_0x5b48[67]];_0x43b0x5++){if(_0x43b0x3|| this[_0x5b48[251]][_0x5b48[1193]](_0x43b0x2[_0x43b0x5])){var _0x43b0x9=this[_0x5b48[1198]](_0x43b0x2[_0x43b0x5]);if(null!= _0x43b0x9){var _0x43b0xa=_0x43b0x9[_0x5b48[1525]];if(null!= _0x43b0xa&& 0< _0x43b0xa[_0x5b48[67]]){for(var _0x43b0x12= new mxRectangle(_0x43b0xa[0][_0x5b48[235]],_0x43b0xa[0][_0x5b48[236]],0,0),_0x43b0x13=function(_0x43b0x2){null!= _0x43b0x2&& _0x43b0x12[_0x5b48[99]]( new mxRectangle(_0x43b0x2[_0x5b48[235]],_0x43b0x2[_0x5b48[236]],0,0))},_0x43b0x14=1;_0x43b0x14< _0x43b0xa[_0x5b48[67]];_0x43b0x14++){_0x43b0x13(_0x43b0xa[_0x43b0x14])};_0x43b0x13(_0x43b0x9[_0x5b48[2006]](!0));_0x43b0x13(_0x43b0x9[_0x5b48[2006]](!1))};null== _0x43b0x4?_0x43b0x4= new mxRectangle(_0x43b0x9[_0x5b48[235]],_0x43b0x9[_0x5b48[236]],_0x43b0x9[_0x5b48[117]],_0x43b0x9[_0x5b48[119]]):_0x43b0x4[_0x5b48[99]](_0x43b0x9)}}}};return _0x43b0x4};mxGraph[_0x5b48[202]][_0x5b48[802]]= function(_0x43b0x2){this[_0x5b48[441]][_0x5b48[200]](_0x43b0x2,null== _0x43b0x2);this[_0x5b48[441]][_0x5b48[2264]]();this[_0x5b48[2258]]();this[_0x5b48[746]]( new mxEventObject(mxEvent.REFRESH))};mxGraph[_0x5b48[202]][_0x5b48[1021]]= function(_0x43b0x2){this[_0x5b48[991]]&& (_0x43b0x2= Math[_0x5b48[488]](_0x43b0x2/ this[_0x5b48[1020]])* this[_0x5b48[1020]]);return _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[1135]]= function(_0x43b0x2,_0x43b0x3){if(this[_0x5b48[2365]]&& mxUtils[_0x5b48[1134]](this[_0x5b48[526]])){this[_0x5b48[526]][_0x5b48[360]]= -_0x43b0x2,this[_0x5b48[526]][_0x5b48[190]]= -_0x43b0x3}else {var _0x43b0x4=this[_0x5b48[441]][_0x5b48[2051]]();if(this[_0x5b48[507]]== mxConstants[_0x5b48[508]]){if(0== _0x43b0x2&& 0== _0x43b0x3){if(mxClient[_0x5b48[80]]?_0x43b0x4[_0x5b48[57]](_0x5b48[535],_0x5b48[536]+ _0x43b0x2+ _0x5b48[537]+ _0x43b0x3+ _0x5b48[460]):_0x43b0x4[_0x5b48[1390]](_0x5b48[535]),null!= this[_0x5b48[2556]]){for(var _0x43b0x5=this[_0x5b48[2556]][_0x5b48[285]];null!= _0x43b0x5;){var _0x43b0x9=_0x43b0x5[_0x5b48[287]];this[_0x5b48[526]][_0x5b48[62]](_0x43b0x5);_0x43b0x5= _0x43b0x9};this[_0x5b48[2556]][_0x5b48[265]][_0x5b48[266]](this[_0x5b48[2556]]);this[_0x5b48[2556]]= null;this[_0x5b48[526]][_0x5b48[62]](_0x43b0x4[_0x5b48[265]]);for(_0x43b0x5= this[_0x5b48[2557]][_0x5b48[285]];null!= _0x43b0x5;){_0x43b0x9= _0x43b0x5[_0x5b48[287]],this[_0x5b48[526]][_0x5b48[62]](_0x43b0x5),_0x43b0x5= _0x43b0x9};this[_0x5b48[2557]][_0x5b48[265]][_0x5b48[266]](this[_0x5b48[2557]]);this[_0x5b48[2557]]= null}}else {_0x43b0x4[_0x5b48[57]](_0x5b48[535],_0x5b48[536]+ _0x43b0x2+ _0x5b48[537]+ _0x43b0x3+ _0x5b48[460]);if(null== this[_0x5b48[2556]]){this[_0x5b48[2556]]= document[_0x5b48[55]](_0x5b48[485]);this[_0x5b48[2556]][_0x5b48[124]][_0x5b48[491]]= _0x5b48[492];this[_0x5b48[2556]][_0x5b48[124]][_0x5b48[277]]= _0x5b48[189];this[_0x5b48[2557]]= document[_0x5b48[55]](_0x5b48[485]);this[_0x5b48[2557]][_0x5b48[124]][_0x5b48[491]]= _0x5b48[492];this[_0x5b48[2557]][_0x5b48[124]][_0x5b48[277]]= _0x5b48[189];for(var _0x43b0xa=this[_0x5b48[2556]],_0x43b0x5=this[_0x5b48[526]][_0x5b48[285]];null!= _0x43b0x5;){_0x43b0x9= _0x43b0x5[_0x5b48[287]],_0x43b0x5!= _0x43b0x4[_0x5b48[265]]?_0x43b0xa[_0x5b48[62]](_0x43b0x5):_0x43b0xa= this[_0x5b48[2557]],_0x43b0x5= _0x43b0x9};this[_0x5b48[526]][_0x5b48[950]](this[_0x5b48[2556]],_0x43b0x4[_0x5b48[265]]);this[_0x5b48[526]][_0x5b48[62]](this[_0x5b48[2557]])};this[_0x5b48[2556]][_0x5b48[124]][_0x5b48[361]]= _0x43b0x2+ _0x5b48[168];this[_0x5b48[2556]][_0x5b48[124]][_0x5b48[125]]= _0x43b0x3+ _0x5b48[168];this[_0x5b48[2557]][_0x5b48[124]][_0x5b48[361]]= _0x43b0x2+ _0x5b48[168];this[_0x5b48[2557]][_0x5b48[124]][_0x5b48[125]]= _0x43b0x3+ _0x5b48[168]}}else {_0x43b0x4[_0x5b48[124]][_0x5b48[361]]= _0x43b0x2+ _0x5b48[168],_0x43b0x4[_0x5b48[124]][_0x5b48[125]]= _0x43b0x3+ _0x5b48[168]};this[_0x5b48[1136]]= _0x43b0x2;this[_0x5b48[1137]]= _0x43b0x3;this[_0x5b48[746]]( new mxEventObject(mxEvent.PAN))}};mxGraph[_0x5b48[202]][_0x5b48[2558]]= function(){this[_0x5b48[499]](this[_0x5b48[2395]])};mxGraph[_0x5b48[202]][_0x5b48[2559]]= function(){this[_0x5b48[499]](1/ this[_0x5b48[2395]])};mxGraph[_0x5b48[202]][_0x5b48[2560]]= function(){1== this[_0x5b48[441]][_0x5b48[255]]?this[_0x5b48[441]][_0x5b48[1147]](0,0):(this[_0x5b48[441]][_0x5b48[513]][_0x5b48[235]]= 0,this[_0x5b48[441]][_0x5b48[513]][_0x5b48[236]]= 0,this[_0x5b48[441]][_0x5b48[2262]](1))};mxGraph[_0x5b48[202]][_0x5b48[2561]]= function(_0x43b0x2,_0x43b0x3){this[_0x5b48[499]](_0x43b0x2/ this[_0x5b48[441]][_0x5b48[255]],_0x43b0x3)};mxGraph[_0x5b48[202]][_0x5b48[499]]= function(_0x43b0x2,_0x43b0x3){_0x43b0x3= null!= _0x43b0x3?_0x43b0x3:this[_0x5b48[2397]];var _0x43b0x4=this[_0x5b48[441]][_0x5b48[255]]* _0x43b0x2,_0x43b0x5=this[_0x5b48[441]][_0x5b48[248]](this[_0x5b48[2452]]());if(this[_0x5b48[2396]]&& null!= _0x43b0x5){_0x43b0x5= new mxRectangle(_0x43b0x5[_0x5b48[235]]* _0x43b0x2,_0x43b0x5[_0x5b48[236]]* _0x43b0x2,_0x43b0x5[_0x5b48[117]]* _0x43b0x2,_0x43b0x5[_0x5b48[119]]* _0x43b0x2),this[_0x5b48[441]][_0x5b48[255]]= _0x43b0x4,this[_0x5b48[2562]](_0x43b0x5)|| (this[_0x5b48[441]][_0x5b48[2259]](),this[_0x5b48[441]][_0x5b48[2262]](_0x43b0x4))}else {if(_0x43b0x3&& !mxUtils[_0x5b48[1134]](this[_0x5b48[526]])){var _0x43b0x5=this[_0x5b48[526]][_0x5b48[359]],_0x43b0x9=this[_0x5b48[526]][_0x5b48[167]];if(1< _0x43b0x2){var _0x43b0xa=(_0x43b0x2- 1)/ (2* _0x43b0x4),_0x43b0x5=_0x43b0x5* -_0x43b0xa,_0x43b0x9=_0x43b0x9* -_0x43b0xa}else {_0x43b0xa= (1/ _0x43b0x2- 1)/ (2* this[_0x5b48[441]][_0x5b48[255]]),_0x43b0x5*= _0x43b0xa,_0x43b0x9*= _0x43b0xa};this[_0x5b48[441]][_0x5b48[829]](_0x43b0x4,this[_0x5b48[441]][_0x5b48[513]][_0x5b48[235]]+ _0x43b0x5,this[_0x5b48[441]][_0x5b48[513]][_0x5b48[236]]+ _0x43b0x9)}else {this[_0x5b48[441]][_0x5b48[2262]](_0x43b0x4),mxUtils[_0x5b48[1134]](this[_0x5b48[526]])&& (_0x43b0x9= _0x43b0x5= 0,_0x43b0x3&& (_0x43b0x5= this[_0x5b48[526]][_0x5b48[359]]* (_0x43b0x2- 1)/ 2,_0x43b0x9= this[_0x5b48[526]][_0x5b48[167]]* (_0x43b0x2- 1)/ 2),this[_0x5b48[526]][_0x5b48[360]]= Math[_0x5b48[488]](this[_0x5b48[526]][_0x5b48[360]]* _0x43b0x2+ _0x43b0x5),this[_0x5b48[526]][_0x5b48[190]]= Math[_0x5b48[488]](this[_0x5b48[526]][_0x5b48[190]]* _0x43b0x2+ _0x43b0x9))}}};mxGraph[_0x5b48[202]][_0x5b48[2563]]= function(_0x43b0x2){var _0x43b0x3=this[_0x5b48[526]][_0x5b48[159]]/ _0x43b0x2[_0x5b48[117]]/ (this[_0x5b48[526]][_0x5b48[157]]/ _0x43b0x2[_0x5b48[119]]);_0x43b0x2[_0x5b48[235]]= Math[_0x5b48[160]](0,_0x43b0x2[_0x5b48[235]]);_0x43b0x2[_0x5b48[236]]= Math[_0x5b48[160]](0,_0x43b0x2[_0x5b48[236]]);var _0x43b0x4=Math[_0x5b48[243]](this[_0x5b48[526]][_0x5b48[1526]],_0x43b0x2[_0x5b48[235]]+ _0x43b0x2[_0x5b48[117]]),_0x43b0x5=Math[_0x5b48[243]](this[_0x5b48[526]][_0x5b48[191]],_0x43b0x2[_0x5b48[236]]+ _0x43b0x2[_0x5b48[119]]);_0x43b0x2[_0x5b48[117]]= _0x43b0x4- _0x43b0x2[_0x5b48[235]];_0x43b0x2[_0x5b48[119]]= _0x43b0x5- _0x43b0x2[_0x5b48[236]];1> _0x43b0x3?(_0x43b0x3= _0x43b0x2[_0x5b48[119]]/ _0x43b0x3,_0x43b0x4= (_0x43b0x3- _0x43b0x2[_0x5b48[119]])/ 2,_0x43b0x2[_0x5b48[119]]= _0x43b0x3,_0x43b0x3= Math[_0x5b48[243]](_0x43b0x2[_0x5b48[236]],_0x43b0x4),_0x43b0x2[_0x5b48[236]]-= _0x43b0x3,_0x43b0x5= Math[_0x5b48[243]](this[_0x5b48[526]][_0x5b48[191]],_0x43b0x2[_0x5b48[236]]+ _0x43b0x2[_0x5b48[119]]),_0x43b0x2[_0x5b48[119]]= _0x43b0x5- _0x43b0x2[_0x5b48[236]]):(_0x43b0x3*= _0x43b0x2[_0x5b48[117]],_0x43b0x4= (_0x43b0x3- _0x43b0x2[_0x5b48[117]])/ 2,_0x43b0x2[_0x5b48[117]]= _0x43b0x3,_0x43b0x3= Math[_0x5b48[243]](_0x43b0x2[_0x5b48[235]],_0x43b0x4),_0x43b0x2[_0x5b48[235]]-= _0x43b0x3,_0x43b0x4= Math[_0x5b48[243]](this[_0x5b48[526]][_0x5b48[1526]],_0x43b0x2[_0x5b48[235]]+ _0x43b0x2[_0x5b48[117]]),_0x43b0x2[_0x5b48[117]]= _0x43b0x4- _0x43b0x2[_0x5b48[235]]);_0x43b0x3= this[_0x5b48[526]][_0x5b48[159]]/ _0x43b0x2[_0x5b48[117]];_0x43b0x4= this[_0x5b48[441]][_0x5b48[255]]* _0x43b0x3;mxUtils[_0x5b48[1134]](this[_0x5b48[526]])?(this[_0x5b48[441]][_0x5b48[2262]](_0x43b0x4),this[_0x5b48[526]][_0x5b48[360]]= Math[_0x5b48[488]](_0x43b0x2[_0x5b48[235]]* _0x43b0x3),this[_0x5b48[526]][_0x5b48[190]]= Math[_0x5b48[488]](_0x43b0x2[_0x5b48[236]]* _0x43b0x3)):this[_0x5b48[441]][_0x5b48[829]](_0x43b0x4,this[_0x5b48[441]][_0x5b48[513]][_0x5b48[235]]- _0x43b0x2[_0x5b48[235]]/ this[_0x5b48[441]][_0x5b48[255]],this[_0x5b48[441]][_0x5b48[513]][_0x5b48[236]]- _0x43b0x2[_0x5b48[236]]/ this[_0x5b48[441]][_0x5b48[255]])};mxGraph[_0x5b48[202]][_0x5b48[933]]= function(_0x43b0x2,_0x43b0x3){if(null!= this[_0x5b48[526]]){_0x43b0x2= null!= _0x43b0x2?_0x43b0x2:0;_0x43b0x3= null!= _0x43b0x3?_0x43b0x3:!1;var _0x43b0x4=this[_0x5b48[526]][_0x5b48[159]],_0x43b0x5=this[_0x5b48[526]][_0x5b48[157]],_0x43b0x9=this[_0x5b48[441]][_0x5b48[517]]();_0x43b0x3&& (null!= _0x43b0x9[_0x5b48[235]]&& null!= _0x43b0x9[_0x5b48[236]])&& (_0x43b0x9[_0x5b48[117]]+= _0x43b0x9[_0x5b48[235]],_0x43b0x9[_0x5b48[119]]+= _0x43b0x9[_0x5b48[236]],_0x43b0x9[_0x5b48[235]]= 0,_0x43b0x9[_0x5b48[236]]= 0);var _0x43b0xa=this[_0x5b48[441]][_0x5b48[255]],_0x43b0x12=_0x43b0x9[_0x5b48[117]]/ _0x43b0xa,_0x43b0x13=_0x43b0x9[_0x5b48[119]]/ _0x43b0xa;null!= this[_0x5b48[1617]]&& (_0x43b0x12= Math[_0x5b48[160]](_0x43b0x12,this[_0x5b48[1617]][_0x5b48[117]]- _0x43b0x9[_0x5b48[235]]/ _0x43b0xa),_0x43b0x13= Math[_0x5b48[160]](_0x43b0x13,this[_0x5b48[1617]][_0x5b48[119]]- _0x43b0x9[_0x5b48[236]]/ _0x43b0xa));var _0x43b0x14=_0x43b0x3?_0x43b0x2:2* _0x43b0x2,_0x43b0x4=Math[_0x5b48[519]](100* Math[_0x5b48[243]](_0x43b0x4/ (_0x43b0x12+ _0x43b0x14),_0x43b0x5/ (_0x43b0x13+ _0x43b0x14)))/ 100;null!= this[_0x5b48[2413]]&& (_0x43b0x4= Math[_0x5b48[160]](_0x43b0x4,this[_0x5b48[2413]]));null!= this[_0x5b48[2414]]&& (_0x43b0x4= Math[_0x5b48[243]](_0x43b0x4,this[_0x5b48[2414]]));_0x43b0x3?this[_0x5b48[441]][_0x5b48[255]]!= _0x43b0x4&& this[_0x5b48[441]][_0x5b48[2262]](_0x43b0x4):mxUtils[_0x5b48[1134]](this[_0x5b48[526]])?(this[_0x5b48[441]][_0x5b48[2262]](_0x43b0x4),null!= _0x43b0x9[_0x5b48[235]]&& (this[_0x5b48[526]][_0x5b48[360]]= Math[_0x5b48[488]](_0x43b0x9[_0x5b48[235]]/ _0x43b0xa)* _0x43b0x4- _0x43b0x2- Math[_0x5b48[160]](0,(this[_0x5b48[526]][_0x5b48[159]]- _0x43b0x12* _0x43b0x4)/ 2)),null!= _0x43b0x9[_0x5b48[236]]&& (this[_0x5b48[526]][_0x5b48[190]]= Math[_0x5b48[488]](_0x43b0x9[_0x5b48[236]]/ _0x43b0xa)* _0x43b0x4- _0x43b0x2- Math[_0x5b48[160]](0,(this[_0x5b48[526]][_0x5b48[157]]- _0x43b0x13* _0x43b0x4)/ 2))):this[_0x5b48[441]][_0x5b48[829]](_0x43b0x4,null!= _0x43b0x9[_0x5b48[235]]?Math[_0x5b48[519]](this[_0x5b48[441]][_0x5b48[513]][_0x5b48[235]]- _0x43b0x9[_0x5b48[235]]/ _0x43b0xa+ _0x43b0x2+ 1):_0x43b0x2,null!= _0x43b0x9[_0x5b48[236]]?Math[_0x5b48[519]](this[_0x5b48[441]][_0x5b48[513]][_0x5b48[236]]- _0x43b0x9[_0x5b48[236]]/ _0x43b0xa+ _0x43b0x2+ 1):_0x43b0x2)};return this[_0x5b48[441]][_0x5b48[255]]};mxGraph[_0x5b48[202]][_0x5b48[2564]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=-this[_0x5b48[441]][_0x5b48[513]][_0x5b48[235]],_0x43b0x5=-this[_0x5b48[441]][_0x5b48[513]][_0x5b48[236]],_0x43b0x9=this[_0x5b48[441]][_0x5b48[248]](_0x43b0x2);null!= _0x43b0x9&& (_0x43b0x4= new mxRectangle(_0x43b0x4+ _0x43b0x9[_0x5b48[235]],_0x43b0x5+ _0x43b0x9[_0x5b48[236]],_0x43b0x9[_0x5b48[117]],_0x43b0x9[_0x5b48[119]]),_0x43b0x3&& null!= this[_0x5b48[526]]&& (_0x43b0x5= this[_0x5b48[526]][_0x5b48[159]],_0x43b0x9= this[_0x5b48[526]][_0x5b48[157]],_0x43b0x4[_0x5b48[235]]= _0x43b0x4[_0x5b48[241]]()- _0x43b0x5/ 2,_0x43b0x4[_0x5b48[117]]= _0x43b0x5,_0x43b0x4[_0x5b48[236]]= _0x43b0x4[_0x5b48[242]]()- _0x43b0x9/ 2,_0x43b0x4[_0x5b48[119]]= _0x43b0x9),this[_0x5b48[2562]](_0x43b0x4)&& this[_0x5b48[441]][_0x5b48[1147]](this[_0x5b48[441]][_0x5b48[513]][_0x5b48[235]],this[_0x5b48[441]][_0x5b48[513]][_0x5b48[236]]))};mxGraph[_0x5b48[202]][_0x5b48[2562]]= function(_0x43b0x2){var _0x43b0x3=!1;if(null!= _0x43b0x2){var _0x43b0x4=this[_0x5b48[526]][_0x5b48[359]],_0x43b0x5=this[_0x5b48[526]][_0x5b48[167]],_0x43b0x9=Math[_0x5b48[243]](_0x43b0x4,_0x43b0x2[_0x5b48[117]]),_0x43b0xa=Math[_0x5b48[243]](_0x43b0x5,_0x43b0x2[_0x5b48[119]]);if(mxUtils[_0x5b48[1134]](this[_0x5b48[526]])){_0x43b0x4= this[_0x5b48[526]];_0x43b0x2[_0x5b48[235]]+= this[_0x5b48[441]][_0x5b48[513]][_0x5b48[235]];_0x43b0x2[_0x5b48[236]]+= this[_0x5b48[441]][_0x5b48[513]][_0x5b48[236]];var _0x43b0x12=_0x43b0x4[_0x5b48[360]]- _0x43b0x2[_0x5b48[235]],_0x43b0x5=Math[_0x5b48[160]](_0x43b0x12- _0x43b0x4[_0x5b48[360]],0);0< _0x43b0x12?_0x43b0x4[_0x5b48[360]]-= _0x43b0x12+ 2:(_0x43b0x12= _0x43b0x2[_0x5b48[235]]+ _0x43b0x9- _0x43b0x4[_0x5b48[360]]- _0x43b0x4[_0x5b48[159]],0< _0x43b0x12&& (_0x43b0x4[_0x5b48[360]]+= _0x43b0x12+ 2));_0x43b0x9= _0x43b0x4[_0x5b48[190]]- _0x43b0x2[_0x5b48[236]];_0x43b0x12= Math[_0x5b48[160]](0,_0x43b0x9- _0x43b0x4[_0x5b48[190]]);0< _0x43b0x9?_0x43b0x4[_0x5b48[190]]-= _0x43b0x9+ 2:(_0x43b0x9= _0x43b0x2[_0x5b48[236]]+ _0x43b0xa- _0x43b0x4[_0x5b48[190]]- _0x43b0x4[_0x5b48[157]],0< _0x43b0x9&& (_0x43b0x4[_0x5b48[190]]+= _0x43b0x9+ 2));!this[_0x5b48[2365]]&& (0!= _0x43b0x5|| 0!= _0x43b0x12) && this[_0x5b48[441]][_0x5b48[1147]](_0x43b0x5,_0x43b0x12)}else {var _0x43b0x12=-this[_0x5b48[441]][_0x5b48[513]][_0x5b48[235]],_0x43b0x13=-this[_0x5b48[441]][_0x5b48[513]][_0x5b48[236]],_0x43b0x14=this[_0x5b48[441]][_0x5b48[255]];_0x43b0x2[_0x5b48[235]]+ _0x43b0x9> _0x43b0x12+ _0x43b0x4&& (this[_0x5b48[441]][_0x5b48[513]][_0x5b48[235]]-= (_0x43b0x2[_0x5b48[235]]+ _0x43b0x9- _0x43b0x4- _0x43b0x12)/ _0x43b0x14,_0x43b0x3= !0);_0x43b0x2[_0x5b48[236]]+ _0x43b0xa> _0x43b0x13+ _0x43b0x5&& (this[_0x5b48[441]][_0x5b48[513]][_0x5b48[236]]-= (_0x43b0x2[_0x5b48[236]]+ _0x43b0xa- _0x43b0x5- _0x43b0x13)/ _0x43b0x14,_0x43b0x3= !0);_0x43b0x2[_0x5b48[235]]< _0x43b0x12&& (this[_0x5b48[441]][_0x5b48[513]][_0x5b48[235]]+= (_0x43b0x12- _0x43b0x2[_0x5b48[235]])/ _0x43b0x14,_0x43b0x3= !0);_0x43b0x2[_0x5b48[236]]< _0x43b0x13&& (this[_0x5b48[441]][_0x5b48[513]][_0x5b48[236]]+= (_0x43b0x13- _0x43b0x2[_0x5b48[236]])/ _0x43b0x14,_0x43b0x3= !0);_0x43b0x3&& (this[_0x5b48[441]][_0x5b48[802]](),null!= this[_0x5b48[2432]]&& this[_0x5b48[2432]][_0x5b48[802]]())}};return _0x43b0x3};mxGraph[_0x5b48[202]][_0x5b48[1198]]= function(_0x43b0x2){return this[_0x5b48[251]][_0x5b48[1721]](_0x43b0x2)};mxGraph[_0x5b48[202]][_0x5b48[1714]]= function(_0x43b0x2){return this[_0x5b48[251]][_0x5b48[174]](_0x43b0x2)};mxGraph[_0x5b48[202]][_0x5b48[1742]]= function(_0x43b0x2){return this[_0x5b48[251]][_0x5b48[1971]](_0x43b0x2)};mxGraph[_0x5b48[202]][_0x5b48[2565]]= function(_0x43b0x2){return this[_0x5b48[251]][_0x5b48[1965]](_0x43b0x2)};mxGraph[_0x5b48[202]][_0x5b48[2298]]= function(_0x43b0x2){var _0x43b0x3=_0x43b0x2[_0x5b48[124]][mxConstants[_0x5b48[2566]]];if(null!= _0x43b0x3){return _0x43b0x3};_0x43b0x2= this[_0x5b48[441]][_0x5b48[2291]](_0x43b0x2);return _0x43b0x2== mxEdgeStyle[_0x5b48[2567]]|| _0x43b0x2== mxEdgeStyle[_0x5b48[2568]]|| _0x43b0x2== mxEdgeStyle[_0x5b48[2569]]|| _0x43b0x2== mxEdgeStyle[_0x5b48[2570]]|| _0x43b0x2== mxEdgeStyle[_0x5b48[2571]]|| _0x43b0x2== mxEdgeStyle[_0x5b48[2572]]};mxGraph[_0x5b48[202]][_0x5b48[2573]]= function(_0x43b0x2){var _0x43b0x3=_0x43b0x2[_0x5b48[2089]](!0);_0x43b0x2= _0x43b0x2[_0x5b48[2089]](!1);return null!= _0x43b0x3&& _0x43b0x3== _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[2574]]= function(_0x43b0x2){return mxEvent[_0x5b48[775]](_0x43b0x2)};mxGraph[_0x5b48[202]][_0x5b48[2462]]= function(_0x43b0x2){return mxClient[_0x5b48[2575]]?mxEvent[_0x5b48[2576]](_0x43b0x2):mxEvent[_0x5b48[775]](_0x43b0x2)};mxGraph[_0x5b48[202]][_0x5b48[1018]]= function(_0x43b0x2){return null!= _0x43b0x2&& !mxEvent[_0x5b48[2577]](_0x43b0x2)};mxGraph[_0x5b48[202]][_0x5b48[2578]]= function(_0x43b0x2){return mxEvent[_0x5b48[774]](_0x43b0x2)};mxGraph[_0x5b48[202]][_0x5b48[2579]]= function(_0x43b0x2){return mxEvent[_0x5b48[2577]](_0x43b0x2)};mxGraph[_0x5b48[202]][_0x5b48[2580]]= function(_0x43b0x2){mxUtils[_0x5b48[150]](_0x43b0x2)};mxGraph[_0x5b48[202]][_0x5b48[2581]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){return null== this[_0x5b48[2500]](_0x43b0x2,_0x43b0x3,_0x43b0x4)};mxGraph[_0x5b48[202]][_0x5b48[2500]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){if(null!= _0x43b0x2&& !this[_0x5b48[2530]]()&& (null== _0x43b0x3|| null== _0x43b0x4)){return _0x5b48[110]};if(null!= _0x43b0x2&& null== this[_0x5b48[251]][_0x5b48[1709]](_0x43b0x2,!0)&& null== this[_0x5b48[251]][_0x5b48[1709]](_0x43b0x2,!1)){return null};if(!this[_0x5b48[2402]]&& _0x43b0x3== _0x43b0x4&& null!= _0x43b0x3 || !this[_0x5b48[2582]](_0x43b0x3,_0x43b0x4)){return _0x5b48[110]};if(null!= _0x43b0x3&& null!= _0x43b0x4){var _0x43b0x5=_0x5b48[110];if(!this[_0x5b48[2404]]){var _0x43b0x9=this[_0x5b48[251]][_0x5b48[1781]](_0x43b0x3,_0x43b0x4,!0);if(1< _0x43b0x9[_0x5b48[67]]|| 1== _0x43b0x9[_0x5b48[67]]&& _0x43b0x9[0]!= _0x43b0x2){_0x43b0x5+= (mxResources[_0x5b48[203]](this[_0x5b48[2421]])|| this[_0x5b48[2421]])+ _0x5b48[192]}};var _0x43b0x9=this[_0x5b48[251]][_0x5b48[1962]](_0x43b0x3,!0,_0x43b0x2),_0x43b0xa=this[_0x5b48[251]][_0x5b48[1962]](_0x43b0x4,!1,_0x43b0x2);if(null!= this[_0x5b48[2335]]){for(var _0x43b0x12=0;_0x43b0x12< this[_0x5b48[2335]][_0x5b48[67]];_0x43b0x12++){var _0x43b0x13=this[_0x5b48[2335]][_0x43b0x12][_0x5b48[2583]](this,_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x9,_0x43b0xa);null!= _0x43b0x13&& (_0x43b0x5+= _0x43b0x13)}};_0x43b0x13= this[_0x5b48[2584]](_0x43b0x2,_0x43b0x3,_0x43b0x4);null!= _0x43b0x13&& (_0x43b0x5+= _0x43b0x13);return 0< _0x43b0x5[_0x5b48[67]]?_0x43b0x5:null};return this[_0x5b48[2406]]?null:_0x5b48[110]};mxGraph[_0x5b48[202]][_0x5b48[2584]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){return null};mxGraph[_0x5b48[202]][_0x5b48[2585]]= function(_0x43b0x2,_0x43b0x3){_0x43b0x2= null!= _0x43b0x2?_0x43b0x2:this[_0x5b48[251]][_0x5b48[501]]();_0x43b0x3= null!= _0x43b0x3?_0x43b0x3:{};for(var _0x43b0x4=!0,_0x43b0x5=this[_0x5b48[251]][_0x5b48[262]](_0x43b0x2),_0x43b0x9=0;_0x43b0x9< _0x43b0x5;_0x43b0x9++){var _0x43b0xa=this[_0x5b48[251]][_0x5b48[263]](_0x43b0x2,_0x43b0x9),_0x43b0x12=_0x43b0x3;this[_0x5b48[2553]](_0x43b0xa)&& (_0x43b0x12= {});_0x43b0x12= this[_0x5b48[2585]](_0x43b0xa,_0x43b0x12);null!= _0x43b0x12?this[_0x5b48[2447]](_0x43b0xa,_0x43b0x12[_0x5b48[230]](/\n/g,_0x5b48[545])):this[_0x5b48[2447]](_0x43b0xa,null);_0x43b0x4= _0x43b0x4&& null== _0x43b0x12};_0x43b0x5= _0x5b48[110];this[_0x5b48[1742]](_0x43b0x2)&& !_0x43b0x4&& (_0x43b0x5+= (mxResources[_0x5b48[203]](this[_0x5b48[2423]])|| this[_0x5b48[2423]])+ _0x5b48[192]);_0x43b0x5= this[_0x5b48[251]][_0x5b48[250]](_0x43b0x2)?_0x43b0x5+ (this[_0x5b48[2500]](_0x43b0x2,this[_0x5b48[251]][_0x5b48[1709]](_0x43b0x2,!0),this[_0x5b48[251]][_0x5b48[1709]](_0x43b0x2,!1))|| _0x5b48[110]):_0x43b0x5+ (this[_0x5b48[2586]](_0x43b0x2)|| _0x5b48[110]);_0x43b0x9= this[_0x5b48[2587]](_0x43b0x2,_0x43b0x3);null!= _0x43b0x9&& (_0x43b0x5+= _0x43b0x9);null== this[_0x5b48[251]][_0x5b48[1197]](_0x43b0x2)&& this[_0x5b48[441]][_0x5b48[2264]]();return 0< _0x43b0x5[_0x5b48[67]]|| !_0x43b0x4?_0x43b0x5:null};mxGraph[_0x5b48[202]][_0x5b48[2586]]= function(_0x43b0x2){var _0x43b0x3=this[_0x5b48[251]][_0x5b48[1962]](_0x43b0x2,!0),_0x43b0x4=this[_0x5b48[251]][_0x5b48[1962]](_0x43b0x2,!1);_0x43b0x2= this[_0x5b48[251]][_0x5b48[433]](_0x43b0x2);var _0x43b0x5=_0x5b48[110];if(null!= this[_0x5b48[2335]]){for(var _0x43b0x9=0;_0x43b0x9< this[_0x5b48[2335]][_0x5b48[67]];_0x43b0x9++){var _0x43b0xa=this[_0x5b48[2335]][_0x43b0x9];if(_0x43b0xa[_0x5b48[1097]]&& mxUtils[_0x5b48[1331]](_0x43b0x2,_0x43b0xa[_0x5b48[60]],_0x43b0xa[_0x5b48[2588]],_0x43b0xa[_0x5b48[131]])&& (0== _0x43b0xa[_0x5b48[160]]&& 0< _0x43b0x3|| 1== _0x43b0xa[_0x5b48[243]]&& 0== _0x43b0x3|| 1== _0x43b0xa[_0x5b48[160]]&& 1< _0x43b0x3)){_0x43b0x5+= _0x43b0xa[_0x5b48[2589]]+ _0x5b48[192]}else {if(!_0x43b0xa[_0x5b48[1097]]&& mxUtils[_0x5b48[1331]](_0x43b0x2,_0x43b0xa[_0x5b48[60]],_0x43b0xa[_0x5b48[2588]],_0x43b0xa[_0x5b48[131]]) && (0== _0x43b0xa[_0x5b48[160]]&& 0< _0x43b0x4|| 1== _0x43b0xa[_0x5b48[243]]&& 0== _0x43b0x4|| 1== _0x43b0xa[_0x5b48[160]]&& 1< _0x43b0x4)){_0x43b0x5+= _0x43b0xa[_0x5b48[2589]]+ _0x5b48[192]}}}};return 0< _0x43b0x5[_0x5b48[67]]?_0x43b0x5:null};mxGraph[_0x5b48[202]][_0x5b48[2587]]= function(_0x43b0x2,_0x43b0x3){return null};mxGraph[_0x5b48[202]][_0x5b48[2271]]= function(){return this[_0x5b48[1617]]};mxGraph[_0x5b48[202]][_0x5b48[2590]]= function(_0x43b0x2){this[_0x5b48[1617]]= _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[2205]]= function(_0x43b0x2){if(null!= _0x43b0x2&& this[_0x5b48[2206]]&& !this[_0x5b48[502]]()[_0x5b48[250]](_0x43b0x2[_0x5b48[246]])){var _0x43b0x3=this[_0x5b48[1742]](_0x43b0x2[_0x5b48[246]]);if(this[_0x5b48[2516]](_0x43b0x2[_0x5b48[246]],!_0x43b0x3)){return _0x43b0x3?this[_0x5b48[2415]]:this[_0x5b48[2417]]}};return null};mxGraph[_0x5b48[202]][_0x5b48[2454]]= function(_0x43b0x2){_0x43b0x2= this[_0x5b48[251]][_0x5b48[433]](_0x43b0x2);if(null!= _0x43b0x2){if(mxUtils[_0x5b48[1331]](_0x43b0x2)){return _0x43b0x2[_0x5b48[301]]};if(_0x5b48[279]== typeof _0x43b0x2[_0x5b48[2591]]){return _0x43b0x2.toString()}};return _0x5b48[110]};mxGraph[_0x5b48[202]][_0x5b48[2183]]= function(_0x43b0x2){var _0x43b0x3=_0x5b48[110];if(this[_0x5b48[2409]]&& null!= _0x43b0x2){var _0x43b0x4=this[_0x5b48[441]][_0x5b48[248]](_0x43b0x2),_0x43b0x4=null!= _0x43b0x4?_0x43b0x4[_0x5b48[124]]:this[_0x5b48[1705]](_0x43b0x2);mxUtils[_0x5b48[433]](_0x43b0x4,mxConstants.STYLE_NOLABEL,!1)|| (_0x43b0x3= this[_0x5b48[2454]](_0x43b0x2))};return _0x43b0x3};mxGraph[_0x5b48[202]][_0x5b48[2186]]= function(_0x43b0x2){return this[_0x5b48[2592]]()};mxGraph[_0x5b48[202]][_0x5b48[2592]]= function(){return this[_0x5b48[2410]]};mxGraph[_0x5b48[202]][_0x5b48[2593]]= function(_0x43b0x2){this[_0x5b48[2410]]= _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[2131]]= function(_0x43b0x2){var _0x43b0x3=this[_0x5b48[441]][_0x5b48[248]](_0x43b0x2);_0x43b0x2= null!= _0x43b0x3?_0x43b0x3[_0x5b48[124]]:this[_0x5b48[1705]](_0x43b0x2);return null!= _0x43b0x2?_0x5b48[1333]== _0x43b0x2[mxConstants[_0x5b48[2594]]]:!1};mxGraph[_0x5b48[202]][_0x5b48[2130]]= function(_0x43b0x2){var _0x43b0x3=this[_0x5b48[441]][_0x5b48[248]](_0x43b0x2);_0x43b0x2= null!= _0x43b0x3?_0x43b0x3[_0x5b48[124]]:this[_0x5b48[1705]](_0x43b0x2);return null!= _0x43b0x2?_0x5b48[188]== _0x43b0x2[mxConstants[_0x5b48[2193]]]:!1};mxGraph[_0x5b48[202]][_0x5b48[2595]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){var _0x43b0x9=null;if(null!= _0x43b0x2){if(null!= _0x43b0x2[_0x5b48[2207]]&& (_0x43b0x3== _0x43b0x2[_0x5b48[2207]][_0x5b48[252]]|| _0x43b0x3[_0x5b48[265]]== _0x43b0x2[_0x5b48[2207]][_0x5b48[252]])){_0x43b0x9= this[_0x5b48[2425]],_0x43b0x9= mxResources[_0x5b48[203]](_0x43b0x9)|| _0x43b0x9};null== _0x43b0x9&& null!= _0x43b0x2[_0x5b48[1211]]&& _0x43b0x2[_0x5b48[1211]][_0x5b48[209]](function(_0x43b0x2,_0x43b0x4){if(null== _0x43b0x9&& (_0x43b0x3== _0x43b0x4[_0x5b48[252]]|| _0x43b0x3[_0x5b48[265]]== _0x43b0x4[_0x5b48[252]])){_0x43b0x9= _0x43b0x4[_0x5b48[2201]].toString()}});null== _0x43b0x9&& (_0x43b0x4= this[_0x5b48[2432]][_0x5b48[2596]](_0x43b0x2[_0x5b48[246]]),null!= _0x43b0x4&& _0x5b48[279]== typeof _0x43b0x4[_0x5b48[2597]]&& (_0x43b0x9= _0x43b0x4[_0x5b48[2597]](_0x43b0x3)));null== _0x43b0x9&& (_0x43b0x9= this[_0x5b48[2598]](_0x43b0x2[_0x5b48[246]]))};return _0x43b0x9};mxGraph[_0x5b48[202]][_0x5b48[2598]]= function(_0x43b0x2){var _0x43b0x3=null;return _0x43b0x3= null!= _0x43b0x2&& null!= _0x43b0x2[_0x5b48[2595]]?_0x43b0x2[_0x5b48[2595]]():this[_0x5b48[2454]](_0x43b0x2)};mxGraph[_0x5b48[202]][_0x5b48[2599]]= function(_0x43b0x2){return null};mxGraph[_0x5b48[202]][_0x5b48[1731]]= function(_0x43b0x2){var _0x43b0x3= new mxRectangle,_0x43b0x4=this[_0x5b48[441]][_0x5b48[248]](_0x43b0x2);_0x43b0x2= null!= _0x43b0x4?_0x43b0x4[_0x5b48[124]]:this[_0x5b48[1705]](_0x43b0x2);null!= _0x43b0x2&& (_0x43b0x4= parseInt(mxUtils[_0x5b48[433]](_0x43b0x2,mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE)),mxUtils[_0x5b48[433]](_0x43b0x2,mxConstants.STYLE_HORIZONTAL,!0)?_0x43b0x3[_0x5b48[119]]= _0x43b0x4:_0x43b0x3[_0x5b48[117]]= _0x43b0x4);return _0x43b0x3};mxGraph[_0x5b48[202]][_0x5b48[1202]]= function(_0x43b0x2){return null!= _0x43b0x2&& null!= _0x43b0x2[_0x5b48[124]]?_0x43b0x2[_0x5b48[124]][mxConstants[_0x5b48[2484]]]:null};mxGraph[_0x5b48[202]][_0x5b48[2187]]= function(_0x43b0x2){return null!= _0x43b0x2&& null!= _0x43b0x2[_0x5b48[124]]?_0x43b0x2[_0x5b48[124]][mxConstants[_0x5b48[2063]]]|| mxConstants[_0x5b48[481]]:null};mxGraph[_0x5b48[202]][_0x5b48[2173]]= function(_0x43b0x2){return null!= _0x43b0x2&& null!= _0x43b0x2[_0x5b48[124]]?_0x43b0x2[_0x5b48[124]][mxConstants[_0x5b48[2600]]]:null};mxGraph[_0x5b48[202]][_0x5b48[2174]]= function(_0x43b0x2){return null!= _0x43b0x2&& null!= _0x43b0x2[_0x5b48[124]]?_0x43b0x2[_0x5b48[124]][mxConstants[_0x5b48[2601]]]:null};mxGraph[_0x5b48[202]][_0x5b48[2172]]= function(_0x43b0x2){return null!= _0x43b0x2&& null!= _0x43b0x2[_0x5b48[124]]?_0x43b0x2[_0x5b48[124]][mxConstants[_0x5b48[2602]]]:null};mxGraph[_0x5b48[202]][_0x5b48[2176]]= function(_0x43b0x2){return null!= _0x43b0x2&& null!= _0x43b0x2[_0x5b48[124]]?_0x43b0x2[_0x5b48[124]][mxConstants[_0x5b48[2603]]]:null};mxGraph[_0x5b48[202]][_0x5b48[2476]]= function(){return this[_0x5b48[467]]};mxGraph[_0x5b48[202]][_0x5b48[2604]]= function(_0x43b0x2){this[_0x5b48[467]]= _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[1730]]= function(_0x43b0x2){if(null!= _0x43b0x2&& this[_0x5b48[251]][_0x5b48[1197]](_0x43b0x2)!= this[_0x5b48[251]][_0x5b48[501]]()){var _0x43b0x3=this[_0x5b48[441]][_0x5b48[248]](_0x43b0x2),_0x43b0x3=null!= _0x43b0x3?_0x43b0x3[_0x5b48[124]]:this[_0x5b48[1705]](_0x43b0x2);if(null!= _0x43b0x3&& !this[_0x5b48[251]][_0x5b48[250]](_0x43b0x2)){return _0x43b0x3[mxConstants[_0x5b48[2059]]]== mxConstants[_0x5b48[2605]]}};return !1};mxGraph[_0x5b48[202]][_0x5b48[2606]]= function(){return this[_0x5b48[2389]]};mxGraph[_0x5b48[202]][_0x5b48[2607]]= function(_0x43b0x2){this[_0x5b48[2389]]= _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[994]]= function(){return this[_0x5b48[984]]};mxGraph[_0x5b48[202]][_0x5b48[995]]= function(_0x43b0x2){this[_0x5b48[984]]= _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[2608]]= function(){return this[_0x5b48[2362]]};mxGraph[_0x5b48[202]][_0x5b48[2609]]= function(_0x43b0x2){this[_0x5b48[2362]]= _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[2134]]= function(){return this[_0x5b48[2363]]};mxGraph[_0x5b48[202]][_0x5b48[2610]]= function(_0x43b0x2){this[_0x5b48[2363]]= _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[2125]]= function(){return this[_0x5b48[2364]]};mxGraph[_0x5b48[202]][_0x5b48[2611]]= function(_0x43b0x2){this[_0x5b48[2364]]= _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[2612]]= function(_0x43b0x2){var _0x43b0x3=this[_0x5b48[251]][_0x5b48[1721]](_0x43b0x2);return this[_0x5b48[2613]]()|| null!= _0x43b0x3&& this[_0x5b48[251]][_0x5b48[1193]](_0x43b0x2)&& _0x43b0x3[_0x5b48[1500]]};mxGraph[_0x5b48[202]][_0x5b48[2613]]= function(){return this[_0x5b48[2368]]};mxGraph[_0x5b48[202]][_0x5b48[2614]]= function(_0x43b0x2){this[_0x5b48[2368]]= _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[2615]]= function(_0x43b0x2){return this[_0x5b48[251]][_0x5b48[1938]](_0x43b0x2,mxUtils[_0x5b48[885]](this,function(_0x43b0x2){return this[_0x5b48[2616]](_0x43b0x2)}))};mxGraph[_0x5b48[202]][_0x5b48[2616]]= function(_0x43b0x2){var _0x43b0x3=this[_0x5b48[441]][_0x5b48[248]](_0x43b0x2);_0x43b0x2= null!= _0x43b0x3?_0x43b0x3[_0x5b48[124]]:this[_0x5b48[1705]](_0x43b0x2);return this[_0x5b48[2617]]()&& 0!= _0x43b0x2[mxConstants[_0x5b48[2618]]]};mxGraph[_0x5b48[202]][_0x5b48[2617]]= function(){return this[_0x5b48[2369]]};mxGraph[_0x5b48[202]][_0x5b48[2619]]= function(_0x43b0x2){this[_0x5b48[2369]]= _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[898]]= function(_0x43b0x2){return this[_0x5b48[251]][_0x5b48[1938]](_0x43b0x2,mxUtils[_0x5b48[885]](this,function(_0x43b0x2){return this[_0x5b48[2620]](_0x43b0x2)}))};mxGraph[_0x5b48[202]][_0x5b48[2620]]= function(_0x43b0x2){return this[_0x5b48[2366]]};mxGraph[_0x5b48[202]][_0x5b48[900]]= function(_0x43b0x2){return this[_0x5b48[251]][_0x5b48[1938]](_0x43b0x2,mxUtils[_0x5b48[885]](this,function(_0x43b0x2){return this[_0x5b48[2621]](_0x43b0x2)}))};mxGraph[_0x5b48[202]][_0x5b48[2621]]= function(_0x43b0x2){return this[_0x5b48[2367]]};mxGraph[_0x5b48[202]][_0x5b48[2102]]= function(_0x43b0x2){return this[_0x5b48[2622]]()};mxGraph[_0x5b48[202]][_0x5b48[2622]]= function(){return this[_0x5b48[2379]]};mxGraph[_0x5b48[202]][_0x5b48[2623]]= function(_0x43b0x2){this[_0x5b48[2379]]= _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[2510]]= function(_0x43b0x2){return this[_0x5b48[251]][_0x5b48[1938]](_0x43b0x2,mxUtils[_0x5b48[885]](this,function(_0x43b0x2){return this[_0x5b48[2624]](_0x43b0x2)}))};mxGraph[_0x5b48[202]][_0x5b48[2624]]= function(_0x43b0x2){var _0x43b0x3=this[_0x5b48[441]][_0x5b48[248]](_0x43b0x2);_0x43b0x2= null!= _0x43b0x3?_0x43b0x3[_0x5b48[124]]:this[_0x5b48[1705]](_0x43b0x2);return this[_0x5b48[2625]]()&& 0!= _0x43b0x2[mxConstants[_0x5b48[2626]]]};mxGraph[_0x5b48[202]][_0x5b48[2625]]= function(){return this[_0x5b48[2371]]};mxGraph[_0x5b48[202]][_0x5b48[2627]]= function(_0x43b0x2){this[_0x5b48[2371]]= _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[2628]]= function(_0x43b0x2){return !this[_0x5b48[2612]](_0x43b0x2)&& (this[_0x5b48[251]][_0x5b48[250]](_0x43b0x2)&& this[_0x5b48[2373]]|| this[_0x5b48[251]][_0x5b48[1193]](_0x43b0x2)&& this[_0x5b48[2374]])};mxGraph[_0x5b48[202]][_0x5b48[2629]]= function(_0x43b0x2){return this[_0x5b48[251]][_0x5b48[1938]](_0x43b0x2,mxUtils[_0x5b48[885]](this,function(_0x43b0x2){return this[_0x5b48[1712]](_0x43b0x2)}))};mxGraph[_0x5b48[202]][_0x5b48[1712]]= function(_0x43b0x2){var _0x43b0x3=this[_0x5b48[441]][_0x5b48[248]](_0x43b0x2),_0x43b0x3=null!= _0x43b0x3?_0x43b0x3[_0x5b48[124]]:this[_0x5b48[1705]](_0x43b0x2);return this[_0x5b48[2630]]()&& !this[_0x5b48[2612]](_0x43b0x2)&& 0!= _0x43b0x3[mxConstants[_0x5b48[2631]]]};mxGraph[_0x5b48[202]][_0x5b48[2630]]= function(){return this[_0x5b48[2372]]};mxGraph[_0x5b48[202]][_0x5b48[2632]]= function(_0x43b0x2){this[_0x5b48[2372]]= _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[997]]= function(){return this[_0x5b48[991]]};mxGraph[_0x5b48[202]][_0x5b48[998]]= function(_0x43b0x2){this[_0x5b48[991]]= _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[2549]]= function(){return this[_0x5b48[2348]]};mxGraph[_0x5b48[202]][_0x5b48[2633]]= function(_0x43b0x2){this[_0x5b48[2348]]= _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[2634]]= function(){return this[_0x5b48[1020]]};mxGraph[_0x5b48[202]][_0x5b48[2635]]= function(_0x43b0x2){this[_0x5b48[1020]]= _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[2636]]= function(){return this[_0x5b48[2353]]};mxGraph[_0x5b48[202]][_0x5b48[2637]]= function(_0x43b0x2){this[_0x5b48[2353]]= _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[2638]]= function(){return this[_0x5b48[2374]]};mxGraph[_0x5b48[202]][_0x5b48[2639]]= function(_0x43b0x2){this[_0x5b48[2374]]= _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[2640]]= function(){return this[_0x5b48[2373]]};mxGraph[_0x5b48[202]][_0x5b48[2641]]= function(_0x43b0x2){this[_0x5b48[2373]]= _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[2642]]= function(){return this[_0x5b48[2412]]};mxGraph[_0x5b48[202]][_0x5b48[2643]]= function(_0x43b0x2){this[_0x5b48[2412]]= _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[2460]]= function(){return this[_0x5b48[2411]]};mxGraph[_0x5b48[202]][_0x5b48[2644]]= function(_0x43b0x2){this[_0x5b48[2411]]= _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[2645]]= function(){return this[_0x5b48[2404]]};mxGraph[_0x5b48[202]][_0x5b48[2646]]= function(_0x43b0x2){this[_0x5b48[2404]]= _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[2647]]= function(){return this[_0x5b48[2402]]};mxGraph[_0x5b48[202]][_0x5b48[2648]]= function(_0x43b0x2){this[_0x5b48[2406]]= _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[2530]]= function(){return this[_0x5b48[2406]]};mxGraph[_0x5b48[202]][_0x5b48[2649]]= function(_0x43b0x2){this[_0x5b48[2405]]= _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[2650]]= function(){return this[_0x5b48[2405]]};mxGraph[_0x5b48[202]][_0x5b48[2651]]= function(_0x43b0x2){this[_0x5b48[2407]]= _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[2527]]= function(){return this[_0x5b48[2407]]};mxGraph[_0x5b48[202]][_0x5b48[2652]]= function(_0x43b0x2){this[_0x5b48[2402]]= _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[2529]]= function(){return this[_0x5b48[2408]]};mxGraph[_0x5b48[202]][_0x5b48[2653]]= function(_0x43b0x2){this[_0x5b48[2408]]= _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[1015]]= function(){return this[_0x5b48[2375]]};mxGraph[_0x5b48[202]][_0x5b48[2654]]= function(_0x43b0x2){this[_0x5b48[2375]]= _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[2655]]= function(){return this[_0x5b48[2376]]};mxGraph[_0x5b48[202]][_0x5b48[2656]]= function(_0x43b0x2){this[_0x5b48[2376]]= _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[2657]]= function(_0x43b0x2){var _0x43b0x3=this[_0x5b48[441]][_0x5b48[248]](_0x43b0x2),_0x43b0x3=null!= _0x43b0x3?_0x43b0x3[_0x5b48[124]]:this[_0x5b48[1705]](_0x43b0x2);return this[_0x5b48[2658]]()&& !this[_0x5b48[2612]](_0x43b0x2)&& 0!= _0x43b0x3[mxConstants[_0x5b48[2659]]]};mxGraph[_0x5b48[202]][_0x5b48[2658]]= function(){return this[_0x5b48[2377]]};mxGraph[_0x5b48[202]][_0x5b48[2660]]= function(_0x43b0x2){this[_0x5b48[2377]]= _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[2661]]= function(_0x43b0x2,_0x43b0x3){return !0};mxGraph[_0x5b48[202]][_0x5b48[2662]]= function(_0x43b0x2){var _0x43b0x3=this[_0x5b48[441]][_0x5b48[248]](_0x43b0x2),_0x43b0x3=null!= _0x43b0x3?_0x43b0x3[_0x5b48[124]]:this[_0x5b48[1705]](_0x43b0x2);return this[_0x5b48[2663]]()&& !this[_0x5b48[2612]](_0x43b0x2)&& 0!= _0x43b0x3[mxConstants[_0x5b48[2664]]]};mxGraph[_0x5b48[202]][_0x5b48[2663]]= function(){return this[_0x5b48[2378]]};mxGraph[_0x5b48[202]][_0x5b48[2665]]= function(_0x43b0x2){this[_0x5b48[2378]]= _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[2453]]= function(_0x43b0x2){var _0x43b0x3=this[_0x5b48[441]][_0x5b48[248]](_0x43b0x2),_0x43b0x3=null!= _0x43b0x3?_0x43b0x3[_0x5b48[124]]:this[_0x5b48[1705]](_0x43b0x2);return this[_0x5b48[2666]]()&& !this[_0x5b48[2612]](_0x43b0x2)&& 0!= _0x43b0x3[mxConstants[_0x5b48[2667]]]};mxGraph[_0x5b48[202]][_0x5b48[2666]]= function(){return this[_0x5b48[2370]]};mxGraph[_0x5b48[202]][_0x5b48[2668]]= function(_0x43b0x2){this[_0x5b48[2370]]= _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[2551]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){return this[_0x5b48[2669]]()&& !this[_0x5b48[2612]](_0x43b0x2)};mxGraph[_0x5b48[202]][_0x5b48[2669]]= function(){return this[_0x5b48[2380]]};mxGraph[_0x5b48[202]][_0x5b48[2670]]= function(_0x43b0x2){this[_0x5b48[2380]]= _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[2671]]= function(_0x43b0x2){return null== _0x43b0x2&& this[_0x5b48[2406]]|| null!= _0x43b0x2&& (!this[_0x5b48[251]][_0x5b48[250]](_0x43b0x2)|| this[_0x5b48[2405]])&& this[_0x5b48[2565]](_0x43b0x2)};mxGraph[_0x5b48[202]][_0x5b48[2672]]= function(_0x43b0x2){return this[_0x5b48[2671]](_0x43b0x2)};mxGraph[_0x5b48[202]][_0x5b48[2582]]= function(_0x43b0x2,_0x43b0x3){return this[_0x5b48[2671]](_0x43b0x2)&& this[_0x5b48[2672]](_0x43b0x3)};mxGraph[_0x5b48[202]][_0x5b48[1995]]= function(_0x43b0x2){this[_0x5b48[2433]][_0x5b48[995]](_0x43b0x2)};mxGraph[_0x5b48[202]][_0x5b48[1965]]= function(_0x43b0x2){return this[_0x5b48[2433]][_0x5b48[994]]()};mxGraph[_0x5b48[202]][_0x5b48[2673]]= function(_0x43b0x2){this[_0x5b48[2276]][_0x5b48[995]](_0x43b0x2)};mxGraph[_0x5b48[202]][_0x5b48[2674]]= function(_0x43b0x2){this[_0x5b48[2316]][_0x5b48[2431]]= _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[2203]]= function(_0x43b0x2){if(null!= this[_0x5b48[2347]]){var _0x43b0x3=this[_0x5b48[2347]][_0x5b48[2148]]();return null== _0x43b0x2?null!= _0x43b0x3:_0x43b0x2== _0x43b0x3};return !1};mxGraph[_0x5b48[202]][_0x5b48[2455]]= function(_0x43b0x2){var _0x43b0x3=this[_0x5b48[441]][_0x5b48[248]](_0x43b0x2);_0x43b0x2= null!= _0x43b0x3?_0x43b0x3[_0x5b48[124]]:this[_0x5b48[1705]](_0x43b0x2);return this[_0x5b48[2675]]()|| 1== _0x43b0x2[mxConstants[_0x5b48[2676]]]};mxGraph[_0x5b48[202]][_0x5b48[2675]]= function(){return this[_0x5b48[2381]]};mxGraph[_0x5b48[202]][_0x5b48[2677]]= function(_0x43b0x2){this[_0x5b48[2381]]= _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[2507]]= function(_0x43b0x2){return !this[_0x5b48[502]]()[_0x5b48[250]](_0x43b0x2)&& this[_0x5b48[2678]]()};mxGraph[_0x5b48[202]][_0x5b48[2678]]= function(){return this[_0x5b48[2392]]};mxGraph[_0x5b48[202]][_0x5b48[2679]]= function(_0x43b0x2){this[_0x5b48[2392]]= _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[2506]]= function(){return this[_0x5b48[2393]]};mxGraph[_0x5b48[202]][_0x5b48[2680]]= function(_0x43b0x2){this[_0x5b48[2393]]= _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[2536]]= function(_0x43b0x2){return this[_0x5b48[2681]]()&& !this[_0x5b48[502]]()[_0x5b48[250]](this[_0x5b48[502]]()[_0x5b48[1197]](_0x43b0x2))};mxGraph[_0x5b48[202]][_0x5b48[2681]]= function(){return this[_0x5b48[2391]]};mxGraph[_0x5b48[202]][_0x5b48[2682]]= function(_0x43b0x2){this[_0x5b48[2391]]= _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[2505]]= function(){return this[_0x5b48[2390]]};mxGraph[_0x5b48[202]][_0x5b48[2528]]= function(_0x43b0x2){this[_0x5b48[2390]]= _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[2537]]= function(_0x43b0x2){return this[_0x5b48[2683]](_0x43b0x2)?this[_0x5b48[2354]]:0};mxGraph[_0x5b48[202]][_0x5b48[2683]]= function(_0x43b0x2){return !1};mxGraph[_0x5b48[202]][_0x5b48[2513]]= function(_0x43b0x2,_0x43b0x3){return this[_0x5b48[251]][_0x5b48[1938]](_0x43b0x2,mxUtils[_0x5b48[885]](this,function(_0x43b0x2){return this[_0x5b48[2516]](_0x43b0x2,_0x43b0x3)}))};mxGraph[_0x5b48[202]][_0x5b48[2516]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=this[_0x5b48[441]][_0x5b48[248]](_0x43b0x2),_0x43b0x4=null!= _0x43b0x4?_0x43b0x4[_0x5b48[124]]:this[_0x5b48[1705]](_0x43b0x2);return 0< this[_0x5b48[251]][_0x5b48[262]](_0x43b0x2)&& 0!= _0x43b0x4[mxConstants[_0x5b48[2684]]]};mxGraph[_0x5b48[202]][_0x5b48[2685]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){return null!= _0x43b0x2&& (this[_0x5b48[2655]]()&& this[_0x5b48[2686]](_0x43b0x2,_0x43b0x3,_0x43b0x4)|| !this[_0x5b48[251]][_0x5b48[250]](_0x43b0x2)&& (this[_0x5b48[1730]](_0x43b0x2)|| 0< this[_0x5b48[251]][_0x5b48[262]](_0x43b0x2)&& !this[_0x5b48[1742]](_0x43b0x2)))};mxGraph[_0x5b48[202]][_0x5b48[2686]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){return this[_0x5b48[251]][_0x5b48[250]](_0x43b0x2)&& null!= _0x43b0x3&& 1== _0x43b0x3[_0x5b48[67]]&& this[_0x5b48[2565]](_0x43b0x3[0])&& null== this[_0x5b48[2500]](_0x43b0x2,this[_0x5b48[251]][_0x5b48[1709]](_0x43b0x2,!0),_0x43b0x3[0])?(_0x43b0x4= this[_0x5b48[251]][_0x5b48[1709]](_0x43b0x2,!0),_0x43b0x2= this[_0x5b48[251]][_0x5b48[1709]](_0x43b0x2,!1),!this[_0x5b48[251]][_0x5b48[1720]](_0x43b0x3[0],_0x43b0x4)&& !this[_0x5b48[251]][_0x5b48[1720]](_0x43b0x3[0],_0x43b0x2)):!1};mxGraph[_0x5b48[202]][_0x5b48[564]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){if(!this[_0x5b48[2642]]()){for(var _0x43b0x5=0;_0x43b0x5< _0x43b0x2[_0x5b48[67]];_0x43b0x5++){if(this[_0x5b48[1730]](_0x43b0x2[_0x43b0x5])){return null}}};_0x43b0x5= mxUtils[_0x5b48[2196]](this[_0x5b48[526]],mxEvent[_0x5b48[731]](_0x43b0x3),mxEvent[_0x5b48[733]](_0x43b0x3));_0x43b0x5[_0x5b48[235]]-= this[_0x5b48[1136]];_0x43b0x5[_0x5b48[236]]-= this[_0x5b48[1137]];_0x43b0x5= this[_0x5b48[2461]](_0x43b0x5[_0x5b48[235]],_0x43b0x5[_0x5b48[236]]);if(null== _0x43b0x4){_0x43b0x4= _0x43b0x5}else {if(null!= _0x43b0x5){for(var _0x43b0x9=this[_0x5b48[251]][_0x5b48[1197]](_0x43b0x5);null!= _0x43b0x9&& this[_0x5b48[1730]](_0x43b0x9)&& _0x43b0x9!= _0x43b0x4;){_0x43b0x9= this[_0x5b48[251]][_0x5b48[1197]](_0x43b0x9)};_0x43b0x9== _0x43b0x4&& (_0x43b0x4= _0x43b0x5)}};for(;null!= _0x43b0x4&& !this[_0x5b48[2685]](_0x43b0x4,_0x43b0x2,_0x43b0x3)&& !this[_0x5b48[251]][_0x5b48[1740]](_0x43b0x4);){_0x43b0x4= this[_0x5b48[251]][_0x5b48[1197]](_0x43b0x4)};return !this[_0x5b48[251]][_0x5b48[1740]](_0x43b0x4)&& 0> mxUtils[_0x5b48[2]](_0x43b0x2,_0x43b0x4)?_0x43b0x4:null};mxGraph[_0x5b48[202]][_0x5b48[902]]= function(){var _0x43b0x2=this[_0x5b48[2355]];null== _0x43b0x2&& (_0x43b0x2= this[_0x5b48[2534]](),null== _0x43b0x2&& (_0x43b0x2= this[_0x5b48[251]][_0x5b48[501]](),_0x43b0x2= this[_0x5b48[251]][_0x5b48[263]](_0x43b0x2,0)));return _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[2687]]= function(_0x43b0x2){this[_0x5b48[2355]]= _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[2179]]= function(_0x43b0x2){for(;null!= _0x43b0x2&& !this[_0x5b48[1730]](_0x43b0x2);){_0x43b0x2= this[_0x5b48[251]][_0x5b48[1197]](_0x43b0x2)};return _0x43b0x2};mxGraph[_0x5b48[202]][_0x5b48[2461]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){_0x43b0x4= _0x43b0x4|| this[_0x5b48[902]]();if(null!= _0x43b0x4){for(var _0x43b0x5=this[_0x5b48[251]][_0x5b48[262]](_0x43b0x4),_0x43b0x9=0;_0x43b0x9< _0x43b0x5;_0x43b0x9++){var _0x43b0xa=this[_0x5b48[251]][_0x5b48[263]](_0x43b0x4,_0x43b0x9),_0x43b0x12=this[_0x5b48[2461]](_0x43b0x2,_0x43b0x3,_0x43b0xa);if(null!= _0x43b0x12){return _0x43b0x12};if(this[_0x5b48[1730]](_0x43b0xa)&& (_0x43b0x12= this[_0x5b48[441]][_0x5b48[248]](_0x43b0xa),this[_0x5b48[1825]](_0x43b0x12,_0x43b0x2,_0x43b0x3))){return _0x43b0xa}}};return null};mxGraph[_0x5b48[202]][_0x5b48[999]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){_0x43b0x5= null!= _0x43b0x5?_0x43b0x5:!0;_0x43b0x9= null!= _0x43b0x9?_0x43b0x9:!0;_0x43b0x4= null!= _0x43b0x4?_0x43b0x4:this[_0x5b48[902]]();if(null!= _0x43b0x4){for(var _0x43b0xa=this[_0x5b48[251]][_0x5b48[262]](_0x43b0x4)- 1;0<= _0x43b0xa;_0x43b0xa--){var _0x43b0x12=this[_0x5b48[251]][_0x5b48[263]](_0x43b0x4,_0x43b0xa),_0x43b0x13=this[_0x5b48[999]](_0x43b0x2,_0x43b0x3,_0x43b0x12,_0x43b0x5,_0x43b0x9);if(null!= _0x43b0x13){return _0x43b0x13};if(this[_0x5b48[1714]](_0x43b0x12)&& (_0x43b0x9&& this[_0x5b48[251]][_0x5b48[250]](_0x43b0x12)|| _0x43b0x5&& this[_0x5b48[251]][_0x5b48[1193]](_0x43b0x12))){if(_0x43b0x13= this[_0x5b48[441]][_0x5b48[248]](_0x43b0x12),this[_0x5b48[1825]](_0x43b0x13,_0x43b0x2,_0x43b0x3)){return _0x43b0x12}}}};return null};mxGraph[_0x5b48[202]][_0x5b48[1825]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){if(null!= _0x43b0x2){var _0x43b0x5=_0x43b0x2[_0x5b48[439]];if(null!= _0x43b0x5){_0x43b0x2= this[_0x5b48[2353]]* this[_0x5b48[2353]];for(var _0x43b0x9=_0x43b0x5[0],_0x43b0xa=1;_0x43b0xa< _0x43b0x5[_0x5b48[67]];_0x43b0xa++){var _0x43b0x12=_0x43b0x5[_0x43b0xa];if(mxUtils[_0x5b48[440]](_0x43b0x9[_0x5b48[235]],_0x43b0x9[_0x5b48[236]],_0x43b0x12[_0x5b48[235]],_0x43b0x12[_0x5b48[236]],_0x43b0x3,_0x43b0x4)<= _0x43b0x2){return !0};_0x43b0x9= _0x43b0x12}}else {if(_0x43b0x9= mxUtils[_0x5b48[431]](mxUtils[_0x5b48[433]](_0x43b0x2[_0x5b48[124]],mxConstants.STYLE_ROTATION)|| 0),0!= _0x43b0x9&& (_0x43b0x5= Math[_0x5b48[426]](-_0x43b0x9),_0x43b0x9= Math[_0x5b48[427]](-_0x43b0x9),_0x43b0xa= new mxPoint(_0x43b0x2[_0x5b48[241]](),_0x43b0x2[_0x5b48[242]]()),_0x43b0x9= mxUtils[_0x5b48[432]]( new mxPoint(_0x43b0x3,_0x43b0x4),_0x43b0x5,_0x43b0x9,_0x43b0xa),_0x43b0x3= _0x43b0x9[_0x5b48[235]],_0x43b0x4= _0x43b0x9[_0x5b48[236]]),mxUtils[_0x5b48[442]](_0x43b0x2,_0x43b0x3,_0x43b0x4)){return !0}}};return !1};mxGraph[_0x5b48[202]][_0x5b48[2688]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){var _0x43b0x5=this[_0x5b48[249]]()[_0x5b48[248]](_0x43b0x2);_0x43b0x2= this[_0x5b48[1731]](_0x43b0x2);if(null!= _0x43b0x5){var _0x43b0x9=this[_0x5b48[249]]()[_0x5b48[518]]();_0x43b0x3-= _0x43b0x5[_0x5b48[235]];_0x43b0x4-= _0x43b0x5[_0x5b48[236]];if(0< _0x43b0x2[_0x5b48[117]]&& 0< _0x43b0x3&& _0x43b0x3> _0x43b0x2[_0x5b48[117]]* _0x43b0x9|| 0< _0x43b0x2[_0x5b48[119]]&& 0< _0x43b0x4&& _0x43b0x4> _0x43b0x2[_0x5b48[119]]* _0x43b0x9){return !0}};return !1};mxGraph[_0x5b48[202]][_0x5b48[1728]]= function(_0x43b0x2){return this[_0x5b48[1955]](_0x43b0x2,!0,!1)};mxGraph[_0x5b48[202]][_0x5b48[1956]]= function(_0x43b0x2){return this[_0x5b48[1955]](_0x43b0x2,!1,!0)};mxGraph[_0x5b48[202]][_0x5b48[1955]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){_0x43b0x2= null!= _0x43b0x2?_0x43b0x2:this[_0x5b48[902]]();_0x43b0x2= this[_0x5b48[251]][_0x5b48[1955]](_0x43b0x2,null!= _0x43b0x3?_0x43b0x3:!1,null!= _0x43b0x4?_0x43b0x4:!1);_0x43b0x3= [];for(_0x43b0x4= 0;_0x43b0x4< _0x43b0x2[_0x5b48[67]];_0x43b0x4++){this[_0x5b48[1714]](_0x43b0x2[_0x43b0x4])&& _0x43b0x3[_0x5b48[207]](_0x43b0x2[_0x43b0x4])};return _0x43b0x3};mxGraph[_0x5b48[202]][_0x5b48[1756]]= function(_0x43b0x2,_0x43b0x3){return this[_0x5b48[264]](_0x43b0x2,_0x43b0x3,!0,!0,!1)};mxGraph[_0x5b48[202]][_0x5b48[1867]]= function(_0x43b0x2,_0x43b0x3){return this[_0x5b48[264]](_0x43b0x2,_0x43b0x3,!0,!1,!1)};mxGraph[_0x5b48[202]][_0x5b48[1963]]= function(_0x43b0x2,_0x43b0x3){return this[_0x5b48[264]](_0x43b0x2,_0x43b0x3,!1,!0,!1)};mxGraph[_0x5b48[202]][_0x5b48[264]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa){_0x43b0x4= null!= _0x43b0x4?_0x43b0x4:!0;_0x43b0x5= null!= _0x43b0x5?_0x43b0x5:!0;_0x43b0x9= null!= _0x43b0x9?_0x43b0x9:!0;_0x43b0xa= null!= _0x43b0xa?_0x43b0xa:!1;for(var _0x43b0x12=[],_0x43b0x13=this[_0x5b48[1742]](_0x43b0x2),_0x43b0x14=this[_0x5b48[251]][_0x5b48[262]](_0x43b0x2),_0x43b0x15=0;_0x43b0x15< _0x43b0x14;_0x43b0x15++){var _0x43b0x16=this[_0x5b48[251]][_0x5b48[263]](_0x43b0x2,_0x43b0x15);if(_0x43b0x13|| !this[_0x5b48[1714]](_0x43b0x16)){_0x43b0x12= _0x43b0x12[_0x5b48[1919]](this[_0x5b48[251]][_0x5b48[264]](_0x43b0x16,_0x43b0x4,_0x43b0x5))}};_0x43b0x12= _0x43b0x12[_0x5b48[1919]](this[_0x5b48[251]][_0x5b48[264]](_0x43b0x2,_0x43b0x4,_0x43b0x5));_0x43b0x13= [];for(_0x43b0x15= 0;_0x43b0x15< _0x43b0x12[_0x5b48[67]];_0x43b0x15++){_0x43b0x16= this[_0x5b48[441]][_0x5b48[248]](_0x43b0x12[_0x43b0x15]),_0x43b0x14= null!= _0x43b0x16?_0x43b0x16[_0x5b48[1710]](!0):this[_0x5b48[441]][_0x5b48[1710]](_0x43b0x12[_0x43b0x15],!0),_0x43b0x16= null!= _0x43b0x16?_0x43b0x16[_0x5b48[1710]](!1):this[_0x5b48[441]][_0x5b48[1710]](_0x43b0x12[_0x43b0x15],!1),(_0x43b0x9&& _0x43b0x14== _0x43b0x16|| _0x43b0x14!= _0x43b0x16&& (_0x43b0x4&& _0x43b0x16== _0x43b0x2&& (null== _0x43b0x3|| this[_0x5b48[1920]](_0x43b0x14,_0x43b0x3,_0x43b0xa))|| _0x43b0x5&& _0x43b0x14== _0x43b0x2&& (null== _0x43b0x3|| this[_0x5b48[1920]](_0x43b0x16,_0x43b0x3,_0x43b0xa))))&& _0x43b0x13[_0x5b48[207]](_0x43b0x12[_0x43b0x15])};return _0x43b0x13};mxGraph[_0x5b48[202]][_0x5b48[1920]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){return _0x43b0x4?this[_0x5b48[251]][_0x5b48[1720]](_0x43b0x3,_0x43b0x2):this[_0x5b48[251]][_0x5b48[1197]](_0x43b0x2)== _0x43b0x3};mxGraph[_0x5b48[202]][_0x5b48[1808]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){_0x43b0x4= null!= _0x43b0x4?_0x43b0x4:!0;_0x43b0x5= null!= _0x43b0x5?_0x43b0x5:!0;var _0x43b0x9=[],_0x43b0xa={};if(null!= _0x43b0x2){for(var _0x43b0x12=0;_0x43b0x12< _0x43b0x2[_0x5b48[67]];_0x43b0x12++){var _0x43b0x13=this[_0x5b48[441]][_0x5b48[248]](_0x43b0x2[_0x43b0x12]),_0x43b0x14=null!= _0x43b0x13?_0x43b0x13[_0x5b48[1710]](!0):this[_0x5b48[441]][_0x5b48[1710]](_0x43b0x2[_0x43b0x12],!0),_0x43b0x13=null!= _0x43b0x13?_0x43b0x13[_0x5b48[1710]](!1):this[_0x5b48[441]][_0x5b48[1710]](_0x43b0x2[_0x43b0x12],!1);if(_0x43b0x14== _0x43b0x3&& null!= _0x43b0x13&& _0x43b0x13!= _0x43b0x3&& _0x43b0x5){var _0x43b0x15=mxCellPath[_0x5b48[385]](_0x43b0x13);null== _0x43b0xa[_0x43b0x15]&& (_0x43b0xa[_0x43b0x15]= _0x43b0x13,_0x43b0x9[_0x5b48[207]](_0x43b0x13))}else {_0x43b0x13== _0x43b0x3&& (null!= _0x43b0x14&& _0x43b0x14!= _0x43b0x3&& _0x43b0x4)&& (_0x43b0x15= mxCellPath[_0x5b48[385]](_0x43b0x14),null== _0x43b0xa[_0x43b0x15]&& (_0x43b0xa[_0x43b0x15]= _0x43b0x14,_0x43b0x9[_0x5b48[207]](_0x43b0x14)))}}};return _0x43b0x9};mxGraph[_0x5b48[202]][_0x5b48[1781]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){_0x43b0x4= null!= _0x43b0x4?_0x43b0x4:!1;for(var _0x43b0x5=this[_0x5b48[264]](_0x43b0x2),_0x43b0x9=[],_0x43b0xa=0;_0x43b0xa< _0x43b0x5[_0x5b48[67]];_0x43b0xa++){var _0x43b0x12=this[_0x5b48[441]][_0x5b48[248]](_0x43b0x5[_0x43b0xa]),_0x43b0x13=null!= _0x43b0x12?_0x43b0x12[_0x5b48[1710]](!0):this[_0x5b48[441]][_0x5b48[1710]](_0x43b0x5[_0x43b0xa],!0),_0x43b0x12=null!= _0x43b0x12?_0x43b0x12[_0x5b48[1710]](!1):this[_0x5b48[441]][_0x5b48[1710]](_0x43b0x5[_0x43b0xa],!1);(_0x43b0x13== _0x43b0x2&& _0x43b0x12== _0x43b0x3|| !_0x43b0x4&& _0x43b0x13== _0x43b0x3 && _0x43b0x12== _0x43b0x2)&& _0x43b0x9[_0x5b48[207]](_0x43b0x5[_0x43b0xa])};return _0x43b0x9};mxGraph[_0x5b48[202]][_0x5b48[2689]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=mxUtils[_0x5b48[2196]](this[_0x5b48[526]],mxEvent[_0x5b48[731]](_0x43b0x2),mxEvent[_0x5b48[733]](_0x43b0x2)),_0x43b0x5=this[_0x5b48[441]][_0x5b48[255]],_0x43b0x9=this[_0x5b48[441]][_0x5b48[513]],_0x43b0xa=!1!= _0x43b0x3?this[_0x5b48[1020]]/ 2:0;_0x43b0x4[_0x5b48[235]]= this[_0x5b48[1021]](_0x43b0x4[_0x5b48[235]]/ _0x43b0x5- _0x43b0x9[_0x5b48[235]]- _0x43b0xa);_0x43b0x4[_0x5b48[236]]= this[_0x5b48[1021]](_0x43b0x4[_0x5b48[236]]/ _0x43b0x5- _0x43b0x9[_0x5b48[236]]- _0x43b0xa);return _0x43b0x4};mxGraph[_0x5b48[202]][_0x5b48[2690]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa){_0x43b0xa= null!= _0x43b0xa?_0x43b0xa:[];if(0< _0x43b0x4|| 0< _0x43b0x5){var _0x43b0x12=_0x43b0x2+ _0x43b0x4,_0x43b0x13=_0x43b0x3+ _0x43b0x5;_0x43b0x9= _0x43b0x9|| this[_0x5b48[902]]();if(null!= _0x43b0x9){for(var _0x43b0x14=this[_0x5b48[251]][_0x5b48[262]](_0x43b0x9),_0x43b0x15=0;_0x43b0x15< _0x43b0x14;_0x43b0x15++){var _0x43b0x16=this[_0x5b48[251]][_0x5b48[263]](_0x43b0x9,_0x43b0x15),_0x43b0x17=this[_0x5b48[441]][_0x5b48[248]](_0x43b0x16);if(this[_0x5b48[1714]](_0x43b0x16)&& null!= _0x43b0x17){var _0x43b0x18=_0x43b0x17,_0x43b0x17=mxUtils[_0x5b48[433]](_0x43b0x17[_0x5b48[124]],mxConstants.STYLE_ROTATION)|| 0;0!= _0x43b0x17&& (_0x43b0x18= mxUtils[_0x5b48[1613]](_0x43b0x18,_0x43b0x17));_0x43b0x18[_0x5b48[235]]>= _0x43b0x2&& _0x43b0x18[_0x5b48[236]]+ _0x43b0x18[_0x5b48[119]]<= _0x43b0x13&& _0x43b0x18[_0x5b48[236]]>= _0x43b0x3&& _0x43b0x18[_0x5b48[235]]+ _0x43b0x18[_0x5b48[117]]<= _0x43b0x12?_0x43b0xa[_0x5b48[207]](_0x43b0x16):this[_0x5b48[2690]](_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x16,_0x43b0xa)}}}};return _0x43b0xa};mxGraph[_0x5b48[202]][_0x5b48[2691]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){var _0x43b0xa=[];if(_0x43b0x5|| _0x43b0x9){if(null== _0x43b0x4&& (_0x43b0x4= this[_0x5b48[902]]()),null!= _0x43b0x4){for(var _0x43b0x12=this[_0x5b48[251]][_0x5b48[262]](_0x43b0x4),_0x43b0x13=0;_0x43b0x13< _0x43b0x12;_0x43b0x13++){var _0x43b0x14=this[_0x5b48[251]][_0x5b48[263]](_0x43b0x4,_0x43b0x13),_0x43b0x15=this[_0x5b48[441]][_0x5b48[248]](_0x43b0x14);this[_0x5b48[1714]](_0x43b0x14)&& null!= _0x43b0x15&& (!_0x43b0x5|| _0x43b0x15[_0x5b48[235]]>= _0x43b0x2)&& (!_0x43b0x9|| _0x43b0x15[_0x5b48[236]]>= _0x43b0x3)&& _0x43b0xa[_0x5b48[207]](_0x43b0x14)}}};return _0x43b0xa};mxGraph[_0x5b48[202]][_0x5b48[1757]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){_0x43b0x3= null!= _0x43b0x3?_0x43b0x3:!1;_0x43b0x4= null!= _0x43b0x4?_0x43b0x4:!1;var _0x43b0x5=[];if(null!= _0x43b0x2){for(var _0x43b0x9=this[_0x5b48[502]](),_0x43b0xa=_0x43b0x9[_0x5b48[262]](_0x43b0x2),_0x43b0x12=null,_0x43b0x13=0,_0x43b0x14=0;_0x43b0x14< _0x43b0xa;_0x43b0x14++){var _0x43b0x15=_0x43b0x9[_0x5b48[263]](_0x43b0x2,_0x43b0x14);if(this[_0x5b48[251]][_0x5b48[1193]](_0x43b0x15)&& this[_0x5b48[1714]](_0x43b0x15)){for(var _0x43b0x16=this[_0x5b48[1756]](_0x43b0x15,_0x43b0x3?_0x43b0x2:null),_0x43b0x17=0,_0x43b0x18=0,_0x43b0x19=0;_0x43b0x19< _0x43b0x16[_0x5b48[67]];_0x43b0x19++){this[_0x5b48[441]][_0x5b48[1710]](_0x43b0x16[_0x43b0x19],!0)== _0x43b0x15?_0x43b0x17++:_0x43b0x18++};(_0x43b0x4&& 0== _0x43b0x17&& 0< _0x43b0x18|| !_0x43b0x4&& 0== _0x43b0x18 && 0< _0x43b0x17)&& _0x43b0x5[_0x5b48[207]](_0x43b0x15);_0x43b0x16= _0x43b0x4?_0x43b0x18- _0x43b0x17:_0x43b0x17- _0x43b0x18;_0x43b0x16> _0x43b0x13&& (_0x43b0x13= _0x43b0x16,_0x43b0x12= _0x43b0x15)}};0== _0x43b0x5[_0x5b48[67]]&& null!= _0x43b0x12&& _0x43b0x5[_0x5b48[207]](_0x43b0x12)};return _0x43b0x5};mxGraph[_0x5b48[202]][_0x5b48[1706]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){if(null!= _0x43b0x4&& null!= _0x43b0x2){_0x43b0x3= null!= _0x43b0x3?_0x43b0x3:!0;_0x43b0x9= _0x43b0x9|| [];var _0x43b0xa=mxCellPath[_0x5b48[385]](_0x43b0x2);if(null== _0x43b0x9[_0x43b0xa]&& (_0x43b0x9[_0x43b0xa]= _0x43b0x2,_0x43b0x5= _0x43b0x4(_0x43b0x2,_0x43b0x5),null== _0x43b0x5|| _0x43b0x5)){if(_0x43b0x5= this[_0x5b48[251]][_0x5b48[1707]](_0x43b0x2),0< _0x43b0x5){for(_0x43b0xa= 0;_0x43b0xa< _0x43b0x5;_0x43b0xa++){var _0x43b0x12=this[_0x5b48[251]][_0x5b48[1708]](_0x43b0x2,_0x43b0xa),_0x43b0x13=this[_0x5b48[251]][_0x5b48[1709]](_0x43b0x12,!0)== _0x43b0x2;if(!_0x43b0x3|| _0x43b0x13){_0x43b0x13= this[_0x5b48[251]][_0x5b48[1709]](_0x43b0x12,!_0x43b0x13),this[_0x5b48[1706]](_0x43b0x13,_0x43b0x3,_0x43b0x4,_0x43b0x12,_0x43b0x9)}}}}}};mxGraph[_0x5b48[202]][_0x5b48[2692]]= function(_0x43b0x2){return this[_0x5b48[2435]]()[_0x5b48[2097]](_0x43b0x2)};mxGraph[_0x5b48[202]][_0x5b48[2693]]= function(){return this[_0x5b48[2435]]()[_0x5b48[1107]]()};mxGraph[_0x5b48[202]][_0x5b48[2440]]= function(){return this[_0x5b48[2435]]()[_0x5b48[200]]()};mxGraph[_0x5b48[202]][_0x5b48[2694]]= function(){return this[_0x5b48[2435]]()[_0x5b48[895]][_0x5b48[67]]};mxGraph[_0x5b48[202]][_0x5b48[2452]]= function(){return this[_0x5b48[2435]]()[_0x5b48[895]][0]};mxGraph[_0x5b48[202]][_0x5b48[897]]= function(){return this[_0x5b48[2435]]()[_0x5b48[895]][_0x5b48[1853]]()};mxGraph[_0x5b48[202]][_0x5b48[2450]]= function(_0x43b0x2){this[_0x5b48[2435]]()[_0x5b48[2099]](_0x43b0x2)};mxGraph[_0x5b48[202]][_0x5b48[904]]= function(_0x43b0x2){this[_0x5b48[2435]]()[_0x5b48[2100]](_0x43b0x2)};mxGraph[_0x5b48[202]][_0x5b48[2695]]= function(_0x43b0x2){this[_0x5b48[2435]]()[_0x5b48[2103]](_0x43b0x2)};mxGraph[_0x5b48[202]][_0x5b48[2696]]= function(_0x43b0x2){this[_0x5b48[2435]]()[_0x5b48[832]](_0x43b0x2)};mxGraph[_0x5b48[202]][_0x5b48[2697]]= function(_0x43b0x2){this[_0x5b48[2435]]()[_0x5b48[2104]](_0x43b0x2)};mxGraph[_0x5b48[202]][_0x5b48[2439]]= function(_0x43b0x2){this[_0x5b48[2435]]()[_0x5b48[842]](_0x43b0x2)};mxGraph[_0x5b48[202]][_0x5b48[2698]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=this[_0x5b48[2690]](_0x43b0x2[_0x5b48[235]],_0x43b0x2[_0x5b48[236]],_0x43b0x2[_0x5b48[117]],_0x43b0x2[_0x5b48[119]]);this[_0x5b48[2699]](_0x43b0x4,_0x43b0x3);return _0x43b0x4};mxGraph[_0x5b48[202]][_0x5b48[2700]]= function(){this[_0x5b48[2701]](!0)};mxGraph[_0x5b48[202]][_0x5b48[2702]]= function(){this[_0x5b48[2701]]()};mxGraph[_0x5b48[202]][_0x5b48[2703]]= function(){this[_0x5b48[2701]](!1,!0)};mxGraph[_0x5b48[202]][_0x5b48[2704]]= function(){this[_0x5b48[2701]](!1,!1,!0)};mxGraph[_0x5b48[202]][_0x5b48[2701]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){var _0x43b0x5=this[_0x5b48[2105]],_0x43b0x9=0< _0x43b0x5[_0x5b48[895]][_0x5b48[67]]?_0x43b0x5[_0x5b48[895]][0]:null;1< _0x43b0x5[_0x5b48[895]][_0x5b48[67]]&& _0x43b0x5[_0x5b48[200]]();var _0x43b0x5=null!= _0x43b0x9?this[_0x5b48[251]][_0x5b48[1197]](_0x43b0x9):this[_0x5b48[902]](),_0x43b0xa=this[_0x5b48[251]][_0x5b48[262]](_0x43b0x5);null== _0x43b0x9&& 0< _0x43b0xa?(_0x43b0x2= this[_0x5b48[251]][_0x5b48[263]](_0x43b0x5,0),this[_0x5b48[2450]](_0x43b0x2)):(null== _0x43b0x9|| _0x43b0x3)&& null!= this[_0x5b48[441]][_0x5b48[248]](_0x43b0x5)&& null!= this[_0x5b48[251]][_0x5b48[1721]](_0x43b0x5)?this[_0x5b48[2534]]()!= _0x43b0x5&& this[_0x5b48[2450]](_0x43b0x5):null!= _0x43b0x9&& _0x43b0x4?0< this[_0x5b48[251]][_0x5b48[262]](_0x43b0x9)&& (_0x43b0x2= this[_0x5b48[251]][_0x5b48[263]](_0x43b0x9,0),this[_0x5b48[2450]](_0x43b0x2)):0< _0x43b0xa&& (_0x43b0x3= _0x43b0x5[_0x5b48[1738]](_0x43b0x9),_0x43b0x2?(_0x43b0x3++,_0x43b0x2= this[_0x5b48[251]][_0x5b48[263]](_0x43b0x5,_0x43b0x3% _0x43b0xa)):(_0x43b0x3--,_0x43b0x2= this[_0x5b48[251]][_0x5b48[263]](_0x43b0x5,0> _0x43b0x3?_0x43b0xa- 1:_0x43b0x3)),this[_0x5b48[2450]](_0x43b0x2))};mxGraph[_0x5b48[202]][_0x5b48[2705]]= function(_0x43b0x2){_0x43b0x2= _0x43b0x2|| this[_0x5b48[902]]();_0x43b0x2= this[_0x5b48[251]][_0x5b48[1953]](_0x43b0x2);null!= _0x43b0x2&& this[_0x5b48[904]](_0x43b0x2)};mxGraph[_0x5b48[202]][_0x5b48[2706]]= function(_0x43b0x2){this[_0x5b48[2707]](!0,!1,_0x43b0x2)};mxGraph[_0x5b48[202]][_0x5b48[2708]]= function(_0x43b0x2){this[_0x5b48[2707]](!1,!0,_0x43b0x2)};mxGraph[_0x5b48[202]][_0x5b48[2707]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){_0x43b0x4= _0x43b0x4|| this[_0x5b48[902]]();var _0x43b0x5=mxUtils[_0x5b48[885]](this,function(_0x43b0x4){return null!= this[_0x5b48[441]][_0x5b48[248]](_0x43b0x4)&& 0== this[_0x5b48[251]][_0x5b48[262]](_0x43b0x4)&& (this[_0x5b48[251]][_0x5b48[1193]](_0x43b0x4)&& _0x43b0x2|| this[_0x5b48[251]][_0x5b48[250]](_0x43b0x4)&& _0x43b0x3)});_0x43b0x4= this[_0x5b48[251]][_0x5b48[1921]](_0x43b0x5,_0x43b0x4);this[_0x5b48[904]](_0x43b0x4)};mxGraph[_0x5b48[202]][_0x5b48[2459]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=this[_0x5b48[2692]](_0x43b0x2);this[_0x5b48[2462]](_0x43b0x3)?_0x43b0x4?this[_0x5b48[2697]](_0x43b0x2):this[_0x5b48[2695]](_0x43b0x2):(!_0x43b0x4|| 1!= this[_0x5b48[2694]]()) && this[_0x5b48[2450]](_0x43b0x2)};mxGraph[_0x5b48[202]][_0x5b48[2699]]= function(_0x43b0x2,_0x43b0x3){this[_0x5b48[2462]](_0x43b0x3)?this[_0x5b48[2696]](_0x43b0x2):this[_0x5b48[904]](_0x43b0x2)};mxGraph[_0x5b48[202]][_0x5b48[2709]]= function(_0x43b0x2){var _0x43b0x3=null;null!= _0x43b0x2&& (this[_0x5b48[251]][_0x5b48[250]](_0x43b0x2[_0x5b48[246]])?(_0x43b0x3= this[_0x5b48[441]][_0x5b48[2291]](_0x43b0x2),_0x43b0x3= this[_0x5b48[2573]](_0x43b0x2)|| _0x43b0x3== mxEdgeStyle[_0x5b48[2568]]|| _0x43b0x3== mxEdgeStyle[_0x5b48[2569]]|| _0x43b0x3== mxEdgeStyle[_0x5b48[2570]]? new mxElbowEdgeHandler(_0x43b0x2):_0x43b0x3== mxEdgeStyle[_0x5b48[2567]]|| _0x43b0x3== mxEdgeStyle[_0x5b48[2572]]? new mxEdgeSegmentHandler(_0x43b0x2): new mxEdgeHandler(_0x43b0x2)):_0x43b0x3= new mxVertexHandler(_0x43b0x2));return _0x43b0x3};mxGraph[_0x5b48[202]][_0x5b48[1133]]= function(_0x43b0x2){null== this[_0x5b48[2329]]&& (this[_0x5b48[2329]]= []);this[_0x5b48[2329]][_0x5b48[207]](_0x43b0x2)};mxGraph[_0x5b48[202]][_0x5b48[1148]]= function(_0x43b0x2){if(null!= this[_0x5b48[2329]]){for(var _0x43b0x3=0;_0x43b0x3< this[_0x5b48[2329]][_0x5b48[67]];_0x43b0x3++){if(this[_0x5b48[2329]][_0x43b0x3]== _0x43b0x2){this[_0x5b48[2329]][_0x5b48[300]](_0x43b0x3,1);break}}}};mxGraph[_0x5b48[202]][_0x5b48[2710]]= function(_0x43b0x2){if(null== _0x43b0x2[_0x5b48[725]]|| null== _0x43b0x2[_0x5b48[726]]){var _0x43b0x3=mxUtils[_0x5b48[2196]](this[_0x5b48[526]],_0x43b0x2[_0x5b48[730]](),_0x43b0x2[_0x5b48[732]]());_0x43b0x2[_0x5b48[725]]= _0x43b0x3[_0x5b48[235]]- this[_0x5b48[1136]];_0x43b0x2[_0x5b48[726]]= _0x43b0x3[_0x5b48[236]]- this[_0x5b48[1137]]}};mxGraph[_0x5b48[202]][_0x5b48[758]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){null== _0x43b0x4&& (_0x43b0x4= this);this[_0x5b48[2710]](_0x43b0x3);_0x43b0x2== mxEvent[_0x5b48[2711]]&& (this[_0x5b48[1009]]= !0);if(mxClient[_0x5b48[754]]&& this[_0x5b48[2349]]&& _0x43b0x2== mxEvent[_0x5b48[2711]]){var _0x43b0x5=( new Date)[_0x5b48[178]]();_0x43b0x5- this[_0x5b48[2213]]< this[_0x5b48[2350]]&& Math[_0x5b48[425]](this[_0x5b48[2712]]- _0x43b0x3[_0x5b48[730]]())< this[_0x5b48[2351]]&& Math[_0x5b48[425]](this[_0x5b48[2352]]- _0x43b0x3[_0x5b48[732]]())< this[_0x5b48[2351]]?(this[_0x5b48[2213]]= 0,this[_0x5b48[761]](_0x43b0x3[_0x5b48[727]](),_0x43b0x3[_0x5b48[736]]()),_0x43b0x3[_0x5b48[727]]()[_0x5b48[786]]= !0):(this[_0x5b48[2712]]= _0x43b0x3[_0x5b48[730]](),this[_0x5b48[2352]]= _0x43b0x3[_0x5b48[732]](),this[_0x5b48[2213]]= _0x43b0x5)};_0x43b0x5= 2!= _0x43b0x3[_0x5b48[727]]()[_0x5b48[764]];if(mxClient[_0x5b48[80]]&& _0x5b48[462]== document[_0x5b48[135]]){if(null!= this[_0x5b48[2713]]&& Math[_0x5b48[425]](this[_0x5b48[2713]]- _0x43b0x3[_0x5b48[730]]())> this[_0x5b48[2351]]|| null!= this[_0x5b48[2714]]&& Math[_0x5b48[425]](this[_0x5b48[2714]]- _0x43b0x3[_0x5b48[732]]())> this[_0x5b48[2351]]){_0x43b0x5= !0};_0x43b0x2== mxEvent[_0x5b48[2715]]&& (this[_0x5b48[2713]]= _0x43b0x3[_0x5b48[730]](),this[_0x5b48[2714]]= _0x43b0x3[_0x5b48[732]]())};if((_0x43b0x2!= mxEvent[_0x5b48[2715]]|| this[_0x5b48[1009]])&& _0x43b0x5){if(_0x43b0x2== mxEvent[_0x5b48[2715]]&& (this[_0x5b48[1009]]= !1),!this[_0x5b48[2203]]()&& (mxClient[_0x5b48[71]]|| mxClient[_0x5b48[75]]|| mxClient[_0x5b48[76]]|| mxClient[_0x5b48[80]]&& mxClient[_0x5b48[48]]|| _0x43b0x3[_0x5b48[727]]()[_0x5b48[772]]!= this[_0x5b48[526]])){_0x43b0x2== mxEvent[_0x5b48[2716]]&& (this[_0x5b48[1009]]&& this[_0x5b48[1012]])&& this[_0x5b48[1014]](_0x43b0x3[_0x5b48[734]](),_0x43b0x3[_0x5b48[735]](),this[_0x5b48[1013]]);if(null!= this[_0x5b48[2329]]){_0x43b0x4= [_0x43b0x4,_0x43b0x3];_0x43b0x3[_0x5b48[727]]()[_0x5b48[739]]= !0;for(_0x43b0x5= 0;_0x43b0x5< this[_0x5b48[2329]][_0x5b48[67]];_0x43b0x5++){var _0x43b0x9=this[_0x5b48[2329]][_0x43b0x5];_0x43b0x2== mxEvent[_0x5b48[2711]]?_0x43b0x9[_0x5b48[787]][_0x5b48[183]](_0x43b0x9,_0x43b0x4):_0x43b0x2== mxEvent[_0x5b48[2716]]?_0x43b0x9[_0x5b48[788]][_0x5b48[183]](_0x43b0x9,_0x43b0x4):_0x43b0x2== mxEvent[_0x5b48[2715]]&& _0x43b0x9[_0x5b48[789]][_0x5b48[183]](_0x43b0x9,_0x43b0x4)}};_0x43b0x2== mxEvent[_0x5b48[2715]]&& this[_0x5b48[173]](_0x43b0x3)}}else {_0x43b0x2== mxEvent[_0x5b48[2715]]&& (this[_0x5b48[1009]]= !1)}};mxGraph[_0x5b48[202]][_0x5b48[515]]= function(){this[_0x5b48[2717]]|| (this[_0x5b48[2717]]= !0,null!= this[_0x5b48[2276]]&& this[_0x5b48[2276]][_0x5b48[515]](),null!= this[_0x5b48[2432]]&& this[_0x5b48[2432]][_0x5b48[515]](),null!= this[_0x5b48[2316]]&& this[_0x5b48[2316]][_0x5b48[515]](),null!= this[_0x5b48[2433]]&& this[_0x5b48[2433]][_0x5b48[515]](),null!= this[_0x5b48[1011]]&& this[_0x5b48[1011]][_0x5b48[515]](),null!= this[_0x5b48[2347]]&& this[_0x5b48[2347]][_0x5b48[515]](),null!= this[_0x5b48[441]]&& this[_0x5b48[441]][_0x5b48[515]](),null!= this[_0x5b48[251]]&& null!= this[_0x5b48[2343]]&& (this[_0x5b48[251]][_0x5b48[745]](this[_0x5b48[2343]]),this[_0x5b48[2343]]= null),this[_0x5b48[526]]= null)};function mxCellOverlay(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa){this[_0x5b48[618]]= _0x43b0x2;this[_0x5b48[2718]]= _0x43b0x3;this[_0x5b48[611]]= null!= _0x43b0x4?_0x43b0x4:this[_0x5b48[611]];this[_0x5b48[123]]= null!= _0x43b0x5?_0x43b0x5:this[_0x5b48[123]];this[_0x5b48[1368]]= null!= _0x43b0x9?_0x43b0x9: new mxPoint;this[_0x5b48[270]]= null!= _0x43b0xa?_0x43b0xa:_0x5b48[2719]}mxCellOverlay[_0x5b48[202]]= new mxEventSource;mxCellOverlay[_0x5b48[202]][_0x5b48[196]]= mxCellOverlay;mxCellOverlay[_0x5b48[202]][_0x5b48[618]]= null;mxCellOverlay[_0x5b48[202]][_0x5b48[2718]]= null;mxCellOverlay[_0x5b48[202]][_0x5b48[611]]= mxConstants[_0x5b48[480]];mxCellOverlay[_0x5b48[202]][_0x5b48[123]]= mxConstants[_0x5b48[482]];mxCellOverlay[_0x5b48[202]][_0x5b48[1368]]= null;mxCellOverlay[_0x5b48[202]][_0x5b48[270]]= null;mxCellOverlay[_0x5b48[202]][_0x5b48[2354]]= 0.5;mxCellOverlay[_0x5b48[202]][_0x5b48[1799]]= function(_0x43b0x2){var _0x43b0x3=_0x43b0x2[_0x5b48[441]][_0x5b48[1179]][_0x5b48[502]]()[_0x5b48[250]](_0x43b0x2[_0x5b48[246]]),_0x43b0x4=_0x43b0x2[_0x5b48[441]][_0x5b48[255]],_0x43b0x5=null,_0x43b0x9=this[_0x5b48[618]][_0x5b48[117]],_0x43b0xa=this[_0x5b48[618]][_0x5b48[119]];_0x43b0x3?(_0x43b0x3= _0x43b0x2[_0x5b48[439]],1== _0x43b0x3[_0x5b48[67]]% 2?_0x43b0x5= _0x43b0x3[Math[_0x5b48[519]](_0x43b0x3[_0x5b48[67]]/ 2)]:(_0x43b0x5= _0x43b0x3[_0x5b48[67]]/ 2,_0x43b0x2= _0x43b0x3[_0x43b0x5- 1],_0x43b0x3= _0x43b0x3[_0x43b0x5],_0x43b0x5= new mxPoint(_0x43b0x2[_0x5b48[235]]+ (_0x43b0x3[_0x5b48[235]]- _0x43b0x2[_0x5b48[235]])/ 2,_0x43b0x2[_0x5b48[236]]+ (_0x43b0x3[_0x5b48[236]]- _0x43b0x2[_0x5b48[236]])/ 2))):(_0x43b0x5= new mxPoint,_0x43b0x5[_0x5b48[235]]= this[_0x5b48[611]]== mxConstants[_0x5b48[2132]]?_0x43b0x2[_0x5b48[235]]:this[_0x5b48[611]]== mxConstants[_0x5b48[479]]?_0x43b0x2[_0x5b48[235]]+ _0x43b0x2[_0x5b48[117]]/ 2:_0x43b0x2[_0x5b48[235]]+ _0x43b0x2[_0x5b48[117]],_0x43b0x5[_0x5b48[236]]= this[_0x5b48[123]]== mxConstants[_0x5b48[1687]]?_0x43b0x2[_0x5b48[236]]:this[_0x5b48[123]]== mxConstants[_0x5b48[481]]?_0x43b0x2[_0x5b48[236]]+ _0x43b0x2[_0x5b48[119]]/ 2:_0x43b0x2[_0x5b48[236]]+ _0x43b0x2[_0x5b48[119]]);return new mxRectangle(Math[_0x5b48[488]](_0x43b0x5[_0x5b48[235]]- (_0x43b0x9* this[_0x5b48[2354]]- this[_0x5b48[1368]][_0x5b48[235]])* _0x43b0x4),Math[_0x5b48[488]](_0x43b0x5[_0x5b48[236]]- (_0x43b0xa* this[_0x5b48[2354]]- this[_0x5b48[1368]][_0x5b48[236]])* _0x43b0x4),_0x43b0x9* _0x43b0x4,_0x43b0xa* _0x43b0x4)};mxCellOverlay[_0x5b48[202]][_0x5b48[2591]]= function(){return this[_0x5b48[2718]]};function mxOutline(_0x43b0x2,_0x43b0x3){this[_0x5b48[1097]]= _0x43b0x2;null!= _0x43b0x3&& this[_0x5b48[176]](_0x43b0x3)}mxOutline[_0x5b48[202]][_0x5b48[1097]]= null;mxOutline[_0x5b48[202]][_0x5b48[2136]]= null;mxOutline[_0x5b48[202]][_0x5b48[2720]]= mxConstants[_0x5b48[2333]];mxOutline[_0x5b48[202]][_0x5b48[984]]= !0;mxOutline[_0x5b48[202]][_0x5b48[2721]]= !0;mxOutline[_0x5b48[202]][_0x5b48[467]]= 10;mxOutline[_0x5b48[202]][_0x5b48[2722]]= 8;mxOutline[_0x5b48[202]][_0x5b48[2723]]= !1;mxOutline[_0x5b48[202]][_0x5b48[2724]]= null;mxOutline[_0x5b48[202]][_0x5b48[1063]]= !1;mxOutline[_0x5b48[202]][_0x5b48[176]]= function(_0x43b0x2){this[_0x5b48[2136]]= new mxGraph(_0x43b0x2,this[_0x5b48[1097]][_0x5b48[502]](),this[_0x5b48[2720]],this[_0x5b48[1097]][_0x5b48[2434]]());this[_0x5b48[2136]][_0x5b48[2206]]= !1;this[_0x5b48[2136]][_0x5b48[1012]]= !1;var _0x43b0x3=this[_0x5b48[2136]][_0x5b48[1177]];this[_0x5b48[2136]][_0x5b48[1177]]= mxUtils[_0x5b48[885]](this,function(_0x43b0x2){!this[_0x5b48[1063]]&& null!= this[_0x5b48[2136]] && _0x43b0x3[_0x5b48[183]](this[_0x5b48[2136]],arguments)});mxClient[_0x5b48[48]]&& (_0x43b0x2= this[_0x5b48[2136]][_0x5b48[249]]()[_0x5b48[2051]]()[_0x5b48[265]],_0x43b0x2[_0x5b48[57]](_0x5b48[2725],_0x5b48[2726]),_0x43b0x2[_0x5b48[57]](_0x5b48[2727],_0x5b48[2726]));this[_0x5b48[2136]][_0x5b48[2409]]= !1;this[_0x5b48[2136]][_0x5b48[995]](!1);this[_0x5b48[2728]]= mxUtils[_0x5b48[885]](this,function(_0x43b0x2,_0x43b0x3){!this[_0x5b48[1063]]&& !this[_0x5b48[1124]] && this[_0x5b48[2729]]()});this[_0x5b48[1097]][_0x5b48[502]]()[_0x5b48[169]](mxEvent.CHANGE,this[_0x5b48[2728]]);this[_0x5b48[2136]][_0x5b48[1133]](this);_0x43b0x2= this[_0x5b48[1097]][_0x5b48[249]]();_0x43b0x2[_0x5b48[169]](mxEvent.SCALE,this[_0x5b48[2728]]);_0x43b0x2[_0x5b48[169]](mxEvent.TRANSLATE,this[_0x5b48[2728]]);_0x43b0x2[_0x5b48[169]](mxEvent.SCALE_AND_TRANSLATE,this[_0x5b48[2728]]);_0x43b0x2[_0x5b48[169]](mxEvent.DOWN,this[_0x5b48[2728]]);_0x43b0x2[_0x5b48[169]](mxEvent.UP,this[_0x5b48[2728]]);mxEvent[_0x5b48[169]](this[_0x5b48[1097]][_0x5b48[526]],_0x5b48[276],this[_0x5b48[2728]]);this[_0x5b48[2730]]= mxUtils[_0x5b48[885]](this,function(_0x43b0x2){this[_0x5b48[2723]]&& this[_0x5b48[2728]][_0x5b48[183]](this,arguments)});this[_0x5b48[1097]][_0x5b48[169]](mxEvent.PAN,this[_0x5b48[2730]]);this[_0x5b48[2731]]= mxUtils[_0x5b48[885]](this,function(_0x43b0x2){this[_0x5b48[2136]][_0x5b48[2341]](this[_0x5b48[1097]][_0x5b48[2434]]());this[_0x5b48[2136]][_0x5b48[802]]()});this[_0x5b48[1097]][_0x5b48[169]](mxEvent.REFRESH,this[_0x5b48[2731]]);this[_0x5b48[1562]]= new mxRectangle(0,0,0,0);this[_0x5b48[2732]]= new mxRectangleShape(this[_0x5b48[1562]],null,mxConstants.OUTLINE_COLOR,mxConstants.OUTLINE_STROKEWIDTH);this[_0x5b48[2732]][_0x5b48[507]]= this[_0x5b48[2136]][_0x5b48[507]]!= mxConstants[_0x5b48[508]]?mxConstants[_0x5b48[1523]]:mxConstants[_0x5b48[508]];this[_0x5b48[2732]][_0x5b48[176]](this[_0x5b48[2136]][_0x5b48[249]]()[_0x5b48[1524]]());mxEvent[_0x5b48[2733]](this[_0x5b48[2732]][_0x5b48[252]],this[_0x5b48[2136]]);this[_0x5b48[2732]][_0x5b48[252]][_0x5b48[124]][_0x5b48[1537]]= _0x5b48[110];this[_0x5b48[2734]]= this[_0x5b48[2735]]();this[_0x5b48[2734]][_0x5b48[176]](this[_0x5b48[2136]][_0x5b48[249]]()[_0x5b48[1524]]());this[_0x5b48[984]]&& (this[_0x5b48[2734]][_0x5b48[252]][_0x5b48[124]][_0x5b48[270]]= _0x5b48[356]);mxEvent[_0x5b48[169]](this[_0x5b48[2734]][_0x5b48[252]],mxClient[_0x5b48[754]]?_0x5b48[755]:_0x5b48[751],mxUtils[_0x5b48[885]](this,function(_0x43b0x2){this[_0x5b48[2136]][_0x5b48[758]](mxEvent.MOUSE_DOWN, new mxMouseEvent(_0x43b0x2))}));this[_0x5b48[2732]][_0x5b48[252]][_0x5b48[124]][_0x5b48[495]]= this[_0x5b48[2721]]?_0x5b48[110]:_0x5b48[130];this[_0x5b48[2734]][_0x5b48[252]][_0x5b48[124]][_0x5b48[495]]= this[_0x5b48[2732]][_0x5b48[252]][_0x5b48[124]][_0x5b48[495]];this[_0x5b48[2732]][_0x5b48[252]][_0x5b48[124]][_0x5b48[270]]= _0x5b48[582];this[_0x5b48[2729]](!1)};mxOutline[_0x5b48[202]][_0x5b48[994]]= function(){return this[_0x5b48[984]]};mxOutline[_0x5b48[202]][_0x5b48[995]]= function(_0x43b0x2){this[_0x5b48[984]]= _0x43b0x2};mxOutline[_0x5b48[202]][_0x5b48[2736]]= function(_0x43b0x2){this[_0x5b48[2734]][_0x5b48[252]][_0x5b48[124]][_0x5b48[187]]= _0x43b0x2?_0x5b48[189]:_0x5b48[188]};mxOutline[_0x5b48[202]][_0x5b48[802]]= function(){this[_0x5b48[2729]](!0)};mxOutline[_0x5b48[202]][_0x5b48[2735]]= function(){var _0x43b0x2=null!= this[_0x5b48[2724]]? new mxImageShape( new mxRectangle(0,0,this[_0x5b48[2724]][_0x5b48[117]],this[_0x5b48[2724]][_0x5b48[119]]),this[_0x5b48[2724]][_0x5b48[390]]): new mxRectangleShape( new mxRectangle(0,0,this[_0x5b48[2722]],this[_0x5b48[2722]]),mxConstants.OUTLINE_HANDLE_FILLCOLOR,mxConstants.OUTLINE_HANDLE_STROKECOLOR);_0x43b0x2[_0x5b48[507]]= this[_0x5b48[2136]][_0x5b48[507]];return _0x43b0x2};mxOutline[_0x5b48[202]][_0x5b48[2737]]= function(){return new mxRectangle(0,0,this[_0x5b48[1097]][_0x5b48[526]][_0x5b48[1526]],this[_0x5b48[1097]][_0x5b48[526]][_0x5b48[191]])};mxOutline[_0x5b48[202]][_0x5b48[2738]]= function(_0x43b0x2){return null};mxOutline[_0x5b48[202]][_0x5b48[2729]]= function(_0x43b0x2){if(null!= this[_0x5b48[1097]]){var _0x43b0x3=this[_0x5b48[1097]][_0x5b48[441]][_0x5b48[255]],_0x43b0x4=this[_0x5b48[1097]][_0x5b48[517]](),_0x43b0x4= new mxRectangle(_0x43b0x4[_0x5b48[235]]/ _0x43b0x3+ this[_0x5b48[1097]][_0x5b48[1136]],_0x43b0x4[_0x5b48[236]]/ _0x43b0x3+ this[_0x5b48[1097]][_0x5b48[1137]],_0x43b0x4[_0x5b48[117]]/ _0x43b0x3,_0x43b0x4[_0x5b48[119]]/ _0x43b0x3),_0x43b0x5= new mxRectangle(0,0,this[_0x5b48[1097]][_0x5b48[526]][_0x5b48[159]]/ _0x43b0x3,this[_0x5b48[1097]][_0x5b48[526]][_0x5b48[157]]/ _0x43b0x3),_0x43b0x9=_0x43b0x4[_0x5b48[238]]();_0x43b0x9[_0x5b48[99]](_0x43b0x5);var _0x43b0xa=this[_0x5b48[2737]](),_0x43b0x5=Math[_0x5b48[160]](_0x43b0xa[_0x5b48[117]]/ _0x43b0x3,_0x43b0x9[_0x5b48[117]]),_0x43b0x3=Math[_0x5b48[160]](_0x43b0xa[_0x5b48[119]]/ _0x43b0x3,_0x43b0x9[_0x5b48[119]]),_0x43b0x9=Math[_0x5b48[160]](0,this[_0x5b48[2136]][_0x5b48[526]][_0x5b48[159]]- this[_0x5b48[467]]),_0x43b0xa=Math[_0x5b48[160]](0,this[_0x5b48[2136]][_0x5b48[526]][_0x5b48[157]]- this[_0x5b48[467]]),_0x43b0x9=Math[_0x5b48[243]](_0x43b0x9/ _0x43b0x5,_0x43b0xa/ _0x43b0x3);if(0< _0x43b0x9){this[_0x5b48[2136]][_0x5b48[249]]()[_0x5b48[255]]!= _0x43b0x9&& (this[_0x5b48[2136]][_0x5b48[249]]()[_0x5b48[255]]= _0x43b0x9,_0x43b0x2= !0);_0x43b0x5= this[_0x5b48[2136]][_0x5b48[249]]();_0x43b0x5[_0x5b48[1741]]!= this[_0x5b48[1097]][_0x5b48[249]]()[_0x5b48[1741]]&& _0x43b0x5[_0x5b48[2257]](this[_0x5b48[1097]][_0x5b48[249]]()[_0x5b48[1741]]);var _0x43b0x3=this[_0x5b48[1097]][_0x5b48[441]][_0x5b48[513]],_0x43b0xa=_0x43b0x3[_0x5b48[235]]+ this[_0x5b48[1097]][_0x5b48[1136]],_0x43b0x12=_0x43b0x3[_0x5b48[236]]+ this[_0x5b48[1097]][_0x5b48[1137]],_0x43b0x9=this[_0x5b48[2738]](_0x43b0x9);null!= _0x43b0x9&& (_0x43b0xa+= _0x43b0x9[_0x5b48[235]],_0x43b0x12+= _0x43b0x9[_0x5b48[236]]);0> _0x43b0x4[_0x5b48[235]]&& (_0x43b0xa-= _0x43b0x4[_0x5b48[235]]);0> _0x43b0x4[_0x5b48[236]]&& (_0x43b0x12-= _0x43b0x4[_0x5b48[236]]);if(_0x43b0x5[_0x5b48[513]][_0x5b48[235]]!= _0x43b0xa|| _0x43b0x5[_0x5b48[513]][_0x5b48[236]]!= _0x43b0x12){_0x43b0x5[_0x5b48[513]][_0x5b48[235]]= _0x43b0xa,_0x43b0x5[_0x5b48[513]][_0x5b48[236]]= _0x43b0x12,_0x43b0x2= !0};var _0x43b0x4=_0x43b0x5[_0x5b48[513]],_0x43b0x9=this[_0x5b48[1097]][_0x5b48[249]]()[_0x5b48[255]],_0x43b0xa=_0x43b0x9/ _0x43b0x5[_0x5b48[255]],_0x43b0x12=1/ _0x43b0x5[_0x5b48[255]],_0x43b0x13=this[_0x5b48[1097]][_0x5b48[526]];this[_0x5b48[1562]]= new mxRectangle((_0x43b0x4[_0x5b48[235]]- _0x43b0x3[_0x5b48[235]]- this[_0x5b48[1097]][_0x5b48[1136]])/ _0x43b0x12,(_0x43b0x4[_0x5b48[236]]- _0x43b0x3[_0x5b48[236]]- this[_0x5b48[1097]][_0x5b48[1137]])/ _0x43b0x12,_0x43b0x13[_0x5b48[159]]/ _0x43b0xa,_0x43b0x13[_0x5b48[157]]/ _0x43b0xa);this[_0x5b48[1562]][_0x5b48[235]]+= this[_0x5b48[1097]][_0x5b48[526]][_0x5b48[360]]* _0x43b0x5[_0x5b48[255]]/ _0x43b0x9;this[_0x5b48[1562]][_0x5b48[236]]+= this[_0x5b48[1097]][_0x5b48[526]][_0x5b48[190]]* _0x43b0x5[_0x5b48[255]]/ _0x43b0x9;_0x43b0x4= this[_0x5b48[2732]][_0x5b48[1562]];if(_0x43b0x4[_0x5b48[235]]!= this[_0x5b48[1562]][_0x5b48[235]]|| _0x43b0x4[_0x5b48[236]]!= this[_0x5b48[1562]][_0x5b48[236]]|| _0x43b0x4[_0x5b48[117]]!= this[_0x5b48[1562]][_0x5b48[117]]|| _0x43b0x4[_0x5b48[119]]!= this[_0x5b48[1562]][_0x5b48[119]]){this[_0x5b48[2732]][_0x5b48[1562]]= this[_0x5b48[1562]],this[_0x5b48[2732]][_0x5b48[258]]()};_0x43b0x4= this[_0x5b48[2734]][_0x5b48[1562]];_0x43b0x5= new mxRectangle(this[_0x5b48[1562]][_0x5b48[235]]+ this[_0x5b48[1562]][_0x5b48[117]]- _0x43b0x4[_0x5b48[117]]/ 2,this[_0x5b48[1562]][_0x5b48[236]]+ this[_0x5b48[1562]][_0x5b48[119]]- _0x43b0x4[_0x5b48[119]]/ 2,_0x43b0x4[_0x5b48[117]],_0x43b0x4[_0x5b48[119]]);if(_0x43b0x4[_0x5b48[235]]!= _0x43b0x5[_0x5b48[235]]|| _0x43b0x4[_0x5b48[236]]!= _0x43b0x5[_0x5b48[236]]|| _0x43b0x4[_0x5b48[117]]!= _0x43b0x5[_0x5b48[117]]|| _0x43b0x4[_0x5b48[119]]!= _0x43b0x5[_0x5b48[119]]){this[_0x5b48[2734]][_0x5b48[1562]]= _0x43b0x5,_0x5b48[188]!= this[_0x5b48[2734]][_0x5b48[252]][_0x5b48[124]][_0x5b48[187]]&& this[_0x5b48[2734]][_0x5b48[258]]()};_0x43b0x2&& this[_0x5b48[2136]][_0x5b48[441]][_0x5b48[2259]]()}}};mxOutline[_0x5b48[202]][_0x5b48[787]]= function(_0x43b0x2,_0x43b0x3){this[_0x5b48[984]]&& this[_0x5b48[2721]]&& (this[_0x5b48[499]]= _0x43b0x3[_0x5b48[729]](this[_0x5b48[2734]]),this[_0x5b48[2739]]= _0x43b0x3[_0x5b48[730]](),this[_0x5b48[2740]]= _0x43b0x3[_0x5b48[732]](),this[_0x5b48[1124]]= !0,this[_0x5b48[1097]][_0x5b48[2365]]&& mxUtils[_0x5b48[1134]](this[_0x5b48[1097]][_0x5b48[526]])?(this[_0x5b48[2741]]= this[_0x5b48[1097]][_0x5b48[526]][_0x5b48[360]],this[_0x5b48[2742]]= this[_0x5b48[1097]][_0x5b48[526]][_0x5b48[190]]):this[_0x5b48[2742]]= this[_0x5b48[2741]]= 0);_0x43b0x3[_0x5b48[722]]()};mxOutline[_0x5b48[202]][_0x5b48[788]]= function(_0x43b0x2,_0x43b0x3){if(this[_0x5b48[1124]]){this[_0x5b48[2732]][_0x5b48[252]][_0x5b48[124]][_0x5b48[495]]= this[_0x5b48[2721]]?_0x5b48[110]:_0x5b48[130];this[_0x5b48[2734]][_0x5b48[252]][_0x5b48[124]][_0x5b48[495]]= this[_0x5b48[2732]][_0x5b48[252]][_0x5b48[124]][_0x5b48[495]];var _0x43b0x4=_0x43b0x3[_0x5b48[730]]()- this[_0x5b48[2739]],_0x43b0x5=_0x43b0x3[_0x5b48[732]]()- this[_0x5b48[2740]],_0x43b0x9=null;if(this[_0x5b48[499]]){_0x43b0x9= this[_0x5b48[1097]][_0x5b48[526]],_0x43b0x5= _0x43b0x4/ (_0x43b0x9[_0x5b48[159]]/ _0x43b0x9[_0x5b48[157]]),_0x43b0x9= new mxRectangle(this[_0x5b48[1562]][_0x5b48[235]],this[_0x5b48[1562]][_0x5b48[236]],Math[_0x5b48[160]](1,this[_0x5b48[1562]][_0x5b48[117]]+ _0x43b0x4),Math[_0x5b48[160]](1,this[_0x5b48[1562]][_0x5b48[119]]+ _0x43b0x5)),this[_0x5b48[2732]][_0x5b48[1562]]= _0x43b0x9,this[_0x5b48[2732]][_0x5b48[258]]()}else {var _0x43b0xa=this[_0x5b48[2136]][_0x5b48[249]]()[_0x5b48[255]],_0x43b0x9= new mxRectangle(this[_0x5b48[1562]][_0x5b48[235]]+ _0x43b0x4,this[_0x5b48[1562]][_0x5b48[236]]+ _0x43b0x5,this[_0x5b48[1562]][_0x5b48[117]],this[_0x5b48[1562]][_0x5b48[119]]);this[_0x5b48[2732]][_0x5b48[1562]]= _0x43b0x9;this[_0x5b48[2732]][_0x5b48[258]]();_0x43b0x4= _0x43b0x4/ _0x43b0xa* this[_0x5b48[1097]][_0x5b48[249]]()[_0x5b48[255]];_0x43b0x5= _0x43b0x5/ _0x43b0xa* this[_0x5b48[1097]][_0x5b48[249]]()[_0x5b48[255]];this[_0x5b48[1097]][_0x5b48[1135]](-_0x43b0x4- this[_0x5b48[2741]],-_0x43b0x5- this[_0x5b48[2742]])};_0x43b0x4= this[_0x5b48[2734]][_0x5b48[1562]];this[_0x5b48[2734]][_0x5b48[1562]]= new mxRectangle(_0x43b0x9[_0x5b48[235]]+ _0x43b0x9[_0x5b48[117]]- _0x43b0x4[_0x5b48[117]]/ 2,_0x43b0x9[_0x5b48[236]]+ _0x43b0x9[_0x5b48[119]]- _0x43b0x4[_0x5b48[119]]/ 2,_0x43b0x4[_0x5b48[117]],_0x43b0x4[_0x5b48[119]]);_0x5b48[188]!= this[_0x5b48[2734]][_0x5b48[252]][_0x5b48[124]][_0x5b48[187]]&& this[_0x5b48[2734]][_0x5b48[258]]();_0x43b0x3[_0x5b48[722]]()}};mxOutline[_0x5b48[202]][_0x5b48[789]]= function(_0x43b0x2,_0x43b0x3){if(this[_0x5b48[1124]]){var _0x43b0x4=_0x43b0x3[_0x5b48[730]]()- this[_0x5b48[2739]],_0x43b0x5=_0x43b0x3[_0x5b48[732]]()- this[_0x5b48[2740]];if(0< Math[_0x5b48[425]](_0x43b0x4)|| 0< Math[_0x5b48[425]](_0x43b0x5)){if(this[_0x5b48[499]]){var _0x43b0x5=this[_0x5b48[2732]][_0x5b48[1562]][_0x5b48[117]],_0x43b0x9=this[_0x5b48[1097]][_0x5b48[249]]()[_0x5b48[255]];this[_0x5b48[1097]][_0x5b48[2561]](_0x43b0x9- _0x43b0x4* _0x43b0x9/ _0x43b0x5,!1)}else {if(!this[_0x5b48[1097]][_0x5b48[2365]]|| !mxUtils[_0x5b48[1134]](this[_0x5b48[1097]][_0x5b48[526]])){this[_0x5b48[1097]][_0x5b48[1135]](0,0),_0x43b0x4/= this[_0x5b48[2136]][_0x5b48[249]]()[_0x5b48[255]],_0x43b0x5/= this[_0x5b48[2136]][_0x5b48[249]]()[_0x5b48[255]],_0x43b0x9= this[_0x5b48[1097]][_0x5b48[249]]()[_0x5b48[513]],this[_0x5b48[1097]][_0x5b48[249]]()[_0x5b48[1147]](_0x43b0x9[_0x5b48[235]]- _0x43b0x4,_0x43b0x9[_0x5b48[236]]- _0x43b0x5)}};this[_0x5b48[2729]]();_0x43b0x3[_0x5b48[722]]()};this[_0x5b48[1983]]= null;this[_0x5b48[1124]]= !1}};mxOutline[_0x5b48[202]][_0x5b48[515]]= function(){null!= this[_0x5b48[1097]]&& (this[_0x5b48[1097]][_0x5b48[745]](this[_0x5b48[2730]]),this[_0x5b48[1097]][_0x5b48[745]](this[_0x5b48[2731]]),this[_0x5b48[1097]][_0x5b48[502]]()[_0x5b48[745]](this[_0x5b48[2728]]),this[_0x5b48[1097]][_0x5b48[249]]()[_0x5b48[745]](this[_0x5b48[2728]]),mxEvent[_0x5b48[169]](this[_0x5b48[1097]][_0x5b48[526]],_0x5b48[276],this[_0x5b48[2728]]),this[_0x5b48[1097]]= null);null!= this[_0x5b48[2136]]&& (this[_0x5b48[2136]][_0x5b48[1148]](this),this[_0x5b48[2136]][_0x5b48[515]](),this[_0x5b48[2136]]= null);null!= this[_0x5b48[2732]]&& (this[_0x5b48[2732]][_0x5b48[515]](),this[_0x5b48[2732]]= null);null!= this[_0x5b48[2734]]&& (this[_0x5b48[2734]][_0x5b48[515]](),this[_0x5b48[2734]]= null)};function mxMultiplicity(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa,_0x43b0x12,_0x43b0x13,_0x43b0x14,_0x43b0x15){this[_0x5b48[1097]]= _0x43b0x2;this[_0x5b48[60]]= _0x43b0x3;this[_0x5b48[2588]]= _0x43b0x4;this[_0x5b48[131]]= _0x43b0x5;this[_0x5b48[243]]= null!= _0x43b0x9?_0x43b0x9:0;this[_0x5b48[160]]= null!= _0x43b0xa?_0x43b0xa:_0x5b48[2743];this[_0x5b48[2744]]= _0x43b0x12;this[_0x5b48[2589]]= mxResources[_0x5b48[203]](_0x43b0x13)|| _0x43b0x13;this[_0x5b48[2745]]= mxResources[_0x5b48[203]](_0x43b0x14)|| _0x43b0x14;this[_0x5b48[2746]]= null!= _0x43b0x15?_0x43b0x15:!0}mxMultiplicity[_0x5b48[202]][_0x5b48[60]]= null;mxMultiplicity[_0x5b48[202]][_0x5b48[2588]]= null;mxMultiplicity[_0x5b48[202]][_0x5b48[131]]= null;mxMultiplicity[_0x5b48[202]][_0x5b48[1097]]= null;mxMultiplicity[_0x5b48[202]][_0x5b48[243]]= null;mxMultiplicity[_0x5b48[202]][_0x5b48[160]]= null;mxMultiplicity[_0x5b48[202]][_0x5b48[2744]]= null;mxMultiplicity[_0x5b48[202]][_0x5b48[2746]]= !0;mxMultiplicity[_0x5b48[202]][_0x5b48[2589]]= null;mxMultiplicity[_0x5b48[202]][_0x5b48[2745]]= null;mxMultiplicity[_0x5b48[202]][_0x5b48[2583]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa){var _0x43b0x12=_0x5b48[110];if(this[_0x5b48[1097]]&& this[_0x5b48[2747]](_0x43b0x2,_0x43b0x4,_0x43b0x3)|| !this[_0x5b48[1097]]&& this[_0x5b48[2747]](_0x43b0x2,_0x43b0x5,_0x43b0x3)){if(null!= this[_0x5b48[2589]]&& (this[_0x5b48[1097]]&& (0== this[_0x5b48[160]]|| _0x43b0x9>= this[_0x5b48[160]])|| !this[_0x5b48[1097]]&& (0== this[_0x5b48[160]]|| _0x43b0xa>= this[_0x5b48[160]]))){_0x43b0x12+= this[_0x5b48[2589]]+ _0x5b48[192]};null!= this[_0x5b48[2744]]&& (null!= this[_0x5b48[2745]]&& 0< this[_0x5b48[2744]][_0x5b48[67]])&& (this[_0x5b48[2748]](_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5)|| (_0x43b0x12+= this[_0x5b48[2745]]+ _0x5b48[192]))};return 0< _0x43b0x12[_0x5b48[67]]?_0x43b0x12:null};mxMultiplicity[_0x5b48[202]][_0x5b48[2748]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){_0x43b0x3= _0x43b0x2[_0x5b48[251]][_0x5b48[433]](_0x43b0x4);_0x43b0x5= _0x43b0x2[_0x5b48[251]][_0x5b48[433]](_0x43b0x5);_0x43b0x4= !this[_0x5b48[2746]];for(var _0x43b0x9=this[_0x5b48[2744]],_0x43b0xa=0;_0x43b0xa< _0x43b0x9[_0x5b48[67]];_0x43b0xa++){if(this[_0x5b48[1097]]&& this[_0x5b48[2749]](_0x43b0x2,_0x43b0x5,_0x43b0x9[_0x43b0xa])){_0x43b0x4= this[_0x5b48[2746]];break}else {if(!this[_0x5b48[1097]]&& this[_0x5b48[2749]](_0x43b0x2,_0x43b0x3,_0x43b0x9[_0x43b0xa])){_0x43b0x4= this[_0x5b48[2746]];break}}};return _0x43b0x4};mxMultiplicity[_0x5b48[202]][_0x5b48[2747]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){_0x43b0x3= _0x43b0x2[_0x5b48[251]][_0x5b48[433]](_0x43b0x3);return this[_0x5b48[2749]](_0x43b0x2,_0x43b0x3,this[_0x5b48[60]],this[_0x5b48[2588]],this[_0x5b48[131]])};mxMultiplicity[_0x5b48[202]][_0x5b48[2749]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){return null!= _0x43b0x3?isNaN(_0x43b0x3[_0x5b48[288]])?_0x43b0x3== _0x43b0x4:mxUtils[_0x5b48[1331]](_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9):!1};function mxLayoutManager(_0x43b0x2){this[_0x5b48[2750]]= mxUtils[_0x5b48[885]](this,function(_0x43b0x2,_0x43b0x4){this[_0x5b48[994]]()&& this[_0x5b48[823]](_0x43b0x4[_0x5b48[720]](_0x5b48[1061]))});this[_0x5b48[2317]]= mxUtils[_0x5b48[885]](this,function(_0x43b0x2,_0x43b0x4){this[_0x5b48[994]]()&& this[_0x5b48[835]](_0x43b0x4[_0x5b48[720]](_0x5b48[895]),_0x43b0x4[_0x5b48[720]](_0x5b48[763]))});this[_0x5b48[1178]](_0x43b0x2)}mxLayoutManager[_0x5b48[202]]= new mxEventSource;mxLayoutManager[_0x5b48[202]][_0x5b48[196]]= mxLayoutManager;mxLayoutManager[_0x5b48[202]][_0x5b48[1179]]= null;mxLayoutManager[_0x5b48[202]][_0x5b48[2751]]= !0;mxLayoutManager[_0x5b48[202]][_0x5b48[984]]= !0;mxLayoutManager[_0x5b48[202]][_0x5b48[2728]]= null;mxLayoutManager[_0x5b48[202]][_0x5b48[2317]]= null;mxLayoutManager[_0x5b48[202]][_0x5b48[994]]= function(){return this[_0x5b48[984]]};mxLayoutManager[_0x5b48[202]][_0x5b48[995]]= function(_0x43b0x2){this[_0x5b48[984]]= _0x43b0x2};mxLayoutManager[_0x5b48[202]][_0x5b48[2752]]= function(){return this[_0x5b48[2751]]};mxLayoutManager[_0x5b48[202]][_0x5b48[2753]]= function(_0x43b0x2){this[_0x5b48[2751]]= _0x43b0x2};mxLayoutManager[_0x5b48[202]][_0x5b48[1703]]= function(){return this[_0x5b48[1179]]};mxLayoutManager[_0x5b48[202]][_0x5b48[1178]]= function(_0x43b0x2){if(null!= this[_0x5b48[1179]]){var _0x43b0x3=this[_0x5b48[1179]][_0x5b48[502]]();_0x43b0x3[_0x5b48[745]](this[_0x5b48[2750]]);this[_0x5b48[1179]][_0x5b48[745]](this[_0x5b48[2317]])};this[_0x5b48[1179]]= _0x43b0x2;null!= this[_0x5b48[1179]]&& (_0x43b0x3= this[_0x5b48[1179]][_0x5b48[502]](),_0x43b0x3[_0x5b48[169]](mxEvent.BEFORE_UNDO,this[_0x5b48[2750]]),this[_0x5b48[1179]][_0x5b48[169]](mxEvent.MOVE_CELLS,this[_0x5b48[2317]]))};mxLayoutManager[_0x5b48[202]][_0x5b48[2754]]= function(_0x43b0x2){return null};mxLayoutManager[_0x5b48[202]][_0x5b48[823]]= function(_0x43b0x2){_0x43b0x2= this[_0x5b48[2755]](_0x43b0x2[_0x5b48[1065]]);var _0x43b0x3=this[_0x5b48[1703]]()[_0x5b48[502]]();if(this[_0x5b48[2752]]()){for(var _0x43b0x4=_0x43b0x3[_0x5b48[1977]](_0x43b0x2);0< _0x43b0x4[_0x5b48[67]];){_0x43b0x2= _0x43b0x2[_0x5b48[1919]](_0x43b0x4),_0x43b0x4= _0x43b0x3[_0x5b48[1977]](_0x43b0x4)}};this[_0x5b48[828]](mxUtils[_0x5b48[1779]](_0x43b0x2,!1))};mxLayoutManager[_0x5b48[202]][_0x5b48[835]]= function(_0x43b0x2,_0x43b0x3){if(null!= _0x43b0x2&& null!= _0x43b0x3){for(var _0x43b0x4=mxUtils[_0x5b48[2196]](this[_0x5b48[1703]]()[_0x5b48[526]],mxEvent[_0x5b48[731]](_0x43b0x3),mxEvent[_0x5b48[733]](_0x43b0x3)),_0x43b0x5=this[_0x5b48[1703]]()[_0x5b48[502]](),_0x43b0x9=0;_0x43b0x9< _0x43b0x2[_0x5b48[67]];_0x43b0x9++){var _0x43b0xa=this[_0x5b48[2754]](_0x43b0x5[_0x5b48[1197]](_0x43b0x2[_0x43b0x9]));null!= _0x43b0xa&& _0x43b0xa[_0x5b48[1702]](_0x43b0x2[_0x43b0x9],_0x43b0x4[_0x5b48[235]],_0x43b0x4[_0x5b48[236]])}}};mxLayoutManager[_0x5b48[202]][_0x5b48[2755]]= function(_0x43b0x2){for(var _0x43b0x3=[],_0x43b0x4={},_0x43b0x5=0;_0x43b0x5< _0x43b0x2[_0x5b48[67]];_0x43b0x5++){var _0x43b0x9=_0x43b0x2[_0x43b0x5];if(_0x43b0x9 instanceof mxRootChange){return []};for(var _0x43b0x9=this[_0x5b48[2756]](_0x43b0x9),_0x43b0xa=0;_0x43b0xa< _0x43b0x9[_0x5b48[67]];_0x43b0xa++){if(null!= _0x43b0x9[_0x43b0xa]){var _0x43b0x12=mxCellPath[_0x5b48[385]](_0x43b0x9[_0x43b0xa]);null== _0x43b0x4[_0x43b0x12]&& (_0x43b0x4[_0x43b0x12]= _0x43b0x9[_0x43b0xa],_0x43b0x3[_0x5b48[207]](_0x43b0x9[_0x43b0xa]))}}};return _0x43b0x3};mxLayoutManager[_0x5b48[202]][_0x5b48[2756]]= function(_0x43b0x2){var _0x43b0x3=this[_0x5b48[1703]]()[_0x5b48[502]]();return _0x43b0x2 instanceof mxChildChange?[_0x43b0x2[_0x5b48[247]],_0x43b0x2[_0x5b48[257]],_0x43b0x3[_0x5b48[1197]](_0x43b0x2[_0x5b48[247]])]:_0x43b0x2 instanceof mxTerminalChange|| _0x43b0x2 instanceof mxGeometryChange?[_0x43b0x2[_0x5b48[246]],_0x43b0x3[_0x5b48[1197]](_0x43b0x2[_0x5b48[246]])]:[]};mxLayoutManager[_0x5b48[202]][_0x5b48[828]]= function(_0x43b0x2){if(0< _0x43b0x2[_0x5b48[67]]){var _0x43b0x3=this[_0x5b48[1703]]()[_0x5b48[502]]();_0x43b0x3[_0x5b48[473]]();try{for(var _0x43b0x4=null,_0x43b0x5=0;_0x43b0x5< _0x43b0x2[_0x5b48[67]];_0x43b0x5++){_0x43b0x2[_0x43b0x5]!= _0x43b0x3[_0x5b48[501]]()&& _0x43b0x2[_0x43b0x5]!= _0x43b0x4&& (_0x43b0x4= _0x43b0x2[_0x43b0x5],this[_0x5b48[2757]](this[_0x5b48[2754]](_0x43b0x4),_0x43b0x4))};this[_0x5b48[746]]( new mxEventObject(mxEvent.LAYOUT_CELLS,_0x5b48[895],_0x43b0x2))}finally{_0x43b0x3[_0x5b48[476]]()}}};mxLayoutManager[_0x5b48[202]][_0x5b48[2757]]= function(_0x43b0x2,_0x43b0x3){null!= _0x43b0x2&& null!= _0x43b0x3&& _0x43b0x2[_0x5b48[350]](_0x43b0x3)};mxLayoutManager[_0x5b48[202]][_0x5b48[515]]= function(){this[_0x5b48[1178]](null)};function mxSpaceManager(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){this[_0x5b48[2758]]= mxUtils[_0x5b48[885]](this,function(_0x43b0x2,_0x43b0x3){this[_0x5b48[994]]()&& this[_0x5b48[837]](_0x43b0x3[_0x5b48[720]](_0x5b48[895]))});this[_0x5b48[2759]]= mxUtils[_0x5b48[885]](this,function(_0x43b0x2,_0x43b0x3){this[_0x5b48[994]]()&& this[_0x5b48[837]](_0x43b0x3[_0x5b48[720]](_0x5b48[895]))});this[_0x5b48[2760]]= null!= _0x43b0x3?_0x43b0x3:!0;this[_0x5b48[2761]]= null!= _0x43b0x4?_0x43b0x4:!0;this[_0x5b48[2392]]= null!= _0x43b0x5?_0x43b0x5:!0;this[_0x5b48[1178]](_0x43b0x2)}mxSpaceManager[_0x5b48[202]]= new mxEventSource;mxSpaceManager[_0x5b48[202]][_0x5b48[196]]= mxSpaceManager;mxSpaceManager[_0x5b48[202]][_0x5b48[1179]]= null;mxSpaceManager[_0x5b48[202]][_0x5b48[984]]= !0;mxSpaceManager[_0x5b48[202]][_0x5b48[2760]]= !0;mxSpaceManager[_0x5b48[202]][_0x5b48[2761]]= !0;mxSpaceManager[_0x5b48[202]][_0x5b48[2392]]= !0;mxSpaceManager[_0x5b48[202]][_0x5b48[2758]]= null;mxSpaceManager[_0x5b48[202]][_0x5b48[2759]]= null;mxSpaceManager[_0x5b48[202]][_0x5b48[2762]]= function(_0x43b0x2){return !this[_0x5b48[1703]]()[_0x5b48[502]]()[_0x5b48[1193]](_0x43b0x2)};mxSpaceManager[_0x5b48[202]][_0x5b48[2763]]= function(_0x43b0x2){return this[_0x5b48[1703]]()[_0x5b48[502]]()[_0x5b48[1193]](_0x43b0x2)&& this[_0x5b48[1703]]()[_0x5b48[1712]](_0x43b0x2)};mxSpaceManager[_0x5b48[202]][_0x5b48[994]]= function(){return this[_0x5b48[984]]};mxSpaceManager[_0x5b48[202]][_0x5b48[995]]= function(_0x43b0x2){this[_0x5b48[984]]= _0x43b0x2};mxSpaceManager[_0x5b48[202]][_0x5b48[2764]]= function(){return this[_0x5b48[2760]]};mxSpaceManager[_0x5b48[202]][_0x5b48[2765]]= function(_0x43b0x2){this[_0x5b48[2760]]= _0x43b0x2};mxSpaceManager[_0x5b48[202]][_0x5b48[2766]]= function(){return this[_0x5b48[2761]]};mxSpaceManager[_0x5b48[202]][_0x5b48[2767]]= function(_0x43b0x2){this[_0x5b48[2761]]= _0x43b0x2};mxSpaceManager[_0x5b48[202]][_0x5b48[2678]]= function(){return this[_0x5b48[2392]]};mxSpaceManager[_0x5b48[202]][_0x5b48[2679]]= function(_0x43b0x2){this[_0x5b48[2392]]= _0x43b0x2};mxSpaceManager[_0x5b48[202]][_0x5b48[1703]]= function(){return this[_0x5b48[1179]]};mxSpaceManager[_0x5b48[202]][_0x5b48[1178]]= function(_0x43b0x2){null!= this[_0x5b48[1179]]&& (this[_0x5b48[1179]][_0x5b48[745]](this[_0x5b48[2758]]),this[_0x5b48[1179]][_0x5b48[745]](this[_0x5b48[2759]]));this[_0x5b48[1179]]= _0x43b0x2;null!= this[_0x5b48[1179]]&& (this[_0x5b48[1179]][_0x5b48[169]](mxEvent.RESIZE_CELLS,this[_0x5b48[2758]]),this[_0x5b48[1179]][_0x5b48[169]](mxEvent.FOLD_CELLS,this[_0x5b48[2759]]))};mxSpaceManager[_0x5b48[202]][_0x5b48[837]]= function(_0x43b0x2){if(null!= _0x43b0x2){var _0x43b0x3=this[_0x5b48[1179]][_0x5b48[502]]();_0x43b0x3[_0x5b48[473]]();try{for(var _0x43b0x4=0;_0x43b0x4< _0x43b0x2[_0x5b48[67]];_0x43b0x4++){if(!this[_0x5b48[2762]](_0x43b0x2[_0x43b0x4])){this[_0x5b48[2768]](_0x43b0x2[_0x43b0x4]);break}}}finally{_0x43b0x3[_0x5b48[476]]()}}};mxSpaceManager[_0x5b48[202]][_0x5b48[2768]]= function(_0x43b0x2){var _0x43b0x3=this[_0x5b48[1703]](),_0x43b0x4=_0x43b0x3[_0x5b48[249]](),_0x43b0x5=_0x43b0x3[_0x5b48[502]](),_0x43b0x9=_0x43b0x4[_0x5b48[248]](_0x43b0x2),_0x43b0xa=_0x43b0x4[_0x5b48[248]](_0x43b0x5[_0x5b48[1197]](_0x43b0x2));if(null!= _0x43b0x9&& null!= _0x43b0xa){var _0x43b0x12=this[_0x5b48[2769]](_0x43b0x9),_0x43b0x13=_0x43b0x5[_0x5b48[1721]](_0x43b0x2);if(null!= _0x43b0x12&& null!= _0x43b0x13){var _0x43b0x14=_0x43b0x4[_0x5b48[513]],_0x43b0x15=_0x43b0x4[_0x5b48[255]],_0x43b0x4=_0x43b0x9[_0x5b48[235]]- _0x43b0xa[_0x5b48[2078]][_0x5b48[235]]- _0x43b0x14[_0x5b48[235]]* _0x43b0x15,_0x43b0xa=_0x43b0x9[_0x5b48[236]]- _0x43b0xa[_0x5b48[2078]][_0x5b48[236]]- _0x43b0x14[_0x5b48[236]]* _0x43b0x15,_0x43b0x14=_0x43b0x9[_0x5b48[235]]+ _0x43b0x9[_0x5b48[117]],_0x43b0x16=_0x43b0x9[_0x5b48[236]]+ _0x43b0x9[_0x5b48[119]],_0x43b0x17=_0x43b0x9[_0x5b48[117]]- _0x43b0x13[_0x5b48[117]]* _0x43b0x15+ _0x43b0x4- _0x43b0x13[_0x5b48[235]]* _0x43b0x15,_0x43b0x18=_0x43b0x9[_0x5b48[119]]- _0x43b0x13[_0x5b48[119]]* _0x43b0x15+ _0x43b0xa- _0x43b0x13[_0x5b48[236]]* _0x43b0x15,_0x43b0x19=1- _0x43b0x13[_0x5b48[117]]* _0x43b0x15/ _0x43b0x9[_0x5b48[117]],_0x43b0x9=1- _0x43b0x13[_0x5b48[119]]* _0x43b0x15/ _0x43b0x9[_0x5b48[119]];_0x43b0x5[_0x5b48[473]]();try{for(_0x43b0x13= 0;_0x43b0x13< _0x43b0x12[_0x5b48[67]];_0x43b0x13++){_0x43b0x12[_0x43b0x13]!= _0x43b0x2&& this[_0x5b48[2763]](_0x43b0x12[_0x43b0x13])&& this[_0x5b48[2770]](_0x43b0x12[_0x43b0x13],_0x43b0x17,_0x43b0x18,_0x43b0x4,_0x43b0xa,_0x43b0x14,_0x43b0x16,_0x43b0x19,_0x43b0x9,this[_0x5b48[2678]]()&& _0x43b0x3[_0x5b48[2507]](_0x43b0x12[_0x43b0x13]))}}finally{_0x43b0x5[_0x5b48[476]]()}}}};mxSpaceManager[_0x5b48[202]][_0x5b48[2770]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa,_0x43b0x12,_0x43b0x13,_0x43b0x14,_0x43b0x15){_0x43b0x5= this[_0x5b48[1703]]();var _0x43b0x16=_0x43b0x5[_0x5b48[249]]()[_0x5b48[248]](_0x43b0x2);if(null!= _0x43b0x16){var _0x43b0x17=_0x43b0x5[_0x5b48[502]](),_0x43b0x18=_0x43b0x17[_0x5b48[1721]](_0x43b0x2);if(null!= _0x43b0x18){_0x43b0x17[_0x5b48[473]]();try{if(this[_0x5b48[2764]]()){if(_0x43b0x16[_0x5b48[235]]>= _0x43b0xa){_0x43b0x18= _0x43b0x18[_0x5b48[238]](),_0x43b0x18[_0x5b48[513]](-_0x43b0x3,0)}else {var _0x43b0x19=Math[_0x5b48[160]](0,_0x43b0x16[_0x5b48[235]]- x0),_0x43b0x18=_0x43b0x18[_0x5b48[238]]();_0x43b0x18[_0x5b48[513]](-_0x43b0x13* _0x43b0x19,0)}};if(this[_0x5b48[2766]]()){if(_0x43b0x16[_0x5b48[236]]>= _0x43b0x12){_0x43b0x18= _0x43b0x18[_0x5b48[238]](),_0x43b0x18[_0x5b48[513]](0,-_0x43b0x4)}else {var _0x43b0x1a=Math[_0x5b48[160]](0,_0x43b0x16[_0x5b48[236]]- _0x43b0x9),_0x43b0x18=_0x43b0x18[_0x5b48[238]]();_0x43b0x18[_0x5b48[513]](0,-_0x43b0x14* _0x43b0x1a)}};_0x43b0x18!= _0x43b0x17[_0x5b48[1721]](_0x43b0x2)&& (_0x43b0x17[_0x5b48[1724]](_0x43b0x2,_0x43b0x18),_0x43b0x15&& _0x43b0x5[_0x5b48[2508]](_0x43b0x2))}finally{_0x43b0x17[_0x5b48[476]]()}}}};mxSpaceManager[_0x5b48[202]][_0x5b48[2769]]= function(_0x43b0x2){var _0x43b0x3=this[_0x5b48[1703]](),_0x43b0x4=_0x43b0x3[_0x5b48[502]]()[_0x5b48[1197]](_0x43b0x2[_0x5b48[246]]),_0x43b0x5=this[_0x5b48[2766]](),_0x43b0x9=this[_0x5b48[2764]]();return _0x43b0x3[_0x5b48[2691]](_0x43b0x2[_0x5b48[235]]+ (_0x43b0x5?0:_0x43b0x2[_0x5b48[117]]),_0x43b0x2[_0x5b48[236]]+ (_0x43b0x5&& _0x43b0x9?0:_0x43b0x2[_0x5b48[119]]),_0x43b0x4,_0x43b0x9,_0x43b0x5)};mxSpaceManager[_0x5b48[202]][_0x5b48[515]]= function(){this[_0x5b48[1178]](null)};function mxSwimlaneManager(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){this[_0x5b48[662]]= null!= _0x43b0x3?_0x43b0x3:!0;this[_0x5b48[2771]]= null!= _0x43b0x4?_0x43b0x4:!0;this[_0x5b48[2772]]= null!= _0x43b0x5?_0x43b0x5:!0;this[_0x5b48[2773]]= mxUtils[_0x5b48[885]](this,function(_0x43b0x2,_0x43b0x3){this[_0x5b48[994]]()&& this[_0x5b48[2774]]()&& this[_0x5b48[833]](_0x43b0x3[_0x5b48[720]](_0x5b48[895]))});this[_0x5b48[2758]]= mxUtils[_0x5b48[885]](this,function(_0x43b0x2,_0x43b0x3){this[_0x5b48[994]]()&& this[_0x5b48[2775]]()&& this[_0x5b48[837]](_0x43b0x3[_0x5b48[720]](_0x5b48[895]))});this[_0x5b48[1178]](_0x43b0x2)}mxSwimlaneManager[_0x5b48[202]]= new mxEventSource;mxSwimlaneManager[_0x5b48[202]][_0x5b48[196]]= mxSwimlaneManager;mxSwimlaneManager[_0x5b48[202]][_0x5b48[1179]]= null;mxSwimlaneManager[_0x5b48[202]][_0x5b48[984]]= !0;mxSwimlaneManager[_0x5b48[202]][_0x5b48[662]]= !0;mxSwimlaneManager[_0x5b48[202]][_0x5b48[2771]]= !0;mxSwimlaneManager[_0x5b48[202]][_0x5b48[2772]]= !0;mxSwimlaneManager[_0x5b48[202]][_0x5b48[2773]]= null;mxSwimlaneManager[_0x5b48[202]][_0x5b48[2758]]= null;mxSwimlaneManager[_0x5b48[202]][_0x5b48[994]]= function(){return this[_0x5b48[984]]};mxSwimlaneManager[_0x5b48[202]][_0x5b48[995]]= function(_0x43b0x2){this[_0x5b48[984]]= _0x43b0x2};mxSwimlaneManager[_0x5b48[202]][_0x5b48[1737]]= function(){return this[_0x5b48[662]]};mxSwimlaneManager[_0x5b48[202]][_0x5b48[2776]]= function(_0x43b0x2){this[_0x5b48[662]]= _0x43b0x2};mxSwimlaneManager[_0x5b48[202]][_0x5b48[2774]]= function(){return this[_0x5b48[2771]]};mxSwimlaneManager[_0x5b48[202]][_0x5b48[2777]]= function(_0x43b0x2){this[_0x5b48[2771]]= _0x43b0x2};mxSwimlaneManager[_0x5b48[202]][_0x5b48[2775]]= function(){return this[_0x5b48[2772]]};mxSwimlaneManager[_0x5b48[202]][_0x5b48[2778]]= function(_0x43b0x2){this[_0x5b48[2772]]= _0x43b0x2};mxSwimlaneManager[_0x5b48[202]][_0x5b48[1703]]= function(){return this[_0x5b48[1179]]};mxSwimlaneManager[_0x5b48[202]][_0x5b48[1178]]= function(_0x43b0x2){null!= this[_0x5b48[1179]]&& (this[_0x5b48[1179]][_0x5b48[745]](this[_0x5b48[2773]]),this[_0x5b48[1179]][_0x5b48[745]](this[_0x5b48[2758]]));this[_0x5b48[1179]]= _0x43b0x2;null!= this[_0x5b48[1179]]&& (this[_0x5b48[1179]][_0x5b48[169]](mxEvent.ADD_CELLS,this[_0x5b48[2773]]),this[_0x5b48[1179]][_0x5b48[169]](mxEvent.CELLS_RESIZED,this[_0x5b48[2758]]))};mxSwimlaneManager[_0x5b48[202]][_0x5b48[2779]]= function(_0x43b0x2){return !this[_0x5b48[1703]]()[_0x5b48[1730]](_0x43b0x2)};mxSwimlaneManager[_0x5b48[202]][_0x5b48[2780]]= function(_0x43b0x2){if(this[_0x5b48[1179]][_0x5b48[1730]](_0x43b0x2)){var _0x43b0x3=this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[248]](_0x43b0x2);_0x43b0x2= null!= _0x43b0x3?_0x43b0x3[_0x5b48[124]]:this[_0x5b48[1179]][_0x5b48[1705]](_0x43b0x2);return 1== mxUtils[_0x5b48[433]](_0x43b0x2,mxConstants.STYLE_HORIZONTAL,1)};return !this[_0x5b48[1737]]()};mxSwimlaneManager[_0x5b48[202]][_0x5b48[833]]= function(_0x43b0x2){if(null!= _0x43b0x2){var _0x43b0x3=this[_0x5b48[1703]]()[_0x5b48[502]]();_0x43b0x3[_0x5b48[473]]();try{for(var _0x43b0x4=0;_0x43b0x4< _0x43b0x2[_0x5b48[67]];_0x43b0x4++){this[_0x5b48[2779]](_0x43b0x2[_0x43b0x4])|| this[_0x5b48[2781]](_0x43b0x2[_0x43b0x4])}}finally{_0x43b0x3[_0x5b48[476]]()}}};mxSwimlaneManager[_0x5b48[202]][_0x5b48[2781]]= function(_0x43b0x2){for(var _0x43b0x3=this[_0x5b48[1703]]()[_0x5b48[502]](),_0x43b0x4=_0x43b0x3[_0x5b48[1197]](_0x43b0x2),_0x43b0x5=_0x43b0x3[_0x5b48[262]](_0x43b0x4),_0x43b0x9=null,_0x43b0xa=0;_0x43b0xa< _0x43b0x5;_0x43b0xa++){var _0x43b0x12=_0x43b0x3[_0x5b48[263]](_0x43b0x4,_0x43b0xa);if(_0x43b0x12!= _0x43b0x2&& !this[_0x5b48[2779]](_0x43b0x12)&& (_0x43b0x9= _0x43b0x3[_0x5b48[1721]](_0x43b0x12),null!= _0x43b0x9)){break}};null!= _0x43b0x9&& this[_0x5b48[2782]](_0x43b0x2,_0x43b0x9[_0x5b48[117]],_0x43b0x9[_0x5b48[119]])};mxSwimlaneManager[_0x5b48[202]][_0x5b48[837]]= function(_0x43b0x2){if(null!= _0x43b0x2){var _0x43b0x3=this[_0x5b48[1703]]()[_0x5b48[502]]();_0x43b0x3[_0x5b48[473]]();try{for(var _0x43b0x4=0;_0x43b0x4< _0x43b0x2[_0x5b48[67]];_0x43b0x4++){if(!this[_0x5b48[2779]](_0x43b0x2[_0x43b0x4])){var _0x43b0x5=_0x43b0x3[_0x5b48[1721]](_0x43b0x2[_0x43b0x4]);if(null!= _0x43b0x5){for(var _0x43b0x9= new mxRectangle(0,0,_0x43b0x5[_0x5b48[117]],_0x43b0x5[_0x5b48[119]]),_0x43b0xa=_0x43b0x2[_0x43b0x4],_0x43b0x12=_0x43b0xa;null!= _0x43b0x12;){var _0x43b0xa=_0x43b0x12,_0x43b0x12=_0x43b0x3[_0x5b48[1197]](_0x43b0x12),_0x43b0x13=this[_0x5b48[1179]][_0x5b48[1730]](_0x43b0x12)?this[_0x5b48[1179]][_0x5b48[1731]](_0x43b0x12): new mxRectangle;_0x43b0x9[_0x5b48[117]]+= _0x43b0x13[_0x5b48[117]];_0x43b0x9[_0x5b48[119]]+= _0x43b0x13[_0x5b48[119]]};this[_0x5b48[2782]](_0x43b0xa,_0x43b0x9[_0x5b48[117]],_0x43b0x9[_0x5b48[119]])}}}}finally{_0x43b0x3[_0x5b48[476]]()}}};mxSwimlaneManager[_0x5b48[202]][_0x5b48[2782]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){var _0x43b0x5=this[_0x5b48[1703]]()[_0x5b48[502]]();_0x43b0x5[_0x5b48[473]]();try{if(!this[_0x5b48[2779]](_0x43b0x2)){var _0x43b0x9=_0x43b0x5[_0x5b48[1721]](_0x43b0x2);if(null!= _0x43b0x9){var _0x43b0xa=this[_0x5b48[2780]](_0x43b0x2);if(_0x43b0xa&& _0x43b0x9[_0x5b48[119]]!= _0x43b0x4|| !_0x43b0xa&& _0x43b0x9[_0x5b48[117]]!= _0x43b0x3){_0x43b0x9= _0x43b0x9[_0x5b48[238]](),_0x43b0xa?_0x43b0x9[_0x5b48[119]]= _0x43b0x4:_0x43b0x9[_0x5b48[117]]= _0x43b0x3,_0x43b0x5[_0x5b48[1724]](_0x43b0x2,_0x43b0x9)}}};var _0x43b0x12=this[_0x5b48[1179]][_0x5b48[1730]](_0x43b0x2)?this[_0x5b48[1179]][_0x5b48[1731]](_0x43b0x2): new mxRectangle;_0x43b0x3-= _0x43b0x12[_0x5b48[117]];_0x43b0x4-= _0x43b0x12[_0x5b48[119]];for(var _0x43b0x13=_0x43b0x5[_0x5b48[262]](_0x43b0x2),_0x43b0x9=0;_0x43b0x9< _0x43b0x13;_0x43b0x9++){var _0x43b0x14=_0x43b0x5[_0x5b48[263]](_0x43b0x2,_0x43b0x9);this[_0x5b48[2782]](_0x43b0x14,_0x43b0x3,_0x43b0x4)}}finally{_0x43b0x5[_0x5b48[476]]()}};mxSwimlaneManager[_0x5b48[202]][_0x5b48[515]]= function(){this[_0x5b48[1178]](null)};function mxTemporaryCellStates(_0x43b0x2,_0x43b0x3,_0x43b0x4){this[_0x5b48[441]]= _0x43b0x2;_0x43b0x3= null!= _0x43b0x3?_0x43b0x3:1;this[_0x5b48[2783]]= _0x43b0x2[_0x5b48[517]]();this[_0x5b48[2784]]= _0x43b0x2[_0x5b48[2312]]();this[_0x5b48[2785]]= _0x43b0x2[_0x5b48[518]]();_0x43b0x2[_0x5b48[1517]]( new mxDictionary);_0x43b0x2[_0x5b48[2262]](_0x43b0x3);if(null!= _0x43b0x4){_0x43b0x3= _0x43b0x2[_0x5b48[1230]]( new mxCell);for(var _0x43b0x5=0;_0x43b0x5< _0x43b0x4[_0x5b48[67]];_0x43b0x5++){_0x43b0x2[_0x5b48[2267]](_0x43b0x3,_0x43b0x4[_0x43b0x5])};for(var _0x43b0x9=null,_0x43b0x5=0;_0x43b0x5< _0x43b0x4[_0x5b48[67]];_0x43b0x5++){var _0x43b0xa=_0x43b0x2[_0x5b48[2268]](_0x43b0x3,_0x43b0x4[_0x43b0x5]);null== _0x43b0x9?_0x43b0x9= _0x43b0xa:_0x43b0x9[_0x5b48[99]](_0x43b0xa)};null== _0x43b0x9&& (_0x43b0x9= new mxRectangle);_0x43b0x2[_0x5b48[2256]](_0x43b0x9)}}mxTemporaryCellStates[_0x5b48[202]][_0x5b48[441]]= null;mxTemporaryCellStates[_0x5b48[202]][_0x5b48[2784]]= null;mxTemporaryCellStates[_0x5b48[202]][_0x5b48[2783]]= null;mxTemporaryCellStates[_0x5b48[202]][_0x5b48[2785]]= null;mxTemporaryCellStates[_0x5b48[202]][_0x5b48[515]]= function(){this[_0x5b48[441]][_0x5b48[2262]](this[_0x5b48[2785]]);this[_0x5b48[441]][_0x5b48[1517]](this[_0x5b48[2784]]);this[_0x5b48[441]][_0x5b48[2256]](this[_0x5b48[2783]])};function mxCellStatePreview(_0x43b0x2){this[_0x5b48[1179]]= _0x43b0x2;this[_0x5b48[2786]]= {}}mxCellStatePreview[_0x5b48[202]][_0x5b48[1179]]= null;mxCellStatePreview[_0x5b48[202]][_0x5b48[2786]]= null;mxCellStatePreview[_0x5b48[202]][_0x5b48[2787]]= 0;mxCellStatePreview[_0x5b48[202]][_0x5b48[1107]]= function(){return 0== this[_0x5b48[2787]]};mxCellStatePreview[_0x5b48[202]][_0x5b48[1194]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){_0x43b0x5= null!= _0x43b0x5?_0x43b0x5:!0;_0x43b0x9= null!= _0x43b0x9?_0x43b0x9:!0;var _0x43b0xa=mxCellPath[_0x5b48[385]](_0x43b0x2[_0x5b48[246]]),_0x43b0x12=this[_0x5b48[2786]][_0x43b0xa];null== _0x43b0x12?(_0x43b0x12= new mxPoint(_0x43b0x3,_0x43b0x4),this[_0x5b48[2786]][_0x43b0xa]= _0x43b0x12,this[_0x5b48[2787]]++):_0x43b0x5?(_0x43b0x12[_0x5b48[2788]]+= _0x43b0x3,_0x43b0x12[_0x5b48[2789]]+= _0x43b0x4):(_0x43b0x12[_0x5b48[2788]]= _0x43b0x3,_0x43b0x12[_0x5b48[2789]]= _0x43b0x4);_0x43b0x9&& this[_0x5b48[2790]](_0x43b0x2);return _0x43b0x12};mxCellStatePreview[_0x5b48[202]][_0x5b48[539]]= function(_0x43b0x2){var _0x43b0x3=this[_0x5b48[1179]][_0x5b48[502]](),_0x43b0x4=_0x43b0x3[_0x5b48[501]](),_0x43b0x5;for(_0x43b0x5 in this[_0x5b48[2786]]){var _0x43b0x9=mxCellPath[_0x5b48[2791]](_0x43b0x4,_0x43b0x5),_0x43b0xa=this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[248]](_0x43b0x9),_0x43b0x12=this[_0x5b48[2786]][_0x43b0x5],_0x43b0x9=this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[248]](_0x43b0x3[_0x5b48[1197]](_0x43b0x9));this[_0x5b48[2792]](_0x43b0x9,_0x43b0xa,_0x43b0x12[_0x5b48[235]],_0x43b0x12[_0x5b48[236]])};for(_0x43b0x5 in this[_0x5b48[2786]]){_0x43b0x9= mxCellPath[_0x5b48[2791]](_0x43b0x4,_0x43b0x5),_0x43b0xa= this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[248]](_0x43b0x9),_0x43b0x12= this[_0x5b48[2786]][_0x43b0x5],_0x43b0x9= this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[248]](_0x43b0x3[_0x5b48[1197]](_0x43b0x9)),this[_0x5b48[2793]](_0x43b0x9,_0x43b0xa,_0x43b0x12[_0x5b48[235]],_0x43b0x12[_0x5b48[236]],_0x43b0x2)}};mxCellStatePreview[_0x5b48[202]][_0x5b48[2792]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){if(null!= _0x43b0x3){var _0x43b0x9=this[_0x5b48[1179]][_0x5b48[502]]();if(_0x43b0x9[_0x5b48[1193]](_0x43b0x3[_0x5b48[246]])){_0x43b0x3[_0x5b48[2080]]= !0;this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[2267]](_0x43b0x2,_0x43b0x3[_0x5b48[246]]);_0x43b0x2= _0x43b0x9[_0x5b48[1721]](_0x43b0x3[_0x5b48[246]]);var _0x43b0xa=mxCellPath[_0x5b48[385]](_0x43b0x3[_0x5b48[246]]);if((0!= _0x43b0x4|| 0!= _0x43b0x5)&& null!= _0x43b0x2&& (!_0x43b0x2[_0x5b48[1500]]|| null!= this[_0x5b48[2786]][_0x43b0xa])){_0x43b0x3[_0x5b48[235]]+= _0x43b0x4,_0x43b0x3[_0x5b48[236]]+= _0x43b0x5}};_0x43b0x2= _0x43b0x9[_0x5b48[262]](_0x43b0x3[_0x5b48[246]]);for(_0x43b0xa= 0;_0x43b0xa< _0x43b0x2;_0x43b0xa++){this[_0x5b48[2792]](_0x43b0x3,this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[248]](_0x43b0x9[_0x5b48[263]](_0x43b0x3[_0x5b48[246]],_0x43b0xa)),_0x43b0x4,_0x43b0x5)}}};mxCellStatePreview[_0x5b48[202]][_0x5b48[2793]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){if(null!= _0x43b0x3){_0x43b0x3[_0x5b48[2080]]= !0;this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[2268]](_0x43b0x2,_0x43b0x3[_0x5b48[246]]);var _0x43b0xa=mxCellPath[_0x5b48[385]](_0x43b0x3[_0x5b48[246]]),_0x43b0x12=this[_0x5b48[1179]][_0x5b48[502]](),_0x43b0x13=this[_0x5b48[1179]][_0x5b48[1198]](_0x43b0x3[_0x5b48[246]]);if((0!= _0x43b0x4|| 0!= _0x43b0x5)&& null!= _0x43b0x13&& _0x43b0x13[_0x5b48[1500]]&& _0x43b0x12[_0x5b48[1193]](_0x43b0x3[_0x5b48[246]])&& (null== _0x43b0x2|| _0x43b0x12[_0x5b48[1193]](_0x43b0x2[_0x5b48[246]])|| null!= this[_0x5b48[2786]][_0x43b0xa])){_0x43b0x3[_0x5b48[235]]+= _0x43b0x4,_0x43b0x3[_0x5b48[236]]+= _0x43b0x5,this[_0x5b48[1179]][_0x5b48[259]][_0x5b48[258]](_0x43b0x3)};null!= _0x43b0x9&& _0x43b0x9(_0x43b0x3);_0x43b0x2= _0x43b0x12[_0x5b48[262]](_0x43b0x3[_0x5b48[246]]);for(_0x43b0xa= 0;_0x43b0xa< _0x43b0x2;_0x43b0xa++){this[_0x5b48[2793]](_0x43b0x3,this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[248]](_0x43b0x12[_0x5b48[263]](_0x43b0x3[_0x5b48[246]],_0x43b0xa)),_0x43b0x4,_0x43b0x5,_0x43b0x9)}}};mxCellStatePreview[_0x5b48[202]][_0x5b48[2790]]= function(_0x43b0x2){for(var _0x43b0x3=this[_0x5b48[1179]][_0x5b48[502]](),_0x43b0x4=_0x43b0x3[_0x5b48[1707]](_0x43b0x2[_0x5b48[246]]),_0x43b0x5=0;_0x43b0x5< _0x43b0x4;_0x43b0x5++){var _0x43b0x9=this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[248]](_0x43b0x3[_0x5b48[1708]](_0x43b0x2[_0x5b48[246]],_0x43b0x5));null!= _0x43b0x9&& this[_0x5b48[1194]](_0x43b0x9,0,0)}};function mxConnectionConstraint(_0x43b0x2,_0x43b0x3){this[_0x5b48[2546]]= _0x43b0x2;this[_0x5b48[591]]= null!= _0x43b0x3?_0x43b0x3:!0}mxConnectionConstraint[_0x5b48[202]][_0x5b48[2546]]= null;mxConnectionConstraint[_0x5b48[202]][_0x5b48[591]]= null;function mxGraphHandler(_0x43b0x2){this[_0x5b48[1179]]= _0x43b0x2;this[_0x5b48[1179]][_0x5b48[1133]](this);this[_0x5b48[2730]]= mxUtils[_0x5b48[885]](this,function(){this[_0x5b48[2794]]()});this[_0x5b48[1179]][_0x5b48[169]](mxEvent.PAN,this[_0x5b48[2730]])}mxGraphHandler[_0x5b48[202]][_0x5b48[1179]]= null;mxGraphHandler[_0x5b48[202]][_0x5b48[2795]]= mxClient[_0x5b48[80]]?20:50;mxGraphHandler[_0x5b48[202]][_0x5b48[984]]= !0;mxGraphHandler[_0x5b48[202]][_0x5b48[2796]]= !0;mxGraphHandler[_0x5b48[202]][_0x5b48[2797]]= !0;mxGraphHandler[_0x5b48[202]][_0x5b48[2798]]= !0;mxGraphHandler[_0x5b48[202]][_0x5b48[990]]= !1;mxGraphHandler[_0x5b48[202]][_0x5b48[2799]]= null;mxGraphHandler[_0x5b48[202]][_0x5b48[2800]]= null;mxGraphHandler[_0x5b48[202]][_0x5b48[2801]]= null;mxGraphHandler[_0x5b48[202]][_0x5b48[2802]]= !0;mxGraphHandler[_0x5b48[202]][_0x5b48[2803]]= !0;mxGraphHandler[_0x5b48[202]][_0x5b48[846]]= !0;mxGraphHandler[_0x5b48[202]][_0x5b48[2804]]= !1;mxGraphHandler[_0x5b48[202]][_0x5b48[2805]]= !0;mxGraphHandler[_0x5b48[202]][_0x5b48[923]]= 6;mxGraphHandler[_0x5b48[202]][_0x5b48[2806]]= _0x5b48[586];mxGraphHandler[_0x5b48[202]][_0x5b48[2807]]= !1;mxGraphHandler[_0x5b48[202]][_0x5b48[253]]= null;mxGraphHandler[_0x5b48[202]][_0x5b48[2808]]= !1;mxGraphHandler[_0x5b48[202]][_0x5b48[2809]]= !0;mxGraphHandler[_0x5b48[202]][_0x5b48[994]]= function(){return this[_0x5b48[984]]};mxGraphHandler[_0x5b48[202]][_0x5b48[995]]= function(_0x43b0x2){this[_0x5b48[984]]= _0x43b0x2};mxGraphHandler[_0x5b48[202]][_0x5b48[2810]]= function(){return this[_0x5b48[2797]]};mxGraphHandler[_0x5b48[202]][_0x5b48[2811]]= function(_0x43b0x2){this[_0x5b48[2797]]= _0x43b0x2};mxGraphHandler[_0x5b48[202]][_0x5b48[2812]]= function(){return this[_0x5b48[2798]]};mxGraphHandler[_0x5b48[202]][_0x5b48[2813]]= function(_0x43b0x2){this[_0x5b48[2798]]= _0x43b0x2};mxGraphHandler[_0x5b48[202]][_0x5b48[2814]]= function(){return this[_0x5b48[2803]]};mxGraphHandler[_0x5b48[202]][_0x5b48[2815]]= function(_0x43b0x2){this[_0x5b48[2803]]= _0x43b0x2};mxGraphHandler[_0x5b48[202]][_0x5b48[2816]]= function(){return this[_0x5b48[846]]};mxGraphHandler[_0x5b48[202]][_0x5b48[2817]]= function(_0x43b0x2){this[_0x5b48[846]]= _0x43b0x2};mxGraphHandler[_0x5b48[202]][_0x5b48[2818]]= function(_0x43b0x2){return _0x43b0x2[_0x5b48[736]]()};mxGraphHandler[_0x5b48[202]][_0x5b48[2819]]= function(_0x43b0x2){return this[_0x5b48[1179]][_0x5b48[2692]](_0x43b0x2)};mxGraphHandler[_0x5b48[202]][_0x5b48[787]]= function(_0x43b0x2,_0x43b0x3){if(!_0x43b0x3[_0x5b48[721]]()&& this[_0x5b48[994]]() && this[_0x5b48[1179]][_0x5b48[994]]() && !this[_0x5b48[1179]][_0x5b48[2579]](_0x43b0x3[_0x5b48[727]]()) && null!= _0x43b0x3[_0x5b48[248]]()){var _0x43b0x4=this[_0x5b48[2818]](_0x43b0x3);this[_0x5b48[246]]= null;this[_0x5b48[2820]]= this[_0x5b48[2819]](_0x43b0x4);this[_0x5b48[2814]]()&& !this[_0x5b48[2820]]&& this[_0x5b48[1179]][_0x5b48[2459]](_0x43b0x4,_0x43b0x3[_0x5b48[727]]());if(this[_0x5b48[2812]]()){var _0x43b0x5=this[_0x5b48[1179]][_0x5b48[251]],_0x43b0x9=_0x43b0x5[_0x5b48[1721]](_0x43b0x4);this[_0x5b48[1179]][_0x5b48[1712]](_0x43b0x4)&& (!_0x43b0x5[_0x5b48[250]](_0x43b0x4)|| 1< this[_0x5b48[1179]][_0x5b48[2694]]() || null!= _0x43b0x9[_0x5b48[1525]]&& 0< _0x43b0x9[_0x5b48[1525]][_0x5b48[67]] || null== _0x43b0x5[_0x5b48[1709]](_0x43b0x4,!0) || null== _0x43b0x5[_0x5b48[1709]](_0x43b0x4,!1) || this[_0x5b48[1179]][_0x5b48[2406]] || this[_0x5b48[1179]][_0x5b48[2574]](_0x43b0x3[_0x5b48[727]]())&& this[_0x5b48[1179]][_0x5b48[2617]]())&& this[_0x5b48[861]](_0x43b0x4,_0x43b0x3[_0x5b48[730]](),_0x43b0x3[_0x5b48[732]]());this[_0x5b48[2821]]= !0;!mxClient[_0x5b48[75]]&& !mxClient[_0x5b48[76]] || _0x5b48[2822]!= _0x43b0x3[_0x5b48[728]]()[_0x5b48[301]]?_0x43b0x3[_0x5b48[722]]():mxClient[_0x5b48[75]]&& _0x5b48[2822]== _0x43b0x3[_0x5b48[728]]()[_0x5b48[301]]&& (this[_0x5b48[2821]]= !1,this[_0x5b48[2823]]= null)}}};mxGraphHandler[_0x5b48[202]][_0x5b48[1010]]= function(){var _0x43b0x2=this[_0x5b48[1179]][_0x5b48[902]](),_0x43b0x3=this[_0x5b48[1179]][_0x5b48[502]](),_0x43b0x4=mxUtils[_0x5b48[885]](this,function(_0x43b0x2){return null!= this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[248]](_0x43b0x2)&& _0x43b0x3[_0x5b48[1193]](_0x43b0x2)&& null!= _0x43b0x3[_0x5b48[1721]](_0x43b0x2)&& !_0x43b0x3[_0x5b48[1721]](_0x43b0x2)[_0x5b48[1500]]});return this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[2313]](_0x43b0x3[_0x5b48[1921]](_0x43b0x4,_0x43b0x2))};mxGraphHandler[_0x5b48[202]][_0x5b48[2690]]= function(_0x43b0x2){return !this[_0x5b48[2820]]&& this[_0x5b48[1179]][_0x5b48[1712]](_0x43b0x2)?[_0x43b0x2]:this[_0x5b48[1179]][_0x5b48[2629]](this[_0x5b48[1179]][_0x5b48[897]]())};mxGraphHandler[_0x5b48[202]][_0x5b48[2824]]= function(_0x43b0x2){_0x43b0x2= this[_0x5b48[1613]](_0x43b0x2);null!= _0x43b0x2&& (_0x43b0x2[_0x5b48[244]](-1,-1),_0x43b0x2[_0x5b48[117]]< this[_0x5b48[923]]&& (_0x43b0x2[_0x5b48[235]]-= (this[_0x5b48[923]]- _0x43b0x2[_0x5b48[117]])/ 2,_0x43b0x2[_0x5b48[117]]= this[_0x5b48[923]]),_0x43b0x2[_0x5b48[119]]< this[_0x5b48[923]]&& (_0x43b0x2[_0x5b48[236]]-= (this[_0x5b48[923]]- _0x43b0x2[_0x5b48[119]])/ 2,_0x43b0x2[_0x5b48[119]]= this[_0x5b48[923]]));return _0x43b0x2};mxGraphHandler[_0x5b48[202]][_0x5b48[1613]]= function(_0x43b0x2){var _0x43b0x3=null;if(null!= _0x43b0x2&& 0< _0x43b0x2[_0x5b48[67]]){for(var _0x43b0x4=this[_0x5b48[1179]][_0x5b48[502]](),_0x43b0x5=0;_0x43b0x5< _0x43b0x2[_0x5b48[67]];_0x43b0x5++){if(_0x43b0x4[_0x5b48[1193]](_0x43b0x2[_0x43b0x5])|| _0x43b0x4[_0x5b48[250]](_0x43b0x2[_0x43b0x5])){var _0x43b0x9=this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[248]](_0x43b0x2[_0x43b0x5]);if(null!= _0x43b0x9){var _0x43b0xa=_0x43b0x9;_0x43b0x4[_0x5b48[1193]](_0x43b0x2[_0x43b0x5])&& (null!= _0x43b0x9[_0x5b48[253]]&& null!= _0x43b0x9[_0x5b48[253]][_0x5b48[1563]])&& (_0x43b0xa= _0x43b0x9[_0x5b48[253]][_0x5b48[1563]]);null== _0x43b0x3?_0x43b0x3= new mxRectangle(_0x43b0xa[_0x5b48[235]],_0x43b0xa[_0x5b48[236]],_0x43b0xa[_0x5b48[117]],_0x43b0xa[_0x5b48[119]]):_0x43b0x3[_0x5b48[99]](_0x43b0xa)}}}};return _0x43b0x3};mxGraphHandler[_0x5b48[202]][_0x5b48[2825]]= function(_0x43b0x2){_0x43b0x2= new mxRectangleShape(_0x43b0x2,null,this[_0x5b48[2806]]);_0x43b0x2[_0x5b48[1522]]= !0;this[_0x5b48[2807]]?(_0x43b0x2[_0x5b48[507]]= mxConstants[_0x5b48[1656]],_0x43b0x2[_0x5b48[176]](this[_0x5b48[1179]][_0x5b48[526]])):(_0x43b0x2[_0x5b48[507]]= this[_0x5b48[1179]][_0x5b48[507]]!= mxConstants[_0x5b48[508]]?mxConstants[_0x5b48[1523]]:mxConstants[_0x5b48[508]],_0x43b0x2[_0x5b48[176]](this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[1524]]()),_0x43b0x2[_0x5b48[1229]]= !1);return _0x43b0x2};mxGraphHandler[_0x5b48[202]][_0x5b48[861]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){this[_0x5b48[246]]= _0x43b0x2;this[_0x5b48[2823]]= mxUtils[_0x5b48[2196]](this[_0x5b48[1179]][_0x5b48[526]],_0x43b0x3,_0x43b0x4);this[_0x5b48[895]]= this[_0x5b48[2690]](this[_0x5b48[246]]);this[_0x5b48[1562]]= this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[1799]](this[_0x5b48[895]]);this[_0x5b48[2826]]= this[_0x5b48[2824]](this[_0x5b48[895]]);this[_0x5b48[990]]&& (this[_0x5b48[2799]]= new mxGuide(this[_0x5b48[1179]],this[_0x5b48[1010]]()))};mxGraphHandler[_0x5b48[202]][_0x5b48[2827]]= function(_0x43b0x2){return null!= this[_0x5b48[2799]]?this[_0x5b48[2799]][_0x5b48[1019]](_0x43b0x2[_0x5b48[727]]()):!0};mxGraphHandler[_0x5b48[202]][_0x5b48[1021]]= function(_0x43b0x2){var _0x43b0x3=this[_0x5b48[2808]]?this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[255]]:1;_0x43b0x2[_0x5b48[235]]= this[_0x5b48[1179]][_0x5b48[1021]](_0x43b0x2[_0x5b48[235]]/ _0x43b0x3)* _0x43b0x3;_0x43b0x2[_0x5b48[236]]= this[_0x5b48[1179]][_0x5b48[1021]](_0x43b0x2[_0x5b48[236]]/ _0x43b0x3)* _0x43b0x3;return _0x43b0x2};mxGraphHandler[_0x5b48[202]][_0x5b48[788]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=this[_0x5b48[1179]];if(!_0x43b0x3[_0x5b48[721]]()&& _0x43b0x4[_0x5b48[1009]] && null!= this[_0x5b48[246]] && null!= this[_0x5b48[2823]] && null!= this[_0x5b48[1562]]){var _0x43b0x5=mxUtils[_0x5b48[2196]](_0x43b0x4[_0x5b48[526]],_0x43b0x3[_0x5b48[730]](),_0x43b0x3[_0x5b48[732]]()),_0x43b0x9=_0x43b0x5[_0x5b48[235]]- this[_0x5b48[2823]][_0x5b48[235]],_0x43b0xa=_0x43b0x5[_0x5b48[236]]- this[_0x5b48[2823]][_0x5b48[236]],_0x43b0x5=_0x43b0x4[_0x5b48[2353]];if(null!= this[_0x5b48[253]]|| Math[_0x5b48[425]](_0x43b0x9)> _0x43b0x5|| Math[_0x5b48[425]](_0x43b0xa)> _0x43b0x5){null== this[_0x5b48[1016]]&& (this[_0x5b48[1016]]= new mxCellHighlight(this[_0x5b48[1179]],mxConstants.DROP_TARGET_COLOR,3));null== this[_0x5b48[253]]&& (this[_0x5b48[253]]= this[_0x5b48[2825]](this[_0x5b48[1562]]));var _0x43b0x12=_0x43b0x4[_0x5b48[1018]](_0x43b0x3[_0x5b48[727]]()),_0x43b0x5=!0;if(null!= this[_0x5b48[2799]]&& this[_0x5b48[2827]](_0x43b0x3)){_0x43b0xa= this[_0x5b48[2799]][_0x5b48[582]](this[_0x5b48[1562]], new mxPoint(_0x43b0x9,_0x43b0xa),_0x43b0x12),_0x43b0x5= !1,_0x43b0x9= _0x43b0xa[_0x5b48[235]],_0x43b0xa= _0x43b0xa[_0x5b48[236]]}else {if(_0x43b0x12){var _0x43b0x13=_0x43b0x4[_0x5b48[249]]()[_0x5b48[513]],_0x43b0x14=_0x43b0x4[_0x5b48[249]]()[_0x5b48[255]],_0x43b0x12=this[_0x5b48[1562]][_0x5b48[235]]- (_0x43b0x4[_0x5b48[1021]](this[_0x5b48[1562]][_0x5b48[235]]/ _0x43b0x14- _0x43b0x13[_0x5b48[235]])+ _0x43b0x13[_0x5b48[235]])* _0x43b0x14,_0x43b0x13=this[_0x5b48[1562]][_0x5b48[236]]- (_0x43b0x4[_0x5b48[1021]](this[_0x5b48[1562]][_0x5b48[236]]/ _0x43b0x14- _0x43b0x13[_0x5b48[236]])+ _0x43b0x13[_0x5b48[236]])* _0x43b0x14,_0x43b0xa=this[_0x5b48[1021]]( new mxPoint(_0x43b0x9,_0x43b0xa)),_0x43b0x9=_0x43b0xa[_0x5b48[235]]- _0x43b0x12,_0x43b0xa=_0x43b0xa[_0x5b48[236]]- _0x43b0x13}};null!= this[_0x5b48[2799]]&& _0x43b0x5&& this[_0x5b48[2799]][_0x5b48[801]]();_0x43b0x4[_0x5b48[2578]](_0x43b0x3[_0x5b48[727]]())&& (Math[_0x5b48[425]](_0x43b0x9)> Math[_0x5b48[425]](_0x43b0xa)?_0x43b0xa= 0:_0x43b0x9= 0);this[_0x5b48[2800]]= _0x43b0x9;this[_0x5b48[2801]]= _0x43b0xa;this[_0x5b48[2794]]();_0x43b0x5= null;_0x43b0xa= _0x43b0x3[_0x5b48[736]]();_0x43b0x4[_0x5b48[1015]]()&& this[_0x5b48[2796]]&& (_0x43b0x5= _0x43b0x4[_0x5b48[564]](this[_0x5b48[895]],_0x43b0x3[_0x5b48[727]](),_0x43b0xa));_0x43b0x12= _0x43b0x5;for(_0x43b0x13= _0x43b0x4[_0x5b48[502]]();null!= _0x43b0x12&& _0x43b0x12!= this[_0x5b48[895]][0];){_0x43b0x12= _0x43b0x13[_0x5b48[1197]](_0x43b0x12)};var _0x43b0x14=_0x43b0x4[_0x5b48[2574]](_0x43b0x3[_0x5b48[727]]())&& _0x43b0x4[_0x5b48[2617]]()&& this[_0x5b48[2810]](),_0x43b0x9=_0x43b0x4[_0x5b48[249]]()[_0x5b48[248]](_0x43b0x5),_0x43b0x15=!1;null!= _0x43b0x9&& null== _0x43b0x12&& (_0x43b0x13[_0x5b48[1197]](this[_0x5b48[246]])!= _0x43b0x5|| _0x43b0x14)?(this[_0x5b48[772]]!= _0x43b0x5&& (this[_0x5b48[772]]= _0x43b0x5,this[_0x5b48[2828]](mxConstants.DROP_TARGET_COLOR)),_0x43b0x15= !0):(this[_0x5b48[772]]= null,this[_0x5b48[2804]]&& (null!= _0x43b0xa&& 1== this[_0x5b48[895]][_0x5b48[67]]&& _0x43b0x4[_0x5b48[502]]()[_0x5b48[1193]](_0x43b0xa)&& _0x43b0x4[_0x5b48[2565]](_0x43b0xa))&& (_0x43b0x9= _0x43b0x4[_0x5b48[249]]()[_0x5b48[248]](_0x43b0xa),null!= _0x43b0x9&& (_0x43b0x4= null== _0x43b0x4[_0x5b48[2500]](null,this[_0x5b48[246]],_0x43b0xa)?mxConstants[_0x5b48[2829]]:mxConstants[_0x5b48[2830]],this[_0x5b48[2828]](_0x43b0x4),_0x43b0x15= !0)));null!= _0x43b0x9&& _0x43b0x15?this[_0x5b48[1016]][_0x5b48[1016]](_0x43b0x9):this[_0x5b48[1016]][_0x5b48[801]]()};_0x43b0x3[_0x5b48[722]]();mxEvent[_0x5b48[722]](_0x43b0x3[_0x5b48[727]]())}else {if((this[_0x5b48[2812]]()|| this[_0x5b48[2810]]())&& this[_0x5b48[2802]]&& !_0x43b0x3[_0x5b48[721]]()&& null!= _0x43b0x3[_0x5b48[248]]()&& !_0x43b0x4[_0x5b48[1009]]){_0x43b0x9= _0x43b0x4[_0x5b48[2599]](_0x43b0x3[_0x5b48[736]]()),null== _0x43b0x9&& (_0x43b0x4[_0x5b48[994]]()&& _0x43b0x4[_0x5b48[1712]](_0x43b0x3[_0x5b48[736]]()))&& (_0x43b0x9= _0x43b0x4[_0x5b48[502]]()[_0x5b48[250]](_0x43b0x3[_0x5b48[736]]())?mxConstants[_0x5b48[2831]]:mxConstants[_0x5b48[2832]]),_0x43b0x3[_0x5b48[248]]()[_0x5b48[1609]](_0x43b0x9),_0x43b0x3[_0x5b48[722]]()}}};mxGraphHandler[_0x5b48[202]][_0x5b48[2794]]= function(){null!= this[_0x5b48[253]]&& (this[_0x5b48[253]][_0x5b48[1562]]= new mxRectangle(Math[_0x5b48[488]](this[_0x5b48[2826]][_0x5b48[235]]+ this[_0x5b48[2800]]- this[_0x5b48[1179]][_0x5b48[1136]]),Math[_0x5b48[488]](this[_0x5b48[2826]][_0x5b48[236]]+ this[_0x5b48[2801]]- this[_0x5b48[1179]][_0x5b48[1137]]),this[_0x5b48[2826]][_0x5b48[117]],this[_0x5b48[2826]][_0x5b48[119]]),this[_0x5b48[253]][_0x5b48[258]]())};mxGraphHandler[_0x5b48[202]][_0x5b48[2828]]= function(_0x43b0x2){null!= this[_0x5b48[1016]]&& this[_0x5b48[1016]][_0x5b48[2828]](_0x43b0x2)};mxGraphHandler[_0x5b48[202]][_0x5b48[789]]= function(_0x43b0x2,_0x43b0x3){if(!_0x43b0x3[_0x5b48[721]]()){var _0x43b0x4=this[_0x5b48[1179]];if(null!= this[_0x5b48[246]]&& null!= this[_0x5b48[2823]]&& null!= this[_0x5b48[253]]&& null!= this[_0x5b48[2800]]&& null!= this[_0x5b48[2801]]){var _0x43b0x5=_0x43b0x4[_0x5b48[249]]()[_0x5b48[255]],_0x43b0x9=_0x43b0x4[_0x5b48[2574]](_0x43b0x3[_0x5b48[727]]())&& _0x43b0x4[_0x5b48[2617]]()&& this[_0x5b48[2810]](),_0x43b0xa=this[_0x5b48[2800]]/ _0x43b0x5,_0x43b0x5=this[_0x5b48[2801]]/ _0x43b0x5,_0x43b0x12=_0x43b0x3[_0x5b48[736]]();this[_0x5b48[2804]]&& null== this[_0x5b48[772]]&& null!= _0x43b0x12&& _0x43b0x4[_0x5b48[502]]()[_0x5b48[1193]](_0x43b0x12)&& _0x43b0x4[_0x5b48[2565]](_0x43b0x12)&& _0x43b0x4[_0x5b48[2581]](null,this[_0x5b48[246]],_0x43b0x12)?_0x43b0x4[_0x5b48[2433]][_0x5b48[807]](this[_0x5b48[246]],_0x43b0x12,_0x43b0x3[_0x5b48[727]]()):(_0x43b0x12= this[_0x5b48[772]],_0x43b0x4[_0x5b48[2655]]()&& _0x43b0x4[_0x5b48[2686]](_0x43b0x12,this[_0x5b48[895]],_0x43b0x3[_0x5b48[727]]())?_0x43b0x4[_0x5b48[853]](_0x43b0x12,this[_0x5b48[895]],null,_0x43b0xa,_0x43b0x5):this[_0x5b48[834]](this[_0x5b48[895]],_0x43b0xa,_0x43b0x5,_0x43b0x9,this[_0x5b48[772]],_0x43b0x3[_0x5b48[727]]()))}else {this[_0x5b48[2814]]()&& (this[_0x5b48[2820]]&& null!= this[_0x5b48[246]])&& this[_0x5b48[2833]](_0x43b0x3)}};this[_0x5b48[2821]]&& _0x43b0x3[_0x5b48[722]]();this[_0x5b48[862]]()};mxGraphHandler[_0x5b48[202]][_0x5b48[2833]]= function(_0x43b0x2){this[_0x5b48[1179]][_0x5b48[2459]](this[_0x5b48[246]],_0x43b0x2[_0x5b48[727]]())};mxGraphHandler[_0x5b48[202]][_0x5b48[862]]= function(){this[_0x5b48[2834]]();this[_0x5b48[2820]]= this[_0x5b48[2821]]= !1;this[_0x5b48[772]]= this[_0x5b48[246]]= this[_0x5b48[2823]]= this[_0x5b48[2835]]= this[_0x5b48[2801]]= this[_0x5b48[2800]]= null};mxGraphHandler[_0x5b48[202]][_0x5b48[2836]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){if(this[_0x5b48[1179]][_0x5b48[502]]()[_0x5b48[1193]](_0x43b0x2)){_0x43b0x2= this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[248]](_0x43b0x2);_0x43b0x4= mxUtils[_0x5b48[2196]](this[_0x5b48[1179]][_0x5b48[526]],mxEvent[_0x5b48[731]](_0x43b0x4),mxEvent[_0x5b48[733]](_0x43b0x4));var _0x43b0x5=mxUtils[_0x5b48[431]](mxUtils[_0x5b48[433]](_0x43b0x2[_0x5b48[124]],mxConstants.STYLE_ROTATION)|| 0);if(0!= _0x43b0x5){_0x43b0x3= Math[_0x5b48[426]](-_0x43b0x5);var _0x43b0x5=Math[_0x5b48[427]](-_0x43b0x5),_0x43b0x9= new mxPoint(_0x43b0x2[_0x5b48[241]](),_0x43b0x2[_0x5b48[242]]());_0x43b0x4= mxUtils[_0x5b48[432]](_0x43b0x4,_0x43b0x3,_0x43b0x5,_0x43b0x9)};return null!= _0x43b0x2&& !mxUtils[_0x5b48[442]](_0x43b0x2,_0x43b0x4[_0x5b48[235]],_0x43b0x4[_0x5b48[236]])};return !1};mxGraphHandler[_0x5b48[202]][_0x5b48[834]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa){_0x43b0x5&& (_0x43b0x2= this[_0x5b48[1179]][_0x5b48[2615]](_0x43b0x2));null== _0x43b0x9&& (this[_0x5b48[2816]]()&& this[_0x5b48[2836]](this[_0x5b48[1179]][_0x5b48[502]]()[_0x5b48[1197]](this[_0x5b48[246]]),_0x43b0x2,_0x43b0xa))&& (_0x43b0x9= this[_0x5b48[1179]][_0x5b48[902]]());_0x43b0x2= this[_0x5b48[1179]][_0x5b48[834]](_0x43b0x2,_0x43b0x3- this[_0x5b48[1179]][_0x5b48[1136]]/ this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[255]],_0x43b0x4- this[_0x5b48[1179]][_0x5b48[1137]]/ this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[255]],_0x43b0x5,_0x43b0x9,_0x43b0xa);this[_0x5b48[2814]]()&& this[_0x5b48[2805]]&& this[_0x5b48[1179]][_0x5b48[2564]](_0x43b0x2[0]);_0x43b0x5&& this[_0x5b48[1179]][_0x5b48[904]](_0x43b0x2)};mxGraphHandler[_0x5b48[202]][_0x5b48[2834]]= function(){null!= this[_0x5b48[253]]&& (this[_0x5b48[253]][_0x5b48[515]](),this[_0x5b48[253]]= null);null!= this[_0x5b48[2799]]&& (this[_0x5b48[2799]][_0x5b48[515]](),this[_0x5b48[2799]]= null);null!= this[_0x5b48[1016]]&& (this[_0x5b48[1016]][_0x5b48[515]](),this[_0x5b48[1016]]= null)};mxGraphHandler[_0x5b48[202]][_0x5b48[515]]= function(){this[_0x5b48[1179]][_0x5b48[1148]](this);this[_0x5b48[1179]][_0x5b48[745]](this[_0x5b48[2730]]);this[_0x5b48[2834]]()};function mxPanningHandler(_0x43b0x2,_0x43b0x3){null!= _0x43b0x2&& (this[_0x5b48[1179]]= _0x43b0x2,this[_0x5b48[1033]]= _0x43b0x3,this[_0x5b48[1179]][_0x5b48[1133]](this),this[_0x5b48[176]]())}mxPanningHandler[_0x5b48[202]]= new mxPopupMenu;mxPanningHandler[_0x5b48[202]][_0x5b48[196]]= mxPanningHandler;mxPanningHandler[_0x5b48[202]][_0x5b48[1179]]= null;mxPanningHandler[_0x5b48[202]][_0x5b48[2837]]= null;mxPanningHandler[_0x5b48[202]][_0x5b48[2838]]= null;mxPanningHandler[_0x5b48[202]][_0x5b48[2839]]= !0;mxPanningHandler[_0x5b48[202]][_0x5b48[2840]]= !1;mxPanningHandler[_0x5b48[202]][_0x5b48[2841]]= !0;mxPanningHandler[_0x5b48[202]][_0x5b48[2842]]= !0;mxPanningHandler[_0x5b48[202]][_0x5b48[2843]]= !1;mxPanningHandler[_0x5b48[202]][_0x5b48[2844]]= !0;mxPanningHandler[_0x5b48[202]][_0x5b48[2845]]= !1;mxPanningHandler[_0x5b48[202]][_0x5b48[2431]]= !0;mxPanningHandler[_0x5b48[202]][_0x5b48[2846]]= function(){return this[_0x5b48[2431]]};mxPanningHandler[_0x5b48[202]][_0x5b48[2847]]= function(_0x43b0x2){this[_0x5b48[2431]]= _0x43b0x2};mxPanningHandler[_0x5b48[202]][_0x5b48[176]]= function(){mxPopupMenu[_0x5b48[202]][_0x5b48[176]][_0x5b48[183]](this);mxEvent[_0x5b48[169]](this[_0x5b48[485]],mxClient[_0x5b48[754]]?_0x5b48[756]:_0x5b48[752],mxUtils[_0x5b48[885]](this,function(_0x43b0x2){this[_0x5b48[1179]][_0x5b48[2276]][_0x5b48[801]]()}))};mxPanningHandler[_0x5b48[202]][_0x5b48[2848]]= function(_0x43b0x2){var _0x43b0x3=_0x43b0x2[_0x5b48[727]]();return this[_0x5b48[2840]]&& (this[_0x5b48[2843]]|| null== _0x43b0x2[_0x5b48[248]]())&& mxEvent[_0x5b48[1158]](_0x43b0x3)|| mxEvent[_0x5b48[775]](_0x43b0x3)&& mxEvent[_0x5b48[774]](_0x43b0x3)|| this[_0x5b48[2839]]&& mxEvent[_0x5b48[737]](_0x43b0x3)};mxPanningHandler[_0x5b48[202]][_0x5b48[787]]= function(_0x43b0x2,_0x43b0x3){if(!_0x43b0x3[_0x5b48[721]]()&& this[_0x5b48[994]]()){this[_0x5b48[1032]]();this[_0x5b48[2741]]= -this[_0x5b48[1179]][_0x5b48[526]][_0x5b48[360]];this[_0x5b48[2742]]= -this[_0x5b48[1179]][_0x5b48[526]][_0x5b48[190]];var _0x43b0x4=mxUtils[_0x5b48[2196]](this[_0x5b48[1179]][_0x5b48[526]],_0x43b0x3[_0x5b48[730]](),_0x43b0x3[_0x5b48[732]]());this[_0x5b48[2837]]= _0x43b0x4[_0x5b48[235]];this[_0x5b48[2838]]= _0x43b0x4[_0x5b48[236]];this[_0x5b48[2849]]= this[_0x5b48[737]](_0x43b0x3);this[_0x5b48[2850]]= this[_0x5b48[2846]]()&& this[_0x5b48[2848]](_0x43b0x3);this[_0x5b48[2739]]= _0x43b0x3[_0x5b48[730]]();this[_0x5b48[2740]]= _0x43b0x3[_0x5b48[732]]();this[_0x5b48[2850]]&& this[_0x5b48[2851]](_0x43b0x3)}};mxPanningHandler[_0x5b48[202]][_0x5b48[2851]]= function(_0x43b0x2){_0x43b0x2[_0x5b48[722]]()};mxPanningHandler[_0x5b48[202]][_0x5b48[788]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=_0x43b0x3[_0x5b48[730]]()- this[_0x5b48[2739]],_0x43b0x5=_0x43b0x3[_0x5b48[732]]()- this[_0x5b48[2740]];if(this[_0x5b48[1124]]){this[_0x5b48[2844]]&& (this[_0x5b48[2845]]&& (_0x43b0x4= this[_0x5b48[1179]][_0x5b48[1021]](_0x43b0x4),_0x43b0x5= this[_0x5b48[1179]][_0x5b48[1021]](_0x43b0x5)),this[_0x5b48[1179]][_0x5b48[1135]](_0x43b0x4+ this[_0x5b48[2741]],_0x43b0x5+ this[_0x5b48[2742]])),this[_0x5b48[746]]( new mxEventObject(mxEvent.PAN,_0x5b48[763],_0x43b0x3)),_0x43b0x3[_0x5b48[722]]()}else {if(this[_0x5b48[2850]]){var _0x43b0x9=this[_0x5b48[1124]];this[_0x5b48[1124]]= Math[_0x5b48[425]](_0x43b0x4)> this[_0x5b48[1179]][_0x5b48[2353]]|| Math[_0x5b48[425]](_0x43b0x5)> this[_0x5b48[1179]][_0x5b48[2353]];!_0x43b0x9&& this[_0x5b48[1124]] && this[_0x5b48[746]]( new mxEventObject(mxEvent.PAN_START,_0x5b48[763],_0x43b0x3))}}};mxPanningHandler[_0x5b48[202]][_0x5b48[789]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=Math[_0x5b48[425]](_0x43b0x3[_0x5b48[730]]()- this[_0x5b48[2739]]),_0x43b0x5=Math[_0x5b48[425]](_0x43b0x3[_0x5b48[732]]()- this[_0x5b48[2740]]);if(this[_0x5b48[1124]]){if(!this[_0x5b48[1179]][_0x5b48[2365]]|| !mxUtils[_0x5b48[1134]](this[_0x5b48[1179]][_0x5b48[526]])){_0x43b0x4= _0x43b0x3[_0x5b48[730]]()- this[_0x5b48[2739]];_0x43b0x5= _0x43b0x3[_0x5b48[732]]()- this[_0x5b48[2740]];this[_0x5b48[2845]]&& (_0x43b0x4= this[_0x5b48[1179]][_0x5b48[1021]](_0x43b0x4),_0x43b0x5= this[_0x5b48[1179]][_0x5b48[1021]](_0x43b0x5));var _0x43b0x9=this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[255]],_0x43b0xa=this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[513]];this[_0x5b48[1179]][_0x5b48[1135]](0,0);this[_0x5b48[1135]](_0x43b0xa[_0x5b48[235]]+ _0x43b0x4/ _0x43b0x9,_0x43b0xa[_0x5b48[236]]+ _0x43b0x5/ _0x43b0x9)};this[_0x5b48[1124]]= !1;this[_0x5b48[746]]( new mxEventObject(mxEvent.PAN_END,_0x5b48[763],_0x43b0x3));_0x43b0x3[_0x5b48[722]]()}else {this[_0x5b48[2849]]&& (_0x43b0x4< this[_0x5b48[1179]][_0x5b48[2353]]&& _0x43b0x5< this[_0x5b48[1179]][_0x5b48[2353]])&& (_0x43b0x4= this[_0x5b48[2852]](_0x43b0x3),this[_0x5b48[1179]][_0x5b48[994]]()&& this[_0x5b48[2841]]&& null!= _0x43b0x4&& !this[_0x5b48[1179]][_0x5b48[2692]](_0x43b0x4)?this[_0x5b48[1179]][_0x5b48[2450]](_0x43b0x4):this[_0x5b48[2842]]&& null== _0x43b0x4&& this[_0x5b48[1179]][_0x5b48[2440]](),this[_0x5b48[1179]][_0x5b48[2276]][_0x5b48[801]](),_0x43b0x5= mxUtils[_0x5b48[444]](),_0x43b0x5= new mxPoint(_0x43b0x3[_0x5b48[730]]()+ _0x43b0x5[_0x5b48[235]],_0x43b0x3[_0x5b48[732]]()+ _0x43b0x5[_0x5b48[236]]),this[_0x5b48[152]](_0x43b0x5[_0x5b48[235]]+ 1,_0x43b0x5[_0x5b48[236]]+ 1,_0x43b0x4,_0x43b0x3[_0x5b48[727]]()),_0x43b0x3[_0x5b48[722]]())};this[_0x5b48[2849]]= this[_0x5b48[2850]]= !1};mxPanningHandler[_0x5b48[202]][_0x5b48[2852]]= function(_0x43b0x2){return _0x43b0x2[_0x5b48[736]]()};mxPanningHandler[_0x5b48[202]][_0x5b48[1135]]= function(_0x43b0x2,_0x43b0x3){this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[1147]](_0x43b0x2,_0x43b0x3)};mxPanningHandler[_0x5b48[202]][_0x5b48[515]]= function(){this[_0x5b48[1179]][_0x5b48[1148]](this);mxPopupMenu[_0x5b48[202]][_0x5b48[515]][_0x5b48[183]](this)};function mxCellMarker(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){mxEventSource[_0x5b48[239]](this);null!= _0x43b0x2&& (this[_0x5b48[1179]]= _0x43b0x2,this[_0x5b48[2853]]= null!= _0x43b0x3?_0x43b0x3:mxConstants[_0x5b48[2854]],this[_0x5b48[2855]]= null!= _0x43b0x3?_0x43b0x4:mxConstants[_0x5b48[2856]],this[_0x5b48[2857]]= null!= _0x43b0x5?_0x43b0x5:mxConstants[_0x5b48[2858]],this[_0x5b48[1016]]= new mxCellHighlight(_0x43b0x2))}mxUtils[_0x5b48[1284]](mxCellMarker,mxEventSource);mxCellMarker[_0x5b48[202]][_0x5b48[1179]]= null;mxCellMarker[_0x5b48[202]][_0x5b48[984]]= !0;mxCellMarker[_0x5b48[202]][_0x5b48[2857]]= mxConstants[_0x5b48[2858]];mxCellMarker[_0x5b48[202]][_0x5b48[2859]]= !1;mxCellMarker[_0x5b48[202]][_0x5b48[2853]]= null;mxCellMarker[_0x5b48[202]][_0x5b48[2855]]= null;mxCellMarker[_0x5b48[202]][_0x5b48[2860]]= null;mxCellMarker[_0x5b48[202]][_0x5b48[2861]]= null;mxCellMarker[_0x5b48[202]][_0x5b48[2862]]= null;mxCellMarker[_0x5b48[202]][_0x5b48[995]]= function(_0x43b0x2){this[_0x5b48[984]]= _0x43b0x2};mxCellMarker[_0x5b48[202]][_0x5b48[994]]= function(){return this[_0x5b48[984]]};mxCellMarker[_0x5b48[202]][_0x5b48[2863]]= function(_0x43b0x2){this[_0x5b48[2857]]= _0x43b0x2};mxCellMarker[_0x5b48[202]][_0x5b48[2864]]= function(){return this[_0x5b48[2857]]};mxCellMarker[_0x5b48[202]][_0x5b48[2865]]= function(_0x43b0x2){this[_0x5b48[2859]]= _0x43b0x2};mxCellMarker[_0x5b48[202]][_0x5b48[2866]]= function(){return this[_0x5b48[2859]]};mxCellMarker[_0x5b48[202]][_0x5b48[2867]]= function(){return null!= this[_0x5b48[2861]]};mxCellMarker[_0x5b48[202]][_0x5b48[2868]]= function(){return this[_0x5b48[2861]]};mxCellMarker[_0x5b48[202]][_0x5b48[2869]]= function(){return this[_0x5b48[2862]]};mxCellMarker[_0x5b48[202]][_0x5b48[862]]= function(){this[_0x5b48[2861]]= null;null!= this[_0x5b48[2862]]&& (this[_0x5b48[2862]]= null,this[_0x5b48[2870]]())};mxCellMarker[_0x5b48[202]][_0x5b48[2871]]= function(_0x43b0x2){var _0x43b0x3=null;if(this[_0x5b48[994]]()){var _0x43b0x3=this[_0x5b48[248]](_0x43b0x2),_0x43b0x4=null!= _0x43b0x3?this[_0x5b48[2872]](_0x43b0x3):!1;_0x43b0x2= this[_0x5b48[2873]](_0x43b0x2[_0x5b48[727]](),_0x43b0x3,_0x43b0x4);this[_0x5b48[2861]]= _0x43b0x4?_0x43b0x3:null;if(_0x43b0x3!= this[_0x5b48[2862]]|| _0x43b0x2!= this[_0x5b48[2860]]){this[_0x5b48[2860]]= _0x43b0x2,null!= _0x43b0x3&& null!= this[_0x5b48[2860]]?(this[_0x5b48[2862]]= _0x43b0x3,this[_0x5b48[811]]()):null!= this[_0x5b48[2862]]&& (this[_0x5b48[2862]]= null,this[_0x5b48[2870]]())}};return _0x43b0x3};mxCellMarker[_0x5b48[202]][_0x5b48[2874]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[248]](_0x43b0x2);null!= _0x43b0x4&& (this[_0x5b48[2860]]= null!= _0x43b0x3?_0x43b0x3:this[_0x5b48[2853]],this[_0x5b48[2862]]= _0x43b0x4,this[_0x5b48[811]]())};mxCellMarker[_0x5b48[202]][_0x5b48[811]]= function(){this[_0x5b48[1016]][_0x5b48[2828]](this[_0x5b48[2860]]);this[_0x5b48[1016]][_0x5b48[1016]](this[_0x5b48[2862]]);this[_0x5b48[746]]( new mxEventObject(mxEvent.MARK,_0x5b48[724],this[_0x5b48[2862]]))};mxCellMarker[_0x5b48[202]][_0x5b48[2870]]= function(){this[_0x5b48[811]]()};mxCellMarker[_0x5b48[202]][_0x5b48[2872]]= function(_0x43b0x2){return !0};mxCellMarker[_0x5b48[202]][_0x5b48[2873]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){return _0x43b0x4?this[_0x5b48[2853]]:this[_0x5b48[2855]]};mxCellMarker[_0x5b48[202]][_0x5b48[248]]= function(_0x43b0x2){var _0x43b0x3=this[_0x5b48[1179]][_0x5b48[249]]();cell= this[_0x5b48[736]](_0x43b0x2);_0x43b0x3= this[_0x5b48[2875]](_0x43b0x3[_0x5b48[248]](cell));return null!= _0x43b0x3&& this[_0x5b48[1825]](_0x43b0x3,_0x43b0x2)?_0x43b0x3:null};mxCellMarker[_0x5b48[202]][_0x5b48[736]]= function(_0x43b0x2){return _0x43b0x2[_0x5b48[736]]()};mxCellMarker[_0x5b48[202]][_0x5b48[2875]]= function(_0x43b0x2){return _0x43b0x2};mxCellMarker[_0x5b48[202]][_0x5b48[1825]]= function(_0x43b0x2,_0x43b0x3){return this[_0x5b48[2859]]?mxUtils[_0x5b48[2876]](_0x43b0x2,_0x43b0x3[_0x5b48[734]](),_0x43b0x3[_0x5b48[735]](),this[_0x5b48[2857]],mxConstants.MIN_HOTSPOT_SIZE,mxConstants.MAX_HOTSPOT_SIZE):!0};mxCellMarker[_0x5b48[202]][_0x5b48[515]]= function(){this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[745]](this[_0x5b48[2877]]);this[_0x5b48[1179]][_0x5b48[502]]()[_0x5b48[745]](this[_0x5b48[2877]]);this[_0x5b48[1016]][_0x5b48[515]]()};function mxSelectionCellsHandler(_0x43b0x2){mxEventSource[_0x5b48[239]](this);this[_0x5b48[1179]]= _0x43b0x2;this[_0x5b48[2878]]= new mxDictionary;this[_0x5b48[1179]][_0x5b48[1133]](this);this[_0x5b48[2731]]= mxUtils[_0x5b48[885]](this,function(_0x43b0x2,_0x43b0x4){this[_0x5b48[994]]()&& this[_0x5b48[802]]()});this[_0x5b48[1179]][_0x5b48[2435]]()[_0x5b48[169]](mxEvent.CHANGE,this[_0x5b48[2731]]);this[_0x5b48[1179]][_0x5b48[502]]()[_0x5b48[169]](mxEvent.CHANGE,this[_0x5b48[2731]]);this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[169]](mxEvent.SCALE,this[_0x5b48[2731]]);this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[169]](mxEvent.TRANSLATE,this[_0x5b48[2731]]);this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[169]](mxEvent.SCALE_AND_TRANSLATE,this[_0x5b48[2731]]);this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[169]](mxEvent.DOWN,this[_0x5b48[2731]]);this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[169]](mxEvent.UP,this[_0x5b48[2731]])}mxUtils[_0x5b48[1284]](mxSelectionCellsHandler,mxEventSource);mxSelectionCellsHandler[_0x5b48[202]][_0x5b48[1179]]= null;mxSelectionCellsHandler[_0x5b48[202]][_0x5b48[984]]= !0;mxSelectionCellsHandler[_0x5b48[202]][_0x5b48[2731]]= null;mxSelectionCellsHandler[_0x5b48[202]][_0x5b48[2879]]= 100;mxSelectionCellsHandler[_0x5b48[202]][_0x5b48[2878]]= null;mxSelectionCellsHandler[_0x5b48[202]][_0x5b48[994]]= function(){return this[_0x5b48[984]]};mxSelectionCellsHandler[_0x5b48[202]][_0x5b48[995]]= function(_0x43b0x2){this[_0x5b48[984]]= _0x43b0x2};mxSelectionCellsHandler[_0x5b48[202]][_0x5b48[2596]]= function(_0x43b0x2){return this[_0x5b48[2878]][_0x5b48[203]](_0x43b0x2)};mxSelectionCellsHandler[_0x5b48[202]][_0x5b48[862]]= function(){this[_0x5b48[2878]][_0x5b48[209]](function(_0x43b0x2,_0x43b0x3){_0x43b0x3[_0x5b48[862]][_0x5b48[183]](_0x43b0x3)})};mxSelectionCellsHandler[_0x5b48[202]][_0x5b48[802]]= function(){var _0x43b0x2=this[_0x5b48[2878]];this[_0x5b48[2878]]= new mxDictionary;for(var _0x43b0x3=this[_0x5b48[1179]][_0x5b48[897]](),_0x43b0x4=0;_0x43b0x4< _0x43b0x3[_0x5b48[67]];_0x43b0x4++){var _0x43b0x5=this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[248]](_0x43b0x3[_0x43b0x4]);if(null!= _0x43b0x5){var _0x43b0x9=_0x43b0x2[_0x5b48[205]](_0x43b0x3[_0x43b0x4]);null!= _0x43b0x9&& (_0x43b0x9[_0x5b48[724]]!= _0x43b0x5?(_0x43b0x9[_0x5b48[515]](),_0x43b0x9= null):_0x43b0x9[_0x5b48[258]]());null== _0x43b0x9&& (_0x43b0x9= this[_0x5b48[1179]][_0x5b48[2709]](_0x43b0x5),this[_0x5b48[746]]( new mxEventObject(mxEvent.ADD,_0x5b48[724],_0x43b0x5)));null!= _0x43b0x9&& this[_0x5b48[2878]][_0x5b48[204]](_0x43b0x3[_0x43b0x4],_0x43b0x9)}};_0x43b0x2[_0x5b48[209]](mxUtils[_0x5b48[885]](this,function(_0x43b0x2,_0x43b0x3){this[_0x5b48[746]]( new mxEventObject(mxEvent.REMOVE,_0x5b48[724],_0x43b0x3[_0x5b48[724]]));_0x43b0x3[_0x5b48[515]]()}))};mxSelectionCellsHandler[_0x5b48[202]][_0x5b48[787]]= function(_0x43b0x2,_0x43b0x3){if(this[_0x5b48[1179]][_0x5b48[994]]()&& this[_0x5b48[994]]()){var _0x43b0x4=[_0x43b0x2,_0x43b0x3];this[_0x5b48[2878]][_0x5b48[209]](function(_0x43b0x2,_0x43b0x3){_0x43b0x3[_0x5b48[787]][_0x5b48[183]](_0x43b0x3,_0x43b0x4)})}};mxSelectionCellsHandler[_0x5b48[202]][_0x5b48[788]]= function(_0x43b0x2,_0x43b0x3){if(this[_0x5b48[1179]][_0x5b48[994]]()&& this[_0x5b48[994]]()){var _0x43b0x4=[_0x43b0x2,_0x43b0x3];this[_0x5b48[2878]][_0x5b48[209]](function(_0x43b0x2,_0x43b0x3){_0x43b0x3[_0x5b48[788]][_0x5b48[183]](_0x43b0x3,_0x43b0x4)})}};mxSelectionCellsHandler[_0x5b48[202]][_0x5b48[789]]= function(_0x43b0x2,_0x43b0x3){if(this[_0x5b48[1179]][_0x5b48[994]]()&& this[_0x5b48[994]]()){var _0x43b0x4=[_0x43b0x2,_0x43b0x3];this[_0x5b48[2878]][_0x5b48[209]](function(_0x43b0x2,_0x43b0x3){_0x43b0x3[_0x5b48[789]][_0x5b48[183]](_0x43b0x3,_0x43b0x4)})}};mxSelectionCellsHandler[_0x5b48[202]][_0x5b48[515]]= function(){this[_0x5b48[1179]][_0x5b48[1148]](this);null!= this[_0x5b48[2731]]&& (this[_0x5b48[1179]][_0x5b48[2435]]()[_0x5b48[745]](this[_0x5b48[2731]]),this[_0x5b48[1179]][_0x5b48[502]]()[_0x5b48[745]](this[_0x5b48[2731]]),this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[745]](this[_0x5b48[2731]]),this[_0x5b48[2731]]= null)};function mxConnectionHandler(_0x43b0x2,_0x43b0x3){mxEventSource[_0x5b48[239]](this);null!= _0x43b0x2&& (this[_0x5b48[1179]]= _0x43b0x2,this[_0x5b48[1033]]= _0x43b0x3,this[_0x5b48[176]]())}mxUtils[_0x5b48[1284]](mxConnectionHandler,mxEventSource);mxConnectionHandler[_0x5b48[202]][_0x5b48[1179]]= null;mxConnectionHandler[_0x5b48[202]][_0x5b48[1033]]= !0;mxConnectionHandler[_0x5b48[202]][_0x5b48[2880]]= !1;mxConnectionHandler[_0x5b48[202]][_0x5b48[2881]]= !1;mxConnectionHandler[_0x5b48[202]][_0x5b48[2882]]= null;mxConnectionHandler[_0x5b48[202]][_0x5b48[2883]]= !1;mxConnectionHandler[_0x5b48[202]][_0x5b48[984]]= !0;mxConnectionHandler[_0x5b48[202]][_0x5b48[804]]= !0;mxConnectionHandler[_0x5b48[202]][_0x5b48[2884]]= !1;mxConnectionHandler[_0x5b48[202]][_0x5b48[2885]]= null;mxConnectionHandler[_0x5b48[202]][_0x5b48[2886]]= null;mxConnectionHandler[_0x5b48[202]][_0x5b48[267]]= null;mxConnectionHandler[_0x5b48[202]][_0x5b48[2887]]= !1;mxConnectionHandler[_0x5b48[202]][_0x5b48[2888]]= !0;mxConnectionHandler[_0x5b48[202]][_0x5b48[2889]]= 500;mxConnectionHandler[_0x5b48[202]][_0x5b48[2890]]= !1;mxConnectionHandler[_0x5b48[202]][_0x5b48[2891]]= !1;mxConnectionHandler[_0x5b48[202]][_0x5b48[2892]]= 4;mxConnectionHandler[_0x5b48[202]][_0x5b48[2893]]= 0;mxConnectionHandler[_0x5b48[202]][_0x5b48[2894]]= 0;mxConnectionHandler[_0x5b48[202]][_0x5b48[2895]]= !1;mxConnectionHandler[_0x5b48[202]][_0x5b48[2823]]= null;mxConnectionHandler[_0x5b48[202]][_0x5b48[2896]]= new mxPoint(0,mxConstants.TOOLTIP_VERTICAL_OFFSET);mxConnectionHandler[_0x5b48[202]][_0x5b48[2897]]= null;mxConnectionHandler[_0x5b48[202]][_0x5b48[1176]]= null;mxConnectionHandler[_0x5b48[202]][_0x5b48[2898]]= null;mxConnectionHandler[_0x5b48[202]][_0x5b48[2899]]= 0;mxConnectionHandler[_0x5b48[202]][_0x5b48[2900]]= mxClient[_0x5b48[47]];mxConnectionHandler[_0x5b48[202]][_0x5b48[994]]= function(){return this[_0x5b48[984]]};mxConnectionHandler[_0x5b48[202]][_0x5b48[995]]= function(_0x43b0x2){this[_0x5b48[984]]= _0x43b0x2};mxConnectionHandler[_0x5b48[202]][_0x5b48[2901]]= function(){return this[_0x5b48[2884]]};mxConnectionHandler[_0x5b48[202]][_0x5b48[2902]]= function(_0x43b0x2){this[_0x5b48[2884]]= _0x43b0x2};mxConnectionHandler[_0x5b48[202]][_0x5b48[2156]]= function(){var _0x43b0x2= new mxPolyline([],mxConstants.INVALID_COLOR);_0x43b0x2[_0x5b48[507]]= this[_0x5b48[1179]][_0x5b48[507]]!= mxConstants[_0x5b48[508]]?mxConstants[_0x5b48[1523]]:mxConstants[_0x5b48[508]];_0x43b0x2[_0x5b48[176]](this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[1524]]());_0x43b0x2[_0x5b48[1564]]= 0;_0x43b0x2[_0x5b48[1229]]= !1;_0x43b0x2[_0x5b48[1522]]= !0;if(this[_0x5b48[1179]][_0x5b48[507]]== mxConstants[_0x5b48[508]]){_0x43b0x2[_0x5b48[252]][_0x5b48[57]](_0x5b48[1377],_0x5b48[130])}else {var _0x43b0x3=mxUtils[_0x5b48[885]](this,function(_0x43b0x2){_0x43b0x2= mxUtils[_0x5b48[2196]](this[_0x5b48[1179]][_0x5b48[526]],mxEvent[_0x5b48[731]](_0x43b0x2),mxEvent[_0x5b48[733]](_0x43b0x2));return this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[248]](this[_0x5b48[1179]][_0x5b48[999]](_0x43b0x2[_0x5b48[235]],_0x43b0x2[_0x5b48[236]]))});mxEvent[_0x5b48[2733]](_0x43b0x2[_0x5b48[252]],this[_0x5b48[1179]],_0x43b0x3)};return _0x43b0x2};mxConnectionHandler[_0x5b48[202]][_0x5b48[176]]= function(){this[_0x5b48[1179]][_0x5b48[1133]](this);this[_0x5b48[2885]]= this[_0x5b48[1689]]();this[_0x5b48[2886]]= new mxConstraintHandler(this[_0x5b48[1179]]);this[_0x5b48[1176]]= mxUtils[_0x5b48[885]](this,function(_0x43b0x2){null!= this[_0x5b48[2903]]&& (this[_0x5b48[2903]]= this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[248]](this[_0x5b48[2903]][_0x5b48[246]]));null!= this[_0x5b48[2903]]?this[_0x5b48[2905]](this[_0x5b48[2904]],this[_0x5b48[2903]]):(this[_0x5b48[2906]](this[_0x5b48[2904]]),this[_0x5b48[257]]= null);this[_0x5b48[2886]][_0x5b48[862]]()});this[_0x5b48[1179]][_0x5b48[502]]()[_0x5b48[169]](mxEvent.CHANGE,this[_0x5b48[1176]]);this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[169]](mxEvent.SCALE,this[_0x5b48[1176]]);this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[169]](mxEvent.TRANSLATE,this[_0x5b48[1176]]);this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[169]](mxEvent.SCALE_AND_TRANSLATE,this[_0x5b48[1176]]);this[_0x5b48[2898]]= mxUtils[_0x5b48[885]](this,function(_0x43b0x2){this[_0x5b48[2906]](this[_0x5b48[2904]])});this[_0x5b48[1179]][_0x5b48[169]](mxEvent.START_EDITING,this[_0x5b48[2898]]);this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[169]](mxEvent.DOWN,this[_0x5b48[2898]]);this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[169]](mxEvent.UP,this[_0x5b48[2898]])};mxConnectionHandler[_0x5b48[202]][_0x5b48[2907]]= function(_0x43b0x2){return !0};mxConnectionHandler[_0x5b48[202]][_0x5b48[1689]]= function(){var _0x43b0x2= new mxCellMarker(this[_0x5b48[1179]]);_0x43b0x2[_0x5b48[2859]]= !0;_0x43b0x2[_0x5b48[736]]= mxUtils[_0x5b48[885]](this,function(_0x43b0x3,_0x43b0x4){_0x43b0x4= mxCellMarker[_0x5b48[202]][_0x5b48[736]][_0x5b48[183]](_0x43b0x2,arguments);this[_0x5b48[267]]= null;if(!this[_0x5b48[2907]](_0x43b0x4)){return null};null!= _0x43b0x4?this[_0x5b48[2908]]()?null!= this[_0x5b48[257]]&& (this[_0x5b48[267]]= this[_0x5b48[2909]](this[_0x5b48[257]][_0x5b48[246]],_0x43b0x4),null!= this[_0x5b48[267]]&& 0== this[_0x5b48[267]][_0x5b48[67]]&& (_0x43b0x4= null,this[_0x5b48[2901]]()&& (this[_0x5b48[267]]= null))):this[_0x5b48[2671]](_0x43b0x4)|| (_0x43b0x4= null):this[_0x5b48[2908]]()&& (!this[_0x5b48[2901]]()&& !this[_0x5b48[1179]][_0x5b48[2406]])&& (this[_0x5b48[267]]= _0x5b48[110]);return _0x43b0x4});_0x43b0x2[_0x5b48[2872]]= mxUtils[_0x5b48[885]](this,function(_0x43b0x3){return this[_0x5b48[2908]]()?null== this[_0x5b48[267]]:mxCellMarker[_0x5b48[202]][_0x5b48[2872]][_0x5b48[183]](_0x43b0x2,arguments)});_0x43b0x2[_0x5b48[2873]]= mxUtils[_0x5b48[885]](this,function(_0x43b0x3,_0x43b0x4,_0x43b0x5){return null== this[_0x5b48[2882]]|| this[_0x5b48[2908]]()?mxCellMarker[_0x5b48[202]][_0x5b48[2873]][_0x5b48[183]](_0x43b0x2,arguments):null});_0x43b0x2[_0x5b48[1825]]= mxUtils[_0x5b48[885]](this,function(_0x43b0x3,_0x43b0x4){return null!= this[_0x5b48[2882]]|| this[_0x5b48[2908]]()?!0:mxCellMarker[_0x5b48[202]][_0x5b48[1825]][_0x5b48[183]](_0x43b0x2,arguments)});return _0x43b0x2};mxConnectionHandler[_0x5b48[202]][_0x5b48[861]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){this[_0x5b48[257]]= _0x43b0x2;this[_0x5b48[2823]]= new mxPoint(_0x43b0x3,_0x43b0x4);this[_0x5b48[2897]]= null!= _0x43b0x5?_0x43b0x5:this[_0x5b48[2910]](null);this[_0x5b48[2885]][_0x5b48[2860]]= this[_0x5b48[2885]][_0x5b48[2853]];this[_0x5b48[2885]][_0x5b48[2862]]= _0x43b0x2;this[_0x5b48[2885]][_0x5b48[811]]();this[_0x5b48[746]]( new mxEventObject(mxEvent.START,_0x5b48[724],this[_0x5b48[257]]))};mxConnectionHandler[_0x5b48[202]][_0x5b48[2908]]= function(){return null!= this[_0x5b48[2823]]&& null!= this[_0x5b48[253]]};mxConnectionHandler[_0x5b48[202]][_0x5b48[2671]]= function(_0x43b0x2){return this[_0x5b48[1179]][_0x5b48[2671]](_0x43b0x2)};mxConnectionHandler[_0x5b48[202]][_0x5b48[2672]]= function(_0x43b0x2){return !0};mxConnectionHandler[_0x5b48[202]][_0x5b48[2909]]= function(_0x43b0x2,_0x43b0x3){return !this[_0x5b48[2672]](_0x43b0x3)?_0x5b48[110]:this[_0x5b48[1179]][_0x5b48[2500]](null,_0x43b0x2,_0x43b0x3)};mxConnectionHandler[_0x5b48[202]][_0x5b48[2911]]= function(_0x43b0x2){return this[_0x5b48[2882]]};mxConnectionHandler[_0x5b48[202]][_0x5b48[2912]]= function(_0x43b0x2){return null!= _0x43b0x2[_0x5b48[963]]&& _0x43b0x2[_0x5b48[963]][_0x5b48[252]][_0x5b48[265]]== this[_0x5b48[1179]][_0x5b48[526]]?!0:this[_0x5b48[2880]]};mxConnectionHandler[_0x5b48[202]][_0x5b48[2913]]= function(_0x43b0x2){var _0x43b0x3=this[_0x5b48[2911]](_0x43b0x2);if(null!= _0x43b0x3&& null!= _0x43b0x2){this[_0x5b48[2903]]= _0x43b0x2;var _0x43b0x4=[],_0x43b0x5= new mxRectangle(0,0,_0x43b0x3[_0x5b48[117]],_0x43b0x3[_0x5b48[119]]),_0x43b0x9= new mxImageShape(_0x43b0x5,_0x43b0x3[_0x5b48[390]],null,null,0);_0x43b0x9[_0x5b48[1674]]= !1;this[_0x5b48[2912]](_0x43b0x2)?(_0x43b0x9[_0x5b48[507]]= mxConstants[_0x5b48[1656]],_0x43b0x9[_0x5b48[176]](this[_0x5b48[1179]][_0x5b48[526]])):(_0x43b0x9[_0x5b48[507]]= this[_0x5b48[1179]][_0x5b48[507]]== mxConstants[_0x5b48[508]]?mxConstants[_0x5b48[508]]:mxConstants[_0x5b48[1523]],_0x43b0x9[_0x5b48[176]](this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[1524]]()),this[_0x5b48[2881]]&& null!= _0x43b0x9[_0x5b48[252]][_0x5b48[328]]&& _0x43b0x9[_0x5b48[252]][_0x5b48[265]][_0x5b48[950]](_0x43b0x9[_0x5b48[252]],_0x43b0x9[_0x5b48[252]][_0x5b48[265]][_0x5b48[285]]));_0x43b0x9[_0x5b48[252]][_0x5b48[124]][_0x5b48[270]]= mxConstants[_0x5b48[2914]];var _0x43b0xa=mxUtils[_0x5b48[885]](this,function(){return null!= this[_0x5b48[2915]]?this[_0x5b48[2915]]:_0x43b0x2}),_0x43b0x3=mxUtils[_0x5b48[885]](this,function(_0x43b0x2){mxEvent[_0x5b48[721]](_0x43b0x2)|| (this[_0x5b48[2916]]= _0x43b0x9,this[_0x5b48[1179]][_0x5b48[758]](mxEvent.MOUSE_DOWN, new mxMouseEvent(_0x43b0x2,_0x43b0xa())))});mxEvent[_0x5b48[2733]](_0x43b0x9[_0x5b48[252]],this[_0x5b48[1179]],_0x43b0xa,_0x43b0x3);_0x43b0x4[_0x5b48[207]](_0x43b0x9);this[_0x5b48[2905]](_0x43b0x4,this[_0x5b48[2903]]);return _0x43b0x4};return null};mxConnectionHandler[_0x5b48[202]][_0x5b48[2905]]= function(_0x43b0x2,_0x43b0x3){if(null!= _0x43b0x2&& null!= _0x43b0x2[0]&& null!= _0x43b0x3){var _0x43b0x4=this[_0x5b48[2917]](_0x43b0x2[0],_0x43b0x3);_0x43b0x2[0][_0x5b48[1562]][_0x5b48[235]]= _0x43b0x4[_0x5b48[235]];_0x43b0x2[0][_0x5b48[1562]][_0x5b48[236]]= _0x43b0x4[_0x5b48[236]];_0x43b0x2[0][_0x5b48[258]]()}};mxConnectionHandler[_0x5b48[202]][_0x5b48[2917]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[255]],_0x43b0x5=_0x43b0x3[_0x5b48[241]](),_0x43b0x9=_0x43b0x3[_0x5b48[242]]();if(this[_0x5b48[1179]][_0x5b48[1730]](_0x43b0x3[_0x5b48[246]])){var _0x43b0xa=this[_0x5b48[1179]][_0x5b48[1731]](_0x43b0x3[_0x5b48[246]]),_0x43b0x5=0!= _0x43b0xa[_0x5b48[117]]?_0x43b0x3[_0x5b48[235]]+ _0x43b0xa[_0x5b48[117]]* _0x43b0x4/ 2:_0x43b0x5,_0x43b0x9=0!= _0x43b0xa[_0x5b48[119]]?_0x43b0x3[_0x5b48[236]]+ _0x43b0xa[_0x5b48[119]]* _0x43b0x4/ 2:_0x43b0x9,_0x43b0xa=mxUtils[_0x5b48[431]](mxUtils[_0x5b48[433]](_0x43b0x3[_0x5b48[124]],mxConstants.STYLE_ROTATION)|| 0);if(0!= _0x43b0xa){var _0x43b0x4=Math[_0x5b48[426]](_0x43b0xa),_0x43b0xa=Math[_0x5b48[427]](_0x43b0xa),_0x43b0x12= new mxPoint(_0x43b0x3[_0x5b48[241]](),_0x43b0x3[_0x5b48[242]]()),_0x43b0x9=mxUtils[_0x5b48[432]]( new mxPoint(_0x43b0x5,_0x43b0x9),_0x43b0x4,_0x43b0xa,_0x43b0x12),_0x43b0x5=_0x43b0x9[_0x5b48[235]],_0x43b0x9=_0x43b0x9[_0x5b48[236]]}};return new mxPoint(_0x43b0x5- _0x43b0x2[_0x5b48[1562]][_0x5b48[117]]/ 2,_0x43b0x9- _0x43b0x2[_0x5b48[1562]][_0x5b48[119]]/ 2)};mxConnectionHandler[_0x5b48[202]][_0x5b48[2906]]= function(_0x43b0x2){if(null!= _0x43b0x2){this[_0x5b48[2903]]= null;for(var _0x43b0x3=0;_0x43b0x3< _0x43b0x2[_0x5b48[67]];_0x43b0x3++){_0x43b0x2[_0x43b0x3][_0x5b48[515]]()}}};mxConnectionHandler[_0x5b48[202]][_0x5b48[2918]]= function(_0x43b0x2){return !this[_0x5b48[1179]][_0x5b48[2579]](_0x43b0x2[_0x5b48[727]]())&& (null!= this[_0x5b48[2886]][_0x5b48[2919]]&& null!= this[_0x5b48[2886]][_0x5b48[2920]]|| null!= this[_0x5b48[257]]&& null== this[_0x5b48[267]]&& (null== this[_0x5b48[2904]]|| null!= this[_0x5b48[2904]]&& null!= this[_0x5b48[2916]]))};mxConnectionHandler[_0x5b48[202]][_0x5b48[787]]= function(_0x43b0x2,_0x43b0x3){this[_0x5b48[2899]]++;if(this[_0x5b48[994]]()&& this[_0x5b48[1179]][_0x5b48[994]]()&& !_0x43b0x3[_0x5b48[721]]()&& !this[_0x5b48[2908]]()&& this[_0x5b48[2918]](_0x43b0x3)){null!= this[_0x5b48[2886]][_0x5b48[2920]]&& null!= this[_0x5b48[2886]][_0x5b48[2919]]&& null!= this[_0x5b48[2886]][_0x5b48[987]]?(this[_0x5b48[2921]]= this[_0x5b48[2886]][_0x5b48[2920]],this[_0x5b48[257]]= this[_0x5b48[2886]][_0x5b48[2919]],this[_0x5b48[2823]]= this[_0x5b48[2886]][_0x5b48[987]][_0x5b48[238]]()):this[_0x5b48[2823]]= new mxPoint(_0x43b0x3[_0x5b48[734]](),_0x43b0x3[_0x5b48[735]]());this[_0x5b48[2897]]= this[_0x5b48[2910]](_0x43b0x3);this[_0x5b48[2899]]= 1;this[_0x5b48[2887]]&& null== this[_0x5b48[253]]&& (this[_0x5b48[2922]]= null,this[_0x5b48[253]]= this[_0x5b48[2156]]());if(null== this[_0x5b48[257]]&& null!= this[_0x5b48[2897]]){var _0x43b0x4=this[_0x5b48[1179]][_0x5b48[2689]](_0x43b0x3[_0x5b48[727]]());this[_0x5b48[2897]][_0x5b48[246]][_0x5b48[256]][_0x5b48[2007]](_0x43b0x4,!0)};this[_0x5b48[746]]( new mxEventObject(mxEvent.START,_0x5b48[724],this[_0x5b48[257]]));_0x43b0x3[_0x5b48[722]]()}else {if(mxClient[_0x5b48[754]]&& this[_0x5b48[2888]]&& !this[_0x5b48[2890]]&& this[_0x5b48[994]]()&& this[_0x5b48[1179]][_0x5b48[994]]()&& !this[_0x5b48[2908]]()){this[_0x5b48[2890]]= !0;this[_0x5b48[2893]]= _0x43b0x3[_0x5b48[730]]();this[_0x5b48[2894]]= _0x43b0x3[_0x5b48[732]]();var _0x43b0x5=this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[248]](this[_0x5b48[2885]][_0x5b48[736]](_0x43b0x3));this[_0x5b48[2923]]&& window[_0x5b48[2924]](this[_0x5b48[2923]]);this[_0x5b48[2923]]= window[_0x5b48[261]](mxUtils[_0x5b48[885]](this,function(){this[_0x5b48[2891]]&& this[_0x5b48[2925]](_0x43b0x3,_0x43b0x5);this[_0x5b48[2891]]= this[_0x5b48[2890]]= !1}),this[_0x5b48[2889]]);this[_0x5b48[2891]]= !0}};this[_0x5b48[2926]]= this[_0x5b48[2916]];this[_0x5b48[2916]]= null};mxConnectionHandler[_0x5b48[202]][_0x5b48[2925]]= function(_0x43b0x2,_0x43b0x3){null!= _0x43b0x3&& (this[_0x5b48[2885]][_0x5b48[2860]]= this[_0x5b48[2885]][_0x5b48[2853]],this[_0x5b48[2885]][_0x5b48[2862]]= _0x43b0x3,this[_0x5b48[2885]][_0x5b48[811]](),this[_0x5b48[2823]]= new mxPoint(_0x43b0x2[_0x5b48[734]](),_0x43b0x2[_0x5b48[735]]()),this[_0x5b48[2897]]= this[_0x5b48[2910]](_0x43b0x2),this[_0x5b48[257]]= _0x43b0x3,this[_0x5b48[746]]( new mxEventObject(mxEvent.START,_0x5b48[724],this[_0x5b48[257]])))};mxConnectionHandler[_0x5b48[202]][_0x5b48[2927]]= function(_0x43b0x2){return !this[_0x5b48[1179]][_0x5b48[1712]](_0x43b0x2[_0x5b48[246]])};mxConnectionHandler[_0x5b48[202]][_0x5b48[2910]]= function(_0x43b0x2){return null};mxConnectionHandler[_0x5b48[202]][_0x5b48[2928]]= function(_0x43b0x2){var _0x43b0x3=this[_0x5b48[2885]][_0x5b48[2871]](_0x43b0x2);this[_0x5b48[2886]][_0x5b48[2729]](_0x43b0x2,null== this[_0x5b48[2823]]);this[_0x5b48[2915]]= _0x43b0x3};mxConnectionHandler[_0x5b48[202]][_0x5b48[2929]]= function(_0x43b0x2){var _0x43b0x3=this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[518]](),_0x43b0x4=this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[512]]();_0x43b0x2[_0x5b48[235]]= _0x43b0x2[_0x5b48[235]]/ _0x43b0x3- _0x43b0x4[_0x5b48[235]];_0x43b0x2[_0x5b48[236]]= _0x43b0x2[_0x5b48[236]]/ _0x43b0x3- _0x43b0x4[_0x5b48[236]]};mxConnectionHandler[_0x5b48[202]][_0x5b48[788]]= function(_0x43b0x2,_0x43b0x3){this[_0x5b48[2891]]&& (this[_0x5b48[2891]]= Math[_0x5b48[425]](this[_0x5b48[2893]]- _0x43b0x3[_0x5b48[730]]())< this[_0x5b48[2892]]&& Math[_0x5b48[425]](this[_0x5b48[2894]]- _0x43b0x3[_0x5b48[732]]())< this[_0x5b48[2892]]);if(!_0x43b0x3[_0x5b48[721]]()&& (this[_0x5b48[2895]]|| null!= this[_0x5b48[2823]]|| !this[_0x5b48[1179]][_0x5b48[1009]])){!this[_0x5b48[994]]()&& null!= this[_0x5b48[2915]] && (this[_0x5b48[2906]](this[_0x5b48[2904]]),this[_0x5b48[2915]]= null);(null!= this[_0x5b48[2823]]|| this[_0x5b48[994]]()&& this[_0x5b48[1179]][_0x5b48[994]]())&& this[_0x5b48[2928]](_0x43b0x3);if(null!= this[_0x5b48[2823]]){var _0x43b0x4=this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[255]],_0x43b0x4= new mxPoint(this[_0x5b48[1179]][_0x5b48[1021]](_0x43b0x3[_0x5b48[734]]()/ _0x43b0x4)* _0x43b0x4,this[_0x5b48[1179]][_0x5b48[1021]](_0x43b0x3[_0x5b48[735]]()/ _0x43b0x4)* _0x43b0x4),_0x43b0x5=null,_0x43b0x9=_0x43b0x4;null!= this[_0x5b48[2886]][_0x5b48[2920]]&& (null!= this[_0x5b48[2886]][_0x5b48[2919]]&& null!= this[_0x5b48[2886]][_0x5b48[987]])&& (_0x43b0x5= this[_0x5b48[2886]][_0x5b48[2920]],_0x43b0x9= this[_0x5b48[2886]][_0x5b48[987]][_0x5b48[238]]());var _0x43b0xa=this[_0x5b48[2823]];if(null!= this[_0x5b48[2926]]){var _0x43b0x12=this[_0x5b48[2926]][_0x5b48[1562]][_0x5b48[117]],_0x43b0x13=this[_0x5b48[2926]][_0x5b48[1562]][_0x5b48[119]];null!= this[_0x5b48[2915]]&& this[_0x5b48[2883]]?(_0x43b0x12= this[_0x5b48[2917]](this[_0x5b48[2926]],this[_0x5b48[2915]]),this[_0x5b48[2926]][_0x5b48[1562]][_0x5b48[235]]= _0x43b0x12[_0x5b48[235]],this[_0x5b48[2926]][_0x5b48[1562]][_0x5b48[236]]= _0x43b0x12[_0x5b48[236]]):(_0x43b0x12= new mxRectangle(_0x43b0x3[_0x5b48[734]]()+ this[_0x5b48[2896]][_0x5b48[235]],_0x43b0x3[_0x5b48[735]]()+ this[_0x5b48[2896]][_0x5b48[236]],_0x43b0x12,_0x43b0x13),this[_0x5b48[2926]][_0x5b48[1562]]= _0x43b0x12);this[_0x5b48[2926]][_0x5b48[258]]()};if(null!= this[_0x5b48[2897]]){this[_0x5b48[2897]][_0x5b48[439]]= [null,null!= this[_0x5b48[2915]]?null:_0x43b0x9];this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[2289]](this[_0x5b48[2897]],this[_0x5b48[257]],!0,this[_0x5b48[2921]]);null!= this[_0x5b48[2915]]&& (null== _0x43b0x5&& (_0x43b0x5= this[_0x5b48[1179]][_0x5b48[2288]](this[_0x5b48[2897]],this[_0x5b48[257]],!1)),this[_0x5b48[2897]][_0x5b48[2088]](null,!1),this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[2289]](this[_0x5b48[2897]],this[_0x5b48[2915]],!1,_0x43b0x5));_0x43b0xa= null;if(null!= this[_0x5b48[2922]]){_0x43b0xa= [];for(_0x43b0x9= 0;_0x43b0x9< this[_0x5b48[2922]][_0x5b48[67]];_0x43b0x9++){_0x43b0x5= this[_0x5b48[2922]][_0x43b0x9][_0x5b48[238]](),this[_0x5b48[2929]](_0x43b0x5),_0x43b0xa[_0x43b0x9]= _0x43b0x5}};this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[2282]](this[_0x5b48[2897]],_0x43b0xa,this[_0x5b48[257]],this[_0x5b48[2915]]);this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[2283]](this[_0x5b48[2897]],this[_0x5b48[257]],this[_0x5b48[2915]]);_0x43b0x9= this[_0x5b48[2897]][_0x5b48[439]][this[_0x5b48[2897]][_0x5b48[439]][_0x5b48[67]]- 1];_0x43b0xa= this[_0x5b48[2897]][_0x5b48[439]][0]}else {null!= this[_0x5b48[2915]]&& null== this[_0x5b48[2886]][_0x5b48[2920]]&& (_0x43b0x12= this[_0x5b48[2930]](this[_0x5b48[2915]],_0x43b0x3),null!= _0x43b0x12&& (_0x43b0x9= _0x43b0x12)),null== this[_0x5b48[2921]]&& null!= this[_0x5b48[257]]&& (_0x43b0x12= this[_0x5b48[2931]](this[_0x5b48[257]],null!= this[_0x5b48[2922]]&& 0< this[_0x5b48[2922]][_0x5b48[67]]?this[_0x5b48[2922]][0]:_0x43b0x9,_0x43b0x3),null!= _0x43b0x12&& (_0x43b0xa= _0x43b0x12))};if(null== this[_0x5b48[2915]]&& this[_0x5b48[2900]]){_0x43b0x12= _0x43b0xa;null!= this[_0x5b48[2897]]&& 2< this[_0x5b48[2897]][_0x5b48[439]][_0x5b48[67]]&& (_0x43b0x5= this[_0x5b48[2897]][_0x5b48[439]][this[_0x5b48[2897]][_0x5b48[439]][_0x5b48[67]]- 2],null!= _0x43b0x5&& (_0x43b0x12= _0x43b0x5));_0x43b0x5= _0x43b0x9[_0x5b48[235]]- _0x43b0x12[_0x5b48[235]];_0x43b0x12= _0x43b0x9[_0x5b48[236]]- _0x43b0x12[_0x5b48[236]];_0x43b0x13= Math[_0x5b48[428]](_0x43b0x5* _0x43b0x5+ _0x43b0x12* _0x43b0x12);if(0== _0x43b0x13){return};_0x43b0x9[_0x5b48[235]]-= 4* _0x43b0x5/ _0x43b0x13;_0x43b0x9[_0x5b48[236]]-= 4* _0x43b0x12/ _0x43b0x13};if(null== this[_0x5b48[253]]&& (_0x43b0x5= Math[_0x5b48[425]](_0x43b0x4[_0x5b48[235]]- this[_0x5b48[2823]][_0x5b48[235]]),_0x43b0x12= Math[_0x5b48[425]](_0x43b0x4[_0x5b48[236]]- this[_0x5b48[2823]][_0x5b48[236]]),_0x43b0x5> this[_0x5b48[1179]][_0x5b48[2353]]|| _0x43b0x12> this[_0x5b48[1179]][_0x5b48[2353]])){this[_0x5b48[253]]= this[_0x5b48[2156]](),this[_0x5b48[2928]](_0x43b0x3)};null!= this[_0x5b48[253]]&& (null!= this[_0x5b48[2897]]?this[_0x5b48[253]][_0x5b48[1525]]= this[_0x5b48[2897]][_0x5b48[439]]:(_0x43b0x4= [_0x43b0xa],null!= this[_0x5b48[2922]]&& (_0x43b0x4= _0x43b0x4[_0x5b48[1919]](this[_0x5b48[2922]])),_0x43b0x4[_0x5b48[207]](_0x43b0x9),this[_0x5b48[253]][_0x5b48[1525]]= _0x43b0x4),this[_0x5b48[2932]]());mxEvent[_0x5b48[722]](_0x43b0x3[_0x5b48[727]]());_0x43b0x3[_0x5b48[722]]()}else {!this[_0x5b48[994]]()|| !this[_0x5b48[1179]][_0x5b48[994]]()?this[_0x5b48[2886]][_0x5b48[862]]():this[_0x5b48[257]]!= this[_0x5b48[2915]]&& null== this[_0x5b48[2897]]?(this[_0x5b48[2906]](this[_0x5b48[2904]]),this[_0x5b48[2904]]= null,null!= this[_0x5b48[2915]]&& null== this[_0x5b48[267]]&& (this[_0x5b48[2904]]= this[_0x5b48[2913]](this[_0x5b48[2915]]),null== this[_0x5b48[2904]]&& (this[_0x5b48[2915]][_0x5b48[1609]](mxConstants.CURSOR_CONNECT),_0x43b0x3[_0x5b48[722]]())),this[_0x5b48[257]]= this[_0x5b48[2915]]):this[_0x5b48[257]]== this[_0x5b48[2915]]&& (null!= this[_0x5b48[2915]]&& null== this[_0x5b48[2904]]&& !this[_0x5b48[1179]][_0x5b48[1009]])&& _0x43b0x3[_0x5b48[722]]()};null!= this[_0x5b48[2886]][_0x5b48[2920]]&& this[_0x5b48[2885]][_0x5b48[862]]();if(!this[_0x5b48[1179]][_0x5b48[1009]]&& null!= this[_0x5b48[2915]] && null!= this[_0x5b48[2904]]){_0x43b0x4= !1;_0x43b0xa= _0x43b0x3[_0x5b48[728]]();for(_0x43b0x9= 0;_0x43b0x9< this[_0x5b48[2904]][_0x5b48[67]]&& !_0x43b0x4;_0x43b0x9++){_0x43b0x4= _0x43b0xa== this[_0x5b48[2904]][_0x43b0x9][_0x5b48[252]]|| _0x43b0xa[_0x5b48[265]]== this[_0x5b48[2904]][_0x43b0x9][_0x5b48[252]]};_0x43b0x4|| this[_0x5b48[2933]](this[_0x5b48[2915]],this[_0x5b48[2904]],_0x43b0x3)}}else {this[_0x5b48[2886]][_0x5b48[862]]()}};mxConnectionHandler[_0x5b48[202]][_0x5b48[2930]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=null,_0x43b0x5=_0x43b0x2[_0x5b48[441]],_0x43b0x9=_0x43b0x5[_0x5b48[2305]](_0x43b0x2);if(null!= _0x43b0x9){var _0x43b0xa=null!= this[_0x5b48[2922]]&& 0< this[_0x5b48[2922]][_0x5b48[67]]?this[_0x5b48[2922]][this[_0x5b48[2922]][_0x5b48[67]]- 1]: new mxPoint(this[_0x5b48[257]][_0x5b48[241]](),this[_0x5b48[257]][_0x5b48[242]]()),_0x43b0x5=_0x43b0x9(_0x43b0x5[_0x5b48[2087]](_0x43b0x2),this[_0x5b48[2897]],_0x43b0xa,!1);null!= _0x43b0x5&& (_0x43b0x4= _0x43b0x5)}else {_0x43b0x4= new mxPoint(_0x43b0x2[_0x5b48[241]](),_0x43b0x2[_0x5b48[242]]())};return _0x43b0x4};mxConnectionHandler[_0x5b48[202]][_0x5b48[2931]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){_0x43b0x4= null;var _0x43b0x5=_0x43b0x2[_0x5b48[441]],_0x43b0x9=_0x43b0x5[_0x5b48[2305]](_0x43b0x2),_0x43b0xa= new mxPoint(_0x43b0x2[_0x5b48[241]](),_0x43b0x2[_0x5b48[242]]());if(null!= _0x43b0x9){var _0x43b0x12=mxUtils[_0x5b48[433]](_0x43b0x2[_0x5b48[124]],mxConstants.STYLE_ROTATION,0),_0x43b0x13=-_0x43b0x12* (Math[_0x5b48[424]]/ 180);0!= _0x43b0x12&& (_0x43b0x3= mxUtils[_0x5b48[432]]( new mxPoint(_0x43b0x3[_0x5b48[235]],_0x43b0x3[_0x5b48[236]]),Math[_0x5b48[426]](_0x43b0x13),Math[_0x5b48[427]](_0x43b0x13),_0x43b0xa));_0x43b0x2= _0x43b0x9(_0x43b0x5[_0x5b48[2087]](_0x43b0x2),_0x43b0x2,_0x43b0x3,!1);null!= _0x43b0x2&& (0!= _0x43b0x12&& (_0x43b0x2= mxUtils[_0x5b48[432]]( new mxPoint(_0x43b0x2[_0x5b48[235]],_0x43b0x2[_0x5b48[236]]),Math[_0x5b48[426]](-_0x43b0x13),Math[_0x5b48[427]](-_0x43b0x13),_0x43b0xa)),_0x43b0x4= _0x43b0x2)}else {_0x43b0x4= _0x43b0xa};return _0x43b0x4};mxConnectionHandler[_0x5b48[202]][_0x5b48[2933]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){};mxConnectionHandler[_0x5b48[202]][_0x5b48[2934]]= function(_0x43b0x2){return null!= _0x43b0x2[_0x5b48[248]]()};mxConnectionHandler[_0x5b48[202]][_0x5b48[2935]]= function(_0x43b0x2){var _0x43b0x3=mxUtils[_0x5b48[2196]](this[_0x5b48[1179]][_0x5b48[526]],_0x43b0x2[_0x5b48[730]](),_0x43b0x2[_0x5b48[732]]()),_0x43b0x4=Math[_0x5b48[425]](_0x43b0x3[_0x5b48[235]]- this[_0x5b48[2823]][_0x5b48[235]]),_0x43b0x3=Math[_0x5b48[425]](_0x43b0x3[_0x5b48[236]]- this[_0x5b48[2823]][_0x5b48[236]]);if(null!= this[_0x5b48[2922]]|| 1< this[_0x5b48[2899]]&& (_0x43b0x4> this[_0x5b48[1179]][_0x5b48[2353]]|| _0x43b0x3> this[_0x5b48[1179]][_0x5b48[2353]])){null== this[_0x5b48[2922]]&& (this[_0x5b48[2922]]= []),_0x43b0x4= this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[255]],_0x43b0x3= new mxPoint(this[_0x5b48[1179]][_0x5b48[1021]](_0x43b0x2[_0x5b48[734]]()/ _0x43b0x4)* _0x43b0x4,this[_0x5b48[1179]][_0x5b48[1021]](_0x43b0x2[_0x5b48[735]]()/ _0x43b0x4)* _0x43b0x4),this[_0x5b48[2922]][_0x5b48[207]](_0x43b0x3)}};mxConnectionHandler[_0x5b48[202]][_0x5b48[789]]= function(_0x43b0x2,_0x43b0x3){if(!_0x43b0x3[_0x5b48[721]]()&& this[_0x5b48[2908]]()){if(this[_0x5b48[2887]]&& !this[_0x5b48[2934]](_0x43b0x3)){this[_0x5b48[2935]](_0x43b0x3);_0x43b0x3[_0x5b48[722]]();return};if(null== this[_0x5b48[267]]){var _0x43b0x4=null!= this[_0x5b48[257]]?this[_0x5b48[257]][_0x5b48[246]]:null,_0x43b0x5=null;null!= this[_0x5b48[2886]][_0x5b48[2920]]&& null!= this[_0x5b48[2886]][_0x5b48[2919]]&& (_0x43b0x5= this[_0x5b48[2886]][_0x5b48[2919]][_0x5b48[246]]);null== _0x43b0x5&& this[_0x5b48[2885]][_0x5b48[2867]]()&& (_0x43b0x5= this[_0x5b48[2885]][_0x5b48[2861]][_0x5b48[246]]);this[_0x5b48[807]](_0x43b0x4,_0x43b0x5,_0x43b0x3[_0x5b48[727]](),_0x43b0x3[_0x5b48[736]]())}else {null!= this[_0x5b48[257]]&& (null!= this[_0x5b48[2885]][_0x5b48[2861]]&& this[_0x5b48[257]][_0x5b48[246]]== this[_0x5b48[2885]][_0x5b48[2861]][_0x5b48[246]])&& this[_0x5b48[1179]][_0x5b48[2459]](this[_0x5b48[2885]][_0x5b48[1097]],evt),0< this[_0x5b48[267]][_0x5b48[67]]&& this[_0x5b48[1179]][_0x5b48[2580]](this[_0x5b48[267]])};this[_0x5b48[2906]](this[_0x5b48[2904]]);_0x43b0x3[_0x5b48[722]]()};null!= this[_0x5b48[2823]]&& this[_0x5b48[862]]();this[_0x5b48[2891]]= this[_0x5b48[2890]]= !1};mxConnectionHandler[_0x5b48[202]][_0x5b48[862]]= function(){null!= this[_0x5b48[253]]&& (this[_0x5b48[253]][_0x5b48[515]](),this[_0x5b48[253]]= null);this[_0x5b48[2906]](this[_0x5b48[2904]]);this[_0x5b48[2904]]= null;this[_0x5b48[2885]][_0x5b48[862]]();this[_0x5b48[2886]][_0x5b48[862]]();this[_0x5b48[2921]]= this[_0x5b48[267]]= this[_0x5b48[257]]= this[_0x5b48[2897]]= this[_0x5b48[2926]]= null;this[_0x5b48[2899]]= 0;this[_0x5b48[2916]]= this[_0x5b48[2823]]= null;this[_0x5b48[746]]( new mxEventObject(mxEvent.RESET))};mxConnectionHandler[_0x5b48[202]][_0x5b48[2932]]= function(){var _0x43b0x2=null== this[_0x5b48[267]];this[_0x5b48[253]][_0x5b48[1307]]= this[_0x5b48[2936]](_0x43b0x2);_0x43b0x2= this[_0x5b48[2937]](_0x43b0x2);this[_0x5b48[253]][_0x5b48[1336]]= _0x43b0x2;this[_0x5b48[253]][_0x5b48[258]]()};mxConnectionHandler[_0x5b48[202]][_0x5b48[2937]]= function(_0x43b0x2){return _0x43b0x2?mxConstants[_0x5b48[2829]]:mxConstants[_0x5b48[2938]]};mxConnectionHandler[_0x5b48[202]][_0x5b48[2936]]= function(_0x43b0x2){return _0x43b0x2?3:1};mxConnectionHandler[_0x5b48[202]][_0x5b48[807]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){if(null!= _0x43b0x3|| this[_0x5b48[2901]]()|| this[_0x5b48[1179]][_0x5b48[2406]]){var _0x43b0x9=this[_0x5b48[1179]][_0x5b48[502]](),_0x43b0xa=null;_0x43b0x9[_0x5b48[473]]();try{if(null!= _0x43b0x2&& (null== _0x43b0x3&& this[_0x5b48[2901]]())&& (_0x43b0x3= this[_0x5b48[2939]](_0x43b0x4,_0x43b0x2),null!= _0x43b0x3)){_0x43b0x5= this[_0x5b48[1179]][_0x5b48[564]]([_0x43b0x3],_0x43b0x4,_0x43b0x5);if(null== _0x43b0x5|| !this[_0x5b48[1179]][_0x5b48[502]]()[_0x5b48[250]](_0x43b0x5)){var _0x43b0x12=this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[248]](_0x43b0x5);if(null!= _0x43b0x12){var _0x43b0x13=_0x43b0x9[_0x5b48[1721]](_0x43b0x3);_0x43b0x13[_0x5b48[235]]-= _0x43b0x12[_0x5b48[2078]][_0x5b48[235]];_0x43b0x13[_0x5b48[236]]-= _0x43b0x12[_0x5b48[2078]][_0x5b48[236]]}}else {_0x43b0x5= this[_0x5b48[1179]][_0x5b48[902]]()};this[_0x5b48[1179]][_0x5b48[2103]](_0x43b0x3,_0x43b0x5)};var _0x43b0x14=this[_0x5b48[1179]][_0x5b48[902]]();null!= _0x43b0x2&& (null!= _0x43b0x3&& _0x43b0x9[_0x5b48[1197]](_0x43b0x2)== _0x43b0x9[_0x5b48[1197]](_0x43b0x3)&& _0x43b0x9[_0x5b48[1197]](_0x43b0x9[_0x5b48[1197]](_0x43b0x2))!= _0x43b0x9[_0x5b48[501]]())&& (_0x43b0x14= _0x43b0x9[_0x5b48[1197]](_0x43b0x2),null!= _0x43b0x2[_0x5b48[256]]&& _0x43b0x2[_0x5b48[256]][_0x5b48[1500]]&& (null!= _0x43b0x3[_0x5b48[256]]&& _0x43b0x3[_0x5b48[256]][_0x5b48[1500]])&& (_0x43b0x14= _0x43b0x9[_0x5b48[1197]](_0x43b0x14)));_0x43b0x13= _0x43b0x12= null;null!= this[_0x5b48[2897]]&& (_0x43b0x12= this[_0x5b48[2897]][_0x5b48[246]][_0x5b48[131]],_0x43b0x13= this[_0x5b48[2897]][_0x5b48[246]][_0x5b48[124]]);_0x43b0xa= this[_0x5b48[1960]](_0x43b0x14,null,_0x43b0x12,_0x43b0x2,_0x43b0x3,_0x43b0x13);if(null!= _0x43b0xa){this[_0x5b48[1179]][_0x5b48[2545]](_0x43b0xa,_0x43b0x2,!0,this[_0x5b48[2921]]);this[_0x5b48[1179]][_0x5b48[2545]](_0x43b0xa,_0x43b0x3,!1,this[_0x5b48[2886]][_0x5b48[2920]]);null!= this[_0x5b48[2897]]&& _0x43b0x9[_0x5b48[1724]](_0x43b0xa,this[_0x5b48[2897]][_0x5b48[246]][_0x5b48[256]]);var _0x43b0x15=_0x43b0x9[_0x5b48[1721]](_0x43b0xa);null== _0x43b0x15&& (_0x43b0x15= new mxGeometry,_0x43b0x15[_0x5b48[1500]]= !0,_0x43b0x9[_0x5b48[1724]](_0x43b0xa,_0x43b0x15));if(null!= this[_0x5b48[2922]]&& 0< this[_0x5b48[2922]][_0x5b48[67]]){var _0x43b0x16=this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[255]],_0x43b0x17=this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[513]];_0x43b0x15[_0x5b48[1525]]= [];for(_0x43b0x2= 0;_0x43b0x2< this[_0x5b48[2922]][_0x5b48[67]];_0x43b0x2++){var _0x43b0x18=this[_0x5b48[2922]][_0x43b0x2];_0x43b0x15[_0x5b48[1525]][_0x5b48[207]]( new mxPoint(_0x43b0x18[_0x5b48[235]]/ _0x43b0x16- _0x43b0x17[_0x5b48[235]],_0x43b0x18[_0x5b48[236]]/ _0x43b0x16- _0x43b0x17[_0x5b48[236]]))}};null== _0x43b0x3&& (_0x43b0x18= this[_0x5b48[1179]][_0x5b48[2689]](_0x43b0x4,!1),_0x43b0x18[_0x5b48[235]]-= this[_0x5b48[1179]][_0x5b48[1136]]/ this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[255]],_0x43b0x18[_0x5b48[236]]-= this[_0x5b48[1179]][_0x5b48[1137]]/ this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[255]],_0x43b0x15[_0x5b48[2007]](_0x43b0x18,!1));this[_0x5b48[746]]( new mxEventObject(mxEvent.CONNECT,_0x5b48[246],_0x43b0xa,_0x5b48[763],_0x43b0x4,_0x5b48[772],_0x43b0x5))}}catch(q){mxLog[_0x5b48[539]](),mxLog[_0x5b48[143]](q[_0x5b48[281]])}finally{_0x43b0x9[_0x5b48[476]]()};this[_0x5b48[804]]&& this[_0x5b48[2707]](_0x43b0xa,_0x43b0x3)}};mxConnectionHandler[_0x5b48[202]][_0x5b48[2707]]= function(_0x43b0x2,_0x43b0x3){this[_0x5b48[1179]][_0x5b48[2450]](_0x43b0x2)};mxConnectionHandler[_0x5b48[202]][_0x5b48[1960]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa){if(null== this[_0x5b48[1033]]){return this[_0x5b48[1179]][_0x5b48[1960]](_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa)};_0x43b0x3= this[_0x5b48[2503]](_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa);return _0x43b0x3= this[_0x5b48[1179]][_0x5b48[2504]](_0x43b0x3,_0x43b0x2,_0x43b0x5,_0x43b0x9)};mxConnectionHandler[_0x5b48[202]][_0x5b48[2939]]= function(_0x43b0x2,_0x43b0x3){for(var _0x43b0x4=this[_0x5b48[1179]][_0x5b48[1198]](_0x43b0x3);null!= _0x43b0x4&& _0x43b0x4[_0x5b48[1500]];){_0x43b0x3= this[_0x5b48[1179]][_0x5b48[502]]()[_0x5b48[1197]](_0x43b0x3),_0x43b0x4= this[_0x5b48[1179]][_0x5b48[1198]](_0x43b0x3)};var _0x43b0x5=this[_0x5b48[1179]][_0x5b48[899]]([_0x43b0x3])[0],_0x43b0x4=this[_0x5b48[1179]][_0x5b48[502]]()[_0x5b48[1721]](_0x43b0x5);if(null!= _0x43b0x4){var _0x43b0x9=this[_0x5b48[1179]][_0x5b48[2689]](_0x43b0x2);_0x43b0x4[_0x5b48[235]]= this[_0x5b48[1179]][_0x5b48[1021]](_0x43b0x9[_0x5b48[235]]- _0x43b0x4[_0x5b48[117]]/ 2)- this[_0x5b48[1179]][_0x5b48[1136]]/ this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[255]];_0x43b0x4[_0x5b48[236]]= this[_0x5b48[1179]][_0x5b48[1021]](_0x43b0x9[_0x5b48[236]]- _0x43b0x4[_0x5b48[119]]/ 2)- this[_0x5b48[1179]][_0x5b48[1137]]/ this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[255]];if(null!= this[_0x5b48[2823]]){var _0x43b0xa=this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[248]](_0x43b0x3);if(null!= _0x43b0xa){var _0x43b0x12=this[_0x5b48[2940]]();Math[_0x5b48[425]](this[_0x5b48[1179]][_0x5b48[1021]](this[_0x5b48[2823]][_0x5b48[235]])- this[_0x5b48[1179]][_0x5b48[1021]](_0x43b0x9[_0x5b48[235]]))<= _0x43b0x12?_0x43b0x4[_0x5b48[235]]= _0x43b0xa[_0x5b48[235]]:Math[_0x5b48[425]](this[_0x5b48[1179]][_0x5b48[1021]](this[_0x5b48[2823]][_0x5b48[236]])- this[_0x5b48[1179]][_0x5b48[1021]](_0x43b0x9[_0x5b48[236]]))<= _0x43b0x12&& (_0x43b0x4[_0x5b48[236]]= _0x43b0xa[_0x5b48[236]])}}};return _0x43b0x5};mxConnectionHandler[_0x5b48[202]][_0x5b48[2940]]= function(){return this[_0x5b48[1179]][_0x5b48[997]]()?this[_0x5b48[1179]][_0x5b48[1020]]:this[_0x5b48[1179]][_0x5b48[2353]]};mxConnectionHandler[_0x5b48[202]][_0x5b48[2503]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){var _0x43b0x9=null;null!= this[_0x5b48[1033]]&& (_0x43b0x9= this[_0x5b48[1033]](_0x43b0x3,_0x43b0x4,_0x43b0x5));null== _0x43b0x9&& (_0x43b0x9= new mxCell(_0x43b0x2|| _0x5b48[110]),_0x43b0x9[_0x5b48[1994]](!0),_0x43b0x9[_0x5b48[475]](_0x43b0x5),_0x43b0x2= new mxGeometry,_0x43b0x2[_0x5b48[1500]]= !0,_0x43b0x9[_0x5b48[1724]](_0x43b0x2));return _0x43b0x9};mxConnectionHandler[_0x5b48[202]][_0x5b48[515]]= function(){this[_0x5b48[1179]][_0x5b48[1148]](this);null!= this[_0x5b48[253]]&& (this[_0x5b48[253]][_0x5b48[515]](),this[_0x5b48[253]]= null);null!= this[_0x5b48[2885]]&& (this[_0x5b48[2885]][_0x5b48[515]](),this[_0x5b48[2885]]= null);null!= this[_0x5b48[2886]]&& (this[_0x5b48[2886]][_0x5b48[515]](),this[_0x5b48[2886]]= null);null!= this[_0x5b48[1176]]&& (this[_0x5b48[1179]][_0x5b48[502]]()[_0x5b48[745]](this[_0x5b48[1176]]),this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[745]](this[_0x5b48[1176]]),this[_0x5b48[1176]]= null);null!= this[_0x5b48[2898]]&& (this[_0x5b48[1179]][_0x5b48[745]](this[_0x5b48[2898]]),this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[745]](this[_0x5b48[2898]]),this[_0x5b48[2898]]= null)};function mxConstraintHandler(_0x43b0x2){this[_0x5b48[1179]]= _0x43b0x2}mxConstraintHandler[_0x5b48[202]][_0x5b48[2941]]= new mxImage(mxClient[_0x5b48[88]]+ _0x5b48[2942],5,5);mxConstraintHandler[_0x5b48[202]][_0x5b48[1179]]= null;mxConstraintHandler[_0x5b48[202]][_0x5b48[984]]= !0;mxConstraintHandler[_0x5b48[202]][_0x5b48[2943]]= mxConstants[_0x5b48[2854]];mxConstraintHandler[_0x5b48[202]][_0x5b48[994]]= function(){return this[_0x5b48[984]]};mxConstraintHandler[_0x5b48[202]][_0x5b48[995]]= function(_0x43b0x2){this[_0x5b48[984]]= _0x43b0x2};mxConstraintHandler[_0x5b48[202]][_0x5b48[862]]= function(){if(null!= this[_0x5b48[2944]]){for(var _0x43b0x2=0;_0x43b0x2< this[_0x5b48[2944]][_0x5b48[67]];_0x43b0x2++){this[_0x5b48[2944]][_0x43b0x2][_0x5b48[515]]()};this[_0x5b48[2944]]= null};null!= this[_0x5b48[2945]]&& (this[_0x5b48[2945]][_0x5b48[515]](),this[_0x5b48[2945]]= null);this[_0x5b48[2946]]= this[_0x5b48[2919]]= this[_0x5b48[987]]= this[_0x5b48[2947]]= this[_0x5b48[2920]]= null};mxConstraintHandler[_0x5b48[202]][_0x5b48[2636]]= function(){return this[_0x5b48[1179]][_0x5b48[2636]]()};mxConstraintHandler[_0x5b48[202]][_0x5b48[2948]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){return this[_0x5b48[2941]]};mxConstraintHandler[_0x5b48[202]][_0x5b48[2949]]= function(_0x43b0x2,_0x43b0x3){return !1};mxConstraintHandler[_0x5b48[202]][_0x5b48[2729]]= function(_0x43b0x2,_0x43b0x3){if(this[_0x5b48[994]]()&& !this[_0x5b48[2949]](_0x43b0x2)){var _0x43b0x4=this[_0x5b48[2636]](),_0x43b0x5= new mxRectangle(_0x43b0x2[_0x5b48[734]]()- _0x43b0x4,_0x43b0x2[_0x5b48[735]]()- _0x43b0x4,2* _0x43b0x4,2* _0x43b0x4),_0x43b0x9=null!= _0x43b0x2[_0x5b48[736]]()?this[_0x5b48[1179]][_0x5b48[2565]](_0x43b0x2[_0x5b48[736]]()):!1;if(null== this[_0x5b48[2947]]|| !mxUtils[_0x5b48[1825]](this[_0x5b48[2947]],_0x43b0x5)|| null!= _0x43b0x2[_0x5b48[248]]()&& null!= this[_0x5b48[2919]]&& _0x43b0x9){if(this[_0x5b48[2947]]= null,_0x43b0x2[_0x5b48[248]]()!= this[_0x5b48[2919]]){if(this[_0x5b48[2919]]= null,this[_0x5b48[1531]]= null!= _0x43b0x2[_0x5b48[248]]()&& _0x43b0x9?this[_0x5b48[1179]][_0x5b48[2538]](_0x43b0x2[_0x5b48[248]](),_0x43b0x3):null,null!= this[_0x5b48[1531]]){this[_0x5b48[2919]]= _0x43b0x2[_0x5b48[248]]();this[_0x5b48[2947]]= new mxRectangle(_0x43b0x2[_0x5b48[248]]()[_0x5b48[235]],_0x43b0x2[_0x5b48[248]]()[_0x5b48[236]],_0x43b0x2[_0x5b48[248]]()[_0x5b48[117]],_0x43b0x2[_0x5b48[248]]()[_0x5b48[119]]);if(null!= this[_0x5b48[2944]]){for(_0x43b0x9= 0;_0x43b0x9< this[_0x5b48[2944]][_0x5b48[67]];_0x43b0x9++){this[_0x5b48[2944]][_0x43b0x9][_0x5b48[515]]()};this[_0x5b48[2946]]= this[_0x5b48[2944]]= null};this[_0x5b48[2944]]= [];this[_0x5b48[2946]]= [];for(_0x43b0x9= 0;_0x43b0x9< this[_0x5b48[1531]][_0x5b48[67]];_0x43b0x9++){var _0x43b0xa=this[_0x5b48[1179]][_0x5b48[2290]](_0x43b0x2[_0x5b48[248]](),this[_0x5b48[1531]][_0x43b0x9]),_0x43b0x12=this[_0x5b48[2948]](_0x43b0x2[_0x5b48[248]](),this[_0x5b48[1531]][_0x43b0x9],_0x43b0xa),_0x43b0x13=_0x43b0x12[_0x5b48[390]],_0x43b0x12= new mxRectangle(_0x43b0xa[_0x5b48[235]]- _0x43b0x12[_0x5b48[117]]/ 2,_0x43b0xa[_0x5b48[236]]- _0x43b0x12[_0x5b48[119]]/ 2,_0x43b0x12[_0x5b48[117]],_0x43b0x12[_0x5b48[119]]),_0x43b0x12= new mxImageShape(_0x43b0x12,_0x43b0x13);_0x43b0x12[_0x5b48[507]]= this[_0x5b48[1179]][_0x5b48[507]]!= mxConstants[_0x5b48[508]]?mxConstants[_0x5b48[2334]]:mxConstants[_0x5b48[508]];_0x43b0x12[_0x5b48[1674]]= !1;_0x43b0x12[_0x5b48[176]](this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[1524]]());null!= _0x43b0x12[_0x5b48[252]][_0x5b48[328]]&& _0x43b0x12[_0x5b48[252]][_0x5b48[265]][_0x5b48[950]](_0x43b0x12[_0x5b48[252]],_0x43b0x12[_0x5b48[252]][_0x5b48[265]][_0x5b48[285]]);_0x43b0x13= mxUtils[_0x5b48[885]](this,function(){return null!= this[_0x5b48[2919]]?this[_0x5b48[2919]]:_0x43b0x2[_0x5b48[248]]()});_0x43b0x12[_0x5b48[258]]();mxEvent[_0x5b48[2733]](_0x43b0x12[_0x5b48[252]],this[_0x5b48[1179]],_0x43b0x13);this[_0x5b48[2947]][_0x5b48[99]](_0x43b0x12[_0x5b48[1562]]);this[_0x5b48[2944]][_0x5b48[207]](_0x43b0x12);this[_0x5b48[2946]][_0x5b48[207]](_0x43b0xa)};this[_0x5b48[2947]][_0x5b48[244]](_0x43b0x4)}else {if(null!= this[_0x5b48[2944]]){null!= this[_0x5b48[2945]]&& (this[_0x5b48[2945]][_0x5b48[515]](),this[_0x5b48[2945]]= null);for(_0x43b0x9= 0;_0x43b0x9< this[_0x5b48[2944]][_0x5b48[67]];_0x43b0x9++){this[_0x5b48[2944]][_0x43b0x9][_0x5b48[515]]()};this[_0x5b48[2946]]= this[_0x5b48[2944]]= null}}}};this[_0x5b48[987]]= this[_0x5b48[2920]]= null;if(null!= this[_0x5b48[2944]]&& null!= this[_0x5b48[1531]]&& (null== _0x43b0x2[_0x5b48[248]]()|| this[_0x5b48[2919]]== _0x43b0x2[_0x5b48[248]]())){for(_0x43b0x9= 0;_0x43b0x9< this[_0x5b48[2944]][_0x5b48[67]];_0x43b0x9++){if(mxUtils[_0x5b48[1825]](this[_0x5b48[2944]][_0x43b0x9][_0x5b48[1562]],_0x43b0x5)){this[_0x5b48[2920]]= this[_0x5b48[1531]][_0x43b0x9];this[_0x5b48[987]]= this[_0x5b48[2946]][_0x43b0x9];_0x43b0x4= this[_0x5b48[2944]][_0x43b0x9][_0x5b48[1562]][_0x5b48[238]]();_0x43b0x4[_0x5b48[244]](mxClient[_0x5b48[80]]?3:2);mxClient[_0x5b48[80]]&& (_0x43b0x4[_0x5b48[117]]-= 1,_0x43b0x4[_0x5b48[119]]-= 1);null== this[_0x5b48[2945]]?(_0x43b0x4= new mxRectangleShape(_0x43b0x4,null,this[_0x5b48[2943]],3),_0x43b0x4[_0x5b48[507]]= this[_0x5b48[1179]][_0x5b48[507]]== mxConstants[_0x5b48[508]]?mxConstants[_0x5b48[508]]:mxConstants[_0x5b48[1523]],_0x43b0x4[_0x5b48[176]](this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[1524]]()),this[_0x5b48[2945]]= _0x43b0x4,_0x43b0x13= mxUtils[_0x5b48[885]](this,function(){return null!= this[_0x5b48[2919]]?this[_0x5b48[2919]]:_0x43b0x2[_0x5b48[248]]()}),mxEvent[_0x5b48[2733]](_0x43b0x4[_0x5b48[252]],this[_0x5b48[1179]],_0x43b0x13)):(this[_0x5b48[2945]][_0x5b48[1562]]= _0x43b0x4,this[_0x5b48[2945]][_0x5b48[258]]());break}}};null== this[_0x5b48[2920]]&& null!= this[_0x5b48[2945]]&& (this[_0x5b48[2945]][_0x5b48[515]](),this[_0x5b48[2945]]= null)}};mxConstraintHandler[_0x5b48[202]][_0x5b48[515]]= function(){this[_0x5b48[862]]()};function mxRubberband(_0x43b0x2){null!= _0x43b0x2&& (this[_0x5b48[1179]]= _0x43b0x2,this[_0x5b48[1179]][_0x5b48[1133]](this),this[_0x5b48[2730]]= mxUtils[_0x5b48[885]](this,function(){this[_0x5b48[2950]]()}),this[_0x5b48[1179]][_0x5b48[169]](mxEvent.PAN,this[_0x5b48[2730]]),mxClient[_0x5b48[80]]&& mxEvent[_0x5b48[169]](window,_0x5b48[2428],mxUtils[_0x5b48[885]](this,function(){this[_0x5b48[515]]()})))}mxRubberband[_0x5b48[202]][_0x5b48[2951]]= 20;mxRubberband[_0x5b48[202]][_0x5b48[984]]= !0;mxRubberband[_0x5b48[202]][_0x5b48[485]]= null;mxRubberband[_0x5b48[202]][_0x5b48[2952]]= null;mxRubberband[_0x5b48[202]][_0x5b48[2953]]= 0;mxRubberband[_0x5b48[202]][_0x5b48[2954]]= 0;mxRubberband[_0x5b48[202]][_0x5b48[994]]= function(){return this[_0x5b48[984]]};mxRubberband[_0x5b48[202]][_0x5b48[995]]= function(_0x43b0x2){this[_0x5b48[984]]= _0x43b0x2};mxRubberband[_0x5b48[202]][_0x5b48[787]]= function(_0x43b0x2,_0x43b0x3){if(!_0x43b0x3[_0x5b48[721]]()&& this[_0x5b48[994]]() && this[_0x5b48[1179]][_0x5b48[994]]() && (this[_0x5b48[1179]][_0x5b48[2579]](_0x43b0x3[_0x5b48[727]]())|| null== _0x43b0x3[_0x5b48[248]]())){var _0x43b0x4=mxUtils[_0x5b48[445]](this[_0x5b48[1179]][_0x5b48[526]]),_0x43b0x5=mxUtils[_0x5b48[444]](this[_0x5b48[1179]][_0x5b48[526]]);_0x43b0x5[_0x5b48[235]]-= _0x43b0x4[_0x5b48[235]];_0x43b0x5[_0x5b48[236]]-= _0x43b0x4[_0x5b48[236]];this[_0x5b48[861]](_0x43b0x3[_0x5b48[730]]()+ _0x43b0x5[_0x5b48[235]],_0x43b0x3[_0x5b48[732]]()+ _0x43b0x5[_0x5b48[236]]);if(mxClient[_0x5b48[133]]&& !mxClient[_0x5b48[75]]&& !mxClient[_0x5b48[76]]){var _0x43b0x9=this[_0x5b48[1179]][_0x5b48[526]],_0x43b0xa=function(_0x43b0x2){_0x43b0x2= new mxMouseEvent(_0x43b0x2);var _0x43b0x3=mxUtils[_0x5b48[2196]](_0x43b0x9,_0x43b0x2[_0x5b48[730]](),_0x43b0x2[_0x5b48[732]]());_0x43b0x2[_0x5b48[725]]= _0x43b0x3[_0x5b48[235]];_0x43b0x2[_0x5b48[726]]= _0x43b0x3[_0x5b48[236]];return _0x43b0x2};this[_0x5b48[2955]]= mxUtils[_0x5b48[885]](this,function(_0x43b0x2){this[_0x5b48[788]](this[_0x5b48[1179]],_0x43b0xa(_0x43b0x2))});this[_0x5b48[981]]= mxUtils[_0x5b48[885]](this,function(_0x43b0x2){this[_0x5b48[789]](this[_0x5b48[1179]],_0x43b0xa(_0x43b0x2))});mxEvent[_0x5b48[169]](document,_0x5b48[752],this[_0x5b48[2955]]);mxEvent[_0x5b48[169]](document,_0x5b48[753],this[_0x5b48[981]])};_0x43b0x3[_0x5b48[722]](!1)}};mxRubberband[_0x5b48[202]][_0x5b48[861]]= function(_0x43b0x2,_0x43b0x3){this[_0x5b48[2823]]= new mxPoint(_0x43b0x2,_0x43b0x3)};mxRubberband[_0x5b48[202]][_0x5b48[788]]= function(_0x43b0x2,_0x43b0x3){if(!_0x43b0x3[_0x5b48[721]]()&& null!= this[_0x5b48[2823]]){var _0x43b0x4=mxUtils[_0x5b48[444]](this[_0x5b48[1179]][_0x5b48[526]]),_0x43b0x5=mxUtils[_0x5b48[445]](this[_0x5b48[1179]][_0x5b48[526]]);_0x43b0x4[_0x5b48[235]]-= _0x43b0x5[_0x5b48[235]];_0x43b0x4[_0x5b48[236]]-= _0x43b0x5[_0x5b48[236]];var _0x43b0x5=_0x43b0x3[_0x5b48[730]]()+ _0x43b0x4[_0x5b48[235]],_0x43b0x4=_0x43b0x3[_0x5b48[732]]()+ _0x43b0x4[_0x5b48[236]],_0x43b0x9=this[_0x5b48[2823]][_0x5b48[235]]- _0x43b0x5,_0x43b0xa=this[_0x5b48[2823]][_0x5b48[236]]- _0x43b0x4,_0x43b0x12=this[_0x5b48[1179]][_0x5b48[2353]];if(null!= this[_0x5b48[485]]|| Math[_0x5b48[425]](_0x43b0x9)> _0x43b0x12|| Math[_0x5b48[425]](_0x43b0xa)> _0x43b0x12){null== this[_0x5b48[485]]&& (this[_0x5b48[485]]= this[_0x5b48[2156]]()),mxUtils[_0x5b48[2440]](),this[_0x5b48[2729]](_0x43b0x5,_0x43b0x4),_0x43b0x3[_0x5b48[722]]()}}};mxRubberband[_0x5b48[202]][_0x5b48[2156]]= function(){null== this[_0x5b48[2952]]&& (this[_0x5b48[2952]]= document[_0x5b48[55]](_0x5b48[485]),this[_0x5b48[2952]][_0x5b48[926]]= _0x5b48[2956],mxUtils[_0x5b48[254]](this[_0x5b48[2952]],this[_0x5b48[2951]]));this[_0x5b48[1179]][_0x5b48[526]][_0x5b48[62]](this[_0x5b48[2952]]);return this[_0x5b48[2952]]};mxRubberband[_0x5b48[202]][_0x5b48[789]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=null!= this[_0x5b48[485]];this[_0x5b48[862]]();_0x43b0x4&& (_0x43b0x4= new mxRectangle(this[_0x5b48[235]],this[_0x5b48[236]],this[_0x5b48[117]],this[_0x5b48[119]]),this[_0x5b48[1179]][_0x5b48[2698]](_0x43b0x4,_0x43b0x3[_0x5b48[727]]()),_0x43b0x3[_0x5b48[722]]())};mxRubberband[_0x5b48[202]][_0x5b48[862]]= function(){null!= this[_0x5b48[485]]&& this[_0x5b48[485]][_0x5b48[265]][_0x5b48[266]](this[_0x5b48[485]]);null!= this[_0x5b48[2955]]&& (mxEvent[_0x5b48[745]](document,_0x5b48[752],this[_0x5b48[2955]]),this[_0x5b48[2955]]= null);null!= this[_0x5b48[981]]&& (mxEvent[_0x5b48[745]](document,_0x5b48[753],this[_0x5b48[981]]),this[_0x5b48[981]]= null);this[_0x5b48[2954]]= this[_0x5b48[2953]]= 0;this[_0x5b48[485]]= this[_0x5b48[2823]]= null};mxRubberband[_0x5b48[202]][_0x5b48[2729]]= function(_0x43b0x2,_0x43b0x3){this[_0x5b48[2953]]= _0x43b0x2;this[_0x5b48[2954]]= _0x43b0x3;this[_0x5b48[2950]]()};mxRubberband[_0x5b48[202]][_0x5b48[2950]]= function(){if(null!= this[_0x5b48[485]]){var _0x43b0x2=this[_0x5b48[2953]]- this[_0x5b48[1179]][_0x5b48[1136]],_0x43b0x3=this[_0x5b48[2954]]- this[_0x5b48[1179]][_0x5b48[1137]];this[_0x5b48[235]]= Math[_0x5b48[243]](this[_0x5b48[2823]][_0x5b48[235]],_0x43b0x2);this[_0x5b48[236]]= Math[_0x5b48[243]](this[_0x5b48[2823]][_0x5b48[236]],_0x43b0x3);this[_0x5b48[117]]= Math[_0x5b48[160]](this[_0x5b48[2823]][_0x5b48[235]],_0x43b0x2)- this[_0x5b48[235]];this[_0x5b48[119]]= Math[_0x5b48[160]](this[_0x5b48[2823]][_0x5b48[236]],_0x43b0x3)- this[_0x5b48[236]];_0x43b0x2= mxClient[_0x5b48[47]]?this[_0x5b48[1179]][_0x5b48[1137]]:0;this[_0x5b48[485]][_0x5b48[124]][_0x5b48[361]]= this[_0x5b48[235]]+ (mxClient[_0x5b48[47]]?this[_0x5b48[1179]][_0x5b48[1136]]:0)+ _0x5b48[168];this[_0x5b48[485]][_0x5b48[124]][_0x5b48[125]]= this[_0x5b48[236]]+ _0x43b0x2+ _0x5b48[168];this[_0x5b48[485]][_0x5b48[124]][_0x5b48[117]]= Math[_0x5b48[160]](1,this[_0x5b48[117]])+ _0x5b48[168];this[_0x5b48[485]][_0x5b48[124]][_0x5b48[119]]= Math[_0x5b48[160]](1,this[_0x5b48[119]])+ _0x5b48[168]}};mxRubberband[_0x5b48[202]][_0x5b48[515]]= function(){this[_0x5b48[2717]]|| (this[_0x5b48[2717]]= !0,this[_0x5b48[1179]][_0x5b48[1148]](this),this[_0x5b48[1179]][_0x5b48[745]](this[_0x5b48[2730]]),this[_0x5b48[862]](),null!= this[_0x5b48[2952]]&& (this[_0x5b48[2952]]= null))};function mxVertexHandler(_0x43b0x2){null!= _0x43b0x2&& (this[_0x5b48[724]]= _0x43b0x2,this[_0x5b48[176]]())}mxVertexHandler[_0x5b48[202]][_0x5b48[1179]]= null;mxVertexHandler[_0x5b48[202]][_0x5b48[724]]= null;mxVertexHandler[_0x5b48[202]][_0x5b48[2957]]= !1;mxVertexHandler[_0x5b48[202]][_0x5b48[1983]]= null;mxVertexHandler[_0x5b48[202]][_0x5b48[2958]]= !0;mxVertexHandler[_0x5b48[202]][_0x5b48[2959]]= null;mxVertexHandler[_0x5b48[202]][_0x5b48[2353]]= 0;mxVertexHandler[_0x5b48[202]][_0x5b48[2809]]= !1;mxVertexHandler[_0x5b48[202]][_0x5b48[2960]]= !0;mxVertexHandler[_0x5b48[202]][_0x5b48[176]]= function(){this[_0x5b48[1179]]= this[_0x5b48[724]][_0x5b48[441]][_0x5b48[1179]];this[_0x5b48[2961]]= this[_0x5b48[2962]](this[_0x5b48[724]]);this[_0x5b48[1562]]= new mxRectangle(this[_0x5b48[2961]][_0x5b48[235]],this[_0x5b48[2961]][_0x5b48[236]],this[_0x5b48[2961]][_0x5b48[117]],this[_0x5b48[2961]][_0x5b48[119]]);this[_0x5b48[2732]]= this[_0x5b48[2963]](this[_0x5b48[1562]]);this[_0x5b48[2732]][_0x5b48[507]]= this[_0x5b48[1179]][_0x5b48[507]]!= mxConstants[_0x5b48[508]]?mxConstants[_0x5b48[1523]]:mxConstants[_0x5b48[508]];this[_0x5b48[2732]][_0x5b48[1229]]= !1;this[_0x5b48[2732]][_0x5b48[176]](this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[1524]]());this[_0x5b48[1179]][_0x5b48[1712]](this[_0x5b48[724]][_0x5b48[246]])&& (this[_0x5b48[2732]][_0x5b48[252]][_0x5b48[124]][_0x5b48[270]]= mxConstants[_0x5b48[2832]]);mxEvent[_0x5b48[2733]](this[_0x5b48[2732]][_0x5b48[252]],this[_0x5b48[1179]],this[_0x5b48[724]]);if(0>= mxGraphHandler[_0x5b48[202]][_0x5b48[2795]]|| this[_0x5b48[1179]][_0x5b48[2694]]()< mxGraphHandler[_0x5b48[202]][_0x5b48[2795]]){var _0x43b0x2=this[_0x5b48[1179]][_0x5b48[2657]](this[_0x5b48[724]][_0x5b48[246]]);this[_0x5b48[2964]]= [];if(_0x43b0x2|| this[_0x5b48[1179]][_0x5b48[2628]](this[_0x5b48[724]][_0x5b48[246]])&& 2<= this[_0x5b48[724]][_0x5b48[117]]&& 2<= this[_0x5b48[724]][_0x5b48[119]]){var _0x43b0x3=0;_0x43b0x2&& (this[_0x5b48[2957]]|| (this[_0x5b48[2964]][_0x5b48[207]](this[_0x5b48[2735]](_0x5b48[936],_0x43b0x3++)),this[_0x5b48[2964]][_0x5b48[207]](this[_0x5b48[2735]](_0x5b48[2965],_0x43b0x3++)),this[_0x5b48[2964]][_0x5b48[207]](this[_0x5b48[2735]](_0x5b48[2966],_0x43b0x3++)),this[_0x5b48[2964]][_0x5b48[207]](this[_0x5b48[2735]](_0x5b48[2967],_0x43b0x3++)),this[_0x5b48[2964]][_0x5b48[207]](this[_0x5b48[2735]](_0x5b48[2968],_0x43b0x3++)),this[_0x5b48[2964]][_0x5b48[207]](this[_0x5b48[2735]](_0x5b48[2969],_0x43b0x3++)),this[_0x5b48[2964]][_0x5b48[207]](this[_0x5b48[2735]](_0x5b48[2970],_0x43b0x3++))),this[_0x5b48[2964]][_0x5b48[207]](this[_0x5b48[2735]](_0x5b48[2971],_0x43b0x3++)));_0x43b0x2= this[_0x5b48[1179]][_0x5b48[251]][_0x5b48[1721]](this[_0x5b48[724]][_0x5b48[246]]);null!= _0x43b0x2&& (!_0x43b0x2[_0x5b48[1500]]&& !this[_0x5b48[1179]][_0x5b48[1730]](this[_0x5b48[724]][_0x5b48[246]]) && this[_0x5b48[1179]][_0x5b48[2628]](this[_0x5b48[724]][_0x5b48[246]]))&& (this[_0x5b48[2972]]= this[_0x5b48[2735]](mxConstants.CURSOR_LABEL_HANDLE,mxEvent.LABEL_HANDLE,mxConstants.LABEL_HANDLE_SIZE,mxConstants.LABEL_HANDLE_FILLCOLOR),this[_0x5b48[2964]][_0x5b48[207]](this[_0x5b48[2972]]))}else {this[_0x5b48[1179]][_0x5b48[1712]](this[_0x5b48[724]][_0x5b48[246]])&& (!this[_0x5b48[1179]][_0x5b48[2657]](this[_0x5b48[724]][_0x5b48[246]])&& 2> this[_0x5b48[724]][_0x5b48[117]] && 2> this[_0x5b48[724]][_0x5b48[119]])&& (this[_0x5b48[2972]]= this[_0x5b48[2735]](mxConstants.CURSOR_MOVABLE_VERTEX,null,null,mxConstants.LABEL_HANDLE_FILLCOLOR),this[_0x5b48[2964]][_0x5b48[207]](this[_0x5b48[2972]]))}};if(this[_0x5b48[2809]]&& (0>= mxGraphHandler[_0x5b48[202]][_0x5b48[2795]]|| this[_0x5b48[1179]][_0x5b48[2694]]()< mxGraphHandler[_0x5b48[202]][_0x5b48[2795]])){this[_0x5b48[2973]]= this[_0x5b48[2735]](_0x5b48[356],mxEvent.ROTATION_HANDLE,mxConstants[_0x5b48[2974]]+ 3,mxConstants.HANDLE_FILLCOLOR),this[_0x5b48[2964]][_0x5b48[207]](this[_0x5b48[2973]])};this[_0x5b48[258]]()};mxVertexHandler[_0x5b48[202]][_0x5b48[2962]]= function(_0x43b0x2){return new mxRectangle(Math[_0x5b48[488]](_0x43b0x2[_0x5b48[235]]),Math[_0x5b48[488]](_0x43b0x2[_0x5b48[236]]),Math[_0x5b48[488]](_0x43b0x2[_0x5b48[117]]),Math[_0x5b48[488]](_0x43b0x2[_0x5b48[119]]))};mxVertexHandler[_0x5b48[202]][_0x5b48[2963]]= function(_0x43b0x2){_0x43b0x2= new mxRectangleShape(_0x43b0x2,null,this[_0x5b48[2975]]());_0x43b0x2[_0x5b48[1307]]= this[_0x5b48[2976]]();_0x43b0x2[_0x5b48[1522]]= this[_0x5b48[2977]]();return _0x43b0x2};mxVertexHandler[_0x5b48[202]][_0x5b48[2975]]= function(){return mxConstants[_0x5b48[2978]]};mxVertexHandler[_0x5b48[202]][_0x5b48[2976]]= function(){return mxConstants[_0x5b48[2979]]};mxVertexHandler[_0x5b48[202]][_0x5b48[2977]]= function(){return mxConstants[_0x5b48[2980]]};mxVertexHandler[_0x5b48[202]][_0x5b48[2735]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){_0x43b0x4= _0x43b0x4|| mxConstants[_0x5b48[2974]];_0x43b0x4= new mxRectangle(0,0,_0x43b0x4,_0x43b0x4);_0x43b0x5= this[_0x5b48[2981]](_0x43b0x4,_0x43b0x3,_0x43b0x5);_0x43b0x5[_0x5b48[1567]]()&& null!= this[_0x5b48[724]][_0x5b48[963]]&& this[_0x5b48[724]][_0x5b48[963]][_0x5b48[252]][_0x5b48[265]]== this[_0x5b48[1179]][_0x5b48[526]]?(_0x43b0x5[_0x5b48[1562]][_0x5b48[119]]-= 1,_0x43b0x5[_0x5b48[1562]][_0x5b48[117]]-= 1,_0x43b0x5[_0x5b48[507]]= mxConstants[_0x5b48[1656]],_0x43b0x5[_0x5b48[176]](this[_0x5b48[1179]][_0x5b48[526]])):(_0x43b0x5[_0x5b48[507]]= this[_0x5b48[1179]][_0x5b48[507]]!= mxConstants[_0x5b48[508]]?mxConstants[_0x5b48[2334]]:mxConstants[_0x5b48[508]],_0x43b0x5[_0x5b48[176]](this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[1524]]()));mxEvent[_0x5b48[2733]](_0x43b0x5[_0x5b48[252]],this[_0x5b48[1179]],this[_0x5b48[724]]);this[_0x5b48[1179]][_0x5b48[994]]()&& (_0x43b0x5[_0x5b48[252]][_0x5b48[124]][_0x5b48[270]]= _0x43b0x2);this[_0x5b48[2982]](_0x43b0x3)|| (_0x43b0x5[_0x5b48[252]][_0x5b48[124]][_0x5b48[187]]= _0x5b48[188]);return _0x43b0x5};mxVertexHandler[_0x5b48[202]][_0x5b48[2982]]= function(_0x43b0x2){return !0};mxVertexHandler[_0x5b48[202]][_0x5b48[2981]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){return null!= this[_0x5b48[2959]]?(_0x43b0x2[_0x5b48[117]]= this[_0x5b48[2959]][_0x5b48[117]],_0x43b0x2[_0x5b48[119]]= this[_0x5b48[2959]][_0x5b48[119]], new mxImageShape(_0x43b0x2,this[_0x5b48[2959]][_0x5b48[390]])):_0x43b0x3== mxEvent[_0x5b48[2983]]? new mxEllipse(_0x43b0x2,_0x43b0x4|| mxConstants[_0x5b48[2984]],mxConstants.HANDLE_STROKECOLOR): new mxRectangleShape(_0x43b0x2,_0x43b0x4|| mxConstants[_0x5b48[2984]],mxConstants.HANDLE_STROKECOLOR)};mxVertexHandler[_0x5b48[202]][_0x5b48[2985]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){null!= _0x43b0x2&& (_0x43b0x2[_0x5b48[1562]][_0x5b48[235]]= Math[_0x5b48[488]](_0x43b0x3- _0x43b0x2[_0x5b48[1562]][_0x5b48[117]]/ 2),_0x43b0x2[_0x5b48[1562]][_0x5b48[236]]= Math[_0x5b48[488]](_0x43b0x4- _0x43b0x2[_0x5b48[1562]][_0x5b48[119]]/ 2),_0x43b0x2[_0x5b48[258]]())};mxVertexHandler[_0x5b48[202]][_0x5b48[2986]]= function(_0x43b0x2){if(_0x43b0x2[_0x5b48[729]](this[_0x5b48[2973]])){return mxEvent[_0x5b48[2983]]};if(_0x43b0x2[_0x5b48[729]](this[_0x5b48[2972]])){return mxEvent[_0x5b48[2987]]};if(null!= this[_0x5b48[2964]]){for(var _0x43b0x3=this[_0x5b48[2353]],_0x43b0x3=this[_0x5b48[2958]]&& (mxClient[_0x5b48[80]]|| 0< _0x43b0x3)? new mxRectangle(_0x43b0x2[_0x5b48[734]]()- _0x43b0x3,_0x43b0x2[_0x5b48[735]]()- _0x43b0x3,2* _0x43b0x3,2* _0x43b0x3):null,_0x43b0x4=0;_0x43b0x4< this[_0x5b48[2964]][_0x5b48[67]];_0x43b0x4++){if(_0x43b0x2[_0x5b48[729]](this[_0x5b48[2964]][_0x43b0x4])|| null!= _0x43b0x3&& mxUtils[_0x5b48[1825]](this[_0x5b48[2964]][_0x43b0x4][_0x5b48[1562]],_0x43b0x3)){return _0x43b0x4}}};return null};mxVertexHandler[_0x5b48[202]][_0x5b48[787]]= function(_0x43b0x2,_0x43b0x3){if(!_0x43b0x3[_0x5b48[721]]()&& this[_0x5b48[1179]][_0x5b48[994]]() && !this[_0x5b48[1179]][_0x5b48[2579]](_0x43b0x3[_0x5b48[727]]()) && (0< this[_0x5b48[2353]]|| _0x43b0x3[_0x5b48[248]]()== this[_0x5b48[724]])){var _0x43b0x4=this[_0x5b48[2986]](_0x43b0x3);null!= _0x43b0x4&& (this[_0x5b48[861]](_0x43b0x3[_0x5b48[730]](),_0x43b0x3[_0x5b48[732]](),_0x43b0x4),_0x43b0x3[_0x5b48[722]]())}};mxVertexHandler[_0x5b48[202]][_0x5b48[861]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){_0x43b0x2= mxUtils[_0x5b48[2196]](this[_0x5b48[1179]][_0x5b48[526]],_0x43b0x2,_0x43b0x3);this[_0x5b48[2739]]= _0x43b0x2[_0x5b48[235]];this[_0x5b48[2740]]= _0x43b0x2[_0x5b48[236]];this[_0x5b48[1983]]= _0x43b0x4;this[_0x5b48[2732]][_0x5b48[252]][_0x5b48[124]][_0x5b48[495]]= _0x43b0x4== mxEvent[_0x5b48[2983]]?_0x5b48[497]:_0x5b48[130];this[_0x5b48[2988]]= this[_0x5b48[2963]](this[_0x5b48[1562]]);!(mxClient[_0x5b48[48]]&& 0!= Number(this[_0x5b48[724]][_0x5b48[124]][mxConstants[_0x5b48[2278]]]|| _0x5b48[468]))&& null!= this[_0x5b48[724]][_0x5b48[963]] && this[_0x5b48[724]][_0x5b48[963]][_0x5b48[252]][_0x5b48[265]]== this[_0x5b48[1179]][_0x5b48[526]]?(this[_0x5b48[2988]][_0x5b48[507]]= mxConstants[_0x5b48[1656]],this[_0x5b48[2988]][_0x5b48[176]](this[_0x5b48[1179]][_0x5b48[526]])):(this[_0x5b48[2988]][_0x5b48[507]]= this[_0x5b48[1179]][_0x5b48[507]]!= mxConstants[_0x5b48[508]]?mxConstants[_0x5b48[1523]]:mxConstants[_0x5b48[508]],this[_0x5b48[2988]][_0x5b48[176]](this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[1524]]()))};mxVertexHandler[_0x5b48[202]][_0x5b48[788]]= function(_0x43b0x2,_0x43b0x3){if(!_0x43b0x3[_0x5b48[721]]()&& null!= this[_0x5b48[1983]]){var _0x43b0x4= new mxPoint(_0x43b0x3[_0x5b48[734]](),_0x43b0x3[_0x5b48[735]]()),_0x43b0x5=this[_0x5b48[1179]][_0x5b48[1018]](_0x43b0x3[_0x5b48[727]]()),_0x43b0x9=this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[255]];if(this[_0x5b48[1983]]== mxEvent[_0x5b48[2987]]){_0x43b0x5&& (_0x43b0x4[_0x5b48[235]]= this[_0x5b48[1179]][_0x5b48[1021]](_0x43b0x4[_0x5b48[235]]/ _0x43b0x9)* _0x43b0x9,_0x43b0x4[_0x5b48[236]]= this[_0x5b48[1179]][_0x5b48[1021]](_0x43b0x4[_0x5b48[236]]/ _0x43b0x9)* _0x43b0x9),this[_0x5b48[2985]](this[_0x5b48[2964]][this[_0x5b48[2964]][_0x5b48[67]]- 1],_0x43b0x4[_0x5b48[235]],_0x43b0x4[_0x5b48[236]])}else {if(this[_0x5b48[1983]]== mxEvent[_0x5b48[2983]]){var _0x43b0xa=this[_0x5b48[724]][_0x5b48[235]]+ this[_0x5b48[724]][_0x5b48[117]]/ 2- _0x43b0x4[_0x5b48[235]],_0x43b0x12=this[_0x5b48[724]][_0x5b48[236]]+ this[_0x5b48[724]][_0x5b48[119]]/ 2- _0x43b0x4[_0x5b48[236]];this[_0x5b48[2989]]= 0!= _0x43b0xa?180* Math[_0x5b48[2990]](_0x43b0x12/ _0x43b0xa)/ Math[_0x5b48[424]]+ 90:0> _0x43b0x12?180:0;0< _0x43b0xa&& (this[_0x5b48[2989]]-= 180);this[_0x5b48[2960]]&& (_0x43b0xa= _0x43b0x4[_0x5b48[235]]- this[_0x5b48[724]][_0x5b48[241]](),_0x43b0x12= _0x43b0x4[_0x5b48[236]]- this[_0x5b48[724]][_0x5b48[242]](),_0x43b0xa= Math[_0x5b48[425]](Math[_0x5b48[428]](_0x43b0xa* _0x43b0xa+ _0x43b0x12* _0x43b0x12)- this[_0x5b48[724]][_0x5b48[119]]/ 2- 20),_0x43b0xa= Math[_0x5b48[160]](1,5* Math[_0x5b48[243]](3,Math[_0x5b48[160]](0,Math[_0x5b48[488]](80/ Math[_0x5b48[425]](_0x43b0xa))))),this[_0x5b48[2989]]= Math[_0x5b48[488]](this[_0x5b48[2989]]/ _0x43b0xa)* _0x43b0xa);this[_0x5b48[2732]][_0x5b48[603]]= this[_0x5b48[2989]];this[_0x5b48[2732]][_0x5b48[258]]()}else {var _0x43b0x13=mxUtils[_0x5b48[431]](this[_0x5b48[724]][_0x5b48[124]][mxConstants[_0x5b48[2278]]]|| _0x5b48[468]),_0x43b0x14=Math[_0x5b48[426]](-_0x43b0x13),_0x43b0x15=Math[_0x5b48[427]](-_0x43b0x13),_0x43b0x16= new mxPoint(this[_0x5b48[724]][_0x5b48[241]](),this[_0x5b48[724]][_0x5b48[242]]()),_0x43b0xa=_0x43b0x4[_0x5b48[235]]- this[_0x5b48[2739]],_0x43b0x12=_0x43b0x4[_0x5b48[236]]- this[_0x5b48[2740]],_0x43b0x4=this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[513]],_0x43b0x17=_0x43b0x15* _0x43b0xa+ _0x43b0x14* _0x43b0x12,_0x43b0xa=_0x43b0x14* _0x43b0xa- _0x43b0x15* _0x43b0x12;this[_0x5b48[1562]]= this[_0x5b48[2991]](this[_0x5b48[2961]],_0x43b0xa,_0x43b0x17,this[_0x5b48[1983]],_0x43b0x5,_0x43b0x9,_0x43b0x4);_0x43b0x14= Math[_0x5b48[426]](_0x43b0x13);_0x43b0x15= Math[_0x5b48[427]](_0x43b0x13);_0x43b0x12= new mxPoint(this[_0x5b48[1562]][_0x5b48[241]](),this[_0x5b48[1562]][_0x5b48[242]]());_0x43b0xa= _0x43b0x12[_0x5b48[235]]- _0x43b0x16[_0x5b48[235]];_0x43b0x12= _0x43b0x12[_0x5b48[236]]- _0x43b0x16[_0x5b48[236]];_0x43b0x16= _0x43b0x15* _0x43b0xa+ _0x43b0x14* _0x43b0x12- _0x43b0x12;this[_0x5b48[1562]][_0x5b48[235]]+= _0x43b0x14* _0x43b0xa- _0x43b0x15* _0x43b0x12- _0x43b0xa;this[_0x5b48[1562]][_0x5b48[236]]+= _0x43b0x16;this[_0x5b48[2932]]()}};_0x43b0x3[_0x5b48[722]]()}else {null!= this[_0x5b48[2986]](_0x43b0x3)&& _0x43b0x3[_0x5b48[722]](!1)}};mxVertexHandler[_0x5b48[202]][_0x5b48[789]]= function(_0x43b0x2,_0x43b0x3){if(!_0x43b0x3[_0x5b48[721]]()&& null!= this[_0x5b48[1983]] && null!= this[_0x5b48[724]]){var _0x43b0x4= new mxPoint(_0x43b0x3[_0x5b48[734]](),_0x43b0x3[_0x5b48[735]]());this[_0x5b48[1179]][_0x5b48[502]]()[_0x5b48[473]]();try{if(this[_0x5b48[1983]]== mxEvent[_0x5b48[2983]]){null!= this[_0x5b48[2989]]&& this[_0x5b48[2992]](this[_0x5b48[724]][_0x5b48[246]],this[_0x5b48[2989]]- (this[_0x5b48[724]][_0x5b48[124]][mxConstants[_0x5b48[2278]]]|| 0))}else {var _0x43b0x5=this[_0x5b48[1179]][_0x5b48[1018]](_0x43b0x3[_0x5b48[727]]()),_0x43b0x9=mxUtils[_0x5b48[431]](this[_0x5b48[724]][_0x5b48[124]][mxConstants[_0x5b48[2278]]]|| _0x5b48[468]),_0x43b0xa=Math[_0x5b48[426]](-_0x43b0x9),_0x43b0x12=Math[_0x5b48[427]](-_0x43b0x9),_0x43b0x13=_0x43b0x4[_0x5b48[235]]- this[_0x5b48[2739]],_0x43b0x14=_0x43b0x4[_0x5b48[236]]- this[_0x5b48[2740]],_0x43b0x4=_0x43b0x12* _0x43b0x13+ _0x43b0xa* _0x43b0x14,_0x43b0x13=_0x43b0xa* _0x43b0x13- _0x43b0x12* _0x43b0x14,_0x43b0x14=_0x43b0x4,_0x43b0x15=this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[255]];this[_0x5b48[2526]](this[_0x5b48[724]][_0x5b48[246]],_0x43b0x13/ _0x43b0x15,_0x43b0x14/ _0x43b0x15,this[_0x5b48[1983]],_0x43b0x5)}}finally{this[_0x5b48[1179]][_0x5b48[502]]()[_0x5b48[476]]()};this[_0x5b48[862]]();_0x43b0x3[_0x5b48[722]]()}};mxVertexHandler[_0x5b48[202]][_0x5b48[2992]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=this[_0x5b48[1179]][_0x5b48[502]]();if(_0x43b0x4[_0x5b48[1193]](_0x43b0x2)){var _0x43b0x5=_0x43b0x2== this[_0x5b48[724]]?this[_0x5b48[724]]:this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[248]](_0x43b0x2);null!= _0x43b0x5&& this[_0x5b48[1179]][_0x5b48[1717]](mxConstants.STYLE_ROTATION,(_0x43b0x5[_0x5b48[124]][mxConstants[_0x5b48[2278]]]|| 0)+ _0x43b0x3,[_0x43b0x2]);if(this[_0x5b48[724]][_0x5b48[246]]!= _0x43b0x2&& (_0x43b0x5= this[_0x5b48[1179]][_0x5b48[1198]](_0x43b0x2),null!= _0x43b0x5&& !_0x43b0x5[_0x5b48[1500]])){if(0!= _0x43b0x3){var _0x43b0x9=this[_0x5b48[1179]][_0x5b48[502]]()[_0x5b48[1197]](_0x43b0x2),_0x43b0xa=this[_0x5b48[1179]][_0x5b48[1198]](_0x43b0x9);if(!_0x43b0x5[_0x5b48[1500]]&& null!= _0x43b0xa){var _0x43b0x12=mxUtils[_0x5b48[431]](_0x43b0x3),_0x43b0x9=Math[_0x5b48[426]](_0x43b0x12),_0x43b0x12=Math[_0x5b48[427]](_0x43b0x12),_0x43b0x13= new mxPoint(_0x43b0x5[_0x5b48[241]](),_0x43b0x5[_0x5b48[242]]()),_0x43b0xa= new mxPoint(_0x43b0xa[_0x5b48[117]]/ 2,_0x43b0xa[_0x5b48[119]]/ 2),_0x43b0x9=mxUtils[_0x5b48[432]](_0x43b0x13,_0x43b0x9,_0x43b0x12,_0x43b0xa),_0x43b0x5=_0x43b0x5[_0x5b48[238]]();_0x43b0x5[_0x5b48[235]]= _0x43b0x9[_0x5b48[235]]- _0x43b0x5[_0x5b48[117]]/ 2;_0x43b0x5[_0x5b48[236]]= _0x43b0x9[_0x5b48[236]]- _0x43b0x5[_0x5b48[119]]/ 2;_0x43b0x4[_0x5b48[1724]](_0x43b0x2,_0x43b0x5)}}else {_0x43b0x5= _0x43b0x5[_0x5b48[238]](),_0x43b0x5[_0x5b48[235]]+= dx,_0x43b0x5[_0x5b48[236]]+= dy,_0x43b0x4[_0x5b48[1724]](_0x43b0x2,_0x43b0x5)}};_0x43b0x5= _0x43b0x4[_0x5b48[262]](_0x43b0x2);for(_0x43b0x9= 0;_0x43b0x9< _0x43b0x5;_0x43b0x9++){this[_0x5b48[2992]](_0x43b0x4[_0x5b48[263]](_0x43b0x2,_0x43b0x9),_0x43b0x3)}}};mxVertexHandler[_0x5b48[202]][_0x5b48[862]]= function(){this[_0x5b48[1983]]= this[_0x5b48[2989]]= null;null!= this[_0x5b48[2988]]&& (this[_0x5b48[2988]][_0x5b48[515]](),this[_0x5b48[2988]]= null);null!= this[_0x5b48[2732]]&& (this[_0x5b48[2732]][_0x5b48[252]][_0x5b48[124]][_0x5b48[495]]= _0x5b48[497],this[_0x5b48[2961]]= this[_0x5b48[2962]](this[_0x5b48[724]]),this[_0x5b48[1562]]= new mxRectangle(this[_0x5b48[2961]][_0x5b48[235]],this[_0x5b48[2961]][_0x5b48[236]],this[_0x5b48[2961]][_0x5b48[117]],this[_0x5b48[2961]][_0x5b48[119]]),this[_0x5b48[2932]]())};mxVertexHandler[_0x5b48[202]][_0x5b48[2526]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){var _0x43b0xa=this[_0x5b48[1179]][_0x5b48[251]][_0x5b48[1721]](_0x43b0x2);if(null!= _0x43b0xa){if(_0x43b0x5== mxEvent[_0x5b48[2987]]){_0x43b0x5= this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[255]],_0x43b0x3= (this[_0x5b48[2972]][_0x5b48[1562]][_0x5b48[241]]()- this[_0x5b48[2739]])/ _0x43b0x5,_0x43b0x4= (this[_0x5b48[2972]][_0x5b48[1562]][_0x5b48[242]]()- this[_0x5b48[2740]])/ _0x43b0x5,_0x43b0xa= _0x43b0xa[_0x5b48[238]](),null== _0x43b0xa[_0x5b48[1368]]?_0x43b0xa[_0x5b48[1368]]= new mxPoint(_0x43b0x3,_0x43b0x4):(_0x43b0xa[_0x5b48[1368]][_0x5b48[235]]+= _0x43b0x3,_0x43b0xa[_0x5b48[1368]][_0x5b48[236]]+= _0x43b0x4),this[_0x5b48[1179]][_0x5b48[251]][_0x5b48[1724]](_0x43b0x2,_0x43b0xa)}else {_0x43b0x5= this[_0x5b48[2991]](_0x43b0xa,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,1, new mxPoint(0,0));var _0x43b0x12=mxUtils[_0x5b48[431]](this[_0x5b48[724]][_0x5b48[124]][mxConstants[_0x5b48[2278]]]|| _0x5b48[468]);if(0!= _0x43b0x12){_0x43b0x3= _0x43b0x5[_0x5b48[241]]()- _0x43b0xa[_0x5b48[241]]();_0x43b0x4= _0x43b0x5[_0x5b48[242]]()- _0x43b0xa[_0x5b48[242]]();_0x43b0x9= Math[_0x5b48[426]](_0x43b0x12);var _0x43b0x13=Math[_0x5b48[427]](_0x43b0x12),_0x43b0x12=_0x43b0x9* _0x43b0x3- _0x43b0x13* _0x43b0x4- _0x43b0x3;_0x43b0x3= _0x43b0x13* _0x43b0x3+ _0x43b0x9* _0x43b0x4- _0x43b0x4;_0x43b0x4= _0x43b0x5[_0x5b48[235]]- _0x43b0xa[_0x5b48[235]];var _0x43b0x14=_0x43b0x5[_0x5b48[236]]- _0x43b0xa[_0x5b48[236]],_0x43b0x15=_0x43b0x9* _0x43b0x4- _0x43b0x13* _0x43b0x14;_0x43b0x9= _0x43b0x13* _0x43b0x4+ _0x43b0x9* _0x43b0x14;_0x43b0x5[_0x5b48[235]]+= _0x43b0x12;_0x43b0x5[_0x5b48[236]]+= _0x43b0x3;if(!this[_0x5b48[1179]][_0x5b48[1742]](_0x43b0x2)&& (0!= _0x43b0x12|| 0!= _0x43b0x3)){_0x43b0x4= _0x43b0xa[_0x5b48[235]]- _0x43b0x5[_0x5b48[235]]+ _0x43b0x15,_0x43b0x14= _0x43b0xa[_0x5b48[236]]- _0x43b0x5[_0x5b48[236]]+ _0x43b0x9,this[_0x5b48[2993]](_0x43b0x2,_0x43b0x4,_0x43b0x14)}};this[_0x5b48[1179]][_0x5b48[2526]](_0x43b0x2,_0x43b0x5)}}};mxVertexHandler[_0x5b48[202]][_0x5b48[2993]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){for(var _0x43b0x5=this[_0x5b48[1179]][_0x5b48[502]](),_0x43b0x9=_0x43b0x5[_0x5b48[262]](_0x43b0x2),_0x43b0xa=0;_0x43b0xa< _0x43b0x9;_0x43b0xa++){var _0x43b0x12=_0x43b0x5[_0x5b48[263]](_0x43b0x2,_0x43b0xa);if(_0x43b0x5[_0x5b48[1193]](_0x43b0x12)){var _0x43b0x13=this[_0x5b48[1179]][_0x5b48[1198]](_0x43b0x12);null!= _0x43b0x13&& !_0x43b0x13[_0x5b48[1500]]&& (_0x43b0x13= _0x43b0x13[_0x5b48[238]](),_0x43b0x13[_0x5b48[235]]+= _0x43b0x3,_0x43b0x13[_0x5b48[236]]+= _0x43b0x4,_0x43b0x5[_0x5b48[1724]](_0x43b0x12,_0x43b0x13))}}};mxVertexHandler[_0x5b48[202]][_0x5b48[2991]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa,_0x43b0x12){if(this[_0x5b48[2957]]){_0x43b0x12= _0x43b0x2[_0x5b48[235]]+ _0x43b0x2[_0x5b48[117]]+ _0x43b0x3;var _0x43b0x13=_0x43b0x2[_0x5b48[236]]+ _0x43b0x2[_0x5b48[119]]+ _0x43b0x4;_0x43b0x9&& (_0x43b0x12= this[_0x5b48[1179]][_0x5b48[1021]](_0x43b0x12/ _0x43b0xa)* _0x43b0xa,_0x43b0x13= this[_0x5b48[1179]][_0x5b48[1021]](_0x43b0x13/ _0x43b0xa)* _0x43b0xa);_0x43b0xa= new mxRectangle(_0x43b0x2[_0x5b48[235]],_0x43b0x2[_0x5b48[236]],0,0);_0x43b0xa[_0x5b48[99]]( new mxRectangle(_0x43b0x12,_0x43b0x13,0,0));return _0x43b0xa};var _0x43b0x13=_0x43b0x2[_0x5b48[235]]- _0x43b0x12[_0x5b48[235]]* _0x43b0xa,_0x43b0x14=_0x43b0x13+ _0x43b0x2[_0x5b48[117]],_0x43b0x15=_0x43b0x2[_0x5b48[236]]- _0x43b0x12[_0x5b48[236]]* _0x43b0xa;_0x43b0x2= _0x43b0x15+ _0x43b0x2[_0x5b48[119]];4< _0x43b0x5?(_0x43b0x2+= _0x43b0x4,_0x43b0x9&& (_0x43b0x2= this[_0x5b48[1179]][_0x5b48[1021]](_0x43b0x2/ _0x43b0xa)* _0x43b0xa)):3> _0x43b0x5&& (_0x43b0x15+= _0x43b0x4,_0x43b0x9&& (_0x43b0x15= this[_0x5b48[1179]][_0x5b48[1021]](_0x43b0x15/ _0x43b0xa)* _0x43b0xa));if(0== _0x43b0x5|| 3== _0x43b0x5|| 5== _0x43b0x5){_0x43b0x13+= _0x43b0x3,_0x43b0x9&& (_0x43b0x13= this[_0x5b48[1179]][_0x5b48[1021]](_0x43b0x13/ _0x43b0xa)* _0x43b0xa)}else {if(2== _0x43b0x5|| 4== _0x43b0x5|| 7== _0x43b0x5){_0x43b0x14+= _0x43b0x3,_0x43b0x9&& (_0x43b0x14= this[_0x5b48[1179]][_0x5b48[1021]](_0x43b0x14/ _0x43b0xa)* _0x43b0xa)}};_0x43b0x9= _0x43b0x14- _0x43b0x13;_0x43b0x2-= _0x43b0x15;0> _0x43b0x9&& (_0x43b0x13+= _0x43b0x9,_0x43b0x9= Math[_0x5b48[425]](_0x43b0x9));0> _0x43b0x2&& (_0x43b0x15+= _0x43b0x2,_0x43b0x2= Math[_0x5b48[425]](_0x43b0x2));return new mxRectangle(_0x43b0x13+ _0x43b0x12[_0x5b48[235]]* _0x43b0xa,_0x43b0x15+ _0x43b0x12[_0x5b48[236]]* _0x43b0xa,_0x43b0x9,_0x43b0x2)};mxVertexHandler[_0x5b48[202]][_0x5b48[258]]= function(){this[_0x5b48[2961]]= this[_0x5b48[2962]](this[_0x5b48[724]]);this[_0x5b48[1562]]= new mxRectangle(this[_0x5b48[724]][_0x5b48[235]],this[_0x5b48[724]][_0x5b48[236]],this[_0x5b48[724]][_0x5b48[117]],this[_0x5b48[724]][_0x5b48[119]]);var _0x43b0x2=this[_0x5b48[724]];if(null!= this[_0x5b48[2964]]){var _0x43b0x3=_0x43b0x2[_0x5b48[235]]+ _0x43b0x2[_0x5b48[117]],_0x43b0x4=_0x43b0x2[_0x5b48[236]]+ _0x43b0x2[_0x5b48[119]];if(this[_0x5b48[2957]]){this[_0x5b48[2985]](this[_0x5b48[2964]][0],_0x43b0x3,_0x43b0x4)}else {var _0x43b0x5=_0x43b0x2[_0x5b48[235]]+ _0x43b0x2[_0x5b48[117]]/ 2,_0x43b0x9=_0x43b0x2[_0x5b48[236]]+ _0x43b0x2[_0x5b48[119]]/ 2;if(1< this[_0x5b48[2964]][_0x5b48[67]]){var _0x43b0xa=mxUtils[_0x5b48[431]](_0x43b0x2[_0x5b48[124]][mxConstants[_0x5b48[2278]]]|| _0x5b48[468]),_0x43b0x12=Math[_0x5b48[426]](_0x43b0xa),_0x43b0xa=Math[_0x5b48[427]](_0x43b0xa),_0x43b0x13= new mxPoint(_0x43b0x2[_0x5b48[241]](),_0x43b0x2[_0x5b48[242]]()),_0x43b0x14=mxUtils[_0x5b48[432]]( new mxPoint(_0x43b0x2[_0x5b48[235]],_0x43b0x2[_0x5b48[236]]),_0x43b0x12,_0x43b0xa,_0x43b0x13);this[_0x5b48[2985]](this[_0x5b48[2964]][0],_0x43b0x14[_0x5b48[235]],_0x43b0x14[_0x5b48[236]]);_0x43b0x14[_0x5b48[235]]= _0x43b0x5;_0x43b0x14[_0x5b48[236]]= _0x43b0x2[_0x5b48[236]];_0x43b0x14= mxUtils[_0x5b48[432]](_0x43b0x14,_0x43b0x12,_0x43b0xa,_0x43b0x13);this[_0x5b48[2985]](this[_0x5b48[2964]][1],_0x43b0x14[_0x5b48[235]],_0x43b0x14[_0x5b48[236]]);_0x43b0x14[_0x5b48[235]]= _0x43b0x3;_0x43b0x14[_0x5b48[236]]= _0x43b0x2[_0x5b48[236]];_0x43b0x14= mxUtils[_0x5b48[432]](_0x43b0x14,_0x43b0x12,_0x43b0xa,_0x43b0x13);this[_0x5b48[2985]](this[_0x5b48[2964]][2],_0x43b0x14[_0x5b48[235]],_0x43b0x14[_0x5b48[236]]);_0x43b0x14[_0x5b48[235]]= _0x43b0x2[_0x5b48[235]];_0x43b0x14[_0x5b48[236]]= _0x43b0x9;_0x43b0x14= mxUtils[_0x5b48[432]](_0x43b0x14,_0x43b0x12,_0x43b0xa,_0x43b0x13);this[_0x5b48[2985]](this[_0x5b48[2964]][3],_0x43b0x14[_0x5b48[235]],_0x43b0x14[_0x5b48[236]]);_0x43b0x14[_0x5b48[235]]= _0x43b0x3;_0x43b0x14[_0x5b48[236]]= _0x43b0x9;_0x43b0x14= mxUtils[_0x5b48[432]](_0x43b0x14,_0x43b0x12,_0x43b0xa,_0x43b0x13);this[_0x5b48[2985]](this[_0x5b48[2964]][4],_0x43b0x14[_0x5b48[235]],_0x43b0x14[_0x5b48[236]]);_0x43b0x14[_0x5b48[235]]= _0x43b0x2[_0x5b48[235]];_0x43b0x14[_0x5b48[236]]= _0x43b0x4;_0x43b0x14= mxUtils[_0x5b48[432]](_0x43b0x14,_0x43b0x12,_0x43b0xa,_0x43b0x13);this[_0x5b48[2985]](this[_0x5b48[2964]][5],_0x43b0x14[_0x5b48[235]],_0x43b0x14[_0x5b48[236]]);_0x43b0x14[_0x5b48[235]]= _0x43b0x5;_0x43b0x14[_0x5b48[236]]= _0x43b0x4;_0x43b0x14= mxUtils[_0x5b48[432]](_0x43b0x14,_0x43b0x12,_0x43b0xa,_0x43b0x13);this[_0x5b48[2985]](this[_0x5b48[2964]][6],_0x43b0x14[_0x5b48[235]],_0x43b0x14[_0x5b48[236]]);_0x43b0x14[_0x5b48[235]]= _0x43b0x3;_0x43b0x14[_0x5b48[236]]= _0x43b0x4;_0x43b0x14= mxUtils[_0x5b48[432]](_0x43b0x14,_0x43b0x12,_0x43b0xa,_0x43b0x13);this[_0x5b48[2985]](this[_0x5b48[2964]][7],_0x43b0x14[_0x5b48[235]],_0x43b0x14[_0x5b48[236]]);this[_0x5b48[2985]](this[_0x5b48[2964]][8],_0x43b0x5+ _0x43b0x2[_0x5b48[2079]][_0x5b48[235]],_0x43b0x9+ _0x43b0x2[_0x5b48[2079]][_0x5b48[236]])}else {2<= this[_0x5b48[724]][_0x5b48[117]]&& 2<= this[_0x5b48[724]][_0x5b48[119]]?this[_0x5b48[2985]](this[_0x5b48[2964]][0],_0x43b0x5+ _0x43b0x2[_0x5b48[2079]][_0x5b48[235]],_0x43b0x9+ _0x43b0x2[_0x5b48[2079]][_0x5b48[236]]):this[_0x5b48[2985]](this[_0x5b48[2964]][0],_0x43b0x2[_0x5b48[235]],_0x43b0x2[_0x5b48[236]])}}};null!= this[_0x5b48[2973]]&& (_0x43b0xa= mxUtils[_0x5b48[431]](this[_0x5b48[724]][_0x5b48[124]][mxConstants[_0x5b48[2278]]]|| _0x5b48[468]),_0x43b0x12= Math[_0x5b48[426]](_0x43b0xa),_0x43b0xa= Math[_0x5b48[427]](_0x43b0xa),_0x43b0x13= new mxPoint(this[_0x5b48[724]][_0x5b48[241]](),this[_0x5b48[724]][_0x5b48[242]]()),_0x43b0x14= mxUtils[_0x5b48[432]]( new mxPoint(_0x43b0x2[_0x5b48[235]]+ _0x43b0x2[_0x5b48[117]]/ 2,_0x43b0x2[_0x5b48[236]]- 16),_0x43b0x12,_0x43b0xa,_0x43b0x13),this[_0x5b48[2985]](this[_0x5b48[2973]],_0x43b0x14[_0x5b48[235]],_0x43b0x14[_0x5b48[236]]));this[_0x5b48[2732]][_0x5b48[603]]= Number(this[_0x5b48[724]][_0x5b48[124]][mxConstants[_0x5b48[2278]]]|| _0x5b48[468]);this[_0x5b48[2932]]()};mxVertexHandler[_0x5b48[202]][_0x5b48[2932]]= function(){null!= this[_0x5b48[2988]]&& (this[_0x5b48[2988]][_0x5b48[1562]]= this[_0x5b48[1562]],this[_0x5b48[2988]][_0x5b48[252]][_0x5b48[265]]== this[_0x5b48[1179]][_0x5b48[526]]&& (this[_0x5b48[2988]][_0x5b48[1562]][_0x5b48[117]]= Math[_0x5b48[160]](0,this[_0x5b48[2988]][_0x5b48[1562]][_0x5b48[117]]- 1),this[_0x5b48[2988]][_0x5b48[1562]][_0x5b48[119]]= Math[_0x5b48[160]](0,this[_0x5b48[2988]][_0x5b48[1562]][_0x5b48[119]]- 1)),this[_0x5b48[2988]][_0x5b48[603]]= Number(this[_0x5b48[724]][_0x5b48[124]][mxConstants[_0x5b48[2278]]]|| _0x5b48[468]),this[_0x5b48[2988]][_0x5b48[258]]());this[_0x5b48[2732]][_0x5b48[1562]]= this[_0x5b48[1562]];this[_0x5b48[2732]][_0x5b48[258]]()};mxVertexHandler[_0x5b48[202]][_0x5b48[515]]= function(){null!= this[_0x5b48[2988]]&& (this[_0x5b48[2988]][_0x5b48[515]](),this[_0x5b48[2988]]= null);this[_0x5b48[2732]][_0x5b48[515]]();this[_0x5b48[2972]]= this[_0x5b48[2732]]= null;if(null!= this[_0x5b48[2964]]){for(var _0x43b0x2=0;_0x43b0x2< this[_0x5b48[2964]][_0x5b48[67]];_0x43b0x2++){this[_0x5b48[2964]][_0x43b0x2][_0x5b48[515]](),this[_0x5b48[2964]][_0x43b0x2]= null}}};function mxEdgeHandler(_0x43b0x2){null!= _0x43b0x2&& (this[_0x5b48[724]]= _0x43b0x2,this[_0x5b48[176]]())}mxEdgeHandler[_0x5b48[202]][_0x5b48[1179]]= null;mxEdgeHandler[_0x5b48[202]][_0x5b48[724]]= null;mxEdgeHandler[_0x5b48[202]][_0x5b48[2885]]= null;mxEdgeHandler[_0x5b48[202]][_0x5b48[2886]]= null;mxEdgeHandler[_0x5b48[202]][_0x5b48[267]]= null;mxEdgeHandler[_0x5b48[202]][_0x5b48[253]]= null;mxEdgeHandler[_0x5b48[202]][_0x5b48[2994]]= null;mxEdgeHandler[_0x5b48[202]][_0x5b48[2972]]= null;mxEdgeHandler[_0x5b48[202]][_0x5b48[2797]]= !0;mxEdgeHandler[_0x5b48[202]][_0x5b48[2771]]= !1;mxEdgeHandler[_0x5b48[202]][_0x5b48[2995]]= !1;mxEdgeHandler[_0x5b48[202]][_0x5b48[574]]= !1;mxEdgeHandler[_0x5b48[202]][_0x5b48[2958]]= !0;mxEdgeHandler[_0x5b48[202]][_0x5b48[2996]]= !1;mxEdgeHandler[_0x5b48[202]][_0x5b48[2959]]= null;mxEdgeHandler[_0x5b48[202]][_0x5b48[2353]]= 0;mxEdgeHandler[_0x5b48[202]][_0x5b48[176]]= function(){this[_0x5b48[1179]]= this[_0x5b48[724]][_0x5b48[441]][_0x5b48[1179]];this[_0x5b48[2885]]= this[_0x5b48[1689]]();this[_0x5b48[2886]]= new mxConstraintHandler(this[_0x5b48[1179]]);this[_0x5b48[1525]]= [];this[_0x5b48[2997]]= this[_0x5b48[2998]](this[_0x5b48[724]]);this[_0x5b48[253]]= this[_0x5b48[2963]](this[_0x5b48[2997]]);this[_0x5b48[253]][_0x5b48[507]]= this[_0x5b48[1179]][_0x5b48[507]]!= mxConstants[_0x5b48[508]]?mxConstants[_0x5b48[2334]]:mxConstants[_0x5b48[508]];this[_0x5b48[253]][_0x5b48[176]](this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[1524]]());this[_0x5b48[253]][_0x5b48[1564]]= 0;this[_0x5b48[253]][_0x5b48[252]][_0x5b48[124]][_0x5b48[270]]= mxConstants[_0x5b48[2831]];mxEvent[_0x5b48[169]](this[_0x5b48[253]][_0x5b48[252]],_0x5b48[760],mxUtils[_0x5b48[885]](this,function(_0x43b0x2){this[_0x5b48[1179]][_0x5b48[761]](_0x43b0x2,this[_0x5b48[724]][_0x5b48[246]])}));mxEvent[_0x5b48[759]](this[_0x5b48[253]][_0x5b48[252]],mxUtils[_0x5b48[885]](this,function(_0x43b0x2){this[_0x5b48[2771]]&& this[_0x5b48[2999]](_0x43b0x2)?this[_0x5b48[3000]](this[_0x5b48[724]],_0x43b0x2):this[_0x5b48[1179]][_0x5b48[758]](mxEvent.MOUSE_DOWN, new mxMouseEvent(_0x43b0x2,this[_0x5b48[724]]))}),mxUtils[_0x5b48[885]](this,function(_0x43b0x2){var _0x43b0x4=this[_0x5b48[724]][_0x5b48[246]];if(null!= this[_0x5b48[1983]]){var _0x43b0x5=mxUtils[_0x5b48[2196]](this[_0x5b48[1179]][_0x5b48[526]],mxEvent[_0x5b48[731]](_0x43b0x2),mxEvent[_0x5b48[733]](_0x43b0x2)),_0x43b0x4=this[_0x5b48[1179]][_0x5b48[999]](_0x43b0x5[_0x5b48[235]],_0x43b0x5[_0x5b48[236]]);this[_0x5b48[1179]][_0x5b48[1730]](_0x43b0x4)&& this[_0x5b48[1179]][_0x5b48[2688]](_0x43b0x4,_0x43b0x5[_0x5b48[235]],_0x43b0x5[_0x5b48[236]])&& (_0x43b0x4= null)};this[_0x5b48[1179]][_0x5b48[758]](mxEvent.MOUSE_MOVE, new mxMouseEvent(_0x43b0x2,this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[248]](_0x43b0x4)))}),mxUtils[_0x5b48[885]](this,function(_0x43b0x2){this[_0x5b48[1179]][_0x5b48[758]](mxEvent.MOUSE_UP, new mxMouseEvent(_0x43b0x2,this[_0x5b48[724]]))}));this[_0x5b48[574]]= null!= this[_0x5b48[724]][_0x5b48[963]]&& this[_0x5b48[724]][_0x5b48[963]][_0x5b48[252]][_0x5b48[265]]== this[_0x5b48[1179]][_0x5b48[526]];if(!this[_0x5b48[574]]){var _0x43b0x2=this[_0x5b48[724]][_0x5b48[2089]](!0);null!= _0x43b0x2&& (this[_0x5b48[574]]= null!= _0x43b0x2[_0x5b48[963]]&& _0x43b0x2[_0x5b48[963]][_0x5b48[252]][_0x5b48[265]]== this[_0x5b48[1179]][_0x5b48[526]]);this[_0x5b48[574]]|| (_0x43b0x2= this[_0x5b48[724]][_0x5b48[2089]](!1),null!= _0x43b0x2&& (this[_0x5b48[574]]= null!= _0x43b0x2[_0x5b48[963]]&& _0x43b0x2[_0x5b48[963]][_0x5b48[252]][_0x5b48[265]]== this[_0x5b48[1179]][_0x5b48[526]]))};if(this[_0x5b48[1179]][_0x5b48[2694]]()< mxGraphHandler[_0x5b48[202]][_0x5b48[2795]]|| 0>= mxGraphHandler[_0x5b48[202]][_0x5b48[2795]]){this[_0x5b48[2994]]= this[_0x5b48[3001]]()};this[_0x5b48[685]]= new mxPoint(this[_0x5b48[724]][_0x5b48[2079]][_0x5b48[235]],this[_0x5b48[724]][_0x5b48[2079]][_0x5b48[236]]);this[_0x5b48[2972]]= new mxRectangleShape( new mxRectangle,mxConstants.LABEL_HANDLE_FILLCOLOR,mxConstants.HANDLE_STROKECOLOR);this[_0x5b48[2972]][_0x5b48[1229]]= !1;this[_0x5b48[3002]](this[_0x5b48[2972]]);this[_0x5b48[2972]][_0x5b48[252]][_0x5b48[124]][_0x5b48[270]]= mxConstants[_0x5b48[3003]];mxEvent[_0x5b48[2733]](this[_0x5b48[2972]][_0x5b48[252]],this[_0x5b48[1179]],this[_0x5b48[724]]);this[_0x5b48[258]]()};mxEdgeHandler[_0x5b48[202]][_0x5b48[2999]]= function(_0x43b0x2){return mxEvent[_0x5b48[774]](_0x43b0x2)};mxEdgeHandler[_0x5b48[202]][_0x5b48[3004]]= function(_0x43b0x2){return mxEvent[_0x5b48[774]](_0x43b0x2)};mxEdgeHandler[_0x5b48[202]][_0x5b48[2998]]= function(_0x43b0x2){return _0x43b0x2[_0x5b48[439]]};mxEdgeHandler[_0x5b48[202]][_0x5b48[2963]]= function(_0x43b0x2){_0x43b0x2= new mxPolyline(_0x43b0x2,this[_0x5b48[2975]]());_0x43b0x2[_0x5b48[1307]]= this[_0x5b48[2976]]();_0x43b0x2[_0x5b48[1522]]= this[_0x5b48[2977]]();return _0x43b0x2};mxEdgeHandler[_0x5b48[202]][_0x5b48[2975]]= function(){return mxConstants[_0x5b48[3005]]};mxEdgeHandler[_0x5b48[202]][_0x5b48[2976]]= function(){return mxConstants[_0x5b48[3006]]};mxEdgeHandler[_0x5b48[202]][_0x5b48[2977]]= function(){return mxConstants[_0x5b48[3007]]};mxEdgeHandler[_0x5b48[202]][_0x5b48[2907]]= function(_0x43b0x2){return !0};mxEdgeHandler[_0x5b48[202]][_0x5b48[1689]]= function(){var _0x43b0x2= new mxCellMarker(this[_0x5b48[1179]]),_0x43b0x3=this;_0x43b0x2[_0x5b48[736]]= function(_0x43b0x2){var _0x43b0x5=mxCellMarker[_0x5b48[202]][_0x5b48[736]][_0x5b48[183]](this,arguments);if(!_0x43b0x3[_0x5b48[2907]](_0x43b0x5)){return null};var _0x43b0x9=_0x43b0x3[_0x5b48[1179]][_0x5b48[502]]();if(_0x43b0x5== _0x43b0x3[_0x5b48[724]][_0x5b48[246]]|| null!= _0x43b0x5&& !_0x43b0x3[_0x5b48[1179]][_0x5b48[2405]]&& _0x43b0x9[_0x5b48[250]](_0x43b0x5)){_0x43b0x5= null};return _0x43b0x5};_0x43b0x2[_0x5b48[2872]]= function(_0x43b0x2){var _0x43b0x5=_0x43b0x3[_0x5b48[1179]][_0x5b48[502]](),_0x43b0x5=_0x43b0x3[_0x5b48[1179]][_0x5b48[441]][_0x5b48[2292]](_0x43b0x2,_0x43b0x3[_0x5b48[1179]][_0x5b48[441]][_0x5b48[248]](_0x43b0x5[_0x5b48[1709]](_0x43b0x3[_0x5b48[724]][_0x5b48[246]],!_0x43b0x3[_0x5b48[729]])),!_0x43b0x3[_0x5b48[729]]),_0x43b0x5=null!= _0x43b0x5?_0x43b0x5[_0x5b48[246]]:null;_0x43b0x3[_0x5b48[267]]= _0x43b0x3[_0x5b48[2909]](_0x43b0x3[_0x5b48[729]]?_0x43b0x2[_0x5b48[246]]:_0x43b0x5,_0x43b0x3[_0x5b48[729]]?_0x43b0x5:_0x43b0x2[_0x5b48[246]]);return null== _0x43b0x3[_0x5b48[267]]};return _0x43b0x2};mxEdgeHandler[_0x5b48[202]][_0x5b48[2909]]= function(_0x43b0x2,_0x43b0x3){return this[_0x5b48[1179]][_0x5b48[2500]](this[_0x5b48[724]][_0x5b48[246]],_0x43b0x2,_0x43b0x3)};mxEdgeHandler[_0x5b48[202]][_0x5b48[3001]]= function(){for(var _0x43b0x2=this[_0x5b48[724]][_0x5b48[246]],_0x43b0x3=[],_0x43b0x4=0;_0x43b0x4< this[_0x5b48[2997]][_0x5b48[67]];_0x43b0x4++){if(this[_0x5b48[3008]](_0x43b0x4)){var _0x43b0x5=_0x43b0x4== this[_0x5b48[2997]][_0x5b48[67]]- 1;if((_0x43b0x5= 0== _0x43b0x4|| _0x43b0x5)|| this[_0x5b48[1179]][_0x5b48[2662]](_0x43b0x2)){var _0x43b0x9=this[_0x5b48[3009]](_0x43b0x4);this[_0x5b48[3002]](_0x43b0x9);mxClient[_0x5b48[754]]&& _0x43b0x9[_0x5b48[252]][_0x5b48[57]](_0x5b48[1377],_0x5b48[130]);if(this[_0x5b48[3010]](_0x43b0x4)){if(mxClient[_0x5b48[754]]){var _0x43b0xa=mxUtils[_0x5b48[885]](this,function(_0x43b0x2){_0x43b0x2= mxUtils[_0x5b48[2196]](this[_0x5b48[1179]][_0x5b48[526]],mxEvent[_0x5b48[731]](_0x43b0x2),mxEvent[_0x5b48[733]](_0x43b0x2));return this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[248]](this[_0x5b48[1179]][_0x5b48[999]](_0x43b0x2[_0x5b48[235]],_0x43b0x2[_0x5b48[236]]))});mxEvent[_0x5b48[2733]](_0x43b0x9[_0x5b48[252]],this[_0x5b48[1179]],_0x43b0xa)}else {_0x43b0x9[_0x5b48[252]][_0x5b48[124]][_0x5b48[270]]= mxConstants[_0x5b48[3011]],mxEvent[_0x5b48[2733]](_0x43b0x9[_0x5b48[252]],this[_0x5b48[1179]],this[_0x5b48[724]])}};_0x43b0x3[_0x5b48[207]](_0x43b0x9);_0x43b0x5|| (this[_0x5b48[1525]][_0x5b48[207]]( new mxPoint(0,0)),_0x43b0x9[_0x5b48[252]][_0x5b48[124]][_0x5b48[187]]= _0x5b48[188])}}};return _0x43b0x3};mxEdgeHandler[_0x5b48[202]][_0x5b48[3010]]= function(_0x43b0x2){return !0};mxEdgeHandler[_0x5b48[202]][_0x5b48[3008]]= function(_0x43b0x2){return !0};mxEdgeHandler[_0x5b48[202]][_0x5b48[3009]]= function(_0x43b0x2){if(null!= this[_0x5b48[2959]]){return new mxImageShape( new mxRectangle(0,0,this[_0x5b48[2959]][_0x5b48[117]],this[_0x5b48[2959]][_0x5b48[119]]),this[_0x5b48[2959]][_0x5b48[390]])};_0x43b0x2= mxConstants[_0x5b48[2974]];this[_0x5b48[574]]&& (_0x43b0x2-= 1);return new mxRectangleShape( new mxRectangle(0,0,_0x43b0x2,_0x43b0x2),mxConstants.HANDLE_FILLCOLOR,mxConstants.HANDLE_STROKECOLOR)};mxEdgeHandler[_0x5b48[202]][_0x5b48[3002]]= function(_0x43b0x2){this[_0x5b48[574]]?(_0x43b0x2[_0x5b48[507]]= mxConstants[_0x5b48[1656]],_0x43b0x2[_0x5b48[176]](this[_0x5b48[1179]][_0x5b48[526]])):(_0x43b0x2[_0x5b48[507]]= this[_0x5b48[1179]][_0x5b48[507]]!= mxConstants[_0x5b48[508]]?mxConstants[_0x5b48[2334]]:mxConstants[_0x5b48[508]],_0x43b0x2[_0x5b48[176]](this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[1524]]()))};mxEdgeHandler[_0x5b48[202]][_0x5b48[2986]]= function(_0x43b0x2){if(null!= this[_0x5b48[2994]]){for(var _0x43b0x3=this[_0x5b48[2353]],_0x43b0x3=this[_0x5b48[2958]]&& (mxClient[_0x5b48[80]]|| 0< _0x43b0x3)? new mxRectangle(_0x43b0x2[_0x5b48[734]]()- _0x43b0x3,_0x43b0x2[_0x5b48[735]]()- _0x43b0x3,2* _0x43b0x3,2* _0x43b0x3):null,_0x43b0x4=0;_0x43b0x4< this[_0x5b48[2994]][_0x5b48[67]];_0x43b0x4++){if((_0x43b0x2[_0x5b48[729]](this[_0x5b48[2994]][_0x43b0x4])|| null!= _0x43b0x3&& mxUtils[_0x5b48[1825]](this[_0x5b48[2994]][_0x43b0x4][_0x5b48[1562]],_0x43b0x3))&& _0x5b48[188]!= this[_0x5b48[2994]][_0x43b0x4][_0x5b48[252]][_0x5b48[124]][_0x5b48[187]]){return _0x43b0x4}}};if(_0x43b0x2[_0x5b48[729]](this[_0x5b48[2972]])&& _0x5b48[188]!= this[_0x5b48[2972]][_0x5b48[252]][_0x5b48[124]][_0x5b48[187]]|| _0x43b0x2[_0x5b48[729]](this[_0x5b48[724]][_0x5b48[963]])){if(!mxClient[_0x5b48[75]]&& !mxClient[_0x5b48[76]] || _0x5b48[2822]!= _0x43b0x2[_0x5b48[728]]()[_0x5b48[301]]){return mxEvent[_0x5b48[2987]]}};return null};mxEdgeHandler[_0x5b48[202]][_0x5b48[787]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=null,_0x43b0x4=this[_0x5b48[2986]](_0x43b0x3);null!= _0x43b0x4&& (!_0x43b0x3[_0x5b48[721]]()&& this[_0x5b48[1179]][_0x5b48[994]]() && !this[_0x5b48[1179]][_0x5b48[2579]](_0x43b0x3[_0x5b48[727]]()))&& (this[_0x5b48[2995]]&& this[_0x5b48[3004]](_0x43b0x3[_0x5b48[727]]())?this[_0x5b48[3012]](this[_0x5b48[724]],_0x43b0x4):(_0x43b0x4!= mxEvent[_0x5b48[2987]]|| this[_0x5b48[1179]][_0x5b48[2628]](_0x43b0x3[_0x5b48[736]]()))&& this[_0x5b48[861]](_0x43b0x3[_0x5b48[730]](),_0x43b0x3[_0x5b48[732]](),_0x43b0x4),_0x43b0x3[_0x5b48[722]]())};mxEdgeHandler[_0x5b48[202]][_0x5b48[861]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){this[_0x5b48[2739]]= _0x43b0x2;this[_0x5b48[2740]]= _0x43b0x3;this[_0x5b48[729]]= null== this[_0x5b48[2994]]?!1:0== _0x43b0x4;this[_0x5b48[3013]]= null== this[_0x5b48[2994]]?!1:_0x43b0x4== this[_0x5b48[2994]][_0x5b48[67]]- 1;this[_0x5b48[3014]]= _0x43b0x4== mxEvent[_0x5b48[2987]];if(this[_0x5b48[729]]|| this[_0x5b48[3013]]){if(_0x43b0x2= this[_0x5b48[724]][_0x5b48[246]],_0x43b0x3= this[_0x5b48[1179]][_0x5b48[251]][_0x5b48[1709]](_0x43b0x2,this[_0x5b48[729]]),null== _0x43b0x3&& this[_0x5b48[1179]][_0x5b48[2661]](_0x43b0x2,this[_0x5b48[729]])|| null!= _0x43b0x3&& this[_0x5b48[1179]][_0x5b48[2551]](_0x43b0x2,_0x43b0x3,this[_0x5b48[729]])){this[_0x5b48[1983]]= _0x43b0x4}}else {this[_0x5b48[1983]]= _0x43b0x4}};mxEdgeHandler[_0x5b48[202]][_0x5b48[3015]]= function(_0x43b0x2,_0x43b0x3){return this[_0x5b48[724]][_0x5b48[238]]()};mxEdgeHandler[_0x5b48[202]][_0x5b48[3016]]= function(){return this[_0x5b48[1179]][_0x5b48[1020]]* this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[255]]/ 2};mxEdgeHandler[_0x5b48[202]][_0x5b48[2689]]= function(_0x43b0x2){var _0x43b0x3= new mxPoint(_0x43b0x2[_0x5b48[734]](),_0x43b0x2[_0x5b48[735]]()),_0x43b0x4=this[_0x5b48[3016]](),_0x43b0x5=this[_0x5b48[1179]][_0x5b48[249]](),_0x43b0x9=!1,_0x43b0xa=!1;if(this[_0x5b48[2996]]&& 0< _0x43b0x4){var _0x43b0x12=function(_0x43b0x2){if(null!= _0x43b0x2){var _0x43b0x5=_0x43b0x2[_0x5b48[235]];Math[_0x5b48[425]](_0x43b0x3[_0x5b48[235]]- _0x43b0x5)< _0x43b0x4&& (_0x43b0x3[_0x5b48[235]]= _0x43b0x5,_0x43b0x9= !0);_0x43b0x2= _0x43b0x2[_0x5b48[236]];Math[_0x5b48[425]](_0x43b0x3[_0x5b48[236]]- _0x43b0x2)< _0x43b0x4&& (_0x43b0x3[_0x5b48[236]]= _0x43b0x2,_0x43b0xa= !0)}},_0x43b0x13=function(_0x43b0x2){null!= _0x43b0x2&& _0x43b0x12[_0x5b48[239]](this, new mxPoint(_0x43b0x5[_0x5b48[2230]](_0x43b0x2),_0x43b0x5[_0x5b48[2228]](_0x43b0x2)))};_0x43b0x13[_0x5b48[239]](this,this[_0x5b48[724]][_0x5b48[2089]](!0));_0x43b0x13[_0x5b48[239]](this,this[_0x5b48[724]][_0x5b48[2089]](!1));if(null!= this[_0x5b48[2997]]){for(_0x43b0x13= 0;_0x43b0x13< this[_0x5b48[2997]];_0x43b0x13++){_0x43b0x13!= this[_0x5b48[1983]]&& _0x43b0x12[_0x5b48[239]](this,this[_0x5b48[2997]][_0x43b0x13])}}};this[_0x5b48[1179]][_0x5b48[1018]](_0x43b0x2[_0x5b48[727]]())&& (_0x43b0x2= _0x43b0x5[_0x5b48[255]],_0x43b0x13= _0x43b0x5[_0x5b48[513]],_0x43b0x9|| (_0x43b0x3[_0x5b48[235]]= (this[_0x5b48[1179]][_0x5b48[1021]](_0x43b0x3[_0x5b48[235]]/ _0x43b0x2- _0x43b0x13[_0x5b48[235]])+ _0x43b0x13[_0x5b48[235]])* _0x43b0x2),_0x43b0xa|| (_0x43b0x3[_0x5b48[236]]= (this[_0x5b48[1179]][_0x5b48[1021]](_0x43b0x3[_0x5b48[236]]/ _0x43b0x2- _0x43b0x13[_0x5b48[236]])+ _0x43b0x13[_0x5b48[236]])* _0x43b0x2));return _0x43b0x3};mxEdgeHandler[_0x5b48[202]][_0x5b48[3017]]= function(_0x43b0x2){this[_0x5b48[2886]][_0x5b48[2729]](_0x43b0x2,this[_0x5b48[729]]);this[_0x5b48[2885]][_0x5b48[2871]](_0x43b0x2);_0x43b0x2= this[_0x5b48[2885]][_0x5b48[2868]]();var _0x43b0x3=null;null!= this[_0x5b48[2886]][_0x5b48[2919]]&& null!= this[_0x5b48[2886]][_0x5b48[2920]]&& this[_0x5b48[2885]][_0x5b48[862]]();null!= _0x43b0x2?_0x43b0x3= _0x43b0x2:null!= this[_0x5b48[2886]][_0x5b48[2920]]&& null!= this[_0x5b48[2886]][_0x5b48[2919]]&& (_0x43b0x3= this[_0x5b48[2886]][_0x5b48[2919]]);return _0x43b0x3};mxEdgeHandler[_0x5b48[202]][_0x5b48[3018]]= function(_0x43b0x2){var _0x43b0x3=this[_0x5b48[1179]][_0x5b48[1198]](this[_0x5b48[724]][_0x5b48[246]]),_0x43b0x3=null!= _0x43b0x3[_0x5b48[1525]]?_0x43b0x3[_0x5b48[1525]][_0x5b48[1853]]():null;!this[_0x5b48[729]]&& !this[_0x5b48[3013]]?(this[_0x5b48[2196]](_0x43b0x2,!1),null== _0x43b0x3?_0x43b0x3= [_0x43b0x2]:_0x43b0x3[this[_0x5b48[1983]]- 1]= _0x43b0x2):this[_0x5b48[1179]][_0x5b48[2401]]&& (_0x43b0x3= null);return _0x43b0x3};mxEdgeHandler[_0x5b48[202]][_0x5b48[3019]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){var _0x43b0x5=this[_0x5b48[729]]?_0x43b0x4:this[_0x5b48[724]][_0x5b48[2089]](!0),_0x43b0x9=this[_0x5b48[3013]]?_0x43b0x4:this[_0x5b48[724]][_0x5b48[2089]](!1),_0x43b0xa=this[_0x5b48[1179]][_0x5b48[2288]](_0x43b0x2,_0x43b0x5,!0),_0x43b0x12=this[_0x5b48[1179]][_0x5b48[2288]](_0x43b0x2,_0x43b0x9,!1),_0x43b0x13=this[_0x5b48[2886]][_0x5b48[2920]];null== _0x43b0x13&& (_0x43b0x13= new mxConnectionConstraint);this[_0x5b48[729]]?_0x43b0xa= _0x43b0x13:this[_0x5b48[3013]]&& (_0x43b0x12= _0x43b0x13);(!this[_0x5b48[729]]|| null!= _0x43b0x5) && _0x43b0x2[_0x5b48[441]][_0x5b48[2289]](_0x43b0x2,_0x43b0x5,!0,_0x43b0xa);(!this[_0x5b48[3013]]|| null!= _0x43b0x9) && _0x43b0x2[_0x5b48[441]][_0x5b48[2289]](_0x43b0x2,_0x43b0x9,!1,_0x43b0x12);if((this[_0x5b48[729]]|| this[_0x5b48[3013]])&& null== _0x43b0x4){_0x43b0x2[_0x5b48[2088]](_0x43b0x3,this[_0x5b48[729]]),null== this[_0x5b48[2885]][_0x5b48[2869]]()&& (this[_0x5b48[267]]= this[_0x5b48[1179]][_0x5b48[2406]]?null:_0x5b48[110])};_0x43b0x2[_0x5b48[441]][_0x5b48[2282]](_0x43b0x2,this[_0x5b48[1525]],_0x43b0x5,_0x43b0x9);_0x43b0x2[_0x5b48[441]][_0x5b48[2283]](_0x43b0x2,_0x43b0x5,_0x43b0x9)};mxEdgeHandler[_0x5b48[202]][_0x5b48[788]]= function(_0x43b0x2,_0x43b0x3){if(null!= this[_0x5b48[1983]]&& null!= this[_0x5b48[2885]]){var _0x43b0x4=this[_0x5b48[2689]](_0x43b0x3);if(this[_0x5b48[3014]]){this[_0x5b48[685]][_0x5b48[235]]= _0x43b0x4[_0x5b48[235]],this[_0x5b48[685]][_0x5b48[236]]= _0x43b0x4[_0x5b48[236]]}else {this[_0x5b48[1525]]= this[_0x5b48[3018]](_0x43b0x4);var _0x43b0x5=this[_0x5b48[729]]|| this[_0x5b48[3013]]?this[_0x5b48[3017]](_0x43b0x3):null,_0x43b0x9=this[_0x5b48[3015]](_0x43b0x4,null!= _0x43b0x5?_0x43b0x5[_0x5b48[246]]:null);this[_0x5b48[3019]](_0x43b0x9,_0x43b0x4,_0x43b0x5);this[_0x5b48[3020]](null== this[_0x5b48[267]]?this[_0x5b48[2885]][_0x5b48[2853]]:this[_0x5b48[2885]][_0x5b48[2855]]);this[_0x5b48[2997]]= _0x43b0x9[_0x5b48[439]];this[_0x5b48[1124]]= !0};this[_0x5b48[2932]]();mxEvent[_0x5b48[722]](_0x43b0x3[_0x5b48[727]]());_0x43b0x3[_0x5b48[722]]()}else {mxClient[_0x5b48[80]]&& null!= this[_0x5b48[2986]](_0x43b0x3)&& _0x43b0x3[_0x5b48[722]](!1)}};mxEdgeHandler[_0x5b48[202]][_0x5b48[789]]= function(_0x43b0x2,_0x43b0x3){if(null!= this[_0x5b48[1983]]&& null!= this[_0x5b48[2885]]){var _0x43b0x4=this[_0x5b48[724]][_0x5b48[246]];if(_0x43b0x3[_0x5b48[730]]()!= this[_0x5b48[2739]]|| _0x43b0x3[_0x5b48[732]]()!= this[_0x5b48[2740]]){if(null!= this[_0x5b48[267]]){0< this[_0x5b48[267]][_0x5b48[67]]&& this[_0x5b48[1179]][_0x5b48[2580]](this[_0x5b48[267]])}else {if(this[_0x5b48[3014]]){this[_0x5b48[3021]](this[_0x5b48[724]],this[_0x5b48[685]][_0x5b48[235]],this[_0x5b48[685]][_0x5b48[236]])}else {if(this[_0x5b48[729]]|| this[_0x5b48[3013]]){var _0x43b0x5=null;null!= this[_0x5b48[2886]][_0x5b48[2920]]&& null!= this[_0x5b48[2886]][_0x5b48[2919]]&& (_0x43b0x5= this[_0x5b48[2886]][_0x5b48[2919]][_0x5b48[246]]);null== _0x43b0x5&& this[_0x5b48[2885]][_0x5b48[2867]]()&& (_0x43b0x5= this[_0x5b48[2885]][_0x5b48[2861]][_0x5b48[246]]);if(null!= _0x43b0x5){_0x43b0x4= this[_0x5b48[807]](_0x43b0x4,_0x43b0x5,this[_0x5b48[729]],this[_0x5b48[1179]][_0x5b48[2574]](_0x43b0x3[_0x5b48[727]]())&& this[_0x5b48[2797]]&& this[_0x5b48[1179]][_0x5b48[2617]](),_0x43b0x3)}else {if(this[_0x5b48[1179]][_0x5b48[2530]]()){_0x43b0x5= this[_0x5b48[2997]][this[_0x5b48[729]]?0:this[_0x5b48[2997]][_0x5b48[67]]- 1];_0x43b0x5[_0x5b48[235]]= _0x43b0x5[_0x5b48[235]]/ this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[255]]- this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[513]][_0x5b48[235]];_0x43b0x5[_0x5b48[236]]= _0x43b0x5[_0x5b48[236]]/ this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[255]]- this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[513]][_0x5b48[236]];var _0x43b0x9=this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[248]](this[_0x5b48[1179]][_0x5b48[502]]()[_0x5b48[1197]](_0x43b0x4));null!= _0x43b0x9&& (_0x43b0x5[_0x5b48[235]]-= _0x43b0x9[_0x5b48[2078]][_0x5b48[235]],_0x43b0x5[_0x5b48[236]]-= _0x43b0x9[_0x5b48[2078]][_0x5b48[236]]);_0x43b0x5[_0x5b48[235]]-= this[_0x5b48[1179]][_0x5b48[1136]]/ this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[255]];_0x43b0x5[_0x5b48[236]]-= this[_0x5b48[1179]][_0x5b48[1137]]/ this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[255]];this[_0x5b48[3022]](_0x43b0x4,_0x43b0x5,this[_0x5b48[729]])}}}else {this[_0x5b48[1124]]?this[_0x5b48[3023]](_0x43b0x4,this[_0x5b48[1525]]):(this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[2263]](this[_0x5b48[724]][_0x5b48[246]]),this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[2259]](this[_0x5b48[724]][_0x5b48[246]]))}}}};null!= this[_0x5b48[2885]]&& (this[_0x5b48[862]](),_0x43b0x4!= this[_0x5b48[724]][_0x5b48[246]]&& this[_0x5b48[1179]][_0x5b48[2450]](_0x43b0x4));_0x43b0x3[_0x5b48[722]]()}};mxEdgeHandler[_0x5b48[202]][_0x5b48[862]]= function(){this[_0x5b48[1525]]= this[_0x5b48[685]]= this[_0x5b48[1983]]= this[_0x5b48[267]]= null;this[_0x5b48[3013]]= this[_0x5b48[729]]= this[_0x5b48[3014]]= this[_0x5b48[1124]]= !1;this[_0x5b48[2885]][_0x5b48[862]]();this[_0x5b48[2886]][_0x5b48[862]]();this[_0x5b48[3020]](mxConstants.EDGE_SELECTION_COLOR);this[_0x5b48[258]]()};mxEdgeHandler[_0x5b48[202]][_0x5b48[3020]]= function(_0x43b0x2){null!= this[_0x5b48[253]]&& (this[_0x5b48[253]][_0x5b48[1336]]= _0x43b0x2)};mxEdgeHandler[_0x5b48[202]][_0x5b48[2196]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[518]](),_0x43b0x5=this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[512]]();_0x43b0x3&& (_0x43b0x2[_0x5b48[235]]= this[_0x5b48[1179]][_0x5b48[1021]](_0x43b0x2[_0x5b48[235]]),_0x43b0x2[_0x5b48[236]]= this[_0x5b48[1179]][_0x5b48[1021]](_0x43b0x2[_0x5b48[236]]));_0x43b0x2[_0x5b48[235]]= Math[_0x5b48[488]](_0x43b0x2[_0x5b48[235]]/ _0x43b0x4- _0x43b0x5[_0x5b48[235]]);_0x43b0x2[_0x5b48[236]]= Math[_0x5b48[488]](_0x43b0x2[_0x5b48[236]]/ _0x43b0x4- _0x43b0x5[_0x5b48[236]]);_0x43b0x4= this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[248]](this[_0x5b48[1179]][_0x5b48[502]]()[_0x5b48[1197]](this[_0x5b48[724]][_0x5b48[246]]));null!= _0x43b0x4&& (_0x43b0x2[_0x5b48[235]]-= _0x43b0x4[_0x5b48[2078]][_0x5b48[235]],_0x43b0x2[_0x5b48[236]]-= _0x43b0x4[_0x5b48[2078]][_0x5b48[236]]);return _0x43b0x2};mxEdgeHandler[_0x5b48[202]][_0x5b48[3021]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){var _0x43b0x5=this[_0x5b48[1179]][_0x5b48[502]](),_0x43b0x9=_0x43b0x5[_0x5b48[1721]](_0x43b0x2[_0x5b48[246]]);if(null!= _0x43b0x9){var _0x43b0x9=_0x43b0x9[_0x5b48[238]](),_0x43b0xa=this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[2308]](_0x43b0x2,_0x43b0x3,_0x43b0x4);_0x43b0x9[_0x5b48[235]]= _0x43b0xa[_0x5b48[235]];_0x43b0x9[_0x5b48[236]]= _0x43b0xa[_0x5b48[236]];var _0x43b0x12=this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[255]];_0x43b0x9[_0x5b48[1368]]= new mxPoint(0,0);_0x43b0xa= this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[245]](_0x43b0x2,_0x43b0x9);_0x43b0x9[_0x5b48[1368]]= new mxPoint((_0x43b0x3- _0x43b0xa[_0x5b48[235]])/ _0x43b0x12,(_0x43b0x4- _0x43b0xa[_0x5b48[236]])/ _0x43b0x12);_0x43b0x5[_0x5b48[1724]](_0x43b0x2[_0x5b48[246]],_0x43b0x9)}};mxEdgeHandler[_0x5b48[202]][_0x5b48[807]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){_0x43b0x9= this[_0x5b48[1179]][_0x5b48[502]]();var _0x43b0xa=_0x43b0x9[_0x5b48[1197]](_0x43b0x2);_0x43b0x9[_0x5b48[473]]();try{if(_0x43b0x5){var _0x43b0x12=_0x43b0x2[_0x5b48[238]]();_0x43b0x9[_0x5b48[99]](_0x43b0xa,_0x43b0x12,_0x43b0x9[_0x5b48[262]](_0x43b0xa));var _0x43b0x13=_0x43b0x9[_0x5b48[1709]](_0x43b0x2,!_0x43b0x4);this[_0x5b48[1179]][_0x5b48[851]](_0x43b0x12,_0x43b0x13,!_0x43b0x4);_0x43b0x2= _0x43b0x12};var _0x43b0x14=this[_0x5b48[2886]][_0x5b48[2920]];null== _0x43b0x14&& (_0x43b0x14= new mxConnectionConstraint);this[_0x5b48[1179]][_0x5b48[851]](_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x14)}finally{_0x43b0x9[_0x5b48[476]]()};return _0x43b0x2};mxEdgeHandler[_0x5b48[202]][_0x5b48[3022]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){var _0x43b0x5=this[_0x5b48[1179]][_0x5b48[502]](),_0x43b0x9=_0x43b0x5[_0x5b48[1721]](_0x43b0x2);if(null!= _0x43b0x9){_0x43b0x5[_0x5b48[473]]();try{_0x43b0x9= _0x43b0x9[_0x5b48[238]](),_0x43b0x9[_0x5b48[2007]](_0x43b0x3,_0x43b0x4),_0x43b0x5[_0x5b48[1724]](_0x43b0x2,_0x43b0x9),this[_0x5b48[1179]][_0x5b48[851]](_0x43b0x2,null,_0x43b0x4, new mxConnectionConstraint)}finally{_0x43b0x5[_0x5b48[476]]()}}};mxEdgeHandler[_0x5b48[202]][_0x5b48[3023]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=this[_0x5b48[1179]][_0x5b48[502]](),_0x43b0x5=_0x43b0x4[_0x5b48[1721]](_0x43b0x2);null!= _0x43b0x5&& (_0x43b0x5= _0x43b0x5[_0x5b48[238]](),_0x43b0x5[_0x5b48[1525]]= _0x43b0x3,_0x43b0x4[_0x5b48[1724]](_0x43b0x2,_0x43b0x5))};mxEdgeHandler[_0x5b48[202]][_0x5b48[3000]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=mxUtils[_0x5b48[2196]](this[_0x5b48[1179]][_0x5b48[526]],mxEvent[_0x5b48[731]](_0x43b0x3),mxEvent[_0x5b48[733]](_0x43b0x3)),_0x43b0x5=this[_0x5b48[1179]][_0x5b48[1018]](_0x43b0x3);this[_0x5b48[2196]](_0x43b0x4,_0x43b0x5);this[_0x5b48[3024]](_0x43b0x2,_0x43b0x4[_0x5b48[235]],_0x43b0x4[_0x5b48[236]]);mxEvent[_0x5b48[722]](_0x43b0x3)};mxEdgeHandler[_0x5b48[202]][_0x5b48[3024]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){var _0x43b0x5=this[_0x5b48[1179]][_0x5b48[1198]](_0x43b0x2[_0x5b48[246]]);_0x43b0x3= new mxPoint(_0x43b0x3,_0x43b0x4);if(null!= _0x43b0x5){_0x43b0x5= _0x43b0x5[_0x5b48[238]]();_0x43b0x4= this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[513]];var _0x43b0x9=this[_0x5b48[1179]][_0x5b48[441]][_0x5b48[255]];_0x43b0x4= mxUtils[_0x5b48[3025]](_0x43b0x2,(_0x43b0x3[_0x5b48[235]]+ _0x43b0x4[_0x5b48[235]])* _0x43b0x9,(_0x43b0x3[_0x5b48[236]]+ _0x43b0x4[_0x5b48[236]])* _0x43b0x9);null== _0x43b0x5[_0x5b48[1525]]?_0x43b0x5[_0x5b48[1525]]= [_0x43b0x3]:_0x43b0x5[_0x5b48[1525]][_0x5b48[300]](_0x43b0x4,0,_0x43b0x3);this[_0x5b48[1179]][_0x5b48[502]]()[_0x5b48[1724]](_0x43b0x2[_0x5b48[246]],_0x43b0x5);this[_0x5b48[515]]();this[_0x5b48[176]]()}};mxEdgeHandler[_0x5b48[202]][_0x5b48[3012]]= function(_0x43b0x2,_0x43b0x3){if(0< _0x43b0x3&& _0x43b0x3< this[_0x5b48[2997]][_0x5b48[67]]- 1){var _0x43b0x4=this[_0x5b48[1179]][_0x5b48[1198]](this[_0x5b48[724]][_0x5b48[246]]);null!= _0x43b0x4&& null!= _0x43b0x4[_0x5b48[1525]]&& (_0x43b0x4= _0x43b0x4[_0x5b48[238]](),_0x43b0x4[_0x5b48[1525]][_0x5b48[300]](_0x43b0x3- 1,1),this[_0x5b48[1179]][_0x5b48[502]]()[_0x5b48[1724]](_0x43b0x2[_0x5b48[246]],_0x43b0x4),this[_0x5b48[515]](),this[_0x5b48[176]]())}};mxEdgeHandler[_0x5b48[202]][_0x5b48[3026]]= function(_0x43b0x2){_0x43b0x2= 0== _0x43b0x2;var _0x43b0x3=this[_0x5b48[724]][_0x5b48[246]],_0x43b0x4=this[_0x5b48[1179]][_0x5b48[502]]()[_0x5b48[1709]](_0x43b0x3,_0x43b0x2),_0x43b0x5=mxConstants[_0x5b48[2984]];null!= _0x43b0x4&& !this[_0x5b48[1179]][_0x5b48[2551]](_0x43b0x3,_0x43b0x4,_0x43b0x2)|| null== _0x43b0x4&& !this[_0x5b48[1179]][_0x5b48[2661]](_0x43b0x3,_0x43b0x2)?_0x43b0x5= mxConstants[_0x5b48[3027]]:null!= _0x43b0x4&& this[_0x5b48[1179]][_0x5b48[2551]](_0x43b0x3,_0x43b0x4,_0x43b0x2)&& (_0x43b0x5= mxConstants[_0x5b48[3028]]);return _0x43b0x5};mxEdgeHandler[_0x5b48[202]][_0x5b48[258]]= function(){this[_0x5b48[2997]]= this[_0x5b48[724]][_0x5b48[439]][_0x5b48[1853]]();var _0x43b0x2=this[_0x5b48[724]][_0x5b48[246]],_0x43b0x3=mxConstants[_0x5b48[3029]];this[_0x5b48[685]]= new mxPoint(this[_0x5b48[724]][_0x5b48[2079]][_0x5b48[235]],this[_0x5b48[724]][_0x5b48[2079]][_0x5b48[236]]);this[_0x5b48[2972]][_0x5b48[1562]]= new mxRectangle(Math[_0x5b48[488]](this[_0x5b48[685]][_0x5b48[235]]- _0x43b0x3/ 2),Math[_0x5b48[488]](this[_0x5b48[685]][_0x5b48[236]]- _0x43b0x3/ 2),_0x43b0x3,_0x43b0x3);this[_0x5b48[2972]][_0x5b48[258]]();_0x43b0x3= this[_0x5b48[1179]][_0x5b48[2183]](_0x43b0x2);null!= _0x43b0x3&& 0< _0x43b0x3[_0x5b48[67]]&& this[_0x5b48[1179]][_0x5b48[2628]](_0x43b0x2)?this[_0x5b48[2972]][_0x5b48[252]][_0x5b48[124]][_0x5b48[187]]= _0x5b48[189]:this[_0x5b48[2972]][_0x5b48[252]][_0x5b48[124]][_0x5b48[187]]= _0x5b48[188];if(null!= this[_0x5b48[2994]]&& 0< this[_0x5b48[2994]][_0x5b48[67]]){var _0x43b0x4=this[_0x5b48[2997]][_0x5b48[67]]- 1,_0x43b0x2=this[_0x5b48[2997]][0],_0x43b0x5=this[_0x5b48[2997]][0][_0x5b48[236]],_0x43b0x3=this[_0x5b48[2994]][0][_0x5b48[1562]];this[_0x5b48[2994]][0][_0x5b48[1562]]= new mxRectangle(Math[_0x5b48[488]](this[_0x5b48[2997]][0][_0x5b48[235]]- _0x43b0x3[_0x5b48[117]]/ 2),Math[_0x5b48[488]](_0x43b0x5- _0x43b0x3[_0x5b48[119]]/ 2),_0x43b0x3[_0x5b48[117]],_0x43b0x3[_0x5b48[119]]);this[_0x5b48[2994]][0][_0x5b48[1334]]= this[_0x5b48[3026]](0);this[_0x5b48[2994]][0][_0x5b48[258]]();var _0x43b0x5=this[_0x5b48[2997]][_0x43b0x4],_0x43b0x9=this[_0x5b48[2997]][_0x43b0x4][_0x5b48[235]],_0x43b0x4=this[_0x5b48[2997]][_0x43b0x4][_0x5b48[236]],_0x43b0xa=this[_0x5b48[2994]][_0x5b48[67]]- 1,_0x43b0x3=this[_0x5b48[2994]][_0x43b0xa][_0x5b48[1562]];this[_0x5b48[2994]][_0x43b0xa][_0x5b48[1562]]= new mxRectangle(Math[_0x5b48[488]](_0x43b0x9- _0x43b0x3[_0x5b48[117]]/ 2),Math[_0x5b48[488]](_0x43b0x4- _0x43b0x3[_0x5b48[119]]/ 2),_0x43b0x3[_0x5b48[117]],_0x43b0x3[_0x5b48[119]]);this[_0x5b48[2994]][_0x43b0xa][_0x5b48[1334]]= this[_0x5b48[3026]](_0x43b0xa);this[_0x5b48[2994]][_0x43b0xa][_0x5b48[258]]();this[_0x5b48[3030]](_0x43b0x2,_0x43b0x5)};this[_0x5b48[2932]]()};mxEdgeHandler[_0x5b48[202]][_0x5b48[3030]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=this[_0x5b48[1179]][_0x5b48[502]]()[_0x5b48[1721]](this[_0x5b48[724]][_0x5b48[246]])[_0x5b48[1525]];if(null!= _0x43b0x4){null== this[_0x5b48[1525]]&& (this[_0x5b48[1525]]= []);for(var _0x43b0x5=1;_0x43b0x5< this[_0x5b48[2994]][_0x5b48[67]]- 1;_0x43b0x5++){if(null!= this[_0x5b48[2994]][_0x43b0x5]){if(null!= this[_0x5b48[2997]][_0x43b0x5]){var _0x43b0x9=this[_0x5b48[2997]][_0x43b0x5][_0x5b48[235]],_0x43b0xa=this[_0x5b48[2997]][_0x43b0x5][_0x5b48[236]],_0x43b0x12=this[_0x5b48[2994]][_0x43b0x5][_0x5b48[1562]];this[_0x5b48[2994]][_0x43b0x5][_0x5b48[252]][_0x5b48[124]][_0x5b48[187]]= _0x5b48[189];this[_0x5b48[2994]][_0x43b0x5][_0x5b48[1562]]= new mxRectangle(Math[_0x5b48[488]](_0x43b0x9- _0x43b0x12[_0x5b48[117]]/ 2),Math[_0x5b48[488]](_0x43b0xa- _0x43b0x12[_0x5b48[119]]/ 2),_0x43b0x12[_0x5b48[117]],_0x43b0x12[_0x5b48[119]]);this[_0x5b48[2994]][_0x43b0x5][_0x5b48[258]]();this[_0x5b48[1525]][_0x43b0x5- 1]= _0x43b0x4[_0x43b0x5- 1]}else {this[_0x5b48[2994]][_0x43b0x5][_0x5b48[515]](),this[_0x5b48[2994]][_0x43b0x5]= null}}}}};mxEdgeHandler[_0x5b48[202]][_0x5b48[2932]]= function(){if(this[_0x5b48[3014]]){var _0x43b0x2=mxConstants[_0x5b48[3029]],_0x43b0x2= new mxRectangle(Math[_0x5b48[488]](this[_0x5b48[685]][_0x5b48[235]]- _0x43b0x2/ 2),Math[_0x5b48[488]](this[_0x5b48[685]][_0x5b48[236]]- _0x43b0x2/ 2),_0x43b0x2,_0x43b0x2);this[_0x5b48[2972]][_0x5b48[1562]]= _0x43b0x2;this[_0x5b48[2972]][_0x5b48[258]]()}else {this[_0x5b48[253]][_0x5b48[1525]]= this[_0x5b48[2997]],this[_0x5b48[253]][_0x5b48[258]]()}};mxEdgeHandler[_0x5b48[202]][_0x5b48[515]]= function(){null!= this[_0x5b48[2885]]&& (this[_0x5b48[2885]][_0x5b48[515]](),this[_0x5b48[2885]]= null);null!= this[_0x5b48[253]]&& (this[_0x5b48[253]][_0x5b48[515]](),this[_0x5b48[253]]= null);null!= this[_0x5b48[2972]]&& (this[_0x5b48[2972]][_0x5b48[515]](),this[_0x5b48[2972]]= null);null!= this[_0x5b48[2886]]&& (this[_0x5b48[2886]][_0x5b48[515]](),this[_0x5b48[2886]]= null);if(null!= this[_0x5b48[2994]]){for(var _0x43b0x2=0;_0x43b0x2< this[_0x5b48[2994]][_0x5b48[67]];_0x43b0x2++){null!= this[_0x5b48[2994]][_0x43b0x2]&& (this[_0x5b48[2994]][_0x43b0x2][_0x5b48[515]](),this[_0x5b48[2994]][_0x43b0x2]= null)}}};function mxElbowEdgeHandler(_0x43b0x2){mxEdgeHandler[_0x5b48[239]](this,_0x43b0x2)}mxUtils[_0x5b48[1284]](mxElbowEdgeHandler,mxEdgeHandler);mxElbowEdgeHandler[_0x5b48[202]]= new mxEdgeHandler;mxElbowEdgeHandler[_0x5b48[202]][_0x5b48[196]]= mxElbowEdgeHandler;mxElbowEdgeHandler[_0x5b48[202]][_0x5b48[3031]]= !0;mxElbowEdgeHandler[_0x5b48[202]][_0x5b48[3032]]= _0x5b48[130]!= mxClient[_0x5b48[90]]?_0x5b48[3033]:_0x5b48[110];mxElbowEdgeHandler[_0x5b48[202]][_0x5b48[3001]]= function(){var _0x43b0x2=[],_0x43b0x3=this[_0x5b48[3009]](0);this[_0x5b48[3002]](_0x43b0x3);_0x43b0x3[_0x5b48[252]][_0x5b48[124]][_0x5b48[270]]= mxConstants[_0x5b48[3011]];mxEvent[_0x5b48[2733]](_0x43b0x3[_0x5b48[252]],this[_0x5b48[1179]],this[_0x5b48[724]]);_0x43b0x2[_0x5b48[207]](_0x43b0x3);mxClient[_0x5b48[754]]&& _0x43b0x3[_0x5b48[252]][_0x5b48[57]](_0x5b48[1377],_0x5b48[130]);_0x43b0x2[_0x5b48[207]](this[_0x5b48[3034]]());this[_0x5b48[1525]][_0x5b48[207]]( new mxPoint(0,0));_0x43b0x3= this[_0x5b48[3009]](2);this[_0x5b48[3002]](_0x43b0x3);_0x43b0x3[_0x5b48[252]][_0x5b48[124]][_0x5b48[270]]= mxConstants[_0x5b48[3011]];mxEvent[_0x5b48[2733]](_0x43b0x3[_0x5b48[252]],this[_0x5b48[1179]],this[_0x5b48[724]]);_0x43b0x2[_0x5b48[207]](_0x43b0x3);mxClient[_0x5b48[754]]&& _0x43b0x3[_0x5b48[252]][_0x5b48[57]](_0x5b48[1377],_0x5b48[130]);return _0x43b0x2};mxElbowEdgeHandler[_0x5b48[202]][_0x5b48[3034]]= function(){var _0x43b0x2=this[_0x5b48[3009]]();this[_0x5b48[3002]](_0x43b0x2);var _0x43b0x3=this[_0x5b48[3035]]();_0x43b0x2[_0x5b48[252]][_0x5b48[124]][_0x5b48[270]]= _0x43b0x3;_0x43b0x3= mxUtils[_0x5b48[885]](this,function(_0x43b0x2){!mxEvent[_0x5b48[721]](_0x43b0x2)&& this[_0x5b48[3031]] && (this[_0x5b48[1179]][_0x5b48[854]](this[_0x5b48[724]][_0x5b48[246]],_0x43b0x2),mxEvent[_0x5b48[722]](_0x43b0x2))});mxEvent[_0x5b48[2733]](_0x43b0x2[_0x5b48[252]],this[_0x5b48[1179]],this[_0x5b48[724]],null,null,null,_0x43b0x3);this[_0x5b48[1179]][_0x5b48[2662]](this[_0x5b48[724]][_0x5b48[246]])|| (_0x43b0x2[_0x5b48[252]][_0x5b48[124]][_0x5b48[495]]= _0x5b48[130]);return _0x43b0x2};mxElbowEdgeHandler[_0x5b48[202]][_0x5b48[3035]]= function(){return this[_0x5b48[724]][_0x5b48[124]][mxConstants[_0x5b48[2294]]]== mxEdgeStyle[_0x5b48[2570]]|| this[_0x5b48[724]][_0x5b48[124]][mxConstants[_0x5b48[2294]]]== mxConstants[_0x5b48[3036]]|| (this[_0x5b48[724]][_0x5b48[124]][mxConstants[_0x5b48[2294]]]== mxEdgeStyle[_0x5b48[2568]]|| this[_0x5b48[724]][_0x5b48[124]][mxConstants[_0x5b48[2294]]]== mxConstants[_0x5b48[3037]])&& this[_0x5b48[724]][_0x5b48[124]][mxConstants[_0x5b48[2231]]]== mxConstants[_0x5b48[2232]]?_0x5b48[3038]:_0x5b48[3039]};mxElbowEdgeHandler[_0x5b48[202]][_0x5b48[2597]]= function(_0x43b0x2){var _0x43b0x3=null;if(null!= this[_0x5b48[2994]]&& null!= this[_0x5b48[2994]][1]&& (_0x43b0x2== this[_0x5b48[2994]][1][_0x5b48[252]]|| _0x43b0x2[_0x5b48[265]]== this[_0x5b48[2994]][1][_0x5b48[252]])){_0x43b0x3= this[_0x5b48[3032]],_0x43b0x3= mxResources[_0x5b48[203]](_0x43b0x3)|| _0x43b0x3};return _0x43b0x3};mxElbowEdgeHandler[_0x5b48[202]][_0x5b48[2196]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[518]](),_0x43b0x5=this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[512]](),_0x43b0x9=this[_0x5b48[724]][_0x5b48[2078]];_0x43b0x3&& (_0x43b0x2[_0x5b48[235]]= this[_0x5b48[1179]][_0x5b48[1021]](_0x43b0x2[_0x5b48[235]]),_0x43b0x2[_0x5b48[236]]= this[_0x5b48[1179]][_0x5b48[1021]](_0x43b0x2[_0x5b48[236]]));_0x43b0x2[_0x5b48[235]]= Math[_0x5b48[488]](_0x43b0x2[_0x5b48[235]]/ _0x43b0x4- _0x43b0x5[_0x5b48[235]]- _0x43b0x9[_0x5b48[235]]);_0x43b0x2[_0x5b48[236]]= Math[_0x5b48[488]](_0x43b0x2[_0x5b48[236]]/ _0x43b0x4- _0x43b0x5[_0x5b48[236]]- _0x43b0x9[_0x5b48[236]])};mxElbowEdgeHandler[_0x5b48[202]][_0x5b48[3030]]= function(_0x43b0x2,_0x43b0x3){var _0x43b0x4=this[_0x5b48[1179]][_0x5b48[502]]()[_0x5b48[1721]](this[_0x5b48[724]][_0x5b48[246]])[_0x5b48[1525]],_0x43b0x4=null!= _0x43b0x4?_0x43b0x4[0]:null,_0x43b0x4=null== _0x43b0x4? new mxPoint(_0x43b0x2[_0x5b48[235]]+ (_0x43b0x3[_0x5b48[235]]- _0x43b0x2[_0x5b48[235]])/ 2,_0x43b0x2[_0x5b48[236]]+ (_0x43b0x3[_0x5b48[236]]- _0x43b0x2[_0x5b48[236]])/ 2): new mxPoint(this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[255]]* (_0x43b0x4[_0x5b48[235]]+ this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[513]][_0x5b48[235]]+ this[_0x5b48[724]][_0x5b48[2078]][_0x5b48[235]]),this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[255]]* (_0x43b0x4[_0x5b48[236]]+ this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[513]][_0x5b48[236]]+ this[_0x5b48[724]][_0x5b48[2078]][_0x5b48[236]])),_0x43b0x5=this[_0x5b48[2994]][1][_0x5b48[1562]],_0x43b0x9=_0x43b0x5[_0x5b48[117]],_0x43b0x5=_0x43b0x5[_0x5b48[119]];null== this[_0x5b48[2959]]&& (_0x43b0x5= _0x43b0x9= mxConstants[_0x5b48[2974]]);var _0x43b0xa= new mxRectangle(Math[_0x5b48[488]](_0x43b0x4[_0x5b48[235]]- _0x43b0x9/ 2),Math[_0x5b48[488]](_0x43b0x4[_0x5b48[236]]- _0x43b0x5/ 2),_0x43b0x9,_0x43b0x5);null== this[_0x5b48[2959]]&& (_0x5b48[188]!= this[_0x5b48[2972]][_0x5b48[252]][_0x5b48[124]][_0x5b48[187]]&& mxUtils[_0x5b48[1825]](_0x43b0xa,this[_0x5b48[2972]][_0x5b48[1562]]))&& (_0x43b0x9+= 3,_0x43b0x5+= 3,_0x43b0xa= new mxRectangle(Math[_0x5b48[488]](_0x43b0x4[_0x5b48[235]]- _0x43b0x9/ 2),Math[_0x5b48[488]](_0x43b0x4[_0x5b48[236]]- _0x43b0x5/ 2),_0x43b0x9,_0x43b0x5));this[_0x5b48[2994]][1][_0x5b48[1562]]= _0x43b0xa;this[_0x5b48[2994]][1][_0x5b48[258]]()};function mxEdgeSegmentHandler(_0x43b0x2){mxEdgeHandler[_0x5b48[239]](this,_0x43b0x2)}mxUtils[_0x5b48[1284]](mxEdgeSegmentHandler,mxEdgeHandler);mxEdgeSegmentHandler[_0x5b48[202]]= new mxElbowEdgeHandler;mxEdgeSegmentHandler[_0x5b48[202]][_0x5b48[196]]= mxEdgeSegmentHandler;mxEdgeSegmentHandler[_0x5b48[202]][_0x5b48[3018]]= function(_0x43b0x2){if(this[_0x5b48[729]]|| this[_0x5b48[3013]]){return mxElbowEdgeHandler[_0x5b48[202]][_0x5b48[3018]][_0x5b48[183]](this,arguments)};this[_0x5b48[2196]](_0x43b0x2,!1);var _0x43b0x3=this[_0x5b48[724]][_0x5b48[439]],_0x43b0x4=_0x43b0x3[0][_0x5b48[238]]();this[_0x5b48[2196]](_0x43b0x4,!1);for(var _0x43b0x5=[],_0x43b0x9=1;_0x43b0x9< _0x43b0x3[_0x5b48[67]];_0x43b0x9++){var _0x43b0xa=_0x43b0x3[_0x43b0x9][_0x5b48[238]]();this[_0x5b48[2196]](_0x43b0xa,!1);_0x43b0x9== this[_0x5b48[1983]]&& (_0x43b0x4[_0x5b48[235]]== _0x43b0xa[_0x5b48[235]]?(_0x43b0x4[_0x5b48[235]]= _0x43b0x2[_0x5b48[235]],_0x43b0xa[_0x5b48[235]]= _0x43b0x2[_0x5b48[235]]):(_0x43b0x4[_0x5b48[236]]= _0x43b0x2[_0x5b48[236]],_0x43b0xa[_0x5b48[236]]= _0x43b0x2[_0x5b48[236]]));_0x43b0x9< _0x43b0x3[_0x5b48[67]]- 1&& _0x43b0x5[_0x5b48[207]](_0x43b0xa);_0x43b0x4= _0x43b0xa};if(1== _0x43b0x5[_0x5b48[67]]){if(_0x43b0x4= this[_0x5b48[724]][_0x5b48[441]],_0x43b0x9= this[_0x5b48[724]][_0x5b48[2089]](!0),_0x43b0xa= this[_0x5b48[724]][_0x5b48[2089]](!1),null!= _0x43b0xa& null!= _0x43b0x9){var _0x43b0x12=this[_0x5b48[724]][_0x5b48[2078]][_0x5b48[235]],_0x43b0x13=this[_0x5b48[724]][_0x5b48[2078]][_0x5b48[236]];mxUtils[_0x5b48[442]](_0x43b0xa,_0x43b0x5[0][_0x5b48[235]]+ _0x43b0x12,_0x43b0x5[0][_0x5b48[236]]+ _0x43b0x13)?_0x43b0x3[1][_0x5b48[236]]== _0x43b0x3[2][_0x5b48[236]]?_0x43b0x5[0][_0x5b48[236]]= _0x43b0x4[_0x5b48[2228]](_0x43b0x9)- _0x43b0x13:_0x43b0x5[0][_0x5b48[235]]= _0x43b0x4[_0x5b48[2230]](_0x43b0x9)- _0x43b0x12:mxUtils[_0x5b48[442]](_0x43b0x9,_0x43b0x5[0][_0x5b48[235]]+ _0x43b0x12,_0x43b0x5[0][_0x5b48[236]]+ _0x43b0x13)&& (_0x43b0x3[1][_0x5b48[236]]== _0x43b0x3[0][_0x5b48[236]]?_0x43b0x5[0][_0x5b48[236]]= _0x43b0x4[_0x5b48[2228]](_0x43b0xa)- _0x43b0x13:_0x43b0x5[0][_0x5b48[235]]= _0x43b0x4[_0x5b48[2230]](_0x43b0xa)- _0x43b0x12)}}else {0== _0x43b0x5[_0x5b48[67]]&& (_0x43b0x5= [_0x43b0x2])};return _0x43b0x5};mxEdgeSegmentHandler[_0x5b48[202]][_0x5b48[3001]]= function(){var _0x43b0x2=[],_0x43b0x3=this[_0x5b48[3009]](0);this[_0x5b48[3002]](_0x43b0x3);_0x43b0x3[_0x5b48[252]][_0x5b48[124]][_0x5b48[270]]= mxConstants[_0x5b48[3011]];mxEvent[_0x5b48[2733]](_0x43b0x3[_0x5b48[252]],this[_0x5b48[1179]],this[_0x5b48[724]]);_0x43b0x2[_0x5b48[207]](_0x43b0x3);mxClient[_0x5b48[754]]&& _0x43b0x3[_0x5b48[252]][_0x5b48[57]](_0x5b48[1377],_0x5b48[130]);var _0x43b0x4=this[_0x5b48[724]][_0x5b48[439]];if(this[_0x5b48[1179]][_0x5b48[2662]](this[_0x5b48[724]][_0x5b48[246]])){null== this[_0x5b48[1525]]&& (this[_0x5b48[1525]]= []);for(var _0x43b0x5=0;_0x43b0x5< _0x43b0x4[_0x5b48[67]]- 1;_0x43b0x5++){_0x43b0x3= this[_0x5b48[3034]](),_0x43b0x2[_0x5b48[207]](_0x43b0x3),_0x43b0x3[_0x5b48[252]][_0x5b48[124]][_0x5b48[270]]= 0== _0x43b0x4[_0x43b0x5][_0x5b48[235]]- _0x43b0x4[_0x43b0x5+ 1][_0x5b48[235]]?_0x5b48[3039]:_0x5b48[3038],this[_0x5b48[1525]][_0x5b48[207]]( new mxPoint(0,0)),mxClient[_0x5b48[754]]&& _0x43b0x3[_0x5b48[252]][_0x5b48[57]](_0x5b48[1377],_0x5b48[130])}};_0x43b0x3= this[_0x5b48[3009]](_0x43b0x4[_0x5b48[67]]);this[_0x5b48[3002]](_0x43b0x3);_0x43b0x3[_0x5b48[252]][_0x5b48[124]][_0x5b48[270]]= mxConstants[_0x5b48[3011]];mxEvent[_0x5b48[2733]](_0x43b0x3[_0x5b48[252]],this[_0x5b48[1179]],this[_0x5b48[724]]);_0x43b0x2[_0x5b48[207]](_0x43b0x3);mxClient[_0x5b48[754]]&& _0x43b0x3[_0x5b48[252]][_0x5b48[57]](_0x5b48[1377],_0x5b48[130]);return _0x43b0x2};mxEdgeSegmentHandler[_0x5b48[202]][_0x5b48[258]]= function(){this[_0x5b48[802]]();mxEdgeHandler[_0x5b48[202]][_0x5b48[258]][_0x5b48[183]](this,arguments)};mxEdgeSegmentHandler[_0x5b48[202]][_0x5b48[802]]= function(){if(null!= this[_0x5b48[2994]]){for(var _0x43b0x2=0;_0x43b0x2< this[_0x5b48[2994]][_0x5b48[67]];_0x43b0x2++){null!= this[_0x5b48[2994]][_0x43b0x2]&& (this[_0x5b48[2994]][_0x43b0x2][_0x5b48[515]](),this[_0x5b48[2994]][_0x43b0x2]= null)};this[_0x5b48[2994]]= this[_0x5b48[3001]]()}};mxEdgeSegmentHandler[_0x5b48[202]][_0x5b48[3030]]= function(_0x43b0x2,_0x43b0x3){if(this[_0x5b48[1179]][_0x5b48[2662]](this[_0x5b48[724]][_0x5b48[246]])){var _0x43b0x4=mxConstants[_0x5b48[2974]],_0x43b0x5=this[_0x5b48[724]][_0x5b48[439]];if(null!= _0x43b0x5&& 1< _0x43b0x5[_0x5b48[67]]){for(var _0x43b0x9=0;_0x43b0x9< this[_0x5b48[724]][_0x5b48[439]][_0x5b48[67]]- 1;_0x43b0x9++){if(null!= this[_0x5b48[2994]][_0x43b0x9+ 1]){_0x43b0x2= _0x43b0x5[_0x43b0x9];_0x43b0x3= _0x43b0x5[_0x43b0x9+ 1];var _0x43b0xa= new mxPoint(_0x43b0x2[_0x5b48[235]]+ (_0x43b0x3[_0x5b48[235]]- _0x43b0x2[_0x5b48[235]])/ 2,_0x43b0x2[_0x5b48[236]]+ (_0x43b0x3[_0x5b48[236]]- _0x43b0x2[_0x5b48[236]])/ 2);this[_0x5b48[2994]][_0x43b0x9+ 1][_0x5b48[1562]]= new mxRectangle(Math[_0x5b48[488]](_0x43b0xa[_0x5b48[235]]- _0x43b0x4/ 2),Math[_0x5b48[488]](_0x43b0xa[_0x5b48[236]]- _0x43b0x4/ 2),_0x43b0x4,_0x43b0x4);this[_0x5b48[2994]][_0x43b0x9+ 1][_0x5b48[258]]()}}}}};mxEdgeSegmentHandler[_0x5b48[202]][_0x5b48[3023]]= function(_0x43b0x2,_0x43b0x3){_0x43b0x3= [];var _0x43b0x4=this[_0x5b48[2997]];if(1< _0x43b0x4[_0x5b48[67]]){for(var _0x43b0x5=_0x43b0x4[0],_0x43b0x9=_0x43b0x4[1],_0x43b0xa=2;_0x43b0xa< _0x43b0x4[_0x5b48[67]];_0x43b0xa++){var _0x43b0x12=_0x43b0x4[_0x43b0xa];if((Math[_0x5b48[488]](_0x43b0x5[_0x5b48[235]])!= Math[_0x5b48[488]](_0x43b0x9[_0x5b48[235]])|| Math[_0x5b48[488]](_0x43b0x9[_0x5b48[235]])!= Math[_0x5b48[488]](_0x43b0x12[_0x5b48[235]]))&& (Math[_0x5b48[488]](_0x43b0x5[_0x5b48[236]])!= Math[_0x5b48[488]](_0x43b0x9[_0x5b48[236]])|| Math[_0x5b48[488]](_0x43b0x9[_0x5b48[236]])!= Math[_0x5b48[488]](_0x43b0x12[_0x5b48[236]]))){_0x43b0x5= _0x43b0x9,_0x43b0x9= _0x43b0x9[_0x5b48[238]](),this[_0x5b48[2196]](_0x43b0x9,!1),_0x43b0x3[_0x5b48[207]](_0x43b0x9)};_0x43b0x9= _0x43b0x12}};mxElbowEdgeHandler[_0x5b48[202]][_0x5b48[3023]][_0x5b48[183]](this,arguments)};function mxKeyHandler(_0x43b0x2,_0x43b0x3){null!= _0x43b0x2&& (this[_0x5b48[1179]]= _0x43b0x2,this[_0x5b48[772]]= _0x43b0x3|| document[_0x5b48[158]],this[_0x5b48[3040]]= [],this[_0x5b48[3041]]= [],this[_0x5b48[3042]]= [],this[_0x5b48[3043]]= [],mxEvent[_0x5b48[169]](this[_0x5b48[772]],_0x5b48[2123],mxUtils[_0x5b48[885]](this,function(_0x43b0x2){this[_0x5b48[3044]](_0x43b0x2)})),mxClient[_0x5b48[80]]&& mxEvent[_0x5b48[169]](window,_0x5b48[2428],mxUtils[_0x5b48[885]](this,function(){this[_0x5b48[515]]()})))}mxKeyHandler[_0x5b48[202]][_0x5b48[1179]]= null;mxKeyHandler[_0x5b48[202]][_0x5b48[772]]= null;mxKeyHandler[_0x5b48[202]][_0x5b48[3040]]= null;mxKeyHandler[_0x5b48[202]][_0x5b48[3041]]= null;mxKeyHandler[_0x5b48[202]][_0x5b48[3042]]= null;mxKeyHandler[_0x5b48[202]][_0x5b48[3043]]= null;mxKeyHandler[_0x5b48[202]][_0x5b48[984]]= !0;mxKeyHandler[_0x5b48[202]][_0x5b48[994]]= function(){return this[_0x5b48[984]]};mxKeyHandler[_0x5b48[202]][_0x5b48[995]]= function(_0x43b0x2){this[_0x5b48[984]]= _0x43b0x2};mxKeyHandler[_0x5b48[202]][_0x5b48[3045]]= function(_0x43b0x2,_0x43b0x3){this[_0x5b48[3040]][_0x43b0x2]= _0x43b0x3};mxKeyHandler[_0x5b48[202]][_0x5b48[3046]]= function(_0x43b0x2,_0x43b0x3){this[_0x5b48[3041]][_0x43b0x2]= _0x43b0x3};mxKeyHandler[_0x5b48[202]][_0x5b48[3047]]= function(_0x43b0x2,_0x43b0x3){this[_0x5b48[3042]][_0x43b0x2]= _0x43b0x3};mxKeyHandler[_0x5b48[202]][_0x5b48[3048]]= function(_0x43b0x2,_0x43b0x3){this[_0x5b48[3043]][_0x43b0x2]= _0x43b0x3};mxKeyHandler[_0x5b48[202]][_0x5b48[775]]= function(_0x43b0x2){return mxEvent[_0x5b48[775]](_0x43b0x2)};mxKeyHandler[_0x5b48[202]][_0x5b48[3049]]= function(_0x43b0x2){return null!= _0x43b0x2?this[_0x5b48[775]](_0x43b0x2)?mxEvent[_0x5b48[774]](_0x43b0x2)?this[_0x5b48[3043]][_0x43b0x2[_0x5b48[2124]]]:this[_0x5b48[3042]][_0x43b0x2[_0x5b48[2124]]]:mxEvent[_0x5b48[774]](_0x43b0x2)?this[_0x5b48[3041]][_0x43b0x2[_0x5b48[2124]]]:this[_0x5b48[3040]][_0x43b0x2[_0x5b48[2124]]]:null};mxKeyHandler[_0x5b48[202]][_0x5b48[3050]]= function(_0x43b0x2){_0x43b0x2= mxEvent[_0x5b48[728]](_0x43b0x2);if(_0x43b0x2== this[_0x5b48[772]]|| _0x43b0x2[_0x5b48[265]]== this[_0x5b48[772]]|| null!= this[_0x5b48[1179]][_0x5b48[2347]]&& _0x43b0x2== this[_0x5b48[1179]][_0x5b48[2347]][_0x5b48[126]]){return !0};for(;null!= _0x43b0x2;){if(_0x43b0x2== this[_0x5b48[1179]][_0x5b48[526]]){return !0};_0x43b0x2= _0x43b0x2[_0x5b48[265]]};return !1};mxKeyHandler[_0x5b48[202]][_0x5b48[3044]]= function(_0x43b0x2){if(this[_0x5b48[1179]][_0x5b48[994]]()&& !mxEvent[_0x5b48[721]](_0x43b0x2)&& this[_0x5b48[3050]](_0x43b0x2)&& this[_0x5b48[994]]()){if(27== _0x43b0x2[_0x5b48[2124]]){this[_0x5b48[859]](_0x43b0x2)}else {if(!this[_0x5b48[1179]][_0x5b48[2203]]()){var _0x43b0x3=this[_0x5b48[3049]](_0x43b0x2);null!= _0x43b0x3&& (_0x43b0x3(_0x43b0x2),mxEvent[_0x5b48[722]](_0x43b0x2))}}}};mxKeyHandler[_0x5b48[202]][_0x5b48[859]]= function(_0x43b0x2){this[_0x5b48[1179]][_0x5b48[2608]]()&& this[_0x5b48[1179]][_0x5b48[859]](_0x43b0x2)};mxKeyHandler[_0x5b48[202]][_0x5b48[515]]= function(){this[_0x5b48[772]]= null};function mxTooltipHandler(_0x43b0x2,_0x43b0x3){null!= _0x43b0x2&& (this[_0x5b48[1179]]= _0x43b0x2,this[_0x5b48[1140]]= _0x43b0x3|| 500,this[_0x5b48[1179]][_0x5b48[1133]](this))}mxTooltipHandler[_0x5b48[202]][_0x5b48[931]]= 10005;mxTooltipHandler[_0x5b48[202]][_0x5b48[1179]]= null;mxTooltipHandler[_0x5b48[202]][_0x5b48[1140]]= null;mxTooltipHandler[_0x5b48[202]][_0x5b48[3051]]= !1;mxTooltipHandler[_0x5b48[202]][_0x5b48[984]]= !0;mxTooltipHandler[_0x5b48[202]][_0x5b48[994]]= function(){return this[_0x5b48[984]]};mxTooltipHandler[_0x5b48[202]][_0x5b48[995]]= function(_0x43b0x2){this[_0x5b48[984]]= _0x43b0x2};mxTooltipHandler[_0x5b48[202]][_0x5b48[2277]]= function(){return this[_0x5b48[3051]]};mxTooltipHandler[_0x5b48[202]][_0x5b48[3052]]= function(_0x43b0x2){this[_0x5b48[3051]]= _0x43b0x2};mxTooltipHandler[_0x5b48[202]][_0x5b48[176]]= function(){null!= document[_0x5b48[112]]&& (this[_0x5b48[485]]= document[_0x5b48[55]](_0x5b48[485]),this[_0x5b48[485]][_0x5b48[926]]= _0x5b48[3053],this[_0x5b48[485]][_0x5b48[124]][_0x5b48[187]]= _0x5b48[188],this[_0x5b48[485]][_0x5b48[124]][_0x5b48[931]]= this[_0x5b48[931]],document[_0x5b48[112]][_0x5b48[62]](this[_0x5b48[485]]),mxEvent[_0x5b48[169]](this[_0x5b48[485]],_0x5b48[751],mxUtils[_0x5b48[885]](this,function(_0x43b0x2){this[_0x5b48[3054]]()})))};mxTooltipHandler[_0x5b48[202]][_0x5b48[787]]= function(_0x43b0x2,_0x43b0x3){this[_0x5b48[862]](_0x43b0x3,!1);this[_0x5b48[3054]]()};mxTooltipHandler[_0x5b48[202]][_0x5b48[788]]= function(_0x43b0x2,_0x43b0x3){if(_0x43b0x3[_0x5b48[730]]()!= this[_0x5b48[1217]]|| _0x43b0x3[_0x5b48[732]]()!= this[_0x5b48[1218]]){this[_0x5b48[862]](_0x43b0x3,!0),(this[_0x5b48[2277]]()|| _0x43b0x3[_0x5b48[248]]()!= this[_0x5b48[724]]|| _0x43b0x3[_0x5b48[728]]()!= this[_0x5b48[252]]&& (!this[_0x5b48[3055]]|| null!= _0x43b0x3[_0x5b48[248]]()&& this[_0x5b48[3055]]== (_0x43b0x3[_0x5b48[729]](_0x43b0x3[_0x5b48[248]]()[_0x5b48[253]])|| !_0x43b0x3[_0x5b48[729]](_0x43b0x3[_0x5b48[248]]()[_0x5b48[963]]))))&& this[_0x5b48[3054]]()};this[_0x5b48[1217]]= _0x43b0x3[_0x5b48[730]]();this[_0x5b48[1218]]= _0x43b0x3[_0x5b48[732]]()};mxTooltipHandler[_0x5b48[202]][_0x5b48[789]]= function(_0x43b0x2,_0x43b0x3){this[_0x5b48[862]](_0x43b0x3,!0);this[_0x5b48[3054]]()};mxTooltipHandler[_0x5b48[202]][_0x5b48[3056]]= function(){null!= this[_0x5b48[1123]]&& (window[_0x5b48[2924]](this[_0x5b48[1123]]),this[_0x5b48[1123]]= null)};mxTooltipHandler[_0x5b48[202]][_0x5b48[862]]= function(_0x43b0x2,_0x43b0x3){this[_0x5b48[3056]]();if(_0x43b0x3&& this[_0x5b48[994]]()&& null!= _0x43b0x2[_0x5b48[248]]()&& (null== this[_0x5b48[485]]|| _0x5b48[188]== this[_0x5b48[485]][_0x5b48[124]][_0x5b48[187]])){var _0x43b0x4=_0x43b0x2[_0x5b48[248]](),_0x43b0x5=_0x43b0x2[_0x5b48[728]](),_0x43b0x9=_0x43b0x2[_0x5b48[730]](),_0x43b0xa=_0x43b0x2[_0x5b48[732]](),_0x43b0x12=_0x43b0x2[_0x5b48[729]](_0x43b0x4[_0x5b48[253]])|| _0x43b0x2[_0x5b48[729]](_0x43b0x4[_0x5b48[963]]);this[_0x5b48[1123]]= window[_0x5b48[261]](mxUtils[_0x5b48[885]](this,function(){if(!this[_0x5b48[1179]][_0x5b48[2203]]()&& !this[_0x5b48[1179]][_0x5b48[2316]][_0x5b48[1031]]()){var _0x43b0x2=this[_0x5b48[1179]][_0x5b48[2595]](_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa);this[_0x5b48[539]](_0x43b0x2,_0x43b0x9,_0x43b0xa);this[_0x5b48[724]]= _0x43b0x4;this[_0x5b48[252]]= _0x43b0x5;this[_0x5b48[3055]]= _0x43b0x12}}),this[_0x5b48[1140]])}};mxTooltipHandler[_0x5b48[202]][_0x5b48[801]]= function(){this[_0x5b48[3056]]();this[_0x5b48[3054]]()};mxTooltipHandler[_0x5b48[202]][_0x5b48[3054]]= function(){null!= this[_0x5b48[485]]&& (this[_0x5b48[485]][_0x5b48[124]][_0x5b48[187]]= _0x5b48[188])};mxTooltipHandler[_0x5b48[202]][_0x5b48[539]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){if(null!= _0x43b0x2&& 0< _0x43b0x2[_0x5b48[67]]){null== this[_0x5b48[485]]&& this[_0x5b48[176]]();var _0x43b0x5=mxUtils[_0x5b48[444]]();this[_0x5b48[485]][_0x5b48[124]][_0x5b48[361]]= _0x43b0x3+ _0x43b0x5[_0x5b48[235]]+ _0x5b48[168];this[_0x5b48[485]][_0x5b48[124]][_0x5b48[125]]= _0x43b0x4+ mxConstants[_0x5b48[560]]+ _0x43b0x5[_0x5b48[236]]+ _0x5b48[168];mxUtils[_0x5b48[1331]](_0x43b0x2)?(this[_0x5b48[485]][_0x5b48[339]]= _0x5b48[110],this[_0x5b48[485]][_0x5b48[62]](_0x43b0x2)):this[_0x5b48[485]][_0x5b48[339]]= _0x43b0x2[_0x5b48[230]](/\n/g,_0x5b48[545]);this[_0x5b48[485]][_0x5b48[124]][_0x5b48[187]]= _0x5b48[110];mxUtils[_0x5b48[933]](this[_0x5b48[485]])}};mxTooltipHandler[_0x5b48[202]][_0x5b48[515]]= function(){this[_0x5b48[1179]][_0x5b48[1148]](this);mxEvent[_0x5b48[762]](this[_0x5b48[485]]);null!= this[_0x5b48[485]]&& null!= this[_0x5b48[485]][_0x5b48[265]]&& this[_0x5b48[485]][_0x5b48[265]][_0x5b48[266]](this[_0x5b48[485]]);this[_0x5b48[485]]= null};function mxCellTracker(_0x43b0x2,_0x43b0x3,_0x43b0x4){mxCellMarker[_0x5b48[239]](this,_0x43b0x2,_0x43b0x3);this[_0x5b48[1179]][_0x5b48[1133]](this);null!= _0x43b0x4&& (this[_0x5b48[736]]= _0x43b0x4);mxClient[_0x5b48[80]]&& mxEvent[_0x5b48[169]](window,_0x5b48[2428],mxUtils[_0x5b48[885]](this,function(){this[_0x5b48[515]]()}))}mxUtils[_0x5b48[1284]](mxCellTracker,mxCellMarker);mxCellTracker[_0x5b48[202]][_0x5b48[787]]= function(_0x43b0x2,_0x43b0x3){};mxCellTracker[_0x5b48[202]][_0x5b48[788]]= function(_0x43b0x2,_0x43b0x3){this[_0x5b48[994]]()&& this[_0x5b48[2871]](_0x43b0x3)};mxCellTracker[_0x5b48[202]][_0x5b48[789]]= function(_0x43b0x2,_0x43b0x3){this[_0x5b48[862]]()};mxCellTracker[_0x5b48[202]][_0x5b48[515]]= function(){this[_0x5b48[2717]]|| (this[_0x5b48[2717]]= !0,this[_0x5b48[1179]][_0x5b48[1148]](this),mxCellMarker[_0x5b48[202]][_0x5b48[515]][_0x5b48[183]](this))};function mxCellHighlight(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){null!= _0x43b0x2&& (this[_0x5b48[1179]]= _0x43b0x2,this[_0x5b48[2943]]= null!= _0x43b0x3?_0x43b0x3:mxConstants[_0x5b48[2854]],this[_0x5b48[610]]= null!= _0x43b0x4?_0x43b0x4:mxConstants[_0x5b48[3057]],this[_0x5b48[648]]= null!= _0x43b0x5?_0x43b0x5:!1,this[_0x5b48[3058]]= mxUtils[_0x5b48[885]](this,function(){this[_0x5b48[2950]]()}),this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[169]](mxEvent.SCALE,this[_0x5b48[3058]]),this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[169]](mxEvent.TRANSLATE,this[_0x5b48[3058]]),this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[169]](mxEvent.SCALE_AND_TRANSLATE,this[_0x5b48[3058]]),this[_0x5b48[1179]][_0x5b48[502]]()[_0x5b48[169]](mxEvent.CHANGE,this[_0x5b48[3058]]),this[_0x5b48[2877]]= mxUtils[_0x5b48[885]](this,function(){this[_0x5b48[801]]()}),this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[169]](mxEvent.DOWN,this[_0x5b48[2877]]),this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[169]](mxEvent.UP,this[_0x5b48[2877]]))}mxCellHighlight[_0x5b48[202]][_0x5b48[3059]]= !1;mxCellHighlight[_0x5b48[202]][_0x5b48[1179]]= !0;mxCellHighlight[_0x5b48[202]][_0x5b48[724]]= null;mxCellHighlight[_0x5b48[202]][_0x5b48[657]]= 2;mxCellHighlight[_0x5b48[202]][_0x5b48[2877]]= null;mxCellHighlight[_0x5b48[202]][_0x5b48[2828]]= function(_0x43b0x2){this[_0x5b48[2943]]= _0x43b0x2;null!= this[_0x5b48[253]]&& (this[_0x5b48[253]][_0x5b48[1336]]= _0x43b0x2)};mxCellHighlight[_0x5b48[202]][_0x5b48[3060]]= function(){this[_0x5b48[253]]= this[_0x5b48[2156]]();this[_0x5b48[2950]]();!this[_0x5b48[3059]]&& this[_0x5b48[253]][_0x5b48[252]][_0x5b48[265]][_0x5b48[285]]!= this[_0x5b48[253]][_0x5b48[252]] && this[_0x5b48[253]][_0x5b48[252]][_0x5b48[265]][_0x5b48[950]](this[_0x5b48[253]][_0x5b48[252]],this[_0x5b48[253]][_0x5b48[252]][_0x5b48[265]][_0x5b48[285]])};mxCellHighlight[_0x5b48[202]][_0x5b48[2156]]= function(){var _0x43b0x2=null,_0x43b0x2=this[_0x5b48[1179]][_0x5b48[251]][_0x5b48[250]](this[_0x5b48[724]][_0x5b48[246]])? new mxPolyline(this[_0x5b48[724]][_0x5b48[439]],this[_0x5b48[2943]],this[_0x5b48[610]]): new mxRectangleShape( new mxRectangle,null,this[_0x5b48[2943]],this[_0x5b48[610]]);_0x43b0x2[_0x5b48[507]]= this[_0x5b48[1179]][_0x5b48[507]]!= mxConstants[_0x5b48[508]]?mxConstants[_0x5b48[1523]]:mxConstants[_0x5b48[508]];_0x43b0x2[_0x5b48[176]](this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[1524]]());mxEvent[_0x5b48[2733]](_0x43b0x2[_0x5b48[252]],this[_0x5b48[1179]],this[_0x5b48[724]]);_0x43b0x2[_0x5b48[1564]]= 0;_0x43b0x2[_0x5b48[1229]]= !1;_0x43b0x2[_0x5b48[1522]]= this[_0x5b48[648]];return _0x43b0x2};mxCellHighlight[_0x5b48[202]][_0x5b48[2950]]= function(){if(null!= this[_0x5b48[724]]&& null!= this[_0x5b48[253]]){var _0x43b0x2=0;this[_0x5b48[1179]][_0x5b48[251]][_0x5b48[250]](this[_0x5b48[724]][_0x5b48[246]])?this[_0x5b48[253]][_0x5b48[1525]]= this[_0x5b48[724]][_0x5b48[439]]:(this[_0x5b48[253]][_0x5b48[1562]]= new mxRectangle(this[_0x5b48[724]][_0x5b48[235]]- this[_0x5b48[657]],this[_0x5b48[724]][_0x5b48[236]]- this[_0x5b48[657]],this[_0x5b48[724]][_0x5b48[117]]+ 2* this[_0x5b48[657]],this[_0x5b48[724]][_0x5b48[119]]+ 2* this[_0x5b48[657]]),_0x43b0x2= Number(this[_0x5b48[724]][_0x5b48[124]][mxConstants[_0x5b48[2278]]]|| _0x5b48[468]));null!= this[_0x5b48[724]][_0x5b48[253]]&& this[_0x5b48[253]][_0x5b48[1609]](this[_0x5b48[724]][_0x5b48[253]][_0x5b48[1610]]());0!= _0x43b0x2&& (this[_0x5b48[253]][_0x5b48[603]]= _0x43b0x2);this[_0x5b48[253]][_0x5b48[258]]()}};mxCellHighlight[_0x5b48[202]][_0x5b48[801]]= function(){this[_0x5b48[1016]](null)};mxCellHighlight[_0x5b48[202]][_0x5b48[1016]]= function(_0x43b0x2){this[_0x5b48[724]]!= _0x43b0x2&& (null!= this[_0x5b48[253]]&& (this[_0x5b48[253]][_0x5b48[515]](),this[_0x5b48[253]]= null),this[_0x5b48[724]]= _0x43b0x2,null!= this[_0x5b48[724]]&& this[_0x5b48[3060]]())};mxCellHighlight[_0x5b48[202]][_0x5b48[515]]= function(){this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[745]](this[_0x5b48[3058]]);this[_0x5b48[1179]][_0x5b48[502]]()[_0x5b48[745]](this[_0x5b48[3058]]);this[_0x5b48[1179]][_0x5b48[249]]()[_0x5b48[745]](this[_0x5b48[2877]]);this[_0x5b48[1179]][_0x5b48[502]]()[_0x5b48[745]](this[_0x5b48[2877]]);null!= this[_0x5b48[253]]&& (this[_0x5b48[253]][_0x5b48[515]](),this[_0x5b48[253]]= null)};function mxDefaultKeyHandler(_0x43b0x2){if(null!= _0x43b0x2){this[_0x5b48[3061]]= _0x43b0x2;this[_0x5b48[2458]]= new mxKeyHandler(_0x43b0x2[_0x5b48[1179]]);var _0x43b0x3=this[_0x5b48[2458]][_0x5b48[859]];this[_0x5b48[2458]][_0x5b48[859]]= function(_0x43b0x4){_0x43b0x3[_0x5b48[183]](this,arguments);_0x43b0x2[_0x5b48[3062]]();_0x43b0x2[_0x5b48[746]]( new mxEventObject(mxEvent.ESCAPE,_0x5b48[763],_0x43b0x4))}}}mxDefaultKeyHandler[_0x5b48[202]][_0x5b48[3061]]= null;mxDefaultKeyHandler[_0x5b48[202]][_0x5b48[2458]]= null;mxDefaultKeyHandler[_0x5b48[202]][_0x5b48[3063]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){var _0x43b0x5=mxUtils[_0x5b48[885]](this,function(){this[_0x5b48[3061]][_0x5b48[350]](_0x43b0x3)});_0x43b0x4?this[_0x5b48[2458]][_0x5b48[3047]](_0x43b0x2,_0x43b0x5):this[_0x5b48[2458]][_0x5b48[3045]](_0x43b0x2,_0x43b0x5)};mxDefaultKeyHandler[_0x5b48[202]][_0x5b48[515]]= function(){this[_0x5b48[2458]][_0x5b48[515]]();this[_0x5b48[2458]]= null};function mxDefaultPopupMenu(_0x43b0x2){this[_0x5b48[3064]]= _0x43b0x2}mxDefaultPopupMenu[_0x5b48[202]][_0x5b48[88]]= null;mxDefaultPopupMenu[_0x5b48[202]][_0x5b48[3064]]= null;mxDefaultPopupMenu[_0x5b48[202]][_0x5b48[3065]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){if(null!= this[_0x5b48[3064]]){var _0x43b0x9=this[_0x5b48[3066]](_0x43b0x2,_0x43b0x4,_0x43b0x5);this[_0x5b48[3067]](_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,this[_0x5b48[3064]][_0x5b48[285]],null)}};mxDefaultPopupMenu[_0x5b48[202]][_0x5b48[3067]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa,_0x43b0x12){for(var _0x43b0x13=!1;null!= _0x43b0xa;){if(_0x5b48[99]== _0x43b0xa[_0x5b48[301]]){var _0x43b0x14=_0x43b0xa[_0x5b48[284]](_0x5b48[3068]);if(null== _0x43b0x14|| _0x43b0x9[_0x43b0x14]){var _0x43b0x14=_0x43b0xa[_0x5b48[284]](_0x5b48[3069]),_0x43b0x14=mxResources[_0x5b48[203]](_0x43b0x14)|| _0x43b0x14,_0x43b0x15=mxUtils[_0x5b48[1545]](mxUtils[_0x5b48[329]](_0x43b0xa)),_0x43b0x16=_0x43b0xa[_0x5b48[284]](_0x5b48[892]),_0x43b0x17=_0x43b0xa[_0x5b48[284]](_0x5b48[2916]),_0x43b0x18=_0x43b0xa[_0x5b48[284]](_0x5b48[3070]);_0x43b0x13&& (_0x43b0x3[_0x5b48[1051]](_0x43b0x12),_0x43b0x13= !1);null!= _0x43b0x17&& this[_0x5b48[88]]&& (_0x43b0x17= this[_0x5b48[88]]+ _0x43b0x17);_0x43b0x14= this[_0x5b48[3071]](_0x43b0x3,_0x43b0x2,_0x43b0x14,_0x43b0x17,_0x43b0x15,_0x43b0x16,_0x43b0x4,_0x43b0x12,_0x43b0x18);this[_0x5b48[3067]](_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa[_0x5b48[285]],_0x43b0x14)}}else {_0x5b48[3072]== _0x43b0xa[_0x5b48[301]]&& (_0x43b0x13= !0)};_0x43b0xa= _0x43b0xa[_0x5b48[287]]}};mxDefaultPopupMenu[_0x5b48[202]][_0x5b48[3071]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa,_0x43b0x12,_0x43b0x13,_0x43b0x14){return _0x43b0x2[_0x5b48[1025]](_0x43b0x4,_0x43b0x5,function(_0x43b0x2){_0x5b48[279]== typeof _0x43b0x9&& _0x43b0x9[_0x5b48[239]](_0x43b0x3,_0x43b0x3,_0x43b0x12,_0x43b0x2);null!= _0x43b0xa&& _0x43b0x3[_0x5b48[350]](_0x43b0xa,_0x43b0x12,_0x43b0x2)},_0x43b0x13,_0x43b0x14)};mxDefaultPopupMenu[_0x5b48[202]][_0x5b48[3066]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){var _0x43b0x5=_0x43b0x2[_0x5b48[1179]][_0x5b48[502]](),_0x43b0x9=_0x43b0x5[_0x5b48[262]](_0x43b0x3),_0x43b0xa=[];_0x43b0xa[_0x5b48[3073]]= null== _0x43b0x3;_0x43b0xa[_0x5b48[3074]]= 1< _0x43b0x2[_0x5b48[1179]][_0x5b48[2694]]();_0x43b0xa[_0x5b48[3075]]= _0x43b0x5[_0x5b48[501]]()!= _0x43b0x5[_0x5b48[1197]](_0x43b0x2[_0x5b48[1179]][_0x5b48[902]]());_0x43b0xa[_0x5b48[246]]= null!= _0x43b0x3;_0x43b0x5= null!= _0x43b0x3&& 1== _0x43b0x2[_0x5b48[1179]][_0x5b48[2694]]();_0x43b0xa[_0x5b48[3076]]= _0x43b0x5&& 0< _0x43b0x9;_0x43b0xa[_0x5b48[3077]]= _0x43b0x5&& _0x43b0x2[_0x5b48[1179]][_0x5b48[2516]](_0x43b0x3,!1);_0x43b0xa[_0x5b48[3078]]= _0x43b0x5&& _0x43b0x2[_0x5b48[1179]][_0x5b48[2516]](_0x43b0x3,!0);_0x43b0xa[_0x5b48[3079]]= _0x43b0x5&& _0x43b0x2[_0x5b48[1179]][_0x5b48[2553]](_0x43b0x3);_0x43b0xa[_0x5b48[3080]]= _0x43b0xa[_0x5b48[3079]]&& 0== _0x43b0x9;_0x43b0xa[_0x5b48[687]]= _0x43b0x5&& _0x43b0x2[_0x5b48[1179]][_0x5b48[1730]](_0x43b0x3);_0x43b0x9= this[_0x5b48[3064]][_0x5b48[64]](_0x5b48[3081]);for(_0x43b0x5= 0;_0x43b0x5< _0x43b0x9[_0x5b48[67]];_0x43b0x5++){var _0x43b0x12=mxUtils[_0x5b48[1545]](mxUtils[_0x5b48[329]](_0x43b0x9[_0x43b0x5])),_0x43b0x13=_0x43b0x9[_0x43b0x5][_0x5b48[284]](_0x5b48[298]);null!= _0x43b0x13&& _0x5b48[279]== typeof _0x43b0x12&& (_0x43b0xa[_0x43b0x13]= _0x43b0x12(_0x43b0x2,_0x43b0x3,_0x43b0x4))};return _0x43b0xa};function mxDefaultToolbar(_0x43b0x2,_0x43b0x3){this[_0x5b48[3061]]= _0x43b0x3;null!= _0x43b0x2&& null!= _0x43b0x3&& this[_0x5b48[176]](_0x43b0x2)}mxDefaultToolbar[_0x5b48[202]][_0x5b48[3061]]= null;mxDefaultToolbar[_0x5b48[202]][_0x5b48[3082]]= null;mxDefaultToolbar[_0x5b48[202]][_0x5b48[2877]]= null;mxDefaultToolbar[_0x5b48[202]][_0x5b48[657]]= 4;mxDefaultToolbar[_0x5b48[202]][_0x5b48[2804]]= !1;mxDefaultToolbar[_0x5b48[202]][_0x5b48[176]]= function(_0x43b0x2){null!= _0x43b0x2&& (this[_0x5b48[3082]]= new mxToolbar(_0x43b0x2),this[_0x5b48[3082]][_0x5b48[169]](mxEvent.SELECT,mxUtils[_0x5b48[885]](this,function(_0x43b0x2,_0x43b0x4){var _0x43b0x5=_0x43b0x4[_0x5b48[720]](_0x5b48[279]);this[_0x5b48[3061]][_0x5b48[3083]]= null!= _0x43b0x5?mxUtils[_0x5b48[885]](this,function(){_0x43b0x5[_0x5b48[183]](this,arguments);this[_0x5b48[3082]][_0x5b48[1050]]()}):null})),this[_0x5b48[2877]]= mxUtils[_0x5b48[885]](this,function(){null!= this[_0x5b48[3082]]&& this[_0x5b48[3082]][_0x5b48[1050]](!0)}),this[_0x5b48[3061]][_0x5b48[1179]][_0x5b48[169]](mxEvent.DOUBLE_CLICK,this[_0x5b48[2877]]),this[_0x5b48[3061]][_0x5b48[169]](mxEvent.ESCAPE,this[_0x5b48[2877]]))};mxDefaultToolbar[_0x5b48[202]][_0x5b48[1025]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5){var _0x43b0x9=mxUtils[_0x5b48[885]](this,function(){null!= _0x43b0x4&& 0< _0x43b0x4[_0x5b48[67]]&& this[_0x5b48[3061]][_0x5b48[350]](_0x43b0x4)});return this[_0x5b48[3082]][_0x5b48[1025]](_0x43b0x2,_0x43b0x3,_0x43b0x9,_0x43b0x5)};mxDefaultToolbar[_0x5b48[202]][_0x5b48[1051]]= function(_0x43b0x2){_0x43b0x2= _0x43b0x2|| mxClient[_0x5b48[88]]+ _0x5b48[3084];this[_0x5b48[3082]][_0x5b48[1051]](_0x43b0x2)};mxDefaultToolbar[_0x5b48[202]][_0x5b48[970]]= function(){return this[_0x5b48[3082]][_0x5b48[970]]()};mxDefaultToolbar[_0x5b48[202]][_0x5b48[1038]]= function(_0x43b0x2){return this[_0x5b48[3082]][_0x5b48[1038]](_0x43b0x2)};mxDefaultToolbar[_0x5b48[202]][_0x5b48[3085]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){var _0x43b0x5=mxUtils[_0x5b48[885]](this,function(){this[_0x5b48[3061]][_0x5b48[350]](_0x43b0x4)});this[_0x5b48[972]](_0x43b0x2,_0x43b0x3,_0x43b0x5)};mxDefaultToolbar[_0x5b48[202]][_0x5b48[972]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){return this[_0x5b48[3082]][_0x5b48[972]](_0x43b0x2,_0x43b0x3,_0x43b0x4)};mxDefaultToolbar[_0x5b48[202]][_0x5b48[1048]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9){var _0x43b0xa=mxUtils[_0x5b48[885]](this,function(){this[_0x5b48[3061]][_0x5b48[3086]](_0x43b0x4);null!= _0x43b0x9&& _0x43b0x9(this[_0x5b48[3061]])});return this[_0x5b48[3082]][_0x5b48[1042]](_0x43b0x2,_0x43b0x3,_0x43b0xa,_0x43b0x5)};mxDefaultToolbar[_0x5b48[202]][_0x5b48[3087]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4,_0x43b0x5,_0x43b0x9,_0x43b0xa){var _0x43b0x12=function(){return _0x5b48[279]== typeof _0x43b0x4?_0x43b0x4():null!= _0x43b0x4?_0x43b0x4[_0x5b48[238]]():null},_0x43b0x13=mxUtils[_0x5b48[885]](this,function(_0x43b0x2,_0x43b0x3){_0x5b48[279]== typeof _0x43b0x9?_0x43b0x9(this[_0x5b48[3061]],_0x43b0x12(),_0x43b0x2,_0x43b0x3):this[_0x5b48[1008]](_0x43b0x12(),_0x43b0x2,_0x43b0x3);this[_0x5b48[3082]][_0x5b48[1050]]();mxEvent[_0x5b48[722]](_0x43b0x2)});_0x43b0x2= this[_0x5b48[3082]][_0x5b48[1048]](_0x43b0x2,_0x43b0x3,_0x43b0x13,_0x43b0x5,null,_0x43b0xa);this[_0x5b48[3088]](_0x43b0x2,function(_0x43b0x2,_0x43b0x3,_0x43b0x4){_0x43b0x13(_0x43b0x3,_0x43b0x4)});return _0x43b0x2};mxDefaultToolbar[_0x5b48[202]][_0x5b48[1008]]= function(_0x43b0x2,_0x43b0x3,_0x43b0x4){var _0x43b0x5=this[_0x5b48[3061]][_0x5b48[1179]],_0x43b0x9=_0x43b0x5[_0x5b48[502]]();if(null== _0x43b0x4|| _0x43b0x9[_0x5b48[250]](_0x43b0x4)|| !this[_0x5b48[2804]]|| !_0x43b0x5[_0x5b48[2565]](_0x43b0x4)){for(;null!= _0x43b0x4&&